/*!@license
* Infragistics.Web.ClientUI infragistics.olapxmladatasource.js 14.1.20141.1020
*
* Copyright (c) 2011-2014 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*/
$.ig=$.ig||{};(function($){var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["AbstractEnumerable:a","Object:b","Type:c","Boolean:d","ValueType:e","Void:f","String:g","IComparable:h","Number:i","Number:j","Single:k","Number:l","String:m","Array:n","RegExp:o","RuntimeTypeHandle:p","MethodInfo:q","MethodBase:r","MemberInfo:s","ParameterInfo:t","TypeCode:u","Enum:v","ConstructorInfo:w","IEnumerable:x","IEnumerator:y","Func$1:z","MulticastDelegate:aa","IntPtr:ab","AbstractEnumerator:ac","IEnumerable$1:ad","IEnumerator$1:ae","ICollection$1:af","IList$1:ag","IArrayList:ah","Array:ai","ICollection:aj","CompareCallback:ak","List$1:al","IList:am","IDisposable:an","IArray:ao","Script:ap","Date:aq","Date:ar","Number:as","Func$3:at","Action$1:au","IDictionary$2:aw","Dictionary$2:ax","IDictionary:ay","Dictionary:az","IEqualityComparer$1:a0","KeyValuePair$2:a1","NotImplementedException:a2","Error:a3","GenericEnumerable$1:a4","GenericEnumerator$1:a5","INotifyCollectionChanged:a6","NotifyCollectionChangedEventHandler:a7","NotifyCollectionChangedEventArgs:a8","EventArgs:a9","NotifyCollectionChangedAction:ba","ObservableCollection$1:bd","INotifyPropertyChanged:be","PropertyChangedEventHandler:bf","PropertyChangedEventArgs:bg","Delegate:bh","ReadOnlyCollection$1:bj","NameValueCollection:bl","IOrderedEnumerable$1:bu","Enumerable:bz","Func$2:b0","SortedList$1:b1","Math:b2","Number:b3","Number:b4","Number:b5","Number:b6","Number:b7","Number:b8","Number:b9","ArgumentNullException:ca","AggregateException:cn","ArgumentException:co","AsyncCompletedEventArgs:cq","ListSortDirection:cs","Environment:cu","InvalidOperationException:cv","Debug:cw","ICredentials:cz","NetworkCredential:c0","Uri:c1","UploadStringCompletedEventHandler:c2","UploadStringCompletedEventArgs:c3","WebClient:c4","Encoding:c5","UTF8Encoding:c6","UnicodeEncoding:c7","WebHeaderCollection:c8","Task$1:c9","Task:da","JQueryPromise:db","Action:dc","TaskStatus:dd","TaskCompletionSource$1:de","JQueryDeferred:df","JQuery:dg","JQueryObject:dh","Element:di","ElementAttributeCollection:dj","ElementCollection:dk","WebStyle:dl","ElementNodeType:dm","Document:dn","EventListener:dp","IElementEventHandler:dq","ElementEventHandler:dr","ElementAttribute:ds","JQueryPosition:dt","JQueryCallback:du","JQueryEvent:dv","JQueryUICallback:dw","FaultCode:dx","FaultException:dy","FaultReason:dz","FaultException$1:d0","StringBuilder:d1","TaskFactory:d4","Tuple$2:d5","JavaScriptSerializer:d6","XObject:f9","XmlNode:ga","XmlNodeList:gb","XmlNamedNodeMap:gc","XmlNodeType:gd","XmlDocument:ge","XmlElement:gf","XmlLinkedNode:gg","XmlAttribute:gh","XmlUtils:gi","XAttribute:gj","XNode:gk","XContainer:gl","XElement:gm","XName:gn","XNamespace:go","XDocument:gp"]);$.ig.util.defType("TaskStatus:dd","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("TaskStatus",$.ig.$ep.$type)},true);$.ig.util.defType("ListSortDirection:cs","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("ListSortDirection",$.ig.$ep.$type)},true);$.ig.util.defType("NotifyCollectionChangedAction:ba","Enum",{init:function(){$.ig.$ep.init.call(this)},$type:new $.ig.Type("NotifyCollectionChangedAction",$.ig.$ep.$type)},true);$.ig.util.defType("AbstractEnumerable:a","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},getEnumerator:function(){return new $$t.ac(this.a().getEnumerator())},$type:new $.ig.Type("AbstractEnumerable",$.ig.$ot,[$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("AbstractEnumerator:ac","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new $.ig.Type("AbstractEnumerator",$.ig.$ot,[$.ig.IEnumerator.prototype.$type])},true);$.ig.util.defType("IEnumerable$1:ad","Object",{$type:new $.ig.Type("IEnumerable$1",null,[$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("ICollection$1:af","Object",{$type:new $.ig.Type("ICollection$1",null,[$$t.$ad.$type.specialize(0),$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("IList$1:ag","Object",{$type:new $.ig.Type("IList$1",null,[$$t.$af.$type.specialize(0),$$t.$ad.$type.specialize(0),$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("IArrayList:ah","Object",{$type:new $.ig.Type("IArrayList",null)},true);$.ig.util.defType("List$1:al","Object",{$t:null,__inner:null,init:function($t,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}this.e={};this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.__inner=new $.ig.Array},init1:function($t,initNumber,a){this.e={};this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.__inner=new $.ig.Array;if(this.b(0,a)){return}var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.add1(b)}},init2:function($t,initNumber,a){this.e={};this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.__inner=new $.ig.Array},o:function(a,b){this.__inner[a]=b},j:function(a,b){this.__inner.insert(a,b)},f:function(a){this.__inner.add(a)},m:function(a){this.__inner.removeAt(a)},h:function(){this.__inner.clear()},item:function(a,b){if(arguments.length===2){this.o(a,b);return b}else{return this.__inner[a]}},indexOf:function(a){return this.__inner.indexOf(a)},insert:function(a,b){this.j(a,b)},removeAt:function(a){this.m(a)},count:function(){return this.__inner.length},isReadOnly:function(){return false},add1:function(a){this.f(a)},clear:function(){this.h()},contains1:function(a){return this.__inner.contains(a)},copyTo:function(a,b){for(var c=0;c<this.__inner.length;c++){a[b+c]=this.__inner[c]}},remove1:function(a){var b=this.indexOf(a);if(b<0){return false}this.m(b);return true},getEnumerator:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,$b:null,current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.getEnumerator();this.$state=4;break;case 2:this.$a=this.$b.current();this.$current=this.$a;this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$b.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerator$1(this.$t,$iter())},asArrayList:function(){return this.__inner},b:function(a,collection_){var b=$.ig.util.cast($$t.$ah.$type,collection_);if(b!=null){this.__inner.insertRange1(a,b.asArrayList());return true}var c=$.ig.util.cast($$t.$ao.$type,collection_);if(c!=null){this.__inner.insertRange(a,c.asArray());return true}var d=$.ig.util.cast($$t.$ag.$type.specialize(this.$t),collection_);if(d!=null){for(var e=0;e<d.count();e++){this.__inner.insert(a+e,d.item(e))}return true}var f=$.isArray(collection_)?collection_:null;if(f!=null){this.__inner.insertRange(a,f);return true}return false},insertRange1:function(a,b){if(this.b(a,b)){return}var c=0;var e=b.getEnumerator();while(e.moveNext()){var d=e.current();this.__inner.insert(a+c,d);c++}},insertRange:function(a,b){if(this.b(a,b)){return}var c=0;var e=b.getEnumerator();while(e.moveNext()){var d=e.current();this.__inner.insert(a+c,d);c++}},removeRange:function(a,b){this.__inner.splice(a,b)},copyTo1:function(a,b){this.__inner.copyTo(a,b)},isFixedSize:function(){return false},add:function(a){this.f(a);return this.__inner.length-1},contains:function(a){return this.__inner.contains(a)},indexOf1:function(a){return this.__inner.indexOf(a)},insert1:function(a,b){this.j(a,b)},remove:function(a){var b=this.indexOf1(a);this.m(b)},sort:function(){var $self=this;var a=null;if($self.$t==Number){a=function(b,c){var d=b;var e=c;if(d<e){return-1}if(d==e){return 0}return 1}}else if($self.$t==$.ig.Single.prototype.$type){a=function(b,c){var d=b;var e=c;if(d<e){return-1}if(d==e){return 0}return 1}}else if($self.$t==$.ig.Number.prototype.$type){a=function(b,c){var d=b;var e=c;if(d<e){return-1}if(d==e){return 0}return 1}}else if($self.$t==$$t.$aq.$type){a=function(b,c){var d=b;var e=c;if(d.getTime()<e.getTime()){return-1}if(d.getTime()==e.getTime()){return 0}return 1}}else{a=function(b,c){return b.compareTo(c)}}$self.r(a)},r:function(a){this.__inner.sort(a)},sort1:function(a){var $self=this;$self.__inner.sort(function(b,c){var d=b;var e=c;return a(d,e)})},_capacity:0,capacity:function(value){if(arguments.length===1){this._capacity=value;return value}else{return this._capacity}},addRange:function(a){var c=a.getEnumerator();while(c.moveNext()){var b=c.current();this.__inner.add(b)}},toArray:function(){return this.__inner.slice(0)},forEach:function(a){},isSynchronized:function(){return true},e:null,syncRoot:function(){return this.e},$type:new $.ig.Type("List$1",$.ig.$ot,[$$t.$ag.$type.specialize(0),$$t.$ah.$type,$.ig.IList.prototype.$type])},true);$.ig.util.defType("KeyValuePair$2:a1","ValueType",{$tKey:null,$tValue:null,init:function($tKey,$tValue,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}this.$tKey=$tKey;this.$tValue=$tValue;this.$type=this.$type.specialize(this.$tKey,this.$tValue);$.ig.ValueType.prototype.init.call(this)},a:null,c:null,init1:function($tKey,$tValue,initNumber,a,b){this.$tKey=$tKey;this.$tValue=$tValue;this.$type=this.$type.specialize(this.$tKey,this.$tValue);$.ig.ValueType.prototype.init.call(this);this.a=a;this.c=b},key:function(){return this.a},value:function(){return this.c},$type:new $.ig.Type("KeyValuePair$2",$.ig.ValueType.prototype.$type)},true);$.ig.util.defType("IDictionary$2:aw","Object",{$type:new $.ig.Type("IDictionary$2",null,[$$t.$af.$type.specialize($$t.$a1.$type.specialize(this.$tKey,this.$tValue)),$$t.$ad.$type.specialize($$t.$a1.$type.specialize(this.$tKey,this.$tValue)),$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("Dictionary$2:ax","Object",{$tKey:null,$tValue:null,__inner:null,__keys:null,init:function($tKey,$tValue,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}this.g=null;this._useToString=false;this.a=false;this._needsEnsure=false;this.$tKey=$tKey;this.$tValue=$tValue;this.$type=this.$type.specialize(this.$tKey,this.$tValue);$.ig.$op.init.call(this);this.__inner=new $.ig.Dictionary(0);this.__keys=new $.ig.Dictionary(0)},init1:function($tKey,$tValue,initNumber,a){this.g=null;this._useToString=false;this.a=false;this._needsEnsure=false;this.$tKey=$tKey;this.$tValue=$tValue;this.$type=this.$type.specialize(this.$tKey,this.$tValue);$.ig.$op.init.call(this);this.__inner=new $.ig.Dictionary(1,a);this.__keys=new $.ig.Dictionary(0)},g:null,init2:function($tKey,$tValue,initNumber,a){this.g=null;this._useToString=false;this.a=false;this._needsEnsure=false;this.$tKey=$tKey;this.$tValue=$tValue;this.$type=this.$type.specialize(this.$tKey,this.$tValue);$.ig.$op.init.call(this);this.__inner=new $.ig.Dictionary(0);this.__keys=new $.ig.Dictionary(0);this.g=a},count:function(){return this.__inner.count()},item:function(a,b){if(arguments.length===2){this.__inner.item(this.i(a),b);this.__keys.item(this.i(a),a);return b}else{return this.__inner.item(this.i(a))}},length:function(){return this.__inner.length()},containsKey:function(a){return this.__inner.containsKey(this.i(a))},remove:function(a){var b=this.i(a);if(!this.__keys.containsKey(b)){return false}this.__inner.remove(b);this.__keys.remove(b);return true},clear:function(){this.__inner.clear();this.__keys.clear()},_useToString:false,a:false,_needsEnsure:false,j:function(key_){if(!this.a){this.a=true;this._needsEnsure=typeof key_=="object";if(!this._needsEnsure){this._useToString=!key_.getHashCode}}},i:function(key_){this.j(key_);if(this._needsEnsure){$.ig.util.ensureUniqueId(key_)}if(this.g!=null){return this.g.getHashCode(key_).toString()}if(this._useToString){return key_.toString()}else{return key_.getHashCode().toString()}},add:function(a,b){this.__inner.item(this.i(a),b);this.__keys.item(this.i(a),a)},tryGetValue:function(a,b){if(!this.__inner.containsKey(this.i(a))){b=null;return{ret:false,value:b}}b=this.__inner.item(this.i(a));return{ret:true,value:b};return{value:b}},keys:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,$b:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:this.$a=this.$b.current();this.$current=this.$a;this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$b.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1(this.$tKey,$iter)},values:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,$b:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__inner.values().getEnumerator();this.$state=4;break;case 2:this.$a=this.$b.current();this.$current=this.$a;this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$b.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1(this.$tValue,$iter)},isReadOnly:function(){return false},add1:function(a){this.add(a.key(),a.value())},contains:function(a){return this.containsKey(a.key())},copyTo:function(a,b){throw new $$t.a2},remove1:function(a){this.remove(a.key());return true},f:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,$b:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.__keys.values().getEnumerator();this.$state=4;break;case 2:this.$a=this.$b.current();this.$current=new $$t.a1(this.$tKey,this.$tValue,1,this.$a,this.$this.__inner.item(this.$this.i(this.$a)));this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$b.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1($$t.$a1.$type.specialize(this.$tKey,this.$tValue),$iter)},getEnumerator:function(){return this.f().getEnumerator()},$type:new $.ig.Type("Dictionary$2",$.ig.$ot,[$.ig.IDictionary$2.prototype.$type.specialize(0,1),$.ig.IDictionary.prototype.$type])},true);$.ig.util.defType("GenericEnumerable$1:a4","Object",{$t:null,a:null,init:function($t,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.a=a},getEnumerator:function(){return new $$t.a5(this.$t,this.a().getEnumerator())},$type:new $.ig.Type("GenericEnumerable$1",$.ig.$ot,[$$t.$ad.$type.specialize(0)])},true);$.ig.util.defType("IEnumerator$1:ae","Object",{$type:new $.ig.Type("IEnumerator$1",null,[$.ig.IEnumerator.prototype.$type])},true);$.ig.util.defType("GenericEnumerator$1:a5","Object",{$t:null,a:null,init:function($t,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.a=a},current:function(){return this.a.current()},moveNext:function(){return this.a.moveNext()},reset:function(){this.a.reset()},$type:new $.ig.Type("GenericEnumerator$1",$.ig.$ot,[$$t.$ae.$type.specialize(0)])},true);$.ig.util.defType("INotifyCollectionChanged:a6","Object",{$type:new $.ig.Type("INotifyCollectionChanged",null)},true);$.ig.util.defType("NotifyCollectionChangedEventArgs:a8","EventArgs",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$a9.init.call(this);this.f=a;this.c=new $$t.al($.ig.$op.$type,0);this.b=new $$t.al($.ig.$op.$type,0)},init1:function(initNumber,a,b,c){var $self=this;$$t.$a9.init.call(this);this.f=a;this.c=new $$t.al($.ig.$op.$type,0);if(this.f==1||this.f==2){this.c.add(b);this.i=c}if(this.f!=1){this.b=function(){var $ret=new $$t.al($.ig.$op.$type,0);$ret.add(b);return $ret}()}else{this.b=new $$t.al($.ig.$op.$type,0)}this.h=c},init2:function(initNumber,a,b,c,d){var $self=this;$$t.$a9.init.call(this);this.f=a;this.h=d;this.i=d;this.b=function(){var $ret=new $$t.al($.ig.$op.$type,0);$ret.add(b);return $ret}();this.c=function(){var $ret=new $$t.al($.ig.$op.$type,0);$ret.add(c);return $ret}()},f:null,action:function(){return this.f},b:null,newItems:function(){return this.b},h:0,newStartingIndex:function(){return this.h},c:null,oldItems:function(){return this.c},i:0,oldStartingIndex:function(){return this.i},$type:new $.ig.Type("NotifyCollectionChangedEventArgs",$$t.$a9.$type)},true);$.ig.util.defType("ObservableCollection$1:bd","List$1",{$t:null,init:function($t,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$al.init.call(this,this.$t)},init1:function($t,initNumber,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$al.init1.call(this,this.$t,1,a)},init2:function($t,initNumber,a){this.$t=$t;this.$type=this.$type.specialize(this.$t);$$t.$al.init2.call(this,this.$t,2,a)},o:function(a,b){var c=this.__inner[a];$$t.$al.o.call(this,a,b);if(this.propertyChanged!=null){this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var d=new $$t.a8(2,2,b,c,a);this.s(d)}},h:function(){$$t.$al.h.call(this);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var a=new $$t.a8(0,4);this.s(a)}},j:function(a,b){$$t.$al.j.call(this,a,b);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var c=new $$t.a8(1,0,b,a);this.s(c)}},f:function(a){$$t.$al.f.call(this,a);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var b=new $$t.a8(1,0,a,this.count()-1);this.s(b)}},m:function(a){var b=this.__inner[a];$$t.$al.m.call(this,a);if(this.propertyChanged!=null){this.t(new $$t.bg("Count"));this.t(new $$t.bg("Item[]"))}if(this.collectionChanged!=null){var c=new $$t.a8(1,1,b,a);this.s(c)}},collectionChanged:null,propertyChanged:null,t:function(a){if(this.propertyChanged!=null){this.propertyChanged(this,a)}},s:function(a){if(this.collectionChanged!=null){this.collectionChanged(this,a)}},$type:new $.ig.Type("ObservableCollection$1",$$t.$al.$type.specialize(0),[$$t.$a6.$type,$$t.$be.$type])},true);$.ig.util.defType("ReadOnlyCollection$1:bj","Object",{$t:null,init:function($t,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}this.c={};this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this)},init1:function($t,initNumber,a){this.c={};this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.$op.init.call(this);this.a=a},a:null,item:function(a,b){if(arguments.length===2){this.a.item(a,b);return b}else{return this.a.item(a)}},indexOf:function(a){return this.a.indexOf(a)},insert:function(a,b){},removeAt:function(a){},count:function(){return this.a.count()},isReadOnly:function(){return true},add1:function(a){},clear:function(){},contains1:function(a){return this.a.contains(a)},copyTo:function(a,b){this.a.copyTo(a,b)},remove1:function(a){return false},getEnumerator:function(){return this.a.getEnumerator()},isFixedSize:function(){return true},add:function(a){return-1},contains:function(a){return this.a.contains(a)},indexOf1:function(a){return this.a.indexOf(a)},insert1:function(a,b){},remove:function(a){},copyTo1:function(a,b){this.a.copyTo(a,b)},b:function(){return this.a},isSynchronized:function(){return true},c:null,syncRoot:function(){return this.c},$type:new $.ig.Type("ReadOnlyCollection$1",$.ig.$ot,[$$t.$ag.$type.specialize(0),$.ig.IList.prototype.$type])},true);$.ig.util.defType("NameValueCollection:bl","Object",{a:null,init:function(){$.ig.$op.init.call(this);this.a=new $$t.ax(String,String,0)},item:function(a,b){if(arguments.length===2){if(this.a.containsKey(a)){this.a.item(a,b)}else{this.a.add(a,b)}return b}else{if(this.a.containsKey(a)){return this.a.item(a)}else{return null}}},$type:new $.ig.Type("NameValueCollection",$.ig.$ot)},true);$.ig.util.defType("IOrderedEnumerable$1:bu","Object",{$type:new $.ig.Type("IOrderedEnumerable$1",null,[$$t.$ad.$type.specialize(0),$.ig.IEnumerable.prototype.$type])},true);$.ig.util.defType("Enumerable:bz","Object",{init:function(){$.ig.$op.init.call(this)},where$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=7;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:if(a(this.$b)){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$b;this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:if(this.$c.moveNext()){this.$state=2}else{this.$state=8}break;case 8:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},where$11:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:0,$c:null,$d:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$b=0;this.$state=1;break;case 1:this.$d=this.$this.getEnumerator();this.$state=7;break;case 2:this.$c=this.$d.current();this.$state=3;break;case 3:if(a(this.$c,this.$b)){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$c;this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$b++;this.$state=7;break;case 7:if(this.$d.moveNext()){this.$state=2}else{this.$state=8}break;case 8:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},select$2:function($tSource,$tResult,a){var $self=this;var $iter=function(){return function($tSource,$tResult,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:this.$b=this.$c.current();this.$current=a(this.$b);this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,$tResult,a)};return new $.ig.GenericEnumerable$1($tResult,$iter)},selectMany$2:function($tSource,$tResult,a){var $self=this;var $iter=function(){return function($tSource,$tResult,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:this.$e=a(this.$b).getEnumerator();this.$state=6;break;case 4:this.$d=this.$e.current();this.$current=this.$d;this.$state=5;return true;case 5:this.$state=6;break;case 6:if(this.$e.moveNext()){this.$state=4}else{this.$state=7}break;case 7:this.$state=8;break;case 8:if(this.$c.moveNext()){this.$state=2}else{this.$state=9}break;case 9:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,$tResult,a)};return new $.ig.GenericEnumerable$1($tResult,$iter)},ofType$1:function($tResult){var $self=this;var $iter=function(){return function($tResult){return{$state:0,$this:$self,$current:null,$a:null,$b:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$b=this.$this.getEnumerator();this.$state=7;break;case 2:this.$a=this.$b.current();this.$state=3;break;case 3:if($.ig.util.cast($tResult,this.$a)!==null){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$a;this.$state=5;return true;case 5:this.$state=6;break;case 6:this.$state=7;break;case 7:if(this.$b.moveNext()){this.$state=2}else{this.$state=8}break;case 8:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tResult)};return new $.ig.GenericEnumerable$1($tResult,$iter)},last$1:function($tSource){var a=$.ig.util.cast($$t.$ag.$type.specialize($tSource),this);if(a!=null){return a.item(a.count()-1)}var b=null;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();b=c}return b},first$1:function($tSource){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();return a}return null},firstOrDefault$1:function($tSource){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();return a}return null},orderBy$2:function($tSource,$tKey,a){var $self=this;var b=new $$t.b1($tSource,$self);b.sort1(function(c,d){var e=c;var f=d;var g=a(e);var h=a(f);if($.ig.util.cast($$t.$h.$type,g)!==null){return $.ig.util.cast($$t.$h.$type,g).compareTo(h)}else{return g.toString().compareTo(h.toString())}});return b},orderByDescending$2:function($tSource,$tKey,a){var $self=this;var b=new $$t.b1($tSource,$self);b.sort1(function(c,d){var e=d;var f=c;var g=a(e);var h=a(f);if($.ig.util.cast($$t.$h.$type,g)!==null){return $.ig.util.cast($$t.$h.$type,g).compareTo(h)}else{return g.toString().compareTo(h.toString())}});return b},toList$1:function($tSource){var a=new $$t.al($tSource,1,this);return a},d:function(a,b){var $self=this;var $iter=function(){return function(a,b){return{$state:0,$this:$self,$current:null,$c:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=a;this.$state=5;break;case 2:this.$current=this.$c;this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$c++;this.$state=5;break;case 5:if(this.$c<b){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}(a,b)};return new $.ig.GenericEnumerable$1($.ig.Number.prototype.$type,$iter)},concat$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,$d:null,$e:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=4;break;case 2:this.$b=this.$c.current();this.$current=this.$b;this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$c.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=6;break;case 6:this.$e=a.getEnumerator();this.$state=9;break;case 7:this.$d=this.$e.current();this.$current=this.$d;this.$state=8;return true;case 8:this.$state=9;break;case 9:if(this.$e.moveNext()){this.$state=7}else{this.$state=10}break;case 10:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},max:function(){var a=true;var b=0;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();if(a){a=false;b=c}else{b=Math.max(b,c)}}return b},max$1:function($tSource,a){return this.select$2($tSource,$.ig.Number.prototype.$type,a).max()},min:function(){var a=true;var b=0;var d=this.getEnumerator();while(d.moveNext()){var c=d.current();if(a){a=false;b=c}else{b=Math.min(b,c)}}return b},min$1:function($tSource,a){return this.select$2($tSource,$.ig.Number.prototype.$type,a).max()},count$1:function($tSource){var a=0;var c=this.getEnumerator();while(c.moveNext()){var b=c.current();a++}return a},reverse$1:function($tSource){var $self=this;var $iter=function(){return function($tSource){return{$state:0,$this:$self,$current:null,$a:null,$b:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$a=new $$t.al($tSource,1,this.$this);this.$state=1;break;case 1:this.$b=this.$a.count()-1;this.$state=5;break;case 2:this.$current=this.$a.__inner[this.$b];this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$b--;this.$state=5;break;case 5:if(this.$b>0){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource)};return new $.ig.GenericEnumerable$1($tSource,$iter)},cast$1:function($tResult){if(this==null){throw new $$t.ca("source")}var a=$.ig.util.cast($$t.$ad.$type.specialize($tResult),this);if(a!=null){return a}var b=new $$t.al($tResult,0);var d=this.getEnumerator();while(d.moveNext()){var c=d.current();if($.ig.util.cast($tResult,c)!==null){b.add1(c)}else{b.add1(null)}}return b},take$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=9;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:if(a>0){this.$state=4}else{this.$state=6}break;case 4:a--;this.$current=this.$b;this.$state=5;return true;case 5:this.$state=8;break;case 6:this.$state=-2;return false;case 7:this.$state=8;break;case 8:this.$state=9;break;case 9:if(this.$c.moveNext()){this.$state=2}else{this.$state=10}break;case 10:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},skip$1:function($tSource,a){var $self=this;var $iter=function(){return function($tSource,a){return{$state:0,$this:$self,$current:null,$b:null,$c:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$c=this.$this.getEnumerator();this.$state=8;break;case 2:this.$b=this.$c.current();this.$state=3;break;case 3:if(a<=0){this.$state=4}else{this.$state=6}break;case 4:this.$current=this.$b;this.$state=5;return true;case 5:this.$state=7;break;case 6:a--;this.$state=7;break;case 7:this.$state=8;break;case 8:if(this.$c.moveNext()){this.$state=2}else{this.$state=9}break;case 9:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}($tSource,a)};return new $.ig.GenericEnumerable$1($tSource,$iter)},any$1:function($tSource){var b=this.getEnumerator();while(b.moveNext()){var a=b.current();return true}return false},contains$1:function($tSource,value_){var a=this.getEnumerator();while(a.moveNext()){var item_=a.current();if(item_===value_){return true}}return false},union$1:function($tSource,a){return null},toArray$1:function($tSource){var a=new $$t.al($tSource,1,this);return a.asArrayList()},elementAt$1:function($tSource,a){var b=$.ig.util.cast($$t.$ag.$type.specialize($tSource),this);if(b!=null){return b.item(a)
}return this.skip$1($tSource,a).first$1($tSource)},sum:function(){var a=0;var c=this.getEnumerator();while(c.moveNext()){var b=c.current();a+=b}return a},sum$1:function($tSource,a){return this.select$2($tSource,Number,a).sum()},$type:new $.ig.Type("Enumerable",$.ig.$ot)},true);$.ig.util.defType("SortedList$1:b1","List$1",{$tElement:null,init:function($tElement,a){this.$tElement=$tElement;this.$type=this.$type.specialize(this.$tElement);$$t.$al.init1.call(this,this.$tElement,1,a)},getEnumerator:function(){return $$t.$al.getEnumerator.call(this)},$type:new $.ig.Type("SortedList$1",$$t.$al.$type.specialize(0),[$$t.$bu.$type.specialize(0)])},true);$.ig.util.defType("IArray:ao","Object",{$type:new $.ig.Type("IArray",null)},true);$.ig.util.defType("AggregateException:cn","Error",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$a3.init.call(this)},init1:function(initNumber,a){$$t.$a3.init1.call(this,1,a)},init2:function(initNumber,a,b){$$t.$a3.init2.call(this,2,a,b)},$type:new $.ig.Type("AggregateException",$$t.$a3.$type)},true);$.ig.util.defType("ArgumentException:co","Error",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$a3.init1.call(this,1,a)},init1:function(initNumber,a,b){$$t.$a3.init1.call(this,1,a)},$type:new $.ig.Type("ArgumentException",$$t.$a3.$type)},true);$.ig.util.defType("ArgumentNullException:ca","Error",{init:function(a){$$t.$a3.init1.call(this,1,a+" cannot be null.")},$type:new $.ig.Type("ArgumentNullException",$$t.$a3.$type)},true);$.ig.util.defType("AsyncCompletedEventArgs:cq","EventArgs",{d:null,b:false,f:null,init:function(a,b,c){$$t.$a9.init.call(this);this.b=b;this.d=a;this.f=c},error:function(){return this.d},cancelled:function(){return this.b},userState:function(){return this.f},h:function(){if(this.error()!=null){throw this.error()}},$type:new $.ig.Type("AsyncCompletedEventArgs",$$t.$a9.$type)},true);$.ig.util.defType("Environment:cu","Object",{init:function(){$.ig.$op.init.call(this)},a:function(){return"\n"},$type:new $.ig.Type("Environment",$.ig.$ot)},true);$.ig.util.defType("InvalidOperationException:cv","Error",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$a3.init1.call(this,1,"Invalid operation")},init1:function(initNumber,a){$$t.$a3.init1.call(this,1,a)},$type:new $.ig.Type("InvalidOperationException",$$t.$a3.$type)},true);$.ig.util.defType("Debug:cw","Object",{init:function(){$.ig.$op.init.call(this)},b:function(a,b){},c:function(a){},a:function(a){},$type:new $.ig.Type("Debug",$.ig.$ot)},true);$.ig.util.defType("ICredentials:cz","Object",{$type:new $.ig.Type("ICredentials",null)},true);$.ig.util.defType("NetworkCredential:c0","Object",{init:function(initNumber,a,b){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$c0.init1.call(this,1,a,b,String.empty())},init1:function(initNumber,a,b,c){$.ig.$op.init.call(this);this.c(a);this.b(b);this.a(c)},getCredential:function(a,b){return this},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("NetworkCredential",$.ig.$ot,[$$t.$cz.$type])},true);$.ig.util.defType("UploadStringCompletedEventArgs:c3","AsyncCompletedEventArgs",{i:null,init:function(a,b,c,d){$$t.$cq.init.call(this,b,c,d);this.i=a},result:function(){this.h();return this.i},$type:new $.ig.Type("UploadStringCompletedEventArgs",$$t.$cq.$type)},true);$.ig.util.defType("WebClient:c4","Object",{init:function(){$.ig.$op.init.call(this);this.c(new $$t.c8)},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},uploadStringCompleted:null,h:function(a,b,c,d){var $self=this;$self.e(a,b,c).i(function(e){if($self.uploadStringCompleted!=null){var f=null;var g=null;try{f=e.m()}catch(e_){g=e_}$self.uploadStringCompleted($self,new $$t.c3(f,g,e.g()==6,d))}})},e:function(a,b,c){var url_=a.value();var method_=b;var data_=c;var contentType_=this.c().item("Content-Type");var credentials_=this.a();var d=$.ig.util.ajax(url_,contentType_,data_,method_,credentials_);return new $$t.c9(String,d,null)},g:function(a,b,c,d){a.e(b)},f:function(a,b,c,d){a.d(new $$t.a3(1,d))},$type:new $.ig.Type("WebClient",$.ig.$ot)},true);$.ig.util.defType("WebHeaderCollection:c8","NameValueCollection",{init:function(){$$t.$bl.init.call(this)},$type:new $.ig.Type("WebHeaderCollection",$$t.$bl.$type)},true);$.ig.util.defType("FaultCode:dx","Object",{init:function(a){$.ig.$op.init.call(this);this.a(a)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("FaultCode",$.ig.$ot)},true);$.ig.util.defType("FaultException:dy","Error",{init:function(a,b,c){$$t.$a3.init.call(this);this.reason(a);this.code(b);this.action(c)},_action:null,action:function(value){if(arguments.length===1){this._action=value;return value}else{return this._action}},_code:null,code:function(value){if(arguments.length===1){this._code=value;return value}else{return this._code}},_reason:null,reason:function(value){if(arguments.length===1){this._reason=value;return value}else{return this._reason}},$type:new $.ig.Type("FaultException",$$t.$a3.$type)},true);$.ig.util.defType("FaultException$1:d0","FaultException",{$tDetail:null,init:function($tDetail,a,b,c,d){this.$tDetail=$tDetail;this.$type=this.$type.specialize(this.$tDetail);$$t.$dy.init.call(this,b,c,d);this.detail(a)},_detail:null,detail:function(value){if(arguments.length===1){this._detail=value;return value}else{return this._detail}},$type:new $.ig.Type("FaultException$1",$$t.$dy.$type)},true);$.ig.util.defType("FaultReason:dz","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},toString:function(){return this.a},$type:new $.ig.Type("FaultReason",$.ig.$ot)},true);$.ig.util.defType("StringBuilder:d1","Object",{_internal:null,internal:function(value){if(arguments.length===1){this._internal=value;return value}else{return this._internal}},init:function(){$.ig.$op.init.call(this);this._internal=[]},d:function(str_){this._internal.push(str_);return this},e:function(a){var str_=a.b();this._internal.push(str_);return this},c:function(chr_){this._internal.push(chr_);return this},f:function(str_){this._internal.push(str_+String.fromCharCode(10));return this},g:function(index_,chr_){this._internal.splice(index_,0,chr_);return this},h:function(index_,str_){this._internal.splice(index_,0,str_);return this},i:function(startIndex_,length_){this._internal.splice(startIndex_,length_);return this},b:function(){return this._internal.join("")},$type:new $.ig.Type("StringBuilder",$.ig.$ot)},true);$.ig.util.defType("NotImplementedException:a2","Error",{init:function(){$$t.$a3.init1.call(this,1,"not implemented")},$type:new $.ig.Type("NotImplementedException",$$t.$a3.$type)},true);$.ig.util.defType("Encoding:c5","Object",{init:function(){$.ig.$op.init.call(this)},uTF8:function(){if($$t.$c5.g==null){$$t.$c5.g=new $$t.c6}return $$t.$c5.g},unicode:function(){if($$t.$c5.f==null){$$t.$c5.f=new $$t.c7}return $$t.$c5.f},getString:function(a,b,c){return""},getBytes2:function(a,b,c,d,e){},getBytes:function(a,b,c){var d=new Array(this.getByteCount(a,b,c));this.getBytes2(a,b,c,d,0);return d},getBytes1:function(a){if(a==null){throw new $$t.ca("input")}var b=new Array(a.length);for(var c=0;c<a.length;c++){b[c]=a.charAt(c)}return this.getBytes(b,0,b.length)},getByteCount:function(a,b,c){},$type:new $.ig.Type("Encoding",$.ig.$ot)},true);$.ig.util.defType("UnicodeEncoding:c7","Encoding",{init:function(){$$t.$c5.init.call(this)},getString:function(bytes_,a,b){var c="";for(var i_=a;i_<b;i_=i_+2){if(bytes_[i_]==0){break}if(i_+1>=b){c=c+"�"}else{var d=bytes_[i_].toString(16);var e=bytes_[i_+1].toString(16);var f=$.ig.Number.prototype.parseInt(e+d,16);c=c+String.fromCharCode(f)}}return c},getByteCount:function(a,b,c){return 0},getBytes2:function(a,b,c,d,e){return 0},getBytes:function(a,b,c){return $$t.$c5.getBytes.call(this,a,b,c)},getBytes1:function(input_){var a=new Array(input_.length*2);for(var i_=0;i_<input_.length;i_++){var hex_=input_.charCodeAt(i_).toString(16).padLeft(4,"0");a[2*i_]=$.ig.Number.prototype.parseInt(hex_.substr(2),16);a[2*i_+1]=$.ig.Number.prototype.parseInt(hex_.substr(0,2),16)}return a},$type:new $.ig.Type("UnicodeEncoding",$$t.$c5.$type)},true);$.ig.util.defType("UTF8Encoding:c6","Encoding",{init:function(){$$t.$c5.init.call(this)},getString:function(bytes_,a,b){var ret_="";for(var i_=a;i_<b;i_++){if(bytes_[i_]==0){break}ret_=ret_+String.fromCharCode(bytes_[i_])}ret_=decodeURIComponent(escape(ret_));return ret_},getByteCount:function(a,b,c){return 0},getBytes2:function(a,b,c,d,e){return 0},getBytes:function(a,b,c){return $$t.$c5.getBytes.call(this,a,b,c)},getBytes1:function(input_){var a=new Array(input_.length);var inputUTF8_=unescape(encodeURIComponent(input_));for(var i_=0;i_<inputUTF8_.length;i_++){a[i_]=inputUTF8_.charCodeAt(i_)}return a},$type:new $.ig.Type("UTF8Encoding",$$t.$c5.$type)},true);$.ig.util.defType("Task:da","Object",{_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_b:false,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$da.init1.call(this,1,a,null)},init1:function(initNumber,a,b){var $self=this;$.ig.$op.init.call(this);var c=function(){};var d=function(e){if(e==null){$self.b(true)}else{$self.a(new $$t.cn(2,"Exception occurred during task execution",e))}};this.c(a.done(c).fail(d));this.d(b)},g:function(){if(this.b()){return 6}switch(this.c().state()){case"pending":return 0;case"resolved":return 5;case"rejected":return 7;default:return 0}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},e:function(a){var $self=this;var b=function(){return a($self)};var c=function(d){return a($self)};var d=$self.c().done(b).fail(c);return new $$t.da(0,d)},f:function($tNewResult,a){var $self=this;var b=new $$t.de($tNewResult,0);var c=function(){try{var d=a($self);b.e(d)}catch(e_){b.d(e_)}};var d=function(e){return c()};var e=function(f){return c()};$self.c().done(d).fail(e);return b.b()},$type:new $.ig.Type("Task",$.ig.$ot)},true);$.ig.util.defType("Task$1:c9","Task",{$tResult:null,init:function($tResult,a,b){var $self=this;this.h=false;this.$tResult=$tResult;this.$type=this.$type.specialize(this.$tResult);$$t.$da.init1.call(this,1,a,b);var c=function(d){var e=d;$self.l=e;$self.h=true};var d=function(e){$self.h=true};this.c().done(c).fail(d)},h:false,l:null,m:function(){if(!this.h){throw"Result is not ready yet"}if(this.a()!=null){throw this.a()}return this.l},i:function(a){var $self=this;return $$t.$da.e.call($self,function(b){return a(b)})},j:function($tNewResult,a){var $self=this;var b=function(c){return a(c)};return $self.k($.ig.$op.$type,b).k($tNewResult,function(c){return c.m()})},k:function($tNewResult,a){return $$t.$da.f.call(this,$tNewResult,a)},$type:new $.ig.Type("Task$1",$$t.$da.$type)},true);$.ig.util.defType("TaskCompletionSource$1:de","Object",{$tResult:null,_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},init:function($tResult,initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}this.$tResult=$tResult;this.$type=this.$type.specialize(this.$tResult);$$t.$de.init1.call(this,this.$tResult,1,null)},init1:function($tResult,initNumber,a){this.$tResult=$tResult;this.$type=this.$type.specialize(this.$tResult);$.ig.$op.init.call(this);this.a($.ig.util.deferred());this.b(new $$t.c9(this.$tResult,this.a().promise(),a))},c:function(){this.a().reject(null)},d:function(a){this.a().reject(a)},e:function(a){this.a().resolve(a)},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},$type:new $.ig.Type("TaskCompletionSource$1",$.ig.$ot)},true);$.ig.util.defType("TaskFactory:d4","Object",{init:function(){$.ig.$op.init.call(this)},c:function(a,b){var $self=this;return new $$t.da(0,$self.b($self.a(a)).always(function(){return b(a)}))},d:function($tResult,a,b){var $self=this;var c=new $$t.de($tResult,0);$self.b($self.a(a)).always(function(){try{var d=b(a);c.e(d)}catch(e_){c.d(e_)}});return c.b()},e:function($tAntecedentResult,$tResult,a,b){var $self=this;var c=function(d){return b(d)};return $self.d($.ig.$op.$type,a,c).j($tResult,function(d){return d.m()})},a:function(a){var b=new Array(a.length);for(var c=0;c<a.length;c++){b[c]=a[c].c()}return b},b:function(a){var promises_=a;var b=function(p){function whenAll(){var whenDeffered=$.ig.util.deferred();if(arguments.length===0){whenDeffered.resolve();return whenDeffered}var count=arguments.length;var resolve=true;for(var i=0;i<arguments.length;i++){arguments[i].done(function(){resolve=resolve&&true}).fail(function(){resolve=resolve&&false}).always(function(){count--;if(count<=0){if(resolve){whenDeffered.resolve()}else{whenDeffered.reject()}}})}return whenDeffered}return whenAll.apply($,p)}(promises_);return b},$type:new $.ig.Type("TaskFactory",$.ig.$ot)},true);$.ig.util.defType("Tuple$2:d5","Object",{$t1:null,$t2:null,_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},init:function($t1,$t2,a,b){this.$t1=$t1;this.$t2=$t2;this.$type=this.$type.specialize(this.$t1,this.$t2);$.ig.$op.init.call(this);this.a(a);this.b(b)},$type:new $.ig.Type("Tuple$2",$.ig.$ot)},true);$.ig.util.defType("Uri:c1","Object",{init:function(a){$.ig.$op.init.call(this);this.value(a)},_value:null,value:function(value){if(arguments.length===1){this._value=value;return value}else{return this._value}},$type:new $.ig.Type("Uri",$.ig.$ot)},true);$.ig.util.defType("JavaScriptSerializer:d6","Object",{init:function(){$.ig.$op.init.call(this)},a:function(a){var text_=a;return JSON.parse(text_)},b:function(a){var value_=a;return JSON.stringify(value_)},$type:new $.ig.Type("JavaScriptSerializer",$.ig.$ot)},true);$.ig.util.defType("XObject:f9","Object",{init:function(a){$.ig.$op.init.call(this);this.backingNode(a)},_backingNode:null,backingNode:function(value){if(arguments.length===1){this._backingNode=value;return value}else{return this._backingNode}},c:function(){},toString:function(){if(this.backingNode()!=null){return $$t.$gi.xmlNodeToString(this.backingNode())}else{return""}},$type:new $.ig.Type("XObject",$.ig.$ot)},true);$.ig.util.defType("XAttribute:gj","XObject",{init:function(a){$$t.$f9.init.call(this,a)},e:function(a){this.backingNode(this.backingNode().cloneNode(true));a.setAttributeNode(this.backingNode())},c:function(){return 2},d:function(){return $$t.$gi.b(this.backingNode())},$type:new $.ig.Type("XAttribute",$$t.$f9.$type)},true);$.ig.util.defType("XNode:gk","XObject",{init:function(a){$$t.$f9.init.call(this,a)},$type:new $.ig.Type("XNode",$$t.$f9.$type)},true);$.ig.util.defType("XContainer:gl","XNode",{init:function(a){$$t.$gk.init.call(this,a)},h:function(a){var b=null;for(var c=0;c<this.backingNode().childNodes.length;c++){var d=this.backingNode().childNodes.item(c);if(d.nodeType==1&&$$t.$gi.d(d)==a.c()&&d.namespaceURI==a.d()){b=d}}if(b==null){return null}else{return new $$t.gm(0,b)}},d:function(){return this.f(null)},e:function(a){return this.f(a)},f:function(a){var b=new $$t.al($$t.$gm.$type,0);for(var c=0;c<this.backingNode().childNodes.length;c++){var d=this.backingNode().childNodes.item(c);if(d.nodeType==1){var e=false;if(a!=null){if($$t.$gi.d(d)==a.c()&&d.namespaceURI==a.d()){e=true}}else{e=true}if(e){b.add1(new $$t.gm(0,d))}}}return b},g:function(a){var b=this.backingNode();var c;if($.ig.util.cast($$t.$gp.$type,this)!==null){c=this.backingNode()}else{c=this.backingNode().ownerDocument}if($.ig.util.cast($$t.$gj.$type,a)!==null){a.e(b)}else if($.ig.util.cast($$t.$gm.$type,a)!==null){a.j(b,c)}},$type:new $.ig.Type("XContainer",$$t.$gk.$type)},true);$.ig.util.defType("XDocument:gp","XContainer",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$$t.$gl.init.call(this,a)},init1:function(initNumber){$$t.$gl.init.call(this,$$t.$gi.j())},c:function(){return 9},i:function(a){return new $$t.gp(0,$$t.$gi.n(a))},$type:new $.ig.Type("XDocument",$$t.$gl.$type)},true);$.ig.util.defType("XElement:gm","XContainer",{init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$$t.$gl.init.call(this,a)},init1:function(initNumber,a){$$t.$gm.init2.call(this,2,a,null)},init2:function(initNumber,a,b){$$t.$gl.init.call(this,$$t.$gi.o(a.c(),a.d()));var c=b==null?"":b.toString();this.i(c)},i:function(a){if(arguments.length===1){$$t.$gi.h(this.backingNode(),a);return a}else{return $$t.$gi.c(this.backingNode())}},c:function(){return 1},l:function(){return $$t.$gn.e($$t.$gi.d(this.backingNode()),this.backingNode().namespaceURI)},k:function(a){return new $$t.gj($$t.$gi.i(this.backingNode(),a.c(),a.d()))},j:function(a,b){if(this.backingNode().ownerDocument!=b){this.backingNode($$t.$gi.p(b,this.backingNode()))}a.appendChild(this.backingNode())},$type:new $.ig.Type("XElement",$$t.$gl.$type)},true);$.ig.util.defType("XmlUtils:gi","Object",{init:function(){$.ig.$op.init.call(this)},a:function(){return!!window.DOMParser},m:function(a){var text_=a;return(new DOMParser).parseFromString(text_,"text/xml")},l:function(a){var text_=a;return function(xml){var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async=false;xmlDoc.loadXML(xml);return xmlDoc}(text_)},f:function(a){var node_=a;return(new XMLSerializer).serializeToString(node_)},e:function(a){var node_=a;return node_.xml},k:function(){return new ActiveXObject("Microsoft.XMLDOM")},n:function(a){if($$t.$gi.a()){return $$t.$gi.m(a)}else{return $$t.$gi.l(a)}},xmlNodeToString:function(a){if($$t.$gi.a()){return $$t.$gi.f(a)}else{return $$t.$gi.e(a)}},j:function(){var a;if($$t.$gi.a()){a=$$t.$gi.m("<dummy/>");a.removeChild(a.documentElement)}else{a=$$t.$gi.k()}return a},o:function(a,b){var doc_=$$t.$gi.j();if($$t.$gi.a()){return doc_.createElementNS(b,a)}else{var name_=a;var namespaceURI_=b;return doc_.createNode(1,name_,namespaceURI_)}},c:function(a){if($$t.$gi.a()){return a.textContent}else{var node_=a;return node_.text}},h:function(a,b){if($$t.$gi.a()){a.textContent=b}else{var node_=a;var text_=b;node_.text=text_}},p:function(a,b){if($$t.$gi.a()){return a.importNode(b,true)}else{return b}},d:function(a){if($$t.$gi.a()){return a.localName}else{var node_=a;return node_.baseName}},i:function(a,b,c){if($$t.$gi.a()){return a.getAttributeNodeNS(c,b)}else{var elem_=a;var ln_=b;var nn_=c;return elem_.attributes.getQualifiedItem(ln_,nn_)}},b:function(a){if($$t.$gi.a()){return a.nodeValue}else{var attr_=a;return attr_.value}},$type:new $.ig.Type("XmlUtils",$.ig.$ot)},true);$.ig.util.defType("XName:gn","Object",{a:null,b:null,init:function(a,b){$.ig.$op.init.call(this);this.a=a;this.b=b},c:function(){return this.a},d:function(){return this.b},f:function(){return $$t.$go.c(this.b)},e:function(a,b){return new $$t.gn(a,b)},$type:new $.ig.Type("XName",$.ig.$ot)},true);$.ig.util.defType("XNamespace:go","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},c:function(a){return new $$t.go(a)},d:function(){return $$t.$go.c("http://www.w3.org/2000/xmlns/")},b:function(){return this.a},$type:new $.ig.Type("XNamespace",$.ig.$ot)},true);$$t.$dd.created=0;$$t.$dd.ranToCompletion=5;$$t.$dd.canceled=6;$$t.$dd.faulted=7;$$t.$cs.ascending=0;$$t.$cs.descending=1;$$t.$ba.add=0;$$t.$ba.remove=1;$$t.$ba.replace=2;$$t.$ba.reset=4;$$t.$c5.g=null;$$t.$c5.f=null;$.ig.util.extCopy($.ig.Queryable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection$1,$.ig.IEnumerable$1,$.ig.IList$1,$.ig.List$1,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.AbstractEnumerable,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection$1,$.ig.IEnumerable$1,$.ig.IList$1,$.ig.List$1,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ICollection$1,$.ig.IEnumerable$1,$.ig.IList$1,$.ig.List$1,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.AbstractEnumerable,$.ig.IDictionary$2,$.ig.Dictionary$2,$.ig.GenericEnumerable$1,$.ig.ReadOnlyCollection$1,$.ig.Stack$1,$.ig.IOrderedEnumerable$1],["ofType$1","cast$1"]]])})(jQuery);$.ig=$.ig||{};(function($){var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["ICoreOlapElement:a","String:b","Object:c","Type:d","Boolean:e","ValueType:f","Void:g","RuntimeTypeHandle:h","MethodInfo:i","MethodBase:j","MemberInfo:k","ParameterInfo:l","TypeCode:m","Enum:n","Number:o","IComparable:p","Number:q","Single:r","Number:s","ConstructorInfo:t","String:u","Array:v","RegExp:w","Cube:x","CubeType:y","Date:z","Date:aa","Number:ab","Catalog:ac","Dimension:ad","DimensionType:ae","KpiDimension:af","HierarchyOrigin:ai","AggregatorType:aj","CardinalityType:ak","MemberType:al","Hierarchy:am","Kpi:an","Level:ao","Measure:ap","KpiMeasure:aq","MeasureGroup:ar","MeasureGroupDimension:as","Member:at","Nullable$1:au","OlapResult:av","IList$1:aw","ICollection$1:ax","IEnumerable$1:ay","IEnumerable:az","IEnumerator:a0","IEnumerator$1:a1","OlapResultAxis:a2","PositionResolver$2:a3","List$1:a4","IArrayList:a5","Array:a6","ICollection:a7","CompareCallback:a8","MulticastDelegate:a9","IntPtr:ba","IList:bb","IDisposable:bc","IArray:bd","Script:be","Func$3:bf","Action$1:bg","PositionItemInfo$2:bh","Dictionary$2:bi","IDictionary$2:bj","IDictionary:bk","Dictionary:bl","IEqualityComparer$1:bm","KeyValuePair$2:bn","NotImplementedException:bo","Error:bp","IHierarchicalPositionItem$2:bq","IPositionItem$2:br","IPosition$2:bs","Math:bt","Number:bu","Number:bv","Number:bw","Number:bx","Number:by","Number:bz","Number:b0","Enumerable:b1","Func$2:b2","IOrderedEnumerable$1:b3","SortedList$1:b4","ArgumentNullException:b5","EventHandler$1:b6","Delegate:b7","ListSortDirection:b8","OlapResultTuple:b9","ReadOnlyCollection$1:ca","OlapResultAxisMember:cb","OlapResultCell:cc","IConnection:cd","IOlapDataProviderFactory:ce","IOlapDiscoverDataProvider:cf","Task$1:cg","Task:ch","JQueryPromise:ci","Action:cj","AggregateException:ck","TaskStatus:cl","TaskCompletionSource$1:cm","JQueryDeferred:cn","JQuery:co","JQueryObject:cp","Element:cq","ElementAttributeCollection:cr","ElementCollection:cs","WebStyle:ct","ElementNodeType:cu","Document:cv","EventListener:cw","IElementEventHandler:cx","ElementEventHandler:cy","ElementAttribute:cz","JQueryPosition:c0","JQueryCallback:c1","JQueryEvent:c2","JQueryUICallback:c3","IOlapExecuteCommandProvider:c4","HeaderCellsLayoutOrientation:c5","LevelSpanManager:c6","SpanSource:c7","ITableViewHeadersFactory:c8","TableViewHeadersFactory:c9","ArrayListCollection$1:da","INotifyCollectionChanged:db","NotifyCollectionChangedEventHandler:dc","NotifyCollectionChangedEventArgs:dd","EventArgs:de","NotifyCollectionChangedAction:df","TableViewHeaderCellSource:dg","OlapTableViewHeaderCell:dh","TableCompactViewHeadersFactory:di","TableViewImpl:dj","TableViewSettings:dk","ResultHeaderSorter:dl","ResultSorter$1:dm","AxisTupleVisitor:dn","LevelSortDirection:dp","LevelSortBehavior:dq","AxisHeaderSortingVisitor:dr","TupleSortDirection:ds","ResultColumnValueSorter:dt","AxisValueSortingVisitor:du","OlapTableViewResultCell:dv","OlapResultView:dw","InvalidOperationException:dx","ResultViewHelper:dy","IOlapDataSource:dz","OlapMetadataTreeItem:d0","OlapMetadataTreeItemType:d1","MeasureListLocation:d2","MeasureList:d3","OlapDataSource:d4","DataSourceBaseOptions:d5","CubeMetaItemsCache:d6","MeasureGroupMetaItemsCache:d7","Tuple$2:d8","NotSupportedException:d9","PositionInfo:ea","TaskExtensions:eb","AxisElement:ec","AxisDefinitionParser:ed","Debug:ee","TaskFactory:ef","MetaTreeHelper:eg","HierarchyItemPosition:eh","CoreOlapElementParser:el","KeyValueItem:eu","HierarchyFilterView:ev","FilterMember:ew","INotifyPropertyChanged:ex","PropertyChangedEventHandler:ey","PropertyChangedEventArgs:ez","FilterMemberStateChangedEventArgs:e0","DataSourceBase:e1","jQueryUtils:e2","OlapUtilities:e3","OlapTableView:e4","AbstractEnumerable:e5","Func$1:e6","AbstractEnumerator:e7","GenericEnumerable$1:e8","GenericEnumerator$1:e9"]);$.ig.util.defType("LevelSortBehavior","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("LevelSortBehavior",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("OlapMetadataTreeItemType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("OlapMetadataTreeItemType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("MeasureListLocation","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("MeasureListLocation",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("HeaderCellsLayoutOrientation","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("HeaderCellsLayoutOrientation",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("MemberType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("MemberType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("CardinalityType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("CardinalityType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("AggregatorType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("AggregatorType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("HierarchyOrigin","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("HierarchyOrigin",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("DimensionType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("DimensionType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("CubeType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("CubeType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("ICoreOlapElement","Object",{$type:new $.ig.Type("ICoreOlapElement",null)},true);$.ig.util.defType("Cube","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_catalogName:null,catalogName:function(value){if(arguments.length===1){this._catalogName=value;return value}else{return this._catalogName}},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_cubeType:null,cubeType:function(value){if(arguments.length===1){this._cubeType=value;return value}else{return this._cubeType}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_lastProcessed:null,lastProcessed:function(value){if(arguments.length===1){this._lastProcessed=value;return value}else{return this._lastProcessed}},_lastUpdated:null,lastUpdated:function(value){if(arguments.length===1){this._lastUpdated=value;return value}else{return this._lastUpdated}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}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.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("Catalog","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},$type:new $.ig.Type("Catalog",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("Dimension","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_dimensionType:null,dimensionType:function(value){if(arguments.length===1){this._dimensionType=value;return value}else{return this._dimensionType}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_defaultHierarchy:null,defaultHierarchy:function(value){if(arguments.length===1){this._defaultHierarchy=value;return value}else{return this._defaultHierarchy}},$type:new $.ig.Type("Dimension",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("KpiDimension","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},$type:new $.ig.Type("KpiDimension",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("Hierarchy","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_defaultHierarchy:null,defaultHierarchy:function(value){if(arguments.length===1){this._defaultHierarchy=value;return value}else{return this._defaultHierarchy}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_defaultMember:null,defaultMember:function(value){if(arguments.length===1){this._defaultMember=value;return value}else{return this._defaultMember}},_allMember:null,allMember:function(value){if(arguments.length===1){this._allMember=value;
return value}else{return this._allMember}},_dimensionUniqueName:null,dimensionUniqueName:function(value){if(arguments.length===1){this._dimensionUniqueName=value;return value}else{return this._dimensionUniqueName}},_hierarchyOrigin:null,hierarchyOrigin:function(value){if(arguments.length===1){this._hierarchyOrigin=value;return value}else{return this._hierarchyOrigin}},_hierarchyDisplayFolder:null,hierarchyDisplayFolder:function(value){if(arguments.length===1){this._hierarchyDisplayFolder=value;return value}else{return this._hierarchyDisplayFolder}},$type:new $.ig.Type("Hierarchy",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("Kpi","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_measureGroupName:null,measureGroupName:function(value){if(arguments.length===1){this._measureGroupName=value;return value}else{return this._measureGroupName}},_kpiDisplayFolder:null,kpiDisplayFolder:function(value){if(arguments.length===1){this._kpiDisplayFolder=value;return value}else{return this._kpiDisplayFolder}},_kpiValue:null,kpiValue:function(value){if(arguments.length===1){this._kpiValue=value;return value}else{return this._kpiValue}},_kpiGoal:null,kpiGoal:function(value){if(arguments.length===1){this._kpiGoal=value;return value}else{return this._kpiGoal}},_kpiStatus:null,kpiStatus:function(value){if(arguments.length===1){this._kpiStatus=value;return value}else{return this._kpiStatus}},_kpiTrend:null,kpiTrend:function(value){if(arguments.length===1){this._kpiTrend=value;return value}else{return this._kpiTrend}},_kpiStatusGraphic:null,kpiStatusGraphic:function(value){if(arguments.length===1){this._kpiStatusGraphic=value;return value}else{return this._kpiStatusGraphic}},_kpiTrendGraphic:null,kpiTrendGraphic:function(value){if(arguments.length===1){this._kpiTrendGraphic=value;return value}else{return this._kpiTrendGraphic}},_kpiWeight:null,kpiWeight:function(value){if(arguments.length===1){this._kpiWeight=value;return value}else{return this._kpiWeight}},_parentKpiName:null,parentKpiName:function(value){if(arguments.length===1){this._parentKpiName=value;return value}else{return this._parentKpiName}},_currentTimeMember:null,currentTimeMember:function(value){if(arguments.length===1){this._currentTimeMember=value;return value}else{return this._currentTimeMember}},$type:new $.ig.Type("Kpi",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("Level","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_depth:0,depth:function(value){if(arguments.length===1){this._depth=value;return value}else{return this._depth}},_hierarchyUniqueName:null,hierarchyUniqueName:function(value){if(arguments.length===1){this._hierarchyUniqueName=value;return value}else{return this._hierarchyUniqueName}},_dimensionUniqueName:null,dimensionUniqueName:function(value){if(arguments.length===1){this._dimensionUniqueName=value;return value}else{return this._dimensionUniqueName}},_membersCount:0,membersCount:function(value){if(arguments.length===1){this._membersCount=value;return value}else{return this._membersCount}},_levelOrigin:0,levelOrigin:function(value){if(arguments.length===1){this._levelOrigin=value;return value}else{return this._levelOrigin}},_levelOrderingProperty:null,levelOrderingProperty:function(value){if(arguments.length===1){this._levelOrderingProperty=value;return value}else{return this._levelOrderingProperty}},$type:new $.ig.Type("Level",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("Measure","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_measureGroupName:null,measureGroupName:function(value){if(arguments.length===1){this._measureGroupName=value;return value}else{return this._measureGroupName}},_aggregatorType:null,aggregatorType:function(value){if(arguments.length===1){this._aggregatorType=value;return value}else{return this._aggregatorType}},_defaultFormatString:null,defaultFormatString:function(value){if(arguments.length===1){this._defaultFormatString=value;return value}else{return this._defaultFormatString}},_measureDisplayFolder:null,measureDisplayFolder:function(value){if(arguments.length===1){this._measureDisplayFolder=value;return value}else{return this._measureDisplayFolder}},$type:new $.ig.Type("Measure",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("KpiMeasure","Measure",{init:function(a,b){$.ig.Measure.prototype.init.call(this);this.uniqueName(a);this.caption(b)},_graphic:null,graphic:function(value){if(arguments.length===1){this._graphic=value;return value}else{return this._graphic}},createKpiValueMeasure:function(a){return new $.ig.KpiMeasure(a.kpiValue(),a.caption()+" Value")},createKpiGoalMeasure:function(a){return new $.ig.KpiMeasure(a.kpiGoal(),a.caption()+" Goal")},createKpiWeightMeasure:function(a){return new $.ig.KpiMeasure(a.kpiWeight(),a.caption()+" Weight")},createKpiStatusMeasure:function(a){var b=new $.ig.KpiMeasure(a.kpiStatus(),a.caption()+" Status");b.graphic(a.kpiStatusGraphic());return b},createKpiTrendMeasure:function(a){var b=new $.ig.KpiMeasure(a.kpiTrend(),a.caption()+" Trend");b.graphic(a.kpiTrendGraphic());return b},$type:new $.ig.Type("KpiMeasure",$.ig.Measure.prototype.$type)},true);$.ig.util.defType("MeasureGroup","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_cubeName:null,cubeName:function(value){if(arguments.length===1){this._cubeName=value;return value}else{return this._cubeName}},_catalogName:null,catalogName:function(value){if(arguments.length===1){this._catalogName=value;return value}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.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("MeasureGroupDimension","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_cubeName:null,cubeName:function(value){if(arguments.length===1){this._cubeName=value;return value}else{return this._cubeName}},_catalogName:null,catalogName:function(value){if(arguments.length===1){this._catalogName=value;return value}else{return this._catalogName}},_measureGroupName:null,measureGroupName:function(value){if(arguments.length===1){this._measureGroupName=value;return value}else{return this._measureGroupName}},_dimensionUniqueName:null,dimensionUniqueName:function(value){if(arguments.length===1){this._dimensionUniqueName=value;return value}else{return this._dimensionUniqueName}},_measureGroupCardinality:null,measureGroupCardinality:function(value){if(arguments.length===1){this._measureGroupCardinality=value;return value}else{return this._measureGroupCardinality}},_dimensionCardinality:null,dimensionCardinality:function(value){if(arguments.length===1){this._dimensionCardinality=value;return value}else{return this._dimensionCardinality}},_isDimensionVisible:false,isDimensionVisible:function(value){if(arguments.length===1){this._isDimensionVisible=value;return value}else{return this._isDimensionVisible}},_isFactDimension:false,isFactDimension:function(value){if(arguments.length===1){this._isFactDimension=value;return value}else{return this._isFactDimension}},_dimensionPath:null,dimensionPath:function(value){if(arguments.length===1){this._dimensionPath=value;return value}else{return this._dimensionPath}},_dimensionGranularity:null,dimensionGranularity:function(value){if(arguments.length===1){this._dimensionGranularity=value;return value}else{return this._dimensionGranularity}},$type:new $.ig.Type("MeasureGroupDimension",$.ig.Object.prototype.$type)},true);$.ig.util.defType("Member","Object",{init:function(){$.ig.Object.prototype.init.call(this);var a=$.ig.util.toNullable($.ig.Number.prototype.$type,null);this.scope(a)},_cubeName:null,cubeName:function(value){if(arguments.length===1){this._cubeName=value;return value}else{return this._cubeName}},_catalogName:null,catalogName:function(value){if(arguments.length===1){this._catalogName=value;return value}else{return this._catalogName}},_dimensionUniqueName:null,dimensionUniqueName:function(value){if(arguments.length===1){this._dimensionUniqueName=value;return value}else{return this._dimensionUniqueName}},_hierarchyUniqueName:null,hierarchyUniqueName:function(value){if(arguments.length===1){this._hierarchyUniqueName=value;return value}else{return this._hierarchyUniqueName}},_levelUniqueName:null,levelUniqueName:function(value){if(arguments.length===1){this._levelUniqueName=value;return value}else{return this._levelUniqueName}},_levelDepth:0,levelDepth:function(value){if(arguments.length===1){this._levelDepth=value;return value}else{return this._levelDepth}},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_memberType:null,memberType:function(value){if(arguments.length===1){this._memberType=value;return value}else{return this._memberType}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_childrenCardinality:0,childrenCardinality:function(value){if(arguments.length===1){this._childrenCardinality=value;return value}else{return this._childrenCardinality}},_parentLevel:0,parentLevel:function(value){if(arguments.length===1){this._parentLevel=value;return value}else{return this._parentLevel}},_parentUniqueName:null,parentUniqueName:function(value){if(arguments.length===1){this._parentUniqueName=value;return value}else{return this._parentUniqueName}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_scope:$.ig.util.toNullable($.ig.Number.prototype.$type,null),scope:function(value){if(arguments.length===1){this._scope=value;return value}else{return this._scope}},$type:new $.ig.Type("Member",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("OlapResult","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_isEmpty:false,isEmpty:function(value){if(arguments.length===1){this._isEmpty=value;return value}else{return this._isEmpty}},_axes:null,axes:function(value){if(arguments.length===1){this._axes=value;return value}else{return this._axes}},_cells:null,cells:function(value){if(arguments.length===1){this._cells=value;return value}else{return this._cells}},$type:new $.ig.Type("OlapResult",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapResultAxis","Object",{init:function(a,b){$.ig.Object.prototype.init.call(this);this.tuples(a.toList$1($.ig.OlapResultTuple.prototype.$type));this.tupleSize(b);this.positionResolver(new $.ig.PositionResolver$2(String,$.ig.Object.prototype.$type,a,b))},_positionResolver:null,positionResolver:function(value){if(arguments.length===1){this._positionResolver=value;return value}else{return this._positionResolver}},clone:function(){var $self=this;var a=new $.ig.List$1($.ig.OlapResultTuple.prototype.$type,0);var c=$self.tuples().getEnumerator();while(c.moveNext()){var b=c.current();a.add(b.clone())}return function(){var $ret=new $.ig.OlapResultAxis(a,$self.tupleSize());$ret.name($self.name());return $ret}()},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_tupleSize:0,tupleSize:function(value){if(arguments.length===1){this._tupleSize=value;return value}else{return this._tupleSize}},_tuples:null,tuples:function(value){if(arguments.length===1){this._tuples=value;return value}else{return this._tuples}},$type:new $.ig.Type("OlapResultAxis",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IPosition$2","Object",{$type:new $.ig.Type("IPosition$2",null)},true);$.ig.util.defType("OlapResultTuple","Object",{init:function(a){$.ig.Object.prototype.init.call(this);this.members(new $.ig.ReadOnlyCollection$1($.ig.OlapResultAxisMember.prototype.$type,1,a))},_members:null,members:function(value){if(arguments.length===1){this._members=value;return value}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 $.ig.List$1($.ig.OlapResultAxisMember.prototype.$type,0);var c=this.members().getEnumerator();while(c.moveNext()){var b=c.current();a.add(b.clone())}var d=new $.ig.OlapResultTuple(a);var f=a.getEnumerator();while(f.moveNext()){var e=f.current();e.position(d)}return d},$type:new $.ig.Type("OlapResultTuple",$.ig.Object.prototype.$type,[$.ig.IPosition$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type)])},true);$.ig.util.defType("IPositionItem$2","Object",{$type:new $.ig.Type("IPositionItem$2",null)},true);$.ig.util.defType("IHierarchicalPositionItem$2","Object",{$type:new $.ig.Type("IHierarchicalPositionItem$2",null,[$.ig.IPositionItem$2.prototype.$type.specialize(0,1)])},true);$.ig.util.defType("OlapResultAxisMember","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.properties(new $.ig.Dictionary$2(String,String,0));this.ordinal(-1)},_uniqueName:null,uniqueName:function(value){if(arguments.length===1){this._uniqueName=value;return value}else{return this._uniqueName}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_levelUniqueName:null,levelUniqueName:function(value){if(arguments.length===1){this._levelUniqueName=value;return value}else{return this._levelUniqueName}},_hierarchyUniqueName:null,hierarchyUniqueName:function(value){if(arguments.length===1){this._hierarchyUniqueName=value;return value}else{return this._hierarchyUniqueName}},_levelNumber:0,levelNumber:function(value){if(arguments.length===1){this._levelNumber=value;return value}else{return this._levelNumber}},_displayInfo:null,displayInfo:function(value){if(arguments.length===1){this._displayInfo=value;return value}else{return this._displayInfo}},e:function(){return this.displayInfo()&~65536&~131072},drilledDown:function(){return(this.displayInfo()&65536)==65536},parentSameAsPrev:function(){return(this.displayInfo()&131072)==131072},_properties:null,properties:function(value){if(arguments.length===1){this._properties=value;return value}else{return this._properties}},_position:null,position:function(value){if(arguments.length===1){this._position=value;return value}else{return this._position}},key:function(){return this.uniqueName()},sortKey:function(){if(this.ordinal()>-1){return this.ordinal()}var a=parseFloat(this.caption());if(!isNaN(a)){return a}return this.caption()},_ordinal:0,ordinal:function(value){if(arguments.length===1){this._ordinal=value;return value}else{return this._ordinal}},hierarchyKey:function(){return this.hierarchyUniqueName()},hierarchyLevelKey:function(){return this.levelUniqueName()},parentKey:function(){var $self=this;var a;(function(){var $ret=$self.properties().tryGetValue("PARENT_UNIQUE_NAME",a);a=$ret.value;return $ret.ret})();return a},depth:function(){return this.levelNumber()},isExpandable:function(){return this.e()>0},clone:function(){var a=new $.ig.OlapResultAxisMember;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.Object.prototype.$type,[$.ig.IHierarchicalPositionItem$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type)])},true);$.ig.util.defType("OlapResultCell","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.properties(new $.ig.Dictionary$2(String,$.ig.Object.prototype.$type,0))},_cellOrdinal:0,cellOrdinal:function(value){if(arguments.length===1){this._cellOrdinal=value;return value}else{return this._cellOrdinal}},_properties:null,properties:function(value){if(arguments.length===1){this._properties=value;return value}else{return this._properties}},clone:function(){var $self=this;var a=function(){var $ret=new $.ig.OlapResultCell;$ret.cellOrdinal($self.cellOrdinal());return $ret}();var c=$self.properties().getEnumerator();while(c.moveNext()){var b=c.current();a.properties().add(b.key(),b.value())}return a},$type:new $.ig.Type("OlapResultCell",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IConnection","Object",{$type:new $.ig.Type("IConnection",null)},true);$.ig.util.defType("IOlapDataProviderFactory","Object",{$type:new $.ig.Type("IOlapDataProviderFactory",null)},true);$.ig.util.defType("IOlapDiscoverDataProvider","Object",{$type:new $.ig.Type("IOlapDiscoverDataProvider",null)},true);$.ig.util.defType("IOlapExecuteCommandProvider","Object",{$type:new $.ig.Type("IOlapExecuteCommandProvider",null)},true);$.ig.util.defType("LevelSpanManager","Object",{b:null,init:function(a){$.ig.Object.prototype.init.call(this);this.c(a);this.b=new Array(a)},_c:0,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},a:function(a,b){var $self=this;var c=$self.b[a];if(c==null){c=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.SpanSource.prototype.$type,0);$self.b[a]=c}var d;if(!function(){var $ret=c.tryGetValue(b,d);d=$ret.value;return $ret.ret}()){d=new $.ig.SpanSource;if(b>0){var e;if(function(){var $ret=c.tryGetValue(b-1,e);e=$ret.value;return $ret.ret}()){d.a(e);e.e()}}c.add(b,d)}return d},$type:new $.ig.Type("LevelSpanManager",$.ig.Object.prototype.$type)},true);$.ig.util.defType("SpanSource","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.c=1},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},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.Object.prototype.$type)},true);$.ig.util.defType("ITableViewHeadersFactory","Object",{$type:new $.ig.Type("ITableViewHeadersFactory",null)},true);$.ig.util.defType("TableViewHeadersFactory","Object",{_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_d:false,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},init:function(a,b,c,d,e){$.ig.Object.prototype.init.call(this);this.b(a);this.a(b);this.c(c);this.d(d);this.e(e)},createHeaderCells:function(){var $self=this;if($self.b().positionResolver().hasUnregisterdPositions()){$self.b().positionResolver().completeRegisterPositions()}var a=$self.b().positionResolver().rootPositionInfo();var b=new $.ig.List$1($.ig.IList$1.prototype.$type.specialize($.ig.TableViewHeaderCellSource.prototype.$type),0);for(var c=0;c<a.positionSize();c++){b.add(new $.ig.List$1($.ig.TableViewHeaderCellSource.prototype.$type,0))}$.ig.TableViewHeadersFactory.prototype.createHeaderCells2(a,a.positionItemDepthMin(),b,$self.d(),$self.e());var d=new $.ig.ArrayListCollection$1($.ig.OlapTableViewHeaderCell.prototype.$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($self.c()==$.ig.HeaderCellsLayoutOrientation.prototype.horizontal){l=h;m=j.b().d();n=j.a().positionItemDepth()+e;o=j.c().d()}else{n=h;o=j.b().d();l=j.a().positionItemDepth()+e;m=j.c().d()}var p=$self.b().tuples().__inner[j.a().positionIndex()];var q=p.item(j.a().positionItemIndex());var r=$self.b().tuples().__inner[j.k()];if($self.a().positionResolver().hasUnregisterdPositions()){$self.a().positionResolver().completeRegisterPositions()}var s=$self.a().positionResolver().getPositionIndex(r);var t=function(){var $ret=new $.ig.OlapTableViewHeaderCell;$ret.axisName($self.b().name());$ret.hierarchyNumber(j.a().positionItemIndex());$ret.levelNumber(j.a().positionItemDepth());$ret.caption(q.caption());$ret.columnIndex(l);$ret.columnSpan(m);$ret.isExpanded(j.f());$ret.isExpandable(j.e());$ret.tupleIndex(s);$ret.memberIndex(j.a().positionItemIndex());$ret.rowIndex(n);$ret.rowSpan(o);return $ret}();if(!j.g()){h=h+j.b().d()}i=Math.max(i,j.a().positionItemDepth());d.add(t)}e+=i+1}return d},createHeaderCells2:function(a,b,c,d,e){var $self=this;var f=new $.ig.LevelSpanManager(a.positionSize());var h=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(i){return i.positionItemDepth()==b}).getEnumerator();while(h.moveNext()){var g=h.current();var i;var j;(function(){var $ret=$.ig.TableViewHeadersFactory.prototype.createHeaderCells1(a,g,c,f,d,e,i,j);i=$ret.headerCellSource;j=$ret.totalSpan;return $ret.ret})()}},h:function(a,b,c,d,e,f){var $self=this;var g=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(h){return h.positionItemDepth()==a.positionItemDepthMin()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(g.count()>0){var i=g.getEnumerator();while(i.moveNext()){var h=i.current();var j;var k;(function(){var $ret=$.ig.TableViewHeadersFactory.prototype.createHeaderCells1(a,h,b,c,d,f,j,k);j=$ret.headerCellSource;k=$ret.totalSpan;return $ret.ret})();e.b().d(e.b().d()+k);if(j.g()){e.b().d(e.b().d()+1)}}e.b().d(e.b().d()-1)}else{f.add(a.positionIndex())}e.k(a.positionIndex())},createHeaderCells1:function(a,b,c,d,e,f,g,h){var $self=this;var i=c.item(b.positionItemIndex());var j=d.a(b.positionItemIndex(),b.positionItemDepth());var k=function(){var $ret=new $.ig.TableViewHeaderCellSource;$ret.c(j);$ret.a(b);$ret.e(b.isExpandable());return $ret}();g=k;if(e){i.add(k);$.ig.TableViewHeadersFactory.prototype.h(b,c,d,true,k,f)}var l=null;if(b.isExpanded()){l=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(m){return m.parentKey()==b.key()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))}if(l!=null&&l.count()>0){var m=function(){var $ret=new $.ig.TableViewHeaderCellSource;$ret.g(true);$ret.a(b);$ret.e(b.isExpandable());return $ret}();i.add(m);var o=l.getEnumerator();while(o.moveNext()){var n=o.current();var p;var q;(function(){var $ret=$.ig.TableViewHeadersFactory.prototype.createHeaderCells1(a,n,c,d,e,f,p,q);p=$ret.headerCellSource;q=$ret.totalSpan;return $ret.ret})();m.b().d(m.b().d()+q);if(p.g()){m.b().d(m.b().d()+1)}}m.b().d(m.b().d()-1);k.f(true);k.e(false);m.f(true);k.d(m);if(!e){i.add(k);$.ig.TableViewHeadersFactory.prototype.h(b,c,d,false,k,f)}m.k(k.k());g=m;h=k.b().d()+m.b().d()-1}else{if(b.isExpanded()){k.e(false)}if(!e){i.add(k);$.ig.TableViewHeadersFactory.prototype.h(b,c,d,false,k,f)}h=k.b().d()}return{headerCellSource:g,totalSpan:h}},$type:new $.ig.Type("TableViewHeadersFactory",$.ig.Object.prototype.$type,[$.ig.ITableViewHeadersFactory.prototype.$type])},true);$.ig.util.defType("TableCompactViewHeadersFactory","Object",{_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_d:false,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},init:function(a,b,c,d,e){$.ig.Object.prototype.init.call(this);this.b(a);this.a(b);this.c(c);this.d(d);this.e(e)},createHeaderCells:function(){var $self=this;if($self.b().positionResolver().hasUnregisterdPositions()){$self.b().positionResolver().completeRegisterPositions()}var a=$self.b().positionResolver().rootPositionInfo();var b=new $.ig.List$1($.ig.IList$1.prototype.$type.specialize($.ig.TableViewHeaderCellSource.prototype.$type),0);for(var c=0;c<a.positionSize();c++){b.add(new $.ig.List$1($.ig.TableViewHeaderCellSource.prototype.$type,0))}$.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells2(a,a.positionItemDepthMin(),b,$self.d(),$self.e());var d=new $.ig.ArrayListCollection$1($.ig.OlapTableViewHeaderCell.prototype.$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($self.c()==$.ig.HeaderCellsLayoutOrientation.prototype.horizontal){l=h;m=j.b().d();n=e;o=1}else{n=h;o=j.b().d();l=e;m=1}var p=$self.b().tuples().__inner[j.a().positionIndex()];var q=p.item(j.a().positionItemIndex());var r=$self.b().tuples().__inner[j.k()];if($self.a().positionResolver().hasUnregisterdPositions()){$self.a().positionResolver().completeRegisterPositions()}var s=$self.a().positionResolver().getPositionIndex(r);var t=function(){var $ret=new $.ig.OlapTableViewHeaderCell;$ret.axisName($self.b().name());$ret.hierarchyNumber(j.a().positionItemIndex());$ret.levelNumber(j.a().positionItemDepth());$ret.caption(q.caption());$ret.columnIndex(l);$ret.columnSpan(m);$ret.isExpanded(j.f());$ret.isExpandable(j.e());$ret.tupleIndex(s);$ret.memberIndex(j.a().positionItemIndex());$ret.rowIndex(n);$ret.rowSpan(o);return $ret}();if(!j.g()){h=h+j.b().d()}d.add(t)}e+=i+1}return d},createHeaderCells2:function(a,b,c,d,e){var $self=this;var f=new $.ig.LevelSpanManager(a.positionSize());var h=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(i){return i.positionItemDepth()==b}).getEnumerator();while(h.moveNext()){var g=h.current();var i;var j;(function(){var $ret=$.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(a,g,c,f,d,e,i,j);i=$ret.headerCellSource;j=$ret.totalSpan;return $ret.ret})()}},h:function(a,b,c,d,e,f){var $self=this;var g=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(h){return h.positionItemDepth()==a.positionItemDepthMin()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(g.count()>0){var i=g.getEnumerator();while(i.moveNext()){var h=i.current();var j;var k;(function(){var $ret=$.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(a,h,b,c,d,f,j,k);j=$ret.headerCellSource;k=$ret.totalSpan;return $ret.ret})();e.b().d(e.b().d()+k);if(j.d()!=null){e.b().d(e.b().d()+1)}}e.b().d(e.b().d()-1)}else{f.add(a.positionIndex())}e.k(a.positionIndex())},createHeaderCells1:function(a,b,c,d,e,f,g,h){var $self=this;var i=c.item(b.positionItemIndex());var j=d.a(b.positionItemIndex(),b.positionItemDepth());var k=function(){var $ret=new $.ig.TableViewHeaderCellSource;$ret.c(j);$ret.a(b);$ret.e(b.isExpandable());return $ret}();g=k;if(e){i.add(k);$.ig.TableCompactViewHeadersFactory.prototype.h(b,c,d,true,k,f)}var l=null;if(b.isExpanded()){l=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(m){return m.parentKey()==b.key()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))}if(l!=null&&l.count()>0){var m=function(){var $ret=new $.ig.TableViewHeaderCellSource;$ret.g(true);$ret.a(b);$ret.e(b.isExpandable());return $ret}();var o=l.getEnumerator();while(o.moveNext()){var n=o.current();var p;var q;(function(){var $ret=$.ig.TableCompactViewHeadersFactory.prototype.createHeaderCells1(a,n,c,d,e,f,p,q);p=$ret.headerCellSource;q=$ret.totalSpan;return $ret.ret})();m.b().d(m.b().d()+q);if(p.d()!=null){m.b().d(m.b().d()+1)}}m.b().d(m.b().d()-1);k.f(true);k.e(true);k.d(m);if(!e){i.add(k);$.ig.TableCompactViewHeadersFactory.prototype.h(b,c,d,false,k,f)}m.k(k.k());h=k.b().d()+m.b().d()-1}else{if(b.isExpanded()){k.e(false)}if(!e){i.add(k);$.ig.TableCompactViewHeadersFactory.prototype.h(b,c,d,false,k,f)}h=k.b().d()}return{headerCellSource:g,totalSpan:h}},$type:new $.ig.Type("TableCompactViewHeadersFactory",$.ig.Object.prototype.$type,[$.ig.ITableViewHeadersFactory.prototype.$type])},true);$.ig.util.defType("TableViewHeaderCellSource","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.b(new $.ig.SpanSource);this.c(new $.ig.SpanSource)},_g:false,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},_j:0,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},_h:0,h:function(value){if(arguments.length===1){this._h=value;return value}else{return this._h}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_k:0,k:function(value){if(arguments.length===1){this._k=value;return value}else{return this._k}},_i:0,i:function(value){if(arguments.length===1){this._i=value;return value}else{return this._i}},_f:false,f:function(value){if(arguments.length===1){this._f=value;return value}else{return this._f}},_e:false,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},$type:new $.ig.Type("TableViewHeaderCellSource",$.ig.Object.prototype.$type)},true);
$.ig.util.defType("TableViewImpl","Object",{init:function(a,b,c,d){var $self=this;$.ig.Object.prototype.init.call(this);if(a==null){throw new $.ig.ArgumentNullException("result")}this.result(a);this.originalResult(a);if(d==null){this.viewSettings(new $.ig.TableViewSettings)}else{this.viewSettings(d)}this.hasColumns(b);this.hasRows(c);this.columnSortDirections(new $.ig.ArrayListCollection$1($.ig.TupleSortDirection.prototype.$type));this.columnSortDirections().collectionChanged=$.ig.Delegate.prototype.combine(this.columnSortDirections().collectionChanged,function(e,f){$self.i(true)});this.levelSortDirections(new $.ig.ArrayListCollection$1($.ig.LevelSortDirection.prototype.$type));this.levelSortDirections().collectionChanged=$.ig.Delegate.prototype.combine(this.levelSortDirections().collectionChanged,function(e,f){$self.i(true)});this.appliedColumnSortDirections(new $.ig.List$1($.ig.TupleSortDirection.prototype.$type,0));this.appliedLevelSortDirections(new $.ig.List$1($.ig.LevelSortDirection.prototype.$type,0));this.appliedSortDirectionsMap(new $.ig.Dictionary$2(String,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type)),0))},_viewSettings:null,viewSettings:function(value){if(arguments.length===1){this._viewSettings=value;return value}else{return this._viewSettings}},_result:null,result:function(value){if(arguments.length===1){this._result=value;return value}else{return this._result}},_originalResult:null,originalResult:function(value){if(arguments.length===1){this._originalResult=value;return value}else{return this._originalResult}},_hasRows:false,hasRows:function(value){if(arguments.length===1){this._hasRows=value;return value}else{return this._hasRows}},_hasColumns:false,hasColumns:function(value){if(arguments.length===1){this._hasColumns=value;return value}else{return this._hasColumns}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_h:false,h:function(value){if(arguments.length===1){this._h=value;return value}else{return this._h}},_i:false,i:function(value){if(arguments.length===1){this._i=value;return value}else{return this._i}},l:null,k:null,o:null,rowHeaders:function(a){if(arguments.length===1){this.l=a;return a}else{if(!this.h()||this.i()){this.initialize()}return this.l}},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.o=a;return a}else{if(!this.h()||this.i()){this.initialize()}return this.o}},_columnSortDirections:null,columnSortDirections:function(value){if(arguments.length===1){this._columnSortDirections=value;return value}else{return this._columnSortDirections}},_levelSortDirections:null,levelSortDirections:function(value){if(arguments.length===1){this._levelSortDirections=value;return value}else{return this._levelSortDirections}},_appliedColumnSortDirections:null,appliedColumnSortDirections:function(value){if(arguments.length===1){this._appliedColumnSortDirections=value;return value}else{return this._appliedColumnSortDirections}},_appliedLevelSortDirections:null,appliedLevelSortDirections:function(value){if(arguments.length===1){this._appliedLevelSortDirections=value;return value}else{return this._appliedLevelSortDirections}},_appliedSortDirectionsMap:null,appliedSortDirectionsMap:function(value){if(arguments.length===1){this._appliedSortDirectionsMap=value;return value}else{return this._appliedSortDirectionsMap}},initialize:function(){var $self=this;$self.d(null);$self.c(null);$self.rowHeaders(null);$self.columnHeaders(null);$self.resultCells(null);$self.result($self.originalResult());if($self.result().isEmpty()){$self.i(false);$self.h(true);return}if($self.levelSortDirections().count()>0){var a=new $.ig.ResultHeaderSorter($self.result(),$self.hasRows(),$self.hasColumns(),$self.levelSortDirections());$self.result(a.b());$self.appliedLevelSortDirections(a.h());$self.appliedSortDirectionsMap(a.g())}else{$self.appliedLevelSortDirections(new $.ig.List$1($.ig.LevelSortDirection.prototype.$type,0));$self.appliedSortDirectionsMap(new $.ig.Dictionary$2(String,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type)),0))}if($self.hasRows()&&$self.columnSortDirections().count()>0){if($self.appliedLevelSortDirections().count()>0){if($self.originalResult().axes().item(0).positionResolver().hasUnregisterdPositions()){$self.originalResult().axes().item(0).positionResolver().completeRegisterPositions()}if($self.result().axes().item(0).positionResolver().hasUnregisterdPositions()){$self.result().axes().item(0).positionResolver().completeRegisterPositions()}var b=new $.ig.List$1($.ig.TupleSortDirection.prototype.$type,2,$self.columnSortDirections().count());var c=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Number.prototype.$type,1,$self.appliedColumnSortDirections().count());var e=$self.columnSortDirections().getEnumerator();while(e.moveNext()){var d=e.current();var f=$self.originalResult().axes().item(0).tuples().__inner[d.tupleIndex()];var g=$self.result().axes().item(0).positionResolver().getPositionIndex(f);var h=new $.ig.TupleSortDirection;h.sortDirection(d.sortDirection());h.tupleIndex(g);h.comparer(d.comparer());b.add(h);c.item(g,d.tupleIndex())}var i=new $.ig.ResultColumnValueSorter($self.result(),$self.hasRows(),$self.hasColumns(),b);$self.result(i.b());var k=i.g().getEnumerator();while(k.moveNext()){var j=k.current();j.tupleIndex(c.item(j.tupleIndex()))}$self.appliedColumnSortDirections(i.g())}else{var l=new $.ig.ResultColumnValueSorter($self.result(),$self.hasRows(),$self.hasColumns(),$self.columnSortDirections());$self.result(l.b());$self.appliedColumnSortDirections(l.g())}}else{$self.appliedColumnSortDirections(new $.ig.List$1($.ig.TupleSortDirection.prototype.$type,0))}var m=0;var n=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Number.prototype.$type,0);var o=1;if($self.hasColumns()){var p=$self.result().axes().item(m);var q=$self.originalResult().axes().item(m);var r=$self.u(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 $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Number.prototype.$type,0);if($self.hasRows()){var v=$self.result().axes().item(m);var w=$self.originalResult().axes().item(m);var x=$self.v(v,w);for(var y=0;y<x.count();y++){var z=x.item(y);u.add(z,y)}}var aa=new $.ig.ArrayListCollection$1($.ig.OlapTableViewResultCell.prototype.$type);for(var ab=0;ab<$self.result().cells().count();ab++){var ac=$self.result().cells().item(ab);var ad;(function(){var $ret=ac.properties().tryGetValue("Value",ad);ad=$ret.value;return $ret.ret})();var ae;(function(){var $ret=ac.properties().tryGetValue("FmtValue",ae);ae=$ret.value;return $ret.ret})();var af=ac.cellOrdinal();if($self.hasColumns()){var ag=af%o;var ah=n.item(ag);if(ag!=ah){var ai=$.ig.intDivide(af,o);af=ai*o+ah}}if($self.hasRows()){var aj=$.ig.intDivide(af,o);var ak=u.item(aj);if(aj!=ak){var al=af%o;af=ak*o+al}}aa.add(function(){var $ret=new $.ig.OlapTableViewResultCell;$ret.value(ad);$ret.formattedValue(ae);$ret.cellOrdinal(af);$ret.resultCellIndex(ab);return $ret}());$self.resultCells(aa)}$self.i(false);$self.h(true)},u:function(a,b){var c=new $.ig.List$1($.ig.Number.prototype.$type,0);if(this.viewSettings().a()){this.c(new $.ig.TableCompactViewHeadersFactory(a,b,$.ig.HeaderCellsLayoutOrientation.prototype.horizontal,this.viewSettings().c(),c))}else{this.c(new $.ig.TableViewHeadersFactory(a,b,$.ig.HeaderCellsLayoutOrientation.prototype.horizontal,this.viewSettings().c(),c))}this.columnHeaders(this.c().createHeaderCells());return c},v:function(a,b){var c=new $.ig.List$1($.ig.Number.prototype.$type,0);if(this.viewSettings().b()){this.d(new $.ig.TableCompactViewHeadersFactory(a,b,$.ig.HeaderCellsLayoutOrientation.prototype.vertical,this.viewSettings().d(),c))}else{this.d(new $.ig.TableViewHeadersFactory(a,b,$.ig.HeaderCellsLayoutOrientation.prototype.vertical,this.viewSettings().d(),c))}this.rowHeaders(this.d().createHeaderCells());return c},$type:new $.ig.Type("TableViewImpl",$.ig.Object.prototype.$type)},true);$.ig.util.defType("TableViewSettings","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_c:false,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_d:false,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_b:false,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:false,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("TableViewSettings",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapResultView","Object",{init:function(a,b,c,d){$.ig.Object.prototype.init.call(this);if(a==null){throw new $.ig.ArgumentNullException("result")}this.result(a);this.visibleResult(b);this.hasColumns(c);this.hasRows(d)},_result:null,result:function(value){if(arguments.length===1){this._result=value;return value}else{return this._result}},_visibleResult:null,visibleResult:function(value){if(arguments.length===1){this._visibleResult=value;return value}else{return this._visibleResult}},_hasRows:false,hasRows:function(value){if(arguments.length===1){this._hasRows=value;return value}else{return this._hasRows}},_hasColumns:false,hasColumns:function(value){if(arguments.length===1){this._hasColumns=value;return value}else{return this._hasColumns}},c:function(a,b,c,d,e){var $self=this;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=$.ig.intDivide(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=$.ig.intDivide(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=$.ig.intDivide(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=$.ig.intDivide(o.cellOrdinal(),h);if(q>p){break}t=o.cellOrdinal()%h}}}}var y=new $.ig.List$1($.ig.OlapResultCell.prototype.$type,0);for(var aa=0;aa<m.length;aa++){var z=m[aa];if(z!=null){y.add(z)}}var ab=new $.ig.List$1($.ig.OlapResultAxis.prototype.$type,0);if(e){ab.add(c)}if(d){ab.add(b)}return function(){var $ret=new $.ig.OlapResult;$ret.axes(ab);$ret.cells(y);$ret.isEmpty(!d&&!e&&y.count()==0);return $ret}()},a:function(a,b,c){var $self=this;var d=new $.ig.List$1($.ig.OlapResultTuple.prototype.$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 $.ig.OlapResultAxis(d,a.tupleSize());$ret.name(a.name());return $ret}();return j},expandTupleMember:function(a,b,c){var $self=this;var d=$self.f(a,b,c,$self.visibleResult());if(d==null){return null}if(!d.isExpandable()){throw new $.ig.InvalidOperationException(1,"The position is not expandable.")}if(d.isExpanded()){return $self}var e=$self.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(f){return f.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var f=$self.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(g){return g.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var g=a=="Axis0"&&!$self.hasColumns()||a=="Axis1"&&$self.hasRows();var h=e.tuples().__inner[b];var i=f.positionResolver().getPositionIndex(h);var j=$self.l(a,i,c,$self.result());if(j.count()==0){return null}var k=null;var l=null;if(g){k=$self.a(f,j,true);if($self.hasColumns()){l=$self.visibleResult().axes().item(0)}}else{l=$self.a(f,j,true);if($self.hasRows()){k=$self.visibleResult().axes().item(1)}}var m=$self.c($self.result(),k,l,$self.hasRows(),$self.hasColumns());var n=$self.b($self.visibleResult(),m,f.name());return new $.ig.OlapResultView($self.result(),n,$self.hasColumns(),$self.hasRows())},collapseTupleMember:function(a,b,c){var $self=this;var d=$self.f(a,b,c,$self.visibleResult());if(d==null){return null}if(!d.isExpandable()){throw new $.ig.InvalidOperationException(1,"The position is not expandable.")}if(!d.isExpanded()){return $self}var e=$self.l(a,b,c,$self.visibleResult());if(e.count()==0){return null}var f=$self.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(g){return g.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var g=a=="Axis0"&&!$self.hasColumns()||a=="Axis1"&&$self.hasRows();var h=null;var i=null;if(g){h=$self.a(f,e,false);if($self.hasColumns()){i=$self.visibleResult().axes().item(0)}}else{i=$self.a(f,e,false);if($self.hasRows()){h=$self.visibleResult().axes().item(1)}}var j=$self.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(k){return k.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var k=j.tuples().__inner[b];if(j.positionResolver().hasUnregisterdPositions()){j.positionResolver().completeRegisterPositions()}var l=j.positionResolver().getHostPositionItemInfo(k,c);var m=l.item(k.item(c).key());m.isExpanded(false);var n=$self.c($self.visibleResult(),h,i,$self.hasRows(),$self.hasColumns());return new $.ig.OlapResultView($self.result(),n,$self.hasColumns(),$self.hasRows())},extend:function(a,b){var $self=this;var c=$self.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(d){return d.name()==b}).first$1($.ig.OlapResultAxis.prototype.$type);var d=b=="Axis0"&&!$self.hasColumns()||b=="Axis1"&&$self.hasRows();var e=null;var f=null;var g=null;var h=false;if(d){e=c;if($self.hasColumns()){f=$self.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=b}).first$1($.ig.OlapResultAxis.prototype.$type);g=$self.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=b}).first$1($.ig.OlapResultAxis.prototype.$type);h=f.tuples().count()!=g.tuples().count()}}else{f=c;if($self.hasRows()){e=$self.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=b}).first$1($.ig.OlapResultAxis.prototype.$type);g=$self.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=b}).first$1($.ig.OlapResultAxis.prototype.$type);h=e.tuples().count()!=g.tuples().count()}}var i=null;var j=null;if(g!=null&&h){var k=$self.c($self.result(),e,f,$self.hasRows(),$self.hasColumns());i=$self.b(k,a,b);j=$self.b(k,a,b)}else{i=$self.b($self.result(),a,b);j=$self.b($self.visibleResult(),a,b)}return new $.ig.OlapResultView(i,j,$self.hasColumns(),$self.hasRows())},b:function(a,b,c){var $self=this;var d=a.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(e){return e.name()==c}).first$1($.ig.OlapResultAxis.prototype.$type);if(d==null){return null}var e=b.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(f){return f.name()==c}).first$1($.ig.OlapResultAxis.prototype.$type);var f=c=="Axis0"&&!$self.hasColumns()||c=="Axis1"&&$self.hasRows();var g=null;var h=null;if(f){if($self.hasColumns()){g=a.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=c}).first$1($.ig.OlapResultAxis.prototype.$type);h=b.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=c}).first$1($.ig.OlapResultAxis.prototype.$type)}}else{if($self.hasRows()){g=a.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=c}).first$1($.ig.OlapResultAxis.prototype.$type);h=b.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(i){return i.name()!=c}).first$1($.ig.OlapResultAxis.prototype.$type)}}var i=new $.ig.List$1($.ig.OlapResultTuple.prototype.$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 $.ig.List$1($.ig.OlapResultCell.prototype.$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=$self.m(z.cellOrdinal(),g,h);var ab=$.ig.intDivide(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=$.ig.intDivide(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=$self.n(al.cellOrdinal(),g,h,n);var an=$.ig.intDivide(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 $.ig.OlapResult;ar.axes(new $.ig.List$1($.ig.OlapResultAxis.prototype.$type,0));var as=function(){var $ret=new $.ig.OlapResultAxis(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(!$self.hasColumns()&&!$self.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=$.ig.intDivide(a,d);var f=c.tuples().__inner[e];var g=b.positionResolver().getPositionIndex(f);return g},l:function(a,b,c,d){var $self=this;var e=d.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(f){return f.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var f=e.tuples().__inner[b];var g=f.item(c);if(e.positionResolver().hasUnregisterdPositions()){e.positionResolver().completeRegisterPositions()}var h=e.positionResolver().h(g,$.ig.ListSortDirection.prototype.ascending);if(h!=null){return h.toList$1($.ig.Number.prototype.$type)}return null},f:function(a,b,c,d){var $self=this;var e=d.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(f){return f.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);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;(function(){var $ret=h.tryGetValue(g.key(),i);i=$ret.value;return $ret.ret})();return i},$type:new $.ig.Type("OlapResultView",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ResultViewHelper","Object",{init:function(){$.ig.Object.prototype.init.call(this)},e:function(a,b,c,d,e){$.ig.ResultViewHelper.prototype.d(a,b,c,true,e.visibleResult());$.ig.ResultViewHelper.prototype.d(a,b,c,true,e.result())},f:function(a,b,c){var $self=this;var d=b.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(e){return e.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var e=c.visibleResult().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(f){return f.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);$.ig.ResultViewHelper.prototype.b(d.positionResolver(),e.positionResolver());var f=b.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(g){return g.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);var g=c.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(h){return h.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);$.ig.ResultViewHelper.prototype.b(f.positionResolver(),g.positionResolver())},d:function(a,b,c,d,e){var $self=this;var f=e.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(g){return g.name()==a}).first$1($.ig.OlapResultAxis.prototype.$type);if(f.positionResolver().hasUnregisterdPositions()){f.positionResolver().completeRegisterPositions()}$.ig.ResultViewHelper.prototype.c(b,c,d,f.positionResolver())},c:function(a,b,c,d){if(d.hasUnregisterdPositions()){d.completeRegisterPositions()}var e=d.positions().__inner[a];var f=d.getHostPositionItemInfo(e,b);var g=f.item(e.item(b).key());g.isExpanded(c)},b:function(a,b){if(a.hasUnregisterdPositions()){a.completeRegisterPositions()}if(b.hasUnregisterdPositions()){b.completeRegisterPositions()}$.ig.ResultViewHelper.prototype.a(a.rootPositionInfo(),b.rootPositionInfo())},a:function(a,b){var $self=this;var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=c.value();var f;if(function(){var $ret=b.tryGetValue(c.key(),f);f=$ret.value;return $ret.ret}()){if(e.isExpanded()!=true){f.isExpanded(false)}if(f.count()>0){$.ig.ResultViewHelper.prototype.a(e,f)}}}},$type:new $.ig.Type("ResultViewHelper",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapTableViewHeaderCell","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.columnSpan(1);this.rowSpan(1)},_id:null,id:function(value){if(arguments.length===1){this._id=value;return value}else{return this._id}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_isExpanded:false,isExpanded:function(value){if(arguments.length===1){this._isExpanded=value;return value}else{return this._isExpanded}},_isExpandable:false,isExpandable:function(value){if(arguments.length===1){this._isExpandable=value;return value}else{return this._isExpandable}},_rowIndex:0,rowIndex:function(value){if(arguments.length===1){this._rowIndex=value;return value}else{return this._rowIndex}},_rowSpan:0,rowSpan:function(value){if(arguments.length===1){this._rowSpan=value;return value}else{return this._rowSpan}},_columnIndex:0,columnIndex:function(value){if(arguments.length===1){this._columnIndex=value;return value}else{return this._columnIndex}},_columnSpan:0,columnSpan:function(value){if(arguments.length===1){this._columnSpan=value;return value}else{return this._columnSpan}},_axisName:null,axisName:function(value){if(arguments.length===1){this._axisName=value;return value}else{return this._axisName}},_tupleIndex:0,tupleIndex:function(value){if(arguments.length===1){this._tupleIndex=value;return value}else{return this._tupleIndex}},_memberIndex:0,memberIndex:function(value){if(arguments.length===1){this._memberIndex=value;return value}else{return this._memberIndex}},_levelNumber:0,levelNumber:function(value){if(arguments.length===1){this._levelNumber=value;return value}else{return this._levelNumber}},_hierarchyNumber:0,hierarchyNumber:function(value){if(arguments.length===1){this._hierarchyNumber=value;return value}else{return this._hierarchyNumber}},toString:function(){return this.caption()},$type:new $.ig.Type("OlapTableViewHeaderCell",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapTableViewResultCell","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_value:null,value:function(value){if(arguments.length===1){this._value=value;return value}else{return this._value}},_formattedValue:null,formattedValue:function(value){if(arguments.length===1){this._formattedValue=value;return value}else{return this._formattedValue}},_cellOrdinal:0,cellOrdinal:function(value){if(arguments.length===1){this._cellOrdinal=value;return value}else{return this._cellOrdinal}},_resultCellIndex:0,resultCellIndex:function(value){if(arguments.length===1){this._resultCellIndex=value;return value}else{return this._resultCellIndex}},$type:new $.ig.Type("OlapTableViewResultCell",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ArrayListCollection$1","Object",{$t:null,init:function($t){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.Object.prototype.init.call(this);this.inner(new $.ig.Array)},_inner:null,inner:function(value){if(arguments.length===1){this._inner=value;return value}else{return this._inner}},collectionChanged:null,indexOf:function(a){return this.inner().indexOf(a)},insert:function(a,b){this.inner().insert(a,b);this.d(a,b)},removeAt:function(a){var b=this.inner()[a];this.inner().removeAt(a);this.e(a,b)},item:function(a,b){if(arguments.length===2){this.inner()[a]=b;return b}else{return this.inner()[a]}},add:function(a){this.inner().add(a);this.d(this.inner().length-1,a)},clear:function(){this.inner().clear();this.c()},contains:function(a){return this.inner().contains(a)},copyTo:function(a,b){throw new $.ig.NotImplementedException},count:function(){return this.inner().length},isReadOnly:function(){return false},remove:function(a){var b=this.inner().indexOf(a);if(b>=0){this.inner().removeAt(b);this.e(b,a);return true}return false},b:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:0,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$state=1;break;case 1:this.$a=0;this.$state=5;break;case 2:this.$current=this.$this.inner()[this.$a];this.$state=3;return true;case 3:this.$state=4;break;case 4:this.$a++;this.$state=5;break;case 5:if(this.$a<this.$this.inner().length){this.$state=2}else{this.$state=6}break;case 6:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1(this.$t,$iter)},getEnumerator:function(){return this.b().getEnumerator()},d:function(a,b){if(this.collectionChanged!=null){var c=new $.ig.NotifyCollectionChangedEventArgs(1,$.ig.NotifyCollectionChangedAction.prototype.add,b,a);this.collectionChanged(this,c)}},e:function(a,b){if(this.collectionChanged!=null){var c=new $.ig.NotifyCollectionChangedEventArgs(1,$.ig.NotifyCollectionChangedAction.prototype.remove,b,a);this.collectionChanged(this,c)}},c:function(){if(this.collectionChanged!=null){var a=new $.ig.NotifyCollectionChangedEventArgs(1,$.ig.NotifyCollectionChangedAction.prototype.reset,null,-1);this.collectionChanged(this,a)}},$type:new $.ig.Type("ArrayListCollection$1",$.ig.Object.prototype.$type,[$.ig.IList$1.prototype.$type.specialize(0),$.ig.INotifyCollectionChanged.prototype.$type])},true);$.ig.util.defType("IOlapDataSource","Object",{$type:new $.ig.Type("IOlapDataSource",null)},true);$.ig.util.defType("MeasureList","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_name:null,name:function(value){if(arguments.length===1){this._name=value;return value}else{return this._name}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},uniqueName:function(a){if(arguments.length===1){this.name(a);return a}else{return this.name()}},_measures:null,measures:function(value){if(arguments.length===1){this._measures=value;return value}else{return this._measures}},$type:new $.ig.Type("MeasureList",$.ig.Object.prototype.$type,[$.ig.ICoreOlapElement.prototype.$type])},true);$.ig.util.defType("OlapMetadataTreeItem","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_item:null,item:function(value){if(arguments.length===1){this._item=value;return value}else{return this._item}},_type:null,type:function(value){if(arguments.length===1){this._type=value;return value}else{return this._type}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_children:null,children:function(value){if(arguments.length===1){this._children=value;return value}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.Array.prototype.copy(this.children(),0,b,0,this.children().length);b[this.children().length]=a;this.children(b)},$type:new $.ig.Type("OlapMetadataTreeItem",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapDataSource","Object",{ac:null,ab:null,ag:0,j:null,g:null,init:function(a){var $self=this;this.ac=new $.ig.List$1($.ig.PositionInfo.prototype.$type,0);this.ab=new $.ig.List$1($.ig.PositionInfo.prototype.$type,0);this.af=new $.ig.List$1(String,0);$.ig.Object.prototype.init.call(this);this.u(new $.ig.List$1($.ig.AxisElement.prototype.$type,0));this.w(new $.ig.List$1($.ig.AxisElement.prototype.$type,0));this.v(new $.ig.List$1($.ig.AxisElement.prototype.$type,0));this.o(false);this.al(null);this.t(false);this.aj(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 $.ig.ArrayListCollection$1($.ig.Catalog.prototype.$type));this.cubes(new $.ig.ArrayListCollection$1($.ig.Cube.prototype.$type));this.measureGroups(new $.ig.ArrayListCollection$1($.ig.MeasureGroup.prototype.$type));this.rowAxis(new $.ig.ArrayListCollection$1($.ig.ICoreOlapElement.prototype.$type));this.columnAxis(new $.ig.ArrayListCollection$1($.ig.ICoreOlapElement.prototype.$type));this.filters(new $.ig.ArrayListCollection$1($.ig.Hierarchy.prototype.$type));this.measures(new $.ig.ArrayListCollection$1($.ig.Measure.prototype.$type));this.measureListLocation($.ig.MeasureListLocation.prototype.columns);this.measureListIndex(-1);this.sourceOptions(a);this.result(function(){var $ret=new $.ig.OlapResult;$ret.isEmpty(true);return $ret}())},_isInitialized:false,isInitialized:function(value){if(arguments.length===1){this._isInitialized=value;return value}else{return this._isInitialized}},_catalogs:null,catalogs:function(value){if(arguments.length===1){this._catalogs=value;return value}else{return this._catalogs}},_cubes:null,cubes:function(value){if(arguments.length===1){this._cubes=value;return value}else{return this._cubes}},_cube:null,cube:function(value){if(arguments.length===1){this._cube=value;return value}else{return this._cube}},_measureGroup:null,measureGroup:function(value){if(arguments.length===1){this._measureGroup=value;return value}else{return this._measureGroup}},_measureGroups:null,measureGroups:function(value){if(arguments.length===1){this._measureGroups=value;return value}else{return this._measureGroups}},_sourceOptions:null,sourceOptions:function(value){if(arguments.length===1){this._sourceOptions=value;return value}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(value){if(arguments.length===1){this._metadataTree=value;return value}else{return this._metadataTree}},_rowAxis:null,rowAxis:function(value){if(arguments.length===1){this._rowAxis=value;return value}else{return this._rowAxis}},_columnAxis:null,columnAxis:function(value){if(arguments.length===1){this._columnAxis=value;return value}else{return this._columnAxis}},_filters:null,filters:function(value){if(arguments.length===1){this._filters=value;return value}else{return this._filters}},_measures:null,measures:function(value){if(arguments.length===1){this._measures=value;return value}else{return this._measures}},measureListIndex:function(a){if(arguments.length===1){if(this.ag!=a){this.p(true);
this.ag=a;this.az();this.p(false)}return a}else{return this.ag}},measureListLocation:function(a){if(arguments.length===1){if(this.j!=a){this.ax();this.j=a;this.az()}return a}else{return this.j}},_result:null,result:function(value){if(arguments.length===1){this._result=value;return value}else{return this._result}},_l:null,l:function(value){if(arguments.length===1){this._l=value;return value}else{return this._l}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_u:null,u:function(value){if(arguments.length===1){this._u=value;return value}else{return this._u}},_w:null,w:function(value){if(arguments.length===1){this._w=value;return value}else{return this._w}},_v:null,v:function(value){if(arguments.length===1){this._v=value;return value}else{return this._v}},af:null,_o:false,o:function(value){if(arguments.length===1){this._o=value;return value}else{return this._o}},_al:null,al:function(value){if(arguments.length===1){this._al=value;return value}else{return this._al}},_t:false,t:function(value){if(arguments.length===1){this._t=value;return value}else{return this._t}},_aj:null,aj:function(value){if(arguments.length===1){this._aj=value;return value}else{return this._aj}},_m:false,m:function(value){if(arguments.length===1){this._m=value;return value}else{return this._m}},_s:false,s:function(value){if(arguments.length===1){this._s=value;return value}else{return this._s}},_n:false,n:function(value){if(arguments.length===1){this._n=value;return value}else{return this._n}},_r:false,r:function(value){if(arguments.length===1){this._r=value;return value}else{return this._r}},_q:false,q:function(value){if(arguments.length===1){this._q=value;return value}else{return this._q}},_p:false,p:function(value){if(arguments.length===1){this._p=value;return value}else{return this._p}},getMembersOfLevel:function(a){},getMembersOfHierarchy:function(a){},getMembersOfMember:function(a){},setCube:function(a){if(!this.isInitialized()){throw new $.ig.InvalidOperationException(1,"Data source is not initialized.")}return this.an(a)},setMeasureGroup:function(a){if(!this.isInitialized()){throw new $.ig.InvalidOperationException(1,"Data source is not initialized.")}return this.ao(a)},getCoreElement:function(a,b){if(b==$.ig.MeasureList.prototype.$type){var c;if(this.measureListLocation()==$.ig.MeasureListLocation.prototype.columns){c=this.columnAxis()}else{c=this.rowAxis()}var d=null;var f=c.getEnumerator();while(f.moveNext()){var e=f.current();d=$.ig.util.cast($.ig.MeasureList.prototype.$type,e);if(d!=null){break}}return d}else{return this.getCoreElements(a,b).firstOrDefault$1($.ig.ICoreOlapElement.prototype.$type)}},getCoreElements:function(a,b){var $self=this;if(b==$.ig.Dimension.prototype.$type){return $self.a($.ig.Dimension.prototype.$type,$self.c().n().where$1($.ig.Dimension.prototype.$type,function(c){return a(c)}))}if(b==$.ig.Hierarchy.prototype.$type){return $self.a($.ig.Hierarchy.prototype.$type,$self.c().o().where$1($.ig.Hierarchy.prototype.$type,function(c){return a(c)}))}if(b==$.ig.Level.prototype.$type){return $self.a($.ig.Level.prototype.$type,$self.c().r().where$1($.ig.Level.prototype.$type,function(c){return a(c)}))}if(b==$.ig.Measure.prototype.$type){return $self.a($.ig.Measure.prototype.$type,$self.c().s().where$1($.ig.Measure.prototype.$type,function(c){return a(c)}))}if(b==$.ig.KpiMeasure.prototype.$type){return $self.a($.ig.KpiMeasure.prototype.$type,$self.c().q().where$1($.ig.KpiMeasure.prototype.$type,function(c){return a(c)}))}if(b==$.ig.Kpi.prototype.$type){return $self.a($.ig.Kpi.prototype.$type,$self.c().p().where$1($.ig.Kpi.prototype.$type,function(c){return a(c)}))}throw new $.ig.NotSupportedException(0,"Supported types are Dimension, Hierarchy, Level and Measure")},expandTupleMember:function(a,b,c){var $self=this;var d=$self.d(a,$self.result());if(d==null){throw new $.ig.InvalidOperationException(1,"No axis found for the specified index.")}var e=$self.ac.where$1($.ig.PositionInfo.prototype.$type,function(f){return f.c()==a&&f.b()==b&&f.a()==c}).firstOrDefault$1($.ig.PositionInfo.prototype.$type);if(e==null){e=function(){var $ret=new $.ig.PositionInfo;$ret.c(a);$ret.a(c);$ret.b(b);return $ret}();$self.ac.add(e)}else{$self.ac.remove(e)}},collapseTupleMember:function(a,b,c){var $self=this;var d=$self.d(a,$self.result());if(d==null){throw new $.ig.InvalidOperationException(1,"No axis found for the specified index.")}var e=$self.ac.where$1($.ig.PositionInfo.prototype.$type,function(f){return f.c()==a&&f.b()==b&&f.a()==c}).firstOrDefault$1($.ig.PositionInfo.prototype.$type);if(e==null){e=function(){var $ret=new $.ig.PositionInfo;$ret.c(a);$ret.a(c);$ret.b(b);return $ret}();$self.ab.add(e)}else{$self.ac.remove(e)}},clearPendingChanges:function(){this.ab.clear();this.ac.clear()},update:function(){var $self=this;if($self.t()){return $self.aj()}$self.t(true);if($self.ac.count()>0){var a=$self.as($self.ac);$self.aj(a.continueWithTask$1($.ig.OlapResult.prototype.$type,function(b){return $self.ai()}))}else{$self.aj($self.ai())}var b=$self.aj();$self.aj().i(function(c){$self.t(false);$self.aj(null)});return b},initialize:function(){var $self=this;if($self.o()){return $self.al()}$self.o(true);$self.al($self.am());var a=$self.al();$self.al().i(function(b){$self.o(false);$self.al(null)});return a},addFilterMember:function(a,b){var $self=this;var c;var d=function(){var $ret=$self.b(a,c);c=$ret.filtersCollection;return $ret.ret}();if(d==null){d=new $.ig.AxisElement(a,function(){var $ret=new $.ig.ArrayListCollection$1(String);$ret.add(b);return $ret}());c.add(d)}else{if(!d.a().contains(b)){d.a().add(b);if($self.af.contains(b)){$self.af.remove(b)}else{$self.af.add(b)}}}},getFilterMemberNames:function(a){var $self=this;var b;var c=function(){var $ret=$self.b(a,b);b=$ret.filtersCollection;return $ret.ret}();if(c!=null){return $self.a(String,c.a())}return new $.ig.ArrayListCollection$1(String)},removeFilterMember:function(a,b){var $self=this;var c;var d=function(){var $ret=$self.b(a,c);c=$ret.filtersCollection;return $ret.ret}();if(d==null){return}if(d.a().remove(b)){if($self.af.contains(b)){$self.af.remove(b)}else{$self.af.add(b)}}},removeAllFilterMembers:function(a){var $self=this;var b;var c=function(){var $ret=$self.b(a,b);b=$ret.filtersCollection;return $ret.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($self.af.contains(e)){$self.af.remove(e)}else{$self.af.add(e)}}},getProviderDefaultProperties:function(){var a=new $.ig.List$1($.ig.KeyValueItem.prototype.$type,0);return a},getProviderDefaultRestrictions:function(){var a=new $.ig.List$1($.ig.KeyValueItem.prototype.$type,0);return a},tryGetMember:function(a,b){var $self=this;return{ret:function(){var $ret=$self.c().f(a,b);b=$ret.member;return $ret.ret}(),member:b};return{member:b}},tryGetMembersForLevel:function(a,b){var $self=this;return{ret:function(){var $ret=$self.c().h(a,b);b=$ret.members;return $ret.ret}(),members:b};return{members:b}},am:function(){},ai:function(){},h:function(){},ah:function(){},an:function(a){var $self=this;if(String.isNullOrEmpty(a)){if(a==null){throw new $.ig.ArgumentNullException("cubeName")}throw new $.ig.InvalidOperationException(1,"cubeName cannot be empty.")}var b=new $.ig.TaskCompletionSource$1($.ig.OlapMetadataTreeItem.prototype.$type,0);if($self.cube()!=null){if($self.cube().name()==a){b.e($self.metadataTree());return b.b()}$self.au()}var d=$self.cubes().getEnumerator();while(d.moveNext()){var c=d.current();if(c.name()==a){$self.cube(c);break}}var e=$self.ah();if(!$self.isInitialized()){var f=$self.sourceOptions().measureGroup();if(!String.isNullOrEmpty(f)){return e.continueWithTask$1($.ig.OlapMetadataTreeItem.prototype.$type,function(g){return $self.ao(f)})}}return e.continueWithTask$1($.ig.OlapMetadataTreeItem.prototype.$type,function(g){return $self.ao(null)})},ak:function(){var $self=this;var a=null;var b=null;var c=null;var d=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);if(!String.isNullOrEmpty($self.sourceOptions().columns())){var e=new $.ig.AxisDefinitionParser($self.sourceOptions().columns());a=e.c()}if(!String.isNullOrEmpty($self.sourceOptions().rows())){var f=new $.ig.AxisDefinitionParser($self.sourceOptions().rows());b=f.c()}if(!String.isNullOrEmpty($self.sourceOptions().filters())){var g=new $.ig.AxisDefinitionParser($self.sourceOptions().filters());c=g.c()}if(a!=null&&a.count()>0){var i=a.getEnumerator();while(i.moveNext()){var h=i.current();$self.at($.ig.ICoreOlapElement.prototype.$type,h.b(),$self.columnAxis(),$.ig.Hierarchy.prototype.$type);$self.u().add(h);if(h.a().count()>0){d.add(h);var k=h.a().getEnumerator();while(k.moveNext()){var j=k.current();$self.af.add(j)}}}}if(b!=null&&b.count()>0){var m=b.getEnumerator();while(m.moveNext()){var l=m.current();$self.at($.ig.ICoreOlapElement.prototype.$type,l.b(),$self.rowAxis(),$.ig.Hierarchy.prototype.$type);$self.w().add(l);if(l.a().count()>0){d.add(l);var o=l.a().getEnumerator();while(o.moveNext()){var n=o.current();$self.af.add(n)}}}}if(c!=null&&c.count()>0){var q=c.getEnumerator();while(q.moveNext()){var p=q.current();$self.at($.ig.Hierarchy.prototype.$type,p.b(),$self.filters(),$.ig.Hierarchy.prototype.$type);$self.v().add(p);if(p.a().count()>0){d.add(p);var s=p.a().getEnumerator();while(s.moveNext()){var r=s.current();$self.af.add(r)}}}}var t=null;if(!String.isNullOrEmpty($self.sourceOptions().measures())){var u=new $.ig.AxisDefinitionParser($self.sourceOptions().measures());t=u.c()}if(t!=null&&t.count()>0){var w=t.getEnumerator();while(w.moveNext()){var v=w.current();$self.at($.ig.Measure.prototype.$type,v.b(),$self.measures(),$.ig.Measure.prototype.$type)}}if($self.m()||$self.s()||$self.n()||$self.r()||$self.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]=$self.getMembersOfHierarchy(z)}var aa=new $.ig.TaskCompletionSource$1($.ig.OlapMetadataTreeItem.prototype.$type,0);var ab=new $.ig.TaskFactory;ab.c(x,function(ac){$self.ai().i(function(ad){$self.aw();aa.e($self.metadataTree())})});return aa.b()}return $self.ai().continueWithTask$1($.ig.OlapMetadataTreeItem.prototype.$type,function(ac){$self.aw();var ad=new $.ig.TaskCompletionSource$1($.ig.OlapMetadataTreeItem.prototype.$type,0);ad.e($self.metadataTree());return ad.b()})}$self.aw();var ac=new $.ig.TaskCompletionSource$1($.ig.OlapMetadataTreeItem.prototype.$type,0);ac.e($self.metadataTree());return ac.b()},aq:function(a){var $self=this;var b=$self.dataProviderFactory().createDataProvider();var c=$self.getProviderDefaultRestrictions();var d=$self.getProviderDefaultProperties();var e=b.discoverCubesAsync(d,c).j($.ig.IList$1.prototype.$type.specialize($.ig.Cube.prototype.$type),function(f){$self.cubes($self.a($.ig.Cube.prototype.$type,f.m()));return $self.cubes()});return e},ar:function(){var $self=this;var a=$self.dataProviderFactory().createDataProvider();var b=$self.getProviderDefaultRestrictions();var c=$self.getProviderDefaultProperties();var d=a.discoverMeasureGroupsAsync(c,b).j($.ig.IList$1.prototype.$type.specialize($.ig.MeasureGroup.prototype.$type),function(e){$self.measureGroups($self.a($.ig.MeasureGroup.prototype.$type,e.m()));return $self.measureGroups()});return d},aw:function(){this.isInitialized(true)},au:function(){this.cube(null);this.measureGroups(new $.ig.ArrayListCollection$1($.ig.MeasureGroup.prototype.$type));this.filters().clear();this.rowAxis().clear();this.columnAxis().clear();this.measures().clear();this.c(null);this.av()},av:function(){this.measureGroup(null);this.metadataTree(null)},ao:function(a){var $self=this;if($self.cube()==null){throw new $.ig.InvalidOperationException(1,"Data source has no Cube set.")}var b=new $.ig.TaskCompletionSource$1($.ig.OlapMetadataTreeItem.prototype.$type,0);if($self.measureGroup()!=null){if($self.measureGroup().name()==a){b.e($self.metadataTree());return b.b()}$self.av()}if(!String.isNullOrEmpty(a)&&$self.measureGroups().count()==0){var c=$self.ar().continueWithTask$1($.ig.OlapMetadataTreeItem.prototype.$type,function(d){if($self.measureGroups().count()==0){return $self.ao(null)}return $self.ao(a)});return c}var e=$self.measureGroups().getEnumerator();while(e.moveNext()){var d=e.current();if(d.name()==a){$self.measureGroup(d);break}}$self.metadataTree($self.k(a));b.e($self.metadataTree());return b.b()},k:function(a){var $self=this;var b=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.cube);$ret.caption($self.cube().caption());$ret.item($self.cube());return $ret}();var c;var d;var e;var f=true;if(String.isNullOrEmpty(a)||$self.measureGroups()==null){c=$self.c().n();d=$self.c().s();e=$self.c().p()}else{f=false;c=$self.c().a().getMeasureGroupDimensions(a);d=$self.c().a().getMeasureGroupMeasures(a);e=$self.c().a().getMeasureGroupKpis(a)}var g=$.ig.MetaTreeHelper.prototype.getDimensionMetaItems(c,d,e,$self.c().o(),$self.c().r(),f,$self.c());$.ig.MetaTreeHelper.prototype.setMetaItemChildren(b,g);return b},d:function(a,b){var $self=this;if(b!=null&&b.axes().count()>0){return b.axes().where$1($.ig.OlapResultAxis.prototype.$type,function(c){return c.name()==a}).firstOrDefault$1($.ig.OlapResultAxis.prototype.$type)}return null},ay:function(a,b){var $self=this;switch(a.action()){case $.ig.NotifyCollectionChangedAction.prototype.add:var d=a.newItems().getEnumerator();while(d.moveNext()){var c=d.current();var e=$.ig.util.cast($.ig.Hierarchy.prototype.$type,c);if(e!=null){if($self.isInitialized()){b.add(new $.ig.AxisElement(e.uniqueName(),new $.ig.ArrayListCollection$1(String)))}}}break;case $.ig.NotifyCollectionChangedAction.prototype.remove:var g=a.oldItems().getEnumerator();while(g.moveNext()){var f=g.current();var h=$.ig.util.cast($.ig.Hierarchy.prototype.$type,f);if(h!=null){var i=b.where$1($.ig.AxisElement.prototype.$type,function(j){return j.b()==h.uniqueName()}).firstOrDefault$1($.ig.AxisElement.prototype.$type);if(i!=null){var j=new $.ig.List$1(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);$self.removeFilterMember(i.b(),m)}b.remove(i)}}else{var n=$.ig.util.cast($.ig.MeasureList.prototype.$type,f);if(n!=null){if(!$self.r()&&!$self.q()&&!$self.p()){$self.measures().clear()}}}}break}},a0:function(a,b){var $self=this;switch(a.action()){case $.ig.NotifyCollectionChangedAction.prototype.add:var d=a.newItems().getEnumerator();while(d.moveNext()){var c=d.current();var e=$.ig.util.cast($.ig.Hierarchy.prototype.$type,c);if(e!=null){var f=$.ig.util.cast($.ig.MeasureList.prototype.$type,b.where$1($.ig.ICoreOlapElement.prototype.$type,function(g){return $.ig.util.cast($.ig.MeasureList.prototype.$type,g)!==null}).firstOrDefault$1($.ig.ICoreOlapElement.prototype.$type));if(f!=null&&$self.measureListIndex()>=a.newStartingIndex()){$self.measureListIndex($self.measureListIndex()+1)}}}break;case $.ig.NotifyCollectionChangedAction.prototype.remove:var h=a.oldItems().getEnumerator();while(h.moveNext()){var g=h.current();var i=$.ig.util.cast($.ig.Hierarchy.prototype.$type,g);if(i!=null){var j=$.ig.util.cast($.ig.MeasureList.prototype.$type,b.where$1($.ig.ICoreOlapElement.prototype.$type,function(k){return $.ig.util.cast($.ig.MeasureList.prototype.$type,k)!==null}).firstOrDefault$1($.ig.ICoreOlapElement.prototype.$type));if(j!=null&&$self.measureListIndex()>a.oldStartingIndex()){$self.measureListIndex($self.measureListIndex()-1)}}}break}},az:function(){var $self=this;var a;if($self.measureListLocation()==$.ig.MeasureListLocation.prototype.columns){a=$self.columnAxis()}else{a=$self.rowAxis()}var b=null;var c=0;var e=a.getEnumerator();while(e.moveNext()){var d=e.current();b=$.ig.util.cast($.ig.MeasureList.prototype.$type,d);if(b!=null){break}c++}if($self.measures().count()>1){if(b==null){b=function(){var $ret=new $.ig.MeasureList;$ret.measures($self.measures());return $ret}();if($self.measureListIndex()<0||$self.measureListIndex()>a.count()){$self.ag=a.count();a.add(b)}else{a.insert($self.measureListIndex(),b)}}else{if(c!=$self.measureListIndex()){a.removeAt(c);if($self.measureListIndex()>a.count()){$self.ag=a.count();a.add(b)}else{a.insert($self.measureListIndex(),b)}}}}else{if(b!=null){a.removeAt(c)}}},ae:function(){return this.ac},ad:function(){return this.ab},at:function($tItem,a,b,c){var $self=this;var d=function(e){return e.uniqueName()==a};var e=$self.getCoreElement(d,c);if(e!=null&&!b.contains($.ig.Object.prototype.$type,e)){b.add(e)}},as:function(a){var $self=this;var b=new $.ig.List$1(String,0);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();var e=$self.d(c.c(),$self.result()).tuples().__inner[c.b()].members().item(c.a());var f=$self.getCoreElement(function(g){return g.hierarchyUniqueName()==e.hierarchyUniqueName()&&g.depth()==e.levelNumber()+1},$.ig.Level.prototype.$type);if(f!=null&&!$self.c().b(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]=$self.getMembersOfLevel(b.item(h))}return(new $.ig.TaskFactory).d($.ig.Array.prototype.$type,g,function(i){return i})}var i=new $.ig.TaskCompletionSource$1($.ig.Array.prototype.$type,0);i.e(new Array(0));return i.b()},ax:function(){var a;if(this.measureListLocation()==$.ig.MeasureListLocation.prototype.columns){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=$.ig.util.cast($.ig.MeasureList.prototype.$type,d);if(b!=null){break}c++}if(b!=null){this.q(true);a.removeAt(c)}},a:function($t,a){var b=new $.ig.ArrayListCollection$1($t);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.add(c)}return b},b:function(a,b){var $self=this;var c=$self.u().where$1($.ig.AxisElement.prototype.$type,function(d){return d.b()==a}).firstOrDefault$1($.ig.AxisElement.prototype.$type);if(c!=null){b=$self.u();return{ret:c,filtersCollection:b}}c=$self.w().where$1($.ig.AxisElement.prototype.$type,function(d){return d.b()==a}).firstOrDefault$1($.ig.AxisElement.prototype.$type);if(c!=null){b=$self.w();return{ret:c,filtersCollection:b}}c=$self.v().where$1($.ig.AxisElement.prototype.$type,function(d){return d.b()==a}).firstOrDefault$1($.ig.AxisElement.prototype.$type);if(c!=null){b=$self.v();return{ret:c,filtersCollection:b}}b=null;return{ret:null,filtersCollection:b};return{filtersCollection:b}},$type:new $.ig.Type("OlapDataSource",$.ig.Object.prototype.$type,[$.ig.IOlapDataSource.prototype.$type])},true);$.ig.util.defType("PositionInfo","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_b:0,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:0,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("PositionInfo",$.ig.Object.prototype.$type)},true);$.ig.util.defType("CubeMetaItemsCache","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.m=new $.ig.Dictionary$2(String,$.ig.Tuple$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.Member.prototype.$type),0);this.i=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Member.prototype.$type,0);this.l=new $.ig.Dictionary$2(String,$.ig.IList$1.prototype.$type.specialize($.ig.Member.prototype.$type),0);this.k=new $.ig.Dictionary$2(String,$.ig.Measure.prototype.$type,0);this.j=new $.ig.Dictionary$2(String,$.ig.KpiMeasure.prototype.$type,0)},m:null,i:null,l:null,k:null,j:null,_s:null,s:function(value){if(arguments.length===1){this._s=value;return value}else{return this._s}},_q:null,q:function(value){if(arguments.length===1){this._q=value;return value}else{return this._q}},_n:null,n:function(value){if(arguments.length===1){this._n=value;return value}else{return this._n}},_o:null,o:function(value){if(arguments.length===1){this._o=value;return value}else{return this._o}},_r:null,r:function(value){if(arguments.length===1){this._r=value;return value}else{return this._r}},_p:null,p:function(value){if(arguments.length===1){this._p=value;return value}else{return this._p}},_t:null,t:function(value){if(arguments.length===1){this._t=value;return value}else{return this._t}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},b:function(a){return this.l.containsKey(a)},u:function(a){var $self=this;var b;if(!function(){var $ret=$self.m.tryGetValue(a.uniqueName(),b);b=$ret.value;return $ret.ret}()){var c=$self.m.count();b=new $.ig.Tuple$2($.ig.Number.prototype.$type,$.ig.Member.prototype.$type,c,a);$self.m.item(a.uniqueName(),b);$self.i.item(c,a);var d;if(!function(){var $ret=$self.l.tryGetValue(a.levelUniqueName(),d);d=$ret.value;return $ret.ret}()){d=new $.ig.ArrayListCollection$1($.ig.Member.prototype.$type);$self.l.item(a.levelUniqueName(),d)}d.add(a)}return b.a()},g:function(a,b){var $self=this;var c;if(function(){var $ret=$self.m.tryGetValue(a,c);c=$ret.value;return $ret.ret}()){b=c.a();return{ret:true,memberOrdinal:b}}b=-1;return{ret:false,memberOrdinal:b};return{memberOrdinal:b}},f:function(a,b){var $self=this;var c;if(function(){var $ret=$self.m.tryGetValue(a,c);c=$ret.value;return $ret.ret}()){b=c.b();return{ret:true,member:b}}b=null;return{ret:false,member:b};return{member:b}},e:function(a,b){var $self=this;return{ret:function(){var $ret=$self.i.tryGetValue(a,b);b=$ret.value;return $ret.ret}(),member:b};return{member:b}},h:function(a,b){var $self=this;return{ret:function(){var $ret=$self.l.tryGetValue(a,b);b=$ret.value;return $ret.ret}(),members:b};return{members:b}},d:function(a,b){var $self=this;if(!function(){var $ret=$self.k.tryGetValue(a,b);b=$ret.value;return $ret.ret}()){b=$self.s().where$1($.ig.Measure.prototype.$type,function(c){return c.uniqueName()==a}).firstOrDefault$1($.ig.Measure.prototype.$type);if(b==null){return{ret:false,measure:b}}$self.k.add(a,b)}return{ret:true,measure:b};return{measure:b}},c:function(a,b){var $self=this;if(!function(){var $ret=$self.j.tryGetValue(a,b);b=$ret.value;return $ret.ret}()){b=$self.q().where$1($.ig.KpiMeasure.prototype.$type,function(c){return c.uniqueName()==a}).firstOrDefault$1($.ig.KpiMeasure.prototype.$type);if(b==null){return{ret:false,measure:b}}$self.j.add(a,b)}return{ret:true,measure:b};return{measure:b}},$type:new $.ig.Type("CubeMetaItemsCache",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MetaTreeHelper","Object",{init:function(){$.ig.Object.prototype.init.call(this)},getDimensionMetaItems:function(a,b,c,d,e,f,g){var $self=this;var h=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0);var i=new $.ig.HierarchyItemPosition;i.a(0);i.b(0);var j=new $.ig.List$1($.ig.Hierarchy.prototype.$type,0);var l=d.getEnumerator();while(l.moveNext()){var k=l.current();j.add(k)}var m=new $.ig.List$1($.ig.Level.prototype.$type,0);var o=e.getEnumerator();while(o.moveNext()){var n=o.current();m.add(n)}var q=a.getEnumerator();while(q.moveNext()){var p=q.current();var r=$.ig.MetaTreeHelper.prototype.e(j,m,p,i);if(p.dimensionType()!=$.ig.DimensionType.prototype.measure){var s=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.dimension);$ret.caption(p.caption());$ret.item(p);return $ret}();$.ig.MetaTreeHelper.prototype.setMetaItemChildren(s,r);h.add(s)}else{var t=$.ig.MetaTreeHelper.prototype.b(b,p);h.insert(0,t);if(c.count$1($.ig.Kpi.prototype.$type)>0){var u=function(){var $ret=new $.ig.KpiDimension;$ret.caption("Kpis");return $ret}();var v=$.ig.MetaTreeHelper.prototype.a(c,u,g);v.type($.ig.OlapMetadataTreeItemType.prototype.kpiRoot);h.insert(1,v)}}}return h},setMetaItemChildren:function(a,b){if(b.count()>0){var c=new Array(b.count());for(var d=0;d<b.count();d++){c[d]=b.item(d)}a.children(c)}},e:function(a,b,c,d){var $self=this;var e=new $.ig.Dictionary$2(String,$.ig.Tuple$2.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type)),0);var f=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$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=$.ig.MetaTreeHelper.prototype.c(g.hierarchyDisplayFolder());for(var k=0;k<j.length;k++){var l=j[k];i+=l+"\\";var m;if(!function(){var $ret=e.tryGetValue(i,m);m=$ret.value;return $ret.ret}()){var n=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.group);$ret.caption(l);return $ret}();m=new $.ig.Tuple$2($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type),n,new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0));e.add(i,m);if(h!=null){h.b().add(n)}else{f.add(n)}}h=m}}var o;switch(g.hierarchyOrigin()){case $.ig.HierarchyOrigin.prototype.systemEnabled:o=$.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy;break;case $.ig.HierarchyOrigin.prototype.userDefined:o=$.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy;break;default:o=$.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy;break}var p=$.ig.MetaTreeHelper.prototype.f(b,g,d);var q=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type(o);$ret.caption(g.caption());$ret.item(g);return $ret}();$.ig.MetaTreeHelper.prototype.setMetaItemChildren(q,p);if(h!=null){h.b().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.a();$.ig.MetaTreeHelper.prototype.setMetaItemChildren(t,r.b())}return f},f:function(a,b,c){var $self=this;var d=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$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=$.ig.OlapMetadataTreeItemType.prototype.level1;break;case 2:f=$.ig.OlapMetadataTreeItemType.prototype.level2;break;case 3:f=$.ig.OlapMetadataTreeItemType.prototype.level3;break;case 4:f=$.ig.OlapMetadataTreeItemType.prototype.level4;break;default:f=$.ig.OlapMetadataTreeItemType.prototype.level5;break}var g=function(){var $ret=new $.ig.OlapMetadataTreeItem;$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},b:function(a,b){var $self=this;var c=new $.ig.Dictionary$2(String,$.ig.Tuple$2.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type)),0);var d=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.measure);$ret.caption(b.caption());$ret.item(b);return $ret}();var e=new $.ig.Tuple$2($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type),d,new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0));var g=a.getEnumerator();while(g.moveNext()){var f=g.current();if($.ig.util.cast($.ig.KpiMeasure.prototype.$type,f)!==null){continue}var h=e;if(!String.isNullOrEmpty(f.measureGroupName())){if(!function(){var $ret=c.tryGetValue(f.measureGroupName(),h);h=$ret.value;return $ret.ret}()){var i=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.group);$ret.caption(f.measureGroupName());return $ret}();h=new $.ig.Tuple$2($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type),i,new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0));c.add(f.measureGroupName(),h);e.b().add(h.a())}}var j=h;if(!String.isNullOrEmpty(f.measureDisplayFolder())){var k=f.measureGroupName();var l=$.ig.MetaTreeHelper.prototype.c(f.measureDisplayFolder());for(var m=0;m<l.length;m++){var n=l[m];k+="\\"+n;var o;if(!function(){var $ret=c.tryGetValue(k,o);o=$ret.value;return $ret.ret}()){var p=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.group);$ret.caption(n);return $ret}();o=new $.ig.Tuple$2($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type),p,new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0));c.add(k,o);j.b().add(p)}j=o}}var q=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.measure);$ret.caption(f.caption());$ret.item(f);return $ret}();j.b().add(q)}var r=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0);var t=e.b().where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(u){return u.type()==$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(u){return u.caption()}).getEnumerator();while(t.moveNext()){var s=t.current();r.add(s)}var v=e.b().where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(w){return w.type()!=$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(w){return w.caption()}).getEnumerator();while(v.moveNext()){var u=v.current();r.add(u)}$.ig.MetaTreeHelper.prototype.setMetaItemChildren(d,r);var x=c.values().getEnumerator();while(x.moveNext()){var w=x.current();var y=w.b();var z=y.where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(aa){return aa.type()==$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(aa){return aa.caption()}).toList$1($.ig.OlapMetadataTreeItem.prototype.$type);var aa=y.where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(ab){return ab.type()!=$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(ab){return ab.caption()}).toList$1($.ig.OlapMetadataTreeItem.prototype.$type);var ab=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0);for(var ac=0;ac<z.count();ac++){ab.add(z.item(ac))}for(var ad=0;ad<aa.count();ad++){ab.add(aa.item(ad))}var ae=w.a();$.ig.MetaTreeHelper.prototype.setMetaItemChildren(ae,ab)}return d},a:function(a,b,c){var $self=this;var d=new $.ig.Dictionary$2(String,$.ig.Tuple$2.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type)),0);var e=c.s().toList$1($.ig.Measure.prototype.$type);c.s(e);var f=new $.ig.List$1($.ig.KpiMeasure.prototype.$type,0);c.q(f);var g=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.kpiRoot);$ret.caption(b.caption());$ret.item(b);return $ret}();var h=new $.ig.Tuple$2($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type),g,new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$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=$.ig.MetaTreeHelper.prototype.c(i.kpiDisplayFolder());for(var n=0;n<m.length;n++){var o=m[n];l+="\\"+o;var p;if(!function(){var $ret=d.tryGetValue(l,p);p=$ret.value;return $ret.ret}()){var q=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.group);$ret.caption(o);return $ret}();p=new $.ig.Tuple$2($.ig.OlapMetadataTreeItem.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.OlapMetadataTreeItem.prototype.$type),q,new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0));d.add(l,p);k.b().add(q)}k=p}}var r=function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.type($.ig.OlapMetadataTreeItemType.prototype.kpi);$ret.caption(i.caption());$ret.item(i);return $ret}();if(!String.isNullOrEmpty(i.kpiValue())){var s=null;
var t=$.ig.OlapMetadataTreeItemType.prototype.measure;var u="Value";if(!function(){var $ret=c.d(i.kpiValue(),s);s=$ret.measure;return $ret.ret}()){t=$.ig.OlapMetadataTreeItemType.prototype.kpiValue;s=$.ig.KpiMeasure.prototype.createKpiValueMeasure(i);e.add(s);f.add(s)}else{u+=" ("+s.caption()+")"}r.e(function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.caption(u);$ret.item(s);$ret.type(t);return $ret}())}if(!String.isNullOrEmpty(i.kpiGoal())){var v=null;var w=$.ig.OlapMetadataTreeItemType.prototype.measure;var x="Goal";if(!function(){var $ret=c.d(i.kpiGoal(),v);v=$ret.measure;return $ret.ret}()){w=$.ig.OlapMetadataTreeItemType.prototype.kpiGoal;v=$.ig.KpiMeasure.prototype.createKpiGoalMeasure(i);e.add(v);f.add(v)}else{x+=" ("+v.caption()+")"}r.e(function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.caption(x);$ret.item(v);$ret.type(w);return $ret}())}if(!String.isNullOrEmpty(i.kpiStatus())){var y=$.ig.KpiMeasure.prototype.createKpiStatusMeasure(i);e.add(y);f.add(y);r.e(function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.caption("Status");$ret.item(y);$ret.type($.ig.OlapMetadataTreeItemType.prototype.kpiStatus);return $ret}())}if(!String.isNullOrEmpty(i.kpiTrend())){var z=$.ig.KpiMeasure.prototype.createKpiTrendMeasure(i);e.add(z);f.add(z);r.e(function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.caption("Trend");$ret.item(z);$ret.type($.ig.OlapMetadataTreeItemType.prototype.kpiTrend);return $ret}())}if(!String.isNullOrEmpty(i.kpiWeight())){var aa=$.ig.KpiMeasure.prototype.createKpiWeightMeasure(i);e.add(aa);f.add(aa);r.e(function(){var $ret=new $.ig.OlapMetadataTreeItem;$ret.caption("Weight");$ret.item(aa);$ret.type($.ig.OlapMetadataTreeItemType.prototype.kpiWeight);return $ret}())}k.b().add(r)}var ab=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$type,0);var ad=h.b().where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(ae){return ae.type()==$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(ae){return ae.caption()}).getEnumerator();while(ad.moveNext()){var ac=ad.current();ab.add(ac)}var af=h.b().where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(ag){return ag.type()!=$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(ag){return ag.caption()}).getEnumerator();while(af.moveNext()){var ae=af.current();ab.add(ae)}$.ig.MetaTreeHelper.prototype.setMetaItemChildren(g,ab);var ah=d.values().getEnumerator();while(ah.moveNext()){var ag=ah.current();var ai=ag.b();var aj=ai.where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(ak){return ak.type()==$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(ak){return ak.caption()}).toList$1($.ig.OlapMetadataTreeItem.prototype.$type);var ak=ai.where$1($.ig.OlapMetadataTreeItem.prototype.$type,function(al){return al.type()!=$.ig.OlapMetadataTreeItemType.prototype.group}).orderBy$2($.ig.OlapMetadataTreeItem.prototype.$type,String,function(al){return al.caption()}).toList$1($.ig.OlapMetadataTreeItem.prototype.$type);var al=new $.ig.List$1($.ig.OlapMetadataTreeItem.prototype.$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.a();$.ig.MetaTreeHelper.prototype.setMetaItemChildren(ao,al)}return g},c:function(a){var b=a.split("\\");return b},$type:new $.ig.Type("MetaTreeHelper",$.ig.Object.prototype.$type)},true);$.ig.util.defType("HierarchyItemPosition","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_a:0,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_b:0,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},$type:new $.ig.Type("HierarchyItemPosition",$.ig.Object.prototype.$type)},true);$.ig.util.defType("DataSourceBaseOptions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_cube:null,cube:function(value){if(arguments.length===1){this._cube=value;return value}else{return this._cube}},_measureGroup:null,measureGroup:function(value){if(arguments.length===1){this._measureGroup=value;return value}else{return this._measureGroup}},_measures:null,measures:function(value){if(arguments.length===1){this._measures=value;return value}else{return this._measures}},_filters:null,filters:function(value){if(arguments.length===1){this._filters=value;return value}else{return this._filters}},_columns:null,columns:function(value){if(arguments.length===1){this._columns=value;return value}else{return this._columns}},_rows:null,rows:function(value){if(arguments.length===1){this._rows=value;return value}else{return this._rows}},$type:new $.ig.Type("DataSourceBaseOptions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("AxisDefinitionParser","Object",{init:function(a){$.ig.Object.prototype.init.call(this);this.d(-1);this.k(a)},_a:false,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},_d:0,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_k:null,k:function(value){if(arguments.length===1){this._k=value;return value}else{return this._k}},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 $.ig.AxisDefinitionParser.prototype.e:if(a==-1){a=this.d()}break;case $.ig.AxisDefinitionParser.prototype.f:b=this.d();while(this.d()+1<this.k().length){d=this.k().substr(this.d()+1,1);switch(d){case $.ig.AxisDefinitionParser.prototype.f:b=this.d()+1;break;case $.ig.AxisDefinitionParser.prototype.h:if($.ig.AxisDefinitionParser.prototype.f==this.k().substr(this.d(),1)){c=true}break;case $.ig.AxisDefinitionParser.prototype.i:case $.ig.AxisDefinitionParser.prototype.j:c=true;break}if(c){break}this.d(this.d()+1)}c=true;break;case $.ig.AxisDefinitionParser.prototype.h:c=true;break;case $.ig.AxisDefinitionParser.prototype.i:this.a(true);break;case $.ig.AxisDefinitionParser.prototype.j:$.ig.Debug.prototype.a(this.a());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 $.ig.List$1($.ig.AxisElement.prototype.$type,0);var b=null;while(this.b()){if(!this.a()){b=new $.ig.ArrayListCollection$1(String);var c=new $.ig.AxisElement(this.g(),b);a.add(c)}else if(b!=null){b.add(this.g())}}return a},$type:new $.ig.Type("AxisDefinitionParser",$.ig.Object.prototype.$type)},true);$.ig.util.defType("CoreOlapElementParser","Object",{init:function(a){$.ig.Object.prototype.init.call(this);this.c(-1);this.h(a)},_f:null,f:function(value){if(arguments.length===1){this._f=value;return value}else{return this._f}},_c:0,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_h:null,h:function(value){if(arguments.length===1){this._h=value;return value}else{return this._h}},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 $.ig.CoreOlapElementParser.prototype.d:if(a==-1){a=this.c()}break;case $.ig.CoreOlapElementParser.prototype.e:b=this.c();while(this.c()+1<this.h().length){d=this.h().substr(this.c()+1,1);switch(d){case $.ig.CoreOlapElementParser.prototype.e:b=this.c()+1;break;case $.ig.CoreOlapElementParser.prototype.g:c=true;break}if(c){break}this.c(this.c()+1)}break;case $.ig.CoreOlapElementParser.prototype.g: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 $.ig.List$1(String,0);while(this.a()){a.add(this.f())}return a},$type:new $.ig.Type("CoreOlapElementParser",$.ig.Object.prototype.$type)},true);$.ig.util.defType("KeyValueItem","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},$type:new $.ig.Type("KeyValueItem",$.ig.Object.prototype.$type)},true);$.ig.util.defType("AxisElement","Object",{init:function(a,b){$.ig.Object.prototype.init.call(this);this.b(a);this.a(b)},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("AxisElement",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureGroupMetaItemsCache","Object",{a:null,c:null,b:null,j:null,d:null,h:null,f:null,init:function(a,b,c,d){$.ig.Object.prototype.init.call(this);this.a=new $.ig.Dictionary$2(String,$.ig.IEnumerable$1.prototype.$type.specialize($.ig.Dimension.prototype.$type),0);this.c=new $.ig.Dictionary$2(String,$.ig.IEnumerable$1.prototype.$type.specialize($.ig.Measure.prototype.$type),0);this.b=new $.ig.Dictionary$2(String,$.ig.IEnumerable$1.prototype.$type.specialize($.ig.Kpi.prototype.$type),0);this.j=d;this.d=a;this.h=b;this.f=c},getMeasureGroupDimensions:function(a){var $self=this;var b;if(!function(){var $ret=$self.a.tryGetValue(a,b);b=$ret.value;return $ret.ret}()){var c=new $.ig.List$1(String,0);var e=$self.j.getEnumerator();while(e.moveNext()){var d=e.current();if(d.measureGroupName()==a){c.add(d.dimensionUniqueName())}}var f=new $.ig.List$1($.ig.Dimension.prototype.$type,0);var h=$self.d.getEnumerator();while(h.moveNext()){var g=h.current();if(c.contains(g.uniqueName())||g.dimensionType()==$.ig.DimensionType.prototype.measure){f.add(g)}}$self.a.add(a,f);b=f}return b},getMeasureGroupMeasures:function(a){var $self=this;var b;if(!function(){var $ret=$self.c.tryGetValue(a,b);b=$ret.value;return $ret.ret}()){var c=new $.ig.List$1($.ig.Measure.prototype.$type,0);var e=$self.h.getEnumerator();while(e.moveNext()){var d=e.current();if(d.measureGroupName()==a){c.add(d)}}$self.c.add(a,c);b=c}return b},getMeasureGroupKpis:function(a){var $self=this;var b;if(!function(){var $ret=$self.b.tryGetValue(a,b);b=$ret.value;return $ret.ret}()){var c=new $.ig.List$1($.ig.Kpi.prototype.$type,0);var e=$self.f.getEnumerator();while(e.moveNext()){var d=e.current();if(d.measureGroupName()==a){c.add(d)}}$self.b.add(a,c);b=c}return b},$type:new $.ig.Type("MeasureGroupMetaItemsCache",$.ig.Object.prototype.$type)},true);$.ig.util.defType("PositionItemInfo$2","Dictionary$2",{$tKey:null,$tSortKey:null,init:function($tKey,$tSortKey,a,b,c,d){this.q=new $.ig.Dictionary$2(this.$tKey,$.ig.Object.prototype.$type,0);this.$tKey=$tKey;this.$tSortKey=$tSortKey;this.$type=this.$type.specialize(this.$tKey,this.$tSortKey);$.ig.Dictionary$2.prototype.init.call(this,this.$tKey,$.ig.PositionItemInfo$2.prototype.$type.specialize(this.$tKey,this.$tSortKey));this.positionItem(a);this.positionIndex(b);this.positionItemIndex(c);this.positionItemDepth(0);this.positionItemDepthMin(-1);this.positionItemDepthMax(Number.MAX_VALUE);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())}},l:function(a,b,c,d){return new $.ig.PositionItemInfo$2(this.$tKey,this.$tSortKey,a,b,c,d)},_positionItemDepthMin:0,positionItemDepthMin:function(value){if(arguments.length===1){this._positionItemDepthMin=value;return value}else{return this._positionItemDepthMin}},_positionItemDepthMax:0,positionItemDepthMax:function(value){if(arguments.length===1){this._positionItemDepthMax=value;return value}else{return this._positionItemDepthMax}},_positionItem:null,positionItem:function(value){if(arguments.length===1){this._positionItem=value;return value}else{return this._positionItem}},_positionIndex:0,positionIndex:function(value){if(arguments.length===1){this._positionIndex=value;return value}else{return this._positionIndex}},_positionItemDepth:0,positionItemDepth:function(value){if(arguments.length===1){this._positionItemDepth=value;return value}else{return this._positionItemDepth}},_positionItemIndex:0,positionItemIndex:function(value){if(arguments.length===1){this._positionItemIndex=value;return value}else{return this._positionItemIndex}},_positionSize:0,positionSize:function(value){if(arguments.length===1){this._positionSize=value;return value}else{return this._positionSize}},_key:null,key:function(value){if(arguments.length===1){this._key=value;return value}else{return this._key}},_parentKey:null,parentKey:function(value){if(arguments.length===1){this._parentKey=value;return value}else{return this._parentKey}},_hierarchyKey:null,hierarchyKey:function(value){if(arguments.length===1){this._hierarchyKey=value;return value}else{return this._hierarchyKey}},_hierarchyLevelKey:null,hierarchyLevelKey:function(value){if(arguments.length===1){this._hierarchyLevelKey=value;return value}else{return this._hierarchyLevelKey}},_caption:null,caption:function(value){if(arguments.length===1){this._caption=value;return value}else{return this._caption}},_sortKey:null,sortKey:function(value){if(arguments.length===1){this._sortKey=value;return value}else{return this._sortKey}},_isExpandable:false,isExpandable:function(value){if(arguments.length===1){this._isExpandable=value;return value}else{return this._isExpandable}},_isExpanded:false,isExpanded:function(value){if(arguments.length===1){this._isExpanded=value;return value}else{return this._isExpanded}},m: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.n(a,b,this.positionItemIndex()+1,c);return d&&f},ab:function(a,b){},q:null,n:function(a,b,c,d){var $self=this;var e;var f=a.item(c);if(!$self.containsKey(f.key())){var g=$self.l(f,b,c,$self.positionSize());g.isExpandable(f.isExpandable());if($self.q.containsKey(g.key())){$self.q.remove(g.key());g.isExpanded(true)}if(f.parentKey()!=null){var h=null;if(function(){var $ret=$self.tryGetValue(f.parentKey(),h);h=$ret.value;return $ret.ret}()){h.isExpanded(true)}else{if(!$self.q.containsKey(f.parentKey())){$self.q.add(f.parentKey(),null)}}}e=g.m(a,b,d);$self.add(f.key(),g);if($self.positionItemDepthMin()==-1){$self.positionItemDepthMin(f.depth())}else{$self.positionItemDepthMin(Math.min($self.positionItemDepthMin(),f.depth()))}if($self.positionItemDepthMax()==Number.MAX_VALUE){$self.positionItemDepthMax(f.depth())}else{$self.positionItemDepthMax(Math.max($self.positionItemDepthMax(),f.depth()))}$self.ab(a,g)}else{var i=$self.item(f.key());e=i.m(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.s(a,a.length)},s:function(a,b){var $self=this;if($self.positionItemIndex()==b-1){return $self.positionIndex()}var c;if(!function(){var $ret=$self.tryGetValue(a[$self.positionItemIndex()+1],c);c=$ret.value;return $ret.ret}()){return-1}if(c.count()==0){return c.positionIndex()}return c.s(a,b)},$type:new $.ig.Type("PositionItemInfo$2",$.ig.Dictionary$2.prototype.$type.specialize(0,1))},true);$.ig.util.defType("PositionResolver$2","Object",{$tKey:null,$tSortKey:null,k:0,b:null,t:null,u:null,init:function($tKey,$tSortKey,a,b){this.k=0;this.$tKey=$tKey;this.$tSortKey=$tSortKey;this.$type=this.$type.specialize(this.$tKey,this.$tSortKey);$.ig.Object.prototype.init.call(this);this.positions(a.toList$1($.ig.IPosition$2.prototype.$type.specialize(this.$tKey,this.$tSortKey)));this.positionSize(b)},getPositionIndexCompleted:null,_positions:null,positions:function(value){if(arguments.length===1){this._positions=value;return value}else{return this._positions}},_positionSize:0,positionSize:function(value){if(arguments.length===1){this._positionSize=value;return value}else{return this._positionSize}},rootPositionInfo:function(){if(this.b==null){this.b=this.d(this.positionSize())}return this.b},d:function(a){return new $.ig.PositionItemInfo$2(this.$tKey,this.$tSortKey,null,-1,-1,a)},hasUnregisterdPositions:function(){return this.k<this.positions().count()},completeRegisterPositions:function(){if(this.hasUnregisterdPositions()){this.o(null)}},resolveParentPositionItem:function(a,b){b=-1;var c=$.ig.util.cast($.ig.IHierarchicalPositionItem$2.prototype.$type.specialize(this.$tKey,this.$tSortKey),a);if(c==null||c.parentKey()==null){return{ret:null,parentPositionIndex: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,parentPositionIndex:b}}var g=this.positions().__inner[b];var h=g.item(d);return{ret:h,parentPositionIndex:b};return{parentPositionIndex:b}},getHostPositionItemInfo:function(a,b){var $self=this;var c=$self.rootPositionInfo();var d=a.item(b);for(var e=0;e<b;e++){var f;if(function(){var $ret=c.tryGetValue(a.item(e).key(),f);f=$ret.value;return $ret.ret}()){c=f}else{c=null;break}}if(c==null){return null}if(!c.containsKey(d.key())){return null}return c},h:function(a,b){var $self=this;if($self.rootPositionInfo().count()==0){return null}var c=$self.rootPositionInfo();var d=a.position().indexOf(a);for(var e=0;e<d;e++){var f;if(function(){var $ret=c.tryGetValue(a.position().item(e).key(),f);f=$ret.value;return $ret.ret}()){c=f}else{c=null;break}}if(c==null){return null}if(!c.containsKey(a.key())){return null}var g=new $.ig.List$1($.ig.Number.prototype.$type,0);$self.s(a.key(),c,g);if(b==$.ig.ListSortDirection.prototype.descending){g.sort1(function(h,i){if(h==i){return 0}if(h>i){return-1}return 1});return g}g.sort1(function(h,i){if(h==i){return 0}if(h>i){return 1}return-1});return g},s:function(a,b,c){var $self=this;var e=b.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize($self.$tKey,$self.$tSortKey),function(f){return a.equals(f.parentKey())}).getEnumerator();while(e.moveNext()){var d=e.current();if(d.count()==0){c.add(d.positionIndex())}else{$self.r(d,c)}if(!d.isExpanded()){continue}if(d.positionItemDepth()<b.positionItemDepthMax()){$self.s(d.key(),b,c)}}},r:function(a,b){var $self=this;var d=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize($self.$tKey,$self.$tSortKey),function(e){return e.parentKey()==null}).getEnumerator();while(d.moveNext()){var c=d.current();if(c.count()==0){b.add(c.positionIndex())}else{$self.r(c,b)}if(!c.isExpanded()){continue}if(c.positionItemDepth()<a.positionItemDepthMax()){$self.s(c.key(),a,b)}}},getChildren:function(a,b){var $self=this;if($self.hasUnregisterdPositions()){$self.completeRegisterPositions()}var c=$self.getHostPositionItemInfo(a,b);var d=a.item(b);return c.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize($self.$tKey,$self.$tSortKey),function(e){return d.key().equals(e.parentKey())})},isMemberExpanded:function(a){var $self=this;if($self.hasUnregisterdPositions()){$self.completeRegisterPositions()}var b=$self.getPositionIndex(a.position());if(b==-1||$self.rootPositionInfo().count()==0){return $.ig.util.toNullable(Boolean,null)}var c=a.position().indexOf(a);var d=$self.rootPositionInfo();for(var e=0;e<c;e++){var f;if(function(){var $ret=d.tryGetValue(a.position().item(e).key(),f);f=$ret.value;return $ret.ret}()){d=f}else{d=null;break}}if(d==null){return $.ig.util.toNullable(Boolean,null)}if(!d.containsKey(a.key())){return $.ig.util.toNullable(Boolean,null)}var g=null;var h=d.values().getEnumerator();while(h.moveNext()){if(a.key().equals(h.current().parentKey())){g=h.current();break}}return $.ig.util.toNullable(Boolean,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.k>0){var b=this.m(a);if(b>-1){return b}if(this.k==this.positions().count()){return-1}}return this.o(a)},m:function(a){if(a.isEmpty()&&this.positions().count()==1&&this.positions().__inner[0].isEmpty()){return 0}return this.rootPositionInfo().getIndex2(a.getItems().toList$1($.ig.IPositionItem$2.prototype.$type.specialize(this.$tKey,this.$tSortKey)))},o:function(a){var b=a==null;var c=-1;for(var d=this.k;d<this.positions().count();d++){var e=this.positions().__inner[d];var f=this.rootPositionInfo().m(e,d,a);this.k++;if(c==-1&&f){c=d;if(!b){break}}}return c},$type:new $.ig.Type("PositionResolver$2",$.ig.Object.prototype.$type)},true);$.ig.util.defType("LevelSortDirection","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.sortBehavior($.ig.LevelSortBehavior.prototype.system)},_levelUniqueName:null,levelUniqueName:function(value){if(arguments.length===1){this._levelUniqueName=value;return value}else{return this._levelUniqueName}},_sortDirection:null,sortDirection:function(value){if(arguments.length===1){this._sortDirection=value;return value}else{return this._sortDirection}},_sortBehavior:null,sortBehavior:function(value){if(arguments.length===1){this._sortBehavior=value;return value}else{return this._sortBehavior}},$type:new $.ig.Type("LevelSortDirection",$.ig.Object.prototype.$type)},true);$.ig.util.defType("TaskExtensions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},continueWithTask$1:function($tResult,a){var $self=this;var b=new $.ig.TaskCompletionSource$1($tResult,0);$self.e(function(c){if(c.a()==null){try{a(c).i(function(d){if(d.a()==null){b.e(d.m());return}b.d(d.a())})}catch(e_){var d;d=e_;b.d(d)}}else{b.d(c.a())}});return b.b()},continueWithTask$2:function($tResult1,$tResult2,a){var $self=this;return $self.continueWithTask$1($tResult2,function(b){return a(b)})},$type:new $.ig.Type("TaskExtensions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("HierarchyFilterView","Object",{d:null,c:null,e:null,init:function(a){this.e=new $.ig.Dictionary$2(String,$.ig.FilterMember.prototype.$type,0);$.ig.Object.prototype.init.call(this);this.hierarchy(a);this.c=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.IList$1.prototype.$type.specialize($.ig.FilterMember.prototype.$type),0);this.d=new $.ig.Dictionary$2(String,$.ig.FilterMember.prototype.$type,0)},filterMemberExpansionChanged:null,filterMemberSelectionChanged:null,_hierarchy:null,hierarchy:function(value){if(arguments.length===1){this._hierarchy=value;return value}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(!$self.d.containsKey(a.uniqueName())){var b=new $.ig.FilterMember(a);b.propertyChanged=$.ig.Delegate.prototype.combine(b.propertyChanged,$self.o.runOn($self));b.selectionChanged=$.ig.Delegate.prototype.combine(b.selectionChanged,$self.p.runOn($self));var c;if(!function(){var $ret=$self.c.tryGetValue(a.levelDepth(),c);c=$ret.value;return $ret.ret}()){c=new $.ig.List$1($.ig.FilterMember.prototype.$type,0);$self.c.add(a.levelDepth(),c)}$self.d.add(a.uniqueName(),b);$self.e.add(a.uniqueName(),b);c.add(b);$self.j(b);$self.m(b)}},tryGetFilterMember:function(a,b){var $self=this;return{ret:function(){var $ret=$self.d.tryGetValue(a,b);b=$ret.value;return $ret.ret}(),filterMember:b};return{filterMember:b}},getRootFilterMembers:function(){var a=-1;var c=this.c.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.c.item(a)},getSelectedFilterItems:function(){var a=this.getRootFilterMembers();var b=new $.ig.List$1($.ig.FilterMember.prototype.$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 $.ig.FilterMemberStateChangedEventArgs(a))}},o:function(a,b){if(b.propertyName()=="IsExpanded"){if(this.filterMemberExpansionChanged!=null){this.filterMemberExpansionChanged(this,new $.ig.FilterMemberStateChangedEventArgs(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 $ret=$self.d.tryGetValue(b,c);c=$ret.value;return $ret.ret}()){c.n(a);if(c.isSelected().hasValue()==true&&c.isSelected().value()==false){a.isSelected($.ig.util.toNullable($.ig.Boolean.prototype.$type,false))}}},j:function(a){var $self=this;var b=a.member().levelDepth();var c;if(function(){var $ret=$self.c.tryGetValue(b+1,c);c=$ret.value;return $ret.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.Object.prototype.$type)},true);$.ig.util.defType("FilterMember","Object",{l:$.ig.util.toNullable($.ig.Boolean.prototype.$type,null),c:false,e:false,d:false,init:function(a){this.e=false;this.d=false;$.ig.Object.prototype.init.call(this);var b=$.ig.util.toNullable($.ig.Boolean.prototype.$type,true);this.l=b;this.member(a);this.k(0);this.j(0)},selectionChanged:null,propertyChanged:null,_parent:null,parent:function(value){if(arguments.length===1){this._parent=value;return value}else{return this._parent}},_member:null,member:function(value){if(arguments.length===1){this._member=value;return value}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=$.ig.util.toNullable($.ig.Boolean.prototype.$type,null);if($.ig.util.nullableEquals(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($.ig.util.toNullable($.ig.Boolean.prototype.$type,true))}else if(g==i){this.parent().isSelected($.ig.util.toNullable($.ig.Boolean.prototype.$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,$.ig.EventArgs.prototype.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(value){if(arguments.length===1){this._children=value;return value}else{return this._children}},n:function(a){if(this.children()==null){this.children(new $.ig.List$1($.ig.FilterMember.prototype.$type,0))}a.parent(this);this.children().add(a);this.o("Children")},_k:0,k:function(value){if(arguments.length===1){this._k=value;return value}else{return this._k}},_j:0,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},o:function(a){if(this.propertyChanged!=null){this.propertyChanged(this,new $.ig.PropertyChangedEventArgs(a))}},$type:new $.ig.Type("FilterMember",$.ig.Object.prototype.$type,[$.ig.INotifyPropertyChanged.prototype.$type])},true);$.ig.util.defType("FilterMemberStateChangedEventArgs","EventArgs",{init:function(a){$.ig.EventArgs.prototype.init.call(this);this.filterMember(a)},_filterMember:null,filterMember:function(value){if(arguments.length===1){this._filterMember=value;return value}else{return this._filterMember}},$type:new $.ig.Type("FilterMemberStateChangedEventArgs",$.ig.EventArgs.prototype.$type)},true);$.ig.util.defType("ResultSorter$1","Object",{$t:null,_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_d:false,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_c:false,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},init:function($t,a,b,c){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.Object.prototype.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 $.ig.List$1($.ig.OlapResultTuple.prototype.$type,1,e)},$type:new $.ig.Type("ResultSorter$1",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ResultHeaderSorter","ResultSorter$1",{f:null,_h:null,h:function(value){if(arguments.length===1){this._h=value;return value}else{return this._h}},_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},init:function(a,b,c,d){$.ig.ResultSorter$1.prototype.init.call(this,$.ig.AxisHeaderSortingVisitor.prototype.$type,a,b,c);this.f=new $.ig.Dictionary$2(String,$.ig.LevelSortDirection.prototype.$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;$self.h(new $.ig.List$1($.ig.LevelSortDirection.prototype.$type,0));$self.g(new $.ig.Dictionary$2(String,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type)),0));if($self.a().isEmpty()){return $self.a()}var a=new $.ig.List$1($.ig.OlapResultAxis.prototype.$type,0);var b=0;var c=1;var d=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Number.prototype.$type,0);var e=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Number.prototype.$type,0);if($self.c()){var f=$self.a().axes().item(b);var g=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type),0);var h=new $.ig.AxisHeaderSortingVisitor(f,$self.f,$self.h(),g);var i=$self.e(h,f,d);var j=function(){var $ret=new $.ig.OlapResultAxis(i,f.tupleSize());$ret.name(f.name());return $ret}();a.add(j);$self.g().item(f.name(),g);c=f.tuples().count();b++}if($self.d()){var k=$self.a().axes().item(b);var l=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.IDictionary$2.prototype.$type.specialize($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type),0);var m=new $.ig.AxisHeaderSortingVisitor(k,$self.f,$self.h(),l);var n=$self.e(m,k,e);var o=function(){var $ret=new $.ig.OlapResultAxis(n,k.tupleSize());
$ret.name(k.name());return $ret}();a.add(o);$self.g().item(k.name(),l)}var p=new $.ig.List$1($.ig.OlapResultCell.prototype.$type,2,$self.a().cells().count());var r=$self.a().cells().getEnumerator();while(r.moveNext()){var q=r.current();var s=q.clone();var t=s.cellOrdinal();if($self.c()){var u=t%c;var v=d.item(u);if(u!=v){var w=$.ig.intDivide(t,c);t=w*c+v}}if($self.d()){var x=$.ig.intDivide(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 $.ig.OlapResult;$ret.isEmpty($self.a().isEmpty());$ret.axes(a);$ret.cells(p);return $ret}();return aa},$type:new $.ig.Type("ResultHeaderSorter",$.ig.ResultSorter$1.prototype.$type.specialize($.ig.AxisHeaderSortingVisitor.prototype.$type))},true);$.ig.util.defType("AxisTupleVisitor","Object",{_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},init:function(a){$.ig.Object.prototype.init.call(this);this.a(a)},e:function(){var $self=this;if($self.a().positionResolver().hasUnregisterdPositions()){$self.a().positionResolver().completeRegisterPositions()}$self.d(new $.ig.List$1($.ig.Number.prototype.$type,2,$self.a().tuples().count()));var a=$self.a().positionResolver().rootPositionInfo();var b=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(c){return c.positionItemDepth()==a.positionItemDepthMin()});var d=$self.c(a,b).getEnumerator();while(d.moveNext()){var c=d.current();$self.f(a,c)}},b:function(a,b){},c:function(a,b){},f:function(a,b){var $self=this;var c=b.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(d){return d.positionItemDepth()==b.positionItemDepthMin()});if(c.count$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))>0){var e=c.getEnumerator();while(e.moveNext()){var d=e.current();$self.f(b,d)}}else{$self.d().add(b.positionIndex())}var f=$self.b(a,b);var h=f.getEnumerator();while(h.moveNext()){var g=h.current();$self.f(a,g)}},$type:new $.ig.Type("AxisTupleVisitor",$.ig.Object.prototype.$type)},true);$.ig.util.defType("AxisHeaderSortingVisitor","AxisTupleVisitor",{h:null,i:null,g:null,init:function(a,b,c,d){$.ig.AxisTupleVisitor.prototype.init.call(this,a);this.h=b;this.i=c;this.g=d},b:function(a,b){var $self=this;var c=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(d){return d.parentKey()==b.key()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(c.count()>0){var d=c.item(0);var e;if(function(){var $ret=$self.h.tryGetValue(d.hierarchyLevelKey(),e);e=$ret.value;return $ret.ret}()){if(e.sortBehavior()==$.ig.LevelSortBehavior.prototype.system){c=e.sortDirection()==$.ig.ListSortDirection.prototype.ascending?c.orderBy$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),$.ig.Object.prototype.$type,function(f){return f.sortKey()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type)):c.orderByDescending$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),$.ig.Object.prototype.$type,function(f){return f.sortKey()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))}else{c=e.sortDirection()==$.ig.ListSortDirection.prototype.ascending?c.orderBy$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),String,function(f){return f.caption()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type)):c.orderByDescending$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),String,function(f){return f.caption()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))}if(!$self.i.select$2($.ig.LevelSortDirection.prototype.$type,String,function(f){return f.levelUniqueName()}).contains$1(String,e.levelUniqueName())){$self.i.add(e)}var f;if(!function(){var $ret=$self.g.tryGetValue(d.positionItemIndex(),f);f=$ret.value;return $ret.ret}()){f=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type,0);$self.g.add(b.positionItemIndex(),f)}f.item(b.positionItemDepth(),e.sortDirection())}}return c},c:function(a,b){var $self=this;var c=b.toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(c.count()>0){var d=c.item(0);var e;if(d.hierarchyLevelKey()!=null&&function(){var $ret=$self.h.tryGetValue(d.hierarchyLevelKey(),e);e=$ret.value;return $ret.ret}()){if(e.sortBehavior()==$.ig.LevelSortBehavior.prototype.system){c=e.sortDirection()==$.ig.ListSortDirection.prototype.ascending?c.orderBy$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),$.ig.Object.prototype.$type,function(f){return f.sortKey()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type)):c.orderByDescending$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),$.ig.Object.prototype.$type,function(f){return f.sortKey()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))}else{c=e.sortDirection()==$.ig.ListSortDirection.prototype.ascending?c.orderBy$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),String,function(f){return f.caption()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type)):c.orderByDescending$2($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),String,function(f){return f.caption()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type))}$self.i.add(e);var f;if(!function(){var $ret=$self.g.tryGetValue(d.positionItemIndex(),f);f=$ret.value;return $ret.ret}()){f=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.ListSortDirection.prototype.$type,0);$self.g.add(a.positionItemIndex(),f)}f.item(a.positionItemDepth(),e.sortDirection())}}return c},$type:new $.ig.Type("AxisHeaderSortingVisitor",$.ig.AxisTupleVisitor.prototype.$type)},true);$.ig.util.defType("ResultColumnValueSorter","ResultSorter$1",{f:null,_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},init:function(a,b,c,d){$.ig.ResultSorter$1.prototype.init.call(this,$.ig.AxisValueSortingVisitor.prototype.$type,a,b,c);this.f=d},b:function(){var $self=this;$self.g(new $.ig.List$1($.ig.TupleSortDirection.prototype.$type,0));if(!$self.d()||$self.a().isEmpty()){return $self.a()}var a=new $.ig.List$1($.ig.OlapResultAxis.prototype.$type,0);var b=0;var c=null;var d=1;if($self.c()){c=$self.a().axes().item(b);d=c.tuples().count();a.add(c.clone());b++}var e=$self.a().axes().item(b);var f=$self.a().axes().item(b).tuples().count();var g=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Object.prototype.$type,1,$self.a().cells().count());var i=$self.a().cells().getEnumerator();while(i.moveNext()){var h=i.current();var j=null;if(function(){var $ret=h.properties().tryGetValue("Value",j);j=$ret.value;return $ret.ret}()){g.item(h.cellOrdinal(),j)}else{(function(){var $ret=h.properties().tryGetValue("FmtValue",j);j=$ret.value;return $ret.ret})();g.item(h.cellOrdinal(),j)}}var k=new $.ig.List$1($.ig.KeyValuePair$2.prototype.$type.specialize($.ig.TupleSortDirection.prototype.$type,$.ig.Array.prototype.$type),2,$self.f.count());var m=$self.f.getEnumerator();while(m.moveNext()){var l=m.current();var n;if(c!=null&&l.memberNames()!=null){if(c.positionResolver().hasUnregisterdPositions()){c.positionResolver().completeRegisterPositions()}n=c.positionResolver().rootPositionInfo().getIndex(l.memberNames());l.tupleIndex(n)}else{n=l.tupleIndex()}if(n>-1&&n<d){var o=new Array(f);for(var p=0;p<f;p++){var q=null;(function(){var $ret=g.tryGetValue(p*d+n,q);q=$ret.value;return $ret.ret})();o[p]=q}k.add(new $.ig.KeyValuePair$2($.ig.TupleSortDirection.prototype.$type,$.ig.Array.prototype.$type,1,l,o));$self.g().add(l)}}var r=new $.ig.Dictionary$2($.ig.Number.prototype.$type,$.ig.Number.prototype.$type,0);var s=new $.ig.AxisValueSortingVisitor(e,k);var t=$self.e(s,e,r);var u=function(){var $ret=new $.ig.OlapResultAxis(t,e.tupleSize());$ret.name(e.name());return $ret}();a.add(u);var v=new $.ig.List$1($.ig.OlapResultCell.prototype.$type,2,$self.a().cells().count());var x=$self.a().cells().getEnumerator();while(x.moveNext()){var w=x.current();var y=w.clone();var z=y.cellOrdinal();var aa=$.ig.intDivide(z,d);var ab=r.item(aa);if(aa!=ab){var ac=z%d;z=ab*d+ac}y.cellOrdinal(z);v.add(y)}var ad=function(){var $ret=new $.ig.OlapResult;$ret.isEmpty($self.a().isEmpty());$ret.axes(a);$ret.cells(v);return $ret}();return ad},$type:new $.ig.Type("ResultColumnValueSorter",$.ig.ResultSorter$1.prototype.$type.specialize($.ig.AxisValueSortingVisitor.prototype.$type))},true);$.ig.util.defType("AxisValueSortingVisitor","AxisTupleVisitor",{g:null,init:function(a,b){$.ig.AxisTupleVisitor.prototype.init.call(this,a);this.g=b},b:function(a,b){var $self=this;var c=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(d){return d.parentKey()==b.key()});return $self.c(a,c)},c:function(a,b){var positionItemInfos_=b.toArray$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(positionItemInfos_.length>0){var tupleSortDirections_=this.g.toArray$1($.ig.KeyValuePair$2.prototype.$type.specialize($.ig.TupleSortDirection.prototype.$type,$.ig.Array.prototype.$type));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}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",$.ig.AxisTupleVisitor.prototype.$type)},true);$.ig.util.defType("TupleSortDirection","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_tupleIndex:0,tupleIndex:function(value){if(arguments.length===1){this._tupleIndex=value;return value}else{return this._tupleIndex}},_memberNames:null,memberNames:function(value){if(arguments.length===1){this._memberNames=value;return value}else{return this._memberNames}},_sortDirection:null,sortDirection:function(value){if(arguments.length===1){this._sortDirection=value;return value}else{return this._sortDirection}},_comparer:null,comparer:function(value){if(arguments.length===1){this._comparer=value;return value}else{return this._comparer}},$type:new $.ig.Type("TupleSortDirection",$.ig.Object.prototype.$type)},true);$.ig.util.defType("DataSourceBase","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_dataSource:null,dataSource:function(value){if(arguments.length===1){this._dataSource=value;return value}else{return this._dataSource}},isInitialized:function(){return this.dataSource().isInitialized()},_isModified:false,isModified:function(value){if(arguments.length===1){this._isModified=value;return value}else{return this._isModified}},_isUpdating:false,isUpdating:function(value){if(arguments.length===1){this._isUpdating=value;return value}else{return this._isUpdating}},initialize:function(){var promise_=this.dataSource().initialize().c();var $this=this;if(!this._isInitializedAttached){this._isInitializedAttached=true;promise_.always(function(result){var args={error:null,metadataTreeRoot:null};if(this.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){var $self=this;return $self.dataSource().setCube(a).j($.ig.OlapMetadataTreeItem.prototype.$type,function(b){return b.m()}).c()},metadataTree:function(){return this.dataSource().metadataTree()},addRowItem:function(a){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,a)!==null){this.dataSource().rowAxis().add(a);this.isModified(true)}},insertRowItem:function(a,b){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,b)!==null){this.dataSource().rowAxis().insert(a,b);this.isModified(true)}},removeRowItem:function(a){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,a)!==null||$.ig.util.cast($.ig.MeasureList.prototype.$type,a)!==null){this.dataSource().rowAxis().remove(a);this.isModified(true)}},addColumnItem:function(a){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,a)!==null){this.dataSource().columnAxis().add(a);this.isModified(true)}},insertColumnItem:function(a,b){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,b)!==null){this.dataSource().columnAxis().insert(a,b);this.isModified(true)}},removeColumnItem:function(a){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,a)!==null||$.ig.util.cast($.ig.MeasureList.prototype.$type,a)!==null){this.dataSource().columnAxis().remove(a);this.isModified(true)}},addFilterItem:function(a){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,a)!==null){this.dataSource().filters().add(a);this.isModified(true)}},insertFilterItem:function(a,b){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,b)!==null){this.dataSource().filters().insert(a,b);this.isModified(true)}},removeFilterItem:function(a){if($.ig.util.cast($.ig.Hierarchy.prototype.$type,a)!==null){this.dataSource().filters().remove(a);this.isModified(true)}},addMeasureItem:function(a){if($.ig.util.cast($.ig.Measure.prototype.$type,a)!==null){this.dataSource().measures().add(a);this.isModified(true)}},insertMeasureItem:function(a,b){if($.ig.util.cast($.ig.Measure.prototype.$type,b)!==null){this.dataSource().measures().insert(a,b);this.isModified(true)}},removeMeasureItem:function(a){if($.ig.util.cast($.ig.Measure.prototype.$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($.ig.MeasureListLocation.prototype.rows);break;case"columns":this.dataSource().measureListLocation($.ig.MeasureListLocation.prototype.columns);break;default:break}this.isModified(true)},getMeasureListLocation:function(){switch(this.dataSource().measureListLocation()){case $.ig.MeasureListLocation.prototype.rows:return"rows";break;case $.ig.MeasureListLocation.prototype.columns: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();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().c();var $this=this;if(!this.isUpdating()){this.isUpdating(true);promise_.always(function(result){var args={error:null,result:null};if(this.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).c()},getMembersOfLevel:function(a){return this.dataSource().getMembersOfLevel(a).c()},tryGetMember:function(a){var $self=this;var b;if(function(){var $ret=$self.dataSource().tryGetMember(a,b);b=$ret.member;return $ret.ret}()){return b}return null},tryGetMembersForLevel:function(a){var $self=this;var b=new $.ig.ArrayListCollection$1($.ig.Member.prototype.$type);var c=function(){var $ret=$self.dataSource().tryGetMembersForLevel(a,b);b=$ret.members;return $ret.ret}();return c?b.inner():new $.ig.ArrayListCollection$1($.ig.Member.prototype.$type).inner()},getMembersOfMember:function(a){return this.dataSource().getMembersOfMember(a).c()},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){var $self=this;return $self.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$.ig.Dimension.prototype.$type)},getHierarchy:function(a){var $self=this;return $self.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$.ig.Hierarchy.prototype.$type)},getLevel:function(a){var $self=this;return $self.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$.ig.Level.prototype.$type)},getMeasure:function(a){var $self=this;return $self.dataSource().getCoreElement(function(b){return b.uniqueName()==a},$.ig.Measure.prototype.$type)},getMeasureList:function(){return this.dataSource().getCoreElement(null,$.ig.MeasureList.prototype.$type)},$type:new $.ig.Type("DataSourceBase",$.ig.Object.prototype.$type)},true);$.ig.util.defType("jQueryUtils","Object",{init:function(){$.ig.Object.prototype.init.call(this)},c:function($t,a){if(a==null){return null}var jsObject_=a;var dict_=new $.ig.Dictionary$2(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 dict_=a;return dict_.__inner.proxy},convertToObjectDictionary:function(a){return $.ig.jQueryUtils.prototype.c($.ig.Object.prototype.$type,a)},convertToStringDictionary:function(a){return $.ig.jQueryUtils.prototype.c(String,a)},convertFromObjectDictionary:function(a){return $.ig.jQueryUtils.prototype.i($.ig.Object.prototype.$type,a)},convertFromStringDictionary:function(a){return $.ig.jQueryUtils.prototype.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){c=Array.prototype.slice.call(arguments,2);var jsObject_=a;var method_=b;var args_=c;return jsObject_[method_].call(jsObject_,args_)},$type:new $.ig.Type("jQueryUtils",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapUtilities","Object",{init:function(){$.ig.Object.prototype.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_=$.ig.OlapUtilities.prototype.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_=$.ig.OlapUtilities.prototype.dateMemberProvider("year",b,null,null);semesterProvider_=$.ig.OlapUtilities.prototype.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_=$.ig.OlapUtilities.prototype.dateMemberProvider("year",b,null,null);semesterProvider_=$.ig.OlapUtilities.prototype.dateMemberProvider("semester",b,null,null);quarterProvider_=$.ig.OlapUtilities.prototype.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_="MM/dd/yyyy"}if(format_==null){return function(item){return $.ig.formatter(new Date(item[propName_]),"date",datePartFormat_)}}yearProvider_=$.ig.OlapUtilities.prototype.dateMemberProvider("year",b,null,null);semesterProvider_=$.ig.OlapUtilities.prototype.dateMemberProvider("semester",b,null,null);quarterProvider_=$.ig.OlapUtilities.prototype.dateMemberProvider("quarter",b,null,null);monthProvider_=$.ig.OlapUtilities.prototype.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){var $self=this;if(String.isNullOrEmpty(a)){return null}if(b==null||b.length==0){b=function(){var $ret=new Array;$ret.add("year");$ret.add("quarter");$ret.add("month");$ret.add("date");return $ret}()}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]=$.ig.OlapUtilities.prototype.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};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.Object.prototype.$type)},true);$.ig.util.defType("OlapTableView","Object",{a:null,init:function(a,b,c,d){$.ig.Object.prototype.init.call(this);var e=this.b(d);this.a=new $.ig.TableViewImpl(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 $.ig.Array;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 $.ig.Array;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 $.ig.Array;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 $.ig.Array;var c=this.a.appliedLevelSortDirections().getEnumerator();while(c.moveNext()){var b=c.current();a.add(this.m(b))}return a},appliedSortDirectionsMap:function(){var resultMap_=$.ig.jQueryUtils.prototype.createJavascriptObject();var a=this.a.appliedSortDirectionsMap().getEnumerator();while(a.moveNext()){var i_=a.current();var axisMap_=$.ig.jQueryUtils.prototype.createJavascriptObject();var b=i_.value().getEnumerator();while(b.moveNext()){var j_=b.current();var hierarchyMap_=$.ig.jQueryUtils.prototype.createJavascriptObject();var c=j_.value().getEnumerator();while(c.moveNext()){var k_=c.current();var sortDirection_=k_.value()==$.ig.ListSortDirection.prototype.ascending?"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 $self=this;var b=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"isParentInFrontForColumns");var c=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"isParentInFrontForRows");var d=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"compactColumnHeaders");var e=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"compactRowHeaders");return function(){var $ret=new $.ig.TableViewSettings;$ret.c(b);$ret.d(c);$ret.a(d);$ret.b(e);return $ret}()},d:function(o_){var $self=this;var a=$.ig.util.cast($.ig.Array.prototype.$type,$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(o_,"memberNames"));var b=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(o_,"tupleIndex");var c=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(o_,"sortDirection");var d=$.ig.ListSortDirection.prototype.ascending;if(!String.isNullOrEmpty(c)){c=c.toLowerCase();if(c=="descending"){d=$.ig.ListSortDirection.prototype.descending}}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 $.ig.TupleSortDirection;$ret.memberNames(a);$ret.tupleIndex(b);$ret.sortDirection(d);$ret.comparer(comparer_);return $ret}()},n:function(a){var b=$.ig.jQueryUtils.prototype.createJavascriptObject();$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(b,"memberNames",a.memberNames());$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(b,"tupleIndex",a.tupleIndex());$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(b,"sortDirection",a.sortDirection()==$.ig.ListSortDirection.prototype.ascending?"ascending":"descending");if(a.comparer()!=null){$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(b,"comparer",a.comparer())}return b},c:function(a){var b=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"levelUniqueName");var c=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"sortDirection");var d=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"sortBehavior");if(!String.isNullOrEmpty(b)){var e=new $.ig.LevelSortDirection;e.sortDirection($.ig.ListSortDirection.prototype.ascending);e.sortBehavior($.ig.LevelSortBehavior.prototype.system);e.levelUniqueName(b);if(!String.isNullOrEmpty(c)){c=c.toLowerCase();if(c=="descending"){e.sortDirection($.ig.ListSortDirection.prototype.descending)}}if(!String.isNullOrEmpty(d)){d=d.toLowerCase();if(d=="alphabetical"){e.sortBehavior($.ig.LevelSortBehavior.prototype.alphabetical)}}return e}else{return null}},m:function(a){var b=$.ig.jQueryUtils.prototype.createJavascriptObject();$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(b,"levelUniqueName",a.levelUniqueName());$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(b,"sortDirection",a.sortDirection()==$.ig.ListSortDirection.prototype.ascending?"ascending":"descending");return b},$type:new $.ig.Type("OlapTableView",$.ig.Object.prototype.$type)},true);$.ig.LevelSortBehavior.prototype.alphabetical=0;$.ig.LevelSortBehavior.prototype.system=1;$.ig.OlapMetadataTreeItemType.prototype.cube=0;$.ig.OlapMetadataTreeItemType.prototype.dimension=1;
$.ig.OlapMetadataTreeItemType.prototype.group=2;$.ig.OlapMetadataTreeItemType.prototype.userDefinedHierarchy=3;$.ig.OlapMetadataTreeItemType.prototype.systemEnabledHierarchy=4;$.ig.OlapMetadataTreeItemType.prototype.parentChildHierarchy=5;$.ig.OlapMetadataTreeItemType.prototype.measure=6;$.ig.OlapMetadataTreeItemType.prototype.level1=7;$.ig.OlapMetadataTreeItemType.prototype.level2=8;$.ig.OlapMetadataTreeItemType.prototype.level3=9;$.ig.OlapMetadataTreeItemType.prototype.level4=10;$.ig.OlapMetadataTreeItemType.prototype.level5=11;$.ig.OlapMetadataTreeItemType.prototype.kpiRoot=12;$.ig.OlapMetadataTreeItemType.prototype.kpi=13;$.ig.OlapMetadataTreeItemType.prototype.kpiValue=14;$.ig.OlapMetadataTreeItemType.prototype.kpiGoal=15;$.ig.OlapMetadataTreeItemType.prototype.kpiStatus=16;$.ig.OlapMetadataTreeItemType.prototype.kpiTrend=17;$.ig.OlapMetadataTreeItemType.prototype.kpiWeight=18;$.ig.MeasureListLocation.prototype.rows=0;$.ig.MeasureListLocation.prototype.columns=1;$.ig.HeaderCellsLayoutOrientation.prototype.horizontal=0;$.ig.HeaderCellsLayoutOrientation.prototype.vertical=1;$.ig.MemberType.prototype.unknown=0;$.ig.MemberType.prototype.regular=1;$.ig.MemberType.prototype.all=2;$.ig.MemberType.prototype.measure=3;$.ig.MemberType.prototype.formula=4;$.ig.CardinalityType.prototype.one=0;$.ig.CardinalityType.prototype.many=1;$.ig.AggregatorType.prototype.unknown=0;$.ig.AggregatorType.prototype.sum=1;$.ig.AggregatorType.prototype.count=2;$.ig.AggregatorType.prototype.min=3;$.ig.AggregatorType.prototype.max=4;$.ig.AggregatorType.prototype.average=5;$.ig.AggregatorType.prototype.variance=6;$.ig.AggregatorType.prototype.std=7;$.ig.AggregatorType.prototype.distinctCount=8;$.ig.AggregatorType.prototype.none=9;$.ig.AggregatorType.prototype.averageOfChildren=10;$.ig.AggregatorType.prototype.firstNonEmpty=13;$.ig.AggregatorType.prototype.lastNonEmpty=14;$.ig.AggregatorType.prototype.byAccount=15;$.ig.AggregatorType.prototype.calculated=127;$.ig.HierarchyOrigin.prototype.userDefined=1;$.ig.HierarchyOrigin.prototype.systemEnabled=2;$.ig.HierarchyOrigin.prototype.systemInternal=4;$.ig.DimensionType.prototype.unknown=0;$.ig.DimensionType.prototype.time=1;$.ig.DimensionType.prototype.measure=2;$.ig.DimensionType.prototype.other=3;$.ig.DimensionType.prototype.quantitative=5;$.ig.DimensionType.prototype.accounts=6;$.ig.DimensionType.prototype.customers=7;$.ig.DimensionType.prototype.products=8;$.ig.DimensionType.prototype.scenario=9;$.ig.DimensionType.prototype.utility=10;$.ig.DimensionType.prototype.currency=11;$.ig.DimensionType.prototype.rates=12;$.ig.DimensionType.prototype.channel=13;$.ig.DimensionType.prototype.promotion=14;$.ig.DimensionType.prototype.organization=15;$.ig.DimensionType.prototype.billOfMaterials=16;$.ig.DimensionType.prototype.geography=17;$.ig.CubeType.prototype.cube=0;$.ig.CubeType.prototype.dimension=1;$.ig.CubeType.prototype.unknown=2;$.ig.AxisDefinitionParser.prototype.e="[";$.ig.AxisDefinitionParser.prototype.f="]";$.ig.AxisDefinitionParser.prototype.i="{";$.ig.AxisDefinitionParser.prototype.j="}";$.ig.AxisDefinitionParser.prototype.h=",";$.ig.CoreOlapElementParser.prototype.d="[";$.ig.CoreOlapElementParser.prototype.e="]";$.ig.CoreOlapElementParser.prototype.g=".";$.ig.CoreOlapElementParser.prototype.i="&";$.ig.util.extCopy($.ig.TaskExtensions,[[[$.ig.Task,$.ig.Task$1],["continueWithTask$1","continueWithTask$2"]]]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ArrayListCollection$1],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ArrayListCollection$1],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.ArrayListCollection$1],["ofType$1","cast$1"]]])})(jQuery);$.ig=$.ig||{};(function($){var $$t={};$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["IXmlaDataProvider:a","IOlapDiscoverDataProvider:b","Task$1:c","Task:d","Object:e","Type:f","Boolean:g","ValueType:h","Void:i","String:j","IComparable:k","Number:l","Number:m","Single:n","Number:o","String:p","Array:q","RegExp:r","RuntimeTypeHandle:s","MethodInfo:t","MethodBase:u","MemberInfo:v","ParameterInfo:w","TypeCode:x","Enum:y","ConstructorInfo:z","JQueryPromise:aa","Action:ab","MulticastDelegate:ac","IntPtr:ad","Action$1:ae","AggregateException:af","Error:ag","TaskStatus:ah","Func$2:ai","TaskCompletionSource$1:aj","JQueryDeferred:ak","JQuery:al","JQueryObject:am","Element:an","ElementAttributeCollection:ao","ElementCollection:ap","WebStyle:aq","ElementNodeType:ar","Document:as","EventListener:at","IElementEventHandler:au","ElementEventHandler:av","ElementAttribute:aw","JQueryPosition:ax","JQueryCallback:ay","JQueryEvent:az","JQueryUICallback:a0","Script:a1","IEnumerable$1:a2","IEnumerable:a3","IEnumerator:a4","IEnumerator$1:a5","IOlapExecuteCommandProvider:a6","MdxDataSourceImpl:a7","OlapDataSource:a8","IOlapDataSource:a9","OlapMetadataTreeItem:ba","ICoreOlapElement:bb","OlapMetadataTreeItemType:bc","IList$1:bd","ICollection$1:be","MeasureListLocation:bf","OlapResult:bg","ArrayListCollection$1:bh","INotifyCollectionChanged:bi","NotifyCollectionChangedEventHandler:bj","NotifyCollectionChangedEventArgs:bk","EventArgs:bl","NotifyCollectionChangedAction:bm","IList:bn","ICollection:bo","List$1:bp","IArrayList:bq","Array:br","CompareCallback:bs","IDisposable:bt","IArray:bu","Date:bv","Date:bw","Number:bx","Func$3:by","Delegate:bz","NotImplementedException:b0","Cube:b1","CubeType:b2","Member:b3","MemberType:b4","Nullable$1:b5","MeasureGroup:b6","DataSourceBaseOptions:b7","IOlapDataProviderFactory:b8","OlapResultView:b9","ArgumentNullException:ca","OlapResultAxis:cb","PositionResolver$2:cc","PositionItemInfo$2:cd","Dictionary$2:ce","IDictionary$2:cf","IDictionary:cg","Dictionary:ch","IEqualityComparer$1:ci","KeyValuePair$2:cj","IHierarchicalPositionItem$2:ck","IPositionItem$2:cl","IPosition$2:cm","Math:cn","Number:co","Number:cp","Number:cq","Number:cr","Number:cs","Number:ct","Number:cu","Enumerable:cv","IOrderedEnumerable$1:cw","SortedList$1:cx","EventHandler$1:cy","ListSortDirection:cz","OlapResultTuple:c0","ReadOnlyCollection$1:c1","OlapResultAxisMember:c2","OlapResultCell:c3","InvalidOperationException:c4","CubeMetaItemsCache:c5","MeasureGroupMetaItemsCache:c6","MeasureGroupDimension:c7","CardinalityType:c8","Dimension:c9","DimensionType:da","Measure:db","AggregatorType:dc","Kpi:dd","Tuple$2:de","KpiMeasure:df","MeasureList:dg","Hierarchy:dh","HierarchyOrigin:di","Level:dj","NotSupportedException:dk","PositionInfo:dl","TaskExtensions:dm","AxisElement:dn","AxisDefinitionParser:dp","Debug:dq","TaskFactory:dr","MetaTreeHelper:ds","HierarchyItemPosition:dt","KpiDimension:du","MdxDataSourceOptions:dv","MdxSettings:dw","MdxDimensionAxisSettings:dx","MdxAxisSettings:dy","MdxSetSettings:dz","MdxSlicerAxisSettings:d0","ObservableCollection$1:d1","INotifyPropertyChanged:d2","PropertyChangedEventHandler:d3","PropertyChangedEventArgs:d4","Catalog:d5","MdxSlicerAxisProvider:d6","IMdxAxisProvider:d7","IMdxAxis:d8","IMdxExpression:d9","IMdxSet:ea","IMdxElement:eb","MdxElementType:ec","MdxSlicerAxis:ed","MdxAxis:ee","StringBuilder:ef","Environment:eg","IMdxSlicerAxis:eh","IMdxExtendedFilterInfo:ei","IMdxFilterInfo:ej","IAxisFilterElement:ek","IMdxCollectionElement:el","MdxSlicerAxisBuilder:em","MdxAxisFilterElement:en","MdxElementCollectionElement:eo","MdxSingleElement:ep","MdxElement:eq","IMdxItemElement:er","ArgumentException:es","MdxSlicerSet:et","MdxSet:eu","MdxLevelMembersElement:ev","MdxChildrenCollectionElement:ew","MdxDimensionMember:ex","KeyValueItem:ey","MdxDimensionAxisProvider:ez","IMdxDimensionAxisProvider:e0","ResultViewHelper:e1","MdxQueryBuilder:e2","MdxCalculatedMembersCache:e3","XmlaDataProvider:e4","ICoreXmlaConnection:e5","IConnection:e6","XmlaSoapWebClient$1:e7","XmlaSoapWebClient:e8","ICredentials:e9","NetworkCredential:fa","Uri:fb","Encoding:fc","UTF8Encoding:fd","UnicodeEncoding:fe","WebClient:ff","WebHeaderCollection:fg","NameValueCollection:fh","UploadStringCompletedEventHandler:fi","UploadStringCompletedEventArgs:fj","AsyncCompletedEventArgs:fk","IXmlaSoapMethod:fl","XmlaPropertiesCollection:fm","XmlaQueryProperty:fn","XNamespace:fo","XmlaSoapMessageBuilder:fp","XElement:fq","XContainer:fr","XNode:fs","XObject:ft","XmlNode:fu","XmlNodeList:fv","XmlNamedNodeMap:fw","XmlNodeType:fx","XmlDocument:fy","XmlElement:fz","XmlLinkedNode:f0","XmlAttribute:f1","XmlUtils:f2","XName:f3","XDocument:f4","XAttribute:f5","RequestCompletedEventArgs$1:f6","XmlaSoapFaultXmlTypeSerializer:f7","IXmlTypeSerializer$1:f8","XmlaSoapFault:f9","FaultDetail:ga","FaultError:gb","SerializerUtils:gc","ErrorXmlTypeSerializer:gd","FaultReason:ge","FaultCode:gf","FaultException$1:gg","FaultException:gh","DiscoverResponseResult:gi","XmlaSoapMethodResult:gj","IXmlaMethodResult:gk","ExecuteResponseResult:gl","DatabaseXmlTypeSerializer:gm","CubeXmlTypeSerializer:gn","DimensionXmlTypeSerializer:go","HierarchyXmlTypeSerializer:gp","LevelXmlTypeSerializer:gq","MeasureXmlTypeSerializer:gr","MeasureGroupXmlTypeSerializer:gs","MeasureGroupDimensionXmlTypeSerializer:gt","MemberXmlTypeSerializer:gu","KpiXmlTypeSerializer:gv","ResultXmlTypeSerializer:gw","ArraySerializer:gx","AxisXmlTypeSerializer:gy","TupleXmlTypeSerializer:gz","AxisMemberXmlTypeSerializer:g0","CellXmlTypeSerializer:g1","XmlaSoapMethodExecute:g2","XmlaSoapMethod:g3","XmlaSoapMethodDiscover:g4","XmlaSoapMessageHeader:g5","CatalogConstants:g6","DbSchemaConstants:ha","CubeConstants:hf","DimensionConstants:hg","HierarchyConstants:hh","InstanceConstants:hi","KpiConstants:hj","LevelConstants:hk","MeasureConstants:hl","MeasureGroupConstants:hm","MeasureGroupDimensionConstants:hn","MemberConstants:ho","OlapSchemaConstants:hp","CubeRestrictions:hq","DimensionRestrictions:hr","HierarchyRestrictions:hs","KpiRestrictions:ht","LevelRestrictions:hu","MeasureRestrictions:hv","MeasureGroupRestrictions:hw","MeasureGroupDimensionRestrictions:hx","MemberRestrictions:hy","XmlaConstants:hz","XmlaNamespace:h0","IXmlaDataProviderFactory:h6","DefaultXmlaDataProviderFactory:h7","XmlaConnection:h8","RemoteXmlaDataProviderFactory:h9","JsonRemoteRequestSerializer:ia","IRemoteRequestSerializer:ib","RemoteRequest:ic","RemoteRequestType:id","JavaScriptSerializer:ie","RemoteRequestJsonTypeSeriazlier:ig","JsonTypeSeriazlierBase$1:ih","IJsonTypeSerializer$1:ii","JsonSerializerUtils:ij","jQueryUtils:ik","JsonRemoteResponseSerializer:il","IRemoteResponseSerializer:im","ArrayJsonSerializer:io","CatalogJsonTypeSeriazlier:ip","CubeJsonTypeSeriazlier:iq","DimensionJsonTypeSeriazlier:ir","HierarchyJsonTypeSeriazlier:is","LevelJsonTypeSeriazlier:it","MeasureJsonTypeSeriazlier:iu","MeasureGroupJsonTypeSeriazlier:iv","MeasureGroupDimensionJsonTypeSeriazlier:iw","MemberJsonTypeSeriazlier:ix","KpiJsonTypeSeriazlier:iy","ResultJsonTypeSeriazlier:iz","AxisJsonTypeSeriazlier:i0","TupleJsonTypeSeriazlier:i1","AxisMemberJsonTypeSeriazlier:i2","CellJsonTypeSeriazlier:i3","RemoteXmlaDataProvder:i4","XmlaDataSourceImpl:i5","XmlaDataSourceOptions:i6","RequestOptions:i7","XmlaDiscoverProperties:i8","CustomRemoteXmlaRequestSerializer:ja","CustomRemoteXmlaResponseSerializer:jb","OlapXmlaDataSource:jc","DataSourceBase:jd","AbstractEnumerable:je","Func$1:jf","AbstractEnumerator:jg","GenericEnumerable$1:jh","GenericEnumerator$1:ji"]);$.ig.util.defType("RemoteRequestType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("RemoteRequestType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("MdxElementType","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("MdxElementType",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("XmlaSoapMessageHeader","Enum",{init:function(){$.ig.Enum.prototype.init.call(this)},$type:new $.ig.Type("XmlaSoapMessageHeader",$.ig.Enum.prototype.$type)},true);$.ig.util.defType("IXmlaDataProvider","Object",{$type:new $.ig.Type("IXmlaDataProvider",null,[$.ig.IOlapDiscoverDataProvider.prototype.$type,$.ig.IOlapExecuteCommandProvider.prototype.$type])},true);$.ig.util.defType("MdxDataSourceImpl","OlapDataSource",{bb:null,a9:false,init:function(a){this.bb=new $.ig.List$1($.ig.MdxDimensionAxisProvider.prototype.$type,0);$.ig.OlapDataSource.prototype.init.call(this,a);this.mdxSettings(a.mdxSettings());this.mdxSourceOptions(a);this.dataProviderFactory(a.dataProviderFactory());this.a9=true;if(this.mdxSourceOptions()!=null){this.a9=this.mdxSourceOptions().enableResultCache()==true}},_mdxSourceOptions:null,mdxSourceOptions:function(value){if(arguments.length===1){this._mdxSourceOptions=value;return value}else{return this._mdxSourceOptions}},_mdxSettings:null,mdxSettings:function(value){if(arguments.length===1){this._mdxSettings=value;return value}else{return this._mdxSettings}},_catalog:null,catalog:function(value){if(arguments.length===1){this._catalog=value;return value}else{return this._catalog}},setCatalog:function(a){if(!this.isInitialized()){throw new $.ig.InvalidOperationException(1,"Data source is not initialized.")}return this.be(a)},bm:function(a,b){if(a.positionItemIndex()==b){a.clear()}else{var d=a.values().getEnumerator();while(d.moveNext()){var c=d.current();this.bm(c,b)}}},a8:function(a,b,c,d){var $self=this;var e=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);var g=c.getEnumerator();while(g.moveNext()){var f=g.current();var h=new $.ig.AxisElement(f.b(),new $.ig.List$1(String,0));for(var i=0;i<f.a().count();i++){var j=f.a().item(i);var k;if(function(){var $ret=$self.c().f(j,k);k=$ret.member;return $ret.ret}()){if(k.scope().hasValue()==false){h.a().add(j)}}}e.add(h)}var l=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);var n=b.getEnumerator();while(n.moveNext()){var m=n.current();var o=new $.ig.AxisElement(m.b(),new $.ig.List$1(String,0));for(var p=0;p<m.a().count();p++){var q=m.a().item(p);var r;if(function(){var $ret=$self.c().f(q,r);r=$ret.member;return $ret.ret}()){if(r.scope().hasValue()==false){o.a().add(q)}}}l.add(o)}var s=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);var u=a.getEnumerator();while(u.moveNext()){var t=u.current();var v=new $.ig.AxisElement(t.b(),new $.ig.List$1(String,0));for(var w=0;w<t.a().count();w++){var x=t.a().item(w);var y;if(function(){var $ret=$self.c().f(x,y);y=$ret.member;return $ret.ret}()){if(y.scope().hasValue()==false){v.a().add(x)}}}s.add(v)}return new $.ig.MdxSlicerAxisProvider($self,s,l,e,d)},getMembersOfLevel:function(a){var $self=this;var b=$self.getProviderDefaultProperties();var c=$self.getProviderDefaultRestrictions();if(c!=null){c.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a($.ig.MemberRestrictions.prototype.g);$ret.b(a);return $ret}())}var d=$self.dataProviderFactory().createDataProvider();var e=d.discoverMembersAsync(b,c);e.i(function(f){var h=f.m().getEnumerator();while(h.moveNext()){var g=h.current();$self.c().u(g)}});return e},getMembersOfHierarchy:function(a){var $self=this;var b=$self.getProviderDefaultProperties();var c=$self.getProviderDefaultRestrictions();if(c!=null){c.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a($.ig.MemberRestrictions.prototype.e);$ret.b(a);return $ret}())}var d=$self.dataProviderFactory().createDataProvider();var e=d.discoverMembersAsync(b,c);e.i(function(f){var h=f.m().getEnumerator();while(h.moveNext()){var g=h.current();$self.c().u(g)}});return e},getMembersOfMember:function(a){var $self=this;var b=$self.getProviderDefaultProperties();var c=$self.getProviderDefaultRestrictions();if(c!=null){c.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a($.ig.MemberRestrictions.prototype.j);$ret.b(a);return $ret}());c.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a($.ig.MemberRestrictions.prototype.l);$ret.b("1");return $ret}())}var d=$self.dataProviderFactory().createDataProvider();var e=d.discoverMembersAsync(b,c);e.continueWithTask$2($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Member.prototype.$type),$.ig.IEnumerable$1.prototype.$type.specialize($.ig.Member.prototype.$type),function(f){return $self.bd(f.m())});return e},bd:function(a){var $self=this;var b=new $.ig.List$1($.ig.Member.prototype.$type,0);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.add(c);break}if(b.count()>0){var e=b.item(0).levelUniqueName();if(!$self.c().b(e)){return $self.getMembersOfLevel(e).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Member.prototype.$type),function(f){return a})}}var f=new $.ig.TaskCompletionSource$1($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Member.prototype.$type),0);f.e(a);return f.b()},bp:function(a){var $self=this;if(a.isEmpty()){return}var c=a.axes().getEnumerator();while(c.moveNext()){var b=c.current();var d=b.tuples();for(var e=0;e<d.count();e++){var f=d.__inner[e].members();for(var g=0;g<f.count();g++){var h=f.item(g);var i;if(function(){var $ret=$self.c().g(h.uniqueName(),i);i=$ret.memberOrdinal;return $ret.ret}()){h.ordinal(i)}}}}},br:function(a,b){var c=0;var d=this.measureListIndex();if(a){var e=this.a6(c);if(e!=null&&this.measureListLocation()==$.ig.MeasureListLocation.prototype.columns){if(d>-1){var f=e.d();if(f!=null){this.bm(f,d-1)}}}c++}if(b){var g=this.a6(c);if(g!=null&&this.measureListLocation()==$.ig.MeasureListLocation.prototype.rows){if(d>-1){var h=g.d();if(h!=null){this.bm(h,d-1)}}}}},bq:function(a,b,c){var d=0;if(c){var e=d<a.axes().count()?a.axes().item(d):null;var f=e!=null?this.a6(d):null;if(f!=null){f.d(e.positionResolver().rootPositionInfo())}d++}if(b){var g=d<a.axes().count()?a.axes().item(d):null;var h=g!=null?this.a6(d):null;if(h!=null){h.d(g.positionResolver().rootPositionInfo())}d++}},ba:function(a,b,c,d){var $self=this;d=new $.ig.Dictionary$2(String,$.ig.IList$1.prototype.$type.specialize($.ig.PositionInfo.prototype.$type),0);var e=$self.ae();for(var f=0;f<e.count();f++){var g=e.item(f);var h;if(!function(){var $ret=d.tryGetValue(g.c(),h);h=$ret.value;return $ret.ret}()){h=new $.ig.List$1($.ig.PositionInfo.prototype.$type,0);d.add(g.c(),h)}if(c){if($self.l()==null){$self.l(new $.ig.OlapResultView($self.result(),$self.result(),a,b))}var i=$self.l().expandTupleMember(g.c(),g.b(),g.a());if(i==null){h.add(g)}else{var j=$self.l();$self.l(i);$.ig.ResultViewHelper.prototype.f(g.c(),j,$self.l());$.ig.ResultViewHelper.prototype.e(g.c(),g.b(),g.a(),true,$self.l());$self.result($self.l().visibleResult());$self.bp($self.result());$self.bq($self.l().visibleResult(),b,a)}}else{h.add(g)}}$self.bh(a,b,c);var k=new $.ig.List$1($.ig.IMdxAxis.prototype.$type,0);var m=d.getEnumerator();while(m.moveNext()){var l=m.current();var n=$self.a2(l.key());if(n==null){continue}if(n.positionResolver().hasUnregisterdPositions()){n.positionResolver().completeRegisterPositions()}var o=$self.result().axes().indexOf(n);var p=$self.a6(o);var q=p.createAxis(o);var r=new $.ig.List$1($.ig.IPositionItem$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),0);var t=l.value().getEnumerator();while(t.moveNext()){var s=t.current();if(s.b()<n.tuples().count()){var u=n.tuples().__inner[s.b()];var v=u.item(s.a());r.add(v)}}if(r.count()>0){p=new $.ig.MdxDimensionAxisProvider(1,n,p.g(),r);var w=p.extendAxis(q,q.axisIndex());k.add(w)}}$self.ae().clear();return{ret:k,axisPositionsMap:d};return{axisPositionsMap:d}},a4:function(a,b,c){var d=null;if(a.count()>0){d=this.a6(c);if(b){var e=null;if(d!=null){e=d.d()}var f=c==0?this.mdxSettings().a():this.mdxSettings().b();d=new $.ig.MdxDimensionAxisProvider(0,this,f,a,e);this.bo(c,d)}}if(d!=null){return d.createAxis(c)}return null},bh:function(a,b,c){var $self=this;if($self.result()!=null){var d=new $.ig.Dictionary$2(String,$.ig.IList$1.prototype.$type.specialize($.ig.PositionInfo.prototype.$type),0);var e=$self.ad();for(var f=0;f<e.count();f++){var g=e.item(f);var h;if(!function(){var $ret=d.tryGetValue(g.c(),h);h=$ret.value;return $ret.ret}()){h=new $.ig.List$1($.ig.PositionInfo.prototype.$type,0);d.add(g.c(),h)}h.add(g);if(c){if($self.l()==null){$self.l(new $.ig.OlapResultView($self.result(),$self.result(),a,b))}else{$self.l($self.l().collapseTupleMember(g.c(),g.b(),g.a()));$self.result($self.l().visibleResult());$self.bp($self.result());$self.bq($self.l().visibleResult(),b,a)}}}var i=new $.ig.List$1($.ig.OlapResultAxis.prototype.$type,0);var k=d.getEnumerator();while(k.moveNext()){var j=k.current();var l=$self.a2(j.key());if(l==null){continue}if(l.positionResolver().hasUnregisterdPositions()){l.positionResolver().completeRegisterPositions()}if(!i.contains(l)){i.add(l)}if(!c){var n=j.value().getEnumerator();while(n.moveNext()){var m=n.current();if(m.b()<l.tuples().count()){var o=l.tuples().__inner[m.b()];var p=o.item(m.a());var q=l.positionResolver().getHostPositionItemInfo(o,m.a());var r=q.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(s){return s.key()==p.key()}).firstOrDefault$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(r!=null){r.isExpanded(false)}}}}}if(!c&&!$self.result().isEmpty()){$self.bq($self.result(),b,a)}$self.ad().clear()}},bg:function(){this.catalog(null);this.cubes(new $.ig.ArrayListCollection$1($.ig.Cube.prototype.$type));this.au()},bc:function(){var $self=this;var a=$self.dataProviderFactory().createDataProvider();var b=$self.getProviderDefaultProperties();var c=a.discoverCatalogsAsync(b,null).continueWithTask$2($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Catalog.prototype.$type),$.ig.IEnumerable$1.prototype.$type.specialize($.ig.Catalog.prototype.$type),function(d){$self.catalogs($self.a1($.ig.Catalog.prototype.$type,d.m()));return d});return c},be:function(a){var $self=this;if(String.isNullOrEmpty(a)){if(a==null){throw new $.ig.ArgumentNullException("catalogName")}throw new $.ig.InvalidOperationException(1,"catalogName cannot be empty.")}var b=new $.ig.TaskCompletionSource$1($.ig.IList$1.prototype.$type.specialize($.ig.Cube.prototype.$type),0);if($self.catalog()!=null){if($self.catalog().name()==a){b.e($self.cubes());return b.b()}$self.bg()}var d=$self.catalogs().getEnumerator();while(d.moveNext()){var c=d.current();if(c.name()==a){$self.catalog(c);break}}if($self.cubes()==null||$self.cubes().count()==0){$self.aq(a).i(function(e){if(e.a()==null){b.e(e.m());return}b.d(e.a())})}else{b.e($self.cubes())}return b.b()},am:function(){var $self=this;var a=new $.ig.TaskCompletionSource$1($.ig.OlapMetadataTreeItem.prototype.$type,0);if($self.isInitialized()){a.e($self.metadataTree());return a.b()}var b=$self.mdxSourceOptions().catalog();var c=$self.mdxSourceOptions().cube();$self.columnAxis().collectionChanged=$.ig.Delegate.prototype.combine($self.columnAxis().collectionChanged,$self.bi.runOn($self));$self.rowAxis().collectionChanged=$.ig.Delegate.prototype.combine($self.rowAxis().collectionChanged,$self.bn.runOn($self));$self.filters().collectionChanged=$.ig.Delegate.prototype.combine($self.filters().collectionChanged,$self.bk.runOn($self));$self.measures().collectionChanged=$.ig.Delegate.prototype.combine($self.measures().collectionChanged,$self.bl.runOn($self));var d=$self.bc();if(String.isNullOrEmpty(b)){d.i(function(e){if(e.a()==null){$self.aw();var f=function(){var $ret=new $.ig.OlapResult;$ret.isEmpty(true);return $ret}();$self.l(new $.ig.OlapResultView(f,f,false,false));$self.result(f);a.e(null);return}a.d(e.a())});return a.b()}var e=d.continueWithTask$1($.ig.IList$1.prototype.$type.specialize($.ig.Cube.prototype.$type),function(f){if(f.a()==null){return $self.be(b)}var g=new $.ig.TaskCompletionSource$1($.ig.IList$1.prototype.$type.specialize($.ig.Cube.prototype.$type),0);g.d(f.a());return g.b()});if(String.isNullOrEmpty(c)){e.i(function(f){if(f.a()==null){$self.aw();var g=function(){var $ret=new $.ig.OlapResult;$ret.isEmpty(true);return $ret}();$self.l(new $.ig.OlapResultView(g,g,false,false));$self.result(g);a.e(null);return}a.d(f.a())});return a.b()}var f=e.continueWithTask$1($.ig.OlapMetadataTreeItem.prototype.$type,function(g){return $self.an(c)}).continueWithTask$1($.ig.OlapMetadataTreeItem.prototype.$type,function(g){return $self.ak()});return f},ai:function(){var $self=this;var a=$self.m();var b=$self.s();var c=$self.r();var d=$self.n();var e=$self.ae().count()>0;var f=$self.ad().count()>0;var g=$self.af.count()>0;if(!a&&!b&&!c&&!d&&!e&&!f&&!g){var h=new $.ig.TaskCompletionSource$1($.ig.OlapResult.prototype.$type,0);h.e($self.result());return h.b()}var i=$self.columnAxis().count()>0;var j=$self.rowAxis().count()>0;if($self.rowAxis().count()==0&&$self.columnAxis().count()==0&&$self.measures().count()==0){var k=function(){var $ret=new $.ig.OlapResult;$ret.isEmpty(true);return $ret}();var l=new $.ig.TaskCompletionSource$1($.ig.OlapResult.prototype.$type,0);l.e(k);$self.l(new $.ig.OlapResultView(k,k,false,false));$self.result(k);$self.bp(k);$self.bq($self.l().visibleResult(),j,i);$self.clearPendingChanges();return l.b()}if($self.r()){$self.br(i,j)}$self.r(false);$self.n(false);$self.q(false);var m=false;if($self.a9&&!$self.m()&&!$self.s()){m=true}var n=null;var o=null;var p=0;n=$self.a4($self.columnAxis(),$self.m(),p);$self.m(false);if(n!=null){p++}o=$self.a4($self.rowAxis(),$self.s(),p);$self.s(false);if(o!=null){o.axisIndex(p);p++}var q;var r=function(){var $ret=$self.ba(i,j,m,q);q=$ret.axisPositionsMap;return $ret.ret}();var s=$self.a8($self.u(),$self.w(),$self.v(),$self.mdxSettings());var t=s.createAxis(p);var u=new $.ig.MdxQueryBuilder(1,$self.mdxSettings());var v=$self.getProviderDefaultProperties();var w=$self.getProviderDefaultRestrictions();var x=$self.dataProviderFactory().createDataProvider();if(m&&!g&&(e||f)){var y=null;if(n!=null){var z=r.where$1($.ig.IMdxAxis.prototype.$type,function(aa){return aa.axisIndex()==n.axisIndex()}).firstOrDefault$1($.ig.IMdxAxis.prototype.$type);var aa;(function(){var $ret=q.tryGetValue("Axis0",aa);aa=$ret.value;return $ret.ret})();if(z!=null){var ab=u.c(z,o,t,new $.ig.MdxCalculatedMembersCache,$self.cube().name());y=x.executeStatementAsync(ab,v,w);y=y.continueWithTask$2($.ig.OlapResult.prototype.$type,$.ig.OlapResult.prototype.$type,function(ac){if($self.l()==null){$self.l(new $.ig.OlapResultView($self.result(),$self.result(),i,j))}var ad=$self.l();$self.l($self.l().extend(ac.m(),"Axis0"));$self.result($self.l().visibleResult());$self.bp($self.result());$.ig.ResultViewHelper.prototype.f("Axis0",ad,$self.l());var af=aa.getEnumerator();while(af.moveNext()){var ae=af.current();$.ig.ResultViewHelper.prototype.e(ae.c(),ae.b(),ae.a(),true,$self.l())}var ag=j;var ah=i;$self.bq($self.l().visibleResult(),ag,ah);var ai=new $.ig.TaskCompletionSource$1($.ig.OlapResult.prototype.$type,0);ai.e($self.l().visibleResult());return ai.b()})}}if(o!=null){var ac=r.where$1($.ig.IMdxAxis.prototype.$type,function(ad){return ad.axisIndex()==o.axisIndex()}).firstOrDefault$1($.ig.IMdxAxis.prototype.$type);var ad=$self.l().hasColumns()?"Axis1":"Axis0";var ae;(function(){var $ret=q.tryGetValue(ad,ae);ae=$ret.value;return $ret.ret})();if(ac!=null){if(y!=null){y=y.continueWithTask$1($.ig.OlapResult.prototype.$type,function(af){n=$self.a4($self.columnAxis(),false,0);var ag=u.c(n,ac,t,new $.ig.MdxCalculatedMembersCache,$self.cube().name());return x.executeStatementAsync(ag,v,w)})}else{var af=u.c(n,ac,t,new $.ig.MdxCalculatedMembersCache,$self.cube().name());y=x.executeStatementAsync(af,v,w)}y=y.continueWithTask$2($.ig.OlapResult.prototype.$type,$.ig.OlapResult.prototype.$type,function(ag){if($self.l()==null){$self.l(new $.ig.OlapResultView($self.result(),$self.result(),i,j))}var ah=$self.l();$self.l($self.l().extend(ag.m(),ad));$self.result($self.l().visibleResult());$self.bp($self.result());$.ig.ResultViewHelper.prototype.f(ad,ah,$self.l());var aj=ae.getEnumerator();while(aj.moveNext()){var ai=aj.current();$.ig.ResultViewHelper.prototype.e(ai.c(),ai.b(),ai.a(),true,$self.l())}var ak=j;var al=i;$self.bq($self.l().visibleResult(),ak,al);var am=new $.ig.TaskCompletionSource$1($.ig.OlapResult.prototype.$type,0);am.e($self.l().visibleResult());return am.b()})}}if(y!=null){return y}var ag=new $.ig.TaskCompletionSource$1($.ig.OlapResult.prototype.$type,0);ag.e($self.result());return ag.b()}else{if(g){$self.af.clear()}var ah=u.c(n,o,t,new $.ig.MdxCalculatedMembersCache,$self.cube().name());return x.executeStatementAsync(ah,v,w).j($.ig.OlapResult.prototype.$type,function(ai){$self.l(new $.ig.OlapResultView(ai.m(),ai.m(),i,j));$self.result($self.l().visibleResult());$self.bp($self.result());var aj=j;var ak=i;$self.bq($self.l().visibleResult(),aj,ak);$self.clearPendingChanges();return $self.result()})}},an:function(a){if(this.catalog()==null){throw new $.ig.InvalidOperationException(1,"Data source has no Catalog set.")}return $.ig.OlapDataSource.prototype.an.call(this,a)},ao:function(a){if(this.catalog()==null){throw new $.ig.InvalidOperationException(1,"Data source has no Catalog set.")}return $.ig.OlapDataSource.prototype.ao.call(this,a)},ah:function(){var $self=this;var a=new $.ig.List$1($.ig.Task.prototype.$type,0);var b=$self.getProviderDefaultProperties();var c=$self.getProviderDefaultRestrictions();var d=$self.dataProviderFactory().createDataProvider();a.add(d.discoverMeasuresAsync(b,c));a.add(d.discoverKpisAsync(b,c));a.add(d.discoverDimensionsAsync(b,c));a.add(d.discoverHierarchiesAsync(b,c));a.add(d.discoverLevelsAsync(b,c));a.add(d.discoverMeasureGroupDimensionsAsync(b,c));a.add($self.ar());var e=new Array(a.count());a.copyTo(e,0);var f=new $.ig.TaskFactory;var g=new $.ig.CubeMetaItemsCache;$self.c(g);return f.c(e,function(h){var i=h[0];var j=h[1];var k=h[2];var l=h[3];var m=h[4];var n=h[5];g.s(i.m());g.n(k.m());g.o(l.m());g.r(m.m());g.p(j.m());if($self.measureGroups()!=null){g.t(n.m());g.a(new $.ig.MeasureGroupMetaItemsCache(g.n(),g.s(),g.p(),g.t()))}})},a1:function($t,a){var b=new $.ig.ArrayListCollection$1($t);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.add(c)}return b},getProviderDefaultRestrictions:function(){var $self=this;var a=$.ig.OlapDataSource.prototype.getProviderDefaultRestrictions.call($self);if($self.catalog()!=null){a.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a($.ig.CubeRestrictions.prototype.a);$ret.b($self.catalog().name());return $ret}());if($self.cube()!=null){a.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a($.ig.CubeRestrictions.prototype.b);$ret.b($self.cube().name());return $ret}())}}return a},bi:function(a,b){this.m(true);this.bt(0,this.columnAxis(),this.rowAxis());this.ay(b,this.u());this.a0(b,this.columnAxis());if(b.action()!=$.ig.NotifyCollectionChangedAction.prototype.reset&&this.columnAxis()!=null){var c=Math.max(b.newStartingIndex(),b.oldStartingIndex());this.bs("Axis0",c)}},bn:function(a,b){this.s(true);this.bt(1,this.rowAxis(),this.columnAxis());this.ay(b,this.w());this.a0(b,this.rowAxis());if(b.action()!=$.ig.NotifyCollectionChangedAction.prototype.reset&&this.rowAxis()!=null){var c=this.columnAxis()==null?"Axis0":"Axis1";var d=Math.max(b.newStartingIndex(),b.oldStartingIndex());this.bs(c,d)}},bs:function(a,b){var c=this.ad();for(var d=c.count()-1;d>=0;d--){var e=c.item(d);if(e.c()==a&&e.a()>=b){c.removeAt(d)}}var f=this.ae();for(var g=f.count()-1;g>=0;g--){var h=f.item(g);if(h.c()==a&&h.a()>=b){f.removeAt(g)}}},bt:function(a,b,c){if(b.count()>0){if(c.count()>0){if(this.bb.count()<2){this.bb.insert(a,null)}}else{if(this.bb.count()==0){this.bb.insert(0,null)}}}else{if(this.bb.count()>0){if(this.bb.count()>1){this.bb.removeAt(a)}else{this.bb.removeAt(0)}}}},bk:function(a,b){this.n(true);this.ay(b,this.v())},bl:function(a,b){this.r(true);this.az()},bj:function(a,b,c){var $self=this;var d=null;var f=a.getEnumerator();while(f.moveNext()){var e=f.current();if(e.a()==b){d=e;break}}if(d==null){a.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a(b);$ret.b(c);return $ret}())}},a2:function(a){var $self=this;if($self.result()!=null&&$self.result().axes().count()>0){return $self.result().axes().where$1($.ig.OlapResultAxis.prototype.$type,function(b){return b.name()==a
}).firstOrDefault$1($.ig.OlapResultAxis.prototype.$type)}return null},a6:function(a){if(a<this.bb.count()){return this.bb.item(a)}return null},bo:function(a,b){this.bb.item(a,b)},$type:new $.ig.Type("MdxDataSourceImpl",$.ig.OlapDataSource.prototype.$type)},true);$.ig.util.defType("MdxDataSourceOptions","DataSourceBaseOptions",{init:function(){$.ig.DataSourceBaseOptions.prototype.init.call(this)},_catalog:null,catalog:function(value){if(arguments.length===1){this._catalog=value;return value}else{return this._catalog}},_discoverProperties:null,discoverProperties:function(value){if(arguments.length===1){this._discoverProperties=value;return value}else{return this._discoverProperties}},_executeProperties:null,executeProperties:function(value){if(arguments.length===1){this._executeProperties=value;return value}else{return this._executeProperties}},_dataProviderFactory:null,dataProviderFactory:function(value){if(arguments.length===1){this._dataProviderFactory=value;return value}else{return this._dataProviderFactory}},_enableResultCache:false,enableResultCache:function(value){if(arguments.length===1){this._enableResultCache=value;return value}else{return this._enableResultCache}},_mdxSettings:null,mdxSettings:function(value){if(arguments.length===1){this._mdxSettings=value;return value}else{return this._mdxSettings}},$type:new $.ig.Type("MdxDataSourceOptions",$.ig.DataSourceBaseOptions.prototype.$type)},true);$.ig.util.defType("XmlaDataProvider","Object",{a:null,b:null,init:function(a,b){$.ig.Object.prototype.init.call(this);this.a=a;this.b=b},discoverCatalogsAsync:function(a,b){return this.c($.ig.Catalog.prototype.$type,new $.ig.DatabaseXmlTypeSerializer,$.ig.DbSchemaConstants.prototype.a,a,b)},discoverCubesAsync:function(a,b){return this.c($.ig.Cube.prototype.$type,new $.ig.CubeXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.a,a,b)},discoverDimensionsAsync:function(a,b){return this.c($.ig.Dimension.prototype.$type,new $.ig.DimensionXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.b,a,b)},discoverHierarchiesAsync:function(a,b){return this.c($.ig.Hierarchy.prototype.$type,new $.ig.HierarchyXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.c,a,b)},discoverLevelsAsync:function(a,b){return this.c($.ig.Level.prototype.$type,new $.ig.LevelXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.e,a,b)},discoverMeasuresAsync:function(a,b){return this.c($.ig.Measure.prototype.$type,new $.ig.MeasureXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.h,a,b)},discoverMeasureGroupsAsync:function(a,b){return this.c($.ig.MeasureGroup.prototype.$type,new $.ig.MeasureGroupXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.g,a,b)},discoverMeasureGroupDimensionsAsync:function(a,b){return this.c($.ig.MeasureGroupDimension.prototype.$type,new $.ig.MeasureGroupDimensionXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.f,a,b)},discoverMembersAsync:function(a,b){return this.c($.ig.Member.prototype.$type,new $.ig.MemberXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.i,a,b)},discoverKpisAsync:function(a,b){return this.c($.ig.Kpi.prototype.$type,new $.ig.KpiXmlTypeSerializer,$.ig.OlapSchemaConstants.prototype.d,a,b)},executeStatementAsync:function(a,b,c){var $self=this;var d=new $.ig.TaskCompletionSource$1($.ig.OlapResult.prototype.$type,0);var e=$self.a.getXmlaSoapWebClient$1($.ig.ExecuteResponseResult.prototype.$type);var f=new $.ig.ResultXmlTypeSerializer;e.requestCompleted=$.ig.Delegate.prototype.combine(e.requestCompleted,function(g,h){return $self.e($.ig.OlapResult.prototype.$type,f,h,d)});var g=new $.ig.XmlaSoapMethodExecute(a);$self.g(g,b,c);e.j(g);return d.b()},c:function($t,a,b,c,d){var $self=this;var e=new $.ig.TaskCompletionSource$1($.ig.IEnumerable$1.prototype.$type.specialize($t),0);var f=$self.a.getXmlaSoapWebClient$1($.ig.DiscoverResponseResult.prototype.$type);f.requestCompleted=$.ig.Delegate.prototype.combine(f.requestCompleted,function(g,h){return $self.d($t,a,h,e)});var g=new $.ig.XmlaSoapMethodDiscover(b);$self.f(g,c,d);f.j(g);return e.b()},f:function(a,b,c){if(c!=null){var e=c.getEnumerator();while(e.moveNext()){var d=e.current();a.l().add(d.a(),d.b())}}if(b!=null){var g=b.getEnumerator();while(g.moveNext()){var f=g.current();a.properties().add(new $.ig.XmlaQueryProperty(1,f.a(),f.b()))}}if(this.b!=null){this.b(a)}},g:function(a,b,c){if(c!=null){var e=c.getEnumerator();while(e.moveNext()){var d=e.current()}}if(b!=null){var g=b.getEnumerator();while(g.moveNext()){var f=g.current();a.properties().add(new $.ig.XmlaQueryProperty(1,f.a(),f.b()))}}if(this.b!=null){this.b(a)}},d:function($t,a,b,c){if(b.error()!=null){c.d(b.error())}else if(b.cancelled()){c.c()}else{var d=b.result();if(d!=null){var e=new $.ig.ArraySerializer;var f=e.a($t,b.result().returnElement(),$.ig.XName.prototype.e("row",$.ig.XmlaNamespace.prototype.e),a);c.e(f)}}},e:function($t,a,b,c){if(b.error()!=null){c.d(b.error())}else if(b.cancelled()){c.c()}else{var d=b.result();if(d!=null){var e=a.deserialize(b.result().returnElement());c.e(e)}}},$type:new $.ig.Type("XmlaDataProvider",$.ig.Object.prototype.$type,[$.ig.IXmlaDataProvider.prototype.$type])},true);$.ig.util.defType("CatalogConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("CatalogConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("DbSchemaConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("DbSchemaConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("CubeConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("CubeConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("DimensionConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("DimensionConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("HierarchyConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("HierarchyConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("InstanceConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("InstanceConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("KpiConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("KpiConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("LevelConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("LevelConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MeasureConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureGroupConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MeasureGroupConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureGroupDimensionConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MeasureGroupDimensionConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MemberConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MemberConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("OlapSchemaConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("OlapSchemaConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("CubeRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("CubeRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("DimensionRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("DimensionRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("HierarchyRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("HierarchyRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("KpiRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("KpiRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("LevelRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("LevelRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MeasureRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureGroupRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MeasureGroupRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MeasureGroupDimensionRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MeasureGroupDimensionRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MemberRestrictions","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MemberRestrictions",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ICoreXmlaConnection","Object",{$type:new $.ig.Type("ICoreXmlaConnection",null,[$.ig.IConnection.prototype.$type])},true);$.ig.util.defType("ArraySerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},a:function($t,a,b,c){var d=new $.ig.List$1($t,0);var f=a.e(b).getEnumerator();while(f.moveNext()){var e=f.current();d.add(c.deserialize(e))}return d},$type:new $.ig.Type("ArraySerializer",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IXmlTypeSerializer$1","Object",{$type:new $.ig.Type("IXmlTypeSerializer$1",null)},true);$.ig.util.defType("AxisXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.e(b.k($.ig.XName.prototype.e("name","")));var d=b.h($.ig.XName.prototype.e("Tuples",$.ig.XmlaNamespace.prototype.d));var e=new $.ig.ArraySerializer;var f=e.a($.ig.OlapResultTuple.prototype.$type,d,$.ig.XName.prototype.e("Tuple",$.ig.XmlaNamespace.prototype.d),new $.ig.TupleXmlTypeSerializer);var g=0;if(f.count()>0){g=f.__inner[0].members().count()}return function(){var $ret=new $.ig.OlapResultAxis(f,g);$ret.name(c);return $ret}()},$type:new $.ig.Type("AxisXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.OlapResultAxis.prototype.$type)])},true);$.ig.util.defType("TupleXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=new $.ig.ArraySerializer;var d=c.a($.ig.OlapResultAxisMember.prototype.$type,b,$.ig.XName.prototype.e("Member",$.ig.XmlaNamespace.prototype.d),new $.ig.AxisMemberXmlTypeSerializer);var e=new $.ig.OlapResultTuple(d);var g=d.getEnumerator();while(g.moveNext()){var f=g.current();f.position(e)}return e},$type:new $.ig.Type("TupleXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.OlapResultTuple.prototype.$type)])},true);$.ig.util.defType("AxisMemberXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e("UName",$.ig.XmlaNamespace.prototype.d)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e("LName",$.ig.XmlaNamespace.prototype.d)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e("Caption",$.ig.XmlaNamespace.prototype.d)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e("LNum",$.ig.XmlaNamespace.prototype.d)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e("DisplayInfo",$.ig.XmlaNamespace.prototype.d)));var h=b.k($.ig.XName.prototype.e("Hierarchy","")).d();var i=function(){var $ret=new $.ig.OlapResultAxisMember;$ret.hierarchyUniqueName(h);$ret.levelUniqueName(d);$ret.levelNumber($.ig.Number.prototype.parseInt(f));$ret.uniqueName(c);$ret.caption(e);$ret.displayInfo(String.isNullOrEmpty(g)?0:$.ig.Number.prototype.parseInt(g));return $ret}();var k=b.d().getEnumerator();while(k.moveNext()){var j=k.current();switch(j.l().c()){case"UName":case"LName":case"Caption":case"LNum":case"DisplayInfo":continue;default:i.properties().add(j.l().c(),j.i());break}}return i},$type:new $.ig.Type("AxisMemberXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.OlapResultAxisMember.prototype.$type)])},true);$.ig.util.defType("CellXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=b.k($.ig.XName.prototype.e("CellOrdinal","")).d();var d=function(){var $ret=new $.ig.OlapResultCell;$ret.cellOrdinal($.ig.Number.prototype.parseInt(c));return $ret}();var f=b.d().getEnumerator();while(f.moveNext()){var e=f.current();d.properties().add(e.l().c(),e.i())}return d},$type:new $.ig.Type("CellXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.OlapResultCell.prototype.$type)])},true);$.ig.util.defType("CubeXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.g,$.ig.XmlaNamespace.prototype.e)));var f;var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.f,$.ig.XmlaNamespace.prototype.e)));switch(g){case $.ig.XmlaConstants.prototype.d:f=$.ig.CubeType.prototype.cube;break;case $.ig.XmlaConstants.prototype.k:f=$.ig.CubeType.prototype.dimension;break;default:f=$.ig.CubeType.prototype.unknown;break}var h=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));var i=$.ig.SerializerUtils.prototype.b(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.l,$.ig.XmlaNamespace.prototype.e)));var j=$.ig.SerializerUtils.prototype.b(b.h($.ig.XName.prototype.e($.ig.CubeConstants.prototype.m,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.Cube;$ret.name(c);$ret.caption(d);$ret.description(e);$ret.cubeType(f);$ret.catalogName(h);$ret.lastProcessed(i);$ret.lastUpdated(j);return $ret}()},$type:new $.ig.Type("CubeXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Cube.prototype.$type)])},true);$.ig.util.defType("DatabaseXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CatalogConstants.prototype.a,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.CatalogConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.Catalog;$ret.name(c);$ret.caption(c);$ret.uniqueName(c);$ret.description(d);return $ret}()},$type:new $.ig.Type("DatabaseXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Catalog.prototype.$type)])},true);$.ig.util.defType("DimensionXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.DimensionConstants.prototype.i,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.DimensionConstants.prototype.l,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.DimensionConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.DimensionConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.DimensionConstants.prototype.k,$.ig.XmlaNamespace.prototype.e)));var h=$.ig.Number.prototype.parseInt(g);var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.DimensionConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.Dimension;$ret.name(c);$ret.uniqueName(d);$ret.caption(e);$ret.description(f);$ret.dimensionType(h);$ret.defaultHierarchy(i);return $ret}()},$type:new $.ig.Type("DimensionXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Dimension.prototype.$type)])},true);$.ig.util.defType("FaultError","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_errorCode:null,errorCode:function(value){if(arguments.length===1){this._errorCode=value;return value}else{return this._errorCode}},_description:null,description:function(value){if(arguments.length===1){this._description=value;return value}else{return this._description}},_source:null,source:function(value){if(arguments.length===1){this._source=value;return value}else{return this._source}},_helpFile:null,helpFile:function(value){if(arguments.length===1){this._helpFile=value;return value}else{return this._helpFile}},_severity:null,severity:function(value){if(arguments.length===1){this._severity=value;return value}else{return this._severity}},$type:new $.ig.Type("FaultError",$.ig.Object.prototype.$type)},true);$.ig.util.defType("ErrorXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var b=new $.ig.FaultError;var c=a;b.errorCode($.ig.SerializerUtils.prototype.e(c.k($.ig.XName.prototype.e("ErrorCode",""))));b.description($.ig.SerializerUtils.prototype.e(c.k($.ig.XName.prototype.e("Description",""))));b.source($.ig.SerializerUtils.prototype.e(c.k($.ig.XName.prototype.e("Source",""))));b.helpFile($.ig.SerializerUtils.prototype.e(c.k($.ig.XName.prototype.e("HelpFile",""))));b.severity($.ig.SerializerUtils.prototype.e(c.k($.ig.XName.prototype.e("Severity",""))));return b},$type:new $.ig.Type("ErrorXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.FaultError.prototype.$type)])},true);$.ig.util.defType("HierarchyXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.q,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.t,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.m,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var h=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.a,$.ig.XmlaNamespace.prototype.e)));var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.j,$.ig.XmlaNamespace.prototype.e)));var j=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.o,$.ig.XmlaNamespace.prototype.e)));var k=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.HierarchyConstants.prototype.s,$.ig.XmlaNamespace.prototype.e)));var l=k==null?1:$.ig.Number.prototype.parseInt(k);return function(){var $ret=new $.ig.Hierarchy;$ret.name(c);$ret.uniqueName(d);$ret.caption(e);$ret.description(f);$ret.defaultMember(g);$ret.allMember(h);$ret.dimensionUniqueName(i);$ret.hierarchyDisplayFolder(j);$ret.hierarchyOrigin(l);return $ret}()},$type:new $.ig.Type("HierarchyXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Hierarchy.prototype.$type)])},true);$.ig.util.defType("KpiXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.h,$.ig.XmlaNamespace.prototype.e)));var d=c;var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.p,$.ig.XmlaNamespace.prototype.e)));var h=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.f,$.ig.XmlaNamespace.prototype.e)));var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.n,$.ig.XmlaNamespace.prototype.e)));var j=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.g,$.ig.XmlaNamespace.prototype.e)));var k=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.j,$.ig.XmlaNamespace.prototype.e)));var l=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.l,$.ig.XmlaNamespace.prototype.e)));var m=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.o,$.ig.XmlaNamespace.prototype.e)));var n=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.k,$.ig.XmlaNamespace.prototype.e)));var o=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.m,$.ig.XmlaNamespace.prototype.e)));var p=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.i,$.ig.XmlaNamespace.prototype.e)));var q=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.KpiConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.Kpi;$ret.name(c);$ret.uniqueName(d);$ret.caption(e);$ret.description(f);$ret.measureGroupName(g);$ret.kpiDisplayFolder(h);$ret.kpiValue(i);$ret.kpiGoal(j);$ret.kpiStatus(k);$ret.kpiTrend(l);$ret.kpiStatusGraphic(n);$ret.kpiTrendGraphic(o);$ret.kpiWeight(m);$ret.parentKpiName(p);$ret.currentTimeMember(q);return $ret}()},$type:new $.ig.Type("KpiXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Kpi.prototype.$type)])},true);$.ig.util.defType("LevelXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.l,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.q,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.g,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var h=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.f,$.ig.XmlaNamespace.prototype.e)));var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.m,$.ig.XmlaNamespace.prototype.e)));var j=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.h,$.ig.XmlaNamespace.prototype.e)));var k=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.o,$.ig.XmlaNamespace.prototype.e)));var l=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.LevelConstants.prototype.n,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.Level;$ret.name(c);$ret.uniqueName(d);$ret.caption(e);$ret.description(f);$ret.dimensionUniqueName(g);$ret.hierarchyUniqueName(h);$ret.depth($.ig.Number.prototype.parseInt(i));$ret.membersCount($.ig.Number.prototype.parseInt(j));$ret.levelOrigin(String.isNullOrEmpty(k)?0:$.ig.Number.prototype.parseInt(k));$ret.levelOrderingProperty(l);return $ret}()},$type:new $.ig.Type("LevelXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Level.prototype.$type)])},true);$.ig.util.defType("MeasureGroupDimensionXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.a,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.b,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.j,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.h,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.i,$.ig.XmlaNamespace.prototype.e)));var h=g=="ONE"?$.ig.CardinalityType.prototype.one:$.ig.CardinalityType.prototype.many;var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));var j=i=="ONE"?$.ig.CardinalityType.prototype.one:$.ig.CardinalityType.prototype.many;var k=$.ig.SerializerUtils.prototype.a(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.f,$.ig.XmlaNamespace.prototype.e)));var l=$.ig.SerializerUtils.prototype.a(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var m=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.g,$.ig.XmlaNamespace.prototype.e)));var n=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupDimensionConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.MeasureGroupDimension;$ret.catalogName(c);$ret.cubeName(d);$ret.measureGroupName(e);$ret.dimensionUniqueName(f);$ret.measureGroupCardinality(h);$ret.dimensionCardinality(j);$ret.isDimensionVisible(k);$ret.isFactDimension(l);$ret.dimensionPath(m);$ret.dimensionGranularity(n);return $ret}()},$type:new $.ig.Type("MeasureGroupDimensionXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.MeasureGroupDimension.prototype.$type)])},true);$.ig.util.defType("MeasureGroupXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupConstants.prototype.a,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupConstants.prototype.b,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureGroupConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.MeasureGroup;$ret.catalogName(c);$ret.cubeName(d);$ret.name(e);$ret.caption(f);$ret.description(g);return $ret}()},$type:new $.ig.Type("MeasureGroupXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.MeasureGroup.prototype.$type)])},true);$.ig.util.defType("MeasureXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.l,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.n,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.h,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var h=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.j,$.ig.XmlaNamespace.prototype.e)));var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.g,$.ig.XmlaNamespace.prototype.e)));var j=$.ig.Number.prototype.parseInt(i);var k=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MeasureConstants.prototype.i,$.ig.XmlaNamespace.prototype.e)));return function(){var $ret=new $.ig.Measure;$ret.name(c);$ret.uniqueName(d);$ret.caption(e);$ret.description(f);$ret.defaultFormatString(g);$ret.measureGroupName(h);$ret.aggregatorType(j);$ret.measureDisplayFolder(k);return $ret}()},$type:new $.ig.Type("MeasureXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Measure.prototype.$type)])},true);$.ig.util.defType("MemberXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.a,$.ig.XmlaNamespace.prototype.e)));var d=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.c,$.ig.XmlaNamespace.prototype.e)));var e=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.o,$.ig.XmlaNamespace.prototype.e)));var f=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.q,$.ig.XmlaNamespace.prototype.e)));var g=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.p,$.ig.XmlaNamespace.prototype.e)));var h=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.e,$.ig.XmlaNamespace.prototype.e)));var i=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.g,$.ig.XmlaNamespace.prototype.e)));var j=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.k,$.ig.XmlaNamespace.prototype.e)));
var k=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.l,$.ig.XmlaNamespace.prototype.e)));var l=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.d,$.ig.XmlaNamespace.prototype.e)));var m=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.j,$.ig.XmlaNamespace.prototype.e)));var n=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.b,$.ig.XmlaNamespace.prototype.e)));var o=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.t,$.ig.XmlaNamespace.prototype.e)));var p=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.v,$.ig.XmlaNamespace.prototype.e)));var q=$.ig.SerializerUtils.prototype.f(b.h($.ig.XName.prototype.e($.ig.MemberConstants.prototype.s,$.ig.XmlaNamespace.prototype.e)));var r=$.ig.util.toNullable($.ig.Number.prototype.$type,null);return function(){var $ret=new $.ig.Member;$ret.catalogName(c);$ret.cubeName(d);$ret.dimensionUniqueName(h);$ret.hierarchyUniqueName(i);$ret.levelUniqueName(j);$ret.levelDepth($.ig.Number.prototype.parseInt(m));$ret.name(e);$ret.uniqueName(f);$ret.memberType($.ig.Number.prototype.parseInt(g));$ret.caption(k);$ret.childrenCardinality($.ig.Number.prototype.parseInt(n));$ret.description(l);$ret.parentUniqueName(o);$ret.scope(p==null?r:$.ig.Number.prototype.parseInt(p));$ret.parentLevel(String.isNullOrEmpty(q)?0:$.ig.Number.prototype.parseInt(q));return $ret}()},$type:new $.ig.Type("MemberXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.Member.prototype.$type)])},true);$.ig.util.defType("ResultXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;if(a.c()!=$.ig.XmlNodeType.prototype.element){return null}var b=a;var c=b.l().d();switch(c){case $.ig.XmlaNamespace.prototype.b:return function(){var $ret=new $.ig.OlapResult;$ret.isEmpty(true);return $ret}();case $.ig.XmlaNamespace.prototype.d:var d=b.h($.ig.XName.prototype.e("OlapInfo",$.ig.XmlaNamespace.prototype.d));var e=b.h($.ig.XName.prototype.e("Axes",$.ig.XmlaNamespace.prototype.d));var f=new $.ig.ArraySerializer;var g=f.a($.ig.OlapResultAxis.prototype.$type,e,$.ig.XName.prototype.e("Axis",$.ig.XmlaNamespace.prototype.d),new $.ig.AxisXmlTypeSerializer);var h=b.h($.ig.XName.prototype.e("CellData",$.ig.XmlaNamespace.prototype.d));var i=f.a($.ig.OlapResultCell.prototype.$type,h,$.ig.XName.prototype.e("Cell",$.ig.XmlaNamespace.prototype.d),new $.ig.CellXmlTypeSerializer);return function(){var $ret=new $.ig.OlapResult;$ret.axes(g);$ret.cells(i);return $ret}()}return null},$type:new $.ig.Type("ResultXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.OlapResult.prototype.$type)])},true);$.ig.util.defType("SerializerUtils","Object",{init:function(){$.ig.Object.prototype.init.call(this)},f:function(a){if(a!=null){return a.i()}else{return null}},e:function(a){if(a!=null){return a.d()}else{return null}},a:function(a){var b=$.ig.SerializerUtils.prototype.f(a).toLowerCase();return b=="true"},b:function(a){if(a!=null&&!String.isNullOrEmpty(a.i())){return $.ig.SerializerUtils.prototype.d(a.i())}else{return $.ig.SerializerUtils.prototype.c()}},d:function(a){var dateString_=a;var b;b=function(text){var match=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(.*)$/.exec(text);if(!match){throw"Invalid textual date representation."}var year=parseInt(match[1],10);var month=parseInt(match[2],10)-1;var day=parseInt(match[3],10);var hours=parseInt(match[4],10);var minutes=parseInt(match[5],10);var seconds=parseInt(match[6],10);return new Date(year,month,day,hours,minutes,seconds)}(dateString_);return b},c:function(){var a;a=new Date(2e3,0,1);return a},$type:new $.ig.Type("SerializerUtils",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaConstants","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("XmlaConstants",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaSoapFault","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("XmlaSoapFault",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaSoapFaultXmlTypeSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},deserialize:function(a){var $self=this;var b=a;var c=new $.ig.XmlaSoapFault;var e=b.d().getEnumerator();while(e.moveNext()){var d=e.current();switch(d.l().c()){case"faultcode":c.c($.ig.SerializerUtils.prototype.f(d));break;case"faultstring":c.d($.ig.SerializerUtils.prototype.f(d));break;case"faultactor":c.b($.ig.SerializerUtils.prototype.f(d));break}}var f=b.h($.ig.XName.prototype.e("detail",""));if(f!=null){var g=f.e($.ig.XName.prototype.e("Error",""));var h=new $.ig.List$1($.ig.FaultError.prototype.$type,0);var i=new $.ig.ErrorXmlTypeSerializer;var k=g.getEnumerator();while(k.moveNext()){var j=k.current();var l=i.deserialize(j);h.add(l)}c.a(function(){var $ret=new $.ig.FaultDetail;$ret.a(h.toArray());return $ret}())}return c},$type:new $.ig.Type("XmlaSoapFaultXmlTypeSerializer",$.ig.Object.prototype.$type,[$.ig.IXmlTypeSerializer$1.prototype.$type.specialize($.ig.XmlaSoapFault.prototype.$type)])},true);$.ig.util.defType("IXmlaMethodResult","Object",{$type:new $.ig.Type("IXmlaMethodResult",null)},true);$.ig.util.defType("XmlaSoapMethodResult","Object",{init:function(){$.ig.Object.prototype.init.call(this)},b:null,returnElement:function(a){if(arguments.length===1){this.b=a;return a}else{return this.b}},_sessionId:null,sessionId:function(value){if(arguments.length===1){this._sessionId=value;return value}else{return this._sessionId}},$type:new $.ig.Type("XmlaSoapMethodResult",$.ig.Object.prototype.$type,[$.ig.IXmlaMethodResult.prototype.$type])},true);$.ig.util.defType("DiscoverResponseResult","XmlaSoapMethodResult",{init:function(){$.ig.XmlaSoapMethodResult.prototype.init.call(this)},$type:new $.ig.Type("DiscoverResponseResult",$.ig.XmlaSoapMethodResult.prototype.$type)},true);$.ig.util.defType("RequestCompletedEventArgs$1","AsyncCompletedEventArgs",{$t:null,i:null,init:function($t,a,b,c,d){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.AsyncCompletedEventArgs.prototype.init.call(this,b,c,d);this.i=a},result:function(){$.ig.AsyncCompletedEventArgs.prototype.h.call(this);return this.i},$type:new $.ig.Type("RequestCompletedEventArgs$1",$.ig.AsyncCompletedEventArgs.prototype.$type)},true);$.ig.util.defType("ExecuteResponseResult","XmlaSoapMethodResult",{init:function(){$.ig.XmlaSoapMethodResult.prototype.init.call(this)},$type:new $.ig.Type("ExecuteResponseResult",$.ig.XmlaSoapMethodResult.prototype.$type)},true);$.ig.util.defType("FaultDetail","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("FaultDetail",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IXmlaSoapMethod","Object",{$type:new $.ig.Type("IXmlaSoapMethod",null)},true);$.ig.util.defType("XmlaNamespace","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("XmlaNamespace",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaQueryProperty","Object",{init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.Object.prototype.init.call(this)},init1:function(initNumber,a,b){$.ig.Object.prototype.init.call(this);this.a(a);this.c(b)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},toString:function(){return String.concat(this.a()," = ",this.c())},$type:new $.ig.Type("XmlaQueryProperty",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaPropertiesCollection","Object",{c:null,d:null,e:null,init:function(){$.ig.Object.prototype.init.call(this);this.c=new $.ig.Dictionary$2(String,$.ig.XmlaQueryProperty.prototype.$type,0);this.d=new $.ig.Dictionary$2(String,$.ig.Number.prototype.$type,0);this.e=new $.ig.List$1($.ig.XmlaQueryProperty.prototype.$type,0)},tryGetValue:function(a,b){var $self=this;return{ret:function(){var $ret=$self.c.tryGetValue(a,b);b=$ret.value;return $ret.ret}(),value:b};return{value:b}},contains1:function(a){return this.c.containsKey(a)},indexOf:function(a){return this.e.indexOf(a)},insert:function(a,b){this.c.add(b.a(),b);this.e.insert(a,b)},removeAt:function(a){if(a<this.e.count()){var b=this.e.item(a);if(this.c.remove(b.a())){this.e.removeAt(a)}}},item:function(a,b){if(arguments.length===2){var c=this.e.item(a);this.c.remove(c.a());this.c.add(b.a(),b);this.e.item(a,b);return b}else{return this.e.item(a)}},add:function(a){this.c.add(a.a(),a);this.e.add(a)},clear:function(){this.e.clear();this.c.clear()},contains:function(a){return this.e.contains(a)},copyTo:function(a,b){this.e.copyTo(a,b)},count:function(){return this.e.count()},isReadOnly:function(){return this.e.isReadOnly()},remove:function(a){if(this.e.remove(a)){return this.c.remove(a.a())}return false},getEnumerator:function(){return this.e.getEnumerator()},isFixedSize:function(){return false},isSynchronized:function(){return this.e.isSynchronized()},syncRoot:function(){return this.e.syncRoot()},$type:new $.ig.Type("XmlaPropertiesCollection",$.ig.Object.prototype.$type,[$.ig.IList$1.prototype.$type.specialize($.ig.XmlaQueryProperty.prototype.$type),$.ig.IList.prototype.$type])},true);$.ig.util.defType("XmlaSoapMessageBuilder","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},c:function(){if(this.a()==null){throw new $.ig.InvalidOperationException(1,"XmlaMethod is not specified.")}var a=$.ig.XNamespace.prototype.c($.ig.XmlaSoapMessageBuilder.prototype.g);this.a().construct(a);var b=this.j();return b.toString()},j:function(){var a=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMessageBuilder.prototype.d,$.ig.XmlaSoapMessageBuilder.prototype.g));this.i(a);this.h(a);return a},i:function(a){var b=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMessageBuilder.prototype.e,a.l().f().b()));a.g(b);var d=this.a().headers().getEnumerator();while(d.moveNext()){var c=d.current();b.g(c)}},h:function(a){var b=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMessageBuilder.prototype.b,a.l().f().b()));a.g(b);var c=new $.ig.XElement(1,$.ig.XName.prototype.e(this.a().name(),$.ig.XmlaNamespace.prototype.a));b.g(c);var e=this.a().parameters().getEnumerator();while(e.moveNext()){var d=e.current();c.g(d)}},$type:new $.ig.Type("XmlaSoapMessageBuilder",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaSoapMethod","Object",{g:null,f:null,c:null,b:null,a:null,init:function(){$.ig.Object.prototype.init.call(this);this.c=new $.ig.List$1($.ig.XElement.prototype.$type,0);this.b=new $.ig.List$1($.ig.XElement.prototype.$type,0);this.g=new $.ig.ReadOnlyCollection$1($.ig.XElement.prototype.$type,1,this.c);this.f=new $.ig.ReadOnlyCollection$1($.ig.XElement.prototype.$type,1,this.b);this.a=new $.ig.XmlaPropertiesCollection},properties:function(){return this.a},name:function(){},parameters:function(){return this.g},headers:function(){return this.f},e:function(){return this.c},d:function(){return this.b},construct:function(a){},mergeProperties:function(a){var $self=this;if(a==null){return}var c=a.getEnumerator();while(c.moveNext()){var b=c.current();var d;if(function(){var $ret=$self.properties().tryGetValue(b.a(),d);d=$ret.value;return $ret.ret}()){d.c(b.c())}else{$self.properties().add(b)}}},$type:new $.ig.Type("XmlaSoapMethod",$.ig.Object.prototype.$type,[$.ig.IXmlaSoapMethod.prototype.$type])},true);$.ig.util.defType("XmlaSoapMethodDiscover","XmlaSoapMethod",{k:null,init:function(a){$.ig.XmlaSoapMethod.prototype.init.call(this);this.j($.ig.XmlaSoapMessageHeader.prototype.none);this.n(a);this.k=new $.ig.Dictionary$2(String,$.ig.Object.prototype.$type,0)},l:function(){return this.k},_n:null,n:function(value){if(arguments.length===1){this._n=value;return value}else{return this._n}},name:function(){return $.ig.XmlaSoapMethodDiscover.prototype.m},_j:null,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},_r:null,r:function(value){if(arguments.length===1){this._r=value;return value}else{return this._r}},construct:function(a){var b=$.ig.XNamespace.prototype.c($.ig.XmlaNamespace.prototype.a);var c=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethodDiscover.prototype.o,b.b()));c.i(this.n());var d=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethod.prototype.h,$.ig.XmlaNamespace.prototype.a));var e=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethod.prototype.i,d.l().f().b()));d.g(e);var f=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethodDiscover.prototype.q,$.ig.XmlaNamespace.prototype.a));var g=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethodDiscover.prototype.p,f.l().f().b()));f.g(g);var i=this.properties().getEnumerator();while(i.moveNext()){var h=i.current();e.g(new $.ig.XElement(2,$.ig.XName.prototype.e(h.a(),$.ig.XmlaNamespace.prototype.a),h.c()))}var k=this.k.getEnumerator();while(k.moveNext()){var j=k.current();g.g(new $.ig.XElement(2,$.ig.XName.prototype.e(j.key(),""),j.value()))}this.e().add(c);this.e().add(f);this.e().add(d)},$type:new $.ig.Type("XmlaSoapMethodDiscover",$.ig.XmlaSoapMethod.prototype.$type)},true);$.ig.util.defType("XmlaSoapMethodExecute","XmlaSoapMethod",{init:function(a){$.ig.XmlaSoapMethod.prototype.init.call(this);this.l(a)},name:function(){return $.ig.XmlaSoapMethodExecute.prototype.k},_l:null,l:function(value){if(arguments.length===1){this._l=value;return value}else{return this._l}},construct:function(a){var b=$.ig.XNamespace.prototype.c($.ig.XmlaNamespace.prototype.a);var c=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethodExecute.prototype.j,b.b()));var d=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethodExecute.prototype.m,b.b()));d.i(this.l());c.g(d);var e=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethod.prototype.h,$.ig.XmlaNamespace.prototype.a));var f=new $.ig.XElement(1,$.ig.XName.prototype.e($.ig.XmlaSoapMethod.prototype.i,e.l().f().b()));e.g(f);var h=this.properties().getEnumerator();while(h.moveNext()){var g=h.current();f.g(new $.ig.XElement(2,$.ig.XName.prototype.e(g.a(),$.ig.XmlaNamespace.prototype.a),g.c()))}this.e().add(c);this.e().add(e)},$type:new $.ig.Type("XmlaSoapMethodExecute",$.ig.XmlaSoapMethod.prototype.$type)},true);$.ig.util.defType("XmlaSoapWebClient","Object",{staticInit:function(){$.ig.XmlaSoapWebClient.prototype.a=new $.ig.List$1(String,0)},$type:new $.ig.Type("XmlaSoapWebClient",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaSoapWebClient$1","XmlaSoapWebClient",{$t:null,f:null,b:false,init:function($t,a,b){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.XmlaSoapWebClient.prototype.init.call(this);this.f=new $.ig.WebClient;this.f.d(b);this.f.uploadStringCompleted=$.ig.Delegate.prototype.combine(this.f.uploadStringCompleted,this.l.runOn(this));this.g(a)},requestCompleted:null,_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},c:function(){return this.b},j:function(a){this.k(a,null)},k:function(a,b){var c=new $.ig.XmlaSoapMessageBuilder;c.a(a);var d=c.c();if(this.e()!=null){this.f.a(this.e())}else{this.f.a(null)}this.f.c().item("Content-Type","text/xml");this.f.h(this.g(),"POST",d,b)},h:function(a){if(this.requestCompleted!=null){this.requestCompleted(this,a)}},l:function(a,b){this.b=true;this.i(b)},i:function(a){var b=null;var c=null;var d=null;if(!a.cancelled()&&a.error()==null){try{var e=$.ig.XDocument.prototype.i(a.result());var f=e.h($.ig.XName.prototype.e("Envelope","http://schemas.xmlsoap.org/soap/envelope/"));var g=f.h($.ig.XName.prototype.e("Body","http://schemas.xmlsoap.org/soap/envelope/"));var h=g.h($.ig.XName.prototype.e("Fault","http://schemas.xmlsoap.org/soap/envelope/"));if(h!=null){var i=new $.ig.XmlaSoapFaultXmlTypeSerializer;var j=i.deserialize(h);c=new $.ig.FaultException$1($.ig.XmlaSoapFault.prototype.$type,j,new $.ig.FaultReason(j.d()),new $.ig.FaultCode(j.c()),null)}else{if(this.$t==$.ig.DiscoverResponseResult.prototype.$type){var k=g.h($.ig.XName.prototype.e("DiscoverResponse",$.ig.XmlaNamespace.prototype.a));var l=k.h($.ig.XName.prototype.e("return",$.ig.XmlaNamespace.prototype.a));var m=l.h($.ig.XName.prototype.e("root",$.ig.XmlaNamespace.prototype.e));var n=new $.ig.DiscoverResponseResult;n.returnElement(m);b=n}if(this.$t==$.ig.ExecuteResponseResult.prototype.$type){var o=g.h($.ig.XName.prototype.e("ExecuteResponse",$.ig.XmlaNamespace.prototype.a));var p=o.h($.ig.XName.prototype.e("return",$.ig.XmlaNamespace.prototype.a));var q=p.h($.ig.XName.prototype.e("root",$.ig.XmlaNamespace.prototype.d));var r=new $.ig.ExecuteResponseResult;r.returnElement(q);b=r}}}catch(e_){d=e_}}if(d==null){d=a.error()!=null?a.error():c}var s=new $.ig.RequestCompletedEventArgs$1(this.$t,b,d,a.cancelled(),a.userState());this.h(s)},$type:new $.ig.Type("XmlaSoapWebClient$1",$.ig.XmlaSoapWebClient.prototype.$type)},true);$.ig.util.defType("XmlaSoapWebClient","Object",{staticInit:function(){$.ig.XmlaSoapWebClient.prototype.a=new $.ig.List$1(String,0)},$type:new $.ig.Type("XmlaSoapWebClient",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaSoapWebClient$1","XmlaSoapWebClient",{$t:null,f:null,b:false,init:function($t,a,b){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.XmlaSoapWebClient.prototype.init.call(this);this.f=new $.ig.WebClient;this.f.d(b);this.f.uploadStringCompleted=$.ig.Delegate.prototype.combine(this.f.uploadStringCompleted,this.l.runOn(this));this.g(a)},requestCompleted:null,_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},c:function(){return this.b},j:function(a){this.k(a,null)},k:function(a,b){var c=new $.ig.XmlaSoapMessageBuilder;c.a(a);var d=c.c();if(this.e()!=null){this.f.a(this.e())}else{this.f.a(null)}this.f.c().item("Content-Type","text/xml");this.f.h(this.g(),"POST",d,b)},h:function(a){if(this.requestCompleted!=null){this.requestCompleted(this,a)}},l:function(a,b){this.b=true;this.i(b)},i:function(a){var b=null;var c=null;var d=null;if(!a.cancelled()&&a.error()==null){try{var e=$.ig.XDocument.prototype.i(a.result());var f=e.h($.ig.XName.prototype.e("Envelope","http://schemas.xmlsoap.org/soap/envelope/"));var g=f.h($.ig.XName.prototype.e("Body","http://schemas.xmlsoap.org/soap/envelope/"));var h=g.h($.ig.XName.prototype.e("Fault","http://schemas.xmlsoap.org/soap/envelope/"));if(h!=null){var i=new $.ig.XmlaSoapFaultXmlTypeSerializer;var j=i.deserialize(h);c=new $.ig.FaultException$1($.ig.XmlaSoapFault.prototype.$type,j,new $.ig.FaultReason(j.d()),new $.ig.FaultCode(j.c()),null)}else{if(this.$t==$.ig.DiscoverResponseResult.prototype.$type){var k=g.h($.ig.XName.prototype.e("DiscoverResponse",$.ig.XmlaNamespace.prototype.a));var l=k.h($.ig.XName.prototype.e("return",$.ig.XmlaNamespace.prototype.a));var m=l.h($.ig.XName.prototype.e("root",$.ig.XmlaNamespace.prototype.e));var n=new $.ig.DiscoverResponseResult;n.returnElement(m);b=n}if(this.$t==$.ig.ExecuteResponseResult.prototype.$type){var o=g.h($.ig.XName.prototype.e("ExecuteResponse",$.ig.XmlaNamespace.prototype.a));var p=o.h($.ig.XName.prototype.e("return",$.ig.XmlaNamespace.prototype.a));var q=p.h($.ig.XName.prototype.e("root",$.ig.XmlaNamespace.prototype.d));var r=new $.ig.ExecuteResponseResult;r.returnElement(q);b=r}}}catch(e_){d=e_}}if(d==null){d=a.error()!=null?a.error():c}var s=new $.ig.RequestCompletedEventArgs$1(this.$t,b,d,a.cancelled(),a.userState());this.h(s)},$type:new $.ig.Type("XmlaSoapWebClient$1",$.ig.XmlaSoapWebClient.prototype.$type)},true);$.ig.util.defType("IMdxExpression","Object",{$type:new $.ig.Type("IMdxExpression",null)},true);$.ig.util.defType("IMdxElement","Object",{$type:new $.ig.Type("IMdxElement",null,[$.ig.IMdxExpression.prototype.$type])},true);$.ig.util.defType("IAxisFilterElement","Object",{$type:new $.ig.Type("IAxisFilterElement",null,[$.ig.IMdxElement.prototype.$type])},true);$.ig.util.defType("IMdxAxis","Object",{$type:new $.ig.Type("IMdxAxis",null,[$.ig.IMdxExpression.prototype.$type])},true);$.ig.util.defType("IMdxAxisProvider","Object",{$type:new $.ig.Type("IMdxAxisProvider",null)},true);$.ig.util.defType("IMdxCollectionElement","Object",{$type:new $.ig.Type("IMdxCollectionElement",null,[$.ig.IMdxElement.prototype.$type])},true);$.ig.util.defType("IMdxDimensionAxisProvider","Object",{$type:new $.ig.Type("IMdxDimensionAxisProvider",null,[$.ig.IMdxAxisProvider.prototype.$type])},true);$.ig.util.defType("IMdxFilterInfo","Object",{$type:new $.ig.Type("IMdxFilterInfo",null)},true);$.ig.util.defType("IMdxExtendedFilterInfo","Object",{$type:new $.ig.Type("IMdxExtendedFilterInfo",null,[$.ig.IMdxFilterInfo.prototype.$type])},true);$.ig.util.defType("IMdxItemElement","Object",{$type:new $.ig.Type("IMdxItemElement",null,[$.ig.IMdxElement.prototype.$type])},true);$.ig.util.defType("IMdxSet","Object",{$type:new $.ig.Type("IMdxSet",null,[$.ig.IMdxExpression.prototype.$type])},true);$.ig.util.defType("MdxAxis","Object",{e:null,f:null,d:false,i:null,h:0,c:null,init:function(initNumber,a){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}this.c=function(){var $ret=new Array;$ret.add("COLUMNS");$ret.add("ROWS");$ret.add("PAGES");return $ret}();$.ig.MdxAxis.prototype.init1.call(this,1,a,new $.ig.MdxDimensionAxisSettings)},init1:function(initNumber,a,b){this.c=function(){var $ret=new Array;$ret.add("COLUMNS");$ret.add("ROWS");$ret.add("PAGES");return $ret}();$.ig.Object.prototype.init.call(this);this.axisIndex(a);this.a(b!=null?b:new $.ig.MdxDimensionAxisSettings);this.e=new $.ig.List$1($.ig.IMdxSet.prototype.$type,0);this.f=new $.ig.ReadOnlyCollection$1($.ig.IMdxSet.prototype.$type,1,this.e)},axisIndex:function(a){if(arguments.length===1){if(this.h!=a){this.h=a;this.d=false}return a}else{return this.h}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},b:function(){return $.ig.util.cast($.ig.MdxDimensionAxisSettings.prototype.$type,this.a())},g:function(){return this.f},mdxExpression:function(){if(!this.d){this.i=this.j();this.d=true}return this.i},rebuildExpression:function(){this.i=this.j();this.d=true},getMdxSets:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$a=this.$this.f.getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:this.$current=this.$a.current();this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$a.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1($.ig.IMdxSet.prototype.$type,$iter)},addSet:function(a){this.e.add(a);this.d=false},j:function(){var a=new $.ig.StringBuilder;var b=false;var d=this.g().getEnumerator();while(d.moveNext()){var c=d.current();if(!c.isEnabled()){continue}if(b){a.d(",");a.d($.ig.Environment.prototype.a())}a.d(c.mdxExpression());b=true}if(this.g().count()>1){a.h(0,"{");a.d("}")}this.m(a,this.b());this.n(a,this.b());this.l(a,this.b());this.k(a);return a.b()},m:function(a,b){if(b.f()){a.h(0,"Distinct(");a.d(")")}},n:function(a,b){if(b.h()){a.h(0,$.ig.Environment.prototype.a());a.h(0,"NON EMPTY")}},l:function(a,b){if(b.e()){a.d($.ig.Environment.prototype.a());a.d("DIMENSION PROPERTIES");var c=b.j();var d=false;var f=c.getEnumerator();while(f.moveNext()){var e=f.current();a.d($.ig.Environment.prototype.a());if(d){a.d(",")}a.d(e);d=true}}},k:function(a){if(this.axisIndex()<2){a.d($.ig.Environment.prototype.a());a.d(String.concat("ON ",this.c[this.axisIndex()]))}},$type:new $.ig.Type("MdxAxis",$.ig.Object.prototype.$type,[$.ig.IMdxAxis.prototype.$type])},true);$.ig.util.defType("MdxAxisFilterElement","Object",{a:null,b:null,init:function(){$.ig.Object.prototype.init.call(this);this.b=new $.ig.List$1($.ig.IMdxElement.prototype.$type,0);this.singleFilterElements(new $.ig.ReadOnlyCollection$1($.ig.IMdxElement.prototype.$type,1,this.b));this.a=new $.ig.MdxElementCollectionElement},mdxExpression:function(){var $self=this;if($self.a.collectionElements().count()>1){$self.a.b(function(){var $ret=new Array;$ret.add("(");$ret.add(")");return $ret}())}return $self.a.mdxExpression()},_singleFilterElements:null,singleFilterElements:function(value){if(arguments.length===1){this._singleFilterElements=value;return value}else{return this._singleFilterElements}},filterCollection:function(){return this.a.collectionElements()},rebuildExpression:function(){this.a.rebuildExpression()},addFilterPart:function(a,b){if(a.collectionElements().count()>0){if(a.collectionElements().count()==1&&b){this.b.add(a.collectionElements().item(0));return}this.a.addElement(a)}},elementType:function(){return $.ig.MdxElementType.prototype.filter},$type:new $.ig.Type("MdxAxisFilterElement",$.ig.Object.prototype.$type,[$.ig.IAxisFilterElement.prototype.$type])},true);$.ig.util.defType("MdxCalculatedMembersCache","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.d=new $.ig.List$1(String,0);this.b=new $.ig.Dictionary$2(String,String,0)},d:null,b:null,e:function(a){var b=new $.ig.StringBuilder;var d=a.c().getEnumerator();while(d.moveNext()){var c=d.current();$.ig.MdxCalculatedMembersCache.prototype.f(b,c.key(),c.value())}return b.b()},g:function(a,b,c){if(!this.d.contains(a)){this.d.add(a)}if(!this.b.containsKey(b)){this.b.add(b,c)}},c:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$a=this.$this.b.getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:this.$current=this.$a.current();this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$a.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1($.ig.KeyValuePair$2.prototype.$type.specialize(String,String),$iter)},a:function(a){return this.d.contains(a)},f:function(a,b,c){a.d(String.concat("MEMBER ",b," AS",$.ig.Environment.prototype.a()));a.d(c);a.d($.ig.Environment.prototype.a())},$type:new $.ig.Type("MdxCalculatedMembersCache",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MdxElement","Object",{init:function(){$.ig.Object.prototype.init.call(this);this.elementType($.ig.MdxElementType.prototype.userDefined)},mdxExpression:function(){},_elementType:null,elementType:function(value){if(arguments.length===1){this._elementType=value;return value}else{return this._elementType}},_sourceItemExpression:null,sourceItemExpression:function(value){if(arguments.length===1){this._sourceItemExpression=value;return value}else{return this._sourceItemExpression}},rebuildExpression:function(){},$type:new $.ig.Type("MdxElement",$.ig.Object.prototype.$type,[$.ig.IMdxItemElement.prototype.$type])},true);$.ig.util.defType("MdxSingleElement","MdxElement",{init:function(initNumber,a,b,c){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.MdxSingleElement.prototype.init1.call(this,1,a,b,c,$.ig.MdxElementType.prototype.member)},init1:function(initNumber,a,b,c,d){$.ig.MdxElement.prototype.init.call(this);this.a(c);switch(d){case $.ig.MdxElementType.prototype.member:case $.ig.MdxElementType.prototype.calculated:this.sourceItemExpression(a);this.b(b);this.elementType(d);break;default:throw new $.ig.ArgumentException(1,"Element type could be MdxElementType.Member or MdxElementType.Calculated","elementType")}},mdxExpression:function(){return this.sourceItemExpression()},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:0,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("MdxSingleElement",$.ig.MdxElement.prototype.$type)},true);$.ig.util.defType("MdxDimensionMember","MdxSingleElement",{init:function(a,b,c,d,e){$.ig.MdxSingleElement.prototype.init.call(this,a,b,c);this.d(d);this.c(e)},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},$type:new $.ig.Type("MdxDimensionMember",$.ig.MdxSingleElement.prototype.$type)},true);$.ig.util.defType("MdxChildrenCollectionElement","MdxDimensionMember",{init:function(a,b,c,d,e){$.ig.MdxDimensionMember.prototype.init.call(this,a,b,c,d,e)},mdxExpression:function(){return String.concat(this.sourceItemExpression(),".Children")},$type:new $.ig.Type("MdxChildrenCollectionElement",$.ig.MdxDimensionMember.prototype.$type)},true);$.ig.util.defType("MdxElementCollectionElement","Object",{d:null,c:false,e:null,a:null,init:function(){$.ig.Object.prototype.init.call(this);this.d=new $.ig.List$1($.ig.IMdxElement.prototype.$type,0);this.collectionElements(new $.ig.ReadOnlyCollection$1($.ig.IMdxElement.prototype.$type,1,this.d))},b:function(a){if(arguments.length===1){if(this.a!=a){this.c=false;this.a=a}return a}else{return this.a}},_collectionElements:null,collectionElements:function(value){if(arguments.length===1){this._collectionElements=value;return value}else{return this._collectionElements}},elementType:function(){return $.ig.MdxElementType.prototype.collection},mdxExpression:function(){if(!this.c){this.e=this.f();this.c=true}return this.e},rebuildExpression:function(){this.e=this.f();this.c=true},addElement:function(a){var $self=this;$self.d.add(a);if($self.collectionElements().count()>1){$self.b(function(){var $ret=new Array;$ret.add("{");$ret.add("}");return $ret}())}$self.c=false},f:function(){if(this.collectionElements().count()==0){return String.empty()}var a=new $.ig.StringBuilder;var b=false;var d=this.collectionElements().getEnumerator();while(d.moveNext()){var c=d.current();if(b){a.d(",");a.d($.ig.Environment.prototype.a())}a.d(c.mdxExpression());b=true}if(this.b()!=null&&this.b().length==2){a.h(0,this.b()[0]);a.d(this.b()[1])}return a.b()},$type:new $.ig.Type("MdxElementCollectionElement",$.ig.Object.prototype.$type,[$.ig.IMdxCollectionElement.prototype.$type])},true);$.ig.util.defType("MdxLevelMembersElement","MdxSingleElement",{init:function(a,b,c){$.ig.MdxSingleElement.prototype.init.call(this,a,b,c)},mdxExpression:function(){return String.concat(this.sourceItemExpression(),".MEMBERS")},$type:new $.ig.Type("MdxLevelMembersElement",$.ig.MdxSingleElement.prototype.$type)},true);$.ig.util.defType("MdxQueryBuilder","Object",{a:null,init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.MdxQueryBuilder.prototype.init1.call(this,1,new $.ig.MdxSettings)
},init1:function(initNumber,a){$.ig.Object.prototype.init.call(this);this.b(a)},b:function(a){if(arguments.length===1){this.a=a;return a}else{if(this.a==null){this.a=new $.ig.MdxSettings}return this.a}},c:function(a,b,c,d,e){var f=c;var g=this.d(a,b,f,d);var h=this.h(f);var i=this.g(f,e);var j=new $.ig.StringBuilder;if(!String.isNullOrEmpty(g)){j.d(String.concat("WITH",$.ig.Environment.prototype.a()))}j.d(g);j.d("SELECT");j.d($.ig.Environment.prototype.a());if(a!=null){j.d(a.mdxExpression())}if(b!=null){if(a==null){b.axisIndex(0)}else{j.d(String.concat(",",$.ig.Environment.prototype.a()))}j.d(b.mdxExpression())}j.d($.ig.Environment.prototype.a());j.d(i);if(!String.isNullOrEmpty(h)){j.d($.ig.Environment.prototype.a());j.d(h)}var k=j.b();return k},d:function(a,b,c,d){return $.ig.MdxCalculatedMembersCache.prototype.e(d)},g:function(a,b){var c=String.concat("FROM ","[",b,"]");var d=$.ig.util.cast($.ig.IMdxExtendedFilterInfo.prototype.$type,a);c=this.f(c,a.filtersFilter());if(a.columnsFilter()!=null){c=this.f(c,a.columnsFilter(),a.rowsFilter())}else{c=this.f(c,a.rowsFilter())}if(d!=null){c=this.e(c,d)}return c},e:function(a,b){if(b.filterElements()!=null&&b.filterElements().count()>0){var d=b.filterElements().getEnumerator();while(d.moveNext()){var c=d.current();var e=new $.ig.StringBuilder;e.h(0,String.concat("FROM",$.ig.Environment.prototype.a(),"(",$.ig.Environment.prototype.a(),"SELECT",$.ig.Environment.prototype.a()));e.d(String.concat(c.mdxExpression()," ON COLUMNS",$.ig.Environment.prototype.a()));e.d(a);e.d(this.h(b));e.d(String.concat(")",$.ig.Environment.prototype.a()));a=e.b()}}return a},f:function(a,b,c){if(b==null||b.filterCollection().count()==0){return a}var d=new $.ig.StringBuilder;d.d("FROM");d.d($.ig.Environment.prototype.a());d.d("(");d.d($.ig.Environment.prototype.a());d.d("SELECT");d.d($.ig.Environment.prototype.a());d.d(b.mdxExpression());d.d(" ON COLUMNS");if(c!=null&&c.filterCollection().count()>0){d.d($.ig.Environment.prototype.a());d.d(", ");d.d(c.mdxExpression());d.d(" ON ROWS")}d.d($.ig.Environment.prototype.a());d.d(a);d.d($.ig.Environment.prototype.a());d.d(")");return d.b()},h:function(a){var $self=this;var b=new $.ig.MdxElementCollectionElement;if(a.measureFilter()!=null&&a.measureFilter().singleFilterElements().count()==1){b.addElement(a.measureFilter().singleFilterElements().item(0))}if(a.filtersFilter()!=null){var d=a.filtersFilter().singleFilterElements().getEnumerator();while(d.moveNext()){var c=d.current();b.addElement(c)}}if(b.collectionElements().count()==0){return String.empty()}b.b(function(){var $ret=new Array;$ret.add("(");$ret.add(")");return $ret}());return String.concat("WHERE ",b.mdxExpression())},$type:new $.ig.Type("MdxQueryBuilder",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MdxSet","Object",{d:null,e:null,b:false,g:null,init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.MdxSet.prototype.init1.call(this,1,new $.ig.MdxSetSettings);this.d=new $.ig.List$1($.ig.IMdxElement.prototype.$type,0);this.e=new $.ig.ReadOnlyCollection$1($.ig.IMdxElement.prototype.$type,1,this.d);this.isEnabled(true)},init1:function(initNumber,a){$.ig.Object.prototype.init.call(this);this.d=new $.ig.List$1($.ig.IMdxElement.prototype.$type,0);this.e=new $.ig.ReadOnlyCollection$1($.ig.IMdxElement.prototype.$type,1,this.d);this.isEnabled(true);this.a(a!=null?a:new $.ig.MdxSetSettings)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_isEnabled:false,isEnabled:function(value){if(arguments.length===1){this._isEnabled=value;return value}else{return this._isEnabled}},f:function(){return this.e},mdxExpression:function(){if(!this.b){this.g=this.h();this.b=true}return this.g},rebuildExpression:function(){this.g=this.h();this.b=true},addElement:function(a){if(this.c(a)){this.d.add(a);this.b=false}},getMdxElements:function(){var $self=this;var $iter=function(){return function(){return{$state:0,$this:$self,$current:null,$a:null,getEnumerator:function(){if(this.$state===-1){this.$state=0}return this},current:function(){return this.$current},moveNext:function(){do{switch(this.$state){case 0:this.$a=this.$this.d.getEnumerator();this.$state=1;break;case 1:this.$state=4;break;case 2:this.$current=this.$a.current();this.$state=3;return true;case 3:this.$state=4;break;case 4:if(this.$a.moveNext()){this.$state=2}else{this.$state=5}break;case 5:this.$state=-2;break;case-2:return false}}while(this.$state>0)}}}()};return new $.ig.GenericEnumerable$1($.ig.IMdxElement.prototype.$type,$iter)},c:function(a){switch(a.elementType()){case $.ig.MdxElementType.prototype.memberTree:case $.ig.MdxElementType.prototype.member:case $.ig.MdxElementType.prototype.calculated:case $.ig.MdxElementType.prototype.collection:return true}return false},h:function(){$.ig.Debug.prototype.b(this.f().count()>0,"MdxSet.Elements collection is empty.");var a=new $.ig.StringBuilder;var b=this.f().item(0);this.j(a,b);for(var c=1;c<this.f().count();c++){a.h(0,"CrossJoin(");a.h(10,$.ig.Environment.prototype.a());a.d(",");a.d($.ig.Environment.prototype.a());var d=this.f().item(c);this.j(a,d);a.d(")")}return a.b()},j:function(a,b){var c=new $.ig.StringBuilder;switch(b.elementType()){case $.ig.MdxElementType.prototype.calculated:var d=b;var e=d.b();c.d("{");c.d(e);c.d("}");break;case $.ig.MdxElementType.prototype.member:c.d("{");c.d(b.mdxExpression());c.d("}");break;case $.ig.MdxElementType.prototype.collection:case $.ig.MdxElementType.prototype.memberTree:c.d(b.mdxExpression());break}if($.ig.util.cast($.ig.MdxLevelMembersElement.prototype.$type,b)!==null||$.ig.util.cast($.ig.MdxChildrenCollectionElement.prototype.$type,b)!==null){this.i(c,b)}switch(b.elementType()){case $.ig.MdxElementType.prototype.memberTree:case $.ig.MdxElementType.prototype.member:this.k(c,b);break}a.e(c)},k:function(a,b){},i:function(a,b){if(this.a().a()){a.h(0,"AddCalculatedMembers(");a.d(")")}},clone:function(){var a=new $.ig.MdxSet(1,this.a());var c=this.f().getEnumerator();while(c.moveNext()){var b=c.current();a.addElement(b)}return a},$type:new $.ig.Type("MdxSet",$.ig.Object.prototype.$type,[$.ig.IMdxSet.prototype.$type])},true);$.ig.util.defType("MdxSettings","Object",{i:false,h:false,e:false,d:false,m:false,l:false,k:false,j:false,o:false,n:false,g:false,f:false,init:function(){$.ig.Object.prototype.init.call(this);this.a(new $.ig.MdxDimensionAxisSettings);this.b(new $.ig.MdxDimensionAxisSettings);this.c(new $.ig.MdxSlicerAxisSettings);this.y(true);this.x(true);var a=new $.ig.ObservableCollection$1(String,0);a.collectionChanged=$.ig.Delegate.prototype.combine(a.collectionChanged,this.ae.runOn(this));this.ac(a);var b=new $.ig.ObservableCollection$1(String,0);b.collectionChanged=$.ig.Delegate.prototype.combine(b.collectionChanged,this.ad.runOn(this));this.ab(b);this.s(true);this.r(true);this.q(true);this.p(true);this.ag(this.ac());this.ag(this.ab())},ae:function(a,b){this.b().j().clear();var d=this.ac().getEnumerator();while(d.moveNext()){var c=d.current();this.b().j().add(c)}},ad:function(a,b){this.a().j().clear();var d=this.ab().getEnumerator();while(d.moveNext()){var c=d.current();this.a().j().add(c)}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},aa:function(a){if(arguments.length===1){if(this.i!=a){this.i=a;this.b().i(a)}return a}else{return this.i}},z:function(a){if(arguments.length===1){if(this.h!=a){this.h=a;this.a().i(a)}return a}else{return this.h}},q:function(a){if(arguments.length===1){if(this.e!=a){this.e=a;this.b().d(a)}return a}else{return this.e}},p:function(a){if(arguments.length===1){if(this.d!=a){this.d=a;this.a().d(a)}return a}else{return this.d}},w:function(a){if(arguments.length===1){if(this.m!=a){this.m=a;this.b().g(a)}return a}else{return this.m}},v:function(a){if(arguments.length===1){if(this.l!=a){this.l=a;this.a().g(a)}return a}else{return this.l}},u:function(a){if(arguments.length===1){if(this.k!=a){this.k=a;this.b().f(a)}return a}else{return this.k}},t:function(a){if(arguments.length===1){if(this.j!=a){this.j=a;this.a().f(a)}return a}else{return this.j}},y:function(a){if(arguments.length===1){if(this.o!=a){this.o=a;this.b().h(a)}return a}else{return this.o}},x:function(a){if(arguments.length===1){if(this.n!=a){this.n=a;this.a().h(a)}return a}else{return this.n}},s:function(a){if(arguments.length===1){if(this.g!=a){this.g=a;this.b().e(a)}return a}else{return this.g}},r:function(a){if(arguments.length===1){if(this.f!=a){this.f=a;this.a().e(a)}return a}else{return this.f}},_ac:null,ac:function(value){if(arguments.length===1){this._ac=value;return value}else{return this._ac}},_ab:null,ab:function(value){if(arguments.length===1){this._ab=value;return value}else{return this._ab}},af:function(a){this.ag(a)},ag:function(a){a.clear();a.add("CHILDREN_CARDINALITY");a.add("PARENT_UNIQUE_NAME")},$type:new $.ig.Type("MdxSettings",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MdxAxisSettings","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("MdxAxisSettings",$.ig.Object.prototype.$type)},true);$.ig.util.defType("MdxSlicerAxisSettings","MdxAxisSettings",{init:function(){$.ig.MdxAxisSettings.prototype.init.call(this)},$type:new $.ig.Type("MdxSlicerAxisSettings",$.ig.MdxAxisSettings.prototype.$type)},true);$.ig.util.defType("MdxDimensionAxisSettings","MdxAxisSettings",{c:false,b:false,init:function(){$.ig.MdxAxisSettings.prototype.init.call(this);this.j(new $.ig.List$1(String,0));this.a(new $.ig.MdxSetSettings)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_g:false,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},_f:false,f:function(value){if(arguments.length===1){this._f=value;return value}else{return this._f}},_h:false,h:function(value){if(arguments.length===1){this._h=value;return value}else{return this._h}},_e:false,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},i:function(a){if(arguments.length===1){if(this.c!=a){this.c=a;this.a().b(a)}return a}else{return this.c}},d:function(a){if(arguments.length===1){if(this.b!=a){this.b=a;this.a().a(a)}return a}else{return this.b}},_j:null,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},$type:new $.ig.Type("MdxDimensionAxisSettings",$.ig.MdxAxisSettings.prototype.$type)},true);$.ig.util.defType("MdxSetSettings","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_b:false,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_a:false,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},$type:new $.ig.Type("MdxSetSettings",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IMdxSlicerAxis","Object",{$type:new $.ig.Type("IMdxSlicerAxis",null,[$.ig.IMdxExtendedFilterInfo.prototype.$type])},true);$.ig.util.defType("MdxSlicerAxis","MdxAxis",{init:function(a){$.ig.MdxAxis.prototype.init1.call(this,1,2,a)},_columnsFilter:null,columnsFilter:function(value){if(arguments.length===1){this._columnsFilter=value;return value}else{return this._columnsFilter}},_rowsFilter:null,rowsFilter:function(value){if(arguments.length===1){this._rowsFilter=value;return value}else{return this._rowsFilter}},_filtersFilter:null,filtersFilter:function(value){if(arguments.length===1){this._filtersFilter=value;return value}else{return this._filtersFilter}},_measureFilter:null,measureFilter:function(value){if(arguments.length===1){this._measureFilter=value;return value}else{return this._measureFilter}},_filterElements:null,filterElements:function(value){if(arguments.length===1){this._filterElements=value;return value}else{return this._filterElements}},$type:new $.ig.Type("MdxSlicerAxis",$.ig.MdxAxis.prototype.$type,[$.ig.IMdxSlicerAxis.prototype.$type])},true);$.ig.util.defType("MdxSlicerSet","MdxSet",{init:function(){$.ig.MdxSet.prototype.init.call(this)},c:function(a){return $.ig.util.cast($.ig.IAxisFilterElement.prototype.$type,a)!==null},$type:new $.ig.Type("MdxSlicerSet",$.ig.MdxSet.prototype.$type)},true);$.ig.util.defType("MdxDimensionAxisProvider","Object",{h:null,k:null,l:0,init:function(initNumber,a,b,c,d){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}this.h=new $.ig.Dictionary$2(String,$.ig.MdxElementCollectionElement.prototype.$type,0);this.k=new $.ig.List$1(String,0);this.l=-1;$.ig.Object.prototype.init.call(this);if(a==null){throw new $.ig.ArgumentNullException("xmlaDataSource")}this.b(a);this.g(b);this.i(c);this.d(d)},init1:function(initNumber,a,b,c){this.h=new $.ig.Dictionary$2(String,$.ig.MdxElementCollectionElement.prototype.$type,0);this.k=new $.ig.List$1(String,0);this.l=-1;$.ig.Object.prototype.init.call(this);this.g(b);this.a(a);this.j(c)},_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},_g:null,g:function(value){if(arguments.length===1){this._g=value;return value}else{return this._g}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_i:null,i:function(value){if(arguments.length===1){this._i=value;return value}else{return this._i}},c:null,d:function(a){if(arguments.length===1){this.c=a;this.e(null);return a}else{return this.c}},_j:null,j:function(value){if(arguments.length===1){this._j=value;return value}else{return this._j}},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},extendAxis:function(a,b){var $self=this;var c=a;var d=$self.j();var e=$self.a().positionResolver();var f=new $.ig.MdxAxis(1,a.axisIndex(),$self.g());var h=d.getEnumerator();while(h.moveNext()){var g=h.current();var i=new $.ig.MdxSet(1,c.a().a());var j=new $.ig.List$1($.ig.IMdxSet.prototype.$type,0);var k=e.getHostPositionItemInfo(g.position(),g.position().indexOf(g));var m=g.position().getItems().getEnumerator();while(m.moveNext()){var l=m.current();var n;if(l==g){n=new $.ig.MdxChildrenCollectionElement(l.key(),l.key(),-1,null,null);i.addElement(n);break}n=new $.ig.MdxSingleElement(0,l.key(),l.key(),l.depth());i.addElement(n)}var o=k.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(p){return p.key()==g.key()}).firstOrDefault$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(o!=null){if(o.count()==0){j.add(i)}else{$self.p(o,i,j,false,true,false)}var q=j.getEnumerator();while(q.moveNext()){var p=q.current();a.addSet(p);f.addSet(p)}}}return f},s:function(a,b){if(this.l!=0){var c=new $.ig.MdxSet(1,this.g().a());if(this.l==-1){b.add(c)}this.r(a,c,b);this.p(a,new $.ig.MdxSet(1,this.g().a()),b,true,false,true)}else{this.p(a,new $.ig.MdxSet(1,this.g().a()),b,false,false,true)}},r:function(a,b,c){var $self=this;var d=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(e){return e.positionItemDepth()==a.positionItemDepthMin()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(d.count()==0){return}if($self.l==a.positionItemIndex()+1){var f=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(g){return g.positionItemDepth()==0}).getEnumerator();while(f.moveNext()){var e=f.current();var g=b.clone();var h=new $.ig.MdxSingleElement(0,e.positionItem().key(),e.positionItem().key(),0);g.addElement(h);c.add(g);$self.t(e);if(e.count()==0){$self.n($self.i(),e.positionItemIndex()+1,g)}else{$self.r(e,g,c)}}}else{var i=d.item(0);var j=new $.ig.MdxLevelMembersElement(i.hierarchyLevelKey(),i.hierarchyLevelKey(),a.positionItemDepthMin());b.addElement(j);$self.t(i);if(i.count()==0){if($self.l!=-1){c.add(b)}$self.n($self.i(),i.positionItemIndex()+1,b)}else{$self.r(i,b,c)}}},createAxis:function(a){if(this.e()!=null){return this.e()}if(this.d()==null){this.e(this.createAxis1(a,this.i()));return this.e()}this.q(a);this.t(this.d());if(this.d().count()==0){this.e(this.createAxis1(a,this.i()));return this.e()}var b=new $.ig.List$1($.ig.IMdxSet.prototype.$type,0);this.s(this.d(),b);var c=new $.ig.MdxAxis(1,a,this.g());var e=b.getEnumerator();while(e.moveNext()){var d=e.current();c.addSet(d)}this.e(c);return c},q:function(a){var b=this.b().columnAxis().count()>0;var c=this.b().rowAxis().count()>0;var d=this.b().measures().count()>1;if(d){if(a==0){if(b){if(this.b().measureListLocation()==$.ig.MeasureListLocation.prototype.columns){this.l=this.b().measureListIndex()}}else if(c&&this.b().measureListLocation()==$.ig.MeasureListLocation.prototype.rows){this.l=this.b().measureListIndex()}}else if(a==1&&c&&this.b().measureListLocation()==$.ig.MeasureListLocation.prototype.rows){this.l=this.b().measureListIndex()}}var f=this.b().measures().getEnumerator();while(f.moveNext()){var e=f.current();this.k.add(e.uniqueName())}},t:function(a){if(this.i()!=null){var b=a.positionItemIndex()+1;if(b<this.i().count()){var c=this.i().item(b);var d=$.ig.util.cast($.ig.MeasureList.prototype.$type,c);if(d!=null){var e=a.values().toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));var g=e.getEnumerator();while(g.moveNext()){var f=g.current();if(!this.k.contains(f.key())){a.remove(f.key())}}}var h=$.ig.util.cast($.ig.Hierarchy.prototype.$type,c);if(h!=null){var i=a.values().firstOrDefault$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(i!=null){if(i.hierarchyKey()!=h.uniqueName()){a.clear()}}}}else{a.clear()}}},createAxis1:function(a,b){var c=new $.ig.MdxSet(1,this.g().a());this.n(b,0,c);var d=new $.ig.MdxAxis(1,a,this.g());d.addSet(c);return d},n:function(a,b,c){var $self=this;if(a==null){return}for(var d=b;d<a.count();d++){var e=a.item(d);var f=$.ig.util.cast($.ig.Hierarchy.prototype.$type,e);if(f!=null){if(f.allMember()==null){var g=$self.b().getCoreElements(function(h){return h.hierarchyUniqueName()==f.uniqueName()},$.ig.Level.prototype.$type).toList$1($.ig.ICoreOlapElement.prototype.$type);var h=g.item(0);c.addElement(new $.ig.MdxLevelMembersElement(h.uniqueName(),h.uniqueName(),0))}else{c.addElement(new $.ig.MdxSingleElement(0,f.defaultMember(),f.defaultMember(),0))}continue}var i=$.ig.util.cast($.ig.Level.prototype.$type,e);if(i!=null){var j;if(!function(){var $ret=$self.h.tryGetValue(i.hierarchyUniqueName(),j);j=$ret.value;return $ret.ret}()){j=new $.ig.MdxElementCollectionElement;c.addElement(j);$self.h.add(i.hierarchyUniqueName(),j)}j.addElement(new $.ig.MdxLevelMembersElement(i.uniqueName(),i.uniqueName(),i.depth()));continue}var k=$.ig.util.cast($.ig.MeasureList.prototype.$type,e);if(k!=null){var l=new $.ig.MdxElementCollectionElement;var n=k.measures().getEnumerator();while(n.moveNext()){var m=n.current();l.addElement(new $.ig.MdxSingleElement(0,m.uniqueName(),m.uniqueName(),0))}c.addElement(l)}}},o:function(a,b,c,d,e,f,g){var h=c.clone();h.addElement(new $.ig.MdxSingleElement(0,b.key(),b.key(),b.positionItemDepth()));this.t(b);if(b.count()==0){if(e){if(f){d.add(h);this.n(this.i(),b.positionItemIndex()+1,h)}}else{d.add(h);this.n(this.i(),b.positionItemIndex()+1,h)}}else{this.p(b,h,d,e,f,g)}if(g&&b.isExpanded()){this.m(b,d,a,c)}},m:function(a,b,c,d){var $self=this;var e=c.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(f){return f.parentKey()==a.key()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(e.count()>0){var f=d.clone();f.addElement(new $.ig.MdxChildrenCollectionElement(a.key(),a.key(),a.positionItemDepth(),null,null));$self.t(a);if(a.count()==0){b.add(f);$self.n($self.i(),a.positionItemIndex()+1,f)}else{$self.p(a,f,b,true,true,false)}}var h=e.getEnumerator();while(h.moveNext()){var g=h.current();var i=d.clone();i.addElement(new $.ig.MdxSingleElement(0,g.key(),g.key(),g.positionItemDepth()));$self.t(g);if(g.isExpanded()){$self.m(g,b,c,d)}$self.p(g,i,b,true,false,true)}},p:function(a,b,c,d,e,f){var $self=this;var g=a.values().where$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type),function(h){return h.positionItemDepth()==a.positionItemDepthMin()}).toList$1($.ig.PositionItemInfo$2.prototype.$type.specialize(String,$.ig.Object.prototype.$type));if(g.count()==0){return}var i=g.getEnumerator();while(i.moveNext()){var h=i.current();$self.o(a,h,b,c,d,e,f)}},$type:new $.ig.Type("MdxDimensionAxisProvider",$.ig.Object.prototype.$type,[$.ig.IMdxDimensionAxisProvider.prototype.$type])},true);$.ig.util.defType("MdxSlicerAxisProvider","Object",{c:null,e:null,d:null,init:function(a,b,c,d,e){this.c=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);this.e=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);this.d=new $.ig.List$1($.ig.AxisElement.prototype.$type,0);$.ig.Object.prototype.init.call(this);this.a(a);this.b(e);this.c=b;this.e=c;this.d=d},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},createAxis:function(a){var b=new $.ig.MdxSlicerAxis(this.b().c());b.axisIndex(a);b.columnsFilter($.ig.MdxSlicerAxisBuilder.prototype.a(this.c,b));b.rowsFilter($.ig.MdxSlicerAxisBuilder.prototype.a(this.e,b));b.filtersFilter($.ig.MdxSlicerAxisBuilder.prototype.a(this.d,b));b.measureFilter($.ig.MdxSlicerAxisBuilder.prototype.b(this.a().measures(),b));return b},$type:new $.ig.Type("MdxSlicerAxisProvider",$.ig.Object.prototype.$type,[$.ig.IMdxAxisProvider.prototype.$type])},true);$.ig.util.defType("MdxSlicerAxisBuilder","Object",{init:function(){$.ig.Object.prototype.init.call(this)},b:function(a,b){if(a.count$1($.ig.Measure.prototype.$type)==0){return null}var c=new $.ig.MdxAxisFilterElement;var d=new $.ig.MdxElementCollectionElement;var f=a.getEnumerator();while(f.moveNext()){var e=f.current();var g=new $.ig.MdxSingleElement(0,e.uniqueName(),e.uniqueName(),0);d.addElement(g)}var h=new $.ig.MdxSlicerSet;h.addElement(c);b.addSet(h);c.addFilterPart(d,true);return c},a:function(a,b){var $self=this;var c=new $.ig.MdxAxisFilterElement;for(var d=0;d<a.count();d++){var e=a.item(d);var f=new $.ig.MdxElementCollectionElement;var g=new $.ig.Dictionary$2(String,$.ig.MdxSingleElement.prototype.$type,0);var i=e.a().getEnumerator();while(i.moveNext()){var h=i.current();var j;if(!function(){var $ret=g.tryGetValue(h,j);j=$ret.value;return $ret.ret}()){j=new $.ig.MdxSingleElement(0,h,h,-1);g.add(h,j)}f.addElement(j)}c.addFilterPart(f,false)}if(c.filterCollection().count()==0&&c.singleFilterElements().count()==0){return null}var k=new $.ig.MdxSlicerSet;k.addElement(c);b.addSet(k);return c},$type:new $.ig.Type("MdxSlicerAxisBuilder",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IXmlaDataProviderFactory","Object",{$type:new $.ig.Type("IXmlaDataProviderFactory",null,[$.ig.IOlapDataProviderFactory.prototype.$type])},true);$.ig.util.defType("DefaultXmlaDataProviderFactory","Object",{b:null,a:null,init:function(a,b){$.ig.Object.prototype.init.call(this);this.b=a;this.a=b},createDataProvider:function(){return new $.ig.XmlaDataProvider(new $.ig.XmlaConnection(new $.ig.Uri(this.b),this.a),null)},$type:new $.ig.Type("DefaultXmlaDataProviderFactory",$.ig.Object.prototype.$type,[$.ig.IXmlaDataProviderFactory.prototype.$type])},true);$.ig.util.defType("RemoteXmlaDataProviderFactory","Object",{a:null,b:null,d:null,c:null,init:function(initNumber){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$.ig.Object.prototype.init.call(this);this.a=new $.ig.JsonRemoteRequestSerializer;this.b=new $.ig.JsonRemoteResponseSerializer},init1:function(initNumber,a,b){$.ig.Object.prototype.init.call(this);this.a=new $.ig.JsonRemoteRequestSerializer;this.b=new $.ig.JsonRemoteResponseSerializer;this.d=a;this.c=b},init2:function(initNumber,a,b){$.ig.Object.prototype.init.call(this);this.a=a;this.b=b},createDataProvider:function(){return new $.ig.RemoteXmlaDataProvder(this.d,this.c,this.a,this.b)},$type:new $.ig.Type("RemoteXmlaDataProviderFactory",$.ig.Object.prototype.$type,[$.ig.IXmlaDataProviderFactory.prototype.$type])},true);$.ig.util.defType("IRemoteRequestSerializer","Object",{$type:new $.ig.Type("IRemoteRequestSerializer",null)},true);$.ig.util.defType("IRemoteResponseSerializer","Object",{$type:new $.ig.Type("IRemoteResponseSerializer",null)},true);$.ig.util.defType("JsonRemoteRequestSerializer","Object",{a:null,init:function(){$.ig.Object.prototype.init.call(this);this.a=new $.ig.JavaScriptSerializer},serializeRequest:function(a){return $.ig.RemoteRequestJsonTypeSeriazlier.prototype.b().serialize(a,this.a)},deserializeRequest:function(a){return $.ig.RemoteRequestJsonTypeSeriazlier.prototype.b().deserialize(a,this.a)},$type:new $.ig.Type("JsonRemoteRequestSerializer",$.ig.Object.prototype.$type,[$.ig.IRemoteRequestSerializer.prototype.$type])},true);$.ig.util.defType("JsonRemoteResponseSerializer","Object",{a:null,init:function(){$.ig.Object.prototype.init.call(this);this.a=new $.ig.JavaScriptSerializer},serializeResponse:function(a,b){switch(b){case $.ig.RemoteRequestType.prototype.discoverCatalogs:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Catalog.prototype.$type,a,$.ig.CatalogJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverCubes:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Cube.prototype.$type,a,$.ig.CubeJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverDimensions:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Dimension.prototype.$type,a,$.ig.DimensionJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverHierarchies:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Hierarchy.prototype.$type,a,$.ig.HierarchyJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverLevels:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Level.prototype.$type,a,$.ig.LevelJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMeasures:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Measure.prototype.$type,a,$.ig.MeasureJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMeasureGroups:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.MeasureGroup.prototype.$type,a,$.ig.MeasureGroupJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.MeasureGroupDimension.prototype.$type,a,$.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMembers:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Member.prototype.$type,a,$.ig.MemberJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverKpis:return $.ig.ArrayJsonSerializer.prototype.b().f($.ig.Kpi.prototype.$type,a,$.ig.KpiJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.executeStatement:return $.ig.ResultJsonTypeSeriazlier.prototype.b().serialize(a,this.a);default:throw new $.ig.Error(1,"Unknown RemoteXmlaRequestType.")}},deserializeResponse:function(a,b){switch(b){case $.ig.RemoteRequestType.prototype.discoverCatalogs:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Catalog.prototype.$type,a,$.ig.CatalogJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverCubes:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Cube.prototype.$type,a,$.ig.CubeJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverDimensions:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Dimension.prototype.$type,a,$.ig.DimensionJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverHierarchies:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Hierarchy.prototype.$type,a,$.ig.HierarchyJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverLevels:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Level.prototype.$type,a,$.ig.LevelJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMeasures:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Measure.prototype.$type,a,$.ig.MeasureJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMeasureGroups:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.MeasureGroup.prototype.$type,a,$.ig.MeasureGroupJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.MeasureGroupDimension.prototype.$type,a,$.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverMembers:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Member.prototype.$type,a,$.ig.MemberJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.discoverKpis:return $.ig.ArrayJsonSerializer.prototype.b().d($.ig.Kpi.prototype.$type,a,$.ig.KpiJsonTypeSeriazlier.prototype.b(),this.a);case $.ig.RemoteRequestType.prototype.executeStatement:return $.ig.ResultJsonTypeSeriazlier.prototype.b().deserialize(a,this.a);default:throw new $.ig.Error(1,"Unknown RemoteXmlaRequestType.")}},$type:new $.ig.Type("JsonRemoteResponseSerializer",$.ig.Object.prototype.$type,[$.ig.IRemoteResponseSerializer.prototype.$type])},true);$.ig.util.defType("ArrayJsonSerializer","Object",{init:function(){$.ig.Object.prototype.init.call(this)},b:function(){return $.ig.ArrayJsonSerializer.prototype.a},d:function($t,a,b,c){var d=c.a(a);return this.e($t,d,b)},f:function($t,a,b,c){var d=this.c($t,a,b);return c.b(d)},e:function($t,a,b){var c=new $.ig.List$1($t,0);for(var d=0;d<a.length;d++){var e=a[d];c.add(b.fromJsonObject(e))}return c},c:function($t,a,b){var c=a.toArray$1($t);var d=new Array(c.length);for(var e=0;e<c.length;e++){d[e]=b.toJsonObject(c[e])}return d},$type:new $.ig.Type("ArrayJsonSerializer",$.ig.Object.prototype.$type)},true);$.ig.util.defType("IJsonTypeSerializer$1","Object",{$type:new $.ig.Type("IJsonTypeSerializer$1",null)},true);$.ig.util.defType("JsonTypeSeriazlierBase$1","Object",{$t:null,init:function($t){this.$t=$t;this.$type=this.$type.specialize(this.$t);$.ig.Object.prototype.init.call(this)},deserialize:function(a,b){return this.fromJsonObject(b.a(a))},serialize:function(a,b){return b.b(this.toJsonObject(a))},fromJsonObject:function(a){},toJsonObject:function(a){},$type:new $.ig.Type("JsonTypeSeriazlierBase$1",$.ig.Object.prototype.$type,[$.ig.IJsonTypeSerializer$1.prototype.$type.specialize(0)])},true);$.ig.util.defType("AxisJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.OlapResultAxis.prototype.$type)},b:function(){return $.ig.AxisJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;var b=$.ig.JsonSerializerUtils.prototype.d(a,"n");var c=$.ig.ArrayJsonSerializer.prototype.b().e($.ig.OlapResultTuple.prototype.$type,$.ig.JsonSerializerUtils.prototype.d(a,"t"),$.ig.TupleJsonTypeSeriazlier.prototype.b());var d=0;if(c.count()>0){d=c.item(0).members().count()}return function(){var $ret=new $.ig.OlapResultAxis(c,d);$ret.name(b);return $ret}()},toJsonObject:function(a){var b=$.ig.ArrayJsonSerializer.prototype.b().c($.ig.OlapResultTuple.prototype.$type,a.tuples(),$.ig.TupleJsonTypeSeriazlier.prototype.b());var c=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(c,"n",a.name());
$.ig.JsonSerializerUtils.prototype.f(c,"t",b);return c},$type:new $.ig.Type("AxisJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.OlapResultAxis.prototype.$type))},true);$.ig.util.defType("AxisMemberJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.OlapResultAxisMember.prototype.$type)},b:function(){return $.ig.AxisMemberJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.OlapResultAxisMember;$ret.hierarchyUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"hun"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.levelUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"lun"));$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.levelNumber($.ig.JsonSerializerUtils.prototype.d(a,"ln"));$ret.displayInfo($.ig.JsonSerializerUtils.prototype.d(a,"di"));$ret.properties($.ig.JsonSerializerUtils.prototype.b(a,"p"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"hun",a.hierarchyUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"lun",a.levelUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"ln",a.levelNumber());$.ig.JsonSerializerUtils.prototype.f(b,"di",a.displayInfo());$.ig.JsonSerializerUtils.prototype.g(b,"p",a.properties());return b},$type:new $.ig.Type("AxisMemberJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.OlapResultAxisMember.prototype.$type))},true);$.ig.util.defType("CatalogJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Catalog.prototype.$type)},b:function(){return $.ig.CatalogJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Catalog;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());return b},$type:new $.ig.Type("CatalogJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Catalog.prototype.$type))},true);$.ig.util.defType("CellJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.OlapResultCell.prototype.$type)},b:function(){return $.ig.CellJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.OlapResultCell;$ret.cellOrdinal($.ig.JsonSerializerUtils.prototype.d(a,"co"));$ret.properties($.ig.JsonSerializerUtils.prototype.a(a,"p"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"co",a.cellOrdinal());$.ig.JsonSerializerUtils.prototype.e(b,"p",a.properties());return b},$type:new $.ig.Type("CellJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.OlapResultCell.prototype.$type))},true);$.ig.util.defType("CubeJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Cube.prototype.$type)},b:function(){return $.ig.CubeJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Cube;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.catalogName($.ig.JsonSerializerUtils.prototype.d(a,"cn"));$ret.cubeType($.ig.JsonSerializerUtils.prototype.d(a,"ct"));$ret.lastProcessed($.ig.JsonSerializerUtils.prototype.d(a,"lp"));$ret.lastUpdated($.ig.JsonSerializerUtils.prototype.d(a,"lu"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"cn",a.catalogName());$.ig.JsonSerializerUtils.prototype.f(b,"ct",a.cubeType());$.ig.JsonSerializerUtils.prototype.f(b,"lp",a.lastProcessed());$.ig.JsonSerializerUtils.prototype.f(b,"lu",a.lastUpdated());return b},$type:new $.ig.Type("CubeJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Cube.prototype.$type))},true);$.ig.util.defType("DimensionJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Dimension.prototype.$type)},b:function(){return $.ig.DimensionJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Dimension;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.dimensionType($.ig.JsonSerializerUtils.prototype.d(a,"dt"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"dt",a.dimensionType());return b},$type:new $.ig.Type("DimensionJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Dimension.prototype.$type))},true);$.ig.util.defType("HierarchyJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Hierarchy.prototype.$type)},b:function(){return $.ig.HierarchyJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Hierarchy;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.allMember($.ig.JsonSerializerUtils.prototype.d(a,"am"));$ret.defaultMember($.ig.JsonSerializerUtils.prototype.d(a,"dm"));$ret.dimensionUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"dun"));$ret.hierarchyDisplayFolder($.ig.JsonSerializerUtils.prototype.d(a,"hdf"));$ret.hierarchyOrigin($.ig.JsonSerializerUtils.prototype.d(a,"ho"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"am",a.allMember());$.ig.JsonSerializerUtils.prototype.f(b,"dm",a.defaultMember());$.ig.JsonSerializerUtils.prototype.f(b,"dun",a.dimensionUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"hdf",a.hierarchyDisplayFolder());$.ig.JsonSerializerUtils.prototype.f(b,"ho",a.hierarchyOrigin());return b},$type:new $.ig.Type("HierarchyJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Hierarchy.prototype.$type))},true);$.ig.util.defType("JsonSerializerUtils","Object",{init:function(){$.ig.Object.prototype.init.call(this)},c:function(){return $.ig.jQueryUtils.prototype.createJavascriptObject()},d:function(a,b){return $.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,b)},f:function(a,b,c){$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(a,b,c)},a:function(a,b){return $.ig.jQueryUtils.prototype.convertToObjectDictionary($.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,b))},e:function(a,b,c){var d=$.ig.jQueryUtils.prototype.convertFromObjectDictionary(c);$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(a,b,d)},b:function(a,b){return $.ig.jQueryUtils.prototype.convertToStringDictionary($.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,b))},g:function(a,b,c){var d=$.ig.jQueryUtils.prototype.convertFromStringDictionary(c);$.ig.jQueryUtils.prototype.setJavascriptObjectProperty(a,b,d)},$type:new $.ig.Type("JsonSerializerUtils",$.ig.Object.prototype.$type)},true);$.ig.util.defType("KpiJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Kpi.prototype.$type)},b:function(){return $.ig.KpiJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Kpi;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.kpiDisplayFolder($.ig.JsonSerializerUtils.prototype.d(a,"kdf"));$ret.measureGroupName($.ig.JsonSerializerUtils.prototype.d(a,"mgn"));$ret.kpiStatusGraphic($.ig.JsonSerializerUtils.prototype.d(a,"ksg"));$ret.kpiTrendGraphic($.ig.JsonSerializerUtils.prototype.d(a,"ktg"));$ret.parentKpiName($.ig.JsonSerializerUtils.prototype.d(a,"pkn"));$ret.kpiGoal($.ig.JsonSerializerUtils.prototype.d(a,"kg"));$ret.kpiStatus($.ig.JsonSerializerUtils.prototype.d(a,"ks"));$ret.kpiTrend($.ig.JsonSerializerUtils.prototype.d(a,"kt"));$ret.kpiValue($.ig.JsonSerializerUtils.prototype.d(a,"kv"));$ret.kpiWeight($.ig.JsonSerializerUtils.prototype.d(a,"kw"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"kdf",a.kpiDisplayFolder());$.ig.JsonSerializerUtils.prototype.f(b,"mgn",a.measureGroupName());$.ig.JsonSerializerUtils.prototype.f(b,"ksg",a.kpiStatusGraphic());$.ig.JsonSerializerUtils.prototype.f(b,"ktg",a.kpiTrendGraphic());$.ig.JsonSerializerUtils.prototype.f(b,"pkn",a.parentKpiName());$.ig.JsonSerializerUtils.prototype.f(b,"kg",a.kpiGoal());$.ig.JsonSerializerUtils.prototype.f(b,"ks",a.kpiStatus());$.ig.JsonSerializerUtils.prototype.f(b,"kt",a.kpiTrend());$.ig.JsonSerializerUtils.prototype.f(b,"kv",a.kpiValue());$.ig.JsonSerializerUtils.prototype.f(b,"kw",a.kpiWeight());return b},$type:new $.ig.Type("KpiJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Kpi.prototype.$type))},true);$.ig.util.defType("LevelJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Level.prototype.$type)},b:function(){return $.ig.LevelJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Level;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.depth($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.dimensionUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"dun"));$ret.hierarchyUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"hun"));$ret.levelOrderingProperty($.ig.JsonSerializerUtils.prototype.d(a,"lop"));$ret.levelOrigin($.ig.JsonSerializerUtils.prototype.d(a,"lo"));$ret.membersCount($.ig.JsonSerializerUtils.prototype.d(a,"mc"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.depth());$.ig.JsonSerializerUtils.prototype.f(b,"dun",a.dimensionUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"hun",a.hierarchyUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"lop",a.levelOrderingProperty());$.ig.JsonSerializerUtils.prototype.f(b,"lo",a.levelOrigin());$.ig.JsonSerializerUtils.prototype.f(b,"mc",a.membersCount());return b},$type:new $.ig.Type("LevelJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Level.prototype.$type))},true);$.ig.util.defType("MeasureGroupDimensionJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.MeasureGroupDimension.prototype.$type)},b:function(){return $.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.MeasureGroupDimension;$ret.catalogName($.ig.JsonSerializerUtils.prototype.d(a,"cn"));$ret.cubeName($.ig.JsonSerializerUtils.prototype.d(a,"cbn"));$ret.dimensionCardinality($.ig.JsonSerializerUtils.prototype.d(a,"dc"));$ret.dimensionGranularity($.ig.JsonSerializerUtils.prototype.d(a,"dg"));$ret.dimensionPath($.ig.JsonSerializerUtils.prototype.d(a,"dap"));$ret.dimensionUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"dun"));$ret.isDimensionVisible($.ig.JsonSerializerUtils.prototype.d(a,"idv"));$ret.isFactDimension($.ig.JsonSerializerUtils.prototype.d(a,"iafd"));$ret.measureGroupCardinality($.ig.JsonSerializerUtils.prototype.d(a,"mgc"));$ret.measureGroupName($.ig.JsonSerializerUtils.prototype.d(a,"mgn"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"cn",a.catalogName());$.ig.JsonSerializerUtils.prototype.f(b,"cbn",a.cubeName());$.ig.JsonSerializerUtils.prototype.f(b,"dc",a.dimensionCardinality());$.ig.JsonSerializerUtils.prototype.f(b,"dg",a.dimensionGranularity());$.ig.JsonSerializerUtils.prototype.f(b,"dap",a.dimensionPath());$.ig.JsonSerializerUtils.prototype.f(b,"dun",a.dimensionUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"idv",a.isDimensionVisible());$.ig.JsonSerializerUtils.prototype.f(b,"iafd",a.isFactDimension());$.ig.JsonSerializerUtils.prototype.f(b,"mgc",a.measureGroupCardinality());$.ig.JsonSerializerUtils.prototype.f(b,"mgn",a.measureGroupName());return b},$type:new $.ig.Type("MeasureGroupDimensionJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.MeasureGroupDimension.prototype.$type))},true);$.ig.util.defType("MeasureGroupJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.MeasureGroup.prototype.$type)},b:function(){return $.ig.MeasureGroupJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.MeasureGroup;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.catalogName($.ig.JsonSerializerUtils.prototype.d(a,"cn"));$ret.cubeName($.ig.JsonSerializerUtils.prototype.d(a,"cbn"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"cn",a.catalogName());$.ig.JsonSerializerUtils.prototype.f(b,"cbn",a.cubeName());return b},$type:new $.ig.Type("MeasureGroupJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.MeasureGroup.prototype.$type))},true);$.ig.util.defType("MeasureJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Measure.prototype.$type)},b:function(){return $.ig.MeasureJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.Measure;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.aggregatorType($.ig.JsonSerializerUtils.prototype.d(a,"at"));$ret.defaultFormatString($.ig.JsonSerializerUtils.prototype.d(a,"dfs"));$ret.measureDisplayFolder($.ig.JsonSerializerUtils.prototype.d(a,"mdf"));$ret.measureGroupName($.ig.JsonSerializerUtils.prototype.d(a,"mgn"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"at",a.aggregatorType());$.ig.JsonSerializerUtils.prototype.f(b,"dfs",a.defaultFormatString());$.ig.JsonSerializerUtils.prototype.f(b,"mdf",a.measureDisplayFolder());$.ig.JsonSerializerUtils.prototype.f(b,"mgn",a.measureGroupName());return b},$type:new $.ig.Type("MeasureJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Measure.prototype.$type))},true);$.ig.util.defType("MemberJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.Member.prototype.$type)},b:function(){return $.ig.MemberJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;var b=$.ig.util.toNullable($.ig.Number.prototype.$type,null);var c=$.ig.JsonSerializerUtils.prototype.d(a,"s");return function(){var $ret=new $.ig.Member;$ret.caption($.ig.JsonSerializerUtils.prototype.d(a,"c"));$ret.description($.ig.JsonSerializerUtils.prototype.d(a,"d"));$ret.name($.ig.JsonSerializerUtils.prototype.d(a,"n"));$ret.uniqueName($.ig.JsonSerializerUtils.prototype.d(a,"un"));$ret.catalogName($.ig.JsonSerializerUtils.prototype.d(a,"cn"));$ret.childrenCardinality($.ig.JsonSerializerUtils.prototype.d(a,"cc"));$ret.cubeName($.ig.JsonSerializerUtils.prototype.d(a,"cbn"));$ret.dimensionUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"dun"));$ret.hierarchyUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"hun"));$ret.levelDepth($.ig.JsonSerializerUtils.prototype.d(a,"ld"));$ret.levelUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"lun"));$ret.memberType($.ig.JsonSerializerUtils.prototype.d(a,"mt"));$ret.parentLevel($.ig.JsonSerializerUtils.prototype.d(a,"pl"));$ret.parentUniqueName($.ig.JsonSerializerUtils.prototype.d(a,"pun"));$ret.scope(c==null?b:$.ig.Number.prototype.parseInt(c));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"c",a.caption());$.ig.JsonSerializerUtils.prototype.f(b,"d",a.description());$.ig.JsonSerializerUtils.prototype.f(b,"n",a.name());$.ig.JsonSerializerUtils.prototype.f(b,"un",a.uniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"cn",a.catalogName());$.ig.JsonSerializerUtils.prototype.f(b,"cc",a.childrenCardinality());$.ig.JsonSerializerUtils.prototype.f(b,"cbn",a.cubeName());$.ig.JsonSerializerUtils.prototype.f(b,"dun",a.dimensionUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"hun",a.hierarchyUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"ld",a.levelDepth());$.ig.JsonSerializerUtils.prototype.f(b,"lun",a.levelUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"mt",a.memberType());$.ig.JsonSerializerUtils.prototype.f(b,"pl",a.parentLevel());$.ig.JsonSerializerUtils.prototype.f(b,"pun",a.parentUniqueName());$.ig.JsonSerializerUtils.prototype.f(b,"s",a.scope());return b},$type:new $.ig.Type("MemberJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.Member.prototype.$type))},true);$.ig.util.defType("RemoteRequest","Object",{init:function(){$.ig.Object.prototype.init.call(this)},_a:null,a:function(value){if(arguments.length===1){this._a=value;return value}else{return this._a}},_c:null,c:function(value){if(arguments.length===1){this._c=value;return value}else{return this._c}},_d:null,d:function(value){if(arguments.length===1){this._d=value;return value}else{return this._d}},_b:null,b:function(value){if(arguments.length===1){this._b=value;return value}else{return this._b}},_e:null,e:function(value){if(arguments.length===1){this._e=value;return value}else{return this._e}},$type:new $.ig.Type("RemoteRequest",$.ig.Object.prototype.$type)},true);$.ig.util.defType("RemoteRequestJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.RemoteRequest.prototype.$type)},b:function(){return $.ig.RemoteRequestJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;return function(){var $ret=new $.ig.RemoteRequest;$ret.a($.ig.JsonSerializerUtils.prototype.d(a,"t"));$ret.c($.ig.JsonSerializerUtils.prototype.b(a,"p"));$ret.d($.ig.JsonSerializerUtils.prototype.b(a,"r"));$ret.b($.ig.JsonSerializerUtils.prototype.b(a,"par"));$ret.e($.ig.JsonSerializerUtils.prototype.d(a,"s"));return $ret}()},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"t",a.a());$.ig.JsonSerializerUtils.prototype.g(b,"p",a.c());$.ig.JsonSerializerUtils.prototype.g(b,"r",a.d());$.ig.JsonSerializerUtils.prototype.g(b,"par",a.b());$.ig.JsonSerializerUtils.prototype.f(b,"s",a.e());return b},$type:new $.ig.Type("RemoteRequestJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.RemoteRequest.prototype.$type))},true);$.ig.util.defType("ResultJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.OlapResult.prototype.$type)},b:function(){return $.ig.ResultJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var $self=this;var b=$.ig.JsonSerializerUtils.prototype.d(a,"ie");if(b){return function(){var $ret=new $.ig.OlapResult;$ret.isEmpty(true);return $ret}()}else{var c=$.ig.ArrayJsonSerializer.prototype.b().e($.ig.OlapResultAxis.prototype.$type,$.ig.JsonSerializerUtils.prototype.d(a,"a"),$.ig.AxisJsonTypeSeriazlier.prototype.b());var d=$.ig.ArrayJsonSerializer.prototype.b().e($.ig.OlapResultCell.prototype.$type,$.ig.JsonSerializerUtils.prototype.d(a,"c"),$.ig.CellJsonTypeSeriazlier.prototype.b());return function(){var $ret=new $.ig.OlapResult;$ret.axes(c);$ret.cells(d);return $ret}()}},toJsonObject:function(a){var b=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(b,"ie",a.isEmpty());if(!a.isEmpty()){var c=$.ig.ArrayJsonSerializer.prototype.b().c($.ig.OlapResultAxis.prototype.$type,a.axes(),$.ig.AxisJsonTypeSeriazlier.prototype.b());var d=$.ig.ArrayJsonSerializer.prototype.b().c($.ig.OlapResultCell.prototype.$type,a.cells(),$.ig.CellJsonTypeSeriazlier.prototype.b());$.ig.JsonSerializerUtils.prototype.f(b,"a",c);$.ig.JsonSerializerUtils.prototype.f(b,"c",d)}return b},$type:new $.ig.Type("ResultJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.OlapResult.prototype.$type))},true);$.ig.util.defType("TupleJsonTypeSeriazlier","JsonTypeSeriazlierBase$1",{init:function(){$.ig.JsonTypeSeriazlierBase$1.prototype.init.call(this,$.ig.OlapResultTuple.prototype.$type)},b:function(){return $.ig.TupleJsonTypeSeriazlier.prototype.a},fromJsonObject:function(a){var b=$.ig.ArrayJsonSerializer.prototype.b().e($.ig.OlapResultAxisMember.prototype.$type,$.ig.JsonSerializerUtils.prototype.d(a,"m"),$.ig.AxisMemberJsonTypeSeriazlier.prototype.b());var c=new $.ig.OlapResultTuple(b);var e=b.getEnumerator();while(e.moveNext()){var d=e.current();d.position(c)}return c},toJsonObject:function(a){var b=$.ig.ArrayJsonSerializer.prototype.b().c($.ig.OlapResultAxisMember.prototype.$type,a.members(),$.ig.AxisMemberJsonTypeSeriazlier.prototype.b());var c=$.ig.JsonSerializerUtils.prototype.c();$.ig.JsonSerializerUtils.prototype.f(c,"m",b);return c},$type:new $.ig.Type("TupleJsonTypeSeriazlier",$.ig.JsonTypeSeriazlierBase$1.prototype.$type.specialize($.ig.OlapResultTuple.prototype.$type))},true);$.ig.util.defType("RemoteXmlaDataProvder","Object",{e:null,d:null,a:null,b:null,init:function(a,b,c,d){$.ig.Object.prototype.init.call(this);this.e=a;this.d=b;this.a=c;this.b=d},discoverCatalogsAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverCatalogs,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Catalog.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverCatalogs)})},discoverCubesAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverCubes,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Cube.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverCubes)})},discoverDimensionsAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverDimensions,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Dimension.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverDimensions)})},discoverHierarchiesAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverHierarchies,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Hierarchy.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverHierarchies)})},discoverLevelsAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverLevels,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Level.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverLevels)})},discoverMeasuresAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverMeasures,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Measure.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverMeasures)})},discoverMeasureGroupsAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverMeasureGroups,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.MeasureGroup.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverMeasureGroups)})},discoverMeasureGroupDimensionsAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.MeasureGroupDimension.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions)})},discoverMembersAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverMembers,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Member.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverMembers)})},discoverKpisAsync:function(a,b){var $self=this;var c=$self.b;return $self.f($.ig.RemoteRequestType.prototype.discoverKpis,a,b,null,null).j($.ig.IEnumerable$1.prototype.$type.specialize($.ig.Kpi.prototype.$type),function(d){return c.deserializeResponse(d.m(),$.ig.RemoteRequestType.prototype.discoverKpis)})},executeStatementAsync:function(a,b,c){var $self=this;var d=$self.b;return $self.f($.ig.RemoteRequestType.prototype.executeStatement,b,null,c,a).j($.ig.OlapResult.prototype.$type,function(e){return d.deserializeResponse(e.m(),$.ig.RemoteRequestType.prototype.executeStatement)})},f:function(a,b,c,d,e){var $self=this;var f=function(){var $ret=new $.ig.WebClient;$ret.a($self.d);return $ret}();var g=$self.a.serializeRequest(function(){var $ret=new $.ig.RemoteRequest;$ret.a(a);$ret.c($self.c(b));$ret.d($self.c(c));$ret.b($self.c(d));$ret.e(e);return $ret}());var h=new $.ig.TaskCompletionSource$1(String,0);f.uploadStringCompleted=$.ig.Delegate.prototype.combine(f.uploadStringCompleted,$self.g.runOn($self));f.h(new $.ig.Uri($self.e),"POST",g,h);return h.b()},g:function(a,b){var c=b.userState();if(b.cancelled()){c.c()}else if(b.error()!=null){c.d(b.error())}else{c.e(b.result())}},c:function(a){if(a==null){return null}var b=new $.ig.Dictionary$2(String,String,0);var d=a.getEnumerator();while(d.moveNext()){var c=d.current();b.add(c.a(),c.b())}return b},$type:new $.ig.Type("RemoteXmlaDataProvder",$.ig.Object.prototype.$type,[$.ig.IXmlaDataProvider.prototype.$type])},true);$.ig.util.defType("XmlaConnection","Object",{b:null,a:null,init:function(a,b){$.ig.Object.prototype.init.call(this);this.b=a;this.a=b},getXmlaSoapWebClient$1:function($t){var a=new $.ig.XmlaSoapWebClient$1($t,this.b,$.ig.Encoding.prototype.uTF8());a.e(this.a);return a},$type:new $.ig.Type("XmlaConnection",$.ig.Object.prototype.$type,[$.ig.ICoreXmlaConnection.prototype.$type])},true);$.ig.util.defType("XmlaDataSourceImpl","MdxDataSourceImpl",{init:function(a){$.ig.MdxDataSourceImpl.prototype.init.call(this,a);this.xmlaSourceOptions(a)},_xmlaSourceOptions:null,xmlaSourceOptions:function(value){if(arguments.length===1){this._xmlaSourceOptions=value;return value}else{return this._xmlaSourceOptions}},aq:function(a){var $self=this;var b=$self.dataProviderFactory().createDataProvider();var c=$self.getProviderDefaultRestrictions();$self.bj(c,$.ig.CubeRestrictions.prototype.a,a);var d=$self.getProviderDefaultProperties();$self.bj(d,$.ig.XmlaDiscoverProperties.prototype.a,a);var e=b.discoverCubesAsync(d,c).j($.ig.IList$1.prototype.$type.specialize($.ig.Cube.prototype.$type),function(f){$self.cubes($self.a1($.ig.Cube.prototype.$type,f.m()));return $self.cubes()});return e},ar:function(){var $self=this;var a=$self.catalog().name();var b=$self.cube().name();var c=$self.dataProviderFactory().createDataProvider();var d=$self.getProviderDefaultRestrictions();$self.bj(d,$.ig.MeasureGroupRestrictions.prototype.a,a);$self.bj(d,$.ig.MeasureGroupRestrictions.prototype.b,b);var e=$self.getProviderDefaultProperties();$self.bj(e,$.ig.XmlaDiscoverProperties.prototype.a,a);var f=c.discoverMeasureGroupsAsync(e,d).j($.ig.IList$1.prototype.$type.specialize($.ig.MeasureGroup.prototype.$type),function(g){$self.measureGroups($self.a1($.ig.MeasureGroup.prototype.$type,g.m()));return $self.measureGroups()});return f},h:function(){return new $.ig.DefaultXmlaDataProviderFactory(this.xmlaSourceOptions().serverUrl(),this.xmlaSourceOptions().requestOptions())},getProviderDefaultProperties:function(){var $self=this;var a=new $.ig.List$1($.ig.KeyValueItem.prototype.$type,0);if($self.mdxSourceOptions().discoverProperties()!=null){var c=$self.mdxSourceOptions().discoverProperties().getEnumerator();while(c.moveNext()){var b=c.current();var d=new $.ig.XmlaQueryProperty(1,b.key(),b.value());a.add(function(){var $ret=new $.ig.KeyValueItem;$ret.a(d.a());$ret.b(d.c());return $ret}())}}if($self.catalog()!=null){$self.bj(a,$.ig.XmlaDiscoverProperties.prototype.a,$self.catalog().name())}return a},$type:new $.ig.Type("XmlaDataSourceImpl",$.ig.MdxDataSourceImpl.prototype.$type)},true);$.ig.util.defType("XmlaDiscoverProperties","Object",{init:function(){$.ig.Object.prototype.init.call(this)},$type:new $.ig.Type("XmlaDiscoverProperties",$.ig.Object.prototype.$type)},true);$.ig.util.defType("XmlaDataSourceOptions","MdxDataSourceOptions",{init:function(){$.ig.MdxDataSourceOptions.prototype.init.call(this)
},_serverUrl:null,serverUrl:function(value){if(arguments.length===1){this._serverUrl=value;return value}else{return this._serverUrl}},_requestOptions:null,requestOptions:function(value){if(arguments.length===1){this._requestOptions=value;return value}else{return this._requestOptions}},$type:new $.ig.Type("XmlaDataSourceOptions",$.ig.MdxDataSourceOptions.prototype.$type)},true);$.ig.util.defType("RequestOptions","NetworkCredential",{init:function(initNumber,a,b){if(initNumber>0){switch(initNumber){case 1:this.init1.apply(this,arguments);break}return}$.ig.RequestOptions.prototype.init1.call(this,1,a,b,String.empty())},init1:function(initNumber,a,b,c){$.ig.NetworkCredential.prototype.init1.call(this,1,a,b,c)},$type:new $.ig.Type("RequestOptions",$.ig.NetworkCredential.prototype.$type)},true);$.ig.util.defType("CustomRemoteXmlaRequestSerializer","Object",{a:null,init:function(a){$.ig.Object.prototype.init.call(this);this.a=a},serializeRequest:function(a){return this.a(a)},deserializeRequest:function(a){throw new $.ig.NotSupportedException(1)},$type:new $.ig.Type("CustomRemoteXmlaRequestSerializer",$.ig.Object.prototype.$type,[$.ig.IRemoteRequestSerializer.prototype.$type])},true);$.ig.util.defType("CustomRemoteXmlaResponseSerializer","Object",{a:null,init:function(a){$.ig.Object.prototype.init.call(this);this.a=a},serializeResponse:function(a,b){throw new $.ig.NotSupportedException(1)},deserializeResponse:function(a,b){return this.a(a,b)},$type:new $.ig.Type("CustomRemoteXmlaResponseSerializer",$.ig.Object.prototype.$type,[$.ig.IRemoteResponseSerializer.prototype.$type])},true);$.ig.util.defType("OlapXmlaDataSource","DataSourceBase",{staticInit:function(){$.ig.OlapXmlaDataSource.prototype.a5()},init:function(a){var $self=this;$.ig.DataSourceBase.prototype.init.call(this);var b=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"serverUrl");var c=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"catalog");var d=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"cube");var e=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"measures");var f=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"measureGroup");var g=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"filters");var h=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"columns");var i=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"rows");var j=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"requestOptions");var k=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"enableResultCache");var l=true;if(k!=null){l=k}var m=$.ig.jQueryUtils.prototype.convertToStringDictionary($.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"discoverProperties"));var n=$.ig.jQueryUtils.prototype.convertToStringDictionary($.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"executeProperties"));var o=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"isRemote");if(o){if(j==null){j={}}var ro_=j;ro_.isCrossDomain=false}var p=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"serializeRequest");var q=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"deserializeResponse");var r=this.a0(a);var s=function(){var $ret=new $.ig.XmlaDataSourceOptions;$ret.serverUrl(b);$ret.requestOptions(j);$ret.catalog(c);$ret.cube(d);$ret.measures(e);$ret.measureGroup(f);$ret.filters(g);$ret.columns(h);$ret.rows(i);$ret.discoverProperties(m);$ret.executeProperties(n);$ret.enableResultCache(l);$ret.mdxSettings(r);return $ret}();if(o){var t=null;var u=null;if(p!=null){t=new $.ig.CustomRemoteXmlaRequestSerializer(p)}if(q!=null){u=new $.ig.CustomRemoteXmlaResponseSerializer(q)}var v=new $.ig.RemoteXmlaDataProviderFactory(1,b,j);s.dataProviderFactory(v)}this.dataSource(new $.ig.XmlaDataSourceImpl(s))},catalogs:function(){return this.dataSource().catalogs().inner()},catalog:function(){return this.dataSource().catalog()},setCatalog:function(a){var $self=this;return $self.dataSource().setCatalog(a).j($.ig.Array.prototype.$type,function(b){return b.m().inner()}).c()},measureGroups:function(){return this.dataSource().measureGroups().inner()},measureGroup:function(){return this.dataSource().measureGroup()},setMeasureGroup:function(a){var $self=this;return $self.dataSource().setMeasureGroup(a).j($.ig.OlapMetadataTreeItem.prototype.$type,function(b){return b.m()}).c()},a0:function(a){var b=new $.ig.MdxSettings;var c=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(a,"mdxSettings");if(c==null){return b}var d=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(c,"nonEmptyOnRows");if(d!=null){b.y(d)}var e=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(c,"nonEmptyOnColumns");if(e!=null){b.x(e)}var f=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(c,"addCalculatedMembersOnRows");if(f!=null){b.q(f)}var g=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(c,"addCalculatedMembersOnColumns");if(g!=null){b.p(g)}var h=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(c,"dimensionPropertiesOnRows");if(h!=null){for(var i=0;i<h.count();i++){b.ac().add(h.item(i))}}var j=$.ig.jQueryUtils.prototype.getJavascriptObjectProperty(c,"dimensionPropertiesOnColumns");if(j!=null){for(var k=0;k<j.count();k++){b.ab().add(j.item(k))}}return b},a5:function(){$.ig.StringBuilder.prototype.toString=function(){return this._internal.join("")};$.ig.XObject.prototype.toString=function(){if(this.backingNode()!=null){return $.ig.XmlUtils.prototype.xmlNodeToString(this.backingNode())}else{return""}}},$type:new $.ig.Type("OlapXmlaDataSource",$.ig.DataSourceBase.prototype.$type)},true);$.ig.RemoteRequestType.prototype.discoverCatalogs=0;$.ig.RemoteRequestType.prototype.discoverCubes=1;$.ig.RemoteRequestType.prototype.discoverDimensions=2;$.ig.RemoteRequestType.prototype.discoverHierarchies=3;$.ig.RemoteRequestType.prototype.discoverLevels=4;$.ig.RemoteRequestType.prototype.discoverMeasures=5;$.ig.RemoteRequestType.prototype.discoverMeasureGroups=6;$.ig.RemoteRequestType.prototype.discoverMeasureGroupDimensions=7;$.ig.RemoteRequestType.prototype.discoverMembers=8;$.ig.RemoteRequestType.prototype.discoverKpis=9;$.ig.RemoteRequestType.prototype.executeStatement=10;$.ig.MdxElementType.prototype.member=0;$.ig.MdxElementType.prototype.memberTree=1;$.ig.MdxElementType.prototype.calculated=2;$.ig.MdxElementType.prototype.filter=3;$.ig.MdxElementType.prototype.collection=4;$.ig.MdxElementType.prototype.userDefined=5;$.ig.XmlaSoapMessageHeader.prototype.none=0;$.ig.XmlaSoapMessageHeader.prototype.session=1;$.ig.XmlaSoapMessageHeader.prototype.beginSession=2;$.ig.XmlaSoapMessageHeader.prototype.endSession=3;$.ig.CatalogConstants.prototype.a="CATALOG_NAME";$.ig.CatalogConstants.prototype.c="DESCRIPTION";$.ig.CatalogConstants.prototype.d="ROLES";$.ig.CatalogConstants.prototype.b="DATE_MODIFIED";$.ig.DbSchemaConstants.prototype.a="DBSCHEMA_CATALOGS";$.ig.DbSchemaConstants.prototype.b="DBSCHEMA_COLUMNS";$.ig.DbSchemaConstants.prototype.d="DBSCHEMA_TABLES";$.ig.DbSchemaConstants.prototype.c="DBSCHEMA_PROVIDER_TYPES";$.ig.CubeConstants.prototype.c="CATALOG_NAME";$.ig.CubeConstants.prototype.n="SCHEMA_NAME";$.ig.CubeConstants.prototype.e="CUBE_NAME";$.ig.CubeConstants.prototype.f="CUBE_TYPE";$.ig.CubeConstants.prototype.m="LAST_SCHEMA_UPDATE";$.ig.CubeConstants.prototype.l="LAST_DATA_UPDATE";$.ig.CubeConstants.prototype.g="DESCRIPTION";$.ig.CubeConstants.prototype.h="IS_DRILLTHROUGH_ENABLED";$.ig.CubeConstants.prototype.i="IS_LINKABLE";$.ig.CubeConstants.prototype.k="IS_WRITE_ENABLED";$.ig.CubeConstants.prototype.j="IS_SQL_ENABLED";$.ig.CubeConstants.prototype.d="CUBE_CAPTION";$.ig.CubeConstants.prototype.b="BASE_CUBE_NAME";$.ig.CubeConstants.prototype.a="ANNOTATIONS";$.ig.DimensionConstants.prototype.a="CATALOG_NAME";$.ig.DimensionConstants.prototype.p="SCHEMA_NAME";$.ig.DimensionConstants.prototype.b="CUBE_NAME";$.ig.DimensionConstants.prototype.i="DIMENSION_NAME";$.ig.DimensionConstants.prototype.l="DIMENSION_UNIQUE_NAME";$.ig.DimensionConstants.prototype.e="DIMENSION_CAPTION";$.ig.DimensionConstants.prototype.j="DIMENSION_ORDINAL";$.ig.DimensionConstants.prototype.k="DIMENSION_TYPE";$.ig.DimensionConstants.prototype.f="DIMENSION_CARDINALITY";$.ig.DimensionConstants.prototype.c="DEFAULT_HIERARCHY";$.ig.DimensionConstants.prototype.d="DESCRIPTION";$.ig.DimensionConstants.prototype.o="IS_VIRTUAL";$.ig.DimensionConstants.prototype.n="IS_READWRITE";$.ig.DimensionConstants.prototype.m="DIMENSION_UNIQUE_SETTINGS";$.ig.DimensionConstants.prototype.h="DIMENSION_MASTER_NAME";$.ig.DimensionConstants.prototype.g="DIMENSION_IS_VISIBLE";$.ig.HierarchyConstants.prototype.b="CATALOG_NAME";$.ig.HierarchyConstants.prototype.c="CUBE_NAME";$.ig.HierarchyConstants.prototype.j="DIMENSION_UNIQUE_NAME";$.ig.HierarchyConstants.prototype.q="HIERARCHY_NAME";$.ig.HierarchyConstants.prototype.t="HIERARCHY_UNIQUE_NAME";$.ig.HierarchyConstants.prototype.m="HIERARCHY_CAPTION";$.ig.HierarchyConstants.prototype.i="DIMENSION_TYPE";$.ig.HierarchyConstants.prototype.n="HIERARCHY_CARDINALITY";$.ig.HierarchyConstants.prototype.d="DEFAULT_MEMBER";$.ig.HierarchyConstants.prototype.a="ALL_MEMBER";$.ig.HierarchyConstants.prototype.e="DESCRIPTION";$.ig.HierarchyConstants.prototype.w="IS_VIRTUAL";$.ig.HierarchyConstants.prototype.v="IS_READWRITE";$.ig.HierarchyConstants.prototype.k="DIMENSION_UNIQUE_SETTINGS";$.ig.HierarchyConstants.prototype.g="DIMENSION_IS_VISIBLE";$.ig.HierarchyConstants.prototype.h="DIMENSION_MASTER_UNIQUE_NAME";$.ig.HierarchyConstants.prototype.r="HIERARCHY_ORDINAL";$.ig.HierarchyConstants.prototype.f="DIMENSION_IS_SHARED";$.ig.HierarchyConstants.prototype.p="HIERARCHY_IS_VISIBLE";$.ig.HierarchyConstants.prototype.s="HIERARCHY_ORIGIN";$.ig.HierarchyConstants.prototype.o="HIERARCHY_DISPLAY_FOLDER";$.ig.HierarchyConstants.prototype.u="INSTANCE_SELECTION";$.ig.HierarchyConstants.prototype.l="GROUPING_BEHAVIOR";$.ig.HierarchyConstants.prototype.x="STRUCTURE_TYPE";$.ig.InstanceConstants.prototype.a="INSTANCE_NAME";$.ig.InstanceConstants.prototype.b="INSTANCE_PORT_NUMBER";$.ig.InstanceConstants.prototype.c="INSTANCE_STATE";$.ig.KpiConstants.prototype.a="CATALOG_NAME";$.ig.KpiConstants.prototype.q="SCHEMA_NAME";$.ig.KpiConstants.prototype.b="CUBE_NAME";$.ig.KpiConstants.prototype.p="MEASUREGROUP_NAME";$.ig.KpiConstants.prototype.h="KPI_NAME";$.ig.KpiConstants.prototype.c="KPI_CAPTION";$.ig.KpiConstants.prototype.e="KPI_DESCRIPTION";$.ig.KpiConstants.prototype.f="KPI_DISPLAY_FOLDER";$.ig.KpiConstants.prototype.n="KPI_VALUE";$.ig.KpiConstants.prototype.g="KPI_GOAL";$.ig.KpiConstants.prototype.j="KPI_STATUS";$.ig.KpiConstants.prototype.l="KPI_TREND";$.ig.KpiConstants.prototype.k="KPI_STATUS_GRAPHIC";$.ig.KpiConstants.prototype.m="KPI_TREND_GRAPHIC";$.ig.KpiConstants.prototype.o="KPI_WEIGHT";$.ig.KpiConstants.prototype.d="KPI_CURRENT_TIME_MEMBER";$.ig.KpiConstants.prototype.i="KPI_PARENT_KPI_NAME";$.ig.LevelConstants.prototype.a="CATALOG_NAME";$.ig.LevelConstants.prototype.b="CUBE_NAME";$.ig.LevelConstants.prototype.e="DIMENSION_UNIQUE_NAME";$.ig.LevelConstants.prototype.f="HIERARCHY_UNIQUE_NAME";$.ig.LevelConstants.prototype.l="LEVEL_NAME";$.ig.LevelConstants.prototype.q="LEVEL_UNIQUE_NAME";$.ig.LevelConstants.prototype.g="LEVEL_CAPTION";$.ig.LevelConstants.prototype.m="LEVEL_NUMBER";$.ig.LevelConstants.prototype.h="LEVEL_CARDINALITY";$.ig.LevelConstants.prototype.p="LEVEL_TYPE";$.ig.LevelConstants.prototype.d="DESCRIPTION";$.ig.LevelConstants.prototype.c="CUSTOM_ROLLUP_SETTINGS";$.ig.LevelConstants.prototype.r="LEVEL_UNIQUE_SETTINGS";$.ig.LevelConstants.prototype.j="LEVEL_IS_VISIBLE";$.ig.LevelConstants.prototype.n="LEVEL_ORDERING_PROPERTY";$.ig.LevelConstants.prototype.i="LEVEL_DBTYPE";$.ig.LevelConstants.prototype.k="LEVEL_KEY_CARDINALITY";$.ig.LevelConstants.prototype.o="LEVEL_ORIGIN";$.ig.MeasureConstants.prototype.a="CATALOG_NAME";$.ig.MeasureConstants.prototype.r="SCHEMA_NAME";$.ig.MeasureConstants.prototype.b="CUBE_NAME";$.ig.MeasureConstants.prototype.l="MEASURE_NAME";$.ig.MeasureConstants.prototype.n="MEASURE_UNIQUE_NAME";$.ig.MeasureConstants.prototype.h="MEASURE_CAPTION";$.ig.MeasureConstants.prototype.g="MEASURE_AGGREGATOR";$.ig.MeasureConstants.prototype.c="DATA_TYPE";$.ig.MeasureConstants.prototype.p="NUMERIC_PRECISION";$.ig.MeasureConstants.prototype.q="NUMERIC_SCALE";$.ig.MeasureConstants.prototype.f="EXPRESSION";$.ig.MeasureConstants.prototype.e="DESCRIPTION";$.ig.MeasureConstants.prototype.k="MEASURE_IS_VISIBLE";$.ig.MeasureConstants.prototype.m="MEASURE_NAME_SQL_COLUMN_NAME";$.ig.MeasureConstants.prototype.o="MEASURE_UNQUALIFIED_CAPTION";$.ig.MeasureConstants.prototype.j="MEASUREGROUP_NAME";$.ig.MeasureConstants.prototype.i="MEASURE_DISPLAY_FOLDER";$.ig.MeasureConstants.prototype.d="DEFAULT_FORMAT_STRING";$.ig.MeasureGroupConstants.prototype.a="CATALOG_NAME";$.ig.MeasureGroupConstants.prototype.f="SCHEMA_NAME";$.ig.MeasureGroupConstants.prototype.b="CUBE_NAME";$.ig.MeasureGroupConstants.prototype.e="MEASUREGROUP_NAME";$.ig.MeasureGroupConstants.prototype.c="DESCRIPTION";$.ig.MeasureGroupConstants.prototype.d="MEASUREGROUP_CAPTION";$.ig.MeasureGroupDimensionConstants.prototype.a="CATALOG_NAME";$.ig.MeasureGroupDimensionConstants.prototype.k="SCHEMA_NAME";$.ig.MeasureGroupDimensionConstants.prototype.b="CUBE_NAME";$.ig.MeasureGroupDimensionConstants.prototype.j="MEASUREGROUP_NAME";$.ig.MeasureGroupDimensionConstants.prototype.i="MEASUREGROUP_CARDINALITY";$.ig.MeasureGroupDimensionConstants.prototype.h="DIMENSION_UNIQUE_NAME";$.ig.MeasureGroupDimensionConstants.prototype.c="DIMENSION_CARDINALITY";$.ig.MeasureGroupDimensionConstants.prototype.f="DIMENSION_IS_VISIBLE";$.ig.MeasureGroupDimensionConstants.prototype.e="DIMENSION_IS_FACT_DIMENSION";$.ig.MeasureGroupDimensionConstants.prototype.g="DIMENSION_PATH";$.ig.MeasureGroupDimensionConstants.prototype.d="DIMENSION_GRANULARITY";$.ig.MemberConstants.prototype.a="CATALOG_NAME";$.ig.MemberConstants.prototype.u="SCHEMA_NAME";$.ig.MemberConstants.prototype.c="CUBE_NAME";$.ig.MemberConstants.prototype.e="DIMENSION_UNIQUE_NAME";$.ig.MemberConstants.prototype.g="HIERARCHY_UNIQUE_NAME";$.ig.MemberConstants.prototype.k="LEVEL_UNIQUE_NAME";$.ig.MemberConstants.prototype.j="LEVEL_NUMBER";$.ig.MemberConstants.prototype.o="MEMBER_NAME";$.ig.MemberConstants.prototype.q="MEMBER_UNIQUE_NAME";$.ig.MemberConstants.prototype.p="MEMBER_TYPE";$.ig.MemberConstants.prototype.m="MEMBER_GUID";$.ig.MemberConstants.prototype.l="MEMBER_CAPTION";$.ig.MemberConstants.prototype.b="CHILDREN_CARDINALITY";$.ig.MemberConstants.prototype.s="PARENT_LEVEL";$.ig.MemberConstants.prototype.t="PARENT_UNIQUE_NAME";$.ig.MemberConstants.prototype.r="PARENT_COUNT";$.ig.MemberConstants.prototype.d="DESCRIPTION";$.ig.MemberConstants.prototype.f="EXPRESSION";$.ig.MemberConstants.prototype.n="MEMBER_KEY";$.ig.MemberConstants.prototype.i="IS_PLACEHOLDERMEMBER";$.ig.MemberConstants.prototype.h="IS_DATAMEMBER";$.ig.MemberConstants.prototype.v="SCOPE";$.ig.OlapSchemaConstants.prototype.a="MDSCHEMA_CUBES";$.ig.OlapSchemaConstants.prototype.b="MDSCHEMA_DIMENSIONS";$.ig.OlapSchemaConstants.prototype.g="MDSCHEMA_MEASUREGROUPS";$.ig.OlapSchemaConstants.prototype.f="MDSCHEMA_MEASUREGROUP_DIMENSIONS";$.ig.OlapSchemaConstants.prototype.h="MDSCHEMA_MEASURES";$.ig.OlapSchemaConstants.prototype.c="MDSCHEMA_HIERARCHIES";$.ig.OlapSchemaConstants.prototype.e="MDSCHEMA_LEVELS";$.ig.OlapSchemaConstants.prototype.i="MDSCHEMA_MEMBERS";$.ig.OlapSchemaConstants.prototype.d="MDSCHEMA_KPIS";$.ig.CubeRestrictions.prototype.a="CATALOG_NAME";$.ig.CubeRestrictions.prototype.d="SCHEMA_NAME";$.ig.CubeRestrictions.prototype.b="CUBE_NAME";$.ig.CubeRestrictions.prototype.c="CUBE_SOURCE";$.ig.DimensionRestrictions.prototype.a="CATALOG_NAME";$.ig.DimensionRestrictions.prototype.g="SCHEMA_NAME";$.ig.DimensionRestrictions.prototype.b="CUBE_NAME";$.ig.DimensionRestrictions.prototype.d="DIMENSION_NAME";$.ig.DimensionRestrictions.prototype.e="DIMENSION_UNIQUE_NAME";$.ig.DimensionRestrictions.prototype.c="CUBE_SOURCE";$.ig.DimensionRestrictions.prototype.f="DIMENSION_VISIBILITY";$.ig.HierarchyRestrictions.prototype.a="CATALOG_NAME";$.ig.HierarchyRestrictions.prototype.i="SCHEMA_NAME";$.ig.HierarchyRestrictions.prototype.b="CUBE_NAME";$.ig.HierarchyRestrictions.prototype.d="DIMENSION_UNIQUE_NAME";$.ig.HierarchyRestrictions.prototype.e="HIERARCHY_NAME";$.ig.HierarchyRestrictions.prototype.g="HIERARCHY_UNIQUE_NAME";$.ig.HierarchyRestrictions.prototype.f="HIERARCHY_ORIGIN";$.ig.HierarchyRestrictions.prototype.c="CUBE_SOURCE";$.ig.HierarchyRestrictions.prototype.h="HIERARCHY_VISIBILITY";$.ig.KpiRestrictions.prototype.a="CATALOG_NAME";$.ig.KpiRestrictions.prototype.e="SCHEMA_NAME";$.ig.KpiRestrictions.prototype.b="CUBE_NAME";$.ig.KpiRestrictions.prototype.d="KPI_NAME";$.ig.KpiRestrictions.prototype.c="CUBE_SOURCE";$.ig.LevelRestrictions.prototype.a="CATALOG_NAME";$.ig.LevelRestrictions.prototype.j="SCHEMA_NAME";$.ig.LevelRestrictions.prototype.b="CUBE_NAME";$.ig.LevelRestrictions.prototype.d="DIMENSION_UNIQUE_NAME";$.ig.LevelRestrictions.prototype.e="HIERARCHY_UNIQUE_NAME";$.ig.LevelRestrictions.prototype.f="LEVEL_NAME";$.ig.LevelRestrictions.prototype.h="LEVEL_UNIQUE_NAME";$.ig.LevelRestrictions.prototype.g="LEVEL_ORIGIN";$.ig.LevelRestrictions.prototype.c="CUBE_SOURCE";$.ig.LevelRestrictions.prototype.i="LEVEL_VISIBILITY";$.ig.MeasureRestrictions.prototype.a="CATALOG_NAME";$.ig.MeasureRestrictions.prototype.h="SCHEMA_NAME";$.ig.MeasureRestrictions.prototype.b="CUBE_NAME";$.ig.MeasureRestrictions.prototype.e="MEASURE_NAME";$.ig.MeasureRestrictions.prototype.f="MEASURE_UNIQUE_NAME";$.ig.MeasureRestrictions.prototype.d="MEASUREGROUP_NAME";$.ig.MeasureRestrictions.prototype.c="CUBE_SOURCE";$.ig.MeasureRestrictions.prototype.g="MEASURE_VISIBILITY";$.ig.MeasureGroupRestrictions.prototype.a="CATALOG_NAME";$.ig.MeasureGroupRestrictions.prototype.d="SCHEMA_NAME";$.ig.MeasureGroupRestrictions.prototype.b="CUBE_NAME";$.ig.MeasureGroupRestrictions.prototype.c="MEASUREGROUP_NAME";$.ig.MeasureGroupDimensionRestrictions.prototype.a="CATALOG_NAME";$.ig.MeasureGroupDimensionRestrictions.prototype.f="SCHEMA_NAME";$.ig.MeasureGroupDimensionRestrictions.prototype.b="CUBE_NAME";$.ig.MeasureGroupDimensionRestrictions.prototype.e="MEASUREGROUP_NAME";$.ig.MeasureGroupDimensionRestrictions.prototype.c="DIMENSION_UNIQUE_NAME";$.ig.MeasureGroupDimensionRestrictions.prototype.d="DIMENSION_VISIBILITY";$.ig.MemberRestrictions.prototype.a="CATALOG_NAME";$.ig.MemberRestrictions.prototype.k="SCHEMA_NAME";$.ig.MemberRestrictions.prototype.b="CUBE_NAME";$.ig.MemberRestrictions.prototype.d="DIMENSION_UNIQUE_NAME";$.ig.MemberRestrictions.prototype.e="HIERARCHY_UNIQUE_NAME";$.ig.MemberRestrictions.prototype.g="LEVEL_UNIQUE_NAME";$.ig.MemberRestrictions.prototype.f="LEVEL_NUMBER";$.ig.MemberRestrictions.prototype.h="MEMBER_NAME";$.ig.MemberRestrictions.prototype.j="MEMBER_UNIQUE_NAME";$.ig.MemberRestrictions.prototype.i="MEMBER_TYPE";$.ig.MemberRestrictions.prototype.l="TREE_OP";$.ig.MemberRestrictions.prototype.c="CUBE_SOURCE";$.ig.XmlaConstants.prototype.ak="DBSCHEMA_CATALOGS";$.ig.XmlaConstants.prototype.al="MDSCHEMA_CUBES";$.ig.XmlaConstants.prototype.ai="RestrictionList";$.ig.XmlaConstants.prototype.ah="PropertyList";$.ig.XmlaConstants.prototype.e="DataSourceInfo";$.ig.XmlaConstants.prototype.b="Catalog";$.ig.XmlaConstants.prototype.at="SCHEMA_NAME";$.ig.XmlaConstants.prototype.aj="row";$.ig.XmlaConstants.prototype.h="DESCRIPTION";$.ig.XmlaConstants.prototype.d="CUBE";$.ig.XmlaConstants.prototype.k="DIMENSION";$.ig.XmlaConstants.prototype.am="MDSCHEMA_DIMENSIONS";$.ig.XmlaConstants.prototype.aq="MDSCHEMA_MEASUREGROUPS";$.ig.XmlaConstants.prototype.aa="MEASUREGROUP_NAME";$.ig.XmlaConstants.prototype.z="MEASUREGROUP_CAPTION";$.ig.XmlaConstants.prototype.ap="MDSCHEMA_MEASUREGROUP_DIMENSIONS";$.ig.XmlaConstants.prototype.j="DIMENSION_NAME";$.ig.XmlaConstants.prototype.m="DIMENSION_UNIQUE_NAME";$.ig.XmlaConstants.prototype.i="DIMENSION_CAPTION";$.ig.XmlaConstants.prototype.ar="MDSCHEMA_MEASURES";$.ig.XmlaConstants.prototype.ab="MEASURE_NAME";$.ig.XmlaConstants.prototype.ac="MEASURE_UNIQUE_NAME";$.ig.XmlaConstants.prototype.y="MEASURE_CAPTION";$.ig.XmlaConstants.prototype.x="MEASURE_AGGREGATOR";$.ig.XmlaConstants.prototype.l="DIMENSION_TYPE";$.ig.XmlaConstants.prototype.an="MDSCHEMA_HIERARCHIES";$.ig.XmlaConstants.prototype.p="HIERARCHY_NAME";$.ig.XmlaConstants.prototype.r="HIERARCHY_UNIQUE_NAME";$.ig.XmlaConstants.prototype.n="HIERARCHY_CAPTION";$.ig.XmlaConstants.prototype.q="HIERARCHY_ORIGIN";$.ig.XmlaConstants.prototype.g="DEFAULT_MEMBER";$.ig.XmlaConstants.prototype.a="ALL_MEMBER";$.ig.XmlaConstants.prototype.u="LEVEL_NAME";$.ig.XmlaConstants.prototype.s="LEVEL_CAPTION";$.ig.XmlaConstants.prototype.w="LEVEL_UNIQUE_NAME";$.ig.XmlaConstants.prototype.v="LEVEL_NUMBER";$.ig.XmlaConstants.prototype.t="LEVEL_CARDINALITY";$.ig.XmlaConstants.prototype.ao="MDSCHEMA_LEVELS";$.ig.XmlaConstants.prototype.as="MDSCHEMA_MEMBERS";$.ig.XmlaConstants.prototype.av="TREE_OP";$.ig.XmlaConstants.prototype.ae="MEMBER_NAME";$.ig.XmlaConstants.prototype.af="MEMBER_UNIQUE_NAME";$.ig.XmlaConstants.prototype.ad="MEMBER_CAPTION";$.ig.XmlaConstants.prototype.ag="PARENT_UNIQUE_NAME";$.ig.XmlaConstants.prototype.c="CHILDREN_CARDINALITY";$.ig.XmlaConstants.prototype.f="DEFAULT_FORMAT_STRING";$.ig.XmlaConstants.prototype.o="HIERARCHY_DISPLAY_FOLDER";$.ig.XmlaConstants.prototype.au="SCOPE";$.ig.XmlaSoapMethodResult.prototype.a="return";$.ig.XmlaNamespace.prototype.f="urn:schemas-microsoft-com:xml-sql";$.ig.XmlaNamespace.prototype.a="urn:schemas-microsoft-com:xml-analysis";$.ig.XmlaNamespace.prototype.d="urn:schemas-microsoft-com:xml-analysis:mddataset";$.ig.XmlaNamespace.prototype.e="urn:schemas-microsoft-com:xml-analysis:rowset";$.ig.XmlaNamespace.prototype.b="urn:schemas-microsoft-com:xml-analysis:empty";$.ig.XmlaNamespace.prototype.c="urn:schemas-microsoft-com:xml-analysis:exception";$.ig.XmlaSoapMessageBuilder.prototype.d="Envelope";$.ig.XmlaSoapMessageBuilder.prototype.e="Header";$.ig.XmlaSoapMessageBuilder.prototype.b="Body";$.ig.XmlaSoapMessageBuilder.prototype.f="soap";$.ig.XmlaSoapMessageBuilder.prototype.g="http://schemas.xmlsoap.org/soap/envelope/";$.ig.XmlaSoapMethod.prototype.h="Properties";$.ig.XmlaSoapMethod.prototype.i="PropertyList";$.ig.XmlaSoapMethodDiscover.prototype.m="Discover";$.ig.XmlaSoapMethodDiscover.prototype.o="RequestType";$.ig.XmlaSoapMethodDiscover.prototype.q="Restrictions";$.ig.XmlaSoapMethodDiscover.prototype.p="RestrictionList";$.ig.XmlaSoapMethodDiscover.prototype.s="SessionId";$.ig.XmlaSoapMethodExecute.prototype.k="Execute";$.ig.XmlaSoapMethodExecute.prototype.j="Command";$.ig.XmlaSoapMethodExecute.prototype.m="Statement";$.ig.XmlaSoapWebClient.prototype.a=null;if($.ig.XmlaSoapWebClient.prototype.staticInit&&!$.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled){$.ig.XmlaSoapWebClient.prototype.staticInit();$.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled=true}$.ig.XmlaSoapWebClient.prototype.a=null;if($.ig.XmlaSoapWebClient.prototype.staticInit&&!$.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled){$.ig.XmlaSoapWebClient.prototype.staticInit();$.ig.XmlaSoapWebClient.prototype.xmlaSoapWebClientStaticInitCalled=true}$.ig.ArrayJsonSerializer.prototype.a=new $.ig.ArrayJsonSerializer;$.ig.AxisJsonTypeSeriazlier.prototype.a=new $.ig.AxisJsonTypeSeriazlier;$.ig.AxisMemberJsonTypeSeriazlier.prototype.a=new $.ig.AxisMemberJsonTypeSeriazlier;$.ig.CatalogJsonTypeSeriazlier.prototype.a=new $.ig.CatalogJsonTypeSeriazlier;$.ig.CellJsonTypeSeriazlier.prototype.a=new $.ig.CellJsonTypeSeriazlier;$.ig.CubeJsonTypeSeriazlier.prototype.a=new $.ig.CubeJsonTypeSeriazlier;$.ig.DimensionJsonTypeSeriazlier.prototype.a=new $.ig.DimensionJsonTypeSeriazlier;$.ig.HierarchyJsonTypeSeriazlier.prototype.a=new $.ig.HierarchyJsonTypeSeriazlier;$.ig.KpiJsonTypeSeriazlier.prototype.a=new $.ig.KpiJsonTypeSeriazlier;$.ig.LevelJsonTypeSeriazlier.prototype.a=new $.ig.LevelJsonTypeSeriazlier;$.ig.MeasureGroupDimensionJsonTypeSeriazlier.prototype.a=new $.ig.MeasureGroupDimensionJsonTypeSeriazlier;$.ig.MeasureGroupJsonTypeSeriazlier.prototype.a=new $.ig.MeasureGroupJsonTypeSeriazlier;$.ig.MeasureJsonTypeSeriazlier.prototype.a=new $.ig.MeasureJsonTypeSeriazlier;$.ig.MemberJsonTypeSeriazlier.prototype.a=new $.ig.MemberJsonTypeSeriazlier;$.ig.RemoteRequestJsonTypeSeriazlier.prototype.a=new $.ig.RemoteRequestJsonTypeSeriazlier;$.ig.ResultJsonTypeSeriazlier.prototype.a=new $.ig.ResultJsonTypeSeriazlier;$.ig.TupleJsonTypeSeriazlier.prototype.a=new $.ig.TupleJsonTypeSeriazlier;$.ig.XmlaDiscoverProperties.prototype.a="Catalog";$.ig.util.extCopy($.ig.TaskExtensions,[[[$.ig.Task,$.ig.Task$1],["continueWithTask$1","continueWithTask$2"]]]);$.ig.util.extCopy($.ig.Queryable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.XmlaPropertiesCollection],["asQueryable"]]]);$.ig.util.extCopy($.ig.Enumerable,[[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.XmlaPropertiesCollection],["where$1","where$11","select$2","selectMany$2","last$1","first$1","firstOrDefault$1","orderBy$2","orderByDescending$2","toList$1","concat$1","max","max$1","min","min$1","count$1","reverse$1","take$1","skip$1","any$1","contains$1","union$1","toArray$1","elementAt$1","sum","sum$1"]],[[$.ig.SortedList$1,$.ig.IGrouping$2,$.ig.IEnumerable,$.ig.ICollection,$.ig.IList,$.ig.Array,$.ig.Dictionary,$.ig.XmlNodeList,$.ig.XmlNamedNodeMap,$.ig.XmlaPropertiesCollection],["ofType$1","cast$1"]]])})(jQuery);(function($){$(document).ready(function(){var wm=$("#__ig_wm__").length>0?$("#__ig_wm__"):$('<div id="__ig_wm__"></div>').appendTo(document.body);wm.css({position:"fixed",bottom:0,right:0,zIndex:1e3}).addClass("ui-igtrialwatermark")})})(jQuery);