/*!@license
* Infragistics.Web.ClientUI infragistics.categorychart.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.dv_core.js
*     infragistics.dv_dataseriesadapter.js
*     infragistics.datachart_category.js
*     infragistics.datachart_categorycore.js
*     infragistics.datachart_domainChart.js
*     infragistics.datachart_core.js
*     infragistics.ext_ui.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.dv_dataseriesadapter","./infragistics.datachart_category","./infragistics.datachart_categorycore","./infragistics.datachart_domainChart","./infragistics.datachart_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$ad=$$t;var $$0=$.ig.globalDefs.$$0;var $$4=$.ig.globalDefs.$$4;var $$1=$.ig.globalDefs.$$1;var $$w=$.ig.globalDefs.$$w;var $$x=$.ig.globalDefs.$$x;var $$f=$.ig.globalDefs.$$f;var $$g=$.ig.globalDefs.$$g;var $$dc=$.ig.globalDefs.$$dc;var $$j=$.ig.globalDefs.$$j;var $$6=$.ig.globalDefs.$$6;var $$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine([]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compareSimple,$x=$.ig.util.tryParseNumber,$y=$.ig.util.tryParseNumber1,$z=$.ig.util.numberToString,$0=$.ig.util.numberToString1,$1=$.ig.util.parseNumber,$2=$.ig.util.compare,$3=$.ig.util.replace,$4=$.ig.util.stringFormat,$5=$.ig.util.stringFormat1,$6=$.ig.util.stringFormat2,$7=$.ig.util.stringCompare1,$8=$.ig.util.stringCompare2,$9=$.ig.util.stringCompare3;$d("CategoryChartType:d",false,false,{Line:0,Area:1,Column:2,Point:3,StepLine:4,StepArea:5,Spline:6,SplineArea:7,Waterfall:8,Auto:9});$c("CategoryChart:a","XYChart",{jp:function(){$.ig.XYChart.prototype.jp.call(this);if(this.dataChart()==null){return}var a=this.dataChart()._cm._j.e();this.negativeBrushes(a._d);this.negativeOutlines(a._e);if(this.xAxisLabelTextColor()==null){this.xAxisLabelTextColor(a._k)}if(this.yAxisLabelTextColor()==null){this.yAxisLabelTextColor(a._k)}this.yAxisTickLength(0);this.yAxisMajorStroke($.ig.AxisDefaults.prototype.h);this.yAxisStroke(null);this.xAxisStroke($.ig.AxisDefaults.prototype.g);this.xAxisMajorStroke(null);this.xAxisTickLength($.ig.AxisDefaults.prototype.f);this.xAxisTickStroke($.ig.AxisDefaults.prototype.j);this.xAxisTickStrokeThickness($.ig.AxisDefaults.prototype.e);this.crosshairsAnnotationEnabled(true);this.crosshairsSnapToData(false);this.crosshairsDisplayMode(0);this.crosshairsLineThickness($.ig.Defaults.prototype.j);this.crosshairsLineVerticalStroke($.ig.Defaults.prototype.ae);this.crosshairsAnnotationXAxisBackground($.ig.Defaults.prototype.af);this.crosshairsAnnotationXAxisTextColor($.ig.Defaults.prototype.ag)},jr:function(a,b){$.ig.XYChart.prototype.jr.call(this,a,b);a.transitionInDuration(this.transitionInDuration());a.transitionInEasingFunction(this.transitionInEasingFunction())},kb:function(a,b,c){var $self=this;$.ig.XYChart.prototype.kb.call(this,a,b,c);switch(a){case"TransitionInDuration":this.je(function(d){d.transitionInDuration($self.transitionInDuration())});break;case"TransitionInEasingFunction":this.je(function(d){d.transitionInEasingFunction($self.transitionInEasingFunction())});break}},uk:0,transitionInDuration:function(a){if(arguments.length===1){var b=this.transitionInDuration();if(a!=b){this.uk=a;this.ka("TransitionInDuration",b,this.transitionInDuration())}return a}else{return this.uk}},tj:null,transitionInEasingFunction:function(a){if(arguments.length===1){var b=this.transitionInEasingFunction();if(a!=b){this.tj=a;this.ka("TransitionInEasingFunction",b,this.transitionInEasingFunction())}return a}else{return this.tj}},exportSerializedVisualData:function(){var cvd_=this.exportVisualData();cvd_.scaleByViewport();return cvd_.serialize()},jk:function(a){$.ig.XYChart.prototype.jk.call(this,a);a.animateSeriesWhenAxisRangeChanges(this.animateSeriesWhenAxisRangeChanges())},jq:function(a,b){$.ig.XYChart.prototype.jq.call(this,a,b);var c=$b($.ig.HorizontalAnchoredCategorySeries.prototype.$type,a);if(c==null){return}c.markerCollisionAvoidance(this.markerCollisionAvoidance());c.isTransitionInEnabled(this.isTransitionInEnabled());c.transitionInMode(this.transitionInMode());c.transitionInSpeedType(this.transitionInSpeedType());c.trendLineBrush($.ig.ArrayUtil.prototype.a($$a.$at.$type,this.trendLineBrushes(),b));c.trendLineType(this.trendLineType());c.trendLineThickness(this.trendLineThickness());c.markerType(this.a3(a,b));if(a.isNegativeColorSupported()){a.setNegativeColors($.ig.ArrayUtil.prototype.a($$a.$at.$type,this.negativeBrushes(),b),$.ig.ArrayUtil.prototype.a($$a.$at.$type,this.negativeOutlines(),b))}},s9:function(){return new $.ig.CategoryXAxis},td:function(){return new $.ig.NumericYAxis},i4:function(){this.xAxis(this.s9());this.xAxis().name("xAxis");var a=this.xAxis();a.propertyChanged=$.ig.Delegate.prototype.combine(a.propertyChanged,this.vd.runOn(this));this.yAxis(this.td());this.yAxis().name("yAxis");var b=this.yAxis();b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.ve.runOn(this));if(this.xAxis().labelSettings()==null){this.xAxis().labelSettings(new $.ig.AxisLabelSettings)}if(this.yAxis().labelSettings()==null){this.yAxis().labelSettings(new $.ig.AxisLabelSettings)}},rb:function(a){$.ig.XYChart.prototype.rb.call(this,a);a.abbreviateLargeNumbers(this.yAxisAbbreviateLargeNumbers())},domainType:function(){return 0},s3:0,chartType:function(a){if(arguments.length===1){if(a!=this.s3){var b=this.chartType();this.s3=a;this.ka("ChartType",$$t.$d.getBox(b),$$t.$d.getBox(this.chartType()))}return a}else{return this.s3}},s5:0,markerCollisionAvoidance:function(a){if(arguments.length===1){var b=this.markerCollisionAvoidance();if(a!=b){this.s5=a;this.ka("MarkerCollisionAvoidance",$.ig.CategorySeriesMarkerCollisionAvoidance.prototype.getBox(b),$.ig.CategorySeriesMarkerCollisionAvoidance.prototype.getBox(this.markerCollisionAvoidance()))}return a}else{return this.s5}},tn:false,isTransitionInEnabled:function(a){if(arguments.length===1){var b=this.isTransitionInEnabled();if(a!=b){this.tn=a;this.ka("IsTransitionInEnabled",b,this.isTransitionInEnabled())}return a}else{return this.tn}},s7:0,transitionInMode:function(a){if(arguments.length===1){var b=this.transitionInMode();if(a!=b){this.s7=a;this.ka("TransitionInMode",$.ig.CategoryTransitionInMode.prototype.getBox(b),$.ig.CategoryTransitionInMode.prototype.getBox(this.transitionInMode()))}return a}else{return this.s7}},th:0,transitionInSpeedType:function(a){if(arguments.length===1){var b=this.transitionInSpeedType();if(a!=b){this.th=a;this.ka("TransitionInSpeedType",$.ig.TransitionInSpeedType.prototype.getBox(b),$.ig.TransitionInSpeedType.prototype.getBox(this.transitionInSpeedType()))}return a}else{return this.th}},tx:0,xAxisInterval:function(a){if(arguments.length===1){var b=this.xAxisInterval();if(a!=b){this.tx=a;this.ka("XAxisInterval",b,this.xAxisInterval())}return a}else{return this.tx}},ty:0,xAxisMinorInterval:function(a){if(arguments.length===1){var b=this.xAxisMinorInterval();if(a!=b){this.ty=a;this.ka("XAxisMinorInterval",b,this.xAxisMinorInterval())}return a}else{return this.ty}},tw:0,xAxisGap:function(a){if(arguments.length===1){var b=this.xAxisGap();if(a!=b){this.tw=a;this.ka("XAxisGap",b,this.xAxisGap())}return a}else{return this.tw}},tz:0,xAxisOverlap:function(a){if(arguments.length===1){var b=this.xAxisOverlap();if(a!=b){this.tz=a;this.ka("XAxisOverlap",b,this.xAxisOverlap())}return a}else{return this.tz}},t0:0,yAxisInterval:function(a){if(arguments.length===1){var b=this.yAxisInterval();if(a!=b){this.t0=a;this.ka("YAxisInterval",b,this.yAxisInterval())}return a}else{return this.t0}},tp:false,yAxisIsLogarithmic:function(a){if(arguments.length===1){var b=this.yAxisIsLogarithmic();if(a!=b){this.tp=a;this.ka("YAxisIsLogarithmic",b,this.yAxisIsLogarithmic())}return a}else{return this.tp}},ul:0,yAxisLogarithmBase:function(a){if(arguments.length===1){var b=this.yAxisLogarithmBase();if(a!=b){this.ul=a;this.ka("YAxisLogarithmBase",b,this.yAxisLogarithmBase())}return a}else{return this.ul}},t2:0,yAxisMinimumValue:function(a){if(arguments.length===1){var b=this.yAxisMinimumValue();if(a!=b){this.t2=a;this.ka("YAxisMinimumValue",b,this.yAxisMinimumValue())}return a}else{return this.t2}},t1:0,yAxisMaximumValue:function(a){if(arguments.length===1){var b=this.yAxisMaximumValue();if(a!=b){this.t1=a;this.ka("YAxisMaximumValue",b,this.yAxisMaximumValue())}return a}else{return this.t1}},t3:0,yAxisMinorInterval:function(a){if(arguments.length===1){var b=this.yAxisMinorInterval();if(a!=b){this.t3=a;this.ka("YAxisMinorInterval",b,this.yAxisMinorInterval())}return a}else{return this.t3}},xAxisActualMinimum:function(){return this.xAxis().mq()},xAxisActualMaximum:function(){return this.xAxis().mp()},getCurrentXAxisActualMinimum:function(){return this.xAxisActualMinimum()},getCurrentYAxisActualMinimum:function(){return this.yAxisActualMinimum()},getCurrentXAxisActualMaximum:function(){return this.xAxisActualMaximum()},getCurrentYAxisActualMaximum:function(){return this.yAxisActualMaximum()},yAxisActualMinimum:function(){return this.yAxis().actualMinimumValue()},yAxisActualMaximum:function(){return this.yAxis().actualMaximumValue()},sz:null,negativeBrushes:function(a){if(arguments.length===1){var b=this.negativeBrushes();if(a!=b){this.sz=a;this.ka("NegativeBrushes",b,this.negativeBrushes())}return a}else{return this.sz}},s0:null,negativeOutlines:function(a){if(arguments.length===1){var b=this.negativeOutlines();if(a!=b){this.s0=a;this.ka("NegativeOutlines",b,this.negativeOutlines())}return a}else{return this.s0}},to:false,yAxisAbbreviateLargeNumbers:function(a){if(arguments.length===1){var b=this.yAxisAbbreviateLargeNumbers();if(a!=b){this.to=a;this.ka("YAxisAbbreviateLargeNumbers",b,this.yAxisAbbreviateLargeNumbers())}return a}else{return this.to}},tl:false,isCategoryHighlightingEnabled:function(a){if(arguments.length===1){var b=this.isCategoryHighlightingEnabled();if(a!=b){this.tl=a;this.ka("IsCategoryHighlightingEnabled",b,this.isCategoryHighlightingEnabled())}return a}else{return this.tl}},tm:false,isItemHighlightingEnabled:function(a){if(arguments.length===1){var b=this.isItemHighlightingEnabled();if(a!=b){this.tm=a;this.ka("IsItemHighlightingEnabled",b,this.isItemHighlightingEnabled())}return a}else{return this.tm}},init:function(){this.uk=1e3;this.s3=9;this.s5=1;this.t0=NaN;this.ul=10;this.t2=NaN;this.t1=NaN;this.to=true;this.tl=false;this.tm=false;this.tv=null;$.ig.XYChart.prototype.init.call(this);this.i7()},c7:function(){return function(){var $ret=new $$4.x($.ig.DataSeriesType.prototype.$type,0);$ret.add(2);$ret.add(1);$ret.add(0);$ret.add(10);$ret.add(6);$ret.add(7);$ret.add(5);$ret.add(4);$ret.add(8);return $ret}()},tv:null,dg:function(){if(this.tv==null){this.tv=$$t.$b.a()}return this.tv},vd:function(a,b){switch(b.propertyName()){case"ActualMinimum":this.kh("XAxisActualMinimum");break;case"ActualMaximum":this.kh("XAxisActualMaximum");break}},ve:function(a,b){switch(b.propertyName()){case"ActualMinimumValue":this.kh("YAxisActualMinimum");break;case"ActualMaximumValue":this.kh("YAxisActualMaximum");break}},kt:function(){$.ig.XYChart.prototype.kt.call(this);this.xAxis().label(this.xAxisLabel()==null?$.ig.XYChart.prototype.ow(this.xAxis(),this._ac.dataSeries()):this.xAxisLabel());this.xAxis().itemsSource(this.dataChart()!=null&&this.dataChart().series().count()>0?this.dataChart().series().__inner[0].itemsSource():null)},_xAxis:null,xAxis:function(a){if(arguments.length===1){this._xAxis=a;return a}else{return this._xAxis}},_yAxis:null,yAxis:function(a){if(arguments.length===1){this._yAxis=a;return a}else{return this._yAxis}},tc:function(a,b){switch(a){case 2:return this.bc(1);case 3:return this.bc(10);case 0:return this.bc(0);case 1:return this.bc(2);case 6:return this.bc(6);case 7:return this.bc(7);case 4:return this.bc(4);case 5:return this.bc(5);case 8:return this.bc(8);case 9:return this.tb(b);default:return this.bc(1)}},tb:function(a){return this.bc(a)},ab:function(a){switch(this.chartType()){case 1:return 2;case 0:return 0;case 3:return 10;case 6:return 6;case 7:return 7;case 5:return 5;case 4:return 4;case 8:return 8;case 9:return a.suggestedSeries();default:case 2:return 1}},bb:function(a,b){var c=this.tc(this.chartType(),a.suggestedSeries());c.valueMemberPath(a.findMatchingHint(0).path());c.xAxis(this.xAxis());c.yAxis(this.yAxis());return c},kr:function(a){if(a.suggestedSecondaryAxis()==2){this.yAxis().isLogarithmic(true);this.yAxis().logarithmBase(10)}},ku:function(){this.yAxis().isLogarithmic(this.yAxisIsLogarithmic());this.yAxis().logarithmBase(this.yAxisLogarithmBase())},c6:function(){return function(){var $ret=new $$4.x($.ig.IDataSeriesAdapterRule.prototype.$type,0);$ret.add(new $.ig.SimpleCategorySeriesRule);$ret.add(new $.ig.SubCollectionsRule);return $ret}()},i2:function(a,b){var c=$b($.ig.HorizontalAnchoredCategorySeries.prototype.$type,a);if(c!=null){c.markerCollisionAvoidance(this.markerCollisionAvoidance());c.markerType(this.a3(a,b))}},vb:function(a){this.vc(function(b,c){a(b)})},vc:function(a){if(this.dataChart()==null){return}for(var b=0;b<this.dataChart().series().count();b++){var c=$b($.ig.HorizontalAnchoredCategorySeries.prototype.$type,this.dataChart().series().__inner[b]);if(c==null){continue}a(c,b)}},l2:function(){return this.xAxis()},l3:function(){return this.yAxis()},tf:function(){return this.bc(30)},tg:function(){return this.bc(31)},c3:function(a,b){var c=$.ig.XYChart.prototype.c3.call(this,a,b);if(c!=null){var d=new $$4.x($.ig.Series.prototype.$type,0);if(this.tl){d.add(this.tf())}if(this.tm){d.add(this.tg())}for(var e=0;e<d.count();e++){var f=d.__inner[e];f.name(a+f.getType().typeName());c.add(f)}}return c},ky:function(a,b,c){$.ig.XYChart.prototype.ky.call(this,a,b,c);if(this._ac.dataSeries().count()>0){if(String.isNullOrEmpty(this.calloutsXMemberPath())){this.ak().setXMemberPath(a,c.getMemberPathFor(16))}if(String.isNullOrEmpty(this.calloutsYMemberPath())){this.ak().setYMemberPath(a,c.getMemberPathFor(0))}if(String.isNullOrEmpty(this.calloutsLabelMemberPath())){this.ak().setLabelMemberPath(a,c.getMemberPathFor(0))}if(String.isNullOrEmpty(this.calloutsContentMemberPath())){this.ak().setContentMemberPath(a,c.getMemberPathFor(0))}}},cm:function(){if(this.crosshairsDisplayMode()==4||this.crosshairsDisplayMode()==3){return true}else if(this.crosshairsDisplayMode()==0){if(this.chartType()==2||this.chartType()==8){return false}else if(this.chartType()==9&&this._ac!=null&&this._ac.dataSeries()!=null&&this._ac.dataSeries().count()>0){var a=this._ac.dataSeries().__inner[0].suggestedSeries();if(a==1||a==8){return false}}return true}return false},ka:function(a,b,c){var $self=this;$.ig.XYChart.prototype.ka.call(this,a,b,c);switch(a){case"ChartType":this.kt();break;case"MarkerCollisionAvoidance":this.vb(function(d){d.markerCollisionAvoidance($self.markerCollisionAvoidance())});break;case"IsTransitionInEnabled":this.vb(function(d){d.isTransitionInEnabled($self.isTransitionInEnabled())});break;case"TransitionInMode":this.vb(function(d){d.transitionInMode($self.transitionInMode())});break;case"TransitionInSpeedType":this.vb(function(d){d.transitionInSpeedType($self.transitionInSpeedType())});break;case"XAxisInterval":this.xAxis().interval(this.xAxisInterval());break;case"XAxisMinorInterval":this.xAxis().minorInterval(this.xAxisMinorInterval());break;case"XAxisGap":this.xAxis().gap(this.xAxisGap());break;case"XAxisOverlap":this.xAxis().overlap(this.xAxisOverlap());break;case"YAxisInterval":this.yAxis().interval(this.yAxisInterval());break;case"YAxisIsLogarithmic":this.yAxis().isLogarithmic(this.yAxisIsLogarithmic());break;case"YAxisLogarithmBase":this.yAxis().logarithmBase(this.yAxisLogarithmBase());break;case"YAxisMinimumValue":this.yAxis().minimumValue(this.yAxisMinimumValue());break;case"YAxisMaximumValue":this.yAxis().maximumValue(this.yAxisMaximumValue());break;case"YAxisMinorInterval":this.yAxis().minorInterval(this.yAxisMinorInterval());break;case"NegativeBrushes":case"NegativeOutlines":this.vc(function(d,e){if(d.isNegativeColorSupported()){d.setNegativeColors($.ig.ArrayUtil.prototype.a($$a.$at.$type,$self.negativeBrushes(),e),$.ig.ArrayUtil.prototype.a($$a.$at.$type,$self.negativeOutlines(),e))}});break;case"YAxisAbbreviateLargeNumbers":this.ri(function(d){d.abbreviateLargeNumbers($self.yAxisAbbreviateLargeNumbers())});break;case"IsCategoryHighlightingEnabled":case"IsItemHighlightingEnabled":this.kt();break}},$type:new $.ig.Type("CategoryChart",$.ig.XYChart.prototype.$type)},true);$c("CategoryChartMockDataGenerator:b","Object",{init:function(){$.ig.$op.init.call(this)},a:function(){var a=new $$4.x($$t.$c.$type,0);a.add(function(){var $ret=new $$t.c;$ret.label("Item A");$ret.series1(3);$ret.series2(4);$ret.series3(7);return $ret}());a.add(function(){var $ret=new $$t.c;$ret.label("Item B");$ret.series1(4);$ret.series2(3);$ret.series3(6);return $ret}());a.add(function(){var $ret=new $$t.c;$ret.label("Item C");$ret.series1(7);$ret.series2(2);$ret.series3(5);return $ret}());a.add(function(){var $ret=new $$t.c;$ret.label("Item D");$ret.series1(6);$ret.series2(4);$ret.series3(7);return $ret}());a.add(function(){var $ret=new $$t.c;$ret.label("Item E");$ret.series1(5);$ret.series2(5);$ret.series3(8);return $ret}());a.add(function(){var $ret=new $$t.c;$ret.label("Item F");$ret.series1(4);$ret.series2(8);$ret.series3(9);return $ret}());var arr_=a.toArray();return arr_},$type:new $.ig.Type("CategoryChartMockDataGenerator",$.ig.$ot)},true);$c("CategoryChartMockDataItem:c","Object",{init:function(){$.ig.$op.init.call(this)},_label:null,label:function(a){if(arguments.length===1){this._label=a;return a}else{return this._label}},_series1:0,series1:function(a){if(arguments.length===1){this._series1=a;return a}else{return this._series1}},_series2:0,series2:function(a){if(arguments.length===1){this._series2=a;return a}else{return this._series2}},_series3:0,series3:function(a){if(arguments.length===1){this._series3=a;return a}else{return this._series3}},$type:new $.ig.Type("CategoryChartMockDataItem",$.ig.$ot)},true)});