UNPKG

@syncfusion/ej2-charts

Version:

Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.

10 lines 1.77 MB
/*!
*  filename: ej2-charts.min.js
*  version : 32.1.22
*  Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
*  Use of this code is subject to the terms of our license.
*  A copy of the current license can be obtained at any time by e-mailing
*  licensing@syncfusion.com. Any infringement will be prosecuted under
*  applicable laws. 
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport"),require("SyncfusionExcelExport"),require("SyncfusionNavigations"),require("SyncfusionCalendars"),require("SyncfusionSplitbuttons")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSvgBase","SyncfusionData","SyncfusionPdfExport","SyncfusionExcelExport","SyncfusionNavigations","SyncfusionCalendars","SyncfusionSplitbuttons"],t):"object"==typeof exports?exports.SyncfusionCharts=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport"),require("SyncfusionExcelExport"),require("SyncfusionNavigations"),require("SyncfusionCalendars"),require("SyncfusionSplitbuttons")):e.SyncfusionCharts=t(e.SyncfusionBase,e.SyncfusionSvgBase,e.SyncfusionData,e.SyncfusionPdfExport,e.SyncfusionExcelExport,e.SyncfusionNavigations,e.SyncfusionCalendars,e.SyncfusionSplitbuttons)}(self,(e,t,i,o,r,n,a,l)=>(()=>{"use strict";var s={766:t=>{t.exports=e},570:e=>{e.exports=a},74:e=>{e.exports=i},437:e=>{e.exports=r},215:e=>{e.exports=n},461:e=>{e.exports=o},295:e=>{e.exports=l},727:e=>{e.exports=t}},h={};function c(e){var t=h[e];if(void 0!==t)return t.exports;var i=h[e]={exports:{}};return s[e](i,i.exports,c),i.exports}c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{c.r(d),c.d(d,{AccPointData:()=>Zi,AccPoints:()=>ya,Accessibility:()=>a,AccumulationAnnotation:()=>Xa,AccumulationAnnotationSettings:()=>ua,AccumulationChart:()=>Aa,AccumulationDataLabel:()=>za,AccumulationDataLabelSettings:()=>ga,AccumulationDistributionIndicator:()=>mn,AccumulationHighlight:()=>ja,AccumulationLegend:()=>Ia,AccumulationSelection:()=>Ha,AccumulationSeries:()=>fa,AccumulationTooltip:()=>Na,Animation:()=>y,AreaSeries:()=>cr,AtrIndicator:()=>fn,Axis:()=>Xe,AxisLine:()=>He,AxisRenderer:()=>td,AxisSettings:()=>ec,BarSeries:()=>pr,BarSeries3D:()=>Ud,BinaryTreeBuilder:()=>Uc,BollingerBands:()=>Ln,Border:()=>u,BoxAndWhiskerSeries:()=>$n,BubbleSeries:()=>Kr,BulletChart:()=>ls,BulletChartLegend:()=>cs,BulletChartLegendSettings:()=>os,BulletDataLabel:()=>is,BulletLabelStyle:()=>es,BulletTooltip:()=>ss,BulletTooltipSettings:()=>ts,CandleSeries:()=>Cr,CartesianAxisLayoutPanel:()=>_c,Category:()=>qo,Category3D:()=>_d,CenterLabel:()=>p,Chart:()=>jo,Chart3D:()=>kd,Chart3DAxis:()=>pd,Chart3DColumn:()=>ld,Chart3DDataLabelSettings:()=>yd,Chart3DEmptyPointSettings:()=>fd,Chart3DLegendSettings:()=>Pd,Chart3DMajorGridLines:()=>sd,Chart3DMajorTickLines:()=>cd,Chart3DMinorGridLines:()=>hd,Chart3DMinorTickLines:()=>dd,Chart3DPoint:()=>vd,Chart3DRender:()=>Bc,Chart3DRow:()=>ad,Chart3DSeries:()=>bd,Chart3DTextFont:()=>Rc,Chart3DTooltipSettings:()=>Cd,ChartAnnotation:()=>qn,ChartAnnotationSettings:()=>Pe,ChartArea:()=>L,ChartLocation:()=>ji,ChartSegment:()=>bo,ChartTransform3D:()=>Wc,CircleOption:()=>Hi,CircularChart3D:()=>Ep,CircularChart3DConnector:()=>ep,CircularChart3DDataLabelFont:()=>Jd,CircularChart3DDataLabelSettings:()=>tp,CircularChart3DEmptyPointSettings:()=>ap,CircularChart3DLegendSettings:()=>wp,CircularChart3DPointData:()=>Mp,CircularChart3DPoints:()=>np,CircularChart3DSeries:()=>lp,CircularChart3DTooltipSettings:()=>Dp,CircularChartDataLabel3D:()=>ip,CircularChartExport3D:()=>_p,CircularChartHighlight3D:()=>Bp,CircularChartLegend3D:()=>Lp,CircularChartSelection3D:()=>Op,CircularChartTooltip3D:()=>kp,ClosestPoint:()=>Ls,CoefficientToVector:()=>bt,ColorValue:()=>Gi,Column:()=>Be,ColumnSeries:()=>ar,ColumnSeries3D:()=>Hd,Connector:()=>r,ContainerArea:()=>$h,ContainerPadding:()=>S,ControlPoints:()=>Qi,CornerRadius:()=>x,Crosshair:()=>Dn,CrosshairSettings:()=>Ho,CrosshairTooltip:()=>Ue,CustomizeOption:()=>zi,DataEditing:()=>Nn,DataLabel:()=>jn,DataLabel3D:()=>Xd,DataLabelSettings:()=>uo,DataLabelTextOptions:()=>Ds,DataPoint:()=>$a,DateTime:()=>Yo,DateTime3D:()=>Od,DateTimeCategory:()=>Jo,DateTimeCategory3D:()=>Bd,Direction:()=>Ms,Double:()=>E,Double3D:()=>od,DragSettings:()=>P,EmaIndicator:()=>dn,EmptyPointSettings:()=>v,ErrorBar:()=>Un,ErrorBarCapSettings:()=>vo,ErrorBarSettings:()=>xo,Export:()=>ca,Export3D:()=>Qd,Font:()=>s,FunnelSeries:()=>Ra,Graphics3D:()=>jc,GridArcPoints:()=>Ts,Highlight:()=>Hn,Highlight3D:()=>qd,HiloOpenCloseSeries:()=>Xr,HiloSeries:()=>jr,HistogramSeries:()=>on,HorizontalLabelCollection:()=>xs,ImageOption:()=>Vi,Index:()=>k,Indexes:()=>b,LabelBorder:()=>Ae,LabelCollection:()=>fs,LabelLocation:()=>Ui,LabelOffset:()=>oc,LabelOption:()=>ks,LabelRegion:()=>bs,LastValueLabel:()=>Wn,LastValueLabelSettings:()=>po,Legend:()=>Gn,Legend3D:()=>Ad,LegendBorder:()=>rh,LegendItemStyle:()=>oh,LegendItemStyleBorder:()=>ih,LegendLocation:()=>th,LegendSeries:()=>vs,LegendTitle:()=>eh,LineSegment:()=>Cs,LineSeries:()=>or,LineSettings:()=>Kh,Location:()=>n,Logarithmic:()=>$o,Logarithmic3D:()=>Vd,MacdIndicator:()=>An,MajorGridLines:()=>Ne,MajorTickLines:()=>We,MajorTickLinesSettings:()=>Kl,Margin:()=>m,MarkerOptions:()=>Ps,MarkerSettings:()=>go,Matrix3D:()=>Hc,Mean:()=>St,MinorGridLines:()=>Ve,MinorTickLines:()=>je,MinorTickLinesSettings:()=>Jl,MomentumIndicator:()=>bn,MultiColoredAreaSeries:()=>Jn,MultiColoredLineSeries:()=>ta,MultiColoredSeries:()=>sr,MultiLevelCategories:()=>Me,MultiLevelLabel:()=>ia,MultiLevelLabels:()=>ke,NiceInterval:()=>Xo,NiceIntervals:()=>Td,Offset:()=>g,Padding:()=>tc,ParetoOptions:()=>mo,ParetoSeries:()=>aa,PeriodSelector:()=>pl,PeriodSelectorSettings:()=>M,Periods:()=>A,PieCenter:()=>ma,PieSeries:()=>wa,PieSeries3D:()=>sp,Point:()=>ws,Point3D:()=>qi,PointData:()=>Yi,PointRegion:()=>Fs,Points:()=>yo,PolarArc:()=>Ct,PolarSeries:()=>yr,Polygon3D:()=>Gc,PolygonOption:()=>Wi,PyramidSeries:()=>Ea,RadarSeries:()=>vr,RadialLabelCollections:()=>Ss,Range:()=>$l,RangeAreaSeries:()=>Yr,RangeBandSettings:()=>Jh,RangeColorSetting:()=>Vo,RangeColumnSeries:()=>zr,RangeNavigator:()=>ml,RangeNavigatorAxis:()=>tl,RangeNavigatorSeries:()=>rl,RangeSeries:()=>Ja,RangeSlider:()=>sl,RangeStepAreaSeries:()=>Nr,RangeTooltip:()=>Gl,RangeTooltipSettings:()=>ll,RectOption:()=>Ni,Row:()=>ze,RsiIndicator:()=>Sn,ScatterSeries:()=>Ir,ScrollBar:()=>ra,ScrollbarSettings:()=>Te,ScrollbarSettingsRange:()=>Re,Selection:()=>Tn,Selection3D:()=>Yd,Series:()=>Co,SeriesAccessibility:()=>l,SeriesBase:()=>So,SeriesMarker:()=>wh,SeriesMarkerBorder:()=>xh,SeriesMarkerDataLabel:()=>Fh,SeriesMarkerDataLabelBorder:()=>Sh,SeriesMarkerDataLabelConnectorLine:()=>Ch,SeriesTooltip:()=>bh,SeriesTooltipBorder:()=>vh,SmaIndicator:()=>hn,Smithchart:()=>Wh,SmithchartAxis:()=>dh,SmithchartAxisLine:()=>ch,SmithchartBorder:()=>ms,SmithchartFont:()=>us,SmithchartLabelPosition:()=>As,SmithchartLegend:()=>Uh,SmithchartLegendSettings:()=>nh,SmithchartMajorGridLines:()=>sh,SmithchartMargin:()=>gs,SmithchartMinorGridLines:()=>hh,SmithchartRect:()=>ys,SmithchartSeries:()=>Lh,SmithchartSize:()=>Rs,Sparkline:()=>Pc,SparklineBorder:()=>Yh,SparklineDataLabelSettings:()=>rc,SparklineFont:()=>Zh,SparklineMarkerSettings:()=>ic,SparklineTooltip:()=>Mc,SparklineTooltipSettings:()=>Qh,SplineAreaSeries:()=>nn,SplineRangeAreaSeries:()=>$r,SplineSeries:()=>en,StackLabelSettings:()=>_e,StackLabelsFont:()=>h,StackValues:()=>Bi,StackingAreaSeries:()=>kr,StackingBarSeries:()=>xr,StackingBarSeries3D:()=>jd,StackingColumnSeries:()=>wr,StackingColumnSeries3D:()=>Wd,StackingLineSeries:()=>_r,StackingStepAreaSeries:()=>Tr,StepAreaSeries:()=>Mr,StepLineSeries:()=>Pr,StochasticIndicator:()=>Fn,StockChart:()=>Xl,StockChartAnnotationSettings:()=>_l,StockChartArea:()=>wl,StockChartAxis:()=>Rl,StockChartBorder:()=>Fl,StockChartConnector:()=>Ml,StockChartFont:()=>Cl,StockChartIndexes:()=>Il,StockChartIndicator:()=>kl,StockChartLegendSettings:()=>Hl,StockChartRow:()=>Tl,StockChartStripLineSettings:()=>Pl,StockChartTrendline:()=>El,StockEmptyPointSettings:()=>Al,StockEventsSettings:()=>Ol,StockLegend:()=>Wl,StockMargin:()=>Ll,StockSeries:()=>Dl,StockTooltipSettings:()=>D,StripLine:()=>er,StripLineSettings:()=>De,StyleSettings:()=>al,Subtitle:()=>gh,Svg3DRenderer:()=>Xc,TechnicalIndicator:()=>Oo,Thickness:()=>Xi,ThumbSettings:()=>nl,Title:()=>mh,TitleBorder:()=>Tc,TitleSettings:()=>Ec,TitleStyleSettings:()=>w,TmaIndicator:()=>un,ToolbarPosition:()=>Ee,Tooltip:()=>On,Tooltip3D:()=>Fd,TooltipRender:()=>jh,TooltipSettings:()=>f,TrackLineSettings:()=>qh,TransformToVisible:()=>ft,Trendline:()=>fo,Trendlines:()=>Mn,Vector3D:()=>Vc,Visible3DLabels:()=>ud,VisibleLabels:()=>Ge,WallRenderer:()=>ed,WaterfallSeries:()=>Hr,Zoom:()=>Bn,ZoomSettings:()=>Wo,accReactTemplate:()=>$t,afterExport:()=>Se,animateAddPoints:()=>Bt,animateRectElement:()=>Ot,animateRedrawElement:()=>Ai,animateTextElement:()=>Mi,animationComplete:()=>z,annotationRender:()=>he,appendChildElement:()=>ni,appendClipElement:()=>Nt,appendElement:()=>ri,applyZLight:()=>xi,axisLabelClick:()=>U,axisLabelRender:()=>j,axisMultiLabelRender:()=>G,axisRangeCalculated:()=>X,beforeExport:()=>xe,beforePrint:()=>se,beforeResize:()=>le,bulletChartMouseClick:()=>Ce,calculateLegendShapes:()=>Ci,calculateRect:()=>ui,calculateScrollbarOffset:()=>$e,calculateShapes:()=>Gt,calculateSize:()=>ki,chartDoubleClick:()=>Q,chartMouseClick:()=>q,chartMouseDown:()=>te,chartMouseLeave:()=>ee,chartMouseMove:()=>Z,chartMouseUp:()=>ie,chartReactTemplate:()=>Kt,checkBounds:()=>li,checkColorFormat:()=>vi,colorNameToHex:()=>fi,componentToHex:()=>mi,containsRect:()=>pi,convertHexToColor:()=>yi,convertToHexCode:()=>gi,createSvg:()=>Ri,createTemplate:()=>Jt,createTooltip:()=>Ft,createZoomingLabels:()=>wt,degreeToLocation:()=>ct,degreeToRadian:()=>dt,drag:()=>ye,dragComplete:()=>re,dragEnd:()=>fe,dragStart:()=>me,drawSymbol:()=>Xt,findClipRect:()=>Dt,findCrosshairDirection:()=>Lt,findlElement:()=>ii,firstToLowerCase:()=>kt,get3DSeriesColor:()=>Oc,get3DThemeColor:()=>Ic,getActualDesiredIntervalsCount:()=>jt,getAngle:()=>gt,getAnimationFunction:()=>Et,getBulletThemeColor:()=>rs,getColorByValue:()=>$i,getDraggedRectLocation:()=>ai,getElement:()=>qt,getExactData:()=>qa,getFontStyle:()=>ei,getGradientColor:()=>Ki,getLabelText:()=>si,getMedian:()=>Si,getMinPointsDelta:()=>Tt,getMinPointsDeltaValue:()=>Kc,getNearestValue:()=>Qa,getPercentage:()=>eo,getPercentageColor:()=>Ji,getPoint:()=>oi,getRangeThemeColor:()=>hl,getRangeValueXByPoint:()=>Za,getRectLocation:()=>Yt,getRotatedRectangleCoordinates:()=>pt,getSaturationColor:()=>bi,getScrollbarThemeColor:()=>no,getSeriesColor:()=>oo,getSeriesFromIndex:()=>va,getTemplateFunction:()=>Qt,getTextAnchor:()=>to,getThemeColor:()=>ro,getTitle:()=>Ti,getTransform:()=>Rt,getUnicodeText:()=>Oi,getValueXByPoint:()=>At,getValueYByPoint:()=>Mt,getVisiblePoints:()=>Qe,getXLocation:()=>Ya,indexFinder:()=>vt,inside:()=>it,isBreakLabel:()=>qe,isCollide:()=>ci,isOverlap:()=>di,isRotatedRectIntersect:()=>ut,isZoomSet:()=>Wt,legendClick:()=>I,legendRender:()=>B,lineBreakLabelTrim:()=>wi,linear:()=>_t,load:()=>O,loaded:()=>_,logBase:()=>et,logWithIn:()=>rt,markerAnimate:()=>It,measureElementRect:()=>ti,minMax:()=>Zt,multiLevelLabelClick:()=>ge,onZooming:()=>Fe,pathAnimation:()=>zt,pointByIndex:()=>ba,pointClick:()=>$,pointDoubleClick:()=>K,pointMove:()=>J,pointRender:()=>V,rangeValueToCoefficient:()=>Ga,redrawElement:()=>Pi,regSub:()=>ve,regSup:()=>be,removeElement:()=>Je,resized:()=>ae,rotateTextSize:()=>Ke,scrollChanged:()=>pe,scrollEnd:()=>de,scrollStart:()=>ce,selectionComplete:()=>ne,seriesRender:()=>W,setRange:()=>Ht,sharedTooltipRender:()=>H,showTooltip:()=>tt,smithchartBeforePrint:()=>Bh,sort:()=>Ze,stockEventFont:()=>io,stockEventRender:()=>ue,stopTimer:()=>hi,stringToNumber:()=>Li,subArray:()=>mt,subArraySum:()=>lt,subtractRect:()=>ht,subtractThickness:()=>st,sum:()=>at,templateAnimate:()=>Ut,textElement:()=>Di,textRender:()=>N,textTrim:()=>Fi,textWrap:()=>_i,textWrapAnyWhere:()=>Ii,titleBorder:()=>C,titlePositionX:()=>Ei,titleSettings:()=>F,tooltipRender:()=>Y,triggerLabelRender:()=>Vt,valueToCoefficient:()=>yt,valueToCoefficients:()=>Jc,valueToPolarCoefficient:()=>xt,withIn:()=>ot,withInBounds:()=>Pt,withInRange:()=>nt,zoomComplete:()=>oe});var e,t=c(766),i=(e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)},function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),o=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},r=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("Line")],r.prototype,"type",void 0),o([(0,t.Property)(null)],r.prototype,"color",void 0),o([(0,t.Property)(1)],r.prototype,"width",void 0),o([(0,t.Property)(null)],r.prototype,"length",void 0),o([(0,t.Property)("")],r.prototype,"dashArray",void 0),r}(t.ChildProperty),n=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(0)],r.prototype,"x",void 0),o([(0,t.Property)(0)],r.prototype,"y",void 0),r}(t.ChildProperty),a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(null)],r.prototype,"accessibilityDescription",void 0),o([(0,t.Property)(null)],r.prototype,"accessibilityRole",void 0),o([(0,t.Property)(!0)],r.prototype,"focusable",void 0),o([(0,t.Property)(0)],r.prototype,"tabIndex",void 0),r}(t.ChildProperty),l=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(null)],r.prototype,"accessibilityDescriptionFormat",void 0),r}(a),s=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("Normal")],r.prototype,"fontStyle",void 0),o([(0,t.Property)("16px")],r.prototype,"size",void 0),o([(0,t.Property)("Normal")],r.prototype,"fontWeight",void 0),o([(0,t.Property)("")],r.prototype,"color",void 0),o([(0,t.Property)("Center")],r.prototype,"textAlignment",void 0),o([(0,t.Property)("Segoe UI")],r.prototype,"fontFamily",void 0),o([(0,t.Property)(1)],r.prototype,"opacity",void 0),o([(0,t.Property)("Wrap")],r.prototype,"textOverflow",void 0),r}(t.ChildProperty),h=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("Normal")],r.prototype,"fontStyle",void 0),o([(0,t.Property)("16px")],r.prototype,"size",void 0),o([(0,t.Property)("Normal")],r.prototype,"fontWeight",void 0),o([(0,t.Property)("")],r.prototype,"color",void 0),o([(0,t.Property)("Center")],r.prototype,"textAlignment",void 0),o([(0,t.Property)("Segoe UI")],r.prototype,"fontFamily",void 0),o([(0,t.Property)(1)],r.prototype,"opacity",void 0),r}(t.ChildProperty),p=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(null)],r.prototype,"text",void 0),o([(0,t.Complex)({fontFamily:null,size:"16px",fontStyle:"Normal",fontWeight:"600",color:null},s)],r.prototype,"textStyle",void 0),o([(0,t.Property)(null)],r.prototype,"hoverTextFormat",void 0),r}(t.ChildProperty),u=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("")],r.prototype,"color",void 0),o([(0,t.Property)(1)],r.prototype,"width",void 0),o([(0,t.Property)("")],r.prototype,"dashArray",void 0),r}(t.ChildProperty),g=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(0)],r.prototype,"x",void 0),o([(0,t.Property)(0)],r.prototype,"y",void 0),r}(t.ChildProperty),m=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(t.Browser.isDevice?5:10)],r.prototype,"left",void 0),o([(0,t.Property)(t.Browser.isDevice?5:10)],r.prototype,"right",void 0),o([(0,t.Property)(t.Browser.isDevice?5:10)],r.prototype,"top",void 0),o([(0,t.Property)(t.Browser.isDevice?5:10)],r.prototype,"bottom",void 0),r}(t.ChildProperty),y=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(!0)],r.prototype,"enable",void 0),o([(0,t.Property)(1e3)],r.prototype,"duration",void 0),o([(0,t.Property)(0)],r.prototype,"delay",void 0),r}(t.ChildProperty),f=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(!1)],r.prototype,"enable",void 0),o([(0,t.Property)(!0)],r.prototype,"enableMarker",void 0),o([(0,t.Property)(!1)],r.prototype,"shared",void 0),o([(0,t.Property)(null)],r.prototype,"fill",void 0),o([(0,t.Property)(null)],r.prototype,"header",void 0),o([(0,t.Property)(null)],r.prototype,"opacity",void 0),o([(0,t.Complex)({fontFamily:null,size:null,fontStyle:"Normal",fontWeight:null,color:null},s)],r.prototype,"textStyle",void 0),o([(0,t.Property)(null)],r.prototype,"format",void 0),o([(0,t.Property)(null)],r.prototype,"template",void 0),o([(0,t.Property)(!0)],r.prototype,"enableAnimation",void 0),o([(0,t.Property)(300)],r.prototype,"duration",void 0),o([(0,t.Property)(1e3)],r.prototype,"fadeOutDuration",void 0),o([(0,t.Property)("Move")],r.prototype,"fadeOutMode",void 0),o([(0,t.Property)(!1)],r.prototype,"enableTextWrap",void 0),o([(0,t.Property)(!0)],r.prototype,"showNearestPoint",void 0),o([(0,t.Complex)({color:null,width:null},u)],r.prototype,"border",void 0),o([(0,t.Complex)({x:null,y:null},n)],r.prototype,"location",void 0),o([(0,t.Property)(!1)],r.prototype,"enableHighlight",void 0),o([(0,t.Property)(!1)],r.prototype,"showNearestTooltip",void 0),o([(0,t.Property)(!0)],r.prototype,"showHeaderLine",void 0),r}(t.ChildProperty),v=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(null)],r.prototype,"fill",void 0),o([(0,t.Complex)({color:"",width:0},u)],r.prototype,"border",void 0),o([(0,t.Property)("Gap")],r.prototype,"mode",void 0),r}(t.ChildProperty),b=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(0)],r.prototype,"series",void 0),o([(0,t.Property)(0)],r.prototype,"point",void 0),r}(t.ChildProperty),x=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(0)],r.prototype,"topLeft",void 0),o([(0,t.Property)(0)],r.prototype,"topRight",void 0),o([(0,t.Property)(0)],r.prototype,"bottomLeft",void 0),o([(0,t.Property)(0)],r.prototype,"bottomRight",void 0),r}(t.ChildProperty),S=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(0)],r.prototype,"left",void 0),o([(0,t.Property)(0)],r.prototype,"right",void 0),o([(0,t.Property)(0)],r.prototype,"top",void 0),o([(0,t.Property)(0)],r.prototype,"bottom",void 0),r}(t.ChildProperty),C=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("transparent")],r.prototype,"color",void 0),o([(0,t.Property)(0)],r.prototype,"width",void 0),o([(0,t.Property)(.8)],r.prototype,"cornerRadius",void 0),r}(t.ChildProperty),F=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("Normal")],r.prototype,"fontStyle",void 0),o([(0,t.Property)("15px")],r.prototype,"size",void 0),o([(0,t.Property)("500")],r.prototype,"fontWeight",void 0),o([(0,t.Property)("")],r.prototype,"color",void 0),o([(0,t.Property)("Center")],r.prototype,"textAlignment",void 0),o([(0,t.Property)("Segoe UI")],r.prototype,"fontFamily",void 0),o([(0,t.Property)(1)],r.prototype,"opacity",void 0),o([(0,t.Property)("Wrap")],r.prototype,"textOverflow",void 0),o([(0,t.Property)("Top")],r.prototype,"position",void 0),o([(0,t.Property)(0)],r.prototype,"x",void 0),o([(0,t.Property)(0)],r.prototype,"y",void 0),o([(0,t.Property)("transparent")],r.prototype,"background",void 0),o([(0,t.Complex)({},C)],r.prototype,"border",void 0),o([(0,t.Complex)({},a)],r.prototype,"accessibility",void 0),r}(t.ChildProperty),w=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("Top")],r.prototype,"position",void 0),o([(0,t.Property)(0)],r.prototype,"x",void 0),o([(0,t.Property)(0)],r.prototype,"y",void 0),r}(s),L=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Complex)({},u)],r.prototype,"border",void 0),o([(0,t.Property)("transparent")],r.prototype,"background",void 0),o([(0,t.Property)(1)],r.prototype,"opacity",void 0),o([(0,t.Property)(null)],r.prototype,"backgroundImage",void 0),o([(0,t.Property)(null)],r.prototype,"width",void 0),o([(0,t.Complex)({left:0,right:0,top:0,bottom:0},m)],r.prototype,"margin",void 0),r}(t.ChildProperty),P=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(!1)],r.prototype,"enable",void 0),o([(0,t.Property)(null)],r.prototype,"minY",void 0),o([(0,t.Property)(null)],r.prototype,"maxY",void 0),o([(0,t.Property)(null)],r.prototype,"fill",void 0),r}(t.ChildProperty),A=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)("Years")],r.prototype,"intervalType",void 0),o([(0,t.Property)(1)],r.prototype,"interval",void 0),o([(0,t.Property)(null)],r.prototype,"text",void 0),o([(0,t.Property)(!1)],r.prototype,"selected",void 0),r}(t.ChildProperty),M=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(43)],r.prototype,"height",void 0),o([(0,t.Property)("Bottom")],r.prototype,"position",void 0),o([(0,t.Collection)([],A)],r.prototype,"periods",void 0),r}(t.ChildProperty),D=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),o([(0,t.Property)(!1)],r.prototype,"enable",void 0),o([(0,t.Property)(!0)],r.prototype,"enableMarker",void 0),o([(0,t.Property)(!1)],r.prototype,"shared",void 0),o([(0,t.Property)(null)],r.prototype,"fill",void 0),o([(0,t.Property)(null)],r.prototype,"header",void 0),o([(0,t.Property)(.75)],r.prototype,"opacity",void 0),o([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},s)],r.prototype,"textStyle",void 0),o([(0,t.Property)(null)],r.prototype,"format",void 0),o([(0,t.Property)(null)],r.prototype,"template",void 0),o([(0,t.Property)(!0)],r.prototype,"enableAnimation",void 0),o([(0,t.Property)(300)],r.prototype,"duration",void 0),o([(0,t.Property)(1e3)],r.prototype,"fadeOutDuration",void 0),o([(0,t.Property)("Move")],r.prototype,"fadeOutMode",void 0),o([(0,t.Property)(!1)],r.prototype,"enableTextWrap",void 0),o([(0,t.Property)(!0)],r.prototype,"showNearestPoint",void 0),o([(0,t.Complex)({color:null,width:null},u)],r.prototype,"border",void 0),o([(0,t.Property)("Fixed")],r.prototype,"position",void 0),o([(0,t.Property)(!1)],r.prototype,"showNearestTooltip",void 0),o([(0,t.Property)(!0)],r.prototype,"showHeaderLine",void 0),r}(t.ChildProperty),k=function(e,t){this.series=e,this.point=t},R=c(727),T=function(){function e(e,t){e<t?(this.mStart=e,this.mEnd=t):(this.mStart=t,this.mEnd=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.mEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delta",{get:function(){return this.mEnd-this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"median",{get:function(){return this.mStart+(this.mEnd-this.mStart)/2},enumerable:!0,configurable:!0}),e}(),E=function(){function e(e){this.isColumn=0,this.isStacking=!1,this.chart=e}return e.prototype.calculateNumericNiceInterval=function(e,i,o){var r=jt(o,e),n=i/r;if(!(0,t.isNullOrUndefined)(e.desiredIntervals)&&this.isAutoIntervalOnBothAxis(e))return n;for(var a=Math.pow(10,Math.floor(et(n,10))),l=0,s=e.intervalDivs;l<s.length;l++){var h=a*s[l];if(r<i/h)break;n=h}return n},e.prototype.isAutoIntervalOnBothAxis=function(e){return!(e.zoomFactor<1||e.zoomPosition>0)||!e.enableAutoIntervalOnZooming},e.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),!e.startFromZero&&this.isColumn>0?(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.max=e.doubleRange.end+e.actualRange.interval,e.doubleRange.start-e.actualRange.interval<0&&e.doubleRange.start>0?e.actualRange.min=0:e.actualRange.min=e.doubleRange.start-(this.isStacking?0:e.actualRange.interval)):(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end)},e.prototype.initializeDoubleRange=function(e){null!==e.minimum?this.min=e.minimum:null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=0),null!==e.maximum?this.max=e.maximum:null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=5),this.min===this.max&&(this.max=e.valueType.indexOf("Category")>-1?this.max:this.min+1),e.doubleRange=new T(this.min,this.max),e.actualRange={}},e.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},e.prototype.calculateRange=function(e){if(this.min=null,this.max=null,!Ht(e))for(var i=0,o=e.series;i<o.length;i++){var r=o[i];r.visible&&(this.paddingInterval=0,(0,t.isNullOrUndefined)(r.points)||(e.maxPointLength=r.points.length),e.maxPointLength=r.points.length,((r.type.indexOf("Column")>-1||r.type.indexOf("Histogram")>-1)&&"Horizontal"===e.orientation||r.type.indexOf("Bar")>-1&&"Vertical"===e.orientation)&&("Double"!==r.xAxis.valueType&&"DateTime"!==r.xAxis.valueType||"Auto"!==r.xAxis.rangePadding||(this.paddingInterval=.5*Tt(r.xAxis,e.series))),"Horizontal"===e.orientation&&(this.chart.requireInvertedAxis?this.yAxisRange(e,r):this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval)),"Vertical"===e.orientation&&(this.isColumn+=-1!==r.type.indexOf("Column")||-1!==r.type.indexOf("Bar")||"Column"===r.drawType?1:0,this.isStacking=-1!==r.type.indexOf("Stacking"),this.chart.requireInvertedAxis?this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval):this.yAxisRange(e,r)))}},e.prototype.yAxisRange=function(e,t){if(t.dragSettings.enable&&this.chart.dragY&&(this.chart.dragY>=e.visibleRange.max&&(t.yMax=this.chart.dragY+e.visibleRange.interval),this.chart.dragY<=e.visibleRange.min&&(t.yMin=this.chart.dragY-e.visibleRange.interval)),"Waterfall"===t.type){for(var i=0,o=0,r=0;r<t.yData.length;r++)t.intermediateSumIndexes&&-1!==t.intermediateSumIndexes.indexOf(r)||t.sumIndexes&&-1!==t.sumIndexes.indexOf(r)||(o+=t.yData[r]),o>i&&(i=o);this.findMinMax(t.yMin,i)}else this.findMinMax(t.yMin,t.yMax)},e.prototype.findMinMax=function(e,t){(null===this.min||this.min>e)&&(this.min=e),(null===this.max||this.max<t)&&(this.max=t),this.max===this.min&&this.max<0&&this.min<0&&(this.max=0)},e.prototype.applyRangePadding=function(e,t){var i=e.actualRange.min,o=e.actualRange.max;if(!Ht(e)){var r=e.actualRange.interval,n=e.getRangePadding(this.chart);"Additional"===n||"Round"===n?this.findAdditional(e,i,o,r,t):"Normal"===n?this.findNormal(e,i,o,r,t):this.updateActualRange(e,i,o,r)}e.actualRange.delta=e.actualRange.max-e.actualRange.min,this.calculateVisibleRange(t,e)},e.prototype.updateActualRange=function(e,t,i,o){e.actualRange={min:null!=e.minimum?e.minimum:t,max:null!=e.maximum?e.maximum:i,interval:null!=e.interval?e.interval:o,delta:e.actualRange.delta}},e.prototype.findAdditional=function(e,i,o,r,n){var a,l;if(a=Math.floor(i/r)*r,l=Math.ceil(o/r)*r,"Additional"===e.rangePadding&&(a-=r,l+=r),!(0,t.isNullOrUndefined)(e.desiredIntervals)){var s=l-a;r=this.calculateNumericNiceInterval(e,s,n)}this.updateActualRange(e,a,l,r)},e.prototype.findNormal=function(e,t,i,o,r){var n,a,l=t;t<0?(l=0,.365*o>=o+(n=t+.05*t)%o&&(n-=o),n%o<0&&(n=n-o-n%o)):(n=t<5/6*i?0:t-.5*(i-t))%o>0&&(n-=n%o),.365*o>=o-(a=i>0?i+.05*(i-l):i-.05*(i-l))%o&&(a+=o),a%o>0&&(a=a+o-a%o),e.doubleRange=new T(n,a),(0===n||n<0&&a<0)&&(o=this.calculateNumericNiceInterval(e,e.doubleRange.delta,r),a=Math.ceil(a/o)*o),this.updateActualRange(e,n,a,o)},e.prototype.calculateVisibleRange=function(e,i){if(i.visibleRange={max:i.actualRange.max,min:i.actualRange.min,delta:i.actualRange.delta,interval:i.actualRange.interval},"Cartesian"===this.chart.chartAreaType){var o=!(0,t.isNullOrUndefined)(i.zoomingScrollBar)&&i.zoomingScrollBar.isLazyLoad;(i.zoomFactor<1||i.zoomPosition>0)&&!o&&(i.calculateVisibleRangeOnZooming(),i.visibleRange.interval=i.enableAutoIntervalOnZooming?this.calculateNumericNiceInterval(i,i.doubleRange.delta,e):i.visibleRange.interval)}var r=(i.visibleRange.max-i.visibleRange.min)%i.visibleRange.interval;if(0!==r&&!isNaN(r)&&"Double"===i.valueType&&"Vertical"===i.orientation&&"Auto"===i.rangePadding){for(var n=void 0,a=i.visibleRange.min;a<=i.visibleRange.max&&n!==a;a+=i.visibleRange.interval)n=a;n<i.visibleRange.max&&(i.visibleRange.max=n+i.visibleRange.interval)}i.triggerRangeRender(this.chart,i.visibleRange.min,i.visibleRange.max,i.visibleRange.interval)},e.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r=e.visibleRange.min;!("chart"===i.getModuleName()&&"PolarRadar"===i.chartAreaType)&&(e.zoomFactor<1||e.zoomPosition>0||this.paddingInterval)&&(r=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval);var n,a=this.getFormat(e),l=null!==a.match("{value}"),s=0,h=0;for(e.labelFormat&&e.labelFormat.indexOf("n")>-1&&(h=parseInt(e.labelFormat.substring(1,e.labelFormat.length),10)),e.format=i.intl.getNumberFormat({format:l?"":a,useGrouping:i.useGroupingSeparator}),e.startLabel=e.format(e.visibleRange.min),e.endLabel=e.format(e.visibleRange.max),e.visibleRange.interval&&(e.visibleRange.interval+"").indexOf(".")>=0&&(s=(e.visibleRange.interval+"").split(".")[1].length);r<=e.visibleRange.max&&n!==r;r+=e.visibleRange.interval)n=r,o=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),ot(r,e.visibleRange)&&Vt(i,r,this.formatValue(e,l,a,r),o,e);r&&(r+"").indexOf(".")>=0&&(r+"").split(".")[1].length>10&&(r=(r+"").split(".")[1].length>(h||s)?+r.toFixed(h||s):r)<=e.visibleRange.max&&Vt(i,r,this.formatValue(e,l,a,r),o,e),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},e.prototype.getFormat=function(e){return e.labelFormat?0===e.labelFormat.indexOf("p")&&-1===e.labelFormat.indexOf("{value}")&&e.isStack100?"{value}%":e.labelFormat:e.isStack100?"{value}%":""},e.prototype.formatValue=function(e,t,i,o){var r=o%1?Number(o.toLocaleString("en-US").split(",").join("")):o;return t?i.replace("{value}",e.format(r)):i?e.format(o):e.format(r)},e.prototype.getModuleName=function(){return"Double"},e.prototype.destroy=function(){},e}(),_="loaded",I="legendClick",O="load",z="animationComplete",B="legendRender",N="textRender",V="pointRender",H="sharedTooltipRender",W="seriesRender",j="axisLabelRender",U="axisLabelClick",X="axisRangeCalculated",G="axisMultiLabelRender",Y="tooltipRender",Z="chartMouseMove",q="chartMouseClick",Q="chartDoubleClick",$="pointClick",K="pointDoubleClick",J="pointMove",ee="chartMouseLeave",te="chartMouseDown",ie="chartMouseUp",oe="zoomComplete",re="dragComplete",ne="selectionComplete",ae="resized",le="beforeResize",se="beforePrint",he="annotationRender",ce="scrollStart",de="scrollEnd",pe="scrollChanged",ue="stockEventRender",ge="multiLevelLabelClick",me="dragStart",ye="drag",fe="dragEnd",ve=/~\d+~/g,be=/\^\d+\^/g,xe="beforeExport",Se="afterExport",Ce="bulletChartMouseClick",Fe="onZooming",we=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Le=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Pe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)("0")],i.prototype,"x",void 0),Le([(0,t.Property)("0")],i.prototype,"y",void 0),Le([(0,t.Property)(null)],i.prototype,"content",void 0),Le([(0,t.Property)("Center")],i.prototype,"horizontalAlignment",void 0),Le([(0,t.Property)("Pixel")],i.prototype,"coordinateUnits",void 0),Le([(0,t.Property)("Chart")],i.prototype,"region",void 0),Le([(0,t.Property)("Middle")],i.prototype,"verticalAlignment",void 0),Le([(0,t.Property)(null)],i.prototype,"xAxisName",void 0),Le([(0,t.Property)(null)],i.prototype,"yAxisName",void 0),Le([(0,t.Property)(null)],i.prototype,"description",void 0),Le([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),Ae=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)("")],i.prototype,"color",void 0),Le([(0,t.Property)(1)],i.prototype,"width",void 0),Le([(0,t.Property)("Rectangle")],i.prototype,"type",void 0),i}(t.ChildProperty),Me=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)(null)],i.prototype,"start",void 0),Le([(0,t.Property)(null)],i.prototype,"end",void 0),Le([(0,t.Property)("")],i.prototype,"text",void 0),Le([(0,t.Property)(null)],i.prototype,"maximumTextWidth",void 0),Le([(0,t.Property)(null)],i.prototype,"customAttributes",void 0),Le([(0,t.Property)("")],i.prototype,"type",void 0),i}(t.ChildProperty),De=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)(!0)],i.prototype,"visible",void 0),Le([(0,t.Property)(!1)],i.prototype,"startFromAxis",void 0),Le([(0,t.Property)(null)],i.prototype,"start",void 0),Le([(0,t.Property)(null)],i.prototype,"end",void 0),Le([(0,t.Property)(null)],i.prototype,"size",void 0),Le([(0,t.Property)("#808080")],i.prototype,"color",void 0),Le([(0,t.Property)(null)],i.prototype,"dashArray",void 0),Le([(0,t.Property)("Auto")],i.prototype,"sizeType",void 0),Le([(0,t.Property)(!1)],i.prototype,"isRepeat",void 0),Le([(0,t.Property)(null)],i.prototype,"repeatEvery",void 0),Le([(0,t.Property)(null)],i.prototype,"repeatUntil",void 0),Le([(0,t.Property)(!1)],i.prototype,"isSegmented",void 0),Le([(0,t.Property)(null)],i.prototype,"segmentStart",void 0),Le([(0,t.Property)(null)],i.prototype,"segmentEnd",void 0),Le([(0,t.Property)(null)],i.prototype,"segmentAxisName",void 0),Le([(0,t.Complex)({color:"transparent",width:1},u)],i.prototype,"border",void 0),Le([(0,t.Property)("")],i.prototype,"text",void 0),Le([(0,t.Property)(null)],i.prototype,"rotation",void 0),Le([(0,t.Property)("Middle")],i.prototype,"horizontalAlignment",void 0),Le([(0,t.Property)("Middle")],i.prototype,"verticalAlignment",void 0),Le([(0,t.Complex)({size:"12px",color:null,fontStyle:"Normal",fontWeight:"400",fontFamily:null},s)],i.prototype,"textStyle",void 0),Le([(0,t.Property)("Behind")],i.prototype,"zIndex",void 0),Le([(0,t.Property)(1)],i.prototype,"opacity",void 0),Le([(0,t.Property)("")],i.prototype,"imageUrl",void 0),i}(t.ChildProperty),ke=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Le([(0,t.Property)("Wrap")],i.prototype,"overflow",void 0),Le([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},s)],i.prototype,"textStyle",void 0),Le([(0,t.Complex)({color:null,width:1,type:"Rectangle"},Ae)],i.prototype,"border",void 0),Le([(0,t.Collection)([],Me)],i.prototype,"categories",void 0),i}(t.ChildProperty),Re=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)(null)],i.prototype,"minimum",void 0),Le([(0,t.Property)(null)],i.prototype,"maximum",void 0),i}(t.ChildProperty),Te=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)(!1)],i.prototype,"enable",void 0),Le([(0,t.Property)(null)],i.prototype,"pointsLength",void 0),Le([(0,t.Complex)({},Re)],i.prototype,"range",void 0),Le([(0,t.Property)(null)],i.prototype,"trackColor",void 0),Le([(0,t.Property)(0)],i.prototype,"scrollbarRadius",void 0),Le([(0,t.Property)(null)],i.prototype,"scrollbarColor",void 0),Le([(0,t.Property)(0)],i.prototype,"trackRadius",void 0),Le([(0,t.Property)(null)],i.prototype,"gripColor",void 0),Le([(0,t.Property)(16)],i.prototype,"height",void 0),Le([(0,t.Property)(!0)],i.prototype,"enableZoom",void 0),Le([(0,t.Property)("PlaceNextToAxisLine")],i.prototype,"position",void 0),i}(t.ChildProperty),Ee=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)("Far")],i.prototype,"horizontalAlignment",void 0),Le([(0,t.Property)("Top")],i.prototype,"verticalAlignment",void 0),Le([(0,t.Property)(0)],i.prototype,"x",void 0),Le([(0,t.Property)(0)],i.prototype,"y",void 0),Le([(0,t.Property)(!1)],i.prototype,"draggable",void 0),i}(t.ChildProperty),_e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return we(i,e),Le([(0,t.Property)(!1)],i.prototype,"visible",void 0),Le([(0,t.Property)("transparent")],i.prototype,"fill",void 0),Le([(0,t.Property)(null)],i.prototype,"format",void 0),Le([(0,t.Property)(0)],i.prototype,"angle",void 0),Le([(0,t.Property)(5)],i.prototype,"rx",void 0),Le([(0,t.Property)(5)],i.prototype,"ry",void 0),Le([(0,t.Complex)({left:5,right:5,top:5,bottom:5},m)],i.prototype,"margin",void 0),Le([(0,t.Complex)({width:null,color:null},u)],i.prototype,"border",void 0),Le([(0,t.Complex)({size:null,color:null,fontStyle:null,fontWeight:"Bold",fontFamily:null},h)],i.prototype,"font",void 0),i}(t.ChildProperty),Ie=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Oe=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ze=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t.insideFarSizes=[],t.insideNearSizes=[],t}return Ie(i,e),i.prototype.computeSize=function(e,t,i,o){var r=0;e.visible&&e.internalVisibility&&(r+=e.findTickSize(e.crossInAxis)+("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:t)+e.findLabelSize(e.crossInAxis,5,i,o)+.5*e.lineStyle.width),e.isAxisOpposedPosition?this.farSizes.push(r):this.nearSizes.push(r)},Oe([(0,t.Property)("100%")],i.prototype,"height",void 0),Oe([(0,t.Complex)({},u)],i.prototype,"border",void 0),i}(t.ChildProperty),Be=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t.insideFarSizes=[],t.insideNearSizes=[],t.padding=0,t}return Ie(i,e),i.prototype.computeSize=function(e,t,i,o){var r=0;e.visible&&e.internalVisibility&&(r+=e.findTickSize(e.crossInAxis)+("Top"===e.scrollbarSettings.position||"Bottom"===e.scrollbarSettings.position?0:t)+e.findLabelSize(e.crossInAxis,5,i,o)+.5*e.lineStyle.width),e.isAxisOpposedPosition?this.farSizes.push(r):this.nearSizes.push(r)},Oe([(0,t.Property)("100%")],i.prototype,"width",void 0),Oe([(0,t.Complex)({},u)],i.prototype,"border",void 0),i}(t.ChildProperty),Ne=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ie(i,e),Oe([(0,t.Property)(1)],i.prototype,"width",void 0),Oe([(0,t.Property)("")],i.prototype,"dashArray",void 0),Oe([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Ve=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ie(i,e),Oe([(0,t.Property)(.7)],i.prototype,"width",void 0),Oe([(0,t.Property)("")],i.prototype,"dashArray",void 0),Oe([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),He=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ie(i,e),Oe([(0,t.Property)(1)],i.prototype,"width",void 0),Oe([(0,t.Property)("")],i.prototype,"dashArray",void 0),Oe([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),We=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ie(i,e),Oe([(0,t.Property)(1)],i.prototype,"width",void 0),Oe([(0,t.Property)(5)],i.prototype,"height",void 0),Oe([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),je=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ie(i,e),Oe([(0,t.Property)(.7)],i.prototype,"width",void 0),Oe([(0,t.Property)(5)],i.prototype,"height",void 0),Oe([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Ue=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ie(i,e),Oe([(0,t.Property)(!1)],i.prototype,"enable",void 0),Oe([(0,t.Property)(null)],i.prototype,"fill",void 0),Oe([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),Xe=function(e){function i(t,i,o,r){var n=e.call(this,t,i,o,r)||this;return n.visibleLabels=[],n.series=[],n.rect=new R.Rect(void 0,void 0,0,0),n.axisBottomLine=null,n.intervalDivs=[10,5,2,1],n.isStack100=!1,n.crossAt=null,n.updatedRect=null,n.multiLevelLabelHeight=0,n.isChart=!0,n.isIntervalInDecimal=!0,n.titleCollection=[],n.titleSize=new R.Size(0,0),n.internalVisibility=!0,n.isRTLEnabled=!1,n.angle=n.labelRotation,n}return Ie(i,e),i.prototype.findTickSize=function(e){return"Inside"===this.tickPosition?0:!e||e.visibleRange&&!this.isInside(e.visibleRange)?this.majorTickLines.height:0},i.prototype.isInside=function(e){return it(this.crossAt,e)||!this.isAxisOpposedPosition&&this.crossAt>=e.max||this.isAxisOpposedPosition&&this.crossAt<=e.min},i.prototype.findLabelSize=function(e,i,o,r){var n,a,l=0,s="Horizontal"===this.orientation;if(this.title){var h=this.titleRotation;if((0,t.isNullOrUndefined)(h)?(this.titleSize=(0,R.measureText)(this.title,this.titleStyle,r.themeStyle.axisTitleFont),l=this.titleSize.height+i):(this.titleSize=Ke(this.titleStyle,this.title,h,r,r.themeStyle.axisTitleFont),l=("Vertical"===this.orientation?this.titleSize.width:this.titleSize.height)+i),this.rect.width||this.rect.height){var c=s?this.rect.width:this.rect.height;this.titleCollection=Ti(this.title,this.titleStyle,c,r.enableRtl,r.themeStyle.axisTitleFont),l*=this.titleCollection.length}}var d=l+i+this.titlePadding+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight;if(e&&this.placeNextToAxisLine){var p=e.visibleRange,u="Horizontal"===e.orientation?e.rect.width:e.rect.height;if(!p||!u)return 0;this.isInside(p)&&(d=(n=(a=this.findDifference(e))*((u-((n=a*(u/p.delta))<d?d-n:0))/p.delta))<d?d-n:0)}var g=""!==this.title&&5!==this.titlePadding?this.titlePadding:0;return this.isAxisOpposedPosition?o.insideFarSizes.push(d):o.insideNearSizes.push(d),"Inside"===this.labelPosition?(i=r.axes.indexOf(this)>-1?-5:5,this.isAxisOpposedPosition&&o.farSizes.length<1||!this.isAxisOpposedPosition&&o.nearSizes.length<1?l+i+g:this.isAxisOpposedPosition?l+i+g+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)+this.multiLevelLabelHeight:l+i+g):d},i.prototype.updateCrossValue=function(){var e=this.crossAt;if(null===e||!this.isInside(this.crossInAxis.visibleRange))return this.updatedRect=this.rect,null;var i=this.crossInAxis.visibleRange;this.isAxisOpposedPosition?this.crossAt<i.min&&(e=i.min):this.crossAt>i.max&&(e=i.max),this.updatedRect=(0,t.extend)({},this.rect,null,!0),"Horizontal"===this.orientation?(e=this.crossInAxis.rect.height-yt(e,this.crossInAxis)*this.crossInAxis.rect.height,this.updatedRect.y=this.crossInAxis.rect.y+e):(e=yt(e,this.crossInAxis)*this.crossInAxis.rect.width,this.updatedRect.x=this.crossInAxis.rect.x+e)},i.prototype.findDifference=function(e){var t=0;return t=this.isAxisOpposedPosition?e.isAxisInverse?e.visibleRange.min:e.visibleRange.max:e.isAxisInverse?e.visibleRange.max:e.visibleRange.min,Math.abs(this.crossAt-t)},i.prototype.calculateVisibleRangeOnZooming=function(){if(Wt(this)){var e=this.actualRange,t=void 0,i=void 0;i=this.isAxisInverse?(t=this.actualRange.max-this.zoomPosition*this.actualRange.delta)-this.zoomFactor*this.actualRange.delta:(t=this.actualRange.min+this.zoomPosition*this.actualRange.delta)+this.zoomFactor*this.actualRange.delta,t<e.min&&(i+=e.min-t,t=e.min),i>e.max&&(t-=i-e.max,i=e.max),this.doubleRange=new T(t,i),this.visibleRange={min:this.doubleRange.start,max:this.doubleRange.end,delta:this.doubleRange.delta,interval:this.visibleRange.interval}}},i.prototype.triggerRangeRender=function(e,t,i,o){var r={cancel:!1,name:X,axis:this,minimum:t,maximum:i,interval:o};e.trigger(X,r),r.cancel||(this.visibleRange={min:r.minimum,max:r.maximum,interval:r.interval,delta:r.maximum-r.minimum})},i.prototype.getRangePadding=function(e){var t=this.rangePadding;if("Auto"!==t)return t;switch(this.orientation){case"Horizontal":t=e.requireInvertedAxis?this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal":"None";break;case"Vertical":t=e.requireInvertedAxis?"None":this.isStack100||this.baseModule.chart.stockChart?"Round":"Normal"}return t},i.prototype.getMaxLabelWidth=function(e){var i,o,r=this,n=0,a=!1;this.angle=this.labelRotation,this.maxLabelSize=new R.Size(0,0);var l,s=this.labelIntersectAction;if(!this.labelTemplate||(0,t.isNullOrUndefined)(this.labelTemplate)){for(var h=function(t,h){if(l=c.visibleLabels[t],o=qe(l.originalText))l.size=(0,R.measureText)(l.originalText.replace(/<br>/g," "),c.labelStyle,e.themeStyle.axisLabelFont),l.breakLabelSize=(0,R.measureText)(c.enableTrim?l.text.join("<br>"):l.originalText,c.labelStyle,e.themeStyle.axisLabelFont);else if(c.enableWrap){var d=e.initialClipRect.height/c.visibleLabels.length;l.text=_i(l.text,c.maximumLabelWidth,c.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont,"Vertical"===c.orientation?d:null);var p=0,u=0;l.text.forEach(function(t){var i=(0,R.measureText)(t,r.labelStyle,e.themeStyle.axisLabelFont);p=Math.max(p,i.width),u+=i.height}),l.size.width=p,l.size.height=u}else-90!==c.angle&&90!==c.angle&&270!==c.angle&&-270!==c.angle||"Vertical"!==c.orientation?l.size=(0,R.measureText)(l.text,c.labelStyle,e.themeStyle.axisLabelFont):l.size=Ke(c.labelStyle,l.text,c.angle,e,e.themeStyle.axisLabelFont);var g=o?l.breakLabelSize.width:l.size.width;g>c.maxLabelSize.width&&(c.maxLabelSize.width=g,c.rotatedLabel=l.text);var m=o?l.breakLabelSize.height:l.size.height;if(m>c.maxLabelSize.height&&(c.maxLabelSize.height=m),o&&(l.text=c.enableTrim?l.text:l.originalText.split("<br>")),"None"===s||"Hide"===s||"Trim"===s)return"continue";if(("None"!==s||c.angle%360==0)&&"Horizontal"===c.orientation&&c.rect.width>0&&!a){var y=o?l.breakLabelSize.width:l.size.width;switch(i=yt(l.value,c)*c.rect.width+c.rect.x,i-=y/2,"Shift"===c.edgeLabelPlacement&&(0===t&&i<c.rect.x&&(i=c.rect.x),t===c.visibleLabels.length-1&&i+y>c.rect.x+c.rect.width&&(i=c.rect.x+c.rect.width-y)),s){case"MultipleRows":t>0&&c.findMultiRows(t,i,l,o);break;case"Rotate45":case"Rotate90":t>0&&(c.isAxisInverse?i+y>=n:i<=n)&&(c.angle="Rotate45"===s?45:90,a=!0);break;default:if(o){for(var f=void 0,v=[],b=void 0,x=0;x<l.text.length;x++)if((f=_i(l.text[x],c.rect.width/c.visibleLabels.length,c.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont)).length>1)for(var S=0;S<f.length;S++)b=f[S],v.push(b);else v.push(f[0]);l.text=v}else l.text=_i(l.text,c.rect.width/c.visibleLabels.length,c.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont);var C=l.size.height*l.text.length;C>c.maxLabelSize.height&&(c.maxLabelSize.height=C)}n=c.isAxisInverse?i:i+y}},c=this,d=0,p=this.visibleLabels.length;d<p;d++)h(d);if(0!==this.angle&&"Horizontal"===this.orientation){this.rotatedLabel=(0,t.isNullOrUndefined)(this.rotatedLabel)?"":this.rotatedLabel;var u=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;"Outside"===this.labelPosition&&!u&&qe(this.rotatedLabel)?this.maxLabelSize=new R.Size(this.maxLabelSize.height,this.maxLabelSize.width):this.maxLabelSize=Ke(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont)}else if(0!==this.angle&&"Vertical"===this.orientation){this.rotatedLabel=(0,t.isNullOrUndefined)(this.rotatedLabel)?"":this.rotatedLabel;u=-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle;"Outside"===this.labelPosition&&!u&&qe(this.rotatedLabel)?this.maxLabelSize=new R.Size(this.maxLabelSize.height,this.maxLabelSize.width):this.maxLabelSize=Ke(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont)}e.multiLevelLabelModule&&this.multiLevelLabels.length>0&&e.multiLevelLabelModule.getMultilevelLabelsHeight(this)}else this.getMaxTemplateLabelWidth(e)},i.prototype.getMaxTemplateLabelWidth=function(e){for(var i,o,r=0,n=!1,a=this.labelIntersectAction,l=0,s=this.visibleLabels.length;l<s;l++){o=this.visibleLabels[l];var h=ti(Jt((0,t.createElement)("div",{id:"_AxisLabelTemplate_",styles:"position:absolute; cursor: default; white-space: nowrap;pointer-events:none; z-index:1;"}),l,this.labelTemplate,e,o),e.redraw),c=h.width,d=h.height;if(o.size=new R.Size(c,d),c>this.maxLabelSize.width&&(this.maxLabelSize.width=c),d>this.maxLabelSize.height&&(this.maxLabelSize.height=d),"None"!==a&&"Hide"!==a&&"Horizontal"===this.orientation&&this.rect.width>0&&!n){var p=o.size.width;switch(i=yt(o.value,this)*this.rect.width+this.rect.x,i-=p/2,"Shift"===this.edgeLabelPlacement&&(0===l&&i<this.rect.x&&(i=this.rect.x),l===this.visibleLabels.length-1&&i+p>this.rect.x+this.rect.width&&(i=this.rect.x+this.rect.width-p)),a){case"Rotate45":case"Rotate90":l>0&&(this.isAxisInverse?i+p>=r:i<=r)&&(this.angle="Rotate45"===a?45:90,n=!0)}r=this.isAxisInverse?i:i+p}}if(this.maxLabelSize.height=0===this.visibleLabels.length&&this.crosshairTooltip.enable?15.96:this.maxLabelSize.height,0!==this.rect.height&&(this.maxLabelSize.height=Math.min(this.maxLabelSize.height,this.rect.height/2)),0!==this.rect.width&&(this.maxLabelSize.width=Math.min(this.maxLabelSize.width,this.rect.width/2)),0!==this.angle&&"Horizontal"===this.orientation){var u=this.angle*(Math.PI/180);c=this.maxLabelSize.width,d=this.maxLabelSize.height;this.maxLabelSize=new R.Size(Math.abs(c*Math.cos(u))+Math.abs(d*Math.sin(u)),Math.abs(c*Math.sin(u))+Math.abs(d*Math.cos(u)))}e.multiLevelLabelModule&&this.multiLevelLabels.length>0&&e.multiLevelLabelModule.getMultilevelLabelsHeight(this)},i.prototype.findMultiRows=function(e,t,i,o){for(var r,n,a,l=[],s=e-1;s>=0;s--)r=this.visibleLabels[s],a=o?r.breakLabelSize.width:r.size.width,n=yt(r.value,this)*this.rect.width+this.rect.x,(this.isAxisInverse?t+i.size.width>n-.5*a:t<n+.5*a)?(l.push(r.index),i.index=i.index>r.index?i.index:r.index+1):i.index=l.indexOf(r.index)>-1?i.index:r.index;var h=(o?i.breakLabelSize.height:i.size.height)*i.index+5*(i.index-1);h>this.maxLabelSize.height&&(this.maxLabelSize.height=h)},i.prototype.getModule=function(e){"Double"===this.valueType?this.baseModule=new E(e):this.baseModule=e[kt(this.valueType)+"Module"]},i.prototype.setIsInversedAndOpposedPosition=function(e){void 0===e&&(e=!1),this.isAxisOpposedPosition=this.opposedPosition||!e&&this.isRTLEnabled&&"Vertical"===this.orientation,this.opposedPosition&&!e&&this.isRTLEnabled&&"Vertical"===this.orientation&&(this.isAxisOpposedPosition=!1),this.isAxisInverse=this.isInversed||this.isRTLEnabled&&"Horizontal"===this.orientation,this.isInversed&&!e&&this.isRTLEnabled&&"Horizontal"===this.orientation&&(this.isAxisInverse=!1)},i.prototype.updateAxis=function(){var e=this.baseModule.chart,t=e.chartAxisLayoutPanel,i=e.axisCollections.indexOf(this),o=qt(e.element.id+"AxisInsideCollection"),r=qt(e.element.id+"AxisOutsideCollection");t.element=e.renderer.createGroup({id:e.element.id+"AxisGroup"+i+"Inside"});var n=e.renderer.createGroup({id:e.element.id+"AxisGroup"+i+"Outside"}),a=t.findAxisPosition(this);t.drawAxis(this,i,a,n,o,r),e.enableCanvas||ni(e.enableCanvas,o,t.element,e.redraw)},Oe([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},s)],i.prototype,"labelStyle",void 0),Oe([(0,t.Complex)({},Ue)],i.prototype,"crosshairTooltip",void 0),Oe([(0,t.Property)("")],i.prototype,"title",void 0),Oe([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"titleStyle",void 0),Oe([(0,t.Property)("")],i.prototype,"labelFormat",void 0),Oe([(0,t.Property)("")],i.prototype,"skeleton",void 0),Oe([(0,t.Property)("DateTime")],i.prototype,"skeletonType",void 0),Oe([(0,t.Property)("Center")],i.prototype,"lineBreakAlignment",void 0),Oe([(0,t.Property)(0)],i.prototype,"plotOffset",void 0),Oe([(0,t.Property)(null)],i.prototype,"plotOffsetLeft",void 0),Oe([(0,t.Property)(null)],i.prototype,"plotOffsetTop",void 0),Oe([(0,t.Property)(null)],i.prototype,"plotOffsetRight",void 0),Oe([(0,t.Property)(null)],i.prototype,"plotOffsetBottom",void 0),Oe([(0,t.Property)(!1)],i.prototype,"isIndexed",void 0),Oe([(0,t.Property)(10)],i.prototype,"logBase",void 0),Oe([(0,t.Property)(0)],i.prototype,"columnIndex",void 0),Oe([(0,t.Property)(0)],i.prototype,"rowIndex",void 0),Oe([(0,t.Property)(1)],i.prototype,"span",void 0),Oe([(0,t.Property)(null)],i.prototype,"desiredIntervals",void 0),Oe([(0,t.Property)(3)],i.prototype,"maximumLabels",void 0),Oe([(0,t.Property)(1)],i.prototype,"zoomFactor",void 0),Oe([(0,t.Property)(0)],i.prototype,"zoomPosition",void 0),Oe([(0,t.Property)(!0)],i.prototype,"enableScrollbarOnZooming",void 0),Oe([(0,t.Property)(!1)],i.prototype,"opposedPosition",void 0),Oe([(0,t.Property)(!0)],i.prototype,"enableAutoIntervalOnZooming",void 0),Oe([(0,t.Property)("Auto")],i.prototype,"rangePadding",void 0),Oe([(0,t.Property)("Double")],i.prototype,"valueType",void 0),Oe([(0,t.Property)("Shift")],i.prototype,"edgeLabelPlacement",void 0),Oe([(0,t.Property)("Auto")],i.prototype,"intervalType",void 0),Oe([(0,t.Property)("BetweenTicks")],i.prototype,"labelPlacement",void 0),Oe([(0,t.Property)("Outside")],i.prototype,"tickPosition",void 0),Oe([(0,t.Property)("Outside")],i.prototype,"labelPosition",void 0),Oe([(0,t.Property)(null)],i.prototype,"labelTemplate",void 0),Oe([(0,t.Property)("")],i.prototype,"name",void 0),Oe([(0,t.Property)(!0)],i.prototype,"visible",void 0),Oe([(0,t.Property)(0)],i.prototype,"minorTicksPerInterval",void 0),Oe([(0,t.Property)(0)],i.prototype,"labelRotation",void 0),Oe([(0,t.Property)(null)],i.prototype,"titleRotation",void 0),Oe([(0,t.Property)(null)],i.prototype,"crossesAt",void 0),Oe([(0,t.Property)(!0)],i.prototype,"placeNextToAxisLine",void 0),Oe([(0,t.Property)(null)],i.prototype,"crossesInAxis",void 0),Oe([(0,t.Property)(null)],i.prototype,"minimum",void 0),Oe([(0,t.Property)(null)],i.prototype,"maximum",void 0),Oe([(0,t.Property)(null)],i.prototype,"interval",void 0),Oe([(0,t.Property)(34)],i.prototype,"maximumLabelWidth",void 0),Oe([(0,t.Property)(!1)],i.prototype,"enableTrim",void 0),Oe([(0,t.Property)(!1)],i.prototype,"enableWrap",void 0),Oe([(0,t.Property)(5)],i.prototype,"labelPadding",void 0),Oe([(0,t.Property)(5)],i.prototype,"titlePadding",void 0),Oe([(0,t.Complex)({},We)],i.prototype,"majorTickLines",void 0),Oe([(0,t.Complex)({},je)],i.prototype,"minorTickLines",void 0),Oe([(0,t.Complex)({},Ne)],i.prototype,"majorGridLines",void 0),Oe([(0,t.Complex)({},Ve)],i.prototype,"minorGridLines",void 0),Oe([(0,t.Complex)({},He)],i.prototype,"lineStyle",void 0),Oe([(0,t.Property)(t.Browser.isDevice?"Rotate45":"Trim")],i.prototype,"labelIntersectAction",void 0),Oe([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),Oe([(0,t.Property)(100)],i.prototype,"coefficient",void 0),Oe([(0,t.Property)(0)],i.prototype,"startAngle",void 0),Oe([(0,t.Property)(!0)],i.prototype,"startFromZero",void 0),Oe([(0,t.Property)(null)],i.prototype,"description",void 0),Oe([(0,t.Property)(2)],i.prototype,"tabIndex",void 0),Oe([(0,t.Collection)([],De)],i.prototype,"stripLines",void 0),Oe([(0,t.Collection)([],ke)],i.prototype,"multiLevelLabels",void 0),Oe([(0,t.Complex)({color:null,width:0,type:"Rectangle"},Ae)],i.prototype,"border",void 0),Oe([(0,t.Complex)({},Te)],i.prototype,"scrollbarSettings",void 0),i}(t.ChildProperty),Ge=function(e,t,i,o,r,n,a){void 0===r&&(r=new R.Size(0,0)),void 0===n&&(n=new R.Size(0,0)),void 0===a&&(a=1),this.text=e,this.originalText=o,this.value=t,this.labelStyle=i,this.size=r,this.breakLabelSize=n,this.index=a},Ye=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();function Ze(e,i,o){for(var r=(0,t.extend)([],e,null),n=0;n<r.length;n++)for(var a=0;a<i.length;a++)r[n][i[a]]instanceof Date&&(r[n][i[a]]=r[n][i[a]].getTime());return r.sort(function(e,t){for(var r=0,n=0,a=0;a<i.length;a++)r+=e[i[a]],n+=t[i[a]];return!o&&r<n||o&&r>n?-1:r===n?0:1}),r}function qe(e){return-1!==e.indexOf("<br>")}function Qe(e){for(var i,o=(0,t.extend)([],e.points,null,!0),r=[],n=0,a=0;a<o.length;a++)i=o[a],(0,t.isNullOrUndefined)(i.x)||(i.index=n++,r.push(i));return r}function $e(e,t){var i,o=e.component,r=0,n=0,a="Top"===o.titleStyle.position||"Bottom"===o.titleStyle.position&&!o.legendSettings.visible?15:5;return o.title&&(r=(0,R.measureText)(o.title,o.titleStyle,o.themeStyle.chartTitleFont).height*o.titleCollection.length+a,o.subTitle&&(n=(0,R.measureText)(o.subTitle,o.subTitleStyle,o.themeStyle.chartSubTitleFont).height*o.subTitleCollection.length)),t?"Top"===e.axis.scrollbarSettings.position?(i=o.margin.top+5+(e.height+5)*o.scrollBarModule.topScrollBarCount+("Top"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Top"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.topScrollBarCount++):"Bottom"===e.axis.scrollbarSettings.position&&(i=o.availableSize.height-((e.height+5)*o.scrollBarModule.bottomScrollBarCount+e.height+o.margin.bottom+5+("Bottom"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Bottom"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.bottomScrollBarCount++):"Right"===e.axis.scrollbarSettings.position?(i=o.availableSize.width-((e.height+5)*o.scrollBarModule.rightScrollBarCount+e.height+5+o.margin.right+("Right"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Right"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0)),o.scrollBarModule.rightScrollBarCount++):"Left"===e.axis.scrollbarSettings.position&&(i=o.margin.left+5+(e.height+5)*o.scrollBarModule.leftScrollBarCount+("Left"===o.titleStyle.position?r+o.titleStyle.border.width:0)+("Left"===o.subTitleStyle.position?o.subTitleStyle.border.width+n:0),o.scrollBarModule.leftScrollBarCount++),i}function Ke(e,i,o,r,n){var a=r.element.style.transform;a&&(r.element.style.transform="");var l,s,h,c,d,p=new R.SvgRenderer(r.element.id),u=[],g={id:"rotate_text",x:r.initialClipRect.x,y:r.initialClipRect.y,"font-size":e.size||n.size,"font-style":e.fontStyle||n.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight||n.fontWeight,transform:"rotate("+o+", 0, 0)","text-anchor":"middle"};l=qe(i)?(u=i.split("<br>"))[0]:i;var m=p.createText(g,l);if(r.delayRedraw||r.redraw||r.stockChart||r.element.appendChild(r.svgObject),"string"!=typeof u&&u.length>1)for(var y=1,f=u.length;y<f;y++)s=(0,R.measureText)(u[y],e,r.themeStyle.axisLabelFont).height,h=g.y+y*s,c=u[y],d=p.createTSpan({x:g.x,id:g.id,y:h},c),m.appendChild(d);var v=r.svgRenderer.createSvg({id:"AxisLabelMax_svg",width:r.availableSize.width,height:r.availableSize.height});document.body.appendChild(v),v.appendChild(m);var b=m.getBoundingClientRect();if(a&&(r.element.style.transform=a),(0,t.remove)(v),r.delayRedraw||r.redraw||r.stockChart||r.pointsAdded||(0,t.remove)(r.svgObject),r.enableCanvas){var x=(0,R.measureText)(i,e,r.themeStyle.axisLabelFont).width,S=(0,R.measureText)(i,e,r.themeStyle.axisLabelFont).height,C=o*Math.PI/180,F=Math.abs(Math.cos(C)*x)+Math.abs(Math.sin(C)*S),w=Math.abs(Math.sin(C)*x)+Math.abs(Math.cos(C)*S);return new R.Size(F,w)}return new R.Size(b.right-b.left,b.bottom-b.top)}function Je(e){if(!e)return null;var i="string"==typeof e?qt(e):e;i&&(0,t.remove)(i)}function et(e,t){return Math.log(e)/Math.log(t)}function tt(e,i,o,r,n,a,l,s,h){var c=document.getElementById(n),d=(0,R.measureText)(e,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}),p=d.width+5;(i=i+p>r?i-(p+15):i,h&&i<h.x&&(i=h.x),o=s?o-d.height/2:o+15,h&&o+d.height>h.y+h.height&&(o-=o+d.height-(h.y+h.height)),c)?(c.innerText=e,c.style.top=o.toString()+"px",c.style.left=(i+15).toString()+"px"):((c=(0,t.createElement)("div",{id:n,styles:"top:"+o.toString()+"px;left:"+(i+15).toString()+'px;background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(112, 112, 112); padding-left : 3px; padding-right : 2px;padding-bottom : 2px; padding-top : 2px; font-size:12px; font-family: "Segoe UI"'})).innerText=e,a.appendChild(c),parseInt(c.style.left.replace("px",""),10)<0&&(c.style.left="0px"));l&&setTimeout(function(){Je(n)},1500)}function it(e,t){return e<t.max&&e>t.min}function ot(e,t){return e<=t.max&&e>=t.min}function rt(e,t){return"Logarithmic"===t.valueType?et(e,t.logBase):e}function nt(e,t,i,o){if(o.chart.zoomModule&&o.chart.zoomSettings.enableAnimation)return!0;var r=rt(t.xValue,o.xAxis),n=e?rt(e.xValue,o.xAxis):r,a=i?rt(i.xValue,o.xAxis):r,l=Math.floor(o.xAxis.visibleRange.min),s=Math.ceil(o.xAxis.visibleRange.max);return n>=l&&n<=s||r>=l&&r<=s||a>=l&&a<=s||l>=n&&l<=a}function at(e){for(var t=0,i=0,o=e;i<o.length;i++){t+=o[i]}return t}function lt(e,i,o,r,n){var a=0,l=0;if(null!==r)for(var s=i+1;s<o;s++)-1===r.indexOf(s)&&(s===n.intermediateSumIndexes[l]||n.intermediateSumIndexes[n.intermediateSumIndexes.length-1]<s)&&(a+=e[s][n.yName],s===n.intermediateSumIndexes[l]&&(l+=1));else for(s=i+1;s<o;s++)(0,t.isNullOrUndefined)(e[s][n.yName])||(0,t.isNullOrUndefined)(n.sumIndexes)||-1!==n.sumIndexes.indexOf(s)||(a+=e[s][n.yName]);return a}function st(e,t){return e.x+=t.left,e.y+=t.top,e.width-=t.left+t.right,e.height-=t.top+t.bottom,e}function ht(e,t){return e.x+=t.x,e.y+=t.y,e.width-=t.x+t.width,e.height-=t.y+t.height,e}function ct(e,t,i){var o=e*Math.PI/180;return new ji(Math.cos(o)*t+i.x,Math.sin(o)*t+i.y)}function dt(e){return e*(Math.PI/180)}function pt(e,t,i,o){for(var r=[],n=0;n<4;n++){var a=e[n],l=a.x-t,s=a.y-i,h=l*Math.cos(dt(o))-s*Math.sin(dt(o)),c=l*Math.sin(dt(o))+s*Math.cos(dt(o));a.x=h+t,a.y=c+i,r.push(new ji(a.x,a.y))}return r}function ut(e,i){var o,r,n,a,l,s,h,c,d=[e,i];for(a=0;a<d.length;a++){var p=d[a];for(l=0;l<p.length;l++){var u=(l+1)%p.length,g=p[l],m=p[u],y=new ji(m.y-g.y,g.x-m.x);for(o=r=void 0,s=0;s<e.length;s++)n=y.x*e[s].x+y.y*e[s].y,((0,t.isNullOrUndefined)(o)||n<o)&&(o=n),((0,t.isNullOrUndefined)(r)||n>r)&&(r=n);for(h=c=void 0,s=0;s<i.length;s++)n=y.x*i[s].x+y.y*i[s].y,((0,t.isNullOrUndefined)(h)||n<h)&&(h=n),((0,t.isNullOrUndefined)(c)||n>c)&&(c=n);if(r<h||c<o)return!1}}return!0}function gt(e,t){var i=Math.atan2(t.y-e.y,t.x-e.x);return(i=i<0?6.283+i:i)*(180/Math.PI)}function mt(e,t){for(var i=[],o=0;o<=t-1;o++)i.push(e[o]);return i}function yt(e,t){var i,o=t.visibleRange;return i=0===o.delta?.5:(e-o.min)/o.delta,(t.isChart?t.isAxisInverse:t.isInversed)?1-i:i}function ft(e,t,i,o,r,n){e="Logarithmic"===i.valueType?et(e>1?e:1,i.logBase):e,t="Logarithmic"===o.valueType?et(t>1?t:1,o.logBase):t,e+="Category"===i.valueType&&"BetweenTicks"===i.labelPlacement&&"Radar"!==n.type?.5:0;var a=n.chart.radius*yt(t,o),l=bt(xt(e,i),n.chart.primaryXAxis.startAngle);return{x:n.clipRect.width/2+n.clipRect.x+a*l.x,y:n.clipRect.height/2+n.clipRect.y+a*l.y}}function vt(e,t){void 0===t&&(t=!1);var i=["NaN","NaN"];return e.indexOf("_polygon")>-1?i=["NaN","NaN"]:e.indexOf("_Point_")>-1?i=e.split("_Series_")[1].split("_Point_"):e.indexOf("_shape_")>-1&&(!t||t&&-1===e.indexOf("_legend_"))?(i=e.split("_shape_"))[0]="0":e.indexOf("_text_")>-1&&(!t||t&&-1===e.indexOf("_legend_"))?(i=e.split("_text_"))[0]="0":e.indexOf("_datalabel_")>-1?(i=e.split("_datalabel_")[1].split("_g_"))[0]=i[0].replace("Series_",""):e.indexOf("TextGroup")>-1?(i=e.split("TextGroup"))[0]=i[1]:e.indexOf("ShapeGroup")>-1&&((i=e.split("ShapeGroup"))[0]=i[1]),new k(parseInt(i[0],10),parseInt(i[1],10))}function bt(e,t){t=t<0?t+360:t;var i=Math.PI*(1.5-2*e);return i+=t*Math.PI/180,{x:Math.cos(i),y:Math.sin(i)}}function xt(e,t){var i,o,r=t.visibleRange;return"Category"!==t.valueType?(i=r.max-("DateTime"===t.valueType?t.dateTimeInterval:r.interval)-r.min,o=t.visibleLabels.length-1,i=0===i?1:i):(i=1===t.visibleLabels.length?1:t.visibleLabels[t.visibleLabels.length-1].value-t.visibleLabels[0].value,o=t.visibleLabels.length),t.isAxisInverse?(e-r.min)/i*(1-1/o):1-(e-r.min)/i*(1-1/o)}var St=function(e,t,i,o,r,n){this.verticalStandardMean=e,this.horizontalStandardMean=i,this.verticalSquareRoot=t,this.horizontalSquareRoot=o,this.verticalMean=r,this.horizontalMean=n},Ct=function(e,t,i,o,r){this.startAngle=e,this.endAngle=t,this.innerRadius=i,this.radius=o,this.currentXPosition=r};function Ft(e,i,o,r,n,a){var l=qt(e),s="top:"+o.toString()+"px;left:"+r.toString()+"px;color:black !important; background:#FFFFFF !important; position:absolute;border:1px solid #707070;font-size:"+n+";border-radius:2px; z-index:1";l?(l.setAttribute("innerHTML","&nbsp;"+i+"&nbsp;"),l.style.cssText=s):(l=(0,t.createElement)("div",{id:e,innerHTML:"&nbsp;"+i+"&nbsp;",styles:s}),qt(a).appendChild(l))}function wt(e,i,o,r,n,a){for(var l,s,h,c,d,p,u=i.isAxisOpposedPosition,g=e.enableRtl?"end":n?"start":"auto",m=e.availableSize.width,y=i.scrollbarSettings.enable||i.zoomingScrollBar&&i.zoomingScrollBar.svgObject?i.scrollBarHeight:0,f=e.enableRtl&&!n&&!i.isInversed||i.isInversed&&!(e.enableRtl&&!n),v=0;v<2;v++){if(l=(0,R.measureText)(v?f?i.startLabel:i.endLabel:f?i.endLabel:i.startLabel,i.labelStyle,e.themeStyle.axisLabelFont),n?(d=v?new ji(a.x-y,a.y+3):new ji(i.rect.x-y,a.y+a.height-3),h=a.x+(u?a.width+5+y:-(l.width+5+5+y)),c=a.y+(v?0:a.height-l.height-5),h+=h<0||m<h+l.width+5?u?-l.width/2:l.width/2:0,p=Lt(3,3,new R.Rect(h,c,l.width+5,l.height+5),d,5,!1,!1,!u,d.x,d.y+(v?-3:3))):(d=new ji(v?a.x+a.width-3:a.x+3,a.y+a.height+y),h=a.x+(v?a.width-l.width-5:0),c=u?a.y-l.height-10-y:a.y+a.height+5+y,p=Lt(3,3,new R.Rect(h,c,l.width+5,l.height+5),d,5,u,!u,!1,d.x+(v?3:-3),d.y)),h+=2.5,c=c+l.height/4*3+2.5,s=e.renderer.drawPath({id:e.element.id+"_Zoom_"+r+"_AxisLabel_Shape_"+v,fill:e.themeStyle.crosshairFill,width:2,color:e.themeStyle.crosshairFill,opacity:1,"stroke-dasharray":null,d:p},null),o.appendChild(s),"Fluent"===e.theme||"FluentDark"===e.theme){var b=e.element.id+"_shadow";s.setAttribute("filter",t.Browser.isIE?"":"url(#"+b+")");var x='<filter id="'+b+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';x+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',x+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var S=e.renderer.createDefs();S.setAttribute("id",e.element.id+"SVG_tooltip_definition"),o.appendChild(S),S.innerHTML=x,s.setAttribute("stroke","#cccccc"),s.setAttribute("stroke-width","0.5")}Di(e.renderer,new R.TextOption(e.element.id+"_Zoom_"+r+"_AxisLabel_"+v,h,c,g,v?f?i.startLabel:i.endLabel:f?i.endLabel:i.startLabel),{color:e.themeStyle.crosshairLabelFont.color,fontFamily:"Segoe UI",fontWeight:"Regular",size:"11px"},e.themeStyle.crosshairLabelFont.color,o,null,null,null,null,null,null,null,null,null,null,e.themeStyle.crosshairLabelFont)}return o}function Lt(e,t,i,o,r,n,a,l,s,h){var c="",d=i.x,p=i.y,u=i.x+i.width,g=i.y+i.height;return n?(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g),0!==r&&(c=(c=c.concat(" L "+(o.x+r/2)+" "+g)).concat(" L "+s+" "+(g+r)+" L "+(o.x-r/2)+" "+g)),c=o.x-r/2>d||0===r?c.concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):c.concat(" L "+d+" "+(g+t)+" z")):c=a?(c=(c=(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p+" L "+(o.x-r/2)+" "+p)).concat(" L "+s+" "+o.y)).concat(" L "+(o.x+r/2)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g)).concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):l?(c=(c=(c=(c=(c=c.concat("M "+d+" "+(p+t)+" Q "+d+" "+p+" "+(d+e)+" "+p)).concat(" L "+(u-e)+" "+p+" Q "+u+" "+p+" "+u+" "+(p+t)+" L "+u+" "+(o.y-r/2))).concat(" L "+(u+r)+" "+h)).concat(" L "+u+" "+(o.y+r/2))).concat(" L "+u+" "+(g-t)+" Q "+u+" "+g+" "+(u-e)+" "+g)).concat(" L "+(d+e)+" "+g+" Q "+d+" "+g+" "+d+" "+(g-t)+" z"):(c=(c=(c=(c=(c=c.concat("M "+(d+e)+" "+p+" Q "+d+" "+p+" "+d+" "+(p+t)+" L "+d+" "+(o.y-r/2))).concat(" L "+(d-r)+" "+h)).concat(" L "+d+" "+(o.y+r/2))).concat(" L "+d+" "+(g-t)+" Q "+d+" "+g+" "+(d+e)+" "+g)).concat(" L "+(u-e)+" "+g+" Q "+u+" "+g+" "+u+" "+(g-t))).concat(" L "+u+" "+(p+t)+" Q "+u+" "+p+" "+(u-e)+" "+p+" z"),c}function Pt(e,t,i,o,r){return void 0===o&&(o=0),void 0===r&&(r=0),e>=i.x-o&&e<=i.x+i.width+o&&t>=i.y-r&&t<=i.y+i.height+r}function At(e,t,i){return(i.isAxisInverse?1-e/t:e/t)*i.visibleRange.delta+i.visibleRange.min}function Mt(e,t,i){return(i.isAxisInverse?e/t:1-e/t)*i.visibleRange.delta+i.visibleRange.min}function Dt(e,t){void 0===t&&(t=!1);var i=e.clipRect;!t||"Polar"!==e.type&&"Radar"!==e.type?e.chart.requireInvertedAxis?(i.x=e.yAxis.rect.x,i.y=e.xAxis.rect.y,i.width=e.yAxis.rect.width,i.height=e.xAxis.rect.height):(i.x=e.xAxis.rect.x,i.y=e.yAxis.rect.y,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height):"Scatter"===e.drawType?(i.x=e.xAxis.rect.x,i.y=e.yAxis.rect.y,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height):(i.x=e.xAxis.rect.x/2,i.y=e.yAxis.rect.y/2,i.width=e.xAxis.rect.width,i.height=e.yAxis.rect.height)}function kt(e){return e.substr(0,1).toLowerCase()+e.substr(1)}function Rt(e,t,i){var o,r,n,a;return i?(o=t.rect.x,r=e.rect.y,n=t.rect.width,a=e.rect.height):(o=e.rect.x,r=t.rect.y,n=e.rect.width,a=t.rect.height),new R.Rect(o,r,n,a)}function Tt(e,i){for(var o,r,n,a=Number.MAX_VALUE,l=!0,s=[],h=0,c=i;h<c.length;h++){if((p=c[h]).visible)if(1!==p.points.map(function(e){return e.xValue}).length){l=!1;break}}for(var d=0;d<i.length;d++){var p;if(o=[],(p=i[d]).visible&&(e.name===p.xAxisName||"primaryXAxis"===e.name&&null===p.xAxisName||e.name===p.chart.primaryXAxis.name&&!p.xAxisName))if(p.type.indexOf("Stacking")>-1&&-1===s.indexOf(p.stackingGroup)&&s.push(p.stackingGroup),(o=p.points.map(function(e){return e.xValue})).sort(function(e,t){return e-t}),1===o.length&&l)if("Category"===e.valueType){var u=p.xAxis.visibleRange.min,g=o[0]-u;0!==g&&(a=Math.min(a,g))}else if("DateTime"===e.valueType){var m=1===i.length?2592e4:2592e6;n=p.xMin===p.xMax?p.xMin-m:p.xMin,0!==(r=o[0]-((0,t.isNullOrUndefined)(n)?e.visibleRange.min:n))&&(a=Math.min(a,r))}else n=p.xMin,0!==(r=o[0]-((0,t.isNullOrUndefined)(n)?e.visibleRange.min:n))&&(a=Math.min(a,r));else for(var y=0;y<o.length;y++){var f=o[y];y>0&&f&&0!==(r=p.type.indexOf("Stacking")>-1&&"Category"===e.valueType?s.length:f-o[y-1])&&(a=Math.min(a,r))}}return a===Number.MAX_VALUE&&(a=1),a}function Et(e){var t;if("Linear"===e)t=_t;return t}function _t(e,t,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+t}function It(e,i,o,r,n,a,l){var s=!!r.accumulation;e.style.visibility="hidden";var h=e.getAttribute("transform");new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(t){if(t.timeStamp>t.delay&&(t.element.style.visibility="visible"),s?t.element.id.indexOf("_datalabel_Series_")>-1:(t.element.parentElement.parentElement.id.indexOf("DataLabel")>-1||e.id.indexOf("StackLabel")>-1)&&(!r.chart.stackLabels.visible||!e.getAttribute("data-collide"))){t.element.style.visibility="visible";var i=s?r.opacity:r.marker.dataLabel.opacity,o=t.timeStamp/500*i;s||e.id.indexOf("StackLabel")>-1?e.setAttribute("opacity",Math.min(o,i).toString()):(r.textElement.setAttribute("opacity",Math.min(o,i).toString()),r.shapeElement.setAttribute("opacity",Math.min(o,i).toString()))}},end:function(){"Scatter"!==r.type&&"Bubble"!==r.type||!r.lastValueLabelElement||r.lastValueLabelElement.setAttribute("visibility","visible");var t=document.getElementById(r.chart.element.id+"_Annotation_Collections");t&&"Line"!==r.type&&(t.style.visibility="visible"),(e.parentElement.parentElement.id.indexOf("DataLabel")>-1||e.id.indexOf("_datalabel_Series_")>-1||e.id.indexOf("StackLabel")>-1)&&(s||e.id.indexOf("StackLabel")>-1?e.setAttribute("opacity",r.opacity.toString()):(r.textElement.setAttribute("opacity",r.marker.dataLabel.opacity.toString()),r.shapeElement.setAttribute("opacity",r.marker.dataLabel.opacity.toString()))),r.chart.stackLabels.visible&&e.getAttribute("data-collide")||(e.style.visibility=""),e.setAttribute("transform",h||""),"Scatter"!==r.type&&"Bubble"!==r.type||l||n!==r.points.length-1||r.chart.trigger("animationComplete",{series:r})}})}function Ot(e,i,o,r,n){var a=function(t){e.setAttribute("x",t.x+""),e.setAttribute("y",t.y+""),e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")};new t.Animation({}).animate((0,t.createElement)("div"),{duration:o,delay:i,progress:function(e){a(new R.Rect(_t(e.timeStamp,n.x,r.x-n.x,e.duration),_t(e.timeStamp,n.y,r.y-n.y,e.duration),_t(e.timeStamp,n.width,r.width-n.width,e.duration),_t(e.timeStamp,n.height,r.height-n.height,e.duration)))},end:function(){a(r)}})}function zt(e,i,o,r,n){if(!o||!r&&!e)return null;var a=300;(0,t.isNullOrUndefined)(n)||(a=n);var l,s,h,c=r||e.getAttribute("d"),d=c.split(/(?=[LMCZAQ])/),p=i.split(/(?=[LMCZAQ])/),u=[],g=[];e.setAttribute("d",c),new t.Animation({}).animate((0,t.createElement)("div"),{duration:a,progress:function(t){l="",d.map(function(e,i){if(u=e.split(" "),g=p[i]?p[i].split(" "):u,"Z"===u[0]?l+="Z ":""===u[0]?l="":l+=u[0]+" "+_t(t.timeStamp,+u[1],+g[1]-+u[1],t.duration)+" "+_t(t.timeStamp,+u[2],+g[2]-+u[2],t.duration)+" ","C"===u[0]||"Q"===u[0])for(s=3,h="Q"===u[0]?4:6;s<h;)l+=_t(t.timeStamp,+u[s],+g[s]-+u[s],t.duration)+" "+_t(t.timeStamp,+u[++s],+g[s]-+u[s],t.duration)+" ",++s;"A"===u[0]&&(l+="0 0 1 "+_t(t.timeStamp,+u[6],+g[6]-+u[6],t.duration)+" "+_t(t.timeStamp,+u[7],+g[7]-+u[7],t.duration)+" ")}),e.setAttribute("d",l)},end:function(){e.setAttribute("d",i)}})}function Bt(e,i,o,r,n,a,l){if(!o||!r&&!e)return null;var s=300;(0,t.isNullOrUndefined)(n)||(s=n);var h=r||e.getAttribute("d"),c=i,d="";e.setAttribute("d",h),new t.Animation({}).animate((0,t.createElement)("div"),{duration:s,progress:function(t){d="";for(var i=h.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),o=c.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),r=Math.max(i.length,o.length),n=0;n<r;n++){for(var a=i[n]||"",p=o[n]||"",u=a.trim().split(/\s+/),g=p.trim().split(/\s+/),m=[],y=1;y<u.length;y++){var f=parseFloat(u[y]),v=parseFloat(g[y]);if(!isNaN(f)&&!isNaN(v)&&(u.length===g.length||l)){var b=_t(t.timeStamp,f,v-f,s);m.push(b)}}m.length>0&&u.length!==g.length?d+="L":m.length>0&&(d+=u[0]),d+=" "+m.join(" "),d+=" "}e.setAttribute("d",d)},end:function(){e.setAttribute("d",a||i)}})}function Nt(e,t,i,o){void 0===o&&(o="drawClipPath");var r=Pi(e,t.id,t,i);if(r){var n=i.createDefs();return n.appendChild(r),n}return i[o](t)}function Vt(e,t,i,o,r){var n={cancel:!1,name:j,axis:r,text:i,value:t,labelStyle:o};if(e.trigger(j,n),!n.cancel){var a=-1!==n.text.indexOf("<br>"),l=r.enableTrim?a?wi(r.maximumLabelWidth,n.text,r.labelStyle,e.themeStyle.axisLabelFont):Fi(r.maximumLabelWidth,n.text,r.labelStyle,e.enableRtl,e.themeStyle.axisLabelFont):n.text;r.visibleLabels.push(new Ge(l,n.value,n.labelStyle,n.text))}}function Ht(e){return null!=e.minimum&&null!=e.maximum}function Wt(e){return e.zoomFactor<1&&e.zoomPosition>=0}function jt(e,i){var o="Horizontal"===i.orientation?e.width:e.height;if((0,t.isNullOrUndefined)(i.desiredIntervals)){var r=("Horizontal"===i.orientation?.533:1)*i.maximumLabels;return r=Math.max(o*(r/100),1)}return i.desiredIntervals}function Ut(e,i,o,r,n){new t.Animation({}).animate(e,{duration:o,delay:i,name:r,progress:function(e){e.element.style.visibility="visible"},end:function(e){n?(0,t.remove)(e.element):e.element.style.visibility="visible"}})}function Xt(e,t,i,o,r,n,a,l,s,h){var c=a||new R.SvgRenderer(""),d=Gt(e,i,t,r,o,s,h);return c["draw"+d.functionName](d.renderOption,l?new Int32Array([l.x,l.y]):null)}function Gt(e,i,o,r,n,a,l){var s,h,c,d="Path",p=a,u=p&&"Circle"===o?i.width-2:i.width,g=p&&"Circle"===o?i.height-2:i.height,m=p?l.targetWidth:0,y=e.x,f=e.y,v=e.y+-g/2,b=e.x+-u/2;switch(o){case"Bubble":case"Circle":d="Ellipse",(0,t.merge)(r,{rx:u/2,ry:g/2,cx:y,cy:f});break;case"Plus":s="M "+b+" "+f+" L "+(y+u/2)+" "+f+" M "+y+" "+(f+g/2)+" L "+y+" "+(f+-g/2),(0,t.merge)(r,{d:s});break;case"Cross":s="M "+b+" "+(f+-g/2)+" L "+(y+u/2)+" "+(f+g/2)+" M "+b+" "+(f+g/2)+" L "+(y+u/2)+" "+(f+-g/2),(0,t.merge)(r,{d:s});break;case"Multiply":s="M "+(y-m)+" "+(f-m)+" L "+(y+m)+" "+(f+m)+" M "+(y-m)+" "+(f+m)+" L "+(y+m)+" "+(f-m),(0,t.merge)(r,{d:s,stroke:r.fill});break;case"HorizontalLine":s="M "+b+" "+f+" L "+(y+u/2)+" "+f,(0,t.merge)(r,{d:s});break;case"VerticalLine":s="M "+y+" "+(f+g/2)+" L "+y+" "+(f+-g/2),(0,t.merge)(r,{d:s});break;case"Diamond":s="M "+b+" "+f+" L "+y+" "+(f+-g/2)+" L "+(y+u/2)+" "+f+" L "+y+" "+(f+g/2)+" L "+b+" "+f+" z",(0,t.merge)(r,{d:s});break;case"ActualRect":s="M "+b+" "+(f+-g/8)+" L "+(y+m)+" "+(f+-g/8)+" L "+(y+m)+" "+(f+g/8)+" L "+b+" "+(f+g/8)+" L "+b+" "+(f+-g/8)+" z",(0,t.merge)(r,{d:s});break;case"TargetRect":s="M "+(b+m)+" "+(f+-g/2)+" L "+(y+m/2)+" "+(f+-g/2)+" L "+(y+m/2)+" "+(f+g/2)+" L "+(b+m)+" "+(f+g/2)+" L "+(b+m)+" "+(f+-g/2)+" z",(0,t.merge)(r,{d:s});break;case"Rectangle":case"Hilo":case"HiloOpenClose":case"Candle":case"Waterfall":case"BoxAndWhisker":case"StepArea":case"RangeStepArea":case"StackingStepArea":case"Square":case"Flag":s="M "+b+" "+(f+-g/2)+" L "+(y+u/2)+" "+(f+-g/2)+" L "+(y+u/2)+" "+(f+g/2)+" L "+b+" "+(f+g/2)+" L "+b+" "+(f+-g/2)+" z",(0,t.merge)(r,{d:s});break;case"Pyramid":case"Triangle":s="M "+b+" "+(f+g/2)+" L "+y+" "+(f+-g/2)+" L "+(y+u/2)+" "+(f+g/2)+" L "+b+" "+(f+g/2)+" z",(0,t.merge)(r,{d:s});break;case"Funnel":case"InvertedTriangle":s="M "+(y+u/2)+" "+(f-g/2)+" L "+y+" "+(f+g/2)+" L "+(y-u/2)+" "+(f-g/2)+" L "+(y+u/2)+" "+(f-g/2)+" z",(0,t.merge)(r,{d:s});break;case"Pentagon":for(var x=0;x<=5;x++)h=u/2*Math.cos(Math.PI/180*(72*x)),c=g/2*Math.sin(Math.PI/180*(72*x)),s=0===x?"M "+(y+h)+" "+(f+c)+" ":s.concat("L "+(y+h)+" "+(f+c)+" ");s=s.concat("Z"),(0,t.merge)(r,{d:s});break;case"Image":d="Image",(0,t.merge)(r,{href:n,height:g,width:u,x:b,y:v});break;case"Star":var S=Math.min(u,g)/2,C=S/2,F=Math.PI/5,w="";for(x=0;x<10;x++){var L=x%2==0?S:C;w+=(0===x?"M":"L")+(y+L*Math.cos(x*F-Math.PI/2))+","+(f+L*Math.sin(x*F-Math.PI/2))}w+="Z",(0,t.merge)(r,{d:w})}return{renderOption:r=Ci(e,new R.Size(u,g),o,r).renderOption,functionName:d}}function Yt(e,t,i){var o=t.x<i.x?i.x:t.x>i.x+i.width?i.x+i.width:t.x,r=t.y<i.y?i.y:t.y>i.y+i.height?i.y+i.height:t.y;return new R.Rect(o>e.x?e.x:o,r>e.y?e.y:r,Math.abs(o-e.x),Math.abs(r-e.y))}function Zt(e,t,i){return e>i?i:e<t?t:e}function qt(e){return document.getElementById(e)}function Qt(e){var i=null;try{i="function"!=typeof e&&document.querySelectorAll(e).length?(0,t.compile)(document.querySelector(e).innerHTML.trim()):(0,t.compile)(e)}catch(o){i=(0,t.compile)(e)}return i}function $t(e,t,i,o,r,n,a,l,s,h){var c=e.getBoundingClientRect();t.accumulationDataLabelModule.calculateLabelSize(i,e,n,o,r,a,l,s,h,c,!0)}function Kt(e,t,i,o,r,n){var a=document.getElementById(t.element.id+"_Series_"+(void 0===o.index?o.category:o.index)+"_DataLabelCollections");a&&(0===i.index&&(t.dataLabelCollections=[]),t.dataLabelModule.calculateTemplateLabelSize(a,e,i,o,o.marker.dataLabel,r,o.clipRect,n,!0))}function Jt(e,t,i,o,r,n,a,l,s,h,c,d,p,u,g){var m,y=Qt(i);try{var f={chart:o,series:n,point:r};e.id.indexOf("AxisLabelTemplate")>-1&&(f={value:r.value,label:r.text});var v=y?y(f,o,a?a+"_template":"template",a||e.id.replace(/[^a-zA-Z0-9]/g,"")):[];if(v.length)for(var b=(m=Array.prototype.slice.call(v)).length,x=0;x<b;x++)e.appendChild(m[x]);var S=void 0;"accumulationchart"===o.getModuleName()?(S=c.length&&c[t]?$t.bind(this,e,o,h,c,s,c[t],d,p,u,g):S,o.isReact&&o.renderReactTemplates(S)):"chart"===o.getModuleName()&&(S=r&&n?Kt.bind(this,e,o,r,n,l,g):S,o.isReact&&o.renderReactTemplates(S))}catch(t){return e}return e}function ei(e,t){return"font-size:"+(e.size||t.size)+"; font-style:"+(e.fontStyle||t.fontStyle)+"; font-weight:"+(e.fontWeight||t.fontWeight)+"; font-family:"+e.fontFamily+";opacity:"+e.opacity+"; color:"+e.color+";"}function ti(e,i,o){void 0===i&&(i=!1),o||document.body.appendChild(e);var r=e.getBoundingClientRect();return i?(0,t.remove)(e):o||Je(e.id),r}function ii(e,t){for(var i,o=0,r=e.length;o<r;o++)e[o].id.indexOf(t)>-1&&(i=e[o]);return i}function oi(e,t,i,o,r){e="Logarithmic"===i.valueType?et(e>0?e:Math.pow(i.logBase,i.visibleRange.min),i.logBase):e,t="Logarithmic"===o.valueType?et(t>0?t:Math.pow(o.logBase,o.visibleRange.min),o.logBase):t,e=yt(e,i),t=yt(t,o);var n=r?i.rect.height:i.rect.width,a=r?o.rect.width:o.rect.height;return new ji(r?t*a:e*n,r?(1-e)*n:(1-t)*a)}function ri(e,t,i,o,r,n,a){if(void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r="x"),void 0===n&&(n="y"),!(e&&e.hasChildNodes()&&t))return null;ni(!1,t,e,i,o,r,n,void 0,void 0,void 0,void 0,void 0,a)}function ni(e,i,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f){if(void 0===n&&(n=!1),void 0===a&&(a="x"),void 0===l&&(l="y"),void 0===c&&(c=!1),void 0===d&&(d=!1),void 0===p&&(p=null),void 0===g&&(g=!1),void 0===m&&(m=0),e)return null;var v=g?null:i.querySelector("#"+o.id),b=v||qt(o.id),x=o,S=(0,t.isNullOrUndefined)(u)?300:u;if(r&&n&&b)if(s=s||("DIV"===b.tagName?new ji(+b.style[a].split("px")[0],+b.style[l].split("px")[0]):new ji(+b.getAttribute(a),+b.getAttribute(l))),h&&"undefined"!==h)zt(o,o.getAttribute("d"),r,h,S);else if(d&&p)Ot(x,0,S,new R.Rect(+b.getAttribute("x"),+b.getAttribute("y"),+b.getAttribute("width"),+b.getAttribute("height")),p);else{var C="DIV"===x.tagName?new ji(+x.style[a].split("px")[0],+x.style[l].split("px")[0]):new ji(+x.getAttribute(a),+x.getAttribute(l)),F=b.getAttribute("transform");Ai(x,S,s,C,a,l,m,y,void 0!==f?new ji(f.match(/\d+/g).map(Number)[0],f.match(/\d+/g).map(Number)[1]):F?new ji(parseFloat(F.split(",")[1]),parseFloat(F.split(",")[2])):new ji(0,0),void 0!==f)}else r&&n&&!b&&c&&Ut(x,0,600,"FadeIn");v?i.replaceChild(x,b):i.appendChild(x)}function ai(e,t,i,o,r){var n=Math.abs(e-i),a=Math.abs(t-o),l=Math.max(li(Math.min(e,i),n,r.x,r.width),r.x),s=Math.max(li(Math.min(t,o),a,r.y,r.height),r.y);return new R.Rect(l,s,Math.min(n,r.width),Math.min(a,r.height))}function li(e,t,i,o){return e<i?e=i:e+t>o+i&&(e=o+i-t),e}function si(e,t,i){var o=t.marker.dataLabel.format?t.marker.dataLabel.format:t.yAxis.labelFormat,r=[],n=null!==o.match("{value}");switch(t.seriesType){case"XY":"PolarRadar"===t.chart.chartAreaType?-1!==t.drawType.indexOf("Stacking")?("Logarithmic"===t.yAxis.valueType&&rt(t.stackedValues.endValues[e.index],t.yAxis)||ot(t.stackedValues.endValues[e.index],t.yAxis.visibleRange))&&r.push(e.text||e.yValue.toString()):("Logarithmic"===t.yAxis.valueType&&rt(e.yValue,t.yAxis)||ot(e.yValue,t.yAxis.visibleRange))&&r.push(e.text||e.yValue.toString()):r.push(e.text||e.yValue.toString());break;case"HighLow":r.push(e.text||Math.max(e.high,e.low).toString()),r.push(e.text||Math.min(e.high,e.low).toString());break;case"HighLowOpenClose":r.push(e.text||Math.max(e.high,e.low).toString()),r.push(e.text||Math.min(e.high,e.low).toString()),r.push(e.text||Math.max(e.open,e.close).toString()),r.push(e.text||Math.min(e.open,e.close).toString());break;case"BoxPlot":r.push(e.text||e.median.toString()),r.push(e.text||e.maximum.toString()),r.push(e.text||e.minimum.toString()),r.push(e.text||e.upperQuartile.toString()),r.push(e.text||e.lowerQuartile.toString());for(var a=0,l=e.outliers;a<l.length;a++){var s=l[a];r.push(e.text||s.toString())}}if((o||i.useGroupingSeparator)&&!e.text){var h="DateTime"===t.yAxis.valueType&&/[yMdHhms]/.test(o||"");t.yAxis.format=h?i.intl.getDateFormat({format:n?"":o}):i.intl.getNumberFormat({format:n?"":o,useGrouping:i.useGroupingSeparator});for(var c=0;c<r.length;c++){var d=h?t.yAxis.format(new Date(Number(r[c]))):t.yAxis.format(parseFloat(r[c]));r[c]=n?o.replace("{value}",d):d}}return r}function hi(e){window.clearInterval(e)}function ci(e,t,i){var o=new R.Rect(e.x+i.x,e.y+i.y,e.width,e.height),r=t.some(function(e){return o.x<e.x+e.width&&o.x+o.width>e.x&&o.y<e.y+e.height&&o.height+o.y>e.y});return r}function di(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.height+e.y>t.y}function pi(e,t){return e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.y<=t.y&&e.height+e.y>=t.y+t.height}function ui(e,t,i){return new R.Rect(e.x-t.width/2-i.left,e.y-t.height/2-i.top,t.width+i.left+i.right,t.height+i.top+i.bottom)}function gi(e){return"#"+mi(e.r)+mi(e.g)+mi(e.b)}function mi(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function yi(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?new Gi(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):new Gi(255,255,255)}function fi(e){e="transparent"===e?"white":e;var i,o=document.getElementById("chartmeasuretext");if(o||(o=(0,t.createElement)("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),o.style.color=e,e=window.getComputedStyle(o).color,o.style.color="",0!==e.indexOf("rgb")&&0!==e.indexOf("hsl")||(i=(e=e.replace(/\s/g,"").replace(/[()]/g,"")).slice(3).split(",")),i&&i.length){var r=i.map(function(e){return parseInt(e,10)}),n=r[0],a=r[1],l=r[2];return gi(new Gi(n,a,l))}return""}function vi(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1}function bi(e,t){(e=(e=fi(e)).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var i,o="#",r=0;r<3;r++)i=parseInt(e.substr(2*r,2),16),o+=("00"+(i=Math.round(Math.min(Math.max(0,i+i*t),255))).toString(16)).substr(i.toString(16).length);return o}function xi(e,t){var i=yi(e);return i.r=parseInt(Math.floor(i.r*t).toString(),10),i.g=parseInt(Math.floor(i.g*t).toString(),10),i.b=parseInt(Math.floor(i.b*t).toString(),10),"#"+mi(i.r).toUpperCase()+mi(i.g).toUpperCase()+mi(i.b).toUpperCase()}function Si(e){var t=Math.floor(e.length/2);return e.length%2?e[t]:(e[t-1]+e[t])/2}function Ci(e,i,o,r){var n="",a=i.height,l=i.width,s=e.x,h=e.y;switch(o){case"MultiColoredLine":case"Line":case"StackingLine":case"StackingLine100":n="M "+(s+3/4*-l)+" "+h+" L "+(s+l*(3/4))+" "+h,(0,t.merge)(r,{d:n});break;case"StepLine":r.fill="transparent",n="M "+(s+-l/2-2.5)+" "+(h+a/2)+" L "+(s+-l/2+l/10)+" "+(h+a/2)+" L "+(s+-l/2+l/10)+" "+h+" L "+(s+-l/10)+" "+h+" L "+(s+-l/10)+" "+(h+a/2)+" L "+(s+l/5)+" "+(h+a/2)+" L "+(s+l/5)+" "+(h+-a/2)+" L "+(s+l/2)+" "+(h+-a/2)+"L "+(s+l/2)+" "+(h+a/2)+" L"+(s+l/2+2.5)+" "+(h+a/2),(0,t.merge)(r,{d:n});break;case"UpArrow":r.fill=r.stroke,r.stroke="transparent",n="M "+(s+-l/2)+" "+(h+a/2)+" L "+s+" "+(h-a/2)+" L "+(s+l/2)+" "+(h+a/2)+"L "+(s+l/2-2)+" "+(h+a/2)+" L "+s+" "+(h-a/2+4)+"L"+(s-l/2+2)+" "+(h+a/2)+" Z",(0,t.merge)(r,{d:n});break;case"DownArrow":n="M "+(s-l/2)+" "+(h-a/2)+" L "+s+" "+(h+a/2)+" L "+(s+l/2)+" "+(h-a/2)+"L "+(s+l/2-2)+" "+(h-a/2)+" L "+s+" "+(h+a/2-4)+"L"+(s-l/2+2)+" "+(h-a/2)+" Z",(0,t.merge)(r,{d:n});break;case"RightArrow":n="M "+(s+-l/2)+" "+(h-a/2)+" L "+(s+l/2)+" "+h+" L "+(s+-l/2)+" "+(h+a/2)+" L "+(s+-l/2)+" "+(h+a/2-2)+" L "+(s+l/2-4)+" "+h+" L"+(s+-l/2)+" "+(h-a/2+2)+" Z",(0,t.merge)(r,{d:n});break;case"LeftArrow":r.fill=r.stroke,r.stroke="transparent",n="M "+(s+l/2)+" "+(h-a/2)+" L "+(s+-l/2)+" "+h+" L "+(s+l/2)+" "+(h+a/2)+" L "+(s+l/2)+" "+(h+a/2-2)+" L "+(s+-l/2+4)+" "+h+" L"+(s+l/2)+" "+(h-a/2+2)+" Z",(0,t.merge)(r,{d:n});break;case"Column":case"Pareto":case"StackingColumn":case"StackingColumn100":case"RangeColumn":case"Histogram":n="M "+(s-l/5*3)+" "+(h-a/5)+" L "+(s+-l/10*3)+" "+(h-a/5)+" L "+(s+-l/10*3)+" "+(h+a/2)+" L "+(s-l/5*3)+" "+(h+a/2)+" Z M "+(s+-l/10-l/20)+" "+(h-a/4-5)+" L "+(s+l/10+l/20)+" "+(h-a/4-5)+" L "+(s+l/10+l/20)+" "+(h+a/2)+" L "+(s+-l/10-l/20)+" "+(h+a/2)+" Z M "+(s+l/10*3)+" "+h+" L "+(s+l/5*3)+" "+h+" L "+(s+l/5*3)+" "+(h+a/2)+" L "+(s+l/10*3)+" "+(h+a/2)+" Z",(0,t.merge)(r,{d:n});break;case"Bar":case"StackingBar":case"StackingBar100":n="M "+(s+-l/2+-2.5)+" "+(h-a/5*3)+" L "+(s+l/10*3)+" "+(h-a/5*3)+" L "+(s+l/10*3)+" "+(h-a/10*3)+" L "+(s-l/2-2.5)+" "+(h-a/10*3)+" Z M "+(s+-l/2+-2.5)+" "+(h-a/5+.5)+" L "+(s+l/2+2.5)+" "+(h-a/5+.5)+" L "+(s+l/2+2.5)+" "+(h+a/10+.5)+" L "+(s-l/2-2.5)+" "+(h+a/10+.5)+" Z M "+(s-l/2-2.5)+" "+(h+a/5+1)+" L "+(s+-l/4)+" "+(h+a/5+1)+" L "+(s+-l/4)+" "+(h+a/2+1)+" L "+(s-l/2-2.5)+" "+(h+a/2+1)+" Z",(0,t.merge)(r,{d:n});break;case"Spline":r.fill="transparent",n="M "+(s-l/2)+" "+(h+a/5)+" Q "+s+" "+(h-a)+" "+s+" "+(h+a/5)+" M "+s+" "+(h+a/5)+" Q "+(s+l/2)+" "+(h+a/2)+" "+(s+l/2)+" "+(h-a/2),(0,t.merge)(r,{d:n});break;case"Area":case"MultiColoredArea":case"RangeArea":case"StackingArea":case"StackingArea100":n="M "+(s-l/2-2.5)+" "+(h+a/2)+" L "+(s+-l/4+-1.25)+" "+(h-a/2)+" L "+s+" "+(h+a/4)+" L "+(s+l/4+1.25)+" "+(h+-a/2+a/4)+" L "+(s+a/2+2.5)+" "+(h+a/2)+" Z",(0,t.merge)(r,{d:n});break;case"SplineArea":case"SplineRangeArea":n="M "+(s-l/2)+" "+(h+a/5)+" Q "+s+" "+(h-a)+" "+s+" "+(h+a/5)+" Z M "+s+" "+(h+a/5)+" Q "+(s+l/2)+" "+(h+a/2)+" "+(s+l/2)+" "+(h-a/2)+"  Z",(0,t.merge)(r,{d:n});break;case"Pie":case"Doughnut":r.stroke="transparent",n=function(e,t,i,o,r){var n=ct(270,i,new ji(e,t)),a=ct(270,i,new ji(e+r/10,t));return"M "+e+" "+t+" L "+(e+i)+" "+t+" A "+i+" "+i+" 0 1 1 "+n.x+" "+n.y+" Z M "+(e+r/10)+" "+(t-o/10)+" L"+(e+i)+" "+(t-o/10)+" A "+i+" "+i+" 0 0 0 "+a.x+" "+a.y+" Z"}(s,h,Math.min(a,l)/2,a,l),(0,t.merge)(r,{d:n})}return{renderOption:r}}function Fi(e,t,i,o,r){var n=t,a=(0,R.measureText)(t,i,r).width;if(a>e)for(var l=t.length-1;l>=0;--l)if(n=o?"..."+t.substring(0,l):t.substring(0,l)+"...",(a=(0,R.measureText)(n,i,r).width)<=e)return n;return n}function wi(e,t,i,o){for(var r=[],n=t.split("<br>"),a=0;a<n.length;a++){t=n[a];var l=(0,R.measureText)(t,i,o).width;if(l>e){for(var s=t.length-1;s>=0;--s)if(t=t.substring(0,s)+"...",(l=(0,R.measureText)(t,i,o).width)<=e){r.push(t);break}}else r.push(t)}return r}function Li(e,t){return null!=e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function Pi(e,t,i,o){if(!e)return null;var r=qt(t);return r&&i&&o.setElementAttributes(i,"clipPath"===r.tagName?r.childNodes[0]:r),r}function Ai(e,i,o,r,n,a,l,s,h,c){void 0===n&&(n="x"),void 0===a&&(a="y"),void 0===l&&(l=0),void 0===s&&(s=new ji(0,0)),void 0===h&&(h=new ji(0,0));var d="DIV"===e.tagName,p=function(t,i,o,r){d?(e.style[n]=t+"px",e.style[a]=i+"px"):(e.setAttribute(n,t+""),e.setAttribute(a,i+""),l&&s.x&&s.y&&h.x&&h.y&&o&&r&&e.setAttribute("transform","rotate("+l+","+o+","+r+")"),c&&e.setAttribute("transform","translate("+o+","+r+")"))};p(o.x,o.y,h.x,h.y),new t.Animation({}).animate((0,t.createElement)("div"),{duration:i,progress:function(e){p(_t(e.timeStamp,o.x,r.x-o.x,e.duration),_t(e.timeStamp,o.y,r.y-o.y,e.duration),_t(e.timeStamp,h.x,s.x-h.x,e.duration),_t(e.timeStamp,h.y,s.y-h.y,e.duration))},end:function(){p(r.x,r.y,s.x,s.y)}})}function Mi(e,i,o,r,n){if(e&&o&&r){var a=function(e){return n?n.replace("{value}",e.toString()):e.toString()};new t.Animation({}).animate((0,t.createElement)("div"),{duration:i,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,n=o+(r-o)*i;n=o%1!=0||r%1!=0?parseFloat(n.toFixed(1)):Math.round(n),e.textContent=a(n)},end:function(){e.textContent=a(r)}})}}function Di(e,t,i,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f){void 0===n&&(n=!1),void 0===s&&(s=!1);var v,b,x,S,C,F,w=0,L=0;if(t.text.length>1&&g){for(var P=0,A=t.text.length;P<A;P++)L=Math.max(L,(0,R.measureText)(t.text[P],i,m).width);w=(0,R.measureText)(t.text[0],i,m).width}F=t.text.length>1&&g?t.x+L/2-w/2:t.x,v={id:t.id,x:F,y:t.y,fill:o||"black","font-size":i.size||m.size,"font-style":i.fontStyle||m.fontStyle,"font-family":i.fontFamily||m.fontFamily,"font-weight":i.fontWeight||m.fontWeight,"text-anchor":t.anchor,labelRotation:t.labelRotation,transform:t.transform,opacity:i.opacity,"dominant-baseline":t.baseLine};var M="string"==typeof t.text?t.text:n?t.text[t.text.length-1]:t.text[0],D=c?c.x:0,k=c?c.y:0,T=e.createText(v,M,D,k);if("string"!=typeof t.text&&t.text.length>1)for(P=1,A=t.text.length;P<A;P++)x=(0,R.measureText)(t.text[P],i,m).height,w=(0,R.measureText)(t.text[P],i,m).width,S=t.y+(n?-P*x:P*x),F=g?t.x+L/2-w/2:t.x,C=n?t.text[t.text.length-(P+1)]:t.text[P],u?b=e.createText(v,C,null,null,S,!0):(b=e.createTSpan({x:F,id:t.id,y:S},C),T.appendChild(b));return p||ni(e instanceof R.CanvasRenderer,r,T,a,l,"x","y",null,null,s,!1,null,h,!1,t.labelRotation,y,f),T}function ki(e){var i=e.element.clientWidth||e.element.offsetWidth,o=e.element.clientHeight;e.stockChart&&(i=e.stockChart.availableSize.width,o=e.stockChart.availableSize.height);var r,n=450;if("rangeNavigator"===e.getModuleName()){var a=e,l=a.tooltip.enable?35:0,s=a.periodSelectorSettings.periods.length?a.periodSelectorSettings.height:0;r=a.margin.top+a.margin.bottom+l;var h=(0,R.measureText)("tempString",a.labelStyle,a.themeStyle.axisLabelFont).height;if(n=(e.series.length?t.Browser.isDevice?80:120:(a.enableGrouping?55+h:40)+r)+s,a.disableRangeSelector&&(n=s),e.stockChart&&e.stockChart.chart&&"Outside"===e.stockChart.chart.axisCollections[1].labelPosition){var c=e.stockChart.chart.axisCollections[1].labelPadding+.5*e.stockChart.chart.axisCollections[1].lineStyle.width;e.width=(e.stockChart.availableSize.width-(e.stockChart.chart.axisCollections[1].maxLabelSize.width+c)).toString()}}e.availableSize=new R.Size(Li(e.width,i)||i||600,Li(e.height,o||n)||o||n),"chart"===e.getModuleName()&&(e.scaleX=1,e.scaleY=1)}function Ri(e){e.canvasRender=new R.CanvasRenderer(e.element.id),e.renderer=e.enableCanvas?e.canvasRender:new R.SvgRenderer(e.element.id),ki(e),e.stockChart&&"chart"===e.getModuleName()?e.svgObject=e.stockChart.chartObject:e.stockChart&&"rangeNavigator"===e.getModuleName()&&e.stockChart.selectorObject?e.svgObject=e.stockChart.selectorObject:e.enableCanvas?e.svgObject=e.renderer.createCanvas({id:e.element.id+"_canvas",width:e.availableSize.width,height:e.availableSize.height}):(e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),e.svgObject.setAttribute("aria-label","Interactive chart")),e.enableCanvas&&(e.renderer.ctx.direction=e.enableRtl?"rtl":"ltr")}function Ti(e,t,i,o,r){var n=[];switch(t.textOverflow){case"Wrap":n=_i(e,i,t,o,e.indexOf(" ")<0||null,null,r);break;case"Trim":n.push(Fi(i,e,t,o,r));break;default:n.push(e)}return n}function Ei(e,t){return"Near"===t.textAlignment?e.x:"Center"===t.textAlignment?e.x+e.width/2:e.x+e.width}function _i(e,t,i,o,r,n,a,l){if(r)return Ii(e,t,i,a);for(var s,h=e.split(" "),c="",d=[],p=(0,R.measureText)("chartMeasureText",i,a).height,u=0,g=0,m=h.length;g<m;g++){if(s=h[g],(0,R.measureText)(c.concat(""===c?"":" "+s),i,a).width<t)c=c.concat((""===c?"":" ")+s);else if(""!==c){if(u+=p,l&&u>l)return d[d.length-1]+="...",d;d.push(n?c:Fi(t,c,i,o,a)),c=s}else{if(u+=p,l&&u>l)return d[d.length-1]+="...",d;d.push(n?s:Fi(t,s,i,o,a))}if(c&&g===m-1){if(u+=p,l&&u>l)return d[d.length-1]+="...",d;d.push(n?c:Fi(t,c,i,o,a))}}return d}function Ii(e,t,i,o){var r=(0,R.measureText)(e,i,o).width,n=[];if(r>t){for(var a="",l=0,s=1;s<e.length;)a=e.substring(l,s),(r=(0,R.measureText)(a,i,o).width)<t?s++:r===t?(l=s,n.push(a),s++,a=""):r>t&&(a=a.slice(0,-1),l=s-1,n.push(a),a="");a.length>0&&n.push(a)}else n.push(e);return n}function Oi(e,t){for(var i=e.replace(t," "),o=e.match(t),r=" ",n=" ",a=0,l={0:"₀",1:"₁",2:"₂",3:"₃",4:"₄",5:"₅",6:"₆",7:"₇",8:"₈",9:"₉"},s={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹"},h=0;h<=i.length-1;h++)if(" "===i[h]){r=t===ve?o[a].replace(/~/g,""):o[a].replace(/\^/g,"");for(var c=0;c<r.length;c++)n+=t===ve?l[r[c]]:s[r[c]];a++}else n+=i[h];return n.trim()}var zi=function(e){this.id=e},Bi=function(e,t){this.startValues=e,this.endValues=t},Ni=function(e){function t(t,i,o,r,n,a,l,s,h){var c=e.call(this,t,i,o.width,o.color,r,h)||this;return c.y=n.y,c.x=n.x,c.height=n.height,c.width=n.width,c.rx=a||0,c.ry=l||0,c.transform=s||"",c.stroke=0!==o.width&&""!==c.stroke?null===o.color?"":o.color:"transparent",c}return Ye(t,e),t}(R.PathOption),Vi=function(e,t,i,o,r,n,a,l){this.height=e,this.width=t,this.href=i,this.x=o,this.y=r,this.id=n,this.visibility=a,this.preserveAspectRatio=l},Hi=function(e){function t(t,i,o,r,n,a,l){var s=e.call(this,t,i,o.width,o.color,r)||this;return s.cy=a,s.cx=n,s.r=l,s}return Ye(t,e),t}(R.PathOption),Wi=function(e,t,i){this.id=e,this.points=t,this.fill=i},ji=function(e,t){this.x=e,this.y=t},Ui=function(e,t){this.x=0,this.y=0,this.x=e,this.y=t},Xi=function(e,t,i,o){this.left=e,this.right=t,this.top=i,this.bottom=o},Gi=function(e,t,i){this.r=e,this.g=t,this.b=i},Yi=function(e,t,i){void 0===i&&(i=0),this.point=e,this.series=t,this.lierIndex=i},Zi=function(e,t,i){void 0===i&&(i=0),this.point=e,this.series=t,this.index=i},qi=function(e,t){this.point=e,this.series=t},Qi=function(e,t){this.controlPoint1=e,this.controlPoint2=t};function $i(e,t){return Number(t)===e.start?e.colors[0]:Number(t)===e.end?e.colors[e.colors.length-1]:gi(Ki(Number(t),e))}function Ki(e,t){var i,o,r=t.start,n=t.end,a=0,l=n-r;if(a=(e-r)/l,t.colors.length<=2)i="#"===t.colors[0].charAt(0)?t.colors[0]:fi(t.colors[0]),o="#"===t.colors[t.colors.length-1].charAt(0)?t.colors[t.colors.length-1]:fi(t.colors[t.colors.length-1]);else{i="#"===t.colors[0].charAt(0)?t.colors[0]:fi(t.colors[0]),o="#"===t.colors[t.colors.length-1].charAt(0)?t.colors[t.colors.length-1]:fi(t.colors[t.colors.length-1]);for(var s=l/(t.colors.length-1),h=t.colors.length-1,c=[],d={},p=1;p<h;p++)d={b:r+p*s,color:t.colors[p]},c.push(d);for(var u=0;u<c.length;u++)r<=e&&e<=c[u].b&&0===u?(o="#"===c[u].color.charAt(0)?c[u].color:fi(c[u].color),a=e<=c[u].b?1-Math.abs((e-c[u].b)/s):(e-c[u].b)/s):c[u].b<=e&&e<=n&&u===c.length-1&&(i="#"===c[u].color.charAt(0)?c[u].color:fi(c[u].color),a=e<c[u].b?1-Math.abs((e-c[u].b)/s):(e-c[u].b)/s),u!==c.length-1&&u<c.length&&c[u].b<=e&&e<=c[u+1].b&&(i="#"===c[u].color.charAt(0)?c[u].color:fi(c[u].color),o="#"===c[u+1].color.charAt(0)?c[u+1].color:fi(c[u+1].color),a=Math.abs(e-c[u+1].b)/s)}return Ji(a,i,o)}function Ji(e,t,i){var o=i.split("#")[1],r=t.split("#")[1],n=eo(e,parseInt(r.substr(0,2),16),parseInt(o.substr(0,2),16)),a=eo(e,parseInt(r.substr(2,2),16),parseInt(o.substr(2,2),16)),l=eo(e,parseInt(r.substr(4,2),16),parseInt(o.substr(4,2),16));return new Gi(n,a,l)}function eo(e,t,i){var o=i-t;return Math.round(t+o*e)}function to(e,t){switch(e){case"Near":return t?"end":"start";case"Far":return t?"start":"end";default:return"middle"}}var io={size:"13px",fontWeight:"400",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"};function oo(e){var t;switch(e){case"Fabric":case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function ro(e,t,i){var o,r="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b";switch(e){case"HighContrastLight":case"HighContrast":o={axisLabel:"#ffffff",axisTitle:"#ffffff",axisLine:"#ffffff",majorGridLine:"#BFBFBF",minorGridLine:"#969696",majorTickLine:"#BFBFBF",minorTickLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:t?"#000000":"transparent",areaBorder:"#ffffff",errorBar:"#ffffff",crosshairLine:"#ffffff",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"#ffffff",crosshairLabel:"#000000",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",markerShadow:"#BFBFBF",selectionRectFill:"rgba(255, 217, 57, 0.3)",selectionRectStroke:"#ffffff",selectionCircleStroke:"#FFD939",tabColor:"#FFD939",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#FFD939",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":o={axisLabel:"#DADADA",axisTitle:"#ffffff",axisLine:" #6F6C6C",majorGridLine:"#414040",minorGridLine:"#514F4F",majorTickLine:"#414040",minorTickLine:" #4A4848",chartTitle:"#ffffff",legendLabel:"#DADADA",background:t?r:"transparent",areaBorder:" #9A9A9A",errorBar:"#ffffff",crosshairLine:"#F4F4F4",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"MaterialDark"===e?"#F4F4F4":"FabricDark"===e?"#A19F9D":"#F0F0F0",crosshairLabel:"#282727",tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A",markerShadow:null,selectionRectFill:"rgba(56,169,255, 0.1)",selectionRectStroke:"#38A9FF",selectionCircleStroke:"#282727",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.24)":"FabricDark"===e?"#6F6C6C":"#414141",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":o={axisLabel:"#212529",axisTitle:"#212529",axisLine:"#CED4DA",majorGridLine:"#CED4DA",minorGridLine:"#DEE2E6",majorTickLine:"#ADB5BD",minorTickLine:"#CED4DA",chartTitle:"#212529",legendLabel:"#212529",background:t?"#FFFFFF":"transparent",areaBorder:"#DEE2E6",errorBar:"#000000",crosshairLine:"#6C757D",crosshairBackground:"rgba(0, 0, 0, 0.1)",crosshairFill:"#212529",crosshairLabel:"#FFFFFF",tooltipFill:"#020202",tooltipBoldLabel:"rgba(255,255,255)",tooltipLightLabel:"rgba(255,255,255, 0.9)",tooltipHeaderLine:"rgba(255,255,255, 0.2)",markerShadow:null,selectionRectFill:"rgba(255,255,255, 0.1)",selectionRectStroke:"rgba(0, 123, 255)",selectionCircleStroke:"#495057",tabColor:"#007BFF",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#007BFF",toolkitFill:"#495057",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(-5,-5,26,26),chartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#6C757D",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":o={axisLabel:"#4B5563",axisTitle:"#6B7280",axisLine:"#D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:"#D1D5DB",chartTitle:"#111827",legendLabel:"#4B5563",background:t?"rgba(255,255,255, 0.0)":"transparent",areaBorder:"#D1D5DB",errorBar:"#1F2937",crosshairLine:"#1F2937",crosshairBackground:"rgba(107, 114, 128, 0.1)",crosshairFill:"#111827",crosshairLabel:"#F9FAFB",tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",markerShadow:null,selectionRectFill:"rgba(224, 231, 255, 0.25)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#4F46E5",bearFillColor:"#EF291F",bullFillColor:"#0D72DE",toolkitSelectionColor:"#212529",toolkitFill:"#6B7280",toolkitIconRectOverFill:"#F9FAFB",toolkitIconRectSelectionFill:"#F3F4F6",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#111827",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},stripLineLabelFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3Dark":o={axisLabel:"#D1D5DB",axisTitle:"#9CA3AF",axisLine:" #374151",majorGridLine:"#282F3C",minorGridLine:"#282F3C",majorTickLine:"#374151",minorTickLine:" #374151",chartTitle:"#FFFFFF",legendLabel:"#D1D5DB",background:t?"#1f2937":"transparent",areaBorder:" #374151",errorBar:"#6B7280",crosshairLine:"#6B7280",crosshairBackground:"rgba(107, 114, 128, 0.1)",crosshairFill:"#F9FAFB",crosshairLabel:"#1F2937",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",markerShadow:null,selectionRectFill:"rgba(30, 27, 75, 0.25)",selectionRectStroke:"#6366F1",selectionCircleStroke:"#282727",tabColor:"#22D3EE",bearFillColor:"#EF291F",bullFillColor:"#0D72DE",toolkitSelectionColor:"#FFFFFF",toolkitFill:"#FFFFFF",toolkitIconRectOverFill:"#242A38",toolkitIconRectSelectionFill:"#242A38",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},stripLineLabelFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind":o={axisLabel:"#6B728",axisTitle:"#374151",axisLine:" #D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:" #D1D5DB",chartTitle:"#374151",legendLabel:"#374151",background:t?"rgba(255,255,255, 0.0)":"transparent",areaBorder:" #E5E7EB",errorBar:"#374151",crosshairLine:"#1F2937",crosshairBackground:"rgba(90, 97, 246, 0.1)",crosshairFill:"#111827",crosshairLabel:"#F9FAFB",tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",markerShadow:null,selectionRectFill:"rgba(79,70,229, 0.1)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#4F46E5",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#4F46E5",toolkitFill:"#6B7280",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":o={axisLabel:"#9CA3AF",axisTitle:"#9CA3AF",axisLine:" #4B5563",majorGridLine:"#374151",minorGridLine:"#374151",majorTickLine:"#4B5563",minorTickLine:" #4B5563",chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:t?"#1f2937":"transparent",areaBorder:" #374151",errorBar:"#ffffff",crosshairLine:"#9CA3AF",crosshairBackground:"rgba(90, 97, 246, 0.1)",crosshairFill:"#F9FAFB",crosshairLabel:"#1F2937",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",markerShadow:null,selectionRectFill:"rgba(34,211,238, 0.1)",selectionRectStroke:"#22D3EE",selectionCircleStroke:"#282727",tabColor:"#22D3EE",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#22D3EE",toolkitFill:"#D1D5DB",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":o={axisLabel:"#212529",axisTitle:"#212529",axisLine:"#DEE2E6",majorGridLine:"#E9ECEF",minorGridLine:"#E9ECEF",majorTickLine:"#DEE2E6",minorTickLine:"#E9ECEF",chartTitle:"#212529",legendLabel:"#212529",background:t?"#212529":"transparent",areaBorder:"#E9ECEF",errorBar:"#343A40",crosshairLine:"#343A40",crosshairBackground:"rgba(52, 58, 64, 0.1)",crosshairFill:"#000000",crosshairLabel:"#FFFFFF",tooltipFill:"#E9ECEF",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",markerShadow:null,selectionRectFill:"rgba(134,183,254, 0.1)",selectionRectStroke:"#0D6EFD",selectionCircleStroke:"#6B7280",tabColor:"#0D6EFD",bearFillColor:"#DC3545",bullFillColor:"#6F42C1",toolkitSelectionColor:"#6E757D",toolkitFill:"#6E757D",toolkitIconRectOverFill:"#F8F9FA",toolkitIconRectSelectionFill:"#F8F9FA",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"accumulationchart"===i.getModuleName()?"#21252980":"#212529",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"14px":"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},stripLineLabelFont:{color:"#6C757D",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5Dark":o={axisLabel:"#DEE2E6",axisTitle:"#DEE2E6",axisLine:"#495057",majorGridLine:"#343A40",minorGridLine:"#343A40",majorTickLine:"#495057",minorTickLine:"#343A40",chartTitle:"#DEE2E6",legendLabel:"#DEE2E6",background:t?"#212529":"transparent",areaBorder:"#343A40",errorBar:"#ADB5BD",crosshairLine:"#ADB5BD",crosshairBackground:"rgba(138, 136, 134, 0.1)",crosshairFill:"#FFFFFF",crosshairLabel:"#212529",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",markerShadow:null,selectionRectFill:"rgba(134,183,254, 0.25)",selectionRectStroke:"#0D6EFD",selectionCircleStroke:"#0D6EFD",tabColor:"#0D6EFD",bearFillColor:"#DC3545",bullFillColor:"#6F42C1",toolkitSelectionColor:"#F8F9FA",toolkitFill:"#ADB5BD",toolkitIconRectOverFill:"#2B3035",toolkitIconRectSelectionFill:"#343A40",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"accumulationchart"===i.getModuleName()?"#DEE2E680":"#DEE2E6",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"14px":"12px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},stripLineLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent":o={axisLabel:"#3B3A39",axisTitle:"#201F1E",axisLine:"#D2D0CE",majorGridLine:"#EDEBE9",minorGridLine:"#EDEBE9",majorTickLine:"#D2D0CE",minorTickLine:" #D2D0CE",chartTitle:"#201F1E",legendLabel:"#323130",background:t?"#FFFFFF":"transparent",areaBorder:"#EDEBE9",errorBar:"#A19F9D",crosshairLine:"#A19F9D",crosshairBackground:"rgba(161, 159, 157, 0.1)",crosshairFill:"#FFFFFF",crosshairLabel:"#323130",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",markerShadow:null,selectionRectFill:"rgba(79,70,229, 0.1)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#0078D4",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#0078D4",toolkitFill:"#A19F9D",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#A19F9D",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":o={axisLabel:"#C8C6C4",axisTitle:"#F3F2F1",axisLine:"#3B3A39",majorGridLine:"#414040",minorGridLine:"#414040",majorTickLine:"#3B3A39",minorTickLine:"#3B3A39",chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:t?"#383838":"transparent",areaBorder:"#414040",errorBar:"#D2D0CE",crosshairLine:"#D2D0CE",crosshairBackground:"rgba(161, 159, 157, 0.1)",crosshairFill:"#323130",crosshairLabel:"#F3F2F1",tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",markerShadow:null,selectionRectFill:"rgba(79,70,229, 0.1)",selectionRectStroke:"#4F46E5",selectionCircleStroke:"#6B7280",tabColor:"#0078D4",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"#0078D4",toolkitFill:"#484644",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#F3F2F2",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#484644",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":o={axisLabel:"#616161",axisTitle:"#242424",axisLine:"#D2D0CE",majorGridLine:"#EDEBE9",minorGridLine:"#EDEBE9",majorTickLine:"#D2D0CE",minorTickLine:"#D2D0CE",chartTitle:"#242424",legendLabel:"#242424",background:t?"#383838":"transparent",areaBorder:"#EDEBE9",errorBar:"#A19F9D",crosshairLine:"#A19F9D",crosshairBackground:"rgba(138, 136, 134, 0.1)",crosshairFill:"#FFFFFF",crosshairLabel:"#242424",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",markerShadow:null,selectionRectFill:"rgba(180, 214, 250, 0.1)",selectionRectStroke:"#0F6CBD",selectionCircleStroke:"#0F6CBD",tabColor:"#0078D4",bearFillColor:"#E7910F",bullFillColor:"#0076E5",toolkitSelectionColor:"#424242",toolkitFill:"#424242",toolkitIconRectOverFill:"#E6E6E6",toolkitIconRectSelectionFill:"#E6E6E6",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"chart"===i.getModuleName()?"12px":"14px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"700"},stripLineLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2HighContrast":o={axisLabel:"#FFFFFF",axisTitle:"#FFFFFF",axisLine:"#3B3A39",majorGridLine:"#292827",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#292827",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:t?"#383838":"transparent",areaBorder:"#292827",errorBar:"#8A8886",crosshairLine:"#8A8886",crosshairBackground:"rgba(255, 255, 255, 0.1)",crosshairFill:"#000000",crosshairLabel:"#FFFFFF",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",markerShadow:null,selectionRectFill:"rgba(26, 235, 255, 0.2)",selectionRectStroke:"#1AEBFF",selectionCircleStroke:"#1AEBFF",tabColor:"#0078D4",bearFillColor:"#584EC6",bullFillColor:"#43B786",toolkitSelectionColor:"#FFFFFF",toolkitFill:"#FFFFFF",toolkitIconRectOverFill:"#1AEBFF",toolkitIconRectSelectionFill:"#1AEBFF",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"chart"===i.getModuleName()?"12px":"14px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"700"},stripLineLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2Dark":o={axisLabel:"#ADADAD",axisTitle:"#FFFFFF",axisLine:"#3B3A39",majorGridLine:"#3B3A39",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#292827",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:t?"#383838":"transparent",areaBorder:"#292827",errorBar:"#8A8886",crosshairLine:"#8A8886",crosshairBackground:"rgba(138, 136, 134, 0.1)",crosshairFill:"#292929",crosshairLabel:"#FFFFFF",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",markerShadow:null,selectionRectFill:"rgba(14, 71, 117, 0.1)",selectionRectStroke:"#115EA3",selectionCircleStroke:"#115EA3",tabColor:"#0078D4",bearFillColor:"#584EC6",bullFillColor:"#43B786",toolkitSelectionColor:"#D6D6D6",toolkitFill:"#D6D6D6",toolkitIconRectOverFill:"#333333",toolkitIconRectSelectionFill:"#333333",toolkitIconRect:new R.Rect(-6,-8,32,32),chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"accumulationchart"===i.getModuleName()?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"chart"===i.getModuleName()?"12px":"14px",fontStyle:"Normal",fontWeight:"600"},crosshairLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"700"},stripLineLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3":o={axisLabel:"#1E192B",axisTitle:"#1C1B1F",axisLine:"#C4C7C5",majorGridLine:"#C4C7C5",minorGridLine:"#C4C7C5",majorTickLine:"#C4C7C5",minorTickLine:" #C4C7C5",chartTitle:"#1C1B1F",legendLabel:"#49454E",background:t?"#FFFFFF":"transparent",areaBorder:"#E7E0EC",errorBar:"#79747E",crosshairLine:"#49454E",crosshairBackground:"rgba(73, 69, 78, 0.1)",crosshairFill:"#313033",crosshairLabel:"#F4EFF4",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",markerShadow:null,selectionRectFill:"rgb(98, 0, 238, 0.06)",selectionRectStroke:"#6200EE",selectionCircleStroke:"#79747E",tabColor:"#49454E",bearFillColor:"#5887FF",bullFillColor:"#F7523F",toolkitSelectionColor:"#49454E",toolkitFill:"#49454E",toolkitIconRectOverFill:"#EADDFF",toolkitIconRectSelectionFill:"#EADDFF",toolkitIconRect:new R.Rect(-4,-5,26,26),histogram:"#D21020",chartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#79747E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":o={axisLabel:"#E6E1E5",axisTitle:"#E6E1E5",axisLine:"#49454F",majorGridLine:"#444746",minorGridLine:"#444746",majorTickLine:"#444746",minorTickLine:" #444746",chartTitle:"#E6E1E5",legendLabel:"#CAC4D0",background:t?"#FFFFFF":"transparent",areaBorder:"#49454F",errorBar:"#938F99",crosshairLine:"#CAC4D0",crosshairBackground:"rgba(73, 69, 78, 0.1)",crosshairFill:"#E6E1E5",crosshairLabel:"#313033",tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",markerShadow:null,selectionRectFill:"rgba(78, 170, 255, 0.06)",selectionRectStroke:"#4EAAFF",selectionCircleStroke:"#938F99",tabColor:"#CAC4D0",bearFillColor:"#B3F32F",bullFillColor:"#FF9E45",toolkitSelectionColor:"#CAC4D0",toolkitFill:"#CAC4D0",toolkitIconRectOverFill:"#4F378B",toolkitIconRectSelectionFill:"#4F378B",toolkitIconRect:new R.Rect(-4,-5,26,26),histogram:"#FF9E45",chartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFFE6",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"#938F99",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;default:o={axisLabel:"#686868",axisTitle:"#424242",axisLine:"#b5b5b5",majorGridLine:"#dbdbdb",minorGridLine:"#eaeaea",majorTickLine:"#b5b5b5",minorTickLine:"#d6d6d6",chartTitle:"#424242",legendLabel:"#353535",background:t?"#FFFFFF":"transparent",areaBorder:"Gray",errorBar:"#000000",crosshairLine:"#4f4f4f",crosshairBackground:"rgba(0, 0, 0, 0.1)",crosshairFill:"Material"===e?"#000816":"Fabric"===e?"#FFFFFF":"#212529",crosshairLabel:"#e5e5e5",tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff",markerShadow:null,selectionRectFill:"rgba(41, 171, 226, 0.1)",selectionRectStroke:"#29abe2",selectionCircleStroke:"#29abe2",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",bearFillColor:"#2ecd71",bullFillColor:"#e74c3d",toolkitSelectionColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",toolkitFill:"#737373",toolkitIconRectOverFill:"transparent",toolkitIconRectSelectionFill:"transparent",toolkitIconRect:new R.Rect(0,0,16,16),chartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},crosshairLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},stripLineLabelFont:{color:"Material"===e?"rgba(158, 158, 158, 1)":"Fabric"===e?"#A6A6A6":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}}}return o}function no(e){var t;switch(e){case"HighContrastLight":t={backRect:"#333",thumb:"#bfbfbf",circle:"#fff",circleHover:"#685708",arrow:"#333",grip:"#333",arrowHover:"#fff",backRectBorder:"#969696"};break;case"Bootstrap":t={backRect:"#f5f5f5",thumb:"#e6e6e6",circle:"#fff",circleHover:"#eee",arrow:"#8c8c8c",grip:"#8c8c8c"};break;case"Fabric":t={backRect:"#f8f8f8",thumb:"#eaeaea",circle:"#fff",circleHover:"#eaeaea",arrow:"#a6a6a6",grip:"#a6a6a6"};break;case"MaterialDark":t={backRect:"#424242",thumb:"#616161",circle:"#757575",circleHover:"#616161",arrow:"#BDBDBD",grip:"#BDBDBD"};break;case"FabricDark":t={backRect:"#282727",thumb:"#333232",circle:"#4A4848",circleHover:"#514F4F",arrow:"#ADB5BD",grip:"#DADADA"};break;case"BootstrapDark":t={backRect:"#2A2A2A",thumb:"#313131",circle:"#414141",circleHover:"#484848",arrow:"#DADADA",grip:"#FFFFFF"};break;case"Bootstrap5":t={backRect:"#E9ECEF",thumb:"#ADB5BD",circle:"#F8F9FA",circleHover:"#F8F9FA",arrow:"#6E757D",grip:"#6E757D"};break;case"Bootstrap5Dark":t={backRect:"#343A40",thumb:"#ADB5BD",circle:"#2B3035",circleHover:"#2B3035",arrow:"#ADB5BD",grip:"#ADB5BD"};break;case"HighContrast":t={backRect:"#757575",thumb:"#BFBFBF",circle:"#FFFFFF",circleHover:"#FFFFFF",arrow:"#ADB5BD",grip:"#969696"};break;case"Tailwind3Dark":t={backRect:"#282F3C",thumb:"#374151",circle:"#111827",circleHover:"#eee",arrow:"#D1D5DB",grip:"#D1D5DB"};break;case"Fluent":t={backRect:"#F3F2F1",thumb:"#E1DFDD",circle:"#FFFFFF",circleHover:"#E1DFDD",arrow:"#605E5C",grip:"#605E5C"};break;case"FluentDark":t={backRect:"#252423",thumb:"#323130",circle:"#3B3A39",circleHover:"#3B3A39",arrow:"#ADB5BD",grip:"#A19F9D"};break;case"Fluent2":t={backRect:"#F5F5F5",thumb:"#F0F0F0",circle:"#FAFAFA",circleHover:"#FAFAFA",arrow:"#424242",grip:"#424242"};break;case"Fluent2Dark":t={thumb:"#0A0A0A",backRect:"#141414",circle:"#1F1F1F",circleHover:"#1F1F1F",arrow:"#D6D6D6",grip:"#D6D6D6"};break;case"Fluent2HighContrast":t={thumb:"#333333",backRect:"#000000",circle:"#000000",circleHover:"#000000",arrow:"#FFFFFF",grip:"#FFFFFF"};break;case"Material3":t={backRect:"rgba(103, 80, 164, 0.05)",thumb:" rgba(103, 80, 164, 0.14)",circle:"#FFFFFF",circleHover:"#E1DFDD",arrow:"#49454E",grip:"#49454E"};break;case"Material3Dark":t={backRect:"rgba(208, 188, 255, 0.05)",thumb:"rgba(208, 188, 255, 0.14)",circle:"#FFFFFF",circleHover:"#E1DFDD",arrow:"#CAC4D0",grip:"#CAC4D0"};break;case"Tailwind3":t={backRect:"#E5E7EB",thumb:"#D1D5DB",circle:"#FFFFFF",circleHover:"#eee",arrow:"#6B7280",grip:"#6B7280"};break;case"TailwindDark":t={backRect:"#6B7280",thumb:"#374151",circle:"#4B5563",circleHover:"#4B5563",arrow:"#ADB5BD",grip:"#D1D5DB"};break;default:t={backRect:"#f5f5f5",thumb:"#e0e0e0",circle:"#fff",circleHover:"#eee",arrow:"#9e9e9e",grip:"#9e9e9e"}}return t}var ao=c(74),lo=function(){function e(e){this.chart=e,this.padding=5}return e.prototype.measureAxis=function(e){var t=this.chart,i=t.chartArea.width?Li(t.chartArea.width,t.availableSize.width):null;this.crossAt(t),this.seriesClipRect=new R.Rect(e.x,e.y,e.width,e.height),this.initialClipRect=e,this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.initialClipRect=st(this.initialClipRect,new Xi(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.initialClipRect=st(this.initialClipRect,new Xi(0,0,this.topSize,this.bottomSize)),this.chart.delayRedraw||this.calculateAxisSize(this.initialClipRect),this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.seriesClipRect=st(this.seriesClipRect,new Xi(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.seriesClipRect=st(this.seriesClipRect,new Xi(0,0,this.topSize,this.bottomSize)),i&&this.calculateFixedChartArea(t,i),this.chart.delayRedraw||(t.refreshAxis(),this.calculateAxisSize(this.seriesClipRect))},e.prototype.calculateFixedChartArea=function(e,t){this.seriesClipRect.width=t,this.seriesClipRect.x=e.availableSize.width-e.margin.right-t-("Right"===e.legendSettings.position?e.legendModule.legendBounds.width:0);for(var i=0,o=e.rows;i<o.length;i++){var r=o[i];this.seriesClipRect.x-=at(r.farSizes)}},e.prototype.measureRowAxis=function(e,t){var i;this.calculateRowSize(t);for(var o=0,r=e.rows;o<r.length;o++){(i=r[o]).nearSizes=[],i.farSizes=[],i.insideNearSizes=[],i.insideFarSizes=[],this.arrangeAxis(i),this.measureDefinition(i,e,new R.Size(e.availableSize.width,i.computedHeight)),this.leftSize<at(i.nearSizes)&&(this.leftSize=at(i.nearSizes)),this.rightSize<at(i.farSizes)&&(this.rightSize=at(i.farSizes))}},e.prototype.measureColumnAxis=function(e,t){var i;this.calculateColumnSize(t);for(var o=0,r=e.columns;o<r.length;o++){(i=r[o]).farSizes=[],i.nearSizes=[],i.insideNearSizes=[],i.insideFarSizes=[],this.arrangeAxis(i),this.measureDefinition(i,e,new R.Size(i.computedWidth,e.availableSize.height)),this.bottomSize<at(i.nearSizes)&&(this.bottomSize=at(i.nearSizes)),this.topSize<at(i.farSizes)&&(this.topSize=at(i.farSizes))}},e.prototype.measureDefinition=function(e,t,i){for(var o,r=0,n=e.axes;r<n.length;r++){var a=n[r];o=a.scrollbarSettings.height,a.scrollBarHeight=t.scrollBarModule&&t.zoomModule&&t.zoomSettings.enableScrollbar&&a.enableScrollbarOnZooming&&t.zoomModule.isZoomed&&(a.zoomFactor<1||a.zoomPosition>0)?o:0,a.scrollBarHeight=t.scrollBarModule&&(t.zoomModule&&t.zoomSettings.enableScrollbar&&a.enableScrollbarOnZooming&&t.zoomModule.isZoomed&&(a.zoomFactor<1||a.zoomPosition>0)||a.scrollbarSettings.enable)?o:0,a.getModule(t),a.baseModule.calculateRangeAndInterval(i,a),e.computeSize(a,a.scrollBarHeight,e,t)}e.farSizes.length>0&&(e.farSizes[e.farSizes.length-1]-=10),e.nearSizes.length>0&&(e.nearSizes[e.nearSizes.length-1]-=10)},e.prototype.calculateAxisSize=function(e){var t,i,o,r,n,a,l,s=this.chart,h=0,c=0,d=0;this.calculateRowSize(e);for(var p=!1,u=0,g=s.rows.length;u<g;u++){h=0,c=0;for(var m=0,y=(t=s.rows[u]).axes.length;m<y;m++){if(l=(r=t.axes[m]).plotOffset,0===r.rect.height){r.rect.height=t.computedHeight,d=0;for(var f=u+1,v=u+r.span;f<v;f++)d+=(o=s.rows[f]).computedHeight;r.rect.y=t.computedTop-d+(r.plotOffsetTop?r.plotOffsetTop:l),r.rect.height=r.rect.height+d-this.getAxisOffsetValue(r.plotOffsetTop,r.plotOffsetBottom,r.plotOffset),r.rect.width=0}"primaryYAxis"===r.name&&"Outside"===r.labelPosition&&(p=!0),r.isAxisOpposedPosition?(n="Inside"===r.labelPosition&&"Vertical"===r.orientation?c>0?e.x+e.width+at(mt(t.farSizes,c))+r.maxLabelSize.width+r.multiLevelLabelHeight+("Inside"===r.tickPosition?r.majorTickLines.height:0)+r.labelPadding:e.x+e.width-at(mt(t.insideFarSizes,c)):e.x+e.width+at(mt(t.farSizes,c)),r.rect.x=r.rect.x>=n?r.rect.x:n,c++):(n="Inside"===r.labelPosition&&"Vertical"===r.orientation?e.x+at(mt(t.insideNearSizes,p?h-1:h)):e.x-at(mt(t.nearSizes,h)),r.rect.x=r.rect.x<=n?r.rect.x:n,h++)}}this.calculateColumnSize(e);for(u=0,g=s.columns.length;u<g;u++){h=0,c=0;m=0;for(var b=(i=s.columns[u]).axes.length;m<b;m++){if(l=(r=i.axes[m]).plotOffset,0===r.rect.width){f=u;for(var x=u+r.span;f<x;f++)o=s.columns[f],r.rect.width+=o.computedWidth;r.rect.x=i.computedLeft+(r.plotOffsetLeft?r.plotOffsetLeft:l),r.rect.width-=this.getAxisOffsetValue(r.plotOffsetLeft,r.plotOffsetRight,r.plotOffset),r.rect.height=0}r.isAxisOpposedPosition?(a="Inside"===r.labelPosition&&"Horizontal"===r.orientation?c>0?e.y-at(mt(i.farSizes,c))-r.maxLabelSize.height-r.multiLevelLabelHeight-("Inside"===r.tickPosition?r.majorTickLines.height:0)-r.labelPadding:e.y+at(mt(i.insideFarSizes,c)):e.y-at(mt(i.farSizes,c)),r.rect.y=r.rect.y<=a?r.rect.y:a,c++):(a="Inside"===r.labelPosition&&"Horizontal"===r.orientation?h>0?e.y+e.height+at(mt(i.nearSizes,h))+r.maxLabelSize.height+r.multiLevelLabelHeight+("Inside"===r.tickPosition?r.majorTickLines.height:0)+r.labelPadding:e.y+e.height-at(mt(i.insideNearSizes,h)):e.y+e.height+at(mt(i.nearSizes,h)),r.rect.y=r.rect.y>=a?r.rect.y:a,h++)}}},e.prototype.measure=function(){for(var e,t,i,o,r,n=this.chart,a=0,l=n.axisCollections;a<l.length;a++){var s=l[a];if("Vertical"===s.orientation){n.verticalAxes.push(s),o=this.getActualRow(s),e=n.rows[o],this.pushAxis(e,s),r=o+s.span>n.rows.length?n.rows.length:o+s.span;for(var h=o+1;h<r;h++)(i=n.rows[h]).axes[e.axes.length-1]=s,n.rows[h]=i;n.rows[o]=e}else{n.horizontalAxes.push(s),o=this.getActualColumn(s),t=n.columns[o],this.pushAxis(t,s),r=o+s.span>n.columns.length?n.columns.length:o+s.span;for(h=o+1;h<r;h++)(i=n.columns[h]).axes[t.axes.length-1]=s,n.columns[h]=i;n.columns[o]=t}s.isRTLEnabled=n.enableRtl,s.setIsInversedAndOpposedPosition()}},e.prototype.getAxisOffsetValue=function(e,t,i){return e?e+(t||i):t?t+i:2*i},e.prototype.crossAt=function(e){for(var t=0,i=e.axisCollections;t<i.length;t++){var o=i[t];if(null!==o.crossesAt)if(o.crossesInAxis)for(var r=2,n=e.axisCollections.length;r<n;r++)o.crossesInAxis!==e.axisCollections[r].name||(o.crossInAxis=e.axisCollections[r],o.crossAt=this.updateCrossAt(o.crossInAxis,o.crossesAt));else e.requireInvertedAxis?o.crossInAxis="Horizontal"===o.orientation?e.primaryXAxis:e.primaryYAxis:o.crossInAxis="Horizontal"===o.orientation?e.primaryYAxis:e.primaryXAxis,o.crossAt=this.updateCrossAt(o.crossInAxis,o.crossesAt)}},e.prototype.updateCrossAt=function(e,t){switch(e.valueType){case"DateTime":var i={skeleton:"full",type:"dateTime"},o=this.chart.intl.getDateParser(i),r=this.chart.intl.getDateFormat(i);return Date.parse(o(r(new Date(ao.DataUtil.parse.parseJson({val:t}).val))));case"Category":return parseFloat(t)?parseFloat(t):e.labels.indexOf(t);case"Logarithmic":return et(t,e.logBase);default:return t}},e.prototype.pushAxis=function(e,t){for(var i=0,o=e.axes.length;i<=o;i++)if(!e.axes[i]){e.axes[i]=t;break}},e.prototype.arrangeAxis=function(e){for(var t=[],i=0,o=e.axes.length;i<=o;i++)e.axes[i]&&t.push(e.axes[i]);e.axes=t},e.prototype.getActualColumn=function(e){var t=this.chart.columns.length,i=e.columnIndex;return i>=t?t-1:i<0?0:i},e.prototype.getActualRow=function(e){var t=this.chart.rows.length,i=e.rowIndex;return i>=t?t-1:i<0?0:i},e.prototype.calculateRowSize=function(e){for(var t,i=this.chart,o=e.y+e.height,r=0,n=Math.max(0,e.height),a=0,l=i.rows.length;a<l;a++)r=-1!==(t=i.rows[a]).height.indexOf("%")?Math.min(n,e.height*parseInt(t.height,10)/100):Math.min(n,parseInt(t.height,10)),r=a!==l-1?r:n,t.computedHeight=r,o-=r,t.computedTop=o,n-=r},e.prototype.calculateColumnSize=function(e){for(var t,i=this.chart,o=e.x,r=0,n=Math.max(0,e.width),a=0,l=i.columns.length;a<l;a++)r=-1!==(t=i.columns[a]).width.indexOf("%")?Math.min(n,e.width*parseInt(t.width,10)/100):Math.min(n,parseInt(t.width,10)),r=a!==l-1?r:n,t.computedWidth=r,t.computedLeft=o,o+=r,n-=r},e.prototype.renderAxes=function(){var e,t,i,o=this.chart,r=o.renderer.createGroup({id:o.element.id+"AxisInsideCollection"}),n=o.renderer.createGroup({id:o.element.id+"AxisOutsideCollection"});n&&n.setAttribute("aria-hidden","true"),o.scrollBarModule&&(o.scrollBarModule.topScrollBarCount=0,o.scrollBarModule.bottomScrollBarCount=0,o.scrollBarModule.leftScrollBarCount=0,o.scrollBarModule.rightScrollBarCount=0);for(var a=0,l=o.axisCollections.length;a<l;a++){var s=!0;(e=o.axisCollections[a]).index=a,this.element=o.renderer.createGroup({id:o.element.id+"AxisGroup"+a+"Inside"}),this.element&&this.element.setAttribute("aria-hidden","true"),(t=o.renderer.createGroup({id:o.element.id+"AxisGroup"+a+"Outside"}))&&t.setAttribute("aria-hidden","true");for(var h=0,c=e.series;h<c.length;h++){var d=c[h];if(e.name!==d.yAxisName&&e.name!==d.xAxisName);else if(s=d.visible,"Pareto"!==d.category||d.paretoOptions.showAxis||"Line"!==d.type||(s=!1),s)break}s?(i=this.findAxisPosition(e),this.drawAxis(e,a,i,t,r,n)):e.zoomingScrollBar&&e.zoomingScrollBar.removeScrollSvg()}return this.drawPaneLines(o,r),ni(o.enableCanvas,o.svgObject,r,o.redraw),n},e.prototype.renderScrollbar=function(e,i){var o=!(0,t.isNullOrUndefined)(e.zoomModule)&&e.zoomModule.isZoomed;if(i.zoomingScrollBar||e.scrollBarModule.injectTo(i,e),(o&&(i.zoomFactor<1||i.zoomPosition>0)||i.scrollbarSettings.enable&&(i.zoomFactor<=1||i.zoomPosition>=0))&&!i.zoomingScrollBar.isScrollUI)e.scrollElement||(e.scrollElement=Pi(e.redraw,e.element.id+"_scrollElement")||(0,t.createElement)("div",{id:e.element.id+"_scrollElement"})),ni(!1,e.scrollElement,i.zoomingScrollBar.render(!0),!0);else if(1===i.zoomFactor&&0===i.zoomPosition&&i.zoomingScrollBar.svgObject&&!i.scrollbarSettings.enable)i.zoomingScrollBar.destroy();else if(i.zoomingScrollBar.svgObject){var r=(i.isAxisOpposedPosition&&"Horizontal"===i.orientation?-16:0)+i.rect.y+Math.max(.5,i.lineStyle.width/2),n=(i.isAxisOpposedPosition&&"Horizontal"!==i.orientation?16:0)+(i.rect.x-("Horizontal"===i.orientation&&i.scrollbarSettings.enableZoom?i.zoomingScrollBar.svgExtraWidth/2:0))-("Vertical"===i.orientation?i.scrollbarSettings.height:0);"Horizontal"===i.orientation||"Left"!==i.scrollbarSettings.position&&"Right"!==i.scrollbarSettings.position?"Horizontal"!==i.orientation||"Top"!==i.scrollbarSettings.position&&"Bottom"!==i.scrollbarSettings.position||(r=$e(i.zoomingScrollBar,!0)):n=$e(i.zoomingScrollBar,!1),i.zoomingScrollBar.svgObject.style.top=r+"px",i.zoomingScrollBar.svgObject.style.left=n+"px"}i.zoomingScrollBar.isScrollUI&&(i.zoomingScrollBar.isScrollUI=!1)},e.prototype.drawPaneLines=function(e,t){this.element=e.renderer.createGroup({id:e.element.id+"DefinitionLine"});for(var i=0,o=e.rows.length;i<o;i++){var r=e.rows[i];r.border.color&&this.drawBottomLine(r,i,!0)}for(i=0,o=e.columns.length;i<o;i++){var n=e.columns[i];n.border.color&&this.drawBottomLine(n,i,!1)}t=t||qt(e.element.id+"AxisInsideCollection"),this.chart.enableCanvas||t.appendChild(this.element)},e.prototype.drawAxis=function(e,t,i,o,r,n){e.updateCrossValue();var a="";"Horizontal"===e.orientation?(e.visible&&e.internalVisibility&&e.lineStyle.width>0&&this.drawAxisLine(e,t,e.plotOffset,0,0,0,e.plotOffsetLeft,e.plotOffsetRight,i?o:this.element,e.updatedRect),a="X"):(e.visible&&e.internalVisibility&&e.lineStyle.width>0&&this.drawAxisLine(e,t,0,e.plotOffset,e.plotOffsetBottom,e.plotOffsetTop,0,0,i?o:this.element,e.updatedRect),a="Y"),(e.majorGridLines.width>0||e.majorTickLines.width>0||e.minorTickLines.width>0||e.minorGridLines.width>0)&&this["draw"+a+"AxisGridLine"](e,t,i||"Inside"===e.tickPosition?o:this.element,e.updatedRect),e.visible&&e.internalVisibility&&(this["draw"+a+"AxisLabels"](e,t,i||"Inside"===e.labelPosition?o:this.element,e.placeNextToAxisLine?e.updatedRect:e.rect),this["draw"+a+"AxisBorder"](e,t,i||"Inside"===e.labelPosition?o:this.element,e.placeNextToAxisLine?e.updatedRect:e.rect),this["draw"+a+"AxisTitle"](e,t,i?o:this.element,e.placeNextToAxisLine?e.updatedRect:e.rect)),this.chart.enableCanvas||(r.appendChild(this.element),o&&o.childNodes.length>0&&n.appendChild(o)),this.chart.scrollBarModule&&(this.chart.zoomSettings.enableScrollbar&&e.enableScrollbarOnZooming||e.scrollbarSettings.enable)?this.renderScrollbar(this.chart,e):e.zoomingScrollBar&&e.zoomingScrollBar.destroy()},e.prototype.findAxisPosition=function(e){return null!==e.crossAt&&e.isInside(e.crossInAxis.visibleRange)},e.prototype.drawBottomLine=function(e,t,i){var o,r,n,a,l,s,h=this.chart;i?(a=l=e.computedTop+e.computedHeight,n=(r=this.seriesClipRect.x)+this.seriesClipRect.width,s="Row"):(r=n=e.computedLeft,l=(a=this.seriesClipRect.y)+this.seriesClipRect.height,s="Column"),o={id:h.element.id+"_AxisBottom_"+s+t,x1:r,y1:a,x2:n,y2:l,"stroke-width":e.border.width,stroke:e.border.color},this.htmlObject=h.renderer.drawLine(o),ni(h.enableCanvas,this.element,this.htmlObject)},e.prototype.drawAxisLine=function(e,t,i,o,r,n,a,l,s,h){var c,d=this.chart,p=qt(d.element.id+"AxisLine_"+t),u=p?p.getAttribute("d"):"";p=null,c={id:d.element.id+"AxisLine_"+t,d:"M "+(h.x-i-a)+" "+(h.y-o-n)+" L "+(h.x+h.width+i+l)+" "+(h.y+h.height+o+r),"stroke-dasharray":e.lineStyle.dashArray,"stroke-width":e.lineStyle.width,stroke:e.lineStyle.color||d.themeStyle.axisLine},this.htmlObject=d.renderer.drawPath(c),ni(d.enableCanvas,s,this.htmlObject,d.redraw,!0,"x","y",null,u,null,null,null,d.duration)},e.prototype.drawYAxisGridLine=function(e,i,o,r){var n,a,l="Logarithmic"===e.valueType,s=e.valueType.indexOf("Category")>-1,h=0,c="",d="",p=e.isAxisOpposedPosition,u=p?e.majorTickLines.height:-e.majorTickLines.height,g=p?.5*e.lineStyle.width:.5*-e.lineStyle.width,m="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0,y=(0,t.isNullOrUndefined)(e.crossesAt)&&"Right"!==e.scrollbarSettings.position&&"Left"!==e.scrollbarSettings.position?p?e.scrollBarHeight:-e.scrollBarHeight:0,f="Inside"===e.tickPosition,v=f?r.x-u-g:r.x+u+g+y,b=e.visibleLabels.length,x=this.chart.themeStyle,S=1;e.valueType.indexOf("Category")>-1&&"BetweenTicks"===e.labelPlacement&&b>0&&!this.chart.stockChart&&(b+=1);for(var C=e.minorGridLines,F=e.minorTickLines,w=0;w<b;w++)(h=-1*(h=yt(n=e.visibleLabels[w]?e.visibleLabels[w].value-m:e.visibleLabels[w-1].value+e.visibleRange.interval-m,e)*r.height)+(r.y+r.height))>=r.y&&r.y+r.height>=h&&(this.chart.redraw&&!this.chart.enableCanvas&&this.chart.zoomRedraw&&e.visible&&e.majorGridLines.width&&0!==w&&!qt(this.chart.element.id+"_MajorGridLine_"+i+"_"+w)&&(c="M "+this.seriesClipRect.x+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(w||1)*S:-this.seriesClipRect.height/(w||1)*S))+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(w||1)*S:-this.seriesClipRect.height/(w||1)*S)),this.updateAxisElement(e,i,c,w,"_MajorGridLine_",this.element,!1),qt(o.id).appendChild(this.element.childNodes[this.element.childNodes.length-1])),(it(n,e.visibleRange)||this.isBorder(e,w,h))&&(c="M "+this.seriesClipRect.x+" "+h+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+h,this.renderGridLine(e,i,c,e.majorGridLines,"_MajorGridLine_",w,this.element,x.majorGridLine,e.majorGridLines.dashArray)),this.chart.redraw&&this.chart.zoomRedraw&&e.majorTickLines.width&&0!==w&&!qt(this.chart.element.id+"_MajorTickLine_"+i+"_"+w)&&!this.chart.enableCanvas&&e.visible&&(d="M "+this.seriesClipRect.x+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(w||1)*S:-this.seriesClipRect.height/(w||1)*S))+" L "+v+" "+(this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(w||1)*S:-this.seriesClipRect.height/(w||1)*S)),this.updateAxisElement(e,i,d,w,"_MajorTickLine_",o,!1),qt(o.id).appendChild(this.element.childNodes[this.element.childNodes.length-1]),S+=1),d="M "+(r.x+g+(f?y:0))+" "+h+" L "+v+" "+h,this.renderGridLine(e,i,d,e.majorTickLines,"_MajorTickLine_",w,o,x.majorTickLine),(C.width>0||F.width>0)&&e.minorTicksPerInterval>0&&(0!==w||!Wt(e)||l||s||this.renderMinorGridOnZooming(e,n,r,w,i,x,o),a=this.drawAxisMinorLine(e,n,r,w),this.renderGridLine(e,i,a[0],C,"_MinorGridLine_",w,this.element,x.minorGridLine,C.dashArray),this.renderGridLine(e,i,a[1],F,"_MinorTickLine_",w,o,x.minorTickLine),w===b-1&&Wt(e)&&l&&!s&&this.renderMinorGridOnZooming(e,n+e.visibleRange.interval,r,w,i,x,o)));if(b&&this.previousYLabel>b&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&this.chart.redraw)for(w=b;w<this.previousYLabel;w++){var L=this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height/b*(w-b+1)+this.seriesClipRect.height:-this.seriesClipRect.height/b*(w-b+1));e.majorGridLines.width&&(c="M "+this.seriesClipRect.x+" "+ +L+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+L,this.updateAxisElement(e,i,c,w,"_MajorGridLine_",this.element,!0)),e.majorTickLines.width&&(d="M "+this.seriesClipRect.x+" "+L+" L "+v+" "+L,this.updateAxisElement(e,i,d,w,"_MajorTickLine_",o,!0))}},e.prototype.isBorder=function(e,t,i){var o=this.chart.chartArea.border,r=this.seriesClipRect,n=e.orientation,a="Horizontal"===n?r.x:r.y,l="Horizontal"===n?r.width:r.height,s="Horizontal"===n?0:e.visibleLabels.length-1,h="Horizontal"===n?e.visibleLabels.length-1:0;return e.plotOffset>0||((i===a||i===a+l)&&(o.width<=0||"transparent"===o.color)||(i!==a&&t===s||i!==a+l&&t===h))},e.prototype.drawYAxisLabels=function(e,i,o,r){var n,a,l,s,h,c=this.chart,d=0,p=0,u=e.labelPadding,g="Inside"===e.labelPosition,m=e.isAxisOpposedPosition,y=(e.labelPosition===e.tickPosition?e.majorTickLines.height:0)+u+.5*e.lineStyle.width,f=e.angle%360,v=-90===f||90===f||270===f||-270===f;y+=v?g?5:-5:0,y=m?y:-y;var b,x,S,C,F,w,L,P=c.renderer.createGroup({id:c.element.id+"AxisLabels"+i}),A=(0,t.isNullOrUndefined)(e.crossesAt)&&"Left"!==e.scrollbarSettings.position&&"Right"!==e.scrollbarSettings.position?e.scrollBarHeight*(m?1:-1):0,M=e.isAxisInverse,D=1,k=M?r.y:r.y+r.height,T=!m&&!g||m&&g;C=g?T?y:-y:T?y+(c.enableRtl?-A:A):-y+(c.enableRtl?-A:A);var E=[],_=[];e.visibleLabels.map(function(e){E.push(e.size.width),_.push(e.breakLabelSize.width)});var I=Math.max.apply(Math,E),O=Math.max.apply(Math,_);if(h=I,f>=-45&&f<=45&&0!==f&&(h=I*Math.cos(f*Math.PI/180))<0&&(h=-h),e.labelTemplate){var z=c.element.id+"_YAxisLabelTemplate_Collection";c.yAxisLabelTemplate=(0,t.createElement)("div",{id:z})}for(var B=0,N=e.visibleLabels.length;B<N;B++)if(n=e.visibleLabels[B],e.labelTemplate){F=r.height/N;var V=e.maxLabelSize.width<n.size.width?e.maxLabelSize.width:n.size.width,H=Math.min(n.size.height,F);if(g)d=r.x-y-(m?V:0);else{var W=null==e.crossesAt?e.scrollBarHeight*(m?1:-1):0;d=r.x+y+W-(m?0:V)}if(p=yt(n.value,e)*r.height,p=Math.floor(-1*p+(r.y+r.height)),p+=g?0:-H/2,"Hide"===e.edgeLabelPlacement){var j=p;if((0===B||M&&B===N-1)&&p+H>r.y+r.height||(B===N-1||M&&0===B)&&j<r.y)continue}else if("Shift"===e.edgeLabelPlacement){var U=.5*c.border.width,X=g?r.y+r.height:c.availableSize.height-U,G=g?r.y:U;(0===B||M&&B===N-1)&&p+H>X?p-=p+H-X:(B===N-1||M&&0===B)&&p<G&&(p+=G-p)}var Y=Jt((0,t.createElement)("div",{id:c.element.id+e.name+"_AxisLabelTemplate_"+B,styles:"position: absolute; pointer-events:none; cursor: default; white-space: nowrap; z-index:1; left: "+d+"px; top: "+p+"px; width: "+V+"px; height: "+H+"px;"}),B,e.labelTemplate,c,n);c.yAxisLabelTemplate.appendChild(Y)}else{switch(a=(s=qe(e.visibleLabels[B].originalText))?e.visibleLabels[B].breakLabelSize:e.visibleLabels[B].size,p=yt(e.visibleLabels[B].value,e)*r.height+(c.stockChart&&"Outside"!==e.labelPosition?7:0),p=Math.floor(-1*p+(r.y+r.height)),b=a.height/8*e.visibleLabels[B].text.length/2,x=c.requireInvertedAxis&&"Inside"===e.labelPosition?0:a.height/4*3+3,F=r.height/e.visibleLabels.length,w=("Trim"===e.labelIntersectAction||"Wrap"===e.labelIntersectAction)&&0!==f&&a.width>F?F:a.width,p=s?"Inside"===e.labelPosition?p-a.height/2-b+x:p-b:"Inside"===e.labelPosition?p+x:p,"Inside"===e.labelPosition&&(0===B&&!e.isInversed||B===N-1&&e.isInversed)&&(c.stockChart?p-=x:p-=x-(c.requireInvertedAxis&&"Inside"===e.labelPosition?0:e.opposedPosition?-y:y)),S=e.majorGridLines.width>e.majorTickLines.width?e.majorGridLines.width:e.majorTickLines.width,"Far"===e.labelStyle.textAlignment?p=p-S-10:"Near"===e.labelStyle.textAlignment&&(p=p+S+10),L=g?C+(0===f?a.width:s?O:I)/2:C-(0===f?a.width:s?O:h)/2,e.enableWrap&&c.requireInvertedAxis&&f&&(!e.opposedPosition&&"Inside"===e.labelPosition||e.opposedPosition&&"Outside"===e.labelPosition)&&(L=e.opposedPosition?L-I/2:L+I/2),d=m?0!==e.scrollBarHeight&&"Right"!==e.scrollbarSettings.position&&"Left"!==e.scrollbarSettings.position?r.x+e.scrollBarHeight+y-L:r.x-L:r.x+L,v&&(d+=m?5:-5),L=C,l=new R.TextOption(c.element.id+i+"_AxisLabel_"+B,d,p,"middle",n.text,"","middle",f),e.edgeLabelPlacement){case"None":break;case"Hide":((0===B||M&&B===N-1)&&l.y>r.y||(B===N-1||M&&0===B)&&l.y-.5*a.height<r.y)&&(l.text="");break;case"Shift":(0===B||M&&B===N-1)&&l.y>r.y+r.height?l.y=p=r.y+r.height:(B===N-1||M&&0===B)&&l.y<=0&&(l.y=p=r.y+.5*a.height)}var Z=l.y,q=l.y-w;if(s&&(Z=l.y-w/2,q=l.y+w/2),90!==f&&270!==f||"Hide"!==e.labelIntersectAction||0===B||!(M?q<=k:Z>=k)){if(k=M?Z:q,l.transform="rotate("+f+","+d+","+p+")",this.chart.redraw&&this.chart.zoomRedraw&&!qt(l.id)&&!this.chart.enableCanvas&&e.visible){var Q=l.y;l.y=this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/(B||1)*D:-this.seriesClipRect.height/(B||1)*D),this.updateAxisElement(e,i,"",B,"_AxisLabel_",P,!1,l,n),l.y=Q,D+=1}Di(c.renderer,l,n.labelStyle,n.labelStyle.color||c.themeStyle.axisLabelFont.color,P,!1,c.redraw,!0,!0,c.duration,null,0,null,c.enableCanvas,null,c.themeStyle.axisLabelFont,new ji(d,p))}}if(this.previousYLabel&&e.visibleLabels.length&&this.previousYLabel>e.visibleLabels.length&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&c.redraw&&l.text)for(B=e.visibleLabels.length;B<this.previousYLabel;B++)l.y=this.seriesClipRect.y+(e.isInversed?this.seriesClipRect.height+this.seriesClipRect.height/e.visibleLabels.length*(B-e.visibleLabels.length+1):-this.seriesClipRect.height/e.visibleLabels.length*(B-e.visibleLabels.length+1)),l.id=c.element.id+i+"_AxisLabel_"+B,this.updateAxisElement(e,i,"",B,"_AxisLabel_",P,!0,l,n);else this.previousYLabel=e.visibleLabels.length;this.chart.enableCanvas||e.labelTemplate||(c.delayRedraw?e.visible&&e.internalVisibility&&this.createZoomingLabel(this.chart,P,e,i,r):ni(c.enableCanvas,o,P,c.redraw))},e.prototype.rangeAnimate=function(e,i,o,r,n,a,l){var s=this;i&&new t.Animation({}).animate(i,{duration:o,progress:function(){var e=qt(i.id);if(e.style.animation="",r)Pt(parseFloat(e.getAttribute("x")),parseFloat(e.getAttribute("y")),n)?e.style.visibility="visible":e.style.visibility="hidden";else{var t=e.getAttribute("d").split(" ");Pt(parseFloat(t[1]),parseFloat(t[2]),n)?e.style.visibility="visible":e.style.visibility="hidden"}},end:function(){var t=qt(i.id);t.style.visibility="",a&&l>=e.visibleLabels.length&&(Je(t),r&&("Vertical"===e.orientation?s.previousYLabel=e.visibleLabels.length:s.previousXLabel=e.visibleLabels.length))}})},e.prototype.getAxisLabelXvalue=function(e,t,i){var o=t.lineBreakAlignment,r="Inside"===t.labelPosition,n=t.isAxisOpposedPosition;return n&&r||!n&&!r?"Right"===o?e:"Center"===o?e-i/2:e-i:"Left"===o?e:"Center"===o?e+i/2:e+i},e.prototype.drawYAxisBorder=function(e,t,i,o){if(e.border.width>0){var r=void 0,n=void 0,a="Outside"===e.labelPosition&&"Right"!==e.scrollbarSettings.position&&"Left"!==e.scrollbarSettings.position?e.scrollBarHeight:0,l=e.isAxisOpposedPosition;a*=l?1:-1;for(var s=o.height/e.visibleRange.delta*("DateTime"===e.valueType?e.dateTimeInterval:e.visibleRange.interval),h=void 0,c=e.maxLabelSize.width+10+(e.tickPosition===e.labelPosition?e.majorTickLines.height:0),d="",p="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?-.5:0,u=l&&"Inside"===e.labelPosition||!l&&"Outside"===e.labelPosition?o.x-c+a:o.x+c+a,g=0,m=e.visibleLabels.length;g<m;g++)switch(n=yt(e.visibleLabels[g].value+p,e),n=(e.isAxisInverse?1-n:n)*o.height,"Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?(r=-1*n+(o.y+o.height),h=-1*n-s+(o.y+o.height)):(r=-1*n+s/2+(o.y+o.height),h=-1*n-s/2+(o.y+o.height)),e.border.type){case"Rectangle":case"WithoutTopBorder":r>o.y+o.height?d+="M "+u+" "+(o.y+o.height)+" L "+u+" "+h+" ":Math.floor(o.y)>h?d+="M "+(o.x+a)+" "+r+" L "+u+" "+r+" L "+u+" "+o.y+" ":(d+="M "+(o.x+a)+" "+r+" L "+u+" "+r+" L "+u+" "+h+" ",g===e.visibleLabels.length-1&&(d+="M "+(o.x+a)+" "+h+" L "+u+" "+h+" "));break;case"WithoutTopandBottomBorder":r>o.y+o.height||h<Math.floor(o.y)||(d+="M "+(o.x+a)+" "+r+" L "+u+" "+r+" M "+u+" "+h+" L "+(o.x+a)+" "+h)}""!==(d+="Rectangle"===e.border.type?"M "+(o.x+a)+" "+o.y+" L "+(o.x+a)+" "+(o.y+o.height)+" ":"")&&this.createAxisBorderElement(e,t,d,i)}for(g=0;g<this.chart.visibleSeries.length;g++)if(e.multiLevelLabels.length>0&&this.chart.multiLevelLabelModule&&this.chart.visibleSeries[g].visible){this.chart.multiLevelLabelModule.renderYAxisMultiLevelLabels(e,t,i,o);break}},e.prototype.drawYAxisTitle=function(e,t,i,o){if(e.title){var r=this.chart,n=!1,a=e.isAxisOpposedPosition,l=(null==e.titleRotation?a?90:-90:e.titleRotation)%360,s=("Inside"===e.tickPosition?0:e.majorTickLines.height+e.titlePadding)+("Inside"===e.labelPosition?0:e.maxLabelSize.width+e.multiLevelLabelHeight+this.padding);s="Outside"===e.tickPosition||"Inside"!==e.tickPosition&&"Inside"!==e.labelPosition||5===e.titlePadding?s:s+e.titlePadding,s=a?s+("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:e.scrollBarHeight):-s-("Right"===e.scrollbarSettings.position||"Left"===e.scrollbarSettings.position?0:e.scrollBarHeight),(-90!==l&&!a||90!==l&&a)&&(s+=e.isAxisOpposedPosition?e.titleSize.width/2+("Inside"===e.labelPosition&&5!==e.labelPadding?0:e.labelPadding):-e.titleSize.width/2-("Inside"===e.labelPosition&&5!==e.labelPadding?0:e.labelPadding),n=!0);var h=o.x+s,c=void 0,d=void 0;"Center"===e.titleStyle.textAlignment?(d="middle",c=o.y+.5*o.height):"Near"===e.titleStyle.textAlignment?(d=e.opposedPosition?"end":"start",c=o.height+o.y):(d=e.opposedPosition?"start":"end",c=o.y);var p=e.titleSize.height*(e.titleCollection.length-1),u=new R.TextOption(r.element.id+"_AxisTitle_"+t,h,c+(n?-p:-("Inside"===e.labelPosition&&5!==e.labelPadding?0:e.labelPadding)-p),d,e.titleCollection,"rotate("+l+","+h+","+c+")",null,l);Di(r.renderer,u,e.titleStyle,e.titleStyle.color||r.themeStyle.axisTitleFont.color,i,null,null,null,null,null,null,0,null,r.enableCanvas,null,r.themeStyle.axisTitleFont,new ji(h,c)).setAttribute("aria-hidden","true")}},e.prototype.drawXAxisGridLine=function(e,i,o,r){var n,a,l="Logarithmic"===e.valueType,s=e.valueType.indexOf("Category")>-1,h=0,c="",d="",p=1,u=e.isAxisOpposedPosition,g=u?-e.majorTickLines.height:e.majorTickLines.height,m=u?.5*-e.lineStyle.width:.5*e.lineStyle.width,y=(0,t.isNullOrUndefined)(e.crossesAt)&&"Top"!==e.scrollbarSettings.position&&"Bottom"!==e.scrollbarSettings.position?u?-e.scrollBarHeight:e.scrollBarHeight:0,f=e.valueType.indexOf("Category")>-1&&"BetweenTicks"===e.labelPlacement&&!this.chart.stockChart?.5:0,v=e.visibleLabels.length,b="Inside"===e.tickPosition,x=b?r.y-g-m:r.y+g+m+y,S=this.chart.themeStyle;e.valueType.indexOf("Category")>-1&&v>0&&"BetweenTicks"===e.labelPlacement&&!this.chart.stockChart&&(v+=1);for(var C=this.calculateGridLineId(o,v),F=0;F<v;F++)if((h=yt(n="DateTimeCategory"!==e.valueType?e.visibleLabels[F]?e.visibleLabels[F].value-f:e.visibleLabels[F-1].value+e.visibleRange.interval-f:e.visibleLabels[F]?e.visibleLabels[F].value-f:e.visibleRange.max,e)*r.width+r.x)>=r.x&&r.x+r.width>=h){if(it(n,e.visibleRange)||this.isBorder(e,F,h)){if(this.chart.redraw&&(this.chart.pointsAdded&&!this.chart.pointsRemoved||this.chart.zoomRedraw)&&e.majorGridLines.width&&0!==F&&e.visible&&!qt(this.chart.element.id+"_MajorGridLine_"+i+"_"+F)&&!this.chart.enableCanvas)c="M "+(w=this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/v*p:this.seriesClipRect.width+this.seriesClipRect.width/(F||1)*p))+" "+(this.seriesClipRect.y+this.seriesClipRect.height)+" L "+w+" "+this.seriesClipRect.y,this.renderGridLine(e,i,c,e.majorGridLines,"_MajorGridLine_",F,this.element,S.majorGridLine,e.majorGridLines.dashArray,C.MajorGridLine&&C.MajorGridLine.ids?C.MajorGridLine.ids[F]:null,!!C.MajorGridLine&&C.MajorGridLine.isPointRemoved),this.rangeAnimate(e,this.element.childNodes[this.element.childNodes.length-1],this.chart.duration,!1,new R.Rect(this.seriesClipRect.x,e.rect.y,this.seriesClipRect.x+this.seriesClipRect.width,this.chart.availableSize.height),!1,F),qt(o.id)&&qt(o.id).appendChild(this.element.childNodes[this.element.childNodes.length-1]);c="M "+h+" "+(this.seriesClipRect.y+this.seriesClipRect.height)+" L "+h+" "+this.seriesClipRect.y,this.renderGridLine(e,i,c,e.majorGridLines,"_MajorGridLine_",F,this.element,S.majorGridLine,e.majorGridLines.dashArray,C.MajorGridLine&&C.MajorGridLine.ids?C.MajorGridLine.ids[F]:null,!!C.MajorGridLine&&C.MajorGridLine.isPointRemoved)}this.chart.redraw&&this.chart.zoomRedraw&&e.majorTickLines.width&&!qt(this.chart.element.id+"_MajorTickLine_"+i+"_"+F)&&!this.chart.enableCanvas&&e.visible&&(d="M "+(this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/v*p:this.seriesClipRect.width+this.seriesClipRect.width/(F||1)*p))+" "+(r.y+m+(b?y:0))+" L "+(this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/v*p:this.seriesClipRect.width+this.seriesClipRect.width/(F||1)*p))+" "+x,this.updateAxisElement(e,i,d,F,"_MajorTickLine_",o,!1),qt(o.id).appendChild(this.element.childNodes[this.element.childNodes.length-1]),p+=1),d="M "+h+" "+(r.y+m+(b?y:0))+" L "+h+" "+x,this.renderGridLine(e,i,d,e.majorTickLines,"_MajorTickLine_",F,o,S.majorTickLine,null,C.MajorTickLine&&C.MajorTickLine.ids?C.MajorTickLine.ids[F]:null,!!C.MajorTickLine&&C.MajorTickLine.isPointRemoved),e.minorTicksPerInterval>0&&(e.minorGridLines.width>0||e.minorTickLines.width>0)&&(0!==F||!Wt(e)||l||s||this.renderMinorGridOnZooming(e,n,r,F,i,S,o),a=this.drawAxisMinorLine(e,n,r,F),this.renderGridLine(e,i,a[0],e.minorGridLines,"_MinorGridLine_",F,this.element,S.minorGridLine,e.minorGridLines.dashArray,C.MinorGridLine&&C.MinorGridLine.ids?C.MinorGridLine.ids[F]:null,!!C.MinorGridLine&&C.MinorGridLine.isPointRemoved),this.renderGridLine(e,i,a[1],e.minorTickLines,"_MinorTickLine_",F,o,S.minorTickLine,null,C.MinorTickLine&&C.MinorTickLine.ids?C.MinorTickLine.ids[F]:null,!!C.MinorTickLine&&C.MinorTickLine.isPointRemoved),F===v-1&&Wt(e)&&l&&!s&&this.renderMinorGridOnZooming(e,n+e.visibleRange.interval,r,F,i,S,o))}if(v&&this.previousXLabel>v&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&this.chart.redraw)for(F=v;F<this.previousXLabel;F++){var w=this.seriesClipRect.x+(this.chart.enableRtl!==e.isInversed?-this.seriesClipRect.width/v*(F-v+1):this.seriesClipRect.width+this.seriesClipRect.width/v*(F-v+1));e.majorGridLines.width&&(c="M "+w+" "+(this.seriesClipRect.y+this.seriesClipRect.height)+" L "+w+" "+this.seriesClipRect.y,this.updateAxisElement(e,i,c,F,"_MajorGridLine_",this.element,!0)),e.majorTickLines.width&&(d="M "+w+" "+(r.y+m+(b?y:0))+" L "+w+" "+x,this.updateAxisElement(e,i,d,F,"_MajorTickLine_",o,!0))}},e.prototype.calculateGridLineId=function(e,t){var i=this,o={};if(this.chart.pointsRemoved){["MajorGridLine","MajorTickLine","MinorGridLine","MinorTickLine"].forEach(function(r){for(var n=qt(e.id),a=n.querySelectorAll('[id*="_'+r+'_"]'),l=[],s=0;s<a.length;s++)l.push(a[s]);var h="MajorGridLine"===r&&i.chart.chartArea.border.width?t-2:t;if(h="MinorGridLine"===r||"MinorTickLine"===r?t-1:h,l.length>0&&l.length>h){for(var c=l.length,d=0;d<c-h;d++)l[d]&&n.removeChild(l[d]),l.shift();var p=l.map(function(e){var t=e.id.split("_");return parseInt(t[t.length-1],10)});o[r]={ids:p,isPointRemoved:!0}}})}return o},e.prototype.renderMinorGridOnZooming=function(e,t,i,o,r,n,a){var l=this.drawAxisMinorLine(e,t,i,o,!0);this.renderGridLine(e,r,l[0],e.minorGridLines,"_MinorGridLine_",-1,this.element,n.minorGridLine,e.minorGridLines.dashArray),this.renderGridLine(e,r,l[1],e.minorTickLines,"_MinorTickLine_",-1,a,n.minorTickLine)},e.prototype.drawAxisMinorLine=function(e,t,i,o,r){var n,a=t,l=0,s=0,h=e.visibleRange,c="Inside"===e.tickPosition,d=[],p=e.isAxisOpposedPosition?-e.minorTickLines.height:e.minorTickLines.height,u=1,g=1,m=c?i.y-p:i.y+p,y=c?i.x+p:i.x-p,f="",v="",b=e.isAxisInverse;if("Logarithmic"===e.valueType&&(g=(n=Math.pow(e.logBase,a-h.interval))+(u=(Math.pow(e.logBase,a)-n)/(e.minorTicksPerInterval+1))),"Horizontal"===e.orientation)for(var x=0;x<e.minorTicksPerInterval;x++)a=this.findLogNumeric(e,g,a,o,r),g+=u,it(a,h)&&(s=(a-h.min)/(h.max-h.min),s=Math.ceil((b?1-s:s)*i.width),l=Math.floor(s+i.x),this.chart.enableCanvas?(f=""===f?"M "+l+" "+this.seriesClipRect.y+" L "+l+" "+(this.seriesClipRect.y+this.seriesClipRect.height):f+" M "+l+" "+this.seriesClipRect.y+" L "+l+" "+(this.seriesClipRect.y+this.seriesClipRect.height),l=Math.floor(s+i.x),v=""===v?v.concat("M "+l+" "+i.y+" L "+l+" "+(m+e.scrollBarHeight)):v.concat(" M "+l+" "+i.y+" L "+l+" "+(m+e.scrollBarHeight))):(f=f.concat("M "+l+" "+this.seriesClipRect.y+"L "+l+" "+(this.seriesClipRect.y+this.seriesClipRect.height)),l=Math.floor(s+i.x),v=v.concat("M "+l+" "+i.y+"L "+l+" "+(m+e.scrollBarHeight))));else for(x=0;x<e.minorTicksPerInterval;x++)it(a=this.findLogNumeric(e,g,a,o,r),h)&&(s=(a-h.min)/(h.max-h.min),s=-1*Math.ceil((b?1-s:s)*i.height),l=Math.floor(s+i.y+i.height),this.chart.enableCanvas?(f=""===f?"M "+this.seriesClipRect.x+" "+l+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+l:f+" M "+this.seriesClipRect.x+" "+l+" L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+l,l=Math.floor(s+i.y+i.height),v=""===v?v.concat("M "+i.x+" "+l+" L "+(y-e.scrollBarHeight)+" "+l+" "):v.concat(" M "+i.x+" "+l+" L "+(y-e.scrollBarHeight)+" "+l+" ")):(f=f.concat("M "+this.seriesClipRect.x+" "+l+"L "+(this.seriesClipRect.x+this.seriesClipRect.width)+" "+l+" "),l=Math.floor(s+i.y+i.height),v=v.concat("M "+i.x+" "+l+"L "+(y-e.scrollBarHeight)+" "+l+" "))),g+=u;return d.push(f),d.push(v),d},e.prototype.findLogNumeric=function(e,t,i,o,r){var n,a=e.visibleRange;if("Logarithmic"===e.valueType)i=et(t,e.logBase);else if("DateTime"===e.valueType)n=e.dateTimeInterval/(e.minorTicksPerInterval+1),i=r?i-n:i+n;else if("DateTimeCategory"===e.valueType){var l="BetweenTicks"===e.labelPlacement?.5:0;i+=((e.visibleLabels[o+1]?e.visibleLabels[o+1].value-l:e.visibleRange.max)-(e.visibleLabels[o]?e.visibleLabels[o].value-l:e.visibleRange.min))/(e.minorTicksPerInterval+1)}else n=a.interval/(e.minorTicksPerInterval+1),i=r?i-n:i+n;return i},e.prototype.drawXAxisLabels=function(e,i,o,r){var n,a,l,s,h,c,d,p,u,g,m=this.chart,y=0,f=0,v=0,b=e.labelPadding,x=m.renderer.createGroup({id:m.element.id+"AxisLabels"+i}),S="Inside"===e.labelPosition,C=e.isAxisOpposedPosition,F=e.labelPosition===e.tickPosition?e.majorTickLines.height:0,w=F+b+.5*e.lineStyle.width,L=e.angle%360,P=0===L||-180===L||180===L,A=e.isAxisInverse,M=1,D=A?r.x+r.width:r.x,k=0,T=e.visibleLabels.length,E=e.scrollbarSettings.enable||!S&&(0,t.isNullOrUndefined)(e.crossesAt)&&(e.zoomFactor<1||e.zoomPosition>0)?"Top"===e.scrollbarSettings.position||"Bottom"===e.scrollbarSettings.position?0:e.scrollBarHeight:0,_=[],I=!1,O=[],z=new R.Size(0,0);w+=90===L||270===L||-90===L||-270===L?S?5:-5:0;var B=!C&&!S||C&&S,N=qt(m.element.id+"AxisLabels"+i),V=this.removeAxisLabelElements(e,N),H=m.legendModule&&"Right"===m.legendSettings.position&&m.legendModule.legendBounds.height+m.legendModule.legendBounds.y>=e.rect.y?m.legendModule.legendBounds.width:0,W=B?360>=L&&L>=180||-1>=L&&L>=-180:1<=L&&L<=180||-181>=L&&L>=-360;if(e.labelTemplate){var j=m.element.id+"_XAxisLabelTemplate_Collection";m.xAxisLabelTemplate=(0,t.createElement)("div",{id:j})}for(var U=m.border,X=.5*U.width,G=m.initialClipRect.x+m.initialClipRect.width-.5*U.width,Y=0,Z=T;Y<Z;Y++)if(u=e.visibleLabels[Y],e.labelTemplate){y=yt(u.value,e)*r.width+r.x;var q=u.size.width;p=r.width/Z;var Q=Math.min(q,p);if(0===L&&(y-=Q/2),S&&0!==L?f=C?r.y+w+u.size.height/4:r.y+w-e.maxLabelSize.height:(l=C&&!S||!C&&S?-(w+(0!==L?0:u.size.height))-E:w+E,f=r.y+l-(C&&0!==L?e.maxLabelSize.height+l-u.size.height/4:0)),0===L){var $=X,K=G,J=y,ee=Q,te=J+ee;if("Shift"===e.edgeLabelPlacement){var ie,oe=y;if(q>p&&(q=p),(!A&&0===Y||A&&Y===Z-1)&&oe<X){var re=X-oe;oe=X+2,p-=re}else if(!A&&Y===Z-1||A&&0===Y){if(!A&&oe+q>G){if(p-=re=oe+q-G,(oe-=re+2)<=D)oe+=ne=D-oe+2,q-=ne}else if(A&&oe<X){var ne;if(p-=re=X-oe,(oe=X+2)+q>=D)oe-=ne=oe+q-D+2,q-=ne}}if(oe+q>G)q-=ie=oe+q-G;if(oe<X)oe+=ie=X-oe,q-=ie;y=oe,u.size.width=q}else if("Hide"===e.edgeLabelPlacement){if(!A&&J<D||A&&te>D||J<$||te>K)continue;u.size.width=ee,y=J}else{if(!A&&J<D)te=(J+=ae=D-J)+(ee=Math.max(0,ee-ae));else if(A&&te>D){var ae=te-D;te=J+(ee=Math.max(0,ee-ae))}if(J<$){ae=$-J;te=(J=$)+(ee=Math.max(0,ee-ae))}if(te>K){ae=te-K;te=J+(ee=Math.max(0,ee-ae))}if(ee<=0)continue;u.size.width=ee,y=J}}var le="";if(0!==L){var se=this.getRotateTemplateStyles(L,u.size.width,u.size.height);y+=se.x/2,f+=se.y,(S&&!C||!S&&C)&&(f-=u.size.height),le="rotate("+L+"deg)"}var he=Jt((0,t.createElement)("div",{id:m.element.id+e.name+"_AxisLabelTemplate_"+Y,styles:"position: absolute; pointer-events:none; cursor: default; white-space: nowrap; z-index:1; left: "+y+"px; top: "+f+"px; width: "+u.size.width+"px; height: "+u.size.height+"px;"}),Y,e.labelTemplate,m,u);he.style.transform=le,""===le&&(he.style.overflow="hidden"),he.style.transformOrigin="0 0",m.xAxisLabelTemplate.appendChild(he),D=A?y:y+u.size.width}else{g=qe(u.originalText)||"Wrap"===e.labelIntersectAction&&u.text.length>1,y=yt(u.value,e)*r.width+r.x,a=u.size,e.enableWrap&&(a.height=(0,R.measureText)(u.text,e.labelStyle,m.themeStyle.axisLabelFont).height),p=r.width/T,c=g?u.breakLabelSize.width:a.width,k=("Trim"===e.labelIntersectAction||"Wrap"===e.labelIntersectAction)&&0===L&&c>p?p:c,n=a.height/4,y-=g||0!==L?0:k/2,0!==L&&(y-=g?"Left"===e.lineBreakAlignment?u.breakLabelSize.width/2:"Right"===e.lineBreakAlignment?-u.breakLabelSize.width/2:0:-90===L||270===L?-n:90===L||-270===L?n:0),"Far"===e.labelStyle.textAlignment?y=y+k-10:"Near"===e.labelStyle.textAlignment&&(y=y-k+10),g&&"Center"!==e.lineBreakAlignment&&0===L&&(y+="Left"===e.lineBreakAlignment?-k/2:k/2);var ce=g?P?e.opposedPosition||S?0:a.height:u.breakLabelSize.width/2:0;if(w=g?F+b+.5*e.lineStyle.width:w,S&&L?f=g?C?r.y+w+ce:r.y-w-ce:C?r.y+w+n:r.y-w-n:(l=g?B?w+E+(L?ce:3*n):-(w+E+ce):B?w+E+(L?1:3)*n:-(w+E+(L?n:u.index>1?2*n:0)),f=r.y+l*u.index),s=g?this.getAnchor(e):m.enableRtl?W?"":"end":m.isRtlEnabled||W?"end":"start",(h=new R.TextOption(m.element.id+i+"_AxisLabel_"+Y,y,f,s)).id=V&&N&&N.children[Y]?N.children[Y].id:h.id,0!==L&&(z=Ke(u.labelStyle,u.originalText,L,m,m.themeStyle.axisLabelFont),d=L<0&&L>-90||L<-180&&L>-270||L>90&&L<180||L>270&&L<360),e.edgeLabelPlacement)switch(e.edgeLabelPlacement){case"None":break;case"Hide":if((0===Y||A&&Y===Z-1)&&h.x<r.x||(Y===Z-1||A&&0===Y)&&h.x+(0===L?k:z.width)>r.x+r.width)continue;break;case"Shift":if(Y===Z-2&&"MultipleRows"!==e.labelIntersectAction&&(v="start"===s||""===s?h.x+k:"middle"===s?h.x+k/2:h.x),(0===Y||A&&Y===Z-1)&&(h.x<r.x||0!==L&&d&&h.x<r.x||"Center"===e.lineBreakAlignment&&h.x-u.size.width/u.text.length/2<r.x&&0===L))if(p-=r.x-h.x,""===s||"start"===s)y=h.x<=0?h.x=0:h.x,p=r.width/T;else if(d&&0!==L)p=r.width/T,r.x+p>h.x+z.width?h.x=y=r.x+w:h.x=y=r.x+p-w;else if(g&&"Center"===e.lineBreakAlignment&&"OnTicks"===e.labelPlacement&&0===L){for(var de=0,pe=0;pe<u.text.length;pe++){var ue=(0,R.measureText)(u.text[pe],e.labelStyle,m.themeStyle.axisLabelFont).width;ue>de&&(de=ue)}h.x=y=r.x+de/2}else"start"===s&&h.x>0||(h.x=y=P?r.x:r.x+w);else if((Y===Z-1||A&&0===Y)&&(h.x+k>m.availableSize.width-m.border.width-H&&("start"===s||""===s)&&0===L||""===s&&0!==L&&!d&&h.x+z.width>m.availableSize.width-m.border.width-H||"middle"===s&&0!==L&&!d&&h.x+z.width/2>m.availableSize.width-m.border.width-H||"end"===s&&0!==L&&!d&&h.x>m.availableSize.width-m.border.width-H||"end"===s&&h.x>m.availableSize.width-m.border.width-H&&0===L||"middle"===s&&h.x+k/2>m.availableSize.width-m.border.width-H&&0===L)){var ge=0!==L?z.width:k,me=void 0;if(me="start"===s||""===s?h.x-(h.x+ge-m.availableSize.width+m.border.width+5+H):"middle"===s?h.x-(h.x+ge/2-m.availableSize.width+m.border.width+5+H):h.x-(h.x-(m.availableSize.width+m.border.width+5+H)),0!==v&&me<v){var ye=m.availableSize.width-v;u.text=Fi(ye,u.originalText,e.labelStyle,m.isRtlEnabled,m.themeStyle.axisLabelFont)}else h.x=y=me}}h.text=this.getLabelText(u,e,p),h.labelRotation=L;var fe=void 0,ve=void 0;if(g&&0===L?"Right"===e.lineBreakAlignment?(fe=h.x-k,ve=h.x):"Center"===e.lineBreakAlignment?(fe=h.x-k/2,ve=h.x+k/2):(fe=h.x,ve=h.x+k):(fe=h.x,ve=h.x+k),0!==L||"Hide"!==e.labelIntersectAction||0===Y||!(A?ve>=D:fe<=D)){if(D=g?"Right"===e.lineBreakAlignment?A?h.x-k:h.x:"Center"===e.lineBreakAlignment?A?h.x-k/2:h.x+k/2:A?h.x:h.x+k:A?h.x:h.x+k,0!==L){var be=void 0,xe=void 0;if(g){var Se=0,Ce=0;be=u.breakLabelSize.height,Ce=u.breakLabelSize.height-4,"Center"===e.lineBreakAlignment?Se=-u.breakLabelSize.width/2:"Right"===e.lineBreakAlignment&&(Se=-u.breakLabelSize.width),B&&(Ce=u.breakLabelSize.height/(h.text.length+1)),xe=new R.Rect(h.x+Se,h.y-Ce,u.breakLabelSize.width,be)}else be=f-(h.y-u.size.height/2),xe=new R.Rect(h.x,h.y-(u.size.height/2-5),u.size.width,be);var Fe=this.getRectanglePoints(xe),we=g?xe.x+xe.width/2:y,Le=g?xe.y+xe.height/2:f-be/2;if(h.transform=g?"rotate("+L+","+we+","+Le+")":"rotate("+L+","+y+","+f+")",_.push(pt(Fe,we,Le,L)),I=!1,"None"!==e.labelIntersectAction)for(var Pe=Y;Pe>0;Pe--)if(_[Y]&&_[Pe-1]&&ut(_[Y],_[Pe-1])){I=!0,_[Y]=null;break}var Ae=L>0&&L<90||L>180&&L<270||L<-90&&L>-180||L<-270&&L>-360,Me=new R.Rect(h.x,h.y-(a.height/2+w/2),u.size.width,be),De=this.getRectanglePoints(Me),ke=[];ke.push(new ji(Ae?this.chart.availableSize.width:this.padding,e.rect.y)),ke.push(new ji(Ae?this.chart.availableSize.width:this.padding,e.rect.y+e.maxLabelSize.height)),O.push(pt(De,we,Le,L));for(var Re=new R.Rect(0,e.rect.y,this.chart.availableSize.width,2*e.maxLabelSize.height),Te=0;Te<O[Y].length;Te++)if(!e.opposedPosition&&!Pt(O[Y][Te].x,O[Y][Te].y,Re)&&"string"==typeof h.text){var Ee=this.calculateIntersection(O[Y][0],O[Y][1],ke[0],ke[1]),_e=Ae?this.chart.availableSize.width-y:y,Ie=Ee.y-e.rect.y,Oe=Math.sqrt(_e*_e+Ie*Ie);h.text=Fi(Oe,u.text,u.labelStyle,m.enableRtl,m.themeStyle.axisLabelFont)}}if(this.chart.redraw&&(m.pointsAdded&&!m.pointsRemoved||this.chart.zoomRedraw)&&!qt(h.id)&&0!==Y&&!this.chart.enableCanvas&&e.visible){var ze=h.x;h.x=this.seriesClipRect.x+(m.enableRtl!==e.isInversed?-this.seriesClipRect.width/(Y||1)*M:this.seriesClipRect.width+this.seriesClipRect.width/(Y||1)*M);le=h.transform;h.transform=L?"rotate("+L+","+h.x+","+parseFloat(h.transform.split(",")[2])+")":"";var Be=Di(m.renderer,h,u.labelStyle,u.labelStyle.color||m.themeStyle.axisLabelFont.color,x,e.isAxisOpposedPosition!==("Inside"===e.labelPosition),m.redraw,!0,null,m.duration,null,u.size,I,m.enableCanvas,null,m.themeStyle.axisLabelFont);this.rangeAnimate(e,Be,this.chart.duration,!0,new R.Rect(this.seriesClipRect.x,e.rect.y,this.seriesClipRect.x+this.seriesClipRect.width,this.chart.availableSize.height),!1,Y),h.x=ze,h.transform=le,M+=1}var Ne=Di(m.renderer,h,u.labelStyle,u.labelStyle.color||m.themeStyle.axisLabelFont.color,x,e.isAxisOpposedPosition!==("Inside"===e.labelPosition),m.redraw,!0,null,m.duration,null,u.size,I,m.enableCanvas,null,m.themeStyle.axisLabelFont,new ji(parseFloat(h.transform.split(",")[1]),parseFloat(h.transform.split(",")[2])));V&&(Ne.id=m.element.id+i+"_AxisLabel_"+Y)}}if(this.previousXLabel&&T&&this.previousXLabel>T&&!this.chart.enableCanvas&&e.visible&&this.chart.zoomRedraw&&this.chart.redraw&&h.text)for(Y=T;Y<this.previousXLabel;Y++)h.x=this.seriesClipRect.x+(m.enableRtl!==e.isInversed?-this.seriesClipRect.width/T*(Y-T+1):this.seriesClipRect.width+this.seriesClipRect.width/T*(Y-T+1)),h.id=m.element.id+i+"_AxisLabel_"+Y,h.transform=L?"rotate("+L+","+h.x+","+parseFloat(h.transform.split(",")[2])+")":"",this.updateAxisElement(e,i,"",Y,"_AxisLabel_",x,!0,h,u);else this.previousXLabel=T;this.chart.enableCanvas||e.labelTemplate||(m.delayRedraw?e.visible&&e.internalVisibility&&this.createZoomingLabel(this.chart,x,e,i,r):o.appendChild(x))},e.prototype.getRotateTemplateStyles=function(e,t,i){var o=e*Math.PI/180,r=[{x:0,y:0},{x:t,y:0},{x:t,y:i},{x:0,y:i}].map(function(e){return{x:e.x*Math.cos(o)-e.y*Math.sin(o),y:e.x*Math.sin(o)+e.y*Math.cos(o)}}),n=-Math.min.apply(Math,r.map(function(e){return e.x})),a=-Math.min.apply(Math,r.map(function(e){return e.y}));return{x:Math.round(100*n)/100,y:Math.round(100*a)/100}},e.prototype.updateAxisElement=function(e,t,i,o,r,n,a,l,s){var h,c=r.indexOf("Grid")>-1,d=r.indexOf("Label")>-1;d?h=Di(this.chart.renderer,l,s.labelStyle,s.labelStyle.color||this.chart.themeStyle.axisLabelFont.color,n,e.isAxisOpposedPosition!==("Inside"===e.labelPosition),this.chart.redraw,!0,null,this.chart.duration,null,0,null,this.chart.enableCanvas,null,this.chart.themeStyle.axisLabelFont):(this.renderGridLine(e,t,i,c?e.majorGridLines:e.majorTickLines,r,o,this.element,c?this.chart.themeStyle.majorGridLine:this.chart.themeStyle.majorTickLine,c?e.majorGridLines.dashArray:null),this.element&&n.childNodes&&(h=this.element.childNodes[n.childNodes.length-1])),this.rangeAnimate(e,h,this.chart.duration,d,new R.Rect("Vertical"===e.orientation?0:this.seriesClipRect.x,"Vertical"===e.orientation?this.seriesClipRect.y:e.rect.y,this.seriesClipRect.width,this.seriesClipRect.height),a,o)},e.prototype.removeAxisLabelElements=function(e,t){if(this.chart.pointsRemoved&&t&&t.childNodes.length){var i=!1;if(e.valueType.indexOf("Category")>-1){var o=[];e.visibleLabels.map(function(e){"string"!=typeof e.text?o.push(e.text.join("")):o.push(e.text)});for(var r=t.childNodes.length-1;r>=0;r--){var n=t.childNodes[r];-1===o.indexOf(n.textContent.trim())&&(t.removeChild(n),i=!0)}}else if(t.childNodes.length>e.visibleLabels.length)for(var a=0;a<t.childNodes.length-e.visibleLabels.length;a++)t.removeChild(t.childNodes[a]),i=!0;return i}return!1},e.prototype.calculateIntersection=function(e,t,i,o){var r=i.x-o.x,n=e.x-t.x,a=i.y-o.y,l=e.y-t.y,s=n*a-l*r,h=e.x*t.y-e.y*t.x,c=i.x*o.y-i.y*o.x;return{x:(h*r-n*c)/s,y:(h*a-l*c)/s}},e.prototype.getAnchor=function(e){return"Center"===e.lineBreakAlignment?"middle":this.chart.enableRtl?"Left"===e.lineBreakAlignment?"end":"start":"Left"===e.lineBreakAlignment?"start":"end"},e.prototype.getRectanglePoints=function(e){return[new ji(e.x,e.y),new ji(e.x+e.width,e.y),new ji(e.x+e.width,e.y+e.height),new ji(e.x,e.y+e.height)]},e.prototype.getLabelText=function(e,t,i){if(qe(e.originalText)){for(var o=[],r=void 0,n=0;n<e.text.length;n++)r=this.findAxisLabel(t,e.text[n],i),o.push(r);return o}return this.findAxisLabel(t,e.text,i)},e.prototype.drawXAxisBorder=function(e,t,i,o){if(e.border.width>0){for(var r="Outside"===e.labelPosition&&"Top"!==e.scrollbarSettings.position&&"Bottom"!==e.scrollbarSettings.position?e.scrollBarHeight:0,n=e.isAxisOpposedPosition,a=void 0,l=o.y+(n?-1:1)*r,s=void 0,h=o.width/e.visibleRange.delta*("DateTime"===e.valueType?e.dateTimeInterval:e.visibleRange.interval),c=void 0,d=e.maxLabelSize.height+(e.tickPosition===e.labelPosition?e.majorTickLines.height:0),p="",u="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?-.5:0,g=n&&"Inside"===e.labelPosition||!n&&"Outside"===e.labelPosition?o.y+d+10+r:o.y-d-10-r,m=0,y=e.visibleLabels.length;m<y;m++)switch(s=yt(e.visibleLabels[m].value+u,e),s=(e.isAxisInverse?1-s:s)*o.width,"Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?(a=s+o.x,c=s+h+o.x):(a=s-.5*h+o.x,c=s+.5*h+o.x),e.border.type){case"Rectangle":case"WithoutTopBorder":a<o.x&&"OnTicks"!==e.labelPlacement?p+="M "+o.x+" "+g+" L "+c+" "+g+" ":Math.floor(c)>o.width+o.x&&1!==e.visibleLabels.length&&m!==e.visibleLabels.length-1?p+="M "+a+" "+l+" L "+a+" "+g+" L "+(o.width+o.x)+" "+g+" ":(p+="M "+(a=0===m&&"OnTicks"===e.labelPlacement?o.x:a)+" "+l+" L "+a+" "+g+" L "+(c=m===e.visibleLabels.length-1&&"OnTicks"===e.labelPlacement?c-.5*h:c)+" "+g+" ",0===m&&(p+="M "+a+" "+l+" L "+a+" "+g+" M "+a+" "+g+" L "+o.x+" "+g),m===e.visibleLabels.length-1&&(p+="M "+c+" "+l+" L "+c+" "+g+" M "+c+" "+g+" L "+(o.width+o.x)+" "+g));break;case"WithoutTopandBottomBorder":a<o.x||Math.floor(c)>o.width+o.x||(p+="M "+a+" "+l+" L "+a+" "+g+" M "+c+" "+l+" L "+c+" "+g)}""!==(p+="Rectangle"===e.border.type?"M  "+o.x+" "+l+"L "+(o.x+o.width)+" "+l:"")&&this.createAxisBorderElement(e,t,p,i)}for(m=0;m<this.chart.visibleSeries.length;m++)if(this.chart.multiLevelLabelModule&&e.multiLevelLabels.length>0&&this.chart.visibleSeries[m].visible){this.chart.multiLevelLabelModule.renderXAxisMultiLevelLabels(e,t,i,o);break}},e.prototype.createAxisBorderElement=function(e,t,i,o){var r=qt(this.chart.element.id+"_BorderLine_"+t),n=r?r.getAttribute("d"):"",a=this.chart.renderer.drawPath(new R.PathOption(this.chart.element.id+"_BorderLine_"+t,"transparent",e.border.width,e.border.color||this.chart.themeStyle.axisLine,1,"",i));a.style.pointerEvents="none",ni(this.chart.enableCanvas,o,a,this.chart.redraw,!1,"x","y",null,n,!0,null,null,this.chart.duration)},e.prototype.findAxisLabel=function(e,t,i){return"Trim"===e.labelIntersectAction?e.angle%360!=0||e.enableTrim?t:Fi(i,t,e.labelStyle,this.chart.enableRtl,this.chart.themeStyle.axisLabelFont):t},e.prototype.drawXAxisTitle=function(e,i,o,r){if(e.title){var n=this.chart,a=(0,R.measureText)(e.title,e.titleStyle,this.chart.themeStyle.axisTitleFont),l=(0,t.isNullOrUndefined)(e.crossesAt)&&"Top"!==e.scrollbarSettings.position&&"Bottom"!==e.scrollbarSettings.position?e.scrollBarHeight:0,s=("Inside"===e.tickPosition?0:e.majorTickLines.height+e.titlePadding)+("Inside"===e.labelPosition?0:e.maxLabelSize.height+e.multiLevelLabelHeight+e.labelPadding);s="Outside"===e.tickPosition||"Inside"!==e.tickPosition&&"Inside"!==e.labelPosition||5===e.titlePadding?s:s+e.titlePadding;var h=e.titleSize.height*(e.titleCollection.length-1);s=e.isAxisOpposedPosition?-(s+a.height/4+l+h):s+3*a.height/4+l;var c=e.titleRotation?e.titleRotation:0,d=void 0,p=r.y+s,u=void 0;"Center"===e.titleStyle.textAlignment?(u="middle",d=r.x+.5*r.width):"Near"===e.titleStyle.textAlignment?(u="start",d=r.x):(u="end",d=r.x+r.width),0!==c&&(p+=e.opposedPosition?-(e.titleSize.height/2+a.height/4):e.titleSize.height/2-a.height/4);var g=new R.TextOption(n.element.id+"_AxisTitle_"+i,d,p,u,e.titleCollection,"rotate("+c+","+d+","+p+")",null,c);Di(n.renderer,g,e.titleStyle,e.titleStyle.color||n.themeStyle.axisTitleFont.color,o,null,n.redraw,n.redraw,null,null,null,0,null,n.enableCanvas,null,n.themeStyle.axisTitleFont,new ji(d,p)).setAttribute("aria-hidden","true")}},e.prototype.renderGridLine=function(e,t,i,o,r,n,a,l,s,h,c){void 0===s&&(s=null),void 0===h&&(h=null),void 0===c&&(c=!1);var d,p,u=this.chart;o.width>0&&e.visible&&e.internalVisibility&&i&&(d=(p=qt(u.element.id+r+t+"_"+(c?h:n)))?p.getAttribute("d"):null,p=null,this.htmlObject=u.renderer.drawPath(new R.PathOption(u.element.id+r+t+"_"+(c?h:n),"transparent",o.width,o.color||l,null,s,i)),ni(u.enableCanvas,a,this.htmlObject,u.redraw,!0,"x","y",null,d,!0,null,null,u.duration),c&&(this.htmlObject.id=u.element.id+r+t+"_"+n))},e.prototype.findParentNode=function(e,t,i){return document.getElementById(e+"AxisGroup"+i+"Inside").contains(document.getElementById(t.id))?document.getElementById(e+"AxisGroup"+i+"Inside"):document.getElementById(e+"AxisGroup"+i+"Outside")},e.prototype.createZoomingLabel=function(e,t,i,o,r){var n=this.findParentNode(e.element.id,t,o);t.setAttribute("opacity","0.3");var a=e.renderer.createGroup({id:e.element.id+"AxisLabels_Zoom"+o});a=wt(e,i,a,o,"Vertical"===i.orientation,r),n.replaceChild(t,document.getElementById(t.id)),qt(e.element.id+"AxisLabels_Zoom"+o)?n.replaceChild(a,document.getElementById(a.id)):n.appendChild(a)},e}(),so=function(){function e(e){this.currentPoints=[],this.previousPoints=[],this.insideRegion=!1,this.commonXvalues=[],this.chart=e,this.lierIndex=0}return e.prototype.getData=function(){for(var e,t,i,o,r=this.chart,n=null,a=null,l=r.visibleSeries.length-1;l>=0;l--){if(e="Scatter"===(a=r.visibleSeries[l]).type||"Scatter"===a.drawType||a.marker.visible?(a.marker.height+5)/2:0,t="Scatter"===a.type||"Scatter"===a.drawType||a.marker.visible?(a.marker.width+5)/2:0,i=r.mouseX,o=r.mouseY,a.dragSettings.enable&&a.isRectSeries)if("Bar"===a.type&&r.isTransposed||!r.isTransposed&&"Bar"!==a.type){var s=a.marker.height/2;o=a.yAxis.isAxisInverse?o-s:o+s}else{var h=a.marker.width/2;i=a.yAxis.isAxisInverse?i+h:i-h}if(a.visible&&Pt(i,o,a.clipRect,e,t)&&(n=this.getRectPoint(a,a.clipRect,i,o)),n)return new Yi(n,a)}return new Yi(n,a)},e.prototype.isSelected=function(e){return(e.selectionMode.indexOf("Drag")>-1||e.selectionMode.indexOf("Lasso")>-1)&&e.selectionModule&&null!==e.selectionModule.rectPoints},e.prototype.getRectPoint=function(e,t,i,o){var r,n,a,l,s,h,c=0;if(this.chart.isScrolling)return null;for(var d=0,p=e.points;d<p.length;d++){var u=p[d];if(u.regionData||u.regions&&u.regions.length){if(u.regionData&&"PolarRadar"===this.chart.chartAreaType&&e.drawType.indexOf("Column")>-1&&(r=i-(e.clipRect.width/2+e.clipRect.x),n=o-(e.clipRect.height/2+e.clipRect.y),c=2*Math.PI*(u.regionData.currentXPosition<0?1+u.regionData.currentXPosition:u.regionData.currentXPosition),a=(a=(Math.atan2(n,r)+.5*Math.PI-c)%(2*Math.PI))<0?2*Math.PI+a:a,a+=2*Math.PI*e.chart.primaryXAxis.startAngle,l=u.regionData.startAngle,l=(l-=c)<0?2*Math.PI+l:l,s=u.regionData.endAngle,s=(s-=c)<0?2*Math.PI+s:s,h=Math.sqrt(Math.pow(Math.abs(r),2)+Math.pow(Math.abs(n),2)),a>=l&&a<=s&&(h>=u.regionData.innerRadius&&h<=u.regionData.radius||h<=u.regionData.innerRadius&&h>=u.regionData.radius)&&h<=e.chart.radius))return u;if((e.dragSettings.enable&&e.isRectSeries||e.isRectSeries&&e.marker.visible&&"PolarRadar"!==this.chart.chartAreaType)&&this.isPointInThresholdRegion(i,o,u,t,e))return this.insideRegion=!0,u;if(!this.insideRegion&&this.checkRegionContainsPoint(u.regions,t,i,o))return u;if(this.insideRegion&&this.checkRegionContainsPoint(u.regions,t,i,o))return u}}return null},e.prototype.checkRegionContainsPoint=function(e,t,i,o){var r=this;return e.some(function(e,n){return r.lierIndex=n,Pt(i,o,new R.Rect(("Cartesian"===r.chart.chartAreaType?t.x:0)+e.x,("Cartesian"===r.chart.chartAreaType?t.y:0)+e.y,e.width,e.height))})},e.prototype.isPointInThresholdRegion=function(e,t,i,o,r){var n,a=this,l="Bar"===r.type,s=r.yAxis.isAxisInverse,h=r.chart.isTransposed,c=10,d=0,p=0,u=n=20;return s&&h?l?(d=i.regions[0].height-c,n=i.regions[0].width):(p=-10,u=i.regions[0].height):s||i.yValue<0?l?(p=-10,u=i.regions[0].height):(d=i.regions[0].height-c,n=i.regions[0].width):h?l?(d=-10,n=i.regions[0].width):(p=i.regions[0].width-c,u=i.regions[0].height):l?(p=i.regions[0].width-c,u=i.regions[0].height):(d=-10,n=i.regions[0].width),i.regions.some(function(i){return Pt(e,t,new R.Rect(("Cartesian"===a.chart.chartAreaType?o.x:0)+i.x+p,("Cartesian"===a.chart.chartAreaType?o.y:0)+i.y+d,n,u))})},e.prototype.getClosest=function(e,t,i){var o,r,n=i||e.xData,a=n.length,l=.5,s=.5;if("DateTime"===e.xAxis.valueType&&1===e.points.length){l=e.xAxis.visibleRange.min,s=e.xAxis.visibleRange.max;for(var h=0;h<e.chart.visibleSeries.length;h++){var c=e.chart.visibleSeries[h];c.xMin>=l&&c.xMin<e.xMin&&(l=c.xMin+.1),c.xMax<=s&&c.xMax>e.xMax&&(s=c.xMax-.1),c.visible&&c.points.length>1&&(c.xMax>=l&&c.xMax<e.xMin&&(l=c.xMax+.1),c.xMin<=s&&c.xMin>e.xMax&&(s=c.xMin-.1))}l!==e.xAxis.visibleRange.min&&(l=Math.abs(e.xMin-l)/2),s!==e.xAxis.visibleRange.max&&(s=Math.abs(e.xMax-s)/2)}if(t>=e.xMin-l&&t<=e.xMax+s)for(var d=0;d<a;d++)r=n[d],(null==o||Math.abs(r-t)<Math.abs(o-t))&&(o=r);return-1!==e.xData.indexOf(o)?o:null},e.prototype.binarySearch=function(e,t){for(var i,o=0,r=t.length,n=-1,a=!1;!1===a&&o<=r;)t[i=Math.floor((o+r)/2)].xValue===e?(a=!0,n=i):t[i].xValue>e?r=i-1:o=i+1;return-1!==n?t[n]:null},e.prototype.getClosestX=function(e,t,i){var o,r=t.clipRect;e.mouseX<=r.x+r.width&&e.mouseX>=r.x&&(o=e.requireInvertedAxis?Mt(e.mouseY-r.y,r.height,t.xAxis):At(e.mouseX-r.x,r.width,t.xAxis));var n=this.getClosest(t,o,i),a=(n||0===n)&&t.points.length>0?this.binarySearch(n,Ze(t.points,["xValue"])):null;return a&&a.visible&&"Cartesian"===this.chart.chartAreaType&&("Indicator"===t.category&&"Histogram"===t.name||a.symbolLocations&&a.symbolLocations.length>0&&a.symbolLocations[0].x>=0&&a.symbolLocations[0].x<=r.width)?new Yi(a,t):null},e.prototype.mergeXvalues=function(e){if(e.length&&(!this.commonXvalues.length||this.commonXvalues.length!==e[0].xData.length)){this.commonXvalues=e[0].xData;for(var t=1;t<e.length;t++)this.commonXvalues=this.getDistinctValues(this.commonXvalues,e[t].xData)}return this.commonXvalues},e.prototype.commonXValue=function(e){for(var t=[],i=0;i<e.length;i++)for(var o=0;e[i].points&&o<e[i].points.length;o++){var r=e[i].points[o];r&&(0===r.index||r.index===e[i].points.length-1||r.symbolLocations&&r.symbolLocations.length>0)&&t.push(r.xValue)}return t},e.prototype.getDistinctValues=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var i,o={},r=[];for(i=0;i<e.length;i++){o[n=e[i]]||(o[n]=!0,r.push(n))}for(i=0;i<t.length;i++){var n;o[n=t[i]]||(o[n]=!0,r.push(n))}return r},e.prototype.findMouseValues=function(e,t,i){t.requireInvertedAxis?(i.valueY=(1-yt(e.point.xValue,e.series.xAxis))*e.series.xAxis.rect.height+e.series.xAxis.rect.y,i.valueX=t.mouseX,t.crosshair.snapToData&&("BoxAndWhisker"===e.series.type&&e.point.regions.length?i.valueX=e.point.regions[0].x+e.series.clipRect.x:t.tooltip.shared?t.crosshairModule.valueX=e.point.symbolLocations[0].x+e.series.clipRect.x:i.valueX=e.point.symbolLocations[0].x+e.series.clipRect.x)):("PolarRadar"===t.chartAreaType?i.valueX=xt(e.point.xValue,e.series.xAxis)*e.series.xAxis.rect.width+e.series.xAxis.rect.x:i.valueX="TrendLine"===e.series.category&&t.tooltip.shared?i.valueX:yt(e.point.xValue,e.series.xAxis)*e.series.xAxis.rect.width+e.series.xAxis.rect.x,i.valueY=t.mouseY,t.crosshair.snapToData&&("BoxAndWhisker"===e.series.type&&e.point.regions.length?i.valueY=e.point.regions[0].y+e.series.clipRect.y:i.valueY=e.point.symbolLocations[0].y+e.series.clipRect.y))},e}(),ho=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),co=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},po=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(!1)],i.prototype,"enable",void 0),co([(0,t.Complex)({size:null,color:null,fontStyle:null,fontWeight:null,fontFamily:null},s)],i.prototype,"font",void 0),co([(0,t.Property)(null)],i.prototype,"background",void 0),co([(0,t.Complex)({},u)],i.prototype,"border",void 0),co([(0,t.Property)("")],i.prototype,"lineColor",void 0),co([(0,t.Property)(1)],i.prototype,"lineWidth",void 0),co([(0,t.Property)("")],i.prototype,"dashArray",void 0),co([(0,t.Property)(5)],i.prototype,"rx",void 0),co([(0,t.Property)(5)],i.prototype,"ry",void 0),i}(t.ChildProperty),uo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(!1)],i.prototype,"visible",void 0),co([(0,t.Property)(!0)],i.prototype,"showZero",void 0),co([(0,t.Property)(null)],i.prototype,"name",void 0),co([(0,t.Property)("transparent")],i.prototype,"fill",void 0),co([(0,t.Property)(null)],i.prototype,"format",void 0),co([(0,t.Property)(1)],i.prototype,"opacity",void 0),co([(0,t.Property)(0)],i.prototype,"angle",void 0),co([(0,t.Property)(!1)],i.prototype,"enableRotation",void 0),co([(0,t.Property)("Auto")],i.prototype,"position",void 0),co([(0,t.Property)(5)],i.prototype,"rx",void 0),co([(0,t.Property)(5)],i.prototype,"ry",void 0),co([(0,t.Property)("Center")],i.prototype,"alignment",void 0),co([(0,t.Complex)({width:null,color:null},u)],i.prototype,"border",void 0),co([(0,t.Complex)({left:5,right:5,top:5,bottom:5},m)],i.prototype,"margin",void 0),co([(0,t.Complex)({size:null,color:null,fontStyle:null,fontWeight:null,fontFamily:null},s)],i.prototype,"font",void 0),co([(0,t.Property)(null)],i.prototype,"template",void 0),co([(0,t.Property)("Hide")],i.prototype,"labelIntersectAction",void 0),i}(t.ChildProperty),go=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(!1)],i.prototype,"visible",void 0),co([(0,t.Property)(null)],i.prototype,"shape",void 0),co([(0,t.Property)("")],i.prototype,"imageUrl",void 0),co([(0,t.Property)(5)],i.prototype,"height",void 0),co([(0,t.Property)(!1)],i.prototype,"isFilled",void 0),co([(0,t.Property)(5)],i.prototype,"width",void 0),co([(0,t.Complex)({width:2,color:null},u)],i.prototype,"border",void 0),co([(0,t.Complex)({x:0,y:0},g)],i.prototype,"offset",void 0),co([(0,t.Property)(null)],i.prototype,"fill",void 0),co([(0,t.Property)(!0)],i.prototype,"allowHighlight",void 0),co([(0,t.Property)(1)],i.prototype,"opacity",void 0),co([(0,t.Complex)({},uo)],i.prototype,"dataLabel",void 0),i}(t.ChildProperty),mo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(null)],i.prototype,"fill",void 0),co([(0,t.Property)(1)],i.prototype,"width",void 0),co([(0,t.Property)("0")],i.prototype,"dashArray",void 0),co([(0,t.Complex)(null,go)],i.prototype,"marker",void 0),co([(0,t.Property)(!0)],i.prototype,"showAxis",void 0),i}(t.ChildProperty),yo=function(){this.symbolLocations=null,this.regions=null,this.percentage=null,this.regionData=null,this.isSelect=!1,this.marker={visible:!1},this.isPointInRange=!0,this.verticalError=null,this.verticalNegativeError=null,this.horizontalError=null,this.horizontalNegativeError=null,this.verticalPositiveError=null,this.horizontalPositiveError=null},fo=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.clipRect=new R.Rect(0,0,0,0),t}return ho(i,e),i.prototype.setDataSource=function(e,t){e&&(this.points=e.points),t.trendLineModule.initDataSource(this),t.visibleSeriesCount++},co([(0,t.Property)("")],i.prototype,"name",void 0),co([(0,t.Property)("")],i.prototype,"dashArray",void 0),co([(0,t.Property)(!0)],i.prototype,"visible",void 0),co([(0,t.Property)("Linear")],i.prototype,"type",void 0),co([(0,t.Property)(2)],i.prototype,"period",void 0),co([(0,t.Property)(2)],i.prototype,"polynomialOrder",void 0),co([(0,t.Property)(0)],i.prototype,"backwardForecast",void 0),co([(0,t.Property)(0)],i.prototype,"forwardForecast",void 0),co([(0,t.Complex)({},y)],i.prototype,"animation",void 0),co([(0,t.Complex)({},go)],i.prototype,"marker",void 0),co([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),co([(0,t.Property)(null)],i.prototype,"intercept",void 0),co([(0,t.Property)("")],i.prototype,"fill",void 0),co([(0,t.Property)(1)],i.prototype,"width",void 0),co([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),co([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),vo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(1)],i.prototype,"width",void 0),co([(0,t.Property)(10)],i.prototype,"length",void 0),co([(0,t.Property)(null)],i.prototype,"color",void 0),co([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),bo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(null)],i.prototype,"value",void 0),co([(0,t.Property)(null)],i.prototype,"color",void 0),co([(0,t.Property)("0")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),xo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ho(i,e),co([(0,t.Property)(!1)],i.prototype,"visible",void 0),co([(0,t.Property)("Fixed")],i.prototype,"type",void 0),co([(0,t.Property)("Both")],i.prototype,"direction",void 0),co([(0,t.Property)("Vertical")],i.prototype,"mode",void 0),co([(0,t.Property)(null)],i.prototype,"color",void 0),co([(0,t.Property)(1)],i.prototype,"verticalError",void 0),co([(0,t.Property)(1)],i.prototype,"width",void 0),co([(0,t.Property)(1)],i.prototype,"horizontalError",void 0),co([(0,t.Property)(3)],i.prototype,"verticalPositiveError",void 0),co([(0,t.Property)(3)],i.prototype,"verticalNegativeError",void 0),co([(0,t.Property)(1)],i.prototype,"horizontalPositiveError",void 0),co([(0,t.Property)(1)],i.prototype,"horizontalNegativeError",void 0),co([(0,t.Complex)(null,vo)],i.prototype,"errorBarCap",void 0),co([(0,t.Property)("")],i.prototype,"errorBarColorMapping",void 0),i}(t.ChildProperty),So=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.rangeColorPoints=[],t.isAdvancedColor=void 0,t.currentViewData=[],t.clipRect=new R.Rect(0,0,0,0),t.seriesType="XY",t.isRectTypeSeries=!1,t.removedPointIndex=null,t.isLegendClicked=!1,t}return ho(i,e),i.prototype.processJsonData=function(){var e=0,i=new yo,o=this instanceof Co&&"Histogram"===this.type?"x":this.xName,r=this instanceof Co&&this.marker.dataLabel.name?this.marker.dataLabel.name:"";this instanceof Co&&("Waterfall"!==this.type&&"Histogram"!==this.type||(this.currentViewData=this.chart[kt(this.type)+"SeriesModule"].processInternalData((0,t.extend)([],this.currentViewData,null,!0),this)),"Pareto"===this.category&&(this.currentViewData=(0,t.extend)([],this.currentViewData,null,!0),"Line"===this.type&&(this.currentViewData=this.chart.paretoSeriesModule.performCumulativeCalculation(this.currentViewData,this))),this.isRectTypeSeries=this.type.indexOf("Column")>-1||this.type.indexOf("Bar")>-1||this.type.indexOf("Histogram")>-1);var n=(this.currentViewData||[]).length;if(this.points=[],this.xMin=1/0,this.xMax=-1/0,this.yMin=1/0,this.yMax=-1/0,this.sizeMax=-1/0,this.getSeriesType(),"Category"===this.xAxis.valueType)for(;e<n;)this.pushCategoryPoint(i,e,r,o),e++;else if(this.xAxis.valueType.indexOf("DateTime")>-1)for(var a={skeleton:"full",type:"dateTime"},l=this.chart.intl.getDateParser(a),s=this.chart.intl.getDateFormat(a);e<n;)this.pushDateTimePoint(i,e,r,o,l,s),e++;else for(;e<n;)this.pushDoublePoint(i,e,r,o),e++;this.updateSplineValue(),this.updateYAxisForErrorBars(),this instanceof Co&&"Waterfall"===this.type&&(0,t.isNullOrUndefined)(this.yAxis.minimum)&&(this.yMin=Math.min.apply(Math,this.chart.waterfallSeriesModule.cumulativeSums))},i.prototype.updateYAxisForErrorBars=function(){if(this instanceof Co&&this.chart.errorBarModule){var e=void 0,i=void 0;if(this.errorBar.verticalError)for(var o=0;o<this.points.length;o++){for(var r=[],n=[],a=0;a<this.points.length;a++){var l=this.points[a];l.verticalError&&(r.push(l.verticalError),n.push(l.yValue-l.verticalError))}e=r&&r.length>0?Math.max.apply(Math,r):0,i=r&&r.length>0?Math.min.apply(Math,n):0}this.yMax+=!isNaN(e)&&(0,t.isNullOrUndefined)(this.yAxis.maximum)?e:0,this.yMin=!isNaN(i)&&i<this.yMin&&i<0&&(0,t.isNullOrUndefined)(this.yAxis.minimum)?i:this.yMin}},i.prototype.pushCategoryPoint=function(e,t,i,o){e=this.dataPoint(t,i,o),this.pushCategoryData(e,t,e.x),this.pushData(e,t),this.setEmptyPoint(e,t),this.rangeColorsInterior(e)},i.prototype.pushDoublePoint=function(e,t,i,o){(e=this.dataPoint(t,i,o)).xValue=e.x,this.pushData(e,t),this.setEmptyPoint(e,t)},i.prototype.pushDateTimePoint=function(e,i,o,r,n,a){e=this.dataPoint(i,o,r),(0,t.isNullOrUndefined)(e.x)||""===e.x?e.visible=!1:(e.x=new Date(ao.DataUtil.parse.parseJson({val:e.x}).val),"DateTime"===this.xAxis.valueType?e.xValue=Date.parse(e.x.toString()):this.pushCategoryData(e,i,Date.parse(n(a(e.x))).toString()),this.pushData(e,i),this.setEmptyPoint(e,i))},i.prototype.updateSplineValue=function(){if(this instanceof Co&&(!this.chart.stockChart||"DateTimeCategory"!==this.xAxis.valueType)){if(this.type.indexOf("Spline")>-1||this.drawType.indexOf("Spline")>-1&&"PolarRadar"===this.chart.chartAreaType){var e=this.type.indexOf("Area")>-1||this.drawType.indexOf("Area")>-1,t=this.type.indexOf("Range")>-1;this.chart["spline"+(e?t?"RangeArea":"Area":"")+"SeriesModule"].findSplinePoint(this)}else this.type.indexOf("Histogram")>-1&&(this.xAxis.maximum||this.xAxis.minimum)&&this.chart.histogramSeriesModule.calculateBinValues(this);this.type.indexOf("Histogram")>-1&&1===this.points.length&&(this.xMin=this.xMin-this.histogramValues.binWidth,this.xMax=this.xMax+this.histogramValues.binWidth)}},i.prototype.rangeColorsInterior=function(e){this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0&&1===this.chart.visibleSeries.length&&("Column"===this.chart.series[0].type||"Bar"===this.chart.series[0].type||"Scatter"===this.chart.series[0].type||"Bubble"===this.chart.series[0].type)&&(this.rangeColorPoints[e.interior]?void 0!==this.rangeColorPoints[e.interior]&&this.rangeColorPoints[e.interior].push(e):this.rangeColorPoints[e.interior]=[])},i.prototype.pushData=function(e,t){e.index=t,e.yValue=e.y,e.series=this,this.xMin=Math.min(this.xMin,e.xValue),this.xMax=Math.max(this.xMax,e.xValue),this.xData.push(e.xValue)},i.prototype.dataPoint=function(e,i,o){this.points[e]=new yo;var r=this.points[e],n=this.currentViewData[e],a=this.enableComplexProperty?t.getValue:this.getObjectValue;r.x=a(o,n);var l=this.yAxis.valueType.indexOf("DateTime")>-1;return r.high=l?new Date(a(this.high,n)):a(this.high,n),r.low=l?new Date(a(this.low,n)):a(this.low,n),r.open=l?new Date(a(this.open,n)):a(this.open,n),r.close=l?new Date(a(this.close,n)):a(this.close,n),r.volume=l?new Date(a(this.volume,n)):a(this.volume,n),r.interior=a(this.pointColorMapping,n),this instanceof Co&&(this.errorBar.visible&&(r.errorBarColor=a(this.errorBar.errorBarColorMapping,n),r.verticalError="string"==typeof this.errorBar.verticalError?a(this.errorBar.verticalError,n):this.errorBar.verticalError,r.horizontalError="string"==typeof this.errorBar.horizontalError?a(this.errorBar.horizontalError,n):this.errorBar.horizontalError,r.verticalNegativeError="string"==typeof this.errorBar.verticalNegativeError?a(this.errorBar.verticalNegativeError,n):this.errorBar.verticalNegativeError,r.verticalPositiveError="string"==typeof this.errorBar.verticalPositiveError?a(this.errorBar.verticalPositiveError,n):this.errorBar.verticalPositiveError,r.horizontalNegativeError="string"==typeof this.errorBar.horizontalNegativeError?a(this.errorBar.horizontalNegativeError,n):this.errorBar.horizontalNegativeError,r.horizontalPositiveError="string"==typeof this.errorBar.horizontalPositiveError?a(this.errorBar.horizontalPositiveError,n):this.errorBar.horizontalPositiveError),r.y=l?new Date(a(this.yName,n)):a(this.yName,n),r.size=a(this.size,n),r.text=a(i,n),r.tooltip=a(this.tooltipMappingName,n),this.isAdvancedColorSupported()&&(this.rangeColorName=this.colorName.length>0?this.colorName:this.yName,r.colorValue=a(this.rangeColorName,n),r.interior=this.getPointFillColor(r.interior,r.colorValue))),r},i.prototype.isAdvancedColorSupported=function(){return(0,t.isNullOrUndefined)(this.isAdvancedColor)&&(this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0&&("Column"===this.chart.series[0].type||"Bar"===this.chart.series[0].type||"Scatter"===this.chart.series[0].type||"Bubble"===this.chart.series[0].type)?this.isAdvancedColor=!0:this.isAdvancedColor=!1),this.isAdvancedColor},i.prototype.getPointFillColor=function(e,t){var i=e;if(t&&this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0)for(var o=0,r=this.chart.rangeColorSettings;o<r.length;o++){var n=r[o];t>=n.start&&t<=n.end&&(i=n.colors.length>1?$i(n,t):n.colors[0])}return i},i.prototype.getObjectValue=function(e,t){return t[e]},i.prototype.setEmptyPoint=function(e,i){if(!this.findVisibility(e))return e.visible=!0,null;switch(e.isEmpty=!0,this instanceof Co&&e.isPointInRange?this.emptyPointSettings.mode:"Drop"){case"Zero":e.visible=!0,this instanceof Co&&this.seriesType.indexOf("HighLow")>-1?(e.high=e.low=0,this.seriesType.indexOf("HighLowOpenClose")>-1&&(e.open=e.close=0)):e.y=e.yValue=this.yData[i]=0;break;case"Average":this instanceof Co&&(this.seriesType.indexOf("HighLow")>-1?(e.high=(0,t.isNullOrUndefined)(e.high)||isNaN(+e.high)?this.getAverage(this.high,i):e.high,e.low=(0,t.isNullOrUndefined)(e.low)||isNaN(+e.low)?this.getAverage(this.low,i):e.low,this.seriesType.indexOf("HighLowOpenClose")>-1&&(e.open=(0,t.isNullOrUndefined)(e.open)||isNaN(+e.open)?this.getAverage(this.open,i):e.open,e.close=(0,t.isNullOrUndefined)(e.close)||isNaN(+e.close)?this.getAverage(this.close,i):e.close)):e.y=e.yValue=this.yData[i]=this.getAverage(this.yName,i)),e.visible=!0;break;case"Drop":case"Gap":this.yData[i]=null,e.visible=!1}},i.prototype.findVisibility=function(e){var i,o=this instanceof Co?this.seriesType:"HighLowOpenClose",r=this.yAxis.minimum,n=this.yAxis.maximum;switch(o){case"XY":return"PolarRadar"===this.chart.chartAreaType&&(!(0,t.isNullOrUndefined)(r)&&e.yValue<r||!(0,t.isNullOrUndefined)(n)&&e.yValue>n)?(e.isPointInRange=!1,!0):(this.setXYMinMax(e.yValue),this.yData.push(e.yValue),this instanceof Co&&"Bubble"===this.type&&(this.sizeMax=Math.max(this.sizeMax,(0,t.isNullOrUndefined)(e.size)||isNaN(+e.size)?this.sizeMax:e.size)),(0,t.isNullOrUndefined)(e.x)||(0,t.isNullOrUndefined)(e.y)||isNaN(+e.y));case"HighLow":return this.setHiloMinMax(e.high,e.low),(0,t.isNullOrUndefined)(e.x)||(0,t.isNullOrUndefined)(e.low)||isNaN(+e.low)||(0,t.isNullOrUndefined)(e.high)||isNaN(+e.high);case"HighLowOpenClose":return this.setHiloMinMax(e.high,e.low),(0,t.isNullOrUndefined)(e.x)||(0,t.isNullOrUndefined)(e.low)||isNaN(+e.low)||(0,t.isNullOrUndefined)(e.open)||isNaN(+e.open)||(0,t.isNullOrUndefined)(e.close)||isNaN(+e.close)||(0,t.isNullOrUndefined)(e.high)||isNaN(+e.high);case"BoxPlot":return i=(e.y||[null]).filter(function(e){return!(0,t.isNullOrUndefined)(e)&&!isNaN(e)}).sort(function(e,t){return e-t}),e.y=i,this.yMin=Math.min(this.yMin,Math.min.apply(Math,i)),this.yMax=Math.max(this.yMax,Math.max.apply(Math,i)),!i.length}},i.prototype.setXYMinMax=function(e){var i,o="Logarithmic"===this.yAxis.valueType||"Logarithmic"===this.xAxis.valueType,r=e<0||"None"===this.yAxis.rangePadding;i=this.isRectTypeSeries&&!Ht(this.yAxis)?o||r?e:0:e,this.yMin=o?Math.min(this.yMin,(0,t.isNullOrUndefined)(i)||isNaN(i)||0===i||"0"===i.toString()||""===i.toString()?this.yMin:i):Math.min(this.yMin,(0,t.isNullOrUndefined)(i)||isNaN(i)?this.yMin:i),this.yMax=Math.max(this.yMax,(0,t.isNullOrUndefined)(e)||isNaN(e)?this.yMax:e)},i.prototype.setHiloMinMax=function(e,i){this.yMin=Math.min(this.yMin,Math.min((0,t.isNullOrUndefined)(i)||isNaN(i)?this.yMin:i,(0,t.isNullOrUndefined)(e)||isNaN(e)?this.yMin:e)),this.yMax=Math.max(this.yMax,Math.max((0,t.isNullOrUndefined)(i)||isNaN(i)?this.yMax:i,(0,t.isNullOrUndefined)(e)||isNaN(e)?this.yMax:e))},i.prototype.getSeriesType=function(){var e;if(this instanceof Co){var t="PolarRadar"===this.chart.chartAreaType?this.drawType:this.type;if(t)switch(t){case"RangeColumn":case"RangeArea":case"RangeStepArea":case"SplineRangeArea":case"Hilo":e="HighLow";break;case"HiloOpenClose":case"Candle":e="HighLowOpenClose";break;case"BoxAndWhisker":e="BoxPlot";break;default:e="XY"}}this.seriesType=e},i.prototype.pushCategoryData=function(e,t,i){if(!this.chart.tooltip.shared&&!this.visible)return null;this.xAxis.isIndexed?(this.xAxis.labels[t]?this.xAxis.labels[t]+=", "+i:this.xAxis.labels.push(i),e.xValue=t):(void 0===this.xAxis.indexLabels[i]&&(this.xAxis.indexLabels[i]=this.xAxis.labels.length,this.xAxis.labels.push(i)),e.xValue=this.xAxis.indexLabels[i])},i.prototype.getAverage=function(e,t,i){return void 0===i&&(i=this.currentViewData),((i[t-1]&&i[t-1][e]||0)+(i[t+1]&&i[t+1][e]||0))/2},i.prototype.refreshDataManager=function(e){var i,o=this;this.chart=e;(i=e.isAngular?Object.keys(this.dataSource).length?this.dataSource:e.dataSource:this.dataSource||e.dataSource)instanceof ao.DataManager||!(0,t.isNullOrUndefined)(this.query)?this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(e){return o.dataManagerSuccess(e)}):this.dataManagerSuccess({result:i,count:i.length},!1)},i.prototype.dataManagerSuccess=function(e,t){if(void 0===t&&(t=!0),this.currentViewData=e.count?e.result:[],this.chart.allowServerDataBinding=!1,this instanceof Co){this.chart.stockChart&&(this.chart.stockChart.series[this.index].localData=this.currentViewData);var i={name:W,series:this,data:this.currentViewData,fill:this.interior};this.chart.trigger(W,i),this.interior=i.fill,this.currentViewData=i.data}!this.chart.stockChart||this instanceof Co||(this.currentViewData=this.chart.stockChart.findCurrentData(this.chart.stockChart.series[0].localData,this.chart.stockChart.series[0].xName)),this.processJsonData(),this.recordsCount=e.count,this.refreshChart(t)},i.prototype.refreshChart=function(e){var t=this.chart;if(this instanceof Co&&(t.visibleSeriesCount+=e?1:0),t.refreshTechnicalIndicator(this),this instanceof Co&&"TrendLine"!==this.category)for(var i=0,o=this.trendlines;i<o.length;i++){o[i].setDataSource(this,t)}t.visibleSeries.length===t.visibleSeriesCount&&(t.refreshBound(),t.trigger("loaded",{chart:t}),this.chart.stockChart&&this.chart.stockChart.initialRender&&(this.chart.stockChart.initialRender=!1,this.chart.stockChart.stockChartDataManagerSuccess())),this instanceof Co&&(t.visibleSeriesCount+=e?0:1)},co([(0,t.Property)("")],i.prototype,"xName",void 0),co([(0,t.Property)("")],i.prototype,"colorName",void 0),co([(0,t.Property)("")],i.prototype,"high",void 0),co([(0,t.Property)("")],i.prototype,"low",void 0),co([(0,t.Property)("")],i.prototype,"open",void 0),co([(0,t.Property)("")],i.prototype,"close",void 0),co([(0,t.Property)("")],i.prototype,"volume",void 0),co([(0,t.Property)("")],i.prototype,"pointColorMapping",void 0),co([(0,t.Property)(!0)],i.prototype,"visible",void 0),co([(0,t.Property)(null)],i.prototype,"xAxisName",void 0),co([(0,t.Property)(null)],i.prototype,"yAxisName",void 0),co([(0,t.Complex)(null,y)],i.prototype,"animation",void 0),co([(0,t.Property)(null)],i.prototype,"fill",void 0),co([(0,t.Property)(1)],i.prototype,"width",void 0),co([(0,t.Property)("")],i.prototype,"dashArray",void 0),co([(0,t.Property)("")],i.prototype,"dataSource",void 0),co([(0,t.Property)()],i.prototype,"query",void 0),co([(0,t.Collection)([],bo)],i.prototype,"segments",void 0),co([(0,t.Property)("X")],i.prototype,"segmentAxis",void 0),co([(0,t.Property)(!1)],i.prototype,"enableComplexProperty",void 0),i}(t.ChildProperty),Co=function(e){function i(t,i,o,r){var n=e.call(this,t,i,o,r)||this;return n.visibleSeriesCount=0,n.category="Series",n.isRectSeries=!1,n.drawPoints=[],n.lowDrawPoints=[],n.delayedAnimation=!1,n.rangeColorName=n.colorName.length>0?n.colorName:n.yName,n.currentData=[],n}return ho(i,e),i.prototype.refreshAxisLabel=function(){if(-1===this.xAxis.valueType.indexOf("Category"))return null;this.xAxis.labels=[],this.xAxis.indexLabels={};for(var e={skeleton:"full",type:"dateTime"},t=this.chart.intl.getDateParser(e),i=this.chart.intl.getDateFormat(e),o=0,r=this.xAxis.series;o<r.length;o++){var n=r[o];if(n.visible&&"TrendLine"!==n.category){n.xMin=1/0,n.xMax=-1/0;for(var a=0,l=n.points;a<l.length;a++){var s=l[a];n.pushCategoryData(s,s.index,"DateTimeCategory"===this.xAxis.valueType?Date.parse(t(i(s.x))).toString():s.x),n.xMin=Math.min(n.xMin,s.xValue),n.xMax=Math.max(n.xMax,s.xValue)}}}},i.prototype.findSeriesCollection=function(e,t,i){for(var o=[],r=0,n=t.axes;r<n.length;r++)for(var a=0,l=n[r].series;a<l.length;a++)for(var s=l[a],h=0,c=e.axes;h<c.length;h++)for(var d=0,p=c[h].series;d<p.length;d++){var u=p[d];u===s&&u.visible&&this.rectSeriesInChart(u,i)&&o.push(u)}return o},i.prototype.rectSeriesInChart=function(e,t){var i=e.type.toLowerCase();return-1!==i.indexOf("column")||-1!==i.indexOf("bar")||-1!==i.indexOf("histogram")||-1!==i.indexOf("hiloopenclose")||-1!==i.indexOf("candle")||-1!==i.indexOf("pareto")||-1!==i.indexOf("hilo")||-1!==e.drawType.indexOf("Column")||-1!==i.indexOf("waterfall")||-1!==i.indexOf("boxandwhisker")||t},i.prototype.calculateStackedValue=function(e,t){for(var i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.calculateStackingValues(this.findSeriesCollection(r,l,!0),e)}},i.prototype.calculateStackingValues=function(e,t){var i,o,r,n,a,l=[],s=[],h=[],c=[];t&&(c=this.findFrequencies(e));for(var d=[],p=[],u=0;u<e.length;u++){d[(S=e[u]).stackingGroup]?void 0!==d[S.stackingGroup]&&d[S.stackingGroup].push(S):(d[S.stackingGroup]=[],d[S.stackingGroup].push(S))}for(var g=Object.keys(d),m=0;m<g.length;m++){for(var y=[],f=[],v=d[g[m]],b=0,x=v;b<x.length;b++){var S;if(-1!==(S=x[b]).type.indexOf("Stacking")||-1!==S.drawType.indexOf("Stacking")&&"PolarRadar"===S.chart.chartAreaType){r=-1!==S.type.indexOf("StackingArea")?"StackingArea100":-1!==S.type.indexOf("StackingLine")?"StackingLine100":S.stackingGroup,-1!==S.type.indexOf("100")?(t=!0,c=[],c=this.findFrequencies(v)):t=!1,s[r]||(s[r]=[],h[r]=[]),l=S.yData,i=[],o=[],y.push(S);for(var C=0,F=(p=Qe(S)).length;C<F;C++)n=0,a=+l[C],void 0===s[r][p[C].xValue]&&(s[r][p[C].xValue]=0),void 0===h[r][p[C].xValue]&&(h[r][p[C].xValue]=0),t?(a=a/c[r][p[C].xValue]*100,a=isNaN(a)?0:a,p[C].percentage=+a.toFixed(2)):f[C]=f[C]?f[C]+Math.abs(a):Math.abs(a),a>=0?(n=s[r][p[C].xValue],s[r][p[C].xValue]+=a):(n=h[r][p[C].xValue],h[r][p[C].xValue]+=a),i.push(n),o.push(a+n),t&&o[C]>100&&(o[C]=100);S.stackedValues=new Bi(i,o);var w="Logarithmic"===S.yAxis.valueType,L=-1!==S.type.indexOf("Column")||-1!==S.type.indexOf("Bar");S.yMin=w&&L&&S.yMin<1?S.yMin:S.yAxis.startFromZero&&"Auto"===S.yAxis.rangePadding&&S.yMin>=0?0:parseFloat(Math.min.apply(0,t?i:o).toFixed(10)),S.yMax=Math.max.apply(0,o),S.yMin>Math.min.apply(0,o)&&(S.yMin=t?-100:w&&L&&S.yMin<1?S.yMin:Math.min.apply(0,o)),S.yMax<Math.max.apply(0,i)&&(S.yMax=0)}}this.findPercentageOfStacking(y,f,t)}},i.prototype.findPercentageOfStacking=function(e,t,i){for(var o=0,r=e;o<r.length;o++){var n=r[o];if(i)return null;for(var a=0,l=Qe(n);a<l.length;a++){var s=l[a];s.percentage=Math.abs(+(s.y/t[s.index]*100).toFixed(2))}}},i.prototype.findFrequencies=function(e){for(var t,i=[],o=[],r=0,n=e;r<n.length;r++){var a=n[r];if(a.yAxis.isStack100=-1!==a.type.indexOf("100"),o=Qe(a),-1!==a.type.indexOf("Stacking")){i[t=-1!==a.type.indexOf("StackingArea")?"StackingArea100":-1!==a.type.indexOf("StackingLine")?"StackingLine100":a.stackingGroup]||(i[t]=[]);for(var l=0,s=o.length;l<s;l++)void 0===i[t][o[l].xValue]&&(i[t][o[l].xValue]=0),a.yData[l]>0?i[t][o[l].xValue]+=a.yData[l]:i[t][o[l].xValue]-=a.yData[l]}}return i},i.prototype.renderSeries=function(e){if(this.chart.stockChart&&"DateTimeCategory"===this.xAxis.valueType){for(var t=0;t<this.points.length;t++){var o=this.xAxis.labels.indexOf(Date.parse(this.points[t].x.toString()).toString());this.points[t].xValue=o,e.series.length>1&&(this.xData[t]=o,this.xMin=this.xMin>o?o:this.xMin,this.xMax=this.xMax<o?o:this.xMax)}if(this instanceof i&&this.type.indexOf("Spline")>-1){var r=this.type.indexOf("Area")>-1,n=this.type.indexOf("Range")>-1;this.chart["spline"+(r?n?"RangeArea":"Area":"")+"SeriesModule"].findSplinePoint(this)}}var a=kt(this.type);e[(a=a.replace("100",""))+"SeriesModule"]&&("Indicator"!==this.category&&"TrendLine"!==this.category&&this.createSeriesElements(e),this.visiblePoints=Qe(this),this.chart.enableCanvas?(this.chart.canvasRender.ctx.save(),this.chart.canvasRender.ctx.beginPath(),e.requireInvertedAxis?this.chart.canvasRender.ctx.rect(this.yAxis.rect.x,this.xAxis.rect.y,this.yAxis.rect.width,this.xAxis.rect.height):this.chart.canvasRender.ctx.rect(this.xAxis.rect.x,this.yAxis.rect.y,this.xAxis.rect.width,this.yAxis.rect.height),this.chart.canvasRender.ctx.clip(),e[a+"SeriesModule"].render(this,this.xAxis,this.yAxis,e.requireInvertedAxis),this.chart.canvasRender.ctx.restore()):e[a+"SeriesModule"].render(this,this.xAxis,this.yAxis,e.requireInvertedAxis),"Indicator"!==this.category&&(this.errorBar.visible&&this.chart.errorBarModule.render(this),this.marker.dataLabel.visible&&(this.chart.enableCanvas?(this.chart.canvasRender.ctx.save(),this.chart.canvasRender.ctx.beginPath(),e.requireInvertedAxis?this.chart.canvasRender.ctx.rect(this.yAxis.rect.x,this.xAxis.rect.y,this.yAxis.rect.width,this.xAxis.rect.height):this.chart.canvasRender.ctx.rect(this.xAxis.rect.x,this.yAxis.rect.y,this.xAxis.rect.width,this.yAxis.rect.height),this.chart.canvasRender.ctx.clip(),e.dataLabelModule.render(this,this.chart,this.marker.dataLabel),this.chart.canvasRender.ctx.restore()):e.dataLabelModule.render(this,this.chart,this.marker.dataLabel)),!this.chart.enableCanvas&&this.lastValueLabel.enable&&e.lastValueLabelModule.render(this,this.chart,this.lastValueLabel),this.appendSeriesElement(e.seriesElements,e)),this.chart.enableCanvas||this.performAnimation(e,a,this.errorBar,this.marker,this.marker.dataLabel))},i.prototype.createSeriesElements=function(e){if("Indicator"!==this.category){var t=e.element.id,i=this.marker.border.width+8+5,o="Bubble"===this.type||"Scatter"===this.type||!this.marker.visible&&e.tooltip.shared&&e.enableCanvas?e.svgRenderer:e.renderer,r=void 0===this.index?this.category:this.index,n=void 0,a=void 0,l=void 0;if("Scatter"===this.type||"Scatter"===this.drawType?(n=(this.marker.height+i)/2,a=(this.marker.width+i)/2):(n=0,a=0),"PolarRadar"===e.chartAreaType){var s="Scatter"===this.drawType?Math.max(this.marker.width,this.marker.height):0;l=new Hi(t+"_ChartSeriesClipRect_"+r,"transparent",{width:1,color:"Gray"},1,this.clipRect.width/2+this.clipRect.x,this.clipRect.height/2+this.clipRect.y,e.radius+s),this.clipRectElement=Nt(e.redraw,l,o,"drawCircularClipPath")}else l=new Ni(t+"_ChartSeriesClipRect_"+r,"transparent",{width:1,color:"Gray"},1,{x:0===this.xAxis.columnIndex?-a:0,y:this.yAxis.rowIndex===e.rows.length-1?-n:0,width:this.clipRect.width+(this.xAxis.columnIndex===e.columns.length-1?2*a:a),height:this.clipRect.height+(0===this.yAxis.rowIndex?2*n:n)}),this.clipRectElement=Nt(e.redraw,l,o);var h="Cartesian"===e.chartAreaType?"translate("+this.clipRect.x+","+this.clipRect.y+")":"";this.symbolElement=null,this.seriesElement=o.createGroup({id:t+"SeriesGroup"+r,transform:h,"clip-path":"url(#"+t+"_ChartSeriesClipRect_"+r+")"}),this.seriesElement&&(this.seriesElement.setAttribute("role",this.accessibility.accessibilityRole?this.accessibility.accessibilityRole:"region"),this.seriesElement.setAttribute("tabindex",this.accessibility.focusable?String(this.accessibility.tabIndex):"-1"),this.seriesElement.style.outline="none",this.seriesElement.setAttribute("aria-label",this.accessibility.accessibilityDescription?this.accessibility.accessibilityDescription:this.name+","+this.type+" series with "+this.points.length+" data points"),this.seriesElement.setAttribute("aria-hidden","false")),this.chart.enableCanvas&&"Bubble"!==this.type||(this.seriesElement.setAttribute("tabindex",this.accessibility.focusable?0===r?"0":this.checkTabindex(e.visibleSeries,r)?"":String(this.accessibility.tabIndex):"-1"),this.seriesElement.style.outline="none",this.seriesElement.appendChild(this.clipRectElement))}},i.prototype.checkTabindex=function(e,t){for(var i=0;i<t;i++)if(e[i].visible)return!0;return!1},i.prototype.appendSeriesElement=function(e,t){var i=this.marker,o=i.dataLabel,r=this.lastValueLabel,n=t.redraw;"TrendLine"!==this.category&&(ni(t.enableCanvas,t.seriesElements,this.seriesElement,n),this.errorBar.visible&&("PolarRadar"===t.chartAreaType?ni(t.enableCanvas,t.seriesElements,this.seriesElement,n):ni(t.enableCanvas,t.seriesElements,this.errorBarElement,n)));i.visible&&("Cartesian"===t.chartAreaType||"Scatter"!==this.drawType&&"PolarRadar"===t.chartAreaType)&&"Scatter"!==this.type&&"Bubble"!==this.type&&"Candle"!==this.type&&"Hilo"!==this.type&&"HiloOpenClose"!==this.type&&this.symbolElement&&ni(t.enableCanvas,t.seriesElements,this.symbolElement,n),o.visible&&this.textElement&&(ni(t.enableCanvas,t.dataLabelElements,this.shapeElement,n),ni(t.enableCanvas,t.dataLabelElements,this.textElement,n)),!t.enableCanvas&&t.dataLabelElements.hasChildNodes()&&t.seriesElements.appendChild(t.dataLabelElements),r.enable&&this.lastValueLabelElement&&ni(t.enableCanvas,t.lastValueLabelElements,this.lastValueLabelElement,n)},i.prototype.performAnimation=function(e,i,o,r,n){!(this.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)||!e.animateSeries||e.stockChart&&e.stockChart.isStockChartRendered||(e[i+"SeriesModule"].doAnimation(this),o.visible&&e.errorBarModule.doErrorBarAnimation(this),r.visible&&(this.isRectSeries||"Line"===this.type||"Polar"===this.type||"Radar"===this.type)&&e.markerRender.doMarkerAnimation(this),n.visible&&"edge"!==t.Browser.info.name&&!t.Browser.isIE&&e.dataLabelModule.doDataLabelAnimation(this))},i.prototype.setPointColor=function(e,t){return t=e.interior||t,e.isEmpty&&this.emptyPointSettings.fill||t},i.prototype.setBorderColor=function(e,t){return t.width=e.isEmpty&&this.emptyPointSettings.border.width||t.width,t.color=e.isEmpty&&this.emptyPointSettings.border.color||t.color,t},i.prototype.addPoint=function(e,i){var o=this.yMin,r=this.yMax;if(this.removeTrackballElements(),this.dataSource.push(e),"Radar"===this.type||"Polar"===this.type)return this.chart.refresh();if("Histogram"===this.type){this.currentViewData=this.chart[kt(this.type)+"SeriesModule"].processInternalData((0,t.extend)([],this.dataSource,null,!0),this);for(var n=0;n<this.currentViewData.length;n++)this.updatePoint(n)}else{this.currentViewData=this.dataSource;var a=0===this.points.length?0:this.points[this.points.length-1].index+1;this.updatePoint(a)}if("Pareto"===this.category){var l=(0,t.extend)([],this.dataSource,null,!0),s=this.chart.visibleSeries[this.index+this.chart.series.length];s.currentViewData=this.chart.paretoSeriesModule.performCumulativeCalculation(l,this);for(n=0;n<s.currentViewData.length;n++)s.points[n]||s.updatePoint(n),s.points[n].y=s.points[n].yValue=s.currentViewData[n][s.yName]}this.visiblePoints.push(this.points[this.points.length-1]),this.updateSplineValue(),this.chart.calculateStackValues(),this.chart.redraw=this.chart.enableAnimation;var h=this.chart.duration;if(this.chart.duration=(0,t.isNullOrUndefined)(i)?500:i,this.chart.animateSeries=!1,this.chart.pointsAdded=!0,this.chart.enableAnimation&&!this.isRectSeries&&"Bubble"!==this.type&&"Scatter"!==this.type&&-1===this.type.indexOf("step")&&this.marker&&this.marker.visible&&this.visible)for(n=this.points.length-2;n>=0;n--)if(this.points[n]&&!(0,t.isNullOrUndefined)(this.points[this.points.length-2].y)&&this.points[n].symbolLocations&&void 0!==this.points[n].symbolLocations[0]){this.chart.markerRender.renderMarker(this,this.points[this.points.length-2],this.points[n].symbolLocations[0],null,!0);break}this.yMin>=o&&this.yMax<=r&&(Ht(this.xAxis)||(this.xAxis.baseModule.calculateRangeAndInterval(new R.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis()),this.chart.pointsAdded=!1,this.updateSeries(!0,!1)),(this.yMin<o||this.yMax>r)&&(this.updateChartAxis(),this.chart.pointsAdded=!1,this.updateSeries(!0,!0)),this.chart.redraw=!1,this.chart.duration=h},i.prototype.removePoint=function(e,i){var o=(0,t.extend)([],this.dataSource,null,!0),r=this.chart.duration;if(o.length>0&&e>=0&&e<o.length){if(o.splice(e,1),this.dataSource.splice(e,1),this.removeTrackballElements(e),"Radar"===this.type||"Polar"===this.type)return this.chart.refresh();if(this.chart.redraw=this.chart.enableAnimation,this.chart.animateSeries=!1,this.chart.pointsAdded=!0,this.chart.duration=(0,t.isNullOrUndefined)(i)?500:i,"Histogram"===this.type){var n=this.points.length;this.points=[],this.visiblePoints=[],this.currentViewData=this.chart[kt(this.type)+"SeriesModule"].processInternalData((0,t.extend)([],this.dataSource,null,!0),this);for(var a=0;a<this.currentViewData.length;a++)this.updatePoint(a);n>this.points.length&&(this.removedPointIndex=e)}else this.removedPointIndex=e,this.points.splice(e,1),this.visiblePoints.splice(e,1);this.yData=[],this.xData=[];var l=this.yMin,s=this.yMax;this.yMin=1/0,this.xMin=1/0,this.yMax=-1/0,this.xMax=-1/0,this.xAxis.valueType.indexOf("Category")>-1&&(this.xAxis.labels=[],this.xAxis.indexLabels={}),0===e&&(this.chart.pointsRemoved=this.chart.enableAnimation);for(a=0;a<this.points.length;a++)this.updatePointsAfterRemoval(a);if("Pareto"===this.category){var h=this.chart.visibleSeries[this.index+this.chart.series.length];h.yMin=1/0,h.xMin=1/0,h.yMax=-1/0,h.xMax=-1/0,h.points.splice(e,1),h.visiblePoints.splice(e,1),h.currentViewData=this.chart.paretoSeriesModule.performCumulativeCalculation(this.dataSource,this);for(a=0;a<h.currentViewData.length;a++)h.points[a].y=h.points[a].yValue=h.currentViewData[a][h.yName],h.updatePointsAfterRemoval(a)}this.updateSplineValue(),this.chart.calculateStackValues(),Ht(this.xAxis)||s!==this.yMax||l!==this.yMin?(s<this.yMax||l>this.yMin||s>this.yMax||l<this.yMin)&&(this.updateChartAxis(),this.createSeriesElements(this.chart),this.chart.pointsAdded=!1,this.updateSeries(!0,!0)):(this.xAxis.baseModule.calculateRangeAndInterval(new R.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis(),this.createSeriesElements(this.chart),this.chart.pointsAdded=!1,this.updateSeries(!0,!1))}ni(this.chart.enableCanvas,this.chart.seriesElements,this.seriesElement,!0),this.chart.redraw=!1,this.chart.duration=r,this.chart.pointsRemoved=!1,this.removedPointIndex=null},i.prototype.updatePointsAfterRemoval=function(e){var t=this.points[e],i={skeleton:"full",type:"dateTime"},o=this.chart.intl.getDateParser(i),r=this.chart.intl.getDateFormat(i);"Category"===this.xAxis.valueType?this.pushCategoryData(t,e,t.x):"DateTimeCategory"===this.xAxis.valueType&&1===this.chart.series.length&&this.pushCategoryData(t,e,Date.parse(o(r(t.x))).toString()),this.pushData(t,e),this.setEmptyPoint(this.points[e],e)},i.prototype.removeTrackballElements=function(e){if(this.marker.visible)if(void 0!==e){var t=this.chart.element.id+"_Series_"+this.index+"_Point_"+e+"_Trackball_",i=qt(t+"0");i&&i.remove();var o=qt(t+"1");o&&o.remove(),(a=qt(this.chart.element.id+"_Series_"+this.index+"_Point_"+e+"_Symbol"))&&a.setAttribute("visibility","visible")}else{var r=this.chart.element.id+"_EJ2-Trackball_Series_"+this.index+"_Point_",n=document.querySelectorAll('[class*="'+r+'"]');if(n[0]){var a,l=n[0].id.match(/_Point_(\d+)_/),s=l?parseInt(l[1],10):null;n[0].remove(),(a=qt(this.chart.element.id+"_Series_"+this.index+"_Point_"+s+"_Symbol"))&&a.setAttribute("visibility","visible")}n[1]&&n[1].remove()}if(this.chart.tooltip.enable){this.chart.tooltipModule.previousPoints=[];var h=qt(this.chart.element.id+"_tooltip");h&&h.remove()}},i.prototype.setData=function(e,i){var o=this;if(!e)return null;this.currentViewData=null;var r=[];if(this.dataSource.length===e.length)for(var n=0;n<e.length;n++)if(e[n][this.xName]instanceof Date?r.push(e[n][this.xName].getTime()):r.push(e[n][this.xName]),this.currentData.length<this.dataSource.length){var a=(0,t.extend)([],this.dataSource,null,!0);a[n][this.xName]instanceof Date?this.currentData.push(a[n][this.xName].getTime()):this.currentData.push(a[n][this.xName])}var l=r.every(function(e){return-1!==o.currentData.indexOf(e)});this.currentViewData&&(l=!0);var s=!1,h=this.yMin,c=this.yMax;this.yMin=1/0,this.yMax=-1/0;var d=[];this.chart.dataLabelCollections=[],this.chart.rotatedDataLabelCollections=[];var p=!1,u=null;if(this.dataSource.length===e.length&&"Radar"!==this.type&&"Polar"!==this.type&&l)if(p=!0,this.yData=[],"Histogram"===this.type&&this.dataSource.length===e.length){var g=this.chart[kt(this.type)+"SeriesModule"].processInternalData((0,t.extend)([],e,null,!0),this);this.currentViewData=g;for(var m=0;m<g.length;m++)this.updatePoint(m)}else for(n=0;n<e.length;n++){var y=e[n][this.xName];this.dataSource[n][this.xName];e[n][this.xName]instanceof Date&&(y=e[n][this.xName].getTime(),this.dataSource[n][this.xName].getTime()),this.currentData[n]!==y&&(s=!0);var f=this.points[n],v=this.enableComplexProperty?t.getValue:this.getObjectValue,b=this.dataSource[n],x=e[n];"XY"===this.seriesType||"BoxPlot"===this.seriesType?(f.y=v(this.yName,x),"Bubble"===this.type&&b[this.size]!==x[this.size]&&(f.size=v(this.size,x)),d.push(n)):b[this.high]===x[this.high]&&b[this.low]===x[this.low]&&b[this.open]===x[this.open]&&b[this.close]===x[this.close]&&b[this.volume]===x[this.volume]||(f.high=v(this.high,x),f.low=v(this.low,x),f.open=v(this.open,x),f.close=v(this.close,x),f.volume=v(this.volume,x),d.push(n)),f.yValue=f.y,f.x=v(this.xName,x),this.currentViewData||(f.index="DateTime"===this.xAxis.valueType&&"number"!=typeof f.x?this.currentData.indexOf(f.x.getTime()):this.currentData.indexOf(f.x)),("Category"===this.xAxis.valueType||"DateTimeCategory"===this.xAxis.valueType)&&n<this.xAxis.visibleLabels.length&&(this.xAxis.visibleLabels[n].value=r.indexOf(this.currentData[n*this.xAxis.visibleRange.interval]),this.xAxis.labels[n]=String(r[n])),this.setEmptyPoint(f,n),this.dataSource[n]=e[n]}if(p){this.chart.redraw=this.chart.enableAnimation,this.chart.animateSeries=!1,this.chart.pointsAdded=!0;var S=this.chart.duration;if(this.chart.duration=(0,t.isNullOrUndefined)(i)?500:i,-1!==this.type.indexOf("Stacking")&&this.chart.calculateStackValues(),this.updateSplineValue(),c===this.yMax&&h===this.yMin&&this.visible)this.chart.pointsAdded=!1,this.chart[kt("Pareto"===this.category?"Column":this.type.replace("100",""))+"SeriesModule"].updateDirection(this,d,this.chart.requireInvertedAxis),this.lastValueLabel.enable&&this.chart.lastValueLabelModule&&(this.chart.lastValueLabelCollections=[],this.chart.lastValueLabelModule.render(this,this.chart,this.lastValueLabel,!0),this.lastValueLabelElement&&ni(this.chart.enableCanvas,this.chart.lastValueLabelElements,this.lastValueLabelElement,!0)),this.chart.annotationModule&&this.chart.annotationModule.renderAnnotations(qt(this.chart.element.id+"_Secondary_Element")),!Ht(this.xAxis)&&s&&this.xAxis.updateAxis();else if((c<this.yMax||h>this.yMin||c>this.yMax||h<this.yMin)&&this.visible){var C=this.yAxis.maxLabelSize.width;this.yAxis.baseModule.calculateRangeAndInterval(new R.Size(this.chart.availableSize.width,this.yAxis.rect.height),this.yAxis),C<this.yAxis.maxLabelSize.width?(this.chart.calculateBounds(),this.chart.axisCollections.forEach(function(e){Ht(e)||e.updateAxis()}),this.chart.chartAxisLayoutPanel.drawPaneLines(this.chart),this.chart.renderAreaBorder()):(Ht(this.yAxis)||this.yAxis.updateAxis(),!Ht(this.xAxis)&&s&&this.xAxis.updateAxis(),"Histogram"!==this.type||Ht(this.xAxis)||(this.xAxis.baseModule.calculateRangeAndInterval(new R.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis())),this.chart.pointsAdded=!1,s&&(this.chart[kt("Pareto"===this.category?"Column":this.type.replace("100",""))+"SeriesModule"].updateDirection(this,d,this.chart.requireInvertedAxis),u=this.index),this.updateSeries(!1,!0,u),this.chart.stripLineModule&&this.chart.stripLineModule.renderStripLine(this.chart,"Behind",this.chart.axisCollections)}this.chart.redraw=!1,this.chart.pointsRemoved=!1,this.chart.duration=S}else this.dataSource=e},i.prototype.updateChartAxis=function(){var e=this.yAxis.maxLabelSize.width;this.yAxis.baseModule.calculateRangeAndInterval(new R.Size(this.chart.availableSize.width,this.yAxis.rect.height),this.yAxis),e<this.yAxis.maxLabelSize.width?(this.chart.calculateBounds(),this.chart.axisCollections.forEach(function(e){Ht(e)||e.updateAxis()}),this.chart.chartAxisLayoutPanel.drawPaneLines(this.chart),this.chart.renderAreaBorder()):(Ht(this.xAxis)||(this.xAxis.baseModule.calculateRangeAndInterval(new R.Size(this.xAxis.rect.width,this.chart.availableSize.height),this.xAxis),this.xAxis.updateAxis()),Ht(this.yAxis)||this.yAxis.updateAxis()),this.chart.stripLineModule&&this.chart.stripLineModule.renderStripLine(this.chart,"Behind",this.chart.axisCollections)},i.prototype.updateSeries=function(e,t,i){var o=[];e&&t?new Set(this.xAxis.series.concat(this.yAxis.series)).forEach(function(e){o.push(e)}):o=e?this.xAxis.series.slice():this.yAxis.series.slice();for(var r=0,n=o;r<n.length;r++){var a=n[r];if(a.visible&&a.index!==i){Dt(a,this.chart.enableCanvas);var l="translate("+this.clipRect.x+","+this.clipRect.y+")";a.seriesElement.setAttribute("transform",l),a.chart[kt(a.type.replace("100",""))+"SeriesModule"].render(a,a.xAxis,a.yAxis,a.chart.requireInvertedAxis,a.chart.enableAnimation),a.marker.visible&&"Cartesian"===a.chart.chartAreaType&&"Scatter"!==a.type&&"Bubble"!==a.type&&"Candle"!==a.type&&"Hilo"!==a.type&&"HiloOpenClose"!==a.type&&a.symbolElement&&(a.symbolElement.setAttribute("transform",l),ni(a.chart.enableCanvas,a.chart.seriesElements,a.symbolElement,!0)),a.marker.dataLabel.visible&&a.chart.dataLabelModule&&(a.chart.dataLabelCollections=[],a.chart.dataLabelModule.render(a,a.chart,a.marker.dataLabel),a.textElement&&(a.shapeElement&&a.shapeElement.setAttribute("transform",l),ni(a.chart.enableCanvas,a.chart.dataLabelElements,a.shapeElement,!0),a.textElement.setAttribute("transform",l),ni(a.chart.enableCanvas,a.chart.dataLabelElements,a.textElement,!0))),a.lastValueLabel.enable&&a.chart.lastValueLabelModule&&(a.chart.lastValueLabelCollections=[],a.chart.lastValueLabelModule.render(a,a.chart,a.lastValueLabel,!0),a.lastValueLabelElement&&ni(a.chart.enableCanvas,a.chart.lastValueLabelElements,a.lastValueLabelElement,!0)),a.chart.annotationModule&&a.chart.annotationModule.renderAnnotations(qt(a.chart.element.id+"_Secondary_Element"))}}},i.prototype.updatePoint=function(e){var t=new yo,o=this instanceof i&&this.marker.dataLabel.name?this.marker.dataLabel.name:"",r=this instanceof i&&"Histogram"===this.type?"x":this.xName;if("Category"===this.xAxis.valueType)this.pushCategoryPoint(t,e,o,r);else if(this.xAxis.valueType.indexOf("DateTime")>-1){var n=this.points[e],a={skeleton:"full",type:"dateTime"},l=this.chart.intl.getDateParser(a),s=this.chart.intl.getDateFormat(a);this.pushDateTimePoint(n,e,o,r,l,s)}else this.pushDoublePoint(t,e,o,r)},i.prototype.formatAccessibilityDescription=function(e,t){return t.accessibility.accessibilityDescriptionFormat.replace("${series.name}",t&&t.name?t.name:"").replace("${point.x}",e&&e.x?e.x.toString():"").replace("${point.y}",e&&e.y?e.y.toString():"").replace("${point.high}",e&&e.high?e.high.toString():"").replace("${point.low}",e&&e.low?e.low.toString():"").replace("${point.close}",e&&e.close?e.close.toString():"").replace("${point.open}",e&&e.open?e.open.toString():"").replace("${point.maximum}",e&&e.maximum?e.maximum.toString():"").replace("${point.minimum}",e&&e.minimum?e.minimum.toString():"").replace("${point.median}",e&&e.median?e.median.toString():"").replace("${point.lowerQuartile}",e&&e.lowerQuartile?e.lowerQuartile.toString():"").replace("${point.upperQuartile}",e&&e.upperQuartile?e.upperQuartile.toString():"")},co([(0,t.Property)("")],i.prototype,"name",void 0),co([(0,t.Property)("")],i.prototype,"yName",void 0),co([(0,t.Property)("Line")],i.prototype,"drawType",void 0),co([(0,t.Property)(!0)],i.prototype,"isClosed",void 0),co([(0,t.Property)(null)],i.prototype,"bearFillColor",void 0),co([(0,t.Property)(null)],i.prototype,"bullFillColor",void 0),co([(0,t.Property)(!1)],i.prototype,"enableSolidCandles",void 0),co([(0,t.Property)("")],i.prototype,"size",void 0),co([(0,t.Property)(null)],i.prototype,"binInterval",void 0),co([(0,t.Property)(!1)],i.prototype,"showNormalDistribution",void 0),co([(0,t.Property)("")],i.prototype,"stackingGroup",void 0),co([(0,t.Complex)({color:null,width:0},u)],i.prototype,"border",void 0),co([(0,t.Complex)({},po)],i.prototype,"lastValueLabel",void 0),co([(0,t.Property)(1)],i.prototype,"opacity",void 0),co([(0,t.Property)(0)],i.prototype,"zOrder",void 0),co([(0,t.Property)("")],i.prototype,"groupName",void 0),co([(0,t.Property)("Line")],i.prototype,"type",void 0),co([(0,t.Complex)(null,xo)],i.prototype,"errorBar",void 0),co([(0,t.Complex)(null,go)],i.prototype,"marker",void 0),co([(0,t.Complex)(null,mo)],i.prototype,"paretoOptions",void 0),co([(0,t.Complex)({},P)],i.prototype,"dragSettings",void 0),co([(0,t.Collection)([],fo)],i.prototype,"trendlines",void 0),co([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),co([(0,t.Property)(!0)],i.prototype,"showNearestTooltip",void 0),co([(0,t.Property)("")],i.prototype,"tooltipFormat",void 0),co([(0,t.Property)("")],i.prototype,"tooltipMappingName",void 0),co([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),co([(0,t.Property)("")],i.prototype,"legendImageUrl",void 0),co([(0,t.Property)(null)],i.prototype,"selectionStyle",void 0),co([(0,t.Property)(null)],i.prototype,"unSelectedStyle",void 0),co([(0,t.Property)(null)],i.prototype,"nonHighlightStyle",void 0),co([(0,t.Property)(1)],i.prototype,"minRadius",void 0),co([(0,t.Property)(3)],i.prototype,"maxRadius",void 0),co([(0,t.Property)("Natural")],i.prototype,"splineType",void 0),co([(0,t.Property)(.5)],i.prototype,"cardinalSplineTension",void 0),co([(0,t.Complex)(null,v)],i.prototype,"emptyPointSettings",void 0),co([(0,t.Property)(!0)],i.prototype,"showMean",void 0),co([(0,t.Property)("Normal")],i.prototype,"boxPlotMode",void 0),co([(0,t.Property)(!0)],i.prototype,"showOutliers",void 0),co([(0,t.Property)(null)],i.prototype,"columnWidth",void 0),co([(0,t.Property)(null)],i.prototype,"columnWidthInPixel",void 0),co([(0,t.Property)("Rectangle")],i.prototype,"columnFacet",void 0),co([(0,t.Property)(0)],i.prototype,"columnSpacing",void 0),co([(0,t.Property)("#C64E4A")],i.prototype,"negativeFillColor",void 0),co([(0,t.Property)("#4E81BC")],i.prototype,"summaryFillColor",void 0),co([(0,t.Property)()],i.prototype,"intermediateSumIndexes",void 0),co([(0,t.Property)()],i.prototype,"sumIndexes",void 0),co([(0,t.Property)("Left")],i.prototype,"step",void 0),co([(0,t.Property)(!1)],i.prototype,"noRisers",void 0),co([(0,t.Complex)({},l)],i.prototype,"accessibility",void 0),co([(0,t.Complex)({color:"black",width:2},r)],i.prototype,"connector",void 0),co([(0,t.Complex)(null,x)],i.prototype,"cornerRadius",void 0),i}(So),Fo=function(){function e(e,t){this.initDataManager(e,t)}return e.prototype.initDataManager=function(e,t){this.dataManager=e instanceof ao.DataManager?e:new ao.DataManager(e),this.query=t instanceof ao.Query?t:new ao.Query},e.prototype.generateQuery=function(){return this.query.clone()},e.prototype.getData=function(e){var t=this;if(this.dataManager.ready){var i=new ao.Deferred;return this.dataManager.ready.then(function(){t.dataManager.executeQuery(e).then(function(e){i.resolve(e)})}).catch(function(e){i.reject(e)}),i.promise}return this.dataManager.executeQuery(e)},e}(),wo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Lo=function(e){function i(t){var i=e.call(this,t)||this;return i.elementId=t.element.id,i.commonXvalues=[],i}return wo(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.chart.off(t.Browser.touchEndEvent,this.mouseUpHandler))},i.prototype.mouseUpHandler=function(){var e=this.chart;!e.isTouch||e.crosshair.enable||this.isSelected(e)||this.chart.zoomModule&&qt(this.elementId+"_ZoomArea")||this.markerMove(!0)},i.prototype.mouseMoveHandler=function(){var e=this.chart;"None"===e.highlightMode&&!e.tooltip.enable||e.isTouch&&!e.startMove||this.isSelected(e)||this.chart.zoomModule&&(qt(this.elementId+"_ZoomArea")||this.chart.zoomModule.startPanning)||this.markerMove(!1)},i.prototype.markerMove=function(e){var i,o,r,n,a=this,l=this.chart;if(this.currentPoints=[],l.tooltip.shared&&l.tooltip.enable){if(!Pt(l.mouseX,l.mouseY,l.chartAxisLayoutPanel.seriesClipRect))return null;if(l.tooltip.enable){var s="PolarRadar"===l.chartAreaType?this.getData():null;if(this.chart.tooltip.showNearestPoint)for(var h=0,c=l.visibleSeries;h<c.length;h++){var d=c[h];d.enableTooltip&&"Indicator"!==d.category&&("Cartesian"===l.chartAreaType&&d.visible?i=this.getClosestX(l,d,this.commonXValue(this.chart.visibleSeries)):"PolarRadar"===l.chartAreaType&&d.visible&&null!==s.point&&(i=new Yi(d.points[s.point.index],d)),i&&(this.currentPoints.push(i),i=null))}else this.currentPoints=this.chart.tooltipModule.currentPoints}}else i=this.getData(),n=i.series,o=this.previousPoints[0],r=n&&("Bubble"===n.type||"Scatter"===n.drawType||"Scatter"===n.type||"Candle"!==n.type&&"Hilo"!==n.type&&"HiloOpenClose"!==n.type&&n.marker.visible&&0!==n.marker.width&&0!==n.marker.height),i.lierIndex=this.lierIndex,i.point&&r&&(!o||o.point!==i.point||o&&o.lierIndex>3&&o.lierIndex!==this.lierIndex)&&this.currentPoints.push(i),i.point&&r&&l.isPointMouseDown&&this.currentPoints.push(i),0!==this.currentPoints.length||!i.point||r||(0,t.isNullOrUndefined)(o)||o.point===i.point||(this.removeHighlightedMarker(o.series,o.point),this.previousPoints=(0,t.extend)([],i,null,!0)),l.tooltip.showNearestTooltip&&this.chart.tooltipModule&&this.chart.tooltipModule.currentPoints&&(r||"Pareto"===n.type&&n.paretoOptions.marker.visible)&&0===this.currentPoints.length&&Pt(l.mouseX,l.mouseY,l.chartAxisLayoutPanel.seriesClipRect)&&(this.currentPoints=this.chart.tooltipModule.currentPoints);var p=this.previousPoints.length;if((this.currentPoints.length>0||p>0&&l.tooltip.shared)&&(0===p||l.isPointMouseDown||p>0&&(0===this.currentPoints.length||this.previousPoints[0].point!==this.currentPoints[0].point))){if(p>0)for(var u=0,g=this.previousPoints;u<g.length;u++){var m=g[u];(0,t.isNullOrUndefined)(m)||this.removeHighlightedMarker(m.series,m.point)}for(var y=function(e){(e&&e.point||"Candle"!==n.type&&"Hilo"!==n.type&&"HiloOpenClose"!==n.type)&&(hi(f.markerExplode),f.isRemove=!0,e.point.symbolLocations.map(function(t,i){!e.series.marker.allowHighlight||e.series.isRectSeries&&!e.point.marker.visible||a.drawTrackBall(e.series,e.point,t,i)}))},f=this,v=0,b=this.currentPoints;v<b.length;v++){y(b[v])}this.previousPoints=(0,t.extend)([],this.currentPoints,null,!0)}l.tooltip.enable||!(0===this.currentPoints.length&&this.isRemove||e&&this.isRemove)&&Pt(l.mouseX,l.mouseY,l.chartAxisLayoutPanel.seriesClipRect)||(this.isRemove=!1,(0,t.isNullOrUndefined)(this.previousPoints[0])||(this.markerExplode=+setTimeout(function(){a.previousPoints[0]&&a.removeHighlightedMarker(a.previousPoints[0].series,a.previousPoints[0].point)},2e3))),this.currentPoints=[]},i.prototype.animationDuration=function(){var e=200;return this.chart.maxPointCount>100?e=10:this.chart.maxPointCount>50&&(e=100),e},i.prototype.drawTrackBall=function(e,i,o,r){var n,a=i.marker,l=e.marker,s=a.shape||l.shape||"Circle";if("None"===s||"Image"===s)return null;var h,c=e.symbolElement||e.seriesElement;this.chart.highlightModule&&"None"!==this.chart.highlightMode&&(h=this.chart.highlightModule.generateStyle(e)),this.chart.selectionModule&&"None"!==this.chart.selectionMode&&(h=this.chart.selectionModule.generateStyle(e));var d=this.elementId+"_Series_"+e.index+"_Point_"+i.index+"_Trackball"+(r||"");qt(d+"_1")&&qt(d+"_1").getAttribute("e-animate")&&(t.Animation.stop(qt(d+"_1")),(0,t.remove)(qt(d+"_1")));var p=new R.Size((a.width||l.width)+3,(a.height||l.height)+3),u=a.border||e.border,g="BoxAndWhisker"===e.type||"Bubble"===e.type||"Scatter"===e.type,m=u.color&&"transparent"!==u.color?u.color:a.fill||i.interior||(g?i.color:e.interior),y=yi(fi(m)),f=a.border?a.border.width:l.border.width,v=e.chart.themeStyle.markerShadow||"rgba("+y.r+","+y.g+","+y.b+",0.2)",b=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+i.index+"_Symbol");if((0,t.isNullOrUndefined)(b)||b.setAttribute("visibility","visible"),this.chart.enableCanvas){var x=document.getElementById(this.chart.element.id+"_Secondary_Element");(n=this.chart.svgRenderer.createSvg({id:this.chart.element.id+"_trackball_svg",width:this.chart.availableSize.width,height:this.chart.availableSize.height})).style.cssText="position: absolute; display:block; pointer-events: none",x.appendChild(n)}for(var S=0;S<2;S++){var C=new R.PathOption(d+"_"+S,S?a.fill||i.color||(g?e.interior:"#ffffff"):"transparent",f+(S?0:8),S?m:v,a.opacity||l.opacity,e.marker.border.dashArray,""),F=Xt(o,s,p,a.imageUrl,C,0,this.chart.svgRenderer,e.clipRect);F.setAttribute("class",this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+i.index);var w=-1!==c.id.indexOf("Symbol")?"_Symbol":"",L=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+i.index+w);""===h||(0,t.isNullOrUndefined)(h)||(0,t.isNullOrUndefined)(L)||!L.hasAttribute("class")||h!==L.getAttribute("class")||F.classList.add(h),F.setAttribute("clip-path",c.getAttribute("clip-path")),F.setAttribute("transform",c.getAttribute("transform")),this.chart.enableCanvas?n.appendChild(F):this.chart.svgObject.appendChild(F),i.symbolLocations.length>1&&e.marker.visible&&"Bubble"!==e.type&&"Scatter"!==e.type&&this.trackballAnimate(F,0,this.animationDuration(),e,i.index,o,!1,!1)}i.symbolLocations.length<2&&e.marker.visible&&this.doAnimation(e,i,!1)},i.prototype.doAnimation=function(e,t,i){if(void 0===i&&(i=!1),"Bubble"!==e.type&&"Scatter"!==e.type)for(var o=this.animationDuration(),r=document.getElementsByClassName(this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+t.index),n=0,a=r.length;n<a;n++)this.trackballAnimate(r[n],0,o,e,t.index,t.symbolLocations[0],!1,i)},i.prototype.trackballAnimate=function(e,i,o,r,n,a,l,s,h){var c=a.x,d=a.y,p="Polar"!==r.type&&"Radar"!==r.type?r.clipRect.x:0,u="Polar"!==r.type&&"Radar"!==r.type?r.clipRect.y:0,g=e.getAttribute("transform"),m=r.marker.width/(r.marker.width+3),y=r.marker.height/(r.marker.height+3),f=Math.min(m,y);h||e.setAttribute("transform","translate("+(c+p)+" "+(d+u)+") scale("+f+") translate("+-c+" "+-d+")"),new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(i){if(i.element.style.animation="",i.timeStamp>i.delay){if(!r.visible&&h)return void(0,t.remove)(e);var o=i.timeStamp/i.duration,n=h?Math.max(f,1-(1-f)*o):Math.min(1,f+(1-f)*o);e.setAttribute("transform","translate("+(c+p)+" "+(d+u)+") scale("+n+") translate("+-c+" "+-d+")")}},end:function(){e.style.visibility="",e.setAttribute("transform",g),l||n!==r.points.length-1||r.chart.trigger("animationComplete",{series:r}),(h||s)&&(0,t.remove)(e)}})},i.prototype.removeHighlightedMarker=function(e,i,o){if(void 0===e&&(e=null),void 0===i&&(i=null),void 0===o&&(o=!1),(0,t.isNullOrUndefined)(e)||(0,t.isNullOrUndefined)(i))for(var r=0,n=e.points;r<n.length;r++)for(var a=n[r],l=(s=document.getElementsByClassName(this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+a.index),h=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+a.index+"_Symbol"),d=0,s.length);d<l;d++)(0,t.isNullOrUndefined)(h)||h.setAttribute("visibility","visible"),(0,t.remove)(s[0]);else{var s,h=document.getElementById(this.elementId+"_Series_"+e.index+"_Point_"+i.index+"_Symbol"),c=document.getElementsByClassName(this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+i.index);if(0===c.length)(s=document.querySelectorAll('[class*="'+this.elementId+"_EJ2-Trackball_Series_"+e.index+"_Point_"+i.index+'"]'))[1]&&s[1].remove(),s[0]&&s[0].remove();for(var d=c.length-1;d>=0;d--)(!e.marker.visible||c[d]&&"0"===c[d].id[c[d].id.length-1]||"Scatter"===e.type)&&(0,t.remove)(c[d]);for(var d=c.length-1;d>=0;d--)c[d]&&"1"===c[d].id[c[d].id.length-1]&&"Bubble"!==e.type&&"Scatter"!==e.type&&e.marker.visible&&(c[d].setAttribute("opacity",h?h.getAttribute("opacity"):c[d].getAttribute("opacity")),this.trackballAnimate(c[d],0,this.animationDuration(),e,i.index,i.symbolLocations[d],null,null,!0));(0,t.isNullOrUndefined)(h)||h.setAttribute("visibility","visible")}o&&(this.previousPoints=[])},i}(so),Po=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ao=["Circle","Triangle","Diamond","Rectangle","Pentagon","InvertedTriangle","VerticalLine","Cross","Plus","HorizontalLine","Star"],Mo=function(e){function i(t){var i=e.call(this,t)||this;return i.addEventListener(),i}return Po(i,e),i.prototype.render=function(e){var t=this,i=e.chart.redraw;this.createElement(e,i);for(var o=function(o){o.visible&&o.symbolLocations&&o.symbolLocations.length&&o.symbolLocations.map(function(r,n){if("Cartesian"===e.chart.chartAreaType&&(!e.isRectSeries||e.type.indexOf("Column")>-1)&&-1===e.type.indexOf("100")&&-1===e.type.indexOf("Range")){var a=e.chart.axisCollections.filter(function(t){return e.chart.isTransposed?"Horizontal"===t.orientation:"Vertical"===t.orientation}).some(function(e){var t=e.actualRange;if("Logarithmic"===e.valueType){var i=et(o.yValue,e.logBase);return isFinite(i)&&i>=t.min&&i<=t.max}return o.yValue>=t.min&&o.yValue<=t.max});"None"!==e.marker.shape&&a&&t.renderMarker(e,o,r,n,i)}else"None"!==e.marker.shape&&t.renderMarker(e,o,r,n,i)})},r=0,n=e.points;r<n.length;r++){o(n[r])}},i.prototype.renderMarker=function(e,i,o,r,n){var a=void 0===e.index?e.category:e.index,l=e.marker;e.marker.shape=e.marker.shape?e.marker.shape:Ao[a%10];var s,h,c,d,p={color:l.border.color,width:l.border.width},u=l.border.color;o.x=o.x+l.offset.x,o.y=o.y-l.offset.y;var g,m="BoxAndWhisker"===e.type,y=l.fill||(m||e.marker.isFilled?i.interior||e.interior:"#ffffff"),f=m&&!this.chart.enableCanvas?ii(e.seriesElement.childNodes,"Series_"+e.index+"_Point_"+i.index):e.symbolElement;p.color=u||e.setPointColor(i,e.interior);var v=this.elementId+"_Series_"+a+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=i.index||this.chart.pointsAdded?i.index+1:i.index)+"_Symbol"+(r||""),b={cancel:!1,name:V,series:e,point:i,fill:i.isEmpty&&e.emptyPointSettings.fill||y,border:{color:"BoxAndWhisker"===e.type?(0,t.isNullOrUndefined)(u)||"transparent"===u?bi(y,-.6):u:p.color,width:p.width},height:l.height,width:l.width,shape:l.shape};if(b.border=e.setBorderColor(i,{width:b.border.width,color:b.border.color}),e.isRectSeries&&"BoxAndWhisker"!==e.type||(this.chart.trigger(V,b),i.color=b.fill),b.cancel)o=null,i.marker={visible:!1};else{var x=void 0;x="RangeArea"===e.type||"RangeColumn"===e.type||"RangeColumn"===e.drawType||"SplineRangeArea"===e.type||"RangeStepArea"===e.type?r?i.low:i.high:m?i.outliers[r]:i.y;var S=b.point.marker.fill||b.fill,C=void 0;C=(0,t.isNullOrUndefined)(b.point.marker.border)?{color:b.border.color,width:b.border.width}:{color:b.point.marker.border.color||b.border.color,width:b.point.marker.border.width||b.border.width};var F=b.point.marker.width||b.width,w=b.point.marker.height||b.height,L=b.point.marker.opacity||l.opacity,P=b.point.marker.shape||b.shape,A=b.point.marker.imageUrl||l.imageUrl;d=new R.PathOption(v,S,C.width,C.color,L,e.marker.border.dashArray),(null!=f||this.chart.enableCanvas)&&(n&&qt(d.id)&&(c="Circle"===P?"c":"",s={x:+(g=qt(d.id)).getAttribute(c+"x"),y:+g.getAttribute(c+"y")},h=g.getAttribute("d")),(g=Xt(o,P,new R.Size(F,w),A,d,(i.x.toString(),x.toString()),this.chart.renderer,e.clipRect))&&(g.setAttribute("role","img"),"TrendLine"===e.category&&d.id===this.elementId+"_Series_0_Point_0_Symbol"&&(g.setAttribute("tabindex","0"),g.setAttribute("class","e-chart-focused")),g.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(i,e):i.x+": "+i.y+", "+e.name)),ni(this.chart.enableCanvas,f,g,n,!0,c+"x",c+"y",s,h,!1,!1,null,e.chart.duration),null!==e.removedPointIndex&&e.removedPointIndex<=i.index&&(f.lastChild.id=this.elementId+"_Series_"+a+"_Point_"+i.index+"_Symbol"+(r||""))),i.marker={border:C,fill:S,height:w,visible:!0,shape:P,width:F,imageUrl:A}}},i.prototype.createElement=function(e,t){var i,o,r=e.marker,n=r.border.width+(this.chart.zoomModule&&this.chart.zoomModule.isAxisZoomed(this.chart.axisCollections)?0:13),a=e.chart.svgRenderer,l=void 0===e.index?e.category:e.index,s="Cartesian"===e.chart.chartAreaType?"translate("+e.clipRect.x+","+e.clipRect.y+")":"";if(r.visible){var h=(r.height+n)/2,c=(r.width+n)/2;if(i="Cartesian"===e.chart.chartAreaType?Nt(t,o=new Ni(this.elementId+"_ChartMarkerClipRect_"+l,"transparent",{width:1,color:"Gray"},1,{x:-c,y:-h,width:e.clipRect.width+2*c,height:e.clipRect.height+2*h},0,0,"",e.marker.border.dashArray),a):Nt(t,o=new Hi(this.elementId+"_ChartMarkerClipRect_"+l,"transparent",{width:1,color:"Gray"},1,e.clipRect.width/2+e.clipRect.x,e.clipRect.height/2+e.clipRect.y,e.chart.radius+Math.max(h,c)),a,"drawCircularClipPath"),o={id:this.elementId+"SymbolGroup"+l,transform:s,"clip-path":"url(#"+this.elementId+"_ChartMarkerClipRect_"+l+")"},e.symbolElement=a.createGroup(o),e.symbolElement.appendChild(i),this.chart.enableCanvas)document.getElementById(this.chart.element.id+"_tooltip_svg").appendChild(e.symbolElement)}},i.prototype.getRangeLowPoint=function(e,t){var i=e.x,o=e.y;return t.chart.requireInvertedAxis?(o+=e.height/2,i+=t.yAxis.isAxisInverse?e.width:0):(o+=t.yAxis.isAxisInverse?0:e.height,i+=e.width/2),{x:i,y:o}},i.prototype.calculateDistance=function(e,t){var i=t.x-e.x,o=t.y-e.y;return Math.sqrt(i*i+o*o)},i.prototype.doMarkerAnimation=function(e){if("Scatter"!==e.type&&"Bubble"!==e.type&&"Candle"!==e.type&&"Hilo"!==e.type&&"HiloOpenClose"!==e.type&&("PolarRadar"!==e.chart.chartAreaType||"Scatter"!==e.drawType)){for(var i=e.symbolElement.childNodes,o=e.animation.delay+(0===e.animation.duration&&"Enable"===t.animationMode?1e3:e.animation.duration),r=e.chart.animated?e.chart.duration:200,n=o,a=e.pathElement?e.pathElement.getTotalLength():0,l=[],s=1;"Line"===e.type&&s<e.points.length;s++)if(e.points[s-1].symbolLocations[0]&&e.points[s].symbolLocations[0]){var h=this.calculateDistance(e.points[s-1].symbolLocations[0],e.points[s].symbolLocations[0]);l.push(h)}var c=1,d="RangeArea"===e.type||"RangeColumn"===e.type||"SplineRangeArea"===e.type||"RangeStepArea"===e.type?2:1;for(s=0;s<e.points.length;s++)if(e.points[s].symbolLocations){if(!e.points[s].symbolLocations.length||!i[c])continue;if("Line"===e.type&&(0===s&&(n=0),s>0&&(n+=l[s-1]/a*o,r=0)),It(i[c],n,r,e,s,e.points[s].symbolLocations[0],!1),2===d){this.getRangeLowPoint(e.points[s].regions[0],e);It(i[c+1],n,r,e,s,0,!1)}c+=d}}},i}(Lo),Do=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ko=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ro=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Do(i,e),ko([(0,t.Property)(!0)],i.prototype,"visible",void 0),ko([(0,t.Property)(null)],i.prototype,"height",void 0),ko([(0,t.Property)(null)],i.prototype,"width",void 0),ko([(0,t.Complex)({x:0,y:0},n)],i.prototype,"location",void 0),ko([(0,t.Property)("Auto")],i.prototype,"position",void 0),ko([(0,t.Property)("Series")],i.prototype,"mode",void 0),ko([(0,t.Property)(8)],i.prototype,"padding",void 0),ko([(0,t.Property)(null)],i.prototype,"itemPadding",void 0),ko([(0,t.Property)("Center")],i.prototype,"alignment",void 0),ko([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),ko([(0,t.Property)(10)],i.prototype,"shapeHeight",void 0),ko([(0,t.Property)(10)],i.prototype,"shapeWidth",void 0),ko([(0,t.Complex)({},u)],i.prototype,"border",void 0),ko([(0,t.Complex)({left:0,right:0,top:0,bottom:0},m)],i.prototype,"margin",void 0),ko([(0,t.Complex)({left:0,right:0,top:0,bottom:0},S)],i.prototype,"containerPadding",void 0),ko([(0,t.Property)(8)],i.prototype,"shapePadding",void 0),ko([(0,t.Property)("transparent")],i.prototype,"background",void 0),ko([(0,t.Property)(1)],i.prototype,"opacity",void 0),ko([(0,t.Property)(!0)],i.prototype,"toggleVisibility",void 0),ko([(0,t.Property)(!1)],i.prototype,"enableHighlight",void 0),ko([(0,t.Property)(null)],i.prototype,"description",void 0),ko([(0,t.Property)(3)],i.prototype,"tabIndex",void 0),ko([(0,t.Property)(null)],i.prototype,"title",void 0),ko([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"titleStyle",void 0),ko([(0,t.Property)("Top")],i.prototype,"titlePosition",void 0),ko([(0,t.Property)("Normal")],i.prototype,"textWrap",void 0),ko([(0,t.Property)("Ellipsis")],i.prototype,"textOverflow",void 0),ko([(0,t.Property)(100)],i.prototype,"maximumTitleWidth",void 0),ko([(0,t.Property)(null)],i.prototype,"maximumLabelWidth",void 0),ko([(0,t.Property)(!0)],i.prototype,"enablePages",void 0),ko([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),ko([(0,t.Property)(!1)],i.prototype,"reverse",void 0),ko([(0,t.Property)("Auto")],i.prototype,"layout",void 0),ko([(0,t.Property)(null)],i.prototype,"maximumColumns",void 0),ko([(0,t.Property)(!1)],i.prototype,"fixedWidth",void 0),ko([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),To=function(){function e(e){this.maxItemHeight=0,this.rowHeights=[],this.pageHeights=[],this.columnHeights=[],this.pageXCollections=[],this.chartRowCount=1,this.legendTitleCollections=[],this.legendRegions=[],this.pagingRegions=[],this.chart=e,this.legend=e.legendSettings,this.legendID=e.element.id+"_chart_legend",this.isChartControl="chart"===e.getModuleName()||"chart3d"===e.getModuleName(),this.isAccChartControl="accumulationchart"===e.getModuleName()||"circularchart3d"===e.getModuleName(),this.isBulletChartControl="bulletChart"===e.getModuleName(),this.isStockChartControl="stockChart"===e.getModuleName(),this.bulletChart=this.chart,this.fivePixel=5,this.rowCount=0,this.pageButtonSize=8,this.maxColumns=0,this.maxWidth=0,this.currentPage=1,this.backwardArrowOpacity=0,this.forwardArrowOpacity=1,this.arrowWidth=2*(this.fivePixel+this.pageButtonSize+this.fivePixel),this.arrowHeight=this.arrowWidth,this.isTop=!1,this.isTitle=!1,this.currentPageNumber=1}return e.prototype.calculateLegendBounds=function(e,t,i,o,r){var n=this.legend,a=this.isBulletChartControl||("accumulationchart"===this.chart.getModuleName()||"chart"===this.chart.getModuleName())&&("Auto"!==this.legend.layout||this.legend.maximumColumns>0)?"40%":"20%";this.getPosition(n.position,t),this.legendBounds=new R.Rect(e.x,e.y,0,0),this.isVertical="Left"===this.position||"Right"===this.position,this.itemPadding=this.legend.itemPadding?this.legend.itemPadding:this.isVertical?8:20,this.isVertical?(this.legendBounds.height=Li(n.height,t.height-(e.y-this.chart.margin.top))||e.height,this.legendBounds.width=Li(n.width||a,t.width)):(this.legendBounds.width=Li(n.width,t.width)||e.width,this.legendBounds.height=Li(n.height||a,t.height)),"chart3d"===this.chart.getModuleName()?this.library.get3DLegendBounds(t,this.legendBounds,n):this.library.getLegendBounds(t,this.legendBounds,n),this.isBulletChartControl||(this.legendBounds.width+=this.legend.containerPadding.left+this.legend.containerPadding.right,this.legendBounds.height+=this.legend.containerPadding.top+this.legend.containerPadding.bottom),this.getLocation(this.position,n.alignment,this.legendBounds,e,t,i,o,r)},e.prototype.getPosition=function(e,t){var i=this.chart,o=this.chart;this.isChartControl||this.isBulletChartControl||this.isStockChartControl?this.position="Auto"!==e?e:"Bottom":("Auto"===e&&((i||o).visibleSeries&&"Funnel"===(i||o).visibleSeries[0].type||"Pyramid"===(i||o).visibleSeries[0].type)&&(e="Top"),this.position="Auto"!==e?e:t.width>t.height?"Right":"Bottom")},e.prototype.setBounds=function(e,t,i,o){var r=i.title&&"Top"===i.titlePosition?this.legendTitleSize.height+this.fivePixel:0;this.isVertical&&this.isPaging&&!i.enablePages&&!this.isBulletChartControl&&(r=i.title&&"Top"===i.titlePosition?this.legendTitleSize.height+this.fivePixel:0,r+=this.pageButtonSize+this.fivePixel),e=Math.min(e,o.width),t=Math.min(t,o.height),"Gradient"===i.mode?(o.width=i.width?o.width:this.isVertical?e:.75*o.width,o.height=i.height?o.height:this.isVertical?.75*o.height:t):(o.width=i.width?o.width:e,o.height=i.height?o.height:t),this.isBulletChartControl||this.isTop&&"None"!==i.titleStyle.textOverflow&&(this.calculateLegendTitle(i,o),o.height+="Wrap"===i.titleStyle.textOverflow&&this.legendTitleCollections.length>1?this.legendTitleSize.height-this.legendTitleSize.height/this.legendTitleCollections.length:0),this.rowCount=Math.max(1,Math.ceil((o.height-i.padding-r)/(this.maxItemHeight+i.padding)))},e.prototype.getLocation=function(e,t,i,o,r,n,a,l){var s=this.legend.border.width,h=this.isBulletChartControl,c=this.bulletChart,d="Inside"===c.labelPosition,p="Inside"===c.tickPosition,u="Vertical"===c.orientation,g=h&&""!==c.categoryField?n.width+this.chart.border.width+3*s:0,m=this.chart.margin.bottom,y=i.height+s+this.legend.margin.top+this.legend.margin.bottom,f=i.width+s+this.legend.margin.left+this.legend.margin.right;if("Bottom"===e)i.x=this.alignLegend(i.x,r.width,i.width,t),i.y=!a||i.height!==a.height&&"Pie"===this.chart.series[0].type?o.y+(o.height-y)+s+this.legend.margin.top:a.y,i.y+=!h||c.opposedPosition||d||p||u?u&&""!==c.categoryField?n.height+2*s:0:c.majorTickLines.height+m+this.legend.border.width+2*s,l&&i.height===a.height||st(o,new Xi(0,0,0,y));else if("Top"===e){var v=void 0;this.isChartControl&&(v=(0,R.measureText)("100",this.chart.verticalAxes[0].labelStyle,this.chart.themeStyle.legendLabelFont)),i.x=this.alignLegend(i.x,r.width,i.width,t),i.y=!a||i.height!==a.height&&"Pie"===this.chart.series[0].type?o.y+s+this.legend.margin.top:a.y,i.y-=!h||!c.opposedPosition||d||p||u?0:c.majorTickLines.height+this.chart.margin.top,y-=h?2*-s:this.isChartControl?2*-s-v.height/2:0,l&&i.height===a.height||st(o,new Xi(0,0,y,0))}else"Right"===e?(i.x=!a||i.width!==a.width&&"Pie"===this.chart.series[0].type?o.x+(o.width-i.width)-this.legend.margin.right:a.x,i.y=o.y+this.alignLegend(0,r.height-(o.y+m),i.height,t),f+=h&&c.opposedPosition&&!d&&!p&&u?this.chart.margin.left+this.chart.margin.right+c.majorTickLines.height:0,l&&i.width===a.width||st(o,new Xi(0,f,0,0))):"Left"===e?(i.x=!a||i.width!==a.width&&"Pie"===this.chart.series[0].type?i.x+this.legend.margin.left:a.x,i.y=o.y+this.alignLegend(0,r.height-(o.y+m),i.height,t),f+=!h||c.opposedPosition||d||p||!u?"Vertical"!==c.orientation&&""!==c.categoryField?g:0:i.x-this.chart.margin.left+s+c.majorTickLines.height,l&&i.width===a.width||st(o,new Xi(f,0,0,0))):(i.x=this.legend.location.x,i.y=this.legend.location.y,st(o,new Xi(0,0,0,0)))},e.prototype.alignLegend=function(e,t,i,o){switch(o){case"Far":e=t-i-e;break;case"Center":e=(t-i)/2}return e},e.prototype.renderLegend=function(e,t,i,o,r){var n,a,l,s=0,h=(new R.Rect(0,0,0,0),new R.Rect(0,0,0,0));r&&(a=qt(this.legendID+"_element").getAttribute("x"),l=qt(this.legendID+"_element").getAttribute("y"));var c=this.findFirstLegendPosition(this.legendCollections),d=t.padding;this.itemPadding=this.isBulletChartControl?t.padding:this.itemPadding;var p=t.enablePages,u=t.titlePosition,g=this.isPaging&&!t.enablePages&&this.isVertical&&("accumulationchart"!==e.getModuleName()&&"chart"!==e.getModuleName()||"Auto"===this.legend.layout)?this.pageButtonSize:0,m=e.renderer.createGroup({id:this.legendID+"_g"}),y=this.createLegendElements(e,i,m,t,this.legendID,o);this.legendRegions=[],this.chartRowCount=1;var f=0;if(n=this.isTitle&&(this.isTop||this.isVertical)?this.legendTitleSize.height:0,this.isChartControl||this.isAccChartControl&&(!this.isVertical||t.layout&&"Auto"!==t.layout)){for(var v=1,b=this.rowHeights[0]+(this.isVertical||this.rowHeights.length>1&&this.legend.itemPadding&&"chart"===this.chart.getModuleName()?this.itemPadding:d),x=1;x<this.rowHeights.length;x++)b+this.rowHeights[x]+((this.isVertical||this.rowHeights.length>1&&"chart"===this.chart.getModuleName())&&this.legend.itemPadding?this.itemPadding:d)>this.legendBounds.height-this.pageButtonSize-this.maxItemHeight/2-this.legend.containerPadding.top-this.legend.containerPadding.bottom&&(this.pageHeights[v-1]=b+n,v++,b=0),b+=this.rowHeights[x]+(this.isVertical||this.rowHeights.length>1&&this.legend.itemPadding&&"chart"===this.chart.getModuleName()?this.itemPadding:d);this.pageHeights[v-1]=b+n,this.totalPages=v}for(x=0;x<this.legendCollections.length;x++)if(""!==this.legendCollections[x].text){f=Math.max(this.legendCollections[x].textSize.height,f);break}if(this.isChartControl||this.isAccChartControl||(this.maxItemHeight=Math.max(f,t.shapeHeight)),p||!this.isPaging||this.isVertical?this.isTitle&&!this.isVertical&&(s=u===(this.isRtlEnable?"Right":"Left")?this.fivePixel+this.legendTitleSize.width:0):(s=this.isTitle&&"Left"===u?this.legendTitleSize.width:0,s+=this.pageButtonSize+2*this.fivePixel),"Gradient"===e.legendSettings.mode&&this.legendCollections.length>1)this.getLinearLegend(i,e,t,y),this.totalPages=1;else if(c!==this.legendCollections.length){var S=void 0,C=0,F=this.legendCollections[c],w=this.isBulletChartControl?d:s+d+t.shapeWidth/2+t.containerPadding.left,L=this.isBulletChartControl&&!this.isRtlEnable?i.x+s+d+t.shapeWidth/2:this.isRtlEnable?i.x+("accumulationchart"!==this.chart.getModuleName()||!this.isVertical||"Auto"!==t.layout||t.maximumColumns>0?i.width:this.maxWidth)-w:i.x+w,P=new ji(L,this.isBulletChartControl?i.y+n+g+d+this.maxItemHeight/2:i.y+n+g+d+this.maxItemHeight/2+t.containerPadding.top),A=e.isRtlEnabled||e.enableRtl?"end":"start",M=new R.TextOption("",P.x,P.y,A),D=t.shapePadding+this.itemPadding+t.shapeWidth;this.totalPages=this.totalPages=this.isAccChartControl||this.isChartControl||this.isBulletChartControl||this.isStockChartControl?this.totalPages:0,this.pageXCollections=[],this.legendCollections[c].location=P;var k=void 0;if(!t.enablePages&&this.isPaging){var T=P.x-this.fivePixel,E=P.y-this.fivePixel,_=this.isTitle&&!this.isVertical&&"Left"===u?this.legendTitleSize.width+this.fivePixel:0,I=this.isVertical?this.pageButtonSize+Math.abs(E-i.y):0,O=this.isTitle&&!this.isVertical&&"Right"===u?this.legendTitleSize.width+this.fivePixel:0;O+=this.isVertical?0:this.fivePixel+this.pageButtonSize+this.fivePixel,h=new R.Rect(T,E,i.width-O-_,i.height-I)}else h=i;var z=void 0;for(x=0;x<this.legendCollections.length;x++)z=this.legendCollections[x],k=this.isReverse?this.legendCollections.length-1-C:C,"accumulationchart"===this.chart.getModuleName()&&-1===this.chart.accumulationLegendModule.legendRenderArgFill.indexOf(x)&&(z.fill=(this.chart||this.chart||this.chart||this.chart).visibleSeries[0].points[z.pointIndex].color),"stockChart"===this.chart.getModuleName()&&(z.type=this.chart.visibleSeries[C].type),this.accessbilityText=this.isBulletChartControl?"Legend of bullet chart"+z.text:"Click to show or hide the "+z.text+" series",z.render&&z.text&&""!==z.text&&(!(S=e.renderer.createGroup({id:this.legendID+this.generateId(z,"_g_",k)}))||"chart"!==this.chart.getModuleName()&&"accumulationchart"!==this.chart.getModuleName()?S&&(S.setAttribute("tabindex",0===x?"0":""),S.style.outline="none",S.setAttribute("aria-label",t.description||z.text+" series is "+(z.visible?"showing, press enter to hide the ":"hidden, press enter to show the ")+z.text+" series"),S.setAttribute("role","button"),S.setAttribute("aria-pressed",z.visible?"true":"false")):(S.setAttribute("tabindex",0===x&&t.accessibility.focusable?String(t.accessibility.tabIndex):""),S.style.outline="none",S.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:z.text+" series is "+(z.visible?"showing, press enter to hide the ":"hidden, press enter to show the ")+z.text+" series"),S.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"button"),S.setAttribute("aria-pressed",z.visible?"true":"false")),this.library.getRenderPoint(z,P,D,F,h,C,c),this.renderSymbol(z,S,k),this.renderText(e,z,S,M,C,k),S&&(S.style.cssText="pointer-events: bounding-box; cursor: "+(!t.toggleVisibility&&("None"===e.selectionMode||"None"===e.highlightMode||"None"===e.selectionMode)||this.isBulletChartControl?"auto":"pointer")),y&&y.appendChild(S),F=z),C++;this.totalPages=this.isPaging&&!this.isBulletChartControl&&!this.legend.enablePages&&!this.isVertical&&this.totalPages>this.chartRowCount?this.chartRowCount:this.totalPages,this.currentPage=this.currentPage>1&&this.currentPage>this.totalPages?this.totalPages:this.currentPage,this.isPaging&&this.totalPages>1?this.renderPagingElements(e,i,M,m):this.totalPages=1}if(r){var B="translate("+(this.rowCount>1?0:Math.round(Number(a))-Math.round(this.legendBounds.x))+" \n              + ',' + "+(Math.round(Number(l))-Math.round(this.legendBounds.y))+")",N="translate("+(Math.round(Number(a))-Math.round(this.legendBounds.x))+", "+(Math.round(Number(l))-Math.round(this.legendBounds.y))+")";ni(e.enableCanvas,e.svgObject,m,o,!0,"x","y",void 0,void 0,void 0,void 0,void 0,e.duration,void 0,void 0,new ji(0,0),"Top"===this.position||"Bottom"===this.position?B:N)}else ni(e.enableCanvas,e.svgObject,m,o)},e.prototype.getLinearLegend=function(e,t,i,o){var r="http://www.w3.org/2000/svg",n=this.legendCollections[0],a=this.legendCollections[1],l=this.chart.renderer.createDefs(),s=document.createElementNS(r,"linearGradient"),h=[],c=[];i.title&&(this.isVertical?(e.y+=this.legendTitleSize.height,e.height-=this.legendTitleSize.height):"Left"===i.titlePosition?(e.x+=this.legendTitleSize.width,e.width-=this.legendTitleSize.width):"Right"===i.titlePosition?e.width-=this.legendTitleSize.width:"Top"===i.titlePosition&&(e.y+=this.legendTitleSize.height,e.height-=this.legendTitleSize.height));for(var d=0,p=this.chart.rangeColorSettings;d<p.length;d++){var u=p[d];if(c.indexOf(u.start)<0&&c.push(u.start),u.colors.length>2){var g=u.end-u.start,m=u.colors.length-1;if(g>0){g/=m;for(var y=1;y<m;y++){var f=u.start+g*y;c.push(f)}}else for(y=1;y<m;y++)c.push(u.start)}c.indexOf(u.end)<0&&c.push(u.end);for(var v=0,b=u.colors;v<b.length;v++){var x=b[v];h.indexOf(x)<0&&h.push(x)}u.colors.length>0&&u.colors.length<2&&h.push(u.colors[0])}var S=this.isRtlEnable&&!this.isVertical?"100%":"0%",C=this.isVertical||this.isRtlEnable?"0%":"100%",F=this.isVertical?"100%":"0%";s.setAttribute("id",this.generateId(n,"linearGradient",0)),s.setAttribute("x1",S),s.setAttribute("y1","0%"),s.setAttribute("x2",C),s.setAttribute("y2",F);for(var w=c[c.length-1]-c[0],L=0;L<h.length;L++){var P=c[L]-c[0];P/=w;var A=document.createElementNS(r,"stop");A.setAttribute("offset",P.toString()),A.setAttribute("stop-color",h[L]),A.setAttribute("stop-opacity",1..toString()),s.appendChild(A)}var M,D,k,T,E=n.text.toString(),_=a.text.toString(),I=(0,R.measureText)(E,i.textStyle,this.chart.themeStyle.legendLabelFont),O=(0,R.measureText)(_,i.textStyle,this.chart.themeStyle.legendLabelFont),z=I.width>O.width?I.width:O.width,B=I.height>O.height?I.height:O.height,N=2*z+4*i.padding,V=e.width,H=e.height,W=e.x+z+2*i.padding,j=e.y+i.padding;if(this.isVertical){if(N=2*B+4*i.padding,V=e.width-2*i.padding,H=e.height-N,W=e.x+i.padding,j=e.y+B+2*i.padding,M=e.y+i.padding+B,D=j+H+B,T=k=e.x+.5*e.width-.5*z,V>30){var U=V-30;V=30,W+=U/2}}else if(V=e.width-N,H=e.height-2*i.padding,k=e.x+(this.isRtlEnable?V+3*i.padding+z:i.padding+(z-I.width)),T=e.x+(this.isRtlEnable?i.padding+(z-O.width):V+3*i.padding+z),D=M=e.y+.5*e.height+.25*B,H>30){var X=H-30;H=30,j+=X/2}var G=t.enableRtl?"end":"",Y=new R.TextOption("",k,M,G,E);Y.id=this.legendID+this.generateId(n,"_text_",1);var Z=n.visible?i.textStyle.color||t.themeStyle.legendLabelFont.color:"#D3D3D3",q=!this.isStockChartControl&&this.chart.enableCanvas;Di(t.renderer,Y,i.textStyle,Z,o,!1,!1,!1,!1,null,this.currentPageNumber&&q?new R.Rect(0,-this.translatePage(q,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,0,null,null,null,this.chart.themeStyle.legendLabelFont),(Y=new R.TextOption("",T,D,G,_)).id=this.legendID+this.generateId(n,"_text_",2),Di(t.renderer,Y,i.textStyle,Z,o,!1,!1,!1,!1,null,this.currentPageNumber&&q?new R.Rect(0,-this.translatePage(q,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,0,null,null,null,this.chart.themeStyle.legendLabelFont);var Q=t.renderer.drawRectangle({width:V,height:H,x:W,y:j,fill:"url(#"+this.generateId(n,"linearGradient",0)+")"});l.appendChild(s),o.appendChild(l),o.appendChild(Q)},e.prototype.findFirstLegendPosition=function(e){for(var t=0,i=0,o=e;i<o.length;i++){var r=o[i];if(r.render&&r.text&&""!==r.text)break;t++}return t},e.prototype.calculateLegendTitle=function(e,t){if(e.title){this.isTop="Top"===e.titlePosition;var i="Trim"===e.titleStyle.textOverflow?2*e.padding:0;this.isTop||this.isVertical?this.legendTitleCollections=Ti(e.title,e.titleStyle,t.width-i,this.chart.enableRtl,this.chart.themeStyle.legendTitleFont):this.legendTitleCollections[0]=Fi(e.maximumTitleWidth,e.title,e.titleStyle,this.chart.enableRtl,this.chart.themeStyle.legendTitleFont);var o=this.isTop?e.title:this.legendTitleCollections[0];this.legendTitleSize=(0,R.measureText)(o,e.titleStyle,this.chart.themeStyle.legendTitleFont),this.legendTitleSize.height*=this.legendTitleCollections.length}else this.legendTitleSize=new R.Size(0,0)},e.prototype.renderLegendTitle=function(e,t,i,o){var r=t.padding,n=t.titleStyle.textAlignment;this.isTop="Top"===t.titlePosition;var a=to(t.titleStyle.textAlignment,e.enableRtl),l=Ei(i,t.titleStyle);a=this.isTop||this.isVertical?a:e.enableRtl?"end":"",l="Near"===n?l+r:"Far"===n?l-r:l,l=this.isTop||this.isVertical?l:i.x+("Left"===t.titlePosition?5:i.width-this.legendTitleSize.width-5);var s=i.height/2+this.legendTitleSize.height/4,h=i.y+(this.isTop||this.isVertical?this.legendTitleSize.height/this.legendTitleCollections.length:s),c=new R.TextOption(this.legendID+"_title",l,h,a,this.legendTitleCollections);Di(e.renderer,c,t.titleStyle,t.titleStyle.color||this.chart.themeStyle.legendTitleFont.color,o,null,null,null,null,null,null,0,null,null,null,this.chart.themeStyle.legendTitleFont)},e.prototype.createLegendElements=function(e,t,i,o,r,n){var a=o.padding,l=new Ni(r+"_element",o.background,o.border,o.opacity,t,0,0,"",this.legend.border.dashArray),s=e.renderer.createGroup({id:r+"_collections"}),h=!this.isStockChartControl&&e.enableCanvas,c=e.renderer.createClipPath({id:r+"_clipPath"});return l.width=!this.isRtlEnable||"accumulationchart"!==this.chart.getModuleName()||!this.isVertical||"Auto"!==o.layout||o.maximumColumns>0?t.width:this.maxWidth,i?i.appendChild(e.renderer.drawRectangle(l)):e.renderer.drawRectangle(l),o.title&&this.renderLegendTitle(e,o,t,i),h||i.appendChild(s),this.legendTranslateGroup=e.renderer.createGroup({id:r+"_translate_g"}),h||s.appendChild(this.legendTranslateGroup),l.y+=(this.isTop?this.legendTitleSize.height:0)+(this.isBulletChartControl?0:o.containerPadding.top),l.height-=(!this.isTop||!this.isChartControl&&this.isVertical&&"Auto"===o.layout?0:this.legendTitleSize.height)+(this.isBulletChartControl?0:o.containerPadding.top),l.id+="_clipPath_rect",l.width=this.isChartControl||"bulletChart"===e.getModuleName()||this.isStockChartControl||"accumulationchart"===e.getModuleName()&&("Auto"!==o.layout||o.maximumColumns>0)||!this.isVertical?t.width:this.maxWidth-a+o.containerPadding.left+o.containerPadding.right,l.width="Right"===e.legendSettings.titlePosition?l.width-this.legendTitleSize.width-a:l.width,h?this.pagingClipRect=l:(this.clipRect=e.renderer.drawRectangle(l),c.appendChild(this.clipRect)),ni(h,e.svgObject,c,n),h||(s.style.cssText="clip-path:url(#"+c.id+")"),this.legendTranslateGroup},e.prototype.renderSymbol=function(e,t,i){var o,r,n=this.isBulletChartControl?this.chart:null,a=e.visible?e.fill:"#D3D3D3",l=("chart"===this.chart.getModuleName()||"stockChart"===this.chart.getModuleName())&&("SeriesType"===e.shape&&e.type.toLowerCase().indexOf("line")>-1&&-1===e.type.toLowerCase().indexOf("area")||"HorizontalLine"===e.shape||"VerticalLine"===e.shape||"Cross"===e.shape),s=!("chart"!==this.chart.getModuleName()&&"stockChart"!==this.chart.getModuleName()||"Scatter"!==e.type&&"Bubble"!==e.type),h=!this.isStockChartControl&&this.chart.enableCanvas,c="SeriesType"===e.shape?e.type:e.shape,d=l?"Series"===this.legend.mode?this.chart.visibleSeries[i].width:this.chart.visibleSeries[0].width:this.isBulletChartControl&&"Multiply"===e.shape?4:1;if(c="Scatter"===c?e.markerShape:c,s&&i<this.chart.visibleSeries.length){var p=this.chart.visibleSeries[i],u=p.border,g="HorizontalLine"===c||"VerticalLine"===c;o=g?a:u.color?u.color:a,d=g?p.width:u.width?u.width:1}for(var m=new R.PathOption(this.legendID+this.generateId(e,"_shape_",i),a,d,s?o:a,this.legend.opacity,e.dashArray,""),y=(0,R.measureText)(e.text,this.legend.textStyle,this.chart.themeStyle.legendLabelFont),f=0,v=0,b=e.textCollection;v<b.length;v++){var x=b[v],S=(0,R.measureText)(x,this.legend.textStyle,this.chart.themeStyle.legendLabelFont);S.width>f&&(f=S.width)}var C=this.legend.isInversed&&!this.isRtlEnable?e.location.x+("Wrap"===this.legend.textWrap&&e.textCollection.length>1?f:y.width)+this.legend.shapePadding:e.location.x,F=e.location.y;h?(r=-this.translatePage(h,null,this.currentPageNumber-1,this.currentPageNumber),Xt({x:C,y:F},c,new R.Size(this.legend.shapeWidth,this.legend.shapeHeight),"",m,this.accessbilityText,this.chart.renderer,this.currentPageNumber?new R.Rect(0,r,0,0):null,this.isBulletChartControl,n),this.legendRegions.push({rect:new R.Rect(e.location.x-this.legend.shapeWidth,e.location.y,this.legend.shapeWidth+this.legend.shapePadding,this.legend.shapeHeight+r),index:i})):t.appendChild(Xt({x:C,y:F},c,new R.Size(this.legend.shapeWidth,this.legend.shapeHeight),e.url,m,this.accessbilityText,this.chart.renderer,null,this.isBulletChartControl,n)),("Line"===c&&e.markerVisibility&&"Image"!==e.markerShape||"Doughnut"===e.type&&"Doughnut"===c)&&(m.id=this.legendID+this.generateId(e,"_shape_marker_",i),c="Doughnut"===e.type?"Circle":e.markerShape,m.fill="Doughnut"===e.type?"#FFFFFF":m.fill,h?Xt({x:C,y:F},c,new R.Size(this.legend.shapeWidth/2,this.legend.shapeHeight/2),"",m,this.accessbilityText,this.chart.renderer,this.currentPageNumber?new R.Rect(0,-this.translatePage(h,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,this.isBulletChartControl,n):t.appendChild(Xt({x:C,y:F},c,new R.Size(this.legend.shapeWidth/2,this.legend.shapeHeight/2),"",m,this.accessbilityText,null,null,this.isBulletChartControl,n)))},e.prototype.renderText=function(e,t,i,o,r,n){var a=this,l=e.legendSettings,s=t.visible?l.textStyle.color||e.themeStyle.legendLabelFont.color:"#D3D3D3",h=!this.isStockChartControl&&this.chart.enableCanvas;if(o.id=this.legendID+this.generateId(t,"_text_",n),o.text=t.textCollection.length>0?t.textCollection:t.text,l.isInversed&&!this.isRtlEnable)o.x=t.location.x-l.shapeWidth/2;else if(this.isRtlEnable){var c=t.textCollection.length>1?Math.max.apply(Math,t.textCollection.map(function(e){return(0,R.measureText)(e,l.textStyle,a.chart.themeStyle.legendLabelFont).width})):(0,R.measureText)(t.text,l.textStyle,this.chart.themeStyle.legendLabelFont).width;o.x="bulletChart"===this.chart.getModuleName()?t.location.x-l.shapeWidth:t.location.x-(c+l.shapeWidth/2+l.shapePadding)}else o.x=t.location.x+l.shapeWidth/2+l.shapePadding;if(o.y=t.location.y+this.maxItemHeight/4,Di(e.renderer,o,l.textStyle,s,i,!1,!1,!1,!1,null,this.currentPageNumber&&h?new R.Rect(0,-this.translatePage(h,null,this.currentPageNumber-1,this.currentPageNumber),0,0):null,0,null,null,null,this.chart.themeStyle.legendLabelFont),h){for(var d=(0,R.measureText)(t.text,l.textStyle,this.chart.themeStyle.legendLabelFont),p=void 0,u=0;u<this.legendRegions.length;u++)if(this.legendRegions[u].index===r){p=this.legendRegions[u];break}p.rect.y=o.y<p.rect.y?o.y:p.rect.y,p.rect.width+=d.width,p.rect.height=d.height,p.rect.y-=.5*d.height,p.rect.x-=this.isRtlEnable?p.rect.width:0}},e.prototype.renderPagingElements=function(e,i,o,r){var n=e.renderer.createGroup({id:this.legendID+"_navigation"}),a=!this.isStockChartControl&&e.enableCanvas,l=this.isBulletChartControl?0:this.legendTitleSize.height,s=this.chart.theme.indexOf("Dark")>-1||this.chart.theme.indexOf("Contrast")>-1?"#FFFFFF":"#545454",h=e.legendSettings,c=this.legendID+(this.isRtlEnable?"_pagedown":"_pageup"),d=this.legendID+(this.isRtlEnable?"_pageup":"_pagedown"),p=new R.PathOption(c,"transparent",5,s,1,"",""),u=e.availableSize.width<110||e.availableSize.height<190?4:this.pageButtonSize,g=(0,t.extend)({},(0,t.getValue)("properties",h.textStyle),null,!0);g.size=e.availableSize.width<110||e.availableSize.height<190&&!this.isBulletChartControl&&"accumulationchart"===this.chart.getModuleName()?"8px":h.textStyle.size;var m,y=h.enablePages||!this.isPaging||this.isVertical||this.isBulletChartControl?this.rowCount-1:1,f=this.isTitle&&"Left"===h.titlePosition?this.legendTitleSize.width:0;this.pagingRegions=[],this.backwardArrowOpacity=1!==this.currentPage?1:0,this.forwardArrowOpacity=this.currentPage===this.totalPages?0:1,a||r.appendChild(n),this.isChartControl||this.isAccChartControl||(this.isBulletChartControl||this.isStockChartControl||!this.isVertical?this.totalPages=Math.ceil(this.totalPages/Math.max(1,this.rowCount-1)):this.totalPages=Math.ceil(this.totalPages/this.maxColumns)),n&&(n.style.cursor="pointer"),!this.isChartControl&&!this.isAccChartControl||!h.enablePages&&this.isPaging?this.clipPathHeight=y*(this.maxItemHeight+h.padding):this.clipPathHeight=this.pageHeights[0]-(this.isTitle&&this.isTop&&(this.isChartControl||!this.isVertical||"Auto"!==h.layout)?this.legendTitleSize.height:0)-h.containerPadding.top-h.containerPadding.bottom,a?(this.pagingClipRect.height=this.legendBounds.height-this.clipPathHeight-(this.pagingClipRect.y-this.legendBounds.y)-h.border.width,this.pagingClipRect.y=this.pagingClipRect.y+this.clipPathHeight,this.pagingClipRect.x+=h.border.width,this.pagingClipRect.width-=h.border.width+h.border.width/2,this.chart.renderer.clearRect(new R.Rect(this.pagingClipRect.x,this.pagingClipRect.y,this.pagingClipRect.width,this.pagingClipRect.height))):this.clipRect.setAttribute("height",this.clipPathHeight.toString());var v=i.x+u/2,b=i.y+this.clipPathHeight+(l+i.height-this.clipPathHeight)/2;!this.isPaging||h.enablePages||this.isVertical||this.isBulletChartControl||(v=i.x+this.pageButtonSize+f,b=h.title&&this.isTop?i.y+8+l+u/1+.5:i.y+8+u+.5);var x=(0,R.measureText)(this.totalPages+"/"+this.totalPages,g,this.chart.themeStyle.legendLabelFont),S=this.isRtlEnable?h.border.width+u/2:i.width-(2*(u+8)+8+x.width);a?Xt({x:v,y:b},"LeftArrow",new R.Size(u,u),"",p,0,this.chart.renderer,new R.Rect(S,0,0,0)):!this.isVertical||h.enablePages||this.isBulletChartControl?(p.opacity=this.isBulletChartControl?p.opacity:h.enablePages?1:this.isRtlEnable?this.forwardArrowOpacity:this.backwardArrowOpacity,n.appendChild(Xt({x:v,y:b},"LeftArrow",new R.Size(u,u),"",p))):(v=i.x+i.width/2,b=i.y+u/2+4+l,p.opacity=this.backwardArrowOpacity,n.appendChild(Xt({x:v,y:b},"UpArrow",new R.Size(u,u),"",p))),this.pagingRegions.push(new R.Rect(this.isRtlEnable?v:v+i.width-(2*(u+8)+8+x.width)-.5*u,b-.5*u,u,u)),o.x=v+u/2+8,o.y=b+x.height/4,o.id=this.legendID+"_pagenumber",o.text=this.isRtlEnable?this.totalPages+"/1":"1/"+this.totalPages;var C=this.chart.theme.indexOf("Dark")>-1||this.chart.theme.indexOf("Contrast")>-1?"#FFFFFF":h.textStyle.color||"Tailwind3"===this.chart.theme?"#111827":"Tailwind3Dark"===this.chart.theme?"#FFFFFF":this.chart.themeStyle.legendLabelFont.color;a&&this.totalNoOfPages&&(o.text=this.isRtlEnable?this.totalNoOfPages+"/"+this.currentPageNumber:this.currentPageNumber+"/"+this.totalNoOfPages),(h.enablePages||this.isBulletChartControl)&&(m=Di(e.renderer,o,g,C,n,!1,!1,!1,!1,null,new R.Rect(S,0,0,0),0,null,null,null,this.chart.themeStyle.legendLabelFont)),v=o.x+8+u/2+x.width,!this.isPaging||h.enablePages||this.isBulletChartControl||this.isVertical||(v=i.x+i.width-(this.isBulletChartControl?this.fivePixel:0)-this.pageButtonSize-(h.title&&"Right"===h.titlePosition?this.legendTitleSize.width+this.fivePixel:0)),p.id=d,p.opacity=h.enablePages?1:this.isRtlEnable?this.backwardArrowOpacity:this.forwardArrowOpacity,a?Xt({x:v,y:b},"RightArrow",new R.Size(u,u),"",p,0,this.chart.renderer,new R.Rect(S,0,0,0)):!this.isVertical||h.enablePages||this.isBulletChartControl?n.appendChild(Xt({x:v,y:b},"RightArrow",new R.Size(u,u),"",p)):(v=i.x+i.width/2,b=i.y+i.height-u/2,n.appendChild(Xt({x:v,y:b},"DownArrow",new R.Size(u,u),"",p))),this.pagingRegions.push(new R.Rect(this.isRtlEnable?v:v+(i.width-(2*(u+8)+8+x.width)-.5*u),b-.5*u,u,u)),a||!h.enablePages&&!this.isBulletChartControl?(1===this.currentPageNumber&&this.calTotalPage&&(h.enablePages||this.isBulletChartControl)&&(this.totalNoOfPages=this.totalPages,this.calTotalPage=!1),h.enablePages||this.isBulletChartControl||this.translatePage(a,null,this.currentPage-1,this.currentPage,h)):n.setAttribute("transform","translate("+S+", 0)"),(h.enablePages||this.isBulletChartControl)&&this.translatePage(a,m,this.currentPage-1,this.currentPage,h)},e.prototype.getPageHeight=function(e,t){for(var i=0,o=0;o<t;o++)i+=e[o]-(this.isTitle&&this.isTop?this.legendTitleSize.height:0);return i},e.prototype.translatePage=function(e,t,i,o,r){var n=this.isChartControl||this.isAccChartControl?i?this.getPageHeight(this.pageHeights,i):0:this.clipPathHeight*i;e||!this.isChartControl&&!this.isAccChartControl||(this.clipRect.setAttribute("height",(this.pageHeights[i]-(this.isTitle&&this.isTop&&(this.isChartControl||!this.isVertical||"Auto"!==r.layout)?this.legendTitleSize.height:0)-r.containerPadding.top-r.containerPadding.bottom).toString()),this.isAccChartControl&&this.isPaging&&!r.enablePages&&this.isVertical&&("accumulationchart"!==this.chart.getModuleName()||"Auto"===r.layout)&&this.clipRect.setAttribute("height",this.legendBounds.height.toString()));var a="translate(0,-"+n+")";if(!this.isChartControl&&!this.isBulletChartControl&&!this.isStockChartControl&&("accumulationchart"!==this.chart.getModuleName()||"Auto"===r.layout)&&this.isVertical){var l=this.pageXCollections[i*this.maxColumns];n=(n=this.isRtlEnable?this.legendBounds.x+this.maxWidth-l:l-this.legendBounds.x)<0?0:n,a=(this.isRtlEnable?"translate(":"translate(-")+n+",0)"}return this.chart.enableCanvas||this.legendTranslateGroup.setAttribute("transform",a),this.chart.enableCanvas||!r.enablePages&&!this.isBulletChartControl||(t.textContent=o+"/"+this.totalPages),this.currentPage=o,n},e.prototype.changePage=function(e,t){var i=this.chart.legendSettings,o=document.getElementById(this.legendID+"_pageup"),r=document.getElementById(this.legendID+"_pagedown"),n=!this.isStockChartControl&&this.chart.enableCanvas,a=i.enablePages||this.isBulletChartControl?document.getElementById(this.legendID+"_pagenumber"):null,l=i.enablePages||this.isBulletChartControl?parseInt(a.textContent.split("/")[0],10):this.currentPage;t&&l>1?this.translatePage(n,a,l-2,l-1,i):!t&&l<this.totalPages&&this.translatePage(n,a,l,l+1,i),!this.isPaging||i.enablePages||this.isBulletChartControl||(this.currentPage===this.totalPages?this.hideArrow(r):this.showArrow(r),1===this.currentPage?this.hideArrow(o):this.showArrow(o))},e.prototype.hideArrow=function(e){e.setAttribute("opacity","0")},e.prototype.showArrow=function(e){e.setAttribute("opacity","1")},e.prototype.generateId=function(e,t,i){return this.isChartControl||this.isStockChartControl?t+i:t+e.pointIndex},e.prototype.move=function(e){var t=this,i=this.chart.mouseX,o=this.chart.mouseY;if(e.target.textContent.indexOf("...")>-1){var r=e.target.id.split(this.legendID+"_text_");if(2===r.length){var n=parseInt(r[1],10),a=this.chart.element;if(!isNaN(n))if(this.chart.isTouch&&Je(this.chart.element.id+"_EJ2_Legend_Tooltip"),this.isChartControl)tt(this.chart.visibleSeries[n].name,i,o,a.offsetWidth,a.id+"_EJ2_Legend_Tooltip",qt(this.chart.element.id+"_Secondary_Element"),null,null,this.legendBounds);else{var l=this.isReverse?this.legendCollections.length-1-n:n;tt("accumulationchart"===this.chart.getModuleName()?this.legendCollections[l].originalText:this.chart.visibleSeries[0].points[n].x.toString(),i+10,o+10,a.offsetWidth,a.id+"_EJ2_Legend_Tooltip",qt(this.chart.element.id+"_Secondary_Element"))}}}else Je(this.chart.element.id+"_EJ2_Legend_Tooltip");this.chart.isTouch&&(clearTimeout(this.clearTooltip),this.clearTooltip=+setTimeout(function(){Je(t.chart.element.id+"_EJ2_Legend_Tooltip")},1e3))},e}(),Eo=function(e,t,i,o,r,n,a,l,s,h,c,d){this.location={x:0,y:0},this.textCollection=[],this.text=e,this.fill=t,this.shape=i,this.url=n,this.visible=o,this.type=r,this.markerVisibility=l,this.markerShape=a,this.pointIndex=s,this.seriesIndex=h,this.dashArray=c,this.originalText=d},_o=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Io=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Oo=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.clipRect=new R.Rect(0,0,0,0),t}return _o(i,e),i.prototype.setDataSource=function(e,t){e&&(this.xData=e.xData,this.yData=e.yData,this.points=e.points);var i=kt(this.type);this.visible&&t[i+"IndicatorModule"].initDataSource(this,t),t.visibleSeriesCount+=this.targetSeries.length},Io([(0,t.Property)("Sma")],i.prototype,"type",void 0),Io([(0,t.Property)(14)],i.prototype,"period",void 0),Io([(0,t.Property)(14)],i.prototype,"kPeriod",void 0),Io([(0,t.Property)(3)],i.prototype,"dPeriod",void 0),Io([(0,t.Property)(80)],i.prototype,"overBought",void 0),Io([(0,t.Property)(20)],i.prototype,"overSold",void 0),Io([(0,t.Property)(2)],i.prototype,"standardDeviation",void 0),Io([(0,t.Property)("Close")],i.prototype,"field",void 0),Io([(0,t.Property)(12)],i.prototype,"slowPeriod",void 0),Io([(0,t.Property)(26)],i.prototype,"fastPeriod",void 0),Io([(0,t.Property)(!0)],i.prototype,"showZones",void 0),Io([(0,t.Complex)({color:"#ff9933",width:2},r)],i.prototype,"macdLine",void 0),Io([(0,t.Property)("Both")],i.prototype,"macdType",void 0),Io([(0,t.Property)("#2ecd71")],i.prototype,"macdPositiveColor",void 0),Io([(0,t.Property)("#e74c3d")],i.prototype,"macdNegativeColor",void 0),Io([(0,t.Property)("rgba(211,211,211,0.25)")],i.prototype,"bandColor",void 0),Io([(0,t.Complex)({color:"#ffb735",width:1},r)],i.prototype,"upperLine",void 0),Io([(0,t.Complex)({color:"#f2ec2f",width:1},r)],i.prototype,"lowerLine",void 0),Io([(0,t.Complex)({color:"#f2ec2f",width:1},r)],i.prototype,"periodLine",void 0),Io([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),Io([(0,t.Property)("")],i.prototype,"seriesName",void 0),i}(So),zo=function(){function e(e){this.control=e}return e.prototype.print=function(e){this.printWindow=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no"),this.printWindow.moveTo(0,0),this.printWindow.resizeTo(screen.availWidth,screen.availHeight);var i={cancel:!1,htmlContent:this.getHTMLContent(e),name:se};this.control.trigger(se,i),i.cancel||(0,t.print)(i.htmlContent,this.printWindow)},e.prototype.getHTMLContent=function(e){var i=(0,t.createElement)("div");if(e)if(e instanceof Array)for(var o=0;o<e.length;o++){var r=e[o];i.appendChild(qt(r).cloneNode(!0))}else e instanceof Element?i.appendChild(e.cloneNode(!0)):i.appendChild(qt(e).cloneNode(!0));else i.appendChild(this.control.element.cloneNode(!0));for(var n=0;n<i.children.length;n++){for(var a=this.control.theme.indexOf("Dark")>-1||this.control.theme.indexOf("HighContrast")>-1?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)",l=i.children[n],s=0;s<l.children.length;s++){var h=void 0,c=!1;l.id.indexOf("_stockChart_svg")>-1?(h=l.children[0].getAttribute("fill"),c=!0):l.children[s].id.indexOf("_svg")>-1&&(h=l.children[s].children[0].getAttribute("fill"),c=!0),c&&(h="transparent"===h?a:h,l.children[s].children[0].setAttribute("fill",h))}i[n]=l}return i},e}(),Bo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),No=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Vo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Bo(i,e),No([(0,t.Property)()],i.prototype,"start",void 0),No([(0,t.Property)()],i.prototype,"end",void 0),No([(0,t.Property)([])],i.prototype,"colors",void 0),No([(0,t.Property)("")],i.prototype,"label",void 0),i}(t.ChildProperty),Ho=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Bo(i,e),No([(0,t.Property)(!1)],i.prototype,"enable",void 0),No([(0,t.Property)("")],i.prototype,"dashArray",void 0),No([(0,t.Complex)({color:null,width:1},u)],i.prototype,"line",void 0),No([(0,t.Property)("Both")],i.prototype,"lineType",void 0),No([(0,t.Property)("")],i.prototype,"verticalLineColor",void 0),No([(0,t.Property)("")],i.prototype,"horizontalLineColor",void 0),No([(0,t.Property)(1)],i.prototype,"opacity",void 0),No([(0,t.Property)(!1)],i.prototype,"snapToData",void 0),No([(0,t.Property)(!1)],i.prototype,"highlightCategory",void 0),i}(t.ChildProperty),Wo=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Bo(i,e),No([(0,t.Property)(!1)],i.prototype,"enableSelectionZooming",void 0),No([(0,t.Property)(!1)],i.prototype,"enablePinchZooming",void 0),No([(0,t.Property)(!1)],i.prototype,"showToolbar",void 0),No([(0,t.Property)(!1)],i.prototype,"enableMouseWheelZooming",void 0),No([(0,t.Property)(!0)],i.prototype,"enableDeferredZooming",void 0),No([(0,t.Property)("XY")],i.prototype,"mode",void 0),No([(0,t.Property)(["Zoom","ZoomIn","ZoomOut","Pan","Reset"])],i.prototype,"toolbarItems",void 0),No([(0,t.Property)(!1)],i.prototype,"enablePan",void 0),No([(0,t.Property)(!1)],i.prototype,"enableScrollbar",void 0),No([(0,t.Property)(!1)],i.prototype,"enableAnimation",void 0),No([(0,t.Complex)({},Ee)],i.prototype,"toolbarPosition",void 0),No([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),i}(t.ChildProperty),jo=function(e){function i(i,o){var r=e.call(this,i,o)||this;return r.rotatedDataLabelCollections=[],r.animated=!1,r.isPointMouseDown=!1,r.isScrolling=!1,r.checkResize=0,r.visible=0,r.clickCount=0,r.maxPointCount=0,r.singleClickTimer=0,r.chartAreaType="Cartesian",r.isRtlEnabled=!1,r.isCrosshair=!0,r.chartid=57723,r.isLegendClicked=!1,r.isZoomed=!1,r.previousTargetId="",r.currentPointIndex=0,r.currentSeriesIndex=0,r.currentLegendIndex=0,r.previousPageX=null,r.previousPageY=null,r.allowPan=!1,r.pointsRemoved=!1,r.pointsAdded=!1,r.zoomRedraw=!1,(0,t.setValue)("mergePersistData",r.mergePersistChartData,r),r}return Bo(i,e),i.prototype.mergePersistChartData=function(){var e=window.localStorage.getItem(this.getModuleName()+this.element.id);if(!(0,t.isNullOrUndefined)(e)&&""!==e){var i=JSON.parse(e),o=Object.keys(i);this.isProtectedOnChange=!0;for(var r=0,n=o;r<n.length;r++){var a=n[r];"object"!=typeof this[a]||(0,t.isNullOrUndefined)(this[a])?this[a]=i[a]:(0,t.extend)(this[a],i[a])}this.isProtectedOnChange=!1}},i.prototype.isIdHasSpecialCharacter=function(e){var t=/^[A-Za-z ]+$/,i=/^[0-9 ]+$/,o="";if(t.test(e))return e;var r=0;i.test(e[0])&&(o+="\\3"+e[0],r=1);for(var n=r;n<e.length;n++)t.test(e[n])||-1!==e.indexOf("-")||-1!==e.indexOf("_")||-1!==e.indexOf("\\")||i.test(e[n])?o+=e[n]:o+="\\"+e[n];return o},i.prototype.preRender=function(){this.element.id=this.isIdHasSpecialCharacter(this.element.id),this.allowServerDataBinding=!1,this.markerIndex=0,this.unWireEvents(),this.initPrivateVariable(),this.setCulture(),this.wireEvents(),this.stockChart&&(null===this.stockChart.tooltip.header&&(this.tooltip.header=this.stockChart.theme.indexOf("Tailwind3")>-1?"${point.x}":"<b>${point.x}</b>"),null===this.stockChart.tooltip.format&&(this.tooltip.format=this.stockChart.theme.indexOf("Tailwind3")>-1?"High : ${point.high}<br/>Low : ${point.low}<br/>Open : ${point.open}<br/>Close : ${point.close}":"High : <b>${point.high}</b><br/>Low : <b>${point.low}</b><br/>Open : <b>${point.open}</b><br/>Close : <b>${point.close}</b>")),this.element.setAttribute("dir",this.enableRtl?"rtl":"ltr")},i.prototype.initPrivateVariable=function(){if(this.animateSeries=!0,this.delayRedraw=!1,this.dragY=null,this.horizontalAxes=[],this.verticalAxes=[],this.refreshAxis(),this.refreshDefinition(this.rows),this.refreshDefinition(this.columns),this.tooltipModule&&(this.tooltipModule.previousPoints=[]),this.element.setAttribute("role",this.accessibility.accessibilityRole?this.accessibility.accessibilityRole:"region"),this.element.setAttribute("tabindex",this.accessibility.focusable?String(this.accessibility.tabIndex):"-1"),this.element.style.outline="none",this.element.setAttribute("aria-label",this.accessibility.accessibilityDescription?this.accessibility.accessibilityDescription:this.title+". Syncfusion interactive chart."),this.element.classList.contains("e-chart-focused")||this.element.setAttribute("class",this.element.getAttribute("class")+" e-chart-focused"),""===this.element.id){for(var e=document.getElementsByClassName("e-chart").length,t="chart_"+this.chartid+"_"+e;document.getElementById(t);)e++,t="chart_"+this.chartid+"_"+e;this.element.id="chart_"+this.chartid+"_"+e}this.svgId=this.stockChart?this.stockChart.element.id+"_stockChart_chart":this.element.id+(this.enableCanvas?"_canvas":"_svg")},i.prototype.render=function(){var e=this;this.svgRenderer=new R.SvgRenderer(this.element.id);var t={chart:this,theme:this.theme,name:O,cancel:!1};this.stockChart?(this.isRtlEnabled="rtl"===window.getComputedStyle(document.querySelector("body")).direction,this.cartesianChartRendering(t)):this.trigger(O,t,function(){t.cancel||e.cartesianChartRendering(t)}),this.applyZoomkit()},i.prototype.cartesianChartRendering=function(e){this.setTheme(),this.createChartSvg(),this.markerRender=new Mo(this),this.calculateAreaType(),this.calculateVisibleSeries(),this.initTechnicalIndicators(),this.initTrendLines(),this.calculateVisibleAxis(),this.processData(),this.renderComplete(),this.mouseMoveEvent(),this.allowServerDataBinding=!0},i.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},i.prototype.animate=function(e){if(this.redraw=!0,this.animated=!0,this.duration=e||1e3,this.tooltipModule)this.tooltipModule.removeHighlightedMarker(this.tooltipModule.previousPoints,!0);else if(this.markerRender.previousPoints)for(var t=0;t<this.markerRender.previousPoints.length;t++)this.markerRender.removeHighlightedMarker(this.markerRender.previousPoints[t].series,this.markerRender.previousPoints[t].point)},i.prototype.refreshBound=function(){this.rotatedDataLabelCollections=[],this.legendModule&&this.legendSettings.visible&&this.legendModule.getLegendOptions(this.visibleSeries,this),this.tooltip.enable&&this.tooltipModule&&(this.tooltipModule.previousPoints=[]),this.calculateStackValues(),this.calculateBounds();var e=this.series.every(function(e){return 0===(e.dataSource||[]).length});if(this.stockChart&&!this.stockChart.rangeFound&&(this.stockChart.enablePeriodSelector||this.stockChart.enableSelector))return null;this.renderElements(),this.renderNoDataTemplate(e&&!(0,t.isNullOrUndefined)(this.noDataTemplate)),Je("chartmeasuretext"),this.removeSelection(),this.markerRender&&this.markerRender.mergeXvalues(this.visibleSeries)},i.prototype.renderNoDataTemplate=function(e){var i=this.element.querySelector("#"+this.element.id+"_NoDataTemplate_wrapper");if(i&&i.remove(),e){var o=this.enableHtmlSanitizer?this.sanitize(this.noDataTemplate):this.noDataTemplate,r=(0,t.createElement)("div",{id:this.element.id+"_NoDataTemplate_wrapper"}),n=0,a=this.element.querySelector("#"+this.element.id+"_ChartBorder");if(a){var l=a.getAttribute("stroke-width");n=l?parseFloat(l):0}var s=n,h=n,c=this.availableSize.width-2*n,d=this.availableSize.height-2*n;if(this.title){var p=(this.title?(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height:0)+(this.subTitle?(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height:0)+(this.subTitle?5:0);switch(this.titleStyle.position){case"Top":s=p+11,d-=p+11;break;case"Left":h=p+11,c-=p+11;break;case"Bottom":d=d-p-16;break;case"Right":c=c-p-11}}r.style.cssText="position: absolute; top: "+s+"px; left: "+h+"px; width: "+c+"px;\n            height: "+d+"px; z-index: 1;\n        ",qt(this.element.id+"_Secondary_Element").appendChild(r),Jt(r,null,o,this,null,null,this.element.id+"_NoData")}},i.prototype.calculateStackValues=function(){for(var e,t=!1,i=0,o=this.visibleSeries.length;i<o;i++)(e=this.visibleSeries[i]).visible&&(e.position=e.rectCount=void 0),-1===e.type.indexOf("Stacking")&&(-1===e.drawType.indexOf("Stacking")||"PolarRadar"!==this.chartAreaType)||t||(e.calculateStackedValue(e.type.indexOf("100")>-1,this),t=!0)},i.prototype.removeSelection=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];if(i.visible)for(var o=0,r=i.points;o<r.length;o++){r[o].isSelect=!1}}qt(this.element.id+"_ej2_drag_multi_group")?(this.selectionMode.indexOf("Drag")>-1&&(this.selectionModule.filterArray=[]),Je(this.element.id+"_ej2_drag_multi_group"),this.selectionModule.calculateDragSelectedElements(this,new R.Rect(0,0,0,0),!0)):qt(this.element.id+"_ej2_drag_group")&&("Lasso"!==this.selectionMode&&(this.selectionModule.filterArray=[]),Je(this.element.id+"_ej2_drag_group"),this.selectionModule.calculateDragSelectedElements(this,new R.Rect(0,0,0,0),!0))},i.prototype.renderElements=function(){this.renderBorder(),this.renderTitle(),this.renderAreaBorder(),this.renderSeriesElements(this.renderAxes()),this.renderLegend(),this.applyZoomkit(),this.performSelection(),this.setSecondaryElementPosition(),(this.xAxisLabelTemplate||this.yAxisLabelTemplate)&&(this.xAxisLabelTemplate&&ni(!1,qt(this.element.id+"_Secondary_Element"),this.xAxisLabelTemplate,this.redraw),this.yAxisLabelTemplate&&ni(!1,qt(this.element.id+"_Secondary_Element"),this.yAxisLabelTemplate,this.redraw)),this.renderAnnotation(),this.stackLabels.visible&&this.visibleSeries.some(function(e){return e.type&&e.type.indexOf("Stacking")>-1})&&this.dataLabelModule&&this.dataLabelModule.renderStackLabels()},i.prototype.renderAxes=function(){var e;return this.yAxisElements=this.renderer.createGroup({id:this.element.id+"yAxisCollection"}),this.rows.length>0&&this.columns.length>0&&(e=this.chartAxisLayoutPanel.renderAxes()),this.stripLineModule&&this.stripLineModule.renderStripLine(this,"Behind",this.axisCollections),e},i.prototype.renderLegend=function(){if(this.legendModule&&this.legendModule.legendCollections.length&&this.legendSettings.visible){this.legendModule.calTotalPage=!0;var e=this.legendSettings.border.width,t=this.legendModule.legendBounds,i=new R.Rect(t.x,t.y,t.width,t.height);this.enableCanvas&&(this.canvasRender.ctx.beginPath(),i=new R.Rect(i.x-e/2,i.y-e/2,i.width+e,i.height+e),this.renderer.canvasClip(i)),this.legendModule.renderLegend(this,this.legendSettings,t),this.enableCanvas&&this.renderer.canvasRestore()}this.redraw||(this.stockChart?qt(this.stockChart.chartObject.id)||this.stockChart.mainObject.appendChild(this.svgObject):this.element.appendChild(this.svgObject))},i.prototype.setSecondaryElementPosition=function(){var e=qt(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=qt(this.svgId).getBoundingClientRect();e.style.left=Math.max((i.left-t.left)/this.scaleX,0)+"px",e.style.top=Math.max((i.top-t.top)/this.scaleY,0)+"px"}},i.prototype.initializeModuleElements=function(){this.dataLabelCollections=[],this.lastValueLabelCollections=[];var e=this.element.id;this.series.length&&(this.seriesElements=this.svgRenderer.createGroup({id:e+"SeriesCollection"})),this.indicators.length&&(this.indicatorElements=this.renderer.createGroup({id:e+"IndicatorCollection"})),this.hasTrendlines()&&(this.trendLineElements=this.renderer.createGroup({id:e+"TrendLineCollection"})),this.lastValueLabelModule&&(this.lastValueLabelElements=this.renderer.createGroup({id:e+"LastValueLabelCollection"})),this.dataLabelElements=this.renderer.createGroup({id:e+"DataLabelCollection"})},i.prototype.hasTrendlines=function(){for(var e,t=0,i=this.series;t<i.length;t++){if(e=!!i[t].trendlines.length)break}return e},i.prototype.renderSeriesElements=function(e){this.initializeModuleElements();var t=this.element.id;if("g"!==this.element.tagName){var i=Pi(this.redraw,t+"_Secondary_Element")||this.createElement("div");i.id=t+"_Secondary_Element",i.style.cssText="position: relative",ni(!1,this.element,i,this.redraw)}if(this.enableCanvas){var o=document.getElementById(t+"_Secondary_Element");o=o||this.createElement("div",{id:t+"_Secondary_Element",attrs:{style:"position: relative; left:0px; top:0px"}});var r=this.svgRenderer.createSvg({id:t+"_tooltip_svg",width:this.availableSize.width,height:this.availableSize.height});r.style.cssText="position: absolute; pointer-events: none",o.appendChild(r)}if(this.tooltip.enable&&!this.stockChart&&ni(this.enableCanvas,this.svgObject,this.renderer.createGroup({id:t+"_UserInteraction",style:"pointer-events:none;"}),this.redraw),this.rows.length>0&&this.columns.length>0){if(this.initializeIndicator(),this.initializeTrendLine(),this.renderSeries(),this.enableCanvas)for(var n=0,a=this.visibleSeries;n<a.length;n++){var l=a[n];l.lastValueLabel.enable&&this.lastValueLabelModule.render(l,this,l.lastValueLabel)}this.trendLineElements&&ni(this.enableCanvas,this.svgObject,this.trendLineElements,this.redraw),this.appendElementsAfterSeries(e)}},i.prototype.renderSeries=function(){var e;this.enableCanvas&&this.renderer.canvasClip(this.chartAxisLayoutPanel.seriesClipRect);for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];(e="TrendLine"===o.category?this.series[o.sourceIndex].trendlines[o.index].visible:o.visible)||o.lastValueLabelElement&&(Je(o.lastValueLabelElement.id),o.lastValueLabelElement=null),e?(this.visible++,Dt(o,this.enableCanvas),this.enableCanvas&&this.renderCanvasSeries(),o.renderSeries(this)):o.isLegendClicked&&(o.type.indexOf("StackingArea")>-1||o.type.indexOf("StackingBar")>-1||o.type.indexOf("StackingColumn")>-1)&&(Dt(o,this.enableCanvas),o.renderSeries(this))}this.enableCanvas&&this.renderer.canvasRestore(),this.visible=0;var r={id:this.element.id+"_ChartAreaClipRect_",x:this.chartAxisLayoutPanel.seriesClipRect.x,y:this.chartAxisLayoutPanel.seriesClipRect.y,width:this.chartAxisLayoutPanel.seriesClipRect.width,height:this.chartAxisLayoutPanel.seriesClipRect.height,fill:"transparent","stroke-width":1,stroke:"Gray"};if(!(!this.seriesElements||r.height<0||r.width<0)){var n;n="PolarRadar"===this.chartAreaType?Nt(this.redraw,r,this.renderer,"drawCircularClipPath"):Nt(this.redraw,r,this.renderer),this.enableCanvas||this.seriesElements.appendChild(n);var a=document.getElementById(this.element.id+"_series_svg");a?ni(!1,a,this.seriesElements,this.redraw):ni(this.enableCanvas,this.svgObject,this.seriesElements,this.redraw)}},i.prototype.renderCanvasSeries=function(){var e;this.enableCanvas?e=e:e=this.svgObject},i.prototype.initializeIndicator=function(){for(var e=0,t=this.indicators;e<t.length;e++){var i=t[e];this[kt(i.type)+"IndicatorModule"]&&this[kt(i.type)+"IndicatorModule"].createIndicatorElements(this,i,i.index)}this.indicatorElements&&ni(this.enableCanvas,this.svgObject,this.indicatorElements,this.redraw)},i.prototype.initializeTrendLine=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.trendlines.length&&this.trendLineModule.getTrendLineElements(i,this)}},i.prototype.appendElementsAfterSeries=function(e){"PolarRadar"===this.chartAreaType&&ni(this.enableCanvas,this.svgObject,this.yAxisElements,this.redraw),ni(this.enableCanvas,this.svgObject,e,this.redraw),(this.zoomModule&&this.zoomSettings.enableScrollbar&&this.scrollElement&&this.scrollElement.childElementCount||this.scrollElement&&this.scrollElement.childElementCount)&&ni(!1,qt(this.element.id+"_Secondary_Element"),this.scrollElement,this.redraw),this.stripLineModule&&this.stripLineModule.renderStripLine(this,"Over",this.axisCollections),this.tooltip.enable&&!this.stockChart||ni(this.enableCanvas,this.svgObject,this.renderer.createGroup({id:this.element.id+"_UserInteraction",style:"pointer-events:none;"}),this.redraw),this.stockChart&&this.stockChart.calculateStockEvents(),this.lastValueLabelElements&&this.lastValueLabelElements.hasChildNodes()&&ni(this.enableCanvas,this.svgObject,this.lastValueLabelElements,this.redraw)},i.prototype.applyZoomkit=function(){"PolarRadar"!==this.chartAreaType&&(this.redraw&&!this.zoomRedraw||!this.zoomModule||this.zoomSettings.enablePan&&!this.zoomModule.performedUI&&!this.zoomSettings.showToolbar||this.zoomModule.applyZoomToolkit(this,this.axisCollections))},i.prototype.renderAnnotation=function(){this.annotationModule&&this.annotationModule.renderAnnotations(qt((this.stockChart?this.stockChart.element.id:this.element.id)+"_Secondary_Element"))},i.prototype.performSelection=function(){var e=[];this.selectionModule&&(e=(0,t.extend)([],this.selectionModule.selectedDataIndexes,null,!0),this.selectionModule.invokeSelection(this)),this.highlightModule&&this.highlightModule.invokeHighlight(this),e.length>0&&(this.selectionModule.selectedDataIndexes=e,this.selectionModule.redrawSelection(this,this.selectionMode))},i.prototype.processData=function(e){void 0===e&&(e=!0),this.visibleSeriesCount=0;for(var i=!0,o=0,r=0,n=this.visibleSeries;r<n.length;r++){(p=n[r]).visible||this.legendSettings.visible?"Indicator"!==p.category&&"TrendLine"!==p.category&&this.initializeDataModule(p):this.visibleSeriesCount++}for(var a=0,l=this.indicators;a<l.length;a++){var s=l[a];if(s.dataSource){var h=s;this.initializeDataModule(h),i=!1}}if(e&&(!this.visibleSeries.length||this.visibleSeriesCount===this.visibleSeries.length&&i)&&(this.refreshBound(),this.trigger("loaded",{chart:this})),!this.stockChart&&this.visibleSeries.length>0)for(var c=0,d=this.visibleSeries;c<d.length;c++){var p=d[c];(0,t.isNullOrUndefined)(p.points)||(this.maxPointCount=Math.max(o,p.points.length),o=p.points.length)}},i.prototype.initializeDataModule=function(e){var t;e.xData=[],e.yData=[];t=this.isAngular?Object.keys(e.dataSource).length?e.dataSource:this.dataSource:e.dataSource||this.dataSource,e.dataModule=new Fo(t,e.query),e.points=[],e.refreshDataManager(this)},i.prototype.calculateBounds=function(){var e=this.margin,t=0,i=0,o="Top"===this.titleStyle.position||"Bottom"===this.titleStyle.position&&!this.legendSettings.visible?15:5,r=e.left+this.border.width,n=this.availableSize.width-r-e.right-this.border.width,a=0;this.titleCollection=[],this.subTitleCollection=[],this.title?(this.titleCollection=Ti(this.title,this.titleStyle,n,this.enableRtl,this.themeStyle.chartTitleFont),t=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length+o,this.subTitle&&(this.subTitleCollection=Ti(this.subTitle,this.subTitleStyle,n,this.enableRtl,this.themeStyle.chartSubTitleFont),i=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length+o)):"Top"!==this.legendSettings.position&&this.border.width&&(a=10);var l=e.top+a+this.border.width+.5*this.chartArea.border.width,s=this.availableSize.height-l-this.border.width-e.bottom,h=i+t+this.titleStyle.border.width+this.subTitleStyle.border.width;switch(this.titleStyle.position){case"Top":l+=h,s-=h;break;case"Bottom":s-=h;break;case"Left":r+=h,n-=h;break;case"Right":r-=this.titleStyle.border.width+this.subTitleStyle.border.width,n-=h}if(this.stockChart&&this.stockChart.legendSettings.visible&&this.stockChart.stockLegendModule&&("Top"===this.stockChart.legendSettings.position?l+=this.stockChart.stockLegendModule.legendBounds.height:"Left"===this.stockChart.legendSettings.position&&(r+=this.stockChart.stockLegendModule.legendBounds.width)),this.scrollBarModule&&(this.zoomModule&&this.zoomSettings.enableScrollbar&&this.zoomModule.isZoomed||this.scrollSettingEnabled))for(var c=10,d=0,p=this.axisCollections.length;d<p;d++){var u=this.axisCollections[d];"Horizontal"===u.orientation&&"Bottom"===u.scrollbarSettings.position?s-=u.scrollbarSettings.height+c:"Horizontal"===u.orientation&&"Top"===u.scrollbarSettings.position?(s-=u.scrollbarSettings.height+c,l+=u.scrollbarSettings.height+c):"Vertical"===u.orientation&&"Right"===u.scrollbarSettings.position?n-=u.scrollbarSettings.height+c:"Vertical"===u.orientation&&"Left"===u.scrollbarSettings.position&&(n-=u.scrollbarSettings.height+c,r+=u.scrollbarSettings.height+c)}this.initialClipRect=new R.Rect(r,l,n,s),this.legendModule&&this.legendSettings.visible&&this.legendModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null),this.initialClipRect.y+=this.chartArea.margin.top,this.initialClipRect.height-=this.chartArea.margin.top+this.chartArea.margin.bottom,this.initialClipRect.x+=this.chartArea.margin.left,this.initialClipRect.width-=this.chartArea.margin.left+this.chartArea.margin.right,this.chartAxisLayoutPanel.measureAxis(this.initialClipRect)},i.prototype.print=function(e){var t=new zo(this),i=this.width;"chart"===this.getModuleName()&&parseInt(this.width,10)>=80&&this.width.indexOf("%")>-1&&(this.width="80%",this.dataBind()),t.print(e),"chart"===this.getModuleName()&&parseInt(this.width,10)>=80&&this.width.indexOf("%")>-1&&(this.width=i,this.dataBind())},i.prototype.initTrendLines=function(){this.isProtectedOnChange=!0;for(var e=0,t=this.visibleSeries;e<t.length;e++)for(var i=t[e],o=0,r=0,n=i.trendlines;r<n.length;r++){var a=n[r];this.trendLineModule&&(a.index=o,a.sourceIndex=i.index,this.trendLineModule.initSeriesCollection(a,this),a.targetSeries&&(a.targetSeries.xAxisName=i.xAxisName,a.targetSeries.yAxisName=i.yAxisName,this.visibleSeries.push(a.targetSeries))),o++}this.isProtectedOnChange=!1},i.prototype.calculateAreaType=function(){var e=this.series[0];this.chartArea.border.width=this.stockChart?0:this.chartArea.border.width,e&&(this.requireInvertedAxis=-1!==e.type.indexOf("Bar")&&!this.isTransposed||-1===e.type.indexOf("Bar")&&this.isTransposed&&"PolarRadar"!==this.chartAreaType),this.chartAxisLayoutPanel="PolarRadar"===this.chartAreaType?this.polarSeriesModule||this.radarSeriesModule:new lo(this)},i.prototype.calculateVisibleAxis=function(){var e,t=[this.primaryXAxis,this.primaryYAxis];t="Cartesian"===this.chartAreaType?t.concat(this.axes):t,this.paretoSeriesModule&&this.series[0]&&"Pareto"===this.series[0].type&&(t=t.concat(this.paretoSeriesModule.paretoAxes)),this.axisCollections=[],this.zoomModule&&(this.zoomModule.isPanning=this.zoomModule.isAxisZoomed(t)&&this.zoomSettings.enablePan,this.svgObject.setAttribute("cursor",this.zoomModule.isPanning?"pointer":"auto"),this.scrollBarModule&&(this.scrollBarModule.axes=t)),this.scrollSettingEnabled&&this.scrollBarModule&&(this.scrollBarModule.axes=t);for(var i=0,o=t.length;i<o;i++){(e=t[i]).series=[],e.multiLevelLabelHeight=0,e.labels=[],e.indexLabels={},e.orientation=0===i&&0===this.visibleSeries.length?this.requireInvertedAxis?"Vertical":"Horizontal":1===i&&0===this.visibleSeries.length?this.requireInvertedAxis?"Horizontal":"Vertical":e.orientation;for(var r=0,n=this.visibleSeries;r<n.length;r++){var a=n[r];this.initAxis(a,e,!0),"Pareto"===a.category&&"Line"===a.type&&a.yAxis&&(a.yAxis.internalVisibility=a.paretoOptions.showAxis)}for(var l=0,s=this.indicators;l<s.length;l++){var h=s[l];this.initAxis(h,e,!1)}this.scrollBarModule&&!e.zoomingScrollBar&&this.scrollBarModule.injectTo(e,this),null!=e.orientation&&this.axisCollections.push(e)}this.rows.length>0&&this.columns.length>0&&this.chartAxisLayoutPanel.measure()},i.prototype.initAxis=function(e,t,i){e.xAxisName===t.name||null==e.xAxisName&&"primaryXAxis"===t.name?(t.orientation=this.requireInvertedAxis?"Vertical":"Horizontal",e.xAxis=t,i&&t.series.push(e)):(e.yAxisName===t.name||null==e.yAxisName&&"primaryYAxis"===t.name)&&(t.orientation=this.requireInvertedAxis?"Horizontal":"Vertical",e.yAxis=t,i&&t.series.push(e))},i.prototype.initTechnicalIndicators=function(){for(var e=0,t=0,i=this.indicators;t<i.length;t++){var o=i[t],r=o,n=kt(r.type);if(this[n+"IndicatorModule"]){r.index=e,this[n+"IndicatorModule"].initSeriesCollection(r,this);for(var a=0,l=r.targetSeries;a<l.length;a++){var s=l[a];(o.seriesName||o.dataSource)&&this.visibleSeries.push(s)}}e++}},i.prototype.refreshTechnicalIndicator=function(e){if(this.indicators.length){if(e instanceof Co&&"Indicator"!==e.category)for(var t=0,i=this.indicators;t<i.length;t++){var o=i[t];o.seriesName!==e.name||o.dataSource||o.setDataSource(e,this)}else e instanceof Oo&&e.setDataSource(e instanceof Co?e:null,this)}},i.prototype.calculateVisibleSeries=function(){var e;this.visibleSeries=[];for(var t=this.palettes.length?this.palettes:oo(this.theme),i=t.length,o=this.series.sort(function(e,t){return e.zOrder-t.zOrder}),r=0,n=o.length;r<n;r++){switch((e=o[r]).category="Pareto"===o[0].type?"Pareto":"Series",e.index=r,e.interior=e.fill||t[r%i],e.marker.shape||!e.marker.visible&&"Scatter"!==e.type&&"Scatter"!==e.drawType||(e.marker.shape=Ao[this.markerIndex%10],this.markerIndex++),this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),this.isSecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),e.type){case"Bar":case"StackingBar":case"StackingBar100":if(-1===o[0].type.indexOf("Bar"))continue;break;case"Polar":case"Radar":if("PolarRadar"!==this.chartAreaType)continue;if("PolarRadar"===this.chartAreaType&&(null!==e.xAxisName&&this.primaryXAxis.name!==e.xAxisName||null!==e.yAxisName&&this.primaryYAxis.name!==e.yAxisName))continue;break;case"Pareto":this.visibleSeries.push(e),this.paretoSeriesModule.initSeries(e,this);continue;default:if("PolarRadar"===this.chartAreaType||o[0].type.indexOf("Bar")>-1)continue}this.visibleSeries.push(e),o[r]=e}},i.prototype.isSecondaryAxis=function(e){return this.axes.indexOf(e)>-1},i.prototype.renderTitle=function(){var e,t=this.margin;if(this.title){var i=to(this.titleStyle.textAlignment,this.enableRtl),o=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont);e=new R.Rect(t.left,0,this.availableSize.width-t.left-t.right,0);var r=this.titleStyle.border.width,n=this.margin.top+3*o.height/4,a=Ei(e,this.titleStyle||this.themeStyle.chartTitleFont)+r,l=void 0,s=this.titleStyle.textAlignment,h=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont);switch(this.titleStyle.position){case"Top":n+=.5*r,a+="start"===i?.5*r+this.border.width:"end"===i?2*-r-this.border.width:0;break;case"Bottom":a+="start"===i?.5*r+this.border.width:"end"===i?2*-r-this.border.width:0,n=this.availableSize.height-this.margin.bottom-h.height-o.height/2-.5*r-.5*this.subTitleStyle.border.width;break;case"Left":a=this.margin.left+3*o.height/4+.5*r,n="Near"===s?t.bottom+.5*r+this.border.width:"Far"===s?this.availableSize.height-t.bottom-.5*r-this.border.width:this.availableSize.height/2,i="Near"===s?"end":"Far"===s?"start":"middle",i=this.enableRtl?"end"===i?"start":"start"===i?"end":i:i,l="rotate(-90,"+a+","+n+")";break;case"Right":a=this.availableSize.width-this.margin.right-3*o.height/4-.5*r,n="Near"===s?t.bottom+.5*r+this.border.width:"Far"===s?this.availableSize.height-t.bottom-.5*r-this.border.width:this.availableSize.height/2,i="Near"===s?"start":"Far"===s?"end":"middle",i=this.enableRtl?"end"===i?"start":"start"===i?"end":i:i,l="rotate(90,"+a+","+n+")";break;case"Custom":a=this.titleStyle.x,n=this.titleStyle.y,i="middle"}var c={id:this.element.id+"_ChartTitleBorder",x:a-("middle"===i?o.width/2+5:"end"===i?o.width+5:5),y:n-o.height+o.height/4,rx:this.titleStyle.border.cornerRadius,ry:this.titleStyle.border.cornerRadius,width:o.width+10,height:o.height*this.titleCollection.length,fill:this.titleStyle.background,"stroke-width":r,stroke:this.titleStyle.border.color,transform:l||"",d:""},d=Pi(this.redraw,this.element.id+"_ChartTitleBorder",c,this.renderer)||this.renderer.drawRectangle(c);ni(this.enableCanvas,this.svgObject,d,this.redraw);var p=new R.TextOption(this.element.id+"_ChartTitle",a,n,i,this.titleCollection,l,"auto"),u=Pi(this.redraw,this.element.id+"_ChartTitle",p,this.renderer)||Di(this.renderer,p,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,null,null,null,null,null,null,0,null,this.enableCanvas,null,this.themeStyle.chartTitleFont);u&&!this.enableCanvas&&(u.setAttribute("tabindex",this.titleStyle.accessibility.focusable?String(this.titleStyle.accessibility.tabIndex):"-1"),u.style.outline="none",u.setAttribute("class","e-chart-focused"),u.setAttribute("role",this.titleStyle.accessibility.accessibilityRole),u.setAttribute("aria-label",this.titleStyle.accessibility.accessibilityDescription)),this.subTitle&&this.renderSubTitle(p)}},i.prototype.renderSubTitle=function(e){for(var t=0,i=0,o=0,r=0,n=10,a=this.titleStyle.textAlignment,l=0,s=this.titleCollection;l<s.length;l++){var h=s[l];t=(o=(0,R.measureText)(h,this.titleStyle,this.themeStyle.chartTitleFont).width)>t?o:t}for(var c=0,d=this.subTitleCollection;c<d.length;c++){var p=d[c];i=(r=(0,R.measureText)(p,this.subTitleStyle,this.themeStyle.chartSubTitleFont).width)>i?r:i}t=Math.max(o,i);var u=(0,R.measureText)(this.subTitleCollection.reduce(function(e,t){return e.length>t.length?e:t}),this.subTitleStyle,this.themeStyle.chartSubTitleFont),g=to(this.subTitleStyle.textAlignment,this.enableRtl),m=new R.Rect("Center"===a?e.x-.5*t:"Far"===a?e.x-t:e.x,0,t,0);"Left"===this.titleStyle.position&&(m.x="Center"===a?e.x-.5*t:"Far"===a?this.margin.left+3*u.height/4:e.x-t);var y=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont),f=e.y*e.text.length+u.height+5+this.titleStyle.border.width+.5*this.subTitleStyle.border.width;"Bottom"===this.titleStyle.position&&(f=e.y*e.text.length+5+y.height/2+u.height/2);var v={id:this.element.id+"_ChartSubTitleBorder",x:Ei(m,this.subTitleStyle)-("middle"===g?u.width/2+5:"end"===g?u.width+5:5),y:f-u.height+u.height/4,rx:this.subTitleStyle.border.cornerRadius,ry:this.subTitleStyle.border.cornerRadius,width:u.width+n,height:u.height*this.subTitleCollection.length,fill:this.subTitleStyle.background,"stroke-width":this.subTitleStyle.border.width,stroke:this.subTitleStyle.border.color,transform:e.transform,d:""},b=Pi(this.redraw,this.element.id+"_ChartSubTitleBorder",v,this.renderer)||this.renderer.drawRectangle(v);ni(this.enableCanvas,this.svgObject,b,this.redraw);var x=new R.TextOption(this.element.id+"_ChartSubTitle",Ei(m,this.subTitleStyle),f,to(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,e.transform,"auto"),S=Pi(this.redraw,this.element.id+"_ChartSubTitle",x,this.renderer)||Di(this.renderer,x,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,null,null,null,null,null,null,0,null,this.enableCanvas,null,this.themeStyle.chartSubTitleFont);S&&!this.enableCanvas&&(S.setAttribute("tabindex",this.subTitleStyle.accessibility.focusable?String(this.subTitleStyle.accessibility.tabIndex):"-1"),this.subTitleStyle.accessibility.focusable&&(S.style.outline="none"),S.setAttribute("class","e-chart-focused"),S.setAttribute("role",this.subTitleStyle.accessibility.accessibilityRole),S.setAttribute("aria-label",this.subTitleStyle.accessibility.accessibilityDescription))},i.prototype.renderBorder=function(){var e=0,t=0,i=this.border.width,o=this.backgroundImage,r=o?"transparent":this.background||this.themeStyle.background;this.stockChart&&this.stockChart.legendSettings.visible&&this.stockChart.stockLegendModule&&("Top"===this.stockChart.legendSettings.position?t+=this.stockChart.stockLegendModule.legendBounds.height:"Left"===this.stockChart.legendSettings.position&&(e+=this.stockChart.stockLegendModule.legendBounds.width));var n=new Ni(this.element.id+"_ChartBorder",r,this.border,1,new R.Rect(.5*i+e,.5*i+t,this.availableSize.width-i,this.availableSize.height-i),0,0,"",this.border.dashArray);if(this.htmlObject=Pi(this.redraw,this.element.id+"_ChartBorder",n,this.renderer)||this.renderer.drawRectangle(n),this.htmlObject.setAttribute("aria-hidden","true"),ni(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw),o){var a=new Vi(this.availableSize.height-i,this.availableSize.width-i,o,0,0,this.element.id+"_ChartBackground","visible","none");this.htmlObject=Pi(this.redraw,this.element.id+"_ChartBackground",a,this.renderer)||this.renderer.drawImage(a),ni(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw)}},i.prototype.renderAreaBorder=function(){if("PolarRadar"===this.chartAreaType)return null;var e=qt(this.element.id+"_ChartAreaBorder"),t=e?new R.Rect(+e.getAttribute("x"),+e.getAttribute("y"),+e.getAttribute("width"),+e.getAttribute("height")):null,i=new Ni(this.element.id+"_ChartAreaBorder",this.chartArea.background,{width:this.chartArea.border.width,color:this.chartArea.border.color||this.themeStyle.areaBorder},this.chartArea.opacity,this.chartAxisLayoutPanel.seriesClipRect,0,0,"",this.chartArea.border.dashArray);if(i.height<0||i.width<0)return null;this.htmlObject=this.renderer.drawRectangle(i),this.htmlObject.setAttribute("aria-hidden","true"),ni(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw,!0,"x","y",null,null,!0,!0,t),this.htmlObject=null;var o=this.chartArea.backgroundImage;if(o){var r=this.chartArea.border.width,n=new Vi(this.initialClipRect.height-r,this.initialClipRect.width-r,o,this.initialClipRect.x,this.initialClipRect.y,this.element.id+"_ChartAreaBackground","visible","none");this.htmlObject=this.renderer.drawImage(n),ni(this.enableCanvas,this.svgObject,this.htmlObject,this.redraw,!0,"x","y",null,null,!0,!0)}},i.prototype.addSeries=function(e){for(var t=window.scrollY||document.documentElement.scrollTop,i=0,o=e;i<o.length;i++){var r=o[i];r=new Co(this,"series",r,!0),this.series.push(r)}this.refresh(),window.scrollTo(0,t)},i.prototype.removeSeries=function(e){this.redraw=!1;var t=window.scrollY||document.documentElement.scrollTop,i=this.visibleSeries[e];i&&(i.xAxis.series.length<=1&&(i.xAxis.orientation=null),i.yAxis.series.length<=1&&(i.yAxis.orientation=null));for(var o=0;o<this.axes.length;o++)null===this.axes[o].orientation&&this.axes.splice(o,1);this.series.splice(e,1),this.refresh(),window.scrollTo(0,t)},i.prototype.clearSeries=function(){this.series=[];var e=window.scrollY||document.documentElement.scrollTop;this.refresh(),window.scrollTo(0,e)},i.prototype.addAxes=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];o=new Xe(this,"axes",o),this.axes.push(o)}this.refresh()},i.prototype.removeAxis=function(e){this.redraw=!1,this.axes.splice(e,1),this.refresh()},i.prototype.destroy=function(){this.scrollBarModule&&this.scrollBarModule.destroy(),this.markerRender&&(this.markerRender.removeEventListener(),this.markerRender=null),this.horizontalAxes=[],this.verticalAxes=[],this.visibleSeries=[],this.axisCollections=[],this.rotatedDataLabelCollections=[],this.seriesElements=null,this.chartAxisLayoutPanel=null,this.dataLabelCollections=null,this.visibleSeriesCount=null,this.dataLabelElements=null,this.lastValueLabelCollections=null,this.lastValueLabelElements=null,this.xAxisLabelTemplate=null,this.yAxisLabelTemplate=null,this.yAxisElements=null;var t=document.getElementById(this.element.id+"Keyboard_chart_focus");t&&t.remove();var i=document.getElementById(this.element.id+"_ej2_chart_highlight");i&&i.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");o&&o.remove(),Je("chartmeasuretext"),this.element&&(this.unWireEvents(),this.isReact&&this.clearTemplate(),e.prototype.destroy.call(this),this.enableCanvas||(this.removeSvg(),this.svgObject=null))},i.prototype.getModuleName=function(){return"chart"},i.prototype.getPersistData=function(){return this.addOnPersist(["loaded","animationComplete","primaryXAxis","primaryYAxis"])},i.prototype.createChartSvg=function(){this.removeSvg(),Ri(this)},i.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.chartOnMouseDown),t.EventHandler.remove(this.element,i,this.mouseMove),t.EventHandler.remove(this.element,o,this.mouseEnd),t.EventHandler.remove(this.element,"click",this.chartOnMouseClick),t.EventHandler.remove(this.element,"dblclick",this.chartOnDoubleClick),t.EventHandler.remove(this.element,"contextmenu",this.chartRightClick),t.EventHandler.remove(this.element,r,this.mouseLeave),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),t.EventHandler.remove(document.body,"keydown",this.documentKeyHandler),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.touchObject&&(this.touchObject.destroy(),this.touchObject=null)},i.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.chartOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"click",this.chartOnMouseClick,this),t.EventHandler.add(this.element,"dblclick",this.chartOnDoubleClick,this),t.EventHandler.add(this.element,"contextmenu",this.chartRightClick,this),t.EventHandler.add(this.element,e,this.mouseLeave,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),t.EventHandler.add(document.body,"keydown",this.documentKeyHandler,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),this.resizeBound=this.chartResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.longPressBound=this.longPress.bind(this),this.touchObject=new t.Touch(this.element,{tapHold:this.longPressBound,tapHoldThreshold:500}),this.setStyle(this.element)}},i.prototype.chartRightClick=function(e){return!this.crosshair.enable||!this.crosshairModule||2!==e.buttons&&0!==e.which&&"touch"!==e.pointerType||(e.preventDefault(),e.stopPropagation(),!1)},i.prototype.setStyle=function(e){var t=this.zoomSettings,i=t.enableSelectionZooming||t.enablePinchZooming||"None"!==this.selectionMode||"None"!==this.highlightMode;e.style.touchAction=i?"none":"element",e.style.msTouchAction=i?"none":"element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.overflow="hidden",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit"},i.prototype.isOrientation=function(){return"orientation"in window&&"onorientationchange"in window},i.prototype.longPress=function(e){return this.mouseX=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientX:0,this.mouseY=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientY:0,this.startMove=!0,this.allowPan=!this.stockChart&&this.allowPan,this.setMouseXY(this.mouseX,this.mouseY),this.notify("tapHold",e),!1},i.prototype.setMouseXY=function(e,t){if(qt(this.svgId)){var i=qt(this.svgId).getBoundingClientRect(),o=this.element.getBoundingClientRect();this.scaleX=i.width/this.availableSize.width,this.scaleY=i.height/this.availableSize.height,this.mouseY=(t-o.top-Math.max(i.top-o.top,0))/this.scaleY,this.mouseX=(e-o.left-Math.max(i.left-o.left,0))/this.scaleX,this.stockChart&&(this.mouseX+="Left"===this.stockChart.legendSettings.position?this.stockChart.stockLegendModule.legendBounds.width:0,this.mouseY+="Top"===this.stockChart.legendSettings.position?this.stockChart.stockLegendModule.legendBounds.height:0)}},i.prototype.export=function(e,t){this.exportModule&&(this.exportModule.export(e,t),this.afterExport&&this.exportModule.getDataUrl(this))},i.prototype.chartResize=function(){var e=this;this.animateSeries=!1;var t={chart:this,name:ae,currentSize:new R.Size(0,0),previousSize:new R.Size(this.availableSize.width,this.availableSize.height)},i={name:"beforeResize",cancelResizedEvent:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger(le,i),i.cancelResizedEvent||(this.resizeTo=+setTimeout(function(){e.isDestroyed||e.stockChart?clearTimeout(e.resizeTo):(e.createChartSvg(),t.currentSize=e.availableSize,e.trigger(ae,t),e.refreshAxis(),e.refreshBound(),e.trigger("loaded",{chart:e}))},500)),!1},i.prototype.mouseMove=function(e){var t,i,o;return this.allowPan||("touchmove"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,t=e.clientX,i=e.clientY),this.previousPageX=t,this.previousPageY=i,qt(this.svgId)&&(this.setMouseXY(t,i),this.chartOnMouseMove(e))),!1},i.prototype.mouseLeave=function(e){var t,i,o;return this.stockChart&&this.stockChart.onPanning||("touchleave"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY),this.previousPageX=null,this.previousPageY=null,this.setMouseXY(t,i),this.chartOnMouseLeave(e)),!1},i.prototype.chartOnMouseLeave=function(e){var i=e.target,o=t.Browser.isPointer?"pointerleave":"mouseleave";return this.trigger(ee,{target:i.id,x:this.mouseX,y:this.mouseY}),Je(this.element.id+"_EJ2_AxisLabel_Tooltip"),this.isChartDrag=this.isPointMouseDown=!1,this.notify(o,e),!1},i.prototype.chartOnDoubleClick=function(e){var t=e.target;return this.trigger(Q,{target:t.id,x:this.mouseX,y:this.mouseY}),!1},i.prototype.chartKeyDown=function(e){var t="";return(this.isZoomed&&"Tab"===e.code||"Space"===e.code)&&e.preventDefault(),this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("Series")>-1||"Escape"===e.code)&&(t="ESC"),"None"!==this.highlightMode&&"Tab"===e.code&&this.previousTargetId.indexOf("_chart_legend_")>-1&&this.highlightModule&&this.highlightModule.removeLegendHighlightStyles(),!e.ctrlKey||"+"!==e.key&&"Equal"!==e.code&&"-"!==e.key&&"Minus"!==e.code?82===e.keyCode&&this.isZoomed?(e.preventDefault(),this.isZoomed=!1,t="R"):e.code.indexOf("Arrow")>-1&&(e.preventDefault(),t=this.isZoomed?e.code:""):(e.preventDefault(),this.isZoomed=this.zoomModule&&(this.zoomSettings.enableDeferredZooming||this.zoomSettings.enableSelectionZooming||this.zoomSettings.enablePinchZooming||this.zoomSettings.enableMouseWheelZooming),t=this.isZoomed?e.code:""),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},i.prototype.chartKeyUp=function(e){var t,i,o,r,n="",a=e.target.id,l=e.target,s=qt(this.element.id+"_ChartTitle"),h=qt(this.element.id+"SeriesCollection"),c=qt(this.element.id+"_chart_legend_translate_g"),d=qt(this.element.id+"_chart_legend_pageup");(s&&s.setAttribute("class","e-chart-focused"),h&&h.firstElementChild&&h.firstElementChild.children[1])&&((r=(o=h.firstElementChild.children[1]).getAttribute("class"))&&-1===r.indexOf("e-chart-focused")?r+=" e-chart-focused":r||(r="e-chart-focused"),o.setAttribute("class",r));c&&((r=(o=c.firstElementChild).getAttribute("class"))&&-1===r.indexOf("e-chart-focused")?r+=" e-chart-focused":r||(r="e-chart-focused"),o.setAttribute("class",r));if(d&&d.setAttribute("class","e-chart-focused"),"Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("_Series_")>-1&&-1===a.indexOf("_Series_")){t=qt(this.element.id+"SeriesCollection");(this.previousTargetId.indexOf("_Symbol")>-1?qt(this.element.id+"SymbolGroup"+this.currentSeriesIndex):t.children[this.currentSeriesIndex])&&(this.previousTargetId.indexOf("_Symbol")>-1?qt(this.element.id+"SymbolGroup"+this.currentSeriesIndex).children[this.currentPointIndex+1]:this.previousTargetId.indexOf("_Point_")>-1?t.children[this.currentSeriesIndex].children[this.currentPointIndex+1]:t.children[this.currentSeriesIndex]),this.currentPointIndex=0,this.currentSeriesIndex=0}else this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===a.indexOf("_chart_legend_page")&&-1===a.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,qt(this.element.id+"_chart_legend_pageup")):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===a.indexOf("_chart_legend_g_")&&(t=qt(this.element.id+"_chart_legend_translate_g"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild));if(this.previousTargetId=a,a.indexOf("SeriesGroup")>-1){this.currentSeriesIndex=+a.split("SeriesGroup")[1],l.removeAttribute("tabindex"),l.blur(),l.children.length>1&&-1===l.children[1].id.indexOf("_Point_")&&(i=qt(this.element.id+"SymbolGroup"+a.split("SeriesGroup")[1]));var p=null;i&&i.children.length>1?p=i.children[1]:l.children.length>1&&(p=l.children[1]),p&&(a=this.focusChild(p))}else a.indexOf("_ChartTitle")>-1&&this.setNavigationStyle(a);n=a!==this.element.id?"Tab":""}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),this.previousTargetId=a,a.indexOf("_chart_legend_page")>-1)"ArrowLeft"===e.code?(qt(this.element.id+"_chart_legend_pagedown").removeAttribute("tabindex"),this.focusChild(qt(this.element.id+"_chart_legend_pageup"))):"ArrowRight"===e.code&&(qt(this.element.id+"_chart_legend_pageup").removeAttribute("tabindex"),this.focusChild(qt(this.element.id+"_chart_legend_pagedown")));else if(a.indexOf("_chart_legend_")>-1){var u=l.parentElement.children;u[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,u.length);var g=u[this.currentLegendIndex];this.focusChild(g),this.removeNavigationStyle(),this.setNavigationStyle(g.id),a=g.children[1].id,n="None"!==this.highlightMode?"ArrowMove":""}else if(a.indexOf("_Series_")>-1){t=l.parentElement.parentElement;var m=e.target;if(l.removeAttribute("tabindex"),l.blur(),"ArrowRight"===e.code||"ArrowLeft"===e.code){for(var y=[],f=0;f<t.children.length;f++)t.children[f].id.indexOf("SeriesGroup")>-1&&y.push(+t.children[f].id.split("SeriesGroup")[1]);this.currentSeriesIndex=y.indexOf(this.currentSeriesIndex)+("ArrowRight"===e.code?1:-1),this.currentSeriesIndex=y[this.getActualIndex(this.currentSeriesIndex,y.length)]}else this.currentPointIndex+="ArrowUp"===e.code?1:-1;a.indexOf("_Symbol")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"SymbolGroup"+this.currentSeriesIndex).childElementCount-1),m=qt(this.element.id+"_Series_"+this.currentSeriesIndex+"_Point_"+this.currentPointIndex+"_Symbol")):a.indexOf("_Point_")>-1&&(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"SeriesGroup"+this.currentSeriesIndex).childElementCount-1),m=qt(this.element.id+"_Series_"+this.currentSeriesIndex+"_Point_"+this.currentPointIndex)),a=this.focusChild(m),n="ArrowMove"}}else"Enter"!==e.code&&"Space"!==e.code||!(a.indexOf("_chart_legend_")>-1||a.indexOf("_Point_")>-1)||(a=a.indexOf("_chart_legend_page")>-1?a:a.indexOf("_chart_legend_")>-1?l.children[1].id:a,n="Enter");return""!==n&&this.chartKeyboardNavigations(e,a,n),!1},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-chart-focused")?t="e-chart-focused "+t:t||(t="e-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.documentKeyHandler=function(e){e.altKey&&74===e.keyCode&&!(0,t.isNullOrUndefined)(this.element)&&(this.element.focus(),this.setNavigationStyle(this.element.id))},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&(t.style.setProperty("outline",this.focusBorderWidth+"px solid "+(this.focusBorderColor||this.themeStyle.tabColor)),t.style.setProperty("margin",this.focusBorderMargin+"px"))},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("[id*=_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_ChartTitle],g[id*=_chart_legend],  text[id*=_ChartSubTitle], div[id*=_Annotation], g[id*=IndicatorGroup], g[id*=_Zooming_Zoom], g[id*=_Zooming_ZoomIn], g[id*=_Zooming_ZoomOut], g[id*=_Zooming_Pan], g[id*=_Zooming_Reset], path[id*=_TrendLine_]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},i.prototype.chartKeyboardNavigations=function(e,t,i){switch(this.isLegendClicked=!1,this.removeNavigationStyle(),(i.indexOf("Arrow")>-1||"Tab"===i)&&this.setNavigationStyle(t),i){case"Tab":case"ArrowMove":if(this.highlightModule&&this.highlightModule.removeLegendHighlightStyles(),t.indexOf("_Point_")>-1){var o=+t.split("_Series_")[1].split("_Point_")[0],r=+t.split("_Series_")[1].replace("_Symbol","").split("_Point_")[1],n=this.visibleSeries[o].points[r].symbolLocations[0];this.mouseX=n.x+this.initialClipRect.x-(this.visibleSeries[o].type.indexOf("StackingBar")>-1?this.visibleSeries[o].marker.height/2:0),this.mouseY=n.y+this.initialClipRect.y+(this.visibleSeries[o].type.indexOf("StackingColumn")>-1?this.visibleSeries[o].marker.height/2:0),this.highlightModule&&(this.highlightModule.highlightChart(document.getElementById(t),"mousemove"),this.highlightModule.completeSelection(document.getElementById(t),"mousemove")),this.tooltipModule&&this.tooltipModule.tooltip()}if(this.highlightModule&&"None"!==this.highlightMode){t=t.indexOf("_chart_legend_g_")>-1?document.getElementById(t).firstChild.id:t;for(var a=this.element.id+"_chart_legend",l=[a+"_text_",a+"_shape_marker_",a+"_shape_"],s=0;s<l.length;s++){var h=l[s];if(t.indexOf(h)>-1){document.getElementById(t).setAttribute("class",""),this.highlightModule.legendSelection(this,parseInt(t.split(h)[1],10),document.getElementById(t),"mousemove");break}}}break;case"Enter":case"Space":t.indexOf("_chart_legend_")>-1?(this.isLegendClicked=!0,this.legendModule.click(e),this.focusChild(document.getElementById(t).parentElement),this.setNavigationStyle(document.getElementById(t).parentElement.id)):(this.selectionModule&&this.selectionModule.calculateSelectedElements(document.getElementById(t),"click"),this.setNavigationStyle(t));break;case"CtrlP":this.print();break;case"ESC":this.tooltipModule.removeTooltip(1);break;case"Equal":case"Minus":this.zoomModule.isZoomed=this.zoomModule.performedUI=!0,this.zoomModule.isPanning=this.isChartDrag=!1,"Equal"===i?this.zoomModule.toolkit.zoomInOutCalculation(1,this,this.axisCollections,this.zoomSettings.mode):this.zoomModule.toolkit.zoomInOutCalculation(-1,this,this.axisCollections,this.zoomSettings.mode),this.zoomModule.performZoomRedraw(this),this.element.focus();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":var c="ArrowUp"===i?10:"ArrowDown"===i?-10:0,d="ArrowLeft"===i?-10:"ArrowRight"===i?10:0;this.zoomModule.isPanning=this.isChartDrag=!0,this.zoomModule.doPan(this,this.axisCollections,d,c),this.zoomModule.performZoomRedraw(this),this.element.focus();break;case"R":this.zoomModule.toolkit.reset(e)}},i.prototype.chartOnMouseClick=function(e){var t=this,i=e.target,o=this;this.clickCount++;var r=this.FindXYPointValue(o.mouseX,o.mouseY),n=400;1===this.clickCount?this.singleClickTimer=+setTimeout(function(){o.clickCount=0,o.trigger(q,{target:i.id,x:o.mouseX,y:o.mouseY,axisData:r})},n):2!==this.clickCount||this.pointDoubleClick||(clearTimeout(this.singleClickTimer),this.clickCount=0);if(this.isAngular){n=this.pointDoubleClick.observers.length>0?400:0}else n=this.pointDoubleClick?400:0;return 1===this.clickCount&&this.pointClick?this.singleClickTimer=+setTimeout(function(){t.clickCount=0,t.triggerPointEvent($,e)},n):2===this.clickCount&&this.pointDoubleClick&&(clearTimeout(this.singleClickTimer),this.clickCount=0,this.triggerPointEvent(K,e)),this.axisLabelClick&&this.triggerAxisLabelClickEvent(U,e),this.removeNavigationStyle(),this.notify("click",e),!1},i.prototype.FindXYPointValue=function(e,t){if(Pt(e,t,this.chartAxisLayoutPanel.seriesClipRect)&&this.series.some(function(e){return e.visible})){for(var i=void 0,o=void 0,r=void 0,n={},a=0,l=this.axisCollections.length;a<l;a++)"Horizontal"===(i=this.axisCollections[a]).orientation?(o=At(Math.abs(e-i.rect.x),i.rect.width,i),n[this.axisCollections[a].name]=o):(r=Mt(Math.abs(t-i.rect.y),i.rect.height,i),n[this.axisCollections[a].name]=r);return n}return null},i.prototype.triggerPointEvent=function(e,t){var i=t,o=new so(this).getData();o.series&&o.point&&this.trigger(e,{series:o.series,point:o.point,seriesIndex:o.series.index,pointIndex:o.point.index,x:this.mouseX,y:this.mouseY,pageX:i.pageX,pageY:i.pageY})},i.prototype.triggerAxisLabelClickEvent=function(e,t){var i=t.target,o=t;if(-1!==i.id.indexOf("_AxisLabel_")){var r=i.id.split("_AxisLabel_"),n=+r[0].slice(-1),a=+r[1],l=this.axisCollections[n];!l.visible||0!==n&&1!==n||this.trigger(e,{chart:this,axis:l,text:l.visibleLabels[a].text,labelID:i.id,index:a,location:new ji(o.pageX,o.pageY),value:l.visibleLabels[a].value})}},i.prototype.chartOnMouseMove=function(e){var i=e.target,o=this.FindXYPointValue(this.mouseX,this.mouseY);return this.trigger(Z,{target:i.id,x:this.mouseX,y:this.mouseY,axisData:o}),this.pointMove&&this.triggerPointEvent(J,e),this.isTouch||(this.titleTooltip(e,this.mouseX,this.mouseY),this.axisTooltip(e,this.mouseX,this.mouseY)),this.dataEditingModule&&this.dataEditingModule.pointMouseMove(e),this.crosshair.enable&&this.startMove&&e.preventDefault(),this.notify(t.Browser.touchMoveEvent,e),this.isTouch=!1,!1},i.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"_ChartTitle"||r===this.element.id+"_ChartSubTitle"||r.indexOf("_AxisTitle")>-1||r.indexOf("_legend_title")>-1,a=0;(r.indexOf("_AxisTitle")>-1&&(a=parseInt(r.replace(this.element.id,"").replace("AxisLabel_","").split("_")[2],10)),n&&e.target.textContent.indexOf("...")>-1)?tt(r===this.element.id+"_ChartTitle"?this.title:r.indexOf("_AxisTitle")>-1?this.axisCollections[a].title:r.indexOf("_ChartSubTitle")>-1?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"_EJ2_Title_Tooltip",qt(this.element.id+"_Secondary_Element"),o):Je(this.element.id+"_EJ2_Title_Tooltip")},i.prototype.axisTooltip=function(e,t,i,o){var r=e.target.id;if((r.indexOf("AxisLabel")>-1||r.indexOf("Axis_MultiLevelLabel")>-1)&&e.target.textContent.indexOf("...")>-1){var n=this.legendSettings.visible||""===this.primaryXAxis.title;tt(this.findAxisLabel(r),t,i,this.element.offsetWidth,this.element.id+"_EJ2_AxisLabel_Tooltip",qt(this.element.id+"_Secondary_Element"),o,n)}else Je(this.element.id+"_EJ2_AxisLabel_Tooltip")},i.prototype.findAxisLabel=function(e){var t;return e.indexOf("AxisLabel")>-1?(t=e.replace(this.element.id,"").replace("AxisLabel_","").split("_"),this.axisCollections[parseInt(t[0],10)].visibleLabels[parseInt(t[1],10)].originalText):(t=e.replace(this.element.id,"").replace("Axis_MultiLevelLabel_Level_","").replace("Text_","").split("_"),this.axisCollections[parseInt(t[0],10)].multiLevelLabels[parseInt(t[1],10)].categories[parseInt(t[2],10)].text)},i.prototype.chartOnMouseDown=function(e){var i,o,r,n,a=this.FindXYPointValue(this.mouseX,this.mouseY),l=t.Browser.isDevice?20:30,s=this.element.getBoundingClientRect(),h=e.target;this.stockChart&&this.stockChart.zoomSettings.enablePan&&(this.allowPan=!0),this.trigger(te,{target:h.id,x:this.mouseX,y:this.mouseY,axisData:a}),"touchstart"===e.type?(this.isTouch=!0,i=(n=e).changedTouches[0].clientX,o=n.changedTouches[0].clientY,r=n.target):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY,r=e.target);var c=qt(this.svgId).getBoundingClientRect();return this.mouseDownX=this.previousMouseMoveX=i-s.left-Math.max(c.left-s.left,0),this.mouseDownY=this.previousMouseMoveY=o-s.top-Math.max(c.top-s.top,0),this.isTouch&&(this.isDoubleTap=(new Date).getTime()<this.threshold&&-1===r.id.indexOf(this.element.id+"_Zooming_")&&(this.mouseDownX-l>=this.mouseX||this.mouseDownX+l>=this.mouseX)&&(this.mouseDownY-l>=this.mouseY||this.mouseDownY+l>=this.mouseY)&&(this.mouseX-l>=this.mouseDownX||this.mouseX+l>=this.mouseDownX)&&(this.mouseY-l>=this.mouseDownY||this.mouseY+l>=this.mouseDownY)),this.dataEditingModule&&this.dataEditingModule.pointMouseDown(),this.notify(t.Browser.touchStartEvent,e),!1},i.prototype.mouseEnd=function(e){var t,i,o;return"touchend"===e.type?(i=(o=e).changedTouches[0].clientX,this.isTouch=!0,t=o.changedTouches[0].clientY):(t=e.clientY,i=e.clientX,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),this.setMouseXY(i,t),this.chartOnMouseUp(e),!1},i.prototype.chartOnMouseUp=function(e){var i=e.target,o=this.FindXYPointValue(this.mouseX,this.mouseY);return this.trigger(ie,{target:i.id,x:this.mouseX,y:this.mouseY,axisData:o}),this.isChartDrag=!1,this.allowPan=!1,this.isTouch&&(this.titleTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.axisTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.threshold=(new Date).getTime()+300),this.dataEditingModule&&this.dataEditingModule.pointMouseUp(),!this.enableCanvas&&this.seriesElements&&this.seriesElements.removeAttribute("clip-path"),this.notify(t.Browser.touchEndEvent,e),!1},i.prototype.setCulture=function(){this.intl=new t.Internationalization,this.setLocaleConstants(),this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},i.prototype.setAnnotationValue=function(e,t){var i,o=qt(this.element.id+"_Annotation_Collections"),r=this.annotations[e];null!==t&&(r.content=t,o?(Je(this.element.id+"_Annotation_"+e),i=this.createElement("div"),this.annotationModule.processAnnotation(r,e,i),o.appendChild(i.children[0])):this.annotationModule.renderAnnotations(qt(this.element.id+"_Secondary_Element")))},i.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ResetZoom:"Reset Zoom"}},i.prototype.setTheme=function(){this.themeStyle=ro(this.theme,this.enableCanvas,this)},i.prototype.requiredModules=function(){var e,t,i=this,o=[],r=this.series,n=!1,a=!1,l=!1,s=this.zoomSettings,h=!1;return this.chartAreaType=r.length>0&&("Polar"===r[0].type||"Radar"===r[0].type)?"PolarRadar":"Cartesian",this.tooltip.enable&&o.push({member:"Tooltip",args:[this]}),r.map(function(e){i.isLegend=i.legendSettings.visible&&(""!==e.name||!!i.isLegend),t=-1!==e.type.indexOf("100")?e.type.replace("100","")+"Series":e.type+"Series",n=e.errorBar.visible||n,l=e.marker.dataLabel.visible||l||"Pareto"===e.type&&e.paretoOptions.marker.dataLabel.visible,h=e.lastValueLabel.enable||h,a=e.dragSettings.enable||a,o.some(function(e){return e.member===t})||o.push({member:t,args:[i,r]}),"PolarRadar"===i.chartAreaType&&o.push({member:e.drawType+"Series",args:[i,r]}),"Pareto"===e.type&&(o.push({member:"ColumnSeries",args:[i,r]}),o.push({member:"LineSeries",args:[i,r]}))}),this.findIndicatorModules(o),this.findTrendLineModules(o),o=this.findAxisModule(o),e=this.annotations.some(function(e){return null!==e.content}),n&&o.push({member:"ErrorBar",args:[this,r]}),this.isLegend&&o.push({member:"Legend",args:[this]}),(this.enableExport||this.allowExport)&&o.push({member:"Export",args:[this]}),"PolarRadar"!==this.chartAreaType&&this.crosshair.enable&&o.push({member:"Crosshair",args:[this]}),"PolarRadar"!==this.chartAreaType&&!this.scrollSettingEnabled&&(s.enableSelectionZooming||s.enableMouseWheelZooming||s.enablePinchZooming||s.enablePan||s.enableScrollbar||s.showToolbar)&&(o.push({member:"Zoom",args:[this,this.zoomSettings]}),s.enableScrollbar&&o.push({member:"ScrollBar",args:[this]})),"None"===this.selectionMode||"PolarRadar"===this.chartAreaType&&this.selectionMode.indexOf("Drag")>-1||o.push({member:"Selection",args:[this]}),("None"!==this.highlightMode||this.legendSettings.enableHighlight)&&o.push({member:"Highlight",args:[this]}),(l||this.stackLabels.visible)&&o.push({member:"DataLabel",args:[this,r]}),h&&o.push({member:"LastValueLabel",args:[this,r]}),a&&o.push({member:"DataEditing",args:[this]}),e&&o.push({member:"Annotation",args:[this]}),o},i.prototype.findAxisModule=function(e){var t=[];t.push(this.primaryXAxis),t.push(this.primaryYAxis);for(var i=!1,o=!1,r=!1,n=!1,a=!1,l=!1,s=0,h=t=t.concat(this.axes);s<h.length;s++){var c=h[s];i="DateTime"===c.valueType||i,o="Category"===c.valueType||o,r="Logarithmic"===c.valueType||r,a="DateTimeCategory"===c.valueType||a,n=this.findStriplineVisibility(c.stripLines)||n,l=c.multiLevelLabels.length>0||l,this.scrollSettingEnabled=!!c.scrollbarSettings.enable||this.scrollSettingEnabled}return i&&e.push({member:"DateTime",args:[this]}),o&&e.push({member:"Category",args:[this]}),r&&e.push({member:"Logarithmic",args:[this]}),n&&e.push({member:"StripLine",args:[this]}),l&&e.push({member:"MultiLevelLabel",args:[this]}),a&&e.push({member:"DateTimeCategory",args:[this]}),this.scrollSettingEnabled&&e.push({member:"ScrollBar",args:[this]}),e},i.prototype.findIndicatorModules=function(e){var t,i,o=this.indicators;if(this.indicators.length){e.push({member:"LineSeries",args:[this]}),o.map(function(e){t=t||"Macd"===e.type,i=i||"BollingerBands"===e.type}),t&&e.push({member:"ColumnSeries",args:[this]}),i&&e.push({member:"RangeAreaSeries",args:[this]}),i&&e.push({member:"SplineRangeAreaSeries",args:[this]});for(var r=0,n=this.indicators;r<n.length;r++){var a=n[r];e.push({member:a.type+"Indicator",args:[this]})}}},i.prototype.findTrendLineModules=function(e){for(var t,i,o=this,r=function(r){var a;r.trendlines.map(function(e){a=a||o.getActualProperties(e).marker&&o.getActualProperties(e).marker.visible,t=!(!t&&"Linear"!==e.type&&"MovingAverage"!==e.type),i=!(!i&&t&&"Exponential"!==e.type&&"Logarithmic"!==e.type&&"Power"!==e.type&&"Polynomial"!==e.type)}),a&&e.push({member:"Marker",args:[n,r]})},n=this,a=0,l=this.series;a<l.length;a++){r(l[a])}(t||i)&&e.push({member:"TrendLine",args:[this]}),t&&e.push({member:"LineSeries",args:[this]}),i&&e.push({member:"SplineSeries",args:[this]})},i.prototype.findStriplineVisibility=function(e){for(var t=!1,i=0,o=e;i<o.length;i++){if(o[i].visible){t=!0;break}}return t},i.prototype.removeSvg=function(){if(this.redraw)return null;if(this.enableCanvas&&this.svgObject&&"CANVAS"===this.svgObject.tagName)return this.renderer.clearRect(new R.Rect(0,0,this.availableSize.width,this.availableSize.height)),this.svgObject.parentNode&&(0,t.remove)(this.svgObject),null;Je(this.element.id+"_Secondary_Element"),this.isReact&&this.clearTemplate();var e=0;if(this.zoomModule&&this.zoomModule.pinchTarget&&(this.zoomModule.pinchTarget.id="",this.zoomModule.pinchTarget.setAttribute("opacity","0"),this.svgObject.appendChild(this.zoomModule.pinchTarget),e=1),this.svgObject){for(;this.svgObject.childNodes.length>e;)this.svgObject.removeChild(this.svgObject.firstChild);this.svgObject.hasChildNodes()||!this.svgObject.parentNode||this.stockChart||(0,t.remove)(this.svgObject)}this.trendLineElements=null},i.prototype.refreshDefinition=function(e){for(var t=0,i=e;t<i.length;t++){i[t].axes=[]}},i.prototype.refreshAxis=function(){var e=this.primaryXAxis;e.rect=new R.Rect(void 0,void 0,0,0),(e=this.primaryYAxis).isStack100=!1,e.rect=new R.Rect(void 0,void 0,0,0);for(var t=0,i=this.axes;t<i.length;t++){(e=i[t]).rect=new R.Rect(void 0,void 0,0,0),e.isStack100=!1}if(this.paretoSeriesModule&&this.series[0]&&"Pareto"===this.series[0].type)for(var o=0,r=this.paretoSeriesModule.paretoAxes;o<r.length;o++){(e=r[o]).rect=new R.Rect(void 0,void 0,0,0),e.isStack100=!1}},i.prototype.axisChange=function(e){return!(!e.name&&!e.valueType)&&(this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(),!0)},i.prototype.getVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},i.prototype.refreshLiveData=function(){this.calculateVisibleSeries(),this.initTechnicalIndicators(),this.initTrendLines(),this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(!1),this.enableCanvas?this.createChartSvg():this.removeSvg(),this.refreshAxis(),this.refreshBound(),this.trigger("loaded",{chart:this})},i.prototype.removeStyles=function(){Je(this.element.id+"_ej2_chart_selection"),Je(this.element.id+"_ej2_chart_highlight")},i.prototype.mouseMoveEvent=function(){if(this.tooltip.enable&&null!==this.previousPageX&&null!==this.previousPageY){var e=document.createEvent("MouseEvent");e.initMouseEvent("mousemove",!0,!1,window,1,100,100,this.previousPageX,this.previousPageY,!1,!1,!1,!1,0,null),this.element.dispatchEvent(e)}},i.prototype.showTooltip=function(e,t,i){if(void 0===i&&(i=!1),i)for(var o=0,r=this.visibleSeries;o<r.length;o++)for(var n=r[o],a=0,l=n.points;a<l.length;a++){var s=l[a],h="DateTime"===n.xAxis.valueType?s.xValue:s.x,c=e;if("DateTime"===n.xAxis.valueType&&(c=new Date(c).getTime()),e===h&&t===s.yValue){this.mouseX=s.regions[0].x+this.chartAxisLayoutPanel.seriesClipRect.x,this.mouseY=s.regions[0].y+this.chartAxisLayoutPanel.seriesClipRect.y,this.tooltipModule.tooltip(),this.markerRender.mouseMoveHandler();break}}else this.isTouch&&(this.startMove=!0),this.mouseX=e,this.mouseY=t,this.tooltipModule.mouseMoveHandler(),this.markerRender.mouseMoveHandler()},i.prototype.hideTooltip=function(){this.tooltipModule.removeTooltip(t.Browser.isDevice?2e3:1e3)},i.prototype.showCrosshair=function(e,t){this.mouseX=e,this.mouseY=t,this.isCrosshair=!1,Pt(this.mouseX,this.mouseY,this.chartAxisLayoutPanel.seriesClipRect)?this.crosshairModule.crosshair():this.hideCrosshair(),this.isCrosshair=!0},i.prototype.hideCrosshair=function(){this.crosshairModule.removeCrosshair(t.Browser.isDevice?2e3:1e3)},i.prototype.sanitize=function(e){return this.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(e):e},i.prototype.onPropertyChanged=function(e,i){var o,r=!1,n=!1;this.animateSeries=!1;var a=!1,l=!1;if(!this.delayRedraw&&!this.zoomRedraw){for(var s=0,h=Object.keys(e);s<h.length;s++){var c=h[s];switch(a=a||"primaryXAxis"!==c&&"primaryYAxis"!==c&&"axes"!==c,l&&a&&(this.redraw=!1),c){case"primaryXAxis":o=e.primaryXAxis,n=this.axisChange(o),e.primaryXAxis.edgeLabelPlacement&&(r=!0),e.primaryXAxis.crosshairTooltip||(n=!0),e.primaryXAxis.scrollbarSettings&&(n=!0),(0,t.isNullOrUndefined)(o.isInversed)&&(0,t.isNullOrUndefined)(o.opposedPosition)||this.primaryXAxis.setIsInversedAndOpposedPosition(),this.primaryXAxis.zoomingScrollBar&&this.primaryXAxis.zoomingScrollBar.isScrollUI||!this.zoomModule||(0,t.isNullOrUndefined)(o.zoomFactor)&&(0,t.isNullOrUndefined)(o.zoomPosition)||(this.redraw=this.zoomSettings.enableAnimation&&!a,l=this.zoomSettings.enableAnimation&&!a),e.primaryXAxis.crosshairTooltip&&(e.primaryXAxis.crosshairTooltip.enable||(Je(this.element.id+"_axis_tooltip_0"),Je(this.element.id+"_axis_tooltip_text_0")));break;case"primaryYAxis":o=e.primaryYAxis,n=this.axisChange(o),e.primaryYAxis.edgeLabelPlacement&&(r=!0),e.primaryYAxis.crosshairTooltip||(n=!0),e.primaryYAxis.scrollbarSettings&&(n=!0),(0,t.isNullOrUndefined)(o.isInversed)&&(0,t.isNullOrUndefined)(o.opposedPosition)||this.primaryYAxis.setIsInversedAndOpposedPosition(),this.primaryYAxis.zoomingScrollBar&&this.primaryYAxis.zoomingScrollBar.isScrollUI||!this.zoomModule||(0,t.isNullOrUndefined)(o.zoomFactor)&&(0,t.isNullOrUndefined)(o.zoomPosition)||(this.redraw=this.zoomSettings.enableAnimation&&!a,l=this.zoomSettings.enableAnimation&&!a),e.primaryYAxis.crosshairTooltip&&(e.primaryYAxis.crosshairTooltip.enable||(Je(this.element.id+"_axis_tooltip_1"),Je(this.element.id+"_axis_tooltip_text_1")));break;case"axes":for(var d=0,p=Object.keys(e.axes);d<p.length;d++){var u=p[d];o=e.axes[u],n=n||this.axisChange(o),o.crosshairTooltip||(n=!0),o.scrollbarSettings&&(n=!0),(0,t.isNullOrUndefined)(o.isInversed)&&(0,t.isNullOrUndefined)(o.opposedPosition)||this.axes[u].setIsInversedAndOpposedPosition(),this.axes[u].zoomingScrollBar&&this.axes[u].zoomingScrollBar.isScrollUI||!this.zoomModule||(0,t.isNullOrUndefined)(o.zoomFactor)&&(0,t.isNullOrUndefined)(o.zoomPosition)||(this.redraw=this.zoomSettings.enableAnimation&&!a,l=this.zoomSettings.enableAnimation&&!a),o.crosshairTooltip&&(o.crosshairTooltip.enable||(Je(this.element.id+"_axis_tooltip_"+this.axes[u].index),Je(this.element.id+"_axis_tooltip_text_"+this.axes[u].index)))}break;case"height":case"width":this.createChartSvg(),n=!0;break;case"subTitle":case"title":case"indicators":n=!0;break;case"titleStyle":e.titleStyle&&(e.titleStyle.size||e.titleStyle.textOverflow||e.titleStyle.position)?n=!0:r=!0;break;case"subTitleStyle":e.subTitleStyle&&(e.subTitleStyle.size||e.subTitleStyle.textOverflow)?n=!0:r=!0;break;case"border":case"background":r=!0;break;case"dataSource":this.processData(!1),n=!0;break;case"enableCanvas":case"enableRtl":case"locale":case"currencyCode":this.refresh();break;case"series":for(var g=this.series.length,m=!1,y=void 0,f=0;f<g;f++){if(y=e.series[f],!(0,t.isNullOrUndefined)(y)&&y.lastValueLabel&&this.series[f].lastValueLabel.enable&&this.lastValueLabelModule){this.lastValueLabelCollections=[];var v=(0,t.extend)(this.series[f].lastValueLabel,y.lastValueLabel);this.lastValueLabelModule.render(this.series[f],this,v,!0),this.series[f].lastValueLabelElement&&ni(this.enableCanvas,this.lastValueLabelElements,this.series[f].lastValueLabelElement,!0)}else!(0,t.isNullOrUndefined)(y)&&y.lastValueLabel&&!y.lastValueLabel.enable&&this.series[f]&&this.series[f].lastValueLabelElement&&(Je(this.series[f].lastValueLabelElement.id),this.series[f].lastValueLabelElement=null);!(0,t.isNullOrUndefined)(y)&&(y.dataSource||y.query||y.errorBar||y.xName||y.yName||y.size||y.high||y.low||y.open||y.close||y.trendlines||y.fill||y.name||y.marker||y.width||y.binInterval||y.type||y.visible!==i.series[f].visible||y.legendShape||y.emptyPointSettings||y.opacity||y.columnWidth||y.columnSpacing||y.opacity||y.dashArray||y.bearFillColor||y.bullFillColor)&&((0,t.extend)(this.getVisibleSeries(this.visibleSeries,f),y,null,!0),m=!0)}m&&(this.calculateAreaType(),this.calculateVisibleSeries(),this.initTechnicalIndicators(),this.initTrendLines(),this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(!1),n=!0);break;case"zoomSettings":(e.zoomSettings.enableScrollbar||i.zoomSettings.enableScrollbar)&&(n=!0),r=!0;break;case"chartArea":e.chartArea.border&&e.chartArea.border.width&&(n=!0),r=!0;break;case"legendSettings":e.legendSettings.background&&e.legendSettings.opacity||(n=!0),r=!0;break;case"palettes":this.calculateVisibleSeries(),r=!0;break;case"selectedDataIndexes":this.selectionModule?(this.selectionModule.currentMode=this.selectionMode,this.selectionModule.selectedDataIndexes=this.selectedDataIndexes,this.selectionModule.styleId=this.element.id+"_ej2_chart_selection",this.selectionModule.redrawSelection(this,i.selectionMode,!0)):this.highlightModule&&(this.highlightModule.currentMode=this.highlightMode,this.highlightModule.highlightDataIndexes=this.selectedDataIndexes,this.highlightModule.styleId=this.element.id+"_ej2_chart_highlight",this.highlightModule.redrawSelection(this,i.selectionMode,!0));break;case"selectionMode":this.selectionModule&&e.selectionMode&&-1===e.selectionMode.indexOf("Drag")&&(this.selectionModule.currentMode=this.selectionMode,"None"===i.selectionMode&&this.selectionModule.invokeSelection(this),this.selectionModule.styleId=this.element.id+"_ej2_chart_selection",this.selectionModule.redrawSelection(this,i.selectionMode,!0));break;case"isMultiSelect":this.selectionModule&&!e.isMultiSelect&&this.selectionModule.selectedDataIndexes.length>1&&(this.selectionModule.currentMode=this.selectionMode,this.selectionModule.styleId=this.element.id+"_ej2_chart_selection",this.selectionModule.redrawSelection(this,i.selectionMode));break;case"highlightMode":case"selectionPattern":case"highlightPattern":this.removeStyles(),r=!0;break;case"theme":this.animateSeries=!0;break;case"tooltip":this.tooltipModule&&(this.tooltipModule.previousPoints=[],this.tooltip.template&&(this.tooltipModule.template=this.tooltip.template))}}!n&&r&&(this.rotatedDataLabelCollections=[],this.removeSvg(),this.renderElements(),this.trigger("loaded",{chart:this})),n&&(this.enableCanvas?this.createChartSvg():this.removeSvg(),this.isReact&&this.clearTemplate(),this.dragY=null,this.refreshAxis(),this.refreshBound(),this.trigger("loaded",{chart:this}),this.redraw=!1,this.animated=!1)}this.zoomRedraw=!1},No([(0,t.Property)(null)],i.prototype,"noDataTemplate",void 0),No([(0,t.Property)(null)],i.prototype,"width",void 0),No([(0,t.Property)(null)],i.prototype,"height",void 0),No([(0,t.Property)("")],i.prototype,"title",void 0),No([(0,t.Property)("")],i.prototype,"dataSource",void 0),No([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},F)],i.prototype,"titleStyle",void 0),No([(0,t.Property)("")],i.prototype,"subTitle",void 0),No([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null,accessibility:{focusable:!1}},F)],i.prototype,"subTitleStyle",void 0),No([(0,t.Complex)({},m)],i.prototype,"margin",void 0),No([(0,t.Complex)({color:"#DDDDDD",width:0},u)],i.prototype,"border",void 0),No([(0,t.Property)(null)],i.prototype,"background",void 0),No([(0,t.Complex)({border:{color:null,width:.5},background:"transparent"},L)],i.prototype,"chartArea",void 0),No([(0,t.Property)(!1)],i.prototype,"enableHtmlSanitizer",void 0),No([(0,t.Complex)({name:"primaryXAxis"},Xe)],i.prototype,"primaryXAxis",void 0),No([(0,t.Complex)({name:"primaryYAxis"},Xe)],i.prototype,"primaryYAxis",void 0),No([(0,t.Collection)([{}],ze)],i.prototype,"rows",void 0),No([(0,t.Collection)([{}],Be)],i.prototype,"columns",void 0),No([(0,t.Collection)([{}],Xe)],i.prototype,"axes",void 0),No([(0,t.Collection)([{}],Co)],i.prototype,"series",void 0),No([(0,t.Collection)([{accessibility:{focusable:!1}}],Pe)],i.prototype,"annotations",void 0),No([(0,t.Property)([])],i.prototype,"palettes",void 0),No([(0,t.Property)("Material")],i.prototype,"theme",void 0),No([(0,t.Complex)({},f)],i.prototype,"tooltip",void 0),No([(0,t.Complex)({},Ho)],i.prototype,"crosshair",void 0),No([(0,t.Complex)({},Ro)],i.prototype,"legendSettings",void 0),No([(0,t.Collection)([{}],Vo)],i.prototype,"rangeColorSettings",void 0),No([(0,t.Complex)({},Wo)],i.prototype,"zoomSettings",void 0),No([(0,t.Property)("")],i.prototype,"highlightColor",void 0),No([(0,t.Property)("None")],i.prototype,"selectionMode",void 0),No([(0,t.Property)("None")],i.prototype,"highlightMode",void 0),No([(0,t.Property)("None")],i.prototype,"selectionPattern",void 0),No([(0,t.Property)("None")],i.prototype,"highlightPattern",void 0),No([(0,t.Property)(!1)],i.prototype,"isMultiSelect",void 0),No([(0,t.Property)(!1)],i.prototype,"allowMultiSelection",void 0),No([(0,t.Property)(!0)],i.prototype,"enableExport",void 0),No([(0,t.Property)(!1)],i.prototype,"allowExport",void 0),No([(0,t.Collection)([],b)],i.prototype,"selectedDataIndexes",void 0),No([(0,t.Property)(!1)],i.prototype,"useGroupingSeparator",void 0),No([(0,t.Property)(!1)],i.prototype,"enableAutoIntervalOnBothAxis",void 0),No([(0,t.Property)(!1)],i.prototype,"isTransposed",void 0),No([(0,t.Property)(!1)],i.prototype,"enableCanvas",void 0),No([(0,t.Property)(null)],i.prototype,"backgroundImage",void 0),No([(0,t.Collection)([],Oo)],i.prototype,"indicators",void 0),No([(0,t.Property)(!0)],i.prototype,"enableAnimation",void 0),No([(0,t.Property)(null)],i.prototype,"description",void 0),No([(0,t.Property)(1)],i.prototype,"tabIndex",void 0),No([(0,t.Property)(!0)],i.prototype,"enableSideBySidePlacement",void 0),No([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),No([(0,t.Property)(null)],i.prototype,"focusBorderColor",void 0),No([(0,t.Property)(1.5)],i.prototype,"focusBorderWidth",void 0),No([(0,t.Property)(0)],i.prototype,"focusBorderMargin",void 0),No([(0,t.Complex)({},_e)],i.prototype,"stackLabels",void 0),No([(0,t.Event)()],i.prototype,"resized",void 0),No([(0,t.Event)()],i.prototype,"beforeResize",void 0),No([(0,t.Event)()],i.prototype,"annotationRender",void 0),No([(0,t.Event)()],i.prototype,"beforePrint",void 0),No([(0,t.Event)()],i.prototype,"loaded",void 0),No([(0,t.Event)()],i.prototype,"beforeExport",void 0),No([(0,t.Event)()],i.prototype,"afterExport",void 0),No([(0,t.Event)()],i.prototype,"load",void 0),No([(0,t.Event)()],i.prototype,"animationComplete",void 0),No([(0,t.Event)()],i.prototype,"legendRender",void 0),No([(0,t.Event)()],i.prototype,"textRender",void 0),No([(0,t.Event)()],i.prototype,"pointRender",void 0),No([(0,t.Event)()],i.prototype,"seriesRender",void 0),No([(0,t.Event)()],i.prototype,"axisLabelRender",void 0),No([(0,t.Event)()],i.prototype,"axisLabelClick",void 0),No([(0,t.Event)()],i.prototype,"axisRangeCalculated",void 0),No([(0,t.Event)()],i.prototype,"axisMultiLabelRender",void 0),No([(0,t.Event)()],i.prototype,"legendClick",void 0),No([(0,t.Event)()],i.prototype,"multiLevelLabelClick",void 0),No([(0,t.Event)()],i.prototype,"tooltipRender",void 0),No([(0,t.Event)()],i.prototype,"sharedTooltipRender",void 0),No([(0,t.Event)()],i.prototype,"chartMouseMove",void 0),No([(0,t.Event)()],i.prototype,"chartMouseClick",void 0),No([(0,t.Event)()],i.prototype,"chartDoubleClick",void 0),No([(0,t.Event)()],i.prototype,"pointClick",void 0),No([(0,t.Event)()],i.prototype,"pointDoubleClick",void 0),No([(0,t.Event)()],i.prototype,"pointMove",void 0),No([(0,t.Event)()],i.prototype,"chartMouseLeave",void 0),No([(0,t.Event)()],i.prototype,"chartMouseDown",void 0),No([(0,t.Event)()],i.prototype,"chartMouseUp",void 0),No([(0,t.Event)()],i.prototype,"dragComplete",void 0),No([(0,t.Event)()],i.prototype,"selectionComplete",void 0),No([(0,t.Event)()],i.prototype,"zoomComplete",void 0),No([(0,t.Event)()],i.prototype,"onZooming",void 0),No([(0,t.Event)()],i.prototype,"scrollStart",void 0),No([(0,t.Event)()],i.prototype,"scrollEnd",void 0),No([(0,t.Event)()],i.prototype,"scrollChanged",void 0),No([(0,t.Event)()],i.prototype,"dragStart",void 0),No([(0,t.Event)()],i.prototype,"drag",void 0),No([(0,t.Event)()],i.prototype,"dragEnd",void 0),No([(0,t.Property)("USD")],i.prototype,"currencyCode",void 0),i=No([t.NotifyPropertyChanges],i)}(t.Component),Uo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uo(t,e),t.prototype.calculateDateTimeNiceInterval=function(e,t,i,o,r){void 0===r&&(r=!0);var n,a=new Date(i),l=new Date(o),s=Math.abs((a.getTime()-l.getTime())/864e5);switch(e.actualIntervalType=e.intervalType,e.intervalType){case"Years":n=this.calculateNumericNiceInterval(e,s/365,t);break;case"Quarter":n=this.calculateNumericNiceInterval(e,s/365*4,t);break;case"Months":n=this.calculateNumericNiceInterval(e,s/30,t);break;case"Weeks":n=this.calculateNumericNiceInterval(e,s/7,t);break;case"Days":n=this.calculateNumericNiceInterval(e,s,t);break;case"Hours":n=this.calculateNumericNiceInterval(e,24*s,t);break;case"Minutes":n=this.calculateNumericNiceInterval(e,24*s*60,t);break;case"Seconds":n=this.calculateNumericNiceInterval(e,24*s*60*60,t);break;case"Auto":return(n=this.calculateNumericNiceInterval(e,s/365,t))>=1?(e.actualIntervalType="Years",n):(n=this.calculateNumericNiceInterval(e,s/30,t))>=1?(e.actualIntervalType="Months",n):(n=this.calculateNumericNiceInterval(e,s/7,t))>=1&&!r?(e.actualIntervalType="Weeks",n):(n=this.calculateNumericNiceInterval(e,s,t))>=1?(e.actualIntervalType="Days",n):(n=this.calculateNumericNiceInterval(e,24*s,t))>=1?(e.actualIntervalType="Hours",n):(n=this.calculateNumericNiceInterval(e,24*s*60,t))>=1?(e.actualIntervalType="Minutes",n):(n=this.calculateNumericNiceInterval(e,24*s*60*60,t),e.actualIntervalType="Seconds",n)}return n},t.prototype.getSkeleton=function(e,t,i){var o=e.actualIntervalType;return e.skeleton?e.skeleton:"Years"===o?e.isChart?"DateTime"===e.valueType&&e.isIntervalInDecimal?"y":"yMMM":"y":"Quarter"===o?"yMMM":"Months"===o?e.isChart?"MMMd":"MMM":"Weeks"===o?"MEd":"Days"===o?e.isChart?"DateTime"===e.valueType?"MMMd":"yMd":"MMMd":"Hours"===o?e.isChart?"DateTime"===e.valueType?"Hm":"EHm":"h":"Minutes"===o?e.isChart?"Hms":"hm":e.isChart?"Hms":"hms"},t.prototype.findCustomFormats=function(e){var t=e.labelFormat?e.labelFormat:"";return!e.isChart||e.skeleton||"Months"!==e.actualIntervalType||t||(t="DateTime"===e.valueType?"MMM yyyy":"yMMM"),t},t}(E),Go=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Yo=function(e){function i(t){return e.call(this,t)||this}return Go(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){var i={skeleton:"full",type:"dateTime"},o=this.chart.intl.getDateParser(i),r=this.chart.intl.getDateFormat(i);null!==e.minimum?this.min=Date.parse(o(r(new Date(ao.DataUtil.parse.parseJson({val:e.minimum}).val)))):null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=Date.parse(o(r(new Date(1970,1,1))))),null!==e.maximum?this.max=Date.parse(o(r(new Date(ao.DataUtil.parse.parseJson({val:e.maximum}).val)))):null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=Date.parse(o(r(new Date(1970,5,1))))),this.min===this.max&&(this.max=this.max+2592e6,this.min=this.min-2592e6),e.actualRange={},e.doubleRange=new T(this.min,this.max);var n=this.calculateDateTimeNiceInterval(e,t,e.doubleRange.start,e.doubleRange.end);e.interval?e.actualRange.interval=e.interval:e.actualRange.interval=n,e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end},i.prototype.applyRangePadding=function(e,t){var i,o;this.min=e.actualRange.min,this.max=e.actualRange.max;var r=e.actualRange.interval;if(!Ht(e)){var n=e.getRangePadding(this.chart);i=new Date(this.min),o=new Date(this.max);var a=e.actualIntervalType;if("None"===n)this.min=i.getTime(),this.max=o.getTime();else if("Additional"===n||"Round"===n)switch(a){case"Years":this.getYear(i,o,n,r);break;case"Months":this.getMonth(i,o,n,r);break;case"Days":this.getDay(i,o,n,r);break;case"Hours":this.getHour(i,o,n,r);break;case"Minutes":var l=i.getMinutes()/r*r,s=o.getMinutes()+(i.getMinutes()-l);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,59).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s+r,0).getTime());break;case"Seconds":var h=i.getSeconds()/r*r,c=o.getSeconds()+(i.getSeconds()-h);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c,0).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c+r,0).getTime())}}e.actualRange.min=(e.minimum,this.min),e.actualRange.max=(e.maximum,this.max),e.actualRange.delta=e.actualRange.max-e.actualRange.min,e.doubleRange=new T(e.actualRange.min,e.actualRange.max),this.calculateVisibleRange(t,e)},i.prototype.getYear=function(e,t,i,o){var r=e.getFullYear(),n=t.getFullYear();"Additional"===i?(this.min=new Date(r-o,1,1,0,0,0).getTime(),this.max=new Date(n+o,1,1,0,0,0).getTime()):(this.min=new Date(r,0,0,0,0,0).getTime(),this.max=new Date(n,11,30,23,59,59).getTime())},i.prototype.getMonth=function(e,t,i,o){var r=e.getMonth(),n=t.getMonth();"Round"===i?(this.min=new Date(e.getFullYear(),r,0,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n,new Date(t.getFullYear(),t.getMonth(),0).getDate(),23,59,59).getTime()):(this.min=new Date(e.getFullYear(),r+-o,1,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n+o,2===n?28:30,0,0,0).getTime())},i.prototype.getDay=function(e,t,i,o){var r=e.getDate(),n=t.getDate();"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),r,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n,23,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),r+-o,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n+o,0,0,0).getTime())},i.prototype.getHour=function(e,t,i,o){var r=e.getHours()/o*o,n=t.getHours()+(e.getHours()-r);"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r+-o,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n+o,0,0).getTime())},i.prototype.calculateVisibleRange=function(e,i){i.visibleRange={min:i.actualRange.min,max:i.actualRange.max,interval:i.actualRange.interval,delta:i.actualRange.delta};var o=!(0,t.isNullOrUndefined)(i.zoomingScrollBar)&&i.zoomingScrollBar.isLazyLoad;Wt(i)&&!o&&(i.calculateVisibleRangeOnZooming(),i.visibleRange.interval=i.enableAutoIntervalOnZooming?this.calculateDateTimeNiceInterval(i,e,i.visibleRange.min,i.visibleRange.max):i.visibleRange.interval),i.dateTimeInterval=this.increaseDateTimeInterval(i,i.visibleRange.min,i.visibleRange.interval).getTime()-i.visibleRange.min,i.triggerRangeRender(this.chart,i.visibleRange.min,i.visibleRange.max,i.visibleRange.interval)},i.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r,n=e.visibleRange.min,a=e.visibleLabels;for(null===e.minimum&&(n=this.alignRangeStart(e,n,e.visibleRange.interval).getTime()),this.startValue&&this.startValue<n&&i.zoomModule&&i.zoomModule.isPanning?n=this.startValue:this.startValue=n;n<=e.visibleRange.max;){if(o=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),r=a.length?e.visibleLabels[a.length-1].value:n,e.format=i.intl.getDateFormat({format:this.findCustomFormats(e),type:kt(e.skeletonType),skeleton:this.getSkeleton(e,n,r)}),e.startLabel=e.format(new Date(e.visibleRange.min)),e.endLabel=e.format(new Date(e.visibleRange.max)),ot(n,e.visibleRange))this.increaseDateTimeInterval(e,n,e.visibleRange.interval).getTime()>e.visibleRange.max&&(e.endLabel=e.format(new Date(n))),Vt(i,n,e.format(new Date(n)),o,e);if(n===(n=this.increaseDateTimeInterval(e,n,e.visibleRange.interval).getTime()))break}"Months"!==e.actualIntervalType&&"Days"!==e.actualIntervalType||!e.isChart||(e.format=i.intl.getDateFormat({format:e.labelFormat||("Months"!==e.actualIntervalType||e.skeleton?"":"y MMM"),type:kt(e.skeletonType),skeleton:e.skeleton||("Days"===e.actualIntervalType?"MMMd":"")})),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.increaseDateTimeInterval=function(e,t,i){var o=new Date(t);e.interval?(e.isIntervalInDecimal=i%1==0,e.visibleRange.interval=i):(i=Math.ceil(i),e.visibleRange.interval=i);var r=e.actualIntervalType;if(e.isIntervalInDecimal)switch(r){case"Years":return o.setFullYear(o.getFullYear()+i),o;case"Quarter":return o.setMonth(o.getMonth()+3*i),o;case"Months":return o.setMonth(o.getMonth()+i),o;case"Weeks":return o.setDate(o.getDate()+7*i),o;case"Days":return o.setDate(o.getDate()+i),o;case"Hours":return o.setHours(o.getHours()+i),o;case"Minutes":return o.setMinutes(o.getMinutes()+i),o;case"Seconds":return o.setSeconds(o.getSeconds()+i),o}else o=this.getDecimalInterval(o,i,r);return o},i.prototype.alignRangeStart=function(e,t,i){var o=new Date(t);switch(e.actualIntervalType){case"Years":var r=Math.floor(Math.floor(o.getFullYear()/i)*i);return o=new Date(r,o.getMonth(),o.getDate(),0,0,0);case"Months":var n=Math.floor(Math.floor(o.getMonth()/i)*i);return o=new Date(o.getFullYear(),n,o.getDate(),0,0,0);case"Days":var a=Math.floor(Math.floor(o.getDate()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),a,0,0,0);case"Hours":var l=Math.floor(Math.floor(o.getHours()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),l,0,0);case"Minutes":var s=Math.floor(Math.floor(o.getMinutes()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,0,0);case"Seconds":var h=Math.floor(Math.floor(o.getSeconds()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),h,0)}return o},i.prototype.getDecimalInterval=function(e,t,i){var o=Math.floor(t),r=t-o;switch(i){case"Years":var n=Math.round(12*r);return e.setFullYear(e.getFullYear()+o),e.setMonth(e.getMonth()+n),e;case"Quarter":return e.setMonth(e.getMonth()+3*t),e;case"Months":var a=Math.round(30*r);return e.setMonth(e.getMonth()+o),e.setDate(e.getDate()+a),e;case"Weeks":return e.setDate(e.getDate()+7*t),e;case"Days":var l=Math.round(24*r);return e.setDate(e.getDate()+o),e.setHours(e.getHours()+l),e;case"Hours":var s=Math.round(60*r);return e.setHours(e.getHours()+o),e.setMinutes(e.getMinutes()+s),e;case"Minutes":var h=Math.round(60*r);return e.setMinutes(e.getMinutes()+o),e.setSeconds(e.getSeconds()+h),e;case"Seconds":var c=Math.round(1e3*r);return e.setSeconds(e.getSeconds()+o),e.setMilliseconds(e.getMilliseconds()+c),e}return e},i.prototype.getModuleName=function(){return"DateTime"},i.prototype.destroy=function(){},i}(Xo),Zo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),qo=function(e){function i(t){return e.call(this,t)||this}return Zo(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),e.actualRange={},e.interval?e.actualRange.interval=Math.ceil(e.interval):e.actualRange.interval=Math.max(1,Math.floor(e.doubleRange.delta/jt(t,e))),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end,e.actualRange.delta=e.doubleRange.delta},i.prototype.applyRangePadding=function(e,i){var o;e.series.forEach(function(i){o||(o=(i.type.indexOf("Column")>-1||i.type.indexOf("Bar")>-1)&&!(e.zoomFactor<1||e.zoomPosition>0)&&(0,t.isNullOrUndefined)(e.minimum)&&(0,t.isNullOrUndefined)(e.maximum))});var r="BetweenTicks"!==e.labelPlacement&&!o||this.chart.stockChart||"PolarRadar"===this.chart.chartAreaType?0:.5;r>0?(e.actualRange.min-=r,e.actualRange.max+=r):e.actualRange.max+=e.actualRange.max?0:.5,e.doubleRange=new T(e.actualRange.min,e.actualRange.max),e.actualRange.delta=e.doubleRange.delta,this.calculateVisibleRange(i,e)},i.prototype.calculateVisibleLabels=function(e){e.visibleLabels=[],e.visibleRange.interval=e.visibleRange.interval<1?1:e.visibleRange.interval;var i,o,r=Math.ceil(e.visibleRange.min);for((e.zoomFactor<1||e.zoomPosition>0)&&(r=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval),e.startLabel=e.labels[Math.round(e.visibleRange.min)],e.endLabel=e.labels[Math.floor(e.visibleRange.max)];r<=e.visibleRange.max;r+=e.visibleRange.interval)i=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),ot(r,e.visibleRange)&&e.labels.length>0&&(o=Math.round(r),Vt(this.chart,o,e.labels[o]?e.labels[o].toString():"",i,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Category"},i.prototype.destroy=function(){},i}(Xo),Qo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$o=function(e){function i(t){return e.call(this,t)||this}return Qo(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.calculateVisibleRange(e,t),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),this.min=this.min<0?0:this.min;var i=et(this.min,e.logBase);i=isFinite(i)?i:this.min;var o=1===this.max?1:et(this.max,e.logBase);o=isFinite(i)?o:this.max,this.min=Math.floor(i/1),e.series&&e.series.some(function(e){return(-1!==e.type.indexOf("Column")||-1!==e.type.indexOf("Bar"))&&-1===e.type.indexOf("Range")})&&(this.min=this.min<=0?+this.min-1:this.min),this.max=Math.ceil(o/1),this.max=this.max===this.min?this.max+1:this.max,e.actualRange.interval=e.interval||this.calculateLogNiceInterval(this.max-this.min,t,e),e.actualRange.min=this.min,e.actualRange.max=this.max,e.actualRange.delta=this.max-this.min},i.prototype.calculateVisibleRange=function(e,i){i.visibleRange={interval:i.actualRange.interval,max:i.actualRange.max,min:i.actualRange.min,delta:i.actualRange.delta};var o=!(0,t.isNullOrUndefined)(i.zoomingScrollBar)&&i.zoomingScrollBar.isLazyLoad;(i.zoomFactor<1||i.zoomPosition>0)&&!o&&(i.calculateVisibleRangeOnZooming(),i.visibleRange.interval=i.enableAutoIntervalOnZooming?this.calculateLogNiceInterval(i.doubleRange.delta,e,i):i.visibleRange.interval,i.visibleRange.interval=0===Math.floor(i.visibleRange.interval)?1:Math.floor(i.visibleRange.interval),i.triggerRangeRender(this.chart,i.visibleRange.min,i.visibleRange.max,i.visibleRange.interval))},i.prototype.calculateLogNiceInterval=function(e,t,i){var o=jt(t,i),r=e,n=Math.pow(i.logBase,Math.floor(et(r,10)));i.intervalDivs=r>=10?[10,5,2,1,.5,.2]:i.intervalDivs;for(var a=0,l=i.intervalDivs.length;a<l;a++){var s=n*i.intervalDivs[a];if(o<e/s)break;r=s}return r},i.prototype.calculateVisibleLabels=function(e,i){var o,r,n=e.visibleRange.min;e.visibleLabels=[],(e.zoomFactor<1||e.zoomPosition>0)&&(n=e.visibleRange.min-e.visibleRange.min%e.visibleRange.interval);var a=this.getFormat(e),l=null!==a.match("{value}"),s=Math.pow(e.logBase,e.visibleRange.min);for(e.format=i.intl.getNumberFormat({format:l?"":a,useGrouping:i.useGroupingSeparator,maximumFractionDigits:s<1?20:3}),e.startLabel=e.format(s<1?+s.toPrecision(1):s),e.endLabel=e.format(Math.pow(e.logBase,e.visibleRange.max));n<=e.visibleRange.max;n+=e.visibleRange.interval)o=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),ot(n,e.visibleRange)&&(r=Math.pow(e.logBase,n),Vt(this.chart,n,this.formatValue(e,l,a,r<1?+r.toPrecision(1):r),o,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Logarithmic"},i.prototype.destroy=function(){},i}(E),Ko=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jo=function(e){function i(t){return e.call(this,t)||this}return Ko(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.axisSize=e,this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.calculateVisibleLabels=function(e){var i;e.visibleLabels=[];e.labelPlacement;var o=0,r="rangeNavigator"===this.chart.getModuleName();this.axisSize=r?this.chart.availableSize:this.axisSize,(r||this.chart.stockChart)&&e.labels.sort(function(e,t){return Number(e)-Number(t)}),"Auto"===e.intervalType?this.calculateDateTimeNiceInterval(e,this.axisSize,parseInt(e.labels[0],10),parseInt(e.labels[e.labels.length-1],10)):e.actualIntervalType=e.intervalType,e.format=this.chart.intl.getDateFormat({format:e.labelFormat,type:kt(e.skeletonType),skeleton:this.getSkeleton(e,null,null)});for(var n=!r&&this.chart.stockChart?1:0,a=e.interval?e.interval:1;n<e.labels.length;n+=a)i=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),this.chart.stockChart||r?"Auto"===e.intervalType?(!r&&1===n||this.StartOfWeek(e.labels.map(Number)[n],e.labels.map(Number)[n-1],e,n,o)||e.isIndexed)&&ot(n,e.visibleRange)&&(Vt(this.chart,n,e.isIndexed?this.getIndexedAxisLabel(e.labels[n],e.format):e.format(new Date(e.labels.map(Number)[n])),i,e),o=n):(!r&&1===n||!this.sameInterval(e.labels.map(Number)[n],e.labels.map(Number)[n-1],e.actualIntervalType,n)||e.isIndexed)&&ot(n,e.visibleRange)&&(!r&&1===n||this.isMaximum(n,o,e))&&(Vt(this.chart,n,e.isIndexed?this.getIndexedAxisLabel(e.labels[n],e.format):e.format(new Date(e.labels.map(Number)[n])),i,e),o=n):this.sameInterval(e.labels.map(Number)[n],e.labels.map(Number)[n-1],e.actualIntervalType,n)&&!e.isIndexed||ot(n,e.visibleRange)&&Vt(this.chart,n,e.isIndexed?this.getIndexedAxisLabel(e.labels[n],e.format):e.format(new Date(e.labels.map(Number)[n])),i,e);e.startLabel=e.visibleLabels[0]?e.visibleLabels[0].text:"",e.endLabel=e.visibleLabels[e.visibleLabels.length-1]?e.visibleLabels[e.visibleLabels.length-1].text:"",e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getIndexedAxisLabel=function(e,t){for(var i=e.split(","),o=0;o<i.length;o++)i[o]=t(new Date(parseInt(i[o],10)));return i.join(", ")},i.prototype.sameInterval=function(e,t,i,o){var r;if(0===o)r=!1;else switch(i){case"Years":r=new Date(e).getFullYear()===new Date(t).getFullYear();break;case"Quarter":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&Math.floor(new Date(e).getMonth()/3)===Math.floor(new Date(t).getMonth()/3);break;case"Months":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&new Date(e).getMonth()===new Date(t).getMonth();break;case"Weeks":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&new Date(e).getMonth()===new Date(t).getMonth()&&Math.floor((new Date(e).getDate()-1)/7)===Math.floor((new Date(t).getDate()-1)/7);break;case"Days":r=Math.abs(e-t)<864e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Hours":r=Math.abs(e-t)<36e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Minutes":r=Math.abs(e-t)<6e4&&new Date(e).getMinutes()===new Date(t).getMinutes();break;case"Seconds":r=Math.abs(e-t)<1e3&&new Date(e).getDay()===new Date(t).getDay()}return r},i.prototype.StartOfWeek=function(e,t,i,o,r){if(0===o)return!0;var n=!1;if(i.labels.length>=30){var a=new Date(t),l=new Date(e);a.setDate(a.getDate()-a.getDay()),l.setDate(l.getDate()-l.getDay()),n=!(a.getTime()===l.getTime())&&this.isMaximum(o,r,i)}else n=this.isMaximum(o,r,i);return n},i.prototype.isMaximum=function(e,t,i){if(0===e)return!0;return yt(e,i)*i.rect.width-yt(t,i)*i.rect.width>=(i.labels.length>=15?100:50)},i.prototype.getModuleName=function(){return"DateTimeCategory"},i.prototype.destroy=function(){},i}(qo),er=function(){function e(){}return e.prototype.measureStripLine=function(e,t,i,o,r,n){var a,l,s=e.orientation,h="DateTime"===e.valueType;if(t.isRepeat&&null!==t.size)a=o,l=null;else if("DateTimeCategory"===e.valueType){var c=t.start,d=t.end;a=null!=c&&"number"!=typeof c?e.labels.indexOf(this.dateToMilliSeconds(c,n).toString()):c,l=null!=d&&"number"!=typeof d?e.labels.indexOf(this.dateToMilliSeconds(d,n).toString()):d}else a=null===t.start?null:h&&this.isCoreDate(t.start)?this.dateToMilliSeconds(t.start,n):+("Logarithmic"===e.valueType?et(t.start,e.logBase):t.start),l=null===t.end?null:h&&this.isCoreDate(t.start)?this.dateToMilliSeconds(t.end,n):+("Logarithmic"===e.valueType?et(t.end,e.logBase):t.end);var p=this.getFromTovalue(a,l,t.size,t.startFromAxis,e,t),u="Vertical"===s?(p.to-p.from)*e.rect.height:i.height,g="Horizontal"===s?(p.to-p.from)*e.rect.width:i.width,m="Vertical"===s?i.x:p.from*e.rect.width+e.rect.x,y="Horizontal"===s?i.y:e.rect.y+e.rect.height-("Pixel"===t.sizeType?p.from:p.to)*e.rect.height;if(t.isSegmented&&null!=t.segmentStart&&null!=t.segmentEnd&&"Pixel"!==t.sizeType){c=h&&this.isCoreDate(t.segmentStart)?this.dateToMilliSeconds(t.segmentStart,n):+t.segmentStart,d=h&&this.isCoreDate(t.segmentEnd)?this.dateToMilliSeconds(t.segmentEnd,n):+t.segmentEnd;var f=this.getFromTovalue(c,d,null,null,r,t);"Vertical"===r.orientation?(y=r.rect.y+r.rect.height-f.to*r.rect.height,u=(f.to-f.from)*r.rect.height):(m=f.from*r.rect.width+r.rect.x,g=(f.to-f.from)*r.rect.width)}return 0!==u&&0!==g||"Pixel"===t.sizeType&&(null!==t.start||t.startFromAxis)?new R.Rect(m,y,g,u):new R.Rect(0,0,0,0)},e.prototype.getFromTovalue=function(e,i,o,r,n,a){var l=!a.isRepeat&&r?n.visibleRange.min:e;"Double"!==n.valueType||null===o||r||null!=a.start||(l+=o);var s=this.getToValue(Math.max(e,(0,t.isNullOrUndefined)(i)?e:i),l,o,n,i,a);return l=this.findValue(l,n),s=this.findValue(s,n),{from:yt(n.isAxisInverse?s:l,n),to:yt(n.isAxisInverse?l:s,n)}},e.prototype.getToValue=function(e,t,i,o,r,n){var a=n.sizeType,l=null===r;if("DateTime"!==o.valueType)return"Pixel"===n.sizeType?t:l?t+i:e;var s=new Date(t);switch("Auto"===a&&(a=o.actualIntervalType,i*=o.visibleRange.interval),a){case"Years":return l?new Date(s.setFullYear(s.getFullYear()+i)):e;case"Months":return l?new Date(s.setMonth(s.getMonth()+i)):e;case"Days":return l?new Date(s.setDate(s.getDate()+i)):e;case"Hours":return l?new Date(s.setHours(s.getHours()+i)):e;case"Minutes":return l?new Date(s.setMinutes(s.getMinutes()+i)):e;case"Seconds":return l?new Date(s.setSeconds(s.getSeconds()+i)):e;default:return t}},e.prototype.findValue=function(e,t){return e<t.visibleRange.min?e=t.visibleRange.min:e>t.visibleRange.max&&(e=t.visibleRange.max),e},e.prototype.dateParse=function(e,t){var i=t.intl.getDateParser({skeleton:"full",type:"dateTime"}),o=t.intl.getDateFormat({skeleton:"full",type:"dateTime"});return new Date(Date.parse(i(o(new Date(ao.DataUtil.parse.parseJson({val:e}).val)))))},e.prototype.renderStripLine=function(e,t,i){var o,r=e.element.id+"_stripline_"+t+"_",n=e.chartAxisLayoutPanel.seriesClipRect,a=0,l=0,s=null,h=new Ni(r+"ClipRect","transparent",{width:1,color:"Gray"},1,{x:n.x,y:n.y,width:n.width,height:n.height}),c=e.renderer.createGroup({id:r+"collections","clip-path":"url(#"+r+"ClipRect)"});e.enableCanvas||c.appendChild(Nt(e.redraw,h,e.renderer));for(var d=0,p=i;d<p.length;d++)for(var u=p[d],g=0,m=0,y=u.stripLines;m<y.length;m++){var f=y[m];if(f.visible&&f.zIndex===t)if(f.isSegmented&&null!=f.segmentStart&&null!=f.segmentEnd&&"Pixel"!==f.sizeType&&(s=this.getSegmentAxis(i,u,f)),f.isRepeat&&null!=f.repeatEvery&&null!==f.size&&"Pixel"!==f.sizeType)for(a=null!=f.repeatUntil?"DateTime"===u.valueType?this.dateToMilliSeconds(f.repeatUntil,e):+f.repeatUntil:u.actualRange.max,l="DateTime"===u.valueType&&this.isCoreDate(f.start)?this.dateToMilliSeconds(f.start,e):f.start,(f.startFromAxis&&"DateTime"===u.valueType&&"Auto"===f.sizeType||f.start<u.visibleRange.min)&&(l=u.visibleLabels[0]&&u.visibleLabels[0].value===u.visibleRange.min?u.visibleRange.min:u.visibleLabels[0]&&u.visibleLabels[0].value-("DateTime"===u.valueType?u.dateTimeInterval:u.visibleRange.interval)),l=f.startFromAxis&&"DateTime"!==u.valueType?u.visibleRange.min:l;l<a;)o=ot(l+("DateTime"===u.valueType?u.dateTimeInterval*+f.size:f.size),u.visibleRange),(l>=u.visibleRange.min&&l<u.visibleRange.max||o)&&this.renderStripLineElement(u,f,n,r,c,e,l,s,g),g++,l=this.getStartValue(u,f,l);else this.renderStripLineElement(u,f,n,r,c,e,null,s,g),g++}ni(e.enableCanvas,e.svgObject,c,e.redraw)},e.prototype.isCoreDate=function(e){return"string"==typeof e},e.prototype.dateToMilliSeconds=function(e,t){return this.dateParse(e,t).getTime()},e.prototype.renderPath=function(e,t,i,o,r,n){var a=qt(i),l=a?a.getAttribute("d"):"",s=e.size,h="Vertical"===n.orientation?"M "+t.x+" "+t.y+" L "+(t.x+t.width)+" "+t.y:"M "+t.x+" "+t.y+" L "+t.x+" "+(t.y+t.height);"Pixel"!==e.sizeType&&(h="Vertical"===n.orientation?"M "+t.x+" "+(t.y+t.height/2)+" L "+(t.x+t.width)+" "+(t.y+t.height/2):"M "+(t.x+t.width/2)+" "+t.y+" L "+(t.x+t.width/2)+" "+(t.y+t.height),s="Vertical"===n.orientation?t.height:t.width),ni(r.enableCanvas,o,r.renderer.drawPath(new R.PathOption(i,"none",s,e.color,e.opacity,e.dashArray,h)),r.redraw,!0,"x","y",null,l,!0,null,null,r.duration)},e.prototype.renderRectangle=function(e,t,i,o,r){var n=qt(i),a=n?new R.Rect(+n.getAttribute("x"),+n.getAttribute("y"),+n.getAttribute("width"),+n.getAttribute("height")):null;ni(r.enableCanvas,o,r.renderer.drawRectangle(new Ni(i,"none",e.border,e.opacity,t,0,0,"",e.border.dashArray)),r.redraw,!0,"x","y",null,null,!0,!0,a,r.duration)},e.prototype.drawImage=function(e,t,i,o,r){"Pixel"===e.sizeType&&(t.width=t.width?t.width:e.size,t.height=t.height?t.height:e.size);var n=new Vi(t.height,t.width,e.imageUrl,t.x,t.y,i,"visible","none"),a=r.renderer.drawImage(n);ni(r.enableCanvas,o,a,r.redraw,!0,"x","y",null,null,!0,!0)},e.prototype.renderText=function(e,t,i,o,r,n){var a,l=(0,R.measureText)(e.text,e.textStyle,r.themeStyle.stripLineLabelFont),s=null===e.rotation,h=l.height/8*3,c=l.height/4,d=t.y+t.height/2+c,p=s?"Vertical"===n.orientation?0:-90:e.rotation,u=t.x+t.width/2;if("Horizontal"===n.orientation){u=this.getTextStart(u+h*this.factor(e.horizontalAlignment),t.width,e.horizontalAlignment),d=this.getTextStart(d-h,t.height,e.verticalAlignment)+("Start"!==e.verticalAlignment||s?0:l.height/4),a=s?this.invertAlignment(e.verticalAlignment):e.horizontalAlignment;var g=90===Math.abs(e.rotation)||270===Math.abs(e.rotation)?l.height/2:l.width/2;a=u-g<n.rect.x?"Start":u+g>n.rect.x+n.rect.width?"End":a}else u=this.getTextStart(u,t.width,e.horizontalAlignment),d=this.getTextStart(d+h*this.factor(e.verticalAlignment)-5,t.height,e.verticalAlignment),a=e.horizontalAlignment,a=r.enableRtl?"End"===a?"Start":"Start"===a?"End":a:a;Di(r.renderer,new R.TextOption(i,u,d,a,e.text,"rotate("+p+" "+u+","+d+")","middle"),e.textStyle,e.textStyle.color||r.themeStyle.stripLineLabelFont.color,o,null,null,null,null,null,null,0,null,r.enableCanvas,null,r.themeStyle.stripLineLabelFont)},e.prototype.invertAlignment=function(e){switch(e){case"Start":e="End";break;case"End":e="Start"}return e},e.prototype.getStartValue=function(e,t,i){return"DateTime"===e.valueType?this.getToValue(null,i,+t.repeatEvery,e,null,t):i+ +t.repeatEvery},e.prototype.getSegmentAxis=function(e,t,i){var o;if(null==i.segmentAxisName)return"Horizontal"===t.orientation?e[1]:e[0];for(var r=0;r<e.length;r++)i.segmentAxisName===e[r].name&&(o=e[r]);return o},e.prototype.renderStripLineElement=function(e,t,i,o,r,n,a,l,s){var h=this.measureStripLine(e,t,i,a,l,n);if(t.imageUrl)this.drawImage(t,h,o+"rect_"+e.name+"_"+s,r,n);else{this.renderPath(t,h,o+("Pixel"===t.sizeType?"path_":"rect_")+e.name+"_"+s,r,n,e);var c=new R.Rect("Horizontal"===e.orientation?h.x-t.size/2:h.x,"Vertical"===e.orientation?h.y-t.size/2:h.y,h.width?h.width:t.size,h.height?h.height:t.size);this.renderRectangle(t,"Pixel"===t.sizeType?c:h,o+"border_"+e.name+"_"+s,r,n)}""!==t.text&&this.renderText(t,h,o+"text_"+e.name+"_"+s,r,n,e)},e.prototype.factor=function(e){var t=0;switch(e){case"Start":t=1;break;case"End":t=-1}return t},e.prototype.getTextStart=function(e,t,i){switch(i){case"Start":e=e-t/2+5;break;case"End":e=e+t/2-5}return e},e.prototype.getModuleName=function(){return"StripLine"},e.prototype.destroy=function(){},e}(),tr=function(){function e(e){this.chart=e}return e.prototype.enableComplexProperty=function(e){var i=[],o=[],r=e.xAxis.visibleRange,n=e.yAxis.visibleRange,a=e.points,l=e.clipRect,s=this.chart&&this.chart.zoomRedraw&&this.chart.redraw?this.previousX:Math.abs(r.delta/l.width),h=this.chart&&this.chart.zoomRedraw&&this.chart.redraw?this.previousY:Math.abs(n.delta/l.height),c=a[0]&&a[0].xValue>s?0:s,d=a[0]&&a[0].y>h?0:h;this.previousX=s,this.previousY=h;for(var p,u=0,g=0,m=0,y=a;m<y.length;m++){var f=y[m];f.symbolLocations=[],u=(0,t.isNullOrUndefined)(f.xValue)?r.min:f.xValue,g=(0,t.isNullOrUndefined)(f.yValue)?n.min:f.yValue,(Math.abs(c-u)>=s||Math.abs(d-g)>=h)&&(i.push(f),c=u,d=g)}for(var v=0;v<i.length;v++)p=i[v],(0,t.isNullOrUndefined)(p.x)||"Indicator"===e.category&&(isNaN(p.xValue)||isNaN(p.yValue))||o.push(p);return o},e.prototype.getLineDirection=function(e,t,i,o,r,n){var a="";if(null!=e){var l=r(e.xValue,e.yValue,i.xAxis,i.yAxis,o,i),s=r(t.xValue,t.yValue,i.xAxis,i.yAxis,o,i);a=n+" "+l.x+" "+l.y+" L "+s.x+" "+s.y+" "}return a},e.prototype.appendLinePath=function(e,t,i){var o=this.appendPathElement(e,t,i);zt(o.element,e.d,t.chart.redraw,o.previousDirection,o.chart.duration)},e.prototype.appendPathElement=function(e,t,i){var o=qt(e.id),r=t.chart,n=o?o.getAttribute("d"):null,a=t.chart.renderer.drawPath(e,new Int32Array([t.clipRect.x,t.clipRect.y]));if(a&&a.setAttribute("clip-path",i),"TrendLine"===t.category&&a){var l=r.series[t.sourceIndex].trendlines[t.index];l.marker.visible||a.setAttribute("tabindex",l.accessibility.focusable?String(l.accessibility.tabIndex):"-1"),a.setAttribute("role",l.accessibility.accessibilityRole?l.accessibility.accessibilityRole:""),a.setAttribute("aria-label",l.accessibility.accessibilityDescription?l.accessibility.accessibilityDescription:"")}return t.pathElement=a,t.chart.enableCanvas||t.seriesElement.appendChild(a),t.isRectSeries=!1,{element:o,previousDirection:n,chart:r}},e.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=l;s<a;s++)n.length!==r.length&&r.push(r[r.length-1].replace("M","L"));Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(t.removedPointIndex===t.points.length?n.push(n[n.length-1].replace("M","L")):n.splice(1,0,n[0].replace("M","L")));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},e.prototype.addAreaPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(l<n.length){for(var s=l;s<a;s++)n.length!==r.length&&n.length!==r.length&&(1===r.length?r.push(r[r.length-(-1!==e.id.indexOf("border")?1:2)].replace("M","L")):r.splice(r.length-1,0,r[r.length-(-1!==e.id.indexOf("border")?1:2)]));Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(t.removedPointIndex===t.points.length?1===n.length?n.push(n[n.length-(-1!==e.id.indexOf("border")?1:2)].replace("M","L")):n.splice(n.length-1,0,n[n.length-(-1!==e.id.indexOf("border")?1:2)]):n.splice(1,0,n[1]?n[1]:n[0]));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},e.prototype.renderMarker=function(e){e.marker&&e.marker.visible&&e.chart.markerRender.render(e)},e.prototype.doProgressiveAnimation=function(e,i){var o,r=new t.Animation({}),n=e.pathElement,a=n.getAttribute("stroke-dasharray"),l=e.pathElement.getTotalLength();n.style.visibility="hidden",r.animate(n,{duration:0===i.duration&&"Enable"===t.animationMode?1e3:i.duration,delay:i.delay,progress:function(e){n.style.visibility="visible",o=Math.abs(Math.round(e.timeStamp*l/e.duration)),n.setAttribute("stroke-dasharray",o+","+l)},end:function(){var t=qt(e.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),e.lastValueLabelElement&&e.lastValueLabelElement.setAttribute("visibility","visible"),n.setAttribute("stroke-dasharray",a),n.style.visibility="",e.chart.trigger("animationComplete",{series:e})}})},e.prototype.storePointLocation=function(e,t,i,o){var r=t.marker&&t.marker.width?t.marker.width:0,n=t.marker&&t.marker.height?t.marker.height:0;e.symbolLocations.push(o(e.xValue,e.yValue,t.xAxis,t.yAxis,i,t)),e.regions.push(new R.Rect(e.symbolLocations[0].x-r,e.symbolLocations[0].y-n,2*r,2*n))},e.prototype.withinYRange=function(e,t){return e.yValue>=t.visibleRange.min&&e.yValue<=t.visibleRange.max},e.prototype.GetStepLineDirection=function(e,t,i,o,r,n){void 0===o&&(o="L");var a=r.noRisers&&n?" M ":" L ";if("Right"===i)return(o=r.noRisers&&n?"M":"L")+" "+t.x+" "+e.y+" L "+e.x+" "+e.y+" ";if("Center"===i){var l=t.x+(e.x-t.x)/2;return o+" "+l+" "+t.y+a+l+" "+e.y+" L "+e.x+" "+e.y+" "}return o+" "+e.x+" "+t.y+a+e.x+" "+e.y+" "},e.prototype.getFirstLastVisiblePoint=function(e){for(var t=null,i=null,o=0,r=e;o<r.length;o++){var n=r[o];null===t&&n.visible&&(t=i=n),i=n.visible?n:i}return{first:t||e[0],last:i||e[e.length-1]}},e.prototype.getBorderDirection=function(e){var t=e.split(" ");return t.length>3&&!this.chart.stackingAreaSeriesModule&&!this.chart.stackingStepAreaSeriesModule?t.splice(t.length-4,3):(this.chart.stackingAreaSeriesModule||this.chart.stackingStepAreaSeriesModule)&&(t.splice(t.length/2+1,t.length/2+1),"L"!==t[t.length-1]&&"M"!==t[t.length-1]||t.splice(t.length-1,1)),t.join(" ")},e.prototype.removeEmptyPointsBorder=function(e){var t,i=0,o=e.split(" ");if(4===o.length)return o.join(" ");do{(t=o.indexOf("M",i))>-1&&(o.splice(t+1,3),i=t+1,t-6>0&&(o.splice(t-6,6),i-=6))}while(-1!==t);return o.join(" ")},e.prototype.doLinearAnimation=function(e,t){var i,o=e.clipRectElement.childNodes[0].childNodes[0],r=e.chart.animated?e.chart.duration:t.duration,n=Et("Linear"),a=+o.getAttribute("height"),l=+o.getAttribute("width"),s=+o.getAttribute("x")+(e.chart.enableRtl?l:0),h=e.chart.requireInvertedAxis?+o.getAttribute("height")+ +o.getAttribute("y"):+o.getAttribute("y");if(o.style.visibility="hidden",this.animateRect(e,t,o,r,n,a,l,s,h,i),e.marker&&e.marker.visible&&e.symbolElement){var c=e.symbolElement.childNodes[0].childNodes[0];c.style.visibility="hidden",this.animateRect(e,t,c,r,n,a,l,s,h,i)}},e.prototype.animateRect=function(e,i,o,r,n,a,l,s,h,c){new t.Animation({}).animate(o,{duration:0===r&&"Enable"===t.animationMode?1e3:r,delay:i.delay,progress:function(t){o.style.visibility="visible",e.chart.requireInvertedAxis?(c=n(t.timeStamp,0,a,t.duration),o.setAttribute("transform","translate("+s+" "+h+") scale(1,"+c/a+") translate("+-s+" "+-h+")")):(c=n(t.timeStamp,0,l,t.duration),o.setAttribute("transform","translate("+s+" "+h+") scale("+c/l+", 1) translate("+-s+" "+-h+")"))},end:function(){var t=qt(e.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),e.lastValueLabelElement&&e.lastValueLabelElement.setAttribute("visibility","visible");var i=document.getElementById(e.chart.element.id+"_StackLabelGroup");i&&(It(i,0,r,e,null,0,!1),i.setAttribute("visibility","visible")),o.setAttribute("transform","translate(0,0)"),e.chart.trigger("animationComplete",{series:e})}})},e}(),ir=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.render=function(e,t,i,o,r,n){for(var a,l,s="",h=null,c="M",d=e.chart&&"PolarRadar"===e.chart.chartAreaType,p=e.emptyPointSettings&&"Drop"===e.emptyPointSettings.mode,u=d?ft:oi,g="TrendLine"===e.category?e.points:this.enableComplexProperty(e),m=0,y=g;m<y.length;m++){var f=y[m];f.regions=[],f.symbolLocations=[],f.visible&&nt(g[f.index-1],f,g[f.index+1],e)?(s+=this.getLineDirection(h,f,e,o,u,c),c=h?"L":c,h=f,this.storePointLocation(f,e,o,u),""===s&&1===g.length&&(s="M "+f.symbolLocations[0].x+" "+f.symbolLocations[0].y)):(h=p?h:null,c=p?c:"M")}if(d&&e.isClosed){var v=this.getFirstLastVisiblePoint(g);l=u(v.last.xValue,v.last.yValue,t,i,o,e),a=u(v.first.xValue,v.first.yValue,t,i,o,e),s=s.concat(c+" "+l.x+" "+l.y+" L "+a.x+" "+a.y)}var b="Indicator"===e.category?e.chart.element.id+"_Indicator_"+e.index+"_"+e.name:"TrendLine"===e.category?e.chart.element.id+"_Series_"+e.sourceIndex+"_TrendLine_"+e.index:e.chart.element.id+"_Series_"+(void 0===e.index?e.category:e.index),x=new R.PathOption(b,"none",e.width,e.interior,e.opacity,e.dashArray,s);this[r?"addPath":"appendLinePath"](x,e,""),n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doProgressiveAnimation(e,t)},t.prototype.getModuleName=function(){return"LineSeries"},t.prototype.destroy=function(){},t}(tr),rr=function(){function e(){}return e.prototype.getSideBySideInfo=function(e){if(e.isRectSeries=!0,(e.chart.enableSideBySidePlacement&&!e.position||!(0,t.isNullOrUndefined)(e.columnWidthInPixel))&&this.getSideBySidePositions(e),e.columnWidthInPixel)return new T(0,0);var i,o="Histogram"!==e.type&&e.chart.enableSideBySidePlacement?e.position:0,r="Histogram"!==e.type&&e.chart.enableSideBySidePlacement?e.rectCount:1,n=e.chart.visibleSeries,a=e.chart.enableSideBySidePlacement?e.columnSpacing:0,l=null===e.columnWidth||isNaN(+e.columnWidth)?"Histogram"===e.type?1:.7:Math.min(e.columnWidth,1),s=Tt(e.xAxis,n),h=s*l,c=o/r-.5,d=new T(c,c+1/r);if(!isNaN(d.start)&&!isNaN(d.end)){if(e.groupName&&-1===e.type.indexOf("Stacking")){var p=.7;e.chart.series.filter(function(e){e.columnWidth>p&&(p=e.columnWidth)});var u=s*p,g=new T(d.start*u,d.end*u),m=(g.delta-(d.end*h-d.start*h))/2;d=new T(g.start+m,g.end-m)}else d=new T(d.start*h,d.end*h);i=a*d.delta,d=new T(d.start+i/2,d.end-i/2)}return d},e.prototype.getRectangle=function(e,t,i,o,r){var n=oi(e,t,r.xAxis,r.yAxis,r.chart.requireInvertedAxis),a=oi(i,o,r.xAxis,r.yAxis,r.chart.requireInvertedAxis);return new R.Rect(Math.min(n.x,a.x),Math.min(n.y,a.y),Math.abs(a.x-n.x),Math.abs(a.y-n.y))},e.prototype.drawCylinder=function(e,i,o,r,n){var a=r.width,l=r.height;if(n.chart.enableCanvas){var s=n.chart.canvasRender.ctx,h=s;s.save();var c=fi(e.fill),d=r.x+n.clipRect.x,p=r.y+n.clipRect.y,u=2*Math.PI+.1,g=void 0,m=void 0,y=void 0,f=void 0,v=void 0,b=void 0,x=void 0,S=void 0,C=void 0,F=void 0,w=void 0,L=void 0,P=void 0,A=void 0,M=void 0,D=void 0,k=void 0,R=void 0,T=void 0,E=0,_=0,I=0,O=0,z=0;s.fillStyle=xi(c,.9),s.lineWidth=0,s.strokeStyle=xi(c,.9),s.globalAlpha=e.opacity,o.isColumn?(E=d,_=a+d,f=y=d+(g=a/2),F=v=p-(m=g/4),S=d,x=d+a,b=C=p+l-m,k=Math.PI,R=-g,T=m,o.stacking&&(o.isLastSeries||(F=v=p+m))):(O=l+p,I=p,S=y=d+(g=(m=l/2)/4),x=f=d+a+g,C=p+l,F=p,b=v=p+m,z=Math.PI/2,k=1.5*Math.PI,o.stacking&&(o.isLastSeries||(x=f=d+a-g)),R=g=-g,T=-(m=-m));var B=xi(c,.7),N=s.createLinearGradient(E,I,_,O);N.addColorStop(0,c),N.addColorStop(.3,B),N.addColorStop(.7,B),N.addColorStop(1,c);for(var V=1;V<=4;V++){var H=0;for(V<4&&s.beginPath(),V%2==0?(w=f,L=b,P=S,A=F):(w=y,L=v,P=x,A=C),4===V&&(g=R,m=T,s.fillStyle=N),V>2&&(H=z,u=k);H<=u;H+=.1)M=w-g*Math.cos(H),D=L+m*Math.sin(H),0===H?s.moveTo(M,D):s.lineTo(M,D);V>2&&s.lineTo(P,A),3!==V&&(s.stroke(),s.fill())}e.id.indexOf("Series")>=0&&(s.clip(),s.restore(),s=h)}else{var W=n.chart,j=(d=r.x,p=r.y,e.id),U=c=e.fill;vi(c)||(c=fi(c));var X=0,G=0,Y=0,Z=0,q=0,Q=0,$=void 0,K=void 0,J=void 0,ee=void 0,te=void 0,ie=void 0;g=void 0,m=void 0,H=2;for(o.isColumn?($=J=d,ee=K=(m=(g=a/2)/4)<p?p-m:o.stacking?p+m:p-m,X=2*g,Z=m<p||l<2*m?l:o.stacking?l-2*m:l,te=$,ie=m<p?K+l:l<K?l+K:o.stacking?l+(p-m):l+K,q=100,o.stacking&&(o.isLastSeries||(K=ee=p+m,Z=l<g/2?l:l-g/2))):(g=(m=l/2)/4,K=ee=p,G=2*m,Y=a,te=($=J=Math.abs(d-g))+a,ie=K,Q=100,o.stacking&&(o.isLastSeries||(te=$+a-2*g,Y=a-2*g))),(0,t.remove)(this.element);H--;)e.d="M"+$.toString()+","+K.toString()+"a"+g.toString()+","+m.toString()+" 0 1,0 "+X.toString()+","+G.toString()+"a"+g.toString()+","+m.toString()+" 0 1,0 "+(-1*X).toString()+","+(-1*G).toString(),e.id=j+"_Region_"+H,e.fill=xi(c,.9),H%2==0&&"StackingBar100"!==n.type&&"StackingBar"!==n.type&&"Bar"!==n.type&&(e.fill=e.fill+"10"),this.element=W.renderer.drawPath(this.options,new Int32Array([n.clipRect.x,n.clipRect.y])),ni(n.chart.enableCanvas,n.seriesElement,this.element,W.redraw),$=te,K=ie;e.d="M"+J.toString()+","+ee.toString()+"a"+g.toString()+","+m.toString()+" 0 1,0 "+X.toString()+","+G.toString()+"l"+Y.toString()+" "+Z.toString()+"a"+g.toString()+","+m.toString()+" 0 1,1 "+(-1*X).toString()+","+(-1*G).toString()+" z",e.id=j+"_Region_2",e.fill=xi(c,.7);var oe=void 0;if(-1===U.indexOf("url")){if(!document.getElementById(j)){oe={id:j,x1:"0%",y1:"0%",x2:q.toString()+"%",y2:Q.toString()+"%"};var re=[{colorStop:"0%",color:c},{colorStop:"30%",color:xi(c,.7)},{colorStop:"70%",color:xi(c,.7)},{colorStop:"100%",color:c}];this.drawGradient(oe,re,n)}e.fill="url(#"+oe.id+")"}this.element=W.renderer.drawPath(this.options,new Int32Array([n.clipRect.x,n.clipRect.y])),ni(n.chart.enableCanvas,n.seriesElement,this.element,W.redraw)}},e.prototype.drawGradient=function(e,t,i){var o=i.chart.renderer.createDefs(),r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"linearGradient");n.setAttribute("id",e.id),n.setAttribute("x1",e.x1),n.setAttribute("y1",e.y1),n.setAttribute("x2",e.x2),n.setAttribute("y2",e.y2);for(var a=0;a<t.length;a++){var l=document.createElementNS(r,"stop");l.setAttribute("offset",t[a].colorStop),l.setAttribute("stop-color",t[a].color),l.setAttribute("stop-opacity","1"),n.appendChild(l)}i.seriesElement.appendChild(o),o.appendChild(n)},e.prototype.getSideBySidePositions=function(e){for(var t=e.chart,i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.findRectPosition(e.findSeriesCollection(r,l,!1))}},e.prototype.findRectPosition=function(e){for(var t=[],i={rectCount:0,position:null},o=0;o<e.length;o++){if(-1!==(n=e[o]).type.indexOf("Stacking")||""!==n.groupName){var r=-1!==n.type.indexOf("Stacking")?n.stackingGroup:n.type+n.groupName;r?void 0===t[r]?(n.position=i.rectCount,t[r]=i.rectCount++):n.position=t[r]:null===i.position?(n.position=i.rectCount,i.position=i.rectCount++):n.position=i.position}else n.position=i.rectCount++}for(o=0;o<e.length;o++){var n;(n=e[o]).rectCount=i.rectCount}},e.prototype.updateSymbolLocation=function(e,t,i){i.chart.requireInvertedAxis?this.updateYRegion(e,t,i):this.updateXRegion(e,t,i),"Histogram"===i.type&&(e.minimum=+e.x-i.histogramValues.binWidth/2,e.maximum=+e.x+i.histogramValues.binWidth/2)},e.prototype.updateXRegion=function(e,t,i){e.symbolLocations.push({x:t.x+t.width/2,y:"BoxPlot"===i.seriesType||-1!==i.seriesType.indexOf("HighLow")||e.yValue>=0==!i.yAxis.isAxisInverse?t.y:t.y+t.height}),this.getRegion(e,t,i),"RangeColumn"===i.type&&e.symbolLocations.push({x:t.x+t.width/2,y:t.y+t.height})},e.prototype.updateYRegion=function(e,t,i){e.symbolLocations.push({x:"BoxPlot"===i.seriesType||-1!==i.seriesType.indexOf("HighLow")||e.yValue>=0==!i.yAxis.isAxisInverse?t.x+t.width:t.x,y:t.y+t.height/2}),this.getRegion(e,t,i),"RangeColumn"===i.type&&e.symbolLocations.push({x:t.x,y:t.y+t.height/2})},e.prototype.renderMarker=function(e){e.marker&&e.marker.visible&&e.chart.markerRender.render(e)},e.prototype.getRegion=function(e,t,i){if(0===e.y){var o=i.marker&&i.marker.width?i.marker.width:0,r=i.marker&&i.marker.height?i.marker.height:0;e.regions.push(new R.Rect(e.symbolLocations[0].x-o,e.symbolLocations[0].y-r,2*o,2*r))}else e.regions.push(t)},e.prototype.triggerEvent=function(e,t,i,o){var r={cancel:!1,name:V,series:e,point:t,fill:e.setPointColor(t,i),border:e.setBorderColor(t,o),cornerRadius:e.cornerRadius};return e.chart.trigger(V,r),t.color=r.fill,r},e.prototype.drawRectangle=function(e,t,i,o){var r,n=e.chart;if((n.requireInvertedAxis?i.height:i.width)<=0)return null;if(0===t.y)r=this.calculateRoundedRectPath(i,0,0,0,0);else{var a=void 0,l=void 0,s=void 0,h=void 0,c=t.y<0;n.requireInvertedAxis?(a=c?o.cornerRadius.topRight:o.cornerRadius.topLeft,l=c?o.cornerRadius.topLeft:o.cornerRadius.topRight,s=c?o.cornerRadius.bottomRight:o.cornerRadius.bottomLeft,h=c?o.cornerRadius.bottomLeft:o.cornerRadius.bottomRight):(a=c?o.cornerRadius.bottomLeft:o.cornerRadius.topLeft,l=c?o.cornerRadius.bottomRight:o.cornerRadius.topRight,s=c?o.cornerRadius.topLeft:o.cornerRadius.bottomLeft,h=c?o.cornerRadius.topRight:o.cornerRadius.bottomRight),r=this.calculateRoundedRectPath(i,a,l,s,h,n.requireInvertedAxis)}var d="Indicator"===e.category?n.element.id+"_Indicator_"+e.index+"_"+e.name+"_Point_"+t.index:n.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),p=Pi(n.redraw,d),u=p?p.getAttribute("d"):"";switch(this.options=new R.PathOption(d,o.fill,o.border.width,o.border.color,e.opacity,e.border.dashArray,"Cylinder"===e.columnFacet?"":r),this.element=n.renderer.drawPath(this.options,new Int32Array([e.clipRect.x,e.clipRect.y])),null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(this.element.id=n.element.id+"_Series_"+e.index+"_Point_"+t.index),e.seriesType){case"XY":this.element.setAttribute("role","img"),this.element.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x+":"+t.yValue+", "+e.name);break;case"HighLow":this.element.setAttribute("role","img"),this.element.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x+":"+t.high+", "+t.low+", "+e.name)}("Cylinder"!==e.columnFacet||!n.redraw&&n.enableAnimation||!e.seriesElement.querySelector("#"+this.element.id))&&ni(e.chart.enableCanvas,e.seriesElement,this.element,n.redraw),e.chart.enableCanvas||zt(this.element,"Cylinder"===e.columnFacet?"":r,n.redraw,u,n.duration)},e.prototype.animate=function(e){for(var t=e.seriesElement.childNodes,i="Indicator"===e.category?0:1,o=0,r=Qe(e);o<r.length;o++){var n=r[o];if(n.symbolLocations.length||"BoxAndWhisker"===e.type&&n.regions.length)if("Column"!==e.type&&"Bar"!==e.type&&"StackingColumn"!==e.type&&"StackingColumn100"!==e.type&&"StackingBar"!==e.type&&"StackingBar100"!==e.type||"Cylinder"!==e.columnFacet)this.animateRect(t[i],e,n),i++;else for(var a=0;a<t.length;a++)this.animateRect(t[a],e,n)}},e.prototype.animateRect=function(e,i,o){var r,n,a,l,s,h=i.animation,c=i.chart.animated?i.chart.duration:h.duration,d=Et("Linear"),p=o.yValue<0,u=+o.regions[0].height,g=+o.regions[0].width;i.chart.requireInvertedAxis?(n=+o.regions[0].y,i.type.indexOf("Stacking")>-1?(r=yt(0,i.yAxis)*i.yAxis.rect.width,a=r,l=n):(r=+o.regions[0].x,l=p?n:n+u,a=-1!==i.seriesType.indexOf("HighLow")||-1!==i.type.indexOf("Waterfall")?r+g/2:p!==i.yAxis.isAxisInverse?r+g:r)):(r=+o.regions[0].x,i.type.indexOf("Stacking")>-1?(n=(1-yt(0,i.yAxis))*i.yAxis.rect.height,a=r,l=n):(n=+o.regions[0].y,l=-1!==i.seriesType.indexOf("HighLow")||-1!==i.type.indexOf("Waterfall")?n+u/2:p!==i.yAxis.isAxisInverse?n:n+u,a=p?r:r+g)),(0,t.isNullOrUndefined)(e)||(e.style.visibility="hidden",new t.Animation({}).animate(e,{duration:0===c&&"Enable"===t.animationMode?1e3:c,delay:h.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",i.chart.requireInvertedAxis?(g=g||1,s=d(t.timeStamp-t.delay,0,g,t.duration),e.setAttribute("transform","translate("+a+" "+l+") scale("+s/g+", 1) translate("+-a+" "+-l+")")):(u=u||1,s=d(t.timeStamp-t.delay,0,u,t.duration),e.setAttribute("transform","translate("+a+" "+l+") scale(1,"+s/u+") translate("+-a+" "+-l+")")))},end:function(){var t=document.getElementById(i.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),i.lastValueLabelElement&&i.lastValueLabelElement.setAttribute("visibility","visible");var r=document.getElementById(i.chart.element.id+"_StackLabelGroup");r&&(It(r,0,c,i,null,0,!1),r.setAttribute("visibility","visible")),e.setAttribute("transform","translate(0,0)");var n=i.seriesElement;if((e===n.lastElementChild||o.index===i.points.length-1||"Waterfall"===i.type&&e===n.children[n.childElementCount-2])&&(i.chart.trigger("animationComplete",{series:i}),"Waterfall"===i.type))for(var a=n.childNodes,l=0;l<a.length;l++)-1!==a[l].id.indexOf("Connector")&&(a[l].style.visibility="visible",a[l].setAttribute("transform","translate(0,0)"))}}))},e.prototype.calculateRoundedRectPath=function(e,t,i,o,r,n){void 0===n&&(n=!1);var a=e.width/2,l=e.height/2;return t=Math.min(t,a,l),i=Math.min(i,a,l),o=Math.min(o,a,l),r=Math.min(r,a,l),"M "+e.x+" "+(t+e.y)+" Q "+e.x+" "+e.y+" "+(e.x+t)+" "+e.y+" L "+(e.x+e.width-i)+" "+e.y+" Q "+(e.x+e.width)+" "+e.y+" "+(e.x+e.width)+" "+(e.y+i)+" L "+(e.x+e.width)+" "+(e.y+e.height-r)+" Q "+(e.x+e.width)+" "+(e.y+e.height)+" "+(e.x+e.width-r)+" "+(e.y+e.height)+" L "+(e.x+o)+" "+(e.y+e.height)+" Q "+e.x+" "+(e.y+e.height)+" "+e.x+" "+(e.y+e.height-o)+" L "+e.x+" "+(t+e.y)+" Z"},e}(),nr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ar=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return nr(i,e),i.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=Math.max(e.yAxis.visibleRange.min,0),i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}this.renderMarker(e)},i.prototype.renderPoint=function(e,i,o,r){if(i.symbolLocations=[],i.regions=[],i.visible&&nt(e.points[i.index-1],i,e.points[i.index+1],e)){this.rect=this.getRectangle(i.xValue+o.start,i.yValue,i.xValue+o.end,r,e),this.rect.width=e.columnWidthInPixel?e.columnWidthInPixel-(e.chart.enableSideBySidePlacement?e.columnWidthInPixel*e.columnSpacing:0):this.rect.width;(0,t.isNullOrUndefined)(e.rectCount)||e.rectCount;this.rect.x=e.columnWidthInPixel?this.rect.x-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.index):this.rect.x;var n="Indicator"===e.category?i.color:e.interior,a=this.triggerEvent(e,i,n,{width:e.border.width,color:e.border.color});if(!a.cancel){var l=this.rect.y;if(i.yValue<r&&i.yValue>=0&&e.chart.zoomModule&&e.chart.zoomModule.isAxisZoomed(e.chart.axisCollections)&&(l=oi(i.xValue+o.start,i.yValue,e.xAxis,e.yAxis,e.chart.requireInvertedAxis).y),this.updateSymbolLocation(i,new R.Rect(this.rect.x,l,this.rect.width,this.rect.height),e),this.drawRectangle(e,i,this.rect,a),"Cylinder"===e.columnFacet){this.drawCylinder(this.options,this.element,{isColumn:!0,stacking:!1,isLastSeries:!0},this.rect,e)}}}},i.prototype.updateDirection=function(e,t){for(var i=Math.max(e.yAxis.visibleRange.min,0),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[o]],e.points[t[o]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},i.prototype.doAnimation=function(e){this.animate(e)},i.prototype.getModuleName=function(){return"ColumnSeries"},i.prototype.destroy=function(){},i}(rr),lr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lr(t,e),t.prototype.getAreaPathDirection=function(e,t,i,o,r,n,a){var l,s="";return null===n&&(s+=a+" "+(l=r(e,t,i.xAxis,i.yAxis,o,i)).x+" "+l.y+" "),s},t.prototype.getAreaEmptyDirection=function(e,t,i,o,r){var n="";return n+=this.getAreaPathDirection(e.x,e.y,i,o,r,null,"L"),n+=this.getAreaPathDirection(t.x,t.y,i,o,r,null,"L")},t.prototype.setPointColor=function(e,t,i,o,r){if(""===i.pointColorMapping){for(var n=void 0,a=0;a<r.length;a++)if(n=r[a],(o?e.xValue:e.yValue)<=this.getAxisValue(n.value,o?i.xAxis:i.yAxis,i.chart)||!n.value&&0!==n.value){e.interior=n.color;break}return null==e.interior&&(e.interior=i.interior),!1}return!!t&&i.setPointColor(e,i.interior)!==i.setPointColor(t,i.interior)},t.prototype.sortSegments=function(e,t){var i=this,o="X"===e.segmentAxis?e.xAxis:e.yAxis;return[].concat(t).sort(function(t,r){return i.getAxisValue(t.value,o,e.chart)-i.getAxisValue(r.value,o,e.chart)})},t.prototype.applySegmentAxis=function(e,t,i,o){var r=this;if(""!==e.pointColorMapping)return t.map(function(t){r[o?"addMulticolorPath":"appendLinePath"](t,e,"")}),null;var n,a="X"===e.segmentAxis,l=a?e.xAxis:e.yAxis,s=e.chart;this.includeSegment(i,l,e,i.length);for(var h,c,d,p=i.length,u=0,g=function(p){n=i[p],h=m.getAxisValue(n.value,l,e.chart),(c=m.createClipRect(p?m.getAxisValue(i[p-1].value,l,e.chart):l.visibleRange.min,h,e,p,a))&&t.map(function(t){u+=1,d={"clip-path":c,"stroke-dasharray":n.dashArray,opacity:t.opacity,stroke:e.type.indexOf("Line")>-1?n.color||e.interior:t.stroke,"stroke-width":t["stroke-width"],fill:e.type.indexOf("Line")>-1?"none":n.color||e.interior,id:t.id+"_Segment_"+p,d:t.d},u%2==0&&r.chart.multiColoredAreaSeriesModule&&"transparent"!==e.border.color&&0!==d["stroke-width"]&&(d.fill="transparent"),o?r.addMulticolorPath(d,e,"",!0):zt(qt(d.id),d.d,s.redraw),e.pathElement=s.renderer.drawPath(d),e.chart.enableCanvas||o||e.seriesElement.appendChild(s.renderer.drawPath(d))})},m=this,y=0;y<p;y++)g(y)},t.prototype.includeSegment=function(e,t,i,o){if(o<=0)return e.push({value:t.visibleRange.max,color:i.interior}),null;this.getAxisValue(e[o-1].value,t,i.chart)<t.visibleRange.max&&e.push({value:t.visibleRange.max,color:i.interior})},t.prototype.addMulticolorPath=function(e,t,i,o){var r=this.appendPathElement(e,t,i);if(null!==r.previousDirection&&""!==r.previousDirection||(r.previousDirection="M "+e.d.split(" ").slice(-3)[0]+" "+e.d.split(" ").slice(-5)[0]+" L "+e.d.split(" ").slice(-3)[0]+" "+e.d.split(" ").slice(-5)[0]+" L "+e.d.split(" ").slice(-3)[0]+" "+e.d.split(" ").slice(-5)[0]),null!==e.d&&""!==e.d||(e.d="M "+r.previousDirection.split(" ").slice(-3)[0]+" "+r.previousDirection.split(" ").slice(-5)[0]+" L "+r.previousDirection.split(" ").slice(-3)[0]+" "+r.previousDirection.split(" ").slice(-5)[0]),o){var n=r.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),l=Math.max(n.length,a.length),s=Math.min(n.length,a.length);if(n.length===a.length&&Bt(qt(e.id),e.d,t.chart.redraw,r.previousDirection,this.chart.duration),n.length<a.length){for(var h=s;h<l;h++)a.length!==n.length&&n.splice(n.length-(-1!==t.type.indexOf("Line")?1:2),0,n[n.length-(-1!==t.type.indexOf("Line")?1:2)]);Bt(qt(e.id),e.d,t.chart.redraw,n.join(" "),this.chart.duration)}if(n.length>a.length){for(h=s;h<l;h++)a.length!==n.length&&a.splice(1,0,a[1].replace("M","L"));Bt(r.element,a.join(""),t.chart.redraw,n.join(""),this.chart.duration,e.d)}}},t.prototype.createClipRect=function(e,t,i,o,r){var n,a=i.chart.requireInvertedAxis,l=oi(r?e:i.xAxis.visibleRange.min,r?i.yAxis.visibleRange.max:t,i.xAxis,i.yAxis,a),s=oi(r?t:i.xAxis.visibleRange.max,r?i.yAxis.visibleRange.min:e,i.xAxis,i.yAxis,a);return s=a?[l,l=s][0]:s,(i.xAxis.isInversed||i.xAxis.isAxisInverse?l.x-s.x>0:s.x-l.x>0)&&(i.yAxis.isInversed?l.y-s.y>0:s.y-l.y>0)?(n=new Ni(i.chart.element.id+"_ChartSegment"+i.index+"ClipRect_"+o,"transparent",{width:1,color:"Gray"},1,{x:i.xAxis.isInversed||i.xAxis.isAxisInverse?s.x:l.x,y:i.yAxis.isInversed?s.y:l.y,width:i.xAxis.isInversed||i.xAxis.isAxisInverse?l.x-s.x:s.x-l.x,height:i.yAxis.isInversed?l.y-s.y:s.y-l.y}),i.chart.enableCanvas||i.seriesElement.appendChild(Nt(i.chart.redraw,n,i.chart.renderer)),"url(#"+i.chart.element.id+"_ChartSegment"+i.index+"ClipRect_"+o+")"):null},t.prototype.getAxisValue=function(e,t,i){if(null===e&&(e=t.visibleRange.max),"DateTime"===t.valueType){var o={skeleton:"full",type:"dateTime"};return Date.parse(i.intl.getDateParser(o)(i.intl.getDateFormat(o)(new Date(ao.DataUtil.parse.parseJson({val:e}).val))))}if(t.valueType.indexOf("Category")>-1){var r="DateTimeCategory"===t.valueType?e.getTime().toString():e;return t.labels.indexOf(r)<0?+e:t.labels.indexOf(r)}return+e},t}(tr),hr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l=null,s="",h=e.chart&&"PolarRadar"===e.chart.chartAreaType,c=Math.max(e.yAxis.visibleRange.min,0);h&&(c=this.getFirstLastVisiblePoint(e.points).first.yValue);for(var d,p=e.emptyPointSettings&&"Drop"===e.emptyPointSettings.mode,u=e.border.width?e.border.width:0,g=e.border.color?e.border.color:e.interior,m="PolarRadar"===e.chart.chartAreaType?ft:oi,y=this.enableComplexProperty(e),f="",v=0;v<y.length;v++)a=(d=y[v]).xValue,d.symbolLocations=[],d.regions=[],d.visible&&nt(y[v-1],d,y[v+1],e)&&(s+=this.getAreaPathDirection(a,c,e,o,m,l,"M"),l=l||new ji(a,c),s+=this.getAreaPathDirection(a,d.yValue,e,o,m,null,"L"),y[v+1]&&!y[v+1].visible&&(!h||h&&this.withinYRange(y[v+1],i))&&!p&&(s+=this.getAreaEmptyDirection({x:a,y:c},l,e,o,m),l=null),this.storePointLocation(d,e,o,m));if(h&&""!==s){var b="",x=this.chart;b+=this.getAreaPathDirection(0,c,e,o,m,null,"L"),(t.isAxisInverse||i.isAxisInverse)&&(s+="Polar"===e.type?x.polarSeriesModule.getPolarIsInversedPath(t,b):x.radarSeriesModule.getRadarIsInversedPath(t,b)),s=s.concat(s+" Z")}this[r?"addAreaPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,""!==s?s+this.getAreaPathDirection(e.points[e.points.length-1].xValue,"PolarRadar"===e.chart.chartAreaType?e.points[e.points.length-1].yValue:c,e,o,m,null,"L"):""),e,""),0!==e.border.width&&(f=this.removeEmptyPointsBorder(s),this[r?"addAreaPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",u,g,1,e.border.dashArray,f),e,"")),n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"AreaSeries"},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t}(sr),dr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),pr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return dr(t,e),t.prototype.render=function(e){var t=Math.max(e.yAxis.visibleRange.min,0);this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i,o){if(t.symbolLocations=[],t.regions=[],t.visible&&nt(e.points[t.index-1],t,e.points[t.index+1],e)){this.rect=this.getRectangle(t.xValue+i.start,t.yValue,t.xValue+i.end,o,e),this.rect.height=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.height,this.rect.y=e.columnWidthInPixel?this.rect.y-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.index):this.rect.y;var r=this.triggerEvent(e,t,e.interior,{width:e.border.width,color:e.border.color});if(!r.cancel&&(this.updateSymbolLocation(t,this.rect,e),this.drawRectangle(e,t,this.rect,r),"Cylinder"===e.columnFacet)){this.drawCylinder(this.options,this.element,{isColumn:!1,stacking:!1,isLastSeries:!0},this.rect,e)}}},t.prototype.updateDirection=function(e,t){for(var i=Math.max(e.yAxis.visibleRange.min,0),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[o]],e.points[t[o]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"BarSeries"},t}(rr),ur=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),gr=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.visibleAxisLabelRect=[],t}return ur(i,e),i.prototype.measureAxis=function(e){var t=this.chart;this.initialClipRect=e,this.seriesClipRect=new R.Rect(e.x,e.y,e.width,e.height),this.measureRowAxis(t,this.initialClipRect),this.measureColumnAxis(t,this.initialClipRect),this.calculateAxisSize()},i.prototype.measureRowAxis=function(e,t){this.calculateRowSize(t);var i=e.rows[0];this.measureDefinition(i,e,new R.Size(e.availableSize.width,i.computedHeight))},i.prototype.measureColumnAxis=function(e,t){this.calculateColumnSize(t);var i=e.columns[0];this.measureDefinition(i,e,new R.Size(i.computedWidth,e.availableSize.height))},i.prototype.measureDefinition=function(e,t,i){for(var o=0,r=e.axes;o<r.length;o++){var n=r[o];n.getModule(t),n.baseModule.calculateRangeAndInterval(i,n)}},i.prototype.calculateAxisSize=function(){var e=this.chart;this.centerX=.5*this.initialClipRect.width+this.initialClipRect.x,this.centerY=.5*this.initialClipRect.height+this.initialClipRect.y,e.radius=Math.min(this.initialClipRect.width,this.initialClipRect.height)/2-5-e.primaryXAxis.majorTickLines.height-e.primaryXAxis.maxLabelSize.height,e.radius=e.primaryXAxis.coefficient*e.radius/100,this.seriesClipRect.y=this.centerY-e.radius,this.seriesClipRect.x=this.centerX-e.radius,this.seriesClipRect.height=2*e.radius,this.seriesClipRect.width=2*e.radius,this.calculateRowSize(this.seriesClipRect),e.primaryYAxis.rect=this.seriesClipRect,this.calculateColumnSize(this.seriesClipRect),e.primaryXAxis.rect=this.seriesClipRect},i.prototype.measure=function(){var e=this.chart,t=e.primaryYAxis;t.isRTLEnabled=e.enableRtl,t.setIsInversedAndOpposedPosition(!0),e.verticalAxes.push(t);var i=e.rows[0];i.axes[0]=t,e.rows[0]=i;var o=e.primaryXAxis;o.isRTLEnabled=e.enableRtl,o.setIsInversedAndOpposedPosition(!0),e.horizontalAxes.push(o);var r=e.columns[0];r.axes[0]=o,e.columns[0]=r},i.prototype.calculateRowSize=function(e){var t=this.chart,i=t.rows[0];i.computedHeight=e.height/2,i.computedTop=e.y,t.rows[0]=i},i.prototype.calculateColumnSize=function(e){var t=this.chart,i=t.columns[0];i.computedLeft=e.x,i.computedWidth=e.width,t.columns[0]=i},i.prototype.renderAxes=function(){var e,t=this.chart;this.startAngle=t.primaryXAxis.startAngle;for(var i=t.renderer.createGroup({id:t.element.id+"AxisCollection"}),o=t.renderer.createGroup({id:t.element.id+"AxisOutsideCollection"}),r=0,n=t.axisCollections.length;r<n;r++)this.element=t.renderer.createGroup({id:t.element.id+"AxisGroup"+r}),"Horizontal"===(e=t.axisCollections[r]).orientation?((e.majorGridLines.width>0||e.majorTickLines.width>0)&&this.drawXAxisGridLine(e,r),e.visible&&e.internalVisibility&&this.drawXAxisLabels(e,r)):(this.drawYAxisGridLine(e,r),e.lineStyle.width>0&&this.drawYAxisLine(e,r),e.visible&&e.internalVisibility&&this.drawYAxisLabels(e,r)),this.chart.enableCanvas||i.appendChild(this.element);return this.chart.enableCanvas||i.appendChild(this.element),ni(t.enableCanvas,t.svgObject,i,t.redraw),o},i.prototype.drawYAxisLine=function(e,t){var i,o=this.chart,r=bt(xt(e.visibleLabels[0].value,e),this.startAngle),n="M "+this.centerX+" "+this.centerY+"L "+(this.centerX+o.radius*r.x)+" "+(this.centerY+o.radius*r.y);i={id:o.element.id+"AxisLine_"+t,d:n,"stroke-dasharray":e.lineStyle.dashArray,"stroke-width":e.lineStyle.width,stroke:e.lineStyle.color||o.themeStyle.axisLine};var a=o.renderer.drawPath(i);this.setPointerEventNone(a),this.chart.enableCanvas||o.yAxisElements.appendChild(a)},i.prototype.drawYAxisLabels=function(e,i){var o,r,n,a,l=this.chart,s=0,h=0,c=this.startAngle<0?this.startAngle+360:this.startAngle,d="middle",p=[],u=[];u[0]=!0;var g=e.labelIntersectAction,m=l.renderer.createGroup({id:l.element.id+"AxisLabels"+i}),y=bt(xt(e.visibleLabels[0].value,e),this.startAngle);if(e.labelTemplate){var f=l.element.id+"_YAxisLabelTemplate_Collection";l.yAxisLabelTemplate=(0,t.createElement)("div",{id:f})}for(var v=l.radius/e.visibleLabels.length,b=0,x=e.visibleLabels.length;b<x;b++){var S=e.visibleLabels[b];if(a=!1,l.radius*yt(e.visibleLabels[b].value,e),o=e.visibleLabels[b].size,n=l.radius*yt(e.visibleLabels[b].value,e),s=this.centerX+n*y.x+(e.majorTickLines.height+o.width/2+2.5)*Math.cos(c*Math.PI/180)*("Inside"===e.labelPosition&&l.enableRtl?-1:"Inside"===e.labelPosition||"Outside"===e.labelPosition&&l.enableRtl?1:-1),h=this.centerY+n*y.y+(e.majorTickLines.height+o.height/2)*Math.sin(c*Math.PI/180)*("Inside"===e.labelPosition&&l.enableRtl?-1:"Inside"===e.labelPosition||"Outside"===e.labelPosition&&l.enableRtl?1:-1),h+=o.height/4,p[b]=this.getLabelRegion(s,h,e.visibleLabels[b],d),e.labelTemplate||(p[b]=this.getLabelRegion(s,h,S,d)),0!==b&&"Hide"===g&&!e.labelTemplate){for(var C=b;C>=0;C--){if(u[C=0===C?0:C===b?C-1:C]&&di(p[b],p[C])){a=!0,u[b]=!1;break}u[b]=!0}if(a)continue;for(var F=0,w=this.visibleAxisLabelRect;F<w.length;F++){var L=w[F];if(di(p[b],L)){a=!0;break}}}if(!a)if(e.labelTemplate||this.visibleAxisLabelRect.push(p[b]),r=new R.TextOption(l.element.id+i+"_AxisLabel_"+b,s,h,d,S.text),e.labelTemplate){var P=new R.Size(S.size.width,S.size.height),A=void 0,M=void 0,D="Outside"===e.labelPosition,k=Math.cos(c*Math.PI/180),T=Math.sin(c*Math.PI/180),E=e.majorTickLines.height+P.width+4.5,_=e.majorTickLines.height+P.height/2;A=this.centerX+n*y.x+(D?-E:E)*k,M=this.centerY+n*y.y+(D?-_:_)*T,A-=.5*P.width*(D?1-k:1+k);var I=.5*this.chart.border.width;if(A<I){var O=I-A;P.width=Math.max(0,S.size.width-O),A=I}M-=P.height>v?v/2:P.height/2;var z=l.element.id+"_YAxisLabelTemplate_"+i+"_"+b,B=Jt((0,t.createElement)("div",{id:z,styles:"position:absolute; pointer-events:none; z-index:1;left:"+A+"px; top:"+M+"px;width:"+P.width+"px; height:"+P.height+"px;"}),b,e.labelTemplate,l,S);l.yAxisLabelTemplate.appendChild(B)}else Di(l.renderer,r,e.labelStyle,e.labelStyle.color||l.themeStyle.axisLabelFont.color,m,!1,l.redraw,!0,!0,null,null,0,null,l.enableCanvas,null,l.themeStyle.axisLabelFont)}this.chart.enableCanvas||e.labelTemplate||l.yAxisElements.appendChild(m)},i.prototype.drawYAxisGridLine=function(e,t){var i,o,r,n,a,l,s,h,c=this.chart,d="",p="",u=this.startAngle<0?this.startAngle+360:this.startAngle,g={color:e.majorGridLines.color||c.themeStyle.majorGridLine,width:e.majorGridLines.width};if(e.majorGridLines.width>0)if("Polar"===c.visibleSeries[0].type){for(var m=0;m<e.visibleLabels.length;m++)l=(s=qt(c.element.id+"_MajorGridLine_"+t+"_"+m))?s.getAttribute("r"):null,o=c.radius*yt(e.visibleLabels[m].value,e),e.isInversed&&!h&&(h=o),i=new Hi(c.element.id+"_MajorGridLine_"+t+"_"+m,"transparent",g,e.majorGridLines.width,this.centerX,this.centerY,o),ni(c.enableCanvas,this.element,c.renderer.drawCircle(i),c.redraw,!0,"r","r",new ji(+l,+l),null,!0);o===c.radius||e.isInversed&&h===c.radius||(i=new Hi(c.element.id+"_MajorGridLine_"+t+"_"+e.visibleLabels.length+1,"transparent",g,e.majorGridLines.width,this.centerX,this.centerY,c.radius),ni(c.enableCanvas,this.element,c.renderer.drawCircle(i),c.redraw,!0,"r","r",new ji(+l,+l),null,!0))}else{for(m=0;m<e.visibleLabels.length;m++)o=c.radius*yt(e.visibleLabels[m].value,e),p=this.renderRadarGrid(o,"",c),l=(s=qt(c.element.id+"_MajorGridLine_"+t+"_"+m))?s.getAttribute("d"):null,i=new R.PathOption(c.element.id+"_MajorGridLine_"+t+"_"+m,"transparent",e.majorGridLines.width,e.majorGridLines.color||c.themeStyle.majorGridLine,null,null,p),ni(c.enableCanvas,this.element,c.renderer.drawPath(i),c.redraw,!0,"x","y",null,l,!0);o!==c.radius&&(p=this.renderRadarGrid(c.radius,"",c),l=(s=qt(c.element.id+"_MajorGridLine_"+t+"_"+e.visibleLabels.length))?s.getAttribute("d"):null,i=new R.PathOption(c.element.id+"_MajorGridLine_"+t+"_"+e.visibleLabels.length,"transparent",e.majorGridLines.width,e.majorGridLines.color||c.themeStyle.majorGridLine,null,null,p),ni(c.enableCanvas,this.element,c.renderer.drawPath(i),c.redraw,!0,"x","y",null,l,!0))}if(e.majorTickLines.width>0){r=bt(xt(e.visibleLabels[0].value,e),this.startAngle);for(var y=0;y<e.visibleLabels.length;y++)o=c.radius*yt(e.visibleLabels[y].value,e),d="M "+(n=this.centerX+o*r.x)+" "+(a=this.centerY+o*r.y)+" L "+(n+e.majorTickLines.height*Math.cos(u*Math.PI/180)*("Inside"===e.tickPosition&&c.enableRtl?-1:"Inside"===e.tickPosition||"Outside"===e.tickPosition&&c.enableRtl?1:-1))+" "+(a+e.majorTickLines.height*Math.sin(u*Math.PI/180)*("Inside"===e.tickPosition&&c.enableRtl?-1:"Inside"===e.tickPosition||"Outside"===e.tickPosition&&c.enableRtl?1:-1)),this.renderTickLine(e,t,d,"",y)}},i.prototype.renderRadarGrid=function(e,t,i){for(var o,r,n,a,l,s,h=0,c=i.primaryXAxis.visibleLabels.length;h<c;h++)o=bt(xt(i.primaryXAxis.visibleLabels[h].value,i.primaryXAxis),this.startAngle),r=bt(xt(h+1<c?i.primaryXAxis.visibleLabels[h+1].value:i.primaryXAxis.visibleLabels[0].value,i.primaryXAxis),this.startAngle),n=this.centerX+e*o.x,a=this.centerY+e*o.y,l=this.centerX+e*r.x,s=this.centerY+e*r.y,t=t.concat((h?"L ":"M ")+n+" "+a+" L "+l+" "+s+" ");return t},i.prototype.drawXAxisGridLine=function(e,t){for(var i,o,r,n,a,l=this.chart,s="",h="",c="",d="",p=this.centerX,u=this.centerY,g=e.visibleLabels.length,m=0;m<g;m++){i=e.visibleLabels[m].value,o=bt(xt(e.visibleLabels[m].value,e),this.startAngle),s="M "+p+" "+u+" L "+(r=this.centerX+l.radius*o.x)+" "+(n=this.centerY+l.radius*o.y),h="M "+r+" "+n+" L "+(r+e.majorTickLines.height*o.x*("Inside"===e.tickPosition?-1:1))+" "+(n+e.majorTickLines.height*o.y*("Inside"===e.tickPosition?-1:1)),e.minorTicksPerInterval>0&&(e.minorGridLines.width>0||e.minorTickLines.width>0)&&"Category"!==e.valueType&&"Radar"!==l.visibleSeries[0].type&&(c=(a=this.drawAxisMinorLine(e,i,c,d))[0],d=a[1]),this.renderTickLine(e,t,h,d,m),this.renderGridLine(e,t,s,c,m)}},i.prototype.drawAxisMinorLine=function(e,t,i,o){for(var r,n,a,l=t,s=e.visibleRange,h=[],c=0;c<e.minorTicksPerInterval;c++)if(it(l+=("DateTime"===e.valueType?e.dateTimeInterval:e.visibleRange.interval)/(e.minorTicksPerInterval+1),s)){a=bt(xt(l,e),this.startAngle),r=this.centerX+this.chart.radius*a.x,n=this.centerY+this.chart.radius*a.y;var d=r+e.minorTickLines.height*a.x*("Inside"===e.tickPosition?-1:1),p=n+e.minorTickLines.height*a.y*("Inside"===e.tickPosition?-1:1);i=i.concat("M "+this.centerX+" "+this.centerY+"L "+r+" "+n),o=o.concat("M "+r+" "+n+"L "+d+" "+p)}return h.push(i),h.push(o),h},i.prototype.drawXAxisLabels=function(e,i){var o;this.visibleAxisLabelRect=[],this.chart.legendModule&&(o=this.chart.legendModule.legendBounds);var r,n,a,l,s,h,c,d=this.chart,p=0,u=0,g=d.renderer.createGroup({id:d.element.id+"AxisLabels"+i}),m="Inside"===e.labelPosition,y="",f=[],v=[];v[0]=!0;var b=e.labelIntersectAction,x="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0,S=d.radius+e.majorTickLines.height;if(S=m?-S:S,e.labelTemplate){var C=d.element.id+"_XAxisLabelTemplate_Collection";d.xAxisLabelTemplate=(0,t.createElement)("div",{id:C})}for(var F=0,w=e.visibleLabels.length;F<w;F++){if(c=!1,n=bt(xt(e.visibleLabels[F].value+x,e),this.startAngle),isNaN(n.x)||isNaN(n.y)||(p=this.centerX+(S+e.majorTickLines.height+5)*n.x,u=this.centerY+(S+e.majorTickLines.height+5)*n.y,y=parseFloat(p.toFixed(1))===parseFloat(this.centerX.toFixed(1))?"middle":p<this.centerX&&!m||p>this.centerX&&m?"end":"start"),a=(h=e.visibleLabels[F]).text,(e.enableTrim||"Trim"===b)&&!e.enableWrap&&!e.labelTemplate)for(var L=e.visibleLabels[F].originalText,P=void 0,A=void 0,M=e.labelPosition,D=d.availableSize.width,k=L.length,T=k-1;T>=0;--T)if(P=L.substring(0,T)+"...",A=(0,R.measureText)(P,e.labelStyle,this.chart.themeStyle.axisLabelFont).width,p===D/2?p-A/2>=0&&p+A/2<=D:"Outside"===M&&(p>=D/2&&p+A<=D||p<=D/2&&p-A>=0)||"Inside"===M&&(p+A<=D/2||p-A>=D/2)){a=T===k-1?L:P,h.size.width=(0,R.measureText)(a,e.labelStyle,this.chart.themeStyle.axisLabelFont).width,h.text=a;break}if(e.labelTemplate||(f[F]=this.getLabelRegion(p,u,h,y)),0===F?l=p:F!==e.visibleLabels.length-1||"Category"===e.valueType||e.labelTemplate||(s=(0,R.measureText)(a,e.labelStyle,this.chart.themeStyle.axisLabelFont).height,a=(s+=p)>l?"":a),0!==F&&"Hide"===b&&!e.labelTemplate)for(var E=F;E>=0;E--){if(v[E=0===E?0:E===F?E-1:E]&&di(f[F],f[E])){c=!0,v[F]=!1;break}v[F]=!0}if(!c&&o&&!e.labelTemplate&&(c=di(f[F],o))){var _=this.getAvailableSpaceToTrim(o,f[F]);_>0&&(a=Fi(_,e.visibleLabels[F].originalText,e.labelStyle,this.chart.enableRtl,this.chart.themeStyle.axisLabelFont),c=!1)}if(r=new R.TextOption(d.element.id+i+"_AxisLabel_"+F,p,u,d.enableRtl?"end"===y?"start":"start"===y?"end":y:y,a,"","central"),!c)if(e.labelTemplate||this.visibleAxisLabelRect.push(f[F]),e.labelTemplate){var I=.5*d.border.width,O=I+(d.availableSize.width-d.border.width),z=r.x,B=r.y,N=new R.Size(h.size.width,h.size.height);if("middle"===y?z-=N.width/2:"end"===y&&(z-=N.width),z<I){var V=I-z;N.width=Math.max(0,N.width-V),z=I}else if("start"===y&&z+N.width>O){V=z+N.width-O;N.width=Math.max(0,N.width-V)}n.y<-.5?B-=N.height:n.y>.5||(B-=N.height/2);var H=d.element.id+"_XAxisLabelTemplate_"+i+"_"+F,W=Jt((0,t.createElement)("div",{id:H,styles:"position:absolute; pointer-events:none; z-index:1; left:"+z+"px; top:"+B+"px; width:"+N.width+"px; height:"+N.height+"px;"}),F,e.labelTemplate,d,h);d.xAxisLabelTemplate.appendChild(W)}else Di(d.renderer,r,h.labelStyle,h.labelStyle.color||d.themeStyle.axisLabelFont.color,g,!1,d.redraw,!0,!0,null,null,0,null,d.enableCanvas,null,d.themeStyle.axisLabelFont)}this.chart.enableCanvas||e.labelTemplate||this.element.appendChild(g)},i.prototype.getAvailableSpaceToTrim=function(e,t){var i=e.x,o=i+e.width,r=t.x,n=r+t.width,a=0;return r>i&&r<o&&n>o?a=n-o:r>i&&r<o&&n<o?a=0:(n>i&&n<o&&r<i||n>i&&n>o&&r<i)&&(a=i-r),a},i.prototype.getLabelRegion=function(e,t,i,o){return"middle"===o?e-=i.size.width/2:"end"===o&&(e-=i.size.width),t-=i.size.height/2,new R.Rect(e,t,i.size.width,i.size.height)},i.prototype.renderTickLine=function(e,t,i,o,r){var n,a,l,s=this.chart;e.majorTickLines.width>0&&(a=(l=qt(s.element.id+"_MajorTickLine_"+t+"_"+r))?l.getAttribute("d"):null,n=new R.PathOption(s.element.id+"_MajorTickLine_"+t+"_"+r,"transparent",e.majorTickLines.width,e.majorTickLines.color||s.themeStyle.majorTickLine,null,null,i),l=s.renderer.drawPath(n),this.setPointerEventNone(l),ni(s.enableCanvas,s.yAxisElements,l,s.redraw,!0,"x","y",null,a)),e.minorTickLines.width>0&&(a=(l=qt(s.element.id+"_MinorTickLine_"+t+"_"+r))?l.getAttribute("d"):null,n=new R.PathOption(s.element.id+"_MinorTickLine_"+t+"_"+r,"transparent",e.minorTickLines.width,e.minorTickLines.color||s.themeStyle.minorTickLine,null,null,o),l=s.renderer.drawPath(n),this.setPointerEventNone(l),ni(s.enableCanvas,s.yAxisElements,l,s.redraw,!0,"x","y",null,a))},i.prototype.renderGridLine=function(e,t,i,o,r){var n,a,l,s=this.chart;e.majorGridLines.width>0&&(a=(l=qt(s.element.id+"_MajorGridLine_"+t+"_"+r))?l.getAttribute("d"):null,n=new R.PathOption(s.element.id+"_MajorGridLine_"+t+"_"+r,"transparent",e.majorGridLines.width,e.majorGridLines.color||s.themeStyle.majorGridLine,null,e.majorGridLines.dashArray,i),ni(s.enableCanvas,this.element,s.renderer.drawPath(n),s.redraw,!0,"x","y",null,a)),e.minorGridLines.width>0&&(a=(l=qt(s.element.id+"_MinorGridLine_"+t+"_"+r))?l.getAttribute("d"):null,n=new R.PathOption(s.element.id+"_MinorGridLine_"+t+"_"+r,"transparent",e.minorGridLines.width,e.minorGridLines.color||s.themeStyle.minorGridLine,null,e.minorGridLines.dashArray,o),ni(s.enableCanvas,this.element,s.renderer.drawPath(n),s.redraw,!0,"x","y",null,a))},i.prototype.setPointerEventNone=function(e){e&&(e.style.pointerEvents="none")},i}(tr),mr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),yr=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return mr(i,e),i.prototype.render=function(e,i,o,r){for(var n=kt(e.drawType),a=o.minimum,l=o.maximum,s=0,h=e.points;s<h.length;s++){var c=h[s];c.visible=c.visible&&!(!(0,t.isNullOrUndefined)(a)&&c.yValue<a||!(0,t.isNullOrUndefined)(l)&&c.yValue>l)}e.points.length&&(e.drawType.indexOf("Column")>-1?this.columnDrawTypeRender(e,i,o):e.chart[n+"SeriesModule"].render(e,i,o,r))},i.prototype.columnDrawTypeRender=function(e,t,i){var o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v,b,x,S,C,F=t.actualRange.min,w=e.clipRect.width/2+e.clipRect.x,L=e.clipRect.height/2+e.clipRect.y,P="RangeColumn"===e.drawType,A="Polar"===e.type,M="Logarithmic"===i.valueType,D="StackingColumn"===e.drawType,k="",T=0,E=e.columnWidth||1,_=((e.points[1]?e.points[1].xValue:2*e.points[0].xValue)-e.points[0].xValue)*E,I=t.isAxisInverse,O="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?0:I?-_/2:_/2,z="DateTime"===t.valueType?t.dateTimeInterval:1;this.getSeriesPosition(e);var B=I?e.rectCount-1-e.position:e.position;do{T+=z,F+=z}while(F<=t.actualRange.max-("Category"===t.valueType?0:1));for(var N=0,V=e.points;N<V.length;N++){var H=V[N];H.symbolLocations=[],H.regions=[],H.visible&&nt(e.points[H.index-1],H,e.points[H.index+1],e)&&(l=(I?t.visibleRange.max-H.xValue:H.xValue-t.visibleRange.min)+(_/e.rectCount*B-O)+T/360*t.startAngle,l/=T,n=2*Math.PI*(l+t.startAngle),a=2*Math.PI*(l+t.startAngle+_/e.rectCount/T),0===n&&0===a?(a=2*Math.PI,C="1"):C="0",h=n,c=a,n=n-.5*Math.PI+e.columnSpacing/2,a=a-.5*Math.PI-1e-6-e.columnSpacing/2,D||P?(m=P?H.low:e.stackedValues.startValues[H.index],y=P?H.high:e.stackedValues.endValues[H.index],y=(y=M?et(0===y?1:y,i.logBase):y)>i.actualRange.max?i.actualRange.max:y):(m=i.visibleRange.min,y=H.yValue>i.actualRange.max?i.actualRange.max:H.yValue),d=w+(s=m!==y||P?e.chart.radius*yt(y,i):0)*Math.cos(n),p=w+s*Math.cos(a),u=L+s*Math.sin(n),g=L+s*Math.sin(a),v=w+(f=e.chart.radius*yt(0===m&&0!==i.visibleRange.min?i.visibleRange.min:m,i))*Math.cos(n),b=L+f*Math.sin(n),x=w+f*Math.cos(a),S=L+f*Math.sin(a),k=A?"M "+d+" "+u+" A "+s+" "+s+" 0 "+C+" 1 "+p+" "+g+" L "+x+" "+S+" A "+f+" "+f+" 1 0 0 "+v+" "+b+" Z":"M "+d+" "+u+" L "+p+" "+g+" L "+x+" "+S+" L "+v+" "+b+" Z",H.regionData=new Ct(h,c,f,s,l),r=this.triggerEvent(e.chart,e,H),o=new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+H.index,r.fill,r.border.width,r.border.color,e.opacity,e.dashArray,k),r.cancel||(this.appendLinePath(o,e,""),A?(H.symbolLocations.push({x:w+s*Math.cos(n+(a-n)/2),y:L+s*Math.sin(n+(a-n)/2)}),P&&H.symbolLocations.push({x:w+f*Math.cos(n+(a-n)/2),y:L+f*Math.sin(n+(a-n)/2)})):(H.symbolLocations.push({x:(d+p)/2,y:(u+g)/2}),P&&H.symbolLocations.push({x:(x+v)/2,y:(S+b)/2}))))}this.renderMarker(e),e.isRectSeries=!0},i.prototype.triggerEvent=function(e,t,i){var o={cancel:!1,name:V,series:t,point:i,fill:t.setPointColor(i,t.interior),border:t.setBorderColor(i,{width:t.border.width,color:t.border.color})};return e.trigger(V,o),i.color=o.fill,o},i.prototype.getSeriesPosition=function(e){for(var t=[],i=[],o={rectCount:0,position:null},r=0,n=e.chart.visibleSeries;r<n.length;r++){var a=n[r];!a.visible||"Polar"!==a.type&&"Radar"!==a.type||-1===a.drawType.indexOf("Column")||t.push(a)}for(var l=0;l<t.length;l++){var s=t[l];-1!==s.drawType.indexOf("Stacking")?s.stackingGroup?void 0===i[s.stackingGroup]?(s.position=o.rectCount,i[s.stackingGroup]=o.rectCount++):s.position=i[s.stackingGroup]:null===o.position?(s.position=o.rectCount,o.position=o.rectCount++):s.position=o.position:s.position=o.rectCount++}for(l=0;l<t.length;l++){t[l].rectCount=o.rectCount}},i.prototype.doAnimation=function(e){var t=e.animation.duration,i=e.animation.delay,o=e.seriesElement.childNodes,r=1;if("Scatter"===e.drawType)for(var n=0,a=e.points;n<a.length;n++){var l=a[n];l.symbolLocations.length&&o[r]&&(It(o[r],i,t,e,l.index,l.symbolLocations[0],!1),r++)}else for(r=1;r<o.length;r++)this.doPolarRadarAnimation(o[r],i,t,e)},i.prototype.doPolarRadarAnimation=function(e,i,o,r){var n=r.clipRect.width/2+r.clipRect.x,a=r.clipRect.height/2+r.clipRect.y,l=0;e.style.visibility="hidden",new t.Animation({}).animate(e,{duration:o,delay:i,progress:function(t){t.timeStamp>t.delay&&(t.element.style.visibility="visible",l=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate("+n+" "+a+") scale("+l+") translate("+-n+" "+-a+")"))},end:function(){var t=document.getElementById(r.chart.element.id+"_Annotation_Collections");t&&(t.style.visibility="visible"),e.style.visibility="visible",e.removeAttribute("transform"),r.chart.trigger("animationComplete",{series:r})}})},i.prototype.getPolarIsInversedPath=function(e,t){var i=this.chart.radius,o=t,r=e.isAxisInverse?"1 1 ":"1 0 ",n=bt(xt(e.visibleLabels[0].value,e),this.startAngle),a=this.centerX+i*n.x,l=this.centerY+i*n.y;return o+"L "+a+" "+l+" A "+i+" "+i+" 0 "+r+a+" "+(this.centerY+i)+" A "+i+" "+i+" 0 "+r+a+" "+l+" "},i.prototype.getModuleName=function(){return"PolarSeries"},i.prototype.destroy=function(){},i}(gr),fr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),vr=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return fr(i,e),i.prototype.render=function(e,i,o,r){for(var n=kt(e.drawType),a=o.minimum,l=o.maximum,s=0,h=e.points;s<h.length;s++){var c=h[s];c.visible=c.visible&&!(!(0,t.isNullOrUndefined)(a)&&c.yValue<a||!(0,t.isNullOrUndefined)(l)&&c.yValue>l)}e.points.length&&(-1===e.drawType.indexOf("Column")?e.chart[n+"SeriesModule"].render(e,i,o,r):this.columnDrawTypeRender(e,i,o))},i.prototype.getRadarIsInversedPath=function(e,t){var i,o,r,n=this.chart.radius,a=e.visibleLabels.length,l=t;if(r=bt(xt(e.visibleLabels[0].value,e),this.startAngle),o=this.centerY+n*r.y,i=this.centerX+n*r.x,isNaN(i)||isNaN(o))return l;l+=" L "+i+" "+o+" ";for(var s=a-1;s>=0;s--)r=bt(xt(e.visibleLabels[s].value,e),this.startAngle),o=this.centerY+n*r.y,l+="L "+(i=this.centerX+n*r.x)+" "+o+" ";return l},i.prototype.getModuleName=function(){return"RadarSeries"},i.prototype.destroy=function(){},i}(yr),br=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),xr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return br(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=e.stackedValues,i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}e.visible&&this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i,o){if(t.symbolLocations=[],t.regions=[],t.visible&&nt(e.points[t.index-1],t,e.points[t.index+1],e)){var r=void 0,n=void 0;if(!e.visible&&e.isLegendClicked){for(var a=e.index;a>=0;a--)if(e.chart.visibleSeries[a].visible){r=e.chart.visibleSeries[a].index;break}n=e.index>0&&void 0!==r?e.chart.visibleSeries[r].stackedValues.endValues[t.index]:e.stackedValues.startValues[t.index]}this.rect=this.getRectangle(t.xValue+i.start,!e.visible&&e.isLegendClicked?n:o.endValues[t.index],t.xValue+i.end,!e.visible&&e.isLegendClicked?n:o.startValues[t.index],e),e.chart.isTransposed&&e.columnWidthInPixel?(this.rect.width=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.height,this.rect.x-=e.columnWidthInPixel/2):this.rect.height=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.height,this.rect.y=e.columnWidthInPixel?e.chart.isTransposed?this.rect.y:this.rect.y-e.columnWidthInPixel/2:this.rect.y;var l=this.triggerEvent(e,t,e.interior,{width:e.visible?e.border.width:0,color:e.visible?e.border.color:""});if(!l.cancel&&(this.drawRectangle(e,t,this.rect,l),this.updateSymbolLocation(t,this.rect,e),"Cylinder"===e.columnFacet)){var s={isColumn:!1,stacking:"StackingBar100"===e.type,isLastSeries:!0};this.drawCylinder(this.options,this.element,s,this.rect,e)}}},t.prototype.updateDirection=function(e,t){for(var i=[],o=0;o<e.yAxis.series.length;o++){var r=e.yAxis.series[o];r.stackingGroup===e.stackingGroup&&i.push(r)}for(var n=0;n<i.length;n++)for(o=0;o<t.length;o++)this.renderPoint(i[n],i[n].points[t[o]],this.sideBySideInfo[e.index],i[n].stackedValues),e.marker&&e.marker.visible&&i[n].chart.markerRender.renderMarker(i[n],i[n].points[t[o]],i[n].points[t[o]].symbolLocations[0],null,!0),i[n].marker.dataLabel.visible&&i[n].chart.dataLabelModule&&(i[n].chart.dataLabelModule.commonId=i[n].chart.element.id+"_Series_"+i[n].index+"_Point_",i[n].chart.dataLabelModule.renderDataLabel(i[n],i[n].points[t[o]],null,i[n].marker.dataLabel))},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingBarSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t}(rr),Sr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Sr(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=Math.max(e.border.width,1),i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}},t.prototype.renderPoint=function(e,t,i,o){var r,n,a="";if(t.regions=[],t.symbolLocations=[],t.visible&&nt(e.points[t.index-1],t,e.points[t.index+1],e)){n=this.getRectangle(t.xValue+i.median,Math.max(t.high,t.low),t.xValue+i.median,Math.min(t.high,t.low),e),e.chart.requireInvertedAxis?(n.y-=o/2,n.height=o):(n.x-=o/2,n.width=o),r=this.getRectangle(t.xValue+i.start,Math.max(t.open,t.close),t.xValue+i.end,Math.min(t.open,t.close),e),a=this.getPathString(n,r,e);var l=this.triggerPointRenderEvent(e,t);l.cancel||(this.drawCandle(e,t,r,l,a),this.updateSymbolLocation(t,n,e),this.updateSymbolLocation(t,r,e))}},t.prototype.updateDirection=function(e,t){for(var i=Math.max(e.border.width,1),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},t.prototype.triggerPointRenderEvent=function(e,t){var i=this.getCandleColor(t,e),o={color:e.border.color,width:Math.max(e.border.width,1)};return this.triggerEvent(e,t,i,o)},t.prototype.getCandleColor=function(e,t){var i=t.points[e.index-1];return!1===t.enableSolidCandles?i&&i.close>e.close?t.bullFillColor||t.chart.themeStyle.bullFillColor:t.bearFillColor||t.chart.themeStyle.bearFillColor:e.open>e.close?t.bullFillColor||t.chart.themeStyle.bullFillColor:t.bearFillColor||t.chart.themeStyle.bearFillColor},t.prototype.getPathString=function(e,t,i){var o="",r=i.chart.requireInvertedAxis?e.y+e.height/2:e.x+e.width/2;return o=(o+=i.chart.requireInvertedAxis?"M "+e.x+" "+r+" L "+t.x+" "+r:"M "+r+" "+e.y+" L "+r+" "+t.y).concat(" M "+t.x+" "+t.y+" L "+(t.x+t.width)+" "+t.y+" L "+(t.x+t.width)+" "+(t.y+t.height)+" L "+t.x+" "+(t.y+t.height)+" Z"),o+=i.chart.requireInvertedAxis?" M "+(t.x+t.width)+" "+r+" L "+(e.x+e.width)+" "+r:" M "+r+" "+(t.y+t.height)+" L "+r+" "+(e.y+e.height)},t.prototype.drawCandle=function(e,t,i,o,r){if((e.chart.requireInvertedAxis?i.height:i.width)<=0)return null;var n=e.enableSolidCandles||t.open>t.close?o.fill:"transparent";o.border.color=o.fill;var a=new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),n,o.border.width,o.border.color,e.opacity,e.dashArray,r),l=qt(a.id),s=l?l.getAttribute("d"):null,h=e.chart.renderer.drawPath(a,new Int32Array([e.clipRect.x,e.clipRect.y]));null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(h.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index),h.setAttribute("role","img"),h.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x.toString()+":"+t.high.toString()+":"+t.low.toString()+":"+t.close.toString()+":"+t.open.toString()),e.chart.enableCanvas||e.seriesElement.appendChild(h),zt(l,r,e.chart.redraw,s,e.chart.duration)},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.getModuleName=function(){return"CandleSeries"},t.prototype.destroy=function(){},t}(rr),Fr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),wr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Fr(t,e),t.prototype.render=function(e){e.isRectSeries=!0,this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=e.stackedValues,i=Qe(e),o=0,r=i;o<r.length;o++){var n=r[o];this.renderPoint(e,n,this.sideBySideInfo[e.index],t,i)}e.visible&&this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i,o,r){if(t.symbolLocations=[],t.regions=[],t.visible&&nt(r[t.index-1],t,r[t.index+1],e)){var n=void 0,a=void 0;if(!e.visible&&e.isLegendClicked){for(var l=e.index;l>=0;l--)if(e.chart.visibleSeries[l].visible){n=e.chart.visibleSeries[l].index;break}a=e.index>0&&void 0!==n?e.chart.visibleSeries[n].stackedValues.endValues[t.index]:e.stackedValues.startValues[t.index]}this.rect=this.getRectangle(t.xValue+i.start,!e.visible&&e.isLegendClicked?a:o.endValues[t.index],t.xValue+i.end,!e.visible&&e.isLegendClicked?a:o.startValues[t.index],e),e.chart.isTransposed&&e.columnWidthInPixel?(this.rect.height=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.width,this.rect.y-=e.columnWidthInPixel/2):this.rect.width=e.columnWidthInPixel?e.columnWidthInPixel:this.rect.width,this.rect.x=e.columnWidthInPixel?e.chart.isTransposed?this.rect.x:this.rect.x-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.position):this.rect.x;var s=this.triggerEvent(e,t,e.interior,{width:e.visible?e.border.width:0,color:e.visible?e.border.color:""});if(!s.cancel&&(this.drawRectangle(e,t,this.rect,s),this.updateSymbolLocation(t,this.rect,e),"Cylinder"===e.columnFacet)){var h={isColumn:!0,stacking:"StackingColumn100"===e.type,isLastSeries:!0};this.drawCylinder(this.options,this.element,h,this.rect,e)}}},t.prototype.updateDirection=function(e,t){for(var i=[],o=0;o<e.xAxis.series.length;o++){var r=e.xAxis.series[o];r.stackingGroup===e.stackingGroup&&i.push(r)}for(var n=0;n<i.length;n++){var a=Qe(i[n]);for(o=0;o<t.length;o++)this.renderPoint(i[n],i[n].points[t[o]],this.sideBySideInfo[e.index],i[n].stackedValues,a),e.marker&&e.marker.visible&&i[n].chart.markerRender.renderMarker(i[n],i[n].points[t[o]],i[n].points[t[o]].symbolLocations[0],null,!0),i[n].marker.dataLabel.visible&&i[n].chart.dataLabelModule&&(i[n].chart.dataLabelModule.commonId=i[n].chart.element.id+"_Series_"+i[n].index+"_Point_",i[n].chart.dataLabelModule.renderDataLabel(i[n],i[n].points[t[o]],null,i[n].marker.dataLabel))}},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingColumnSeries"},t}(rr),Lr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lr(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s,h="",c="M",d=null,p=this.enableComplexProperty(e);a="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?.5:0;for(var u=0,g=p;u<g.length;u++){var m=g[u];m.symbolLocations=[],m.regions=[],m.visible&&nt(p[m.index-1],m,p[m.index+1],e)?("M"!==c||p[m.index+1]&&p[m.index+1].visible||(h=""),null!=d?(s=oi(m.xValue,m.yValue,t,i,o),l=oi(d.xValue,d.yValue,t,i,o),h=h.concat(c+" "+l.x+" "+l.y+this.GetStepLineDirection(s,l,e.step,"L",e,!0)),c="L"):(l=oi(m.xValue-a,m.yValue,t,i,o),h=h.concat(c+" "+l.x+" "+l.y+" "),c="L"),this.storePointLocation(m,e,o,oi),""===h&&(h="M "+m.symbolLocations[0].x+" "+m.symbolLocations[0].y),d=m):(d="Drop"===e.emptyPointSettings.mode?d:null,c="Drop"===e.emptyPointSettings.mode?c:"M")}p.length>0&&(l=oi(p[p.length-1].xValue+a,p[p.length-1].yValue,t,i,o),h=h.concat(c+" "+l.x+" "+l.y+" "));var y=new R.PathOption(e.chart.element.id+"_Series_"+e.index,"transparent",e.width,e.interior,e.opacity,e.dashArray,h);this[r?"addPath":"appendLinePath"](y,e,""),n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StepLineSeries"},t}(tr),Ar=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ar(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s,h,c,d=null,p="",u=this.enableComplexProperty(e),g=u.length,m=Math.max(e.yAxis.visibleRange.min,0),y=null,f="";c="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?.5:0;for(var v=0;v<g;v++)h=(s=u[v]).xValue,s.symbolLocations=[],s.regions=[],s.visible&&nt(u[v-1],s,u[v+1],e)&&(null===d&&(d=new ji(h,0),p+="M "+(a=oi(h-c,m,t,i,o)).x+" "+a.y+" ",p+="L "+(a=oi(h-c,s.yValue,t,i,o)).x+" "+a.y+" ",f+="M "+a.x+" "+a.y+" "),null!=y?(a=oi(s.xValue,s.yValue,t,i,o),l=oi(y.xValue,y.yValue,t,i,o),p=p.concat(this.GetStepLineDirection(a,l,e.step,"L",e)),f+=this.GetStepLineDirection(a,l,e.step,"L",e,!0)):"Gap"===e.emptyPointSettings.mode&&(p+="L "+(a=oi(s.xValue,s.yValue,t,i,o)).x+" "+a.y+" ",f+="L "+a.x+" "+a.y+" "),this.storePointLocation(s,e,o,oi),y=s),u[v+1]&&!u[v+1].visible&&"Drop"!==e.emptyPointSettings.mode&&(p+="L "+(a=oi(h+c,m,t,i,o)).x+" "+a.y,d=null,y=null);g>1&&""!==p?(p+="L "+(l=oi((d={x:u[g-1].xValue+c,y:u[g-1].yValue}).x,d.y,t,i,o)).x+" "+l.y+" ",f+="L "+l.x+" "+l.y+" ",p+="L "+(l=oi((d={x:u[g-1].xValue+c,y:m}).x,d.y,t,i,o)).x+" "+l.y+" "):p="";var b=new R.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,p);if(this[r?"addAreaPath":"appendLinePath"](b,e,""),0!==e.border.width){var x=new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.border.width,e.border.color?e.border.color:e.interior,1,e.border.dashArray,f);this[r?"addAreaPath":"appendLinePath"](x,e,"")}n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StepAreaSeries"},t}(tr),Dr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dr(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s,h,c="PolarRadar"===e.chart.chartAreaType,d=c?ft:oi,p="",u=this.enableComplexProperty(e),g=u.length,m=e.stackedValues,y=c?Math.max(e.yAxis.visibleRange.min,m.endValues[0]):Math.max(e.yAxis.visibleRange.min,m.startValues[0]),f=0,v="";g>0&&(s=d(u[0].xValue,y,t,i,o,e),p=p.concat("M "+s.x+" "+s.y+" "));for(var b,x=e.chart&&"PolarRadar"===e.chart.chartAreaType,S=e.index;S>=0;S--)if(e.chart.visibleSeries[S].visible&&e.chart.visibleSeries[S].type.indexOf("Stacking")>-1){b=e.chart.visibleSeries[S].index;break}for(S=0;S<g;S++)if(a=u[S].index,u[S].symbolLocations=[],u[S].regions=[],u[S].visible&&nt(u[S-1],u[S],u[S+1],e)){var C=e.index>0&&void 0!==b?this.chart.visibleSeries[b].stackedValues.endValues[a]:m.startValues[a];s=d(u[S].xValue,!e.visible&&e.isLegendClicked?C:m.endValues[a],t,i,o,e),p=p.concat("L "+s.x+" "+s.y+" "),u[S].symbolLocations.push(d(u[S].xValue,m.endValues[a],t,i,o,e)),u[S].regions.push(new R.Rect(u[S].symbolLocations[0].x-e.marker.width,u[S].symbolLocations[0].y-e.marker.height,2*e.marker.width,2*e.marker.height))}else if(!x&&"Drop"!==e.emptyPointSettings.mode){for(var F=S-1;F>=f;F--)a=u[F].index,h=d(u[F].xValue,m.startValues[a],t,i,o,e),p=p.concat("L "+h.x+" "+h.y+" ");u[S+1]&&u[S+1].visible&&(!x||x&&this.withinYRange(u[S+1],i))&&(l=u[S+1].index,s=d(u[S+1].xValue,m.startValues[l],t,i,o,e),p=p.concat("M "+s.x+" "+s.y+" ")),f=S+1}if("PolarRadar"===e.chart.chartAreaType&&u.length>1){var w=this.getFirstLastVisiblePoint(e.points),L=this.chart;p+="L "+(h=d((s={x:w.first.xValue,y:m.endValues[w.first.index]}).x,s.y,t,i,o,e)).x+" "+h.y+" ",1===this.chart.visible&&(t.isAxisInverse||i.isAxisInverse)&&(this.chart.enableAnimation=!1,p="Polar"===e.type?L.polarSeriesModule.getPolarIsInversedPath(t,p):L.radarSeriesModule.getRadarIsInversedPath(t,p))}if(!x||x&&e.index!==this.getFirstSeriesIndex(e.chart.visibleSeries))for(F=g-1;F>=f;F--)if(a=u[F].index,!x||u[F].visible){var P=this.getPreviousSeries(e);"Drop"===P.emptyPointSettings.mode&&P.points[F].isEmpty||(h=d(u[F].xValue,!e.visible&&e.isLegendClicked&&e.index>0&&void 0!==b?this.chart.visibleSeries[b].stackedValues.endValues[a]:m.startValues[a],t,i,o,e),m.startValues[a]===m.endValues[a]&&(h.y=Math.floor(h.y)),p=p.concat((F===g-1&&c?"M":"L")+" "+h.x+" "+h.y+" "))}var A=new R.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,p);if(this[r?"addAreaPath":"appendLinePath"](A,e,""),0!==e.border.width&&e.visible){v=this.removeEmptyPointsBorder(this.getBorderDirection(p));var M=new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.visible?e.border.width:0,e.border.color?e.border.color:e.interior,1,e.border.dashArray,v);this[r?"addAreaPath":"appendLinePath"](M,e,"")}!n&&e.visible&&this.renderMarker(e)},t.prototype.updateDirection=function(e,t){for(var i=0;i<e.xAxis.series.length;i++){var o=e.xAxis.series[i];this.render(o,o.xAxis,o.yAxis,o.chart.requireInvertedAxis,!1,!0);for(var r=0;r<t.length;r++)o.marker&&o.marker.visible&&o.chart.markerRender.renderMarker(o,o.points[t[r]],o.points[t[r]].symbolLocations[0],null,!0),o.marker.dataLabel.visible&&o.chart.dataLabelModule&&(o.chart.dataLabelModule.commonId=o.chart.element.id+"_Series_"+o.index+"_Point_",o.chart.dataLabelModule.renderDataLabel(o,o.points[t[r]],null,o.marker.dataLabel))}},t.prototype.addAreaPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=r.length;s<n.length;s++)n.length!==r.length&&r.splice((r.length+1)/2,0,r.slice((r.length-1)/2)[0],r.slice((r.length-1)/2)[1]);Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(n.splice(1,0,n[1]),n.splice(n.length-1,0,n[n.length-1]));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingAreaSeries"},t.prototype.getPreviousSeries=function(e){for(var t=e.chart.visibleSeries,i=0,o=t.length;i<o;i++)if(e.index===t[i].index&&0!==i)return t[i-1];return t[0]},t.prototype.getFirstSeriesIndex=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];if(o.visible)return o.index}return 0},t}(tr),Rr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rr(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s,h,c,d,p,u,g,m,y=null,f="",v="",b=e.stackedValues,x=this.enableComplexProperty(e),S=Math.max(e.yAxis.visibleRange.min,b.startValues[0]),C=x.length,F=null,w=0;u="Category"===t.valueType&&"BetweenTicks"===t.labelPlacement?.5:0;for(var L=0;L<C;L++)if(p=(h=x[L]).xValue,h.symbolLocations=[],h.regions=[],m=h.index,h.visible&&nt(x[L-1],h,x[L+1],e)&&(null===y&&(y=new ji(p,0),f+="M "+(a=oi(p-u,S,t,i,o)).x+" "+a.y+" ",f+="L "+(a=oi(p-u,b.endValues[m],t,i,o)).x+" "+a.y+" ",v+="M "+a.x+" "+a.y+" "),null!=F?(a=oi(h.xValue,b.endValues[m],t,i,o),l=oi(F.xValue,b.endValues[F.index],t,i,o),f+=this.GetStepLineDirection(a,l,e.step,"L",e,!1),v+=this.GetStepLineDirection(a,l,e.step,"L",e,!0)):"Gap"===e.emptyPointSettings.mode&&(f+="L "+(a=oi(h.xValue,b.endValues[m],t,i,o)).x+" "+a.y+" ",v+="L "+a.x+" "+a.y+" "),x[L].symbolLocations.push(oi(x[L].xValue,b.endValues[m],t,i,o)),x[L].regions.push(new R.Rect(x[L].symbolLocations[0].x-e.marker.width,x[L].symbolLocations[0].y-e.marker.height,2*e.marker.width,2*e.marker.height)),F=h),x[L+1]&&!x[L+1].visible&&null!==y&&"Drop"!==e.emptyPointSettings.mode){for(var P=void 0,A=L;A>=w;A--)m=x[A].index,P=0===A?0:x[A-1].index,a=oi(x[m].xValue,b.startValues[m],t,i,o),0!==A&&(b.startValues[m]<b.startValues[P]||b.startValues[m]>b.startValues[P])?(f=f.concat("L "+a.x+" "+a.y+" "),l=oi(x[P].xValue,b.startValues[P],t,i,o)):l=oi(x[m].xValue,b.startValues[m],t,i,o),x[P].visible&&(f=f.concat(this.GetStepLineDirection(l,a,this.prevStep,"L",e)));w=L+2,y=null,F=null}if(""!==f){C>1&&(m=x[C-1].index,f+="L "+(l=oi((y={x:x[C-1].xValue+u,y:b.endValues[m]}).x,y.y,t,i,o)).x+" "+l.y+" ",v+="L "+l.x+" "+l.y+" ",f+="L "+(l=oi((y={x:x[C-1].xValue+u,y:b.startValues[m]}).x,y.y,t,i,o)).x+" "+l.y+" ");for(A=C-1;A>=w;A--){var M=void 0;x[A].visible&&(m=x[A].index,c=oi(x[A].xValue,b.startValues[m],t,i,o),f=f.concat("L "+c.x+" "+c.y+" ")),0===A||x[A-1].visible||(M=this.getNextVisiblePointIndex(x,A)),0!==A&&x[A].visible&&(g=M||A-1,m=M?x[M].index:x[A-1].index,d=oi(x[g].xValue,b.startValues[m],t,i,o),(0===A||x[A-1].visible)&&(f=f.concat(this.GetStepLineDirection(d,c,this.prevStep,"L",e))))}this.prevStep="Right"===e.step?"Left":"Left"===e.step?"Right":e.step,s=new R.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,f),this[r?"addPath":"appendLinePath"](s,e,""),0!==e.border.width&&(s=new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.border.width,e.border.color?e.border.color:e.interior,1,e.border.dashArray,v),this[r?"addPath":"appendLinePath"](s,e,"")),n||this.renderMarker(e)}},t.prototype.updateDirection=function(e,t){for(var i=0;i<e.xAxis.series.length;i++){var o=e.xAxis.series[i];this.render(o,o.xAxis,o.yAxis,o.chart.requireInvertedAxis,!1,!0);for(var r=0;r<t.length;r++)o.marker&&o.marker.visible&&o.chart.markerRender.renderMarker(o,o.points[t[r]],o.points[t[r]].symbolLocations[0],null,!0),o.marker.dataLabel.visible&&o.chart.dataLabelModule&&(o.chart.dataLabelModule.commonId=o.chart.element.id+"_Series_"+o.index+"_Point_",o.chart.dataLabelModule.renderDataLabel(o,o.points[t[r]],null,o.marker.dataLabel))}},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=r.length;s<n.length;s++)n.length!==r.length&&(r.splice(Math.floor(r.length/2)-1,0,r[Math.floor(r.length/2)-1],r[Math.floor(r.length/2)-1]),r.splice(Math.floor(r.length/2)+2,0,r[Math.floor(r.length/2)+2],r[Math.floor(r.length/2)+2],r[Math.floor(r.length/2)+2]));Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(n.splice(2,0,n[2]),n.splice(n.length-3,0,n[n.length-3]));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingStepAreaSeries"},t.prototype.getNextVisiblePointIndex=function(e,t){var i;for(i=t-1;i>=0;i--)if(e[i].visible)return i;return 0},t}(tr),Er=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Er(t,e),t.prototype.render=function(e,t,i,o,r,n){for(var a,l,s,h,c="PolarRadar"===e.chart.chartAreaType?ft:oi,d="",p=this.enableComplexProperty(e),u=p.length,g=e.stackedValues,m=0;m<u;m++)p[m].regions=[],p[m].symbolLocations=[],a=p[m].index,p[m].visible&&nt(p[m-1],p[m],p[m+1],e)?(s=c(p[m].xValue,g.endValues[a],t,i,o,e),d=d.concat((m?"L":"M")+" "+s.x+" "+s.y+" "),p[m].symbolLocations.push(c(p[m].xValue,g.endValues[a],t,i,o,e)),p[m].regions.push(new R.Rect(p[m].symbolLocations[0].x-e.marker.width,p[m].symbolLocations[0].y-e.marker.height,2*e.marker.width,2*e.marker.height))):"Drop"!==e.emptyPointSettings.mode&&p[m+1]&&p[m+1].visible&&(l=p[m+1].index,s=c(p[m+1].xValue,g.endValues[l],t,i,o,e),d=d.concat("M "+s.x+" "+s.y+" "));"PolarRadar"===e.chart.chartAreaType&&p.length>1&&(d+="L "+(h=c((s={y:g.endValues[0],x:e.points[0].xValue}).x,s.y,t,i,o,e)).x+" "+h.y+" ");var y=new R.PathOption(e.chart.element.id+"_Series_"+e.index,"none",e.width,e.interior,e.opacity,e.dashArray,d);this[r?"addPath":"appendLinePath"](y,e,""),n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StackingLineSeries"},t}(tr),Ir=function(){function e(){}return e.prototype.render=function(e,t,i,o){e.isRectSeries=!1;for(var r=e.marker,n=this.enableComplexProperty(e),a="PolarRadar"===e.chart.chartAreaType?ft:oi,l={width:this.isLineShapeMarker(r.shape)?e.width:e.border.width,color:this.isLineShapeMarker(r.shape)?e.interior:e.border.color},s=0,h=n;s<h.length;s++){var c=h[s];this.renderPoint(e,c,o,a,l,n)}},e.prototype.renderPoint=function(e,t,i,o,r,n){var a,l=e.chart.redraw&&t.symbolLocations?t.symbolLocations[0]:null;t.symbolLocations=[],t.regions=[],t.visible&&nt(n[t.index-1],t,n[t.index+1],e)&&(a={cancel:!1,name:V,series:e,point:t,fill:e.setPointColor(t,e.interior),border:e.setBorderColor(t,{width:r.width,color:r.color}),height:e.marker.height,width:e.marker.width,shape:e.marker.shape},e.chart.trigger(V,a),a.border={width:this.isLineShapeMarker(a.shape)?e.width:e.border.width,color:this.isLineShapeMarker(a.shape)?e.interior:e.border.color},a.cancel?t.marker={visible:!0}:(t.symbolLocations.push(o(t.xValue,t.yValue,e.xAxis,e.yAxis,i,e)),t.color=a.fill,this.refresh(e,t,a,l)))},e.prototype.updateDirection=function(e,t,i){for(var o=e.marker,r=this.enableComplexProperty(e),n="PolarRadar"===e.chart.chartAreaType?ft:oi,a={width:this.isLineShapeMarker(o.shape)?e.width:e.border.width,color:this.isLineShapeMarker(o.shape)?e.interior:e.border.color},l=0;l<t.length;l++)this.renderPoint(e,e.points[t[l]],i,n,a,r),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[l]],null,e.marker.dataLabel))},e.prototype.isLineShapeMarker=function(e){return e.indexOf("Line")>-1||"Plus"===e||"Cross"===e},e.prototype.enableComplexProperty=function(e){for(var i,o=[],r=[],n=e.yAxis.visibleRange,a=e.xAxis.visibleRange,l=e.clipRect,s=e.points,h=Math.abs(n.delta/l.height),c=Math.abs(a.delta/l.width),d=s[0]&&s[0].y>h?0:h,p=s[0]&&s[0].x>c?0:c,u=0,g=0,m=0,y=s;m<y.length;m++){var f=y[m];f.symbolLocations||(f.symbolLocations=[]),u=f.yValue?f.yValue:n.min,g=f.xValue?f.xValue:a.min,(Math.abs(d-u)>=h||Math.abs(p-g)>=c)&&(r.push(f),d=u,p=g)}for(var v=0;v<r.length;v++)i=r[v],(0,t.isNullOrUndefined)(i.x)||""===i.x||o.push(i);return o},e.prototype.refresh=function(e,t,i,o){var r,n,a=e.chart,l=e.marker,s=i.point.marker.imageUrl||l.imageUrl,h=new R.PathOption(a.element.id+"_Series_"+e.index+"_Point_"+t.index,i.fill,i.border.width,e.chart.enableCanvas&&!i.border.color?i.fill:i.border.color,e.opacity,e.border.dashArray);if(a.redraw&&qt(h.id)){r="Circle"===i.shape?"c":"",n=qt(h.id).getAttribute("d");var c=qt(h.id);o={x:+c.getAttribute(r+"x"),y:+c.getAttribute(r+"y")}}var d=Xt(t.symbolLocations[0],i.shape,new R.Size(i.width,i.height),s,h,(t.x.toString(),t.yValue.toString()),e.chart.renderer,e.clipRect);ni(e.chart.enableCanvas,e.seriesElement,d,a.redraw,!0,r+"x",r+"y",o,n,!1,!1,null,a.duration,!0),t.regions.push(new R.Rect(t.symbolLocations[0].x-l.width,t.symbolLocations[0].y-l.height,2*l.width,2*l.height)),t.marker={border:i.border,fill:i.fill,height:i.height,visible:!0,width:i.width,shape:i.shape,imageUrl:s}},e.prototype.doAnimation=function(e){for(var t=e.animation.duration,i=e.animation.delay,o=e.seriesElement.childNodes,r=1,n=0,a=e.points;n<a.length;n++){var l=a[n];l.symbolLocations.length&&o[r]&&(It(o[r],i,t,e,l.index,l.symbolLocations[0],!1),r++)}},e.prototype.getModuleName=function(){return"ScatterSeries"},e.prototype.destroy=function(){},e}(),Or=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Or(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=0,i=e.points;t<i.length;t++){var o=i[t];this.renderPoint(e,o,this.sideBySideInfo[e.index])}this.renderMarker(e)},t.prototype.renderPoint=function(e,t,i){var o;if(t.symbolLocations=[],t.regions=[],t.visible&&nt(e.points[t.index-1],t,e.points[t.index+1],e)){(o=this.getRectangle(t.xValue+i.start,t.high,t.xValue+i.end,t.low,e)).width=e.columnWidthInPixel?e.columnWidthInPixel:o.width,e.columnWidthInPixel&&(1===e.chart.columns.length?o.x=o.x-(e.columnWidthInPixel/2*e.rectCount-e.columnWidthInPixel*e.index):o.x=o.x+o.width/2-e.columnWidthInPixel);var r=this.triggerEvent(e,t,e.interior,{width:e.border.width,color:e.border.color});r.cancel||(this.updateSymbolLocation(t,o,e),this.drawRectangle(e,t,o,r))}},t.prototype.updateDirection=function(e,t){for(var i=function(i){o.renderPoint(e,e.points[t[i]],o.sideBySideInfo[e.index]),e.marker&&e.marker.visible&&e.points[t[i]].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},o=this,r=0;r<t.length;r++)i(r)},t.prototype.getModuleName=function(){return"RangeColumnSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t}(rr),Br=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Nr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderDirection="",t.prevPoint=null,t}return Br(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s;this.prevPoint=null;var h,c,d=null,p="",u=0,g="M",m=void 0,y=e.border.width?e.border.width:0,f=e.border.color?e.border.color:e.interior,v=Math.max(e.yAxis.visibleRange.min,0),b=this.enableComplexProperty(e);"Category"===t.valueType&&"BetweenTicks"===t.labelPlacement&&(u=.5);for(var x=0,S=b.length;x<S;x++){if((a=b[x]).symbolLocations=[],a.regions=[],h=Math.min(a.low,a.high),c=Math.max(a.low,a.high),i.isAxisInverse){var C=h;h=c,c=C}var F=oi(a.xValue,h,t,i,o),w=oi(a.xValue,c,t,i,o);a.symbolLocations.push(w),a.symbolLocations.push(F);var L=new R.Rect(Math.min(F.x,w.x),Math.min(F.y,w.y),Math.max(Math.abs(w.x-F.x),e.marker.width),Math.max(Math.abs(w.y-F.y),e.marker.width));a.regions.push(L),a.visible&&nt(b[a.index-1],a,b[a.index+1],e)?(null===d&&(d=new ji(a.xValue,0),p+=g+" "+(l=oi(a.xValue-u,v,t,i,o)).x+" "+l.y+" ",p+="L "+(l=oi(a.xValue-u,a.high>a.low?a.high:a.low,t,i,o)).x+" "+l.y+" ",this.borderDirection+=g+" "+l.x+" "+l.y+" "),null!=this.prevPoint?(l=oi(a.xValue,a.high>a.low?a.high:a.low,t,i,o),s=oi(this.prevPoint.xValue,this.prevPoint.high>this.prevPoint.low?this.prevPoint.high:this.prevPoint.low,t,i,o),p+=this.GetStepLineDirection(l,s,e.step,g,e,!1),this.borderDirection+=this.GetStepLineDirection(l,s,e.step,g,e,!0)):"Gap"===e.emptyPointSettings.mode&&(p+=g+" "+(l=oi(a.xValue,a.high>a.low?a.high:a.low,t,i,o)).x+" "+l.y+" ",this.borderDirection+=g+" "+l.x+" "+l.y+" "),m=!1,g=" L",this.prevPoint=a,(x+1<b.length&&!b[x+1].visible||x===b.length-1)&&(g="M",p=(p=this.closeRangeStepAreaPath(b,a,e,p,x,t,i,o)).concat(" Z "),m=!0,this.prevPoint=null,d=null)):(!1===m&&0!==x&&(p=this.closeRangeStepAreaPath(b,a,e,p,x,t,i,o),m=!0),g="M",a.symbolLocations=[])}var P=new R.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,p);this[r?"addPath":"appendLinePath"](P,e,""),0!==e.border.width&&(this[r?"addPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",y,f,1,e.border.dashArray,this.borderDirection),e,""),this.borderDirection=""),n||this.renderMarker(e)},t.prototype.closeRangeStepAreaPath=function(e,t,i,o,r,n,a,l){for(var s,h,c,d,p=r;p>=0&&e[p].visible;p--){if(t=e[p],c=Math.min(t.low,t.high),d=Math.max(t.low,t.high),a.isAxisInverse){var u=c;c=d,d=u}null!=this.prevPoint&&(s=oi(t.xValue,t.low<t.high?t.low:t.high,n,a,l),h=oi(this.prevPoint.xValue,this.prevPoint.low<this.prevPoint.high?this.prevPoint.low:this.prevPoint.high,n,a,l),o+=this.GetStepLineDirection(s,h,"Right"===i.step?"Left":"Left"===i.step?"Right":i.step,"L",i,!1),this.borderDirection+=p===r?this.GetStepLineDirection(s,h,"Right"===i.step?"Left":"Left"===i.step?"Right":i.step,"M",i,!0):this.GetStepLineDirection(s,h,"Right"===i.step?"Left":"Left"===i.step?"Right":i.step,"L",i,!0)),this.prevPoint=t}return o},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=function(i){e.marker&&e.marker.visible&&e.points[t[i]].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},o=0;o<t.length;o++)i(o)},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=r.length;s<n.length;s++)n.length!==r.length&&(r.splice(Math.floor(r.length/2)-1,0,r[Math.floor(r.length/2)-1],r[Math.floor(r.length/2)-1]),r.splice(Math.floor(r.length/2)+2,0,r[Math.floor(r.length/2)+2],r[Math.floor(r.length/2)+2]));Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(n.splice(2,0,n[2]),n.splice(n.length-3,0,n[n.length-3]));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.getModuleName=function(){return"RangeStepAreaSeries"},t.prototype.destroy=function(){},t}(tr),Vr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hr=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.cumulativeSums=[],t}return Vr(i,e),i.prototype.render=function(e){for(var i,o,r,n,a=this.getSideBySideInfo(e),l=Math.max(e.yAxis.visibleRange.min,0),s=0,h="",c=0,d=null,p=e.chart.requireInvertedAxis,u=0,g=e.chart.redraw,m=0,y=e.points;m<y.length;m++){var f=y[m];if(f.symbolLocations=[],f.regions=[],f.visible&&nt(e.points[f.index-1],f,e.points[f.index+1],e)){var v=this.isIntermediateSum(e,f.index),b=this.isSumIndex(e,f.index);c+=v||!0===b?0:f.yValue,r=!0===v?u:null===s||b?l:s,i=this.getRectangle(f.xValue+a.start,c,f.xValue+a.end,r,e),v&&(u=c),s=c,(o=this.triggerPointRenderEvent(e,f)).cancel||(this.updateSymbolLocation(f,i,e),this.drawRectangle(e,f,i,o));var x=f.regions[0];if(null!==d){var S=p?d.x:d.y,C=p?x.x:x.y,F=void 0,w=void 0,L=x.y,P=x.x,A=e.points[f.index-1==-1?1:f.index-1];if(0===f.yValue?(F=p?d.x+d.width:d.y+d.height,w=p?f.symbolLocations[0].x:f.symbolLocations[0].y):(F=p?0===A.yValue?A.symbolLocations[0].x:d.x+d.width:0===A.yValue?A.symbolLocations[0].y:d.y+d.height,w=p?x.x+x.width:x.y+x.height),Math.round(S)===Math.round(C)||Math.round(F)===Math.round(C)?(n=p?0===x.x&&0===d.x?w:x.x:x.y,n=0===f.yValue?p?f.symbolLocations[0].x:f.symbolLocations[0].y:n):n=w,p)0===A.yValue&&(d.y=d.y+d.height/2+i.height/2-d.height),0===f.yValue&&(L=x.y+x.height/2-i.height/2),h=h.concat("M "+n+" "+(e.xAxis.isInversed?d.y+d.height:d.y)+" L "+n+" "+(e.xAxis.isInversed?L:L+x.height)+" ");else{var M=d.x;0===A.yValue&&(M=M+d.width/2+i.width/2-d.width,P=x.x+x.width/2+i.width/2-x.width),0===f.yValue&&(P=x.x+x.width/2-i.width/2),h=h.concat("M "+(e.xAxis.isInversed?M:M+d.width)+" "+n+" L "+(e.xAxis.isInversed?P+x.width:P)+" "+n+" ")}}d=f.regions[0]}}var D=new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Connector_","none",e.connector.width,e.connector.color,e.opacity,e.connector.dashArray,h);g&&qt(D.id)&&(h=qt(D.id).getAttribute("d"));var k=Pi(g,D.id,D,e.chart.renderer)||e.chart.renderer.drawPath(D,new Int32Array([e.clipRect.x,e.clipRect.y]));k.style.visibility=e.chart.enableCanvas?null:(e.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.chart.animateSeries?"hidden":"visible",ni(e.chart.enableCanvas,e.seriesElement,k,g,!0,null,null,null,h,null,null,null,e.chart.duration),this.renderMarker(e)},i.prototype.updateDirection=function(e,t){if(this.render(e),e.marker.visible&&ni(e.chart.enableCanvas,e.chart.seriesElements,e.symbolElement,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule)for(var i=0;i<t.length;i++){e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_";for(var o=e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel),r=0;r<o.length;r++)e.chart.dataLabelModule.doDataLabelAnimation(e,o[r])}},i.prototype.isIntermediateSum=function(e,t){return void 0!==e.intermediateSumIndexes&&-1!==e.intermediateSumIndexes.indexOf(t)},i.prototype.isSumIndex=function(e,t){return void 0!==e.sumIndexes&&-1!==e.sumIndexes.indexOf(t)},i.prototype.triggerPointRenderEvent=function(e,t){var i,o=this.isIntermediateSum(e,t.index),r=this.isSumIndex(e,t.index);return i=o||r?e.summaryFillColor:t.y<0?e.negativeFillColor:e.interior,this.triggerEvent(e,t,i,{color:e.border.color,width:e.border.width})},i.prototype.processInternalData=function(e,i){for(var o,r=e,n=0,a=!(0,t.isNullOrUndefined)(i.intermediateSumIndexes)&&i.intermediateSumIndexes.length>0?i.intermediateSumIndexes.sort(function(e,t){return e-t}):i.intermediateSumIndexes,l=!(0,t.isNullOrUndefined)(i.sumIndexes)&&i.sumIndexes.length>0?i.sumIndexes.sort(function(e,t){return e-t}):i.sumIndexes,s=0,h=0;h<r.length;h++)s+=void 0!==r[h][i.yName]?r[h][i.yName]:0,this.cumulativeSums.push(s);if(void 0!==a&&a.length>0)for(h=0;h<a.length;h++)for(var c=0;c<r.length;c++)c===a[h]&&(o=lt(r,0===h?-1:a[h-1],a[h],null,i),r[c][i.yName]=o);if(void 0!==l&&l.length>0)for(var d=0,p=0;p<l.length;p++)for(c=0;c<r.length;c++)c===l[p]&&(void 0!==a&&a.length>d&&a[p]!==l[p]&&a[p]<l[p]?(o=lt(r,a.length<=1?a[0]-1:a[p]-1,l[p],l,i),d+=1):o=lt(r,0===p?-1:l[p-1],l[p],null,i),n+=o,r[c][i.yName]=n);return r},i.prototype.doAnimation=function(e){this.animate(e)},i.prototype.getModuleName=function(){return"WaterfallSeries"},i.prototype.destroy=function(){},i}(rr),Wr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),jr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Wr(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=0,i=e.points;t<i.length;t++){var o=i[t];this.renderPoint(e,o,this.sideBySideInfo[e.index])}},t.prototype.renderPoint=function(e,t,i){var o;if(t.symbolLocations=[],t.regions=[],t.visible&&nt(e.points[t.index-1],t,e.points[t.index+1],e)){o=this.getRectangle(t.xValue+i.median,t.high,t.xValue+i.median,t.low,e);var r=this.triggerPointRenderEvent(e,t);r.cancel||(e.chart.requireInvertedAxis?(o.height=r.border.width,o.y=o.y-o.height/2):(o.width=r.border.width,o.x=o.x-o.width/2),r.border.width=0,this.updateSymbolLocation(t,o,e),this.drawRectangle(e,t,o,r))}},t.prototype.updateDirection=function(e,t){for(var i=0;i<t.length;i++)this.renderPoint(e,e.points[t[i]],this.sideBySideInfo[e.index]),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.triggerPointRenderEvent=function(t,i){var o={color:t.fill,width:Math.max(t.border.width,2)};return e.prototype.triggerEvent.call(this,t,i,t.interior,o)},t.prototype.getModuleName=function(){return"HiloSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t}(rr),Ur=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Xr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sideBySideInfo=[],t}return Ur(t,e),t.prototype.render=function(e){this.sideBySideInfo[e.index]=this.getSideBySideInfo(e);for(var t=Math.max(e.border.width,2),i=0,o=e.points;i<o.length;i++){var r=o[i];this.renderPoint(e,r,this.sideBySideInfo[e.index],t)}},t.prototype.renderPoint=function(e,t,i,o){var r,n,a;if(t.symbolLocations=[],t.regions=[],t.visible&&nt(e.points[t.index-1],t,e.points[t.index+1],e)){r=this.getRectangle(t.xValue+i.start,Math.max(t.high,t.low),t.xValue+i.end,Math.min(t.high,t.low),e),t.regions.push(this.getRectangle(t.xValue+i.median,Math.max(t.high,t.low),t.xValue+i.median,Math.min(t.high,t.low),e)),this.updateTickRegion(!e.chart.requireInvertedAxis,t.regions[0],o),t.regions.push(this.getRectangle(t.xValue+i.start,Math.max(t.open,t.close),t.xValue+i.median,Math.max(t.open,t.close),e)),t.regions.push(this.getRectangle(t.xValue+i.median,Math.min(t.open,t.close),t.xValue+i.end,Math.min(t.open,t.close),e));var l=this.triggerPointRenderEvent(e,t);if(!l.cancel){this.updateSymbolLocation(t,t.regions[0],e),n=t.open>t.close?1:2,a=t.open>t.close?2:1;var s={x:t.regions[n].x,y:t.regions[n].y},h={x:t.regions[a].x,y:t.regions[a].y};this.drawHiloOpenClosePath(e,t,s,h,r,l)}this.updateTickRegion(e.chart.requireInvertedAxis,t.regions[1],o),this.updateTickRegion(e.chart.requireInvertedAxis,t.regions[2],o)}},t.prototype.updateDirection=function(e,t){for(var i=Math.max(e.border.width,2),o=0;o<t.length;o++)this.renderPoint(e,e.points[t[o]],this.sideBySideInfo[e.index],i),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[o]],null,e.marker.dataLabel))},t.prototype.updateTickRegion=function(e,t,i){e?(t.x-=i/2,t.width=i):(t.y-=i/2,t.height=i)},t.prototype.triggerPointRenderEvent=function(e,t){var i=t.open<=t.close?e.bearFillColor||e.chart.themeStyle.bearFillColor:e.bullFillColor||e.chart.themeStyle.bullFillColor,o={color:e.border.color,width:Math.max(e.border.width,1)};return this.triggerEvent(e,t,i,o)},t.prototype.drawHiloOpenClosePath=function(e,t,i,o,r,n){var a;e.chart.requireInvertedAxis?(a="M "+r.x+" "+(r.y+r.height/2)+" L "+(r.x+r.width)+" "+(r.y+r.height/2)+" ",a+="M "+i.x+" "+(r.y+r.height/2)+" L "+i.x+" "+(r.y+r.height)+" ",a+="M "+o.x+" "+(r.y+r.height/2)+" L "+o.x+" "+r.y+" "):(a="M "+(r.x+r.width/2)+" "+(r.y+r.height)+" L "+(r.x+r.width/2)+" "+r.y+" ",a+="M "+r.x+" "+i.y+" L "+(r.x+r.width/2+n.border.width/2)+" "+i.y+" ",a+="M "+(r.x+r.width/2-n.border.width/2)+" "+o.y+" L "+(r.x+r.width)+" "+o.y+" ");var l=new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),n.fill,n.border.width,n.fill,e.opacity,e.dashArray,a);zt(qt(l.id),a,e.chart.redraw,null,e.chart.duration);var s=e.chart.renderer.drawPath(l,new Int32Array([e.clipRect.x,e.clipRect.y]));null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(s.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index),s.setAttribute("role","img"),s.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x.toString()+":"+t.high.toString()+":"+t.low.toString()+":"+t.close.toString()+":"+t.open.toString()),e.chart.enableCanvas||e.seriesElement.appendChild(s)},t.prototype.getModuleName=function(){return"HiloOpenCloseSeries"},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.destroy=function(){},t}(rr),Gr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Yr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderDirection="",t}return Gr(t,e),t.prototype.render=function(e,t,i,o,r,n){for(var a,l="",s="M",h=void 0,c=e.border.width?e.border.width:0,d=e.border.color?e.border.color:e.interior,p=this.enableComplexProperty(e),u=0,g=p.length;u<g;u++){(a=p[u]).symbolLocations=[],a.regions=[];var m=Math.min(a.low,a.high),y=Math.max(a.low,a.high);if(i.isAxisInverse){var f=m;m=y,y=f}var v=oi(a.xValue,m,t,i,o),b=oi(a.xValue,y,t,i,o);a.symbolLocations.push(b),a.symbolLocations.push(v);var x=new R.Rect(Math.min(v.x,b.x),Math.min(v.y,b.y),Math.max(Math.abs(b.x-v.x),e.marker.width),Math.max(Math.abs(b.y-v.y),e.marker.width));o?x.y-=e.marker.width/2:x.x-=e.marker.width/2,a.regions.push(x),a.visible&&nt(p[a.index-1],a,p[a.index+1],e)?(l=l.concat(s+" "+v.x+" "+v.y+" "),this.borderDirection+=s+" "+v.x+" "+v.y+" ",h=!1,(u+1<p.length&&!p[u+1].visible||u===p.length-1)&&(s="M",l=(l=this.closeRangeAreaPath(p,a,e,l,u)).concat(" Z"),h=!0),s="L"):(!1===h&&0!==u&&(l=this.closeRangeAreaPath(p,a,e,l,u),h=!0),s="M",a.symbolLocations=[])}var S="Indicator"===e.category?e.chart.element.id+"_Indicator_"+e.index+"_"+e.name:e.chart.element.id+"_Series_"+e.index,C=new R.PathOption(S,e.interior,0,"transparent",e.opacity,e.dashArray,l);this[r?"addPath":"appendLinePath"](C,e,""),0!==e.border.width&&(this[r?"addPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",c,d,1,e.border.dashArray,this.borderDirection),e,""),this.borderDirection=""),n||this.renderMarker(e)},t.prototype.closeRangeAreaPath=function(e,t,i,o,r){for(var n=r;n>=0&&(e[n].visible&&e[n].symbolLocations[0]);n--)o+="L "+(t=e[n]).symbolLocations[0].x+" "+t.symbolLocations[0].y+" ",this.borderDirection+=(n===r?"M":"L")+" "+t.symbolLocations[0].x+" "+t.symbolLocations[0].y+" ";return o},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=function(i){e.marker&&e.marker.visible&&e.points[t[i]].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},o=0;o<t.length;o++)i(o)},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=r.length;s<n.length;s++)n.length!==r.length&&r.splice((r.length-1)/2,0,r.slice(0,(r.length-1)/2).pop(),r.slice(0,(r.length-1)/2+1).pop());Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(n.splice(1,0,n[0]),n.splice(n.length-2,0,n[n.length-2]));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.getModuleName=function(){return"RangeAreaSeries"},t.prototype.destroy=function(){},t}(tr),Zr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),qr=function(e){function i(t){var i=e.call(this,t)||this;return i.splinePoints=[],i.lowSplinePoints=[],i}return Zr(i,e),i.prototype.findSplinePoint=function(e){var t,i,o,r,n=[],a=0,l=!1;o=this.filterEmptyPoints(e);for(var s=0;s<o.length;s++)null!==(r=o[s]).x&&""!==r.x&&(r.index=a,a++,n.push(r));var h=!1;if(this.splinePoints=this.findSplineCoefficients(n,e,h),"SplineRangeArea"===e.type&&(h=!h,this.lowSplinePoints=this.findSplineCoefficients(n,e,h)),n.length>1){e.drawPoints=[],e.lowDrawPoints=[];for(var c=0,d=n;c<d.length;c++){var p=d[c];if(l=l||p.yValue<0,0!==p.index){var u=this.getPreviousIndex(n,p.index-1,e);"SplineRangeArea"===e.type&&(n[u].yValue=n[u].high>n[u].low?n[u].high:n[u].low,p.yValue=p.high>p.low?p.high:p.low),t=this.getControlPoints(n[u],p,this.splinePoints[u],this.splinePoints[p.index],e),e.drawPoints.push(t),"SplineRangeArea"===e.type&&(n[u].yValue=n[u].low<n[u].high?n[u].low:n[u].high,p.yValue=p.low<p.high?p.low:p.high,i=this.getControlPoints(n[u],p,this.lowSplinePoints[u],this.lowSplinePoints[p.index],e),e.lowDrawPoints.push(i));var g=e.yMax-e.yMin;p.yValue&&t.controlPoint1.y&&t.controlPoint2.y&&g>1&&(e.yMin=Math.min(e.yMin,p.yValue,t.controlPoint1.y,t.controlPoint2.y),e.yMax=Math.ceil(Math.max(e.yMax,p.yValue,t.controlPoint1.y,t.controlPoint2.y)),e.yMin="Logarithmic"!==e.yAxis.valueType?Math.floor(e.yMin):e.yMin)}}!l&&e.yMin<0&&(e.yMin=0),"PolarRadar"===e.chart.chartAreaType&&e.isClosed&&(t=this.getControlPoints({xValue:n[n.length-1].xValue,yValue:n[n.length-1].yValue},{xValue:n[n.length-1].xValue+1,yValue:n[0].yValue},this.splinePoints[0],this.splinePoints[n[n.length-1].index],e),e.drawPoints.push(t))}},i.prototype.getPreviousIndex=function(e,i,o){if("Drop"!==o.emptyPointSettings.mode)return i;for(;(0,t.isNullOrUndefined)(e[i])&&i>-1;)i-=1;return i},i.prototype.getNextIndex=function(e,i,o){if("Drop"!==o.emptyPointSettings.mode)return i;for(;(0,t.isNullOrUndefined)(e[i])&&i<e.length;)i+=1;return i},i.prototype.filterEmptyPoints=function(e,i){if("Drop"!==e.emptyPointSettings.mode&&this.isPointInRange(e.points))return i||e.points;for(var o=i||(0,t.extend)([],e.points,null,!0),r=0;r<o.length;r++)o[r].index=r,o[r].isEmpty&&(o[r].symbolLocations=[],o[r].regions=[],o.splice(r,1),r--);return o},i.prototype.isPointInRange=function(e){for(var t=0,i=e;t<i.length;t++){if(!i[t].isPointInRange)return!1}return!0},i.prototype.findSplineCoefficients=function(e,t,i){var o=[],r=t.cardinalSplineTension?t.cardinalSplineTension:.5;switch(r<0?r=0:r>1&&(r=1),t.splineType){case"Monotonic":o=this.monotonicSplineCoefficients(e,t,i);break;case"Cardinal":o=this.cardinalSplineCofficients(e,t);break;default:"Clamped"===t.splineType?o=this.clampedSplineCofficients(e,t,i):(o[0]=[][0]=0,o[e.length-1]=0),o=this.naturalSplineCoefficients(e,t,i)}return o},i.prototype.monotonicSplineCoefficients=function(e,t,i){for(var o,r=e.length,n=[],a=[],l=[],s=[],h=0;h<r-1;h++)"SplineRangeArea"===t.type&&(i||(e[h+1].yValue=e[h+1].high>e[h+1].low?e[h+1].high:e[h+1].low,e[h].yValue=e[h].high>e[h].low?e[h].high:e[h].low),i&&(e[h+1].yValue=e[h+1].low<e[h+1].high?e[h+1].low:e[h+1].high,e[h].yValue=e[h].low<e[h].high?e[h].low:e[h].high)),a[h]=e[h+1].xValue-e[h].xValue,l[h]=e[h+1].yValue-e[h].yValue,s[h]=l[h]/a[h];var c=s.length;n[0]=s[0],n[r-1]=s[c-1];for(var d=0;d<a.length;d++)c>d+1&&(s[d]*s[d+1]<=0?n[d+1]=0:(o=a[d]+a[d+1],n[d+1]=3*o/((o+a[d+1])/s[d]+(o+a[d])/s[d+1])));return n},i.prototype.cardinalSplineCofficients=function(e,t){var i=e.length,o=[],r=t.cardinalSplineTension?t.cardinalSplineTension:.5;r=r<0?0:r>1?1:r;for(var n=0;n<i;n++)o[n]=0===n?i>2?r*(e[n+2].xValue-e[n].xValue):0:n===i-1?i>2?r*(e[i-1].xValue-e[i-3].xValue):0:r*(e[n+1].xValue-e[n-1].xValue);return o},i.prototype.clampedSplineCofficients=function(e,t,i){for(var o=e.length,r=[],n=[],a=0;a<o-1;a++)"SplineRangeArea"===t.type&&(i||(e[1].yValue=e[1].high>e[1].low?e[1].high:e[1].low,e[0].yValue=e[0].high>e[0].low?e[0].high:e[0].low,e[e.length-1].yValue=e[e.length-1].high>e[e.length-1].low?e[e.length-1].high:e[e.length-1].low,e[e.length-2].yValue=e[e.length-2].high>e[e.length-2].low?e[e.length-2].high:e[e.length-2].low),i&&(e[1].yValue=e[1].low<e[1].high?e[1].low:e[1].high,e[0].yValue=e[0].low<e[0].high?e[0].low:e[0].high,e[e.length-1].yValue=e[e.length-1].low<e[e.length-1].high?e[e.length-1].low:e[e.length-1].high,e[e.length-2].yValue=e[e.length-2].low<e[e.length-2].high?e[e.length-2].low:e[e.length-2].high)),r[0]=3*(e[1].yValue-e[0].yValue)/(e[1].xValue-e[0].xValue)-3,n[0]=.5,r[e.length-1]=3*(e[e.length-1].yValue-e[e.length-2].yValue)/(e[e.length-1].xValue-e[e.length-2].xValue),r[0]=n[0]=Math.abs(r[0])===1/0?0:r[0],r[e.length-1]=n[e.length-1]=Math.abs(r[e.length-1])===1/0?0:r[e.length-1];return r},i.prototype.naturalSplineCoefficients=function(e,t,i){var o,r,n,a,l,s=e.length,h=[],c=[];h[0]=c[0]=0,h[e.length-1]=0;for(var d=1;d<s-1;d++)if("SplineRangeArea"===t.type&&(i||(e[d+1].yValue=e[d+1].low>e[d+1].high?e[d+1].low:e[d+1].high,e[d].yValue=e[d].low>e[d].high?e[d].low:e[d].high,e[d-1].yValue=e[d-1].low>e[d-1].high?e[d-1].low:e[d-1].high),i&&(e[d+1].yValue=e[d+1].high<e[d+1].low?e[d+1].high:e[d+1].low,e[d].yValue=e[d].high<e[d].low?e[d].high:e[d].low,e[d-1].yValue=e[d-1].high<e[d-1].low?e[d-1].high:e[d-1].low)),n=e[d].xValue-e[d-1].xValue,a=e[d+1].xValue-e[d-1].xValue,l=e[d+1].xValue-e[d].xValue,o=e[d+1].yValue-e[d].yValue||null,r=e[d].yValue-e[d-1].yValue||null,0===n||0===a||0===l)h[d]=0,c[d]=0;else{var p=1/(n*h[d-1]+2*a);h[d]=-p*l,c[d]=p*(6*(o/l-r/n)-n*c[d-1])}for(var u=s-2;u>=0;u--)h[u]=h[u]*h[u+1]+c[u];return h},i.prototype.getControlPoints=function(e,t,i,o,r){var n,a,l,s=i,h=o,c=e.xValue,d=e.yValue,p=t.xValue,u=t.yValue;switch(r.splineType){case"Cardinal":"DateTime"===r.xAxis.valueType&&(s=i/this.dateTimeInterval(r),h=o/this.dateTimeInterval(r)),n=new ji(c+i/3,d+s/3),a=new ji(p-o/3,u-h/3),l=new Qi(n,a);break;case"Monotonic":var g=(p-c)/3;n=new ji(c+g,d+i*g),a=new ji(p-g,u-o*g),l=new Qi(n,a);break;default:var m=1/3,y=p-c,f=m*(d+2*u-m*(y*=y)*(.5*i+o));n=new ji((2*c+p)*m,m*(2*d+u-m*y*(i+.5*o))),a=new ji((c+2*p)*m,f),l=new Qi(n,a)}return l},i.prototype.dateTimeInterval=function(e){var t=e.xAxis.actualIntervalType;return"Years"===t?31536e6:"Months"===t?2592e6:"Days"===t?864e5:"Hours"===t?36e5:"Minutes"===t?6e4:"Seconds"===t?1e3:2592e6},i.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},i}(tr),Qr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.borderDirection="",t}return Qr(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s,h,c,d,p,u,g,m="",y=void 0,f=null,v=[],b=0,x=e.border.width?e.border.width:0,S=e.border.color?e.border.color:e.interior,C="";p=this.filterEmptyPoints(e);for(var F=0;F<p.length;F++)null!==(a=p[F]).x&&""!==a.x&&(a.index=b,b++,v.push(a));var w=this.enableComplexProperty(e),L=w.length;for(F=0;F<L;F++){(a=w[F]).regions=[],a.symbolLocations=[],g=this.getNextIndex(v,a.index-1,e),u=this.getPreviousIndex(v,a.index-1,e);var P=Math.min(a.low,a.high),A=Math.max(a.low,a.high);if(i.isAxisInverse){var M=P;P=A,A=M}var D=oi(a.xValue,P,t,i,o),k=oi(a.xValue,A,t,i,o);a.symbolLocations.push(k),a.symbolLocations.push(D);var T=new R.Rect(Math.min(D.x,k.x),Math.min(D.y,k.y),Math.max(Math.abs(k.x-D.x),e.marker.width),Math.max(Math.abs(k.y-D.y),e.marker.width));o?T.y-=e.marker.width/2:T.x-=e.marker.width/2,a.regions.push(T),a.visible&&nt(w[u],a,w[g],e)?(f?(c=e.drawPoints[u].controlPoint1,d=e.drawPoints[u].controlPoint2,l=oi(a.xValue,a.high>a.low?a.high:a.low,t,i,o),s=oi(c.x,c.y,t,i,o),h=oi(d.x,d.y,t,i,o),m=m.concat("C "+s.x+" "+s.y+" "+h.x+" "+h.y+" "+l.x+" "+l.y+" "),this.borderDirection+="C "+s.x+" "+s.y+" "+h.x+" "+h.y+" "+l.x+" "+l.y+" "):(i.isAxisInverse?(m=m.concat("M "+k.x+" "+k.y+" L "+D.x+" "+D.y+" "),this.borderDirection+="M "+k.x+" "+k.y+" ",C="L "+D.x+" "+D.y):(m=m.concat("M "+D.x+" "+D.y+" L "+k.x+" "+k.y+" "),this.borderDirection+="M "+k.x+" "+k.y+" ",C="L "+D.x+" "+D.y),y=!1),(F+1<w.length&&!w[F+1].visible||F===w.length-1)&&(m=this.closeSplineRangeAreaPath(w,a,e,m,F,t,i,o),this.borderDirection+=C,C="",m=m.concat(" Z"),y=!0),f=a):(!1===y&&0!==F&&(m=this.closeSplineRangeAreaPath(w,a,e,m,F,t,i,o),y=!0),f=null,a.symbolLocations=[])}var E="Indicator"===e.category?e.chart.element.id+"_Indicator_"+e.index+"_"+e.name:e.chart.element.id+"_Series_"+e.index,_=new R.PathOption(E,e.interior,0,"transparent",e.opacity,e.dashArray,m);this[r?"addPath":"appendLinePath"](_,e,""),0!==e.border.width&&(this[r?"addPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",x,S,1,e.border.dashArray,this.borderDirection),e,""),this.borderDirection=""),n||this.renderMarker(e)},t.prototype.closeSplineRangeAreaPath=function(e,t,i,o,r,n,a,l){for(var s,h,c,d,p,u=null,g=r;g>0&&e[g].visible;g--){t=e[g];var m=Math.min(t.low,t.high),y=Math.max(t.low,t.high);if(a.isAxisInverse){var f=m;m=y,y=f}var v=oi(t.xValue,m,n,a,l),b=oi(t.xValue,y,n,a,l);u&&i.lowDrawPoints[g]?(d=i.lowDrawPoints[g].controlPoint1,p=i.lowDrawPoints[g].controlPoint2,s=oi(t.xValue,t.low<t.high?t.low:t.high,n,a,l),h=oi(d.x,d.y,n,a,l),c=oi(p.x,p.y,n,a,l),isNaN(h.y)&&isNaN(c.y)||(o=o.concat("C "+c.x+" "+c.y+" "+h.x+" "+h.y+" "+s.x+" "+s.y+" "),this.borderDirection+="C "+c.x+" "+c.y+" "+h.x+" "+h.y+" "+s.x+" "+s.y+" ")):a.isAxisInverse?(o=o.concat("L "+b.x+" "+b.y+" "),this.borderDirection+="M "+b.x+" "+b.y+" "):(o=o.concat("L "+v.x+" "+v.y+" "),this.borderDirection+="M "+v.x+" "+v.y+" "),u=t}return o},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=function(i){e.marker&&e.marker.visible&&e.points[i].symbolLocations.map(function(o,r){e.chart.markerRender.renderMarker(e,e.points[t[i]],o,r,!0)}),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},o=0;o<t.length;o++)i(o)},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=r.length;s<n.length;s++)n.length!==r.length&&(r.splice(r.length/2+1,0,"C "+r[(r.length-1)/2].split(" ").slice(5,7).join(" ")+" "+r[(r.length-1)/2].split(" ").slice(5,7).join(" ")+" "+r[(r.length-1)/2].split(" ").slice(5,7).join(" ")),r.splice(r.length/2+2,0,"C "+r[r.length/2+1].split(" ").slice(1,3).join(" ")+" "+r[r.length/2+1].split(" ").slice(1,3).join(" ")+" "+r[r.length/2+1].split(" ").slice(1,3).join(" ")));Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)n.length!==r.length&&(n.splice(2,0,"C "+n[1].split(" ").slice(-3).join(" ")+n[1].split(" ").slice(-3).join(" ")+n[1].split(" ").slice(-3).join(" ")),n.splice(n.length-1,0,"C "+n[n.length-2].split(" ").slice(-4).join(" ")+n[n.length-2].split(" ").slice(-4).join(" ")+n[n.length-2].split(" ").slice(-4).join(" ")));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.doAnimation=function(e){var t=e.animation;this.doLinearAnimation(e,t)},t.prototype.getModuleName=function(){return"SplineRangeAreaSeries"},t.prototype.destroy=function(){},t}(qr),Kr=function(){function e(){}return e.prototype.render=function(e,t,i,o){var r,n=e.points,a=Math.max(e.chart.initialClipRect.height,e.chart.initialClipRect.width),l=a/100,s=e.maxRadius*l,h=e.minRadius*l,c=null;if(null===e.maxRadius||null===e.minRadius){for(var d=0,p=e.chart.visibleSeries;d<p.length;d++){var u=p[d];"Bubble"!==u.type||!0!==u.visible||null!==u.maxRadius&&null!==u.minRadius||(c=u.sizeMax>c?u.sizeMax:c)}h=s=1,r=a/5/2*s}else c=e.sizeMax,r=s-h;for(var g=0,m=n;g<m.length;g++){var y=m[g];this.renderPoint(e,y,o,r,c,h,n)}},e.prototype.renderPoint=function(e,t,i,o,r,n,a,l){var s,h=e.chart.redraw&&t.symbolLocations?t.symbolLocations[0]:null;if(t.symbolLocations=[],t.regions=[],t.visible&&nt(a[t.index-1],t,a[t.index+1],e)){s=(s=null===e.maxRadius||null===e.minRadius?o*Math.abs(+t.size/r):n+o*Math.abs(+t.size/r))||n;var c={cancel:!1,name:V,series:e,point:t,fill:e.setPointColor(t,e.interior),border:e.setBorderColor(t,{width:e.border.width,color:e.border.color}),height:2*s,width:2*s};if(e.chart.trigger(V,c),c.cancel)t.marker={visible:!1};else{t.symbolLocations.push(oi(t.xValue,t.yValue,e.xAxis,e.yAxis,i)),t.color=c.fill;var d=new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index,c.fill,c.border.width,c.border.color,e.opacity,e.border.dashArray);if(l&&qt(d.id)){var p=qt(d.id);h={x:+p.getAttribute("cx"),y:+p.getAttribute("cy")}}var u=Xt(t.symbolLocations[0],"Circle",new R.Size(c.width,c.height),e.marker.imageUrl,d,(t.x.toString(),t.yValue.toString()),e.chart.svgRenderer,e.clipRect);ni(e.chart.enableCanvas,e.seriesElement,u,e.chart.redraw,!0,"cx","cy",h,null,!1,!1,null,e.chart.duration,!0),t.regions.push(new R.Rect(t.symbolLocations[0].x-s,t.symbolLocations[0].y-s,2*s,2*s)),t.marker={border:c.border,fill:c.fill,height:c.height,visible:!0,shape:"Circle",width:c.width},e.chart.enableCanvas&&e.chart.markerRender.render(e),h=e.chart.redraw&&!h?t.symbolLocations[0]:h,e.chart.redraw&&Ai(u,e.chart.duration?e.chart.duration:300,h,t.symbolLocations[0],"cx","cy")}}},e.prototype.updateDirection=function(e,t,i){var o,r=e.points,n=Math.max(e.chart.initialClipRect.height,e.chart.initialClipRect.width),a=n/100,l=e.maxRadius*a,s=e.minRadius*a,h=null;if(null===e.maxRadius||null===e.minRadius){for(var c=0,d=e.chart.visibleSeries;c<d.length;c++){var p=d[c];"Bubble"!==p.type||!0!==p.visible||null!==p.maxRadius&&null!==p.minRadius||(h=p.sizeMax>h?p.sizeMax:h)}s=l=1,o=n/5/2*l}else h=e.sizeMax,o=l-s;for(var u=0;u<t.length;u++)this.renderPoint(e,e.points[t[u]],i,o,h,s,r,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[u]],null,e.marker.dataLabel))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"BubbleSeries"},e.prototype.doAnimation=function(e){for(var t=e.animation.duration,i=e.animation.delay,o=e.seriesElement.childNodes,r=1,n=0,a=e.points;n<a.length;n++){var l=a[n];l.symbolLocations.length&&(It(o[r],i,t,e,l.index,l.symbolLocations[0],!1),r++)}},e}(),Jr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),en=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jr(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s=null,h="",c="M",d="TrendLine"===e.category?e.points:this.enableComplexProperty(e);a=this.filterEmptyPoints(e,d);for(var p="PolarRadar"===e.chart.chartAreaType?ft:oi,u=0,g=a;u<g.length;u++){var m=g[u];1===m.index&&(h=""),l=this.getPreviousIndex(a,m.index-1,e),m.symbolLocations=[],m.regions=[],m.visible?(nt(a[l],m,a[this.getNextIndex(a,m.index-1,e)],e)&&(null!==s&&(h=this.getSplineDirection(e.drawPoints[l],s,m,t,i,o,e,c,p,h),c="L"),this.storePointLocation(m,e,o,p),""===h&&1===a.length&&(h="M "+m.symbolLocations[0].x+" "+m.symbolLocations[0].y),null===s&&""!==h&&(m.index===a.length-1||a[m.index+1]&&!a[m.index+1].visible)&&(h+="M "+m.symbolLocations[0].x+" "+m.symbolLocations[0].y+" ")),s=m):(c="M",s=null,m.symbolLocations=[])}if(a.length>0&&e.drawPoints.length>0&&"PolarRadar"===e.chart.chartAreaType&&e.isClosed){var y=this.getFirstLastVisiblePoint(a);h=this.getSplineDirection(e.drawPoints[e.drawPoints.length-1],y.last,{xValue:y.first.xValue,yValue:y.first.yValue},t,i,o,e,c,p,h),c="L"}var f="TrendLine"===e.category?e.chart.element.id+"_Series_"+e.sourceIndex+"_TrendLine_"+e.index:e.chart.element.id+"_Series_"+e.index,v=new R.PathOption(f,"transparent",e.width,e.interior,e.opacity,e.dashArray,h);this[r?"addPath":"appendLinePath"](v,e,""),n||this.renderMarker(e)},t.prototype.getSplineDirection=function(e,t,i,o,r,n,a,l,s,h){var c=e.controlPoint1,d=e.controlPoint2,p=s(t.xValue,t.yValue,o,r,n,a),u=s(i.xValue,i.yValue,o,r,n,a),g=s(c.x,c.y,o,r,n,a),m=s(d.x,d.y,o,r,n,a);return h.concat(l+" "+p.x+" "+p.y+" C "+g.x+" "+g.y+" "+m.x+" "+m.y+" "+u.x+" "+u.y+" ")},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(0===t.removedPointIndex&&r.length>n.length&&r[2]&&0===r[2].indexOf("M")&&(r.splice(0,r.length-n.length),o.previousDirection=r.join("")),r.length<n.length){for(var s=r.length;s<n.length;s++)if(n.length!==r.length)if(n.length===r.length+1&&0===n[n.length-1].indexOf("M"))r.push(n[n.length-1]);else if(0===r[r.length-1].indexOf("C"))r.push("L "+r[r.length-1].split(" ").slice(-3).join(" "));else if(0===r[r.length-1].indexOf("L")){var h=r[r.length-1].split(" ").slice(-3);r.push("C "+h.join(" ")+h.join(" ")+h.join(" "))}else{var c=r[r.length-1].replace("M","");r.push("C"+c+c+c)}Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration,"",!0)}else if(r.length>n.length){for(s=l;s<a;s++)if(t.removedPointIndex===t.points.length&&n.length!==r.length)if(0===n[n.length-1].indexOf("C"))n.push("L "+n[n.length-1].split(" ").slice(-3).join(" "));else if(0===n[n.length-1].indexOf("L")){var d=n[n.length-1].split(" ").slice(-3);n.push("C "+d.join(" ")+d.join(" ")+d.join(" "))}else{var p=n[n.length-1].replace("M","");n.push("C"+p+p+p)}else if(1===n.length){var u=n[n.length-1].replace("M","");n.push("C"+u+u+u)}else n.length!==r.length&&n.splice(1,0,"C "+n[0].split(" ").slice(-3).join(" ")+n[0].split(" ").slice(-3).join(" ")+n[0].split(" ").slice(-3).join(" "),n[0].replace("M","L"));Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d,!0)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration,"",!0)}},t.prototype.getModuleName=function(){return"SplineSeries"},t.prototype.destroy=function(){},t}(qr),tn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),on=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return tn(i,e),i.prototype.render=function(t){e.prototype.render.call(this,t),t.showNormalDistribution&&this.renderNormalDistribution(t)},i.prototype.calculateBinInterval=function(e,t){for(var i=at(e)/e.length,o=0,r=0,n=e;r<n.length;r++){var a=n[r];o+=(a-i)*(a-i)}t.histogramValues.mean=i,t.histogramValues.sDValue=Math.sqrt(Math.abs(o/e.length)),t.histogramValues.binWidth=t.binInterval||Math.round(3.5*t.histogramValues.sDValue/Math.pow(e.length,1/3))||1},i.prototype.processInternalData=function(e,t){for(var i,o=[],r=[],n=Object.keys(e),a=0;a<n.length;a++){var l=n[a];r.push(e[l][t.yName])}t.histogramValues={yValues:r};var s=Math.min.apply(Math,t.histogramValues.yValues),h=Math.max.apply(Math,t.histogramValues.yValues);this.calculateBinInterval(t.histogramValues.yValues,t);for(var c,d=t.histogramValues.binWidth,p=0;p<e.length;)c=r.filter(function(e){return e>=s&&e<s+d}).length,s+d===h&&(c+=r.filter(function(e){return e>=h}).length),o.push(((i={x:s+d/2})[t.yName]=c,i)),s+=d,p+=c;return o},i.prototype.calculateBinValues=function(e){var t,i,o=e.histogramValues.yValues.length,r=e.histogramValues.binWidth,n=e.histogramValues.mean,a=e.histogramValues.sDValue,l=e.xAxis.minimum?parseInt(e.xAxis.minimum.toString(),10):e.xMin,s=((e.xAxis.maximum?parseInt(e.xAxis.maximum.toString(),10):e.xMax)-l)/499;if(e.points.length)for(var h=0;h<500;h++)t=l+h*s,i=Math.exp(-(t-n)*(t-n)/(2*a*a))/(a*Math.sqrt(2*Math.PI))*r*o,e.yMin=e.yMin>i?i:e.yMin,e.yMax=e.yMax<i?i:e.yMax},i.prototype.renderNormalDistribution=function(e){var i,o,r=e.xAxis.actualRange.min,n=e.xAxis.actualRange.max,a="",l="M",s=e.histogramValues.yValues.length,h=e.histogramValues.binWidth,c=e.histogramValues.mean,d=e.histogramValues.sDValue,p=(n-r)/499;if(e.points.length)for(var u=0;u<500;u++)a+=l+" "+(o=oi(i=r+u*p,Math.exp(-(i-c)*(i-c)/(2*d*d))/(d*Math.sqrt(2*Math.PI))*h*s,e.xAxis,e.yAxis,e.chart.requireInvertedAxis)).x+" "+o.y+" ",l="L";var g=e.chart.renderer.drawPath(new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_NDLine","transparent",2,e.chart.themeStyle.histogram||e.chart.themeStyle.errorBar,e.opacity,e.dashArray,a),new Int32Array([e.clipRect.x,e.clipRect.y]));g.style.visibility=e.chart.enableCanvas?null:(e.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.chart.animateSeries?"hidden":"visible",e.chart.enableCanvas||e.seriesElement.appendChild(g)},i.prototype.doAnimation=function(t){e.prototype.doAnimation.call(this,t),t.showNormalDistribution&&Ut(t.seriesElement.lastElementChild,0===t.animation.duration?1e3:t.animation.duration,500,"FadeIn")},i.prototype.updateDirection=function(e){this.render(e),e.marker.visible&&ni(e.chart.enableCanvas,e.chart.seriesElements,e.symbolElement,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelCollections=[],e.chart.dataLabelModule.render(e,e.chart,e.marker.dataLabel),e.textElement&&(ni(e.chart.enableCanvas,e.chart.dataLabelElements,e.shapeElement,!0),ni(e.chart.enableCanvas,e.chart.dataLabelElements,e.textElement,!0)))},i.prototype.getModuleName=function(){return"HistogramSeries"},i.prototype.destroy=function(){},i}(ar),rn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rn(t,e),t.prototype.render=function(e,t,i,o,r,n){var a,l,s,h,c,d,p,u=null,g="",m=null,y=null,f=[],v=0;d=this.filterEmptyPoints(e);for(var b="",x=0;x<d.length;x++)null!==(p=d[x]).x&&""!==p.x&&(p.index=v,v++,f.push(p));var S,C=f.length,F="PolarRadar"===e.chart.chartAreaType?ft:oi,w="PolarRadar"===e.chart.chartAreaType?e.points[0].yValue:Math.max(e.yAxis.visibleRange.min,0);for(x=0;x<C;x++)(p=f[x]).symbolLocations=[],p.regions=[],S=this.getPreviousIndex(f,p.index-1,e),p.visible&&nt(f[S],p,f[this.getNextIndex(f,p.index-1,e)],e)?(u?(h=e.drawPoints[S].controlPoint1,c=e.drawPoints[S].controlPoint2,a=F(p.xValue,p.yValue,t,i,o,e),l=F(h.x,h.y,t,i,o,e),s=F(c.x,c.y,t,i,o,e),g=g.concat("C "+l.x+" "+l.y+" "+s.x+" "+s.y+" "+a.x+" "+a.y+" ")):(g+="M "+(m=F(p.xValue,w,t,i,o,e)).x+" "+m.y+" ",g+="L "+(y=F(p.xValue,p.yValue,t,i,o,e)).x+" "+y.y+" "),this.storePointLocation(p,e,o,F),u=p):(u=null,p.symbolLocations=[]),(x+1<C&&!f[x+1].visible||x===C-1)&&a&&m&&(m=F(p.xValue,w,t,i,o,e),g=g.concat("L "+m.x+" "+m.y+" "));this[r?"addPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_"+e.index,e.interior,0,"transparent",e.opacity,e.dashArray,g),e,""),0!==e.border.width&&(b=this.removeEmptyPointsBorder(this.getBorderDirection(g)),this[r?"addPath":"appendLinePath"](new R.PathOption(e.chart.element.id+"_Series_border_"+e.index,"transparent",e.border.width,e.border.color?e.border.color:e.interior,1,e.border.dashArray,b),e,"")),n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.addPath=function(e,t,i){var o=this.appendPathElement(e,t,i);if(""!==o.previousDirection&&""!==e.d){2===o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g).length&&(o.previousDirection=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g)[0]+"L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" C "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]),2===e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g).length&&(e.d=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g)[0]+"L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" C "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]+" L "+o.previousDirection.split(" ")[1]+" "+o.previousDirection.split(" ")[2]);var r=o.previousDirection.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),n=e.d.match(/[MLHVCSQTAZ][^MLHVCSQTAZ]*/g),a=Math.max(r.length,n.length),l=Math.min(r.length,n.length);if(r.length<n.length){for(var s=r.length;s<n.length;s++)if(n.length!==r.length){var h=void 0,c="C "+(h=4===r[r.length-1].split(" ").length&&-1!==e.id.indexOf("border")?r[r.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(1).join(" "):r[r.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(5).join(" "))+h+h;-1!==e.id.indexOf("border")?r.push(c):r.splice(r.length-1,0,c)}Bt(o.element,e.d,t.chart.redraw,r.join(" "),this.chart.duration)}else if(r.length>n.length){for(s=l;s<a;s++)if(n.length!==r.length){var d=void 0;if(t.removedPointIndex===t.points.length){c="C "+(d=4===r[r.length-1].split(" ").length&&-1!==e.id.indexOf("border")?n[n.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(1).join(" "):n[n.length-(-1!==e.id.indexOf("border")?1:2)].split(" ").slice(5).join(" "))+d+d;-1!==e.id.indexOf("border")?n.push(c):n.splice(n.length-1,0,c)}else d=4===r[r.length-1].split(" ").length?"C "+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(1).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(1).join(" "):"C "+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" ")+n[-1!==e.id.indexOf("border")?0:1].split(" ").slice(-3).join(" "),n.splice(-1!==e.id.indexOf("border")?1:2,0,d)}Bt(o.element,n.join(""),t.chart.redraw,o.previousDirection,this.chart.duration,e.d)}else Bt(o.element,e.d,t.chart.redraw,o.previousDirection,this.chart.duration)}},t.prototype.getModuleName=function(){return"SplineAreaSeries"},t.prototype.destroy=function(){},t}(qr),an=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return an(t,e),t.prototype.initSeriesCollection=function(e,t){e.targetSeries=[];var i=new Co(e,"targetSeries",{},!0);this.setSeriesProperties(i,e,e.type,e.fill,e.width,t)},t.prototype.setSeriesProperties=function(e,t,i,o,r,n){e.name=i.length<=4?i.toLocaleUpperCase():i,e.xName="x",e.yName="y",e.fill=o||"#606eff",e.dashArray=t.dashArray,e.width=r,e.xAxisName=t.xAxisName,e.animation=t.animation,e.yAxisName=t.yAxisName,e.clipRectElement=t.clipRectElement,e.points=[],e.enableTooltip=!0,e.interior=e.fill,e.category="Indicator",e.index=t.index,e.chart=n,e.xMin=1/0,e.xMax=-1/0,e.yMin=1/0,e.yMax=-1/0,e.xData=[],e.yData=[],e.marker.visible=!1,t.targetSeries.push(e)},t.prototype.createIndicatorElements=function(e,t,i){(t.seriesName||t.dataSource)&&Dt(t.targetSeries[0]);var o=new R.Rect(0,0,0,0);(t.seriesName||t.dataSource)&&(o=t.targetSeries[0].clipRect);var r=new Ni(e.element.id+"_ChartIndicatorClipRect_"+i,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:o.width,height:o.height}),n=Nt(e.redraw,r,e.renderer);t.indicatorElement=e.renderer.createGroup({id:e.element.id+"IndicatorGroup"+i,transform:"translate("+o.x+","+o.y+")","clip-path":"url(#"+e.element.id+"_ChartIndicatorClipRect_"+i+")"}),t.indicatorElement&&(t.indicatorElement.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:""),t.indicatorElement.setAttribute("tabindex",t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),t.accessibility.focusable&&(t.indicatorElement.style.outline="none"),t.indicatorElement.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:""),t.indicatorElement.appendChild(n));for(var a=0,l=t.targetSeries;a<l.length;a++){var s=l[a];s.clipRectElement=n;var h=s.chart.renderer.createGroup({id:s.chart.element.id+"_Indicator_"+t.index+"_"+s.name+"_Group"});t.indicatorElement&&t.indicatorElement.appendChild(h),s.seriesElement=h}e.indicatorElements&&e.indicatorElements.appendChild(t.indicatorElement)},t.prototype.getDataPoint=function(e,t,i,o,r,n){void 0===n&&(n=null);var a=new yo;return a.x=e,a.y=t,a.xValue=i.xValue,a.color=o.fill,a.index=r,a.yValue=t,a.visible=!0,o.xMin=Math.min(o.xMin,a.xValue),o.yMin=Math.min(o.yMin,a.yValue),o.xMax=Math.max(o.xMax,a.xValue),o.yMax=Math.max(o.yMax,a.yValue),o.xData.push(a.xValue),n&&"Macd"===n.type&&"Column"===o.type&&(a.y>=0?a.color=n.macdPositiveColor:a.color=n.macdNegativeColor),a},t.prototype.getRangePoint=function(e,t,i,o,r,n){var a=new yo;return a.x=e,a.high=t,a.low=i,a.xValue=o.xValue,a.color=r.fill,a.index=n,a.visible=!0,r.xData.push(a.xValue),a},t.prototype.setSeriesRange=function(e,t,i){void 0===i&&(i=null),i?i.points=e:t.targetSeries[0].points=e},t}(tr),sn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sn(t,e),t.prototype.initDataSource=function(e){var t=[],i=e.points;if(i&&i.length){var o=i,r=kt(e.field),n=e.targetSeries[0];if(o&&o.length&&o.length>=e.period){for(var a=0,l=0,s=0;s<e.period;s++)l+=o[s][r];a=l/e.period,t.push(this.getDataPoint(o[e.period-1].x,a,o[e.period-1],n,t.length));for(var h=e.period;h<o.length;)l-=o[h-e.period][r],a=(l+=o[h][r])/e.period,t.push(this.getDataPoint(o[h].x,a,o[h],n,t.length)),h++}this.setSeriesRange(t,e)}},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"SmaIndicator"},t}(ln),cn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cn(t,e),t.prototype.initDataSource=function(e){var t=kt(e.field),i=[],o=e.targetSeries[0],r=e.points;if(r&&r.length&&r.length>=e.period){for(var n,a=0,l=2/(e.period+1),s=0;s<e.period;s++)a+=r[s][t];n=a/e.period,i.push(this.getDataPoint(r[e.period-1].x,n,r[e.period-1],o,i.length));for(var h=e.period;h<r.length;){var c=i[h-e.period][o.yName],d=(r[h][t]-c)*l+c;i.push(this.getDataPoint(r[h].x,d,r[h],o,i.length)),h++}}this.setSeriesRange(i,e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"EmaIndicator"},t}(ln),pn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pn(t,e),t.prototype.initDataSource=function(e){var t=[],i=kt(e.field),o=e.points;if(o&&o.length&&o.length>=e.period){var r=e.targetSeries[0],n=e.points;if(n.length&&n.length>=e.period){for(var a=0,l=[],s=0,h=n.length,c=e.period;h>=c;){a=0;for(var d=s=n.length-h;d<s+c;d++)a+=n[d][i];a/=c,l.push(a),h--}for(var p=0;p<c-1;p++){a=0;for(d=0;d<p+1;d++)a+=n[d][i];a/=p+1,l.splice(p,0,a)}for(s=e.period;s<=l.length;){a=0;for(d=s-e.period;d<s;d++)a+=l[d];a/=e.period,t.push(this.getDataPoint(n[s-1].x,a,n[s-1],r,t.length)),s++}}}this.setSeriesRange(t,e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"TmaIndicator"},t}(ln),gn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gn(t,e),t.prototype.initDataSource=function(e){var t=[],i=e.points;i.length>0&&i.length>e.period&&(t=this.calculateADPoints(e,i)),this.setSeriesRange(t,e)},t.prototype.calculateADPoints=function(e,t){var i=[],o=0,r=0,n=0,a=0,l=0,s=e.targetSeries[0];for(r=0;r<t.length;r++)n=Number(t[r].high),a=Number(t[r].low),o+=((l=Number(t[r].close))-a-(n-l))/(n-a?n-a:1)*Number(t[r].volume),i[r]=this.getDataPoint(t[r].x,o,t[r],s,i.length);return i},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"AccumulationDistributionIndicator"},t}(ln),yn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yn(t,e),t.prototype.initDataSource=function(e){var t=e.points;t.length>0&&t.length>e.period&&this.calculateATRPoints(e,t)},t.prototype.calculateATRPoints=function(e,t){for(var i=0,o=0,r=0,n=0,a=0,l=[],s=[],h=e.period,c=0,d=e.targetSeries[0],p=0;p<t.length;p++)o=Number(t[p].high)-Number(t[p].low),p>0&&(r=Math.abs(Number(t[p].high)-Number(t[p-1].close)),n=Math.abs(Number(t[p].low)-Number(t[p-1].close))),c+=a=Math.max(o,r,n),p>=h?(i=(Number(s[p-1].y)*(h-1)+a)/h,l.push(this.getDataPoint(t[p].x,i,t[p],d,l.length))):(i=c/h,p===h-1&&l.push(this.getDataPoint(t[p].x,i,t[p],d,l.length))),s[p]={x:t[p].x,y:i};this.setSeriesRange(l,e)},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"AtrIndicator"},t}(ln),vn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vn(t,e),t.prototype.initSeriesCollection=function(t,i){e.prototype.initSeriesCollection.call(this,t,i);var o=new Co(t,"targetSeries",{},!0);e.prototype.setSeriesProperties.call(this,o,t,"UpperLine",t.upperLine.color,t.upperLine.width,i)},t.prototype.initDataSource=function(e){var t=[],i=[],o=e.points;if(o&&o.length){var r=e.targetSeries[1],n=e.targetSeries[0],a=e.period;if(o.length>=e.period)for(var l=0;l<o.length;l++)t.push(this.getDataPoint(o[l].x,100,o[l],r,t.length)),l<a||i.push(this.getDataPoint(o[l].x,Number(o[l].close)/Number(o[l-a].close)*100,o[l],n,i.length));this.setSeriesRange(i,e,e.targetSeries[0]),this.setSeriesRange(t,e,e.targetSeries[1])}},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"MomentumIndicator"},t}(ln),xn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xn(t,e),t.prototype.initSeriesCollection=function(t,i){if(e.prototype.initSeriesCollection.call(this,t,i),t.showZones){var o=new Co(t,"targetSeries",{},!0);e.prototype.setSeriesProperties.call(this,o,t,"LowerLine",t.lowerLine.color,t.lowerLine.width,i);var r=new Co(t,"targetSeries",{},!0);e.prototype.setSeriesProperties.call(this,r,t,"UpperLine",t.upperLine.color,t.upperLine.width,i)}},t.prototype.initDataSource=function(e){var t=[],i=[],o=[],r=e.targetSeries[0],n=e.points;if(n.length&&n.length>=e.period){if(e.showZones)for(var a=0;a<n.length;a++)o.push(this.getDataPoint(n[a].x,e.overBought,n[a],e.targetSeries[1],o.length)),i.push(this.getDataPoint(n[a].x,e.overSold,n[a],e.targetSeries[2],i.length));var l=Number(n[0].close),s=0,h=0;for(a=1;a<=e.period;a++){var c=Number(n[a].close);c>l?s+=c-l:h+=l-c,l=c}s/=e.period,h/=e.period,t.push(this.getDataPoint(n[e.period].x,100-100/(1+s/h),n[e.period],r,t.length));for(var d=e.period+1;d<n.length;d++){var p=Number(n[d].close);p>l?(s=(s*(e.period-1)+(p-l))/e.period,h=h*(e.period-1)/e.period):p<l&&(h=(h*(e.period-1)+(l-p))/e.period,s=s*(e.period-1)/e.period),l=p,t.push(this.getDataPoint(n[d].x,100-100/(1+s/h),n[d],r,t.length))}}this.setSeriesRange(t,e,e.targetSeries[0]),e.showZones&&(this.setSeriesRange(o,e,e.targetSeries[1]),this.setSeriesRange(i,e,e.targetSeries[2]))},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"RsiIndicator"},t}(ln),Cn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cn(t,e),t.prototype.initSeriesCollection=function(t,i){e.prototype.initSeriesCollection.call(this,t,i);var o=new Co(t,"targetSeries",{},!0);if(this.setSeriesProperties(o,t,"PeriodLine",t.periodLine.color,t.periodLine.width,i),t.showZones){var r=new Co(t,"targetSeries",{},!0);this.setSeriesProperties(r,t,"UpperLine",t.upperLine.color,t.upperLine.width,i);var n=new Co(t,"targetSeries",{},!0);this.setSeriesProperties(n,t,"LowerLine",t.lowerLine.color,t.lowerLine.width,i)}},t.prototype.initDataSource=function(e){var t=[],i=[],o=[],r=[],n=[],a=e.points;if(a.length&&a.length>=e.period){if(e.showZones)for(var l=0;l<a.length;l++)i.push(this.getDataPoint(a[l].x,e.overBought,a[l],e.targetSeries[2],i.length)),o.push(this.getDataPoint(a[l].x,e.overSold,a[l],e.targetSeries[3],o.length));n=this.calculatePeriod(e.period,e.kPeriod,a,e.targetSeries[1]),r=this.smaCalculation(e.period,e.kPeriod,n,e.targetSeries[1]),t=this.smaCalculation(e.period+e.kPeriod-1,e.dPeriod,n,e.targetSeries[0])}this.setSeriesRange(t,e,e.targetSeries[0]),this.setSeriesRange(r,e,e.targetSeries[1]),e.showZones&&(this.setSeriesRange(i,e,e.targetSeries[2]),this.setSeriesRange(o,e,e.targetSeries[3]))},t.prototype.smaCalculation=function(e,t,i,o){var r=[];if(i.length>=e+t){for(var n=e+(t-1),a=[],l=[],s=0;s<i.length;s++){var h=Number(i[s].y);a.push(h)}for(var c=a.length;c>=n;){var d=0;for(s=e-1;s<e+t-1;s++)d+=a[s];d/=t,l.push(d.toFixed(2)),a.splice(0,1),c=a.length}var p=n-1;for(s=0;s<i.length;s++)s<p||(r.push(this.getDataPoint(i[s].x,Number(l[s-p]),i[s],o,r.length)),i[s].y=Number(l[s-p]))}return r},t.prototype.calculatePeriod=function(e,t,i,o){for(var r=[],n=[],a=[],l=[],s=0;s<i.length;s++)r[s]=i[s].low,n[s]=i[s].high,a[s]=i[s].close;if(i.length>e){for(var h=[],c=[],d=0;d<e-1;++d)c.push(0),h.push(0),l.push(this.getDataPoint(i[d].x,i[d].close,i[d],o,l.length));for(d=e-1;d<i.length;++d){var p=Number.MAX_VALUE,u=Number.MIN_VALUE;for(s=0;s<e;++s)p=Math.min(p,r[d-s]),u=Math.max(u,n[d-s]);c.push(u),h.push(p)}for(d=e-1;d<i.length;++d){var g=0,m=0;g+=a[d]-h[d],m+=c[d]-h[d],l.push(this.getDataPoint(i[d].x,g/m*100,i[d],o,l.length))}}return l},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"StochasticIndicator"},t}(ln),wn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wn(t,e),t.prototype.initSeriesCollection=function(e,t){e.targetSeries=[];var i=new Co(e,"targetSeries",{},!0);i.type="RangeArea","transparent"!==e.bandColor&&"none"!==e.bandColor&&this.setSeriesProperties(i,e,"BollingerBand",e.bandColor,0,t);var o=new Co(e,"targetSeries",{},!0);this.setSeriesProperties(o,e,"BollingerBand",e.fill,e.width,t);var r=new Co(e,"targetSeries",{},!0);this.setSeriesProperties(r,e,"UpperLine",e.upperLine.color,e.upperLine.width,t);var n=new Co(e,"targetSeries",{},!0);this.setSeriesProperties(n,e,"LowerLine",e.lowerLine.color,e.lowerLine.width,t)},t.prototype.initDataSource=function(e){var t="transparent"!==e.bandColor&&"none"!==e.bandColor,i=t?1:0,o=[],r=[],n=[],a=[],l=e.targetSeries[i+1],s=e.targetSeries[i+2],h=e.targetSeries[i],c=t?e.targetSeries[0]:null,d=e.points;if(d.length&&d.length>=e.period){for(var p=0,u=0,g=e.standardDeviation,m=d.length,y=Math.round(e.period),f=[],v=[],b=[],x=0;x<y;x++)p+=Number(d[x].close);for(var S=p/e.period,C=0;C<m;C++){var F=Number(d[C].close);if(C>=y-1&&C<m){if(C-e.period>=0)S=(p+=F-Number(d[C-y].close))/e.period,f[C]=S,v[C]=Math.pow(F-S,2),u+=v[C]-v[C-y];else f[C]=S,v[C]=Math.pow(F-S,2),u+=v[C];var w=Math.sqrt(u/e.period),L=f[C]-g*w,P=f[C]+g*w;if(C+1===y)for(var A=0;A<y-1;A++)b[A]={X:d[A].x,mb:f[C],lb:L,ub:P,visible:!0};b[C]={X:d[C].x,mb:f[C],lb:L,ub:P,visible:!0}}else C<e.period-1&&(f[C]=S,v[C]=Math.pow(F-S,2),u+=v[C])}for(var M=-1,D=-1,k=0;k<m;k++)if(k>=y-1){r.push(this.getDataPoint(d[k].x,b[k].ub,d[k],l,r.length)),n.push(this.getDataPoint(d[k].x,b[k].lb,d[k],s,n.length)),o.push(this.getDataPoint(d[k].x,b[k].mb,d[k],h,o.length)),t&&a.push(this.getRangePoint(d[k].x,r[++M].y,n[++D].y,d[k],c,a.length))}}t&&this.setSeriesRange(a,e,e.targetSeries[0]),this.setSeriesRange(o,e,e.targetSeries[i]),this.setSeriesRange(r,e,e.targetSeries[i+1]),this.setSeriesRange(n,e,e.targetSeries[i+2])},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"BollingerBandsIndicator"},t}(ln),Pn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),An=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.initSeriesCollection=function(t,i){if(e.prototype.initSeriesCollection.call(this,t,i),"Line"===t.macdType||"Both"===t.macdType){var o=new Co(t,"targetSeries",{},!0);this.setSeriesProperties(o,t,"MacdLine",t.macdLine.color,t.macdLine.width,i)}if("Histogram"===t.macdType||"Both"===t.macdType){var r=new Co(t,"targetSeries",{},!0);r.type="Column",this.setSeriesProperties(r,t,"Histogram",t.macdPositiveColor,t.width,i)}},t.prototype.initDataSource=function(e){var t,i,o=[],r=e.fastPeriod,n=e.slowPeriod,a=e.period,l=r+a,s=[],h=[],c=e.points,d=e.targetSeries[0];if("Histogram"===e.macdType?t=e.targetSeries[1]:(i=e.targetSeries[1],"Both"===e.macdType&&(t=e.targetSeries[2])),c&&l<c.length&&n<=r&&n>0&&l-2>=0){var p=this.calculateEMAValues(n,c,"close"),u=this.calculateEMAValues(r,c,"close"),g=this.getMACDVales(e,p,u);s=this.getMACDPoints(e,g,c,i||d);var m=this.calculateEMAValues(a,s,"y");o=this.getSignalPoints(e,m,c,d),t&&(h=this.getHistogramPoints(e,g,m,c,t))}this.setSeriesRange(o,e,e.targetSeries[0]),t&&this.setSeriesRange(h,e,t),i&&this.setSeriesRange(s,e,i)},t.prototype.calculateEMAValues=function(e,t,i){for(var o,r=0,n=[],a=2/(e+1),l=0;l<e;l++)r+=Number(t[l][i]);o=r/e,n.push(o);for(var s=o,h=e;h<t.length;h++)s=(Number(t[h][i])-s)*a+s,n.push(s);return n},t.prototype.getMACDPoints=function(e,t,i,o){for(var r=[],n=e.fastPeriod-1,a=0;n<i.length;)r.push(this.getDataPoint(i[n].x,t[a],i[n],o,r.length)),n++,a++;return r},t.prototype.getSignalPoints=function(e,t,i,o){for(var r=e.fastPeriod+e.period-2,n=0,a=[];r<i.length;)a.push(this.getDataPoint(i[r].x,t[n],i[r],o,a.length)),r++,n++;return a},t.prototype.getMACDVales=function(e,t,i){for(var o=[],r=e.fastPeriod-e.slowPeriod,n=0;n<i.length;n++)o.push(t[n+r]-i[n]);return o},t.prototype.getHistogramPoints=function(e,t,i,o,r){for(var n=e.fastPeriod+e.period-2,a=0,l=[];n<o.length;)l.push(this.getDataPoint(o[n].x,t[a+(e.period-1)]-i[a],o[n],r,l.length,e)),n++,a++;return l},t.prototype.destroy=function(){},t.prototype.getModuleName=function(){return"MacdIndicator"},t}(ln),Mn=function(){function e(){}return e.prototype.initSeriesCollection=function(e,t){var i=new Co(e,"targetSeries",{},!0);"Linear"===e.type||"MovingAverage"===e.type?i.type="Line":i.type="Spline",this.setSeriesProperties(i,e,e.type,e.fill,e.width,t)},e.prototype.setSeriesProperties=function(e,t,i,o,r,n){e.name=t.name,e.xName="x",e.yName="y",e.fill=o||"blue",e.width=r,e.dashArray=t.dashArray,e.clipRectElement=t.clipRectElement,e.points=[],e.enableTooltip=t.enableTooltip,e.index=t.index,e.sourceIndex=t.sourceIndex,e.interior=e.fill,e.animation=t.animation,e.legendShape="HorizontalLine",e.marker=t.marker,e.category="TrendLine",e.chart=n,e.xMin=1/0,e.xMax=-1/0,e.yMin=1/0,e.yMax=-1/0,e.xData=[],e.yData=[],t.targetSeries=e},e.prototype.createTrendLineElements=function(e,t,i,o,r){t.trendLineElement=o,t.targetSeries.clipRectElement=r,t.targetSeries.seriesElement=o,e.trendLineElements&&e.trendLineElements.appendChild(t.trendLineElement)},e.prototype.getDataPoint=function(e,t,i,o){var r=new yo;return r.x="DateTime"===i.xAxis.valueType?new Date(Number(e)):e,r.y=t,r.xValue=Number(e),r.color=i.fill,r.index=o,r.yValue=Number(t),r.visible=!0,i.xMin=Math.min(i.xMin,r.xValue),i.yMin=Math.min(i.yMin,r.yValue),i.xMax=Math.max(i.xMax,r.xValue),i.yMax=Math.max(i.yMax,r.yValue),i.xData.push(r.xValue),r},e.prototype.findSlopeIntercept=function(e,t,i,o){for(var r=0,n=0,a=0,l=0,s=0,h=0,c=0;s<o.length;)isNaN(t[s])&&(t[s]=(t[s-1]+t[s+1])/2),r+=e[s],n+=t[s],a+=e[s]*t[s],l+=e[s]*e[s],s++;var d=i.type;if(!i.intercept||"Linear"!==d&&"Exponential"!==d)h=(o.length*a-r*n)/(o.length*l-r*r),h="Linear"===d?h:Math.abs(h),c="Exponential"===d||"Power"===d?Math.exp((n-h*r)/o.length):(n-h*r)/o.length;else switch(c=i.intercept,d){case"Linear":h=(a-i.intercept*r)/l;break;case"Exponential":h=(a-Math.log(Math.abs(i.intercept))*r)/l}return{slope:h,intercept:c}},e.prototype.initDataSource=function(e){var t=e.points;if(t&&t.length){var i=e.targetSeries;switch(e.type){case"Linear":this.setLinearRange(t,e,i);break;case"Exponential":this.setExponentialRange(t,e,i);break;case"MovingAverage":this.setMovingAverageRange(t,e,i);break;case"Polynomial":this.setPolynomialRange(t,e,i);break;case"Power":this.setPowerRange(t,e,i);break;case"Logarithmic":this.setLogarithmicRange(t,e,i)}"Linear"!==e.type&&"MovingAverage"!==e.type&&i.chart.splineSeriesModule.findSplinePoint(i)}},e.prototype.setExponentialRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n],l=a.yValue?Math.log(a.yValue):0;o.push(a.xValue),r.push(l),n++}var s=this.findSlopeIntercept(o,r,t,e);i.points=this.getExponentialPoints(t,e,o,r,i,s)},e.prototype.setLogarithmicRange=function(e,t,i){for(var o=[],r=[],n=[],a=0;a<e.length;){var l=e[a],s=l.xValue?Math.log(l.xValue):0;n.push(l.xValue),o.push(s),r.push(l.yValue),a++}var h=this.findSlopeIntercept(o,r,t,e);i.points=this.getLogarithmicPoints(t,e,n,r,i,h)},e.prototype.setPolynomialRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n];o.push(a.xValue),r.push(a.yValue),n++}i.points=this.getPolynomialPoints(t,e,o,r,i)},e.prototype.setPowerRange=function(e,t,i){for(var o=[],r=[],n=[],a=0;a<e.length;){var l=e[a],s=l.xValue?Math.log(l.xValue):0,h=l.yValue?Math.log(l.yValue):0;n.push(l.xValue),o.push(s),r.push(h),a++}var c=this.findSlopeIntercept(o,r,t,e);i.points=this.getPowerPoints(t,e,n,r,i,c)},e.prototype.setLinearRange=function(e,t,i){for(var o=[],r=[],n=0;n<e.length;){var a=e[n];o.push(a.xValue),r.push(a.yValue),n++}var l=this.findSlopeIntercept(o,r,t,e);i.points=this.getLinearPoints(t,e,o,r,i,l)},e.prototype.setMovingAverageRange=function(e,t,i){for(var o=[],r=[],n=[],a=0;a<e.length;){var l=e[a];n.push(l.xValue),o.push(a+1),r.push(l.yValue),a++}i.points=this.getMovingAveragePoints(t,e,n,r,i)},e.prototype.getLogarithmicPoints=function(e,t,i,o,r,n){var a=Math.round(t.length/2),l=[],s=i[0]-e.backwardForecast,h=s?Math.log(s):0,c=n.intercept+n.slope*h,d=i[a-1],p=d?Math.log(d):0,u=n.intercept+n.slope*p,g=i[i.length-1]+e.forwardForecast,m=g?Math.log(g):0,y=n.intercept+n.slope*m;return l.push(this.getDataPoint(s,c,r,l.length)),l.push(this.getDataPoint(d,u,r,l.length)),l.push(this.getDataPoint(g,y,r,l.length)),l},e.prototype.getPowerPoints=function(e,t,i,o,r,n){var a=Math.round(t.length/2),l=[],s=i[0]-e.backwardForecast;s=s>-1?s:0;var h=n.intercept*Math.pow(s,n.slope),c=i[a-1],d=n.intercept*Math.pow(c,n.slope),p=i[i.length-1]+e.forwardForecast,u=n.intercept*Math.pow(p,n.slope);return l.push(this.getDataPoint(s,h,r,l.length)),l.push(this.getDataPoint(c,d,r,l.length)),l.push(this.getDataPoint(p,u,r,l.length)),l},e.prototype.getPolynomialPoints=function(e,t,i,o,r){var n=t.length<=e.polynomialOrder?t.length:e.polynomialOrder;n=Math.max(2,n),n=Math.min(6,n),e.polynomialOrder=n,e.polynomialSlopes=[],e.polynomialSlopes.length=e.polynomialOrder+1;for(var a=0;a<i.length;){for(var l=i[a],s=o[a],h=0;h<=e.polynomialOrder;)e.polynomialSlopes[h]||(e.polynomialSlopes[h]=0),e.polynomialSlopes[h]+=Math.pow(l,h)*s,++h;a++}var c=[];c.length=1+2*e.polynomialOrder;var d=[];d.length=e.polynomialOrder+1;for(var p=0;p<e.polynomialOrder+1;)d[p]=[],d[p].length=3,p++;for(var u=0;u<i.length;){for(var g=i[u],m=1,y=0;y<c.length;)c[y]||(c[y]=0),c[y]+=m,m*=g,++y;++u}for(var f=0;f<=e.polynomialOrder;){for(var v=0;v<=e.polynomialOrder;)d[f][v]=c[f+v],++v;++f}return this.gaussJordanElimination(d,e.polynomialSlopes)||(e.polynomialSlopes=null),this.getPoints(e,t,i,r)},e.prototype.getMovingAveragePoints=function(e,i,o,r,n){var a=[],l=e.period>=i.length?i.length-1:e.period;l=1===l?1:Math.max(2,l);for(var s,h,c,d=0;d<i.length;){s=c=0;for(var p=d;c<l;p++)c++,s+=r[p];s=l-0<0?null:s?s/(l-0):s,(0,t.isNullOrUndefined)(s)||isNaN(s)||(h=o[l-1+d],a.push(this.getDataPoint(h,s,n,a.length))),d++}return a},e.prototype.getLinearPoints=function(e,t,i,o,r,n){var a=[],l=i.indexOf(Math.max.apply(null,i)),s=i.indexOf(Math.min.apply(null,i)),h=i[s]-e.backwardForecast,c=n.slope*h+n.intercept,d=i[l]+e.forwardForecast,p=n.slope*d+n.intercept;return a.push(this.getDataPoint(h,c,r,a.length)),a.push(this.getDataPoint(d,p,r,a.length)),a},e.prototype.getExponentialPoints=function(e,t,i,o,r,n){var a=Math.round(t.length/2),l=[],s=i[0]-e.backwardForecast,h=n.intercept*Math.exp(n.slope*s),c=i[a-1],d=n.intercept*Math.exp(n.slope*c),p=i[i.length-1]+e.forwardForecast,u=n.intercept*Math.exp(n.slope*p);return l.push(this.getDataPoint(s,isNaN(h)?0:h,r,l.length)),l.push(this.getDataPoint(c,isNaN(d)?0:d,r,l.length)),l.push(this.getDataPoint(p,isNaN(u)?0:u,r,l.length)),l},e.prototype.getPoints=function(e,t,i,o){var r,n,a=e.polynomialSlopes,l=[],s=1,h=1;for(t.sort(function(e,t){return e.xValue-t.xValue}),i.sort(function(e,t){return e-t});null!==a&&h<=a.length;)1===h?(r=i[0]-e.backwardForecast,n=this.getPolynomialYValue(a,r),l.push(this.getDataPoint(r,n,o,l.length))):h===a.length?(r=i[t.length-1]+e.forwardForecast,n=this.getPolynomialYValue(a,r),l.push(this.getDataPoint(r,n,o,l.length))):(s+=(t.length+("DateTime"===o.xAxis.valueType?h:e.forwardForecast))/a.length,r=i[parseInt(s.toString(),10)-1],n=this.getPolynomialYValue(a,r),l.push(this.getDataPoint(r,n,o,l.length))),h++;return l},e.prototype.getPolynomialYValue=function(e,t){for(var i=0,o=0;o<e.length;)i+=e[o]*Math.pow(t,o),o++;return i},e.prototype.gaussJordanElimination=function(e,t){var i=e.length,o=[],r=[],n=[];o.length=i,r.length=i,n.length=i;for(var a=0;a<i;)n[a]=0,++a;for(var l=0;l<i;){for(var s=0,h=0,c=0,d=0;d<i;){if(1!==n[d])for(var p=0;p<i;)0===n[p]&&Math.abs(e[d][p])>=s&&(s=Math.abs(e[d][p]),h=d,c=p),++p;++d}if(++n[c],h!==c){for(var u=0;u<i;){var g=e[h][u];e[h][u]=e[c][u],e[c][u]=g,++u}var m=t[h];t[h]=t[c],t[c]=m}if(r[l]=h,o[l]=c,0===e[c][c])return!1;var y=1/e[c][c];e[c][c]=1;for(var f=0;f<i;)e[c][f]*=y,++f;t[c]*=y;for(var v=0;v<i;){if(v!==c){g=e[v][c];e[v][c]=0;for(p=0;p<i;)e[v][p]-=e[c][p]*g,++p;t[v]-=t[c]*g}++v}++l}for(var b=i-1;b>=0;){if(r[b]!==o[b])for(var x=0;x<i;){var S=e[x][r[b]];e[x][r[b]]=e[x][o[b]],e[x][o[b]]=S,++x}--b}return!0},e.prototype.getTrendLineElements=function(e,t){Dt(e);var i=e.clipRect,o=t.renderer.drawClipPath(new Ni(t.element.id+"_ChartTrendlineClipRect_"+e.index,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:i.width,height:i.height})),r=t.renderer.createGroup({id:t.element.id+"TrendlineSeriesGroup"+e.index,transform:"translate("+i.x+","+i.y+")","clip-path":"url(#"+t.element.id+"_ChartTrendlineClipRect_"+e.index+")"});r&&r.appendChild(o);for(var n=0,a=e.trendlines;n<a.length;n++){var l=a[n];this.createTrendLineElements(t,l,l.index,r,o)}},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"TrendLine"},e}(),Dn=function(){function e(e){this.arrowLocation=new ji(0,0),this.rx=2,this.ry=2,this.highlightWidth=0,this.crosshairLeftOverflow=0,this.crosshairRightOverflow=0,this.chart=e,this.elementID=this.chart.element.id,this.svgRenderer=new R.SvgRenderer(this.chart.element.id),(this.chart.crosshair.snapToData||this.chart.crosshair.highlightCategory)&&(this.data=new so(this.chart)),this.addEventListener()}return e.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),this.chart.on(e,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this)}},e.prototype.mouseUpHandler=function(){this.chart.startMove&&this.removeCrosshair(2e3)},e.prototype.mouseLeaveHandler=function(){this.removeCrosshair(1e3)},e.prototype.mouseMoveHandler=function(e){var i=this.chart;i.stockChart&&i.stockChart.onPanning&&(i.mouseY<i.chartAxisLayoutPanel.seriesClipRect.y?i.mouseY=i.chartAxisLayoutPanel.seriesClipRect.y:i.mouseY>i.chartAxisLayoutPanel.seriesClipRect.y+i.chartAxisLayoutPanel.seriesClipRect.height&&(i.mouseY=i.chartAxisLayoutPanel.seriesClipRect.y+i.chartAxisLayoutPanel.seriesClipRect.height)),"touchmove"===e.type&&(t.Browser.isIos||t.Browser.isIos7)&&i.startMove&&e.preventDefault&&e.preventDefault(),i.disableTrackTooltip||(i.crosshair.enable&&Pt(i.mouseX,i.mouseY,i.chartAxisLayoutPanel.seriesClipRect)?!i.startMove&&i.isTouch||this.crosshair():this.removeCrosshair(1e3))},e.prototype.longPress=function(){var e=this.chart;return Pt(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&this.crosshair(),!1},e.prototype.findMousePoints=function(e){for(var t=this.data.getData(),i=[],o=e.isTransposed?"x":"y",r=null,n=1/0,a="x"===o?e.mouseX:e.mouseY,l=!1,s=this.data.mergeXvalues(this.chart.visibleSeries),h=0,c=e.visibleSeries;h<c.length;h++){var d=c[h];if(l=l||d.visible,d.visible&&"TrendLine"!==d.category){var p=this.data.getClosestX(e,d,s)||t;if(p&&p.point&&p.point.symbolLocations[0]){var u=p.point.symbolLocations[0][o]+p.series.clipRect[o];if(e.crosshair.snapToData||e.crosshair.highlightCategory){i.push(u);var g=Math.abs(u-a);g<n&&(n=g,r=p)}}}}if((e.crosshair.snapToData||e.crosshair.highlightCategory)&&r&&(t=r,e.crosshairModule.highlightWidth=0,e.crosshair.highlightCategory&&"Category"===t.series.xAxis.valueType)){var m=e.isTransposed||e.requireInvertedAxis?e.chartAxisLayoutPanel.seriesClipRect.height:e.chartAxisLayoutPanel.seriesClipRect.width,y=m/t.series.xAxis.visibleRange.delta,f=(t.point.xValue-t.series.xAxis.visibleRange.min)/(t.series.xAxis.visibleRange.max-t.series.xAxis.visibleRange.min);e.crosshairModule.crosshairLeftOverflow=Math.max(0,y/2-f*m),e.crosshairModule.crosshairRightOverflow=Math.max(0,f*m+y/2-m),e.crosshairModule.highlightWidth=Math.max(0,y-e.crosshairModule.crosshairLeftOverflow-e.crosshairModule.crosshairRightOverflow)}return t&&t.point&&this.data.findMouseValues(t,e,this),l},e.prototype.crosshair=function(){var e=this.chart.series.filter(function(e){return e.visible}).length,i=!0;(this.chart.crosshair.snapToData||this.chart.crosshair.highlightCategory)&&(i=this.findMousePoints(this.chart));var o,r,n=this.chart,a="",l="",s=document.getElementById(this.elementID+"_crosshair_axis"),h=n.crosshair,c=document.getElementById(this.elementID+"_tooltip"),d=n.chartAxisLayoutPanel.seriesClipRect,p=n.enableCanvas?document.getElementById(this.elementID+"_Secondary_Element"):document.getElementById(this.elementID+"_UserInteraction"),u=document.getElementById(this.elementID+"_Crosshair");if(n.enableCanvas&&(u||(u=(0,t.createElement)("div",{id:this.elementID+"_Crosshair",styles:"position: absolute; pointer-events: none"}),p.appendChild(u))),this.stopAnimation(),0===e||n.crosshair.snapToData&&void 0===this.valueY||n.isCrosshair&&n.tooltip.enable&&n.tooltipModule&&!Pt(n.tooltipModule.valueX,n.tooltipModule.valueY,d)||n.crosshair.snapToData&&!i)return null;if(this.valueX=n.crosshair.snapToData||n.crosshair.highlightCategory?this.valueX:n.tooltip.enable&&n.tooltipModule&&n.tooltipModule.valueX?n.tooltipModule.valueX:n.mouseX,this.valueY=n.crosshair.snapToData||n.crosshair.highlightCategory?this.valueY:n.tooltip.enable&&n.tooltipModule&&n.tooltipModule.valueY?n.tooltipModule.valueY:n.mouseY,!n.enableCanvas&&p&&p.setAttribute("opacity","1"),"Both"===h.lineType||"Horizontal"===h.lineType)if(n.crosshair.highlightCategory&&0!==this.highlightWidth&&(n.isTransposed||n.requireInvertedAxis)){var g=this.highlightWidth;n.crosshairModule.valueY=this.adjustCrosshairPositionForOverflow(this.valueY,!0,n);var m=this.valueY-g/2;a="M "+d.x+" "+m+" L "+(d.x+d.width)+" "+m+" L "+(d.x+d.width)+" "+(m+g)+" L "+d.x+" "+(m+g)+" Z"}else a+="M "+d.x+" "+this.valueY+" L "+(d.x+d.width)+" "+this.valueY;if("Both"===h.lineType||"Vertical"===h.lineType)if(n.crosshair.highlightCategory&&0!==this.highlightWidth&&!n.requireInvertedAxis){g=this.highlightWidth;n.crosshairModule.valueX=this.adjustCrosshairPositionForOverflow(this.valueX,!1,n);var y=this.valueX-g/2;l="M "+y+" "+d.y+" L "+(y+g)+" "+d.y+" L "+(y+g)+" "+(d.y+d.height)+" L "+y+" "+(d.y+d.height)+" Z"}else l+="M "+this.valueX+" "+d.y+" L "+this.valueX+" "+(d.y+d.height);if(n.enableCanvas){s||(s=this.svgRenderer.createGroup({id:this.elementID+"_crosshair_axis"}));var f=n.tooltip.enable?n.element.id+"_tooltip_svg":n.element.id+"_svg";r=this.svgRenderer.createSvg({id:f,width:n.availableSize.width,height:n.availableSize.height}),n.tooltip.enable&&((c=c||n.tooltipModule.createElement()).appendChild(r),p.appendChild(c)),o=new R.PathOption(this.elementID+"_HorizontalLine","none",h.line.width,h.horizontalLineColor||h.line.color||n.themeStyle.crosshairLine,h.opacity,n.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===n.theme||n.theme.indexOf("Tailwind3")>-1?h.dashArray||"2.5":h.dashArray,a),this.drawCrosshairLine(o,u,d.x,this.valueY,d.width,0,a),o=new R.PathOption(this.elementID+"_VerticalLine","none",h.line.width,h.verticalLineColor||h.line.color||n.themeStyle.crosshairLine,h.opacity,n.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===n.theme||n.theme.indexOf("Tailwind3")>-1?h.dashArray||"2.5":h.dashArray,l),this.drawCrosshairLine(o,u,this.valueX,d.y,0,d.height,l),this.renderAxisTooltip(n,d,s),r.appendChild(s),n.tooltip.enable||u.appendChild(r)}else if(0===p.childNodes.length){var v=n.crosshair.highlightCategory&&0!==this.highlightWidth&&(n.isTransposed||n.requireInvertedAxis),b=n.crosshair.highlightCategory&&0!==this.highlightWidth&&!n.requireInvertedAxis;s=n.renderer.createGroup({id:this.elementID+"_crosshair_axis"}),o=new R.PathOption(this.elementID+"_HorizontalLine",v?h.horizontalLineColor||h.line.color?this.crosshairLightenColor(h.horizontalLineColor||h.line.color):n.themeStyle.crosshairBackground:"none",v?0:h.line.width,v?"none":h.horizontalLineColor||h.line.color||n.themeStyle.crosshairLine,h.opacity,v?null:n.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===n.theme||n.theme.indexOf("Tailwind3")>-1?h.dashArray||"2.5":h.dashArray,a),this.renderCrosshairLine(o,p),o=new R.PathOption(this.elementID+"_VerticalLine",b?h.verticalLineColor||h.line.color?this.crosshairLightenColor(h.verticalLineColor||h.line.color):n.themeStyle.crosshairBackground:"none",b?0:h.line.width,b?"none":h.verticalLineColor||h.line.color||n.themeStyle.crosshairLine,h.opacity,b?null:n.theme.indexOf("Bootstrap5")>-1||"Fluent2HighContrast"===n.theme||n.theme.indexOf("Tailwind3")>-1?h.dashArray||"2.5":h.dashArray,l),this.renderCrosshairLine(o,p),p.appendChild(s),this.renderAxisTooltip(n,d,p.lastChild)}else document.getElementById(this.elementID+"_HorizontalLine").setAttribute("d",a),document.getElementById(this.elementID+"_VerticalLine").setAttribute("d",l),this.renderAxisTooltip(n,d,p.lastChild)},e.prototype.crosshairLightenColor=function(e){var t=yi(fi(e));return"rgb("+t.r+","+t.g+","+t.b+",0.25)"},e.prototype.adjustCrosshairPositionForOverflow=function(e,t,i){return i.crosshairModule.crosshairLeftOverflow>0&&(e+=t?-i.crosshairModule.crosshairLeftOverflow/2:i.crosshairModule.crosshairLeftOverflow/2),i.crosshairModule.crosshairRightOverflow>0&&(e+=t?i.crosshairModule.crosshairRightOverflow/2:-i.crosshairModule.crosshairRightOverflow/2),e},e.prototype.renderCrosshairLine=function(e,t){var i=this.chart.renderer.drawPath(e);t.appendChild(i)},e.prototype.drawCrosshairLine=function(e,i,o,r,n,a,l){if(!document.getElementById(e.id)&&l){var s=(0,t.createElement)("div",{id:e.id});i.appendChild(s)}if(document.getElementById(e.id)){var h="top:"+r.toString()+"px;left:"+o.toString()+"px;width:"+n+"px;height:"+a+"px;fill:"+e.stroke+";border: 0.5px solid "+e.stroke+";opacity: "+e.opacity+" ; position: absolute",c=document.getElementById(e.id),d=document.getElementById(this.elementID+"_crosshair_axis");c.style.cssText=h,i.style.opacity="1",d&&(d.style.opacity="1")}},e.prototype.renderAxisTooltip=function(e,i,o){for(var r,n,a,l,s,h,c,d,p=0,u=e.axisCollections.length;p<u;p++)if(d=(r=e.axisCollections[p]).placeNextToAxisLine?r.updatedRect:r.rect,r.crosshairTooltip.enable)if(d&&(this.valueX<=d.x+d.width&&d.x<=this.valueX||this.valueY<=d.y+d.height&&d.y<=this.valueY)){if(l=document.getElementById(this.elementID+"_axis_tooltip_"+p),s=document.getElementById(this.elementID+"_axis_tooltip_text_"+p),(n=this.getAxisText(r))&&n.indexOf("<br")>-1&&(n=this.getAxisText(r).split(/<br.*?>/g)),!n)continue;if((a=this.tooltipLocation(n,r,i,d)).y+a.height/2>e.availableSize.height||a.y<0)continue;if(null===l)l=e.enableCanvas?this.svgRenderer.drawPath({id:this.elementID+"_axis_tooltip_"+p,fill:r.crosshairTooltip.fill||e.themeStyle.crosshairFill}):e.renderer.drawPath({id:this.elementID+"_axis_tooltip_"+p,fill:r.crosshairTooltip.fill||e.themeStyle.crosshairFill},null),o.appendChild(l),h=new R.TextOption(this.elementID+"_axis_tooltip_text_"+p,0,0,e.stockChart&&e.enableRtl?"end":"start",n),s=Di(e.enableCanvas?this.svgRenderer:e.renderer,h,r.crosshairTooltip.textStyle,r.crosshairTooltip.textStyle.color||e.themeStyle.crosshairLabelFont.color,o,null,null,null,null,null,null,0,null,e.enableCanvas,null,this.chart.themeStyle.crosshairLabelFont);if(c=Lt(this.rx,this.ry,a,this.arrowLocation,9,this.isTop,this.isBottom,this.isLeft,this.valueX,this.valueY),l.setAttribute("d",c),"string"!=typeof n&&n.length>1)for(var g=0;g<n.length;g++)s.childNodes[g].textContent=n[g];else s.textContent=n;s.setAttribute("x",(a.x+5+(e.enableRtl?this.elementSize.width:0)).toString()),s.setAttribute("y",(a.y+5+3*this.elementSize.height/4).toString());var m=this.chart.element.id+"_shadow";if("string"!=typeof n&&n.length>1){var y=0;s.setAttribute("y",(a.y+5+3*this.elementSize.height/(4*n.length)).toString());for(g=0;g<s.children.length;g++)y+=this.elementSize.height/n.length,s.children[g].setAttribute("x",(a.x+5+(e.enableRtl?this.elementSize.width:0)+this.elementSize.width/2).toString()),s.children[g].setAttribute("y",(parseInt(s.getAttribute("y"),10)+y).toString()),s.children[g].style.textAnchor="middle"}if("Fluent"===this.chart.theme||"FluentDark"===this.chart.theme||"Fabric"===this.chart.theme||"FabricDark"===this.chart.theme||"Fluent2HighContrast"===this.chart.theme){var f=this.chart.renderer.createDefs(),v="Fluent"===this.chart.theme||"Fabric"===this.chart.theme?"#D2D0CE":"Fluent2HighContrast"===this.chart.theme?"#FFFFFF":null,b="Fluent"===this.chart.theme||"Fabric"===this.chart.theme||"Fluent2HighContrast"===this.chart.theme?1:null;f.setAttribute("id",this.chart.element.id+"SVG_tooltip_definition"),o.appendChild(f),l.setAttribute("stroke",v),l.setAttribute("stroke-width"," "+b)}else if(this.chart.theme.indexOf("Fluent2")>-1){l.setAttribute("box-shadow","0px 1.6px 3.6px 0px #00000021, 0px 0.3px 0.9px 0px #0000001A"),l.setAttribute("filter",t.Browser.isIE?"":"url(#"+m+")");var x='<filter id="'+m+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';x+='<feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/>',x+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',(f=this.chart.renderer.createDefs()).setAttribute("id",this.chart.element.id+"SVG_tooltip_definition"),l.appendChild(f),f.innerHTML=x}}else Je(this.elementID+"_axis_tooltip_"+p),Je(this.elementID+"_axis_tooltip_text_"+p)},e.prototype.getAxisText=function(e){var t;this.isBottom=!1,this.isTop=!1,this.isLeft=!1,this.isRight=!1;var i="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0,o=e.isAxisOpposedPosition;return"Horizontal"===e.orientation?(t=At(Math.abs(this.valueX-e.rect.x),e.rect.width,e)+i,this.isBottom=!o,this.isTop=o):(t=Mt(Math.abs(this.valueY-e.rect.y),e.rect.height,e)+i,this.isRight=o,this.isLeft=!o),"DateTime"===e.valueType?e.format(new Date(t)):"Category"===e.valueType?e.labels[Math.floor(t)]:"DateTimeCategory"===e.valueType?this.chart.dateTimeCategoryModule.getIndexedAxisLabel(e.labels[Math.round(t)],e.format):"Logarithmic"===e.valueType?e.format(Math.pow(e.logBase,t)):e.labelFormat&&null!==e.labelFormat.match("{value}")?e.labelFormat.replace("{value}",e.format(t)):e.format(t)},e.prototype.tooltipLocation=function(e,t,i,o){var r,n=i.x,a=i.y,l="Inside"===t.labelPosition,s=t.scrollbarSettings.enable||t.zoomingScrollBar&&t.zoomingScrollBar.svgObject?t.scrollBarHeight:0;if(this.elementSize=(0,R.measureText)(e,t.crosshairTooltip.textStyle,this.chart.themeStyle.crosshairLabelFont),"string"!=typeof e&&e.length>1){this.elementSize.width=0,this.elementSize.height=0;for(var h=0;h<e.length;h++){var c=(0,R.measureText)(e[h],t.crosshairTooltip.textStyle,this.chart.themeStyle.crosshairLabelFont);this.elementSize.height+=c.height,this.elementSize.width<c.width&&(this.elementSize.width=c.width)}}var d=t.isAxisOpposedPosition;if("Horizontal"===t.orientation){var p=l?o.y-this.elementSize.height-19:o.y+s,u=l?o.y-this.elementSize.height-9:o.y+9;this.arrowLocation=new ji(this.valueX,p),r=new R.Rect(this.valueX-this.elementSize.width/2-5,u+(l?0:s),this.elementSize.width+10,this.elementSize.height+10),d&&(r.y=l?o.y:o.y-(this.elementSize.height+10+9)-s),r.x<n&&(r.x=n),r.x+r.width>n+i.width&&(r.x-=r.x+r.width-(n+i.width)),this.arrowLocation.x+4.5>r.x+r.width-this.rx&&(this.arrowLocation.x=r.x+r.width-this.rx-9),this.arrowLocation.x-9<r.x+this.rx&&(this.arrowLocation.x=r.x+this.rx+9)}else{s*=d?1:-1,this.arrowLocation=new ji(o.x,this.valueY);var g=l?o.x-s:o.x-this.elementSize.width-19;r=new R.Rect(g+s,this.valueY-this.elementSize.height/2-5,this.elementSize.width+10,this.elementSize.height+10),d?(r.x=l?o.x-this.elementSize.width-9:o.x+9+s,r.x+r.width>this.chart.availableSize.width&&(this.arrowLocation.x-=r.x+r.width-this.chart.availableSize.width,r.x-=r.x+r.width-this.chart.availableSize.width)):r.x<0&&(this.arrowLocation.x-=r.x,r.x=0),r.y<a&&(r.y=a),r.y+r.height>=a+i.height&&(r.y-=r.y+r.height-(a+i.height)),this.arrowLocation.y+4.5>r.y+r.height-this.ry&&(this.arrowLocation.y=r.y+r.height-this.ry-4.5),this.arrowLocation.y-4.5<r.y+this.ry&&(this.arrowLocation.y=r.y+this.ry+4.5)}return r},e.prototype.stopAnimation=function(){hi(this.crosshairInterval)},e.prototype.progressAnimation=function(){hi(this.crosshairInterval)},e.prototype.removeCrosshair=function(e){var i=this.chart,o=i.enableCanvas?document.getElementById(this.elementID+"_Crosshair"):document.getElementById(this.elementID+"_UserInteraction"),r=i.enableCanvas?document.getElementById(this.elementID+"_crosshair_axis"):null;this.stopAnimation(),o&&"0"!==o.getAttribute("opacity")&&(this.crosshairInterval=+setTimeout(function(){new t.Animation({}).animate(o,{duration:200,progress:function(e){o.style.animation="",i.enableCanvas?(o.style.opacity=(1-e.timeStamp/e.duration).toString(),r.style.opacity=(1-e.timeStamp/e.duration).toString()):o.setAttribute("opacity",(1-e.timeStamp/e.duration).toString())},end:function(){i.enableCanvas?(o.style.opacity="0",r.style.opacity="0"):o.setAttribute("opacity","0"),i.startMove=!1,i.tooltipModule&&(i.tooltipModule.valueX=null,i.tooltipModule.valueY=null)}})},e))},e.prototype.getModuleName=function(){return"Crosshair"},e.prototype.destroy=function(){},e}(),kn=function(){function e(e){this.selectionStyle=[],this.control=e}return e.prototype.seriesStyles=function(){var e,i,o=document.getElementById(this.styleId),r="{}",n=this.control.selectionPattern,a=this.control.highlightPattern;if(this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor||(0,t.isNullOrUndefined)(o)||"None"!==n||"None"!==a){document.getElementById(this.styleId)&&document.getElementById(this.styleId).remove(),(o=this.control.createElement("div")).setAttribute("id",this.styleId);for(var l=0,s=this.control.visibleSeries;l<s.length;l++){var h=s[l],c=this.control.visibleSeries[h.index]||this.control.visibleSeries[h.index];if(this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor||(!(0,t.isNullOrUndefined)(n)||!(0,t.isNullOrUndefined)(a))&&("None"!==n||"None"!==a)){var d=this.styleId.indexOf("highlight")>0?a:n;if("Pie"!==c.type&&"Funnel"!==c.type&&"Pyramid"!==c.type&&"circularchart3d"!==this.control.getModuleName()||"transparent"===this.control.highlightColor)c.type&&"transparent"!==this.control.highlightColor&&(i=c.opacity,r="{ fill:"+(e=this.pattern(this.control,this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor?this.control.highlightColor:""!==c.pointColorMapping||this.control.rangeColorSettings&&this.control.rangeColorSettings.length>1?c.points[0].color:c.interior,h.index,d,i))+"}");else for(var p=0;p<c.points.length;p++)i=c.opacity,r="{ fill:"+(e=this.pattern(this.control,this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor?this.control.highlightColor:c.points[p].color,h.points[p].index,d,i))+"}",h.selectionStyle||this.styleId+"_series_"+h.index+"_point_"+h.points[p].index+",."+this.styleId+"_series_"+h.index+"_point_"+h.points[p].index+"> *","None"===this.control.highlightMode&&this.control.legendSettings.enableHighlight&&!h.isRectSeries&&(o.innerText+="."+this.styleId+"_series_"+h.index+"> * { stroke-width:3;} ",this.selectionStyle.push([this.styleId+"_series_"+h.index,"stroke-width","3"])),r=r.indexOf("None")>-1?"{fill:"+(this.styleId.indexOf("highlight")>0&&""!==this.control.highlightColor?this.control.highlightColor:c.points[p].color)+"!important}":r,this.selectionStyle.push([this.styleId+"_series_"+h.index+"_point_"+h.points[p].index,"fill",e?e.indexOf("None")>-1?this.styleId.indexOf("highlight")>-1?this.control.highlightColor:"":e:""])}h.selectionStyle||this.styleId+"_series_"+h.index+",."+this.styleId+"_series_"+h.index+"> *","None"===this.control.highlightMode&&this.control.legendSettings.enableHighlight&&!h.isRectSeries&&this.selectionStyle.push([this.styleId+"_series_"+h.index,"stroke-width",(parseFloat(h.width?h.width.toString():"0")+1).toString()]),r=r.indexOf("None")>-1?"{}":r,this.selectionStyle.push([this.styleId+"_series_"+h.index,"fill",e?e.indexOf("None")>-1?this.styleId.indexOf("highlight")>-1?this.control.highlightColor:"":e:""])}var u="transparent"!==this.control.highlightColor?"circularchart3d"===this.control.getModuleName()?.2:.3:i;(0,t.isNullOrUndefined)(this.control.selectionModule)&&"None"===this.control.selectionMode&&""!==this.control.highlightColor&&(u=1),this.selectionStyle.push([this.unselected,"opacity",u.toString()]);var g=document.getElementById(this.control.element.id+"_Secondary_Element");g&&g.appendChild(o)}},e.prototype.pattern=function(e,t,i,o,r){var n="#ffffff",a=e.svgObject,l=[],s={id:e.element.id+"_"+o+"_Selection_"+i,patternUnits:"userSpaceOnUse"},h="height",c="width",d=10,p=12;switch(o){case"Dots":s[h]=s[c]=6,s[c]=6,l[0]={x:0,y:0,width:7,height:7,transform:"translate(0,0)",fill:n,opacity:r,name:"rect"},l[1]={cx:3,cy:3,r:2,"stroke-width":1,fill:t,name:"circle"};break;case"Pacman":s[h]="18.384",s[c]="17.917",l[0]={name:"rect",x:0,y:0,width:17.917,height:18.384,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M9.081,9.194l5.806-3.08c-0.812-1.496-2.403-3.052-4.291-3.052H8.835C6.138,3.063,3,6.151,3,8.723v1.679   c0,2.572,3.138,5.661,5.835,5.661h1.761c2.085,0,3.835-1.76,4.535-3.514L9.081,9.194z","stroke-width":1,stroke:t,fill:t};break;case"Chessboard":s[h]=s[c]=d,l[0]={x:0,y:0,width:d,height:d,fill:n,opacity:r,name:"rect"},l[1]={x:0,y:0,width:5,height:5,fill:t,opacity:r,name:"rect"},l[2]={x:5,y:5,width:5,height:5,fill:t,opacity:r,name:"rect"};break;case"Crosshatch":s[h]=s[c]="8",l[0]={x:0,y:0,width:8,height:8,transform:"translate(0,0)",fill:n,opacity:r,name:"rect"},l[1]={d:"M0 0L8 8ZM8 0L0 8Z","stroke-width":1,stroke:t,name:"path"};break;case"DiagonalForward":s[h]=s[c]=6,l[0]={x:0,y:0,width:6,height:6,transform:"translate(0,0)",fill:n,opacity:r,name:"rect"},l[1]={d:"M 3 -3 L 9 3 M 6 6 L 0 0 M 3 9 L -3 3","stroke-width":2,stroke:t,name:"path"};break;case"DiagonalBackward":s[h]=s[c]=6,l[0]={x:0,y:0,width:6,height:6,transform:"translate(0,0)",fill:n,opacity:r,name:"rect"},l[1]={d:"M 3 -3 L -3 3 M 0 6 L 6 0 M 9 3 L 3 9","stroke-width":2,stroke:t,name:"path"};break;case"Grid":s[h]=s[c]=6,l[0]={name:"rect",x:0,y:0,width:6,height:6,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M1 3.5L11 3.5 M0 3.5L11 3.5 M0 7.5L11 7.5 M0 11.5L11 11.5 M5.5 0L5.5 12 M11.5 0L11.5 12Z","stroke-width":1,stroke:t};break;case"Turquoise":s[h]=s[c]=17,l[0]={name:"rect",x:0,y:0,width:17,height:17,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M0.5739999999999998,2.643a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t},l[2]={name:"path",d:"M11.805,2.643a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t},l[3]={name:"path",d:"M6.19,2.643a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t},l[4]={name:"path",d:"M11.805,8.217a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t},l[5]={name:"path",d:"M6.19,8.217a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t},l[6]={name:"path",d:"M11.805,13.899a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t},l[7]={name:"path",d:"M6.19,13.899a2.123,2.111 0 1,0 4.246,0a2.123,2.111 0 1,0 -4.246,0","stroke-width":1,"stroke-miterlimit":d,stroke:t,fill:t};break;case"Star":s[h]=s[c]=21,l[0]={name:"rect",x:0,y:0,width:21,height:21,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M15.913,18.59L10.762 12.842 5.613 18.75 8.291 11.422 0.325 9.91 8.154 8.33 5.337 0.91 10.488 6.658 15.637 0.75 12.959 8.078 20.925 9.59 13.096 11.17 z","stroke-width":1,stroke:t,fill:t};break;case"Triangle":s[h]=s[c]=d,l[0]={name:"rect",x:0,y:0,width:d,height:d,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M4.987,0L7.48 4.847 9.974 9.694 4.987 9.694 0 9.694 2.493 4.847 z","stroke-width":1,stroke:t,fill:t};break;case"Circle":s[h]=s[c]=9,l[0]={name:"rect",x:0,y:0,width:9,height:9,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"circle",cx:5.125,cy:3.875,r:3.625,"stroke-width":1,fill:t};break;case"Tile":s[h]=s[c]=18,l[0]={name:"rect",x:0,y:0,width:18,height:18,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M0,9L0 0 9 0 z","stroke-width":1,stroke:t,fill:t},l[2]={name:"path",d:"M9,9L9 0 18 0 z","stroke-width":1,stroke:t,fill:t},l[3]={name:"path",d:"M0,18L0 9 9 9 z","stroke-width":1,stroke:t,fill:t},l[4]={name:"path",d:"M9,18L9 9 18 9 z","stroke-width":1,stroke:t,fill:t};break;case"HorizontalDash":s[h]=s[c]=p,l[0]={name:"rect",x:0,y:0,width:p,height:p,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M0,1.5 L10 1.5 M0,5.5 L10 5.5 M0,9.5 L10 9.5 z","stroke-width":1,stroke:t,fill:t};break;case"VerticalDash":s[h]=s[c]=p,l[0]={name:"rect",x:0,y:0,width:p,height:p,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M1.5,0 L1.5 10 M5.5,0 L5.5 10 M9.5,0 L9.5 10 z","stroke-width":1,stroke:t,fill:t};break;case"Rectangle":s[h]=s[c]=p,l[0]={name:"rect",width:p,height:p,fill:n,opacity:r},l[1]={name:"rect",x:1,y:2,width:4,height:9,fill:t,opacity:r},l[2]={name:"rect",x:7,y:2,width:4,height:9,fill:t,opacity:r};break;case"Box":s[h]=s[c]=d,l[0]={name:"rect",width:13,height:13,fill:n,opacity:r},l[1]={name:"rect",x:1.5,y:1.5,width:d,height:9,fill:t,opacity:r};break;case"HorizontalStripe":s[h]=p,s[c]=d,l[0]={name:"rect",x:0,y:0,width:d,height:p,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M0,0.5 L10 0.5 M0,4.5 L10 4.5 M0,8.5 L10 8.5 z","stroke-width":1,stroke:t,fill:t};break;case"VerticalStripe":s[h]=d,s[c]=p,l[0]={name:"rect",x:0,y:0,width:p,height:d,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"path",d:"M0.5,0 L0.5 10 M4.5,0 L4.5 10 M8.5,0 L8.5 10 z","stroke-width":1,stroke:t,fill:t};break;case"Bubble":s[h]=s[c]=20,l[0]={name:"rect",x:0,y:0,width:20,height:20,transform:"translate(0,0)",fill:n,opacity:r},l[1]={name:"circle",cx:5.217,cy:11.325,r:3.429,"stroke-width":1,fill:"#D0A6D1"},l[2]={name:"circle",cx:13.328,cy:6.24,r:4.884,"stroke-width":1,fill:t},l[3]={name:"circle",cx:13.277,cy:14.66,r:3.018,"stroke-width":1,fill:"#D0A6D1"}}var u=e.svgRenderer||e.renderer,g=u.createPattern(s,"pattern");return this.loadPattern(e,l,g,u),a.appendChild(g),"url(#"+e.element.id+"_"+o+"_Selection_"+i+")"},e.prototype.loadPattern=function(e,t,i,o){var r;for(r=0;r<t.length;r++){var n=o.createPattern(t[r],t[r].name);i.appendChild(n)}},e.prototype.concatIndexes=function(e,t){return e.concat(t)},e.prototype.checkVisibility=function(e,t){if(void 0===t&&(t=null),!e)return!1;for(var i=!1,o=[],r=0,n=e;r<n.length;r++){var a=n[r];-1===o.indexOf(a.series)&&o.push(a.series)}for(var l=0,s=o;l<s.length;l++){a=s[l];if(null!=t&&t.rangeColorSettings&&t.rangeColorSettings.length>0&&t.rangeColorSettings[0].colors.length>0){if(this.control.series[0].visible){i=!0;break}}else if(this.control.visibleSeries[a].visible){i=!0;break}}return i},e.prototype.addSvgClass=function(e,t){var i=e.getAttribute("class")||"";i+=""!==i?" ":"";var o=e.id.indexOf("datalabel")>-1||e.id.indexOf("Text")>-1||e.id.indexOf("TextShape")>-1;if(-1===i.indexOf(t)){e.setAttribute("class",i+t);var r=this.selectionStyle;if(t&&-1!==t.indexOf("highlight")&&("chart"===this.control.getModuleName()&&this.control.highlightModule?r=this.control.highlightModule.selectionStyle:"accumulationchart"===this.control.getModuleName()&&this.control.accumulationHighlightModule?r=this.control.accumulationHighlightModule.selectionStyle:"chart3d"===this.control.getModuleName()&&this.control.highlight3DModule?r=this.control.highlight3DModule.selectionStyle:"circularchart3d"===this.control.getModuleName()&&this.control.circularChartHighlight3DModule&&(r=this.control.circularChartHighlight3DModule.selectionStyle)),"g"===e.tagName.toLowerCase())e.querySelectorAll("*").forEach(function(e){for(var i=0;i<r.length;i++){var n=r[i],a=n[0],l=e.getAttribute("class")?e.getAttribute("class"):"";a!==t&&-1===a.indexOf(t)||-1!==l.indexOf("selection")||("fill"===n[1]&&n[2]&&!o&&(e.style.fill=n[2]),"opacity"===n[1]&&n[2]&&(e.style.opacity=n[2],e.style.fill=""),"stroke-width"===n[1]&&n[2]&&(e.style.strokeWidth=n[2]))}});else for(var n=0;n<r.length;n++){var a=r[n],l=a[0],s=e.getAttribute("class")?e.getAttribute("class"):"";l!==t&&-1===l.indexOf(t)||-1!==t.indexOf("highlight")&&-1!==s.indexOf("selection")||("fill"===a[1]&&a[2]&&!o&&(e.style.fill=a[2]),"opacity"===a[1]&&a[2]&&(e.style.opacity=a[2],e.style.fill=""),"stroke-width"===a[1]&&a[2]&&-1===e.id.indexOf("legend_shape")&&(e.style.strokeWidth=a[2]))}}},e.prototype.removeSvgClass=function(e,t){var i=e.getAttribute("class")||"";if(i.indexOf(t)>-1){e.setAttribute("class",i.replace(t,"").trim());var o=this.selectionStyle;if(t&&-1!==t.indexOf("highlight")&&("chart"===this.control.getModuleName()&&this.control.highlightModule?o=this.control.highlightModule.selectionStyle:"accumulationchart"===this.control.getModuleName()&&this.control.accumulationHighlightModule?o=this.control.accumulationHighlightModule.selectionStyle:"chart3d"===this.control.getModuleName()&&this.control.highlight3DModule?o=this.control.highlight3DModule.selectionStyle:"circularchart3d"===this.control.getModuleName()&&this.control.circularChartHighlight3DModule&&(o=this.control.circularChartHighlight3DModule.selectionStyle)),"g"===e.tagName.toLowerCase())e.querySelectorAll("*").forEach(function(e){for(var i=0;i<o.length;i++){var r=o[i],n=r[0],a=e.getAttribute("class")?e.getAttribute("class"):"";n!==t&&-1===n.indexOf(t)||-1!==a.indexOf("selection")||("fill"===r[1]&&r[2]&&(e.style.fill=""),"opacity"===r[1]&&r[2]&&(e.style.opacity=""),"stroke-width"===r[1]&&r[2]&&(e.style.strokeWidth=""))}});else for(var r=0;r<o.length;r++){var n=o[r],a=n[0],l=e.getAttribute("class")?e.getAttribute("class"):"";a!==t&&-1===a.indexOf(t)||-1!==t.indexOf("highlight")&&-1!==l.indexOf("selection")||("fill"===n[1]&&n[2]&&(e.style.fill=""),"opacity"===n[1]&&n[2]&&(e.style.opacity=""),"stroke-width"===n[1]&&n[2]&&(e.style.strokeWidth=""))}}},e.prototype.getChildren=function(e){for(var t=[],i=0;i<e.childNodes.length;i++)"defs"!==e.childNodes[i].tagName&&t.push(e.childNodes[i]);return t},e}(),Rn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Tn=function(e){function i(t){var i=e.call(this,t)||this;i.isdrawRect=!0,i.multiDataIndexes=[],i.pathIndex=0,i.seriesIndex=0,i.count=-1,i.dragRectArray=[],i.filterArray=[],i.totalSelectedPoints=[],i.chart=t,i.renderer=t.renderer;var o=t.selectionMode;return i.isMultiDrag=t.isMultiSelect&&o.indexOf("Drag")>-1,i.addEventListener(),i}return Rn(i,e),i.prototype.addEventListener=function(){if(!(this.chart.isDestroyed||this.chart.stockChart&&this.chart.stockChart.onPanning)){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(e,this.mouseLeave,this),this.chart.on("click",this.mouseClick,this),this.chart.on(t.Browser.touchStartEvent,this.mousedown,this),this.chart.on(t.Browser.touchEndEvent,this.mouseLeave,this)}},i.prototype.mousedown=function(e){var t=this.chart;t.isPointMouseDown||"None"===t.selectionMode||t.isChartDrag||(t.isDoubleTap||!t.isTouch||this.rectPoints)&&this.dragStart(t,t.chartAxisLayoutPanel.seriesClipRect,t.mouseDownX,t.mouseDownY,e)},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("pointerleave",this.mouseLeave),this.chart.off("click",this.mouseClick),this.chart.off(t.Browser.touchStartEvent,this.mousedown),this.chart.off(t.Browser.touchEndEvent,this.mouseLeave))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.closeIconId=e.element.id+"_ej2_drag_close",this.draggedRectGroup=e.element.id+"_ej2_drag_group",this.multiRectGroup=e.element.id+"_ej2_drag_multi_group",this.draggedRect=e.element.id+"_ej2_drag_rect",this.lassoPath=e.element.id+"_ej2_drag_path",this.selectedDataIndexes=[],this.rectPoints=null,this.isSeriesMode="Series"===e.selectionMode},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,e.selectionMode.indexOf("Drag")>-1||this.selectDataIndex(e,this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes))},i.prototype.generateStyle=function(e){return e?(this.styleId.indexOf("selection")>1&&"None"!==this.chart.selectionMode&&(this.unselected=e.unSelectedStyle||this.unselected),this.styleId.indexOf("highlight")>0&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)&&(this.unselected=e.nonHighlightStyle||this.unselected),e.selectionStyle||this.styleId+"_series_"+e.index):"undefined"},i.prototype.selectDataIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];this.performSelection(r,e,this.getElementByIndex(e,r,"",this.series[r.series].marker.visible)[0])}},i.prototype.getElementByIndex=function(e,t,i,o,r){void 0===i&&(i="");var n=e.element.id+"_Series_"+t.series+"_Point_"+t.point,a=e.series[t.series];return n="Scatter"!==a.type&&"Bubble"!==a.type&&o?n+"_Symbol"+i:n,!o&&r?[qt(n+"_Text_0"+i),qt(n+"_TextShape_0"+i)]:[qt(n),"RangeArea"!==a.type&&"SplineRangeArea"!==a.type&&"RangeStepArea"!==a.type||!a.marker.visible?null:qt(n+"1")]},i.prototype.getClusterElements=function(e,t){for(var i,o,r=[],n=0,a=e.visibleSeries;n<a.length;n++){var l=a[n];if(l.visible){t=new k(l.index,t.point),l.isRectSeries&&r.push(this.getElementByIndex(e,t)[0]),r.push(this.getElementByIndex(e,t,"",l.marker.visible)[0]);var s=document.getElementById(e.element.id+"_Series_"+l.index+"_Point_"+t.point+"_Text_0"),h=document.getElementById(e.element.id+"_Series_"+l.index+"_Point_"+t.point+"_TextShape_0");s&&r.push(s),h&&r.push(h),i=this.generateStyle(e.visibleSeries[t.series]),o=document.querySelectorAll("."+i),this.findTrackballElements(o,i);var c=l.marker.visible&&l.isRectSeries?2:1;c+=s&&h?2:s||h?1:0,!e.isMultiSelect&&o.length>0&&o[0].id!==(r[r.length-c]?r[r.length-c].id:"")&&this.removeSelection(e,t.series,o,i,!0)}}return r},i.prototype.findTrackballElements=function(e,i){for(var o,r,n=0;n<e.length;n++)if(!(0,t.isNullOrUndefined)(e[n])&&(o=(0,t.isNullOrUndefined)(e[n].parentNode)?[]:[].slice.call(e[0].parentNode.querySelectorAll("."+i))).length>0){r=[];for(var a=0;a<o.length;a++)o[a].id.indexOf("Trackball")>-1&&r.push(o[a]);this.removeStyles(r)}},i.prototype.findElements=function(e,t,i,o,r,n){return void 0===o&&(o=""),this.isSeriesMode?this.getSeriesElements(t):"Cluster"===this.currentMode?this.getClusterElements(e,i):this.getElementByIndex(e,i,o,r,n)},i.prototype.isAlreadySelected=function(e,i){if("click"===i?(this.currentMode=this.chart.selectionMode,this.styleId=this.chart.element.id+(this.chart.selectionModule&&"None"!==this.chart.selectionMode?"_ej2_chart_selection":"_ej2_chart_highlight")):"mousemove"!==i&&"pointermove"!==i||(this.currentMode=this.chart.highlightMode,this.highlightDataIndexes=[],this.styleId=this.chart.element.id+"_ej2_chart_highlight"),"None"!==this.chart.highlightMode&&"None"===this.chart.selectionMode&&"click"===i)return!1;if(("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)&&this.previousSelectedEle&&this.previousSelectedEle[0]){var o=e.parentNode?e.parentNode.id:"",r=void 0;e.parentNode&&(r=o.indexOf("SeriesGroup")>0||o.indexOf("SymbolGroup")>0);for(var n=0;n<this.previousSelectedEle.length;n++)if(this.previousSelectedEle[n]&&this.previousSelectedEle[n].hasAttribute("class"))if(this.previousSelectedEle[n].getAttribute("class").indexOf("highlight")>-1&&(r||"click"===i)){if(this.previousSelectedEle[n].removeAttribute("class"),this.previousSelectedEle[n].id.indexOf("Group")>0)for(var a=0;a<this.previousSelectedEle[n].children.length;a++)""===this.chart.highlightColor||(0,t.isNullOrUndefined)(this.chart.highlightColor)||"None"!==this.chart.highlightPattern||this.previousSelectedEle[n].children[a].setAttribute("fill",this.previousSelectedEle[n].children[a].id.indexOf("Text")>-1||this.previousSelectedEle[n].children[a].id.indexOf("TextShape")>-1?this.previousSelectedEle[n].children[a].getAttribute("fill"):this.control.visibleSeries[this.indexFinder(this.previousSelectedEle[n].id).series].interior),this.previousSelectedEle[n].children[a].removeAttribute("style");else""===this.chart.highlightColor||(0,t.isNullOrUndefined)(this.chart.highlightColor)||"None"!==this.chart.highlightPattern||this.previousSelectedEle[n].setAttribute("fill",this.previousSelectedEle[n].id.indexOf("Text")>-1||this.previousSelectedEle[n].id.indexOf("TextShape")>-1?this.previousSelectedEle[n].getAttribute("fill"):this.control.visibleSeries[this.indexFinder(this.previousSelectedEle[n].id).series].interior),this.previousSelectedEle[n].removeAttribute("style");this.addOrRemoveIndex(this.highlightDataIndexes,this.indexFinder(this.previousSelectedEle[n].id))}else!r&&this.previousSelectedEle[n].getAttribute("class").indexOf("highlight")>-1&&this.performSelection(this.indexFinder(this.previousSelectedEle[n].id),this.chart,this.previousSelectedEle[n])}return!0},i.prototype.mouseClick=function(e){this.calculateSelectedElements(e.target,e.type,!0),this.chart.highlightModule&&this.chart.highlightModule.highlightDataIndexes&&this.chart.highlightModule.highlightDataIndexes.length>0&&-1===e.target.id.indexOf("_chart_legend_")&&this.chart.isTouch&&t.Browser.isDevice&&this.removeLegendHighlightStyles()},i.prototype.calculateSelectedElements=function(e,i,o){if(!(0,t.isNullOrUndefined)(e)&&!("None"===this.chart.selectionMode&&"None"===this.chart.highlightMode||e.id&&-1===e.id.indexOf(this.chart.element.id+"_"))){if("mousemove"===i||"pointermove"===i){if(e.hasAttribute("class")&&(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))return;if(!(0,t.isNullOrUndefined)(e.parentNode)&&e.parentNode.hasAttribute("class")&&(e.parentNode.getAttribute("class").indexOf("highlight")>0||e.parentNode.getAttribute("class").indexOf("selection")>0))return}if(this.isAlreadySelected(e,i),e.id&&e.id.indexOf("_Series_")>-1&&-1===e.id.indexOf("_Text_")){var r=void 0;if(e.id.indexOf("_Trackball_1")>-1)r=qt(e.id.split("_Trackball_")[0]+"_Symbol"),r=(0,t.isNullOrUndefined)(r)?qt(e.id.split("_Trackball_")[0]):r;else if(e.id.indexOf("_Trackball_0")>-1)return null;this.performSelection(this.indexFinder(e.id),this.chart,r||e,o)}}},i.prototype.performSelection=function(e,t,i,o){if(this.isSeriesMode="Series"===this.currentMode,"BoxAndWhisker"===t.visibleSeries[e.series].type&&i&&i.id===t.element.id+"_Series_"+e.series+"_Point_"+e.point+"_BoxPath"&&(i=i.parentNode),"Area"===t.visibleSeries[e.series].type&&("Point"===this.currentMode||"Cluster"===this.currentMode)&&i&&i.id===this.chart.element.id+"_Series_"+e.series){var r=this.generateStyle(t.series[e.series]),n=document.querySelectorAll("."+r);this.findTrackballElements(n,r),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point)}switch(this.currentMode){case"Series":this.selection(t,e,this.getSeriesElements(t.series[e.series])),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point);break;case"Point":if(!isNaN(e.point)&&i||!o&&isNaN(e.point)){var a=[];a.push(i);var l=this.chart.visibleSeries[e.series],s=t.element.id+"_Series_"+e.series+"_Point_"+e.point,h=document.getElementById(s+"_Text_0");l.marker.dataLabel.visible&&null!==h&&(a.push(h),a.push(document.getElementById(s+"_TextShape_0"))),null===a[0]||!t.series[e.series].marker.visible||-1===t.series[e.series].type.indexOf("Column")&&-1===t.series[e.series].type.indexOf("Bar")||(-1===i.id.indexOf("_Symbol")&&qt(i.id+"_Symbol")?a.push(qt(i.id+"_Symbol")):-1!==i.id.indexOf("_Symbol")&&qt(i.id.replace("_Symbol",""))&&a.push(qt(i.id.replace("_Symbol","")))),this.selection(t,e,!o&&isNaN(e.point)?this.getSeriesElements(t.series[e.series]):a),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point)}break;case"Cluster":(!isNaN(e.point)||!o&&isNaN(e.point))&&(!o&&isNaN(e.point)?this.selection(t,e,this.getSeriesElements(t.series[e.series])):this.clusterSelection(t,e),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries,!1,e.point))}},i.prototype.selectionComplete=function(e,t,i){var o,r,n,a,l,s=[];if("Cluster"===i)for(var h=0,c=e.visibleSeries;h<c.length;h++){if((u=c[h]).visible)for(var d=0;d<this.selectedDataIndexes.length;d++)r=e.isMultiSelect?this.selectedDataIndexes[d].point:t.point,n=u.index,o=u.points,!isNaN(r)&&r<o.length&&(a="RangeArea"!==u.type||u.type.indexOf("SplineRangeArea")>-1||u.type.indexOf("RangeStepArea")>-1?o[r].yValue:o[r].regions[0].y,l=o[r].xValue,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),"Indicator"!==u.category&&s.push({x:l,y:a,seriesIndex:n,pointIndex:r}),"RangeArea"!==u.type&&"SplineRangeArea"!==u.type&&"RangeStepArea"!==u.type||s.push({x:l,y:o[r].regions[0].y,seriesIndex:n,pointIndex:r}))}else if("Series"===i)if(e.isMultiSelect)for(d=0;d<this.selectedDataIndexes.length;d++)n=this.selectedDataIndexes[d].series,this.selectedDataIndexes.length>0&&s.push({seriesIndex:n});else n=this.selectedDataIndexes.length>0?this.selectedDataIndexes[0].series:this.highlightDataIndexes&&this.highlightDataIndexes.length>0?this.highlightDataIndexes[0].series:0,(this.selectedDataIndexes.length>0||this.highlightDataIndexes&&this.highlightDataIndexes.length>0)&&s.push({seriesIndex:n});else if("Point"===i){var p=[];p=this.styleId.indexOf("highlight")>-1?this.highlightDataIndexes:this.selectedDataIndexes;for(d=0;d<p.length;d++){var u;r=p[d].point,n=p[d].series,o=(u=e.series[n]).points,isNaN(r)||(l=o[r].xValue,a="RangeArea"!==u.type||u.type.indexOf("SplineRangeArea")>-1||u.type.indexOf("RangeStepArea")>-1?o[r].yValue:o[r].regions[0].y,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),s.push({x:l,y:a,seriesIndex:n,pointIndex:r}))}}var g={name:ne,selectedDataValues:s,cancel:!1,chart:e};e.trigger(ne,g)},i.prototype.selection=function(e,i,o){"Lasso"!==this.currentMode&&(e.isMultiSelect||-1!==this.currentMode.indexOf("Drag")||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectElements(e,this.selectedDataIndexes,i,e.series));var r=this.rangeColorMappingEnabled()?0:i.series;if(!(0,t.isNullOrUndefined)(o[0])){e.visibleSeries[r].isRectSeries&&o[0].id&&(document.getElementById(o[0].id+"_Symbol")?o.push(qt(o[0].id+"_Symbol")):-1!==o[0].id.indexOf("SeriesGroup")&&document.getElementById(o[0].id.replace("SeriesGroup","SymbolGroup"))&&o.push(qt(o[0].id.replace("SeriesGroup","SymbolGroup"))));var n=void 0,a=o[0]&&(o[0].getAttribute("class")||"");a=a.replace("e-chart-focused","").trim();var l=o[0].parentNode&&(o[0].parentNode.getAttribute("class")||"");""!==a&&"Cluster"!==this.currentMode&&this.findTrackballElements(o,a),o[0]&&a.indexOf(this.getSelectionClass(o[0].id))>-1?this.removeStyles(o):o[0].parentNode&&l.indexOf(this.getSelectionClass(o[0].id))>-1?this.removeStyles([o[0].parentNode]):(this.previousSelectedEle="None"!==e.highlightMode||e.legendSettings.enableHighlight?o:[],this.applyStyles(o),n=!0),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,i,n):this.addOrRemoveIndex(this.selectedDataIndexes,i,n)}},i.prototype.clusterSelection=function(e,t){this.selection(e,t,this.getClusterElements(e,new k(t.series,t.point)))},i.prototype.removeMultiSelectElements=function(e,t,i,o){for(var r,n=0;n<t.length;n++)r=o[t[n].series],(this.isSeriesMode&&!this.toEquals(t[n],i,this.isSeriesMode)||"Cluster"===this.currentMode&&!this.toEquals(t[n],i,!1)||!this.isSeriesMode&&this.toEquals(t[n],i,!0)&&!this.toEquals(t[n],i,!1))&&(this.removeStyles(this.findElements(e,r,t[n],"",!1)),r.marker.visible&&this.removeStyles(this.findElements(e,r,t[n],"",!0)),r.marker.dataLabel.visible&&this.removeStyles(this.findElements(e,r,t[n],"",!1,!0)),t.splice(n,1),n--)},i.prototype.blurEffect=function(e,i,o,r){void 0===o&&(o=!1),void 0===r&&(r=0);for(var n=this.checkVisibility(this.highlightDataIndexes,this.chart)||this.checkVisibility(this.selectedDataIndexes,this.chart),a=0,l=i;a<l.length;a++){var s=l[a],h=void 0,c=void 0;this.rangeColorMappingEnabled()?!1===o?(h=Object.keys(s.rangeColorPoints).indexOf(s.points[r].interior),c=s.points[r].interior):(h=r,c=document.getElementById(e+"_chart_legend_shape_"+r).getAttribute("fill")):(h=s.index,c=this.chart.visibleSeries[s.index].interior),s.visible&&(this.checkSelectionElements(qt(e+"SeriesGroup"+s.index),this.generateStyle(s),n,o,h,c),s.marker.dataLabel.visible&&!(0,t.isNullOrUndefined)(s.shapeElement)&&(this.checkSelectionElements(s.shapeElement,this.generateStyle(s),n,o,h,c),this.checkSelectionElements(s.textElement,this.generateStyle(s),n,o,h,c)),(0,t.isNullOrUndefined)(qt(e+"SymbolGroup"+s.index))||this.checkSelectionElements(qt(e+"SymbolGroup"+s.index),this.generateStyle(s),n,o,h,c))}},i.prototype.checkSelectionElements=function(e,i,o,r,n,a){if(void 0===r&&(r=!0),void 0===n&&(n=0),void 0===a&&(a="#D3D3D3"),e){var l=this.isSeriesMode?e.childNodes||[e]:e.childNodes||e;"None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(l=e.childNodes||e),"Cluster"===this.chart.selectionMode&&"text"===e.tagName.toLowerCase()&&e.id.indexOf("_Text_")>=0&&(l=[e]);for(var s=void 0,h=void 0,c=void 0,d=e,p=this.chart.visibleSeries[this.rangeColorMappingEnabled()?0:n].marker.dataLabel.visible&&(e.id.indexOf("Text")>-1||e.id.indexOf("TextShape")>-1)&&"g"!==e.tagName,u=0;u<l.length&&!p;u++)s=l[u].getAttribute("class")||"",h=l[u].parentNode.getAttribute("class")||"","None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(i=s.indexOf("selection")>0||s.indexOf("highlight")>0?s:i,i=h.indexOf("selection")>0||h.indexOf("highlight")>0?h:i),-1===s.indexOf(i)&&-1===h.indexOf(i)&&o?this.addSvgClass(l[u],this.unselected):(d=l[u],this.removeSvgClass(l[u],this.unselected),this.removeSvgClass(l[u].parentNode,this.unselected),""!==l[u].id&&-1!==s.indexOf(this.unselected)&&-1===h.indexOf(i)&&this.highlightAnimation(l[u],1===this.chart.series.length?0:this.indexFinder(l[u].id).series,700,.3)),l[u].id.indexOf("Trackball")>0&&d.classList[0]===i&&(this.removeSvgClass(l[u],this.unselected),this.removeSvgClass(l[u].parentNode,this.unselected),this.addSvgClass(l[u],i));if(e.id.indexOf("Symbol")>-1&&e.querySelectorAll("."+i)[0]&&e.querySelectorAll("."+i)[0].getAttribute("class")===i){var g=qt(this.control.element.id+"_Series_"+e.id[e.id.length-1]);(g&&g.hasAttribute("class")?g.getAttribute("class"):"").indexOf(this.unselected)>-1&&this.removeSvgClass(g,this.unselected)}if(this.control.legendModule&&this.control.legendSettings.visible&&this.control.legendSettings.visible&&(!r||!this.rangeColorMappingEnabled||e!==this.control.visibleSeries[0].textElement&&e!==this.control.visibleSeries[0].shapeElement)&&(c=qt(this.control.element.id+"_chart_legend_shape_"+n))){c.hasAttribute("class")&&(this.removeSvgClass(c,c.getAttribute("class")),(0,t.isNullOrUndefined)(this.chart.highlightColor&&""!==this.chart.highlightColor)||this.chart.legendSettings.enableHighlight||(c.setAttribute("stroke",a),"None"===this.chart.highlightPattern&&c.setAttribute("fill",a))),s=d.getAttribute("class")||"",h=d.parentNode.getAttribute("class")||"",-1===s.indexOf(i)&&-1===h.indexOf(i)&&o?(this.addSvgClass(c,"None"!==this.chart.highlightMode||!this.chart.legendSettings.enableHighlight||this.chart.selectionModule&&0!==this.chart.selectionModule.selectedDataIndexes.length?this.unselected:i),this.removeSvgClass(c,i),""===this.chart.highlightColor||(0,t.isNullOrUndefined)(this.chart.highlightColor)||(c.setAttribute("stroke",this.control.visibleSeries[n].interior),"None"===this.chart.highlightPattern&&c.setAttribute("fill",this.control.visibleSeries[n].interior))):(this.removeSvgClass(c,this.unselected),(0,t.isNullOrUndefined)(this.chart.highlightColor)||""===this.chart.highlightColor||(c.setAttribute("stroke",this.control.visibleSeries[n].interior),"None"===this.chart.highlightPattern&&c.setAttribute("fill",this.control.visibleSeries[n].interior)),""===s&&""===h||"EJ2-Trackball"===s.trim()?this.removeSvgClass(c,i):(this.addSvgClass(c,i),i.indexOf("highlight")>0&&""!==this.chart.highlightColor&&"transparent"!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&(c.setAttribute("stroke",this.chart.highlightColor),this.styleId.indexOf("highlight")>0&&"None"===this.chart.highlightPattern&&c.setAttribute("fill",this.chart.highlightColor))));var m=void 0;if(this.rangeColorMappingEnabled())for(u=0;u<this.chart.rangeColorSettings.length;u++)c!==(m=document.getElementById(this.chart.element.id+"_chart_legend_shape_"+u))?(this.addSvgClass(m,this.unselected),this.removeSvgClass(m,i)):!0===r&&this.addSvgClass(m,i),-1===s.indexOf(i)&&!1===r&&this.removeSvgClass(m,this.unselected);r&&h.indexOf(i)>-1&&this.addSvgClass(c,i)}}},i.prototype.applyStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r){if(this.removeSvgClass(r.parentNode,this.unselected),this.removeSvgClass(r,this.unselected),"fill"===this.chart.series[0].pointColorMapping||this.rangeColorMappingEnabled()){var n=this.getSelectionClass(r.id),a=n.indexOf("highlight")>-1?parseInt(n.split(this.chart.element.id+"_ej2_chart_highlight_series_")[1],10):parseInt(n.split(this.chart.element.id+"_ej2_chart_selection_series_")[1],10),l=this.styleId.indexOf("highlight")>0?this.chart.highlightPattern:this.chart.selectionPattern,s=void 0;if((n.indexOf("highlight")>-1||n.indexOf("selection")>-1)&&(s=document.getElementById(this.chart.element.id+"_"+l+"_Selection_"+a)),-1===r.id.indexOf("legend")&&-1===r.id.indexOf("Text")&&-1===r.id.indexOf("TextShape")&&-1===r.id.indexOf("Group")&&null!=s)for(var h=1;h<s.children.length;h++)s.children[h].setAttribute("fill",r.getAttribute("fill")),s.children[h].setAttribute("stroke",r.getAttribute("fill"))}if(this.addSvgClass(r,this.getSelectionClass(r.id)),r.id.indexOf("Group")>0){var c=this.indexFinder(r.id);for(h=0;h<r.children.length;h++)"defs"!==r.children[h].nodeName&&this.stopElementAnimation(r.children[h],c.series)}if(this.styleId.indexOf("highlight")>0&&""!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&"None"===this.chart.highlightPattern&&"transparent"!==this.chart.highlightColor)if(r.id.indexOf("Group")>0)for(h=0;h<r.children.length;h++)r.children[h].setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.children[h].getAttribute("fill"):this.chart.highlightColor);else r.setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.getAttribute("fill"):this.chart.highlightColor)}}},i.prototype.getSelectionClass=function(e){return this.generateStyle(this.control.visibleSeries[this.indexFinder(e).series])},i.prototype.removeStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r&&(this.removeSvgClass(r,this.getSelectionClass(r.id)),"None"===this.chart.highlightPattern&&""!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&"transparent"!==this.chart.highlightColor))if(r.id.indexOf("Group")>0)for(var n=0;n<r.children.length;n++)r.children[n].setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.children[n].getAttribute("fill"):this.control.visibleSeries[this.indexFinder(r.id).series].interior);else r.setAttribute("fill",r.id.indexOf("Text")>-1||r.id.indexOf("TextShape")>-1?r.getAttribute("fill"):this.control.visibleSeries[this.indexFinder(r.id).series].interior)}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.toEquals(e[o],t,this.isSeriesMode)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.toEquals=function(e,t,i){return(e.series===t.series||"Cluster"===this.currentMode&&!i)&&(i||e.point===t.point)},i.prototype.redrawSelection=function(e,i,o){this.isSeriesMode="Series"===i,(0,t.isNullOrUndefined)(i)||(-1!==i.indexOf("Drag")||"Lasso"===i||o?e.isRedrawSelection=!1:e.isRedrawSelection=!0);var r=(0,t.extend)([],this.selectedDataIndexes,null,!0),n=(0,t.extend)([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&n.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes,e.series),r=n):this.removeSelectedElements(e,this.selectedDataIndexes,e.series),this.blurEffect(e.element.id,e.visibleSeries,!1),this.selectDataIndex(e,r)},i.prototype.legendSelection=function(e,i,o,r){if("mousemove"===r){if(o.id.indexOf("text")>1&&(o=qt(o.id.replace("text","shape"))),o.id.indexOf("marker")>1&&(o=qt(o.id.replace("_marker",""))),o.id.indexOf("g")>1&&(o=qt(o.id.replace("_g_","_shape_"))),o.hasAttribute("class")&&(o.getAttribute("class").indexOf("highlight")>-1||o.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.chart.highlightMode}if(this.isAlreadySelected(o,r)){var n=this.generateStyle(e.visibleSeries[i]),a=document.querySelectorAll("."+n);this.isSeriesMode="Series"===this.currentMode;var l=!0;if(a.length>0)this.removeSelection(e,i,a,n,l);else{for(var s=0,h=e.visibleSeries;s<h.length;s++){(b=h[s]).index===i||e.isMultiSelect||(n=this.generateStyle(e.visibleSeries[b.index]),a=document.querySelectorAll("."+n),this.removeSelection(e,i,a,n,l))}var c=[];if(this.rangeColorMappingEnabled()){for(var d=0,p=e.visibleSeries[0].seriesElement.children;d<p.length;d++){var u=p[d];if(o.getAttribute("fill")===u.getAttribute("fill")){if(e.visibleSeries[0].marker.dataLabel.visible){var g=this.indexFinder(u.id).point;if(!isNaN(g)&&g>=0){var m=document.getElementById(this.chart.element.id+"_Series_0_Point_"+g+"_Text_0"),y=document.getElementById(this.chart.element.id+"_Series_0_Point_"+g+"_TextShape_0");m&&c.push(m),y&&c.push(y)}}c.push(u)}}for(var f=0,v=c;f<v.length;f++){var b=v[f];if((0,t.isNullOrUndefined)(b))return;this.checkSelectionElements(b,n,!1,!0,i)}}else if(e.visibleSeries[i].visible)for(var x=0,S=c=this.getSeriesElements(e.visibleSeries[i]);x<S.length;x++){var C=S[x];if((0,t.isNullOrUndefined)(C))return;this.checkSelectionElements(C,n,!1,!0,i)}this.isSeriesMode=!0,this.selection(e,new k(i,NaN),c),this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries,!0,i)}}},i.prototype.rangeColorMappingEnabled=function(){return!(!(this.chart.rangeColorSettings&&this.chart.rangeColorSettings.length>0&&1===this.chart.visibleSeries.length&&this.chart.rangeColorSettings[0].colors.length>0)||"Column"!==this.chart.series[0].type&&"Bar"!==this.chart.series[0].type&&"Scatter"!==this.chart.series[0].type&&"Bubble"!==this.chart.series[0].type)},i.prototype.removeSelection=function(e,t,i,o,r){if(i.length>0){for(var n=[],a=0;a<i.length;a++)n.push(i[a]);this.removeStyles(n),this.isSeriesMode=!0,this.addOrRemoveIndex(this.selectedDataIndexes,new k(t,NaN));for(var l=0,s=e.visibleSeries;l<s.length;l++){var h=s[l];if(o=this.generateStyle(h),document.querySelectorAll("."+o).length>0){for(var c=0,d=n;c<d.length;c++){var p=d[c];this.checkSelectionElements(p,o,!0,!0,t)}r=!1;break}}r&&(this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries))}},i.prototype.getSeriesElements=function(e){var t=[e.seriesElement];return(e.marker.visible&&"Scatter"!==e.type&&"Bubble"!==e.type&&!e.isRectSeries||e.marker.visible&&e.isRectSeries)&&t.push(e.symbolElement),e.marker.dataLabel.visible&&(t.push(e.textElement),t.push(e.shapeElement)),t},i.prototype.indexFinder=function(e){var t=["NaN","NaN"];return e.indexOf("SeriesGroup")>-1?(t=e.split("SeriesGroup"))[0]=t[1]:e.indexOf("SymbolGroup")>-1?(t=e.split("SymbolGroup"))[0]=t[1]:e.indexOf("_Point_")>-1?t=e.split("_Series_")[1].split("_Point_"):e.indexOf("_border_")>-1?t[0]=e.split("_border_")[1]:e.indexOf("_Series_")>-1?t[0]=e.split("_Series_")[1]:e.indexOf("_chart_legend_shape_")>-1?(t=e.split("_chart_legend_shape_"))[0]=t[1]:e.indexOf("TextGroup")>-1?(t=e.split("TextGroup"))[0]=t[1]:e.indexOf("ShapeGroup")>-1&&((t=e.split("ShapeGroup"))[0]=t[1]),new k(parseInt(t[0],10),parseInt(t[1],10))},i.prototype.calculateDragSelectedElements=function(e,t,i){this.removeSelectedElements(e,this.selectedDataIndexes,e.series);var o,r,n="Lasso"===e.selectionMode,a=new R.Rect(t.x,t.y,t.width,t.height),l=new ji(e.chartAxisLayoutPanel.seriesClipRect.x,e.chartAxisLayoutPanel.seriesClipRect.y);this.removeOffset(a,l);var s=[],h=[];this.isSeriesMode=!1;var c=e.allowMultiSelection&&(this.rectGrabbing||this.resizing);if(this.rectPoints=this.dragRectArray[c?this.targetIndex:this.count]=new R.Rect(t.x,t.y,t.width,t.height),t.width&&t.height&&!i){var d=new R.Rect(t.x,t.y,t.width,t.height);this.removeOffset(d,l),this.filterArray[c?this.targetIndex:this.count]=d}for(var p=function(t){if(t.visible){var i,n;o=t.points,s=[],!e.isTransposed&&-1===t.type.indexOf("Bar")||e.isTransposed&&-1!==t.type.indexOf("Bar")?(i=t.xAxis.rect.x-l.x,n=t.yAxis.rect.y-l.y):(i=t.xAxis.rect.y-l.y,n=t.yAxis.rect.x-l.x);for(var c=0;c<o.length;c++){var d="RangeArea"!==t.type||t.type.indexOf("SplineRangeArea")>-1||t.type.indexOf("RangeStepArea")>-1?o[c].yValue:o[c].regions[0].y,p=void 0,g=o[c].xValue;"Category"===e.primaryXAxis.valueType?g=o[c].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(g=new Date(o[c].xValue)),(p="BoxAndWhisker"===t.type?o[c].regions.some(function(e){return Pt(e.x+i,e.y+n,a)}):"Lasso"===e.selectionMode?o[c].isSelect:e.allowMultiSelection?u.isPointSelect(o[c],i,n,u.filterArray):o[c].symbolLocations.some(function(e){return e&&Pt(e.x+i,e.y+n,a)}))&&"Indicator"!==t.category&&(r=new k(t.index,o[c].index),u.selection(e,r,u.findElements(e,t,r,"",!t.isRectSeries&&t.marker.visible)),s.push({x:g,y:d})),!p||"RangeArea"!==t.type&&"SplineRangeArea"!==t.type&&"RangeStepArea"!==t.type||s.push({x:g,y:o[c].regions[0].y})}h.push(s)}},u=this,g=0,m=e.visibleSeries;g<m.length;g++){p(m[g])}this.blurEffect(e.element.id,e.visibleSeries);var y=n?e.mouseDownX:t.x+t.width,f=n?e.mouseDownY:t.y;i||this.createCloseButton(y,f);var v={name:re,selectedDataValues:h,cancel:!1};e.trigger(re,v)},i.prototype.removeOffset=function(e,t){e.x-=t.x,e.y-=t.y},i.prototype.isPointSelect=function(e,t,i,o){for(var r=e.symbolLocations[0],n=0,a=o;n<a.length;n++){var l=a[n];if(l&&r&&Pt(r.x+t,r.y+i,l))return!0}return!1},i.prototype.drawDraggingRect=function(e,i){var o=e.chartAxisLayoutPanel.seriesClipRect,r=e.chartArea.border.width,n=e.themeStyle.selectionRectFill,a=e.themeStyle.selectionRectStroke,l="Lasso"===e.selectionMode;switch(this.isdrawRect&&(o.x=o.x-r/2,o.y=o.y-r/2,o.width=o.width+r,o.height=o.height+r,this.isdrawRect=!1),e.selectionMode){case"DragX":i.y=o.y,i.height=o.height;break;case"DragY":i.x=o.x,i.width=o.width}if((i.width<5||i.height<5)&&!l)return null;var s=e.selectionMode.indexOf("Drag")>-1||"Lasso"===e.selectionMode;if(e.allowMultiSelection&&s){var h=void 0,c=void 0,d=qt(this.multiRectGroup);if(d||(d=e.svgRenderer.createGroup({id:this.multiRectGroup}),e.svgObject.appendChild(d)),this.rectGrabbing||this.resizing){var p=qt(this.draggedRect+this.targetIndex);p.nextSibling&&(0,t.remove)(p.nextSibling),this.setAttributes(p,i)}else if(!qt(this.draggedRectGroup+this.count)){c=e.svgRenderer.createGroup({id:this.draggedRectGroup+this.count});var u=document.getElementById(e.element.id+"_series_svg");e.enableCanvas?u.appendChild(c):d.appendChild(c)}"Lasso"!==e.selectionMode?(h=e.svgRenderer.drawRectangle(new Ni(this.draggedRect+this.count,n,{color:a,width:1},1,i,0,0,"",e.theme.indexOf("Fluent2")<1?"3":""))).style.cursor="move":h=e.svgRenderer.drawPath(new R.PathOption(this.lassoPath+this.count,n,3,a,1,"",this.path)),c||this.rectGrabbing||this.resizing?this.rectGrabbing||this.resizing||c.appendChild(h):qt(this.draggedRectGroup+this.count).appendChild(h)}else{h=qt(l?this.lassoPath:this.draggedRect);if(this.closeIcon&&Je(this.closeIconId),h)l?h.setAttribute("d",this.path):this.setAttributes(h,i);else{c=e.svgRenderer.createGroup({id:this.draggedRectGroup}),u=document.getElementById(e.element.id+"_series_svg");e.enableCanvas?u.appendChild(c):e.svgObject.appendChild(c),h="Lasso"!==e.selectionMode?e.svgRenderer.drawRectangle(new Ni(this.draggedRect,n,{color:a,width:1},1,i,0,0,"",e.theme.indexOf("Fluent2")<1?"3":"")):e.svgRenderer.drawPath(new R.PathOption(this.lassoPath,n,3,a,1,"",this.path)),c.appendChild(h)}}},i.prototype.getIndex=function(e){var t;for(t=e.length-1;t>0;t--){var i=Number(e[t]);if(isNaN(i))break}return+e.substr(t+1,e.length-1)},i.prototype.createCloseButton=function(e,t){var i=this.chart.allowMultiSelection,o=this.chart.themeStyle.selectionCircleStroke,r=this.rectGrabbing||this.resizing,n=this.chart.svgRenderer.createGroup({id:this.closeIconId+(i?r?this.targetIndex:this.count:""),style:"cursor:pointer; visibility: visible;"});n.appendChild(this.chart.svgRenderer.drawCircle(new Hi(this.closeIconId+"_circle"+(i?r?this.targetIndex:this.count:""),"#FFFFFF",{color:o,width:1},1,e,t,10)));var a="M "+(e-4)+" "+(t-4)+" L "+(e+4)+" "+(t+4)+" M "+(e-4)+" "+(t+4)+" L "+(e+4)+" "+(t-4);n.appendChild(this.chart.svgRenderer.drawPath({id:this.closeIconId+"_cross"+(i?r?this.targetIndex:this.count:""),d:a,stroke:o,"stroke-width":2,fill:o})),this.closeIcon=n;var l=qt(this.draggedRectGroup+(i?r?this.targetIndex:this.count:""));l&&l.appendChild(n)},i.prototype.removeDraggedElements=function(e,i,o){if(i.id&&i.id.indexOf(this.closeIconId)>-1&&-1===o.indexOf("move")){var r=!0;if(e.allowMultiSelection){var n=this.getIndex(i.id),a=qt(this.multiRectGroup);if((0,t.remove)(qt(this.draggedRectGroup+n)),this.dragRectArray[n]=null,this.filterArray[n]=null,this.totalSelectedPoints[n]=null,a&&0===a.childElementCount&&(Je(a),this.dragRectArray=[],this.filterArray=[],this.totalSelectedPoints=[]),"Lasso"===this.currentMode){if(null!=this.multiDataIndexes[n])for(var l=0;l<this.multiDataIndexes[n].length;l++)this.multiDataIndexes[n][l].isSelect=!1;this.multiDataIndexes[n]=null;for(var s=0;s<this.multiDataIndexes.length;s++)if(null!=this.multiDataIndexes[s]){r=!1;for(var h=0;h<this.multiDataIndexes[s].length;h++)this.multiDataIndexes[s][h].isSelect=!0}this.calculateDragSelectedElements(e,this.dragRect,!0)}else if(this.filterArray.length)for(l=0;l<this.filterArray.length;l++)this.filterArray[l]&&(r=!1,this.calculateDragSelectedElements(e,this.filterArray[l],!0));else this.calculateDragSelectedElements(e,new R.Rect(0,0,0,0),!0)}else(0,t.remove)(qt(this.draggedRectGroup)),this.removeSelectedElements(e,this.selectedDataIndexes,e.series);this.blurEffect(e.element.id,e.visibleSeries),this.changeCursorStyle(!1,e.svgObject,"auto"),e.allowMultiSelection&&!r||(this.rectPoints=null)}},i.prototype.resizingSelectionRect=function(e,t,i,o){var r;if(e.allowMultiSelection&&o.id.indexOf("_ej2_drag_rect")>-1||this.dragRectArray[this.targetIndex]){o.id.indexOf("_ej2_drag_rect")>-1&&(this.targetIndex=this.getIndex(o.id));var n=this.dragRectArray[this.targetIndex];r=new R.Rect(n.x,n.y,n.width,n.height)}if(e.allowMultiSelection||(r=new R.Rect(this.rectPoints.x,this.rectPoints.y,this.rectPoints.width,this.rectPoints.height)),r){var a=this.findResizeMode(e.svgObject,r,t);this.resizing&&(r=ai(r.x,r.y,r.x+r.width,r.y+r.height,e.chartAxisLayoutPanel.seriesClipRect),this.drawDraggingRect(e,r),this.dragRect=r),i&&(this.resizing=a)}},i.prototype.findResizeMode=function(e,t,i){var o="se-resize",r=!1;if(this.resizing){var n=t.x,a=t.y,l=i.x-n,s=i.y-a;switch(this.resizeMode){case 0:s=Math.abs(t.height+t.y-i.y),t.y=Math.min(t.height+t.y,i.y),t.height=s;break;case 1:l=Math.abs(t.width+t.x-i.x),t.x=Math.min(t.width+t.x,i.x),t.width=l;break;case 2:t.height=Math.abs(s),t.y=Math.min(i.y,a);break;case 3:t.width=Math.abs(l),t.x=Math.min(i.x,n);break;case 4:t.width=Math.abs(l),t.height=Math.abs(s),t.x=Math.min(i.x,n),t.y=Math.min(i.y,a)}}else for(var h=[new R.Rect(t.x,t.y,t.width-5,5),new R.Rect(t.x,t.y,5,t.height),new R.Rect(t.x,t.y+t.height-5,t.width-5,5),new R.Rect(t.x+t.width-5,t.y+5,5,t.height-15),new R.Rect(t.x+t.width-10,t.y+t.height-10,10,10)],c=0;c<h.length;c++)if(Pt(i.x,i.y,h[c])){o=4===c?o:c%2==0?"ns-resize":"ew-resize",r=!0,this.resizeMode=c;break}return"Lasso"!==this.currentMode&&this.changeCursorStyle(r,qt(this.chart.allowMultiSelection?this.draggedRect+this.targetIndex:this.draggedRect),o),this.changeCursorStyle(r,e,o),r},i.prototype.changeCursorStyle=function(e,t,i){i=e?i:this.control.svgObject===t?"auto":"move",t&&(t.style.cursor=i)},i.prototype.removeSelectedElements=function(e,t,i){var o;t=e.isRedrawSelection?t:t.splice(0,t.length);for(var r=0,n=i;r<n.length;r++){var a=n[r];if(a.visible){o=this.getSeriesElements(a),this.removeStyles(o);for(var l=0,s=o;l<s.length;l++){var h=s[l];this.removeStyles(this.getChildren(h))}}}},i.prototype.setAttributes=function(e,t){for(var i=0,o=Object.keys(t);i<o.length;i++){var r=o[i];e.setAttribute(r,t[r])}},i.prototype.draggedRectMoved=function(e,t,i){var o;if((this.resizing||this.rectGrabbing)&&e.allowMultiSelection){var r=this.dragRectArray[this.targetIndex];o=new R.Rect(r.x,r.y,r.width,r.height)}else o=new R.Rect(this.rectPoints.x,this.rectPoints.y,this.rectPoints.width,this.rectPoints.height);o.x-=t.x-e.mouseX,o.y-=t.y-e.mouseY,o=ai(o.x,o.y,o.x+o.width,o.height+o.y,e.chartAxisLayoutPanel.seriesClipRect),i?this.drawDraggingRect(e,o):this.calculateDragSelectedElements(e,o)},i.prototype.mouseLeave=function(e){this.completeSelection(e.target,e.type)},i.prototype.completeSelection=function(e,t){var i=this.chart;"None"!==i.selectionMode&&(this.currentMode=i.selectionMode,(this.dragging||this.resizing)&&this.dragRect.width>5&&this.dragRect.height>5?this.calculateDragSelectedElements(i,this.dragRect):(!i.allowMultiSelection&&this.rectGrabbing&&this.rectPoints.width&&this.rectPoints.height||this.rectGrabbing&&this.dragRectArray[this.targetIndex].width&&this.dragRectArray[this.targetIndex].height)&&this.draggedRectMoved(i,this.dragRect),"Lasso"===i.selectionMode&&this.dragging&&this.path&&-1!==this.path.indexOf("L")&&(i.allowMultiSelection?qt(this.lassoPath+this.count)&&(qt(this.lassoPath+this.count).setAttribute("d",this.path+"Z"),this.pointChecking(qt(this.lassoPath+this.count))):(qt(this.lassoPath).setAttribute("d",this.path+"Z"),this.pointChecking(qt(this.lassoPath))),(this.dragging||this.resizing)&&this.calculateDragSelectedElements(i,this.dragRect)),this.dragging=!1,this.rectGrabbing=!1,this.resizing=!1,this.removeDraggedElements(i,e,t))},i.prototype.getDragRect=function(e,t){return ai(e.mouseDownX,e.mouseDownY,e.mouseX,e.mouseY,t)},i.prototype.dragStart=function(e,t,i,o,r){var n=e.selectionMode;this.currentMode=e.selectionMode,this.dragging=(n.indexOf("Drag")>-1||"Lasso"===n)&&(e.isDoubleTap||!e.isTouch)&&"PolarRadar"!==e.chartAreaType;var a=r.target;if(this.path=void 0,this.dragging&&(this.count=qt(this.multiRectGroup)?this.count+1:0,this.dragRect=new R.Rect(e.mouseDownX,e.mouseDownY,0,0),(e.mouseDownX<t.x||e.mouseDownX>t.x+t.width||e.mouseDownY<t.y||e.mouseDownY>t.y+t.height)&&(this.dragging=!1)),"Lasso"===n)for(var l=0,s=e.visibleSeries;l<s.length;l++){var h=s[l];if(h.visible)for(var c=0,d=h.points;c<d.length;c++){var p=d[c];e.allowMultiSelection||(p.isSelect=!1)}}if("Lasso"!==n&&(this.rectPoints&&!e.allowMultiSelection&&(this.dragRect=new R.Rect(e.mouseDownX,e.mouseDownY,0,0),this.resizingSelectionRect(e,new ji(i,o),!0),this.rectGrabbing=Pt(i,o,this.rectPoints)),e.allowMultiSelection)){var u=this.getIndex(a.id);this.targetIndex=this.isDragRect(a.id)?u:void 0,this.dragRectArray.length&&this.isDragRect(a.id)&&(this.resizingSelectionRect(e,new ji(i,o),!0,a),this.rectGrabbing=Pt(i,o,this.dragRectArray[u]))}},i.prototype.isDragRect=function(e){return e.indexOf("_ej2_drag_rect")>-1},i.prototype.mouseMove=function(e){var i=this.chart,o=e.target,r=e.type;this.highlightChart(o,r),"None"!==i.selectionMode&&("touchmove"===r&&(t.Browser.isIos||t.Browser.isIos7)&&this.dragging&&e.preventDefault&&e.preventDefault(),this.selectionAndDrag(i,o,r))},i.prototype.highlightChart=function(e,i){if("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight){if(!(0,t.isNullOrUndefined)(e)){if(e.id.indexOf("_legend_text")>1&&(e=qt(e.id.replace("text","shape"))),e.id.indexOf("marker")>1&&(e=qt(e.id.replace("_marker",""))),e.id.indexOf("g")>1&&(e=qt(e.id.replace("_g_","_shape_"))),e.hasAttribute("class")&&(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))return;this.calculateSelectedElements(e,i),this.chart.highlightModule.highlightDataIndexes&&this.chart.highlightModule.highlightDataIndexes.length>0&&-1===e.id.indexOf("_chart_legend_g_")&&-1===e.id.indexOf("chart_legend_shape")&&-1===e.id.indexOf("_Series_")?this.removeLegendHighlightStyles():this.chart.highlightModule.highlightDataIndexes&&this.chart.highlightModule.highlightDataIndexes.length>0&&-1===e.id.indexOf("_chart_legend_")&&e.id.indexOf("_Series_")>-1&&this.chart.tooltip&&this.chart.tooltip.enableHighlight&&"None"===this.chart.highlightMode&&this.removeLegendHighlightStyles(!0)}}else;},i.prototype.selectionAndDrag=function(e,t,i){Pt(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&!this.chart.enableCanvas?(this.rectGrabbing&&!this.resizing?this.draggedRectMoved(e,this.dragRect,!0):this.dragging&&!this.resizing&&("Lasso"===e.selectionMode?(this.getPath(e.mouseDownX,e.mouseDownY,e.mouseX,e.mouseY),this.drawDraggingRect(e,this.dragRect)):(this.dragRect=this.getDragRect(e,e.chartAxisLayoutPanel.seriesClipRect),this.drawDraggingRect(e,this.dragRect))),(this.rectPoints&&!e.allowMultiSelection||e.allowMultiSelection&&!this.dragging||this.resizing)&&this.resizingSelectionRect(e,new ji(e.mouseX,e.mouseY),null,t)):this.completeSelection(t,i)},i.prototype.removeLegendHighlightStyles=function(e){var t;this.chart.highlightModule.highlightDataIndexes=[];for(var i=0;i<this.chart.visibleSeries.length;i++)if(t=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i])),0===this.selectedDataIndexes.length){for(t=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));t.length>0;){if((n=t[0])&&(this.removeSvgClass(n,n.getAttribute("class")),n.id.indexOf("Group")>0&&!this.chart.visibleSeries[i].isRectSeries))for(var o=this.indexFinder(n.id),r=0;r<n.children.length;r++)"defs"!==n.children[r].nodeName&&this.highlightAnimation(n.children[r],o.series,e?0:700,.3,!e)}for(t=document.getElementsByClassName(this.unselected);t.length>0;){(n=t[0])&&(this.removeSvgClass(n,n.getAttribute("class")),""!==n.id&&this.highlightAnimation(n,1===this.chart.series.length?0:this.indexFinder(n.id).series,e?0:700,.3))}}else for(t=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));t.length>0;){var n;(n=t[0])&&(this.removeSvgClass(n,n.getAttribute("class")),this.addSvgClass(n,this.unselected))}},i.prototype.getPath=function(e,t,i,o){this.dragging&&(this.path?this.path=this.path+" L"+i+" "+o:this.path="M "+e+" "+t)},i.prototype.highlightAnimation=function(e,i,o,r,n){var a,l,s=this,h=parseFloat(this.chart.visibleSeries[i].width.toString())+1;n?l=-1!==e.id.indexOf("border")&&this.chart.visibleSeries[i].border.width?parseFloat(this.chart.visibleSeries[i].border.width.toString()):-1!==e.id.indexOf("Symbol")&&this.chart.visibleSeries[i].marker.border.width?parseFloat(this.chart.visibleSeries[i].marker.border.width.toString()):parseFloat(this.chart.visibleSeries[i].width.toString()):(a=-1!==e.id.indexOf("border")?1:-1!==e.id.indexOf("Symbol")?parseFloat(this.chart.visibleSeries[i].marker.opacity.toString()):-1!==e.id.indexOf("legend_shape")?parseFloat(this.chart.legendSettings.opacity.toString()):parseFloat(this.chart.visibleSeries[i].opacity.toString()),(0,t.isNullOrUndefined)(this.chart.selectionModule)&&"None"===this.chart.selectionMode&&""!==this.chart.highlightColor&&(r=1)),(a||n&&l&&h)&&new t.Animation({}).animate(e,{duration:o,progress:function(t){if(e.style.animation="",!s.chart.tooltip.enableHighlight||!s.chart.tooltipModule.svgTooltip){var i=t.timeStamp/t.duration;if(n){var o=h+(l-h)*i;e.setAttribute("stroke-width",o.toString())}else{var c=r+(a-r)*i;e.setAttribute("opacity",c.toString())}}},end:function(){s.chart.tooltip.enableHighlight&&s.chart.tooltipModule.svgTooltip||(n?e.setAttribute("stroke-width",l.toString()):e.setAttribute("opacity",a.toString()))}})},i.prototype.stopElementAnimation=function(e,i){var o;o=-1!==e.id.indexOf("border")?1:-1!==e.id.indexOf("Symbol")?parseFloat(this.chart.visibleSeries[i].marker.opacity.toString()):parseFloat(this.chart.visibleSeries[i].opacity.toString()),e.getAttribute("e-animate")&&t.Animation.stop(e),e.setAttribute("opacity",o.toString())},i.prototype.pointChecking=function(e){var t,i=this,o=this.chart,r=qt(o.svgId).getBoundingClientRect(),n=o.chartAxisLayoutPanel.seriesClipRect.x+Math.max(r.left,0),a=o.chartAxisLayoutPanel.seriesClipRect.y+Math.max(r.top,0);this.multiDataIndexes[this.count]=[];for(var l=0,s=o.visibleSeries;l<s.length;l++){s[l].points.filter(function(r){r.symbolLocations&&r.symbolLocations.length&&(t=document.elementFromPoint(r.symbolLocations[0].x+n,r.symbolLocations[0].y+a)),t===e?(r.isSelect=!0,i.chart.allowMultiSelection&&"Lasso"===i.currentMode&&(i.multiDataIndexes[i.count][i.seriesIndex]=r,i.seriesIndex++)):o.allowMultiSelection||(r.isSelect=!1)})}this.seriesIndex=0},i.prototype.getModuleName=function(){return"Selection"},i.prototype.destroy=function(){this.removeEventListener()},i}(kn),En=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_n=function(e){function i(t){var i=e.call(this,t)||this;return i.element=i.chart.element,i.textStyle=t.tooltip.textStyle,i.control=t,i.template=t.tooltip.template,i}return En(i,e),i.prototype.getElement=function(e){return document.getElementById(e)},i.prototype.getTooltipElement=function(e){this.inverted=this.chart.requireInvertedAxis,this.header=null===this.control.tooltip.header?this.control.tooltip.shared?"${point.x}":"${series.name}":this.control.tooltip.header,this.formattedText=[];var t=document.getElementById(this.chart.element.id+"_tooltip"),i=this.chart.element.id.indexOf("stockChart")>-1;return!e&&!t||i?this.createElement():null},i.prototype.createElement=function(){var e=document.createElement("div");return e.id=this.element.id+"_tooltip",e.className="ejSVGTooltip",e.style.pointerEvents="none",e.style.position="absolute",e.style.zIndex="1",e},i.prototype.pushData=function(e,t,i,o,r){return!!e.series.enableTooltip&&(this.currentPoints.push(e),this.stopAnimation(),i&&!document.getElementById(i.id)&&(this.chart.stockChart?document.getElementById(this.chart.stockChart.element.id+"_Secondary_Element").appendChild(i):document.getElementById(this.element.id+"_Secondary_Element").appendChild(i)),!0)},i.prototype.removeHighlight=function(){for(var e,t=0,i=this.previousPoints.length;t<i;t++)((e=this.previousPoints[t]).series.isRectSeries||this.chart.tooltip.enableHighlight)&&e.series.visible&&this.highlightPoint(e.series,e.point.index,!1)},i.prototype.animateHighlight=function(e,i,o,r){var n=this,a=parseFloat(i.getAttribute("opacity")),l=null;null!==r&&(l=parseFloat(i.getAttribute("stroke-width"))),new t.Animation({}).animate(i,{duration:o,progress:function(t){if(i.style.animation="",!n.svgTooltip){if(null!==r){var o=l+t.timeStamp/t.duration*(r-l);i.setAttribute("stroke-width",Math.max(o,r).toString())}var s=a+t.timeStamp/t.duration*(e-a);i.setAttribute("opacity",Math.min(s,e).toString())}},end:function(){n.svgTooltip||(null!==r&&i.setAttribute("stroke-width",r.toString()),i.setAttribute("opacity",e.toString()))}})},i.prototype.highlightPoint=function(e,i,o){var r=this,n="BoxAndWhisker"===e.type?this.getElement(this.element.id+"_Series_"+e.index+"_Point_"+i+"_BoxPath"):this.getElement(this.element.id+"_Series_"+e.index+"_Point_"+i),a=this.control.accumulationSelectionModule,l="accumulationchart"===this.chart.getModuleName(),s=!!(a&&a.selectedDataIndexes.length>0);if(n||!e.isRectSeries)if(!s||s&&n.getAttribute("class")&&-1===n.getAttribute("class").indexOf("_ej2_chart_selection_series_")||!e.isRectSeries)if(e.isRectSeries&&""!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor))n.setAttribute("fill",o&&"transparent"!==this.chart.highlightColor?this.chart.highlightColor:""!==e.pointColorMapping?e.points[0].color:e.points[i].color||e.interior);else if("None"!==this.control.highlightMode||!this.chart.tooltip.enableHighlight||this.chart.tooltip.shared&&!l)e.isRectSeries&&n.setAttribute("opacity",(o&&"transparent"!==this.chart.highlightColor?e.opacity/2:e.opacity).toString());else{if(o&&(l?this.control.accumulationSelectionModule&&this.control.accumulationSelectionModule.selectedDataIndexes.length>0:this.chart.selectionModule&&this.chart.selectionModule.selectedDataIndexes.length>0))return;for(var h=this.element.id+"_Series_"+e.index+"_Point_"+i,c=function(t){var n=[],a="number"==typeof t.width?t.width:parseFloat(t.width);if(n=l?[d.getElement(d.chart.element.id+"_Series_"+t.index)]:new Tn(d.chart).getSeriesElements(t),l&&d.control.series[0].dataLabel.visible){var s=d.getElement(d.element.id+"_datalabel_Series_0");s&&n.push(s)}n.forEach(function(n){null!==n&&n.childNodes.forEach(function(s){var c=s.id.indexOf("border")>-1?1:s.id.indexOf("Symbol")>-1?t.marker.opacity:t.opacity,d=s.id.indexOf("border")>-1&&t.border.width?parseFloat(t.border.width.toString()):s.id.indexOf("Symbol")>-1&&t.marker.border.width?parseFloat(t.marker.border.width.toString()):a;o&&"transparent"!==r.chart.highlightColor&&""!==s.id?(l?n.getAttribute("id").indexOf("datalabel")>-1?vt(s.id).point===i:s.id===h:n.getAttribute("id")===r.element.id+"DataLabelCollection"?vt(s.id).series===e.index:t.index===e.index)?(s.setAttribute("opacity",c.toString()),e.isRectSeries&&!(s.id.indexOf("border")>-1)||l||s.setAttribute("stroke-width",(d+1).toString())):(s.setAttribute("opacity",l?s.id.indexOf("datalabel")>-1?"0.5":"0.3":s.getAttribute("id").indexOf("Text")>-1?"0.5":"0.3"),e.isRectSeries&&!(s.id.indexOf("border")>-1)||l||s.setAttribute("stroke-width",d.toString())):r.currentPoints[0]||""===s.id||r.animateHighlight(c,s,r.chart.tooltip.duration,e.isRectSeries&&!(s.id.indexOf("border")>-1)||l?null:d)})})},d=this,p=0,u=this.chart.visibleSeries;p<u.length;p++){c(u[p])}}else n.setAttribute("opacity",e.opacity.toString())},i.prototype.highlightPoints=function(){for(var e=0,t=this.currentPoints;e<t.length;e++){var i=t[e];(i.series.isRectSeries||this.chart.tooltip.enableHighlight)&&"Series"===i.series.category&&this.highlightPoint(i.series,i.point.index,!0)}},i.prototype.createTooltip=function(e,t,i,o,r,n,a,l,s,h,c,d){void 0===s&&(s=!1),void 0===h&&(h=null),void 0===c&&(c=null);var p=this.currentPoints[0].series,u=e.tooltipModule||e.tooltip3DModule||e.accumulationTooltipModule;u&&null!==i?(t?(this.svgTooltip=new R.Tooltip({opacity:e.tooltip.opacity?e.tooltip.opacity:"Material3"===this.chart.theme||"Material3Dark"===this.chart.theme||this.chart.theme.indexOf("Bootstrap5")>-1?1:.75,header:this.headerText,content:this.text,fill:e.tooltip.fill,border:e.tooltip.border,enableAnimation:e.tooltip.enableAnimation,location:i,shared:this.control.tooltip.shared,crosshair:s,shapes:n,markerImage:c&&c.marker&&""!==c.marker.imageUrl?c.marker.imageUrl:"",clipBounds:"PolarRadar"===this.chart.chartAreaType?new ji(0,0):o,areaBounds:l,palette:this.findPalette(),template:d||this.template,data:c,theme:e.theme,offset:a,textStyle:e.tooltip.textStyle,isNegative:p.isRectSeries&&"Waterfall"!==p.type&&r&&r.y<0,inverted:this.chart.requireInvertedAxis&&p.isRectSeries,arrowPadding:this.text.length>1||this.chart.stockChart||null!==this.chart.tooltip.location.x||null!==this.chart.tooltip.location.y?0:7,availableSize:e.availableSize,duration:this.chart.tooltip.duration,isCanvas:this.chart.enableCanvas,isFixed:null!==this.chart.tooltip.location.x||null!==this.chart.tooltip.location.y,isTextWrap:e.tooltip.enableTextWrap&&"chart"===e.getModuleName(),blazorTemplate:{name:"Template",parent:this.chart.tooltip},controlInstance:this.chart,enableRTL:e.enableRtl,controlName:"Chart",allowHighlight:"chart"===e.getModuleName()&&!p.marker.allowHighlight,tooltipRender:function(){u.removeHighlight(),u.highlightPoints(),u.updatePreviousPoint(h)},animationComplete:function(e){e.tooltip.fadeOuted&&u.fadeOut(u.previousPoints)},showHeaderLine:this.chart.tooltip.showHeaderLine,showNearestTooltip:this.chart.tooltip.showNearestTooltip}),this.svgTooltip.appendTo(this.getElement(this.element.id+"_tooltip"))):this.svgTooltip&&(this.svgTooltip.location=i,this.svgTooltip.content=this.text,this.svgTooltip.header=this.headerText,this.svgTooltip.offset=a,this.svgTooltip.palette=this.findPalette(),this.svgTooltip.shapes=n,this.svgTooltip.data=c,this.svgTooltip.template=this.template,this.svgTooltip.controlName="Chart",this.svgTooltip.crosshair=s,this.svgTooltip.textStyle=e.tooltip.textStyle,this.svgTooltip.isNegative=p.isRectSeries&&"Waterfall"!==p.type&&r&&r.y<0,this.svgTooltip.clipBounds="PolarRadar"===this.chart.chartAreaType?new ji(0,0):o,this.svgTooltip.arrowPadding=this.text.length>1||this.chart.stockChart||null!==this.chart.tooltip.location.x||null!==this.chart.tooltip.location.y?0:7,this.svgTooltip.allowHighlight="chart"===e.getModuleName()&&!p.marker.allowHighlight,this.svgTooltip.dataBind()),this.chart.isReact&&this.chart.renderReactTemplates()):Je(this.chart.element.id+"_tooltip")},i.prototype.findPalette=function(){for(var e=[],t=0,i=this.currentPoints;t<i.length;t++){var o=i[t];e.push(this.findColor(o,o.series))}return e},i.prototype.findColor=function(e,t){return!t.isRectSeries||"Candle"!==t.type&&"Hilo"!==t.type&&"HiloOpenClose"!==t.type?(e.point.color&&"#ffffff"!==e.point.color?e.point.color:e.point.interior)||t.marker.fill||t.interior:e.point.color},i.prototype.updatePreviousPoint=function(e){e&&(this.currentPoints=this.currentPoints.concat(e)),this.previousPoints=(0,t.extend)([],this.currentPoints,null,!0)},i.prototype.fadeOut=function(e){var t=this.chart.enableCanvas?this.getElement(this.element.id+"_tooltip_group"):this.getElement(this.element.id+"_tooltip_svg")||this.getElement(this.element.id+"_tooltipparent_template");t&&parseInt(t.getAttribute("opacity"),10)>0||(this.valueX=null,this.valueY=null,this.currentPoints=[],this.removeHighlight(),this.removeHighlightedMarker(e,!0),this.svgTooltip=null,this.control.trigger("animationComplete",{}))},i.prototype.removeHighlightedMarker=function(e,t){if(this.chart.markerRender)for(var i=0,o=e;i<o.length;i++){var r=o[i];Je(this.element.id+"_Series_"+r.series.index+"_Point_"+r.point.index+"_Trackball"),this.chart.markerRender.removeHighlightedMarker(r.series,r.point,t)}this.previousPoints=[]},i.prototype.removeText=function(){this.textElements=[];var e=this.getElement(this.element.id+"_tooltip_group");if(e&&e.childNodes.length>0)for(;e.lastChild&&1!==e.childNodes.length;)e.removeChild(e.lastChild)},i.prototype.stopAnimation=function(){hi(this.toolTipInterval)},i.prototype.removeTooltip=function(e){var t=this,i=this.getElement(this.element.id+"_tooltip");this.stopAnimation(),i&&this.previousPoints.length>0&&(this.toolTipInterval=+setTimeout(function(){t.svgTooltip&&t.svgTooltip.fadeOut()},e))},i}(so),In=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),On=function(e){function i(t){var i=e.call(this,t)||this;return i.commonXvalues=[],i.addEventListener(),i}return In(i,e),i.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(e,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this)}},i.prototype.mouseUpHandler=function(){var e=this.control,t=this.getData();t.lierIndex=this.lierIndex,e.isTouch&&!this.isSelected(e)&&(Pt(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&e.tooltip.shared||!e.tooltip.shared)?e.crosshair.enable?e.startMove&&"Move"===e.tooltip.fadeOutMode&&this.removeTooltip(2e3):(this.tooltip(),"Move"===e.tooltip.fadeOutMode&&this.removeTooltip(e.tooltip.fadeOutDuration)):this.findData(t,this.previousPoints[0])||"Click"!==e.tooltip.fadeOutMode||this.removeTooltip(0)},i.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.chart.tooltip.fadeOutDuration)},i.prototype.mouseMoveHandler=function(){var e=this.chart;e.stockChart&&e.stockChart.onPanning&&(e.mouseY<e.chartAxisLayoutPanel.seriesClipRect.y?e.mouseY=e.chartAxisLayoutPanel.seriesClipRect.y:e.mouseY>e.chartAxisLayoutPanel.seriesClipRect.y+e.chartAxisLayoutPanel.seriesClipRect.height&&(e.mouseY=e.chartAxisLayoutPanel.seriesClipRect.y+e.chartAxisLayoutPanel.seriesClipRect.height)),e.disableTrackTooltip||this.isSelected(e)||(e.tooltip.shared||e.isTouch&&!e.startMove||this.tooltip(),Pt(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)?!e.tooltip.shared||e.isTouch&&!e.startMove||this.tooltip():e.tooltip.shared&&"Move"===e.tooltip.fadeOutMode&&this.removeTooltip(this.chart.tooltip.fadeOutDuration))},i.prototype.longPress=function(){var e=this.chart;return e.crosshair.enable&&Pt(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect)&&(this.tooltip(),e.markerRender.markerMove(!1)),!1},i.prototype.tooltip=function(){var e=this.chart.enableCanvas?this.element.id+"_tooltip_group":this.element.id+"_tooltip_svg",t=this.getElement(e),i=this.chart.stockChart&&t&&t.firstChild.childNodes.length>1,o=t&&parseInt(t.getAttribute("opacity"),10)>0&&!i,r=this.getTooltipElement(o),n=document.getElementById(this.chart.element.id+"_tooltip_svg");this.chart.enableCanvas&&r&&n&&(document.getElementById(this.chart.element.id+"_Secondary_Element").appendChild(r),r.appendChild(n)),this.chart.tooltip.shared?this.renderGroupedTooltip(this.chart,!o,r):this.renderSeriesTooltip(this.chart,!o,r)},i.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header,e.series.xAxis,e.series.yAxis),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},i.prototype.findShapes=function(){if(!this.chart.tooltip.enableMarker)return[];for(var e=[],t=0,i=this.currentPoints;t<i.length;t++){var o=i[t];e.push(o.point.marker.shape||o.series.marker.shape||"Circle")}return e},i.prototype.renderSeriesTooltip=function(e,t,i){var o=this.getData(),r=null,n=1/0;if(o.lierIndex=this.lierIndex,this.currentPoints=[],this.findData(o,this.previousPoints[0])){if((!e.dataEditingModule||!e.dataEditingModule.isPointDragging)&&this.previousPoints[0]&&o.point.index===this.previousPoints[0].point.index&&o.series.index===this.previousPoints[0].series.index)return null;this.pushData(o,t,i,!0)&&this.triggerTooltipRender(o,t,this.getTooltipText(o),this.findHeader(o))}else{var a=Pt(e.mouseX,e.mouseY,e.chartAxisLayoutPanel.seriesClipRect);if(o.point||!this.isRemove||"Move"!==e.tooltip.fadeOutMode||e.tooltip.showNearestTooltip&&a){for(var l=this.mergeXvalues(this.chart.visibleSeries),s=e.visibleSeries.length-1;s>=0;s--){var h=e.visibleSeries[s];if(h.visible&&"TrendLine"!==h.category&&(o=this.getClosestX(e,h,l)||o,e.tooltip.showNearestTooltip&&a&&h.showNearestTooltip&&o&&o.point&&h.enableTooltip&&o.point.symbolLocations[0])){var c=Math.sqrt(Math.pow(e.mouseX-o.series.clipRect.x-o.point.symbolLocations[0].x,2)+Math.pow(e.mouseY-o.series.clipRect.y-o.point.symbolLocations[0].y,2));c<n&&(n=c,r=o)}}e.tooltip.showNearestTooltip&&r&&this.pushData(r,t,i,!0)&&(o=r,this.triggerTooltipRender(o,t,this.getTooltipText(o),this.findHeader(o)))}else this.removeTooltip(this.chart.tooltip.fadeOutDuration),this.isRemove=!1}o&&o.point&&this.findMouseValues(o,e,this)},i.prototype.triggerTooltipRender=function(e,i,o,r){var n=this,a={cancel:!1,name:Y,text:o,headerText:r,template:undefined,series:e.series,textStyle:this.textStyle,point:e.point,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,seriesName:e.series.name,pointIndex:e.point.index,pointText:e.point.text}},l=this.chart.border.width,s=this.chart.tooltip,h=function(o){if(o.cancel)n.removeHighlight(),(0,t.remove)(n.getElement(n.element.id+"_tooltip"));else{"BoxAndWhisker"===e.series.type&&(n.removeText(),i=!0),n.headerText=o.headerText,n.formattedText=n.formattedText.concat(o.text),n.text=n.formattedText;var r=n.getSymbolLocation(e);(r=r||new ji(null,null)).x=null!==s.location.x?s.location.x:r.x,r.y=null!==s.location.y?s.location.y:r.y,r=null===r.x&&null===r.y?null:r,n.createTooltip(n.chart,i,r,e.series.clipRect,e.point,n.findShapes(),n.findMarkerHeight(n.currentPoints[0]),new R.Rect(l,l,n.chart.availableSize.width-3-2*l,n.chart.availableSize.height-3-2*l),n.chart.crosshair.enable,null,n.getTemplateText(e),n.template?o.template:"")}n.isRemove=!0};h.bind(this,e),this.chart.trigger(Y,a,h)},i.prototype.findMarkerHeight=function(e){var t=e.series;return(t.marker.visible||this.chart.tooltip.shared&&(!t.isRectSeries||t.marker.visible)||"Scatter"===t.type||"Scatter"===t.drawType)&&"Candle"!==t.type&&"Hilo"!==t.type&&"HiloOpenClose"!==t.type?(t.marker.height+2)/2+2*t.marker.border.width:0},i.prototype.findData=function(e,t){return e.point&&(!t||t.point!==e.point||t&&t.lierIndex>3&&t.lierIndex!==this.lierIndex||t.point===e.point)},i.prototype.getSymbolLocation=function(e){var t;if("BoxAndWhisker"!==e.series.type){if(!e.point.symbolLocations[0])return null;t=new ji(e.point.symbolLocations[0].x,e.point.symbolLocations[0].y)}switch(e.series.type){case"BoxAndWhisker":return this.getBoxLocation(e);case"Waterfall":return this.getWaterfallRegion(e,t);case"RangeArea":case"RangeStepArea":case"SplineRangeArea":case"RangeColumn":return this.getRangeArea(e,t);default:return t}},i.prototype.getRangeArea=function(e,t){return e.point.regions[0]&&(this.inverted?t.x=e.point.regions[0].x+e.point.regions[0].width/2:t.y=e.point.regions[0].y+e.point.regions[0].height/2,"RangeStepArea"===e.series.type&&(t.y=e.point.regions[0].y+e.point.regions[0].height/2+e.point.regions[0].width)),t},i.prototype.getWaterfallRegion=function(e,t){return this.inverted?t.x=e.point.y<0?t.x+(this.chart.enableRtl?-e.point.regions[0].width:e.point.regions[0].width):t.x:t.y=e.point.y<0?t.y-e.point.regions[0].height:t.y,t},i.prototype.getTooltipText=function(e){var t=e.series;return this.parseTemplate(e.point,t,this.getFormat(this.chart,t),t.xAxis,t.yAxis)},i.prototype.getTemplateText=function(e){if(this.template=this.chart.enableHtmlSanitizer?this.chart.sanitize(this.template):this.template,this.template&&this.chart.tooltip.shared){for(var i=[],o=0;o<e.length;o++)i[o]=(0,t.extend)({},e[o].point),i[o].x=this.formatPointValue(e[o].point,e[o].series.xAxis,"x",!0,!1),"XY"===e[o].series.seriesType?i[o].y=this.formatPointValue(e[o].point,e[o].series.yAxis,"y",!1,!0):(i[o].low=this.formatPointValue(e[o].point,e[o].series.yAxis,"low",!1,!0),i[o].high=this.formatPointValue(e[o].point,e[o].series.yAxis,"high",!1,!0));return i}return this.template?((i=(0,t.extend)({},e.point)).x=this.formatPointValue(e.point,e.series.xAxis,"x",!0,!1),"XY"===e.series.seriesType?i.y=this.formatPointValue(e.point,e.series.yAxis,"y",!1,!0):(i.low=this.formatPointValue(e.point,e.series.yAxis,"low",!1,!0),i.high=this.formatPointValue(e.point,e.series.yAxis,"high",!1,!0)),i):e.point},i.prototype.renderGroupedTooltip=function(e,t,i){var o,r,n=[],a="PolarRadar"===e.chartAreaType?this.getData():null;this.stopAnimation(),this.removeHighlight(),this.currentPoints=[];var l,s,h,c=Number.MAX_VALUE,d=Number.MAX_VALUE;t&&(e.stockChart?i&&!(0,R.getElement)(i.id)&&document.getElementById(e.stockChart.element.id+"_Secondary_Element").appendChild(i):i&&document.getElementById(this.element.id+"_Secondary_Element").appendChild(i)),this.removeText();for(var p={text:[],cancel:!1,name:H,data:[],point:[],series:[],headerText:"",textStyle:this.textStyle,template:[]},u=0,g=0,m=e.visibleSeries;g<m.length;g++){var y=m[g];y.enableTooltip&&y.visible&&("Cartesian"===e.chartAreaType&&y.visible?o=this.getClosestX(e,y,this.commonXValue(this.chart.visibleSeries)):"PolarRadar"===e.chartAreaType&&y.visible&&null!==a.point&&(o=new Yi(y.points[a.point.index],y)),e.tooltip.showNearestPoint&&!o&&(o=this.getClosestX(e,y,this.commonXValue([y]))),o&&(p.data.push({pointX:o.point.x,pointY:o.point.y,seriesIndex:o.series.index,seriesName:o.series.name,pointIndex:o.point.index,pointText:o.point.text}),p.series[u]=o.series,p.point[u]=o.point,p.headerText=this.findHeader(o),this.currentPoints.push(o),null!=this.template&&p.template.push(e.enableHtmlSanitizer?e.sanitize(this.template.toString()):this.template.toString()),p.text.push(this.getTooltipText(o)),l=e.requireInvertedAxis?e.mouseY-o.series.clipRect.y:e.mouseX-o.series.clipRect.x,s=e.mouseY-o.series.clipRect.y,o.point.symbolLocations&&o.point.symbolLocations.length&&Math.abs(l-o.point.symbolLocations[0].x)<=c&&Math.abs(o.point.symbolLocations[0].y-s)<Math.abs(d-s)&&(c=Math.abs(l-o.point.symbolLocations[0].x),d=o.point.symbolLocations[0].y,h=o),r=h||o,n.push(o)),u++)}if(!e.tooltip.showNearestPoint){var f=[];this.currentPoints=[],p.point=[],p.series=[],p.data=[],p.text=[];for(var v=0,b=n;v<b.length;v++){var x=b[v];x.point.symbolLocations[0].x!==r.point.symbolLocations[0].x&&(-1===x.series.type.indexOf("Column")&&-1===r.series.type.indexOf("Column")||x.point.xValue!==r.point.xValue)||(p.point.push(x.point),p.series.push(x.series),p.text.push(this.getTooltipText(x)),p.headerText=this.findHeader(x),f.push(x),p.data.push({pointX:x.point.x,pointY:x.point.y,seriesIndex:x.series.index,seriesName:x.series.name,pointIndex:x.point.index,pointText:x.point.text}))}n=f,this.currentPoints=f}n.length>0&&this.currentPoints.length>0?this.triggerSharedTooltip(p,r,[],e,t,n):this.getElement(this.element.id+"_tooltip_path")&&this.getElement(this.element.id+"_tooltip_path").setAttribute("d","")},i.prototype.triggerSharedTooltip=function(e,t,i,o,r,n){var a,l,s=this,h=e.template,c={cancel:!1,name:H,text:e.text,headerText:e.headerText,textStyle:e.textStyle,template:h,point:e.point,series:e.series,data:e.data},d=this.chart.border.width,p=[];o.stockChart&&(a=o.stockChart.enablePeriodSelector?o.stockChart.toolbarHeight:0,l=(0,R.measureText)(this.chart.stockChart.title,this.chart.stockChart.titleStyle,this.chart.themeStyle.tooltipLabelFont).height+10);var u=function(e){if(e.cancel)Je(s.element.id+"_tooltip"),i.push(t);else{"BoxAndWhisker"===t.series.type&&(s.removeText(),r=!0);for(var h=0;h<e.text.length;h++)e.text[h]&&p.push(s.currentPoints[h]);s.currentPoints=p,s.formattedText=s.formattedText.concat(e.text),s.text=e.text,s.headerText=e.headerText,"object"!=typeof e.template?(e.template=e.template.split(","),e.template.length>p.length&&(e.template=e.template.splice(e.template.length-1))):e.template.length>p.length&&e.template.splice(e.template.length-1);var c=s.chart.tooltip;s.findMouseValues(t,s.chart,s);var u=s.findSharedLocation();(u=u||new ji(null,null)).x=null!==c.location.x?c.location.x:u.x,u.y=null!==c.location.y?c.location.y:u.y,u=null===u.x&&null===u.y?null:u,-1===t.series.type.indexOf("Range")||Pt(u.x,u.y,o.chartAxisLayoutPanel.seriesClipRect)?s.createTooltip(o,r,u,1===s.currentPoints.length?s.currentPoints[0].series.clipRect:null,1===n.length?n[0].point:null,s.findShapes(),s.findMarkerHeight(s.currentPoints[0]),new R.Rect(d,o.stockChart?a+l+d:d,s.chart.availableSize.width-3-2*d,s.chart.availableSize.height-3-2*d),s.chart.crosshair.enable,i,s.template?s.getTemplateText(n):null,s.template?e.template.join(""):""):(Je(s.element.id+"_tooltip"),i.push(t)),t=null}};u.bind(this,t,i),this.chart.trigger(H,c,u)},i.prototype.findSharedLocation=function(){var e=this.chart.stockChart;if(e){1===this.text.length&&this.text.push("");var t=e.enablePeriodSelector?e.toolbarHeight:0,i=document.getElementById(e.element.id+"_ChartTitle"),o=""!==e.title?i.getBoundingClientRect().height+10:0;return"Nearest"===e.tooltip.position?new ji(this.valueX,this.valueY+t+o):new ji(this.chart.chartAxisLayoutPanel.seriesClipRect.x+5,this.chart.chartAxisLayoutPanel.seriesClipRect.y+t+5+o)}return this.currentPoints.length>1?new ji(this.valueX,this.valueY):this.getSymbolLocation(this.currentPoints[0])},i.prototype.getBoxLocation=function(e){return this.lierIndex>3?e.point.outliers.length>0?e.point.symbolLocations[this.lierIndex-4]:null:{x:e.point.regions[0].x+e.point.regions[0].width/2,y:e.point.regions[0].y+e.point.regions[0].height/2}},i.prototype.parseTemplate=function(e,t,i,o,r){for(var n,a,l=RegExp,s=0,h=Object.keys(e);s<h.length;s++){n=new l("${point."+(p=h[s])+"}","gm"),i=i.replace(n.source,this.formatPointValue(e,"${point.x}"===n.source?o:r,p,"${point.x}"===n.source&&"TrendLine"!==t.category,"${point.high}"===n.source||"${point.open}"===n.source||"${point.close}"===n.source||"${point.low}"===n.source||"${point.y}"===n.source||"${point.minimum}"===n.source||"${point.maximum}"===n.source||"${point.outliers}"===n.source||"${point.upperQuartile}"===n.source||"${point.lowerQuartile}"===n.source||"${point.median}"===n.source))}for(var c=0,d=Object.keys(Object.getPrototypeOf(t));c<d.length;c++){var p;n=new l("${series."+(p=d[c])+"}","gm"),a=t[p],i=i.replace(n.source,a)}return i},i.prototype.formatPointValue=function(e,i,o,r,n){var a,l,s;if("Category"!==i.valueType&&r){l=i.labelFormat&&null!==i.labelFormat.match("{value}");var h="Double"===i.valueType?+e[o]:e[o];a=l?i.labelFormat.replace("{value}",i.format(h)):i.format(h)}else if(n&&!(0,t.isNullOrUndefined)(e[o]))l=i.labelFormat&&null!==i.labelFormat.match("{value}"),s="outliers"===o?i.format(e[o][this.lierIndex-4]):"DateTime"===i.valueType?i.format(new Date(+e[o])):i.format(+e[o]),a=l?i.labelFormat.replace("{value}",s):s;else if("size"===o){var c=this.chart.intl.getNumberFormat({format:"",useGrouping:this.chart.useGroupingSeparator});a=(a="number"==typeof e[o]?c(e[o]):e[o])||""}else a=e[o];return a},i.prototype.getFormat=function(e,t){if(t.tooltipFormat)return"XY"===t.seriesType&&"Indicator"===t.category?this.getIndicatorTooltipFormat(t,e,e.tooltip.format):t.tooltipFormat;if(!t.tooltipFormat&&e.tooltip.format)return"XY"===t.seriesType&&"Indicator"===t.category?this.getIndicatorTooltipFormat(t,e,e.tooltip.format):e.tooltip.format;var i="Histogram"===t.type?"${point.minimum}-${point.maximum}":"${point.x}",o=e.tooltip.shared?"${series.name}":i;switch(t.seriesType){case"XY":return"Indicator"===t.category&&this.getIndicatorTooltipFormat(t,e,e.tooltip.format),o+" : "+("Bubble"===t.type?e.theme.indexOf("Tailwind3")>-1?"${point.y}  Size : ${point.size}":"<b>${point.y}</b>  Size : <b>${point.size}</b>":e.theme.indexOf("Tailwind3")>-1?"${point.y}":"<b>${point.y}</b>");case"HighLow":return o+"<br/>High : <b>${point.high}</b><br/>Low : <b>${point.low}</b>";case"HighLowOpenClose":return o+"<br/>High : <b>${point.high}</b><br/>Low : <b>${point.low}</b><br/>Open : <b>${point.open}</b><br/>Close : <b>${point.close}</b>";case"BoxPlot":return o+"<br/>"+(this.lierIndex>3?"Outliers : <b>${point.outliers}</b>":"Maximum : <b>${point.maximum}</b><br/>Q3 : <b>${point.upperQuartile}</b><br/>Median : <b>${point.median}</b><br/>Q1 : <b>${point.lowerQuartile}</b><br/>Minimum : <b>${point.minimum}</b>")}},i.prototype.getIndicatorTooltipFormat=function(e,t,i){return"XY"===e.seriesType?e.name+" : <b>${point.y}</b>":i},i.prototype.removeHighlightedMarker=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];Je(this.element.id+"_Series_"+r.series.index+"_Point_"+r.point.index+"_Trackball"),this.chart.markerRender&&this.chart.markerRender.removeHighlightedMarker(r.series,r.point,t)}this.previousPoints=[]},i.prototype.getModuleName=function(){return"Tooltip"},i.prototype.destroy=function(){},i}(_n),zn=function(){function e(e){this.iconRectOverFill="transparent",this.iconRectSelectionFill="transparent",this.zoomCompleteEvtCollection=[],this.isZoomed=!1,this.chart=e,this.elementId=e.element.id,this.chart.svgRenderer=new R.SvgRenderer(this.elementId)}return e.prototype.createPanButton=function(e,t){var i=this.chart.svgRenderer,o=this.chart.zoomModule.isPanning?this.chart.themeStyle.toolkitSelectionColor:this.chart.themeStyle.toolkitFill;this.elementOpacity=!this.chart.zoomModule.isZoomed&&this.chart.zoomSettings.showToolbar?"0.2":"1",e.setAttribute("opacity","Fluent2HighContrast"===this.chart.theme?"1":this.elementOpacity),e.id=this.elementId+"_Zooming_Pan",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("Pan")),this.panElements=e,e.appendChild(i.drawRectangle(new Ni(this.elementId+"_Zooming_Pan_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(i.drawPath(new R.PathOption(this.elementId+"_Zooming_Pan_2","Fluent2HighContrast"===this.chart.theme&&"0.2"===this.elementOpacity?"#3FF23F":o,null,null,1,null,"M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,11z M11,13H8.7l0.025-2.875h-1.4L7.35,13H5l3,3L11,13z M13,5v2.3l-2.875-0.025v1.4L13,8.65V11l3-3L13,5z"))),t.appendChild(e),this.wireEvents(e,this.pan)},e.prototype.createZoomButton=function(e,t){var i=this.chart.svgRenderer,o=this.chart.zoomModule.isPanning||!this.chart.zoomModule.isZoomed&&this.chart.zoomSettings.showToolbar?this.chart.themeStyle.toolkitFill:this.chart.themeStyle.toolkitSelectionColor;this.elementOpacity=this.chart.zoomModule.isPanning||this.chart.zoomModule.isZoomed||!this.chart.zoomSettings.showToolbar?"1":"0.2";var r=this.chart.zoomModule.isPanning?"transparent":this.chart.themeStyle.toolkitIconRectSelectionFill,n="M0.001,14.629L1.372,16l4.571-4.571v-0.685l0.228-0.274c1.051,0.868,2.423,1.417,3.885,1.417c3.291,0,";n+="5.943-2.651,5.943-5.943S13.395,0,10.103,0S4.16,2.651,4.16,5.943c0,1.508,0.503,2.834,1.417,3.885l-0.274,0.228H4.571",n+="L0.001,14.629L0.001,14.629z M5.943,5.943c0-2.285,1.828-4.114,4.114-4.114s4.114,1.828,4.114,",e.id=this.elementId+"_Zooming_Zoom",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("Zoom")),e.setAttribute("opacity",this.elementOpacity),this.zoomElements=e,this.selectedID=this.chart.zoomModule.isPanning?this.chart.element.id+"_Zooming_Pan_1":this.elementId+"_Zooming_Zoom_1",e.appendChild(i.drawRectangle(new Ni(this.elementId+"_Zooming_Zoom_1",r,{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(i.drawPath(new R.PathOption(this.elementId+"_Zooming_Zoom_3",o,null,null,1,null,n+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"))),t.appendChild(e),this.wireEvents(e,this.zoom)},e.prototype.createZoomInButton=function(e,t,i){var o=this.chart.svgRenderer,r=this.chart.themeStyle.toolkitFill;e.id=this.elementId+"_Zooming_ZoomIn",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("ZoomIn"));e.appendChild(o.drawRectangle(new Ni(this.elementId+"_Zooming_ZoomIn_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1?4:this.chart.theme.indexOf("Bootstrap5")>-1?2:0,this.chart.theme.indexOf("Fluent2")>-1?4:this.chart.theme.indexOf("Bootstrap5")>-1?2:0))),e.appendChild(o.drawPath(new R.PathOption(this.elementId+"_Zooming_ZoomIn_2",r,null,null,1,null,"M10.103,0C6.812,0,4.16,2.651,4.16,5.943c0,1.509,0.503,2.834,1.417,3.885l-0.274,0.229H4.571L0,14.628l0,0L1.372,16l4.571-4.572v-0.685l0.228-0.275c1.052,0.868,2.423,1.417,3.885,1.417c3.291,0,5.943-2.651,5.943-5.943C16,2.651,13.395,0,10.103,0z M10.058,10.058c-2.286,0-4.114-1.828-4.114-4.114c0-2.286,1.828-4.114,4.114-4.114c2.286,0,4.114,1.828,4.114,4.114C14.172,8.229,12.344,10.058,10.058,10.058z"))),e.appendChild(o.drawPolygon(new Wi(this.elementId+"_Zooming_ZoomIn_3","12.749,5.466 10.749,5.466 10.749,3.466 9.749,3.466 9.749,5.466 7.749,5.466 7.749,6.466 9.749,6.466 9.749,8.466 10.749,8.466 10.749,6.466 12.749,6.466",r))),this.zoomInElements=e,this.elementOpacity=i.zoomModule.isPanning||!i.zoomModule.isZoomed&&!i.zoomSettings.showToolbar&&!this.enableZoomButton?"0.2":"1",e.setAttribute("opacity",this.elementOpacity),t.appendChild(e),this.wireEvents(e,this.zoomIn)},e.prototype.createZoomOutButton=function(e,t,i){var o=this.chart.svgRenderer,r=this.chart.themeStyle.toolkitFill;e.id=this.elementId+"_Zooming_ZoomOut",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("ZoomOut")),e.appendChild(o.drawRectangle(new Ni(this.elementId+"_Zooming_ZoomOut_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(o.drawPath(new R.PathOption(this.elementId+"_Zooming_ZoomOut_2","Fluent2HighContrast"===i.theme&&!i.zoomModule.isZoomed||"Fluent2HighContrast"===i.theme&&i.zoomModule.isPanning?"#3FF23F":r,null,null,1,null,"M0,14.622L1.378,16l4.533-4.533v-0.711l0.266-0.266c1.022,0.889,2.4,1.422,3.866,1.422c3.289,0,5.955-2.666,5.955-5.955S13.333,0,10.044,0S4.089,2.667,4.134,5.911c0,1.466,0.533,2.844,1.422,3.866l-0.266,0.266H4.578L0,14.622L0,14.622z M5.911,5.911c0-2.311,1.822-4.133,4.133-4.133s4.133,1.822,4.133,4.133s-1.866,4.133-4.133,4.133S5.911,8.222,5.911,5.911z M12.567,6.466h-5v-1h5V6.466z"))),this.zoomOutElements=e,this.elementOpacity=i.zoomModule.isPanning||!i.zoomModule.isZoomed&&i.zoomSettings.showToolbar&&!this.enableZoomButton?"0.2":"1",e.setAttribute("opacity","Fluent2HighContrast"===i.theme?"1":this.elementOpacity),t.appendChild(e),this.wireEvents(e,this.zoomOut)},e.prototype.createResetButton=function(e,t,i,o){var r,n=this.chart.svgRenderer,a=this.chart.themeStyle.toolkitFill;e.id=this.elementId+"_Zooming_Reset",e.setAttribute("role",this.chart.zoomSettings.accessibility.accessibilityRole?this.chart.zoomSettings.accessibility.accessibilityRole:"button"),e.setAttribute("tabindex",this.chart.zoomSettings.accessibility.focusable?String(this.chart.zoomSettings.accessibility.tabIndex):"-1"),e.setAttribute("aria-label",this.chart.zoomSettings.accessibility.accessibilityDescription?this.chart.zoomSettings.accessibility.accessibilityDescription:this.chart.getLocalizedLabel("Reset")),this.elementOpacity=!i.zoomModule.isZoomed&&i.zoomSettings.showToolbar?"0.2":"1",e.setAttribute("opacity","Fluent2HighContrast"===i.theme?"1":this.elementOpacity),o?(r=(0,R.measureText)(this.chart.getLocalizedLabel("ResetZoom"),{size:"12px"},{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}),e.appendChild(n.drawRectangle(new Ni(this.elementId+"_Zooming_Reset_1","transparent",{},1,new R.Rect(0,0,r.width,r.height)))),Di(i.renderer,new R.TextOption(this.elementId+"_Zooming_Reset_2",0+r.width/2,0+3*r.height/4,"middle",this.chart.getLocalizedLabel("ResetZoom"),"rotate(0,0,0)","auto"),{size:"12px"},"Material3Dark"===this.chart.theme||"Fluent2Dark"===this.chart.theme||"Fluent2HighContrast"===this.chart.theme?"White":"black",e,null,null,null,null,null,null,0,null,i.enableCanvas,null,{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"})):(e.appendChild(n.drawRectangle(new Ni(this.elementId+"_Zooming_Reset_1","transparent",{},1,this.chart.themeStyle.toolkitIconRect,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0,this.chart.theme.indexOf("Fluent2")>-1||this.chart.theme.indexOf("Bootstrap5")>-1?4:0))),e.appendChild(n.drawPath(new R.PathOption(this.elementId+"_Zooming_Reset_2","Fluent2HighContrast"===i.theme&&"0.2"===this.elementOpacity?"#3FF23F":a,null,null,1,null,"M12.364,8h-2.182l2.909,3.25L16,8h-2.182c0-3.575-2.618-6.5-5.818-6.5c-1.128,0-2.218,0.366-3.091,1.016l1.055,1.178C6.581,3.328,7.272,3.125,8,3.125C10.4,3.125,12.363,5.319,12.364,8L12.364,8z M11.091,13.484l-1.055-1.178C9.419,12.672,8.728,12.875,8,12.875c-2.4,0-4.364-2.194-4.364-4.875h2.182L2.909,4.75L0,8h2.182c0,3.575,2.618,6.5,5.818,6.5C9.128,14.5,10.219,14.134,11.091,13.484L11.091,13.484z")))),t.appendChild(e),this.wireEvents(e,this.reset)},e.prototype.wireEvents=function(e,i){t.EventHandler.add(e,"mousedown touchstart",i,this),t.EventHandler.add(e,"mouseover",this.showTooltip,this),t.EventHandler.add(e,"mouseout",this.removeTooltip,this),t.EventHandler.add(this.chart.element,"mousemove",this.mouseMoveHandler,this),t.EventHandler.add(this.chart.zoomModule.toolkitElements,"mousedown",this.mouseDownHandler,this),window.addEventListener("mouseup",this.mouseUpHandler.bind(this),!0)},e.prototype.mouseMoveHandler=function(e){this.chart.zoomSettings.toolbarPosition.draggable&&(this.isDragging?this.performDragAndDrop(e):this.chart.zoomModule.toolkitElements.setAttribute("cursor",e.target.id.indexOf("Zooming_Rect")>-1?"grab":"none"))},e.prototype.mouseDownHandler=function(e){this.chart.zoomSettings.toolbarPosition.draggable&&!this.isDragging&&e.target.id.indexOf("Zooming_Rect")>-1&&(this.isDragging=!0,this.chart.zoomModule.toolkitElements.setAttribute("cursor","grabbing"))},e.prototype.mouseUpHandler=function(e){this.isDragging&&(this.isDragging=!1,this.chart.zoomModule.toolkitElements.setAttribute("cursor",e.target.id.indexOf("Zooming_Rect")>-1?"grab":"none"))},e.prototype.performDragAndDrop=function(e){var t=this.chart.zoomModule.toolkitElements.getBoundingClientRect().width,i=this.chart.zoomModule.toolkitElements.getBoundingClientRect().height,o=e.type.indexOf("touch")>-1?e.changedTouches[0].clientX:this.chart.mouseX,r=e.type.indexOf("touch")>-1?e.changedTouches[0].clientY:this.chart.mouseY,n=Math.max(this.chart.border.width+2,Math.min(o-t/2,this.chart.availableSize.width-t-this.chart.border.width-2)),a=Math.max(this.chart.border.width+2,Math.min(r-i/2,this.chart.availableSize.height-i-this.chart.border.width-2));o<this.chart.availableSize.width&&r<this.chart.availableSize.height&&(this.chart.zoomModule.toolkitElements.setAttribute("transform","translate("+n+","+a+")"),this.dragHorizontalRatio=n/this.chart.availableSize.width,this.dragVerticalRatio=a/this.chart.availableSize.height)},e.prototype.showTooltip=function(e){var t=e.currentTarget.id.split("_Zooming_")[1],i=e.layerX-((0,R.measureText)(t,{size:"10px"},{size:"10px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).width+5),o=qt(e.currentTarget.id+"_1"),r=qt(e.currentTarget.id+"_2"),n=qt(e.currentTarget.id+"_3");"1"===e.currentTarget.getAttribute("opacity")?e.currentTarget.setAttribute("cursor","pointer"):e.currentTarget.setAttribute("cursor","auto"),o&&(this.hoveredID=o.id,o.setAttribute("fill","Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===e.currentTarget.childNodes[1].getAttribute("fill")?"transparent":this.chart.themeStyle.toolkitIconRectOverFill)),r&&r.setAttribute("fill","Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===e.currentTarget.childNodes[1].getAttribute("fill")?"#3FF23F":this.chart.themeStyle.toolkitSelectionColor),n&&n.setAttribute("fill","Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===e.currentTarget.childNodes[1].getAttribute("fill")?"#3FF23F":this.chart.themeStyle.toolkitSelectionColor),this.chart.isTouch||this.isDragging||Ft("EJ2_Chart_ZoomTip",this.chart.getLocalizedLabel(t),e.layerY+10,i,"10px",this.chart.element.id)},e.prototype.removeTooltip=function(){if(this.hoveredID&&qt(this.hoveredID)){var e=this.chart.zoomModule.isPanning?this.hoveredID.indexOf("_Pan_")>-1?this.chart.themeStyle.toolkitIconRectSelectionFill:"transparent":this.hoveredID.indexOf("_Zoom_")>-1&&"0.2"!==this.elementOpacity&&"Fluent2HighContrast"!==this.chart.theme?this.chart.themeStyle.toolkitIconRectSelectionFill:"transparent";qt(this.hoveredID).setAttribute("fill",e)}var t=this.hoveredID?qt(this.hoveredID.replace("_1","_2")):null,i=this.hoveredID?qt(this.hoveredID.replace("_1","_3")):null;if(t){var o=this.chart.zoomModule.isPanning?this.hoveredID.indexOf("_Pan_")>-1?this.chart.themeStyle.toolkitSelectionColor:"0.2"===this.elementOpacity&&"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===qt(this.hoveredID).nextElementSibling.getAttribute("fill")?"#3FF23F":"1"===this.elementOpacity&&"Tailwind3"===this.chart.theme?"#212529":this.chart.themeStyle.toolkitFill:this.hoveredID.indexOf("_Zoom_")>-1?this.chart.themeStyle.toolkitSelectionColor:"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===qt(this.hoveredID).nextElementSibling.getAttribute("fill")?"#3FF23F":"Tailwind3Dark"===this.chart.theme&&this.chart.zoomModule.isDevice?"black":this.chart.themeStyle.toolkitFill;t.setAttribute("fill",o)}if(i){o=this.chart.zoomModule.isPanning||!this.chart.isZoomed&&this.chart.zoomSettings.showToolbar?"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===qt(this.hoveredID).nextElementSibling.getAttribute("fill")&&"1"===this.elementOpacity?"#3FF23F":"1"===this.elementOpacity&&"Tailwind3"===this.chart.theme?"#212529":this.chart.themeStyle.toolkitFill:this.hoveredID.indexOf("_Zoom_")>-1?this.chart.themeStyle.toolkitSelectionColor:"Fluent2HighContrast"===this.chart.theme&&"#3FF23F"===qt(this.hoveredID).nextElementSibling.getAttribute("fill")?"#3FF23F":this.chart.themeStyle.toolkitFill;i.setAttribute("fill",o)}Je("EJ2_Chart_ZoomTip")},e.prototype.reset=function(e){if(!this.chart.zoomModule.isZoomed)return!1;var i,o=this.chart;this.enableZoomButton=!1,o.redraw=o.enableCanvas?o.redraw:o.zoomSettings.enableAnimation,!o.zoomModule.isDevice&&o.zoomModule.toolkitElements?(0,t.remove)(o.zoomModule.toolkitElements):"touchstart"===e.type&&e.stopPropagation(),this.removeTooltip(),o.svgObject.setAttribute("cursor","auto");var r=[];this.zoomCompleteEvtCollection=[];for(var n=0,a=o.axisCollections;n<a.length;n++){var l=a[n];i={cancel:!1,name:oe,axis:l,previousZoomFactor:l.zoomFactor,previousZoomPosition:l.zoomPosition,currentZoomFactor:1,currentZoomPosition:0,previousVisibleRange:l.visibleRange,currentVisibleRange:null},l.zoomFactor=1,l.zoomPosition=0,l.zoomingScrollBar&&(l.zoomingScrollBar.isScrollUI=!1),i.cancel||(l.zoomFactor=i.currentZoomFactor,l.zoomPosition=i.currentZoomPosition,this.zoomCompleteEvtCollection.push(i)),r.push({zoomFactor:l.zoomFactor,zoomPosition:l.zoomFactor,axisName:l.name,axisRange:l.visibleRange}),o.zoomModule.isDevice&&o.trigger(oe,i)}return this.setDefferedZoom(o)},e.prototype.setDefferedZoom=function(e){e.disableTrackTooltip=!1;var i=e.duration;if(e.duration=600,e.zoomModule.isZoomed=e.zoomModule.isPanning=e.isChartDrag=e.delayRedraw=!1,e.zoomModule.touchMoveList=e.zoomModule.touchStartList=[],e.zoomModule.pinchTarget=null,e.zoomRedraw=e.zoomSettings.enableAnimation,e.redraw){var o=qt(e.element.id+"_Zooming_KitCollection");if(o&&o.remove(),e.tooltipModule){qt(e.element.id+"_tooltip")&&qt(e.element.id+"_tooltip").remove();for(var r=0,n=e.visibleSeries;r<n.length;r++){var a=n[r];(0,t.isNullOrUndefined)(a)||!a.marker.visible&&!e.tooltip.shared&&"Scatter"!==a.type&&"Bubble"!==a.type||e.markerRender.removeHighlightedMarker(a,null,!0)}}}else e.removeSvg();return e.refreshAxis(),e.refreshBound(),this.elementOpacity="1",e.duration=i,e.redraw=!1,!1},e.prototype.zoomIn=function(){return this.zoomInOutCalculation(1,this.chart,this.chart.axisCollections,this.chart.zoomSettings.mode),!1},e.prototype.zoomOut=function(){return this.enableZoomButton=!1,this.zoomInOutCalculation(-1,this.chart,this.chart.axisCollections,this.chart.zoomSettings.mode),!1},e.prototype.zoom=function(){return this.chart.zoomModule.isPanning=!1,this.elementOpacity="1",this.chart.svgObject.setAttribute("cursor","auto"),this.zoomInElements&&this.zoomInElements.setAttribute("opacity",this.elementOpacity),this.elementOpacity=!this.chart.zoomModule.isZoomed&&this.chart.zoomSettings.showToolbar?"0.2":"1",this.zoomOutElements&&this.zoomOutElements.setAttribute("opacity",this.elementOpacity),this.applySelection(this.zoomElements.childNodes,this.chart.themeStyle.toolkitSelectionColor),"Fluent2HighContrast"===this.chart.theme&&(this.zoomInElements&&this.applySelection(this.zoomInElements.childNodes,this.chart.themeStyle.toolkitFill),this.zoomOutElements&&this.applySelection(this.zoomOutElements.childNodes,this.chart.themeStyle.toolkitFill)),this.panElements&&this.applySelection(this.panElements.childNodes,"Tailwind3Dark"===this.chart.theme?"#FFFFFF":"#737373"),qt(this.selectedID)&&qt(this.selectedID).setAttribute("fill","transparent"),this.selectedID=this.chart.element.id+"_Zooming_Zoom_1",qt(this.selectedID).setAttribute("fill",this.chart.themeStyle.toolkitIconRectSelectionFill),!1},e.prototype.pan=function(){if(!this.chart.zoomModule.isZoomed)return!1;if(this.chart.zoomModule.isPanning=!0,this.chart.svgObject.setAttribute("cursor","pointer"),this.elementOpacity="0.2",this.zoomInElements?this.zoomInElements.setAttribute("opacity",this.elementOpacity):null,this.zoomOutElements?this.zoomOutElements.setAttribute("opacity",this.elementOpacity):null,"Fluent2HighContrast"===this.chart.theme){var e=qt(this.chart.element.id+"_Zooming_ZoomOut");e&&e.setAttribute("opacity","1");var t=qt(this.chart.element.id+"_Zooming_ZoomIn");t&&t.setAttribute("opacity","1");var i=qt(this.chart.element.id+"_Zooming_ZoomOut_2");i&&i.setAttribute("fill","#3FF23F");var o=qt(this.chart.element.id+"_Zooming_ZoomIn_2");o&&o.setAttribute("fill","#3FF23F");var r=qt(this.chart.element.id+"_Zooming_ZoomIn_3");r&&r.setAttribute("fill","#3FF23F")}return this.panElements?this.applySelection(this.panElements.childNodes,this.chart.themeStyle.toolkitSelectionColor):null,this.zoomElements?this.applySelection(this.zoomElements.childNodes,"Tailwind3Dark"===this.chart.theme?"#FFFFFF":"#737373"):null,qt(this.selectedID)&&qt(this.selectedID).setAttribute("fill","transparent"),this.selectedID=this.chart.element.id+"_Zooming_Pan_1",qt(this.selectedID).setAttribute("fill",this.chart.themeStyle.toolkitIconRectSelectionFill),!1},e.prototype.zoomInOutCalculation=function(e,t,i,o){var r=this;if(this.isZoomed=!0,t.zoomSettings.showToolbar&&(this.elementOpacity=this.zoomInElements.getAttribute("opacity")),!t.zoomModule.isPanning&&"0.2"!==this.elementOpacity){t.zoomSettings.showToolbar&&!t.isZoomed&&(t.zoomModule.isZoomed=!0);var n=void 0,a=void 0,l=void 0;t.disableTrackTooltip=!0,t.delayRedraw=!0;var s=void 0;this.zoomCompleteEvtCollection=[];for(var h=[],c=0,d=i;c<d.length;c++){var p=d[c];s={cancel:!1,name:oe,axis:p,previousZoomFactor:p.zoomFactor,previousZoomPosition:p.zoomPosition,currentZoomFactor:p.zoomFactor,currentZoomPosition:p.zoomPosition,previousVisibleRange:p.visibleRange,currentVisibleRange:null},("Horizontal"===p.orientation&&"Y"!==o||"Vertical"===p.orientation&&"X"!==o)&&(n=1===(l=Math.max(Math.max(1/Zt(p.zoomFactor,0,1),1)+.25*e,1))?1:Zt(1/l,0,1),a=1===l?0:p.zoomPosition+.5*(p.zoomFactor-n),p.zoomPosition===a&&p.zoomFactor===n||(n=a+n>1?1-a:n),s.currentZoomFactor=n,s.currentZoomPosition=a,s.cancel||(p.zoomFactor=s.currentZoomFactor,p.zoomPosition=s.currentZoomPosition,this.zoomCompleteEvtCollection.push(s)),h.push({zoomFactor:p.zoomFactor,zoomPosition:p.zoomFactor,axisName:p.name,axisRange:p.visibleRange}))}var u={cancel:!1,axisCollection:h,name:Fe};this.chart.trigger(Fe,u,function(){u.cancel&&new Bn(t).zoomCancel(i,r.zoomCompleteEvtCollection)})}},e.prototype.applySelection=function(e,t){for(var i=1,o=e.length;i<o;i++)e[i].setAttribute("fill",t)},e}(),Bn=function(){function e(e){this.zoomCompleteEvtCollection=[],this.startPanning=!1,this.chart=e,this.isPointer=t.Browser.isPointer,this.browserName=t.Browser.info.name,this.wheelEvent="mozilla"===this.browserName?this.isPointer?"mousewheel":"DOMMouseScroll":"mousewheel",this.cancelEvent=this.isPointer?"pointerleave":"mouseleave",this.addEventListener(),this.isDevice=t.Browser.isDevice;var i=e.zoomSettings;this.toolkit=new zn(e),this.zooming=i,this.elementId=e.element.id,this.zoomingRect=new R.Rect(0,0,0,0),this.zoomAxes=[],this.zoomkitOpacity=1,this.isIOS=t.Browser.isIos||t.Browser.isIos7,this.isZoomed=this.performedUI=this.zooming.enablePan||this.chart.primaryXAxis.zoomFactor<1&&this.chart.primaryXAxis.zoomPosition>0||this.chart.primaryYAxis.zoomFactor<1&&this.chart.primaryYAxis.zoomPosition>0||this.isAxisZoomed(this.chart.axes),i.enableScrollbar&&(e.scrollElement=(0,t.createElement)("div",{id:e.element.id+"_scrollElement"}))}return e.prototype.renderZooming=function(e,t,i){this.calculateZoomAxesRange(t),!this.zooming.enableSelectionZooming||i&&(!t.isDoubleTap||1!==this.touchStartList.length)||this.isPanning&&!t.isDoubleTap?this.isPanning&&t.isChartDrag&&(!i||i&&1===this.touchStartList.length)&&(this.pinchTarget=i?e.target:null,this.doPan(t,t.axisCollections)):(this.isPanning=!!this.isDevice||this.isPanning,this.performedUI=!0,this.drawZoomingRectangle(t))},e.prototype.drawZoomingRectangle=function(e){var i=e.chartAxisLayoutPanel.seriesClipRect,o=new ji(e.previousMouseMoveX,e.previousMouseMoveY),r=new ji(e.mouseX,e.mouseY),n=this.zoomingRect=Yt(o,r,i);if(n.width>0&&n.height>0){if(this.isZoomed=!0,e.disableTrackTooltip=!0,e.svgObject.setAttribute("cursor","crosshair"),"X"===this.zooming.mode?(n.height=i.height,n.y=i.y):"Y"===this.zooming.mode&&(n.width=i.width,n.x=i.x),e.tooltipModule){e.tooltipModule.removeTooltip(0);for(var a=0,l=e.visibleSeries;a<l.length;a++){var s=l[a];(0,t.isNullOrUndefined)(s)||!s.marker.visible&&!e.tooltip.shared||e.markerRender.removeHighlightedMarker(s,null,!0)}}e.crosshairModule&&e.crosshairModule.removeCrosshair(0);var h=e.svgObject;if(this.chart.enableCanvas){var c=document.getElementById(this.chart.element.id+"_Secondary_Element");(h=this.chart.svgRenderer.createSvg({id:this.chart.element.id+"_zoomRect_svg",width:this.chart.availableSize.width,height:this.chart.availableSize.height})).style.cssText="position: absolute; display:block; pointer-events: none",c.appendChild(h)}h.appendChild(e.svgRenderer.drawRectangle(new Ni(this.elementId+"_ZoomArea",e.themeStyle.selectionRectFill,{color:e.themeStyle.selectionRectStroke,width:1},1,n,0,0,"","3")))}},e.prototype.doPan=function(e,i,o,r){var n,a,l,s=this;if(void 0===o&&(o=0),void 0===r&&(r=0),e.startMove&&e.crosshair.enable)return null;this.isZoomed=!0,this.startPanning=!0,this.offset=e.delayRedraw?this.offset:e.chartAxisLayoutPanel.seriesClipRect,e.delayRedraw=!0,this.zoomCompleteEvtCollection=[],e.disableTrackTooltip=!0;for(var h=[],c=0,d=i;c<d.length;c++){var p=d[c];l={cancel:!1,name:oe,axis:p,previousZoomFactor:p.zoomFactor,previousZoomPosition:p.zoomPosition,currentZoomFactor:p.zoomFactor,currentZoomPosition:p.zoomPosition,previousVisibleRange:p.visibleRange,currentVisibleRange:null},n=Math.max(1/Zt(p.zoomFactor,0,1),1),"Horizontal"===p.orientation?(a=(0!==o?o:e.previousMouseMoveX-e.mouseX)/p.rect.width/n,l.currentZoomPosition=Zt(p.zoomPosition+a,0,1-p.zoomFactor)):(a=(0!==r?r:e.previousMouseMoveY-e.mouseY)/p.rect.height/n,l.currentZoomPosition=Zt(p.zoomPosition-a,0,1-p.zoomFactor)),l.cancel||(p.zoomFactor=l.currentZoomFactor,p.zoomPosition=l.currentZoomPosition,this.zoomCompleteEvtCollection.push(l)),h.push({zoomFactor:p.zoomFactor,zoomPosition:p.zoomFactor,axisName:p.name,axisRange:p.visibleRange})}if(e.tooltipModule){var u=qt(e.element.id+"_tooltip");u&&u.remove();for(var g=0,m=e.visibleSeries;g<m.length;g++){var y=m[g];(0,t.isNullOrUndefined)(y)||!y.marker.visible&&!e.tooltip.shared&&"Scatter"!==y.type&&"Bubble"!==y.type||e.markerRender.removeHighlightedMarker(y,null,!0)}}var f={cancel:!1,axisCollection:h,name:Fe};this.chart.trigger(Fe,f,function(){f.cancel?s.zoomCancel(i,s.zoomCompleteEvtCollection):(s.performDefferedZoom(e),s.redrawOnZooming(e,!1))})},e.prototype.performDefferedZoom=function(e){var t,i;if(this.zooming.enableDeferredZooming){switch(t=e.mouseX-e.mouseDownX,i=e.mouseY-e.mouseDownY,this.zooming.mode){case"X":i=0;break;case"Y":t=0}this.setTransform(t,i,null,null,e,!1),this.refreshAxis(e.chartAxisLayoutPanel,e,e.axisCollections),e.enableCanvas&&this.performZoomRedraw(e)}else this.performZoomRedraw(e);e.previousMouseMoveX=e.mouseX,e.previousMouseMoveY=e.mouseY},e.prototype.performZoomRedraw=function(e){var i=this.zoomingRect;if(e.animateSeries=!1,this.isZoomed)if(i.width>0&&i.height>0)this.performedUI=!0,e.svgObject.setAttribute("cursor","auto"),this.doZoom(e,e.axisCollections,e.chartAxisLayoutPanel.seriesClipRect),e.isDoubleTap=!1;else if(e.disableTrackTooltip){if(e.disableTrackTooltip=!1,e.delayRedraw=!1,e.enableCanvas)e.createChartSvg();else{var o=qt(e.element.id+"_ZoomArea");o&&o.remove();var r=qt(e.element.id+"_Zooming_KitCollection");if(r&&r.remove(),e.tooltipModule){qt(e.element.id+"_tooltip")&&qt(e.element.id+"_tooltip").remove();for(var n=0,a=e.visibleSeries;n<a.length;n++){var l=a[n];(0,t.isNullOrUndefined)(l)||!l.marker.visible&&!e.tooltip.shared&&"Scatter"!==l.type&&"Bubble"!==l.type||e.markerRender.removeHighlightedMarker(l,null,!0)}}}var s=e.duration;this.isPanning&&(e.isChartDrag||this.startPanning)||e.enableCanvas||(e.duration=600,e.redraw=this.zooming.enableAnimation,e.zoomRedraw=this.zooming.enableAnimation);var h=[];e.highlightModule&&(e.legendSettings.enableHighlight||"None"!==e.highlightMode)&&e.highlightModule.highlightDataIndexes&&(h=e.highlightModule.highlightDataIndexes),e.refreshAxis(),e.refreshBound(),e.highlightModule&&(e.legendSettings.enableHighlight||"None"!==e.highlightMode)&&h&&(e.highlightModule.highlightDataIndexes=h),this.isZoomed||(e.zoomRedraw=this.zooming.enableAnimation),this.startPanning=!1,e.redraw=!1,e.duration=s,this.toolkit.isZoomed&&(e.zoomRedraw=!1,this.toolkit.isZoomed=!1)}},e.prototype.refreshAxis=function(e,t,i){var o=t.zoomSettings.mode;e.measureAxis(new R.Rect(t.initialClipRect.x,t.initialClipRect.y,t.initialClipRect.width,t.initialClipRect.height)),i.map(function(t,i){"Horizontal"===t.orientation&&"Y"!==o&&e.drawXAxisLabels(t,i,null,t.placeNextToAxisLine?t.updatedRect:t.rect),"Vertical"===t.orientation&&"X"!==o&&e.drawYAxisLabels(t,i,null,t.placeNextToAxisLine?t.updatedRect:t.rect)})},e.prototype.doZoom=function(e,t,i){var o,r=this,n=this.zoomingRect,a=this.zooming.mode;this.isPanning=e.zoomSettings.enablePan||this.isPanning;var l=[];this.zoomCompleteEvtCollection=[];for(var s=0,h=t;s<h.length;s++){var c=h[s];o={cancel:!1,name:oe,axis:c,previousZoomFactor:c.zoomFactor,previousZoomPosition:c.zoomPosition,currentZoomFactor:c.zoomFactor,currentZoomPosition:c.zoomPosition,previousVisibleRange:c.visibleRange,currentVisibleRange:null},"Horizontal"===c.orientation?"Y"!==a&&(o.currentZoomPosition+=Math.abs((n.x-i.x)/i.width)*c.zoomFactor,o.currentZoomFactor*=n.width/i.width):"X"!==a&&(o.currentZoomPosition+=(1-Math.abs((n.height+(n.y-i.y))/i.height))*c.zoomFactor,o.currentZoomFactor*=n.height/i.height),parseFloat(o.currentZoomFactor.toFixed(3))<=.001&&(o.currentZoomFactor=o.previousZoomFactor,o.currentZoomPosition=o.previousZoomPosition),o.cancel||(c.zoomFactor=o.currentZoomFactor,c.zoomPosition=o.currentZoomPosition,e.zoomRedraw=this.zooming.enableAnimation,this.zoomCompleteEvtCollection.push(o)),l.push({zoomFactor:c.zoomFactor,zoomPosition:c.zoomFactor,axisName:c.name,axisRange:c.visibleRange})}var d={cancel:!1,axisCollection:l,name:Fe};this.chart.trigger(Fe,d,function(){d.cancel?r.zoomCancel(t,r.zoomCompleteEvtCollection):(r.zoomingRect=new R.Rect(0,0,0,0),r.redrawOnZooming(e))})},e.prototype.redrawOnZooming=function(e,t,i){void 0===t&&(t=!0),void 0===i&&(i=!1);var o,r=i?this.toolkit.zoomCompleteEvtCollection:this.zoomCompleteEvtCollection;t&&this.performZoomRedraw(e);for(var n=0;n<r.length;n++)r[n].cancel||(o={cancel:!1,name:oe,axis:e.axisCollections[n],previousZoomFactor:r[n].previousZoomFactor,previousZoomPosition:r[n].previousZoomPosition,currentZoomFactor:e.axisCollections[n].zoomFactor,currentZoomPosition:e.axisCollections[n].zoomPosition,currentVisibleRange:e.axisCollections[n].visibleRange,previousVisibleRange:r[n].previousVisibleRange},e.trigger(oe,o))},e.prototype.performMouseWheelZooming=function(e,t,i,o,r){var n,a,l,s,h=this,c="mozilla"!==this.browserName||this.isPointer?e.wheelDelta>0?1:-1:-e.detail/3>0?1:-1,d=this.zooming.mode,p=.5;this.isZoomed=!0,this.calculateZoomAxesRange(o),o.disableTrackTooltip=!0,this.performedUI=!0,this.isPanning=o.zoomSettings.enablePan||this.isPanning,this.zoomCompleteEvtCollection=[];for(var u=[],g=0,m=r;g<m.length;g++){var y=m[g];s={cancel:!1,name:oe,axis:y,previousZoomFactor:y.zoomFactor,previousZoomPosition:y.zoomPosition,currentZoomFactor:y.zoomFactor,currentZoomPosition:y.zoomPosition,currentVisibleRange:null,previousVisibleRange:y.visibleRange},("Vertical"===y.orientation&&"X"!==d||"Horizontal"===y.orientation&&"Y"!==d)&&((n=(n=Math.max(Math.max(1/Zt(y.zoomFactor,0,1),1)+.25*c,1))>5e10?5e10:n)>=1&&(p=(p="Horizontal"===y.orientation?t/y.rect.width:1-i/y.rect.height)>1?1:p<0?0:p,a=1===n?1:Zt((c>0?.9:1.1)/n,0,1),l=1===n?0:y.zoomPosition+(y.zoomFactor-a)*p,y.zoomPosition===l&&y.zoomFactor===a||(a=l+a>1?1-l:a),parseFloat(s.currentZoomFactor.toFixed(3))<=.001?(s.currentZoomFactor=s.previousZoomFactor,s.currentZoomPosition=s.previousZoomPosition):(s.currentZoomFactor=a,s.currentZoomPosition=l)),s.currentZoomFactor===s.previousZoomFactor&&s.currentZoomPosition===s.previousZoomPosition&&(o.disableTrackTooltip=!1),s.cancel||(y.zoomFactor=s.currentZoomFactor,y.zoomPosition=s.currentZoomPosition,o.zoomRedraw=this.zooming.enableAnimation,this.zoomCompleteEvtCollection.push(s))),u.push({zoomFactor:y.zoomFactor,zoomPosition:y.zoomFactor,axisName:y.name,axisRange:y.visibleRange})}var f={cancel:!1,axisCollection:u,name:Fe};this.chart.trigger(Fe,f,function(){f.cancel?h.zoomCancel(r,h.zoomCompleteEvtCollection):h.redrawOnZooming(o)})},e.prototype.performPinchZooming=function(e,t){if(this.zoomingRect.width>0&&this.zoomingRect.height>0||t.startMove&&t.crosshair.enable)return!1;this.calculateZoomAxesRange(t),this.isZoomed=!0,this.isPanning=!0,this.performedUI=!0,this.offset=t.delayRedraw?this.offset:t.chartAxisLayoutPanel.seriesClipRect,t.delayRedraw=!0,t.disableTrackTooltip=!0;var i=t.element.getBoundingClientRect(),o=this.touchStartList,r=this.touchMoveList,n=o[0].pageX-i.left,a=o[0].pageY-i.top,l=r[0].pageX-i.left,s=r[0].pageY-i.top,h=o[1].pageX-i.left,c=o[1].pageY-i.top,d=r[1].pageX-i.left,p=r[1].pageY-i.top,u=Math.abs(l-d)/Math.abs(n-h),g=Math.abs(s-p)/Math.abs(a-c),m=(this.offset.x-l)/u+n,y=(this.offset.y-s)/g+a,f=new R.Rect(m,y,this.offset.width/u,this.offset.height/g),v=l-u*n,b=s-g*a;if(!isNaN(u-u)&&!isNaN(g-g))switch(this.zooming.mode){case"XY":this.setTransform(v,b,u,g,t,!0);break;case"X":this.setTransform(v,0,u,1,t,!0);break;case"Y":this.setTransform(0,b,1,g,t,!0)}return this.calculatePinchZoomFactor(t,f)||(this.refreshAxis(t.chartAxisLayoutPanel,t,t.axisCollections),this.redrawOnZooming(t,!1)),!0},e.prototype.calculatePinchZoomFactor=function(e,t){var i,o,r,n,a,l,s,h,c,d=this.zooming.mode,p=[];this.zoomCompleteEvtCollection=[];for(var u=0;u<e.axisCollections.length;u++){var g=e.axisCollections[u];("Horizontal"===g.orientation&&"Y"!==d||"Vertical"===g.orientation&&"X"!==d)&&(h=g.zoomFactor,c=g.zoomPosition,s={cancel:!1,name:oe,axis:g,previousZoomFactor:g.zoomFactor,previousZoomPosition:g.zoomPosition,currentZoomFactor:h,currentZoomPosition:c,previousVisibleRange:g.visibleRange,currentVisibleRange:null},"Horizontal"===g.orientation?(r=(a=t.x-this.offset.x)/(l=g.rect.width/this.zoomAxes[u].delta)+this.zoomAxes[u].min,n=(a=t.x+t.width-this.offset.x)/l+this.zoomAxes[u].min):(a=t.y-this.offset.y,l=g.rect.height/this.zoomAxes[u].delta,r=(-1*a+g.rect.height)/l+this.zoomAxes[u].min,n=(-1*(a=t.y+t.height-this.offset.y)+g.rect.height)/l+this.zoomAxes[u].min),i=Math.min(r,n),o=Math.max(r,n),c=(i-this.zoomAxes[u].actualMin)/this.zoomAxes[u].actualDelta,h=(o-i)/this.zoomAxes[u].actualDelta,s.currentZoomPosition=c<0?0:c,s.currentZoomFactor=h>1?1:h<.03?.03:h,s.cancel||(g.zoomFactor=s.currentZoomFactor,g.zoomPosition=s.currentZoomPosition,e.zoomRedraw=this.zooming.enableAnimation,this.zoomCompleteEvtCollection.push(s)),p.push({zoomFactor:g.zoomFactor,zoomPosition:g.zoomFactor,axisName:g.name,axisRange:g.visibleRange}))}var m={cancel:!1,axisCollection:p,name:Fe};return!(m.cancel||(this.chart.trigger(Fe,m),!m.cancel))&&(this.zoomCancel(e.axisCollections,this.zoomCompleteEvtCollection),!0)},e.prototype.setTransform=function(e,t,i,o,r,n){var a,l,s,h;if(r.enableCanvas||r.seriesElements.setAttribute("clip-path","url(#"+this.elementId+"_ChartAreaClipRect_)"),r.indicatorElements&&r.indicatorElements.setAttribute("clip-path","url(#"+this.elementId+"_ChartAreaClipRect_)"),null!==e&&null!==t)for(var c=0,d=r.visibleSeries;c<d.length;c++){var p=d[c];l=r.requireInvertedAxis?p.yAxis.rect.x:p.xAxis.rect.x,s=r.requireInvertedAxis?p.xAxis.rect.y:p.yAxis.rect.y,a="translate("+(e+(n?i*l:l))+","+(t+(n?o*s:s))+")",a=i||o?a+" scale("+i+" "+o+")":a,p.visible&&("Indicator"===p.category?p.seriesElement.parentNode.setAttribute("transform",a):r.enableCanvas||p.seriesElement.setAttribute("transform",a),h=qt(r.element.id+"_Series_"+p.index+"_DataLabelCollections"),p.errorBarElement&&p.errorBarElement.setAttribute("transform",a),p.symbolElement&&p.symbolElement.setAttribute("transform",a),p.textElement&&(p.textElement.setAttribute("visibility","hidden"),p.shapeElement.setAttribute("visibility","hidden")),h&&(h.style.visibility="hidden"))}},e.prototype.calculateZoomAxesRange=function(e){for(var t,i,o=0;o<e.axisCollections.length;o++){var r=e.axisCollections[o];i=r.visibleRange,this.zoomAxes[o]?e.delayRedraw||(this.zoomAxes[o].min=i.min,this.zoomAxes[o].delta=i.delta):(t={actualMin:r.actualRange.min,actualDelta:r.actualRange.delta,min:i.min,delta:i.delta},this.zoomAxes[o]=t)}},e.prototype.showZoomingToolkit=function(e){var i,o,r=this.zooming.toolbarItems,n=e.chartAxisLayoutPanel.seriesClipRect,a=10,l=e.svgRenderer,s=this.isDevice?0===r.length?0:1:r.length,h=this.isDevice?(0,R.measureText)("Reset Zoom",{size:"12px"},{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).width:16,c=this.isDevice?(0,R.measureText)("Reset Zoom",{size:"12px"},{size:"12px",fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).height:e.theme.indexOf("Fluent2")>-1||e.theme.indexOf("Bootstrap5")>-1?18:22,d=s*h+(s+1)*a+(s-1)*a,p=this.zooming.toolbarPosition;switch(p.horizontalAlignment){case"Far":i=n.x+n.width-d-a;break;case"Near":i=n.x+a;break;case"Center":i=n.width/2-d/2+n.x}switch(i+=p.x,p.verticalAlignment){case"Bottom":o=n.height-n.y+c+a;break;case"Top":o=n.y+a;break;case"Middle":o=n.height/2-c/2+n.y}o+=p.y,i=null!=this.toolkit.dragHorizontalRatio?Math.min(Math.max(this.chart.border.width+2,this.toolkit.dragHorizontalRatio*this.chart.availableSize.width),this.chart.availableSize.width-d-this.chart.border.width-2):i,o=null!=this.toolkit.dragVerticalRatio?Math.min(Math.max(this.chart.border.width+2,this.toolkit.dragVerticalRatio*this.chart.availableSize.height),this.chart.availableSize.height-c-this.chart.border.width-2):o;var u,g=a,m=this.toolkit;if(0===s||qt(this.elementId+"_Zooming_KitCollection"))return!1;var y=l.createDefs();r=this.isDevice?["Reset"]:r,y.innerHTML='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/><feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',this.toolkitElements=l.createGroup({id:this.elementId+"_Zooming_KitCollection",transform:"translate("+i+","+o+")"}),this.toolkitElements.appendChild(y);var f="Tailwind3"===this.chart.theme?"#F9FAFB":"Fluent"===this.chart.theme?"#F3F2F1":"Material3"===this.chart.theme?"#FFFFFF":"Material3Dark"===this.chart.theme?"#1C1B1F":"Fluent2"===this.chart.theme?"#F5F5F5":"Fluent2Dark"===this.chart.theme?"#141414":"Fluent2HighContrast"===e.theme?"#000000":"Bootstrap5"===e.theme?"#E9ECEF":"Bootstrap5Dark"===e.theme?"#343A40":"Tailwind3Dark"!==e.theme||this.isDevice?"Tailwind"===this.chart.theme?"#F3F4F6":"#fafafa":"#1D2432";this.toolkitElements.appendChild(l.drawRectangle(new Ni(this.elementId+"_Zooming_Rect",f,{color:"transparent",width:1},1,new R.Rect(0,0,d,c+20),this.chart.theme.indexOf("Bootstrap5")>-1?1:4,this.chart.theme.indexOf("Bootstrap5")>-1?1:4)));var v,b=l.drawRectangle(new Ni(this.elementId+"_Zooming_Rect",f,{color:"transparent",width:1},.1,new R.Rect(0,0,d,c+20),4,4));"Tailwind"===this.chart.theme||"TailwindDark"===this.chart.theme||"Tailwind3Dark"===this.chart.theme?b.setAttribute("box-shadow","0px 1px 2px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.1)"):"Material3"===this.chart.theme||"Material3Dark"===this.chart.theme||"Fluent2"===this.chart.theme||"Fluent2Dark"===this.chart.theme||this.chart.theme.indexOf("Bootstrap5")>-1?(b.setAttribute("filter","drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.15)) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3))"),b.setAttribute("fill","Material3"===this.chart.theme?"#FFFFFF":"Fluent2"===this.chart.theme?"#F5F5F5":"Bootstrap5"===this.chart.theme?"#E9ECEF":"Bootstrap5Dark"===this.chart.theme?"#343A40":"#1C1B1F"),b.setAttribute("rx",this.chart.theme.indexOf("Bootstrap5")>-1?"1px":"4px"),b.setAttribute("ry",this.chart.theme.indexOf("Bootstrap5")>-1?"1px":"4px"),b.setAttribute("opacity","1")):("Tailwind3"===e.theme&&b.setAttribute("fill","#F9FAFB"),b.setAttribute("filter","url(#chart_shadow)")),this.toolkitElements.appendChild(b);for(var x=!1,S=1;S<=s;S++){switch(v=r[S-1],u=l.createGroup({transform:"translate("+g+","+(this.isDevice?a:e.theme.indexOf("Fluent2")>-1||e.theme.indexOf("Bootstrap5")>-1?11:13)+")"}),v){case"Pan":m.createPanButton(u,this.toolkitElements),x=!0;break;case"Zoom":m.createZoomButton(u,this.toolkitElements);break;case"ZoomIn":m.createZoomInButton(u,this.toolkitElements,e);break;case"ZoomOut":m.createZoomOutButton(u,this.toolkitElements,e);break;case"Reset":m.createResetButton(u,this.toolkitElements,e,this.isDevice)}g+=h+20}if(this.toolkitElements.setAttribute("opacity",this.isDevice?"1":""+this.zoomkitOpacity),this.toolkitElements.setAttribute("cursor","auto"),e.enableCanvas){var C=document.createElement("div");C.id=e.element.id+"_zoom",C.style.cssText="position:absolute; z-index:1";var F=e.availableSize.height/2,w=e.svgRenderer.createSvg({id:e.element.id+"_zoomkit_svg",width:e.availableSize.width,height:F});w.style.position="absolute",w.appendChild(this.toolkitElements),C.appendChild(w),document.getElementById(this.elementId+"_Secondary_Element").appendChild(C)}else e.svgObject.appendChild(this.toolkitElements);return this.isDevice||(t.EventHandler.add(this.toolkitElements,"mousemove touchstart",this.zoomToolkitMove,this),t.EventHandler.add(this.toolkitElements,"mouseleave touchend",this.zoomToolkitLeave,this),this.isPanning&&x&&m.pan()),!0},e.prototype.applyZoomToolkit=function(e,t){var i=this.isAxisZoomed(t);i?(this.showZoomingToolkit(e),this.isZoomed=!0):e.zoomSettings.showToolbar?(this.isZoomed=i,this.showZoomingToolkit(e)):(this.toolkit.removeTooltip(),this.isPanning=!1,this.isZoomed=!1,e.isZoomed=!1,e.svgObject.setAttribute("cursor","auto"))},e.prototype.zoomCancel=function(e,t){for(var i=0,o=t;i<o.length;i++)for(var r=o[i],n=0,a=e;n<a.length;n++){var l=a[n];if(l.name===r.axis.name){l.zoomFactor=r.previousZoomFactor,l.zoomPosition=r.previousZoomPosition,l.visibleRange=r.previousVisibleRange;break}}},e.prototype.isAxisZoomed=function(e){for(var t=!1,i=0,o=e;i<o.length;i++){var r=o[i];t=t||1!==r.zoomFactor||0!==r.zoomPosition}return t},e.prototype.zoomToolkitMove=function(){var e=this.toolkitElements;return this.zoomkitOpacity=1,e.setAttribute("opacity",""+this.zoomkitOpacity),!1},e.prototype.zoomToolkitLeave=function(){var e=this.toolkitElements;return this.zoomkitOpacity=1,e.setAttribute("opacity",""+this.zoomkitOpacity),!1},e.prototype.addEventListener=function(){this.chart.isDestroyed||(t.EventHandler.add(this.chart.element,this.wheelEvent,this.chartMouseWheel,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchStartEvent,this.mouseDownHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),this.chart.on(this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){t.EventHandler.remove(this.chart.element,this.wheelEvent,this.chartMouseWheel),this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.chart.off(t.Browser.touchStartEvent,this.mouseDownHandler),this.chart.off(t.Browser.touchEndEvent,this.mouseUpHandler),this.chart.off(this.cancelEvent,this.mouseCancelHandler))},e.prototype.chartMouseWheel=function(e){var t=this.chart,i=t.element.getBoundingClientRect(),o=qt(t.svgId).getBoundingClientRect(),r=e.clientX-i.left-Math.max(o.left-i.left,0),n=e.clientY-i.top-Math.max(o.top-i.top,0);return this.zooming.enableMouseWheelZooming&&Pt(r,n,t.chartAxisLayoutPanel.seriesClipRect)&&(e.preventDefault(),this.performMouseWheelZooming(e,r,n,t,t.axisCollections)),!1},e.prototype.mouseMoveHandler=function(e){var t=this.chart,i=null;"touchmove"===e.type&&(e.preventDefault&&this.isIOS&&(this.isPanning||t.isDoubleTap||this.zooming.enablePinchZooming&&this.touchStartList.length>1)&&e.preventDefault(),i=e.touches),t.isChartDrag&&(t.isTouch&&(this.touchMoveList=this.addTouchPointer(this.touchMoveList,e,i),this.zooming.enablePinchZooming&&this.touchMoveList.length>1&&this.touchStartList.length>1&&this.performPinchZooming(e,t)),this.renderZooming(e,t,t.isTouch))},e.prototype.mouseDownHandler=function(e){var t,i=this.chart,o=null;"touchstart"===e.type?(o=e.touches,t=e.target):t=e.target,-1===t.id.indexOf(i.element.id+"_Zooming_")&&(i.zoomSettings.enablePinchZooming||i.zoomSettings.enableSelectionZooming||this.chart.zoomModule.isPanning)&&Pt(i.previousMouseMoveX,i.previousMouseMoveY,i.chartAxisLayoutPanel.seriesClipRect)&&(i.isChartDrag=!0),i.isTouch&&(this.touchStartList=this.addTouchPointer(this.touchStartList,e,o))},e.prototype.mouseUpHandler=function(e){var t=this.chart,i=-1===e.target.id.indexOf(t.element.id+"_ZoomOut_")||-1===e.target.id.indexOf(t.element.id+"_ZoomIn_");(t.isChartDrag||i)&&this.redrawOnZooming(t,!0,!0),t.isTouch&&(t.isDoubleTap&&Pt(t.mouseX,t.mouseY,t.chartAxisLayoutPanel.seriesClipRect)&&1===this.touchStartList.length&&this.isZoomed&&this.toolkit.reset(e),this.touchStartList=[],t.isDoubleTap=!1)},e.prototype.mouseCancelHandler=function(){this.isZoomed&&this.performZoomRedraw(this.chart),this.pinchTarget=null,this.touchStartList=[],this.touchMoveList=[]},e.prototype.addTouchPointer=function(e,t,i){if(i){e=[];for(var o=0,r=i.length;o<r;o++)e.push({pageX:i[o].clientX,pageY:i[o].clientY,pointerId:null})}else if(0===(e=e||[]).length)e.push({pageX:t.clientX,pageY:t.clientY,pointerId:t.pointerId});else{o=0;for(var n=e.length;o<n;o++)e[o].pointerId===t.pointerId?e[o]={pageX:t.clientX,pageY:t.clientY,pointerId:t.pointerId}:e.push({pageX:t.clientX,pageY:t.clientY,pointerId:t.pointerId})}return e},e.prototype.getModuleName=function(){return"Zoom"},e.prototype.destroy=function(){this.removeEventListener()},e}(),Nn=function(){function e(e){this.isPointDragging=!1,this.chart=e}return e.prototype.pointMouseDown=function(){var e=this.chart,t=new so(e),i=t.getData(),o=e.zoomSettings.enableSelectionZooming||e.zoomSettings.enablePinchZooming;!i.point||!t.insideRegion&&i.series.isRectSeries||(this.seriesIndex=i.series.index,this.pointIndex=i.point.index,e.series[this.seriesIndex].dragSettings.enable&&!o&&(e.trigger(me,{series:i.series,seriesIndex:this.seriesIndex,pointIndex:this.pointIndex,point:i.point,oldValue:e.visibleSeries[this.seriesIndex].yData[this.pointIndex],newValue:e.visibleSeries[this.seriesIndex].points[this.pointIndex].yValue}),e.isPointMouseDown=!0,e.zoomSettings.enableDeferredZooming=!1))},e.prototype.pointMouseMove=function(e){var t,i=this.chart;"touchmove"===e.type&&e.preventDefault&&e.preventDefault();var o=new so(i),r=o.getData();r.series.dragSettings.enable&&r.point&&(o.insideRegion||!r.series.isRectSeries)?this.getCursorStyle(r):i.svgObject.style.cursor="null",i.isPointMouseDown&&((t=i.series[this.seriesIndex]).type.indexOf("Spline")>-1&&i[kt(t.type)+"SeriesModule"].findSplinePoint(t),this.pointDragging(this.seriesIndex,this.pointIndex))},e.prototype.getCursorStyle=function(e){var t=this.chart;e.series.type.indexOf("Stacking")>-1?t.svgObject.style.cursor="":"Bar"===e.series.type&&t.isTransposed?t.svgObject.style.cursor="ns-resize":t.isTransposed||"Bar"===e.series.type?t.svgObject.style.cursor="ew-resize":t.svgObject.style.cursor="ns-resize"},e.prototype.pointDragging=function(e,i){var o,r,n,a=this.chart,l=[],s=a.visibleSeries[e],h=s.dragSettings,c=s.xAxis,d=s.yAxis,p=s.isRectSeries?1:0,u=Rt(c,d,a.requireInvertedAxis);"Bar"===s.type?(o=a.isTransposed?u.y+u.height-a.mouseY:a.mouseX-u.x,r=a.isTransposed?u.height:u.width):(o=a.isTransposed?a.mouseX-u.x:u.y+u.height-a.mouseY,r=a.isTransposed?u.width:u.height),n=(n=d.isAxisInverse?1-o/r:o/r)*d.visibleRange.delta+d.visibleRange.min;var g=null!==d.minimum?d.visibleRange.min+p:(0,t.isNullOrUndefined)(h.minY)?n:h.minY;if((null!==d.maximum?d.visibleRange.max+p:(0,t.isNullOrUndefined)(h.maxY)?n:h.maxY)>=n&&g<=n){s.points[i].yValue=s.points[i].y=a.dragY="Logarithmic"===d.valueType?Math.pow(d.logBase,n):parseFloat(n.toFixed(2)),s.points[i].interior=h.fill;for(var m=0;m<s.points.length;m++)l[m]=s.points[m].yValue;s.yMin=Math.min.apply(null,l),s.yMax=Math.max.apply(null,l),this.isPointDragging=!0,a.refreshBound(),a.trigger(ye,{seriesIndex:e,pointIndex:i,series:s,point:s.points[i],oldValue:a.visibleSeries[this.seriesIndex].yData[this.pointIndex],newValue:s.points[i].yValue}),a.zoomRedraw=!1}},e.prototype.pointMouseUp=function(){var e=this.chart;e.isPointMouseDown&&e.series[this.seriesIndex].dragSettings.enable&&(e.trigger(fe,{series:e.series[this.seriesIndex],point:e.visibleSeries[this.seriesIndex].points[this.pointIndex],seriesIndex:this.seriesIndex,pointIndex:this.pointIndex,oldValue:e.visibleSeries[this.seriesIndex].yData[this.pointIndex],newValue:e.visibleSeries[this.seriesIndex].points[this.pointIndex].yValue}),e.visibleSeries[this.seriesIndex].points[this.pointIndex].y=e.visibleSeries[this.seriesIndex].points[this.pointIndex].yValue,e.isPointMouseDown=!1,this.isPointDragging=!1,this.seriesIndex=this.pointIndex=void 0)},e.prototype.getModuleName=function(){return"DataEditing"},e.prototype.destroy=function(){},e}(),Vn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hn=function(e){function i(t){var i=e.call(this,t)||this;return i.chart=t,i.renderer=t.renderer,i.wireEvents(),i}return Vn(i,e),i.prototype.wireEvents=function(){this.chart.isDestroyed||this.chart.stockChart&&this.chart.stockChart.onPanning||this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.chart.isDestroyed||this.chart.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[],this.isSeriesMode="Series"===e.highlightMode},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"Highlight"},i.prototype.destroy=function(){this.unWireEvents()},i}(Tn),Wn=function(){function e(e){this.padding=6,this.chart=e}return e.prototype.initPrivateVariables=function(e){this.chart=e,this.elementID=e.element.id,this.svgRenderer=e.renderer},e.prototype.render=function(e,t,i,o){if(this.chart&&this.svgRenderer||this.initPrivateVariables(t),!t.enableCanvas&&!e.lastValueLabelElement){var r=this.elementID+"_LastValueLabel_Group_"+e.index;e.lastValueLabelElement=t.renderer.createGroup({id:r})}this.renderLastValue(e,t,i,o||!1)},e.prototype.renderLastValue=function(e,t,i,o){var r="HighLowOpenClose"===e.seriesType,n="HighLow"===e.seriesType;if(!(e.visiblePoints.length<1)){var a=e.visiblePoints[e.visiblePoints.length-1],l=e.yAxis,s=e.clipRect,h=this.elementID+"_LastValueLabel_"+e.index,c=r?parseFloat(a.close):n?parseFloat(a.low):a.yValue;if(!(!("Candle"===e.type?a.symbolLocations&&a.symbolLocations.length>0:r?a.regions&&a.regions.length>0:a.symbolLocations&&a.symbolLocations.length>0)||c>l.visibleRange.max||c<l.visibleRange.min)){var d=e.chart.requireInvertedAxis?s.x+("Candle"===e.type?a.symbolLocations[1].x:r?a.open<=a.close?a.regions[1].x:a.regions[2].x:a.symbolLocations[0].x):s.x,p=e.chart.requireInvertedAxis?s.y:s.y+("Candle"===e.type?a.symbolLocations[1].y:r?a.open<=a.close?a.regions[1].y:a.regions[2].y:a.symbolLocations[0].y),u="translate("+(d=!t.requireInvertedAxis||!n&&"Candle"!==e.type||l.isInversed?d:d-a.regions[n?0:1].width)+","+(p=t.requireInvertedAxis||!n&&"Candle"!==e.type||l.isInversed?p:p+a.regions[n?0:1].height)+")",g=e.lastValueLabelElement?e.lastValueLabelElement.getAttribute("transform"):null,m=l.labelFormat,y=c.toString();m&&m.indexOf("n")>-1||(y=c%1==0?c.toFixed(0):"0"===c.toFixed(2).slice(-1)?c.toFixed(1):c.toFixed(2));var f=m&&null!==m.match("{value}")?m.replace("{value}",l.format(parseFloat(y))):l.format(parseFloat(y)),v=i.font,b=(0,R.measureText)(f,v,this.chart.themeStyle.crosshairLabelFont),x=b.width+2*this.padding,S=b.height+2*this.padding,C=t.requireInvertedAxis?t.enableCanvas?l.rect.y:l.rect.y-p:t.enableCanvas?l.rect.x:l.rect.x-d,F="Outside"===l.tickPosition?l.majorTickLines.height:0,w=l.labelPadding,L=2*i.border.width,P=t.requireInvertedAxis?l.maxLabelSize.height:l.maxLabelSize.width,A="Outside"===l.labelPosition,M=t.enableRtl&&!t.requireInvertedAxis?!l.opposedPosition:l.opposedPosition,D=t.requireInvertedAxis?(t.enableCanvas?d:0)-x/2:A?C+(M?w+F-L:-(w+F+L+P)):C+(M?-x:0),k=t.requireInvertedAxis?A?C+(M?-(S+w+F):w+F+L):C+(M?0:-S):(t.enableCanvas?p:0)-S/2;D=Math.max(-d+L,Math.min(D,t.availableSize.width-x-L-d)),k=Math.max(-p+L,Math.min(k,t.availableSize.height-S-L-p));var T=new R.Rect(D,k,x,S);t.lastValueLabelCollections.push(T);var E=this.chart.renderer.drawRectangle(new Ni(this.elementID+"_LastValueLabel_Background_"+e.index,i.background||t.themeStyle.crosshairFill,{width:i.border.width||1,color:i.border.color},1,T,i.rx,i.ry));ni(this.chart.enableCanvas,e.lastValueLabelElement,E,this.chart.redraw);var _=t.requireInvertedAxis?(t.enableCanvas?p:0)+(M?s.height:0):t.enableCanvas?p:0,I="M "+(t.requireInvertedAxis||M?t.enableCanvas?d:0:t.enableCanvas?d+s.width:s.width)+" "+_+" L "+(t.requireInvertedAxis?t.enableCanvas?d:0:M?D:D+x)+" "+(t.requireInvertedAxis?M?k+S:k:t.enableCanvas?p:0),O=this.chart.renderer.drawPath(new R.PathOption(this.elementID+"_LastValueLine_"+e.index,"none",i.lineWidth||1,i.lineColor||t.themeStyle.crosshairLine,1,i.dashArray||"",I));ni(this.chart.enableCanvas,e.lastValueLabelElement,O,this.chart.redraw),Di(this.chart.renderer,new R.TextOption(h,T.x+T.width/2,T.y+T.height/2+.35*b.height,"middle",f),v,v.color||t.themeStyle.crosshairLabelFont.color,e.lastValueLabelElement,!1,t.redraw,!1,!1,null,null,0,null,t.enableCanvas,null,this.chart.themeStyle.crosshairLabelFont,new ji(T.x+T.width/2,T.y+T.height/2+.35*b.height)),!this.chart.enableCanvas&&o&&g&&this.chart.enableAnimation?this.animateLastValueLabel(e.lastValueLabelElement,g,d,p,e.chart.duration):this.chart.enableCanvas||(e.lastValueLabelElement.setAttribute("transform",u),e.lastValueLabelElement.setAttribute("visibility",(t.stockChart?t.stockChart.initialRender:t.animateSeries)&&e.animation.enable?"hidden":"visible"))}}},e.prototype.animateLastValueLabel=function(e,i,o,r,n){var a=i.split(/[(),\s]+/),l=parseFloat(a[1])||0,s=parseFloat(a[2])||0,h=500;(0,t.isNullOrUndefined)(n)||(h=n),new t.Animation({}).animate((0,t.createElement)("div"),{duration:h,progress:function(t){var i=_t(t.timeStamp,s,r-s,t.duration),n="translate("+_t(t.timeStamp,l,o-l,t.duration)+","+i+")";e.setAttribute("transform",n)},end:function(){var t="translate("+o+","+r+")";e.setAttribute("transform",t)}})},e.prototype.getModuleName=function(){return"LastValueLabel"},e.prototype.destroy=function(){},e}(),jn=function(){function e(e){this.errorHeight=0,this.dataLabelRectCollection={},this.chart=e}return e.prototype.initPrivateVariables=function(e,t){var i="",o="",r=e.chart.renderer,n=void 0===e.index?e.category:e.index;"Cartesian"===e.chart.chartAreaType&&(i="translate("+e.clipRect.x+","+e.clipRect.y+")",o="url(#"+this.chart.element.id+"_ChartSeriesClipRect_"+n+")"),t.dataLabel.visible&&!this.chart.enableCanvas&&(e.shapeElement=r.createGroup({id:this.chart.element.id+"ShapeGroup"+n,transform:i,"clip-path":"url(#"+this.chart.element.id+"_ChartSeriesClipRect_"+n+")"}),e.textElement=r.createGroup({id:this.chart.element.id+"TextGroup"+n,transform:i,"clip-path":o}),e.textElement.setAttribute("aria-hidden","true")),this.markerHeight="Scatter"===e.type||t.visible?t.height/2:0,this.commonId=this.chart.element.id+"_Series_"+n+"_Point_",this.calculateErrorHeight(e,e.marker.dataLabel.position),this.chartBackground="transparent"===this.chart.chartArea.background?this.chart.background||this.chart.themeStyle.background:this.chart.chartArea.background},e.prototype.calculateErrorHeight=function(e,t){if(!e.errorBar.visible)return null;if(e.errorBar.visible&&"PolarRadar"!==this.chart.chartAreaType){var i=e.errorBar.direction,o=this.chart.errorBarModule.positiveHeight,r=this.chart.errorBarModule.negativeHeight;this.isRectSeries(e)?("Top"!==t&&"Auto"!==t||(this.errorHeight="Both"===i||"Minus"===i?r:0),"Outer"!==t&&"Auto"!==t||(this.errorHeight="Both"===i||"Plus"===i?o:0)):("Top"!==t&&"Outer"!==t&&"Auto"!==t||("Both"!==i&&"Plus"!==i||e.chart.isTransposed?this.errorHeight=0:this.errorHeight=o),"Bottom"!==t&&"Auto"!==t||(this.errorHeight="Both"===i||"Minus"===i?r:0))}else this.errorHeight=0},e.prototype.isRectSeries=function(e){return e.isRectSeries||"RangeArea"===e.type||"SplineRangeArea"===e.type||"RangeStepArea"===e.type},e.prototype.render=function(e,i,o){this.initPrivateVariables(e,e.marker),this.inverted=i.requireInvertedAxis,this.yAxisInversed=e.yAxis.isAxisInverse;var r=i.element.id+"_Series_"+(void 0===e.index?e.category:e.index)+"_DataLabelCollections",n=(0,t.createElement)("div",{id:r}),a=Qe(e);if(e.visible)for(var l=0;l<a.length;l++)this.renderDataLabel(e,a[l],n,o);n.childElementCount&&(i.enableCanvas?qt(i.element.id+"_Secondary_Element").appendChild(n):ni(i.enableCanvas,qt(i.element.id+"_Secondary_Element"),n,i.redraw,!1,"x","y",null,"",!1,!1,null,i.duration))},e.prototype.renderDataLabel=function(e,i,o,r){if(!r.showZero&&(0===i.y||0===i.y&&"Zero"===e.emptyPointSettings.mode))return null;this.margin=r.margin;var n,a,l,s,h,c,d,p,u,g,m,y=[],f={x:0,y:0},v=e.clipRect,b=!1,x=[];r.angle="Rotate90"===r.labelIntersectAction?90:r.angle,r.enableRotation="Rotate90"===r.labelIntersectAction||r.enableRotation;var S=c=r.angle,C={width:r.border.width,color:r.border.color},F=(0,t.extend)({},(0,t.getValue)("properties",r.font),null,!0);if(i.symbolLocations.length&&i.symbolLocations[0]||"BoxAndWhisker"===e.type&&i.regions.length){n=(y=null!==i.text?si(i,e,this.chart):[]).length;for(var w=0;w<n;w++){var L={cancel:!1,name:N,series:e,point:i,text:y[w],border:C,color:r.fill,template:r.template,font:F,location:f,textSize:(0,R.measureText)(y[w],r.font,this.chart.themeStyle.datalabelFont)};if(this.chart.trigger(N,L),!L.cancel)if(this.fontBackground=L.color,this.isDataLabelShape(L),this.markerHeight="Bubble"===e.type?i.regions[0].height/2:this.markerHeight,null!==L.template)this.createDataLabelTemplate(o,e,r,i,L,w,this.chart.redraw);else{u=r.enableRotation?Ke(r.font,L.text,r.angle,this.chart,this.chart.themeStyle.datalabelFont):(0,R.measureText)(L.text,r.font,this.chart.themeStyle.datalabelFont);var P=this.calculateTextPosition(i,e,u,r,w),A=new R.Rect(P.x+v.x,P.y+v.y,P.width,P.height);if(r.enableRotation){var M=this.getRectanglePoints(A);if(d=P.x+P.width/2,p=P.y+P.height/2,!(b="Rotate90"!==r.labelIntersectAction&&-90!==S&&this.isDataLabelOverlapWithChartBound(M,this.chart,{x:0,y:0,width:0,height:0}))){this.chart.rotatedDataLabelCollections.push(M);for(var D=this.chart.rotatedDataLabelCollections.length-1,k=D;k>=0;k--)if(this.chart.rotatedDataLabelCollections[D]&&this.chart.rotatedDataLabelCollections[k-1]&&ut(this.chart.rotatedDataLabelCollections[D],this.chart.rotatedDataLabelCollections[k-1])){b=!0,this.chart.rotatedDataLabelCollections[D]=null;break}}}else b=ci(P,this.chart.dataLabelCollections,v);if(b&&"None"!==r.labelIntersectAction)qt(this.commonId+i.index+"_Text_0")&&e.chart.redraw&&e.currentData&&qt(this.commonId+i.index+"_Text_0").remove();else{var T=qt(this.commonId+i.index+"_TextShape_"+w);T&&(m={x:+T.getAttribute("x"),y:+T.getAttribute("y")}),this.chart.dataLabelCollections.push(A),this.isShape&&(g=this.chart.renderer.drawRectangle(new Ni(this.commonId+i.index+"_TextShape_"+w,L.color,L.border,r.opacity,P,r.rx,r.ry,"",r.border.dashArray),new Int32Array([v.x,v.y])),e.shapeElement&&ni(this.chart.enableCanvas,e.shapeElement,g,this.chart.redraw,!0,"x","y",m));var E=yi(fi("transparent"===this.fontBackground?this.chart.theme.indexOf("Dark")>-1||this.chart.theme.indexOf("HighContrast")>-1?"black":"white":this.fontBackground)),_=Math.round((299*E.r+587*E.g+114*E.b)/1e3);a=P.x+this.margin.left+u.width/2+f.x,l=r.enableRotation&&"PolarRadar"!==this.chart.chartAreaType?P.y+this.margin.top+u.height/2+u.width/4+("Auto"===r.position?i.regions[0].width/10:0)+f.y:P.y+this.margin.top+3*u.height/4+f.y,f={x:0,y:0},0!==S&&r.enableRotation?(s=d,h=p,c=S>360?S-360:S<-360?S+360:S):(c=0,s=P.x,h=P.y,a-="Cartesian"===this.chart.chartAreaType&&a+u.width/2>v.width?!this.chart.requireInvertedAxis&&a>v.width?0:a+u.width/2-v.width:0,l-=l+u.height>v.y+v.height&&!(e.type.indexOf("Bar")>-1)?l+u.height-(v.y+v.height):0);var I="Rotate90"===r.labelIntersectAction?"Top"===r.position?"start":"Middle"===r.position?"middle":"end":-90===S&&r.enableRotation?"Top"===r.position?"end":"Middle"===r.position?"middle":"start":"middle",O=void 0;this.chart.redraw&&document.getElementById(this.commonId+i.index+"_Text_"+w)&&(O=document.getElementById(this.commonId+i.index+"_Text_"+w).textContent),L.text&&x.push(Di(this.chart.renderer,new R.TextOption(this.commonId+(null!==e.removedPointIndex&&e.removedPointIndex<=i.index?i.index+1:i.index)+"_Text_"+w,a,l,I,L.text,"rotate("+c+","+s+","+h+")","auto",c),L.font,L.font.color||("Bootstrap5"===this.chart.theme?"#212529":"Bootstrap5Dark"===this.chart.theme?"#DEE2E6":_>=128||"Hilo"===e.type||"HiloOpenClose"===e.type?this.chart.theme.indexOf("Tailwind3")>-1?"#111827":"black":this.chart.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white"),e.textElement,!1,this.chart.redraw,!0,!1,e.chart.duration,e.clipRect,0,null,this.chart.enableCanvas,null,this.chart.themeStyle.datalabelFont,new ji(s,h))),this.isShape&&r.enableRotation&&g.setAttribute("transform","rotate("+r.angle+", "+s+", "+h+")"),this.chart.stackLabels.visible&&e.type.indexOf("Stacking")>-1&&(this.dataLabelRectCollection=this.dataLabelRectCollection?this.dataLabelRectCollection:{},this.dataLabelRectCollection[this.commonId+(null!==e.removedPointIndex&&e.removedPointIndex<=i.index?i.index+1:i.index)+"_Text_"+w]=A,this.dataLabelRectCollection[this.commonId+i.index+"_TextShape_"+w]=A),null!==e.removedPointIndex&&e.removedPointIndex<=i.index&&(e.textElement.lastChild.id=this.commonId+i.index+"_Text_"+w),this.chart.redraw&&O!==L.text&&Mi(e.textElement.querySelector("#"+this.commonId+i.index+"_Text_"+w),this.chart.duration,parseFloat(O),parseFloat(L.text),e.marker.dataLabel.format||e.yAxis.labelFormat)}}}}return x},e.prototype.renderStackLabels=function(){var e=this.chart.renderer.createGroup({id:this.chart.element.id+"_StackLabelGroup"});!this.chart.enableCanvas&&e&&this.chart.seriesElements.appendChild(e);var t={},i={},o=[],r=[],n=0;if(this.chart.visibleSeries&&this.chart.visibleSeries.length>0){for(var a=0;a<this.chart.visibleSeries.length;a++){r=Object.keys(o),o[(h=this.chart.visibleSeries[a]).stackingGroup]?void 0!==o[h.stackingGroup]&&o[h.stackingGroup].push(h):(o[h.stackingGroup]=[],o[h.stackingGroup].push(h))}if(""!==r[0])for(var l=0;l<r.length;l++){t={},i={};for(var s=o[r[l]][o[r[l]].length-1].index;s>=0;s--){var h=this.chart.visibleSeries[s];if(!this.chart.enableCanvas&&h.animation.enable&&this.chart.animateSeries&&e.setAttribute("visibility","hidden"),h.visible&&h.points&&h.points.length>0)for(var c=0;c<h.points.length;c++){var d=h.points[c];!t[p=String(d.x)]&&h.stackedValues.endValues[c]>0&&d.visible&&(t[p]=d),!i[p]&&h.stackedValues.endValues[c]<0&&d.visible&&(i[p]=d)}}n=this.calculateStackLabel(t,i,e,n)}else{for(s=this.chart.visibleSeries.length-1;s>=0;s--){h=this.chart.visibleSeries[s];if(!this.chart.enableCanvas&&h.animation.enable&&this.chart.animateSeries&&e.setAttribute("visibility","hidden"),h.visible&&h.points&&h.points.length>0)for(c=0;c<h.points.length;c++){var p;d=h.points[c];!t[p=String(d.x)]&&h.stackedValues.endValues[c]>0&&d.visible&&(t[p]=d),!i[p]&&h.stackedValues.endValues[c]<0&&d.visible&&(i[p]=d)}}this.calculateStackLabel(t,i,e,n)}}},e.prototype.calculateStackLabel=function(e,i,o,r){var n=this;return[e,i].forEach(function(a,l){if(a){var s,h=0;Object.keys(a).forEach(function(c){var d=a[c].series.stackedValues.endValues[a[c].index],p=i[c]?i[c].series.stackedValues.endValues[i[c].index]:0;if(0===l?(h=d+p,s=a[c]):e[c]||(h=d,s=a[c]),s&&s.symbolLocations[0]&&Pt(s.symbolLocations[0].x+s.series.clipRect.x,s.symbolLocations[0].y+s.series.clipRect.y,s.series.clipRect)){var u=s.series,g=s.symbolLocations[0],m=n.chart.stackLabels.format,y=h%1==0?h.toFixed(0):"0"===h.toFixed(2).slice(-1)?h.toFixed(1):h.toFixed(2);if(m)y=null!==m.match("{value}")?m.replace("{value}",y.toString()):n.chart.intl.getNumberFormat({format:m,useGrouping:n.chart.useGroupingSeparator})(h);var f=(0,t.extend)({},(0,t.getValue)("properties",n.chart.stackLabels.font),null,!0),v={cancel:!1,name:N,series:u,point:null,text:y,border:n.chart.stackLabels.border,color:n.chart.stackLabels.fill,template:null,font:f,location:null,textSize:(0,R.measureText)(y,n.chart.stackLabels.font,n.chart.themeStyle.datalabelFont)};if(n.chart.trigger(N,v),!v.cancel){var b=(0,R.measureText)(v.text,v.font,n.chart.themeStyle.datalabelFont),x=10;void 0===n.chartBackground&&(n.chartBackground="transparent"===n.chart.chartArea.background?n.chart.background||n.chart.themeStyle.background:n.chart.chartArea.background);var S=yi(fi("transparent"===v.color&&"transparent"===n.chartBackground?n.chart.theme.indexOf("Dark")>-1||n.chart.theme.indexOf("HighContrast")>-1?"black":"white":"transparent"!==n.chart.stackLabels.fill?n.chart.stackLabels.fill:n.chartBackground)),C=Math.round((299*S.r+587*S.g+114*S.b)/1e3),F=b.width+v.border.width+n.chart.stackLabels.margin.left+n.chart.stackLabels.margin.right-5,w=n.chart.requireInvertedAxis?5:n.chart.primaryYAxis.isInversed?0===l?b.height+5:-10:0===l?-10:b.height+5,L=n.chart.requireInvertedAxis?n.chart.primaryYAxis.isInversed?0===l?-(x+b.width/2):x+b.width/2:0===l?x+b.width/2:-(x+b.width/2):0;L+="Far"===v.font.textAlignment?F:"Near"===v.font.textAlignment?-F:0;var P=Math.max(u.clipRect.x+b.width,Math.min(L+u.clipRect.x+g.x,u.clipRect.x+u.clipRect.width-b.width)),A=Math.max(u.clipRect.y+b.height,Math.min(w+u.clipRect.y+g.y-(n.chart.stackLabels.angle>0&&!n.chart.requireInvertedAxis?b.width/2:0),u.clipRect.y+u.clipRect.height-b.height));n.chart.enableCanvas&&(P-=u.clipRect.x,A-=u.clipRect.y);var M=new R.Rect(P-b.width/2-n.chart.stackLabels.margin.left,A-b.height-n.chart.stackLabels.margin.top,b.width+(n.chart.stackLabels.margin.left+n.chart.stackLabels.margin.right),b.height+5+(n.chart.stackLabels.margin.top+n.chart.stackLabels.margin.bottom)),D=n.chart.renderer.drawRectangle(new Ni(n.chart.element.id+"StackLabel_TextShape_"+r,v.color,v.border,null,M,n.chart.stackLabels.rx,n.chart.stackLabels.ry,"",null),new Int32Array([g.x,g.y]));for(var k in D.setAttribute("transform","rotate("+n.chart.stackLabels.angle+", "+P+", "+A+")"),ni(n.chart.enableCanvas,o,D,n.chart.redraw),Di(n.chart.renderer,new R.TextOption(n.chart.element.id+"_StackLabel_"+r,P,A,"middle",v.text,"rotate("+n.chart.stackLabels.angle+", "+P+", "+A+")","auto",n.chart.stackLabels.angle),v.font,v.font.color||("Bootstrap5"===n.chart.theme?"#212529":"Bootstrap5Dark"===n.chart.theme?"#DEE2E6":C>=128?n.chart.theme.indexOf("Tailwind3")>-1?"#111827":"black":n.chart.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white"),o,null,n.chart.redraw,!0,null,n.chart.duration,u.clipRect,0,null,n.chart.enableCanvas,null,n.chart.themeStyle.datalabelFont,null),"StackingLine"!==u.type&&"StackingArea"!==u.type||document.querySelectorAll('[id^="'+n.chart.element.id+"_Series_"+u.index+"_Point_"+s.index+'_Text_"], \n                                [id^="'+n.chart.element.id+"_Series_"+u.index+"_Point_"+s.index+'_TextShape_"]').forEach(function(e){e.id&&(e.style.visibility="hidden",e.setAttribute("data-collide","true"))}),n.dataLabelRectCollection)if(Object.prototype.hasOwnProperty.call(n.dataLabelRectCollection,k)){var T=n.dataLabelRectCollection[k];if(T)if(ci(M,[T],{x:0,y:0,height:0,width:0})){var E=document.getElementById(k);E&&(E.style.visibility="hidden",E.setAttribute("data-collide","true"))}}}}r++})}}),r},e.prototype.getRectanglePoints=function(e){return[new ji(e.x,e.y),new ji(e.x+e.width,e.y),new ji(e.x+e.width,e.y+e.height),new ji(e.x,e.y+e.height)]},e.prototype.isDataLabelOverlapWithChartBound=function(e,t,i){for(var o=0;o<e.length;o++)if(!Pt(e[o].x+i.x,e[o].y+i.y,t.initialClipRect))return!0;return!1},e.prototype.createDataLabelTemplate=function(e,i,o,r,n,a,l){this.margin={left:0,right:0,bottom:0,top:0};var s=i.clipRect,h=Jt((0,t.createElement)("div",{id:this.chart.element.id+"_Series_"+(void 0===i.index?i.category:i.index)+"_DataLabel_"+r.index+(a?"_"+a:""),styles:"position: absolute;background-color:"+n.color+";"+ei(o.font,this.chart.themeStyle.datalabelFont)+";border:"+n.border.width+"px solid "+n.border.color+";"}),r.index,this.chart.enableHtmlSanitizer?this.chart.sanitize(n.template):n.template,this.chart,r,i,this.chart.element.id+"_DataLabel",a);this.calculateTemplateLabelSize(e,h,r,i,o,a,s,l)},e.prototype.calculateTemplateLabelSize=function(e,t,i,o,r,n,a,l,s){var h=ti(t,l,s),c=this.calculateTextPosition(i,o,{width:h.width,height:h.height},r,n),d=!1;s&&(d=0===h.width||0===h.height),t.style.left=("PolarRadar"===this.chart.chartAreaType?0:o.clipRect.x)+c.x-0+"px",t.style.top=("PolarRadar"===this.chart.chartAreaType?0:o.clipRect.y)+c.y+0+"px";var p=o.chart.requireInvertedAxis?o.xAxis:o.yAxis,u=o.chart.requireInvertedAxis?o.yAxis:o.xAxis;t.childElementCount&&!d&&(!ci(c,this.chart.dataLabelCollections,a)||"None"===r.labelIntersectAction)&&("XY"!==o.seriesType||void 0===i.yValue||ot(i.yValue,o.yAxis.visibleRange)||o.type.indexOf("Stacking")>-1||o.type.indexOf("100")>-1&&ot(o.stackedValues.endValues[i.index],o.yAxis.visibleRange))&&ot(i.xValue,o.xAxis.visibleRange)&&parseFloat(t.style.top)>=p.rect.y&&parseFloat(t.style.left)>=u.rect.x&&parseFloat(t.style.top)<=p.rect.y+p.rect.height&&parseFloat(t.style.left)<=u.rect.x+u.rect.width&&(this.chart.dataLabelCollections.push(new R.Rect(c.x+a.x,c.y+a.y,c.width,c.height)),ni(this.chart.enableCanvas,e,t,l,!0,"left","top"),o.animation.enable&&this.chart.animateSeries&&!this.chart.enableCanvas?this.doDataLabelAnimation(o,t):this.chart.enableCanvas&&e.appendChild(t))},e.prototype.calculateTextPosition=function(e,t,i,o,r){var n,a=r>1&&"Candle"===t.type?e.regions[1]:e.regions[0];r>1&&"HiloOpenClose"===t.type&&(a=2===r?e.regions[1]:e.regions[2]),n=this.getLabelLocation(e,t,i,r);var l=t.clipRect;if(this.chart.requireInvertedAxis&&this.isRectSeries(t)&&"BoxAndWhisker"!==t.type){this.locationY=n.y;s=i.width+this.borderWidth+this.margin.left+this.margin.right-5;n.x="Auto"===o.position?n.x:this.calculateAlignment(s,n.x,o.alignment,e.yValue<0),n.x=this.calculateRectPosition(n.x,a,e.yValue<0!==this.yAxisInversed,o.position,t,i,r,e)}else{this.locationX=n.x;var s=i.height+2*this.borderWidth+this.markerHeight+this.margin.bottom+this.margin.top+5;n.x="Auto"===o.position?n.x:this.calculateAlignment(s,n.x,o.alignment,!!this.isRectSeries(t)&&e.yValue<0),n.y=this.isRectSeries(t)&&"BoxAndWhisker"!==t.type?this.calculateRectPosition(n.y,a,e.yValue<0!==this.yAxisInversed,o.position,t,i,r,e):this.calculatePathPosition(n.y,o.position,t,e,i,r),this.isRectSeries(t)&&"PolarRadar"===this.chart.chartAreaType&&(n=this.calculatePolarRectPosition(n,o.position,t,e,i,r,o.alignment,s))}var h,c=ui(n,i,this.margin);return!0===o.enableRotation&&0!==o.angle||c.y>l.y+l.height||c.x>l.x+l.width||c.x+c.width<0||c.y+c.height<0||(c.x=c.x<0?"StackingColumn"!==t.type||this.inverted?5:0:c.x,c.y=c.y<0&&!this.chart.requireInvertedAxis&&"None"!==o.labelIntersectAction?5:c.y,c.x-=c.x+c.width>l.x+l.width?c.x+c.width-(l.x+l.width)+5:0,c.y-=c.y+c.height>l.y+l.height?c.y+c.height-(l.y+l.height)+5:0,this.fontBackground="transparent"===this.fontBackground?this.chartBackground:this.fontBackground),this.inverted&&t.isRectSeries&&c.x+c.width>a.x+a.width&&(h=!0),this.fontBackground=h?this.chartBackground:this.fontBackground,c},e.prototype.calculatePolarRectPosition=function(e,t,i,o,r,n,a,l){var s,h=this.chart.availableSize.width,c="Center"===a?0:"Far"===a?1:-1,d=o.regionData.startAngle-.5*Math.PI+(o.regionData.endAngle-o.regionData.startAngle)/2;return s=0===n?o.regionData.radius<o.regionData.innerRadius?o.regionData.innerRadius:o.regionData.radius:o.regionData.radius>o.regionData.innerRadius?o.regionData.innerRadius:o.regionData.radius,this.fontBackground="transparent"===this.fontBackground?this.chartBackground:this.fontBackground,i.drawType.indexOf("Stacking")>-1?t="Outer"===t?"Top":t:i.drawType.indexOf("Range")>-1&&(t="Outer"===t||"Top"===t?t:"Auto"),"Outer"===t?s=0===n?s+10+this.markerHeight:s-10-this.markerHeight:"Middle"===t?(s=s/2+5,"StackingColumn"===i.drawType&&(s=o.regionData.innerRadius+(o.regionData.radius-o.regionData.innerRadius)/2+5-r.height/2)):"Top"===t?s=0===n?s-10-this.markerHeight:s+10+this.markerHeight:"Bottom"===t?(s=10,s+="StackingColumn"===i.drawType?o.regionData.innerRadius+this.markerHeight:0):s=0===n?s>=i.chart.radius?s-5:"StackingColumn"===i.drawType?s-10:s+10:s>=i.chart.radius?s+5:s-10,s+=l*c,e.x=i.clipRect.width/2+i.clipRect.x+s*Math.cos(d),"StackingColumn"===i.drawType?e.x=e.x<h/2?e.x+r.width/2:e.x>h/2?e.x-r.width/2:e.x:"Column"===i.drawType&&(e.x=e.x<h/2?e.x-r.width/2:e.x>h/2?e.x+r.width/2:e.x),e.y=i.clipRect.height/2+i.clipRect.y+s*Math.sin(d),e},e.prototype.getLabelLocation=function(e,t,i,o){var r=new ji(0,0),n="Candle"===t.type&&o>1?e.regions[1]:e.regions[0];"HiloOpenClose"===t.type&&(n=2===o?e.regions[1]:e.regions[2]);var a=t.xAxis,l=t.yAxis,s=t.chart.requireInvertedAxis;if("BoxAndWhisker"===t.type){switch(this.markerHeight=0,o){case 0:r=oi(e.xValue,e.median,a,l,s);break;case 1:r=oi(e.xValue,e.maximum,a,l,s);break;case 2:r=oi(e.xValue,e.minimum,a,l,s);break;case 3:r=oi(e.xValue,e.upperQuartile,a,l,s);break;case 4:r=oi(e.xValue,e.lowerQuartile,a,l,s);break;default:r=oi(e.xValue,e.outliers[o-5],a,l,s),this.markerHeight=t.marker.height/2}s?r.y=e.regions[0].y+e.regions[0].height/2:r.x=e.regions[0].x+e.regions[0].width/2}else r=s&&t.type.indexOf("Stacking")>-1&&0===e.yValue?{x:n.x+n.width,y:n.y+n.height/2}:0===o||1===o?new ji(e.symbolLocations[0].x,e.symbolLocations[0].y):2!==o&&3!==o||"Candle"!==t.type?s?{x:n.x+n.width/2,y:n.y}:{x:n.x+n.width,y:n.y+n.height/2}:new ji(e.symbolLocations[1].x,e.symbolLocations[1].y);if(o>1&&"HiloOpenClose"===t.type)if(t.chart.requireInvertedAxis){var h=n.height;r.y=n.y+h/2+2*(2===o?1:-1)}else{var c=n.width;r.x=n.x+c/2+2*(2===o?1:-1)}return r},e.prototype.calculateRectPosition=function(e,t,i,o,r,n,a,l){if("PolarRadar"===r.chart.chartAreaType)return null;var s=this.margin,h=r.marker.dataLabel.enableRotation||this.inverted?n.width:n.height;switch("Bottom"===o&&"StackingColumn"===r.type&&!this.inverted&&t.height<n.height?this.extraSpace=this.borderWidth+(Math.abs(t.height-n.height/2)<5?0:5):this.extraSpace=this.borderWidth+h/2+("Outer"!==o&&r.type.indexOf("Column")>-1&&Math.abs(t.height-n.height)<5?0:5),"StackingColumn100"===r.type||"StackingBar100"===r.type?o="Outer"===o?"Top":o:r.type.indexOf("Range")>-1?o="Outer"===o||"Top"===o?o:"Auto":"Waterfall"===r.type&&(o="Auto"===o?"Middle":o),o){case"Bottom":e=this.inverted?i?e+("Waterfall"===r.type?+this.extraSpace+s.left+this.markerHeight:+t.width-this.extraSpace-s.left):e-t.width+this.extraSpace+s.right:i?e+("Waterfall"===r.type?-this.extraSpace-s.top-this.markerHeight:-t.height+this.extraSpace+s.top):e+t.height-this.extraSpace-s.bottom;break;case"Middle":e=e=this.inverted?i?e+t.width/2:e-t.width/2:i?e-t.height/2:e+t.height/2;break;case"Auto":e=this.calculateRectActualPosition(e,t,i,r,n,a,l);break;default:this.extraSpace+=this.errorHeight,e=this.calculateTopAndOuterPosition(e,t,o,r,a,this.extraSpace,i,l)}var c=this.inverted?e<t.x||e>t.x+t.width:e<t.y||e>t.y+t.height;this.fontBackground=c?"transparent"===this.fontBackground?this.chartBackground:this.fontBackground:"transparent"===this.fontBackground?l.color||r.interior:this.fontBackground;var d=r.chart.series.length;if("Outer"===o&&r.type.indexOf("Stacking")>-1&&d-1>r.index)for(var p=void 0,u=void 0,g=r.index+1;g<d;g++)if(u=(p=r.chart.series[g]).points[l.index],p.type.indexOf("Stacking")>-1&&-1===p.type.indexOf("100")){this.fontBackground=u&&(u.yValue<0&&l.yValue<0||u.yValue>0&&l.yValue>0)?u?u.color:p.interior:this.fontBackground;break}return e},e.prototype.calculatePathPosition=function(e,t,i,o,r,n){switch(i.type.indexOf("Area")>-1&&"RangeArea"!==i.type&&"SplineRangeArea"!==i.type&&"RangeStepArea"!==i.type&&this.yAxisInversed&&"Auto"!==i.marker.dataLabel.position&&(t="Top"===t?"Bottom":"Bottom"===t?"Top":t),this.fontBackground="transparent"===this.fontBackground?this.chartBackground:this.fontBackground,t){case"Top":case"Outer":e=e-this.markerHeight-this.borderWidth-r.height/2-this.margin.bottom-5-this.errorHeight;break;case"Bottom":e=e+this.markerHeight+this.borderWidth+r.height/2+this.margin.top+5+this.errorHeight;break;case"Auto":e=this.calculatePathActualPosition(e,this.markerHeight,i,o,r,n)}return e},e.prototype.isDataLabelShape=function(e){this.isShape="transparent"!==e.color||e.border.width>0,this.borderWidth=e.border.width,this.isShape||(this.margin={left:0,right:0,bottom:0,top:0})},e.prototype.calculateRectActualPosition=function(e,t,i,o,r,n,a){for(var l,s,h=!0,c=0,d=this.chart.dataLabelCollections,p=-1!==o.type.indexOf("Range")||"Hilo"===o.type?2:4;h&&c<p;){var u=this.getPosition(c);this.fontBackground=o.marker.dataLabel.fill,o.type.indexOf("Stacking")>-1&&"Outer"===u&&(u="Top",c++),l=this.calculateRectPosition(e,t,i,u,o,r,n,a),this.inverted?h=(s=ui(new ji(l,this.locationY),r,this.margin)).x<0||ci(s,d,o.clipRect)||s.x+s.width>o.clipRect.width:(o.marker.dataLabel.enableRotation&&(r.width=r.width-a.regions[0].width/10),h=(s=ui(new ji(this.locationX,l),r,this.margin)).y<0||ci(s,d,o.clipRect)||s.y>o.clipRect.height,null===o.marker.dataLabel.template&&!0!==h&&(h=s.y/2+r.height+("Outer"===u?a.regions[0].height+this.extraSpace:a.regions[0].height-2*this.extraSpace)>o.clipRect.height)),c++}return l},e.prototype.calculateAlignment=function(e,t,i,o){switch(i){case"Far":t=this.inverted?o?t-e:t+e:o?t+e:t-e;break;case"Near":t=this.inverted?o?t+e:t-e:o?t-e:t+e}return t},e.prototype.calculateTopAndOuterPosition=function(e,t,i,o,r,n,a,l){var s,h=this.margin;switch(o.type){case"RangeColumn":case"RangeArea":case"RangeStepArea":case"SplineRangeArea":case"Hilo":s=0===r&&!this.yAxisInversed||1===r&&this.yAxisInversed,e=this.updateLabelLocation(i,e,n,h,t,s);break;case"Candle":s=(0===r||2===r)&&!this.yAxisInversed||(1===r||3===r)&&this.yAxisInversed,e=this.updateLabelLocation(i,e,n,h,t,s,r>1);break;case"HiloOpenClose":r<=1?(s=0===r&&!this.yAxisInversed||1===r&&this.yAxisInversed,e=this.updateLabelLocation(i,e,n,h,t,s)):e=this.yAxisInversed?this.inverted?e-n-h.right:e+n+h.top:this.inverted?e+n+h.left:e-n-h.bottom;break;default:e=a&&"Top"===i||!a&&"Outer"===i||"Top"===i&&0===o.visiblePoints[l.index].yValue?this.inverted?e+(a&&"Waterfall"===o.type?+t.width-n-h.left:+n+h.left+this.markerHeight):e+(a&&"Waterfall"===o.type?-t.height+n+h.bottom:-n-h.bottom-this.markerHeight):this.inverted?e+(a&&"Waterfall"===o.type?+t.width+n+h.top:-n-h.right-this.markerHeight):e+(a&&"Waterfall"===o.type?-t.height-n-h.top:+n+h.top+this.markerHeight)}return e},e.prototype.updateLabelLocation=function(e,t,i,o,r,n,a){return void 0===a&&(a=!1),t=this.inverted?n?"Outer"!==e||a?t-i-o.right-this.markerHeight:t+i+o.left+this.markerHeight:"Outer"!==e||a?t-r.width+i+o.left+this.markerHeight:t-r.width-i-o.right-this.markerHeight:n?"Outer"!==e||a?t+i+o.top+this.markerHeight:t-i-o.bottom-this.markerHeight:"Outer"!==e||a?t+r.height-i-o.bottom-this.markerHeight:t+r.height+i+o.top+this.markerHeight},e.prototype.calculatePathActualPosition=function(e,t,i,o,r,n){var a,l,s,h,c,d=i.points,p=o.index,u=d[p].yValue,g=d.length-1>p?d[p+1]:null,m=p>0?d[p-1]:null,y=!0,f=this.chart.dataLabelCollections;if("Bubble"===i.type)a="Top";else if(i.type.indexOf("Step")>-1)a="Top",p&&(a=m&&m.visible&&u>m.yValue===this.yAxisInversed&&u!==m.yValue?"Bottom":"Top");else if("BoxAndWhisker"===i.type)1===n||3===n||n>4?a=i.yAxis.isAxisInverse?"Bottom":"Top":2===n||4===n?a=i.yAxis.isAxisInverse?"Top":"Bottom":(y=!1,a="Middle",l=this.calculatePathPosition(e,a,i,o,r,n));else if(0===p)a=!g||!g.visible||u>g.yValue||u<g.yValue&&this.yAxisInversed?"Top":"Bottom";else if(p===d.length-1)a=!m||!m.visible||u>m.yValue||u<m.yValue&&this.yAxisInversed?"Top":"Bottom";else if(g.visible||m&&m.visible)if(g.visible&&m){var v=(g.yValue-m.yValue)/2,b=v*p+(g.yValue-v*(p+1));a=this.yAxisInversed?b<u?"Bottom":"Top":b<u?"Top":"Bottom"}else a=g.yValue>u||m&&m.yValue>u?"Bottom":"Top";else a="Top";for(h="Bottom"===a,c=["Outer","Top","Bottom","Middle","Auto"].indexOf(a);y&&c<4;)l=this.calculatePathPosition(e,this.getPosition(c),i,o,r,n),y=(s=ui(new ji(this.locationX,l),r,this.margin)).y<0||ci(s,f,i.clipRect)||s.y+s.height>i.clipRect.height,c=h?c-1:c+1,h=!1;return l},e.prototype.doDataLabelAnimation=function(e,t){for(var i,o=e.shapeElement.childNodes,r=e.textElement.childNodes,n=e.animation.delay+e.animation.duration,a=e.chart.animated?e.chart.duration:200,l=t?1:r.length,s=0;s<l;s++)i=r[s],t?(t.style.visibility="hidden",Ut(t,n,a,"ZoomIn")):(new ji(+i.getAttribute("x")+ +i.getAttribute("width")/2,+i.getAttribute("y")+ +i.getAttribute("height")/2),It(i,n,e.animation.duration,e,null,0,!0),o[s]&&(i=o[s],new ji(+i.getAttribute("x")+ +i.getAttribute("width")/2,+i.getAttribute("y")+ +i.getAttribute("height")/2),It(i,n,e.animation.duration,e,null,0,!0)))},e.prototype.getPosition=function(e){return["Outer","Top","Bottom","Middle","Auto"][e]},e.prototype.getModuleName=function(){return"DataLabel"},e.prototype.destroy=function(){},e}(),Un=function(){function e(e){this.chart=e}return e.prototype.render=function(e){if("PolarRadar"===this.chart.chartAreaType)return null;this.createElement(e,this.chart),this.renderErrorBar(e)},e.prototype.renderErrorBar=function(e){for(var t,i,o=e.index,r=e.errorBar,n=e.errorBar.errorBarCap,a=["",""],l=e.chart.redraw,s=0,h=e.points;s<h.length;s++){var c=h[s];if(c.visible&&c.symbolLocations[0]){var d=0,p=0;switch(r.mode){case"Vertical":p=c.verticalError;break;case"Horizontal":d=c.horizontalError;break;case"Both":d=c.horizontalError,p=c.verticalError}a=this["calculate"+r.type+"Value"](c,e,this.chart.requireInvertedAxis,d,p),t=this.chart.element.id+"_Series__ErrorBarGroup_"+o+"_Point_"+c.index,i=this.chart.element.id+"_Series__ErrorBarCap_"+o+"_Point_"+c.index;var u=new R.PathOption(t,"",r.width,r.errorBarColorMapping?c.errorBarColor:r.color||this.chart.themeStyle.errorBar,null,"",a[0]),g=qt(u.id),m=g?g.getAttribute("d"):null;e.errorBarElement&&e.errorBarElement.appendChild(this.chart.renderer.drawPath(u)),zt(g,a[0],l,m,this.chart.duration);var y=new R.PathOption(i,"",n.width,r.errorBarCap.color?n.color:r.errorBarColorMapping?c.errorBarColor:r.color||this.chart.themeStyle.errorBar,null,"",a[1]);m=(g=qt(y.id))?g.getAttribute("d"):null,e.errorBarElement&&ni(this.chart.enableCanvas,e.errorBarElement,this.chart.renderer.drawPath(y),l),zt(g,a[1],l,m,this.chart.duration)}}},e.prototype.findLocation=function(e,t,i,o,r){var n=t.errorBar,a=n.direction,l=[],s=t.type.indexOf("Stacking")>-1?t.stackedValues.endValues[e.index]:"HighLow"===t.seriesType||"HighLowOpenClose"===t.seriesType?t.points[e.index].high:e.yValue,h=oi(e.xValue+("Plus"===a||"Both"===a?"Custom"!==n.type||"Horizontal"!==n.mode&&"Both"!==n.mode?o:o=e.horizontalPositiveError:0),s+("Plus"===a||"Both"===a?"Custom"!==n.type||"Vertical"!==n.mode&&"Both"!==n.mode?r:r=e.verticalPositiveError:0),t.xAxis,t.yAxis,i);if(l.push(h),t.isRectSeries){var c=e.symbolLocations[0];l.push(c)}else{c=oi(e.xValue,e.yValue,t.xAxis,t.yAxis,i);l.push(c)}var d=oi(e.xValue-("Minus"===a||"Both"===a?"Custom"!==n.type||"Horizontal"!==n.mode&&"Both"!==n.mode?o:o=e.horizontalNegativeError:0),s-("Minus"===a||"Both"===a?"Custom"!==n.type||"Vertical"!==n.mode&&"Both"!==n.mode?r:r=e.verticalNegativeError:0),t.xAxis,t.yAxis,i);return l.push(d),e.error="Vertical"===n.mode?n.verticalError:n.horizontalError,this.negativeHeight="Vertical"===n.mode||"Both"===n.mode?i?l[1].x-l[2].x:l[2].y-l[1].y:0,this.positiveHeight="Vertical"===n.mode||"Both"===n.mode?i?l[0].x-l[1].x:l[1].y-l[0].y:0,this.getErrorDirection(l[0],l[1],l[2],t,i)},e.prototype.calculateFixedValue=function(e,t,i,o,r){return this.findLocation(e,t,i,o,r)},e.prototype.calculatePercentageValue=function(e,t,i,o,r){return o=o/100*e.xValue,r=r/100*e.yValue,this.findLocation(e,t,i,o,r)},e.prototype.calculateStandardDeviationValue=function(e,t,i,o,r){var n=this.meanCalculation(t,t.errorBar.mode);return o*=n.horizontalSquareRoot+n.horizontalMean,r*=n.verticalSquareRoot+n.verticalMean,this.findLocation(e,t,i,o,r)},e.prototype.calculateStandardErrorValue=function(e,t,i,o,r){var n=t.points.length,a=this.meanCalculation(t,t.errorBar.mode);return o=o*a.horizontalSquareRoot/Math.sqrt(n),r=r*a.verticalSquareRoot/Math.sqrt(n),this.findLocation(e,t,i,o,r)},e.prototype.calculateCustomValue=function(e,t,i,o,r){return this.findLocation(e,t,i,o,r)},e.prototype.getHorizontalDirection=function(e,t,i,o,r,n){var a="",l="";return a+="M "+e.x+" "+t.y+" L "+i.x+" "+t.y,l+="Plus"===o||"Both"===o?"M "+e.x+" "+(t.y-n)+" L "+e.x+" "+(t.y+n):"",[a,l+="Minus"===o||"Both"===o?"M "+i.x+" "+(t.y-n)+" L "+i.x+" "+(t.y+n):" "]},e.prototype.getVerticalDirection=function(e,t,i,o,r,n){var a="",l="";return a+="M "+t.x+" "+e.y+" L "+t.x+" "+i.y,l+="Plus"===o||"Both"===o?"M "+(t.x-n)+" "+e.y+" L "+(t.x+n)+" "+e.y:"",[a,l+="Minus"===o||"Both"===o?"M "+(t.x-n)+" "+i.y+" L "+(t.x+n)+" "+i.y:""]},e.prototype.getBothDirection=function(e,t,i,o,r,n){var a=this.getHorizontalDirection(e,t,i,o,r,n),l=this.getVerticalDirection(e,t,i,o,r,n);return[a[0].concat(l[0]),a[1].concat(l[1])]},e.prototype.getErrorDirection=function(e,t,i,o,r){var n,a=o.errorBar.direction,l=o.errorBar.mode,s=o.errorBar.errorBarCap.length,h=l;switch(l){case"Both":h=l;break;case"Horizontal":h=r?"Vertical":l;break;case"Vertical":h=r?"Horizontal":l}switch(h){case"Horizontal":n=this.getHorizontalDirection(e,t,i,a,h,s);break;case"Vertical":n=this.getVerticalDirection(e,t,i,a,h,s);break;case"Both":n=this.getBothDirection(e,t,i,a,h,s)}return[n[0],n[1]]},e.prototype.meanCalculation=function(e,t){var i=0,o=0,r=0,n=0,a=e.points.length;switch(t){case"Vertical":r=(o=at(e.yData))/a;break;case"Horizontal":n=(i=at(e.xData))/a;break;case"Both":r=(o=at(e.yData))/a,n=(i=at(e.xData))/a}for(var l=0,s=e.points;l<s.length;l++){var h=s[l];"Vertical"===t?o+=Math.pow(h.yValue-r,2):("Horizontal"===t||(o+=Math.pow(h.yValue-r,2)),i+=Math.pow(h.xValue-n,2))}var c=o/(a-1),d=Math.sqrt(o/(a-1)),p=i/(a-1),u=Math.sqrt(i/(a-1));return new St(c,d,p,u,r,n)},e.prototype.createElement=function(e,t){var i="Cartesian"===t.chartAreaType?"translate("+e.clipRect.x+","+e.clipRect.y+")":"",o=e.marker.height/2,r=e.marker.width/2;if("Cartesian"===t.chartAreaType){var n=new Ni(t.element.id+"_ChartErrorBarClipRect_"+e.index,"transparent",{width:1,color:"Gray"},1,{x:-r,y:-o,width:e.clipRect.width+2*r,height:e.clipRect.height+2*o});e.errorBarElement=t.renderer.createGroup({id:t.element.id+"ErrorBarGroup"+e.index,transform:i,"clip-path":"url(#"+t.element.id+"_ChartErrorBarClipRect_"+e.index+")"}),e.errorBarElement&&e.errorBarElement.appendChild(Nt(t.redraw,n,t.renderer))}},e.prototype.doErrorBarAnimation=function(e){var i=e.errorBarElement.childNodes;if(!i)return null;for(var o=e.animation.delay+(0===e.animation.duration&&"Enable"===t.animationMode?1e3:e.animation.duration),r=1;r<i.length;){for(var n=0;n<e.points.length;n++)e.points[n].symbolLocations[0]&&(i[r].style.visibility="hidden",Ut(i[r],o,350,e.chart.requireInvertedAxis?"SlideLeftIn":"SlideBottomIn",!1));r++}},e.prototype.getModuleName=function(){return"ErrorBar"},e.prototype.destroy=function(){},e}(),Xn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Gn=function(e){function i(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return Xn(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},i.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&(this.move(e),this.chart.highlightModule&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)))for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=void 0,r=0,n=t;r<n.length;r++){var a=n[r];if(i.indexOf(a)>-1){o=parseInt(i.split(a)[1],10),this.chart.highlightModule.legendSelection(this.chart,o,e.target,e.type);break}}},i.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.getLegendOptions=function(e,t){var i,o;this.legendCollections=[];var r=[];this.isRtlEnable=t.enableRtl,this.isReverse=!this.isRtlEnable&&t.legendSettings.reverse,e.length>1&&(this.legend.mode="Series");for(var n=0,a=e;n<a.length;n++){var l=a[n];if("Series"===this.legend.mode)"Indicator"!==l.category&&(i="PolarRadar"===t.chartAreaType?l.drawType:l.type,o=l.interior,this.legendCollections.push(new Eo(l.name,o,l.legendShape,"TrendLine"===l.category?this.chart.series[l.sourceIndex].trendlines[l.index].visible:l.visible,i,l.legendImageUrl?l.legendImageUrl:"Scatter"===l.type&&"Image"===l.marker.shape?l.marker.imageUrl:"",l.marker.shape,l.marker.visible,null,null,l.dashArray)));else if("Point"===this.legend.mode)for(var s=0,h=l.points;s<h.length;s++){var c=h[s];i="PolarRadar"===t.chartAreaType?l.drawType:l.type,o=c.interior?c.interior:l.interior,this.legendCollections.push(new Eo(c.x.toString(),o,l.legendShape,"TrendLine"===l.category?this.chart.series[l.sourceIndex].trendlines[l.index].visible:c.visible,i,"Scatter"===l.type&&"Image"===l.marker.shape?l.marker.imageUrl:"",l.marker.shape,l.marker.visible,null,null,l.dashArray))}else if("Range"===this.legend.mode)for(var d=0,p=l.points;d<p.length;d++){c=p[d];i="PolarRadar"===t.chartAreaType?l.drawType:l.type,o=c.interior?c.interior:l.interior;var u="Others";if(r.indexOf(o)<0&&(r.push(o),t.rangeColorSettings.length>=1&&1===t.rangeColorSettings[0].colors.length)){for(var g=0,m=t.rangeColorSettings;g<m.length;g++){var y=m[g];y.colors[0]===o&&(u=y.label)}this.legendCollections.push(new Eo(u,o,l.legendShape,"TrendLine"===l.category?this.chart.series[l.sourceIndex].trendlines[l.index].visible:c.visible,i,"Scatter"===l.type&&"Image"===l.marker.shape?l.marker.imageUrl:"",l.marker.shape,l.marker.visible,null,null,l.dashArray))}}else if(0===this.legendCollections.length&&t.rangeColorSettings.length>0){var f=t.rangeColorSettings[0].start.toString(),v=t.rangeColorSettings[t.rangeColorSettings.length-1].end.toString();this.legendCollections.push(new Eo(f,l.interior,"Rectangle",!0,i,"",l.marker.shape,l.marker.visible)),this.legendCollections.push(new Eo(v,l.interior,"Rectangle",!0,i,"",l.marker.shape,l.marker.visible))}}this.isReverse&&"Gradient"!==t.legendSettings.mode&&this.legendCollections.reverse()},i.prototype.getLegendBounds=function(e,t,i){this.calculateLegendTitle(i,t),this.isTitle=!!i.title,this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var o,r=i.padding,n=i.titlePosition,a=0,l=0,s=this.arrowWidth,h=this.arrowHeight,c=this.isVertical&&!i.enablePages?h:0,d=this.isTitle&&"Top"===n?this.legendTitleSize.height+this.fivePixel:0;d=this.isTitle&&this.isVertical&&"Top"!==n?this.legendTitleSize.height+this.fivePixel:d,this.isVertical?l=i.width?0:e.width/100*5:a=i.height?0:e.height/100*5,t.height+=a,t.width+=l;var p,u=i.shapeWidth,g=i.shapePadding,m=0,y=0,f=0,v=0,b=0,x=0,S=0,C=!1;this.maxItemHeight=Math.max((0,R.measureText)("MeasureText",i.textStyle,this.chart.themeStyle.legendLabelFont).height,i.shapeHeight);var F="Auto"===i.layout&&i.maximumColumns>0;if(i.fixedWidth)for(var w=0;w<this.legendCollections.length;w++){var L=u+g+(this.isVertical||0===w?r:this.itemPadding)+(i.maximumLabelWidth?i.maximumLabelWidth:(0,R.measureText)(this.legendCollections[w].text,i.textStyle,this.chart.themeStyle.legendLabelFont).width);this.maxWidth=Math.max(this.maxWidth,L)}for(w=0;w<this.legendCollections.length;w++)if(o=this.legendCollections[w],ve.test(o.text)&&(o.text=Oi(o.text,ve)),be.test(o.text)&&(o.text=Oi(o.text,be)),p={fill:o.fill,text:o.text,shape:o.shape,markerShape:o.markerShape,name:B,cancel:!1},this.chart.trigger(B,p),o.render=!p.cancel,o.text=p.text,o.fill=p.fill,o.shape=p.shape,o.markerShape=p.markerShape,o.textSize=(0,R.measureText)(o.text,i.textStyle,this.chart.themeStyle.legendLabelFont),u=o.text?i.shapeWidth:0,g=o.text?i.shapePadding:0,o.render&&o.text){C=!0,y+=f=i.fixedWidth?this.maxWidth:u+g+(i.maximumLabelWidth?i.maximumLabelWidth:o.textSize.width)+(this.isVertical&&"Horizontal"!==i.layout||0===w||1===b&&x>0&&"Horizontal"===i.layout?r:this.itemPadding),i.enablePages||this.isVertical||(S=this.isTitle&&"Top"!==n?this.legendTitleSize.width+this.fivePixel:0,S+=s),this.getLegendHeight(o,i,t,y,this.maxItemHeight,r),(F?b===i.maximumColumns:"Vertical"===i.layout||t.width<r+y+S||this.isVertical&&"Auto"===i.layout)&&(m=Math.max(m,y+r+S-(this.isVertical&&"Auto"===this.legend.layout?0:f)),0===x&&f!==y&&(x=1),y=this.isVertical&&"Auto"===this.legend.layout?0:f,x++,b=0,v=c);var P=x>0?x-1:0;this.rowHeights[P]=Math.max(this.rowHeights[P]?this.rowHeights[P]:0,Math.max(o.textSize.height,i.shapeHeight)),this.columnHeights[b]=(this.columnHeights[b]?this.columnHeights[b]:0)+Math.max(o.textSize.height,i.shapeHeight)+(this.isVertical||x>0&&this.legend.itemPadding?0===w?r:this.itemPadding:r),b++}v=Math.max.apply(null,this.columnHeights)+r+d,v=Math.max(v,this.maxItemHeight+r+r+d),"Horizontal"===i.layout&&(v=this.maxItemHeight+2*r+d+this.pageButtonSize+i.border.width),this.isPaging=(t.height<v||"Horizontal"===i.layout&&this.rowHeights.length>1)&&!F,this.isPaging&&!i.enablePages&&(this.isVertical||(v=this.maxItemHeight+r+r+("Top"===n?d:0))),this.totalPages=x,F&&this.maxWidth&&i.fixedWidth&&(y=this.maxWidth*i.maximumColumns,this.isPaging=!1),this.isPaging&&"Auto"===this.legend.layout||this.isVertical||(y+=this.isTitle&&"Top"!==n?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0),C?this.setBounds(Math.max(y+r,m),v,i,t):this.setBounds(0,0,i,t)},i.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=_i(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,null,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},i.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=this.legend.fixedWidth?this.maxWidth:i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),h=o.location.x+(this.isRtlEnable?-s:s);("Auto"===this.legend.layout&&this.legend.maximumColumns>0?n%this.legend.maximumColumns===0:"Vertical"===this.legend.layout||this.isWithinBounds(h,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r)||this.isVertical&&"Auto"===this.legend.layout)?(e.location.x=t.x,n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+(!this.isVertical||"Horizontal"===this.legend.layout||this.legend.maximumColumns>0?this.rowHeights[this.chartRowCount-2]:Math.max(o.textSize.height,this.legend.shapeHeight))+(this.isVertical||this.chartRowCount>1&&this.legend.itemPadding?this.itemPadding:l)):(e.location.x=n===a?o.location.x:h,e.location.y=o.location.y);var c=this.isRtlEnable?e.location.x-i+this.itemPadding+this.legend.shapeWidth/2-this.legendBounds.x:this.legendBounds.x+this.legendBounds.width-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);this.isVertical||!this.isPaging||this.legend.enablePages||(c=this.legendBounds.width-e.location.x-this.fivePixel),c=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,c):c,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=Fi(+c.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},i.prototype.isWithinBounds=function(e,t,i){return this.isRtlEnable?e-t<i.x-this.legend.shapeWidth/2:e+t>i.x+i.width+this.legend.shapeWidth/2},i.prototype.LegendClick=function(e,t){var i=this.chart,o="Series"===i.legendSettings.mode?e:0,r=this.isReverse?this.legendCollections.length-1-e:e,n=i.visibleSeries[o],a=this.legendCollections[r],l="isProtectedOnChange";if("Series"===i.legendSettings.mode){var s={legendText:a.text,legendShape:a.shape,chart:i,series:n,points:n.points,name:I,cancel:!1};this.chart.trigger(I,s),n.legendShape=s.legendShape,s.cancel||(null!==n.fill&&(i.visibleSeries[e].interior=n.fill),i.legendSettings.toggleVisibility?(n.chart[l]=!0,"TrendLine"===n.category?!i.series[n.sourceIndex].trendlines[n.index].visible&&i.series[n.sourceIndex].visible?i.series[n.sourceIndex].trendlines[n.index].visible=!0:i.series[n.sourceIndex].trendlines[n.index].visible=!1:this.changeSeriesVisiblity(n,n.visible),a.visible="TrendLine"===n.category?i.series[n.sourceIndex].trendlines[n.index].visible:n.visible,this.refreshLegendToggle(i,n),i.highlightModule&&i.legendSettings.enableHighlight&&i.highlightModule.legendSelection(i,e,t.target,"mousemove")):i.highlightModule?i.highlightModule.legendSelection(i,e,t.target,t.type):i.selectionModule&&i.selectionModule.legendSelection(i,e,t.target,t.type),n.chart[l]=!1)}else if("Point"===i.legendSettings.mode){var h=n.points[e];s={legendText:a.text,legendShape:a.shape,chart:i,series:n,points:[h],name:I,cancel:!1};if(this.chart.trigger(I,s),i.legendSettings.toggleVisibility&&!s.cancel)h.visible=!h.visible,(d=this.legendCollections[e]).visible=h.visible,this.refreshLegendToggle(i,n)}else if("Range"===i.legendSettings.mode){for(var c=[],d=this.legendCollections[e],p=0,u=n.points;p<u.length;p++){h=u[p];d.fill===(h.interior||n.interior)&&c.push(h)}s={legendText:a.text,legendShape:a.shape,chart:i,series:n,points:c,name:I,cancel:!1};if(this.chart.trigger(I,s),i.legendSettings.toggleVisibility&&!s.cancel){d.visible=!d.visible;for(var g=0,m=c;g<m.length;g++){(h=m[g]).visible=!h.visible}this.refreshLegendToggle(i,n)}}},i.prototype.refreshLegendToggle=function(e,i){var o=[];if(e.selectionModule&&(o=(0,t.extend)([],e.selectionModule.selectedDataIndexes,null,!0)),e.svgObject.childNodes.length>0&&!e.enableAnimation&&!e.enableCanvas){for(;e.svgObject.lastChild;)e.svgObject.removeChild(e.svgObject.lastChild);(0,t.remove)(e.svgObject)}e.animateSeries=!1,e.redraw=e.enableAnimation,i.isLegendClicked=!0,e.rotatedDataLabelCollections=[],Je((0,R.getElement)(e.element.id+"_Secondary_Element").querySelectorAll(".ejSVGTooltip")[0]),this.redrawSeriesElements(i,e),e.removeSvg(),e.refreshAxis(),i.refreshAxisLabel(),this.refreshSeries(e.visibleSeries);for(var r=0,n=e.visibleSeries;r<n.length;r++){var a=n[r];(0,t.isNullOrUndefined)(a)||e.markerRender.removeHighlightedMarker(a,null,!0)}e.refreshBound(),e.trigger("loaded",{chart:e}),o.length>0&&(e.selectionModule.selectedDataIndexes=o,e.selectionModule.redrawSelection(e,e.selectionMode)),e.enableCanvas||!e.highlightModule||"None"===e.highlightMode&&!e.legendSettings.enableHighlight||e.highlightModule.redrawSelection(e,e.highlightMode),e.redraw=!1,i.isLegendClicked=!1},i.prototype.changeSeriesVisiblity=function(e,t){e.visible=!t,this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),(this.isSecondaryAxis(e.yAxis)||"Pareto"===e.category&&"Line"===e.type)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),e.trendlines.length&&e.visible&&e.trendlines.forEach(function(e){e.visible=!0})},i.prototype.isSecondaryAxis=function(e){return this.chart.axes.indexOf(e)>-1},i.prototype.redrawSeriesElements=function(e,t){if(!t.redraw)return null;Je(t.element.id+"_Series_"+(void 0===e.index?e.category:e.index)+"_DataLabelCollections")},i.prototype.refreshSeries=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];if(o.type.indexOf("Spline")>-1){var r=o.type.indexOf("Area")>-1||o.drawType.indexOf("Area")>-1,n=o.type.indexOf("Range")>-1;this.chart["spline"+(r?n?"RangeArea":"Area":"")+"SeriesModule"].findSplinePoint(o)}o.visible&&(o.position=void 0)}},i.prototype.click=function(e){var t=this;if(this.chart.legendSettings.visible){for(var i,o,r=this.chart.mouseX,n=this.chart.mouseY,a=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,l=0,s=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_"];l<s.length;l++){var h=s[l];if(a.indexOf(h)>-1){o=parseInt(a.split(h)[1],10),this.LegendClick(o,e);break}}a.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):a.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1),this.chart.enableCanvas&&this.pagingRegions.length&&this.checkWithinBounds(r,n),(i=this.legendRegions.filter(function(e){return Pt(r,n+(t.isPaging?(t.currentPageNumber-1)*t.translatePage(t.chart.enableCanvas,null,1,2):0),e.rect)})).length&&this.chart.enableCanvas&&this.LegendClick(i[0].index,e)}},i.prototype.checkWithinBounds=function(e,t){var i=this.chart.renderer,o=this.legendBounds,r=this.chart.legendSettings.border.width,n=new R.Rect(o.x,o.y,o.width,o.height);return n.x=n.x-r/2,n.y=n.y-r/2,n.width=n.width+r,n.height=n.height+r,Pt(e,t,this.pagingRegions[0])?(this.isRtlEnable?this.canvasPageUp(i,n,o):this.canvasPageDown(i,n,o),null):Pt(e,t,this.pagingRegions[1])?(this.isRtlEnable?this.canvasPageDown(i,n,o):this.canvasPageUp(i,n,o),null):void 0},i.prototype.canvasPageDown=function(e,t,i){--this.currentPageNumber>0?(this.legendRegions=[],e.clearRect(t),e.canvasClip(new Ni("legendClipPath","transparent",{width:0,color:""},null,t)),this.renderLegend(this.chart,this.legend,i),e.canvasRestore()):++this.currentPageNumber},i.prototype.canvasPageUp=function(e,t,i){++this.currentPageNumber>0&&this.currentPageNumber<=this.totalNoOfPages?(this.legendRegions=[],e.clearRect(t),e.canvasClip(new Ni("legendClipPath","transpaent",{width:0,color:""},null,t)),this.renderLegend(this.chart,this.legend,i),e.canvasRestore()):--this.currentPageNumber},i.prototype.getModuleName=function(){return"Legend"},i.prototype.destroy=function(){this.removeEventListener()},i}(To),Yn=function(){function e(e){this.control=e}return e.prototype.render=function(e,i){return this.isChart="chart"===this.control.getModuleName(),this.annotation=e,Jt((0,t.createElement)("div",{id:this.control.element.id+"_Annotation_"+i,styles:"position: absolute; z-index: 1"}),i,this.control.enableHtmlSanitizer?this.control.sanitize(e.content):e.content,this.control)},e.prototype.setAnnotationPixelValue=function(e){var t="Chart"===this.annotation.region?new R.Rect(0,0,this.control.availableSize.width,this.control.availableSize.height):this.isChart?this.control.chartAxisLayoutPanel.seriesClipRect:this.control.series[0].accumulationBound;return e.x=("string"!=typeof this.annotation.x?"number"==typeof this.annotation.x?this.annotation.x:0:Li(this.annotation.x,t.width))+t.x,e.y=("number"==typeof this.annotation.y?this.annotation.y:Li(this.annotation.y,t.height))+t.y,!0},e.prototype.setAnnotationPointValue=function(e){var t=new ji(0,0);if(this.isChart){for(var i=this.control,o=this.annotation,r=o.xAxisName,n=o.yAxisName,a=i.requireInvertedAxis,l=this.control.stockChart,s=void 0,h=void 0,c=void 0,d=0,p=i.axisCollections;d<p.length;d++){var u=p[d];if(r===u.name||null==r&&"primaryXAxis"===u.name)if((s=u).isIndexed)c=Number(o.x);else if(s.valueType.indexOf("Category")>-1){var g="DateTimeCategory"===s.valueType?o.x.getTime().toString():o.x;if("object"==typeof g)for(var m=0;m<s.labels.length;m++)s.labels[m].toString()===o.x.toString()&&(c=m);if(s.labels.indexOf(g)<0)return!1;c=s.labels.indexOf(g)}else if("DateTime"===s.valueType){var y={skeleton:"full",type:"dateTime"};c="object"==typeof this.annotation.x||"object"==typeof new Date(this.annotation.x)?Date.parse(i.intl.getDateParser(y)(i.intl.getDateFormat(y)(new Date(ao.DataUtil.parse.parseJson({val:o.x}).val)))):0}else c=+o.x;else(n===u.name||null==n&&"primaryYAxis"===u.name)&&(h=u)}return!!(s&&h&&ot("Logarithmic"===s.valueType?et(c,s.logBase):c,s.visibleRange)&&ot("Logarithmic"===h.valueType?et(+o.y,h.logBase):+o.y,h.visibleRange))&&(t=oi(c,+o.y,s,h,a),e.x=t.x+(a?h.rect.x:s.rect.x),e.y=t.y+(a?s.rect.y:h.rect.y)+(l&&l.enablePeriodSelector?l.toolbarHeight+l.titleSize.height:0),!0)}return this.setAccumulationPointValue(e)},e.prototype.processAnnotation=function(e,t,i){this.control;var o=new ji(0,0),r=this.render(e,t);(function(){r.style.transform="translate(-50%, -50%)"}).bind(o,this),this["setAnnotation"+e.coordinateUnits+"Value"](o)?this.setElementStyle(o,r,i):this.control.redraw&&Je(r.id)},e.prototype.setAccumulationPointValue=function(e){for(var t,i=0,o=this.control.visibleSeries[0].points;i<o.length;i++){var r=o[i];if("object"==typeof r.x){if(Date.parse(r.x)===Date.parse(this.annotation.x)&&r.y===this.annotation.y){t=r;break}}else if(r.x===this.annotation.x&&r.y===this.annotation.y){t=r;break}}return!(!t||!t.visible)&&(e.x=t.symbolLocation.x,e.y=t.symbolLocation.y,!0)},e.prototype.setElementStyle=function(e,t,i){var o=ti(t,this.control.redraw),r={cancel:!1,name:he,content:t,location:e},n=this.control;if(this.control.trigger(he,r),!r.cancel){r.content.style.left=this.setAlignmentValue(this.annotation.horizontalAlignment,o.width,r.location.x)+"px",r.content.style.top=this.setAlignmentValue(this.annotation.verticalAlignment,o.height,r.location.y)+"px";var a=n.annotationModule.annotation;"chart"===n.getModuleName()&&a&&a.accessibility?(r.content.setAttribute("aria-label",a.accessibility.accessibilityDescription?a.accessibility.accessibilityDescription:"Annotation"),r.content.setAttribute("role",a.accessibility.accessibilityRole?a.accessibility.accessibilityRole:"img"),r.content.setAttribute("tabindex",a.accessibility.focusable?String(a.accessibility.tabIndex):"-1"),a.accessibility.focusable&&(r.content.style.outline="none")):(r.content.setAttribute("aria-label",this.annotation.description||"Annotation"),r.content.setAttribute("role","img")),ri(r.content,i,this.control.redraw,!0,"left","top",this.control.duration)}},e.prototype.setAlignmentValue=function(e,t,i){switch(e){case"Top":case"Near":i-=t;break;case"Bottom":case"Far":i+=0;break;case"Middle":case"Center":i-=t/2}return i},e}(),Zn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),qn=function(e){function i(t,i){var o=e.call(this,t)||this;return o.chart=t,o.annotations=i,o}return Zn(i,e),i.prototype.renderAnnotations=function(e){var i=this;this.annotations=this.chart.annotations,this.parentElement=Pi(this.chart.redraw,this.chart.element.id+"_Annotation_Collections")||(0,t.createElement)("div",{id:this.chart.element.id+"_Annotation_Collections"}),this.annotations.map(function(e,t){i.processAnnotation(e,t,i.parentElement)});for(var o=0;"chart"===this.chart.getModuleName()&&!this.chart.enableCanvas&&o<this.chart.visibleSeries.length;o++)if(this.chart.visibleSeries[o].animation.enable&&this.chart.animateSeries){this.parentElement.style.visibility="hidden";break}ri(this.parentElement,e,this.chart.redraw)},i.prototype.destroy=function(){},i.prototype.getModuleName=function(){return"Annotation"},i}(Yn),Qn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),$n=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Qn(i,e),i.prototype.render=function(e,t,i,o){this.sideBySideInfo=this.getSideBySideInfo(e);for(var r=0,n=e.points;r<n.length;r++){var a=n[r];this.renderPoint(e,a,this.sideBySideInfo,undefined,t,i,o)}e.marker.visible&&e.chart.markerRender.render(e)},i.prototype.updateTipRegion=function(e,t,i){var o=this.getRectangle(t.xValue+i.median,t.maximum,t.xValue+i.median,t.minimum,e);this.updateTipSize(e,t,o,e.chart.requireInvertedAxis)},i.prototype.updateTipSize=function(e,t,i,o){var r=e.border.width||1;o?(i.y-=r/2,i.height=i.height||r):(i.x-=r/2,i.width=i.width||r),t.regions.push(i)},i.prototype.renderPoint=function(e,i,o,r,n,a,l){var s;i.symbolLocations=[],i.regions=[],i.visible&&nt(e.points[i.index-1],i,e.points[i.index+1],e)&&(this.findBoxPlotValues(i.y,i,e.boxPlotMode,e.showOutliers),this.updateTipRegion(e,i,o),s=this.getRectangle(i.xValue+o.start,i.upperQuartile,i.xValue+o.end,i.lowerQuartile,e),i.regions.push(s),(r=this.triggerEvent(e,i,e.interior,{color:(0,t.isNullOrUndefined)(e.border.color)||"transparent"===e.border.color?bi(e.interior,-.6):e.border.color,width:e.border.width?e.border.width:1})).cancel||this.renderBoxAndWhisker(e,i,r,this.getPathString(i,e,oi(i.xValue,i.median,n,a,l),oi(i.xValue+o.median,i.average,n,a,l)),o.median))},i.prototype.updateDirection=function(e,t,i){for(var o=0;o<t.length;o++){var r=e.points[t[o]];if(this.renderPoint(e,r,this.sideBySideInfo,undefined,e.xAxis,e.yAxis,i),r.symbolLocations&&r.symbolLocations.length&&e.marker.visible&&e.chart.markerRender.renderMarker(e,r,r.symbolLocations[0],r.symbolLocations.length-1,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule){if(e.chart.dataLabelCollections=[],e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",0===r.outliers.length){var n=qt(e.chart.dataLabelModule.commonId+r.index+"_Text_5");n&&n.remove()}e.chart.dataLabelModule.renderDataLabel(e,r,null,e.marker.dataLabel)}}var a=e.seriesElement.children;for(o=a.length-1;o>=0;o--)0===a[o].children.length&&e.seriesElement.removeChild(a[o])},i.prototype.getPathString=function(e,t,i,o){var r=e.regions[0],n=e.regions[1],a="",l=t.chart.requireInvertedAxis?r.y+r.height/2:r.x+r.width/2,s=n.x+n.width,h=n.y+n.height,c=r.x+r.width,d=r.y+r.height;return t.chart.requireInvertedAxis?(this.updateTipSize(t,e,{x:r.x,y:n.y,width:0,height:h-n.y},!1),this.updateTipSize(t,e,{x:c,y:n.y,width:0,height:h-n.y},!0),a+="M "+r.x+" "+n.y+" L "+r.x+" "+h,a+="M "+r.x+" "+l+" L "+n.x+" "+l,a+=" M "+n.x+" "+n.y+" L "+s+" "+n.y+" L "+s+" "+h+" L "+n.x+" "+h+" Z",a+=" M "+s+" "+l+" L "+c+" "+l,a+=" M "+c+" "+n.y+" L "+c+" "+h,a+=" M "+i.x+" "+n.y+" L "+i.x+" "+h,a+=t.showMean?"M "+(o.x+5)+" "+(o.y-5)+" L "+(o.x-5)+" "+(o.y+5)+"M "+(o.x-5)+" "+(o.y-5)+" L "+(o.x+5)+" "+(o.y+5):""):(this.updateTipSize(t,e,{x:n.x,y:r.y,width:s-n.x,height:0},!0),this.updateTipSize(t,e,{x:n.x,y:d,width:s-n.x,height:0},!0),a+="M "+n.x+" "+r.y+" L "+s+" "+r.y,a+=" M "+l+" "+r.y+" L "+l+" "+n.y,a+=" M "+n.x+" "+n.y+" L "+s+" "+n.y+" L "+s+" "+h+" L "+n.x+" "+h+" Z",a+=" M "+l+" "+h+" L "+l+" "+d,a+=" M "+n.x+" "+d+" L "+s+" "+d,a+=" M "+n.x+" "+i.y+" L "+s+" "+i.y,a+=t.showMean?" M "+(o.x-5)+" "+(o.y-5)+" L "+(o.x+5)+" "+(o.y+5)+" M "+(o.x+5)+" "+(o.y-5)+" L "+(o.x-5)+" "+(o.y+5):""),a},i.prototype.renderBoxAndWhisker=function(e,t,i,o,r){var n,a,l=e.chart.element.id+"_Series_"+e.index+"_Point_"+(null!==e.removedPointIndex&&e.removedPointIndex<=t.index?t.index+1:t.index),s=qt(l+"_BoxPath")?qt(l+"_BoxPath").getAttribute("d"):"",h=e.chart.renderer.drawPath(new R.PathOption(l+"_BoxPath",i.fill,i.border.width,i.border.color,e.opacity,e.border.dashArray,o),new Int32Array([e.clipRect.x,e.clipRect.y]));h.setAttribute("role","img"),h.setAttribute("aria-label",e.accessibility.accessibilityDescriptionFormat?e.formatAccessibilityDescription(t,e):t.x.toString()+":"+t.maximum.toString()+":"+t.minimum.toString()+":"+t.lowerQuartile.toString()+":"+t.upperQuartile.toString());var c=e.chart.renderer.createGroup({id:l});ni(e.chart.enableCanvas,c,h,e.chart.redraw,!0,null,null,null,s,null,null,null,e.chart.duration),null!==e.removedPointIndex&&e.removedPointIndex<=t.index&&(c.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index,h.id=e.chart.element.id+"_Series_"+e.index+"_Point_"+t.index+"_BoxPath");for(var d=0;d<t.outliers.length;d++)n=oi(t.xValue+r,t.outliers[d],e.xAxis,e.yAxis,e.chart.requireInvertedAxis),a=new R.Size(e.marker.width,e.marker.height),t.symbolLocations.push(n),this.updateTipSize(e,t,{x:n.x-a.width/2,y:n.y-a.height/2,width:a.width,height:a.height},!0);ni(e.chart.enableCanvas,e.seriesElement,c,e.chart.redraw,!1,null,null,null,null,null,null,null,e.chart.duration,!0)},i.prototype.findBoxPlotValues=function(e,t,i,o){var r=e.length,n={average:at(e)/r,lowerQuartile:0,upperQuartile:0,maximum:0,minimum:0,median:0,outliers:[]};"Exclusive"===i?(n.lowerQuartile=this.getExclusiveQuartileValue(e,r,.25),n.upperQuartile=this.getExclusiveQuartileValue(e,r,.75),n.median=this.getExclusiveQuartileValue(e,r,.5)):"Inclusive"===i?(n.lowerQuartile=this.getInclusiveQuartileValue(e,r,.25),n.upperQuartile=this.getInclusiveQuartileValue(e,r,.75),n.median=this.getInclusiveQuartileValue(e,r,.5)):(n.median=Si(e),this.getQuartileValues(e,r,n)),this.getMinMaxOutlier(e,r,n,o),t.minimum=n.minimum,t.maximum=n.maximum,t.lowerQuartile=n.lowerQuartile,t.upperQuartile=n.upperQuartile,t.median=n.median,t.outliers=n.outliers,t.average=n.average},i.prototype.getExclusiveQuartileValue=function(e,t,i){if(0===t)return 0;if(1===t)return e[0];var o=i*(t+1),r=Math.floor(Math.abs(o)),n=o-r;return 0===r?e[0]:r>t-1?e[t-1]:n*(e[r]-e[r-1])+e[r-1]},i.prototype.getInclusiveQuartileValue=function(e,t,i){if(0===t)return 0;if(1===t)return e[0];var o=i*(t-1),r=Math.floor(Math.abs(o));return(o-r)*(e[r+1]-e[r])+e[r]},i.prototype.getQuartileValues=function(e,t,i){if(1===t)return i.lowerQuartile=e[0],i.upperQuartile=e[0],null;var o=t%2==0,r=t/2,n=e.slice(0,r),a=e.slice(o?r:r+1,t);i.lowerQuartile=Si(n),i.upperQuartile=Si(a)},i.prototype.getMinMaxOutlier=function(e,t,i,o){for(var r=1.5*(i.upperQuartile-i.lowerQuartile),n=0;n<t;n++){if(!(e[n]<i.lowerQuartile-r&&o)){i.minimum=e[n];break}i.outliers.push(e[n])}for(n=t-1;n>=0;n--){if(!(e[n]>i.upperQuartile+r&&o)){i.maximum=e[n];break}i.outliers.push(e[n])}},i.prototype.doAnimation=function(e){this.animate(e)},i.prototype.getModuleName=function(){return"BoxAndWhiskerSeries"},i.prototype.destroy=function(){},i}(rr),Kn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Jn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Kn(i,e),i.prototype.render=function(e,i,o,r,n,a){var l,s,h,c,d=this,p=null,u="",g=Math.max(e.yAxis.visibleRange.min,0),m=[],y=this.sortSegments(e,e.segments),f="";this.enableComplexProperty(e).map(function(t,n,a){t.symbolLocations=[],t.regions=[],c=!1,t.visible&&nt(a[n-1],t,a[n+1],e)&&(u+=d.getAreaPathDirection(t.xValue,g,e,r,oi,p,"M"),p=p||new ji(t.xValue,g),l=oi(t.xValue,t.yValue,i,o,r),h&&d.setPointColor(t,h,e,"X"===e.segmentAxis,y)?(c=!0,s=oi(p.x,g,i,o,r),u+="L "+l.x+" "+l.y+" ",u+="L "+l.x+" "+s.y+" ",d.generatePathOption(m,e,h,u,"_Point_"+h.index),u="M "+l.x+" "+s.y+" L "+l.x+" "+l.y+" "):(u+="L "+l.x+" "+l.y+" ",d.setPointColor(t,null,e,"X"===e.segmentAxis,y)),a[n+1]&&!a[n+1].visible&&"Drop"!==e.emptyPointSettings.mode&&(u+=d.getAreaEmptyDirection({x:t.xValue,y:g},p,e,r,oi),p=null),h=t,d.storePointLocation(t,e,r,oi))}),(0,t.isNullOrUndefined)(c)||c||(u=e.points.length>1?u+this.getAreaPathDirection(h.xValue,g,e,r,oi,null,"L"):"",this.generatePathOption(m,e,h,u,"")),0!==e.border.width&&(f=this.removeEmptyPointsBorder(this.getBorderDirection(u)),this.generateBorderPathOption(m,e,h,f,"")),this.applySegmentAxis(e,m,y,n),a||this.renderMarker(e)},i.prototype.generatePathOption=function(e,t,i,o,r){e.push(new R.PathOption(t.chart.element.id+"_Series_"+t.index+r,t.setPointColor(i,t.interior),0,"transparent",t.opacity,t.dashArray,o))},i.prototype.generateBorderPathOption=function(e,t,i,o,r){e.push(new R.PathOption(t.chart.element.id+"_Series_border_"+t.index+r,"transparent",t.border.width,t.border.color?t.border.color:t.interior,1,t.border.dashArray,o))},i.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},i.prototype.destroy=function(){},i.prototype.getModuleName=function(){return"MultiColoredAreaSeries"},i.prototype.doAnimation=function(e){this.doLinearAnimation(e,e.animation)},i}(sr),ea=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ta=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ea(t,e),t.prototype.render=function(e,t,i,o,r,n){for(var a,l=null,s="M",h=this.enableComplexProperty(e),c=[],d="",p=null,u=this.sortSegments(e,e.segments),g=0,m=h;g<m.length;g++){var y=m[g];y.regions=[],y.visible&&nt(h[y.index-1],y,h[y.index+1],e)?(a=y,d+=this.getLineDirection(l,y,e,o,oi,s),null!=l?this.setPointColor(y,l,e,"X"===e.segmentAxis,u)?(c.push(new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+l.index,"none",e.width,e.setPointColor(l,e.interior),e.opacity,e.dashArray,d)),s="M",d=""):s="L":this.setPointColor(y,p,e,"X"===e.segmentAxis,u)&&""!==d&&(c.push(new R.PathOption(e.chart.element.id+"_Series_"+e.index+"_Point_"+p.index,"none",e.width,e.setPointColor(p,e.interior),e.opacity,e.dashArray,d)),s="M",d=""),l=y,p=y,this.storePointLocation(y,e,o,oi)):(l="Drop"===e.emptyPointSettings.mode?l:null,s="Drop"===e.emptyPointSettings.mode?s:"M",y.symbolLocations=[])}""!==d&&c.push(new R.PathOption(e.chart.element.id+"_Series_"+e.index,"none",e.width,e.setPointColor(a,e.interior),e.opacity,e.dashArray,d)),this.applySegmentAxis(e,c,u,r),n||this.renderMarker(e)},t.prototype.updateDirection=function(e,t){this.render(e,e.xAxis,e.yAxis,e.chart.requireInvertedAxis,!1,!0);for(var i=0;i<t.length;i++)e.marker&&e.marker.visible&&e.chart.markerRender.renderMarker(e,e.points[t[i]],e.points[t[i]].symbolLocations[0],null,!0),e.marker.dataLabel.visible&&e.chart.dataLabelModule&&(e.chart.dataLabelModule.commonId=e.chart.element.id+"_Series_"+e.index+"_Point_",e.chart.dataLabelModule.renderDataLabel(e,e.points[t[i]],null,e.marker.dataLabel))},t.prototype.doAnimation=function(e){this.doLinearAnimation(e,e.animation)},t.prototype.getModuleName=function(){return"MultiColoredLineSeries"},t.prototype.destroy=function(){},t}(sr),ia=function(){function e(e){this.xAxisPrevHeight=[],this.xAxisMultiLabelHeight=[],this.yAxisPrevHeight=[],this.yAxisMultiLabelHeight=[],this.multiLevelLabelRectXRegion=[],this.xLabelCollection=[],this.chart=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.chart.isDestroyed||this.chart.on("click",this.click,this)},e.prototype.getMultilevelLabelsHeight=function(e){var t,i,o,r=this,n=0,a=[],l=[],s="Vertical"===e.orientation,h=s?e.rect.height:e.rect.width;e.multiLevelLabels.map(function(c,d){c.categories.map(function(n,l){if(""!==n.text&&null!==n.start&&null!==n.end){t=(0,R.measureText)(n.text,c.textStyle,r.chart.themeStyle.axisLabelFont),i=s?null!==n.maximumTextWidth?n.maximumTextWidth:t.width:t.height,i+=2*c.border.width+("CurlyBrace"===c.border.type?10:0),o=null!==n.maximumTextWidth?n.maximumTextWidth:yt("string"==typeof n.end?Number(new Date(n.end)):n.end,e)*h-yt("string"==typeof n.start?Number(new Date(n.start)):n.start,e)*h;var p=e.multiLevelLabels[d].categories.length;o=0!==l&&l!==p-1||"OnTicks"!==e.labelPlacement||"Shift"!==e.edgeLabelPlacement?o:o/2,t.width>o-10&&(r.chart.enableRtl?o<0:o>0)&&"Wrap"===c.overflow&&!s&&(i*=_i(n.text,o-10,c.textStyle,r.chart.enableRtl,null,null,r.chart.themeStyle.axisLabelFont).length),a[d]=a[d]?a[d]<i?i:a[d]:i}}),l[d]=n,n+=a[d]?a[d]+10:0}),e.multiLevelLabelHeight=n+(""!==e.title||this.chart.legendModule&&this.chart.legendSettings.visible?5:0),s?(this.yAxisMultiLabelHeight=a,this.yAxisPrevHeight=l):(this.xAxisMultiLabelHeight=a,this.xAxisPrevHeight=l)},e.prototype.renderXAxisMultiLevelLabels=function(e,i,o,r){var n,a,l,s,h,c,d,p,u,g,m,y,f=this,v=10,b=(e.labelPosition===e.tickPosition?e.majorTickLines.height:0)+e.maxLabelSize.height+v,x="",S="Outside"===e.labelPosition,C=e.isAxisInverse,F=e.isAxisOpposedPosition,w=e.scrollbarSettings.enable||S&&(0,t.isNullOrUndefined)(e.crossesAt)?e.scrollBarHeight:0,L=F&&!S||!F&&S?r.y+b-e.majorTickLines.width:r.y-b-e.multiLevelLabelHeight;this.createClipRect(r.x-e.majorTickLines.width,L+w,e.multiLevelLabelHeight+v,r.width+2*e.majorTickLines.width,this.chart.element.id+"_XAxis_Clippath_"+i,this.chart.element.id+"XAxisMultiLevelLabel"+i),e.multiLevelLabels.map(function(o,L){s=0,f.labelElement=f.chart.renderer.createGroup({id:f.chart.element.id+i+"_MultiLevelLabel"+L}),o.categories.map(function(P,A){y=o.categories.length,x="",c="string"==typeof P.start?Number(new Date(P.start)):P.start,d="string"==typeof P.end?Number(new Date(P.end)):P.end;var M=(0,t.extend)({},(0,t.getValue)("properties",o.textStyle),null,!0);if(!(m=f.triggerMultiLabelRender(e,P.text,M,e.multiLevelLabels[L].alignment,P.customAttributes)).cancel){l=yt(c,e)*r.width,h=yt(d,e)*r.width,h=C?[l,l=h][0]:h,p=(0,R.measureText)(m.text,m.textStyle,f.chart.themeStyle.axisLabelFont),u=(null===P.maximumTextWidth?h-l:P.maximumTextWidth)-v,n=l+r.x+v,a=(F&&!S||!F&&S?b+r.y+p.height/2+v+f.xAxisPrevHeight[L]:r.y-b+p.height/2-f.xAxisMultiLabelHeight[L]-f.xAxisPrevHeight[L])+w,"Center"===m.alignment?(n+=(h-l-v)/2,g="middle"):"Far"===m.alignment?(n=n+(h-l-v)-o.border.width/2,"OnTicks"!==e.labelPlacement||0!==A&&A!==y-1||(n+=(h-l-v)/2,n-=p.width/2),g="end"):(g="start",n+=o.border.width/2),a="CurlyBrace"===o.border.type?!F&&S||F&&!S?a+v:a-5:a;var D=new R.TextOption(f.chart.element.id+i+"_Axis_MultiLevelLabel_Level_"+L+"_Text_"+A,n,a,g,m.text);if("None"!==o.overflow){if(e.edgeLabelPlacement&&"OnTicks"===e.labelPlacement)switch(e.edgeLabelPlacement){case"None":break;case"Shift":0===A||C&&A===y-1?("Center"===m.alignment&&(D.x<r.x+v||D.x-p.width/2)<e.rect.x?(D.x+=r.x/2,D.x/2<r.x&&(D.x=r.x+5,D.anchor="start")):"Far"===m.alignment&&(D.x<r.x+v||D.x>r.x+v)?D.x+=p.width/2-u/2:"Near"===m.alignment&&(D.x<r.x+v||D.x>r.x+v)&&(D.x=r.x+v),u/=2):(A===y-1||C&&0===A)&&("Center"===m.alignment&&D.x>r.x+r.width?(D.x-=v,D.x>r.width&&(D.x=r.width+r.x,D.anchor="end")):"Far"===m.alignment&&(D.x=r.width+r.x),u/=2)}D.text="Wrap"===o.overflow?_i(m.text,u,m.textStyle,f.chart.enableRtl,null,null,f.chart.themeStyle.axisLabelFont):Fi(u,m.text,m.textStyle,f.chart.enableRtl,f.chart.themeStyle.axisLabelFont),D.x=D.x-5}if(Di(f.chart.renderer,D,m.textStyle,m.textStyle.color||f.chart.themeStyle.axisLabelFont.color,f.labelElement,!1,f.chart.redraw,!0,null,null,null,0,null,f.chart.enableCanvas,null,f.chart.themeStyle.axisLabelFont),f.chart.enableCanvas){var k=(0,R.measureText)(m.text,m.textStyle,f.chart.themeStyle.axisLabelFont);f.multiLevelLabelRectXRegion.push(new R.Rect(D.x,D.y,k.width,k.height)),f.xLabelCollection.push(D)}o.border.width>0&&"WithoutBorder"!==o.border.type&&""!==(x=f.renderXAxisLabelBorder(L,h-l-v,e,l,b,p,D,r,m.alignment,x,S,F,s))&&(f.createBorderElement(L,i,e,x,s),s++),f.chart.enableCanvas||f.multiElements.appendChild(f.labelElement)}})}),this.chart.enableCanvas||o.appendChild(this.multiElements)},e.prototype.renderXAxisLabelBorder=function(e,i,o,r,n,a,l,s,h,c,d,p,u){var g,m,y,f,v=10,b=o.multiLevelLabels[e],x=b.categories[u].type,S=i+v,C=(0,t.isNullOrUndefined)(this.xAxisMultiLabelHeight[e])?0:this.xAxisMultiLabelHeight[e]+v,F="Outside"===o.labelPosition?o.scrollBarHeight:0,w=r+s.x,L=!p&&d||p&&!d?n+s.y+this.xAxisPrevHeight[e]+F:s.y-n-this.xAxisPrevHeight[e]-F,P=x||b.border.type;switch(P){case"WithoutTopandBottomBorder":case"Rectangle":case"WithoutTopBorder":var A=u===o.multiLevelLabels[e].categories.length-1&&w+S>s.width?s.width+s.x:w+S,M=0===u&&o.multiLevelLabels[e].categories[0].start<=0?s.x:w;c+="M "+M+" "+L+" L "+M+" "+(L+(C=!p&&d||p&&!d?C:-C))+" M "+A+" "+L+" L "+A+" "+(L+C),c+="WithoutTopandBottomBorder"!==P?" L "+M+" "+(L+C)+" ":" ",c+="Rectangle"===P?"M "+M+" "+L+" L "+A+" "+L:" ";break;case"Brace":"Near"===h?(y=l.x,f=l.x+a.width+2):"Center"===h?(y=l.x-a.width/2-2,f=l.x+a.width/2+2):(y=l.x-a.width-2,f=l.x),c+="M "+w+" "+L+" L "+w+" "+(L+(C=!p&&d||p&&!d?C:-C)/2)+" M "+w+" "+(L+C/2)+" L "+(y-2)+" "+(L+C/2)+" M "+f+" "+(L+C/2)+" L "+(w+S)+" "+(L+C/2)+" M "+(w+S)+" "+(L+C/2)+" L "+(w+S)+" "+L;break;case"CurlyBrace":!p&&d||p&&!d?(v=10,g=15,m=5):(v=-10,g=-15,m=-5),c+="Center"===h?"M "+w+" "+L+" C "+w+" "+L+" "+(w+5)+" "+(L+v)+" "+(w+10)+" "+(L+v)+" L "+(w+S/2-5)+" "+(L+v)+" L "+(w+S/2)+" "+(L+g)+" L "+(w+S/2+5)+" "+(L+v)+" L "+(w+S-10)+" "+(L+v)+" C "+(w+S-10)+" "+(L+v)+" "+(w+S)+" "+(L+m)+" "+(w+S)+" "+L:"Near"===h?"M "+w+" "+L+" C "+w+" "+L+" "+(w+5)+" "+(L+v)+" "+(w+10)+" "+(L+v)+" L "+(w+15)+" "+(L+g)+" L "+(w+20)+" "+(L+v)+" L "+(w+S-10)+" "+(L+v)+" C "+(w+S-10)+" "+(L+v)+" "+(w+S)+" "+(L+m)+" "+(w+S)+" "+L:"M "+w+" "+L+" C "+w+" "+L+" "+(w+5)+" "+(L+v)+" "+(w+10)+" "+(L+v)+" L "+(w+S-20)+" "+(L+v)+" L "+(w+S-15)+" "+(L+g)+" L "+(w+S-10)+" "+(L+v)+" L "+(w+S-10)+" "+(L+v)+" C "+(w+S-10)+" "+(L+v)+" "+(w+S)+" "+(L+m)+" "+(w+S)+" "+L}return c},e.prototype.renderYAxisMultiLevelLabels=function(e,i,o,r){var n,a,l,s,h,c,d,p,u,g,m=this,y="Outside"===e.labelPosition,f=10,v=(e.tickPosition===e.labelPosition?e.majorTickLines.height:0)+e.maxLabelSize.width+f,b="",x=e.isAxisInverse,S=e.isAxisOpposedPosition,C=y&&(0,t.isNullOrUndefined)(e.crossesAt)?e.scrollBarHeight:0;C*=S?1:-1;var F=S&&!y||!S&&y?r.x-e.multiLevelLabelHeight-v-f:r.x+v;this.createClipRect(F+C,r.y-e.majorTickLines.width,r.height+2*e.majorTickLines.width,e.multiLevelLabelHeight+f,this.chart.element.id+"_YAxis_Clippath_"+i,this.chart.element.id+"YAxisMultiLevelLabel"+i),e.multiLevelLabels.map(function(o,F){m.labelElement=m.chart.renderer.createGroup({id:m.chart.element.id+i+"_MultiLevelLabel"+F}),d=0,o.categories.map(function(w,L){b="",u="string"==typeof w.end?Number(new Date(w.end)):w.end,p="string"==typeof w.start?Number(new Date(w.start)):w.start,s=yt(p,e)*r.height,h=yt(u,e)*r.height,h=x?[s,s=h][0]:h;var P=(0,t.extend)({},(0,t.getValue)("properties",o.textStyle),null,!0);if(!(c=m.triggerMultiLabelRender(e,w.text,P,o.alignment,w.customAttributes)).cancel){var A=null===w.maximumTextWidth?m.yAxisMultiLabelHeight[F]/2:w.maximumTextWidth/2;n=(0,R.measureText)(c.text,c.textStyle,m.chart.themeStyle.axisLabelFont),g=h-s,a=r.x-v-m.yAxisPrevHeight[F]-A-5,l=r.height+r.y-s-g/2,a=S?y?r.x+v+5+A+m.yAxisPrevHeight[F]+C:r.x-v-A-m.yAxisPrevHeight[F]-5:y?a+C:r.x+v+5+A+m.yAxisPrevHeight[F],"Center"===c.alignment?l+=n.height/4:"Far"===c.alignment?l+=g/2-n.height/2:l=l-g/2+n.height,a="CurlyBrace"===o.border.type?!S&&y||S&&!y?a-f:a+f:a;var M=new R.TextOption(m.chart.element.id+i+"_Axis_MultiLevelLabel_Level_"+F+"_Text_"+L,a,l,"middle",c.text);M.text="Trim"===o.overflow?Fi(null===w.maximumTextWidth?m.yAxisMultiLabelHeight[F]:w.maximumTextWidth,c.text,c.textStyle,m.chart.enableRtl,m.chart.themeStyle.axisLabelFont):M.text,M.text="Wrap"===o.overflow?_i(c.text,null===w.maximumTextWidth?m.yAxisMultiLabelHeight[F]:w.maximumTextWidth,c.textStyle,m.chart.enableRtl,null,null,m.chart.themeStyle.axisLabelFont):M.text,"string"!=typeof M.text&&M.text.length>1&&(M.y-=f*M.text.length/2),Di(m.chart.renderer,M,c.textStyle,c.textStyle.color||m.chart.themeStyle.axisLabelFont.color,m.labelElement,m.chart.redraw,!0,null,null,null,null,0,null,m.chart.enableCanvas,null,m.chart.themeStyle.axisLabelFont),o.border.width>0&&"WithoutBorder"!==o.border.type&&""!==(b=m.renderYAxisLabelBorder(F,g,e,h,v,s,n,M,r,c.alignment,b,y,S,d))&&(m.createBorderElement(F,i,e,b,d),d++),m.chart.enableCanvas||m.multiElements.appendChild(m.labelElement)}})}),this.chart.enableCanvas||o.appendChild(this.multiElements)},e.prototype.renderYAxisLabelBorder=function(e,i,o,r,n,a,l,s,h,c,d,p,u,g){var m,y,f=r-a,v=10,b=o.multiLevelLabels[e],x=b.categories[g].type,S=h.y+h.height-r,C=p&&(0,t.isNullOrUndefined)(o.crossesAt)?o.scrollBarHeight:0;C*=u?1:-1;var F=(null===b.categories[g].maximumTextWidth?this.yAxisMultiLabelHeight[e]:b.categories[g].maximumTextWidth)+v,w=(!u&&p||u&&!p?h.x-n-this.yAxisPrevHeight[e]:h.x+n+this.yAxisPrevHeight[e])+C,L=x||b.border.type;switch(L){case"WithoutTopandBottomBorder":case"Rectangle":case"WithoutTopBorder":d+="M "+w+" "+S+" L "+(w+(F=!u&&p||u&&!p?-F:F))+" "+S+" M "+w+" "+(S+f)+" L "+(w+F)+" "+(S+f),d+="WithoutTopandBottomBorder"!==L?" L "+(w+F)+" "+S+" ":" ",d+="Rectangle"===L?"M "+w+" "+(S+f)+"L "+w+" "+S+" ":" ";break;case"Brace":d+="M "+w+" "+S+" L "+(w-(F=!u&&p||u&&!p?F:-F)/2)+" "+S+" L "+(w-F/2)+" "+(s.y-l.height/2-4)+" M "+(w-F/2)+" "+(s.y+l.height/4+2)+" L "+(w-F/2)+" "+(S+f)+" L "+w+" "+(S+f);break;case"CurlyBrace":!u&&p||u&&!p?(v=-10,m=-15,y=-5):(v=10,m=15,y=5),d+="Center"===c?"M "+w+" "+S+" C "+w+" "+S+" "+(w+v)+" "+S+" "+(w+v)+" "+(S+10)+" L "+(w+v)+" "+(S+(f-10)/2)+" L "+(w+m)+" "+(S+(f-10)/2+5)+" L "+(w+v)+" "+(S+(f-10)/2+10)+" L "+(w+v)+" "+(S+(f-10))+" C "+(w+v)+" "+(S+(f-10))+" "+(w+y)+" "+(S+f)+" "+w+" "+(S+f):"Far"===c?"M "+w+" "+S+" C "+w+" "+S+" "+(w+v)+" "+S+" "+(w+v)+" "+(S+10)+" L "+(w+v)+" "+(S+f-20)+"  L "+(w+m)+" "+(S+(f-15))+" L "+(w+v)+" "+(S+(f-10))+" L "+(w+v)+" "+(S+(f-10))+" C "+(w+v)+" "+(S+(f-10))+" "+(w+v)+" "+(S+f)+" "+w+" "+(S+f):"M "+w+" "+S+" C "+w+" "+S+" "+(w+v)+" "+S+" "+(w+v)+" "+(S+10)+" L "+(w+m)+" "+(S+15)+" L "+(w+v)+" "+(S+20)+" L "+(w+v)+" "+(S+(f-10))+" C "+(w+v)+" "+(S+(f-10))+" "+(w+y)+" "+(S+f)+" "+w+" "+(S+f)}return d},e.prototype.createClipRect=function(e,t,i,o,r,n){this.multiElements=this.chart.renderer.createGroup({id:n,"clip-path":"url(#"+r+")"}),this.chart.enableCanvas||this.multiElements.appendChild(Nt(this.chart.redraw,{id:r,x:e,y:t,width:o,height:i,fill:"white","stroke-width":1,stroke:"Gray"},this.chart.renderer))},e.prototype.createBorderElement=function(e,t,i,o,r){var n=o,a=this.chart.renderer.drawPath(new R.PathOption(this.chart.element.id+t+"_Axis_MultiLevelLabel_Rect_"+e+"_"+r,"Transparent",i.multiLevelLabels[e].border.width,i.multiLevelLabels[e].border.color||this.chart.themeStyle.axisLine,1,"",o));a.style.pointerEvents="none",ni(this.chart.enableCanvas,this.labelElement,a,this.chart.redraw,!0,"x","y",null,n)},e.prototype.triggerMultiLabelRender=function(e,t,i,o,r){var n={cancel:!1,name:G,axis:e,text:t,textStyle:i,alignment:o,customAttributes:r};return this.chart.trigger(G,n),n},e.prototype.MultiLevelLabelClick=function(e,t){var i=parseInt(e.substr(0,1),10),o=parseInt(e.substr(7),10),r=this.chart.axisCollections[t],n=r.multiLevelLabels[i].categories,a=n[o].text,l=n[o].start,s=n[o].end,h={axis:r,level:i,text:a,customAttributes:n[o].customAttributes,start:l,end:s,name:ge,cancel:!1};return this.chart.trigger(ge,h),h},e.prototype.click=function(e){var t,i,o,r=e.target.id,n="_Axis_MultiLevelLabel_Level_";if(this.chart.enableCanvas)for(var a=0;a<this.multiLevelLabelRectXRegion.length;a++)Pt(e.x,e.y,this.multiLevelLabelRectXRegion[a],this.multiLevelLabelRectXRegion[a].width,this.multiLevelLabelRectXRegion[a].height)&&(r=this.xLabelCollection[a].id);r.indexOf(n)>-1&&(t=r.split(n)[1],i=r.split(n)[0],o=parseInt(i.charAt(i.length-1),10),this.MultiLevelLabelClick(t,o))},e.prototype.getModuleName=function(){return"MultiLevelLabel"},e.prototype.destroy=function(){},e}();var oa=function(){function e(e){this.chartId=e.element.id+"_"}return e.prototype.renderElements=function(e,t){var i=e.axis.isAxisInverse,o=e.axis.scrollbarSettings,r=t.createGroup({id:this.chartId+"scrollBar_"+e.axis.name,transform:"translate("+(e.isVertical&&i?e.height:i?e.width:"0")+","+(e.isVertical&&i?"0":i?e.height:e.isVertical?e.width:"0")+") rotate("+(e.isVertical&&i?"90":e.isVertical?"270":i?"180":"0")+")"}),n=t.createGroup({id:this.chartId+"scrollBar_backRect_"+e.axis.name}),a=t.createGroup({id:this.chartId+"scrollBar_thumb_"+e.axis.name,transform:"translate(0,0)"});return this.backRect(e,t,n,o),this.thumb(e,t,a,o),this.renderCircle(e,t,a,o),this.arrows(e,t,a,o),this.thumbGrip(e,t,a,o),r.appendChild(n),r.appendChild(a),r},e.prototype.backRect=function(e,t,i,o){var r=e.scrollbarThemeStyle,n=t.drawRectangle(new Ni(this.chartId+"scrollBarBackRect_"+e.axis.name,o.trackColor||r.backRect,{width:1,color:o.trackColor||r.backRect},1,new R.Rect(o.enableZoom&&!e.isVertical?e.svgExtraWidth/2:0,0,e.width,e.height),o.trackRadius,o.trackRadius));i.appendChild(n)},e.prototype.arrows=function(e,t,i,o){var r=e.scrollbarThemeStyle,n=new R.PathOption(this.chartId+"scrollBar_leftArrow_"+e.axis.name,r.arrow,1,r.arrow,1,"","");this.leftArrowEle=t.drawPath(n),n.id=this.chartId+"scrollBar_rightArrow_"+e.axis.name,this.rightArrowEle=t.drawPath(n),this.setArrowDirection(this.thumbRectX,this.thumbRectWidth,e.height),o.enableZoom&&(i.appendChild(this.leftArrowEle),i.appendChild(this.rightArrowEle))},e.prototype.setArrowDirection=function(e,t,i){var o=i/2,r="M "+(e-o/2)+" "+i/2+" L "+(e-o/2+(i/2-o/4))+" "+(i-o/2)+" L "+(e-o/2+(i/2-o/4))+" "+o/2+" Z",n="M "+(e+t+o/2)+" "+i/2+" L "+(e+t+o/2-(i/2-o/4))+" "+(i-o/2)+" L "+(e+t+o/2-(i/2-o/4))+" "+o/2+" Z";this.leftArrowEle.setAttribute("d",r),this.rightArrowEle.setAttribute("d",n)},e.prototype.thumb=function(e,t,i,o){e.startX=this.thumbRectX;var r=e.scrollbarThemeStyle;this.slider=t.drawRectangle(new Ni(this.chartId+"scrollBarThumb_"+e.axis.name,o.scrollbarColor||r.thumb,{width:1,color:o.scrollbarColor||r.thumb},1,new R.Rect(o.enableZoom?this.thumbRectX:this.thumbRectX-e.height/2,0,o.enableZoom?this.thumbRectWidth:this.thumbRectWidth+e.height/2,e.height),o.scrollbarRadius,o.scrollbarRadius)),i.appendChild(this.slider)},e.prototype.renderCircle=function(e,t,i,o){var r=e.scrollbarThemeStyle,n=new Hi(this.chartId+"scrollBar_leftCircle_"+e.axis.name,r.circle,{width:1,color:r.circle},1,this.thumbRectX,e.height/2,e.height/2),a=t.createDefs(),l=t.createGroup({id:this.chartId+e.axis.name+"_thumb_shadow"});a.innerText='<filter x="-25.0%" y="-20.0%" width="150.0%" height="150.0%" filterUnits="objectBoundingBox"id="scrollbar_shadow"><feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite><feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.16 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix></filter>',l.innerText='<use fill="black" fill-opacity="1" filter="url(#scrollbar_shadow)" xlink:href="#'+this.chartId+"scrollBar_leftCircle_"+e.axis.name+'"></use><use fill="black" fill-opacity="1" filter="url(#scrollbar_shadow)" xlink:href="#'+this.chartId+"scrollBar_rightCircle_"+e.axis.name+'"></use>',this.leftCircleEle=t.drawCircle(n),n.id=this.chartId+"scrollBar_rightCircle_"+e.axis.name,n.cx=this.thumbRectX+this.thumbRectWidth,this.rightCircleEle=t.drawCircle(n),i.appendChild(a),o.enableZoom&&(i.appendChild(this.leftCircleEle),i.appendChild(this.rightCircleEle)),i.appendChild(l)},e.prototype.thumbGrip=function(e,t,i,o){var r=e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?-5:0,n=0,a=e.scrollbarThemeStyle,l=new Hi(this.chartId+"scrollBar_gripCircle0_"+e.axis.name,o.gripColor||a.grip,{width:1,color:o.gripColor||a.grip},1,0,0,1);this.gripCircle=t.createGroup({id:this.chartId+"scrollBar_gripCircle_"+e.axis.name,transform:"translate("+(o.enableZoom?this.thumbRectX+this.thumbRectWidth/2+5*(e.isVertical?1:-1):this.thumbRectX+this.thumbRectWidth/2+5*(e.isVertical?2:0)-o.height/2)+","+(e.isVertical?e.height/2+2.5-.5:e.height/2-2.5-.5)+") rotate("+(e.isVertical?"180":"0")+")"});for(var s=1;s<=(e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?10:6);s++)l.id=this.chartId+"scrollBar_gripCircle"+s+"_"+e.axis.name,l.cx=r,l.cy=n,this.gripCircle.appendChild(t.drawCircle(l)),r=s===(e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?5:3)?e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?-5:0:r+5,n=s>=(e.component.theme.indexOf("Fluent2")>-1||e.component.theme.indexOf("Bootstrap5")>-1||e.component.theme.indexOf("Tailwind3")>-1?5:3)?5:0;o.height>=12&&i.appendChild(this.gripCircle)},e}(),ra=function(){function e(e,i){this.svgExtraWidth=50,this.scrollRange={max:null,min:null,interval:null,delta:null},this.component=e,this.elements=[],this.scrollElements=new oa(e),this.axis=i,this.mouseMoveListener=this.scrollMouseMove.bind(this),this.mouseUpListener=this.scrollMouseUp.bind(this),this.animateDuration=500,this.isPointer=t.Browser.isPointer,this.browserName=t.Browser.info.name}return e.prototype.getMouseXY=function(e){var t,i,o;e.type.indexOf("touch")>-1?(t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(t=e.clientX,i=e.clientY);var r=qt(this.component.element.id+"_scrollBar_svg"+this.axis.name).getBoundingClientRect();this.mouseX=t-Math.max(r.left,0),this.mouseY=i-Math.max(r.top,0)},e.prototype.wireEvents=function(e){t.EventHandler.add(e,t.Browser.touchStartEvent,this.scrollMouseDown,this),t.EventHandler.add(e,t.Browser.touchMoveEvent,this.scrollMouseMove,this),t.EventHandler.add(e,t.Browser.touchEndEvent,this.scrollMouseUp,this),t.EventHandler.add(e,"mousewheel",this.scrollMouseWheel,this),window.addEventListener("mousemove",this.mouseMoveListener,!1),window.addEventListener("mouseup",this.mouseUpListener,!1)},e.prototype.unWireEvents=function(e){t.EventHandler.remove(e,t.Browser.touchStartEvent,this.scrollMouseDown),t.EventHandler.remove(e,t.Browser.touchMoveEvent,this.scrollMouseMove),t.EventHandler.remove(e,t.Browser.touchEndEvent,this.scrollMouseUp),t.EventHandler.remove(e,"mousewheel",this.scrollMouseWheel),window.removeEventListener("mousemove",this.mouseMoveListener,!1),window.removeEventListener("mouseup",this.mouseUpListener,!1)},e.prototype.scrollMouseDown=function(e){var t=e.target.id,i=this.scrollElements,o=this.axis.isAxisInverse;if(this.getMouseXY(e),this.isResizeLeft=this.isExist(t,"_leftCircle_")||this.isExist(t,"_leftArrow_"),this.isResizeRight=this.isExist(t,"_rightCircle_")||this.isExist(t,"_rightArrow_"),this.previousXY=this.isVertical&&o?this.mouseY:this.isVertical?this.width-this.mouseY:o?this.width-this.mouseX:this.mouseX,this.previousWidth=i.thumbRectWidth,this.previousRectX=i.thumbRectX,this.startZoomPosition=this.axis.zoomPosition,this.startZoomFactor=this.axis.zoomFactor,this.startRange=this.axis.visibleRange,this.scrollStarted=!0,this.component.trigger(ce,this.getArgs(ce)),this.isExist(t,"scrollBarThumb_")||this.isExist(t,"gripCircle"))this.isThumbDrag=!0,this.axis.scrollbarSettings.height>=12&&(this.svgObject.style.cursor="-webkit-grabbing");else if(this.isExist(t,"scrollBarBackRect_")){var r=this.moveLength(this.previousXY,this.previousRectX);if(i.thumbRectX=this.isWithIn(r)?r:i.thumbRectX,this.positionThumb(i.thumbRectX,i.thumbRectWidth),this.setZoomFactorPosition(i.thumbRectX,i.thumbRectWidth),this.axis.zoomPosition=this.zoomPosition<0?0:this.zoomPosition>.9?1:this.zoomPosition,this.isLazyLoad){var n=i.thumbRectX>this.previousRectX?"RightMove":"LeftMove",a=this.calculateLazyRange(i.thumbRectX,i.thumbRectWidth,n);a&&this.component.trigger(de,a)}}""===this.component.element.style.height&&(this.isCustomHeight=!0,this.component.element.style.height=this.component.availableSize.height+"px")},e.prototype.isExist=function(e,t){return e.indexOf(t)>-1},e.prototype.isWithIn=function(e){var t=this.axis.scrollbarSettings.height/2;return e-(this.axis.scrollbarSettings.enableZoom&&"Horizontal"===this.axis.orientation?this.svgExtraWidth/2:0)-t>=0&&e+this.scrollElements.thumbRectWidth+t<=this.width+(this.axis.scrollbarSettings.enableZoom&&"Horizontal"===this.axis.orientation?this.svgExtraWidth/2:0)},e.prototype.moveLength=function(e,t,i){void 0===i&&(i=this.axis.scrollbarSettings.height/2);var o=.1*(this.width-2*i);return o=e<t?t-(t-o>i?o:i):t+(t+this.scrollElements.thumbRectWidth+o<this.width-i?o:i)},e.prototype.setZoomFactorPosition=function(e,t){this.isScrollUI=!0;var i=this.axis,o=this.axis.scrollbarSettings.height/2;i.scrollbarSettings.enableZoom&&!this.isVertical&&(e-=this.svgExtraWidth/2,t+=this.svgExtraWidth/2);var r=e+t+o+1,n=o+.5,a=this.isVertical?i.rect.height:this.width+(i.scrollbarSettings.enableZoom?this.svgExtraWidth:0);this.zoomFactor=(t+(r>=this.width?o+1:0))/a,this.zoomPosition=r>a?1-i.zoomFactor:e<o+1?0:(e-(e-n<=0?n:0))/a,this.zoomPosition=this.component.enableRtl&&!this.isVertical&&!i.isInversed||i.isInversed&&(!this.component.enableRtl||this.isVertical)?1-(this.zoomPosition+i.zoomFactor):this.zoomPosition},e.prototype.scrollMouseMove=function(e){var i=e.target,o=this.scrollElements,r=this.axis.isAxisInverse;if(!qt(this.svgObject.id))return null;this.getMouseXY(e),(0,t.isNullOrUndefined)(i.id)||(this.setCursor(i),this.setTheme(i));var n,a=this.isVertical&&r?this.width-this.mouseY:this.isVertical?this.mouseY:this.mouseX,l=this.axis.visibleRange,s=this.zoomPosition,h=this.zoomFactor,c=this.previousRectX-o.thumbRectX<0?"RightMove":"LeftMove";this.isLazyLoad&&(this.isThumbDrag||this.isResizeLeft||this.isResizeRight)&&(n=this.calculateLazyRange(o.thumbRectX,o.thumbRectWidth,c));var d=n?n.currentRange:null;if(this.isThumbDrag){this.component.isScrolling=this.isThumbDrag,a=this.isVertical||r?this.width-a:a;var p=o.thumbRectX+(a-this.previousXY);a>=p+o.thumbRectWidth?this.setCursor(i):this.axis.scrollbarSettings.height>=12&&(this.svgObject.style.cursor="-webkit-grabbing"),a>=0&&a<=p+o.thumbRectWidth&&(o.thumbRectX=this.isWithIn(p)?p:o.thumbRectX,this.positionThumb(o.thumbRectX,o.thumbRectWidth),this.previousXY=a,this.setZoomFactorPosition(p,o.thumbRectWidth),this.axis.zoomPosition=this.zoomPosition<0?0:this.zoomPosition>.9?1:this.zoomPosition),this.component.trigger(pe,this.getArgs(pe,l,s,h,d))}else(this.isResizeLeft&&("Horizontal"!==this.axis.orientation||a>this.svgExtraWidth/2+this.axis.scrollbarSettings.height/2)||this.isResizeRight&&("Horizontal"!==this.axis.orientation||a<this.width+this.svgExtraWidth))&&this.resizeThumb()},e.prototype.scrollMouseWheel=function(e){if(!this.axis.scrollbarSettings.enableZoom)return null;var t=qt(this.component.element.id+"_scrollBar_svg"+this.axis.name).getBoundingClientRect();this.mouseX=e.clientX-Math.max(t.left,0),this.mouseY=e.clientY-Math.max(t.top,0);var i,o=.5,r=this.scrollElements,n=this.axis,a="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?1:-1:-e.detail/3>0?1:-1,l=Math.max(Math.max(1/Zt(n.zoomFactor,0,1),1)+.25*a,1),s=this.axis.visibleRange,h=this.zoomPosition,c=this.zoomFactor;l>=1&&(o=(o="Horizontal"===n.orientation?this.mouseX/n.rect.width:1-this.mouseY/n.rect.height)>1?1:o<0?0:o,this.zoomFactor=1===l?1:Zt(1/l,0,1),this.zoomPosition=1===l?0:n.zoomPosition+(n.zoomFactor-this.zoomFactor)*o),r.thumbRectX=this.isWithIn(this.zoomPosition*this.width)?this.zoomPosition*this.width:r.thumbRectX,this.isScrollUI=!0,this.positionThumb(r.thumbRectX,r.thumbRectWidth),this.isLazyLoad&&(this.setZoomFactorPosition(r.thumbRectX,r.thumbRectWidth),this.axis.zoomFactor=this.zoomFactor,this.axis.zoomPosition=this.zoomPosition<0?0:this.zoomPosition>.9?1:this.zoomPosition),n.zoomFactor=this.zoomFactor,n.zoomPosition=this.zoomPosition,this.isLazyLoad&&(i=this.calculateMouseWheelRange(r.thumbRectX,r.thumbRectWidth))&&i.currentRange.minimum!==i.previousAxisRange.minimum&&i.currentRange.maximum!==i.previousAxisRange.maximum&&(this.component.trigger(de,i),this.isScrollEnd=!1),this.isLazyLoad||this.component.trigger(pe,this.getArgs(pe,s,h,c))},e.prototype.scrollMouseUp=function(){var e;this.startX=this.scrollElements.thumbRectX;var t=this.axis.scrollbarSettings.height/2,i=this.startX+this.scrollElements.thumbRectWidth+t+1,o=t+.5;if(!this.isResizeLeft&&!this.isResizeRight||this.isLazyLoad||(this.axis.zoomFactor=i>=this.width-1&&this.startX-o<=0?1:this.zoomFactor),this.isLazyLoad){var r=this.previousRectX-this.startX;if((r>0||r<0)&&this.isThumbDrag){var n=r<0?"RightMove":"LeftMove";this.startX="RightMove"===n?this.startX+Math.abs(r)<this.width-t?this.startX:this.width-t-this.scrollElements.thumbRectWidth:this.startX+this.scrollElements.thumbRectWidth-Math.abs(r)>t?this.startX:t,(e=this.calculateLazyRange(this.startX,this.scrollElements.thumbRectWidth,n))&&(this.component.trigger(de,e),this.scrollStarted=!1)}(this.isResizeLeft||this.isResizeRight)&&(e=this.calculateLazyRange(this.startX,this.scrollElements.thumbRectWidth))&&(this.component.trigger(de,e),this.scrollStarted=!1)}this.isThumbDrag=!1,this.isResizeLeft=!1,this.isResizeRight=!1,this.isScrollEnd=!1,this.component.isScrolling=!1,this.scrollStarted&&!this.isLazyLoad&&(this.component.trigger(de,this.getArgs(pe,this.startRange,this.startZoomPosition,this.startZoomFactor)),this.scrollStarted=!1),this.isCustomHeight&&(this.component.element.style.height=null)},e.prototype.calculateMouseWheelRange=function(e,t){var i,o,r,n=this.scrollRange,a=this.getStartEnd(this.previousStart,this.previousEnd,!1),l=this.axis.scrollbarSettings.height/2;e+t+l<=this.width&&(o=(e-l)/this.width,i=t/this.width);var s=n.min+o*n.delta,h=s+i*n.delta;return h&&(r={axis:this.axis,currentRange:this.getStartEnd(s,h,!0),previousAxisRange:a}),r},e.prototype.calculateLazyRange=function(e,t,i){var o,r,n,a,l,s=t,h=this.scrollRange,c=this.getStartEnd(this.previousStart,this.previousEnd,!1),d=this.axis.scrollbarSettings.height/2;return this.isResizeRight||"RightMove"===i?(o=(s=this.isResizeRight?s+16:s)/this.width,r="RightMove"===i?(e+d)/this.width:this.axis.zoomPosition,a=(n="RightMove"===i?h.min+r*h.delta:this.previousStart)+o*h.delta):this.isResizeLeft||"LeftMove"===i?(r=(e-d)/this.width,o=s/this.width,n=(n=h.min+r*h.delta)>=h.min?n:h.min,a="LeftMove"===i?n+o*h.delta:this.previousEnd):this.isThumbDrag&&(r="RightMove"===i?(e+d)/this.width:(e-d)/this.width,o=this.scrollElements.thumbRectWidth/this.width,a=(n=(n=h.min+r*h.delta)>=h.min?n:h.min)+o*h.delta),a&&(l={axis:this.axis,currentRange:this.getStartEnd(n,a,!0),previousAxisRange:c}),l},e.prototype.getStartEnd=function(e,t,i){var o=this.valueType;if("DateTime"!==o&&"DateTimeCategory"!==o||!i){if(i){var r=Math.round(e),n=Math.ceil(t);"Category"===this.axis.valueType&&(n-=!this.axis.scrollbarSettings.enableZoom&&n-r>this.previousEnd-this.previousStart?n-r-(this.previousEnd-this.previousStart):0),this.previousStart=e=r,this.previousEnd=t=n}}else this.previousStart=e,this.previousEnd=t;switch(o){case"Double":case"Category":case"Logarithmic":e=Math.round(e),t=Math.ceil(t);break;case"DateTime":case"DateTimeCategory":e=new Date(e),t=new Date(t)}return{minimum:e,maximum:t}},e.prototype.render=function(e){return(this.component.zoomModule||e&&this.axis.scrollbarSettings.enable)&&this.getDefaults(),this.getTheme(),this.removeScrollSvg(),function(e,t){for(var i,o=e.axis.rect,r="Horizontal"===e.axis.orientation,n=!1,a=0,l=0,s=e.axis.series;l<s.length;l++)(d=s[l]).marker.visible&&d.marker.height>a&&(a=d.marker.height);for(var h=0,c=e.axis.series;h<c.length;h++){var d;if((d=c[h]).visible&&(i=d.yMin.toString(),n=d.yData.some(function(e){return e===i})),n)break}var p=(e.axis.isAxisOpposedPosition&&r?-16:n?a:0)+o.y+Math.max(.5,e.axis.lineStyle.width/2),u=(e.axis.isAxisOpposedPosition&&!r?16:0)+o.x-(e.isVertical?e.height:0);r||"Left"!==e.axis.scrollbarSettings.position&&"Right"!==e.axis.scrollbarSettings.position?!r||"Top"!==e.axis.scrollbarSettings.position&&"Bottom"!==e.axis.scrollbarSettings.position||(p=$e(e,r)):u=$e(e,r),e.svgObject=t.createSvg({id:e.component.element.id+"_scrollBar_svg"+e.axis.name,width:e.isVertical?e.height:e.axis.scrollbarSettings.enableZoom?e.width+e.svgExtraWidth:e.width,height:e.isVertical?e.width:e.height,style:"position: absolute;top: "+p+"px;left: "+(u-(!e.isVertical&&e.axis.scrollbarSettings.enableZoom?e.svgExtraWidth/2:0))+"px;cursor:auto;"}),e.elements.push(e.svgObject)}(this,this.component.svgRenderer),this.wireEvents(this.svgObject),this.svgObject.appendChild(this.scrollElements.renderElements(this,this.component.svgRenderer)),this.svgObject},e.prototype.getTheme=function(){this.scrollbarThemeStyle=no(this.component.theme)},e.prototype.removeScrollSvg=function(){document.getElementById(this.component.element.id+"_scrollBar_svg"+this.axis.name)&&(0,t.remove)(document.getElementById(this.component.element.id+"_scrollBar_svg"+this.axis.name))},e.prototype.setCursor=function(e){var t=e.id;this.svgObject.style.cursor=(t.indexOf("scrollBarThumb_")>-1||t.indexOf("_gripCircle")>-1)&&this.axis.scrollbarSettings.height>=12?"-webkit-grab":t.indexOf("Circle_")>-1||t.indexOf("Arrow_")>-1?this.isVertical?"ns-resize":"ew-resize":"auto"},e.prototype.setTheme=function(e){var t=e.id,i=t.indexOf("_leftCircle_")>-1||t.indexOf("_leftArrow_")>-1,o=t.indexOf("_rightCircle_")>-1||t.indexOf("_rightArrow_")>-1,r=this.scrollbarThemeStyle,n=this.scrollElements.leftArrowEle,a=this.scrollElements.rightArrowEle,l=this.scrollElements.leftCircleEle,s=this.scrollElements.rightCircleEle,h=this.isCurrentAxis(e,n);l.style.fill=i&&h?r.circleHover:r.circle,s.style.fill=o&&h?r.circleHover:r.circle,l.style.stroke=i&&h?r.circleHover:r.circle,s.style.stroke=o&&h?r.circleHover:r.circle,"HighContrastLight"===this.component.theme&&(n.style.fill=i&&h?r.arrowHover:r.arrow,n.style.stroke=i&&h?r.arrowHover:r.arrow,a.style.fill=o&&h?r.arrowHover:r.arrow,a.style.stroke=o&&h?r.arrowHover:r.arrow,l.style.stroke=i&&h?r.circleHover:r.circle,s.style.stroke=o&&h?r.circleHover:r.circle)},e.prototype.isCurrentAxis=function(e,t){return e.id.split("_")[2]===t.id.split("_")[2]},e.prototype.resizeThumb=function(){var e,t=this.axis.scrollbarSettings.height/2,i=2*t+10+14,o=this.previousRectX,r=this.axis.isAxisInverse,n=this.isVertical&&r?this.mouseY:this.isVertical?this.width-this.mouseY:r?this.width-this.mouseX:this.mouseX,a=Math.abs(this.previousXY-n);if(this.isResizeLeft&&n>=0){var l=o+(n>this.previousXY?a:-a);if(e=l-t>=0?this.previousWidth+(n>this.previousXY?-a:a):this.previousWidth,l=l-t>=0?l:o,e>=i&&n<l+e){this.scrollElements.thumbRectX=this.previousRectX=l,this.scrollElements.thumbRectWidth=this.previousWidth=e,this.previousXY=n,this.setZoomFactorPosition(l,e);var s={axis:this.axis,name:pe,range:this.axis.visibleRange,zoomFactor:this.zoomFactor,zoomPosition:this.zoomPosition,previousRange:this.axis.visibleRange,previousZoomFactor:this.axis.zoomFactor,previousZoomPosition:this.axis.zoomPosition,currentRange:null,cancel:!1};this.component.trigger(pe,s),s.cancel?(this.zoomFactor=s.previousZoomFactor,this.zoomPosition=s.previousZoomPosition):(this.positionThumb(l,e),this.axis.zoomFactor=s.zoomFactor,this.axis.zoomPosition=s.zoomPosition)}}else if(this.isResizeRight){e=n>=i+this.scrollElements.thumbRectX&&n<=this.width+("Horizontal"===this.axis.orientation?this.svgExtraWidth/2:0)-t?n-this.scrollElements.thumbRectX:this.previousWidth,this.scrollElements.thumbRectWidth=this.previousWidth=e,this.previousXY=n,this.setZoomFactorPosition(this.startX,e),this.isLazyLoad||this.setZoomFactorPosition(this.startX,e);s={axis:this.axis,name:pe,range:this.axis.visibleRange,zoomFactor:this.zoomFactor,zoomPosition:this.zoomPosition,previousRange:this.axis.visibleRange,previousZoomFactor:this.axis.zoomFactor,previousZoomPosition:this.axis.zoomPosition,currentRange:null,cancel:!1};this.component.trigger(pe,s),s.cancel?(this.zoomFactor=s.previousZoomFactor,this.zoomPosition=s.previousZoomPosition):(this.positionThumb(this.startX,e),this.axis.zoomFactor=s.zoomFactor,this.axis.zoomPosition=s.zoomPosition)}},e.prototype.positionThumb=function(e,t){var i=this.scrollElements;i.slider.setAttribute("x",this.axis.scrollbarSettings.enableZoom?e.toString():(e-this.axis.scrollbarSettings.height/2).toString()),i.slider.setAttribute("width",this.axis.scrollbarSettings.enableZoom?t.toString():(t+this.axis.scrollbarSettings.height).toString()),i.leftCircleEle.setAttribute("cx",e.toString()),i.rightCircleEle.setAttribute("cx",(e+t).toString()),i.setArrowDirection(e,t,this.height),i.gripCircle.setAttribute("transform","translate("+(e+t/2+5*(this.isVertical?1:-1))+","+(this.isVertical?this.axis.scrollbarSettings.height/2+2.5-.5:this.axis.scrollbarSettings.height/2-2.5-.5)+") rotate("+(this.isVertical?"180":"0")+")")},e.prototype.getDefaults=function(){var e=this.axis,t=this.axis.scrollbarSettings.height/2,i=2*t+10+14;this.axis.scrollbarSettings.enable&&(this.isLazyLoad=!0,this.getLazyDefaults(e)),this.isVertical="Vertical"===e.orientation;var o=this.component.enableRtl&&!this.isVertical&&!e.isInversed||e.isInversed&&!(this.component.enableRtl&&!this.isVertical);this.zoomFactor=this.isLazyLoad?this.zoomFactor:e.zoomFactor,this.zoomPosition=this.isLazyLoad?o?1-(this.zoomPosition+this.zoomFactor):this.zoomPosition:o?1-(e.zoomPosition+e.zoomFactor):e.zoomPosition;var r=this.zoomFactor*(this.isVertical?e.rect.height:e.rect.width);r=this.isLazyLoad&&!this.axis.scrollbarSettings.enableZoom||r>i?r:i,this.scrollX=e.rect.x,this.scrollY=e.rect.y,this.width=this.isVertical?e.rect.height:e.rect.width,this.height=this.axis.scrollbarSettings.height;var n=this.zoomPosition*(this.isVertical?e.rect.height:this.width),a=this.width-i-t;this.scrollElements.thumbRectX=n>a?!this.isVertical&&this.axis.scrollbarSettings.enableZoom?a+this.svgExtraWidth/2:a:n<t?!this.isVertical&&this.axis.scrollbarSettings.enableZoom?t+this.svgExtraWidth/2:t:!this.isVertical&&this.axis.scrollbarSettings.enableZoom?n+this.svgExtraWidth/2:n,this.scrollElements.thumbRectWidth=this.isThumbDrag?this.scrollElements.thumbRectWidth:r+this.scrollElements.thumbRectX<this.width-2*t?r:(!this.isVertical&&this.axis.scrollbarSettings.enableZoom?this.width+this.svgExtraWidth/2:this.width)-this.scrollElements.thumbRectX-t},e.prototype.getLazyDefaults=function(e){var t,i,o=e.valueType,r=e.scrollbarSettings,n=e.scrollbarSettings.range,a=e.visibleRange,l=e.scrollbarSettings.pointsLength;this.valueType=o=r.range.minimum&&r.range.maximum||!r.pointsLength?o:"Double";var s={skeleton:"full",type:"dateTime"},h=this.component.intl.getDateParser(s),c=this.component.intl.getDateFormat(s);switch(o){case"Double":case"Category":case"Logarithmic":t=n.minimum?n.minimum:l?0:a.min,i=n.maximum?n.maximum:l?l-1:a.max;break;case"DateTime":case"DateTimeCategory":t=n.minimum?Date.parse(h(c(n.minimum))):a.min,i=n.maximum?Date.parse(h(c(n.maximum))):a.max}t=Math.min(t,a.min),i=Math.max(i,a.max);var d=(a.max-a.min)/(i-t),p=(a.min-t)/(i-t);this.zoomFactor=n.minimum||n.maximum?d:this.axis.maxPointLength/e.scrollbarSettings.pointsLength,this.zoomPosition=n.minimum||n.maximum?p:e.zoomPosition,this.zoomPosition=this.component.enableRtl&&"Horizontal"===e.orientation&&!e.isInversed||e.isInversed&&(!this.component.enableRtl||"Horizontal"!==e.orientation)?1-(this.zoomPosition+this.zoomFactor):this.zoomPosition,this.scrollRange.min=t,this.scrollRange.max=i,this.scrollRange.delta=i-t,this.previousStart=a.min,this.previousEnd=a.max},e.prototype.getLogRange=function(e){var t=e.scrollbarSettings.range,i=et(t.minimum,e.logBase),o=et(t.maximum,e.logBase);return i=isFinite(i)?i:t.minimum,o=isFinite(i)?o:t.maximum,{minimum:Math.floor(i/1),maximum:Math.ceil(o/1)}},e.prototype.injectTo=function(t,i){t.zoomingScrollBar=new e(i,t)},e.prototype.destroy=function(){var e=this;this.axes?this.axes.map(function(e){e.zoomingScrollBar.destroy()}):(this.elements.map(function(i){e.unWireEvents(i),(0,t.remove)(i.firstChild)}),this.elements=[])},e.prototype.getModuleName=function(){return"ScrollBar"},e.prototype.getArgs=function(e,t,i,o,r){return{axis:this.axis,name:e,range:this.axis.visibleRange,zoomFactor:this.axis.zoomFactor,zoomPosition:this.axis.zoomPosition,previousRange:t,previousZoomFactor:o,previousZoomPosition:i,currentRange:r}},e}(),na=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),aa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.paretoAxes=[],t}return na(t,e),t.prototype.initSeries=function(e,t){var i=new Co(t,"series",e.properties,!0),o=t.palettes.length?t.palettes:oo(t.theme),r=o.length;i.name="Pareto",i.yAxisName=e.yAxisName+"_CumulativeAxis",i.category="Pareto",e.category="Pareto",i.index=e.index+t.series.length,i.type="Line",i.interior=i.fill=i.paretoOptions.fill?i.paretoOptions.fill:o[i.index%r],i.width=i.paretoOptions.width,i.dashArray=i.paretoOptions.dashArray,i.marker=i.paretoOptions.marker,i.marker&&i.marker.visible&&(i.marker.shape=i.marker.shape?i.marker.shape:Ao[t.markerIndex%10],t.markerIndex++),t.visibleSeries.push(i),this.initAxis(e,i,t)},t.prototype.initAxis=function(e,t,i){if(!this.paretoAxes.some(function(e){return e.name===t.yAxisName})){var o=e.yAxisName&&i.axes.length?i.axes.filter(function(t){return t.name===e.yAxisName})[0]:i.primaryYAxis,r=new Xe(i,"axes",{name:t.yAxisName,majorGridLines:{width:0},majorTickLines:o.majorTickLines,lineStyle:o.lineStyle,minimum:0,maximum:100,interval:20,rowIndex:o.rowIndex,opposedPosition:!0,labelFormat:"{value}%"});this.paretoAxes.push(r)}},t.prototype.render=function(e){e.chart.columnSeriesModule.render(e)},t.prototype.performCumulativeCalculation=function(e,t){for(var i=e,o=0,r=0,n=i.length,a=0;a<n;a++)o+=i[a][t.yName];for(a=0;a<n;a++)r+=i[a][t.yName],i[a][t.yName]=Number((r/o*100).toFixed(2));return i},t.prototype.doAnimation=function(e){this.animate(e)},t.prototype.getModuleName=function(){return"ParetoSeries"},t.prototype.destroy=function(){},t}(rr),la=c(461),sa=function(){function e(e){this.control=e}return e.prototype.export=function(e,i,o,r,n,a,l,s,h,c){var d=this,p=this.getControlsValue(r,l,c&&"PDF"===e,e),u=[],g=[],m=[],y=!(t.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1);o=(0,t.isNullOrUndefined)(o)?la.PdfPageOrientation.Landscape:o;for(var f=function(l){g.push(n||p[l].width),m.push(a||p[l].height);var c=r[l].svgObject,f=r[l].enableCanvas,b=void 0;f||(c=(0,t.createElement)("canvas",{id:"ej2-canvas",attrs:{width:g[l].toString(),height:m[l].toString()}}));var x='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+p[l].svg.outerHTML+"</svg>",S=window.URL.createObjectURL(new Blob("SVG"===e?[x]:[(new XMLSerializer).serializeToString(p[l].svg)],{type:"image/svg+xml"}));if("SVG"===e)if("msie"===t.Browser.info.name){var C=new Blob([(new XMLSerializer).serializeToString(p[l].svg)],{type:"application/octet-stream"});window.navigator.msSaveOrOpenBlob(C,i+"."+e.toLocaleLowerCase())}else v.triggerDownload(i,e,S,y);else if("msie"===t.Browser.info.name){var F=c;f||(F=v.createCanvas()),b=F.toDataURL(),u.push(c),"PDF"===e?u.length===p.length&&v.exportPdf(u,o,g,m,y,i,s,h):v.doexport(e,b,i)}else{var w=new Image,L=c.getContext("2d");w.onload=function(){L.drawImage(w,0,0),window.URL.revokeObjectURL(S),u.push(c),"PDF"===e?u.length===p.length&&d.exportPdf(u,o,g,m,y,i,s,h):window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(c.toBlob(null),i+"."+e.toLocaleLowerCase()):d.triggerDownload(i,e,c.toDataURL("image/"+e.toLowerCase()),y)},w.src=S}f||Je(document.getElementById(r[l].element.id+"_canvas"))},v=this,b=0;b<p.length;b++)f(b)},e.prototype.getDataUrl=function(e){var i=this.getControlsValue([e]),o=this.control.svgObject,r=this.control.enableCanvas;r||(o=(0,t.createElement)("canvas",{id:"ej2-canvas",attrs:{width:i[0].width.toString(),height:i[0].height.toString()}}));var n=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(i[0].svg)],{type:"image/svg+xml"}));if("msie"===t.Browser.info.name){var a=o;r||(a=this.createCanvas());var l={name:Se,cancel:!1,dataUrl:o.toDataURL("image/png")};return e.trigger(Se,l),{element:a,dataUrl:a.toDataURL()}}var s=new Image,h=o.getContext("2d");return s.onload=function(){h.drawImage(s,0,0),window.URL.revokeObjectURL(n);var t={name:Se,cancel:!1,dataUrl:o.toDataURL("image/png")};return e.trigger(Se,t),t.dataUrl},s.src=n,{element:o,blobUrl:n}},e.prototype.triggerDownload=function(e,i,o,r){(0,t.createElement)("a",{attrs:{download:e+"."+i.toLocaleLowerCase(),href:o}}).dispatchEvent(new MouseEvent(r?"click":"move",{view:window,bubbles:!1,cancelable:!0}))},e.prototype.getControlsValue=function(e,i,o,r){for(var n,a=0,l=0,s=new R.SvgRenderer("").createSvg({id:"Svg_Export_Element",width:200,height:200}),h=[],c=0;c<e.length;c++){var d=e[c];d.enableRtl&&s.setAttribute("direction","rtl");var p=d.enableCanvas,u=d.svgObject.cloneNode(!0),g=d.renderer.createGroup({style:(0,t.isNullOrUndefined)(i)||i?"transform: translateY("+l+"px)":"transform: translateX("+a+"px)"});if("transparent"===(n=u.childNodes[0]?u.childNodes[0].getAttribute("fill"):"transparent")&&(n=d.theme.indexOf("Dark")>-1||d.theme.indexOf("HighContrast")>-1?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)"),!p){if("stockChart"===d.getModuleName()){u.childNodes[0].firstChild.setAttribute("fill",n);for(var m=1;m<u.childNodes.length;m++)u.childNodes[m].childNodes[0].setAttribute("fill",n)}else"SVG"===r&&u.childNodes[0].setAttribute("fill",n);g.appendChild(u)}var y=0,f=0;d.stockLegendModule&&d.legendSettings.visible&&("Bottom"===d.legendSettings.position||"Top"===d.legendSettings.position||"Auto"===d.legendSettings.position?y+=d.stockLegendModule.legendBounds.height:"Left"!==d.legendSettings.position&&"Right"!==d.legendSettings.position||(f+=d.stockLegendModule.legendBounds.width)),a=(0,t.isNullOrUndefined)(i)||i?Math.max(d.availableSize.width+f,a):a+d.availableSize.width+f,l=(0,t.isNullOrUndefined)(i)||i?l+d.availableSize.height+y:Math.max(d.availableSize.height+y,l),p||s.appendChild(g),(o||c===e.length-1)&&((!o&&!this.control.enableCanvas||o&&!p)&&(s.setAttribute("width",a+""),s.setAttribute("height",l+""),s.style.backgroundColor=n),h.push({width:a,height:l,svg:s})),o&&c<e.length&&(a=0,l=0,s=new R.SvgRenderer("").createSvg({id:"Svg_Export_Element",width:200,height:200}))}return h},e.prototype.createCanvas=function(){var e=this.control;this.canvasRender(!0,e);var t=e.svgObject;return this.canvasRender(!1,e),t},e.prototype.canvasRender=function(e,t){t.enableCanvas=e,t.preRender(),t.render()},e.prototype.exportPdf=function(e,t,i,o,r,n,a,l){for(var s=new la.PdfDocument,h=s.pageSettings.margins,c=s.pageSettings.width,d=s.pageSettings.height,p=0;e.length>p;p++){var u=e[p].toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");s.pageSettings.orientation=t;var g=c<i[p]?i[p]+h.left+h.right:c,m=0===t&&d>o[p]?i[p]+h.left+h.right:d<o[p]?o[p]+h.top+h.bottom:d;if(void 0!==a){for(var y=new la.PdfStandardFont(1,a.fontSize||15),f=new la.PdfSolidBrush(new la.PdfColor(0,0,0)),v=_i(a.content,i[p]-(h.left+h.right+c/2),{size:a.fontSize.toString(),fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"},null),b=(0,R.measureText)("chartMeasureText",{size:a.fontSize.toString(),fontStyle:"Normal",fontWeight:"400",fontFamily:"Segoe UI"}).height,x=b*v.length,S=new la.PdfPageTemplateElement(g,x),C=0;C<v.length;C++){var F=(a.y||0)+C*b;S.graphics.drawString(v[C],y,null,f,a.x,F,null)}s.template.top=S}if(void 0!==l){y=new la.PdfStandardFont(1,l.fontSize||15);var w=new la.PdfPageTemplateElement(g,30);w.graphics.drawString(l.content+"",y,null,new la.PdfSolidBrush(new la.PdfColor(0,0,0)),l.x,l.y,null),s.template.bottom=w}s.pageSettings.size=new la.SizeF(g,m),u=u.slice(u.indexOf(",")+1),s.pages.add().graphics.drawImage(new la.PdfBitmap(u),0,0,i[p],o[p])}r&&(s.save(n+".pdf"),s.destroy())},e.prototype.doexport=function(e,t,i){var o,r=e||"JPG";o=[t],this.exportImage(o,i,r,t)},e.prototype.exportImage=function(e,i,o,r){for(var n=[],a=e instanceof HTMLElement?0:e.length,l=0;l<a;l++){for(var s=e[l].replace(/^data:[a-z]*;,/,"").split(","),h=atob(s[1]),c=new ArrayBuffer(h.length),d=new Uint8Array(c),p=0;p<h.length;p++)d[p]=h.charCodeAt(p);n.push(c)}for(var u=0;u<n.length;u++){var g=new Blob([n[u]],{type:"application/octet-stream"});"msie"===t.Browser.info.name&&window.navigator.msSaveOrOpenBlob(g,i+"."+o.toLocaleLowerCase())}},e}(),ha=c(437),ca=function(){function e(e){this.actualRowCount=0,this.series=[],this.axisCollection=[],this.requiredValuesLength=0,this.histogramSeriesCount=0,this.chart=e}return e.prototype.export=function(e,t,i,o,r,n,a,l,s,h){var c=new sa(this.chart);if(o=o||[this.chart],"CSV"===e||"XLSX"===e)this.excelExport(o,t,e,r,n);else{var d={cancel:!1,name:xe,width:r,height:n,excelProperties:{rows:void 0,columns:void 0}};this.chart.trigger(xe,d),d.cancel||c.export(e,t,i,o,r=d.width,n=d.height,a,l,s,h)}},e.prototype.excelExport=function(e,t,i,o,r){this.rows=[],this.actualRowCount=1;for(var n=[],a=[],l={bold:!0,hAlign:"Center",vAlign:"Center",wrapText:!0},s=[],h=0;h<e.length;h++){var c="rangeNavigator"===e[h].getModuleName(),d="accumulationchart"===e[h].getModuleName();if(this.series=c?e[h].series:e[h].visibleSeries,c&&0===this.series.length)e[h].dataSource&&this.createRangeNavigatorExcelSheet(e[h],l,i);else{if(this.histogramSeriesCount=0,this.requiredValuesLength=0,this.axisCollection=[],d||c?this.axisCollection.push(null):this.axisCollection="stockChart"===e[h].getModuleName()?e[h].chart.horizontalAxes:e[h].isTransposed?e[h].verticalAxes:e[h].horizontalAxes,a=this.getRequiredValues(c),0===this.requiredValuesLength&&this.series.length===this.histogramSeriesCount)return;s=this.getXValue(a,e[h],c,d),this.getTitle(a,l,e[h],c,d,i,s[0].length),this.createExcelSheet(c,d,s,i,a,l,e[h])}}var p=[];this.requiredValuesLength=0===this.requiredValuesLength?1:this.requiredValuesLength;for(var u=0;u<this.requiredValuesLength;u++)p.push({index:u+1,width:100});var g={cancel:!1,name:xe,width:o,height:r,excelProperties:{rows:this.rows,columns:p}};(e[0].trigger(xe,g),g.cancel)||(n.push({columns:g.excelProperties.columns,rows:g.excelProperties.rows}),t=t||("XLSX"===i?"XLSX":"CSV"),new ha.Workbook({worksheets:n},"XLSX"===i?"xlsx":"csv").save(t+("XLSX"===i?".xlsx":".csv")))},e.prototype.createRangeNavigatorExcelSheet=function(e,t,i){var o=e.xName,r=e.yName;this.rows.push({index:this.actualRowCount,cells:[{index:1,value:e.valueType.indexOf("DateTime")>-1?e.valueType:"Category",colSpan:1,rowSpan:1,style:t},{index:2,value:r,colSpan:1,rowSpan:1,style:t}]}),this.actualRowCount++;for(var n=e.dataSource,a=0;a<n.length;a++)this.rows.push({index:this.actualRowCount,cells:[{index:1,value:"CSV"===i&&null===n[a][o]?"":n[a][o],colSpan:1,rowSpan:1,style:t},{index:2,value:"CSV"===i&&null===n[a][r]?"":n[a][r],colSpan:1,rowSpan:1,style:{}}]}),this.actualRowCount++;this.requiredValuesLength=2},e.prototype.getRequiredValues=function(e){for(var t=[],i=function(i){var r=o.series[i].type;if(!e&&!o.series[i].visible||"TrendLine"===o.series[i].category)return t.push([]),"continue";if("Histogram"===r?(t.push([]),o.histogramSeriesCount++):"Pareto"===o.series[i].category?t.push([o.series[i].xName,"y"]):-1!==r.indexOf("Range")||"Hilo"===r?t.push([o.series[i].xName,o.series[i].high,o.series[i].low]):"HiloOpenClose"===r||"Candle"===r?(t.push([o.series[i].xName,o.series[i].high,o.series[i].low,o.series[i].open,o.series[i].close]),"Candle"===r&&""!==o.series[i].volume&&t[i].push(o.series[i].volume)):"BoxAndWhisker"===r?t.push([o.series[i].xName,"maximum","upperQuartile","median","lowerQuartile","minimum","outliers"]):"Bubble"===r?(t.push([o.series[i].xName,o.series[i].yName]),""!==o.series[i].size&&t[i].push(o.series[i].size)):"Pie"===r?(t.push([o.series[i].xName,o.series[i].yName]),o.series[i].radius.match(/[a-zA-Z]/)&&t[i].push(o.series[i].radius)):t.push([o.series[i].xName,o.series[i].yName]),o.series[i].errorBar&&o.series[i].errorBar.visible){var n=o.series[i].errorBar;["verticalError","horizontalError","verticalNegativeError","horizontalNegativeError","verticalPositiveError","horizontalPositiveError"].forEach(function(e){"string"==typeof n[e]&&t[i].push(n[e])})}o.requiredValuesLength+=t[i].length},o=this,r=0;r<this.series.length;r++)i(r);return t},e.prototype.getTitle=function(e,t,i,o,r,n,a){var l,s=[],h=[],c=1,d=!1;!o&&"XLSX"===n&&i.title&&(this.rows.push({}),l=this.rows.length>0?this.rows.length-1:-1,this.actualRowCount++,d=!0);for(var p=0;p<this.axisCollection.length&&(!r||0!==a);p++){for(var u=!1,g="",m=c,y=!1,f=0;f<this.series.length;f++){var v=null!==this.axisCollection[p]?"primaryXAxis"===this.axisCollection[p].name||"primaryYAxis"===this.axisCollection[p].name&&this.series[f].type.indexOf("Bar")>-1?null:this.axisCollection[p].name:"";if(o||(r||v===this.series[f].xAxisName)&&this.series[f].visible&&"TrendLine"!==this.series[f].category&&"Histogram"!==this.series[f].type){y||(s.push({}),c++),y=!0;var b=this.series[f].name,x="BoxAndWhisker"===this.series[f].type?e[f].length-1:e[f].length;if(e[f][1]===this.series[f].yName)for(var S=1;S<x;S++)s.push({index:c,value:1===S?b||"Series-"+(f+1):e[f][S],colSpan:1,rowSpan:1,style:t}),c++;else{s.push({index:c,value:b||"Series-"+(f+1),colSpan:x-1,rowSpan:1,style:t});var C=c;for(S=1;S<x;S++)h.push({index:C,value:e[f][S],colSpan:1,rowSpan:1,style:t}),C++;"BoxAndWhisker"===this.series[f].type&&(s.push({index:C,value:e[f][x],colSpan:1,rowSpan:2,style:t}),C++),c=C,u=!0}g=r?e[0][0]:o?i.valueType:this.axisCollection[p].valueType,g=r||g.indexOf("DateTime")>-1?g:"Category"}}y&&(s[m-1]={index:m,value:g,colSpan:1,rowSpan:u?2:1,style:t})}s.length&&(this.rows.push({index:this.actualRowCount,cells:s}),this.actualRowCount++),h.length&&(this.rows.push({index:this.actualRowCount,cells:h}),this.actualRowCount++),d&&((s=[]).push({index:1,value:i.title,colSpan:1===c?c:c-1,rowSpan:1,style:t}),this.rows[l]={index:l+1,cells:s}),this.requiredValuesLength=c-1},e.prototype.getXValue=function(e,t,i,o){for(var r=[],n=0;n<this.axisCollection.length;n++){for(var a=[],l=o?"":i?t.valueType:this.axisCollection[n].valueType,s=0;s<this.series.length;s++){var h=null!==this.axisCollection[n]?"primaryXAxis"===this.axisCollection[n].name||"primaryYAxis"===this.axisCollection[n].name&&this.series[s].type.indexOf("Bar")>-1?null:this.axisCollection[n].name:"";if((i||(o||h===this.series[s].xAxisName)&&this.series[s].visible)&&"TrendLine"!==this.series[s].category&&"Histogram"!==this.series[s].type)for(var c=this.series[s].dataSource instanceof ao.DataManager?o?this.series[s].resultData:this.series[s].currentViewData:this.series[s].dataSource,d=0;d<c.length;d++)o&&!this.series[s].points[d].visible||a.push(l.indexOf("DateTime")>-1?new Date(c[d][e[s][0]]).getTime():c[d][e[s][0]])}r.push(a)}for(var p=function(e){r[e]=r[e].filter(function(t,i){return r[e].indexOf(t)===i})},u=0;u<r.length;u++)p(u);return r},e.prototype.createExcelSheet=function(e,i,o,r,n,a,l){for(var s=0,h=0,c=0;c<this.axisCollection.length;c++){for(var d=i?"":e?l[0].valueType:this.axisCollection[c].valueType,p=0;p<this.series.length;p++){var u=null!==this.axisCollection[c]?"primaryXAxis"===this.axisCollection[c].name||"primaryYAxis"===this.axisCollection[c].name&&this.series[p].type.indexOf("Bar")>-1?null:this.axisCollection[c].name:"";if((e||(i||this.series[p].xAxisName===u)&&this.series[p].visible)&&"TrendLine"!==this.series[p].category&&"Histogram"!==this.series[p].type)for(var g=this.series[p].dataSource instanceof ao.DataManager?i?this.series[p].resultData:this.series[p].currentViewData:this.series[p].dataSource,m=0;m<g.length;m++){var y=d.indexOf("DateTime")>-1?"Pareto"===this.series[p].category?new Date(this.series[p].points[m][n[p][0]]).getTime():new Date(g[m][n[p][0]]).getTime():"Pareto"===this.series[p].category?this.series[p].points[m][n[p][0]]:g[m][n[p][0]];if(o[c].indexOf(y)>-1){h=s||1;for(var f=[],v="BoxAndWhisker"===this.series[p].type?n[p].length-1:n[p].length,b=0;b<v;b++){var x=this.series[p].enableComplexProperty?(0,t.getValue)(n[p][b],g[m]):g[m][n[p][b]],S=0===b||"BoxAndWhisker"!==this.series[p].type&&"Pareto"!==this.series[p].category?x:this.series[p].points[m][n[p][b]];null===S&&"CSV"===r&&(S=""),f.push({index:0===b?0===s?1:s:h,value:S,colSpan:1,rowSpan:1,style:0===b?a:{}}),h++}"BoxAndWhisker"===this.series[p].type&&(f.push({index:h,value:this.series[p].points[m].outliers[0],colSpan:1,rowSpan:1,style:{}}),h++),this.rows.push({index:this.actualRowCount,cells:f}),this.actualRowCount++}}}s=h}},e.prototype.getDataUrl=function(e){return new sa(e).getDataUrl(e)},e.prototype.getModuleName=function(){return"Export"},e.prototype.destroy=function(){},e}(),da=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),pa=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ua=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return da(i,e),pa([(0,t.Property)(null)],i.prototype,"content",void 0),pa([(0,t.Property)("0")],i.prototype,"x",void 0),pa([(0,t.Property)("0")],i.prototype,"y",void 0),pa([(0,t.Property)("Pixel")],i.prototype,"coordinateUnits",void 0),pa([(0,t.Property)("Chart")],i.prototype,"region",void 0),pa([(0,t.Property)("Middle")],i.prototype,"verticalAlignment",void 0),pa([(0,t.Property)("Center")],i.prototype,"horizontalAlignment",void 0),pa([(0,t.Property)(null)],i.prototype,"description",void 0),i}(t.ChildProperty),ga=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return da(i,e),pa([(0,t.Property)(!1)],i.prototype,"visible",void 0),pa([(0,t.Property)(!0)],i.prototype,"showZero",void 0),pa([(0,t.Property)(null)],i.prototype,"name",void 0),pa([(0,t.Property)("transparent")],i.prototype,"fill",void 0),pa([(0,t.Property)("Inside")],i.prototype,"position",void 0),pa([(0,t.Property)(5)],i.prototype,"rx",void 0),pa([(0,t.Property)(5)],i.prototype,"ry",void 0),pa([(0,t.Property)(0)],i.prototype,"angle",void 0),pa([(0,t.Property)(!1)],i.prototype,"enableRotation",void 0),pa([(0,t.Complex)({width:null,color:null},u)],i.prototype,"border",void 0),pa([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"font",void 0),pa([(0,t.Complex)({},r)],i.prototype,"connectorStyle",void 0),pa([(0,t.Property)(null)],i.prototype,"template",void 0),pa([(0,t.Property)("")],i.prototype,"format",void 0),pa([(0,t.Property)(null)],i.prototype,"maxWidth",void 0),pa([(0,t.Property)("Ellipsis")],i.prototype,"textOverflow",void 0),pa([(0,t.Property)("Normal")],i.prototype,"textWrap",void 0),i}(t.ChildProperty),ma=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return da(i,e),pa([(0,t.Property)("50%")],i.prototype,"x",void 0),pa([(0,t.Property)("50%")],i.prototype,"y",void 0),i}(t.ChildProperty),ya=function(){this.visible=!0,this.symbolLocation=null,this.region=null,this.labelRegion=null,this.labelVisible=!0,this.regions=null,this.isExplode=!1,this.isClubbed=!1,this.isSliced=!1,this.argsData=null,this.isLabelUpdated=null,this.initialLabelRegion=null},fa=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.points=[],t.clubbedPoints=[],t.sumOfPoints=0,t.isRectSeries=!0,t.clipRect=new R.Rect(0,0,0,0),t.category="Series",t.rightSidePoints=[],t.leftSidePoints=[],t}return da(i,e),i.prototype.refreshDataManager=function(e,i){var o=this;this.accumulation=e,this.radius=this.radius?this.radius:t.Browser.isDevice&&"Outside"===this.dataLabel.position?"40%":"80%";var r=this.dataSource||e.dataSource;r instanceof ao.DataManager||!(0,t.isNullOrUndefined)(this.query)?this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(t){return o.dataManagerSuccess(t,e)}):this.dataManagerSuccess({result:r,count:r.length},e,i)},i.prototype.dataManagerSuccess=function(e,t,i){void 0===i&&(i=!0);var o={name:W,series:this,data:e.result};t.allowServerDataBinding=!1,t.trigger(W,o),this.resultData=""!==e.result?e.result:[],i||this.getPoints(this.resultData,t),++t.seriesCounts===t.visibleSeries.length&&i&&(this.getPoints(this.resultData,t),t.refreshChart())},i.prototype.getPoints=function(e,i){var o,r=Object.keys(e).length;if(this.sumOfPoints=0,0===r)return this.points=[],null;this.groupTo&&this.findSumOfPoints(e),this.points=[],this.clubbedPoints=[],this.sumOfClub=0;for(var n=this.palettes.length?this.palettes:oo(i.theme),a=Li(this.groupTo,this.sumOfPoints),l=0;l<r;l++)o=this.setPoints(e,l,n,i),this.isClub(o,a,l)?(o.index=this.clubbedPoints.length,o.isExplode=!0,this.clubbedPoints.push(o),o.isSliced=!0):((0,t.isNullOrUndefined)(o.y)&&(o.visible=!1),this.pushPoints(o,n));if(this.groupTo||this.findSumOfPoints(e),this.lastGroupTo=this.groupTo,this.sumOfClub>0){var s=this.generateClubPoint();this.pushPoints(s,n);var h=this.points.length-1;this.clubbedPoints.map(function(e){e.index+=h,e.color=s.color})}this.clubbedPoints.length&&this.explode&&"Pie"===this.type&&(this.explodeAll||this.points[this.points.length-1].index===this.explodeIndex)&&(this.points.splice(this.points.length-1,1),this.points=this.points.concat(this.clubbedPoints))},i.prototype.generateClubPoint=function(){var e=new ya;return e.isClubbed=!0,e.x="Others",e.y=this.sumOfClub,e.text=e.originalText=e.x+": "+this.sumOfClub,e.sliceRadius="80%",e},i.prototype.pushPoints=function(e,t){e.index=this.points.length,e.isExplode=this.explodeAll||e.index===this.explodeIndex,e.color=e.color||t[e.index%t.length],this.points.push(e)},i.prototype.isClub=function(e,i,o){if(!(0,t.isNullOrUndefined)(i)){if("Value"===this.groupMode&&Math.abs(e.y)<=i)return this.sumOfClub+=Math.abs(e.y),!0;if("Point"===this.groupMode&&o>=i)return this.sumOfClub+=Math.abs(e.y),!0}return!1},i.prototype.findSumOfPoints=function(e){for(var i=Object.keys(e).length,o=0;o<i;o++)(0,t.isNullOrUndefined)(e[o])||(0,t.isNullOrUndefined)(e[o][this.yName])||isNaN(e[o][this.yName])||!(this.points.length&&this.points[o]&&this.points[o].visible&&!(0,t.isNullOrUndefined)(this.points[o].y)||this.groupTo)||(this.sumOfPoints+=Math.abs(e[o][this.yName]))},i.prototype.setPoints=function(e,i,o,r){var n=new ya;return n.x=(0,t.getValue)(this.xName,e[i]),n.y=(0,t.getValue)(this.yName,e[i]),n.legendImageUrl=(0,t.getValue)(this.legendImageUrl,e[i]),n.color=(0,t.getValue)(this.pointColorMapping,e[i]),n.text=n.originalText=(0,t.getValue)(this.dataLabel.name||"",e[i]),n.tooltip=(0,t.getValue)(this.tooltipMappingName||"",e[i]),n.sliceRadius=(0,t.getValue)(this.radius,e[i]),n.sliceRadius=(0,t.isNullOrUndefined)(n.sliceRadius)?"80%":n.sliceRadius,n.separatorY=r.intl.formatNumber(n.y,{useGrouping:r.useGroupingSeparator}),this.setVisibility(n,i),this.setAccEmptyPoint(n,i,e),n},i.prototype.renderSeries=function(e,i){var o,r=i?qt(e.element.id+"_Series_"+this.index):e.renderer.createGroup({id:e.element.id+"_Series_"+this.index});this.renderPoints(e,r,i),e.accumulationDataLabelModule&&this.dataLabel.visible&&((o=e.renderer.createGroup({id:e.element.id+"_datalabel_Series_"+this.index})).style.visibility=(this.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries&&"Pie"===this.type?"hidden":"visible",this.renderDataLabel(e,o,i)),"Pie"===this.type&&(e.redraw||this.findMaxBounds(this.labelBound,this.accumulationBound),e.pieSeriesModule.animateSeries(e,this.animation,this,r,this.borderRadius,this.points)),!e.redraw&&e.accumulationLegendModule&&(this.labelBound.x-=e.explodeDistance,this.labelBound.y-=e.explodeDistance,this.labelBound.height+=e.explodeDistance-this.labelBound.y,this.labelBound.width+=e.explodeDistance-this.labelBound.x)},i.prototype.renderPoints=function(e,t,i,o,r,n){for(var a,l,s=e.element.id+"_Series_"+this.index+"_Point_",h=[],c=[],d=["Chessboard","Dots","DiagonalForward","Crosshatch","Pacman","DiagonalBackward","Grid","Turquoise","Star","Triangle","Circle","Tile","HorizontalDash","VerticalDash","Rectangle","Box","VerticalStripe","HorizontalStripe","Bubble"],p=0,u=this.points;p<u.length;p++){var g=u[p];g.percentage=+(g.y/this.sumOfPoints*100).toFixed(2);var m={cancel:!1,name:V,series:this,point:g,fill:g.color,border:this.isEmpty(g)?{width:this.emptyPointSettings.border.width,color:this.emptyPointSettings.border.color}:{width:this.border.width,color:this.border.color},pattern:this.applyPattern?d[g.index%d.length]:"None"};if(e.trigger(V,m),g.color=m.fill,l=g.color,this.applyPattern)l=new kn(e).pattern(e,g.color,g.index,m.pattern,this.opacity);a=new R.PathOption(s+g.index,l,m.border.width||1,m.border.color||g.color,this.opacity,m.series.dashArray,""),"Trapezoidal"===this.funnelMode&&"Funnel"===this.type?(h.push(a),g.visible&&c.push(g)):e[kt(this.type)+"SeriesModule"].renderPoint(g,this,e,a,t,i,o,r,n)}"Trapezoidal"===this.funnelMode&&"Funnel"===this.type?e[kt(this.type)+"SeriesModule"].renderTrapezoidalFunnel(this,c,e,h,t,i):ni(!1,e.getSeriesElement(),t,i)},i.prototype.renderDataLabel=function(e,i,o){e.accumulationDataLabelModule.findAreaRect();var r=(0,t.createElement)("div",{id:e.element.id+"_Series_0_DataLabelCollections"});this.leftSidePoints=[],this.rightSidePoints=[];for(var n=[],a=[],l=0,s=this.points;l<s.length;l++){var h=s[l];h.visible&&(this.dataLabel.showZero||!this.dataLabel.showZero&&(0!==h.y||0===h.y&&"Zero"===this.emptyPointSettings.mode))&&e.accumulationDataLabelModule.renderDataLabel(h,this.dataLabel,i,this.points,this.index,r,o),h.midAngle>=90&&h.midAngle<=270?this.leftSidePoints.push(h):h.midAngle>=0&&h.midAngle<=90?a.push(h):n.push(h)}if(n.sort(function(e,t){return e.midAngle-t.midAngle}),a.sort(function(e,t){return e.midAngle-t.midAngle}),this.leftSidePoints.sort(function(e,t){return e.midAngle-t.midAngle}),this.rightSidePoints=n.concat(a),e.accumulationDataLabelModule.drawDataLabels(this,this.dataLabel,i,r,o),null!==this.dataLabel.template&&r.childElementCount){var c=e.accumulationDataLabelModule.drawDataLabels.bind(e.accumulationDataLabelModule,this,this.dataLabel,i,r,o);e.isReact&&e.renderReactTemplates(c),ni(!1,qt(e.element.id+"_Secondary_Element"),r,o)}ni(!1,e.getSeriesElement(),i,o)},i.prototype.findMaxBounds=function(e,t){e.x=t.x<e.x?t.x:e.x,e.y=t.y<e.y?t.y:e.y,e.height=t.y+t.height>e.height?t.y+t.height:e.height,e.width=t.x+t.width>e.width?t.x+t.width:e.width},i.prototype.findMaxLabelWidth=function(){for(var e,t=0;t<this.points.length;t++)(e=this.points[0].textSize.width)<this.points[t].textSize.width&&(e=this.points[t].textSize.width);return e},i.prototype.setAccEmptyPoint=function(e,i,o){if(!(0,t.isNullOrUndefined)(e.y)&&!isNaN(e.y))return null;switch(e.color=this.emptyPointSettings.fill||e.color,this.emptyPointSettings.mode){case"Zero":e.y=0,e.visible=!0;break;case"Average":var r=o[i-1]&&o[i-1][this.yName]||0,n=o[i+1]&&o[i+1][this.yName]||0;e.y=(Math.abs(r)+Math.abs(n))/2,this.sumOfPoints+=e.y,e.visible=!0;break;default:e.visible=!1}},i.prototype.setVisibility=function(e,t){this.accumulation.accumulationLegendModule&&this.accumulation.accumulationLegendModule.legendCollections&&this.accumulation.accumulationLegendModule.legendCollections[t]&&!this.accumulation.accumulationLegendModule.legendCollections[t].visible&&(e.visible=!1)},i.prototype.setData=function(e,i){if(!e)return null;var o=!1;if(this.dataSource.length===e.length){o=!0;for(var r=0;r<e.length;r++){if(this.dataSource[r][this.xName]!==e[r][this.xName]){o=!1;break}var n=this.points[r];this.dataSource[r][this.yName]!==e[r][this.yName]&&(n.y=e[r][this.yName],this.dataSource[r]=e[r])}}if(o){this.sumOfPoints=0;var a=[];for(r=0;r<this.resultData.length;r++)this.points[r]&&this.points[r].visible&&a.push(this.resultData[r]);this.findSumOfPoints(a),this.accumulation.redraw=!this.borderRadius&&this.accumulation.enableAnimation,this.accumulation.animateSeries=!1;var l=this.accumulation.duration;this.accumulation.duration=(0,t.isNullOrUndefined)(i)?500:i,this.accumulation[kt(this.type)+"SeriesModule"].initProperties(this.accumulation,this),this.renderPoints(this.accumulation,qt(this.accumulation.element.id+"_Series_"+this.index),this.accumulation.redraw,null,null,!0),this.accumulation.centerLabel.text&&this.accumulation.renderCenterLabel(!0,!0),this.accumulation.annotationModule&&this.accumulation.annotationModule.renderAnnotations(qt(this.accumulation.element.id+"_Secondary_Element")),this.accumulation.accumulationDataLabelModule&&this.dataLabel.visible&&this.renderDataLabel(this.accumulation,qt(this.accumulation.element.id+"_datalabel_Series_"+this.index),this.accumulation.redraw),this.accumulation.redraw=!1,this.accumulation.duration=l}else this.dataSource=e},i.prototype.addPoint=function(e,i){var o;this.accumulation.series[0].dataLabel.visible&&(o=this.findMaxLabelWidth()),this.dataSource.push(e),this.resultData=this.dataSource,this.sumOfPoints=0;for(var r=[],n=0;n<this.resultData.length;n++)(this.points[n]&&this.points[n].visible||n===this.resultData.length-1)&&r.push(this.resultData[n]);var a=0===this.points.length?0:this.points[this.points.length-1].index+1,l=this.palettes.length?this.palettes:oo(this.accumulation.theme),s=this.setPoints(this.dataSource,a,l,this.accumulation);this.pushPoints(s,l),this.findSumOfPoints(r),this.accumulation.redraw=!this.borderRadius&&this.accumulation.enableAnimation;var h=this.accumulation.duration;this.accumulation.duration=(0,t.isNullOrUndefined)(i)?500:i,this.updateSeries(qt(this.accumulation.element.id+"_Series_"+this.index),o,"addPoint"),this.accumulation.redraw=!1,this.accumulation.duration=h},i.prototype.removePoint=function(e,i){var o=(0,t.extend)([],this.dataSource,null,!0),r=this.accumulation.duration;if(o.length>0&&e>=0&&e<o.length){this.sumOfPoints=0;for(var n=[],a=0;a<this.dataSource.length;a++)a!==e&&this.points[a]&&this.points[a].visible&&n.push(this.dataSource[a]);o.splice(e,1),this.dataSource.splice(e,1),this.accumulation.redraw=!this.borderRadius&&this.accumulation.enableAnimation,this.accumulation.duration=(0,t.isNullOrUndefined)(i)?500:i,this.points.splice(e,1);for(a=e;a<this.points.length;a++){var l=this.points[a];l.index=a,l.y=this.points[a].y}this.findSumOfPoints(n);var s=qt(this.accumulation.element.id+"_Series_0_Point_"+this.points.length);s&&s.parentNode.removeChild(s),this.updateSeries(qt(this.accumulation.element.id+"_Series_"+this.index),void 0,"removePoint",e),this.accumulation.redraw=!1,this.accumulation.duration=r}},i.prototype.updateSeries=function(e,t,i,o){var r,n=this.accumulation[kt(this.type)+"SeriesModule"].radius,a=this.accumulation[kt(this.type)+"SeriesModule"].center;if(this.accumulation.legendSettings.visible){if("addPoint"===i)this.accumulation.accumulationLegendModule.legendCollections.push(new Eo(this.points[this.points.length-1].x.toString(),this.points[this.points.length-1].color,this.legendShape,this.points[this.points.length-1].visible,this.type,this.points[this.points.length-1].legendImageUrl,null,null,this.points[this.points.length-1].index,this.index));else{this.accumulation.accumulationLegendModule.legendCollections.splice(o,1);for(var l=o;l<this.accumulation.accumulationLegendModule.legendCollections.length;l++)this.accumulation.accumulationLegendModule.legendCollections[l].pointIndex=l}if(this.accumulation.accumulationLegendModule.legendCollections.length>=1&&(r=this.accumulation.accumulationLegendModule.legendBounds,this.accumulation.accumulationLegendModule.calculateLegendBounds(this.accumulation.initialClipRect,this.accumulation.availableSize,null,r,!0),!this.dataLabel||"Outside"!==this.dataLabel.position||"Bottom"!==this.accumulation.legendSettings.position&&"Top"!==this.accumulation.legendSettings.position?r.width!==this.accumulation.accumulationLegendModule.legendBounds.width:r.height!==this.accumulation.accumulationLegendModule.legendBounds.height)){var s=this.accumulation.title?(0,R.measureText)(this.accumulation.title,this.accumulation.titleStyle,this.accumulation.themeStyle.chartTitleFont).height*this.accumulation.titleCollection.length:0,h=this.accumulation.subTitle?(0,R.measureText)(this.accumulation.subTitle,this.accumulation.subTitleStyle,this.accumulation.themeStyle.chartSubTitleFont).height*this.accumulation.subTitleCollection.length:0;this.accumulation.initialClipRect=new R.Rect(this.accumulation.margin.left,this.accumulation.margin.top,this.accumulation.availableSize.width,this.accumulation.availableSize.height),ht(this.accumulation.initialClipRect,new R.Rect(0,h+s,this.accumulation.margin.right+this.accumulation.margin.left,this.accumulation.margin.bottom+this.accumulation.margin.top)),this.accumulation.accumulationLegendModule.calculateLegendBounds(this.accumulation.initialClipRect,this.accumulation.availableSize,null)}}if(this.accumulation[kt(this.type)+"SeriesModule"].initProperties(this.accumulation,this),this.renderPoints(this.accumulation,e,this.accumulation.redraw,n,a,!0),r&&("Bottom"===this.accumulation.legendSettings.position||"Top"===this.accumulation.legendSettings.position?r.height!==this.accumulation.accumulationLegendModule.legendBounds.height:r.width!==this.accumulation.accumulationLegendModule.legendBounds.width)&&this.accumulation.centerLabel.text&&this.accumulation.renderCenterLabel(!0,!0),this.accumulation.annotationModule&&this.accumulation.annotationModule.renderAnnotations(qt(this.accumulation.element.id+"_Secondary_Element")),this.accumulation.accumulationDataLabelModule&&this.dataLabel.visible){var c=this.accumulation.renderer.createGroup({id:this.accumulation.element.id+"_datalabel_Series_"+this.index});this.renderDataLabel(this.accumulation,c,this.accumulation.redraw)}this.accumulation.legendSettings.visible&&("Pie"===this.type&&(this.dataLabel.visible&&this.points[this.points.length-1]&&this.points[this.points.length-1].textSize.width>t&&"Top"!==this.accumulation.legendSettings.position&&"Bottom"!==this.accumulation.legendSettings.position&&(this.accumulation.visibleSeries[0].findMaxBounds(this.accumulation.visibleSeries[0].labelBound,this.points[this.points.length-1].labelRegion),this.findMaxBounds(this.labelBound,this.accumulationBound),this.labelBound.x-=this.accumulation.explodeDistance,this.labelBound.y-=this.accumulation.explodeDistance,this.labelBound.height+=this.accumulation.explodeDistance-this.labelBound.y,this.labelBound.width+=this.accumulation.explodeDistance-this.labelBound.x),this.accumulation.accumulationLegendModule.getSmartLegendLocation(this.accumulation.visibleSeries[0].labelBound,this.accumulation.accumulationLegendModule.legendBounds,this.accumulation.margin)),this.accumulation.accumulationLegendModule.renderLegend(this.accumulation,this.accumulation.legendSettings,this.accumulation.accumulationLegendModule.legendBounds,this.accumulation.redraw,!0))},i.prototype.isEmpty=function(e){return e.color===this.emptyPointSettings.fill},pa([(0,t.Property)("")],i.prototype,"dataSource",void 0),pa([(0,t.Property)()],i.prototype,"query",void 0),pa([(0,t.Property)("")],i.prototype,"xName",void 0),pa([(0,t.Property)("")],i.prototype,"name",void 0),pa([(0,t.Property)("")],i.prototype,"tooltipMappingName",void 0),pa([(0,t.Property)("")],i.prototype,"yName",void 0),pa([(0,t.Property)(!0)],i.prototype,"visible",void 0),pa([(0,t.Complex)({color:null,width:0},u)],i.prototype,"border",void 0),pa([(0,t.Complex)(null,y)],i.prototype,"animation",void 0),pa([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),pa([(0,t.Property)("")],i.prototype,"legendImageUrl",void 0),pa([(0,t.Property)("")],i.prototype,"pointColorMapping",void 0),pa([(0,t.Property)(!1)],i.prototype,"applyPattern",void 0),pa([(0,t.Property)(null)],i.prototype,"selectionStyle",void 0),pa([(0,t.Property)(null)],i.prototype,"groupTo",void 0),pa([(0,t.Property)("Value")],i.prototype,"groupMode",void 0),pa([(0,t.Complex)({},ga)],i.prototype,"dataLabel",void 0),pa([(0,t.Property)([])],i.prototype,"palettes",void 0),pa([(0,t.Property)(0)],i.prototype,"startAngle",void 0),pa([(0,t.Property)(null)],i.prototype,"endAngle",void 0),pa([(0,t.Property)(null)],i.prototype,"radius",void 0),pa([(0,t.Property)("0")],i.prototype,"innerRadius",void 0),pa([(0,t.Property)("Pie")],i.prototype,"type",void 0),pa([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),pa([(0,t.Property)(!1)],i.prototype,"explode",void 0),pa([(0,t.Property)("30%")],i.prototype,"explodeOffset",void 0),pa([(0,t.Property)(!1)],i.prototype,"explodeAll",void 0),pa([(0,t.Property)(null)],i.prototype,"explodeIndex",void 0),pa([(0,t.Complex)({mode:"Drop"},v)],i.prototype,"emptyPointSettings",void 0),pa([(0,t.Property)(0)],i.prototype,"gapRatio",void 0),pa([(0,t.Property)("80%")],i.prototype,"width",void 0),pa([(0,t.Property)("80%")],i.prototype,"height",void 0),pa([(0,t.Property)("20%")],i.prototype,"neckWidth",void 0),pa([(0,t.Property)("20%")],i.prototype,"neckHeight",void 0),pa([(0,t.Property)("Linear")],i.prototype,"pyramidMode",void 0),pa([(0,t.Property)("Standard")],i.prototype,"funnelMode",void 0),pa([(0,t.Property)(1)],i.prototype,"opacity",void 0),pa([(0,t.Property)("0")],i.prototype,"dashArray",void 0),pa([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),pa([(0,t.Property)(0)],i.prototype,"borderRadius",void 0),i}(t.ChildProperty);function va(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(e===r.index)return r}return t[0]}function ba(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.index===e)return r}return null}var xa=function(){function e(e){this.accumulation=e}return Object.defineProperty(e.prototype,"center",{get:function(){return this.pieCenter||("Pie"===this.accumulation.visibleSeries[0].type?this.accumulation.pieSeriesModule.pieBaseCenter:null)},set:function(e){this.pieCenter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return void 0!==this.pieRadius?this.pieRadius:this.accumulation.pieSeriesModule.pieBaseRadius},set:function(e){this.pieRadius=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelRadius",{get:function(){return void 0!==this.pieLabelRadius?this.pieLabelRadius:this.accumulation.pieSeriesModule.pieBaseLabelRadius},set:function(e){this.pieLabelRadius=e},enumerable:!0,configurable:!0}),e.prototype.isCircular=function(){return"Pie"===this.accumulation.type},e.prototype.isVariousRadius=function(){return this.accumulation.pieSeriesModule.isRadiusMapped},e.prototype.processExplode=function(e){if(e.target.id.indexOf("_Series_")>-1||e.target.id.indexOf("_datalabel_")>-1){var t=vt(e.target.id).point;if(isNaN(t)||e.target.id.indexOf("_datalabel_")>-1&&"Outside"===this.accumulation.visibleSeries[0].points[t].labelPosition)return null;this.explodePoints(t,this.accumulation),this.deExplodeAll(t,this.accumulation.enableAnimation?300:0)}},e.prototype.invokeExplode=function(){for(var e=this.accumulation.visibleSeries[0],t=this.accumulation.enableAnimation?300:0,i=0,o=e.points;i<o.length;i++){var r=o[i];r.isExplode&&0!==r.y&&this.pointExplode(r.index,r,t)}if(this.accumulation.accumulationSelectionModule&&"None"!==this.accumulation.selectionMode&&this.accumulation.accumulationSelectionModule.selectedDataIndexes.length)for(var n=0,a=this.accumulation.accumulationSelectionModule.selectedDataIndexes;n<a.length;n++){var l=a[n];this.explodePoints(l.point,this.accumulation,!0),this.deExplodeAll(l.point,t)}},e.prototype.deExplodeAll=function(e,t){for(var i=this.accumulation.element.id+"_Series_0_Point_",o=0,r=this.accumulation.visibleSeries[0].points;o<r.length;o++){var n=r[o];(e!==n.index&&!n.isSliced||n.isClubbed)&&(n.isExplode=!1,this.deExplodeSlice(n.index,i,t))}},e.prototype.explodePoints=function(e,i,o,r){void 0===o&&(o=!1);var n=i.visibleSeries[0],a=n.points,l=ba(e,a),s=!0,h=this.accumulation.enableAnimation?300:0;if((0,t.isNullOrUndefined)(l))return null;var c=!o&&(l.isSliced||n.clubbedPoints.length&&a[a.length-1].index===n.clubbedPoints[n.clubbedPoints.length-1].index);"Pie"===n.type&&(c||l.isClubbed)&&(s=this.clubPointExplode(e,l,n,a,i,h,c)),s&&0!==l.y&&this.pointExplode(e,l,h,o,r)},e.prototype.getSum=function(e){var t=0;return e.map(function(e){t+=e.visible?e.y:0}),t},e.prototype.clubPointExplode=function(e,t,i,o,r,n,a){if(void 0===a&&(a=!1),t.isClubbed)return r.animateSeries=!1,o.splice(o.length-1,1),i.clubbedPoints.map(function(e){e.visible=!0,e.isExplode=!0}),r.visibleSeries[0].points=o.concat(i.clubbedPoints),this.deExplodeAll(e,n),i.sumOfPoints=this.getSum(r.visibleSeries[0].points),r.refreshChart(),!1;if(a||t.isSliced){r.animateSeries=!1,o.splice(o.length-i.clubbedPoints.length,i.clubbedPoints.length);var l=i.generateClubPoint();if(l.index=o.length,l.color=i.clubbedPoints[0].color,o.push(l),i.sumOfPoints=this.getSum(o),this.deExplodeAll(e,n),l.isExplode=!1,r.visibleSeries[0].points=o,r.refreshChart(),this.pointExplode(l.index,o[l.index],0,!0),l.isExplode=!1,this.deExplodeSlice(l.index,r.element.id+"_Series_0_Point_",n),t.isSliced)return!1}return!0},e.prototype.pointExplode=function(e,t,i,o,r){var n,a=this.accumulation.element.id+"_Series_0_Point_",l=this.accumulation;n=this.isCircular()?ct(t.midAngle,l.explodeDistance,this.center):{x:t.labelRegion&&t.labelRegion.x<t.region.x?-l.explodeDistance:l.explodeDistance,y:0},this.isExplode(a+e)||o?(t.isExplode=!0,this.explodeSlice(e,n,a,this.center||{x:0,y:0},i,r)):(t.isExplode=!1,this.deExplodeSlice(e,a,i))},e.prototype.isExplode=function(e){var t=qt(e),i=t?t.getAttribute("transform"):null;return t&&("translate(0, 0)"===i||null===i||"translate(0)"===i)},e.prototype.deExplodeSlice=function(e,t,i){var o=qt(t+e),r=o?o.getAttribute("transform"):null;if(this.accumulation.enableAnimation&&o&&r&&"translate(0, 0)"!==r&&"translate(0)"!==r){var n=r.split("(")[1].split(")")[0].split(",");this.performAnimation(e,t,0,0,+n[0],+n[1]||0,i,!0)}else this.performAnimation(e,t,0,0,0,0,i,!0)},e.prototype.setTranslate=function(e,t,i,o){this.setElementTransform(t+e,i),this.setElementTransform(t+e+"_polygon",i),this.accumulation.visibleSeries[0].dataLabel.visible&&(t=this.accumulation.element.id+"_datalabel_Series_0_",this.setElementTransform(t+"shape_"+e,i),this.setElementTransform(t+"text_"+e,i+o),this.setElementTransform(t+"connector_"+e,i))},e.prototype.setElementTransform=function(e,t){var i=qt(e);i&&i.setAttribute("transform",t)},e.prototype.explodeSlice=function(e,t,i,o,r,n){n&&qt(this.accumulation.element.id+"_Series_0_Point_"+e).getAttribute("transform")?this.setElementTransform(i+e,"translate("+(t.x-o.x)+", "+(t.y-o.y)+")"):this.performAnimation(e,i,0,0,t.x-o.x,t.y-o.y,r)},e.prototype.performAnimation=function(e,i,o,r,n,a,l,s){var h,c,d=this,p=this.accumulation,u=i.split("_"),g=parseInt(i.split("_")[u.length-3],10),m=p.visibleSeries[g].points[e];if(l<=0)return this.setTranslate(e,i,"translate("+n+", "+a+")",m.transform),null;var y="Pie"===this.accumulation.series[g].type&&this.accumulation.animateSeries&&this.accumulation.series[0].animation.enable?this.accumulation.series[0].animation.duration:0;new t.Animation({}).animate((0,t.createElement)("div"),{duration:l,delay:y,progress:function(t){h=_t(t.timeStamp,o,n,t.duration),c=_t(t.timeStamp,r,a,t.duration),d.setTranslate(e,i,"translate("+(s?n-h:h)+", "+(s?a-c:c)+")",m.transform)},end:function(){d.setTranslate(e,i,"translate("+(s?o:n)+", "+(s?o:a)+")",m.transform)}})},e}(),Sa=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ca=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Sa(i,e),i.prototype.initProperties=function(e,t){this.accumulation=e,this.size=Math.min(e.initialClipRect.width,e.initialClipRect.height),this.initAngles(t);var i=parseInt(t.radius,10);if(-1===t.radius.indexOf("%")&&"number"!=typeof i||isNaN(i)){var o=[];this.isRadiusMapped=!0;for(var r=0;r<Object.keys(t.points).length;r++)-1!==t.points[r].sliceRadius.indexOf("%")?o[r]=Li(t.points[r].sliceRadius,this.size/2):o[r]=parseInt(t.points[r].sliceRadius,10);var n=Math.min.apply(null,o),a=Math.max.apply(null,o);this.pieBaseRadius=this.seriesRadius=a,this.innerRadius=Li(t.innerRadius,this.seriesRadius),this.innerRadius=this.innerRadius>n?this.innerRadius/2:this.innerRadius}else this.isRadiusMapped=!1,this.pieBaseRadius=Li(t.radius,t.border.width>20?.4*this.size:this.size/2),this.innerRadius=Li(t.innerRadius,this.pieBaseRadius),this.pieBaseLabelRadius="Inside"===t.dataLabel.position?(this.pieBaseRadius-this.innerRadius)/2+this.innerRadius:this.pieBaseRadius+Li(t.dataLabel.connectorStyle.length||"4%",this.size/2);this.radius=this.pieBaseRadius,this.labelRadius=this.pieBaseLabelRadius,e.explodeDistance=t.explode?Li(t.explodeOffset,this.pieBaseRadius):0,this.findCenter(e,t),this.center=this.pieBaseCenter,e.redraw||this.defaultLabelBound(t,t.dataLabel.visible,t.dataLabel.position),this.totalAngle-=.001},i.prototype.getLabelRadius=function(e,t){return"Inside"===e.dataLabel.position?(Li(t.sliceRadius,this.pieBaseRadius)-this.innerRadius)/2+this.innerRadius:Li(t.sliceRadius,this.size/2)+Li(e.dataLabel.connectorStyle.length||"4%",this.size/2)},i.prototype.findCenter=function(e,t){this.accumulation=e,this.pieBaseCenter={x:Li(e.center.x,e.initialClipRect.width)+e.initialClipRect.x,y:Li(e.center.y,e.initialClipRect.height)+e.initialClipRect.y};var i=this.getSeriesBound(t),o=new ji(i.x+i.width/2,i.y+i.height/2);this.pieBaseCenter.x+=this.pieBaseCenter.x-o.x,this.pieBaseCenter.y+=this.pieBaseCenter.y-o.y,this.accumulation.origin=this.pieBaseCenter},i.prototype.initAngles=function(e){var i=(0,t.isNullOrUndefined)(e.endAngle)?e.startAngle:e.endAngle;this.totalAngle=(i-e.startAngle)%360,this.startAngle=e.startAngle-90,this.totalAngle=this.totalAngle<=0?360+this.totalAngle:this.totalAngle,this.startAngle=(this.startAngle<0?this.startAngle+360:this.startAngle)%360},i.prototype.defaultLabelBound=function(e,t,i){var o=this.getSeriesBound(e);e.accumulationBound=o,e.labelBound=new R.Rect(o.x,o.y,o.width+o.x,o.height+o.y),t&&"Outside"===i&&(e.labelBound=new R.Rect(1/0,1/0,-1/0,-1/0))},i.prototype.getSeriesBound=function(e){var t=new R.Rect(1/0,1/0,-1/0,-1/0);this.initAngles(e);var i=this.startAngle,o=this.totalAngle,r=(this.startAngle+o)%360;r=0===r?360:r,e.findMaxBounds(t,this.getRectFromAngle(i)),e.findMaxBounds(t,this.getRectFromAngle(r)),e.findMaxBounds(t,new R.Rect(this.pieBaseCenter.x,this.pieBaseCenter.y,0,0));var n=(90*Math.floor(i/90)+90)%360,a=90*Math.floor(r/90)%360;a=0===a?360:a,(o>=90||a===n)&&(e.findMaxBounds(t,this.getRectFromAngle(n)),e.findMaxBounds(t,this.getRectFromAngle(a))),(0===i||i+o>=360)&&e.findMaxBounds(t,this.getRectFromAngle(0));for(var l=n===a?0:Math.floor(o/90),s=1;s<l;s++)((n+=90)<a||r<i||360===o)&&e.findMaxBounds(t,this.getRectFromAngle(n));return t.width-=t.x,t.height-=t.y,t},i.prototype.getRectFromAngle=function(e){var t=ct(e,this.pieBaseRadius,this.pieBaseCenter);return new R.Rect(t.x,t.y,0,0)},i.prototype.getPathArc=function(e,t,i,o,r,n,a,l){var s=i-t,h=(s=s<0?s+360:s)<180?0:1;return r||0!==r?this.getDoughnutPath(e,ct(t,o,e),ct(i,o,e),o,ct(t,r,e),ct(i,r,e),r,h,n,a,l):this.getPiePath(e,ct(t,o,e),ct(i,o,e),o,h,n,l)},i.prototype.getPiePath=function(e,t,i,o,r,n,a){n=1===this.sliceCheck(a)?0:n;var l=Math.atan2(t.y-e.y,t.x-e.x),s=Math.atan2(i.y-e.y,i.x-e.x);n=this.adjustCornerRadius(l,s,o,n);var h=t.x-n*Math.cos(l),c=t.y-n*Math.sin(l),d=i.x-n*Math.cos(Math.PI/2+s),p=i.y-n*Math.sin(Math.PI/2+s),u=i.x-n*Math.cos(s),g=i.y-n*Math.sin(s),m=t.x+n*Math.cos(Math.PI/2+l),y=t.y+n*Math.sin(Math.PI/2+l);return"M "+e.x+" "+e.y+" L "+h+" "+c+" A "+n+" "+n+" 0 0 1 "+m+" "+y+" A "+o+" "+o+" 0 "+r+" 1 "+d+" "+p+" A "+n+" "+n+" 0 0 1 "+u+" "+g+" Z"},i.prototype.getDoughnutPath=function(e,t,i,o,r,n,a,l,s,h,c){s=1===this.sliceCheck(c)?0:s;var d=Math.atan2(t.y-r.y,t.x-r.x),p=Math.atan2(i.y-n.y,i.x-n.x);s=this.adjustCornerRadius(d,p,a,s),s=h&&0===this.innerRadius?-1*s:s;var u=t.x-s*Math.cos(d),g=t.y-s*Math.sin(d),m=i.x-s*Math.cos(Math.PI/2+p),y=i.y-s*Math.sin(Math.PI/2+p),f=n.x+s*Math.cos(p),v=n.y+s*Math.sin(p),b=r.x+s*Math.cos(Math.PI/2+d),x=r.y+s*Math.sin(Math.PI/2+d),S=t.x+s*Math.cos(Math.PI/2+d),C=t.y+s*Math.sin(Math.PI/2+d),F=i.x-s*Math.cos(p),w=i.y-s*Math.sin(p),L=n.x-s*Math.cos(Math.PI/2+p),P=n.y-s*Math.sin(Math.PI/2+p),A=r.x+s*Math.cos(d),M=r.y+s*Math.sin(d);return h?"M "+S+" "+C+" A "+o+" "+o+" 0 "+l+" 1 "+m+" "+y+" L "+L+" "+P+" A "+a+" "+a+" 0 "+l+" 0 "+b+" "+x+" Z":"M "+u+" "+g+" A "+s+" "+s+" 0 0 1 "+S+" "+C+" A "+o+" "+o+" 0 "+l+" 1 "+m+" "+y+" A "+s+" "+s+" 0 0 1 "+F+" "+w+" L "+f+" "+v+" A "+s+" "+s+" 0 0 1 "+L+" "+P+" A "+a+" "+a+" 0 "+l+" 0 "+b+" "+x+" A "+s+" "+s+" 0 0 1 "+A+" "+M+" Z"},i.prototype.adjustCornerRadius=function(e,t,i,o){var r=Math.abs(t-e);r>Math.PI&&(r=2*Math.PI-r);var n=i*(r/(2*Math.PI));return Math.min(o,n)},i.prototype.sliceCheck=function(e){for(var t=0,i=0;i<e.length;i++){e[i].visible&&t++}return t},i.prototype.doAnimation=function(e,i,o,r,n){var a,l=this,s=i.startAngle-90,h=this.accumulation.duration?this.accumulation.duration:i.animation.duration;this.pieBaseCenter.x+=1;var c=.75*Math.max(this.accumulation.availableSize.height,this.accumulation.availableSize.width);c+=.414*c;var d=Et("Linear");new t.Animation({}).animate(e,{duration:0===h&&"Enable"===t.animationMode?1e3:h,delay:i.animation.delay,progress:function(t){a=d(t.timeStamp,s,l.totalAngle,t.duration),e.setAttribute("d",l.getPathArc(l.pieBaseCenter,s,a,c,0,r,!1,n))},end:function(){l.pieBaseCenter.x-=1,e.setAttribute("d",l.getPathArc(l.pieBaseCenter,0,359.99999,c,0,r,!1,n)),l.accumulation.trigger(z,{series:i,accumulation:l.accumulation,chart:l.accumulation});var t=qt(l.accumulation.element.id+"_datalabel_Series_"+i.index);t&&It(t,i.animation.delay,i.animation.duration,i,null,0,!1),o.style.cssText="";var a=qt(l.accumulation.element.id+"_Annotation_Collections");a&&(a.style.visibility="visible")}})},i}(xa),Fa=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),wa=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Fa(i,e),i.prototype.renderPoint=function(e,t,i,o,r,n,a,l,s){var h=t.sumOfPoints,c=this.accumulation.visibleSeries[0].points,d=t.borderRadius;e.startAngle=this.startAngle;var p=e.visible?e.y:0,u=h?Math.abs(p)/h*this.totalAngle:null,g=Math.PI/180*(90-(360-this.startAngle)-90);if(this.radius=this.isRadiusMapped?Li(e.sliceRadius,this.seriesRadius):this.radius,o.d=this.getPathOption(e,u,this.startAngle%360,d,c),e.midAngle=(this.startAngle-u/2)%360,e.endAngle=this.startAngle%360,e.symbolLocation=ct(e.midAngle,(this.radius+this.innerRadius)/2,this.center),n){m=i.renderer.drawPath(o);!e.isExplode&&s&&m.setAttribute("transform","translate(0, 0)"),m.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),m.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),m.style.outline="none",m.setAttribute("stroke-linejoin","round"),m.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+": "+e.y+"%. "+t.name),void 0===e.degree&&(e.degree=u,e.start=g),r.appendChild(m),this.refresh(e,u,g,i,o,d,c,a,l,s)}else{var m;(m=i.renderer.drawPath(o)).setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),m.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),m.style.outline="none",m.setAttribute("stroke-linejoin","round"),m.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+": "+e.y+"%. "+t.name),r.appendChild(m),e.degree=u,e.start=g}},i.prototype.findSeries=function(e,t){var i=0===this.innerRadius?this.radius+3:this.innerRadius-3,o=0===this.innerRadius?i+2:i-2;this.toggleInnerPoint(e,i,o,t)},i.prototype.toggleInnerPoint=function(e,i,o,r){var n,a=vt(e.target.id,!0),l=e.target.id.substring(0,e.target.id.indexOf("Series")-1),s=document.getElementById(this.accumulation.element.id+"PointHover_Border"),h=this.accumulation.visibleSeries[0].points,c=a.series,d=a.point,p=qt(l+"_Series_"+c+"_Point_"+d);if(!isNaN(a.series)&&p){if(!((0,t.isNullOrUndefined)(c)||isNaN(c)||(0,t.isNullOrUndefined)(d)||isNaN(d))){var u=this.accumulation.visibleSeries[0].points[d],g=p.getAttribute("class")===l+"_ej2_deselected"?this.accumulation.tooltip.enable?.5:.3:this.accumulation.tooltip.enable?.5:1,m=this.getPathArc(this.accumulation.pieSeriesModule.center,u.startAngle%360,(u.startAngle+u.degree)%360,i,o,r,!0,h);s&&l===this.accumulation.element.id&&(s.getAttribute("d")!==m||u.isExplode)&&(s.parentNode.removeChild(s),s=null);var y=qt(l+"_Series_"+c);if(!s&&(!u.isExplode||u.isExplode&&"click"!==e.type)){var f=new R.PathOption(l+"PointHover_Border",u.color,1,u.color,g,"",m);if((n=this.accumulation.renderer.drawPath(f)).removeAttribute("transform"),"None"!==this.accumulation.selectionMode&&e.target.hasAttribute("class")&&this.accumulation.accumulationSelectionModule.addSvgClass(n,e.target.getAttribute("class")),y.appendChild(n),u.isExplode&&n){var v=p.getAttribute("transform");v&&n.setAttribute("transform",v)}}}}else s&&(this.removeBorder(s,1e3),s=null)},i.prototype.removeBorder=function(e,t){e&&setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},t)},i.prototype.refresh=function(e,i,o,r,n,a,l,s,h,c){var d=this,p=qt(n.id),u=r.duration?r.duration:300;new t.Animation({}).animate((0,t.createElement)("div"),{duration:u,delay:0,progress:function(t){var n=_t(t.timeStamp,e.degree,i-e.degree,t.duration),u=_t(t.timeStamp,e.start,o-e.start,t.duration);if(u=(u/(Math.PI/180)+360)%360,s&&h){var g=_t(t.timeStamp,s,d.radius-s,t.duration),m=_t(t.timeStamp,h.x,d.center.x-h.x,t.duration),y=_t(t.timeStamp,h.y,d.center.y-h.y,t.duration);p.setAttribute("d",d.getPathOption(e,n,u,a,l,g,m,y))}else p.setAttribute("d",d.getPathOption(e,n,u,a,l));e.isExplode&&r.accBaseModule.explodePoints(e.index,r,!0,c),p.style.visibility="visible"},end:function(){p.style.visibility=e.visible?"visible":"hidden",p.setAttribute("d",n.d),e.degree=i,e.start=o}})},i.prototype.getPathOption=function(e,t,i,o,r,n,a,l){if(!t)return"";var s=this.getPathArc(a?{x:a,y:l}:this.center,i%360,(i+t)%360,this.isRadiusMapped?Li(e.sliceRadius,this.size/2):n||this.radius,this.innerRadius,o,!1,r);return this.startAngle+=t,s},i.prototype.animateSeries=function(e,i,o,r,n,a){var l=e.element.id+"SeriesGroup"+o.index;if((o.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries){var s=e.renderer.createClipPath({id:l+"_clipPath"}),h=new R.PathOption(l+"_slice","transparent",1,"transparent",1,"",""),c=e.renderer.drawPath(h);s.appendChild(c),e.svgObject.appendChild(s),r.style.cssText="clip-path:url(#"+s.id+"); -webkit-clip-path:url(#"+s.id+");",this.doAnimation(c,o,r,n,a)}},i.prototype.getModuleName=function(){return"PieSeries"},i.prototype.destroy=function(){},i}(Ca),La=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Pa=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Aa=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.animateselected=!1,o.explodeDistance=0,o.currentLegendIndex=0,o.currentPointIndex=0,o.previousTargetId="",o.isLegendClicked=!1,o.chartid=57724,o}return La(i,e),i.prototype.animate=function(e){this.duration=0===e&&"Enable"===t.animationMode?700:e,this.animateselected=!0,this.animateSeries=!1;var i=0,o=[],r=[],n=[],a=this.visibleSeries[0],l=[];if(l=a.dataSource,a.sumOfPoints=0,a.points.length<Object.keys(a.dataSource).length)this.refresh();else if(a.points.length>Object.keys(a.dataSource).length){var s=this.visibleSeries[0];s.points=s.points.filter(function(e){return e.visible=!1,r.push(e.index),o.push(e.color),l.some(function(t){var o=t;return e.x===o.x&&(e.visible=!0,n.push(e.index),e.index=i,i++),e.x===o.x})});for(var h=r.filter(function(e){return n.indexOf(e)<0}),c=r.length-h.length,d=r.length-1;d>=c;d--)Je("container_Series_0_Point_"+r[d]);for(d=0;d<s.points.length;d++)s.points[d].y=s.dataSource[d].y,s.points[d].color=o[d],s.sumOfPoints+=s.dataSource[d].y;this.redraw=this.enableAnimation,this.animateSeries=!1,this.calculateBounds(),this.renderElements()}else{for(d=0;d<a.points.length;d++)a.points[d].y=a.dataSource[d][a.yName],a.points[d].color=null!=a.dataSource[d][a.pointColorMapping]?a.dataSource[d][a.pointColorMapping]:a.points[d].color,a.sumOfPoints+=a.dataSource[d][a.yName];this.redraw=this.enableAnimation,this.animateSeries=!1,this.removeSvg(),this.refreshPoints(a.points),this.renderElements()}},Object.defineProperty(i.prototype,"type",{get:function(){return this.series&&this.series.length?this.series[0].type:"Pie"},enumerable:!0,configurable:!0}),i.prototype.preRender=function(){if(this.allowServerDataBinding=!1,this.unWireEvents(),this.setCulture(),this.animateSeries=!0,""===this.element.id){for(var e=document.getElementsByClassName("e-accumulationchart").length,t="acc_chart_"+this.chartid+"_"+e;document.getElementById(t);)e++,t="acc_chart_"+this.chartid+"_"+e;this.element.id="acc_chart_"+this.chartid+"_"+e}this.wireEvents(),this.element.setAttribute("dir",this.enableRtl?"rtl":"ltr"),this.element.style.outline="none"},i.prototype.setTheme=function(){this.themeStyle=ro(this.theme,!1,this)},i.prototype.render=function(){var e=this;-1===this.element.className.indexOf("e-accumulationchart")&&this.element.classList.add("e-accumulationchart"),this.element.setAttribute("role",this.accessibility.accessibilityRole?this.accessibility.accessibilityRole:"region"),this.element.setAttribute("tabindex",this.accessibility.focusable?String(this.accessibility.tabIndex):"-1"),this.element.setAttribute("aria-label",this.accessibility.accessibilityDescription?this.accessibility.accessibilityDescription:this.title+". Syncfusion interactive chart."),this.element.setAttribute("class",this.element.getAttribute("class")+" e-accumulationchart-focused");var t={chart:this,accumulation:this,theme:this.theme,name:O,cancel:!1};this.trigger(O,t,function(){e.setTheme(),e.accBaseModule=new xa(e),e.pieSeriesModule=new wa(e),e.calculateVisibleSeries(),e.processData(),e.renderComplete(),e.allowServerDataBinding=!0})},i.prototype.unWireEvents=function(){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchMoveEvent,r=t.Browser.touchEndEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,o,this.accumulationMouseMove),t.EventHandler.remove(this.element,r,this.accumulationMouseEnd),t.EventHandler.remove(this.element,i,this.accumulationMouseStart),t.EventHandler.remove(this.element,"click",this.accumulationOnMouseClick),t.EventHandler.remove(this.element,"dblclick",this.accumulationOnDoubleClick),t.EventHandler.remove(this.element,"contextmenu",this.accumulationRightClick),t.EventHandler.remove(this.element,n,this.accumulationMouseLeave),t.EventHandler.remove(this.element,"keydown",this.accumulationChartKeyDown),t.EventHandler.remove(document.body,"keydown",this.documentKeyHandler),t.EventHandler.remove(this.element,"keyup",this.accumulationChartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.accumulationResizeBound)},i.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchEndEvent,r=t.Browser.touchMoveEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.add(this.element,r,this.accumulationMouseMove,this),t.EventHandler.add(this.element,o,this.accumulationMouseEnd,this),t.EventHandler.add(this.element,i,this.accumulationMouseStart,this),t.EventHandler.add(this.element,"click",this.accumulationOnMouseClick,this),t.EventHandler.add(this.element,"dblclick",this.accumulationOnDoubleClick,this),t.EventHandler.add(this.element,"contextmenu",this.accumulationRightClick,this),t.EventHandler.add(this.element,n,this.accumulationMouseLeave,this),t.EventHandler.add(this.element,"keydown",this.accumulationChartKeyDown,this),t.EventHandler.add(document.body,"keydown",this.documentKeyHandler,this),t.EventHandler.add(this.element,"keyup",this.accumulationChartKeyUp,this),this.accumulationResizeBound=this.accumulationResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.accumulationResizeBound),new t.Touch(this.element),this.setStyle(this.element)}},i.prototype.setMouseXY=function(e){var t,i,o=qt(this.element.id+"_svg");if(o&&this.element){var r=o.getBoundingClientRect(),n=this.element.getBoundingClientRect();if(e.type.indexOf("touch")>-1){this.isTouch=!0;var a=e;i=a.changedTouches[0].clientY,t=a.changedTouches[0].clientX}else this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY;this.mouseY=i-n.top-Math.max(r.top-n.top,0),this.mouseX=t-n.left-Math.max(r.left-n.left,0)}},i.prototype.accumulationMouseEnd=function(e){return this.setMouseXY(e),this.trigger(ie,{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.isTouch&&(this.titleTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.accumulationDataLabelModule&&this.visibleSeries[0].dataLabel.visible&&this.accumulationDataLabelModule.move(e,this.mouseX,this.mouseY,this.isTouch),this.accumulationLegendModule&&this.legendSettings.visible&&this.accumulationLegendModule.move(e)),this.centerLabel.hoverTextFormat&&this.updateCenterLabel(e),this.notify(t.Browser.touchEndEvent,e),!1},i.prototype.accumulationMouseStart=function(e){return this.setMouseXY(e),this.trigger(te,{target:e.target.id,x:this.mouseX,y:this.mouseY}),!1},i.prototype.accumulationResize=function(){var e=this;this.animateSeries=!1;var t={accumulation:this,previousSize:new R.Size(this.availableSize.width,this.availableSize.height),name:ae,currentSize:new R.Size(0,0),chart:this},i={name:"beforeResize",cancelResizedEvent:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger(le,i),i.cancelResizedEvent||(this.resizeTo=+setTimeout(function(){e.isDestroyed?clearTimeout(e.resizeTo):(ki(e),t.currentSize=e.availableSize,e.trigger(ae,t),e.refreshSeries(),e.refreshChart())},500)),!1},i.prototype.print=function(e){var t=document.getElementById(this.element.id+"_Series_0").style.clipPath;document.getElementById(this.element.id+"_Series_0").style.clipPath="",new zo(this).print(e),document.getElementById(this.element.id+"_Series_0").style.clipPath=t},i.prototype.export=function(e,t){this.exportModule&&(this.exportModule.export(e,t),this.afterExport&&this.exportModule.getDataUrl(this))},i.prototype.setStyle=function(e){e.style.touchAction="element",e.style.msTouchAction="element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.overflow="hidden",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit";switch(this.theme){case"HighContrastLight":case"HighContrast":0;break;case"MaterialDark":case"FabricDark":case"Bootstrap":case"Bootstrap4":0;break;case"Tailwind":case"TailwindDark":0;break;case"Bootstrap5":case"Bootstrap5Dark":0;break;case"Fluent":case"FluentDark":default:0;break;case"Fluent2":case"Fluent2Dark":case"Fluent2HighContrast":0}},i.prototype.setAnnotationValue=function(e,t){var i,o=this.annotations[e],r=qt(this.element.id+"_Annotation_Collections");t&&(o.content=t,r?(i=this.createElement("div"),Je(this.element.id+"_Annotation_"+e),this.annotationModule.processAnnotation(o,e,i),r.appendChild(i.children[0])):this.annotationModule.renderAnnotations(qt(this.element.id+"_Secondary_Element")))},i.prototype.accumulationMouseMove=function(e){return!!qt(this.element.id+"_svg")&&(this.setMouseXY(e),this.trigger(Z,{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.pointMove&&this.triggerPointEvent(J,e.target,e),this.accumulationLegendModule&&this.legendSettings.visible&&this.accumulationLegendModule.move(e),this.accumulationDataLabelModule&&this.visibleSeries[0]&&this.visibleSeries[0].dataLabel.visible&&this.accumulationDataLabelModule.move(e,this.mouseX,this.mouseY),this.centerLabel.hoverTextFormat&&this.updateCenterLabel(e),this.isTouch||this.titleTooltip(e,this.mouseX,this.mouseY),this.enableBorderOnMouseMove&&"Pie"===this.type&&this.pieSeriesModule&&Pt(this.mouseX,this.mouseY,this.initialClipRect)&&this.pieSeriesModule.findSeries(e,this.series[0].borderRadius),this.notify(t.Browser.touchMoveEvent,e),!1)},i.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"_title"||r===this.element.id+"_subTitle"||r===this.element.id+"_chart_legend_title";e.target.textContent.indexOf("...")>-1&&n?tt(r===this.element.id+"_title"?this.title:r===this.element.id+"_subTitle"?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"_EJ2_Title_Tooltip",qt(this.element.id+"_Secondary_Element"),o):Je(this.element.id+"_EJ2_Title_Tooltip")},i.prototype.accumulationChartKeyDown=function(e){var t="";return this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("Series")>-1||"Escape"===e.code)&&(t="ESC"),e.code.indexOf("Arrow")>-1&&e.preventDefault(),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},i.prototype.accumulationChartKeyUp=function(e){var t="",i=e.target.id,o=qt(this.element.id+"_chart_legend_translate_g"),r=qt(this.element.id+"_chart_legend_pageup");if(o){var n=o.firstElementChild,a=n.getAttribute("class");a&&-1===a.indexOf("e-accumulationchart-focused")?a+=" e-accumulationchart-focused":a||(a="e-accumulationchart-focused"),n.setAttribute("class",a)}if(r&&r.setAttribute("class","e-accumulationchart-focused"),this.removeNavigationStyle(),"Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("_Point_")>-1&&-1===i.indexOf("_Point_")){var l=document.getElementById(this.previousTargetId).parentElement;this.setTabIndex(l.children[this.currentPointIndex],l.firstElementChild),this.currentPointIndex=0}else this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===i.indexOf("_chart_legend_page")&&-1===i.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,r):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===i.indexOf("chart_legend_g_")&&o&&this.setTabIndex(o.children[this.currentLegendIndex],o.firstElementChild);this.previousTargetId=i,i.indexOf("_chart_legend_g_")>-1&&"None"!==this.highlightMode?(i=e.target.lastElementChild.id,t="Tab"):i.indexOf("_Point_")>-1&&("None"!==this.highlightMode||this.tooltip.enable)&&(t="Tab")}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),i.indexOf("_chart_legend_page")>-1)e.target.removeAttribute("tabindex"),this.previousTargetId=i=this.element.id+"_chart_legend_page"+("ArrowRight"===e.code?"up":"down"),this.focusTarget(qt(i));else if(i.indexOf("_chart_legend_")>-1&&o){e.target.removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,o.children.length);var s=o.children[this.currentLegendIndex];this.focusTarget(s),this.removeNavigationStyle(),this.setNavigationStyle(s.id),this.previousTargetId=i=s.lastElementChild.id,t="None"!==this.highlightMode?"ArrowMove":""}else if(i.indexOf("_Point_")>-1){e.target.setAttribute("tabindex","-1"),this.currentPointIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1;for(var h=0,c=0;c<e.target.parentElement.children.length;c++)h=e.target.parentElement.children[c].id.indexOf("_Point_")>-1?h+1:h;this.currentPointIndex=this.getActualIndex(this.currentPointIndex,h),i=this.element.id+"_Series_0_Point_"+this.currentPointIndex,this.focusTarget(qt(i)),this.removeNavigationStyle(),this.setNavigationStyle(i),t=this.tooltip.enable?"ArrowMove":""}}else"Enter"!==e.code&&"Space"!==e.code||!(i.indexOf("_chart_legend_")>-1||i.indexOf("_Point_")>-1)||(i=i.indexOf("_chart_legend_g")>-1?e.target.lastElementChild.id:i,t="Enter");return""!==t&&this.chartKeyboardNavigations(e,i,t),"Tab"===e.code&&this.setNavigationStyle(i),!1},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusTarget=function(e){var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-accumulationchart-focused")?t+=" e-accumulationchart-focused":t||(t="e-accumulationchart-focused"),e.setAttribute("tabindex","0"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.documentKeyHandler=function(e){e.altKey&&74===e.keyCode&&!(0,t.isNullOrUndefined)(this.element)&&this.element.focus()},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&(t.style.setProperty("outline",this.focusBorderWidth+"px solid "+(this.focusBorderColor||this.themeStyle.tabColor)),t.style.setProperty("margin",this.focusBorderMargin+"px"))},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("path[id*=_Series_0_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_title],g[id*=_chart_legend]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},i.prototype.chartKeyboardNavigations=function(e,i,o){switch(this.isLegendClicked=!1,o){case"Tab":case"ArrowMove":if(this.accumulationHighlightModule,i.indexOf("_Point_")>-1){var r=+i.split("_Series_")[1].split("_Point_")[0],n=+i.split("_Series_")[1].replace("_Symbol","").split("_Point_")[1],a=this.visibleSeries[r].points[n].symbolLocation;if(this.mouseX=a.x+this.initialClipRect.x,this.mouseY=a.y+this.initialClipRect.y,this.accumulationHighlightModule){var l=qt(i);if(!(0,t.isNullOrUndefined)(l)){if(l.id.indexOf("text")>1&&(l=qt(l.id.replace("text","shape"))),l.hasAttribute("class")&&l.getAttribute("class").indexOf("highlight")>-1)return;return void this.accumulationHighlightModule.calculateSelectedElements(this,l,"mousemove")}}if(this.accumulationTooltipModule){var s=this.visibleSeries[r],h=void 0;s.enableTooltip&&(h=new Zi(s.points[n],s)),this.accumulationTooltipModule.renderSeriesTooltip(this,h)}}if(this.accumulationHighlightModule&&"None"!==this.highlightMode){i=i.indexOf("_chart_legend_g_")>-1?document.getElementById(i).firstChild.id:i;for(var c=this.element.id+"_chart_legend",d=[c+"_text_",c+"_shape_marker_",c+"_shape_"],p=0;p<d.length;p++){var u=d[p];if(i.indexOf(u)>-1){document.getElementById(i).setAttribute("class",""),this.accumulationHighlightModule.legendSelection(this,0,parseInt(i.split(u)[1],10),qt(i),"mousemove");break}}}break;case"Enter":case"Space":i.indexOf("_chart_legend_")>-1&&this.accumulationLegendModule?(this.isLegendClicked=!0,this.accumulationLegendModule.click(e),this.focusChild(document.getElementById(i).parentElement),this.setNavigationStyle(document.getElementById(i).parentElement.id)):(this.accumulationSelectionModule&&this.accumulationSelectionModule.calculateSelectedElements(this,document.getElementById(i),"click"),this.setNavigationStyle(i));break;case"CtrlP":this.print();break;case"ESC":this.accumulationTooltipModule&&this.accumulationTooltipModule.removeTooltip(1)}},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-accumulationchart-focused")?t="e-accumulationchart-focused "+t:t||(t="e-accumulationchart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.accumulationOnDoubleClick=function(e){return this.trigger(Q,{target:e.target.id,x:this.mouseX,y:this.mouseY}),!1},i.prototype.accumulationOnMouseClick=function(e){return this.setMouseXY(e),this.accumulationLegendModule&&this.legendSettings.visible&&this.accumulationLegendModule.click(e),"None"!==this.selectionMode&&this.accumulationSelectionModule&&this.accumulationSelectionModule.calculateSelectedElements(this,e.target,e.type),this.visibleSeries[0].explode&&this.accBaseModule.processExplode(e),this.enableBorderOnMouseMove&&this.pieSeriesModule&&"Pie"===this.type&&this.pieSeriesModule.findSeries(e,this.series[0].borderRadius),this.trigger(q,{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.pointClick&&this.triggerPointEvent($,e.target,e),this.removeNavigationStyle(),!1},i.prototype.triggerPointEvent=function(e,t,i){var o=i,r=vt(t.id,!0);r.series>=0&&r.point>=0&&this.trigger(e,{series:this.series[r.series],point:this.series[r.series].points[r.point],seriesIndex:r.series,pointIndex:r.point,x:this.mouseX,y:this.mouseY,pageX:o.pageX,pageY:o.pageY})},i.prototype.accumulationRightClick=function(e){return 2!==e.buttons||"touch"!==e.pointerType||(e.preventDefault(),e.stopPropagation(),!1)},i.prototype.accumulationMouseLeave=function(e){this.setMouseXY(e),this.trigger(ee,{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.notify(t.Browser.isPointer?"pointerleave":"mouseleave",e);var i=document.getElementById(this.element.id+"PointHover_Border");return i&&(this.pieSeriesModule.removeBorder(i,1e3),i=null),!1},i.prototype.setCulture=function(){this.intl=new t.Internationalization},i.prototype.createPieSvg=function(){this.removeSvg(),Ri(this)},i.prototype.removeSvg=function(){if(this.redraw)return null;if(Je(this.element.id+"_Secondary_Element"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&(0,t.remove)(this.svgObject)}Je("EJ2_legend_tooltip"),Je("EJ2_datalabel_tooltip"),Je(this.element.id+"PointHover_Border")},i.prototype.createSecondaryElement=function(){var e=Pi(this.redraw,this.element.id+"_Secondary_Element")||this.createElement("div",{id:this.element.id+"_Secondary_Element",styles:"position: relative"});ni(!1,this.element,e,this.redraw)},i.prototype.calculateVisibleSeries=function(){this.visibleSeries=[];for(var e=0,t=this.series.length;e<t;e++)if(this.series[e].index=e,this.series[e].type===this.type&&0===this.visibleSeries.length){this.visibleSeries.push(this.series[e]);break}},i.prototype.processData=function(e){void 0===e&&(e=!0),this.seriesCounts=0;for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];o.dataModule=new Fo(o.dataSource||this.dataSource,o.query),o.refreshDataManager(this,e)}},i.prototype.refreshChart=function(){this.doGrouppingProcess(),this.createPieSvg(),this.calculateBounds(),this.renderElements(),Je("chartmeasuretext")},i.prototype.doGrouppingProcess=function(){var e=this.visibleSeries[0];(0,t.isNullOrUndefined)(e.resultData)||(0,t.isNullOrUndefined)(e.lastGroupTo)||e.lastGroupTo===e.groupTo||e.getPoints(e.resultData,this)},i.prototype.calculateBounds=function(){this.initialClipRect=new R.Rect(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height),this.titleCollection=[],this.subTitleCollection=[];var e=0,t=0,i=0,o=0;if(this.title&&(this.titleCollection=Ti(this.title,this.titleStyle,this.initialClipRect.width,this.enableRtl,this.themeStyle.chartTitleFont)),e=this.title?(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length:e,this.subTitle){for(var r=0,n=this.titleCollection;r<n.length;r++){var a=n[r];i=(o=(0,R.measureText)(a,this.titleStyle,this.themeStyle.chartSubTitleFont).width)>i?o:i}this.subTitleCollection=Ti(this.subTitle,this.subTitleStyle,this.initialClipRect.width,this.enableRtl,this.themeStyle.chartSubTitleFont),t=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length}var l=this.margin.left+this.border.width,s=this.availableSize.width-l-this.margin.right-this.border.width,h=this.margin.top+this.border.width,c=this.availableSize.height-h-this.border.width-this.margin.bottom,d=t+e;switch(this.titleStyle.position){case"Top":l=0,h=t+e,s=this.margin.right+this.margin.left,c=this.margin.bottom+this.margin.top;break;case"Bottom":c-=d+2*this.margin.bottom;break;case"Left":l+=d,s-=d;break;case"Right":s-=d}"Top"!==this.titleStyle.position?this.initialClipRect=new R.Rect(l,h,s,c):this.initialClipRect=ht(this.initialClipRect,new R.Rect(l,h,s,c)),this.calculateLegendBounds()},i.prototype.calculateLegendBounds=function(){if(!this.accumulationLegendModule||!this.legendSettings.visible)return null;this.accumulationLegendModule.getLegendOptions(this,this.visibleSeries),this.accumulationLegendModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null)},i.prototype.renderElements=function(){this.renderBorder(),this.createSecondaryElement(),this.renderSeries(),this.renderTitle(),this.renderCenterLabel(!0),this.renderLegend(),ni(!1,this.element,this.svgObject,this.redraw),this.processSelection(),this.processExplode(),this.renderAnnotation(),this.setSecondaryElementPosition(),this.series.every(function(e){return 0===(e.dataSource||[]).length})&&!(0,t.isNullOrUndefined)(this.noDataTemplate)&&this.renderNoDataTemplate(!0),this.trigger("loaded",{accumulation:this,chart:this}),this.animateSeries=!1},i.prototype.setSecondaryElementPosition=function(){var e=qt(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=qt(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},i.prototype.renderNoDataTemplate=function(e){var i=this.element.querySelector("#"+this.element.id+"_NoDataTemplate_wrapper");if(i&&i.remove(),e){var o="function"==typeof this.noDataTemplate?this.noDataTemplate():this.noDataTemplate,r=this.enableHtmlSanitizer&&"string"==typeof o?this.sanitize(o):o,n=(0,t.createElement)("div",{id:this.element.id+"_NoDataTemplate_wrapper"}),a=0,l=this.element.querySelector("#"+this.element.id+"_border");l&&(a=parseFloat(l.getAttribute("stroke-width")));var s=this.availableSize.width-2*a,h=this.availableSize.height-2*a,c=a,d=a,p=0;if(this.title)switch(p=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height+(this.subTitle?(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height:0)+(this.subTitle?5:0),this.titleStyle.position){case"Top":c+=p+10,h-=p+10;break;case"Left":d+=p+10,s-=p+10;break;case"Bottom":h-=p+16;break;case"Right":s-=p+10}n.style.cssText="position: absolute; top: "+c+"px; left: "+d+"px; width: "+s+"px;\n                height: "+h+"px; z-index: 1;\n            ",qt(this.element.id+"_Secondary_Element").appendChild(n),Jt(n,null,r,this,null,null,this.element.id+"_NoData")}},i.prototype.renderAnnotation=function(){this.annotationModule&&this.annotationModule.renderAnnotations(qt(this.element.id+"_Secondary_Element"))},i.prototype.processExplode=function(){return this.redraw?null:this.visibleSeries[0].explode?void this.accBaseModule.invokeExplode():null},i.prototype.renderSeries=function(){this.redraw||this.svgObject.appendChild(this.renderer.createGroup({id:this.element.id+"_SeriesCollection"}));for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.visible&&this[kt(i.type)+"SeriesModule"]&&(this[kt(i.type)+"SeriesModule"].initProperties(this,i),i.renderSeries(this,this.redraw))}},i.prototype.renderBorder=function(){var e=this.border.width,t=new Ni(this.element.id+"_border",this.background||this.themeStyle.background,this.border,1,new R.Rect(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e),0,0,"",this.border.dashArray),i=this.renderer.drawRectangle(t);i.setAttribute("aria-hidden","true"),ni(!1,this.svgObject,i,this.redraw);var o=this.backgroundImage;if(o){var r=new Vi(this.availableSize.height-e,this.availableSize.width-e,o,0,0,this.element.id+"_background","visible","none");ni(!1,this.svgObject,this.renderer.drawImage(r),this.redraw)}},i.prototype.renderLegend=function(){if(!this.accumulationLegendModule||!this.legendSettings.visible)return null;this.accumulationLegendModule.legendCollections.length&&("Pie"===this.visibleSeries[0].type&&this.accumulationLegendModule.getSmartLegendLocation(this.visibleSeries[0].labelBound,this.accumulationLegendModule.legendBounds,this.margin),this.accumulationLegendModule.renderLegend(this,this.legendSettings,this.accumulationLegendModule.legendBounds,this.redraw))},i.prototype.processSelection=function(){var e=[];this.accumulationSelectionModule&&"None"!==this.selectionMode&&(e=(0,t.extend)([],this.accumulationSelectionModule.selectedDataIndexes,null,!0),this.accumulationSelectionModule.invokeSelection(this)),this.accumulationHighlightModule&&"None"!==this.highlightMode&&this.accumulationHighlightModule.invokeHighlight(this),e.length>0&&(this.accumulationSelectionModule.selectedDataIndexes=e,this.accumulationSelectionModule.redrawSelection(this))},i.prototype.renderTitle=function(){var e=this.margin;if(!this.title)return null;var t,i=to(this.titleStyle.textAlignment,this.enableRtl),o=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont),r=this.margin.top+3*o.height/4,n=void 0===this.accumulationLegendModule?0:"Top"===this.legendSettings.position?this.accumulationLegendModule.legendBounds.height:0,a=0===this.explodeDistance?0:this.explodeDistance,l=0!==n?0:a/2,s=new R.Rect(e.left,0,this.availableSize.width-e.left-e.right,0),h=this.margin.top+3*o.height/4,c=Ei(s,this.titleStyle||this.themeStyle.chartTitleFont),d=this.titleStyle.textAlignment,p=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont);switch(this.titleStyle.position){case"Top":c=Ei(s,this.titleStyle),h=r;break;case"Bottom":c+="start"===i||"end"===i?this.border.width:0,h=this.availableSize.height-this.margin.bottom-p.height-o.height/2;break;case"Left":c=this.margin.left+3*o.height/4,h="Near"===d?e.bottom+this.border.width:"Far"===d?this.availableSize.height-e.bottom-this.border.width:this.availableSize.height/2,i="Near"===d?"end":"Far"===d?"start":"middle",i=this.enableRtl?"end"===i?"start":"start"===i?"end":i:i,t="rotate(-90,"+c+","+h+")";break;case"Right":c=this.availableSize.width-this.margin.right-3*o.height/4,h="Near"===d?e.bottom+this.border.width:"Far"===d?this.availableSize.height-e.bottom-this.border.width:this.availableSize.height/2,i="Near"===d?"start":"Far"===d?"end":"middle",i=this.enableRtl?"end"===i?"start":"start"===i?"end":i:i,t="rotate(90,"+c+","+h+")";break;case"Custom":c=this.titleStyle.x,h=this.titleStyle.y,i="middle"}var u=new R.TextOption(this.element.id+"_title",c,h,i,this.titleCollection,t,"auto"),g="Pie"===this.series[0].type&&"Outside"===this.visibleSeries[0].dataLabel.position&&this.visibleSeries[0].dataLabel.connectorStyle.length?Li(this.visibleSeries[0].dataLabel.connectorStyle.length,this.accBaseModule.radius):0;this.subTitle||"Funnel"===this.series[0].type||"Pyramid"===this.series[0].type||"Top"!==this.titleStyle.position||(u.y=parseInt(this.series[0].radius,10)>=80?u.y:this.accBaseModule.center.y-this.accBaseModule.radius-20-r-n-l-g,"Pie"===this.series[0].type&&(parseInt(this.series[0].radius,10)<80||isNaN(parseInt(this.series[0].radius,10)))&&(u.y=u.y<this.initialClipRect.y-n?this.initialClipRect.y-n:u.y));var m=Di(this.renderer,u,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,0,null,null,null,this.themeStyle.chartTitleFont);m&&(m.setAttribute("tabindex","0"),m.style.outline="none",m.parentNode.insertBefore(m,this.svgObject.children&&this.svgObject.children[1])),this.subTitle&&this.renderSubTitle(u)},i.prototype.updateCenterLabel=function(e){var t=this.getPieData(e);this.format=null==t.point?"":this.parseFormat(t.point,this.visibleSeries[0],this.centerLabel.hoverTextFormat),this.renderCenterLabel()},i.prototype.getPieData=function(e){var t=vt(e.target.id,!0);return isNaN(t.series)?new Zi(null,null):new Zi(this.visibleSeries[0].points[t.point],this.visibleSeries[0])},i.prototype.parseFormat=function(e,t,i){for(var o,r,n=RegExp,a=0,l=Object.keys(e);a<l.length;a++){o=new n("${point."+(c=l[a])+"}","gm"),i=i.replace(o.source,e[c])}for(var s=0,h=Object.keys(Object.getPrototypeOf(t));s<h.length;s++){var c;o=new n("${series."+(c=h[s])+"}","gm"),r=t[c],i=i.replace(o.source,r)}return i},i.prototype.renderCenterLabel=function(e,i){var o=this;if(!this.centerLabel.text||"Pie"!==this.type)return null;var r=[];i&&qt(this.element.id+"_centerLabel").querySelectorAll("tspan").forEach(function(e){r.push({x:e.getAttribute("x"),y:e.getAttribute("y")})});for(var n,a=this.series[0],l=to(this.centerLabel.textStyle.textAlignment,this.enableRtl),s=10,h=this.pieSeriesModule.innerRadius?2*this.pieSeriesModule.innerRadius*.7071067:2*this.pieSeriesModule.radius*.7071067,c=(this.format||this.centerLabel.text).split("<br>"),d=(0,R.measureText)(c[0],this.centerLabel.textStyle,this.themeStyle.chartTitleFont),p=c.length,u=0;u<p;u++){(0,R.measureText)(c[u],this.centerLabel.textStyle,this.themeStyle.chartTitleFont).width>h&&c.splice.apply(c,[u,1].concat(_i(c[u],h,this.centerLabel.textStyle,this.enableRtl,null,null,this.themeStyle.chartTitleFont)))}d.height*c.length>h?n=this.accBaseModule.center.y+(d.height+s)/2-h/2:a.startAngle&&a.endAngle&&180===Math.abs(a.endAngle-a.startAngle)?(n=this.accBaseModule.center.y-d.height*c.length/2+(d.height+s)/2-this.pieSeriesModule.innerRadius/2+(this.pieSeriesModule.innerRadius?s:0),d.height*c.length+this.pieSeriesModule.innerRadius/2+s>h&&(n=this.accBaseModule.center.y+(d.height+s)/2-h/2)):n=c.length>1?this.accBaseModule.center.y-d.height*c.length/2+(d.height+s)/2:this.accBaseModule.center.y+d.height/4;var g=new R.TextOption(this.element.id+"_centerLabel",(this.series[0].animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e?this.pieSeriesModule.center.x-1:this.pieSeriesModule.center.x,n,l,"","","auto"),m=Di(this.renderer,g,this.centerLabel.textStyle,this.centerLabel.textStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,0,null,null,null,this.themeStyle.chartTitleFont),y=[];for(u=0;u<c.length;u++){var f={x:g.x,y:g.y+u*d.height,fill:""},v=this.renderer.createTSpan(f,"");v.style.fontFamily="inherit",v.style.fontStyle="inherit",v.style.fontSize="inherit",v.style.fontWeight=c[u].indexOf("<b>")>-1||c[u].indexOf("</b>")>-1?"bold":"inherit",v.textContent=c[u].replace(/<\/?b>/g,""),m.appendChild(v),y.push(v)}i&&y.forEach(function(e,t){o.animateTspan(e,Number(r[t].x),Number(r[t].y),Number(e.getAttribute("x")),Number(e.getAttribute("y")),o.duration)}),e&&(this.series[0].animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&this.animateSeries&&this.centerLabelDelay(m)},i.prototype.animateTspan=function(e,i,o,r,n,a){new t.Animation({}).animate(e,{duration:a,progress:function(t){e.style.animation="";var a=t.timeStamp/t.duration,l=i+(r-i)*a,s=o+(n-o)*a;e.setAttribute("x",l.toString()),e.setAttribute("y",s.toString())},end:function(){e.setAttribute("x",r.toString()),e.setAttribute("y",n.toString())}})},i.prototype.centerLabelDelay=function(e){e.style.visibility="hidden",new t.Animation({}).animate(e,{delay:this.duration?this.duration:this.series[0].animation.duration,progress:function(e){e.element.style.visibility="visible"}})},i.prototype.renderSubTitle=function(e){for(var t=0,i=0,o=this.titleStyle.textAlignment,r=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont),n=0,a=this.titleCollection;n<a.length;n++){var l=a[n];t=(i=(0,R.measureText)(l,this.titleStyle,this.themeStyle.chartSubTitleFont).width)>t?i:t}var s=new R.Rect("Center"===o?e.x-t/2:"Far"===o?e.x-t:e.x,0,t,0);"Left"===this.titleStyle.position&&(s.x="Center"===o?e.x-.5*t:"Far"===o?this.margin.left+3*r.height/4:e.x-t);var h=new R.TextOption(this.element.id+"_subTitle",Ei(s,this.subTitleStyle),e.y*e.text.length+3*r.height/4+10,to(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,e.transform,"auto");Di(this.renderer,h,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,0,null,null,null,this.themeStyle.chartSubTitleFont)},i.prototype.getSeriesElement=function(){return this.svgObject.getElementsByTagName("g")[0]},i.prototype.refreshSeries=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];this.refreshPoints(i.points)}},i.prototype.refreshPoints=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];o.labelPosition=null,o.labelRegion=null,o.labelVisible=!0}},i.prototype.getModuleName=function(){return"accumulationchart"},i.prototype.destroy=function(){if(this.element){this.unWireEvents(),e.prototype.destroy.call(this),this.element.classList.remove("e-accumulationchart"),this.element.classList.remove("e-accumulationchart-focused");var t=document.getElementById(this.element.id+"Keyboard_accumulationchart_focus");t&&t.remove(),Je("chartmeasuretext"),this.removeSvg();var i=document.getElementById(this.element.id+"_ej2_chart_highlight");i&&i.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");o&&o.remove(),this.svgObject=null}},i.prototype.requiredModules=function(){var e=[];return e.push({member:this.type+"Series",args:[this]}),this.legendSettings.visible&&e.push({member:"AccumulationLegend",args:[this]}),this.findDatalabelVisibility()&&e.push({member:"AccumulationDataLabel",args:[this]}),this.tooltip.enable&&e.push({member:"AccumulationTooltip",args:[this]}),"None"!==this.selectionMode&&e.push({member:"AccumulationSelection",args:[this]}),"None"!==this.highlightMode&&e.push({member:"AccumulationHighlight",args:[this]}),(this.enableExport||this.allowExport)&&e.push({member:"Export",args:[this]}),this.annotations.some(function(e){return null!==e.content})&&e.push({member:"Annotation",args:[this]}),e},i.prototype.findDatalabelVisibility=function(){for(var e=0,t=this.series;e<t.length;e++){if(t[e].dataLabel.visible)return!0}return!1},i.prototype.changeVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},i.prototype.getPersistData=function(){return""},i.prototype.sanitize=function(e){return this.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(e):e},i.prototype.onPropertyChanged=function(i,o){for(var r={refreshElements:!1,refreshBounds:!1},n=0,a=Object.keys(i);n<a.length;n++){switch(a[n]){case"theme":this.animateSeries=!0;break;case"title":case"subTitle":case"height":case"width":case"margin":r.refreshBounds=!0;break;case"titleStyle":i.titleStyle&&(i.titleStyle.size||i.titleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"subTitleStyle":i.subTitleStyle&&(i.subTitleStyle.size||i.subTitleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"legendSettings":r.refreshBounds=!0,r.refreshElements=!0;break;case"dataSource":this.processData(!1),r.refreshBounds=!0;break;case"series":if(!this.animateselected){for(var l=this.series.length,s=!1,h=void 0,c=0;c<l;c++)h=i.series[c],i.series[c]&&(i.series[c].dataSource||i.series[c].yName||i.series[c].xName||h.type||i.series[c].dataLabel||h.radius||h.innerRadius||h.startAngle||h.endAngle||h.gapRatio||h.neckWidth||h.explode||h.neckWidth||h.pyramidMode||h.explodeOffset||h.funnelMode)&&((0,t.extend)(this.changeVisibleSeries(this.visibleSeries,c),h,null,!0),s=!0),i.series[c]&&!(0,t.isNullOrUndefined)(i.series[c].explodeIndex)&&i.series[c].explodeIndex>=0&&i.series[c].explodeIndex!==o.series[c].explodeIndex?(this.accBaseModule.explodePoints(i.series[c].explodeIndex,this),this.accBaseModule.deExplodeAll(i.series[c].explodeIndex,this.enableAnimation?300:0)):i.series[c].explodeIndex<0&&this.accBaseModule.deExplodeAll(i.series[c].explodeIndex,this.enableAnimation?300:0),this.pieSeriesModule||(this.pieSeriesModule=new wa(this));s&&(this.calculateVisibleSeries(),this.processData(!1),r.refreshBounds=!0)}this.animateselected=!1,this.redraw=!1;break;case"enableRtl":case"locale":case"currencyCode":e.prototype.refresh.call(this);break;case"background":case"border":case"annotations":case"enableSmartLabels":r.refreshElements=!0;break;case"isMultiSelect":case"selectedDataIndexes":case"selectionMode":this.accumulationSelectionModule&&((0,t.isNullOrUndefined)(this.accumulationSelectionModule.selectedDataIndexes)?this.accumulationSelectionModule.invokeSelection(this):(this.accumulationSelectionModule.selectedDataIndexes=this.selectedDataIndexes,this.accumulationSelectionModule.redrawSelection(this)));break;case"tooltip":this.accumulationTooltipModule&&(this.accumulationTooltipModule.previousPoints=[],this.tooltip.template&&(this.accumulationTooltipModule.template=this.tooltip.template));break;case"center":(0,t.isNullOrUndefined)(i.center.x)||(this.center.x=i.center.x,r.refreshElements=!0),(0,t.isNullOrUndefined)(i.center.y)||(this.center.y=i.center.y,r.refreshElements=!0)}}!r.refreshBounds&&r.refreshElements?(this.createPieSvg(),this.renderElements()):r.refreshBounds&&(this.refreshSeries(),this.createPieSvg(),this.calculateBounds(),this.renderElements())},Pa([(0,t.Property)(null)],i.prototype,"noDataTemplate",void 0),Pa([(0,t.Property)(null)],i.prototype,"width",void 0),Pa([(0,t.Property)(null)],i.prototype,"height",void 0),Pa([(0,t.Property)(null)],i.prototype,"title",void 0),Pa([(0,t.Property)(null)],i.prototype,"backgroundImage",void 0),Pa([(0,t.Complex)({},ma)],i.prototype,"center",void 0),Pa([(0,t.Property)("")],i.prototype,"dataSource",void 0),Pa([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},w)],i.prototype,"titleStyle",void 0),Pa([(0,t.Property)(null)],i.prototype,"subTitle",void 0),Pa([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},w)],i.prototype,"subTitleStyle",void 0),Pa([(0,t.Complex)({},Ro)],i.prototype,"legendSettings",void 0),Pa([(0,t.Complex)({},f)],i.prototype,"tooltip",void 0),Pa([(0,t.Complex)({},p)],i.prototype,"centerLabel",void 0),Pa([(0,t.Property)("None")],i.prototype,"selectionMode",void 0),Pa([(0,t.Property)("")],i.prototype,"highlightColor",void 0),Pa([(0,t.Property)("None")],i.prototype,"highlightMode",void 0),Pa([(0,t.Property)("None")],i.prototype,"selectionPattern",void 0),Pa([(0,t.Property)("None")],i.prototype,"highlightPattern",void 0),Pa([(0,t.Property)(!1)],i.prototype,"enableHtmlSanitizer",void 0),Pa([(0,t.Property)(!0)],i.prototype,"enableBorderOnMouseMove",void 0),Pa([(0,t.Property)(!1)],i.prototype,"isMultiSelect",void 0),Pa([(0,t.Property)(!0)],i.prototype,"enableAnimation",void 0),Pa([(0,t.Collection)([],b)],i.prototype,"selectedDataIndexes",void 0),Pa([(0,t.Complex)({},m)],i.prototype,"margin",void 0),Pa([(0,t.Property)(!0)],i.prototype,"enableSmartLabels",void 0),Pa([(0,t.Complex)({color:"#DDDDDD",width:0},u)],i.prototype,"border",void 0),Pa([(0,t.Property)(null)],i.prototype,"background",void 0),Pa([(0,t.Collection)([{}],fa)],i.prototype,"series",void 0),Pa([(0,t.Collection)([{}],ua)],i.prototype,"annotations",void 0),Pa([(0,t.Property)("Material")],i.prototype,"theme",void 0),Pa([(0,t.Property)(!1)],i.prototype,"useGroupingSeparator",void 0),Pa([(0,t.Property)(!0)],i.prototype,"enableExport",void 0),Pa([(0,t.Property)(!1)],i.prototype,"allowExport",void 0),Pa([(0,t.Complex)({},a)],i.prototype,"accessibility",void 0),Pa([(0,t.Property)(null)],i.prototype,"focusBorderColor",void 0),Pa([(0,t.Property)(1.5)],i.prototype,"focusBorderWidth",void 0),Pa([(0,t.Property)(0)],i.prototype,"focusBorderMargin",void 0),Pa([(0,t.Event)()],i.prototype,"loaded",void 0),Pa([(0,t.Event)()],i.prototype,"legendClick",void 0),Pa([(0,t.Event)()],i.prototype,"load",void 0),Pa([(0,t.Event)()],i.prototype,"seriesRender",void 0),Pa([(0,t.Event)()],i.prototype,"legendRender",void 0),Pa([(0,t.Event)()],i.prototype,"textRender",void 0),Pa([(0,t.Event)()],i.prototype,"tooltipRender",void 0),Pa([(0,t.Event)()],i.prototype,"pointRender",void 0),Pa([(0,t.Event)()],i.prototype,"annotationRender",void 0),Pa([(0,t.Event)()],i.prototype,"beforePrint",void 0),Pa([(0,t.Event)()],i.prototype,"chartMouseMove",void 0),Pa([(0,t.Event)()],i.prototype,"chartMouseClick",void 0),Pa([(0,t.Event)()],i.prototype,"chartDoubleClick",void 0),Pa([(0,t.Event)()],i.prototype,"pointClick",void 0),Pa([(0,t.Event)()],i.prototype,"pointMove",void 0),Pa([(0,t.Event)()],i.prototype,"animationComplete",void 0),Pa([(0,t.Event)()],i.prototype,"chartMouseDown",void 0),Pa([(0,t.Event)()],i.prototype,"chartMouseLeave",void 0),Pa([(0,t.Event)()],i.prototype,"chartMouseUp",void 0),Pa([(0,t.Event)()],i.prototype,"beforeResize",void 0),Pa([(0,t.Event)()],i.prototype,"resized",void 0),Pa([(0,t.Event)()],i.prototype,"beforeExport",void 0),Pa([(0,t.Event)()],i.prototype,"afterExport",void 0),Pa([(0,t.Event)()],i.prototype,"selectionComplete",void 0),Pa([(0,t.Property)("USD")],i.prototype,"currencyCode",void 0),i=Pa([t.NotifyPropertyChanges],i)}(t.Component),Ma=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Da=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ma(t,e),t.prototype.initProperties=function(e,t){var i=e.initialClipRect;t.triangleSize=new R.Size(Li(t.width,i.width),Li(t.height,i.height)),t.neckSize=new R.Size(Li(t.neckWidth,i.width),Li(t.neckHeight,i.height)),this.defaultLabelBound(t,t.dataLabel.visible,t.dataLabel.position,e),"30%"===t.explodeOffset&&(t.explodeOffset="25px"),e.explodeDistance=Li(t.explodeOffset,i.width);var o=t.points;this.initializeSizeRatio(o,t)},t.prototype.initializeSizeRatio=function(e,t,i){void 0===i&&(i=!1);for(var o=t.sumOfPoints,r=Math.min(Math.max(t.gapRatio,0),1),n=0!==o?1/(o*(1+r/(1-r))):0,a=r/(e.length-1),l=0,s=e.length-1;s>=0;s--){var h=i?e.length-1-s:s;if(e[h].visible){var c=n*e[h].y;e[h].yRatio=l,e[h].heightRatio=c,l+=c+a}}},t.prototype.setLabelLocation=function(e,t,i){var o=i.length-1,r="Funnel"===e.type?i.length-2:i.length-1,n=(i[0].x+i[r].x)/2,a=(i[1].x+i[r-1].x)/2;t.region=new R.Rect(n,i[0].y,a-n,i[r].y-i[0].y),t.symbolLocation={x:t.region.x+t.region.width/2,y:t.region.y+t.region.height/2},t.labelOffset={x:t.symbolLocation.x-(i[0].x+i[o].x)/2,y:t.symbolLocation.y-(i[0].y+i[o].y)/2}},t.prototype.getPath=function(e,t,i,o,r,n){var a=n.points.length,l=n.borderRadius,s=Math.min(t.region.width,t.region.height),h=Math.min(n.neckSize.height,n.neckSize.width);0===h&&(h=0===n.neckSize.height&&0===n.neckSize.width?t.region.height:0===n.neckSize.width?n.neckSize.height:n.neckSize.width),l=l>s/2?s/2:l,"Funnel"===n.type&&(l=l>h/2?h/2:l);var c=Math.atan2(e[1].x-e[2].x,e[1].y-e[2].y),d=l;if("Pyramid"===n.type&&(l=t.index===r&&1!==a&&o!==r?0:l,i+=e[0].x-d*Math.sin(-c)+" "+(e[0].y+-d*Math.cos(c))+" Q"+e[0].x+" "+e[0].y+" "+(e[0].x+l*Math.sin(-c))+" "+(e[0].y+-l*Math.cos(-c)),i+=" L"+(e[1].x+l*Math.sin(-c))+" "+(e[1].y+-l*Math.cos(c)),l=t.index===r?d:0,i+=" L"+(e[2].x-d*Math.sin(-c))+" "+(e[2].y- -d*Math.cos(c))+" Q"+e[2].x+" "+e[2].y+" "+(e[2].x-l)+" "+e[2].y,i+=" L"+(e[3].x+l)+" "+e[3].y+" Q"+e[3].x+" "+e[3].y+" "+(e[3].x+d*Math.sin(-c))+" "+(e[3].y- -d*Math.cos(c))),"Funnel"===n.type)if(l=t.index===o&&1!==a&&o!==r?0:l,i+=e[0].x+-l*Math.sin(-c)+" "+(e[0].y+-l*Math.cos(c))+" Q"+e[0].x+" "+e[0].y+" "+(e[0].x+l)+" "+e[0].y,i+=" L"+(e[1].x-l)+" "+e[1].y+" Q"+e[1].x+" "+e[1].y+" "+(e[1].x-l*Math.sin(c))+" "+(e[1].y+-l*Math.cos(c)),l=t.index===o?d:0,"0%"===n.neckWidth){var p=e[5].x+(e[3].x-e[5].x)/2;i+=" L"+(e[2].x+-l*Math.sin(-c))+" "+(e[2].y- -l*Math.cos(c))+" Q"+p+" "+e[2].y+" "+(e[5].x- -l*Math.sin(-c))+" "+(e[2].y- -l*Math.cos(c))}else{i="0%"!==n.neckHeight&&e[2].y!==e[3].y?i+=" L"+e[2].x+" "+e[2].y:i;var u="0%"===n.neckHeight?l*Math.sin(-c):0,g="0%"===n.neckHeight?-l*Math.cos(c):l;i+=" L"+(e[3].x-u)+" "+(e[3].y-g)+" Q"+e[3].x+" "+e[3].y+" "+(e[3].x-g)+" "+e[3].y,i+=" L"+(e[4].x+g)+" "+e[4].y+" Q"+e[4].x+" "+e[4].y+" "+(e[5].x+u)+" "+(e[4].y-g),i="0%"!==n.neckHeight&&e[4].y!==e[5].y?i+=" L"+e[5].x+" "+e[5].y:i}return i},t.prototype.findPath=function(e,t,i){for(var o="M ",r=-1,n=-1,a=0;a<i.points.length;a++)i.points[a].visible&&(-1===r&&(r=a),n=a);if(!i.borderRadius||t.index!==n&&t.index!==r)for(var l=0;l<e.length;l++)o+=e[l].x+" "+e[l].y,l!==e.length-1&&(o+=" L ");else o=this.getPath(e,t,o,r,n,i);return o+" Z "},t.prototype.defaultLabelBound=function(e,t,i,o){var r=(o.initialClipRect.width-e.triangleSize.width)/2,n=(o.initialClipRect.height-e.triangleSize.height)/2,a=new R.Rect(r,n,e.triangleSize.width,e.triangleSize.height);e.labelBound=new R.Rect(a.x,a.y,a.width+a.x,a.height+a.y),e.accumulationBound=a,t&&"Outside"===i&&(e.labelBound=new R.Rect(1/0,1/0,-1/0,-1/0))},t}(xa),ka=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ka(t,e),t.prototype.getSegmentData=function(e,t,i){var o,r,n,a,l,s,h,c,d=t.triangleSize,p=(i.initialClipRect.width-t.triangleSize.width)/2+i.initialClipRect.x,u=i.initialClipRect.y+(i.initialClipRect.height-d.height)/2,g=e.yRatio*d.height,m=g+e.heightRatio*d.height,y=t.neckSize;o=y.width+(d.width-y.width)*((d.height-y.height-g)/(d.height-y.height)),a=(r=d.width/2-o/2)+o,o=m>d.height-y.height||d.height===y.height?y.width:y.width+(d.width-y.width)*((d.height-y.height-m)/(d.height-y.height)),l=(n=d.width/2-o/2)+o,g>=d.height-y.height?(r=n=s=d.width/2-y.width/2,a=l=h=d.width/2+y.width/2):m>d.height-y.height&&(h=l=(s=n=d.width/2-o/2)+o,c=d.height-y.height);var f={x:p+0+l,y:m+=u},v={x:p+0+n,y:m};(c+=u)&&(f={x:p+0+h,y:c},v={x:p+0+s,y:c});var b=[{x:p+0+r,y:g+=u},{x:p+0+a,y:g},f,{x:p+0+l,y:m},{x:p+0+n,y:m},v];return this.setLabelLocation(t,e,b),this.findPath(b,e,t)},t.prototype.renderPoint=function(e,t,i,o,r,n,a,l,s){if(!e.visible)return Je(o.id),null;var h,c=this.getSegmentData(e,t,i);e.midAngle=0,o.d=c,s&&document.getElementById(o.id)&&(h=document.getElementById(o.id).getAttribute("d"));var d=i.renderer.drawPath(o);d.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),d.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),d.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+":"+e.y+"%. "+t.name),ni(!1,r,d,n,s||void 0,s?"x":void 0,s?"y":void 0,void 0,s?h:void 0,void 0,void 0,void 0,s?i.duration:void 0),e.isExplode&&i.accBaseModule.explodePoints(e.index,i,!0)},t.prototype.renderTrapezoidalFunnel=function(e,t,i,o,r,n){for(var a=e.triangleSize.width,l=e.triangleSize.height,s=(i.initialClipRect.width-a)/2+i.initialClipRect.x,h=i.initialClipRect.y+(i.initialClipRect.height-l)/2,c=Math.max.apply(Math,t.map(function(e){return e.y})),d=0,p=n?qt(i.element.id+"_Series_"+e.index+"_Polygon"):i.renderer.createGroup({id:i.element.id+"_Series_"+e.index+"_Polygon"}),u=0;u<e.points.length;u++){var g=e.points[u],m=o[g.index];if(g.visible){var y=(l-10*(t.length-1))/t.length,f=a*(g.y/c),v=t.indexOf(g),b=v<t.length-1?a*(t[v+1].y/c):0,x=s+(a-f)/2,S=h+d,C=Math.min(e.borderRadius,y/2),F="M"+(x+C)+" "+S+" L"+(x+f-C)+" "+S+" A"+C+" "+C+" 0 0 1 "+(x+f)+" "+(S+C)+" L"+(x+f)+" "+(S+y-C)+" A"+C+" "+C+" 0 0 1 "+(x+f-C)+" "+(S+y)+" L"+(x+C)+" "+(S+y)+" A"+C+" "+C+" 0 0 1 "+x+" "+(S+y-C)+" L"+x+" "+(S+C)+" A"+C+" "+C+" 0 0 1 "+(x+C)+" "+S+" Z";g.midAngle=0,m.d=F;var w=i.renderer.drawPath(m);if(w.setAttribute("role",e.accessibility.accessibilityRole?e.accessibility.accessibilityRole:"img"),w.setAttribute("tabindex",0===g.index&&e.accessibility.focusable?String(e.accessibility.tabIndex):"-1"),w.setAttribute("aria-label",e.accessibility.accessibilityDescription?e.accessibility.accessibilityDescription:g.x+":"+g.y+"%. "+e.name),ni(!1,r,w,n),v<t.length-1){var L=new R.PathOption(m.id+"_polygon",this.lightenColor(m.fill),.4*m["stroke-width"],this.lightenColor(m.stroke),m.opacity,m["stroke-dasharray"],""),P=[[(a-f)/2+s+C,S+y],[(a+f)/2+s-C,S+y],[(a+b)/2+s,S+y+10],[(a-b)/2+s,S+y+10]],A="M"+P[0][0]+" "+P[0][1]+" L"+P[1][0]+" "+P[1][1]+" L"+P[2][0]+" "+P[2][1]+" L"+P[3][0]+" "+P[3][1]+" Z";L.d=A,ni(!1,p,i.renderer.drawPath(L),n)}else Je(m.id+"_polygon");d+=y+10,g.region=new R.Rect(x,S,f,y),g.symbolLocation={x:g.region.x+g.region.width/2,y:g.region.y+g.region.height/2},g.labelOffset={x:g.symbolLocation.x+g.region.width/2,y:g.symbolLocation.y+g.region.height/2},g.isExplode&&i.accBaseModule.explodePoints(g.index,i,!0)}else Je(m.id),Je(m.id+"_polygon")}ni(!1,i.getSeriesElement(),r,n),ni(!1,i.getSeriesElement(),p,n)},t.prototype.lightenColor=function(e){var t=yi(fi(e));return"rgb("+t.r+","+t.g+","+t.b+",0.4)"},t.prototype.getModuleName=function(){return"FunnelSeries"},t.prototype.destroy=function(){},t}(Da),Ta=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ta(t,e),t.prototype.getSegmentData=function(e,t,i){var o=t.triangleSize,r=i.initialClipRect.y+(i.initialClipRect.height-o.height)/2,n=(i.initialClipRect.width-t.triangleSize.width)/2+i.initialClipRect.x,a=e.yRatio,l=e.yRatio+e.heightRatio,s=.5*(1-e.yRatio),h=.5*(1-l);a+=r/o.height,l+=r/o.height;var c=[{x:n+0+s*o.width,y:a*o.height},{x:n+0+(1-s)*o.width,y:a*o.height},{x:n+0+(1-h)*o.width,y:l*o.height},{x:n+0+h*o.width,y:l*o.height}];return this.setLabelLocation(t,e,c),this.findPath(c,e,t)},t.prototype.initializeSizeRatio=function(t,i){"Linear"===i.pyramidMode?e.prototype.initializeSizeRatio.call(this,t,i,!0):this.calculateSurfaceSegments(i)},t.prototype.calculateSurfaceSegments=function(e){for(var t=e.points.length,i=e.sumOfPoints,o=[],r=[],n=Math.min(0,Math.max(e.gapRatio,1)),a=e.points.length>1?n/(t-1):0,l=this.getSurfaceHeight(0,i),s=0,h=0;h<t;h++)e.points[h].visible&&(o[h]=s,r[h]=this.getSurfaceHeight(s,Math.abs(e.points[h].y)),s+=r[h]+a*l);var c=1/(s-a*l);for(h=0;h<t;h++)e.points[h].visible&&(e.points[h].yRatio=c*o[h],e.points[h].heightRatio=c*r[h])},t.prototype.getSurfaceHeight=function(e,t){return this.solveQuadraticEquation(1,2*e,-t)},t.prototype.solveQuadraticEquation=function(e,t,i){var o,r,n=t*t-4*e*i;if(n>=0){var a=Math.sqrt(n);return o=(-t-a)/(2*e),r=(-t+a)/(2*e),Math.max(o,r)}return 0},t.prototype.renderPoint=function(e,t,i,o,r,n,a,l,s){if(!e.visible)return(0,R.removeElement)(o.id),null;var h;o.d=this.getSegmentData(e,t,i),s&&document.getElementById(o.id)&&(h=document.getElementById(o.id).getAttribute("d")),e.midAngle=0;var c=i.renderer.drawPath(o);c.setAttribute("role",t.accessibility.accessibilityRole?t.accessibility.accessibilityRole:"img"),c.setAttribute("tabindex",0===e.index&&t.accessibility.focusable?String(t.accessibility.tabIndex):"-1"),c.setAttribute("aria-label",t.accessibility.accessibilityDescription?t.accessibility.accessibilityDescription:e.x+": "+e.y+"%. "+t.name),ni(!1,r,c,n,s||void 0,s?"x":void 0,s?"y":void 0,void 0,s?h:void 0,void 0,void 0,void 0,s?i.duration:void 0),e.isExplode&&i.accBaseModule.explodePoints(e.index,i,!0)},t.prototype.getModuleName=function(){return"PyramidSeries"},t.prototype.destroy=function(){},t}(Da),_a=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ia=function(e){function i(t){var i=e.call(this,t)||this;return i.legendRenderArgFill=[],i.library=i,i.titleRect=new R.Rect(0,t.margin.top,0,0),i.addEventListener(),i}return _a(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on("click",this.click,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},i.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&this.chart.accumulationHighlightModule&&"None"!==this.chart.highlightMode){this.chart.legendSettings.toggleVisibility||this.click(e);for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=void 0,r=0,n=t;r<n.length;r++){var a=n[r];if(i.indexOf(a)>-1){o=parseInt(i.split(a)[1],10),this.chart.accumulationHighlightModule.legendSelection(this.chart,0,o,e.target,e.type);break}}}},i.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.getLegendOptions=function(e,i){this.legendCollections=[],this.isRtlEnable=e.enableRtl,this.isReverse=!this.isRtlEnable&&e.legendSettings.reverse;for(var o=0;o<1;o++){var r=i[o].type;"Pie"!==r&&"Doughnut"!==r||(r="0"!==i[o].innerRadius&&"0%"!==i[o].innerRadius?"Doughnut":"Pie");for(var n=0,a=i[o].points;n<a.length;n++){var l=a[n];(0,t.isNullOrUndefined)(l.x)||(0,t.isNullOrUndefined)(l.y)||this.legendCollections.push(new Eo(e.useGroupingSeparator&&"number"==typeof l.x?e.intl.formatNumber(l.x,{useGrouping:!0}):l.x.toString(),l.color,i[o].legendShape,l.visible,r,l.legendImageUrl,null,null,l.index,i[o].index,null,l.x.toString()))}this.isReverse&&this.legendCollections.reverse()}},i.prototype.getLegendBounds=function(e,t,i){this.calculateLegendTitle(i,t),this.isTitle=!!i.title;var o,r=0,n=0;this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var a=i.padding,l=i.titlePosition,s=0,h=this.arrowWidth,c=i.enablePages?0:this.arrowHeight;this.isVertical?r=i.width?0:e.width/100*5:n=i.height?0:e.height/100*5,t.width+=r,t.height+=n;var d,p,u=i.shapePadding,g=i.maximumLabelWidth?i.maximumLabelWidth:0,m=i.shapeWidth,y=0,f=0,v=0,b=[],x=[],S=0,C=0,F=0,w=0;this.maxItemHeight=Math.max((0,R.measureText)("MeasureText",i.textStyle,this.chart.themeStyle.legendLabelFont).height,i.shapeHeight);var L,P=!1,A="Auto"===i.layout&&i.maximumColumns>0;if(i.fixedWidth)for(var M=0;M<this.legendCollections.length;M++){var D=m+u+(this.isVertical||0===M?a:this.itemPadding)+(i.maximumLabelWidth?i.maximumLabelWidth:(0,R.measureText)(this.legendCollections[M].text,i.textStyle,this.chart.themeStyle.legendLabelFont).width);this.maxColumnWidth=this.maxColumnWidth>D?this.maxColumnWidth:D}for(M=0;M<this.legendCollections.length;M++)if(p={fill:(o=this.legendCollections[M]).fill,text:o.text,shape:o.shape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",p),o.render=!p.cancel,o.text=o.originalText=p.text.indexOf("&")>-1?this.convertHtmlEntities(p.text):p.text,o.fill!==p.fill&&this.legendRenderArgFill.push(M),o.fill=p.fill,o.shape=p.shape,o.textSize=(0,R.measureText)(o.text,i.textStyle,this.chart.themeStyle.legendLabelFont),o.render&&""!==o.text)if(P=!0,w=i.fixedWidth?this.maxColumnWidth:m+u+(i.maximumLabelWidth?i.maximumLabelWidth:o.textSize.width)+(this.isVertical&&"Horizontal"!==i.layout||0===M||1===f&&v>0&&"Horizontal"===i.layout?a:this.itemPadding),this.getLegendHeight(o,i,t,y,this.maxItemHeight,a),this.isVertical&&"Auto"===i.layout&&!A)(F+=Math.max(o.textSize.height,i.shapeHeight)+(0===M?a:this.itemPadding))+this.itemPadding+c/this.pageButtonSize>t.height&&(y+=g,S=this.getPageWidth(x),this.totalPages=Math.max(v,this.totalPages||1),y-S+w>t.width?(x.push(y-S),C=v=this.rowHeights.length):v=C,b.push(g),g=0,F=Math.max(o.textSize.height,i.shapeHeight)+a,f++),this.columnHeights[f]=(this.columnHeights[f]?this.columnHeights[f]:0)+Math.max(o.textSize.height,i.shapeHeight)+(0===M?a:this.itemPadding),g=Math.max(w,g),this.rowHeights[v]=Math.max(this.rowHeights[v]?this.rowHeights[v]:0,Math.max(o.textSize.height,i.shapeHeight)),v++;else{i.enablePages||(s=this.isTitle&&"Top"!==l?this.legendTitleSize.width+this.fivePixel:0,s+=h),y+=w,(A?i.maximumColumns===f:t.width<a+y+s||"Vertical"===this.legend.layout&&1===f)&&(g=Math.max(g,y+a+s-w),0===v&&w!==y&&(v=1),y=w,v++,f=0);var k=v?v-1:v;this.rowHeights[k]=Math.max(this.rowHeights[k]?this.rowHeights[k]:0,Math.max(o.textSize.height,i.shapeHeight)),this.columnHeights[f]=(this.columnHeights[f]?this.columnHeights[f]:0)+Math.max(o.textSize.height,i.shapeHeight)+a,A&&this.columnHeights[f]>t.height&&(this.columnHeights[f]-=Math.max(o.textSize.height,i.shapeHeight)+a),f++}d="Top"===l?this.legendTitleSize.height:0,this.isVertical&&"Auto"===i.layout&&!A?(y+=g,this.isPaging=t.width<y+a,F=Math.max.apply(null,this.columnHeights)+a+c+d,F=Math.max(F,(this.totalPages||1)*(this.maxItemHeight+a)+a+c),this.isPaging=this.isPaging&&this.totalPages>1,b.push(g)):(this.totalPages=this.totalRowCount=v,F=Math.max.apply(null,this.columnHeights)+a+c+d,this.isPaging=(t.height<F||"Horizontal"===i.layout&&this.rowHeights.length>1)&&!A,F=!i.enablePages&&this.isPaging&&"Vertical"!==i.layout?this.maxItemHeight+a+a+d:F,F=Math.max(F,this.maxItemHeight+a+a+d),"Horizontal"===i.layout&&(F=this.maxItemHeight+2*a+d+this.pageButtonSize+i.border.width),this.isPaging||(y+=this.isTitle&&"Top"!==l?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0)),this.maxColumns=0,A&&this.maxColumnWidth&&i.fixedWidth?(L=this.maxColumnWidth*i.maximumColumns+a,this.isPaging=!1):L=this.isVertical&&"Auto"===i.layout&&!A?this.getMaxColumn(b,t.width,a,y+a):Math.max(y+a,g),P?this.setBounds(L,F,i,t):this.setBounds(0,0,i,t)},i.prototype.getPageWidth=function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t},i.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=_i(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,"AnyWhere"===t.textWrap,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},i.prototype.convertHtmlEntities=function(e){var t=e.replace("&amp;","&").replace("&lt;","<").replace("&gt;",">").replace("&quot;",'"').replace("&nbsp;"," ").replace("&cent;","¢").replace("&pound;","£").replace("&yen;","¥").replace("&euro;","€").replace("&copy;","©").replace("&reg;","®");return t=t.replace("&#38;","&").replace("&#60;","<").replace("&#62;",">").replace("&#34;",'"').replace("&#160;"," ").replace("&#162;","¢").replace("&#163;","£").replace("&#165;","¥").replace("&#8364;","€").replace("&#169;","©").replace("&#174;","®")},i.prototype.getMaxColumn=function(e,t,i,o){var r=i;this.maxColumnWidth=Math.max.apply(null,e);for(var n=0,a=e;n<a.length;n++){a[n];if(r+=this.maxColumnWidth,this.maxColumns++,r+i>t){r-=this.maxColumnWidth,this.maxColumns--;break}}this.isPaging=r<o&&this.totalPages>1,r===i&&(r=t),this.maxColumns=Math.max(1,this.maxColumns),this.maxWidth=r;var l=this.maxColumnWidth+i,s=0,h=this.columnHeights.length;if(this.isPaging&&this.isVertical){for(var c=1;c<h;c++)(l+=this.maxColumnWidth+i)>t&&(this.pageHeights.push(s!==c-1?Math.max.apply(null,this.columnHeights.slice(s,c-1)):this.columnHeights[s]),l=this.maxColumnWidth+i,s=c);this.pageHeights.push(s!==h-1?Math.max.apply(null,this.columnHeights.slice(s,h-1)):this.columnHeights[s]),this.totalPages=this.pageHeights.length}return r},i.prototype.getAvailWidth=function(e,t){if(!this.isVertical||"Auto"!==this.legend.layout||this.legend.maximumColumns>0){if(!this.isVertical&&"Vertical"!==this.legend.layout&&!(this.legend.maximumColumns>0)&&this.isPaging&&!this.legend.enablePages)return t-e-this.fivePixel}else t=this.maxWidth;return t-(2*this.legend.padding+this.legend.shapeWidth+this.legend.shapePadding)},i.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=o.location.y+this.maxItemHeight/4+(o.textCollection.length>0?(o.textCollection.length-1)*this.maxItemHeight:0);if(!this.isVertical||"Auto"!==this.legend.layout||this.legend.maximumColumns>0){var h=this.legend.fixedWidth?this.maxColumnWidth:i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),c=o.location.x+(this.isRtlEnable?-h:h);("Auto"===this.legend.layout&&this.legend.maximumColumns>0?n%this.legend.maximumColumns===0:this.isWithinBounds(c,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r,this.legend.shapeWidth/2)||"Vertical"===this.legend.layout)?(n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+this.rowHeights[this.chartRowCount-2]+l,e.location.x=t.x):(e.location.y=o.location.y,e.location.x=n===a?o.location.x:c)}else if(n===a||s+Math.max(e.textSize.height,this.legend.shapeHeight)+l>r.y+r.height){e.location.x=o.location.x+(n===a?0:this.isRtlEnable?-this.maxColumnWidth:this.maxColumnWidth),e.location.y=t.y;var d=this.legend.shapeWidth/2+l;this.pageXCollections.push(e.location.x+(this.isRtlEnable?d:-d))}else e.location.x=o.location.x,e.location.y=o.location.y+Math.max(o.textSize.height,this.legend.shapeHeight)+this.itemPadding;var p=this.getAvailWidth(e.location.x,this.legendBounds.width);p=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,p):p,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=Fi(+p.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},i.prototype.isWithinBounds=function(e,t,i,o){return this.isRtlEnable?e-t<i.x-o:e+t>i.x+i.width+o},i.prototype.getSmartLegendLocation=function(e,t,i){var o;switch(this.position){case"Left":o=(e.x-t.width-i.left)/2,t.x=e.x-t.width<i.left?t.x:e.x-t.width-o;break;case"Right":o=(this.chart.availableSize.width-i.right-(e.x+e.width+t.width))/2,t.x=e.x+e.width+t.width>this.chart.availableSize.width-i.right?t.x:e.x+e.width+o;break;case"Top":this.getTitleRect(this.chart),o=(e.y-t.height-(this.titleRect.y+this.titleRect.height))/2,t.y=e.y-t.height<i.top?t.y:e.y-t.height-o;break;case"Bottom":o=(this.chart.availableSize.height-i.bottom-(e.y+e.height+t.height))/2,t.y=e.y+e.height+t.height>this.chart.availableSize.height-i.bottom?t.y:e.y+e.height+o}},i.prototype.getTitleRect=function(e){if(!e.title)return null;var t=(0,R.measureText)(e.title,e.titleStyle,this.chart.themeStyle.legendTitleFont);this.titleRect=new R.Rect(e.availableSize.width/2-t.width/2,e.margin.top,t.width,t.height)},i.prototype.legendByIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.pointIndex===e)return r}return null},i.prototype.click=function(e){var t=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,i=this.chart,o=[this.legendID+"_text_",this.legendID+"_shape_",this.legendID+"_shape_marker_"];this.chart.animateSeries=!1;for(var r=0,n=o;r<n.length;r++){var a=n[r];if(t.indexOf(a)>-1){var l=parseInt(t.split(a)[1],10);if(this.chart.legendSettings.toggleVisibility&&!isNaN(l)){var s=this.chart.visibleSeries[0],h=ba(l,s.points),c=this.legendByIndex(l,this.legendCollections),d={legendText:c.text,legendShape:c.shape,chart:i,series:s,point:h,name:I,cancel:!1};if(this.chart.trigger(I,d),!d.cancel){h.visible=!h.visible,c.visible=h.visible,s.sumOfPoints+=h.visible?h.y:-h.y,i.redraw=i.enableAnimation,this.sliceVisibility(l,h.visible),i.removeSvg(),this.chart.refreshPoints(s.points),this.chart.calculateBounds();var p=document.getElementById(this.chart.element.id+"PointHover_Border");p&&this.chart.pieSeriesModule.removeBorder(p,0),this.chart.accumulationTooltipModule&&this.chart.accumulationTooltipModule.removeTooltip(0),this.chart.renderElements()}}else this.chart.accumulationSelectionModule&&!isNaN(l)?this.chart.accumulationSelectionModule.legendSelection(this.chart,0,l,e.target,e.type):this.chart.accumulationHighlightModule&&!isNaN(l)&&this.chart.accumulationHighlightModule.legendSelection(this.chart,0,l,e.target,e.type)}}t.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):t.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1),i.redraw=!1},i.prototype.sliceVisibility=function(e,t){var i=this.chart.element.id+"_Series_0_Point_";this.chart.visibleSeries[0].dataLabel.visible&&(i=this.chart.element.id+"_datalabel_Series_0_",this.sliceAnimate(qt(i+"g_"+e),t))},i.prototype.sliceAnimate=function(e,i){if(!e)return null;new t.Animation({}).animate(e,{duration:300,delay:0,name:i?"FadeIn":"FadeOut",end:function(e){e.element.style.visibility=i?"visible":"hidden"}})},i.prototype.getModuleName=function(){return"AccumulationLegend"},i.prototype.destroy=function(){this.removeEventListener()},i}(To),Oa=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),za=function(e){function i(t){var i=e.call(this,t)||this;return i.rightSideRenderingPoints=[],i.leftSideRenderingPoints=[],i.id=t.element.id+"_datalabel_Series_",i}return Oa(i,e),i.prototype.getDataLabelPosition=function(e,t,i,o){var r=this.isCircular()?this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e):this.accumulation.pieSeriesModule.labelRadius:this.getLabelDistance(e,t);if(this.accumulation.title){var n=(0,R.measureText)(this.accumulation.title,this.accumulation.titleStyle,this.accumulation.themeStyle.datalabelFont);this.titleRect=new R.Rect(this.accumulation.availableSize.width/2-n.width/2,this.accumulation.margin.top,n.width,n.height)}this.getLabelRegion(e,t.position,i,r,this.marginValue),e.labelAngle=e.midAngle,e.labelPosition=t.position,this.accumulation.enableSmartLabels&&this.getSmartLabel(e,t,i,o)},i.prototype.getLabelRegion=function(e,t,i,o,r,n){void 0===n&&(n=0);var a=n||e.midAngle,l=ct(a,o,this.isCircular()?this.center:this.getLabelLocation(e,t));l.y="Inside"===t?l.y-i.height/2:l.y,l.x="Inside"===t?l.x-i.width/2:l.x,e.labelRegion=new R.Rect(l.x,l.y,i.width+2*r,i.height+2*r),"Outside"===t&&(e.labelRegion.y-=e.labelRegion.height/2,a>=90&&a<=270?e.labelRegion.x-=e.labelRegion.width+20:e.labelRegion.x+=20)},i.prototype.calculateLabelCollection=function(e,t){if(null!==e.argsData.template)return null;var i=e.labelPosition||t.position,o=this.isCircular()?this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e):this.accumulation.pieSeriesModule.labelRadius:this.getLabelDistance(e,t),r=this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e):this.accumulation.pieSeriesModule.radius-this.accumulation.pieSeriesModule.innerRadius,n=ct(e.midAngle,o,this.isCircular()?this.center:this.getLabelLocation(e,i)),a=t.maxWidth;a||(a="Outside"===i?this.isCircular()?n.x>=this.center.x?this.areaRect.x+this.areaRect.width-n.x:n.x-this.areaRect.x:n.x>=e.region.x?this.areaRect.x+this.areaRect.width-n.x:n.x-this.areaRect.x:this.isCircular()?r-20:e.region.width),-1!==e.label.indexOf("<br>")?e.labelCollection=e.label.split("<br>"):"Normal"===t.textWrap&&"Ellipsis"===t.textOverflow?e.labelCollection[0]=Fi(a,e.label,e.argsData.font,this.accumulation.enableRtl,this.accumulation.themeStyle.datalabelFont):"Wrap"===t.textWrap||"AnyWhere"===t.textWrap?e.labelCollection=_i(e.label,a,e.argsData.font,this.accumulation.enableRtl,"AnyWhere"===t.textWrap,"Clip"===t.textOverflow,this.accumulation.themeStyle.datalabelFont):e.labelCollection[0]=e.label},i.prototype.getTextSize=function(e,t){for(var i,o=0,r=t.font,n=t.maxWidth?t.maxWidth:0,a=0;a<e.length;a++)i=(0,R.measureText)(e[a],r,this.accumulation.themeStyle.datalabelFont),n=Math.max(i.width,n),o+=i.height;return"Clip"===t.textOverflow&&"Normal"!==t.textWrap&&t.maxWidth&&(n=t.maxWidth),new R.Size(n,o)},i.prototype.getSmartLabel=function(e,t,i,o){var r=this.isCircular(),n=r?this.radius:this.getLabelDistance(e,t);n+=Li(r?t.connectorStyle.length||"4%":"0px",n);var a=this.findPreviousPoint(o,e.index,e.labelPosition);if("Inside"===t.position?(e.labelRegion.height-=4,e.labelRegion.width-=4,(a&&a.labelRegion&&!t.enableRotation&&(di(e.labelRegion,a.labelRegion)||this.isOverlapping(e,o))||!r&&!pi(e.region,e.labelRegion))&&(e.labelPosition="Outside",r||(n=this.getLabelDistance(e,t)),this.calculateLabelCollection(e,t),(i=this.getTextSize(e.labelCollection,t)).height+=4,i.width+=4,e.textSize=i,this.getLabelRegion(e,e.labelPosition,i,n,this.marginValue),(a=this.findPreviousPoint(o,e.index,e.labelPosition))&&(di(e.labelRegion,a.labelRegion)||this.isConnectorLineOverlapping(e,a))&&this.setOuterSmartLabel(a,e,t.border.width,n,i,this.marginValue))):a&&a.labelRegion&&(di(e.labelRegion,a.labelRegion)||this.isOverlapping(e,o)||this.isConnectorLineOverlapping(e,a))&&this.setOuterSmartLabel(a,e,t.border.width,n,i,this.marginValue),this.isOverlapping(e,o)&&("Pyramid"===this.accumulation.type||"Funnel"===this.accumulation.type)){var l=e.midAngle||0,s=r?this.radius:this.getLabelDistance(e,t),h=ct(l,-s,this.isCircular()?this.center:this.getLabelLocation(e,"OutsideLeft"));e.labelRegion=new R.Rect(h.x,h.y,i.width+2*this.marginValue,i.height+2*this.marginValue),e.labelRegion.y-=e.labelRegion.height/2,e.labelRegion.x=e.labelRegion.x-20-e.labelRegion.width,a&&a.labelRegion&&(di(e.labelRegion,a.labelRegion)||this.isOverlapping(e,o)||this.isConnectorLineOverlapping(e,a))&&this.setOuterSmartLabel(a,e,t.border.width,s,i,this.marginValue)}},i.prototype.move=function(e,t,i,o){var r=this;if(e.target.textContent.indexOf("...")>-1){var n=e.target.id.split(this.id);if(2===n.length){var a=parseInt(n[1].split("_text_")[0],10),l=parseInt(n[1].split("_text_")[1],10);if(!isNaN(a)&&!isNaN(l)){o&&Je(this.accumulation.element.id+"_EJ2_Datalabel_Tooltip");var s=va(a,this.accumulation.visibleSeries).points[l];tt(s.text||s.y.toString(),t,i,this.areaRect.width,this.accumulation.element.id+"_EJ2_Datalabel_Tooltip",qt(this.accumulation.element.id+"_Secondary_Element"),null,null,this.accumulation.initialClipRect)}}}else Je(this.accumulation.element.id+"_EJ2_Datalabel_Tooltip");o&&(clearTimeout(this.clearTooltip),this.clearTooltip=+setTimeout(function(){Je(r.accumulation.element.id+"_EJ2_Datalabel_Tooltip")},1e3))},i.prototype.findPreviousPoint=function(e,t,i){for(var o=e[0],r=t-1;r>=0;r--)if((o=e[r]).visible&&o.labelVisible&&o.labelRegion&&o.labelPosition===i)return o;return null},i.prototype.isOverlapping=function(e,t){for(var i=e.index-1;i>=0;i--)if(t[i].visible&&t[i].labelVisible&&t[i].labelRegion&&e.labelRegion&&e.labelVisible&&di(e.labelRegion,t[i].labelRegion))return!0;return!1},i.prototype.textTrimming=function(e,t,i,o,r){if(di(e.labelRegion,t)){var n=e.labelRegion.width;if("Right"===o?n=t.x-e.labelRegion.x:"Left"===o?(n=e.labelRegion.x-(t.x+t.width))<0&&(n+=e.labelRegion.width,e.labelRegion.x=t.x+t.width):"InsideRight"===o?n=t.x+t.width-e.labelRegion.x:"InsideLeft"===o?(n=e.labelRegion.x+e.labelRegion.width-t.x)<e.labelRegion.width&&(e.labelRegion.x=t.x):this.accumulation.enableSmartLabels&&this.setPointVisibileFalse(e),e.labelVisible&&e.labelRegion){-1!==e.label.indexOf("<br>")?e.labelCollection=e.label.split("<br>"):n<e.labelRegion.width&&("Normal"===r.textWrap&&"Ellipsis"===r.textOverflow?e.labelCollection[0]=Fi(n-2*this.marginValue,e.label,i,this.accumulation.enableRtl,this.accumulation.themeStyle.datalabelFont):"Wrap"!==r.textWrap&&"AnyWhere"!==r.textWrap||(e.labelCollection=_i(e.label,n-2*this.marginValue,i,this.accumulation.enableRtl,"AnyWhere"===r.textWrap,"Clip"===r.textOverflow,this.accumulation.themeStyle.datalabelFont)),e.labelRegion.width=n);for(var a=0;a<e.labelCollection.length;a++)if(3===e.labelCollection[a].length&&e.labelCollection[a].indexOf("...")>-1){this.setPointVisibileFalse(e);break}}}},i.prototype.setPointVisibileFalse=function(e){e.labelVisible=!1,e.labelRegion=null},i.prototype.setPointVisibleTrue=function(e){e.labelVisible=!0},i.prototype.setOuterSmartLabel=function(e,t,i,o,r,n){if(this.isCircular()){var a=this.getOverlappedAngle(e.labelRegion,t.labelRegion,t.midAngle,2*i);for(this.getLabelRegion(t,"Outside",r,o,n,a),a>t.endAngle&&(a=t.midAngle),t.labelAngle=a;t.labelVisible&&(di(e.labelRegion,t.labelRegion)||a<=e.labelAngle||a<=.9*t.midAngle||this.isConnectorLineOverlapping(t,e))&&!(a>t.endAngle);)t.labelAngle=a,this.getLabelRegion(t,"Outside",r,o,n,a),a+=.1}else this.setSmartLabelForSegments(t,e)},i.prototype.setSmartLabelForSegments=function(e,t){var i=e.labelRegion,o="Funnel"===this.accumulation.type?t.labelRegion.y-(i.y+i.height):e.labelRegion.y-(t.labelRegion.y+t.labelRegion.height);o<0&&(e.labelRegion.y+="Funnel"===this.accumulation.type?o:-o)},i.prototype.isConnectorLineOverlapping=function(e,t){var i;!this.isCircular()&&e.labelRegion.x<e.region.x&&(i="outsideLeft");var o=this.getLabelLocation(e,i),r=new ji(0,0);this.getEdgeOfLabel(e.labelRegion,e.labelAngle,r,0,e);var n=this.getLabelLocation(t),a=new ji(0,0);return this.getEdgeOfLabel(t.labelRegion,t.labelAngle,a,0,e),this.isLineRectangleIntersect(o,r,e.labelRegion)||this.isLineRectangleIntersect(o,r,t.labelRegion)||this.isLineRectangleIntersect(n,a,e.labelRegion)},i.prototype.isLineRectangleIntersect=function(e,t,i){var o=[new ji(Math.round(i.x),Math.round(i.y)),new ji(Math.round(i.x+i.width),Math.round(i.y)),new ji(Math.round(i.x+i.width),Math.round(i.y+i.height)),new ji(Math.round(i.x),Math.round(i.y+i.height))];e.x=Math.round(e.x),e.y=Math.round(e.y),t.x=Math.round(t.x),t.y=Math.round(t.y);for(var r=0;r<o.length;r++)if(this.isLinesIntersect(e,t,o[r],o[(r+1)%o.length]))return!0;return!1},i.prototype.isLinesIntersect=function(e,t,i,o){var r=t.y-e.y,n=e.x-t.x,a=r*e.x+n*e.y,l=o.y-i.y,s=i.x-o.x,h=l*i.x+s*i.y,c=r*s-l*n;if(0!==c){var d=(s*a-n*h)/c,p=(r*h-l*a)/c,u=Math.min(e.x,t.x)<=d&&d<=Math.max(e.x,t.x);return u=(u=(u=u&&Math.min(e.y,t.y)<=p&&p<=Math.max(e.y,t.y))&&Math.min(i.x,o.x)<=d&&d<=Math.max(i.x,o.x))&&Math.min(i.y,o.y)<=p&&p<=Math.max(i.y,o.y)}return!1},i.prototype.getOverlappedAngle=function(e,t,i,o){var r=e.x;return i>=90&&i<=270?(t.y=e.y-(o+t.height/2),r=e.x+e.width):t.y=e.y+e.height+o,gt(this.center,new ji(r,t.y))},i.prototype.getConnectorPath=function(e,t,i,o){void 0===o&&(o=0);var r=i.connectorStyle,n=this.isCircular()?this.isVariousRadius()?this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],t):this.labelRadius:this.getLabelDistance(t,i),a=this.getConnectorStartPoint(t,r),l=this.accumulation.enableSmartLabels?t.midAngle:o||t.midAngle,s=new ji(0,0),h=this.getEdgeOfLabel(e,l,s,r.width,t);if("Curve"===r.type){if(this.isCircular()){var c=n-(this.isVariousRadius()?Li(t.sliceRadius,this.accumulation.pieSeriesModule.size/2):this.radius);return t.isLabelUpdated?s=this.getPerpendicularDistance(a,t):(s=ct(l,n-c/2,this.center),"Outside"===t.labelPosition&&"Inside"===i.position&&(s=ct(l,n-1.25*c,this.center))),"M "+a.x+" "+a.y+" Q "+s.x+" "+s.y+" "+h.x+" "+h.y}return this.getPolyLinePath(a,h)}return"M "+a.x+" "+a.y+" L "+s.x+" "+s.y+" L "+h.x+" "+h.y},i.prototype.getPolyLinePath=function(e,t){var i=[e,t];if(e.y===t.y)return"M "+e.x+" "+e.y+" L "+t.x+" "+t.y;for(var o="M",r=0;r<=16;r++){var n=r/16,a=this.getBezierPoint(n,i,0,2);o+=a.x+","+a.y,16!==r&&(o+=" L")}return o},i.prototype.getBezierPoint=function(e,t,i,o){if(1===o)return t[i];var r=this.getBezierPoint(e,t,i,o-1),n=this.getBezierPoint(e,t,i+1,o-1),a=(r.x,r.x),l=(r.y,r.y),s=(1-e)*a+e*(n.x,n.x),h=(1-e)*l+e*(n.y,n.y);return r.x,{x:s,y:h}},i.prototype.getEdgeOfLabel=function(e,t,i,o,r){void 0===o&&(o=1);var n=new ji(e.x,e.y);return t>=90&&t<=270?(n.x+=e.width+o/2+10,n.y+=e.height/2,i.x=n.x+10,i.y=n.y):r&&r.region&&r.region.x>r.labelRegion.x?(n.x+=2*o+e.width+10,n.y+=e.height/2,i.x=n.x+10,i.y=n.y):(n.x-=10-o/2,n.y+=e.height/2,i.x=n.x-10,i.y=n.y),n},i.prototype.getLabelDistance=function(e,t){if(e.labelPosition&&t.position!==e.labelPosition||t.connectorStyle.length&&"Outside"===t.position){var i=Li(t.connectorStyle.length||"70px",this.accumulation.initialClipRect.width);if(i<this.accumulation.initialClipRect.width)return i}var o,r=e.labelPosition||t.position,n=this.accumulation.visibleSeries[0],a=(this.accumulation.initialClipRect.width-n.triangleSize.width)/2;switch(r){case"Inside":return 0;case"Outside":return o=e.symbolLocation.x+e.labelOffset.x,this.accumulation.initialClipRect.width-o-a}},i.prototype.getLabelLocation=function(e,t){if(void 0===t&&(t="Outside"),"Pie"!==this.accumulation.type&&"Trapezoidal"!==this.accumulation.series[0].funnelMode){t="OutsideLeft"===t?"OutsideLeft":e.labelPosition||t;var i={x:e.symbolLocation.x,y:e.symbolLocation.y-e.labelOffset.y};switch(t){case"Inside":i.y=e.region.y+e.region.height/2;break;case"Outside":i.x+=e.labelOffset.x;break;case"OutsideLeft":i.x-=e.labelOffset.x}return i}if("Trapezoidal"===this.accumulation.series[0].funnelMode&&"Funnel"===this.accumulation.type){var o={x:e.symbolLocation.x,y:e.symbolLocation.y};return"Outside"===t&&(o.x=e.labelOffset.x),o}return ct(e.midAngle,this.isVariousRadius()?Li(e.sliceRadius,this.accumulation.pieSeriesModule.seriesRadius):this.radius,this.center)},i.prototype.getConnectorStartPoint=function(e,t){var i;return!this.isCircular()&&e.region.x>e.labelRegion.x&&(i="OutsideLeft"),this.isCircular()?ct(e.midAngle,(this.isVariousRadius()?Li(e.sliceRadius,this.accumulation.pieSeriesModule.seriesRadius):this.radius)-t.width,this.center):this.getLabelLocation(e,i)},i.prototype.findAreaRect=function(){this.areaRect=new R.Rect(0,0,this.accumulation.availableSize.width,this.accumulation.availableSize.height);var e=this.accumulation.margin;st(this.areaRect,new Xi(e.left,e.right,e.top,e.bottom))},i.prototype.renderDataLabel=function(e,i,o,r,n,a,l){var s=this.accumulation.element.id+"_datalabel_Series_"+n+"_",h=this.accumulation.renderer.createGroup({id:s+"g_"+e.index}),c={width:i.border.width,color:i.border.color},d=(0,t.extend)({},(0,t.getValue)("properties",i.font),null,!0);e.label=this.getDatalabelText(i.format,this.accumulation,e.originalText||e.y.toString());var p={cancel:!1,name:N,series:this.accumulation.visibleSeries[0],point:e,text:e.label,border:c,color:i.fill,template:this.accumulation.enableHtmlSanitizer?this.accumulation.sanitize(i.template):i.template,font:d};this.accumulation.trigger(N,p),e.argsData=p;var u=null!==p.template;e.labelVisible=!p.cancel,e.text=e.label=p.text,e.labelCollection=[],this.marginValue=p.border.width?5+p.border.width:1;var g=(0,t.createElement)("div",{id:this.accumulation.element.id+"_Series_0_DataLabel_"+e.index,styles:"position: absolute;background-color:"+p.color+";"+ei(i.font,this.accumulation.themeStyle.datalabelFont)+";border:"+p.border.width+"px solid "+p.border.color+";"});this.calculateLabelSize(u,g,e,r,p,h,s,i,l)},i.prototype.getDatalabelText=function(e,t,i){if(Number(i)){var o=null!==e.match("{value}"),r=t.intl.getNumberFormat({format:o?"":e,useGrouping:t.useGroupingSeparator});i=o?e.replace("{value}",r(parseFloat(i))):r(parseFloat(i))}return i},i.prototype.calculateLabelSize=function(e,t,i,o,r,n,a,l,s,h,c){this.calculateLabelCollection(i,l);var d=e?c?{width:h.width,height:h.height}:this.getTemplateSize(t,i,r,s,e,o,n,a,l):this.getTextSize(i.labelCollection,l);d.height+=4,d.width+=4,i.textSize=d,i.templateElement=t,this.getDataLabelPosition(i,l,d,o),i.labelRegion&&this.correctLabelRegion(i.labelRegion,i.textSize)},i.prototype.drawDataLabels=function(e,i,o,r,n){var a,l,s=e.leftSidePoints.concat(e.rightSidePoints);s.sort(function(e,t){return e.index-t.index}),"Pie"===e.type&&this.accumulation.enableSmartLabels&&this.extendedLabelsCalculation();for(var h=0,c=s;h<c.length;h++){var d=c[h];if(!(0,t.isNullOrUndefined)(d.argsData)&&!(0,t.isNullOrUndefined)(d.y)){this.finalizeDatalabels(d,s,i);var p=document.getElementById(this.accumulation.element.id+"_Series_0_Point_"+d.index),u=this.accumulation.element.id+"_datalabel_Series_0_",g=this.accumulation.renderer.createGroup({id:u+"g_"+d.index});g.setAttribute("aria-hidden","true");var m=void 0,y=void 0;if(d.visible&&d.labelVisible){if(a=l=i.angle,d.argsData.template)this.setTemplateStyle(d.templateElement,d,r,i.font.color,d.color,n);else{m=new ji(d.labelRegion.x+this.marginValue,d.labelRegion.y+3*d.textSize.height/(4*d.labelCollection.length)+this.marginValue);var f=(y=qt(u+"shape_"+d.index))?new ji(+y.getAttribute("x"),+y.getAttribute("y")):null,v=d.textSize.width,b="rotate("+(l=i.enableRotation?0===a?"Outside"===d.labelPosition?0:d.midAngle>=90&&d.midAngle<=260?d.midAngle+180:d.midAngle:a>360?a-360:a<-360?a+360:a:0)+","+(m.x+v/2)+","+m.y+")";d.transform=b,ni(!1,g,this.accumulation.renderer.drawRectangle(new Ni(u+"shape_"+d.index,d.argsData.color,d.argsData.border,1,d.labelRegion,i.rx,i.ry,b,e.dataLabel.border.dashArray)),n,!0,"x","y",f,null,!1,!1,null,this.accumulation.duration),Di(this.accumulation.renderer,new R.TextOption(u+"text_"+d.index,m.x,m.y,this.accumulation.enableRtl?"end":"start",d.labelCollection,b,"auto",l),d.argsData.font,d.argsData.font.color||this.getSaturatedColor(d,d.argsData.color),g,!1,n,!0,!1,this.accumulation.duration,null,0,null,null,!0,this.accumulation.themeStyle.datalabelFont),y=null}if(p&&"None"!==this.accumulation.highlightMode){g.setAttribute("class",p.getAttribute("class")?p.getAttribute("class"):"");for(var x=0;x<g.children.length;x++){var S=document.getElementById(g.children[x].id);S&&(g.children[x].style.opacity=S.style.opacity)}}if(this.accumulation.accumulationLegendModule&&this.accumulation.legendSettings.visible&&!this.accumulation.redraw&&("Outside"===i.position||this.accumulation.enableSmartLabels)&&this.accumulation.visibleSeries[0].findMaxBounds(this.accumulation.visibleSeries[0].labelBound,d.labelRegion),"Outside"===d.labelPosition){var C=qt(u+"connector_"+d.index),F=C?C.getAttribute("d"):"";ni(!1,g,this.accumulation.renderer.drawPath(new R.PathOption(u+"connector_"+d.index,"transparent",i.connectorStyle.width,i.connectorStyle.color||d.color,1,i.connectorStyle.dashArray,this.getConnectorPath((0,t.extend)({},d.labelRegion,null,!0),d,i,d.labelAngle))),n,!0,null,null,null,F,!1,!1,null,this.accumulation.duration)}ni(!1,o,g,n)}else qt(g.id)&&qt(g.id).parentNode.removeChild(qt(g.id))}}"Pie"===this.accumulation.type&&"Normal"===i.textWrap&&"Clip"===i.textOverflow&&this.dataLabelClipPath(i,o)},i.prototype.dataLabelClipPath=function(e,t){var i,o=this.accumulation.element.id+"_datalabel_Series_0_",r=this.accumulation.renderer.createClipPath({id:o+"clipPath"}),n=this.accumulation.pieSeriesModule.pieBaseRadius;if("Inside"===e.position)i=this.accumulation.renderer.drawCircle(new Hi(o+"clipPath_rect","transparent",{width:0},0,this.center.x,this.center.y,n));else if(e.maxWidth){var a=this.center.x-n-Li(e.connectorStyle.length||"4%",n)-e.maxWidth,l=this.center.y-n-Li(e.connectorStyle.length||"4%",n)-e.maxWidth,s=2*(n+Li(e.connectorStyle.length||"4%",n)+e.maxWidth),h=s;if(this.accumulation.legendSettings.visible){var c=this.accumulation.accumulationLegendModule;"Left"===c.position?(h=c.legendBounds.x+c.legendBounds.width-a>0?h-(c.legendBounds.width-a):h,a=c.legendBounds.x+c.legendBounds.width<a?a:c.legendBounds.x+c.legendBounds.width):"Right"===c.position&&(h=a+h-c.legendBounds.x>0?h-(a+h-c.legendBounds.x):h)}i=this.accumulation.renderer.drawRectangle(new Ni(o+"clipPath_rect","transparent",{width:0},0,new R.Rect(a,l,s,h),0,0))}("Inside"===e.position||e.maxWidth)&&(r.appendChild(i),ni(!1,this.accumulation.svgObject,r),t.style.cssText="clip-path:url(#"+r.id+")")},i.prototype.finalizeDatalabels=function(e,t,i){if((this.isOverlapping(e,t)||this.titleRect&&e.labelRegion&&di(e.labelRegion,this.titleRect))&&this.isCircular()&&"Outside"===e.labelPosition&&this.accumulation.enableSmartLabels&&this.setPointVisibileFalse(e),this.accumulation.accumulationLegendModule&&this.accumulation.legendSettings.visible&&e.labelVisible&&e.labelRegion&&!i.maxWidth&&("Clip"!==i.textOverflow||"Normal"!==i.textWrap)){var o=this.accumulation.accumulationLegendModule.legendBounds;"Pie"!==this.accumulation.visibleSeries[0].type&&"Left"===this.accumulation.legendSettings.position&&"Outside"===i.position&&(e.labelRegion.x=e.labelRegion.x+o.width);var r=this.accumulation.legendSettings.border.width/2;this.textTrimming(e,new R.Rect(o.x-r,o.y-r,o.width+2*r,o.height+2*r),i.font,this.accumulation.accumulationLegendModule.position,i)}if(e.labelVisible&&e.labelRegion&&!i.maxWidth&&("Clip"!==i.textOverflow||"Normal"!==i.textWrap)){var n=this.isCircular()?e.labelRegion.x>=this.center.x?"InsideRight":"InsideLeft":e.labelRegion.x>=e.region.x?"InsideRight":"InsideLeft";this.textTrimming(e,this.areaRect,i.font,n,i)}e.labelVisible&&e.labelRegion&&!i.maxWidth&&"Clip"!==i.textOverflow&&this.accumulation.enableSmartLabels&&(e.labelRegion.y+e.labelRegion.height/2>this.areaRect.y+this.areaRect.height||e.labelRegion.y<this.areaRect.y||e.labelRegion.x<this.areaRect.x||e.labelRegion.x+e.labelRegion.width>this.areaRect.x+this.areaRect.width)&&this.setPointVisibileFalse(e)},i.prototype.getTemplateSize=function(e,t,i,o,r,n,a,l,s){var h=ti(e=Jt(e,t.index,i.template,this.accumulation,t,this.accumulation.visibleSeries[0],this.accumulation.element.id+"_DataLabel",0,i,r,n,a,l,s,o),o);return{width:h.width,height:h.height}},i.prototype.setTemplateStyle=function(e,t,i,o,r,n){e.style.left=t.labelRegion.x+"px",e.style.top=t.labelRegion.y+"px",e.style.color=o||this.getSaturatedColor(t,"Inside"===t.labelPosition?r:this.getLabelBackground(t)),e.childElementCount&&(ni(!1,i,e,n,!0,"left","top"),this.doTemplateAnimation(this.accumulation,e))},i.prototype.getSaturatedColor=function(e,t){var i,o=yi(fi(i="transparent"===(i=this.marginValue>=1?"transparent"===t?this.getLabelBackground(e):t:this.getLabelBackground(e))?this.accumulation.theme.indexOf("Dark")>-1||this.accumulation.theme.indexOf("HighContrast")>-1?"black":"white":i)),r=Math.round((299*o.r+587*o.g+114*o.b)/1e3);return"Bootstrap5"===this.accumulation.theme?"#212529":"Bootstrap5Dark"===this.accumulation.theme?"#DEE2E6":r>=128?this.accumulation.theme.indexOf("Tailwind3")>-1?"#111827":"black":this.accumulation.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white"},i.prototype.doTemplateAnimation=function(e,i){var o=e.visibleSeries[0],r=o.animation.delay+o.animation.duration;(o.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries&&(i.style.visibility="hidden",Ut(i,r,200,"ZoomIn"))},i.prototype.getLabelBackground=function(e){return"Outside"===e.labelPosition?this.accumulation.background||this.accumulation.themeStyle.background:e.y?e.color:this.accumulation.theme.indexOf("dark")?"white":"black"},i.prototype.correctLabelRegion=function(e,t,i){void 0===i&&(i=4),e.height-=i,e.width-=i,e.x+=i/2,e.y+=i/2,t.height-=i,t.width-=i},i.prototype.getModuleName=function(){return"AccumulationDataLabel"},i.prototype.destroy=function(){},i.prototype.extendedLabelsCalculation=function(){var e=this,t=this.accumulation.series[0];t.rightSidePoints.forEach(function(t,i,o){t.initialLabelRegion=t.labelRegion,t.isLabelUpdated=0,e.skipPoints(t,o,i)}),t.leftSidePoints.forEach(function(t,i,o){t.initialLabelRegion=t.labelRegion,t.isLabelUpdated=0,e.skipPoints(t,o,i)}),this.arrangeLeftSidePoints(t),this.isIncreaseAngle=!1,this.arrangeRightSidePoints(t)},i.prototype.arrangeRightSidePoints=function(e){var t,i,o,r,n=e.rightSidePoints.filter(function(e){return e.labelVisible&&"Outside"===e.labelPosition});this.rightSideRenderingPoints=n;var a,l=n[n.length-1];l&&l.labelAngle>90&&l.labelAngle<270&&(this.isIncreaseAngle=!0,this.changeLabelAngle(l,89));for(var s=n.length-1;s>=0;s--)if(r=n[s],a=n[s+1],this.isOverlapWithNext(r,n,s)&&r.labelVisible||!(r.labelAngle<=90||r.labelAngle>=270))if(o=l.labelAngle+10,i=!0,t?this.isIncreaseAngle=!1:o>90&&o<270&&a.isLabelUpdated&&(this.isIncreaseAngle=!0),this.isIncreaseAngle)for(h=s+1;h>0;h--)this.decreaseAngle(n[h],n[h-1],e,!0);else for(var h=s+1;h<n.length;h++)this.increaseAngle(n[h-1],n[h],e,!0);else i&&a&&!a.isLabelUpdated&&(t=!0)},i.prototype.arrangeLeftSidePoints=function(e){var t,i,o,r,n=this,a=e.leftSidePoints.filter(function(e){return e.labelVisible&&"Outside"===e.labelPosition});this.leftSideRenderingPoints=a;for(var l=0;l<a.length;l++)if(i=a[l],t=a[l-1],this.isOverlapWithPrevious(i,a,l)&&i.labelVisible||!(i.labelAngle<270))if(o=!0,r&&(this.isIncreaseAngle=!1),this.isIncreaseAngle)for(s=l;s<a.length;s++)this.increaseAngle(a[s-1],a[s],e,!1);else for(var s=l;s>0;s--)this.decreaseAngle(a[s],a[s-1],e,!1),a.filter(function(e,t){e.isLabelUpdated&&a[t].labelAngle-10<100&&(n.isIncreaseAngle=!0)});else o&&t&&t.isLabelUpdated&&(r=!0)},i.prototype.decreaseAngle=function(e,i,o,r){if((0,t.isNullOrUndefined)(e)||(0,t.isNullOrUndefined)(i))return null;var n=1;if(r)for(;di(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&!(i.labelRegion.height+i.labelRegion.y<e.labelRegion.y);){if((a=i.midAngle-n)<0&&(a=360+a),a<=270&&a>=90){a=270,this.isIncreaseAngle=!0;break}this.changeLabelAngle(i,a),n++}else for(e.labelAngle>270&&(this.changeLabelAngle(e,270),i.labelAngle=270);di(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&e.labelRegion.y+e.labelRegion.height>i.labelRegion.y;){var a;if(!((a=i.midAngle-n)<=270&&a>=90)){a=90,this.isIncreaseAngle=!0;break}if(this.changeLabelAngle(i,a),di(e.labelRegion,i.labelRegion)&&!o.leftSidePoints.indexOf(i)&&a-1<90&&a-1>270){this.changeLabelAngle(e,e.labelAngle+1),this.arrangeLeftSidePoints(o);break}n++}},i.prototype.increaseAngle=function(e,i,o,r){if((0,t.isNullOrUndefined)(e)||(0,t.isNullOrUndefined)(i))return null;var n=1;if(r)for(;di(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&!(e.labelRegion.y+e.labelRegion.height<i.labelRegion.y);){if((a=i.midAngle+n)<270&&a>90){a=90,this.isIncreaseAngle=!0;break}if(this.changeLabelAngle(i,a),di(e.labelRegion,i.labelRegion)&&a+1>90&&a+1<270&&this.rightSideRenderingPoints.indexOf(i)===this.rightSideRenderingPoints.length-1){this.changeLabelAngle(e,e.labelAngle-1),i.labelRegion=i.initialLabelRegion,this.arrangeRightSidePoints(o);break}if(n>360)break;n++}else for(;di(e.labelRegion,i.labelRegion)||!this.isVariousRadius()&&e.labelRegion.y<i.labelRegion.y+i.labelRegion.height;){var a;if(!((a=i.midAngle+n)<270&&a>90)){a=270,this.isIncreaseAngle=!1;break}if(this.changeLabelAngle(i,a),n>360)break;n++}},i.prototype.changeLabelAngle=function(e,t){var i,o=this.accumulation.series[0].dataLabel;this.isVariousRadius()&&(i=this.accumulation.pieSeriesModule.getLabelRadius(this.accumulation.visibleSeries[0],e));var r="Outside"===e.labelPosition&&this.accumulation.enableSmartLabels&&"Inside"===o.position?this.radius+Li(o.connectorStyle.length||"4%",this.accumulation.pieSeriesModule.size/2):this.isVariousRadius()?i:this.accumulation.pieSeriesModule.labelRadius+10,n=this.isVariousRadius()?i:r;this.getLabelRegion(e,"Outside",e.textSize,n,this.marginValue,t),e.isLabelUpdated=1,e.labelAngle=t},i.prototype.isOverlapWithPrevious=function(e,t,i){for(var o=0;o<i;o++)if(o!==t.indexOf(e)&&t[o].visible&&t[o].labelVisible&&t[o].labelRegion&&e.labelRegion&&e.labelVisible&&di(e.labelRegion,t[o].labelRegion))return!0;return!1},i.prototype.isOverlapWithNext=function(e,t,i){for(var o=i;o<t.length;o++)if(o!==t.indexOf(e)&&t[o].visible&&t[o].labelVisible&&t[o].labelRegion&&e.labelRegion&&e.labelVisible&&di(e.labelRegion,t[o].labelRegion))return!0;return!1},i.prototype.skipPoints=function(e,t,i){if(i>0&&(e.midAngle<285&&e.midAngle>255||e.midAngle<105&&e.midAngle>75)){var o=t[i-1],r=e.endAngle%360-e.startAngle%360;(l=o.endAngle%360-o.startAngle%360)<=r&&r<5&&o.labelVisible&&this.setPointVisibleTrue(e)}else if(i>1&&(e.midAngle<300&&e.midAngle>240||e.midAngle<120&&e.midAngle>60)){var n=t[i-1],a=t[i-2],l=(r=e.endAngle%360-e.startAngle%360,n.endAngle%360-n.startAngle%360),s=a.endAngle%360-a.startAngle%360;r<3&&l<3&&s<3&&n.labelVisible&&e.labelVisible&&this.setPointVisibleTrue(e)}},i.prototype.getPerpendicularDistance=function(e,t){var i=10+10*Math.sin(t.midAngle*Math.PI/360);return t.midAngle>270&&t.midAngle<360?new ji(e.x+i*Math.cos((360-t.midAngle)*Math.PI/180),e.y-i*Math.sin((360-t.midAngle)*Math.PI/180)):t.midAngle>0&&t.midAngle<90?new ji(e.x+i*Math.cos(t.midAngle*Math.PI/180),e.y+i*Math.sin(t.midAngle*Math.PI/180)):t.midAngle>0&&t.midAngle<90?new ji(e.x-i*Math.cos((t.midAngle-90)*Math.PI/180),e.y+i*Math.sin((t.midAngle-90)*Math.PI/180)):new ji(e.x-i*Math.cos((t.midAngle-180)*Math.PI/180),e.y-i*Math.sin((t.midAngle-180)*Math.PI/180))},i}(xa),Ba=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Na=function(e){function i(t){var i=e.call(this,t)||this;return i.accumulation=t,i.addEventListener(),i.template=i.accumulation.tooltip.template,i}return Ba(i,e),i.prototype.addEventListener=function(){this.accumulation.isDestroyed||(this.accumulation.on(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseLeaveHandler,this),this.accumulation.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.accumulation.on(t.Browser.touchEndEvent,this.mouseUpHandler,this))},i.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.accumulation.tooltip.fadeOutDuration)},i.prototype.mouseUpHandler=function(e){var t=this.accumulation;t.tooltip.enable&&t.isTouch&&Pt(t.mouseX,t.mouseY,t.initialClipRect)&&(this.tooltip(e),this.removeTooltip(2e3))},i.prototype.mouseMoveHandler=function(e){var t=this.accumulation;t.tooltip.enable&&Pt(t.mouseX,t.mouseY,t.initialClipRect)&&this.tooltip(e)},i.prototype.tooltip=function(e){this.renderSeriesTooltip(this.accumulation,this.getPieData(e,this.accumulation))},i.prototype.renderSeriesTooltip=function(e,t){var i=this.getElement(this.element.id+"_tooltip_svg"),o=i&&parseInt(i.getAttribute("opacity"),10)>0,r=this.getTooltipElement(o),n=!o;if(this.currentPoints=[],!t.point||this.previousPoints[0]&&this.previousPoints[0].point===t.point)!t.point&&this.isRemove&&(this.removeTooltip(this.accumulation.tooltip.fadeOutDuration),this.isRemove=!1);else{if(this.previousPoints[0]&&t.point.index===this.previousPoints[0].point.index&&t.series.index===this.previousPoints[0].series.index)return null;this.pushData(t,n,r,!1)&&this.triggerTooltipRender(t,n,this.getTooltipText(t,e.tooltip),this.findHeader(t))}},i.prototype.triggerTooltipRender=function(e,i,o,r){var n=this,a=this.chart.tooltip,l={cancel:!1,name:Y,text:o,point:e.point,textStyle:this.textStyle,series:e.series,headerText:r,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,pointIndex:e.point.index,pointText:e.point.text,seriesName:e.series.name}},s=function(o){o.cancel?(n.removeHighlight(),(0,t.remove)(n.getElement(n.element.id+"_tooltip"))):(n.formattedText=n.formattedText.concat(o.text),n.text=n.formattedText,n.headerText=o.headerText,n.createTooltip(n.chart,i,{x:null!==a.location.x?a.location.x:e.point.symbolLocation.x,y:null!==a.location.y?a.location.y:e.point.symbolLocation.y},e.series.clipRect,e.point,a.enableMarker?["Circle"]:[],0,n.chart.initialClipRect,!1,null,e.point,n.template?n.accumulation.enableHtmlSanitizer?n.accumulation.sanitize(n.template):o.template:"")),n.isRemove=!0};s.bind(this,e),this.chart.trigger(Y,l,s)},i.prototype.getPieData=function(e,i){var o=vt(e.target.id,!0);if(!isNaN(o.series)){var r=o.series,n=o.point;if(!((0,t.isNullOrUndefined)(r)||isNaN(r)||(0,t.isNullOrUndefined)(n)||isNaN(n))){var a=this.getSeriesFromIndex(r,i.visibleSeries);if(a.enableTooltip)return new Zi(a.points[n],a)}}return new Zi(null,null)},i.prototype.getSeriesFromIndex=function(e,t){return t[0]},i.prototype.getTooltipText=function(e,t){var i=e.series,o=t.format?t.format:this.accumulation.theme.indexOf("Tailwind3")>-1?"${point.x} : ${point.y}":"${point.x} : <b>${point.y}</b>";return o=this.accumulation.useGroupingSeparator?o.replace("${point.y}","${point.separatorY}"):o,this.parseTemplate(e.point,i,o)},i.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},i.prototype.parseTemplate=function(e,t,i){for(var o,r,n=RegExp,a=0,l=Object.keys(e);a<l.length;a++){o=new n("${point."+(d=l[a])+"}","gm");var s="x"===d&&this.accumulation.useGroupingSeparator&&"number"==typeof e[d]?this.accumulation.intl.formatNumber(e.x,{useGrouping:!0}):e[d];i=i.replace(o.source,s)}for(var h=0,c=Object.keys(Object.getPrototypeOf(t));h<c.length;h++){var d;o=new n("${series."+(d=c[h])+"}","gm"),r=t[d],i=i.replace(o.source,r)}return i},i.prototype.getModuleName=function(){return"AccumulationTooltip"},i.prototype.destroy=function(){},i}(_n),Va=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ha=function(e){function i(t){var i=e.call(this,t)||this;return i.accumulation=t,i.renderer=t.renderer,i.addEventListener(),i}return Va(i,e),i.prototype.addEventListener=function(){this.accumulation.isDestroyed||(this.accumulation.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.accumulation.on("click",this.mouseClick,this))},i.prototype.removeEventListener=function(){this.accumulation.isDestroyed||(this.accumulation.off(t.Browser.touchMoveEvent,this.mouseMove),this.accumulation.off("click",this.mouseClick))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.rectPoints=null},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,this.selectDataIndex(this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes),e)},i.prototype.generateStyle=function(e,t){return e.selectionStyle||this.styleId+"_series_"+e.index+"_point_"+t},i.prototype.findElements=function(e,t,i){return[this.getElementByIndex(i)]},i.prototype.getElementByIndex=function(e){var t=this.control.element.id+"_Series_"+e.series+"_Point_"+e.point;return document.getElementById(t)},i.prototype.isAlreadySelected=function(e,t){if("mousemove"===t?(this.currentMode=this.accumulation.highlightMode,this.highlightDataIndexes=[],this.styleId=this.accumulation.element.id+"_ej2_chart_highlight"):"click"===t&&(this.currentMode=this.accumulation.selectionMode,this.styleId=this.accumulation.element.id+"_ej2_chart_selection"),"None"!==this.accumulation.highlightMode&&"None"===this.accumulation.selectionMode&&"click"===t)return!1;if("None"!==this.accumulation.highlightMode&&this.previousSelectedElement&&this.previousSelectedElement[0]){var i=e.parentNode.id,o=void 0;e.parentNode&&(o=i.indexOf("SeriesGroup")>0||i.indexOf("SymbolGroup")>0);for(var r=0;r<this.previousSelectedElement.length;r++)this.previousSelectedElement[r].hasAttribute("class")&&(this.previousSelectedElement[r].getAttribute("class").indexOf("highlight")>-1&&(o||"click"===t)?(this.previousSelectedElement[r].removeAttribute("class"),this.addOrRemoveIndex(this.highlightDataIndexes,vt(this.previousSelectedElement[r].id))):!o&&this.previousSelectedElement[r].getAttribute("class").indexOf("highlight")>-1&&this.performSelection(vt(this.previousSelectedElement[r].id),this.accumulation,this.previousSelectedElement[r]))}return!0},i.prototype.mouseClick=function(e,t){this.calculateSelectedElements(e,t.target,t.type)},i.prototype.calculateSelectedElements=function(e,i,o){if(!(0,t.isNullOrUndefined)(i)&&("None"!==e.highlightMode||"None"!==e.selectionMode)&&-1!==i.id.indexOf(e.element.id+"_")&&("mousemove"!==o||(0,t.isNullOrUndefined)(i.parentNode)||!i.parentNode.hasAttribute("class")||!(i.parentNode.getAttribute("class").indexOf("highlight")>0||i.parentNode.getAttribute("class").indexOf("selection")>0))&&!(i.getAttribute("id").indexOf("_connector_")>-1)){if(this.isAlreadySelected(i,o),"Point"===this.accumulation.selectionMode&&"mousemove"===o&&this.accumulation.accumulationLegendModule&&this.accumulation.accumulationHighlightModule.highlightDataIndexes&&this.accumulation.accumulationHighlightModule.highlightDataIndexes.length>0&&-1===i.id.indexOf("_chart_legend_")&&-1===i.id.indexOf("_Series_"))for(var r=0;r<this.accumulation.accumulationHighlightModule.previousSelectedElement.length;r++)this.removeStyles(this.accumulation.accumulationHighlightModule.previousSelectedElement,vt(this.accumulation.accumulationHighlightModule.previousSelectedElement[r].id)),this.blurEffect(this.accumulation.element.id,this.accumulation.visibleSeries);(i.id.indexOf("_Series_")>-1||i.id.indexOf("_datalabel_")>-1)&&this.performSelection(vt(i.id),e,i)}},i.prototype.performSelection=function(e,t,i){if(i=i.id.indexOf("datalabel")>-1?t.getSeriesElement().childNodes[e.series].childNodes[e.point]:i,"Point"===this.currentMode)if(!isNaN(e.point)){var o=document.getElementById(t.element.id+"_datalabel_Series_"+e.series+"_g_"+e.point);this.series[0].dataLabel.visible&&o&&(o.setAttribute("class",i&&i.hasAttribute("class")?i.getAttribute("class"):o.hasAttribute("class")?o.getAttribute("class"):""),this.selection(t,e,[o])),this.selection(t,e,[i]),this.selectionComplete(t,t.series[0]),this.blurEffect(t.element.id,t.visibleSeries)}},i.prototype.selectionComplete=function(e,t){for(var i,o=[],r=0;r<this.selectedDataIndexes.length;r++)i=this.selectedDataIndexes[r].point,isNaN(i)||o.push({x:t.dataSource[i][t.xName],y:t.points[i].y,seriesIndex:this.selectedDataIndexes[r].series,pointIndex:i});var n={name:ne,selectedDataValues:o,cancel:!1};e.trigger(ne,n)},i.prototype.selection=function(e,i,o){e.isMultiSelect||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectEelments(e,this.selectedDataIndexes,i,e.series);var r=o[0]&&(o[0].getAttribute("class")||"");if(o[0]&&r.indexOf(this.getSelectionClass(o[0].id,i.point))>-1){if(this.removeStyles(o,i),this.styleId.indexOf("highlight")>0&&"None"!==e.highlightMode?this.addOrRemoveIndex(this.highlightDataIndexes,i):this.addOrRemoveIndex(this.selectedDataIndexes,i),e.enableBorderOnMouseMove&&-1===o[0].id.indexOf("datalabel")){var n=document.getElementById(o[0].id.split("_")[0]+"PointHover_Border");(0,t.isNullOrUndefined)(n)||this.removeSvgClass(n,n.getAttribute("class"))}}else{if(this.previousSelectedElement="None"!==e.highlightMode?o:[],o[0]&&r.indexOf("selection")<0&&this.applyStyles(o,i),e.enableBorderOnMouseMove&&-1===o[0].id.indexOf("datalabel")){n=document.getElementById(o[0].id.split("_")[0]+"PointHover_Border");(0,t.isNullOrUndefined)(n)||(this.removeSvgClass(n,n.getAttribute("class")),this.addSvgClass(n,o[0].getAttribute("class")))}this.styleId.indexOf("highlight")>0&&"None"!==e.highlightMode?this.addOrRemoveIndex(this.highlightDataIndexes,i,!0):this.addOrRemoveIndex(this.selectedDataIndexes,i,!0)}},i.prototype.redrawSelection=function(e){var i=(0,t.extend)([],this.selectedDataIndexes,null,!0),o=(0,t.extend)([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&o.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes),i=o):this.removeSelectedElements(e,this.selectedDataIndexes),this.blurEffect(e.element.id,e.visibleSeries),this.selectDataIndex(i,e)},i.prototype.removeSelectedElements=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];this.removeStyles([this.getElementByIndex(r)],r)}for(var n=e.visibleSeries[0].points,a=0;a<n.length;a++){r=new k(0,n[a].index);this.removeStyles([this.getElementByIndex(r)],r),e.visibleSeries[0].dataLabel.visible&&this.removeStyles([document.getElementById(e.element.id+"_datalabel_Series_0_g_"+n[a].index)],r)}},i.prototype.legendSelection=function(e,t,i,o,r){if("mousemove"===r){if(o.id.indexOf("text")>1&&(o=qt(o.id.replace("text","shape"))),o.hasAttribute("class")&&(o.getAttribute("class").indexOf("highlight")>-1||o.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.accumulation.highlightMode}if(this.isAlreadySelected(o,r)){var n=e.getSeriesElement().childNodes[t].childNodes[i],a=document.getElementById(e.element.id+"_datalabel_Series_"+t+"_g_"+i);this.series[0].dataLabel.visible&&a&&this.selection(e,new k(t,i),[a]),this.selection(e,new k(t,i),[n]),this.blurEffect(e.element.id,e.visibleSeries)}},i.prototype.selectDataIndex=function(e,t){for(var i,o=0,r=e;o<r.length;o++){var n=r[o];(i=this.getElementByIndex(n))&&this.performSelection(n,t,i)}},i.prototype.removeMultiSelectEelments=function(e,t,i,o){for(var r,n=0;n<t.length;n++)r=o[t[n].series],this.checkEquals(t[n],i)||(this.removeStyles(this.findElements(e,r,t[n]),t[n]),r.dataLabel.visible&&this.removeStyles([document.getElementById(e.element.id+"_datalabel_Series_0_g_"+t[n].point)],t[n]),t.splice(n,1),n--)},i.prototype.blurEffect=function(e,t){for(var i=this.checkVisibility(this.highlightDataIndexes)||this.checkVisibility(this.selectedDataIndexes),o=0,r=t;o<r.length;o++){var n=r[o];n.visible&&this.checkSelectionElements(document.getElementById(e+"_SeriesCollection"),this.generateStyle(n),i)}},i.prototype.checkSelectionElements=function(e,t,i){var o=[];e.childNodes[0].childNodes.forEach(function(e){return o.push(e)});var r,n,a,l=document.getElementById(this.control.element.id+"_datalabel_Series_0");l&&l.childNodes.forEach(function(e){return o.push(e)});for(var s=0;s<o.length;s++)n=o[s].getAttribute("class")||"",a=o[s].parentNode.getAttribute("class")||"","None"===this.accumulation.selectionMode&&"None"===this.accumulation.highlightMode||(t=n.indexOf("selection")>0||n.indexOf("highlight")>0?n:t,t=a.indexOf("selection")>0||a.indexOf("highlight")>0?a:t),-1===n.indexOf(t)&&-1===a.indexOf(t)&&i?this.addSvgClass(o[s],this.unselected):this.removeSvgClass(o[s],this.unselected),-1===n.indexOf(t)&&-1===a.indexOf(t)&&i?this.addSvgClass(o[s],this.unselected):(this.removeSvgClass(o[s],this.unselected),this.removeSvgClass(o[s].parentNode,this.unselected)),this.control.accumulationLegendModule&&this.control.legendSettings.visible&&(r=document.getElementById(this.control.element.id+"_chart_legend_shape_"+s))&&(-1===n.indexOf(t)&&-1===a.indexOf(t)&&i?this.addSvgClass(r,this.unselected):this.removeSvgClass(r,this.unselected))},i.prototype.applyStyles=function(e,t){for(var i=this.control.accumulationTooltipModule,o=0,r=e;o<r.length;o++){var n=r[o],a=void 0;if(n){this.control.accumulationLegendModule&&this.control.legendSettings.visible&&(a=document.getElementById(this.control.element.id+"_chart_legend_shape_"+t.point),this.removeSvgClass(a,a.getAttribute("class")),this.addSvgClass(a,this.getSelectionClass(a.id,t.point))),this.removeSvgClass(n.parentNode,this.unselected),this.removeSvgClass(n,this.unselected);var l=i&&i.previousPoints.length>0&&i.previousPoints[0].point.index!==t.point?i.svgTooltip.opacity:this.series[t.series].opacity;n.setAttribute("opacity",l.toString()),this.addSvgClass(n,this.getSelectionClass(n.id,t.point))}}},i.prototype.getSelectionClass=function(e,t){return this.generateStyle(this.control.series[vt(e).series],t)},i.prototype.removeStyles=function(e,t){for(var i,o=this.control.accumulationTooltipModule,r=0,n=e;r<n.length;r++){var a=n[r];if(a){this.control.accumulationLegendModule&&this.control.legendSettings.visible&&(i=document.getElementById(this.control.element.id+"_chart_legend_shape_"+t.point),this.removeSvgClass(i,this.getSelectionClass(i.id,t.point)));var l=o&&o.previousPoints.length>0&&o.previousPoints[0].point.index===t.point?o.svgTooltip.opacity:this.series[t.series].opacity;a.setAttribute("opacity",l.toString()),this.removeSvgClass(a,this.getSelectionClass(a.id,t.point))}}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.checkEquals(e[o],t)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.checkEquals=function(e,t){return e.point===t.point&&e.series===t.series},i.prototype.mouseMove=function(e){var i=this.accumulation,o=e.target;if("None"===i.highlightMode||(0,t.isNullOrUndefined)(o))i.selectionMode;else{if(e.target.id.indexOf("text")>1&&(o=qt(e.target.id.replace("text","shape"))),o.hasAttribute("class")&&o.getAttribute("class").indexOf("highlight")>-1)return;this.calculateSelectedElements(i,e.target,e.type)}},i.prototype.getModuleName=function(){return"AccumulationSelection"},i.prototype.destroy=function(){this.removeEventListener()},i}(kn),Wa=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ja=function(e){function i(t){var i=e.call(this,t)||this;return i.accumulation=t,i.renderer=t.renderer,i.wireEvents(),i}return Wa(i,e),i.prototype.wireEvents=function(){this.accumulation.isDestroyed||this.accumulation.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.accumulation.isDestroyed||this.accumulation.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[]},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"AccumulationHighlight"},i.prototype.destroy=function(){this.unWireEvents()},i}(Ha),Ua=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Xa=function(e){function i(t){var i=e.call(this,t)||this;return i.pie=t,i}return Ua(i,e),i.prototype.renderAnnotations=function(e){var i=this;this.annotations=this.pie.annotations;var o=this.pie.redraw;this.parentElement=Pi(o,this.pie.element.id+"_Annotation_Collections")||(0,t.createElement)("div",{id:this.pie.element.id+"_Annotation_Collections"}),this.annotations.map(function(e,t){i.processAnnotation(e,t,i.parentElement)}),this.pie.series[0].animation.enable&&"Pie"===this.pie.series[0].type&&this.pie.animateSeries&&(this.parentElement.style.visibility="hidden"),ri(this.parentElement,e,o)},i.prototype.getModuleName=function(){return"Annotation"},i.prototype.destroy=function(){},i}(Yn);function Ga(e,t,i){var o=(e-t.min)/t.delta;return i?1-o:o}function Ya(e,t,i,o){return(e=Ga(e,t,o))*i}function Za(e,t,i,o){return(o?1-e/t:e/t)*i.delta+i.min}function qa(e,t,i){var o=[];return e.map(function(e){e.xValue>=t&&e.xValue<=i&&o.push({x:e.x,y:e.y})}),o}function Qa(e,t){return e.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}var $a=function(e,t,i,o,r){void 0===r&&(r=!0),this.x=e,this.y=t,this.xValue=i,this.visible=r},Ka=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ja=function(e){function i(t){var i=e.call(this)||this;return i.dataSource=t.dataSource,i.xName=t.xName,i.yName=t.yName,i.query=t.query,i.xMin=1/0,i.xMax=-1/0,i.yMin=1/0,i.yMax=-1/0,i.labels=[],i.indexLabels={},i}return Ka(i,e),i.prototype.renderChart=function(e){var t,i,o=this;this.seriesLength=0,e.rangeSlider.points=[],e.series.length?e.series.map(function(r){t=r.dataSource||e.dataSource,i=r.query||e.query,r.points=[],o.processDataSource(t,i,e,r)}):this.processDataSource(e.dataSource,e.query,e)},i.prototype.processDataSource=function(e,i,o,r){var n=this;e instanceof ao.DataManager||(0,t.isNullOrUndefined)(e)||!(0,t.isNullOrUndefined)(i)?(o.dataModule=new Fo(e,i),o.dataModule.getData(o.dataModule.generateQuery().requiresCount()).then(function(e){return n.dataManagerSuccess(e,o,r)})):this.dataManagerSuccess({result:e,count:e.length},o,r)},i.prototype.dataManagerSuccess=function(e,t,i){var o=e.count?e.result:[];t.allowServerDataBinding=!1,this.processJsonData(o,t,Object.keys(o).length,i),this.seriesLength+=i?1:this.seriesLength,i&&this.seriesLength!==t.series.length||(this.processXAxis(t),this.calculateGroupingBounds(t),this.processYAxis(t),t.renderChart())},i.prototype.processJsonData=function(e,i,o,r){for(var n,a=0,l=r&&r.xName||i.xName,s=r&&r.yName||i.yName;a<o;){if((n=new $a((0,t.getValue)(l,e[a]),(0,t.getValue)(s,e[a]))).yValue=+n.y,i.valueType.indexOf("DateTime")>-1){var h=i.intl.getDateParser({skeleton:"full",type:"dateTime"}),c=i.intl.getDateFormat({skeleton:"full",type:"dateTime"});n.x=new Date(ao.DataUtil.parse.parseJson({val:n.x}).val),n.xValue=Date.parse(h(c(n.x))),"DateTimeCategory"===i.valueType&&(void 0===this.indexLabels[n.xValue.toString()]&&(this.indexLabels[n.xValue.toString()]=this.labels.length,this.labels.push(n.xValue.toString())),n.xValue=this.indexLabels[n.xValue])}else n.xValue=+n.x;r&&r.points.push(n),this.xMin=Math.min(this.xMin,n.xValue),this.yMin=Math.min(this.yMin,n.yValue),this.xMax=Math.max(this.xMax,n.xValue),this.yMax=Math.max(this.yMax,n.yValue),i.rangeSlider.points.push(n),a++}},i.prototype.processXAxis=function(e){var t={minimum:e.minimum,maximum:e.maximum,interval:e.interval,valueType:e.valueType,isInversed:e.enableRtl,labelFormat:e.labelFormat,logBase:e.logBase,skeleton:e.skeleton,skeletonType:e.skeletonType};this.xAxis=t,this.xAxis.intervalType=e.intervalType,this.xAxis.maximumLabels=3,this.xAxis.skeleton=e.skeleton,this.xAxis.intervalDivs=[10,5,2,1],this.xAxis.rect=e.bounds,this.xAxis.visibleLabels=[],this.xAxis.orientation="Horizontal",this.xAxis.labels=this.labels,this.xAxis.indexLabels=this.indexLabels;var i=e[kt(e.valueType)+"Module"];i.min=this.xMin,i.max=this.xMax,i.getActualRange(this.xAxis,e.bounds),"Double"!==this.xAxis.valueType&&"DateTime"!==this.xAxis.valueType&&"DateTimeCategory"!==this.xAxis.valueType||i.updateActualRange(this.xAxis,this.xAxis.actualRange.min,this.xAxis.actualRange.max,this.xAxis.actualRange.interval),this.xAxis.actualRange.delta=this.xAxis.actualRange.max-this.xAxis.actualRange.min,this.xAxis.visibleRange=this.xAxis.actualRange,i.calculateVisibleLabels(this.xAxis,e),"DateTimeCategory"===this.xAxis.valueType&&e.periodSelectorModule&&(e.periodSelectorModule.isDatetimeCategory=!0,e.periodSelectorModule.sortedData=this.labels.map(function(e){return parseInt(e,10)}))},i.prototype.processYAxis=function(e){this.yAxis={majorGridLines:{width:0},rangePadding:"None",majorTickLines:{width:0},labelStyle:{size:"0"},visible:!1,valueType:"Double",minimum:null,maximum:null,interval:null},this.yAxis.rect=e.bounds,this.yAxis.maximumLabels=3,this.yAxis.intervalDivs=[10,5,2,1],this.yAxis.orientation="Vertical",this.yMin===this.yMax&&(this.yMax+=1,this.yMin-=1),e.doubleModule.min=this.yMin,e.doubleModule.max=this.yMax,e.doubleModule.getActualRange(this.yAxis,e.bounds),e.doubleModule.updateActualRange(this.yAxis,this.yAxis.actualRange.min,this.yAxis.actualRange.max,this.yAxis.actualRange.interval),this.yAxis.actualRange.delta=this.yAxis.actualRange.max-this.yAxis.actualRange.min,this.yAxis.visibleRange=this.yAxis.actualRange},i.prototype.renderSeries=function(e){var i=this;this.chartGroup=e.renderer.createGroup({id:e.element.id+"_chart"});var o=oo(e.theme);e.series.map(function(r,n){if(!e.stockChart||e.stockChart.series[n].visible){if(r.xAxis=i.xAxis,r.yAxis=i.yAxis,r.chart=e,r.index=n,r.xAxis.isInversed=e.enableRtl,r.interior=r.fill||o[n%o.length],i.createSeriesElement(e,r,n),"DateTimeCategory"===r.xAxis.valueType)for(var a=0;a<r.points.length;a++)r.points[a].xValue=i.xAxis.labels.indexOf(Date.parse(r.points[a].x.toString()).toString());e[kt(r.type)+"SeriesModule"]?e[kt(r.type)+"SeriesModule"].render(r,i.xAxis,i.yAxis,!1):e.lineSeriesModule.render(r,i.xAxis,i.yAxis,!1),i.chartGroup.appendChild(r.seriesElement),(r.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries&&e[kt(r.type)+"SeriesModule"]&&e[kt(r.type)+"SeriesModule"].doAnimation(r)}})},i.prototype.appendSeriesElements=function(e){e.svgObject.appendChild(this.chartGroup),e.series.length&&this.drawSeriesBorder(e)},i.prototype.createSeriesElement=function(e,t,i){var o=e.element.id;t.clipRect=new R.Rect(this.xAxis.rect.x,this.yAxis.rect.y,this.xAxis.rect.width,this.yAxis.rect.height),t.clipRectElement=e.renderer.drawClipPath(new Ni(o+"_RangeSeriesClipRect_"+i,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:t.clipRect.width,height:t.clipRect.height})),t.seriesElement=e.renderer.createGroup({id:o+"SeriesGroup"+i,transform:"translate("+t.clipRect.x+","+t.clipRect.y+")","clip-path":"url(#"+o+"_RangeSeriesClipRect_"+i+")"}),t.seriesElement.appendChild(t.clipRectElement)},i.prototype.calculateGroupingBounds=function(e){var t=e.margin.bottom,i=(0,R.measureText)("string",e.labelStyle,e.themeStyle.axisLabelFont).height,o="DateTimeCategory"===e.valueType?parseInt(this.xAxis.labels[this.xMin],10):this.xMin,r="DateTimeCategory"===e.valueType?parseInt(this.xAxis.labels[this.xMax],10):this.xMax;this.calculateDateTimeNiceInterval(this.xAxis,new R.Size(e.bounds.width,e.bounds.height),o,r,!1),!e.enableGrouping||"DateTime"!==e.valueType&&"DateTimeCategory"!==e.valueType||"Years"===this.xAxis.actualIntervalType&&e.series.length||(e.bounds.height-="Outside"===e.labelPosition||0===e.series.length?t+i:i+2*t),e.series.length||(e.bounds.y+=e.bounds.height/4,e.bounds.height=e.bounds.height/2)},i.prototype.drawSeriesBorder=function(e){var t=e.stockChart?"M":"L",i=e.stockChart?"":"Z",o=new R.PathOption(e.element.id+"_SeriesBorder","transparent",e.navigatorBorder.width,e.navigatorBorder.color||(e.theme.indexOf("Dark")>-1?"#49454F":"#DDDDDD"),1,e.navigatorBorder.dashArray,"M "+e.bounds.x+" "+e.bounds.y+" L "+(e.bounds.x+e.bounds.width)+" "+e.bounds.y+t+(e.bounds.x+e.bounds.width)+" "+(e.bounds.y+e.bounds.height)+" L "+e.bounds.x+" "+(e.bounds.y+e.bounds.height)+i),r=e.renderer.drawPath(o);e.svgObject.appendChild(r)},i}(Xo),el=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),tl=function(e){function t(t){var i=e.call(this)||this;return i.firstLevelLabels=[],i.secondLevelLabels=[],i.rangeNavigator=t,i}return el(t,e),t.prototype.renderGridLines=function(){var e=0,t=this.rangeNavigator,i=t.majorGridLines,o=t.majorTickLines,r="",n="",a=t.bounds,l=t.chartSeries.xAxis,s=t.disableRangeSelector?"transparent":null;this.gridLines=t.renderer.createGroup({id:t.element.id+"_GridLines"});var h="Outside"===t.tickPosition||0===t.series.length?a.y+a.height+o.height:a.y+a.height-o.height;if(this.firstLevelLabels=[],l.labelStyle=t.labelStyle,l.skeleton=t.skeleton,l.skeletonType=t.skeletonType,l.isChart=!1,t.valueType.indexOf("DateTime")>-1){var c=this.calculateDateTimeNiceInterval(l,a,l.doubleRange.start,l.doubleRange.end,l.isChart);"DateTime"===t.valueType&&this.findAxisLabels(l,c),this.actualIntervalType=l.actualIntervalType,"DateTimeCategory"!==t.valueType||"Quarter"!==this.actualIntervalType&&"Weeks"!==this.actualIntervalType||this.findSecondaryAxisLabels(l)}this.firstLevelLabels=l.visibleLabels,this.lowerValues=[];for(var d=l.visibleLabels.length,p=0;p<d;p++)this.lowerValues.push(this.firstLevelLabels[p].value),(e=yt(this.firstLevelLabels[p].value,l)*a.width+a.x)>=a.x&&a.x+a.width>=e&&(r=r.concat("M "+e+" "+(t.bounds.y+t.bounds.height)+" L "+e+" "+t.bounds.y+" "),n=n.concat("M "+e+" "+(a.y+a.height)+" L "+e+" "+h+" "));var u=new R.PathOption(t.element.id+"_MajorGridLine","transparent",i.width,t.series.length?s||i.color||t.themeStyle.gridLineColor:"transparent",1,i.dashArray,r);this.gridLines.appendChild(t.renderer.drawPath(u)),u=new R.PathOption(t.element.id+"_MajorTickLine","transparent",o.width,s||o.color||t.themeStyle.gridLineColor,1,i.dashArray,n),this.gridLines.appendChild(t.renderer.drawPath(u))},t.prototype.renderAxisLabels=function(){var e,t=this.rangeNavigator.chartSeries.xAxis,i=this.rangeNavigator,o=i.renderer.createGroup({id:i.element.id+"_AxisLabels"}),r=i.renderer.createGroup({id:i.element.id+"_FirstLevelAxisLabels"}),n=i.renderer.createGroup({id:i.element.id+"_SecondLevelAxisLabels"}),a=t;if(e=this.findLabelY(i,!1),this.placeAxisLabels(t,e,"_AxisLabel_",i,r),a.intervalType=a.actualIntervalType=i.groupBy||this.getSecondaryLabelType(t.actualIntervalType),a.labelFormat="",i.enableGrouping&&i.valueType.indexOf("DateTime")>-1&&"Years"!==this.actualIntervalType){a.visibleRange.interval=1,a.visibleLabels=[];var l=this.calculateDateTimeNiceInterval(a,i.bounds,a.doubleRange.start,a.doubleRange.end,a.isChart);"DateTime"===i.valueType?this.findAxisLabels(a,l):this.findSecondaryAxisLabels(a),this.secondLevelLabels=a.visibleLabels,e=this.findLabelY(i,!0);var s=this.placeAxisLabels(a,e,"_SecondaryLabel_",i,n),h=new R.PathOption(i.element.id+"_SecondaryMajorLines","transparent",i.majorTickLines.width,i.majorTickLines.color||i.themeStyle.gridLineColor,1,i.majorGridLines.dashArray,s);this.gridLines.appendChild(i.renderer.drawPath(h))}i.chartSeries.xAxis.visibleLabels=i.chartSeries.xAxis.visibleLabels.concat(a.visibleLabels),o.style.cursor=t.valueType.indexOf("DateTime")>-1?"cursor: pointer":"cursor: default",o.appendChild(r),o.appendChild(n),i.svgObject.appendChild(this.gridLines),i.svgObject.appendChild(o)},t.prototype.getSecondaryLabelType=function(e){var t=["Years","Quarter","Months","Weeks","Days","Hours","Minutes","Seconds"];return"Years"===e?"Years":t[t.indexOf(e)-1]},t.prototype.findSecondaryAxisLabels=function(e){var t;e.visibleLabels=[],e.visibleRange.interval=Math.max(e.visibleRange.interval,1),this.rangeNavigator.format=this.rangeNavigator.intl.getDateFormat({format:e.labelFormat||"",type:kt(e.skeleton),skeleton:this.getSkeleton(e,null,null)});for(var i=Math.ceil(e.visibleRange.min);i<=e.visibleRange.max;i+=e.visibleRange.interval)if((!this.rangeNavigator.dateTimeCategoryModule.sameInterval(e.labels.map(Number)[i],e.labels.map(Number)[i-e.visibleRange.interval],e.actualIntervalType,i)||e.isIndexed)&&ot(i,e.visibleRange)&&this.rangeNavigator.dateTimeCategoryModule.isMaximum(i,t,e)){var o=new Date(e.labels.map(Number)[i]);if("Quarter"===e.actualIntervalType){var r=Math.floor(o.getMonth()/3);o.setMonth([0,3,6,9][r])}e.visibleLabels.push(new Ge(this.dateFormats(this.rangeNavigator.format(o),e,e.visibleLabels.length),i,this.rangeNavigator.labelStyle,this.rangeNavigator.format(o))),t=i}},t.prototype.findAxisLabels=function(e,t){e.visibleLabels=[];var i,o,r=new Date(e.visibleRange.min);switch(t=this.rangeNavigator.interval?this.rangeNavigator.interval:t,e.actualIntervalType){case"Years":r=new Date(r.getFullYear(),0,1);break;case"Quarter":r=r.getMonth()<=2?new Date(r.getFullYear(),0,1):r.getMonth()<=5?new Date(r.getFullYear(),3,1):r.getMonth()<=8?new Date(r.getFullYear(),6,1):new Date(r.getFullYear(),9,1);break;case"Months":r=new Date(r.getFullYear(),r.getMonth());break;case"Weeks":r=new Date(r.getFullYear(),r.getMonth(),r.getDate()-r.getDay());break;case"Days":r=new Date(r.getFullYear(),r.getMonth(),r.getDate());break;case"Hours":r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours());break;case"Minutes":r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes());break;case"Seconds":r=new Date(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds())}for(i=r.getTime(),this.rangeNavigator.format=this.rangeNavigator.intl.getDateFormat({format:e.labelFormat||"",type:kt(e.skeletonType),skeleton:this.getSkeleton(e,null,null)});i<=e.visibleRange.max;)o=this.dateFormats(this.rangeNavigator.format(new Date(i)),e,e.visibleLabels.length),e.visibleLabels.push(new Ge(o,i,this.rangeNavigator.labelStyle,o)),i=this.increaseDateTimeInterval(e,i,t).getTime()},t.prototype.dateFormats=function(e,t,i){var o=e,r=this.rangeNavigator.enableGrouping&&0===this.firstLevelLabels.length;switch(t.actualIntervalType){case"Quarter":e.indexOf("Jan")>-1?o=r?"Quarter1":e.replace("Jan","Quarter1"):e.indexOf("Apr")>-1?o=r?"Quarter2":e.replace("Apr","Quarter2"):e.indexOf("Jul")>-1?o=r?"Quarter3":e.replace("Jul","Quarter3"):e.indexOf("Oct")>-1&&(o=r?"Quarter4":e.replace("Oct","Quarter4"));break;case"Weeks":o="Week"+ ++i;break;default:o=e}return o},t.prototype.findLabelY=function(e,t){var i,o=e.bounds.y+e.bounds.height,r=e.majorTickLines.height,n=(0,R.measureText)("Quarter1 2011",e.labelStyle,e.themeStyle.axisLabelFont).height,a="Inside"===e.labelPosition?3:8;return i="Outside"===e.labelPosition&&"Outside"===e.tickPosition||0===e.series.length?o+r+a+.75*n:"Inside"===e.labelPosition&&"Inside"===e.tickPosition?o-r-a:"Inside"===e.labelPosition&&"Outside"===e.tickPosition?o-a:o+a+.75*n,t&&(a=15,"Outside"===e.labelPosition||0===e.series.length?i+=a+.75*n:i="Outside"===e.tickPosition||0===e.series.length?o+r+a+.75*n:o+a+.75*n),i},t.prototype.placeAxisLabels=function(e,t,i,o,r){var n,a,l,s,h=e.visibleLabels.length,c=o.bounds,d="",p=o.disableRangeSelector?"transparent":null,u=o.enableRtl?c.x+c.width:c.x,g=e.actualIntervalType,m="Auto"===o.labelPlacement&&"DateTime"===o.valueType||"BetweenTicks"===o.labelPlacement?h>1?e.visibleLabels[1].value-e.visibleLabels[0].value:(e.visibleRange.max-e.visibleLabels[0].value)/2:0;o.valueType.indexOf("DateTime")>-1&&("Quarter"===g||"Weeks"===g)&&this.findSuitableFormat(e,o);for(var y=0,f=h;y<f;y++)if((n=e.visibleLabels[y]).size=(0,R.measureText)(n.text,e.labelStyle,o.themeStyle.axisLabelFont),!("Middle"===o.secondaryLabelAlignment||i.indexOf("_AxisLabel_")>-1)||"Auto"!==o.labelPlacement&&"BetweenTicks"!==o.labelPlacement?i.indexOf("Secondary")>-1&&(l=this.findAlignment(e,y)):l=yt(n.value+m/2,e)*c.width+c.x,"OnTicks"===o.labelPlacement&&"Inside"===o.labelPosition?l=yt(n.value,e)*c.width+c.x+n.size.width/2+2:"OnTicks"===o.labelPlacement&&"Outside"===o.labelPosition&&(l=yt(n.value,e)*c.width+c.x),s=yt(n.value,e)*c.width+c.x,(0===y||y===e.visibleLabels.length-1&&o.enableRtl)&&l<c.x&&(l=c.x+n.size.width/2),(y===e.visibleLabels.length-1||0===y&&o.enableRtl)&&l+n.size.width>c.x+c.width&&(l=c.x+c.width-n.size.width/2),i.indexOf("_SecondaryLabel_")>-1&&l>=c.x&&c.x+c.width>=l&&(d=d.concat("M "+s+" "+t+" L "+s+" "+(t-n.size.height))),"Hide"!==o.labelIntersectAction||0===y||!this.isIntersect(e,l,n.size.width,u,a.size.width)){"Middle"===o.secondaryLabelAlignment&&1===e.visibleLabels.length&&(l=yt(n.value,e)+(c.x+c.width/2));var v=o.labelStyle,b={size:v.size,color:p||v.color||o.themeStyle.axisLabelFont.color,fontFamily:v.fontFamily,fontStyle:v.fontStyle||o.labelStyle.fontStyle,fontWeight:v.fontWeight||o.labelStyle.fontWeight,opacity:v.opacity||o.labelStyle.opacity,textAlignment:v.textAlignment||o.labelStyle.textAlignment,textOverflow:v.textOverflow||o.labelStyle.textOverflow},x={cancel:!1,name:"labelRender",text:n.text,value:n.value,labelStyle:b,region:new R.Rect(l,t,n.size.width,n.size.height)};o.trigger("labelRender",x),x.cancel||(o.labels.push(x),Di(this.rangeNavigator.renderer,new R.TextOption(this.rangeNavigator.element.id+i+y,l,t,"middle",x.text),x.labelStyle,x.labelStyle.color||o.themeStyle.labelFontColor,r,null,null,null,null,null,null,0,null,null,null,o.themeStyle.axisLabelFont).style.cursor=e.valueType.indexOf("DateTime")>-1?"cursor: pointer":"cursor: default",u=l,a=n)}return d},t.prototype.isIntersect=function(e,t,i,o,r){return e.isInversed?t+i/2>o-r/2:t-i/2<o+r/2},t.prototype.findSuitableFormat=function(e,t){for(var i,o,r=e.visibleLabels,n=r.length,a=t.bounds,l="DateTime"===t.valueType?n>1?r[1].value-r[0].value:e.visibleRange.interval:0,s=0;s<n;s++)o=yt(r[s].value+l/2,e)*a.width+a.x,r[s].size=(0,R.measureText)(r[s].text,e.labelStyle,t.themeStyle.axisLabelFont),0===s&&o<a.x&&(o=a.x+r[s].size.width/2),"Quarter"===e.actualIntervalType?0!==s&&(r[s].text.indexOf("Quarter")>-1&&this.isIntersect(e,o,r[s].size.width,i,r[s-1].size.width)?(r.every(function(e){return e.text=e.text.toString().replace("Quarter","QTR"),!0}),e.visibleLabels=r,this.findSuitableFormat(e,t)):this.isIntersect(e,o,r[s].size.width,i,r[s-1].size.width)&&(r.every(function(e){return e.text=e.text.toString().replace("QTR","Q"),!0}),e.visibleLabels=r)):"Weeks"===e.actualIntervalType&&0!==s&&r[s].text.indexOf("Week")>-1&&this.isIntersect(e,o,r[s].size.width,i,r[s-1].size.width)&&(r.every(function(e){return e.text=e.text.toString().replace("Week","W"),!0}),e.visibleLabels=r),i=o},t.prototype.findAlignment=function(e,t){var i=e.visibleLabels[t],o=e.visibleLabels[t+1],r=this.rangeNavigator.bounds;return"Near"===this.rangeNavigator.secondaryLabelAlignment?yt(i.value,e)*r.width+r.x+i.size.width/2:yt(o?o.value:e.visibleRange.max,e)*r.width+r.x-i.size.width},t}(Yo),il=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ol=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},rl=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.clipRect=new R.Rect(0,0,0,0),t}return il(i,e),ol([(0,t.Property)(null)],i.prototype,"dataSource",void 0),ol([(0,t.Property)(null)],i.prototype,"xName",void 0),ol([(0,t.Property)(null)],i.prototype,"yName",void 0),ol([(0,t.Property)()],i.prototype,"query",void 0),ol([(0,t.Property)("Line")],i.prototype,"type",void 0),ol([(0,t.Complex)({enable:!1},y)],i.prototype,"animation",void 0),ol([(0,t.Complex)({color:"transparent",width:2},u)],i.prototype,"border",void 0),ol([(0,t.Property)(null)],i.prototype,"fill",void 0),ol([(0,t.Property)(1)],i.prototype,"width",void 0),ol([(0,t.Property)(1)],i.prototype,"opacity",void 0),ol([(0,t.Property)("0")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),nl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return il(i,e),ol([(0,t.Property)(null)],i.prototype,"width",void 0),ol([(0,t.Property)(null)],i.prototype,"height",void 0),ol([(0,t.Complex)({width:1,color:null},u)],i.prototype,"border",void 0),ol([(0,t.Property)(null)],i.prototype,"fill",void 0),ol([(0,t.Property)("Circle")],i.prototype,"type",void 0),i}(t.ChildProperty),al=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return il(i,e),ol([(0,t.Complex)({},nl)],i.prototype,"thumb",void 0),ol([(0,t.Property)(null)],i.prototype,"selectedRegionColor",void 0),ol([(0,t.Property)(null)],i.prototype,"unselectedRegionColor",void 0),i}(t.ChildProperty),ll=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return il(i,e),ol([(0,t.Property)(!1)],i.prototype,"enable",void 0),ol([(0,t.Property)(null)],i.prototype,"opacity",void 0),ol([(0,t.Property)(null)],i.prototype,"fill",void 0),ol([(0,t.Property)(null)],i.prototype,"format",void 0),ol([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),ol([(0,t.Property)(null)],i.prototype,"template",void 0),ol([(0,t.Complex)({color:null,width:null},u)],i.prototype,"border",void 0),ol([(0,t.Property)("OnDemand")],i.prototype,"displayMode",void 0),i}(t.ChildProperty),sl=function(){function e(e){this.control=e,this.points=[],this.isIOS=t.Browser.isIos||t.Browser.isIos7;var i=e.navigatorStyleSettings.thumb;this.thumbVisible=0!==e.themeStyle.thumbWidth&&0!==e.themeStyle.thumbHeight,this.elementId=e.element.id,this.thumpPadding=e.themeStyle.thumbWidth/2,this.addEventListener(),this.thumbColor=e.disableRangeSelector?"transparent":i.fill||e.themeStyle.thumbBackground}return e.prototype.render=function(e){var t=e.renderer,i=e.navigatorStyleSettings,o=e.disableRangeSelector?"transparent":null,r=t.createGroup({id:this.elementId+"_sliders",style:e.disableRangeSelector?"pointer-events:none;":""}),n=new Ni(this.elementId+"_leftUnSelectedArea",o||i.unselectedRegionColor||e.themeStyle.unselectedRectColor,{width:0},1,{x:e.bounds.x,y:e.bounds.y,width:e.bounds.width/3,height:e.bounds.height},0,0,"",i.thumb.border.dashArray);this.leftUnSelectedElement=t.drawRectangle(n),n.id=this.elementId+"_rightUnSelectedArea",this.rightUnSelectedElement=t.drawRectangle(n),n.id=this.elementId+"_SelectedArea",n.fill=o||i.selectedRegionColor||e.themeStyle.selectedRegionColor,this.selectedElement=t.drawRectangle(n),this.selectedElement.setAttribute("role","region"),this.selectedElement.setAttribute("aria-label","Range Slider with "+e.rangeSlider.points.length+" data points"),this.selectedElement.style.cursor="-webkit-grab",this.leftSlider=t.createGroup({id:this.elementId+"_LeftSlider",style:"cursor: ew-resize"}),this.rightSlider=t.createGroup({id:this.elementId+"_RightSlider",style:"cursor: ew-resize"}),this.createThump(t,e.bounds,this.leftSlider,this.elementId+"_LeftSlider",r),this.createThump(t,e.bounds,this.rightSlider,this.elementId+"_RightSlider"),r.appendChild(this.leftUnSelectedElement),r.appendChild(this.rightUnSelectedElement),r.appendChild(this.selectedElement),r.appendChild(this.leftSlider),r.appendChild(this.rightSlider),e.svgObject.appendChild(r)},e.prototype.createThump=function(e,t,i,o,r){var n,a=this.control,l=a.navigatorStyleSettings.thumb,s=a.themeStyle,h=t.y+t.height/2,c=this.thumpPadding,d=a.themeStyle.thumbHeight/2-5,p=a.disableRangeSelector?"transparent":null,u=p||l.border.color||s.thumpLineColor;i.appendChild(e.drawPath(new R.PathOption(o+"_ThumpLine","transparent",l.border.width,a.series.length?u:"transparent",1,l.border.dashArray,"M "+c+" "+t.y+" L "+c+" "+(t.y+t.height)+" "))),this.thumpY=h-a.themeStyle.thumbHeight/2,this.sliderY=t.y>this.thumpY?this.thumpY:t.y,r&&!a.disableRangeSelector&&((n=e.createDefs()).innerText='<rect xmlns="http://www.w3.org/2000/svg" id="'+this.control.element.id+'_shadow" x="0" y="'+this.thumpY+'" width="'+a.themeStyle.thumbWidth+'" height="'+a.themeStyle.thumbHeight+'" rx="'+("Circle"===l.type?"50%":"0%")+'"/><filter xmlns="http://www.w3.org/2000/svg" x="-25.0%" y="-20.0%" width="150.0%" height="150.0%" filterUnits="objectBoundingBox" id="ej2-range-shadow"><feOffset dx="0" dy="1" in="SourceAlpha"result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation="1.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0   0 0 0 0 0   0 0 0 0 0  0 0 0 0.16 0" type="matrix" in="shadowBlurOuter1"/></filter>',r.appendChild(n)),i.innerText+='<use xmlns="http://www.w3.org/2000/svg" fill="black" fill-opacity="1" filter="url(#ej2-range-shadow)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#path-1"/>',"Circle"===l.type?i.appendChild(Xt({x:c,y:h},"Circle",{width:a.themeStyle.thumbWidth,height:a.themeStyle.thumbHeight},"",new R.PathOption(o+"_ThumpSymbol",p||this.thumbColor,l.border.width,u,1,null))):i.appendChild(e.drawRectangle(new Ni(o+"_ThumpSymbol",p||this.thumbColor,{width:l.border.width,color:u},1,{x:c-a.themeStyle.thumbWidth/2,y:h-a.themeStyle.thumbHeight/2,width:a.themeStyle.thumbWidth,height:a.themeStyle.thumbHeight},2,2,"",l.border.dashArray))),this.thumbVisible&&i.appendChild(e.drawPath(new R.PathOption(o+"_ThumpGrip","transparent",1,p||a.themeStyle.gripColor,1,null,"M "+(c+2)+" "+(h+d)+" L "+(c+2)+" "+(h-d)+" "+(this.control.theme.indexOf("Fluent2")>-1||this.control.theme.indexOf("Bootstrap5")>-1||this.control.theme.indexOf("Tailwind3")>-1?"":"M "+c+" "+(h+d)+" L "+c+" "+(h-d)+" ")+"M "+(c-2)+" "+(h+d)+" L "+(c-2)+" "+(h-d)+" ")))},e.prototype.setSlider=function(e,t,i,o,r){void 0===r&&(r=!1);var n=this.control,a=n.bounds.x,l=n.chartSeries.xAxis.actualRange,s=0===n.series.length;isNaN(e)&&isNaN(t)&&(e=0,t=n.bounds.width),t>=e||(e=[t,t=e][0]),e=t>=e?e:[t,t=e][0],e=Math.max(e,l.min),t=Math.min(t,l.max),this.startX=a+Ya(e,l,n.bounds.width,n.enableRtl),this.endX=a+Ya(t,l,n.bounds.width,n.enableRtl);var h=n.enableRtl?this.endX:this.startX,c=n.enableRtl?this.startX:this.endX;this.sliderWidth=Math.abs(this.endX-this.startX),this.selectedElement.setAttribute("x",h+""),this.selectedElement.setAttribute("width",this.sliderWidth+""),this.leftUnSelectedElement.setAttribute("width",h-a+""),this.rightUnSelectedElement.setAttribute("x",c+""),this.rightUnSelectedElement.setAttribute("width",n.bounds.width-(c-a)+""),this.leftSlider.setAttribute("transform","translate("+(this.startX-this.thumpPadding)+", 0)"),this.rightSlider.setAttribute("transform","translate("+(this.endX-this.thumpPadding)+", 0)");var d=this.control.svgObject.getBoundingClientRect().left-this.control.element.getBoundingClientRect().left,p=this.control.enableRtl?this.endX:this.startX,u=this.control.enableRtl?this.startX:this.endX;this.leftRect={x:s?d+a:a,y:s?0:n.bounds.y,width:s?p-a:p,height:s?this.thumpY:n.bounds.height},this.rightRect={x:s?d+u:u,y:s?0:n.bounds.y,width:n.bounds.width-(c-a),height:s?this.thumpY:n.bounds.height},this.midRect={x:s?p+d:0,y:s?0:n.bounds.y,width:s?Math.abs(this.endX-this.startX):u,height:s?this.thumpY:n.bounds.height},this.currentStart=e,this.currentEnd=t,o&&(this.control.rangeTooltipModule.renderLeftTooltip(this),this.control.rangeTooltipModule.renderRightTooltip(this));var g=this.control.periodSelectorModule;if(g&&this.control.redraw&&"rangeNavigator"===this.control.getModuleName()){var m=g.findSelectedIndex(e,t,g.control.periods);g.setSelectedStyle(m),this.control.redraw=!1}i&&!r&&this.triggerEvent(l)},e.prototype.triggerEvent=function(e){var t=this.control.chartSeries.xAxis,i=t.valueType,o={cancel:!1,start:"DateTime"===i?new Date(this.currentStart):"DateTimeCategory"===i?this.currentStart:"Logarithmic"===i?Math.pow(t.logBase,this.currentStart):this.currentStart,end:"DateTime"===i?new Date(this.currentEnd):"DateTimeCategory"===i?this.currentEnd:"Logarithmic"===i?Math.pow(t.logBase,this.currentEnd):this.currentEnd,name:"changed",selectedData:qa(this.points,this.currentStart,this.currentEnd),zoomPosition:(this.control.enableRtl?e.max-this.currentEnd:this.currentStart-e.min)/e.delta,zoomFactor:(this.currentEnd-this.currentStart)/e.delta,selectedPeriod:this.selectedPeriod?this.selectedPeriod:""};this.control.trigger("changed",o)},e.prototype.addEventListener=function(){this.control.isDestroyed||(this.control.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.control.on(t.Browser.touchStartEvent,this.mouseDownHandler,this),this.control.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),this.control.on(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.control.isDestroyed||(this.control.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.control.off(t.Browser.touchStartEvent,this.mouseDownHandler),this.control.off(t.Browser.touchEndEvent,this.mouseUpHandler),this.control.off(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseCancelHandler))},e.prototype.mouseMoveHandler=function(e){var t,i,o=this.control,r=o.chartSeries.xAxis.actualRange,n=o.bounds;if(this.getCurrentSlider(e.target.id),this.isDrag&&o.mouseX>=n.x){switch(this.currentSlider){case"Left":o.startValue=this.getRangeValue(Math.abs(o.mouseX-n.x));break;case"Right":o.endValue=this.getRangeValue(Math.abs(o.mouseX-n.x));break;case"Middle":t=Math.max(this.getRangeValue(Math.abs(this.startX-(this.previousMoveX-o.mouseX)-n.x)),r.min),i=Math.min(this.getRangeValue(Math.abs(this.endX-(this.previousMoveX-o.mouseX)-n.x)),r.max),Math.floor(Math.abs(Ya(i,r,o.bounds.width,o.enableRtl)-Ya(t,r,o.bounds.width,o.enableRtl)))===Math.floor(this.sliderWidth)?(o.startValue=t,o.endValue=i):(i===r.max&&(o.endValue=r.max),Math.floor(this.startX)===n.x&&(o.startValue=r.min))}if(e.preventDefault&&this.isIOS&&e.preventDefault(),"Middle"!==this.currentSlider){var a=this.control.periodSelectorModule;if(a){var l=a.control.periods;l.map(function(e){e.selected=!1}),a.selectedIndex=void 0;var s=a.findSelectedIndex(o.startValue,o.endValue,l);a.setSelectedStyle(s)}}this.setSlider(o.startValue,o.endValue,!o.enableDeferredUpdate,o.rangeTooltipModule&&o.tooltip.enable),this.previousMoveX=o.mouseX}},e.prototype.getRangeValue=function(e){var t=this.control,i=t.chartSeries.xAxis.actualRange;return Za(e,t.bounds.width,i,t.enableRtl)},e.prototype.mouseDownHandler=function(e){this.currentSlider=this.getCurrentSlider(e.target.id),this.selectedElement.style.cursor="-webkit-grabbing",this.isDrag=!("UnSelectedArea"===this.currentSlider||!this.currentSlider),this.previousMoveX=this.control.mouseDownX},e.prototype.getCurrentSlider=function(e){var t=this.control.themeStyle.thumbHoverColor;return e.indexOf(this.elementId+"_LeftSlider")>-1?(this.leftSlider.childNodes[2].setAttribute("fill",t),"Left"):e.indexOf(this.elementId+"_RightSlider")>-1?(this.rightSlider.childNodes[2].setAttribute("fill",t),"Right"):e.indexOf(this.elementId+"_SelectedArea")>-1?"Middle":e.indexOf("UnSelectedArea")>-1?(this.leftSlider.childNodes[2].setAttribute("fill",this.thumbColor),this.rightSlider.childNodes[2].setAttribute("fill",this.thumbColor),"UnSelectedArea"):e.indexOf(this.elementId+"_AxisLabel_")>-1&&("DateTime"===this.control.valueType||"DateTimeCategory"===this.control.valueType)?(this.labelIndex=+e.substring(e.lastIndexOf("_")+1,e.length),"firstLevelLabels"):e.indexOf(this.elementId+"_SecondaryLabel")>-1&&("DateTime"===this.control.valueType||"DateTimeCategory"===this.control.valueType)?(this.labelIndex=+e.substring(e.lastIndexOf("_")+1,e.length),"secondLevelLabels"):(this.leftSlider.childNodes[2].setAttribute("fill",this.thumbColor),this.rightSlider.childNodes[2].setAttribute("fill",this.thumbColor),this.control.periodSelectorModule&&(this.control.periodSelectorModule.triggerChange=!0),null)},e.prototype.mouseUpHandler=function(){var e=this.control,t=e.chartSeries.xAxis.actualRange,i=e.enableDeferredUpdate,o=e.tooltip.enable;if(e.stockChart&&(e.stockChart.zoomChange=!1),"UnSelectedArea"===this.currentSlider){var r=void 0,n=void 0,a=void 0,l=e.enableRtl,s=e.endValue-e.startValue;e.mouseDownX<this.startX?(r=Math.max(this.getRangeValue(e.mouseDownX-this.sliderWidth/2-e.bounds.x),t.min),a=l?r:r+s,n=l?r-s:r):(r=Math.min(this.getRangeValue(e.mouseDownX+this.sliderWidth/2-e.bounds.x),t.max),n=l?r:r-s,a=l?r+s:r),this.performAnimation(n,a,e),i=!1}else if("firstLevelLabels"===this.currentSlider||"secondLevelLabels"===this.currentSlider){var h=e.rangeAxis[this.currentSlider][this.labelIndex+1];if(this.selectedPeriod){var c=this.control.periodSelectorModule;if(c){var d=c.control.periods;d.map(function(e){e.selected=!1}),c.selectedIndex=void 0;var p=c.findSelectedIndex(e.rangeAxis[this.currentSlider][this.labelIndex].value,h?e.allowIntervalData?h.value-1:h.value:t.max,d);c.setSelectedStyle(p)}}this.performAnimation(e.rangeAxis[this.currentSlider][this.labelIndex].value,h?e.allowIntervalData?h.value-1:h.value:t.max,e),i=!1}else null===this.currentSlider&&(i=!1);this.isDrag&&e.allowSnapping&&(this.setAllowSnapping(e,this.currentStart,this.currentEnd,!0,o),i=!1),i&&this.setSlider(this.currentStart,this.currentEnd,!0,o),null!==this.currentSlider&&this.control.periodSelectorSettings.periods.length>0&&(this.control.periodSelectorModule.triggerChange=!1,this.control.periodSelectorModule.datePicker.startDate=this.control.periodSelectorModule.isDatetimeCategory?new Date(this.control.periodSelectorModule.sortedData[Math.floor(this.currentStart)]):new Date(this.currentStart),this.control.periodSelectorModule.datePicker.endDate=this.control.periodSelectorModule.isDatetimeCategory?new Date(this.control.periodSelectorModule.sortedData[Math.floor(this.currentEnd)]):new Date(this.currentEnd)),this.selectedElement.style.cursor="-webkit-grab",e.startValue=this.currentStart,e.endValue=this.currentEnd,this.isDrag=!1,this.labelIndex=null,this.currentSlider=null},e.prototype.setAllowSnapping=function(e,t,i,o,r){var n=e.rangeAxis.lowerValues;n.push(e.chartSeries.xAxis.actualRange.max),this.setSlider(Qa(n,t),Qa(n,i),o,r),e.startValue=this.currentStart,e.endValue=this.currentEnd},e.prototype.performAnimation=function(e,i,o){var r=this,n=this.currentStart,a=this.currentEnd,l=o.enableDeferredUpdate,s=o.tooltip.enable;new t.Animation({}).animate((0,t.createElement)("div"),{duration:0===this.control.animationDuration&&"Enable"===t.animationMode?1e3:this.control.animationDuration,progress:function(t){r.setSlider(_t(t.timeStamp,0,e-n,t.duration)+n,_t(t.timeStamp,0,i-a,t.duration)+a,!l,s)},end:function(){o.allowSnapping?r.setAllowSnapping(o,e,i,!0,s):r.setSlider(e,i,!0,s),r.control.startValue=r.currentStart,r.control.endValue=r.currentEnd,r.control.periodSelectorSettings.periods.length>0&&(r.control.periodSelectorModule.triggerChange=!1,r.control.periodSelectorModule.datePicker.startDate=r.control.periodSelectorModule.isDatetimeCategory?new Date(r.control.periodSelectorModule.sortedData[Math.floor(r.currentStart)]):new Date(r.currentStart),r.control.periodSelectorModule.datePicker.endDate=r.control.periodSelectorModule.isDatetimeCategory?new Date(r.control.periodSelectorModule.sortedData[Math.floor(r.currentEnd)]):new Date(r.currentEnd))}})},e.prototype.mouseCancelHandler=function(){this.isDrag&&this.control.allowSnapping&&this.setAllowSnapping(this.control,this.currentStart,this.currentEnd,!1,this.control.tooltip.enable),this.isDrag=!1,this.currentSlider=null,this.control.startValue=this.currentStart,this.control.endValue=this.currentEnd},e.prototype.destroy=function(){this.removeEventListener()},e}();function hl(e,i){var o=i.navigatorStyleSettings.thumb,r=(0,t.isNullOrUndefined)(o.width)?t.Browser.isDevice?15:20:o.width,n=(0,t.isNullOrUndefined)(o.height)?t.Browser.isDevice?15:20:o.height,a="HighContrast"===e?"#969696":"#6F6C6C",l="HighContrast"===e?"#4A4848":"#414040",s={gridLineColor:"#E0E0E0",axisLineColor:"#000000",labelFontColor:"#686868",unselectedRectColor:i.series.length?"rgba(255, 255, 255, 0.6)":"#EEEEEE",thumpLineColor:"rgba(189, 189, 189, 1)",thumbBackground:"rgba(250, 250, 250, 1)",gripColor:"#757575",background:"#FFFFFF",thumbHoverColor:"#EEEEEE",selectedRegionColor:i.series.length?"transparent":"#FF4081",tooltipBackground:"Material"===e?"#000816":"Fabric"===e?"#FFFFFF":"#212529",tooltipFontColor:"#dbdbdb",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};switch(e){case"Fabric":s.selectedRegionColor=i.series.length?"transparent":"#007897";break;case"Bootstrap":s.selectedRegionColor=i.series.length?"transparent":"#428BCA";break;case"HighContrastLight":s={gridLineColor:"#bdbdbd",axisLineColor:"#969696",labelFontColor:"#ffffff",unselectedRectColor:i.series.length?"rgba(255, 255, 255, 0.3)":"#EEEEEE",thumpLineColor:"#ffffff",thumbBackground:"#262626",gripColor:"#ffffff",background:"transparent",thumbHoverColor:"#BFBFBF",selectedRegionColor:i.series.length?"transparent":"#FFD939",tooltipBackground:"#ffffff",tooltipFontColor:"#000000",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"HighContrast":s={gridLineColor:l,axisLineColor:a,labelFontColor:"#DADADA",unselectedRectColor:i.series.length?"rgba(43, 43, 43, 0.6)":"#514F4F",thumpLineColor:"#969696",thumbBackground:"#333232",gripColor:"#DADADA",background:"transparent",thumbHoverColor:"#BFBFBF",selectedRegionColor:i.series.length?"rgba(22, 22, 22, 0.6)":"#FFD939",tooltipBackground:"#FFFFFF",tooltipFontColor:"#282727",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":s={labelFontColor:"#DADADA",axisLineColor:" #6F6C6C",gridLineColor:"#414040",tooltipBackground:"FabricDark"===e?"#A19F9D":"BootstrapDark"===e?"#F0F0F0":"#F4F4F4",tooltipFontColor:"#333232",unselectedRectColor:i.series.length?"rgba(43, 43, 43, 0.6)":"#514F4F",thumpLineColor:"#969696",thumbBackground:"#333232",gripColor:"#DADADA",background:"transparent",thumbHoverColor:"#BFBFBF",selectedRegionColor:i.series.length?"rgba(22, 22, 22, 0.6)":"FabricDark"===e?"#007897":"BootstrapDark"===e?"#428BCA":"#FF4081",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#CED4DA",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":s={gridLineColor:"#E0E0E0",axisLineColor:"#CED4DA",labelFontColor:"#212529",unselectedRectColor:i.series.length?"rgba(255, 255, 255, 0.6)":"#514F4F",thumpLineColor:"rgba(189, 189, 189, 1)",thumbBackground:"#FFFFFF",gripColor:"#495057",background:"transparent",thumbHoverColor:"#EEEEEE",selectedRegionColor:i.series.length?"transparent":"#FFD939",tooltipBackground:"#212529",tooltipFontColor:"rgba(255, 255, 255)",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":s={gridLineColor:"#D1D5DB",axisLineColor:"#D1D5DB",labelFontColor:"#4B5563",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#1F2937",thumbBackground:"#FFFFFF",gripColor:"#6B7280",background:"transparent",thumbHoverColor:"#1F2937",selectedRegionColor:i.series.length?"#6B72801A":"#4F46E5",tooltipBackground:"#111827",tooltipFontColor:"#F9FAFB",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":s={gridLineColor:"#374151",axisLineColor:"#374151",labelFontColor:"#D1D5DB",unselectedRectColor:i.series.length?"transparent":"#4B5563",thumpLineColor:"#6B7280",thumbBackground:"#111827",gripColor:"#D1D5DB",background:"transparent",thumbHoverColor:"#E5E7EB",selectedRegionColor:i.series.length?"#6B72801A":"#22D3EE",tooltipBackground:"#F9FAFB",tooltipFontColor:"#1F2937",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":s={gridLineColor:"#E5E7EB",axisLineColor:"#D1D5DB",labelFontColor:"#6B7280",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#9CA3AF",thumbBackground:"#FFFFFF",gripColor:"#6B7280",background:"transparent",thumbHoverColor:"#374151",selectedRegionColor:i.series.length?"rgba(79, 70, 229, 0.3)":"#4F46E5",tooltipBackground:"#111827",tooltipFontColor:"#F9FAFB",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":s={gridLineColor:"#374151",axisLineColor:"#4B5563",labelFontColor:"#9CA3AF",unselectedRectColor:i.series.length?"transparent":"#4B5563",thumpLineColor:"#6B7280",thumbBackground:"#1F2937",gripColor:"#D1D5DB",background:"transparent",thumbHoverColor:"#E5E7EB",selectedRegionColor:i.series.length?"rgba(255, 255, 255, 0.6)":"#22D3EE",tooltipBackground:"#E9ECEF",tooltipFontColor:"#1F2937",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":s={gridLineColor:"#E9ECEF",axisLineColor:"#DEE2E6",labelFontColor:"#21252980",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#CED4DA",thumbBackground:"#FFFFFF",gripColor:"#6E757D",background:"transparent",thumbHoverColor:"#666666",selectedRegionColor:i.series.length?"rgba(52, 58, 64, 0.1)":"#ADB5BD",tooltipBackground:"#000000E5",tooltipFontColor:"#FFFFFF",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#21252980",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5Dark":s={gridLineColor:"#343A40",axisLineColor:"#495057",labelFontColor:"#DEE2E680",unselectedRectColor:i.series.length?"transparent":"#E5E7EB",thumpLineColor:"#6C757D",thumbBackground:"#212529",gripColor:"#ADB5BD",background:"transparent",thumbHoverColor:"#666666",selectedRegionColor:i.series.length?"rgba(173, 181, 189, 0.1)":"#ADB5BD",tooltipBackground:"#FFFFFFE5",tooltipFontColor:"#212529",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent":s={gridLineColor:"#EDEBE9",axisLineColor:"#D2D0CE",labelFontColor:"#3B3A39",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#0078D4",thumbBackground:"#FFFFFF",gripColor:"#0078D4",background:"transparent",thumbHoverColor:"#FFFFFF",selectedRegionColor:i.series.length?"rgba(0, 120, 212, 0.1)":"#ADB5BD",tooltipBackground:"#FFFFFF",tooltipFontColor:"#323130",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":s={gridLineColor:"#414040",axisLineColor:"#3B3A39",labelFontColor:"#C8C6C4",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#797775",thumbBackground:"black",gripColor:"#797775",background:"transparent",thumbHoverColor:"black",selectedRegionColor:i.series.length?"rgba(121, 119, 117, 0.1)":"#797775",tooltipBackground:"#323130",tooltipFontColor:"#F3F2F1",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":s={gridLineColor:"#EDEBE9",axisLineColor:"#D2D0CE",labelFontColor:"#616161",unselectedRectColor:i.series.length?"rgba(250, 250, 250, 0.1)":"#A19F9D",thumpLineColor:"#A19F9D",thumbBackground:"#FAFAFA",gripColor:"#424242",background:"transparent",thumbHoverColor:"#FAFAFA",selectedRegionColor:i.series.length?"rgba(161, 159, 157, 0.4)":"#797775",tooltipBackground:"#FFFFFF",tooltipFontColor:"#242424",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2Dark":s={gridLineColor:"#8A8886",axisLineColor:"#3B3A39",labelFontColor:"#ADADAD",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#8A8886",thumbBackground:"#1F1F1F",gripColor:"#D6D6D6",background:"transparent",thumbHoverColor:"#1F1F1F",selectedRegionColor:i.series.length?"rgba(138, 136, 134, 0.4)":"#797775",tooltipBackground:"#292929",tooltipFontColor:"#FFFFFF",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2HighContrast":s={gridLineColor:"#8A8886",axisLineColor:"#3B3A39",labelFontColor:"#ADADAD",unselectedRectColor:i.series.length?"transparent":"#A19F9D",thumpLineColor:"#8A8886",thumbBackground:"#1F1F1F",gripColor:"#FFFFFF",background:"transparent",thumbHoverColor:"#1F1F1F",selectedRegionColor:i.series.length?"rgba(138, 136, 134, 0.1)":"#797775",tooltipBackground:"#000000",tooltipFontColor:"#FFFFFF",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":s={gridLineColor:"#C4C7C5",axisLineColor:"#C4C7C5",labelFontColor:"#1E192B",unselectedRectColor:i.series.length?"transparent":"#E5E5E5",thumpLineColor:"#49454E",thumbBackground:"#FFFFFF",gripColor:"#49454E",background:"transparent",thumbHoverColor:"#FFFFFF",selectedRegionColor:i.series.length?"rgba(73, 69, 78, 0.1)":"#49454E",tooltipBackground:"#313033",tooltipFontColor:"#F4EFF4",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":s={gridLineColor:"#444746",axisLineColor:"#444746",labelFontColor:"#E6E1E5",unselectedRectColor:i.series.length?"transparent":"#E5E5E5",thumpLineColor:"#CAC4D0",thumbBackground:"#1C1B1F",gripColor:"#CAC4D0",background:"transparent",thumbHoverColor:"#FFFFFF",selectedRegionColor:i.series.length?"rgba(202, 196, 208, 0.1)":"#49454E",tooltipBackground:"#E6E1E5",tooltipFontColor:"#313033",thumbWidth:r,thumbHeight:n,axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;default:s.selectedRegionColor=i.series.length?"transparent":"#FF4081"}return s}var cl=c(215),dl=c(570),pl=function(){function e(e){this.control={},this.isDatetimeCategory=!1,this.sortedData=[],this.startValue=0,this.endValue=0,this.rootControl=e,"stockChart"===this.rootControl.getModuleName()&&(this.sortedData=this.rootControl.sortedData,this.isDatetimeCategory=this.rootControl.isDateTimeCategory)}return e.prototype.setControlValues=function(e){"rangeNavigator"===e.getModuleName()?(this.control.periods=this.rootControl.periodSelectorSettings.periods,this.control.seriesXMax=e.chartSeries.xMax,this.control.seriesXMin=e.chartSeries.xMin,this.control.rangeSlider=e.rangeSlider,this.control.rangeNavigatorControl=e,this.control.endValue=e.endValue,this.control.startValue=e.startValue):(this.control.periods=this.rootControl.periods,this.control.endValue=this.control.seriesXMax=e.seriesXMax,this.control.startValue=this.control.seriesXMin=e.seriesXMin,this.control.rangeNavigatorControl=this.rootControl.rangeNavigator,this.control.rangeNavigatorControl&&(this.control.rangeSlider=this.rootControl.rangeNavigator.rangeSlider)),this.control.element=e.element,this.control.disableRangeSelector=e.disableRangeSelector},e.prototype.appendSelector=function(e,t){void 0===t&&(t=0),this.renderSelectorElement(null,e,t),this.renderSelector()},e.prototype.renderSelectorElement=function(e,i,o){var r,n;this.periodSelectorSize=e?this.periodSelectorSize:new R.Rect(o,this.rootControl.titleSize.height?this.rootControl.titleSize.height:10,i.width,i.height),e?(r=e.themeStyle.thumbWidth,n=e.element):(r=i.thumbSize,n=i.element),qt(n.id+"_Secondary_Element")&&(0,t.remove)(qt(n.id+"_Secondary_Element")),this.periodSelectorDiv=(0,t.createElement)("div",{id:n.id+"_Secondary_Element",styles:"width: "+(this.periodSelectorSize.width-r)+"px;height: "+this.periodSelectorSize.height+"px;top:"+this.periodSelectorSize.y+"px;left:"+(this.periodSelectorSize.x+r/2)+"px; position: absolute"}),n.appendChild(this.periodSelectorDiv)},e.prototype.renderSelector=function(){var e=this;this.setControlValues(this.rootControl);var i,o=!0,r=this.control.element.id,n=(0,t.createElement)("div",{id:r+"_selector"}),a=this.control.periods,l=this.updateCustomElement(),s=r+"customRange";this.periodSelectorDiv.appendChild(n);for(var h=0;h<a.length;h++)l.push({align:"Left",text:a[h].text});"stockChart"===this.rootControl.getModuleName()&&(o=this.rootControl.enableCustomRange),o&&(this.calendarId=r+"_calendar",l.push({template:"<button id="+this.calendarId+"></button>",align:"Right"}));var c={selector:l,name:"RangeSelector",cancel:!1,enableCustomFormat:!0,content:"Date Range"};if("stockChart"===this.rootControl.getModuleName()&&this.rootControl.exportType.length){var d=(0,t.createElement)("button",{id:r+"_export",styles:"text-transform: none; text-overflow: unset",className:"e-dropdown-btn e-btn e-flat"});d.innerText="Export",l.push({template:d,align:"Right"})}this.rootControl.trigger("selectorRender",c),this.toolbar=new cl.Toolbar({items:c.selector,height:this.periodSelectorSize.height,clicked:function(t){e.buttonClick(t,e.control)},created:function(){if(e.nodes=e.toolbar.element.querySelectorAll(".e-toolbar-left")[0],(0,t.isNullOrUndefined)(e.selectedIndex)&&a.map(function(t,o){if(t.selected&&null!==e.selectedPeriod){i=t,e.control.startValue=e.changedRange(t.intervalType,e.control.endValue,t.interval).getTime(),e.isDatetimeCategory&&(e.control.startValue="stockChart"!==e.rootControl.getModuleName()?e.findStartValue(e.control.startValue,e.control.endValue):e.rootControl.startValue),e.control.startValue=t.text&&"all"===t.text.toLowerCase()?e.control.seriesXMin:e.control.startValue,e.control.endValue=t.text&&"all"===t.text.toLowerCase()?e.control.seriesXMax:e.control.endValue,e.selectedIndex=e.nodes.childNodes.length-a.length+o;var r=e.control.rangeSlider;r&&(r.selectedPeriod=t.text)}}),!i&&"stockChart"!==e.rootControl.getModuleName()){var o=e.findSelectedIndex(e.control.startValue,e.control.endValue,a);e.selectedIndex=o||e.selectedIndex}e.setSelectedStyle(e.selectedIndex)}}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(n),this.triggerChange=!0,o&&(this.datePicker=new dl.DateRangePicker({min:this.isDatetimeCategory?new Date(this.sortedData[this.control.seriesXMin]):new Date(this.control.seriesXMin),max:this.isDatetimeCategory?new Date(this.sortedData[this.control.seriesXMax]):new Date(this.control.seriesXMax),format:"dd/MM/yyyy",placeholder:"Select a range",showClearButton:!1,startDate:this.isDatetimeCategory?new Date(this.sortedData[Math.floor(this.control.startValue)]):new Date(this.control.startValue),endDate:this.isDatetimeCategory?new Date(this.sortedData[Math.floor(this.control.endValue)]):new Date(this.control.endValue),created:function(){if(c.enableCustomFormat){for(var i=document.getElementsByClassName("e-date-range-wrapper"),o=void 0,n=0;n<i.length;n++)-1!==i[n].children[0].id.indexOf(r)&&(o=i[n]);o.style.display="none";var a=(0,t.createElement)("div",{id:s,className:"e-control e-btn e-dropdown-btn e-flat",styles:"font-size: 14px; font-weight: 500; text-transform: none "});a.innerText=c.content,o.insertAdjacentElement("afterend",a),qt(s).insertAdjacentElement("afterbegin",(0,t.createElement)("span",{id:r+"dateIcon",className:"e-input-group-icon e-range-icon e-btn-icon e-icons",styles:"font-size: 16px; min-height: 0px; margin: -3px 0 0 0; outline: none; min-width: 30px"})),document.getElementById(s).onclick=function(){e.datePicker.show(qt(s))}}},change:function(t){if(e.triggerChange&&(e.isDatetimeCategory&&(e.startValue=t.startDate.getTime(),e.endValue=t.endDate.getTime(),e.findPeriodValue(e.startValue,e.endValue)),e.control.rangeSlider&&t.event?("stockChart"!==e.rootControl.getModuleName()&&(e.control.rangeNavigatorControl.startValue=e.isDatetimeCategory?e.startValue:t.startDate.getTime(),e.control.rangeNavigatorControl.endValue=e.isDatetimeCategory?e.endValue:t.endDate.getTime(),e.selectedIndex=void 0,e.selectedPeriod=null,e.control.rangeNavigatorControl.refresh()),e.control.rangeSlider.performAnimation(e.isDatetimeCategory?e.startValue:t.startDate.getTime(),e.isDatetimeCategory?e.endValue:t.endDate.getTime(),e.control.rangeNavigatorControl)):t.event&&e.rootControl.rangeChanged(e.isDatetimeCategory?e.startValue:t.startDate.getTime(),e.isDatetimeCategory?e.endValue:t.endDate.getTime()),e.nodes=e.toolbar.element.querySelectorAll(".e-toolbar-left")[0],!e.rootControl.resizeTo&&e.control.rangeSlider&&e.control.rangeSlider.isDrag))for(var i=0,o=e.nodes.childNodes.length;i<o;i++)e.nodes.childNodes[i].childNodes[0].classList.remove("e-active"),e.nodes.childNodes[i].childNodes[0].classList.remove("e-active")}}),this.datePicker.appendTo("#"+this.calendarId))},e.prototype.findPeriodValue=function(e,t){for(var i=0;i<this.sortedData.length;i++)if(this.sortedData[i]>=e){this.startValue=i;break}for(i=this.sortedData.length-1;i>=0;i--)if(this.sortedData[i]<=t){this.endValue=i;break}},e.prototype.findSelectedIndex=function(e,t,i){for(var o,r=(t-e)/864e5,n=0;n<i.length;n++){var a=i[n];"Years"===a.intervalType&&r/365===a.interval?o=n:"Months"!==a.intervalType||r/30!==a.interval&&r/31!==a.interval?("Days"===a.intervalType&&r===a.interval||"Weeks"===a.intervalType&&r/7===a.interval||"Hours"===a.intervalType&&24*r===a.interval||"Seconds"===a.intervalType&&24*r*3600===a.interval)&&(o=n):o=n}return o},e.prototype.updateCustomElement=function(){var e=[],i=this.rootControl.element.id,o="text-transform: none; text-overflow: unset",r="e-dropdown-btn e-btn e-flat";if("stockChart"===this.rootControl.getModuleName()){if(this.rootControl.seriesType.length){var n=(0,t.createElement)("button",{id:i+"_seriesType",styles:o,className:r});n.innerText="Series",e.push({template:n,align:"Left"})}if(this.rootControl.indicatorType.length){var a=(0,t.createElement)("button",{id:i+"_indicatorType",styles:o,className:r});a.innerText="Indicators",e.push({template:a,align:"Left"})}if(this.rootControl.trendlineType.length){var l=(0,t.createElement)("button",{id:i+"_trendType",styles:o,className:r});l.innerText="Trendline",e.push({template:l,align:"Left"})}}return e},e.prototype.setSelectedStyle=function(e){for(var i=0,o=this.nodes.childNodes.length;i<o;i++)this.nodes.childNodes[i].childNodes[0].classList.remove("e-active");(0,t.isNullOrUndefined)(e)||(this.nodes.childNodes[e].childNodes[0].classList.add("e-flat"),this.nodes.childNodes[e].childNodes[0].classList.add("e-active"))},e.prototype.buttonClick=function(e,i){var o,r,n=this,a=e.item,l=this.control.rangeSlider,s=this.control.periods,h=s.filter(function(e){return e.text===a.text});(s.map(function(t,i){t.selected&&"stockChart"!==n.rootControl.getModuleName()&&(t.selected=!1),t.text===e.item.text&&(n.selectedIndex=n.nodes.childNodes.length-s.length+i,"stockChart"!==n.rootControl.getModuleName()&&(t.selected=!0))}),""!==e.item.text&&this.setSelectedStyle(this.selectedIndex),l&&a.text&&(l.selectedPeriod=a.text),"all"===a.text.toLowerCase()?(o=i.seriesXMin,r=i.seriesXMax,l?l.performAnimation(o,r,this.control.rangeNavigatorControl):this.rootControl.rangeChanged(o,r)):"ytd"===a.text.toLowerCase()?l?(o=this.isDatetimeCategory?new Date(new Date(this.sortedData[Math.floor(l.currentEnd)]).getFullYear().toString()).getTime():new Date(new Date(l.currentEnd).getFullYear().toString()).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,l.currentEnd):o,r=l.currentEnd,l.performAnimation(o,r,this.control.rangeNavigatorControl)):(o=this.isDatetimeCategory?new Date(new Date(this.sortedData[Math.floor(this.rootControl.currentEnd)]).getFullYear().toString()).getTime():new Date(new Date(this.rootControl.currentEnd).getFullYear().toString()).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,this.rootControl.currentEnd):o,r=this.rootControl.currentEnd,this.rootControl.rangeChanged(o,r)):""!==a.text.toLowerCase()&&(l?(o=this.changedRange(h[0].intervalType,l.currentEnd,h[0].interval).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,l.currentEnd):o,r=l.currentEnd,l.performAnimation(o,r,this.control.rangeNavigatorControl)):(o=this.changedRange(h[0].intervalType,this.rootControl.currentEnd,h[0].interval).getTime(),o=this.isDatetimeCategory?this.findStartValue(o,this.rootControl.currentEnd):o,r=this.rootControl.currentEnd,this.rootControl.rangeChanged(o,r))),"stockChart"===this.rootControl.getModuleName()&&(this.rootControl.zoomChange=!1),qt(this.calendarId+"_popup")&&!t.Browser.isDevice)&&(qt(this.calendarId+"_popup").querySelectorAll(".e-range-header")[0].style.display="none")},e.prototype.findStartValue=function(e,t){for(var i=Math.floor(t);i>=0;i--)if(this.sortedData[i]<=e)return i+1;return 0},e.prototype.changedRange=function(e,t,i){var o=this.isDatetimeCategory?new Date(this.sortedData[Math.floor(t)]):new Date(t);switch(e){case"Quarter":o.setMonth(o.getMonth()-3*i);break;case"Months":o.setMonth(o.getMonth()-i);break;case"Weeks":o.setDate(o.getDate()-7*i);break;case"Days":o.setDate(o.getDate()-i);break;case"Hours":o.setHours(o.getHours()-i);break;case"Minutes":o.setMinutes(o.getMinutes()-i);break;case"Seconds":o.setSeconds(o.getSeconds()-i);break;default:o.setFullYear(o.getFullYear()-i)}return o},e.prototype.getModuleName=function(){return"PeriodSelector"},e.prototype.destroy=function(){},e}(),ul=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),gl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ml=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.animateSeries=!0,o.chartid=57725,o.redraw=!1,o}return ul(i,e),i.prototype.preRender=function(){if(this.unWireEvents(),this.setCulture(),this.allowServerDataBinding=!1,this.periodSelectorModule&&(this.periodSelectorModule.selectedIndex=null),""===this.element.id){var e=document.getElementsByClassName("e-rangenavigator").length;this.element.id="rangenavigator_"+this.chartid+"_"+e}this.wireEvents()},i.prototype.initPrivateVariables=function(){this.doubleModule=new E,this.labels=[],this.rangeSlider=new sl(this),this.chartSeries=new Ja(this),this.lineSeriesModule=new or,this.rangeAxis=new tl(this)},i.prototype.setCulture=function(){this.intl=new t.Internationalization},i.prototype.setSliderValue=function(){var e="DateTime"===this.valueType,t="DateTimeCategory"===this.valueType,i=this.chartSeries.xAxis.actualRange;this.startValue=this.startValue||t&&0===this.startValue?this.startValue:this.value[0]?e?new Date(this.value[0].toString()).getTime():t?this.getRangeValue(new Date(this.value[0].toString()).getTime(),!0):+this.value[0]:i.min,this.endValue=this.endValue||t&&0===this.endValue?this.endValue:this.value[1]?e?new Date(this.value[1].toString()).getTime():t?this.getRangeValue(new Date(this.value[1].toString()).getTime(),!1):+this.value[1]:i.max},i.prototype.getRangeValue=function(e,t){for(var i=this.chartSeries.xAxis.labels,o=i.length-1;o>=0&&parseInt(i[o],10)>e;)o--;return t?-1!==o?o:this.chartSeries.xAxis.actualRange.min:0===o?this.chartSeries.xAxis.actualRange.max:o},i.prototype.render=function(){var e=this,t={name:"load",rangeNavigator:this,theme:this.theme};this.trigger("load",t,function(){e.setTheme(),e.initPrivateVariables(),e.createRangeSvg(),e.calculateBounds(),e.chartSeries.renderChart(e),Je("chartmeasuretext"),e.renderComplete(),e.allowServerDataBinding=!0}),this.element.setAttribute("tabindex","0"),this.element.style.outline="none",this.element.setAttribute("role","region"),this.element.setAttribute("aria-label","Range navigator Syncfusion interactive chart.")},i.prototype.setTheme=function(){this.themeStyle=hl(this.theme,this)},i.prototype.createRangeSvg=function(){this.removeSvg(),Ri(this),this.renderChartBackground()},i.prototype.calculateBounds=function(){var e=this.enableGrouping?15:8,t=this.navigatorStyleSettings.thumb,i=(0,R.measureText)("tempString",this.labelStyle,this.themeStyle.axisLabelFont).height,o=this.margin,r=!this.series.length,n=!this.disableRangeSelector&&r&&this.tooltip.enable?35:0;this.periodSelectorModule||!this.periodSelectorSettings.periods.length||this.stockChart||(this.periodSelectorModule=new pl(this));var a=this.periodSelectorModule;this.periodSelectorModule&&this.periodSelectorSettings.periods.length>0&&(a.periodSelectorSize={x:0,y:0,height:0,width:0},a.periodSelectorSize.width=this.availableSize.width,a.periodSelectorSize.height=this.periodSelectorSettings.height,a.periodSelectorSize.y="Bottom"===this.periodSelectorSettings.position?this.availableSize.height-a.periodSelectorSize.height:0);var l="Top"===this.periodSelectorSettings.position&&a?a.periodSelectorSize.y+a.periodSelectorSize.height:0,s=0,h=0;this.stockChart&&this.stockChart.stockLegendModule&&this.stockChart.legendSettings.visible&&("Left"===this.stockChart.legendSettings.position?s+=this.stockChart.stockLegendModule.legendBounds.width:"Top"===this.stockChart.legendSettings.position&&(h+=this.stockChart.stockLegendModule.legendBounds.height)),this.bounds=new R.Rect(this.themeStyle.thumbWidth/2+t.border.width+o.left+s,o.top+n+l+h,this.availableSize.width-this.themeStyle.thumbWidth-2*t.border.width-o.left-o.right,this.availableSize.height-o.top-o.bottom-n-(a?a.periodSelectorSize.height:0));var c=("Outside"===this.labelPosition||r?i+e:0)+("Outside"===this.tickPosition||r?this.majorTickLines.height:0);if(this.bounds.height-=c,r){var d=this.enableGrouping?this.bounds.height-(i+e):this.bounds.height;this.bounds.y+=this.themeStyle.thumbHeight>d?(this.themeStyle.thumbHeight-d)/2:0}this.disableRangeSelector&&(this.bounds.y=0,this.bounds.height=this.periodSelectorSettings.periods.length>0?this.periodSelectorSettings.height:0)},i.prototype.renderChart=function(e){void 0===e&&(e=!1),this.chartSeries.renderSeries(this),this.chartSeries.appendSeriesElements(this),this.rangeAxis.renderGridLines(),this.rangeAxis.renderAxisLabels(),this.createSecondaryElement(),this.setSliderValue(),this.renderPeriodSelector(),this.renderSlider(e),this.stockChart||this.element.appendChild(this.svgObject),this.trigger("loaded",{rangeNavigator:this}),this.rangeSlider.setSlider(this.startValue,this.endValue,!1,this.tooltip.enable&&"Always"===this.tooltip.displayMode,e)},i.prototype.renderPeriodSelector=function(){this.periodSelectorModule&&(this.periodSelectorModule.renderSelectorElement(this),this.periodSelectorModule.renderSelector())},i.prototype.createSecondaryElement=function(){if(this.tooltip.enable){var e=this.createElement("div");e.id=this.element.id+"_Secondary_Element",e.style.position="relative",this.element.appendChild(e)}},i.prototype.renderSlider=function(e){this.rangeSlider.render(this),this.periodSelectorModule&&(this.startValue=this.periodSelectorModule.control.startValue,this.endValue=this.periodSelectorModule.control.endValue),this.rangeSlider.setSlider(this.startValue,this.endValue,!0,this.tooltip.enable&&"Always"===this.tooltip.displayMode,e)},i.prototype.removeSvg=function(){qt(this.element.id+"_Secondary_Element")&&((0,t.remove)(qt(this.element.id+"_Secondary_Element")),this.isReact&&this.clearTemplate());if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);this.svgObject.hasChildNodes()||!this.svgObject.parentNode||this.stockChart||(0,t.remove)(this.svgObject)}},i.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.rangeOnMouseDown),t.EventHandler.remove(this.element,i,this.mouseMove),t.EventHandler.remove(this.element,o,this.mouseEnd),t.EventHandler.remove(this.element,"click",this.rangeOnMouseClick),t.EventHandler.remove(this.element,r,this.mouseLeave),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.rangeResize)},i.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.rangeOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"click",this.rangeOnMouseClick,this),t.EventHandler.add(this.element,e,this.mouseLeave,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.rangeResize.bind(this));var i=this.element;i.style.touchAction="none",i.style.msTouchAction="none",i.style.msContentZooming="none",i.style.msUserSelect="none",i.style.webkitUserSelect="none",i.style.position="relative",i.style.display="block"},i.prototype.rangeResize=function(){var e=this;if(!document.getElementById(this.element.id)||!this.svgObject)return!1;this.animateSeries=!1,this.removeAllTooltip();var t={name:"beforeResize",cancelResizedEvent:!1};this.resizeTo&&clearTimeout(this.resizeTo);var i={rangeNavigator:this,name:"resized",currentSize:new R.Size(0,0),previousSize:new R.Size(this.availableSize.width,this.availableSize.height)};return this.trigger(le,t),t.cancelResizedEvent||(this.resizeTo=+setTimeout(function(){e.isDestroyed?clearTimeout(e.resizeTo):(e.createRangeSvg(),i.currentSize=e.availableSize,e.trigger("resized",i),e.calculateBounds(),e.chartSeries.processXAxis(e),e.chartSeries.calculateGroupingBounds(e),e.chartSeries.processYAxis(e),e.renderChart(!0))},500)),!1},i.prototype.removeAllTooltip=function(){this.tooltip.enable&&"Always"===this.tooltip.displayMode&&(qt(this.element.id+"_leftTooltip")&&(0,t.remove)(qt(this.element.id+"_leftTooltip")),qt(this.element.id+"_rightTooltip")&&(0,t.remove)(qt(this.element.id+"_rightTooltip")))},i.prototype.mouseMove=function(e){return this.stockChart||qt(this.stockChart?this.element.id:this.element.id+"_svg")&&(this.mouseX=this.setMouseX(e),this.notify(t.Browser.touchMoveEvent,e)),!1},i.prototype.mouseLeave=function(e){var i=this.rangeSlider;if(i.isDrag){if(this.stockChart)return!1;var o=i.control.tooltip.enable;i.control.allowSnapping&&(i.isDrag=!1,i.setAllowSnapping(i.control,i.currentStart,i.currentEnd,!1,o)),i.triggerEvent(this.chartSeries.xAxis.actualRange)}var r=t.Browser.isPointer?"pointerleave":"mouseleave";return this.mouseX=this.setMouseX(e),this.notify(r,e),!1},i.prototype.rangeOnMouseClick=function(e){return this.notify("click",e),!1},i.prototype.print=function(e){new zo(this).print(e)},i.prototype.export=function(e,t,i,o,r,n,a){o=o||[this],new sa(this).export(e,t,i,o,r,n,a)},i.prototype.renderChartBackground=function(){var e=0,t=0;this.stockChart&&this.stockChart.legendSettings.visible&&this.stockChart.stockLegendModule&&("Top"===this.stockChart.legendSettings.position?e+=this.stockChart.stockLegendModule.legendBounds.height:"Left"===this.stockChart.legendSettings.position&&(t+=this.stockChart.stockLegendModule.legendBounds.width));var i=new Ni(this.element.id+"_ChartBorder",this.background||this.themeStyle.background,{width:0,color:"transparent"},1,new R.Rect(t,e,this.availableSize.width,this.availableSize.height));this.svgObject.appendChild(this.renderer.drawRectangle(i))},i.prototype.rangeOnMouseDown=function(e){return this.mouseDownX=this.setMouseX(e),this.notify(t.Browser.touchStartEvent,e),!1},i.prototype.mouseEnd=function(e){return this.mouseX=this.setMouseX(e),this.notify(t.Browser.touchEndEvent,e),!1},i.prototype.setMouseX=function(e){var t=e.type.indexOf("touch")>-1?e.changedTouches[0].clientX:e.clientX,i=this.element.getBoundingClientRect(),o=this.stockChart?qt(this.element.id).getBoundingClientRect():qt(this.element.id+"_svg").getBoundingClientRect();return t-i.left-Math.max(o.left-i.left,0)},i.prototype.getPersistData=function(){return this.addOnPersist(["loaded"])},i.prototype.onPropertyChanged=function(t){var i=!1,o=!1,r=!1;this.animateSeries=!1;for(var n=0,a=Object.keys(t);n<a.length;n++){switch(a[n]){case"width":case"height":case"navigatorBorder":case"enableGrouping":case"labelPosition":case"tickPosition":case"labelStyle":o=!0;break;case"enableRtl":case"xName":case"yName":case"query":case"minimum":case"maximum":case"interval":case"intervalType":case"logBase":case"valueType":case"majorGridLines":case"minorGridLines":case"navigatorStyleSettings":case"labelFormat":case"skeleton":case"skeletonType":case"secondaryLabelAlignment":case"background":i=!0;break;case"dataSource":case"series":i=!0,o=!0;break;case"theme":this.animateSeries=!0;break;case"locale":e.prototype.refresh.call(this);break;case"value":this.startValue=null,this.endValue=null,r=!0,this.redraw=!0}}!o&&i&&(this.removeSvg(),this.chartSeries.xMin=1/0,this.chartSeries.xMax=-1/0,this.chartSeries.renderChart(this)),o&&i&&(this.removeSvg(),this.chartSeries.xMin=this.chartSeries.yMin=1/0,this.chartSeries.xMax=this.chartSeries.yMax=-1/0,this.calculateBounds(),this.chartSeries.renderChart(this)),o&&!i&&(this.removeSvg(),this.calculateBounds(),this.chartSeries.renderChart(this)),o||i||!r||(this.setSliderValue(),this.rangeSlider.setSlider(this.startValue,this.endValue,!0,this.tooltip.enable&&"Always"===this.tooltip.displayMode))},i.prototype.requiredModules=function(){var e=this,t=[];return this.series.map(function(i){"Area"!==i.type&&"StepLine"!==i.type||t.push({member:i.type+"Series",args:[e]})}),this.periodSelectorSettings.periods.length>0&&t.push({member:"PeriodSelector",args:[this]}),"Double"!==this.valueType&&t.push({member:this.valueType,args:[this]}),this.tooltip.enable&&t.push({member:"RangeTooltip",args:[this]}),t},i.prototype.getModuleName=function(){return"rangeNavigator"},i.prototype.destroy=function(){this.unWireEvents(),this.isReact&&this.clearTemplate(),this.rangeSlider.destroy(),e.prototype.destroy.call(this),this.element.innerText="",this.element.classList.remove("e-rangenavigator")},gl([(0,t.Property)(null)],i.prototype,"width",void 0),gl([(0,t.Property)(null)],i.prototype,"height",void 0),gl([(0,t.Property)(null)],i.prototype,"dataSource",void 0),gl([(0,t.Property)(null)],i.prototype,"xName",void 0),gl([(0,t.Property)(null)],i.prototype,"yName",void 0),gl([(0,t.Property)()],i.prototype,"query",void 0),gl([(0,t.Collection)([],rl)],i.prototype,"series",void 0),gl([(0,t.Complex)({},ll)],i.prototype,"tooltip",void 0),gl([(0,t.Property)(null)],i.prototype,"minimum",void 0),gl([(0,t.Property)(null)],i.prototype,"maximum",void 0),gl([(0,t.Property)(null)],i.prototype,"interval",void 0),gl([(0,t.Property)("Auto")],i.prototype,"intervalType",void 0),gl([(0,t.Property)("Hide")],i.prototype,"labelIntersectAction",void 0),gl([(0,t.Property)(10)],i.prototype,"logBase",void 0),gl([(0,t.Property)("Double")],i.prototype,"valueType",void 0),gl([(0,t.Property)("Outside")],i.prototype,"labelPosition",void 0),gl([(0,t.Property)("Auto")],i.prototype,"labelPlacement",void 0),gl([(0,t.Property)(500)],i.prototype,"animationDuration",void 0),gl([(0,t.Property)(!1)],i.prototype,"enableGrouping",void 0),gl([(0,t.Property)(!1)],i.prototype,"enableDeferredUpdate",void 0),gl([(0,t.Property)(!1)],i.prototype,"disableRangeSelector",void 0),gl([(0,t.Property)(!1)],i.prototype,"allowSnapping",void 0),gl([(0,t.Property)(!1)],i.prototype,"allowIntervalData",void 0),gl([(0,t.Property)(!1)],i.prototype,"useGroupingSeparator",void 0),gl([(0,t.Property)()],i.prototype,"groupBy",void 0),gl([(0,t.Property)("Outside")],i.prototype,"tickPosition",void 0),gl([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"labelStyle",void 0),gl([(0,t.Complex)({},Ne)],i.prototype,"majorGridLines",void 0),gl([(0,t.Complex)({},We)],i.prototype,"majorTickLines",void 0),gl([(0,t.Complex)({},al)],i.prototype,"navigatorStyleSettings",void 0),gl([(0,t.Complex)({},M)],i.prototype,"periodSelectorSettings",void 0),gl([(0,t.Complex)({color:null,width:1},u)],i.prototype,"navigatorBorder",void 0),gl([(0,t.Property)("Material")],i.prototype,"theme",void 0),gl([(0,t.Property)([])],i.prototype,"value",void 0),gl([(0,t.Property)(null)],i.prototype,"background",void 0),gl([(0,t.Property)("")],i.prototype,"labelFormat",void 0),gl([(0,t.Property)("")],i.prototype,"skeleton",void 0),gl([(0,t.Property)("DateTime")],i.prototype,"skeletonType",void 0),gl([(0,t.Property)("Middle")],i.prototype,"secondaryLabelAlignment",void 0),gl([(0,t.Complex)({top:5,bottom:5,right:5,left:5},m)],i.prototype,"margin",void 0),gl([(0,t.Event)()],i.prototype,"load",void 0),gl([(0,t.Event)()],i.prototype,"loaded",void 0),gl([(0,t.Event)()],i.prototype,"resized",void 0),gl([(0,t.Event)()],i.prototype,"beforeResize",void 0),gl([(0,t.Event)()],i.prototype,"labelRender",void 0),gl([(0,t.Event)()],i.prototype,"changed",void 0),gl([(0,t.Event)()],i.prototype,"tooltipRender",void 0),gl([(0,t.Event)()],i.prototype,"selectorRender",void 0),gl([(0,t.Event)()],i.prototype,"beforePrint",void 0),i=gl([t.NotifyPropertyChanges],i)}(t.Component),yl=function(){function e(e){this.stockChart=e}return e.prototype.initializeChart=function(e){var i=this,o=this.stockChart,r="isProtectedOnChange",n=null,a=null;if(o[r]=!0,o.chartObject){for(var l=document.getElementById(o.chartObject.id);l.firstChild;)l.removeChild(l.firstChild);qt(o.chartObject+"_tooltip")&&(0,t.remove)(qt(o.chartObject+"_tooltip"))}else o.chartObject=o.renderer.createGroup({id:o.element.id+"_stockChart_chart"}),o.mainObject.appendChild(o.chartObject);if(this.stockChart.isDateTimeCategory="DateTimeCategory"===this.stockChart.primaryXAxis.valueType,this.stockChart.isDateTimeCategory&&!this.stockChart.sortedData.length){for(var s=0,h=this.stockChart.series;s<h.length;s++)for(var c=h[s],d=c.dataSource,p=c.xName,u=0,g=d;u<g.length;u++){var m=g[u],y=Date.parse(new Date(ao.DataUtil.parse.parseJson({val:m[p]}).val).toString());-1===this.stockChart.sortedData.indexOf(y)&&this.stockChart.sortedData.push(y)}this.stockChart.sortedData.sort(function(e,t){return e-t})}if(this.cartesianChartSize=this.calculateChartSize(),o.chart=new jo({chartArea:o.chartArea,margin:this.findMargin(o),primaryXAxis:this.copyObject(o.primaryXAxis),primaryYAxis:this.copyObject(o.primaryYAxis),rows:o.rows,indicators:o.indicators,axes:o.axes,tooltipRender:function(e){i.stockChart.trigger("tooltipRender",e)},axisLabelRender:function(e){i.stockChart.trigger("axisLabelRender",e)},seriesRender:function(t){n=null!=i.stockChart.startValue&&i.stockChart.isDateTimeCategory?i.stockChart.sortedData[Math.floor(i.stockChart.startValue)]:i.stockChart.startValue,a=null!=i.stockChart.endValue&&i.stockChart.isDateTimeCategory?i.stockChart.sortedData[Math.floor(i.stockChart.endValue)]:i.stockChart.endValue,t.data&&n&&a&&(t.data=t.data.filter(function(e){return new Date(ao.DataUtil.parse.parseJson({val:e[t.series.xName]}).val).getTime()>=n&&new Date(ao.DataUtil.parse.parseJson({val:e[t.series.xName]}).val).getTime()<=a})),t.data=e||t.data,i.stockChart.trigger("seriesRender",t)},onZooming:function(e){i.stockChart.trigger(Fe,e)},pointClick:function(e){i.stockChart.trigger("pointClick",e)},pointMove:function(e){i.stockChart.trigger("pointMove",e)},dataSource:o.dataSource,series:this.findSeriesCollection(o.series),zoomSettings:this.copyObject(o.zoomSettings),tooltip:o.tooltip,crosshair:o.crosshair,height:this.cartesianChartSize.height.toString(),selectedDataIndexes:o.selectedDataIndexes,selectionMode:o.selectionMode,isMultiSelect:o.isMultiSelect,annotations:o.annotations,theme:o.theme,legendSettings:{visible:!1},enableRtl:o.enableRtl,zoomComplete:function(e){if(-1!==e.axis.valueType.indexOf("DateTime")&&o.rangeNavigator){i.stockChart.zoomChange=!0;var t=i.calculateUpdatedRange(e.currentZoomFactor,e.currentZoomPosition,e.axis);o.rangeSelector.sliderChange(t.start,t.end)}}}),0!==o.indicators.length){if(o.isSelect)for(var f=0;f<o.indicators.length;f++)o.chart.indicators[f].animation.enable=!1,o.chart.indicators[f].dataSource=(0,t.extend)([],o.chart.series[0].dataSource,null,!0);o.isSelect=!0}o.chart.stockChart=o,o.chart.appendTo(o.chartObject),o[r]=!1,o.onPanning&&(qt(this.stockChart.element.id+"_stockChart_chart").setAttribute("cursor","pointer"),o.chart.mouseMove(o.mouseMoveEvent))},e.prototype.findMargin=function(e){var t={};return t.top=e.stockLegendModule&&e.legendSettings.visible&&"Top"===e.legendSettings.position?e.margin.top:2*e.margin.top,t.left=e.margin.left,t.right=e.margin.right,t.bottom=e.margin.bottom,t},e.prototype.findSeriesCollection=function(e){for(var t=[],i=0,o=e.length;i<o;i++)t.push(e[i]),t[i].high=e[i].high,t[i].low=e[i].low,t[i].open=e[i].open,t[i].close=e[i].close,t[i].xName=e[i].xName,t[i].volume=e[i].volume,t[i].animation=e[i].animation,e[i].localData&&(t[i].dataSource=e[i].localData),t[i].yName=""===e[i].yName?e[i].close:e[i].yName,t[i].splineType="Spline"===t[i].type?"Cardinal":"Natural";return t},e.prototype.calculateChartSize=function(){var e=this.stockChart;return new R.Size(e.availableSize.width,e.enablePeriodSelector&&e.enableSelector?e.availableSize.height-e.toolbarHeight-51:e.enableSelector&&!e.enablePeriodSelector?e.availableSize.height-51:e.enablePeriodSelector&&!e.enableSelector?e.availableSize.height-e.toolbarHeight:e.availableSize.height)},e.prototype.calculateUpdatedRange=function(e,t,i){var o,r,n=i.actualRange;return r=(o=n.min+t*n.delta)+e*n.delta,this.stockChart.isDateTimeCategory&&(o=this.stockChart.sortedData.indexOf(parseInt(i.labels[Math.floor(o)],10)),r=this.stockChart.sortedData.indexOf(parseInt(i.labels[Math.floor(r)],10))),{start:o,end:r}},e.prototype.cartesianChartRefresh=function(e,t){e.cartesianChart.initializeChart(t)},e.prototype.copyObject=function(e){return(0,t.extend)({},e,{},!0)},e}(),fl=function(){function e(e){this.stockChart=e}return e.prototype.initializeRangeNavigator=function(){var e=this,i=this.stockChart;i.chart.axisCollections[1].labelPadding,i.chart.axisCollections[1].lineStyle.width;if(i.selectorObject){for(var o=document.getElementById(i.selectorObject.id);o.firstChild;)o.removeChild(o.firstChild);qt(i.selectorObject.id+"_leftTooltip")&&(0,t.remove)(qt(i.selectorObject.id+"_leftTooltip")),qt(i.selectorObject.id+"_rightTooltip")&&(0,t.remove)(qt(i.selectorObject.id+"_rightTooltip"))}else i.selectorObject=i.renderer.createGroup({id:i.element.id+"_stockChart_rangeSelector",transform:"translate(0,"+i.cartesianChart.cartesianChartSize.height+")"}),i.mainObject.appendChild(i.selectorObject);i.rangeNavigator=new ml({locale:"en",valueType:i.primaryXAxis.valueType,theme:this.stockChart.theme,series:this.findSeriesCollection(i.series),height:this.calculateChartSize().height.toString(),tickPosition:"Inside",majorTickLines:{width:0},value:[i.isDateTimeCategory?new Date(i.sortedData[Math.floor(i.startValue)]):new Date(i.startValue),i.isDateTimeCategory?new Date(i.sortedData[Math.floor(i.endValue)]):new Date(i.endValue)],margin:this.findMargin(),tooltip:{enable:i.tooltip.enable,displayMode:"OnDemand"},labelPlacement:"OnTicks",labelPosition:"Inside",dataSource:i.dataSource,intervalType:i.primaryXAxis.intervalType,enableRtl:i.enableRtl,changed:function(t){var o={name:"rangeChange",end:t.end,selectedData:t.selectedData,start:t.start,zoomFactor:t.zoomFactor,zoomPosition:t.zoomPosition,data:void 0};e.stockChart.trigger("rangeChange",o),e.stockChart.startValue=t.start,e.stockChart.endValue=t.end,e.stockChart.zoomChange||e.stockChart.cartesianChart.cartesianChartRefresh(e.stockChart,o.data),i.periodSelector&&i.periodSelector.datePicker&&(i.periodSelector.datePicker.startDate=e.stockChart.isDateTimeCategory?new Date(e.stockChart.sortedData[Math.floor(t.start)]):new Date(t.start),i.periodSelector.datePicker.endDate=e.stockChart.isDateTimeCategory?new Date(e.stockChart.sortedData[Math.floor(t.end)]):new Date(t.end),i.periodSelector.datePicker.dataBind())}}),i.rangeNavigator.stockChart=i,i.rangeNavigator.appendTo(i.selectorObject)},e.prototype.findMargin=function(){var e={top:5,left:0,right:0,bottom:0};return e},e.prototype.findSeriesCollection=function(e){for(var t=[],i=0,o=e.length;i<o;i++)t.push(e[i]),t[i].xName=e[i].xName,t[i].yName=e[i].yName;return t},e.prototype.calculateChartSize=function(){var e=this.stockChart;return new R.Size(e.availableSize.width,e.enableSelector?51:0)},e.prototype.sliderChange=function(e,t){this.stockChart.rangeNavigator.rangeSlider.performAnimation(e,t,this.stockChart.rangeNavigator)},e}(),vl=c(295),bl=function(){function e(e){this.selectedSeries="",this.selectedIndicator="",this.selectedTrendLine="",this.indicators=[],this.stockChart=e,this.selectedSeries=this.stockChart.series[0].type}return e.prototype.initializePeriodSelector=function(){var e=this.stockChart.tempPeriods;this.stockChart.periods=e,this.stockChart.periodSelector.rootControl=this.stockChart;var t=this.stockChart.chart.chartAxisLayoutPanel.seriesClipRect,i=qt(this.stockChart.element.id+"_Secondary_Element"),o=this.stockChart.toolbarHeight;this.stockChart.periodSelector.appendSelector({thumbSize:0,element:i,width:t.width,height:o},t.x),this.stockChart.seriesType.length>0&&this.initializeSeriesSelector(),this.initializeIndicatorSelector(),this.stockChart.trendlineType.length>0&&this.initializeTrendlineSelector(),this.exportButton()},e.prototype.getDropDownItems=function(e){var t=[];if(e===this.stockChart.seriesType){for(var i=0;i<e.length;i++)t.push({text:"&nbsp;&nbsp;&nbsp;"+e[i].toString()});for(i=0;i<this.stockChart.series.length;i++)for(var o=0;o<t.length;o++){(r="OHLC"===(r=t[o].text.replace("&nbsp;&nbsp;&nbsp;",""))?"HiloOpenClose":r)===this.stockChart.series[i].type&&(t[o].text=t[o].text.replace("&nbsp;&nbsp;&nbsp;","&#10004&nbsp;"))}}else if(e===this.stockChart.indicatorType){for(i=0;i<e.length;i++)t.push({text:"&nbsp;&nbsp;&nbsp;"+e[i].toString()});for(i=0;i<this.stockChart.indicators.length;i++)for(o=0;o<t.length;o++){var r;(r="Accumulation distribution"===(r=(r=t[o].text.replace("&nbsp;&nbsp;&nbsp;","")).toLowerCase().replace(/(^\w|_\w)/g,function(e){return e.toUpperCase()}).replace(/_/g,""))?"AccumulationDistribution":"Bollinger bands"===r?"BollingerBands":r)===this.stockChart.indicators[i].type&&(t[o].text=t[o].text.replace("&nbsp;&nbsp;&nbsp;","&#10004&nbsp;"),this.indicators.push(r))}}else if(e===this.stockChart.exportType)for(i=0;i<e.length;i++)t.push({text:e[i].toString()});else for(i=0;i<e.length;i++)"Print"!==e[i].toString()&&t.push({text:"&nbsp;&nbsp;&nbsp;"+e[i].toString()});return t},e.prototype.addedSeries=function(e){for(var t=this.stockChart.series,i=0;i<t.length;i++)if("volume"!==t[i].yName){t[i].type=e.indexOf("Candle")>-1?"Candle":e.indexOf("OHLC")>-1?"HiloOpenClose":e,t[i].enableSolidCandles="Candle"===e;for(var o=0;o<t[i].trendlines.length;o++){var r=t[i].trendlines[o];r.animation.enable=!1,r.enableTooltip=!1}}},e.prototype.initializeSeriesSelector=function(){var e=this;this.stockChart.seriesType.indexOf("HiloOpenClose")>-1&&(this.stockChart.seriesType[this.stockChart.seriesType.indexOf("HiloOpenClose")]="OHLC"),this.stockChart.seriesType.indexOf("Candle")>-1&&-1===this.stockChart.seriesType.indexOf("Hollow Candle")&&(this.stockChart.seriesType[this.stockChart.seriesType.length]="Hollow Candle"),new vl.DropDownButton({enableHtmlSanitizer:!1,items:this.getDropDownItems(this.stockChart.seriesType),select:function(t){e.selectedSeries=t.item.text;var i=e.tickMark(t);if(e.addedSeries(i),e.stockChart.cartesianChart.initializeChart(),e.stockChart.stockLegendModule&&e.stockChart.stockLegendModule.legendCollections.length&&e.stockChart.legendSettings.visible){var o=e.stockChart.stockLegendModule.legendBounds;e.stockChart.stockLegendModule.renderLegend(e.stockChart,e.stockChart.legendSettings,o)}}}).appendTo("#"+this.stockChart.element.id+"_seriesType")},e.prototype.initializeTrendlineSelector=function(){var e=this;this.trendlineDropDown=new vl.DropDownButton({enableHtmlSanitizer:!1,items:this.stockChart.resizeTo?this.trendlineDropDown.items:this.getDropDownItems(this.stockChart.trendlineType),select:function(t){var i=e.tickMark(t);if(e.selectedTrendLine=""===e.selectedTrendLine?i:e.selectedTrendLine+","+i,e.trendline!==i){e.trendline=i;for(var o=0;o<e.stockChart.series.length;o++)if("volume"!==e.stockChart.series[o].yName)if(0===e.stockChart.series[0].trendlines.length){var r=void 0;e.stockChart.trendlinetriggered&&(r=[{type:i,width:1,enableTooltip:!1}],e.stockChart.trendlinetriggered=!1),e.stockChart.series[0].trendlines=r}else e.stockChart.series[0].trendlines[0].width=1,e.stockChart.series[0].trendlines[0].type=i,e.stockChart.series[0].trendlines[0].animation.enable=!!e.stockChart.trendlinetriggered;e.stockChart.cartesianChart.initializeChart()}else t.item.text="&nbsp;&nbsp;&nbsp;"+t.item.text.replace("&#10004&nbsp;",""),e.stockChart.series[0].trendlines[0].width=0,e.trendline=null,e.stockChart.cartesianChart.initializeChart()}}),this.trendlineDropDown.appendTo("#"+this.stockChart.element.id+"_trendType")},e.prototype.initializeIndicatorSelector=function(){var e=this;this.indicatorDropDown=new vl.DropDownButton({enableHtmlSanitizer:!1,items:this.stockChart.resizeTo?this.indicatorDropDown.items:this.getDropDownItems(this.stockChart.indicatorType),select:function(t){for(var i=0;i<e.stockChart.series.length;i++)0!==e.stockChart.series[i].trendlines.length&&(e.stockChart.series[i].trendlines[0].animation.enable=!1);t.item.text=t.item.text.indexOf("&#10004&nbsp;")>=0?t.item.text.substr(t.item.text.indexOf(";")+1):t.item.text;var o=t.item.text.replace("&nbsp;&nbsp;&nbsp;",""),r=o=(o=o.split(" ")[0].toLocaleLowerCase()+(o.split(" ")[1]?o.split(" ")[1]:"")).substr(0,1).toUpperCase()+o.substr(1);if(e.selectedIndicator=-1===e.selectedIndicator.indexOf(r)?e.selectedIndicator+" "+r:e.selectedIndicator.replace(r,""),"Tma"===r||"BollingerBands"===r||"Sma"===r||"Ema"===r)if(-1===e.indicators.indexOf(r)){t.item.text="&#10004&nbsp;"+t.item.text.replace("&nbsp;&nbsp;&nbsp;","");var n=e.getIndicator(r,e.stockChart.series[0].yAxisName);e.indicators.push(r),e.stockChart.indicators=e.stockChart.indicators.concat(n),e.stockChart.cartesianChart.initializeChart()}else{t.item.text="&nbsp;&nbsp;&nbsp;"+t.item.text;for(var a=0;a<e.stockChart.indicators.length;a++)e.stockChart.indicators[a].type===r&&e.stockChart.indicators.splice(a,1);e.indicators.splice(e.indicators.indexOf(r),1),e.stockChart.cartesianChart.initializeChart()}else e.createIndicatorAxes(r,t)}}),this.indicatorDropDown.appendTo("#"+this.stockChart.element.id+"_indicatorType")},e.prototype.getIndicator=function(e,t){var i=this.stockChart.series[0];return[{type:e,period:3,yAxisName:t,dataSource:i.localData,xName:i.xName,open:i.open,close:i.close,high:i.high,low:i.low,volume:i.volume,fill:"Sma"===e?"#32CD32":"#6063ff",animation:{enable:!1},upperLine:{color:"#FFE200",width:1},periodLine:{width:2},lowerLine:{color:"#FAA512",width:1},fastPeriod:8,slowPeriod:5,macdType:"Both",width:1,macdPositiveColor:"#6EC992",macdNegativeColor:"#FF817F",bandColor:"rgba(245, 203, 35, 0.12)"}]},e.prototype.createIndicatorAxes=function(e,t){if(-1===this.indicators.indexOf(e)){t.item.text="&#10004&nbsp;"+t.item.text.replace("&nbsp;&nbsp;&nbsp;",""),this.indicators.push(e);var i=this.stockChart.rows.length;this.stockChart.rows[this.stockChart.rows.length-1].height="15%";var o=[{height:100-15*i+"px"}];if(1===this.stockChart.rows.length&&(this.stockChart.isSingleAxis=!0),this.stockChart.rows=this.stockChart.rows.concat(o),this.stockChart.isSingleAxis)for(var r=0;r<this.stockChart.axes.length;r++)this.stockChart.axes[r].rowIndex+=1;else this.stockChart.axes[0].rowIndex+=1;var n=[{plotOffset:10,opposedPosition:!0,rowIndex:this.stockChart.isSingleAxis?0:this.stockChart.axes.length,desiredIntervals:1,labelFormat:"n2",majorGridLines:this.stockChart.primaryYAxis.majorGridLines,lineStyle:this.stockChart.primaryYAxis.lineStyle,labelPosition:this.stockChart.primaryYAxis.labelPosition,majorTickLines:this.stockChart.primaryYAxis.majorTickLines,rangePadding:"None",name:e.toString()}];this.stockChart.axes=this.stockChart.axes.concat(n),this.stockChart.primaryYAxis.rowIndex=this.stockChart.isSingleAxis?i+1:0;var a=this.getIndicator(e,e.toString());this.stockChart.indicators=this.stockChart.indicators.concat(a),this.stockChart.cartesianChart.initializeChart()}else{t.item.text="&nbsp;&nbsp;&nbsp;"+t.item.text;for(r=0;r<this.stockChart.indicators.length;r++)this.stockChart.indicators[r].type===e&&this.stockChart.indicators.splice(r,1);this.indicators.splice(this.indicators.indexOf(e),1);for(var l=0,s=0;s<this.stockChart.axes.length;s++)this.stockChart.axes[s].name===e&&(l=this.stockChart.axes[s].rowIndex,this.stockChart.rows.splice(s,1),this.stockChart.axes.splice(s,1));for(s=0;s<this.stockChart.axes.length;s++)0!==this.stockChart.axes[s].rowIndex&&this.stockChart.axes[s].rowIndex>l&&(this.stockChart.axes[s].rowIndex=this.stockChart.axes[s].rowIndex-1);this.stockChart.cartesianChart.initializeChart()}},e.prototype.tickMark=function(e){for(var t,i=e.item.parentObj.items,o=0;o<i.length;o++)i[o].text=i[o].text.indexOf("&#10004&nbsp;")>=0?i[o].text.substr(i[o].text.indexOf(";")+1):i[o].text,i[o].text.indexOf("&nbsp;&nbsp;&nbsp;")>=0||(i[o].text="&nbsp;&nbsp;&nbsp;"+i[o].text);return e.item.text.indexOf("&nbsp;&nbsp;&nbsp;")>=0?(t=e.item.text.replace("&nbsp;&nbsp;&nbsp;",""),e.item.text=e.item.text.replace("&nbsp;&nbsp;&nbsp;","&#10004&nbsp;")):t=e.item.text.replace("&#10004&nbsp;",""),t},e.prototype.exportButton=function(){var e=this;new vl.DropDownButton({enableHtmlSanitizer:!1,items:this.getDropDownItems(this.stockChart.exportType),select:function(i){var o=i.item.text;if(e.stockChart.chart.exportModule){var r=e.stockChart,n=r.element.id+"_stockChart_",a=r.svgObject.getBoundingClientRect();e.stockChart.svgObject.insertAdjacentElement("afterbegin",e.addExportSettings("Print"===o));var l=r.svgObject.firstElementChild.getBoundingClientRect(),s=new Ni("additionalRect","transparent",{width:0,color:"transparent"},1,new R.Rect(0,0,e.stockChart.availableSize.width,l.height));r.svgObject.firstElementChild.insertAdjacentElement("afterbegin",e.stockChart.renderer.drawRectangle(s)),e.stockChart.svgObject.setAttribute("height",(a.height+l.height).toString()),qt(n+"chart").style.transform="translateY("+l.height+"px)",r.enableSelector&&qt(n+"rangeSelector").setAttribute("transform","translate(0,"+(r.cartesianChart.cartesianChartSize.height+l.height)+")"),e.stockChart.legendSettings.visible&&e.stockChart.stockLegendModule&&(qt(r.element.id+"_chart_legend_g").style.transform="translateY("+l.height+"px)"),"Print"===o?e.stockChart.chart.print(e.stockChart.svgObject.id):r.chart.exportModule.export(o,"StockChart",null,[r],null,r.svgObject.clientHeight),(0,t.remove)(qt(e.stockChart.element.id+"_additionalExport")),qt(n+"chart").style.transform="",r.enableSelector&&qt(n+"rangeSelector").setAttribute("transform","translate(0,"+r.cartesianChart.cartesianChartSize.height+")"),e.stockChart.legendSettings.visible&&e.stockChart.stockLegendModule&&(qt(r.element.id+"_chart_legend_g").style.transform="translateY(0px)"),e.stockChart.svgObject.setAttribute("height",a.height.toString())}}}).appendTo("#"+this.stockChart.element.id+"_export")},e.prototype.calculateAutoPeriods=function(){var e=[],t=this.stockChart.isDateTimeCategory?this.stockChart.sortedData[this.stockChart.seriesXMin]:this.stockChart.seriesXMin,i=this.stockChart.isDateTimeCategory?this.stockChart.sortedData[this.stockChart.seriesXMax]:this.stockChart.seriesXMax;return(e=this.findRange(t,i)).push({text:"YTD",selected:!0},{text:"All"}),e},e.prototype.findRange=function(e,t){var i=[];return(t-e)/3154e7>=1?i.push({text:"1M",interval:1,intervalType:"Months"},{text:"3M",interval:3,intervalType:"Months"},{text:"6M",interval:6,intervalType:"Months"},{text:"1Y",interval:1,intervalType:"Years"}):(t-e)/1577e7>=1?i.push({text:"1M",interval:1,intervalType:"Months"},{text:"3M",interval:3,intervalType:"Months"},{text:"6M",interval:6,intervalType:"Months"}):(t-e)/2628e6>=1?i.push({text:"1D",interval:1,intervalType:"Days"},{text:"3W",interval:3,intervalType:"Weeks"},{text:"1M",interval:1,intervalType:"Months"}):(t-e)/864e5>=1&&i.push({text:"1H",interval:1,intervalType:"Hours"},{text:"12H",interval:12,intervalType:"Hours"},{text:"1D",interval:1,intervalType:"Days"}),i},e.prototype.addExportSettings=function(e){var t=this.stockChart.renderer.createGroup({id:this.stockChart.element.id+"_additionalExport",width:this.stockChart.availableSize.width,fill:this.stockChart.background?this.stockChart.background:"transparent"}),i=(0,R.measureText)(this.stockChart.title,this.stockChart.titleStyle,this.stockChart.themeStyle.chartTitleFont).height,o=new R.TextOption(t.id+"_Title",Ei(new R.Rect(0,0,this.stockChart.availableSize.width,0),this.stockChart.titleStyle),0,"middle",this.stockChart.title,"","text-before-edge");if(Di(this.stockChart.renderer,o,this.stockChart.titleStyle,this.stockChart.titleStyle.color||this.stockChart.themeStyle.chartTitleFont.color,t,null,null,null,null,null,null,0,null,null,null,this.stockChart.themeStyle.chartTitleFont),e)return t;var r={size:"16px",fontWeight:"600",color:this.stockChart.themeStyle.chartTitleFont.color,fontStyle:"Normal",fontFamily:this.stockChart.themeStyle.chartTitleFont.fontFamily},n=(0,R.measureText)("Series: "+this.selectedSeries,r).width/2,a=i;return this.textElementSpan(new R.TextOption(t.id+"_Series",n,a,"start",["Series : ",this.selectedSeries],"","text-before-edge"),r,this.stockChart.themeStyle.chartTitleFont.color,t),n+=(0,R.measureText)("Series: "+this.selectedSeries+" Z",r).width,""!==this.selectedIndicator&&(this.textElementSpan(new R.TextOption(t.id+"_Indicator",n,a,"start",["Indicator :",this.selectedIndicator],"","text-before-edge"),r,this.stockChart.themeStyle.chartTitleFont.color,t),n+=(0,R.measureText)("Indicator: "+this.selectedIndicator+" Z",r).width),""!==this.selectedTrendLine&&this.textElementSpan(new R.TextOption(t.id+"_TrendLine",n,a,"start",["Trendline :",this.selectedTrendLine],"","text-before-edge"),r,this.stockChart.themeStyle.chartTitleFont.color,t),t},e.prototype.textElementSpan=function(e,t,i,o,r,n,a,l,s){void 0===r&&(r=!1),void 0===l&&(l=!1);var h,c,d=new R.SvgRenderer("");h={id:e.id,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,x:e.x,y:e.y,fill:i,"font-size":t.size,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine};var p="string"==typeof e.text?e.text:r?e.text[e.text.length-1]:e.text[0],u=d.createText(h,p);if("string"!=typeof e.text&&e.text.length>1)for(var g=1,m=e.text.length;g<m;g++)e.text[g]=" "+e.text[g],c=d.createTSpan({x:e.x+(0,R.measureText)(p,t).width+5,id:e.id,y:e.y,opacity:.5},e.text[g]),u.appendChild(c);return ni(!1,o,u,n,a,"x","y",null,null,l,!1,null,s),u},e}(),xl=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Sl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Cl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("")],i.prototype,"color",void 0),Sl([(0,t.Property)("16px")],i.prototype,"size",void 0),Sl([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),Sl([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),Sl([(0,t.Property)("Normal")],i.prototype,"fontWeight",void 0),Sl([(0,t.Property)(1)],i.prototype,"opacity",void 0),Sl([(0,t.Property)("Trim")],i.prototype,"textOverflow",void 0),Sl([(0,t.Property)("Center")],i.prototype,"textAlignment",void 0),i}(t.ChildProperty),Fl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("")],i.prototype,"color",void 0),Sl([(0,t.Property)(1)],i.prototype,"width",void 0),i}(t.ChildProperty),wl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Complex)({},Fl)],i.prototype,"border",void 0),Sl([(0,t.Property)("transparent")],i.prototype,"background",void 0),Sl([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Ll=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)(null)],i.prototype,"left",void 0),Sl([(0,t.Property)(null)],i.prototype,"right",void 0),Sl([(0,t.Property)(null)],i.prototype,"top",void 0),Sl([(0,t.Property)(null)],i.prototype,"bottom",void 0),i}(t.ChildProperty),Pl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)(!1)],i.prototype,"startFromAxis",void 0),Sl([(0,t.Property)(!0)],i.prototype,"visible",void 0),Sl([(0,t.Property)(null)],i.prototype,"start",void 0),Sl([(0,t.Property)("#808080")],i.prototype,"color",void 0),Sl([(0,t.Property)(null)],i.prototype,"end",void 0),Sl([(0,t.Property)(null)],i.prototype,"size",void 0),Sl([(0,t.Property)("Auto")],i.prototype,"sizeType",void 0),Sl([(0,t.Property)(null)],i.prototype,"dashArray",void 0),Sl([(0,t.Property)(!1)],i.prototype,"isRepeat",void 0),Sl([(0,t.Property)(null)],i.prototype,"repeatEvery",void 0),Sl([(0,t.Property)(!1)],i.prototype,"isSegmented",void 0),Sl([(0,t.Property)(null)],i.prototype,"repeatUntil",void 0),Sl([(0,t.Property)(null)],i.prototype,"segmentStart",void 0),Sl([(0,t.Property)(null)],i.prototype,"segmentAxisName",void 0),Sl([(0,t.Property)(null)],i.prototype,"segmentEnd",void 0),Sl([(0,t.Property)(1)],i.prototype,"opacity",void 0),Sl([(0,t.Property)("")],i.prototype,"text",void 0),Sl([(0,t.Complex)({color:"transparent",width:1},Fl)],i.prototype,"border",void 0),Sl([(0,t.Property)(null)],i.prototype,"rotation",void 0),Sl([(0,t.Property)("Behind")],i.prototype,"zIndex",void 0),Sl([(0,t.Property)("Middle")],i.prototype,"horizontalAlignment",void 0),Sl([(0,t.Property)("Middle")],i.prototype,"verticalAlignment",void 0),Sl([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Cl)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),Al=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)(null)],i.prototype,"fill",void 0),Sl([(0,t.Property)("Gap")],i.prototype,"mode",void 0),Sl([(0,t.Complex)({color:"transparent",width:0},Fl)],i.prototype,"border",void 0),i}(t.ChildProperty),Ml=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("Line")],i.prototype,"type",void 0),Sl([(0,t.Property)(null)],i.prototype,"length",void 0),Sl([(0,t.Property)(null)],i.prototype,"color",void 0),Sl([(0,t.Property)("")],i.prototype,"dashArray",void 0),Sl([(0,t.Property)(1)],i.prototype,"width",void 0),i}(t.ChildProperty),Dl=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.localData=void 0,t}return xl(i,e),Sl([(0,t.Property)("date")],i.prototype,"xName",void 0),Sl([(0,t.Property)("close")],i.prototype,"yName",void 0),Sl([(0,t.Property)("open")],i.prototype,"open",void 0),Sl([(0,t.Property)("close")],i.prototype,"close",void 0),Sl([(0,t.Property)("high")],i.prototype,"high",void 0),Sl([(0,t.Property)("low")],i.prototype,"low",void 0),Sl([(0,t.Property)("volume")],i.prototype,"volume",void 0),Sl([(0,t.Property)("")],i.prototype,"pointColorMapping",void 0),Sl([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),Sl([(0,t.Property)("")],i.prototype,"legendImageUrl",void 0),Sl([(0,t.Complex)(null,y)],i.prototype,"animation",void 0),Sl([(0,t.Property)(null)],i.prototype,"xAxisName",void 0),Sl([(0,t.Property)(null)],i.prototype,"yAxisName",void 0),Sl([(0,t.Property)(null)],i.prototype,"fill",void 0),Sl([(0,t.Property)("0")],i.prototype,"dashArray",void 0),Sl([(0,t.Property)(1)],i.prototype,"width",void 0),Sl([(0,t.Property)("")],i.prototype,"name",void 0),Sl([(0,t.Property)("")],i.prototype,"dataSource",void 0),Sl([(0,t.Property)()],i.prototype,"query",void 0),Sl([(0,t.Property)("#e74c3d")],i.prototype,"bullFillColor",void 0),Sl([(0,t.Property)("#2ecd71")],i.prototype,"bearFillColor",void 0),Sl([(0,t.Property)(!1)],i.prototype,"enableSolidCandles",void 0),Sl([(0,t.Property)(!0)],i.prototype,"visible",void 0),Sl([(0,t.Complex)({color:"transparent",width:0},u)],i.prototype,"border",void 0),Sl([(0,t.Property)(1)],i.prototype,"opacity",void 0),Sl([(0,t.Property)("Candle")],i.prototype,"type",void 0),Sl([(0,t.Complex)(null,go)],i.prototype,"marker",void 0),Sl([(0,t.Collection)([],fo)],i.prototype,"trendlines",void 0),Sl([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),Sl([(0,t.Property)("")],i.prototype,"tooltipMappingName",void 0),Sl([(0,t.Property)(null)],i.prototype,"selectionStyle",void 0),Sl([(0,t.Property)(.5)],i.prototype,"cardinalSplineTension",void 0),Sl([(0,t.Complex)(null,x)],i.prototype,"cornerRadius",void 0),Sl([(0,t.Complex)(null,Al)],i.prototype,"emptyPointSettings",void 0),Sl([(0,t.Property)(null)],i.prototype,"columnWidth",void 0),Sl([(0,t.Property)(0)],i.prototype,"columnSpacing",void 0),Sl([(0,t.Property)(!0)],i.prototype,"showNearestTooltip",void 0),Sl([(0,t.Complex)({},po)],i.prototype,"lastValueLabel",void 0),i}(t.ChildProperty),kl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("Sma")],i.prototype,"type",void 0),Sl([(0,t.Property)(14)],i.prototype,"period",void 0),Sl([(0,t.Property)(3)],i.prototype,"dPeriod",void 0),Sl([(0,t.Property)(14)],i.prototype,"kPeriod",void 0),Sl([(0,t.Property)(80)],i.prototype,"overBought",void 0),Sl([(0,t.Property)(20)],i.prototype,"overSold",void 0),Sl([(0,t.Property)("Close")],i.prototype,"field",void 0),Sl([(0,t.Property)(2)],i.prototype,"standardDeviation",void 0),Sl([(0,t.Property)(12)],i.prototype,"slowPeriod",void 0),Sl([(0,t.Property)(!0)],i.prototype,"showZones",void 0),Sl([(0,t.Property)(26)],i.prototype,"fastPeriod",void 0),Sl([(0,t.Complex)({color:"#ff9933",width:2},Ml)],i.prototype,"macdLine",void 0),Sl([(0,t.Property)("Both")],i.prototype,"macdType",void 0),Sl([(0,t.Property)("#e74c3d")],i.prototype,"macdNegativeColor",void 0),Sl([(0,t.Property)("#2ecd71")],i.prototype,"macdPositiveColor",void 0),Sl([(0,t.Property)("rgba(211,211,211,0.25)")],i.prototype,"bandColor",void 0),Sl([(0,t.Complex)({color:"#ffb735",width:1},Ml)],i.prototype,"upperLine",void 0),Sl([(0,t.Property)("")],i.prototype,"seriesName",void 0),Sl([(0,t.Complex)({color:"#f2ec2f",width:1},Ml)],i.prototype,"periodLine",void 0),Sl([(0,t.Complex)({color:"#f2ec2f",width:1},Ml)],i.prototype,"lowerLine",void 0),Sl([(0,t.Property)("")],i.prototype,"high",void 0),Sl([(0,t.Property)("")],i.prototype,"open",void 0),Sl([(0,t.Property)("")],i.prototype,"low",void 0),Sl([(0,t.Property)("")],i.prototype,"xName",void 0),Sl([(0,t.Property)("")],i.prototype,"close",void 0),Sl([(0,t.Property)("")],i.prototype,"pointColorMapping",void 0),Sl([(0,t.Property)("")],i.prototype,"volume",void 0),Sl([(0,t.Property)(null)],i.prototype,"xAxisName",void 0),Sl([(0,t.Property)(null)],i.prototype,"yAxisName",void 0),Sl([(0,t.Complex)(null,y)],i.prototype,"animation",void 0),Sl([(0,t.Property)(null)],i.prototype,"fill",void 0),Sl([(0,t.Property)("0")],i.prototype,"dashArray",void 0),Sl([(0,t.Property)(1)],i.prototype,"width",void 0),Sl([(0,t.Property)()],i.prototype,"query",void 0),Sl([(0,t.Property)("")],i.prototype,"dataSource",void 0),i}(t.ChildProperty),Rl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Complex)({},Ue)],i.prototype,"crosshairTooltip",void 0),Sl([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"labelStyle",void 0),Sl([(0,t.Property)("")],i.prototype,"title",void 0),Sl([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Cl)],i.prototype,"titleStyle",void 0),Sl([(0,t.Property)("")],i.prototype,"labelFormat",void 0),Sl([(0,t.Property)("DateTime")],i.prototype,"skeletonType",void 0),Sl([(0,t.Property)("")],i.prototype,"skeleton",void 0),Sl([(0,t.Property)(0)],i.prototype,"plotOffset",void 0),Sl([(0,t.Property)(10)],i.prototype,"logBase",void 0),Sl([(0,t.Property)(0)],i.prototype,"rowIndex",void 0),Sl([(0,t.Property)(1)],i.prototype,"span",void 0),Sl([(0,t.Property)(3)],i.prototype,"maximumLabels",void 0),Sl([(0,t.Property)(null)],i.prototype,"desiredIntervals",void 0),Sl([(0,t.Property)(1)],i.prototype,"zoomFactor",void 0),Sl([(0,t.Property)(0)],i.prototype,"zoomPosition",void 0),Sl([(0,t.Property)(!1)],i.prototype,"opposedPosition",void 0),Sl([(0,t.Property)(!0)],i.prototype,"enableAutoIntervalOnZooming",void 0),Sl([(0,t.Property)("Double")],i.prototype,"valueType",void 0),Sl([(0,t.Property)("Auto")],i.prototype,"rangePadding",void 0),Sl([(0,t.Property)("None")],i.prototype,"edgeLabelPlacement",void 0),Sl([(0,t.Property)("BetweenTicks")],i.prototype,"labelPlacement",void 0),Sl([(0,t.Property)("Auto")],i.prototype,"intervalType",void 0),Sl([(0,t.Property)("Outside")],i.prototype,"tickPosition",void 0),Sl([(0,t.Property)("")],i.prototype,"name",void 0),Sl([(0,t.Property)("Outside")],i.prototype,"labelPosition",void 0),Sl([(0,t.Property)(!0)],i.prototype,"visible",void 0),Sl([(0,t.Property)(0)],i.prototype,"labelRotation",void 0),Sl([(0,t.Property)(0)],i.prototype,"minorTicksPerInterval",void 0),Sl([(0,t.Property)(null)],i.prototype,"crossesAt",void 0),Sl([(0,t.Property)(null)],i.prototype,"crossesInAxis",void 0),Sl([(0,t.Property)(!0)],i.prototype,"placeNextToAxisLine",void 0),Sl([(0,t.Property)(null)],i.prototype,"minimum",void 0),Sl([(0,t.Property)(null)],i.prototype,"interval",void 0),Sl([(0,t.Property)(null)],i.prototype,"maximum",void 0),Sl([(0,t.Property)(34)],i.prototype,"maximumLabelWidth",void 0),Sl([(0,t.Complex)({},We)],i.prototype,"majorTickLines",void 0),Sl([(0,t.Property)(!1)],i.prototype,"enableTrim",void 0),Sl([(0,t.Complex)({},je)],i.prototype,"minorTickLines",void 0),Sl([(0,t.Complex)({},Ve)],i.prototype,"minorGridLines",void 0),Sl([(0,t.Complex)({},Ne)],i.prototype,"majorGridLines",void 0),Sl([(0,t.Complex)({},He)],i.prototype,"lineStyle",void 0),Sl([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),Sl([(0,t.Property)("Trim")],i.prototype,"labelIntersectAction",void 0),Sl([(0,t.Property)(100)],i.prototype,"coefficient",void 0),Sl([(0,t.Property)(0)],i.prototype,"startAngle",void 0),Sl([(0,t.Property)(2)],i.prototype,"tabIndex",void 0),Sl([(0,t.Collection)([],Pl)],i.prototype,"stripLines",void 0),Sl([(0,t.Property)(null)],i.prototype,"description",void 0),i}(t.ChildProperty),Tl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("100%")],i.prototype,"height",void 0),Sl([(0,t.Complex)({},Fl)],i.prototype,"border",void 0),i}(t.ChildProperty),El=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)(2)],i.prototype,"period",void 0),Sl([(0,t.Property)("")],i.prototype,"name",void 0),Sl([(0,t.Property)("Linear")],i.prototype,"type",void 0),Sl([(0,t.Property)(2)],i.prototype,"polynomialOrder",void 0),Sl([(0,t.Property)(0)],i.prototype,"forwardForecast",void 0),Sl([(0,t.Property)(0)],i.prototype,"backwardForecast",void 0),Sl([(0,t.Complex)({},y)],i.prototype,"animation",void 0),Sl([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),Sl([(0,t.Complex)({},go)],i.prototype,"marker",void 0),Sl([(0,t.Property)(null)],i.prototype,"intercept",void 0),Sl([(0,t.Property)("")],i.prototype,"fill",void 0),Sl([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),Sl([(0,t.Property)(1)],i.prototype,"width",void 0),i}(t.ChildProperty),_l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("0")],i.prototype,"y",void 0),Sl([(0,t.Property)("0")],i.prototype,"x",void 0),Sl([(0,t.Property)(null)],i.prototype,"content",void 0),Sl([(0,t.Property)("Chart")],i.prototype,"region",void 0),Sl([(0,t.Property)("Center")],i.prototype,"horizontalAlignment",void 0),Sl([(0,t.Property)("Pixel")],i.prototype,"coordinateUnits",void 0),Sl([(0,t.Property)("Middle")],i.prototype,"verticalAlignment",void 0),Sl([(0,t.Property)(null)],i.prototype,"yAxisName",void 0),Sl([(0,t.Property)(null)],i.prototype,"description",void 0),Sl([(0,t.Property)(null)],i.prototype,"xAxisName",void 0),i}(t.ChildProperty),Il=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)(0)],i.prototype,"point",void 0),Sl([(0,t.Property)(0)],i.prototype,"series",void 0),i}(t.ChildProperty),Ol=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xl(i,e),Sl([(0,t.Property)("Circle")],i.prototype,"type",void 0),Sl([(0,t.Property)("")],i.prototype,"text",void 0),Sl([(0,t.Property)("")],i.prototype,"description",void 0),Sl([(0,t.Property)()],i.prototype,"date",void 0),Sl([(0,t.Complex)({color:"black",width:1},Fl)],i.prototype,"border",void 0),Sl([(0,t.Property)("transparent")],i.prototype,"background",void 0),Sl([(0,t.Property)(!0)],i.prototype,"showOnSeries",void 0),Sl([(0,t.Property)("close")],i.prototype,"placeAt",void 0),Sl([(0,t.Complex)(io,Cl)],i.prototype,"textStyle",void 0),Sl([(0,t.Property)([])],i.prototype,"seriesIndexes",void 0),i}(t.ChildProperty),zl=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Bl=function(e){function i(t){var i=e.call(this,t.chart)||this;return i.symbolLocations=[],i.stockChart=t,i.chartId=i.stockChart.element.id,i}return zl(i,e),i.prototype.renderStockEvents=function(){var e,t,i,o=this.stockChart,r=o.renderer.createGroup({id:this.chartId+"_StockEvents"});this.symbolLocations=function(e,t,i){for(var o=[],r=0;r<e;++r){for(var n=[],a=0;a<t;++a)n[a]=i;o[r]=n}return o}(o.series.length,o.stockEvents.length,new ji(0,0));for(var n=0;n<o.stockEvents.length;n++){e=this.stockChart.stockEvents[n];for(var a=0,l=o.chart.series;a<l.length;a++){var s=l[a],h={name:ue,stockChart:o,text:e.text,type:e.type,cancel:!1,series:s};if(o.trigger(ue,h),e.text=h.text,e.type=h.type,i=(0,R.measureText)(e.text+"W",e.textStyle,this.stockChart.themeStyle.axisLabelFont),!h.cancel){t=o.renderer.createGroup({id:this.chartId+"_Series_"+s.index+"_StockEvents_"+n});var c=this.dateParse(e.date).getTime();if(ot(c=this.stockChart.isDateTimeCategory?s.xAxis.labels.indexOf(c.toString()):c,s.xAxis.visibleRange)&&c>=s.xMin&&c<=s.xMax)if(e.seriesIndexes.length>0)for(var d=0;d<e.seriesIndexes.length;d++)e.seriesIndexes[d]===s.index&&r.appendChild(this.creatEventGroup(t,s,e,n,i));else r.appendChild(this.creatEventGroup(t,s,e,n,i))}}}return r},i.prototype.creatEventGroup=function(e,t,i,o,r){var n=this.findClosePoint(t,i);return i.showOnSeries||(n.y=t.yAxis.rect.y+t.yAxis.rect.height),this.symbolLocations[t.index][o]=n,this.createStockElements(e,i,t,o,n,r),e},i.prototype.findClosePoint=function(e,t){var i=this.dateParse(t.date).getTime();i=this.stockChart.isDateTimeCategory?e.xAxis.labels.indexOf(i.toString()):i;for(var o,r,n,a=this.getClosest(e,i),l=0;l<e.points.length;l++)(a===(r=e.points[l]).xValue&&r.visible||0!==l&&l!==e.points.length-1&&a>e.points[l-1].xValue&&a<e.points[l+1].xValue)&&(o=new Yi(r,e));var s=e.xAxis.rect.x+yt(o.point.xValue,e.xAxis)*e.xAxis.rect.width;return n=-1*(n=yt(o.point[t.placeAt],e.yAxis)*e.yAxis.rect.height)+(e.yAxis.rect.y+e.yAxis.rect.height),new ji(s,n)},i.prototype.createStockElements=function(e,t,i,o,r,n){var a,l,s=new R.Size(n.width>20?n.width:20,n.height>20?n.height:20),h=r.x,c=r.y,d=this.chartId+"_Series_"+i.index+"_StockEvents_"+o,p=t.border;switch(t.type){case"Flag":case"Circle":case"Square":e.appendChild(Xt(new ji(h,c),"Circle",new R.Size(2,2),"",new R.PathOption(d+"_Circle","transparent",p.width,p.color),this.dateParse(t.date).toISOString())),e.appendChild(Xt(new ji(h,c-5),"VerticalLine",new R.Size(9,9),"",new R.PathOption(d+"_Path",p.color,p.width,p.color),this.dateParse(t.date).toISOString())),e.appendChild(Xt(new ji("Flag"!==t.type?h:h+s.width/2,c-s.height),t.type,s,"",new R.PathOption(d+"_Shape",t.background,p.width,p.color),this.dateParse(t.date).toISOString())),Di(this.stockChart.renderer,new R.TextOption(d+"_Text","Flag"!==t.type?r.x:r.x+s.width/2,r.y-s.height,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e);break;case"ArrowUp":case"ArrowDown":case"ArrowRight":case"ArrowLeft":a="M "+h+" "+c+" "+this.findArrowpaths(t.type),l=new R.PathOption(d+"_Shape",t.background,p.width,p.color,1,"",a),e.appendChild(this.stockChart.renderer.drawPath(l));break;case"Triangle":case"InvertedTriangle":s.height=3*n.height,s.width=n.width+1.5*n.width,e.appendChild(Xt(new ji(r.x,r.y),t.type,new R.Size(20,20),"",new R.PathOption(d+"_Shape",t.background,p.width,p.color),this.dateParse(t.date).toISOString())),Di(this.stockChart.renderer,new R.TextOption(d+"_Text",r.x,r.y,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e);break;case"Text":n.height+=8,a="M "+h+" "+c+" L "+(h-5)+" "+(c-5)+" L "+(h-n.width/2)+" "+(c-5)+" L "+(h-n.width/2)+" "+(c-n.height)+" L "+(h+n.width/2)+" "+(c-n.height)+" L "+(h+n.width/2)+" "+(c-5)+" L "+(h+5)+" "+(c-5)+" Z",l=new R.PathOption(d+"_Shape",t.background,p.width,p.color,1,"",a),e.appendChild(this.stockChart.renderer.drawPath(l)),Di(this.stockChart.renderer,new R.TextOption(d+"_Text",h,c-n.height/2,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e);break;default:a="M "+h+" "+c+" L "+(h-n.width/2)+" "+(c-n.height/3)+" L "+(h-n.width/2)+" "+(c-n.height)+" L "+(h+n.width/2)+" "+(c-n.height)+" L "+(h+n.width/2)+" "+(c-n.height/3)+" Z",l=new R.PathOption(d+"_Shape",t.background,p.width,p.color,1,"",a),e.appendChild(this.stockChart.renderer.drawPath(l)),Di(this.stockChart.renderer,new R.TextOption(d+"_Text",h,c-n.height/2,"middle",t.text,"","middle"),t.textStyle,t.textStyle.color,e)}},i.prototype.renderStockEventTooltip=function(e){var i=parseInt(e.split("_StockEvents_")[0].split(this.chartId+"_Series_")[1],10),o=parseInt(e.split("_StockEvents_")[1].replace(/\D+/g,""),10),r=this.symbolLocations[i][o],n=new ji(r.x,r.y+this.stockChart.toolbarHeight+this.stockChart.titleSize.height);this.applyHighLights(o,i);var a=this.getElement(this.chartId+"_StockEvents_Tooltip_svg");if(this.stockEventTooltip&&a&&parseInt(a.getAttribute("opacity"),10)>0)this.stockEventTooltip.content=[this.stockChart.stockEvents[o].description],this.stockEventTooltip.location=n,this.stockEventTooltip.dataBind();else{qt(this.chartId+"_StockEvents_Tooltip_svg")&&(0,t.remove)(qt(this.chartId+"_StockEvents_Tooltip"));var l=(0,t.createElement)("div",{id:this.chartId+"_StockEvents_Tooltip",className:"ejSVGTooltip",attrs:{style:"pointer-events:none; position:absolute;z-index: 1"}});qt(this.chartId+"_Secondary_Element").appendChild(l),this.stockEventTooltip=new R.Tooltip({opacity:1,header:"",content:[this.stockChart.stockEvents[o].description],enableAnimation:!0,location:n,theme:this.stockChart.theme,inverted:!0,areaBounds:this.stockChart.chart.chartAxisLayoutPanel.seriesClipRect}),this.stockEventTooltip.areaBounds.y+=this.stockChart.toolbarHeight+this.stockChart.titleSize.height,this.stockEventTooltip.appendTo("#"+l.id)}},i.prototype.removeStockEventTooltip=function(e){var i=this,o=this.getElement(this.chartId+"_StockEvents_Tooltip");this.stopAnimation(),o&&this.stockEventTooltip?this.toolTipInterval=+setTimeout(function(){i.stockEventTooltip.fadeOut(),i.removeHighLights()},e):o&&this.stockChart.onPanning&&(0,t.remove)(o)},i.prototype.findArrowpaths=function(e){var t="";switch(e){case"ArrowUp":t="l -10 10 l 5 0 l 0 10 l 10 0 l 0 -10 l 5 0 z";break;case"ArrowDown":t="l -10 -10 l 5 0 l 0 -10 l 10 0 l 0 10 l 5 0 z";break;case"ArrowLeft":t="l -10 -10 l 0 5 l -10 0 l 0 10 l 10 0 l 0 5 z";break;case"ArrowRight":t="l 10 -10 l 0 5 l 10 0 l 0 10 l -10 0 l 0 5 z"}return t},i.prototype.applyHighLights=function(e,t){this.pointIndex===e&&this.seriesIndex===t||this.removeHighLights(),this.pointIndex=e,this.seriesIndex=t;var i=this.chartId+"_Series_"+t+"_StockEvents_"+e;this.setOpacity(i+"_Shape",.5),this.setOpacity(i+"_Text",.5)},i.prototype.removeHighLights=function(){var e=this.chartId+"_Series_"+this.seriesIndex+"_StockEvents_"+this.pointIndex;this.setOpacity(e+"_Shape",1),this.setOpacity(e+"_Text",1)},i.prototype.setOpacity=function(e,t){qt(e)&&qt(e).setAttribute("opacity",t.toString())},i.prototype.dateParse=function(e){var t=this.chart.intl.getDateParser({skeleton:"full",type:"dateTime"}),i=this.chart.intl.getDateFormat({skeleton:"full",type:"dateTime"});return new Date(Date.parse(t(i(new Date(ao.DataUtil.parse.parseJson({val:e}).val)))))},i}(_n);var Nl=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vl=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Hl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Nl(i,e),Vl([(0,t.Property)(!1)],i.prototype,"visible",void 0),Vl([(0,t.Property)(null)],i.prototype,"height",void 0),Vl([(0,t.Property)(null)],i.prototype,"width",void 0),Vl([(0,t.Complex)({x:0,y:0},n)],i.prototype,"location",void 0),Vl([(0,t.Property)("Auto")],i.prototype,"position",void 0),Vl([(0,t.Property)("Series")],i.prototype,"mode",void 0),Vl([(0,t.Property)(8)],i.prototype,"padding",void 0),Vl([(0,t.Property)(null)],i.prototype,"itemPadding",void 0),Vl([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Vl([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Cl)],i.prototype,"textStyle",void 0),Vl([(0,t.Property)(10)],i.prototype,"shapeHeight",void 0),Vl([(0,t.Property)(10)],i.prototype,"shapeWidth",void 0),Vl([(0,t.Complex)({},Fl)],i.prototype,"border",void 0),Vl([(0,t.Complex)({left:0,right:0,top:0,bottom:0},Ll)],i.prototype,"margin",void 0),Vl([(0,t.Complex)({left:0,right:0,top:0,bottom:0},S)],i.prototype,"containerPadding",void 0),Vl([(0,t.Property)(8)],i.prototype,"shapePadding",void 0),Vl([(0,t.Property)("transparent")],i.prototype,"background",void 0),Vl([(0,t.Property)(1)],i.prototype,"opacity",void 0),Vl([(0,t.Property)(!0)],i.prototype,"toggleVisibility",void 0),Vl([(0,t.Property)(null)],i.prototype,"description",void 0),Vl([(0,t.Property)(3)],i.prototype,"tabIndex",void 0),Vl([(0,t.Property)(null)],i.prototype,"title",void 0),Vl([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Cl)],i.prototype,"titleStyle",void 0),Vl([(0,t.Property)("Top")],i.prototype,"titlePosition",void 0),Vl([(0,t.Property)(100)],i.prototype,"maximumTitleWidth",void 0),Vl([(0,t.Property)(!0)],i.prototype,"enablePages",void 0),Vl([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),i}(t.ChildProperty),Wl=function(e){function i(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return Nl(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd),this.chart.off(t.Browser.touchMoveEvent,this.mouseMove))},i.prototype.mouseMove=function(e){this.chart.legendSettings.visible&&!this.chart.isTouch&&this.move(e)},i.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.getLegendOptions=function(e){var t,i;this.legendCollections=[],e.length>1&&(this.legend.mode="Series");for(var o=0,r=e;o<r.length;o++){var n=r[o];"Series"===this.legend.mode&&"Indicator"!==n.category&&(t=n.type,i=n.pointColorMapping&&n.points.length>0&&n.points[0].interior?n.points[0].interior:n.interior,this.legendCollections.push(new Eo(n.name,i,n.legendShape,"TrendLine"===n.category?this.chart.series[n.sourceIndex].trendlines[n.index].visible:n.visible,t,n.legendImageUrl,n.marker.shape,n.marker.visible)))}},i.prototype.getLegendBounds=function(e,t,i){this.calculateLegendTitle(i,t);var o=i.padding;this.isTitle=!!i.title;var r,n=i.titlePosition,a=0,l=0,s=this.arrowHeight,h=this.arrowWidth,c=this.isVertical&&!i.enablePages?s:0,d=this.isTitle&&"Top"===n?this.fivePixel+this.legendTitleSize.height:0;d=this.isTitle&&this.isVertical&&"Top"!==n?this.fivePixel+this.legendTitleSize.height:d,this.isVertical?a=i.width?0:e.width/100*5:l=i.height?0:e.height/100*5,t.height+=l,t.width+=a;var p,u=i.shapePadding,g=i.shapeWidth,m=0,y=0,f=0,v=0,b=0,x=0;this.maxItemHeight=Math.max((0,R.measureText)("MeasureText",i.textStyle,this.chart.themeStyle.legendLabelFont).height,i.shapeHeight);for(var S=!1,C=0;C<this.legendCollections.length;C++)r=this.legendCollections[C],be.test(r.text)&&(r.text=Oi(r.text,be)),ve.test(r.text)&&(r.text=Oi(r.text,ve)),p={fill:r.fill,text:r.text,shape:r.shape,markerShape:r.markerShape,name:B,cancel:!1},this.chart.trigger(B,p),r.text=p.text,r.render=!p.cancel,r.shape=p.shape,r.fill=p.fill,r.markerShape=p.markerShape,r.textSize=(0,R.measureText)(r.text,i.textStyle,this.chart.themeStyle.legendLabelFont),r.render&&(S=!0,y+=f=u+g+r.textSize.width+(this.isVertical||0===C?o:this.itemPadding),i.enablePages||this.isVertical||(x=this.isTitle&&"Top"!==n?this.legendTitleSize.width+this.fivePixel:0,x+=h),(t.width<o+y+x||this.isVertical)&&(m=Math.max(m,y+o+x-(this.isVertical?0:f)),0===b&&f!==y&&(b=1),y=this.isVertical?0:f,v=++b*(this.maxItemHeight+(this.isVertical?this.itemPadding:o))+o+d+c));v=Math.max(v,this.maxItemHeight+o+o+d),this.isPaging=t.height<v,this.isPaging&&!i.enablePages&&(this.isVertical||(v=this.maxItemHeight+o+o+("Top"===n?d:0))),this.totalPages=b,this.isPaging||this.isVertical||(y+=this.isTitle&&"Top"!==n?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0),S?this.setBounds(Math.max(y+o,m),v,i,t):this.setBounds(0,0,i,t)},i.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=o.location.x+i+o.textSize.width,s=this.legend.padding;l+(e.textSize.width+i-this.itemPadding)>r.x+r.width+this.legend.shapeWidth/2||this.isVertical?(e.location.x=t.x,e.location.y=n===a?o.location.y:o.location.y+this.maxItemHeight+(this.isVertical?this.itemPadding:s)):(e.location.x=n===a?o.location.x:l,e.location.y=o.location.y);var h=this.legendBounds.width+this.legendBounds.x-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);e.text=Fi(+h.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont)},i.prototype.legendClick=function(e){var t=this.chart,i="Series"===t.legendSettings.mode?e:0,o=t.visibleSeries[i],r=this.legendCollections[e],n={legendText:r.text,legendShape:r.shape,chart:t,series:o,name:I,cancel:!1};this.chart.trigger(I,n),o.legendShape=n.legendShape,null!==o.fill&&(t.visibleSeries[e].interior=o.fill),t.legendSettings.toggleVisibility&&(t.legendClicked=!0,this.changeSeriesVisiblity(o,o.visible),r.visible="TrendLine"===o.category?t.series[o.sourceIndex].trendlines[o.index].visible:o.visible,this.refreshLegendToggle(t))},i.prototype.refreshLegendToggle=function(e){var t=e.stockLegendModule.legendBounds;e.stockLegendModule.renderLegend(e,e.legendSettings,t)},i.prototype.changeSeriesVisiblity=function(e,t){e.visible=!t,this.SecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),this.SecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible}))},i.prototype.SecondaryAxis=function(e){return this.chart.axes.indexOf(e)>-1},i.prototype.click=function(e){var t=this;if(this.chart.legendSettings.visible){for(var i,o=this.chart.mouseY,r=this.chart.mouseX,n=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_"],a=e.target.id,l=0,s=n;l<s.length;l++){var h=s[l];if(a.indexOf(h)>-1){i=parseInt(a.split(h)[1],10),this.legendClick(i);break}}a.indexOf(this.legendID+"_pagedown")>-1?this.changePage(e,!1):a.indexOf(this.legendID+"_pageup")>-1&&this.changePage(e,!0),this.legendRegions.filter(function(e){return Pt(r,o+(t.isPaging?(t.currentPageNumber-1)*t.translatePage(!1,null,1,2):0),e.rect)})}},i.prototype.getModuleName=function(){return"StockLegend"},i.prototype.destroy=function(){this.removeEventListener()},i}(To),jl=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ul=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Xl=function(e){function i(i,r){var n=e.call(this,i,r)||this;return n.isSingleAxis=!1,n.chartid=57723,n.tempSeriesType=[],n.zoomChange=!1,n.allowPan=!1,n.onPanning=!1,n.trendlinetriggered=!0,n.initialRender=!0,n.rangeFound=!1,n.tempPeriods=[],n.isDateTimeCategory=!1,n.sortedData=[],n.visibleRange={min:0,max:0,delta:0,interval:0},n.isStockChartRendered=!1,o.Inject(ar,Yr,$r),n.toolbarHeight=n.enablePeriodSelector?t.Browser.isDevice?56:42:0,n}var o;return jl(i,e),o=i,i.prototype.onPropertyChanged=function(e){for(var t=0,i=Object.keys(e);t<i.length;t++){if("series"===i[t])this.storeDataSource(),this.chartRender(),this.stockChartDataManagerSuccess(),this.legendClicked=!1}},i.prototype.rangeChanged=function(e,t){var i=document.getElementById(this.chartObject.id);if(i)for(;i.firstChild;)i.removeChild(i.firstChild);this.startValue=e,this.endValue=t,this.cartesianChart.initializeChart(),this.periodSelector.datePicker.startDate=this.isDateTimeCategory?new Date(this.sortedData[e]):new Date(e),this.periodSelector.datePicker.endDate=this.isDateTimeCategory?new Date(this.sortedData[t]):new Date(t),this.periodSelector.datePicker.dataBind()},i.prototype.preRender=function(){this.unWireEvents(),this.initPrivateVariable(),this.allowServerDataBinding=!1,this.isProtectedOnChange=!0,this.setCulture(),this.wireEvents()},i.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.stockChartOnMouseDown),t.EventHandler.remove(this.element,i,this.stockChartOnMouseMove),t.EventHandler.remove(this.element,o,this.stockChartMouseEnd),t.EventHandler.remove(this.element,"click",this.stockChartOnMouseClick),t.EventHandler.remove(this.element,"contextmenu",this.stockChartRightClick),t.EventHandler.remove(this.element,r,this.stockChartOnMouseLeave),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.stockChartResize)},i.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.stockChartOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.stockChartOnMouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.stockChartMouseEnd,this),t.EventHandler.add(this.element,"click",this.stockChartOnMouseClick,this),t.EventHandler.add(this.element,"contextmenu",this.stockChartRightClick,this),t.EventHandler.add(this.element,e,this.stockChartOnMouseLeave,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.stockChartResize.bind(this)),this.setStyle(this.element)},i.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-stockChart").length;this.element.id="stockChart_"+this.chartid+"_"+e}this.seriesXMax=null,this.seriesXMin=null,this.startValue=null,this.endValue=null,this.currentEnd=null,this.margin={right:null===this.margin.right?t.Browser.isDevice?5:10:this.margin.right,left:null===this.margin.left?t.Browser.isDevice?5:10:this.margin.left,top:null===this.margin.top?t.Browser.isDevice?5:10:this.margin.top,bottom:null===this.margin.bottom?t.Browser.isDevice?5:10:this.margin.bottom},this.isStockChartRendered=!1},i.prototype.setCulture=function(){this.intl=new t.Internationalization},i.prototype.storeDataSource=function(){for(var e=0;e<this.series.length;e++){var t=this.series[e];this.tempSeriesType.push(t.type),t.localData=void 0}0===this.series.length&&this.series.push({}),this.initialRender=!this.legendClicked,this.rangeFound=!1,this.resizeTo=null,this.startValue=null,this.endValue=null},i.prototype.render=function(){var e=this,t={name:"load",stockChart:this,theme:this.theme};this.trigger("load",t,function(){e.themeStyle=ro(e.theme,!1,e),e.storeDataSource(),e.drawSVG(),e.renderTitle(),e.renderLegend(),e.chartModuleInjection(),e.chartRender(),e.dataSource instanceof ao.DataManager&&e.series[0].dataSource instanceof ao.DataManager||(e.stockChartDataManagerSuccess(),e.initialRender=!1),e.renderComplete(),e.allowServerDataBinding=!0,e.isStockChartRendered=!0}),this.isProtectedOnChange=!1},i.prototype.stockChartDataManagerSuccess=function(){this.findRange();var e=this.series.every(function(e){var t=e.dataSource||[];return!t||0===t.length});this.renderNoDataTemplate(e&&!(0,t.isNullOrUndefined)(this.noDataTemplate)),this.renderRangeSelector(),this.renderPeriodSelector(),this.trigger("loaded",{stockChart:this})},i.prototype.renderNoDataTemplate=function(e){var i=this.element.querySelector("#"+this.element.id+"_NoDataTemplate_wrapper");if(i&&i.remove(),e){var o="function"==typeof this.noDataTemplate?this.noDataTemplate():this.noDataTemplate,r=(0,t.createElement)("div",{id:this.element.id+"_NoDataTemplate_wrapper"}),n=this.element.querySelector("#"+this.element.id+"_Secondary_Element"),a=0,l=document.getElementById(this.element.id+"_stock_border");if(l){var s=getComputedStyle(l),h=s.borderWidth||s.borderTopWidth;a=h?parseFloat(h):0}var c=0;if(this.title)c=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height+11;var d=this.element.getBoundingClientRect(),p=document.querySelector("#"+this.element.id+"_rangeSelector")||n.querySelector('[id*="rangeSelector"]'),u=d.bottom;if(p){var g=p.getBoundingClientRect();u=Math.max(u,g.bottom)}var m=u-n.getBoundingClientRect().top-c-a;r.style.cssText="position: absolute; top: "+c+"px; left: "+a+"px; width: "+(this.availableSize.width-2*a)+"px;\n                height: "+m+"px; z-index: 1;\n            ",qt(this.element.id+"_Secondary_Element").appendChild(r),Jt(r,null,o,this,null,null,this.element.id+"_NoData")}},i.prototype.setStyle=function(e){var t=this.zoomSettings,i=t.enableSelectionZooming||t.enablePinchZooming||"None"!==this.selectionMode||this.crosshair.enable;e.style.msTouchAction=i?"none":"element",e.style.touchAction=i?"none":"element",e.style.msUserSelect="none",e.style.msContentZooming="none",e.style.position="relative",e.style.display="block",e.style.webkitUserSelect="none"},i.prototype.drawSVG=function(){this.removeSvg(),ki(this),this.renderer=new R.SvgRenderer(this.element.id),this.renderBorder(),this.createSecondaryElements(),this.calculateVisibleSeries(),this.calculateLegendBounds(),this.mainObject=this.renderer.createSvg({id:this.element.id+"_stockChart_svg",width:this.availableSize.width,height:this.availableSize.height-(this.enablePeriodSelector?this.toolbarHeight:0)-this.titleSize.height,style:"display: block;"}),this.svgObject=this.mainObject,this.element.appendChild(this.mainObject)},i.prototype.calculateVisibleSeries=function(){var e;this.visibleSeries=[];for(var t=oo(this.theme),i=t.length,o=this.series.sort(function(e,t){return e.zOrder-t.zOrder}),r=0,n=o.length;r<n;r++)(e=o[r]).category="Series",e.index=r,e.interior=e.fill||t[r%i],this.visibleSeries.push(e),o[r]=e},i.prototype.createSecondaryElements=function(){var e=Pi(!1,this.element.id+"_Secondary_Element")||this.createElement("div");e.id=this.element.id+"_Secondary_Element",this.title?(this.titleSize=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont),this.titleSize.height+=15):this.titleSize={height:null,width:null};var t=(this.enablePeriodSelector?this.toolbarHeight:0)+this.titleSize.height;e.style.cssText="position: relative; height:"+t+"px",ni(!1,this.element,e,!1)},i.prototype.requiredModules=function(){var e=[];return this.legendSettings.visible&&e.push({member:"StockLegend",args:[this]}),e},i.prototype.findCurrentData=function(e,t){var i=this.enablePeriodSelector||this.enableSelector?void 0:e,o=this.isDateTimeCategory?new Date(this.sortedData[Math.floor(this.startValue)]).getTime():this.startValue,r=this.isDateTimeCategory?new Date(this.sortedData[Math.floor(this.endValue)]).getTime():this.endValue;return e&&o&&r&&(i=e.filter(function(e){return new Date(Date.parse(e[t])).getTime()>=o&&new Date(Date.parse(e[t])).getTime()<=r})),i},i.prototype.renderPeriodSelector=function(){this.enablePeriodSelector&&(this.toolbarSelector.initializePeriodSelector(),this.periodSelector.toolbar.refreshOverflow(),this.enableSelector||this.cartesianChart.cartesianChartRefresh(this))},i.prototype.chartRender=function(){this.sortedData=[],this.cartesianChart=new yl(this),this.cartesianChart.initializeChart()},i.prototype.renderRangeSelector=function(){this.enableSelector&&(this.rangeSelector=new fl(this),this.rangeSelector.initializeRangeNavigator())},i.prototype.getModuleName=function(){return"stockChart"},i.prototype.getPersistData=function(){return""},i.prototype.removeSvg=function(){document.getElementById(this.element.id+"_Secondary_Element")&&(0,t.remove)(document.getElementById(this.element.id+"_Secondary_Element"));if(this.mainObject){for(;this.mainObject.childNodes.length>0;)this.mainObject.removeChild(this.mainObject.firstChild);!this.mainObject.hasChildNodes()&&this.mainObject.parentNode&&((0,t.remove)(this.mainObject),this.mainObject=null,this.selectorObject=null,this.chartObject=null)}},i.prototype.chartModuleInjection=function(){for(var e,t=0,i=this.getInjectedModules();t<i.length;t++){var o=i[t];-1===(e=o.prototype.getModuleName().toLowerCase()).indexOf("rangetooltip")?jo.Inject(o):ml.Inject(o),"datetime"!==e&&"areaseries"!==e&&"steplineseries"!==e&&"datetimecategory"!==e||ml.Inject(o)}},i.prototype.findRange=function(){var e=this;this.seriesXMin=1/0,this.seriesXMax=-1/0;for(var t=0,i=this.chart.series;t<i.length;t++){var o=i[t];o.visible&&(this.seriesXMin=Math.min(this.seriesXMin,o.xMin),this.seriesXMax=Math.max(this.seriesXMax,o.xMax))}this.endValue=this.currentEnd=this.seriesXMax,this.enablePeriodSelector?(this.toolbarSelector=new bl(this),this.periodSelector=new pl(this),this.tempPeriods=this.periods.length?this.periods:this.toolbarSelector.calculateAutoPeriods(),this.tempPeriods.map(function(t){if(t.selected&&"ytd"===t.text.toLowerCase())if(e.isDateTimeCategory){for(var i=new Date(e.sortedData[e.currentEnd]).getFullYear(),o=e.currentEnd-1;o>=0;o--)if(new Date(e.sortedData[o]).getFullYear()!==i){e.startValue=o+1;break}e.startValue=-1===o?0:e.startValue}else e.startValue=new Date(new Date(e.currentEnd).getFullYear().toString()).getTime();else t.selected&&"all"===t.text.toLowerCase()?e.startValue=e.seriesXMin:t.selected&&(e.startValue=e.periodSelector.changedRange(t.intervalType,e.endValue,t.interval).getTime(),e.startValue=e.isDateTimeCategory?e.periodSelector.findStartValue(e.startValue,e.endValue):e.startValue)})):this.startValue=this.seriesXMin,this.rangeFound=!0},i.prototype.stockChartResize=function(){var e=this;return!!document.getElementById(this.element.id)&&(this.animateSeries=!1,this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){e.cartesianChart&&(ki(e),e.renderBorder(),e.calculateLegendBounds(),e.renderTitle(),e.renderLegend(),e.cartesianChart.cartesianChartRefresh(e),e.mainObject.setAttribute("width",(e.availableSize.width+(!e.stockLegendModule||"Right"!==e.legendSettings.position&&"Left"!==e.legendSettings.position?0:e.stockLegendModule.legendBounds.width)).toString()),e.enablePeriodSelector&&e.renderPeriodSelector())},500),!1)},i.prototype.stockChartOnMouseDown=function(e){var i,o,r,n,a=this.chart.element.getBoundingClientRect(),l=e.target;if(this.trigger("stockChartMouseDown",{target:l.id,x:this.mouseX,y:this.mouseY}),"touchstart"===e.type?(this.isTouch=!0,i=(n=e).changedTouches[0].clientX,r=n.target,o=n.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY,r=e.target),r.id.indexOf(this.element.id+"_stockChart_chart")>-1){var s=qt(this.element.id+"_stockChart_chart").getBoundingClientRect();this.mouseDownY=this.previousMouseMoveY=o-a.top-Math.max(s.top-a.top,0),this.mouseDownX=this.previousMouseMoveX=i-a.left-Math.max(s.left-a.left,0),this.setMouseXY(i,o),this.referenceXAxis=this.chart.primaryXAxis,qt(this.element.id+"_stockChart_chart").setAttribute("cursor","pointer"),this.isDateTimeCategory?(this.visibleRange.min=this.sortedData.indexOf(parseInt(this.referenceXAxis.labels[this.referenceXAxis.visibleRange.min],10)),this.visibleRange.max=this.sortedData.indexOf(parseInt(this.referenceXAxis.labels[this.referenceXAxis.visibleRange.max],10)),this.visibleRange.delta=this.referenceXAxis.visibleRange.delta,this.visibleRange.interval=this.referenceXAxis.visibleRange.interval):this.visibleRange=this.referenceXAxis.visibleRange,this.mouseDownXPoint=Za(this.mouseX-this.referenceXAxis.rect.x,this.referenceXAxis.rect.width,this.visibleRange,this.referenceXAxis.isInversed),this.allowPan=!0,this.notify(t.Browser.touchStartEvent,e)}return!1},i.prototype.stockChartMouseEnd=function(e){var t,i,o;return"touchend"===e.type?(i=(o=e).changedTouches[0].clientX,t=o.changedTouches[0].clientY,this.isTouch=!0):(t=e.clientY,i=e.clientX,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),qt(this.element.id+"_stockChart_chart").setAttribute("cursor","auto"),this.onPanning=!1,this.setMouseXY(i,t),this.stockChartOnMouseUp(e),!1},i.prototype.stockChartOnMouseUp=function(e){var i=e.target;return this.trigger("stockChartMouseUp",{target:i.id,x:this.mouseX,y:this.mouseY}),this.isChartDrag=!1,this.allowPan=!1,this.rangeNavigator&&(this.rangeNavigator.rangeSlider.isDrag=!1),this.isTouch&&(this.threshold=(new Date).getTime()+300),this.notify(t.Browser.touchEndEvent,e),this.stockEvent&&this.stockEvent.removeStockEventTooltip(0),!1},i.prototype.setMouseXY=function(e,t){var i=qt(this.element.id+"_stockChart_chart");if(this.element&&i){var o=this.element.getBoundingClientRect(),r=i.getBoundingClientRect();this.mouseX=e-o.left-Math.max(r.left-o.left,0),this.mouseY=t-o.top-Math.max(r.top-o.top,0)}},i.prototype.stockChartOnMouseMove=function(e){var t,i,o;return this.mouseMoveEvent=e,"touchmove"===e.type?(this.isTouch=!0,o=(i=e).changedTouches[0].clientY,t=i.changedTouches[0].clientX):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,t=e.clientX,o=e.clientY),this.trigger("stockChartMouseMove",{target:e.target.id,x:this.mouseX,y:this.mouseY}),qt(this.element.id+"_stockChart_chart")&&(this.setMouseXY(t,o),this.chartOnMouseMove(e)),!1},i.prototype.chartOnMouseMove=function(e){if(this.rangeNavigator&&this.rangeNavigator.rangeSlider.isDrag&&(this.rangeNavigator.mouseX=this.mouseX,this.rangeNavigator.rangeSlider.mouseMoveHandler(e)),this.allowPan&&!this.chart.startMove&&this.mouseDownXPoint&&this.mouseX!==this.previousMouseMoveX&&this.zoomSettings.enablePan){this.onPanning=!0,this.zoomChange=!1,qt(this.element.id+"_stockChart_chart").setAttribute("cursor","pointer"),this.mouseUpXPoint=Za(this.mouseX-this.referenceXAxis.rect.x,this.referenceXAxis.rect.width,this.visibleRange,this.referenceXAxis.isInversed);var i=Math.abs(this.mouseUpXPoint-this.mouseDownXPoint);this.mouseDownXPoint<this.mouseUpXPoint?this.seriesXMin<=this.visibleRange.min-i&&(this.startValue=this.visibleRange.min-i,this.endValue=this.visibleRange.max-i,this.enableSelector?this.rangeNavigator.rangeSlider.setSlider(this.visibleRange.min-i,this.visibleRange.max-i,!this.rangeNavigator.enableDeferredUpdate,this.rangeNavigator.rangeTooltipModule&&this.rangeNavigator.tooltip.enable):this.cartesianChart.cartesianChartRefresh(this)):this.seriesXMax>=this.visibleRange.max+i&&(this.startValue=this.visibleRange.min+i,this.endValue=this.visibleRange.max+i,this.enableSelector?this.rangeNavigator.rangeSlider.setSlider(this.visibleRange.min+i,this.visibleRange.max+i,!this.rangeNavigator.enableDeferredUpdate,this.rangeNavigator.rangeTooltipModule&&this.rangeNavigator.tooltip.enable):this.cartesianChart.cartesianChartRefresh(this))}if(this.notify(t.Browser.touchMoveEvent,e),""===e.target.id&&!0==!this.onPanning){var o=void 0;(this.chart.tooltip.enable||this.crosshair.enable)&&(o=document.getElementById(this.element.id+"_stockChart_chart_tooltip"))&&(0,t.remove)(o),qt(this.element.id+"_StockEvents_Tooltip")&&this.stockEvent.removeStockEventTooltip(0)}return-1!==e.target.id.indexOf("StockEvents")?(clearInterval(this.stockEvent.toolTipInterval),this.stockEvent.renderStockEventTooltip(e.target.id)):this.stockEvent&&this.stockEvent.removeStockEventTooltip(1e3),this.isTouch=!1,!1},i.prototype.stockChartOnMouseClick=function(e){var t=e.target;return this.trigger("stockChartMouseClick",{target:t.id,x:this.mouseX,y:this.mouseY}),this.notify("click",e),!1},i.prototype.stockChartRightClick=function(e){return!this.crosshair.enable||2!==e.buttons&&0!==e.which&&"touch"!==e.pointerType||(e.preventDefault(),e.stopPropagation(),!1)},i.prototype.stockChartOnMouseLeave=function(e){var t,i,o;return"touchleave"===e.type?(this.isTouch=!0,i=(t=e).changedTouches[0].clientX,o=t.changedTouches[0].clientY):(i=e.clientX,o=e.clientY,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),this.setMouseXY(i,o),this.allowPan=!1,this.stockChartOnMouseLeaveEvent(e),!1},i.prototype.stockChartOnMouseLeaveEvent=function(e){var i=t.Browser.isPointer?"pointerleave":"mouseleave";return this.isChartDrag=!1,this.notify(i,e),this.stockEvent&&this.stockEvent.removeStockEventTooltip(1e3),this.rangeNavigator&&(this.rangeNavigator.rangeSlider.isDrag=!1),this.onPanning&&(this.onPanning=!1,this.chart.mouseLeave(e),qt(this.element.id+"_stockChart_chart").setAttribute("cursor","auto")),!1},i.prototype.destroy=function(){this.cartesianChart=null,this.chart=null,this.periodSelector=null,this.rangeNavigator=null,this.rangeSelector=null,this.tempPeriods=[],this.toolbarSelector=null,this.visibleSeries=[],this.yAxisElements=null;var t=document.getElementById(this.element.id+"_stockChart_chartKeyboard_chart_focus");t&&t.remove();var i=document.getElementById(this.element.id+"_stock_border");i&&i.remove(),this.element&&(this.unWireEvents(),e.prototype.destroy.call(this),this.removeSvg(),this.svgObject=null)},i.prototype.renderBorder=function(){if(this.border.width){var e=this.createElement("div");e.id=this.element.id+"_stock_border",e.style.width=this.availableSize.width+"px",e.style.height=this.availableSize.height+"px",e.style.position="absolute",e.style.border=this.border.width+"px solid "+this.border.color,e.style.pointerEvents="none",ni(!1,qt(this.element.id),e)}},i.prototype.renderTitle=function(){var e;if(this.title){ni(!1,qt(this.element.id+"_Secondary_Element"),this.renderer.createSvg({id:this.element.id+"_stockChart_Title",width:this.availableSize.width,height:this.titleSize.height,fill:this.background||this.themeStyle.background}),!1);var t=this.titleStyle.textAlignment,i="Near"===t?"start":"Far"===t?"end":"middle";e=new R.Rect(0,0,this.availableSize.width,0);var o=new R.TextOption(this.element.id+"_ChartTitle",Ei(e,this.titleStyle),this.titleSize.height-10,i,this.title,"","auto");Di(this.renderer,o,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color||this.findTitleColor(),qt(this.element.id+"_stockChart_Title"),!1,!1,null,null,null,null,0,null,null,null,this.themeStyle.chartTitleFont),this.availableSize.height-=this.titleSize.height+5}},i.prototype.calculateLegendBounds=function(){this.stockLegendModule&&this.legendSettings.visible&&this.stockLegendModule.getLegendOptions(this.visibleSeries);var e=this.titleSize.height,t=this.border.width,i=this.availableSize.width-this.border.width-t,o=.5*this.chartArea.border.width+this.border.width,r=this.availableSize.height-o-this.border.width-(this.enablePeriodSelector?this.toolbarHeight:0)-e;this.initialClipRect=new R.Rect(t,o,i,r),this.tempAvailableSize=new R.Size(this.availableSize.width,this.availableSize.height-(this.enablePeriodSelector?this.toolbarHeight:0)-e),this.stockLegendModule&&this.legendSettings.visible&&this.stockLegendModule.calculateLegendBounds(this.initialClipRect,this.tempAvailableSize,null)},i.prototype.renderLegend=function(){if(this.stockLegendModule&&this.stockLegendModule.legendCollections.length&&this.legendSettings.visible){this.stockLegendModule.calTotalPage=!0;var e=this.stockLegendModule.legendBounds;this.stockLegendModule.renderLegend(this,this.legendSettings,e),"Auto"===this.legendSettings.position||"Bottom"===this.legendSettings.position||"Top"===this.legendSettings.position?this.availableSize.height-=this.stockLegendModule.legendBounds.height:"Left"!==this.legendSettings.position&&"Right"!==this.legendSettings.position||(this.availableSize.width-=this.stockLegendModule.legendBounds.width)}},i.prototype.findTitleColor=function(){return this.theme.toLocaleLowerCase().indexOf("highcontrast")>-1||this.theme.indexOf("Dark")>-1?"#ffffff":"#424242"},i.prototype.calculateStockEvents=function(){this.stockEvents.length&&(this.stockEvent=new Bl(this),ni(!1,this.chartObject,this.stockEvent.renderStockEvents()))},Ul([(0,t.Property)(null)],i.prototype,"noDataTemplate",void 0),Ul([(0,t.Property)(null)],i.prototype,"width",void 0),Ul([(0,t.Property)(null)],i.prototype,"height",void 0),Ul([(0,t.Property)("")],i.prototype,"dataSource",void 0),Ul([(0,t.Complex)({},Ll)],i.prototype,"margin",void 0),Ul([(0,t.Complex)({color:"#DDDDDD",width:1},Fl)],i.prototype,"border",void 0),Ul([(0,t.Property)(null)],i.prototype,"background",void 0),Ul([(0,t.Property)("Material")],i.prototype,"theme",void 0),Ul([(0,t.Complex)({name:"primaryXAxis",valueType:"DateTime"},Rl)],i.prototype,"primaryXAxis",void 0),Ul([(0,t.Complex)({border:{color:null,width:.5},background:"transparent"},wl)],i.prototype,"chartArea",void 0),Ul([(0,t.Complex)({name:"primaryYAxis",opposedPosition:!0,labelPosition:"Inside",tickPosition:"Inside"},Rl)],i.prototype,"primaryYAxis",void 0),Ul([(0,t.Collection)([{}],Tl)],i.prototype,"rows",void 0),Ul([(0,t.Collection)([{opposedPosition:!0}],Rl)],i.prototype,"axes",void 0),Ul([(0,t.Collection)([],Dl)],i.prototype,"series",void 0),Ul([(0,t.Collection)([],Ol)],i.prototype,"stockEvents",void 0),Ul([(0,t.Property)(!1)],i.prototype,"isTransposed",void 0),Ul([(0,t.Property)("")],i.prototype,"title",void 0),Ul([(0,t.Complex)({size:null,fontWeight:null,color:null,fontStyle:null,fontFamily:null},Cl)],i.prototype,"titleStyle",void 0),Ul([(0,t.Collection)([],kl)],i.prototype,"indicators",void 0),Ul([(0,t.Complex)({shared:!0,enableMarker:!1},D)],i.prototype,"tooltip",void 0),Ul([(0,t.Complex)({dashArray:"5",lineType:"Vertical"},Ho)],i.prototype,"crosshair",void 0),Ul([(0,t.Complex)({},Hl)],i.prototype,"legendSettings",void 0),Ul([(0,t.Complex)({enablePan:!0},Wo)],i.prototype,"zoomSettings",void 0),Ul([(0,t.Property)(!0)],i.prototype,"enablePeriodSelector",void 0),Ul([(0,t.Property)(!0)],i.prototype,"enableCustomRange",void 0),Ul([(0,t.Property)(!1)],i.prototype,"isSelect",void 0),Ul([(0,t.Property)(!0)],i.prototype,"enableSelector",void 0),Ul([(0,t.Collection)([],A)],i.prototype,"periods",void 0),Ul([(0,t.Collection)([{}],_l)],i.prototype,"annotations",void 0),Ul([(0,t.Event)()],i.prototype,"selectorRender",void 0),Ul([(0,t.Event)()],i.prototype,"stockChartMouseMove",void 0),Ul([(0,t.Event)()],i.prototype,"stockChartMouseLeave",void 0),Ul([(0,t.Event)()],i.prototype,"stockChartMouseDown",void 0),Ul([(0,t.Event)()],i.prototype,"stockChartMouseUp",void 0),Ul([(0,t.Event)()],i.prototype,"stockChartMouseClick",void 0),Ul([(0,t.Event)()],i.prototype,"pointClick",void 0),Ul([(0,t.Event)()],i.prototype,"pointMove",void 0),Ul([(0,t.Event)()],i.prototype,"onZooming",void 0),Ul([(0,t.Event)()],i.prototype,"legendRender",void 0),Ul([(0,t.Event)()],i.prototype,"legendClick",void 0),Ul([(0,t.Property)("None")],i.prototype,"selectionMode",void 0),Ul([(0,t.Property)(!1)],i.prototype,"isMultiSelect",void 0),Ul([(0,t.Event)()],i.prototype,"load",void 0),Ul([(0,t.Event)()],i.prototype,"loaded",void 0),Ul([(0,t.Event)()],i.prototype,"rangeChange",void 0),Ul([(0,t.Event)()],i.prototype,"axisLabelRender",void 0),Ul([(0,t.Event)()],i.prototype,"beforeExport",void 0),Ul([(0,t.Event)()],i.prototype,"tooltipRender",void 0),Ul([(0,t.Event)()],i.prototype,"seriesRender",void 0),Ul([(0,t.Event)()],i.prototype,"stockEventRender",void 0),Ul([(0,t.Collection)([],Il)],i.prototype,"selectedDataIndexes",void 0),Ul([(0,t.Property)([])],i.prototype,"seriesType",void 0),Ul([(0,t.Property)(["EMA","TMA","SMA","Momentum","ATR","Accumulation Distribution","Bollinger Bands","MACD","Stochastic","RSI"])],i.prototype,"indicatorType",void 0),Ul([(0,t.Property)(["PNG","JPEG","SVG","PDF","XLSX","CSV","Print"])],i.prototype,"exportType",void 0),Ul([(0,t.Property)([])],i.prototype,"trendlineType",void 0),i=o=Ul([t.NotifyPropertyChanges],i)}(t.Component),Gl=function(){function e(e){this.control=e,this.elementId=e.element.id}return e.prototype.renderLeftTooltip=function(e){this.fadeOutTooltip();var t=this.getTooltipContent(e.currentStart),i=this.getContentSize(t),o=this.control.enableRtl?e.rightRect:e.leftRect;i>o.width&&(o=e.midRect),this.leftTooltip=this.renderTooltip(o,this.createElement("_leftTooltip"),e.startX,t)},e.prototype.getContentSize=function(e){var i=this.control.tooltip.textStyle;return this.control.tooltip.template?Jt((0,t.createElement)("div",{id:"measureElement",styles:"position: absolute;"}),0,this.control.tooltip.template,this.control).getBoundingClientRect().width:(0,R.measureText)(e[0],i,this.control.themeStyle.tooltipLabelFont).width+20},e.prototype.renderRightTooltip=function(e){this.fadeOutTooltip();var t=this.getTooltipContent(e.currentEnd),i=this.getContentSize(t),o=this.control.enableRtl?e.leftRect:e.rightRect;i>o.width&&((o=e.midRect).x=this.control.series.length?0:o.x),this.rightTooltip=this.renderTooltip(o,this.createElement("_rightTooltip"),e.endX,t)},e.prototype.createElement=function(e){if(qt(this.elementId+e))return qt(this.elementId+e);var t=document.createElement("div");if(t.id=this.elementId+e,t.className="ejSVGTooltip",t.style.cssText="pointer-events:none; position:absolute;z-index: 1",this.control.stockChart){var i=this.control.stockChart;qt(i.element.id+"_Secondary_Element").appendChild(t),t.style.transform="translateY("+(i.availableSize.height-i.toolbarHeight-51+i.toolbarHeight+i.titleSize.height)+"px)"}else qt(this.elementId+"_Secondary_Element").appendChild(t);return t},e.prototype.renderTooltip=function(e,t,i,o){var r=this.control,n=r.tooltip,a={cancel:!1,name:"tooltipRender",text:o,textStyle:n.textStyle};a.textStyle.fontWeight=n.textStyle.fontWeight||this.control.themeStyle.tooltipLabelFont.fontWeight,this.control.trigger("tooltipRender",a);var l=r.svgObject.getBoundingClientRect().left-r.element.getBoundingClientRect().left;return a.cancel?null:new R.Tooltip({location:{x:i,y:r.rangeSlider.sliderY},content:a.text,marginX:2,enableShadow:!1,marginY:2,arrowPadding:8,rx:4,ry:4,inverted:r.series.length>0,areaBounds:e,fill:n.fill?n.fill:this.control.themeStyle.tooltipBackground,theme:this.control.theme,clipBounds:{x:l},border:n.border,opacity:n.opacity?n.opacity:"Material3"===this.control.theme||"Material3Dark"===this.control.theme||this.control.theme.indexOf("Bootstrap5")>-1?1:.75,template:n.template,textStyle:a.textStyle,availableSize:r.availableSize,controlName:"RangeNavigator",data:{start:this.getTooltipContent(this.control.startValue)[0],end:this.getTooltipContent(this.control.endValue)[0],value:o[0]}},t)},e.prototype.getTooltipContent=function(e){var t,i=this.control,o=i.tooltip,r=i.chartSeries.xAxis,n=o.format||r.labelFormat,a=null!==n.match("{value}"),l=r.valueType;return e="DateTimeCategory"===l?parseInt(r.labels[Math.floor(e)],10):e,l.indexOf("DateTime")>-1?t=i.intl.getDateFormat({format:n||"MM/dd/yyyy",type:kt(i.skeletonType),skeleton:"DateTime"===l?i.dateTimeModule.getSkeleton(r,null,null):i.dateTimeCategoryModule.getSkeleton(r,null,null)})(new Date(e)):(r.format=i.intl.getNumberFormat({format:a?"":n,useGrouping:i.useGroupingSeparator}),t=i.doubleModule.formatValue(r,a,n,"Logarithmic"===l?Math.pow(r.logBase,e):e)),[t]},e.prototype.fadeOutTooltip=function(){var e=this;"OnDemand"===this.control.tooltip.displayMode&&(hi(this.toolTipInterval),this.rightTooltip&&(this.toolTipInterval=+setTimeout(function(){e.leftTooltip.fadeOut(),e.rightTooltip.fadeOut()},1e3)))},e.prototype.getModuleName=function(){return"RangeTooltip"},e.prototype.destroy=function(){},e}(),Yl=function(){function e(e){this.bulletChart=e,this.isVertical="Vertical"===e.orientation,this.isLabelsInside="Inside"===e.labelPosition,this.isHorizontal="Horizontal"===e.orientation,this.isLeft="Left"===e.titlePosition,this.isRight="Right"===e.titlePosition,this.isTop="Top"===e.titlePosition,this.majorTickSize=e.majorTickLines.height,this.location=10,this.labelOffset=15,this.labelSize=parseFloat(e.labelStyle.size),this.isLabelBelow=!this.bulletChart.opposedPosition}return e.prototype.renderMajorTickLines=function(e,t){"Horizontal"===this.bulletChart.orientation?this.renderXMajorTickLines(e,t):this.renderYMajorTickLines(e,t)},e.prototype.renderMinorTickLines=function(e,t){"Horizontal"===this.bulletChart.orientation?this.renderXMinorTickLines(e,t):this.renderYMinorTickLines(e,t)},e.prototype.renderAxisLabels=function(e,t){"Horizontal"===this.bulletChart.orientation?this.renderXAxisLabels(e,t):this.renderYAxisLabels(e,t)},e.prototype.renderXMajorTickLines=function(e,t){for(var i,o,r=this.bulletChart,n=r.renderer.createGroup({id:r.svgObject.id+"_majorTickGroup"}),a=r.minimum,l=r.maximum,s=r.interval,h=r.enableRtl,c=r.initialClipRect.y+(r.opposedPosition?0:r.initialClipRect.height),d=c+(r.opposedPosition?"Inside"!==r.tickPosition?-this.majorTickSize:this.majorTickSize:"Inside"!==r.tickPosition?this.majorTickSize:-this.majorTickSize),p=r.majorTickLines,u=p.color||r.themeStyle.majorTickLineColor,g=r.initialClipRect.x+(r.enableRtl?r.initialClipRect.width:0),m=r.initialClipRect.x+p.width/2+(h?r.initialClipRect.width:0),y=a;y<=l;y+=s){(o=r.enableRtl?y===a:y===l)&&(m-=p.width/2),o=r.enableRtl?y===a:y===l,r.majorTickLines.useRangeColor&&(u=this.bindingRangeStrokes(m-(o?this.bulletChart.majorTickLines.width/2:0),g,this.bulletChart.orientation,r.enableRtl)),i=this.majorTicks(m,m,c,d,u,y);var f=r.renderer.drawLine(i);m+=h?-e:e,n.appendChild(f),t.appendChild(n)}},e.prototype.renderYMajorTickLines=function(e,t){for(var i,o,r=this.bulletChart,n=r.renderer.createGroup({id:r.svgObject.id+"_majorTickGroup"}),a=r.minimum,l=r.maximum,s=r.interval,h=r.enableRtl,c=r.initialClipRect,d=c.x+(r.opposedPosition?c.width:0),p=d-(r.opposedPosition?"Inside"!==r.tickPosition?-this.majorTickSize:this.majorTickSize:"Inside"!==r.tickPosition?this.majorTickSize:-this.majorTickSize),u=r.majorTickLines,g=u.color||r.themeStyle.majorTickLineColor,m=c.y+(r.enableRtl?0:c.height),y=c.y+u.width/2+(h?0:c.height),f=a;f<=l;f+=s){(i=r.enableRtl?f===l:f===a)&&(y-=u.width/2),i=r.enableRtl?f===a:f===l,r.majorTickLines.useRangeColor&&(g=this.bindingRangeStrokes(y-(i?this.bulletChart.majorTickLines.width/2:0),m,this.bulletChart.orientation,r.enableRtl)),o=this.majorTicks(d,p,y,y,g,f);var v=r.renderer.drawLine(o);y+=h?e:-e,n.appendChild(v),t.appendChild(n)}},e.prototype.majorTicks=function(e,t,i,o,r,n){return{id:this.bulletChart.svgObject.id+"_MajorTickLine_"+n,x1:e,y1:i,x2:t,y2:o,"stroke-width":this.bulletChart.majorTickLines.width,stroke:this.bulletChart.majorTickLines.useRangeColor&&r?r:this.bulletChart.majorTickLines.color||r}},e.prototype.bindingRangeStrokes=function(e,t,i,o){return"Vertical"===i&&!o||o&&"Horizontal"===i?this.backwardStrokeBinding(e,t):this.forwardStrokeBinding(e,t)},e.prototype.renderXMinorTickLines=function(e,t){for(var i,o,r,n,a=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_minorTickGroup"}),l=this.bulletChart,s=l.maximum,h=l.minimum,c=l.interval,d=l.minorTickLines.height,p=this.bulletChart.minorTicksPerInterval,u=l.initialClipRect.x,g=l.initialClipRect.y+(l.opposedPosition?0:l.initialClipRect.height),m=g+(l.opposedPosition?"Inside"!==l.tickPosition?-d:d:"Inside"!==l.tickPosition?d:-d),y=l.minorTickLines.color||l.themeStyle.minorTickLineColor,f=l.initialClipRect.x+(l.enableRtl?l.initialClipRect.width:0),v=h;v<s;v+=c){i=e/p;for(var b=1;b<=p;b++)o=u+i-i/(p+1),l.minorTickLines.useRangeColor&&(y=this.bindingRangeStrokes(o,f,this.bulletChart.orientation,l.enableRtl)),r=this.minorXTicks(o,o,g,m,y,v.toString()+b.toString()),n=this.bulletChart.renderer.drawLine(r),a.appendChild(n),t.appendChild(a),i=e/p*(b+1);u+=e}},e.prototype.renderYMinorTickLines=function(e,t){for(var i,o,r,n,a=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_minorTickGroup"}),l=this.bulletChart,s=l.maximum,h=l.minimum,c=l.interval,d=l.minorTickLines.height,p=this.bulletChart.minorTicksPerInterval,u=l.initialClipRect.y+(l.enableRtl?0:l.initialClipRect.height),g=l.initialClipRect.x+(l.opposedPosition?l.initialClipRect.width:0),m=g-(l.opposedPosition?"Inside"!==l.tickPosition?-d:d:"Inside"!==l.tickPosition?d:-d),y=l.minorTickLines.color||l.themeStyle.minorTickLineColor,f=l.initialClipRect.y+(l.enableRtl?0:l.initialClipRect.height),v=h;v<s;v+=c){i=e/p;for(var b=1;b<=p;b++)o=this.bulletChart.enableRtl?u+i-i/(p+1):u-i+i/(p+1),l.minorTickLines.useRangeColor&&(y=this.bindingRangeStrokes(o,f,this.bulletChart.orientation,l.enableRtl)),r=this.minorXTicks(g,m,o,o,y,v.toString()+b.toString()),n=this.bulletChart.renderer.drawLine(r),a.appendChild(n),t.appendChild(a),i=e/p*(b+1);u-=this.bulletChart.enableRtl?-e:e}},e.prototype.minorXTicks=function(e,t,i,o,r,n){return{id:this.bulletChart.svgObject.id+"_MajorTickLine_"+n,x1:e,x2:t,y1:i,y2:o,"stroke-width":this.bulletChart.minorTickLines.width,stroke:this.bulletChart.minorTickLines.useRangeColor&&r?r:this.bulletChart.minorTickLines.color||r}},e.prototype.forwardStrokeBinding=function(e,t){for(var i=this.bulletChart,o=t,r=0;r<=i.rangeCollection.length-1;r++)if(e>=(o+=r?i.rangeCollection[r-1]:0)&&e<o+i.rangeCollection[r])return i.ranges[r].color;return null},e.prototype.backwardStrokeBinding=function(e,t){for(var i=this.bulletChart,o=t,r=0;r<=i.rangeCollection.length-1;r++)if(o-=r?i.rangeCollection[r-1]:0,Math.round(e)>=Math.round(o-i.rangeCollection[r])&&e<=o)return i.ranges[r].color;return null},e.prototype.renderXAxisLabels=function(e,t){var i,o,r=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_axisLabelGroup"}),n=this.bulletChart,a=this.bulletChart.locale,l=n.enableRtl,s=(n.tickPosition===n.labelPosition?n.majorTickLines.height:0)+10,h=n.initialClipRect.y+(n.opposedPosition?"Inside"===n.labelPosition?s:-s:n.initialClipRect.height+("Inside"===n.labelPosition?-s:s)),c=n.initialClipRect.x+(l?n.initialClipRect.width:0),d=n.minimum,p=n.maximum,u=n.interval,g=a&&this.bulletChart.enableGroupSeparator,m=this.getFormat(this.bulletChart),y=n.labelStyle.color||n.themeStyle.axisLabelFont.color,f=null!==m.match("{value}");this.format=this.bulletChart.intl.getNumberFormat({format:f?"":m,useGrouping:this.bulletChart.enableGroupSeparator});var v=n.initialClipRect.x+(n.enableRtl?n.initialClipRect.width:0);h+=(0,R.measureText)(this.formatValue(this,f,m,this.bulletChart.maximum),n.labelStyle,this.bulletChart.themeStyle.axisLabelFont).height/3;for(var b=d;b<=p;b+=u){o=n.enableRtl?b===d:b===p,n.labelStyle.useRangeColor&&(y=this.bindingRangeStrokes(c-(o?this.bulletChart.majorTickLines.width/2:0),v,this.bulletChart.orientation,n.enableRtl)),i=g?b.toLocaleString(a):this.formatValue(this,f,m,b);var x=this.labelXOptions(c,h,i,b);this.bulletChart.labelStyle.fontFamily=this.bulletChart.labelStyle.fontFamily||this.bulletChart.themeStyle.axisLabelFont.fontFamily;var S=(0,R.textElement)(x,this.bulletChart.labelStyle,y,t,this.bulletChart.themeStyle.axisLabelFont);r.appendChild(S),c+=l?-e:e}t.appendChild(r)},e.prototype.labelXOptions=function(e,t,i,o){return{id:this.bulletChart.svgObject.id+"_AxisLabel_"+o,anchor:"middle",text:i,transform:"",x:e,y:t,baseLine:"",labelRotation:0}},e.prototype.renderYAxisLabels=function(e,t){var i,o,r=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_axisLabelGroup"}),n=this.bulletChart,a=n.locale,l=n.enableRtl,s=(n.tickPosition===n.labelPosition?n.majorTickLines.height:0)+10,h=n.initialClipRect.y+(l?0:n.initialClipRect.height),c=n.initialClipRect.x+(n.opposedPosition?n.initialClipRect.width+("Inside"===n.labelPosition?-(s+10):s):"Inside"===n.labelPosition?s+10:-s),d=n.minimum,p=n.maximum,u=n.interval,g=a&&this.bulletChart.enableGroupSeparator,m=n.labelStyle.color||n.themeStyle.axisLabelFont.color,y=this.getFormat(this.bulletChart),f=null!==y.match("{value}");this.format=this.bulletChart.intl.getNumberFormat({format:f?"":y,useGrouping:this.bulletChart.enableGroupSeparator});var v=n.initialClipRect.y+(n.enableRtl?0:n.initialClipRect.height),b=(0,R.measureText)(this.formatValue(this,f,y,this.bulletChart.maximum),n.labelStyle,this.bulletChart.themeStyle.axisLabelFont).width/2,x=(0,R.measureText)(this.formatValue(this,f,y,this.bulletChart.maximum),n.labelStyle,this.bulletChart.themeStyle.axisLabelFont).height/3;h+=x;for(var S=d;S<=p;S+=u){o=n.enableRtl?S===p:S===d,n.labelStyle.useRangeColor&&(m=this.bindingRangeStrokes(h-x-(o?this.bulletChart.majorTickLines.width/2:0),v,this.bulletChart.orientation,n.enableRtl)),i=g?S.toLocaleString(a):this.formatValue(this,f,y,S);var C=this.labelXOptions(c-(this.bulletChart.opposedPosition?-b:b),h,i,S);this.bulletChart.labelStyle.fontFamily=this.bulletChart.labelStyle.fontFamily||this.bulletChart.themeStyle.axisLabelFont.fontFamily;var F=(0,R.textElement)(C,this.bulletChart.labelStyle,m,t,n.themeStyle.axisLabelFont);r.appendChild(F),h+=l?e:-e}t.appendChild(r)},e.prototype.getFormat=function(e){return e.labelFormat?e.labelFormat:""},e.prototype.formatValue=function(e,t,i,o){return t?i.replace("{value}",e.format(o)):e.format(o)},e}(),Zl=function(){function e(e){this.comparative=[],this.dataSource=e.dataSource,this.isVertical="Vertical"===e.orientation,this.isTicksInside="Inside"===e.tickPosition,this.isLabelsInside="Inside"===e.labelPosition,this.isHorizontal="Horizontal"===e.orientation,this.isLeft="Left"===e.titlePosition,this.isRight="Right"===e.titlePosition,this.isTop="Top"===e.titlePosition,this.location=10,this.featureBarBounds=[],this.majorTickSize=e.majorTickLines.height,this.labelOffset=15,this.labelSize=12,this.bulletChart=e,this.isLabelBelow=!this.bulletChart.opposedPosition,this.scaleOrientation=this.bulletChart.orientation,this.rangeColor=[]}return e.prototype.drawScaleGroup=function(e){var t,i=this.bulletChart.renderer.createGroup({id:this.bulletChart.svgObject.id+"_rangeGroup"}),o=this.bulletChart.maximum,r=this.bulletChart.ranges;this.scaleSettingsGroup=e;var n=this.bulletChart,a=n.enableRtl,l=n.initialClipRect,s=l.x+(a&&"Horizontal"===n.orientation?l.width:0),h=l.y+(a||"Vertical"!==n.orientation?0:l.height),c=0;n.rangeCollection=[];for(var d=0,p="Horizontal"===n.orientation?l.width:l.height,u="Horizontal"===n.orientation?l.height:l.width,g=0;g<r.length;g++){c=p*((r[g].end-d)/o),"Horizontal"===n.orientation?s-=a?c:0:h-=a?0:c,t=new Ni(n.svgObject.id+"_range_"+g,r[g].color||this.bulletChart.themeStyle.rangeStrokes[g].color,{width:1},r[g].opacity,new R.Rect(s,h,"Horizontal"===n.orientation?c:u,"Horizontal"===n.orientation?u:c));var m=n.renderer.drawRectangle(t);i.appendChild(m),e.appendChild(i),"Horizontal"===n.orientation?s+=a?0:c:h+=a?c:0,n.rangeCollection.push(c),d=r[g].end}return this.bulletChart.rangeCollection},e.prototype.sortRangeCollection=function(e,t){return e-t},e.prototype.renderFeatureBar=function(e){0!==e&&this.renderCommonFeatureBar(e,this.isHorizontal)},e.prototype.renderCommonFeatureBar=function(e,i){for(var o,r,n,a,l=this.bulletChart,s=i?l.initialClipRect.y+l.initialClipRect.height:l.initialClipRect.x,h=l.renderer.createGroup({id:l.svgObject.id+"_featureGroup"}),c=(i?l.initialClipRect.height:l.initialClipRect.width)/e,d=0;d<e;d++){if(o=(n=l.dataSource[d])[l.categoryField],r=i?s-c*d-(c+l.valueHeight)/2:s+c*d+c/2-l.valueHeight/2,a=this.calculateFeatureMeasureBounds(n[l.valueField],o,i),n&&"Dot"===l.type){var p=n[l.valueField];a.pointX=i?a.pointX+(p>0&&!l.enableRtl||p<0&&l.enableRtl?a.width:0)-3:a.pointX+(p>0&&l.enableRtl||p<0&&!l.enableRtl?a.width:0)-3,a.width=6}if(a){var u=i?this.featureBar(a.pointX,r,a.width,d):this.verticalFeatureBar(r,a.pointX,a.width,d);if(h.appendChild(u),this.feature=u,this.scaleSettingsGroup.appendChild(h),this.featureBarBounds[d]={x:a.pointX,y:r,width:a.width,height:l.valueHeight},!(0,t.isNullOrUndefined)(o)){var g=(0,R.measureText)(o,l.categoryLabelStyle,l.themeStyle.axisLabelFont),m=i?g.width:g.height,y=l.initialClipRect,f=void 0,v=void 0;i?(f=l.enableRtl?y.x+y.width+5+m/2:y.x-5-m/2,v=this.drawcategory(f,r,o)):(f=l.enableRtl?y.y-5-m/2:y.y+y.height+5+m/2,v=this.drawcategory(r+l.valueHeight/2,f,o)),l.categoryLabelStyle.fontFamily=l.categoryLabelStyle.fontFamily||l.themeStyle.axisLabelFont.fontFamily,(0,R.textElement)(v,l.categoryLabelStyle,l.categoryLabelStyle.color||l.themeStyle.categoryFontColor,this.scaleSettingsGroup)}}(l.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&this.doValueBarAnimation()}},e.prototype.featureBar=function(e,t,i,o){var r=new Ni(this.bulletChart.svgObject.id+"_FeatureMeasure_"+o,this.bulletChart.dataSource[o][this.bulletChart.valueFill]||this.bulletChart.valueFill,this.bulletChart.valueBorder,1,new R.Rect(e,t,i,this.bulletChart.valueHeight),0,0,"",this.bulletChart.valueBorder.dashArray),n=this.bulletChart.renderer.drawRectangle(r);return n.setAttribute("class",this.bulletChart.svgObject.id+"_FeatureMeasure"),n.id=this.bulletChart.svgObject.id+"_FeatureMeasure_"+o,n.setAttribute("role","img"),n.setAttribute("tabindex","0"),n.style.outline="none",n.setAttribute("aria-label",this.bulletChart.title+", value: "+this.bulletChart.dataSource[o].value+", target: "+this.bulletChart.dataSource[o].target),n},e.prototype.verticalFeatureBar=function(e,t,i,o){var r=new Ni(this.bulletChart.svgObject.id+"_FeatureMeasure_"+o,this.bulletChart.dataSource[o][this.bulletChart.valueFill]||this.bulletChart.valueFill,this.bulletChart.valueBorder,1,new R.Rect(e,t,this.bulletChart.valueHeight,i)),n=this.bulletChart.renderer.drawRectangle(r);return n.setAttribute("class",this.bulletChart.svgObject.id+"_FeatureMeasure"),n.id=this.bulletChart.svgObject.id+"_FeatureMeasure_"+o,n.setAttribute("role","img"),n.setAttribute("tabindex","0"),n.style.outline="none",n.setAttribute("aria-label",this.bulletChart.title+", value: "+this.bulletChart.dataSource[o].value+", target: "+this.bulletChart.dataSource[o].target),n},e.prototype.drawcategory=function(e,t,i){return{id:"",anchor:"middle",x:e,y:t+(parseInt(this.bulletChart.categoryLabelStyle.size,10)/4+this.bulletChart.valueHeight/2),transform:"",text:i,baseLine:"",labelRotation:0}},e.prototype.renderComparativeSymbol=function(e){0!==e&&this.renderCommonComparativeSymbol(e,this.isHorizontal)},e.prototype.renderCommonComparativeSymbol=function(e,i){for(var o,r,n,a,l,s,h=this.bulletChart,c=h.initialClipRect,d=i?c.width:c.height,p=i?c.y+c.height:c.x,u=h.renderer.createGroup({id:h.svgObject.id+"_comparativeGroup"}),g=h.minimum,m=h.maximum,y=m-g,f=i?c.x-2.5:c.y+c.height,v=[],b=h.targetTypes,x="Rect",S=b.length,C=(i?c.height:c.width)/e,F=0;F<e;F++){o=h.dataSource[F][h.targetField],v=v.concat(o);for(var w=0;w<v.length;w++)x=b[w%S],v[w]>=g&&v[w]<=m&&(r=(l=i?p-C*F-C/2:p+C*F+C/2)-7.5,n=l+7.5,l=d/(y/(y-(m-v[w]))),a=i?f+(h.enableRtl?d-l:l):f-(h.enableRtl?d-l:l),s=this.getTargetElement(x,i,a,r,n,v[w],F),this.comparative.push(s),u.appendChild(s),r=0,n=0),this.scaleSettingsGroup.appendChild(u);v=[],(h.animation.enable&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&this.doTargetBarAnimation(0)}},e.prototype.getTargetElement=function(e,t,i,o,r,n,a){var l,s,h=this.bulletChart,c="Cross"===e?h.targetWidth-1:1,d="Circle"===e?h.targetWidth-1:h.targetWidth,p=t?i+d/2:o+(r-o)/2,u=t?o+(r-o)/2:i,g=h.svgObject.id+"_ComparativeMeasure_"+a,m=h.svgObject.id+"_ComparativeMeasure",y=h.dataSource[a][h.targetColor]||h.targetColor;if("Rect"===e)l=t?this.compareMeasure(i,o,r,a,n):this.compareVMeasure(o,r,i,a),s=h.renderer.drawLine(l);else if("Circle"===e)l=new Hi(g,y,{width:1,color:y||"black"},1,p,u,d),s=h.renderer.drawCircle(l);else{var f="M "+(p-d)+" "+(u-d)+" L "+(p+d)+" "+(u+d)+" M "+(p-d)+" "+(u+d)+" L "+(p+d)+" "+(u-d);l=new R.PathOption(g,"transparent",c,y,1,"",f),s=h.renderer.drawPath(l)}return s.setAttribute("class",m),s},e.prototype.compareMeasure=function(e,t,i,o,r){var n=this.bulletChart;return{class:n.svgObject.id+"_ComparativeMeasure",id:n.svgObject.id+"_ComparativeMeasure_"+o,x1:r===n.maximum?e-n.targetWidth/2:r===n.minimum?e+n.targetWidth/2:e,y1:t,x2:r===n.maximum?e-n.targetWidth/2:r===n.minimum?e+n.targetWidth/2:e,y2:i,"stroke-width":n.targetWidth,stroke:n.dataSource[o][n.targetColor]||n.targetColor||"black"}},e.prototype.compareVMeasure=function(e,t,i,o){var r=this.bulletChart;return{class:r.svgObject.id+"_ComparativeMeasure",id:r.svgObject.id+"_ComparativeMeasure_"+o,x1:e,y1:i,x2:t,y2:i,"stroke-width":r.targetWidth,stroke:r.dataSource[o][r.targetColor]||r.targetColor||"black"}},e.prototype.calculateFeatureMeasureBounds=function(e,i,o){var r=this.bulletChart,n=r.minimum;if((e=e<n&&n<=0?n:e)>=n){var a=void 0,l=void 0,s=void 0,h=o?r.initialClipRect.x:r.initialClipRect.y,c=o?r.initialClipRect.width:r.initialClipRect.height,d=r.maximum-r.minimum,p=r.maximum-e,u=(r.enableRtl?"backward":"forward")+this.scaleOrientation.toLowerCase();i=(0,t.isNullOrUndefined)(i)?"":i;var g=(0,R.measureText)(i.toString(),r.labelStyle,this.bulletChart.themeStyle.axisLabelFont).width;switch(u){case"forwardhorizontal":case"backwardvertical":a=h+(n>0?0:c/d*Math.abs(n)),s=c/(d/(n>0?d-p:e)),e<0&&(a-=s=Math.abs(s)),s=a+s<h+c?s:h+c-a,l=h-("forwardhorizontal"===u?g/2+5:this.labelOffset);break;default:a=h+(c-c/(d/(d-p))),s=n>0?c/(d/(d-p)):c/(d/e),e<0&&(a-=s=Math.abs(s)),a<h&&(s=a+s-h,a=h),l=h+c+("backwardhorizontal"===u?g/2+5:5)}return{pointX:a,width:s,lastPointX:l}}return null},e.prototype.doValueBarAnimation=function(){var e=this.feature;if(!e)return null;var i,o,r,n,a,l=this.bulletChart.animation,s=this.bulletChart.animateSeries?this.bulletChart.animation.duration:l.duration,h=Et("Linear"),c=this.bulletChart.dataSource<0,d=e.getBoundingClientRect().height,p=e.getBoundingClientRect().width;"Horizontal"===this.bulletChart.orientation&&e&&(o=parseInt(e.getAttribute("height"),10),i=parseInt(e.getAttribute("x"),10),n=c?o:o+d,r=i),e.style.visibility="hidden",new t.Animation({}).animate(e,{duration:0===s&&"Enable"===t.animationMode?1e3:s,delay:l.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",p=p||1,a=h(t.timeStamp-t.delay,0,p,t.duration),e.setAttribute("transform","translate("+r+" "+n+") scale("+a/p+", 1) translate("+-r+" "+-n+")"))},end:function(){e.setAttribute("transform","translate(0,0)"),e.style.visibility="visible"}})},e.prototype.doTargetBarAnimation=function(e){var t,i,o=this.comparative[e];if(!o)return null;"Horizontal"===this.bulletChart.orientation&&o&&(i=parseFloat(o.getAttribute("y1"))+parseFloat(o.getAttribute("y2")),t=parseFloat(o.getAttribute("x1"))),o.style.visibility="hidden",this.animateRect(o,t,i,e+1)},e.prototype.animateRect=function(e,i,o,r){var n,a=this,l=Et("Linear"),s=this.bulletChart.animation,h=this.comparative.length,c=this.bulletChart.animateSeries?this.bulletChart.animation.duration:s.duration;new t.Animation({}).animate(e,{duration:0===c&&"Enable"===t.animationMode?1e3:c,delay:s.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",n=l(t.timeStamp-t.delay,0,1,t.duration),e.setAttribute("transform","translate("+i+" "+o/2+") scale(1,"+n+") translate("+-i+" "+-o/2+")"))},end:function(){e.setAttribute("transform","translate(0,0)"),r<h&&a.doTargetBarAnimation(r+1)}})},e}(),ql=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ql=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},$l=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)(null)],i.prototype,"end",void 0),Ql([(0,t.Property)(1)],i.prototype,"opacity",void 0),Ql([(0,t.Property)(null)],i.prototype,"color",void 0),Ql([(0,t.Property)(null)],i.prototype,"index",void 0),Ql([(0,t.Property)(null)],i.prototype,"name",void 0),Ql([(0,t.Property)("Rectangle")],i.prototype,"shape",void 0),Ql([(0,t.Property)("")],i.prototype,"legendImageUrl",void 0),i}(t.ChildProperty),Kl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)(12)],i.prototype,"height",void 0),Ql([(0,t.Property)(1)],i.prototype,"width",void 0),Ql([(0,t.Property)(null)],i.prototype,"color",void 0),Ql([(0,t.Property)(!1)],i.prototype,"useRangeColor",void 0),i}(t.ChildProperty),Jl=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)(8)],i.prototype,"height",void 0),Ql([(0,t.Property)(1)],i.prototype,"width",void 0),Ql([(0,t.Property)(null)],i.prototype,"color",void 0),Ql([(0,t.Property)(!1)],i.prototype,"useRangeColor",void 0),i}(t.ChildProperty),es=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),Ql([(0,t.Property)("16px")],i.prototype,"size",void 0),Ql([(0,t.Property)("")],i.prototype,"color",void 0),Ql([(0,t.Property)("Normal")],i.prototype,"fontWeight",void 0),Ql([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),Ql([(0,t.Property)("Center")],i.prototype,"textAlignment",void 0),Ql([(0,t.Property)("None")],i.prototype,"textOverflow",void 0),Ql([(0,t.Property)(1)],i.prototype,"opacity",void 0),Ql([(0,t.Property)(!0)],i.prototype,"enableTrim",void 0),Ql([(0,t.Property)(null)],i.prototype,"maximumTitleWidth",void 0),Ql([(0,t.Property)(!1)],i.prototype,"useRangeColor",void 0),i}(t.ChildProperty),ts=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)(!1)],i.prototype,"enable",void 0),Ql([(0,t.Property)(null)],i.prototype,"fill",void 0),Ql([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},es)],i.prototype,"textStyle",void 0),Ql([(0,t.Complex)({color:null,width:null},u)],i.prototype,"border",void 0),Ql([(0,t.Property)(null)],i.prototype,"template",void 0),i}(t.ChildProperty),is=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)(!1)],i.prototype,"enable",void 0),Ql([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},es)],i.prototype,"labelStyle",void 0),i}(t.ChildProperty),os=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ql(i,e),Ql([(0,t.Property)(!1)],i.prototype,"visible",void 0),Ql([(0,t.Complex)({x:0,y:0},n)],i.prototype,"location",void 0),Ql([(0,t.Property)(8)],i.prototype,"padding",void 0),Ql([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Ql([(0,t.Property)(10)],i.prototype,"shapeHeight",void 0),Ql([(0,t.Property)(10)],i.prototype,"shapeWidth",void 0),Ql([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},es)],i.prototype,"textStyle",void 0),Ql([(0,t.Property)("Auto")],i.prototype,"position",void 0),Ql([(0,t.Complex)({left:0,right:0,top:0,bottom:0},m)],i.prototype,"margin",void 0),Ql([(0,t.Complex)({},u)],i.prototype,"border",void 0),Ql([(0,t.Property)(5)],i.prototype,"shapePadding",void 0),Ql([(0,t.Property)("transparent")],i.prototype,"background",void 0),Ql([(0,t.Property)(1)],i.prototype,"opacity",void 0),Ql([(0,t.Property)(3)],i.prototype,"tabIndex",void 0),i}(t.ChildProperty);function rs(e){var i="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b",o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"rgba(0,0,0,0.54)",categoryFontColor:"#666666",labelFontFamily:"SegoeUI",tooltipFill:"#000816",legendLabel:"#353535",tooltipBoldLabel:"#ffffff",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"rgba(0,0,0,0.87)",dataLabelFontColor:"#ffffff",titleFontFamily:"SegoeUI",subTitleFontColor:" rgba(0,0,0,0.54)",subTitleFontFamily:"SegoeUI",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"rgba(0, 0, 0, 1)",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"rgba(0, 0, 0, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"rgba(97, 97, 97, 1)",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"rgba(97, 97, 97, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"rgba(97, 97, 97, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"rgba(249, 250, 251, 1)",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};switch(e){case"Fabric":o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"#666666",categoryFontColor:"#666666",labelFontFamily:"SegoeUI",tooltipFill:"#FFFFFF",legendLabel:"#353535",tooltipBoldLabel:"#ffffff",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"#333333",dataLabelFontColor:"#ffffff",titleFontFamily:"SegoeUI",subTitleFontColor:"#666666",subTitleFontFamily:"SegoeUI",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#0078D6",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"#333333",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#333333",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#666666",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#666666",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#666666",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#333333",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap":o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"rgba(0,0,0,0.54)",categoryFontColor:"rgba(0,0,0,0.54)",labelFontFamily:"Helvetica",tooltipFill:"#212529",legendLabel:"#212529",tooltipBoldLabel:"rgba(255,255,255)",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"rgba(0,0,0,0.87)",dataLabelFontColor:"#ffffff",titleFontFamily:"Helvetica-Bold",subTitleFontColor:" rgba(0,0,0,0.54)",subTitleFontFamily:"Helvetica",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#317AB9",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#676767",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#676767",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"HighContrast":o={majorTickLineColor:"#FFFFFF",minorTickLineColor:"#FFFFFF",background:"#000000",labelFontColor:"#FFFFFF",categoryFontColor:"#FFFFFF",labelFontFamily:"SegoeUI",tooltipFill:"#FFFFFF",legendLabel:"#ffffff",tooltipBoldLabel:"#000000",featuredMeasureColor:"#000000",comparativeMeasureColor:"#000000",titleFontColor:"#FFFFFF",dataLabelFontColor:"#ffffff",titleFontFamily:"HelveticaNeue",subTitleFontColor:"#FFFFFF",subTitleFontFamily:"SegoeUI",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#FFD939",rangeStrokes:[{color:"#757575"},{color:"#BDBDBD"},{color:"#EEEEEE"}],titleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":o={majorTickLineColor:"#F0F0F0",minorTickLineColor:"#F0F0F0",background:i,labelFontColor:"#FFFFFF",categoryFontColor:"#FFFFFF",labelFontFamily:"Helvetica",tooltipFill:"MaterialDark"===e?"#F4F4F4":"FabricDark"===e?"#A19F9D":"#F0F0F0",legendLabel:"#DADADA",tooltipBoldLabel:"#282727",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"#FFFFFF",dataLabelFontColor:"#ffffff",titleFontFamily:"Helvetica-Bold",subTitleFontColor:"#FFFFFF",subTitleFontFamily:"Helvetica",firstRangeColor:"#8D8D8D",secondRangeColor:"#ADADAD",thirdRangeColor:"#EEEEEE",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",rangeStrokes:[{color:"#8D8D8D"},{color:"#ADADAD"},{color:"#EEEEEE"}],titleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":o={majorTickLineColor:"#424242",minorTickLineColor:"#424242",background:"#FFFFFF",labelFontColor:"#202528",categoryFontColor:"#202528",labelFontFamily:"HelveticaNeue",tooltipFill:"#212529",legendLabel:"#212529",tooltipBoldLabel:"rgba(255,255,255)",featuredMeasureColor:"#181818",comparativeMeasureColor:"#181818",titleFontColor:"#202528",dataLabelFontColor:"#ffffff",titleFontFamily:"HelveticaNeue-Bold",subTitleFontColor:"HelveticaNeue",subTitleFontFamily:"#202528",firstRangeColor:"#959595",secondRangeColor:"#BDBDBD",thirdRangeColor:"#E3E2E2",tabColor:"#007BFF",rangeStrokes:[{color:"#959595"},{color:"#BDBDBD"},{color:"#E3E2E2"}],titleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":o={majorTickLineColor:"#9CA3AF",minorTickLineColor:"#9CA3AF",background:"transparent",labelFontColor:"#4B5563",categoryFontColor:"#111827",labelFontFamily:"Inter",tooltipFill:"#111827",legendLabel:"#4B5563",tooltipBoldLabel:"#F9FAFB",featuredMeasureColor:"#1F2937",comparativeMeasureColor:"#1F2937",titleFontColor:"#111827",dataLabelFontColor:"#111827",titleFontFamily:"Inter",subTitleFontColor:"#6B7280",subTitleFontFamily:"Inter",firstRangeColor:"#9CA3AF",secondRangeColor:"#D1D5DB",thirdRangeColor:"#E5E7EB",tabColor:"#4F46E5",rangeStrokes:[{color:"#9CA3AF"},{color:"#D1D5DB"},{color:"#E5E7EB"}],titleFont:{color:"#111827",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":o={majorTickLineColor:"#4B5563",minorTickLineColor:"#4B5563",background:"transparent",labelFontColor:"#D1D5DB",categoryFontColor:"#FFFFFF",labelFontFamily:"Inter",tooltipFill:"#F9FAFB",legendLabel:"#D1D5DB",tooltipBoldLabel:"#1F2937",featuredMeasureColor:"#6B7280",comparativeMeasureColor:"#6B7280",titleFontColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",titleFontFamily:"Inter",subTitleFontColor:"#9CA3AF",subTitleFontFamily:"Inter",firstRangeColor:"#4B5563",secondRangeColor:"#374151",thirdRangeColor:"#282F3C",tabColor:"#22D3EE",rangeStrokes:[{color:"#4B5563"},{color:"#374151"},{color:"#282F3C"}],titleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":o={majorTickLineColor:"#D1D5DB",minorTickLineColor:"#D1D5DB",background:"transparent",labelFontColor:"#6B7280",categoryFontColor:"#6B7280",labelFontFamily:"Inter",tooltipFill:"#111827",legendLabel:"#374151",tooltipBoldLabel:"#F9FAFB",featuredMeasureColor:"#1F2937",comparativeMeasureColor:"#1F2937",titleFontColor:"#374151",dataLabelFontColor:"#F9FAFB",titleFontFamily:"Inter",subTitleFontColor:"#374151",subTitleFontFamily:"Inter",firstRangeColor:"#9CA3AF",secondRangeColor:"#D1D5DB",thirdRangeColor:"#E5E7EB",tabColor:"#4F46E5",rangeStrokes:[{color:"#9CA3AF"},{color:"#D1D5DB"},{color:"#E5E7EB"}],titleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":o={majorTickLineColor:"#4B5563",minorTickLineColor:"#4B5563",background:"transparent",labelFontColor:"#9CA3AF",categoryFontColor:"#9CA3AF",labelFontFamily:"Inter",tooltipFill:"#E9ECEF",legendLabel:"#D1D5DB",tooltipBoldLabel:"#1F2937",featuredMeasureColor:"#1F2937",comparativeMeasureColor:"#1F2937",titleFontColor:"#D1D5DB",dataLabelFontColor:"#D1D5DB",titleFontFamily:"Inter",subTitleFontColor:"#D1D5DB",subTitleFontFamily:"Inter",firstRangeColor:"#6B7280",secondRangeColor:"#4B5563",thirdRangeColor:"#374151",tabColor:"#22D3EE",rangeStrokes:[{color:"#6B7280"},{color:"#4B5563"},{color:"#374151"}],titleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":o={majorTickLineColor:"#CED4DA",minorTickLineColor:"#CED4DA",background:"transparent",labelFontColor:"#212529",categoryFontColor:"#212529",labelFontFamily:"Segoe UI",tooltipFill:"#000000E5",legendLabel:"#212529",tooltipBoldLabel:"#212529",featuredMeasureColor:"#343A40",comparativeMeasureColor:"#343A40",titleFontColor:"#212529",dataLabelFontColor:"#212529",titleFontFamily:"Segoe UI",subTitleFontColor:"#212529",subTitleFontFamily:"Segoe UI",firstRangeColor:"#CED4DA",secondRangeColor:"#DEE2E6",thirdRangeColor:"#E9ECEF",tabColor:"#0D6EFD",rangeStrokes:[{color:"#CED4DA"},{color:"#DEE2E6"},{color:"#E9ECEF"}],titleFont:{color:"#212529",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},subTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5Dark":o={majorTickLineColor:"#6C757D",minorTickLineColor:"#6C757D",background:"#212529",labelFontColor:"#DEE2E6",categoryFontColor:"#DEE2E6",labelFontFamily:"Segoe UI",tooltipFill:"#FFFFFFE5",legendLabel:"#DEE2E6",tooltipBoldLabel:"#212529",featuredMeasureColor:"#ADB5BD",comparativeMeasureColor:"#ADB5BD",titleFontColor:"#DEE2E6",dataLabelFontColor:"#DEE2E6",titleFontFamily:"Segoe UI",subTitleFontColor:"#DEE2E6",subTitleFontFamily:"Segoe UI",firstRangeColor:"#6C757D",secondRangeColor:"#495057",thirdRangeColor:"#343A40",tabColor:"#0D6EFD",rangeStrokes:[{color:"#6C757D"},{color:"#495057"},{color:"#343A40"}],titleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},subTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent":o={majorTickLineColor:"#C8C6C4",minorTickLineColor:"#C8C6C4",background:"rgba(255, 255, 255, 0.0001)",labelFontColor:"#3B3A39",categoryFontColor:"#3B3A39",labelFontFamily:"Segoe UI",tooltipFill:"#FFFFFF",legendLabel:"#3B3A39",tooltipBoldLabel:"#323130",featuredMeasureColor:"#A19F9D",comparativeMeasureColor:"#A19F9D",titleFontColor:"#201F1E",dataLabelFontColor:"#3B3A39",titleFontFamily:"Segoe UI",subTitleFontColor:"#201F1E",subTitleFontFamily:"Segoe UI",firstRangeColor:"#C8C6C4",secondRangeColor:"#D2D0CE",thirdRangeColor:"#EDEBE9",tabColor:"#0078D4",rangeStrokes:[{color:"#C8C6C4"},{color:"#D2D0CE"},{color:"#EDEBE9"}],titleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":o={majorTickLineColor:"#484644",minorTickLineColor:"#484644",background:"transparent",labelFontColor:"#C8C6C4",categoryFontColor:"#C8C6C4",labelFontFamily:"Segoe UI",tooltipFill:"#323130",legendLabel:"#C8C6C4",tooltipBoldLabel:"#F3F2F1",featuredMeasureColor:"#797775",comparativeMeasureColor:"#797775",titleFontColor:"#F3F2F1",dataLabelFontColor:"#C8C6C4",titleFontFamily:"Segoe UI",subTitleFontColor:"#F3F2F1",subTitleFontFamily:"Segoe UI",firstRangeColor:"#484644",secondRangeColor:"#3B3A39",thirdRangeColor:"#292827",tabColor:"#0078D4",rangeStrokes:[{color:"#484644"},{color:"#3B3A39"},{color:"#292827"}],titleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":o={majorTickLineColor:"#C8C6C4",minorTickLineColor:"#C8C6C4",background:"transparent",labelFontColor:"#C8C6C4",categoryFontColor:"#616161",labelFontFamily:"Segoe UI",tooltipFill:"#FFFFFF",legendLabel:"#242424",tooltipBoldLabel:"#242424",featuredMeasureColor:"#A19F9D",comparativeMeasureColor:"#A19F9D",titleFontColor:"#242424",dataLabelFontColor:"#424242",titleFontFamily:"Segoe UI",subTitleFontColor:"#616161",subTitleFontFamily:"Segoe UI",firstRangeColor:"#C8C6C4",secondRangeColor:"#D2D0CE",thirdRangeColor:"#EDEBE9",tabColor:"#0078D4",rangeStrokes:[{color:"#C8C6C4"},{color:"#D2D0CE"},{color:"#EDEBE9"}],titleFont:{color:"#242424",fontFamily:"Segoe UI",size:t.Browser.isDevice?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:t.Browser.isDevice?"14px":"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":o={majorTickLineColor:"#484644",minorTickLineColor:"#484644",background:"transparent",labelFontColor:"#ADADAD",categoryFontColor:"#ADADAD",labelFontFamily:"Segoe UI",tooltipFill:"#292929",legendLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",featuredMeasureColor:"#8A8886",comparativeMeasureColor:"#8A8886",titleFontColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",titleFontFamily:"Segoe UI",subTitleFontColor:"#ADADAD",subTitleFontFamily:"Segoe UI",firstRangeColor:"#484644",secondRangeColor:"#3B3A39",thirdRangeColor:"#292827",tabColor:"#0078D4",rangeStrokes:[{color:"#484644"},{color:"#3B3A39"},{color:"#292827"}],titleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:t.Browser.isDevice?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:t.Browser.isDevice?"14px":"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":o={majorTickLineColor:"#484644",minorTickLineColor:"#484644",background:"transparent",labelFontColor:"#FFFFFF",categoryFontColor:"#FFFFFF",labelFontFamily:"Segoe UI",tooltipFill:"#000000",legendLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",featuredMeasureColor:"#8A8886",comparativeMeasureColor:"#8A8886",titleFontColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",titleFontFamily:"Segoe UI",subTitleFontColor:"#FFFFFF",subTitleFontFamily:"Segoe UI",firstRangeColor:"#484644",secondRangeColor:"#3B3A39",thirdRangeColor:"#292827",tabColor:"#0078D4",rangeStrokes:[{color:"#484644"},{color:"#3B3A39"},{color:"#292827"}],titleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:t.Browser.isDevice?"16px":"14px",fontStyle:"Normal",fontWeight:"600"},subTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:t.Browser.isDevice?"14px":"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":o={majorTickLineColor:"#C4C7C5",minorTickLineColor:"#C4C7C5",background:"transparent",labelFontColor:"#1E192B",categoryFontColor:"#1E192B",labelFontFamily:"Roboto",tooltipFill:"#313033",legendLabel:"#49454E",tooltipBoldLabel:"#F4EFF4",featuredMeasureColor:"#79747E",comparativeMeasureColor:"#79747E",titleFontColor:"#1C1B1F",dataLabelFontColor:"#49454E",titleFontFamily:"Roboto",subTitleFontColor:"#1C1B1F",subTitleFontFamily:"Roboto",firstRangeColor:"#a6a6a9",secondRangeColor:"#C4C7C5",thirdRangeColor:"#E7E0EC",tabColor:"#49454E",rangeStrokes:[{color:"#a6a6a9"},{color:"#C4C7C5"},{color:"#E7E0EC"}],titleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":o={majorTickLineColor:"#444746",minorTickLineColor:"#444746",background:"transparent",labelFontColor:"#E6E1E5",categoryFontColor:"#E6E1E5",labelFontFamily:"Roboto",tooltipFill:"#E6E1E5",legendLabel:"#CAC4D0",tooltipBoldLabel:"#313033",featuredMeasureColor:"#938F99",comparativeMeasureColor:"#938F99",titleFontColor:"#E6E1E5",dataLabelFontColor:"#CAC4D0",titleFontFamily:"Roboto",subTitleFontColor:"#E6E1E5",subTitleFontFamily:"Roboto",firstRangeColor:"rgba(147,143,153,0.4)",secondRangeColor:"#444746",thirdRangeColor:"#49454F",tabColor:"#CAC4D0",rangeStrokes:[{color:"rgba(147,143,153,0.4)"},{color:"#444746"},{color:"#49454F"}],titleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"500"},subTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},dataLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"}}}return o}var ns=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),as=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ls=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.bulletid=57726,o.animateSeries=!0,o.padding=5,o.leftSize=0,o.rightSize=0,o.topSize=0,o.bottomSize=0,o.maxLabelSize=new R.Size(0,0),o.maxTitleSize=new R.Size(0,0),o.intervalDivs=[10,5,2,1],o.currentLegendIndex=0,o.previousTargetId="",o}return ns(i,e),i.prototype.preRender=function(){this.allowServerDataBinding=!1,this.unWireEvents(),this.initPrivateValues(),this.setCulture(),this.wireEvents()},i.prototype.initPrivateValues=function(){if(this.delayRedraw=!1,this.scale=new Zl(this),this.bulletAxis=new Yl(this),""===this.element.id){var e=document.getElementsByClassName("e-BulletChart").length;this.element.id="BulletChart_"+this.bulletid+"_"+e}},i.prototype.setCulture=function(){this.intl=new t.Internationalization},i.prototype.render=function(){var e=this,t={bulletChart:this,theme:this.theme,name:"load"};this.trigger("load",t,function(){e.setTheme(),e.createSvg(e),e.findRange(),e.bulletChartLegendModule&&e.legendSettings.visible&&(e.calculateVisibleElements(),e.bulletChartLegendModule.getLegendOptions(e.visibleRanges)),e.calculatePosition(),e.renderBulletElements(),e.trigger("loaded",{bulletChart:e}),e.allowServerDataBinding=!0,e.renderComplete()})},i.prototype.setTheme=function(){this.themeStyle=rs(this.theme),null!==this.targetColor&&"#191919"!==this.targetColor&&null!=this.valueFill||!(this.theme.indexOf("Fluent")>-1||this.theme.indexOf("Bootstrap5")>-1||this.theme.indexOf("Tailwind3")>-1)||(this.valueFill=this.valueFill?this.valueFill:"FluentDark"===this.theme?"#797775":"Bootstrap5"===this.theme?"#343A40":"Tailwind3"===this.theme?"#1F2937":"Tailwind3Dark"===this.theme?"#6B7280":"#A19F9D",this.targetColor="#191919"===this.targetColor?"FluentDark"===this.theme?"#797775":"Bootstrap5"===this.theme?"#343A40":"Tailwind3"===this.theme?"#1F2937":"Tailwind3Dark"===this.theme?"#6B7280":"#A19F9D":this.targetColor),null!==this.targetColor&&"#191919"!==this.targetColor&&null!=this.valueFill||!(this.theme.indexOf("Material3")>-1||this.theme.indexOf("Bootstrap5")>-1)||(this.valueFill=this.valueFill?this.valueFill:"Material3Dark"===this.theme?"#938F99":"Bootstrap5Dark"===this.theme?"#343A40":"#79747E",this.targetColor="#191919"===this.targetColor?"Material3Dark"===this.theme?"#938F99":"Bootstrap5Dark"===this.theme?"#343A40":"#79747E":this.targetColor)},i.prototype.findRange=function(){if(this.minimum||(this.minimum=0),!this.maximum&&this.ranges.length){this.maximum=0;for(var e=0;e<this.ranges.length;e++)this.maximum=this.maximum>this.ranges[e].end?this.maximum:this.ranges[e].end}if(null===this.maximum)if((0,t.isNullOrUndefined)(this.dataSource))this.maximum=10;else for(e=0;e<Object.keys(this.dataSource).length;e++)this.dataSource[e][this.targetField]>this.dataSource[e][this.valueField]?this.maximum=this.maximum>this.dataSource[e][this.targetField]?this.maximum+this.interval:this.dataSource[e][this.targetField]+this.interval:this.maximum=this.maximum>this.dataSource[e][this.valueField]?this.maximum+this.interval:this.dataSource[e][this.valueField]+this.interval;this.interval||(this.interval=this.calculateNumericNiceInterval(this.maximum-this.minimum))},i.prototype.getActualDesiredIntervalsCount=function(e){var t="Horizontal"===this.orientation?e.width:e.height,i=3*("Horizontal"===this.orientation?.533:1);return i=Math.max(t*(i/100),1)},i.prototype.calculateNumericNiceInterval=function(e){for(var t=this.getActualDesiredIntervalsCount(this.availableSize),i=e/t,o=Math.pow(10,Math.floor(et(i,10))),r=0,n=this.intervalDivs;r<n.length;r++){var a=o*n[r];if(t<e/a)break;i=a}return i},i.prototype.setSecondaryElementPosition=function(){var e=qt(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=qt(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px",e.style.position="relative"}},i.prototype.createSvg=function(e){this.removeSvg(),e.renderer=new R.SvgRenderer(e.element.id),this.calculateAvailableSize(this),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),this.renderChartBackground()},i.prototype.renderChartBackground=function(){var e=new Ni(this.element.id+"_ChartBorder",this.themeStyle.background,{width:this.border.width||0,color:this.border.color||"transparent"},1,new R.Rect(0,0,this.availableSize.width,this.availableSize.height),0,0,"",this.border.dashArray);this.svgObject.appendChild(this.renderer.drawRectangle(e))},i.prototype.renderBulletElements=function(){var e=this.renderer.createGroup({id:this.svgObject.id+"_scaleGroup"});this.renderBulletChartTitle(),this.svgObject.appendChild(e),this.rangeCollection=this.scale.drawScaleGroup(e);var t=("Horizontal"===this.orientation?this.initialClipRect.width:this.initialClipRect.height)/((this.maximum-this.minimum)/this.interval);this.bulletAxis.renderMajorTickLines(t,e),this.bulletAxis.renderMinorTickLines(t,e),this.bulletAxis.renderAxisLabels(t,e),this.bulletChartRect.x="Left"===this.titlePosition||"Right"===this.titlePosition||"Vertical"===this.orientation?this.bulletChartRect.x:0;var i=this.element.id;if("g"!==this.element.tagName){var o=Pi(this.redraw,i+"_Secondary_Element")||this.createElement("div");o.id=i+"_Secondary_Element",ni(!1,this.element,o,this.redraw)}this.tooltip.enable&&ni(!1,this.svgObject,this.renderer.createGroup({id:i+"_UserInteraction",style:"pointer-events:none;"}),this.redraw),this.bindData(),this.renderDataLabel(),this.renderBulletLegend(),this.element.appendChild(this.svgObject),this.setSecondaryElementPosition()},i.prototype.renderBulletLegend=function(){if(this.bulletChartLegendModule&&this.bulletChartLegendModule.legendCollections.length){this.bulletChartLegendModule.calTotalPage=!0;var e=this.bulletChartLegendModule.legendBounds;this.bulletChartLegendModule.renderLegend(this,this.legendSettings,e)}},i.prototype.bulletResize=function(){var e=this;this.animateSeries=!1;var t={chart:this,name:ae,currentSize:new R.Size(0,0),previousSize:new R.Size(this.availableSize.width,this.availableSize.height)};return this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){e.isDestroyed?clearTimeout(e.resizeTo):(e.createSvg(e),t.currentSize=e.availableSize,e.trigger(ae,t),e.calculatePosition(),e.renderBulletElements())},500),!1},i.prototype.bindData=function(){null!=this.dataSource&&(this.dataCount=this.dataSource.length,this.drawMeasures(this.dataCount))},i.prototype.drawMeasures=function(e){this.scale.renderFeatureBar(e),this.scale.renderComparativeSymbol(e)},i.prototype.calculatePosition=function(){var e=this.margin,t=0,i=0,o=new R.Size(0,0);this.titleCollections=[],this.subTitleCollections=[];var r=0,n=0,a=5;if(this.title){this.titleCollections=Ti(this.title,this.titleStyle,this.titleStyle.maximumTitleWidth,this.enableRtl,this.themeStyle.titleFont),t=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.titleFont).height*this.titleCollections.length+5;for(var l=0,s=this.titleCollections;l<s.length;l++){var h=s[l];r=(o=(0,R.measureText)(h,this.titleStyle,this.themeStyle.titleFont)).width>r?o.width:r,n=o.height>n?o.height:n}if(a+=n,this.subTitleCollections=Ti(this.subtitle,this.subtitleStyle,this.titleStyle.maximumTitleWidth,this.enableRtl),this.subtitle){for(var c=0,d=this.subTitleCollections;c<d.length;c++){var p=d[c];r=(o=(0,R.measureText)(p,this.subtitleStyle,this.themeStyle.subTitleFont)).width>r?o.width:r,n=o.height>n?o.height:n}i=(0,R.measureText)(this.subtitle,this.subtitleStyle,this.themeStyle.subTitleFont).height*this.subTitleCollections.length+5,a+=n}}this.maxTitleSize=new R.Size(r,"Vertical"===this.orientation?a:n),this.maxLabelSize=this.getMaxLabelWidth(),this.initialClipRect=this.getBulletBounds("Vertical"===this.orientation?a:r,t,i,e),this.bulletChartRect=new R.Rect(this.initialClipRect.x,this.initialClipRect.y,this.initialClipRect.width,this.initialClipRect.height),this.bulletChartLegendModule&&this.bulletChartLegendModule.calculateLegendBounds(this.initialClipRect,this.availableSize,this.maxLabelSize)},i.prototype.getBulletBounds=function(e,t,i,o){var r=new R.Rect(0,0,0,0),n=this.enableRtl,a=this.labelPosition===this.tickPosition?5:0,l="Inside"===this.tickPosition?0:this.majorTickLines.height,s="Inside"===this.labelPosition?0:5+("Outside"===this.tickPosition?0:(0,R.measureText)(this.maximum.toString(),this.labelStyle,this.themeStyle.dataLabelFont).height),h=0,c=0,d=0,p=0,u=0,g=0,m=0,y=0,f=e,v=this.bulletAxis.getFormat(this),b=null!==v.match("{value}");this.bulletAxis.format=this.intl.getNumberFormat({format:b?"":v,useGrouping:this.enableGroupSeparator});var x,S=(0,R.measureText)(this.bulletAxis.formatValue(this.bulletAxis,b,v,this.maximum),this.labelStyle,this.themeStyle.axisLabelFont).width;switch("Horizontal"===this.orientation?(x=this.maxLabelSize.width,h=this.opposedPosition?l+s+a:0,c=this.opposedPosition?0:l+s+a,m=x&&!n?x:0,m+=f&&"Left"===this.titlePosition?15:0,y=x&&n?x:0,y+=f&&"Right"===this.titlePosition?5:0):(x=this.maxLabelSize.height,p=this.opposedPosition?l+a:0,p+=this.opposedPosition&&"Inside"!==this.labelPosition?S:0,d=this.opposedPosition?0:l+a,d+=this.opposedPosition||"Inside"===this.labelPosition?0:S,u=x&&n?x+5:0,g=x&&!n?x+5:0),this.titlePosition){case"Left":r.x=o.left+f+m+d,r.width=this.availableSize.width-o.right-r.x-y-p<0?0:this.availableSize.width-o.right-r.x-y-p,r.y=o.top+h+u,r.height=this.availableSize.height-r.y-o.bottom-c-g<0?0:this.availableSize.height-r.y-o.bottom-c-g;break;case"Right":r.x=o.left+m+d,r.width=this.availableSize.width-p-o.right-r.x-(f+5)-y<0?0:this.availableSize.width-p-o.right-r.x-(f+5)-y,r.y=o.top+h+u,r.height=this.availableSize.height-r.y-o.bottom-c-g<0?0:this.availableSize.height-r.y-o.bottom-c-g;break;case"Top":r.x=o.left+d+m,r.width=this.availableSize.width-o.right-r.x-y-p<0?0:this.availableSize.width-o.right-r.x-y-p,r.y=o.top+(t+i)+h+u,r.height=this.availableSize.height-r.y-o.bottom-c-g<0?0:this.availableSize.height-r.y-o.bottom-c-g;break;case"Bottom":r.x=o.left+d+m,r.y=o.top+h+u,r.width=this.availableSize.width-o.right-r.x-y-p<0?0:this.availableSize.width-o.right-r.x-y-p,r.height=this.availableSize.height-r.y-g-o.bottom-c-(t+i)<0?0:this.availableSize.height-r.y-g-o.bottom-c-(t+i)}return r},i.prototype.getMaxLabelWidth=function(){if(this.maxLabelSize=new R.Size(0,0),!this.categoryField)return this.maxLabelSize;var e;if(!(0,t.isNullOrUndefined)(this.dataSource))for(var i=0,o=Object.keys(this.dataSource).length;i<o;i++)(e=(0,R.measureText)(this.dataSource[i][this.categoryField]||"",this.categoryLabelStyle,this.themeStyle.axisLabelFont)).width>this.maxLabelSize.width&&(this.maxLabelSize.width=e.width),e.height>this.maxLabelSize.height&&(this.maxLabelSize.height=e.height);return this.maxLabelSize},i.prototype.calculateVisibleElements=function(){var e,t=this.ranges;this.visibleRanges=[];for(var i=0,o=t.length;i<o;i++)(e=t[i]).index=i,this.visibleRanges.push(e),t[i]=e},i.prototype.renderBulletChartTitle=function(){var e=this.margin,t=0,i=0,o="middle",r="",n=this.titleStyle.textAlignment,a=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.titleFont),l=this.subtitle?(0,R.measureText)(this.subtitle,this.subtitleStyle,this.themeStyle.subTitleFont):new R.Size(0,0);if(this.title){if("Horizontal"===this.orientation)switch(this.titlePosition){case"Top":t=this.findHorizontalAlignment(e),o="Far"===n?"end":"Near"===n?"start":"middle",i=e.top+a.height/2+5;break;case"Bottom":t=this.findHorizontalAlignment(e),o="Far"===n?"end":"Near"===n?"start":"middle",i=this.availableSize.height-e.bottom-a.height/3+10-(l.height?l.height+5:0);break;case"Left":o="end",t=e.left+this.maxTitleSize.width,i=this.margin.top+this.availableSize.height/2-a.height/3-(l.height?l.height:0);break;case"Right":o="start",t=this.availableSize.width-e.right-this.maxTitleSize.width+5,i=this.margin.top+this.availableSize.height/2-a.height/3-(l.height?l.height:0)}else{switch(this.titlePosition){case"Top":t=this.availableSize.width/2+10,i=this.margin.top+a.height/2+5;break;case"Bottom":t=this.availableSize.width/2,i=this.availableSize.height-this.margin.bottom-a.height/3+10-(l.height?l.height+5:0);break;case"Left":i=this.findVerticalAlignment(e),o="Far"===n?"start":"Near"===n?"end":"middle",t=e.left;break;case"Right":t=this.availableSize.width-e.right-a.height/3,o="Far"===n?"start":"Near"===n?"end":"middle",i=this.findVerticalAlignment(e)}r="Left"===this.titlePosition?"rotate(-90,"+t+","+i+")":"Right"===this.titlePosition?"rotate(90,"+t+","+i+")":""}var s=new R.TextOption(this.element.id+"_BulletChartTitle",t,i,o,this.titleCollections,r,"auto"),h=Di(this.renderer,s,this.titleStyle,this.titleStyle.color||this.themeStyle.titleFont.color,this.svgObject,null,null,null,null,null,null,0,null,null,null,this.themeStyle.titleFont);h&&(h.setAttribute("aria-label",this.title+". Syncfusion interactive chart."),h.setAttribute("tabindex","0"),h.style.outline="none",h.setAttribute("role","img")),this.subtitle&&this.renderBulletChartSubTitle(t,i,o)}},i.prototype.renderDataLabel=function(){var e,t,i,o=0,r=0,n=this.enableRtl,a=this.dataLabel.labelStyle.textAlignment,l=this.labelFormat?this.labelFormat:"",s=null!==l.match("{value}");if(this.dataLabel.enable)for(var h=0,c=Object.keys(this.dataSource).length;h<c;h++){t=this.dataSource[h],i=this.scale.featureBarBounds[h];var d=t[this.valueField].toString();this.format=this.intl.getNumberFormat({format:s?"":l,useGrouping:this.enableGroupSeparator}),d=s?l.replace("{value}",this.format(d)):d;var p=(0,R.measureText)(d,this.dataLabel.labelStyle,this.themeStyle.axisLabelFont),u=p.width,g=p.height;"Horizontal"===this.orientation?(e="Rect"===this.type||n?"end":"start",(o=this.findTextAlignment(i,u,a))-u<this.initialClipRect.x&&(e="start"),o>this.initialClipRect.width&&(o-=u),r=i.y+i.height/2):(e="middle",o=i.y+i.height/2,(r=this.findTextAlignment(i,u,a))+g/2>this.initialClipRect.height+this.initialClipRect.y&&(r-=g/3));var m=new R.TextOption(this.element.id+"_DataLabel_"+h,o,r,e,d,"","middle");Di(this.renderer,m,this.dataLabel.labelStyle,this.dataLabel.labelStyle.color||this.themeStyle.dataLabelFont.color,this.svgObject,null,null,null,null,null,null,0,null,null,null,this.themeStyle.dataLabelFont)}},i.prototype.findTextAlignment=function(e,t,i){var o=10,r=0;switch(i){case"Center":r=e.x+e.width/2;break;case"Near":r=e.x+("Horizontal"===this.orientation?this.enableRtl?e.width-5:5:this.enableRtl?o:e.width);break;case"Far":r=e.x+("Horizontal"===this.orientation?(this.enableRtl?"Rect"===this.type?t+o:-10:e.width)+("Rect"===this.type?-5:5):(this.enableRtl?e.width+("Rect"===this.type?-10:o):0)+("Rect"===this.type?o:-10))}return r},i.prototype.findHorizontalAlignment=function(e){var t=0;switch(this.titleStyle.textAlignment){case"Center":t=(this.availableSize.width-e.left-e.right)/2;break;case"Near":t=e.left;break;case"Far":t=this.availableSize.width-e.right}return t},i.prototype.findVerticalAlignment=function(e){var t=0;switch(this.titleStyle.textAlignment){case"Center":t=(this.availableSize.height-e.top-e.bottom)/2;break;case"Near":t=e.top;break;case"Far":t=this.availableSize.height-e.bottom}return t},i.prototype.renderBulletChartSubTitle=function(e,t,i){var o=this.margin,r="",n=(0,R.measureText)(this.subtitle,this.subtitleStyle,this.themeStyle.subTitleFont);if("Horizontal"===this.orientation)switch(this.titlePosition){case"Top":case"Left":case"Right":t=t+n.height+2.5;break;case"Bottom":t=this.availableSize.height-o.bottom-n.height/3+5}else{switch(this.titlePosition){case"Top":t=t+n.height+2.5;break;case"Bottom":t=this.availableSize.height-o.bottom-n.height/3+5;break;case"Left":e+=n.height+2.5;break;case"Right":e-=n.height+2.5}r="Left"===this.titlePosition?"rotate(-90,"+e+","+t+")":"Right"===this.titlePosition?"rotate(90,"+e+","+t+")":""}var a=new R.TextOption(this.element.id+"_BulletChartSubTitle",e,t,i,this.subTitleCollections,r,"auto"),l=Di(this.renderer,a,this.subtitleStyle,this.subtitleStyle.color||this.themeStyle.subTitleFont.color,this.svgObject,null,null,null,null,null,null,0,null,null,null,this.themeStyle.subTitleFont);l&&(l.setAttribute("aria-label",this.subtitle),l.setAttribute("tabindex","0"),l.style.outline="none",l.setAttribute("role","img"))},i.prototype.calculateAvailableSize=function(e){var t=this.element.clientWidth||this.element.offsetWidth||200,i="Vertical"===this.orientation?450:"Left"===this.titlePosition||"Right"===this.titlePosition?83:126,o=this.element.clientHeight||i;e.availableSize=new R.Size(Li(e.width,t)||t,Li(e.height,o)||o)},i.prototype.removeSvg=function(){var e=document.getElementById(this.element.id+"_svg");e&&(0,t.remove)(e)},i.prototype.getPersistData=function(){return this.addOnPersist(["loaded"])},i.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.bulletMouseDown),t.EventHandler.remove(this.element,i,this.bulletMouseMove),t.EventHandler.remove(this.element,o,this.bulletMouseLeave),t.EventHandler.remove(this.element,"click",this.bulletChartOnMouseClick),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound)},i.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.bulletMouseMove,this),t.EventHandler.add(this.element,e,this.bulletMouseLeave,this),t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.bulletMouseDown,this),t.EventHandler.add(this.element,"click",this.bulletChartOnMouseClick,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),this.resizeBound=this.bulletResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.setStyle(this.element)},i.prototype.chartKeyDown=function(e){"Tab"===e.code&&this.removeNavigationStyle()},i.prototype.setStyle=function(e){e.style.position="relative",e.style.display="block"},i.prototype.bulletMouseMove=function(e){var i=e.clientX,o=e.clientY;this.setPointMouseXY(i,o);var r=e.target.id,n=e.target.className.baseVal;if((n!==this.svgObject.id+"_FeatureMeasure"||(this.svgObject.id,1))&&!(0,t.isNullOrUndefined)(this.dataSource))for(var a=0;a<Object.keys(this.dataSource).length;a++)document.getElementById(this.svgObject.id+"_FeatureMeasure_"+a).setAttribute("opacity","1"),document.getElementById(this.svgObject.id+"_ComparativeMeasure_"+a).setAttribute("opacity","1");if(!this.isTouchEvent(e)){var l="tooltipDiv"+this.element.id,s=document.getElementById(l);s&&(this.isReact&&this.clearTemplate(),(0,t.remove)(s)),this.bulletTooltipModule&&(this.bulletTooltipModule._elementTooltip(e,n,r,this.mouseX),this.bulletTooltipModule._displayTooltip(e,n,r,this.mouseX,this.mouseY))}},i.prototype.setPointMouseXY=function(e,t){var i=qt(this.svgObject.id).getBoundingClientRect(),o=this.element.getBoundingClientRect();this.mouseX=e-o.left-Math.max(i.left-o.left,0),this.mouseY=t-o.top-Math.max(i.top-o.top,0)},i.prototype.bulletMouseLeave=function(e){if(!this.isTouchEvent(e)){var i=document.getElementById(".tooltipDiv"+this.element.id);i&&(this.isReact&&this.clearTemplate(),(0,t.remove)(i))}},i.prototype.isTouchEvent=function(e){return"touch"===e.pointerType||e.type.indexOf("touch")>-1},i.prototype.bulletMouseDown=function(e){var i,o,r;if("touchstart"===e.type?(this.isTouch=!0,i=(r=e).changedTouches[0].clientX,o=r.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY),this.setPointMouseXY(i,o),this.isTouchEvent(e)){this.isReact&&this.clearTemplate();var n=document.getElementById("tooltipDiv"+this.element.id);n&&(0,t.remove)(n);var a=e.target.id,l=e.target.className.baseVal;this.bulletTooltipModule&&(this.bulletTooltipModule._elementTooltip(e,l,a,this.mouseX),this.bulletTooltipModule._displayTooltip(e,l,a,this.mouseX,this.mouseY))}this.removeNavigationStyle()},i.prototype.bulletChartOnMouseClick=function(e){var t=e.target;return this.trigger(Ce,{target:t.id,x:this.mouseX,y:this.mouseY}),this.notify("click",e),this.removeNavigationStyle(),!1},i.prototype.print=function(e){new zo(this).print(e)},i.prototype.export=function(e,t,i,o,r,n,a){o=o||[this],new sa(this).export(e,t,i,o,r,n,a)},i.prototype.chartKeyUp=function(e){var t,i=e.target.id,o=e.target,r=qt(this.element.id+"_chart_legend_translate_g");if(this.removeNavigationStyle(),"Tab"===e.code&&this.setNavigationStyle(i),r){var n=r.firstElementChild,a=n.getAttribute("class");a&&-1===a.indexOf("e-bullet-chart-focused")?a+=" e-bullet-chart-focused":a||(a="e-bullet-chart-focused"),n.setAttribute("class",a)}if("Tab"===e.code)""!==this.previousTargetId&&this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===i.indexOf("_chart_legend_g_")&&(t=qt(this.element.id+"_chart_legend_translate_g"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild)),this.previousTargetId=i;else if(e.code.indexOf("Arrow")>-1&&(e.preventDefault(),i.indexOf("_chart_legend_")>-1)){var l=o.parentElement.children;l[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,l.length);var s=l[this.currentLegendIndex];this.focusChild(s),this.removeNavigationStyle(),this.setNavigationStyle(s.id),i=s.children[1].id}return!1},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.themeStyle.tabColor)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("[id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_title], text[id*=_BulletChartTitle] ,g[id*=_chart_legend]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&e.style.setProperty("outline","none")})},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-bullet-chart-focused")?t="e-bullet-chart-focused "+t:t||(t="e-bullet-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.onPropertyChanged=function(t){var i=!1,o=!1;if(this.animateSeries=!1,!this.delayRedraw){for(var r=0,n=Object.keys(t);r<n.length;r++){switch(n[r]){case"height":case"width":this.createSvg(this),o=!0;break;case"subtitle":case"title":case"minimum":case"maximum":case"interval":case"majorTickLines":case"minorTickLines":case"type":case"ranges":case"valueFill":case"targetColor":o=!0;break;case"tickPosition":case"labelPosition":case"titlePosition":case"border":case"opposedPosition":i=!0;break;case"titleStyle":t.titleStyle?o=!0:i=!0;break;case"subtitleStyle":t.subtitleStyle&&(t.subtitleStyle.size||t.subtitleStyle.textOverflow)?o=!0:i=!0;break;case"dataSource":this.bindData(),o=!0;break;case"theme":this.animateSeries=!0;break;case"enableRtl":case"locale":case"currencyCode":e.prototype.refresh.call(this)}}!o&&i&&(this.removeSvg(),this.renderBulletElements(),this.trigger("loaded",{bulletChart:this})),o&&(this.render(),this.trigger("loaded",{bulletChart:this}),this.redraw=!1)}},i.prototype.requiredModules=function(){for(var e,t=[],i=0;i<this.ranges.length;i++)null!==this.ranges[i].name&&(e=!0);return this.isLegend=this.legendSettings.visible&&(e||!!this.isLegend||""!==this.targetField||""!==this.valueField),this.tooltip.enable&&t.push({member:"BulletTooltip",args:[this]}),this.isLegend&&t.push({member:"BulletChartLegend",args:[this]}),t},i.prototype.getModuleName=function(){return"bulletChart"},i.prototype.destroy=function(){this.unWireEvents(),e.prototype.destroy.call(this),this.removeSvg(),this.svgObject=null,this.element.classList.remove("e-BulletChart"),this.element.innerText="";var t=document.getElementById(this.element.id+"Keyboard_bullet_chart_focus");t&&t.remove(),Je("chartmeasuretext")},as([(0,t.Property)(null)],i.prototype,"width",void 0),as([(0,t.Property)(null)],i.prototype,"height",void 0),as([(0,t.Property)(null)],i.prototype,"locale",void 0),as([(0,t.Complex)({},Kl)],i.prototype,"majorTickLines",void 0),as([(0,t.Complex)({},Jl)],i.prototype,"minorTickLines",void 0),as([(0,t.Property)(null)],i.prototype,"minimum",void 0),as([(0,t.Property)(null)],i.prototype,"maximum",void 0),as([(0,t.Property)(null)],i.prototype,"interval",void 0),as([(0,t.Property)(4)],i.prototype,"minorTicksPerInterval",void 0),as([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},es)],i.prototype,"labelStyle",void 0),as([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},es)],i.prototype,"categoryLabelStyle",void 0),as([(0,t.Property)("")],i.prototype,"labelFormat",void 0),as([(0,t.Property)("")],i.prototype,"title",void 0),as([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},es)],i.prototype,"titleStyle",void 0),as([(0,t.Property)("")],i.prototype,"subtitle",void 0),as([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},es)],i.prototype,"subtitleStyle",void 0),as([(0,t.Property)("Horizontal")],i.prototype,"orientation",void 0),as([(0,t.Complex)({color:"#DDDDDD",width:0},u)],i.prototype,"border",void 0),as([(0,t.Complex)({},ts)],i.prototype,"tooltip",void 0),as([(0,t.Collection)([{end:null,opacity:1,color:""},{end:null,opacity:1,color:""},{end:null,opacity:1,color:""}],$l)],i.prototype,"ranges",void 0),as([(0,t.Property)("Outside")],i.prototype,"labelPosition",void 0),as([(0,t.Property)("Outside")],i.prototype,"tickPosition",void 0),as([(0,t.Property)("Top")],i.prototype,"titlePosition",void 0),as([(0,t.Property)(!1)],i.prototype,"opposedPosition",void 0),as([(0,t.Property)("Material")],i.prototype,"theme",void 0),as([(0,t.Complex)({},y)],i.prototype,"animation",void 0),as([(0,t.Complex)({},is)],i.prototype,"dataLabel",void 0),as([(0,t.Complex)({},os)],i.prototype,"legendSettings",void 0),as([(0,t.Property)(!1)],i.prototype,"enableGroupSeparator",void 0),as([(0,t.Complex)({top:15,bottom:10,left:15,right:15},m)],i.prototype,"margin",void 0),as([(0,t.Property)(5)],i.prototype,"targetWidth",void 0),as([(0,t.Property)("#191919")],i.prototype,"targetColor",void 0),as([(0,t.Property)(6)],i.prototype,"valueHeight",void 0),as([(0,t.Property)(null)],i.prototype,"valueFill",void 0),as([(0,t.Complex)({color:"transparent",width:0},u)],i.prototype,"valueBorder",void 0),as([(0,t.Property)(null)],i.prototype,"dataSource",void 0),as([(0,t.Property)(null)],i.prototype,"query",void 0),as([(0,t.Property)(null)],i.prototype,"categoryField",void 0),as([(0,t.Property)("Rect")],i.prototype,"type",void 0),as([(0,t.Property)("")],i.prototype,"valueField",void 0),as([(0,t.Property)("")],i.prototype,"targetField",void 0),as([(0,t.Property)(["Rect","Cross","Circle"])],i.prototype,"targetTypes",void 0),as([(0,t.Property)(0)],i.prototype,"tabIndex",void 0),as([(0,t.Event)()],i.prototype,"tooltipRender",void 0),as([(0,t.Event)()],i.prototype,"load",void 0),as([(0,t.Event)()],i.prototype,"loaded",void 0),as([(0,t.Event)()],i.prototype,"bulletChartMouseClick",void 0),as([(0,t.Event)()],i.prototype,"legendRender",void 0),as([(0,t.Event)()],i.prototype,"beforePrint",void 0),i=as([t.NotifyPropertyChanges],i)}(t.Component),ss=function(){function e(e){this.control=e,this.elementId=e.element.id,this.bulletAxis=new Yl(this.control)}return e.prototype._elementTooltip=function(e,t,i,o){var r=this.control.createElement("div");r.id="tooltip",r.className="tooltipDiv";var n=e.target,a=o+20,l=e.clientY,s="",h=this.control.tooltip.textStyle.fontStyle?this.control.tooltip.textStyle.fontStyle:this.control.themeStyle.tooltipLabelFont.fontStyle,c=this.control.tooltip.fill?this.control.tooltip.fill:this.control.themeStyle.tooltipFill,d="left:"+a+"px;top:"+l+'px;display: block; position: absolute; "z-index": "13000",cursor: default;font-family: Segoe UI;color:'+(this.control.themeStyle.tooltipLabelFont.color||this.control.themeStyle.tooltipBoldLabel)+"; font-size: 13px; background-color:"+c+"; border: 1px solid #707070;font-style:"+h+";";r.style.cssText=d,t===this.control.svgObject.id+"_Caption"?s=n.textContent===this.control.title?"":this.control.title:t===this.control.svgObject.id+"_SubTitle"&&(s=n.textContent===this.control.subtitle?"":this.control.subtitle),""!==s&&(r.innerHTML="&nbsp"+s+"&nbsp",document.body.insertAdjacentElement("afterbegin",r))},e.prototype._displayTooltip=function(e,t,i,o,r){if("undefined"!==t&&this.control.tooltip.enable&&(t===this.control.svgObject.id+"_FeatureMeasure"||t===this.control.svgObject.id+"_ComparativeMeasure")){var n=[],a=void 0,l=this.bulletAxis.getFormat(this.control),s=null!==l.match("{value}"),h=i.substring(i.lastIndexOf("_")+1),c=[];this.bulletAxis.format=this.bulletAxis.bulletChart.intl.getNumberFormat({format:s?"":l,useGrouping:this.bulletAxis.bulletChart.enableGroupSeparator});var d=this.control.dataSource[h][this.control.valueField];n=n.concat(this.control.dataSource[h][this.control.targetField]);var p=this.control.dataSource[h][this.control.categoryField],u=d&&d.toString(),g=n?n.toString():"",m=p&&p.toString();u=this.bulletAxis.formatValue(this.bulletAxis,s,l,+d);for(var y=0;y<n.length;y++)c=c.concat(this.bulletAxis.formatValue(this.bulletAxis,s,l,+n[y]));var f={value:u,target:c,category:m=this.bulletAxis.formatValue(this.bulletAxis,s,l,+p)},v={value:u,target:g,category:m},b="position: absolute; z-index: 13000; display: block;";0===document.getElementsByClassName("tooltipDiv"+this.control.element.id).length&&((a=this.control.createElement("div")).id="tooltipDiv"+this.control.element.id,a.style.cssText=b,document.getElementById(this.control.element.id+"_Secondary_Element").appendChild(a));var x={value:f.value,target:f.target,name:Y};if(""!==this.control.tooltip.template&&null!=this.control.tooltip.template){this.updateTemplateFn();for(var S=this.control.createElement("div",{id:this.control.element.id+"parent_template"}),C=this.templateFn(v,this.control,"template",S.id+"_blazorTemplate","",null,S);C&&C.length>0;)1===C.length?(S.appendChild(C[0]),C=null):S.appendChild(C[0]);x.template=S.innerHTML,this.control.trigger(Y,x),S.innerHTML=x.template,a.appendChild(S)}else{var F="Value : "+x.value;for(y=0;y<x.target.length;y++)F+="<br/> Target"+(0===y?"":"_"+y)+" : "+x.target[y];x.text=F,this.control.trigger(Y,x),a.innerHTML=x.text,a.style.font=this.control.tooltip.textStyle.fontStyle?this.control.tooltip.textStyle.fontStyle:this.control.themeStyle.tooltipLabelFont.fontStyle,a.style.color=this.control.themeStyle.tooltipLabelFont.color||this.control.themeStyle.tooltipBoldLabel,a.style.fontSize=this.control.themeStyle.titleFont.size}var w=this.control.tooltip.fill?this.control.tooltip.fill:this.control.themeStyle.tooltipFill,L="Fabric"===this.control.theme||"Fluent"===this.control.theme&&!this.control.tooltip.border.width?1:this.control.tooltip.border.width,P="Fabric"===this.control.theme||"Fluent"===this.control.theme&&!this.control.tooltip.border.color?"#D2D0CE":this.control.tooltip.border.color,A=this.control.tooltip.border.dashArray?"dashed "+P+"; border-dasharray: "+this.control.tooltip.border.dashArray+";":"Solid "+P+";",M=o,D=r;if(M=M+Li(a.getAttribute("width"),this.control.containerWidth)<window.innerWidth?M:Li(a.getAttribute("width"),this.control.containerWidth),D=D+Li(a.getAttribute("height"),this.control.containerHeight)<window.innerHeight?D:Li(a.getAttribute("height"),this.control.containerHeight),null==M&&(M=o),M+a.clientWidth>this.control.availableSize.width&&(M-=a.clientWidth+20),null==D&&(D=e.clientY),D+a.clientHeight>this.control.availableSize.height&&(D-=a.clientHeight+20),""!==this.control.tooltip.template&&null!=this.control.tooltip.template)a.style.cssText="position: absolute;left:"+(M+20)+"px;top:"+(D+20)+"px;";else{var k=this.control.tooltip.textStyle.fontFamily||this.control.themeStyle.tooltipLabelFont.fontFamily,R=b+"left:"+(M+20)+"px;top:"+(D+20)+"px;-webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px;-o-border-radius: 5px 5px 5px 5px;border-radius: 5px 5px 5px 5px;background-color:"+w+";color:"+(this.control.tooltip.textStyle.color||this.control.themeStyle.tooltipLabelFont.color)+"; border:"+L+"px "+A+"padding-bottom: 7px;font-style:"+this.control.themeStyle.tooltipLabelFont.fontStyle+"; padding-left: 10px; font-family:"+k+"; font-size:"+this.control.tooltip.textStyle.size+"; padding-right: 10px; padding-top: 7px";if(a.style.cssText=R,this.control.theme.indexOf("Fluent2")>-1){var T=this.control.element.id+"_shadow",E='<filter id="'+T+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/><feOffset dx="-1" dy="3.6" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.2"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',_=this.control.renderer.createDefs();_.setAttribute("id",this.control.element.id+"SVG_tooltip_definition"),a.appendChild(_),_.innerHTML=E,a.style.filter="url(#"+T+")"}}t!==this.control.svgObject.id+"_FeatureMeasure"&&t!==this.control.svgObject.id+"_ComparativeMeasure"||document.getElementById(i).setAttribute("opacity","0.6"),this.control.isReact&&this.control.renderReactTemplates()}},e.prototype.updateTemplateFn=function(){if(this.control.tooltip.template)try{"function"!=typeof this.control.tooltip.template&&document.querySelectorAll(this.control.tooltip.template).length?this.templateFn=(0,t.compile)(document.querySelector(this.control.tooltip.template).innerHTML.trim()):this.templateFn=(0,t.compile)(this.control.tooltip.template)}catch(e){this.templateFn=(0,t.compile)(this.control.tooltip.template)}},e.prototype.getModuleName=function(){return"BulletTooltip"},e.prototype.destroy=function(){},e}(),hs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),cs=function(e){function i(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return hs(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on(t.Browser.touchMoveEvent,this.bulletMouseMove,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd),this.chart.off(t.Browser.touchMoveEvent,this.bulletMouseMove))},i.prototype.bulletMouseMove=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.getLegendOptions=function(e){var i;this.legendCollections=[];var o=0;this.isRtlEnable=this.chart.enableRtl;for(var r=this.chart,n=0,a=e;n<a.length;n++){var l=a[n];null!==l.name&&(i=l.color?l.color:r.themeStyle.rangeStrokes[l.index].color,this.legendCollections.push(new Eo(l.name,i,l.shape,this.chart.legendSettings.visible,null,l.legendImageUrl,null,!1,l.index,null)),o++)}if(null!==r.dataSource&&""!==r.valueField){i=r.theme.indexOf("Dark")>-1?"white":r.valueFill?r.valueFill:"black";var s="Vertical"===r.orientation?"TargetRect":"ActualRect";this.legendCollections.push(new Eo("Actual",i,s,this.chart.legendSettings.visible,null,"",null,!1,o++,null))}if(null!==r.dataSource&&""!==r.targetField){i=r.theme.indexOf("Dark")>-1?"white":r.targetColor?r.targetColor:"black";s="Rect"===r.targetTypes[0]?"Vertical"===r.orientation?"ActualRect":"TargetRect":r.targetTypes[0];for(var h=0;h<Object.keys(r.dataSource).length;h++)if((0,t.isNullOrUndefined)(r.dataSource[h][r.targetField].length)||1===r.dataSource[h][r.targetField].length)for(;0===h;){this.legendCollections.push(new Eo("Target",i,s,this.chart.legendSettings.visible,null,"",null,!1,o++,null));break}else for(var c=r.targetTypes,d=[],p=c.length;0===h;){for(var u=0;u<p;u++)d[u]=c[u%p],d[u]="Rect"===d[u]?"Vertical"===r.orientation?"ActualRect":"TargetRect":d[u],d[u]="Cross"===d[u]?"Multiply":d[u],this.legendCollections.push(new Eo("Target_"+u,i,d[u],this.chart.legendSettings.visible,null,"",null,!1,o++,null));break}}},i.prototype.getLegendBounds=function(e,t,i){var o=0,r=i.padding,n=0;this.isVertical?o=e.width/100*5:n=e.height/100*5,t.height+=n,t.width+=o;var a,l=0,s=0,h=0,c=0,d=0,p=i.shapeWidth,u=i.shapePadding;this.maxItemHeight=Math.max((0,R.measureText)("MeasureText",i.textStyle,this.chart.themeStyle.legendLabelFont).height,i.shapeHeight);for(var g=!1,m=0,y=this.legendCollections;m<y.length;m++){var f=y[m];a={fill:f.fill,text:f.text,shape:f.shape,name:B,cancel:!1},this.chart.trigger(B,a),f.render=!a.cancel,f.text=a.text,f.fill=a.fill,f.shape=a.shape,f.textSize=(0,R.measureText)(f.text,i.textStyle,this.chart.themeStyle.legendLabelFont),f.render&&""!==f.text&&(g=!0,s+=c=p+u+f.textSize.width+r,(t.width<r+s||this.isVertical)&&(l=Math.max(l,s+r-(this.isVertical?0:c)),0===h&&c!==s&&(h=1),s=this.isVertical?0:c,d=++h*(this.maxItemHeight+r)+r))}d=Math.max(d,this.maxItemHeight+r+r),this.isPaging=t.height<d,this.totalPages=h,g?this.setBounds(Math.max(s+r,l),"Bottom"===this.position||"Top"===this.position?Math.min(d,this.chart.initialClipRect.height-(this.legend.border.width+this.legend.margin.bottom+this.legend.margin.top)):d,i,t):this.setBounds(0,0,i,t)},i.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),s=o.location.x+(this.isRtlEnable?-l:l),h=this.legend.padding;s+(e.textSize.width+i)>r.x+r.width+this.legend.shapeWidth/2||this.isVertical?(e.location.x=t.x,e.location.y=n===a?o.location.y:o.location.y+this.maxItemHeight+h):(e.location.x=n===a?o.location.x:s,e.location.y=o.location.y);var c=this.isRtlEnable?e.location.x-i+this.itemPadding+this.legend.shapeWidth/2-this.legendBounds.x:this.legendBounds.x+this.legendBounds.width-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);e.text=Fi(+c.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont)},i.prototype.click=function(e){var t=e.target.id;t.indexOf(this.legendID+"_pagedown")>-1?this.changePage(e,!1):t.indexOf(this.legendID+"_pageup")>-1&&this.changePage(e,!0)},i.prototype.getModuleName=function(){return"BulletChartLegend"},i.prototype.destroy=function(){this.removeEventListener()},i}(To),ds=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ps=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},us=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ds(i,e),ps([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),ps([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),ps([(0,t.Property)("Regular")],i.prototype,"fontWeight",void 0),ps([(0,t.Property)("")],i.prototype,"color",void 0),ps([(0,t.Property)("12px")],i.prototype,"size",void 0),ps([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),gs=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ds(i,e),ps([(0,t.Property)(t.Browser.isDevice?5:10)],i.prototype,"top",void 0),ps([(0,t.Property)(t.Browser.isDevice?5:10)],i.prototype,"bottom",void 0),ps([(0,t.Property)(t.Browser.isDevice?5:10)],i.prototype,"right",void 0),ps([(0,t.Property)(t.Browser.isDevice?5:10)],i.prototype,"left",void 0),i}(t.ChildProperty),ms=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ds(i,e),ps([(0,t.Property)(0)],i.prototype,"width",void 0),ps([(0,t.Property)(1)],i.prototype,"opacity",void 0),ps([(0,t.Property)("transparent")],i.prototype,"color",void 0),i}(t.ChildProperty),ys=function(e,t,i,o){this.x=e,this.y=t,this.width=i,this.height=o},fs=function(){},vs=function(){},bs=function(){},xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ds(t,e),t}(fs),Ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ds(t,e),t}(xs),Cs=function(){},Fs=function(){},ws=function(){},Ls=function(){},Ps=function(e,t,i,o,r){this.id=e,this.fill=t,this.borderColor=i,this.borderWidth=o,this.opacity=r},As=function(){},Ms=function(){this.counterclockwise=0,this.clockwise=1},Ds=function(){},ks=function(){},Rs=function(e,t){this.width=e,this.height=t},Ts=function(){},Es=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();function _s(e){e.renderer=new R.SvgRenderer(e.element.id),function(e){var t=e.element.clientWidth,i=e.element.clientHeight;e.availableSize=new Rs(Hs(e.width,t)||t||600,Hs(e.height,i)||i||450)}(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height})}function Is(e){return document.getElementById(e)}function Os(e,t,i,o){var r=t,n=Xs(t,i,o).width;if(n>e)for(var a=t.length-1;a>=0;--a)if((n=Xs(r=t.substring(0,a)+"...",i,o).width)<=e||r.length<4)return r.length<4&&(r=" "),r;return r}function zs(e){var i=null;try{i="function"!=typeof e&&document.querySelectorAll(e).length?(0,t.compile)(document.querySelector(e).innerHTML.trim()):(0,t.compile)(e)}catch(o){i=(0,t.compile)(e)}return i}function Bs(e,i,o){for(var r=e[0].outerHTML,n=Object.keys(o),a=RegExp,l=0;l<n.length;l++)r=r.replace(new a("{{:"+n[l]+"}}","g"),o[n[l].toString()]);var s=(0,t.createElement)("div",{id:i,styles:"position: absolute"});return s.innerText=r,s}function Ns(){for(var e=1;1+.5*e!=1;)e*=.5;return e}function Vs(e,i,o,r,n){var a,l;new t.Animation({}).animate(i,{duration:r,delay:o,name:n,progress:function(e){a=(e.timeStamp-e.delay)/e.duration,l=0+1*a,e.element.style.opacity=l.toString()},end:function(t){t.element.style.opacity=1..toString(),e.trigger("animationComplete",event)}})}function Hs(e,t){return null!=e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}var Ws=function(e,t,i,o,r,n,a){this.id=e,this.opacity=r,this.fill=t,this.stroke=o,this["stroke-width"]=i,this["stroke-dasharray"]=n,this.d=a},js=function(e){function t(t,i,o,r,n){var a=e.call(this,t,i,o.width,o.color,r)||this;return a.y=n.y,a.x=n.x,a.height=n.height,a.width=n.width,a}return Es(t,e),t}(Ws),Us=function(e){function t(t,i,o,r,n,a,l,s){var h=e.call(this,t,i,o.width,o.color,r)||this;return h.cy=a,h.cx=n,h.r=l,h["stroke-dasharray"]=s,h}return Es(t,e),t}(Ws);function Xs(e,i,o){var r=document.getElementById("smithchartmeasuretext");return null===r&&(r=(0,t.createElement)("text",{id:"smithchartmeasuretext"}),document.body.appendChild(r)),r.innerText=e,r.style.position="absolute",r.style.visibility="hidden",r.style.left="0",r.style.top="-100",r.style.whiteSpace="nowrap",r.style.fontSize=i.size||o.size,r.style.fontWeight=i.fontWeight||o.fontWeight,r.style.fontStyle=i.fontStyle||o.fontStyle,r.style.fontFamily=i.fontFamily||o.fontFamily,r.style.lineHeight="normal",new Rs(r.clientWidth,r.clientHeight)}var Gs=function(e,t,i,o,r){this.id=e,this.x=t,this.y=i,this.anchor=o,this.text=r};function Ys(e){var i=document.getElementById(e);return i?(0,t.remove)(i):null}function Zs(e,t,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+t}function qs(e,t,i,o){return-t*Math.sin(e/o*(Math.PI/2))+i+t}function Qs(e){var t;switch(e){case"Linear":t=Zs;break;case"Reverse":t=qs}return t}function $s(e,t,i,o,r){var n={id:e.id,x:e.x,y:e.y,fill:i,"font-size":t.size||r.size,"font-style":t.fontStyle||r.fontStyle,"font-family":t.fontFamily||r.fontFamily,"font-weight":t.fontWeight||r.fontWeight,"text-anchor":e.anchor,opacity:t.opacity},a=e.text,l=new R.SvgRenderer("").createText(n,a);return o.appendChild(l),l}var Ks=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Js=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},eh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ks(i,e),Js([(0,t.Property)(!0)],i.prototype,"visible",void 0),Js([(0,t.Property)("")],i.prototype,"text",void 0),Js([(0,t.Property)("")],i.prototype,"description",void 0),Js([(0,t.Property)("Center")],i.prototype,"textAlignment",void 0),Js([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),th=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ks(i,e),Js([(0,t.Property)(0)],i.prototype,"x",void 0),Js([(0,t.Property)(0)],i.prototype,"y",void 0),i}(t.ChildProperty),ih=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ks(i,e),Js([(0,t.Property)(1)],i.prototype,"width",void 0),Js([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),oh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ks(i,e),Js([(0,t.Property)(10)],i.prototype,"width",void 0),Js([(0,t.Property)(10)],i.prototype,"height",void 0),Js([(0,t.Complex)({},ih)],i.prototype,"border",void 0),i}(t.ChildProperty),rh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ks(i,e),Js([(0,t.Property)(1)],i.prototype,"width",void 0),Js([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),nh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Ks(i,e),Js([(0,t.Property)(!1)],i.prototype,"visible",void 0),Js([(0,t.Property)("bottom")],i.prototype,"position",void 0),Js([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Js([(0,t.Property)(null)],i.prototype,"width",void 0),Js([(0,t.Property)(null)],i.prototype,"height",void 0),Js([(0,t.Property)("circle")],i.prototype,"shape",void 0),Js([(0,t.Property)(null)],i.prototype,"rowCount",void 0),Js([(0,t.Property)(null)],i.prototype,"columnCount",void 0),Js([(0,t.Property)(8)],i.prototype,"itemPadding",void 0),Js([(0,t.Property)(5)],i.prototype,"shapePadding",void 0),Js([(0,t.Property)("")],i.prototype,"description",void 0),Js([(0,t.Property)(!0)],i.prototype,"toggleVisibility",void 0),Js([(0,t.Complex)({},eh)],i.prototype,"title",void 0),Js([(0,t.Complex)({},th)],i.prototype,"location",void 0),Js([(0,t.Complex)({},oh)],i.prototype,"itemStyle",void 0),Js([(0,t.Complex)({},rh)],i.prototype,"border",void 0),Js([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),ah=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),lh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},sh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ah(i,e),lh([(0,t.Property)(1)],i.prototype,"width",void 0),lh([(0,t.Property)("")],i.prototype,"dashArray",void 0),lh([(0,t.Property)(!0)],i.prototype,"visible",void 0),lh([(0,t.Property)(null)],i.prototype,"color",void 0),lh([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),hh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ah(i,e),lh([(0,t.Property)(1)],i.prototype,"width",void 0),lh([(0,t.Property)("")],i.prototype,"dashArray",void 0),lh([(0,t.Property)(!1)],i.prototype,"visible",void 0),lh([(0,t.Property)(null)],i.prototype,"color",void 0),lh([(0,t.Property)(8)],i.prototype,"count",void 0),i}(t.ChildProperty),ch=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ah(i,e),lh([(0,t.Property)(!0)],i.prototype,"visible",void 0),lh([(0,t.Property)(1)],i.prototype,"width",void 0),lh([(0,t.Property)(null)],i.prototype,"color",void 0),lh([(0,t.Property)("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),dh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ah(i,e),lh([(0,t.Property)(!0)],i.prototype,"visible",void 0),lh([(0,t.Property)("Outside")],i.prototype,"labelPosition",void 0),lh([(0,t.Property)("Hide")],i.prototype,"labelIntersectAction",void 0),lh([(0,t.Complex)({},sh)],i.prototype,"majorGridLines",void 0),lh([(0,t.Complex)({},hh)],i.prototype,"minorGridLines",void 0),lh([(0,t.Complex)({},ch)],i.prototype,"axisLine",void 0),lh([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"labelStyle",void 0),i}(t.ChildProperty),ph=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),uh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},gh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ph(i,e),uh([(0,t.Property)(!0)],i.prototype,"visible",void 0),uh([(0,t.Property)("")],i.prototype,"text",void 0),uh([(0,t.Property)("")],i.prototype,"description",void 0),uh([(0,t.Property)("Far")],i.prototype,"textAlignment",void 0),uh([(0,t.Property)(!0)],i.prototype,"enableTrim",void 0),uh([(0,t.Property)(null)],i.prototype,"maximumWidth",void 0),uh([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),mh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ph(i,e),uh([(0,t.Property)(!0)],i.prototype,"visible",void 0),uh([(0,t.Property)("")],i.prototype,"text",void 0),uh([(0,t.Property)("")],i.prototype,"description",void 0),uh([(0,t.Property)("Center")],i.prototype,"textAlignment",void 0),uh([(0,t.Property)(!0)],i.prototype,"enableTrim",void 0),uh([(0,t.Property)(null)],i.prototype,"maximumWidth",void 0),uh([(0,t.Complex)({},gh)],i.prototype,"subtitle",void 0),uh([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"font",void 0),uh([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),yh=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),fh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},vh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(1)],i.prototype,"width",void 0),fh([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),bh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(!1)],i.prototype,"visible",void 0),fh([(0,t.Property)(null)],i.prototype,"fill",void 0),fh([(0,t.Property)(.75)],i.prototype,"opacity",void 0),fh([(0,t.Property)("")],i.prototype,"template",void 0),fh([(0,t.Complex)({},vh)],i.prototype,"border",void 0),i}(t.ChildProperty),xh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(3)],i.prototype,"width",void 0),fh([(0,t.Property)("white")],i.prototype,"color",void 0),i}(t.ChildProperty),Sh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(.1)],i.prototype,"width",void 0),fh([(0,t.Property)("white")],i.prototype,"color",void 0),i}(t.ChildProperty),Ch=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(1)],i.prototype,"width",void 0),fh([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),Fh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(!1)],i.prototype,"visible",void 0),fh([(0,t.Property)("")],i.prototype,"template",void 0),fh([(0,t.Property)(null)],i.prototype,"fill",void 0),fh([(0,t.Property)(1)],i.prototype,"opacity",void 0),fh([(0,t.Complex)({},Sh)],i.prototype,"border",void 0),fh([(0,t.Complex)({},Ch)],i.prototype,"connectorLine",void 0),fh([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},us)],i.prototype,"textStyle",void 0),i}(t.ChildProperty),wh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)(!1)],i.prototype,"visible",void 0),fh([(0,t.Property)("circle")],i.prototype,"shape",void 0),fh([(0,t.Property)(6)],i.prototype,"width",void 0),fh([(0,t.Property)(6)],i.prototype,"height",void 0),fh([(0,t.Property)("")],i.prototype,"imageUrl",void 0),fh([(0,t.Property)("")],i.prototype,"fill",void 0),fh([(0,t.Property)(1)],i.prototype,"opacity",void 0),fh([(0,t.Complex)({},xh)],i.prototype,"border",void 0),fh([(0,t.Complex)({},Fh)],i.prototype,"dataLabel",void 0),i}(t.ChildProperty),Lh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return yh(i,e),fh([(0,t.Property)("visible")],i.prototype,"visibility",void 0),fh([(0,t.Property)([])],i.prototype,"points",void 0),fh([(0,t.Property)("")],i.prototype,"resistance",void 0),fh([(0,t.Property)("")],i.prototype,"reactance",void 0),fh([(0,t.Property)("")],i.prototype,"tooltipMappingName",void 0),fh([(0,t.Property)(null)],i.prototype,"dataSource",void 0),fh([(0,t.Property)("")],i.prototype,"name",void 0),fh([(0,t.Property)(null)],i.prototype,"fill",void 0),fh([(0,t.Property)(!1)],i.prototype,"enableAnimation",void 0),fh([(0,t.Property)("2000ms")],i.prototype,"animationDuration",void 0),fh([(0,t.Property)(!1)],i.prototype,"enableSmartLabels",void 0),fh([(0,t.Property)(1)],i.prototype,"width",void 0),fh([(0,t.Property)(1)],i.prototype,"opacity",void 0),fh([(0,t.Complex)({},wh)],i.prototype,"marker",void 0),fh([(0,t.Complex)({},bh)],i.prototype,"tooltip",void 0),i}(t.ChildProperty),Ph=function(){function e(){}return e.prototype.calculateAreaBounds=function(e,t,i){var o=e.margin,r=e.border,n=this.getLegendSpace(e,i),a=n.leftLegendWidth+o.left+r.width,l=n.rightLegendWidth+o.left+o.right+2*r.width,s=e.availableSize.width-(a+l);return{x:a,y:o.top+2*e.elementSpacing+n.modelTitleHeight+n.modelsubTitleHeight+n.topLegendHeight+r.width,width:s,height:e.availableSize.height-(n.modelTitleHeight+2*e.elementSpacing+n.modelsubTitleHeight+o.top+n.topLegendHeight+n.bottomLegendHeight)}},e.prototype.getLegendSpace=function(e,t){var i,o,r=e.title,n=e.legendSettings,a=n.position.toLowerCase(),l=e.font,s=n.border.width,h=0,c=0,d=0,p=0,u=0;return n.visible&&(o=t.width+5+e.elementSpacing+2*s,h="left"===a?o:0,c="right"===a?o:0,u=n.title.visible?Xs(n.title.text,l,e.themeStyle.legendLabelFont).height:0,d="top"===a?e.elementSpacing+t.height+u:0,p="bottom"===a?e.elementSpacing+t.height+u:0),i=Xs(r.subtitle.text,l,e.themeStyle.legendLabelFont).height,""!==r.text&&r.visible,{leftLegendWidth:h,rightLegendWidth:c,topLegendHeight:d,bottomLegendHeight:p,modelTitleHeight:0,modelsubTitleHeight:""!==r.subtitle.text&&r.subtitle.visible?i:0}},e}(),Ah="animationComplete",Mh="legendRender",Dh="titleRender",kh="subtitleRender",Rh="textRender",Th="seriesRender",Eh="axisLabelRender",_h=function(){function e(){this.radialLabels=[-50,-20,-10,-5,-4,-3,-2,-1.5,-1,-.8,-.6,-.4,-.2,0,.2,.4,.6,.8,1,1.5,2,3,4,5,10,20,50],this.radialLabelCollections=[],this.horizontalLabelCollections=[],this.labelCollections=[],this.direction=new Ms}return e.prototype.renderArea=function(e,t){this.calculateChartArea(e,t),this.calculateCircleMargin(e,t),this.calculateXAxisRange(e),this.calculateRAxisRange(e),this.measureHorizontalAxis(e),this.measureRadialAxis(e),e.horizontalAxis.visible&&this.updateHAxis(e),e.radialAxis.visible&&this.updateRAxis(e),e.horizontalAxis.visible&&this.drawHAxisLabels(e),e.radialAxis.visible&&this.drawRAxisLabels(e)},e.prototype.updateHAxis=function(e){var t=e.horizontalAxis.majorGridLines,i=e.horizontalAxis.minorGridLines,o=e.horizontalAxis.axisLine;t.visible&&this.updateHMajorGridLines(e),i.visible&&this.updateHMinorGridLines(e),o.visible&&this.updateHAxisLine(e)},e.prototype.updateRAxis=function(e){var t=e.radialAxis.majorGridLines,i=e.radialAxis.minorGridLines,o=e.radialAxis.axisLine;t.visible&&this.updateRMajorGridLines(e),i.visible&&this.updateRMinorGridLines(e),o.visible&&this.updateRAxisLine(e)},e.prototype.measureHorizontalAxis=function(e){var t=e.horizontalAxis.minorGridLines;this.measureHMajorGridLines(e),t.visible&&this.measureHMinorGridLines(e)},e.prototype.measureRadialAxis=function(e){var t=e.radialAxis.minorGridLines;this.measureRMajorGridLines(e),t.visible&&this.measureRMinorGridLines(e)},e.prototype.calculateChartArea=function(e,t){var i=e.availableSize.width,o=e.availableSize.height;i=t.width,o=t.height;var r=Math.min(i,o),n=Math.min(i,o),a=t.x+(t.width/2-r/2),l=t.y+((o-n)/2>0?(o-n)/2:0);e.chartArea={x:a,y:l,width:r,height:n}},e.prototype.calculateCircleMargin=function(e,t){var i,o=e.chartArea.width,r=e.radius;i=this.maximumLabelLength(e);var n="Outside"===e.radialAxis.labelPosition?i+10:10,a=(o-2*n>0?o-2*n:0)/2,l=r>1?1:r<.1?.1:r;this.areaRadius=a*l,this.circleLeftX=e.chartArea.x+n+a*(1-l),this.circleTopY=e.chartArea.y+n+a*(1-l),this.circleCenterX=this.circleLeftX+this.areaRadius,this.circleCenterY=t.y+t.height/2},e.prototype.maximumLabelLength=function(e){for(var t,i=0,o=e.horizontalAxis.labelStyle,r=0;r<this.radialLabels.length;r++)i<(t=Xs(this.radialLabels[r].toString(),o,e.themeStyle.axisLabelFont)).width&&(i=t.width);return i},e.prototype.calculateAxisLabels=function(){for(var e=0,t=0,i=[],o=2*this.areaRadius,r=0;r<2;r+=.1){var n=!1,a=!1,l=o*(1/((r=Math.round(10*r)/10)+1))/2*2;0!==e&&1!==r?(r<1&&(n=this.isOverlap(1,o,l,30)),r>1&&(a=this.isOverlap(2,o,l,30)),n||a||e-l>=30&&(i[t]=r,t++,e=l)):(e=l,i[t]=r,t++)}for(var s=[2,3,4,5,10,20,50],h=0;h<s.length;h++)i[t]=s[h],t++;return i},e.prototype.isOverlap=function(e,t,i,o){return i-t*(1/(e+1))/2*2<o},e.prototype.calculateXAxisRange=function(e){for(var t,i,o,r=2*this.areaRadius,n=this.calculateAxisLabels(),a=this.circleCenterY,l=this.circleLeftX,s=this.circleLeftX,h=0;h<n.length;h++)i=r*(1/((t=n[h])+1))/2,"Impedance"===e.renderType&&(s=l+r-2*i),o=s+i,this.horizontalLabelCollections.push({centerX:o,centerY:a,radius:i,value:t,region:null})},e.prototype.calculateRAxisRange=function(e){var t,i,o,r=2*this.areaRadius,n=new ws;"Impedance"===e.renderType?(n.x=this.circleLeftX+r,n.y=this.circleTopY+this.areaRadius):(n.x=this.circleLeftX,n.y=this.circleTopY+this.areaRadius);for(var a=0;a<this.radialLabels.length;a++)o=this.radialLabels[a],i=Math.abs(1/o*r/2),t="Impedance"===e.renderType?o>0?n.y-i:n.y+i:o<0?n.y-i:n.y+i,this.radialLabelCollections.push({centerX:n.x,centerY:t,radius:i,value:o})},e.prototype.measureHMajorGridLines=function(e){var t,i,o,r,n,a=[];this.majorHGridArcPoints=[];for(var l=0;l<this.horizontalLabelCollections.length;l++){var s=new xs;s=this.horizontalLabelCollections[l],a=this.calculateHMajorArcStartEndPoints(s.value),"Impedance"===e.renderType?(o=a[0],r=a[1]):(o=a[1],r=a[0]),n={width:s.radius,height:s.radius},0!==s.value&&50!==s.value?(t=this.intersectingCirclePoints(o[0].centerX,o[0].centerY,o[0].radius,s.centerX,s.centerY,s.radius,e.renderType),i=this.intersectingCirclePoints(r[0].centerX,r[0].centerY,r[0].radius,s.centerX,s.centerY,s.radius,e.renderType),this.majorHGridArcPoints.push({startPoint:t,endPoint:i,rotationAngle:2*Math.PI,sweepDirection:"Impedance"===e.renderType?this.direction.counterclockwise:this.direction.clockwise,isLargeArc:!0,size:n})):(t={x:s.centerX+s.radius,y:s.centerY},i={x:s.centerX+s.radius,y:s.centerY-.05},this.majorHGridArcPoints.push({startPoint:t,endPoint:i,rotationAngle:2*Math.PI,sweepDirection:this.direction.clockwise,isLargeArc:!0,size:n}))}},e.prototype.measureRMajorGridLines=function(e){var t,i,o,r,n,a,l,s,h,c=[];this.majorRGridArcPoints=[],this.labelCollections=[];for(var d=Ns(),p=0;p<this.radialLabelCollections.length;p++)(t=this.radialLabelCollections[p]).radius<=d||(i=t.value,o=(c=this.calculateMajorArcStartEndPoints(t,Math.abs(i),e))[0],r=c[1],n=this.circleXYRadianValue(this.circleCenterX,this.circleCenterY,r.x,r.y)*(180/Math.PI),0!==i?(a={x:o.x,y:o.y},l={x:r.x,y:r.y},s={width:t.radius,height:t.radius},h=i>0?this.direction.clockwise:this.direction.counterclockwise,this.majorRGridArcPoints.push({startPoint:a,endPoint:l,size:s,rotationAngle:2*Math.PI,isLargeArc:!1,sweepDirection:h}),this.labelCollections.push({centerX:r.x,centerY:r.y,angle:n,value:i,radius:this.areaRadius,region:null})):(a={x:this.circleLeftX,y:this.circleCenterY},l={x:this.circleCenterX+this.areaRadius,y:this.circleCenterY},this.majorRGridArcPoints.push({startPoint:a,endPoint:l,size:null,rotationAngle:null,isLargeArc:null,sweepDirection:null}),this.labelCollections.push({centerX:"Impedance"===e.renderType?this.circleCenterX-this.areaRadius:this.circleCenterX+this.areaRadius,centerY:this.circleCenterY,angle:"Impedance"===e.renderType?180:360,value:i,radius:this.areaRadius,region:null})))},e.prototype.circleXYRadianValue=function(e,t,i,o){var r;return r=(r=Math.atan2(o-t,i-e))<0?r+360*Math.PI/180:r},e.prototype.calculateMajorArcStartEndPoints=function(e,t,i){var o=[],r=[],n=this.circleCenterX,a=this.circleCenterY;return t>=10?o[0]="Impedance"===i.renderType?{x:n+this.areaRadius,y:a}:{x:n-this.areaRadius,y:a}:r=t>=3?this.horizontalLabelCollections.filter(function(e){return 10===e.value}):t>=1?this.horizontalLabelCollections.filter(function(e){return 5===e.value}):this.horizontalLabelCollections.filter(function(e){return 3===e.value}),r.length>0&&(o[0]=this.intersectingCirclePoints(e.centerX,e.centerY,e.radius,r[0].centerX,r[0].centerY,r[0].radius,i.renderType)),o[1]=this.intersectingCirclePoints(e.centerX,e.centerY,e.radius,n,a,this.areaRadius,i.renderType),o},e.prototype.calculateHMajorArcStartEndPoints=function(e){var t,i,o=[];return e<=.3?(t=2,i=-2):e<=1?(t=3,i=-3):e<=2?(t=5,i=-5):e<=5?(t=10,i=-10):(t=50,i=-50),o[0]=this.radialLabelCollections.filter(function(e){return e.value===t}),o[1]=this.radialLabelCollections.filter(function(e){return e.value===i}),o},e.prototype.calculateMinorArcStartEndPoints=function(e){var t,i,o=[];return e<=.1?(t=1,i=-1):e<=.2?(t=.8,i=-.8):e<=.3?(t=.4,i=-.4):e<=.6?(t=1,i=-1):e<=1?(t=1.5,i=-1.5):e<=1.5?(t=2,i=-2):e<=2?(t=1,i=-1):e<=5?(t=3,i=-3):(t=10,i=-10),o[0]=this.radialLabelCollections.filter(function(e){return e.value===t}),o[1]=this.radialLabelCollections.filter(function(e){return e.value===i}),o},e.prototype.intersectingCirclePoints=function(e,t,i,o,r,n,a){var l={x:0,y:0},s=e-o,h=t-r,c=Math.sqrt(s*s+h*h),d=c*c,p=(i*i-n*n)/(2*d),u=i*i-n*n,g=Math.sqrt(2*(i*i+n*n)/d-u*u/(d*d)-1),m=(e+o)/2+p*(o-e),y=g*(r-t)/2,f=m+y,v=m-y,b=(t+r)/2+p*(r-t),x=g*(e-o)/2,S=b+x,C=b-x;return"Impedance"===a?v<f?(l.x=v,l.y=C):(l.x=f,l.y=S):f>v?(l.x=f,l.y=S):(l.x=v,l.y=C),{x:l.x,y:l.y}},e.prototype.updateHMajorGridLines=function(e){var t=e.horizontalAxis.majorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_horizontalAxisMajorGridLines"});i.setAttribute("aria-hidden","true");var o=this.calculateGridLinesPath(this.majorHGridArcPoints),r=new Ws(e.element.id+"_horizontalAxisMajorGridLines","none",t.width,t.color?t.color:e.themeStyle.majorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.updateRMajorGridLines=function(e){var t=e.radialAxis.majorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_radialAxisMajorGridLines"});i.setAttribute("aria-hidden","true");var o=this.calculateGridLinesPath(this.majorRGridArcPoints),r=new Ws(e.element.id+"_radialAxisMajorGridLines","none",t.width,t.color?t.color:e.themeStyle.majorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.updateHAxisLine=function(e){var t=this.areaRadius,i=e.horizontalAxis.axisLine,o=e.renderer.createGroup({id:e.element.id+"_svg_hAxisLine"});o.setAttribute("aria-hidden","true");var r=this.circleCenterX+t,n=this.circleCenterY,a=this.circleCenterX+t,l=this.circleCenterY-.05,s=t,h=t,c=this.direction.clockwise,d="M"+r+" "+n+" A "+s+" "+h+" "+2*Math.PI+" 1 "+c+" "+a+" "+l,p=new Ws(e.element.id+"_horizontalAxisLine","none",i.width,i.color?i.color:e.themeStyle.axisLine,1,i.dashArray,d),u=e.renderer.drawPath(p);o.appendChild(u),e.svgObject.appendChild(o)},e.prototype.updateRAxisLine=function(e){var t=this.areaRadius,i=e.radialAxis.axisLine,o=this.circleCenterX-t,r=this.circleCenterY,n=this.circleCenterX+t,a=this.circleCenterY,l="M "+o+" "+r+" A "+0+" "+0+" 0 0 "+this.direction.counterclockwise+" "+n+" "+a,s=new Ws(e.element.id+"_radialAxisLine","none",i.width,i.color?i.color:e.themeStyle.axisLine,1,i.dashArray,l),h=e.renderer.createGroup({id:e.element.id+"_svg_rAxisLine"});h.setAttribute("aria-hidden","true");var c=e.renderer.drawPath(s);h.appendChild(c),e.svgObject.appendChild(h)},e.prototype.drawHAxisLabels=function(e){var t=e.horizontalAxis;e.radialAxis.labelStyle.fontFamily=e.themeStyle.fontFamily||e.radialAxis.labelStyle.fontFamily;var i,o,r,n,a,l,s,h,c,d,p,u,g,m=e.horizontalAxis.labelStyle,y=e.renderer.createGroup({id:e.element.id+"_HAxisLabels"});y.setAttribute("aria-hidden","true");for(var f=function(f){if(i=v.horizontalLabelCollections[f],o=v.horizontalLabelCollections[f].value.toString(),0!==i.value){if(r="Impedance"===e.renderType?i.centerX-i.radius:i.centerX+i.radius,n=i.centerY,a=Xs(o,m,e.themeStyle.axisLabelFont),r="Impedance"===e.renderType?r-a.width:r,"Outside"===t.labelPosition?n-=a.height/4:n+=a.height,v.horizontalLabelCollections[f].region=v.calculateRegion(o,a,r,n),"Hide"===t.labelIntersectAction){l=v.horizontalLabelCollections[f],s=l.region.bounds,h=s.width,c=s.x;for(var b=1;b<f;b++)d=v.horizontalLabelCollections[b],p=d.region.bounds,u=p.width,g=p.x,"Impedance"===e.renderType&&g+u>c&&(o=""),"Admittance"===e.renderType&&g<c+h&&(o="")}var x={text:o.toString(),x:r,y:n,name:Eh,cancel:!1},S=function(t){if(!t.cancel){var i=new Gs(e.element.id+"_HLabel_"+f,x.x,x.y,"none",x.text),o=m.color?m.color:e.themeStyle.axisLabelFont.color;m.fontFamily=m.fontFamily||e.themeStyle.labelFontFamily;var r=$s(i,m,o,y,e.themeStyle.axisLabelFont);y.appendChild(r)}};S.bind(v),e.trigger(Eh,x,S)}},v=this,b=0;b<this.horizontalLabelCollections.length;b++)f(b);e.svgObject.appendChild(y)},e.prototype.drawRAxisLabels=function(e){e.radialAxis.labelStyle.fontFamily=e.themeStyle.fontFamily||e.radialAxis.labelStyle.fontFamily;var t,i,o,r,n,a,l,s,h,c,d,p,u,g,m,y,f,v=e.radialAxis.labelStyle,b=new Ss,x=e.radialAxis,S=e.renderer.createGroup({id:e.element.id+"_RAxisLabels"});S.setAttribute("aria-hidden","true");for(var C=function(C){if(b=F.labelCollections[C],t=b.value.toString(),i=Xs(t,v,e.themeStyle.axisLabelFont),o=Math.round(100*b.angle)/100,"Outside"===x.labelPosition?(r=F.circlePointPosition(F.circleCenterX,F.circleCenterY,b.angle,F.areaRadius+2),n=F.setLabelsOutsidePosition(o,r.x,r.y,i)):(r=F.circlePointPosition(F.circleCenterX,F.circleCenterY,b.angle,F.areaRadius-2),n=F.setLabelsInsidePosition(o,r.x,r.y,i)),F.labelCollections[C].region=F.calculateRegion(t,i,n.x,n.y),"Hide"===x.labelIntersectAction){c=F.labelCollections[C],d=c.region.bounds,s=d.width,h=d.height,a=d.x,l=d.y;for(var w=0;w<C;w++)y=F.labelCollections[w],f=y.region.bounds,g=f.width,m=f.height,p=f.x,u=f.y,p<=a+s&&a<=p+g&&u<=l+h&&l<=u+m&&(t=" ")}var L={text:t.toString(),x:n.x,y:n.y,name:Eh,cancel:!1},P=function(t){if(!t.cancel){var i=new Gs(e.element.id+"_RLabel_"+C,L.x,L.y,"none",L.text),o=v.color?v.color:e.themeStyle.axisLabelFont.color;v.fontFamily=e.themeStyle.labelFontFamily?e.themeStyle.labelFontFamily:v.fontFamily;var r=$s(i,v,o,S,e.themeStyle.axisLabelFont);S.appendChild(r)}};P.bind(F),e.trigger(Eh,L,P)},F=this,w=0;w<this.labelCollections.length;w++)C(w);e.svgObject.appendChild(S)},e.prototype.calculateRegion=function(e,t,i,o){new bs;return{bounds:{x:i,y:o,width:t.width,height:t.height},labelText:e}},e.prototype.updateHMinorGridLines=function(e){var t=e.horizontalAxis.minorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_horizontalAxisMinorGridLines"}),o=this.calculateGridLinesPath(this.minorHGridArcPoints),r=new Ws(e.element.id+"_horizontalAxisMinorGridLines","none",t.width,t.color?t.color:e.themeStyle.minorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.updateRMinorGridLines=function(e){var t=e.radialAxis.minorGridLines,i=e.renderer.createGroup({id:e.element.id+"_svg_radialAxisMinorGridLines"}),o=this.calculateGridLinesPath(this.minorGridArcPoints),r=new Ws(e.element.id+"_radialAxisMinorGridLines","none",t.width,t.color?t.color:e.themeStyle.minorGridLine,t.opacity,t.dashArray,o),n=e.renderer.drawPath(r);i.appendChild(n),e.svgObject.appendChild(i)},e.prototype.calculateGridLinesPath=function(e){for(var t,i,o,r,n=new Ts,a="",l=0;l<e.length;l++)t=(n=e[l]).startPoint.x,i=n.startPoint.y,o=n.endPoint.x,r=n.endPoint.y,a=a+"M "+t+" "+i+" A "+(n.size?n.size.width:0)+" "+(n.size?n.size.height:0)+" "+(n.rotationAngle?n.rotationAngle:0)+" "+(n.isLargeArc?1:0)+" "+(n.sweepDirection?n.sweepDirection:0)+" "+o+" "+r+" ";return a.toString()},e.prototype.measureHMinorGridLines=function(e){var t,i,o,r,n,a,l,s,h,c,d,p,u,g=[],m=e.horizontalAxis.minorGridLines.count;this.minorHGridArcPoints=[];for(var y=2*this.areaRadius,f=0;f<this.horizontalLabelCollections.length-3;f++){s=this.horizontalLabelCollections[f],h=this.horizontalLabelCollections[f+1],p=(c=2*(s.radius-h.radius))/(d=Math.floor(m/100*c));for(var v=0;v<d;v++)u=h.radius+v*p/2,l=("Impedance"===e.renderType?this.circleLeftX+y-2*u:this.circleLeftX)+u,o=h.value>5,g=this.calculateMinorArcStartEndPoints(h.value),"Impedance"===e.renderType?(t=g[0],i=g[1]):(t=g[1],i=g[0]),r=this.intersectingCirclePoints(t[0].centerX,t[0].centerY,t[0].radius,l,s.centerY,u,e.renderType),n=this.intersectingCirclePoints(i[0].centerX,i[0].centerY,i[0].radius,l,s.centerY,u,e.renderType),a={width:u,height:u},this.minorHGridArcPoints.push({startPoint:r,endPoint:n,rotationAngle:2*Math.PI,sweepDirection:"Impedance"===e.renderType?this.direction.counterclockwise:this.direction.clockwise,isLargeArc:o,size:a})}},e.prototype.measureRMinorGridLines=function(e){var t,i,o,r,n,a,l,s,h,c,d,p=e.radialAxis.minorGridLines.count,u=Math.PI*(2*this.areaRadius),g=t="Impedance"===e.renderType?this.circleCenterX+this.areaRadius:this.circleCenterX-this.areaRadius,m=this.circleCenterY;this.minorGridArcPoints=[];for(var y={x:g,y:m},f=2;f<this.labelCollections.length-3;f++){n=this.labelCollections[f],a=this.labelCollections[f+1],"Impedance"===e.renderType?(i=360===a.angle?0:a.angle,o=Math.abs(i-n.angle)):(i=360===n.angle?0:n.angle,o=Math.abs(i-a.angle)),s=u/360*o,c=o/(h=Math.floor(p/100*s)),d=a.value>0?a.value:n.value,r=this.minorGridLineArcIntersectCircle(Math.abs(d));for(var v=1;v<h;v++){var b=c*v+(360===n.angle?i:n.angle),x=this.circlePointPosition(this.circleCenterX,this.circleCenterY,b,this.areaRadius),S=this.arcRadius(y,x,b),C=b>180?this.circleCenterY-S:this.circleCenterY+S,F=this.intersectingCirclePoints(t,C,S,r[0].centerX,r[0].centerY,r[0].radius,e.renderType),w={x:F.x,y:F.y},L={x:x.x,y:x.y};l={width:S,height:S};var P=n.value>=0?this.direction.clockwise:this.direction.counterclockwise;this.minorGridArcPoints.push({startPoint:w,endPoint:L,rotationAngle:2*Math.PI,sweepDirection:P,isLargeArc:!1,size:l})}}},e.prototype.minorGridLineArcIntersectCircle=function(e){var t;return t=e>=3?20:e>=1.5?10:e>=.6?3:2,this.horizontalLabelCollections.filter(function(e){return e.value===t})},e.prototype.circlePointPosition=function(e,t,i,o){var r=i*(Math.PI/180);return{x:e+o*Math.cos(r),y:t+o*Math.sin(r)}},e.prototype.setLabelsInsidePosition=function(e,t,i,o){var r=t,n=i;return 0===e||360===e?(r-=o.width,n-=o.height/2):90===e?(r-=o.width,n+=o.height/8):180===e?n+=o.height:270===e?n+=o.height/2:e>0&&e<=20?r-=o.width:e>20&&e<=60?(r-=o.width+o.width/2,n+=o.height/2):e>60&&e<90?(r-=o.width+o.width/4,n+=o.height/4):e>90&&e<=135?(r-=o.width/2,n+=o.height/16):e>135&&e<=150?(r+=o.width/2,n+=o.height/2):e>150&&e<180?(r+=o.width/2,n+=o.height):e>180&&e<=210?(r+=o.width/6,n+=o.height/6):e>210&&e<240?n+=o.height/4:e>225&&e<270?n+=o.height/3:e>270&&e<=300?(r-=o.width+o.width/4,n+=o.height/4):e>300&&e<=330?(r-=o.width+o.width/3,n+=o.height/4):e>330&&e<=340?(r-=o.width+o.width/2,n+=o.height/4):e>340&&(r-=o.width,n+=o.height/8),{x:r,y:n}},e.prototype.setLabelsOutsidePosition=function(e,t,i,o){var r=t,n=i;return 90===e?(r-=o.width/2,n+=o.height):180===e?(r-=o.width+5,n-=o.height/4):270===e?(r-=o.width/2,n-=o.height/4):360===e?(r+=5,n-=o.height/2):e>0&&e<=30?(r+=o.width/4,n+=o.height/8):e>30&&e<=60?(r+=o.width/2,n+=o.height/4):e>60&&e<=90?(r-=o.width/2,n+=o.height):e>90&&e<=135?(r-=o.width,n+=o.height):e>135&&e<=180?(r-=o.width+o.width/4,n+=o.height/4):e>180&&e<=210?(r-=o.width+o.width/4,n-=o.height/4):e>210&&e<=270?(r-=o.width,n-=o.height/4):e>270&&e<=340?n-=o.height/4:e>340&&(n+=o.height/4,r+=o.width/6),{x:r,y:n}},e.prototype.arcRadius=function(e,t,i){var o=i>180?90*Math.PI/180:270*Math.PI/180,r=(t.x-e.x)/2,n=(t.y-e.y)/2,a=(n-r*((Math.cos(o)*n-Math.sin(o)*r)/(Math.cos(o)*r+Math.sin(o)*n)))/Math.sin(o),l=e.y+Math.sin(o)*a;return Math.abs(e.y-l)},e}(),Ih=function(){function e(){}return e.prototype.drawMarker=function(e,t,i,o){if(e.series[t].marker.visible){var r=e.series[t].marker,n=e.series[t].points.length-1,a=r.width,l=r.height,s=r.shape,h=e.renderer.createGroup({id:e.element.id+"_svg_series"+t+"_Marker"});i.appendChild(h);for(var c=r.border.width,d=r.border.color,p=r.opacity,u=r.fill?r.fill:e.series[t].fill||e.seriesColors[t%e.seriesColors.length],g=0;g<n+1;g++){var m=o[g].point,y=g,f=new Ps(e.element.id+"_Series"+t+"_Points"+y+"_Marker"+y,u,d,c,p);h.appendChild(this.drawSymbol(s,r.imageUrl,m,new Rs(a,l),f,e))}}},e.prototype.drawSymbol=function(e,t,i,o,r,n){var a,l,s,h,c=e.toLowerCase(),d={color:r.borderColor,width:r.borderWidth},p=r.opacity,u=i.x,g=i.y,m=Math.sqrt(o.height*o.height+o.width*o.width)/2;switch(c){case"circle":l=new Us(r.id,r.fill,d,p,i.x,i.y,m,null),a=n.renderer.drawCircle(l);break;case"rectangle":h="M "+(u+-o.width/2)+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+(g+-o.height/2)+"z",s=new Ws(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s);break;case"triangle":h="M "+(u+-o.width/2)+" "+(g+o.height/2)+" L "+u+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+(g+o.height/2)+"z",s=new Ws(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s);break;case"diamond":h="M "+(u+-o.width/2)+" "+g+" L "+u+" "+(g+-o.height/2)+" L "+(u+o.width/2)+" "+g+" L "+u+" "+(g+o.height/2)+" L "+(u+-o.width/2)+" "+g+"z",s=new Ws(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s);break;case"pentagon":for(var y=0;y<=5;y++){var f=m*Math.cos(Math.PI/180*(72*y)),v=m*Math.sin(Math.PI/180*(72*y));h=0===y?"M "+(u+f)+" "+(g+v)+" ":h.concat("L "+(u+f)+" "+(g+v)+" ")}h=h.concat("Z"),s=new Ws(r.id,r.fill,d.width,d.color,p,"",h),a=n.renderer.drawPath(s)}return a.setAttribute("role","img"),a.setAttribute("aria-label","x: "+i.x+", y: "+i.y),n.element.id+"_Series0_Points0_Marker0"===r.id&&a.setAttribute("tabindex","0"),a},e}(),Oh=function(){function e(){this.textOptions=[],this.labelOptions=[],this.allPoints=[]}return e.prototype.drawDataLabel=function(e,t,i,o,r){this.textOptions=[],this.allPoints=[];for(var n,a,l,s,h,c=e.margin,d=e.series[t].marker,p=d.dataLabel,u=p.textStyle,g=o.length,m=0;m<g;m++){h=Xs(s=e.series[t].points[m].reactance.toString(),u,e.themeStyle.dataLabelFont);var y=(a=o[m].point).x-h.width/2,f=a.y-(h.height+d.height+c.top),v=h.width+c.left/2+c.right/2,b=h.height+c.top/2+c.bottom/2;u.fontFamily=u.fontFamily?u.fontFamily:e.themeStyle.dataLabelFont.fontFamily,n=m,new As,l={textX:y+c.left/2,textY:f+b/2+c.top/2,x:y,y:f},this.textOptions[m]={id:e.element.id+"_Series"+t+"_Points"+n+"_dataLabel_displayText"+m,x:l.textX,y:l.textY,fill:"black",text:s,font:u,xPosition:y,yPosition:f,width:v,height:b,location:a,labelOptions:l,visible:!0,connectorFlag:null}}var x=new ks;x.textOptions=this.textOptions,this.labelOptions.push(x),this.drawDatalabelSymbol(e,t,p,i,r,o)},e.prototype.calculateSmartLabels=function(e,t){for(var i=e.textOptions.length,o=0;o<i;o++)this.allPoints[this.allPoints.length]=e.textOptions[o],this.connectorFlag=!1,this.compareDataLabels(o,e,0,t),this.labelOptions[t].textOptions[o]=e.textOptions[o],this.labelOptions[t].textOptions[o].connectorFlag=this.connectorFlag},e.prototype.compareDataLabels=function(e,t,i,o){for(var r,n,a=this.allPoints.length,l=10,s=0;s<a;s++)if(n=this.allPoints[s],r=this.allPoints[a-1],this.isCollide(n,r))switch(this.connectorFlag=!0,i){case 0:this.resetValues(r),this.prevLabel=n,r.xPosition=this.prevLabel.xPosition+(this.prevLabel.width/2+r.width/2+l),r.x=r.xPosition+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 1:this.resetValues(r),r.xPosition=this.prevLabel.xPosition+this.prevLabel.width/2+r.width/2+l,r.x=r.xPosition+5,r.yPosition=r.location.y+r.height/2+5,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 2:this.resetValues(r),r.yPosition=r.location.y+r.height/2+5,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 3:this.resetValues(r),r.xPosition=this.prevLabel.xPosition-this.prevLabel.width/2-r.width/2-l,r.x=r.xPosition+5,r.yPosition=r.height/2+r.location.y+5,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 4:this.resetValues(r),r.xPosition=this.prevLabel.xPosition-this.prevLabel.width/2-r.width/2-l,r.x=r.xPosition+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 5:this.resetValues(r),r.xPosition=this.prevLabel.xPosition-this.prevLabel.width/2-r.width/2-l,r.x=r.xPosition+5,r.yPosition=this.prevLabel.yPosition-r.height-l,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 6:this.resetValues(r),r.yPosition=this.prevLabel.yPosition-(r.height+l),r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 7:this.resetValues(r),r.xPosition=this.prevLabel.xPosition+this.prevLabel.width/2+r.width/2+l,r.x=r.xPosition+5,r.yPosition=this.prevLabel.yPosition-r.height-l,r.y=r.yPosition+r.height/2+5,i+=1,this.compareDataLabels(e,t,i,o);break;case 8:i=0,this.compareDataLabels(e,t,i,o)}},e.prototype.isCollide=function(e,t){var i=!1;return e!==t&&(i=!(e.y+e.height<t.y||e.y>t.y+t.height||e.x+e.width/2<t.x-t.width/2||e.x-e.width/2>t.x+t.width/2)),i},e.prototype.resetValues=function(e){e.xPosition=e.labelOptions.x,e.yPosition=e.labelOptions.y,e.x=e.labelOptions.textX,e.y=e.labelOptions.textY},e.prototype.drawConnectorLines=function(e,t,i,o,r){var n,a=o.location;n=a.y>o.y?o.y:o.y-o.height/2;var l="M "+a.x+" "+a.y+" L "+o.x+" "+n,s=e.series[t].marker.dataLabel.connectorLine,h=s.color?s.color:e.series[t].fill||e.seriesColors[t%e.seriesColors.length],c=new Ws(e.element.id+"_dataLabelConnectorLine_series"+t+"_point"+i,"none",s.width,h,1,"none",l),d=e.renderer.drawPath(c);r.appendChild(d)},e.prototype.drawDatalabelSymbol=function(e,i,o,r,n,a){for(var l=0;l<e.series[i].points.length;l++)if(o.template){var s=(0,t.createElement)("div",{id:e.element.id+"_seriesIndex_"+i+"_Label_Template_Group",className:"template",styles:"position: absolute;"});document.getElementById(e.element.id+"_Secondary_Element").appendChild(s);var h=o.template+"_seriesIndex"+i+"_pointIndex"+l+e.element.id,c={point:e.series[i].points[l].reactance},d=Bs(zs(o.template)(e),h,c);s.appendChild(d),d.style.left=a[l].point.x-d.offsetWidth/2+"px",d.style.top=a[l].point.y-d.offsetHeight-e.series[i].marker.height/2+"px";var p=parseInt(d.style.left,10),u=parseInt(d.style.top,10),g=d.offsetWidth,m=d.offsetHeight,y=a[l].point,f={textX:p,textY:u,x:p,y:u};this.labelOptions[i].textOptions[l]={id:h,x:p,y:u,fill:"black",text:"",font:o.textStyle,xPosition:p,yPosition:u,width:g,height:m,location:y,labelOptions:f,visible:!0,connectorFlag:null}}},e}(),zh=function(){function e(){this.xValues=[],this.yValues=[],this.pointsRegion=[],this.lineSegments=[],this.location=[],this.dataLabel=new Oh}return e.prototype.processData=function(e){var t=e.dataSource,i=e.resistance,o=e.reactance,r=e.tooltipMappingName;e.points=[];for(var n=0;n<t.length;n++)e.points.push({resistance:t[n][i],reactance:t[n][o],tooltip:t[n][r]})},e.prototype.draw=function(e,i,o){for(var r,n,a,l,s=e.renderer.createGroup({id:e.element.id+"_svg_seriesCollections"}),h=e.series,c=h.length,d=i.areaRadius,p=0;p<c;p++){var u=p;h[p].dataSource&&h[p].resistance&&h[p].reactance&&this.processData(h[p]),this.pointsRegion[p]=[],this.location[p]=[];for(var g=0;g<h[p].points.length;g++)this.xValues[g]=h[p].points[g].resistance,this.yValues[g]=h[p].points[g].reactance;for(var m=i.circleCenterX,y=i.circleCenterY,f=2*i.areaRadius,v=y,b={x:m+("Impedance"===e.renderType?d:-d),y}.x,x=0;x<h[p].points.length;x++){var S=this.xValues[x],C=f*(1/(S+1))/2,F=this.yValues[x],w=Math.abs(1/F*f/2);"Impedance"===e.renderType?(n=F>0?y-w:y+w,r=i.circleLeftX+f-C):(n=F<0?y-w:y+w,r=i.circleLeftX+C),a=i.intersectingCirclePoints(b,n,w,r,v,C,e.renderType);var L=Ns();Math.abs(F)<L&&(a.x="Impedance"===e.renderType?r-C:r+C,a.y=y),this.pointsRegion[p][x]=new Fs,this.pointsRegion[p][x]={point:a,x:S,y:F},this.location[p][x]={x:a.x,y:a.y}}for(var P=0;P<h[p].points.length-1;P++)l=P+1,this.lineSegments[P]=new Cs,this.lineSegments[P]={x1:this.xValues[P],y1:this.yValues[P],x2:this.xValues[l],y2:this.yValues[l]};e.svgObject.appendChild(s),this.drawSeries(e,u,s,o)}for(g=0;g<e.series.length;g++)if(e.series[g].enableSmartLabels&&e.series[g].marker.dataLabel.visible){var A=e.renderer.createGroup({id:e.element.id+"_svg_series"+g+"_Datalabel_connectorLines"});(R=document.getElementById(e.element.id+"_svg_seriesCollection"+g))&&(R.setAttribute("aria-label","Smithchart with "+h[g].points.length+" points"),R.appendChild(A)),this.dataLabel.calculateSmartLabels(this.dataLabel.labelOptions[g],g);for(x=0;x<e.series[g].points.length;x++){var M=this.dataLabel.labelOptions[g].textOptions[x];(M.xPosition+M.width>e.chartArea.x+e.chartArea.width||M.xPosition<e.chartArea.x||M.yPosition<e.chartArea.y||M.yPosition+M.height>e.chartArea.y+e.chartArea.height)&&(this.dataLabel.labelOptions[g].textOptions[x].connectorFlag=!1,this.dataLabel.labelOptions[g].textOptions[x].visible=!1),M.connectorFlag&&this.dataLabel.drawConnectorLines(e,g,x,M,A)}}var D=function(t){var i=e.series[t].marker.dataLabel;if(e.series[t].marker.dataLabel.visible){var o=document.getElementById(e.element.id+"_svg_seriesCollection"+t),r=e.renderer.createGroup({id:e.element.id+"_svg_series"+t+"_Datalabel"});r.setAttribute("aria-hidden","true"),o&&o.appendChild(r);for(var n=function(o){var n=k.dataLabel.labelOptions[t].textOptions[o];if(!i.template&&n.visible){var a=new Ds;a=k.dataLabel.labelOptions[t].textOptions[o];var l=i.textStyle,s=a.xPosition,h=a.yPosition,c=e.element.id+"_Series"+t+"_Points"+o+"_dataLabel_symbol"+o,d=i.fill?i.fill:e.series[t].fill||e.seriesColors[t%e.seriesColors.length],p=e.series[t].marker.dataLabel.border,u=new js(c,d,p,a.opacity,new ys(s,h,a.width,a.height)),g=e.renderer.drawRectangle(u);r.appendChild(g);var m={text:a.text,x:a.x,y:a.y,seriesIndex:t,pointIndex:o,name:Rh,cancel:!1},y=function(t){if(!t.cancel){var i=new Gs(a.id,t.x,t.y,"start",t.text),o=l.color?l.color:e.themeStyle.dataLabelFont.color,n=$s(i,l,o,r,e.themeStyle.dataLabelFont);r.appendChild(n)}};y.bind(k),e.trigger(Rh,m,y)}else if(i.template){var f=document.getElementById(i.template+"_seriesIndex"+t+"_pointIndex"+o+e.element.id);f.style.left=k.dataLabel.labelOptions[t].textOptions[o].xPosition+"px",f.style.top=k.dataLabel.labelOptions[t].textOptions[o].yPosition+"px"}},a=0;a<e.series[t].points.length;a++)n(a)}},k=this;for(g=0;g<e.series.length;g++)D(g);for(P=0;P<e.series.length;P++){var R;if((e.series[P].enableAnimation&&"Disable"!==t.animationMode||"Enable"===t.animationMode)&&e.animateSeries)e.series[P].marker.dataLabel.template&&this.animateDataLabelTemplate(P,e),(R=document.getElementById(e.element.id+"_svg_seriesCollection"+P)).setAttribute("aria-label","Smithchart with "+h[P].points.length+" points"),this.performAnimation(e,R,P)}},e.prototype.drawSeries=function(e,t,i,o){var r=this,n=e.renderer.createGroup({id:e.element.id+"_svg_seriesCollection"+t,"clip-path":"url(#"+e.element.id+"_ChartSeriesClipRect_"+t+")"});e.series[t].marker.visible||(n.setAttribute("tabindex",0===t?"0":""),n.style.outline="none"),n.setAttribute("visibility",e.series[t].visibility),n.setAttribute("role","region"),n.setAttribute("aria-label","Smithchart with "+e.series[t].points.length+" points"),i.appendChild(n);for(var a,l="",s=e.series[t].points.length-1,h=0;h<s;h++){var c=this.pointsRegion[t][h].point,d=this.pointsRegion[t][h+1].point;l=l+"M "+c.x+" "+c.y+" L "+d.x+" "+d.y+" "}var p=l.toString(),u=e.series[t].fill||e.seriesColors[t%e.seriesColors.length],g={text:e.series[t].name,fill:u,name:Th,cancel:!1},m=function(i){if(!i.cancel){var l=new Ws(e.element.id+"_series"+t+"_points","none",e.series[t].width,g.fill,e.series[t].opacity,"none",p);r.clipRectElement=e.renderer.drawClipPath(new js(e.element.id+"_ChartSeriesClipRect_"+t,"transparent",{width:1,color:"Gray"},1,{x:o.x,y:o.y,width:e.availableSize.width,height:e.availableSize.height})),n.appendChild(r.clipRectElement);var s=e.renderer.createGroup({id:e.element.id+"_svg"+t});a=e.renderer.drawPath(l),s.appendChild(a),n.appendChild(s)}};m.bind(this),e.trigger(Th,g,m),(new Ih).drawMarker(e,t,n,this.pointsRegion[t]),this.dataLabel.drawDataLabel(e,t,n,this.pointsRegion[t],o)},e.prototype.animateDataLabelTemplate=function(e,t){for(var i=t.series[e].points.length,o=parseFloat(t.series[e].animationDuration),r=0;r<i;r++){var n=document.getElementById(t.series[e].marker.dataLabel.template+"_seriesIndex"+e+"_pointIndex"+r+t.element.id);n.style.visibility="hidden",Vs(t,n,0,o,"FadeIn")}},e.prototype.performAnimation=function(e,i,o){var r,n=new t.Animation({}),a=i.childNodes[0].childNodes[0].childNodes[0],l=Qs("Linear"),s=Qs("Reverse"),h=+a.getAttribute("width"),c=+a.getAttribute("x");n.animate(a,{duration:0===parseFloat(e.series[o].animationDuration)&&"Enable"===t.animationMode?2e3:parseFloat(e.series[o].animationDuration),progress:function(t){"Impedance"===e.renderType?(r=l(t.timeStamp-t.delay,0,h,t.duration),a.setAttribute("width",r.toString())):(r=s(t.timeStamp-t.delay,h,0,t.duration),a.setAttribute("x",r.toString()))},end:function(){"Impedance"===e.renderType?a.setAttribute("width",h.toString()):a.setAttribute("x",c.toString());var t={cancel:!1,name:Ah,smithchart:e};e.trigger(Ah,t)}})},e.prototype.getLocation=function(e,t){return{x:this.location[e][t].x,y:this.location[e][t].y}},e}(),Bh="beforePrint",Nh=function(){function e(e){this.control=e}return e.prototype.print=function(e){this.smithchartPrint=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no"),this.smithchartPrint.moveTo(0,0),this.smithchartPrint.resizeTo(screen.availWidth,screen.availHeight);var i={cancel:!1,htmlContent:this.getHTMLContent(e),name:Bh};this.control.trigger(Bh,i),i.cancel||(0,t.print)(i.htmlContent,this.smithchartPrint)},e.prototype.getHTMLContent=function(e){var i=(0,t.createElement)("div");return e?e instanceof Array?e.forEach(function(e){i.appendChild(Is(e).cloneNode(!0))}):e instanceof Element?i.appendChild(e.cloneNode(!0)):i.appendChild(Is(e).cloneNode(!0)):i.appendChild(this.control.element.cloneNode(!0)),i},e.prototype.export=function(e,i,o){var r=this,n=(0,t.createElement)("canvas",{id:"ej2-canvas",attrs:{width:this.control.availableSize.width.toString(),height:this.control.availableSize.height.toString()}}),a=!(t.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1);o=(0,t.isNullOrUndefined)(o)?la.PdfPageOrientation.Landscape:o;var l='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+this.control.svgObject.outerHTML+"</svg>",s=window.URL.createObjectURL(new Blob("SVG"===e?[l]:[(new XMLSerializer).serializeToString(this.control.svgObject)],{type:"image/svg+xml"}));if("SVG"===e)this.triggerDownload(i,e,s,a);else{var h=new Image,c=n.getContext("2d");h.onload=function(){if(c.drawImage(h,0,0),window.URL.revokeObjectURL(s),"PDF"===e){var t=new la.PdfDocument,l=n.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");t.pageSettings.orientation=o,l=l.slice(l.indexOf(",")+1),t.pages.add().graphics.drawImage(new la.PdfBitmap(l),0,0,r.control.availableSize.width-60,r.control.availableSize.height),a&&(t.save(i+".pdf"),t.destroy())}else r.triggerDownload(i,e,n.toDataURL("image/png").replace("image/png","image/octet-stream"),a)},h.src=s}},e.prototype.triggerDownload=function(e,i,o,r){(0,t.createElement)("a",{attrs:{download:e+"."+i.toLocaleLowerCase(),href:o}}).dispatchEvent(new MouseEvent(r?"click":"move",{view:window,bubbles:!1,cancelable:!0}))},e}(),Vh=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Wh=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.isLegendClicked=!1,o.previousTargetId="",o.currentPointIndex=0,o.currentSeriesIndex=0,o.currentLegendIndex=0,o}return Vh(i,e),i.prototype.getModuleName=function(){return"smithchart"},i.prototype.getPersistData=function(){return""},i.prototype.createChartSvg=function(){this.removeSvg(),_s(this)},i.prototype.renderTitle=function(e,i,o){var r,n=this,a=e.textStyle,l=Xs(e.text,a,this.themeStyle.smithchartTitleFont),s=e.textAlignment,h=e.text,c=(0,t.isNullOrUndefined)(e.maximumWidth)?Math.abs(this.margin.left+this.margin.right-this.availableSize.width):e.maximumWidth,d=l.width>c;r=l.width>this.availableSize.width?this.margin.left+this.border.width:"Center"===s?this.availableSize.width/2-l.width/2:"Near"===s?this.margin.left+this.elementSpacing+this.border.width:this.availableSize.width-l.width-(this.margin.right+this.elementSpacing+this.border.width);var p=this.margin.top+l.height/2+this.elementSpacing;e.enableTrim&&d&&(h=Os(c,e.text,a,this.themeStyle.smithchartTitleFont),l=Xs(h,a,this.themeStyle.smithchartTitleFont)),o=this.renderer.createGroup({id:this.element.id+"_Title_Group"});var u={text:h,x:r,y:p,name:Dh,cancel:!1},g=function(t){if(!t.cancel){$s(new Gs(n.element.id+"_Smithchart_"+i,t.x,t.y,"start",t.text),a,a.color||n.themeStyle.smithchartTitleFont.color,o,n.themeStyle.smithchartTitleFont).setAttribute("tabindex","0");var r={x:t.x,y:t.y,textSize:l};n.svgObject.appendChild(o),""!==e.subtitle.text&&e.subtitle.visible&&n.renderSubtitle(e,i,l,n.availableSize,r,o)}};g.bind(this),this.trigger(Dh,u,g)},i.prototype.renderSubtitle=function(e,i,o,r,n,a){var l=this,s=e.subtitle.textStyle,h=e.subtitle,c=Xs(h.text,s,this.themeStyle.smithchartSubtitleFont),d=h.text,p=(0,t.isNullOrUndefined)(h.maximumWidth)?.75*this.bounds.width:h.maximumWidth;h.enableTrim&&c.width>p&&(d=Os(p,h.text,s,this.themeStyle.smithchartSubtitleFont));var u="Far"===e.subtitle.textAlignment?n.x+n.textSize.width:"Near"===e.subtitle.textAlignment?n.x:n.x+n.textSize.width/2,g=n.y+2*this.elementSpacing,m="Far"===e.subtitle.textAlignment?"end":"Near"===e.subtitle.textAlignment?"start":"middle",y={text:d,x:u,y:g,name:kh,cancel:!1},f=function(e){if(!e.cancel){var t=$s(new Gs(l.element.id+"_Smithchart_"+i,e.x,e.y,m,e.text),s,s.color||l.themeStyle.smithchartSubtitleFont.color,a,l.themeStyle.smithchartSubtitleFont);t.setAttribute("aria-label",h.description||e.text),a.appendChild(t)}};f.bind(this),this.trigger(kh,y,f)},i.prototype.renderBorder=function(){var e=this.border;this.background=this.background?this.background:this.themeStyle.background;var t=new js(this.element.id+"_SmithchartBorder",this.background,e,1,new ys(e.width/2,e.width/2,this.availableSize.width-e.width,this.availableSize.height-e.width));this.svgObject.appendChild(this.renderer.drawRectangle(t)).setAttribute("aria-hidden","true")},i.prototype.onPropertyChanged=function(e){var t=!1;if(!this.delayRedraw){for(var i=0,o=Object.keys(e);i<o.length;i++){switch(o[i]){case"background":case"border":case"series":case"legendSettings":case"radius":case"enableRtl":t=!0;break;case"size":this.createChartSvg(),t=!0;break;case"theme":case"renderType":this.animateSeries=!0,t=!0}}t&&this.render()}},i.prototype.preRender=function(){this.allowServerDataBinding=!1,this.trigger("load",{smithchart:this}),this.unWireEVents(),this.initPrivateVariable(),this.wireEVents()},i.prototype.initPrivateVariable=function(){this.animateSeries=!0,this.delayRedraw=!1,this.element.setAttribute("role","region"),this.element.setAttribute("aria-label",this.title.description||this.title.text+". Syncfusion interactive chart."),this.element.setAttribute("tabindex","0"),this.element.style.outline="none"},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.themeStyle.tabColor)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("text[id*=_Smithchart_title], g[id*=_svg_Legend], g[id*=_svg_seriesCollection], path[id*=_Points], [id*="+this.element.id+"]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},i.prototype.setTheme=function(){this.themeStyle=function(e){var t,i="MaterialDark"===e?"#383838":"FabricDark"===e?"#242424":"#1b1b1b";switch(e){case"HighContrast":t={axisLabel:"#ffffff",axisLine:"#ffffff",majorGridLine:"#BFBFBF",minorGridLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:"#000000",areaBorder:"#ffffff",tooltipFill:"#ffffff",dataLabel:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",tooltipFontSize:"12px",tabColor:"#FFD939",smithchartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"BootstrapDark":case"FabricDark":t={axisLabel:"#DADADA",axisLine:" #6F6C6C",majorGridLine:"#414040",minorGridLine:"#514F4F",chartTitle:"#ffffff",legendLabel:"#DADADA",background:i,areaBorder:" #9A9A9A",tooltipFill:"MaterialDark"===e?"#F4F4F4":"BootstrapDark"===e?"#F0F0F0":"#A19F9D",dataLabel:"#DADADA",tooltipBoldLabel:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"BootstrapDark"===e?"#1A1A1A":"#DADADA",tooltipLightLabel:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"BootstrapDark"===e?"#1A1A1A":"#DADADA",tooltipHeaderLine:"#9A9A9A",tooltipFontSize:"12px",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",smithchartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"BootstrapDark"===e?"#FFFFFF":"#DADADA",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"BootstrapDark"===e?"#676767":"#A19F9D",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"BootstrapDark"===e?"#FFFFFF":"#DADADA",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"BootstrapDark"===e?"#676767":"#A19F9D",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"BootstrapDark"===e?"#CED4DA":"#A19F9D",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"BootstrapDark"===e?"#FFFFFF":"#DADADA",fontFamily:"MaterialDark"===e?"Roboto":"BootstrapDark"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":t={axisLabel:"#212529",axisLine:"#ADB5BD",majorGridLine:"#CED4DA",minorGridLine:"#DEE2E6",chartTitle:"#212529",legendLabel:"#212529",background:"#FFFFFF",areaBorder:"#DEE2E6",tooltipFill:"#212529",dataLabel:"#212529",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#FFFFFF",tooltipFontSize:"12px",tabColor:"#007BFF",fontFamily:"Helvetica",fontSize:"16px",labelFontFamily:"Helvetica",tooltipFillOpacity:1,tooltipTextOpacity:.9,smithchartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":t={axisLabel:"#4B5563",axisLine:"#D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#D1D5DB",chartTitle:"#6B7280",legendLabel:"#6B7280",background:"#FFFFFF",areaBorder:"#D1D5DB",tooltipFill:"#111827",dataLabel:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",tooltipFontSize:"12px",tabColor:"#4F46E5",fontFamily:"Inter",fontSize:"12px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendTitleFont:{color:"#374151",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"500"},dataLabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Tailwind3Dark":t={axisLabel:"#D1D5DB",axisLine:"#282F3C",majorGridLine:"#282F3C",minorGridLine:"#374151",chartTitle:"#9CA3AF",legendLabel:"#9CA3AF",background:"rgba(17, 24, 39, 1)",areaBorder:"#374151",tooltipFill:"#F9FAFB",dataLabel:"#FFFFFF",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",tooltipFontSize:"12px",tabColor:"#22D3EE",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"500"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Tailwind":t={axisLabel:"#6B7280",axisLine:"#D1D5DB",majorGridLine:"#E5E7EB",minorGridLine:"#D1D5DB",chartTitle:"#374151",legendLabel:"#374151",background:"#FFFFFF",areaBorder:"#D1D5DB6",tooltipFill:"#111827",dataLabel:"#F9FAFB",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#9CA3AF",tooltipFontSize:"12px",tabColor:"#4F46E5",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":t={axisLabel:"#9CA3AF",axisLine:"#4B5563",majorGridLine:"#374151",minorGridLine:"#4B5563",chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:"#1f2937",areaBorder:"#4B5563",tooltipFill:"#E9ECEF",dataLabel:"#D1D5DB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",tooltipFontSize:"12px",tabColor:"#22D3EE",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":t={axisLabel:"#21252980",axisLine:"#DEE2E6",majorGridLine:"#DEE2E6",minorGridLine:"#DEE2E6",chartTitle:"#212529",legendLabel:"#212529BF",background:"#FFFFFF",areaBorder:"#E9ECEF",tooltipFill:"#000000E5",dataLabel:"#212529",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",tooltipFontSize:"12px",tabColor:"#0D6EFD",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#212529BF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#21252980",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Bootstrap5Dark":t={axisLabel:"#DEE2E680",axisLine:"#495057",majorGridLine:"#495057",minorGridLine:"#495057",chartTitle:"#DEE2E6",legendLabel:"#DEE2E6BF",background:"#212529",areaBorder:"#343A40",tooltipFill:"#FFFFFFE5",dataLabel:"#DEE2E6",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",tooltipFontSize:"12px",tabColor:"#0D6EFD",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"400"},legendLabelFont:{color:"#DEE2E6BF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#E9ECEF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent":t={axisLabel:"#3B3A39",axisLine:"#D2D0CE",majorGridLine:"#D2D0CE",minorGridLine:"#EDEBE9",chartTitle:"#201F1E",legendLabel:"#323130",background:"#FFFFFF",areaBorder:" #D2D0CE",tooltipFill:"#FFFFFF",dataLabel:"#3B3A39",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#201F1E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":t={axisLabel:"#C8C6C4",axisLine:"#3B3A39",majorGridLine:"#414040",minorGridLine:"#414040",chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:"transparent",areaBorder:"#414040",tooltipFill:"#323130",dataLabel:"#C8C6C4",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F2",tooltipHeaderLine:"#3B3A39",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":t={axisLabel:"#616161",axisLine:"#D2D0CE",majorGridLine:"#EDEBE9",minorGridLine:"#FAFAFA",chartTitle:"#242424",legendLabel:"#424242",background:"#FFFFFF",areaBorder:"#EDEBE9",tooltipFill:"#FFFFFF",dataLabel:"#242424",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#424242",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":t={axisLabel:"#ADADAD",axisLine:"#3B3A39",majorGridLine:"#292827",minorGridLine:"#3B3A39",chartTitle:"#FFFFFF",legendLabel:"#D6D6D6",background:"transparent",areaBorder:"#292827",tooltipFill:"#292929",dataLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D6D6D6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":t={axisLabel:"#FFFFFF",axisLine:"#3B3A39",majorGridLine:"#3B3A39",minorGridLine:"#3B3A39",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"#1c1b1f",areaBorder:"#292827",tooltipFill:"#000000",dataLabel:"#FFFFFF",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tooltipFontSize:"12px",tabColor:"#0078D4",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":t={axisLine:"#C4C7C5",axisLabel:"#1C1B1F",majorGridLine:"#C4C7C5",minorGridLine:"#C4C7C5",legendLabel:"#1C1B1F",background:"#FFFFFF",chartTitle:"#1C1B1F",areaBorder:" #E7E0EC",dataLabel:"#49454E",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",tooltipFontFamily:"Inter",tooltipFontSize:"12px",tabColor:"#49454E",fontFamily:"Inter",fontSize:"16px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#1E192B",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":t={axisLabel:"#E6E1E5",axisLine:"#444746",majorGridLine:"#444746",minorGridLine:"#444746",chartTitle:"#E6E1E5",legendLabel:"#E6E1E5",background:"transparent",areaBorder:" #49454F",tooltipFill:"#E6E1E5",dataLabel:"#CAC4D0",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",tooltipFontFamily:"Roboto",tooltipFontSize:"12px",tabColor:"#CAC4D0",fontFamily:"Roboto",fontSize:"16px",labelFontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,smithchartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;default:t={axisLabel:"#686868",axisLine:"#b5b5b5",majorGridLine:"#dbdbdb",minorGridLine:"#eaeaea",chartTitle:"#424242",legendLabel:"#353535",background:"#FFFFFF",areaBorder:"Gray",tooltipFill:"Material"===e?"#000816":"Bootstrap"===e?"#212529":"#FFFFFF",dataLabel:"#424242",tooltipBoldLabel:"Material"===e?"rgba(249, 250, 251, 1)":"Bootstrap"===e?"#F9FAFB":"#333333",tooltipLightLabel:"Material"===e?"rgba(249, 250, 251, 1)":"Bootstrap"===e?"#F9FAFB":"#333333",tooltipHeaderLine:"Fabric"===e?"#D2D0CE":"#ffffff",tooltipFontSize:"12px",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",smithchartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Bootstrap"===e?"#212529":"#333333",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Bootstrap"===e?"#212529":"#F3F2F1",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},dataLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Bootstrap"===e?"#676767":"#666666",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},axisLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Bootstrap"===e?"#676767":"#666666",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},smithchartSubtitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Bootstrap"===e?"#212529":"#333333",fontFamily:"Material"===e?"Roboto":"Bootstrap"===e?"Helvetica":"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}}}return t}(this.theme),this.seriesColors=function(e){var t;switch(e){case"Fabric":case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"Fluent":case"FluentDark":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}(this.theme)},i.prototype.render=function(){this.createChartSvg(),this.element.appendChild(this.svgObject),this.setTheme(),this.createSecondaryElement(),this.renderBorder(),this.smithchartLegendModule&&this.legendSettings.visible&&(this.legendBounds=this.smithchartLegendModule.calculateLegendBounds(this));var e=new Ph;this.bounds=e.calculateAreaBounds(this,this.title,this.legendBounds),""!==this.title.text&&this.title.visible&&this.renderTitle(this.title,"title",null);var t=new _h;t.renderArea(this,this.bounds),this.seriesrender=new zh,this.seriesrender.draw(this,t,this.bounds),this.smithchartLegendModule&&this.legendSettings.visible&&this.smithchartLegendModule.renderLegend(this),this.renderComplete(),this.allowServerDataBinding=!0,this.trigger("loaded",{smithchart:this})},i.prototype.createSecondaryElement=function(){if((0,t.isNullOrUndefined)(document.getElementById(this.element.id+"_Secondary_Element"))){var e=(0,t.createElement)("div",{id:this.element.id+"_Secondary_Element",styles:"z-index:1;"});this.element.appendChild(e);var i=this.element.getBoundingClientRect(),o=document.getElementById(this.element.id+"_svg");if(o){var r=o.getBoundingClientRect();e.style.left=Math.max(r.left-i.left,0)+"px",e.style.top=Math.max(r.top-i.top,0)+"px"}}else Ys(this.element.id+"_Secondary_Element")},i.prototype.destroy=function(){if(this.element){this.unWireEVents(),e.prototype.destroy.call(this),this.element.classList.remove("e-smithchart"),this.removeSvg(),this.svgObject=null;var t=document.getElementById(this.element.id+"Keyboard_smith_chart_focus");t&&t.remove(),Ys("smithchartmeasuretext")}},i.prototype.wireEVents=function(){t.EventHandler.add(this.element,"click",this.smithchartOnClick,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.smithchartOnResize.bind(this))},i.prototype.mouseMove=function(e){"touchmove"===e.type?this.isTouch=!0:this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,this.tooltipRenderModule&&!this.isTouch&&this.tooltipRenderModule.smithchartMouseMove(this,e)},i.prototype.mouseEnd=function(e){if("touchend"===e.type?this.isTouch=!0:this.isTouch="touch"===e.pointerType||"2"===e.pointerType,this.tooltipRenderModule&&this.isTouch){var t=this.tooltipRenderModule.smithchartMouseMove(this,e);t&&(this.fadeoutTo=+setTimeout(function(){t.fadeOut()},2e3))}},i.prototype.smithchartOnClick=function(e){var t=e.target,i=this.isLegendClicked?t.children[1].id:t.id,o=document.getElementById(i).parentElement;if("containerlegendItem_Group"===document.getElementById(o.id).parentElement.id&&this.legendSettings.toggleVisibility){for(var r=o.childNodes[1],n=o.childNodes[0],a=r.textContent,l=void 0,s=void 0,h=0;h<this.smithchartLegendModule.legendSeries.length;h++)a===this.smithchartLegendModule.legendSeries[h].text&&(l=this.smithchartLegendModule.legendSeries[h].seriesIndex,s=this.smithchartLegendModule.legendSeries[h].fill);var c=document.getElementById(this.element.id+"_svg_seriesCollection"+l);"visible"===c.getAttribute("visibility")?(n.setAttribute("fill","gray"),c.setAttribute("visibility","hidden"),this.series[l].visibility="hidden"):(n.setAttribute("fill",s),c.setAttribute("visibility","visible"),this.series[l].visibility="visible")}this.removeNavigationStyle()},i.prototype.unWireEVents=function(){t.EventHandler.remove(this.element,"click",this.smithchartOnClick),t.EventHandler.remove(this.element,t.Browser.touchMoveEvent,this.mouseMove),t.EventHandler.remove(this.element,t.Browser.touchEndEvent,this.mouseEnd),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.smithchartOnResize)},i.prototype.print=function(e){new Nh(this).print(e)},i.prototype.export=function(e,t,i){new Nh(this).export(e,t,i)},i.prototype.chartKeyDown=function(e){var t="";return this.series[this.currentSeriesIndex].tooltip.visible&&("Tab"===e.code&&this.previousTargetId.indexOf("_Series")>-1||"Escape"===e.code)&&(t="ESC"),""!==t&&this.smithchartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},i.prototype.chartKeyUp=function(e){var t,i,o,r="",n=e.target.id,a=e.target,l=qt(this.element.id+"_Smithchart_title"),s=qt(this.element.id+"_svg_seriesCollections"),h=qt(this.element.id+"legendItem_Group");(this.removeNavigationStyle(),l&&l.setAttribute("class","e-smith-chart-focused"),s&&s.firstElementChild&&s.firstElementChild.children[1].lastElementChild)&&((o=(i=s.firstElementChild.children[1].lastElementChild).getAttribute("class"))&&-1===o.indexOf("e-smith-chart-focused")?o+=" e-smith-chart-focused":o||(o="e-smith-chart-focused"),i.setAttribute("class",o));h&&((o=(i=h.firstElementChild).getAttribute("class"))&&-1===o.indexOf("e-smith-chart-focused")?o+=" e-smith-chart-focused":o||(o="e-smith-chart-focused"),i.setAttribute("class",o));if("Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("_Series")>-1&&-1===n.indexOf("_Series")){t=qt(this.element.id+"_svg_seriesCollections");var c=this.previousTargetId.indexOf("_Marker")>-1?qt(this.element.id+"_svg_series"+this.currentSeriesIndex+"_Marker").children[this.currentPointIndex]:t.children[this.currentSeriesIndex];this.setTabIndex(c,document.getElementById(this.element.id+"_Series0_Points0_Marker0")),this.currentPointIndex=0,this.currentSeriesIndex=0}else this.previousTargetId.indexOf("_svg_Legend")>-1&&-1===n.indexOf("_svg_Legend")&&(t=qt(this.element.id+"legendItem_Group"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild));this.previousTargetId=n,r=this.series[0].tooltip.visible?"Tab":""}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),this.previousTargetId=n,n.indexOf("_svg_Legend")>-1){var d=a.parentElement.children;d[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,d.length);var p=d[this.currentLegendIndex];this.focusChild(p),this.removeNavigationStyle(),this.setNavigationStyle(p.id),n=p.children[1].id}else if(n.indexOf("_Series")>-1){t=a.parentElement.parentElement.parentElement;var u=e.target;if(a.removeAttribute("tabindex"),a.blur(),"ArrowRight"===e.code||"ArrowLeft"===e.code){for(var g=[],m=0;m<t.children.length;m++)t.children[m].id.indexOf("_svg_seriesCollection")>-1&&g.push(+t.children[m].id.split("_svg_seriesCollection")[1]);this.currentSeriesIndex=g.indexOf(this.currentSeriesIndex)+("ArrowRight"===e.code?1:-1),this.currentSeriesIndex=g[this.getActualIndex(this.currentSeriesIndex,g.length)]}else this.currentPointIndex+="ArrowUp"===e.code?1:-1;n.indexOf("_Marker")>-1&&(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"_svg_series"+this.currentSeriesIndex+"_Marker").childElementCount),u=qt(this.element.id+"_Series"+this.currentSeriesIndex+"_Points"+this.currentPointIndex+"_Marker"+this.currentPointIndex)),n=this.focusChild(u),this.removeNavigationStyle(),this.setNavigationStyle(n),r=this.series[this.currentSeriesIndex].tooltip.visible?"ArrowMove":""}}else("Enter"===e.code||"Space"===e.code)&&n.indexOf("_svg_Legend")>-1&&(n=n.indexOf("_svg_Legend")>-1?a.children[1].id:n,r="Enter");return""!==r&&this.smithchartKeyboardNavigations(e,n,r),"Tab"===e.code&&this.setNavigationStyle(n),!1},i.prototype.smithchartKeyboardNavigations=function(e,t,i){switch(this.isLegendClicked=!1,i){case"Tab":case"ArrowMove":if(t.indexOf("_Points")>-1){var o=+t.split("_Series")[1].split("_Points")[0],r=+t.split("_Series")[1].split("_Marker")[0].split("_Points")[1];this.tooltipRenderModule&&this.series[o].tooltip.visible&&this.tooltipRenderModule.createTooltip(this,e,r,o,this.series[o])}break;case"Enter":case"Space":t.indexOf("_LegendItemText")>-1&&(this.isLegendClicked=!0,this.delayRedraw=!0,this.smithchartOnClick(e),this.focusChild(document.getElementById(t).parentElement),this.setNavigationStyle(document.getElementById(t).parentElement.id));break;case"ESC":this.tooltipRenderModule.tooltipElement.fadeOut()}},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-smith-chart-focused")?t="e-smith-chart-focused "+t:t||(t="e-smith-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.smithchartOnResize=function(){var e=this;return this.animateSeries=!1,this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){e.render()},500),!1},i.prototype.requiredModules=function(){var e=[];this.legendSettings.visible&&e.push({member:"SmithchartLegend",args:[this]});for(var t=0;t<this.series.length;t++)if(this.series[t].tooltip.visible){e.push({member:"TooltipRender",args:[this]});break}return e},i.prototype.removeSvg=function(){Ys(this.element.id+"_Secondary_Element");if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&(0,t.remove)(this.svgObject)}},Hh([(0,t.Property)("Impedance")],i.prototype,"renderType",void 0),Hh([(0,t.Property)("")],i.prototype,"width",void 0),Hh([(0,t.Property)("")],i.prototype,"height",void 0),Hh([(0,t.Property)("Material")],i.prototype,"theme",void 0),Hh([(0,t.Complex)({},gs)],i.prototype,"margin",void 0),Hh([(0,t.Complex)({},us)],i.prototype,"font",void 0),Hh([(0,t.Complex)({},ms)],i.prototype,"border",void 0),Hh([(0,t.Complex)({},mh)],i.prototype,"title",void 0),Hh([(0,t.Collection)([{}],Lh)],i.prototype,"series",void 0),Hh([(0,t.Complex)({},nh)],i.prototype,"legendSettings",void 0),Hh([(0,t.Complex)({},dh)],i.prototype,"horizontalAxis",void 0),Hh([(0,t.Complex)({},dh)],i.prototype,"radialAxis",void 0),Hh([(0,t.Property)(null)],i.prototype,"background",void 0),Hh([(0,t.Property)(10)],i.prototype,"elementSpacing",void 0),Hh([(0,t.Property)(1)],i.prototype,"radius",void 0),Hh([(0,t.Event)()],i.prototype,"beforePrint",void 0),Hh([(0,t.Event)()],i.prototype,"animationComplete",void 0),Hh([(0,t.Event)()],i.prototype,"load",void 0),Hh([(0,t.Event)()],i.prototype,"loaded",void 0),Hh([(0,t.Event)()],i.prototype,"legendRender",void 0),Hh([(0,t.Event)()],i.prototype,"titleRender",void 0),Hh([(0,t.Event)()],i.prototype,"subtitleRender",void 0),Hh([(0,t.Event)()],i.prototype,"textRender",void 0),Hh([(0,t.Event)()],i.prototype,"axisLabelRender",void 0),Hh([(0,t.Event)()],i.prototype,"seriesRender",void 0),Hh([(0,t.Event)()],i.prototype,"tooltipRender",void 0),i=Hh([t.NotifyPropertyChanges],i)}(t.Component),jh=function(){function e(){}return e.prototype.smithchartMouseMove=function(e,t){var i,o,r;"touchend"===t.type||"touchmove"===t.type?(o=(i=t).changedTouches[0].clientX,r=i.changedTouches[0].clientY,this.tooltipElement=void 0):(r=t.clientY,o=t.clientX),this.setMouseXY(e,o,r);for(var n=0;n<e.series.length;n++){var a=e.series[n],l=n,s=new Ls;if((s=this.closestPointXY(e,this.mouseX,this.mouseY,a,l)).location&&a.tooltip.visible&&"visible"===a.visibility){this.createTooltip(e,t,s.index,l,a);break}this.tooltipElement&&(this.tooltipElement.enable&&!a.tooltip.template&&(this.tooltipElement.enable=!1),this.tooltipElement.fadeOut())}return this.tooltipElement},e.prototype.setMouseXY=function(e,t,i){var o=document.getElementById(e.element.id+"_svg");if(e.element&&o){var r=e.element.getBoundingClientRect(),n=o.getBoundingClientRect();this.mouseX=t-r.left-Math.max(n.left-r.left,0),this.mouseY=i-r.top-Math.max(n.top-r.top,0)}},e.prototype.createTooltip=function(e,i,o,r,n){var a=this,l=n.points[o],s=l.resistance,h=l.reactance,c=l.tooltip?[l.tooltip]:null,d=[s+" : "+(e.theme.indexOf("Tailwind3")>-1?h:"<b>"+h+"</b>")],p={cancel:!1,name:"tooltipRender",text:c||d,headerText:e.theme.indexOf("Tailwind3")>-1?n.name:"<b>"+n.name+"</b>",template:n.tooltip.template,point:l},u=function(i){var o=e.series[r].marker.height/2,s=document.getElementById(e.element.id+"_smithchart_tooltip_div");(0,t.isNullOrUndefined)(s)&&(s=(0,t.createElement)("div",{id:e.element.id+"_smithchart_tooltip_div",styles:"pointer-events: none; position: absolute;z-index:1;"}),document.getElementById(e.element.id+"_Secondary_Element").appendChild(s)),a.tooltipElement=new R.Tooltip({enable:!0,header:i.headerText,content:i.text,border:n.tooltip.border,fill:n.tooltip.fill||e.themeStyle.tooltipFill,opacity:n.tooltip.opacity,data:l,template:i.template,location:{x:a.locationX+e.element.offsetLeft,y:a.locationY-o+e.element.offsetTop},shared:!1,areaBounds:new ys(e.bounds.x,e.bounds.y,e.bounds.width,e.bounds.height),palette:[n.fill||e.seriesColors[r%e.seriesColors.length]],shapes:["Circle"],availableSize:e.availableSize,theme:e.theme}),a.tooltipElement.opacity=e.themeStyle.tooltipFillOpacity||a.tooltipElement.opacity,a.tooltipElement.textStyle.fontFamily=e.themeStyle.fontFamily||"Roboto, Segoe UI, Noto, Sans-serif",a.tooltipElement.textStyle.size=e.themeStyle.tooltipFontSize||"13px",a.tooltipElement.textStyle.color=e.themeStyle.tooltipBoldLabel||a.tooltipElement.textStyle.color,a.tooltipElement.appendTo(s);var h=document.getElementById(e.element.id+"_smithchart_tooltip_div_Trackball_0");h&&h.setAttribute("role","img")};u.bind(this,e),e.trigger("tooltipRender",p,u)},e.prototype.closestPointXY=function(e,t,i,o,r){for(var n,a,l,s=0;s<o.points.length;s++){a=e.seriesrender.getLocation(r,s),this.locationX=a.x,this.locationY=a.y,n=s;var h=t-a.x,c=i-a.y;if(Math.abs(Math.sqrt(h*h+c*c))<o.marker.width){l=a,n=s;break}}return{location:l,index:n}},e.prototype.getModuleName=function(){return"TooltipRender"},e.prototype.destroy=function(){},e}(),Uh=function(){function e(){this.legendSeries=[]}return e.prototype.renderLegend=function(e){this._drawLegend(e)},e.prototype.calculateLegendBounds=function(e){this.legendSeries=[];var t,i,o=e.legendSettings,r=o.height,n=o.width,a=o.itemPadding>0?o.itemPadding:0,l=o.position.toLowerCase(),s=o.title.textStyle,h=0,c=0,d=0,p=e.availableSize.width-(4*e.elementSpacing-2*o.border.width+2*e.border.width),u=o.rowCount,g=o.columnCount,m=Xs(e.legendSettings.title.text,s,e.themeStyle.legendTitleFont),y=0,f=0,v=0,b=0,x=0,S=e.series.length;if(e.legendSettings.visible&&0!==S){"bottom"===l||"top"===l||"custom"===l?(u&&g&&u<=g||null==u&&null!=g?u=S/g:null==u&&null==g&&(u=1),u&&(t=Math.ceil(S/u))):(u&&g&&u<=g||null!=u&&null==g?g=S/u:null==u&&null==g&&(g=1),g&&(t=g));for(var C=0;C<S;C++){this.legendSeries.push({text:e.series[C].name?e.series[C].name:"series"+C,seriesIndex:C,shape:e.legendSettings.shape,fill:e.series[C].fill||e.seriesColors[C%e.seriesColors.length],bounds:null});var F=this._getLegendSize(e,this.legendSeries[C]);h=Math.max(F.width,h),c=Math.max(F.height,c),this.legendSeries[C].bounds={width:h,height:c},x+=1,v=v+h+a,b=Math.max(c,b),"top"!==l&&"bottom"!==l&&"custom"!==l||v>p&&(v-=F.width+a,y=Math.max(y,v),v=F.width+a,f=f+b+a),x!==t&&C!==S-1||(y=Math.max(y,v),d=f=f+b+a,x=0,b=0,v=0)}i={x:0,y:0,width:m.width>y-a?m.width+20+a:y+20-2*e.border.width,height:d+e.elementSpacing}}return this.legendActualBounds=i,null!=n&&(this.legendActualBounds.width=n),null!=r&&(this.legendActualBounds.height=r),this.legendActualBounds},e.prototype._getLegendSize=function(e,t){var i=e.legendSettings,o=i.itemStyle.width,r=i.itemStyle.height,n=Xs(t.text,i.textStyle,e.themeStyle.legendLabelFont);return{width:o+n.width+i.shapePadding,height:Math.max(r,n.height)}},e.prototype._drawLegend=function(e){var t,i,o=e.legendSettings,r=o.position.toLowerCase(),n=o.alignment,a=this.legendActualBounds,l=0,s=e.title.font?e.title.font:e.title.textStyle,h=Xs(e.title.text,s,e.themeStyle.legendLabelFont).height,c=Xs(e.title.subtitle.text,e.title.subtitle.textStyle,e.themeStyle.legendLabelFont).height,d=e.elementSpacing,p=h+c+d+e.margin.top,u=o.itemPadding>0?o.itemPadding:0,g=e.availableSize.width,m=e.availableSize.height,y=o.border.width,f=0,v=Xs(o.title.text,o.title.textStyle,e.themeStyle.legendLabelFont).height,b=e.border.width,x=g-2*b,S=m-2*b;if(a.height+=v,"custom"!==r){switch(r){case"bottom":a.y=S-(a.height+y+d);break;case"top":a.y=b+p;break;case"right":a.x=x-a.width-2*d;break;case"left":a.x=b+2*d}if("left"===r||"right"===r)switch(n){case"Center":a.y=S/2-(a.height+2*y)/2+d/2;break;case"Near":a.y=b+2*d+p;break;case"Far":a.y=S-(a.height+y)-2*d}else switch(n){case"Center":a.x=x/2-(a.width+2*y)/2+d/2;break;case"Near":a.x=b+2*d;break;case"Far":a.x=x-(a.width+y)-2*d}}else a.y=o.location.y<S?o.location.y:0,a.x=o.location.x<x?o.location.x:0;if("bottom"===r||"top"===r)for(var C=0;C<this.legendSeries.length;C++)if((f+=this.legendSeries[C].bounds.width+u)>x){a.x=x/2-(a.width+2*y)/2+d/2;break}var F=e.renderer.createGroup({id:e.element.id+"_legend_group"});e.svgObject.appendChild(F),this.legendItemGroup=e.renderer.createGroup({id:e.element.id+"legendItem_Group"});var w=t=d,L=i=d;""!==o.title.text&&o.title.visible&&(F.appendChild(this.drawLegendTitle(e,o,a,F)),L=i=d+v);for(var P=0;P<this.legendSeries.length;P++)!(o.rowCount<o.columnCount||o.rowCount===o.columnCount)||"top"!==r&&"bottom"!==r&&"custom"!==r?(L+this.legendSeries[P].bounds.height+u+v+b>a.height+i&&(L=i,w+=l+u),this.legendGroup=this.drawLegendItem(e,o,this.legendSeries[P],P,w,L),F.appendChild(this.legendGroup),L+=this.legendSeries[P].bounds.height+u,l=Math.max(l,this.legendSeries[P].bounds.width)):(w+this.legendSeries[P].bounds.width>a.width+t&&(w=d,L+=this.legendSeries[P].bounds.height+u),this.legendGroup=this.drawLegendItem(e,o,this.legendSeries[P],P,w,L),F.appendChild(this.legendGroup),w+=this.legendSeries[P].bounds.width+u);F.setAttribute("transform","translate("+a.x.toString()+","+a.y.toString()+")"),this.drawLegendBorder(F,e,o,a)},e.prototype.drawLegendBorder=function(e,t,i,o){var r=new js(t.element.id+"_svg_legendRect","none",i.border,1,new ys(0,0,o.width,o.height));e.appendChild(t.renderer.drawRectangle(r))},e.prototype.drawLegendTitle=function(e,t,i,o){var r=e.elementSpacing,n=Xs(t.title.text,t.title.textStyle,e.themeStyle.legendLabelFont),a=n.width,l=n.height,s=t.title.textAlignment,h=0,c=i.width,d=r+l/2;switch(s){case"Far":h=c-a-h;break;case"Center":h=c/2-a/2}h<0&&(h=0,c=a),c<a+h&&(c=a+h);var p=$s(new Gs(e.element.id+"_LegendTitleText",h,d,"start",t.title.text),t.title.textStyle,t.title.textStyle.color||e.themeStyle.legendTitleFont.color,o,e.themeStyle.legendTitleFont);return p.setAttribute("aria-label",t.title.description||t.title.text),p},e.prototype.drawLegendItem=function(e,t,i,o,r,n){var a=this,l=t.itemStyle,s=Xs(i.text,t.textStyle,e.themeStyle.legendLabelFont).height,h={x:r+l.width/2,y:n+(s>l.height?s:l.height)/2},c=e.renderer.createGroup({id:e.element.id+"_svg_Legend"+o.toString()});c.style.cursor=t.toggleVisibility?"pointer":"default",c.setAttribute("tabindex",0===o?"0":"");var d={text:i.text,fill:i.fill,shape:i.shape,name:Mh,cancel:!1},p=function(r){if(!r.cancel){var n=a.drawLegendShape(e,i,h.x,h.y,o,t,r);c.appendChild(n);var d=new Gs(e.element.id+"_LegendItemText"+o.toString(),h.x+l.width/2+t.shapePadding,h.y+s/4,"start",r.text);t.textStyle.fontFamily=t.textStyle.fontFamily||e.themeStyle.legendLabelFont.fontFamily,t.textStyle.size=t.textStyle.size||e.themeStyle.legendLabelFont.size;var p=$s(d,t.textStyle,t.textStyle.color||e.themeStyle.legendLabelFont.color,c,e.themeStyle.legendLabelFont);c.setAttribute("aria-label",t.description||"Show "+d.text),c.setAttribute("role","button"),c.appendChild(p),a.legendItemGroup.appendChild(c)}};return p.bind(this),e.trigger(Mh,d,p),this.legendItemGroup},e.prototype.drawLegendShape=function(e,t,i,o,r,n,a){var l,s,h,c,d=n.itemStyle,p=d.width,u=d.height,g=i+-p/2,m={color:d.border.color,width:d.border.width},y="visible"===e.series[r].visibility?a.fill:"grey",f=a.shape.toLowerCase(),v=Math.sqrt(u*u+p*p)/2;switch(f){case"circle":s=new Us(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m,1,i,o,v,null),l=e.renderer.drawCircle(s);break;case"rectangle":c="M "+g+" "+(o+-u/2)+" L "+(p/2+i)+" "+(o+-u/2)+" L "+(i+p/2)+" "+(o+u/2)+" L "+g+" "+(o+u/2)+" L "+g+" "+(o+-u/2)+" z",h=new Ws(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h);break;case"diamond":c="M "+g+" "+o+" L "+i+" "+(o+-u/2)+" L "+(p/2+i)+" "+o+" L "+i+" "+(o+u/2)+" L "+g+" "+o+" z",h=new Ws(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h);break;case"pentagon":for(var b=0;b<=5;b++){var x=v*Math.cos(Math.PI/180*(72*b)),S=v*Math.sin(Math.PI/180*(72*b));c=0===b?"M "+(x+i)+" "+(o+S)+" ":c.concat("L "+(i+x)+" "+(o+S)+" ")}c=c.concat("Z"),h=new Ws(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h);break;case"triangle":c="M "+g+" "+(u/2+o)+" L "+i+" "+(o+-u/2)+" L "+(i+p/2)+" "+(o+u/2)+" L "+g+" "+(o+u/2)+" Z",h=new Ws(e.element.id+"_svg_LegendItemShape"+r.toString(),y,m.width,m.color,1,"",c),l=e.renderer.drawPath(h)}return l},e.prototype.getModuleName=function(){return"SmithchartLegend"},e.prototype.destroy=function(){},e}(),Xh=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Gh=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Yh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)("")],i.prototype,"color",void 0),Gh([(0,t.Property)(0)],i.prototype,"width",void 0),i}(t.ChildProperty),Zh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(null)],i.prototype,"size",void 0),Gh([(0,t.Property)(null)],i.prototype,"color",void 0),Gh([(0,t.Property)("Roboto, Segoe UI, Noto, Sans-serif")],i.prototype,"fontFamily",void 0),Gh([(0,t.Property)(null)],i.prototype,"fontWeight",void 0),Gh([(0,t.Property)(null)],i.prototype,"fontStyle",void 0),Gh([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),qh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(!1)],i.prototype,"visible",void 0),Gh([(0,t.Property)(null)],i.prototype,"color",void 0),Gh([(0,t.Property)(1)],i.prototype,"width",void 0),i}(t.ChildProperty),Qh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(!1)],i.prototype,"visible",void 0),Gh([(0,t.Property)("")],i.prototype,"fill",void 0),Gh([(0,t.Property)("")],i.prototype,"template",void 0),Gh([(0,t.Property)("")],i.prototype,"format",void 0),Gh([(0,t.Complex)({color:null,width:null},Yh)],i.prototype,"border",void 0),Gh([(0,t.Complex)({size:"12px",fontWeight:null,fontStyle:"Normal",fontFamily:null},Zh)],i.prototype,"textStyle",void 0),Gh([(0,t.Complex)({},qh)],i.prototype,"trackLineSettings",void 0),i}(t.ChildProperty),$h=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)("transparent")],i.prototype,"background",void 0),Gh([(0,t.Complex)({},Yh)],i.prototype,"border",void 0),i}(t.ChildProperty),Kh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(!1)],i.prototype,"visible",void 0),Gh([(0,t.Property)(null)],i.prototype,"color",void 0),Gh([(0,t.Property)("")],i.prototype,"dashArray",void 0),Gh([(0,t.Property)(1)],i.prototype,"width",void 0),Gh([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Jh=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(null)],i.prototype,"startRange",void 0),Gh([(0,t.Property)(null)],i.prototype,"endRange",void 0),Gh([(0,t.Property)(null)],i.prototype,"color",void 0),Gh([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),ec=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(null)],i.prototype,"minX",void 0),Gh([(0,t.Property)(null)],i.prototype,"maxX",void 0),Gh([(0,t.Property)(null)],i.prototype,"minY",void 0),Gh([(0,t.Property)(null)],i.prototype,"maxY",void 0),Gh([(0,t.Property)(0)],i.prototype,"value",void 0),Gh([(0,t.Complex)({},Kh)],i.prototype,"lineSettings",void 0),i}(t.ChildProperty),tc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(5)],i.prototype,"left",void 0),Gh([(0,t.Property)(5)],i.prototype,"right",void 0),Gh([(0,t.Property)(5)],i.prototype,"bottom",void 0),Gh([(0,t.Property)(5)],i.prototype,"top",void 0),i}(t.ChildProperty),ic=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)([])],i.prototype,"visible",void 0),Gh([(0,t.Property)(1)],i.prototype,"opacity",void 0),Gh([(0,t.Property)(8)],i.prototype,"size",void 0),Gh([(0,t.Property)("#00bdae")],i.prototype,"fill",void 0),Gh([(0,t.Complex)({width:1},Yh)],i.prototype,"border",void 0),i}(t.ChildProperty),oc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)(0)],i.prototype,"x",void 0),Gh([(0,t.Property)(0)],i.prototype,"y",void 0),i}(t.ChildProperty),rc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xh(i,e),Gh([(0,t.Property)([])],i.prototype,"visible",void 0),Gh([(0,t.Property)(1)],i.prototype,"opacity",void 0),Gh([(0,t.Property)("transparent")],i.prototype,"fill",void 0),Gh([(0,t.Property)("")],i.prototype,"format",void 0),Gh([(0,t.Complex)({color:"transparent",width:0},Yh)],i.prototype,"border",void 0),Gh([(0,t.Complex)({size:null,fontWeight:null,fontStyle:null,fontFamily:null},Zh)],i.prototype,"textStyle",void 0),Gh([(0,t.Complex)({},oc)],i.prototype,"offset",void 0),Gh([(0,t.Property)("None")],i.prototype,"edgeLabelMode",void 0),i}(t.ChildProperty),nc=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),ac=function(e,t){this.width=e,this.height=t};function lc(e){var t;switch(e){case"Fabric":case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}function sc(e){var t;switch(e){case"BootstrapDark":case"FabricDark":case"MaterialDark":case"HighContrast":t={axisLineColor:"#ffffff",dataLabelColor:"BootstrapDark"===e?"#676767":"FabricDark"===e?"#A19F9D":"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"#969696",rangeBandColor:"#ffffff",tooltipFill:"BootstrapDark"===e?"#F0F0F0":"FabricDark"===e?"#A19F9D":"MaterialDark"===e?"#F4F4F4":"#FFFFFF",background:"#000000",tooltipFontColor:"BootstrapDark"===e?"#1A1A1A":"FabricDark"===e?"#DADADA":"MaterialDark"===e?"rgba(18, 18, 18, 1)":"#000000",trackerLineColor:"#ffffff",labelFontFamily:"BootstrapDark"===e?"Helvetica":"FabricDark"===e?"Segoe UI":"MaterialDark"===e?"Roboto":"Segoe UI",tooltipFontFamily:"BootstrapDark"===e?"Helvetica":"FabricDark"===e?"Segoe UI":"MaterialDark"===e?"Roboto":"Segoe UI",dataLabelFont:{fontFamily:"BootstrapDark"===e?"Helvetica":"FabricDark"===e?"Segoe UI":"MaterialDark"===e?"Roboto":"Segoe UI",color:"BootstrapDark"===e?"#676767":"FabricDark"===e?"#A19F9D":"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"#969696",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"BootstrapDark"===e?"#0070F0":"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#FFD939"};break;case"Bootstrap4":t={axisLineColor:"#6C757D",dataLabelColor:"#495057",rangeBandColor:"#212529",tooltipFill:"#212529",background:"#FFFFFF",tooltipFontColor:"#F9FAFB",trackerLineColor:"#212529",fontFamily:"Helvetica",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Helvetica",tooltipFontFamily:"Helvetica",dataLabelFont:{fontFamily:"Helvetica",color:"#495057",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#007BFF"};break;case"Tailwind3":t={axisLineColor:"#4B5563",dataLabelColor:"#111827",rangeBandColor:"#1F2937",background:"#FFFFFF",tooltipFill:"#111827",tooltipFontColor:"#F9FAFB",trackerLineColor:"#1F2937",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#6B7280",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"500",tabColor:"#4F46E5"};break;case"Tailwind3Dark":t={axisLineColor:"#D1D5DB",dataLabelColor:"#FFFFFF",rangeBandColor:"#6B7280",background:"transparent",tooltipFill:"#F9FAFB",tooltipFontColor:"#1F2937",trackerLineColor:"#6B7280",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#FFFFFF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"500",tabColor:"#22D3EE"};break;case"Tailwind":t={axisLineColor:"#4B5563",dataLabelColor:"#6B7280",rangeBandColor:"#212529",background:"#FFFFFF",tooltipFill:"#111827",tooltipFontColor:"#F9FAFB",trackerLineColor:"#1F2937",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#6B7280",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#4F46E5"};break;case"TailwindDark":t={axisLineColor:"#D1D5DB",dataLabelColor:"#9CA3AF",rangeBandColor:"#F9FAFB",background:"transparent",tooltipFill:"#E9ECEF",tooltipFontColor:"#1F2937",trackerLineColor:"#9CA3AF",fontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Inter",tooltipFontFamily:"Inter",dataLabelFont:{fontFamily:"Inter",color:"#9CA3AF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#22D3EE"};break;case"Bootstrap5":t={axisLineColor:"#343A40",dataLabelColor:"#212529BF",rangeBandColor:"#343A40",background:"rgba(255, 255, 255, 0.0)",tooltipFill:"#000000E5",tooltipFontColor:"#FFFFFF",trackerLineColor:"#343A40",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#495057",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0D6EFD"};break;case"Bootstrap5Dark":t={axisLineColor:"#ADB5BD",dataLabelColor:"#DEE2E6BF",rangeBandColor:"#ADB5BD",background:"rgba(255, 255, 255, 0.0)",tooltipFill:"#FFFFFFE5",tooltipFontColor:"#212529",trackerLineColor:"#ADB5BD",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#E9ECEF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0D6EFD"};break;case"Fluent":t={axisLineColor:"#D2D0CE;",dataLabelColor:"#3B3A39",rangeBandColor:"#A19F9D",background:"rgba(255, 255, 255, 0.0001)",tooltipFill:"#FFFFFF",tooltipFontColor:"#323130",trackerLineColor:"#A19F9D",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#3B3A39",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"FluentDark":t={axisLineColor:"#3B3A39;",dataLabelColor:"#D2D0CE",rangeBandColor:"#797775",background:"transparent",tooltipFill:"#323130",tooltipFontColor:"#F3F2F1",trackerLineColor:"#797775",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#D2D0CE",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Fluent2":t={axisLineColor:"#D2D0CE",dataLabelColor:"#424242",rangeBandColor:"#A19F9D",background:"transparent",tooltipFill:"#FFFFFF",tooltipFontColor:"#242424",trackerLineColor:"#D2D0CE",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#242424",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Fluent2Dark":t={axisLineColor:"#8A8886",dataLabelColor:"#D6D6D6",rangeBandColor:"#8A8886",background:"transparent",tooltipFill:"#292929",tooltipFontColor:"#FFFFFF",trackerLineColor:"#3B3A39",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#D6D6D6",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Fluent2HighContrast":t={axisLineColor:"#8A8886",dataLabelColor:"#FFFFFF",rangeBandColor:"#8A8886",background:"transparent",tooltipFill:"#000000",tooltipFontColor:"#FFFFFF",trackerLineColor:"#3B3A39",fontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",tooltipFontFamily:"Segoe UI",dataLabelFont:{fontFamily:"Segoe UI",color:"#FFFFFF",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#0078D4"};break;case"Material3":t={axisLineColor:"#C4C7C5",dataLabelColor:"#49454E",rangeBandColor:"rgba(73, 69, 78, 0.3)",background:"rgba(255, 255, 255, 0.0001)",tooltipFill:"#313033",tooltipFontColor:"#F4EFF4",trackerLineColor:"#49454E",fontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",tooltipFontFamily:"Roboto",dataLabelFont:{fontFamily:"Roboto",color:"#49454E",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#49454E"};break;case"Material3Dark":t={axisLineColor:"#49454F",dataLabelColor:"#CAC4D0",rangeBandColor:"rgba(202, 196, 208, 0.3)",background:"transparent",tooltipFill:"#E6E1E5",tooltipFontColor:"#313033",trackerLineColor:"#CAC4D0",fontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",tooltipFontFamily:"Roboto",dataLabelFont:{fontFamily:"Roboto",color:"#CAC4D0",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"#CAC4D0"};break;default:t={axisLineColor:"#000000",dataLabelColor:"Bootstrap"===e?"#676767":"Fabric"===e?"#666666":"rgba(97, 97, 97, 1)",rangeBandColor:"#000000",background:"#FFFFFF",tooltipFill:"Bootstrap"===e?"#212529":"Fabric"===e?"#FFFFFF":"#000816",tooltipFontColor:"Bootstrap"===e?"#F9FAFB":"Fabric"===e?"#333333":"rgba(249, 250, 251, 1)",trackerLineColor:"#000000",labelFontFamily:"Bootstrap"===e?"Helvetica":"Fabric"===e?"Segoe UI":"Roboto",tooltipFontFamily:"Bootstrap"===e?"Helvetica":"Fabric"===e?"Segoe UI":"Roboto",dataLabelFont:{fontFamily:"Bootstrap"===e?"Helvetica":"Fabric"===e?"Segoe UI":"Roboto",color:"Bootstrap"===e?"#676767":"Fabric"===e?"#666666":"rgba(97, 97, 97, 1)",size:"12px",fontWeight:"400",fontStyle:"Medium"},tooltipFontWeight:"400",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9"}}return t}function hc(e,t){return null!=e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function cc(e){e.renderer=new R.SvgRenderer(e.element.id),function(e){var t=e.element.clientWidth?e.element.clientWidth:e.element.parentElement?e.element.parentElement.clientWidth?e.element.parentElement.clientWidth:window.innerWidth:100,i=e.element.clientHeight?e.element.clientHeight:e.element.parentElement?e.element.parentElement.clientHeight:50;e.availableSize=new ac(hc(e.width,t)||t,hc(e.height,i)||i||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):i))}(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height})}var dc=function(e,t,i,o){this.x=e,this.y=t,this.width=i,this.height=o},pc=function(e,t,i,o,r,n,a){this.id=e,this.fill=t,this.opacity=r,this["stroke-width"]=i,this.stroke=o,this.d=a,this["stroke-dasharray"]=n},uc=function(e){function t(t,i,o,r,n,a,l,s,h){void 0===a&&(a=0),void 0===l&&(l=0),void 0===s&&(s=0),void 0===h&&(h=0);var c=e.call(this,t,i,o.width,o.color,r)||this;return c.rect=n,c.topLeft=a,c.topRight=l,c.bottomLeft=s,c.bottomRight=h,c}return nc(t,e),t}(pc),gc=function(e){function t(t,i,o,r,n,a,l,s){var h=e.call(this,t,i,o.width,o.color,r)||this;return h.cy=a,h.cx=n,h.r=l,h["stroke-dasharray"]=s,h}return nc(t,e),t}(pc);function mc(e,t){return t&&t.appendChild(e),e}function yc(e,t,i){var o,r,n,a,l;return t.d=(o=t.rect,r=t.topLeft,n=t.topRight,a=t.bottomLeft,l=t.bottomRight,"M "+o.x+" "+(r+o.y)+" Q "+o.x+" "+o.y+" "+(o.x+r)+" "+o.y+" L "+(o.x+o.width-n)+" "+o.y+" Q "+(o.x+o.width)+" "+o.y+" "+(o.x+o.width)+" "+(o.y+n)+" L "+(o.x+o.width)+" "+(o.y+o.height-l)+" Q "+(o.x+o.width)+" "+(o.y+o.height)+" "+(o.x+o.width-l)+" "+(o.y+o.height)+" L "+(o.x+a)+" "+(o.y+o.height)+" Q "+o.x+" "+(o.y+o.height)+" "+o.x+" "+(o.y+o.height-a)+" L "+o.x+" "+(r+o.y)+" Z"),mc(e.renderer.drawPath(t),i)}function fc(e,t,i){return mc(e.renderer.drawPath(t),i)}function vc(e,i,o){var r=document.getElementById("sparklinesmeasuretext");return null===r&&(r=(0,t.createElement)("text",{id:"sparklinesmeasuretext"}),document.body.appendChild(r)),r.innerText=e,r.style.fontStyle=i.fontStyle||o.fontStyle,r.style.fontFamily=i.fontFamily||o.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.position="absolute",r.style.fontSize=i.size||o.size,r.style.fontWeight=i.fontWeight||o.fontWeight,r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new ac(r.clientWidth,r.clientHeight)}var bc=function(e,t,i,o,r,n,a){void 0===a&&(a=""),this.transform="",this.baseLine="auto",this.id=e,this.x=t,this.y=i,this.anchor=o,this.text=r,this.transform=a,this.baseLine=n};function xc(e){var i=document.getElementById(e);return i?(0,t.remove)(i):null}function Sc(e){return document.getElementById(e)}function Cc(e,t,i){return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height}var Fc=function(){function e(e){this.sparkline=e}return e.prototype.processData=function(){var e=this.sparkline.dataSource;!(0,t.isNullOrUndefined)(e)&&e.length&&(isNaN(this.sparkline.dataSource[0])&&"Numeric"!==this.sparkline.valueType?this["process"+this.sparkline.valueType]():(e=this.sparkline.enableRtl?e.reverse():e,this.sparkline.sparklineData=e),this.axisCalculation())},e.prototype.processDataManager=function(){var e,t,i=this;this.sparkline.dataSource instanceof ao.DataManager?(e=this.sparkline.dataSource,t=this.sparkline.query instanceof ao.Query?this.sparkline.query:new ao.Query,e.executeQuery(t).then(function(e){i.sparkline.setProperties({dataSource:e.result},!0),i.sparkline.sparklineData=i.sparkline.dataSource,i.sparkline.processSparklineData()})):this.sparkline.processSparklineData()},e.prototype.processCategory=function(e,t,i){var o=this;void 0===e&&(e=this.sparkline.dataSource),void 0===t&&(t=this.sparkline.xName),void 0===i&&(i=this.sparkline.yName);var r=[],n=[];e.forEach(function(e){-1===n.indexOf(e[t])&&n.push(e[t]);var a={};a[o.sparkline.xName]=n.indexOf(e[t]),a[o.sparkline.yName]=e[i],r.push(a)}),this.sparkline.sparklineData=r},e.prototype.processDateTime=function(e,t,i){void 0===e&&(e=this.sparkline.dataSource),void 0===t&&(t=this.sparkline.xName),void 0===i&&(i=this.sparkline.yName);var o=[];e.forEach(function(e){var r={};r[t]=e[t].getTime(),r[i]=e[i],o.push(r)}),this.sparkline.sparklineData=o},e.prototype.renderSeries=function(){var e=this,t=this.sparkline;this.clipId=t.element.id+"_sparkline_clip_path",this.drawAxis();var i={name:"seriesRendering",cancel:!1,lineWidth:t.lineWidth,border:t.border,fill:t.fill,sparkline:t},o=function(i){if(e.visiblePoints&&!i.cancel){if("Pie"!==t.type&&"WinLoss"!==t.type&&t.rangeBandSettings.length){for(var o=e.sparkline.renderer.createGroup({id:e.sparkline.element.id+"_sparkline_rangeband_g"}),r=0;r<t.rangeBandSettings.length;r++)(t.axisSettings.minY<=t.rangeBandSettings[r].startRange||t.axisSettings.maxY>=t.rangeBandSettings[r].endRange)&&e.rangeBand(t.rangeBandSettings[r],o,r);e.sparkline.svgObject.appendChild(o)}e["render"+t.type](e.visiblePoints,i),e.renderMarker(e.visiblePoints),e.renderLabel(e.visiblePoints)}};o.bind(this),t.trigger("seriesRendering",i,o)},e.prototype.rangeBand=function(e,t,i){var o=this.sparkline,r=o.availableSize.height-2*o.padding.top,n=o.availableSize.width-2*o.padding.left,a=e.startRange,l=e.endRange,s=r-r/this.unitY*(a-this.min)+o.padding.top,h=r-r/this.unitY*(l-this.min)+o.padding.top,c=e.color||this.sparkline.sparkTheme.rangeBandColor;h>r+o.padding.top?h=r+o.padding.top:h<0+o.padding.top&&(h=0+o.padding.top),s>r+o.padding.top?s=r+o.padding.top:s<0+o.padding.top&&(s=0+o.padding.top);var d="M "+o.padding.left+" "+s+" L "+(n+o.padding.left)+" "+s+" L "+(n+o.padding.left)+" "+h+" L "+o.padding.left+" "+h+" Z ",p={id:o.element.id+"_rangeBand_"+i,fill:c,opacity:e.opacity,stroke:"transparent","stroke-width":o.lineWidth,d,"stroke-dasharray":""};fc(this.sparkline,p,t)},e.prototype.renderLine=function(e,t){var i=this.sparkline,o=this.sparkline.renderer.createGroup({id:i.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"}),r=this.sparkline.fill;r="#00bdae"===this.sparkline.fill&&"Bootstrap4"===this.sparkline.theme?this.sparkline.sparkTheme.axisLineColor:r;for(var n=new pc(i.element.id+"_sparkline_line","transparent",t.lineWidth,r,i.opacity),a="",l=0,s=e.length;l<s;l++)0===l&&(a="M "+e[0].x+" "+e[l].y+" "),a+="L "+e[l].x+" "+e[l].y+" ";n.d=a,n["aria-label"]="Line series with"+e.length+"data points",n.tabindex="0",fc(this.sparkline,n,o),this.sparkline.svgObject.appendChild(o)},e.prototype.renderPie=function(e,i){var o,r,n,a,l=this.sparkline,s=l.availableSize.height-(l.padding.top+l.padding.bottom),h=l.availableSize.width-(l.padding.left+l.padding.right),c=s<=h?s/2:h/2,d=l.availableSize.width/2,p=l.availableSize.height/2,u=0,g=i.border.color,m=l.opacity,y=i.border.width,f=l.palette.length?l.palette:lc(this.sparkline.theme),v=this.sparkline.renderer.createGroup({id:l.element.id+"_sparkline_g"}),b=(0,t.extend)([],[],e);if(l.highPointColor||l.lowPointColor){var x=b.map(function(e){return e.yVal});n=Math.min.apply(null,x),a=Math.max.apply(null,x)}this.negativePointIndexes=[];for(var S=0,C=90,F=void 0,w=void 0;S<e.length;S++){F=(C+=u)+(u=360===(u=e[S].degree)?u-.001:u),o=(C-90)*Math.PI/180,r=(F-90)*Math.PI/180,e[S].stAng=o,e[S].endAng=r,w=u<180?"0":"1";var L=e[S].coordinates={sX:d+c*Math.cos(o),sY:p+c*Math.sin(o),eX:d+c*Math.cos(r),eY:p+c*Math.sin(r)},P="M "+d+" "+p+" L "+L.eX+" "+L.eY+" A "+c+" "+c+" 0 "+w+",0 "+L.sX+" "+L.sY+" Z",A={id:l.element.id+"_sparkline_pie_"+S,opacity:m,fill:f[S%f.length],stroke:g,"stroke-width":y,d:P,"stroke-dasharray":""};this.getPieSpecialPoint(e[S],l,A,S,a,n,e.length);var M=this.triggerPointRender("pointRendering",S,A.fill,{color:g,width:y});if(A.fill=M.fill,A.stroke=M.border.color,A["stroke-width"]=M.border.width,!M.cancel){var D=fc(this.sparkline,A,v);D.setAttribute("role","img"),D.setAttribute("aria-label",l.dataSource[S][l.xName]+" : "+e[S].yVal),D.setAttribute("tabindex",0===S?"0":"-1"),D.style.outline="none"}var k=r-o,R={x:d+c/2*Math.cos(o+k/2),y:p+c/2*Math.sin(o+k/2)};e[S].location.x=R.x,e[S].location.y=R.y}this.sparkline.svgObject.appendChild(v)},e.prototype.getPieSpecialPoint=function(e,t,i,o,r,n,a){e.yVal<0&&t.negativePointColor&&(i.fill=t.negativePointColor,this.negativePointIndexes.push(o)),0===o&&t.startPointColor?(i.fill=t.startPointColor,this.startPointIndex=o):o===a-1&&t.endPointColor&&(i.fill=t.endPointColor,this.endPointIndex=o),e.yVal===r&&t.highPointColor?(i.fill=t.highPointColor,this.highPointIndex=o):e.yVal===n&&t.lowPointColor&&(i.fill=t.lowPointColor,this.lowPointIndex=o)},e.prototype.renderArea=function(e,t){for(var i=this.sparkline,o=this.sparkline.renderer.createGroup({id:i.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"}),r=new pc(i.element.id+"_sparkline_area",t.fill,0,"transparent",i.opacity),n="",a="",l=0,s=e.length;l<s;l++)0!==l?a+="L "+e[l].x+" "+e[l].y+" ":(n="M "+e[l].x+" "+this.axisHeight+" ",a="M "+e[l].x+" "+e[l].y+" "),n+="L "+e[l].x+" "+e[l].y+" ",l===s-1&&(n+="L "+e[l].x+" "+this.axisHeight+" Z");r.d=n,r["aria-label"]="Area series with"+e.length+"data points",fc(this.sparkline,r,o),r=new pc(i.element.id+"_sparkline_area_str","transparent",t.border.width,t.border.color,i.opacity,"",a),fc(this.sparkline,r,o),this.sparkline.svgObject.appendChild(o)},e.prototype.renderColumn=function(e,i){var o,r,n=this,a=this.sparkline,l=(0,t.extend)([],[],e),s=this.sparkline.renderer.createGroup({id:a.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"});if(this.sparkline.highPointColor||this.sparkline.lowPointColor){var h=l.map(function(e){return e.markerPosition});r=Math.min.apply(null,h),o=Math.max.apply(null,h)}var c,d=a.element.id+"_sparkline_column_",p=new uc(d,"",i.border,a.opacity,null),u=e.length;this.negativePointIndexes=[];for(var g=a.palette.length?a.palette:lc(this.sparkline.theme),m=function(t){c=e[t],p.id=d+t,p.fill="#00bdae"!==a.fill?a.fill:g[0],p.rect=new dc(c.x,c.y,c.width,c.height),y.getSpecialPoint(!0,c,a,p,t,r,o,u),c.location.y=c.markerPosition<=y.axisHeight?c.y:c.y+c.height,c.location.x=c.x+c.width/2,p.stroke=i.border.color?i.border.color:p.fill;var l={name:"pointRendering",cancel:!1,pointIndex:t,fill:p.fill,border:{color:p.stroke,width:i.border.width}};y.sparkline.trigger("pointRendering",l,function(){if(c=e[t],p.id=d+t,p.rect=new dc(c.x,c.y,c.width,c.height),n.getSpecialPoint(!0,c,a,p,t,r,o,u),p.fill=l.fill,p.stroke=l.border.color,c.location.y=c.markerPosition<=n.axisHeight?c.y:c.y+c.height,p["stroke-width"]=l.border.width,c.location.x=c.x+c.width/2,!l.cancel){var i=yc(a,p,s);i.setAttribute("role","img"),i.setAttribute("aria-label",a.dataSource[t][a.xName]+" : "+e[t].yVal),i.setAttribute("tabindex",0===t?"0":"-1"),i.style.outline="none",s.appendChild(i)}})},y=this,f=0;f<u;f++)m(f);this.sparkline.svgObject.appendChild(s)},e.prototype.renderWinLoss=function(e,t){for(var i,o=this.sparkline,r=this.sparkline.renderer.createGroup({id:o.element.id+"_sparkline_g","clip-path":"url(#"+this.clipId+")"}),n=o.element.id+"_sparkline_winloss_",a=new uc(n,"",t.border,o.opacity,null),l=e.length,s=o.palette.length,h=o.palette.length?o.palette:lc(this.sparkline.theme),c=0;c<l;c++){i=e[c],a.id=n+c,a.fill=s?o.palette[c%s]:i.yVal===this.axisValue?this.sparkline.tiePointColor||"#a216f3":i.yVal>this.axisValue?t.fill||h[c%h.length]:o.negativePointColor||"#e20f07",a.stroke=t.border.color?t.border.color:a.fill,a.rect=new dc(i.x,i.y,i.width,i.height),i.location.x=i.x+i.width/2,i.location.y=i.yVal>=this.axisValue?i.y:i.y+i.height;var d=this.triggerPointRender("pointRendering",c,a.fill,{color:a.stroke,width:t.border.width});if(a.fill=d.fill,a.stroke=d.border.color,a["stroke-width"]=d.border.width,!d.cancel){var p=yc(o,a,r);p.setAttribute("role","img"),p.setAttribute("aria-label",o.dataSource[c][o.xName]+" : "+e[c].yVal),p.setAttribute("tabindex",0===c?"0":"-1"),p.style.outline="none"}}this.sparkline.svgObject.appendChild(r)},e.prototype.renderMarker=function(e){var i=this,o=this.sparkline,r=o.markerSettings;if("Pie"!==o.type&&"WinLoss"!==o.type&&r.visible.length){var n,a,l,s=(0,t.extend)([],[],e),h=this.sparkline.renderer.createGroup({id:o.element.id+"_sparkline_marker_g","clip-path":"url(#"+this.clipId+")"}),c=o.element.id+"_sparkline_marker_",d=new gc("",r.fill,r.border,r.opacity,0,0,r.size/2,""),p=r.visible.join();if(p.toLowerCase().indexOf("high")>-1||p.toLowerCase().indexOf("low")>-1){var u=s.map(function(e){return e.markerPosition});a=Math.min.apply(null,u),l=Math.max.apply(null,u)}this.negativePointIndexes=[];for(var g=function(t,s){n=e[t],d.id=c+t,d.cx=n.location.x,d.cy=n.location.y,d.fill=r.fill;var u=p.toLowerCase().indexOf("all")>-1;u=m.getSpecialPoint(u,n,o,d,t,a,l,s,p.toLowerCase()),d.stroke=r.border.color||d.fill;var g={name:"markerRendering",cancel:!1,border:{color:d.stroke,width:r.border.width},fill:d.fill,pointIndex:t,sparkline:m.sparkline,x:d.cx,y:d.cy,size:r.size};m.sparkline.trigger("markerRendering",g,function(){if(u&&!g.cancel){d.id=c+t,d.cx=g.x,d.cy=g.y,d.fill=g.fill,d.stroke=g.border.color,d["stroke-width"]=g.border.width,d.r=g.size/2;var r=function(e,t,i){return mc(e.renderer.drawCircle(t),i)}(o,d,h);r.setAttribute("role","img"),r.setAttribute("aria-label",o.dataSource[t][o.xName]+" : "+e[t].yVal),(i.sparkline.type.indexOf("Line")>-1||i.sparkline.type.indexOf("Area")>-1)&&(r.setAttribute("tabindex",0===t?"0":"-1"),r.style.outline="none"),h.appendChild(r)}})},m=this,y=0,f=e.length;y<f;y++)g(y,f);this.sparkline.svgObject.appendChild(h)}},e.prototype.getSpecialPoint=function(e,t,i,o,r,n,a,l,s){return void 0===s&&(s=""),t.markerPosition>this.axisHeight&&(o.fill=i.negativePointColor||o.fill,this.negativePointIndexes.push(r),e=e||s.indexOf("negative")>-1),0===r?(o.fill=i.startPointColor||o.fill,this.startPointIndex=r,e=e||s.indexOf("start")>-1):r===l-1&&(o.fill=i.endPointColor||o.fill,this.endPointIndex=r,e=e||s.indexOf("end")>-1),t.markerPosition===n?(o.fill=i.highPointColor||o.fill,this.highPointIndex=r,e=e||s.indexOf("high")>-1):t.markerPosition===a&&(o.fill=i.lowPointColor||o.fill,this.lowPointIndex=r,e=e||s.indexOf("low")>-1),s.indexOf("none")>-1&&(e=!1),e},e.prototype.renderLabel=function(e){var i=this,o=this.sparkline,r=o.dataLabelSettings,n=r.textStyle.color||o.sparkTheme.dataLabelColor;if("WinLoss"!==o.type&&r.visible.length){var a,l,s=(0,t.extend)([],[],e),h=o.element.id+"_sparkline_label_",c=this.sparkline.renderer.createGroup({id:o.element.id+"_sparkline_label_g",style:"pointer-events: none;"});c.setAttribute("aria-hidden","true");for(var d,p=h+"text_",u=h+"rect_",g=new bc("",0,0,"middle","","middle"),m=r.textStyle,y=s.map(function(e){return e.markerPosition}),f=Math.min.apply(null,y),v=Math.max.apply(null,y),b="transparent"!==r.fill||r.border.width?2:0,x=vc("sparkline_measure_text",m,this.sparkline.sparkTheme.dataLabelFont),S=new uc("",r.fill,r.border,r.opacity,null),C=function(t,s){l=e[t],g.id=p+t,g.x=l.location.x+r.offset.x,g.y=("Pie"===o.type?l.location.y:l.markerPosition>F.axisHeight?l.location.y+x.height/2+1+2+b:l.location.y-x.height/2-1-b)+r.offset.y,g.text=""!==r.format?F.formatter(r.format,F.sparkline.dataSource[t]):l.yVal.toString();var y={name:"dataLabelRendering",cancel:!1,border:r.border,fill:r.fill,pointIndex:t,sparkline:F.sparkline,x:g.x,y:g.y,text:g.text,color:n};F.sparkline.trigger("dataLabelRendering",y,function(){x=vc(y.text,m,i.sparkline.sparkTheme.dataLabelFont),g.text=y.text;var e=r.visible.join().toLowerCase().indexOf("all")>-1;e=i.getLabelVisible(e,l,t,r,s,f,v),d=i.arrangeLabelPosition(r.edgeLabelMode,e,y.x,t,s,x,b),e&&!y.cancel&&d.render&&(S.id=u+t,S.fill=y.fill,S.stroke=y.border.color,S["stroke-width"]=y.border.width,g.y=y.y,g.x=d.x,S.rect=new dc(g.x-(x.width/2+b),g.y-b-x.height/1.75,x.width+2*b,x.height+2*b),a=i.sparkline.renderer.createGroup({id:h+"g"+t}),yc(o,S,a),function(e,t,i,o,r){var n={id:e.id,x:e.x,y:e.y,transform:e.transform,opacity:t.opacity,fill:i,"font-family":t.fontFamily||r.fontFamily,"font-weight":t.fontWeight||r.fontWeight,"font-size":t.size||r.size,"font-style":t.fontStyle||r.fontStyle,"text-anchor":e.anchor,"dominant-baseline":e.baseLine},a=new R.SvgRenderer("").createText(n,e.text);a.style["user-select"]="none",a.style["-moz-user-select"]="none",a.style["-webkit-touch-callout"]="none",a.style["-webkit-user-select"]="none",a.style["-khtml-user-select"]="none",a.style["-ms-user-select"]="none",a.style["-o-user-select"]="none",o.appendChild(a)}(g,m,y.color,a,i.sparkline.sparkTheme.dataLabelFont),c.appendChild(a))})},F=this,w=0,L=e.length;w<L;w++)C(w,L);this.sparkline.svgObject.appendChild(c)}},e.prototype.arrangeLabelPosition=function(e,t,i,o,r,n,a){return"None"===e||(0===o&&i-n.width/2-a<=0?"Hide"===e?t=!1:i=this.sparkline.padding.left+a+n.width/2:o===r-1&&i+n.width/2+a>=this.sparkline.availableSize.width&&("Hide"===e?t=!1:i-=n.width/2+a)),{x:i,render:t}},e.prototype.getLabelVisible=function(e,t,i,o,r,n,a){var l=o.visible.join().toLowerCase();return t.markerPosition>this.axisHeight&&(e=e||l.indexOf("negative")>-1),0===i?e=e||l.indexOf("start")>-1:i===r-1&&(e=e||l.indexOf("end")>-1),t.markerPosition===n?e=e||l.indexOf("high")>-1:t.markerPosition===a&&(e=e||l.indexOf("low")>-1),o.visible.join().toLowerCase().indexOf("none")>-1&&(e=!1),e},e.prototype.formatter=function(e,i){if((0,t.isNullOrUndefined)(e))return null;for(var o=0,r=Object.keys(i);o<r.length;o++){var n=r[o];e=e.split("${"+n+"}").join(i[n])}return e},e.prototype.axisCalculation=function(){this.findRanges(this.sparkline.sparklineData)},e.prototype.getInterval=function(e,i){var o=1,r=e[0][i],n=(0,t.isNullOrUndefined)(e[1])?void 0:e[1][i];if(!(0,t.isNullOrUndefined)(r)&&!(0,t.isNullOrUndefined)(n)){var a=(0,t.extend)([],e),l=[];a.forEach(function(e){(0,t.isNullOrUndefined)(e[i])||l.push(e)}),l.sort(function(e,o){return(0,t.isNullOrUndefined)(e[i])||(0,t.isNullOrUndefined)(o[i])?0:e[i]-o[i]}),o=(l=this.sparkline.enableRtl?l.reverse():l)[1][i]-l[0][i]}return o},e.prototype.getPaddingInterval=function(e,t,i,o){for(var r=this.sparkline.availableSize.height,n=1*e.length,a=o/(n=Math.max(r*(n/100),1)),l=0,s=this.sparkline.intervalDivs;l<s.length;l++){var h=1*s[l];if(n<o/h)break;a=h}return a},e.prototype.findRanges=function(e){var i,o,r,n,a,l,s,h,c=this.sparkline,d=e.length,p=0,u=Array.isArray(e)&&"object"!=typeof e[0];if(u)if("Pie"===c.type)for(var g=0;g<d;g++)p+=Math.abs(e[g]);else i=Math.max.apply(null,e),o=Math.min.apply(null,e),r=0,n=d-1;else if("Pie"===c.type)for(g=0;g<d;g++)p+=Math.abs(e[g][c.yName]);else{if((0,t.isNullOrUndefined)(e[0][c.xName])){var m=e.map(function(e){return e[c.yName]});i=Math.max.apply(null,m),o=Math.min.apply(null,m)}else i=(a=(a=(0,t.extend)([],e)).sort(function(e,t){return e[c.yName]-t[c.yName]}))[a.length-1][c.yName],o=a[0][c.yName];(0,t.isNullOrUndefined)(e[0][c.xName])?(r=0,n=d-1):(a=a.sort(function(e,t){return e[c.xName]-t[c.xName]}),n=(a=this.sparkline.enableRtl?a.reverse():a)[a.length-1][c.xName],r=a[0][c.xName])}var y,f,v=0,b=c.padding,x=c.axisSettings,S=x.value;if("Pie"!==c.type){this.maxLength=d,s=c.availableSize.height-(b.bottom+b.top),h=c.availableSize.width-(b.left+b.right),n=(0,t.isNullOrUndefined)(x.maxX)?n:x.maxX,r=(0,t.isNullOrUndefined)(x.minX)?r:x.minX,i=(0,t.isNullOrUndefined)(x.maxY)?i:x.maxY,o=(0,t.isNullOrUndefined)(x.minY)?o:x.minY;var C=x.lineSettings.color||this.sparkline.sparkTheme.axisLineColor,F={name:"axisRendering",cancel:!1,sparkline:c,maxX:n,minX:r,maxY:i,minY:o,value:x.value,lineColor:C,lineWidth:x.lineSettings.width};if(c.trigger("axisRendering",F),F.cancel)return void(this.visiblePoints=[]);n=F.maxX,r=F.minX,i=F.maxY,o=F.minY,S=this.axisValue=F.value,this.axisColor=F.lineColor,this.axisWidth=F.lineWidth}var w,L,P=n-r,A=i-o;P=0===P?1:P,A=0===A?1:A,this.unitX=P,this.unitY=A,this.min=o,v=0,y=s-s/A*-o,y=o<0&&i<=0?0:o<0&&i>0?y:s,S>=o&&S<=i&&(y=s-Math.round(s*((S-o)/this.unitY))),this.axisHeight=y+b.top;var M=[],D=i-o,k=this.getInterval(e,c.xName),R=this.getPaddingInterval(e,c.xName,c.valueType,D);for(g=0;g<d;g++)if((0,t.isNullOrUndefined)(e[g][c.xName])&&(0,t.isNullOrUndefined)(e[g][c.yName])&&0!==e[g][c.yName]&&u?(w=g,L=e[g]):(0,t.isNullOrUndefined)(e[g][c.xName])?(w=g,L=e[g][c.yName]):(w=e[g][c.xName],L=e[g][c.yName]),!(0,t.isNullOrUndefined)(w)&&!(0,t.isNullOrUndefined)(L)){if("Line"===c.type||"Area"===c.type)l=o!==i&&1!==d?s-Math.round(s*((L-o)/this.unitY)):b.top,f={x:r!==n?Math.round(h*((w-r)/this.unitX)):h/2,y:l,markerPosition:l};else if("Column"===c.type||"WinLoss"===c.type){var T=h/((n-r)/k+1);if(v=(w-r)/k*((T-=1)+1)+.5,"WinLoss"===c.type){f={x:v,y:l=L>S?s/4:L<S?.5*s:.5*s-s/40,height:L!==S?s/4:s/20,width:T,markerPosition:l>y?y+Math.abs(l-y):l}}else{0===g&&"None"!==c.rangePadding&&(o-="Additional"===c.rangePadding?R+b.top:R,P=0===(P=n-r)?1:P,A=0===(A=(i+="Additional"===c.rangePadding?R+b.top:R)-o)?1:A,this.unitX=P,this.unitY=A,this.min=o);var E=s/this.unitY*(L-o),_=L===o&&L>S?1!==d&&1!==this.unitY?s/this.unitY*(o/2):1|E:L===i&&L<S&&1!==d&&1!==this.unitY?s/this.unitY*(-i/2):E;f={x:v,y:(l=Math.abs(s-_))>y?y:l,height:Math.abs(l-y),width:T,markerPosition:l>y?y+Math.abs(l-y):l}}}else"Pie"===c.type&&(f={percent:Math.abs(L)/p*100,degree:Math.abs(L)/p*360});"Pie"!==c.type&&(f.x+=b.left,f.y+=b.top),"WinLoss"!==c.type&&(f.markerPosition+=b.top),f.location={x:f.x,y:f.y},f.xVal=w,f.yVal=L,M.push(f)}M.sort(function(e,t){return e.x-t.x}),this.visiblePoints=M},e.prototype.drawAxis=function(){var e=this.sparkline,t=this.axisHeight;if("WinLoss"!==e.type&&"Pie"!==e.type&&e.axisSettings.lineSettings.visible){var i={id:e.element.id+"_Sparkline_XAxis",x1:e.padding.left,y1:t,x2:e.availableSize.width-e.padding.right,y2:t,stroke:this.axisColor,opacity:e.axisSettings.lineSettings.opacity,"stroke-dasharray":e.axisSettings.lineSettings.dashArray,"stroke-width":this.axisWidth,"clip-path":"url(#"+this.clipId+")"};e.svgObject.appendChild(e.renderer.drawLine(i))}},e.prototype.triggerPointRender=function(e,t,i,o){var r={name:e,cancel:!1,border:o,fill:i,sparkline:this.sparkline,pointIndex:t};return this.sparkline.trigger(e,r),r},e}(),wc=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Lc=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Pc=function(e){function i(i,o){var r=e.call(this,i,o)||this;return r.isDevice=t.Browser.isDevice,r.intervalDivs=[10,5,2,1],r.previousTargetId="",r.currentPointIndex=0,r}return wc(i,e),i.prototype.preRender=function(){this.allowServerDataBinding=!1,this.unWireEvents(),this.trigger("load",{sparkline:this}),this.sparkTheme=sc(this.theme),this.sparklineRenderer=new Fc(this),this.setTheme(),this.createSVG(),this.wireEvents(),this.setCulture()},i.prototype.render=function(){this.sparklineRenderer.processDataManager(),this.renderComplete(),this.allowServerDataBinding=!0},i.prototype.processSparklineData=function(){this.sparklineRenderer.processData(),this.renderSparkline(),this.element.appendChild(this.svgObject),this.setSecondaryElementPosition(),this.trigger("loaded",{sparkline:this})},i.prototype.renderSparkline=function(){this.renderBorder(),this.createDiv(),this.sparklineRenderer.renderSeries()},i.prototype.createDiv=function(){var e=document.createElement("div");e.id=this.element.id+"_Secondary_Element",e.style.position="relative",this.element.appendChild(e),this.element.setAttribute("tabindex","0"),this.element.style.outline="none",this.element.style.display="block",this.element.style.position="relative"},i.prototype.setSecondaryElementPosition=function(){var e=Sc(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=Sc(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},i.prototype.renderBorder=function(){var e,t=this.containerArea.border.width;(t>0||"transparent"!==this.containerArea.background)&&(e=new uc(this.element.id+"_SparklineBorder",this.sparkTheme.background,this.containerArea.border,1,new dc(t/2,t/2,this.availableSize.width-t,this.availableSize.height-t)),this.svgObject.appendChild(yc(this,e)));var i=this.padding;this.markerSettings.visible.length&&(i.left=0,i.right=0,i.bottom=0,i.top=0),e=new uc(this.element.id+"_sparkline_clip_rect","transparent",{color:"transparent",width:0},1,new dc(i.left,i.top,this.availableSize.width-(i.left+i.right),this.availableSize.height-(i.top+i.bottom)));var o=this.renderer.createClipPath({id:this.element.id+"_sparkline_clip_path"});yc(this,e,o),this.svgObject.appendChild(o)},i.prototype.createSVG=function(){this.removeSvg(),cc(this)},i.prototype.removeSvg=function(){if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&(0,t.remove)(this.svgObject)}xc(this.element.id+"_Secondary_Element"),this.sparklineTooltipModule&&this.sparklineTooltipModule.removeTooltipElements()},i.prototype.setCulture=function(){this.intl=new t.Internationalization,this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},i.prototype.setTheme=function(){this.sparkTheme=sc(this.theme)},i.prototype.requiredModules=function(){var e=[];return(this.tooltipSettings.visible||this.tooltipSettings.trackLineSettings.visible)&&e.push({member:"SparklineTooltip",args:[this]}),e},i.prototype.unWireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,t.Browser.touchMoveEvent,this.sparklineMove),t.EventHandler.remove(this.element,e,this.sparklineMouseLeave),t.EventHandler.remove(this.element,t.Browser.touchEndEvent,this.sparklineMouseEnd),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.sparklineResize)},i.prototype.wireEvents=function(){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.sparklineMove,this),t.EventHandler.add(this.element,"click",this.sparklineClick,this),t.EventHandler.add(this.element,e,this.sparklineMouseLeave,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.sparklineMouseEnd,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.sparklineResize.bind(this)),new t.Touch(this.element)},i.prototype.sparklineResize=function(){var e=this,t={name:"resize",previousSize:this.availableSize,sparkline:this,currentSize:new ac(0,0)};return this.resizeTo&&clearTimeout(this.resizeTo),this.resizeTo=+setTimeout(function(){e.isDestroyed?clearTimeout(e.resizeTo):(e.unWireEvents(),e.createSVG(),e.refreshing=!0,e.wireEvents(),t.currentSize=e.availableSize,e.trigger("resize",t),e.render(),e.refreshing=!1)},500),!1},i.prototype.sparklineMove=function(e){this.setSparklineMouseXY(e),this.notify(t.Browser.touchMoveEvent,e);var i={name:"sparklineMouseMove",cancel:!1,sparkline:this,event:e};this.trigger(i.name,i);var o=this.isPointRegion(e);if(o.isPointRegion){var r={name:"pointRegionMouseMove",cancel:!1,event:e,sparkline:this,pointIndex:o.pointIndex};this.trigger(r.name,r)}return!1},i.prototype.sparklineClick=function(e){this.setSparklineMouseXY(e);var t={name:"sparklineMouseClick",cancel:!1,sparkline:this,event:e};this.trigger(t.name,t);var i=this.isPointRegion(e);if(i.isPointRegion){var o={name:"pointRegionMouseClick",cancel:!1,event:e,sparkline:this,pointIndex:i.pointIndex};this.trigger(o.name,o)}return this.removeNavigationStyle(),!1},i.prototype.isPointRegion=function(e){var i=this,o=this.element.id+"_",r=e.target.id.replace(o,"").split("_");if(r[1]===this.type.toLowerCase()){var n=parseInt(r[2],10);return!(0,t.isNullOrUndefined)(n)&&!isNaN(n)||"Line"!==this.type&&"Area"!==this.type||this.sparklineRenderer.visiblePoints.forEach(function(e,t){Cc(i.mouseX,i.mouseY,new dc(e.x-5,e.y-5,10,10))&&(n=t)}),{isPointRegion:!0,pointIndex:n}}return{isPointRegion:!1,pointIndex:null}},i.prototype.sparklineMouseEnd=function(e){return this.setSparklineMouseXY(e),this.notify(t.Browser.touchEndEvent,e),!1},i.prototype.sparklineMouseLeave=function(e){return this.setSparklineMouseXY(e),this.notify(t.Browser.isPointer?"pointerleave":"mouseleave",e),!1},i.prototype.chartKeyDown=function(e){var t="";return this.tooltipSettings.visible&&("Tab"===e.code&&this.previousTargetId.indexOf("_sparkline_")>-1||"Escape"===e.code)&&(t="ESC"),""!==t&&this.sparklineKeyboardNavigations(e,e.target.id,t),("Tab"===e.code||"Enter"===e.code||e.code.indexOf("Arrow")>-1)&&this.removeNavigationStyle(),!1},i.prototype.chartKeyUp=function(e){var t,i="",o=e.target.id,r=e.target,n=qt(this.element.id+"_sparkline_g"),a=qt(this.element.id+"_sparkline_line");if(this.removeNavigationStyle(),this.setNavigationStyle(o),a&&a.removeAttribute("tabindex"),n&&n.firstElementChild){var l=n.firstElementChild,s=l.getAttribute("class");s&&-1===s.indexOf("e-sparkline-focused")?s+=" e-sparkline-focused":s||(s="e-sparkline-focused"),l.setAttribute("class",s)}if("Tab"===e.code)""!==this.previousTargetId&&this.previousTargetId.indexOf("_sparkline_")>-1&&-1===o.indexOf("_sparkline_")&&(t=qt(this.element.id+"_sparkline_g"),this.setTabIndex(t.children[this.currentPointIndex],t.firstElementChild)),this.previousTargetId=o,i=this.tooltipSettings.visible?"Tab":"";else if(e.code.indexOf("Arrow")>-1&&(e.preventDefault(),this.previousTargetId=o,o.indexOf("_sparkline_")>-1)){t=r.parentElement;var h=e.target;r.removeAttribute("tabindex"),r.blur(),"ArrowUp"!==e.code&&"ArrowDown"!==e.code||(this.currentPointIndex+="ArrowUp"===e.code?1:-1),o.indexOf("_marker")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"_sparkline_marker_g").childElementCount),h=qt(this.element.id+"_sparkline_marker_"+this.currentPointIndex)):o.indexOf("_column")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"_sparkline_g").childElementCount),h=qt(this.element.id+"_sparkline_column_"+this.currentPointIndex)):o.indexOf("_winloss")>-1?(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"_sparkline_g").childElementCount),h=qt(this.element.id+"_sparkline_winloss_"+this.currentPointIndex)):o.indexOf("_pie")>-1&&(this.currentPointIndex=this.getActualIndex(this.currentPointIndex,qt(this.element.id+"_sparkline_g").childElementCount),h=qt(this.element.id+"_sparkline_pie_"+this.currentPointIndex)),o=this.focusChild(h),i=this.tooltipSettings.visible?"ArrowMove":""}return""!==i&&this.sparklineKeyboardNavigations(e,o,i),!1},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.sparkTheme.tabColor)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("path[id*=_sparkline_], [id*="+this.element.id+"]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&(e.style.setProperty("outline","none"),e.style.setProperty("margin",""))})},i.prototype.sparklineKeyboardNavigations=function(e,t,i){switch(i){case"Tab":case"ArrowMove":if(t.indexOf("_sparkline_")>-1){var o=void 0;o=this.type.indexOf("Line")>-1||this.type.indexOf("Area")>-1?+t.split("_sparkline_")[1].split("marker_")[1]:this.type.indexOf("WinLoss")>-1?+t.split("_sparkline_")[1].split("winloss_")[1]:this.type.indexOf("Pie")>-1?+t.split("_sparkline_")[1].split("pie_")[1]:+t.split("_sparkline_")[1].split("column_")[1],this.sparklineTooltipModule&&this.sparklineTooltipModule.renderTooltip(this.sparklineRenderer.visiblePoints[o])}break;case"ESC":this.sparklineTooltipModule.removeTooltipElements()}},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-sparkline-focused")?t="e-sparkline-focused "+t:t||(t="e-sparkline-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.setSparklineMouseXY=function(e){var t,i;if(e.type.indexOf("touch")>-1){this.isTouch=!0;var o=e;i=o.changedTouches[0].clientX,t=o.changedTouches[0].clientY}else this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientY,i=e.clientX;var r=this.element.getBoundingClientRect(),n=Sc(this.element.id+"_svg").getBoundingClientRect();this.mouseY=t-r.top-Math.max(n.top-r.top,0),this.mouseX=i-r.left-Math.max(n.left-r.left,0)},i.prototype.onPropertyChanged=function(e){for(var t=!1,i=!1,o=0,r=Object.keys(e);o<r.length;o++){switch(r[o]){case"xName":case"yName":case"axisSettings":case"rangeBandSettings":case"type":case"valueType":case"enableRtl":case"dataSource":i=!0;break;case"border":case"markerSettings":case"dataLabelSettings":case"tooltipSettings":case"startPointColor":case"highPointColor":case"lowPointColor":case"endPointColor":case"negativePointColor":case"theme":t=!0}}i?(this.createSVG(),this.sparklineRenderer.processData(),this.refreshSparkline()):t&&(this.createSVG(),this.refreshSparkline())},i.prototype.refreshSparkline=function(){this.renderSparkline(),this.element.appendChild(this.svgObject),this.setSecondaryElementPosition()},i.prototype.getModuleName=function(){return"sparkline"},i.prototype.destroy=function(){this.sparklineData=[];var t=document.getElementById(this.element.id+"Keyboard_sparkline_focus");t&&t.remove(),xc("sparklinesmeasuretext"),this.element&&(this.unWireEvents(),e.prototype.destroy.call(this),this.removeSvg(),this.svgObject=null)},i.prototype.getPersistData=function(){return""},Lc([(0,t.Property)(null)],i.prototype,"width",void 0),Lc([(0,t.Property)(null)],i.prototype,"height",void 0),Lc([(0,t.Complex)({},Yh)],i.prototype,"border",void 0),Lc([(0,t.Property)("Line")],i.prototype,"type",void 0),Lc([(0,t.Property)("None")],i.prototype,"rangePadding",void 0),Lc([(0,t.Property)(null)],i.prototype,"dataSource",void 0),Lc([(0,t.Property)(null)],i.prototype,"query",void 0),Lc([(0,t.Property)("Numeric")],i.prototype,"valueType",void 0),Lc([(0,t.Property)(null)],i.prototype,"xName",void 0),Lc([(0,t.Property)(null)],i.prototype,"yName",void 0),Lc([(0,t.Property)("#00bdae")],i.prototype,"fill",void 0),Lc([(0,t.Property)("")],i.prototype,"highPointColor",void 0),Lc([(0,t.Property)("")],i.prototype,"lowPointColor",void 0),Lc([(0,t.Property)("")],i.prototype,"startPointColor",void 0),Lc([(0,t.Property)("")],i.prototype,"endPointColor",void 0),Lc([(0,t.Property)("")],i.prototype,"negativePointColor",void 0),Lc([(0,t.Property)("")],i.prototype,"tiePointColor",void 0),Lc([(0,t.Property)([])],i.prototype,"palette",void 0),Lc([(0,t.Property)(1)],i.prototype,"lineWidth",void 0),Lc([(0,t.Property)(1)],i.prototype,"opacity",void 0),Lc([(0,t.Property)(null)],i.prototype,"format",void 0),Lc([(0,t.Property)(!1)],i.prototype,"useGroupingSeparator",void 0),Lc([(0,t.Complex)({},Qh)],i.prototype,"tooltipSettings",void 0),Lc([(0,t.Complex)({},$h)],i.prototype,"containerArea",void 0),Lc([(0,t.Collection)([],Jh)],i.prototype,"rangeBandSettings",void 0),Lc([(0,t.Complex)({},ec)],i.prototype,"axisSettings",void 0),Lc([(0,t.Complex)({},ic)],i.prototype,"markerSettings",void 0),Lc([(0,t.Complex)({},rc)],i.prototype,"dataLabelSettings",void 0),Lc([(0,t.Complex)({},tc)],i.prototype,"padding",void 0),Lc([(0,t.Property)("Material")],i.prototype,"theme",void 0),Lc([(0,t.Event)()],i.prototype,"loaded",void 0),Lc([(0,t.Event)()],i.prototype,"load",void 0),Lc([(0,t.Event)()],i.prototype,"tooltipInitialize",void 0),Lc([(0,t.Event)()],i.prototype,"seriesRendering",void 0),Lc([(0,t.Event)()],i.prototype,"axisRendering",void 0),Lc([(0,t.Event)()],i.prototype,"pointRendering",void 0),Lc([(0,t.Event)()],i.prototype,"pointRegionMouseMove",void 0),Lc([(0,t.Event)()],i.prototype,"pointRegionMouseClick",void 0),Lc([(0,t.Event)()],i.prototype,"sparklineMouseMove",void 0),Lc([(0,t.Event)()],i.prototype,"sparklineMouseClick",void 0),Lc([(0,t.Event)()],i.prototype,"dataLabelRendering",void 0),Lc([(0,t.Event)()],i.prototype,"markerRendering",void 0),Lc([(0,t.Event)()],i.prototype,"resize",void 0),i=Lc([t.NotifyPropertyChanges],i)}(t.Component),Ac=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(i[o[r]]=e[o[r]])}return i},Mc=function(){function e(e){this.sparkline=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.sparkline.isDestroyed||(this.sparkline.on(t.Browser.isPointer?"pointerleave":"mouseleave",this.mouseLeaveHandler,this),this.sparkline.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.sparkline.on(t.Browser.touchEndEvent,this.mouseUpHandler,this))},e.prototype.mouseLeaveHandler=function(){this.removeTooltipElements()},e.prototype.mouseUpHandler=function(e){this.sparkline.isTouch&&(this.processTooltip(e),this.fadeOut())},e.prototype.fadeOut=function(){clearTimeout(this.clearTooltip),this.clearTooltip=+setTimeout(this.removeTooltipElements.bind(this),5e3)},e.prototype.removeTooltipElements=function(){this.removeTooltip(),this.removeTracker()},e.prototype.mouseMoveHandler=function(e){this.processTooltip(e)},e.prototype.processTooltip=function(e){var i,o=this.sparkline,r=o.sparklineRenderer.visiblePoints,n=o.mouseX,a=o.mouseY;if("Pie"!==o.type)for(var l=(0,t.extend)([],[],r).map(function(e){return e.location.x}),s=1/0,h=0,c=void 0,d=l.length;h<d;h++)s>(c=Math.abs(n-l[h]))&&(s=c,i=h);else{var p=e.target.id;i=parseInt(p.split("_pie_")[1],10)}if(isNaN(i)||!Cc(n,a,new dc(0,0,o.availableSize.width,o.availableSize.height)))return this.removeTracker(),void this.removeTooltip();this.pointIndex!==i&&(this.pointIndex=i,this.renderTrackerLine(r[i]),this.renderTooltip(r[i]))},e.prototype.renderTrackerLine=function(e){var i=this.sparkline,o=i.tooltipSettings.trackLineSettings,r=i.sparkTheme.trackerLineColor?i.sparkTheme.trackerLineColor:o.color;if(o.visible&&"Pie"!==i.type){var n=Sc(i.element.id+"_sparkline_tracker_g");(0,t.isNullOrUndefined)(n)&&(n=i.renderer.createGroup({id:i.element.id+"_sparkline_tracker_g"}),i.svgObject.appendChild(n));var a=Sc(i.element.id+"_sparkline_tracker"),l="M "+e.location.x+" "+i.padding.top+" L "+e.location.x+" "+(i.availableSize.height-i.padding.bottom);if((0,t.isNullOrUndefined)(a)){var s=new pc(i.element.id+"_sparkline_tracker",r,o.width,r,1);s.d=l,fc(i,s,n)}else a.setAttribute("d",l),a.setAttribute("stroke-width",o.width.toString()),a.setAttribute("stroke",r)}},e.prototype.renderTooltip=function(e){var i=this,o=this.sparkline,r=o.tooltipSettings;if(r.visible){var n=Sc(o.element.id+"_sparkline_tooltip_div");(0,t.isNullOrUndefined)(n)&&(n=(0,t.createElement)("div",{id:o.element.id+"_sparkline_tooltip_div",styles:"pointer-events: none; position: absolute;z-index:1;"}),Sc(o.element.id+"_Secondary_Element").appendChild(n));var a=e.xVal.toString();"Category"===o.valueType?a=o.dataSource[e.xVal][o.xName]:"DateTime"===o.valueType&&(a=new Date(e.xVal).toDateString());var l=this.getFormat(o.tooltipSettings.format,o,a,this.formatValue(e.yVal,o).toString()),s={x:e.location.x,y:e.location.y};s="Pie"===o.type?{x:e.location.x,y:e.location.y}:s;var h=r.textStyle.color||o.sparkTheme.tooltipFontColor,c=""===r.fill?o.sparkTheme.tooltipFill:r.fill,d={name:"tooltipInitialize",cancel:!1,text:l,textStyle:{size:r.textStyle.size,opacity:o.sparkTheme.tooltipTextOpacity||r.textStyle.opacity,fontWeight:r.textStyle.fontWeight||o.sparkTheme.tooltipFontWeight,fontStyle:r.textStyle.fontStyle,fontFamily:r.textStyle.fontFamily||o.sparkTheme.tooltipFontFamily,color:h}};o.trigger("tooltipInitialize",d,function(){i.addTooltip(d,o,c,r,s,n)})}},e.prototype.addTooltip=function(e,i,o,r,n,a,l){var s;if((0,t.isNullOrUndefined)(e))l.cancel,s=l;else{var h=e.cancel;Ac(e,["cancel"]);s=e}if(!e.cancel){var c=new R.Tooltip({content:s.text,border:r.border,template:r.template,data:i.dataSource[this.pointIndex],fill:o,textStyle:s.textStyle,enableAnimation:!1,enableRTL:i.enableRtl,location:{x:n.x,y:n.y},shared:!1,availableSize:this.sparkline.availableSize,areaBounds:new dc(0,0,i.availableSize.width,i.availableSize.height),theme:i.theme});c.opacity=i.sparkTheme.tooltipFillOpacity||c.opacity,c.appendTo(a)}},e.prototype.getFormat=function(e,i,o,r){if((0,t.isNullOrUndefined)(e)||""===e)return[r];var n=e;return[n=n.split("${"+i.xName+"}").join(o).split("${"+i.yName+"}").join(r)]},e.prototype.formatValue=function(e,t){return t.format&&!isNaN(Number(e))?t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator})(e):e},e.prototype.removeTracker=function(){var e=this.sparkline.element.querySelector("#"+this.sparkline.element.id+"_sparkline_tracker_g");return e?(0,t.remove)(e):null},e.prototype.removeTooltip=function(){this.pointIndex=null;var e=this.sparkline.element.querySelector("#"+this.sparkline.element.id+"_sparkline_tooltip_div");return e?(0,t.remove)(e):null},e.prototype.getModuleName=function(){return"SparklineTooltip"},e.prototype.destroy=function(){},e}(),Dc=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),kc=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Rc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Dc(i,e),kc([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),kc([(0,t.Property)("16px")],i.prototype,"size",void 0),kc([(0,t.Property)("Normal")],i.prototype,"fontWeight",void 0),kc([(0,t.Property)("")],i.prototype,"color",void 0),kc([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),kc([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Tc=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Dc(i,e),kc([(0,t.Property)("transparent")],i.prototype,"color",void 0),kc([(0,t.Property)(0)],i.prototype,"width",void 0),kc([(0,t.Property)(.8)],i.prototype,"cornerRadius",void 0),i}(t.ChildProperty),Ec=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Dc(i,e),kc([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),kc([(0,t.Property)("15px")],i.prototype,"size",void 0),kc([(0,t.Property)("500")],i.prototype,"fontWeight",void 0),kc([(0,t.Property)("")],i.prototype,"color",void 0),kc([(0,t.Property)("Center")],i.prototype,"textAlignment",void 0),kc([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),kc([(0,t.Property)(1)],i.prototype,"opacity",void 0),kc([(0,t.Property)("Wrap")],i.prototype,"textOverflow",void 0),kc([(0,t.Property)("Top")],i.prototype,"position",void 0),kc([(0,t.Property)(0)],i.prototype,"x",void 0),kc([(0,t.Property)(0)],i.prototype,"y",void 0),kc([(0,t.Property)("transparent")],i.prototype,"background",void 0),kc([(0,t.Complex)({},Tc)],i.prototype,"border",void 0),i}(t.ChildProperty),_c=function(){function e(e){this.chart=e}return e.prototype.measureAxis=function(e){var t=this.chart;this.seriesClipRect=new R.Rect(e.x,e.y,e.width,e.height),this.initialClipRect=e,this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.initialClipRect=st(this.initialClipRect,new Xi(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.initialClipRect=st(this.initialClipRect,new Xi(0,0,this.topSize,this.bottomSize)),this.chart.delayRedraw||this.calculateAxisSize(this.initialClipRect),this.leftSize=0,this.rightSize=0,this.topSize=0,this.bottomSize=0,this.measureRowAxis(t,this.initialClipRect),this.seriesClipRect=st(this.seriesClipRect,new Xi(this.leftSize,this.rightSize,0,0)),this.measureColumnAxis(t,this.initialClipRect),this.seriesClipRect=st(this.seriesClipRect,new Xi(0,0,this.topSize,this.bottomSize)),this.chart.delayRedraw||(t.refreshAxis(),this.calculateAxisSize(this.seriesClipRect))},e.prototype.measureRowAxis=function(e,t){var i;this.calculateRowSize(t);for(var o=0,r=e.rows;o<r.length;o++){(i=r[o]).nearSizes=[],i.farSizes=[],this.arrangeAxis(i),this.measureDefinition(i,e,new R.Size(e.availableSize.width,i.computedHeight)),this.leftSize<at(i.nearSizes)&&(this.leftSize=at(i.nearSizes)),this.rightSize<at(i.farSizes)&&(this.rightSize=at(i.farSizes))}},e.prototype.measureColumnAxis=function(e,t){var i;this.calculateColumnSize(t);for(var o=0,r=e.columns;o<r.length;o++){(i=r[o]).farSizes=[],i.nearSizes=[],this.arrangeAxis(i),this.measureDefinition(i,e,new R.Size(i.computedWidth,e.availableSize.height)),this.bottomSize<at(i.nearSizes)&&(this.bottomSize=at(i.nearSizes)),this.topSize<at(i.farSizes)&&(this.topSize=at(i.farSizes))}},e.prototype.measureDefinition=function(e,t,i){for(var o=0,r=e.axes;o<r.length;o++){var n=r[o];n.getModule(t),n.baseModule.calculateRangeAndInterval(i,n),e.computeSize(n,t)}e.farSizes.length>0&&(e.farSizes[e.farSizes.length-1]-=10),e.nearSizes.length>0&&(e.nearSizes[e.nearSizes.length-1]-=10)},e.prototype.calculateAxisSize=function(e){var t,i,o,r,n,a,l,s=this.chart,h=0,c=0,d=0;this.calculateRowSize(e);for(var p=0,u=s.rows.length;p<u;p++){h=0,c=0;for(var g=0,m=(t=s.rows[p]).axes.length;g<m;g++){if(l=(r=t.axes[g]).plotOffset,0===r.rect.height){r.rect.height=t.computedHeight,d=0;for(var y=p+1,f=p+r.span;y<f;y++)d+=(o=s.rows[y]).computedHeight;r.rect.y=t.computedTop-d+(r.plotOffsetTop?r.plotOffsetTop:l),r.rect.height=r.rect.height+d-this.getAxisOffsetValue(r.plotOffsetTop,r.plotOffsetBottom,r.plotOffset),r.rect.width=0}r.isAxisOpposedPosition?(n=e.x+e.width+at(mt(t.farSizes,c)),r.rect.x=r.rect.x>=n?r.rect.x:n,c++):(n=e.x-at(mt(t.nearSizes,h)),r.rect.x=r.rect.x<=n?r.rect.x:n,h++)}}this.calculateColumnSize(e);for(p=0,u=s.columns.length;p<u;p++){h=0,c=0;g=0;for(var v=(i=s.columns[p]).axes.length;g<v;g++){if(l=(r=i.axes[g]).plotOffset,0===r.rect.width){y=p;for(var b=p+r.span;y<b;y++)o=s.columns[y],r.rect.width+=o.computedWidth;r.rect.x=i.computedLeft+(r.plotOffsetLeft?r.plotOffsetLeft:l),r.rect.width-=this.getAxisOffsetValue(r.plotOffsetLeft,r.plotOffsetRight,r.plotOffset),r.rect.height=0}r.isAxisOpposedPosition?(a=e.y-at(mt(i.farSizes,c)),r.rect.y=r.rect.y<=a?r.rect.y:a,c++):(a=e.y+e.height+at(mt(i.nearSizes,h)),r.rect.y=r.rect.y>=a?r.rect.y:a,h++)}}},e.prototype.measure=function(){for(var e,t,i,o,r,n=this.chart,a=0,l=n.axisCollections;a<l.length;a++){var s=l[a];if("Vertical"===s.orientation){n.verticalAxes.push(s),o=this.getActualRow(s),e=n.rows[o],this.pushAxis(e,s),r=o+s.span>n.rows.length?n.rows.length:o+s.span;for(var h=o+1;h<r;h++)(i=n.rows[h]).axes[e.axes.length-1]=s,n.rows[h]=i;n.rows[o]=e}else{n.horizontalAxes.push(s),o=this.getActualColumn(s),t=n.columns[o],this.pushAxis(t,s),r=o+s.span>n.columns.length?n.columns.length:o+s.span;for(h=o+1;h<r;h++)(i=n.columns[h]).axes[t.axes.length-1]=s,n.columns[h]=i;n.columns[o]=t}s.isRTLEnabled=n.enableRtl,s.setIsInversedAndOpposedPosition()}},e.prototype.getAxisOffsetValue=function(e,t,i){return e?e+(t||i):t?t+i:2*i},e.prototype.pushAxis=function(e,t){for(var i=0,o=e.axes.length;i<=o;i++)if(!e.axes[i]){e.axes[i]=t;break}},e.prototype.arrangeAxis=function(e){for(var t=[],i=0,o=e.axes.length;i<=o;i++)e.axes[i]&&t.push(e.axes[i]);e.axes=t},e.prototype.getActualColumn=function(e){var t=this.chart.columns.length,i=e.columnIndex;return i>=t?t-1:i<0?0:i},e.prototype.getActualRow=function(e){var t=this.chart.rows.length,i=e.rowIndex;return i>=t?t-1:i<0?0:i},e.prototype.calculateRowSize=function(e){for(var t,i=this.chart,o=e.y+e.height,r=0,n=Math.max(0,e.height),a=0,l=i.rows.length;a<l;a++)r=-1!==(t=i.rows[a]).height.indexOf("%")?Math.min(n,e.height*parseInt(t.height,10)/100):Math.min(n,parseInt(t.height,10)),r=a!==l-1?r:n,t.computedHeight=r,o-=r,t.computedTop=o,n-=r},e.prototype.calculateColumnSize=function(e){for(var t,i=this.chart,o=e.x,r=0,n=Math.max(0,e.width),a=0,l=i.columns.length;a<l;a++)r=-1!==(t=i.columns[a]).width.indexOf("%")?Math.min(n,e.width*parseInt(t.width,10)/100):Math.min(n,parseInt(t.width,10)),r=a!==l-1?r:n,t.computedWidth=r,t.computedLeft=o,o+=r,n-=r},e}();function Ic(e){var t;switch(e){case"HighContrastLight":case"HighContrast":t={axisLabel:"#969696",axisTitle:"#969696",majorGridLine:"#BFBFBF",minorGridLine:"#969696",majorTickLine:"#BFBFBF",minorTickLine:"#969696",chartTitle:"#ffffff",legendLabel:"#ffffff",background:"transparent",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",tabColor:"#FFD939",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#000000",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":t={axisLabel:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",axisTitle:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",majorGridLine:"#414040",minorGridLine:"#514F4F",majorTickLine:"#414040",minorTickLine:"#4A4848",chartTitle:"#ffffff",legendLabel:"#DADADA",background:"transparent",tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A",backWallColor:"#222222",leftWallColor:"#272727",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",chartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"MaterialDark"===e||"FabricDark"===e?"#000000":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":t={axisLabel:"#222222",axisTitle:"#212529",majorGridLine:"#CED4DA",minorGridLine:"#DEE2E6",majorTickLine:"#ADB5BD",minorTickLine:"#CED4DA",chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#020202",tooltipBoldLabel:"rgba(255,255,255)",tooltipLightLabel:"rgba(255,255,255, 0.9)",tooltipHeaderLine:"rgba(255,255,255, 0.2)",tabColor:"#007BFF",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#222222",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":t={axisLabel:"#4B5563",axisTitle:"#6B7280",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:"#D1D5DB",chartTitle:"#111827",legendLabel:"#6B7280",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",tabColor:"#4F46E5",backWallColor:"rgba(209, 213, 219, 0.03)",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#111827",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#111827",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":t={axisLabel:"#D1D5DB",axisTitle:"#9CA3AF",majorGridLine:"#374151",minorGridLine:"#374151",majorTickLine:"#4B5563",minorTickLine:"#4B5563",chartTitle:"#FFFFFF",legendLabel:"#9CA3AF",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",tabColor:"#22D3EE",backWallColor:"rgb(55,65,81, 0.3)",leftWallColor:"rgb(255,255,255,0.1)",chartTitleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"},datalabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":t={axisLabel:"#222222",axisTitle:"#374151",majorGridLine:"#E5E7EB",minorGridLine:"#E5E7EB",majorTickLine:"#D1D5DB",minorTickLine:"#D1D5DB",chartTitle:"#374151",legendLabel:"#374151",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",tabColor:"#4F46E5",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":t={axisLabel:"#D1D5DB",axisTitle:"#D1D5DB",majorGridLine:"#374151",minorGridLine:"#374151",majorTickLine:"#4B5563",minorTickLine:"#4B5563",chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",tabColor:"#22D3EE",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":t={axisLabel:"#212529",axisTitle:"#212529",majorGridLine:"#DEE2E6",minorGridLine:"#DEE2E6",majorTickLine:"#DEE2E6",minorTickLine:"#DEE2E6",chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#000000E5",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",tabColor:"#0D6EFD",backWallColor:"#DEE2E6",leftWallColor:"#DEE2E6",chartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#343A40",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"700"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#21252980",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Bootstrap5Dark":t={axisLabel:"#DEE2E6",axisTitle:"#DEE2E6",majorGridLine:"#495057",minorGridLine:"#495057",majorTickLine:"#495057",minorTickLine:"#495057",chartTitle:"#DEE2E6",legendLabel:"#DEE2E6",background:"transparent",tooltipFill:"#FFFFFFE5",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",tabColor:"#0D6EFD",backWallColor:"#495057",leftWallColor:"#495057",chartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"700"},datalabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent":t={axisLabel:"#222222",axisTitle:"#201F1E",majorGridLine:"#DDDDDD",minorGridLine:"#DDDDDD",majorTickLine:"#DDDDDD",minorTickLine:"#DDDDDD",chartTitle:"#201F1E",legendLabel:"#323130",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":t={axisLabel:"#D2D0CE",axisTitle:"#D2D0CE",majorGridLine:"#414040",minorGridLine:"#414040",majorTickLine:"#3B3A39",minorTickLine:"#3B3A39",chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:"transparent",tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#F3F2F2",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":t={axisLabel:"#616161",axisTitle:"#242424",majorGridLine:"#EDEBE9",minorGridLine:"#EDEBE9",majorTickLine:"#D2D0CE",minorTickLine:"#D2D0CE",chartTitle:"#242424",legendLabel:"#242424",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#616161",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":t={axisLabel:"#FFFFFF",axisTitle:"#FFFFFF",majorGridLine:"#3B3A39",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#292827",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":t={axisLabel:"#FFFFFF",axisTitle:"#FFFFFF",majorGridLine:"#292827",minorGridLine:"#3B3A39",majorTickLine:"#292827",minorTickLine:"#3B3A39",chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#000000",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":t={axisLabel:"#222222",axisTitle:"#1C1B1F",majorGridLine:"#DDDDDD",minorGridLine:"#DDDDDD",majorTickLine:"#DDDDDD",minorTickLine:"#DDDDDD",chartTitle:"#1C1B1F",legendLabel:"#49454E",background:"transparent",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",tabColor:"#49454E",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",chartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Roboto",size:"10px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":t={axisLabel:"#CAC4D0",axisTitle:"#CAC4D0",majorGridLine:"#444746",minorGridLine:"#444746",majorTickLine:"#444746",minorTickLine:"#444746",chartTitle:"#E6E1E5",legendLabel:"#CAC4D0",background:"transparent",tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",tabColor:"#CAC4D0",backWallColor:"#222222",leftWallColor:"#272727",chartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#000000",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;default:t={axisLabel:"#222222",axisTitle:"#424242",majorGridLine:"#dbdbdb",minorGridLine:"#eaeaea",majorTickLine:"#b5b5b5",minorTickLine:"#d6d6d6",chartTitle:"#424242",legendLabel:"#353535",background:"transparent",tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff",backWallColor:"#F9F9F9",leftWallColor:"#EBEBEB",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",chartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},axisLabelFont:{color:"#222222",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},axisTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},datalabelFont:{color:"#FFFFFF",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}}}return t}function Oc(e){var t;switch(e){case"Fabric":t=["#06DCFF","#EF36BB","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":t=["#9B43F4","#F7523F","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Bootstrap":t=["#6355C7","#FFB400","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#41E4FF","#FF5B5B","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#55C75A","#FFB400","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"FabricDark":t=["#41E4FF","#FD7400","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"BootstrapDark":t=["#BC43F4","#FFC539","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5C43F4","#FFB400","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#00C2FF","#FD7400","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":t=["#41E4FF","#FF7E6F","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent":t=["#2196F5","#FC7400","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6A56FF","#00DBFF","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#00C2FF","#FFB400","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#6355C7","#00AEE0","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}var zc=function(){return zc=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zc.apply(this,arguments)},Bc=function(){this.transform=null},Nc=new Bc,Vc=function(){function e(e,t,i){this.x=0,this.y=0,this.z=0,this.epsilon=1e-5,this.x=e,this.y=t||0,this.z=i||0}return e.prototype.isValid=function(e){return!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)},e.prototype.vector3D=function(e,t,i){return this.x=e,this.y=t,this.z=i,{x:this.x,y:this.y,z:this.z}},e.prototype.vector3DMinus=function(e,t){return this.vector3D(e.x-t.x,e.y-t.y,e.z-t.z)},e.prototype.vector3DPlus=function(e,t){return this.vector3D(e.x+t.x,e.y+t.y,e.z+t.z)},e.prototype.vector3DMultiply=function(e,t){var i=e.y*t.z-t.y*e.z,o=e.z*t.x-t.z*e.x,r=e.x*t.y-t.x*e.y;return this.vector3D(i,o,r)},e.prototype.vector3DAdd=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},e.prototype.vector3DStarMultiply=function(e,t){var i=e.x*t,o=e.y*t,r=e.z*t;return this.vector3D(i,o,r)},e.prototype.getLength=function(e){var t=this.vector3DAdd(e,e);return Math.sqrt(t)},e.prototype.normalize=function(){var e=this.getLength(this);this.x/=e,this.y/=e,this.z/=e},e.prototype.getNormal=function(e,t,i){var o=this.vector3DMinus(e,t),r=this.vector3DMinus(i,t),n=this.vector3DMultiply(o,r),a=this.getLength(n);return a<this.epsilon?this.vector3D(0,0,0):this.vector3D(n.x/a,n.y/a,n.z/a)},e}(),Hc=function(){function e(){this.matrixSize=4}return e.prototype.matrix3D=function(e){for(var t=[],i=0;i<e;i++)t[i]=this.createArray(e);return t},e.prototype.isAffine=function(e){return 0===e[0][3]&&0===e[1][3]&&0===e[2][3]&&1===e[3][3]},e.prototype.createArray=function(e){for(var t=[],i=0;i<e;++i)t[i]=0;return t},e.prototype.getIdentity=function(){for(var e=this.matrix3D(this.matrixSize),t=0;t<this.matrixSize;t++)e[t][t]=1;return e},e.prototype.getInterval=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=this.getMinor(e,i,o);return t=this.transposed(t),t=this.getMatrixMultiple(1/this.getDeterminant(e),t)},e.prototype.getMatrixMultiple=function(e,t){for(var i=0;i<t.length;i++)for(var o=0;o<t[i].length;o++)t[i][o]=t[i][o]*e;return t},e.prototype.getMatrixVectorMultiple=function(e,t){var i=e[0][0]*t.x+e[1][0]*t.y+e[2][0]*t.z+e[3][0],o=e[0][1]*t.x+e[1][1]*t.y+e[2][1]*t.z+e[3][1],r=e[0][2]*t.x+e[1][2]*t.y+e[2][2]*t.z+e[3][2];if(!this.isAffine(e)){var n=1/(e[0][3]*t.x+e[1][3]*t.y+e[2][3]*t.z+e[3][3]);i*=n,o*=n,r*=n}return{x:i,y:o,z:r}},e.prototype.getMatrixVectorAnd=function(e,t){var i=e[0][0]*t.x+e[1][0]*t.y+e[2][0]*t.z,o=e[0][1]*t.x+e[1][1]*t.y+e[2][1]*t.z,r=e[0][2]*t.x+e[1][2]*t.y+e[2][2]*t.z;return new Vc(i,o,r)},e.prototype.getMatrixMultiplication=function(e,t){for(var i=this.getIdentity(),o=0;o<this.matrixSize;o++)for(var r=0;r<this.matrixSize;r++){for(var n=0,a=0;a<this.matrixSize;a++)n+=e[a][r]*t[o][a];i[o][r]=n}return i},e.prototype.getMinor=function(e,t,i){return((t+i)%2==0?1:-1)*this.getDeterminant(this.getMatrix(e,t,i))},e.prototype.getMatrix=function(e,t,i){for(var o=e.length-1,r=this.createArray(o),n=0;n<o;n++){var a=n>=t?n+1:n;r[n]=this.createArray(o);for(var l=0;l<o;l++){var s=l>=i?l+1:l;r[n][l]=e[a][s]}}return r},e.prototype.getDeterminant=function(e){var t=e.length,i=0;if(t<2)i=e[0][0];else for(var o=1,r=0;r<t;r++){var n=this.getMatrix(e,r,0);i+=o*e[r][0]*this.getDeterminant(n),o=o>0?-1:1}return i},e.prototype.transform=function(e,t,i){var o=this.getIdentity();return o[3][0]=e,o[3][1]=t,o[3][2]=i,o},e.prototype.turn=function(e){var t=this.getIdentity();return t[0][0]=Math.cos(e),t[2][0]=-Math.sin(e),t[0][2]=Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.tilt=function(e){var t=this.getIdentity();return t[1][1]=Math.cos(e),t[2][1]=Math.sin(e),t[1][2]=-Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.transposed=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=e[o][i];return t},e}(),Wc=function(){function e(){this.toRadial=Math.PI/180,this.vector=new Vc(0,0,0),this.matrixObj=new Hc}return e.prototype.transform3D=function(e){return{viewingArea:e,rotation:0,tilt:0,depth:0,perspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixObj.getIdentity(),perspective:this.matrixObj.getIdentity(),resultMatrix:this.matrixObj.getIdentity(),viewMatrix:this.matrixObj.getIdentity()}},e.prototype.transform=function(e){this.setCenter(this.vector.vector3D(e.viewingArea.width/2,e.viewingArea.height/2,e.depth/2),e),this.setViewMatrix(this.matrixObj.transform(0,0,e.depth),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.turn(-this.toRadial*e.rotation)),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.tilt(-this.toRadial*e.tilt)),e),this.updatePerspective(e.perspectiveAngle,e),e.needUpdate=!0},e.prototype.updatePerspective=function(e,t){var i=(t.viewingArea.width+t.viewingArea.height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(e%181))/2))+2*t.depth/2;t.perspective[0][0]=i,t.perspective[1][1]=i,t.perspective[2][3]=1,t.perspective[3][3]=i},e.prototype.degreeToRadianConverter=function(e){return e*Math.PI/180},e.prototype.toScreen=function(e,t,i){return i?(this.matrixObj=i,e=i.getMatrixVectorMultiple(this.result(t,i),e)):(t.chartObj=this.matrixObj,e=this.matrixObj.getMatrixVectorMultiple(this.result(t),e)),{x:e.x,y:e.y}},e.prototype.setViewMatrix=function(e,t){t.viewMatrix!==e&&(t.viewMatrix=e,t.needUpdate=!0)},e.prototype.result=function(e,t){var i=e.chartObj?e.chartObj:this.matrixObj;if(i||(i=t),!e.needUpdate)return e.resultMatrix;var o=this.matrixObj?this.matrixObj:t;return e.resultMatrix=i.getMatrixMultiplication(o.getInterval(e.centeredMatrix),e.perspective),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.viewMatrix),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.centeredMatrix),e.needUpdate=!1,e.resultMatrix},e.prototype.setCenter=function(e,t){t.centeredMatrix=this.matrixObj.transform(-e.x,-e.y,-e.z),t.needUpdate=!0},e}(),jc=function(){function e(){this.vector=new Vc(0,0,0)}return e.prototype.addVisual=function(e,t){return null==e||Qc.test()?-1:qc.add(e,t)},e.prototype.prepareView=function(e,t,i,o,r,n){null==Nc.transform?Nc.transform=n.transform3D.transform3D(r):Nc.transform.viewingArea=r,Nc.tree||(Nc.tree=[]),Nc.transform.rotation=i,Nc.transform.tilt=o,Nc.transform.depth=t,Nc.transform.perspectiveAngle=e,n.transform3D.transform(Nc.transform),Nc.tree[n.chart3D.id]=qc.build()},e.prototype.view=function(e,t,i,o,r,n,a){if(2===arguments.length){if(null==e)return;var l=this.vector.vector3D(0,0,32767);this.drawNode3D(Nc.tree[t.chart3D.id],l,e,t)}else{if(null==e)return;null==Nc.transform?Nc.transform=t.transform3D.transform3D(r):Nc.transform.viewingArea=r,Nc.transform.rotation=i,Nc.transform.tilt=o,Nc.transform.depth=a,Nc.transform.perspectiveAngle=n,t.transform3D.transform(Nc.transform);var s=this.vector.vector3D(0,0,32767);this.drawNode3D(Nc.tree[t.chart3D.id],s,e,t)}},e.prototype.draw3DElement=function(e,t){e.plane.element?"text"===e.plane.element.tag||"dataLabel"===e.plane.element.tag?Qc.drawText(e.plane,t):"template"===e.plane.element.tag?Qc.drawTemplate(e.plane,t):Qc.drawLine(e.plane,t):Qc.draw(e.plane,t)},e.prototype.drawNode3D=function(e,t,i,o){if(null!==e&&null!=Nc.transform)for(;;){if(Yc.vector3DAdd(Qc.getNormal(o.transform3D.result(Nc.transform),e.plane.vectorPoints),t)>e.plane.d){if(null!=e.front&&this.drawNode3D(e.front,t,i,o),this.draw3DElement(e,o),null!=e.back){e=e.back;continue}}else if(null!=e.back&&this.drawNode3D(e.back,t,i,o),this.draw3DElement(e,o),null!=e.front){e=e.front;continue}break}},e}(),Uc=function(){function e(e){this.epsilon=5e-4,this.chart=e}return e.prototype.add=function(e,t){return this.chart=t,t.polygons.push(e),t.polygons.length-1},e.prototype.getNext=function(e,t){return e>=t?e-t:e<0?e+t:e},e.prototype.vector3DIndexClassification=function(e,t,i){return{index:t,result:i,vector:e,isCuttingBackPoint:!1,cuttingBackPairIndex:null,alreadyCutBack:!1,isCuttingFrontPoint:!1,cuttingFrontPairIndex:null,alreadyCutFront:!1}},e.prototype.classifyPoint=function(e,t){var i="OnPlane",o=-t.d-Yc.vector3DAdd(e,t.normal);return o>this.epsilon?i="OnBack":o<-this.epsilon&&(i="OnFront"),i},e.prototype.classifyPolygon=function(e,t){var i="Unknown",o=t.points;if(null==o)return i;for(var r=0,n=0,a=0,l=e.normal,s=e.d,h=0,c=o.length;h<c;h++){var d=-s-Yc.vector3DAdd(o[h],l);if(d>this.epsilon?r++:d<-this.epsilon?n++:a++,r>0&&n>0)break}return i=a===o.length?"OnPlane":n+a===o.length?"ToRight":r+a===o.length?"ToLeft":"Unknown"},e.prototype.splitPolygon=function(e,t){var i=[],o=[];if(null!=e.points){for(var r=[],n=[],a=[],l=void 0,s=void 0,h=e.points.length,c=0;c<h;c++){var d=e.points[c],p=e.points[this.getNext(c+1,h)],u=this.classifyPoint(d,t),g=this.classifyPoint(p,t),m=this.vector3DIndexClassification(d,r.length,u);if(r.push(m),u!==g&&"OnPlane"!==u&&"OnPlane"!==g){var y=Yc.vector3DMinus(d,p),f=Yc.vector3DMinus(Yc.vector3DStarMultiply(t.normal,-t.d),p),v=Yc.vector3DAdd(f,t.normal)/Yc.vector3DAdd(t.normal,y),b=Yc.vector3DPlus(p,Yc.vector3DStarMultiply(y,v)),x=this.vector3DIndexClassification(b,r.length,"OnPlane");r.push(x),n.push(x),a.push(x)}else if("OnPlane"===u){var S=e.points[this.getNext(c-1,h)],C=this.classifyPoint(S,t);if(C===g)continue;if("OnPlane"!==C&&"OnPlane"!==g)n.push(m),a.push(m);else if("OnPlane"===C)switch(g){case"OnBack":n.push(m);break;case"OnFront":a.push(m)}else if("OnPlane"===g)switch(C){case"OnBack":n.push(m);break;case"OnFront":a.push(m)}}}if(0!==a.length||0!==n.length){for(c=0;c<n.length-1;c+=2){var F=n[c],w=n[c+1];F.cuttingBackPoint=!0,w.cuttingBackPoint=!0,F.alterCuttingBackPairIndex=w.index,w.alterCuttingBackPairIndex=F.index}for(c=0;c<a.length-1;c+=2){var L=a[c],P=a[c+1];L.cuttingFrontPoint=!0,P.cuttingFrontPoint=!0,L.alterCuttingFrontPairIndex=P.index,P.alterCuttingFrontPairIndex=L.index}for(c=0;c<n.length-1;c++){if(!(F=n[c]).alreadyCutBack&&(l=this.cutOutBackPolygon(r,F)).length>2){var A=Qc.polygon3D(l,e);i.push(zc({},A))}}for(c=0;c<a.length-1;c++){if(!(w=a[c]).alreadyCutFront&&(s=this.cutOutFrontPolygon(r,w)).length>2){var M=Qc.polygon3D(s,e);o.push(zc({},M))}}}}else i.push(e),o.push(e);return{backPolygon:i,frontPolygon:o}},e.prototype.cutOutFrontPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutFront=!0,i.push(o.vector);var r=e[o.alterCuttingFrontPairIndex];if(o.cuttingFrontPoint)if(r.alreadyCutFront){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"!==n.result||n.alreadyCutFront){if("OnFront"!==a.result||a.alreadyCutFront)return i;o=a}else o=n}else o=r;else{n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"===n.result||n.alreadyCutFront){if("OnBack"===a.result||a.alreadyCutFront)return i;o=a}else o=n}}return null},e.prototype.cutOutBackPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutBack=!0,i.push(o.vector);var r=e[o.alterCuttingBackPairIndex];if(o.cuttingBackPoint)if(r.alreadyCutBack){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"!==n.result||n.alreadyCutBack){if("OnBack"!==a.result||a.alreadyCutBack)return i;o=a}else o=n}else o=r;else{n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"===n.result||n.alreadyCutBack){if("OnFront"===a.result||a.alreadyCutBack)return i;o=a}else o=n}}return null},e.prototype.build=function(e){if(e){var t=e;if(t.length<1)return null;var i={back:null,front:null,plane:null},o=t[0];i.plane=o;for(var r=[],n=[],a=1,l=t.length;a<l;a++){var s=t[a];if(s!==o)switch(this.classifyPolygon(o,s)){case"OnPlane":case"ToRight":n.push(s);break;case"ToLeft":r.push(s);break;case"Unknown":if(!s.element||"line"!==s.element.tag&&"text"!==s.element.tag){for(var h=this.splitPolygon(s,o),c=0;c<h.backPolygon.length;c++)h.backPolygon[c].name=h.backPolygon[c].name+"-back",r.push(h.backPolygon[c]);for(var d=0;d<h.frontPolygon.length;d++)h.frontPolygon[d].name=h.frontPolygon[d].name+"-front",n.push(h.frontPolygon[d])}else r.push(s)}}return r.length>0&&(i.back=this.build(r)),n.length>0&&(i.front=this.build(n)),i}return this.build(this.chart.polygons)},e}(),Xc=function(){function e(){}return e.prototype.getStringBuilder=function(){var e=[],t=0;return{append:function(i){return e[t++]=i,this},remove:function(t,i){return e.splice(t,i||1),this},insert:function(t,i){return e.splice(t,0,i),this},toString:function(t){return e.join(t||"")}}},e.prototype.hexToValue=function(e){var t,i;return 0===e.indexOf("rgba(")?(i=e.slice(5,-1).split(","))?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10),alpha:parseFloat(i[3])}:null:0===e.indexOf("rgb(")?(i=e.slice(4,-1).split(","))?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10)}:null:(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{red:parseInt(t[1],16),green:parseInt(t[2],16),blue:parseInt(t[3],16)}:null},e.prototype.hexColor=function(e){var t=e.red,i=e.green,o=e.blue;if(e.alpha)return"rgba("+t.toString()+","+i.toString()+","+o.toString()+","+e.alpha+")";var r=[t.toString(16),i.toString(16),o.toString(16)];return r.forEach(function(e,t){1===e.length&&(r[t]="0"+e)}),"#"+r.join("").toUpperCase()},e.prototype.checkColorFormat=function(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1},e.prototype.drawText=function(e,t,i,o){var r=document.getElementById(e.id);if(null===r&&(r=document.createElementNS("http://www.w3.org/2000/svg","text")),t.length>1&&"string"!=typeof t)for(var n=0,a=0;a<t.length;a++){var l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.textContent=t[a],l.setAttribute("x",String(e.x)),l.setAttribute("dy",String(n)),r.appendChild(l),n=(0,R.measureText)(t[a],i,o.themeStyle.axisLabelFont).height}else r.textContent=t;return r=o.svgRenderer.setElementAttributes(e,r)},e.prototype.transform3DToVisible=function(e,t,i,o){if(null!=e.xAxis&&null!=e.yAxis){"Logarithmic"===e.xAxis.valueType&&t>0&&(t=Math.log(t)/Math.log(10));var r=e.yAxis.logBase;if("Logarithmic"===e.yAxis.valueType&&i>0&&(i=Math.log(i)/Math.log(r)),o.requireInvertedAxis){var n=o.chartAxisLayoutPanel.seriesClipRect.x,a=o.chartAxisLayoutPanel.seriesClipRect.y;return{x:n+e.yAxis.rect.width*Jc(i,e.yAxis),y:a+e.xAxis.rect.height*(1-Jc(t,e.xAxis))}}n=e.xAxis.rect.x;var l=e.yAxis.rect.y;return{x:n+Math.round(e.xAxis.rect.width*Jc(t,e.xAxis)),y:l+Math.round(e.yAxis.rect.height*(1-Jc(i,e.yAxis)))}}return{x:0,y:0}},e}(),Gc=function(){function e(){this.epsilon=1e-5,this.normal={x:0,y:0,z:0},this.vector=new Vc(0,0,0),this.vectorPoints=[],this.matrixObj=new Hc,this.tabIndex=!0}return e.prototype.polygon3D=function(e,t,i,o,r,n,a,l,s,h){if(3===arguments.length)return this.calculateNormal(e,t,i),null;if(2===arguments.length)return this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints),(d=t).normal=this.normal,d.points=e,d.vectorPoints=this.vectorPoints,d.isSplit=!0,d.d=this.d,d;this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints);var c={tag:"path",parent:s},d={normal:this.normal,points:e,vectorPoints:this.vectorPoints,index:i,tag:t,name:l||null,strokeThickness:r,opacity:n,fill:a,d:this.d,text:h||"",polygonElement:c};return 1!==arguments.length&&(d.polygonElement=c),d},e.prototype.createLine=function(e,t,i,o,r,n){var a=e.width,l=[];return l[0]=this.vector.vector3D(t,i,n),l[1]=this.vector.vector3D(t+a,r+a,n),l[2]=this.vector.vector3D(o,r,n),this.line3D(e,l)},e.prototype.line3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.text3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.createCylinder=function(e,t,i,o,r,n,a,l,s,h,c){var d,p,u,g,m=0,y=24,f=360/y,v=Math.PI/180,b=(e.z+t.z)/2,x=[],S=[],C=[],F=[],w=t.y-e.y<t.z-e.z?(t.y-e.y)/2:(t.z-e.z)/2,L=t.x-e.x<t.z-e.z?(t.x-e.x)/2:(t.z-e.z)/2,P=(e.x+t.x)/2,A=(e.y+t.y)/2;switch(r){case"Bar":case"StackingBar":case"StackingBar100":for(y++;y--;)p=A+w*Math.cos(m*f*v),u=b+w*Math.sin(m*f*v),S[m]={Y:p,Z:u},C.push(this.vector.vector3D(e.x,S[m].Y,S[m].Z)),F.push(this.vector.vector3D(t.x,S[m].Y,S[m].Z)),m>0&&(g=[this.vector.vector3D(e.x,S[m-1].Y,S[m-1].Z),this.vector.vector3D(t.x,S[m-1].Y,S[m-1].Z),this.vector.vector3D(t.x,S[m].Y,S[m].Z),this.vector.vector3D(e.x,S[m].Y,S[m].Z)],x[m+1]=this.polygon3D(g,i,o,a,0,s,a,"-"+(m+1).toString()+"-"+h,c),$c.addVisual(x[m+1],i)),m++;break;case"Column":case"StackingColumn":case"StackingColumn100":for(y++;y--;)d=P+L*Math.cos(m*f*v),u=b+L*Math.sin(m*f*v),S[m]={Y:d,Z:u},C.push(this.vector.vector3D(S[m].Y,e.y,S[m].Z)),F.push(this.vector.vector3D(S[m].Y,t.y,S[m].Z)),m>0&&(g=[this.vector.vector3D(S[m-1].Y,e.y,S[m-1].Z),this.vector.vector3D(S[m-1].Y,t.y,S[m-1].Z),this.vector.vector3D(S[m].Y,t.y,S[m].Z),this.vector.vector3D(S[m].Y,e.y,S[m].Z)],x[m+1]=this.polygon3D(g,i,o,a,0,s,a,"-"+(m+1).toString()+"-"+h,c),$c.addVisual(x[m+1],i)),m++}return x[0]=this.polygon3D(F,i,o,n,0,s,a,"-0-"+h,c),x[1]=this.polygon3D(C,i,o,n,l,s,a,"-1-"+h,c),$c.addVisual(x[0],i),$c.addVisual(x[1],i),x},e.prototype.createBox=function(e,t,i,o,r,n,a,l,s,h,c,d){var p=[],u=[this.vector.vector3D(e.x,e.y,e.z),this.vector.vector3D(t.x,e.y,e.z),this.vector.vector3D(t.x,t.y,e.z),this.vector.vector3D(e.x,t.y,e.z)],g=[this.vector.vector3D(e.x,e.y,t.z),this.vector.vector3D(t.x,e.y,t.z),this.vector.vector3D(t.x,t.y,t.z),this.vector.vector3D(e.x,t.y,t.z)],m=[this.vector.vector3D(e.x,e.y,t.z),this.vector.vector3D(t.x,e.y,t.z),this.vector.vector3D(t.x,e.y,e.z),this.vector.vector3D(e.x,e.y,e.z)],y=[this.vector.vector3D(e.x,t.y,t.z),this.vector.vector3D(t.x,t.y,t.z),this.vector.vector3D(t.x,t.y,e.z),this.vector.vector3D(e.x,t.y,e.z)],f=[this.vector.vector3D(e.x,e.y,e.z),this.vector.vector3D(e.x,e.y,t.z),this.vector.vector3D(e.x,t.y,t.z),this.vector.vector3D(e.x,t.y,e.z)],v=[this.vector.vector3D(t.x,e.y,e.z),this.vector.vector3D(t.x,e.y,t.z),this.vector.vector3D(t.x,t.y,t.z),this.vector.vector3D(t.x,t.y,e.z)];return h?(p[0]=this.polygon3D(u,i,o,r,a,l,n,"-0-"+h,c,d),p[1]=this.polygon3D(g,i,o,r,a,l,n,"-1-"+h,c,d),p[2]=this.polygon3D(m,i,o,r,a,l,n,"-2-"+h,c,d),p[3]=this.polygon3D(y,i,o,r,a,l,n,"-3-"+h,c,d),p[4]=this.polygon3D(f,i,o,r,a,l,n,"-4-"+h,c,d),p[5]=this.polygon3D(v,i,o,r,a,l,n,"-5-"+h,c,d)):(p[0]=this.polygon3D(u,i,o,r,a,l,n,"-0-"+o,c,d),p[1]=this.polygon3D(g,i,o,r,a,l,n,"-1-"+o,c,d),p[2]=this.polygon3D(m,i,o,r,a,l,n,"-2-"+o,c,d),p[3]=this.polygon3D(y,i,o,r,a,l,n,"-3-"+o,c,d),p[4]=this.polygon3D(f,i,o,r,a,l,n,"-4-"+o,c,d),p[5]=this.polygon3D(v,i,o,r,a,l,n,"-5-"+o,c,d)),s?($c.addVisual(p[0],i),$c.addVisual(p[1],i),$c.addVisual(p[2],i),$c.addVisual(p[3],i),$c.addVisual(p[4],i),$c.addVisual(p[5],i)):($c.addVisual(p[5],i),$c.addVisual(p[4],i),$c.addVisual(p[0],i),$c.addVisual(p[1],i),$c.addVisual(p[2],i),$c.addVisual(p[3],i)),p},e.prototype.calculateNormal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>=3){var i=e[0],o=e[1],r=e[2],n=this.vector.vector3DMinus(i,o),a=this.vector.vector3DMinus(r,o),l=this.vector.vector3DMultiply(n,a),s=this.vector.getLength(l);s<this.epsilon&&(s=1),this.normal=this.vector.vector3D(l.x/s,l.y/s,l.z/s),this.d=-(this.normal.x*i.x+this.normal.y*i.y+this.normal.z*i.z),e[3]&&(e[3].normal=this.normal,e[3].d=this.d)}else{var h=e[0];this.calculateNormal(h[0],h[1],h[2],e[1]);for(var c=3;c<h.length&&this.test();c++)this.calculateNormal(h[c],h[0],h[c/2])}},e.prototype.test=function(){return!this.vector.isValid(this.normal)},e.prototype.transform=function(e,t){if(null!=t.points){for(var i=0;i<t.points.length;i++)t.vectorPoints[i]=t.points[i]=Zc.getMatrixVectorMultiple(e,t.points[i]);this.calculateNormal(t.vectorPoints,t)}},e.prototype.getNormal=function(e,t){var i;if(null!=t){i=this.vector.getNormal(this.matrixObj.getMatrixVectorMultiple(e,t[0]),Zc.getMatrixVectorMultiple(e,t[1]),this.matrixObj.getMatrixVectorMultiple(e,t[2]));for(var o=3;o<t.length&&!this.vector.isValid(i)&&t[o/2];o++){var r=Zc.getMatrixVectorMultiple(e,t[o]),n=Zc.getMatrixVectorMultiple(e,t[0]),a=Zc.getMatrixVectorMultiple(e,t[o/2]);i=this.vector.getNormal(r,n,a)}}else i=Zc.getMatrixVectorAnd(e),this.vector.normalize();return i},e.prototype.createTextElement=function(e,t,i,o){var r=[],n=e.x,a=e.y,l=t.width,s=t.height;return r[0]=this.vector.vector3D(n,a,e.z),r[1]=this.vector.vector3D(n+l,a+s+o,e.z),r[2]=this.vector.vector3D(n+l+i,a+s+o,e.z),this.text3D(t,r)},e.prototype.drawLine=function(e,t){var i=Nc.transform;if(null!=i){var o=t.transform3D.toScreen(e.vectorPoints[0],i),r=t.transform3D.toScreen(e.vectorPoints[2],i),n={id:e.element.id,x1:o.x,y1:o.y,x2:r.x,y2:r.y,"stroke-dasharray":"","stroke-width":e.element.width,stroke:e.element.stroke,opacity:e.element.opacity};if(t.chart3D.appendChild(t.svgRenderer.drawLine(n)),t.previousID&&t.isTouch){var a=document.getElementById(t.previousID),l=document.getElementById(n.id);a&&l&&l.parentNode.insertBefore(l,a.nextSibling)}t.previousID=n.id}},e.prototype.drawTemplate=function(e,t){var i=e.element,o=Nc.transform;if(null!=o){var r=i.label,n=t.transform3D.toScreen(e.vectorPoints[0],o);t.dataLabel3DModule.createDataLabelTemplate(r.series.dataLabelElement,r.series,r.series.dataLabel,r.series.visiblePoints[r.pointIndex],i.argsData,r.pointIndex,!1,n)}},e.prototype.drawText=function(e,t){var i=e.element,o=Nc.transform;if(null!=o){var r=t.transform3D.toScreen(e.vectorPoints[0],o),n=r.x,a=r.y;if("text"===i.tag){var l={id:i.id,x:n,y:a,fill:i.font.color||i.fill,"font-size":i.font.size,"font-family":i.font.fontFamily,"font-style":i.font.fontStyle,"font-weight":i.font.fontWeight,opacity:i.font.opacity,"text-anchor":i.textAnchor,cursor:"default",transform:i.angle?"rotate("+i.angle+","+n+","+a+")":""},s=t.svg3DRenderer.drawText(l,i.label.text,e.element.font,t);i.id.indexOf("-axis-title")>-1&&s.setAttribute("aria-hidden","true"),t.chart3D.append(s)}else{var h=i.series,c=h.yAxis&&h.yAxis.labelFormat?h.yAxis.labelFormat:"",d=i.point.text?i.point.text:i.point.y+c.substring(c.indexOf("}")+1),p=(0,R.measureText)(d,h.dataLabel.font,t.themeStyle.datalabelFont),u=h.dataLabel.margin,g=p.width+u.left+u.right,m=p.height+u.top+u.bottom,y={x:r.x,y:r.y},f=y.x-u.left/2+u.right/2,v=y.y-u.top/2-m/u.top+u.bottom/2,b=h.index;this.dataLabelSymbol(b,h,i.pointIndex,f,v,g,m,t)}}},e.prototype.dataLabelSymbol=function(e,t,i,o,r,n,a,l){var s="M "+(o+-n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+-a/2)+" z",h={id:l.element.id+"-svg-data-label-series-"+e+"-point-"+i,fill:t.dataLabel.fill,"stroke-width":t.dataLabel.border.width,"stroke-dasharray":t.dataLabel.border.dashArray,stroke:t.dataLabel.border.color,opacity:t.dataLabel.opacity,visibility:"",d:s},c=l.svgRenderer.drawPath(h);l.chart3D.append(c)},e.prototype.draw=function(e,t){if(!(null==e.vectorPoints||e.vectorPoints.length<=0)){var i=Nc.transform,o=t.svg3DRenderer.getStringBuilder(),r=e.fill;t.svg3DRenderer.checkColorFormat(r)||"transparent"!==r&&(r=fi(r));var n={StartPoint:null};if(null!=i){n.StartPoint=t.transform3D.toScreen(e.vectorPoints[0],i),o.append("M "+n.StartPoint.x+" "+n.StartPoint.y+" ");for(var a=0;a<e.vectorPoints.length;a++){var l=t.transform3D.toScreen(e.vectorPoints[a],i);o.append("L "+l.x+" "+l.y+" ")}}var s=o.toString(),h="Light",c=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,0,1)))-1),d=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,1,0)))-1),p=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(1,0,0)))-1);!e.name||e.name.indexOf("-wall-brush")>-1||(c===p?(h="ZLight",r=this.applyZLight(r,t)):d===c||0!==c&&d<c?(h="XLight",r=this.applyXLight(r,t)):c<0?(h="ZLight",r=this.applyZLight(r,t)):h="Light");var u={id:t.element.id+"-svg"+e.name,name:h,fill:r,stroke:"","stroke-width":e.strokeThickness,opacity:e.opacity,d:s},g=t.svgRenderer.drawPath(u);if(e.text&&(g.setAttribute("aria-label",e.text),g.setAttribute("role","img")),e.name&&e.name.indexOf("-wall-brush")>-1&&g.setAttribute("aria-hidden","true"),g.id.indexOf("0-region-series-0-point-0")>-1){if(this.tabIndex)g.setAttribute("tabindex","0");else{var m=e.polygonElement.parent.querySelectorAll('[id*="0-region-series-0-point-0"]');m.length>0&&m[m.length-1].removeAttribute("tabindex"),g.setAttribute("tabindex","0")}this.tabIndex=!1}if(ni(!1,e.polygonElement.parent,g,t.redraw,!0,"x","y",null,s),t.previousID&&t.isTouch){var y=document.getElementById(t.previousID),f=document.getElementById(u.id);y&&f&&f.parentNode.insertBefore(f,y.nextSibling)}t.previousID=u.id}},e.prototype.applyXLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.7*i.red).toString(),10),i.green=parseInt((.7*i.green).toString(),10),i.blue=parseInt((.7*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e.prototype.applyZLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.9*i.red).toString(),10),i.green=parseInt((.9*i.green).toString(),10),i.blue=parseInt((.9*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e}(),Yc=new Vc(0,0,0),Zc=new Hc,qc=new Uc,Qc=new Gc,$c=new jc;function Kc(e,i){for(var o,r,n,a=Number.MAX_VALUE,l=0;l<i.length;l++){var s=i[l];if(o=[],s.visible&&(e.name===s.xAxisName||"primaryXAxis"===e.name&&null===s.xAxisName))if((o=s.points.map(function(e){return e.xValue})).sort(function(e,t){return e-t}),1===o.length)n="DateTime"===e.valueType&&s.xMin===s.xMax?s.xMin-2592e4:s.xMin,0!==(r=o[0]-((0,t.isNullOrUndefined)(n)?e.visibleRange.min:n))&&(a=Math.min(a,r));else for(var h=0;h<o.length;h++){var c=o[h];h>0&&c&&0!==(r=c-o[h-1])&&(a=Math.min(a,r))}}return a===Number.MAX_VALUE&&(a=1),a}function Jc(e,t){var i=t.visibleRange,o=(e-i.min)/i.delta;return t.isAxisInverse?1-o:o}var ed=function(){function e(){}return e.prototype.update3DWall=function(e){this.updateBackWall(e);for(var t=0;t<e.axisCollections.length;t++){var i=e.axisCollections[t],o=i.opposedPosition||i.isAxisOpposedPosition;"vertical"===i.orientation.toLowerCase()?o?this.updateRightWall(e):this.updateLeftWall(e):o?this.updateTopWall(e):this.updateBottomWall(e)}},e.prototype.updateTopWall=function(e){var t=0,i=e.chartAxisLayoutPanel.seriesClipRect,o=i.y;t=e.wallSize<o?o-e.wallSize:-(e.wallSize-o);for(var r=e.vector.vector3D(i.x+i.width,-e.depth,o-.1),n=e.vector.vector3D(i.x,-.1,t),a=e.polygon.createBox(r,n,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"top-wall-brush",e.chart3D),l=0;l<a.length;l++)e.polygon.transform(e.matrixObj.tilt(Math.PI/2),a[l])},e.prototype.updateRightWall=function(e){for(var t=e.chartAxisLayoutPanel.seriesClipRect,i=t.x+t.width,o={left:-e.depth,top:t.y,bottom:t.height+t.y,right:0},r=e.vector.vector3D(o.left,o.top,i+1.5),n=e.vector.vector3D(o.right,o.bottom,i+e.wallSize),a=e.polygon.createBox(r,n,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"right-wall-brush",e.chart3D),l=0;l<a.length;l++)e.polygon.transform(e.matrixObj.turn(-Math.PI/2),a[l])},e.prototype.updateBackWall=function(e){var t=e.chartAxisLayoutPanel.seriesClipRect,i=e.vector.vector3D(t.x,t.y,0===e.depth?1.5:e.depth+e.wallSize),o=e.vector.vector3D(t.x+t.width,t.y+t.height,0===e.depth?1.5:e.depth);e.polygon.createBox(i,o,e,0,e.wallColor||e.themeStyle.backWallColor,e.wallColor||e.themeStyle.backWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.25,!1,"back-wall-brush",e.chart3D)},e.prototype.updateLeftWall=function(e){for(var t=e.chartAxisLayoutPanel.seriesClipRect,i={left:-e.depth,top:t.y,bottom:t.height+t.y,right:0},o=t.x,r=e.vector.vector3D(i.left,i.top,o-.1),n=e.vector.vector3D(i.right,i.bottom,o-e.wallSize),a=e.polygon.createBox(r,n,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"left-wall-brush",e.chart3D),l=0;l<a.length;l++)e.polygon.transform(e.matrixObj.turn(-Math.PI/2),a[l])},e.prototype.updateBottomWall=function(e){for(var t=e.chartAxisLayoutPanel.seriesClipRect,i=t.y+t.height,o=e.vector.vector3D(t.x+t.width,-e.depth,e.wallSize+i),r=e.vector.vector3D(t.x,-.1,i+1),n=e.polygon.createBox(r,o,e,0,e.wallColor||e.themeStyle.leftWallColor,e.wallColor||e.themeStyle.leftWallColor,0,e.theme.indexOf("Fluent2")>-1?.3:e.theme.indexOf("Bootstrap5")>-1?.1:.5,!1,"bottom-wall-brush",e.chart3D),a=0;a<n.length;a++)e.polygon.transform(e.matrixObj.tilt(Math.PI/2),n[a])},e}(),td=function(){function e(){}return e.prototype.drawAxes=function(e,t,i){t.majorGridLines.width&&this.drawGridLines3D(t,i,e),t.visible&&t.internalVisibility&&t.majorTickLines.width&&this.renderTicks3D(t,t.majorTickLines.height,t.majorTickLines.width,i,e),t.visible&&t.internalVisibility&&(this.drawAxisLabel(t,i,e),this.drawAxisTitle(t,i,e))},e.prototype.drawAxisTitle=function(e,t,i){if(e.title){var o={size:e.titleStyle.size||t.themeStyle.axisTitleFont.size,fontWeight:e.titleStyle.fontWeight||t.themeStyle.axisTitleFont.fontWeight,fontStyle:e.titleStyle.fontStyle||t.themeStyle.axisTitleFont.fontStyle,fontFamily:e.titleStyle.fontFamily||t.themeStyle.axisTitleFont.fontFamily,color:e.titleStyle.color,opacity:e.titleStyle.opacity},r=e.opposedPosition||e.isAxisOpposedPosition,n={width:t.availableSize.width,height:t.availableSize.height},a=t.transform3D.transform3D(n);a.viewingArea=n,a.rotation=0,a.tilt=0,a.depth=100,a.perspectiveAngle=90,t.transform3D.transform(a);if("horizontal"===e.orientation.toLowerCase()){var l=0,s=(0,R.measureText)(e.title,e.titleStyle,t.themeStyle.axisTitleFont).height/2;l=e.titleRotation?e.titlePadding+10+e.labelPadding+e.titleSize.height/2:e.titlePadding+s+e.labelPadding+10;var h=e.maxLabelSize.height+l,c=(u={text:e.title,location:{x:e.rect.width/2,y:h+e.majorTickLines.height+t.wallSize}}).location.x+e.rect.x,d=r?e.rect.y-u.location.y:u.location.y+e.rect.y;(g={width:0,height:0,angle:e.titleRotation?e.titleRotation:0,label:u,textAnchor:"middle",tag:"text",font:o,id:t.element.id+"-svg-axis-title-"+i,child:t.chart3D}).font.color=g.font.color?g.font.color:t.themeStyle.axisTitle,g.font.fontFamily=g.font.fontFamily?g.font.fontFamily:t.themeStyle.axisTitleFont.fontFamily,t.graphics.addVisual(t.polygon.createTextElement(t.vector.vector3D(c,d,0),g,10,10),t)}else{var p=(0,R.measureText)(e.title,e.titleStyle,t.themeStyle.axisTitleFont);l=0;l=e.titleRotation?e.labelPadding+e.titlePadding+e.titleSize.width/2:e.titlePadding+e.labelPadding;c=r?e.rect.x+(10+e.maxLabelSize.width+e.majorTickLines.height+t.wallSize+l):e.rect.x-(10+e.maxLabelSize.width+e.majorTickLines.height+t.wallSize+l);var u,g,m=(null==e.titleRotation?r?90:-90:e.titleRotation)%360;d=(u={text:e.title,location:{x:p.width/2,y:0}}).location.y+(e.rect.y+e.rect.height)+e.rect.height/2*-1;(g={width:p.width,height:p.height,angle:m,label:u,textAnchor:"middle",tag:"text",font:o,id:t.element.id+"-svg-axis-title-"+i,child:t.chart3D}).font.color=g.font.color?g.font.color:t.themeStyle.axisTitle,g.font.fontFamily=g.font.fontFamily?g.font.fontFamily:t.themeStyle.axisTitleFont.fontFamily,t.graphics.addVisual(t.polygon.createTextElement(t.vector.vector3D(c,d,0),g,10,10),t)}}},e.prototype.textTrim=function(e,t,i,o){var r,n=t.length;if((0,R.measureText)(t,i,o).width>e){for(var a=n-1;a>=0;--a)if(r=t.substring(0,a)+"...",(0,R.measureText)(r,i,o).width<=e)return r;return""}return t},e.prototype.multipleRows=function(e,t,i,o,r){for(var n,a,l=[],s=e-1;s>=0;s--)n=o.visibleLabels[s],a=(0,R.measureText)(n.text,o.labelStyle,r),t<Jc(s,o)*o.rect.width+o.rect.x+a.width/2?(n.index=n.index?n.index:0,l.push(n.index),i.index=i.index>n.index?i.index:n.index+1):i.index=l.indexOf(n.index)>-1?i.index:n.index},e.prototype.drawAxisLabel=function(e,i,o){for(var r,n=[],a=e.visibleLabels.length,l=i.chartAxisLayoutPanel.seriesClipRect,s=e.opposedPosition||e.isAxisOpposedPosition,h=e.angle?5:10,c=l.y+(!s&&l.height),d=l.x+(s&&l.width),p=0;p<a;p++)if(!(0,t.isNullOrUndefined)(e.visibleLabels[p].text)){var u=0,g=0,m=void 0,y=void 0,f=(0,R.measureText)(e.visibleLabels[p].text,e.labelStyle,i.themeStyle.axisLabelFont),v=(e.visibleLabels[p].value-e.visibleRange.min)/e.visibleRange.delta;if(v=e.isInversed||e.isAxisInverse?1-v:v,v=isNaN(v)?0:v,"horizontal"===e.orientation.toLowerCase())u=Math.round(e.rect.width*v)+l.x+e.plotOffset,g=s?c-i.wallSize-e.majorTickLines.height-e.labelPadding-h/2:c+i.wallSize+e.majorTickLines.height+h+e.labelPadding,y="middle";else{g=Math.round(e.plotOffset+e.rect.y+f.height/4+e.rect.height*(1-v));var b=0;b=90===e.labelRotation||-90===e.labelRotation||270===e.labelRotation||-270===e.labelRotation?2*h:h,u=s?e.rect.x+e.majorTickLines.height+b+e.labelPadding:d-i.wallSize-e.majorTickLines.height-b+e.labelPadding,y=s?e.isRTLEnabled?"end":"start":e.isRTLEnabled?"start":"end"}n.push({x:u,y:g,size:f});var x=e.rect.width/e.visibleLabels.length-5,S=n[p];if((S.x>e.rect.x&&0===p||S.x+S.size.width/2>e.rect.x+e.rect.width&&p===e.visibleLabels.length-1)&&"Trim"!==e.labelIntersectAction&&e.labelIntersectAction.indexOf("wrap")<0){if("Hide"===e.edgeLabelPlacement)continue;"Shift"===e.edgeLabelPlacement&&(0===p?S.x=u=e.rect.x+S.size.width/2:p===e.visibleLabels.length-1&&(S.x=u=e.rect.x+e.rect.width-S.size.width/2))}if("horizontal"===e.orientation.toLowerCase())if(e.labelRotation)r=e.labelRotation,g+=Ke(e.labelStyle,e.visibleLabels[p].text,r,i,i.themeStyle.axisLabelFont).height/2;else if("Trim"===e.labelIntersectAction)e.visibleLabels[p].text=this.textTrim(x,e.visibleLabels[p].text,e.labelStyle,i.themeStyle.axisLabelFont);else if(!e.angle||"Rotate45"!==e.labelIntersectAction&&"Rotate90"!==e.labelIntersectAction){if("MultipleRows"===e.labelIntersectAction)m=S.x,m-=f.width/2,this.multipleRows(p,m,e.visibleLabels[p],e,i.themeStyle.axisLabelFont),g=e.visibleLabels[p].index?g+e.visibleLabels[p].index*(f.height+5):g;else if("Hide"===e.labelIntersectAction){for(var C=!1,F=0;F<p;F++)if(n[F].x+n[F].size.width/2>=n[p].x-n[p].size.width/2){C=!0;break}if(C)continue}}else{g+=Ke(e.labelStyle,e.visibleLabels[p].text,e.angle,i,i.themeStyle.axisLabelFont).height/2}var w={size:e.visibleLabels[p].labelStyle.size,fontWeight:e.visibleLabels[p].labelStyle.fontWeight,fontStyle:e.visibleLabels[p].labelStyle.fontStyle,fontFamily:e.visibleLabels[p].labelStyle.fontFamily,color:e.visibleLabels[p].labelStyle.color,opacity:e.visibleLabels[p].labelStyle.opacity},L={width:f.width,height:f.height,label:e.visibleLabels[p],textAnchor:y,tag:"text",font:w,id:i.element.id+"-"+o+"-axis-label-"+p,child:i.chart3D,angle:e.angle};L.font.color=L.font.color?L.font.color:i.themeStyle.axisLabel,L.font.fontFamily=L.font.fontFamily?L.font.fontFamily:i.themeStyle.axisLabelFont.fontFamily,i.graphics.addVisual(i.polygon.createTextElement(i.vector.vector3D(u,g,0),L,10,10),i)}},e.prototype.renderTicks3D=function(e,t,i,o,r){var n,a=e.visibleLabels.length,l=o.chartAxisLayoutPanel.seriesClipRect,s="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0;a+="Category"===e.valueType&&a>0&&"BetweenTicks"===e.labelPlacement?1:0;for(var h=0;h<a;h++){var c=0,d=0,p=0,u=0,g=(("DateTimeCategory"!==e.valueType?e.visibleLabels[h]?e.visibleLabels[h].value-s:e.visibleLabels[h-1].value+e.visibleRange.interval-s:e.visibleLabels[h].value?e.visibleLabels[h].value-s:e.visibleRange.max)-e.visibleRange.min)/e.visibleRange.delta;g=e.isInversed||e.isAxisInverse?1-g:g,g=isNaN(g)?0:g,"horizontal"===e.orientation.toLowerCase()?d=c=Math.round(e.rect.width*g)+l.x+e.plotOffset:p=u=Math.round(e.plotOffset+e.rect.height*(1-g))+e.rect.y;var m=this.calculatePosition3D(e,t,i,c,p,d,u,o),y={width:e.majorTickLines.width,opacity:1,stroke:e.majorTickLines.color||o.themeStyle.majorTickLine,child:o.chart3D,tag:"line",id:""};if(y.id=o.element.id+"-"+r+"-major-tick-lines-"+h,o.graphics.addVisual(o.polygon.createLine(y,m.x1,m.y1,m.x2,m.y2,0),o),e.minorGridLines.width&&e.minorTicksPerInterval>0&&h<a-1){n=e.visibleRange.interval/(e.minorTicksPerInterval+1);for(var f=0;f<e.minorTicksPerInterval;f++){g=Jc(e.visibleLabels[h].value+n*(f+1),e),g=isNaN(g)?0:g,"horizontal"===e.orientation.toLowerCase()?c=d=Math.round(e.plotOffset+l.width*g+l.x):p=u=Math.round(e.plotOffset+l.height*(1-g))+e.rect.y;var v=this.calculatePosition3D(e,t,i,c,p,d,u,o),b={width:e.minorTickLines.width,opacity:.6,stroke:e.minorTickLines.color||o.themeStyle.minorTickLine,child:o.chart3D,tag:"line",id:""};b.id=o.element.id+"-"+r+"-minor-tick-lines-"+h+"-"+f,o.graphics.addVisual(o.polygon.createLine(b,v.x1,v.y1,v.x2,v.y2,0),o)}}}},e.prototype.calculatePosition3D=function(e,t,i,o,r,n,a,l){var s=e.opposedPosition||e.isAxisOpposedPosition,h=l.chartAxisLayoutPanel.seriesClipRect,c=h.y+(!s&&h.height),d=h.x+(s&&h.width);if("horizontal"===e.orientation.toLowerCase()){r=0,a=s?t:r+t;var p=s?c-l.wallSize-t:c+l.wallSize-t/2;r+=p,a+=p,o=n=o}else{o=0,n=s?o+t:t;var u=s?d+l.wallSize:d-l.wallSize-t;o+=u,n+=u,r=a=r}return{x1:o,y1:r,x2:n,y2:a}},e.prototype.drawGridLines3D=function(e,t,i){if(null!=e){var o,r,n,a,l,s=e.visibleLabels.length,h=e.opposedPosition||e.isAxisOpposedPosition,c=e.orientation,d="Category"===e.valueType&&"BetweenTicks"===e.labelPlacement?.5:0;s+="Category"===e.valueType&&s>0&&"BetweenTicks"===e.labelPlacement?1:0;var p=t.chartAxisLayoutPanel.seriesClipRect;if("horizontal"===c.toLowerCase()){var u=void 0;for(u=0;u<s;u++){var g=Jc("DateTimeCategory"!==e.valueType?e.visibleLabels[u]?e.visibleLabels[u].value-d:e.visibleLabels[u-1].value+e.visibleRange.interval-d:e.visibleLabels[u].value?e.visibleLabels[u].value-d:e.visibleRange.max,e);g=isNaN(g)?0:g,n=r=Math.round(e.rect.width*g)+p.x+e.plotOffset,a=p.y,l=p.y+p.height;var m=t.depth>2?t.depth-2:1,y=p.y+(!h&&p.height);(F={opacity:1,width:e.majorGridLines.width,stroke:e.majorGridLines.color||t.themeStyle.majorGridLine,child:t.chart3D,tag:"line",id:""}).id=t.element.id+"-"+i+"-grid-lines-"+u,t.graphics.addVisual(t.polygon.createLine(F,r,a,n,l,m),t);var f={opacity:F.opacity,width:F.width,stroke:F.stroke,child:F.child,tag:F.tag,id:""};f.id=F.id+"-parallel",f.id=t.element.id+"-"+i+"-parallel-grid-lines-"+u;var v=t.polygon.createLine(f,n,0,n,-m,y);if(t.polygon.transform(t.matrixObj.tilt(Math.PI/2),v),t.graphics.addVisual(v,t),e.minorGridLines.width&&e.minorTicksPerInterval>0&&u<s-1){o=e.visibleRange.interval/(e.minorTicksPerInterval+1);for(var b=0;b<e.minorTicksPerInterval;b++){g=Jc(e.visibleLabels[u].value+o*(b+1),e),g=isNaN(g)?0:g,n=r=Math.round(p.width*g)+p.x,a=p.y,l=p.y+p.height;var x={opacity:.6,width:e.minorGridLines.width,stroke:e.minorGridLines.color||t.themeStyle.minorGridLine,child:t.chart3D,tag:"line",id:""};x.id=t.element.id+"-"+i+"-minor-grid-lines-"+u+"-"+b,t.graphics.addVisual(t.polygon.createLine(x,r,a,n,l,m),t);var S={opacity:x.opacity,width:x.width,stroke:x.stroke,child:x.child,tag:x.tag,id:""};S.id=t.element.id+"-"+i+"-parallel-minor-grid-lines-"+u+"-"+b;var C=t.polygon.createLine(S,n,0,n,-m,y);t.polygon.transform(t.matrixObj.tilt(Math.PI/2),C),t.graphics.addVisual(C,t)}}}}else for(u=0;u<s;u++){g=((e.visibleLabels[u]?e.visibleLabels[u].value-d:e.visibleLabels[u-1].value+e.visibleRange.interval-d)-e.visibleRange.min)/e.visibleRange.delta;r=p.x,a=Math.round(e.rect.height*(1-g))+.5,a+=e.rect.y,n=r+p.width,l=a;var F;m=t.depth>2?t.depth-2:1;(F={opacity:1,width:e.majorGridLines.width,stroke:e.majorGridLines.color||t.themeStyle.majorGridLine,axisName:e.name,child:t.chart3D,tag:"line",id:""}).id=t.element.id+"-"+i+"-grid-lines-"+u,t.graphics.addVisual(t.polygon.createLine(F,r,a,n,l,m),t);var w=p.x+(h&&p.width+1),L={opacity:F.opacity,width:F.width,stroke:F.stroke,child:F.child,tag:F.tag,id:""};L.id=t.element.id+"-"+i+"-parallel-grid-lines-"+u;v=t.polygon.createLine(L,-m,l,0,l,w);if(t.polygon.transform(t.matrixObj.turn(-Math.PI/2),v),t.graphics.addVisual(v,t),e.minorGridLines.width&&e.minorTicksPerInterval>0&&u<s-1){o=e.visibleRange.interval/(e.minorTicksPerInterval+1);for(b=0;b<e.minorTicksPerInterval;b++){var P=Jc(e.visibleLabels[u].value+o*(b+1),e);r=p.x,a=Math.round(e.rect.height*(1-P))+.5,a+=e.rect.y,n=r+p.width,l=a;var A={opacity:.6,width:e.minorGridLines.width,stroke:e.minorGridLines.color||t.themeStyle.minorGridLine,axisName:e.name,child:t.chart3D,tag:"line",id:""};A.id=t.element.id+"-"+i+"-minor-grid-lines-"+u+"-"+b,t.graphics.addVisual(t.polygon.createLine(A,r,a,n,l,m),t);var M={opacity:A.opacity,width:A.width,stroke:A.stroke,child:A.child,tag:A.tag,id:""};M.id=t.element.id+"-"+i+"-parallel-minor-grid-lines-"+u+b;var D=t.polygon.createLine(M,-m,l,0,l,w);t.polygon.transform(t.matrixObj.turn(-Math.PI/2),D),t.graphics.addVisual(D,t)}}}}},e}(),id=function(){function e(e,t){e<t?(this.mStart=e,this.mEnd=t):(this.mStart=t,this.mEnd=e)}return Object.defineProperty(e.prototype,"start",{get:function(){return this.mStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.mEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delta",{get:function(){return this.mEnd-this.mStart},enumerable:!0,configurable:!0}),e}(),od=function(){function e(e){this.isColumn=0,this.isStacking=!1,this.chart=e}return e.prototype.calculateNumericNiceInterval=function(e,i,o){var r=jt(o,e),n=i/r;if(!(0,t.isNullOrUndefined)(e.desiredIntervals))return n;for(var a=Math.pow(10,Math.floor(et(n,10))),l=0,s=e.intervalDivs;l<s.length;l++){var h=a*s[l];if(r<i/h)break;n=h}return n},e.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),!e.startFromZero&&this.isColumn>0?(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.max=e.doubleRange.end+e.actualRange.interval,e.doubleRange.start-e.actualRange.interval<0&&e.doubleRange.start>0?e.actualRange.min=0:e.actualRange.min=e.doubleRange.start-(this.isStacking?0:e.actualRange.interval)):(e.actualRange.interval=e.interval||this.calculateNumericNiceInterval(e,e.doubleRange.delta,t),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end)},e.prototype.initializeDoubleRange=function(e){null!==e.minimum?this.min=e.minimum:null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=0),null!==e.maximum?this.max=e.maximum:null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=5),this.min===this.max&&(this.max=e.valueType.indexOf("Category")>-1?this.max:this.min+1),e.doubleRange=new id(this.min,this.max),e.actualRange={}},e.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},e.prototype.calculateRange=function(e){if(this.min=null,this.max=null,!Ht(e))for(var i=0,o=e.series;i<o.length;i++){var r=o[i];r.visible&&(this.paddingInterval=0,(0,t.isNullOrUndefined)(r.points)||(e.maxPointLength=r.points.length),e.maxPointLength=r.points.length,(r.type.indexOf("Column")>-1&&"Horizontal"===e.orientation||r.type.indexOf("Bar")>-1&&"Vertical"===e.orientation)&&("Double"!==r.xAxis.valueType&&"DateTime"!==r.xAxis.valueType||"Auto"!==r.xAxis.rangePadding||(this.paddingInterval=.5*Kc(r.xAxis,e.series))),"Horizontal"===e.orientation&&(this.chart.requireInvertedAxis?this.yAxisRange(e,r):this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval)),"Vertical"===e.orientation&&(this.isColumn+=-1!==r.type.indexOf("Column")||-1!==r.type.indexOf("Bar")?1:0,this.isStacking=-1!==r.type.indexOf("Stacking"),this.chart.requireInvertedAxis?this.findMinMax(r.xMin-this.paddingInterval,r.xMax+this.paddingInterval):this.yAxisRange(e,r)))}},e.prototype.yAxisRange=function(e,t){this.findMinMax(t.yMin,t.yMax)},e.prototype.findMinMax=function(e,t){(null===this.min||this.min>e)&&(this.min=e),(null===this.max||this.max<t)&&(this.max=t),this.max===this.min&&this.max<0&&this.min<0&&(this.max=0)},e.prototype.applyRangePadding=function(e,t){var i=e.actualRange.min,o=e.actualRange.max;if(!Ht(e)){var r=e.actualRange.interval,n=e.getRangePadding(this.chart);"Additional"===n||"Round"===n?this.findAdditional(e,i,o,r,t):"Normal"===n?this.findNormal(e,i,o,r,t):this.updateActualRange(e,i,o,r)}e.actualRange.delta=e.actualRange.max-e.actualRange.min,this.calculateVisibleRange(t,e)},e.prototype.updateActualRange=function(e,t,i,o){e.actualRange={min:null!=e.minimum?e.minimum:t,max:null!=e.maximum?e.maximum:i,interval:null!=e.interval?e.interval:o,delta:e.actualRange.delta}},e.prototype.findAdditional=function(e,i,o,r,n){var a,l;if(a=Math.floor(i/r)*r,l=Math.ceil(o/r)*r,"Additional"===e.rangePadding&&(a-=r,l+=r),!(0,t.isNullOrUndefined)(e.desiredIntervals)){var s=l-a;r=this.calculateNumericNiceInterval(e,s,n)}this.updateActualRange(e,a,l,r)},e.prototype.findNormal=function(e,t,i,o,r){var n,a,l=t;t<0?(l=0,.365*o>=o+(n=t+.05*t)%o&&(n-=o),n%o<0&&(n=n-o-n%o)):(n=t<5/6*i?0:t-.5*(i-t))%o>0&&(n-=n%o),.365*o>=o-(a=i>0?i+.05*(i-l):i-.05*(i-l))%o&&(a+=o),a%o>0&&(a=a+o-a%o),e.doubleRange=new id(n,a),(0===n||n<0&&a<0)&&(o=this.calculateNumericNiceInterval(e,e.doubleRange.delta,r),a=Math.ceil(a/o)*o),this.updateActualRange(e,n,a,o)},e.prototype.calculateVisibleRange=function(e,t){if(t.visibleRange={max:t.actualRange.max,min:t.actualRange.min,delta:t.actualRange.delta,interval:t.actualRange.interval},t.maximum&&"Vertical"===t.orientation&&"Auto"===t.rangePadding){for(var i=void 0,o=t.visibleRange.min;o<=t.visibleRange.max&&i!==o;o+=t.visibleRange.interval)i=o;i<t.visibleRange.max&&(t.visibleRange.max=i+t.visibleRange.interval)}t.triggerRangeRender(this.chart,t.visibleRange.min,t.visibleRange.max,t.visibleRange.interval)},e.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r,n=e.visibleRange.min,a=this.getFormat(e),l=null!==a.match("{value}"),s=0,h=0;for(e.labelFormat&&e.labelFormat.indexOf("n")>-1&&(h=parseInt(e.labelFormat.substring(1,e.labelFormat.length),10)),e.format=i.intl.getNumberFormat({format:l?"":a,useGrouping:i.useGroupingSeparator}),e.startLabel=e.format(e.visibleRange.min),e.endLabel=e.format(e.visibleRange.max),e.visibleRange.interval&&(e.visibleRange.interval+"").indexOf(".")>=0&&(s=(e.visibleRange.interval+"").split(".")[1].length);n<=e.visibleRange.max&&r!==n;n+=e.visibleRange.interval)r=n,o=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),ot(n,e.visibleRange)&&Vt(i,n,this.formatValue(e,l,a,n),o,e);n&&(n+"").indexOf(".")>=0&&(n+"").split(".")[1].length>10&&(n=(n+"").split(".")[1].length>(h||s)?+n.toFixed(h||s):n)<=e.visibleRange.max&&Vt(i,n,this.formatValue(e,l,a,n),o,e),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},e.prototype.getFormat=function(e){return e.labelFormat?0===e.labelFormat.indexOf("p")&&-1===e.labelFormat.indexOf("{value}")&&e.isStack100?"{value}%":e.labelFormat:e.isStack100?"{value}%":""},e.prototype.formatValue=function(e,t,i,o){var r=o%1?Number(o.toLocaleString().split(",").join("")):o;return t?i.replace("{value}",e.format(r)):i?e.format(o):e.format(r)},e.prototype.getModuleName=function(){return"Double3D"},e}(),rd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),nd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},ad=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t}return rd(i,e),i.prototype.computeSize=function(e,t){var i=0;e.visible&&e.internalVisibility&&(i+=e.majorTickLines.height+e.findLabelSize(5,t)),e.isAxisOpposedPosition?this.farSizes.push(i):this.nearSizes.push(i)},nd([(0,t.Property)("100%")],i.prototype,"height",void 0),i}(t.ChildProperty),ld=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axes=[],t.nearSizes=[],t.farSizes=[],t}return rd(i,e),i.prototype.computeSize=function(e,t){var i=0;e.visible&&e.internalVisibility&&(i+=e.majorTickLines.height+e.findLabelSize(5,t)),e.isAxisOpposedPosition?this.farSizes.push(i):this.nearSizes.push(i)},nd([(0,t.Property)("100%")],i.prototype,"width",void 0),i}(t.ChildProperty),sd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rd(i,e),nd([(0,t.Property)(1)],i.prototype,"width",void 0),nd([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),hd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rd(i,e),nd([(0,t.Property)(.7)],i.prototype,"width",void 0),nd([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),cd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rd(i,e),nd([(0,t.Property)(0)],i.prototype,"width",void 0),nd([(0,t.Property)(5)],i.prototype,"height",void 0),nd([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),dd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return rd(i,e),nd([(0,t.Property)(0)],i.prototype,"width",void 0),nd([(0,t.Property)(5)],i.prototype,"height",void 0),nd([(0,t.Property)(null)],i.prototype,"color",void 0),i}(t.ChildProperty),pd=function(e){function i(t,i,o,r){var n=e.call(this,t,i,o,r)||this;return n.visibleLabels=[],n.series=[],n.rect=new R.Rect(void 0,void 0,0,0),n.isStack100=!1,n.updatedRect=null,n.isIntervalInDecimal=!0,n.intervalDivs=[10,5,2,1],n.titleCollection=[],n.titleSize=new R.Size(0,0),n.internalVisibility=!0,n.isRTLEnabled=!1,n.angle=n.labelRotation,n}return rd(i,e),i.prototype.findLabelSize=function(e,i){var o=0,r="Horizontal"===this.orientation;if(this.title){var n=this.titleRotation;if((0,t.isNullOrUndefined)(n)?(this.titleSize=(0,R.measureText)(this.title,this.titleStyle,i.themeStyle.axisTitleFont),o=this.titleSize.height+e):(this.titleSize=Ke(this.titleStyle,this.title,n,i,i.themeStyle.axisTitleFont),o=("Vertical"===this.orientation?this.titleSize.width:this.titleSize.height)+e),this.rect.width||this.rect.height){var a=r?this.rect.width:this.rect.height;this.titleCollection=Ti(this.title,this.titleStyle,a,i.enableRtl,i.themeStyle.axisTitleFont),o*=this.titleCollection.length}}return o+e+this.titlePadding+this.labelPadding+("Vertical"===this.orientation?this.maxLabelSize.width:this.maxLabelSize.height)},i.prototype.triggerRangeRender=function(e,t,i,o){var r={cancel:!1,axis:this,minimum:t,maximum:i,interval:o};e.trigger(X,r),r.cancel||(this.visibleRange={min:r.minimum,max:r.maximum,interval:r.interval,delta:r.maximum-r.minimum})},i.prototype.getRangePadding=function(e){var t=this.rangePadding;if("Auto"!==t)return t;switch(this.orientation){case"Horizontal":t=e.requireInvertedAxis?this.isStack100?"Round":"Normal":"None";break;case"Vertical":t=e.requireInvertedAxis?"None":this.isStack100?"Round":"Normal"}return t},i.prototype.getMaxLabelWidth=function(e){var i,o,r=0,n=!1;this.angle=this.labelRotation,this.maxLabelSize=new R.Size(0,0);for(var a,l=this.labelIntersectAction,s=0,h=this.visibleLabels.length;s<h;s++){(o=qe((a=this.visibleLabels[s]).originalText))?(a.size=(0,R.measureText)(a.originalText.replace(/<br>/g," "),this.labelStyle,e.themeStyle.axisLabelFont),a.breakLabelSize=(0,R.measureText)(this.enableTrim?a.text.join("<br>"):a.originalText,this.labelStyle,e.themeStyle.axisLabelFont)):a.size=(0,R.measureText)(a.text,this.labelStyle,e.themeStyle.axisLabelFont);var c=o?a.breakLabelSize.width:a.size.width;c>this.maxLabelSize.width&&(this.maxLabelSize.width=c,this.rotatedLabel=a.text);var d=o?a.breakLabelSize.height:a.size.height;if(d>this.maxLabelSize.height&&(this.maxLabelSize.height=d),o&&(a.text=this.enableTrim?a.text:a.originalText.split("<br>")),"None"!==l&&"Hide"!==l&&"Trim"!==l&&("None"!==l||this.angle%360==0)&&"Horizontal"===this.orientation&&this.rect.width>0&&!n){var p=o?a.breakLabelSize.width:a.size.width;switch(i=Jc(a.value,this)*this.rect.width+this.rect.x,i-=p/2,"Shift"===this.edgeLabelPlacement&&(0===s&&i<this.rect.x&&(i=this.rect.x),s===this.visibleLabels.length-1&&i+p>this.rect.x+this.rect.width&&(i=this.rect.x+this.rect.width-p)),l){case"MultipleRows":s>0&&this.findMultiRows(s,i,a,o);break;case"Rotate45":case"Rotate90":s>0&&(this.isAxisInverse?i+p>=r:i<=r)&&(this.angle="Rotate45"===l?45:90,n=!0);break;default:if(o){for(var u=void 0,g=[],m=void 0,y=0;y<a.text.length;y++)if((u=_i(a.text[y],this.rect.width/this.visibleLabels.length,this.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont)).length>1)for(var f=0;f<u.length;f++)m=u[f],g.push(m);else g.push(u[0]);a.text=g}else a.text=_i(a.text,this.rect.width/this.visibleLabels.length,this.labelStyle,e.enableRtl,null,null,e.themeStyle.axisLabelFont);var v=a.size.height*a.text.length;v>this.maxLabelSize.height&&(this.maxLabelSize.height=v)}r=this.isAxisInverse?i:i+p}}if(0!==this.angle&&"Horizontal"===this.orientation)this.rotatedLabel=(0,t.isNullOrUndefined)(this.rotatedLabel)?"":this.rotatedLabel,!(-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle)&&qe(this.rotatedLabel)&&(this.maxLabelSize=new R.Size(this.maxLabelSize.height,this.maxLabelSize.width)),this.maxLabelSize=Ke(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont);else if(0!==this.angle&&"Vertical"===this.orientation){this.rotatedLabel=(0,t.isNullOrUndefined)(this.rotatedLabel)?"":this.rotatedLabel,!(-360===this.angle||0===this.angle||-180===this.angle||180===this.angle||360===this.angle)&&qe(this.rotatedLabel)&&(this.maxLabelSize=new R.Size(this.maxLabelSize.height,this.maxLabelSize.width)),this.maxLabelSize=Ke(this.labelStyle,this.rotatedLabel,this.angle,e,e.themeStyle.axisLabelFont)}},i.prototype.findMultiRows=function(e,t,i,o){for(var r,n,a,l=[],s=e-1;s>=0;s--)r=this.visibleLabels[s],a=o?r.breakLabelSize.width:r.size.width,n=Jc(r.value,this)*this.rect.width+this.rect.x,(this.isAxisInverse?t+i.size.width>n-.5*a:t<n+.5*a)?(l.push(r.index),i.index=i.index>r.index?i.index:r.index+1):i.index=l.indexOf(r.index)>-1?i.index:r.index;var h=(o?i.breakLabelSize.height:i.size.height)*i.index+5*(i.index-1);h>this.maxLabelSize.height&&(this.maxLabelSize.height=h)},i.prototype.getModule=function(e){"Double"===this.valueType?this.baseModule=new od(e):this.baseModule=e[kt(this.valueType)+"3DModule"]},i.prototype.setIsInversedAndOpposedPosition=function(){this.isAxisOpposedPosition=this.opposedPosition||this.isRTLEnabled&&"Vertical"===this.orientation,this.isAxisInverse=this.isInversed||this.isRTLEnabled&&"Horizontal"===this.orientation},nd([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},Rc)],i.prototype,"labelStyle",void 0),nd([(0,t.Property)("")],i.prototype,"title",void 0),nd([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Rc)],i.prototype,"titleStyle",void 0),nd([(0,t.Property)("")],i.prototype,"labelFormat",void 0),nd([(0,t.Property)("")],i.prototype,"skeleton",void 0),nd([(0,t.Property)("DateTime")],i.prototype,"skeletonType",void 0),nd([(0,t.Property)(0)],i.prototype,"plotOffset",void 0),nd([(0,t.Property)(null)],i.prototype,"plotOffsetLeft",void 0),nd([(0,t.Property)(null)],i.prototype,"plotOffsetTop",void 0),nd([(0,t.Property)(null)],i.prototype,"plotOffsetRight",void 0),nd([(0,t.Property)(null)],i.prototype,"plotOffsetBottom",void 0),nd([(0,t.Property)(!1)],i.prototype,"isIndexed",void 0),nd([(0,t.Property)(10)],i.prototype,"logBase",void 0),nd([(0,t.Property)(0)],i.prototype,"columnIndex",void 0),nd([(0,t.Property)(0)],i.prototype,"rowIndex",void 0),nd([(0,t.Property)(1)],i.prototype,"span",void 0),nd([(0,t.Property)(null)],i.prototype,"desiredIntervals",void 0),nd([(0,t.Property)(3)],i.prototype,"maximumLabels",void 0),nd([(0,t.Property)(!1)],i.prototype,"opposedPosition",void 0),nd([(0,t.Property)("Auto")],i.prototype,"rangePadding",void 0),nd([(0,t.Property)("Double")],i.prototype,"valueType",void 0),nd([(0,t.Property)("None")],i.prototype,"edgeLabelPlacement",void 0),nd([(0,t.Property)("Auto")],i.prototype,"intervalType",void 0),nd([(0,t.Property)("OnTicks")],i.prototype,"labelPlacement",void 0),nd([(0,t.Property)("")],i.prototype,"name",void 0),nd([(0,t.Property)(!0)],i.prototype,"visible",void 0),nd([(0,t.Property)(0)],i.prototype,"minorTicksPerInterval",void 0),nd([(0,t.Property)(0)],i.prototype,"labelRotation",void 0),nd([(0,t.Property)(null)],i.prototype,"titleRotation",void 0),nd([(0,t.Property)(null)],i.prototype,"minimum",void 0),nd([(0,t.Property)(null)],i.prototype,"maximum",void 0),nd([(0,t.Property)(null)],i.prototype,"interval",void 0),nd([(0,t.Property)(34)],i.prototype,"maximumLabelWidth",void 0),nd([(0,t.Property)(!1)],i.prototype,"enableTrim",void 0),nd([(0,t.Property)(5)],i.prototype,"labelPadding",void 0),nd([(0,t.Property)(5)],i.prototype,"titlePadding",void 0),nd([(0,t.Complex)({},cd)],i.prototype,"majorTickLines",void 0),nd([(0,t.Complex)({},dd)],i.prototype,"minorTickLines",void 0),nd([(0,t.Complex)({},sd)],i.prototype,"majorGridLines",void 0),nd([(0,t.Complex)({},hd)],i.prototype,"minorGridLines",void 0),nd([(0,t.Property)(t.Browser.isDevice?"Rotate45":"Trim")],i.prototype,"labelIntersectAction",void 0),nd([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),nd([(0,t.Property)(!0)],i.prototype,"startFromZero",void 0),i}(t.ChildProperty),ud=function(e,t,i,o,r,n,a){void 0===r&&(r=new R.Size(0,0)),void 0===n&&(n=new R.Size(0,0)),void 0===a&&(a=1),this.text=e,this.originalText=o,this.value=t,this.labelStyle=i,this.size=r,this.breakLabelSize=n,this.index=a},gd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),md=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},yd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return gd(i,e),md([(0,t.Property)(!1)],i.prototype,"visible",void 0),md([(0,t.Property)(null)],i.prototype,"name",void 0),md([(0,t.Property)("transparent")],i.prototype,"fill",void 0),md([(0,t.Property)(null)],i.prototype,"format",void 0),md([(0,t.Property)(1)],i.prototype,"opacity",void 0),md([(0,t.Property)(0)],i.prototype,"angle",void 0),md([(0,t.Property)(!1)],i.prototype,"enableRotation",void 0),md([(0,t.Property)("Middle")],i.prototype,"position",void 0),md([(0,t.Complex)({width:null,color:null},u)],i.prototype,"border",void 0),md([(0,t.Complex)({left:5,right:5,top:5,bottom:5},m)],i.prototype,"margin",void 0),md([(0,t.Complex)({size:null,color:null,fontStyle:null,fontWeight:null,fontFamily:null},Rc)],i.prototype,"font",void 0),md([(0,t.Property)(null)],i.prototype,"template",void 0),i}(t.ChildProperty),fd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return gd(i,e),md([(0,t.Property)(null)],i.prototype,"fill",void 0),md([(0,t.Property)("Gap")],i.prototype,"mode",void 0),i}(t.ChildProperty),vd=function(){this.symbolLocations=null,this.percentage=null,this.isSelect=!1},bd=function(e){function i(t,i,o,r){var n=e.call(this,t,i,o,r)||this;return n.currentViewData=[],n.clipRect=new R.Rect(0,0,0,0),n.visibleSeriesCount=0,n.category="Series",n.isRectSeries=!1,n.all=!1,n}return gd(i,e),i.prototype.processJsonData=function(){var e=0,o=new vd,r=this.xName,n=this instanceof i&&this.dataLabel.name?this.dataLabel.name:"",a=(this.currentViewData||[]).length;if(this.points=[],this.xMin=1/0,this.xMax=-1/0,this.yMin=1/0,this.yMax=-1/0,this.sizeMax=-1/0,"Category"===this.xAxis.valueType)for(;e<a;)o=this.dataPoint(e,n,r),this.pushCategoryData(o,e,o.x),this.pushData(o,e),this.setEmptyPoint(o,e),e++;else if(this.xAxis.valueType.indexOf("DateTime")>-1)for(var l={skeleton:"full",type:"dateTime"},s=this.chart.intl.getDateParser(l),h=this.chart.intl.getDateFormat(l);e<a;)o=this.dataPoint(e,n,r),(0,t.isNullOrUndefined)(o.x)||""===o.x?o.visible=!1:(o.x=new Date(ao.DataUtil.parse.parseJson({val:o.x}).val),"DateTime"===this.xAxis.valueType?o.xValue=Date.parse(o.x.toString()):this.pushCategoryData(o,e,Date.parse(s(h(o.x))).toString()),this.pushData(o,e),this.setEmptyPoint(o,e)),e++;else for(;e<a;)(o=this.dataPoint(e,n,r)).xValue=o.x,this.pushData(o,e),this.setEmptyPoint(o,e),e++},i.prototype.pushData=function(e,t){e.index=t,e.yValue=e.y,e.series=this,this.xMin=Math.min(this.xMin,e.xValue),this.xMax=Math.max(this.xMax,e.xValue),this.xData.push(e.xValue)},i.prototype.dataPoint=function(e,t,o){this.points[e]=new vd;var r=this.points[e],n=this.currentViewData[e],a=this.get3DObjectValue;return r.x=a(o,n),r.interior=a(this.pointColorMapping,n),this instanceof i&&(r.y=a(this.yName,n),r.size=a(this.size,n),r.text=a(t,n),r.tooltip=a(this.tooltipMappingName,n)),r},i.prototype.get3DObjectValue=function(e,t){return t[e]},i.prototype.setEmptyPoint=function(e,t){if(!this.findVisibility(e))return e.visible=!0,null;switch(e.isEmpty=!0,(this instanceof i&&this).emptyPointSettings.mode){case"Zero":e.visible=!0,e.y=e.yValue=this.yData[t]=0;break;case"Average":this instanceof i&&(e.y=e.yValue=this.yData[t]=this.getAverage(this.yName,t)),e.visible=!0;break;case"Drop":case"Gap":this.yData[t]=null,e.visible=!1}},i.prototype.findVisibility=function(e){return this.setXYMinMax(e.yValue),this.yData.push(e.yValue),(0,t.isNullOrUndefined)(e.x)||(0,t.isNullOrUndefined)(e.y)||isNaN(+e.y)},i.prototype.setXYMinMax=function(e){var i,o="Logarithmic"===this.yAxis.valueType||"Logarithmic"===this.xAxis.valueType,r=e<0||"None"===this.yAxis.rangePadding;i=Ht(this.yAxis)||o||r?e:0,this.yMin=o?Math.min(this.yMin,(0,t.isNullOrUndefined)(i)||isNaN(i)||0===i||"0"===i.toString()||""===i.toString()?this.yMin:i):Math.min(this.yMin,(0,t.isNullOrUndefined)(i)||isNaN(i)?this.yMin:i),this.yMax=Math.max(this.yMax,(0,t.isNullOrUndefined)(e)||isNaN(e)?this.yMax:e)},i.prototype.pushCategoryData=function(e,t,i){if(this.chart.tooltip&&!this.visible)return null;this.xAxis.isIndexed?(this.xAxis.labels[t]?this.xAxis.labels[t]+=", "+i:this.xAxis.labels.push(i),e.xValue=t):(void 0===this.xAxis.indexLabels[i]&&(this.xAxis.indexLabels[i]=this.xAxis.labels.length,this.xAxis.labels.push(i)),e.xValue=this.xAxis.indexLabels[i])},i.prototype.getAverage=function(e,t,i){return void 0===i&&(i=this.currentViewData),((i[t-1]&&i[t-1][e]||0)+(i[t+1]&&i[t+1][e]||0))/2},i.prototype.refreshDataManager=function(e){var i,o=this;this.chart=e;(i=e.isAngular?Object.keys(this.dataSource).length?this.dataSource:e.dataSource:this.dataSource||e.dataSource)instanceof ao.DataManager||!(0,t.isNullOrUndefined)(this.query)?this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(e){return o.dataManagerSuccess(e)}):this.dataManagerSuccess({result:i,count:i.length},!1)},i.prototype.dataManagerSuccess=function(e,t){if(void 0===t&&(t=!0),this.currentViewData=e.count?e.result:[],this.chart.allowServerDataBinding=!1,this instanceof i){var o={series:this,data:this.currentViewData,fill:this.interior};this.chart.trigger(W,o),this.interior=o.fill,this.currentViewData=o.data}this.processJsonData(),this.refreshChart(t),this.currentViewData=null},i.prototype.refreshChart=function(e){var t=this.chart;this instanceof i&&(t.visibleSeriesCount+=e?1:0),t.visibleSeries.length===t.visibleSeriesCount&&(t.refreshBound(),t.trigger("loaded",{chart:t})),this instanceof i&&(t.visibleSeriesCount+=e?0:1)},i.prototype.refreshAxisLabel=function(){if("Category"!==this.xAxis.valueType)return null;this.xAxis.labels=[],this.xAxis.indexLabels={};for(var e=0,t=this.xAxis.series;e<t.length;e++){var i=t[e];if(i.visible){i.xMin=1/0,i.xMax=-1/0;for(var o=0,r=i.points;o<r.length;o++){var n=r[o];i.pushCategoryData(n,n.index,n.x),i.xMin=Math.min(i.xMin,n.xValue),i.xMax=Math.max(i.xMax,n.xValue)}}}},i.prototype.findSeriesCollection=function(e,t,i){for(var o=[],r=0,n=t.axes;r<n.length;r++)for(var a=0,l=n[r].series;a<l.length;a++)for(var s=l[a],h=0,c=e.axes;h<c.length;h++)for(var d=0,p=c[h].series;d<p.length;d++){var u=p[d];u===s&&u.visible&&this.rectSeriesInChart(u,i)&&o.push(u)}return o},i.prototype.rectSeriesInChart=function(e,t){var i=e.type.toLowerCase();return-1!==i.indexOf("column")||-1!==i.indexOf("bar")||t},i.prototype.calculateStackedValue=function(e,t){for(var i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.calculateStackingValues(this.findSeriesCollection(r,l,!0),e)}},i.prototype.calculateStackingValues=function(e,t){var i,o,r,n,a,l=[],s=[],h=[],c=[];t&&(c=this.findFrequencies(e));for(var d=[],p=[],u=0;u<e.length;u++){d[(x=e[u]).stackingGroup]?void 0!==d[x.stackingGroup]&&d[x.stackingGroup].push(x):(d[x.stackingGroup]=[],d[x.stackingGroup].push(x))}for(var g=Object.keys(d),m=0;m<g.length;m++){for(var y=[],f=[],v=0,b=d[g[m]];v<b.length;v++){var x;if(-1!==(x=b[v]).type.indexOf("Stacking")){s[r=x.stackingGroup]||(s[r]=[],h[r]=[]),l=x.yData,i=[],o=[],y.push(x);for(var S=0,C=(p=Qe(x)).length;S<C;S++)n=0,a=+l[S],void 0===s[r][p[S].xValue]&&(s[r][p[S].xValue]=0),void 0===h[r][p[S].xValue]&&(h[r][p[S].xValue]=0),t?(a=a/c[r][p[S].xValue]*100,a=isNaN(a)?0:a,p[S].percentage=+a.toFixed(2)):f[S]=f[S]?f[S]+Math.abs(a):Math.abs(a),a>=0?(n=s[r][p[S].xValue],s[r][p[S].xValue]+=a):(n=h[r][p[S].xValue],h[r][p[S].xValue]+=a),i.push(n),o.push(a+n),t&&o[S]>100&&(o[S]=100);x.stackedValues=new Bi(i,o);var F="Logarithmic"===x.yAxis.valueType,w=-1!==x.type.indexOf("Column")||-1!==x.type.indexOf("Bar");x.yMin=F&&w&&x.yMin<1?x.yMin:x.yAxis.startFromZero&&x.type.indexOf("100")>-1&&"Auto"===x.yAxis.rangePadding&&x.yMin>=0?0:parseFloat(Math.min.apply(0,t?i:o).toFixed(10)),x.yMax=Math.max.apply(0,o),x.yMin>Math.min.apply(0,o)&&(x.yMin=t?-100:F&&w&&x.yMin<1?x.yMin:Math.min.apply(0,o)),x.yMax<Math.max.apply(0,i)&&(x.yMax=0)}}this.findPercentageOfStacking(y,f,t)}},i.prototype.findPercentageOfStacking=function(e,t,i){for(var o=0,r=e;o<r.length;o++){var n=r[o];if(i)return null;for(var a=0,l=Qe(n);a<l.length;a++){var s=l[a];s.percentage=Math.abs(+(s.y/t[s.index]*100).toFixed(2))}}},i.prototype.findFrequencies=function(e){for(var t,i=[],o=[],r=0,n=e;r<n.length;r++){var a=n[r];if(a.yAxis.isStack100=-1!==a.type.indexOf("100"),o=this.getVisiblePoints(),-1!==a.type.indexOf("Stacking")){i[t=a.stackingGroup]||(i[t]=[]);for(var l=0,s=o.length;l<s;l++)void 0===i[t][o[l].xValue]&&(i[t][o[l].xValue]=0),a.yData[l]>0?i[t][o[l].xValue]+=a.yData[l]:i[t][o[l].xValue]-=a.yData[l]}}return i},i.prototype.renderSeries=function(e){var t=kt(this.type);e[(t=t.replace("100",""))+"Series3DModule"]&&(this.visiblePoints=this.getVisiblePoints(),e[t+"Series3DModule"].draw(this,e),this.dataLabel.visible&&this.visible&&e.dataLabel3DModule.render(this,this.chart,this.dataLabel))},i.prototype.getVisiblePoints=function(){for(var e,i=(0,t.extend)([],this.points,null,!0),o=[],r=0,n=0;n<i.length;n++)e=i[n],(0,t.isNullOrUndefined)(e.x)||(e.index=r++,o.push(e));return o},i.prototype.setPointColor=function(e,t){return t=e.interior||t,e.isEmpty&&this.emptyPointSettings.fill||t},i.prototype.getYValues=function(e){for(var t=[],i=e.length,o=0;o<i;o++)t.push(e[o].yValue);return t},i.prototype.getXValues=function(e){for(var t=[],i=e.length,o=0;o<i;o++)t.push(e[o].xValue);return t},i.prototype.getSegmentDepth=function(e){var t,i,o=this.chart.depth;if(this.chart.enableSideBySidePlacement){t=r=o/4,i=r*("Rectangle"===e.columnFacet?2.5:3)}else{var r,n=e.position-1,a=e.rectCount;i=(t=(r=o/(2*a+a+1))+r*n*3)+r*("Rectangle"===e.columnFacet?1.5:2)}return{start:t,end:i,delta:i-t}},i.prototype.getSideBySidePositions=function(e){for(var t=e.chart,i=0,o=t.columns;i<o.length;i++)for(var r=o[i],n=0,a=t.rows;n<a.length;n++){var l=a[n];this.findRectPosition(e.findSeriesCollection(r,l,!1))}},i.prototype.findRectPosition=function(e){for(var t=[],i={rectCount:0,position:null},o=0;o<e.length;o++){if(-1!==(n=e[o]).type.indexOf("Stacking")||""!==n.groupName){var r=-1!==n.type.indexOf("Stacking")?n.stackingGroup:n.type+n.groupName;r?void 0===t[r]?(n.position=i.rectCount,t[r]=i.rectCount++):n.position=t[r]:null===i.position?(i.rectCount++,n.position=i.rectCount,i.position=i.rectCount):n.position=i.position}else i.rectCount++,n.position=i.rectCount}for(o=0;o<e.length;o++){var n;(n=e[o]).rectCount=i.rectCount}},i.prototype.getDoubleRange=function(e,t){var i,o;return e>t?(i=t,o=e):(i=e,o=t),{start:i,end:o,delta:o-i,median:(i+o)/2,isEmpty:isNaN(i)||isNaN(o)}},i.prototype.setStyle=function(e){return{interior:e.interior,opacity:e.opacity,dashArray:""}},i.prototype.getSideBySideInfo=function(e){this.chart.currentSeries=e;var t=Kc(e.xAxis,this.chart.visibleSeries),i=e.columnSpacing,o=null===e.columnWidth||isNaN(+e.columnWidth)?.7:Math.min(e.columnWidth,1);this.getSideBySidePositions(e);var r=e.position,n=e.rectCount,a=t*o,l=(r-(""===e.stackingGroup?1:0))/n-.5,s=this.getDoubleRange(l,l+1/n);if(!this.chart.enableSideBySidePlacement)return this.getDoubleRange(-a/2,a/2);if(!s.isEmpty){var h=i*(s=this.getDoubleRange(s.start*a,s.end*a)).delta;s=this.getDoubleRange(s.start+h/2,s.end-h/2)}return s},md([(0,t.Property)("")],i.prototype,"xName",void 0),md([(0,t.Property)("")],i.prototype,"pointColorMapping",void 0),md([(0,t.Property)(!0)],i.prototype,"visible",void 0),md([(0,t.Property)(null)],i.prototype,"xAxisName",void 0),md([(0,t.Property)(null)],i.prototype,"yAxisName",void 0),md([(0,t.Complex)({duration:2e3},y)],i.prototype,"animation",void 0),md([(0,t.Property)(null)],i.prototype,"fill",void 0),md([(0,t.Property)("")],i.prototype,"dataSource",void 0),md([(0,t.Property)()],i.prototype,"query",void 0),md([(0,t.Complex)({},yd)],i.prototype,"dataLabel",void 0),md([(0,t.Property)("")],i.prototype,"name",void 0),md([(0,t.Property)("")],i.prototype,"yName",void 0),md([(0,t.Property)("")],i.prototype,"size",void 0),md([(0,t.Property)("")],i.prototype,"stackingGroup",void 0),md([(0,t.Property)(1)],i.prototype,"opacity",void 0),md([(0,t.Property)("")],i.prototype,"groupName",void 0),md([(0,t.Property)("Column")],i.prototype,"type",void 0),md([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),md([(0,t.Property)("")],i.prototype,"tooltipFormat",void 0),md([(0,t.Property)("")],i.prototype,"tooltipMappingName",void 0),md([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),md([(0,t.Property)("")],i.prototype,"legendImageUrl",void 0),md([(0,t.Complex)(null,fd)],i.prototype,"emptyPointSettings",void 0),md([(0,t.Property)(null)],i.prototype,"columnWidth",void 0),md([(0,t.Property)("Rectangle")],i.prototype,"columnFacet",void 0),md([(0,t.Property)(.1)],i.prototype,"columnSpacing",void 0),i}(t.ChildProperty),xd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Sd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Cd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return xd(i,e),Sd([(0,t.Property)(!1)],i.prototype,"enable",void 0),Sd([(0,t.Property)(!0)],i.prototype,"enableMarker",void 0),Sd([(0,t.Property)(null)],i.prototype,"fill",void 0),Sd([(0,t.Property)(null)],i.prototype,"header",void 0),Sd([(0,t.Property)(null)],i.prototype,"opacity",void 0),Sd([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),Sd([(0,t.Property)(null)],i.prototype,"format",void 0),Sd([(0,t.Property)(null)],i.prototype,"template",void 0),Sd([(0,t.Property)(!0)],i.prototype,"enableAnimation",void 0),Sd([(0,t.Property)(300)],i.prototype,"duration",void 0),Sd([(0,t.Property)(1e3)],i.prototype,"fadeOutDuration",void 0),Sd([(0,t.Property)("Move")],i.prototype,"fadeOutMode",void 0),Sd([(0,t.Property)(!1)],i.prototype,"enableTextWrap",void 0),Sd([(0,t.Complex)({color:null,width:null},u)],i.prototype,"border",void 0),Sd([(0,t.Complex)({x:null,y:null},n)],i.prototype,"location",void 0),i}(t.ChildProperty),Fd=function(e){function i(t){var i=e.call(this,t)||this;return i.chart3D=t,i.commonXvalues=[],i.addEventListener(),i}return xd(i,e),i.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(e,this.mouseLeaveHandler,this),this.chart.on("tapHold",this.longPress,this),this.chart.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.chart.on(t.Browser.touchEndEvent,this.mouseUpHandler,this)}},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off("pointerleave",this.mouseLeaveHandler),this.chart.off("tapHold",this.longPress),this.chart.off(t.Browser.touchMoveEvent,this.mouseLeaveHandler),this.chart.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.chart.off(t.Browser.touchEndEvent,this.mouseUpHandler))},i.prototype.mouseUpHandler=function(e){var t=this,i=this.control,o=this.get3dData(e);i.isTouch?(this.tooltip(e),"Move"===i.tooltip.fadeOutMode&&(this.removeTooltip(i.tooltip.fadeOutDuration),clearTimeout(this.timerId),this.timerId=+setTimeout(function(){t.removeBlurEffect()},500)),i.startMove&&"Move"===i.tooltip.fadeOutMode&&(this.removeTooltip(2e3),this.removeBlurEffect())):this.findData(o,this.previousPoints[0])||"Click"!==i.tooltip.fadeOutMode||(this.removeTooltip(0),this.removeBlurEffect())},i.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.chart.tooltip.fadeOutDuration),this.removeBlurEffect()},i.prototype.mouseMoveHandler=function(e){var t=this.chart3D;t.mouseX=t.mouseX/t.scaleX,t.mouseY=t.mouseY/t.scaleY,t.disableTrackTooltip||t.rotateActivate||t.isTouch&&!t.startMove||this.tooltip(e)},i.prototype.longPress=function(){return!1},i.prototype.seriesStyles=function(){if(!this.styleAdded){var e=document.createElement("style");e.setAttribute("id",this.element.id+"_ej2_chart_tooltip"),e.innerText+=" ."+this.element.id+"_ej2_tooltipDeselected { opacity:0.2;} ",document.body.appendChild(e),this.styleAdded=!0}},i.prototype.tooltip=function(e){var t=this.element.id+"_tooltip_svg",i=this.getElement(t),o=i&&parseInt(i.getAttribute("opacity"),10)>0,r=this.getTooltipElement(o);this.chart3D.tooltip3DModule&&this.renderSeriesTooltip(this.chart3D,!o,r,e)},i.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header,e.series.xAxis,e.series.yAxis),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},i.prototype.renderSeriesTooltip=function(e,t,i,o){var r=this.get3dData(o);this.currentPoints=[],!this.findData(r,this.previousPoints[0])||(!this.previousPoints[0]||this.previousPoints[0].point.index===r.point.index&&this.previousPoints[0].series.index===r.series.index&&this.chart3D.isRemove)&&this.previousPoints[0]?!r.point&&this.chart3D.isRemove&&"Move"===e.tooltip.fadeOutMode&&(this.removeTooltip(this.chart.tooltip.fadeOutDuration),this.removeBlurEffect(),this.chart3D.isRemove=!1):this.pushData(r,t,i,!0)&&this.triggerTooltipRender(r,t,this.getTooltipText(r),this.findHeader(r)),r&&r.point&&this.findMouseValue(r,e)},i.prototype.triggerTooltipRender=function(e,i,o,r){var n=this,a={cancel:!1,text:o,headerText:r,template:undefined,textStyle:this.textStyle,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,seriesName:e.series.name,pointIndex:e.point.index,pointText:e.point.text}},l=this.chart.border.width,s=function(o){o.cancel?(n.removeHighlight(),(0,t.remove)(n.getElement(n.element.id+"_tooltip"))):(n.headerText=o.headerText,n.formattedText=n.formattedText.concat(o.text),n.text=n.formattedText,n.createTooltip(n.chart,i,n.getSymbolLocation(e),e.series.clipRect,e.point,n.chart3D.tooltip.enableMarker?["Circle"]:[],0,new R.Rect(l,l,n.chart.availableSize.width-3-2*l,n.chart.availableSize.height-3-2*l),!1,null,n.getTemplateText(e),n.template?o.template:""),n.blurEffect(n.chart3D.visibleSeries,e.series)),n.chart3D.isRemove=!0};s.bind(this,e),this.chart.trigger(Y,a,s)},i.prototype.blurEffect=function(e,t){if(!this.chart3D.highlight3DModule||this.chart3D.legendSettings.enableHighlight&&"None"===this.chart3D.highlightMode){for(var i=[],o=0,r=e;o<r.length;o++){var n=r[o];if(n.visible&&n.index!==t.index)document.getElementById(this.element.id).querySelectorAll('[id*="region-series-'+n.index+'"]').forEach(function(e){i.push(e)});else if(n.visible)for(var a=document.getElementById(this.element.id).querySelectorAll('[id*="region-series-'+n.index+'"]'),l=0;l<a.length;l++){var s=a[l];(h=s.getAttribute("class")||"").indexOf(this.element.id+"_ej2_tooltipDeselected")>-1&&s.setAttribute("class",h.replace(this.element.id+"_ej2_tooltipDeselected","")),this.chart3D.stopElementAnimation(s,n.index)}}for(l=0;l<i.length;l++)if(i[l]){var h=i[l].getAttribute("class")||"";-1===(h+=""!==h?" ":"").indexOf("_selection_")&&-1===h.indexOf(this.element.id+"_ej2_tooltipDeselected")&&i[l].setAttribute("class",h+this.element.id+"_ej2_tooltipDeselected")}}},i.prototype.removeBlurEffect=function(){if(!this.chart3D.highlight3DModule||this.chart3D.legendSettings.enableHighlight&&"None"===this.chart3D.highlightMode)for(var e=document.getElementsByClassName(this.element.id+"_ej2_tooltipDeselected");e.length>0;){var t=e[0],i=t.getAttribute("class")||"";if(i.indexOf(this.element.id+"_ej2_tooltipDeselected")>-1){t.setAttribute("class",i.replace(this.element.id+"_ej2_tooltipDeselected",""));var o=parseFloat(t.id.split("-series-")[1].split("-point-")[0]);this.chart3D.highlightAnimation(t,o,700,.2)}}},i.prototype.getSymbolLocation=function(e){var t,i,o=document.getElementById(this.element.id+"_svg").getBoundingClientRect();if(t="Cylinder"===e.series.columnFacet?document.querySelectorAll('[id*="'+this.element.id+"-svg-"+(-1===e.series.type.indexOf("Column")?"0":"1")+"-region-series-"+e.series.index+"-point-"+e.point.index+'"]'):document.querySelectorAll('[id*="'+this.element.id+"-svg-"+(-1===e.series.type.indexOf("Column")?"5":"2")+"-region-series-"+e.series.index+"-point-"+e.point.index+'"]')){if(1===t.length)i=t[0].getBoundingClientRect();else for(var r=0;r<t.length;r++){var n=t[r];if(-1!==n.id.indexOf("-"+e.point.index+"-back-front")||-1!==n.id.indexOf("-"+e.point.index+"-front-back")){i=n.getBoundingClientRect();break}}0===t.length||i||(i=t[0].getBoundingClientRect())}return new ji(null!==this.chart3D.tooltip.location.x?this.chart3D.tooltip.location.x:i.left-o.left+i.width/2,null!==this.chart3D.tooltip.location.y?this.chart3D.tooltip.location.y:i.top-o.top+i.height/2)},i.prototype.getTooltipText=function(e){return this.parseTemplate(e.point,e.series,this.getFormat(this.chart3D,e.series),e.series.xAxis,e.series.yAxis)},i.prototype.getTemplateText=function(e){if(this.template){var i=(0,t.extend)({},e.point);return i.x=this.formatPointValue(e.point,e.series.xAxis,"x",!0,!1),i.y=this.formatPointValue(e.point,e.series.yAxis,"y",!1,!0),i}return e.point},i.prototype.findMouseValue=function(e,t){t.requireInvertedAxis?(this.valueY=(1-Jc(e.point.xValue,e.series.xAxis))*e.series.xAxis.rect.height+e.series.xAxis.rect.y,this.valueX=t.mouseX):(this.valueX=Jc(e.point.xValue,e.series.xAxis)*e.series.xAxis.rect.width+e.series.xAxis.rect.x,this.valueY=t.mouseY)},i.prototype.parseTemplate=function(e,t,i,o,r){for(var n,a,l=RegExp,s=0,h=Object.keys(e);s<h.length;s++){n=new l("${point."+(p=h[s])+"}","gm"),i=i.replace(n.source,this.formatPointValue(e,"${point.x}"===n.source?o:r,p,"${point.x}"===n.source,"${point.y}"===n.source))}for(var c=0,d=Object.keys(Object.getPrototypeOf(t));c<d.length;c++){var p;n=new l("${series."+(p=d[c])+"}","gm"),a=t[p],i=i.replace(n.source,a)}return i},i.prototype.formatPointValue=function(e,i,o,r,n){var a,l,s;return"Category"!==i.valueType&&r?a=(l=i.labelFormat&&null!==i.labelFormat.match("{value}"))?i.labelFormat.replace("{value}",i.format(e[o])):i.format(e[o]):n&&!(0,t.isNullOrUndefined)(e[o])?(l=i.labelFormat&&null!==i.labelFormat.match("{value}"),s=i.format(e[o]),a=l?i.labelFormat.replace("{value}",s):s):a=e[o],a},i.prototype.getFormat=function(e,t){if(t.tooltipFormat)return t.tooltipFormat;if(!t.tooltipFormat&&e.tooltip.format)return e.tooltip.format;return"${point.x} : "+(e.theme.indexOf("Tailwind3")>-1?"${point.y}":"<b>${point.y}</b>")},i.prototype.get3dData=function(e){var i,o,r,n=this.chart3D,a=null,l=null,s=this.chart3D.mouseX,h=this.chart3D.mouseY,c=this.chart3D.chartAxisLayoutPanel.seriesClipRect,d=e.target;if(d&&s>c.x&&s<c.x+c.width&&h>c.y&&h<c.y+c.height){var p=d.nodeName;("shape"===p||"path"===p)&&d.id.indexOf("region")>1&&(i=d.id.match(/(\d+)/g),o=parseInt(i[i.length-1].toString(),10),r=parseInt(i[i.length-2].toString(),10))}return(0,t.isNullOrUndefined)(r)||(l=n.visibleSeries[r]),l&&l.visible&&(a=l.points[o]),new qi(a,l)},i.prototype.findData=function(e,t){return e.point&&(!t||t.point!==e.point||t.point===e.point)},i.prototype.getModuleName=function(){return"Tooltip3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(_n),wd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ld=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Pd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return wd(i,e),Ld([(0,t.Property)(!0)],i.prototype,"visible",void 0),Ld([(0,t.Property)(null)],i.prototype,"height",void 0),Ld([(0,t.Property)(null)],i.prototype,"width",void 0),Ld([(0,t.Complex)({x:0,y:0},n)],i.prototype,"location",void 0),Ld([(0,t.Property)("Auto")],i.prototype,"position",void 0),Ld([(0,t.Property)("Series")],i.prototype,"mode",void 0),Ld([(0,t.Property)(8)],i.prototype,"padding",void 0),Ld([(0,t.Property)(null)],i.prototype,"itemPadding",void 0),Ld([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Ld([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),Ld([(0,t.Property)(10)],i.prototype,"shapeHeight",void 0),Ld([(0,t.Property)(10)],i.prototype,"shapeWidth",void 0),Ld([(0,t.Complex)({},u)],i.prototype,"border",void 0),Ld([(0,t.Complex)({left:0,right:0,top:0,bottom:0},m)],i.prototype,"margin",void 0),Ld([(0,t.Complex)({left:0,right:0,top:0,bottom:0},S)],i.prototype,"containerPadding",void 0),Ld([(0,t.Property)(8)],i.prototype,"shapePadding",void 0),Ld([(0,t.Property)("transparent")],i.prototype,"background",void 0),Ld([(0,t.Property)(1)],i.prototype,"opacity",void 0),Ld([(0,t.Property)(!0)],i.prototype,"toggleVisibility",void 0),Ld([(0,t.Property)(!1)],i.prototype,"enableHighlight",void 0),Ld([(0,t.Property)(null)],i.prototype,"description",void 0),Ld([(0,t.Property)(3)],i.prototype,"tabIndex",void 0),Ld([(0,t.Property)(null)],i.prototype,"title",void 0),Ld([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"titleStyle",void 0),Ld([(0,t.Property)("Top")],i.prototype,"titlePosition",void 0),Ld([(0,t.Property)("Normal")],i.prototype,"textWrap",void 0),Ld([(0,t.Property)("Ellipsis")],i.prototype,"textOverflow",void 0),Ld([(0,t.Property)(100)],i.prototype,"maximumTitleWidth",void 0),Ld([(0,t.Property)(null)],i.prototype,"maximumLabelWidth",void 0),Ld([(0,t.Property)(!0)],i.prototype,"enablePages",void 0),Ld([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),Ld([(0,t.Property)(!1)],i.prototype,"reverse",void 0),i}(t.ChildProperty),Ad=function(e){function i(t){var i=e.call(this,t)||this;return i.library=i,i.addEventListener(),i}return wd(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on("click",this.click,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},i.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&(this.move(e),this.chart.highlight3DModule&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)))for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=void 0,r=0,n=t;r<n.length;r++){var a=n[r];if(i.indexOf(a)>-1){o=parseInt(i.split(a)[1],10),this.chart.highlight3DModule.legendSelection(this.chart,o,e.target,e.type);break}}},i.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.getLegendOptions=function(e,t){var i,o;this.legendCollections=[],this.isRtlEnable=t.enableRtl,this.isReverse=!this.isRtlEnable&&t.legendSettings.reverse,e.length>1&&(this.legend.mode="Series");for(var r=0,n=e;r<n.length;r++){var a=n[r];if("Series"===this.legend.mode)i=a.type,o=a.pointColorMapping&&a.points.length>0&&a.points[0].interior?a.points[0].interior:a.interior,this.legendCollections.push(new Eo(a.name,o,a.legendShape,a.visible,i,a.legendImageUrl?a.legendImageUrl:"","None",!1,null,null));else if("Point"===this.legend.mode)for(var l=function(e){i=a.type,o=e.interior?e.interior:a.interior,0===s.legendCollections.filter(function(t){return t.text===e.x.toString()}).length&&s.legendCollections.push(new Eo(e.x.toString(),o,a.legendShape,e.visible,i,"","None",!1))},s=this,h=0,c=a.points;h<c.length;h++){l(c[h])}}this.isReverse&&this.legendCollections.reverse()},i.prototype.get3DLegendBounds=function(e,t,i){this.calculateLegendTitle(i,t),this.isTitle=!!i.title,this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var o,r=i.padding,n=i.titlePosition,a=0,l=0,s=this.arrowWidth,h=this.arrowHeight,c=this.isVertical&&!i.enablePages?h:0,d=this.isTitle&&"Top"===n?this.legendTitleSize.height+this.fivePixel:0;d=this.isTitle&&this.isVertical&&"Top"!==n?this.legendTitleSize.height+this.fivePixel:d,this.isVertical?l=i.width?0:e.width/100*5:a=i.height?0:e.height/100*5,t.height+=a,t.width+=l;var p,u=i.shapeWidth,g=i.shapePadding,m=0,y=0,f=0,v=0,b=0,x=0,S=0,C=!1;this.maxItemHeight=Math.max((0,R.measureText)("MeasureText",i.textStyle,this.chart.themeStyle.legendLabelFont).height,i.shapeHeight);for(var F=0;F<this.legendCollections.length;F++)if(o=this.legendCollections[F],ve.test(o.text)&&(o.text=Oi(o.text,ve)),be.test(o.text)&&(o.text=Oi(o.text,be)),p={fill:o.fill,text:o.text,shape:o.shape,cancel:!1},this.chart.trigger(B,p),o.render=!p.cancel,o.text=p.text,o.fill=p.fill,o.shape=p.shape,o.markerShape="None",o.textSize=(0,R.measureText)(o.text,i.textStyle,this.chart.themeStyle.legendLabelFont),u=o.text?i.shapeWidth:0,g=o.text?i.shapePadding:0,o.render&&o.text){C=!0,y+=f=u+g+(i.maximumLabelWidth?i.maximumLabelWidth:o.textSize.width)+(this.isVertical||0===F?r:this.itemPadding),i.enablePages||this.isVertical||(S=this.isTitle&&"Top"!==n?this.legendTitleSize.width+this.fivePixel:0,S+=s),this.getLegendHeight(o,i,t,y,this.maxItemHeight,r),(t.width<r+y+S||this.isVertical)&&(m=Math.max(m,y+r+S-(this.isVertical?0:f)),0===x&&f!==y&&(x=1),y=this.isVertical?0:f,x++,b=0,v=c);var w=x>0?x-1:0;this.rowHeights[w]=Math.max(this.rowHeights[w]?this.rowHeights[w]:0,o.textSize.height),this.columnHeights[b]=(this.columnHeights[b]?this.columnHeights[b]:0)+o.textSize.height+(this.isVertical?0===F?r:this.itemPadding:r),b++}v=Math.max.apply(null,this.columnHeights)+r+d,v=Math.max(v,this.maxItemHeight+r+r+d),this.isPaging=t.height<v,this.isPaging&&!i.enablePages&&(this.isVertical?v+=v:v=this.maxItemHeight+r+r+("Top"===n?d:0)),this.totalPages=x,this.isPaging||this.isVertical||(y+=this.isTitle&&"Top"!==n?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0),C?this.setBounds(Math.max(y+r,m),v,i,t):this.setBounds(0,0,i,t)},i.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=_i(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,null,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},i.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),h=o.location.x+(this.isRtlEnable?-s:s);this.isWithinBounds(h,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r)||this.isVertical?(e.location.x=t.x,n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+(this.isVertical?o.textSize.height:this.rowHeights[this.chartRowCount-2])+(this.isVertical?this.itemPadding:l)):(e.location.x=n===a?o.location.x:h,e.location.y=o.location.y);var c=this.isRtlEnable?e.location.x-i+this.itemPadding+this.legend.shapeWidth/2-this.legendBounds.x:this.legendBounds.x+this.legendBounds.width-(e.location.x+i-this.itemPadding-this.legend.shapeWidth/2);this.isVertical||!this.isPaging||this.legend.enablePages||(c=this.legendBounds.width-e.location.x-this.fivePixel),c=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,c):c,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=Fi(+c.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},i.prototype.isWithinBounds=function(e,t,i){return this.isRtlEnable?e-t<i.x-this.legend.shapeWidth/2:e+t>i.x+i.width+this.legend.shapeWidth/2},i.prototype.LegendClick=function(e,t){var i=this.chart,o="Series"===i.legendSettings.mode?e:0,r=this.isReverse?this.legendCollections.length-1-e:e,n=i.visibleSeries[o],a=this.legendCollections[r],l="isProtectedOnChange";if("Series"===i.legendSettings.mode){var s={legendText:a.text,legendShape:a.shape,series:n,cancel:!1};this.chart.trigger(I,s),n.legendShape=s.legendShape,s.cancel||(null!==n.fill&&(i.visibleSeries[e].interior=n.fill),i.legendSettings.toggleVisibility?(n.chart[l]=!0,this.changeSeriesVisiblity(n,n.visible),a.visible=n.visible,this.refreshLegendToggle(i,n)):i.highlight3DModule?i.highlight3DModule.legendSelection(i,e,t.target,t.type):i.selection3DModule&&i.selection3DModule.legendSelection(i,e,t.target,t.type),n.chart[l]=!1)}else if("Point"===i.legendSettings.mode){var h=n.points[e];s={legendText:a.text,legendShape:a.shape,series:n,cancel:!1};if(this.chart.trigger(I,s),i.legendSettings.toggleVisibility&&!s.cancel)h.visible=!h.visible,this.legendCollections[e].visible=h.visible,this.refreshLegendToggle(i,n)}},i.prototype.refreshLegendToggle=function(e,i){var o=[];if(e.selection3DModule&&(o=(0,t.extend)([],e.selection3DModule.selectedDataIndexes,null,!0)),e.svgObject.childNodes.length>0){for(;e.svgObject.lastChild;)e.svgObject.removeChild(e.svgObject.lastChild);(0,t.remove)(e.svgObject)}e.animateSeries=!1,Je((0,R.getElement)(e.element.id+"_Secondary_Element").querySelectorAll(".ejSVGTooltip")[0]),this.redrawSeriesElements(i,e),e.removeSvg(),e.refreshAxis(),i.refreshAxisLabel(),this.refreshSeries(e.visibleSeries),e.polygons=[],e.refreshBound(),e.trigger("loaded",{chart:e}),o.length>0&&(e.selection3DModule.selectedDataIndexes=o,e.selection3DModule.redrawSelection(e,e.selectionMode)),(e.highlight3DModule&&"None"!==e.highlightMode||e.legendSettings.enableHighlight)&&e.highlight3DModule.redrawSelection(e,e.highlightMode),e.redraw=!1},i.prototype.changeSeriesVisiblity=function(e,t){e.visible=!t,this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),this.isSecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible}))},i.prototype.isSecondaryAxis=function(e){return this.chart.axes.indexOf(e)>-1},i.prototype.redrawSeriesElements=function(e,t){if(!t.redraw)return null;Je(t.element.id+"_Series_"+(void 0===e.index?e.category:e.index)+"_DataLabelCollections")},i.prototype.refreshSeries=function(e){for(var t=0,i=e;t<i.length;t++){i[t].position=void 0}},i.prototype.click=function(e){if(this.chart.legendSettings.visible){for(var t,i=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,o=0,r=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_"];o<r.length;o++){var n=r[o];if(i.indexOf(n)>-1){t=parseInt(i.split(n)[1],10),this.LegendClick(t,e);break}}i.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):i.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1)}},i.prototype.getModuleName=function(){return"Legend3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(To),Md=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Dd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},kd=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.previousTargetId="",o.currentPointIndex=0,o.currentSeriesIndex=0,o.currentLegendIndex=0,o.animated=!1,o.isPointMouseDown=!1,o.visible=0,o.clickCount=0,o.maxPointCount=0,o.singleClickTimer=0,o.isRtlEnabled=!1,o.scaleX=1,o.scaleY=1,o.chartId=57723,o.isLegendClicked=!1,o.rotateActivate=!1,o.isRemove=!1,o.polygons=[],o}return Md(i,e),i.prototype.isIdHasSpecialCharacter=function(e){var t=/^[A-Za-z ]+$/,i=/^[0-9 ]+$/,o="";if(t.test(e))return e;var r=0;i.test(e[0])&&(o+="\\3"+e[0],r=1);for(var n=r;n<e.length;n++)t.test(e[n])||-1!==e.indexOf("-")||-1!==e.indexOf("_")||-1!==e.indexOf("\\")||i.test(e[n])?o+=e[n]:o+="\\"+e[n];return o},i.prototype.preRender=function(){this.element.id=this.isIdHasSpecialCharacter(this.element.id),this.allowServerDataBinding=!1,this.unWireEvents(),this.initPrivateVariable(),this.setCulture(),this.wireEvents(),this.element.setAttribute("dir",this.enableRtl?"rtl":"")},i.prototype.initPrivateVariable=function(){if(this.delayRedraw=!1,this.animateSeries=!0,this.horizontalAxes=[],this.verticalAxes=[],this.polygons=[],this.vector=new Vc(0,0,0),this.wallRender=new ed,this.matrixObj=new Hc,this.bspTreeObj=new Uc,this.polygon=new Gc,this.graphics=new jc,this.transform3D=new Wc,this.svg3DRenderer=new Xc,this.axisRender=new td,this.chart3DRender=new Bc,this.chartAxisLayoutPanel=new _c(this),this.refreshAxis(),this.refreshDefinition(this.rows),this.refreshDefinition(this.columns),this.tooltip3DModule&&(this.tooltip3DModule.previousPoints=[]),this.element.setAttribute("role","region"),this.element.setAttribute("tabindex","0"),this.element.style.outline="none",this.element.setAttribute("aria-label",this.description||this.title+". Syncfusion interactive chart."),this.element.classList.contains("e-chart-focused")||this.element.setAttribute("class",this.element.getAttribute("class")+" e-chart-focused"),""===this.element.id){var e=document.getElementsByClassName("e-chart").length;this.element.id="chart_"+this.chartId+"_"+e}this.svgId=this.element.id+"_svg"},i.prototype.setCulture=function(){this.intl=new t.Internationalization,this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},i.prototype.render=function(){var e=this;this.svgRenderer=new R.SvgRenderer(this.element.id);var t={chart:this,theme:this.theme,cancel:!1};this.trigger(O,t,function(){t.cancel||e.cartesianChartRendering()})},i.prototype.cartesianChartRendering=function(){this.setTheme(),this.createChartSvg(),this.calculateVisibleSeries(),this.calculateVisibleAxis(),this.processData(),this.renderComplete(),this.allowServerDataBinding=!0},i.prototype.createChartSvg=function(){this.removeSvg(),Ri(this)},i.prototype.removeSvg=function(){if(this.redraw)return null;(0,R.removeElement)(this.element.id+"_Secondary_Element"),this.isReact&&this.clearTemplate();if(this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&(0,t.remove)(this.svgObject)}},i.prototype.processData=function(e){void 0===e&&(e=!0),this.visibleSeriesCount=0;for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];o.visible||this.legendSettings.visible?this.initializeDataModule(o):this.visibleSeriesCount++}!e||this.visibleSeries.length&&this.visibleSeriesCount!==this.visibleSeries.length||(this.refreshBound(),this.trigger("loaded",{chart:this}))},i.prototype.initializeDataModule=function(e){var t;e.xData=[],e.yData=[];t=this.isAngular?Object.keys(e.dataSource).length?e.dataSource:this.dataSource:e.dataSource||this.dataSource,e.dataModule=new Fo(t,e.query),e.points=[],e.refreshDataManager(this)},i.prototype.animate=function(e){this.redraw=!0,this.animated=!0,this.duration=e||1e3},i.prototype.refreshBound=function(){this.legend3DModule&&this.legendSettings.visible&&this.legend3DModule.getLegendOptions(this.visibleSeries,this),this.tooltip.enable&&this.tooltip3DModule&&(this.tooltip3DModule.previousPoints=[]),this.calculateStackValues(),this.calculateBounds(),this.renderElements(),(0,R.removeElement)("chartmeasuretext"),this.removeSelection()},i.prototype.removeSelection=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];if(i.visible)for(var o=0,r=i.points;o<r.length;o++){r[o].isSelect=!1}}},i.prototype.calculateStackValues=function(){for(var e,t=!1,i=0,o=this.visibleSeries.length;i<o;i++)(e=this.visibleSeries[i]).position=e.rectCount=void 0,-1===e.type.indexOf("Stacking")||t||(e.calculateStackedValue(e.type.indexOf("100")>-1,this),t=!0)},i.prototype.calculateBounds=function(){var e=this.margin,t=0,i=0,o=0,r="Top"===this.titleStyle.position||"Bottom"===this.titleStyle.position?15:5,n=e.left+this.border.width,a=this.availableSize.width-n-e.right-this.border.width,l=0,s=e.top+this.border.width,h=this.availableSize.height-s-this.border.width-e.bottom;if(this.titleCollection=[],this.subTitleCollection=[],this.title){if(this.titleCollection=Ti(this.title,this.titleStyle,"Left"===this.titleStyle.position||"Right"===this.titleStyle.position?h:a,this.enableRtl,this.themeStyle.chartTitleFont),t=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length+r,this.subTitle){for(var c=0,d=0,p=this.titleCollection;d<p.length;d++){var u=p[d];c=(o=(0,R.measureText)(u,this.titleStyle,this.themeStyle.chartSubTitleFont).width)>c?o:c}this.subTitleCollection=Ti(this.subTitle,this.subTitleStyle,c,this.enableRtl,this.themeStyle.chartSubTitleFont),i=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length+r}}else"Top"!==this.legendSettings.position&&this.border.width&&(l=10);s=e.top+l+this.border.width,h=this.availableSize.height-s-this.border.width-e.bottom;var g=i+t+this.titleStyle.border.width+this.subTitleStyle.border.width;switch(this.titleStyle.position){case"Top":s+=g,h-=g;break;case"Bottom":h-=g;break;case"Left":n+=g,a-=g;break;case"Right":n-=this.titleStyle.border.width+this.subTitleStyle.border.width,a-=g}this.initialClipRect=new R.Rect(n,s,a,h),this.legend3DModule&&this.legendSettings.visible&&this.legend3DModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null),this.chartAxisLayoutPanel.measureAxis(this.initialClipRect)},i.prototype.renderElements=function(){this.renderBorder(),this.renderTitle(),this.createSeriesElements(),this.render3DChart(),this.renderLegend(),this.performSelection(),this.setSecondaryElementPosition(),this.doAnimation()},i.prototype.animateRect=function(e,i,o,r,n,a){var l,s,h,c=i.animation,d=i.chart.animated?i.chart.duration:c.duration,p=Et("Linear"),u=e.getAttribute("height")?+e.getAttribute("height"):0,g=e.getAttribute("width")?+e.getAttribute("width"):0,m=o.yValue<0,y=+e.getAttribute("x"),f=+e.getAttribute("y");i.chart.requireInvertedAxis?i.type.indexOf("Stacking")>-1?(l=y,s=f):(s=m?f:f+u,l=m!==i.yAxis.isAxisInverse?y+g:y):(s=m!==i.yAxis.isAxisInverse?f:f+u,l=m?y:y+g),(0,t.isNullOrUndefined)(e)||(e.style.visibility="hidden",r&&(r.style.visibility="hidden"),n&&(n.style.visibility="hidden"),a&&(a.style.visibility="hidden"),new t.Animation({}).animate(e,{duration:0===d&&"Enable"===t.animationMode?1e3:d,delay:c.delay,progress:function(t){t.timeStamp>=t.delay&&(e.style.visibility="visible",i.chart.requireInvertedAxis?(g=g||1,h=p(t.timeStamp-t.delay,0,g,t.duration),e.setAttribute("transform","translate("+l+" "+s+") scale("+h/g+", 1) translate("+-l+" "+-s+")")):(u=u||1,h=p(t.timeStamp-t.delay,0,u,t.duration),e.setAttribute("transform","translate("+l+" "+s+") scale(1,"+h/u+") translate("+-l+" "+-s+")")))},end:function(){e.setAttribute("transform","translate(0,0)"),r&&(r.style.visibility="visible"),n&&(n.style.visibility="visible"),a&&(a.style.visibility="visible"),i.chart.trigger("animationComplete",{series:i})}}))},i.prototype.doAnimation=function(){for(var e=this,t=function(t){var o=i.visibleSeries[t];if(o.visible&&o.animation.enable&&i.animateSeries&&!i.rotateActivate){var r=void 0,n=void 0,a=void 0,l=new Ni(i.element.id+"_ChartSeriesClipRect_"+t,"transparent",{width:1,color:"Gray"},1,{x:0,y:0,width:i.availableSize.width,height:i.availableSize.height}),s=Nt(i.redraw,l,i.svgRenderer);ni(!1,i.chart3D,s.children[0],i.redraw);for(var h=0;o.visiblePoints&&h<o.visiblePoints.length;h++){var c=o.visiblePoints[h];document.querySelectorAll('[id*="region-series-'+t+'"]').forEach(function(i){i.setAttribute("clip-path","url(#"+e.element.id+"_ChartSeriesClipRect_"+t+")")}),o.dataLabel.visible&&(r=qt(i.element.id+"-svg-series-"+o.index+"-point-"+h+"-data-label"),n=qt(i.element.id+"-svg-data-label-series-"+o.index+"-point-"+h),a=qt(i.element.id+"-series-"+o.index+"-data-label-"+h)),i.animateRect(document.getElementById(i.element.id+"_ChartSeriesClipRect_"+t).children[0],o,c,r,n,a)}}},i=this,o=0;o<this.visibleSeries.length;o++)t(o)},i.prototype.performSelection=function(){var e=[];this.selection3DModule&&(e=(0,t.extend)([],this.selection3DModule.selectedDataIndexes,null,!0),this.selection3DModule.invokeSelection(this)),this.highlight3DModule&&this.highlight3DModule.invokeHighlight(this),(!this.highlight3DModule||this.legendSettings.enableHighlight&&"None"===this.highlightMode)&&this.tooltip3DModule&&this.tooltip3DModule.seriesStyles(),e.length>0&&(this.selection3DModule.selectedDataIndexes=e,this.selection3DModule.redrawSelection(this,this.selectionMode))},i.prototype.renderLegend=function(){if(this.legend3DModule&&this.legend3DModule.legendCollections.length&&this.legendSettings.visible){this.legend3DModule.calTotalPage=!0;var e=this.legend3DModule.legendBounds;this.legend3DModule.renderLegend(this,this.legendSettings,e)}this.redraw||this.element.appendChild(this.svgObject)},i.prototype.setSecondaryElementPosition=function(){var e=qt(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=qt(this.svgId).getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},i.prototype.initializeModuleElements=function(){this.dataLabelCollections=[];var e=this.element.id;this.series.length&&(this.seriesElements=this.svgRenderer.createGroup({id:e+"SeriesCollection"})),this.dataLabelElements=this.renderer.createGroup({id:e+"DataLabelCollection"})},i.prototype.createSeriesElements=function(){this.initializeModuleElements();var e=this.element.id,t=Pi(this.redraw,e+"_Secondary_Element")||this.createElement("div");t.id=e+"_Secondary_Element",t.style.cssText="position: relative",ni(!1,this.element,t,this.redraw),this.tooltip.enable&&ni(!1,this.svgObject,this.renderer.createGroup({id:e+"_UserInteraction",style:"pointer-events:none;"}),this.redraw)},i.prototype.renderTitle=function(){var e,t=this.margin;if(this.title){var i=to(this.titleStyle.textAlignment,this.enableRtl),o=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont);e=new R.Rect(t.left,0,this.availableSize.width-t.left-t.right,0);var r=this.titleStyle.border.width,n=this.margin.top+3*o.height/4,a=Ei(e,this.titleStyle||this.themeStyle.chartTitleFont)+r,l=void 0,s=this.titleStyle.textAlignment,h=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont);switch(this.titleStyle.position){case"Top":n+=.5*r,a+="start"===i?.5*r+this.border.width:"end"===i?2*-r-this.border.width:0;break;case"Bottom":a+="start"===i?.5*r+this.border.width:"end"===i?2*-r-this.border.width:0,n=this.availableSize.height-this.margin.bottom-h.height-o.height/2-.5*r-.5*this.subTitleStyle.border.width;break;case"Left":a=this.margin.left+3*o.height/4+.5*r,n="Near"===s?t.bottom+.5*r+this.border.width:"Far"===s?this.availableSize.height-t.bottom-.5*r-this.border.width:this.availableSize.height/2,i="Near"===s?"end":"Far"===s?"start":"middle",i=this.enableRtl?"end"===i?"start":"start"===i?"end":i:i,l="rotate(-90,"+a+","+n+")";break;case"Right":a=this.availableSize.width-this.margin.right-3*o.height/4-.5*r,n="Near"===s?t.bottom+.5*r+this.border.width:"Far"===s?this.availableSize.height-t.bottom-.5*r-this.border.width:this.availableSize.height/2,i="Near"===s?"start":"Far"===s?"end":"middle",i=this.enableRtl?"end"===i?"start":"start"===i?"end":i:i,l="rotate(90,"+a+","+n+")";break;case"Custom":a=this.titleStyle.x,n=this.titleStyle.y,i="middle"}var c={id:this.element.id+"-chart-title-border",x:a-("middle"===i?o.width/2+5:"end"===i?o.width+5:5),y:n-o.height+o.height/4,rx:this.titleStyle.border.cornerRadius,ry:this.titleStyle.border.cornerRadius,width:o.width+10,height:o.height*this.titleCollection.length,fill:this.titleStyle.background,"stroke-width":r,stroke:this.titleStyle.border.color,transform:l||""},d=Pi(this.redraw,this.element.id+"-chart-title-border",c,this.renderer)||this.renderer.drawRectangle(c);ni(!1,this.svgObject,d,this.redraw);var p=new R.TextOption(this.element.id+"-chart-title",a,n,i,this.titleCollection,l,"auto"),u=Pi(this.redraw,this.element.id+"-chart-title",p,this.renderer)||Di(this.renderer,p,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,null,null,null,null,null,null,0,null,!1,null,this.themeStyle.chartTitleFont);u&&(u.setAttribute("tabindex","0"),u.style.outline="none",u.setAttribute("class","e-chart-focused")),this.subTitle&&this.renderSubTitle(p)}},i.prototype.renderSubTitle=function(e){for(var t=0,i=0,o=10,r=this.titleStyle.textAlignment,n=0,a=this.titleCollection;n<a.length;n++){var l=a[n];t=(i=(0,R.measureText)(l,this.titleStyle,this.themeStyle.chartTitleFont).width)>t?i:t}var s=(0,R.measureText)(this.subTitleCollection.reduce(function(e,t){return e.length>t.length?e:t}),this.subTitleStyle,this.themeStyle.chartSubTitleFont),h=to(this.subTitleStyle.textAlignment,this.enableRtl),c=new R.Rect("Center"===r?e.x-.5*t:"Far"===r?e.x-t:e.x,0,t,0);"Left"===this.titleStyle.position&&(c.x="Center"===r?e.x-.5*t:"Far"===r?this.margin.left+3*s.height/4:e.x-t);var d=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont),p=e.y*e.text.length+s.height+5+this.titleStyle.border.width+.5*this.subTitleStyle.border.width;"Bottom"===this.titleStyle.position&&(p=e.y*e.text.length+5+d.height/2+s.height/2);var u={id:this.element.id+"-chart-sub-title-border",x:Ei(c,this.subTitleStyle)-("middle"===h?s.width/2+5:"end"===h?s.width+5:5),y:p-s.height+s.height/4,rx:this.subTitleStyle.border.cornerRadius,ry:this.subTitleStyle.border.cornerRadius,width:s.width+o,height:s.height*this.subTitleCollection.length,fill:this.subTitleStyle.background,"stroke-width":this.subTitleStyle.border.width,stroke:this.subTitleStyle.border.color,transform:e.transform},g=Pi(this.redraw,this.element.id+"-chart-sub-title-border",u,this.renderer)||this.renderer.drawRectangle(u);ni(!1,this.svgObject,g,this.redraw);var m=new R.TextOption(this.element.id+"-chart-sub-title",Ei(c,this.subTitleStyle),p,to(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,e.transform,"auto");Pi(this.redraw,this.element.id+"-chart-sub-title",m,this.renderer)||Di(this.renderer,m,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,null,null,null,null,null,null,0,null,!1,null,this.themeStyle.chartSubTitleFont)},i.prototype.renderBorder=function(){var e=this.border.width,t=this.backgroundImage,i=t?"transparent":this.background||this.themeStyle.background,o=new Ni(this.element.id+"-chart-border",i,this.border,1,new R.Rect(.5*e+0,.5*e+0,this.availableSize.width-e,this.availableSize.height-e),0,0,"",this.border.dashArray);if(this.htmlObject=Pi(this.redraw,this.element.id+"-chart-border",o,this.renderer)||this.renderer.drawRectangle(o),this.htmlObject.setAttribute("aria-hidden","true"),ni(!1,this.svgObject,this.htmlObject,this.redraw),t){var r=new Vi(this.availableSize.height-e,this.availableSize.width-e,t,0,0,this.element.id+"-chart-background","visible","none");this.htmlObject=Pi(this.redraw,this.element.id+"-chart-background",r,this.renderer)||this.renderer.drawImage(r),ni(!1,this.svgObject,this.htmlObject,this.redraw)}},i.prototype.requiredModules=function(){var e,t=this,i=[],o=this.series,r=!1;return this.tooltip.enable&&i.push({member:"Tooltip3D",args:[this]}),o.map(function(n){t.isLegend=t.legendSettings.visible&&(""!==n.name||!!t.isLegend),e=-1!==n.type.indexOf("100")?n.type.replace("100","")+"Series3D":n.type+"Series3D",r=n.dataLabel.visible||r,i.some(function(t){return t.member===e})||i.push({member:e,args:[t,o]})}),r&&i.push({member:"DataLabel3D",args:[this,o]}),i=this.findAxisModule(i),this.isLegend&&i.push({member:"Legend3D",args:[this]}),this.enableExport&&i.push({member:"Export3D",args:[this]}),"None"!==this.selectionMode&&i.push({member:"Selection3D",args:[this]}),("None"!==this.highlightMode||this.legendSettings.enableHighlight)&&i.push({member:"Highlight3D",args:[this]}),i},i.prototype.findAxisModule=function(e){var t=[];t.push(this.primaryXAxis),t.push(this.primaryYAxis);for(var i=!1,o=!1,r=!1,n=!1,a=0,l=t=t.concat(this.axes);a<l.length;a++){var s=l[a];i="DateTime"===s.valueType||i,o="Category"===s.valueType||o,r="Logarithmic"===s.valueType||r,n="DateTimeCategory"===s.valueType||n}return i&&e.push({member:"DateTime3D",args:[this]}),o&&e.push({member:"Category3D",args:[this]}),r&&e.push({member:"Logarithmic3D",args:[this]}),n&&e.push({member:"DateTimeCategory3D",args:[this]}),e},i.prototype.setTheme=function(){this.themeStyle=Ic(this.theme)},i.prototype.setNavigationStyle=function(e){var t=document.getElementById(e);t&&t.style.setProperty("outline","1.5px solid "+this.themeStyle.tabColor)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("[id*=_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_ChartTitle],g[id*=_chart_legend],  text[id*=_ChartSubTitle], div[id*=_Annotation]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&e.style.setProperty("outline","none")})},i.prototype.render3DChart=function(){this.chart3D=this.svgRenderer.createGroup({id:this.element.id+"-svg-chart-3d"}),this.chart3D.setAttribute("role","region"),this.chart3D.setAttribute("aria-hidden","false"),this.draw3DAxis(),this.wallRender.update3DWall(this),this.renderSeries(),ni(!1,this.svgObject,this.chart3D,this.redraw);var e=new R.Size(this.availableSize.width,this.availableSize.height);this.graphics.prepareView(this.perspectiveAngle,this.depth,this.rotation,this.tilt,e,this),this.graphics.view(this.svgObject,this)},i.prototype.draw3DAxis=function(){for(var e=0;e<this.axisCollections.length;e++)this.axisRender.drawAxes(e,this.axisCollections[e],this)},i.prototype.renderSeries=function(){for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.visible&&(this.visible++,i.renderSeries(this))}this.visible=0},i.prototype.initAxis=function(e,t,i){e.xAxisName===t.name||null==e.xAxisName&&"primaryXAxis"===t.name?(t.orientation=this.requireInvertedAxis?"Vertical":"Horizontal",e.xAxis=t,i&&t.series.push(e)):(e.yAxisName===t.name||null==e.yAxisName&&"primaryYAxis"===t.name)&&(t.orientation=this.requireInvertedAxis?"Horizontal":"Vertical",e.yAxis=t,i&&t.series.push(e))},i.prototype.calculateVisibleAxis=function(){var e,t=[this.primaryXAxis,this.primaryYAxis];t=t.concat(this.axes),this.axisCollections=[];for(var i=0,o=t.length;i<o;i++){(e=t[i]).series=[],e.labels=[],e.indexLabels={},e.orientation=0===i?this.requireInvertedAxis?"Vertical":"Horizontal":1===i?this.requireInvertedAxis?"Horizontal":"Vertical":e.orientation;for(var r=0,n=this.visibleSeries;r<n.length;r++){var a=n[r];this.initAxis(a,e,!0)}null!=e.orientation&&this.axisCollections.push(e)}this.rows.length>0&&this.columns.length>0&&this.chartAxisLayoutPanel.measure()},i.prototype.unWireEvents=function(){var e=t.Browser.touchStartEvent,i=t.Browser.touchMoveEvent,o=t.Browser.touchEndEvent,r=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,e,this.chartOnMouseDown),t.EventHandler.remove(this.element,i,this.mouseMove),t.EventHandler.remove(this.element,o,this.mouseEnd),t.EventHandler.remove(this.element,"click",this.chartOnMouseClick),t.EventHandler.remove(this.element,r,this.mouseLeave),t.EventHandler.remove(this.element,"keydown",this.chartKeyDown),t.EventHandler.remove(document.body,"keydown",this.documentKeyHandler),t.EventHandler.remove(this.element,"keyup",this.chartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.touchObject&&(this.touchObject.destroy(),this.touchObject=null)},i.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer?"pointerleave":"mouseleave";t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.chartOnMouseDown,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMove,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEnd,this),t.EventHandler.add(this.element,"click",this.chartOnMouseClick,this),t.EventHandler.add(this.element,e,this.mouseLeave,this),t.EventHandler.add(this.element,"keydown",this.chartKeyDown,this),t.EventHandler.add(document.body,"keydown",this.documentKeyHandler,this),t.EventHandler.add(this.element,"keyup",this.chartKeyUp,this),this.resizeBound=this.chartResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeBound),this.longPressBound=this.longPress.bind(this),this.touchObject=new t.Touch(this.element,{tapHold:this.longPressBound,tapHoldThreshold:500}),this.setStyle(this.element)}},i.prototype.longPress=function(e){return this.mouseX=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientX:0,this.mouseY=e&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].clientY:0,this.startMove=!0,this.setMouseXY(this.mouseX,this.mouseY),this.notify("tapHold",e),!1},i.prototype.chartOnMouseClick=function(e){var t=this,i=e.target,o=this;this.clickCount++;var r=400;1===this.clickCount?this.singleClickTimer=+setTimeout(function(){o.clickCount=0,o.trigger("chart3DMouseClick",{target:i.id,x:o.mouseX,y:o.mouseY})},r):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.clickCount=0);return r=(this.isAngular,0),1===this.clickCount&&this.pointClick&&(this.singleClickTimer=+setTimeout(function(){t.clickCount=0,t.triggerPointEvent($,e)},r)),this.removeNavigationStyle(),this.notify("click",e),!1},i.prototype.export=function(e,t){this.export3DModule&&(this.export3DModule.export(e,t),this.afterExport&&this.export3DModule.getDataUrl(this))},i.prototype.chartResize=function(){var e=this;this.animateSeries=!1;var t={chart:this,currentSize:new R.Size(0,0),previousSize:new R.Size(this.availableSize.width,this.availableSize.height)},i={cancel:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger(le,i),i.cancel||(this.resizeTo=+setTimeout(function(){e.isDestroyed?clearTimeout(e.resizeTo):(e.createChartSvg(),t.currentSize=e.availableSize,e.trigger(ae,t),e.polygons=[],e.refreshAxis(),e.refreshBound(),e.trigger("loaded",{chart:e}))},500)),!1},i.prototype.triggerPointEvent=function(e,i){var o,r,n,a=null,l=null,s=i.target;if(s){var h=s.nodeName;("path"===h||"shape"===h)&&s.id.indexOf("-region-")>1&&(o=s.id.match(/(\d+)/g),r=parseInt(o[o.length-1].toString(),10),n=parseInt(o[o.length-2].toString(),10)),(0,t.isNullOrUndefined)(n)||(a=this.visibleSeries[n]),a&&a.visible&&(l=a.points[r])}a&&l&&this.trigger(e,{series:a,point:l,seriesIndex:n,pointIndex:r,x:this.mouseX,y:this.mouseY})},i.prototype.chartOnMouseDown=function(e){var i,o,r,n=this.element.getBoundingClientRect(),a=e.target;this.trigger("chart3DMouseDown",{target:a.id,x:this.mouseX,y:this.mouseY}),"touchstart"===e.type?(this.isTouch=!0,i=(r=e).changedTouches[0].clientX,o=r.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType,i=e.clientX,o=e.clientY);var l=qt(this.svgId).getBoundingClientRect();return this.mouseDownX=this.previousMouseMoveX=i-n.left-Math.max(l.left-n.left,0),this.mouseDownY=this.previousMouseMoveY=o-n.top-Math.max(l.top-n.top,0),this.enableRotation&&(this.isTouch&&this.tooltip3DModule&&this.tooltip3DModule.svgTooltip&&this.tooltip3DModule.svgTooltip.fadeOut(),this.rotateActivate=!0,this.previousCoords={x:this.mouseDownX,y:this.mouseDownY}),this.notify(t.Browser.touchStartEvent,e),!1},i.prototype.mouseMove=function(e){var t,i,o;return"touchmove"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType||this.isTouch,t=e.clientX,i=e.clientY),qt(this.svgId)&&(this.setMouseXY(t,i),this.chartOnMouseMove(e)),!1},i.prototype.mouseLeave=function(e){var t,i,o;return"touchleave"===e.type?(this.isTouch=!0,t=(o=e).changedTouches[0].clientX,i=o.changedTouches[0].clientY):(this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY),this.setMouseXY(t,i),this.chartOnMouseLeave(e),!1},i.prototype.mouseEnd=function(e){var t,i,o;return"touchend"===e.type?(i=(o=e).changedTouches[0].clientX,this.isTouch=!0,t=o.changedTouches[0].clientY):(t=e.clientY,i=e.clientX,this.isTouch="touch"===e.pointerType||"2"===e.pointerType),this.setMouseXY(i,t),this.chartOnMouseUp(e),!1},i.prototype.chartOnMouseUp=function(e){var i=e.target;return this.trigger("chart3DMouseUp",{target:i.id,x:this.mouseX,y:this.mouseY}),this.isTouch&&(this.titleTooltip(e,this.mouseX,this.mouseY),this.axisTooltip(e,this.mouseX,this.mouseY,this.isTouch)),this.notify(t.Browser.touchEndEvent,e),this.rotateActivate=!1,this.delayRedraw=!1,!1},i.prototype.print=function(e){new zo(this).print(e)},i.prototype.chartOnMouseMove=function(e){var i=e.target;if(this.trigger("chart3DMouseMove",{target:i.id,x:this.mouseX,y:this.mouseY}),this.pointMove&&this.triggerPointEvent(J,e),this.isTouch||(this.titleTooltip(e,this.mouseX,this.mouseY),this.axisTooltip(e,this.mouseX,this.mouseY)),this.rotateActivate&&Pt(this.mouseX,this.mouseY,this.chartAxisLayoutPanel.seriesClipRect)){var o=this.previousCoords.x-this.mouseX,r=this.previousCoords.y-this.mouseY;if(o||r){if(this.tilt-=r,this.rotation+=o,this.isTouch)document.querySelectorAll('[id*="axis-label-"]').forEach(function(e){return e.remove()}),this.delayRedraw=!0;else{var n=document.getElementById(this.chart3D.id);n.innerHTML="",n.remove()}var a={width:this.availableSize.width,height:this.availableSize.height};this.graphics.view(this.svgObject,this,this.rotation,this.tilt,a,this.perspectiveAngle,this.depth),ni(!1,this.svgObject,this.chart3D,this.redraw),this.previousCoords.y=this.mouseY,this.previousCoords.x=this.mouseX,this.isRemove=!1}}return this.notify(t.Browser.touchMoveEvent,e),this.isTouch=!1,!1},i.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"-chart-title"||r===this.element.id+"-chart-sub-title"||r.indexOf("-axis-title")>-1||r.indexOf("_legend_title")>-1,a=0;(r.indexOf("-axis-title")>-1&&(a=parseInt(r.replace(this.element.id+"-svg","").replace("-axis-title","").split("-")[1],10)),n&&e.target.textContent.indexOf("...")>-1)?tt(r===this.element.id+"-chart-title"?this.title:r.indexOf("-axis-title")>-1?this.axisCollections[a].title:r.indexOf("-chart-sub-title")>-1?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"-EJ2-title-tooltip",qt(this.element.id+"_Secondary_Element"),o):(0,R.removeElement)(this.element.id+"-EJ2-title-tooltip")},i.prototype.setMouseXY=function(e,t){if(qt(this.svgId)){var i=qt(this.svgId).getBoundingClientRect(),o=this.element.getBoundingClientRect();this.mouseY=t-o.top-Math.max(i.top-o.top,0)/this.scaleX,this.mouseX=e-o.left-Math.max(i.left-o.left,0)/this.scaleY}},i.prototype.chartOnMouseLeave=function(e){var i=e.target,o=t.Browser.isPointer?"pointerleave":"mouseleave";return this.trigger("chart3DMouseLeave",{target:i.id,x:this.mouseX,y:this.mouseY}),(0,R.removeElement)(this.element.id+"-EJ2-axis-label-tooltip"),this.isPointMouseDown=!1,this.notify(o,e),this.rotateActivate=!1,this.delayRedraw=!1,!1},i.prototype.chartKeyDown=function(e){var t="";return"Tab"===e.code&&this.removeNavigationStyle(),"Space"===e.code&&e.preventDefault(),this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("-series")>-1||"Escape"===e.code)&&(t="ESC"),"None"!==this.highlightMode&&"Tab"===e.code&&this.previousTargetId.indexOf("_chart_legend_")>-1&&this.highlight3DModule&&this.highlight3DModule.removeLegendHighlightStyles(),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),!1},i.prototype.chartKeyUp=function(e){var t,i="",o=e.target.id,r=e.target,n=qt(this.element.id+"-chart-title"),a=qt(this.element.id+"-svg-0-region-series-0-point-0"),l=qt(this.element.id+"_chart_legend_translate_g"),s=qt(this.element.id+"_chart_legend_pageup");(this.removeNavigationStyle(),n&&n.setAttribute("class","e-chart-focused"),a)&&((h=a.getAttribute("class"))&&-1===h.indexOf("e-chart-focused")?h+=" e-chart-focused":h||(h="e-chart-focused"),a.setAttribute("class",h));if(l){var h,c=l.firstElementChild;(h=c.getAttribute("class"))&&-1===h.indexOf("e-chart-focused")?h+=" e-chart-focused":h||(h="e-chart-focused"),c.setAttribute("class",h)}if(s&&s.setAttribute("class","e-chart-focused"),"Tab"===e.code){if(""!==this.previousTargetId)if(this.previousTargetId.indexOf("-series-")>-1&&-1===o.indexOf("-series-")){var d=qt(this.element.id+"-svg-0-region-series-"+this.currentSeriesIndex+"-point-"+this.currentPointIndex);this.setTabIndex(d,a),this.currentPointIndex=0,this.currentSeriesIndex=0}else this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===o.indexOf("_chart_legend_page")&&-1===o.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,qt(this.element.id+"_chart_legend_pageup")):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===o.indexOf("_chart_legend_g_")&&(t=qt(this.element.id+"_chart_legend_translate_g"),this.setTabIndex(t.children[this.currentLegendIndex],t.firstElementChild));this.previousTargetId=o,o.indexOf("-series-")>-1&&(this.currentSeriesIndex=+o.split("-series-")[1].split("-point-")[0],r.removeAttribute("tabindex"),r.blur(),o=this.focusChild(r)),i="None"!==this.highlightMode||this.tooltip.enable?"Tab":""}else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),this.previousTargetId=o,o.indexOf("_chart_legend_page")>-1)"ArrowLeft"===e.code?(qt(this.element.id+"_chart_legend_pagedown").removeAttribute("tabindex"),this.focusChild(qt(this.element.id+"_chart_legend_pageup"))):"ArrowRight"===e.code&&(qt(this.element.id+"_chart_legend_pageup").removeAttribute("tabindex"),this.focusChild(qt(this.element.id+"_chart_legend_pagedown")));else if(o.indexOf("_chart_legend_")>-1){var p=r.parentElement.children;p[this.currentLegendIndex].removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,p.length);var u=p[this.currentLegendIndex];this.focusChild(u),this.removeNavigationStyle(),this.setNavigationStyle(u.id),o=u.children[1].id,i="None"!==this.highlightMode?"ArrowMove":""}else if(o.indexOf("-series-")>-1){var g=e.target;if(r.removeAttribute("tabindex"),r.blur(),"ArrowRight"===e.code||"ArrowLeft"===e.code?(this.currentSeriesIndex=this.currentSeriesIndex+("ArrowRight"===e.code?1:-1),this.currentSeriesIndex=this.getActualIndex(this.currentSeriesIndex,this.series.length)):this.currentPointIndex+="ArrowUp"===e.code?1:-1,o.indexOf("-point-")>-1){this.currentPointIndex=this.getActualIndex(this.currentPointIndex,this.visibleSeries[this.currentSeriesIndex].points.length?this.currentSeries.points.length:1);for(var m=document.querySelectorAll('[id*="svg-0-region-series-'+this.currentSeriesIndex+"-point-"+this.currentPointIndex+'"]'),y=0;y<m.length;y++)m[y].id.split("-point-")[1].split("-")[0]===this.currentPointIndex.toString()&&(g=m[y])}o=this.focusChild(g),this.removeNavigationStyle(),this.setNavigationStyle(g.id),i=this.tooltip.enable||"None"!==this.highlightMode?"ArrowMove":""}}else"Enter"!==e.code&&"Space"!==e.code||!(o.indexOf("_chart_legend_")>-1||o.indexOf("-point-")>-1)||(o=o.indexOf("_chart_legend_page")>-1?o:o.indexOf("_chart_legend_")>-1?r.children[1].id:o,i="Enter");return""!==i&&this.chartKeyboardNavigations(e,o,i),"Tab"===e.code&&this.setNavigationStyle(o),!1},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.axisTooltip=function(e,t,i,o){var r=e.target.id;if(r.indexOf("axis-label")>-1&&e.target.textContent.indexOf("...")>-1){var n=this.legendSettings.visible||""===this.primaryXAxis.title;tt(this.findAxisLabel(r),t,i,this.element.offsetWidth,this.element.id+"-EJ2-axis-label-tooltip",qt(this.element.id+"_Secondary_Element"),o,n)}else(0,R.removeElement)(this.element.id+"-EJ2-axis-label-tooltip")},i.prototype.findAxisLabel=function(e){var t=e.replace(this.element.id+"-","").replace("-axis-label","").split("-");return this.axisCollections[parseInt(t[0],10)].visibleLabels[parseInt(t[1],10)].originalText},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-chart-focused")?t="e-chart-focused "+t:t||(t="e-chart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.documentKeyHandler=function(e){e.altKey&&74===e.keyCode&&!(0,t.isNullOrUndefined)(this.element)&&this.element.focus()},i.prototype.chartKeyboardNavigations=function(e,t,i){switch(this.isLegendClicked=!1,this.removeNavigationStyle(),this.setNavigationStyle(t),i){case"Tab":case"ArrowMove":if(this.highlight3DModule&&this.highlight3DModule.removeLegendHighlightStyles(),t.indexOf("-point-")>-1){if(document.activeElement){var o=document.activeElement.getBoundingClientRect(),r=o.left+o.width/2,n=o.top,a=window.scrollX+r,l=window.scrollY+n;this.mouseX=a,this.mouseY=l}if(this.highlight3DModule&&(this.highlight3DModule.highlightChart(document.getElementById(t),"mousemove"),this.highlight3DModule.completeSelection()),this.tooltip3DModule){var s={series:this.visibleSeries[t.split("-series-")[1].split("-point-")[0]],point:this.visibleSeries[t.split("-series-")[1].split("-point-")[0]].points[t.split("-point-")[1].split("-")[0]]},h=document.getElementById(this.element.id+"_tooltip_svg"),c=h&&parseInt(h.getAttribute("opacity"),10)>0,d=this.tooltip3DModule.getTooltipElement(c);this.tooltip3DModule.pushData(s,!c,d,!0)&&this.tooltip3DModule.triggerTooltipRender(s,!c,this.tooltip3DModule.getTooltipText(s),this.tooltip3DModule.findHeader(s))}}if(this.highlight3DModule&&"None"!==this.highlightMode){t=t.indexOf("_chart_legend_g_")>-1?document.getElementById(t).firstChild.id:t;for(var p=this.element.id+"_chart_legend",u=[p+"_text_",p+"_shape_marker_",p+"_shape_"],g=0;g<u.length;g++){var m=u[g];if(t.indexOf(m)>-1){document.getElementById(t).setAttribute("class",""),this.highlight3DModule.legendSelection(this,parseInt(t.split(m)[1],10),document.getElementById(t),"mousemove");break}}}break;case"Enter":case"Space":t.indexOf("_chart_legend_")>-1?(this.isLegendClicked=!0,this.legend3DModule.click(e),this.focusChild(document.getElementById(t).parentElement),this.setNavigationStyle(document.getElementById(t).parentElement.id)):(this.selection3DModule&&this.selection3DModule.calculateSelectedElements(document.getElementById(t),"click"),this.setNavigationStyle(t));break;case"CtrlP":this.print();break;case"ESC":this.tooltip3DModule.removeTooltip(1)}},i.prototype.setStyle=function(e){var t="None"!==this.selectionMode||"None"!==this.highlightMode;e.style.touchAction=this.enableRotation||t?"none":"element",e.style.msTouchAction=t?"none":"element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.overflow="hidden",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit"},i.prototype.isSecondaryAxis=function(e){return this.axes.indexOf(e)>-1},i.prototype.refreshDefinition=function(e){for(var t=0,i=e;t<i.length;t++){i[t].axes=[]}},i.prototype.addSeries=function(e){this.animateSeries=!1;for(var t=0,i=e;t<i.length;t++){var o=i[t];o=new bd(this,"series",o),this.series.push(o)}this.refresh()},i.prototype.removeSeries=function(e){this.redraw=!1,this.animateSeries=!1,this.visibleSeries[e]&&(this.visibleSeries[e].xAxis.orientation=null,this.visibleSeries[e].yAxis.orientation=null);for(var t=0;t<this.axes.length;t++)null===this.axes[t].orientation&&this.axes.splice(t,1);this.series.splice(e,1),this.refresh()},i.prototype.refreshAxis=function(){var e=this.primaryXAxis;e.rect=new R.Rect(void 0,void 0,0,0),(e=this.primaryYAxis).isStack100=!1,e.rect=new R.Rect(void 0,void 0,0,0);for(var t=0,i=this.axes;t<i.length;t++){(e=i[t]).rect=new R.Rect(void 0,void 0,0,0),e.isStack100=!1}},i.prototype.axisChange=function(e){return!(!e.name&&!e.valueType)&&(this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(),!0)},i.prototype.getVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},i.prototype.removeStyles=function(){(0,R.removeElement)(this.element.id+"_ej2_chart_selection"),(0,R.removeElement)(this.element.id+"_ej2_chart_highlight")},i.prototype.calculateVisibleSeries=function(){var e;this.visibleSeries=[];var t=this.palettes.length?this.palettes:Oc(this.theme),i=t.length,o=this.series,r=this.series[0];r&&(this.requireInvertedAxis=-1!==r.type.indexOf("Bar")&&!this.isTransposed||-1===r.type.indexOf("Bar")&&this.isTransposed);for(var n=0,a=o.length;n<a;n++){switch((e=o[n]).category="Series",e.index=n,e.interior=e.fill||t[n%i],this.isSecondaryAxis(e.xAxis)&&(e.xAxis.internalVisibility=e.xAxis.series.some(function(e){return e.visible})),this.isSecondaryAxis(e.yAxis)&&(e.yAxis.internalVisibility=e.yAxis.series.some(function(e){return e.visible})),e.type){case"Bar":case"StackingBar":case"StackingBar100":if(-1===o[0].type.indexOf("Bar"))continue;break;default:if(o[0].type.indexOf("Bar")>-1)continue}this.visibleSeries.push(e),o[n]=e}},i.prototype.highlightAnimation=function(e,i,o,r){var n=parseFloat(this.visibleSeries[i].opacity.toString());n&&new t.Animation({}).animate(e,{duration:o,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,o=r+(n-r)*i;e.setAttribute("opacity",o.toString())},end:function(){e.setAttribute("opacity",n.toString())}})},i.prototype.stopElementAnimation=function(e,i){var o=parseFloat(this.visibleSeries[i].opacity.toString());e.getAttribute("e-animate")&&t.Animation.stop(e),e.setAttribute("opacity",o.toString())},i.prototype.destroy=function(){this.horizontalAxes=[],this.verticalAxes=[],this.visibleSeries=[],this.axisCollections=[],this.seriesElements=null,this.chartAxisLayoutPanel=null,this.dataLabelElements=null,this.dataLabelCollections=null,(0,R.removeElement)(this.element.id+"Keyboard_chart_focus"),(0,R.removeElement)(this.element.id+"_ej2_chart_highlight"),(0,R.removeElement)("chartmeasuretext");var t=document.getElementById(this.element.id+"_ej2_chart_highlight");t&&t.remove();var i=document.getElementById(this.element.id+"_ej2_chart_selection");if(i&&i.remove(),this.element){this.unWireEvents(),this.isReact&&this.clearTemplate(),e.prototype.destroy.call(this),this.polygons=[];var o=document.getElementById(this.chart3D.id);o&&(o.innerHTML="",o.remove()),this.removeSvg(),this.svgObject=null}},i.prototype.getModuleName=function(){return"chart3d"},i.prototype.getPersistData=function(){return this.addOnPersist(["loaded"])},i.prototype.onPropertyChanged=function(e,i){var o,r,n=!1,a=!1;this.animateSeries=!1;var l,s=!1;if(!this.delayRedraw){for(var h=0,c=Object.keys(e);h<c.length;h++){switch(c[h]){case"primaryXAxis":o=e.primaryXAxis,a=this.axisChange(o),e.primaryXAxis.edgeLabelPlacement&&(n=!0),a=!0,(0,t.isNullOrUndefined)(o.isInversed)&&(0,t.isNullOrUndefined)(o.opposedPosition)||this.primaryXAxis.setIsInversedAndOpposedPosition();break;case"primaryYAxis":o=e.primaryYAxis,a=this.axisChange(o),e.primaryYAxis.edgeLabelPlacement&&(n=!0),a=!0,(0,t.isNullOrUndefined)(o.isInversed)&&(0,t.isNullOrUndefined)(o.opposedPosition)||this.primaryYAxis.setIsInversedAndOpposedPosition();break;case"axes":for(var d=0,p=Object.keys(e.axes);d<p.length;d++){var u=p[d];o=e.axes[u],a=a||this.axisChange(o),a=!0,(0,t.isNullOrUndefined)(o.isInversed)&&(0,t.isNullOrUndefined)(o.opposedPosition)||this.axes[u].setIsInversedAndOpposedPosition()}break;case"height":case"width":this.createChartSvg(),a=!0;break;case"subTitle":case"title":a=!0;break;case"titleStyle":e.titleStyle&&(e.titleStyle.size||e.titleStyle.textOverflow)?a=!0:n=!0;break;case"subTitleStyle":e.subTitleStyle&&(e.subTitleStyle.size||e.subTitleStyle.textOverflow)?a=!0:n=!0;break;case"border":case"background":case"enableRotation":case"tilt":case"depth":case"wallSize":case"rotation":case"perspectiveAngle":case"enableSideBySidePlacement":n=!0;break;case"series":r=this.series.length;for(var g=0;g<r;g++)(l=e.series[g])&&(l.dataSource||l.query||l.xName||l.yName||l.size||l.fill||l.name||l.type)&&((0,t.extend)(this.getVisibleSeries(this.visibleSeries,g),l,null,!0),s=!0);this.availableSize&&this.element&&(this.element.style.height=this.element.style.height&&"inherit"!==this.element.style.height?this.element.style.height:this.availableSize.height+"px"),s&&(this.calculateVisibleSeries(),this.refreshDefinition(this.columns),this.refreshDefinition(this.rows),this.calculateVisibleAxis(),this.processData(!1),a=!0);break;case"dataSource":this.processData(!1),a=!0;break;case"legendSettings":e.legendSettings.background&&e.legendSettings.opacity||(a=!0),n=!0;break;case"palettes":this.calculateVisibleSeries(),n=!0;break;case"selectedDataIndexes":this.selection3DModule&&(this.selection3DModule.currentMode=this.selectionMode,this.selection3DModule.selectedDataIndexes=this.selectedDataIndexes,this.selection3DModule.styleId=this.element.id+"_ej2_chart_selection",this.selection3DModule.redrawSelection(this,i.selectionMode,!0));break;case"selectionMode":this.selection3DModule&&e.selectionMode&&-1===e.selectionMode.indexOf("Drag")&&(this.selection3DModule.currentMode=this.selectionMode,this.selection3DModule.styleId=this.element.id+"_ej2_chart_selection",this.selection3DModule.redrawSelection(this,i.selectionMode,!0));break;case"isMultiSelect":this.selection3DModule&&!e.isMultiSelect&&this.selection3DModule.selectedDataIndexes.length>1&&(this.selection3DModule.currentMode=this.selectionMode,this.selection3DModule.styleId=this.element.id+"_ej2_chart_selection",this.selection3DModule.redrawSelection(this,i.selectionMode));break;case"highlightMode":case"selectionPattern":case"highlightPattern":this.removeStyles(),n=!0;break;case"theme":this.animateSeries=!0;break;case"enableRtl":case"locale":case"currencyCode":this.refresh();break;case"tooltip":this.tooltip3DModule&&(this.tooltip3DModule.previousPoints=[],this.tooltip.template&&(this.tooltip3DModule.template=this.tooltip.template))}}!a&&n&&(this.removeSvg(),this.polygons=[],this.renderElements(),this.trigger("loaded",{chart:this})),a&&(this.removeSvg(),this.isReact&&this.clearTemplate(),this.polygons=[],this.refreshAxis(),this.refreshBound(),this.trigger("loaded",{chart:this}),this.redraw=!1,this.animated=!1)}},Dd([(0,t.Property)("")],i.prototype,"title",void 0),Dd([(0,t.Property)("")],i.prototype,"subTitle",void 0),Dd([(0,t.Property)("Bootstrap5")],i.prototype,"theme",void 0),Dd([(0,t.Property)(null)],i.prototype,"description",void 0),Dd([(0,t.Property)(null)],i.prototype,"width",void 0),Dd([(0,t.Property)(null)],i.prototype,"backgroundImage",void 0),Dd([(0,t.Property)(null)],i.prototype,"background",void 0),Dd([(0,t.Property)("")],i.prototype,"dataSource",void 0),Dd([(0,t.Property)(null)],i.prototype,"height",void 0),Dd([(0,t.Property)(50)],i.prototype,"depth",void 0),Dd([(0,t.Property)(2)],i.prototype,"wallSize",void 0),Dd([(0,t.Property)(0)],i.prototype,"tilt",void 0),Dd([(0,t.Property)(!1)],i.prototype,"enableRotation",void 0),Dd([(0,t.Property)(0)],i.prototype,"rotation",void 0),Dd([(0,t.Property)(!0)],i.prototype,"enableSideBySidePlacement",void 0),Dd([(0,t.Property)(90)],i.prototype,"perspectiveAngle",void 0),Dd([(0,t.Property)(null)],i.prototype,"wallColor",void 0),Dd([(0,t.Property)(!1)],i.prototype,"isTransposed",void 0),Dd([(0,t.Property)("USD")],i.prototype,"currencyCode",void 0),Dd([(0,t.Property)(!1)],i.prototype,"enableExport",void 0),Dd([(0,t.Event)()],i.prototype,"load",void 0),Dd([(0,t.Event)()],i.prototype,"loaded",void 0),Dd([(0,t.Event)()],i.prototype,"pointClick",void 0),Dd([(0,t.Event)()],i.prototype,"pointMove",void 0),Dd([(0,t.Event)()],i.prototype,"pointRender",void 0),Dd([(0,t.Event)()],i.prototype,"legendRender",void 0),Dd([(0,t.Event)()],i.prototype,"legendClick",void 0),Dd([(0,t.Event)()],i.prototype,"seriesRender",void 0),Dd([(0,t.Event)()],i.prototype,"textRender",void 0),Dd([(0,t.Event)()],i.prototype,"tooltipRender",void 0),Dd([(0,t.Event)()],i.prototype,"beforeResize",void 0),Dd([(0,t.Event)()],i.prototype,"resized",void 0),Dd([(0,t.Event)()],i.prototype,"chart3DMouseMove",void 0),Dd([(0,t.Event)()],i.prototype,"chart3DMouseClick",void 0),Dd([(0,t.Event)()],i.prototype,"chart3DMouseDown",void 0),Dd([(0,t.Event)()],i.prototype,"chart3DMouseLeave",void 0),Dd([(0,t.Event)()],i.prototype,"chart3DMouseUp",void 0),Dd([(0,t.Event)()],i.prototype,"axisLabelRender",void 0),Dd([(0,t.Event)()],i.prototype,"selectionComplete",void 0),Dd([(0,t.Event)()],i.prototype,"beforeExport",void 0),Dd([(0,t.Event)()],i.prototype,"afterExport",void 0),Dd([(0,t.Event)()],i.prototype,"beforePrint",void 0),Dd([(0,t.Complex)({},m)],i.prototype,"margin",void 0),Dd([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Ec)],i.prototype,"titleStyle",void 0),Dd([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},Ec)],i.prototype,"subTitleStyle",void 0),Dd([(0,t.Complex)({},Pd)],i.prototype,"legendSettings",void 0),Dd([(0,t.Complex)({color:"#DDDDDD",width:0},u)],i.prototype,"border",void 0),Dd([(0,t.Complex)({name:"primaryXAxis"},pd)],i.prototype,"primaryXAxis",void 0),Dd([(0,t.Complex)({name:"primaryYAxis"},pd)],i.prototype,"primaryYAxis",void 0),Dd([(0,t.Complex)({},Cd)],i.prototype,"tooltip",void 0),Dd([(0,t.Collection)([{}],ad)],i.prototype,"rows",void 0),Dd([(0,t.Collection)([{}],ld)],i.prototype,"columns",void 0),Dd([(0,t.Collection)([{}],pd)],i.prototype,"axes",void 0),Dd([(0,t.Collection)([{}],bd)],i.prototype,"series",void 0),Dd([(0,t.Property)("")],i.prototype,"highlightColor",void 0),Dd([(0,t.Property)("None")],i.prototype,"selectionMode",void 0),Dd([(0,t.Property)("None")],i.prototype,"highlightMode",void 0),Dd([(0,t.Property)("None")],i.prototype,"selectionPattern",void 0),Dd([(0,t.Property)("None")],i.prototype,"highlightPattern",void 0),Dd([(0,t.Property)(!1)],i.prototype,"isMultiSelect",void 0),Dd([(0,t.Collection)([],b)],i.prototype,"selectedDataIndexes",void 0),Dd([(0,t.Property)(!1)],i.prototype,"useGroupingSeparator",void 0),Dd([(0,t.Property)([])],i.prototype,"palettes",void 0),i=Dd([t.NotifyPropertyChanges],i)}(t.Component),Rd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Td=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rd(t,e),t.prototype.calculateDateTimeNiceInterval=function(e,t,i,o){var r,n=new Date(i),a=new Date(o),l=Math.abs((n.getTime()-a.getTime())/864e5);switch(e.actualIntervalType=e.intervalType,e.intervalType){case"Years":r=this.calculateNumericNiceInterval(e,l/365,t);break;case"Months":r=this.calculateNumericNiceInterval(e,l/30,t);break;case"Days":r=this.calculateNumericNiceInterval(e,l,t);break;case"Hours":r=this.calculateNumericNiceInterval(e,24*l,t);break;case"Minutes":r=this.calculateNumericNiceInterval(e,24*l*60,t);break;case"Seconds":r=this.calculateNumericNiceInterval(e,24*l*60*60,t);break;case"Auto":return(r=this.calculateNumericNiceInterval(e,l/365,t))>=1?(e.actualIntervalType="Years",r):(r=this.calculateNumericNiceInterval(e,l/30,t))>=1?(e.actualIntervalType="Months",r):(r=this.calculateNumericNiceInterval(e,l,t))>=1?(e.actualIntervalType="Days",r):(r=this.calculateNumericNiceInterval(e,24*l,t))>=1?(e.actualIntervalType="Hours",r):(r=this.calculateNumericNiceInterval(e,24*l*60,t))>=1?(e.actualIntervalType="Minutes",r):(r=this.calculateNumericNiceInterval(e,24*l*60*60,t),e.actualIntervalType="Seconds",r)}return r},t.prototype.getSkeleton=function(e){var t=e.actualIntervalType;return e.skeleton?e.skeleton:"Years"===t?"DateTime"===e.valueType&&e.isIntervalInDecimal?"y":"yMMM":"Months"===t?"MMMd":"Days"===t?"DateTime"===e.valueType?"MMMd":"yMd":"Hours"===t?"DateTime"===e.valueType?"Hm":"EHm":"Hms"},t.prototype.findCustomFormats=function(e){var t=e.labelFormat?e.labelFormat:"";return e.skeleton||"Months"!==e.actualIntervalType||t||(t="DateTime"===e.valueType?"MMM yyyy":"yMMM"),t},t}(od),Ed=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),_d=function(e){function i(t){return e.call(this,t)||this}return Ed(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),e.actualRange={},e.interval?e.actualRange.interval=Math.ceil(e.interval):e.actualRange.interval=Math.max(1,Math.floor(e.doubleRange.delta/jt(t,e))),e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end,e.actualRange.delta=e.doubleRange.delta},i.prototype.applyRangePadding=function(e,t){e.actualRange.min-=.5,e.actualRange.max+=.5,e.doubleRange=new id(e.actualRange.min,e.actualRange.max),e.actualRange.delta=e.doubleRange.delta,this.calculateVisibleRange(t,e)},i.prototype.calculateVisibleLabels=function(e){e.visibleLabels=[],e.visibleRange.interval=e.visibleRange.interval<1?1:e.visibleRange.interval;var i,o,r=Math.ceil(e.visibleRange.min);for(e.startLabel=e.labels[Math.round(e.visibleRange.min)],e.endLabel=e.labels[Math.floor(e.visibleRange.max)];r<=e.visibleRange.max;r+=e.visibleRange.interval)i=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),ot(r,e.visibleRange)&&e.labels.length>0&&(o=Math.round(r),Vt(this.chart,o,e.labels[o]?e.labels[o].toString():o.toString(),i,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Category3D"},i.prototype.destroy=function(){},i}(Td),Id=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Od=function(e){function i(t){return e.call(this,t)||this}return Id(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){var i={skeleton:"full",type:"dateTime"},o=this.chart.intl.getDateParser(i),r=this.chart.intl.getDateFormat(i);null!==e.minimum?this.min=Date.parse(o(r(new Date(ao.DataUtil.parse.parseJson({val:e.minimum}).val)))):null!==this.min&&this.min!==Number.POSITIVE_INFINITY||(this.min=Date.parse(o(r(new Date(1970,1,1))))),null!==e.maximum?this.max=Date.parse(o(r(new Date(ao.DataUtil.parse.parseJson({val:e.maximum}).val)))):null!==this.max&&this.max!==Number.NEGATIVE_INFINITY||(this.max=Date.parse(o(r(new Date(1970,5,1))))),this.min===this.max&&(this.max=this.max+2592e6,this.min=this.min-2592e6),e.actualRange={},e.doubleRange=new id(this.min,this.max);var n=this.calculateDateTimeNiceInterval(e,t,e.doubleRange.start,e.doubleRange.end);e.interval?e.actualRange.interval=e.interval:e.actualRange.interval=n,e.actualRange.min=e.doubleRange.start,e.actualRange.max=e.doubleRange.end},i.prototype.applyRangePadding=function(e,t){var i,o;this.min=e.actualRange.min,this.max=e.actualRange.max;var r=e.actualRange.interval;if(!Ht(e)){var n=e.getRangePadding(this.chart);i=new Date(this.min),o=new Date(this.max);var a=e.actualIntervalType;if("None"===n)this.min=i.getTime(),this.max=o.getTime();else if("Additional"===n||"Round"===n)switch(a){case"Years":this.getYear(i,o,n,r);break;case"Months":this.getMonth(i,o,n,r);break;case"Days":this.getDay(i,o,n,r);break;case"Hours":this.getHour(i,o,n,r);break;case"Minutes":var l=i.getMinutes()/r*r,s=o.getMinutes()+(i.getMinutes()-l);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,59).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),l+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s+r,0).getTime());break;case"Seconds":var h=i.getSeconds()/r*r,c=o.getSeconds()+(i.getSeconds()-h);"Round"===n?(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c,0).getTime()):(this.min=new Date(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),h+-r,0).getTime(),this.max=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),c+r,0).getTime())}}e.actualRange.min=(e.minimum,this.min),e.actualRange.max=(e.maximum,this.max),e.actualRange.delta=e.actualRange.max-e.actualRange.min,e.doubleRange=new id(e.actualRange.min,e.actualRange.max),this.calculateVisibleRange(t,e)},i.prototype.getYear=function(e,t,i,o){var r=e.getFullYear(),n=t.getFullYear();"Additional"===i?(this.min=new Date(r-o,1,1,0,0,0).getTime(),this.max=new Date(n+o,1,1,0,0,0).getTime()):(this.min=new Date(r,0,0,0,0,0).getTime(),this.max=new Date(n,11,30,23,59,59).getTime())},i.prototype.getMonth=function(e,t,i,o){var r=e.getMonth(),n=t.getMonth();"Round"===i?(this.min=new Date(e.getFullYear(),r,0,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n,new Date(t.getFullYear(),t.getMonth(),0).getDate(),23,59,59).getTime()):(this.min=new Date(e.getFullYear(),r+-o,1,0,0,0).getTime(),this.max=new Date(t.getFullYear(),n+o,2===n?28:30,0,0,0).getTime())},i.prototype.getDay=function(e,t,i,o){var r=e.getDate(),n=t.getDate();"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),r,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n,23,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),r+-o,0,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),n+o,0,0,0).getTime())},i.prototype.getHour=function(e,t,i,o){var r=e.getHours()/o*o,n=t.getHours()+(e.getHours()-r);"Round"===i?(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,59,59).getTime()):(this.min=new Date(e.getFullYear(),e.getMonth(),e.getDate(),r+-o,0,0).getTime(),this.max=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n+o,0,0).getTime())},i.prototype.calculateVisibleRange=function(e,t){t.visibleRange={min:t.actualRange.min,max:t.actualRange.max,interval:t.actualRange.interval,delta:t.actualRange.delta},t.dateTimeInterval=this.increaseDateTimeInterval(t,t.visibleRange.min,t.visibleRange.interval).getTime()-t.visibleRange.min,t.triggerRangeRender(this.chart,t.visibleRange.min,t.visibleRange.max,t.visibleRange.interval)},i.prototype.calculateVisibleLabels=function(e,i){e.visibleLabels=[];var o,r=e.visibleRange.min;for(Ht(e)||(r=this.alignRangeStart(e,r,e.visibleRange.interval).getTime());r<=e.visibleRange.max;){if(o=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),e.format=i.intl.getDateFormat({format:this.findCustomFormats(e)||"",type:kt(e.skeletonType),skeleton:this.getSkeleton(e)}),e.startLabel=e.format(new Date(e.visibleRange.min)),e.endLabel=e.format(new Date(e.visibleRange.max)),ot(r,e.visibleRange))this.increaseDateTimeInterval(e,r,e.visibleRange.interval).getTime()>e.visibleRange.max&&(e.endLabel=e.format(new Date(r))),Vt(i,r,e.format(new Date(r)),o,e);if(r===(r=this.increaseDateTimeInterval(e,r,e.visibleRange.interval).getTime()))break}"Months"!==e.actualIntervalType&&"Days"!==e.actualIntervalType||(e.format=i.intl.getDateFormat({format:e.labelFormat||("Months"!==e.actualIntervalType||e.skeleton?"":"y MMM"),type:kt(e.skeletonType),skeleton:e.skeleton||("Days"===e.actualIntervalType?"MMMd":"")})),e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.increaseDateTimeInterval=function(e,t,i){var o=new Date(t);e.interval?(e.isIntervalInDecimal=i%1==0,e.visibleRange.interval=i):(i=Math.ceil(i),e.visibleRange.interval=i);var r=e.actualIntervalType;if(e.isIntervalInDecimal)switch(r){case"Years":return o.setFullYear(o.getFullYear()+i),o;case"Months":return o.setMonth(o.getMonth()+i),o;case"Days":return o.setDate(o.getDate()+i),o;case"Hours":return o.setHours(o.getHours()+i),o;case"Minutes":return o.setMinutes(o.getMinutes()+i),o;case"Seconds":return o.setSeconds(o.getSeconds()+i),o}return o},i.prototype.alignRangeStart=function(e,t,i){var o=new Date(t);switch(e.actualIntervalType){case"Years":var r=Math.floor(Math.floor(o.getFullYear()/i)*i);return o=new Date(r,o.getMonth(),o.getDate(),0,0,0);case"Months":var n=Math.floor(Math.floor(o.getMonth()/i)*i);return o=new Date(o.getFullYear(),n,o.getDate(),0,0,0);case"Days":var a=Math.floor(Math.floor(o.getDate()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),a,0,0,0);case"Hours":var l=Math.floor(Math.floor(o.getHours()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),l,0,0);case"Minutes":var s=Math.floor(Math.floor(o.getMinutes()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),s,0,0);case"Seconds":var h=Math.floor(Math.floor(o.getSeconds()/i)*i);return o=new Date(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),h,0)}return o},i.prototype.getModuleName=function(){return"DateTime3D"},i.prototype.destroy=function(){},i}(Td),zd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Bd=function(e){function i(t){return e.call(this,t)||this}return zd(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.axisSize=e,this.calculateRange(t),this.getActualRange(t,e),this.applyRangePadding(t,e),this.calculateVisibleLabels(t)},i.prototype.calculateVisibleLabels=function(e){var i;e.visibleLabels=[];"Auto"===e.intervalType?this.calculateDateTimeNiceInterval(e,this.axisSize,parseInt(e.labels[0],10),parseInt(e.labels[e.labels.length-1],10)):e.actualIntervalType=e.intervalType,e.format=this.chart.intl.getDateFormat({format:e.labelFormat||"",type:kt(e.skeletonType),skeleton:this.getSkeleton(e)});for(var o=0;o<e.labels.length;o++)i=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),this.sameInterval(e.labels.map(Number)[o],e.labels.map(Number)[o-1],e.actualIntervalType,o)&&!e.isIndexed||ot(o-0,e.visibleRange)&&Vt(this.chart,o,e.isIndexed?this.getIndexedAxisLabel(e.labels[o],e.format):e.format(new Date(e.labels.map(Number)[o])),i,e);e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getIndexedAxisLabel=function(e,t){for(var i=e.split(","),o=0;o<i.length;o++)i[o]=t(new Date(parseInt(i[o],10)));return i.join(", ")},i.prototype.sameInterval=function(e,t,i,o){var r;if(0===o)r=!1;else switch(i){case"Years":r=new Date(e).getFullYear()===new Date(t).getFullYear();break;case"Months":r=new Date(e).getFullYear()===new Date(t).getFullYear()&&new Date(e).getMonth()===new Date(t).getMonth();break;case"Days":r=Math.abs(e-t)<864e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Hours":r=Math.abs(e-t)<36e5&&new Date(e).getDay()===new Date(t).getDay();break;case"Minutes":r=Math.abs(e-t)<6e4&&new Date(e).getMinutes()===new Date(t).getMinutes();break;case"Seconds":r=Math.abs(e-t)<1e3&&new Date(e).getDay()===new Date(t).getDay()}return r},i.prototype.getModuleName=function(){return"DateTimeCategory3D"},i.prototype.destroy=function(){},i}(_d),Nd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vd=function(e){function i(t){return e.call(this,t)||this}return Nd(i,e),i.prototype.calculateRangeAndInterval=function(e,t){this.calculateRange(t),this.getActualRange(t,e),this.calculateVisibleRange(e,t),this.calculateVisibleLabels(t,this.chart)},i.prototype.getActualRange=function(e,t){this.initializeDoubleRange(e),this.min=this.min<0?0:this.min;var i=et(this.min,e.logBase);i=isFinite(i)?i:this.min;var o=1===this.max?1:et(this.max,e.logBase);o=isFinite(i)?o:this.max,this.min=Math.floor(i/1),e.series&&e.series.some(function(e){return-1!==e.type.indexOf("Column")||-1!==e.type.indexOf("Bar")})&&(this.min=this.min<=0?+this.min-1:this.min),this.max=Math.ceil(o/1),this.max=this.max===this.min?this.max+1:this.max,e.actualRange.interval=e.interval||this.calculateLogNiceInterval(this.max-this.min,t,e),e.actualRange.min=this.min,e.actualRange.max=this.max,e.actualRange.delta=this.max-this.min},i.prototype.calculateVisibleRange=function(e,t){t.visibleRange={interval:t.actualRange.interval,max:t.actualRange.max,min:t.actualRange.min,delta:t.actualRange.delta}},i.prototype.calculateLogNiceInterval=function(e,t,i){for(var o=jt(t,i),r=e,n=Math.pow(i.logBase,Math.floor(et(r,10))),a=0,l=i.intervalDivs.length;a<l;a++){var s=n*i.intervalDivs[a];if(o<e/s)break;r=s}return r},i.prototype.calculateVisibleLabels=function(e,i){var o,r,n=e.visibleRange.min;e.visibleLabels=[];var a=this.getFormat(e),l=null!==a.match("{value}"),s=Math.pow(e.logBase,e.visibleRange.min);for(e.format=i.intl.getNumberFormat({format:l?"":a,useGrouping:i.useGroupingSeparator,maximumFractionDigits:s<1?20:3}),e.startLabel=e.format(s<1?+s.toPrecision(1):s),e.endLabel=e.format(Math.pow(e.logBase,e.visibleRange.max));n<=e.visibleRange.max;n+=e.visibleRange.interval)o=(0,t.extend)({},(0,t.getValue)("properties",e.labelStyle),null,!0),ot(n,e.visibleRange)&&(r=Math.pow(e.logBase,n),Vt(this.chart,n,this.formatValue(e,l,a,r<1?+r.toPrecision(1):r),o,e));e.getMaxLabelWidth&&e.getMaxLabelWidth(this.chart)},i.prototype.getModuleName=function(){return"Logarithmic3D"},i.prototype.destroy=function(){},i}(od),Hd=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e);for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(V,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=e.index,n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c&&a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()||t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i,v=t.x+":"+t.yValue+", "+e.name;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):"Rectangle"===e.columnFacet&&o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D,v)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints),i=e.getYValues(e.visiblePoints);if(null!=t&&null!=i)for(var o=e.getSideBySideInfo(e),r=e.getSegmentDepth(e),n=o.delta/2,a=e.visiblePoints,l=0;l<a.length;l++){var s=t[l]+o.start,h=t[l]+o.end,c=i[l];if(this.setData(s,c,h,0,r.start,r.end,e,a[l]),e.dataLabel.visible)switch(a[l].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=c,a[l].symbolLocations.z=r.start;break;case"Bottom":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=-.2+e.yAxis.visibleRange.min,a[l].symbolLocations.z=r.start+(r.end-r.start)/2;break;default:a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=Math.abs(0-c)/2+e.yAxis.visibleRange.min/2,a[l].symbolLocations.z=r.start}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"ColumnSeries3D"},e}(),Wd=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e);for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(V,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=e.index,n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c&&a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()||t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):"Rectangle"===e.columnFacet&&o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints);if(null!=t)for(var i=e.getSideBySideInfo(e),o=e.getSegmentDepth(e),r=i.delta/2,n=e.visiblePoints,a=0;a<n.length;a++){var l=t[a]+i.start,s=t[a]+i.end,h=e.stackedValues.startValues[a],c=e.stackedValues.endValues[a];if(this.setData(l,h,s,c,o.start,o.end,e,n[a]),e.dataLabel.visible)switch(n[a].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=h,n[a].symbolLocations.z=o.start+o.delta/2;break;case"Bottom":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=c-.2,n[a].symbolLocations.z=o.start+(o.end-o.start)/2;break;default:n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=h+(c-h)/2,n[a].symbolLocations.z=o.start}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"StackingColumnSeries3D"},e}(),jd=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e),e.isRectSeries=!0;for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(V,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=e.index,n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c&&a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()||t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):"Rectangle"===e.columnFacet&&o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints);if(null!=t)for(var i=e.getSideBySideInfo(e),o=e.getSegmentDepth(e),r=i.delta/2,n=e.visiblePoints,a=0;a<n.length;a++){var l=t[a]+i.start,s=t[a]+i.end,h=e.stackedValues.startValues[a],c=e.stackedValues.endValues[a];if(this.setData(l,c,s,h,o.start,o.end,e,n[a]),e.dataLabel.visible)switch(n[a].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=c,n[a].symbolLocations.z=o.start+o.delta/2;break;case"Bottom":n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=h-.2,n[a].symbolLocations.z=o.start+(o.end-o.start)/2;break;default:n[a].symbolLocations.x=l+r,n[a].symbolLocations.y=c+(h-c)/2,n[a].symbolLocations.z=o.start}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"StackingBarSeries3D"},e}(),Ud=function(){function e(){}return e.prototype.draw=function(e,t){this.createSegments(e);for(var i=0;i<e.visiblePoints.length;i++){var o=e.visiblePoints[i];if(o.visible){var r={cancel:!1,series:e,point:o,fill:e.setPointColor(o,e.interior)};t.trigger(V,r),o.color=r.fill,o.plans=null,r.cancel?o.symbolLocations=null:this.update(r.series,r.point,i,t)}}},e.prototype.update=function(e,t,i,o){var r=o.visibleSeries.indexOf(e),n=t.left,a=t.right,l="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.min):e.yAxis.visibleRange.min,s="Logarithmic"===e.yAxis.valueType?Math.pow(e.yAxis.logBase,e.yAxis.visibleRange.max):e.yAxis.visibleRange.max,h=e.xAxis.visibleRange.min,c=e.xAxis.visibleRange.max;if(n>=h&&n<=c||a>=h&&a<=c){var d;d=t.top<0?t.top>l?t.top:l:e.yAxis.valueType&&"logarithmic"===e.yAxis.valueType.toLowerCase()||t.top<s?t.top:s;var p=o.svg3DRenderer.transform3DToVisible(e,t.left>h?t.left:h,d,o),u=o.svg3DRenderer.transform3DToVisible(e,c>t.right?t.right:c,l>t.bottom?l:t.bottom,o),g=o.vector.vector3D(Math.min(p.x,u.x),Math.min(p.y,u.y),t.startDepth),m=o.vector.vector3D(Math.max(p.x,u.x),Math.max(p.y,u.y),t.endDepth),y=e.setStyle(e),f="region-series-"+r+"-point-"+i;"Cylinder"===e.columnFacet?o.polygon.createCylinder(g,m,o,i,e.type,"",t.color,null,y.opacity,f,o.chart3D):o.polygon.createBox(g,m,o,i,"",t.color,null,y.opacity,o.requireInvertedAxis,f,o.chart3D)}},e.prototype.createSegments=function(e){var t=e.getXValues(e.visiblePoints),i=e.getYValues(e.visiblePoints);if(null!=t){e.isRectSeries=!0;for(var o=e.getSideBySideInfo(e),r=e.getSegmentDepth(e),n=o.delta/2,a=e.visiblePoints,l=0;l<a.length;l++){var s=t[l]+o.start,h=t[l]+o.end,c=i[l];if(this.setData(s,c,h,0,r.start,r.end,e,a[l]),e.dataLabel.visible)switch(a[l].symbolLocations={x:0,y:0,z:0},e.dataLabel.position){case"Top":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=c,a[l].symbolLocations.z=r.start;break;case"Bottom":a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=-.2+e.yAxis.visibleRange.min,a[l].symbolLocations.z=r.start+(r.end-r.start)/2;break;default:a[l].symbolLocations.x=s+n,a[l].symbolLocations.y=Math.abs(0-c)/2+e.yAxis.visibleRange.min/2,a[l].symbolLocations.z=r.start}}}},e.prototype.setData=function(e,t,i,o,r,n,a,l){l.left=e,l.bottom=o,l.top=t,l.right=i,l.startDepth=r,l.endDepth=n,l.xRange=a.getDoubleRange(l.left,l.right),isNaN(l.top)||isNaN(l.bottom)||(l.yRange=a.getDoubleRange(l.top,l.bottom))},e.prototype.destroy=function(){},e.prototype.getModuleName=function(){return"BarSeries3D"},e}(),Xd=function(){function e(e){this.chart=e}return e.prototype.render=function(e,i,o){var r,n=i.element.id+"-series-"+e.index+"-data-label-collections";e.dataLabelElement=(0,t.createElement)("div",{id:n});for(var a=0;a<e.visiblePoints.length;a++)(r=e.visiblePoints[a]).visible&&this.draw3DDataLabel(e,r.index,r,i,o);e.dataLabel.template&&ni(!1,document.getElementById(this.chart.element.id+"_Secondary_Element"),e.dataLabelElement,i.redraw,!1,"x","y",null,"",!1,!1,null)},e.prototype.draw3DDataLabel=function(e,t,i,o,r){var n,a,l={data:null},s=this.getLabelText(i,e,this.chart)[0],h=(0,R.measureText)(s,r.font,this.chart.themeStyle.datalabelFont),c=o.svg3DRenderer.transform3DToVisible(e,i.symbolLocations.x,i.symbolLocations.y,o);a=c.y,c.x,a="Bottom"===e.dataLabel.position?c.y+0:c.y-0,n=c.x+0,l.data={text:s,location:{x:n,y:a},series:e,pointIndex:t},l.data.Text=l.data.text;var d={cancel:!1,series:e,point:i,text:s,border:r.border,color:r.fill,template:r.template,textStyle:r.font};if(o.trigger(N,d),this.fontBackground="Middle"===e.dataLabel.position&&"transparent"===d.color?i.color:d.color,l.data.text=d.text,!e.dataLabel.template&&""!==l.data.Text&&!d.cancel){var p={tag:"dataLabel",series:e,point:i,pointIndex:t,id:o.svgObject.id+e.index+"-data-label"+t,child:o.chart3D};o.graphics.addVisual(o.polygon.createTextElement(o.vector.vector3D(n,a,i.symbolLocations.z),p,0,-h.height),o)}var u=e.dataLabel&&e.dataLabel.template?"template":"text",g=yi(fi("transparent"===this.fontBackground?this.chart.theme.indexOf("Dark")>-1||"HighContrast"===this.chart.theme?"#000000":"#FFFFFF":this.fontBackground)),m=Math.round((299*g.r+587*g.g+114*g.b)/1e3),y={size:d.textStyle.size||this.chart.themeStyle.datalabelFont.size,fontWeight:d.textStyle.fontWeight||this.chart.themeStyle.datalabelFont.fontWeight,fontStyle:d.textStyle.fontStyle||o.themeStyle.datalabelFont.fontStyle,fontFamily:d.textStyle.fontFamily||this.chart.themeStyle.datalabelFont.fontFamily,color:d.textStyle.color||("Bootstrap5"===this.chart.theme?"#212529":"Bootstrap5Dark"===this.chart.theme?"#DEE2E6":d.textStyle.color),opacity:d.textStyle.opacity},f={width:h.width,height:h.height,label:l.data,textAnchor:"middle",tag:u,font:y,angle:e.dataLabel.angle,id:o.element.id+"-svg-series-"+e.index+"-point-"+t+"-data-label",child:o.chart3D,argsData:d,fill:m>=128?this.chart.theme.indexOf("Tailwind3")>-1?"#111827":"#000000":"#FFFFFF"};d.cancel||o.graphics.addVisual(o.polygon.createTextElement(o.vector.vector3D(n,a,i.symbolLocations.z),f,0,-h.height),o)},e.prototype.getLabelText=function(e,t,i){var o=t.dataLabel.format?t.dataLabel.format:t.yAxis.labelFormat,r=[],n=null!==o.match("{value}");if(r.push(e.text||e.yValue.toString()),(o||i.useGroupingSeparator)&&!e.text){t.yAxis.format=i.intl.getNumberFormat({format:n?"":o,useGrouping:i.useGroupingSeparator});for(var a=0;a<r.length;a++)r[a]=n?o.replace("{value}",t.yAxis.format(parseFloat(r[a]))):t.yAxis.format(parseFloat(r[a]))}return r},e.prototype.createDataLabelTemplate=function(e,i,o,r,n,a,l,s){this.margin={left:0,right:0,bottom:0,top:0};var h=i.clipRect,c=this.createTemplate((0,t.createElement)("div",{id:this.chart.element.id+"-series-"+i.index+"-data-label-"+a,styles:"position: absolute;background-color:"+n.color+";"+ei(o.font,this.chart.themeStyle.datalabelFont)+";border:"+n.border.width+"px solid "+n.border.color+";"}),n.template,this.chart,r,i,this.chart.element.id+"-data-label-",a,s);this.calculateTemplateLabelSize(e,c,r,i,o,h,l,s)},e.prototype.calculateTemplateLabelSize=function(e,t,i,o,r,n,a,l,s){var h=ti(t,a,s),c={x:0,y:0,width:0,height:0},d=this.calculateTextPosition(o,i,h,l),p=!1;s&&(p=0===h.width||0===h.height),t.style.left=d.left-0+"px",t.style.top=d.top+0+"px";var u=yi(fi("transparent"===this.fontBackground?this.chart.theme.indexOf("Dark")>-1?"black":"white":this.fontBackground)),g=o.chart.requireInvertedAxis?o.xAxis:o.yAxis,m=o.chart.requireInvertedAxis?o.yAxis:o.xAxis;t.style.color=r.font.color||"Bootstrap5"===this.chart.theme?"#212529":"Bootstrap5Dark"===this.chart.theme?"#DEE2E6":Math.round((299*u.r+587*u.g+114*u.b)/1e3)>=128?this.chart.theme.indexOf("Tailwind3")>-1?"#111827":"black":this.chart.theme.indexOf("Tailwind3")>-1?"#FFFFFF":"white",t.childElementCount&&!p&&!ci(c,this.chart.dataLabelCollections,n)&&(void 0===i.yValue||ot(i.yValue,o.yAxis.visibleRange)||o.type.indexOf("Stacking")>-1||o.type.indexOf("100")>-1&&ot(o.stackedValues.endValues[i.index],o.yAxis.visibleRange))&&ot(i.xValue,o.xAxis.visibleRange)&&parseFloat(t.style.top)>=g.rect.y&&parseFloat(t.style.left)>=m.rect.x&&parseFloat(t.style.top)<=g.rect.y+g.rect.height&&parseFloat(t.style.left)<=m.rect.x+m.rect.width&&(this.chart.dataLabelCollections.push(new R.Rect(c.x+n.x,c.y+n.y,c.width,c.height)),ni(!1,e,t,a,!0,"left","top"))},e.prototype.calculateTextPosition=function(e,t,i,o){var r,n,a,l=i.width/2,s=i.height;return-1!==e.type.indexOf("Bar")?(r=o.x-l,n=o.y-s+e.xAxis.plotOffset,a=o.x+l):(r=o.x-l,n=o.y-s,a=o.x+l),{left:r,top:n,right:a}},e.prototype.chartReactTemplate=function(e,t,i,o,r,n,a){var l=document.getElementById(t.element.id+"-series-"+o.index+"-data-label-collections");l&&(0===i.index&&(t.dataLabelCollections=[]),t.dataLabel3DModule.calculateTemplateLabelSize(l,e,i,o,o.dataLabel,o.clipRect,n,a,!0))},e.prototype.createTemplate=function(e,t,i,o,r,n,a,l,s){var h,c=Qt(t);try{var d=c?c({chart:i,series:r,point:o},i,n+"-template",n):[];if(d.length)for(var p=(h=Array.prototype.slice.call(d)).length,u=0;u<p;u++)e.appendChild(h[u]);var g=void 0;"chart3d"===i.getModuleName()&&(g=o&&r?this.chartReactTemplate.bind(this,e,i,o,r,a,s,l):g,i.isReact&&i.renderReactTemplates(g))}catch(t){return e}return e},e.prototype.getModuleName=function(){return"DataLabel3D"},e.prototype.destroy=function(){},e}(),Gd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Yd=function(e){function i(t){var i=e.call(this,t)||this;return i.seriesIndex=0,i.chart=t,i.addEventListener(),i}return Gd(i,e),i.prototype.addEventListener=function(){if(!this.chart.isDestroyed){var e=t.Browser.isPointer?"pointerleave":"mouseleave";this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(e,this.mouseLeave,this),this.chart.on("click",this.mouseClick,this),this.chart.on(t.Browser.touchStartEvent,this.mousedown,this),this.chart.on(t.Browser.touchEndEvent,this.mouseLeave,this)}},i.prototype.mousedown=function(){var e=this.chart;!e.isPointMouseDown&&e.selectionMode},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("pointerleave",this.mouseLeave),this.chart.off("click",this.mouseClick),this.chart.off(t.Browser.touchStartEvent,this.mousedown),this.chart.off(t.Browser.touchEndEvent,this.mouseLeave))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.isSeriesMode="Series"===e.selectionMode},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,this.selectDataIndex(e,this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes))},i.prototype.generateStyle=function(e){return e?this.styleId+"_series_"+e.index:"undefined"},i.prototype.selectDataIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];this.performSelection(r,e,this.getElementByIndex(e,r)[0])}},i.prototype.getElementByIndex=function(e,t){var i=[];return document.querySelectorAll('[id*="-region-series-'+t.series+"-point-"+t.point+'"]').forEach(function(e){i.push(e)}),i},i.prototype.getClusterElements=function(e,t){for(var i=[],o=0,r=e.visibleSeries;o<r.length;o++){var n=r[o];if(n.visible){t=new k(n.index,t.point);for(var a=this.getElementByIndex(e,t),l=0;l<a.length;l++)i.push(a[l])}}return i},i.prototype.findElements=function(e,t,i){return this.isSeriesMode?this.getSeriesElements(t):"Cluster"===this.currentMode?this.getClusterElements(e,i):this.getElementByIndex(e,i)},i.prototype.isAlreadySelected=function(e,i,o){if("click"===i?(this.currentMode=this.chart.selectionMode,this.styleId=this.chart.element.id+"_ej2_chart_selection"):"mousemove"!==i&&"pointermove"!==i||(this.currentMode=this.chart.highlightMode,this.highlightDataIndexes=[],this.styleId=this.chart.element.id+"_ej2_chart_highlight"),"None"!==this.chart.highlightMode&&"None"===this.chart.selectionMode&&"click"===i)return!1;if(("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)&&this.previousSelectedEle&&this.previousSelectedEle[0]){var r=void 0,n=e.nodeName;e.parentNode&&(r=("path"===n||"shape"===n)&&e.id.indexOf("region")>1);for(var a=function(e){var n;l.previousSelectedEle[e].hasAttribute("class")&&(l.previousSelectedEle[e].getAttribute("class").indexOf("highlight")>-1&&(r||"click"===i)?(l.previousSelectedEle[e].classList.forEach(function(e){e.indexOf("selection")>-1&&(n=e)}),l.previousSelectedEle[e].removeAttribute("class"),n&&l.addSvgClass(l.previousSelectedEle[e],n),l.previousSelectedEle[e].classList.remove(l.styleId+"_series_"+o.series),""===l.chart.highlightColor||(0,t.isNullOrUndefined)(l.chart.highlightColor)||"None"!==l.chart.highlightPattern||l.previousSelectedEle[e].setAttribute("fill",l.control.visibleSeries[l.indexFinder(l.previousSelectedEle[e].id).series].interior),l.addOrRemoveIndex(l.highlightDataIndexes,l.indexFinder(l.previousSelectedEle[e].id))):!r&&l.previousSelectedEle[e].getAttribute("class").indexOf("highlight")>-1&&l.performSelection(l.indexFinder(l.previousSelectedEle[e].id),l.chart,l.previousSelectedEle[e]))},l=this,s=0;s<this.previousSelectedEle.length;s++)a(s)}return!0},i.prototype.mouseClick=function(e){this.chart.rotateActivate||this.calculateSelectedElements(e.target,e.type)},i.prototype.calculateSelectedElements=function(e,i){if(!(0,t.isNullOrUndefined)(e)&&!("None"===this.chart.selectionMode&&"None"===this.chart.highlightMode||e.id&&-1===e.id.indexOf(this.chart.element.id+"-"))&&("mousemove"!==i&&"pointermove"!==i||!e.hasAttribute("class")||!(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))&&(this.isAlreadySelected(e,i,this.indexFinder(e.id)),e.id&&e.id.indexOf("-series-")>-1&&-1===e.id.indexOf("_Text_"))){this.performSelection(this.indexFinder(e.id),this.chart,e)}},i.prototype.performSelection=function(e,t,i){switch(this.isSeriesMode="Series"===this.currentMode,this.currentMode){case"Series":this.selection(t,e,this.getSeriesElements(t.series[e.series])),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries);break;case"Point":!isNaN(e.point)&&i&&(this.selection(t,e,this.getElementByIndex(t,e)),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries));break;case"Cluster":isNaN(e.point)||(this.clusterSelection(t,e),this.selectionComplete(t,e,this.currentMode),this.blurEffect(t.element.id,t.visibleSeries))}},i.prototype.selectionComplete=function(e,t,i){var o,r,n,a,l,s=[];if("Cluster"===i)for(var h=0,c=e.visibleSeries;h<c.length;h++){if((u=c[h]).visible)for(var d=0;d<this.selectedDataIndexes.length;d++)r=e.isMultiSelect?this.selectedDataIndexes[d].point:t.point,n=u.index,o=u.points,isNaN(r)||(a=o[r].yValue,l=o[r].xValue,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),s.push({x:l,y:a,seriesIndex:n,pointIndex:r}))}else if("Series"===i)if(e.isMultiSelect)for(d=0;d<this.selectedDataIndexes.length;d++)n=this.selectedDataIndexes[d].series,this.selectedDataIndexes.length>0&&s.push({seriesIndex:n});else n=this.selectedDataIndexes.length>0?this.selectedDataIndexes[0].series:this.highlightDataIndexes&&this.highlightDataIndexes.length>0?this.highlightDataIndexes[0].series:0,(this.selectedDataIndexes.length>0||this.highlightDataIndexes&&this.highlightDataIndexes.length>0)&&s.push({seriesIndex:n});else if("Point"===i){var p=[];p=this.styleId.indexOf("highlight")>-1?this.highlightDataIndexes:this.selectedDataIndexes;for(d=0;d<p.length;d++){var u;r=p[d].point,n=p[d].series,o=(u=e.series[n]).points,isNaN(r)||(l=o[r].xValue,a=o[r].yValue,"Category"===e.primaryXAxis.valueType?l=o[r].x.toLocaleString():"DateTime"===e.primaryXAxis.valueType&&(l=new Date(o[r].xValue)),s.push({x:l,y:a,seriesIndex:n,pointIndex:r}))}}var g={selectedDataValues:s,cancel:!1,chart:e};e.trigger(ne,g)},i.prototype.selection=function(e,i,o){e.isMultiSelect||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectElements(e,this.selectedDataIndexes,i,e.series);var r=i.series;if(!(0,t.isNullOrUndefined)(o[0])){e.visibleSeries[r].isRectSeries&&o[0].id&&document.getElementById(o[0].id+"_Symbol")&&o.push(qt(o[0].id+"_Symbol"));var n=void 0,a=o[0]&&(o[0].getAttribute("class")||"");o[0]&&a.indexOf(this.getSelectionClass(o[0].id))>-1?this.removeStyles(o):(this.previousSelectedEle="None"!==e.highlightMode||e.legendSettings.enableHighlight?o:[],this.chart.selection3DModule&&(this.chart.selection3DModule.previousSelectedEle=o),this.applyStyles(o),n=!0),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,i,n):this.addOrRemoveIndex(this.selectedDataIndexes,i,n)}},i.prototype.clusterSelection=function(e,t){this.selection(e,t,this.getClusterElements(e,new k(t.series,t.point)))},i.prototype.removeMultiSelectElements=function(e,t,i,o){for(var r,n=0;n<t.length;n++)r=o[t[n].series],(this.isSeriesMode&&!this.toEquals(t[n],i,this.isSeriesMode)||"Cluster"===this.currentMode&&!this.toEquals(t[n],i,!1)||!this.isSeriesMode&&this.toEquals(t[n],i,!0)&&!this.toEquals(t[n],i,!1))&&(this.removeStyles(this.findElements(e,r,t[n])),t.splice(n,1),n--)},i.prototype.blurEffect=function(e,i){for(var o=this.checkVisibility(this.highlightDataIndexes,this.chart)||this.checkVisibility(this.selectedDataIndexes,this.chart),r=function(i){var r=i.index,a=n.chart.visibleSeries[i.index].interior,l=[];i.visible&&(document.querySelectorAll('[id*="region-series-'+i.index+'"]').forEach(function(e){l.push(e)}),n.checkSelectionElements(l,n.generateStyle(i),o,r,a),(0,t.isNullOrUndefined)(qt(e+"SymbolGroup"+i.index))||n.checkSelectionElements(l,n.generateStyle(i),o,r,a))},n=this,a=0,l=i;a<l.length;a++){r(l[a])}},i.prototype.checkSelectionElements=function(e,i,o,r,n){void 0===r&&(r=0),void 0===n&&(n="#D3D3D3");var a,l,s,h=this.isSeriesMode?e||[e]:e;"None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(h=e);for(var c=e,d=0;d<h.length;d++)a=h[d].getAttribute("class")||"",l=h[d].parentNode.getAttribute("class")||"","None"===this.chart.selectionMode||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight||(i=a.indexOf("selection")>0||a.indexOf("highlight")>0?a:i),-1===a.indexOf(i)&&-1===l.indexOf(i)&&o?this.addSvgClass(h[d],this.unselected):(c=h[d],-1!==a.indexOf(this.unselected)&&this.chart.tooltip3DModule&&i.indexOf("highlight")>0&&this.chart.highlightAnimation(h[d],r,700,.3),this.removeSvgClass(h[d],this.unselected),this.removeSvgClass(h[d].parentNode,this.unselected));this.control.legend3DModule&&this.control.legendSettings.visible&&(s=qt(this.control.element.id+"_chart_legend_shape_"+r))&&(s.hasAttribute("class")&&(this.removeSvgClass(s,s.getAttribute("class")),(0,t.isNullOrUndefined)(this.chart.highlightColor&&""!==this.chart.highlightColor)||this.chart.legendSettings.enableHighlight||(s.setAttribute("stroke",n),"None"===this.chart.highlightPattern&&s.setAttribute("fill",n))),c.length>0?(a=c[0].getAttribute("class"),l=c[0].parentNode.getAttribute("class")||""):c&&(a=c.getAttribute("class")||"",l=c.parentNode.getAttribute("class")||""),-1===a.indexOf(i)&&-1===l.indexOf(i)&&o?(this.addSvgClass(s,"None"===this.chart.highlightMode&&this.chart.legendSettings.enableHighlight?i:this.unselected),this.removeSvgClass(s,i),""===this.chart.highlightColor||(0,t.isNullOrUndefined)(this.chart.highlightColor)||(s.setAttribute("stroke",this.control.visibleSeries[r].interior),"None"===this.chart.highlightPattern&&s.setAttribute("fill",this.control.visibleSeries[r].interior))):(this.removeSvgClass(s,this.unselected),(0,t.isNullOrUndefined)(this.chart.highlightColor)||""===this.chart.highlightColor||(s.setAttribute("stroke",this.control.visibleSeries[r].interior),"None"===this.chart.highlightPattern&&s.setAttribute("fill",this.control.visibleSeries[r].interior)),""===a&&""===l||"EJ2-Trackball"===a.trim()?this.removeSvgClass(s,i):(this.addSvgClass(s,i),i.indexOf("highlight")>0&&""!==this.chart.highlightColor&&"transparent"!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&(s.setAttribute("stroke",this.chart.highlightColor),this.styleId.indexOf("highlight")>0&&"None"===this.chart.highlightPattern&&s.setAttribute("fill",this.chart.highlightColor)))))},i.prototype.applyStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r){if(this.removeSvgClass(r.parentNode,this.unselected),this.removeSvgClass(r,this.unselected),"fill"===this.chart.series[0].pointColorMapping){var n=this.getSelectionClass(r.id),a=n.indexOf("highlight")>-1?parseInt(n.split(this.chart.element.id+"_ej2_chart_highlight_series_")[1],10):parseInt(n.split(this.chart.element.id+"_ej2_chart_selection_series_")[1],10),l=this.styleId.indexOf("highlight")>0?this.chart.highlightPattern:this.chart.selectionPattern,s=void 0;if((n.indexOf("highlight")>-1||n.indexOf("selection")>-1)&&(s=document.getElementById(this.chart.element.id+"_"+l+"_Selection_"+a)),-1===r.id.indexOf("legend")&&-1===r.id.indexOf("Group")&&null!=s)for(var h=1;h<s.children.length;h++)s.children[h].setAttribute("fill",r.getAttribute("fill")),s.children[h].setAttribute("stroke",r.getAttribute("fill"))}if(this.addSvgClass(r,this.getSelectionClass(r.id)),this.chart.tooltip3DModule&&this.getSelectionClass(r.id).indexOf("highlight")>0){a=parseFloat(r.id.split("-series-")[1].split("-point-")[0]);this.chart.stopElementAnimation(r,a)}this.styleId.indexOf("highlight")>0&&""!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&"None"===this.chart.highlightPattern&&"transparent"!==this.chart.highlightColor&&r.setAttribute("fill",this.chart.highlightColor)}}},i.prototype.getSelectionClass=function(e){return this.generateStyle(this.control.visibleSeries[this.indexFinder(e).series])},i.prototype.removeStyles=function(e){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(r&&(this.removeSvgClass(r,this.getSelectionClass(r.id)),"None"===this.chart.highlightPattern&&""!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&"transparent"!==this.chart.highlightColor)){var n=this.control.visibleSeries[this.indexFinder(r.id).series].interior;"ZLight"===r.getAttribute("name")&&(n=this.chart.polygon.applyZLight(n,this.control)),"XLight"===r.getAttribute("name")&&(n=this.chart.polygon.applyXLight(n,this.control)),r.setAttribute("fill",n)}}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.toEquals(e[o],t,this.isSeriesMode)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.toEquals=function(e,t,i){return(e.series===t.series||"Cluster"===this.currentMode&&!i)&&(i||e.point===t.point)},i.prototype.redrawSelection=function(e,i,o){this.isSeriesMode="Series"===i,(0,t.isNullOrUndefined)(i)||(e.isRedrawSelection=!o);var r=(0,t.extend)([],this.selectedDataIndexes,null,!0),n=(0,t.extend)([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&n.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes,e.series),r=n):this.removeSelectedElements(e,this.selectedDataIndexes,e.series),this.blurEffect(e.element.id,e.visibleSeries),this.selectDataIndex(e,r)},i.prototype.legendSelection=function(e,t,i,o){if("mousemove"===o){if(i.id.indexOf("text")>1&&(i=qt(i.id.replace("text","shape"))),i.id.indexOf("marker")>1&&(i=qt(i.id.replace("_marker",""))),i.id.indexOf("g")>1&&(i=qt(i.id.replace("_g_","_shape_"))),i.hasAttribute("class")&&(i.getAttribute("class").indexOf("highlight")>-1||i.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.chart.highlightMode}else"click"===o&&(i.id.indexOf("text")>1&&(i=qt(i.id.replace("text","shape"))),i.id.indexOf("g")>1&&(i=qt(i.id.replace("_g_","_shape_"))));var r=this.indexFinder(i.id);if(this.isAlreadySelected(i,o,r)){var n=this.generateStyle(e.visibleSeries[t]),a=document.querySelectorAll("."+n);this.isSeriesMode="Series"===this.currentMode;var l=!0;if(a.length>0)this.removeSelection(e,t,a,n,l);else{for(var s=0,h=e.visibleSeries;s<h.length;s++){var c=h[s];c.index===t||e.isMultiSelect||(n=this.generateStyle(e.visibleSeries[c.index]),a=document.querySelectorAll("."+n),this.removeSelection(e,t,a,n,l))}var d=[];(d="Point"===this.chart.legendSettings.mode?this.getElementByIndex(e,r):this.getSeriesElements(e.visibleSeries[t])).length>0&&(this.checkSelectionElements(d,n,!1,t,""),this.isSeriesMode=!0,this.selection(e,new k(r.series,NaN),d),this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries))}}},i.prototype.removeSelection=function(e,t,i,o,r){if(i.length>0){for(var n=[],a=0;a<i.length;a++)n.push(i[a]);this.removeStyles(n),this.isSeriesMode=!0,this.addOrRemoveIndex(this.selectedDataIndexes,new k(t,NaN));for(var l=0,s=e.visibleSeries;l<s.length;l++){var h=s[l];if(o=this.generateStyle(h),document.querySelectorAll("."+o).length>0){for(var c=0,d=n;c<d.length;c++){var p=d[c];this.checkSelectionElements(p,o,!0,t,"")}r=!1;break}}r&&(this.isSeriesMode="Series"===e.selectionMode,this.blurEffect(e.element.id,e.visibleSeries))}},i.prototype.getSeriesElements=function(e){var t=[];e.visible&&document.querySelectorAll('[id*="region-series-'+e.index+'"]').forEach(function(e){t.push(e)});return t},i.prototype.indexFinder=function(e){var t=["NaN","NaN"];return e.indexOf("-point-")>-1?t=e.split("-series-")[1].split("-point-"):e.indexOf("-border-")>-1?t[0]=e.split("-border-")[1]:e.indexOf("-series-")>-1?t[0]=e.split("-series-")[1]:e.indexOf("_chart_legend_shape_")>-1&&((t=e.split("_chart_legend_shape_"))[0]=t[1]),new k(parseInt(t[0],10),parseInt(t[1],10))},i.prototype.removeSelectedElements=function(e,t,i){var o;t=e.isRedrawSelection?t:t.splice(0,t.length);for(var r=0,n=i;r<n.length;r++){var a=n[r];if(a.visible){o=this.getSeriesElements(a),this.removeStyles(o);for(var l=0,s=o;l<s.length;l++){var h=s[l];this.removeStyles(this.getChildren(h))}}}},i.prototype.mouseLeave=function(){this.completeSelection()},i.prototype.completeSelection=function(){var e=this.chart;"None"!==e.selectionMode&&(this.currentMode=e.selectionMode)},i.prototype.mouseMove=function(e){var i=this.chart,o=e.target,r=e.type;this.highlightChart(o,r),"None"!==i.selectionMode&&"touchmove"===r&&(t.Browser.isIos||t.Browser.isIos7)&&e.preventDefault&&e.preventDefault()},i.prototype.highlightChart=function(e,i){if(this.chart.rotateActivate||"None"===this.chart.highlightMode&&!this.chart.legendSettings.enableHighlight);else if(!(0,t.isNullOrUndefined)(e)){if(e.id.indexOf("_legend_text")>1&&(e=qt(e.id.replace("text","shape"))),e.hasAttribute("class")&&(e.getAttribute("class").indexOf("highlight")>-1||e.getAttribute("class").indexOf("selection")>-1))return;this.calculateSelectedElements(e,i),this.chart.highlight3DModule.highlightDataIndexes&&this.chart.highlight3DModule.highlightDataIndexes.length>0&&-1===e.id.indexOf("_chart_legend_")&&-1===e.id.indexOf("-series-")&&this.removeLegendHighlightStyles()}},i.prototype.removeLegendHighlightStyles=function(){var e;this.chart.highlight3DModule.highlightDataIndexes=[];for(var i=0;i<this.chart.visibleSeries.length;i++)if(e=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i])),0===this.selectedDataIndexes.length){for(e=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));e.length>0;){if((r=e[0])&&(this.removeSvgClass(r,r.getAttribute("class")),"None"===this.chart.highlightPattern&&""!==this.chart.highlightColor&&!(0,t.isNullOrUndefined)(this.chart.highlightColor)&&"transparent"!==this.chart.highlightColor)){var o=this.control.visibleSeries[i].interior;"ZLight"===r.getAttribute("name")&&(o=this.chart.polygon.applyZLight(o,this.control)),"XLight"===r.getAttribute("name")&&(o=this.chart.polygon.applyXLight(o,this.control)),-1!==r.id.indexOf("_chart_legend_shape")&&r.getAttribute("stroke")&&r.setAttribute("stroke",o),r.setAttribute("fill",o)}}for(e=document.getElementsByClassName(this.unselected);e.length>0;){(r=e[0])&&(this.removeSvgClass(r,r.getAttribute("class")),this.chart.tooltip3DModule&&this.generateStyle(this.chart.visibleSeries[i]).indexOf("highlight")>-1&&this.chart.highlightAnimation(r,i,700,.3))}}else for(e=document.getElementsByClassName(this.generateStyle(this.chart.visibleSeries[i]));e.length>0;){var r;(r=e[0])&&(this.removeSvgClass(r,r.getAttribute("class")),this.addSvgClass(r,this.unselected))}},i.prototype.getModuleName=function(){return"Selection3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(kn),Zd=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),qd=function(e){function i(t){var i=e.call(this,t)||this;return i.chart=t,i.wireEvents(),i}return Zd(i,e),i.prototype.wireEvents=function(){this.chart.isDestroyed||this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.chart.isDestroyed||this.chart.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[],this.isSeriesMode="Series"===e.highlightMode},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"Highlight3D"},i.prototype.destroy=function(){this.unWireEvents()},i}(Yd),Qd=function(){function e(e){this.chart=e}return e.prototype.export=function(e,t){var i=new sa(this.chart),o={cancel:!1,width:null,height:null};this.chart.trigger(xe,o),o.cancel||i.export(e,t,void 0,[this.chart])},e.prototype.pdfExport=function(e,t,i,o,r,n,a,l,s){var h=new sa(this.chart);i=i||[this.chart];var c={cancel:!1,width:o,height:r};this.chart.trigger(xe,c),c.cancel||h.export("PDF",e,t,i,o=c.width,r=c.height,n,a,l,s)},e.prototype.getDataUrl=function(e){return new sa(e).getDataUrl(e)},e.prototype.getModuleName=function(){return"Export3D"},e.prototype.destroy=function(){},e}();var $d=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Kd=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Jd=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return $d(i,e),Kd([(0,t.Property)("Normal")],i.prototype,"fontStyle",void 0),Kd([(0,t.Property)("16px")],i.prototype,"size",void 0),Kd([(0,t.Property)("Normal")],i.prototype,"fontWeight",void 0),Kd([(0,t.Property)("")],i.prototype,"color",void 0),Kd([(0,t.Property)("Segoe UI")],i.prototype,"fontFamily",void 0),Kd([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),ep=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return $d(i,e),Kd([(0,t.Property)(null)],i.prototype,"color",void 0),Kd([(0,t.Property)(1)],i.prototype,"width",void 0),Kd([(0,t.Property)(null)],i.prototype,"length",void 0),Kd([(0,t.Property)("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),tp=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return $d(i,e),Kd([(0,t.Property)(!1)],i.prototype,"visible",void 0),Kd([(0,t.Property)(null)],i.prototype,"name",void 0),Kd([(0,t.Property)("transparent")],i.prototype,"fill",void 0),Kd([(0,t.Property)("Inside")],i.prototype,"position",void 0),Kd([(0,t.Property)(0)],i.prototype,"angle",void 0),Kd([(0,t.Property)(!1)],i.prototype,"enableRotation",void 0),Kd([(0,t.Complex)({width:null,color:null},u)],i.prototype,"border",void 0),Kd([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:"400",color:null},Jd)],i.prototype,"font",void 0),Kd([(0,t.Complex)({},ep)],i.prototype,"connectorStyle",void 0),Kd([(0,t.Property)(null)],i.prototype,"template",void 0),Kd([(0,t.Property)("")],i.prototype,"format",void 0),i}(t.ChildProperty),ip=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return $d(i,e),i.prototype.renderDataLabel=function(e,i){var o=i.element.id+"-series-"+e.index+"-data-label-collections";e.labelBound=(0,t.isNullOrUndefined)(e.labelBound)?new R.Rect(1/0,1/0,-1/0,-1/0):e.labelBound,e.dataLabelElement=(0,t.createElement)("div",{id:o});for(var r=0;r<e.points.length;r++){var n=e.points[r],a=this.getDatalabelText(e.dataLabel.format,i,n.text?n.text:(0,t.isNullOrUndefined)(n.y)?"":n.y.toString()),l={width:e.dataLabel.border.width,color:e.dataLabel.border.color,dashArray:e.dataLabel.border.dashArray},s=(0,t.extend)({},(0,t.getValue)("properties",e.dataLabel.font),null,!0),h={cancel:!1,name:N,series:e,point:n,text:a,border:l,color:e.dataLabel.fill,template:e.dataLabel.template,font:s};i.trigger(N,h),n.argsData=h,!n.visible||h.cancel||(0,t.isNullOrUndefined)(n.y)||this.draw3DDataLabel(e,n.index,n,i)}e.dataLabel.template&&ni(!1,document.getElementById(i.element.id+"_Secondary_Element"),e.dataLabelElement,i.redraw,!1,"x","y",null,"",!1,!1,null)},i.prototype.createDataLabelTemplate=function(e,i,o,r,n,a,l,s,h){var c=this.createTemplate((0,t.createElement)("div",{id:h.element.id+"-series-"+i.index+"-data-label-"+a,styles:"position: absolute;background-color:"+n.color+";"+ei(o.font,h.themeStyle.datalabelFont)+";border:"+n.border.width+"px solid "+n.border.color+";"}),n.template,h,r,i,h.element.id+"-data-label-");this.calculateTemplateLabelSize(e,c,r,i,o,l,s)},i.prototype.calculateTemplateLabelSize=function(e,t,i,o,r,n,a,l){var s=ti(t,n,l);t.style.left=a.x-s.width/2+"px",t.style.top=a.y-s.height+"px",ni(!1,e,t,n,!0,"left","top")},i.prototype.createTemplate=function(e,t,i,o,r,n){var a,l=Qt(t);try{var s=l?l({chart:i,series:r,point:o},i,n+"-template",n):[];if(s.length)for(var h=(a=Array.prototype.slice.call(s)).length,c=0;c<h;c++)e.appendChild(a[c]);i.isReact&&i.renderReactTemplates(void 0)}catch(t){return e}return e},i.prototype.draw3DDataLabel=function(e,i,o,r){var n,a,l,s,h=e.dataLabel.connectorStyle.length?parseFloat(e.dataLabel.connectorStyle.length):e.dataLabel.connectorStyle.length,c={data:null},d={x:0,y:0},p=e.index,u=o.symbolLocation.center,g=o.symbolLocation.radius*e.coefficient;(0,t.isNullOrUndefined)(h)&&(h=(0,R.measureText)(o.argsData.text,e.dataLabel.font,r.themeStyle.datalabelFont).height),null!=e&&"Inside"!==e.dataLabel.position?n=o.symbolLocation.radius+h:null!=e&&(n=g+(o.symbolLocation.radius-g)/2),a=d.x=u.x+parseFloat(o.argsData.font.size)/3+n*Math.cos(o.symbolLocation.angle),l=d.y=u.y+parseFloat(o.argsData.font.size)/3+n*Math.sin(o.symbolLocation.angle),c.data={text:o.argsData.text,location:{x:a,y:l},series:e,pointIndex:i,seriesIndex:p},c.data.Text=c.data.text;var m=(0,R.measureText)(o.argsData.text,e.dataLabel.font,r.themeStyle.datalabelFont);a=d.x=c.data.location.x,l=d.y=c.data.location.y;var y,f=e.dataLabel.template?"template":"text",v=this.getSaturatedColor(o,o.argsData.color,r),b={width:m.width,height:m.height,fill:v,label:c.data,textAnchor:"middle",tag:f,font:o.argsData.font,angle:0,id:r.element.id+"-svg-data-label-text-"+i,child:r.groupElement};if(r.circularChartLegend3DModule&&r.legendSettings.visible&&o.visible&&"Outside"===e.dataLabel.position){var x=r.circularChartLegend3DModule.legendBounds,S=r.legendSettings.border.width/2;x=new R.Rect(x.x-S,x.y-S,x.width+2*S,x.height+2*S);var C=new R.Rect(b.label.location.x+m.width/2+20,b.label.location.y+2.5,b.width,b.height);if(di(C,x)&&("Right"===r.circularChartLegend3DModule.position?b.width=x.x-C.x:"Left"===r.circularChartLegend3DModule.position&&(b.width=C.x-(x.x+x.width),b.width<0&&(b.width+=C.width,b.label.location.x=x.x+x.width-m.width/2+20)),C&&b.width<C.width&&(b.label.text=Fi(b.width,b.label.text,e.dataLabel.font,r.enableRtl,r.themeStyle.datalabelFont)),3===b.label.text.length&&b.label.text.indexOf("...")>-1))return}if("Inside"!==e.dataLabel.position&&(y=this.updateConnectorLine(o,i,e,h,r)),e.dataLabel.template&&"Inside"!==e.dataLabel.position){var F=this.createTemplate((0,t.createElement)("div",{id:r.element.id+"-series-data-label-0",styles:"position: absolute;background-color:"+o.argsData.color+";"+ei(o.argsData.font,r.themeStyle.datalabelFont)+";border:"+o.argsData.border.width+"px solid "+o.argsData.border.color+";"}),o.argsData.template,r,o,e,r.element.id+"-data-label-");m=(0,R.measureText)(F.textContent,e.dataLabel.font,r.themeStyle.datalabelFont)}r.circularChartLegend3DModule&&r.legendSettings.visible&&"Outside"===e.dataLabel.position&&r.visibleSeries[0].findMaxBounds(r.visibleSeries[0].labelBound,{x:a,y:l,width:m.width,height:m.height});var w=0,L=0,P=o.symbolLocation.angle;if("Inside"!==e.dataLabel.position&&((P>1.5&&P<1.8||P>1.3&&P<1.5||P>4.5&&P<4.8||P>4.3&&P<4.5)&&(d.x=y.x,d.y=y.y,P=y.angle),P<Math.PI/2||P>=Math.PI/2+Math.PI?(w=m.width/2+20,L=2.5):(w=-(m.width/2+("transparent"!==o.argsData.color||o.argsData.border.color?25:20)),L=2.5)),!o.argsData.template&&""!==c.data.text){var A={tag:"dataLabel",series:e,point:o,pointIndex:i,id:r.element.id+"-svg-"+p+"-data-label-"+i,child:r.groupElement},M=void 0,D="";if(e.dataLabel.enableRotation){if(0===(M=s=e.dataLabel.angle)){var k=function(e){return e*(180/Math.PI)}(o.symbolLocation.angle);"Outside"===e.dataLabel.position?s=0:k>=90&&k<=260?(s=k+180,d.x=d.x-parseFloat(o.argsData.font.size)/2):s=k}else s=M>360?M-360:M<-360?M+360:M;D="rotate("+s+","+d.x+","+d.y+")"}A.transform=D;var T=r.polygon.createTextElement(r.vector.vector3D(a+w,l+L,o.symbolLocation.z?o.symbolLocation.z:0),A,0,-m.height);r.circular3DPolygon.push(T)}b.angle=e.dataLabel.enableRotation?0!==e.dataLabel.angle?e.dataLabel.angle:s:0;var E=r.polygon.createTextElement(r.vector.vector3D(d.x+w,d.y+L,-1),b,0,-m.height);r.circular3DPolygon.push(E)},i.prototype.getSaturatedColor=function(e,t,i){var o,r=yi(fi(o="transparent"===(o="transparent"===t?this.getLabelBackground(e,i):t)?i.theme.indexOf("Dark")>-1||i.theme.indexOf("HighContrast")>-1?"black":"white":o)),n=Math.round((299*r.r+587*r.g+114*r.b)/1e3);return"Bootstrap5"===i.theme?"#212529":"Bootstrap5Dark"===i.theme?"#DEE2E6":n>=128?i.theme.indexOf("Tailwind3")>-1?"#4B5563":"black":i.theme.indexOf("Tailwind3")>-1?"#D1D5DB":"white"},i.prototype.getLabelBackground=function(e,t){return"Outside"===e.argsData.series.dataLabel.position?t.background||t.themeStyle.background:e.y?e.color:t.theme.indexOf("dark")?"white":"black"},i.prototype.getDatalabelText=function(e,t,i){if(Number(i)){var o=null!==e.match("{value}"),r=t.intl.getNumberFormat({format:o?"":e,useGrouping:t.useGroupingSeparator});i=o?e.replace("{value}",r(parseFloat(i))):r(parseFloat(i))}return i},i.prototype.updateConnectorLine=function(e,t,i,o,r){var n=[],a=e.symbolLocation,l=a.center.x+Math.cos(a.angle)*a.radius,s=a.center.y+Math.sin(a.angle)*a.radius;n.push({x:l,y:s});var h,c=a.radius+o,d=a.angle;return l=a.center.x+Math.cos(d)*c,s=a.center.y+Math.sin(d)*c,n.push({x:l,y:s}),h=d<Math.PI/2||d>=Math.PI/2+Math.PI?10:-10,n.push({x:l+h,y:s}),this.drawLineSegment(n,t,i,r),{x:l,y:s,angle:d}},i.prototype.drawLineSegment=function(e,t,i,o){for(var r=[],n=0;n<e.length;n++)r.push(o.vector.vector3D(e[n].x,e[n].y,0));var a=i.index,l=i.points[t].color,s=i.dataLabel.connectorStyle.color?i.dataLabel.connectorStyle.color:l,h={width:i.dataLabel.connectorStyle.width,stroke:s,child:o.groupElement,tag:"polyline",dashArray:i.dataLabel.connectorStyle.dashArray,id:o.element.id+"-datalabel-series-"+a+"-connector-"+t},c=o.polygon.createPolyline(r,h);o.circular3DPolygon.push(c)},i.prototype.getModuleName=function(){return"CircularChartDataLabel3D"},i.prototype.destroy=function(){},i}(t.ChildProperty),op=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),rp=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},np=function(){this.visible=!0,this.isExplode=!1,this.argsData=null},ap=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return op(i,e),rp([(0,t.Property)(null)],i.prototype,"fill",void 0),rp([(0,t.Property)("Gap")],i.prototype,"mode",void 0),i}(t.ChildProperty),lp=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.points=[],t.sumOfPoints=0,t.isRectSeries=!0,t.clipRect=new R.Rect(0,0,0,0),t.category="Series",t.rightSidePoints=[],t.leftSidePoints=[],t.segments=[],t.isExploded=!1,t}return op(i,e),i.prototype.refreshDataManager=function(e,i){var o=this,r=this.dataSource||e.dataSource;r instanceof ao.DataManager||!(0,t.isNullOrUndefined)(this.query)?this.dataModule.getData(this.dataModule.generateQuery().requiresCount()).then(function(t){return o.dataManagerSuccess(t,e)}):this.dataManagerSuccess({result:r,count:r.length},e,i)},i.prototype.dataManagerSuccess=function(e,t,i){void 0===i&&(i=!0);var o={name:W,series:this,data:e.result};t.allowServerDataBinding=!1,t.trigger(W,o),this.resultData=""!==e.result?e.result:[],i||this.getPoints(this.resultData,t),++t.seriesCounts===t.visibleSeries.length&&i&&(this.getPoints(this.resultData,t),t.refreshChart())},i.prototype.getPoints=function(e,i){var o,r=Object.keys(e).length;if(this.sumOfPoints=0,0===r)return this.points=[],null;this.findSumOfPoints(e),this.points=[];for(var n=this.palettes.length?this.palettes:function(e){var t;switch(e){case"Fabric":case"FabricDark":t=["#4472c4","#ed7d31","#ffc000","#70ad47","#5b9bd5","#c1c1c1","#6f6fe2","#e269ae","#9e480e","#997300"];break;case"Bootstrap4":case"Bootstrap":case"BootstrapDark":t=["#a16ee5","#f7ce69","#55a5c2","#7ddf1e","#ff6ea6","#7953ac","#b99b4f","#407c92","#5ea716","#b91c52"];break;case"HighContrastLight":case"HighContrast":t=["#79ECE4","#E98272","#DFE6B6","#C6E773","#BA98FF","#FA83C3","#00C27A","#43ACEF","#D681EF","#D8BC6E"];break;case"MaterialDark":t=["#9ECB08","#56AEFF","#C57AFF","#61EAA9","#EBBB3E","#F45C5C","#8A77FF","#63C7FF","#FF84B0","#F7C928"];break;case"Tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind3Dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"Tailwind":t=["#5A61F6","#65A30D","#334155","#14B8A6","#8B5CF6","#0369A1","#F97316","#9333EA","#F59E0B","#15803D"];break;case"TailwindDark":t=["#8B5CF6","#22D3EE","#F87171","#4ADE80","#E879F9","#FCD34D","#F97316","#2DD4BF","#F472B6","#10B981"];break;case"Bootstrap5Dark":case"Bootstrap5":t=["#FD7E14","#6610F2","#6F42C1","#D63384","#DC3545","#FFC107","#198754","#0DCAF0"];break;case"FluentDark":case"Fluent":t=["#1AC9E6","#DA4CB2","#EDBB40","#AF4BCF","#FF7266","#1BD565","#EE993D","#5887FF","#EC548D","#7D39C0"];break;case"Fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"Fluent2Dark":case"Fluent2HighContrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"Material3":t=["#6355C7","#00AEE0","#FFB400","#F7523F","#963C70","#FD7400","#4BE0BC","#2196F5","#DE3D8A","#162F88"];break;case"Material3Dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#00bdae","#404041","#357cd2","#e56590","#f8b883","#70ad47","#dd8abd","#7f84e8","#7bb4eb","#ea7a57"]}return t}(i.theme),a=0;a<r;a++)o=this.setPoints(e,a,i),(0,t.isNullOrUndefined)(o.y)&&(o.visible=!1),this.pushPoints(o,n,i)},i.prototype.pushPoints=function(e,t,i){e.index=this.points.length,e.isExplode=this.explodeAll||e.index===this.explodeIndex,e.color=e.color||t[e.index%t.length];var o={cancel:!1,name:V,series:this,point:e,fill:e.color};i.trigger(V,o),e.color=o.fill,e.visible=!o.cancel,this.points.push(e)},i.prototype.findSumOfPoints=function(e){for(var i=Object.keys(e).length,o=0;o<i;o++)(0,t.isNullOrUndefined)(e[o])||(0,t.isNullOrUndefined)(e[o][this.yName])||isNaN(e[o][this.yName])||(this.sumOfPoints+=Math.abs(e[o][this.yName]))},i.prototype.setPoints=function(e,i,o){var r=new np;return r.x=(0,t.getValue)(this.xName,e[i]),r.y=(0,t.getValue)(this.yName,e[i]),r.percentage=+(r.y/this.sumOfPoints*100).toFixed(2),r.legendImageUrl=(0,t.getValue)(this.legendImageUrl,e[i]),r.color=(0,t.getValue)(this.pointColorMapping,e[i]),r.text=r.originalText=(0,t.getValue)(this.dataLabel.name||"",e[i]),r.tooltip=(0,t.getValue)(this.tooltipMappingName||"",e[i]),r.sliceRadius=(0,t.getValue)(this.radius?this.radius:"80%",e[i]),r.sliceRadius=(0,t.isNullOrUndefined)(r.sliceRadius)?"80%":r.sliceRadius,r.separatorY=o.intl.formatNumber(r.y,{useGrouping:o.useGroupingSeparator}),this.setEmptyPoint(r,i,e,o),r},i.prototype.draw=function(e,i){var o=i.visibleSeries.indexOf(e);this.calculateSize(i,e);var r=e.radius?e.radius:t.Browser.isDevice&&"Outside"===e.dataLabel.position?"40%":"80%",n=parseInt(r,10);(-1===r.indexOf("%")&&"number"!=typeof n||isNaN(n))&&(this.isRadiusMapped=!0),e.size=this.isRadiusMapped?.8:parseInt(r,10)/100,e.coefficient=parseInt(e.innerRadius,10)/100,i.circularRadius[o]=.97*Math.min(e.actualWidth/2-(i.legendSettings.visible&&i.circularChartLegend3DModule&&("Right"===i.legendSettings.position||"Left"===i.legendSettings.position)?i.circularChartLegend3DModule.legendBounds.width:0),e.actualHeight/2)*e.size,i.innerRadius[o]=e.coefficient*i.circularRadius[o],this.createPolygons(e,i),this.dataLabel.visible&&i.circularChartDataLabel3DModule.renderDataLabel(e,i),ni(!1,i.svgObject,i.groupElement,i.redraw);var a=new R.Size(i.availableSize.width,i.availableSize.height);i.graphics.prepareView(0,i.depth,i.rotation,i.tilt,a,i),i.graphics.view(i.svgObject,i)},i.prototype.calculateSize=function(e,t){var i=e.legendSettings,o=0,r=0,n=e.circularChartLegend3DModule?e.circularChartLegend3DModule.position:"Auto",a=e.title,l=e.subTitle,s=e.titleLocation,h=e.subTitleLocation,c=e.titleStyle.textOverflow,d=e.subTitleStyle.textOverflow,p=!(!a||"Wrap"!==c),u=!(!l||"Wrap"!==d);i.visible&&e.circularChartLegend3DModule&&"Custom"!==n&&("Right"===n||"Left"===n?o="right"===n.toLowerCase()?e.margin.right:e.margin.left+e.circularChartLegend3DModule.legendBounds.width:r="Top"===n?e.margin.top:"Bottom"===n?e.margin.bottom+e.circularChartLegend3DModule.legendBounds.height:0),t.actualWidth=e.availableSize.width-o;var g=.5*t.actualWidth+("Left"===n?o:0);if(p||u){var m=s.size.height+(u?h.size.height:0)+r;return t.actualHeight=e.svgObject.height.baseVal.value-m,{centerX:g,centerY:.5*t.actualHeight+(s.size.height+(u?h.size.height:0))}}m=(a?s.y:0)+r;return t.actualHeight=e.svgObject.height.baseVal.value-m,{centerX:g,centerY:.5*t.actualHeight+("Top"===n?m:a?s.y:0)}},i.prototype.createPolygons=function(e,t){for(var i,o,r,n=[],a=[],l=[],s=(n=0===e.segments.length?this.createPoints(e,t):e.segments).length,h=0;h<s;h++)if((i=n[h]).visible&&(r=n[h].pointIndex,o={opacity:e.opacity,interior:e.points[r].color},null!==(l=this.createSector(i,t,o,e.index))))for(var c=0;c<l.length;c++)if(a[c]||(a[c]=[]),null!==l[c])for(var d=0;d<l[c].length;d++)a[c].push(l[c][d]);for(h=0;h<a.length;h++)for(c=0;c<a[h].length;c++){var p=a[h][c];t.circular3DPolygon.push(p)}return null},i.prototype.createSector=function(e,t,i,o){var r=Math.ceil(e.actualEndValue/6),n=Math.PI/180,a=0,l=t.depth;if(r<1)return null;for(var s=[],h=e.actualEndValue/r,c=[],d=[],p=0;p<r+1;p++){var u=e.center.x+e.radius*Math.cos((e.actualStartValue+p*h)*n),g=e.center.y+e.radius*Math.sin((e.actualStartValue+p*h)*n);c[p]={x:u,y:g};var m=e.center.x+e.inSideRadius*Math.cos((e.actualStartValue+p*h)*n),y=e.center.y+e.inSideRadius*Math.sin((e.actualStartValue+p*h)*n);d[p]={x:m,y}}var f=[],v=[];for(p=0;p<r;p++)v=[this.vector(c[p].x,c[p].y,0),this.vector(c[p].x,c[p].y,l),this.vector(c[p+1].x,c[p+1].y,l),this.vector(c[p+1].x,c[p+1].y,0)],f[p]=t.polygon.polygon3D(v,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText),a++;if(s[1]=f,e.inSideRadius>0){var b=[];for(p=0;p<r;p++)v=[this.vector(d[p].x,d[p].y,0),this.vector(d[p].x,d[p].y,l),this.vector(d[p+1].x,d[p+1].y,l),this.vector(d[p+1].x,d[p+1].y,0)],b[p]=t.polygon.polygon3D(v,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText),a++;s[3]=b}var x=[],S=[];for(p=0;p<r+1;p++)x.push(this.vector(c[p].x,c[p].y,0)),S.push(this.vector(c[p].x,c[p].y,l));if(e.inSideRadius>0)for(p=r;p>-1;p--)x.push(this.vector(d[p].x,d[p].y,0)),S.push(this.vector(d[p].x,d[p].y,l));else x.push(e.center),S.push(this.vector(e.center.x,e.center.y,l));if(s[0]=[],s[0].push(t.polygon.polygon3D(x,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,s[0].push(t.polygon.polygon3D(S,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,e.inSideRadius>0){var C=[this.vector(c[0].x,c[0].y,0),this.vector(c[0].x,c[0].y,l),this.vector(d[0].x,d[0].y,l),this.vector(d[0].x,d[0].y,0)],F=[this.vector(c[r].x,c[r].y,0),this.vector(c[r].x,c[r].y,l),this.vector(d[r].x,d[r].y,l),this.vector(d[r].x,d[r].y,0)];s[2]=[],s[2].push(t.polygon.polygon3D(C,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,s[2].push(t.polygon.polygon3D(F,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++}else{C=[this.vector(c[0].x,c[0].y,0),this.vector(c[0].x,c[0].y,l),this.vector(e.center.x,e.center.y,l),this.vector(e.center.x,e.center.y,0)],F=[this.vector(c[r].x,c[r].y,0),this.vector(c[r].x,c[r].y,l),this.vector(e.center.x,e.center.y,l),this.vector(e.center.x,e.center.y,0)];s[2]=[],s[2].push(t.polygon.polygon3D(C,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++,s[2].push(t.polygon.polygon3D(F,null,e.index,null,null,i.opacity,i.interior,a.toString()+"-region-series-"+o+"-point-"+e.index,t.groupElement,e.accessibilityText)),a++}return s},i.prototype.createPoints=function(e,i){e.segments=[];for(var o=this.calculateSize(i,e),r=0,n=e.points,a=n.length,l=0;l<a;l++)n[l].visible&&!(0,t.isNullOrUndefined)(n[l].y)&&(r+=n[l].y);for(var s,h,c,d,p=360/(r=0!==r?r:1),u=e.index,g=i.innerRadius[u],m=this.getYValues(e.points),y=i.depth,f=0,v=0,b=0,x=new R.Rect(0,0,0,0),S={X:0,Y:0},C=0,F=i.circularRadius[u],w=0;w<a;w++)if(e.points[w].visible&&!(0,t.isNullOrUndefined)(m[w])){h=e.points[w].index,c=Math.abs(m[w]),v=Math.abs(c)*(2*Math.PI/r),x.x=0,x.y=0;var L=e.points[w];e.isRadiusMapped?-1!==e.points[w].sliceRadius.indexOf("%")?L.radius=Li(e.points[w].sliceRadius,this.size/2):L.radius=parseInt(e.points[w].sliceRadius,10):L.radius=F;var P=L.x+":"+L.y+", "+e.name;(0,t.isNullOrUndefined)(c)||(e.explode&&(e.explodeIndex===L.index||!e.isExploded&&e.explodeAll)&&(S.X=Math.cos(2*Math.PI*(b+c/2)/r),S.Y=Math.sin(2*Math.PI*(b+c/2)/r),x.x=.01*L.radius*S.X*Li(e.explodeOffset,100),x.y=.01*L.radius*S.Y*Li(e.explodeOffset,100)),s=this.vector(x.x+o.centerX,x.y+o.centerY,0),d=this.createSegment(s,p*b,p*c,y,L.radius,w,c,g,h,e,P),e.segments.push(d)),this.addPieDataLabel(C,m[w],f,f+v,L.radius,this.isChartRotated(i)?i.depth+5:0,s,e.points[w]),C++,f+=v,b+=c}return e.segments},i.prototype.addPieDataLabel=function(e,t,i,o,r,n,a,l){var s=(i+o)/2;l.symbolLocation={x:0,y:0,radius:0,angle:0},l.symbolLocation.x=e,l.symbolLocation.y=t,l.symbolLocation.radius=r,l.symbolLocation.angle=s,l.symbolLocation.center=a,l.startDepth=n},i.prototype.isChartRotated=function(e){var t=Math.abs(e.tilt%360),i=Math.abs(e.rotation%360);return(t>90&&t<270)!=(i>90&&i<270)},i.prototype.createSegment=function(e,t,i,o,r,n,a,l,s,h,c){return{startValue:t,endValue:i,depth:o,radius:r,index:n,yData:a,center:e,inSideRadius:l,actualEndValue:i,actualStartValue:t,pointIndex:s,series:h,visible:!0,accessibilityText:c}},i.prototype.vector=function(e,t,i){return{x:e,y:t,z:i}},i.prototype.getYValues=function(e){for(var t=[],i=e.length,o=0;o<i;o++)t.push(e[o].y);return t},i.prototype.findMaxBounds=function(e,t){e.x=t.x<e.x?t.x:e.x,e.y=t.y<e.y?t.y:e.y,e.height=t.y+t.height>e.height?t.y+t.height:e.height,e.width=t.x+t.width>e.width?t.x+t.width:e.width},i.prototype.setEmptyPoint=function(e,i,o,r){if(!(0,t.isNullOrUndefined)(e.y)&&!isNaN(e.y))return null;var n,a;switch(e.color=this.emptyPointSettings.fill||e.color,this.emptyPointSettings.mode){case"Zero":e.y=0,e.visible=!0;break;case"Average":n=o[i-1]&&o[i-1][this.yName]||0,a=o[i+1]&&o[i+1][this.yName]||0,e.y=(Math.abs(n)+Math.abs(a))/2,e.separatorY=r.intl.formatNumber(e.y,{useGrouping:r.useGroupingSeparator}),this.sumOfPoints+=e.y,e.visible=!0;break;default:e.visible=!1}},rp([(0,t.Property)("")],i.prototype,"dataSource",void 0),rp([(0,t.Property)()],i.prototype,"query",void 0),rp([(0,t.Property)("")],i.prototype,"xName",void 0),rp([(0,t.Property)("")],i.prototype,"name",void 0),rp([(0,t.Property)("")],i.prototype,"tooltipMappingName",void 0),rp([(0,t.Property)("")],i.prototype,"yName",void 0),rp([(0,t.Property)(!0)],i.prototype,"visible",void 0),rp([(0,t.Complex)(null,y)],i.prototype,"animation",void 0),rp([(0,t.Property)("SeriesType")],i.prototype,"legendShape",void 0),rp([(0,t.Property)("")],i.prototype,"legendImageUrl",void 0),rp([(0,t.Property)("")],i.prototype,"pointColorMapping",void 0),rp([(0,t.Complex)({},tp)],i.prototype,"dataLabel",void 0),rp([(0,t.Property)([])],i.prototype,"palettes",void 0),rp([(0,t.Property)(null)],i.prototype,"radius",void 0),rp([(0,t.Property)("0")],i.prototype,"innerRadius",void 0),rp([(0,t.Property)(!0)],i.prototype,"enableTooltip",void 0),rp([(0,t.Property)(!1)],i.prototype,"explode",void 0),rp([(0,t.Property)("30%")],i.prototype,"explodeOffset",void 0),rp([(0,t.Property)(!1)],i.prototype,"explodeAll",void 0),rp([(0,t.Property)(null)],i.prototype,"explodeIndex",void 0),rp([(0,t.Complex)({mode:"Drop"},ap)],i.prototype,"emptyPointSettings",void 0),rp([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),sp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return op(t,e),t.prototype.getModuleName=function(){return"PieSeries3D"},t.prototype.destroy=function(){},t}(lp),hp=function(){return hp=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},hp.apply(this,arguments)},cp=new function(){this.transform=null},dp=function(){function e(e,t,i){this.x=0,this.y=0,this.z=0,this.epsilon=1e-5,this.x=e,this.y=t||0,this.z=i||0}return e.prototype.isValid=function(e){return!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)},e.prototype.vector3D=function(e,t,i){return this.x=e,this.y=t,this.z=i,{x:this.x,y:this.y,z:this.z}},e.prototype.vector3DMinus=function(e,t){return this.vector3D(e.x-t.x,e.y-t.y,e.z-t.z)},e.prototype.vector3DPlus=function(e,t){return this.vector3D(e.x+t.x,e.y+t.y,e.z+t.z)},e.prototype.vector3DMultiply=function(e,t){var i=e.y*t.z-t.y*e.z,o=e.z*t.x-t.z*e.x,r=e.x*t.y-t.x*e.y;return this.vector3D(i,o,r)},e.prototype.vector3DAdd=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},e.prototype.vector3DStarMultiply=function(e,t){var i=e.x*t,o=e.y*t,r=e.z*t;return this.vector3D(i,o,r)},e.prototype.getLength=function(e){var t=this.vector3DAdd(e,e);return Math.sqrt(t)},e.prototype.getNormal=function(e,t,i){var o=this.vector3DMinus(e,t),r=this.vector3DMinus(i,t),n=this.vector3DMultiply(o,r),a=this.getLength(n);return a<this.epsilon?this.vector3D(0,0,0):this.vector3D(n.x/a,n.y/a,n.z/a)},e}(),pp=function(){function e(){this.matrixSize=4}return e.prototype.matrix3D=function(e){for(var t=[],i=0;i<e;i++)t[i]=this.createArray(e);return t},e.prototype.isAffine=function(e){return 0===e[0][3]&&0===e[1][3]&&0===e[2][3]&&1===e[3][3]},e.prototype.createArray=function(e){for(var t=[],i=0;i<e;++i)t[i]=0;return t},e.prototype.getIdentity=function(){for(var e=this.matrix3D(this.matrixSize),t=0;t<this.matrixSize;t++)e[t][t]=1;return e},e.prototype.getInterval=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=this.getMinor(e,i,o);return t=this.transposed(t),t=this.getMatrixMultiple(1/this.getDeterminant(e),t)},e.prototype.getMatrixMultiple=function(e,t){for(var i=0;i<t.length;i++)for(var o=0;o<t[i].length;o++)t[i][o]=t[i][o]*e;return t},e.prototype.getMatrixVectorMultiple=function(e,t){var i=e[0][0]*t.x+e[1][0]*t.y+e[2][0]*t.z+e[3][0],o=e[0][1]*t.x+e[1][1]*t.y+e[2][1]*t.z+e[3][1],r=e[0][2]*t.x+e[1][2]*t.y+e[2][2]*t.z+e[3][2];if(!this.isAffine(e)){var n=1/(e[0][3]*t.x+e[1][3]*t.y+e[2][3]*t.z+e[3][3]);i*=n,o*=n,r*=n}return{x:i,y:o,z:r}},e.prototype.getMatrixMultiplication=function(e,t){for(var i=this.getIdentity(),o=0;o<this.matrixSize;o++)for(var r=0;r<this.matrixSize;r++){for(var n=0,a=0;a<this.matrixSize;a++)n+=e[a][r]*t[o][a];i[o][r]=n}return i},e.prototype.getMinor=function(e,t,i){return((t+i)%2==0?1:-1)*this.getDeterminant(this.getMatrix(e,t,i))},e.prototype.getMatrix=function(e,t,i){for(var o=e.length-1,r=this.createArray(o),n=0;n<o;n++){var a=n>=t?n+1:n;r[n]=this.createArray(o);for(var l=0;l<o;l++){var s=l>=i?l+1:l;r[n][l]=e[a][s]}}return r},e.prototype.getDeterminant=function(e){var t=e.length,i=0;if(t<2)i=e[0][0];else for(var o=1,r=0;r<t;r++){var n=this.getMatrix(e,r,0);i+=o*e[r][0]*this.getDeterminant(n),o=o>0?-1:1}return i},e.prototype.transform=function(e,t,i){var o=this.getIdentity();return o[3][0]=e,o[3][1]=t,o[3][2]=i,o},e.prototype.turn=function(e){var t=this.getIdentity();return t[0][0]=Math.cos(e),t[2][0]=-Math.sin(e),t[0][2]=Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.tilt=function(e){var t=this.getIdentity();return t[1][1]=Math.cos(e),t[2][1]=Math.sin(e),t[1][2]=-Math.sin(e),t[2][2]=Math.cos(e),t},e.prototype.transposed=function(e){for(var t=this.getIdentity(),i=0;i<this.matrixSize;i++)for(var o=0;o<this.matrixSize;o++)t[i][o]=e[o][i];return t},e}(),up=function(){function e(){this.toRadial=Math.PI/180,this.vector=new dp(0,0,0),this.matrixObj=new pp}return e.prototype.transform3D=function(e){return{viewingArea:e,rotation:0,tilt:0,depth:0,perspectiveAngle:0,needUpdate:!0,centeredMatrix:this.matrixObj.getIdentity(),perspective:this.matrixObj.getIdentity(),resultMatrix:this.matrixObj.getIdentity(),viewMatrix:this.matrixObj.getIdentity()}},e.prototype.transform=function(e){this.setCenter(this.vector.vector3D(e.viewingArea.width/2,e.viewingArea.height/2,e.depth/2),e),this.setViewMatrix(this.matrixObj.transform(0,0,e.depth),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.turn(-this.toRadial*e.rotation)),e),this.setViewMatrix(this.matrixObj.getMatrixMultiplication(e.viewMatrix,this.matrixObj.tilt(-this.toRadial*e.tilt)),e),this.updatePerspective(e.perspectiveAngle,e),e.needUpdate=!0},e.prototype.updatePerspective=function(e,t){var i=(t.viewingArea.width+t.viewingArea.height)*Math.tan(this.degreeToRadianConverter((180-Math.abs(e%181))/2))+2*t.depth/2;t.perspective[0][0]=i,t.perspective[1][1]=i,t.perspective[2][3]=1,t.perspective[3][3]=i},e.prototype.degreeToRadianConverter=function(e){return e*Math.PI/180},e.prototype.toScreen=function(e,t,i){return i?(this.matrixObj=i,e=i.getMatrixVectorMultiple(this.result(t,i),e)):(t.chartObj=this.matrixObj,e=this.matrixObj.getMatrixVectorMultiple(this.result(t),e)),{x:e.x,y:e.y}},e.prototype.setViewMatrix=function(e,t){t.viewMatrix!==e&&(t.viewMatrix=e,t.needUpdate=!0)},e.prototype.result=function(e,t){var i=e.chartObj?e.chartObj:this.matrixObj;if(i||(i=t),!e.needUpdate)return e.resultMatrix;var o=this.matrixObj;return e.resultMatrix=i.getMatrixMultiplication(o.getInterval(e.centeredMatrix),e.perspective),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.viewMatrix),e.resultMatrix=i.getMatrixMultiplication(e.resultMatrix,e.centeredMatrix),e.needUpdate=!1,e.resultMatrix},e.prototype.setCenter=function(e,t){t.centeredMatrix=this.matrixObj.transform(-e.x,-e.y,-e.z),t.needUpdate=!0},e}(),gp=function(){function e(){this.vector=new dp(0,0,0)}return e.prototype.prepareView=function(e,t,i,o,r,n){0===arguments.length?xp.build(null,n):(null==cp.transform?cp.transform=n.transform3D.transform3D(r):cp.transform.viewingArea=r,cp.tree||(cp.tree=[]),cp.transform.rotation=i,cp.transform.tilt=o,cp.transform.depth=t,cp.transform.perspectiveAngle=e,n.transform3D.transform(cp.transform),cp.tree[n.groupElement.id]=xp.build(null,n))},e.prototype.view=function(e,t,i,o,r,n,a){if(2===arguments.length){if(null==e)return;var l=this.vector.vector3D(0,0,32767);this.drawNode3D(cp.tree[t.groupElement.id],l,e,t)}else{if(null==e)return;null==cp.transform?cp.transform=t.transform3D.transform3D(r):cp.transform.viewingArea=r,cp.transform.rotation=i,cp.transform.tilt=o,cp.transform.depth=a,cp.transform.perspectiveAngle=n,t.transform3D.transform(cp.transform);var s=this.vector.vector3D(0,0,32767);this.drawNode3D(cp.tree[t.groupElement.id],s,e,t)}},e.prototype.draw3DElement=function(e,t){e.plane.element?"text"===e.plane.element.tag||"dataLabel"===e.plane.element.tag?Sp.drawText(e.plane,t):"polyline"===e.plane.element.tag?Sp.drawPolyLine(e.plane,t):"template"===e.plane.element.tag&&Sp.drawTemplate(e.plane,t):Sp.draw(e.plane,t)},e.prototype.drawNode3D=function(e,t,i,o){if(null!==e&&null!=cp.transform){for(;;){if(vp.vector3DAdd(Sp.getNormal(o.transform3D.result(cp.transform),e.plane.vectorPoints),t)>e.plane.d){if(null!=e.front&&this.drawNode3D(e.front,t,i,o),this.draw3DElement(e,o),null!=e.back){e=e.back;continue}}else if(null!=e.back&&this.drawNode3D(e.back,t,i,o),this.draw3DElement(e,o),null!=e.front){e=e.front;continue}break}return null}},e}(),mp=function(){function e(e){this.epsilon=5e-4,this.chart=e}return e.prototype.getNext=function(e,t){return e>=t?e-t:e<0?e+t:e},e.prototype.vector3DIndexClassification=function(e,t,i){return{index:t,result:i,vector:e,isCuttingBackPoint:!1,cuttingBackPairIndex:null,alreadyCutBack:!1,isCuttingFrontPoint:!1,cuttingFrontPairIndex:null,alreadyCutFront:!1}},e.prototype.classifyPoint=function(e,t){var i="OnPlane",o=-t.d-vp.vector3DAdd(e,t.normal);return o>this.epsilon?i="OnBack":o<-this.epsilon&&(i="OnFront"),i},e.prototype.classifyPolygon=function(e,t){var i="Unknown",o=t.points;if(null==o)return i;for(var r=0,n=0,a=0,l=e.normal,s=e.d,h=0,c=o.length;h<c;h++){var d=-s-vp.vector3DAdd(o[h],l);if(d>this.epsilon?r++:d<-this.epsilon?n++:a++,r>0&&n>0)break}return i=a===o.length?"OnPlane":n+a===o.length?"ToRight":r+a===o.length?"ToLeft":"Unknown"},e.prototype.splitPolygon=function(e,t){var i=[],o=[];if(null!=e.points){for(var r=[],n=[],a=[],l=void 0,s=void 0,h=e.points.length,c=0;c<h;c++){var d=e.points[c],p=e.points[this.getNext(c+1,h)],u=this.classifyPoint(d,t),g=this.classifyPoint(p,t),m=this.vector3DIndexClassification(d,r.length,u);if(r.push(m),u!==g&&"OnPlane"!==u&&"OnPlane"!==g){var y=vp.vector3DMinus(d,p),f=vp.vector3DMinus(vp.vector3DStarMultiply(t.normal,-t.d),p),v=vp.vector3DAdd(f,t.normal)/vp.vector3DAdd(t.normal,y),b=vp.vector3DPlus(p,vp.vector3DStarMultiply(y,v)),x=this.vector3DIndexClassification(b,r.length,"OnPlane");r.push(x),n.push(x),a.push(x)}}if(0!==a.length||0!==n.length){for(c=0;c<n.length-1;c+=2){var S=n[c],C=n[c+1];S.cuttingBackPoint=!0,C.cuttingBackPoint=!0,S.alterCuttingBackPairIndex=C.index,C.alterCuttingBackPairIndex=S.index}for(c=0;c<a.length-1;c+=2){var F=a[c],w=a[c+1];F.cuttingFrontPoint=!0,w.cuttingFrontPoint=!0,F.alterCuttingFrontPairIndex=w.index,w.alterCuttingFrontPairIndex=F.index}for(c=0;c<n.length-1;c++){if(!(S=n[c]).alreadyCutBack&&(l=this.cutOutBackPolygon(r,S)).length>2){var L=Sp.polygon3D(l,e);i.push(hp({},L))}}for(c=0;c<a.length-1;c++){if(!(C=a[c]).alreadyCutFront&&(s=this.cutOutFrontPolygon(r,C)).length>2){var P=Sp.polygon3D(s,e);o.push(hp({},P))}}}}else i.push(e),o.push(e);return{backPolygon:i,frontPolygon:o}},e.prototype.cutOutFrontPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutFront=!0,i.push(o.vector);var r=e[o.alterCuttingFrontPairIndex];if(o.cuttingFrontPoint)if(r.alreadyCutFront){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"!==n.result||n.alreadyCutFront){if("OnFront"!==a.result||a.alreadyCutFront)return i;o=a}else o=n}else o=r;else{n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"===n.result||n.alreadyCutFront){if("OnBack"===a.result||a.alreadyCutFront)return i;o=a}else o=n}}return null},e.prototype.cutOutBackPolygon=function(e,t){for(var i=[],o=t;;){o.alreadyCutBack=!0,i.push(o.vector);var r=e[o.alterCuttingBackPairIndex];if(o.cuttingBackPoint)if(r.alreadyCutBack){var n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnBack"!==n.result||n.alreadyCutBack){if("OnBack"!==a.result||a.alreadyCutBack)return i;o=a}else o=n}else o=r;else{n=e[this.getNext(o.index-1,e.length)],a=e[this.getNext(o.index+1,e.length)];if("OnFront"===n.result||n.alreadyCutBack){if("OnFront"===a.result||a.alreadyCutBack)return i;o=a}else o=n}}return null},e.prototype.build=function(e,t){if(e){var i=e;if(i.length<1)return null;var o={back:null,front:null,plane:null},r=i[0];o.plane=r;for(var n=[],a=[],l=1,s=i.length;l<s;l++){var h=i[l];if(h!==r)switch(this.classifyPolygon(r,h)){case"OnPlane":case"ToRight":a.push(h);break;case"ToLeft":n.push(h);break;case"Unknown":if(h.element)n.push(h);else{for(var c=this.splitPolygon(h,r),d=0;d<c.backPolygon.length;d++)c.backPolygon[d].name=c.backPolygon[d].name+"-back",n.push(c.backPolygon[d]);for(var p=0;p<c.frontPolygon.length;p++)c.frontPolygon[p].name=c.frontPolygon[p].name+"-front",a.push(c.frontPolygon[p])}}}return n.length>0&&(o.back=this.build(n)),a.length>0&&(o.front=this.build(a)),o}return this.build(t.circular3DPolygon)},e}(),yp=function(){function e(){}return e.prototype.getStringBuilder=function(){var e=[],t=0;return{append:function(i){return e[t++]=i,this},toString:function(t){return e.join(t||"")}}},e.prototype.hexToValue=function(e){var t,i;return 0===e.indexOf("rgba(")?(i=e.slice(5,-1).split(","))?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10),alpha:parseFloat(i[3])}:null:0===e.indexOf("rgb(")?(i=e.slice(4,-1).split(","))?{red:parseInt(i[0],10),green:parseInt(i[1],10),blue:parseInt(i[2],10)}:null:(t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{red:parseInt(t[1],16),green:parseInt(t[2],16),blue:parseInt(t[3],16)}:null},e.prototype.drawText=function(e,t,i,o){var r=document.getElementById(e.id)||o.groupElement.querySelector("#"+e.id);return null===r&&(r=document.createElementNS("http://www.w3.org/2000/svg","text")),r.textContent=t,r=o.renderer.setElementAttributes(e,r)},e.prototype.hexColor=function(e){var t=e.red,i=e.green,o=e.blue;if(e.alpha)return"rgba("+t.toString()+","+i.toString()+","+o.toString()+","+e.alpha+")";var r=[t.toString(16),i.toString(16),o.toString(16)];return r.forEach(function(e,t){1===e.length&&(r[t]="0"+e)}),"#"+r.join("").toUpperCase()},e.prototype.checkColorFormat=function(e){if(0===e.indexOf("rgba(")||0===e.indexOf("rgb(")){var t=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",");if(3===t.length||4===t.length)return t.every(function(e){var t=parseFloat(e);return!isNaN(t)&&t>=0&&t<=255})}else if(0===e.indexOf("#")){var i=e.substring(1);return(3===i.length||6===i.length)&&/^[0-9A-Fa-f]{3,6}$/.test(i)}return!1},e}(),fp=function(){function e(){this.epsilon=1e-5,this.normal={x:0,y:0,z:0},this.vector=new dp(0,0,0),this.vectorPoints=[],this.matrixObj=new pp}return e.prototype.polygon3D=function(e,t,i,o,r,n,a,l,s,h){if(2===arguments.length)return this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints),(d=t).normal=this.normal,d.points=e,d.vectorPoints=this.vectorPoints,d.isSplit=!0,d.d=this.d,d;this.calculateNormal(e[0],e[1],e[2]),this.vectorPoints=e,this.calculateNormal(this.vectorPoints);var c={tag:"path",parent:s},d={normal:this.normal,points:e,vectorPoints:this.vectorPoints,index:i,tag:t,name:l||null,strokeThickness:r,opacity:n,fill:a,d:this.d,text:h||"",polygonElement:c};return 1!==arguments.length&&(d.polygonElement=c),d},e.prototype.calculateNormal=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>=3){var i=e[0],o=e[1],r=e[2],n=this.vector.vector3DMinus(i,o),a=this.vector.vector3DMinus(r,o),l=this.vector.vector3DMultiply(n,a),s=this.vector.getLength(l);s<this.epsilon&&(s=1),this.normal=this.vector.vector3D(l.x/s,l.y/s,l.z/s),this.d=-(this.normal.x*i.x+this.normal.y*i.y+this.normal.z*i.z),e[3]&&(e[3].normal=this.normal,e[3].d=this.d)}else{var h=e[0];this.calculateNormal(h[0],h[1],h[2],e[1]);for(var c=3;c<h.length&&this.test();c++)this.calculateNormal(h[c],h[0],h[c/2])}},e.prototype.test=function(){return!this.vector.isValid(this.normal)},e.prototype.getNormal=function(e,t){var i;if(null!=t){i=this.vector.getNormal(this.matrixObj.getMatrixVectorMultiple(e,t[0]),bp.getMatrixVectorMultiple(e,t[1]),this.matrixObj.getMatrixVectorMultiple(e,t[2]));for(var o=3;o<t.length&&!this.vector.isValid(i)&&t[o/2];o++){var r=bp.getMatrixVectorMultiple(e,t[o]),n=bp.getMatrixVectorMultiple(e,t[0]),a=bp.getMatrixVectorMultiple(e,t[o/2]);i=this.vector.getNormal(r,n,a)}}return i},e.prototype.createTextElement=function(e,t,i,o){var r=[],n=e.x,a=e.y,l=t.width,s=t.height;return r[0]=this.vector.vector3D(n,a,e.z),r[1]=this.vector.vector3D(n+l,a+s+o,e.z),r[2]=this.vector.vector3D(n+l+i,a+s+o,e.z),this.text3D(t,r)},e.prototype.createPolyline=function(e,t){if(2===e.length){var i=e[1];e.push({x:i.x,y:i.y,z:i.z})}return this.polyLine3D(t,e)},e.prototype.polyLine3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.text3D=function(e,t){var i=this.polygon3D(t);return i.element=e,i},e.prototype.drawPolyLine=function(e,t){var i=cp.transform,o=t.svg3DRenderer.getStringBuilder(),r=t.transform3D.toScreen(e.vectorPoints[0],i);o.append("M "+r.x+" "+r.y+" ");var n=t.transform3D.toScreen(e.vectorPoints[1],i);o.append("L "+n.x+" "+n.y+" "),o.append("M "+n.x+" "+n.y+" ");var a=t.transform3D.toScreen(e.vectorPoints[2],i);o.append("L "+a.x+" "+a.y+" ");var l=o.toString(),s={id:e.element.id,"stroke-dasharray":e.element.dashArray,"stroke-width":e.element.width,stroke:e.element.stroke,d:l},h=t.renderer.drawPath(s);ni(!1,t.groupElement,h,t.redraw,!0,"x","y",null,l)},e.prototype.drawText=function(e,t){var i=e.element,o=cp.transform;if(null!=o){var r=t.transform3D.toScreen(e.vectorPoints[0],o),n=r.x,a=r.y;if("text"===i.tag){var l={id:i.id,x:n,y:a,fill:i.font.color||i.fill,"font-size":i.font.size,"font-family":i.font.fontFamily||t.themeStyle.datalabelFont.fontFamily,"font-style":i.font.fontStyle,"font-weight":i.font.fontWeight,opacity:i.font.opacity,"text-anchor":i.textAnchor,cursor:"default",transform:i.angle?"rotate("+i.angle+","+n+","+a+")":""},s=t.svg3DRenderer.drawText(l,i.label.text,e.element.font,t);if(i.id.indexOf("text")>-1&&s.setAttribute("aria-hidden","true"),t.groupElement.append(s),t.previousID&&t.isTouch){var h=document.getElementById(t.previousID),c=document.getElementById(l.id);h&&c&&c.parentNode.insertBefore(c,h.nextSibling)}t.previousID=l.id}else{var d=i.series,p=i.point.argsData.text,u=(0,R.measureText)(p,i.point.argsData.font,t.themeStyle.datalabelFont),g=10,m=u.width+g+g,y=u.height+g+g,f={x:r.x,y:r.y},v=f.x-5+5,b=f.y-5-y/g+5,x=d.index;this.dataLabelSymbol(x,d,i,v,b,m,y,t)}}},e.prototype.dataLabelSymbol=function(e,t,i,o,r,n,a,l){var s="M "+(o+-n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+-a/2)+" L "+(o+n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+a/2)+" L "+(o+-n/2)+" "+(r+-a/2)+" z",h="";if(t.dataLabel.enableRotation){var c=void 0,d=c=t.dataLabel.angle;if(0===d){var p=function(e){return e*(180/Math.PI)}(i.point.symbolLocation.angle);c="Outside"===t.dataLabel.position?0:p>=90&&p<=260?p+180:p}else c=d>360?d-360:d<-360?d+360:d;h="rotate("+c+","+o+","+r+")"}var u={id:l.element.id+"-svg-data-label-series-"+e+"-shape-"+i.pointIndex,fill:i.point.argsData.color,"stroke-width":i.point.argsData.border.width,stroke:i.point.argsData.border.color,"stroke-dasharray":i.point.argsData.border.dashArray,opacity:1,visibility:"",transform:h,d:s},g=l.renderer.drawPath(u);if(l.groupElement.append(g),l.previousID&&l.isTouch){var m=document.getElementById(l.previousID),y=document.getElementById(u.id);m&&y&&y.parentNode.insertBefore(y,m.nextSibling)}l.previousID=u.id},e.prototype.draw=function(e,t){if(!(null==e.vectorPoints||e.vectorPoints.length<=0)){var i=cp.transform,o=t.svg3DRenderer.getStringBuilder(),r=e.fill;t.svg3DRenderer.checkColorFormat(r)||(r=fi(r));var n={StartPoint:null};if(null!=i){n.StartPoint=t.transform3D.toScreen(e.vectorPoints[0],i),o.append("M "+n.StartPoint.x+" "+n.StartPoint.y+" ");for(var a=0;a<e.vectorPoints.length;a++){var l=t.transform3D.toScreen(e.vectorPoints[a],i);o.append("L "+l.x+" "+l.y+" ")}}var s=o.toString(),h="Light",c=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,0,1)))-1),d=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(0,1,0)))-1),p=2*(Math.abs(this.vector.vector3DAdd(e.normal,this.vector.vector3D(1,0,0)))-1);!e.name||e.name.indexOf("-wall-brush")>-1||(c===p?(h="ZLight",r=this.applyZLight(r,t)):d===c||0!==c&&d<c?(h="XLight",r=this.applyXLight(r,t)):c<0?(h="ZLight",r=this.applyZLight(r,t)):h="Light");var u={id:t.element.id+"-svg-"+e.name,name:h,fill:r,stroke:"","stroke-width":e.strokeThickness,opacity:e.opacity,d:s},g=t.renderer.drawPath(u);if(e.text&&(g.setAttribute("aria-label",e.text),g.setAttribute("role","img")),ni(!1,e.polygonElement.parent,g,t.redraw,!0,"x","y",null,s),t.previousID&&t.isTouch){var m=document.getElementById(t.previousID),y=document.getElementById(u.id);m&&y&&y.parentNode.insertBefore(y,m.nextSibling)}t.previousID=u.id}},e.prototype.drawTemplate=function(e,t){var i=e.element,o=cp.transform;if(null!=o){var r=i.label,n=t.transform3D.toScreen(e.vectorPoints[0],o);t.circularChartDataLabel3DModule.createDataLabelTemplate(r.series.dataLabelElement,r.series,r.series.dataLabel,r.series.points[r.pointIndex],r.series.points[r.pointIndex].argsData,r.pointIndex,!1,n,t)}},e.prototype.applyXLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.7*i.red).toString(),10),i.green=parseInt((.7*i.green).toString(),10),i.blue=parseInt((.7*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e.prototype.applyZLight=function(e,t){var i=t.svg3DRenderer.hexToValue(e);return i.red=parseInt((.9*i.red).toString(),10),i.green=parseInt((.9*i.green).toString(),10),i.blue=parseInt((.9*i.blue).toString(),10),t.svg3DRenderer.hexColor(i)},e}(),vp=new dp(0,0,0),bp=new pp,xp=new mp,Sp=new fp,Cp=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Fp=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},wp=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Cp(i,e),Fp([(0,t.Property)(!0)],i.prototype,"visible",void 0),Fp([(0,t.Property)(null)],i.prototype,"height",void 0),Fp([(0,t.Property)(null)],i.prototype,"width",void 0),Fp([(0,t.Complex)({x:0,y:0},n)],i.prototype,"location",void 0),Fp([(0,t.Property)("Auto")],i.prototype,"position",void 0),Fp([(0,t.Property)(8)],i.prototype,"padding",void 0),Fp([(0,t.Property)(null)],i.prototype,"itemPadding",void 0),Fp([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Fp([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),Fp([(0,t.Property)(10)],i.prototype,"shapeHeight",void 0),Fp([(0,t.Property)(10)],i.prototype,"shapeWidth",void 0),Fp([(0,t.Complex)({},u)],i.prototype,"border",void 0),Fp([(0,t.Complex)({left:0,right:0,top:0,bottom:0},m)],i.prototype,"margin",void 0),Fp([(0,t.Complex)({left:0,right:0,top:0,bottom:0},S)],i.prototype,"containerPadding",void 0),Fp([(0,t.Property)(8)],i.prototype,"shapePadding",void 0),Fp([(0,t.Property)("transparent")],i.prototype,"background",void 0),Fp([(0,t.Property)(1)],i.prototype,"opacity",void 0),Fp([(0,t.Property)(!0)],i.prototype,"toggleVisibility",void 0),Fp([(0,t.Property)(!1)],i.prototype,"enableHighlight",void 0),Fp([(0,t.Property)(null)],i.prototype,"description",void 0),Fp([(0,t.Property)(3)],i.prototype,"tabIndex",void 0),Fp([(0,t.Property)(null)],i.prototype,"title",void 0),Fp([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"titleStyle",void 0),Fp([(0,t.Property)("Top")],i.prototype,"titlePosition",void 0),Fp([(0,t.Property)("Normal")],i.prototype,"textWrap",void 0),Fp([(0,t.Property)("Ellipsis")],i.prototype,"textOverflow",void 0),Fp([(0,t.Property)(100)],i.prototype,"maximumTitleWidth",void 0),Fp([(0,t.Property)(null)],i.prototype,"maximumLabelWidth",void 0),Fp([(0,t.Property)(!0)],i.prototype,"enablePages",void 0),Fp([(0,t.Property)(!1)],i.prototype,"isInversed",void 0),Fp([(0,t.Property)(!1)],i.prototype,"reverse",void 0),i}(t.ChildProperty),Lp=function(e){function i(t){var i=e.call(this,t)||this;return i.library=i,i.titleRect=new R.Rect(0,t.margin.top,0,0),i.addEventListener(),i}return Cp(i,e),i.prototype.addEventListener=function(){this.chart.isDestroyed||(this.chart.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.chart.on(t.Browser.touchEndEvent,this.mouseEnd,this),this.chart.on("click",this.click,this))},i.prototype.removeEventListener=function(){this.chart.isDestroyed||(this.chart.off(t.Browser.touchMoveEvent,this.mouseMove),this.chart.off("click",this.click),this.chart.off(t.Browser.touchEndEvent,this.mouseEnd))},i.prototype.mouseMove=function(e){if(this.chart.legendSettings.visible&&!this.chart.isTouch&&(this.move(e),this.chart.circularChartHighlight3DModule&&("None"!==this.chart.highlightMode||this.chart.legendSettings.enableHighlight)))for(var t=[this.legendID+"_text_",this.legendID+"_shape_marker_",this.legendID+"_shape_",this.legendID+"_g_"],i=e.target.id,o=0,r=t;o<r.length;o++){var n=r[o];if(i.indexOf(n)>-1){this.chart.circularChartSelection3DModule?this.chart.circularChartSelection3DModule.legendSelection(this.chart,e.target,e.type):this.chart.circularChartHighlight3DModule&&this.chart.circularChartHighlight3DModule.legendSelection(this.chart,e.target,e.type);break}}},i.prototype.mouseEnd=function(e){this.chart.legendSettings.visible&&this.chart.isTouch&&this.move(e)},i.prototype.getLegendOptions=function(e,i){this.legendCollections=[],this.isRtlEnable=e.enableRtl,this.isReverse=!this.isRtlEnable&&e.legendSettings.reverse;for(var o=0;o<1;o++){for(var r=0,n=i[o].points;r<n.length;r++){var a=n[r];(0,t.isNullOrUndefined)(a.x)||(0,t.isNullOrUndefined)(a.y)||this.legendCollections.push(new Eo(a.x.toString(),a.color,i[o].legendShape,a.visible,"Pie",i[0].legendImageUrl,null,null,a.index,i[o].index))}this.isReverse&&this.legendCollections.reverse()}},i.prototype.getLegendBounds=function(e,t,i){this.calculateLegendTitle(i,t),this.isTitle=!!i.title;var o,r=0,n=0;this.chartRowCount=1,this.rowHeights=[],this.columnHeights=[],this.pageHeights=[];var a=i.padding,l=i.titlePosition,s=0,h=this.arrowWidth,c=i.enablePages?0:this.arrowHeight;this.isVertical?r=i.width?0:e.width/100*5:n=i.height?0:e.height/100*5,t.width+=r,t.height+=n;var d,p,u=i.shapePadding,g=i.maximumLabelWidth?i.maximumLabelWidth:0,m=i.shapeWidth,y=0,f=0,v=0,b=[],x=[],S=0,C=0,F=0,w=0;this.maxItemHeight=Math.max((0,R.measureText)("MeasureText",i.textStyle,this.chart.themeStyle.legendLabelFont).height,i.shapeHeight);for(var L=!1,P=0;P<this.legendCollections.length;P++)if(p={fill:(o=this.legendCollections[P]).fill,text:o.text,shape:o.shape,name:"legendRender",cancel:!1},this.chart.trigger("legendRender",p),o.render=!p.cancel,o.text=p.text.indexOf("&")>-1?this.convertHtmlEntities(p.text):p.text,o.fill=p.fill,o.shape=p.shape,o.textSize=(0,R.measureText)(o.text,i.textStyle,this.chart.themeStyle.legendLabelFont),o.render&&""!==o.text)if(L=!0,w=m+u+(i.maximumLabelWidth?i.maximumLabelWidth:o.textSize.width)+(this.isVertical||0===P?a:this.itemPadding),this.getLegendHeight(o,i,t,y,this.maxItemHeight,a),this.isVertical)(F+=o.textSize.height+(0===P?a:this.itemPadding))+this.itemPadding+c/this.pageButtonSize>t.height&&(y+=g,S=this.getPageWidth(x),this.totalPages=Math.max(v,this.totalPages||1),y-S+w>t.width?(x.push(y-S),C=v=this.rowHeights.length):v=C,b.push(g),g=0,F=o.textSize.height+a,f++),this.columnHeights[f]=(this.columnHeights[f]?this.columnHeights[f]:0)+o.textSize.height+(0===P?a:this.itemPadding),g=Math.max(w,g),this.rowHeights[v]=Math.max(this.rowHeights[v]?this.rowHeights[v]:0,o.textSize.height),v++;else{i.enablePages||(s=this.isTitle&&"Top"!==l?this.legendTitleSize.width+this.fivePixel:0,s+=h),y+=w,t.width<a+y+s&&(g=Math.max(g,y+a+s-w),0===v&&w!==y&&(v=1),y=w,v++,f=0);var A=v?v-1:v;this.rowHeights[A]=Math.max(this.rowHeights[A]?this.rowHeights[A]:0,o.textSize.height),this.columnHeights[f]=(this.columnHeights[f]?this.columnHeights[f]:0)+o.textSize.height+a,f++}d="Top"===l?this.legendTitleSize.height:0,this.isVertical?(y+=g,this.isPaging=t.width<y+a,F=Math.max.apply(null,this.columnHeights)+a+c+d,F=Math.max(F,(this.totalPages||1)*(this.maxItemHeight+a)+a+c),this.isPaging=this.isPaging&&this.totalPages>1,b.push(g)):(this.totalPages=v,F=Math.max.apply(null,this.columnHeights)+a+c+d,this.isPaging=t.height<F,F=!i.enablePages&&this.isPaging?this.maxItemHeight+a+a+d:F,F=Math.max(F,this.maxItemHeight+a+a+d),this.isPaging||(y+=this.isTitle&&"Top"!==l?this.fivePixel+this.legendTitleSize.width+this.fivePixel:0)),this.maxColumns=0;var M=this.isVertical?this.getMaxColumn(b,t.width,a,y+a):Math.max(y+a,g);L?this.setBounds(M,F,i,t):this.setBounds(0,0,i,t)},i.prototype.getPageWidth=function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t},i.prototype.getLegendHeight=function(e,t,i,o,r,n){var a=e.textSize.width,l=t.shapePadding+2*n+t.shapeWidth;switch(t.textWrap){case"Wrap":case"AnyWhere":a>t.maximumLabelWidth||a+o>i.width?e.textCollection=_i(e.text,t.maximumLabelWidth?Math.min(t.maximumLabelWidth,i.width-l):i.width-l,t.textStyle,this.chart.enableRtl,null,null,this.chart.themeStyle.legendLabelFont):e.textCollection.push(e.text),e.textSize.height=r*e.textCollection.length}},i.prototype.convertHtmlEntities=function(e){var t=e.replace("&amp;","&").replace("&lt;","<").replace("&gt;",">").replace("&quot;",'"').replace("&nbsp;"," ").replace("&cent;","¢").replace("&pound;","£").replace("&yen;","¥").replace("&euro;","€").replace("&copy;","©").replace("&reg;","®");return t=t.replace("&#38;","&").replace("&#60;","<").replace("&#62;",">").replace("&#34;",'"').replace("&#160;"," ").replace("&#162;","¢").replace("&#163;","£").replace("&#165;","¥").replace("&#8364;","€").replace("&#169;","©").replace("&#174;","®")},i.prototype.getMaxColumn=function(e,t,i,o){var r=i;this.maxColumnWidth=Math.max.apply(null,e);for(var n=0;n<e.length;n++)if(r+=this.maxColumnWidth,this.maxColumns++,r+i>t){r-=this.maxColumnWidth,this.maxColumns--;break}this.isPaging=r<o&&this.totalPages>1,r===i&&(r=t),this.maxColumns=Math.max(1,this.maxColumns),this.maxWidth=r;var a=this.maxColumnWidth+i,l=0,s=this.columnHeights.length;if(this.isPaging&&this.isVertical){for(n=1;n<s;n++)(a+=this.maxColumnWidth+i)>t&&(this.pageHeights.push(l!==n-1?Math.max.apply(null,this.columnHeights.slice(l,n-1)):this.columnHeights[l]),a=this.maxColumnWidth+i,l=n);this.pageHeights.push(l!==s-1?Math.max.apply(null,this.columnHeights.slice(l,s-1)):this.columnHeights[l]),this.totalPages=this.pageHeights.length}return r},i.prototype.getAvailWidth=function(e,t){if(this.isVertical)t=this.maxWidth;else if(!this.isVertical&&this.isPaging&&!this.legend.enablePages)return t-e-this.fivePixel;return t-(2*this.legend.padding+this.legend.shapeWidth+this.legend.shapePadding)},i.prototype.getRenderPoint=function(e,t,i,o,r,n,a){var l=this.legend.padding,s=o.location.y+this.maxItemHeight/4+(o.textCollection.length>0?(o.textCollection.length-1)*this.maxItemHeight:0);if(this.isVertical)if(n===a||s+e.textSize.height+l>r.y+r.height){e.location.x=o.location.x+(n===a?0:this.isRtlEnable?-this.maxColumnWidth:this.maxColumnWidth),e.location.y=t.y;var h=this.legend.shapeWidth/2+l;this.pageXCollections.push(e.location.x+(this.isRtlEnable?h:-h))}else e.location.x=o.location.x,e.location.y=o.location.y+o.textSize.height+this.itemPadding;else{var c=i+(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:o.textSize.width),d=o.location.x+(this.isRtlEnable?-c:c);this.isWithinBounds(d,(this.legend.maximumLabelWidth?this.legend.maximumLabelWidth:e.textSize.width)+i-this.itemPadding,r,this.legend.shapeWidth/2)?(n!==a&&this.chartRowCount++,e.location.y=n===a?o.location.y:o.location.y+this.rowHeights[this.chartRowCount-2]+l,e.location.x=t.x):(e.location.y=o.location.y,e.location.x=n===a?o.location.x:d)}var p=this.getAvailWidth(e.location.x,this.legendBounds.width);p=this.legend.maximumLabelWidth?Math.min(this.legend.maximumLabelWidth,p):p,"Ellipsis"===this.legend.textOverflow&&"Normal"===this.legend.textWrap&&(e.text=Fi(+p.toFixed(4),e.text,this.legend.textStyle,this.chart.enableRtl,this.chart.themeStyle.legendLabelFont))},i.prototype.isWithinBounds=function(e,t,i,o){return this.isRtlEnable?e-t<i.x-o:e+t>i.x+i.width+o},i.prototype.getSmartLegendLocation=function(e,t,i){var o;switch(this.position){case"Left":o=(e.x-t.width-i.left)/2,t.x=e.x-t.width<i.left?t.x:e.x-t.width-o;break;case"Right":o=(this.chart.availableSize.width-i.right-(e.x+e.width+t.width))/2,t.x=e.x+e.width+t.width>this.chart.availableSize.width-i.right?t.x:e.x+e.width+o;break;case"Top":this.getTitleRect(this.chart),o=(e.y-t.height-(this.titleRect.y+this.titleRect.height))/2,t.y=e.y-t.height<i.top?t.y:e.y-t.height-o;break;case"Bottom":o=(this.chart.availableSize.height-i.bottom-(e.y+e.height+t.height))/2,t.y=e.y+e.height+t.height>this.chart.availableSize.height-i.bottom?t.y:e.y+e.height+o}},i.prototype.getTitleRect=function(e){if(!e.title)return null;var t=(0,R.measureText)(e.title,e.titleStyle,this.chart.themeStyle.legendTitleFont);this.titleRect=new R.Rect(e.availableSize.width/2-t.width/2,e.margin.top,t.width,t.height)},i.prototype.legendByIndex=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];if(r.pointIndex===e)return r}return null},i.prototype.click=function(e){var t=e.target.id.indexOf("_chart_legend_g_")>-1?e.target.firstChild.id:e.target.id,i=this.chart,o=[this.legendID+"_text_",this.legendID+"_shape_",this.legendID+"_shape_marker_"];this.chart.animateSeries=!1;for(var r=0,n=o;r<n.length;r++){var a=n[r];if(t.indexOf(a)>-1){var l=parseInt(t.split(a)[1],10);if(this.chart.legendSettings.toggleVisibility&&!isNaN(l)){var s=this.chart.visibleSeries[0],h=s.points[l],c=this.legendByIndex(l,this.legendCollections),d={legendText:c.text,legendShape:c.shape,chart:i,series:s,point:h,name:I,cancel:!1};if(this.chart.trigger(I,d),!d.cancel){h.visible=!h.visible,c.visible=h.visible,s.sumOfPoints+=h.visible?h.y:-h.y,i.redraw=i.enableAnimation,this.sliceVisibility(l,h.visible),i.removeSeriesElements(i),i.removeSvg();var p=document.getElementById(this.chart.element.id+"-svg-chart-3d");if(p)for(;p.childNodes.length>0;)p.removeChild(p.firstChild);this.chart.circular3DPolygon=[],this.chart.visibleSeries[0].segments=[],this.chart.animateSeries=!1,this.chart.calculateBounds(),this.chart.renderElements(),i.circularChartHighlight3DModule&&("None"!==i.highlightMode||i.legendSettings.enableHighlight)&&i.circularChartHighlight3DModule.redrawSelection(i)}}else this.chart.circularChartSelection3DModule&&!isNaN(l)?this.chart.circularChartSelection3DModule.legendSelection(this.chart,e.target,e.type):this.chart.circularChartHighlight3DModule&&!isNaN(l)&&this.chart.circularChartHighlight3DModule.legendSelection(this.chart,e.target,e.type)}}t.indexOf(this.legendID+"_pageup")>-1?this.changePage(e,!0):t.indexOf(this.legendID+"_pagedown")>-1&&this.changePage(e,!1),i.redraw=!1},i.prototype.sliceVisibility=function(e,t){var i=this.chart.element.id+"_Series_0_Point_";this.chart.visibleSeries[0].dataLabel.visible&&(i=this.chart.element.id+"_datalabel_Series_0_",this.sliceAnimate(qt(i+"g_"+e),t))},i.prototype.sliceAnimate=function(e,i){if(!e)return null;new t.Animation({}).animate(e,{duration:300,delay:0,name:i?"FadeIn":"FadeOut",end:function(e){e.element.style.visibility=i?"visible":"hidden"}})},i.prototype.getModuleName=function(){return"CircularChartLegend3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(To),Pp=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Ap=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Mp=function(e,t,i){void 0===i&&(i=0),this.point=e,this.series=t,this.index=i},Dp=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Pp(i,e),Ap([(0,t.Property)(!1)],i.prototype,"enable",void 0),Ap([(0,t.Property)(!0)],i.prototype,"enableMarker",void 0),Ap([(0,t.Property)(null)],i.prototype,"fill",void 0),Ap([(0,t.Property)(null)],i.prototype,"header",void 0),Ap([(0,t.Property)(null)],i.prototype,"opacity",void 0),Ap([(0,t.Complex)({fontFamily:null,size:"12px",fontStyle:"Normal",fontWeight:null,color:null},s)],i.prototype,"textStyle",void 0),Ap([(0,t.Property)(null)],i.prototype,"format",void 0),Ap([(0,t.Property)(null)],i.prototype,"template",void 0),Ap([(0,t.Property)(!1)],i.prototype,"enableAnimation",void 0),Ap([(0,t.Property)(300)],i.prototype,"duration",void 0),Ap([(0,t.Property)(700)],i.prototype,"fadeOutDuration",void 0),Ap([(0,t.Property)(!1)],i.prototype,"enableTextWrap",void 0),Ap([(0,t.Complex)({color:null,width:null},u)],i.prototype,"border",void 0),Ap([(0,t.Complex)({x:null,y:null},n)],i.prototype,"location",void 0),i}(t.ChildProperty),kp=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPoints=[],t.previousPoints=[],t.tooltipRendered=!1,t}return Pp(i,e),i.prototype.mouseLeaveHandler=function(){this.removeTooltip(this.control.tooltip.fadeOutDuration)},i.prototype.mouseUpHandler=function(e,t){this.control=t,this.element=t.element;var i=Math.abs(t.mouseX-t.cachedX)<10&&Math.abs(t.mouseY-t.cachedY)<10;this.control.tooltip.enable&&!t.rotateActivate&&i&&Pt(this.control.mouseX,this.control.mouseY,this.control.initialClipRect)&&this.control.isTouch?(this.tooltip(e),this.removeTooltip(2e3),this.tooltipRendered=!0):this.control.isTouch&&this.removeTooltip(0)},i.prototype.mouseMoveHandler=function(e,t){this.control=t,this.element=t.element,this.tooltipRendered||(this.control.tooltip.enable&&!t.rotateActivate&&Pt(this.control.mouseX,this.control.mouseY,this.control.initialClipRect)?this.tooltip(e):this.removeTooltip(0)),this.tooltipRendered=!1},i.prototype.tooltip=function(e){this.renderSeriesTooltip(this.control,this.getPieData(e,this.control))},i.prototype.getElement=function(e){return document.getElementById(e)},i.prototype.getTooltipElement=function(e){this.header=null===this.control.tooltip.header?"${series.name}":this.control.tooltip.header,this.formattedText=[];var t=document.getElementById(this.control.element.id+"_tooltip");return e||t?null:this.createElement()},i.prototype.createElement=function(){var e=document.createElement("div");return e.id=this.element.id+"_tooltip",e.className="ejSVGTooltip",e.style.pointerEvents="none",e.style.position="absolute",e.style.zIndex="1",e},i.prototype.renderSeriesTooltip=function(e,t){var i=this.getElement(this.element.id+"_tooltip_svg"),o=i&&parseInt(i.getAttribute("opacity"),10)>0,r=this.getTooltipElement(o),n=!o;this.template=e.tooltip.template,this.currentPoints=[],t.point?this.pushData(t,r)&&this.triggerTooltipRender(t,n,this.getTooltipText(t,e.tooltip),this.findHeader(t)):!t.point&&this.isRemove&&(this.removeTooltip(this.control.tooltip.fadeOutDuration),this.isRemove=!1)},i.prototype.removeTooltip=function(e){var t=this,i=this.getElement(this.element.id+"_tooltip");this.stopAnimation(),i&&this.previousPoints.length>0&&(this.tooltipInterval=+setTimeout(function(){t.svgTooltip&&t.svgTooltip.fadeOut()},e))},i.prototype.stopAnimation=function(){hi(this.tooltipInterval)},i.prototype.pushData=function(e,t){return!!e.series.enableTooltip&&(this.currentPoints.push(e),this.stopAnimation(),t&&!document.getElementById(t.id)&&document.getElementById(this.element.id+"_Secondary_Element").appendChild(t),!0)},i.prototype.triggerTooltipRender=function(e,i,o,r){var n=this,a=this.control.tooltip,l={cancel:!1,text:o,point:e.point,textStyle:a.textStyle,series:e.series,headerText:r,template:this.template,data:{pointX:e.point.x,pointY:e.point.y,seriesIndex:e.series.index,pointIndex:e.point.index,pointText:e.point.text,seriesName:e.series.name}},s=function(o){if(o.cancel)n.removeHighlight(),(0,t.remove)(n.getElement(n.element.id+"_tooltip"));else{n.formattedText=n.formattedText.concat(o.text),n.text=n.formattedText,n.headerText=o.headerText;var r={x:null!==a.location.x?a.location.x:n.control.mouseX,y:null!==a.location.y?a.location.y:n.control.mouseY-10};n.createTooltip(n.control,i,r,e.series.clipRect,e.point,0,n.control.initialClipRect,null,e.point,n.template?o.template:"")}n.isRemove=!0};s.bind(this,e),this.control.trigger(Y,l,s)},i.prototype.getPieData=function(e,t){var i,o=t.visibleSeries[0],r=e.target;if(r.id.indexOf("point")>-1&&r.id.indexOf("series")>-1){var n=parseInt(r.id.split("point-")[1],10);i=o.points[n]}else if(r.id.indexOf("-data-label-text")>-1&&"Inside"===o.dataLabel.position){var a=parseInt(r.id.split("data-label-text-")[1],10);i=o.points[a]}else if(r.id.indexOf("data-label-series")>-1&&"Inside"===o.dataLabel.position){a=parseInt(r.id.split("data-label-series-0-shape-")[1],10);i=o.points[a]}return i?{point:i,series:o,index:i.index}:new Mp(null,null)},i.prototype.getTooltipText=function(e,t){var i=e.series,o=t.format?t.format:this.control.theme.indexOf("Tailwind3")>-1?"${point.x} : ${point.y}":"${point.x} : <b>${point.y}</b>";return o=this.control.useGroupingSeparator?o.replace("${point.y}","${point.separatorY}"):o,this.parseTemplate(e.point,i,o)},i.prototype.findHeader=function(e){return""===this.header?"":(this.header=this.parseTemplate(e.point,e.series,this.header),""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()?this.header:"")},i.prototype.parseTemplate=function(e,t,i){for(var o,r,n=RegExp,a=0,l=Object.keys(e);a<l.length;a++){o=new n("${point."+(c=l[a])+"}","gm"),i=i.replace(o.source,e[c])}for(var s=0,h=Object.keys(Object.getPrototypeOf(t));s<h.length;s++){var c;o=new n("${series."+(c=h[s])+"}","gm"),r=t[c],i=i.replace(o.source,r)}return i},i.prototype.createTooltip=function(e,t,i,o,r,n,a,l,s,h){void 0===l&&(l=null),void 0===s&&(s=null);var c=e.circularChartTooltip3DModule;c&&null!==i?(t?(this.svgTooltip=new R.Tooltip({opacity:e.tooltip.opacity?e.tooltip.opacity:"Material3"===this.control.theme||"Material3Dark"===this.control.theme||this.control.theme.indexOf("Bootstrap5")>-1?1:.75,header:this.headerText,content:this.text,fill:e.tooltip.fill,border:e.tooltip.border,enableAnimation:e.tooltip.enableAnimation,location:i,shared:!1,crosshair:!1,shapes:e.tooltip.enableMarker?["Circle"]:[],clipBounds:o,areaBounds:a,palette:this.findPalette(),template:h||this.template,data:s,theme:e.theme,offset:n,textStyle:e.tooltip.textStyle,isNegative:!1,inverted:!1,arrowPadding:0,availableSize:e.availableSize,duration:this.control.tooltip.duration,isCanvas:!1,isFixed:null!==this.control.tooltip.location.x||null!==this.control.tooltip.location.y,isTextWrap:e.tooltip.enableTextWrap,blazorTemplate:{name:"Template",parent:this.control.tooltip},controlInstance:this.control,enableRTL:e.enableRtl,controlName:"Chart",allowHighlight:!1,tooltipRender:function(){c.removeHighlight(),c.highlightPoints(),c.updatePreviousPoint(l)},animationComplete:function(e){e.tooltip.fadeOuted&&c.fadeOut()}}),this.svgTooltip.appendTo(this.getElement(this.element.id+"_tooltip"))):this.svgTooltip&&(this.svgTooltip.location=i,this.svgTooltip.content=this.text,this.svgTooltip.header=this.headerText,this.svgTooltip.offset=n,this.svgTooltip.palette=this.findPalette(),this.svgTooltip.shapes=e.tooltip.enableMarker?["Circle"]:[],this.svgTooltip.data=s,this.svgTooltip.template=this.template,this.svgTooltip.controlName="Chart",this.svgTooltip.crosshair=!1,this.svgTooltip.textStyle=e.tooltip.textStyle,this.svgTooltip.isNegative=!1,this.svgTooltip.clipBounds=o,this.svgTooltip.arrowPadding=0,this.svgTooltip.allowHighlight=!1,this.svgTooltip.dataBind()),this.control.isReact&&this.control.renderReactTemplates()):Je(this.control.element.id+"_tooltip")},i.prototype.highlightPoints=function(){for(var e=0,t=this.currentPoints;e<t.length;e++){var i=t[e];i.series.isRectSeries&&"Series"===i.series.category&&this.highlightPoint(i.series,i.point.index,!0)}},i.prototype.removeHighlight=function(){for(var e,t=0,i=this.previousPoints.length;t<i;t++)(e=this.previousPoints[t]).series.isRectSeries&&e.series.visible&&this.highlightPoint(e.series,e.point.index,!1)},i.prototype.highlightPoint=function(e,t,i){var o=this;if(this.control.circularChartHighlight3DModule&&"None"===this.control.highlightMode||!this.control.circularChartHighlight3DModule){var r=document.querySelectorAll('[id*="region-series-0-point-'+t+'"]'),n=[];r.forEach(function(e){parseInt(e.id.split("point-")[1],10)===t&&n.push(e)});var a=document.getElementById(this.control.element.id+"-svg-data-label-text-"+t),l=document.getElementById(this.control.element.id+"-datalabel-series-0-connector-"+t),s=document.getElementById(this.control.element.id+"-svg-data-label-series-0-shape-"+t);a&&n.push(a),l&&n.push(l),s&&n.push(s);var h=document.getElementById(this.element.id+"-svg-chart-3d").children;if(h)for(var c=0,d=h;c<d.length;c++){var p=d[c];if(p.parentElement.id===this.control.groupElement.id){var u=!p.hasAttribute("class")||-1===p.getAttribute("class").indexOf("_selection_");p.setAttribute("opacity",(i&&"transparent"!==this.control.highlightColor&&u?.2:e.opacity).toString())}}n&&n.forEach(function(t){t.parentElement.id===o.control.groupElement.id&&t.setAttribute("opacity",e.opacity.toString())})}},i.prototype.fadeOut=function(){var e=this.getElement(this.element.id+"_tooltip_svg");e&&parseInt(e.getAttribute("opacity"),10)>0||(this.currentPoints=[],this.removeHighlight(),this.previousPoints=[],this.svgTooltip=null,this.control.trigger("animationComplete",{}))},i.prototype.updatePreviousPoint=function(e){e&&(this.currentPoints=this.currentPoints.concat(e)),this.previousPoints=(0,t.extend)([],this.currentPoints,null,!0)},i.prototype.findPalette=function(){for(var e=[],t=0,i=this.currentPoints;t<i.length;t++){var o=i[t];e.push(o.point.color)}return e},i.prototype.getModuleName=function(){return"CircularChartTooltip3D"},i.prototype.destroy=function(){},i}(t.ChildProperty),Rp=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Tp=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a},Ep=function(e){function i(t,i){var o=e.call(this,t,i)||this;return o.chartId=57724,o.explodeDistance=0,o.rotateActivate=!1,o.previousTargetId="",o.currentPointIndex=0,o.currentLegendIndex=0,o.isLegendClicked=!1,o.delayRedraw=!1,o}return Rp(i,e),Object.defineProperty(i.prototype,"type",{get:function(){return"Pie"},enumerable:!0,configurable:!0}),i.prototype.preRender=function(){if(this.allowServerDataBinding=!1,this.unWireEvents(),this.titleLocation={x:0,y:0,size:new R.Size(0,0)},this.subTitleLocation={x:0,y:0,size:new R.Size(0,0)},this.circularRadius=[],this.innerRadius=[],this.matrixObj=new pp,this.bspTreeObj=new mp,this.polygon=new fp,this.vector=new dp(null,null,null),this.graphics=new gp,this.transform3D=new up,this.svg3DRenderer=new yp,this.circular3DPolygon=[],this.explodeDistance=0,this.setCulture(),this.animateSeries=!0,""===this.element.id){var e=document.getElementsByClassName("e-circular3dchart").length;this.element.id="acc_chart_"+this.chartId+"_"+e}this.wireEvents(),this.element.setAttribute("dir",this.enableRtl?"rtl":""),this.element.style.outline="none"},i.prototype.unWireEvents=function(){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchMoveEvent,r=t.Browser.touchEndEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.remove(this.element,o,this.chartOnMouseMove),t.EventHandler.remove(this.element,r,this.chartMouseUp),t.EventHandler.remove(this.element,i,this.chartMouseDown),t.EventHandler.remove(this.element,"click",this.chartOnMouseClick),t.EventHandler.remove(this.element,n,this.chartMouseLeave),t.EventHandler.remove(this.element,"keydown",this.circular3DChartKeyDown),t.EventHandler.remove(this.element,"keyup",this.circular3DChartKeyUp),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.chartResizeBound)},i.prototype.chartOnMouseClick=function(e){if(this.setMouseXY(e),this.circularChartLegend3DModule&&this.legendSettings.visible&&this.circularChartLegend3DModule.click(e),"None"!==this.selectionMode&&this.circularChartSelection3DModule&&this.circularChartSelection3DModule.calculateSelectedElements(this,e.target,e.type),this.visibleSeries[0].explode){var t=e.target.id,i=void 0,o=void 0;if(t.indexOf("-point-")>-1)i=t.split("-series-")[1].split("-point-"),o=parseInt(i[1],10),this.visibleSeries[0].explodeIndex===o||this.visibleSeries[0].points[o].isExplode?(this.visibleSeries[0].explodeIndex=null,this.visibleSeries[0].isExploded=!0,this.visibleSeries[0].points.forEach(function(e){e.isExplode=!1})):this.visibleSeries[0].explodeIndex=o,this.removeSeriesElements(this),this.visibleSeries[0].segments=[],this.circular3DPolygon=[],this.renderSeries(),this.processSelection(),this.delayRedraw=!0}return this.trigger("circularChart3DMouseClick",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.pointClick&&this.triggerPointEvent($,e.target,e),this.removeNavigationStyle(),!1},i.prototype.triggerPointEvent=function(e,t,i){var o,r=i,n=this.visibleSeries[0];if(t.id.indexOf("point")>-1&&t.id.indexOf("series")>-1){var a=parseInt(t.id.split("point-")[1],10);o=n.points[a]}o&&this.trigger(e,{series:n,point:o,seriesIndex:n.index,pointIndex:o.index,x:this.mouseX,y:this.mouseY,pageX:r.pageX,pageY:r.pageY})},i.prototype.chartOnMouseMove=function(e){if(!qt(this.element.id+"_svg"))return!1;if(this.setMouseXY(e),this.trigger("circularChart3DMouseMove",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.rotateActivate){var i=this.previousCoords.x-this.mouseX,o=this.previousCoords.y-this.mouseY;if(i||o){if(this.tilt-=o,this.rotation+=i,!this.isTouch){var r=document.getElementById(this.groupElement.id);r.innerHTML="",r.remove()}var n={width:this.availableSize.width,height:this.availableSize.height};this.graphics.view(this.svgObject,this,this.rotation,this.tilt,n,0,this.depth),ni(!1,this.svgObject,this.groupElement,this.redraw),this.setSeriesTabIndex(),this.previousCoords.y=this.mouseY,this.previousCoords.x=this.mouseX,this.circularChartHighlight3DModule&&"None"!==this.highlightMode&&(this.circularChartHighlight3DModule.calculateSelectedElements(this,document.getElementById(this.element.id+"-border"),"mousemove"),this.circularChartHighlight3DModule.previousSelectedElement=[]),this.processSelection()}}return this.pointMove&&this.triggerPointEvent(J,e.target,e),this.tooltip.enable&&this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.mouseMoveHandler(e,this),this.isTouch||this.titleTooltip(e,this.mouseX,this.mouseY),this.notify(t.Browser.touchMoveEvent,e),!1},i.prototype.titleTooltip=function(e,t,i,o){var r=e.target.id,n=r===this.element.id+"-title"||r===this.element.id+"-sub-title"||r===this.element.id+"_chart_legend_title";e.target.textContent.indexOf("...")>-1&&n?tt(r===this.element.id+"-title"?this.title:r===this.element.id+"-sub-title"?this.subTitle:this.legendSettings.title,t,i,this.element.offsetWidth,this.element.id+"_EJ2_Title_Tooltip",qt(this.element.id+"_Secondary_Element"),o):Je(this.element.id+"_EJ2_Title_Tooltip")},i.prototype.setMouseXY=function(e){var t,i,o=qt(this.element.id+"_svg");if(o&&this.element){var r=o.getBoundingClientRect(),n=this.element.getBoundingClientRect();if(e.type.indexOf("touch")>-1){this.isTouch=!0;var a=e;i=a.changedTouches[0].clientY,t=a.changedTouches[0].clientX}else this.isTouch="touch"===e.pointerType||"2"===e.pointerType,t=e.clientX,i=e.clientY;this.mouseY=i-n.top-Math.max(r.top-n.top,0),this.mouseX=t-n.left-Math.max(r.left-n.left,0)}},i.prototype.wireEvents=function(){if(this.element){var e=t.Browser.isPointer,i=t.Browser.touchStartEvent,o=t.Browser.touchEndEvent,r=t.Browser.touchMoveEvent,n=e?"pointerleave":"mouseleave";t.EventHandler.add(this.element,r,this.chartOnMouseMove,this),t.EventHandler.add(this.element,o,this.chartMouseUp,this),t.EventHandler.add(this.element,i,this.chartMouseDown,this),t.EventHandler.add(this.element,"click",this.chartOnMouseClick,this),t.EventHandler.add(this.element,n,this.chartMouseLeave,this),t.EventHandler.add(this.element,"keydown",this.circular3DChartKeyDown,this),t.EventHandler.add(this.element,"keyup",this.circular3DChartKeyUp,this),this.chartResizeBound=this.chartResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.chartResizeBound),this.setStyle(this.element)}},i.prototype.chartMouseLeave=function(e){return this.setMouseXY(e),this.trigger("circularChart3DMouseLeave",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.tooltip.enable&&this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.mouseLeaveHandler(),this.notify(t.Browser.isPointer?"pointerleave":"mouseleave",e),this.rotateActivate=!1,!1},i.prototype.chartMouseUp=function(e){return this.setMouseXY(e),this.trigger("circularChart3DMouseUp",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.isTouch&&this.titleTooltip(e,this.mouseX,this.mouseY,this.isTouch),this.rotateActivate=!1,this.tooltip.enable&&this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.mouseUpHandler(e,this),this.notify(t.Browser.touchEndEvent,e),!1},i.prototype.chartMouseDown=function(e){this.setMouseXY(e),this.trigger("circularChart3DMouseDown",{target:e.target.id,x:this.mouseX,y:this.mouseY}),this.cachedX=this.mouseX,this.cachedY=this.mouseY;var t=qt(this.element.id+"_svg").getBoundingClientRect(),i=document.getElementById(this.element.id+"-svg-chart-3d").getBoundingClientRect(),o={x:i.left-t.left,y:i.top-t.top,width:i.width,height:i.height};return this.enableRotation&&Pt(this.mouseX,this.mouseY,o)&&(this.rotateActivate=!0,this.previousCoords={x:this.mouseX,y:this.mouseY}),!1},i.prototype.setStyle=function(e){e.style.touchAction=this.enableRotation?"none":"element",e.style.msTouchAction="element",e.style.msContentZooming="none",e.style.msUserSelect="none",e.style.webkitUserSelect="none",e.style.position="relative",e.style.display="block",e.style.height=e.style.height||this.height&&-1===this.height.indexOf("%")?e.style.height:"inherit"},i.prototype.setCulture=function(){this.intl=new t.Internationalization},i.prototype.render=function(){var e=this;-1===this.element.className.indexOf("e-circular3dchart")&&this.element.classList.add("e-circular3dchart"),this.element.setAttribute("role","region"),this.element.setAttribute("tabindex","0"),this.element.setAttribute("aria-label",this.title+". Syncfusion interactive chart."),this.element.setAttribute("class",this.element.getAttribute("class")+" e-circular3dchart-focused");var t={chart:this,theme:this.theme,name:O,cancel:!1};this.trigger(O,t,function(){t.cancel||(e.setTheme(),e.calculateVisibleSeries(),e.processData(),e.renderComplete(),e.allowServerDataBinding=!0)})},i.prototype.setTheme=function(){this.themeStyle=function(e){var t;switch(e){case"HighContrastLight":case"HighContrast":t={chartTitle:"#ffffff",legendLabel:"#ffffff",background:"transparent",tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696",tabColor:"#FFD939",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#000000",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#969696",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":t={chartTitle:"#ffffff",legendLabel:"#DADADA",background:"transparent",tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A",tabColor:"MaterialDark"===e?"#00B0FF":"FabricDark"===e?"#0074CC":"#0070F0",chartTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"MaterialDark"===e?"rgba(18, 18, 18, 1)":"FabricDark"===e?"#DADADA":"#1A1A1A",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.6)":"FabricDark"===e?"#A19F9D":"#676767",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"MaterialDark"===e?"rgba(255, 255, 255, 0.87)":"FabricDark"===e?"#DADADA":"#FFFFFF",fontFamily:"MaterialDark"===e?"Roboto":"FabricDark"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap4":t={chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#020202",tooltipBoldLabel:"rgba(255,255,255)",tooltipLightLabel:"rgba(255,255,255, 0.9)",tooltipHeaderLine:"rgba(255,255,255, 0.2)",tabColor:"#007BFF",chartTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#666666",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#495057",fontFamily:"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#212529",fontFamily:"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Tailwind3":t={chartTitle:"#111827",legendLabel:"#6B7280",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#D1D5DB",tabColor:"#4F46E5",chartTitleFont:{color:"#111827",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#4B5563",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#6B7280",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind3Dark":t={chartTitle:"#FFFFFF",legendLabel:"#9CA3AF",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#1F2937",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#374151",tabColor:"#22D3EE",chartTitleFont:{color:"#FFFFFF",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#E5E7EB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},legendLabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"500"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#9CA3AF",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"500"}};break;case"Tailwind":t={chartTitle:"#374151",legendLabel:"#374151",background:"transparent",tooltipFill:"#111827",tooltipBoldLabel:"#D1D5DB",tooltipLightLabel:"#F9FAFB",tooltipHeaderLine:"#6B7280",tabColor:"#4F46E5",chartTitleFont:{color:"#374151",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F9FAFB",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#6B7280",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#374151",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"TailwindDark":t={chartTitle:"#D1D5DB",legendLabel:"#D1D5DB",background:"transparent",tooltipFill:"#F9FAFB",tooltipBoldLabel:"#6B7280",tooltipLightLabel:"#1F2937",tooltipHeaderLine:"#9CA3AF",tabColor:"#22D3EE",chartTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#1F2937",fontFamily:"Inter",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#9CA3AF",fontFamily:"Inter",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#D1D5DB",fontFamily:"Inter",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Bootstrap5":t={chartTitle:"#212529",legendLabel:"#212529",background:"transparent",tooltipFill:"#000000E5",tooltipBoldLabel:"#F9FAFB",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#FFFFFF",tabColor:"#0D6EFD",chartTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#21252980",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Bootstrap5Dark":t={chartTitle:"#DEE2E6",legendLabel:"#DEE2E6",background:"transparent",tooltipFill:"#E9ECEF",tooltipBoldLabel:"#212529",tooltipLightLabel:"#212529",tooltipHeaderLine:"#212529",tabColor:"#0D6EFD",chartTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#212529",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#DEE2E6",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#DEE2E680",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent":t={chartTitle:"#201F1E",legendLabel:"#323130",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#323130",tooltipLightLabel:"#323130",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",chartTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#201F1E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#323130",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#3B3A39",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#323129",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"FluentDark":t={chartTitle:"#F3F2F1",legendLabel:"#D2D0CE",background:"transparent",tooltipFill:"#252423",tooltipBoldLabel:"#F3F2F1",tooltipLightLabel:"#F3F2F1",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",chartTitleFont:{color:"#C8C6C4",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#D2D0CE",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#F3F2F1",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Fluent2":t={chartTitle:"#242424",legendLabel:"#242424",background:"transparent",tooltipFill:"#FFFFFF",tooltipBoldLabel:"#242424",tooltipLightLabel:"#242424",tooltipHeaderLine:"#D2D0CE",tabColor:"#0078D4",chartTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#242424",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#616161",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2Dark":t={chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#292929",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#ADADAD",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Fluent2HighContrast":t={chartTitle:"#FFFFFF",legendLabel:"#FFFFFF",background:"transparent",tooltipFill:"#000000",tooltipBoldLabel:"#FFFFFF",tooltipLightLabel:"#FFFFFF",tooltipHeaderLine:"#3B3A39",tabColor:"#0078D4",chartTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#FFFFFF",fontFamily:"Segoe UI",size:"14px",fontStyle:"Normal",fontWeight:"600"}};break;case"Material3":t={chartTitle:"#1C1B1F",legendLabel:"#49454E",background:"transparent",tooltipFill:"#313033",tooltipBoldLabel:"#F4EFF4",tooltipLightLabel:"#F4EFF4",tooltipHeaderLine:"#F4EFF4",tabColor:"#49454E",chartTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#1C1B1F",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#F4EFF4",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#49454E",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#49454E",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;case"Material3Dark":t={chartTitle:"#E6E1E5",legendLabel:"#CAC4D0",background:"transparent",tooltipFill:"#E6E1E5",tooltipBoldLabel:"#313033",tooltipLightLabel:"#313033",tooltipHeaderLine:"#313033",tabColor:"#CAC4D0",chartTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"#E6E1E5",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"#313033",fontFamily:"Roboto",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"#CAC4D0",fontFamily:"Roboto",size:"14px",fontStyle:"Normal",fontWeight:"400"}};break;default:t={chartTitle:"#424242",legendLabel:"#353535",background:"transparent",tooltipFill:"#000816",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff",tabColor:"Material"===e?"#ff4081":"Fabric"===e?"#0078D6":"#317AB9",chartTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"16px",fontStyle:"Normal",fontWeight:"600"},legendTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"600"},legendLabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"#666666",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"},tooltipLabelFont:{color:"Material"===e?"rgba(249, 250, 251, 1)":"Fabric"===e?"#333333":"#F9FAFB",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal"},datalabelFont:{color:"Material"===e?"rgba(97, 97, 97, 1)":"Fabric"===e?"#666666":"#676767",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"12px",fontStyle:"Normal",fontWeight:"400"},chartSubTitleFont:{color:"Material"===e?"rgba(0, 0, 0, 1)":"Fabric"===e?"#333333":"#212529",fontFamily:"Material"===e?"Roboto":"Fabric"===e?"Segoe UI":"Helvetica",size:"14px",fontStyle:"Normal",fontWeight:"400"}}}return t}(this.theme)},i.prototype.processData=function(e){void 0===e&&(e=!0),this.seriesCounts=0;for(var t=0,i=this.visibleSeries;t<i.length;t++){var o=i[t];o.dataModule=new Fo(o.dataSource||this.dataSource,o.query),o.refreshDataManager(this,e)}},i.prototype.refreshChart=function(){this.createPieSvg(),this.calculateBounds(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],this.groupElement=this.renderer.createGroup({id:this.element.id+"-svg-chart-3d"}),this.groupElement.setAttribute("role","region"),this.groupElement.setAttribute("aria-hidden","false"),this.renderElements(),Je("chartmeasuretext")},i.prototype.renderElements=function(){this.renderBorder(),this.createSecondaryElement(),this.renderTitle(),this.renderSeries(),this.renderLegend(),ni(!1,this.element,this.svgObject,this.redraw),this.processSelection(),this.setSecondaryElementPosition(),this.trigger("loaded",{chart:this}),this.setSeriesTabIndex(),this.doAnimation(),this.animateSeries=!1},i.prototype.setSeriesTabIndex=function(){for(var e,t=0;t<this.visibleSeries[0].points.length;t++)if(this.visibleSeries[0].points[t].visible){e=document.querySelectorAll('[id*="region-series-0-point-'+this.visibleSeries[0].points[t].index+'"]');break}e&&e.length>0&&e[e.length-1].setAttribute("tabindex","0")},i.prototype.processSelection=function(){var e=[];this.circularChartSelection3DModule&&"None"!==this.selectionMode&&(e=(0,t.extend)([],this.circularChartSelection3DModule.selectedDataIndexes,null,!0),this.circularChartSelection3DModule.invokeSelection(this)),this.circularChartHighlight3DModule&&this.circularChartHighlight3DModule.invokeHighlight(this),e.length>0&&(this.circularChartSelection3DModule.selectedDataIndexes=e,this.circularChartSelection3DModule.redrawSelection(this))},i.prototype.highlightAnimation=function(e,i,o){var r=parseFloat(this.visibleSeries[0].opacity.toString());r&&new t.Animation({}).animate(e,{duration:i,progress:function(t){e.style.animation="";var i=t.timeStamp/t.duration,n=o+(r-o)*i;e.setAttribute("opacity",n.toString())},end:function(){e.setAttribute("opacity",r.toString())}})},i.prototype.stopElementAnimation=function(e){var i=parseFloat(this.visibleSeries[0].opacity.toString());e.getAttribute("e-animate")&&t.Animation.stop(e),e.setAttribute("opacity",i.toString())},i.prototype.doAnimation=function(){var e=this.visibleSeries[0];if(e.animation.enable&&this.animateSeries){var t=this.renderer.createClipPath({id:this.element.id+"SeriesGroup0_clipPath"}),i=new R.PathOption(this.element.id+"SeriesGroup0_slice","transparent",1,"transparent",1,"",""),o=this.renderer.drawPath(i);t.appendChild(o),this.svgObject.appendChild(t);var r=this.element.id,n=this.groupElement.id;document.querySelectorAll('[id*="region-series-"]').forEach(function(e){e.parentElement.id===n&&(e.style.cssText="clip-path:url(#"+t.id+"); -webkit-clip-path:url(#"+t.id+");",e.setAttribute("clip-path","url(#"+r+"SeriesGroup0_clipPath)"))}),e.segments[0]&&this.animationRect(o,e)}},i.prototype.renderLegend=function(){if(!this.circularChartLegend3DModule||!this.legendSettings.visible)return null;this.circularChartLegend3DModule.legendCollections.length&&this.visibleSeries[0].labelBound&&this.circularChartLegend3DModule.getSmartLegendLocation(this.visibleSeries[0].labelBound,this.circularChartLegend3DModule.legendBounds,this.margin),this.circularChartLegend3DModule.renderLegend(this,this.legendSettings,this.circularChartLegend3DModule.legendBounds,this.redraw)},i.prototype.animationRect=function(e,i){var o,r=this,n=i.animation.duration,a=.75*Math.max(this.availableSize.height,this.availableSize.width);a+=.414*a;for(var l=Et("Linear"),s={x:i.segments[0].center.x-this.rotation/2,y:i.segments[0].center.y+this.tilt/2},h=0;h<i.points.length;h++){var c=qt(this.element.id+"-svg-data-label-text-"+h);c&&(c.style.visibility="hidden");var d=qt(this.element.id+"-svg-data-label-series-0-shape-"+h);d&&(d.style.visibility="hidden");var p=qt(this.element.id+"-series-"+i.index+"-data-label-"+h);p&&(p.style.visibility="hidden");var u=qt(this.element.id+"-datalabel-series-0-connector-"+h);u&&(u.style.visibility="hidden")}(0,t.isNullOrUndefined)(e)||new t.Animation({}).animate(e,{duration:0===n&&"Enable"===t.animationMode?1e3:n,delay:i.animation.delay,progress:function(t){o=l(t.timeStamp,-90,359.99999,t.duration),e.setAttribute("d",r.getPathArc(s,-90,o,a))},end:function(){e.setAttribute("d",r.getPathArc(s,0,359.99999,a)),r.trigger(z,{series:i,chart:r});for(var t=0;t<i.points.length;t++){var o=qt(r.element.id+"-svg-data-label-text-"+t);o&&(o.style.visibility="visible");var n=qt(r.element.id+"-svg-data-label-series-0-shape-"+t);n&&(n.style.visibility="visible");var l=qt(r.element.id+"-series-"+i.index+"-data-label-"+t);l&&(l.style.visibility="visible");var h=qt(r.element.id+"-datalabel-series-0-connector-"+t);h&&(h.style.visibility="visible")}}})},i.prototype.getPathArc=function(e,t,i,o){var r=i-t,n=(r=r<0?r+360:r)<180?0:1;return this.getPiePath(e,ct(t,o,e),ct(i,o,e),o,n)},i.prototype.getPiePath=function(e,t,i,o,r){return"M "+e.x+" "+e.y+" L "+t.x+" "+t.y+" A "+o+" "+o+" 0 "+r+" 1 "+i.x+" "+i.y+" Z"},i.prototype.renderBorder=function(){var e=this.border.width,t=new Ni(this.element.id+"-border",this.background||this.themeStyle.background,this.border,1,new R.Rect(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e)),i=this.renderer.drawRectangle(t);i.setAttribute("aria-hidden","true"),ni(!1,this.svgObject,i,this.redraw);var o=this.backgroundImage;if(o){var r=new Vi(this.availableSize.height-e,this.availableSize.width-e,o,0,0,this.element.id+"-background","visible","none");ni(!1,this.svgObject,this.renderer.drawImage(r),this.redraw)}},i.prototype.createSecondaryElement=function(){var e=Pi(this.redraw,this.element.id+"_Secondary_Element")||this.createElement("div",{id:this.element.id+"_Secondary_Element",styles:"position: relative"});ni(!1,this.element,e,this.redraw)},i.prototype.renderSeries=function(){this.redraw||this.svgObject.appendChild(this.renderer.createGroup({id:this.element.id+"_SeriesCollection"}));for(var e=0,t=this.visibleSeries;e<t.length;e++){var i=t[e];i.visible&&this.pieSeries3DModule&&(i.draw(i,this),this.defaultLabelBound(i))}},i.prototype.defaultLabelBound=function(e){if(e.segments.length>0&&e.dataLabel.visible){var t=this.getSeriesBound(e);e.dataLabel.visible&&"Inside"===e.dataLabel.position&&(e.labelBound=new R.Rect(t.x,t.y,t.width+t.x,t.height+t.y)),e.findMaxBounds(e.labelBound,t),this.circularChartLegend3DModule&&(e.labelBound.x-=this.explodeDistance,e.labelBound.y-=this.explodeDistance,e.labelBound.height+=this.explodeDistance-e.labelBound.y,e.labelBound.width+=this.explodeDistance-e.labelBound.x)}},i.prototype.getSeriesBound=function(e){var t=new R.Rect(1/0,1/0,-1/0,-1/0),i=0;i=0===i?360:i,e.findMaxBounds(t,this.getRectFromAngle(0)),e.findMaxBounds(t,this.getRectFromAngle(i)),e.findMaxBounds(t,new R.Rect(e.segments[0].center.x,e.segments[0].center.y,0,0));var o=(90*Math.floor(0)+90)%360,r=90*Math.floor(i/90)%360;r=0===r?360:r,e.findMaxBounds(t,this.getRectFromAngle(o)),e.findMaxBounds(t,this.getRectFromAngle(r)),e.findMaxBounds(t,this.getRectFromAngle(0));for(var n=o===r?0:Math.floor(4),a=1;a<n;a++)o+=90,e.findMaxBounds(t,this.getRectFromAngle(o));return t.width-=t.x,t.height-=t.y,t},i.prototype.getRectFromAngle=function(e){var t=ct(e,this.circularRadius[0],this.visibleSeries[0].segments[0].center);return new R.Rect(t.x,t.y,0,0)},i.prototype.renderTitle=function(){var e=this.margin;if(!this.title)return null;var t=this.getTextAnchor(this.titleStyle.textAlignment,this.enableRtl),i=(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont),o=this.margin.top+3*i.height/4,r=new R.Rect(e.left,0,this.availableSize.width-e.left-e.right,0),n=new R.TextOption(this.element.id+"-title",Ei(r,this.titleStyle),o,t,this.titleCollection,"","auto");this.titleLocation={x:n.x,y:n.y,size:i};var a=Di(this.renderer,n,this.titleStyle,this.titleStyle.color||this.themeStyle.chartTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,0,null,null,null,this.themeStyle.chartTitleFont);a&&(a.setAttribute("tabindex","0"),a.style.outline="none",a.parentNode.insertBefore(a,this.svgObject.children&&this.svgObject.children[1])),this.subTitle&&this.renderSubTitle(n)},i.prototype.getTextAnchor=function(e,t){switch(e){case"Near":return t?"end":"start";case"Far":return t?"start":"end";default:return"middle"}},i.prototype.renderSubTitle=function(e){for(var t=0,i=0,o=this.titleStyle.textAlignment,r=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont),n=0,a=this.titleCollection;n<a.length;n++){var l=a[n];t=(i=(0,R.measureText)(l,this.titleStyle,this.themeStyle.chartTitleFont).width)>t?i:t}var s=new R.Rect("Center"===o?e.x-t/2:"Far"===o?e.x-t:e.x,0,t,0),h=new R.TextOption(this.element.id+"-sub-title",Ei(s,this.subTitleStyle),e.y*e.text.length+3*r.height/4+10,this.getTextAnchor(this.subTitleStyle.textAlignment,this.enableRtl),this.subTitleCollection,"","auto");this.subTitleLocation={x:h.x,y:h.y,size:r},Di(this.renderer,h,this.subTitleStyle,this.subTitleStyle.color||this.themeStyle.chartSubTitleFont.color,this.svgObject,!1,this.redraw,null,null,null,null,0,null,null,null,this.themeStyle.chartSubTitleFont)},i.prototype.setSecondaryElementPosition=function(){var e=qt(this.element.id+"_Secondary_Element");if(e){var t=this.element.getBoundingClientRect(),i=qt(this.element.id+"_svg").getBoundingClientRect();e.style.left=Math.max(i.left-t.left,0)+"px",e.style.top=Math.max(i.top-t.top,0)+"px"}},i.prototype.createPieSvg=function(){this.removeSvg(),Ri(this)},i.prototype.removeSvg=function(){if(this.redraw)return null;if(Je(this.element.id+"_Secondary_Element"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&(0,t.remove)(this.svgObject)}Je("EJ2_legend_tooltip"),Je("EJ2_datalabel_tooltip"),Je(this.element.id+"PointHover_Border")},i.prototype.calculateVisibleSeries=function(){this.visibleSeries=[],this.series[0].index=0,this.visibleSeries.push(this.series[0])},i.prototype.calculateBounds=function(){this.initialClipRect=new R.Rect(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height),this.titleCollection=[],this.subTitleCollection=[];var e=0,t=0,i=0,o=0;if(this.title&&(this.titleCollection=Ti(this.title,this.titleStyle,this.initialClipRect.width,this.enableRtl,this.themeStyle.chartTitleFont)),e=this.title?(0,R.measureText)(this.title,this.titleStyle,this.themeStyle.chartTitleFont).height*this.titleCollection.length:e,this.subTitle){for(var r=0,n=this.titleCollection;r<n.length;r++){var a=n[r];i=(o=(0,R.measureText)(a,this.titleStyle,this.themeStyle.chartTitleFont).width)>i?o:i}this.subTitleCollection=Ti(this.subTitle,this.subTitleStyle,i,this.enableRtl,this.themeStyle.chartSubTitleFont),t=(0,R.measureText)(this.subTitle,this.subTitleStyle,this.themeStyle.chartSubTitleFont).height*this.subTitleCollection.length}ht(this.initialClipRect,new R.Rect(0,t+e,this.margin.right+this.margin.left,this.margin.bottom+this.margin.top)),this.calculateLegendBounds()},i.prototype.calculateLegendBounds=function(){if(!this.circularChartLegend3DModule||!this.legendSettings.visible)return null;this.circularChartLegend3DModule.getLegendOptions(this,this.visibleSeries),this.circularChartLegend3DModule.calculateLegendBounds(this.initialClipRect,this.availableSize,null)},i.prototype.print=function(e){new zo(this).print(e)},i.prototype.export=function(e,t){this.circularChartExport3DModule&&(this.circularChartExport3DModule.export(e,t),this.afterExport&&this.circularChartExport3DModule.getDataUrl(this))},i.prototype.pdfExport=function(e,t,i,o,r,n,a,l,s){this.circularChartExport3DModule&&this.circularChartExport3DModule.pdfExport(e,t,i,o,r,n,a,l,s)},i.prototype.requiredModules=function(){var e=[];return e.push({member:this.type+"Series3D",args:[this]}),this.legendSettings.visible&&e.push({member:"CircularChartLegend3D",args:[this]}),this.series[0].dataLabel.visible&&e.push({member:"CircularChartDataLabel3D",args:[this]}),this.tooltip.enable&&e.push({member:"CircularChartTooltip3D",args:[this]}),"None"!==this.selectionMode&&e.push({member:"CircularChartSelection3D",args:[this]}),("None"!==this.highlightMode||this.legendSettings.enableHighlight)&&e.push({member:"CircularChartHighlight3D",args:[this]}),this.enableExport&&e.push({member:"CircularChartExport3D",args:[this]}),e},i.prototype.setNavigationStyle=function(e){var t="";switch(this.theme){case"HighContrastLight":case"HighContrast":t="#969696";break;case"MaterialDark":case"FabricDark":case"Bootstrap":case"Bootstrap4":t="#66afe9";break;case"Tailwind":case"TailwindDark":t="#4f46e5";break;case"Bootstrap5":case"Bootstrap5Dark":t="#0d6efd";break;case"Fluent":case"FluentDark":default:t="#9e9e9e";break;case"Fluent2":case"Fluent2Dark":case"Fluent2HighContrast":t="#0078D4"}var i=document.getElementById(e);i&&i.style.setProperty("outline","1.5px solid "+t)},i.prototype.removeNavigationStyle=function(){var e=document.querySelectorAll("path[id*=_Series_0_Point_], [id*="+this.element.id+"], [id*=_ChartBorder], text[id*=_title],g[id*=_chart_legend]");e&&e.forEach(function(e){(e instanceof HTMLElement||e instanceof SVGElement)&&e.style.setProperty("outline","none")})},i.prototype.circular3DChartKeyDown=function(e){var t="";return this.tooltip.enable&&("Tab"===e.code&&this.previousTargetId.indexOf("series")>-1||this.previousTargetId.indexOf("legend")>-1||"Escape"===e.code)&&(t="ESC"),e.code.indexOf("Arrow")>-1&&e.preventDefault(),e.ctrlKey&&"p"===e.key&&(e.preventDefault(),t="CtrlP"),""!==t&&this.chartKeyboardNavigations(e,e.target.id,t),"Tab"===e.code&&this.removeNavigationStyle(),!1},i.prototype.chartKeyboardNavigations=function(e,i,o){switch(this.isLegendClicked=!1,o){case"Tab":case"ArrowMove":if(i.indexOf("-point-")>-1){var r=parseInt(i.split("point-")[1],10),n=this.visibleSeries[0].points[r],a=n.symbolLocation.center,l=n.symbolLocation.radius*this.visibleSeries[0].coefficient,s=l+(n.symbolLocation.radius-l)/2;if(this.mouseX=a.x+s*Math.cos(n.symbolLocation.angle),this.mouseY=a.y+s*Math.sin(n.symbolLocation.angle),this.circularChartHighlight3DModule){var h=qt(i);(0,t.isNullOrUndefined)(h)||(h.id.indexOf("text")>1&&(h=qt(h.id.replace("text","shape"))),this.circularChartSelection3DModule?this.circularChartSelection3DModule.calculateSelectedElements(this,h,"mousemove"):this.circularChartHighlight3DModule.calculateSelectedElements(this,h,"mousemove"))}if(this.circularChartTooltip3DModule){var c=this.visibleSeries[0],d=void 0;c.enableTooltip&&(d=new Mp(c.points[r],c)),this.circularChartTooltip3DModule.element=this.element,this.circularChartTooltip3DModule.control=this,this.circularChartTooltip3DModule.renderSeriesTooltip(this,d)}}if(this.circularChartHighlight3DModule&&"None"!==this.highlightMode){i=i.indexOf("_chart_legend_g_")>-1?document.getElementById(i).firstChild.id:i;for(var p=this.element.id+"_chart_legend",u=[p+"_text_",p+"_shape_marker_",p+"_shape_"],g=0;g<u.length;g++){var m=u[g];if(i.indexOf(m)>-1){document.getElementById(i).setAttribute("class",""),this.circularChartSelection3DModule?this.circularChartSelection3DModule.legendSelection(this,qt(i),"mousemove"):this.circularChartHighlight3DModule.legendSelection(this,qt(i),"mousemove");break}}}break;case"Enter":case"Space":i.indexOf("_chart_legend_")>-1&&this.circularChartLegend3DModule?(this.isLegendClicked=!0,this.circularChartLegend3DModule.click(e),this.focusChild(document.getElementById(i).parentElement),this.setNavigationStyle(document.getElementById(i).parentElement.id)):(this.circularChartSelection3DModule&&this.circularChartSelection3DModule.calculateSelectedElements(this,document.getElementById(i),"click"),this.setNavigationStyle(i));break;case"CtrlP":this.print();break;case"ESC":this.circularChartTooltip3DModule&&this.circularChartTooltip3DModule.removeTooltip(1),this.circularChartSelection3DModule?this.circularChartSelection3DModule.calculateSelectedElements(this,document.getElementById(this.element.id+"-border"),"mousemove"):this.circularChartHighlight3DModule&&"None"!==this.highlightMode&&this.circularChartHighlight3DModule.calculateSelectedElements(this,document.getElementById(this.element.id+"-border"),"mousemove")}},i.prototype.focusChild=function(e){e.setAttribute("tabindex","0");var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-circular3dchart-focused")?t="e-circular3dchart-focused "+t:t||(t="e-circular3dchart-focused"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.circular3DChartKeyUp=function(e){var t="",i=e.target.id,o=qt(this.element.id+"_chart_legend_translate_g"),r=qt(this.element.id+"_chart_legend_pageup");if(o){var n=o.firstElementChild,a=n.getAttribute("class");a&&-1===a.indexOf("e-circular3dchart-focused")?a+=" e-circular3dchart-focused":a||(a="e-circular3dchart-focused"),n.setAttribute("class",a)}if(r&&r.setAttribute("class","e-circular3dchart-focused"),this.removeNavigationStyle(),"Tab"===e.code)""!==this.previousTargetId&&(this.previousTargetId.indexOf("-point-")>-1&&-1===i.indexOf("-point-")?this.currentPointIndex=0:this.previousTargetId.indexOf("_chart_legend_page")>-1&&-1===i.indexOf("_chart_legend_page")&&-1===i.indexOf("_chart_legend_g_")?this.setTabIndex(e.target,r):this.previousTargetId.indexOf("_chart_legend_g_")>-1&&-1===i.indexOf("chart_legend_g_")?this.setTabIndex(o.children[this.currentLegendIndex],o.firstElementChild):this.previousTargetId.indexOf("-title")>-1&&i.indexOf("-point-")>-1&&(this.currentPointIndex=parseInt(i.split("point-")[1],10))),this.previousTargetId=i,i.indexOf("_chart_legend_g_")>-1&&"None"!==this.highlightMode?(i=e.target.lastElementChild.id,t="Tab"):i.indexOf("-point-")>-1&&("None"!==this.highlightMode||this.tooltip.enable)&&(t="Tab");else if(e.code.indexOf("Arrow")>-1){if(e.preventDefault(),i.indexOf("_chart_legend_page")>-1)e.target.removeAttribute("tabindex"),this.previousTargetId=i=this.element.id+"_chart_legend_page"+("ArrowRight"===e.code?"up":"down"),this.focusTarget(qt(i));else if(i.indexOf("_chart_legend_")>-1){e.target.removeAttribute("tabindex"),this.currentLegendIndex+="ArrowUp"===e.code||"ArrowRight"===e.code?1:-1,this.currentLegendIndex=this.getActualIndex(this.currentLegendIndex,o.children.length);var l=o.children[this.currentLegendIndex];this.focusTarget(l),this.removeNavigationStyle(),this.setNavigationStyle(l.id),this.previousTargetId=i=l.lastElementChild.id,t="None"!==this.highlightMode?"ArrowMove":""}else if(i.indexOf("-point-")>-1){e.target.setAttribute("tabindex","-1");for(var s=0,h=[],c=0;c<this.visibleSeries[0].points.length;c++){s=this.visibleSeries[0].points[c].visible?s+1:s,this.visibleSeries[0].points[c].visible&&h.push(this.visibleSeries[0].points[c].index)}this.currentPointIndex=h.indexOf(this.currentPointIndex)+("ArrowUp"===e.code||"ArrowRight"===e.code?1:-1),this.currentPointIndex=h[this.getActualIndex(this.currentPointIndex,h.length)];var d=document.querySelectorAll('[id*="region-series-0-point-'+this.currentPointIndex+'"]'),p=void 0;d.length>0&&(p=d[d.length-1]),i=p?p.id:"",this.focusTarget(qt(i)),this.removeNavigationStyle(),this.setNavigationStyle(i),t=this.tooltip.enable||this.circularChartHighlight3DModule?"ArrowMove":""}}else"Enter"!==e.code&&"Space"!==e.code||!(i.indexOf("_chart_legend_")>-1||i.indexOf("-point-")>-1)||(i=i.indexOf("_chart_legend_g")>-1?e.target.lastElementChild.id:i,t="Enter");return""!==t&&this.chartKeyboardNavigations(e,i,t),"Tab"===e.code&&this.setNavigationStyle(i),!1},i.prototype.getActualIndex=function(e,t){return e>t-1?0:e<0?t-1:e},i.prototype.focusTarget=function(e){var t=e.getAttribute("class");return e.setAttribute("tabindex","0"),t&&-1===t.indexOf("e-circular3dchart-focused")?t+=" e-circular3dchart-focused":t||(t="e-circular3dchart-focused"),e.setAttribute("tabindex","0"),e.setAttribute("class",t),e.focus(),e.id},i.prototype.setTabIndex=function(e,t){e&&e.removeAttribute("tabindex"),t&&t.setAttribute("tabindex","0")},i.prototype.getPersistData=function(){return""},i.prototype.getModuleName=function(){return"circularchart3d"},i.prototype.destroy=function(){if(this.element){this.unWireEvents(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],e.prototype.destroy.call(this),this.element.classList.remove("e-circular3dchart"),this.element.classList.remove("e-circular3dchart-focused");var t=document.getElementById(this.element.id+"Keyboard_circular3dchart_focus");t&&t.remove();var i=document.getElementById(this.element.id+"_ej2_chart_highlight");i&&i.remove();var o=document.getElementById(this.element.id+"_ej2_chart_selection");o&&o.remove(),Je("chartmeasuretext"),this.removeSvg(),this.svgObject=null}},i.prototype.chartResize=function(){var e=this;this.animateSeries=!1;var t={previousSize:new R.Size(this.availableSize.width,this.availableSize.height),currentSize:new R.Size(0,0),chart:this},i={cancel:!1};return this.resizeTo&&clearTimeout(this.resizeTo),this.trigger(le,i),i.cancel||(this.resizeTo=+setTimeout(function(){e.isDestroyed?clearTimeout(e.resizeTo):(ki(e),t.currentSize=e.availableSize,e.trigger(ae,t),e.refreshChart())},500)),!1},i.prototype.changeVisibleSeries=function(e,t){for(var i=0,o=e;i<o.length;i++){var r=o[i];if(t===r.index)return r}return null},i.prototype.removeSeriesElements=function(e){document.querySelectorAll('[id*="region-series-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()}),document.querySelectorAll('[id*="data-label-text-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()}),document.querySelectorAll('[id*="data-label-series-0-shape-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()}),document.querySelectorAll('[id*="datalabel-series-0-connector-"]').forEach(function(t){if(t.parentElement.id===e.groupElement.id)return t.remove()})},i.prototype.onPropertyChanged=function(i,o){for(var r={refreshElements:!1,refreshBounds:!1},n=0,a=Object.keys(i);n<a.length;n++){switch(a[n]){case"theme":this.animateSeries=!0;break;case"title":case"subTitle":case"height":case"width":case"margin":case"enableRotation":case"depth":r.refreshBounds=!0;break;case"tilt":case"rotation":this.rotateActivate||(r.refreshBounds=!0,this.animateSeries=!1);break;case"titleStyle":i.titleStyle&&(i.titleStyle.size||i.titleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"subTitleStyle":i.subTitleStyle&&(i.subTitleStyle.size||i.subTitleStyle.textOverflow)?r.refreshBounds=!0:r.refreshElements=!0;break;case"legendSettings":r.refreshBounds=!0,r.refreshElements=!0;break;case"dataSource":this.processData(!1),r.refreshBounds=!0;break;case"series":if(!this.delayRedraw){for(var l=!1,s=void 0,h=void 0,c=0;c<this.series.length;c++)((s=i.series[c]).explodeOffset||s.radius||s.innerRadius||s.emptyPointSettings)&&(h=!0),i.series[c]&&(i.series[c].dataSource||i.series[c].yName||i.series[c].xName||i.series[c].dataLabel||h)&&((0,t.extend)(this.changeVisibleSeries(this.visibleSeries,c),s,null,!0),l=!0),i.series[c]&&!(0,t.isNullOrUndefined)(i.series[c].explodeIndex)&&i.series[c].explodeIndex>=0&&i.series[c].explodeIndex!==o.series[c].explodeIndex&&(l=!0,this.removeSeriesElements(this));l&&(this.processData(!1),r.refreshBounds=!0)}this.delayRedraw=!1,this.redraw=!1;break;case"enableRtl":case"locale":this.circularChartHighlight3DModule&&Je(this.circularChartHighlight3DModule.styleId),this.circularChartSelection3DModule&&Je(this.circularChartSelection3DModule.styleId),e.prototype.refresh.call(this);break;case"background":case"border":r.refreshElements=!0;break;case"isMultiSelect":case"selectedDataIndexes":case"selectionMode":this.circularChartSelection3DModule&&((0,t.isNullOrUndefined)(this.circularChartSelection3DModule.selectedDataIndexes)?this.circularChartSelection3DModule.invokeSelection(this):(this.circularChartSelection3DModule.selectedDataIndexes=this.selectedDataIndexes,this.circularChartSelection3DModule.redrawSelection(this)));break;case"tooltip":this.circularChartTooltip3DModule&&(this.circularChartTooltip3DModule.previousPoints=[],this.tooltip.template&&(this.circularChartTooltip3DModule.template=this.tooltip.template))}!r.refreshBounds&&r.refreshElements?(this.removeSeriesElements(this),this.createPieSvg(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],this.renderElements()):r.refreshBounds&&(this.removeSeriesElements(this),this.createPieSvg(),this.circular3DPolygon=[],this.visibleSeries[0].segments=[],this.calculateBounds(),this.renderElements())}},Tp([(0,t.Property)(null)],i.prototype,"width",void 0),Tp([(0,t.Property)(null)],i.prototype,"height",void 0),Tp([(0,t.Property)(null)],i.prototype,"title",void 0),Tp([(0,t.Property)(null)],i.prototype,"backgroundImage",void 0),Tp([(0,t.Property)("")],i.prototype,"dataSource",void 0),Tp([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"titleStyle",void 0),Tp([(0,t.Property)(null)],i.prototype,"subTitle",void 0),Tp([(0,t.Complex)({fontFamily:null,size:null,fontStyle:null,fontWeight:null,color:null},s)],i.prototype,"subTitleStyle",void 0),Tp([(0,t.Property)("None")],i.prototype,"selectionMode",void 0),Tp([(0,t.Property)("None")],i.prototype,"highlightMode",void 0),Tp([(0,t.Collection)([{}],lp)],i.prototype,"series",void 0),Tp([(0,t.Complex)({},wp)],i.prototype,"legendSettings",void 0),Tp([(0,t.Property)("")],i.prototype,"highlightColor",void 0),Tp([(0,t.Property)("None")],i.prototype,"selectionPattern",void 0),Tp([(0,t.Property)("None")],i.prototype,"highlightPattern",void 0),Tp([(0,t.Property)(!1)],i.prototype,"isMultiSelect",void 0),Tp([(0,t.Property)(!0)],i.prototype,"enableAnimation",void 0),Tp([(0,t.Property)("Material")],i.prototype,"theme",void 0),Tp([(0,t.Collection)([],b)],i.prototype,"selectedDataIndexes",void 0),Tp([(0,t.Complex)({},m)],i.prototype,"margin",void 0),Tp([(0,t.Complex)({color:"#DDDDDD",width:0},u)],i.prototype,"border",void 0),Tp([(0,t.Complex)({},Dp)],i.prototype,"tooltip",void 0),Tp([(0,t.Property)(null)],i.prototype,"background",void 0),Tp([(0,t.Property)(!1)],i.prototype,"useGroupingSeparator",void 0),Tp([(0,t.Property)(50)],i.prototype,"depth",void 0),Tp([(0,t.Property)(0)],i.prototype,"tilt",void 0),Tp([(0,t.Property)(!1)],i.prototype,"enableRotation",void 0),Tp([(0,t.Property)(0)],i.prototype,"rotation",void 0),Tp([(0,t.Property)(!1)],i.prototype,"enableExport",void 0),Tp([(0,t.Event)()],i.prototype,"load",void 0),Tp([(0,t.Event)()],i.prototype,"loaded",void 0),Tp([(0,t.Event)()],i.prototype,"legendRender",void 0),Tp([(0,t.Event)()],i.prototype,"legendClick",void 0),Tp([(0,t.Event)()],i.prototype,"selectionComplete",void 0),Tp([(0,t.Event)()],i.prototype,"pointRender",void 0),Tp([(0,t.Event)()],i.prototype,"seriesRender",void 0),Tp([(0,t.Event)()],i.prototype,"textRender",void 0),Tp([(0,t.Event)()],i.prototype,"beforeExport",void 0),Tp([(0,t.Event)()],i.prototype,"afterExport",void 0),Tp([(0,t.Event)()],i.prototype,"beforePrint",void 0),Tp([(0,t.Event)()],i.prototype,"beforeResize",void 0),Tp([(0,t.Event)()],i.prototype,"resized",void 0),Tp([(0,t.Event)()],i.prototype,"circularChart3DMouseMove",void 0),Tp([(0,t.Event)()],i.prototype,"circularChart3DMouseClick",void 0),Tp([(0,t.Event)()],i.prototype,"circularChart3DMouseDown",void 0),Tp([(0,t.Event)()],i.prototype,"circularChart3DMouseLeave",void 0),Tp([(0,t.Event)()],i.prototype,"circularChart3DMouseUp",void 0),Tp([(0,t.Event)()],i.prototype,"pointClick",void 0),Tp([(0,t.Event)()],i.prototype,"pointMove",void 0),Tp([(0,t.Event)()],i.prototype,"tooltipRender",void 0),i=Tp([t.NotifyPropertyChanges],i)}(t.Component),_p=function(){function e(e){this.chart=e}return e.prototype.export=function(e,t){var i=new sa(this.chart),o={cancel:!1,width:null,height:null};this.chart.trigger(xe,o),o.cancel||i.export(e,t,void 0,[this.chart])},e.prototype.pdfExport=function(e,t,i,o,r,n,a,l,s){var h=new sa(this.chart);i=i||[this.chart];var c={cancel:!1,width:o,height:r};this.chart.trigger(xe,c),c.cancel||h.export("PDF",e,t,i,o=c.width,r=c.height,n,a,l,s)},e.prototype.getDataUrl=function(e){return new sa(e).getDataUrl(e)},e.prototype.getModuleName=function(){return"CircularChartExport3D"},e.prototype.destroy=function(){},e}(),Ip=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Op=function(e){function i(t){var i=e.call(this,t)||this;return i.circular3D=t,i.renderer=t.renderer,i.addEventListener(),i}return Ip(i,e),i.prototype.addEventListener=function(){this.circular3D.isDestroyed||(this.circular3D.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.circular3D.on("click",this.mouseClick,this))},i.prototype.removeEventListener=function(){this.circular3D.isDestroyed||(this.circular3D.off(t.Browser.touchMoveEvent,this.mouseMove),this.circular3D.off("click",this.mouseClick))},i.prototype.initPrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_selection",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.rectPoints=null},i.prototype.invokeSelection=function(e){this.initPrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.selectionMode,this.selectDataIndex(this.concatIndexes(e.selectedDataIndexes,this.selectedDataIndexes),e)},i.prototype.generateStyle=function(e,t){return this.styleId+"_series_"+e.index+"_point_"+t},i.prototype.getElementByIndex=function(e){var t=this,i=[];document.querySelectorAll('[id*="-region-series-'+e.series+"-point-"+e.point+'"]').forEach(function(o){o.id.indexOf(t.circular3D.element.id+"-")>-1&&t.indexFinder(o.id).point===e.point&&i.push(o)});var o=document.getElementById(this.control.element.id+"-svg-data-label-text-"+e.point),r=document.getElementById(this.control.element.id+"-datalabel-series-0-connector-"+e.point),n=document.getElementById(this.control.element.id+"-svg-data-label-series-0-shape-"+e.point);return o&&i.push(o),r&&i.push(r),n&&i.push(n),i},i.prototype.isAlreadySelected=function(e,t,i){if("mousemove"===t?(this.currentMode=this.circular3D.highlightMode,this.highlightDataIndexes=[],this.styleId=this.circular3D.element.id+"_ej2_chart_highlight"):"click"!==t&&"keyup"!==t||(this.currentMode=this.circular3D.selectionMode,this.styleId=this.circular3D.element.id+"_ej2_chart_selection"),"None"!==this.circular3D.highlightMode&&"None"===this.circular3D.selectionMode&&"click"===t)return!1;if(("None"!==this.circular3D.highlightMode||this.circular3D.legendSettings.enableHighlight)&&this.previousSelectedElement&&this.previousSelectedElement[0]){var o=void 0,r=e.nodeName;e.parentNode&&(o=("path"===r||"shape"===r)&&e.id.indexOf("region")>1);for(var n=function(e){var r;a.previousSelectedElement[e].hasAttribute("class")&&(a.previousSelectedElement[e].getAttribute("class").indexOf("highlight")>-1&&(o||"click"===t||"keyup"===t)?(a.previousSelectedElement[e].classList.forEach(function(e){e.indexOf("selection")>-1&&(r=e)}),a.previousSelectedElement[e].removeAttribute("class"),r&&a.addSvgClass(a.previousSelectedElement[e],r),a.previousSelectedElement[e].classList.remove(a.styleId+"_series_"+i.series),a.addOrRemoveIndex(a.highlightDataIndexes,a.indexFinder(a.previousSelectedElement[e].id))):!o&&a.previousSelectedElement[e].getAttribute("class").indexOf("highlight")>-1&&a.performSelection(a.indexFinder(a.previousSelectedElement[e].id),a.circular3D,a.previousSelectedElement[e]))},a=this,l=0;l<this.previousSelectedElement.length;l++)n(l)}return!0},i.prototype.mouseClick=function(e,t){this.calculateSelectedElements(e,t.target,t.type)},i.prototype.calculateSelectedElements=function(e,i,o){(0,t.isNullOrUndefined)(i)||"None"===e.selectionMode&&"None"===e.highlightMode||i.id&&-1===i.id.indexOf(e.element.id+"-")||i.getAttribute("id").indexOf("_connector_")>-1||(this.isAlreadySelected(i,o,this.indexFinder(i.id)),(i.id.indexOf("-series-")>-1||i.id.indexOf("-data-label-")>-1)&&this.performSelection(this.indexFinder(i.id),e,i))},i.prototype.indexFinder=function(e){var t=["NaN","NaN"];return e.indexOf("-point-")>-1?t=e.split("-series-")[1].split("-point-"):e.indexOf("-border-")>-1?t[0]=e.split("-border-")[1]:e.indexOf("data-label-series-0-shape-")>-1&&"Inside"===this.control.series[0].dataLabel.position?(t[0]="0",t[1]=e.split("-shape-")[1]):e.indexOf("-series-")>-1?t[0]=e.split("-series-")[1]:e.indexOf("_chart_legend_shape_")>-1?(t=e.split("_chart_legend_shape_"))[0]="0":e.indexOf("_chart_legend_g_")>-1?(t=e.split("_chart_legend_g_"))[0]="0":e.indexOf("-data-label-")>-1?(t[0]="0",t[1]=e.split("-data-label-text-")[1]):e.indexOf("-connector-")>-1&&(t[0]="0",t[1]=e.split("-connector-")[1]),new k(parseInt(t[0],10),parseInt(t[1],10))},i.prototype.performSelection=function(e,t,i){!isNaN(e.point)&&"Point"===this.currentMode&&i&&this.getElementByIndex(e).length>0&&(this.selection(t,e,this.getElementByIndex(e)),this.selectionComplete(t,t.series[0]),this.blurEffect(t.element.id,t.visibleSeries))},i.prototype.selectionComplete=function(e,t){for(var i,o=[],r=0;r<this.selectedDataIndexes.length;r++)i=this.selectedDataIndexes[r].point,isNaN(i)||o.push({x:t.dataSource[i][t.xName],y:t.points[i].y,seriesIndex:this.selectedDataIndexes[r].series,pointIndex:i});var n={name:ne,selectedDataValues:o,cancel:!1};e.trigger(ne,n)},i.prototype.selection=function(e,t,i){e.isMultiSelect||-1!==this.styleId.indexOf("highlight")||"None"===e.selectionMode||this.removeMultiSelectElements(e,this.selectedDataIndexes,t);var o=i[0]&&(i[0].getAttribute("class")||"");i[0]&&o.indexOf(this.getSelectionClass(i[0].id))>-1?(this.removeStyles(i),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,t):this.addOrRemoveIndex(this.selectedDataIndexes,t)):(this.previousSelectedElement="None"!==e.highlightMode?i:[],o.indexOf("selection")<0&&this.applyStyles(i,t),this.styleId.indexOf("highlight")>0&&("None"!==e.highlightMode||e.legendSettings.enableHighlight)?this.addOrRemoveIndex(this.highlightDataIndexes,t,!0):this.addOrRemoveIndex(this.selectedDataIndexes,t,!0))},i.prototype.redrawSelection=function(e){var i=(0,t.extend)([],this.selectedDataIndexes,null,!0),o=(0,t.extend)([],this.highlightDataIndexes,null,!0);this.styleId.indexOf("highlight")>0&&o.length>0?(this.removeSelectedElements(e,this.highlightDataIndexes),i=o):this.removeSelectedElements(e,this.selectedDataIndexes),this.blurEffect(e.element.id,e.visibleSeries),this.selectDataIndex(i,e)},i.prototype.removeSelectedElements=function(e,t){for(var i=0,o=t;i<o.length;i++){var r=o[i];this.removeStyles(this.getElementByIndex(r))}for(var n=e.visibleSeries[0].points,a=0;a<n.length;a++){r=new k(0,n[a].index);this.removeStyles(0===this.getElementByIndex(r).length?[document.getElementById(this.control.element.id+"_chart_legend_shape_"+r.point)]:this.getElementByIndex(r))}},i.prototype.legendSelection=function(e,t,i){if("mousemove"===i){if(t.id.indexOf("text")>1&&(t=qt(t.id.replace("text","shape"))),t.id.indexOf("marker")>1&&(t=qt(t.id.replace("_marker",""))),t.id.indexOf("g")>1&&(t=qt(t.id.replace("_g_","_shape_"))),t.hasAttribute("class")&&(t.getAttribute("class").indexOf("highlight")>-1||t.getAttribute("class").indexOf("selection")>-1))return;this.currentMode=this.circular3D.highlightMode}else"click"===i&&(t.id.indexOf("text")>1&&(t=qt(t.id.replace("text","shape"))),t.id.indexOf("g")>1&&(t=qt(t.id.replace("_g_","_shape_"))));var o=this.indexFinder(t.id);if(this.isAlreadySelected(t,i,o)){var r=this.generateStyle(e.visibleSeries[o.series],o.point),n=document.querySelectorAll("."+r),a=!0;if(n.length>0)this.removeSelection(e,o.series,n,r,a,o);else{for(var l=0,s=e.visibleSeries[0].points;l<s.length;l++){var h=s[l];h.index!==o.point&&(!e.isMultiSelect||r.indexOf("highlight")>0)&&(r=this.generateStyle(e.visibleSeries[o.series],h.index),n=document.querySelectorAll("."+r),this.removeSelection(e,o.series,n,r,a,o))}var c;(c=this.getElementByIndex(o)).length>0&&(this.checkSelectionElements(c,r,!1,o.point),this.selection(e,o,c),this.blurEffect(e.element.id,e.visibleSeries))}}},i.prototype.selectDataIndex=function(e,t){for(var i,o=0,r=e;o<r.length;o++){var n=r[o];(i=this.getElementByIndex(n)[0])&&this.performSelection(n,t,i)}},i.prototype.removeMultiSelectElements=function(e,t,i){for(var o=0;o<t.length;o++)this.checkEquals(t[o],i)||(this.removeStyles(this.getElementByIndex(t[o])),t.splice(o,1),o--)},i.prototype.blurEffect=function(e,t){for(var i=this.checkVisibility(this.highlightDataIndexes)||this.checkVisibility(this.selectedDataIndexes),o=0,r=t[0].points;o<r.length;o++){var n=r[o],a=[];n.visible&&(a=this.getElementByIndex({series:0,point:n.index}),this.checkSelectionElements(a,this.generateStyle(t[0],n.index),i,n.index))}},i.prototype.checkSelectionElements=function(e,t,i,o){void 0===o&&(o=0);var r,n,a=e;"None"===this.circular3D.selectionMode||"None"===this.circular3D.highlightMode&&!this.circular3D.legendSettings.enableHighlight||(a=e);for(var l=e,s=0;s<a.length;s++)if(r=a[s].getAttribute("class")||"","None"===this.circular3D.selectionMode||"None"===this.circular3D.highlightMode&&!this.circular3D.legendSettings.enableHighlight||(t=r.indexOf("selection")>0||r.indexOf("highlight")>0?r:t),-1===r.indexOf(t)&&i?this.addSvgClass(a[s],this.unselected):(l=a[s],-1!==r.indexOf(this.unselected)&&t.indexOf("highlight")>0&&this.circular3D.highlightAnimation(a[s],700,.3),this.removeSvgClass(a[s],this.unselected),this.removeSvgClass(a[s].parentNode,this.unselected)),(-1!==a[s].id.indexOf("-data-label-text-")||-1!==a[s].id.indexOf("-connector-")||-1!==a[s].id.indexOf("-data-label-series-0-shape-"))&&(this.highlightDataIndexes&&this.highlightDataIndexes[0]&&o===this.highlightDataIndexes[0].point&&this.removeSvgClass(a[s],this.unselected),this.selectedDataIndexes))for(var h=0;h<this.selectedDataIndexes.length;h++)o===this.selectedDataIndexes[h].point&&this.removeSvgClass(a[s],this.unselected);this.control.circularChartLegend3DModule&&this.control.legendSettings.visible&&(n=qt(this.control.element.id+"_chart_legend_shape_"+o))&&(n.hasAttribute("class")&&this.removeSvgClass(n,n.getAttribute("class")),l.length>0?r=l[0].getAttribute("class"):l&&(r=l.getAttribute("class")||""),-1===r.indexOf(t)&&i?this.addSvgClass(n,this.unselected):(this.removeSvgClass(n,this.unselected),""===r?this.removeSvgClass(n,t):this.addSvgClass(n,t)))},i.prototype.applyStyles=function(e,t){for(var i=this.control.circularChartTooltip3DModule,o=0,r=e;o<r.length;o++){var n=r[o];if(n){this.removeSvgClass(n.parentNode,this.unselected),this.removeSvgClass(n,this.unselected);var a=i&&i.previousPoints.length>0&&i.previousPoints[0].point.index!==t.point?i.svgTooltip.opacity:this.series[t.series].opacity;n.setAttribute("opacity",a.toString()),-1===n.id.indexOf("-data-label-text-")&&-1===n.id.indexOf("-connector-")&&-1===n.id.indexOf("-data-label-series-0-shape-")&&this.addSvgClass(n,this.getSelectionClass(n.id)),this.getSelectionClass(n.id).indexOf("highlight")>0&&this.circular3D.stopElementAnimation(n)}}if(this.control.circularChartLegend3DModule&&this.control.legendSettings.visible){var l=document.getElementById(this.control.element.id+"_chart_legend_shape_"+t.point);this.removeSvgClass(l,l.getAttribute("class")),this.addSvgClass(l,this.getSelectionClass(l.id))}},i.prototype.getSelectionClass=function(e){return this.generateStyle(this.control.series[this.indexFinder(e).series],this.indexFinder(e).point)},i.prototype.removeSelection=function(e,t,i,o,r,n){if(i.length>0){for(var a=[],l=0;l<i.length;l++)a.push(i[l]);this.removeStyles(a),this.addOrRemoveIndex(this.selectedDataIndexes,new k(t,n.point));for(var s=0,h=e.visibleSeries[0].points;s<h.length;s++){var c=h[s];if(o=this.generateStyle(e.visibleSeries[0],c.index),document.querySelectorAll("."+o).length>0){for(var d=0,p=a;d<p.length;d++){var u=p[d];this.checkSelectionElements(u,o,!0,n.point)}r=!1;break}}r&&this.blurEffect(e.element.id,e.visibleSeries)}},i.prototype.removeStyles=function(e){for(var t=0,i=e;t<i.length;t++){var o=i[t];o&&this.removeSvgClass(o,this.getSelectionClass(o.id))}},i.prototype.addOrRemoveIndex=function(e,t,i){for(var o=0;o<e.length;o++)this.checkEquals(e[o],t)&&(e.splice(o,1),o--);i&&e.push(t)},i.prototype.checkEquals=function(e,t){return e.point===t.point&&e.series===t.series},i.prototype.mouseMove=function(e){var i=this.circular3D,o=e.target;if(!i.rotateActivate&&i.circularChartHighlight3DModule&&("None"!==i.highlightMode||i.legendSettings.enableHighlight)&&!(0,t.isNullOrUndefined)(o)){if(e.target.id.indexOf("text")>1&&e.target.id.indexOf("legend")>-1&&(o=qt(e.target.id.replace("text","shape"))),o.hasAttribute("class")&&(o.getAttribute("class").indexOf("highlight")>-1||o.getAttribute("class").indexOf("selection")>-1))return;return this.calculateSelectedElements(i,e.target,e.type),void(this.highlightDataIndexes&&(-1===o.id.indexOf("_chart_legend_")||-1!==o.id.indexOf("_legend_element"))&&this.highlightDataIndexes.length>0&&-1===o.id.indexOf("-series-")&&-1===o.id.indexOf("-data-label-")&&this.removeLegendHighlightStyles())}i.selectionMode},i.prototype.removeLegendHighlightStyles=function(){var e;this.circular3D.circularChartHighlight3DModule.highlightDataIndexes=[];for(var t=0;t<this.circular3D.visibleSeries[0].points.length;t++)if(e=document.getElementsByClassName(this.generateStyle(this.circular3D.visibleSeries[0],t)),0===this.selectedDataIndexes.length){for(e=document.getElementsByClassName(this.generateStyle(this.circular3D.visibleSeries[0],t));e.length>0;){(i=e[0])&&this.removeSvgClass(i,i.getAttribute("class"))}for(e=document.getElementsByClassName(this.unselected);e.length>0;){(i=e[0])&&(this.removeSvgClass(i,i.getAttribute("class")),this.generateStyle(this.circular3D.visibleSeries[0],t).indexOf("highlight")>-1&&this.circular3D.highlightAnimation(i,700,.3))}}else for(e=document.getElementsByClassName(this.generateStyle(this.circular3D.visibleSeries[0],t));e.length>0;){var i;(i=e[0])&&(this.removeSvgClass(i,i.getAttribute("class")),this.addSvgClass(i,this.unselected))}},i.prototype.getModuleName=function(){return"CircularChartSelection3D"},i.prototype.destroy=function(){this.removeEventListener()},i}(kn),zp=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Bp=function(e){function i(t){var i=e.call(this,t)||this;return i.circular3D=t,i.renderer=t.renderer,i.wireEvents(),i}return zp(i,e),i.prototype.wireEvents=function(){this.circular3D.isDestroyed||this.circular3D.on(t.Browser.touchMoveEvent,this.mouseMove,this)},i.prototype.unWireEvents=function(){this.circular3D.isDestroyed||this.circular3D.off(t.Browser.touchMoveEvent,this.mouseMove)},i.prototype.declarePrivateVariables=function(e){this.styleId=e.element.id+"_ej2_chart_highlight",this.unselected=e.element.id+"_ej2_deselected",this.selectedDataIndexes=[],this.highlightDataIndexes=[]},i.prototype.invokeHighlight=function(e){this.declarePrivateVariables(e),this.series=(0,t.extend)({},e.visibleSeries,null,!0),this.seriesStyles(),this.currentMode=e.highlightMode},i.prototype.getModuleName=function(){return"CircularChartHighlight3D"},i.prototype.destroy=function(){this.unWireEvents()},i}(Op)})(),d})());