/*!@license
* Infragistics.Web.ClientUI infragistics.datachart_verticalcategory.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_geometry.js
*     infragistics.datachart_category.js
*     infragistics.datachart_categorycore.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_geometry","./infragistics.datachart_category","./infragistics.datachart_categorycore","./infragistics.datachart_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$i=$$t;var $$0=$.ig.globalDefs.$$0;var $$4=$.ig.globalDefs.$$4;var $$1=$.ig.globalDefs.$$1;var $$w=$.ig.globalDefs.$$w;var $$r=$.ig.globalDefs.$$r;var $$f=$.ig.globalDefs.$$f;var $$g=$.ig.globalDefs.$$g;var $$j=$.ig.globalDefs.$$j;var $$6=$.ig.globalDefs.$$6;var $$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["CategoryYAxis:a","BarSeries:e","BarBucketCalculator:f","IBarSeries:g","CategoryYAxisView:i","BarSeriesView:j"]);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;$c("CategoryYAxis:a","CategoryAxisBase",{a3:function(){return new $$t.i(this)},hn:function(a){$.ig.CategoryAxisBase.prototype.hn.call(this,a);this._mb=a},_mb:null,isVertical:function(){return true},ee:function(){return this.j1().height()},getCategoryBoundingBox:function(a,b,c){return this.getCategoryBoundingBoxHelper(a,b,c,true)},ma:function(a){if($b($$4.$x.$type.specialize(Array),a)!==null){return a.asArray()}return null},getScaledBucketValueList:function(a,b,c,d,e){var f;var g=e.e;var h=e.d;var i=e.c;var j=e.a;var k=!i.isEmpty();var l=this.categoryMode()==0?this.k9-1:this.k9;if(l<0){l=0}var m=i.top();var n=i.height();var o=g.top();var p=g.height();var q=h.top();var r=h.height();var s=0;var t=1;var u=this.ma(a);var v=false;if(u!=null){v=true}var w;for(var x=0;x<b.count();x++){w=b.item(x);for(var y=c;y<d;y++){if(v){f=u[y]}else{f=a.item(y)}if(k){var z=l>=1?f[w]/l:l==0?.5:NaN;if(!j){z=1-z}z=m+n*(z-s)/t;var aa=(z-e.d.top())/e.d.height();aa=e.d.top()+e.d.height()*(aa-e.e.top())/e.e.height();f[w]=aa}else{var ab=l>=1?f[w]/l:l==0?.5:NaN;if(!j){ab=1-ab}ab=q+r*(ab-o)/p;f[w]=ab}}}},init:function(){this.ml=1;this.mk=1;$.ig.CategoryAxisBase.prototype.init.call(this);this._ks=new $$4.x(Number,0);this._ab=$$t.$a.$type},interval:function(a){if(arguments.length===1){this.h($$t.$a.intervalProperty,a);return a}else{return this.c($$t.$a.intervalProperty)}},mc:function(){return!$.ig.util.isNaN(this.interval())},md:0,actualInterval:function(a){if(arguments.length===1){if(this.actualInterval()!=a){var b=this.md;this.md=a;this.hx("ActualInterval",b,this.actualInterval())}return a}else{return this.md}},er:function(){return this.actualInterval()},minorInterval:function(a){if(arguments.length===1){this.h($$t.$a.minorIntervalProperty,a);return a}else{return this.c($$t.$a.minorIntervalProperty)}},me:0,actualMinorInterval:function(a){if(arguments.length===1){if(this.actualMinorInterval()!=a){var b=this.me;this.me=a;this.hx("ActualMinorInterval",b,this.actualMinorInterval())}return a}else{return this.me}},ml:0,mn:function(a){if(arguments.length===1){this.ml=a;return a}else{return this.ml}},mk:0,mm:function(a){if(arguments.length===1){this.mk=a;return a}else{return this.mk}},getScaledValue:function(a,b){if(!b.c.isEmpty()){var c=this.mh(a,$.ig.NumericScaler.prototype.ac,b.c);c=(c-b.d.top())/b.d.height();c=b.d.top()+b.d.height()*(c-b.e.top())/b.e.height();return c}return this.mh(a,b.e,b.d)},mh:function(a,b,c){var d=this.categoryMode()==0?this.k9-1:this.k9;if(d<0){d=0}var e=d>=1?a/d:d==0?.5:NaN;if(!this._cg){e=1-e}return c.top()+c.height()*(e-b.top())/b.height()},getUnscaledValue:function(a,b){if(!b.c.isEmpty()){var c=b.e.top()+b.e.height()*(a-b.d.top())/b.d.height();c=c*b.d.height()+b.d.top();c=this.getUnscaledValue3(c,$.ig.NumericScaler.prototype.ac,b.c,this.categoryMode());return c}return this.getUnscaledValue3(a,b.e,b.d,this.categoryMode())},ej:function(a,b,c){if(!b.c.isEmpty()){var d=b.e.top()+b.e.height()*(a-b.d.top())/b.d.height();d=d*b.d.height()+b.d.top();d=this.getUnscaledValue3(d,$.ig.NumericScaler.prototype.ac,b.c,c);return d}return this.getUnscaledValue3(a,b.e,b.d,c)},getUnscaledValue3:function(a,b,c,d){var e=b.top()+(a-c.top())*b.height()/c.height();if(!this._cg){e=1-e}var f=d==0?this.k9-1:this.k9;if(f<0){f=0}return e*f},scrollRangeIntoView:function(a,b){if(a==NaN||b==NaN||this.kl()==null||this.kl().count()==0){return}var c=a/this.kl().count();var d=b/this.kl().count();this.seriesViewer().windowRect(new $$a.ae(0,this.seriesViewer().windowRect().x(),1-d,this.seriesViewer().windowRect().width(),d-c))},au:function(){return new $.ig.VerticalAxisLabelPanel},d0:function(){return this.interval()},getCategorySize:function(a,b,c){var d=this.j5(b,c);return d.height()/(this.k9*a.height())},ky:function(a,b,c){var d=this.k5(a,b,c);var e=0;if(!$.ig.util.isNaN(this.overlap())){e=Math.min(this.overlap(),1)}var f=1-.5*d;var g=this.getCategorySize(a,b,c)*f/(this.lb()-(this.lb()-1)*e);return g},getGroupCenter:function(a,b,c,d){var e=.5;if(this.lb()>1){var f=this.k5(b,c,d);var g=0;if(!$.ig.util.isNaN(this.overlap())){g=Math.min(this.overlap(),1)}var h=1-.5*f;var i=h/(this.lb()-(this.lb()-1)*g);var j=(h-i)/(this.lb()-1);e=.25*f+.5*i+a*j}return this.getCategorySize(b,c,d)*e},scrollIntoView:function(a){var b=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():$$a.$ae.empty();b=b.copy();var c=this.j7();var d=new $$a.ae(0,0,0,1,1);var e=this.j4();var f=new $.ig.ScalerParams(0,d,d,this.isInverted(),e);var g=!b.isEmpty()&&!c.isEmpty()&&this.kl()!=null?this.kl().indexOf(a):-1;var h=g>-1?this.getScaledValue(g,f):NaN;if(!$.ig.util.isNaN(h)&&this.seriesViewer().ed()){if(!$.ig.util.isNaN(h)){if(h<b.top()+.1*b.height()){h=h+.4*b.height();b.y(h-.5*b.height())}if(h>b.bottom()-.1*b.height()){h=h-.4*b.height();b.y(h-.5*b.height())}}this.seriesViewer().oj(b,false,true)}},c0:function(){if(this.cn()&&this.useEnhancedIntervalManagement()){this._bb=this.ba()}if(this.kl()==null){return false}var a=this.kl().count();if(a!=this.mm()){var b=new $.ig.AxisRangeChangedEventArgs(0,1,1,this.mm(),a);this.mm(a);this.hy(b);return true}return false},ko:function(a){if(a==null){return false}var b=this.bd();if(b==null){return false}return b.synchronizeVertically()},h4:function(a){$.ig.CategoryAxisBase.prototype.h4.call(this,a);var b=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():$$a.$ae.empty();var c=this.j7();var d=this.j2();var e=this.j1();var f=new $.ig.ScalerParams(0,b,c,this.isInverted(),d);var g=this._a4.ay();var h=this._a4.a1();var i=this._a4.az();var j=this._a4.a0();var k=this._a4.e();var l=this._a4.f();var m=this._a4.g();this.ig();this.hd(g);this.hd(h);this.hd(i);this.hd(j);this._c8.clear();this._c9.clear();this._ks.clear();this._a4.at(this,b,c);if(b.isEmpty()||c.isEmpty()){this._bq.count(0);this._bp.count(0);this._bo.count(0)}if(this._bq.count()==0&&this._bp.count()==0){this._a4.y()}if(this.labelSettings()!=null){this.labelSettings().registerAxis(this)}if(this.itemsSource()==null||this.kl()==null||this.kl().count()==0){this._bq.count(0);this._bp.count(0);this._bo.count(0);this._a4.y();return}if(!b.isEmpty()&&!c.isEmpty()){var n=this.getUnscaledValue(e.top(),f);var o=this.getUnscaledValue(e.bottom(),f);if(!this.isInverted()){n=Math.ceil(n);o=Math.floor(o)}else{n=Math.floor(n);o=Math.ceil(o)}var p=c.left();var q=0;if(this.crossingAxis()!=null){var r=$b($.ig.NumericXAxis.prototype.$type,this.crossingAxis());if(r!=null){var s=this.h9(p,q,b,c,d,c.left(),c.right());p=s.p0;q=s.p1}}this.ih(g,p,c,k,true);this._a4.ao(q);var t=Math.min(n,o);var u=Math.max(n,o);var v=new $.ig.LinearCategorySnapper(1,t,u,e.height(),this.interval(),this.categoryMode(),this.eu());var w=v._g;while(!this.mc()&&w<10&&this.cw(w,b,c,d)){w--}if(v._g!=w){v=new $.ig.LinearCategorySnapper(1,t,u,e.height(),w,this.categoryMode(),this.eu())}var x=Math.floor((t-0)/v._g);var y=Math.ceil((u-0)/v._g);if(!$.ig.util.isNaN(x)&&!$.ig.util.isNaN(y)){var z=$.ig.truncate(x);var aa=$.ig.truncate(y);var ab=this.getScaledValue(0+z*v._g,f);var ac=Math.abs(this.getScaledValue(v._g,f)-this.getScaledValue(0,f));this._av._bw=this.getScaledValue(v._g,f);for(var ad=z;ad<=aa;++ad){var ae=this.getScaledValue(0+(ad+1)*v._g,f);if(ab<=e.bottom()){if(ad%2==0){this.hm(h,ab,ae,c)}this.hl(i,ab,c,l,false);this._ks.add(ab)}if(this.categoryMode()!=0&&this.lb()!=0&&this._cv){if(this.minorInterval()>0&&this.minorInterval()<v._g){var af=ac*this.minorInterval();if(!this.isInverted()){var ag=ab;while(ag-af>ae){ag-=af;if(Math.abs(ag-ae)<1e-4){break}this.hl(j,ag,c,m,false)}}else{var ah=ab;while(ah+af<ae){ah+=af;if(Math.abs(ah-ae)<1e-4){break}this.hl(j,ah,c,m,false)}}this.actualMinorInterval(this.minorInterval())}else{for(var ai=0;ai<$.ig.truncate(v._g);ai++){for(var aj=0;aj<this.lb();aj++){var ak=this.getGroupCenter(aj,b,c,d);if(!this.isInverted()){ak=-ak}var al=this.getScaledValue(ai+ad*v._g,f)+ak;this.hl(j,al,c,m,false)}}this.actualMinorInterval(.5)}}var am=ab;if(this.categoryMode()!=0){var an=this.getScaledValue(ad*v._g+1,f);am=(ab+an)/2}if(am<=e.bottom()&&am>=e.top()){var ao=0;if(v._g>=1){ao=ad*$.ig.truncate(Math.floor(v._g))}else{if(ad*v._g*2%2==0){ao=$.ig.truncate(Math.floor(ad*v._g))}else{ao=-1}}if(this.kl()!=null&&ao<this.kl().count()&&ao>=0){var ap=this.kl().item(ao);var aq=this.fv(ap);if(!$.ig.util.isNaN(am)&&!Number.isInfinity(am)&&aq!=null){if(typeof aq==="string"&&aq.equals("")){}else{this._c8.add1(aq);this._c9.add(new $.ig.LabelPosition(am))}}}}ab=ae}}this.actualInterval(v._g);if((this.labelSettings()==null||this.labelSettings().visibility()==0)&&this.crossingAxis()!=null){if(this.labelSettings()!=null&&(this.labelSettings().location()==6||this.labelSettings().location()==7)){this.seriesViewer().lb()}}this._a4.au(this._c8,this._c9);this.ly()}},a1:function(){return 1},$type:new $.ig.Type("CategoryYAxis",$.ig.CategoryAxisBase.prototype.$type)},true);$c("BarFramePreparer:b","CategoryFramePreparer",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$b.init1.call(this,1,b,$b($.ig.ISupportsMarkers.prototype.$type,b),$b($.ig.IProvidesViewport.prototype.$type,b),$b($.ig.ISupportsErrorBars.prototype.$type,b),$b($.ig.IBucketizer.prototype.$type,b))},init1:function(a,b,c,d,e,f){$.ig.CategoryFramePreparer.prototype.init1.call(this,1,b,c,d,e,f);this._ac=new $.ig.DefaultCategoryTrendlineHost;if($b($.ig.IHasCategoryTrendline.prototype.$type,b)!==null){this._ac=$b($.ig.IHasCategoryTrendline.prototype.$type,b)}this._ad=new $.ig.DefaultSingleValueProvider;if($b($.ig.IHasSingleValueCategory.prototype.$type,b)!==null){this._ad=$b($.ig.IHasSingleValueCategory.prototype.$type,b)}},l:function(a,b,c,d,e,f){var g=b[1];var h=b[0];var i=new $$a.ae(0,g-5,h-5,11,11);if(!$.ig.util.isNaN(g)&&!$.ig.util.isNaN(h)&&!Number.isInfinity(g)&&!Number.isInfinity(h)&&c.tryAdd(i)){a.m.add({__x:g,__y:h,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName});this._c.updateMarkerTemplate(e,d,f);return true}return false},w:function(a,b,c){if(this._ac.trendLineType()==0||this._ac.trendlinePreparer()==null||this._ac.trendLinePeriod()<1){return}var d=a._k;var e=new $.ig.ScalerParams(0,a._m,a._l,a._b.isInverted(),d);var f=new $.ig.ScalerParams(0,a._m,a._l,a._c.isInverted(),d);var g=b._f;if(a._d!=null&&a._d.sortedIndices()!=null){g=new $.ig.SafeSortedReadOnlyDoubleCollection(0,g,a._d.sortedIndices())}var h=function(){var $ret=new $.ig.TrendResolutionParams;$ret._c=a._h;$ret._d=a._i;$ret._e=a._j;$ret._a=c;$ret._b=a._g;$ret._f=a._l;return $ret}();if(this._ac.trendLineType()!=0){this._ac.trendlinePreparer().prepareLineCore(a._a.p,this._ac.trendLineType(),g,this._ac.trendLinePeriod(),function(i){return a._c.getScaledValue(i,f)},function(i){return a._b.getScaledValue(i,e)},h)}},$type:new $.ig.Type("BarFramePreparer",$.ig.CategoryFramePreparer.prototype.$type)},true);$c("BarTrendFitCalculator:c","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a,b,c,d,e,f,g,h,i,j,k){if(d==null){switch(b){case 1:d=$.ig.LeastSquaresFit.prototype.k(e,g,f);break;case 2:d=$.ig.LeastSquaresFit.prototype.o(e,g,f);break;case 3:d=$.ig.LeastSquaresFit.prototype.i(e,g,f);break;case 4:d=$.ig.LeastSquaresFit.prototype.p(e,g,f);break;case 5:d=$.ig.LeastSquaresFit.prototype.q(e,g,f);break;case 7:d=$.ig.LeastSquaresFit.prototype.j(e,g,f);break;case 6:d=$.ig.LeastSquaresFit.prototype.l(e,g,f);break;case 8:d=$.ig.LeastSquaresFit.prototype.n(e,g,f);break;default:throw new $$6.q(0)}}if(d==null){return null}for(var l=0;l<c._f.height();l+=2){var m=l/(c._f.height()-1);var n=j+m*(k-j);var o=NaN;switch(b){case 1:o=$.ig.LeastSquaresFit.prototype.ad(d,n);break;case 2:o=$.ig.LeastSquaresFit.prototype.ah(d,n);break;case 3:o=$.ig.LeastSquaresFit.prototype.ab(d,n);break;case 4:o=$.ig.LeastSquaresFit.prototype.ai(d,n);break;case 5:o=$.ig.LeastSquaresFit.prototype.aj(d,n);break;case 7:o=$.ig.LeastSquaresFit.prototype.ac(d,n);break;case 6:o=$.ig.LeastSquaresFit.prototype.ae(d,n);break;case 8:o=$.ig.LeastSquaresFit.prototype.ag(d,n);break;default:throw new $$6.q(0)}o=h(o);n=i(n);if(!$.ig.util.isNaN(o)&&!Number.isInfinity(o)){a.add({__x:o,__y:n+c._a,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})}}return d},$type:new $.ig.Type("BarTrendFitCalculator",$.ig.$ot)},true);$c("BarTrendLineManager:d","CategoryTrendLineManager",{init:function(){$.ig.CategoryTrendLineManager.prototype.init.call(this)},prepareLineCore:function(a,b,c,d,e,f,g){var h=g._d*g._c;var i=g._e*g._c;var j=new $$4.x($$a.$y.$type,0);if(b==0){this._a=null;this.trendColumn().clear();return}if(this.c(b)){this.trendColumn().clear();this._a=$$t.$c.a(j,b,g,this._a,c.count(),function(k){return c.item(k)},function(k){return k+1},e,function(k){return f(k-1)},h+1,i+1)}if(this.b(b)){this._a=null;$.ig.TrendAverageCalculator.prototype.b(b,this.trendColumn(),c,d);for(var k=g._d;k<=g._e;k+=1){var l=k*g._c;if(l>=0&&l<this.trendColumn().count()){var m=e(this.trendColumn().__inner[l]);var n=f(l);j.add({__x:m,__y:n+g._a,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})}}}this.e(j,g,a)},$type:new $.ig.Type("BarTrendLineManager",$.ig.CategoryTrendLineManager.prototype.$type)},true);$c("VerticalAnchoredCategorySeries:h","AnchoredCategorySeries",{init:function(){$.ig.AnchoredCategorySeries.prototype.init.call(this)},xAxis:function(a){if(arguments.length===1){this.h($$t.$h.xAxisProperty,a);return a}else{return this.c($$t.$h.xAxisProperty)}},yAxis:function(a){if(arguments.length===1){this.h($$t.$h.yAxisProperty,a);return a}else{return this.c($$t.$h.yAxisProperty)}},kl:function(){$.ig.AnchoredCategorySeries.prototype.kl.call(this);this.xAxis(null);this.yAxis(null)},t6:null,t7:function(){var $self=this;if(this.t6==null){this.t6=$.ig.DVContainer.prototype.instance().createInstance($.ig.IVerticalAnchoredCategorySeriesInteractionManager.prototype.$type,function(){return $self.cl().n()})}return this.t6},isVertical:function(){return true},rb:function(){return this.yAxis()},rw:function(){return this.xAxis()},getOffsetValue:function(){return this._rh.r(this.rb(),this.view().bv(),this.view().bu(),this.getEffectiveViewport1(this.view()))},getCategoryWidth:function(){return this.yAxis().getCategorySize(this.view().bv(),this.view().bu(),this.getEffectiveViewport1(this.view()))},getNextOrExactIndex:function(a,b){return this.g8(a,b,this.rb(),this.sa.runOn(this),this.valueColumn())},getPreviousOrExactIndex:function(a,b){return this.ha(a,b,this.rb(),this.sa.runOn(this),this.valueColumn())},fw:function(a,b,c,d,e){if(this.valueColumn()==null){return Number.POSITIVE_INFINITY}return this.fx(a,b,this.yAxis(),d,e,this.valueColumn().count(),this.sa.runOn(this))},aq:function(a){if(a.isEmpty()&&this.seriesViewer()!=null){a=this.seriesViewer().actualWindowRect()}if(this.valueColumn()==null){return null}var b=this.pg(this.view());var c=this.rb();var d=new $.ig.ScalerParams(0,a,this.seriesViewer().viewportRect(),c.isInverted(),this.getEffectiveViewport());var e=c.getUnscaledValue(b.top(),d);var f=c.getUnscaledValue(b.bottom(),d);if(!c.isInverted()){var g=e;e=f;f=g}e-=this.tf();f+=this.tf();var h=null;if(c.isSorting()){h=c;e=h.getIndexClosestToUnscaledValue(e);f=h.getIndexClosestToUnscaledValue(f)}else{e=Math.floor(e);f=Math.ceil(f)}if($.ig.util.isNaN(e)||$.ig.util.isNaN(f)){return null}e=Math.max(0,Math.min(this.valueColumn().count()-1,e));f=Math.max(0,Math.min(this.valueColumn().count()-1,f));var i=1.7976931348623157e308;var j=-1.7976931348623157e308;if($.ig.truncate(e)<=$.ig.truncate(f)){for(var k=$.ig.truncate(e);k<=$.ig.truncate(f);k++){var l=k;if(h!=null){l=h.sortedIndices().__inner[k]}var m=this.valueColumn().item(l);if(this.valueColumn().mayContainUnknowns()){if(Number.isInfinity(m)||$.ig.util.isNaN(m)){continue}}i=Math.min(i,m);j=Math.max(j,m)}}var n=new $.ig.AxisRange(i,j);n=this.ao(n,this.rw(),a);return n},bp:function(){if(this.hitTestMode()==0){return 1}else{return $.ig.AnchoredCategorySeries.prototype.bp.call(this)}},getSeriesValueMarkerBoundingBox:function(a){if(!this.hasMarkers()||!this.p2()){return $$a.$ae.empty()}return this.t7().getSeriesValueMarkerBoundingBox(this,this.rc.m,a,this.uf.runOn(this))},uf:function(a){return this._s4.c9(a)},testHit:function(a,b){if(this.eq(a,b)){return true}if(this.p3(a,b)){return true}return false},getSeriesValue:function(a,b,c){if(this.seriesViewer()==null){return NaN}var d=this.getEffectiveViewport1(this.view());var e=this.rb();var f=new $.ig.ScalerParams(0,this.seriesViewer().actualWindowRect(),this.view().bu(),e.isInverted(),d);var g=this._rh.r(e,this.seriesViewer().actualWindowRect(),this.view().bu(),d);return this.gc(this.valueColumn(),a,e,f,g,this.sa.runOn(this),b,c)},getSeriesValuePosition:function(a,b,c){var d=this.rb();return this.pd(a,b,c,this._rh.r(d,this.view().bv(),this.view().bu(),this.getEffectiveViewport1(this.view())),this.rw(),d,null,null,null)},q9:function(){return this.xAxis()},ra:function(){return this.yAxis()},tn:function(a){this.xAxis($b($.ig.NumericXAxis.prototype.$type,a))},to:function(a){this.yAxis($b($$t.$a.$type,a))},r6:function(){return this.xAxis()!=null&&this.xAxis().updateRange()},getCategoryItems:function(a,b){return this.s1(a,b,this.yAxis())},getExactItemIndex:function(a){return this.t7().getExactItemIndex(this,a)},sa:function(a){return this.f0(a,this.rb())},getItemIndex:function(a){return $.ig.truncate(Math.round(this.getExactItemIndex(a)))},getItem:function(a){var b=this.getItemIndex(a);return b>=0&&this.ci()!=null&&b<this.ci().count()?this.ci().item(b):null},lt:function(a,b,c,d){$.ig.AnchoredCategorySeries.prototype.lt.call(this,a,b,c,d);switch(b){case"XAxis":if(c!=d){this.ks($b($.ig.Axis.prototype.$type,c));this.ly($b($.ig.Axis.prototype.$type,d));this._rl._cr.g(this.resolution());this.renderSeries(false);this.le()}break;case"YAxis":if(c!=d){this.ks($b($.ig.Axis.prototype.$type,c));this.ly($b($.ig.Axis.prototype.$type,d));this._rl._cr.g(this.resolution());this.r6();this.renderSeries(false);this.le()}break;case"TrendLineType":var e=$g(d);if(e!=0){this._s4.c2($.ig.CategoryTrendLineManagerFactory.prototype.a(this._s4.c2(),this.yAxis(),this.rootCanvas(),this,this.cl()))}break}},canUseAsYAxis:function(a){if($b($$t.$a.$type,a)!==null){return true}return false},canUseAsXAxis:function(a){if($b($.ig.NumericXAxis.prototype.$type,a)!==null){return true}return false},$type:new $.ig.Type("VerticalAnchoredCategorySeries",$.ig.AnchoredCategorySeries.prototype.$type)},true);$c("IBarSeries:g","Object",{$type:new $.ig.Type("IBarSeries",null)},true);$c("BarSeries:e","VerticalAnchoredCategorySeries",{isBar:function(){return true},isMarkerlessDisplayPreferred:function(){return true},bv:function(){return new $$t.j(this)},rm:function(){return 1},b1:function(){if(this.visibleRangeMode()==0){return 2}return $$t.$h.b1.call(this)},lo:function(a){$$t.$h.lo.call(this,a);this._ug=a},_ug:null,cz:function(){return true},getSeriesValueBoundingBox:function(a){if(this.xAxis()==null||this.yAxis()==null||this.rc.f.count()==0){return $$a.$ae.empty()}var b=this.view().bv();var c=this.view().bu();var d=this.getEffectiveViewport1(this.view());var e=new $.ig.ScalerParams(0,b,c,this.xAxis().isInverted(),d);var f=this.fromWorldPosition(a);var g=this.getPreviousOrExactIndex(a,true);var h=this.getNextOrExactIndex(a,true);var i=$.ig.truncate(Math.floor(g/this.sc(this.view())));var j=$.ig.truncate(Math.floor(h/this.sc(this.view())));var k=i-this.sd(this.view());var l=j-this.sd(this.view());if(k<0){k=0}if(k>this.rc.f.count()-1){k=this.rc.f.count()-1}if(l<0){l=0}if(l>this.rc.f.count()-1){l=this.rc.f.count()-1}var m=this.rc.f.__inner[k];var n=this.rc.f.__inner[l];var o=Math.abs(f.__y-m[0]);var p=Math.abs(f.__y-n[0]);var q=this.td(this._rl);var r=this.yAxis().ky(b,c,d);if(o<p){var s=m[0]-.5*r;var t=m[1];var u=q;return new $$a.ae(0,Math.min(u,t),s,Math.max(u,t)-Math.min(u,t),r)}else{var v=n[0]-.5*r;var w=n[1];var x=q;return new $$a.ae(0,Math.min(x,w),v,Math.max(x,w)-Math.min(x,w),r)}},testHit:function(a,b){if(this.eu(a,b)){return true}if(this.p3(a,b)){return true}return false},init:function(){$$t.$h.init.call(this);this._ab=$$t.$e.$type;this._rh=new $$t.b(1,this,this._ug,this,this,this._ug._cr)},ri:function(a){var b=$b($.ig.CategorySeriesView.prototype.$type,a);if(b!=null&&b.isThumbnailView()){if(b.isAlternateView()){return new $$t.b(1,this,$b($.ig.ISupportsMarkers.prototype.$type,b),b,this,b._cr)}else{return new $$t.b(1,this,$b($.ig.ISupportsMarkers.prototype.$type,b),this.seriesViewer()._cm._o,this,b._cr)}}else{return this._rh}},ac:function(){$$t.$h.ac.call(this)},radiusX:function(a){if(arguments.length===1){this.h($$t.$e.radiusXProperty,a);return a}else{return this.c($$t.$e.radiusXProperty)}},radiusY:function(a){if(arguments.length===1){this.h($$t.$e.radiusYProperty,a);return a}else{return this.c($$t.$e.radiusYProperty)}},preferredCategoryMode:function(a){return 2},ko:function(a,b){$$t.$h.ko.call(this,a,b);var c=$b($$t.$j.$type,b);if(a&&c!=null&&c._db!=null){c._db.count(0)}},sf:function(){var a=0;var c=this.seriesViewer().series().getEnumerator();while(c.moveNext()){var b=c.current();if(b==this){return a}var d=$b($$t.$g.$type,b);if(d!=null&&d.yAxis()==this.yAxis()&&d.getPreferredCategoryMode()==2){a++}}return-1},td:function(a){var b=0;var c=a.bv();var d=a.bu();var e=this.getEffectiveViewport1(a);if(!c.isEmpty()&&!d.isEmpty()&&this.xAxis()!=null){var f=new $.ig.ScalerParams(0,c,d,this.xAxis().isInverted(),e);b=this.xAxis().getScaledValue(this.xAxis().referenceValue(),f)}return b},ap:function(a){if(this.valueColumn()==null||this.valueColumn().count()==0){return null}if(a==this.yAxis()){return new $.ig.AxisRange(0,this.valueColumn().count()-1)}if(a==this.xAxis()){return new $.ig.AxisRange(this.valueColumn().minimum(),this.valueColumn().maximum())}return null},scrollIntoView:function(a){var b=this.view().bv();b=b.copy();var c=this.view().bu();var d=new $$a.ae(0,0,0,1,1);var e=!b.isEmpty()&&!c.isEmpty()&&this.ci()!=null?this.ci().indexOf(a):-1;var f=this.pi(this.view());var g=new $.ig.ScalerParams(0,d,d,this.xAxis().isInverted(),f);var h=new $.ig.ScalerParams(0,d,d,this.yAxis().isInverted(),f);var i=this.yAxis()!=null?this.yAxis().getScaledValue(e,h):NaN;var j=this.yAxis()!=null?this._rh.r(this.yAxis(),d,d,f):0;i+=j;var k=this.xAxis()!=null&&this.valueColumn()!=null&&e<this.valueColumn().count()?this.xAxis().getScaledValue(this.valueColumn().item(e),g):NaN;if(!$.ig.util.isNaN(k)){if(k<b.left()+.1*b.width()){k=k+.4*b.width();b.x(k-.5*b.width())}if(k>b.right()-.1*b.width()){k=k-.4*b.width();b.x(k-.5*b.width())}}if(!$.ig.util.isNaN(i)){if(i<b.top()+.1*b.height()){i=i+.4*b.height();b.y(i-.5*b.height())}if(i>b.bottom()-.1*b.height()){i=i-.4*b.height();b.y(i-.5*b.height())}}if(this.syncLink()!=null){this.syncLink().au(this.seriesViewer(),b,true)}return e>=0},getItemSpan:function(){return this.yAxis().ky(this.view().bv(),this.view().bu(),this.getEffectiveViewport1(this.view()))},su:function(a,b){$$t.$h.su.call(this,a,b);var c=a.f;if(!b.o()){return}var d=b.bv();var e=b.bu();var f=this.getEffectiveViewport1(b);var g=new $.ig.ScalerParams(0,d,e,this.xAxis().isInverted(),f);var h=this.yAxis();var i=new $.ig.ScalerParams(0,d,e,this.yAxis().isInverted(),f);var j=this.xAxis();var k=j.getScaledValue(j.referenceValue(),g);var l=this.yAxis().ky(d,e,f);var m=$b($$t.$j.$type,b);if($.ig.util.isNaN(l)||Number.isInfinity(l)||$.ig.util.isNaN(k)){m._db.count(0);return}this.rk.a0(this,this.r4(),this.getCategoryItems.runOn(this),this.sc(b),this.sd(b));this.rk.r=this.radiusX();this.rk.s=this.radiusY();this.rk.k=this.radiusX();this.rk.l=this.radiusY();var n=false;var o=this.rk._b;if(o!=null){n=true}var p=this.xAxis().isSorting();var q=this.valueColumn().count();for(var r=0;r<c.count();++r){var s=c.__inner[r][0]-.5*l;var t=c.__inner[r][1];var u=k;u=Math.max(u,-100);t=Math.min(t,e.right()+100);var v=m._db.item(r);v.height(l);v.width(Math.abs(t-u));if(n){this.sq(c,r,q,h,i,b.isThumbnailView())}this.rk.ad(v,false,false,false,false);v.am(this.rk.k);v.an(this.rk.l);m.dg(v,Math.min(t,u),s)}m._db.count(c.count());b.updateFrameVersion(a)},kr:function(a,b,c,d){switch(a){case 4:case 1:case 0:this._s4._cr.g(this.resolution());break}if(this._s4.c3()){this._s4.c2().dataUpdated(a,b,c,d)}switch(a){case 4:if(this.xAxis()!=null&&!this.xAxis().updateRange()){this.renderSeries(true)}break;case 1:if(this.xAxis()!=null&&!this.xAxis().updateRange()){this.renderSeries(true)}break;case 0:if(this.xAxis()!=null&&!this.xAxis().updateRange()){this.renderSeries(true)}break;case 2:if(this.valueMemberPath()!=null&&this._s4._cr.d>0){this.renderSeries(true)}break;case 3:if(d==this.valueMemberPath()){if(this.xAxis()!=null&&!this.xAxis().updateRange()){this.renderSeries(true)}}break}},lt:function(a,b,c,d){$$t.$h.lt.call(this,a,b,c,d);switch(b){case"XAxis":if(c!=null){c.deregisterSeries(this)}if(d!=null){d.registerSeries(this)}this._s4._cr.g(this.resolution());if(this.xAxis()!=null&&this.xAxis().updateRange()){this.renderSeries(false)}break;case"YAxis":if(c!=null){c.deregisterSeries(this)}if(d!=null){d.registerSeries(this)}if(this._s4.c3()){this._s4.c2($.ig.CategoryTrendLineManagerFactory.prototype.a(this._s4.c2(),this.yAxis(),this.rootCanvas(),this,this.cl()))}this._s4._cr.g(this.resolution());this.renderSeries(false);break;case"FastItemsSource":if(this.xAxis()!=null&&!this.xAxis().updateRange()){this._s4._cr.g(this.resolution());this.renderSeries(false)}break;case"ValueColumn":if(this.xAxis()!=null&&!this.xAxis().updateRange()){this._s4._cr.g(this.resolution());this.renderSeries(false)}break;case"SeriesViewer":if(c!=null&&d==null){this.ks(this.xAxis());this.ks(this.yAxis())}if(c==null&&d!=null){this.ly(this.xAxis());this.ly(this.yAxis())}this._s4._cr.g(this.resolution());this.renderSeries(false);break}},getPreferredCategoryMode:function(){return this.preferredCategoryMode(this.yAxis())},$type:new $.ig.Type("BarSeries",$$t.$h.$type,[$$t.$g.$type])},true);$c("BarBucketCalculator:f","CategoryBucketCalculator",{init:function(a){$.ig.CategoryBucketCalculator.prototype.init.call(this,a);this._i=a},_i:null,g:function(a){var b=this._c.bv();var c=this._c.bu();var d=this._c._ct.ci();if(b.isEmpty()||c.isEmpty()||this._i._da.yAxis()==null||d==null||d.count()==0){this.d=0;return}var e=$b($$t.$e.$type,this._c._ct);var f=e.pg(this._c);var g=e.getEffectiveViewport1(this._c);var h=new $.ig.ScalerParams(0,b,c,e.yAxis().isInverted(),g);var i=Math.floor(e.yAxis().ej(f.top(),h,0));var j=Math.ceil(e.yAxis().ej(f.bottom(),h,0));if(!e.yAxis().isInverted()){j=Math.ceil(e.yAxis().ej(f.top(),h,0));i=Math.floor(e.yAxis().ej(f.bottom(),h,0))}var k=Math.floor((j-i+1)*a/f.height());this.d=$.ig.truncate(Math.max(1,k));this.e=$.ig.truncate(Math.max(0,Math.floor(i/this.d)-1));this.f=$.ig.truncate(Math.ceil(j/this.d))},getBucketWithoutUnknowns:function(a){var b=this.h;var c=this.j;var d=a*this.d;var e=d+this.d-1;var f=c-1;d=d<f?d:f;e=e<f?e:f;var g=1.7976931348623157e308;var h=-1.7976931348623157e308;var i=true;for(var j=d;j<=e;++j){var k=b[j];g=g<k?g:k;h=h>k?h:k;Math.max(h,k);i=false}if(!i){return[.5*(d+e),g,h]}return[.5*(d+e),NaN,NaN]},getBucket:function(a){var b=this.h;var c=this.j;var d=a*this.d;var e=d+this.d-1;var f=c-1;d=d<f?d:f;e=e<f?e:f;var g=NaN;var h=NaN;for(var i=d;i<=e;++i){var j=b[i];if(!$.ig.util.isNaN(g)){if(!$.ig.util.isNaN(j)){g=Math.min(g,j);h=Math.max(h,j)}}else{g=j;h=j}}if(!$.ig.util.isNaN(g)){return[.5*(d+e),g,h]}return[.5*(d+e),NaN,NaN]},h:null,j:0,cacheValues:function(){this.j=this._i._da.valueColumn().count();this.h=this._i._da.valueColumn().asArray()},unCacheValues:function(){this.h=null},$type:new $.ig.Type("BarBucketCalculator",$.ig.CategoryBucketCalculator.prototype.$type)},true);$c("CategoryYAxisView:i","CategoryAxisBaseView",{_bg:null,init:function(a){$.ig.CategoryAxisBaseView.prototype.init.call(this,a);this._bg=a},onInit:function(){$.ig.CategoryAxisBaseView.prototype.onInit.call(this);this._a.tickLength($.ig.AxisDefaults.prototype.f)},$type:new $.ig.Type("CategoryYAxisView",$.ig.CategoryAxisBaseView.prototype.$type)},true);$c("BarSeriesView:j","AnchoredCategorySeriesView",{_da:null,init:function(a){var $self=this;this.dh=new $$a.b1;$.ig.AnchoredCategorySeriesView.prototype.init.call(this,a);this._da=a;this._db=function(){var $ret=new $.ig.Pool$1($$a.$b1.$type);$ret.create($self.di.runOn($self));$ret.activate($self.dd.runOn($self));$ret.disactivate($self.df.runOn($self));$ret.destroy($self.de.runOn($self));return $ret}();this.c2(new $$t.d)},_db:null,onInit:function(){$.ig.AnchoredCategorySeriesView.prototype.onInit.call(this);this._dc=new $$4.x($$a.$b1.$type,0);if(!this.isThumbnailView()){this._da.markerType($.ig.Defaults.prototype.c);this._da.resolution($.ig.Defaults.prototype.h);this._da.thickness($.ig.Defaults.prototype.i)}},di:function(){var a=new $$a.b1;this._dc.add(a);a.__visibility=1;return a},_dc:null,dd:function(a){a.__visibility=0},df:function(a){a.__visibility=1},de:function(a){this._dc.remove(a)},dg:function(a,b,c){if(!this.isDirty()){this.aq()}a._o=c;a._n=b},cs:function(){return new $$t.f(this)},bf:function(a,b){$.ig.AnchoredCategorySeriesView.prototype.bf.call(this,a,b);var c=a;var d=this.bp(b);c.__fill=d;c.__stroke=d;c._ac=this._e.actualThickness()},ac:function(a){return this._dc.__inner[a]},dh:null,ab:function(a){var b=this._dc.__inner[a];this.dh._n=b._n;this.dh._o=b._o;this.dh.width(b.width());this.dh.height(b.height());var c=this.bp(a);this.dh.__fill=c;this.dh.__stroke=c;this.dh._ac=this._e.actualThickness()+3;return this.dh},a6:function(a,b){$.ig.AnchoredCategorySeriesView.prototype.a6.call(this,a,b);if(a.d()){for(var c=0;c<this._dc.count();c++){var d=this.aa(c,b);this.bd(d,c,b);a.v(d)}}},al:function(a){$.ig.AnchoredCategorySeriesView.prototype.al.call(this,a);var b=0;var c=new $$4.x($$a.$b1.$type,0);var e=this._db.active().getEnumerator();while(e.moveNext()){var d=e.current();c.add(d)}c.sort2(function(f,g){if(f._o>g._o){return-1}else if(f._o<g._o){return 1}else{return 0}});var g=c.getEnumerator();while(g.moveNext()){var f=g.current();this._e.a7().exportRectangleData(a,f,"column"+b,["Main","Fill"])}b++},af:function(){var a=new $$a.ax;a.colorString("rgba(95,95,95,0.5)");this._e.shadowColor(a);this._e.shadowBlur(5);this._e.shadowOffsetX(5);this._e.shadowOffsetY(-5)},$type:new $.ig.Type("BarSeriesView",$.ig.AnchoredCategorySeriesView.prototype.$type)},true);$$t.$a.intervalProperty=$$a.$s.i("Interval",Number,$$t.$a.$type,new $$a.ac(2,NaN,function(a,b){a.hx("Interval",b.oldValue(),b.newValue());
a.h3(false)}));$$t.$a.minorIntervalProperty=$$a.$s.i("MinorInterval",Number,$$t.$a.$type,new $$a.ac(2,NaN,function(a,b){$b($$t.$a.$type,a).hx("MinorInterval",b.oldValue(),b.newValue());$b($$t.$a.$type,a).h3(false)}));$$t.$h.xAxisProperty=$$a.$s.i("XAxis",$.ig.NumericXAxis.prototype.$type,$$t.$h.$type,new $$a.ac(2,null,function(a,b){a.raisePropertyChanged("XAxis",b.oldValue(),b.newValue())}));$$t.$h.yAxisProperty=$$a.$s.i("YAxis",$$t.$a.$type,$$t.$h.$type,new $$a.ac(2,null,function(a,b){a.raisePropertyChanged("YAxis",b.oldValue(),b.newValue())}));$$t.$e.radiusXProperty=$$a.$s.i("RadiusX",Number,$$t.$e.$type,new $$a.ac(2,0,function(a,b){a.raisePropertyChanged("RadiusX",b.oldValue(),b.newValue())}));$$t.$e.radiusYProperty=$$a.$s.i("RadiusY",Number,$$t.$e.$type,new $$a.ac(2,0,function(a,b){a.raisePropertyChanged("RadiusY",b.oldValue(),b.newValue())}))});