/*!@license
* Infragistics.Web.ClientUI infragistics.chart_financialchart.js 13.1.20131.2523
*
* Copyright (c) 2011-2014 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*/
$.ig=$.ig||{};$.ig.util.bulkDefine(["AbstractEnumerable","AbstractEnumerator","IEnumerable$1","ICollection$1","IList$1","IArrayList","List$1","Collection$1","IDictionary$2","Dictionary$2","GenericEnumerable$1","IEnumerator$1","GenericEnumerator$1","INotifyCollectionChanged","NotifyCollectionChangedEventHandler","NotifyCollectionChangedEventArgs","NotifyCollectionChangedAction","KeyValuePair$2","LinkedList$1","LinkedListNode$1","ObservableCollection$1","Queue$1","ReadOnlyCollection$1","ReadOnlyObservableCollection$1","NameValueCollection","Stack$1","IComparer$1","Expression","MemberExpression","ParameterExpression","LambdaExpression","MethodCallExpression","IOrderedEnumerable$1","Queryable","Enumerable","SortedList$1","IGrouping$2","IArray","DependencyObject","Test","IQueryable","IQueryable$1","IQueryProvider","Activator","AggregateException","ArgumentException","ArgumentNullException","ArgumentOutOfRangeException","AsyncCompletedEventArgs","AsyncCompletedEventHandler","ListSortDirection","Convert","Environment","InvalidOperationException","Debug","IEquatable$1","BinaryReader","ICredentials","NetworkCredential","UploadStringCompletedEventHandler","UploadStringCompletedEventArgs","WebClient","WebHeaderCollection","FaultCode","FaultException","FaultException$1","FaultReason","StringBuilder","BinaryFileDownloader","NotImplementedException","Random","Encoding","UTF8Encoding","Task","Task$1","TaskCompletionSource$1","TaskFactory","TaskStatus","Tuple$2","Uri","JavaScriptSerializer","UIElement","UIElementCollection","FrameworkElement","Control","ContentControl","Panel","Canvas","Image","TextBlock","DataTemplate","DataTemplatePassInfo","DataTemplateMeasureInfo","DataTemplateRenderInfo","DataTemplateRenderHandler","DataTemplateMeasureHandler","DataTemplatePassHandler","Binding","DependencyProperty","UnsetValue","DependencyPropertiesCollection","DependencyPropertyChangedEventArgs","Key","ModifierKeys","MouseEventArgs","MouseButtonEventArgs","Brush","Color","DoubleCollection","FillRule","GeometryType","Geometry","GeometryCollection","GeometryGroup","LineGeometry","RectangleGeometry","EllipseGeometry","PathGeometry","PathFigure","PathFigureCollection","PathSegmentType","PathSegment","PathSegmentCollection","LineSegment","BezierSegment","PolyBezierSegment","PolyLineSegment","ArcSegment","SweepDirection","HorizontalAlignment","PenLineCap","Stretch","Transform","RotateTransform","TranslateTransform","TransformGroup","TransformCollection","VerticalAlignment","Point","PointCollection","PropertyChangedCallback","CoerceValueCallback","PropertyMetadata","PropertyPath","Rect","Shape","Line","Path","Polygon","Polyline","Rectangle","Size","Style","StyleTypedPropertyAttribute","TemplatePartAttribute","TemplateVisualStateAttribute","Visibility","XObject","XAttribute","XNode","XContainer","XDocument","XElement","XmlUtils","XName","XNamespace","Object","MulticastDelegate","Action","Action$1","Action$2","Action$3","Action$4","Action$5","Action$6","Action$7","Action$8","IEqualityComparer$1","IEnumerable","ICollection","IDictionary","IList","Array","Array","Comparison$1","Attribute","BrowsableAttribute","EventArgs","CancelEventArgs","DesignTimeVisibleAttribute","EditorBrowsableAttribute","ValueType","Enum","EditorBrowsableState","ISupportInitialize","ITypeDescriptorContext","TypeConverter","TypeConverterAttribute","WinMDTypeAttribute","WinMDPropertyToObjectTypeAttribute","Error","IFormatProvider","NotSupportedException","ObsoleteAttribute","MemberInfo","MethodBase","ConstructorInfo","IComparable","Date","Number","SuppressMessageAttribute","EventHandler$1","PlaceholderSystemCollectionsObjectModel","PlaceholderSystemCollectionsSpecialized","PlaceholderSystemWindows","PlaceholderSystemWindowsControls","PlaceholderSystemWindowsData","PlaceholderSystemWindowsInput","PlaceholderSystemWindowsMarkup","PlaceholderSystemWindowsMediaImaging","PlaceholderSystemWindowsShapes","PlaceholderSystemWindowsControlsPrimitives","PlaceholderSystemWindowsAutomation","PlaceholderSystemWindowsAutomationPeers","PlaceholderSystemText","PlaceholderSystemGlobalization","PlaceholderSystemWindowsDocuments","PlaceholderSystemWindowsInk","PlaceholderSystemWindowsMediaAnimation","PlaceholderSystemWindowsMediaEffects","PlaceholderSystemWindowsThreading","PlaceholderInfragisticsControlerChartsAutomationPeers","FlagsAttribute","Func$1","Func$2","Func$3","Func$4","Func$5","Func$6","Func$7","Func$8","Func$9","Math","XMLHttpRequest","Nullable$1","Number","ParamArrayAttribute","Array","AttributeTargets","AttributeUsageAttribute","Boolean","Number","String","Array","CompareCallback","Dictionary","DictionaryEntry","IEnumerator","INotifyPropertyChanged","PropertyChangedEventArgs","PropertyChangedEventHandler","CultureInfo","Delegate","Number","IDisposable","Number","Number","Number","IntPtr","ReflectionUtil","AssemblyTitleAttribute","AssemblyCompanyAttribute","AssemblyConfigurationAttribute","AssemblyCopyrightAttribute","AssemblyCultureAttribute","AssemblyDescriptionAttribute","AssemblyFileVersionAttribute","AssemblyProductAttribute","AssemblyTrademarkAttribute","AssemblyVersionAttribute","DefaultMemberAttribute","MethodInfo","ParameterInfo","PropertyInfo","RuntimeFieldHandle","RuntimeTypeHandle","ClientScriptAttribute","ClientNameAttribute","DontObfuscateAttribute","EmitIgnoreTypeAttribute","ExtensionAttribute","GlobalMemberAttribute","IgnoreAttribute","InlineItemAccessAttribute","InlinePropertyAttribute","InternalsVisibleToAttribute","KeepOriginalNameAttribute","LiteralStringAttribute","NativeMethodAttribute","NativePropertyAttribute","NativeTypeAttribute","RuntimeHelpers","WeakAttribute","WidgetAttribute","MainWidgetAttribute","SuppressWidgetMemberAttribute","SuppressWidgetMemberCopyAttribute","WidgetDefaultStringAttribute","WidgetDefaultNumberAttribute","WidgetDefaultBooleanAttribute","MvcEnumSetStringEnumAttribute","WidgetModuleAttribute","WidgetModuleParentAttribute","WidgetIgnoreDependsAttribute","ComVisibleAttribute","GuidAttribute","OutAttribute","DataContractAttribute","DataMemberAttribute","WaitHandle","EventWaitHandle","Monitor","TypeCode","TargetFrameworkAttribute","Number","Script","Single","String","ManualResetEvent","Thread","Date","Type","Number","Number","Number","UIntPtr","XmlAttributeAttribute","XmlElementAttribute","XmlEnumAttribute","XmlIgnoreAttribute","XmlRootAttribute","XmlTypeAttribute","XmlNode","XmlAttribute","XmlDocument","XmlDocumentParser","XmlLinkedNode","XmlElement","Void","XmlNodeList","XmlNamedNodeMap","XmlNodeType","XmlSchemaForm","Element","CanvasElement","console","DivElement","Document","ElementAttribute","ElementAttributeCollection","ElementCollection","ElementEventHandler","ElementNodeType","EventListener","IElementEventHandler","ImageElement","CanvasContext","CanvasContext2D","ImageData","Gradient","TextMetrics","MSGesture","WebStyle","window","Callback","JQuery","JQueryDeferred","JQueryEvent","JQueryObject","JQueryCallback","JQueryUICallback","JQueryPosition","JQueryPromise"]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.AbstractEnumerable,$.ig.IEnumerable$1,$.ig.ICollection$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1,$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.ICollection$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1,$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IEnumerable$1],["where$1","where$11111","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$111","min","min$111","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1"]],[[$.ig.AbstractEnumerable,$.ig.IEnumerable$1,$.ig.ICollection$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1,$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap],["ofType$1","cast$1"]]]);$.ig=$.ig||{};$.ig.util.bulkDefine(["BrushCollection","EventProxy","DOMEventProxy","TrendCalculators","TrendLineType","UnknownValuePlotting","ErrorBarCalculatorReference","ErrorBarCalculatorType","IErrorBarCalculator","ErrorMessageDisplayingEventArgs","MouseWheelHandler","GestureHandler","TouchHandler","ContactHandler","MouseHandler","MouseOverHandler","KeyHandler","IFastItemColumnInternal","IFastItemColumnPropertyName","IFastItemColumn$1","FastItemColumn","FastItemDateTimeColumn","FastItemObjectColumn","FastItemIntColumn","FastItemsSource","ColumnReference","FastItemsSourceEventAction","FastItemsSourceEventArgs","FastReflectionHelper","IRenderer","RectChangedEventArgs","RectChangedEventHandler","CanvasRenderScheduler","CanvasViewRenderer","GradientDirection","RenderingContext","DependencyObjectNotifier","InteractionState","IOverviewPlusDetailControl","ISchedulableRender","NavigationSettings","OverviewPlusDetailPaneMode","PropertyChangedEventArgs$1","XamOverviewPlusDetailPane","XamOverviewPlusDetailPaneView","XamOverviewPlusDetailPaneViewManager","XamMultiScaleTileSource","MapTileSource","BingMapsTileSource","CloudMadeTileSource","OpenStreetMapTileSource","ArrayUtil","BrushUtil","Clipper","EdgeClipper","LeftClipper","BottomClipper","RightClipper","TopClipper","InterpolationMode","ColorUtil","FontUtil","DoubleAnimator","Extensions","Flattener","SpiralTodo","GeometryUtil","InterpolationUtil","Numeric","LeastSquaresFit","MathUtil","PathFigureUtil","PointCollectionUtil","PolygonUtil","PolySimplification","RearrangedList$1","RectUtil","ISmartPlaceable","SmartPlaceableWrapper$1","SmartPosition","SmartPlacer","StackPool$1","PrimitiveVisualDataList","LabelAppearanceData","PrimitiveAppearanceData","GetPointsSettings","PrimitiveVisualData","RectangleVisualData","ShapeTags","LineVisualData","PolyLineVisualData","PolygonVisualData","PathVisualData","GeometryData","PathGeometryData","LineGeometryData","RectangleGeometryData","EllipseGeometryData","PathFigureData","SegmentData","LineSegmentData","PolylineSegmentData","PolyBezierSegmentData","ArcSegmentData","AppearanceHelper","Tile","WriteableBitmap","IMapRenderDeferralHandler","XamMultiScaleImage","Pair$2","IEasingFunction","XamMultiScaleImageView","AbstractEnumerable","AbstractEnumerator","IEnumerable$1","ICollection$1","IList$1","IArrayList","List$1","Collection$1","IDictionary$2","Dictionary$2","GenericEnumerable$1","IEnumerator$1","GenericEnumerator$1","INotifyCollectionChanged","NotifyCollectionChangedEventHandler","NotifyCollectionChangedEventArgs","NotifyCollectionChangedAction","KeyValuePair$2","LinkedList$1","LinkedListNode$1","ObservableCollection$1","Queue$1","ReadOnlyCollection$1","ReadOnlyObservableCollection$1","NameValueCollection","Stack$1","IComparer$1","Expression","MemberExpression","ParameterExpression","LambdaExpression","MethodCallExpression","IOrderedEnumerable$1","Queryable","Enumerable","SortedList$1","IGrouping$2","IArray","DependencyObject","Test","IQueryable","IQueryable$1","IQueryProvider","Activator","AggregateException","ArgumentException","ArgumentNullException","ArgumentOutOfRangeException","AsyncCompletedEventArgs","AsyncCompletedEventHandler","ListSortDirection","Convert","Environment","InvalidOperationException","Debug","IEquatable$1","BinaryReader","ICredentials","NetworkCredential","UploadStringCompletedEventHandler","UploadStringCompletedEventArgs","WebClient","WebHeaderCollection","FaultCode","FaultException","FaultException$1","FaultReason","StringBuilder","BinaryFileDownloader","NotImplementedException","Random","Encoding","UTF8Encoding","Task","Task$1","TaskCompletionSource$1","TaskFactory","TaskStatus","Tuple$2","Uri","JavaScriptSerializer","UIElement","UIElementCollection","FrameworkElement","Control","ContentControl","Panel","Canvas","Image","TextBlock","DataTemplate","DataTemplatePassInfo","DataTemplateMeasureInfo","DataTemplateRenderInfo","DataTemplateRenderHandler","DataTemplateMeasureHandler","DataTemplatePassHandler","Binding","DependencyProperty","UnsetValue","DependencyPropertiesCollection","DependencyPropertyChangedEventArgs","Key","ModifierKeys","MouseEventArgs","MouseButtonEventArgs","Brush","Color","DoubleCollection","FillRule","GeometryType","Geometry","GeometryCollection","GeometryGroup","LineGeometry","RectangleGeometry","EllipseGeometry","PathGeometry","PathFigure","PathFigureCollection","PathSegmentType","PathSegment","PathSegmentCollection","LineSegment","BezierSegment","PolyBezierSegment","PolyLineSegment","ArcSegment","SweepDirection","HorizontalAlignment","PenLineCap","Stretch","Transform","RotateTransform","TranslateTransform","TransformGroup","TransformCollection","VerticalAlignment","Point","PointCollection","PropertyChangedCallback","CoerceValueCallback","PropertyMetadata","PropertyPath","Rect","Shape","Line","Path","Polygon","Polyline","Rectangle","Size","Style","StyleTypedPropertyAttribute","TemplatePartAttribute","TemplateVisualStateAttribute","Visibility","XObject","XAttribute","XNode","XContainer","XDocument","XElement","XmlUtils","XName","XNamespace","Object","MulticastDelegate","Action","Action$1","Action$2","Action$3","Action$4","Action$5","Action$6","Action$7","Action$8","IEqualityComparer$1","IEnumerable","ICollection","IDictionary","IList","Array","Array","Comparison$1","Attribute","BrowsableAttribute","EventArgs","CancelEventArgs","DesignTimeVisibleAttribute","EditorBrowsableAttribute","ValueType","Enum","EditorBrowsableState","ISupportInitialize","ITypeDescriptorContext","TypeConverter","TypeConverterAttribute","WinMDTypeAttribute","WinMDPropertyToObjectTypeAttribute","Error","IFormatProvider","NotSupportedException","ObsoleteAttribute","MemberInfo","MethodBase","ConstructorInfo","IComparable","Date","Number","SuppressMessageAttribute","EventHandler$1","PlaceholderSystemCollectionsObjectModel","PlaceholderSystemCollectionsSpecialized","PlaceholderSystemWindows","PlaceholderSystemWindowsControls","PlaceholderSystemWindowsData","PlaceholderSystemWindowsInput","PlaceholderSystemWindowsMarkup","PlaceholderSystemWindowsMediaImaging","PlaceholderSystemWindowsShapes","PlaceholderSystemWindowsControlsPrimitives","PlaceholderSystemWindowsAutomation","PlaceholderSystemWindowsAutomationPeers","PlaceholderSystemText","PlaceholderSystemGlobalization","PlaceholderSystemWindowsDocuments","PlaceholderSystemWindowsInk","PlaceholderSystemWindowsMediaAnimation","PlaceholderSystemWindowsMediaEffects","PlaceholderSystemWindowsThreading","PlaceholderInfragisticsControlerChartsAutomationPeers","FlagsAttribute","Func$1","Func$2","Func$3","Func$4","Func$5","Func$6","Func$7","Func$8","Func$9","Math","XMLHttpRequest","Nullable$1","Number","ParamArrayAttribute","Array","AttributeTargets","AttributeUsageAttribute","Boolean","Number","String","Array","CompareCallback","Dictionary","DictionaryEntry","IEnumerator","INotifyPropertyChanged","PropertyChangedEventArgs","PropertyChangedEventHandler","CultureInfo","Delegate","Number","IDisposable","Number","Number","Number","IntPtr","ReflectionUtil","AssemblyTitleAttribute","AssemblyCompanyAttribute","AssemblyConfigurationAttribute","AssemblyCopyrightAttribute","AssemblyCultureAttribute","AssemblyDescriptionAttribute","AssemblyFileVersionAttribute","AssemblyProductAttribute","AssemblyTrademarkAttribute","AssemblyVersionAttribute","DefaultMemberAttribute","MethodInfo","ParameterInfo","PropertyInfo","RuntimeFieldHandle","RuntimeTypeHandle","ClientScriptAttribute","ClientNameAttribute","DontObfuscateAttribute","EmitIgnoreTypeAttribute","ExtensionAttribute","GlobalMemberAttribute","IgnoreAttribute","InlineItemAccessAttribute","InlinePropertyAttribute","InternalsVisibleToAttribute","KeepOriginalNameAttribute","LiteralStringAttribute","NativeMethodAttribute","NativePropertyAttribute","NativeTypeAttribute","RuntimeHelpers","WeakAttribute","WidgetAttribute","MainWidgetAttribute","SuppressWidgetMemberAttribute","SuppressWidgetMemberCopyAttribute","WidgetDefaultStringAttribute","WidgetDefaultNumberAttribute","WidgetDefaultBooleanAttribute","MvcEnumSetStringEnumAttribute","WidgetModuleAttribute","WidgetModuleParentAttribute","WidgetIgnoreDependsAttribute","ComVisibleAttribute","GuidAttribute","OutAttribute","DataContractAttribute","DataMemberAttribute","WaitHandle","EventWaitHandle","Monitor","TypeCode","TargetFrameworkAttribute","Number","Script","Single","String","ManualResetEvent","Thread","Date","Type","Number","Number","Number","UIntPtr","XmlAttributeAttribute","XmlElementAttribute","XmlEnumAttribute","XmlIgnoreAttribute","XmlRootAttribute","XmlTypeAttribute","XmlNode","XmlAttribute","XmlDocument","XmlDocumentParser","XmlLinkedNode","XmlElement","Void","XmlNodeList","XmlNamedNodeMap","XmlNodeType","XmlSchemaForm","Element","CanvasElement","console","DivElement","Document","ElementAttribute","ElementAttributeCollection","ElementCollection","ElementEventHandler","ElementNodeType","EventListener","IElementEventHandler","ImageElement","CanvasContext","CanvasContext2D","ImageData","Gradient","TextMetrics","MSGesture","WebStyle","window","Callback","JQuery","JQueryDeferred","JQueryEvent","JQueryObject","JQueryCallback","JQueryUICallback","JQueryPosition","JQueryPromise"]);$.ig.util.defType("ArrayUtil","Object",{init:function(){$.ig.Object.prototype.init.call(this)},shuffle$1:function($t){if(this!=null){var b=new $.ig.Random;for(var c=this.count()-1;c>0;--c){var d=b.b(c);var e=this.item(c);this.item(c,this.item(d));this.item(d,e)}}},insertionIndex$1:function($t,b){var c=-1;var d=0;var e=this.count();while(c==-1){if(e<=d){c=d}else{var f=$.ig.intDivide(d+e,2);switch(Math.sign(b.compareTo(this.item(f)))){case-1:e=f;break;case 0:c=f;break;case 1:d=f+1;break}}}return c},insertionIndex$11111:function($t,b,c){var d=-1;var e=0;var f=this.count();while(d==-1){if(f<=e){d=e}else{var g=$.ig.intDivide(e+f,2);switch(Math.sign(b(c,this.item(g)))){case-1:f=g;break;case 0:d=g;break;case 1:e=g+1;break}}}return d},binarySearch$1:function($t,b){var c=0;var d=this.count()-1;while(c<=d){var e=c+(d-c>>1);var f=b(this.item(e));if(f<0){d=e-1}else if(f>0){c=e+1}else{return e}}return~c},$type:new $.ig.Type("ArrayUtil",$.ig.Object.prototype.$type)},true);$.ig.util.defType("Extensions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},reset:function(){this.d().clear();this.d().add(new $.ig.PathFigure);this.d().removeAt(0)},reset1:function(){this.e().clear();this.e().add(new $.ig.PathGeometry);this.e().removeAt(0)},detach:function(){if(this==null){return}var b=$.ig.util.cast($.ig.Panel.prototype.$type,this.y());if(b!=null){b.a1().remove(this);return}var c=$.ig.util.cast($.ig.ContentControl.prototype.$type,this.y());if(c!=null){c.content(null);return}},transferChildrenTo:function(b){var c=new $.ig.List$1($.ig.UIElement.prototype.$type,0);var e=this.a1().ofType$1($.ig.UIElement.prototype.$type).getEnumerator();while(e.moveNext()){var d=e.current();c.add(d)}var g=c.getEnumerator();while(g.moveNext()){var f=g.current();this.a1().remove(f);b.a1().add(f)}},isPlottable:function(){return!isNaN(this.__x)&&!isNaN(this.__y)&&!Number.isInfinity(this.__x)&&!Number.isInfinity(this.__y)},isPlottable1:function(){return!isNaN(this.left())&&!isNaN(this.right())&&!isNaN(this.top())&&!isNaN(this.bottom())&&!Number.isInfinity(this.left())&&!Number.isInfinity(this.right())&&!Number.isInfinity(this.top())&&!Number.isInfinity(this.bottom())},$type:new $.ig.Type("Extensions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("PathFigureUtil","Object",{init:function(){$.ig.Object.prototype.init.call(this)},duplicate:function(){var b=new $.ig.PathFigureCollection;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();b.add(c.duplicate1())}return b},duplicate1:function(){var $self=this;if(this==null){return null}var b=new $.ig.PathSegmentCollection;var d=this.__segments.getEnumerator();while(d.moveNext()){var c=d.current();switch(c.a()){case $.ig.PathSegmentType.prototype.arc:var e=c;var f=new $.ig.ArcSegment;f.i(e.i());f.h(e.h());f.l(e.l());f.k(e.k());f.j(e.j());b.add(f);break;case $.ig.PathSegmentType.prototype.line:var g=c;var h=new $.ig.LineSegment(1);h.d(g.d());b.add(h);break;case $.ig.PathSegmentType.prototype.polyLine:var i=c;var j=new $.ig.PolyLineSegment;var l=i.__points.getEnumerator();while(l.moveNext()){var k=l.current();j.__points.add(k)}b.add(j);break}}return function(){var $ret=new $.ig.PathFigure;$ret.__isClosed=$self.__isClosed;$ret.__isFilled=$self.__isFilled;$ret.__startPoint=$self.__startPoint;$ret.__segments=b;return $ret}()},$type:new $.ig.Type("PathFigureUtil",$.ig.Object.prototype.$type)},true);$.ig.util.defType("PolygonVisualData","PrimitiveVisualData",{type:function(){return"Polygon"},init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.PrimitiveVisualData.prototype.init1.call(this,1,"polygon1")},init1:function(initNumber,a,b){$.ig.PrimitiveVisualData.prototype.init1.call(this,1,a);this.points(b.bl());$.ig.AppearanceHelper.prototype.getShapeAppearance(this.appearance(),b)},_points:null,points:function(a){if(arguments.length===1){this._points=a;return a}else{return this._points}},d:function(){var a=new $.ig.StringBuilder;a.g("points: [");for(var b=0;b<this.points().count();b++){if(b!=0){a.d(", ")}a.d("{ x: "+this.points().__inner[b].__x+", y: "+this.points().__inner[b].__y+"}")}a.g("]");return a.toString()},scaleByViewport:function(a){$.ig.PrimitiveVisualData.prototype.scaleByViewport.call(this,a);for(var b=0;b<this.points().count();b++){this.points().__inner[b]={__x:(this.points().__inner[b].__x-a.left())/a.width(),__y:(this.points().__inner[b].__y-a.top())/a.height(),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName}}},getPointsOverride:function(a,b){var c=new $.ig.List$1($.ig.Point.prototype.$type,0);a.add(c);for(var d=0;d<this.points().count();d++){c.add(this.points().__inner[d])}},$type:new $.ig.Type("PolygonVisualData",$.ig.PrimitiveVisualData.prototype.$type)},true);$.ig.util.extCopy($.ig.ArrayUtil,[[[$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper,$.ig.RearrangedList$1,$.ig.List$1,$.ig.ReadOnlyCollection$1],["shuffle$1","insertionIndex$1","insertionIndex$11111","binarySearch$1"]]]);$.ig.util.extCopy($.ig.ColorUtil,[[[$.ig.Color],["getInterpolation","getLightened","getAHSL","getAHSV"]]]);$.ig.util.extCopy($.ig.Extensions,[[[$.ig.PathGeometry],["reset"]],[[$.ig.GeometryGroup],["reset1"]],[[$.ig.FrameworkElement],["detach"]],[[$.ig.Panel],["transferChildrenTo"]],[[$.ig.Point],["isPlottable"]],[[$.ig.Rect],["isPlottable1"]]]);$.ig.util.extCopy($.ig.PathFigureUtil,[[[$.ig.PathFigureCollection],["duplicate"]],[[$.ig.PathFigure],["duplicate1"]]]);$.ig.util.extCopy($.ig.PointCollectionUtil,[[[$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper,$.ig.RearrangedList$1,$.ig.List$1,$.ig.ReadOnlyCollection$1],["flattenTo","getBounds2","clipTo"]],[[$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper,$.ig.RearrangedList$1,$.ig.ICollection$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1,$.ig.SortedList$1,$.ig.IGrouping$2],["getBounds","getBounds11","getCentroid","toPointCollection","toPointList"]],[[$.ig.List$1],["getBounds3","getBounds41","toPointCollections"]]]);$.ig.util.extCopy($.ig.RectUtil,[[[$.ig.Rect],["getCenter","getArea","duplicate","getLeader","getDistanceSquared","getDistanceSquared11","getDistanceSquared22","contains3","intersectsWith1","intersectionArea","getInflated","inflate","inflate11","round","isNull"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.EdgeClipper,$.ig.RearrangedList$1],["where$1","where$11111","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$111","min","min$111","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1"]],[[$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.FastItemsSource,$.ig.EdgeClipper,$.ig.RearrangedList$1],["ofType$1","cast$1"]]]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.IFastItemColumn$1,$.ig.FastItemColumn,$.ig.FastItemDateTimeColumn,$.ig.FastItemObjectColumn,$.ig.FastItemIntColumn,$.ig.FastItemsSource,$.ig.EdgeClipper,$.ig.RearrangedList$1],["asQueryable"]]]);$.ig=$.ig||{};$.ig.util.bulkDefine(["IProvidesViewport","Series","AnnotationLayer","SeriesView","AnnotationLayerView","CrosshairLayer","Frame","CrosshairLayerFrame","CrosshairLayerView","AxisLabelPanelBaseView","AngleAxisLabelPanelView","AxisLabelPanelBase","AngleAxisLabelPanel","AutoRangeCalculator","Axis","AxisCollection","AxisComponentsForView","AxisComponentsFromView","AxisLabelInfo","AxisLabelManager","LabelPosition","AxisLabelSettings","AxisRange","Snapper","LinearNumericSnapper","LogarithmicNumericSnapper","LinearCategorySnapper","AxisView","IScaler","ICategoryScaler","CategoryAxisBase","IAngleScaler","CategoryAngleAxis","CategoryAxisBaseView","CategoryAngleAxisView","ISortingAxis","CategoryDateTimeXAxis","CategoryDateTimeXAxisView","AxisRenderingParametersBase","CategoryAxisRenderingParameters","AxisRendererBase","CategoryAxisRenderer","CategoryXAxis","CategoryXAxisView","CategoryYAxis","CategoryYAxisView","HorizontalAxisLabelPanelBase","HorizontalAxisLabelPanel","HorizontalAxisLabelPanelBaseView","NumericAxisBase","NumericAngleAxis","NumericAxisBaseView","NumericAngleAxisView","StraightNumericAxisBase","NumericRadiusAxis","NumericRadiusAxisView","NumericXAxis","StraightNumericAxisBaseView","NumericXAxisView","NumericYAxis","NumericYAxisView","PolarAxes","PolarAxisRenderingManager","IPolarRadialRenderingParameters","NumericAxisRenderingParameters","PolarAxisRenderingParameters","RadialAxisRenderingParameters","RadialAxes","RadialAxisLabelPanel","RadialAxisLabelPanelView","GetSnapperInfoStrategy","NumericAxisRenderer","RangeInfo","NumericScaler","LinearScaler","HorizontalLinearScaler","LogarithmicScaler","HorizontalLogarithmicScaler","NumericScaleMode","ScalerParams","VerticalLinearScaler","VerticalLogarithmicScaler","TickmarkValues","CategoryTickmarkValues","LinearTickmarkValues","LogarithmicTickmarkValues","TickmarkValuesInitializationParameters","ViewportUtils","FramePreparer","CategoryFramePreparerBase","CategoryFramePreparer","BarFramePreparer","BarTrendFitCalculator","TrendLineManagerBase$1","IPreparesCategoryTrendline","CategoryTrendLineManagerBase","CategoryTrendLineManager","BarTrendLineManager","BrushScale","MarkerManagerBase","BubbleMarkerManager","MarkerSeries","ISupportsErrorBars","ScatterBase","BubbleSeries","MarkerSeriesView","ScatterBaseView","BubbleSeriesView","CustomPaletteBrushScale","SizeScale","ValueBrushScale","IHasCategoryAxis","IHasCategoryModePreference","CategorySeries","IIsCategoryBased","IHasSingleValueCategory","IHasTrendline","IHasCategoryTrendline","AnchoredCategorySeries","VerticalAnchoredCategorySeries","IBarSeries","BarSeries","ISupportsMarkers","CategorySeriesView","AnchoredCategorySeriesView","BarSeriesView","IBucketizer","CategoryBucketCalculator","AnchoredCategoryBucketCalculator","BarBucketCalculator","RangeCategoryBucketCalculator","HorizontalAnchoredCategorySeries","PointSeries","PointSeriesView","IHasHighLowValueCategory","RangeCategorySeries","HorizontalRangeCategorySeries","RangeAreaSeries","RangeCategorySeriesView","RangeAreaSeriesView","RangeCategoryFramePreparer","ValuesHolder","HighLowValuesHolder","DefaultHighLowValueProvider","RangeValueList","RangeColumnSeries","RangeColumnSeriesView","SplineSeriesBaseView","SplineAreaSeriesView","VerticalAxisLabelPanel","VerticalAxisLabelPanelView","AreaSeries","AreaSeriesView","CategoryFrame","SingleValuesHolder","DefaultSingleValueProvider","PreparationParams","CategoryLineRasterizer","ColumnSeries","ColumnSeriesView","DefaultSupportsMarkers","DefaultProvidesViewport","DefaultSupportsErrorBars","LineSeries","LineSeriesView","SplineSeriesBase","SplineAreaSeries","SplineSeries","SplineSeriesView","StepAreaSeries","StepAreaSeriesView","StepLineSeries","StepLineSeriesView","WaterfallSeries","WaterfallSeriesView","MarkerTemplates","DataSourceManager","PieChartBase","Arc","ArcItem","PieChartBaseView","ArcView","RingSeriesBase","HierarchicalRingSeries","HoleDimensionsChangedEventHandler","HoleDimensionsChangedEventArgs","Ring","RingCollection","RingControl","RingControlView","RingSeries","RingSeriesBaseView","RingSeriesCollection","SliceItem","SliceCollection","XamDoughnutChart","XamDoughnutChartView","BrushSelectionMode","IndicatorDisplayType","TimeAxisDisplayType","ChartAxisRangeChangedEventArgs","DataChartAxisRangeChangedEventHandler","StackedSeriesCreatedEventArgs","StackedSeriesCreatedEventHandler","FinancialSeries","FinancialIndicator","StrategyBasedIndicator","AbsoluteVolumeOscillatorIndicator","IndicatorCalculationStrategy","AbsoluteVolumeOscillatorIndicatorStrategy","AccumulationDistributionIndicator","StreamingIndicatorCalculationStrategy","AccumulationDistributionIndicatorStrategy","AverageDirectionalIndexIndicator","AverageDirectionalIndexIndicatorStrategy","AverageTrueRangeIndicator","AverageTrueRangeIndicatorStrategy","FinancialOverlay","BollingerBandsOverlay","FinancialBucketCalculator","BollingerBandsBucketCalculator","FinancialSeriesView","BollingerBandsOverlayView","BollingerBandWidthIndicator","BollingerBandWidthIndicatorStrategy","ChaikinOscillatorIndicator","ChaikinOscillatorIndicatorStrategy","ChaikinVolatilityIndicator","ChaikinVolatilityIndicatorStrategy","CommodityChannelIndexIndicator","CommodityChannelIndexIndicatorStrategy","CustomIndicator","CustomIndicatorStrategy","PriceChannelOverlayView","DetrendedPriceOscillatorIndicator","DetrendedPriceOscillatorIndicatorStrategy","EaseOfMovementIndicator","EaseOfMovementIndicatorStrategy","FastStochasticOscillatorIndicator","FastStochasticOscillatorIndicatorStrategy","FinancialIndicatorBucketCalculator","FinancialIndicatorView","ForceIndexIndicator","ForceIndexIndicatorStrategy","FullStochasticOscillatorIndicator","FullStochasticOscillatorIndicatorStrategy","PercentKCalculationStrategy","IndicatorRenderer","ItemwiseIndicatorCalculationStrategy","ItemwiseStrategyBasedIndicator","ItemwiseStrategyCalculationStrategy","MarketFacilitationIndexIndicator","MarketFacilitationIndexIndicatorStrategy","MassIndexIndicator","MassIndexIndicatorStrategy","MedianPriceIndicator","MedianPriceIndicatorStrategy","MoneyFlowIndexIndicator","MoneyFlowIndexIndicatorStrategy","MovingAverageConvergenceDivergenceIndicator","MovingAverageConvergenceDivergenceIndicatorStrategy","NegativeVolumeIndexIndicator","NegativeVolumeIndexIndicatorStrategy","OnBalanceVolumeIndicator","OnBalanceVolumeIndicatorStrategy","PercentagePriceOscillatorIndicator","PercentagePriceOscillatorIndicatorStrategy","PercentageVolumeOscillatorIndicator","PercentageVolumeOscillatorIndicatorStrategy","PositiveVolumeIndexIndicator","PositiveVolumeIndexIndicatorStrategy","PriceChannelOverlay","PriceChannelBucketCalculator","PriceVolumeTrendIndicator","PriceVolumeTrendIndicatorStrategy","RateOfChangeAndMomentumIndicator","RateOfChangeAndMomentumIndicatorStrategy","RelativeStrengthIndexIndicator","RelativeStrengthIndexIndicatorStrategy","SlowStochasticOscillatorIndicator","SlowStochasticOscillatorIndicatorStrategy","StandardDeviationIndicator","StandardDeviationIndicatorStrategy","StochRSIIndicator","StochRSIIndicatorStrategy","TRIXIndicator","TRIXIndicatorStrategy","TypicalPriceIndicator","TypicalPriceIndicatorStrategy","UltimateOscillatorIndicator","UltimateOscillatorIndicatorCalculationStrategy","WeightedCloseIndicator","WeightedCloseIndicatorStrategy","WilliamsPercentRIndicator","WilliamsPercentRIndicatorStrategy","FunnelDataContext","FunnelFrame","FunnelSliceDisplay","IItemProvider","IFunnelLabelSizeDecider","IOuterLabelWidthDecider","OuterLabelAlignment","SliceInfo","SliceAppearance","SliceInfoList","SliceInfoComparison","SliceInfoUnaryComparison","SliceSelectionManager","XamFunnelController","Message","InteractionMessage","LabelSizeChangedMessage","RenderingMessage","RenderOuterLabelMessage","RenderSliceMessage","ModelUpdateMessage","SelectedItemsChangedMessage","SliceClickedMessage","ConfigurationMessage","UserSelectedItemsChangedMessage","FunnelSliceClickedEventArgs","FunnelSliceClickedEventHandler","XamFunnelChart","XamFunnelConnector","XamFunnelSlice","XamFunnelView","LegendBaseViewManager","LegendBase","ScaleLegend","LegendBaseView","ScaleLegendView","GradientData","GradientStopData","ClearMessage","ClearTooltipMessage","DataUpdatedMessage","FrameRenderCompleteMessage","MessageChannel","MessageEventHandler","MessageHandler","MessageHandlerEventHandler","MouseButtonMessage","MouseButtonType","MouseButtonAction","MouseLeaveMessage","MouseMoveMessage","PropertyChangedMessage","ServiceProvider","SetAreaSizeMessage","TemplateChangedMessage","TooltipUpdateMessage","TooltipValueChangedMessage","ViewportChangedMessage","ContainerSizeChangedMessage","ViewPropertyChangedMessage","PieChartViewManager","RadialBase","AnchoredRadialSeries","RadialAreaSeries","RadialBaseView","AnchoredRadialSeriesView","RadialAreaSeriesView","HighDensityScatterSeries","MouseMoveThunk","ScatterMouseOverEventArgs","ProgressiveLoadStatusEventArgs","HighDensityScatterSeriesView","KDTree2D","KNearestResults","KNearestResult","KDTreeThunk","SearchArgs","KDTreeNode2D","SearchData","PointData","ScatterLineSeries","ScatterLineSeriesView","ScatterSplineSeries","ScatterSplineSeriesView","SeriesViewerComponentsForView","SeriesViewerComponentsFromView","SeriesViewer","XamDataChart","SeriesViewerView","XamDataChartView","ChartCollection","ChartContentManager","ContentInfo","ChartContentType","DataContext","PieSliceDataContext","FunnelSliceDataContext","LabelPanelArranger","LabelPanelsArrangeState","LegendTemplates","Marker","CollisionAvoidanceType","NumericMarkerManager","CategoryMarkerManager","MarkerManagerBucket","PathRenderer","NaNSegmenter","IFlattener","DefaultFlattener","RenderSurface","RenderRequestedEventArgs","SeriesCollection","SeriesComponentsForView","SeriesComponentsFromView","SeriesRenderingArguments","SeriesRenderer$2","IFastItemsSourceProvider","SyncLink","FastItemsSourceReference","SyncSettings","SyncSettingsConverter","SyncLinkManager","SyncManager","DefaultCategoryTrendlineHost","DefaultCategoryTrendlinePreparer","TrendResolutionParams","TrendFitCalculator","TrendAverageCalculator","PolarTrendLineManager","RadialTrendLineManager","ScatterTrendLineManager","SortingTrendLineManager","AxisLabelsLocation","CategoryMode","AxisOrientation","GridMode","LabelsPosition","MarkerType","OthersCategoryType","PriceDisplayType","SplineType","WindowMode","WindowResponse","ErrorBarSettingsBase","CategoryErrorBarSettings","EnableErrorBars","ErrorBarsHelper","ScatterErrorBarSettings","AxisRangeChangedEventArgs","AxisRangeChangedEventHandler","DataChartMouseButtonEventArgs","DataChartMouseButtonEventHandler","DataChartLegendMouseButtonEventArgs","DataChartLegendMouseButtonEventHandler","ChartMouseEventArgs","DataChartMouseEventHandler","ChartLegendMouseEventArgs","DataChartLegendMouseEventHandler","ChartCursorEventArgs","DataChartCursorEventHandler","FinancialEventArgs","FinancialEventHandler","PropertyUpdatedEventArgs","PropertyUpdatedEventHandler","SliceClickEventArgs","SliceClickEventHandler","FinancialPriceSeries","FinancialPriceBucketCalculator","FinancialPriceSeriesView","FinancialValueList","FinancialCalculationDataSource","FinancialCalculationSupportingCalculations","SupportingCalculation$1","SupportingCalculationStrategy","ColumnSupportingCalculation","ProvideColumnValuesStrategy","DataSourceSupportingCalculation","CalculatedColumn","ItemLegend","ItemLegendView","Legend","LegendItemInfo","LegendView","PieLabel","IndexCollection","IndexCollectionTypeConverter","Slice","SliceView","XamPieChart","XamPieChartView","PolarBase","PolarLineSeriesBase","PolarAreaSeries","PolarBaseView","PolarLineSeriesBaseView","PolarAreaSeriesView","PolarAxisInfoCache","ScatterFrameBase$1","PolarFrame","AngleRadiusPair","PolarLinePlanner","PolarLineSeries","PolarLineSeriesView","PolarScatterSeries","PolarScatterSeriesView","PolarSplineAreaSeries","PolarSplineAreaSeriesView","PolarSplineSeries","PolarSplineSeriesView","RadialBucketCalculator","AnchoredRadialBucketCalculator","RadialFrame","RadialColumnSeries","RadialColumnSeriesView","RadialLineSeries","RadialLineSeriesView","RadialPieSeries","SliceCoords","RadialPieSeriesView","ScatterAxisInfoCache","DictInterpolator$3","OwnedPoint","ScatterFrame","ScatterSeries","ScatterSeriesView","CoercionInfo","SeriesViewerSurfaceViewer","OverviewPlusDetailViewportHost","SeriesViewerViewManager","FragmentBase","AreaFragment","AreaFragmentView","ColumnFragment","BarFragment","AreaFragmentBucketCalculator","LineFragmentBucketCalculator","SplineFragmentBucketCalculator","StackedBucketCalculator","StackedBarBucketCalculator","Stacked100BarBucketCalculator","StackedColumnBucketCalculator","Stacked100ColumnBucketCalculator","ColumnFragmentView","LineFragment","LineFragmentView","SplineFragmentBase","SplineAreaFragment","SplineAreaFragmentView","SplineFragment","SplineFragmentView","StackedSeriesBase","HorizontalStackedSeriesBase","StackedAreaSeries","IStacked100Series","Stacked100AreaSeries","VerticalStackedSeriesBase","StackedBarSeries","Stacked100BarSeries","StackedSeriesView","StackedBarSeriesView","Stacked100BarSeriesView","StackedColumnSeries","Stacked100ColumnSeries","StackedColumnSeriesView","Stacked100ColumnSeriesView","StackedLineSeries","Stacked100LineSeries","StackedSplineAreaSeries","Stacked100SplineAreaSeries","StackedSplineSeries","Stacked100SplineSeries","StackedFragmentSeries","StackedSeriesCollection","StackedSeriesFramePreparer","StackedSeriesManager","Bezier","BezierPointComparison","BezierOp","BezierPoint","ChartVisualData","PieChartVisualData","SeriesVisualDataList","SeriesVisualData","MarkerVisualDataList","MarkerVisualData","AxisVisualDataList","AxisVisualData","PieSliceVisualDataList","PieSliceVisualData","AxisLabelVisualDataList","AxisLabelVisualData","StackedSeriesVisualData","IDetectsCollisions","CollisionAvoider","DoubleColumn","StringColumn","ObjectColumn","IntColumn","IntColumnComparison","ColumnUtil","ItemsSourceAction","PointList","IPool$1","IIndexedPool$1","Pool$1","IHashPool$2","HashPool$2","SafeEnumerable","SafeReadOnlyDoubleCollection","SafeSortedReadOnlyDoubleCollection","SortedListView$1","AbstractEnumerable","AbstractEnumerator","IEnumerable$1","ICollection$1","IList$1","IArrayList","List$1","Collection$1","IDictionary$2","Dictionary$2","GenericEnumerable$1","IEnumerator$1","GenericEnumerator$1","INotifyCollectionChanged","NotifyCollectionChangedEventHandler","NotifyCollectionChangedEventArgs","NotifyCollectionChangedAction","KeyValuePair$2","LinkedList$1","LinkedListNode$1","ObservableCollection$1","Queue$1","ReadOnlyCollection$1","ReadOnlyObservableCollection$1","NameValueCollection","Stack$1","IComparer$1","Expression","MemberExpression","ParameterExpression","LambdaExpression","MethodCallExpression","IOrderedEnumerable$1","Queryable","Enumerable","SortedList$1","IGrouping$2","IArray","DependencyObject","Test","IQueryable","IQueryable$1","IQueryProvider","Activator","AggregateException","ArgumentException","ArgumentNullException","ArgumentOutOfRangeException","AsyncCompletedEventArgs","AsyncCompletedEventHandler","ListSortDirection","Convert","Environment","InvalidOperationException","Debug","IEquatable$1","BinaryReader","ICredentials","NetworkCredential","UploadStringCompletedEventHandler","UploadStringCompletedEventArgs","WebClient","WebHeaderCollection","FaultCode","FaultException","FaultException$1","FaultReason","StringBuilder","BinaryFileDownloader","NotImplementedException","Random","Encoding","UTF8Encoding","Task","Task$1","TaskCompletionSource$1","TaskFactory","TaskStatus","Tuple$2","Uri","JavaScriptSerializer","UIElement","UIElementCollection","FrameworkElement","Control","ContentControl","Panel","Canvas","Image","TextBlock","DataTemplate","DataTemplatePassInfo","DataTemplateMeasureInfo","DataTemplateRenderInfo","DataTemplateRenderHandler","DataTemplateMeasureHandler","DataTemplatePassHandler","Binding","DependencyProperty","UnsetValue","DependencyPropertiesCollection","DependencyPropertyChangedEventArgs","Key","ModifierKeys","MouseEventArgs","MouseButtonEventArgs","Brush","Color","DoubleCollection","FillRule","GeometryType","Geometry","GeometryCollection","GeometryGroup","LineGeometry","RectangleGeometry","EllipseGeometry","PathGeometry","PathFigure","PathFigureCollection","PathSegmentType","PathSegment","PathSegmentCollection","LineSegment","BezierSegment","PolyBezierSegment","PolyLineSegment","ArcSegment","SweepDirection","HorizontalAlignment","PenLineCap","Stretch","Transform","RotateTransform","TranslateTransform","TransformGroup","TransformCollection","VerticalAlignment","Point","PointCollection","PropertyChangedCallback","CoerceValueCallback","PropertyMetadata","PropertyPath","Rect","Shape","Line","Path","Polygon","Polyline","Rectangle","Size","Style","StyleTypedPropertyAttribute","TemplatePartAttribute","TemplateVisualStateAttribute","Visibility","XObject","XAttribute","XNode","XContainer","XDocument","XElement","XmlUtils","XName","XNamespace","Object","MulticastDelegate","Action","Action$1","Action$2","Action$3","Action$4","Action$5","Action$6","Action$7","Action$8","IEqualityComparer$1","IEnumerable","ICollection","IDictionary","IList","Array","Array","Comparison$1","Attribute","BrowsableAttribute","EventArgs","CancelEventArgs","DesignTimeVisibleAttribute","EditorBrowsableAttribute","ValueType","Enum","EditorBrowsableState","ISupportInitialize","ITypeDescriptorContext","TypeConverter","TypeConverterAttribute","WinMDTypeAttribute","WinMDPropertyToObjectTypeAttribute","Error","IFormatProvider","NotSupportedException","ObsoleteAttribute","MemberInfo","MethodBase","ConstructorInfo","IComparable","Date","Number","SuppressMessageAttribute","EventHandler$1","PlaceholderSystemCollectionsObjectModel","PlaceholderSystemCollectionsSpecialized","PlaceholderSystemWindows","PlaceholderSystemWindowsControls","PlaceholderSystemWindowsData","PlaceholderSystemWindowsInput","PlaceholderSystemWindowsMarkup","PlaceholderSystemWindowsMediaImaging","PlaceholderSystemWindowsShapes","PlaceholderSystemWindowsControlsPrimitives","PlaceholderSystemWindowsAutomation","PlaceholderSystemWindowsAutomationPeers","PlaceholderSystemText","PlaceholderSystemGlobalization","PlaceholderSystemWindowsDocuments","PlaceholderSystemWindowsInk","PlaceholderSystemWindowsMediaAnimation","PlaceholderSystemWindowsMediaEffects","PlaceholderSystemWindowsThreading","PlaceholderInfragisticsControlerChartsAutomationPeers","FlagsAttribute","Func$1","Func$2","Func$3","Func$4","Func$5","Func$6","Func$7","Func$8","Func$9","Math","XMLHttpRequest","Nullable$1","Number","ParamArrayAttribute","Array","AttributeTargets","AttributeUsageAttribute","Boolean","Number","String","Array","CompareCallback","Dictionary","DictionaryEntry","IEnumerator","INotifyPropertyChanged","PropertyChangedEventArgs","PropertyChangedEventHandler","CultureInfo","Delegate","Number","IDisposable","Number","Number","Number","IntPtr","ReflectionUtil","AssemblyTitleAttribute","AssemblyCompanyAttribute","AssemblyConfigurationAttribute","AssemblyCopyrightAttribute","AssemblyCultureAttribute","AssemblyDescriptionAttribute","AssemblyFileVersionAttribute","AssemblyProductAttribute","AssemblyTrademarkAttribute","AssemblyVersionAttribute","DefaultMemberAttribute","MethodInfo","ParameterInfo","PropertyInfo","RuntimeFieldHandle","RuntimeTypeHandle","ClientScriptAttribute","ClientNameAttribute","DontObfuscateAttribute","EmitIgnoreTypeAttribute","ExtensionAttribute","GlobalMemberAttribute","IgnoreAttribute","InlineItemAccessAttribute","InlinePropertyAttribute","InternalsVisibleToAttribute","KeepOriginalNameAttribute","LiteralStringAttribute","NativeMethodAttribute","NativePropertyAttribute","NativeTypeAttribute","RuntimeHelpers","WeakAttribute","WidgetAttribute","MainWidgetAttribute","SuppressWidgetMemberAttribute","SuppressWidgetMemberCopyAttribute","WidgetDefaultStringAttribute","WidgetDefaultNumberAttribute","WidgetDefaultBooleanAttribute","MvcEnumSetStringEnumAttribute","WidgetModuleAttribute","WidgetModuleParentAttribute","WidgetIgnoreDependsAttribute","ComVisibleAttribute","GuidAttribute","OutAttribute","DataContractAttribute","DataMemberAttribute","WaitHandle","EventWaitHandle","Monitor","TypeCode","TargetFrameworkAttribute","Number","Script","Single","String","ManualResetEvent","Thread","Date","Type","Number","Number","Number","UIntPtr","XmlAttributeAttribute","XmlElementAttribute","XmlEnumAttribute","XmlIgnoreAttribute","XmlRootAttribute","XmlTypeAttribute","XmlNode","XmlAttribute","XmlDocument","XmlDocumentParser","XmlLinkedNode","XmlElement","Void","XmlNodeList","XmlNamedNodeMap","XmlNodeType","XmlSchemaForm","Element","CanvasElement","console","DivElement","Document","ElementAttribute","ElementAttributeCollection","ElementCollection","ElementEventHandler","ElementNodeType","EventListener","IElementEventHandler","ImageElement","CanvasContext","CanvasContext2D","ImageData","Gradient","TextMetrics","MSGesture","WebStyle","window","Callback","JQuery","JQueryDeferred","JQueryEvent","JQueryObject","JQueryCallback","JQueryUICallback","JQueryPosition","JQueryPromise","BrushCollection","EventProxy","DOMEventProxy","TrendCalculators","TrendLineType","UnknownValuePlotting","ErrorBarCalculatorReference","ErrorBarCalculatorType","IErrorBarCalculator","ErrorMessageDisplayingEventArgs","MouseWheelHandler","GestureHandler","TouchHandler","ContactHandler","MouseHandler","MouseOverHandler","KeyHandler","IFastItemColumnInternal","IFastItemColumnPropertyName","IFastItemColumn$1","FastItemColumn","FastItemDateTimeColumn","FastItemObjectColumn","FastItemIntColumn","FastItemsSource","ColumnReference","FastItemsSourceEventAction","FastItemsSourceEventArgs","FastReflectionHelper","IRenderer","RectChangedEventArgs","RectChangedEventHandler","CanvasRenderScheduler","CanvasViewRenderer","GradientDirection","RenderingContext","DependencyObjectNotifier","InteractionState","IOverviewPlusDetailControl","ISchedulableRender","NavigationSettings","OverviewPlusDetailPaneMode","PropertyChangedEventArgs$1","XamOverviewPlusDetailPane","XamOverviewPlusDetailPaneView","XamOverviewPlusDetailPaneViewManager","XamMultiScaleTileSource","MapTileSource","BingMapsTileSource","CloudMadeTileSource","OpenStreetMapTileSource","ArrayUtil","BrushUtil","Clipper","EdgeClipper","LeftClipper","BottomClipper","RightClipper","TopClipper","InterpolationMode","ColorUtil","FontUtil","DoubleAnimator","Extensions","Flattener","SpiralTodo","GeometryUtil","InterpolationUtil","Numeric","LeastSquaresFit","MathUtil","PathFigureUtil","PointCollectionUtil","PolygonUtil","PolySimplification","RearrangedList$1","RectUtil","ISmartPlaceable","SmartPlaceableWrapper$1","SmartPosition","SmartPlacer","StackPool$1","PrimitiveVisualDataList","LabelAppearanceData","PrimitiveAppearanceData","GetPointsSettings","PrimitiveVisualData","RectangleVisualData","ShapeTags","LineVisualData","PolyLineVisualData","PolygonVisualData","PathVisualData","GeometryData","PathGeometryData","LineGeometryData","RectangleGeometryData","EllipseGeometryData","PathFigureData","SegmentData","LineSegmentData","PolylineSegmentData","PolyBezierSegmentData","ArcSegmentData","AppearanceHelper","Tile","WriteableBitmap","IMapRenderDeferralHandler","XamMultiScaleImage","Pair$2","IEasingFunction","XamMultiScaleImageView"]);
$.ig.util.defType("PriceDisplayType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("PriceDisplayType",$.ig.Object.prototype.$type)},true);$.ig.util.defType("TimeAxisDisplayType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("TimeAxisDisplayType",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IndicatorDisplayType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("IndicatorDisplayType",$.ig.Object.prototype.$type)},true);$.ig.util.defType("CategoryDateTimeXAxis","CategoryAxisBase",{init:function(){$.ig.CategoryAxisBase.prototype.init.call(this);this.a3($.ig.CategoryDateTimeXAxis.prototype.$type);this.h3=new Date;this.h4=new Date},dt:function(){return new $.ig.CategoryDateTimeXAxisView(this)},dw:function(a){$.ig.CategoryAxisBase.prototype.dw.call(this,a);this.ie(a)},_ie:null,ie:function(a){if(arguments.length===1){this._ie=a;return a}else{return this._ie}},isSorting:function(){return true},isDateTime:function(){return true},displayType:function(a){if(arguments.length===1){this.c($.ig.CategoryDateTimeXAxis.prototype.displayTypeProperty,a);return a}else{return this.b($.ig.CategoryDateTimeXAxis.prototype.displayTypeProperty)}},minimumValue:function(a){if(arguments.length===1){this.c($.ig.CategoryDateTimeXAxis.prototype.minimumValueProperty,a);return a}else{return this.b($.ig.CategoryDateTimeXAxis.prototype.minimumValueProperty)}},maximumValue:function(a){if(arguments.length===1){this.c($.ig.CategoryDateTimeXAxis.prototype.maximumValueProperty,a);return a}else{return this.b($.ig.CategoryDateTimeXAxis.prototype.maximumValueProperty)}},interval:function(a){if(arguments.length===1){this.c($.ig.CategoryDateTimeXAxis.prototype.intervalProperty,a);return a}else{return this.b($.ig.CategoryDateTimeXAxis.prototype.intervalProperty)}},ea:function(a,b,c){var d=$.ig.CategoryAxisBase.prototype.ea.call(this,a,b,c);if(!d){return false}return this.actualMinimumValue()!=this.actualMaximumValue()},dy:function(){return new $.ig.HorizontalAxisLabelPanel},getCategorySize:function(a,b){return b.width()/(this.itemsCount()*a.width())},getGroupCenter:function(a,b,c){return this.getCategorySize(b,c)*.5},he:function(a,b){var c=!isNaN(this.gap())?$.ig.MathUtil.prototype.i(this.gap(),0,1):0;var d=1-.5*c;var e=this.getCategorySize(a,b)*d;return e},h2:null,ig:function(a){if(arguments.length===1){this.h2=a;return a}else{return this.h2}},e7:function(a){var b=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():$.ig.Rect.prototype.empty();var c=!b.isEmpty()?this.c9():$.ig.Rect.prototype.empty();var d=new $.ig.ScalerParams(b,c,this.isInverted());var e=this.c6().au();var f=this.c6().av();var g=this.c6().aw();var h=this.c6().ax();this.d9();this.ez(e);this.ez(f);this.ez(g);this.ez(h);this.db().clear();this.dc().clear();this.gz().clear();this.dd().bq(this);this.dd().bv(b);this.dd().bt(c);if(b.isEmpty()||c.isEmpty()){this.dm().g(0)}if(this.dm().g()==0){this.dd().a1().clear()}if(this.labelSettings()!=null){this.labelSettings().r(this)}this.iq();if(!b.isEmpty()&&!c.isEmpty()&&(this.displayType()!=$.ig.TimeAxisDisplayType.prototype.discrete||this.ij()!=null)){var i=c.bottom();if(this.crossingAxis()!=null){var j=$.ig.util.cast($.ig.NumericYAxis.prototype.$type,this.crossingAxis());if(j!=null){var k=new $.ig.ScalerParams(b,c,j.isInverted());i=this.crossingValue();i=j.getScaledValue(i,k);if(i<c.top()){i=c.top()}else if(i>c.bottom()){i=c.bottom()}}}if(isNaN(i)){i=0}this.ew(e,i,c);this.dd().bw(i);if(this.displayType()==$.ig.TimeAxisDisplayType.prototype.discrete){var l=this.getFirstVisibleIndex(b,c);var m=this.getLastVisibleIndex(b,c);if(l<0||m<0){return}var n=NaN;for(var o=l;o<=m;o++){var p=this.ig()==null?o:this.ig().__inner[o];var q=this.getScaledValue(this.ij().item(p).getTime(),d);if(q==n){continue}n=q;if(this.categoryMode()==$.ig.CategoryMode.prototype.mode2){q+=this.isInverted()?-this.getGroupCenter(o,b,c):this.getGroupCenter(o,b,c)}if(q<c.left()||q>c.right()){continue}this.ey(g,q,c);this.gz().add(q);if(this.g0()!=null&&o<this.g0().g()){var r=this.g0().item(p);var s=$.ig.Axis.prototype.fb.call(this,r);if(!isNaN(q)&&!Number.isInfinity(q)){this.db().add1(s);this.dc().add(new $.ig.LabelPosition(q))}}}}else{var t=this.getUnscaledValue(c.left(),d);var u=this.getUnscaledValue(c.right(),d);var v=Math.min(t,u);var w=Math.max(t,u);var x=new $.ig.LinearNumericSnapper(0,v,w,c.width());var y=this.ih()?this.ip():x.h();var z=Math.floor((v-this.actualMinimumValue().getTime())/y);var aa=Math.ceil((w-this.actualMinimumValue().getTime())/y);var ab=0;if(this.categoryMode()==$.ig.CategoryMode.prototype.mode2){ab=this.getGroupCenter(0,b,c);ab=this.isInverted()?-ab:ab}var ac=Math.ceil(c.right());var ad=Math.floor(c.left());var ae=this.getScaledValue(this.actualMinimumValue().getTime()+z*y,d)+ab;for(var af=z;af<=aa;af++){var ag=this.getScaledValue(this.actualMinimumValue().getTime()+(af+1)*y,d)+ab;if(!isNaN(ae)&&!Number.isInfinity(ae)){var ah=Math.round(ae);if(ah<=ac){if(af%2==0){this.ex(f,ae,ag,c)}this.ey(g,ae,c);this.gz().add(ae);for(var ai=1;ai<x.j();++ai){var aj=this.getScaledValue(this.actualMinimumValue().getTime()+af*y+ai*y/x.j(),d)+ab;this.ey(h,aj,c)}}if(ah>=ad&&ah<=ac){var ak=this.actualMinimumValue().getTime()+af*y;var ticks_=Math.floor(ak);var al=new Date(ticks_);var am=this.fb(al);this.db().add1(am);this.dc().add(new $.ig.LabelPosition(ae))}}ae=ag}}if((this.labelSettings()==null||this.labelSettings().visibility()==$.ig.Visibility.prototype.visible)&&this.crossingAxis()!=null){if(this.labelSettings()!=null&&(this.labelSettings().location()==$.ig.AxisLabelsLocation.prototype.insideTop||this.labelSettings().location()==$.ig.AxisLabelsLocation.prototype.insideBottom)){this.seriesViewer().iw()}}this.dd().br(this.db());this.dd().bs(this.dc());this.hp()}},ip:function(){return this.ii()},iq:function(){var a=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():$.ig.Rect.prototype.empty();var b=!a.isEmpty()?this.c9():$.ig.Rect.prototype.empty();var c=new Date;var d=new Date;if(!a.isEmpty()&&!b.isEmpty()&&this.ij()!=null){var e=$.ig.util.cast($.ig.FastItemDateTimeColumn.prototype.$type,this.ij());if(e!=null){if(this.ig()==null){this.ig(e.v())}}else{this.ig(null)}if(this.ij().count()>0){var f=this.ig()==null?0:this.ig().__inner[0];var g=this.ig()==null?this.ij().count()-1:this.ig().__inner[this.ij().count()-1];c=this.ij().item(f);d=this.ij().item(g);this.ih(false);if(this.categoryMode()==$.ig.CategoryMode.prototype.mode2){var h=d.getTime()-c.getTime();var timeOffset_=Math.round(h*1.25/this.itemsCount()/2);if(timeOffset_==0){timeOffset_=1}var minTime_=c.getTime();var maxTime_=d.getTime();c=new Date(minTime_-timeOffset_);d=new Date(maxTime_+timeOffset_)}}}if(this.it()){c=this.minimumValue()}if(this.iu()){d=this.maximumValue()}if(this.ir()){this.ii(this.interval());var i=Math.abs(d.getTime()-c.getTime());this.ih(this.is()||this.displayType()==$.ig.TimeAxisDisplayType.prototype.discrete||1*i/this.ip()>b.width()/a.width()?false:true)}this.actualMinimumValue(c);this.actualMaximumValue(d)},ir:function(){return this.interval()!=0},is:function(){return this.ii()==0},it:function(){return this.minimumValue()!=null},iu:function(){return this.maximumValue()!=null},h3:null,actualMinimumValue:function(a){if(arguments.length===1){var b=this.h3!=a;if(b){var c=this.h3;this.h3=a;this.e8($.ig.CategoryDateTimeXAxis.prototype.hy,c,a)}return a}else{return this.h3}},h4:null,actualMaximumValue:function(a){if(arguments.length===1){var b=this.h4!=a;if(b){var c=this.h4;this.h4=a;this.e8($.ig.CategoryDateTimeXAxis.prototype.hz,c,a)}return a}else{return this.h4}},_ih:null,ih:function(a){if(arguments.length===1){this._ih=a;return a}else{return this._ih}},h5:null,ii:function(a){if(arguments.length===1){this.h5=a;return a}else{return this.h5}},getScaledValue:function(a,b){var c;if(this.actualMaximumValue()==this.actualMinimumValue()){c=-1}else{c=(a-this.actualMinimumValue().getTime())/(this.actualMaximumValue().getTime()-this.actualMinimumValue().getTime())}var d=0;if(this.categoryMode()==$.ig.CategoryMode.prototype.mode2){d=this.getGroupCenter(0,b.a,b.b)}if(this.isInverted()){c=1-c;d=-d}return b.b.left()+b.b.width()*(c-b.a.left())/b.a.width()-d},getUnscaledValue:function(a,b){return this.hd(a,b.a,b.b,this.categoryMode())},hd:function(a,b,c,d){var e=b.left()+b.width()*(a-c.left())/c.width();if(this.isInverted()){e=1-e}return Math.floor(this.actualMinimumValue().getTime()+e*(this.actualMaximumValue().getTime()-this.actualMinimumValue().getTime()))},i1:function(a){return this.ij()==null?$.ig.Date.prototype.minValue():this.ij().item(a)},dateTimeMemberPath:function(a){if(arguments.length===1){this.c($.ig.CategoryDateTimeXAxis.prototype.dateTimeMemberPathProperty,a);return a}else{return this.b($.ig.CategoryDateTimeXAxis.prototype.dateTimeMemberPathProperty)}},ij:function(a){if(arguments.length===1){if(this.h6!=a){var b=this.h6;this.h6=a;this.e8($.ig.CategoryDateTimeXAxis.prototype.h1,b,this.h6)}return a}else{return this.h6}},h6:null,i4:function(a){if(a==null){return this.g0().y(null,null)}var b=null;var c=$.ig.SeriesViewer.prototype.getCoercionMethod(a,this.coercionMethods());a=c.c();b=c.d();return this.g0().y(a,b)},ep:function(a,b,c,d){$.ig.CategoryAxisBase.prototype.ep.call(this,a,b,c,d);switch(b){case $.ig.CategoryDateTimeXAxis.prototype.gf:var e=$.ig.util.cast($.ig.FastItemsSource.prototype.$type,c);if(e!=null){e.ac(this.ij());this.ij(null);e.event=$.ig.Delegate.prototype.remove(e.event,this.i5.runOn(this))}var f=$.ig.util.cast($.ig.FastItemsSource.prototype.$type,d);if(f!=null){this.ig(null);this.ij(this.i4(this.dateTimeMemberPath()));f.event=$.ig.Delegate.prototype.combine(f.event,this.i5.runOn(this))}this.i6(false);break;case $.ig.CategoryDateTimeXAxis.prototype.h0:if(this.g0()!=null){this.g0().ac(this.ij());this.ij(this.i4(this.dateTimeMemberPath()));this.ig(null)}break;case $.ig.CategoryDateTimeXAxis.prototype.hu:this.de(true);this.dd().b4(this.displayType()==$.ig.TimeAxisDisplayType.prototype.discrete);this.e1(false);break;case $.ig.CategoryDateTimeXAxis.prototype.hv:this.updateRange();this.i6(false);break;case $.ig.CategoryDateTimeXAxis.prototype.hw:this.updateRange();this.i6(false);break;case $.ig.CategoryDateTimeXAxis.prototype.hx:this.de(true);this.e1(false);break}},i5:function(a,b){this.ig(null)},i6:function(a){this.e7(a);if(this.g0()==null){return}var c=this.fu().getEnumerator();while(c.moveNext()){var b=c.current();b.renderSeries(a)}},e6:function(){var a=this.actualMinimumValue().getTime();var b=this.actualMaximumValue().getTime();var c=!this.it()?this.actualMinimumValue().getTime():this.minimumValue().getTime();var d=!this.iu()?this.actualMaximumValue().getTime():this.maximumValue().getTime();var e=new $.ig.AxisRangeChangedEventArgs(a,c,b,d);this.d4(e);return true},sortedIndices:function(){if(this.ig()==null){var b=$.ig.util.cast($.ig.FastItemDateTimeColumn.prototype.$type,this.ij());if(b!=null){this.ig(b.v())}else{this.ig(null)}}return this.ig()},getFirstVisibleIndex:function(a,b){var c=new $.ig.ScalerParams(a,b,this.isInverted());var d,e;if(this.isInverted()){e=this.getUnscaledValue(b.left(),c);d=this.getUnscaledValue(b.right(),c)}else{d=this.getUnscaledValue(b.left(),c);e=this.getUnscaledValue(b.right(),c)}var f=0;for(var g=0;g<this.ig().count();g++){if(this.ij()==null){break}var h=this.ij().item(this.ig().__inner[g]);if(h.getTime()>=d){break}f=g}return f},getLastVisibleIndex:function(a,b){var c=new $.ig.ScalerParams(a,b,this.isInverted());var d,e;if(this.isInverted()){e=this.getUnscaledValue(b.left(),c);d=this.getUnscaledValue(b.right(),c)}else{d=this.getUnscaledValue(b.left(),c);e=this.getUnscaledValue(b.right(),c)}var f=this.ig().count()-1;var g=f;for(var h=f;h>=0;h--){if(this.ij()==null||this.ig().count()<=h){break}var i=this.ig().__inner[h];if(i>=this.ij().count()){break}var j=this.ij().item(i);if(j.getTime()<e){break}g=Math.min(h+1,this.ig().count()-1)}return g},getUnscaledValueAt:function(a){if(this.ij()==null){return NaN}var b=this.h6.item(a);var c=b.getTime();var d=c;return d},getExactUnsortedIndexClosestToUnscaledValue:function(a){var b=this;var c=new $.ig.SortedListView$1($.ig.Date.prototype.$type,this.ij(),b.sortedIndices());var ticks_=a;var d=new Date(ticks_);var e=this.i7(a,d,c);if(e>=0&&e<b.sortedIndices().count()&&e-1>=0&&e-1<b.sortedIndices().count()){var diff1_=d.getTime()-c.item(e-1).getTime();var diff2_=c.item(e).getTime()-d.getTime();var f=e-1;var g=e;if(f<0&&g>=0){return g}if(g>b.sortedIndices().count()-1&&f<b.sortedIndices().count()){return f}if(f<0&&g<0){return-1}if(f>b.sortedIndices().count()-1&&g>b.sortedIndices().count()-1){return-1}var h=diff1_/(diff1_+diff2_);if(isNaN(h)){h=0}return f+h}if(e>=0&&e<b.sortedIndices().count()){return e}return-1},i7:function(a,b,c){var $self=this;var d=this;if(this.ij()==null||d.sortedIndices()==null){return-1}var e=-1;var g=c.binarySearch$1($.ig.Date.prototype.$type,function(f){if(b<f){return-1}if(b>f){return 1}return 0});if(g>=0){e=g}else{e=~g}while(e>=0&&e<c.count()&&e-1>=0&&c.item(e)==c.item(e-1)){e--}return e},getIndexClosestToUnscaledValue:function(a){var b=this;var c=new $.ig.SortedListView$1($.ig.Date.prototype.$type,this.ij(),b.sortedIndices());var ticks_=a;var d=new Date(ticks_);var e=this.i7(a,d,c);if(e>=0&&e<b.sortedIndices().count()&&e-1>=0&&e-1<b.sortedIndices().count()){var f=d-c.item(e-1);var g=c.item(e)-d;if(f<g){e=e-1}}if(e>=0&&e<b.sortedIndices().count()){return b.sortedIndices().__inner[e]}if(e==b.sortedIndices().count()&&this.seriesViewer()!=null&&Math.abs(this.getScaledValue(a,new $.ig.ScalerParams(this.seriesViewer().actualWindowRect(),this.c9(),this.isInverted()))-this.c9().right())<2){return e-1}if(e==-1&&this.seriesViewer()!=null&&Math.abs(this.getScaledValue(a,new $.ig.ScalerParams(this.seriesViewer().actualWindowRect(),this.c9(),this.isInverted()))-this.c9().left())<2){return 0}return-1},notifyDataChanged:function(){this.ig(null);this.renderAxis()},dk:function(){return $.ig.AxisOrientation.prototype.horizontal},$type:new $.ig.Type("CategoryDateTimeXAxis",$.ig.CategoryAxisBase.prototype.$type,[$.ig.ISortingAxis.prototype.$type])},true);$.ig.util.defType("CategoryDateTimeXAxisView","CategoryAxisBaseView",{_bo:null,bo:function(a){if(arguments.length===1){this._bo=a;return a}else{return this._bo}},init:function(a){$.ig.CategoryAxisBaseView.prototype.init.call(this,a);this.bo(a)},$type:new $.ig.Type("CategoryDateTimeXAxisView",$.ig.CategoryAxisBaseView.prototype.$type)},true);$.ig.util.defType("CategoryXAxis","CategoryAxisBase",{dt:function(){return new $.ig.CategoryXAxisView(this)},dw:function(a){$.ig.CategoryAxisBase.prototype.dw.call(this,a);this.hz(a)},_hz:null,hz:function(a){if(arguments.length===1){this._hz=a;return a}else{return this._hz}},init:function(){this.hv=1;this.hw=1;$.ig.CategoryAxisBase.prototype.init.call(this);this.gz(new $.ig.List$1(Number,0));this.a3($.ig.CategoryXAxis.prototype.$type)},hv:null,h0:function(a){if(arguments.length===1){this.hv=a;return a}else{return this.hv}},hw:null,h1:function(a){if(arguments.length===1){this.hw=a;return a}else{return this.hw}},dy:function(){return new $.ig.HorizontalAxisLabelPanel},getCategorySize:function(a,b){return b.width()/(this.itemsCount()*a.width())},he:function(a,b){var c=!isNaN(this.gap())?$.ig.MathUtil.prototype.i(this.gap(),0,1):0;var d=0;if(!isNaN(this.overlap())){d=Math.min(this.overlap(),1)}else{d=0}var e=1-.5*c;var f=this.g1()==0?1:this.g1();var g=this.getCategorySize(a,b)*e/(f-(f-1)*d);return g},getGroupCenter:function(a,b,c){var d=.5;if(this.g1()>1){var e=!isNaN(this.gap())?$.ig.MathUtil.prototype.i(this.gap(),0,1):0;var f=0;if(!isNaN(this.overlap())){f=Math.min(this.overlap(),1)}var g=1-.5*e;var h=g/(this.g1()-(this.g1()-1)*f);var i=(g-h)/(this.g1()-1);d=.25*e+.5*h+a*i}return this.getCategorySize(b,c)*d},scrollIntoView:function(a){var b=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():$.ig.Rect.prototype.empty();var c=this.c9();var d=new $.ig.Rect(0,0,0,1,1);var e=new $.ig.ScalerParams(d,d,this.isInverted());var f=!b.isEmpty()&&!c.isEmpty()&&this.g0()!=null?this.g0().x(a):-1;var g=f>-1?this.getScaledValue(f,e):NaN;if(!isNaN(g)&&this.seriesViewer().fz()){if(!isNaN(g)){if(g<b.left()+.1*b.width()){g=g+.4*b.width();b.x(g-.5*b.width())}if(g>b.right()-.1*b.width()){g=g-.4*b.width();b.x(g-.5*b.width())}}this.seriesViewer().ig(b)}},getScaledValue:function(a,b){var c=this.categoryMode()==$.ig.CategoryMode.prototype.mode0?this.itemsCount()-1:this.itemsCount();if(c<0){c=0}var d=c>=1?a/c:c==0?.5:NaN;if(this.c8()){d=1-d}return b.b.left()+b.b.width()*(d-b.a.left())/b.a.width()},getUnscaledValue:function(a,b){return this.hd(a,b.a,b.b,this.categoryMode())},hd:function(a,b,c,d){var e=b.left()+(a-c.left())*b.width()/c.width();if(this.c8()){e=1-e}var f=d==$.ig.CategoryMode.prototype.mode0?this.itemsCount()-1:this.itemsCount();if(f<0){f=0}return e*f},e7:function(a){var b=this.seriesViewer()!=null?this.seriesViewer().actualWindowRect():$.ig.Rect.prototype.empty();var c=this.c9();var d=new $.ig.ScalerParams(b,c,this.isInverted());var e=this.c6().au();var f=this.c6().av();var g=this.c6().aw();var h=this.c6().ax();this.d9();this.ez(e);this.ez(f);this.ez(g);this.ez(h);this.db().clear();this.dc().clear();this.gz().clear();this.c6().az(this,b,c);if(b.isEmpty()||c.isEmpty()){this.dm().g(0)}if(this.dm().g()==0){this.c6().a0()}if(this.labelSettings()!=null){this.labelSettings().r(this)}if(this.itemsSource()==null){return}if(!b.isEmpty()&&!c.isEmpty()){var i=this.getUnscaledValue(c.left(),d);var j=this.getUnscaledValue(c.right(),d);if(this.isInverted()){i=Math.ceil(i);j=Math.floor(j)}else{i=Math.floor(i);j=Math.ceil(j)}var k=c.bottom();if(this.crossingAxis()!=null){var l=$.ig.util.cast($.ig.NumericYAxis.prototype.$type,this.crossingAxis());if(l!=null){var m=new $.ig.ScalerParams(b,c,l.isInverted());k=this.crossingValue();k=l.getScaledValue(k,m);if(k<c.top()){k=c.top()}else if(k>c.bottom()){k=c.bottom()}}}this.ew(e,k,c);this.c6().a3(k);var n=Math.min(i,j);var o=Math.max(i,j);var p=new $.ig.LinearCategorySnapper(1,n,o,c.width(),this.interval(),this.categoryMode());var q=Math.floor((n-0)/p.g());var r=Math.ceil((o-0)/p.g());if(!isNaN(q)&&!isNaN(r)){var s=q;var t=r;var u=this.getScaledValue(0+s*p.g(),d);this.c6().a1(this.getScaledValue(p.g(),d));var v=Math.ceil(c.right());var w=Math.floor(c.left());for(var x=s;x<=t;++x){var y=this.getScaledValue(0+(x+1)*p.g(),d);if(u<=c.right()){if(x%2==0){this.ex(f,u,y,c)}this.ey(g,u,c);this.gz().add(u);if(this.categoryMode()!=$.ig.CategoryMode.prototype.mode0&&this.g1()!=0&&this.dg()){for(var z=0;z<p.g();z++){for(var aa=0;aa<this.g1();aa++){var ab=this.getGroupCenter(aa,b,c);if(this.isInverted()){ab=-ab}var ac=this.getScaledValue(z+x*p.g(),d)+ab;this.ey(h,ac,c)}}}}var ad=u;if(this.categoryMode()!=$.ig.CategoryMode.prototype.mode0){var ae=this.getScaledValue(x*p.g()+1,d);ad=(u+ae)/2}var af=Math.round(ad);if(af>=w&&af<=v){var ag=0;if(p.g()>=1){ag=x*Math.floor(p.g())}else{if(x*p.g()*2%2==0){ag=Math.floor(x*p.g())}else{ag=-1}}if(this.g0()!=null&&ag<this.g0().g()&&ag>=0){var ah=this.g0().item(ag);var ai=this.fb(ah);if(!isNaN(ad)&&!Number.isInfinity(ad)){this.db().add1(ai);this.dc().add(new $.ig.LabelPosition(ad))}}}u=y}}if((this.labelSettings()==null||this.labelSettings().visibility()==$.ig.Visibility.prototype.visible)&&this.crossingAxis()!=null){if(this.labelSettings()!=null&&(this.labelSettings().location()==$.ig.AxisLabelsLocation.prototype.insideTop||this.labelSettings().location()==$.ig.AxisLabelsLocation.prototype.insideBottom)){this.seriesViewer().iw()}}this.c6().a2(this.db(),this.dc());this.hp()}},e6:function(){if(this.g0()==null){return false}var a=this.g0().g();if(a!=this.h1()){var b=new $.ig.AxisRangeChangedEventArgs(1,1,this.h1(),a);this.h1(a);this.d4(b);return true}return false},interval:function(a){if(arguments.length===1){this.c($.ig.CategoryXAxis.prototype.intervalProperty,a);return a}else{return this.b($.ig.CategoryXAxis.prototype.intervalProperty)}},hh:function(a){if(a==null){return false}var b=this.fp();if(b==null){return false}return b.synchronizeHorizontally()},dk:function(){return $.ig.AxisOrientation.prototype.horizontal},$type:new $.ig.Type("CategoryXAxis",$.ig.CategoryAxisBase.prototype.$type)},true);$.ig.util.defType("CategoryXAxisView","CategoryAxisBaseView",{_bo:null,bo:function(a){if(arguments.length===1){this._bo=a;return a}else{return this._bo}},init:function(a){$.ig.CategoryAxisBaseView.prototype.init.call(this,a);this.bo(a)},$type:new $.ig.Type("CategoryXAxisView",$.ig.CategoryAxisBaseView.prototype.$type)},true);$.ig.util.defType("RangeValueList","Object",{a:null,b:null,init:function(a,b){$.ig.Object.prototype.init.call(this);this.a=a;this.b=b},indexOf:function(a){throw new $.ig.NotImplementedException},insert:function(a,b){throw new $.ig.NotImplementedException},removeAt:function(a){throw new $.ig.NotImplementedException},item:function(b,a){if(arguments.length===2){throw new $.ig.NotImplementedException;return a}else{var c=NaN;var d=NaN;if(this.a!=null&&b>=0&&b<this.a.count()){c=this.a.item(b)}if(this.b!=null&&b>=0&&b<this.b.count()){d=this.b.item(b)}var e=isNaN(c);var f=isNaN(d);if(!e&&!f){return(c+d)/2}if(!e){return c}if(!f){return d}return NaN}},add:function(a){throw new $.ig.NotImplementedException},clear:function(){throw new $.ig.NotImplementedException},contains:function(a){throw new $.ig.NotImplementedException},c:function(a,b){throw new $.ig.NotImplementedException},count:function(){var b=0;var c=0;if(this.a!=null){b=this.a.count()}if(this.b!=null){c=this.b.count()}var d=0;d=Math.max(d,b);d=Math.max(d,c);return d},isReadOnly:function(){return true},remove:function(a){throw new $.ig.NotImplementedException},getEnumerator:function(){throw new $.ig.NotImplementedException},$type:new $.ig.Type("RangeValueList",$.ig.Object.prototype.$type,[$.ig.IList$1.prototype.$type.specialize(Number)])},true);$.ig.util.defType("FinancialSeries","Series",{eq:function(a){$.ig.Series.prototype.eq.call(this,a);this.js(a)},_js:null,js:function(a){if(arguments.length===1){this._js=a;return a}else{return this._js}},isFinancial:function(){return true},init:function(){this.i1=new $.ig.Dictionary$2($.ig.IFastItemColumn$1.prototype.$type.specialize(Number),String,0);this.i2=new $.ig.Dictionary$2(String,String,0);this.i3=false;this.i9=false;$.ig.Series.prototype.init.call(this);this.a3($.ig.FinancialSeries.prototype.$type)},negativeBrush:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.negativeBrushProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.negativeBrushProperty)}},xAxis:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.xAxisProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.xAxisProperty)}},yAxis:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.yAxisProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.yAxisProperty)}},openMemberPath:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.openMemberPathProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.openMemberPathProperty)}},jt:function(a){if(arguments.length===1){if(this.iw!=a){var b=this.iw;this.iw=a;this.e6($.ig.FinancialSeries.prototype.im,b,this.iw)}return a}else{return this.iw}},iw:null,highMemberPath:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.highMemberPathProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.highMemberPathProperty)}},ju:function(a){if(arguments.length===1){if(this.ix!=a){var b=this.ix;this.ix=a;this.e6($.ig.FinancialSeries.prototype.ip,b,this.ix)}return a}else{return this.ix}},ix:null,lowMemberPath:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.lowMemberPathProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.lowMemberPathProperty)}},jv:function(a){if(arguments.length===1){if(this.iy!=a){var b=this.iy;this.iy=a;this.e6($.ig.FinancialSeries.prototype.ir,b,this.iy)}return a}else{return this.iy}},iy:null,closeMemberPath:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.closeMemberPathProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.closeMemberPathProperty)}},jw:function(a){if(arguments.length===1){if(this.iz!=a){var b=this.iz;this.iz=a;this.e6($.ig.FinancialSeries.prototype.it,b,this.iz)}return a}else{return this.iz}},iz:null,volumeMemberPath:function(a){if(arguments.length===1){this.c($.ig.FinancialSeries.prototype.volumeMemberPathProperty,a);return a}else{return this.b($.ig.FinancialSeries.prototype.volumeMemberPathProperty)}},jx:function(a){if(arguments.length===1){if(this.i0!=a){var b=this.i0;this.i0=a;this.e6($.ig.FinancialSeries.prototype.iv,b,this.i0)}return a}else{return this.i0}},i0:null,ke:function(a){return this.e4(a,this.xAxis())},getPreviousOrExactIndex:function(a,b){return this.e2(a,b,this.xAxis(),this.ke.runOn(this),new $.ig.FinancialValueList(this.jt(),this.ju(),this.jv(),this.jw(),this.jx()))},getNextOrExactIndex:function(a,b){return this.e3(a,b,this.xAxis(),this.ke.runOn(this),new $.ig.FinancialValueList(this.jt(),this.ju(),this.jv(),this.jw(),this.jx()))},ex:function(a,b,c,d,e){if(c==null){return Number.POSITIVE_INFINITY}var f=this.xAxis().itemsCount();return this.ey(a,b,this.xAxis(),d,e,f,this.ke.runOn(this))},getOffsetValue:function(){return this.getOffset(this.view().ae(),this.view().ad())},getCategoryWidth:function(){return this.xAxis().getCategorySize(this.view().ae(),this.view().ad())},getSeriesValuePosition:function(a,b,c){return this.e5(a,b,c,this.getOffset(this.view().ae(),this.view().ad()),this.yAxis(),this.xAxis(),null,null,null)},getSeriesValue:function(a,b,c){var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(new $.ig.FinancialValueList(this.jt(),this.ju(),this.jv(),this.jw(),this.jx()),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getSeriesHighValue:function(a,b,c){var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.ju(),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getSeriesLowValue:function(a,b,c){var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.jv(),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getSeriesCloseValue:function(a,b,c){var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.jw(),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getSeriesOpenValue:function(a,b,c){var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.jt(),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getSeriesVolumeValue:function(a,b,c){var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.jx(),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getSeriesHighValuePosition:function(a,b,c){var $self=this;return this.e5(a,b,c,this.getOffset(this.view().ae(),this.view().ad()),this.yAxis(),this.xAxis(),this.getSeriesHighValue.runOn(this),function(d,e){return $self.e2(d,e,$self.xAxis(),$self.ke.runOn($self),$self.ju())},function(f,g){return $self.e3(f,g,$self.xAxis(),$self.ke.runOn($self),$self.ju())})},getSeriesLowValuePosition:function(a,b,c){var $self=this;return this.e5(a,b,c,this.getOffset(this.view().ae(),this.view().ad()),this.yAxis(),this.xAxis(),this.getSeriesLowValue.runOn(this),function(d,e){return $self.e2(d,e,$self.xAxis(),$self.ke.runOn($self),$self.jv())},function(f,g){return $self.e3(f,g,$self.xAxis(),$self.ke.runOn($self),$self.jv())})},getSeriesOpenValuePosition:function(a,b,c){var $self=this;return this.e5(a,b,c,this.getOffset(this.view().ae(),this.view().ad()),this.yAxis(),this.xAxis(),this.getSeriesOpenValue.runOn(this),function(d,e){return $self.e2(d,e,$self.xAxis(),$self.ke.runOn($self),$self.jt())},function(f,g){return $self.e3(f,g,$self.xAxis(),$self.ke.runOn($self),$self.jt())})},getSeriesCloseValuePosition:function(a,b,c){var $self=this;return this.e5(a,b,c,this.getOffset(this.view().ae(),this.view().ad()),this.yAxis(),this.xAxis(),this.getSeriesCloseValue.runOn(this),function(d,e){return $self.e2(d,e,$self.xAxis(),$self.ke.runOn($self),$self.jw())},function(f,g){return $self.e3(f,g,$self.xAxis(),$self.ke.runOn($self),$self.jw())})},getSeriesVolumeValuePosition:function(a,b,c){var $self=this;return this.e5(a,b,c,this.getOffset(this.view().ae(),this.view().ad()),this.yAxis(),this.xAxis(),this.getSeriesVolumeValue.runOn(this),function(d,e){return $self.e2(d,e,$self.xAxis(),$self.ke.runOn($self),$self.jx())},function(f,g){return $self.e3(f,g,$self.xAxis(),$self.ke.runOn($self),$self.jx())})},gi:function(){$.ig.Series.prototype.gi.call(this);if(this.xAxis()!=null){this.xAxis().e1(false)}if(this.yAxis()!=null){this.yAxis().e1(false)}},fk:function(a,b){this.js().cr().q(this.resolution());this.renderSeries(false)},fl:function(a,b){this.js().cr().q(this.resolution());this.renderSeries(false)},i1:null,i2:null,kf:function(a,b,c){var d=this.hk(b);this.i1.add(d,b);this.i2.add(b,c);return d},kg:function(a,b){if(b==null){return}a.ac(b);var c=this.i1.item(b);this.i2.remove(c);this.i1.remove(b)},i3:null,ft:function(a,b,c,d){var $self=this;$.ig.Series.prototype.ft.call(this,a,b,c,d);switch(b){case $.ig.Series.prototype.bi:if(this.syncLink()!=null&&this.seriesViewer()!=null){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.bj:if(c!=null&&d==null){if(this.xAxis()!=null){this.xAxis().deregisterSeries(this)}if(this.yAxis()!=null){this.yAxis().deregisterSeries(this)}}if(c==null&&d!=null){if(this.xAxis()!=null){this.xAxis().registerSeries(this)}if(this.yAxis()!=null){this.yAxis().registerSeries(this)}}this.js().cr().q(this.resolution());this.renderSeries(false);break;case $.ig.FinancialSeries.prototype.bl:this.i3=true;if($.ig.util.cast($.ig.FastItemsSource.prototype.$type,c)!=null){this.kg($.ig.util.cast($.ig.FastItemsSource.prototype.$type,c),this.jt());this.kg($.ig.util.cast($.ig.FastItemsSource.prototype.$type,c),this.ju());this.kg($.ig.util.cast($.ig.FastItemsSource.prototype.$type,c),this.jv());this.kg($.ig.util.cast($.ig.FastItemsSource.prototype.$type,c),this.jw());this.kg($.ig.util.cast($.ig.FastItemsSource.prototype.$type,c),this.jx());this.jt(null);this.ju(null);this.jv(null);this.jw(null);this.jx(null)}if($.ig.util.cast($.ig.FastItemsSource.prototype.$type,d)!=null){if(this.openMemberPath()!=null){this.jt(this.kf($.ig.util.cast($.ig.FastItemsSource.prototype.$type,d),this.openMemberPath(),$.ig.FinancialSeries.prototype.im))}if(this.highMemberPath()!=null){this.ju(this.kf($.ig.util.cast($.ig.FastItemsSource.prototype.$type,d),this.highMemberPath(),$.ig.FinancialSeries.prototype.ip))}if(this.lowMemberPath()!=null){this.jv(this.kf($.ig.util.cast($.ig.FastItemsSource.prototype.$type,d),this.lowMemberPath(),$.ig.FinancialSeries.prototype.ir))}if(this.closeMemberPath()!=null){this.jw(this.kf($.ig.util.cast($.ig.FastItemsSource.prototype.$type,d),this.closeMemberPath(),$.ig.FinancialSeries.prototype.it))}if(this.volumeMemberPath()!=null){this.jx(this.kf($.ig.util.cast($.ig.FastItemsSource.prototype.$type,d),this.volumeMemberPath(),$.ig.FinancialSeries.prototype.iv))}}this.i3=false;if(this.yAxis()!=null&&!this.yAxis().updateRange()){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.il:if(this.eb()!=null){this.kg(this.eb(),this.jt());
this.jt(this.kf(this.eb(),this.openMemberPath(),$.ig.FinancialSeries.prototype.im))}break;case $.ig.FinancialSeries.prototype.im:if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.i3){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.io:if(this.eb()!=null){this.kg(this.eb(),this.ju());this.ju(this.kf(this.eb(),this.highMemberPath(),$.ig.FinancialSeries.prototype.ip))}break;case $.ig.FinancialSeries.prototype.ip:if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.i3){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.iq:if(this.eb()!=null){this.kg(this.eb(),this.jv());this.jv(this.kf(this.eb(),this.lowMemberPath(),$.ig.FinancialSeries.prototype.ir))}break;case $.ig.FinancialSeries.prototype.ir:if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.i3){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.is:if(this.eb()!=null){this.kg(this.eb(),this.jw());this.jw(this.kf(this.eb(),this.closeMemberPath(),$.ig.FinancialSeries.prototype.it))}break;case $.ig.FinancialSeries.prototype.it:if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.i3){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.iu:if(this.eb()!=null){this.kg(this.eb(),this.jx());this.jx(this.kf(this.eb(),this.volumeMemberPath(),$.ig.FinancialSeries.prototype.iv))}break;case $.ig.FinancialSeries.prototype.iv:if(this.yAxis()!=null&&!this.yAxis().updateRange()&&!this.i3){this.js().cr().q(this.resolution());this.renderSeries(false)}break;case $.ig.FinancialSeries.prototype.ij:if(c!=null){$.ig.util.cast($.ig.Axis.prototype.$type,c).deregisterSeries(this)}if(d!=null){$.ig.util.cast($.ig.Axis.prototype.$type,d).registerSeries(this)}this.js().cr().q(this.resolution());this.renderSeries(false);this.fs();break;case $.ig.FinancialSeries.prototype.ik:if(c!=null){$.ig.util.cast($.ig.Axis.prototype.$type,c).deregisterSeries(this)}if(d!=null){$.ig.util.cast($.ig.Axis.prototype.$type,d).registerSeries(this)}this.js().cr().q(this.resolution());if(this.yAxis()!=null&&!this.yAxis().updateRange()){this.renderSeries(false)}this.fs();break;case $.ig.FinancialSeries.prototype.bv:this.i5.a(this.ed(),this.i4,this.i6);if(this.fi(this.view())){return}if(this.ed()==1){this.kj(this.i6,this.js())}else{this.kj(this.i5,this.js())}break;case $.ig.FinancialSeries.prototype.ii:this.renderSeries(false);break}},getExactItemIndex:function(a){var b=this.view().ae();var c=this.view().ad();var d=-1;if(!b.isEmpty()&&!c.isEmpty()&this.xAxis()!=null){var e=this.xAxis().hd(c.left(),b,c,this.xAxis().categoryMode());var f=this.xAxis().hd(c.right(),b,c,this.xAxis().categoryMode());var g=(a.__x-b.left())/b.width();var h=e+g*(f-e);if(this.xAxis().categoryMode()!=$.ig.CategoryMode.prototype.mode0){h-=.5}d=h}return d},getItemIndex:function(a){return Math.round(this.getExactItemIndex(a))},kh:function(a){var b=this.view().ae();var c=this.view().ad();if(b.isEmpty()||c.isEmpty()){return-1}var d=new $.ig.ScalerParams(b,c,this.xAxis().isInverted());var e=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis());var f=this.xAxis().getUnscaledValue(c.left(),d);var g=this.xAxis().getUnscaledValue(c.right(),d);var h=(a.__x-b.left())/b.width();var i=f+(g-f)*h;var j=e.getIndexClosestToUnscaledValue(i);return j},getItem:function(a){var b=0;if($.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){b=this.kh(a);if(b==-1){return null}}else{b=this.getItemIndex(a)}return b>=0&&this.eb()!=null&&b<this.eb().g()?this.eb().item(b):null},i4:null,i5:null,i6:null,getOffset:function(a,b){var c=0;if(this.xAxis()==null){return c}var d=this.xAxis().categoryMode();switch(d){case $.ig.CategoryMode.prototype.mode0:c=0;break;case $.ig.CategoryMode.prototype.mode1:c=.5*this.xAxis().getCategorySize(a,b);break;case $.ig.CategoryMode.prototype.mode2:c=this.xAxis().getGroupCenter(this.index(),a,b);break}if(this.xAxis().isInverted()){c=-c}return c},ki:function(a,b){},kj:function(a,b){},ff:function(a,b,c){var d=$.ig.Series.prototype.ff.call(this,a,b,c);var e=c;if(this.eb()==null||this.eb().g()==0||!c.ch()||b.isEmpty()||a.isEmpty()||this.xAxis()==null||this.yAxis()==null||e.cr().h()<1||this.xAxis().seriesViewer()==null||this.yAxis().seriesViewer()==null||this.yAxis().actualMinimumValue()==this.yAxis().actualMaximumValue()){e.cr().h(0);d=false}return d},getViewInfo:function(a,b){b=this.view().ae();a=this.view().ad();return{viewportRect:a,windowRect:b}},fb:function(a){this.js().cr().q(this.resolution());if(this.fi(this.view())){return}if(this.he(a)){var b=this.i4;if(this.gb()){if(this.d4().k()){this.d4().s()}this.i4=this.i5;this.i5=b}else{this.i4=this.i6;this.i6=b}this.ki(this.i6,this.js());this.gc()}else{this.ki(this.i6,this.js());this.kj(this.i6,this.js())}},typical:null,typicalBasedOn:null,kk:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();switch(b){case"HighColumn":if(this.ju()==null){return false}break;case"LowColumn":if(this.jv()==null){return false}break;case"OpenColumn":if(this.jt()==null){return false}break;case"CloseColumn":if(this.jw()==null){return false}break;case"VolumeColumn":if(this.jx()==null){return false}break}}return true},jy:function(){return this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null},jz:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$b:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$b=false;this.$state=1;break;case 1:if(this.$this.typical!=null){this.$state=2}else{this.$state=11}break;case 2:this.$c=this.$this.kr(0,this.$this.eb().g());this.$this.typical(this.$this,new $.ig.FinancialEventArgs(0,this.$this.eb().g(),this.$c,this.$this.kt(this.$c)));this.$state=3;break;case 3:if(this.$c.typicalColumn()!=null){this.$state=4}else{this.$state=10}break;case 4:this.$b=true;this.$state=5;break;case 5:this.$e=this.$c.typicalColumn().getEnumerator();this.$state=8;break;case 6:this.$d=this.$e.current();this.$current=this.$d;this.$state=7;return true;case 7:this.$state=8;break;case 8:if(this.$e.moveNext()){this.$state=6}else{this.$state=9}break;case 9:this.$state=10;break;case 10:this.$state=11;break;case 11:this.$state=12;break;case 12:if(!this.$b){this.$state=13}else{this.$state=30}break;case 13:this.$state=14;break;case 14:if(this.$this.jy()&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.$this.xAxis()).sortedIndices()!=null){this.$state=15}else{this.$state=22}break;case 15:this.$f=this.$this.eb().g();this.$g=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.$this.xAxis()).sortedIndices();this.$state=16;break;case 16:this.$h=0;this.$state=20;break;case 17:this.$current=(this.$this.ju().item(this.$g.item(this.$h))+this.$this.jv().item(this.$g.item(this.$h))+this.$this.jw().item(this.$g.item(this.$h)))/3;this.$state=18;return true;case 18:this.$state=19;break;case 19:++this.$h;this.$state=20;break;case 20:if(this.$h<this.$f){this.$state=17}else{this.$state=21}break;case 21:this.$state=29;break;case 22:this.$i=this.$this.eb().g();this.$state=23;break;case 23:this.$j=0;this.$state=27;break;case 24:this.$current=(this.$this.ju().item(this.$j)+this.$this.jv().item(this.$j)+this.$this.jw().item(this.$j))/3;this.$state=25;return true;case 25:this.$state=26;break;case 26:++this.$j;this.$state=27;break;case 27:if(this.$j<this.$i){this.$state=24}else{this.$state=28}break;case 28:this.$state=29;break;case 29:this.$state=30;break;case 30:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1(Number,$iter)},j0:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:if(this.$this.jy()&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.$this.xAxis()).sortedIndices()!=null){this.$state=2}else{this.$state=13}break;case 2:this.$b=this.$this.ju().count();this.$c=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.$this.xAxis()).sortedIndices();this.$state=3;break;case 3:if(this.$b>0){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$this.ks(this.$this.ju().item(this.$c.item(0))-this.$this.jv().item(this.$c.item(0)));this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$d=1;this.$state=11;break;case 8:this.$current=Math.max(this.$this.ks(this.$this.ju().item(this.$c.item(this.$d))-this.$this.jv().item(this.$c.item(this.$d))),Math.max(this.$this.ks(Math.abs(this.$this.ju().item(this.$c.item(this.$d))-this.$this.jw().item(this.$c.item(this.$d-1)))),this.$this.ks(Math.abs(this.$this.jv().item(this.$c.item(this.$d))-this.$this.jw().item(this.$c.item(this.$d-1))))));this.$state=9;return true;case 9:this.$state=10;break;case 10:++this.$d;this.$state=11;break;case 11:if(this.$d<this.$b){this.$state=8}else{this.$state=12}break;case 12:this.$state=24;break;case 13:this.$e=this.$this.ju().count();this.$state=14;break;case 14:if(this.$e>0){this.$state=15}else{this.$state=17}break;case 15:this.$current=this.$this.ks(this.$this.ju().item(0)-this.$this.jv().item(0));this.$state=16;return true;case 16:this.$state=17;break;case 17:this.$state=18;break;case 18:this.$f=1;this.$state=22;break;case 19:this.$current=Math.max(this.$this.ks(this.$this.ju().item(this.$f)-this.$this.jv().item(this.$f)),Math.max(this.$this.ks(Math.abs(this.$this.ju().item(this.$f)-this.$this.jw().item(this.$f-1))),this.$this.ks(Math.abs(this.$this.jv().item(this.$f)-this.$this.jw().item(this.$f-1)))));this.$state=20;return true;case 20:this.$state=21;break;case 21:++this.$f;this.$state=22;break;case 22:if(this.$f<this.$e){this.$state=19}else{this.$state=23}break;case 23:this.$state=24;break;case 24:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1(Number,$iter)},j1:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:if(this.$this.jy()&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.$this.xAxis()).sortedIndices()!=null){this.$state=2}else{this.$state=13}break;case 2:this.$b=this.$this.jv().count();this.$c=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.$this.xAxis()).sortedIndices();this.$state=3;break;case 3:if(this.$b>0){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$this.ks(this.$this.jv().item(this.$c.item(0)));this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:this.$d=1;this.$state=11;break;case 8:this.$current=Math.min(this.$this.ks(this.$this.jv().item(this.$c.item(this.$d))),this.$this.ks(this.$this.jw().item(this.$c.item(this.$d-1))));this.$state=9;return true;case 9:this.$state=10;break;case 10:this.$d++;this.$state=11;break;case 11:if(this.$d<this.$b){this.$state=8}else{this.$state=12}break;case 12:this.$state=24;break;case 13:this.$e=this.$this.jv().count();this.$state=14;break;case 14:if(this.$e>0){this.$state=15}else{this.$state=17}break;case 15:this.$current=this.$this.ks(this.$this.jv().item(0));this.$state=16;return true;case 16:this.$state=17;break;case 17:this.$state=18;break;case 18:this.$f=1;this.$state=22;break;case 19:this.$current=Math.min(this.$this.ks(this.$this.jv().item(this.$f)),this.$this.ks(this.$this.jw().item(this.$f-1)));this.$state=20;return true;case 20:this.$state=21;break;case 21:this.$f++;this.$state=22;break;case 22:if(this.$f<this.$e){this.$state=19}else{this.$state=23}break;case 23:this.$state=24;break;case 24:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1(Number,$iter)},kp:function(a){if(a==null){return null}if(this.jy()&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis()).sortedIndices()!=null){return new $.ig.SafeSortedReadOnlyDoubleCollection(a,$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis()).sortedIndices())}return new $.ig.SafeReadOnlyDoubleCollection(a)},i9:null,kq:function(){var a=new $.ig.List$1(String,0);a.add("HighColumn");a.add("LowColumn");a.add("CloseColumn");if(this.typicalBasedOn!=null&&this.eb()!=null&&!this.i9){this.i9=true;var b=this.kr(0,this.eb().g());this.i9=false;var c=new $.ig.FinancialEventArgs(0,this.eb().g(),b,this.kt(b));this.typicalBasedOn(this,c);if(c.basedOn()!=null&&c.basedOn().count()>0){return c.basedOn()}}return a},ja:null,getOpenColumnAsArray:function(){if(this.jt()==null){return null}if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){if(this.ja!=null){return this.ja.asArrayList()}var a=new $.ig.List$1(Number,2,this.jt().count());var b=this.xAxis().sortedIndices();var c=this.jt().asArray();for(var d=0;d<b.count();d++){a.add(c[b.__inner[d]])}this.ja=a;return this.ja.asArrayList()}else{return this.jt().asArray()}},jb:null,getHighColumnAsArray:function(){if(this.ju()==null){return null}if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){if(this.jb!=null){return this.jb.asArrayList()}var a=new $.ig.List$1(Number,2,this.ju().count());var b=this.xAxis().sortedIndices();var c=this.ju().asArray();for(var d=0;d<b.count();d++){a.add(c[b.__inner[d]])}this.jb=a;return this.jb.asArrayList()}else{return this.ju().asArray()}},jc:null,getLowColumnAsArray:function(){if(this.jv()==null){return null}if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){if(this.jc!=null){return this.jc.asArrayList()}var a=new $.ig.List$1(Number,2,this.jv().count());var b=this.xAxis().sortedIndices();var c=this.jv().asArray();for(var d=0;d<b.count();d++){a.add(c[b.__inner[d]])}this.jc=a;return this.jc.asArrayList()}else{return this.jv().asArray()}},jd:null,getCloseColumnAsArray:function(){if(this.jw()==null){return null}if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){if(this.jd!=null){return this.jd.asArrayList()}var a=new $.ig.List$1(Number,2,this.jw().count());var b=this.xAxis().sortedIndices();var c=this.jw().asArray();for(var d=0;d<b.count();d++){a.add(c[b.__inner[d]])}this.jd=a;return this.jd.asArrayList()}else{return this.jw().asArray()}},je:null,getVolumeColumnAsArray:function(){if(this.jx()==null){return null}if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){if(this.je!=null){return this.je.asArrayList()}var a=new $.ig.List$1(Number,2,this.jx().count());var b=this.xAxis().sortedIndices();var c=this.jx().asArray();for(var d=0;d<b.count();d++){a.add(c[b.__inner[d]])}this.je=a;return this.je.asArrayList()}else{return this.jx().asArray()}},fz:function(a,b,c,d){$.ig.Series.prototype.fz.call(this,a,b,c,d);if(this.xAxis()==null||!($.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null)){return}var e=this.xAxis().sortedIndices();switch(a){case $.ig.FastItemsSourceEventAction.prototype.insert:for(var f=b;f<c;f++){var g=e.__inner[f];if(this.ja!=null){this.ja.insert(f,this.jt().item(g))}if(this.jb!=null){this.jb.insert(f,this.ju().item(g))}if(this.jc!=null){this.jc.insert(f,this.jv().item(g))}if(this.jd!=null){this.jd.insert(f,this.jw().item(g))}if(this.je!=null){this.je.insert(f,this.jx().item(g))}}break;case $.ig.FastItemsSourceEventAction.prototype.remove:if(this.ja!=null){this.ja.q(b,c)}if(this.jb!=null){this.jb.q(b,c)}if(this.jc!=null){this.jc.q(b,c)}if(this.jd!=null){this.jd.q(b,c)}if(this.je!=null){this.je.q(b,c)}break;case $.ig.FastItemsSourceEventAction.prototype.reset:if(this.ja!=null){this.ja=new $.ig.List$1(Number,0)}if(this.jb!=null){this.jb=new $.ig.List$1(Number,0)}if(this.jc!=null){this.jc=new $.ig.List$1(Number,0)}if(this.jd!=null){this.jd=new $.ig.List$1(Number,0)}if(this.je!=null){this.je=new $.ig.List$1(Number,0)}break;case $.ig.FastItemsSourceEventAction.prototype.change:case $.ig.FastItemsSourceEventAction.prototype.replace:for(var h=b;h<c;h++){var i=e.__inner[h];if(this.ja!=null){this.ja.__inner[h]=this.jt().item(i)}if(this.jb!=null){this.jb.__inner[h]=this.ju().item(i)}if(this.jc!=null){this.jc.__inner[h]=this.jv().item(i)}if(this.jd!=null){this.jd.__inner[h]=this.jw().item(i)}if(this.je!=null){this.je.__inner[h]=this.jx().item(i)}}break}},kr:function(a,b){var $self=this;var c=this.kp(this.jt());var d=this.kp(this.jw());var e=this.kp(this.ju());var f=this.kp(this.jv());var g=this.kp(this.jx());var h=function(){var $ret=new $.ig.FinancialCalculationDataSource;$ret.typicalColumn(new $.ig.CalculatedColumn(1,new $.ig.SafeEnumerable($self.jz()),$self.kq()));$ret.trueRange(new $.ig.CalculatedColumn(1,new $.ig.SafeEnumerable($self.j0()),function(){var $ret=new $.ig.List$1(String,0);$ret.add("HighColumn");$ret.add("LowColumn");$ret.add("CloseColumn");return $ret}()));$ret.trueLow(new $.ig.CalculatedColumn(1,new $.ig.SafeEnumerable($self.j1()),function(){var $ret=new $.ig.List$1(String,0);$ret.add("LowColumn");$ret.add("CloseColumn");return $ret}()));$ret.openColumn(c);$ret.closeColumn(d);$ret.highColumn(e);$ret.lowColumn(f);$ret.volumeColumn(g);$ret.calculateFrom(a);$ret.calculateCount(b);$ret.minimumValue(NaN);$ret.maximumValue(NaN);$ret.count($self.eb()!=null?$self.eb().g():0);return $ret}();return h},ks:function(a){if(Number.isInfinity(a)||isNaN(a)){return 0}return a},kt:function(a){var $self=this;return function(){var $ret=new $.ig.FinancialCalculationSupportingCalculations;$ret.l(new $.ig.ColumnSupportingCalculation(1,$.ig.Series.prototype.eMA,new $.ig.List$1(String,0)));$ret.m(new $.ig.ColumnSupportingCalculation(1,$.ig.Series.prototype.sMA,new $.ig.List$1(String,0)));$ret.n(new $.ig.ColumnSupportingCalculation(1,$.ig.Series.prototype.sTDEV,new $.ig.List$1(String,0)));$ret.o(new $.ig.ColumnSupportingCalculation(1,$.ig.Series.prototype.movingSum,new $.ig.List$1(String,0)));$ret.p(new $.ig.DataSourceSupportingCalculation(1,function(b){return $.ig.Series.prototype.eMA(b.volumeColumn(),b.shortPeriod())},function(){var $ret=new $.ig.List$1(String,0);$ret.add($.ig.FinancialSeries.prototype.iv);return $ret}()));$ret.q(new $.ig.DataSourceSupportingCalculation(1,function(c){return $.ig.Series.prototype.eMA(c.volumeColumn(),c.longPeriod())},function(){var $ret=new $.ig.List$1(String,0);$ret.add($.ig.FinancialSeries.prototype.iv);return $ret}()));$ret.r(new $.ig.DataSourceSupportingCalculation(1,function(d){return $.ig.Series.prototype.eMA(d.typicalColumn(),d.shortPeriod())},a.typicalColumn().basedOn()));$ret.s(new $.ig.DataSourceSupportingCalculation(1,function(e){return $.ig.Series.prototype.eMA(e.typicalColumn(),e.longPeriod())},a.typicalColumn().basedOn()));$ret.t($.ig.Series.prototype.toEnumerableRange);$ret.u($.ig.Series.prototype.toEnumerable);$ret.v($self.ks.runOn($self));return $ret}()},categoryAxis:function(){return this.xAxis()},fe:function(a,b){$.ig.Series.prototype.fe.call(this,a,b);if(!this.d9()){this.view().b9(b);return}var c=$.ig.util.cast($.ig.FinancialSeriesView.prototype.$type,this.d7());this.view().b9(b);c.cr().q(this.resolution());if(this.fi(this.d7())){return}var d=new $.ig.CategoryFrame(3);this.ki(d,c);this.kj(d,c);this.d9(false)},$type:new $.ig.Type("FinancialSeries",$.ig.Series.prototype.$type,[$.ig.IHasCategoryAxis.prototype.$type])},true);$.ig.util.defType("FinancialIndicator","FinancialSeries",{et:function(){return new $.ig.FinancialIndicatorView(this)},eq:function(a){$.ig.FinancialSeries.prototype.eq.call(this,a);this.lv(a)},_lv:null,lv:function(a){if(arguments.length===1){this._lv=a;return a}else{return this._lv}},init:function(){$.ig.FinancialSeries.prototype.init.call(this);this.i4=new $.ig.CategoryFrame(3);this.i5=new $.ig.CategoryFrame(3);this.i6=new $.ig.CategoryFrame(3);this.lw(new $.ig.List$1(Number,0));this.lx(new $.ig.AxisRange(-100,100))},l0:function(a){if(this.yAxis()!=null&&!this.yAxis().updateRange()){this.renderSeries(true)}},fz:function(a,b,c,d){var $self=this;if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis()).notifyDataChanged()}this.lv().c9().ad(a,b,c,d);if(d!=null&&this.i2.containsKey(d)){(function(){var $ret=$self.i2.tryGetValue(d,d);d=$ret.value;return $ret.ret})()}if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){a=$.ig.FastItemsSourceEventAction.prototype.reset;b=0;c=this.eb().g()}switch(a){case $.ig.FastItemsSourceEventAction.prototype.change:if(this.l9(b,c,d)){this.ma(b,c,d);this.l0(true)}break;case $.ig.FastItemsSourceEventAction.prototype.replace:if(this.l9(b,this.eb().g()-b,d)){this.ma(b,this.eb().g()-b,d);this.l0(true)}break;case $.ig.FastItemsSourceEventAction.prototype.insert:if(this.l9(b,this.eb().g()-b,d)){var e=new Array(c);for(var f=0;f<c;f++){e[f]=0}this.lw().p(b,e);this.ma(b,this.eb().g()-b,d);this.l0(true)}break;case $.ig.FastItemsSourceEventAction.prototype.remove:if(this.l9(b,this.eb().g()-b,d)){this.lw().q(b,c);this.ma(b,this.eb().g()-b,d);this.l0(true)}break;case $.ig.FastItemsSourceEventAction.prototype.reset:if(this.l9(b,this.eb().g()-b,d)){this.lw(new $.ig.List$1(Number,2,this.eb().g()));var g=new Array(c);for(var h=0;h<c;h++){g[h]=0}this.lw().p(0,g);this.ma(b,this.eb().g()-b,d);this.l0(true)}break}},displayType:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.displayTypeProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.displayTypeProperty)}},ignoreFirst:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.ignoreFirstProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.ignoreFirstProperty)}},trendLineType:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLineTypeProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLineTypeProperty)}},trendLineBrush:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLineBrushProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLineBrushProperty)}},actualTrendLineBrush:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.actualTrendLineBrushProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.actualTrendLineBrushProperty)}},trendLineThickness:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLineThicknessProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLineThicknessProperty)}},trendLineDashCap:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLineDashCapProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLineDashCapProperty)}},trendLineDashArray:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLineDashArrayProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLineDashArrayProperty)}},trendLinePeriod:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLinePeriodProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLinePeriodProperty)}},l2:function(){return-1},trendLineZIndex:function(a){if(arguments.length===1){this.c($.ig.FinancialIndicator.prototype.trendLineZIndexProperty,a);return a}else{return this.b($.ig.FinancialIndicator.prototype.trendLineZIndexProperty)}},_lw:null,lw:function(a){if(arguments.length===1){this._lw=a;return a}else{return this._lw}},_lx:null,lx:function(a){if(arguments.length===1){this._lx=a;return a}else{return this._lx}},l7:function(a,b){},l8:function(a,b){},ft:function(a,b,c,d){var $self=this;switch(b){case $.ig.FinancialIndicator.prototype.ij:this.lv().dm();break}$.ig.FinancialSeries.prototype.ft.call(this,a,b,c,d);if(this.lv().c9().ae(a,b,c,d,this.trendLineDashArray())){this.renderSeries(false);this.fs()}switch(b){case $.ig.FinancialIndicator.prototype.bl:if(this.eb()!=null){this.lw(new $.ig.List$1(Number,2,this.eb().g()));var e=new Array(this.eb().g());for(var f=0;f<this.eb().g();f++){e[f]=0}this.lw().p(0,e);this.ma(0,this.eb().g(),null);if(this.yAxis()!=null&&!this.yAxis().updateRange()){this.js().cr().q(this.resolution());this.renderSeries(false)}}break;case $.ig.FinancialIndicator.prototype.cf:this.f6();break;case $.ig.FinancialIndicator.prototype.lg:this.fg(true,this.view());this.renderSeries(false);this.fs();break;case $.ig.FinancialIndicator.prototype.im:case $.ig.FinancialIndicator.prototype.ip:case $.ig.FinancialIndicator.prototype.ir:case $.ig.FinancialIndicator.prototype.it:case $.ig.FinancialIndicator.prototype.iv:if(this.eb()!=null){if(this.lw().count()!=this.eb().g()){this.lw(new $.ig.List$1(Number,2,this.eb().g()));var g=new Array(this.eb().g());for(var h=0;h<this.eb().g();h++){g[h]=0}this.lw().p(0,g)}if(this.l9(0,this.eb().g()-1,b)){this.md()}}break;case $.ig.FinancialIndicator.prototype.ij:if(this.xAxis()!=null&&($.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null||$.ig.util.cast($.ig.ISortingAxis.prototype.$type,c)!==null)){this.md()}break;case $.ig.FinancialIndicator.prototype.ik:case $.ig.FinancialIndicator.prototype.lh:this.md();this.fs();break;case $.ig.FinancialIndicator.prototype.cd:this.fs();break}},getSeriesValue:function(a,b,c){if(this.lw()==null){return $.ig.FinancialSeries.prototype.getSeriesValue.call(this,a,b,c)}var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.lw(),a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getPreviousOrExactIndex:function(a,b){if(this.lw()==null){return $.ig.FinancialSeries.prototype.getPreviousOrExactIndex.call(this,a,b)}return this.e2(a,b,this.xAxis(),this.ke.runOn(this),this.lw())},getNextOrExactIndex:function(a,b){if(this.lw()==null){return $.ig.FinancialSeries.prototype.getNextOrExactIndex.call(this,a,b)}return this.e3(a,b,this.xAxis(),this.ke.runOn(this),this.lw())},d5:function(){return true},l9:function(a,b,c){if(c==null){return true}if(this.l8(a,b).contains(c)){return true}return false},ma:function(a,b,c){this.l7(a,b)},e9:function(a){if(this.eb()==null){return null}if(a!=null&&a==this.yAxis()){return this.lx()}return null},scrollIntoView:function(a){var b=this.eb()!=null?this.eb().item1(a):-1;var c=this.view().ae();var d=this.view().ad();var e=new $.ig.Rect(0,0,0,1,1);if(b>=0&&c!=null&&d!=null){if(this.xAxis()!=null){var f=new $.ig.ScalerParams(e,e,this.xAxis().isInverted());var g=this.xAxis().getScaledValue(b,f);if(g<c.left()+.1*c.width()){g=g+.4*c.width()}if(g>c.right()-.1*c.width()){g=g-.4*c.width()}c.x(g-.5*c.width())}if(this.yAxis()!=null&&this.lw()!=null&&b<this.lw().count()){var h=new $.ig.ScalerParams(e,e,this.yAxis().isInverted());var i=this.yAxis().getScaledValue(this.lw().__inner[b],h);if(i<c.top()+.1*c.height()){i=i+.4*c.height()}if(i>c.bottom()-.1*c.height()){i=i-.4*c.height()}c.y(i-.5*c.height())}this.syncLink().bn(this.seriesViewer(),c)}return b>=0},ff:function(a,b,c){var d=$.ig.FinancialSeries.prototype.ff.call(this,a,b,c);if(this.lw()==null||this.lw().count()==0){d=false}return d},ki:function(a,b){var $self=this;var c=b.ae();var d=b.ad();var e=this.xAxis();var f=this.yAxis();var g=new $.ig.ScalerParams(c,d,e.isInverted());var h=new $.ig.ScalerParams(c,d,f.isInverted());a.f.clear();a.h.clear();a.i.clear();var i=0;var j=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis());if(j!=null&&j.sortedIndices().count()!=this.eb().g()){return}i=this.getOffset(c,d);var k=this.l2();if(k==-1){k=this.trendLinePeriod()}var l=$.ig.util.cast($.ig.FinancialIndicatorView.prototype.$type,b);this.lv().c9().prepareLine(a.i,this.trendLineType(),this.lw(),k,function(m){return $self.xAxis().getScaledValue(m,g)},function(n){return $self.yAxis().getScaledValue(n,h)},function(){var $ret=new $.ig.TrendResolutionParams;$ret.j(b.cr().h());$ret.h(b.cr().f());$ret.i(b.cr().g());$ret.n(i);$ret.m($self.resolution());$ret.k(d);$ret.l(c);return $ret}());var o=this.mb(this.xAxis().getUnscaledValue(2,g)-this.xAxis().getUnscaledValue(1,g));for(var p=b.cr().f();p<=b.cr().g();++p){var q;if(j==null){q=b.cr().getBucket(p)}else{var r=j.sortedIndices().__inner[p];var s=j.getUnscaledValueAt(r);var t=this.mb(this.lw().__inner[p]);var u=t;var v=s;while(p<b.cr().g()){r=j.sortedIndices().__inner[p+1];v=j.getUnscaledValueAt(r);if(v-s>o){break}p++;var w=this.mb(this.lw().__inner[p]);t=Math.min(t,w);u=Math.max(u,w)}var x=NaN;if(!isNaN(s)){x=this.xAxis().getScaledValue(s,g)}q=function(){var $ret=new Array;$ret.add($self.mb(x));$ret.add(t);$ret.add(u);return $ret}()}if(!isNaN(q[0])){if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){q[0]=q[0]+i}else{q[0]=e.getScaledValue(q[0],g)+i}q[1]=f.getScaledValue(q[1],h);if(b.cr().h()>1||j!=null){q[2]=f.getScaledValue(q[2],h)}else{q[2]=q[1]}a.f.add(q)}}return},mb:function(a){return a},fg:function(a,b){$.ig.Series.prototype.fg.call(this,a,b);var c=b;c.dg(a)},kj:function(a,b){var $self=this;var c=$.ig.util.cast($.ig.FinancialIndicatorView.prototype.$type,b);c.dg(false);var e=function(d){return a.f.__inner[d][0]};var g=function(f){return a.f.__inner[f][1]};var i=function(h){return a.f.__inner[h][0]};var k=function(j){return a.f.__inner[j][2]};c.c9().t(a.i);var l=b.ad();var m=0;if(a.f.count()>0){switch(this.displayType()){case $.ig.IndicatorDisplayType.prototype.line:c.di(a.f.count(),e,g,i,k,true);break;case $.ig.IndicatorDisplayType.prototype.area:if(this.yAxis()!=null){m=this.mc(b)}else{m=.5*(l.top()+l.bottom())}c.dj(a.f.count(),e,g,i,k,true,m);break;case $.ig.IndicatorDisplayType.prototype.column:m=this.mc(b);c.dk(a.f.count(),e,g,i,k,true,m);break;default:throw new $.ig.NotImplementedException}}c.dh()},mc:function(a){var b=0;var c=a.ae();var d=a.ad();if(!c.isEmpty()&&!d.isEmpty()&&this.yAxis()!=null){var e=new $.ig.ScalerParams(c,d,this.yAxis().isInverted());b=this.yAxis().getScaledValue(this.yAxis().referenceValue(),e)}return b},f6:function(){$.ig.Series.prototype.f6.call(this);if(this.index()<0){return}this.lv().dl()},md:function(){this.lv().c9().ac();this.l7(0,this.lw().count());if(this.yAxis()!=null&&!this.yAxis().updateRange()){this.renderSeries(false)}},ho:function(a){$.ig.Series.prototype.ho.call(this,a);var b=new $.ig.PolyLineVisualData(1,"trendLine",this.lv().c9().n());b.tags().add("Trend");a.shapes().add(b)},$type:new $.ig.Type("FinancialIndicator",$.ig.FinancialSeries.prototype.$type)},true);$.ig.util.defType("StrategyBasedIndicator","FinancialIndicator",{init:function(){$.ig.FinancialIndicator.prototype.init.call(this);this.mv(this.mw());this.a3(this.mx())},_mv:null,mv:function(a){if(arguments.length===1){this._mv=a;return a}else{return this._mv}},_mw:null,mw:function(){return this._mw},_mx:null,mx:function(){return this._mx},m2:function(){return-Number.MAX_VALUE},m3:function(){return-Number.MAX_VALUE},m4:function(){return-Number.MAX_VALUE},m5:function(a,b,c){var $self=this;var f=$.ig.DependencyProperty.prototype.l(c,$.ig.Number.prototype.$type,b,new $.ig.PropertyMetadata(1,a,function(d,e){$.ig.util.cast($.ig.StrategyBasedIndicator.prototype.$type,d).e6(c,e.f(),e.e())}));$.ig.StrategyBasedIndicator.prototype.ms.add(c);return f},m6:function(a,b){return $.ig.StrategyBasedIndicator.prototype.m5(a,b,$.ig.StrategyBasedIndicator.prototype.mo)},m7:function(a,b){return $.ig.StrategyBasedIndicator.prototype.m5(a,b,$.ig.StrategyBasedIndicator.prototype.mp)},m8:function(a,b){return $.ig.StrategyBasedIndicator.prototype.m5(a,b,$.ig.StrategyBasedIndicator.prototype.mq)},l8:function(a,b){var c=this.kr(a,b);var d=this.kt(c);return this.mv().b(c,d)},l7:function(a,b){var c=this.kr(a,b);
if(b==0){return false}if(!this.kk(this.l8(a,b))){return false}var d=this.kt(c);if(this.lx()!=null){c.minimumValue(this.lx().c());c.maximumValue(this.lx().d())}var e=this.mv().a(c,d);for(var f=0;f<this.ignoreFirst()&&f<c.indicatorColumn().count();f++){c.indicatorColumn().item(f,NaN)}if(this.yAxis()!=null&&this.m9(c)){this.yAxis().updateRange()}return e},m9:function(a){if(!isNaN(a.minimumValue())&&!isNaN(a.maximumValue())&&a.specifiesRange()){var b=this.lx();this.lx(new $.ig.AxisRange(a.minimumValue(),a.maximumValue()));return this.na(b,this.lx())}var c=Number.MAX_VALUE;var d=-Number.MAX_VALUE;var f=a.indicatorColumn().getEnumerator();while(f.moveNext()){var e=f.current();if(!isNaN(e)){c=Math.min(c,e);d=Math.max(d,e)}}var g=this.lx();this.lx(new $.ig.AxisRange(c,d));return this.na(g,this.lx())},na:function(a,b){if(a==null||b==null){return true}if(a.c()!=b.c()){return true}if(a.d()!=b.d()){return true}return false},nb:function(a){if(a==-Number.MAX_VALUE){return 0}if(a>this.lw().count()&&this.lw().count()>0){a=this.lw().count()-1}if(a<1){return 1}return a},kr:function(a,b){var c=$.ig.FinancialSeries.prototype.kr.call(this,a,b);c.indicatorColumn(this.lw());c.period(this.nb(this.m2()));c.shortPeriod(this.nb(this.m3()));c.longPeriod(this.nb(this.m4()));c.multiplier(this.nc());return c},nc:function(){return 1},nd:function(a,b){var $self=this;var e=$.ig.DependencyProperty.prototype.l($.ig.StrategyBasedIndicator.prototype.mr,Number,b,new $.ig.PropertyMetadata(1,a,function(c,d){$.ig.util.cast($.ig.StrategyBasedIndicator.prototype.$type,c).e6($.ig.StrategyBasedIndicator.prototype.mr,d.f(),d.e())}));$.ig.StrategyBasedIndicator.prototype.ms.add($.ig.StrategyBasedIndicator.prototype.mr);return e},ft:function(a,b,c,d){$.ig.FinancialIndicator.prototype.ft.call(this,a,b,c,d);if($.ig.StrategyBasedIndicator.prototype.ms.contains(b)){if(this.yAxis()!=null&&!this.yAxis().updateRange()){this.js().cr().q(this.resolution());this.l7(0,this.lw().count());this.lv().c9().ac();this.renderSeries(false)}}},$type:new $.ig.Type("StrategyBasedIndicator",$.ig.FinancialIndicator.prototype.$type)},true);$.ig.util.defType("AbsoluteVolumeOscillatorIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.AbsoluteVolumeOscillatorIndicatorStrategy},mx:function(){return $.ig.AbsoluteVolumeOscillatorIndicator.prototype.$type},shortPeriod:function(a){if(arguments.length===1){this.c($.ig.AbsoluteVolumeOscillatorIndicator.prototype.shortPeriodProperty,a);return a}else{return this.b($.ig.AbsoluteVolumeOscillatorIndicator.prototype.shortPeriodProperty)}},m3:function(){return this.shortPeriod()},longPeriod:function(a){if(arguments.length===1){this.c($.ig.AbsoluteVolumeOscillatorIndicator.prototype.longPeriodProperty,a);return a}else{return this.b($.ig.AbsoluteVolumeOscillatorIndicator.prototype.longPeriodProperty)}},m4:function(){return this.longPeriod()},$type:new $.ig.Type("AbsoluteVolumeOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("IndicatorCalculationStrategy","Object",{init:function(){$.ig.Object.prototype.init.call(this)},a:function(a,b){},b:function(a,b){},$type:new $.ig.Type("IndicatorCalculationStrategy",$.ig.Object.prototype.$type)},true);$.ig.util.defType("AbsoluteVolumeOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(b.p().d());c.w(b.q().d());return c},a:function(a,b){var c=b.p().c()(a).getEnumerator();var d=b.q().c()(a).getEnumerator();var e=a.indicatorColumn();var f=0;while(c.moveNext()&&d.moveNext()){var g=c.current()-d.current();e.item(f,b.v()(g));++f}return true},$type:new $.ig.Type("AbsoluteVolumeOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("AccumulationDistributionIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.AccumulationDistributionIndicatorStrategy},mx:function(){return $.ig.AccumulationDistributionIndicator.prototype.$type},$type:new $.ig.Type("AccumulationDistributionIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("StreamingIndicatorCalculationStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},c:function(a,b){},$type:new $.ig.Type("StreamingIndicatorCalculationStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("AccumulationDistributionIndicatorStrategy","StreamingIndicatorCalculationStrategy",{init:function(){$.ig.StreamingIndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b){var c=0;var e=this.c(a,b).getEnumerator();while(e.moveNext()){var d=e.current();a.indicatorColumn().item(c,d);c++}return true},c:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,$d:0,$e:0,$f:0,$g:0,$h:0,$i:0,$j:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=0;this.$d=Number.POSITIVE_INFINITY;this.$e=Number.NEGATIVE_INFINITY;this.$f=a.indicatorColumn()!=null?a.indicatorColumn().count():0;this.$g=a.closeColumn()!=null?a.closeColumn().count():0;this.$h=a.highColumn()!=null?a.highColumn().count():0;this.$i=a.volumeColumn()!=null?a.volumeColumn().count():0;this.$j=Math.min(this.$f,Math.min(this.$g,Math.min(this.$h,this.$i)));this.$state=1;break;case 1:this.$k=0;this.$state=5;break;case 2:this.$l=a.closeColumn().item(this.$k);this.$m=a.lowColumn().item(this.$k);this.$n=a.highColumn().item(this.$k);this.$o=a.volumeColumn().item(this.$k);this.$p=(this.$l-this.$m-(this.$n-this.$l))/(this.$n-this.$m);this.$c+=b.v()(this.$p*this.$o);this.$d=Math.min(this.$d,this.$c);this.$e=Math.max(this.$e,this.$c);this.$current=this.$c;this.$state=3;return true;case 3:this.$state=4;break;case 4:++this.$k;this.$state=5;break;case 5:if(this.$k<this.$j){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},$type:new $.ig.Type("AccumulationDistributionIndicatorStrategy",$.ig.StreamingIndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("AverageDirectionalIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.AverageDirectionalIndexIndicatorStrategy},mx:function(){return $.ig.AverageDirectionalIndexIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.AverageDirectionalIndexIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.AverageDirectionalIndexIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("AverageDirectionalIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("AverageDirectionalIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.ip);c.w(a.trueRange().basedOn());c.w(b.l().d());return c},c:function(a,b,c){return b.item(a)-b.item(a-1)},d:function(a,b,c){return c.item(a-1)-c.item(a)},e:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,$d:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$current=0;this.$state=1;return true;case 1:this.$c=0;this.$d=0;this.$state=2;break;case 2:this.$e=1;this.$state=11;break;case 3:this.$c=this.$this.c(this.$e,a,b);this.$d=this.$this.d(this.$e,a,b);this.$state=4;break;case 4:if(this.$c>this.$d&&this.$c>0){this.$state=5}else{this.$state=7}break;case 5:this.$current=this.$c;this.$state=6;return true;case 6:this.$state=9;break;case 7:this.$current=0;this.$state=8;return true;case 8:this.$state=9;break;case 9:this.$state=10;break;case 10:this.$e++;this.$state=11;break;case 11:if(this.$e<a.count()){this.$state=3}else{this.$state=12}break;case 12:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},f:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,$d:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$current=0;this.$state=1;return true;case 1:this.$c=0;this.$d=0;this.$state=2;break;case 2:this.$e=1;this.$state=11;break;case 3:this.$c=this.$this.c(this.$e,a,b);this.$d=this.$this.d(this.$e,a,b);this.$state=4;break;case 4:if(this.$d>this.$c&&this.$d>0){this.$state=5}else{this.$state=7}break;case 5:this.$current=this.$d;this.$state=6;return true;case 6:this.$state=9;break;case 7:this.$current=0;this.$state=8;return true;case 8:this.$state=9;break;case 9:this.$state=10;break;case 10:this.$e++;this.$state=11;break;case 11:if(this.$e<a.count()){this.$state=3}else{this.$state=12}break;case 12:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},g:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:null,$d:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=b.l().c()(this.$this.e(a.highColumn(),a.lowColumn()),a.period()).getEnumerator();this.$d=b.l().c()(a.trueRange(),a.period()).getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:this.$current=b.v()(this.$c.current()/this.$d.current());this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()&&this.$d.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},h:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:null,$d:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=b.l().c()(this.$this.f(a.highColumn(),a.lowColumn()),a.period()).getEnumerator();this.$d=b.l().c()(a.trueRange(),a.period()).getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:this.$current=b.v()(this.$c.current()/this.$d.current());this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()&&this.$d.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},i:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:null,$d:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=this.$this.g(a,b).getEnumerator();this.$d=this.$this.h(a,b).getEnumerator();this.$c.moveNext();this.$d.moveNext();this.$state=1;break;case 1:this.$state=4;break;case 2:this.$current=Math.abs(b.v()((this.$c.current()-this.$d.current())/(this.$c.current()+this.$d.current())));this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()&&this.$d.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},j:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=b.l().c()(this.$this.i(a,b),a.period()).getEnumerator();this.$current=0;this.$state=1;return true;case 1:this.$state=2;break;case 2:this.$state=5;break;case 3:this.$current=this.$c.current()*100;this.$state=4;return true;case 4:this.$state=5;break;case 5:if(this.$c.moveNext()){this.$state=3}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},a:function(a,b){var c=this.j(a,b).getEnumerator();var d=a.indicatorColumn();for(var e=0;e<d.count();e++){if(c.moveNext()){d.item(e,c.current())}}return true},$type:new $.ig.Type("AverageDirectionalIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("AverageTrueRangeIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.AverageTrueRangeIndicatorStrategy},mx:function(){return $.ig.AverageTrueRangeIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.AverageTrueRangeIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.AverageTrueRangeIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("AverageTrueRangeIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("AverageTrueRangeIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.trueRange().basedOn());c.w(b.l().d());return c},a:function(a,b){var c=0;var e=b.l().c()(a.trueRange(),a.period()).getEnumerator();while(e.moveNext()){var d=e.current();a.indicatorColumn().item(c,d);++c}return true},$type:new $.ig.Type("AverageTrueRangeIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("FinancialOverlay","FinancialSeries",{init:function(){$.ig.FinancialSeries.prototype.init.call(this);this.lj(false)},fz:function(a,b,c,d){if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis()).notifyDataChanged()}this.js().cr().q(this.resolution());this.lm();if(this.yAxis()!=null){this.yAxis().updateRange()}this.renderSeries(true)},ignoreFirst:function(a){if(arguments.length===1){this.c($.ig.FinancialOverlay.prototype.ignoreFirstProperty,a);return a}else{return this.b($.ig.FinancialOverlay.prototype.ignoreFirstProperty)}},d5:function(){return true},ft:function(a,b,c,d){switch(b){case $.ig.FinancialOverlay.prototype.bl:this.lj(false);break;case $.ig.FinancialOverlay.prototype.lg:this.lj(false);this.renderSeries(false);this.fs();break;case $.ig.FinancialOverlay.prototype.ij:this.lj(false);break}$.ig.FinancialSeries.prototype.ft.call(this,a,b,c,d)},onApplyTemplate:function(){$.ig.Control.prototype.a8.call(this);this.renderSeries(false)},scrollIntoView:function(a){var b=this.eb()!=null?this.eb().item1(a):-1;var c=this.view().ae();var d=this.view().ad();var e=new $.ig.Rect(0,0,0,1,1);var f=new $.ig.ScalerParams(e,e,this.xAxis().isInverted());var g=new $.ig.ScalerParams(e,e,this.yAxis().isInverted());if(b>=0&&c!=null&&d!=null){if(this.xAxis()!=null){var h=this.xAxis().getScaledValue(b,f);if(h<c.left()+.1*c.width()){h=h+.4*c.width()}if(h>c.right()-.1*c.width()){h=h-.4*c.width()}c.x(h-.5*c.width())}if(this.yAxis()!=null&&this.jv()!=null&&this.ju()!=null&&b<this.jv().count()&&b<this.ju().count()){var i=this.yAxis().getScaledValue(this.jv().item(b),g);var j=this.yAxis().getScaledValue(this.ju().item(b),g);if(!isNaN(i)&&!isNaN(j)){var k=Math.abs(i-j);if(c.height()<k){c.height(k);c.y(Math.min(i,j))}else{if(i<c.top()+.1*c.height()){i=i+.4*c.height()}if(i>c.bottom()-.1*c.height()){i=i-.4*c.height()}c.y(i-.5*c.height())}}}this.syncLink().bn(this.seriesViewer(),c)}return b>=0},e9:function(a){if(a!=null&&a==this.yAxis()&&this.jv()!=null&&this.ju()!=null){return new $.ig.AxisRange(this.jv().minimum(),this.ju().maximum())}return null},_lj:null,lj:function(a){if(arguments.length===1){this._lj=a;return a}else{return this._lj}},lm:function(){},$type:new $.ig.Type("FinancialOverlay",$.ig.FinancialSeries.prototype.$type)},true);$.ig.util.defType("BollingerBandsOverlay","FinancialOverlay",{init:function(){this.ls=new $.ig.List$1(Number,0);this.lt=new $.ig.List$1(Number,0);$.ig.FinancialOverlay.prototype.init.call(this);this.a3($.ig.BollingerBandsOverlay.prototype.$type);this.i4=new $.ig.CategoryFrame(4);this.i5=new $.ig.CategoryFrame(4);this.i6=new $.ig.CategoryFrame(4)},period:function(a){if(arguments.length===1){this.c($.ig.BollingerBandsOverlay.prototype.periodProperty,a);return a}else{return this.b($.ig.BollingerBandsOverlay.prototype.periodProperty)}},multiplier:function(a){if(arguments.length===1){this.c($.ig.BollingerBandsOverlay.prototype.multiplierProperty,a);return a}else{return this.b($.ig.BollingerBandsOverlay.prototype.multiplierProperty)}},ft:function(a,b,c,d){if(this.kq().contains(b)){this.lj(false)}$.ig.FinancialOverlay.prototype.ft.call(this,a,b,c,d);switch(b){case $.ig.BollingerBandsOverlay.prototype.lo:this.lj(false);this.renderSeries(false);break;case $.ig.BollingerBandsOverlay.prototype.lp:this.renderSeries(false);break}},lq:null,lr:null,lm:function(){this.ls.clear();this.lt.clear();var a=$.ig.Series.prototype.sMA(new $.ig.SafeEnumerable(this.jz()),this.period()).getEnumerator();var b=$.ig.Series.prototype.sTDEV(new $.ig.SafeEnumerable(this.jz()),this.period()).getEnumerator();this.lr=Number.MAX_VALUE;this.lq=-Number.MAX_VALUE;var c=true;var d=true;var e=this.multiplier();while(c||d){if(a.moveNext()){this.ls.add(a.current())}else{c=false}if(b.moveNext()){this.lt.add(b.current())}else{d=false}if(c&&d){this.lr=Math.min(this.lr,a.current()-b.current()*e);this.lq=Math.max(this.lq,a.current()+b.current()*e)}}return true},e9:function(a){if(this.ls==null||this.lt==null||a==null||this.eb()==null||a!=this.yAxis()){return null}var b=new $.ig.AxisRange(this.lr,this.lq);return b},ls:null,lt:null,ly:function(a){return a},ki:function(a,b){var $self=this;var c=b.ae();var d=b.ad();var e=this.xAxis();var f=this.yAxis();var g=new $.ig.ScalerParams(c,d,e.isInverted());var h=new $.ig.ScalerParams(c,d,f.isInverted());a.f.clear();a.h.clear();a.i.clear();var i=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis());if(i!=null&&i.sortedIndices().count()!=this.eb().g()){return}var j=0;j=this.getOffset(c,d);if(!this.lj()){this.lj(this.lm());if(this.yAxis()!=null){this.yAxis().updateRange()}}var k=this.ly(this.xAxis().getUnscaledValue(2,g)-this.xAxis().getUnscaledValue(1,g));for(var l=b.cr().f();l<=b.cr().g();++l){var m;if(i==null){m=b.cr().getBucket(l)}else{var n=i.sortedIndices().__inner[l];var o=i.getUnscaledValueAt(n);var p=this.ly(this.ls.__inner[l]);var q=this.ly(this.lt.__inner[l]);var r=p;var s=q;var t=o;var u=1;while(l<b.cr().g()){n=i.sortedIndices().__inner[l+1];t=i.getUnscaledValueAt(n);if(t-o>k){break}l++;r+=this.ly(this.ls.__inner[l]);s+=this.ly(this.lt.__inner[l]);u++}r/=u;s/=u;var v=this.ly(r-s*this.multiplier());var w=this.ly(r);var x=this.ly(r+s*this.multiplier());var y=NaN;if(!isNaN(o)){y=this.xAxis().getScaledValue(o,g)}m=function(){var $ret=new Array;$ret.add($self.ly(y));$ret.add(v);$ret.add(w);$ret.add(x);return $ret}()}var z=Math.max(1,k);if(!isNaN(m[0])&&l*z>=this.ignoreFirst()){if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){m[0]=m[0]+j}else{m[0]=e.getScaledValue(m[0],g)+j}m[1]=f.getScaledValue(m[1],h);m[2]=f.getScaledValue(m[2],h);m[3]=f.getScaledValue(m[3],h);a.f.add(m)}}},fg:function(a,b){$.ig.Series.prototype.fg.call(this,a,b);var c=b;if(c!=null){c.c6()}},getSeriesValue:function(a,b,c){if(this.ls==null){return $.ig.FinancialSeries.prototype.getSeriesValue.call(this,a,b,c)}var d=this.getOffset(this.view().ae(),this.view().ad());var e=new $.ig.ScalerParams(this.view().ae(),this.view().ad(),this.xAxis().isInverted());e.c=this.seriesViewer().viewportRect();return this.e0(this.ls,a,this.xAxis(),e,d,this.ke.runOn(this),b,c)},getPreviousOrExactIndex:function(a,b){if(this.ls==null){return $.ig.FinancialSeries.prototype.getPreviousOrExactIndex.call(this,a,b)}return this.e2(a,b,this.xAxis(),this.ke.runOn(this),this.ls)},getNextOrExactIndex:function(a,b){if(this.ls==null){return $.ig.FinancialSeries.prototype.getNextOrExactIndex.call(this,a,b)}return this.e3(a,b,this.xAxis(),this.ke.runOn(this),this.ls)},ff:function(a,b,c){var d=$.ig.FinancialSeries.prototype.ff.call(this,a,b,c);if(!this.kk(this.kq())){d=false}return d},kj:function(a,b){var $self=this;var c=$.ig.util.cast($.ig.BollingerBandsOverlayView.prototype.$type,b);c.c6();var d=a.f.count();var f=function(e){return a.f.__inner[e][0]};var h=function(g){return a.f.__inner[d-1-g][0]};var j=function(i){return a.f.__inner[i][1]};var l=function(k){return a.f.__inner[k][2]};var n=function(m){return a.f.__inner[d-1-m][3]};c.c5(d,f,h,j,l,n)},et:function(){return new $.ig.BollingerBandsOverlayView(this)},eq:function(a){$.ig.FinancialSeries.prototype.eq.call(this,a);this.lx($.ig.util.cast($.ig.BollingerBandsOverlayView.prototype.$type,a))},_lx:null,lx:function(a){if(arguments.length===1){this._lx=a;return a}else{return this._lx}},$type:new $.ig.Type("BollingerBandsOverlay",$.ig.FinancialOverlay.prototype.$type)},true);$.ig.util.defType("FinancialBucketCalculator","Object",{_e:null,e:function(a){if(arguments.length===1){this._e=a;return a}else{return this._e}},init:function(a){$.ig.Object.prototype.init.call(this);if(a==null){throw new $.ig.ArgumentNullException("view")}this.e(a);this.f(-1);this.g(this.g());this.h(0)},getBucket:function(a){return null},getErrorBucket:function(a,b){return NaN},_f:null,f:function(a){if(arguments.length===1){this._f=a;return a}else{return this._f}},_g:null,g:function(a){if(arguments.length===1){this._g=a;return a}else{return this._g}},_h:null,h:function(a){if(arguments.length===1){this._h=a;return a}else{return this._h}},getBucketInfo:function(a,b,c,d){a=this.f();b=this.g();c=this.h();d=this.e().cq().resolution();return{firstBucket:a,lastBucket:b,bucketSize:c,resolution:d}},q:function(a){var b=this.e().ae();var c=this.e().ad();if(b.isEmpty()||c.isEmpty()||this.e().cq().xAxis()==null){this.h(0);return}var d=this.e().cq().xAxis()!=null?this.e().cq().xAxis().isInverted():false;var e=new $.ig.ScalerParams(b,c,d);var f=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.e().cq().xAxis());if(f==null||f.sortedIndices()==null){var g=Math.floor(this.e().cq().xAxis().getUnscaledValue(c.left(),e));var h=Math.ceil(this.e().cq().xAxis().getUnscaledValue(c.right(),e));if(this.e().cq().xAxis().isInverted()){h=Math.ceil(this.e().cq().xAxis().getUnscaledValue(c.left(),e));g=Math.floor(this.e().cq().xAxis().getUnscaledValue(c.right(),e))}var i=Math.floor((h-g+1)*a/c.width());this.h(Math.max(1,i));this.f(Math.floor(g/this.h()));this.g(Math.ceil(h/this.h()))}else{this.f(f.getFirstVisibleIndex(b,c));this.g(f.getLastVisibleIndex(b,c));this.h(1)}},cacheValues:function(){},unCacheValues:function(){},$type:new $.ig.Type("FinancialBucketCalculator",$.ig.Object.prototype.$type,[$.ig.IBucketizer.prototype.$type])},true);$.ig.util.defType("BollingerBandsBucketCalculator","FinancialBucketCalculator",{init:function(a){$.ig.FinancialBucketCalculator.prototype.init.call(this,a);this.s(a)},_s:null,s:function(a){if(arguments.length===1){this._s=a;return a}else{return this._s}},getBucket:function(a){var $self=this;var b=a*this.h();var c=Math.min(b+this.h()-1,this.e().cq().eb().g()-1);if(b<=c){var d=this.s().c2().multiplier();var e=0;var f=0;var g=0;for(var h=b;h<=c;++h){if(!isNaN(this.s().c2().ls.__inner[h])&&!isNaN(this.s().c2().lt.__inner[h])){e+=this.s().c2().ls.__inner[h];f+=this.s().c2().lt.__inner[h];++g}}if(g>0){e=e/g;f=f/g;return function(){var $ret=new Array;$ret.add(.5*(b+c));$ret.add(e-f*d);$ret.add(e);$ret.add(e+f*d);return $ret}()}}return function(){var $ret=new Array;$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);return $ret}()},$type:new $.ig.Type("BollingerBandsBucketCalculator",$.ig.FinancialBucketCalculator.prototype.$type)},true);$.ig.util.defType("FinancialSeriesView","SeriesView",{_cq:null,cq:function(a){if(arguments.length===1){this._cq=a;return a}else{return this._cq}},_cr:null,cr:function(a){if(arguments.length===1){this._cr=a;return a}else{return this._cr}},init:function(a){$.ig.SeriesView.prototype.init.call(this,a);this.cq(a);this.cr(this.cw())},cw:function(){},ak:function(){var $self=this;$.ig.SeriesView.prototype.ak.call(this);if(!this.af()){this.w().legendItemBadgeTemplate(function(){var $ret=new $.ig.DataTemplate;$ret.render($.ig.LegendTemplates.prototype.s);$ret.measure($.ig.LegendTemplates.prototype.m);return $ret}())}},$type:new $.ig.Type("FinancialSeriesView",$.ig.SeriesView.prototype.$type)},true);$.ig.util.defType("BollingerBandsOverlayView","FinancialSeriesView",{_c2:null,c2:function(a){if(arguments.length===1){this._c2=a;return a}else{return this._c2}},init:function(a){this.cx=new $.ig.Polygon;this.cy=new $.ig.Polyline;this.cz=new $.ig.Polyline;this.c0=new $.ig.Polyline;$.ig.FinancialSeriesView.prototype.init.call(this,a);this.c2(a)},cw:function(){return new $.ig.BollingerBandsBucketCalculator(this)},c5:function(a,b,c,d,e,f){var h=$.ig.Flattener.prototype.c(a,b,d,this.w().resolution()).getEnumerator();while(h.moveNext()){var g=h.current();this.cx.bl().add({__x:b(g),__y:d(g),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.cy.bl().add({__x:b(g),__y:d(g),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}var j=$.ig.Flattener.prototype.c(a,b,e,this.w().resolution()).getEnumerator();while(j.moveNext()){var i=j.current();this.cz.bl().add({__x:b(i),__y:e(i),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}var l=$.ig.Flattener.prototype.c(a,c,f,this.w().resolution()).getEnumerator();while(l.moveNext()){var k=l.current();this.cx.bl().add({__x:c(k),__y:f(k),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.c0.bl().add({__x:c(k),__y:f(k),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}this.ar()},c6:function(){this.cx.bl().clear();this.cy.bl().clear();this.cz.bl().clear();this.c0.bl().clear();this.ar()},cx:null,cy:null,cz:null,c0:null,a0:function(){$.ig.SeriesView.prototype.a0.call(this);this.cy.__stroke=this.w().actualOutline();this.cy.a5(this.w().thickness());this.cz.__stroke=this.w().actualOutline();this.cz.a5(this.w().thickness());this.cz.a6(this.w().dashArray());this.cz.a7(this.w().dashCap());this.c0.__stroke=this.w().actualOutline();this.c0.a5(this.w().thickness());this.cx.__fill=this.w().actualBrush();this.cx.__opacity=.75},a1:function(){$.ig.SeriesView.prototype.a1.call(this);var a=this.a3();this.cy.__stroke=a;this.cy.a5(this.w().thickness()+$.ig.BollingerBandsOverlayView.prototype.b);this.cz.__stroke=a;this.cz.a5(this.w().thickness()+$.ig.BollingerBandsOverlayView.prototype.b);this.cz.a6(this.w().dashArray());this.cz.a7(this.w().dashCap());this.c0.__stroke=a;this.c0.a5(this.w().thickness()+$.ig.BollingerBandsOverlayView.prototype.b);this.cx.__fill=a;this.cx.__opacity=1},a4:function(a,b){$.ig.SeriesView.prototype.a4.call(this,a,b);if(a.b()){a.k(this.cx);a.l(this.cy);a.l(this.cz);a.l(this.c0)}},ca:function(a){$.ig.SeriesView.prototype.ca.call(this,a);var b=new $.ig.PolygonVisualData(1,"FillShape",this.cx);var c=new $.ig.PolyLineVisualData(1,"BottomLine",this.cy);var d=new $.ig.PolyLineVisualData(1,"CentralLine",this.cz);var e=new $.ig.PolyLineVisualData(1,"TopLine",this.c0);a.shapes().add(b);a.shapes().add(c);a.shapes().add(d);a.shapes().add(e)},$type:new $.ig.Type("BollingerBandsOverlayView",$.ig.FinancialSeriesView.prototype.$type)},true);$.ig.util.defType("BollingerBandWidthIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.BollingerBandWidthIndicatorStrategy},mx:function(){return $.ig.BollingerBandWidthIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.BollingerBandWidthIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.BollingerBandWidthIndicator.prototype.periodProperty)}},m2:function(){return this.period()},multiplier:function(a){if(arguments.length===1){this.c($.ig.BollingerBandWidthIndicator.prototype.multiplierProperty,a);return a}else{return this.b($.ig.BollingerBandWidthIndicator.prototype.multiplierProperty)}},nc:function(){return this.multiplier()},$type:new $.ig.Type("BollingerBandWidthIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("BollingerBandWidthIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.typicalColumn().basedOn());c.w(b.m().d());c.w(b.n().d());return c},a:function(a,b){var c=b.m().c()(a.typicalColumn(),a.period()).getEnumerator();var d=b.n().c()(a.typicalColumn(),a.period()).getEnumerator();var e=a.multiplier();var f=a.indicatorColumn();var g=0;while(c.moveNext()&&d.moveNext()){var h=d.current()*e;var i=c.current()+h;var j=c.current()-h;var k=c.current();var l=b.v()((i-j)/k);f.item(g,l);g++}return true},$type:new $.ig.Type("BollingerBandWidthIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("ChaikinOscillatorIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.ChaikinOscillatorIndicatorStrategy},mx:function(){return $.ig.ChaikinOscillatorIndicator.prototype.$type},shortPeriod:function(a){if(arguments.length===1){this.c($.ig.ChaikinOscillatorIndicator.prototype.shortPeriodProperty,a);return a}else{return this.b($.ig.ChaikinOscillatorIndicator.prototype.shortPeriodProperty)}},m3:function(){return this.shortPeriod()},longPeriod:function(a){if(arguments.length===1){this.c($.ig.ChaikinOscillatorIndicator.prototype.longPeriodProperty,a);return a}else{return this.b($.ig.ChaikinOscillatorIndicator.prototype.longPeriodProperty)}},m4:function(){return this.longPeriod()},$type:new $.ig.Type("ChaikinOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("ChaikinOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{_d:null,d:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this);this.d(new $.ig.AccumulationDistributionIndicatorStrategy)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(this.d().b(a,b));c.w(b.l().d());return c},a:function(a,b){var c=a.indicatorColumn();var d=this.d().c(a,b);var e=b.l().c()(d,a.shortPeriod()).getEnumerator();var f=b.l().c()(d,a.longPeriod()).getEnumerator();var g=0;while(e.moveNext()&&f.moveNext()){var h=e.current()-f.current();c.item(g,h);g++}return true},$type:new $.ig.Type("ChaikinOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);
$.ig.util.defType("ChaikinVolatilityIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.ChaikinVolatilityIndicatorStrategy},mx:function(){return $.ig.ChaikinVolatilityIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.ChaikinVolatilityIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.ChaikinVolatilityIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("ChaikinVolatilityIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("ChaikinVolatilityIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.w(b.l().d());return c},a:function(a,b){var $self=this;var d=b.u()(function(c){return a.highColumn().item(c)-a.lowColumn().item(c)},a.count());var e=b.l().c()(d,a.period()).getEnumerator();var f=a.indicatorColumn();var g=new Array(a.period());for(var h=0;h<a.period();h++){g[h]=0}var i=0;while(e.moveNext()){var j=i%a.period();var k=b.v()((e.current()-g[j])/(g[j]*100));if(i<a.period()){f.item(i,0)}else{f.item(i,k)}g[j]=e.current();i++}return true},$type:new $.ig.Type("ChaikinVolatilityIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("CommodityChannelIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.CommodityChannelIndexIndicatorStrategy},mx:function(){return $.ig.CommodityChannelIndexIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.CommodityChannelIndexIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.CommodityChannelIndexIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("CommodityChannelIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("CommodityChannelIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.typicalColumn().basedOn());c.w(b.m().d());return c},a:function(a,b){var c=a.period();var d=a.typicalColumn();var e=a.indicatorColumn();var f=b.m().c()(d,c).getEnumerator();var g=d.getEnumerator();var h=new Array(c);for(var i=0;i<c;i++){h[i]=0}var j=0;while(g.moveNext()&&f.moveNext()){h[j%c]=g.current();var k=0;for(var l=0;l<c;++l){k+=Math.abs(f.current()-h[l])}k/=c;e.item(j,b.v()((g.current()-f.current())/(.015*k)));++j}return true},$type:new $.ig.Type("CommodityChannelIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("CustomIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.CustomIndicatorStrategy},mx:function(){return $.ig.CustomIndicator.prototype.$type},l8:function(a,b){var c=this.kr(a,b);var d=this.kt(c);var e=new $.ig.List$1(String,0);if(this.ng!=null){var f=new $.ig.FinancialEventArgs(c.calculateFrom(),c.calculateCount(),c,d);this.ng(this,f);if(f.basedOn()!=null){var h=f.basedOn().getEnumerator();while(h.moveNext()){var g=h.current();e.add(g)}}}return e},nf:null,indicator:function(a){if(arguments.length===1){this.nf=a;this.md();return a}else{return this.nf}},ng:null,basedOnColumns:function(a){if(arguments.length===1){this.ng=a;return a}else{return this.ng}},l7:function(a,b){$.ig.StrategyBasedIndicator.prototype.l7.call(this,a,b);if(this.nf!=null){var c=this.kr(a,b);if(b==0){return false}if(!this.kk(this.l8(a,b))){return false}this.nf(this,new $.ig.FinancialEventArgs(a,b,c,this.kt(c)));if(this.m9(c)&&this.yAxis()!=null){this.yAxis().updateRange()}return true}return false},$type:new $.ig.Type("CustomIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("CustomIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},a:function(a,b){return true},b:function(a,b){return new $.ig.List$1(String,0)},$type:new $.ig.Type("CustomIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("PriceChannelOverlayView","FinancialSeriesView",{cx:null,cy:null,cz:null,_c1:null,c1:function(a){if(arguments.length===1){this._c1=a;return a}else{return this._c1}},init:function(a){this.cx=new $.ig.Polygon;this.cy=new $.ig.Polyline;this.cz=new $.ig.Polyline;$.ig.FinancialSeriesView.prototype.init.call(this,a);this.c1(a)},cw:function(){return new $.ig.PriceChannelBucketCalculator(this)},c4:function(){this.cx.bl().clear();this.cy.bl().clear();this.cz.bl().clear();this.ar()},c5:function(a,b,c,d,e){var g=$.ig.Flattener.prototype.c(a,b,d,this.w().resolution()).getEnumerator();while(g.moveNext()){var f=g.current();this.cx.bl().add({__x:b(f),__y:d(f),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.cy.bl().add({__x:b(f),__y:d(f),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}var i=$.ig.Flattener.prototype.c(a,c,e,this.w().resolution()).getEnumerator();while(i.moveNext()){var h=i.current();this.cx.bl().add({__x:c(h),__y:e(h),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});this.cz.bl().add({__x:c(h),__y:e(h),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName})}this.ar()},a0:function(){$.ig.SeriesView.prototype.a0.call(this);this.cy.__stroke=this.w().actualOutline();this.cy.a5(this.w().thickness());this.cy.a6(this.w().dashArray());this.cy.a7(this.w().dashCap());this.cz.__stroke=this.w().actualOutline();this.cz.a5(this.w().thickness());this.cz.a6(this.w().dashArray());this.cz.a7(this.w().dashCap());this.cx.__fill=this.w().actualBrush();this.cx.__opacity=.75},a1:function(){$.ig.SeriesView.prototype.a1.call(this);var a=this.a3();this.cy.__stroke=a;this.cy.a5(this.w().thickness()+$.ig.PriceChannelOverlayView.prototype.b);this.cy.a6(this.w().dashArray());this.cy.a7(this.w().dashCap());this.cz.__stroke=a;this.cz.a5(this.w().thickness()+$.ig.PriceChannelOverlayView.prototype.b);this.cz.a6(this.w().dashArray());this.cz.a7(this.w().dashCap());this.cx.__fill=a;this.cx.__opacity=1},a4:function(a,b){$.ig.SeriesView.prototype.a4.call(this,a,b);if(a.b()){a.k(this.cx);a.l(this.cy);a.l(this.cz)}},ca:function(a){$.ig.SeriesView.prototype.ca.call(this,a);var b=new $.ig.PolygonVisualData(1,"fill",this.cx);var c=new $.ig.PolyLineVisualData(1,"bottom",this.cy);var d=new $.ig.PolyLineVisualData(1,"top",this.cz);a.shapes().add(b);a.shapes().add(c);a.shapes().add(d)},$type:new $.ig.Type("PriceChannelOverlayView",$.ig.FinancialSeriesView.prototype.$type)},true);$.ig.util.defType("DetrendedPriceOscillatorIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.DetrendedPriceOscillatorIndicatorStrategy},mx:function(){return $.ig.DetrendedPriceOscillatorIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.DetrendedPriceOscillatorIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.DetrendedPriceOscillatorIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("DetrendedPriceOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("DetrendedPriceOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.w(b.m().d());return c},a:function(a,b){var c=a.period();var d=a.closeColumn();var e=a.indicatorColumn();var f=b.m().c()(d,c).getEnumerator();var g=$.ig.intDivide(c,2)+1;var h=new Array(g);for(var i=0;i<g;i++){h[i]=0}for(var j=1;j<Math.min(g+1,e.count());++j){var k=j%g;e.item(j,0);f.moveNext();h[k]=f.current()}for(var l=g+1;l<e.count();l++){var m=l%g;e.item(l,d.item(l)-h[m]);f.moveNext();h[m]=f.current()}return true},$type:new $.ig.Type("DetrendedPriceOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("EaseOfMovementIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.EaseOfMovementIndicatorStrategy},mx:function(){return $.ig.EaseOfMovementIndicator.prototype.$type},$type:new $.ig.Type("EaseOfMovementIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("EaseOfMovementIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b){var c=a.indicatorColumn();var d=a.highColumn();var e=a.lowColumn();var f=a.volumeColumn();var g=a.count();if(g>0){c.item(0,0)}for(var h=1;h<g;h++){var i=(d.item(h)+e.item(h))/2;var j=(d.item(h-1)+e.item(h-1))/2;var k=i-j;var l=1e4;var m=b.v()(f.item(h)/l/(d.item(h)-e.item(h)));c.item(h,b.v()(k/m))}return true},$type:new $.ig.Type("EaseOfMovementIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("FastStochasticOscillatorIndicator","StrategyBasedIndicator",{init:function(){var $self=this;$.ig.StrategyBasedIndicator.prototype.init.call(this);this.trendLineBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="Blue";return $ret}());this.trendLineType($.ig.TrendLineType.prototype.exponentialAverage);this.trendLinePeriod(3)},mw:function(){return new $.ig.FastStochasticOscillatorIndicatorStrategy},mx:function(){return $.ig.FastStochasticOscillatorIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.FastStochasticOscillatorIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.FastStochasticOscillatorIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("FastStochasticOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("FastStochasticOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{_d:null,d:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this);this.d(new $.ig.PercentKCalculationStrategy)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(this.d().b(a,b));return c},a:function(a,b){var c=this.d().c(a,b);var d=0;var f=c.getEnumerator();while(f.moveNext()){var e=f.current();a.indicatorColumn().item(d,e);d++}return true},$type:new $.ig.Type("FastStochasticOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("FinancialIndicatorBucketCalculator","FinancialBucketCalculator",{init:function(a){$.ig.FinancialBucketCalculator.prototype.init.call(this,a);this.s(a)},_s:null,s:function(a){if(arguments.length===1){this._s=a;return a}else{return this._s}},getBucket:function(a){var $self=this;var b=a*this.h();var c=Math.min(b+this.h()-1,this.s().c8().lw().count()-1);var d=NaN;var e=NaN;for(var f=b;f<=c;++f){var g=this.s().c8().lw().__inner[f];if(!isNaN(d)){if(!isNaN(g)){d=Math.min(d,g);e=Math.max(e,g)}}else{d=g;e=g}}if(!isNaN(d)){return function(){var $ret=new Array;$ret.add(.5*(b+c));$ret.add(d);$ret.add(e);return $ret}()}return function(){var $ret=new Array;$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);return $ret}()},$type:new $.ig.Type("FinancialIndicatorBucketCalculator",$.ig.FinancialBucketCalculator.prototype.$type)},true);$.ig.util.defType("FinancialIndicatorView","FinancialSeriesView",{_c8:null,c8:function(a){if(arguments.length===1){this._c8=a;return a}else{return this._c8}},init:function(a){var $self=this;this.cy=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.PathGeometry);return $ret}();this.cz=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.PathGeometry);return $ret}();this.c0=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.PathGeometry);return $ret}();this.c1=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.PathGeometry);return $ret}();this.c2=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.PathGeometry);return $ret}();this.c3=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.PathGeometry);return $ret}();this.c4=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.GeometryGroup);return $ret}();this.c5=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.GeometryGroup);return $ret}();$.ig.FinancialSeriesView.prototype.init.call(this,a);this.c8(a);this.cx=function(){var $ret=new $.ig.Pool$1($.ig.LineGeometry.prototype.$type);$ret.create($self.dc.runOn($self));$ret.destroy($self.dd.runOn($self));return $ret}();this.c9(new $.ig.CategoryTrendLineManager)},cw:function(){return new $.ig.FinancialIndicatorBucketCalculator(this)},ak:function(){var $self=this;$.ig.FinancialSeriesView.prototype.ak.call(this);if(!this.af()){this.cq().negativeBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="#415460";return $ret}())}},cx:null,dc:function(){return new $.ig.LineGeometry},dd:function(a){},cy:null,cz:null,c0:null,c1:null,c2:null,c3:null,c4:null,c5:null,_c9:null,c9:function(a){if(arguments.length===1){this._c9=a;return a}else{return this._c9}},dg:function(a){$.ig.util.cast($.ig.PathGeometry.prototype.$type,this.cy.bn()).reset();$.ig.util.cast($.ig.PathGeometry.prototype.$type,this.c0.bn()).reset();$.ig.util.cast($.ig.PathGeometry.prototype.$type,this.c2.bn()).reset();$.ig.util.cast($.ig.PathGeometry.prototype.$type,this.cz.bn()).reset();$.ig.util.cast($.ig.PathGeometry.prototype.$type,this.c1.bn()).reset();$.ig.util.cast($.ig.PathGeometry.prototype.$type,this.c3.bn()).reset();$.ig.util.cast($.ig.GeometryGroup.prototype.$type,this.c4.bn()).reset1();$.ig.util.cast($.ig.GeometryGroup.prototype.$type,this.c5.bn()).reset1();if(a){this.cx.g(0)}this.c9().ab();this.ar()},dh:function(){},di:function(a,b,c,d,e,f){$.ig.IndicatorRenderer.prototype.b(a,b,c,d,e,f,this.ae(),this.ad(),this.cy,this.c0,this.c2,this.cz,this.c1,this.c3,this.cr().h(),this.w().resolution());this.ar()},dj:function(a,b,c,d,e,f,g){$.ig.IndicatorRenderer.prototype.c(a,b,c,d,e,f,this.ae(),this.ad(),this.cy,this.c0,this.c2,this.cz,this.c1,this.c3,g,this.cr().h(),this.w().resolution());this.ar()},dk:function(a,b,c,d,e,f,g){$.ig.IndicatorRenderer.prototype.d(a,b,c,d,e,f,g,this.cx,this.c4,this.c5);this.ar()},dl:function(){this.c8().actualTrendLineBrush(null);if(this.c8().trendLineBrush()!=null){this.c8().actualTrendLineBrush(this.c8().trendLineBrush())}else{this.c8().actualTrendLineBrush(this.c8().actualBrush())}},a0:function(){$.ig.SeriesView.prototype.a0.call(this);this.cy.__stroke=this.w().actualBrush();this.c2.__stroke=this.w().actualBrush();this.cy.a5(this.w().thickness());this.c2.a5(this.w().thickness());this.cy.a6(this.w().dashArray());this.c2.a7(this.w().dashCap());this.cy.a6(this.w().dashArray());this.cy.a7(this.w().dashCap());this.c0.__fill=this.w().actualBrush();this.c0.__opacity=.8;this.cz.__stroke=this.cq().negativeBrush();this.c3.__stroke=this.cq().negativeBrush();this.cz.a5(this.w().thickness());this.c3.a5(this.w().thickness());this.cz.a6(this.cq().dashArray());this.c3.a6(this.cq().dashArray());this.cz.a7(this.cq().dashCap());this.c3.a7(this.cq().dashCap());this.c1.__fill=this.cq().negativeBrush();this.c1.__opacity=.8;this.c4.__stroke=this.w().actualBrush();this.c4.a5(this.w().thickness());this.c4.a6(this.w().dashArray());this.c4.a7(this.w().dashCap());this.c5.__stroke=this.cq().negativeBrush();this.c5.a5(this.w().thickness());this.c5.a6(this.w().dashArray());this.c5.a7(this.w().dashCap())},a1:function(){$.ig.SeriesView.prototype.a1.call(this);var a=this.a3();this.cy.__stroke=a;this.c2.__stroke=a;this.cy.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);this.c2.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);this.c0.__fill=a;this.c0.__opacity=.8;this.cz.__stroke=a;this.c3.__stroke=a;this.cz.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);this.c3.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);this.c1.__fill=a;this.c1.__opacity=.8;this.c4.__stroke=a;this.c4.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);this.c5.__stroke=a;this.c5.a5(this.w().thickness()+$.ig.SeriesView.prototype.b)},a4:function(a,b){$.ig.SeriesView.prototype.a4.call(this,a,b);if(a.b()){if(this.c8().displayType()==$.ig.IndicatorDisplayType.prototype.column){if(this.l&&!b){a.e($.ig.GradientDirection.prototype.bottomTop,null)}a.g(this.c4);a.g(this.c5)}else{if(this.l&&!b){a.e($.ig.GradientDirection.prototype.bottomTop,null)}a.g(this.c0);a.g(this.cy);a.g(this.c2);a.g(this.c1);a.g(this.cz);a.g(this.c3)}}},a5:function(a,b){if(a.b()){if(this.c8().trendLineType()!=$.ig.TrendLineType.prototype.none&&!b){var c=this.c9().n();c.a5(this.c8().trendLineThickness());c.__stroke=this.c8().actualTrendLineBrush();c.a7(this.c8().trendLineDashCap());c.a6(this.c8().trendLineDashArray());if(this.l&&!b){a.e($.ig.GradientDirection.prototype.bottomTop,null)}a.l(c)}}$.ig.SeriesView.prototype.a5.call(this,a,b)},ca:function(a){$.ig.SeriesView.prototype.ca.call(this,a);var b=new $.ig.PathVisualData(1,"positiveColumnsShape",this.c4);b.tags().add("Positive");var c=new $.ig.PathVisualData(1,"negativeColumnsShape",this.c5);c.tags().add("Negative");var d=new $.ig.PathVisualData(1,"positive0",this.cy);var e=new $.ig.PathVisualData(1,"positive1",this.c2);var f=new $.ig.PathVisualData(1,"positive01",this.c0);var g=new $.ig.PathVisualData(1,"negative0",this.cz);var h=new $.ig.PathVisualData(1,"negative1",this.c3);var i=new $.ig.PathVisualData(1,"negative01",this.c1);a.shapes().add(d);a.shapes().add(e);a.shapes().add(f);a.shapes().add(g);a.shapes().add(h);a.shapes().add(i)},dm:function(){this.c9($.ig.CategoryTrendLineManagerBase.prototype.af(this.c9(),this.c8().xAxis(),this.w().rootCanvas(),this.c8()))},$type:new $.ig.Type("FinancialIndicatorView",$.ig.FinancialSeriesView.prototype.$type)},true);$.ig.util.defType("ForceIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this);this.displayType($.ig.IndicatorDisplayType.prototype.area)},mw:function(){return new $.ig.ForceIndexIndicatorStrategy},mx:function(){return $.ig.ForceIndexIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.ForceIndexIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.ForceIndexIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("ForceIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("ForceIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.add($.ig.FinancialSeries.prototype.iv);c.w(b.l().d());return c},c:function(a){var $self=this;var $iter=function(){return function(a){return{$state:0,$this:$self,$current:null,$b:0,$c:null,$d:null,$e:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$b=0;this.$c=a.closeColumn();this.$d=a.volumeColumn();this.$e=a.indicatorColumn();this.$state=1;break;case 1:if(this.$c!=null&&this.$d!=null){this.$state=2}else{this.$state=3}break;case 2:this.$b=Math.min(this.$c.count(),this.$d.count());this.$state=3;break;case 3:this.$state=4;break;case 4:if(this.$b>0){this.$state=5}else{this.$state=7}break;case 5:this.$current=0;this.$state=6;return true;case 6:this.$state=7;break;case 7:this.$state=8;break;case 8:this.$f=1;this.$state=12;break;case 9:this.$current=this.$d.item(this.$f)*(this.$c.item(this.$f)-this.$c.item(this.$f-1));this.$state=10;return true;case 10:this.$state=11;break;case 11:++this.$f;this.$state=12;break;case 12:if(this.$f<this.$b){this.$state=9}else{this.$state=13}break;case 13:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a)};return new $.ig.GenericEnumerable$1(Number,$iter)},a:function(a,b){var c=this.c(a);var d=a.period();var e=a.indicatorColumn();if(d!=0&&!isNaN(d)&&!Number.isInfinity(d)){c=b.l().c()(c,a.period())}var f=0;var h=c.getEnumerator();while(h.moveNext()){var g=h.current();e.item(f,g);++f}return true},$type:new $.ig.Type("ForceIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("FullStochasticOscillatorIndicator","StrategyBasedIndicator",{init:function(){var $self=this;$.ig.StrategyBasedIndicator.prototype.init.call(this);this.trendLineBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="Blue";return $ret}());this.trendLineType($.ig.TrendLineType.prototype.exponentialAverage);this.trendLinePeriod(3)},mw:function(){return new $.ig.FullStochasticOscillatorIndicatorStrategy},mx:function(){return $.ig.FullStochasticOscillatorIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.FullStochasticOscillatorIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.FullStochasticOscillatorIndicator.prototype.periodProperty)}},m2:function(){return this.period()},smoothingPeriod:function(a){if(arguments.length===1){this.c($.ig.FullStochasticOscillatorIndicator.prototype.smoothingPeriodProperty,a);return a}else{return this.b($.ig.FullStochasticOscillatorIndicator.prototype.smoothingPeriodProperty)}},m3:function(){return this.smoothingPeriod()},triggerPeriod:function(a){if(arguments.length===1){this.c($.ig.FullStochasticOscillatorIndicator.prototype.triggerPeriodProperty,a);return a}else{return this.b($.ig.FullStochasticOscillatorIndicator.prototype.triggerPeriodProperty)}},m4:function(){return this.triggerPeriod()},l2:function(){return this.triggerPeriod()},$type:new $.ig.Type("FullStochasticOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("FullStochasticOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{_d:null,d:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this);this.d(new $.ig.PercentKCalculationStrategy)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(this.d().b(a,b));c.w(b.l().d());return c},a:function(a,b){var c=this.d().c(a,b);var d=b.l().c()(c,a.shortPeriod());var e=0;var g=d.getEnumerator();while(g.moveNext()){var f=g.current();a.indicatorColumn().item(e,f);e++}return true},$type:new $.ig.Type("FullStochasticOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("PercentKCalculationStrategy","StreamingIndicatorCalculationStrategy",{init:function(){$.ig.StreamingIndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.it);return c},c:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,$d:null,$e:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=a.period();this.$d=a.highColumn();this.$e=a.lowColumn();this.$state=1;break;case 1:this.$f=0;this.$state=16;break;case 2:this.$g=Math.min(this.$c,this.$f);this.$h=-Number.MAX_VALUE;this.$i=Number.MAX_VALUE;this.$state=3;break;case 3:this.$j=0;this.$state=12;break;case 4:this.$state=5;break;case 5:if(!isNaN(this.$d.item(this.$f-this.$j))){this.$state=6}else{this.$state=7}break;case 6:this.$h=Math.max(this.$h,this.$d.item(this.$f-this.$j));this.$state=7;break;case 7:this.$state=8;break;case 8:if(!isNaN(this.$e.item(this.$f-this.$j))){this.$state=9}else{this.$state=10}break;case 9:this.$i=Math.min(this.$i,this.$e.item(this.$f-this.$j));this.$state=10;break;case 10:this.$state=11;break;case 11:this.$j++;this.$state=12;break;case 12:if(this.$j<this.$g){this.$state=4}else{this.$state=13}break;case 13:this.$current=b.v()((a.closeColumn().item(this.$f)-this.$i)/(this.$h-this.$i)*100);this.$state=14;return true;case 14:this.$state=15;break;case 15:this.$f++;this.$state=16;break;case 16:if(this.$f<a.count()){this.$state=2}else{this.$state=17}break;case 17:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},a:function(a,b){var c=0;var e=this.c(a,b).getEnumerator();while(e.moveNext()){var d=e.current();a.indicatorColumn().item(c,d);c++}return true},$type:new $.ig.Type("PercentKCalculationStrategy",$.ig.StreamingIndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("IndicatorRenderer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},a:function(a,b,c,d){var $self=this;var e=new $.ig.PathFigure;var f=$.ig.Flattener.prototype.e(new $.ig.List$1($.ig.Number.prototype.$type,0),a,b,c,0,a.count()-1,d);for(var g=0;g<f.count();g++){var h=f.item(g);e.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:b(h),__y:c(h),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}())}e.__startPoint=$.ig.util.cast($.ig.LineSegment.prototype.$type,e.__segments.__inner[0]).d();return e},b:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=$.ig.util.cast($.ig.PathGeometry.prototype.$type,i.bn()).d();var r=$.ig.util.cast($.ig.PathGeometry.prototype.$type,l.bn()).d();if(o==1){var s=new $.ig.List$1($.ig.Number.prototype.$type,0);var t=q;var u=0;s.add(0);for(var v=0,w=1;w<a;v=w++){var x=u;var y=c(w)-c(v);if(f&&!isNaN(y)){x=Math.sign(y)}if(x!=0&&x!=u){t.add($.ig.IndicatorRenderer.prototype.a(s,b,c,p));u=x;t=u==1?r:q;s.clear();s.add(v)}s.add(w)}t.add($.ig.IndicatorRenderer.prototype.a(s,b,c,p))}else{var z=new $.ig.List$1($.ig.Number.prototype.$type,0);var aa=q;var ab=0;z.add(0);for(var ac=0,ad=1;ad<a;ac=ad++){var ae=ab;var af=c(ad)-c(ac);if(f&&!isNaN(af)){ae=Math.sign(af)}if(ae!=0&&ae!=ab){if(z.count()>0){aa.add($.ig.IndicatorRenderer.prototype.a(z,b,c,p))}ab=ae;aa=ab==1?r:q;z.clear();z.add(ac)}z.add(ad)}if(z.count()>0){aa.add($.ig.IndicatorRenderer.prototype.a(z,b,c,p))}}},c:function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var $self=this;var r=$.ig.util.cast($.ig.PathGeometry.prototype.$type,i.bn()).d();var s=$.ig.util.cast($.ig.PathGeometry.prototype.$type,j.bn()).d();var t=$.ig.util.cast($.ig.PathGeometry.prototype.$type,l.bn()).d();var u=$.ig.util.cast($.ig.PathGeometry.prototype.$type,m.bn()).d();if(p==1){var v=new $.ig.List$1($.ig.Number.prototype.$type,0);var w=r;var x=s;var y=0;v.add(0);for(var z=0,aa=1;aa<a;z=aa++){var ab=y;var ac=c(aa)-c(z);if(f&&!isNaN(ac)){ab=Math.sign(ac)}if(ab!=0&&ab!=y){if(v.count()>0){var ad=$.ig.IndicatorRenderer.prototype.a(v,b,c,q);var ae=ad.duplicate1();ae.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,ad.__segments.__inner[ad.__segments.count()-1]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());ae.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,ad.__segments.__inner[0]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());w.add(ad);x.add(ae)}y=ab;w=y==1?t:r;x=y==1?u:s;v.clear();v.add(z)}v.add(aa)}var af=$.ig.IndicatorRenderer.prototype.a(v,b,c,q);var ag=af.duplicate1();ag.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,af.__segments.__inner[af.__segments.count()-1]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());ag.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,af.__segments.__inner[0]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());w.add(af);x.add(ag)}else{var ah=new $.ig.List$1($.ig.Number.prototype.$type,0);var ai=r;var aj=s;var ak=0;ah.add(0);for(var al=0,am=1;am<a;al=am++){var an=ak;var ao=c(am)+e(am)-(c(al)+e(al));if(f&&!isNaN(ao)){an=Math.sign(ao)}if(an!=0&&an!=ak){if(ah.count()>0){var ap=$.ig.IndicatorRenderer.prototype.a(ah,b,c,q);var aq=ap.duplicate1();aq.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,ap.__segments.__inner[ap.__segments.count()-1]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());aq.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,ap.__segments.__inner[0]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());ai.add(ap);aj.add(aq)}ak=an;ai=ak==1?t:r;aj=ak==1?u:s;ah.clear();ah.add(al)}ah.add(am)}var ar=$.ig.IndicatorRenderer.prototype.a(ah,b,c,q);var as=ar.duplicate1();as.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,ar.__segments.__inner[ar.__segments.count()-1]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());as.__segments.add(function(){var $ret=new $.ig.LineSegment(1);$ret.d({__x:$.ig.util.cast($.ig.LineSegment.prototype.$type,ar.__segments.__inner[0]).d().__x,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());ai.add(ar);aj.add(as)}},d:function(a,b,c,d,e,f,g,h,i,j){var k=$.ig.util.cast($.ig.GeometryGroup.prototype.$type,i.bn());var l=$.ig.util.cast($.ig.GeometryGroup.prototype.$type,j.bn());for(var m=0;m<a;++m){var n=h.item(m);n.e({__x:b(m),__y:g,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});n.f({__x:b(m),__y:c(m),$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});var o=false;if(m>0){if(c(m)<=c(m-1)){o=true}}else{if(a>1){if(c(m+1)<=c(m)){o=true}}}if(o){k.e().add(n)}else{l.e().add(n)}}h.g(a)},$type:new $.ig.Type("IndicatorRenderer",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ItemwiseIndicatorCalculationStrategy","Object",{init:function(){$.ig.Object.prototype.init.call(this)},a:function(a,b,c){},b:function(a,b){},$type:new $.ig.Type("ItemwiseIndicatorCalculationStrategy",$.ig.Object.prototype.$type)},true);
$.ig.util.defType("ItemwiseStrategyBasedIndicator","StrategyBasedIndicator",{_ng:null,ng:function(a){if(arguments.length===1){this._ng=a;return a}else{return this._ng}},_nh:null,nh:function(){return this._nh},mw:function(){return new $.ig.ItemwiseStrategyCalculationStrategy},init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this);this.ng(this.nh());this.mv().d(this.ng())},$type:new $.ig.Type("ItemwiseStrategyBasedIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("ItemwiseStrategyCalculationStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},_d:null,d:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},b:function(a,b){return this.d().b(a,b)},a:function(a,b){var c=true;for(var d=a.calculateFrom();d<a.calculateFrom()+a.calculateCount();d++){c=this.d().a(a,b,d);if(!c){return false}}return c},$type:new $.ig.Type("ItemwiseStrategyCalculationStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("MarketFacilitationIndexIndicator","ItemwiseStrategyBasedIndicator",{init:function(){$.ig.ItemwiseStrategyBasedIndicator.prototype.init.call(this);this.displayType($.ig.IndicatorDisplayType.prototype.area)},nh:function(){return new $.ig.MarketFacilitationIndexIndicatorStrategy},mx:function(){return $.ig.MarketFacilitationIndexIndicator.prototype.$type},$type:new $.ig.Type("MarketFacilitationIndexIndicator",$.ig.ItemwiseStrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("MarketFacilitationIndexIndicatorStrategy","ItemwiseIndicatorCalculationStrategy",{init:function(){$.ig.ItemwiseIndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b,c){a.indicatorColumn().item(c,b.v()((a.highColumn().item(c)-a.lowColumn().item(c))/a.volumeColumn().item(c)));return true},$type:new $.ig.Type("MarketFacilitationIndexIndicatorStrategy",$.ig.ItemwiseIndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("MassIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.MassIndexIndicatorStrategy},mx:function(){return $.ig.MassIndexIndicator.prototype.$type},$type:new $.ig.Type("MassIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("MassIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.w(b.l().d());return c},c:function(a,b){var c=new $.ig.List$1(Number,0);for(var d=0;d<Math.min(a.count(),b.count());d++){c.add(a.item(d)-b.item(d))}return c},a:function(a,b){var c=9;var d=a.highColumn();var e=a.lowColumn();var f=a.indicatorColumn();var g=b.l().c()(this.c(d,e),c).getEnumerator();var h=b.l().c()(b.l().c()(this.c(d,e),c),c).getEnumerator();var i=new Array(c);for(var j=0;j<c;j++){i[j]=0}var k=0;for(var l=0;l<f.count();l++){var m=l%c;k-=i[m];g.moveNext();h.moveNext();var n=b.v()(g.current()/h.current());k+=n;f.item(l,k);i[m]=n}return true},$type:new $.ig.Type("MassIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("MedianPriceIndicator","ItemwiseStrategyBasedIndicator",{init:function(){$.ig.ItemwiseStrategyBasedIndicator.prototype.init.call(this)},nh:function(){return new $.ig.MedianPriceIndicatorStrategy},mx:function(){return $.ig.MedianPriceIndicator.prototype.$type},$type:new $.ig.Type("MedianPriceIndicator",$.ig.ItemwiseStrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("MedianPriceIndicatorStrategy","ItemwiseIndicatorCalculationStrategy",{init:function(){$.ig.ItemwiseIndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);return c},a:function(a,b,c){a.indicatorColumn().item(c,(a.highColumn().item(c)+a.lowColumn().item(c))/2);return true},$type:new $.ig.Type("MedianPriceIndicatorStrategy",$.ig.ItemwiseIndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("MoneyFlowIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this);this.displayType($.ig.IndicatorDisplayType.prototype.area)},mw:function(){return new $.ig.MoneyFlowIndexIndicatorStrategy},mx:function(){return $.ig.MoneyFlowIndexIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.MoneyFlowIndexIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.MoneyFlowIndexIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("MoneyFlowIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("MoneyFlowIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.typicalColumn().basedOn());c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b){var c=a.typicalColumn().getEnumerator();var d=a.volumeColumn().getEnumerator();var e=a.period();var f=0;var g=new Array(e);for(f=0;f<e;f++){g[f]=0}var h=0;var i=new Array(e);for(f=0;f<e;f++){i[f]=0}var j=0;var k=0;f=0;while(c.moveNext()&&d.moveNext()){var l=f%e;var m=c.current()*d.current();h-=g[l];j-=i[l];switch(Math.sign(m-k)){case-1:g[l]=0;i[l]=m;break;case 0:g[l]=0;i[l]=0;break;case 1:g[l]=m;i[l]=0;break}h+=g[l];j+=i[l];var n=b.v()(100*h/(h+j));a.indicatorColumn().item(f,n);k=m;++f}return true},$type:new $.ig.Type("MoneyFlowIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("MovingAverageConvergenceDivergenceIndicator","StrategyBasedIndicator",{init:function(){var $self=this;$.ig.StrategyBasedIndicator.prototype.init.call(this);this.trendLineBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="Blue";return $ret}());this.trendLineType($.ig.TrendLineType.prototype.exponentialAverage);this.trendLinePeriod(9)},mw:function(){return new $.ig.MovingAverageConvergenceDivergenceIndicatorStrategy},mx:function(){return $.ig.MovingAverageConvergenceDivergenceIndicator.prototype.$type},shortPeriod:function(a){if(arguments.length===1){this.c($.ig.MovingAverageConvergenceDivergenceIndicator.prototype.shortPeriodProperty,a);return a}else{return this.b($.ig.MovingAverageConvergenceDivergenceIndicator.prototype.shortPeriodProperty)}},m3:function(){return this.shortPeriod()},longPeriod:function(a){if(arguments.length===1){this.c($.ig.MovingAverageConvergenceDivergenceIndicator.prototype.longPeriodProperty,a);return a}else{return this.b($.ig.MovingAverageConvergenceDivergenceIndicator.prototype.longPeriodProperty)}},m4:function(){return this.longPeriod()},signalPeriod:function(a){if(arguments.length===1){this.c($.ig.MovingAverageConvergenceDivergenceIndicator.prototype.signalPeriodProperty,a);return a}else{return this.b($.ig.MovingAverageConvergenceDivergenceIndicator.prototype.signalPeriodProperty)}},l2:function(){return this.signalPeriod()},$type:new $.ig.Type("MovingAverageConvergenceDivergenceIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("MovingAverageConvergenceDivergenceIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.typicalColumn().basedOn());c.w(b.l().d());return c},a:function(a,b){var c=a.typicalColumn();var d=a.indicatorColumn();var e=a.shortPeriod();var f=a.longPeriod();var g=b.l().c()(c,e).getEnumerator();var h=b.l().c()(c,f).getEnumerator();var i=0;while(g.moveNext()&&h.moveNext()){var j=b.v()(g.current()-h.current());d.item(i,j);i++}return true},$type:new $.ig.Type("MovingAverageConvergenceDivergenceIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("NegativeVolumeIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.NegativeVolumeIndexIndicatorStrategy},mx:function(){return $.ig.NegativeVolumeIndexIndicator.prototype.$type},$type:new $.ig.Type("NegativeVolumeIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("NegativeVolumeIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b){var c=a.closeColumn();var d=a.volumeColumn();var e=a.indicatorColumn();var f=0;var g=0;var h=0;if(e.count()>0){e.item(0,f)}for(var i=1;i<e.count();i++){if(d.item(i)<d.item(i-1)){g=b.v()((c.item(i)-c.item(i-1))/c.item(i-1));if(h!=0){f+=g*h}else{f+=g}}e.item(i,f);h=f}return true},$type:new $.ig.Type("NegativeVolumeIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("OnBalanceVolumeIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.OnBalanceVolumeIndicatorStrategy},mx:function(){return $.ig.OnBalanceVolumeIndicator.prototype.$type},$type:new $.ig.Type("OnBalanceVolumeIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("OnBalanceVolumeIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b){var c=a.closeColumn();var d=a.volumeColumn();var e=a.indicatorColumn();var f=0;if(c!=null&&d!=null){f=Math.min(c.count(),d.count())}var g=0;if(f>0){g=d.item(0);e.item(0,g)}for(var h=1;h<f;++h){switch(Math.sign(c.item(h)-c.item(h-1))){case-1:g-=d.item(h);break;case 1:g+=d.item(h);break}e.item(h,g)}return true},$type:new $.ig.Type("OnBalanceVolumeIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("PercentagePriceOscillatorIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.PercentagePriceOscillatorIndicatorStrategy},mx:function(){return $.ig.PercentagePriceOscillatorIndicator.prototype.$type},shortPeriod:function(a){if(arguments.length===1){this.c($.ig.PercentagePriceOscillatorIndicator.prototype.shortPeriodProperty,a);return a}else{return this.b($.ig.PercentagePriceOscillatorIndicator.prototype.shortPeriodProperty)}},m3:function(){return this.shortPeriod()},longPeriod:function(a){if(arguments.length===1){this.c($.ig.PercentagePriceOscillatorIndicator.prototype.longPeriodProperty,a);return a}else{return this.b($.ig.PercentagePriceOscillatorIndicator.prototype.longPeriodProperty)}},m4:function(){return this.longPeriod()},$type:new $.ig.Type("PercentagePriceOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("PercentagePriceOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(b.r().d());c.w(b.s().d());return c},a:function(a,b){var c=a.indicatorColumn();var d=b.r().c()(a).getEnumerator();var e=b.s().c()(a).getEnumerator();var f=0;while(d.moveNext()&&e.moveNext()){var g=b.v()(100*(d.current()-e.current())/e.current());c.item(f,g);++f}return true},$type:new $.ig.Type("PercentagePriceOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("PercentageVolumeOscillatorIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.PercentageVolumeOscillatorIndicatorStrategy},mx:function(){return $.ig.PercentageVolumeOscillatorIndicator.prototype.$type},shortPeriod:function(a){if(arguments.length===1){this.c($.ig.PercentageVolumeOscillatorIndicator.prototype.shortPeriodProperty,a);return a}else{return this.b($.ig.PercentageVolumeOscillatorIndicator.prototype.shortPeriodProperty)}},m3:function(){return this.shortPeriod()},longPeriod:function(a){if(arguments.length===1){this.c($.ig.PercentageVolumeOscillatorIndicator.prototype.longPeriodProperty,a);return a}else{return this.b($.ig.PercentageVolumeOscillatorIndicator.prototype.longPeriodProperty)}},m4:function(){return this.longPeriod()},$type:new $.ig.Type("PercentageVolumeOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("PercentageVolumeOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(b.p().d());c.w(b.q().d());return c},a:function(a,b){var c=b.p().c()(a).getEnumerator();var d=b.q().c()(a).getEnumerator();var e=a.indicatorColumn();var f=0;while(c.moveNext()&&d.moveNext()){var g=b.v()(100*(c.current()-d.current())/d.current());e.item(f,g);++f}return true},$type:new $.ig.Type("PercentageVolumeOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("PositiveVolumeIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.PositiveVolumeIndexIndicatorStrategy},mx:function(){return $.ig.PositiveVolumeIndexIndicator.prototype.$type},$type:new $.ig.Type("PositiveVolumeIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("PositiveVolumeIndexIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.add($.ig.FinancialSeries.prototype.iv);return c},a:function(a,b){var c=a.closeColumn();var d=a.volumeColumn();var e=a.indicatorColumn();var f=0;var g=0;var h=0;if(e.count()>0){e.item(0,f)}for(var i=1;i<e.count();i++){if(d.item(i)>d.item(i-1)){g=b.v()((c.item(i)-c.item(i-1))/c.item(i-1));if(h!=0){f+=g*h}else{f+=g}}e.item(i,f);h=f}return true},$type:new $.ig.Type("PositiveVolumeIndexIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("PriceChannelOverlay","FinancialOverlay",{init:function(){this.lp=new $.ig.List$1(Number,0);this.lq=new $.ig.List$1(Number,0);$.ig.FinancialOverlay.prototype.init.call(this);this.a3($.ig.PriceChannelOverlay.prototype.$type);this.i4=new $.ig.CategoryFrame(3);this.i5=new $.ig.CategoryFrame(3);this.i6=new $.ig.CategoryFrame(3)},period:function(a){if(arguments.length===1){this.c($.ig.PriceChannelOverlay.prototype.periodProperty,a);return a}else{return this.b($.ig.PriceChannelOverlay.prototype.periodProperty)}},ft:function(a,b,c,d){switch(b){case $.ig.PriceChannelOverlay.prototype.ip:case $.ig.PriceChannelOverlay.prototype.ir:this.lj(false);break}$.ig.FinancialOverlay.prototype.ft.call(this,a,b,c,d);switch(b){case $.ig.PriceChannelOverlay.prototype.lo:this.lj(false);this.renderSeries(false);break}},ff:function(a,b,c){var d=$.ig.FinancialSeries.prototype.ff.call(this,a,b,c);if(this.ju()==null||this.jv()==null){d=false}return d},lm:function(){this.lp.clear();this.lq.clear();var a=$.ig.MathUtil.prototype.i(this.period(),0,this.eb().g());var b=Math.min(this.ju().count(),this.jv().count());var c=this.kp(this.ju());var d=this.kp(this.jv());for(var e=0;e<b;e++){var f=Math.min(a,e);var g=-Number.MAX_VALUE;var h=Number.MAX_VALUE;for(var i=0;i<f;i++){if(!isNaN(c.item(e-i))){g=Math.max(g,c.item(e-i))}if(!isNaN(d.item(e-i))){h=Math.min(h,d.item(e-i))}}if(e==0){h=d.item(0);g=c.item(0)}this.lp.add(g);this.lq.add(h)}return true},lu:function(a){return a},ki:function(a,b){var $self=this;var c=b.ae();var d=b.ad();var e=new $.ig.ScalerParams(c,d,this.xAxis().isInverted());var f=new $.ig.ScalerParams(c,d,this.yAxis().isInverted());var g=this.xAxis();var h=this.yAxis();a.f.clear();a.h.clear();a.i.clear();var i=0;var j=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis());if(j!=null&&j.sortedIndices().count()!=this.eb().g()){return}i=this.getOffset(c,d);if(!this.lj()){this.lj(this.lm())}var k=this.lu(this.xAxis().getUnscaledValue(2,e)-this.xAxis().getUnscaledValue(1,e));for(var l=b.cr().f();l<=b.cr().g();++l){var m;if(j==null){m=b.cr().getBucket(l)}else{var n=j.sortedIndices().__inner[l];var o=j.getUnscaledValueAt(n);var p=this.lu(this.lp.__inner[l]);var q=this.lu(this.lq.__inner[l]);var r=p;var s=q;var t=o;while(l<b.cr().g()){n=j.sortedIndices().__inner[l+1];t=j.getUnscaledValueAt(n);if(t-o>k){break}l++;r=Math.max(p,this.lu(this.lp.__inner[l]));s=Math.min(q,this.lu(this.lq.__inner[l]))}if(!$.ig.Single.prototype.isInfinity(s)&&!$.ig.Single.prototype.isInfinity(r)){var u=NaN;if(!isNaN(o)){u=this.xAxis().getScaledValue(o,e)}m=function(){var $ret=new Array;$ret.add($self.lu(u));$ret.add(s);$ret.add(r);return $ret}()}else{m=function(){var $ret=new Array;$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);return $ret}()}}var v=Math.max(1,k);if(!isNaN(m[0])&&l*v>=this.ignoreFirst()){if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){m[0]=m[0]+i}else{m[0]=g.getScaledValue(m[0],e)+i}m[1]=h.getScaledValue(m[1],f);m[2]=h.getScaledValue(m[2],f);a.f.add(m)}}},fg:function(a,b){$.ig.Series.prototype.fg.call(this,a,b);var c=b;if(c!=null){c.c4()}},kj:function(a,b){var $self=this;var c=$.ig.util.cast($.ig.PriceChannelOverlayView.prototype.$type,b);if(c==null){return}c.c4();var d=a.f.count();var f=function(e){return a.f.__inner[e][0]};var h=function(g){return a.f.__inner[d-1-g][0]};var j=function(i){return a.f.__inner[i][1]};var l=function(k){return a.f.__inner[d-1-k][2]};c.c5(d,f,h,j,l)},lp:null,lq:null,et:function(){return new $.ig.PriceChannelOverlayView(this)},eq:function(a){$.ig.FinancialSeries.prototype.eq.call(this,a);this.lt($.ig.util.cast($.ig.PriceChannelOverlayView.prototype.$type,a))},_lt:null,lt:function(a){if(arguments.length===1){this._lt=a;return a}else{return this._lt}},getSeriesValue:function(a,b,c){if(this.seriesViewer()==null){return NaN}var d=new $.ig.ScalerParams(this.seriesViewer().actualWindowRect(),this.view().ad(),this.xAxis().isInverted());var e=this.getOffset(this.seriesViewer().actualWindowRect(),this.view().ad());return this.e0(new $.ig.RangeValueList(this.lp,this.lq),a,this.xAxis(),d,e,this.ke.runOn(this),b,c)},getNextOrExactIndex:function(a,b){if(this.lp==null||this.lq==null){return $.ig.FinancialSeries.prototype.getNextOrExactIndex.call(this,a,b)}return this.e3(a,b,this.xAxis(),this.ke.runOn(this),new $.ig.RangeValueList(this.lp,this.lq))},getPreviousOrExactIndex:function(a,b){if(this.lp==null||this.lq==null){return $.ig.FinancialSeries.prototype.getPreviousOrExactIndex.call(this,a,b)}return this.e2(a,b,this.xAxis(),this.ke.runOn(this),new $.ig.RangeValueList(this.lp,this.lq))},$type:new $.ig.Type("PriceChannelOverlay",$.ig.FinancialOverlay.prototype.$type)},true);$.ig.util.defType("PriceChannelBucketCalculator","FinancialBucketCalculator",{init:function(a){$.ig.FinancialBucketCalculator.prototype.init.call(this,a);this.s(a)},_s:null,s:function(a){if(arguments.length===1){this._s=a;return a}else{return this._s}},getBucket:function(a){var $self=this;var b=a*this.h();var c=Math.min(b+this.h()-1,this.e().cq().eb().g()-1);if(b<=c){var d=-Number.MAX_VALUE;var e=Number.MAX_VALUE;var f=0;for(var g=b;g<=c;++g){if(!isNaN(this.s().c1().lp.__inner[g])&&!isNaN(this.s().c1().lq.__inner[g])){d=Math.max(d,this.s().c1().lp.__inner[g]);e=Math.min(e,this.s().c1().lq.__inner[g]);++f}}if(f>0&&e!=Number.MAX_VALUE&&d!=-Number.MAX_VALUE){return function(){var $ret=new Array;$ret.add(.5*(b+c));$ret.add(e);$ret.add(d);return $ret}()}}return function(){var $ret=new Array;$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);return $ret}()},$type:new $.ig.Type("PriceChannelBucketCalculator",$.ig.FinancialBucketCalculator.prototype.$type)},true);$.ig.util.defType("PriceVolumeTrendIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.PriceVolumeTrendIndicatorStrategy},mx:function(){return $.ig.PriceVolumeTrendIndicator.prototype.$type},$type:new $.ig.Type("PriceVolumeTrendIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("PriceVolumeTrendIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.iv);c.add($.ig.FinancialSeries.prototype.it);return c},a:function(a,b){var c=0;var d=a.indicatorColumn();var e=a.volumeColumn();var f=a.closeColumn();var g=a.count();if(g>0){d.item(0,c)}for(var h=1;h<g;++h){c=c+b.v()(e.item(h)*(f.item(h)-f.item(h-1))/f.item(h-1));d.item(h,c)}return true},$type:new $.ig.Type("PriceVolumeTrendIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("RateOfChangeAndMomentumIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.RateOfChangeAndMomentumIndicatorStrategy},mx:function(){return $.ig.RateOfChangeAndMomentumIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.RateOfChangeAndMomentumIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.RateOfChangeAndMomentumIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("RateOfChangeAndMomentumIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("RateOfChangeAndMomentumIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);return c},a:function(a,b){var c=a.closeColumn();var d=a.indicatorColumn();var e=a.period();var f=0;var g=new Array(e);for(f=0;f<e;f++){g[f]=0}f=0;var i=c.getEnumerator();while(i.moveNext()){var h=i.current();var j=f%e;var k=b.v()(100*(h-g[j])/g[j]);d.item(f,k);g[j]=h;++f}return true},$type:new $.ig.Type("RateOfChangeAndMomentumIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("RelativeStrengthIndexIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this);this.displayType($.ig.IndicatorDisplayType.prototype.area)},mw:function(){return new $.ig.RelativeStrengthIndexIndicatorStrategy},mx:function(){return $.ig.RelativeStrengthIndexIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.RelativeStrengthIndexIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.RelativeStrengthIndexIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("RelativeStrengthIndexIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("RelativeStrengthIndexIndicatorStrategy","StreamingIndicatorCalculationStrategy",{init:function(){$.ig.StreamingIndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);return c},a:function(a,b){var c=0;var e=this.c(a,b).getEnumerator();while(e.moveNext()){var d=e.current();a.indicatorColumn().item(c,d);c++}return true},c:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,$d:0,$e:0,$f:0,$g:null,$h:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$c=a.period();this.$d=2/(this.$c+1);this.$e=0;this.$f=0;this.$g=a.indicatorColumn();this.$h=a.closeColumn();this.$state=1;break;case 1:if(this.$g.count()>0){this.$state=2}else{this.$state=4}break;case 2:this.$current=0;this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$state=5;break;case 5:this.$i=1;this.$state=9;break;case 6:this.$j=this.$h.item(this.$i)-this.$h.item(this.$i-1);this.$k=this.$j>0?this.$j:0;this.$l=this.$j>0?0:-this.$j;this.$e+=this.$k/(this.$c-1);this.$f+=this.$l/(this.$c-1);this.$current=0;this.$state=7;return true;case 7:this.$state=8;break;case 8:++this.$i;this.$state=9;break;case 9:if(this.$i<Math.min(a.period(),this.$g.count())){this.$state=6}else{this.$state=10}break;case 10:this.$state=11;break;case 11:this.$m=a.period();this.$state=15;break;case 12:this.$n=this.$h.item(this.$m)-this.$h.item(this.$m-1);this.$o=this.$n>0?this.$n:0;this.$p=this.$n>0?0:-this.$n;this.$e=(this.$e*(this.$c-1)+this.$o)/this.$c;this.$f=(this.$f*(this.$c-1)+this.$p)/this.$c;this.$current=b.v()(this.$e!=0?100*this.$e/(this.$e+this.$f):0);this.$state=13;return true;case 13:this.$state=14;break;case 14:++this.$m;this.$state=15;break;case 15:if(this.$m<this.$g.count()){this.$state=12}else{this.$state=16}break;case 16:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1(Number,$iter)},$type:new $.ig.Type("RelativeStrengthIndexIndicatorStrategy",$.ig.StreamingIndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("SlowStochasticOscillatorIndicator","StrategyBasedIndicator",{init:function(){var $self=this;$.ig.StrategyBasedIndicator.prototype.init.call(this);this.trendLineBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="Blue";return $ret}());this.trendLineType($.ig.TrendLineType.prototype.exponentialAverage);this.trendLinePeriod(3)},mw:function(){return new $.ig.SlowStochasticOscillatorIndicatorStrategy},mx:function(){return $.ig.SlowStochasticOscillatorIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.SlowStochasticOscillatorIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.SlowStochasticOscillatorIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("SlowStochasticOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("SlowStochasticOscillatorIndicatorStrategy","IndicatorCalculationStrategy",{_d:null,d:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this);this.d(new $.ig.PercentKCalculationStrategy)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(this.d().b(a,b));c.w(b.l().d());return c},a:function(a,b){var c=this.d().c(a,b);var d=b.l().c()(c,3);var e=0;var g=d.getEnumerator();while(g.moveNext()){var f=g.current();a.indicatorColumn().item(e,f);e++}return true},$type:new $.ig.Type("SlowStochasticOscillatorIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("StandardDeviationIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.StandardDeviationIndicatorStrategy},mx:function(){return $.ig.StandardDeviationIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.StandardDeviationIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.StandardDeviationIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("StandardDeviationIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("StandardDeviationIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.typicalColumn().basedOn());c.w(b.n().d());return c},a:function(a,b){var c=b.n().c()(a.typicalColumn(),a.period()).getEnumerator();var d=a.indicatorColumn();var e=0;while(c.moveNext()){d.item(e,c.current());e++}return true},$type:new $.ig.Type("StandardDeviationIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("StochRSIIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.StochRSIIndicatorStrategy},mx:function(){return $.ig.StochRSIIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.StochRSIIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.StochRSIIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("StochRSIIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("StochRSIIndicatorStrategy","IndicatorCalculationStrategy",{_d:null,d:function(a){if(arguments.length===1){this._d=a;return a}else{return this._d}},init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this);this.d(new $.ig.RelativeStrengthIndexIndicatorStrategy)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(this.d().b(a,b));return c},a:function(a,b){var c=this.d().c(a,b).getEnumerator();var d=a.period();var e=0;var f=new Array(d);for(e=0;e<d;e++){f[e]=0}e=0;while(c.moveNext()){var g=Math.min(d,e);var h=-Number.MAX_VALUE;var i=Number.MAX_VALUE;var j=e%d;for(var k=0;k<g;k++){if(!isNaN(f[g-k-1])){h=Math.max(h,f[g-k-1])}if(!isNaN(f[g-k-1])){i=Math.min(i,f[g-k-1])}}f[j]=c.current();var l=b.v()((c.current()-i)/(h-i));a.indicatorColumn().item(e,l);e++}return true},$type:new $.ig.Type("StochRSIIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("TRIXIndicator","StrategyBasedIndicator",{init:function(){var $self=this;$.ig.StrategyBasedIndicator.prototype.init.call(this);this.displayType($.ig.IndicatorDisplayType.prototype.line);this.trendLineBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="Blue";return $ret}());this.trendLineType($.ig.TrendLineType.prototype.simpleAverage);this.trendLinePeriod(9)},mw:function(){return new $.ig.TRIXIndicatorStrategy},mx:function(){return $.ig.TRIXIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.TRIXIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.TRIXIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("TRIXIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("TRIXIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.it);c.w(b.l().d());return c},a:function(a,b){var c=b.l().c()(a.closeColumn(),a.period());var d=b.l().c()(c,a.period());var e=b.l().c()(d,a.period()).getEnumerator();var f=a.indicatorColumn();if(f.count()>0){f.item(0,0)}var g=1;e.moveNext();var h=e.current();while(e.moveNext()){f.item(g,b.v()((e.current()-h)/h));h=e.current();g++}return true},$type:new $.ig.Type("TRIXIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("TypicalPriceIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.TypicalPriceIndicatorStrategy},mx:function(){return $.ig.TypicalPriceIndicator.prototype.$type},$type:new $.ig.Type("TypicalPriceIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("TypicalPriceIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.typicalColumn().basedOn());return c},a:function(a,b){var c=0;var e=a.typicalColumn().getEnumerator();while(e.moveNext()){var d=e.current();
a.indicatorColumn().item(c,d);c++}return true},$type:new $.ig.Type("TypicalPriceIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("UltimateOscillatorIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.UltimateOscillatorIndicatorCalculationStrategy},mx:function(){return $.ig.UltimateOscillatorIndicator.prototype.$type},$type:new $.ig.Type("UltimateOscillatorIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("UltimateOscillatorIndicatorCalculationStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.w(a.trueLow().basedOn());c.add($.ig.FinancialSeries.prototype.it);c.w(a.trueRange().basedOn());c.w(b.o().d());return c},c:function(a){var b=0;var c=new $.ig.List$1(Number,0);var d=a.trueLow().getEnumerator();while(d.moveNext()){c.add(a.closeColumn().item(b)-d.current());b++}return c},a:function(a,b){var c=this.c(a);var d=a.trueRange();var e=b.o().c()(c,7).getEnumerator();var f=b.o().c()(d,7).getEnumerator();var g=b.o().c()(c,14).getEnumerator();var h=b.o().c()(d,14).getEnumerator();var i=b.o().c()(c,28).getEnumerator();var j=b.o().c()(d,28).getEnumerator();var k=0;while(e.moveNext()&&f.moveNext()&&g.moveNext()&&h.moveNext()&&i.moveNext()&&j.moveNext()){var l=b.v()(4*(e.current()/f.current())+2*(g.current()/h.current())+i.current()/j.current());var m=l/(4+2+1)*100;a.indicatorColumn().item(k,m);k++}return true},$type:new $.ig.Type("UltimateOscillatorIndicatorCalculationStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("WeightedCloseIndicator","ItemwiseStrategyBasedIndicator",{init:function(){$.ig.ItemwiseStrategyBasedIndicator.prototype.init.call(this)},nh:function(){return new $.ig.WeightedCloseIndicatorStrategy},mx:function(){return $.ig.WeightedCloseIndicator.prototype.$type},$type:new $.ig.Type("WeightedCloseIndicator",$.ig.ItemwiseStrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("WeightedCloseIndicatorStrategy","ItemwiseIndicatorCalculationStrategy",{init:function(){$.ig.ItemwiseIndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.it);return c},a:function(a,b,c){a.indicatorColumn().item(c,(a.highColumn().item(c)+a.lowColumn().item(c)+a.closeColumn().item(c)*2)/4);return true},$type:new $.ig.Type("WeightedCloseIndicatorStrategy",$.ig.ItemwiseIndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("WilliamsPercentRIndicator","StrategyBasedIndicator",{init:function(){$.ig.StrategyBasedIndicator.prototype.init.call(this)},mw:function(){return new $.ig.WilliamsPercentRIndicatorStrategy},mx:function(){return $.ig.WilliamsPercentRIndicator.prototype.$type},period:function(a){if(arguments.length===1){this.c($.ig.WilliamsPercentRIndicator.prototype.periodProperty,a);return a}else{return this.b($.ig.WilliamsPercentRIndicator.prototype.periodProperty)}},m2:function(){return this.period()},$type:new $.ig.Type("WilliamsPercentRIndicator",$.ig.StrategyBasedIndicator.prototype.$type)},true);$.ig.util.defType("WilliamsPercentRIndicatorStrategy","IndicatorCalculationStrategy",{init:function(){$.ig.IndicatorCalculationStrategy.prototype.init.call(this)},b:function(a,b){var c=new $.ig.List$1(String,0);c.add($.ig.FinancialSeries.prototype.ip);c.add($.ig.FinancialSeries.prototype.ir);c.add($.ig.FinancialSeries.prototype.it);return c},a:function(a,b){var c=a.period();var d=a.highColumn();var e=a.lowColumn();for(var f=0;f<a.count();f++){var g=Math.min(c,f);var h=-Number.MAX_VALUE;var i=Number.MAX_VALUE;for(var j=0;j<g;j++){if(!isNaN(d.item(f-j))){h=Math.max(h,d.item(f-j))}if(!isNaN(e.item(f-j))){i=Math.min(i,e.item(f-j))}}a.indicatorColumn().item(f,b.v()((a.closeColumn().item(f)-h)/(h-i)*100))}return true},$type:new $.ig.Type("WilliamsPercentRIndicatorStrategy",$.ig.IndicatorCalculationStrategy.prototype.$type)},true);$.ig.util.defType("FinancialEventArgs","EventArgs",{init:function(a,b,c,d){$.ig.EventArgs.prototype.init.call(this);this.position(a);this.count(b);this.dataSource(c);this.supportingCalculations(d)},_position:null,position:function(a){if(arguments.length===1){this._position=a;return a}else{return this._position}},_count:null,count:function(a){if(arguments.length===1){this._count=a;return a}else{return this._count}},_dataSource:null,dataSource:function(a){if(arguments.length===1){this._dataSource=a;return a}else{return this._dataSource}},_supportingCalculations:null,supportingCalculations:function(a){if(arguments.length===1){this._supportingCalculations=a;return a}else{return this._supportingCalculations}},_basedOn:null,basedOn:function(a){if(arguments.length===1){this._basedOn=a;return a}else{return this._basedOn}},$type:new $.ig.Type("FinancialEventArgs",$.ig.EventArgs.prototype.$type)},true);$.ig.util.defType("FinancialPriceSeries","FinancialSeries",{et:function(){return new $.ig.FinancialPriceSeriesView(this)},eq:function(a){$.ig.FinancialSeries.prototype.eq.call(this,a);this.ls(a)},_ls:null,ls:function(a){if(arguments.length===1){this._ls=a;return a}else{return this._ls}},init:function(){$.ig.FinancialSeries.prototype.init.call(this);this.a3($.ig.FinancialPriceSeries.prototype.$type);this.i4=new $.ig.CategoryFrame(5);this.i5=new $.ig.CategoryFrame(5);this.i6=new $.ig.CategoryFrame(5)},trendLineType:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLineTypeProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLineTypeProperty)}},trendLineBrush:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLineBrushProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLineBrushProperty)}},actualTrendLineBrush:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.actualTrendLineBrushProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.actualTrendLineBrushProperty)}},trendLineThickness:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLineThicknessProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLineThicknessProperty)}},trendLineDashCap:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLineDashCapProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLineDashCapProperty)}},trendLineDashArray:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLineDashArrayProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLineDashArrayProperty)}},trendLinePeriod:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLinePeriodProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLinePeriodProperty)}},trendLineZIndex:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.trendLineZIndexProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.trendLineZIndexProperty)}},fz:function(a,b,c,d){if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis()).notifyDataChanged()}this.ls().cr().q(this.resolution());this.ls().c2().ad(a,b,c,d);if(this.yAxis()!=null){this.yAxis().updateRange()}this.renderSeries(true)},displayType:function(a){if(arguments.length===1){this.c($.ig.FinancialPriceSeries.prototype.displayTypeProperty,a);return a}else{return this.b($.ig.FinancialPriceSeries.prototype.displayTypeProperty)}},ft:function(a,b,c,d){switch(b){case $.ig.FinancialPriceSeries.prototype.ij:this.ls().dc();break}$.ig.FinancialSeries.prototype.ft.call(this,a,b,c,d);if(this.ls().c2()!=null&&this.ls().c2().ae(a,b,c,d,this.trendLineDashArray())){this.renderSeries(false);this.fs()}switch(b){case $.ig.FinancialPriceSeries.prototype.lg:if(this.rootCanvas()!=null){this.lw();this.kj(this.i6,this.ls())}this.fs();break;case $.ig.FinancialPriceSeries.prototype.cf:this.f6();break;case $.ig.FinancialPriceSeries.prototype.cd:this.fs();break}},lw:function(){this.ls().c7();if(this.d7()!=null){this.d7().c7()}},e9:function(a){if(a!=null&&a==this.yAxis()&&this.jv()!=null&&!isNaN(this.jv().minimum())&&this.ju()!=null&&!isNaN(this.ju().maximum())){return new $.ig.AxisRange(this.jv().minimum(),this.ju().maximum())}return null},scrollIntoView:function(a){var b=this.eb()!=null?this.eb().item1(a):-1;var c=this.view().ae();var d=this.view().ad();var e=new $.ig.Rect(0,0,0,1,1);if(b>=0&&c!=null&&d!=null){if(this.xAxis()!=null){var f=new $.ig.ScalerParams(e,e,this.xAxis().isInverted());var g=this.xAxis().getScaledValue(b,f);if(g<c.left()+.1*c.width()){g=g+.4*c.width()}if(g>c.right()-.1*c.width()){g=g-.4*c.width()}c.x(g-.5*c.width())}if(this.yAxis()!=null&&this.jv()!=null&&this.ju()!=null&&b<this.jv().count()&&b<this.ju().count()){var h=new $.ig.ScalerParams(e,e,this.yAxis().isInverted());var i=this.yAxis().getScaledValue(this.jv().item(b),h);var j=this.yAxis().getScaledValue(this.ju().item(b),h);if(!isNaN(i)&&!isNaN(j)){var k=Math.abs(i-j);if(c.height()<k){c.height(k);c.y(Math.min(i,j))}else{if(i<c.top()+.1*c.height()){i=i+.4*c.height()}if(i>c.bottom()-.1*c.height()){i=i-.4*c.height()}c.y(i-.5*c.height())}}}this.syncLink().bn(this.seriesViewer(),c)}return b>=0},ff:function(a,b,c){var d=$.ig.FinancialSeries.prototype.ff.call(this,a,b,c);if(this.jt()==null||this.jw()==null||this.ju()==null||this.jv()==null){d=false}return d},lx:function(a){return a},ki:function(a,b){var $self=this;var c=b.ae();var d=b.ad();var e=this.xAxis();var f=this.yAxis();var g=new $.ig.ScalerParams(c,d,e.isInverted());var h=new $.ig.ScalerParams(c,d,f.isInverted());a.f.clear();a.h.clear();a.i.clear();var i=0;var j=$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis());if(j!=null&&j.sortedIndices().count()!=this.eb().g()){return}i=this.getOffset(c,d);var k=$.ig.util.cast($.ig.FinancialPriceSeriesView.prototype.$type,b);if(this.trendLineType()!=$.ig.TrendLineType.prototype.none){var l=new Array(this.eb().g());var m=0;var o=this.jz().getEnumerator();while(o.moveNext()){var n=o.current();l[m]=n;m++}this.ls().c2().prepareLine(a.i,this.trendLineType(),l,this.trendLinePeriod(),function(p){return $self.xAxis().getScaledValue(p,g)},function(q){return $self.yAxis().getScaledValue(q,h)},function(){var $ret=new $.ig.TrendResolutionParams;$ret.j(b.cr().h());$ret.h(b.cr().f());$ret.i(b.cr().g());$ret.n(i);$ret.m($self.resolution());$ret.k(d);return $ret}())}var r=this.lx(this.xAxis().getUnscaledValue(2,g)-this.xAxis().getUnscaledValue(1,g));for(var s=b.cr().f();s<=b.cr().g();++s){var t;if(j==null){t=b.cr().getBucket(s)}else{var u=j.sortedIndices().__inner[s];var v=j.getUnscaledValueAt(u);var w=this.lx(this.jt().item(u));var x=this.lx(this.ju().item(u));var y=this.lx(this.jv().item(u));var z=this.lx(this.jw().item(u));var aa=w;var ab=x;var ac=y;var ad=z;var ae=v;while(s<b.cr().g()){u=j.sortedIndices().__inner[s+1];ae=j.getUnscaledValueAt(u);if(ae-v>r){break}s++;ab=Math.max(x,this.lx(this.ju().item(u)));ac=Math.min(y,this.lx(this.jv().item(u)));ad=this.lx(this.jw().item(u))}var af=NaN;if(!isNaN(v)){af=this.xAxis().getScaledValue(v,g)}t=function(){var $ret=new Array;$ret.add($self.lx(af));$ret.add(aa);$ret.add(ab);$ret.add(ac);$ret.add(ad);return $ret}()}if(!isNaN(t[0])){if(this.xAxis()!=null&&$.ig.util.cast($.ig.ISortingAxis.prototype.$type,this.xAxis())!==null){t[0]=t[0]+i}else{t[0]=e.getScaledValue(t[0],g)+i}t[1]=f.getScaledValue(t[1],h);t[2]=f.getScaledValue(t[2],h);t[3]=f.getScaledValue(t[3],h);t[4]=f.getScaledValue(t[4],h);a.f.add(t)}}return},fg:function(a,b){$.ig.Series.prototype.fg.call(this,a,b);var c=$.ig.util.cast($.ig.FinancialPriceSeriesView.prototype.$type,b);c.c8();if(c.c2()!=null){c.c2().ab()}},kj:function(a,b){var $self=this;if(this.xAxis()==null||this.yAxis()==null){return}var c=$.ig.util.cast($.ig.FinancialPriceSeriesView.prototype.$type,b);c.c8();if(c.c2()!=null){c.c2().ab()}var d=this.displayType();var e=this.xAxis().he(b.ae(),b.ad())/2;e=Math.max(e,$.ig.FinancialPriceSeries.prototype.lh);var f=$.ig.util.cast($.ig.FinancialPriceSeriesView.prototype.$type,b);var g=f.c9();var h=f.da();if(this.trendLineType()!=$.ig.TrendLineType.prototype.none){c.c2().t(a.i)}var i=a.f;for(var j=0;j<i.count();++j){var k=i.__inner[j][0]-e;var l=i.__inner[j][0];var m=i.__inner[j][0]+e;var n=i.__inner[j][1];var o=i.__inner[j][2];var p=i.__inner[j][3];var q=i.__inner[j][4];if(isNaN(n)||isNaN(o)||isNaN(p)||isNaN(q)){continue}var r=n<q;var s=r?h:g;switch(d){case $.ig.PriceDisplayType.prototype.candlestick:if(r){var t=n;n=q;q=t}s.e().add(function(){var $ret=new $.ig.LineGeometry;$ret.e({__x:l,__y:p,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.f({__x:l,__y:n,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());s.e().add(function(){var $ret=new $.ig.RectangleGeometry;$ret.f(new $.ig.Rect(0,k,q,m-k,n-q));return $ret}());s.e().add(function(){var $ret=new $.ig.LineGeometry;$ret.e({__x:l,__y:q,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.f({__x:l,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());break;case $.ig.PriceDisplayType.prototype.oHLC:s.e().add(function(){var $ret=new $.ig.LineGeometry;$ret.e({__x:k,__y:n,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.f({__x:l,__y:n,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());s.e().add(function(){var $ret=new $.ig.LineGeometry;$ret.e({__x:l,__y:p,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.f({__x:l,__y:o,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());s.e().add(function(){var $ret=new $.ig.LineGeometry;$ret.e({__x:l,__y:q,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});$ret.f({__x:m,__y:q,$type:$.ig.Point.prototype.$type,getType:$.ig.Object.prototype.getType,getGetHashCode:$.ig.Object.prototype.getGetHashCode,typeName:$.ig.Object.prototype.typeName});return $ret}());break}}},e8:function(a,b){if(a==this.ls().c2().n()){return null}return $.ig.Series.prototype.e8.call(this,a,b)},f6:function(){$.ig.Series.prototype.f6.call(this);if(this.index()<0){return}this.ls().db()},ho:function(a){$.ig.Series.prototype.ho.call(this,a);var b=new $.ig.PolyLineVisualData(1,"trendLine",this.ls().c2().n());b.tags().add("Trend");a.shapes().add(b)},$type:new $.ig.Type("FinancialPriceSeries",$.ig.FinancialSeries.prototype.$type)},true);$.ig.util.defType("FinancialPriceBucketCalculator","FinancialBucketCalculator",{init:function(a){$.ig.FinancialBucketCalculator.prototype.init.call(this,a)},getBucket:function(a){var $self=this;var b=a*this.h();var c=Math.min(b+this.h()-1,this.e().cq().eb().g()-1);if(b<=c&&b>=0&&c>=0){var d=this.e().cq().jt().item(b);var e=Number.NEGATIVE_INFINITY;var f=Number.POSITIVE_INFINITY;var g=this.e().cq().jw().item(c);for(var h=b;h<=c;++h){e=Math.max(e,this.e().cq().ju().item(h));f=Math.min(f,this.e().cq().jv().item(h))}f=Math.min(d,f);e=Math.max(g,e);return function(){var $ret=new Array;$ret.add(.5*(b+c));$ret.add(d);$ret.add(e);$ret.add(f);$ret.add(g);return $ret}()}return function(){var $ret=new Array;$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);$ret.add(NaN);return $ret}()},$type:new $.ig.Type("FinancialPriceBucketCalculator",$.ig.FinancialBucketCalculator.prototype.$type)},true);$.ig.util.defType("FinancialPriceSeriesView","FinancialSeriesView",{_c1:null,c1:function(a){if(arguments.length===1){this._c1=a;return a}else{return this._c1}},init:function(a){this.cx=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.GeometryGroup);return $ret}();this.cy=function(){var $ret=new $.ig.Path;$ret.bn(new $.ig.GeometryGroup);return $ret}();$.ig.FinancialSeriesView.prototype.init.call(this,a);this.c1(a);this.c2(new $.ig.CategoryTrendLineManager)},cw:function(){return new $.ig.FinancialPriceBucketCalculator(this)},ak:function(){var $self=this;$.ig.FinancialSeriesView.prototype.ak.call(this);if(!this.af()){this.cq().negativeBrush(function(){var $ret=new $.ig.Brush;$ret.__fill="#415460";return $ret}());this.cq().resolution(2);this.cq().thickness(1);this.cq().outline(function(){var $ret=new $.ig.Brush;$ret.__fill="#222222";return $ret}())}},cx:null,cy:null,_c2:null,c2:function(a){if(arguments.length===1){this._c2=a;return a}else{return this._c2}},c7:function(){if(this.c1().displayType()==$.ig.PriceDisplayType.prototype.oHLC){this.cx.__stroke=this.w().actualBrush()}else{this.cx.__stroke=this.w().actualOutline()}if(this.c1().displayType()==$.ig.PriceDisplayType.prototype.oHLC){this.cy.__stroke=this.cq().negativeBrush()}else{this.cy.__stroke=this.w().actualOutline()}},c8:function(){var a=$.ig.util.cast($.ig.GeometryGroup.prototype.$type,this.cx.bn());var b=$.ig.util.cast($.ig.GeometryGroup.prototype.$type,this.cy.bn());a.reset1();b.reset1();this.ar()},c9:function(){this.ar();return $.ig.util.cast($.ig.GeometryGroup.prototype.$type,this.cx.bn())},da:function(){this.ar();return $.ig.util.cast($.ig.GeometryGroup.prototype.$type,this.cy.bn())},db:function(){this.c1().actualTrendLineBrush(null);if(this.c1().trendLineBrush()!=null){this.c1().actualTrendLineBrush(this.c1().trendLineBrush())}else{this.c1().actualTrendLineBrush(this.c1().actualBrush())}},a0:function(){$.ig.SeriesView.prototype.a0.call(this);this.cx.a5(this.w().thickness());this.cx.a6(this.w().dashArray());this.cx.a7(this.w().dashCap());if(this.c1().displayType()==$.ig.PriceDisplayType.prototype.oHLC){this.cx.__stroke=this.w().actualBrush()}else{this.cx.__stroke=this.w().actualOutline();this.cx.__fill=this.w().actualBrush()}this.cy.a5(this.w().thickness());this.cy.a6(this.w().dashArray());this.cy.a7(this.w().dashCap());if(this.c1().displayType()==$.ig.PriceDisplayType.prototype.oHLC){this.cy.__stroke=this.cq().negativeBrush()}else{this.cy.__stroke=this.w().actualOutline();this.cy.__fill=this.cq().negativeBrush()}},a1:function(){$.ig.SeriesView.prototype.a1.call(this);var a=this.a3();this.cx.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);if(this.c1().displayType()==$.ig.PriceDisplayType.prototype.oHLC){this.cx.__stroke=a}else{this.cx.__stroke=a;this.cx.__fill=a}this.cy.a5(this.w().thickness()+$.ig.SeriesView.prototype.b);if(this.c1().displayType()==$.ig.PriceDisplayType.prototype.oHLC){this.cy.__stroke=a}else{this.cy.__stroke=a;this.cy.__fill=a}},a4:function(a,b){$.ig.SeriesView.prototype.a4.call(this,a,b);if(a.b()){if(this.l&&!b){var c=this.cd(this.c1().yAxis());a.e($.ig.GradientDirection.prototype.bottomTop,c)}a.g(this.cx);a.g(this.cy)}},a5:function(a,b){if(a.b()){if(this.c1().trendLineType()!=$.ig.TrendLineType.prototype.none&&!b){var c=this.c2().n();c.a5(this.c1().trendLineThickness());c.__stroke=this.c1().actualTrendLineBrush();c.a6(this.c1().trendLineDashArray());c.a7(this.c1().trendLineDashCap());if(this.l&&!b){a.e($.ig.GradientDirection.prototype.bottomTop,null)}a.l(c)}}$.ig.SeriesView.prototype.a5.call(this,a,b)},ca:function(a){$.ig.SeriesView.prototype.ca.call(this,a);var b=new $.ig.PathVisualData(1,"positivePathShape",this.cx);b.tags().add("Positive");b.tags().add("Main");var c=new $.ig.PathVisualData(1,"negativePathShape",this.cy);c.tags().add("Negative");a.shapes().add(b);a.shapes().add(c)},dc:function(){this.c2($.ig.CategoryTrendLineManagerBase.prototype.af(this.c2(),this.cq().xAxis(),this.w().rootCanvas(),this.cq()))},$type:new $.ig.Type("FinancialPriceSeriesView",$.ig.FinancialSeriesView.prototype.$type)},true);$.ig.util.defType("FinancialValueList","Object",{a:null,b:null,c:null,d:null,e:null,init:function(a,b,c,d,e){$.ig.Object.prototype.init.call(this);this.a=a;this.b=b;this.c=d;this.d=c;this.e=e},indexOf:function(a){throw new $.ig.NotImplementedException},insert:function(a,b){throw new $.ig.NotImplementedException},removeAt:function(a){throw new $.ig.NotImplementedException},item:function(b,a){if(arguments.length===2){throw new $.ig.NotImplementedException;return a}else{var c=NaN;var d=NaN;var e=NaN;var f=NaN;var g=NaN;if(this.a!=null&&b>=0&&b<this.a.count()){c=this.a.item(b)}if(this.b!=null&&b>=0&&b<this.b.count()){d=this.b.item(b)}if(this.d!=null&&b>=0&&b<this.d.count()){e=this.d.item(b)}if(this.c!=null&&b>=0&&b<this.c.count()){f=this.c.item(b)}if(this.e!=null&&b>=0&&b<this.e.count()){g=this.e.item(b)}var h=isNaN(c);var i=isNaN(d);var j=isNaN(e);var k=isNaN(f);var l=isNaN(g);if(!i&&!j&&!k){return(d+e+f)/3}if(!i&&!j){return(d+e)/2}if(!h&&!k){return(c+f)/2}if(!h){return c}if(!i){return d}if(!j){return e}if(!k){return f}return NaN}},add:function(a){throw new $.ig.NotImplementedException},clear:function(){throw new $.ig.NotImplementedException},contains:function(a){throw new $.ig.NotImplementedException},f:function(a,b){throw new $.ig.NotImplementedException},count:function(){var b=0;var c=0;var d=0;var e=0;var f=0;if(this.a!=null){b=this.a.count()}if(this.b!=null){c=this.b.count()}if(this.d!=null){d=this.d.count()}if(this.c!=null){e=this.c.count()}if(this.e!=null){f=this.e.count()}var g=0;g=Math.max(g,b);g=Math.max(g,c);g=Math.max(g,d);g=Math.max(g,e);g=Math.max(g,f);return g},isReadOnly:function(){return true},remove:function(a){throw new $.ig.NotImplementedException},getEnumerator:function(){throw new $.ig.NotImplementedException},$type:new $.ig.Type("FinancialValueList",$.ig.Object.prototype.$type,[$.ig.IList$1.prototype.$type.specialize(Number)])},true);$.ig.util.defType("FinancialCalculationDataSource","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_openColumn:null,openColumn:function(a){if(arguments.length===1){this._openColumn=a;return a}else{return this._openColumn}},_closeColumn:null,closeColumn:function(a){if(arguments.length===1){this._closeColumn=a;return a}else{return this._closeColumn}},_highColumn:null,highColumn:function(a){if(arguments.length===1){this._highColumn=a;return a}else{return this._highColumn}},_lowColumn:null,lowColumn:function(a){if(arguments.length===1){this._lowColumn=a;return a}else{return this._lowColumn}},_volumeColumn:null,volumeColumn:function(a){if(arguments.length===1){this._volumeColumn=a;return a}else{return this._volumeColumn}},_indicatorColumn:null,indicatorColumn:function(a){if(arguments.length===1){this._indicatorColumn=a;return a}else{return this._indicatorColumn}},_typicalColumn:null,typicalColumn:function(a){if(arguments.length===1){this._typicalColumn=a;return a}else{return this._typicalColumn}},_trueRange:null,trueRange:function(a){if(arguments.length===1){this._trueRange=a;return a}else{return this._trueRange}},_trueLow:null,trueLow:function(a){if(arguments.length===1){this._trueLow=a;return a}else{return this._trueLow}},_period:null,period:function(a){if(arguments.length===1){this._period=a;return a}else{return this._period}},_shortPeriod:null,shortPeriod:function(a){if(arguments.length===1){this._shortPeriod=a;return a}else{return this._shortPeriod}},_longPeriod:null,longPeriod:function(a){if(arguments.length===1){this._longPeriod=a;return a}else{return this._longPeriod}},_count:null,count:function(a){if(arguments.length===1){this._count=a;return a}else{return this._count}},_calculateFrom:null,calculateFrom:function(a){if(arguments.length===1){this._calculateFrom=a;return a}else{return this._calculateFrom}},_calculateCount:null,calculateCount:function(a){if(arguments.length===1){this._calculateCount=a;return a}else{return this._calculateCount}},_multiplier:null,multiplier:function(a){if(arguments.length===1){this._multiplier=a;return a}else{return this._multiplier}},_minimumValue:null,minimumValue:function(a){if(arguments.length===1){this._minimumValue=a;return a}else{return this._minimumValue}},_maximumValue:null,maximumValue:function(a){if(arguments.length===1){this._maximumValue=a;return a}else{return this._maximumValue}},_specifiesRange:null,specifiesRange:function(a){if(arguments.length===1){this._specifiesRange=a;return a}else{return this._specifiesRange}},$type:new $.ig.Type("FinancialCalculationDataSource",$.ig.Object.prototype.$type)},true);$.ig.util.defType("FinancialCalculationSupportingCalculations","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_l:null,l:function(a){if(arguments.length===1){this._l=a;return a}else{return this._l}},_m:null,m:function(a){if(arguments.length===1){this._m=a;return a}else{return this._m}},_n:null,n:function(a){if(arguments.length===1){this._n=a;return a}else{return this._n}},_o:null,o:function(a){if(arguments.length===1){this._o=a;return a}else{return this._o}},_p:null,p:function(a){if(arguments.length===1){this._p=a;return a}else{return this._p}},_q:null,q:function(a){if(arguments.length===1){this._q=a;return a}else{return this._q}},_r:null,r:function(a){if(arguments.length===1){this._r=a;return a}else{return this._r}},_s:null,s:function(a){if(arguments.length===1){this._s=a;return a}else{return this._s}},_t:null,t:function(a){if(arguments.length===1){this._t=a;return a}else{return this._t}},_u:null,u:function(a){if(arguments.length===1){this._u=a;return a}else{return this._u}},_v:null,v:function(a){if(arguments.length===1){this._v=a;return a}else{return this._v}},$type:new $.ig.Type("FinancialCalculationSupportingCalculations",$.ig.Object.prototype.$type)},true);$.ig.util.defType("SupportingCalculation$1","Object",{$tCalculationStrategy:null,init:function($tCalculationStrategy,initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}this.$tCalculationStrategy=$tCalculationStrategy;this.$type=this.$type.specialize(this.$tCalculationStrategy);$.ig.Object.prototype.init.call(this);this.a=a;this.b=new $.ig.List$1(String,0)},init1:function($tCalculationStrategy,initNumber,a,b){this.$tCalculationStrategy=$tCalculationStrategy;this.$type=this.$type.specialize(this.$tCalculationStrategy);$.ig.Object.prototype.init.call(this);this.a=a;this.b=new $.ig.List$1(String,1,b)},a:null,b:null,c:function(){return this.a},d:function(){return this.b},$type:new $.ig.Type("SupportingCalculation$1",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ColumnSupportingCalculation","SupportingCalculation$1",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.SupportingCalculation$1.prototype.init.call(this,$.ig.SupportingCalculationStrategy.prototype.$type,a)},init1:function(initNumber,a,b){$.ig.SupportingCalculation$1.prototype.init1.call(this,$.ig.SupportingCalculationStrategy.prototype.$type,1,a,b)},$type:new $.ig.Type("ColumnSupportingCalculation",$.ig.SupportingCalculation$1.prototype.$type.specialize($.ig.SupportingCalculationStrategy.prototype.$type))},true);$.ig.util.defType("DataSourceSupportingCalculation","SupportingCalculation$1",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.SupportingCalculation$1.prototype.init.call(this,$.ig.ProvideColumnValuesStrategy.prototype.$type,a)},init1:function(initNumber,a,b){$.ig.SupportingCalculation$1.prototype.init1.call(this,$.ig.ProvideColumnValuesStrategy.prototype.$type,1,a,b)},$type:new $.ig.Type("DataSourceSupportingCalculation",$.ig.SupportingCalculation$1.prototype.$type.specialize($.ig.ProvideColumnValuesStrategy.prototype.$type))},true);$.ig.util.defType("CalculatedColumn","Object",{init:function(initNumber,a,b){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.Object.prototype.init.call(this);this.__valuesProvider=a;this.a=new $.ig.List$1(String,1,b)},init1:function(initNumber,a,b){$.ig.Object.prototype.init.call(this);this.__valuesProvider=a;this.a=new $.ig.List$1(String,1,b)},__valuesProvider:null,a:null,basedOn:function(){return this.a},getEnumerator:function(){return this.__valuesProvider.getEnumerator()},$type:new $.ig.Type("CalculatedColumn",$.ig.Object.prototype.$type,[$.ig.IEnumerable$1.prototype.$type.specialize(Number)])},true);$.ig.util.defType("Legend","LegendBase",{bz:function(){return new $.ig.LegendView(this)},b0:function(a){$.ig.LegendBase.prototype.b0.call(this,a);this.cj(a)},_cj:null,cj:function(a){if(arguments.length===1){this._cj=a;return a}else{return this._cj}},init:function(){var $self=this;$.ig.LegendBase.prototype.init.call(this);this.a3($.ig.Legend.prototype.$type);this.children().collectionChanged=$.ig.Delegate.prototype.combine(this.children().collectionChanged,function(a,b){if(b.oldItems()!=null){var d=b.oldItems().getEnumerator();while(d.moveNext()){var c=d.current();$self.cj().aa(c)}}if(b.newItems()!=null){var f=b.newItems().getEnumerator();while(f.moveNext()){var e=f.current();$self.cj().ab(e)}}})},b3:function(a,b){var $self=this;if($.ig.util.cast($.ig.StackedSeriesBase.prototype.$type,b)!==null){return}if(!b.isUsableInLegend()){return}var c=0;var e=this.children().getEnumerator();while(e.moveNext()){var d=e.current();var f;var g;var h;(function(){var $ret=$self.bv().u(d,f,g,h);f=$ret.chart;g=$ret.series;h=$ret.item;return $ret.ret})();if(b.seriesViewer()!=null&&f!=null&&(this.cm(b.seriesViewer())<this.cm(f)||this.cm(b.seriesViewer())==-1&&this.cm(f)==-1&&b.seriesViewer().getHashCode()<f.getHashCode())){break}if(b.seriesViewer()!=null&&f!=null&&b.seriesViewer()==f&&g!=null){var i=b.index();var j=g.index();var k=this.cm(b);var l=this.cm(g);if($.ig.util.cast($.ig.FragmentBase.prototype.$type,b)!==null||$.ig.util.cast($.ig.SplineFragmentBase.prototype.$type,b)!==null){var m=$.ig.util.cast($.ig.FragmentBase.prototype.$type,b)!==null?$.ig.util.cast($.ig.FragmentBase.prototype.$type,b).parentSeries():$.ig.util.cast($.ig.SplineFragmentBase.prototype.$type,b).parentSeries();if(m.reverseLegendOrder()){i=m.index()+m.k1().count()-m.kz().i().indexOf($.ig.util.cast($.ig.AnchoredCategorySeries.prototype.$type,b))}}if($.ig.util.cast($.ig.FragmentBase.prototype.$type,g)!==null||$.ig.util.cast($.ig.SplineFragmentBase.prototype.$type,g)!==null){var n=$.ig.util.cast($.ig.FragmentBase.prototype.$type,g)!==null?$.ig.util.cast($.ig.FragmentBase.prototype.$type,g).parentSeries():$.ig.util.cast($.ig.SplineFragmentBase.prototype.$type,g).parentSeries();if(n.reverseLegendOrder()){j=n.index()+n.k1().count()-n.kz().i().indexOf($.ig.util.cast($.ig.AnchoredCategorySeries.prototype.$type,g))}}if($.ig.util.cast($.ig.BarSeries.prototype.$type,g)!==null){if(l==-1&&k==-1){c=0;break}if(k<l||l==-1){break}}if(i<=j){break}}c++}this.children().insert(c,a);var o=new $.ig.LegendItemInfo;o.f(a);o.g(b);var p=$.ig.util.cast($.ig.ContentControl.prototype.$type,a);if(p!=null&&p.content()!=null){var q=$.ig.util.cast($.ig.DataContext.prototype.$type,p.content());if(q!=null){o.h(q);o.e(q.itemLabel())}}},cm:function(a){return-1},$type:new $.ig.Type("Legend",$.ig.LegendBase.prototype.$type)},true);$.ig.util.defType("LegendView","LegendBaseView",{init:function(a){$.ig.LegendBaseView.prototype.init.call(this,a);this.aq(a)},_aq:null,aq:function(a){if(arguments.length===1){this._aq=a;
return a}else{return this._aq}},r:function(){$.ig.LegendBaseView.prototype.r.call(this)},$type:new $.ig.Type("LegendView",$.ig.LegendBaseView.prototype.$type)},true);$.ig.util.defType("SortedListView$1","Object",{$t:null,a:null,b:null,init:function($t,a,b){this.a=null;this.b=null;this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.Object.prototype.init.call(this);this.a=b;this.b=a},add:function(a){throw new $.ig.NotImplementedException},clear:function(){throw new $.ig.NotImplementedException},contains:function(a){return this.b.contains(a)},indexOf:function(a){return this.a.indexOf(this.b.indexOf(a))},insert:function(a,b){throw new $.ig.NotImplementedException},c:function(){return true},isReadOnly:function(){return true},remove:function(a){throw new $.ig.NotImplementedException},removeAt:function(a){throw new $.ig.NotImplementedException},item:function(b,a){if(arguments.length===2){throw new $.ig.NotImplementedException;return a}else{return this.b.item(this.a.item(b))}},count:function(){return this.b.count()},d:function(){throw new $.ig.NotImplementedException},e:function(){throw new $.ig.NotImplementedException},getEnumerator:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:this.$current=this.$this.item(this.$a);this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:if(this.$a<this.$this.count()){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.AbstractEnumerator($iter())},copyTo:function(a,b){throw new $.ig.NotImplementedException},$type:new $.ig.Type("SortedListView$1",$.ig.Object.prototype.$type,[$.ig.IList$1.prototype.$type.specialize(0)])},true);$.ig.PriceDisplayType.prototype.candlestick=0;$.ig.PriceDisplayType.prototype.oHLC=1;$.ig.TimeAxisDisplayType.prototype.continuous=0;$.ig.TimeAxisDisplayType.prototype.discrete=1;$.ig.IndicatorDisplayType.prototype.line=0;$.ig.IndicatorDisplayType.prototype.area=1;$.ig.IndicatorDisplayType.prototype.column=2;$.ig.CategoryDateTimeXAxis.prototype.hu="DisplayType";$.ig.CategoryDateTimeXAxis.prototype.hv="MinimumValue";$.ig.CategoryDateTimeXAxis.prototype.hw="MaximumValue";$.ig.CategoryDateTimeXAxis.prototype.hx="Interval";$.ig.CategoryDateTimeXAxis.prototype.hy="ActualMinimumValue";$.ig.CategoryDateTimeXAxis.prototype.hz="ActualMaximumValue";$.ig.CategoryDateTimeXAxis.prototype.h0="DateTimeMemberPath";$.ig.CategoryDateTimeXAxis.prototype.h1="DateTimeColumn";$.ig.CategoryDateTimeXAxis.prototype.displayTypeProperty=$.ig.DependencyProperty.prototype.l($.ig.CategoryDateTimeXAxis.prototype.hu,$.ig.TimeAxisDisplayType.prototype.$type,$.ig.CategoryDateTimeXAxis.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.TimeAxisDisplayType.prototype.continuous,function(a,b){$.ig.util.cast($.ig.CategoryDateTimeXAxis.prototype.$type,a).e8($.ig.CategoryDateTimeXAxis.prototype.hu,b.f(),b.e())}));$.ig.CategoryDateTimeXAxis.prototype.minimumValueProperty=$.ig.DependencyProperty.prototype.l($.ig.CategoryDateTimeXAxis.prototype.hv,$.ig.Date.prototype.$type,$.ig.CategoryDateTimeXAxis.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.CategoryDateTimeXAxis.prototype.$type,a).e8($.ig.CategoryDateTimeXAxis.prototype.hv,b.f(),b.e())}));$.ig.CategoryDateTimeXAxis.prototype.maximumValueProperty=$.ig.DependencyProperty.prototype.l($.ig.CategoryDateTimeXAxis.prototype.hw,$.ig.Date.prototype.$type,$.ig.CategoryDateTimeXAxis.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.CategoryDateTimeXAxis.prototype.$type,a).e8($.ig.CategoryDateTimeXAxis.prototype.hw,b.f(),b.e())}));$.ig.CategoryDateTimeXAxis.prototype.intervalProperty=$.ig.DependencyProperty.prototype.l($.ig.CategoryDateTimeXAxis.prototype.hx,$.ig.Number.prototype.$type,$.ig.CategoryDateTimeXAxis.prototype.$type,new $.ig.PropertyMetadata(1,0,function(a,b){$.ig.util.cast($.ig.CategoryDateTimeXAxis.prototype.$type,a).e8($.ig.CategoryDateTimeXAxis.prototype.hx,b.f(),b.e())}));$.ig.CategoryDateTimeXAxis.prototype.dateTimeMemberPathProperty=$.ig.DependencyProperty.prototype.l($.ig.CategoryDateTimeXAxis.prototype.h0,String,$.ig.CategoryDateTimeXAxis.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.CategoryDateTimeXAxis.prototype.$type,a).e8($.ig.CategoryDateTimeXAxis.prototype.h0,b.f(),b.e())}));$.ig.CategoryXAxis.prototype.hu="Interval";$.ig.CategoryXAxis.prototype.intervalProperty=$.ig.DependencyProperty.prototype.l($.ig.CategoryXAxis.prototype.hu,Number,$.ig.CategoryXAxis.prototype.$type,new $.ig.PropertyMetadata(1,NaN,function(a,b){$.ig.util.cast($.ig.CategoryXAxis.prototype.$type,a).e8($.ig.CategoryXAxis.prototype.hu,b.f(),b.e());$.ig.util.cast($.ig.CategoryXAxis.prototype.$type,a).e1(false)}));$.ig.FinancialSeries.prototype.ii="NegativeBrush";$.ig.FinancialSeries.prototype.ij="XAxis";$.ig.FinancialSeries.prototype.ik="YAxis";$.ig.FinancialSeries.prototype.il="OpenMemberPath";$.ig.FinancialSeries.prototype.im="OpenColumn";$.ig.FinancialSeries.prototype.io="HighMemberPath";$.ig.FinancialSeries.prototype.ip="HighColumn";$.ig.FinancialSeries.prototype.iq="LowMemberPath";$.ig.FinancialSeries.prototype.ir="LowColumn";$.ig.FinancialSeries.prototype.is="CloseMemberPath";$.ig.FinancialSeries.prototype.it="CloseColumn";$.ig.FinancialSeries.prototype.iu="VolumeMemberPath";$.ig.FinancialSeries.prototype.iv="VolumeColumn";$.ig.FinancialSeries.prototype.negativeBrushProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.ii,$.ig.Brush.prototype.$type,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.ii,b.f(),b.e())}));$.ig.FinancialSeries.prototype.xAxisProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.ij,$.ig.CategoryAxisBase.prototype.$type,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.ij,b.f(),b.e())}));$.ig.FinancialSeries.prototype.yAxisProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.ik,$.ig.NumericYAxis.prototype.$type,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.ik,b.f(),b.e())}));$.ig.FinancialSeries.prototype.openMemberPathProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.il,String,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.il,b.f(),b.e())}));$.ig.FinancialSeries.prototype.highMemberPathProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.io,String,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.io,b.f(),b.e())}));$.ig.FinancialSeries.prototype.lowMemberPathProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.iq,String,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.iq,b.f(),b.e())}));$.ig.FinancialSeries.prototype.closeMemberPathProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.is,String,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.is,b.f(),b.e())}));$.ig.FinancialSeries.prototype.volumeMemberPathProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialSeries.prototype.iu,String,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialSeries.prototype.$type,a).e6($.ig.FinancialSeries.prototype.iu,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.lg="DisplayType";$.ig.FinancialIndicator.prototype.lh="IgnoreFirst";$.ig.FinancialIndicator.prototype.displayTypeProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.lg,$.ig.IndicatorDisplayType.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.IndicatorDisplayType.prototype.line,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.lg,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.ignoreFirstProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.lh,$.ig.Number.prototype.$type,$.ig.FinancialSeries.prototype.$type,new $.ig.PropertyMetadata(1,0,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.lh,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLineTypeProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.cd,$.ig.TrendLineType.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.TrendLineType.prototype.none,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.cd,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLineBrushProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.cf,$.ig.Brush.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.cf,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.actualTrendLineBrushProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.cg,$.ig.Brush.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.cg,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLineThicknessProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.ch,Number,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,1.5,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.ch,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLineDashCapProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.ci,$.ig.PenLineCap.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.PenLineCap.prototype.flat,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.ci,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLineDashArrayProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.cc,$.ig.DoubleCollection.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(0,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.cc,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLinePeriodProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.ce,$.ig.Number.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,7,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.ce,b.f(),b.e())}));$.ig.FinancialIndicator.prototype.trendLineZIndexProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialIndicator.prototype.cj,$.ig.Number.prototype.$type,$.ig.FinancialIndicator.prototype.$type,new $.ig.PropertyMetadata(1,1001,function(a,b){$.ig.util.cast($.ig.FinancialIndicator.prototype.$type,a).e6($.ig.FinancialIndicator.prototype.cj,b.f(),b.e())}));$.ig.StrategyBasedIndicator.prototype.mo="Period";$.ig.StrategyBasedIndicator.prototype.mp="LongPeriod";$.ig.StrategyBasedIndicator.prototype.mq="ShortPeriod";$.ig.StrategyBasedIndicator.prototype.mr="Multiplier";$.ig.StrategyBasedIndicator.prototype.ms=new $.ig.List$1(String,0);$.ig.AbsoluteVolumeOscillatorIndicator.prototype.shortPeriodProperty=$.ig.AbsoluteVolumeOscillatorIndicator.prototype.m8(10,$.ig.AbsoluteVolumeOscillatorIndicator.prototype.$type);$.ig.AbsoluteVolumeOscillatorIndicator.prototype.longPeriodProperty=$.ig.AbsoluteVolumeOscillatorIndicator.prototype.m7(30,$.ig.AbsoluteVolumeOscillatorIndicator.prototype.$type);$.ig.AverageDirectionalIndexIndicator.prototype.periodProperty=$.ig.AverageDirectionalIndexIndicator.prototype.m6(14,$.ig.AverageDirectionalIndexIndicator.prototype.$type);$.ig.AverageTrueRangeIndicator.prototype.periodProperty=$.ig.AverageTrueRangeIndicator.prototype.m6(14,$.ig.AverageTrueRangeIndicator.prototype.$type);$.ig.FinancialOverlay.prototype.lg="IgnoreFirst";$.ig.FinancialOverlay.prototype.ignoreFirstProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialOverlay.prototype.lg,$.ig.Number.prototype.$type,$.ig.FinancialOverlay.prototype.$type,new $.ig.PropertyMetadata(1,0,function(a,b){$.ig.util.cast($.ig.FinancialOverlay.prototype.$type,a).e6($.ig.FinancialOverlay.prototype.lg,b.f(),b.e())}));$.ig.BollingerBandsOverlay.prototype.lo="Period";$.ig.BollingerBandsOverlay.prototype.lp="Multiplier";$.ig.BollingerBandsOverlay.prototype.periodProperty=$.ig.DependencyProperty.prototype.l($.ig.BollingerBandsOverlay.prototype.lo,$.ig.Number.prototype.$type,$.ig.BollingerBandsOverlay.prototype.$type,new $.ig.PropertyMetadata(1,14,function(a,b){$.ig.util.cast($.ig.BollingerBandsOverlay.prototype.$type,a).e6($.ig.BollingerBandsOverlay.prototype.lo,b.f(),b.e())}));$.ig.BollingerBandsOverlay.prototype.multiplierProperty=$.ig.DependencyProperty.prototype.l($.ig.BollingerBandsOverlay.prototype.lp,Number,$.ig.BollingerBandsOverlay.prototype.$type,new $.ig.PropertyMetadata(1,2,function(a,b){$.ig.util.cast($.ig.BollingerBandsOverlay.prototype.$type,a).e6($.ig.BollingerBandsOverlay.prototype.lp,b.f(),b.e())}));$.ig.BollingerBandWidthIndicator.prototype.nf="Multiplier";$.ig.BollingerBandWidthIndicator.prototype.periodProperty=$.ig.BollingerBandWidthIndicator.prototype.m6(20,$.ig.BollingerBandWidthIndicator.prototype.$type);$.ig.BollingerBandWidthIndicator.prototype.multiplierProperty=$.ig.BollingerBandWidthIndicator.prototype.nd(2,$.ig.BollingerBandWidthIndicator.prototype.$type);$.ig.ChaikinOscillatorIndicator.prototype.shortPeriodProperty=$.ig.ChaikinOscillatorIndicator.prototype.m8(3,$.ig.ChaikinOscillatorIndicator.prototype.$type);$.ig.ChaikinOscillatorIndicator.prototype.longPeriodProperty=$.ig.ChaikinOscillatorIndicator.prototype.m7(10,$.ig.ChaikinOscillatorIndicator.prototype.$type);$.ig.ChaikinVolatilityIndicator.prototype.periodProperty=$.ig.ChaikinVolatilityIndicator.prototype.m6(10,$.ig.ChaikinVolatilityIndicator.prototype.$type);$.ig.CommodityChannelIndexIndicator.prototype.periodProperty=$.ig.CommodityChannelIndexIndicator.prototype.m6(20,$.ig.CommodityChannelIndexIndicator.prototype.$type);$.ig.DetrendedPriceOscillatorIndicator.prototype.periodProperty=$.ig.DetrendedPriceOscillatorIndicator.prototype.m6(20,$.ig.DetrendedPriceOscillatorIndicator.prototype.$type);$.ig.FastStochasticOscillatorIndicator.prototype.periodProperty=$.ig.FastStochasticOscillatorIndicator.prototype.m6(14,$.ig.FastStochasticOscillatorIndicator.prototype.$type);$.ig.ForceIndexIndicator.prototype.periodProperty=$.ig.ForceIndexIndicator.prototype.m6(0,$.ig.ForceIndexIndicator.prototype.$type);$.ig.FullStochasticOscillatorIndicator.prototype.nf="SmoothingPeriod";$.ig.FullStochasticOscillatorIndicator.prototype.ng="TriggerPeriod";$.ig.FullStochasticOscillatorIndicator.prototype.periodProperty=$.ig.FullStochasticOscillatorIndicator.prototype.m6(14,$.ig.FullStochasticOscillatorIndicator.prototype.$type);$.ig.FullStochasticOscillatorIndicator.prototype.smoothingPeriodProperty=$.ig.FullStochasticOscillatorIndicator.prototype.m5(3,$.ig.FullStochasticOscillatorIndicator.prototype.$type,"SmoothingPeriod");$.ig.FullStochasticOscillatorIndicator.prototype.triggerPeriodProperty=$.ig.FullStochasticOscillatorIndicator.prototype.m5(3,$.ig.FullStochasticOscillatorIndicator.prototype.$type,"TriggerPeriod");$.ig.MoneyFlowIndexIndicator.prototype.periodProperty=$.ig.MoneyFlowIndexIndicator.prototype.m6(14,$.ig.MoneyFlowIndexIndicator.prototype.$type);$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.nf="SignalPeriod";$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.shortPeriodProperty=$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.m8(10,$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.$type);$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.longPeriodProperty=$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.m7(30,$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.$type);$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.signalPeriodProperty=$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.m5(9,$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.$type,$.ig.MovingAverageConvergenceDivergenceIndicator.prototype.nf);$.ig.PercentagePriceOscillatorIndicator.prototype.shortPeriodProperty=$.ig.PercentagePriceOscillatorIndicator.prototype.m8(10,$.ig.PercentagePriceOscillatorIndicator.prototype.$type);$.ig.PercentagePriceOscillatorIndicator.prototype.longPeriodProperty=$.ig.PercentagePriceOscillatorIndicator.prototype.m7(30,$.ig.PercentagePriceOscillatorIndicator.prototype.$type);$.ig.PercentageVolumeOscillatorIndicator.prototype.shortPeriodProperty=$.ig.PercentageVolumeOscillatorIndicator.prototype.m8(10,$.ig.PercentageVolumeOscillatorIndicator.prototype.$type);$.ig.PercentageVolumeOscillatorIndicator.prototype.longPeriodProperty=$.ig.PercentageVolumeOscillatorIndicator.prototype.m7(30,$.ig.PercentageVolumeOscillatorIndicator.prototype.$type);$.ig.PriceChannelOverlay.prototype.lo="Period";$.ig.PriceChannelOverlay.prototype.periodProperty=$.ig.DependencyProperty.prototype.l($.ig.PriceChannelOverlay.prototype.lo,$.ig.Number.prototype.$type,$.ig.PriceChannelOverlay.prototype.$type,new $.ig.PropertyMetadata(1,14,function(a,b){$.ig.util.cast($.ig.PriceChannelOverlay.prototype.$type,a).e6($.ig.PriceChannelOverlay.prototype.lo,b.f(),b.e())}));$.ig.RateOfChangeAndMomentumIndicator.prototype.periodProperty=$.ig.RateOfChangeAndMomentumIndicator.prototype.m6(14,$.ig.RateOfChangeAndMomentumIndicator.prototype.$type);$.ig.RelativeStrengthIndexIndicator.prototype.periodProperty=$.ig.RelativeStrengthIndexIndicator.prototype.m6(14,$.ig.RelativeStrengthIndexIndicator.prototype.$type);$.ig.SlowStochasticOscillatorIndicator.prototype.periodProperty=$.ig.SlowStochasticOscillatorIndicator.prototype.m6(14,$.ig.SlowStochasticOscillatorIndicator.prototype.$type);$.ig.StandardDeviationIndicator.prototype.periodProperty=$.ig.StandardDeviationIndicator.prototype.m6(20,$.ig.StandardDeviationIndicator.prototype.$type);$.ig.StochRSIIndicator.prototype.periodProperty=$.ig.StochRSIIndicator.prototype.m6(14,$.ig.StochRSIIndicator.prototype.$type);$.ig.TRIXIndicator.prototype.periodProperty=$.ig.TRIXIndicator.prototype.m6(15,$.ig.TRIXIndicator.prototype.$type);$.ig.WilliamsPercentRIndicator.prototype.periodProperty=$.ig.WilliamsPercentRIndicator.prototype.m6(14,$.ig.WilliamsPercentRIndicator.prototype.$type);$.ig.FinancialPriceSeries.prototype.lg="DisplayType";$.ig.FinancialPriceSeries.prototype.lh=3;$.ig.FinancialPriceSeries.prototype.trendLineTypeProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.cd,$.ig.TrendLineType.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.TrendLineType.prototype.none,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.cd,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.trendLineBrushProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.cf,$.ig.Brush.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.cf,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.actualTrendLineBrushProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.cg,$.ig.Brush.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,null,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.cg,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.trendLineThicknessProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.ch,Number,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,1.5,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.ch,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.trendLineDashCapProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.ci,$.ig.PenLineCap.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.PenLineCap.prototype.flat,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.ci,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.trendLineDashArrayProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.cc,$.ig.DoubleCollection.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(0,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.cc,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.trendLinePeriodProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.ce,$.ig.Number.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,7,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.ce,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.trendLineZIndexProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.cj,$.ig.Number.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,1001,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.cj,b.f(),b.e())}));$.ig.FinancialPriceSeries.prototype.displayTypeProperty=$.ig.DependencyProperty.prototype.l($.ig.FinancialPriceSeries.prototype.lg,$.ig.PriceDisplayType.prototype.$type,$.ig.FinancialPriceSeries.prototype.$type,new $.ig.PropertyMetadata(1,$.ig.PriceDisplayType.prototype.candlestick,function(a,b){$.ig.util.cast($.ig.FinancialPriceSeries.prototype.$type,a).e6($.ig.FinancialPriceSeries.prototype.lg,b.f(),b.e())}));$.ig.Legend.prototype.ch="Orientation";$.ig.util.extCopy($.ig.ArrayUtil,[[[$.ig.RangeValueList,$.ig.FinancialValueList,$.ig.SafeReadOnlyDoubleCollection,$.ig.SafeSortedReadOnlyDoubleCollection,$.ig.SortedListView$1],["shuffle$1","insertionIndex$1","insertionIndex$11111","binarySearch$1"]]]);$.ig.util.extCopy($.ig.PointCollectionUtil,[[[$.ig.RangeValueList,$.ig.FinancialValueList,$.ig.SafeReadOnlyDoubleCollection,$.ig.SafeSortedReadOnlyDoubleCollection,$.ig.SortedListView$1],["flattenTo","getBounds2","clipTo"]],[[$.ig.RangeValueList,$.ig.FinancialValueList,$.ig.CalculatedColumn,$.ig.SafeEnumerable,$.ig.SafeReadOnlyDoubleCollection,$.ig.SafeSortedReadOnlyDoubleCollection,$.ig.SortedListView$1],["getBounds","getBounds11","getCentroid","toPointCollection","toPointList"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.RangeValueList,$.ig.FinancialValueList,$.ig.CalculatedColumn,$.ig.SafeEnumerable,$.ig.SafeReadOnlyDoubleCollection,$.ig.SafeSortedReadOnlyDoubleCollection,$.ig.SortedListView$1],["where$1","where$11111","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$111","min","min$111","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1"]],[[$.ig.RangeValueList,$.ig.FinancialValueList,$.ig.CalculatedColumn,$.ig.IntColumn,$.ig.SafeEnumerable,$.ig.SafeReadOnlyDoubleCollection,$.ig.SafeSortedReadOnlyDoubleCollection,$.ig.SortedListView$1],["ofType$1","cast$1"]]]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.RangeValueList,$.ig.FinancialValueList,$.ig.CalculatedColumn,$.ig.IntColumn,$.ig.SafeEnumerable,$.ig.SafeReadOnlyDoubleCollection,$.ig.SafeSortedReadOnlyDoubleCollection,$.ig.SortedListView$1],["asQueryable"]]]);if($.ig.SeriesViewer.prototype.staticInit&&!$.ig.SeriesViewer.prototype.staticInitCalled){$.ig.SeriesViewer.prototype.staticInit();$.ig.SeriesViewer.prototype.staticInitCalled=true}if($.ig.XamDataChart.prototype.staticInit&&!$.ig.XamDataChart.prototype.staticInitCalled){$.ig.XamDataChart.prototype.staticInit();$.ig.XamDataChart.prototype.staticInitCalled=true}