/*!@license
* Infragistics.Web.ClientUI infragistics.olap.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.ext_collectionsExtended.js
*     infragistics.ext_threading.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.ext_collectionsExtended","./infragistics.ext_threading"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["OlapDataSource:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","IConvertible:g","IFormatProvider:h","Number:i","String:j","IComparable:k","Number:l","IComparable$1:m","IEquatable$1:n","Number:o","Number:p","Number:q","NumberStyles:r","Enum:s","Array:t","IList:u","ICollection:v","IEnumerable:w","IEnumerator:x","Error:y","Error:z","Number:aa","String:ab","StringComparison:ac","RegExp:ad","CultureInfo:ae","DateTimeFormat:af","Calendar:ag","Date:ah","Number:ai","DayOfWeek:aj","DateTimeKind:ak","CalendarWeekRule:al","NumberFormatInfo:am","CompareInfo:an","CompareOptions:ao","IEnumerable$1:ap","IEnumerator$1:aq","IDisposable:ar","StringSplitOptions:as","Number:at","Number:au","Number:av","Number:aw","Number:ax","Number:ay","Assembly:az","Stream:a0","SeekOrigin:a1","RuntimeTypeHandle:a2","MethodInfo:a3","MethodBase:a4","MemberInfo:a5","ParameterInfo:a6","TypeCode:a7","ConstructorInfo:a8","PropertyInfo:a9","IOlapDataSource:ba","OlapMetadataTreeItem:bb","ICoreOlapElement:bc","OlapMetadataTreeItemType:bd","IList$1:be","ICollection$1:bf","Hierarchy:bg","HierarchyOrigin:bh","Measure:bi","AggregatorType:bj","MeasureListLocation:bk","OlapResult:bl","OlapResultAxis:bm","PositionResolver$2:bn","List$1:bo","IArray:bp","Script:bq","IArrayList:br","Array:bs","CompareCallback:bt","MulticastDelegate:bu","IntPtr:bv","Func$3:bw","Action$1:bx","Comparer$1:by","IComparer:bz","IComparer$1:b0","DefaultComparer$1:b1","Comparison$1:b2","ReadOnlyCollection$1:b3","Predicate$1:b4","NotImplementedException:b5","IPosition$2:b6","IPositionItem$2:b7","PositionItemInfo$2:b8","Dictionary$2:b9","IDictionary$2:ca","KeyValuePair$2:cb","IDictionary:cc","IEqualityComparer$1:cd","EqualityComparer$1:ce","IEqualityComparer:cf","DefaultEqualityComparer$1:cg","InvalidOperationException:ch","ArgumentException:ci","Thread:cj","ThreadStart:ck","IHierarchicalPositionItem$2:cl","Math:cm","Enumerable:cn","Func$2:co","IOrderedEnumerable$1:cp","SortedList$1:cq","ArgumentNullException:cr","EventHandler$1:cs","AsyncCompletedEventArgs:ct","EventArgs:cu","Delegate:cv","Interlocked:cw","ListSortDirection:cx","Nullable$1:cy","OlapResultTuple:cz","OlapResultAxisMember:c0","StringBuilder:c1","Environment:c2","OlapResultCell:c3","ArrayListCollection$1:c4","INotifyCollectionChanged:c5","NotifyCollectionChangedEventHandler:c6","NotifyCollectionChangedEventArgs:c7","NotifyCollectionChangedAction:c8","Cube:c9","CubeType:da","Task$1:db","Task:dc","JQueryPromise:dd","Action:de","AggregateException:df","TaskStatus:dg","TaskCompletionSource$1:dh","JQueryDeferred:di","JQuery:dj","JQueryObject:dk","Element:dl","Node:dm","ElementAttributeCollection:dn","ElementCollection:dp","WebStyle:dq","ElementNodeType:dr","document:ds","EventListener$1:dt","Event:du","DOMTokenList:dv","EventListener:dw","IElementEventHandler:dx","ElementEventHandler:dy","ElementAttribute:dz","JQueryPosition:d0","JQueryCallback:d1","JQueryEvent:d2","JQueryUICallback:d3","Member:d4","MemberType:d5","Catalog:d6","MeasureGroup:d7","DataSourceBaseOptions:d8","IOlapDataProviderFactory:d9","IOlapDiscoverDataProvider:ea","KeyValueItem:eb","Dimension:ec","DimensionType:ed","Level:ee","MeasureGroupDimension:ef","CardinalityType:eg","Kpi:eh","OlapResultView:ei","PositionInfo:ej","ResultViewHelper:ek","IPostionComparer:el","CubeMetaItemsCache:em","KpiMeasure:en","MeasureGroupMetaItemsCache:eo","Tuple$2:ep","AxisElement:eq","MeasureList:er","TaskFactory:es","TaskExtensions:et","AxisDefinitionParser:eu","MetaTreeHelper:ev","HierarchyItemPosition:ew","KpiDimension:ex","ArgumentOutOfRangeException:ey","LevelSortDirection:ez","LevelSortBehavior:e0","TupleSortDirection:e1","DataSourceBase:e2","OlapUtilities:e3","HeaderCellsLayoutOrientation:e4","LevelSpanManager:e5","SpanSource:e6","ITableViewHeadersFactory:e7","OlapTableViewHeaderCell:e8","TableViewHeadersFactory:e9","TableViewHeaderCellSource:fa","TableSuperCompactViewHeadersFactory:fb","TreeStackAttributesBehavior:fc","OlapTableViewTreeHeaderCell:fd","TreeStackChildrenFirstBehavior:fe","TreeStackNextDimensionFirstBehavior:ff","TableViewTreeHeadersFactory:fg","Stack$1:fh","ReverseArrayEnumerator$1:fi","TableViewImpl:fj","TableViewSettings:fk","RowHeaderLayout:fl","OlapTableViewResultCell:fm","ResultHeaderSorter:fn","ResultSorter$1:fo","AxisTupleVisitor:fp","AxisHeaderSortingVisitor:fq","ResultColumnValueSorter:fr","AxisValueSortingVisitor:fs","TreeLayoutTableViewSettings:ft","SourceInitHelper:fu","CoreOlapElementType:fv","CoreOlapElementParseResult:fw","CoreOlapElementParser:fx","PivotActionStatus:fy","PivotAction:fz","AxisItemsChangeType:f0","AxisChangedAction:f1","AxisItemsChangedAction:f2","ExpansionStateChangeType:f3","ExpansionStateChangedAction:f4","PivotActionManager:f5","HierarchyFilterView:f6","FilterMember:f7","INotifyPropertyChanged:f8","PropertyChangedEventHandler:f9","PropertyChangedEventArgs:ga","FilterMemberStateChangedEventArgs:gb","jQueryUtils:gc","OlapTableView:gd","IConnection:ge","IOlapExecuteCommandProvider:gf","GetPositionIndexCompletedEventArgs:gg","ScopeType:gh","LevelType:gi","AbstractEnumerable:gj","Func$1:gk","AbstractEnumerator:gl","GenericEnumerable$1:gm","GenericEnumerator$1:gn"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compare,$x=$.ig.util.replace,$y=$.ig.util.stringFormat,$z=$.ig.util.stringFormat1,$0=$.ig.util.stringFormat2,$1=$.ig.util.stringCompare1,$2=$.ig.util.stringCompare2,$3=$.ig.util.stringCompare3,$4=$.ig.util.compareSimple;$d("MemberType:d5",false,false,{Unknown:0,Regular:1,All:2,Measure:3,Formula:4});$d("CardinalityType:eg",false,false,{One:0,Many:1});$d("AggregatorType:bj",false,false,{Unknown:0,Sum:1,Count:2,Min:3,Max:4,Average:5,Variance:6,Std:7,DistinctCount:8,None:9,AverageOfChildren:10,FirstNonEmpty:13,LastNonEmpty:14,ByAccount:15,Calculated:127});$d("HierarchyOrigin:bh",true,false,{UserDefined:1,SystemEnabled:2,SystemInternal:4});$d("LevelType:gi",false,false,{Account:4116,All:1,BillOfMaterialsResource:4114,Calculated:2,Channel:4193,Company:4162,CurrencyDestination:4178,CurrencySource:4177,Customer:4129,CustomerGroup:4130,CustomerHousehold:4131,GeoCity:8198,GeoContinent:8193,GeoCountry:8195,GeoCounty:8197,GeoPoint:8200,GeoPostalCode:8199,GeoRegion:8194,GeoStateOrProvince:8196,OrgUnit:4113,Person:4161,Product:4145,ProductGroup:4146,Promotion:4209,Quantitative:4115,Regular:0,Representative:4194,ReservedForFutureUse:8,Scenario:4117,Time:4,TimeDays:516,TimeHalfYears:36,TimeHours:772,TimeMinutes:1028,TimeMonths:132,TimeQuarters:68,TimeSeconds:2052,TimeUndefined:4100,TimeWeeks:260,TimeYears:20,Utility:4118});$d("DimensionType:ed",false,false,{Unknown:0,Time:1,Measure:2,Other:3,Quantitative:5,Accounts:6,Customers:7,Products:8,Scenario:9,Utility:10,Currency:11,Rates:12,Channel:13,Promotion:14,Organization:15,BillOfMaterials:16,Geography:17});$d("ScopeType:gh",false,false,{Unknown:0,Global:1,Session:2});$d("CubeType:da",false,false,{Cube:0,Dimension:1,Unknown:2});$d("OlapMetadataTreeItemType:bd",false,false,{Cube:0,Dimension:1,Group:2,UserDefinedHierarchy:3,SystemEnabledHierarchy:4,ParentChildHierarchy:5,Measure:6,Level1:7,Level2:8,Level3:9,Level4:10,Level5:11,KpiRoot:12,Kpi:13,KpiValue:14,KpiGoal:15,KpiStatus:16,KpiTrend:17,KpiWeight:18});$d("MeasureListLocation:bk",false,false,{Rows:0,Columns:1});$d("ExpansionStateChangeType:f3",false,false,{Expand:0,Collapse:1});$d("AxisItemsChangeType:f0",false,false,{Add:0,Remove:1});$d("PivotActionStatus:fy",false,false,{Created:0,Queued:1,Started:2,Canceled:3,Completed:4});$d("CoreOlapElementType:fv",false,false,{Catalog:0,Cube:1,Dimension:2,Hierarchy:3,Level:4,Member:5,Measure:6,MeasureList:7});$d("RowHeaderLayout:fl",false,false,{Standard:0,SuperCompact:1,Tree:2});$d("HeaderCellsLayoutOrientation:e4",false,false,{Horizontal:0,Vertical:1});$d("LevelSortBehavior:e0",false,false,{Alphabetical:0,System:1});$c("IOlapDataSource:ba","Object",{$type:new $.ig.Type("IOlapDataSource",null)},true);$c("OlapDataSource:a","Object",{w:null,v:null,ah:null,ai:0,j:0,g:null,init:function(a){this.w=new $$t.bo($$t.$ej.$type,0);this.v=new $$t.bo($$t.$ej.$type,0);this.ah=new $$t.bo(String,0);this.af=new $$t.bo(String,0);$.ig.$op.init.call(this);this._y=new $$t.bo($$t.$eq.$type,0);this._ag=new $$t.bo($$t.$eq.$type,0);this._z=new $$t.bo($$t.$eq.$type,0);this._o=false;this._al=null;this._t=false;this._au=null;this.isInitialized(false);this._m=false;this._s=false;this._n=false;this._r=false;this._q=false;this._p=false;this.catalogs(new $$t.c4($$t.$d6.$type));this.cubes(new $$t.c4($$t.$c9.$type));this.measureGroups(new $$t.c4($$t.$d7.$type));this.rowAxis(new $$t.c4($$t.$bc.$type));this.columnAxis(new $$t.c4($$t.$bc.$type));this.filters(new $$t.c4($$t.$bg.$type));this.measures(new $$t.c4($$t.$bi.$type));this.measureListLocation(1);this.measureListIndex(-1);this.sourceOptions(a);this.result(function(){var $ret=new $$t.bl;$ret.isEmpty(true);return $ret}())},_isInitialized:false,isInitialized:function(a){if(arguments.length===1){this._isInitialized=a;return a}else{return this._isInitialized}},_catalogs:null,catalogs:function(a){if(arguments.length===1){this._catalogs=a;return a}else{return this._catalogs}},_cubes:null,cubes:function(a){if(arguments.length===1){this._cubes=a;return a}else{return this._cubes}},_cube:null,cube:function(a){if(arguments.length===1){this._cube=a;return a}else{return this._cube}},_measureGroup:null,measureGroup:function(a){if(arguments.length===1){this._measureGroup=a;return a}else{return this._measureGroup}},_measureGroups:null,measureGroups:function(a){if(arguments.length===1){this._measureGroups=a;return a}else{return this._measureGroups}},_sourceOptions:null,sourceOptions:function(a){if(arguments.length===1){this._sourceOptions=a;return a}else{return this._sourceOptions}},dataProviderFactory:function(a){if(arguments.length===1){this.g=a;return a}else{if(this.g==null){this.g=this.h()}return this.g}},_metadataTree:null,metadataTree:function(a){if(arguments.length===1){this._metadataTree=a;return a}else{return this._metadataTree}},_rowAxis:null,rowAxis:function(a){if(arguments.length===1){this._rowAxis=a;return a}else{return this._rowAxis}},_columnAxis:null,columnAxis:function(a){if(arguments.length===1){this._columnAxis=a;return a}else{return this._columnAxis}},_filters:null,filters:function(a){if(arguments.length===1){this._filters=a;return a}else{return this._filters}},_measures:null,measures:function(a){if(arguments.length===1){this._measures=a;return a}else{return this._measures}},measureListIndex:function(a){if(arguments.length===1){if(this.ai!=a){this._p=true;this.ai=a;this.a1();this._p=false}return a}else{return this.ai}},measureListLocation:function(a){if(arguments.length===1){if(this.j!=a){this.az();this.j=a;this.a1()}return a}else{return this.j}},_result:null,result:function(a){if(arguments.length===1){this._result=a;return a}else{return this._result}},_l:null,_c:null,_y:null,_ag:null,_z:null,af:null,_o:false,_al:null,_t:false,_au:null,_m:false,_s:false,_n:false,_r:false,_q:false,_p:false,getMembersOfLevel:function(a){},getMembersOfHierarchy:function(a){},getMembersOfMember:function(a){},setCube:function(a){if(!this.isInitialized()){throw new $$t.ch(1,"Data source is not initialized.")}return this.aq(a)},setMeasureGroup:function(a){if(!this.isInitialized()){throw new $$t.ch(1,"Data source is not initialized.")}return this.ar(a)},getCoreElement:function(a,b){if(b==$$t.$er.$type){var c;if(this.measureListLocation()==1){c=this.columnAxis()}else{c=this.rowAxis()}var d=null;var f=c.getEnumerator();while(f.moveNext()){var e=f.current();d=$b($$t.$er.$type,e);if(d!=null){break}}return d}else{return $$t.$cn.af($$t.$bc.$type,this.getCoreElements(a,b))}},getCoreElements:function(a,b){if(b==$$t.$ec.$type){return this.a($$t.$ec.$type,$$t.$cn.u($$t.$ec.$type,this._c._t,function(c){return a(c)}))}if(b==$$t.$bg.$type){return this.a($$t.$bg.$type,$$t.$cn.u($$t.$bg.$type,this._c._u,function(c){return a(c)}))}if(b==$$t.$ee.$type){return this.a($$t.$ee.$type,$$t.$cn.u($$t.$ee.$type,this._c._x,function(c){return a(c)}))}if(b==$$t.$bi.$type){return this.a($$t.$bi.$type,$$t.$cn.u($$t.$bi.$type,this._c._z,function(c){return a(c)}))}if(b==$$t.$en.$type){return this.a($$t.$en.$type,$$t.$cn.u($$t.$en.$type,this._c._v,function(c){return a(c)}))}if(b==$$t.$eh.$type){return this.a($$t.$eh.$type,$$t.$cn.u($$t.$eh.$type,this._c._w,function(c){return a(c)}))}throw new $$t.y(1,"Supported types are Dimension, Hierarchy, Level and Measure")},expandTupleMember:function(a,b,c){var d=this.d(a,this.result());if(d==null){throw new $$t.ch(1,"No axis found for the specified index.")}var e=$$t.$a.u(b,c,d);if(e==false){return}var f=$$t.$cn.af($$t.$ej.$type,$$t.$cn.u($$t.$ej.$type,this.w,function(g){return g._c==a&&g._b==b&&g._a==c}));if(f==null){f=function(){var $ret=new $$t.ej;$ret._c=a;$ret._a=c;$ret._b=b;return $ret}();this.w.add(f)}else{this.w.remove(f)}},collapseTupleMember:function(a,b,c){var d=this.d(a,this.result());if(d==null){throw new $$t.ch(1,"No axis found for the specified index.")}var e=$$t.$a.u(b,c,d);if(e==false){return}var f=$$t.$cn.af($$t.$ej.$type,$$t.$cn.u($$t.$ej.$type,this.w,function(g){return g._c==a&&g._b==b&&g._a==c}));if(f==null){f=function(){var $ret=new $$t.ej;$ret._c=a;$ret._a=c;$ret._b=b;return $ret}();this.v.add(f)}else{this.w.remove(f)}},clearPendingChanges:function(){this.v.clear();this.w.clear()},update:function(){var $self=this;if(this._t){return this._au}this._t=true;var a=null;if(this.w.count()>0){a=this.an(this.w)}if(this.ah.count()>0){var b=new $$t.dh(Array,0);var c=new Array(this.ah.count());for(var d=0;d<c.length;d++){c[d]=this.getMembersOfHierarchy(this.ah.__inner[d])}this.ah.clear();var e=new $$t.es;e.c(c,b.e.runOn(b));if(a!=null){a=$$t.$et.a(Array,a,function(f){return b._b})}else{a=b._b}}if(a!=null){a=$$t.$et.a($$t.$bl.$type,a,function(f){return $self.as()})}else{a=this.as()}this._au=a;this._au.j(function(f){$self._t=false;$self._au=null});return a},initialize:function(){var $self=this;if(this._o){return this._al}this._o=true;this._al=this.ap();var a=this._al;this._al.j(function(b){$self._o=false;$self._al=null});return a},addFilterMember:function(a,b){var $self=this;var c;var d=function(){var e=$self.b(a,c);c=e.p1;return e.ret}();if(d==null){d=new $$t.eq(a,function(){var $ret=new $$t.c4(String);$ret.add(b);return $ret}());c.add(d)}if(!d._a.contains(b)){d._a.add(b);if(this.af.contains(b)){this.af.remove(b)}else{this.af.add(b)}}var e;if(!function(){var f=$self._c.h(b,e);e=f.p1;return f.ret}()&&!this.ah.contains(a)){this.ah.add(a)}},getFilterMemberNames:function(a){var $self=this;var b;var c=function(){var d=$self.b(a,b);b=d.p1;return d.ret}();if(c!=null){return this.a(String,c._a)}return new $$t.c4(String)},removeFilterMember:function(a,b){var $self=this;var c;var d=function(){var e=$self.b(a,c);c=e.p1;return e.ret}();if(d==null){return}if(d._a.remove(b)){if(this.af.contains(b)){this.af.remove(b)}else{this.af.add(b)}}},removeAllFilterMembers:function(a){var $self=this;var b;var c=function(){var d=$self.b(a,b);b=d.p1;return d.ret}();if(c==null){return}for(var d=c._a.count()-1;d>=0;d--){var e=c._a.item(d);c._a.removeAt(d);if(this.af.contains(e)){this.af.remove(e)}else{this.af.add(e)}}},getProviderDefaultProperties:function(){var a=new $$t.bo($$t.$eb.$type,0);return a},getProviderDefaultRestrictions:function(){var a=new $$t.bo($$t.$eb.$type,0);return a},tryGetMember:function(a,b){var $self=this;return{ret:function(){var c=$self._c.h(a,b);b=c.p1;return c.ret}(),p1:b}},tryGetMembersForLevel:function(a,b){var $self=this;return{ret:function(){var c=$self._c.j(a,b);b=c.p1;return c.ret}(),p1:b}},ap:function(){},as:function(){},h:function(){},aj:function(){},aq:function(a){var $self=this;if(String.isNullOrEmpty(a)){if(a==null){throw new $$t.cr(0,"cubeName")}throw new $$t.ch(1,"cubeName cannot be empty.")}var b=new $$t.dh($$t.$bb.$type,0);if(this.cube()!=null){if(this.cube().name()==a){b.e(this.metadataTree());return b._b}this.aw()}var d=this.cubes().getEnumerator();while(d.moveNext()){var c=d.current();if(c.name()==a){this.cube(c);break}}var e=this.aj();if(!this.isInitialized()){var f=this.sourceOptions().measureGroup();if(!String.isNullOrEmpty(f)){return $$t.$et.a($$t.$bb.$type,e,function(g){return $self.ar(f)})}}return $$t.$et.a($$t.$bb.$type,e,function(g){return $self.ar(null)})},ak:function(){var $self=this;var a=null;var b=null;var c=null;var d=new $$t.bo($$t.$eq.$type,0);if(!String.isNullOrEmpty(this.sourceOptions().columns())){var e=new $$t.eu(this.sourceOptions().columns());a=e.c()}if(!String.isNullOrEmpty(this.sourceOptions().rows())){var f=new $$t.eu(this.sourceOptions().rows());b=f.c()}if(!String.isNullOrEmpty(this.sourceOptions().filters())){var g=new $$t.eu(this.sourceOptions().filters());c=g.c()}if(a!=null&&a.count()>0){var i=a.getEnumerator();while(i.moveNext()){var h=i.current();this.av($$t.$bc.$type,h._b,this.columnAxis(),$$t.$bg.$type);this._y.add(h);if(h._a.count()>0){d.add(h);var k=h._a.getEnumerator();while(k.moveNext()){var j=k.current();this.af.add(j)}}}}if(b!=null&&b.count()>0){var m=b.getEnumerator();while(m.moveNext()){var l=m.current();this.av($$t.$bc.$type,l._b,this.rowAxis(),$$t.$bg.$type);this._ag.add(l);if(l._a.count()>0){d.add(l);var o=l._a.getEnumerator();while(o.moveNext()){var n=o.current();this.af.add(n)}}}}if(c!=null&&c.count()>0){var q=c.getEnumerator();while(q.moveNext()){var p=q.current();this.av($$t.$bg.$type,p._b,this.filters(),$$t.$bg.$type);this._z.add(p);if(p._a.count()>0){d.add(p);var s=p._a.getEnumerator();while(s.moveNext()){var r=s.current();this.af.add(r)}}}}var t=null;if(!String.isNullOrEmpty(this.sourceOptions().measures())){var u=new $$t.eu(this.sourceOptions().measures());t=u.c()}if(t!=null&&t.count()>0){var w=t.getEnumerator();while(w.moveNext()){var v=w.current();this.av($$t.$bi.$type,v._b,this.measures(),$$t.$bi.$type)}}if(this._m||this._s||this._n||this._r||this._p){if(d.count()>0){var x=new Array(d.count());for(var y=0;y<d.count();y++){var z=d.item(y)._b;x[y]=this.getMembersOfHierarchy(z)}var aa=new $$t.dh($$t.$bb.$type,0);var ab=new $$t.es;ab.c(x,function(ac){$self.as().j(function(ad){$self.ay();aa.e($self.metadataTree())})});return aa._b}return $$t.$et.b($$t.$bl.$type,$$t.$bb.$type,this.as(),function(ac){$self.ay();var ad=new $$t.dh($$t.$bb.$type,0);ad.e($self.metadataTree());return ad._b})}this.ay();var ac=new $$t.dh($$t.$bb.$type,0);ac.e(this.metadataTree());return ac._b},am:function(a){var $self=this;var b=this.dataProviderFactory().createDataProvider();var c=this.getProviderDefaultRestrictions();var d=this.getProviderDefaultProperties();var e=b.discoverCubesAsync(d,c).k($$t.$be.$type.specialize($$t.$c9.$type),function(f){$self.cubes($self.a($$t.$c9.$type,f.n()));return $self.cubes()});return e},ao:function(){var $self=this;var a=this.dataProviderFactory().createDataProvider();var b=this.getProviderDefaultRestrictions();var c=this.getProviderDefaultProperties();var d=a.discoverMeasureGroupsAsync(c,b).k($$t.$be.$type.specialize($$t.$d7.$type),function(e){$self.measureGroups($self.a($$t.$d7.$type,e.n()));return $self.measureGroups()});return d},ay:function(){this.isInitialized(true)},aw:function(){this.cube(null);this.measureGroups(new $$t.c4($$t.$d7.$type));this.filters().clear();this.rowAxis().clear();this.columnAxis().clear();this.measures().clear();this._c=null;this.ax()},ax:function(){this.measureGroup(null);this.metadataTree(null)},ar:function(a){var $self=this;if(this.cube()==null){throw new $$t.ch(1,"Data source has no Cube set.")}var b=new $$t.dh($$t.$bb.$type,0);if(this.measureGroup()!=null){if(this.measureGroup().name()==a){b.e(this.metadataTree());return b._b}this.ax()}if(!String.isNullOrEmpty(a)&&this.measureGroups().count()==0){var c=$$t.$et.b($$t.$be.$type.specialize($$t.$d7.$type),$$t.$bb.$type,this.ao(),function(d){if($self.measureGroups().count()==0){return $self.ar(null)}return $self.ar(a)});return c}var e=this.measureGroups().getEnumerator();while(e.moveNext()){var d=e.current();if(d.name()==a){this.measureGroup(d);break}}this.metadataTree(this.k(a));b.e(this.metadataTree());return b._b},k:function(a){var $self=this;var b=function(){var $ret=new $$t.bb;$ret.type(0);$ret.caption($self.cube().caption());$ret.item($self.cube());return $ret}();var c;var d;var e;var f=true;if(String.isNullOrEmpty(a)||this.measureGroups()==null){c=this._c._t;d=this._c._z;e=this._c._w}else{f=false;c=this._c._a.getMeasureGroupDimensions(a);d=this._c._a.getMeasureGroupMeasures(a);e=this._c._a.getMeasureGroupKpis(a)}var g=$$t.$ev.getDimensionMetaItems(c,d,e,this._c._u,this._c._x,f,this._c,this.measureGroups());$$t.$ev.setMetaItemChildren(b,g);return b},d:function(a,b){if(b!=null&&b.axes().count()>0){return $$t.$cn.af($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,b.axes(),function(c){return c.name()==a}))}return null},a0:function(a,b){switch(a.action()){case 0:var d=a.newItems().getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$bg.$type,c);if(e!=null){if(this.isInitialized()){b.add(new $$t.eq(e.uniqueName(),new $$t.c4(String)))}}}break;case 1:var g=a.oldItems().getEnumerator();while(g.moveNext()){var f=g.current();var h=$b($$t.$bg.$type,f);if(h!=null){var i=$$t.$cn.af($$t.$eq.$type,$$t.$cn.u($$t.$eq.$type,b,function(j){return j._b==h.uniqueName()}));if(i!=null){var j=new $$t.bo(String,0);for(var k=0;k<i._a.count();k++){j.add(i._a.item(k))}for(var l=0;l<j.count();l++){var m=j.item(l);this.removeFilterMember(i._b,m)}b.remove(i)}}else{var n=$b($$t.$er.$type,f);if(n!=null){if(!this._r&&!this._q&&!this._p){this.measures().clear()}}}}break}},a2:function(a,b){switch(a.action()){case 0:var d=a.newItems().getEnumerator();while(d.moveNext()){var c=d.current();var e=$b($$t.$bg.$type,c);if(e!=null){var f=$b($$t.$er.$type,$$t.$cn.af($$t.$bc.$type,$$t.$cn.u($$t.$bc.$type,b,function(g){return $b($$t.$er.$type,g)!==null})));if(f!=null&&this.measureListIndex()>=a.newStartingIndex()){this.measureListIndex(this.measureListIndex()+1)}}}break;case 1:var h=a.oldItems().getEnumerator();while(h.moveNext()){var g=h.current();var i=$b($$t.$bg.$type,g);if(i!=null){var j=$b($$t.$er.$type,$$t.$cn.af($$t.$bc.$type,$$t.$cn.u($$t.$bc.$type,b,function(k){return $b($$t.$er.$type,k)!==null})));if(j!=null&&this.measureListIndex()>a.oldStartingIndex()){this.measureListIndex(this.measureListIndex()-1)}}}break}},a1:function(){var $self=this;var a;if(this.measureListLocation()==1){a=this.columnAxis()}else{a=this.rowAxis()}var b=null;var c=0;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();b=$b($$t.$er.$type,d);if(b!=null){break}c++}if(this.measures().count()>1){if(b==null){b=function(){var $ret=new $$t.er;$ret.measures($self.measures());return $ret}();if(this.measureListIndex()<0||this.measureListIndex()>a.count()){this.ai=a.count();a.add(b)}else{a.insert(this.measureListIndex(),b)}}else{if(c!=this.measureListIndex()){a.removeAt(c);if(this.measureListIndex()>a.count()){this.ai=a.count();a.add(b)}else{a.insert(this.measureListIndex(),b)}}}}else{if(b!=null){a.removeAt(c)}}},ab:function(){return this.w},aa:function(){return this.v},av:function($tItem,a,b,c){var d=function(e){return $v($tItem,e).uniqueName()==a};var e=this.getCoreElement(d,c);if(e!=null&&!$$t.$cn.e($.ig.$op.$type,b,e)){b.add($v($tItem,e))}},an:function(a){var b=new $$t.bo(String,0);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=this.d(c._c,this.result()).tuples().__inner[c._b].members().item(c._a);var f=this.getCoreElement(function(g){return g.hierarchyUniqueName()==e.hierarchyUniqueName()&&g.depth()==e.levelNumber()+1},$$t.$ee.$type);if(f!=null&&!this._c.c(f.uniqueName())&&!b.contains(f.uniqueName())){b.add(f.uniqueName())}}if(b.count()>0){var g=new Array(b.count());for(var h=0;h<b.count();h++){g[h]=this.getMembersOfLevel(b.item(h))}return(new $$t.es).d(Array,g,function(i){return i})}var i=new $$t.dh(Array,0);i.e(new Array(0));return i._b},az:function(){var a;if(this.measureListLocation()==1){a=this.columnAxis()}else{a=this.rowAxis()}if(a==null){return}var b=null;var c=0;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();b=$b($$t.$er.$type,d);if(b!=null){break}c++}if(b!=null){this._q=true;a.removeAt(c)}},a:function($t,a){var b=new $$t.c4($t);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.add(c)}return b},b:function(a,b){var c=$$t.$cn.af($$t.$eq.$type,$$t.$cn.u($$t.$eq.$type,this._y,function(d){return d._b==a}));if(c!=null){b=this._y;return{ret:c,p1:b}}c=$$t.$cn.af($$t.$eq.$type,$$t.$cn.u($$t.$eq.$type,this._ag,function(d){return d._b==a}));if(c!=null){b=this._ag;return{ret:c,p1:b}}c=$$t.$cn.af($$t.$eq.$type,$$t.$cn.u($$t.$eq.$type,this._z,function(d){return d._b==a}));if(c!=null){b=this._z;return{ret:c,p1:b}}b=null;return{ret:null,p1:b}},u:function(a,b,c){if(a<0||a>=c.tuples().count()){throw new $$t.ey(1,"tupleIndex")}else{var d=c.tuples().__inner[a];if(b<0||b>=d.members().count()){throw new $$t.ey(1,"tupleIndex")}var e=d.members().item(b);if(e.isExpandable()==false){return false}}return true},$type:new $.ig.Type("OlapDataSource",$.ig.$ot,[$$t.$ba.$type])},true);$c("PositionInfo:ej","Object",{init:function(){$.ig.$op.init.call(this)},_c:null,_b:0,_a:0,$type:new $.ig.Type("PositionInfo",$.ig.$ot)},true);$c("LevelSortDirection:ez","Object",{init:function(){$.ig.$op.init.call(this);this.sortBehavior(1)},_levelUniqueName:null,levelUniqueName:function(a){if(arguments.length===1){this._levelUniqueName=a;return a}else{return this._levelUniqueName}},_sortDirection:0,sortDirection:function(a){if(arguments.length===1){this._sortDirection=a;return a}else{return this._sortDirection}},_sortBehavior:0,sortBehavior:function(a){if(arguments.length===1){this._sortBehavior=a;return a}else{return this._sortBehavior}},$type:new $.ig.Type("LevelSortDirection",$.ig.$ot)},true);$c("TupleSortDirection:e1","Object",{init:function(){$.ig.$op.init.call(this)},_tupleIndex:0,tupleIndex:function(a){if(arguments.length===1){this._tupleIndex=a;return a}else{return this._tupleIndex}},_memberNames:null,memberNames:function(a){if(arguments.length===1){this._memberNames=a;return a}else{return this._memberNames}},_sortDirection:0,sortDirection:function(a){if(arguments.length===1){this._sortDirection=a;return a}else{return this._sortDirection}},_comparer:null,comparer:function(a){if(arguments.length===1){this._comparer=a;return a}else{return this._comparer}},$type:new $.ig.Type("TupleSortDirection",$.ig.$ot)},true);$c("DataSourceBase:e2","Object",{init:function(){$.ig.$op.init.call(this)},_dataSource:null,dataSource:function(a){if(arguments.length===1){this._dataSource=a;return a}else{return this._dataSource}},isInitialized:function(){if(this.dataSource()==null){return false}return this.dataSource().isInitialized()},_isModified:false,isModified:function(a){if(arguments.length===1){this._isModified=a;return a}else{return this._isModified}},_isUpdating:false,isUpdating:function(a){if(arguments.length===1){this._isUpdating=a;return a}else{return this._isUpdating}},initialize:function(){var promise_=this.dataSource().initialize()._d;var $this=this;if(!this._isInitializedAttached){this._isInitializedAttached=true;promise_.always(function(result){var args={error:null,metadataTreeRoot:null};if(promise_.state()==="rejected"){args.error=result}else{args.metadataTreeRoot=result}$($this).trigger("initialized",args);$this._isInitializedAttached=false})}return promise_},cubes:function(){return this.dataSource().cubes().inner()},cube:function(){return this.dataSource().cube()},setCube:function(a){return this.dataSource().setCube(a).k($$t.$bb.$type,function(b){return b.n()})._d},metadataTree:function(){return this.dataSource().metadataTree()},addRowItem:function(a){if($b($$t.$bg.$type,a)!==null){this.dataSource().rowAxis().add(a);this.isModified(true)}},insertRowItem:function(a,b){if($b($$t.$bg.$type,b)!==null){this.dataSource().rowAxis().insert(a,b);this.isModified(true)}},removeRowItem:function(a){if($b($$t.$bg.$type,a)!==null||$b($$t.$er.$type,a)!==null){this.dataSource().rowAxis().remove(a);this.isModified(true)}},addColumnItem:function(a){if($b($$t.$bg.$type,a)!==null){this.dataSource().columnAxis().add(a);this.isModified(true)}},insertColumnItem:function(a,b){if($b($$t.$bg.$type,b)!==null){this.dataSource().columnAxis().insert(a,b);this.isModified(true)}},removeColumnItem:function(a){if($b($$t.$bg.$type,a)!==null||$b($$t.$er.$type,a)!==null){this.dataSource().columnAxis().remove(a);this.isModified(true)}},addFilterItem:function(a){if($b($$t.$bg.$type,a)!==null){this.dataSource().filters().add(a);this.isModified(true)}},insertFilterItem:function(a,b){if($b($$t.$bg.$type,b)!==null){this.dataSource().filters().insert(a,b);this.isModified(true)}},removeFilterItem:function(a){if($b($$t.$bg.$type,a)!==null){this.dataSource().filters().remove(a);this.isModified(true)}},addMeasureItem:function(a){if($b($$t.$bi.$type,a)!==null){this.dataSource().measures().add(a);this.isModified(true)}},insertMeasureItem:function(a,b){if($b($$t.$bi.$type,b)!==null){this.dataSource().measures().insert(a,b);this.isModified(true)}},removeMeasureItem:function(a){if($b($$t.$bi.$type,a)!==null){this.dataSource().measures().remove(a);this.isModified(true)}},setMeasureListIndex:function(a){this.dataSource().measureListIndex(a);this.isModified(true)},setMeasureListLocation:function(a){switch(a){case"rows":this.dataSource().measureListLocation(0);break;case"columns":this.dataSource().measureListLocation(1);break;default:break}this.isModified(true)},getMeasureListLocation:function(){switch(this.dataSource().measureListLocation()){case 0:return"rows";break;case 1:return"columns";break;default:return null;break}},expandTupleMember:function(a,b,c){this.dataSource().expandTupleMember(a,b,c)},collapseTupleMember:function(a,b,c){this.dataSource().collapseTupleMember(a,b,c)},rowAxis:function(){return this.dataSource().rowAxis().inner()},columnAxis:function(){return this.dataSource().columnAxis().inner()},filters:function(){return this.dataSource().filters().inner()},measures:function(){return this.dataSource().measures().inner()},result:function(){return this.dataSource().result()},bindCollectionChanged:function(a){var options_=a;var ds_=this.dataSource();var attachCollectionChanged=function(collection,handler){collection.collectionChanged=$.ig.Delegate.prototype.combine(collection.collectionChanged,handler)};if($.isFunction(options_["filters"])){attachCollectionChanged(ds_._filters,options_["filters"])}if($.isFunction(options_["rowAxis"])){attachCollectionChanged(ds_._rowAxis,options_["rowAxis"])}if($.isFunction(options_["columnAxis"])){attachCollectionChanged(ds_._columnAxis,options_["columnAxis"])}if($.isFunction(options_["measures"])){attachCollectionChanged(ds_._measures,options_["measures"])}},unbindCollectionChanged:function(a){var options_=a;var ds_=this.dataSource();var unbindCollectionChanged=function(collection,handler){collection.collectionChanged=$.ig.Delegate.prototype.remove(collection.collectionChanged,handler)};if($.isFunction(options_["filters"])){unbindCollectionChanged(ds_._filters,options_["filters"])}if($.isFunction(options_["rowAxis"])){unbindCollectionChanged(ds_._rowAxis,options_["rowAxis"])}if($.isFunction(options_["columnAxis"])){unbindCollectionChanged(ds_._columnAxis,options_["columnAxis"])}if($.isFunction(options_["measures"])){unbindCollectionChanged(ds_._measures,options_["measures"]);
}},clearPendingChanges:function(){this.dataSource().clearPendingChanges()},update:function(){var promise_=this.dataSource().update()._d;var $this=this;if(!this.isUpdating()){this.isUpdating(true);promise_.always(function(result){var args={error:null,result:null};if(promise_.state()==="rejected"){args.error=result}else{args.result=result}$this.isUpdating(false);$this.isModified(false);$($this).trigger("updated",args)})}return promise_},getCoreElement:function(a,b){return this.dataSource().getCoreElement(a,b)},getCoreElements:function(a,b){return this.dataSource().getCoreElements(a,b).inner()},getMembersOfHierarchy:function(a){return this.dataSource().getMembersOfHierarchy(a)._d},getMembersOfLevel:function(a){return this.dataSource().getMembersOfLevel(a)._d},tryGetMember:function(a){var $self=this;var b;if(function(){var c=$self.dataSource().tryGetMember(a,b);b=c.p1;return c.ret}()){return b}return null},tryGetMembersForLevel:function(a){var $self=this;var b=new $$t.c4($$t.$d4.$type);var c=function(){var d=$self.dataSource().tryGetMembersForLevel(a,b);b=d.p1;return d.ret}();return c?b.inner():new $$t.c4($$t.$d4.$type).inner()},getMembersOfMember:function(a){return this.dataSource().getMembersOfMember(a)._d},addFilterMember:function(a,b){this.dataSource().addFilterMember(a,b);this.isModified(true)},removeAllFilterMembers:function(a){this.dataSource().removeAllFilterMembers(a);this.isModified(true)},getFilterMemberNames:function(a){return this.dataSource().getFilterMemberNames(a).inner()},getDimension:function(a){return this.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$$t.$ec.$type)},getHierarchy:function(a){return this.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$$t.$bg.$type)},getLevel:function(a){return this.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$$t.$ee.$type)},getMeasure:function(a){return this.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$$t.$bi.$type)},getMeasureList:function(){return this.dataSource().getCoreElement(null,$$t.$er.$type)},$type:new $.ig.Type("DataSourceBase",$.ig.$ot)},true);$c("TaskExtensions:et","Object",{init:function(){$.ig.$op.init.call(this)},a:function($tResult,a,b){var c=new $$t.dh($tResult,0);a.f(function(d){if(d._a==null){try{b(d).j(function(e){if(e._a==null){c.e(e.n());return}c.d(e._a)})}catch(e_){var e;e=e_;console.log(e_);c.d(e)}}else{c.d(d._a)}});return c._b},b:function($tResult1,$tResult2,a,b){return $$t.$et.a($tResult2,a,function(c){return b(c)})},$type:new $.ig.Type("TaskExtensions",$.ig.$ot)},true);$c("OlapUtilities:e3","Object",{init:function(){$.ig.$op.init.call(this)},dateMemberProvider:function(a,b,c,d){if(String.isNullOrEmpty(a)||String.isNullOrEmpty(b)){return null}var propName_=b;var datePartFormat_=d;var format_=c;var yearProvider_;var semesterProvider_;var quarterProvider_;var monthProvider_;a=a.toLowerCase();switch(a){case"year":if(datePartFormat_==null){datePartFormat_="yyyy"}if(format_==null){return function(item){return $.ig.formatter(new Date(item[propName_]),"date",datePartFormat_)}}return function(item){return format_.replace("{0}",$.ig.formatter(new Date(item[propName_]),"date",datePartFormat_))};case"semester":if(format_==null){format_="H{0}"}yearProvider_=$$t.$e3.dateMemberProvider("year",b,null,null);return function(item){var year=yearProvider_(item);return format_.replace("{0}",Math.floor(new Date(item[propName_]).getMonth()/6)+1).replace("{1}",year)};case"quarter":if(format_==null){format_="Q{0}"}yearProvider_=$$t.$e3.dateMemberProvider("year",b,null,null);semesterProvider_=$$t.$e3.dateMemberProvider("semester",b,null,null);return function(item){var year=yearProvider_(item);var semester=semesterProvider_(item);return format_.replace("{0}",Math.floor(new Date(item[propName_]).getMonth()/3)+1).replace("{1}",semester).replace("{2}",year)};case"month":if(datePartFormat_==null){datePartFormat_="MMMM"}if(format_==null){return function(item){return $.ig.formatter(new Date(item[propName_]),"date",datePartFormat_)}}yearProvider_=$$t.$e3.dateMemberProvider("year",b,null,null);semesterProvider_=$$t.$e3.dateMemberProvider("semester",b,null,null);quarterProvider_=$$t.$e3.dateMemberProvider("quarter",b,null,null);return function(item){var year=yearProvider_(item);var semester=semesterProvider_(item);var quarter=quarterProvider_(item);return format_.replace("{0}",$.ig.formatter(new Date(item[propName_]),"date",datePartFormat_)).replace("{1}",quarter).replace("{2}",semester).replace("{3}",year)};case"date":if(datePartFormat_==null){datePartFormat_=$.ig.regional.defaults.datePattern.toString()}if(format_==null){return function(item){return $.ig.formatter(new Date(item[propName_]),"date",datePartFormat_)}}yearProvider_=$$t.$e3.dateMemberProvider("year",b,null,null);semesterProvider_=$$t.$e3.dateMemberProvider("semester",b,null,null);quarterProvider_=$$t.$e3.dateMemberProvider("quarter",b,null,null);monthProvider_=$$t.$e3.dateMemberProvider("month",b,null,null);return function(item){var year=yearProvider_(item);var semester=semesterProvider_(item);var quarter=quarterProvider_(item);var month=monthProvider_(item);return format_.replace("{0}",$.ig.formatter(new Date(item[propName_]),"date",datePartFormat_)).replace("{1}",month).replace("{2}",quarter).replace("{3}",semester).replace("{4}",year)}}return null},getDateHierarchy:function(a,b,c,d,e,f){if(String.isNullOrEmpty(a)){return null}if(b==null||b.length==0){b=["year","quarter","month","date"]}else{for(var g=0;g<b.length;g++){b[g]=b[g].toLowerCase()}}if(c==null){c="Dates"}if(d==null){d=c}var res_=null;var name_=c;var caption_=d;var rootCaption_=f;var dateParts_=b;if(e==null){e=new Array(b.length);for(var h=0;h<e.length;h++){var i=b[h];e[h]=i.substr(0,1).toUpperCase()+i.substr(1,i.length)+"s"}}var captions_=e;var memberProviders_=new Array(b.length);for(var j=0;j<b.length;j++){var k=b[j];memberProviders_[j]=$$t.$e3.dateMemberProvider(k,a,null,null)}var levelsMetadata=[];var levelOffset=0;if(rootCaption_!=null&&rootCaption_!=""){levelOffset=1;levelsMetadata[0]={name:rootCaption_,caption:rootCaption_,memberProvider:function(item){return rootCaption_}}}for(var i=0;i<memberProviders_.length;i++){levelsMetadata[i+levelOffset]={name:dateParts_[i],caption:captions_[i],memberProvider:memberProviders_[i]}}res_={name:name_,caption:caption_,levels:levelsMetadata,isDateTimeHier:true};return res_},sumAggregator:function(a,b){var propName_=a;var precision_=b;return function(items,cellMetadata){var sum=0,areAllNullOrUndefined=true,value;for(var i=0;i<items.length;i++){value=items[i][propName_];if(value!==null&&value!==undefined){areAllNullOrUndefined=false;sum+=value}}if(areAllNullOrUndefined)return null;if(precision_!=null){return sum.toFixed(precision_)}return sum}},avgAggregator:function(a,b){var propName_=a;var precision_=b;return function(items,cellMetadata){if(precision_==null){precision_=2}var sum=0,count=0,areAllNullOrUndefined=true,value;for(var i=0;i<items.length;i++){value=items[i][propName_];if(value!==null&&value!==undefined){areAllNullOrUndefined=false;sum+=value;count++}}if(areAllNullOrUndefined)return null;return(sum/count).toFixed(precision_)}},minAggregator:function(a){var propName_=a;return function(items,cellMetadata){var result=items[0][propName_];for(var i=1;i<items.length;i++){result=Math.min(result,items[i][propName_])}return result}},maxAggregator:function(a){var propName_=a;return function(items,cellMetadata){var result=items[0][propName_];for(var i=1;i<items.length;i++){result=Math.max(result,items[i][propName_])}return result}},countAggregator:function(){return function(items,cellMetadata){return items.length}},$type:new $.ig.Type("OlapUtilities",$.ig.$ot)},true);$c("LevelSpanManager:e5","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this._c=a;this.a=new Array(a)},_c:0,b:function(a,b){var c=this.a[a];if(c==null){c=new $$t.b9($$t.$l.$type,$$t.$e6.$type,0);this.a[a]=c}var d;if(!function(){var e=c.tryGetValue(b,d);d=e.p1;return e.ret}()){d=new $$t.e6;if(b>0){var e;if(function(){var f=c.tryGetValue(b-1,e);e=f.p1;return f.ret}()){d._a=e;e.e()}}c.add(b,d)}return d},$type:new $.ig.Type("LevelSpanManager",$.ig.$ot)},true);$c("SpanSource:e6","Object",{init:function(){$.ig.$op.init.call(this);this.c=1},_a:null,c:0,d:function(a){if(arguments.length===1){if(this.c!=a){var b=a-this.c;if(this._a!=null){this._a.d(this._a.d()+b)}this.c=a}return a}else{return this.c}},b:false,e:function(){if(!this.b){this.b=true;this.d(this.d()+1)}},$type:new $.ig.Type("SpanSource",$.ig.$ot)},true);$c("ITableViewHeadersFactory:e7","Object",{$type:new $.ig.Type("ITableViewHeadersFactory",null)},true);$c("TableViewHeadersFactory:e9","Object",{_b:null,_a:null,_c:0,_d:false,_e:null,init:function(a,b,c,d,e){$.ig.$op.init.call(this);this._b=a;this._a=b;this._c=c;this._d=d;this._e=e},createHeaderCells:function(){var $self=this;if(this._b.positionResolver().hasUnregisterdPositions()){this._b.positionResolver().completeRegisterPositions()}var a=this._b.positionResolver().rootPositionInfo();var b=new $$t.bo($$t.$be.$type.specialize($$t.$fa.$type),0);for(var c=0;c<a.positionSize();c++){b.add(new $$t.bo($$t.$fa.$type,0))}$$t.$e9.createHeaderCells2(a,a.positionItemDepthMin(),b,this._d,this._e);var d=new $$t.c4($$t.$e8.$type);var e=0;for(var f=0;f<a.positionSize();f++){var g=b.item(f);var h=0;var i=0;var k=g.getEnumerator();while(k.moveNext()){var j=k.current();var l;var m;var n;var o;if(this._c==0){l=h;m=j._c.d();n=j._b.positionItemDepth()+e;o=j._d.d()}else{n=h;o=j._c.d();l=j._b.positionItemDepth()+e;m=j._d.d()}var p=this._b.tuples().__inner[j._b.positionIndex()];var q=p.item(j._b.positionItemIndex());var r=this._b.tuples().__inner[j._l];if(this._a.positionResolver().hasUnregisterdPositions()){this._a.positionResolver().completeRegisterPositions()}var s=this._a.positionResolver().getPositionIndex(r);var t=function(){var $ret=new $$t.e8;$ret.axisName($self._b.name());$ret.hierarchyNumber(j._b.positionItemIndex());$ret.levelNumber(j._b.positionItemDepth());$ret.caption(q.caption());$ret.columnIndex(l);$ret.columnSpan(m);$ret.isExpanded(j._g);$ret.isExpandable(j._f);$ret.tupleIndex(s);$ret.memberIndex(j._b.positionItemIndex());$ret.rowIndex(n);$ret.rowSpan(o);return $ret}();if(!j._h){h=h+j._c.d()}i=Math.max(i,j._b.positionItemDepth());d.add(t)}e+=i+1}return d},createHeaderCells2:function(a,b,c,d,e){var f=new $$t.e5(a.positionSize());var h=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(i){return i.positionItemDepth()==b}).getEnumerator();while(h.moveNext()){var g=h.current();var i;var j;var k=$$t.$e9.createHeaderCells1(a,g,c,f,d,e,i,j);i=k.p6;j=k.p7}},h:function(a,b,c,d,e,f){var g=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(h){return h.positionItemDepth()==a.positionItemDepthMin()}));if(g.count()>0){var i=g.getEnumerator();while(i.moveNext()){var h=i.current();var j;var k;var l=$$t.$e9.createHeaderCells1(a,h,b,c,d,f,j,k);j=l.p6;k=l.p7;e._c.d(e._c.d()+k);if(j._h){e._c.d(e._c.d()+1)}}e._c.d(e._c.d()-1)}else{f.add(a.positionIndex())}e._l=a.positionIndex()},createHeaderCells1:function(a,b,c,d,e,f,g,h){var i=c.item(b.positionItemIndex());var j=d.b(b.positionItemIndex(),b.positionItemDepth());var k=function(){var $ret=new $$t.fa;$ret._d=j;$ret._b=b;$ret._a=a;$ret._f=b.isExpandable();return $ret}();g=k;if(e){i.add(k);$$t.$e9.h(b,c,d,true,k,f)}var l=null;if(b.isExpanded()){l=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(m){return m.parentKey()==b.key()}))}if(l!=null&&l.count()>0){var m=function(){var $ret=new $$t.fa;$ret._h=true;$ret._b=b;$ret._f=b.isExpandable();return $ret}();i.add(m);var o=l.getEnumerator();while(o.moveNext()){var n=o.current();var p;var q;var r=$$t.$e9.createHeaderCells1(a,n,c,d,e,f,p,q);p=r.p6;q=r.p7;m._c.d(m._c.d()+q);if(p._h){m._c.d(m._c.d()+1)}}m._c.d(m._c.d()-1);k._g=true;k._f=false;m._g=true;k._e=m;if(!e){i.add(k);$$t.$e9.h(b,c,d,false,k,f)}m._l=k._l;g=m;h=k._c.d()+m._c.d()-1}else{if(b.isExpanded()){k._f=false}if(!e){i.add(k);$$t.$e9.h(b,c,d,false,k,f)}h=k._c.d()}return{p6:g,p7:h}},$type:new $.ig.Type("TableViewHeadersFactory",$.ig.$ot,[$$t.$e7.$type])},true);$c("TableSuperCompactViewHeadersFactory:fb","Object",{_b:null,_a:null,_c:0,_d:false,_e:null,init:function(a,b,c,d,e){$.ig.$op.init.call(this);this._b=a;this._a=b;this._c=c;this._d=d;this._e=e},createHeaderCells:function(){var $self=this;if(this._b.positionResolver().hasUnregisterdPositions()){this._b.positionResolver().completeRegisterPositions()}var a=this._b.positionResolver().rootPositionInfo();var b=new $$t.bo($$t.$be.$type.specialize($$t.$fa.$type),0);for(var c=0;c<a.positionSize();c++){b.add(new $$t.bo($$t.$fa.$type,0))}$$t.$fb.createHeaderCells2(a,a.positionItemDepthMin(),b,this._d,this._e);var d=new $$t.c4($$t.$e8.$type);var e=0;for(var f=0;f<a.positionSize();f++){var g=b.item(f);var h=0;var i=0;var k=g.getEnumerator();while(k.moveNext()){var j=k.current();var l;var m;var n;var o;if(this._c==0){l=h;m=j._c.d();n=e;o=1}else{n=h;o=j._c.d();l=e;m=1}var p=this._b.tuples().__inner[j._b.positionIndex()];var q=p.item(j._b.positionItemIndex());var r=this._b.tuples().__inner[j._l];if(this._a.positionResolver().hasUnregisterdPositions()){this._a.positionResolver().completeRegisterPositions()}var s=this._a.positionResolver().getPositionIndex(r);var t=function(){var $ret=new $$t.e8;$ret.axisName($self._b.name());$ret.hierarchyNumber(j._b.positionItemIndex());$ret.levelNumber(j._b.positionItemDepth());$ret.caption(q.caption());$ret.columnIndex(l);$ret.columnSpan(m);$ret.isExpanded(j._g);$ret.isExpandable(j._f);$ret.tupleIndex(s);$ret.memberIndex(j._b.positionItemIndex());$ret.rowIndex(n);$ret.rowSpan(o);return $ret}();if(!j._h){h=h+j._c.d()}d.add(t)}e+=i+1}return d},createHeaderCells2:function(a,b,c,d,e){var f=new $$t.e5(a.positionSize());var h=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(i){return i.positionItemDepth()==b}).getEnumerator();while(h.moveNext()){var g=h.current();var i;var j;var k=$$t.$fb.createHeaderCells1(a,g,c,f,d,e,i,j);i=k.p6;j=k.p7}},h:function(a,b,c,d,e,f){var g=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(h){return h.positionItemDepth()==a.positionItemDepthMin()}));if(g.count()>0){var i=g.getEnumerator();while(i.moveNext()){var h=i.current();var j;var k;var l=$$t.$fb.createHeaderCells1(a,h,b,c,d,f,j,k);j=l.p6;k=l.p7;e._c.d(e._c.d()+k);if(j._e!=null){e._c.d(e._c.d()+1)}}e._c.d(e._c.d()-1)}else{f.add(a.positionIndex())}e._l=a.positionIndex()},createHeaderCells1:function(a,b,c,d,e,f,g,h){var i=c.item(b.positionItemIndex());var j=d.b(b.positionItemIndex(),b.positionItemDepth());var k=function(){var $ret=new $$t.fa;$ret._d=j;$ret._b=b;$ret._f=b.isExpandable();return $ret}();g=k;if(e){i.add(k);$$t.$fb.h(b,c,d,true,k,f)}var l=null;if(b.isExpanded()){l=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(m){return m.parentKey()==b.key()}))}if(l!=null&&l.count()>0){var m=function(){var $ret=new $$t.fa;$ret._h=true;$ret._b=b;$ret._f=b.isExpandable();return $ret}();var o=l.getEnumerator();while(o.moveNext()){var n=o.current();var p;var q;var r=$$t.$fb.createHeaderCells1(a,n,c,d,e,f,p,q);p=r.p6;q=r.p7;m._c.d(m._c.d()+q);if(p._e!=null){m._c.d(m._c.d()+1)}}m._c.d(m._c.d()-1);k._g=true;k._f=true;k._e=m;if(!e){i.add(k);$$t.$fb.h(b,c,d,false,k,f)}m._l=k._l;h=k._c.d()+m._c.d()-1}else{if(b.isExpanded()){k._f=false}if(!e){i.add(k);$$t.$fb.h(b,c,d,false,k,f)}h=k._c.d()}return{p6:g,p7:h}},$type:new $.ig.Type("TableSuperCompactViewHeadersFactory",$.ig.$ot,[$$t.$e7.$type])},true);$c("TableViewHeaderCellSource:fa","Object",{init:function(){$.ig.$op.init.call(this);this._c=new $$t.e6;this._d=new $$t.e6},_h:false,_k:0,_i:0,_d:null,_c:null,_e:null,_b:null,_a:null,_l:0,_j:0,_g:false,_f:false,toString:function(){return $y("{0}-{1}",this._b.positionIndex(),this._b.positionItemIndex())},$type:new $.ig.Type("TableViewHeaderCellSource",$.ig.$ot)},true);$c("TreeStackAttributesBehavior:fc","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a,b){},$type:new $.ig.Type("TreeStackAttributesBehavior",$.ig.$ot)},true);$c("TreeStackChildrenFirstBehavior:fe","TreeStackAttributesBehavior",{init:function(){$$t.$fc.init.call(this)},a:function(a,b){if(a.memberIndex()<b.memberIndex()||a.memberIndex()==b.memberIndex()&&a.levelNumber()<=b.levelNumber()){return true}return false},$type:new $.ig.Type("TreeStackChildrenFirstBehavior",$$t.$fc.$type)},true);$c("TreeStackNextDimensionFirstBehavior:ff","TreeStackAttributesBehavior",{init:function(a,b){$$t.$fc.init.call(this);this._b=a;this._c=b},_b:0,_c:0,a:function(a,b){if(a.memberIndex()<b.memberIndex()){return true}if(a.memberIndex()==b.memberIndex()){if(a.levelNumber()<=b.levelNumber()){return true}}if(a.memberIndex()>b.memberIndex()&&a.parentMemberLevelNumber()<b.levelNumber()){return true}return false},$type:new $.ig.Type("TreeStackNextDimensionFirstBehavior",$$t.$fc.$type)},true);$c("TableViewTreeHeadersFactory:fg","Object",{_b:null,_a:null,_c:0,_d:false,_e:null,_childrenAttributesIndentation:0,childrenAttributesIndentation:function(a){if(arguments.length===1){this._childrenAttributesIndentation=a;return a}else{return this._childrenAttributesIndentation}},_dimensionAttributesIndentation:0,dimensionAttributesIndentation:function(a){if(arguments.length===1){this._dimensionAttributesIndentation=a;return a}else{return this._dimensionAttributesIndentation}},init:function(a,b,c,d,e,f){$.ig.$op.init.call(this);this._b=a;this._a=b;this._c=c;this._d=true;this._e=d;this.childrenAttributesIndentation(e);this.dimensionAttributesIndentation(f)},createHeaderCells:function(){var $self=this;if(this._b.positionResolver().hasUnregisterdPositions()){this._b.positionResolver().completeRegisterPositions()}var a=this._b.positionResolver().rootPositionInfo();var b=new $$t.bo($$t.$fa.$type,0);$$t.$fg.createHeaderCells2(a,a.positionItemDepthMin(),b,this._e);var c=new $$t.b9(String,$$t.$e8.$type,0);var d=new $$t.fh($$t.$fd.$type);var e=new $$t.c4($$t.$e8.$type);var f=0;var h=b.getEnumerator();while(h.moveNext()){var g=h.current();if(g._h){continue}var i=this._b.tuples().__inner[g._b.positionIndex()];var j=i.item(g._b.positionItemIndex());var k=this._b.tuples().__inner[g._l];if(this._a.positionResolver().hasUnregisterdPositions()){this._a.positionResolver().completeRegisterPositions()}var l=this._a.positionResolver().getPositionIndex(k);var m=function(){var $ret=new $$t.fd;$ret.axisName($self._b.name());$ret.hierarchyNumber(g._b.positionItemIndex());$ret.levelNumber(g._b.positionItemDepth());$ret.parentMemberLevelNumber(g._a.positionItemDepth());$ret.caption(j.caption());$ret.columnIndex(0);$ret.columnSpan(1);$ret.isExpanded(g._g);$ret.isExpandable(g._f);$ret.tupleIndex(l);$ret.memberIndex(g._b.positionItemIndex());$ret.rowIndex(f);$ret.rowSpan(1);return $ret}();c.add($y("{0}-{1}",m.tupleIndex(),m.memberIndex()),m);var n=g._b.positionItemIndex()>0&&g._b.positionItemDepth()==0;if(!g._h&&!n){f=f+1}if(!n){e.add(m);this.m(d,m,new $$t.ff(this.childrenAttributesIndentation(),this.dimensionAttributesIndentation()))}}var p=e.getEnumerator();while(p.moveNext()){var o=p.current();if(o.memberIndex()<this._b.tupleSize()){var q=$y("{0}-{1}",o.tupleIndex(),o.memberIndex()+1);var r=null;if(function(){var s=c.tryGetValue(q,r);r=s.p1;return s.ret}()){o.isItemExpanded(r.isExpanded());o.isItemExpandable(r.isExpandable())}}}return e},m:function(a,b,c){var d=null;if(a.count()==0){this.l(a,b,null);return}d=a.peek();if(c.a(b,d)){this.h(a,b,c);d=null;if(a.count()>0){d=a.peek()}}this.l(a,b,d)},l:function(a,b,c){if(c!=null){if(b.memberIndex()>c.memberIndex()){b.indent(c.indent()+this.dimensionAttributesIndentation())}else{b.indent(c.indent()+this.childrenAttributesIndentation())}}a.push(b)},h:function(a,b,c){a.pop();if(a.count()>0){var d=a.peek();if(c.a(b,d)){this.h(a,b,c)}}},createHeaderCells2:function(a,b,c,d){var e=new $$t.e5(a.positionSize());var g=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(h){return h.positionItemDepth()==b}).getEnumerator();while(g.moveNext()){var f=g.current();var h;var i;var j=$$t.$fg.createHeaderCells1(a,f,c,e,d,true,h,i);h=j.p6;i=j.p7}},k:function(a,b,c,d,e,f){var g=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(h){return h.positionItemDepth()==a.positionItemDepthMin()}));if(g.count()>0){var i=g.getEnumerator();while(i.moveNext()){var h=i.current();var j;var k;var l=$$t.$fg.createHeaderCells1(a,h,b,c,e,f,j,k);j=l.p6;k=l.p7;d._c.d(d._c.d()+k);if(j._h){d._c.d(d._c.d()+1)}}d._c.d(d._c.d()-1)}d._l=a.positionIndex()},createHeaderCells1:function(a,b,c,d,e,f,g,h){var i=c;var j=d.b(b.positionItemIndex(),b.positionItemDepth());var k=function(){var $ret=new $$t.fa;$ret._d=j;$ret._b=b;$ret._a=a;$ret._f=b.isExpandable();return $ret}();g=k;i.add(k);if(f){f=false;e.add(b.positionIndex())}var l=null;if(b.isExpanded()){l=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(m){return m.parentKey()==b.key()}))}if(l!=null&&l.count()>0){var m=function(){var $ret=new $$t.fa;$ret._h=true;$ret._b=b;$ret._a=a;$ret._f=b.isExpandable();return $ret}();i.add(m);var o=l.getEnumerator();while(o.moveNext()){var n=o.current();var p;var q;var r=$$t.$fg.createHeaderCells1(a,n,c,d,e,true,p,q);p=r.p6;q=r.p7;m._c.d(m._c.d()+q);if(p._h){m._c.d(m._c.d()+1)}}m._c.d(m._c.d()-1);k._g=true;m._g=true;k._e=m;m._l=k._l;g=m;h=k._c.d()+m._c.d()-1}else{h=k._c.d()}$$t.$fg.k(b,c,d,k,e,false);return{p6:g,p7:h}},$type:new $.ig.Type("TableViewTreeHeadersFactory",$.ig.$ot,[$$t.$e7.$type])},true);$c("TableViewImpl:fj","Object",{init:function(a,b,c,d){var $self=this;this.w=40;this.x=20;$.ig.$op.init.call(this);if(a==null){throw new $$t.cr(0,"result")}this.result(a);this.originalResult(a);if(d==null){this.viewSettings(new $$t.fk)}else{this.viewSettings(d)}this.hasColumns(b);this.hasRows(c);this.columnSortDirections(new $$t.c4($$t.$e1.$type));var e=this.columnSortDirections();e.collectionChanged=$.ig.Delegate.prototype.combine(e.collectionChanged,function(e,f){$self._i=true});this.levelSortDirections(new $$t.c4($$t.$ez.$type));var f=this.levelSortDirections();f.collectionChanged=$.ig.Delegate.prototype.combine(f.collectionChanged,function(f,g){$self._i=true});this.appliedColumnSortDirections(new $$t.bo($$t.$e1.$type,0));this.appliedLevelSortDirections(new $$t.bo($$t.$ez.$type,0));this.appliedSortDirectionsMap(new $$t.b9(String,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$cx.$type)),0))},_viewSettings:null,viewSettings:function(a){if(arguments.length===1){this._viewSettings=a;return a}else{return this._viewSettings}},_result:null,result:function(a){if(arguments.length===1){this._result=a;return a}else{return this._result}},_originalResult:null,originalResult:function(a){if(arguments.length===1){this._originalResult=a;return a}else{return this._originalResult}},_hasRows:false,hasRows:function(a){if(arguments.length===1){this._hasRows=a;return a}else{return this._hasRows}},_hasColumns:false,hasColumns:function(a){if(arguments.length===1){this._hasColumns=a;return a}else{return this._hasColumns}},_d:null,_c:null,_h:false,_i:false,m:null,k:null,l:null,rowHeaders:function(a){if(arguments.length===1){this.m=a;return a}else{if(!this._h||this._i){this.initialize()}return this.m}},columnHeaders:function(a){if(arguments.length===1){this.k=a;return a}else{if(!this._h||this._i){this.initialize()}return this.k}},resultCells:function(a){if(arguments.length===1){this.l=a;return a}else{if(!this._h||this._i){this.initialize()}return this.l}},_columnSortDirections:null,columnSortDirections:function(a){if(arguments.length===1){this._columnSortDirections=a;return a}else{return this._columnSortDirections}},_levelSortDirections:null,levelSortDirections:function(a){if(arguments.length===1){this._levelSortDirections=a;return a}else{return this._levelSortDirections}},_appliedColumnSortDirections:null,appliedColumnSortDirections:function(a){if(arguments.length===1){this._appliedColumnSortDirections=a;return a}else{return this._appliedColumnSortDirections}},_appliedLevelSortDirections:null,appliedLevelSortDirections:function(a){if(arguments.length===1){this._appliedLevelSortDirections=a;return a}else{return this._appliedLevelSortDirections}},_appliedSortDirectionsMap:null,appliedSortDirectionsMap:function(a){if(arguments.length===1){this._appliedSortDirectionsMap=a;return a}else{return this._appliedSortDirectionsMap}},initialize:function(){this._d=null;this._c=null;this.rowHeaders(null);this.columnHeaders(null);this.resultCells(null);this.result(this.originalResult());if(this.result().isEmpty()){this._i=false;this._h=true;return}if(this.levelSortDirections().count()>0){var a=new $$t.fn(this.result(),this.hasRows(),this.hasColumns(),this.levelSortDirections());this.result(a.b());this.appliedLevelSortDirections(a._h);this.appliedSortDirectionsMap(a._g)}else{this.appliedLevelSortDirections(new $$t.bo($$t.$ez.$type,0));this.appliedSortDirectionsMap(new $$t.b9(String,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$cx.$type)),0))}if(this.hasRows()&&this.columnSortDirections().count()>0){if(this.appliedLevelSortDirections().count()>0){if(this.originalResult().axes().item(0).positionResolver().hasUnregisterdPositions()){this.originalResult().axes().item(0).positionResolver().completeRegisterPositions()}if(this.result().axes().item(0).positionResolver().hasUnregisterdPositions()){this.result().axes().item(0).positionResolver().completeRegisterPositions()}var b=new $$t.bo($$t.$e1.$type,2,this.columnSortDirections().count());var c=new $$t.b9($$t.$l.$type,$$t.$l.$type,1,this.appliedColumnSortDirections().count());var e=this.columnSortDirections().getEnumerator();while(e.moveNext()){var d=e.current();var f=this.originalResult().axes().item(0).tuples().__inner[d.tupleIndex()];var g=this.result().axes().item(0).positionResolver().getPositionIndex(f);var h=new $$t.e1;h.sortDirection(d.sortDirection());h.tupleIndex(g);h.comparer(d.comparer());b.add(h);c.item(g,d.tupleIndex())}var i=new $$t.fr(this.result(),this.hasRows(),this.hasColumns(),b);this.result(i.b());var k=i._g.getEnumerator();while(k.moveNext()){var j=k.current();j.tupleIndex(c.item(j.tupleIndex()))}this.appliedColumnSortDirections(i._g)}else{var l=new $$t.fr(this.result(),this.hasRows(),this.hasColumns(),this.columnSortDirections());this.result(l.b());this.appliedColumnSortDirections(l._g)}}else{this.appliedColumnSortDirections(new $$t.bo($$t.$e1.$type,0))}var m=0;var n=new $$t.b9($$t.$l.$type,$$t.$l.$type,0);var o=1;if(this.hasColumns()){var p=this.result().axes().item(m);var q=this.originalResult().axes().item(m);var r=this.r(p,q);for(var s=0;s<r.count();s++){var t=r.item(s);n.add(t,s)}m++;o=p.tuples().count()}var u=new $$t.b9($$t.$l.$type,$$t.$l.$type,0);if(this.hasRows()){var v=this.result().axes().item(m);var w=this.originalResult().axes().item(m);var x=this.s(v,w);for(var y=0;y<x.count();y++){var z=x.item(y);u.add(z,y)}}var aa=new $$t.c4($$t.$fm.$type);for(var ab=0;ab<this.result().cells().count();ab++){var ac=this.result().cells().item(ab);var ad;var ae=ac.properties().tryGetValue("Value",ad);ad=ae.p1;var af;var ag=ac.properties().tryGetValue("FmtValue",af);af=ag.p1;var ah=ac.cellOrdinal();if(this.hasColumns()){var ai=ah%o;var aj=n.item(ai);if(ai!=aj){var ak=$a(ah,o);ah=ak*o+aj}}if(this.hasRows()){var al=$a(ah,o);var am=u.item(al);if(al!=am){var an=ah%o;ah=am*o+an}}aa.add(function(){var $ret=new $$t.fm;$ret.value(ad);$ret.formattedValue(af);$ret.cellOrdinal(ah);$ret.resultCellIndex(ab);return $ret}());this.resultCells(aa)}this._i=false;this._h=true},r:function(a,b){var c=new $$t.bo($$t.$l.$type,0);if(this.viewSettings()._b){this._c=new $$t.fb(a,b,0,this.viewSettings()._c,c)}else{this._c=new $$t.e9(a,b,0,this.viewSettings()._c,c)}this.columnHeaders(this._c.createHeaderCells());return c},w:0,x:0,s:function(a,b){var c=new $$t.bo($$t.$l.$type,0);var d=this.viewSettings()._a;var e=this.viewSettings()._d;switch(d){case 0:this._d=new $$t.e9(a,b,1,e,c);break;case 1:this._d=new $$t.fb(a,b,1,e,c);break;case 2:var f=this.w;var g=this.x;var h=$b($$t.$ft.$type,this.viewSettings());if(h!=null){f=h._e;g=h._f}this._d=new $$t.fg(a,b,1,c,f,g);break}this.rowHeaders(this._d.createHeaderCells());return c},$type:new $.ig.Type("TableViewImpl",$.ig.$ot)},true);$c("OlapResultView:ei","Object",{init:function(a,b,c,d){$.ig.$op.init.call(this);if(a==null){throw new $$t.cr(0,"result")}this.result(a);this.visibleResult(b);this.hasColumns(c);this.hasRows(d)},_result:null,result:function(a){if(arguments.length===1){this._result=a;return a}else{return this._result}},_visibleResult:null,visibleResult:function(a){if(arguments.length===1){this._visibleResult=a;return a}else{return this._visibleResult}},_hasRows:false,hasRows:function(a){if(arguments.length===1){this._hasRows=a;return a}else{return this._hasRows}},_hasColumns:false,hasColumns:function(a){if(arguments.length===1){this._hasColumns=a;return a}else{return this._hasColumns}},c:function(a,b,c,d,e){var f=0;var g=null;var h=1;if(e){g=a.axes().item(f);h=g.tuples().count();f++}var i=null;var j=1;if(d){i=a.axes().item(f);j=i.tuples().count()}var k=1;if(b!=null){k=b.tuples().count()}var l=1;if(c!=null){l=c.tuples().count()}var m=new Array(k*l);if(a.cells().count()>0){var n=0;var o=a.cells().item(n);for(var p=0;p<j;p++){var q=$a(o.cellOrdinal(),h);if(q!=p){continue}var r=0;if(b!=null&&i!=null){var s=i.tuples().__inner[p];r=b.positionResolver().getPositionIndex(s)}if(r==-1){while(q==p){n++;if(n<a.cells().count()){o=a.cells().item(n);q=$a(o.cellOrdinal(),h)}else{break}}continue}var t=o.cellOrdinal()%h;for(var u=0;u<h;u++){if(t!=u){continue}var v=-1;if(c==null||g==null){v=0}else{var w=g.tuples().__inner[u];v=c.positionResolver().getPositionIndex(w)}if(v==-1){n++;if(n<a.cells().count()){o=a.cells().item(n);q=$a(o.cellOrdinal(),h);if(q>p){break}t=o.cellOrdinal()%h}continue}var x=o.clone();x.cellOrdinal(r*l+v);m[x.cellOrdinal()]=x;n++;if(n<a.cells().count()){o=a.cells().item(n);q=$a(o.cellOrdinal(),h);if(q>p){break}t=o.cellOrdinal()%h}}}}var y=new $$t.bo($$t.$c3.$type,0);for(var aa=0;aa<m.length;aa++){var z=m[aa];if(z!=null){y.add(z)}}var ab=new $$t.bo($$t.$bm.$type,0);if(e){ab.add(c)}if(d){ab.add(b)}return function(){var $ret=new $$t.bl;$ret.axes(ab);$ret.cells(y);$ret.isEmpty(!d&&!e&&y.count()==0);return $ret}()},a:function(a,b,c){var d=new $$t.bo($$t.$cz.$type,0);if(c){for(var e=0;e<b.count();e++){var f=b.item(e);d.add(a.tuples().__inner[f].clone())}}else{var g=0;var h=b.item(g);for(var i=0;i<a.tuples().count();i++){if(i==h){g++;if(g<b.count()){h=b.item(g)}}else{d.add(a.tuples().__inner[i].clone())}}}var j=function(){var $ret=new $$t.bm(d,a.tupleSize());$ret.name(a.name());return $ret}();return j},expandTupleMember:function(a,b,c){var d=this.f(a,b,c,this.visibleResult());if(d==null){return null}if(!d.isExpandable()){throw new $$t.ch(1,"The position is not expandable.")}if(d.isExpanded()){return this}var e=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.visibleResult().axes(),function(f){return f.name()==a}));var f=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.result().axes(),function(g){return g.name()==a}));var g=a=="Axis0"&&!this.hasColumns()||a=="Axis1"&&this.hasRows();var h=e.tuples().__inner[b];var i=f.positionResolver().getPositionIndex(h);var j=this.l(a,i,c,this.result());if(j.count()==0){return null}var k=null;var l=null;if(g){k=this.a(f,j,true);if(this.hasColumns()){l=this.visibleResult().axes().item(0)}}else{l=this.a(f,j,true);if(this.hasRows()){k=this.visibleResult().axes().item(1)}}var m=this.c(this.result(),k,l,this.hasRows(),this.hasColumns());var n=this.b(this.visibleResult(),m,f.name());
return new $$t.ei(this.result(),n,this.hasColumns(),this.hasRows())},collapseTupleMember:function(a,b,c){var d=this.f(a,b,c,this.visibleResult());if(d==null){return null}if(!d.isExpandable()){throw new $$t.ch(1,"The position is not expandable.")}if(!d.isExpanded()){return this}var e=this.l(a,b,c,this.visibleResult());if(e.count()==0){return null}var f=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.visibleResult().axes(),function(g){return g.name()==a}));var g=a=="Axis0"&&!this.hasColumns()||a=="Axis1"&&this.hasRows();var h=null;var i=null;if(g){h=this.a(f,e,false);if(this.hasColumns()){i=this.visibleResult().axes().item(0)}}else{i=this.a(f,e,false);if(this.hasRows()){h=this.visibleResult().axes().item(1)}}var j=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.result().axes(),function(k){return k.name()==a}));var k=j.tuples().__inner[b];var l=function(){var $ret=new $$t.ej;$ret._c=a;$ret._a=c;$ret._b=b;return $ret}();$$t.$ek.f(l,false,j.positionResolver(),this.visibleResult());var m=this.c(this.visibleResult(),h,i,this.hasRows(),this.hasColumns());return new $$t.ei(this.result(),m,this.hasColumns(),this.hasRows())},extend:function(a,b){var c=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.visibleResult().axes(),function(d){return d.name()==b}));var d=b=="Axis0"&&!this.hasColumns()||b=="Axis1"&&this.hasRows();var e=null;var f=null;var g=null;var h=false;if(d){e=c;if(this.hasColumns()){f=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.visibleResult().axes(),function(i){return i.name()!=b}));g=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.result().axes(),function(i){return i.name()!=b}));h=f.tuples().count()!=g.tuples().count()}}else{f=c;if(this.hasRows()){e=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.visibleResult().axes(),function(i){return i.name()!=b}));g=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,this.result().axes(),function(i){return i.name()!=b}));h=e.tuples().count()!=g.tuples().count()}}var i=null;var j=null;if(g!=null&&h){var k=this.c(this.result(),e,f,this.hasRows(),this.hasColumns());i=this.b(k,a,b);j=this.b(k,a,b)}else{i=this.b(this.result(),a,b);j=this.b(this.visibleResult(),a,b)}return new $$t.ei(i,j,this.hasColumns(),this.hasRows())},b:function(a,b,c){var d=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,a.axes(),function(e){return e.name()==c}));if(d==null){return null}var e=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,b.axes(),function(f){return f.name()==c}));var f=c=="Axis0"&&!this.hasColumns()||c=="Axis1"&&this.hasRows();var g=null;var h=null;if(f){if(this.hasColumns()){g=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,a.axes(),function(i){return i.name()!=c}));h=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,b.axes(),function(i){return i.name()!=c}))}}else{if(this.hasRows()){g=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,a.axes(),function(i){return i.name()!=c}));h=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,b.axes(),function(i){return i.name()!=c}))}}var i=new $$t.bo($$t.$cz.$type,0);var k=d.tuples().getEnumerator();while(k.moveNext()){var j=k.current();i.add(j.clone())}var m=e.tuples().getEnumerator();while(m.moveNext()){var l=m.current();i.add(l)}var n=e.tuples().count();var o=h!=null&&h.tuples().count()>0?h.tuples().count():1;var p=d.tuples().count()>0?d.tuples().count():1;var q=g!=null&&g.tuples().count()>0?g.tuples().count():1;var r=p*q;var s=new $$t.bo($$t.$c3.$type,0);if(f){var u=a.cells().getEnumerator();while(u.moveNext()){var t=u.current();s.add(t.clone())}var v=new Array(n*q);var w=p*q;var y=b.cells().getEnumerator();while(y.moveNext()){var x=y.current();var z=x.clone();var aa=this.m(z.cellOrdinal(),g,h);var ab=$a(z.cellOrdinal(),o);z.cellOrdinal(ab*q+aa);z.cellOrdinal(z.cellOrdinal()+r);v[z.cellOrdinal()-w]=z}for(var ac=0;ac<v.length;ac++){var ad=v[ac];if(ad!=null){s.add(ad)}}}else{var ae=new Array(q*(p+n));var ag=a.cells().getEnumerator();while(ag.moveNext()){var af=ag.current();var ah=af.clone();var ai=$a(ah.cellOrdinal(),p);ah.cellOrdinal(ah.cellOrdinal()+ai*n);ae[ah.cellOrdinal()]=ah}var ak=b.cells().getEnumerator();while(ak.moveNext()){var aj=ak.current();var al=aj.clone();var am=this.n(al.cellOrdinal(),g,h,n);var an=$a(aj.cellOrdinal(),n);if(am!=an){}var ao=al.cellOrdinal()%n;al.cellOrdinal(am*n+ao);al.cellOrdinal(al.cellOrdinal()+(am+1)*p);ae[al.cellOrdinal()]=al}for(var aq=0;aq<ae.length;aq++){var ap=ae[aq];if(ap!=null){s.add(ap)}}}var ar=new $$t.bl;ar.axes(new $$t.bo($$t.$bm.$type,0));var as=function(){var $ret=new $$t.bm(i,d.tupleSize());$ret.name(d.name());return $ret}();if(f){if(g!=null){ar.axes().add(g)}ar.axes().add(as)}else{ar.axes().add(as);if(g!=null){ar.axes().add(g)}}ar.cells(s);ar.isEmpty(!this.hasColumns()&&!this.hasRows()&&s.count()==0);return ar},m:function(a,b,c){if(c==null){return 0}var d=a%c.tuples().count();var e=c.tuples().__inner[d];var f=b.positionResolver().getPositionIndex(e);return f},n:function(a,b,c,d){if(c==null){return 0}var e=$a(a,d);var f=c.tuples().__inner[e];var g=b.positionResolver().getPositionIndex(f);return g},l:function(a,b,c,d){var e=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,d.axes(),function(f){return f.name()==a}));var f=e.tuples().__inner[b];var g=f.item(c);if(e.positionResolver().hasUnregisterdPositions()){e.positionResolver().completeRegisterPositions()}var h=e.positionResolver().i(g,0);if(h!=null){return $$t.$cn.z($$t.$l.$type,h)}return null},f:function(a,b,c,d){var e=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,d.axes(),function(f){return f.name()==a}));var f=e.tuples().__inner[b];var g=f.item(c);if(e.positionResolver().hasUnregisterdPositions()){e.positionResolver().completeRegisterPositions()}var h=e.positionResolver().getHostPositionItemInfo(f,c);var i;var j=h.tryGetValue(g.key(),i);i=j.p1;return i},$type:new $.ig.Type("OlapResultView",$.ig.$ot)},true);$c("ResultViewHelper:ek","Object",{init:function(){$.ig.$op.init.call(this)},g:function(a,b,c){var d=$$t.$ek.a(a._c,c.visibleResult());var e=$$t.$ek.a(a._c,c.result());$$t.$ek.f(a,b,d.positionResolver(),c.visibleResult());$$t.$ek.f(a,b,e.positionResolver(),c.visibleResult())},f:function(a,b,c,d){if(c.hasUnregisterdPositions()){c.completeRegisterPositions()}var e=$$t.$ek.b(a._c,a._b,d);$$t.$ek.e(e,a._a,b,c)},h:function(a,b,c){var d=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,b.visibleResult().axes(),function(e){return e.name()==a}));var e=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,c.visibleResult().axes(),function(f){return f.name()==a}));$$t.$ek.d(d.positionResolver(),e.positionResolver());var f=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,b.result().axes(),function(g){return g.name()==a}));var g=$$t.$cn.ad($$t.$bm.$type,$$t.$cn.u($$t.$bm.$type,c.result().axes(),function(h){return h.name()==a}));$$t.$ek.d(f.positionResolver(),g.positionResolver())},d:function(a,b){if(a.hasUnregisterdPositions()){a.completeRegisterPositions()}if(b.hasUnregisterdPositions()){b.completeRegisterPositions()}$$t.$ek.c(a.rootPositionInfo(),b.rootPositionInfo())},a:function(a,b){return $$t.$cn.ae($$t.$bm.$type,b.axes(),function(c){return c.name()==a})},c:function(a,b){var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=c.value();var f;if(function(){var g=b.tryGetValue(c.key(),f);f=g.p1;return g.ret}()){if(e.isExpanded()!=true){f.isExpanded(false)}if(f.count()>0){$$t.$ek.c(e,f)}}}},e:function(a,b,c,d){var e=new $$t.el;var f=$$t.$cn.ae($$t.$b6.$type.specialize(String,$.ig.$op.$type),d.positions(),function(g){return e.equalsC(a,g)});var g=d.getHostPositionItemInfo(f,b);var h=g.item(f.item(b).key());h.isExpanded(c)},b:function(a,b,c){var d=$$t.$ek.a(a,c);if(d.positionResolver().hasUnregisterdPositions()){d.positionResolver().completeRegisterPositions()}var e=d.positionResolver().positions().__inner[b];return e},$type:new $.ig.Type("ResultViewHelper",$.ig.$ot)},true);$c("IPosition$2:b6","Object",{$type:new $.ig.Type("IPosition$2",null)},true);$c("IPostionComparer:el","Object",{init:function(){$.ig.$op.init.call(this)},equalsC:function(a,b){var c=$$t.$cn.z($$t.$b7.$type.specialize(String,$.ig.$op.$type),a.getItems());var d=$$t.$cn.z($$t.$b7.$type.specialize(String,$.ig.$op.$type),b.getItems());if(c.count()!=d.count()){return false}for(var e=0;e<c.count();e++){if(c.__inner[e].key()!=d.__inner[e].key()){return false}}return true},getHashCodeC:function(a){var b=$$t.$cn.z($$t.$b7.$type.specialize(String,$.ig.$op.$type),a.getItems());var c=17;var e=b.getEnumerator();while(e.moveNext()){var d=e.current();c^=b.getHashCode()}return c},$type:new $.ig.Type("IPostionComparer",$.ig.$ot,[$$t.$cd.$type.specialize($$t.$b6.$type.specialize(String,$.ig.$op.$type))])},true);$c("OlapTableViewHeaderCell:e8","Object",{init:function(){$.ig.$op.init.call(this);this.columnSpan(1);this.rowSpan(1)},_id:null,id:function(a){if(arguments.length===1){this._id=a;return a}else{return this._id}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_isExpanded:false,isExpanded:function(a){if(arguments.length===1){this._isExpanded=a;return a}else{return this._isExpanded}},_isExpandable:false,isExpandable:function(a){if(arguments.length===1){this._isExpandable=a;return a}else{return this._isExpandable}},_rowIndex:0,rowIndex:function(a){if(arguments.length===1){this._rowIndex=a;return a}else{return this._rowIndex}},_rowSpan:0,rowSpan:function(a){if(arguments.length===1){this._rowSpan=a;return a}else{return this._rowSpan}},_columnIndex:0,columnIndex:function(a){if(arguments.length===1){this._columnIndex=a;return a}else{return this._columnIndex}},_columnSpan:0,columnSpan:function(a){if(arguments.length===1){this._columnSpan=a;return a}else{return this._columnSpan}},_axisName:null,axisName:function(a){if(arguments.length===1){this._axisName=a;return a}else{return this._axisName}},_tupleIndex:0,tupleIndex:function(a){if(arguments.length===1){this._tupleIndex=a;return a}else{return this._tupleIndex}},_memberIndex:0,memberIndex:function(a){if(arguments.length===1){this._memberIndex=a;return a}else{return this._memberIndex}},_levelNumber:0,levelNumber:function(a){if(arguments.length===1){this._levelNumber=a;return a}else{return this._levelNumber}},_hierarchyNumber:0,hierarchyNumber:function(a){if(arguments.length===1){this._hierarchyNumber=a;return a}else{return this._hierarchyNumber}},_headerSpan:0,headerSpan:function(a){if(arguments.length===1){this._headerSpan=a;return a}else{return this._headerSpan}},_rowOrigin:0,rowOrigin:function(a){if(arguments.length===1){this._rowOrigin=a;return a}else{return this._rowOrigin}},toString:function(){return this.caption()},$type:new $.ig.Type("OlapTableViewHeaderCell",$.ig.$ot)},true);$c("OlapTableViewResultCell:fm","Object",{init:function(){$.ig.$op.init.call(this)},_value:null,value:function(a){if(arguments.length===1){this._value=a;return a}else{return this._value}},_formattedValue:null,formattedValue:function(a){if(arguments.length===1){this._formattedValue=a;return a}else{return this._formattedValue}},_cellOrdinal:0,cellOrdinal:function(a){if(arguments.length===1){this._cellOrdinal=a;return a}else{return this._cellOrdinal}},_resultCellIndex:0,resultCellIndex:function(a){if(arguments.length===1){this._resultCellIndex=a;return a}else{return this._resultCellIndex}},$type:new $.ig.Type("OlapTableViewResultCell",$.ig.$ot)},true);$c("TableViewSettings:fk","Object",{init:function(){$.ig.$op.init.call(this)},_c:false,_d:false,_a:0,_b:false,$type:new $.ig.Type("TableViewSettings",$.ig.$ot)},true);$c("OlapTableViewTreeHeaderCell:fd","OlapTableViewHeaderCell",{init:function(){$$t.$e8.init.call(this);this.parentMemberLevelNumber(-1)},_indent:0,indent:function(a){if(arguments.length===1){this._indent=a;return a}else{return this._indent}},_parentMemberLevelNumber:0,parentMemberLevelNumber:function(a){if(arguments.length===1){this._parentMemberLevelNumber=a;return a}else{return this._parentMemberLevelNumber}},_isItemExpanded:false,isItemExpanded:function(a){if(arguments.length===1){this._isItemExpanded=a;return a}else{return this._isItemExpanded}},_isItemExpandable:false,isItemExpandable:function(a){if(arguments.length===1){this._isItemExpandable=a;return a}else{return this._isItemExpandable}},$type:new $.ig.Type("OlapTableViewTreeHeaderCell",$$t.$e8.$type)},true);$c("TreeLayoutTableViewSettings:ft","TableViewSettings",{init:function(a,b){$$t.$fk.init.call(this);this._a=2;this._e=a;this._f=b},_e:0,_f:0,$type:new $.ig.Type("TreeLayoutTableViewSettings",$$t.$fk.$type)},true);$c("CubeMetaItemsCache:em","Object",{init:function(){this.p=new $$t.b9(String,$$t.$ep.$type.specialize($$t.$l.$type,$$t.$d4.$type),0);this.s=new $$t.b9($$t.$l.$type,$$t.$d4.$type,0);this.q=new $$t.b9(String,$$t.$be.$type.specialize($$t.$d4.$type),0);this.r=new $$t.b9(String,$$t.$be.$type.specialize($$t.$d4.$type),0);this.o=new $$t.b9(String,$$t.$bi.$type,0);this.l=new $$t.b9(String,$$t.$en.$type,0);this.n=new $$t.b9(String,$$t.$d.$type,0);this.m=new $$t.b9(String,$$t.$d.$type,0);$.ig.$op.init.call(this)},p:null,s:null,q:null,r:null,o:null,l:null,n:null,m:null,_z:null,_v:null,_t:null,_u:null,_x:null,_w:null,_y:null,_a:null,c:function(a){var $self=this;var b;if(!function(){var c=$self.n.tryGetValue(a,b);b=c.p1;return c.ret}()){return false}return b},ac:function(a){this.n.item(a,true)},b:function(a){var $self=this;var b;if(!function(){var c=$self.m.tryGetValue(a,b);b=c.p1;return c.ret}()){return false}return b},ab:function(a){this.m.item(a,true);var c=$$t.$cn.u($$t.$ee.$type,this._x,function(d){return d.hierarchyUniqueName()==a}).getEnumerator();while(c.moveNext()){var b=c.current();this.ac(b.uniqueName())}},d:function(a){return this.r.containsKey(a)},aa:function(a){var $self=this;var b;if(!function(){var c=$self.p.tryGetValue(a.uniqueName(),b);b=c.p1;return c.ret}()){var c=this.p.count();b=new $$t.ep($$t.$l.$type,$$t.$d4.$type,c,a);this.p.item(a.uniqueName(),b);this.s.item(c,a);var d;if(!function(){var e=$self.q.tryGetValue(a.levelUniqueName(),d);d=e.p1;return e.ret}()){d=new $$t.c4($$t.$d4.$type);this.q.item(a.levelUniqueName(),d)}if(!String.isNullOrEmpty(a.parentUniqueName())){var e;if(!function(){var f=$self.r.tryGetValue(a.parentUniqueName(),e);e=f.p1;return f.ret}()){e=new $$t.bo($$t.$d4.$type,0);this.r.item(a.parentUniqueName(),e)}e.add(a)}d.add(a)}return b._c},i:function(a,b){var $self=this;var c;if(function(){var d=$self.p.tryGetValue(a,c);c=d.p1;return d.ret}()){b=c._c;return{ret:true,p1:b}}b=-1;return{ret:false,p1:b}},h:function(a,b){var $self=this;var c;if(function(){var d=$self.p.tryGetValue(a,c);c=d.p1;return d.ret}()){b=c._d;return{ret:true,p1:b}}b=null;return{ret:false,p1:b}},g:function(a,b){var $self=this;return{ret:function(){var c=$self.s.tryGetValue(a,b);b=c.p1;return c.ret}(),p1:b}},k:function(a,b){var $self=this;return{ret:function(){var c=$self.r.tryGetValue(a,b);b=c.p1;return c.ret}(),p1:b}},j:function(a,b){var $self=this;return{ret:function(){var c=$self.q.tryGetValue(a,b);b=c.p1;return c.ret}(),p1:b}},f:function(a,b){var $self=this;if(!function(){var c=$self.o.tryGetValue(a,b);b=c.p1;return c.ret}()){b=$$t.$cn.af($$t.$bi.$type,$$t.$cn.u($$t.$bi.$type,this._z,function(c){return c.uniqueName()==a}));if(b==null){return{ret:false,p1:b}}this.o.add(a,b)}return{ret:true,p1:b}},e:function(a,b){var $self=this;if(!function(){var c=$self.l.tryGetValue(a,b);b=c.p1;return c.ret}()){b=$$t.$cn.af($$t.$en.$type,$$t.$cn.u($$t.$en.$type,this._v,function(c){return c.uniqueName()==a}));if(b==null){return{ret:false,p1:b}}this.l.add(a,b)}return{ret:true,p1:b}},$type:new $.ig.Type("CubeMetaItemsCache",$.ig.$ot)},true);$c("MetaTreeHelper:ev","Object",{init:function(){$.ig.$op.init.call(this)},getDimensionMetaItems:function(a,b,c,d,e,f,g,h){var i=new $$t.bo($$t.$bb.$type,0);var j=new $$t.ew;j._a=0;j._b=0;var k=new $$t.bo($$t.$bg.$type,0);var m=d.getEnumerator();while(m.moveNext()){var l=m.current();k.add(l)}var n=new $$t.bo($$t.$ee.$type,0);var p=e.getEnumerator();while(p.moveNext()){var o=p.current();n.add(o)}var r=a.getEnumerator();while(r.moveNext()){var q=r.current();var s=$$t.$ev.e(k,n,q,j);if(q.dimensionType()!=2){var t=function(){var $ret=new $$t.bb;$ret.type(1);$ret.caption(q.caption());$ret.item(q);return $ret}();$$t.$ev.setMetaItemChildren(t,s);i.add(t)}else{var u=$$t.$ev.c(b,q,h);i.insert(0,u);if($$t.$cn.aj($$t.$eh.$type,c)>0){var v=function(){var $ret=new $$t.ex;$ret.caption("Kpis");return $ret}();var w=$$t.$ev.b(c,v,g);w.type(12);i.insert(1,w)}}}return i},setMetaItemChildren:function(a,b){if(b.count()>0){var c=$$t.$cn.a($$t.$bb.$type,$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,b,function(d){return d.type()==2}),function(d){return d.caption()}));var d=$$t.$cn.a($$t.$bb.$type,$$t.$cn.u($$t.$bb.$type,b,function(e){return e.type()!=2}));var e=new Array(c.length+d.length);for(var f=0;f<c.length;f++){e[f]=c[f]}for(var g=0;g<d.length;g++){e[c.length+g]=d[g]}a.children(e)}},e:function(a,b,c,d){var e=new $$t.b9(String,$$t.$ep.$type.specialize($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type)),0);var f=new $$t.bo($$t.$bb.$type,0);var g=a.item(d._a);while(g.dimensionUniqueName()!=c.uniqueName()){d._a=d._a+1;g=a.item(d._a)}while(g.dimensionUniqueName()==c.uniqueName()){var h=null;if(!String.isNullOrEmpty(g.hierarchyDisplayFolder())){var i=String.empty();var j=$$t.$ev.a(g.hierarchyDisplayFolder());for(var k=0;k<j.length;k++){var l=j[k];i+=l+"\\";var m;if(!function(){var n=e.tryGetValue(i,m);m=n.p1;return n.ret}()){var n=function(){var $ret=new $$t.bb;$ret.type(2);$ret.caption(l);return $ret}();m=new $$t.ep($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type),n,new $$t.bo($$t.$bb.$type,0));e.add(i,m);if(h!=null){h._d.add(n)}else{f.add(n)}}h=m}}var o;switch(g.hierarchyOrigin()){case 2:o=4;break;case 1:o=3;break;default:o=5;break}var p=$$t.$ev.f(b,g,d);var q=function(){var $ret=new $$t.bb;$ret.type(o);$ret.caption(g.caption());$ret.item(g);return $ret}();$$t.$ev.setMetaItemChildren(q,p);if(h!=null){h._d.add(q)}else{f.add(q)}if(d._a+1>=a.count()){break}d._a=d._a+1;g=a.item(d._a)}var s=e.values().getEnumerator();while(s.moveNext()){var r=s.current();var t=r._c;$$t.$ev.setMetaItemChildren(t,r._d)}return f},f:function(a,b,c){var d=new $$t.bo($$t.$bb.$type,0);if(a==null||a.count()==0){return d}var e=a.item(c._b);while(e.hierarchyUniqueName()!=b.uniqueName()){c._b=c._b+1;e=a.item(c._b)}while(e.hierarchyUniqueName()==b.uniqueName()){var f;switch(e.depth()){case 0:case 1:f=7;break;case 2:f=8;break;case 3:f=9;break;case 4:f=10;break;default:f=11;break}var g=function(){var $ret=new $$t.bb;$ret.type(f);$ret.caption(e.caption());$ret.item(e);return $ret}();d.add(g);if(c._b+1>=a.count()){break}c._b=c._b+1;e=a.item(c._b)}return d},c:function(a,b,c){var d=new $$t.b9(String,$$t.$ep.$type.specialize($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type)),0);var e=function(){var $ret=new $$t.bb;$ret.type(6);$ret.caption(b.caption());$ret.item(b);return $ret}();var f=new $$t.ep($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type),e,new $$t.bo($$t.$bb.$type,0));var h=a.getEnumerator();while(h.moveNext()){var g=h.current();if($b($$t.$en.$type,g)!==null){continue}var i=f;if(!String.isNullOrEmpty(g.measureGroupName())){if(!function(){var j=d.tryGetValue(g.measureGroupName(),i);i=j.p1;return j.ret}()){var j=$$t.$cn.ad($$t.$d7.$type,$$t.$cn.u($$t.$d7.$type,c,function(k){return k.name()==g.measureGroupName()}));var k=function(){var $ret=new $$t.bb;$ret.type(2);$ret.caption(j.caption());return $ret}();i=new $$t.ep($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type),k,new $$t.bo($$t.$bb.$type,0));d.add(g.measureGroupName(),i);f._d.add(i._c)}}var l=i;if(!String.isNullOrEmpty(g.measureDisplayFolder())){var m=g.measureGroupName();var n=$$t.$ev.a(g.measureDisplayFolder());for(var o=0;o<n.length;o++){var p=n[o];m+="\\"+p;var q;if(!function(){var r=d.tryGetValue(m,q);q=r.p1;return r.ret}()){var r=function(){var $ret=new $$t.bb;$ret.type(2);$ret.caption(p);return $ret}();q=new $$t.ep($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type),r,new $$t.bo($$t.$bb.$type,0));d.add(m,q);l._d.add(r)}l=q}}var s=function(){var $ret=new $$t.bb;$ret.type(6);$ret.caption(g.caption());$ret.item(g);return $ret}();l._d.add(s)}var t=new $$t.bo($$t.$bb.$type,0);var v=$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,f._d,function(w){return w.type()==2}),function(w){return w.caption()}).getEnumerator();while(v.moveNext()){var u=v.current();t.add(u)}var x=$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,f._d,function(y){return y.type()!=2}),function(y){return y.caption()}).getEnumerator();while(x.moveNext()){var w=x.current();t.add(w)}$$t.$ev.setMetaItemChildren(e,t);var z=d.values().getEnumerator();while(z.moveNext()){var y=z.current();var aa=y._d;var ab=$$t.$cn.z($$t.$bb.$type,$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,aa,function(ac){return ac.type()==2}),function(ac){return ac.caption()}));var ac=$$t.$cn.z($$t.$bb.$type,$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,aa,function(ad){return ad.type()!=2}),function(ad){return ad.caption()}));var ad=new $$t.bo($$t.$bb.$type,0);for(var ae=0;ae<ab.count();ae++){ad.add(ab.item(ae))}for(var af=0;af<ac.count();af++){ad.add(ac.item(af))}var ag=y._c;$$t.$ev.setMetaItemChildren(ag,ad)}return e},b:function(a,b,c){var d=new $$t.b9(String,$$t.$ep.$type.specialize($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type)),0);var e=$$t.$cn.z($$t.$bi.$type,c._z);c._z=e;var f=new $$t.bo($$t.$en.$type,0);c._v=f;var g=function(){var $ret=new $$t.bb;$ret.type(12);$ret.caption(b.caption());$ret.item(b);return $ret}();var h=new $$t.ep($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type),g,new $$t.bo($$t.$bb.$type,0));var j=a.getEnumerator();while(j.moveNext()){var i=j.current();var k=h;if(!String.isNullOrEmpty(i.kpiDisplayFolder())){var l=String.empty();var m=$$t.$ev.a(i.kpiDisplayFolder());for(var n=0;n<m.length;n++){var o=m[n];l+="\\"+o;var p;if(!function(){var q=d.tryGetValue(l,p);p=q.p1;return q.ret}()){var q=function(){var $ret=new $$t.bb;$ret.type(2);$ret.caption(o);return $ret}();p=new $$t.ep($$t.$bb.$type,$$t.$be.$type.specialize($$t.$bb.$type),q,new $$t.bo($$t.$bb.$type,0));d.add(l,p);k._d.add(q)}k=p}}var r=function(){var $ret=new $$t.bb;$ret.type(13);$ret.caption(i.caption());$ret.item(i);return $ret}();if(!String.isNullOrEmpty(i.kpiValue())){var s=null;var t=6;var u="Value";if(!function(){var v=c.f(i.kpiValue(),s);s=v.p1;return v.ret}()){t=14;s=$$t.$en.createKpiValueMeasure(i);e.add(s);f.add(s)}else{u+=" ("+s.caption()+")"}r.e(function(){var $ret=new $$t.bb;$ret.caption(u);$ret.item(s);$ret.type(t);return $ret}())}if(!String.isNullOrEmpty(i.kpiGoal())){var v=null;var w=6;var x="Goal";if(!function(){var y=c.f(i.kpiGoal(),v);v=y.p1;return y.ret}()){w=15;v=$$t.$en.createKpiGoalMeasure(i);e.add(v);f.add(v)}else{x+=" ("+v.caption()+")"}r.e(function(){var $ret=new $$t.bb;$ret.caption(x);$ret.item(v);$ret.type(w);return $ret}())}if(!String.isNullOrEmpty(i.kpiStatus())){var y=$$t.$en.createKpiStatusMeasure(i);e.add(y);f.add(y);r.e(function(){var $ret=new $$t.bb;$ret.caption("Status");$ret.item(y);$ret.type(16);return $ret}())}if(!String.isNullOrEmpty(i.kpiTrend())){var z=$$t.$en.createKpiTrendMeasure(i);e.add(z);f.add(z);r.e(function(){var $ret=new $$t.bb;$ret.caption("Trend");$ret.item(z);$ret.type(17);return $ret}())}if(!String.isNullOrEmpty(i.kpiWeight())){var aa=$$t.$en.createKpiWeightMeasure(i);e.add(aa);f.add(aa);r.e(function(){var $ret=new $$t.bb;$ret.caption("Weight");$ret.item(aa);$ret.type(18);return $ret}())}k._d.add(r)}var ab=new $$t.bo($$t.$bb.$type,0);var ad=$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,h._d,function(ae){return ae.type()==2}),function(ae){return ae.caption()}).getEnumerator();while(ad.moveNext()){var ac=ad.current();ab.add(ac)}var af=$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,h._d,function(ag){return ag.type()!=2}),function(ag){return ag.caption()}).getEnumerator();while(af.moveNext()){var ae=af.current();ab.add(ae)}$$t.$ev.setMetaItemChildren(g,ab);var ah=d.values().getEnumerator();while(ah.moveNext()){var ag=ah.current();var ai=ag._d;var aj=$$t.$cn.z($$t.$bb.$type,$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,ai,function(ak){return ak.type()==2}),function(ak){return ak.caption()}));var ak=$$t.$cn.z($$t.$bb.$type,$$t.$cn.x($$t.$bb.$type,String,$$t.$cn.u($$t.$bb.$type,ai,function(al){return al.type()!=2}),function(al){return al.caption()}));var al=new $$t.bo($$t.$bb.$type,0);for(var am=0;am<aj.count();am++){al.add(aj.item(am))}for(var an=0;an<ak.count();an++){al.add(ak.item(an))}var ao=ag._c;$$t.$ev.setMetaItemChildren(ao,al)}return g},a:function(a){var b=a.split("\\");return b},$type:new $.ig.Type("MetaTreeHelper",$.ig.$ot)},true);$c("HierarchyItemPosition:ew","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,_b:0,$type:new $.ig.Type("HierarchyItemPosition",$.ig.$ot)},true);$c("DataSourceBaseOptions:d8","Object",{init:function(){$.ig.$op.init.call(this)},_cube:null,cube:function(a){if(arguments.length===1){this._cube=a;return a}else{return this._cube}},_measureGroup:null,measureGroup:function(a){if(arguments.length===1){this._measureGroup=a;return a}else{return this._measureGroup}},_measures:null,measures:function(a){if(arguments.length===1){this._measures=a;return a}else{return this._measures}},_filters:null,filters:function(a){if(arguments.length===1){this._filters=a;return a}else{return this._filters}},_columns:null,columns:function(a){if(arguments.length===1){this._columns=a;return a}else{return this._columns}},_rows:null,rows:function(a){if(arguments.length===1){this._rows=a;return a}else{return this._rows}},$type:new $.ig.Type("DataSourceBaseOptions",$.ig.$ot)},true);$c("SourceInitHelper:fu","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a){if(String.isNullOrEmpty(a)){return null}var b=new $$t.eu(a);var c=b.c();if(c.count()>0){var d=new $$t.bo(String,0);var f=c.getEnumerator();while(f.moveNext()){var e=f.current();d.add(e._b)}}return c},$type:new $.ig.Type("SourceInitHelper",$.ig.$ot)},true);$c("AxisDefinitionParser:eu","Object",{init:function(a){$.ig.$op.init.call(this);this._d=-1;this._k=a},_a:false,_g:null,_d:0,_k:null,b:function(){if(this._d==this._k.length-1){return false}var a=-1;var b=-1;var c=false;while(this._d+1<this._k.length){this._d=this._d+1;var d=this._k.substr(this._d,1);switch(d){case"[":if(a==-1){a=this._d}break;case"]":b=this._d;while(this._d+1<this._k.length){d=this._k.substr(this._d+1,1);switch(d){case"]":b=this._d+1;break;case",":if("]"==this._k.substr(this._d,1)){c=true}break;case"{":case"}":c=true;break}if(c){break}this._d=this._d+1}c=true;break;case",":c=true;break;case"{":this._a=true;break;case"}":c=true;this._a=false;break}if(c){c=false;if(a>-1&&b>-1){break}}}if(this._d==this._k.length-1){if(b==-1||a==-1){return false}}var e=this._k.substr(a,b-a+1).trim();this._g=e;return true},c:function(){var a=new $$t.bo($$t.$eq.$type,0);var b=null;while(this.b()){if(!this._a){b=new $$t.c4(String);var c=new $$t.eq(this._g,b);a.add(c)}else if(b!=null){b.add(this._g)}}return a},$type:new $.ig.Type("AxisDefinitionParser",$.ig.$ot)},true);$c("CoreOlapElementParseResult:fw","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,_b:null,$type:new $.ig.Type("CoreOlapElementParseResult",$.ig.$ot)},true);$c("CoreOlapElementParser:fx","Object",{init:function(a){$.ig.$op.init.call(this);this._c=-1;this._h=a},_f:null,_c:0,_h:null,a:function(){if(this._c==this._h.length-1){return false}var a=-1;var b=-1;var c=false;while(this._c+1<this._h.length){this._c=this._c+1;var d=this._h.substr(this._c,1);switch(d){case"[":if(a==-1){a=this._c}break;case"]":b=this._c;while(this._c+1<this._h.length){d=this._h.substr(this._c+1,1);switch(d){case"]":b=this._c+1;break;case".":c=true;break}if(c){break}this._c=this._c+1}break;case".":c=true;break}if(c){c=false;if(a>-1&&b>-1){break}}}if(this._c==this._h.length-1){if(b==-1||a==-1){return false}}var e=this._h.substr(a,b-a+1).trim();this._f=e;return true},b:function(){var a=new $$t.bo(String,0);while(this.a()){a.add(this._f)}return a},$type:new $.ig.Type("CoreOlapElementParser",$.ig.$ot)},true);$c("PivotAction:fz","Object",{init:function(){$.ig.$op.init.call(this);this._a=0},c:function(){this._a=1;this._b=$$t.$ah.now()},e:function(){this._a=4},d:function(){this._a=3},_b:new Date,_a:0,$type:new $.ig.Type("PivotAction",$.ig.$ot)},true);$c("AxisChangedAction:f1","PivotAction",{init:function(a){$$t.$fz.init.call(this);this._f=a},_f:null,$type:new $.ig.Type("AxisChangedAction",$$t.$fz.$type)},true);$c("AxisItemsChangedAction:f2","AxisChangedAction",{init:function(a,b,c,d){$$t.$f1.init.call(this,a);this._h=b;this._g=c;this._j=d},_h:null,_g:0,_j:0,i:function(a){if(this._f!=a._f){return false}if(this._h!=a._h){return false}if(this._j!=a._j){return false}return this._g!=a._g},$type:new $.ig.Type("AxisItemsChangedAction",$$t.$f1.$type)},true);$c("ExpansionStateChangedAction:f4","AxisChangedAction",{init:function(a,b,c){$$t.$f1.init.call(this,a);this._g=b;this._h=c},_g:null,_h:0,i:function(a){if(this._f!=a._f){return false}if(this._g!=a._g){return false}return this._h!=a._h},$type:new $.ig.Type("ExpansionStateChangedAction",$$t.$f1.$type)},true);$c("PivotActionManager:f5","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("PivotActionManager",$.ig.$ot)},true);$c("MeasureGroupMetaItemsCache:eo","Object",{a:null,c:null,b:null,f:null,d:null,g:null,e:null,init:function(a,b,c,d){$.ig.$op.init.call(this);this.a=new $$t.b9(String,$$t.$ap.$type.specialize($$t.$ec.$type),0);this.c=new $$t.b9(String,$$t.$ap.$type.specialize($$t.$bi.$type),0);this.b=new $$t.b9(String,$$t.$ap.$type.specialize($$t.$eh.$type),0);this.f=d;this.d=a;this.g=b;this.e=c},getMeasureGroupDimensions:function(a){var $self=this;var b;if(!function(){var c=$self.a.tryGetValue(a,b);b=c.p1;return c.ret}()){var c=new $$t.bo(String,0);var e=this.f.getEnumerator();while(e.moveNext()){var d=e.current();if(d.measureGroupName()==a){c.add(d.dimensionUniqueName())}}var f=new $$t.bo($$t.$ec.$type,0);var h=this.d.getEnumerator();while(h.moveNext()){var g=h.current();if(c.contains(g.uniqueName())||g.dimensionType()==2){f.add(g)}}this.a.add(a,f);b=f}return b},getMeasureGroupMeasures:function(a){var $self=this;var b;if(!function(){var c=$self.c.tryGetValue(a,b);b=c.p1;return c.ret}()){var c=new $$t.bo($$t.$bi.$type,0);var e=this.g.getEnumerator();while(e.moveNext()){var d=e.current();if(d.measureGroupName()==a){c.add(d)}}this.c.add(a,c);b=c}return b},getMeasureGroupKpis:function(a){var $self=this;var b;if(!function(){var c=$self.b.tryGetValue(a,b);b=c.p1;return c.ret}()){var c=new $$t.bo($$t.$eh.$type,0);var e=this.e.getEnumerator();while(e.moveNext()){var d=e.current();if(d.measureGroupName()==a){c.add(d)}}this.b.add(a,c);b=c}return b},$type:new $.ig.Type("MeasureGroupMetaItemsCache",$.ig.$ot)},true);$c("HierarchyFilterView:f6","Object",{c:null,d:null,e:null,init:function(a){this.e=new $$t.b9(String,$$t.$f7.$type,0);$.ig.$op.init.call(this);this.hierarchy(a);this.d=new $$t.b9($$t.$l.$type,$$t.$be.$type.specialize($$t.$f7.$type),0);this.c=new $$t.b9(String,$$t.$f7.$type,0)},filterMemberExpansionChanged:null,filterMemberSelectionChanged:null,_hierarchy:null,hierarchy:function(a){if(arguments.length===1){this._hierarchy=a;return a}else{return this._hierarchy}},addFiltersForMembers:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.addFilterForMember(b)}},addFilterForMember:function(a){var $self=this;if(!this.c.containsKey(a.uniqueName())){var b=new $$t.f7(a);b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,this.o.runOn(this));b.selectionChanged=$.ig.Delegate.prototype.combine(b.selectionChanged,this.p.runOn(this));var c;if(!function(){var d=$self.d.tryGetValue(a.levelDepth(),c);c=d.p1;return d.ret}()){c=new $$t.bo($$t.$f7.$type,0);this.d.add(a.levelDepth(),c)}this.c.add(a.uniqueName(),b);this.e.add(a.uniqueName(),b);c.add(b);this.j(b);this.m(b)}},tryGetFilterMember:function(a){if(this.c.containsKey(a)){return this.c.item(a)}return null},getRootFilterMembers:function(){var a=-1;var c=this.d.keys().getEnumerator();while(c.moveNext()){
var b=c.current();if(a==-1){a=b}else{a=Math.min(b,a)}}if(a==-1){return null}return this.d.item(a)},getSelectedFilterItems:function(){var a=this.getRootFilterMembers();var b=new $$t.bo($$t.$f7.$type,0);var c=0;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();if(d.isSelected().hasValue()==true&&d.isSelected().value()==true){c++}}if(c==a.count()){return b}var g=a.getEnumerator();while(g.moveNext()){var f=g.current();if(f.isSelected().hasValue()==false){this.n(f,b)}else if(f.isSelected().hasValue()==true&&f.isSelected().value()==true){b.add(f)}}return b},p:function(a,b){if(this.filterMemberSelectionChanged!=null){this.filterMemberSelectionChanged(this,new $$t.gb(a))}},o:function(a,b){if(b.propertyName()=="IsExpanded"){if(this.filterMemberExpansionChanged!=null){this.filterMemberExpansionChanged(this,new $$t.gb(a))}}},n:function(a,b){if(a.isSelected().hasValue()==true&&a.isSelected().value()==true){b.add(a)}else{if(a.children()==null){return}var d=a.children().getEnumerator();while(d.moveNext()){var c=d.current();this.n(c,b)}}},m:function(a){var $self=this;var b=a.member().parentUniqueName();if(String.isNullOrEmpty(b)){return}var c;if(function(){var d=$self.c.tryGetValue(b,c);c=d.p1;return d.ret}()){c.n(a);if(c.isSelected().hasValue()==true&&c.isSelected().value()==false){a.isSelected($m($$t.$d.$type,false))}}},j:function(a){var $self=this;var b=a.member().levelDepth();var c;if(function(){var d=$self.d.tryGetValue(b+1,c);c=d.p1;return d.ret}()){var e=c.getEnumerator();while(e.moveNext()){var d=e.current();if(d.member().parentUniqueName()==a.member().uniqueName()){a.n(d)}}}},$type:new $.ig.Type("HierarchyFilterView",$.ig.$ot)},true);$c("FilterMember:f7","Object",{l:$m($$t.$d.$type,null),c:false,e:false,d:false,init:function(a){this.e=false;this.d=false;$.ig.$op.init.call(this);var b=$m($$t.$d.$type,true);this.l=b;this.member(a);this._k=0;this._j=0},selectionChanged:null,propertyChanged:null,_parent:null,parent:function(a){if(arguments.length===1){this._parent=a;return a}else{return this._parent}},_member:null,member:function(a){if(arguments.length===1){this._member=a;return a}else{return this._member}},isExpandable:function(){return this.member().childrenCardinality()>0},isExpanded:function(a){if(arguments.length===1){if(this.c!=a){this.c=a;this.o("IsExpanded")}return a}else{return this.c}},isSelected:function(a){if(arguments.length===1){var b=a;var c=$m($$t.$d.$type,null);if($j(this.l,b)==false){var d=this.l;this.l=a;if(!this.d){if(this.l.hasValue()==true){if(this.children()!=null){var f=this.children().getEnumerator();while(f.moveNext()){var e=f.current();e.e=true;e.isSelected(this.l);e.e=false}}}}if(this.parent()!=null){if(d.hasValue()==true&&d.value()==false){if(this.l.hasValue()==false){this.p(true)}this.q(false)}else if(d.hasValue()==false){if(this.l.hasValue()==true&&this.l.value()==false){this.q(true)}this.p(false)}else{if(this.l.hasValue()==true&&this.l.value()==false){this.q(true)}else if(this.l.hasValue()==false){this.p(true)}}if(!this.e){this.parent().d=true;var g=this.parent()._k;var h=this.parent()._j;var i=this.parent().children().count();if(h==0){if(g==0){this.parent().isSelected($m($$t.$d.$type,true))}else if(g==i){this.parent().isSelected($m($$t.$d.$type,false))}else{this.parent().isSelected(c)}}else{this.parent().isSelected(c)}this.parent().d=false}}this.o("IsSelected");if(!this.e&&!this.d){if(this.selectionChanged!=null){this.selectionChanged(this,$$t.$cu.empty)}}}return a}else{return this.l}},q:function(a){if(a){this.parent()._k=this.parent()._k+1}else{this.parent()._k=this.parent()._k-1}},p:function(a){if(a){this.parent()._j=this.parent()._j+1}else{this.parent()._j=this.parent()._j-1}},_children:null,children:function(a){if(arguments.length===1){this._children=a;return a}else{return this._children}},n:function(a){if(this.children()==null){this.children(new $$t.bo($$t.$f7.$type,0))}a.parent(this);this.children().add(a);this.o("Children")},_k:0,_j:0,o:function(a){if(this.propertyChanged!=null){this.propertyChanged(this,new $$t.ga(a))}},$type:new $.ig.Type("FilterMember",$.ig.$ot,[$$t.$f8.$type])},true);$c("FilterMemberStateChangedEventArgs:gb","EventArgs",{init:function(a){$$t.$cu.init.call(this);this.filterMember(a)},_filterMember:null,filterMember:function(a){if(arguments.length===1){this._filterMember=a;return a}else{return this._filterMember}},$type:new $.ig.Type("FilterMemberStateChangedEventArgs",$$t.$cu.$type)},true);$c("ResultSorter$1:fo","Object",{$t:null,_a:null,_d:false,_c:false,init:function($t,a,b,c){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this._a=a;this._d=b;this._c=c},b:function(){},e:function(a,b,c){a.e();var d=a._d;var e=new Array(d.count());for(var f=0;f<d.count();f++){var g=d.item(f);c.add(g,f)}for(var h=0;h<d.count();h++){var i=d.item(h);var j=b.tuples().__inner[i];e[h]=j}return new $$t.bo($$t.$cz.$type,1,e)},$type:new $.ig.Type("ResultSorter$1",$.ig.$ot)},true);$c("AxisTupleVisitor:fp","Object",{_a:null,_d:null,init:function(a){$.ig.$op.init.call(this);this._a=a},e:function(){if(this._a.positionResolver().hasUnregisterdPositions()){this._a.positionResolver().completeRegisterPositions()}this._d=new $$t.bo($$t.$l.$type,2,this._a.tuples().count());var a=this._a.positionResolver().rootPositionInfo();var b=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(c){return c.positionItemDepth()==a.positionItemDepthMin()});var d=this.c(a,b).getEnumerator();while(d.moveNext()){var c=d.current();this.f(a,c)}},b:function(a,b){},c:function(a,b){},f:function(a,b){var c=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),b.values(),function(d){return d.positionItemDepth()==b.positionItemDepthMin()});if($$t.$cn.aj($$t.$b8.$type.specialize(String,$.ig.$op.$type),c)>0){if($$t.$cn.b($$t.$b8.$type.specialize(String,$.ig.$op.$type),c,function(d){return d.positionItemDepth()>-1&&d.parentKey()==null&&d.hierarchyLevelKey()!=null&&d.hierarchyLevelKey().contains("[all]")==false})){c=this.c(a,c)}var e=c.getEnumerator();while(e.moveNext()){var d=e.current();this.f(b,d)}}else{this._d.add(b.positionIndex())}var f=this.b(a,b);var h=f.getEnumerator();while(h.moveNext()){var g=h.current();this.f(a,g)}},$type:new $.ig.Type("AxisTupleVisitor",$.ig.$ot)},true);$c("AxisHeaderSortingVisitor:fq","AxisTupleVisitor",{h:null,i:null,g:null,init:function(a,b,c,d){$$t.$fp.init.call(this,a);this.h=b;this.i=c;this.g=d},b:function(a,b){var c=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(d){return d.parentKey()==b.key()});return this.c(a,c)},c:function(a,b){var $self=this;var c=$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),b);if(c.count()>0){var d=c.item(0);var e;if(d.hierarchyLevelKey()!=null&&function(){var f=$self.h.tryGetValue(d.hierarchyLevelKey(),e);e=f.p1;return f.ret}()){if(e.sortBehavior()==1){c=e.sortDirection()==0?$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.x($$t.$b8.$type.specialize(String,$.ig.$op.$type),$.ig.$op.$type,c,function(f){return f.sortKey()})):$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.y($$t.$b8.$type.specialize(String,$.ig.$op.$type),$.ig.$op.$type,c,function(f){return f.sortKey()}))}else{c=e.sortDirection()==0?$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.x($$t.$b8.$type.specialize(String,$.ig.$op.$type),String,c,function(f){return f.caption()})):$$t.$cn.z($$t.$b8.$type.specialize(String,$.ig.$op.$type),$$t.$cn.y($$t.$b8.$type.specialize(String,$.ig.$op.$type),String,c,function(f){return f.caption()}))}if($$t.$cn.d($$t.$ez.$type,this.i,function(f){return f.levelUniqueName()==e.levelUniqueName()})==false){this.i.add(e)}var f;if(!function(){var g=$self.g.tryGetValue(d.positionItemIndex(),f);f=g.p1;return g.ret}()){f=new $$t.b9($$t.$l.$type,$$t.$cx.$type,0);this.g.add(d.positionItemIndex(),f)}f.item(d.positionItemDepth(),e.sortDirection())}}return c},$type:new $.ig.Type("AxisHeaderSortingVisitor",$$t.$fp.$type)},true);$c("ResultHeaderSorter:fn","ResultSorter$1",{f:null,_h:null,_g:null,init:function(a,b,c,d){$$t.$fo.init.call(this,$$t.$fq.$type,a,b,c);this.f=new $$t.b9(String,$$t.$ez.$type,1,d.count());var f=d.getEnumerator();while(f.moveNext()){var e=f.current();this.f.item(e.levelUniqueName(),e)}},b:function(){var $self=this;this._h=new $$t.bo($$t.$ez.$type,0);this._g=new $$t.b9(String,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$cx.$type)),0);if(this._a.isEmpty()){return this._a}var a=new $$t.bo($$t.$bm.$type,0);var b=0;var c=1;var d=new $$t.b9($$t.$l.$type,$$t.$l.$type,0);var e=new $$t.b9($$t.$l.$type,$$t.$l.$type,0);if(this._c){var f=this._a.axes().item(b);var g=new $$t.b9($$t.$l.$type,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$cx.$type),0);var h=new $$t.fq(f,this.f,this._h,g);var i=this.e(h,f,d);var j=function(){var $ret=new $$t.bm(i,f.tupleSize());$ret.name(f.name());return $ret}();a.add(j);this._g.item(f.name(),g);c=f.tuples().count();b++}if(this._d){var k=this._a.axes().item(b);var l=new $$t.b9($$t.$l.$type,$$t.$ca.$type.specialize($$t.$l.$type,$$t.$cx.$type),0);var m=new $$t.fq(k,this.f,this._h,l);var n=this.e(m,k,e);var o=function(){var $ret=new $$t.bm(n,k.tupleSize());$ret.name(k.name());return $ret}();a.add(o);this._g.item(k.name(),l)}var p=new $$t.bo($$t.$c3.$type,2,this._a.cells().count());var r=this._a.cells().getEnumerator();while(r.moveNext()){var q=r.current();var s=q.clone();var t=s.cellOrdinal();if(this._c){var u=t%c;var v=d.item(u);if(u!=v){var w=$a(t,c);t=w*c+v}}if(this._d){var x=$a(t,c);var y=e.item(x);if(x!=y){var z=t%c;t=y*c+z}}s.cellOrdinal(t);p.add(s)}var aa=function(){var $ret=new $$t.bl;$ret.isEmpty($self._a.isEmpty());$ret.axes(a);$ret.cells(p);return $ret}();return aa},$type:new $.ig.Type("ResultHeaderSorter",$$t.$fo.$type.specialize($$t.$fq.$type))},true);$c("AxisValueSortingVisitor:fs","AxisTupleVisitor",{g:null,init:function(a,b){$$t.$fp.init.call(this,a);this.g=b},b:function(a,b){var c=$$t.$cn.u($$t.$b8.$type.specialize(String,$.ig.$op.$type),a.values(),function(d){return d.parentKey()==b.key()});return this.c(a,c)},c:function(a,b){var positionItemInfos_=$$t.$cn.a($$t.$b8.$type.specialize(String,$.ig.$op.$type),b);if(positionItemInfos_.length>0){var tupleSortDirections_=$$t.$cn.a($$t.$cb.$type.specialize($$t.$e1.$type,Array),this.g);var sortFunction=function(tupleSortDirections){var compareCells=function(comparer,cell1,cell2){var result=comparer(cell1,cell2);if(result<0){return-1}if(result>0){return 1}return!isNaN(parseFloat(result))&&isFinite(result)?result:0};return function(o1,o2){var i,length,tupleSortDirection,cells,direction,cell1,cell2,arr1=[],arr2=[];for(i=0;i<tupleSortDirections.length;i++){tupleSortDirection=tupleSortDirections[i].key();cells=tupleSortDirections[i].value();if(tupleSortDirection.sortDirection()===$.ig.ListSortDirection.prototype.ascending){direction=1}else{direction=-1}var comparer=tupleSortDirection.comparer();cell1=cells[o1.positionIndex()];cell2=cells[o2.positionIndex()];if(tupleSortDirections.length===1){arr1=direction*compareCells(comparer,cell1,cell2);arr2=direction*compareCells(comparer,cell2,cell1)}else{arr1.push(direction*compareCells(comparer,cell1,cell2));arr2.push(direction*compareCells(comparer,cell2,cell1))}}if(arr1<arr2){return-1}if(arr1>arr2){return 1}return 0}};positionItemInfos_.sort(sortFunction(tupleSortDirections_))}return positionItemInfos_},$type:new $.ig.Type("AxisValueSortingVisitor",$$t.$fp.$type)},true);$c("ResultColumnValueSorter:fr","ResultSorter$1",{f:null,_g:null,init:function(a,b,c,d){$$t.$fo.init.call(this,$$t.$fs.$type,a,b,c);this.f=d},b:function(){var $self=this;this._g=new $$t.bo($$t.$e1.$type,0);if(!this._d||this._a.isEmpty()){return this._a}var a=new $$t.bo($$t.$bm.$type,0);var b=0;var c=null;var d=1;if(this._c){c=this._a.axes().item(b);d=c.tuples().count();a.add(c.clone());b++}var e=this._a.axes().item(b);var f=this._a.axes().item(b).tuples().count();var g=new $$t.b9($$t.$l.$type,$.ig.$op.$type,1,this._a.cells().count());var i=this._a.cells().getEnumerator();while(i.moveNext()){var h=i.current();var j=null;if(function(){var k=h.properties().tryGetValue("Value",j);j=k.p1;return k.ret}()){g.item(h.cellOrdinal(),j)}else{var k=h.properties().tryGetValue("FmtValue",j);j=k.p1;g.item(h.cellOrdinal(),j)}}var l=new $$t.bo($$t.$cb.$type.specialize($$t.$e1.$type,Array),2,this.f.count());var n=this.f.getEnumerator();while(n.moveNext()){var m=n.current();var o;if(c!=null&&m.memberNames()!=null){if(c.positionResolver().hasUnregisterdPositions()){c.positionResolver().completeRegisterPositions()}o=c.positionResolver().rootPositionInfo().getIndex(m.memberNames());m.tupleIndex(o)}else{o=m.tupleIndex()}if(o>-1&&o<d){var p=new Array(f);for(var q=0;q<f;q++){var r=null;var s=g.tryGetValue(q*d+o,r);r=s.p1;p[q]=r}l.add(new $$t.cb($$t.$e1.$type,Array,1,m,p));this._g.add(m)}}var t=new $$t.b9($$t.$l.$type,$$t.$l.$type,0);var u=new $$t.fs(e,l);var v=this.e(u,e,t);var w=function(){var $ret=new $$t.bm(v,e.tupleSize());$ret.name(e.name());return $ret}();a.add(w);var x=new $$t.bo($$t.$c3.$type,2,this._a.cells().count());var z=this._a.cells().getEnumerator();while(z.moveNext()){var y=z.current();var aa=y.clone();var ab=aa.cellOrdinal();var ac=$a(ab,d);var ad=t.item(ac);if(ac!=ad){var ae=ab%d;ab=ad*d+ae}aa.cellOrdinal(ab);x.add(aa)}var af=function(){var $ret=new $$t.bl;$ret.isEmpty($self._a.isEmpty());$ret.axes(a);$ret.cells(x);return $ret}();return af},$type:new $.ig.Type("ResultColumnValueSorter",$$t.$fo.$type.specialize($$t.$fs.$type))},true);$c("jQueryUtils:gc","Object",{init:function(){$.ig.$op.init.call(this)},c:function($t,a){if(a==null){return null}var jsObject_=a;var dict_=new $$t.b9(String,$t,0);(function(obj,dict){var tempDict=$.ig.Dictionary.prototype.getDictionary(obj);var keys=tempDict.keys();while(keys.moveNext()){var key=keys.current();var value=tempDict.item(key);dict.add(key,value)}})(jsObject_,dict_);return dict_},i:function($t,a){if(a==null){return null}var jsObject_=$$t.$gc.createJavascriptObject();var b=a.getEnumerator();while(b.moveNext()){var item_=b.current();jsObject_[item_.key()]=item_.value()}return jsObject_},convertToObjectDictionary:function(a){return $$t.$gc.c($.ig.$op.$type,a)},convertToStringDictionary:function(a){return $$t.$gc.c(String,a)},convertFromObjectDictionary:function(a){return $$t.$gc.i($.ig.$op.$type,a)},convertFromStringDictionary:function(a){return $$t.$gc.i(String,a)},createJavascriptObject:function(){return{}},getJavascriptObjectProperty:function(a,b){var jsObject_=a;var property_=b;return jsObject_[property_]},setJavascriptObjectProperty:function(a,b,c){var jsObject_=a;var property_=b;var value_=c;jsObject_[property_]=value_},getJavascriptObjectMethodResult:function(a,b,c){var jsObject_=a;var method_=b;var args_=c;return jsObject_[method_].call(jsObject_,args_)},$type:new $.ig.Type("jQueryUtils",$.ig.$ot)},true);$c("OlapTableView:gd","Object",{a:null,init:function(a,b,c,d){$.ig.$op.init.call(this);var e=this.b(d);this.a=new $$t.fj(a,b,c,e)},rowHeaders:function(){if(this.a.rowHeaders()==null){return null}return this.a.rowHeaders().inner()},columnHeaders:function(){if(this.a.columnHeaders()==null){return null}return this.a.columnHeaders().inner()},resultCells:function(){if(this.a.resultCells()==null){return null}return this.a.resultCells().inner()},columnSortDirections:function(a){if(arguments.length===1){this.a.columnSortDirections().clear();var c=a.getEnumerator();while(c.moveNext()){var b=c.current();var d=this.d(b);this.a.columnSortDirections().add(d)}return a}else{var a=new $$t.bs;var c=this.a.columnSortDirections().getEnumerator();while(c.moveNext()){var b=c.current();a.add(this.n(b))}return a}},appliedColumnSortDirections:function(){var a=new $$t.bs;var c=this.a.appliedColumnSortDirections().getEnumerator();while(c.moveNext()){var b=c.current();a.add(this.n(b))}return a},levelSortDirections:function(a){if(arguments.length===1){this.a.levelSortDirections().clear();var c=a.getEnumerator();while(c.moveNext()){var b=c.current();var d=this.c(b);this.a.levelSortDirections().add(d)}return a}else{var a=new $$t.bs;var c=this.a.levelSortDirections().getEnumerator();while(c.moveNext()){var b=c.current();a.add(this.m(b))}return a}},appliedLevelSortDirections:function(){var a=new $$t.bs;var c=this.a.appliedLevelSortDirections().getEnumerator();while(c.moveNext()){var b=c.current();a.add(this.m(b))}return a},appliedSortDirectionsMap:function(){var resultMap_=$$t.$gc.createJavascriptObject();var a=this.a.appliedSortDirectionsMap().getEnumerator();while(a.moveNext()){var i_=a.current();var axisMap_=$$t.$gc.createJavascriptObject();var b=i_.value().getEnumerator();while(b.moveNext()){var j_=b.current();var hierarchyMap_=$$t.$gc.createJavascriptObject();var c=j_.value().getEnumerator();while(c.moveNext()){var k_=c.current();var sortDirection_=k_.value()==0?"ascending":"descending";hierarchyMap_[k_.key()]=sortDirection_}axisMap_[j_.key()]=hierarchyMap_}resultMap_[i_.key()]=axisMap_}return resultMap_},initialize:function(){this.a.initialize()},b:function(a){var b=new $$t.fk;var c=$$t.$gc.getJavascriptObjectProperty(a,"rowHeadersLayout");var d=1;if(!String.isNullOrEmpty(c)){switch(c){case"tree":d=2;var e=$$t.$gc.getJavascriptObjectProperty(a,"compactRowHeaderIndentation");var f=$$t.$gc.getJavascriptObjectProperty(a,"treeRowHeaderIndentation");b=new $$t.ft(e,f);break;case"standard":d=0;break}}var g=$$t.$gc.getJavascriptObjectProperty(a,"isParentInFrontForColumns");var h=$$t.$gc.getJavascriptObjectProperty(a,"isParentInFrontForRows");var i=$$t.$gc.getJavascriptObjectProperty(a,"compactColumnHeaders");b._c=g;b._d=h;b._b=i;b._a=d;return b},d:function(o_){var a=$$t.$gc.getJavascriptObjectProperty(o_,"memberNames");var b=$h($$t.$gc.getJavascriptObjectProperty(o_,"tupleIndex"));var c=$$t.$gc.getJavascriptObjectProperty(o_,"sortDirection");var d=0;if(!String.isNullOrEmpty(c)){c=c.toLowerCase();if(c=="descending"){d=1}}var comparer_=null;if($.isFunction(o_.comparer)){comparer_=o_.comparer}else{comparer_=function(o1,o2){return parseFloat(o1||-Infinity)-parseFloat(o2||-Infinity)}}return function(){var $ret=new $$t.e1;$ret.memberNames(a);$ret.tupleIndex(b);$ret.sortDirection(d);$ret.comparer(comparer_);return $ret}()},n:function(a){var b=$$t.$gc.createJavascriptObject();$$t.$gc.setJavascriptObjectProperty(b,"memberNames",a.memberNames());$$t.$gc.setJavascriptObjectProperty(b,"tupleIndex",a.tupleIndex());$$t.$gc.setJavascriptObjectProperty(b,"sortDirection",a.sortDirection()==0?"ascending":"descending");if(a.comparer()!=null){$$t.$gc.setJavascriptObjectProperty(b,"comparer",a.comparer())}return b},c:function(a){var b=$$t.$gc.getJavascriptObjectProperty(a,"levelUniqueName");var c=$$t.$gc.getJavascriptObjectProperty(a,"sortDirection");var d=$$t.$gc.getJavascriptObjectProperty(a,"sortBehavior");if(!String.isNullOrEmpty(b)){var e=new $$t.ez;e.sortDirection(0);e.sortBehavior(1);e.levelUniqueName(b);if(!String.isNullOrEmpty(c)){c=c.toLowerCase();if(c=="descending"){e.sortDirection(1)}}if(!String.isNullOrEmpty(d)){d=d.toLowerCase();if(d=="alphabetical"){e.sortBehavior(0)}}return e}else{return null}},m:function(a){var b=$$t.$gc.createJavascriptObject();$$t.$gc.setJavascriptObjectProperty(b,"levelUniqueName",a.levelUniqueName());$$t.$gc.setJavascriptObjectProperty(b,"sortBehavior",a.sortBehavior()==1?"system":"alphabetical");$$t.$gc.setJavascriptObjectProperty(b,"sortDirection",a.sortDirection()==0?"ascending":"descending");return b},$type:new $.ig.Type("OlapTableView",$.ig.$ot)},true);$c("IConnection:ge","Object",{$type:new $.ig.Type("IConnection",null)},true);$c("IOlapDataProviderFactory:d9","Object",{$type:new $.ig.Type("IOlapDataProviderFactory",null)},true);$c("IOlapDiscoverDataProvider:ea","Object",{$type:new $.ig.Type("IOlapDiscoverDataProvider",null)},true);$c("IOlapExecuteCommandProvider:gf","Object",{$type:new $.ig.Type("IOlapExecuteCommandProvider",null)},true);$c("ArrayListCollection$1:c4","Object",{$t:null,init:function($t){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this.inner(new $$t.bs)},_inner:null,inner:function(a){if(arguments.length===1){this._inner=a;return a}else{return this._inner}},collectionChanged:null,indexOf:function(a){return this.inner().indexOf($e(this.$t,a))},insert:function(a,b){this.inner().insert(a,$e(this.$t,b));this.d(a,b)},removeAt:function(a){var b=$v(this.$t,this.inner()[a]);this.inner().removeAt(a);this.e(a,b)},item:function(a,b){if(arguments.length===2){this.inner()[a]=$e(this.$t,b);return b}else{return $v(this.$t,this.inner()[a])}},add:function(a){this.inner().add($e(this.$t,a));this.d(this.inner().length-1,a)},clear:function(){this.inner().clear();this.c()},contains:function(a){return this.inner().contains($e(this.$t,a))},copyTo:function(a,b){throw new $$t.b5(0)},count:function(){return this.inner().length},isReadOnly:function(){return false},remove:function(a){var b=this.inner().indexOf($e(this.$t,a));if(b>=0){this.inner().removeAt(b);this.e(b,a);return true}return false},b:function(){var d__=new $.ig.ArrayListCollection___Enumerate__IteratorClass$1(this.$t,(-2));d__.__4__this=this;return d__},getEnumerator:function(){return this.b().getEnumerator()},d:function(a,b){if(this.collectionChanged!=null){var c=new $$t.c7(1,0,$e(this.$t,b),a);this.collectionChanged(this,c)}},e:function(a,b){if(this.collectionChanged!=null){var c=new $$t.c7(1,1,$e(this.$t,b),a);this.collectionChanged(this,c)}},c:function(){if(this.collectionChanged!=null){var a=new $$t.c7(1,4,null,(-1));this.collectionChanged(this,a)}},$type:new $.ig.Type("ArrayListCollection$1",$.ig.$ot,[$$t.$be.$type.specialize(0),$$t.$c5.$type])},true);$c("ICoreOlapElement:bc","Object",{$type:new $.ig.Type("ICoreOlapElement",null)},true);$c("MeasureList:er","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},uniqueName:function(a){if(arguments.length===1){this.name(a);return a}else{return this.name()}},_measures:null,measures:function(a){if(arguments.length===1){this._measures=a;return a}else{return this._measures}},$type:new $.ig.Type("MeasureList",$.ig.$ot,[$$t.$bc.$type])},true);$c("OlapMetadataTreeItem:bb","Object",{init:function(){$.ig.$op.init.call(this)},_item:null,item:function(a){if(arguments.length===1){this._item=a;return a}else{return this._item}},_type:0,type:function(a){if(arguments.length===1){this._type=a;return a}else{return this._type}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_children:null,children:function(a){if(arguments.length===1){this._children=a;return a}else{return this._children}},e:function(a){if(this.children()==null){this.children(new Array(1));this.children()[0]=a;return}var b=new Array(this.children().length+1);$.ig.util.arrayCopy1(this.children(),0,b,0,this.children().length);b[this.children().length]=a;this.children(b)},$type:new $.ig.Type("OlapMetadataTreeItem",$.ig.$ot)},true);$c("GetPositionIndexCompletedEventArgs:gg","AsyncCompletedEventArgs",{init:function(a,b,c,d){$$t.$ct.init.call(this,b,c,d);this.positionIndex(a)},_positionIndex:0,positionIndex:function(a){if(arguments.length===1){this._positionIndex=a;return a}else{return this._positionIndex}},$type:new $.ig.Type("GetPositionIndexCompletedEventArgs",$$t.$ct.$type)},true);$c("KeyValueItem:eb","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_b:null,$type:new $.ig.Type("KeyValueItem",$.ig.$ot)},true);$c("AxisElement:eq","Object",{init:function(a,b){$.ig.$op.init.call(this);this._b=a;this._a=b},_b:null,_a:null,$type:new $.ig.Type("AxisElement",$.ig.$ot)},true);$c("IPositionItem$2:b7","Object",{$type:new $.ig.Type("IPositionItem$2",null)},true);$c("IHierarchicalPositionItem$2:cl","Object",{$type:new $.ig.Type("IHierarchicalPositionItem$2",null,[$$t.$b7.$type.specialize(0,1)])},true);$c("PositionItemInfo$2:b8","Dictionary$2",{$tKey:null,$tSortKey:null,init:function($tKey,$tSortKey,a,b,c,d){this.$tKey=$tKey;this.$tSortKey=$tSortKey;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tSortKey)}$$t.$b9.init.call(this,this.$tKey,$$t.$b8.$type.specialize(this.$tKey,this.$tSortKey),0);this.ab=new $$t.b9(this.$tKey,$.ig.$op.$type,0);this.positionItem(a);this.positionIndex(b);this.positionItemIndex(c);this.positionItemDepth(0);this.positionItemDepthMin(-1);this.positionItemDepthMax(2147483647);this.positionSize(d);if(a!=null){this.positionItemDepth(this.positionItem().depth());this.key(this.positionItem().key());this.parentKey(this.positionItem().parentKey());this.hierarchyKey(this.positionItem().hierarchyKey());this.hierarchyLevelKey(this.positionItem().hierarchyLevelKey());this.sortKey(this.positionItem().sortKey());this.caption(this.positionItem().caption())}},q:function(a,b,c,d){return new $$t.b8(this.$tKey,this.$tSortKey,a,b,c,d)},_positionItemDepthMin:0,positionItemDepthMin:function(a){if(arguments.length===1){this._positionItemDepthMin=a;return a}else{return this._positionItemDepthMin}},_positionItemDepthMax:0,positionItemDepthMax:function(a){if(arguments.length===1){this._positionItemDepthMax=a;return a}else{return this._positionItemDepthMax}},_positionItem:null,positionItem:function(a){if(arguments.length===1){this._positionItem=a;return a}else{return this._positionItem}},_positionIndex:0,positionIndex:function(a){if(arguments.length===1){this._positionIndex=a;return a}else{return this._positionIndex}},_positionItemDepth:0,positionItemDepth:function(a){if(arguments.length===1){this._positionItemDepth=a;return a}else{return this._positionItemDepth}},_positionItemIndex:0,positionItemIndex:function(a){if(arguments.length===1){this._positionItemIndex=a;return a}else{return this._positionItemIndex}},_positionSize:0,positionSize:function(a){if(arguments.length===1){this._positionSize=a;return a}else{return this._positionSize}},_key:null,key:function(a){if(arguments.length===1){this._key=a;return a}else{return this._key}},_parentKey:null,parentKey:function(a){if(arguments.length===1){this._parentKey=a;return a}else{return this._parentKey}},_hierarchyKey:null,hierarchyKey:function(a){if(arguments.length===1){this._hierarchyKey=a;return a}else{return this._hierarchyKey}},_hierarchyLevelKey:null,hierarchyLevelKey:function(a){if(arguments.length===1){this._hierarchyLevelKey=a;return a}else{return this._hierarchyLevelKey}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},v:null,sortKey:function(a){if(arguments.length===1){this.v=a;return a}else{return this.v}},_isExpandable:false,isExpandable:function(a){if(arguments.length===1){this._isExpandable=a;return a}else{return this._isExpandable}},_isExpanded:false,isExpanded:function(a){if(arguments.length===1){this._isExpanded=a;return a}else{return this._isExpanded}},x:function(a,b,c){var d=false;if(this.positionItemIndex()==-1){d=true}else{if(c!=null){if(a.item(this.positionItemIndex()).key()!=null){var e=c.item(this.positionItemIndex());d=a.item(this.positionItemIndex()).key().equals(e.key())}}}if(this.positionItemIndex()+1==this.positionSize()){return d}var f=this.y(a,b,this.positionItemIndex()+1,c);return d&&f},am:function(a,b){},ab:null,y:function(a,b,c,d){var $self=this;var e;var f=a.item(c);if(!this.containsKey(f.key())){var g=this.q(f,b,c,this.positionSize());g.isExpandable(f.isExpandable());if(this.ab.containsKey(g.key())){this.ab.remove(g.key());g.isExpanded(true)}if(f.parentKey()!=null){var h=null;if(function(){var i=$self.tryGetValue(f.parentKey(),h);h=i.p1;return i.ret}()){h.isExpanded(true)}else{if(!this.ab.containsKey(f.parentKey())){this.ab.add(f.parentKey(),null)}}}e=g.x(a,b,d);this.add(f.key(),g);if(this.positionItemDepthMin()==-1){this.positionItemDepthMin(f.depth())}else{this.positionItemDepthMin(Math.min(this.positionItemDepthMin(),f.depth()))}if(this.positionItemDepthMax()==2147483647){this.positionItemDepthMax(f.depth())}else{this.positionItemDepthMax(Math.max(this.positionItemDepthMax(),f.depth()))}this.am(a,g)}else{var i=this.item(f.key());e=i.x(a,b,d)}return e},getIndex2:function(a){var b=new Array(a.count());for(var c=0;c<b.length;c++){b[c]=a.item(c).key()}return this.getIndex(b)},getIndex:function(a){return this.ad(a,a.length)},ad:function(a,b){var $self=this;if(this.positionItemIndex()==b-1){return this.positionIndex()}var c;if(!function(){var d=$self.tryGetValue(a[$self.positionItemIndex()+1],c);c=d.p1;return d.ret}()){return-1}if(c.count()==0){return c.positionIndex()}return c.ad(a,b)},$type:new $.ig.Type("PositionItemInfo$2",$$t.$b9.$type.specialize(0,-1))},true);$$t.$b8.$type.initSelfReferences();$c("PositionResolver$2:bn","Object",{$tKey:null,$tSortKey:null,m:0,b:null,f:null,g:null,init:function($tKey,$tSortKey,a,b){this.$tKey=$tKey;this.$tSortKey=$tSortKey;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$tKey,this.$tSortKey)}this.m=0;$.ig.$op.init.call(this);this.positions($$t.$cn.z($$t.$b6.$type.specialize(this.$tKey,this.$tSortKey),a));this.positionSize(b)},getPositionIndexCompleted:null,_positions:null,positions:function(a){if(arguments.length===1){this._positions=a;return a}else{return this._positions}},_positionSize:0,positionSize:function(a){if(arguments.length===1){this._positionSize=a;return a}else{return this._positionSize}},rootPositionInfo:function(){if(this.b==null){this.b=this.d(this.positionSize())}return this.b},d:function(a){return new $$t.b8(this.$tKey,this.$tSortKey,null,(-1),(-1),a)},hasUnregisterdPositions:function(){return this.m<this.positions().count()},completeRegisterPositions:function(){if(this.hasUnregisterdPositions()){this.q(null)}},resolveParentPositionItem:function(a,b){b=-1;var c=$b($$t.$cl.$type.specialize(this.$tKey,this.$tSortKey),a);if(c==null||c.parentKey()==null){return{ret:null,p1:b}}var d=c.position().indexOf(c);var e=new Array(c.position().itemsCount());for(var f=0;f<c.position().itemsCount();f++){e[f]=c.position().item(f).key()}e[d]=c.parentKey();b=this.rootPositionInfo().getIndex(e);if(b==-1){return{ret:null,p1:b}}var g=this.positions().__inner[b];var h=g.item(d);return{ret:h,p1:b}},getHostPositionItemInfo:function(a,b){var c=this.rootPositionInfo();var d=a.item(b);for(var e=0;e<b;e++){var f;if(function(){var g=c.tryGetValue(a.item(e).key(),f);f=g.p1;return g.ret}()){c=f}else{c=null;break}}if(c==null){return null}if(!c.containsKey(d.key())){return null}return c},i:function(a,b){if(this.rootPositionInfo().count()==0){return null}var c=this.rootPositionInfo();var d=a.position().indexOf(a);for(var e=0;e<d;e++){var f;if(function(){var g=c.tryGetValue(a.position().item(e).key(),f);f=g.p1;return g.ret}()){c=f}else{c=null;break}}if(c==null){return null}if(!c.containsKey(a.key())){return null}var g=new $$t.bo($$t.$l.$type,0);this.u(a.key(),c,g);if(b==1){g.sort2(function(h,i){if(h==i){return 0}if(h>i){return-1}return 1});return g}g.sort2(function(h,i){if(h==i){return 0}if(h>i){return 1}return-1});return g},u:function(a,b,c){var e=$$t.$cn.u($$t.$b8.$type.specialize(this.$tKey,this.$tSortKey),b.values(),function(f){return a.equals(f.parentKey())}).getEnumerator();while(e.moveNext()){var d=e.current();if(d.count()==0){c.add(d.positionIndex())}else{this.t(d,c)}if(!d.isExpanded()){continue}if(d.positionItemDepth()<b.positionItemDepthMax()){this.u(d.key(),b,c)}}},t:function(a,b){var d=$$t.$cn.u($$t.$b8.$type.specialize(this.$tKey,this.$tSortKey),a.values(),function(e){return e.parentKey()==null}).getEnumerator();while(d.moveNext()){var c=d.current();if(c.count()==0){b.add(c.positionIndex())}else{this.t(c,b)}if(!c.isExpanded()){continue}if(c.positionItemDepth()<a.positionItemDepthMax()){this.u(c.key(),a,b)}}},getChildren:function(a,b){if(this.hasUnregisterdPositions()){this.completeRegisterPositions()}var c=this.getHostPositionItemInfo(a,b);var d=a.item(b);return $$t.$cn.u($$t.$b8.$type.specialize(this.$tKey,this.$tSortKey),c.values(),function(e){
return d.key().equals(e.parentKey())})},isMemberExpanded:function(a){if(this.hasUnregisterdPositions()){this.completeRegisterPositions()}var b=this.getPositionIndex(a.position());if(b==-1||this.rootPositionInfo().count()==0){return $m($$t.$d.$type,null)}var c=a.position().indexOf(a);var d=this.rootPositionInfo();for(var e=0;e<c;e++){var f;if(function(){var g=d.tryGetValue(a.position().item(e).key(),f);f=g.p1;return g.ret}()){d=f}else{d=null;break}}if(d==null){return $m($$t.$d.$type,null)}if(!d.containsKey(a.key())){return $m($$t.$d.$type,null)}var g=null;var h=d.values().getEnumerator();while(h.moveNext()){if(a.key().equals(h.current().parentKey())){g=h.current();break}}return $m($$t.$d.$type,g!=null)},getPositionIndex:function(a){if(a==null){return-1}if(a.itemsCount()!=this.positionSize()){return-1}if(a.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty()){return 0}if(this.m>0){var b=this.o(a);if(b>-1){return b}if(this.m==this.positions().count()){return-1}}return this.q(a)},o:function(a){if(a.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty()){return 0}return this.rootPositionInfo().getIndex2($$t.$cn.z($$t.$b7.$type.specialize(this.$tKey,this.$tSortKey),a.getItems()))},q:function(a){var b=a==null;var c=-1;for(var d=this.m;d<this.positions().count();d++){var e=this.positions().__inner[d];var f=this.rootPositionInfo().x(e,d,a);this.m++;if(c==-1&&f){c=d;if(!b){break}}}return c},$type:new $.ig.Type("PositionResolver$2",$.ig.$ot)},true);$c("Cube:c9","Object",{init:function(){$.ig.$op.init.call(this)},_catalogName:null,catalogName:function(a){if(arguments.length===1){this._catalogName=a;return a}else{return this._catalogName}},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_cubeType:0,cubeType:function(a){if(arguments.length===1){this._cubeType=a;return a}else{return this._cubeType}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_lastProcessed:new Date,lastProcessed:function(a){if(arguments.length===1){this._lastProcessed=a;return a}else{return this._lastProcessed}},_lastUpdated:new Date,lastUpdated:function(a){if(arguments.length===1){this._lastUpdated=a;return a}else{return this._lastUpdated}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},uniqueName:function(a){if(arguments.length===1){this.name(a);return a}else{return this.name()}},$type:new $.ig.Type("Cube",$.ig.$ot,[$$t.$bc.$type])},true);$c("Catalog:d6","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},$type:new $.ig.Type("Catalog",$.ig.$ot,[$$t.$bc.$type])},true);$c("Dimension:ec","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_dimensionType:0,dimensionType:function(a){if(arguments.length===1){this._dimensionType=a;return a}else{return this._dimensionType}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_defaultHierarchy:null,defaultHierarchy:function(a){if(arguments.length===1){this._defaultHierarchy=a;return a}else{return this._defaultHierarchy}},$type:new $.ig.Type("Dimension",$.ig.$ot,[$$t.$bc.$type])},true);$c("KpiDimension:ex","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},$type:new $.ig.Type("KpiDimension",$.ig.$ot,[$$t.$bc.$type])},true);$c("Hierarchy:bg","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_defaultHierarchy:null,defaultHierarchy:function(a){if(arguments.length===1){this._defaultHierarchy=a;return a}else{return this._defaultHierarchy}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_defaultMember:null,defaultMember:function(a){if(arguments.length===1){this._defaultMember=a;return a}else{return this._defaultMember}},_allMember:null,allMember:function(a){if(arguments.length===1){this._allMember=a;return a}else{return this._allMember}},_dimensionUniqueName:null,dimensionUniqueName:function(a){if(arguments.length===1){this._dimensionUniqueName=a;return a}else{return this._dimensionUniqueName}},_hierarchyOrigin:0,hierarchyOrigin:function(a){if(arguments.length===1){this._hierarchyOrigin=a;return a}else{return this._hierarchyOrigin}},_hierarchyDisplayFolder:null,hierarchyDisplayFolder:function(a){if(arguments.length===1){this._hierarchyDisplayFolder=a;return a}else{return this._hierarchyDisplayFolder}},$type:new $.ig.Type("Hierarchy",$.ig.$ot,[$$t.$bc.$type])},true);$c("Kpi:eh","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_measureGroupName:null,measureGroupName:function(a){if(arguments.length===1){this._measureGroupName=a;return a}else{return this._measureGroupName}},_kpiDisplayFolder:null,kpiDisplayFolder:function(a){if(arguments.length===1){this._kpiDisplayFolder=a;return a}else{return this._kpiDisplayFolder}},_kpiValue:null,kpiValue:function(a){if(arguments.length===1){this._kpiValue=a;return a}else{return this._kpiValue}},_kpiGoal:null,kpiGoal:function(a){if(arguments.length===1){this._kpiGoal=a;return a}else{return this._kpiGoal}},_kpiStatus:null,kpiStatus:function(a){if(arguments.length===1){this._kpiStatus=a;return a}else{return this._kpiStatus}},_kpiTrend:null,kpiTrend:function(a){if(arguments.length===1){this._kpiTrend=a;return a}else{return this._kpiTrend}},_kpiStatusGraphic:null,kpiStatusGraphic:function(a){if(arguments.length===1){this._kpiStatusGraphic=a;return a}else{return this._kpiStatusGraphic}},_kpiTrendGraphic:null,kpiTrendGraphic:function(a){if(arguments.length===1){this._kpiTrendGraphic=a;return a}else{return this._kpiTrendGraphic}},_kpiWeight:null,kpiWeight:function(a){if(arguments.length===1){this._kpiWeight=a;return a}else{return this._kpiWeight}},_parentKpiName:null,parentKpiName:function(a){if(arguments.length===1){this._parentKpiName=a;return a}else{return this._parentKpiName}},_currentTimeMember:null,currentTimeMember:function(a){if(arguments.length===1){this._currentTimeMember=a;return a}else{return this._currentTimeMember}},$type:new $.ig.Type("Kpi",$.ig.$ot,[$$t.$bc.$type])},true);$c("Level:ee","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_depth:0,depth:function(a){if(arguments.length===1){this._depth=a;return a}else{return this._depth}},_hierarchyUniqueName:null,hierarchyUniqueName:function(a){if(arguments.length===1){this._hierarchyUniqueName=a;return a}else{return this._hierarchyUniqueName}},_dimensionUniqueName:null,dimensionUniqueName:function(a){if(arguments.length===1){this._dimensionUniqueName=a;return a}else{return this._dimensionUniqueName}},_membersCount:0,membersCount:function(a){if(arguments.length===1){this._membersCount=a;return a}else{return this._membersCount}},_levelOrigin:0,levelOrigin:function(a){if(arguments.length===1){this._levelOrigin=a;return a}else{return this._levelOrigin}},_levelOrderingProperty:null,levelOrderingProperty:function(a){if(arguments.length===1){this._levelOrderingProperty=a;return a}else{return this._levelOrderingProperty}},$type:new $.ig.Type("Level",$.ig.$ot,[$$t.$bc.$type])},true);$c("Measure:bi","Object",{init:function(){$.ig.$op.init.call(this)},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_measureGroupName:null,measureGroupName:function(a){if(arguments.length===1){this._measureGroupName=a;return a}else{return this._measureGroupName}},_aggregatorType:0,aggregatorType:function(a){if(arguments.length===1){this._aggregatorType=a;return a}else{return this._aggregatorType}},_defaultFormatString:null,defaultFormatString:function(a){if(arguments.length===1){this._defaultFormatString=a;return a}else{return this._defaultFormatString}},_measureDisplayFolder:null,measureDisplayFolder:function(a){if(arguments.length===1){this._measureDisplayFolder=a;return a}else{return this._measureDisplayFolder}},$type:new $.ig.Type("Measure",$.ig.$ot,[$$t.$bc.$type])},true);$c("KpiMeasure:en","Measure",{init:function(a,b){$$t.$bi.init.call(this);this.uniqueName(a);this.caption(b)},_graphic:null,graphic:function(a){if(arguments.length===1){this._graphic=a;return a}else{return this._graphic}},createKpiValueMeasure:function(a){return new $$t.en(a.kpiValue(),a.caption()+" Value")},createKpiGoalMeasure:function(a){return new $$t.en(a.kpiGoal(),a.caption()+" Goal")},createKpiWeightMeasure:function(a){return new $$t.en(a.kpiWeight(),a.caption()+" Weight")},createKpiStatusMeasure:function(a){var b=new $$t.en(a.kpiStatus(),a.caption()+" Status");b.graphic(a.kpiStatusGraphic());return b},createKpiTrendMeasure:function(a){var b=new $$t.en(a.kpiTrend(),a.caption()+" Trend");b.graphic(a.kpiTrendGraphic());return b},$type:new $.ig.Type("KpiMeasure",$$t.$bi.$type)},true);$c("MeasureGroup:d7","Object",{init:function(){$.ig.$op.init.call(this)},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_cubeName:null,cubeName:function(a){if(arguments.length===1){this._cubeName=a;return a}else{return this._cubeName}},_catalogName:null,catalogName:function(a){if(arguments.length===1){this._catalogName=a;return a}else{return this._catalogName}},uniqueName:function(a){if(arguments.length===1){this.name(a);return a}else{return this.name()}},$type:new $.ig.Type("MeasureGroup",$.ig.$ot,[$$t.$bc.$type])},true);$c("MeasureGroupDimension:ef","Object",{init:function(){$.ig.$op.init.call(this)},_cubeName:null,cubeName:function(a){if(arguments.length===1){this._cubeName=a;return a}else{return this._cubeName}},_catalogName:null,catalogName:function(a){if(arguments.length===1){this._catalogName=a;return a}else{return this._catalogName}},_measureGroupName:null,measureGroupName:function(a){if(arguments.length===1){this._measureGroupName=a;return a}else{return this._measureGroupName}},_dimensionUniqueName:null,dimensionUniqueName:function(a){if(arguments.length===1){this._dimensionUniqueName=a;return a}else{return this._dimensionUniqueName}},_measureGroupCardinality:0,measureGroupCardinality:function(a){if(arguments.length===1){this._measureGroupCardinality=a;return a}else{return this._measureGroupCardinality}},_dimensionCardinality:0,dimensionCardinality:function(a){if(arguments.length===1){this._dimensionCardinality=a;return a}else{return this._dimensionCardinality}},_isDimensionVisible:false,isDimensionVisible:function(a){if(arguments.length===1){this._isDimensionVisible=a;return a}else{return this._isDimensionVisible}},_isFactDimension:false,isFactDimension:function(a){if(arguments.length===1){this._isFactDimension=a;return a}else{return this._isFactDimension}},_dimensionPath:null,dimensionPath:function(a){if(arguments.length===1){this._dimensionPath=a;return a}else{return this._dimensionPath}},_dimensionGranularity:null,dimensionGranularity:function(a){if(arguments.length===1){this._dimensionGranularity=a;return a}else{return this._dimensionGranularity}},$type:new $.ig.Type("MeasureGroupDimension",$.ig.$ot)},true);$c("Member:d4","Object",{init:function(){$.ig.$op.init.call(this);var a=$m($$t.$l.$type,null);this.scope(a)},_cubeName:null,cubeName:function(a){if(arguments.length===1){this._cubeName=a;return a}else{return this._cubeName}},_catalogName:null,catalogName:function(a){if(arguments.length===1){this._catalogName=a;return a}else{return this._catalogName}},_dimensionUniqueName:null,dimensionUniqueName:function(a){if(arguments.length===1){this._dimensionUniqueName=a;return a}else{return this._dimensionUniqueName}},_hierarchyUniqueName:null,hierarchyUniqueName:function(a){if(arguments.length===1){this._hierarchyUniqueName=a;return a}else{return this._hierarchyUniqueName}},_levelUniqueName:null,levelUniqueName:function(a){if(arguments.length===1){this._levelUniqueName=a;return a}else{return this._levelUniqueName}},_levelDepth:0,levelDepth:function(a){if(arguments.length===1){this._levelDepth=a;return a}else{return this._levelDepth}},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_memberType:0,memberType:function(a){if(arguments.length===1){this._memberType=a;return a}else{return this._memberType}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_childrenCardinality:0,childrenCardinality:function(a){if(arguments.length===1){this._childrenCardinality=a;return a}else{return this._childrenCardinality}},_parentLevel:0,parentLevel:function(a){if(arguments.length===1){this._parentLevel=a;return a}else{return this._parentLevel}},_parentUniqueName:null,parentUniqueName:function(a){if(arguments.length===1){this._parentUniqueName=a;return a}else{return this._parentUniqueName}},_description:null,description:function(a){if(arguments.length===1){this._description=a;return a}else{return this._description}},_scope:$m($$t.$l.$type,null),scope:function(a){if(arguments.length===1){this._scope=a;return a}else{return this._scope}},$type:new $.ig.Type("Member",$.ig.$ot,[$$t.$bc.$type])},true);$c("OlapResult:bl","Object",{init:function(){$.ig.$op.init.call(this)},_isEmpty:false,isEmpty:function(a){if(arguments.length===1){this._isEmpty=a;return a}else{return this._isEmpty}},_axes:null,axes:function(a){if(arguments.length===1){this._axes=a;return a}else{return this._axes}},_cells:null,cells:function(a){if(arguments.length===1){this._cells=a;return a}else{return this._cells}},$type:new $.ig.Type("OlapResult",$.ig.$ot)},true);$c("OlapResultAxis:bm","Object",{init:function(a,b){$.ig.$op.init.call(this);this.tuples($$t.$cn.z($$t.$cz.$type,a));this.tupleSize(b);this.positionResolver(new $$t.bn(String,$.ig.$op.$type,a,b))},_positionResolver:null,positionResolver:function(a){if(arguments.length===1){this._positionResolver=a;return a}else{return this._positionResolver}},clone:function(){var $self=this;var a=new $$t.bo($$t.$cz.$type,0);var c=this.tuples().getEnumerator();while(c.moveNext()){var b=c.current();a.add(b.clone())}return function(){var $ret=new $$t.bm(a,$self.tupleSize());$ret.name($self.name());return $ret}()},_name:null,name:function(a){if(arguments.length===1){this._name=a;return a}else{return this._name}},_tupleSize:0,tupleSize:function(a){if(arguments.length===1){this._tupleSize=a;return a}else{return this._tupleSize}},_tuples:null,tuples:function(a){if(arguments.length===1){this._tuples=a;return a}else{return this._tuples}},$type:new $.ig.Type("OlapResultAxis",$.ig.$ot)},true);$c("OlapResultTuple:cz","Object",{init:function(a){$.ig.$op.init.call(this);this.members(new $$t.b3($$t.$c0.$type,1,a))},_members:null,members:function(a){if(arguments.length===1){this._members=a;return a}else{return this._members}},getItems:function(){return this.members()},itemsCount:function(){return this.members().count()},indexOf:function(a){return this.members().indexOf(a)},item:function(a){return this.members().item(a)},isEmpty:function(){return false},clone:function(){var a=new $$t.bo($$t.$c0.$type,0);var c=this.members().getEnumerator();while(c.moveNext()){var b=c.current();a.add(b.clone())}var d=new $$t.cz(a);var f=a.getEnumerator();while(f.moveNext()){var e=f.current();e.position(d)}return d},c:function(){if(this.members().count()==0){return"Empty tuple."}else{var a=new $$t.c1(0);var c=this.members().getEnumerator();while(c.moveNext()){var b=c.current();a.l(b.caption()+"; ")}a.c(a.c()-2);return a.toString()}},$type:new $.ig.Type("OlapResultTuple",$.ig.$ot,[$$t.$b6.$type.specialize(String,$.ig.$op.$type)])},true);$c("OlapResultAxisMember:c0","Object",{init:function(){$.ig.$op.init.call(this);this.properties(new $$t.b9(String,String,0));this.ordinal(-1)},_uniqueName:null,uniqueName:function(a){if(arguments.length===1){this._uniqueName=a;return a}else{return this._uniqueName}},_caption:null,caption:function(a){if(arguments.length===1){this._caption=a;return a}else{return this._caption}},_levelUniqueName:null,levelUniqueName:function(a){if(arguments.length===1){this._levelUniqueName=a;return a}else{return this._levelUniqueName}},_hierarchyUniqueName:null,hierarchyUniqueName:function(a){if(arguments.length===1){this._hierarchyUniqueName=a;return a}else{return this._hierarchyUniqueName}},_levelNumber:0,levelNumber:function(a){if(arguments.length===1){this._levelNumber=a;return a}else{return this._levelNumber}},_displayInfo:0,displayInfo:function(a){if(arguments.length===1){this._displayInfo=a;return a}else{return this._displayInfo}},e:function(){return $o(this.displayInfo(),~65536)&~131072},drilledDown:function(){return(this.displayInfo()&65536)==65536},parentSameAsPrev:function(){return(this.displayInfo()&131072)==131072},_properties:null,properties:function(a){if(arguments.length===1){this._properties=a;return a}else{return this._properties}},_position:null,position:function(a){if(arguments.length===1){this._position=a;return a}else{return this._position}},key:function(){return this.uniqueName()},sortKey:function(){if(this.ordinal()>-1){return this.ordinal()}if(this.caption().contains("/")){return this.caption()}var a=parseFloat(this.caption());if(!isNaN(a)){return a}return this.caption()},_ordinal:0,ordinal:function(a){if(arguments.length===1){this._ordinal=a;return a}else{return this._ordinal}},hierarchyKey:function(){return this.hierarchyUniqueName()},hierarchyLevelKey:function(){return this.levelUniqueName()},parentKey:function(){var a;var b=this.properties().tryGetValue("PARENT_UNIQUE_NAME",a);a=b.p1;return a},depth:function(){return this.levelNumber()},isExpandable:function(){return this.e()>0},clone:function(){var a=new $$t.c0;a.caption(this.caption());a.displayInfo(this.displayInfo());a.hierarchyUniqueName(this.hierarchyUniqueName());a.levelNumber(this.levelNumber());a.levelUniqueName(this.levelUniqueName());a.ordinal(this.ordinal());var c=this.properties().getEnumerator();while(c.moveNext()){var b=c.current();a.properties().add(b.key(),b.value())}a.uniqueName(this.uniqueName());a.position(this.position());return a},$type:new $.ig.Type("OlapResultAxisMember",$.ig.$ot,[$$t.$cl.$type.specialize(String,$.ig.$op.$type)])},true);$c("OlapResultCell:c3","Object",{init:function(){$.ig.$op.init.call(this);this.properties(new $$t.b9(String,$.ig.$op.$type,0))},_cellOrdinal:0,cellOrdinal:function(a){if(arguments.length===1){this._cellOrdinal=a;return a}else{return this._cellOrdinal}},_properties:null,properties:function(a){if(arguments.length===1){this._properties=a;return a}else{return this._properties}},clone:function(){var $self=this;var a=function(){var $ret=new $$t.c3;$ret.cellOrdinal($self.cellOrdinal());return $ret}();var c=this.properties().getEnumerator();while(c.moveNext()){var b=c.current();a.properties().add(b.key(),b.value())}return a},$type:new $.ig.Type("OlapResultCell",$.ig.$ot)},true);$c("ArrayListCollection___Enumerate__IteratorClass$1","Object",{$t:null,c:0,b:null,d:0,__4__this:null,init:function($t,a){this.$t=$t;if(!this.hasOwnProperty("$type")){this.$type=this.$type.specialize(this.$t)}$.ig.$op.init.call(this);this.c=a},moveNext:function(){while(this.c>=0){switch(this.c){case 0:this.c=-1;this.d=0;this.c=1;break;case 1:this.c=-1;if(this.d<this.__4__this.inner().length){this.b=$v(this.$t,this.__4__this.inner()[this.d]);this.c=2;return true}break;case 2:this.c=-1;this.d++;this.c=1;break}}return false},getEnumerator:function(){var d__;if(this.c==-2){this.c=0;d__=this}else{d__=new $.ig.ArrayListCollection___Enumerate__IteratorClass$1(this.$t,0);d__.__4__this=this.__4__this}return d__},reset:function(){throw new $$t.y(0)},dispose:function(){},current:function(){return this.b},current1:function(){return $e(this.$t,this.b)},$type:new $.ig.Type("ArrayListCollection___Enumerate__IteratorClass$1",$.ig.$ot,[$$t.$ap.$type.specialize(0),$$t.$w.$type,$$t.$aq.$type.specialize(0),$$t.$x.$type,$$t.$ar.$type])},true)});