/*!@license
* Infragistics.Web.ClientUI infragistics.dv_datasource.js 21.2.20212.99
*
* Copyright (c) 2011-2022 Infragistics Inc.
*
* http://www.infragistics.com/
*
* Depends:
*     jquery-1.4.4.js
*     jquery.ui.core.js
*     jquery.ui.widget.js
*     infragistics.util.js
*     infragistics.ext_core.js
*     infragistics.ext_collections.js
*     infragistics.dv_core.js
*     infragistics.ext_ui.js
*/
(function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$y=$$t;var $$0=$.ig.globalDefs.$$0;var $$4=$.ig.globalDefs.$$4;var $$1=$.ig.globalDefs.$$1;var $$w=$.ig.globalDefs.$$w;var $$6=$.ig.globalDefs.$$6;var $$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["FilterFactory:i","DataSourceFilterBuilderBuildCallback:j","IFilterExpression:k","IOperationFilterExpression:l","IFunctionFilterExpression:m","ILiteralFilterExpression:n","IPropertyReferenceFilterExpression:o","FilterExpression:p","OperationFilterExpression:q","FunctionFilterExpression:r","PropertyReferenceFilterExpression:s","LiteralFilterExpression:t","WrapperExpression:u","TodayExpression:v","TomorrowExpression:w","YesterdayExpression:x","OffsettableWeekExpression:y","ThisWeekExpression:z","NextWeekExpression:aa","LastWeekExpression:ab","ThisMonthExpression:ac","NextMonthExpression:ad","LastMonthExpression:ae","ThisYearExpression:af","NextYearExpression:ag","LastYearExpression:ah","YearToDateExpression:ai","ThisQuarterExpression:aj","NextQuarterExpression:ak","LastQuarterExpression:al","Q1Expression:am","Q2Expression:an","Q3Expression:ao","Q4Expression:ap","FilterExpressionCollection:at","IEditableDataSource:aw","DataSourceDataCommittedHandler:ay","IDataSource:a1","IDataSourceSupportsCount:a3","IDataSourceSupportsIndexedAccess:a4","ISupportsDataChangeNotifications:a5","ISupportsExpansionChangeNotifications:a6","DataSourceSchemaChangedHandler:a7","DataSourceRowExpansionChangedHandler:a9","IDataSourceDataProvider:bb","IDataSourceDataProviderUpdateNotifier:bc","DataSourceDataProviderSchemaChangedHandler:bd","IDataSourceExecutionContext:bf","DataSourceExecutionContextExecuteCallback:bg","IDataSourceLocalDataProvider:bh","IDataSourcePage:bi","IDataSourceSchema:bj","IDataSourceUpdateNotifier:bm","IDataSourceVirtualDataProvider:bn","DataSourcePageLoadedCallback:bp","DataSourceBatchCompletedCallback:bq","IExternalDataSource:br","IExternalLocalDataSource:bs","IExternalVirtualDataSource:bt","ISectionInformation:bu","ODataLiteralEmitter:bw","ISummaryResult:b2","SumSummaryCalculator:b4","CountSummaryCalculator:b5","AverageSummaryCalculator:b6","MaxSummaryCalculator:b7","MinSummaryCalculator:b8","SummaryCalculator:b9","SummaryDescription:cb","SummaryDescriptionCollection:cc","ProvideCalculatorEventHandler:cd","ProvideCalculatorEventArgs:ce","BaseDataSource:cf","DefaultDataSourceDataProviderUpdateNotifier:ci","LocalDataSource:ck","LocalDataSourceViewUpdateNotifier:cm","LocalDataSourceViewExpansionNotifier:cn","IPageCandidatesSink:cs","RearrangedListViewFilter:cw","DataSourceBatchStartedEventHandler:c2","DataSourceBatchCompletedEventHandler:c4","TransactionServiceStateChanged:c6"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compareSimple,$x=$.ig.util.tryParseNumber,$y=$.ig.util.tryParseNumber1,$z=$.ig.util.numberToString,$0=$.ig.util.numberToString1,$1=$.ig.util.parseNumber,$2=$.ig.util.compare,$3=$.ig.util.replace,$4=$.ig.util.stringFormat,$5=$.ig.util.stringFormat1,$6=$.ig.util.stringFormat2,$7=$.ig.util.stringCompare1,$8=$.ig.util.stringCompare2,$9=$.ig.util.stringCompare3,$aa=$.ig.util.equalsSimple,$ab=$.ig.util.tryParseInt32_1,$ac=$.ig.util.tryParseInt32_2,$ad=$.ig.util.intToString1,$ae=$.ig.util.parseInt32_1,$af=$.ig.util.parseInt32_2,$ag=$.ig.util.parseBool,$ah=$.ig.util.tryParseBool;$d("TransactionPendingState:de",false,false,{Pending:0,Accept:1,Reject:2});$d("TransactionEvent:dd",false,false,{Undo:0,Redo:1,Clear:2,Add:3,End:4,Commit:5});$d("TransactionType:dc",false,false,{Add:0,Update:1,"Delete:del":2});$d("SummaryOperand:ca",false,false,{Min:0,Max:1,Sum:2,Average:3,Count:4,Custom:5});$d("DataSourcePageRequestPriority:bo",false,false,{Low:0,Normal:1,High:2});$d("DataSourceSchemaPropertyType:bk",false,false,{StringValue:0,IntValue:1,BooleanValue:2,LongValue:3,ShortValue:4,DoubleValue:5,DecimalValue:6,SingleValue:7,DateTimeValue:8,DateTimeOffsetValue:9,ByteValue:10,ObjectValue:11});$d("DataSourceRowType:a2",false,false,{Normal:0,SectionHeader:1,SectionFooter:2,ShiftedRow:3,SummaryRowRoot:4,SummaryRowSection:5,Custom:6});$d("DataSourceSummaryScope:a0",false,false,{Both:0,Root:1,Groups:2,None:3});$d("DataSourceSectionHeaderDisplayMode:av",false,false,{Combined:0,Split:1});$d("FilterExpressionWrapperType:as",false,false,{Today:0,Tomorrow:1,Yesterday:2,ThisWeek:3,NextWeek:4,LastWeek:5,ThisMonth:6,NextMonth:7,LastMonth:8,ThisYear:9,NextYear:10,LastYear:11,ThisQuarter:12,NextQuarter:13,LastQuarter:14,YearToDate:15,Q1:16,Q2:17,Q3:18,Q4:19});$d("FilterExpressionOperatorType:ar",false,false,{None:0,Equal:1,NotEqual:2,GreaterThan:3,GreaterThanOrEqual:4,LessThan:5,LessThanOrEqual:6,And:7,Or:8,Not:9,Add:10,Subtract:11,Multiply:12,Divide:13,Modulo:14,Grouping:15});$d("FilterExpressionFunctionType:aq",false,false,{Contains:0,EndsWith:1,StartsWith:2,Length:3,IndexOf:4,Replace:5,Substring:6,ToLower:7,ToUpper:8,Trim:9,Concat:10,Day:11,Hour:12,Minute:13,Month:14,Second:15,Year:16,Round:17,Floor:18,Ceiling:19,Date:20,Time:21,Now:22,IsOf:23,Cast:24});$c("ISupportsDataChangeNotifications:a5","Object",{$type:new $.ig.Type("ISupportsDataChangeNotifications",null)},true);$c("IDataSourceSupportsCount:a3","Object",{$type:new $.ig.Type("IDataSourceSupportsCount",null)},true);$c("IDataSourceDataProvider:bb","Object",{$type:new $.ig.Type("IDataSourceDataProvider",null,[$$t.$a5.$type,$$t.$a3.$type])},true);$c("IDataSourceSupportsIndexedAccess:a4","Object",{$type:new $.ig.Type("IDataSourceSupportsIndexedAccess",null,[$$t.$a3.$type])},true);$c("IDataSourceLocalDataProvider:bh","Object",{$type:new $.ig.Type("IDataSourceLocalDataProvider",null,[$$t.$bb.$type,$$t.$a4.$type])},true);$c("DataSourceLocalDataProvider:a","Object",{init:function(){this.x=5;this.r=new $$4.h(String,$.ig.FastReflectionHelper.prototype.$type,0);this.s=new $$4.q(String,0);this.h=null;this.p=false;this.o=false;this.n=false;$.ig.$op.init.call(this);this.l=new $$t.b1;this.l._addListener(this.al.runOn(this))},al:function(a,b){this.queueAutoRefresh()},l:null,k:null,e:null,m:null,d:0,x:0,y:null,dataSource:function(a){if(arguments.length===1){var b=this.y;this.y=a;if(b!=this.y){this.ah("ItemsSource",b,this.y)}return a}else{return this.y}},schemaChanged:null,getItemAtIndex:function(a){if(this.v==null){return null}if(this.p){}return this.v.item(a)},r:null,s:null,getItemValue:function(a,b){this.ae();var c;var d=this.r.tryGetValue(b,c);c=d.p1;if(c==null&&!this.s.contains(b)){var e=b.split(".");var f=a;var g=true;for(var h=0;h<e.length;h++){f=f[e[h]];if(f===undefined){g=false;break}}if(g){c=new $.ig.FastReflectionHelper(false,b);this.r.add(b,c)}else{this.s.add(b)}}if(c==null){return null}var val_=c.getPropertyValue(a);if(val_===undefined){return null}return val_},setItemValue:function(a,b,c){this.ae();var d;var e=this.r.tryGetValue(b,d);d=e.p1;if(d==null){return}d.setPropertyValue(a,c)},removeItem:function(a){if(this.v!=null){var b=this.v.indexOf(a);if(this.p){}else{this.v.removeAt(b)}this.notifyRemoveItem(b,a)}},addItem:function(a){if(this.v!=null){var b=this.actualCount();if(this.p){}else{this.v.insert(b,a)}this.notifyInsertItem(this.actualCount()-1,a)}},ae:function(){if(this.h==null){this.h=this.actualSchema();if(this.schemaChanged!=null){this.schemaChanged(this,new $$t.be(this.h,this.actualCount()))}}},actualCount:function(){if(this.v==null){return 0}if(this.p){}return this.v.count()},h:null,actualSchema:function(){if(this.h==null){if(this.v==null){this.h=new $$t.bl([],[],null,null,[])}else{this.h=this.j()}}return this.h},j:function(){var a=this.z();if(a==null){return new $$t.bl([],[],null,null,[])}this.r.clear();this.s.clear();return this.i(a,null,0)},i:function(a,b,c){if(c>=this.x){return null}if(a==null){return null}if(typeof a==="function"){return null}if(Array.isArray(a)){return null}var d=new $$4.x(String,0);var e=new $$4.q(String,0);var f=new $$4.x($$t.$bk.$type,0);var g=new $$4.x($$4.$x.$type.specialize(String),0);var h=this.t(a);var i=new $$4.x($$t.$bj.$type,0);for(var j=0;j<h.count();j++){var k=h.__inner[j];if(k.startsWith("_")){continue}if(k=="$hashCode"||k=="$type"){continue}if(e.contains(k)){continue}else{var l=b==null?k:b+"."+k;d.add(k);e.add(k);this.r.add(l,new $.ig.FastReflectionHelper(false,l));f.add(this.b(a,k));g.add(this.u(a,k));if(f.__inner[f.count()-1]==11){i.add(this.i(a[k],l,c+1))}else{i.add(null)}}}var m=new Array(g.count());for(var n=0;n<g.count();n++){m[n]=g.__inner[n].toArray()}return new $$t.bl(d.toArray(),f.toArray(),null,m,i.toArray())},resolveSchemaPropertyType:function(a){var b=a.split(".");if(b.length==1){for(var c=0;c<this.actualSchema().propertyNames().length;c++){if(this.actualSchema().propertyNames()[c]==b[0]){return this.actualSchema().propertyTypes()[c]}}return 11}else{var d=this.z();var e=this.getItemValue(d,a);if(e==null){return 11}else{return $$t.$a.c(e)}}},t:function(schemaItem_){var propertyKey_=null;var ret_=new $$4.x(String,0);var exclusions_={};for(propertyKey_ in schemaItem_){if(!isNaN(propertyKey_)){continue}if(!exclusions_.hasOwnProperty(propertyKey_)){ret_.add(propertyKey_)}}return ret_},ag:function(a,item_,propertyName_,b){if(item_.__dataIntents!==undefined){if(item_.__dataIntents[propertyName_]!==undefined){this.af(a,item_,propertyName_)}var selfName_="self."+propertyName_;if(!b&&item_.__dataIntents[selfName_]!==undefined){this.af(a,item_,selfName_)}var selfName2_="self_"+propertyName_;if(!b&&item_.__dataIntents[selfName2_]!==undefined){this.af(a,item_,selfName2_)}}},af:function(a,item_,propertyName_){var val_=item_.__dataIntents[propertyName_];var b=$b(Array,val_)!==null;if(b){var c=val_;for(var d=0;d<c.length;d++){if(c[d]!=null){a.add(c[d].toString())}}}},u:function(item_,propertyName_){var a=new $$4.x(String,0);var list_=this.v;var dataIntents_=null;this.ag(a,item_,propertyName_,false);this.ag(a,list_,propertyName_,true);return a},b:function(item_,propertyName_){if(item_==null){return 11}if(item_[propertyName_]==undefined){return 11}var value_=item_[propertyName_];return $$t.$a.c(value_)},c:function(value_){if(value_==null){return 11}if(typeof value_=="number"){return 5}if(typeof value_=="boolean"){return 2}if(typeof value_=="string"){return 0}if(typeof value_=="object"){if(value_ instanceof Date){return 8}}return 11},z:function(){var a=0;if(this.p){a=this.v.count()}else{a=this.v.count()}for(var b=0;b<a;b++){var c;if(this.p){c=this.v.item(b)}else{c=this.v.item(b)}if(c!=null){return c}}return null},ah:function(a,b,c){this.ai(a,b,c)},v:null,w:function(){return this.v},p:false,ai:function(a,b,c){switch(a){case"ItemsSource":this.h=null;if(this.dataSource()!=null){this.p=false;if($b(Array,this.dataSource())!==null){this.p=true;this.v=this.dataSource()}else if($b($$0.$bm.$type,this.dataSource())!==null){this.v=this.dataSource()}}else{this.v=null}this.ae();break;case"DeferAutoRefresh":if(!c){this.queueAutoRefresh()}break}},g:null,executionContext:function(a){if(arguments.length===1){this.g=a;return a}else{return this.g}},q:function(){return false},notifySetItem:function(a,b,c){if(this.q()){if(this.p){this.v.item(a,c)}else{this.v.item(a,c)}}if(this.updateNotifier()!=null){this.updateNotifier().notifySetItem(a,b,c)}},notifyClearItems:function(){if(this.q()){if(this.p){}else{this.v.clear()}}if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},notifyInsertItem:function(a,b){if(this.q()){if(this.p){}else{this.v.insert(a,b)}}var c=0;if(this.p){}else{c=this.v.count()}if(this.v!=null&&c==1&&(this.actualSchema()==null||this.actualSchema().propertyNames().length==0)){this.h=null;this.ae()}if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(a,b)}},notifyRemoveItem:function(a,b){if(this.q()){if(this.p){}else{this.v.remove(a)}}if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(a,b)}},f:null,updateNotifier:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},o:false,deferAutoRefresh:function(a){if(arguments.length===1){var b=this.o;this.o=a;if(this.o!=b){this.ah("DeferAutoRefresh",b,this.o)}return a}else{return this.o}},isSortingSupported:function(){return false},isFilteringSupported:function(){return false},sortDescriptions:function(){return this.l},filterExpressions:function(){return this.e},summaryDescriptions:function(){return this.m},summaryScope:function(a){if(arguments.length===1){this.d=a;return a}else{return this.d}},notifyUsingSourceIndexes:function(){return true},a:null,propertiesRequested:function(a){if(arguments.length===1){var b=this.a;this.a=a;if(b!=this.a){}return a}else{return this.a}},isItemIndexLookupSupported:function(){return true},isKeyIndexLookupSupported:function(){return false},isGroupingSupported:function(){return false},groupDescriptions:function(){return this.k},n:false,queueAutoRefresh:function(){if(this.deferAutoRefresh()){return}if(this.n){return}if(this.executionContext()!=null){this.n=true;this.executionContext().enqueueAction(this.ad.runOn(this))}},ad:function(){if(this.deferAutoRefresh()){this.n=false;return}if(!this.n){return}this.n=false;this.aj()},aj:function(){this.ak()},ak:function(){},flushAutoRefresh:function(){this.ad()},refresh:function(){this.aj()},indexOfItem:function(a){if(this.v==null){return-1}return this.v.indexOf(a)},indexOfKey:function(a){return-1},$type:new $.ig.Type("DataSourceLocalDataProvider",$.ig.$ot,[$$t.$bh.$type])},true);$c("IDataSourceExecutionContext:bf","Object",{$type:new $.ig.Type("IDataSourceExecutionContext",null)},true);$c("DataSourceExecutionContext:b","Object",{_requestAnimationFrame:null,requestAnimationFrame:function(a){if(arguments.length===1){this._requestAnimationFrame=a;return a}else{return this._requestAnimationFrame}},init:function(){$.ig.$op.init.call(this);this.requestAnimationFrame(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1e3/60)})},enqueueAction:function(a){window.setTimeout(function(){a()},0)},execute:function(a){window.setTimeout(function(){a()},0)},executeDelayed:function(a,b){window.setTimeout(function(){a()},b)},$type:new $.ig.Type("DataSourceExecutionContext",$.ig.$ot,[$$t.$bf.$type])},true);$c("AsyncVirtualDataTask:c","Object",{init:function(){$.ig.$op.init.call(this)},_hasErrors:false,hasErrors:function(a){if(arguments.length===1){this._hasErrors=a;return a}else{return this._hasErrors}},_isRunning:false,isRunning:function(a){if(arguments.length===1){this._isRunning=a;return a}else{return this._isRunning}},_isCancelled:false,isCancelled:function(a){if(arguments.length===1){this._isCancelled=a;return a}else{return this._isCancelled}},_isCompleted:false,isCompleted:function(a){if(arguments.length===1){this._isCompleted=a;return a}else{return this._isCompleted}},_result:null,result:function(a){if(arguments.length===1){this._result=a;return a}else{return this._result}},_run:null,run:function(a){if(arguments.length===1){this._run=a;return a}else{return this._run}},$type:new $.ig.Type("AsyncVirtualDataTask",$.ig.$ot)},true);$c("AsyncVirtualDataSourceDataProviderWorkerSettings:d","Object",{init:function(){$.ig.$op.init.call(this)},_pageSizeRequested:0,pageSizeRequested:function(a){if(arguments.length===1){this._pageSizeRequested=a;return a}else{return this._pageSizeRequested}},_timeoutMilliseconds:0,timeoutMilliseconds:function(a){if(arguments.length===1){this._timeoutMilliseconds=a;return a}else{return this._timeoutMilliseconds}},_pageLoaded:null,pageLoaded:function(a){if(arguments.length===1){this._pageLoaded=a;return a}else{return this._pageLoaded}},_batchCompleted:null,batchCompleted:function(a){if(arguments.length===1){this._batchCompleted=a;return a}else{return this._batchCompleted}},_executionContext:null,executionContext:function(a){if(arguments.length===1){this._executionContext=a;return a}else{return this._executionContext}},$type:new $.ig.Type("AsyncVirtualDataSourceDataProviderWorkerSettings",$.ig.$ot)},true);$c("AsyncVirtualDataSourceProviderTaskDataHolder:e","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("AsyncVirtualDataSourceProviderTaskDataHolder",$.ig.$ot)},true);$c("AsyncDataSourcePageTaskHolder:f","Object",{init:function(){$.ig.$op.init.call(this)},_task:null,task:function(a){if(arguments.length===1){this._task=a;return a}else{return this._task}},$type:new $.ig.Type("AsyncDataSourcePageTaskHolder",$.ig.$ot)},true);$c("AsyncDataSourcePageRequest:g","Object",{e:0,f:0,a:null,c:false,init:function(a,b){this.c=false;$.ig.$op.init.call(this);this.e=a;this.f=b},index:function(a){if(arguments.length===1){this.e=a;return a}else{return this.e}},retryDelay:function(a){if(arguments.length===1){this.f=a;return a}else{return this.f}},taskHolder:function(a){if(arguments.length===1){this.a=a;return a}else{return this.a}},isDone:function(a){if(arguments.length===1){this.c=a;return a}else{return this.c}},$type:new $.ig.Type("AsyncDataSourcePageRequest",$.ig.$ot)},true);$c("AsyncVirtualDataSourceProviderWorker:h","Object",{init:function(a){this.r=new $$4.v($$t.$g.$type);this.p=new $$4.x($$t.$g.$type,0);this.ac={};this.i=true;this.e=null;this.s=-1;this.h=false;this.g=false;$.ig.$op.init.call(this);this.i=true;this.u=a.pageSizeRequested();this.t=this.u;this.v=a.timeoutMilliseconds();this.as=new $$6.z(a.pageLoaded());this.aq=new $$6.z(a.batchCompleted());this.ar=new $$6.z(a.executionContext())},r:null,p:null,ac:null,i:false,u:0,t:0,v:0,e:null,s:0,as:null,aq:null,ar:null,h:false,tasks:function(){return this.p},pageLoaded:function(){if(this.as==null){return null}return this.as.c()},batchCompleted:function(){if(this.aq==null){return null}return this.aq.c()},executionContext:function(){if(this.ar==null){return null}return this.ar.c()},actualPageSize:function(a){if(arguments.length===1){this.t=a;return a}else{return this.t}},actualCount:function(a){if(arguments.length===1){this.s=a;return a}else{return this.s}},actualSchema:function(a){if(arguments.length===1){this.e=a;return a}else{return this.e}},populatedActualPageSize:function(a){if(arguments.length===1){this.h=a;return a}else{return this.h}},isRunning:function(a){if(arguments.length===1){this.i=a;return a}else{return this.i}},addPageRequest:function(a,b){return this.addPageRequestWithRetry(a,b,200)},addPageRequestWithRetry:function(a,b,c){if(this.isShutdown()){return false}if(b==2){this.r.e(new $$t.g(a,c))}else{this.r.f(new $$t.g(a,c))}return true},removePageRequest:function(a){var b=null;var c=this.r.c();while(c!=null){var d=c._c;if(d.index()==a){b=c;break}c=c.a}if(b!=null){this.r.h(b)}},_isShutdown:false,isShutdown:function(a){if(arguments.length===1){this._isShutdown=a;return a}else{return this._isShutdown}},removeAllPageRequests:function(){this.r.g()},shutdown:function(){this.as=null;this.aq=null;this.ar=null;this.isShutdown(true);this.i=false},initialize:function(){},getTaskDataHolder:function(){return null},getTasksData:function(a){},removeCompletedTaskData:function(a,b){},getCompletedTaskData:function(a,b){},runATask:function(){for(var a=0;a<this.p.count();a++){if(!this.p.item(a).taskHolder().task().isRunning()&&!this.p.item(a).isDone()&&!this.p.item(a).taskHolder().task().isCompleted()&&!this.p.item(a).taskHolder().task().isCancelled()){this.p.item(a).taskHolder().task().isRunning(true);this.p.item(a).taskHolder().task().run()();break}}},checkAndPotentiallyWaitOnTasks:function(a){this.runATask();for(var b=0;b<a.length;b++){if(a[b].isDone()||a[b].taskHolder().task().isCompleted()||a[b].taskHolder().task().isCancelled()){return b}}return-1},g:false,doWork:function(){if(!this.g){this.g=true;this.initialize()}{var a=null;var b=null;var c=this.p.count();if(this.r.c()!=null&&c<2){var d=this.r.c();this.r.i();this.makeTaskForRequest(d._c,d._c.retryDelay());c=this.p.count()}if(c>0){a=new Array(c);for(var e=0;e<c;e++){a[e]=this.p.item(e)}b=this.getTaskDataHolder();this.getTasksData(b)}if(a!=null&&a.length>0){var f=this.checkAndPotentiallyWaitOnTasks(a);if(!this.i){return}if(f>=0){var g=a[f];this.getCompletedTaskData(b,f);this.p.remove(g);this.removeCompletedTaskData(b,f);this.processCompletedTask(g.taskHolder(),g.retryDelay(),g.index(),b)}}else{}if(!this.i){return}if(this.i){window.setTimeout(this.doWork.runOn(this),100)}}},makeTaskForRequest:function(a,b){},processCompletedTask:function(a,b,c,d){},retryIndex:function(a,b){var $self=this;var c=b*2;if(b>2e4){this.removePageRequest(a)}if(this.ar==null){this.shutdown();return}var d=$b($$t.$bf.$type,this.ar.c());if(d==null){this.shutdown();return}d.executeDelayed(function(){$self.addPageRequestWithRetry(a,0,c)},b)},isLastPage:function(a){if(this.s<0){return false}if(this.s-a*this.t<this.t){return true}return false},createBatchRequest:function(a){},$type:new $.ig.Type("AsyncVirtualDataSourceProviderWorker",$.ig.$ot)},true);$c("FilterFactory:i","Object",{init:function(){this.au=$$0.$s.minValue();$.ig.$op.init.call(this)},au:new Date,todayOverride:function(a){if(arguments.length===1){this.au=a;return a}else{return this.au}},instance:function(){if($$t.$i.as==null){$$t.$i.as=new $$t.i}return $$t.$i.as},build:function(a){var b=$$t.$i.instance();return a(b)},property:function(a){return $$t.$p.property(a)},literal:function(a){return $$t.$p.literal(a)},group:function(a){return $$t.$p.operation(a,15,null)},and:function(a,b){return $$t.$p.operation(a,7,b)},or:function(a,b){return $$t.$p.operation(a,8,b)},not:function(a){return $$t.$p.operation(a,9,null)},add:function(a,b){return $$t.$p.operation(a,10,b)},divide:function(a,b){return $$t.$p.operation(a,13,b)},equal:function(a,b){return $$t.$p.operation(a,1,b)},greaterThan:function(a,b){return $$t.$p.operation(a,3,b)},greaterThanOrEqual:function(a,b){return $$t.$p.operation(a,4,b)},lessThan:function(a,b){return $$t.$p.operation(a,5,b)},lessThanOrEqual:function(a,b){return $$t.$p.operation(a,6,b)},modulus:function(a,b){return $$t.$p.operation(a,14,b)},multiply:function(a,b){return $$t.$p.operation(a,12,b)},notEqual:function(a,b){return $$t.$p.operation(a,2,b)},subtract:function(a,b){return $$t.$p.operation(a,11,b)},ceiling:function(a){return $$t.$p.func(19,[a])},concat:function(a,b){return $$t.$p.func(10,[a,b])},concat1:function(a,b){return $$t.$p.func(10,[a,$$t.$p.literal(b)])},contains:function(a,b){if(typeof b==="string"){b=$$t.$p.literal(b)}return $$t.$p.func(0,[a,b])},day:function(a){return $$t.$p.func(11,[a])},endsWith:function(a,b){if(typeof b==="string"){b=$$t.$p.literal(b)}return $$t.$p.func(1,[a,b])},floor:function(a){return $$t.$p.func(18,[a])},hour:function(a){return $$t.$p.func(12,[a])},indexOf:function(a,b){if(typeof b==="string"){b=$$t.$p.literal(b)}return $$t.$p.func(4,[a,b])},length:function(a){return $$t.$p.func(3,[a])},minute:function(a){return $$t.$p.func(13,[a])},month:function(a){return $$t.$p.func(14,[a])},replace:function(a,b,c){if(typeof b==="string"){b=$$t.$p.literal(b)}if(typeof c==="string"){c=$$t.$p.literal(c)}return $$t.$p.func(5,[a,b,c])},round:function(a){return $$t.$p.func(17,[a])},second:function(a){return $$t.$p.func(15,[a])},startsWith:function(a,b){if(typeof b==="string"){b=$$t.$p.literal(b)}return $$t.$p.func(2,[a,b])},substring:function(a,b,c){if(typeof b==="number"){b=$$t.$p.literal(b)}if(c!=null&&typeof c==="number"){c=$$t.$p.literal(c)}if(c!=null){return $$t.$p.func(6,[a,b,c])}else{return $$t.$p.func(6,[a,b])}},toLower:function(a){return $$t.$p.func(7,[a])},toUpper:function(a){return $$t.$p.func(8,[a])},trim:function(a){return $$t.$p.func(9,[a])},year:function(a){return $$t.$p.func(16,[a])},date:function(a){return $$t.$p.func(20,[a])},time:function(a){return $$t.$p.func(21,[a])},now:function(){return $$t.$p.func(16,[])},isOf:function(a,b){return $$t.$p.func(16,[a])},cast:function(a,b){return $$t.$p.func(24,[a])},$type:new $.ig.Type("FilterFactory",$.ig.$ot)},true);$c("IFilterExpression:k","Object",{$type:new $.ig.Type("IFilterExpression",null)},true);$c("IOperationFilterExpression:l","Object",{$type:new $.ig.Type("IOperationFilterExpression",null,[$$t.$k.$type])},true);$c("IFunctionFilterExpression:m","Object",{$type:new $.ig.Type("IFunctionFilterExpression",null,[$$t.$k.$type])},true);$c("ILiteralFilterExpression:n","Object",{$type:new $.ig.Type("ILiteralFilterExpression",null,[$$t.$k.$type])},true);$c("IPropertyReferenceFilterExpression:o","Object",{$type:new $.ig.Type("IPropertyReferenceFilterExpression",null,[$$t.$k.$type])},true);$c("FilterExpression:p","Object",{init:function(){this.bi=false;this.bj=false;$.ig.$op.init.call(this)},bi:false,_precedence:0,precedence:function(){return this._precedence},bj:false,markAutoGenerated:function(){this.bj=true},isAutoGenerated:function(){return this.bj},isFilterExpression:function(a){return $b($$t.$k.$type,a)!==null},isSchemaType:function(a){return $b($$t.$bk.$type,a)!==null},operation:function(a,b,c){if($$t.$p.isFilterExpression(a)){var d=a;if($$t.$p.isFilterExpression(c)){var e=c;return new $$t.q(d,b,e)}else{return new $$t.q(d,b,c)}}else{var f=a;if($$t.$p.isFilterExpression(c)){var g=c;return new $$t.q(f,b,g)}else{return new $$t.q(f,b,c)}}},func:function(a,b){return new $$t.r(a,b)},bp:function(){this.bi=this.bn()},bn:function(){},property:function(a){if(a==null){return null}var b=new $$t.s(null);b.propertyReference(a);return b},nullLiteral:function(){var a=new $$t.t(null,false);return a},literal:function(a){var b=new $$t.t(a,false);return b},unquotedLiteral:function(a){var b=new $$t.t(a,true);return b},match:function(a,b,c){var d=this.evaluate(a,b,c);return this.bo(d,b,c)},bo:function(a,b,c){if(!this.bi){return this.bk(a,b,c)}return a},bk:function(a,b,c){return $$6.$g.toBoolean(a)},evaluate:function(a,b,c){},isPropertyReference:function(){return false},isOperation:function(){return false},isFunction:function(){return false},isLiteral:function(){return false},isNull:function(){return false},isWrapper:function(){return false},group:function(){return $$t.$p.operation(this,15,null)},and:function(a){return $$t.$p.operation(this,7,a)},or:function(a){return $$t.$p.operation(this,8,a)},not:function(){return $$t.$p.operation(this,9,null)},add:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,10,b)}else{return $$t.$p.operation(this,10,a)}},plus:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,10,b)}else{return $$t.$p.operation(this,10,a)}},divide:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,13,b)}else{return $$t.$p.operation(this,13,a)}},divideBy:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,13,b)}else{return $$t.$p.operation(this,13,a)}},isEqualTo:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,1,b)}else{return $$t.$p.operation(this,1,a)}},isGreaterThan:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,3,b)}else{return $$t.$p.operation(this,3,a)}},isGreaterThanOrEqualTo:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,4,b)}else{return $$t.$p.operation(this,4,a)}},isLessThan:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,5,b)}else{return $$t.$p.operation(this,5,a)}},isLessThanOrEqualTo:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,6,b)}else{return $$t.$p.operation(this,6,a)}},modulo:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,14,b)}else{return $$t.$p.operation(this,14,a)}},multiply:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,12,b)}else{return $$t.$p.operation(this,12,a)}},times:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,12,b)}else{return $$t.$p.operation(this,12,a)}},isNotEqualTo:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,2,b)}else{return $$t.$p.operation(this,2,a)}},subtract:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,11,b)}else{return $$t.$p.operation(this,11,a)}},minus:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.operation(this,11,b)}else{return $$t.$p.operation(this,11,a)}},ceiling:function(){return $$t.$p.func(19,[this])},concat:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(10,[this,b])}else{var c=a;return $$t.$p.func(10,[this,$$t.$p.literal(c)])}},contains:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(0,[this,b])}else{var c=a;return $$t.$p.func(0,[this,$$t.$p.literal(c)])}},day:function(){return $$t.$p.func(11,[this])},endsWith:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(1,[this,b])}else{var c=a;return $$t.$p.func(1,[this,$$t.$p.literal(c)])}},floor:function(){return $$t.$p.func(18,[this])},hour:function(){return $$t.$p.func(12,[this])},indexOf:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(4,[this,b])}else{var c=a;return $$t.$p.func(4,[this,$$t.$p.literal(c)])}},length:function(){return $$t.$p.func(3,[this])},minute:function(){return $$t.$p.func(13,[this])},month:function(){return $$t.$p.func(14,[this])},isToday:function(){return new $$t.v(1,this)},isTomorrow:function(){return new $$t.w(1,this)},isYesterday:function(){return new $$t.x(1,this)},isThisWeek:function(){return new $$t.z(1,this)},isNextWeek:function(){return new $$t.aa(1,this)},isLastWeek:function(){return new $$t.ab(1,this)},isThisMonth:function(){return new $$t.ac(1,this)},isNextMonth:function(){return new $$t.ad(1,this)},isLastMonth:function(){return new $$t.ae(1,this)},isThisYear:function(){return new $$t.af(1,this)},isNextYear:function(){return new $$t.ag(1,this)},isLastYear:function(){return new $$t.ah(1,this)},isYearToDate:function(){return new $$t.ai(1,this)},isThisQuarter:function(){return new $$t.aj(1,this)},isNextQuarter:function(){return new $$t.ak(1,this)},isLastQuarter:function(){return new $$t.al(1,this)},isQ1:function(){return new $$t.am(1,this)},isQ2:function(){return new $$t.an(1,this)},isQ3:function(){return new $$t.ao(1,this)},isQ4:function(){return new $$t.ap(1,this)},replace:function(a,b){if($$t.$p.isFilterExpression(a)){var c=a;if($$t.$p.isFilterExpression(b)){var d=b;return $$t.$p.func(5,[this,c,d])}else{var e=b;return $$t.$p.func(5,[this,c,$$t.$p.literal(e)])}}else{var f=a;if($$t.$p.isFilterExpression(b)){var g=b;return $$t.$p.func(5,[this,$$t.$p.literal(f),g])}else{var h=b;return $$t.$p.func(5,[this,$$t.$p.literal(f),$$t.$p.literal(h)])}}},round:function(){return $$t.$p.func(17,[this])},second:function(){return $$t.$p.func(15,[this])},startsWith:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(2,[this,b])}else{var c=a;return $$t.$p.func(2,[this,$$t.$p.literal(c)])}},substring:function(a,b){if($$t.$p.isFilterExpression(a)){var c=a;if(b==null){return $$t.$p.func(6,[this,c])}else{if($$t.$p.isFilterExpression(b)){var d=b;return $$t.$p.func(6,[this,c,d])}else{var e=$h(b);return $$t.$p.func(6,[this,c,$$t.$p.literal(e)])}}}else{var f=$h(a);if(b==null){return $$t.$p.func(6,[this,$$t.$p.literal(f)])}else{if($$t.$p.isFilterExpression(b)){var g=b;return $$t.$p.func(6,[this,$$t.$p.literal(f),g])}else{var h=$h(b);return $$t.$p.func(6,[this,$$t.$p.literal(f),$$t.$p.literal(h)])}}}},toLower:function(){return $$t.$p.func(7,[this])},toUpper:function(){return $$t.$p.func(8,[this])},trim:function(){return $$t.$p.func(9,[this]);
},year:function(){return $$t.$p.func(16,[this])},date:function(){return $$t.$p.func(20,[this])},time:function(){return $$t.$p.func(21,[this])},now:function(){return $$t.$p.func(22,[])},isOf:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(23,[this,b])}else{var c=a;return $$t.$p.func(23,[this,$$t.$p.literal(a)])}},cast:function(a){if($$t.$p.isFilterExpression(a)){var b=a;return $$t.$p.func(24,[this,b])}else if($$t.$p.isSchemaType(a)){var c=$g(a);return $$t.$p.func(24,[this,$$t.$p.literal($$t.$bk.getBox(c))])}else{var d=a;return $$t.$p.func(24,[this,$$t.$p.literal(d)])}},$type:new $.ig.Type("FilterExpression",$.ig.$ot,[$$t.$k.$type])},true);$c("OperationFilterExpression:q","FilterExpression",{init:function(a,b,c){this.br=null;this.bt=false;this.bs=null;this.bu=false;this.bq=0;$$t.$p.init.call(this);if(a!=null){if($$t.$p.isFilterExpression(a)){this.br=a}else{this.propertyName(a)}}if(c!=null){if($$t.$p.isFilterExpression(c)){this.bs=c}else{this.value(c)}}this.bq=b},br:null,bt:false,bs:null,bu:false,bq:0,isOperation:function(){return true},bn:function(){return this.b0()},isComparisonOperation:function(){var a=this.operator();switch(a){case 0:case 1:case 2:case 3:case 5:case 6:case 4:return true}return false},propertyName:function(a){if(arguments.length===1){this.left($$t.$p.property(a));return a}else{if(this.br==null||!this.br.isPropertyReference()){return null}return this.br.propertyReference()}},hasPropertyName:function(){return this.br!=null&&this.br.isPropertyReference()},value:function(a){if(arguments.length===1){if(a==null){this.right($$t.$p.nullLiteral());return}this.right($$t.$p.literal(a));return a}else{if(this.bs==null){return null}if(this.bs.isNull()){return null}if(!this.bs.isLiteral()){return null}return this.bs.literalValue()}},hasValue:function(){return this.bs!=null},left:function(a){if(arguments.length===1){this.br=a;this.bt=true;this.bp();return a}else{return this.br}},hasLeft:function(){return this.bt},right:function(a){if(arguments.length===1){this.bs=a;this.bu=true;this.bp();return a}else{return this.bs}},hasRight:function(){return this.bu},operator:function(a){if(arguments.length===1){var b=$$t.$ar.getBox(this.bq);var c=a;if(c==null){a=0}if(typeof c=="number"){var d=$h(c);if(EnumUtil.getName(FilterExpressionOperatorType_$type,d)==undefined){a=0}a=d}else{a=typeGetValue(EnumUtil.parse(FilterExpressionOperatorType_$type,c,true))}this.bq=a;this.bp();return a}else{return this.bq}},hasOperator:function(){return this.bq!=0},b0:function(){switch(this.operator()){case 7:case 1:case 3:case 4:case 5:case 6:case 9:case 2:case 8:return true}return false},precedence:function(){switch(this.operator()){case 15:return 0;case 9:return 4;case 12:return 6;case 13:return 7;case 14:return 8;case 10:return 9;case 11:return 10;case 5:return 11;case 3:return 12;case 6:return 13;case 4:return 14;case 1:return 16;case 2:return 17;case 7:return 18;case 8:return 19;case 0:return 99}return 99},evaluate:function(a,b,c){switch(this.operator()){case 10:case 13:case 14:case 12:case 11:return this.b2(a,b,c);case 0:case 1:case 3:case 4:case 5:case 6:case 2:return this.b3(a,b,c);case 7:case 9:case 8:return this.b4(a,b,c);case 15:if(this.left()!=null){return this.left().evaluate(a,b,c)}else{if(this.right()==null){return null}return this.right().evaluate(a,b,c)}}throw new $$6.q(0)},b3:function(a,b,c){var d=null;var e=null;var f=-1;if(this.left()!=null){d=this.left().evaluate(a,b,c)}if(this.right()!=null){e=this.right().evaluate(a,b,c)}if(d==null&&e==null){f=0}var g=null;var h=null;if($b($$0.$ah.$type,d)!==null){g=d}if($b($$0.$ah.$type,e)!==null){h=e}if(typeof d==="number"&&isNaN(d)||typeof e==="number"&&isNaN(e)||typeof d==="number"&&$.ig.util.isNaN(d)||typeof e==="number"&&$.ig.util.isNaN(e)){return false}if($b($$0.$s.$type,d)!==null&&$b($$0.$s.$type,e)!==null){switch(this.operator()){case 1:return d.getTime()==e.getTime();case 2:return d.getTime()!=e.getTime();case 3:return d.getTime()>e.getTime();case 4:return d.getTime()>=e.getTime();case 5:return d.getTime()<e.getTime();case 6:return d.getTime()<=e.getTime()}}if(g!=null){if(e==null){f=g.compareTo(0);if(f==0){f=-1}}else{f=g.compareTo(e)}}else if(h!=null){if(d==null){var i=h.compareTo(0);if(i==0){f=1}else{f=1;if(i==0){f=0}if(i>0){f=-1}}}else{var j=h.compareTo(d);f=1;if(j==0){f=0}if(j>0){f=-1}}}else{var k=null;var l=null;if(d!=null){k=d.toString()}if(e!=null){l=e.toString()}if(k!=null){if(l==null){f=1}else{f=k.compareTo(l)}}else if(l!=null){if(k==null){f=-1}else{var m=l.compareTo(k);f=1;if(m==0){f=0}if(m>0){f=-1}}}else{f=0}}switch(this.operator()){case 0:case 1:return f==0;case 3:return f>0;case 4:return f>=0;case 5:return f<0;case 6:return f<=0;case 2:return f!=0}throw new $$6.p(0)},b4:function(a,b,c){var d=null;var e=null;if(this.left()!=null){d=this.left().evaluate(a,b,c)}if(this.right()!=null){e=this.right().evaluate(a,b,c)}if(e==null&&d==null){return false}if(e==null){e=false}if(d==null){d=false}switch(this.operator()){case 7:return d&&e;case 9:if(this.left()==null){return!e}else{return!d}case 8:return d||e}return false},b2:function(a,b,c){var d=null;var e=null;if(this.left()!=null){d=this.left().evaluate(a,b,c)}if(this.right()!=null){e=this.right().evaluate(a,b,c)}if(d==null){return e}if(e==null){return d}if(d==null&&e==null){return 0}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return d+e;case 13:return d/e;case 14:return d%e;case 12:return d*e;case 11:return d-e}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return d+e;case 13:return d/e;case 14:return d%e;case 12:return d*e;case 11:return d-e}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return d+e;case 13:return d/e;case 14:return d%e;case 12:return d*e;case 11:return d-e}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}if(typeof d==="number"||typeof e==="number"){switch(this.operator()){case 10:return $h(d)+$h(e);case 13:return $a($h(d),$h(e));case 14:return $h(d)%$h(e);case 12:return $h(d)*$h(e);case 11:return $h(d)-$h(e)}}throw new $$6.q(0)},$type:new $.ig.Type("OperationFilterExpression",$$t.$p.$type,[$$t.$l.$type])},true);$c("FunctionFilterExpression:r","FilterExpression",{init:function(a,b){this.br=19;this.bq=new $$t.at;$$t.$p.init.call(this);this.br=a;for(var c=0;c<b.length;c++){this.bq.add(b[c])}},br:0,bq:null,isFunction:function(){return true},bn:function(){return this.bs()},functionType:function(a){if(arguments.length===1){var b=$$t.$aq.getBox(this.br);var c=a;if(c==null){a=0}if(typeof c=="number"){var d=$h(c);if(EnumUtil.getName(FilterExpressionFunctionType_$type,d)==undefined){a=0}a=d}else{a=typeGetValue(EnumUtil.parse(FilterExpressionFunctionType_$type,c,true))}this.br=a;this.bp();return a}else{return this.br}},bs:function(){switch(this.functionType()){case 1:case 2:case 0:return true}return false},functionArguments:function(){return this.bq},hasFunctionArguments:function(){return this.bq.j().count()>0},evaluate:function(a,b,c){var d=null;var e=null;var f=null;var g=null;var h=this.functionArguments().j();if(h.count()>0){for(var i=0;i<h.count();i++){var j=null;if(h.item(i)!=null){j=h.item(i).evaluate(a,b,c)}switch(i){case 0:d=j;break;case 1:e=j;break;case 2:f=j;break;case 3:g=j;break}if(i>3){break}}}switch(this.functionType()){case 19:if(d==null){d=0}return Math.ceil(d);case 18:if(d==null){d=0}return Math.floor(d);case 17:if(d==null){d=0}if(typeof d==="number"){return Math.round(d)}return Math.round(d);case 11:if(d==null){return 0}return d.getDate();case 12:if(d==null){return 0}return d.getHours();case 13:if(d==null){return 0}return d.getMinutes();case 14:if(d==null){return 0}return $.ig.Date.prototype.getMonth(d);case 16:if(d==null){return 0}return d.getFullYear();case 15:if(d==null){return 0}return d.getSeconds();case 20:if(d==null){return 0}return $.ig.Date.prototype.getDate(d);case 21:if(d==null){return 0}return d;case 22:return $$0.$s.now();case 23:var k=this.bv(e,f);var l=d;if(l==null){return true}if(k==null){return false}if(k.isAssignableFrom(l.getType())){return true}return false;case 24:var m=this.bv(e,d);var n=d;if(n==null){return null}if(m==null){return null}return this.bt(n,m);case 10:if(d==null){d=""}if(e==null){e=""}return String.concat(d,e);case 1:if(d==null){d=""}if(e==null){e=""}return d.endsWith(e);case 4:if(d==null){d=""}if(e==null){e=""}return d.indexOf(e);case 3:if(d==null){d=""}return d.length;case 5:if(d==null){d=""}if(e==null){e=""}if(f==null){f=""}return $3(d,e,f);case 2:if(d==null){d=""}if(e==null){e=""}return d.startsWith(e);case 6:if(d==null){d=""}if(e==null){e=0}if(f!=null){return d.substr($h(e),$h(f))}else{return d.substr($h(e))}case 0:if(d==null){d=""}if(e==null){e=""}return d.contains(e);case 7:if(d==null){d=""}return d.toLowerCase();case 8:if(d==null){d=""}return d.toUpperCase();case 9:if(d==null){d=""}return d.trim()}throw new $$6.q(0)},precedence:function(){switch(this.functionType()){case 23:return 15;case 24:return 5}return 2},bt:function(a,b){if(b==String){if(a==null){return""}return a.toString()}else if(b==$$0.$aw.$type||b==$$0.$av.$type||b==$$0.$aw.$type){return $$6.$g.toInt321(a)}else if(b==$$0.$aq.$type){return $$6.$g.toBoolean(a)}else if(b==$$0.$ar.$type){return $$6.$g.toByte1(a)}else if(b==$$0.$s.$type){return $$6.$g.toDateTime(a)}else if(b==$$0.$ax.$type||b==$$0.$ax.$type){return $$6.$g.toInt64(a)}else if(b==$$0.$v.$type){return $$6.$g.toDecimal2(a)}else{return a}},bv:function(a,b){if($b($$t.$bk.$type,a)!==null||typeof a==="number"){var c=$h(a);switch(c){case 2:return $$0.$aq.$type;case 10:return $$0.$ar.$type;case 9:return $$0.$s.$type;case 8:return $$0.$s.$type;case 6:return $$0.$v.$type;case 5:return Number;case 1:return $$0.$aw.$type;case 3:return $$0.$ax.$type;case 11:if(b!=null&&typeof b==="string"){return this.bu(b)}return $.ig.$op.$type;case 4:return $$0.$av.$type;case 7:return $$0.$a8.$type;case 0:return String}}if(typeof a==="string"){return this.bu(b)}return $.ig.$op.$type},bu:function(a){switch(a){case"Edm.Boolean":case"Boolean":case"bool":case"boolean":return $$0.$aq.$type;case"Edm.Byte":case"Byte":case"byte":case"Edm.SByte":case"SByte":return $$0.$ar.$type;case"Edm.DateTimeOffset":case"DateTimeOffset":return $$0.$s.$type;case"Edm.DateTime":case"DateTime":case"Calendar":case"datetime":case"calendar":case"Edm.Time":case"Time":case"time":return $$0.$s.$type;case"Edm.Decimal":case"Decimal":case"decimal":return $$0.$v.$type;case"Edm.Double":case"Double":case"double":return Number;case"Edm.Float":case"Float":case"float":case"Edm.Single":case"Single":case"single":return $$0.$a8.$type;case"Edm.Int16":case"Int16":case"Short":case"short":return $$0.$av.$type;case"Edm.Int32":case"Int32":case"int":case"Integer":return $$0.$aw.$type;case"Edm.Int64":case"Int64":case"long":case"Long":return $$0.$ax.$type;case"Edm.String":case"String":case"string":return String}return $.ig.$op.$type},$type:new $.ig.Type("FunctionFilterExpression",$$t.$p.$type,[$$t.$m.$type])},true);$c("PropertyReferenceFilterExpression:s","FilterExpression",{init:function(a){this.bq=null;$$t.$p.init.call(this);this.bq=a},isPropertyReference:function(){return true},precedence:function(){return 99},bn:function(){return false},bq:null,propertyReference:function(a){if(arguments.length===1){this.bq=a;return a}else{return this.bq}},evaluate:function(a,b,c){var d=b.getItemValue(a,this.propertyReference());return d},$type:new $.ig.Type("PropertyReferenceFilterExpression",$$t.$p.$type,[$$t.$o.$type])},true);$c("LiteralFilterExpression:t","FilterExpression",{init:function(a,b){this.br=null;this.bq=false;$$t.$p.init.call(this);this.br=a},precedence:function(){return 99},br:null,bq:false,isLiteral:function(){return true},isNull:function(){return this.literalValue()==null},literalValue:function(a){if(arguments.length===1){this.br=a;return a}else{return this.br}},leaveUnquoted:function(a){if(arguments.length===1){this.bq=a;return a}else{return this.bq}},bn:function(){return $b($$0.$aq.$type,this.literalValue())!==null},evaluate:function(a,b,c){return this.literalValue()},$type:new $.ig.Type("LiteralFilterExpression",$$t.$p.$type,[$$t.$n.$type])},true);$c("WrapperExpression:u","FilterExpression",{bq:null,bw:false,getWrapperType:function(){},_innerExpression:null,innerExpression:function(a){if(arguments.length===1){this._innerExpression=a;return a}else{return this._innerExpression}},expression:function(a){if(arguments.length===1){this.bq=a;this.bw=true;return a}else{return this.bq}},propertyName:function(a){if(arguments.length===1){this.expression($$t.$p.property(a));return a}else{if(this.bq==null||!this.bq.isPropertyReference()){return null}return this.bq.propertyReference()}},isWrapper:function(){return true},precedence:function(){return 99},bt:function(){return $$t.$i.instance()},init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}this.bw=false;$$t.$p.init.call(this);this.expression($$t.$i.instance().property(b));this.propertyName(b)},init1:function(a,b){this.bw=false;$$t.$p.init.call(this);this.expression(b);if(this.expression().isPropertyReference()){this.propertyName(this.expression().propertyReference())}},bn:function(){return true},evaluate:function(a,b,c){if(this.innerExpression()==null||this.bw){this.innerExpression(this.bu());this.bw=false}return this.innerExpression().evaluate(a,b,c)},bu:function(){},$type:new $.ig.Type("WrapperExpression",$$t.$p.$type)},true);$c("TodayExpression:v","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 0},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());var b=$$t.$i.instance().literal($.ig.Date.prototype.getMonth(a));var c=$$t.$i.instance().literal(a.getDate());var d=$$t.$i.instance().literal(a.getFullYear());return this.expression().month().isEqualTo(b).and(this.expression().day().isEqualTo(c)).and(this.expression().year().isEqualTo(d))},$type:new $.ig.Type("TodayExpression",$$t.$u.$type)},true);$c("TomorrowExpression:w","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 1},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addDays(a,1);var b=$$t.$i.instance().literal($.ig.Date.prototype.getMonth(a));var c=$$t.$i.instance().literal(a.getDate());var d=$$t.$i.instance().literal(a.getFullYear());return this.expression().month().isEqualTo(b).and(this.expression().day().isEqualTo(c)).and(this.expression().year().isEqualTo(d))},$type:new $.ig.Type("TomorrowExpression",$$t.$u.$type)},true);$c("YesterdayExpression:x","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 2},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addDays(a,-1);var b=$$t.$i.instance().literal($.ig.Date.prototype.getMonth(a));var c=$$t.$i.instance().literal(a.getDate());var d=$$t.$i.instance().literal(a.getFullYear());return this.expression().month().isEqualTo(b).and(this.expression().day().isEqualTo(c)).and(this.expression().year().isEqualTo(d))},$type:new $.ig.Type("YesterdayExpression",$$t.$u.$type)},true);$c("OffsettableWeekExpression:y","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},_by:0,bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addDays(a,this._by);var b=$.ig.Date.prototype.addDays(a,0-a.getDay());var c=$.ig.Date.prototype.addDays(a,6-a.getDay());var d=false;var e=$$0.$s.minValue();var f=$$0.$s.minValue();var g=$$0.$s.minValue();var h=$$0.$s.minValue();for(var i=0;i<7;i++){var j=$.ig.Date.prototype.addDays(c,-i);if(j.getDate()==1){if(i==6){break}d=true;f=$.ig.Date.prototype.addDays(j,-1);e=$.ig.Date.prototype.addDays(f,-(6-i-1));g=j;h=$.ig.Date.prototype.addDays(j,i);break}}if(d){var k=this.expression().year().isEqualTo(this.bt().literal(e.getFullYear())).and(this.expression().month().isEqualTo(this.bt().literal($.ig.Date.prototype.getMonth(e))));var l=null;if(f.getDate()-e.getDate()>0){l=this.expression().day().isGreaterThanOrEqualTo(this.bt().literal(e.getDate())).and(this.expression().day().isLessThanOrEqualTo(this.bt().literal(f.getDate())))}else{l=this.expression().day().isEqualTo(this.bt().literal(e.getDate()))}var m=k.and(l);var n=this.expression().year().isEqualTo(this.bt().literal(g.getFullYear())).and(this.expression().month().isEqualTo(this.bt().literal($.ig.Date.prototype.getMonth(g))));var o=null;if(h.getDate()-g.getDate()>0){o=this.expression().day().isGreaterThanOrEqualTo(this.bt().literal(g.getDate())).and(this.expression().day().isLessThanOrEqualTo(this.bt().literal(h.getDate())))}else{o=this.expression().day().isEqualTo(this.bt().literal(g.getDate()))}var p=n.and(o);return m.or(p)}var q=$$t.$i.instance().literal($.ig.Date.prototype.getMonth(a));var r=$$t.$i.instance().literal(a.getFullYear());var s=$$t.$i.instance().literal(b.getDate());var t=$$t.$i.instance().literal(c.getDate());return this.expression().year().isEqualTo(r).and(this.expression().month().isEqualTo(q)).and(this.expression().day().isGreaterThanOrEqualTo(s)).and(this.expression().day().isLessThanOrEqualTo(t))},$type:new $.ig.Type("OffsettableWeekExpression",$$t.$u.$type)},true);$c("ThisWeekExpression:z","OffsettableWeekExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$y.init.call(this,0,b)},init1:function(a,b){$$t.$y.init1.call(this,1,b)},getWrapperType:function(){return 3},$type:new $.ig.Type("ThisWeekExpression",$$t.$y.$type)},true);$c("NextWeekExpression:aa","OffsettableWeekExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$y.init.call(this,0,b);this._by=7},init1:function(a,b){$$t.$y.init1.call(this,1,b);this._by=7},getWrapperType:function(){return 4},$type:new $.ig.Type("NextWeekExpression",$$t.$y.$type)},true);$c("LastWeekExpression:ab","OffsettableWeekExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$y.init.call(this,0,b);this._by=-7},init1:function(a,b){$$t.$y.init1.call(this,1,b);this._by=-7},getWrapperType:function(){return 5},$type:new $.ig.Type("LastWeekExpression",$$t.$y.$type)},true);$c("ThisMonthExpression:ac","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 6},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear())).and(this.expression().month().isEqualTo(this.bt().literal($.ig.Date.prototype.getMonth(a))))},$type:new $.ig.Type("ThisMonthExpression",$$t.$u.$type)},true);$c("NextMonthExpression:ad","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 7},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addMonths(a,1);return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear())).and(this.expression().month().isEqualTo(this.bt().literal($.ig.Date.prototype.getMonth(a))))},$type:new $.ig.Type("NextMonthExpression",$$t.$u.$type)},true);$c("LastMonthExpression:ae","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 8},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addMonths(a,-1);return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear())).and(this.expression().month().isEqualTo(this.bt().literal($.ig.Date.prototype.getMonth(a))))},$type:new $.ig.Type("LastMonthExpression",$$t.$u.$type)},true);$c("ThisYearExpression:af","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 9},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()))},$type:new $.ig.Type("ThisYearExpression",$$t.$u.$type)},true);$c("NextYearExpression:ag","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 10},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addYears(a,1);return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()))},$type:new $.ig.Type("NextYearExpression",$$t.$u.$type)},true);$c("LastYearExpression:ah","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 11},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());a=$.ig.Date.prototype.addYears(a,-1);return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()))},$type:new $.ig.Type("LastYearExpression",$$t.$u.$type)},true);$c("YearToDateExpression:ai","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 15},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear())).and(this.expression().month().isEqualTo(this.bt().literal($.ig.Date.prototype.getMonth(a))).and(this.expression().day().isLessThanOrEqualTo(this.bt().literal(a.getDate()))).or(this.expression().month().isLessThan(this.bt().literal($.ig.Date.prototype.getMonth(a)))))},$type:new $.ig.Type("YearToDateExpression",$$t.$u.$type)},true);$c("ThisQuarterExpression:aj","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 12},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());var b=this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()));if($.ig.Date.prototype.getMonth(a)==1||$.ig.Date.prototype.getMonth(a)==2||$.ig.Date.prototype.getMonth(a)==3){return b.and(this.expression().isQ1())}else if($.ig.Date.prototype.getMonth(a)==4||$.ig.Date.prototype.getMonth(a)==5||$.ig.Date.prototype.getMonth(a)==6){return b.and(this.expression().isQ2())}else if($.ig.Date.prototype.getMonth(a)==7||$.ig.Date.prototype.getMonth(a)==8||$.ig.Date.prototype.getMonth(a)==9){return b.and(this.expression().isQ3())}else{return b.and(this.expression().isQ4())}},$type:new $.ig.Type("ThisQuarterExpression",$$t.$u.$type)},true);$c("NextQuarterExpression:ak","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 13},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());var b=this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()));if($.ig.Date.prototype.getMonth(a)==1||$.ig.Date.prototype.getMonth(a)==2||$.ig.Date.prototype.getMonth(a)==3){return b.and(this.expression().isQ2())}else if($.ig.Date.prototype.getMonth(a)==4||$.ig.Date.prototype.getMonth(a)==5||$.ig.Date.prototype.getMonth(a)==6){return b.and(this.expression().isQ3())}else if($.ig.Date.prototype.getMonth(a)==7||$.ig.Date.prototype.getMonth(a)==8||$.ig.Date.prototype.getMonth(a)==9){return b.and(this.expression().isQ4())}else{return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()+1)).and(this.expression().isQ1())}},$type:new $.ig.Type("NextQuarterExpression",$$t.$u.$type)},true);$c("LastQuarterExpression:al","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 13},bu:function(){var a=+this.bt().todayOverride()!=+$$0.$s.minValue()?this.bt().todayOverride():$.ig.Date.prototype.getDate($$0.$s.now());var b=this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()));if($.ig.Date.prototype.getMonth(a)==1||$.ig.Date.prototype.getMonth(a)==2||$.ig.Date.prototype.getMonth(a)==3){return this.expression().year().isEqualTo(this.bt().literal(a.getFullYear()-1)).and(this.expression().isQ4())}else if($.ig.Date.prototype.getMonth(a)==4||$.ig.Date.prototype.getMonth(a)==5||$.ig.Date.prototype.getMonth(a)==6){return b.and(this.expression().isQ1())}else if($.ig.Date.prototype.getMonth(a)==7||$.ig.Date.prototype.getMonth(a)==8||$.ig.Date.prototype.getMonth(a)==9){return b.and(this.expression().isQ2())}else{return b.and(this.expression().isQ3())}},$type:new $.ig.Type("LastQuarterExpression",$$t.$u.$type)},true);$c("Q1Expression:am","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 16},bu:function(){return this.expression().month().isEqualTo(this.bt().literal(1)).or(this.expression().month().isEqualTo(this.bt().literal(2))).or(this.expression().month().isEqualTo(this.bt().literal(3)))},$type:new $.ig.Type("Q1Expression",$$t.$u.$type)},true);$c("Q2Expression:an","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 17},bu:function(){return this.expression().month().isEqualTo(this.bt().literal(4)).or(this.expression().month().isEqualTo(this.bt().literal(5))).or(this.expression().month().isEqualTo(this.bt().literal(6)))},$type:new $.ig.Type("Q2Expression",$$t.$u.$type)},true);$c("Q3Expression:ao","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 18},bu:function(){return this.expression().month().isEqualTo(this.bt().literal(7)).or(this.expression().month().isEqualTo(this.bt().literal(8))).or(this.expression().month().isEqualTo(this.bt().literal(9)))},$type:new $.ig.Type("Q3Expression",$$t.$u.$type)},true);$c("Q4Expression:ap","WrapperExpression",{init:function(a,b){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$u.init.call(this,0,b)},init1:function(a,b){$$t.$u.init1.call(this,1,b)},getWrapperType:function(){return 19},bu:function(){return this.expression().month().isEqualTo(this.bt().literal(10)).or(this.expression().month().isEqualTo(this.bt().literal(11))).or(this.expression().month().isEqualTo(this.bt().literal(12)))},$type:new $.ig.Type("Q4Expression",$$t.$u.$type)},true);$c("FilterExpressionCollection:at","Object",{a:null,syncTarget:function(a){if(arguments.length===1){if(a==null){this.f.syncTarget(null);this.a=null;return}this.a=a;this.f.syncTarget(this.a.f);return a}else{return this.a}},f:null,init:function(){$.ig.$op.init.call(this);this.f=new $.ig.SyncableObservableCollection$1($$t.$k.$type)},add:function(a){return this.f.add(a)},insert:function(a,b){this.f.add1(a,b)},clear:function(){this.f.clear()},get:function(a){return this.f.get(a)},indexOf:function(a){return this.f.indexOf(a)},remove:function(a){return this.f.remove1(a)},removeAt:function(a){return this.f.remove(a)},set:function(a,b){return this.f.set(a,b)},size:function(){return this.f.size()},_onChanged:function(a){if(arguments.length===1){this.f._onChanged(a);return a}else{return this.f._onChanged()}},_addListener:function(a){this.f.addListener(a)},_removeListener:function(a){this.f.removeListener(a)},j:function(){return this.f.all()},$type:new $.ig.Type("FilterExpressionCollection",$.ig.$ot)},true);$c("FilterExpressionVisitor:au","Object",{init:function(){$.ig.$op.init.call(this)},visit:function(a){if(a==null){throw new $$6.p(1,"Expected an expression but found none")}if(a.isOperation()){this.visitOperationExpression(a)}else if(a.isFunction()){this.visitFunctionExpression(a)}else if(a.isLiteral()){this.visitLiteralExpression(a)}else if(a.isPropertyReference()){this.visitPropertyReferenceExpression(a)}else if(a.isWrapper()){var b=a;this.visit(b.innerExpression())}},visitOperationExpression:function(a){if(a.left()!=null){this.visit(a.left())}if(a.right()!=null){this.visit(a.right())}},visitFunctionExpression:function(a){for(var b=0;b<a.functionArguments().j().count();b++){this.visit(a.functionArguments().j().item(b))}},visitLiteralExpression:function(a){},visitPropertyReferenceExpression:function(a){},$type:new $.ig.Type("FilterExpressionVisitor",$.ig.$ot)},true);$c("IEditableDataSource:aw","Object",{$type:new $.ig.Type("IEditableDataSource",null)},true);$c("DataSourceAggregatedResult:ax","Object",{init:function(){$.ig.$op.init.call(this)},_item:null,item:function(a){if(arguments.length===1){this._item=a;return a}else{return this._item}},_transactionType:0,transactionType:function(a){if(arguments.length===1){this._transactionType=a;return a}else{return this._transactionType}},_keys:null,keys:function(a){if(arguments.length===1){this._keys=a;return a}else{return this._keys}},_values:null,values:function(a){if(arguments.length===1){this._values=a;return a}else{return this._values}},$type:new $.ig.Type("DataSourceAggregatedResult",$.ig.$ot)},true);$c("DataSourceDataCommittedEventArgs:az","EventArgs",{_commitID:0,commitID:function(a){if(arguments.length===1){this._commitID=a;return a}else{return this._commitID}},_changes:null,changes:function(a){if(arguments.length===1){this._changes=a;
return a}else{return this._changes}},init:function(a,b){$$0.$w.init.call(this);this.commitID(a);this.changes(b)},$type:new $.ig.Type("DataSourceDataCommittedEventArgs",$$0.$w.$type)},true);$c("IDataSource:a1","Object",{$type:new $.ig.Type("IDataSource",null,[$$t.$a5.$type,$$t.$a4.$type])},true);$c("ISupportsExpansionChangeNotifications:a6","Object",{$type:new $.ig.Type("ISupportsExpansionChangeNotifications",null)},true);$c("DataSourceSchemaChangedEventArgs:a8","EventArgs",{d:0,b:null,init:function(a,b){$$0.$w.init.call(this);this.b=a;this.d=b},schema:function(){return this.b},count:function(){return this.d},$type:new $.ig.Type("DataSourceSchemaChangedEventArgs",$$0.$w.$type)},true);$c("DataSourceRowExpansionChangedEventArgs:ba","EventArgs",{f:0,c:false,b:false,init:function(a,b,c){this.f=-1;$$0.$w.init.call(this);this.f=a;this.c=b;this.b=c},rowIndex:function(){return this.f},oldState:function(){return this.c},newState:function(){return this.b},$type:new $.ig.Type("DataSourceRowExpansionChangedEventArgs",$$0.$w.$type)},true);$c("IDataSourceDataProviderUpdateNotifier:bc","Object",{$type:new $.ig.Type("IDataSourceDataProviderUpdateNotifier",null,[$$t.$a5.$type])},true);$c("DataSourceDataProviderSchemaChangedEventArgs:be","EventArgs",{d:0,b:null,init:function(a,b){$$0.$w.init.call(this);this.b=a;this.d=b},schema:function(){return this.b},count:function(){return this.d},$type:new $.ig.Type("DataSourceDataProviderSchemaChangedEventArgs",$$0.$w.$type)},true);$c("IDataSourcePage:bi","Object",{$type:new $.ig.Type("IDataSourcePage",null)},true);$c("IDataSourceSchema:bj","Object",{$type:new $.ig.Type("IDataSourceSchema",null)},true);$c("DefaultDataSourceSchema:bl","Object",{d:null,e:null,a:null,b:null,c:null,init:function(a,b,c,d,e){$.ig.$op.init.call(this);this.d=a;this.e=b;this.a=c;this.b=d;this.c=e},primaryKey:function(){return this.a},propertyNames:function(){return this.d},propertyTypes:function(){return this.e},propertyDataIntents:function(){return this.b},subSchemas:function(){return this.c},$type:new $.ig.Type("DefaultDataSourceSchema",$.ig.$ot,[$$t.$bj.$type])},true);$c("IDataSourceUpdateNotifier:bm","Object",{$type:new $.ig.Type("IDataSourceUpdateNotifier",null)},true);$c("IDataSourceVirtualDataProvider:bn","Object",{$type:new $.ig.Type("IDataSourceVirtualDataProvider",null,[$$t.$bb.$type])},true);$c("IExternalDataSource:br","Object",{$type:new $.ig.Type("IExternalDataSource",null)},true);$c("IExternalLocalDataSource:bs","Object",{$type:new $.ig.Type("IExternalLocalDataSource",null)},true);$c("IExternalVirtualDataSource:bt","Object",{$type:new $.ig.Type("IExternalVirtualDataSource",null)},true);$c("ISectionInformation:bu","Object",{$type:new $.ig.Type("ISectionInformation",null)},true);$c("DefaultSectionInformation:bv","Object",{init:function(a,b,c,d,e){$.ig.$op.init.call(this);this.e=a;this.d=b;this.a=c;this.b=d;this.c=e},e:0,startIndex:function(){return this.e},d:0,a:null,b:null,c:null,endIndex:function(){return this.d},groupKeyValues:function(){return this.b},groupKeyProperties:function(){return this.a},summaryResults:function(){return this.c},$type:new $.ig.Type("DefaultSectionInformation",$.ig.$ot,[$$t.$bu.$type])},true);$c("ODataLiteralEmitter:bw","Object",{$type:new $.ig.Type("ODataLiteralEmitter",null)},true);$c("DefaultODataLiteralEmitter:bx","Object",{init:function(){$.ig.$op.init.call(this)},emitLiteral:function(a,b){if(a==null){return"null"}if($b($$0.$aq.$type,a)!==null){return a?"true":"false"}else if($b($$0.$s.$type,a)!==null){return this.a(a)}else if(typeof a==="string"){var c=a.toString();if(!b){c="'"+c+"'"}return c}else{return a.toString()}},b:function(a){var b=false;if($.ig.util.timeSpanTotalMilliseconds(a)<0){b=true;a=$.ig.util.timeSpanNegate(a)}var c=new $$6.aj(0);c.l("duration'");if(b){c.l("-")}c.l("P");if($.ig.util.timeSpanDays(a)>0){c.l($.ig.util.timeSpanDays(a).toString());c.l("D")}c.l("T");if($.ig.util.timeSpanHours(a)>0){c.j($.ig.util.timeSpanHours(a));c.l("H")}if($.ig.util.timeSpanMinutes(a)>0||$.ig.util.timeSpanHours(a)>0){c.j($.ig.util.timeSpanMinutes(a));c.l("M")}if($.ig.util.timeSpanSeconds(a)>0||$.ig.util.timeSpanMilliseconds(a)>0||$.ig.util.timeSpanHours(a)>0||$.ig.util.timeSpanMinutes(a)>0){c.j($.ig.util.timeSpanSeconds(a));if($.ig.util.timeSpanMilliseconds(a)>0){c.l(".");c.l(($.ig.util.timeSpanMilliseconds(a)/1e3).toString())}c.l("S")}c.l("'");return c.toString()},a:function(a){var b;if(a.getSeconds()==0&&a.getMilliseconds()==0){b=$.ig.Date.prototype.toStringFormat(a,"yyyy-MM-ddTHH:mm",null)}else if(a.getMilliseconds()==0){b=$.ig.Date.prototype.toStringFormat(a,"yyyy-MM-ddTHH:mm:ss",null)}else{b=$.ig.Date.prototype.toStringFormat(a,"yyyy-MM-ddTHH:mm:ss.fffffff",null)}return"datetime'"+b+"'"},$type:new $.ig.Type("DefaultODataLiteralEmitter",$.ig.$ot,[$$t.$bw.$type])},true);$c("ODataDataSourceFilterExpressionVisitor:by","FilterExpressionVisitor",{h:null,f:null,init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$$t.$au.init.call(this);this.f=new $$t.bx;this.h=new $$6.aj(0)},init1:function(a,b){$$t.$by.init.call(this,0);this.f=b},toString:function(){return this.h.toString()},visitOperationExpression:function(a){var b=true;var c="";switch(a.operator()){case 10:c="add";break;case 7:c="and";break;case 13:c="div";break;case 0:case 1:c="eq";break;case 3:c="gt";break;case 4:c="ge";break;case 15:b=false;break;case 5:c="lt";break;case 6:c="le";break;case 14:c="mod";break;case 12:c="mul";break;case 9:c="not";b=false;break;case 2:c="ne";break;case 8:c="or";break;case 11:c="sub";break;default:c="eq";break}if(b){if(this.g(a,a.left())){this.h.l("(")}this.visit(a.left());if(this.g(a,a.left())){this.h.l(")")}this.h.l(" ");this.h.l(c);this.h.l(" ");if(this.g(a,a.right())){this.h.l("(")}this.visit(a.right());if(this.g(a,a.right())){this.h.l(")")}}else{if(a.operator()==15){this.h.l("(")}else{this.h.u(c+" ")}if(a.left()!=null){this.visit(a.left())}else{this.visit(a.right())}if(a.operator()==15){this.h.l(")")}}},g:function(a,b){var c=a.precedence();var d=b!=null?b.precedence():0;if(b!=null&&b.isOperation()&&b.operator()==15){return false}return d<c},visitFunctionExpression:function(a){var b="";switch(a.functionType()){case 19:b="ceiling";break;case 10:b="concat";break;case 0:b="contains";break;case 11:b="day";break;case 1:b="endswith";break;case 18:b="floor";break;case 12:b="hour";break;case 4:b="indexof";break;case 3:b="length";break;case 13:b="minute";break;case 14:b="month";break;case 5:b="replace";break;case 17:b="round";break;case 15:b="second";break;case 2:b="startswith";break;case 6:b="substring";break;case 7:b="tolower";break;case 8:b="toupper";break;case 9:b="trim";break;case 16:b="year";break}this.h.l(b);this.h.l("(");var c=true;for(var d=0;d<a.functionArguments().j().count();d++){if(c){c=false}else{this.h.l(", ")}this.visit(a.functionArguments().j().item(d))}this.h.l(")")},visitLiteralExpression:function(a){this.i(a,a.literalValue())},i:function(a,b){var c=this.f.emitLiteral(b,a.leaveUnquoted());this.h.l(c)},visitPropertyReferenceExpression:function(a){this.j(a.propertyReference())},j:function(a){this.h.l(a)},$type:new $.ig.Type("ODataDataSourceFilterExpressionVisitor",$$t.$au.$type)},true);$c("ODataDataSourceSchema:bz","Object",{a:null,d:null,e:null,b:null,c:null,init:function(a,b,c){this.a=null;$.ig.$op.init.call(this);this.d=a;this.e=b;this.a=c},propertyNames:function(){return this.d},primaryKey:function(){return this.a},propertyTypes:function(){return this.e},propertyDataIntents:function(){return this.b},subSchemas:function(){return this.c},$type:new $.ig.Type("ODataDataSourceSchema",$.ig.$ot,[$$t.$bj.$type])},true);$c("SortDescription:b0","Object",{b:false,init:function(){$.ig.$op.init.call(this)},g:null,propertyName:function(a){if(arguments.length===1){this.g=a;return a}else{return this.g}},d:0,direction:function(a){if(arguments.length===1){this.d=a;return a}else{return this.d}},equals:function(a){var b=a;if(b==null){return $.ig.$op.equals.call(this,a)}return b.propertyName()==this.propertyName()&&b.direction()==this.direction()},getHashCode:function(){return this.propertyName().getHashCode()*17+this.direction()},i:function(){this.b=true},create:function(a,b){var c=new $$t.b0;c.propertyName(a);c.direction(b);return c},$type:new $.ig.Type("SortDescription",$.ig.$ot)},true);$c("SortDescriptionCollection:b1","Object",{_getInner:function(){return this.f},d:null,syncTarget:function(a){if(arguments.length===1){if(a==null){this.f.syncTarget(null);this.d=null;return}this.d=a;this.f.syncTarget(this.d.f);return a}else{return this.d}},f:null,init:function(){$.ig.$op.init.call(this);this.f=new $.ig.SyncableObservableCollection$1($$t.$b0.$type)},add:function(a){return this.f.add(a)},insert:function(a,b){this.f.add1(a,b)},clear:function(){this.f.clear()},get:function(a){return this.f.get(a)},indexOf:function(a){return this.f.indexOf(a)},remove:function(a){return this.f.remove1(a)},removeAt:function(a){return this.f.remove(a)},set:function(a,b){return this.f.set(a,b)},size:function(){return this.f.size()},_addListener:function(a){this.f.addListener(a)},_removeListener:function(a){this.f.removeListener(a)},_onChanged:function(a){if(arguments.length===1){this.f._onChanged(a);return a}else{return this.f._onChanged()}},k:function(){return this.f.all()},$type:new $.ig.Type("SortDescriptionCollection",$.ig.$ot)},true);$c("ISummaryResult:b2","Object",{$type:new $.ig.Type("ISummaryResult",null)},true);$c("DefaultSummaryResult:b3","Object",{init:function(a,b,c){$.ig.$op.init.call(this);this.d=a;this.a=b;this.c=c},d:null,c:null,a:0,b:0,propertyName:function(){return this.d},operand:function(){return this.a},value:function(){return this.c},summaryIndex:function(a){if(arguments.length===1){this.b=a;return a}else{return this.b}},$type:new $.ig.Type("DefaultSummaryResult",$.ig.$ot,[$$t.$b2.$type])},true);$c("SummaryCalculator:b9","Object",{init:function(){this.f=5;$.ig.$op.init.call(this)},_propertyName:null,propertyName:function(a){if(arguments.length===1){this._propertyName=a;return a}else{return this._propertyName}},_propertyType:0,propertyType:function(a){if(arguments.length===1){this._propertyType=a;return a}else{return this._propertyType}},_dataSource:null,dataSource:function(a){if(arguments.length===1){this._dataSource=a;return a}else{return this._dataSource}},displayName:function(){},_isSummaryDirty:false,isSummaryDirty:function(a){if(arguments.length===1){this._isSummaryDirty=a;return a}else{return this._isSummaryDirty}},f:0,operand:function(){return this.f},beginCalculation:function(a,b){this.dataSource(a);this.propertyName(b);if(this.propertyName()!=null){this.propertyType(a.resolveSchemaPropertyType(this.propertyName()))}this.isSummaryDirty(false)},endCalculation:function(){return null},aggregate:function(a){},itemAdded:function(a,b,c){return b},itemRemoved:function(a,b,c){return b},i:function(a){if(this.dataSource()==null){return NaN}var b=this.dataSource().getItemProperty(a,this.propertyName());if(b==null){return NaN}return this.j(b)},j:function(a){if(a==null){return NaN}switch(this.propertyType()){case 6:return a;case 5:return a;case 1:return $h(a);case 3:return $h(a);case 4:return $h(a);case 7:return a;case 8:return a.toOADate();case 11:try{return $$6.$g.toDouble3(a)}catch(b){return NaN}}return 0},k:function(a){switch(this.propertyType()){case 6:return a;case 5:return a;case 1:return $.ig.truncate(a);case 3:return $.ig.truncate(a);case 4:return $.ig.truncate(a);case 7:return a;case 8:return $$0.$s.fromOADate(a);default:return a}},$type:new $.ig.Type("SummaryCalculator",$.ig.$ot)},true);$c("SumSummaryCalculator:b4","SummaryCalculator",{init:function(){$$t.$b9.init.call(this)},p:0,displayName:function(){var a=$$t.$cf.a9("DataSource_Summary_Sum");return a!=null?a:"Sum"},operand:function(){return 2},beginCalculation:function(a,b){$$t.$b9.beginCalculation.call(this,a,b);this.p=0},endCalculation:function(){return new $$t.b3(this.propertyName(),2,this.k(this.p))},aggregate:function(a){var b=this.i(a);if(!$.ig.util.isNaN(b)){this.p+=b}},itemAdded:function(a,b,c){var d=this.i(a);if($.ig.util.isNaN(d)){d=0}if(b==null){return new $$t.b3(this.propertyName(),2,this.k(d))}var e=this.j(b.value())+d;return new $$t.b3(this.propertyName(),2,this.k(e))},itemRemoved:function(a,b,c){var d=this.i(a);if($.ig.util.isNaN(d)){d=0}var e=this.j(b.value())-d;return new $$t.b3(this.propertyName(),2,this.k(e))},$type:new $.ig.Type("SumSummaryCalculator",$$t.$b9.$type)},true);$c("CountSummaryCalculator:b5","SummaryCalculator",{init:function(){$$t.$b9.init.call(this)},p:0,displayName:function(){var a=$$t.$cf.a9("DataSource_Summary_Count");return a!=null?a:"Count"},operand:function(){return 4},beginCalculation:function(a,b){$$t.$b9.beginCalculation.call(this,a,b);this.propertyType(1);this.p=0},endCalculation:function(){return new $$t.b3(this.propertyName(),4,this.p)},aggregate:function(a){this.p++},itemAdded:function(a,b,c){if(b==null){return new $$t.b3(this.propertyName(),4,1)}return new $$t.b3(this.propertyName(),4,$h(b.value())+1)},itemRemoved:function(a,b,c){return new $$t.b3(this.propertyName(),4,$h(b.value())-1)},$type:new $.ig.Type("CountSummaryCalculator",$$t.$b9.$type)},true);$c("AverageSummaryCalculator:b6","SummaryCalculator",{init:function(){$$t.$b9.init.call(this)},p:0,q:0,displayName:function(){var a=$$t.$cf.a9("DataSource_Summary_Avg");return a!=null?a:"Avg"},operand:function(){return 3},beginCalculation:function(a,b){$$t.$b9.beginCalculation.call(this,a,b);this.p=0;this.q=0},endCalculation:function(){var a=this.q>0?this.p/this.q:0;return new $$t.b3(this.propertyName(),3,this.k(a))},aggregate:function(a){var b=this.i(a);if(!$.ig.util.isNaN(b)){this.p+=b;this.q++}},itemAdded:function(a,b,c){var d=this.i(a);if($.ig.util.isNaN(d)){d=0}if(b==null){return new $$t.b3(this.propertyName(),3,this.k(d))}var e=this.j(b.value())*(c-1);var f=(e+d)/c;return new $$t.b3(this.propertyName(),3,this.k(f))},itemRemoved:function(a,b,c){var d=this.i(a);if($.ig.util.isNaN(d)){d=0}var e=this.j(b.value())*(c+1);var f=(e-d)/c;return new $$t.b3(this.propertyName(),3,this.k(f))},$type:new $.ig.Type("AverageSummaryCalculator",$$t.$b9.$type)},true);$c("MaxSummaryCalculator:b7","SummaryCalculator",{init:function(){$$t.$b9.init.call(this)},p:null,displayName:function(){var a=$$t.$cf.a9("DataSource_Summary_Max");return a!=null?a:"Max"},operand:function(){return 1},beginCalculation:function(a,b){$$t.$b9.beginCalculation.call(this,a,b);this.p=null},endCalculation:function(){return new $$t.b3(this.propertyName(),1,this.p)},aggregate:function(a){this.p=this.q(a,this.p)},itemAdded:function(a,b,c){if(b==null){return new $$t.b3(this.propertyName(),1,this.q(a,null))}var d=this.q(a,b.value());return new $$t.b3(this.propertyName(),1,d)},itemRemoved:function(a,b,c){var d=this.dataSource().getItemProperty(a,this.propertyName());if(d.equals(b.value())){this.isSummaryDirty(true)}return b},q:function(a,b){var c=this.dataSource().getItemProperty(a,this.propertyName());if(b==null){return c}if(c==null){return b}switch(this.propertyType()){case 0:b=$2(c,b)>0?c:b;break;case 6:b=c>b?c:b;break;case 5:b=c>b?c:b;break;case 1:b=$h(c)>$h(b)?c:b;break;case 3:b=$h(c)>$h(b)?c:b;break;case 4:b=$h(c)>$h(b)?c:b;break;case 7:b=c>b?c:b;break;case 2:b=c?c:b;break;case 10:b=$h(c)>$h(b)?c:b;break;case 8:var xVal_=c;var yVal_=b;xVal_=+xVal_;yVal_=+yVal_;var d=$h(xVal_);var e=$h(yVal_);b=$w(d,e)>0?c:b;break}return b},$type:new $.ig.Type("MaxSummaryCalculator",$$t.$b9.$type)},true);$c("MinSummaryCalculator:b8","SummaryCalculator",{init:function(){$$t.$b9.init.call(this)},p:null,displayName:function(){var a=$$t.$cf.a9("DataSource_Summary_Min");return a!=null?a:"Min"},operand:function(){return 0},beginCalculation:function(a,b){$$t.$b9.beginCalculation.call(this,a,b);this.p=null},endCalculation:function(){return new $$t.b3(this.propertyName(),0,this.p)},aggregate:function(a){this.p=this.q(a,this.p)},itemAdded:function(a,b,c){if(b==null){return new $$t.b3(this.propertyName(),0,this.q(a,null))}var d=this.q(a,b.value());return new $$t.b3(this.propertyName(),0,d)},itemRemoved:function(a,b,c){var d=this.dataSource().getItemProperty(a,this.propertyName());if(d.equals(b.value())){this.isSummaryDirty(true)}return b},q:function(a,b){var c=this.dataSource().getItemProperty(a,this.propertyName());if(b==null){return c}if(c==null){return b}switch(this.propertyType()){case 0:b=$2(c,b)<0?c:b;break;case 6:b=c<b?c:b;break;case 5:b=c<b?c:b;break;case 1:b=$h(c)<$h(b)?c:b;break;case 3:b=$h(c)<$h(b)?c:b;break;case 4:b=$h(c)<$h(b)?c:b;break;case 7:b=c<b?c:b;break;case 2:b=!c?c:b;break;case 10:b=$h(c)<$h(b)?c:b;break;case 8:var xVal_=c;var yVal_=b;xVal_=+xVal_;yVal_=+yVal_;var d=$h(xVal_);var e=$h(yVal_);b=$w(d,e)<0?c:b;break}return b},$type:new $.ig.Type("MinSummaryCalculator",$$t.$b9.$type)},true);$c("SummaryDescription:cb","Object",{h:false,init:function(a){if(a>0){switch(a){case 1:this.init1.apply(this,arguments);break;case 2:this.init2.apply(this,arguments);break}return}$.ig.$op.init.call(this)},init1:function(a,b){$.ig.$op.init.call(this);this.propertyName(b);this.operand(4)},init2:function(a,b,c){$.ig.$op.init.call(this);this.propertyName(b);this.operand(c)},k:null,propertyName:function(a){if(arguments.length===1){this.k=a;return a}else{return this.k}},f:0,operand:function(a){if(arguments.length===1){this.f=a;switch(this.f){case 0:this.calculator(new $$t.b8);break;case 1:this.calculator(new $$t.b7);break;case 2:this.calculator(new $$t.b4);break;case 3:this.calculator(new $$t.b6);break;case 4:this.calculator(new $$t.b5);break}return a}else{return this.f}},b:null,calculator:function(a){if(arguments.length===1){this.b=a;return a}else{return this.b}},equals:function(a){var b=a;if(b==null){return $.ig.$op.equals.call(this,a)}return b.propertyName()==this.propertyName()&&b.operand()==this.operand()},getHashCode:function(){return this.propertyName().getHashCode()*17+this.operand()},m:function(){this.h=true},provideCalculator:null,e:function(){if(this.provideCalculator!=null){var a=new $$t.ce;this.provideCalculator(this,a);return a.calculator()}return null},d:function(){switch(this.f){case 0:return new $$t.b8;case 1:return new $$t.b7;case 2:return new $$t.b4;case 3:return new $$t.b6;case 4:return new $$t.b5;case 5:var a=this.e();if(a==null){throw new $$6.e(2,"Calculator","No custom calculator was provided.")}return a}return null},$type:new $.ig.Type("SummaryDescription",$.ig.$ot)},true);$c("SummaryDescriptionCollection:cc","Object",{_getInner:function(){return this.f},d:null,syncTarget:function(a){if(arguments.length===1){if(a==null){this.f.syncTarget(null);this.d=null;return}this.d=a;this.f.syncTarget(this.d.f);return a}else{return this.d}},f:null,init:function(){$.ig.$op.init.call(this);this.f=new $.ig.SyncableObservableCollection$1($$t.$cb.$type)},add:function(a){return this.f.add(a)},insert:function(a,b){this.f.add1(a,b)},clear:function(){this.f.clear()},get:function(a){return this.f.get(a)},indexOf:function(a){return this.f.indexOf(a)},remove:function(a){return this.f.remove1(a)},removeAt:function(a){return this.f.remove(a)},set:function(a,b){return this.f.set(a,b)},size:function(){return this.f.size()},_addListener:function(a){this.f.addListener(a)},_removeListener:function(a){this.f.removeListener(a)},_onChanged:function(a){if(arguments.length===1){this.f._onChanged(a);return a}else{return this.f._onChanged()}},k:function(){return this.f.all()},$type:new $.ig.Type("SummaryDescriptionCollection",$.ig.$ot)},true);$c("ProvideCalculatorEventArgs:ce","Object",{init:function(){$.ig.$op.init.call(this)},_calculator:null,calculator:function(a){if(arguments.length===1){this._calculator=a;return a}else{return this._calculator}},$type:new $.ig.Type("ProvideCalculatorEventArgs",$.ig.$ot)},true);$c("BaseTransactionService:c5","Object",{init:function(a,b,c){this.i=false;this.p=new $$4.x($$t.$c7.$type,0);$.ig.$op.init.call(this);if(a==null||b==null){throw new $$6.e(1)}this._h=a;this._r=b;if(c!=null){this.n=new $$4.h($.ig.$op.$type,$$t.$c9.$type,2,c)}else{this.n=new $$4.h($.ig.$op.$type,$$t.$c9.$type,0)}},i:false,m:function(a){if(arguments.length===1){this.i=a;return a}else{return this.i}},p:null,q:function(){return this.p},n:null,o:function(){return this.n},l:function(a){if(arguments.length===1){return a}else{return this.i}},k:function(){return false},j:function(){return false},_h:null,_r:null,stateChanged:null,af:function(a,b){if(a.containsKey(b.iD())){if(this._h!=null){this._h(a.item(b.iD()),b.value())}else{a.item(b.iD()).value(b.value())}}else{a.add(b.iD(),new $$t.c9(b.iD(),b.type(),this._r(b.value())))}},aa:function(a,b){if(this.stateChanged!=null){this.stateChanged(a,b)}},z:function(a,b,c){},v:function(a,b){if(this.m()){this.af(this.o(),a);this.q().add(a)}},w:function(a,b){if(a){this.n.clear();this.p.clear()}},g:function(a){if(this.o().count()>0&&this.o().containsKey(a)){return this.o().item(a)}return null},ad:function(){this.i=true},y:function(a){this.i=false;this.x(-1)},x:function(a){if(a>-1){for(var b=0;b<this.q().count();b++){var c=this.q().__inner[b];if(c.transactionID()==a){this.q().removeAt(b);this.o().clear();for(var d=0;d<this.q().count();d++){this.af(this.o(),this.q().__inner[d])}break}}}else{this.n.clear();this.p.clear()}},d:function(a){for(var b=0;b<this.q().count();b++){if(this.q().__inner[b].transactionID()==a){return this.q().__inner[b]}}return null},e:function(a){return null},s:function(a,b){return-1},u:function(a){},ac:function(a){},ae:function(){},ab:function(){},a:function(a){var b=new $$4.x($$t.$c9.$type,0);var d=this.o().values().getEnumerator();while(d.moveNext()){var c=d.current();b.add(c)}return b.toArray()},c:function(a){if(a!=null){var b=new $$4.x($$t.$c7.$type,0);for(var c=0;c<this.q().count();c++){if(this.q().__inner[c].iD()==a){b.add(this.q().__inner[c])}}return b.toArray()}return this.q().toArray()},b:function(){var a=new $$4.x($$t.$c7.$type,0);for(var b=0;b<this.q().count();b++){if(!String.isNullOrWhiteSpace(this.q().__inner[b].error())){a.add(this.q().__inner[b])}}return a.toArray()},$type:new $.ig.Type("BaseTransactionService",$.ig.$ot)},true);$c("Transaction:c7","Object",{init:function(){$.ig.$op.init.call(this)},_iD:null,iD:function(a){if(arguments.length===1){this._iD=a;return a}else{return this._iD}},_transactionID:0,transactionID:function(a){if(arguments.length===1){this._transactionID=a;return a}else{return this._transactionID}},_type:0,type:function(a){if(arguments.length===1){this._type=a;return a}else{return this._type}},_value:null,value:function(a){if(arguments.length===1){this._value=a;return a}else{return this._value}},_error:null,error:function(a){if(arguments.length===1){this._error=a;return a}else{return this._error}},$type:new $.ig.Type("Transaction",$.ig.$ot)},true);$c("TransactionHistory:c8","Object",{init:function(){this.a=new $$4.x($$t.$c7.$type,0);$.ig.$op.init.call(this)},a:null,transactions:function(){return this.a},$type:new $.ig.Type("TransactionHistory",$.ig.$ot)},true);$c("TransactionState:c9","Object",{_iD:null,iD:function(a){if(arguments.length===1){this._iD=a;return a}else{return this._iD}},_transactionType:0,transactionType:function(a){if(arguments.length===1){this._transactionType=a;return a}else{return this._transactionType}},_value:null,value:function(a){if(arguments.length===1){this._value=a;return a}else{return this._value}},_version:null,version:function(a){if(arguments.length===1){this._version=a;return a}else{return this._version}},init:function(a,b,c){$.ig.$op.init.call(this);this.iD(a);this.transactionType(b);this.value(c)},$type:new $.ig.Type("TransactionState",$.ig.$ot)},true);$c("TransactionCommit:da","Object",{init:function(){$.ig.$op.init.call(this)},_c:0,_a:null,_b:null,_d:0,$type:new $.ig.Type("TransactionCommit",$.ig.$ot)},true);$c("TransactionKeyEqualityComparer:db","Object",{init:function(){$.ig.$op.init.call(this)},equalsC:function(a,b){var c=a;var d=b;if(c.length!=d.length){return false}for(var e=0;e<c.length;e++){if(c[e]==null&&d[e]!=null){return false}if(c[e]!=null&&d[e]==null){return false}if(c[e]!=d[e]){if(!c[e].equals(d[e])){return false}}}return true},getHashCodeC:function(a){var b=0;var c=a;for(var d=0;d<c.length;d++){if(c[d]!=null){b+=c[d].getHashCode()}}return b},$type:new $.ig.Type("TransactionKeyEqualityComparer",$.ig.$ot,[$$0.$by.$type.specialize($.ig.$op.$type)])},true);$c("TransactionService:df","BaseTransactionService",{am:null,ak:null,ai:null,an:null,al:null,aj:null,init:function(a,b,c){this.am=new $$4.x($$t.$c7.$type,0);this.ak=new $$4.x($$t.$da.$type,0);this.an=new $$4.x($$t.$c8.$type,0);this.al=new $$4.x($$t.$c8.$type,0);this.aj=null;$$t.$c5.init.call(this,a,b,c);this.aj=c;if(this.aj!=null){this.ai=new $$4.h($.ig.$op.$type,$$t.$c9.$type,2,this.aj)}else{this.ai=new $$4.h($.ig.$op.$type,$$t.$c9.$type,0)}},l:function(a){if(arguments.length===1){$$t.$c5.l.call(this,a);return a}else{return true}},k:function(){return this.an.count()>0},j:function(){return this.al.count()>0},af:function(a,b){var c=null;if(a.containsKey(b.iD())){c=a.item(b.iD())}if(c!=null){switch(b.type()){case 2:if(c.transactionType()==0){a.remove(b.iD())}else if(c.transactionType()==1){c.value(null);c.transactionType(2)}break;case 1:if(c.transactionType()==0||c.transactionType()==1){this._h(c.value(),b.value())}break}}else{a.add(b.iD(),new $$t.c9(b.iD(),b.type(),this._r(b.value())))}},aq:function(a,b){var c=null;if(a.containsKey(b.iD())){c=a.item(b.iD())}switch(b.type()){case 0:if(c!=null){throw new $$6.p(1,"Cannot add this transaction. A transaction with this ID already exists.")}break;case 1:case 2:if(c!=null&&c.transactionType()==2){throw new $$6.p(1,"Cannot add this transaction. A transaction with this ID has already been deleted.")}break}},z:function(a,b,c){$$t.$c5.z.call(this,a,b,c);switch(a){case"IsEnabled":this.w(true,null);break}},v:function(a,b){var c=this.m()||b?this.o():this.ai;var d=this.m()||b?this.q():this.am;this.aq(c,a);this.af(c,a);d.add(a);a.transactionID($$t.$df.ao++);if(!this.m()&&!b){var e=new $$t.c8;e.transactions().add(a);this.an.insert(0,e);this.al.clear();this.aa(3,e)}},w:function(a,b){if(b!=null){for(var c=0;c<this.am.count();c++){if(this.am.__inner[c].iD()==b){this.am.removeAt(c);c--}}this.ai.remove(b);for(var d=0;d<this.an.count();d++){for(var e=0;e<this.an.__inner[d].transactions().count();e++){if(this.an.__inner[d].transactions().__inner[e].iD()==b){this.an.__inner[d].transactions().removeAt(e);e--}}if(this.an.__inner[d].transactions().count()==0){this.an.removeAt(d);d--}}}else{if(this.aj!=null){this.ai=new $$4.h($.ig.$op.$type,$$t.$c9.$type,2,this.aj)}else{this.ai=new $$4.h($.ig.$op.$type,$$t.$c9.$type,0)}this.am.clear();this.an.clear()}this.al.clear();$$t.$c5.w.call(this,a,b)},g:function(a){var b=this.m()?this.o():this.ai;if(b.count()>0&&b.containsKey(a)){return b.item(a)}return null},ah:function(a){return $$t.$c5.g.call(this,a)},ag:function(a){for(var b=this.ak.count()-1;b>=0;b--){if(this.ak.__inner[b]._b.containsKey(a)){return this.ak.__inner[b]._b.item(a)}}return null},y:function(a){this.m(false);if(a){var b=new $$t.c8;for(var c=0;c<this.q().count();c++){var d=this.q().__inner[c];var e=this.o().item(d.iD());this.am.add(d);this.af(this.ai,d);b.transactions().add(d)}this.an.insert(0,b);this.al.clear()}$$t.$c5.y.call(this,a)},ap:function(a){for(var b=0;b<this.q().count();b++){var c=this.q().__inner[b];if(c.transactionID()==a){this.am.add(c);this.af(this.ai,c);this.q().removeAt(b);this.o().clear();for(var d=0;d<this.q().count();d++){this.af(this.o(),this.q().__inner[d])}var e=new $$t.c8;e.transactions().add(c);this.an.insert(0,e);this.al.clear();break}}},s:function(a,b){var c=-1;if(this.ai.count()>0){var d=new $$t.da;d._c=$$t.$df.ao++;d._a=this.a(-1);d._b=this.ai;d._d=-1;if(a){d._d=this.ak.count();this.ak.add(d)}else{this.aa(5,d)}c=d._c}this.w(b,null);return c},u:function(a){var b=this.e(a);if(b!=null){this.aa(5,b);this.ak.removeAt(b._d)}},ac:function(a){var b=this.e(a);if(b!=null){this.ak.removeAt(b._d)}},ae:function(){if(this.k()){var a=this.an.__inner[0];this.an.removeAt(0);var b=this.am.count()-a.transactions().count();this.am.removeRange(b,a.transactions().count());this.al.insert(0,a);this.ai.clear();for(var c=0;c<this.an.count();c++){for(var d=0;d<this.an.__inner[c].transactions().count();d++){this.af(this.ai,this.an.__inner[c].transactions().__inner[d])}}this.aa(0,a)}},ab:function(){if(this.j()){var a=this.al.__inner[0];this.al.removeAt(0);for(var b=0;b<a.transactions().count();b++){this.af(this.ai,a.transactions().__inner[b]);this.am.add(a.transactions().__inner[b])}this.an.insert(0,a);this.aa(1,a)}},a:function(a){var b=new $$4.x($$t.$c9.$type,0);if(a>-1){var c=this.e(a);if(c!=null){var e=c._b.values().getEnumerator();while(e.moveNext()){var d=e.current();b.add(d)}}}else{var g=this.ai.values().getEnumerator();while(g.moveNext()){var f=g.current();b.add(f)}}return b.toArray()},e:function(a){for(var b=0;b<this.ak.count();b++){if(this.ak.__inner[b]._c==a){return this.ak.__inner[b]}}return null},c:function(a){if(a!=null){var b=new $$4.x($$t.$c7.$type,0);for(var c=0;c<this.q().count();c++){if(this.q().__inner[c].iD()==a||this.aj.equalsC(this.q().__inner[c].iD(),a)){b.add(this.q().__inner[c])}}return b.toArray()}return this.q().toArray()},$type:new $.ig.Type("TransactionService",$$t.$c5.$type)},true);$c("BaseDataSource:cf","Object",{init:function(){this.z=false;this.o=null;this.as=0;this.at=0;this.au=0;this.aa=false;this.h=0;this.x=false;this.b=null;this.a=null;this.c=null;this.ag=false;this.ah=false;this.v=false;this.g=0;this.ab=true;this.ad=true;this.y=false;this.af=false;this.ae=false;this.ac=true;this.aj=true;this.ai=false;this.ak=true;$.ig.$op.init.call(this);this.l=new $$t.ci(this);this.s=new $$t.b1;this.r=new $$t.b1;this.t=new $$t.cc;this.s._addListener(this.cr.runOn(this));this.r._addListener(this.bv.runOn(this));this.t._addListener(this.cs.runOn(this));this.i=new $$t.at;this.i._addListener(this.bt.runOn(this));this._u=new $$t.df(this.bx.runOn(this),this.clone1.runOn(this),new $$t.db);var a=this._u;a.stateChanged=$.ig.Delegate.prototype.combine(a.stateChanged,this.cn.runOn(this))},_u:null,cn:function(a,b){if(a==0||a==1){if(this.updateNotifier()!=null){var c=b;var d=c.transactions().__inner[0];if(d.type()==1||d.type()==2){var e=d.iD();var f=this.indexOfKey(e);if(f>-1){var g=this.getItemAtIndex(f);this.updateNotifier().notifySetItem(f,g,g);var h=this.getStickyRows();if(h!=null){for(var i=0;i<h.length;i++){var j=h[i];var k=$b($$t.$cj.$type,this.getItemAtIndex(j));if(k!=null&&k.rowType()==3&&k.targetRow()==g){this.updateNotifier().notifySetItem(j,k,k);break}}}}}else if(d.type()==0){}}}this.cm(a,b)},cm:function(a,b){},ap:function(){return!this.isReadOnly()&&this.actualPrimaryKey()!=null&&this.actualBaseDataProvider()!=null&&this._u!=null},bx:function(a,b){if(a!=null&&b!=null){var c=a;var d=b;var f=d.getEnumerator();while(f.moveNext()){var e=f.current();if(c.containsKey(e.key())){c.item(e.key(),e.value())}else{c.add(e.key(),e.value())}}}},clone1:function(a){if(a!=null){var b=a;var c=new $$4.h(String,$.ig.$op.$type,0);var e=b.getEnumerator();while(e.moveNext()){var d=e.current();c.add(d.key(),d.value())}return c}return null},_isReadOnly:false,isReadOnly:function(a){if(arguments.length===1){this._isReadOnly=a;return a}else{return this._isReadOnly}},z:false,isBatchingEnabled:function(a){if(arguments.length===1){this.z=a;return a}else{return this.z}},canUndo:function(){return this._u.k()},canRedo:function(){return this._u.j()},canCommit:function(){return this._u.a(-1).length>0},updatePropertyAtKey:function(a,b,c,d){if(this.ap()){var e=null;if(a.length==1&&$b($$t.$cj.$type,a[0])!==null){var f=$b($$t.$cj.$type,a[0]);if(f.rowType()==3){e=f;if(this.actualPrimaryKey()!=null){a=new Array(this.actualPrimaryKey().length);this.getPrimaryKeyValue(e.targetRow(),a)}else{a=[e.targetRow()]}}}var g=new $$4.h(String,$.ig.$op.$type,0);g.add(b,c);var h=new $$t.c7;h.iD(a);h.value(g);h.type(1);this._u.v(h,d);if(this.isBatchingEnabled()||d){if(this.updateNotifier()!=null){var i=this.indexOfKey(a);if(i>-1){var j=this.getItemAtIndex(i);this.updateNotifier().notifySetItem(i,j,j);
}if(this.isRowPinned(i)){var k=-1;if(e!=null){k=this.indexOfItem(e)}else{var l=this.getStickyRows();if(l!=null){for(var m=0;m<l.length;m++){var n=$b($$t.$cj.$type,this.getItemAtIndex(l[m]));if(n!=null&&n.rowType()==3){e=n;k=l[m];break}}}}if(k>-1){this.updateNotifier().notifySetItem(k,e,e)}}}}return h.transactionID()}return-1},removeItemByKey:function(a){if(this.ap()){var b=null;if(a.length==1&&$b($$t.$cj.$type,a[0])!==null){var c=$b($$t.$cj.$type,a[0]);if(c.rowType()==3){b=c;if(this.actualPrimaryKey()!=null){a=new Array(this.actualPrimaryKey().length);this.getPrimaryKeyValue(b.targetRow(),a)}else{a=[b.targetRow()]}}}var d=new $$t.c7;d.iD(a);d.type(2);this._u.v(d,false);if(this.isBatchingEnabled()){if(this.updateNotifier()!=null){var e=this.indexOfKey(a);if(e>-1){var f=this.getItemAtIndex(e);this.updateNotifier().notifySetItem(e,f,f)}if(this.isRowPinned(e)){var g=-1;if(b!=null){g=this.indexOfItem(b)}else{var h=this.getStickyRows();if(h!=null){for(var i=0;i<h.length;i++){var j=$b($$t.$cj.$type,this.getItemAtIndex(h[i]));if(j!=null&&j.rowType()==3){b=j;g=h[i];break}}}}if(g>-1){this.updateNotifier().notifySetItem(g,b,b)}}}}}},removeItem:function(a){if(this.ap()){var b;if($b($$t.$cj.$type,a)!==null){b=[a]}else if(this.actualPrimaryKey()==null||this.actualPrimaryKey().length<1){b=[a]}else{b=new Array(this.actualPrimaryKey().length);this.getPrimaryKeyValue(a,b)}this.removeItemByKey(b)}},addItem:function(a){if(this.ap()){if($b($$t.$cj.$type,a)!==null){return}var b=new $$t.c7;b.iD([a]);b.type(0);this._u.v(b,false)}},acceptPendingTransaction:function(a){if(this.ap()){var b=this._u.d(a);if(b!=null){this._u.ap(a)}}},rejectPendingTransaction:function(a){if(this.ap()){var b=this._u.d(a);if(b!=null){this._u.x(a);if(this.updateNotifier()!=null){if(b.type()!=0){var c=b.iD();var d=this.indexOfKey(c);if(d>-1){var e=this.getItemAtIndex(d);this.updateNotifier().notifySetItem(d,e,e);var f=this.getStickyRows();if(f!=null){for(var g=0;g<f.length;g++){var h=$b($$t.$cj.$type,this.getItemAtIndex(f[g]));if(h!=null&&h.rowType()==3){if(h.targetRow()==e){this.updateNotifier().notifySetItem(f[g],h,h);break}}}}}}}}}},commitEdits:function(a){if(this.ap()){var b=this._u.c(null).length>0;var c=this._u.s(a,this.isBatchingEnabled());if(c==-1&&b){if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}}return c}return-1},cancelEdits:function(){if(this.ap()){this._u.w(true,null);if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}}},acceptPendingCommit:function(a){if(this.ap()){var b=this._u.e(a);if(b!=null){this._u.u(a);if(this.updateNotifier()!=null){for(var c=0;c<b._a.length;c++){if(b._a[c].transactionType()!=0){var d=b._a[c].iD();var e=this.indexOfKey(d);if(e>-1){var f=this.getItemAtIndex(e);this.updateNotifier().notifySetItem(e,f,f)}}}}}}},rejectPendingCommit:function(a){if(this.ap()){var b=this._u.e(a);if(b!=null){this._u.ac(a);if(this.updateNotifier()!=null){for(var c=0;c<b._a.length;c++){if(b._a[c].transactionType()!=0){var d=b._a[c].iD();var e=this.indexOfKey(d);if(e>-1){var f=this.getItemAtIndex(e);this.updateNotifier().notifySetItem(e,f,f)}}}}}}},undo:function(){if(this.ap()){this._u.ae()}},redo:function(){if(this.ap()){this._u.ab()}},hasEdit:function(a,b){if(this.ap()){a=this.f(a);var c=this._u.g(a);if(c!=null){var d=$b($$4.$h.$type.specialize(String,$.ig.$op.$type),c.value());if(d!=null&&d.containsKey(b)){return true}}c=this._u.ah(a);if(c!=null){var e=$b($$4.$h.$type.specialize(String,$.ig.$op.$type),c.value());if(e!=null&&e.containsKey(b)){return true}}c=this._u.ag(a);if(c!=null){var f=$b($$4.$h.$type.specialize(String,$.ig.$op.$type),c.value());if(f!=null&&f.containsKey(b)){return true}}}return false},hasDelete:function(a){if(this.ap()){a=this.f(a);var b=this._u.g(a);if(b!=null&&b.transactionType()==2){return true}b=this._u.ah(a);if(b!=null&&b.transactionType()==2){return true}b=this._u.ag(a);if(b!=null&&b.transactionType()==2){return true}}return false},hasAdd:function(a){if(this.ap()){var b=this._u.g(a);if(b!=null&&b.transactionType()==0){return true}b=this._u.ah(a);if(b!=null&&b.transactionType()==0){return true}}return false},getAggregatedChanges:function(a){if(this.ap()){var b=this._u.a(a);var c=new $$4.x($$t.$ax.$type,0);for(var d=0;d<b.length;d++){var e=b[d].iD();var f=new $$t.ax;if(b[d].transactionType()==0){f.transactionType(0);f.item(e[0])}else if(b[d].transactionType()==2){f.transactionType(2);var g=this.indexOfKey(e);if(g>-1){f.item(this.getItemAtIndex(g))}else{f.item(e)}}else if(b[d].transactionType()==1){f.transactionType(1);var h=b[d].value();f.keys(new Array(h.count()));f.values(new Array(h.count()));var i=0;var k=h.getEnumerator();while(k.moveNext()){var j=k.current();f.keys()[i]=j.key();f.values()[i]=j.value();i++}var l=this.getItemFromKey(e);if(l!=null){f.item(l)}else{f.item(e)}}c.add(f)}return c.toArray()}return new Array(0)},isPendingTransaction:function(a){return this._u.d(a)!=null},isPendingCommit:function(a){return this._u.e(a)!=null},setTransactionError:function(a,b){var c=this._u.d(a);if(c!=null){c.error(b);if(this.updateNotifier()!=null){var d=c.iD();var e=this.indexOfKey(d);if(e>-1){var f=this.getItemAtIndex(e);this.updateNotifier().notifySetItem(e,f,f)}}}},getTransactionErrorByKey:function(a,b){a=this.f(a);var c=this._u.c(a);for(var d=0;d<c.length;d++){if(c[d].error()!=null){if(c[d].type()==1){var e=c[d].value();if(e.containsKey(b)){return c[d].error()}}}}return null},getTransactionErrorByID:function(a){var b=this._u.d(a);if(b!=null){return b.error()}return null},getTransactionID:function(a,b){a=this.f(a);var c=this._u.c(a);for(var d=0;d<c.length;d++){if(c[d].type()==1){var e=c[d].value();if(e.containsKey(b)){return c[d].transactionID()}}}return-1},f:function(a){if(a.length==1&&$b($$t.$cj.$type,a[0])!==null){var b=$b($$t.$cj.$type,a[0]);if(b.rowType()==3){if(this.actualPrimaryKey()!=null){a=new Array(this.actualPrimaryKey().length);this.getPrimaryKeyValue(b.targetRow(),a)}else{a=[b.targetRow()]}}}return a},dataCommitted:null,by:function(a,b){if(this.dataCommitted!=null){this.dataCommitted(this,new $$t.az(a,b))}},a9:function(a){var b=$$6.$ak.d("DataVisualization");var c=$4("DataVisualization-{0}",b);return $$6.$ak.isRegistered(c)?$$6.$ak.getString(c,a,[]):null},cr:function(a,b){this.onSortDescriptionsChanged(b)},bv:function(a,b){this.onGroupDescriptionsChanged(b)},cs:function(a,b){this.onSummaryDescriptionsChanged(b)},bt:function(a,b){this.onFilterExpressionsChanged(b)},onSortDescriptionsChanged:function(a){this.queueAutoRefresh()},onGroupDescriptionsChanged:function(a){if(this.isGroupingSupported()){if(this.groupDescriptions()!=null&&this.groupDescriptions().k().count()>0){this._ao=true}else{this._ao=false}this.queueAutoRefresh()}},onSummaryDescriptionsChanged:function(a){this.queueAutoRefresh()},_ao:false,onFilterExpressionsChanged:function(a){this.queueAutoRefresh()},onRowExpansionChanged:function(a,b,c){if(this.rowExpansionChanged!=null){this.rowExpansionChanged(this,new $$t.ba(a,b,c))}},isPlaceholderItem:function(a){return false},_ay:null,_externalDataSource:null,externalDataSource:function(a){if(arguments.length===1){this._externalDataSource=a;return a}else{return this._externalDataSource}},s:null,r:null,i:null,t:null,j:null,actualBaseDataProvider:function(){},o:null,actualSchema:function(a){if(arguments.length===1){var b=this.o;this.o=a;if(b!=this.o){this.onPropertyUpdated("ActualSchema",b,this.o)}return a}else{return this.o}},as:0,actualCount:function(a){if(arguments.length===1){var b=this.as;this.as=a;if(b!=this.as){this.onPropertyUpdated("ActualCount",b,this.as)}return a}else{return this.as}},at:0,firstVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.at;this.at=a;if(b!=this.at){this.onPropertyUpdated("FirstVisibleIndexRequested",b,this.at)}return a}else{return this.at}},au:0,lastVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.au;this.au=a;if(b!=this.au){this.onPropertyUpdated("LastVisibleIndexRequested",b,this.au)}return a}else{return this.au}},p:null,updateNotifier:function(a){if(arguments.length===1){var b=this.p;this.p=a;if(b!=this.p){this.onPropertyUpdated("UpdateNotifier",b,this.p)}return a}else{return this.p}},getItemAtIndex:function(a){return null},getItemFromKey:function(a){return null},getItemProperty:function(a,b){if(this.actualBaseDataProvider()!=null){var item_=a;if(item_!=null&&item_.$$isSpecialRow!==undefined){return this.getSpecialRowItemValue(a,b)}return this.actualBaseDataProvider().getItemValue(a,b)}return null},getSpecialRowItemValue:function(a,b){if(a.rowType()==3){if(this.ap()){var c=this.a0(a.targetRow(),b);if(c!=null){return c}}return this.getItemProperty(a.targetRow(),b)}return a.getSectionValue(b)},a0:function(a,b){var c;if(this.actualPrimaryKey()==null||this.actualPrimaryKey().length<1){c=[a]}else{c=new Array(this.actualPrimaryKey().length);this.getPrimaryKeyValue(a,c)}var d=this._u.g(c);if(d!=null&&d.transactionType()==1){var e=d.value();if(e.containsKey(b)){return e.item(b)}}d=this._u.ah(c);if(d!=null&&d.transactionType()==1){var f=d.value();if(f.containsKey(b)){return f.item(b)}}d=this._u.ag(c);if(d!=null&&d.transactionType()==1){var g=d.value();if(g.containsKey(b)){return g.item(b)}}return null},am:function(a,b){var c;if(this.actualPrimaryKey()==null||this.actualPrimaryKey().length<1){c=[a]}else{c=new Array(this.actualPrimaryKey().length);this.getPrimaryKeyValue(a,c)}var d=this._u.g(c);if(d!=null&&d.transactionType()==1){var e=d.value();if(e.containsKey(b)){return true}}d=this._u.ah(c);if(d!=null&&d.transactionType()==1){var f=d.value();if(f.containsKey(b)){return true}}d=this._u.ag(c);if(d!=null&&d.transactionType()==1){var g=d.value();if(g.containsKey(b)){return true}}return false},getItemPropertyAtIndex:function(a,b){return null},fullSectionInformationWillForceLoad:function(){return false},propertyChanged:null,onPropertyUpdated:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}this.propertyUpdatedOverride(a,b,c)},propertyUpdatedOverride:function(a,b,c){switch(a){case"PrimaryKey":this.actualPrimaryKey(this.primaryKey());break;case"ActualPrimaryKey":this.onActualPrimaryKeyChanged(b,c);break;case"ExecutionContext":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().executionContext(this.executionContext())}this.queueAutoRefresh();break;case"LastVisibleIndexRequested":case"FirstVisibleIndexRequested":this.onRequestedVisibleRangeChanged();break;case"ActualDataProvider":this.onActualDataProviderChanged(b,c);break;case"DeferAutoRefresh":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().deferAutoRefresh(this.deferAutoRefresh())}if(!c){this.queueAutoRefresh()}break;case"PropertiesRequested":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().propertiesRequested(this.propertiesRequested())}break;case"ShouldEmitSectionFooters":case"ShouldEmitSectionHeaders":case"ShouldEmitShiftedRows":case"SectionHeaderDisplayMode":case"IsSectionCollapsable":case"IncludeSummaryRowsInSection":case"IsSectionSummaryRowsAtBottom":case"IsSectionContentVisible":this.queueAutoRefresh();break;case"SummaryScope":if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().summaryScope(this.summaryScope())}this.queueAutoRefresh();break}},onActualPrimaryKeyChanged:function(a,b){this.onActualPrimaryKeyChangedOverrride(a,b)},onActualPrimaryKeyChangedOverrride:function(a,b){},isVirtual:function(){return false},l:null,dataProviderUpdateNotifier:function(){return this.l},onActualDataProviderChanged:function(a,b){var c=a;var d=b;if(c!=null){c.updateNotifier(null)}if(d!=null){d.updateNotifier(this.l)}if(c!=null){c.schemaChanged=$.ig.Delegate.prototype.remove(c.schemaChanged,this.bp.runOn(this))}if(d!=null){d.schemaChanged=$.ig.Delegate.prototype.combine(d.schemaChanged,this.bp.runOn(this));d.executionContext(this.executionContext());this.notifyUsingSourceIndexes(this.actualBaseDataProvider().notifyUsingSourceIndexes())}else{this.notifyUsingSourceIndexes(false)}if(c!=null){this.sortDescriptions().syncTarget(null);this.groupDescriptions().syncTarget(null);this.filterExpressions().syncTarget(null);this.summaryDescriptions().syncTarget(null)}if(d!=null){this.sortDescriptions().syncTarget(d.sortDescriptions());this.groupDescriptions().syncTarget(d.groupDescriptions());this.filterExpressions().syncTarget(d.filterExpressions());this.summaryDescriptions().syncTarget(d.summaryDescriptions());if(this.propertiesRequested()!=null){d.propertiesRequested(this.propertiesRequested())}d.summaryScope(this.summaryScope())}this.queueAutoRefresh()},onRequestedVisibleRangeChanged:function(){},n:null,executionContext:function(a){if(arguments.length===1){var b=this.n;this.n=a;if(this.n!=b){this.onPropertyUpdated("ExecutionContext",b,this.n)}return a}else{return this.n}},schemaChanged:null,rowExpansionChanged:null,canInitialize:function(){if(this.n!=null&&this.actualBaseDataProvider()!=null){return true}return false},aa:false,isInitializing:function(){return this.aa},isSortingSupported:function(){return false},isFilteringSupported:function(){return false},sortDescriptions:function(){return this.s},groupDescriptions:function(){return this.r},filterExpressions:function(){return this.i},summaryDescriptions:function(){return this.t},h:0,summaryScope:function(a){if(arguments.length===1){var b=this.h;this.h=a;if(this.h!=b){this.onPropertyUpdated("SummaryScope",$$t.$a0.getBox(b),$$t.$a0.getBox(this.h))}return a}else{return this.h}},x:false,deferAutoRefresh:function(a){if(arguments.length===1){var b=this.x;this.x=a;if(this.x!=b){this.onPropertyUpdated("DeferAutoRefresh",b,this.x)}return a}else{return this.x}},b:null,primaryKey:function(a){if(arguments.length===1){var b=this.b;this.b=a;if(this.b!=b){this.onPropertyUpdated("PrimaryKey",b,this.b)}return a}else{return this.b}},a:null,actualPrimaryKey:function(a){if(arguments.length===1){var b=this.a;this.a=a;if(this.a!=b){this.onPropertyUpdated("ActualPrimaryKey",b,this.a)}return a}else{return this.a}},c:null,propertiesRequested:function(a){if(arguments.length===1){var b=this.c;this.c=a;if(this.c!=b){this.onPropertyUpdated("PropertiesRequested",b,this.c)}return a}else{return this.c}},ag:false,notifyUsingSourceIndexes:function(a){if(arguments.length===1){var b=this.ag;this.ag=a;if(this.ag!=b){this.onPropertyUpdated("NotifyUsingSourceIndexes",b,this.ag)}return a}else{return this.ag}},isItemIndexLookupSupported:function(){return false},isKeyIndexLookupSupported:function(){return false},initializeOverride:function(){},ah:false,resolveFullCount:function(a){return a},bp:function(a,b){var $self=this;var c=this.executionContext();c.execute(function(){$self.ah=true;$self.w=true;$self.queueAutoRefresh();if($self.deferAutoRefresh()){$self.actualSchema(b.schema());$self.actualCount($self.resolveFullCount(b.count()));$self.bz()}})},bz:function(){if(this.schemaChanged!=null){this.schemaChanged(this,new $$t.a8(this.actualSchema(),this.actualCount()))}},onSetItem:function(a,b,c){this.onSetItemOverride(a,b,c)},onBroadcastSetItem:function(a,b,c){if(this.updateNotifier()!=null){this.updateNotifier().notifySetItem(a,b,c)}},onSetItemOverride:function(a,b,c){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastSetItem(a,b,c)},onClearItems:function(){this.onClearItemsOverride()},onBroadcastClearItems:function(){if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},onClearItemsOverride:function(){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastClearItems()},onInsertItem:function(a,b){this.onInsertItemOverride(a,b)},onBroadcastInsertItem:function(a,b){if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(a,b)}},onInsertItemOverride:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastInsertItem(a,b)},onRemoveItem:function(a,b){this.onRemoveItemOverride(a,b)},onBroadcastRemoveItem:function(a,b){if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(a,b)}},onRemoveItemOverride:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}this.onBroadcastRemoveItem(a,b)},notifySetItem:function(a,b,c){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifySetItem(a,b,c)}},notifyClearItems:function(){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifyClearItems()}},notifyInsertItem:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifyInsertItem(a,b)}},notifyRemoveItem:function(a,b){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().notifyRemoveItem(a,b)}},v:false,queueAutoRefresh:function(){if(this.deferAutoRefresh()){return}if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().queueAutoRefresh()}if(this.v){return}if(this.executionContext()!=null){this.v=true;this.executionContext().enqueueAction(this.br.runOn(this))}},br:function(){if(this.deferAutoRefresh()){this.v=false;return}if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().flushAutoRefresh()}if(!this.v){return}this.v=false;this.cp()},cp:function(){if(this.actualBaseDataProvider()!=null){this.actualSchema(this.actualBaseDataProvider().actualSchema());this.actualCount(this.resolveFullCount(this.actualBaseDataProvider().actualCount()))}if(this.actualSchema()!=null&&this.primaryKey()==null){this.actualPrimaryKey(this.actualSchema().primaryKey())}this.refreshInternalOverride();if(this.ah){this.ah=false;this.bz()}},refreshInternalOverride:function(){},flushAutoRefresh:function(){this.br()},refresh:function(){if(this.actualBaseDataProvider()!=null){this.actualBaseDataProvider().refresh()}this.cp()},indexOfItem:function(a){return-1},indexOfKey:function(a){return-1},getPrimaryKeyValue:function(a,b){var c=this.actualPrimaryKey();if(c==null||c.length<1||this.actualBaseDataProvider()==null){return}for(var d=0;d<c.length;d++){b[d]=this.actualBaseDataProvider().getItemValue(a,c[d])}},getRowType:function(a){return 0},getMainValuePath:function(a){return"SectionInformation"},getStickyRows:function(){return this.getStickyRowsInRange(this.firstVisibleIndexRequested(),this.lastVisibleIndexRequested())},getStickyRowsInRange:function(a,b){return null},isRowSpanning:function(a){return a==1||a==2},getStickyRowPriority:function(a){return-1},isExclusivelySticky:function(a){return false},pinRow:function(a){},unpinRow:function(a){},clearPinnedRows:function(){},isRowPinned:function(a){return false},isGroupingSupported:function(){return false},g:0,sectionHeaderDisplayMode:function(a){if(arguments.length===1){var b=this.g;this.g=a;if(b!=this.g){this.onPropertyUpdated("SectionHeaderDisplayMode",$$t.$av.getBox(b),$$t.$av.getBox(this.g))}return a}else{return this.g}},ab:false,isSectionCollapsable:function(a){if(arguments.length===1){var b=this.ab;this.ab=a;if(this.ab!=b){this.onPropertyUpdated("IsSectionCollapsable",b,this.ab)}return a}else{return this.ab}},ad:false,isSectionExpandedDefault:function(a){if(arguments.length===1){this.ad=a;return a}else{return this.ad}},y:false,includeSummaryRowsInSection:function(a){if(arguments.length===1){var b=this.y;this.y=a;if(this.y!=b){this.onPropertyUpdated("IncludeSummaryRowsInSection",b,this.y)}return a}else{return this.y}},af:false,isSectionSummaryRowsAtBottom:function(a){if(arguments.length===1){var b=this.af;this.af=a;if(this.af!=b){this.onPropertyUpdated("IsSectionSummaryRowsAtBottom",b,this.af)}return a}else{return this.af}},ae:false,isSectionHeaderNormalRow:function(a){if(arguments.length===1){var b=this.ae;this.ae=a;if(this.ae!=b){this.onPropertyUpdated("IsSectionHeaderNormalRow",b,this.ae)}return a}else{return this.ae}},ac:false,isSectionContentVisible:function(a){if(arguments.length===1){var b=this.ac;this.ac=a;if(this.ac!=b){this.onPropertyUpdated("IsSectionContentVisible",b,this.ac)}return a}else{return this.ac}},aj:false,shouldEmitSectionHeaders:function(a){if(arguments.length===1){var b=this.aj;this.aj=a;if(this.aj!=b){this.onPropertyUpdated("ShouldEmitSectionHeaders",b,this.aj)}return a}else{return this.aj}},ai:false,shouldEmitSectionFooters:function(a){if(arguments.length===1){var b=this.ai;this.ai=a;if(this.ai!=b){this.onPropertyUpdated("ShouldEmitSectionFooters",b,this.ai)}return a}else{return this.ai}},ak:false,shouldEmitShiftedRows:function(a){if(arguments.length===1){var b=this.ak;this.ak=a;if(this.ak!=b){this.onPropertyUpdated("ShouldEmitShiftedRows",b,this.ak)}return a}else{return this.ak}},w:false,d:null,ensureComparables:function(a){if(this.w&&this.actualCount()>0&&this.actualBaseDataProvider()!=null){var b=null;this.d=this.e(a,b);this.w=false}},e:function(a,b){var c=new Array(a.propertyNames().length);return c},resolveSchemaPropertyType:function(a){return this.actualBaseDataProvider().resolveSchemaPropertyType(a)},setIsRowExpandedAtIndex:function(a,b){},getIsRowExpandedAtIndex:function(a){return true},getRowLevel:function(a){return 0},getRootSummaryRowCount:function(){return 0},getRootSummaryResults:function(){return null},getSectionSummaryResults:function(a){return null},clone:function(){return null},cloneProperties:function(a){var b=$b($$t.$cf.$type,a);if(b!=null){b.executionContext(this.executionContext());b.includeSummaryRowsInSection(this.includeSummaryRowsInSection());b.isSectionCollapsable(this.isSectionCollapsable());b.isSectionExpandedDefault(this.isSectionExpandedDefault());b.isSectionHeaderNormalRow(this.isSectionHeaderNormalRow());b.isSectionSummaryRowsAtBottom(this.isSectionSummaryRowsAtBottom());b.isSectionContentVisible(this.isSectionContentVisible());b.primaryKey(this.primaryKey());b.propertiesRequested(this.propertiesRequested());b.sectionHeaderDisplayMode(this.sectionHeaderDisplayMode());b.shouldEmitSectionFooters(this.shouldEmitSectionFooters());b.shouldEmitSectionHeaders(this.shouldEmitSectionHeaders());b.shouldEmitShiftedRows(this.shouldEmitShiftedRows());b.summaryScope(this.summaryScope());for(var c=0;c<this.groupDescriptions().k().count();c++){b.groupDescriptions().add(this.groupDescriptions().k().item(c))}for(var d=0;d<this.sortDescriptions().k().count();d++){b.sortDescriptions().add(this.sortDescriptions().k().item(d))}for(var e=0;e<this.filterExpressions().j().count();e++){b.filterExpressions().add(this.filterExpressions().j().item(e))}for(var f=0;f<this.summaryDescriptions().k().count();f++){b.summaryDescriptions().add(this.summaryDescriptions().k().item(f))}}},getRowCount:function(){return this.actualCount()},$type:new $.ig.Type("BaseDataSource",$.ig.$ot,[$$t.$a1.$type,$$t.$aw.$type])},true);$c("SectionData:cg","Object",{init:function(){this.s=-1;this.l=true;$.ig.$op.init.call(this)},_o:false,_ae:0,_af:0,_ad:0,_e:null,_f:null,_i:null,_h:null,_g:null,_aa:0,_ah:0,_ag:0,_t:0,_d:null,_u:0,_b:null,s:0,z:function(a){if(arguments.length===1){this.s=a;return a}else{return this.s}},ac:function(){return this._af+this._y+this._ah-this._t},ab:function(){return this.ac()+this._d[this._d.length-1]-1},_c:null,_a:null,_y:0,p:function(){if(!this.q()){return false}var a=this.w();for(var b=a;b<this._c.length;b++){if(!this._c[b]){return false}}return true},l:false,q:function(a){if(arguments.length===1){this.l=a;return a}else{return this.l}},_k:null,ai:function(a,b){this.aj(a,b,this._e.length)},aj:function(a,b,c){switch(a){case 0:this._c=new Array(1);this._a=new Array(1);break;case 1:this._c=new Array(c);this._a=new Array(c);break}for(var d=0;d<this._c.length;d++){this._c[d]=b}},r:function(a){var b=new $$4.x($$4.$h.$type.specialize(String,$$t.$b2.$type),0);if(a!=null){for(var c=0;c<a.length;c++){if(a[c]==null){continue}if(b.count()==0){b.add(new $$4.h(String,$$t.$b2.$type,0))}for(var d=0;d<b.count();d++){if(!b.__inner[d].containsKey(a[c].propertyName())){b.__inner[d].add(a[c].propertyName(),a[c]);break}else if(d==b.count()-1){b.add(new $$4.h(String,$$t.$b2.$type,0))}}}}return b},j:function(a){var b=this.v();if(a>=this._af&&a<this._af+b){return 1}if(a>=this._af+b&&a<this._af+b+this._ah){return 5}if(a>this._ad-this._u-this._ag&&a<=this._ad-this._u){return 5}if(a>this._ad-this._u&&a<=this._ad){return 2}return 0},x:function(a){var b=this.v();var c=-1;if(a>=this._af+b&&a<this._af+b+this._ah){c=a-(this._af+b)}if(a>this._ad-this._u-this._ag&&a<=this._ad-this._u){c=a-(this._ad-this._u-this._ag+1)}return c},v:function(){var a=0;if(this._a!=null){for(var b=0;b<this._a.length;b++){if(this._a[b]!=null){a++}}}return a},w:function(){if(this._a!=null){for(var a=0;a<this._a.length;a++){if(this._a[a]!=null){return a}}}return 0},m:function(){return this._d[this._d.length-1]>0},am:function(a){for(var b=0;b<this._g.length;b++){if(this._g[b]==null){continue}var c=this._i[b];var d=$$t.$cg.r(c);for(var e=0;e<d.count();e++){var f=new Array(d.__inner[e].count());d.__inner[e].values().copyTo(f,0);this._g[b]._a[e].summaryResults(f);if(a!=null){a(this._g[b]._a[e])}}}},ak:function(a,b){if(a==null||a.rowType()!=5){return}if(b<0&&b>=this._g[a.level()-1]._a.length){return}this._g[a.level()-1]._a[b]=a},n:function(){for(var a=0;a<this._g.length;a++){if(this._g[a]!=null){for(var b=0;b<this._g[a]._a.length;b++){if(this._g[a]._a[b]!=null){return true}}}}return false},an:function(a,b,c){c.summaryIndex(b);this._i[a][b]=c;if(this._o&&this._k!=null){this._k._i[a][b]=c}},al:function(a,b){for(var c=a-1;c>=0;c--){if(this._h[c]!=-1){this._h[c]+=b}}},$type:new $.ig.Type("SectionData",$.ig.$ot)},true);$c("SummaryGroup:ch","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,$type:new $.ig.Type("SummaryGroup",$.ig.$ot)},true);$c("DefaultDataSourceDataProviderUpdateNotifier:ci","Object",{a:null,init:function(a){$.ig.$op.init.call(this);this.a=a},notifySetItem:function(a,b,c){this.a.onSetItem(a,b,c)},notifyClearItems:function(){this.a.onClearItems()},notifyInsertItem:function(a,b){this.a.onInsertItem(a,b)},notifyRemoveItem:function(a,b){this.a.onRemoveItem(a,b)},$type:new $.ig.Type("DefaultDataSourceDataProviderUpdateNotifier",$.ig.$ot,[$$t.$bc.$type])},true);$c("DataSourceSpecialRow:cj","Object",{init:function(){this.$$isSpecialRow=true;this.j=new $.ig.FastIterationDictionary$2(String,$.ig.$op.$type,0);this.i=new $.ig.FastIterationDictionary$2(String,$.ig.$op.$type,0);$.ig.$op.init.call(this)},$$isSpecialRow:false,j:null,i:null,_rowType:0,rowType:function(a){if(arguments.length===1){this._rowType=a;return a}else{return this._rowType}},keys:function(){var a=new $$4.x(String,0);for(var b=0;b<this.j._o.count();b++){if(this.j._p.__inner[b]){continue}a.add(this.j._o.__inner[b])}return a.toArray()},values:function(){var a=new $$4.x($.ig.$op.$type,0);for(var b=0;b<this.j._q.count();b++){if(this.j._p.__inner[b]){continue}a.add1(this.j._q.__inner[b])}return a.toArray()},sectionKeys:function(){var a=new $$4.x(String,0);for(var b=0;b<this.i._o.count();b++){if(this.i._p.__inner[b]){continue}a.add(this.i._o.__inner[b])}return a.toArray()},sectionValues:function(){var a=new $$4.x($.ig.$op.$type,0);for(var b=0;b<this.i._q.count();b++){if(this.i._p.__inner[b]){continue}a.add1(this.i._q.__inner[b])}return a.toArray()},_targetRow:null,targetRow:function(a){if(arguments.length===1){this._targetRow=a;return a}else{return this._targetRow}},_level:0,level:function(a){if(arguments.length===1){this._level=a;return a}else{return this._level}},_summaryResults:null,summaryResults:function(a){if(arguments.length===1){this._summaryResults=a;return a}else{return this._summaryResults}},getValue:function(a){var $self=this;if(a=="SectionInformation"){return this.i}var b=null;if(function(){var c=$self.j.h(a,b);b=c.p1;return c.ret}()){return b}b=this.getSummaryValue(a);return b},getSectionValue:function(a){var $self=this;if(a=="SectionInformation"){return this.i}var b=null;if(function(){var c=$self.i.h(a,b);b=c.p1;return c.ret}()){return b}b=this.getSummaryValue(a);return b},setValue:function(a,b){this.j.item(a,b)},setSectionValue:function(a,b){this.i.item(a,b)},getSectionKeys:function(){var a=new Array(this.i.r());var b=0;var d=this.i.m().getEnumerator();while(d.moveNext()){var c=d.current();a[b]=c;b++}return a},getSummaryValue:function(a){if(this.summaryResults()!=null){for(var b=0;b<this.summaryResults().length;b++){if(this.summaryResults()[b]!=null&&this.summaryResults()[b].propertyName()==a){return this.summaryResults()[b].value()}}}return null},getSummaryResults:function(a){if(String.isNullOrWhiteSpace(a)){return this.summaryResults()}var b=new $$4.x($$t.$b2.$type,0);for(var c=0;c<this.summaryResults().length;c++){if(this.summaryResults()[c]!=null&&this.summaryResults()[c].propertyName()==a){b.add(this.summaryResults()[c])}}return b.toArray()},l:function(a){if(a.rowType()!=1){return false}if(a.i.r()!=this.i.r()){return false}for(var b=0;b<a.i._o.count();b++){var c=a.i._o.__inner[b];var d=a.i._q.__inner[b];if(!this.i.d(c)){return false}if(this.i.item(c)==null){if(this.i.item(c)!=d){return false}continue}if(!this.i.item(c).equals(d)){return false}}return true},equals:function(a){var b=$b($$t.$cj.$type,a);if(b!=null){if(this.rowType()==1&&b.rowType()==1){return this.l(b)}else if(this.rowType()==3&&b.rowType()==3){return this.targetRow()==b.targetRow()}}return $.ig.$op.equals.call(this,a)},getHashCode:function(){if(this.rowType()==1){var a=0;for(var b=0;b<this.i._q.count();b++){a=a*17+this.o(this.i._o.__inner[b]);a=a*17+this.o(this.i._q.__inner[b])}return a}return $.ig.$op.getHashCode.call(this)},o:function(val_){if(val_==null){return 0}$.ig.util.ensureUniqueId(val_);return val_.getHashCode()},$type:new $.ig.Type("DataSourceSpecialRow",$.ig.$ot)},true);$c("LocalDataSource:ck","BaseDataSource",{actualBaseDataProvider:function(){return this.actualDataProvider()},cv:null,dataProvider:function(a){if(arguments.length===1){var b=this.cv;this.cv=a;if(b!=this.cv){this.onPropertyUpdated("DataProvider",b,this.cv)}return a}else{return this.cv}},cu:null,actualDataProvider:function(a){if(arguments.length===1){var b=this.cu;this.cu=a;if(b!=this.cu){this.onPropertyUpdated("ActualDataProvider",b,this.cu)}return a}else{if(this.cu==null){this.actualDataProvider(this.resolveDataProvider())}return this.cu}},dv:null,dataSource:function(a){if(arguments.length===1){var b=this.dv;this.dv=a;if(b!=this.dv){this.onPropertyUpdated("ItemsSource",b,this.dv)}return a}else{return this.dv}},canInitialize:function(){var a=$$t.$cf.canInitialize.call(this);if(!a){return false}return this.dataSource()!=null},c0:null,c1:function(a){if(arguments.length===1){this.c0=a;this.actualDataProvider(this.resolveDataProvider());return a}else{return this.c0}},init:function(){this.c4=null;this.c2=null;this.dg=new $$4.x(Array,0);this.c7=false;this.ct=null;this.dp=-1;this.dh=-1;this.dr=-1;this.dj=-1;this.ds=-1;this.dk=-1;this.dq=-1;this.di=-1;this.du=-1;this.dt=-1;this.dm=-1;this.dl=-1;this.dn=-1;$$t.$cf.init.call(this);this.executionContext(new $$t.b);this._u.l(false)},resolveDataProvider:function(){var provider_=new $$t.a;provider_.executionContext(new $$t.b);return provider_},propertyUpdatedOverride:function(a,b,c){$$t.$cf.propertyUpdatedOverride.call(this,a,b,c);switch(a){case"DataProvider":this.actualDataProvider(this.dataProvider());break;case"ActualDataProvider":if(this.actualDataProvider()!=null){this.actualDataProvider().dataSource(this.dataSource());this.actualSchema(this.actualDataProvider().actualSchema());this.actualCount(this.resolveFullCount(this.actualDataProvider().actualCount()))}this.queueAutoRefresh();break;case"ItemsSource":if(this.actualDataProvider()!=null){this.actualDataProvider().dataSource(this.dataSource());this.actualSchema(this.actualDataProvider().actualSchema());this.actualCount(this.resolveFullCount(this.actualDataProvider().actualCount()))}this.queueAutoRefresh();break}},getItemAtIndex:function(a){if(this.c4!=null&&this.c4.view()!=null){return this.c4.view().item(a)}else{return this.actualDataProvider().getItemAtIndex(a)}},getItemFromKey:function(a){var b=this.actualPrimaryKey();
if(b==null||b.length<1||this.actualBaseDataProvider()==null){return a[0]}var c=this.c3();var d;if(this.c4!=null){var e=this.c4.view().count();for(var f=0;f<e;f++){d=this.c4.view().item(f);if($b($$t.$cj.$type,d)!==null){var g=d;if(g.rowType()==1&&!this.isSectionContentVisible()&&this.isSectionHeaderNormalRow()){if(c.compareToKey(d,a)==0){return d}}}else if(c.compareToKey(d,a)==0){return d}}return null}if(this.actualDataProvider()!=null&&this.actualDataProvider().isKeyIndexLookupSupported()){var h=this.actualDataProvider().indexOfKey(a);return this.actualDataProvider().getItemAtIndex(h)}if(this.actualDataProvider()!=null){var i=this.actualDataProvider().actualCount();for(var j=0;j<i;j++){d=this.actualDataProvider().getItemAtIndex(j);if(c.compareToKey(d,a)==0){return d}}}return null},getItemPropertyAtIndex:function(a,b){var c;if(this.c4!=null){c=this.c4.view().item(a)}else{c=this.actualDataProvider().getItemAtIndex(a)}var item_=c;if(item_!=null&&item_.$$isSpecialRow!==undefined){return this.getSpecialRowItemValue(c,b)}if(this.ap()){var d=this.am(c,b);if(d){var e=this.a0(c,b);return e}}return this.actualDataProvider().getItemValue(c,b)},c4:null,c6:null,cz:function(){return this.actualDataProvider()},c9:function(){return this.dg!=null&&this.dg.count()>0},refreshInternalOverride:function(){$$t.$cf.refreshInternalOverride.call(this);if(this.actualDataProvider()!=null){if(this.da()||this.db()||this.dc()||this.dd()||this.c9()){if(this.c4==null){if(this.c6==null){this.c6=new $$t.cm(this)}this.c4=new $$t.cv(this.actualDataProvider());this.c4.updateNotifier(this.c6);this.c4.expansionNotifier(new $$t.cn(this))}this.ensureComparables(this.actualDataProvider().actualSchema());this.c4.shouldEmitSectionHeaders(this.shouldEmitSectionHeaders()&&this._ao);this.c4.shouldEmitSectionFooters(this.shouldEmitSectionFooters()&&this._ao);this.c4.shouldEmitShiftedRows(this.shouldEmitShiftedRows());this.c4.setPinnedKeys(this.dg);this.c4.sortComparer(this.df());this.c4.groupComparer(this.de());this.c4.primaryKeyComparer(this.c3());this.c4.groupDescriptions(this.groupDescriptions());this.c4.sortDescriptions(this.sortDescriptions());this.c4.summaryDescriptions(this.summaryDescriptions());this.c4.summaryScope(this.summaryScope());this.c4.includeSummaryRowsInSection(this.includeSummaryRowsInSection());this.c4.isSectionSummaryRowsAtBottom(this.isSectionSummaryRowsAtBottom());this.c4.sectionHeaderDisplayMode(this.sectionHeaderDisplayMode());this.c4.dataSource(this);this.c4.isGrouping(this.groupDescriptions()!=null&&this.groupDescriptions().k().count()>0);this.c4.filter(this.c5());this.c4.refresh();this.actualSchema(this.actualDataProvider().actualSchema());this.actualCount(this.c4.view().count())}else{var a=this.cz();this.actualSchema(this.actualDataProvider().actualSchema());if(a!=null){this.actualCount(a.actualCount())}else{this.actualCount(0)}if(this.c4!=null){this.c4.updateNotifier(null);this.c4=null;this.onBroadcastClearItems()}}}else{this.actualCount(0);this.actualSchema(null)}},isItemIndexLookupSupported:function(){return true},isKeyIndexLookupSupported:function(){return true},indexOfItem:function(a){if(this.c4!=null){return this.c4.view().indexOf(a)}if(this.actualDataProvider()!=null&&this.actualDataProvider().isItemIndexLookupSupported()){return this.actualDataProvider().indexOfItem(a)}if(this.actualDataProvider()!=null){var b=this.actualDataProvider().actualCount();var c;for(var d=0;d<b;d++){c=this.actualDataProvider().getItemAtIndex(d);if(this.c8(c,a)){return d}}}return-1},c8:function(a,b){if(a==null&&b==null){return true}if(a==null||b==null){return false}return a.equals(b)},indexOfKey:function(a){var b=this.actualPrimaryKey();if(b==null||b.length<1||this.actualBaseDataProvider()==null){return this.indexOfItem(a[0])}var c=this.c3();var d;if(this.c4!=null){var e=this.c4.view().count();for(var f=0;f<e;f++){d=this.c4.view().item(f);if($b($$t.$cj.$type,d)!==null){var g=d;if(g.rowType()==1&&!this.isSectionContentVisible()&&this.isSectionHeaderNormalRow()){if(c.compareToKey(d,a)==0){return f}}}else if(c.compareToKey(d,a)==0){return f}}return-1}if(this.actualDataProvider()!=null&&this.actualDataProvider().isKeyIndexLookupSupported()){return this.actualDataProvider().indexOfKey(a)}if(this.actualDataProvider()!=null){var h=this.actualDataProvider().actualCount();for(var i=0;i<h;i++){d=this.actualDataProvider().getItemAtIndex(i);if(c.compareToKey(d,a)==0){return i}}}return-1},onActualPrimaryKeyChangedOverrride:function(a,b){$$t.$cf.onActualPrimaryKeyChangedOverrride.call(this,a,b);this.c2=null},c2:null,c3:function(){if(this.c2!=null){return this.c2}if(this.actualPrimaryKey()==null){this.c2=new $$t.cl(null,null,null,this);return this.c2}var a=new Array(this.actualPrimaryKey().length);for(var b=0;b<a.length;b++){a[b]=0}this.c2=new $$t.cl(this.actualPrimaryKey(),a,this.d,this);return this.c2},c5:function(){if(this.filterExpressions().j().count()==0){return null}var a=this.actualDataProvider();var b=this.actualDataProvider().actualSchema();var c=this.filterExpressions().j();var d=function(e){for(var f=0;f<c.count();f++){if(!c.item(f).match(e,a,b)){return false}}return true};return d},df:function(){var a=0;if(this.sortDescriptions().k().count()==0&&(this.groupDescriptions()==null||this.groupDescriptions().k().count()==0)){return null}a=this.sortDescriptions().k().count();if(this.groupDescriptions()!=null){a+=this.groupDescriptions().k().count()}var b=new Array(a);var c=new Array(a);var d=0;if(this.groupDescriptions()!=null){for(var e=0;e<this.groupDescriptions().k().count();e++){b[e]=this.groupDescriptions().k().item(e).propertyName();c[e]=this.groupDescriptions().k().item(e).direction();d++}}for(var f=0;f<this.sortDescriptions().k().count();f++){b[f+d]=this.sortDescriptions().k().item(f).propertyName();c[f+d]=this.sortDescriptions().k().item(f).direction()}return new $$t.cl(b,c,this.d,this)},de:function(){if(this.groupDescriptions()==null||this.groupDescriptions().k().count()<1){return null}var a=0;a=this.groupDescriptions().k().count();var b=new Array(a);var c=new Array(a);if(this.groupDescriptions()!=null){for(var d=0;d<this.groupDescriptions().k().count();d++){b[d]=this.groupDescriptions().k().item(d).propertyName();c[d]=this.groupDescriptions().k().item(d).direction()}}return new $$t.cl(b,c,this.d,this)},db:function(){if(this.groupDescriptions()==null||this.groupDescriptions().k().count()<1){return false}if(this.actualDataProvider()==null){return false}if(this.actualDataProvider().isGroupingSupported()){return false}return true},dc:function(){if(this.sortDescriptions()==null||this.sortDescriptions().k().count()<1){return false}if(this.actualDataProvider()==null){return false}if(this.actualDataProvider().isSortingSupported()){return false}return true},da:function(){return this.filterExpressions()!=null&&this.filterExpressions().j().count()>0},dd:function(){if(this.summaryDescriptions()==null||this.summaryDescriptions().k().count()<1){return false}return true},onClearItemsOverride:function(){if(this.c4!=null){this.c4.notifyClearItems();this.queueAutoRefresh()}else{$$t.$cf.onClearItemsOverride.call(this)}},onSetItemOverride:function(a,b,c){if(this.c4!=null){this.c4.notifySetItem(a,b,c)}else{$$t.$cf.onSetItemOverride.call(this,a,b,c)}},onInsertItemOverride:function(a,b){if(this.c4!=null){this.c4.notifyInsertItem(a,b)}else{$$t.$cf.onInsertItemOverride.call(this,a,b)}},onRemoveItemOverride:function(a,b){if(this.c4!=null){this.c4.notifyRemoveItem(a,b)}else{$$t.$cf.onRemoveItemOverride.call(this,a,b)}},d0:function(){this.actualCount(this.c4.view().count());this.onBroadcastClearItems()},d3:function(a,b,c){this.actualCount(this.c4.view().count());this.onBroadcastSetItem(a,b,c)},d1:function(a,b){this.actualCount(this.c4.view().count());this.onBroadcastInsertItem(a,b)},d2:function(a,b){this.actualCount(this.c4.view().count());this.onBroadcastRemoveItem(a,b)},dg:null,pinRow:function(a){$$t.$cf.pinRow.call(this,a);this.dp=-1;this.dh=-1;if(this.c4!=null){this.dg.add(a);this.c4.pinRow(a)}else{this.dg.add(a);this.queueAutoRefresh()}},unpinRow:function(a){$$t.$cf.unpinRow.call(this,a);var b=this.c3();if(this.c4!=null){for(var c=this.dg.count()-1;c>=0;c--){var d=this.dg.__inner[c];if(d.length!=a.length){continue}if(b.compareKeys(d,a)==0){this.dg.removeAt(c);this.c4.unpinRow(d)}}}else{for(var e=this.dg.count()-1;e>=0;e--){var f=this.dg.__inner[e];if(f.length!=a.length){continue}if(b.compareKeys(f,a)==0){this.dg.removeAt(e)}}this.queueAutoRefresh()}this.dp=-1;this.dh=-1},clearPinnedRows:function(){for(var a=this.dg.count()-1;a>=0;a--){this.unpinRow(this.dg.__inner[a])}},isRowPinned:function(a){if(this.c4==null){return false}var b=this.getItemAtIndex(a);if(b==null){return false}var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){if(item_.rowType()==3){return true}}var c=this.c3();var d;if(this.actualPrimaryKey()==null){d=new Array(1);d[0]=b}else{var e=this.actualPrimaryKey();var f=e.length;d=new Array(f);for(var g=0;g<f;g++){d[g]=this.getItemProperty(b,e[g])}}for(var h=0;h<this.dg.count();h++){if(c.compareKeys(this.dg.__inner[h],d)==0){return true}}return false},c7:false,isSortingSupported:function(){if(this.externalDataSource()!=null&&!this.c7){this.c7=true;var a=this.externalDataSource().isSortingSupportedOverride();this.c7=false;return a}return true},isFilteringSupported:function(){if(this.externalDataSource()!=null&&!this.c7){this.c7=true;var a=this.externalDataSource().isFilteringSupportedOverride();this.c7=false;return a}return true},isGroupingSupported:function(){if(this.externalDataSource()!=null&&!this.c7){this.c7=true;var a=this.externalDataSource().isGroupingSupportedOverride();this.c7=false;return a}return true},getStickyRowPriority:function(a){var b=this.getRowType(a);switch(b){case 1:return 100-this.getRowLevel(a);case 2:return 99-this.getRowLevel(a);case 3:case 5:return 2;case 4:return 3}return 1},ct:null,dp:0,dh:0,dr:0,dj:0,ds:0,dk:0,dq:0,di:0,du:0,dt:0,dm:0,dl:0,dn:0,getStickyRowsInRange:function(a,b){if(this.c4==null||(this.groupDescriptions()==null||this.groupDescriptions().k().count()==0)&&(this.summaryDescriptions()==null||this.summaryDescriptions().k().count()==0)&&!this.c9()){return null}var c=null;var d=null;if(this.c4.sections().count()==1){c=this.c4.sections().__inner[0];d=this.c4.sections().__inner[0]}else{c=this.c4.getSection(a);if(c!=null){while(c.z()!=-1){c=this.c4.sections().__inner[c.z()]}}d=this.c4.getSection(b);if(b>=this.c4.view().count()-this.c4.rootSummaryRowCount()){d=this.c4.getLastSection()}}if(c==null||d==null){return null}if(c._ae==this.dp&&c._aa==this.dr&&c._af==this.ds&&c._ad==this.dq&&c._ah==this.du&&c._ag==this.dt&&d._ae==this.dh&&d._aa==this.dj&&d._af==this.dk&&d._ad==this.di&&d._ah==this.dm&&d._ag==this.dl&&this.c4.rootSummaryRowCount()==this.dn){return this.ct}this.dp=c._ae;this.dh=d._ae;this.dr=c._aa;this.dj=d._aa;this.ds=c._af;this.dk=d._af;this.dq=c._ad;this.di=d._ad;this.du=c._ah;this.dt=c._ag;this.dm=d._ah;this.dl=d._ag;this.dn=this.c4.rootSummaryRowCount();if(this.c4.sections().count()==1){this.dh=d._ad}var e=0;if(this.shouldEmitSectionHeaders()&&this._ao){e=1}var f=this.c4.ba();var g=new $$4.x($$0.$aw.$type,0);for(var h=c._ae;h<=d._ae;h++){var i=this.c4.sections().__inner[h];var j=this.c4.sections().__inner[h]._c.length;var k=this.c4.sections().__inner[h].v();if(this.shouldEmitSectionHeaders()&&this._ao){for(var l=0;l<j;l++){if(this.c4.sections().__inner[h]._a[l]!=null){var m=i._af+i._b[l];g.add(m);if(this.summaryScope()==0||this.summaryScope()==2){if(i._c[l]&&this.includeSummaryRowsInSection()&&!this.isSectionSummaryRowsAtBottom()){for(var n=0;n<f;n++){g.add(m+1+n)}}}}if(!this.c4.sections().__inner[h]._c[l]){break}}}if(this.c4.sections().__inner[h].p()){if(this.shouldEmitShiftedRows()){for(var o=0;o<this.c4.sections().__inner[h]._aa;o++){g.add(this.c4.sections().__inner[h]._af+this.c4.sections().__inner[h]._ah+o+k)}}}if(this.summaryScope()==0||this.summaryScope()==2){if(this.includeSummaryRowsInSection()&&this.isSectionSummaryRowsAtBottom()){for(var p=this.c4.sections().__inner[h]._ag-1;p>=0;p--){if(this.shouldEmitSectionFooters()){g.add(this.c4.sections().__inner[h]._ad-k-p)}else{g.add(this.c4.sections().__inner[h]._ad-p)}}}}if(this.shouldEmitSectionFooters()&&this._ao){for(var q=j-1;q>=0;q--){if(!this.c4.sections().__inner[h]._c[q]){break}g.add(this.c4.sections().__inner[h]._ad-q)}}}for(var r=this.c4.view().count()-this.c4.rootSummaryRowCount();r<this.c4.view().count();r++){g.add(r)}this.ct=g.toArray();return this.ct},isExclusivelySticky:function(a){var b=this.getRowType(a);return b==1||b==2||b==4||this.isSectionSummaryRowsAtBottom()&&b==5},getRowType:function(a){if(a<0){return 0}var b=this.getItemAtIndex(a);var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){var c=b.rowType();if(this.isSectionHeaderNormalRow()&&c==1){return 0}return c}return 0},setIsRowExpandedAtIndex:function(a,b){if(this.isSectionCollapsable()&&this.c4!=null&&this.c4.view().count()>0&&this.c4.view().count()>a){this.c4.setIsRowExpandedAtIndex(a,b)}},getIsRowExpandedAtIndex:function(a){if(this.c4!=null&&this.c4.view().count()>0&&this.c4.view().count()>a){return this.c4.getExpansionStateForRow(a)}return true},getRowLevel:function(a){if(a<0){return 0}var b=this.getItemAtIndex(a);var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){return b.level()}if(this.sectionHeaderDisplayMode()==1){return this.groupDescriptions().k().count()}else if(this.groupDescriptions().k().count()>0){return 1}return 0},getRootSummaryRowCount:function(){if(this.c4!=null){return this.c4.rootSummaryRowCount()}return 0},getRootSummaryResults:function(){if(this.c4!=null){return this.c4.rootSummaryResults()}return null},getSectionSummaryResults:function(a){if(this.c4!=null&&this.c4.sections().count()>0&&a>=0&&a<this.c4.sections().count()){return this.c4.sections().__inner[a]._i}return null},clone:function(){var a=new $$t.ck;a.dataSource(this.dataSource());$$t.$cf.cloneProperties.call(this,a);return a},ap:function(){return!this.isReadOnly()&&this.actualBaseDataProvider()!=null&&this._u!=null},cm:function(a,b){if(a==5){var c=new $$4.x($$t.$dc.$type,0);var d=new $$4.x($.ig.$op.$type,0);var e=b;var f=e._a;for(var g=0;g<f.length;g++){if(f[g].transactionType()==1){var h=f[g].iD();var i=this.getItemFromKey(h);if(i!=null){var j=f[g].value();var k=this.indexOfItem(i);var l=null;if(this.c4!=null&&k>-1){l=this.c4.getSection(k);for(var m=0;m<this.summaryDescriptions().k().count();m++){var n=this.summaryDescriptions().k().item(m);if(n.operand()==5||j.containsKey(n.propertyName())){this.c4.updateSummary(m,k,i,false,l)}}}var p=j.getEnumerator();while(p.moveNext()){var o=p.current();this.actualDataProvider().setItemValue(i,o.key(),o.value())}if(l!=null&&this.c4!=null&&k>-1){for(var q=0;q<this.summaryDescriptions().k().count();q++){var r=this.summaryDescriptions().k().item(q);if(r.operand()==5||j.containsKey(r.propertyName())){this.c4.updateSummary(q,k,i,true,l)}}}if(k>-1){this.onBroadcastSetItem(k,i,i)}d.add1(i);c.add(1);if(this.dg.count()>0){var s=this.c3();for(var t=0;t<this.dg.count();t++){if(s.compareKeys(this.dg.__inner[t],h)==0){var u=this.getStickyRows();for(var v=0;v<u.length;v++){var w=u[v];var x=$b($$t.$cj.$type,this.c4.view().item(w));if(x!=null&&x.rowType()==3&&x.targetRow()==i){this.onBroadcastSetItem(w,x,x);break}}break}}}}}else if(f[g].transactionType()==2){var y=f[g].iD();var z=this.indexOfKey(y);if(z>-1){var aa=this.getItemAtIndex(z);this.actualDataProvider().removeItem(aa);this.notifyRemoveItem(z,aa);d.add1(aa);c.add(2)}}else if(f[g].transactionType()==0){var ab=f[g].iD()[0];if(f[g].value()!=null){var ac=f[g].value();var ae=ac.getEnumerator();while(ae.moveNext()){var ad=ae.current();this.actualDataProvider().setItemValue(ab,ad.key(),ad.value())}}this.actualDataProvider().addItem(ab);d.add1(ab);c.add(0)}}if(f.length>0){this.by(e._c,this.getAggregatedChanges(e._c))}}},$type:new $.ig.Type("LocalDataSource",$$t.$cf.$type)},true);$c("DataSourcePropertiesComparer:cl","Object",{e:null,b:null,a:null,g:0,f:null,d:null,c:null,init:function(a,b,c,d){$.ig.$op.init.call(this);this.b=a;if(this.b!=null){this.g=this.b.length}this.a=b;this.e=d;this.f=d.actualSchema();if(this.b!=null){this.d=new Array(this.g)}this.c=c;if(this.c==null){this.c=new Array(this.g)}var e=new $$4.h(String,$$t.$bk.$type,0);for(var f=0;f<this.f.propertyNames().length;f++){e.item(this.f.propertyNames()[f],this.f.propertyTypes()[f])}if(this.b!=null){for(var g=0;g<this.b.length;g++){if(e.containsKey(this.b[g])){this.d[g]=e.item(this.b[g])}else{this.d[g]=d.resolveSchemaPropertyType(this.b[g])}}}},compare:function(a,b){if(this.b==null){if(a==b){return 0}return-1}var c=null;var d=null;var e=null;var f=null;var x_=a;if(x_!=null&&x_.$$isSpecialRow!==undefined){e=x_}var y_=b;if(y_!=null&&y_.$$isSpecialRow!==undefined){f=y_}var g=null;var h=false;var i=this.g;for(var j=0;j<i;j++){g=this.b[j];h=this.a[j]==1;if(e!=null&&e.rowType()==4){return 1}if(e!=null){c=e.getValue(g)}else{c=this.e.getItemProperty(a,g)}if(f!=null){d=f.getValue(g)}else{d=this.e.getItemProperty(b,g)}var k=this.j(c,d,h,this.d[j],this.c[j]);if(j==i-1){if(e!=null&&e.rowType()==5&&k==0){if(this.e.isSectionSummaryRowsAtBottom()){k=h?-1:1}else{k=h?1:-1}}}if(k!=0){return k}}return 0},compareKeys:function(a,b){if(this.b==null){for(var c=0;c<a.length;c++){if(a[c]!=b[c]){return-1}}return 0}var d=null;var e=null;var f=false;var g=this.g;for(var h=0;h<g;h++){f=this.a[h]==1;d=a[h];e=b[h];var i=this.j(d,e,f,this.d[h],this.c[h]);if(i!=0){return i}}return 0},compareToKey:function(a,b){if(this.b==null){if(b.length==1){if(a==b[0]){return 0}}return-1}var c=null;var d=null;var e=null;var f=false;var g=this.g;for(var h=0;h<g;h++){e=this.b[h];f=this.a[h]==1;c=this.e.getItemProperty(a,e);d=b[h];var i=this.j(c,d,f,this.d[h],this.c[h]);if(i!=0){return i}}return 0},j:function(a,b,c,d,e){if(c){var f=a;a=b;b=f}var g=0;switch(d){case 2:a=a==null?false:a;b=b==null?false:b;g=$.ig.util.boolCompare(a,b);break;case 8:a=a==null?$$0.$s.minValue():a;b=b==null?$$0.$s.minValue():b;var xVal_=a;var yVal_=b;xVal_=+xVal_;yVal_=+yVal_;var h=$h(xVal_);var i=$h(yVal_);g=$w(h,i);break;case 5:a=a==null?-1.7976931348623157e308:a;b=b==null?-1.7976931348623157e308:b;g=$w(a,b);break;case 10:a=a==null?0:a;b=b==null?0:b;g=$w(a,b);break;case 6:a=a==null?-7.922816251426434e28:a;b=b==null?-7.922816251426434e28:b;g=$w(a,b);break;case 7:a=a==null?-3.4028230607370965e38:a;b=b==null?-3.4028230607370965e38:b;g=$w(b,b);break;case 1:a=a==null?-2147483648:a;b=b==null?-2147483648:b;g=$w($h(a),$h(b));break;case 3:a=a==null?-0x8000000000000000:a;b=b==null?-0x8000000000000000:b;g=$w($h(a),$h(b));break;case 11:if(e){var j=a;var k=b;if(j!=null){g=j.compareTo(k)}else if(k!=null){g=-1}else{g=0}}else{a=a==null?"":a;b=b==null?"":b;g=$2(a.toString(),b.toString())}break;case 4:a=a==null?-32768:a;b=b==null?-32768:b;g=$w($h(a),$h(b));break;case 0:a=a==null?"":a;b=b==null?"":b;g=$2(a,b);break}return g},$type:new $.ig.Type("DataSourcePropertiesComparer",$.ig.$ot,[$$6.$ad.$type.specialize($.ig.$op.$type)])},true);$c("LocalDataSourceViewUpdateNotifier:cm","Object",{a:null,notifyClearItems:function(){this.a.d0()},notifyInsertItem:function(a,b){this.a.d1(a,b)},notifyRemoveItem:function(a,b){this.a.d2(a,b)},notifySetItem:function(a,b,c){this.a.d3(a,b,c)},init:function(a){$.ig.$op.init.call(this);this.a=a},$type:new $.ig.Type("LocalDataSourceViewUpdateNotifier",$.ig.$ot,[$$t.$a5.$type])},true);$c("LocalDataSourceViewExpansionNotifier:cn","Object",{a:null,notifyRowExpansionChanged:function(a,b,c){this.a.onRowExpansionChanged(a,b,c)},init:function(a){$.ig.$op.init.call(this);this.a=a},$type:new $.ig.Type("LocalDataSourceViewExpansionNotifier",$.ig.$ot,[$$t.$a6.$type])},true);$c("PagePredictionEngine:co","Object",{init:function(){this.s=0;this.u=0;this.x=-1;this.t=-1;this.y=500;this.r=1e3;this.v=8;this.d=null;this.i=false;this.h=false;this.g=new $.ig.FastIterationDictionary$2($.ig.$op.$type,$$0.$aw.$type,0);this.p=new $$4.x($$0.$aw.$type,0);this.o=new $$4.x($$0.$aw.$type,0);this.c=new $$t.cr;$.ig.$op.init.call(this)},a:null,executionContext:function(a){if(arguments.length===1){var b=this.a;this.a=a;if(b!=this.a){this.ay("ExecutionContext",b,this.a)}return a}else{return this.a}},s:0,firstVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.s;this.s=a;if(b!=this.s){this.ay("FirstVisibleIndexRequested",b,this.s)}return a}else{return this.s}},u:0,lastVisibleIndexRequested:function(a){if(arguments.length===1){var b=this.u;this.u=a;if(b!=this.u){this.ay("LastVisibleIndexRequested",b,this.u)}return a}else{return this.u}},x:0,pageSize:function(a){if(arguments.length===1){var b=this.x;this.x=a;if(b!=this.x){this.ay("PageSize",b,this.x)}return a}else{return this.x}},t:0,fullCount:function(a){if(arguments.length===1){var b=this.t;this.t=a;if(b!=this.t){this.ay("FullCount",b,this.t)}return a}else{return this.t}},y:0,pageVisibilityDisplayThresholdMilliseconds:function(a){if(arguments.length===1){var b=this.y;this.y=a;if(b!=this.y){this.ay($$t.$co.aq,b,this.y)}return a}else{return this.y}},r:0,fetchAheadMilliseconds:function(a){if(arguments.length===1){var b=this.r;this.r=a;if(b!=this.r){this.ay("FetchAheadMilliseconds",b,this.r)}return a}else{return this.r}},v:0,maximumPageCandidates:function(a){if(arguments.length===1){var b=this.v;this.v=a;if(b!=this.v){this.ay("MaximumPageCandidates",b,this.v)}return a}else{return this.v}},d:null,pageCandidatesSink:function(a){if(arguments.length===1){var b=this.d;this.d=a;if(b!=this.d){this.ay("PageCandidatesSink",b,this.d)}return a}else{return this.d}},_sectionMap:null,sectionMap:function(a){if(arguments.length===1){this._sectionMap=a;return a}else{return this._sectionMap}},w:0,ay:function(a,b,c){if(this.propertyChanged!=null){this.propertyChanged(this,new $$0.b7(a))}this.az(a,b,c)},propertyChanged:null,az:function(a,b,c){switch(a){case"FirstVisibleIndexRequested":case"LastVisibleIndexRequested":this.aw();break;case"ExecutionContext":this.ax();break;case"FullCount":this.a2();break;case"PageSize":this.a2();break}},a2:function(){this.c.h();this.q=0;var a=new $$4.x($$0.$aw.$type,0);for(var b=0;b<this.g._q.count();b++){if(this.g._p.__inner[b]){continue}a.add(this.g._q.__inner[b])}for(var c=0;c<a.count();c++){this.removeCandidate(a.__inner[c])}if(this.fullCount()>0&&this.pageSize()>0){this.w=$.ig.truncate(Math.ceil(this.fullCount()/this.pageSize()))}},ax:function(){this.enqueueUpdate()},i:false,enqueueUpdate:function(){if(this.i){return}if(this.executionContext()!=null){this.i=true;this.executionContext().enqueueAction(this.av.runOn(this))}},av:function(){this.i=false;this.a4()},a4:function(){if(this.t==-1||this.x==-1){return}this.at();this.a5();this.a6();if(this.q!=0){this.as()}},a3:function(){this.h=false;this.a4()},h:false,as:function(){if(this.h){return}if(this.executionContext()!=null){this.h=true;this.executionContext().executeDelayed(this.a3.runOn(this),0)}},g:null,p:null,a6:function(){var a=this.ac();var b=this.ad();var c=true;var d;for(var e=a;e<=b;e++){d=e;c=this.j(d,2)}if(this.q>0){d=b;while(c){d++;c=this.j(d,1)}}else if(this.q<0){d=a;while(c){d--;c=this.j(d,1)}}this.a0()},o:null,a0:function(){this.o.clear();var a=this.g._o;var b=this.g._o.count();var c=this.g._p;for(var d=0;d<b;d++){if(c.__inner[d]){continue}var e=$h(a.__inner[d]);this.o.add(e)}for(var f=0;f<this.o.count();f++){this.j(this.o.__inner[f],1)}},j:function(a,b){if(a<0||a>this.w){return false}if(this.l(a)){this.removeCandidate(a);return false}if(this.m(a,this.fetchAheadMilliseconds())){this.removeCandidate(a);return false}if(this.n()){this.removeCandidate(a);return false}this.ar(a,b);return true},ar:function(a,b){if(!this.g.d(a)){if(this.d!=null){if(this.d.addCandidate(a,b)){this.g.s(a,a)}}}},removeCandidate:function(a){if(this.g.d(a)){this.g.f(a);if(this.d!=null){this.d.removeCandidate(a)}}},n:function(){return this.g.r()>=this.maximumPageCandidates()},m:function(a,b){var c=b/1e3;var d=c*this.q;if(this.k(a)){return false}if(d>0){var e=d+this.lastVisibleIndexRequested();if(e>=a*this.pageSize()){return false}}else{var f=this.firstVisibleIndexRequested()+d;if(f<=a*this.pageSize()+this.pageSize()){return false}}return true},k:function(a){var b=a*this.pageSize();var c=b+this.pageSize();if(this.lastVisibleIndexRequested()<b||this.firstVisibleIndexRequested()>c){return false}return true},l:function(a){var b=this.pageVisibilityDisplayThresholdMilliseconds()/1e3;var c=b*this.q;if(c>0){var d=c+this.firstVisibleIndexRequested();if(d>a*this.pageSize()+this.pageSize()){return true}}else{var e=this.lastVisibleIndexRequested()+c;if(e<a*this.pageSize()){return true}}return false},ac:function(){return $.ig.truncate(Math.floor(this.firstVisibleIndexRequested()/this.pageSize()))},ad:function(){return $.ig.truncate(Math.floor(this.lastVisibleIndexRequested()/this.pageSize()))},a5:function(){this.q=this.c.j().__y},c:null,q:0,at:function(){this.c.i({__x:0,__y:this.firstVisibleIndexRequested(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})},aw:function(){if(this.executionContext()!=null){this.executionContext().enqueueAction(this.a4.runOn(this))}},$type:new $.ig.Type("PagePredictionEngine",$.ig.$ot,[$$0.$b6.$type])},true);$c("PredictionEnginePageCandidate:cp","Object",{init:function(){$.ig.$op.init.call(this)},$type:new $.ig.Type("PredictionEnginePageCandidate",$.ig.$ot)},true);$c("DataSourceVelocityReading:cq","Object",{init:function(a,b){$.ig.$op.init.call(this);this._b=a;this._a=b},_b:null,_a:0,$type:new $.ig.Type("DataSourceVelocityReading",$.ig.$ot)},true);$c("DataSourceVelocityTracker:cr","Object",{f:0,d:0,init:function(){this.d=6;this.b=0;$.ig.$op.init.call(this);this.f=this.g();this.c=0;this._a=new Array(this.d)},_a:null,b:0,i:function(a){var b=this.e();this._a[this.b]=new $$t.cq(a,b);this.b++;if(this.b>this.d-1){this.b=0}},h:function(){for(var a=0;a<this.d;a++){this._a[a]=null}},j:function(){var a=2147483647;var b=-2147483648;var c=0;var d=0;var e=0;var f=0;var g=this.e();for(var h=0;h<this.d;h++){if(this._a[h]==null){continue}if(g-this._a[h]._a>300){continue}if(this._a[h]._a<a){a=this._a[h]._a;c=this._a[h]._b.__x;d=this._a[h]._b.__y}if(this._a[h]._a>b){b=this._a[h]._a;e=this._a[h]._b.__x;f=this._a[h]._b.__y}}var i=b-a;i=Math.max(i,16);var j=i/1e3;if(j==0){return{__x:c,__y:d,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}return{__x:(e-c)/j,__y:(f-d)/j,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},c:0,g:function(){var a=$$0.$s.now();return a.getTime()},e:function(){var a=this.g()-this.f;if(a==this.c){a+=1}this.c=a;return a},$type:new $.ig.Type("DataSourceVelocityTracker",$.ig.$ot)},true);$c("IPageCandidatesSink:cs","Object",{$type:new $.ig.Type("IPageCandidatesSink",null)},true);$c("SectionMap:ct","Object",{init:function(){this.a=new $$t.cg;this.j=new $$t.cx;this.k=new $$t.cy;this.s=new $$4.x($$t.$cg.$type,0);this.m=new $$t.cu;this.l=new $$t.cu;$.ig.$op.init.call(this)},a:null,j:null,k:null,s:null,t:function(){return this.s},u:function(){return this.s.__inner[this.s.count()-1]._ad+1},q:function(){return this.t().count()>0},n:function(a,b,c){if(a>=0&&a<this.s.count()){var d=this.s.__inner[a];if(b>=d._af&&b<=d._ad){c._c++;if(c._c>=c._a.length){c._c=0}c._b[c._c]=a;c._a[c._c]=d;return true}}return false},o:function(a,b,c){if(a>=0&&a<this.s.count()){var d=this.s.__inner[a];if(b>=d.ac()&&b<=d.ab()||!d.p()&&b>=d.ac()){c._c++;if(c._c>=c._a.length){c._c=0}c._b[c._c]=a;c._a[c._c]=d;return true}}return false},m:null,e:function(a){return this.f(a,this.j,this.m)},f:function(a,b,c){if(c._a==null){c._a=new Array(5);c._b=new Array(5);for(var d=0;d<c._a.length;d++){c._a[d]=null;c._b[d]=-1}}if(c._a[c._c]!=null){if(a>=c._a[c._c]._af&&a<=c._a[c._c]._ad){return c._a[c._c]}for(var e=0;e<c._a.length;e++){if(c._a[e]!=null){if(a>=c._a[e]._af&&a<=c._a[e]._ad){c._c=e;return c._a[c._c]}}}var f=c._b[c._c]+1;if(this.n(f,a,c)){return c._a[c._c]}f=c._b[c._c]-1;if(this.n(f,a,c)){return c._a[c._c]}}this.a._af=a;var g=this.s.binarySearch1(this.a,b);if(g<0){g=~g;g--}if(this.n(g,a,c)){return c._a[c._c]}if(this.n(g+1,a,c)){return c._a[c._c]}if(this.n(g-1,a,c)){return c._a[c._c]}return null},h:function(a,b,c){if(c._a==null){c._a=new Array(5);c._b=new Array(5);for(var d=0;d<c._a.length;d++){c._a[d]=null;c._b[d]=-1}}if(c._a[c._c]!=null){var e=c._a[c._c];if(a>=e.ac()&&a<=e.ab()){return e}for(var f=0;f<c._a.length;f++){if(c._a[f]!=null){if(a>=c._a[f].ac()&&a<=c._a[f].ab()){c._c=f;return c._a[c._c]}}}var g=c._b[c._c]+1;if(this.o(g,a,c)){return c._a[c._c]}g=c._b[c._c]-1;if(this.o(g,a,c)){return c._a[c._c]}}this.a._af=a;var h=this.s.binarySearch1(this.a,b);if(h<0){h=~h;h--}if(this.o(h,a,c)){return c._a[c._c]}if(this.o(h+1,a,c)){return c._a[c._c]}if(this.o(h-1,a,c)){return c._a[c._c]}return null},v:function(){this.s.clear();this.m._a=null;this.l._a=null},ac:function(a,b,c){for(var d=a._ae+1;d<this.s.count();d++){var e=this.s.__inner[d];e._t+=c;e._af+=b;e._ad+=b;for(var f=0;f<e._h.length;f++){if(e._h[f]!=-1){e._h[f]+=b}}}},ab:function(a,b,c){for(var d=a._ae;d<this.s.count();d++){var e=this.s.__inner[d];e._t+=c;e._af+=b;e._ad+=b;e._ae=d;if(e.z()>a._ae){e.z(e.z()-1)}for(var f=0;f<e._h.length;f++){if(e._h[f]!=-1){e._h[f]+=b}}}},x:function(a){if(this.s.count()==0){return}var b=this.s.__inner[this.s.count()-1];b._ad=a},i:function(a,b,c,d,e,f){var g=this.b(b,c,d,e,f);g._af=a;g._ae=this.s.count();if(this.s.count()>0){g._t=this.s.__inner[this.s.count()-1]._t}this.s.add(g);return g},b:function(a,b,c,d,e){var f=new $$t.cg;f._e=c;f._d=new Array(c.length);var g=new Array(c.length);for(var h=0;h<g.length;h++){f._d[h]=0;g[h]=a.getItemProperty(b,c[h])}f._f=g;f.ai(d,e);var i=d==1?c.length:1;f._b=new Array(i);f._h=new Array(i);f._i=new Array(i);for(var j=0;j<i;j++){f._h[j]=-1;f._i[j]=new Array(a.summaryDescriptions().k().count())}f._g=new Array(c.length);return f},ad:function(a,b,c){for(var d=a._ae+1;d<this.s.count();d++){this.s.__inner[d]._ae=d;this.s.__inner[d]._t+=c;this.s.__inner[d]._af+=b;this.s.__inner[d]._ad+=b;for(var e=0;e<this.s.__inner[d]._h.length;e++){if(this.s.__inner[d]._h[e]!=-1){this.s.__inner[d]._h[e]+=b}}}},aa:function(a,b){this.s.insert(a,b)},ae:function(a){if(this.m!=null){var b=this.m;$$t.$ct.w(a,b)}if(this.l!=null){var c=this.l;$$t.$ct.w(a,c)}this.s.__inner[a]._o=true;this.s.removeAt(a)},w:function(a,b){if(b._a!=null){for(var c=0;c<b._a.length;c++){if(b._a[c]!=null){if(b._a[c]._ae==a){b._a[c]=null}}}}},d:function(){return this.s.__inner[this.s.count()-1]},c:function(){return this.s.__inner[0]},y:function(){this.s.__inner[this.s.count()-1]._t++},l:null,g:function(a){return this.h(a,this.k,this.l)},p:function(a){for(var b=0;b<this.t().count();b++){if(b==a._ae){continue}if(this.t().__inner[b].z()==a._ae){return true}}return false},z:function(a,b){if(a._e==null){a._d[0]+=b;return}if(a.z()==-1){for(var c=0;c<a._e.length;c++){a._d[c]+=b}}else{var d=a.w();for(var e=a.w();e<a._e.length;e++){a._d[e]+=b}var f=a.z();while(f>=0){var g=this.t().__inner[f];var h=g.w();g._d[h]+=b;f=g.z()}}},af:function(a,b){for(var c=0;c<a._ae;c++){var d=this.s.__inner[c];for(var e=0;e<a._e.length;e++){if(d._a[e]!=null&&(d._f[e]==a._f[e]||d._f[e].equals(a._f[e]))){a.z(c);a._a[e]=null}}}},r:function(a){var b=a.w();if(b==0){return true}var c=this.s.__inner[a.z()];for(var d=b-1;d>=0;d--){if(!c._c[d]){return false}}return this.r(c)},$type:new $.ig.Type("SectionMap",$.ig.$ot)},true);$c("SectionSearchData:cu","Object",{init:function(){$.ig.$op.init.call(this)},_a:null,_c:0,_b:null,$type:new $.ig.Type("SectionSearchData",$.ig.$ot)},true);$c("RearrangedListView:cv","Object",{n:null,a4:null,z:null,e:null,a:null,b:null,c:null,d:null,a8:0,a7:0,rootSummaryRowCount:function(){return this.a7},rootSummaryResults:function(){return this.e},view:function(){return this.a4},_includeSummaryRowsInSection:false,includeSummaryRowsInSection:function(a){if(arguments.length===1){this._includeSummaryRowsInSection=a;return a}else{return this._includeSummaryRowsInSection}},_isSectionSummaryRowsAtBottom:false,
isSectionSummaryRowsAtBottom:function(a){if(arguments.length===1){this._isSectionSummaryRowsAtBottom=a;return a}else{return this._isSectionSummaryRowsAtBottom}},isSectionCollapsable:function(){if(!this.dataSource().isSectionContentVisible()){return true}return this.dataSource().isSectionCollapsable()},init:function(a){this.z=new $$t.ct;this.a8=0;this.a7=0;this.k=0;this.a3=new $$4.x(Array,0);this.ay=new $$4.h(String,$$0.$aq.$type,0);$.ig.$op.init.call(this);this.n=a},getSection:function(a){return this.z.e(a)},getLastSection:function(){return this.z.d()},o:null,primaryKeyComparer:function(a){if(arguments.length===1){this.o=a;return a}else{return this.o}},a0:null,sortComparer:function(a){if(arguments.length===1){this.a0=a;return a}else{return this.a0}},az:null,groupComparer:function(a){if(arguments.length===1){this.az=a;return a}else{return this.az}},s:null,filter:function(a){if(arguments.length===1){this.s=a;return a}else{return this.s}},aa:null,updateNotifier:function(a){if(arguments.length===1){this.aa=a;return a}else{return this.aa}},ac:null,expansionNotifier:function(a){if(arguments.length===1){this.ac=a;return a}else{return this.ac}},_dataSource:null,dataSource:function(a){if(arguments.length===1){this._dataSource=a;return a}else{return this._dataSource}},_groupDescriptions:null,groupDescriptions:function(a){if(arguments.length===1){this._groupDescriptions=a;return a}else{return this._groupDescriptions}},_sortDescriptions:null,sortDescriptions:function(a){if(arguments.length===1){this._sortDescriptions=a;return a}else{return this._sortDescriptions}},_summaryDescriptions:null,summaryDescriptions:function(a){if(arguments.length===1){this._summaryDescriptions=a;return a}else{return this._summaryDescriptions}},_isGrouping:false,isGrouping:function(a){if(arguments.length===1){this._isGrouping=a;return a}else{return this._isGrouping}},k:0,summaryScope:function(a){if(arguments.length===1){this.k=a;return a}else{return this.k}},_sectionHeaderDisplayMode:0,sectionHeaderDisplayMode:function(a){if(arguments.length===1){this._sectionHeaderDisplayMode=a;return a}else{return this._sectionHeaderDisplayMode}},ar:function(){if(!this.dataSource().isSectionContentVisible()){return false}if(this.isSectionCollapsable()){return this.dataSource().isSectionExpandedDefault()}return true},refresh:function(){var $self=this;if(this.a4==this.n||this.a4==null){this.a4=new $$4.x($.ig.$op.$type,0)}this.a4.clear();if(!this.isSectionCollapsable()){this.ay.clear()}if(this.n==null){return}var a=this.n.actualCount();this.a7=0;this.a8=this.ba();this.br(null);var b=this.summaryDescriptions().k().count()>0&&this.summaryScope()!=2&&this.summaryScope()!=3;if(this.s==null){for(var c=0;c<a;c++){var d=this.n.getItemAtIndex(c);this.a4.add1(d);if(b){this.bq(null,d)}}}else{for(var e=0;e<a;e++){var f=this.n.getItemAtIndex(e);if(this.s(f)){this.a4.add1(f);if(b){this.bq(null,f)}}}}this.bu(null);if(this.a0!=null){this.a4.sort1(this.a0)}this.ah=false;this.z.v();if(this.groupDescriptions()!=null&&this.groupDescriptions().k().count()>0){this.ah=true;this.b1()}else{this.z.t().add(function(){var $ret=new $$t.cg;$ret._ae=0;$ret._e=null;$ret._f=null;$ret._af=0;$ret._ad=$self.a4.count();$ret._c=new Array(0);$ret._d=new Array(1);return $ret}())}if(b){this.bw(this.e)}var g=this.primaryKeyComparer();var h=new $$4.x($.ig.$op.$type,0);if(this.a3.count()>0&&this.shouldEmitShiftedRows()){if(!this.ah){var i=this.z.t().__inner[0];for(var j=0;j<this.a3.count();j++){var k=this.dataSource().indexOfKey(this.a3.__inner[j]);if(k!=-1){this.bj(i,this.a4.__inner[k],j)}}}else{for(var l=0;l<this.a3.count();l++){var m=this.dataSource().indexOfKey(this.a3.__inner[l]);if(m!=-1){var n=this.z.e(m);this.bj(n,this.a4.__inner[m],l)}}}}if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},bl:function(a,b){var c=null;if(a.p()){if(b){var d=a._af+a.v()+a._ah+a._aa;c=this.a4.__inner[d]}else{var e=a._ad-a._u-a._ag;c=this.a4.__inner[e]}}return c},sections:function(){return this.z.t()},_shouldEmitSectionHeaders:false,shouldEmitSectionHeaders:function(a){if(arguments.length===1){this._shouldEmitSectionHeaders=a;return a}else{return this._shouldEmitSectionHeaders}},_shouldEmitSectionFooters:false,shouldEmitSectionFooters:function(a){if(arguments.length===1){this._shouldEmitSectionFooters=a;return a}else{return this._shouldEmitSectionFooters}},_shouldEmitShiftedRows:false,shouldEmitShiftedRows:function(a){if(arguments.length===1){this._shouldEmitShiftedRows=a;return a}else{return this._shouldEmitShiftedRows}},ah:false,b1:function(){if(this.a4.count()==0){return}var a=$$0.$s.now();var b=this.f();var c=this.g();var d=this.sectionHeaderDisplayMode()==1?c.length:1;if(this.b==null||this.b.length!=c.length){this.a=new Array(d);this.b=new Array(d)}this.c=new Array(d);for(var e=0;e<d;e++){this.c[e]=new Array(this.summaryDescriptions().k().count())}var f=this.summaryScope()==3||this.summaryScope()==1;var g=new $$4.x($.ig.$op.$type,0);var h=null;var i=null;if(this.dataSource().isSectionContentVisible()||!this.shouldEmitSectionHeaders()){for(var j=0;j<this.a4.count();j++){var k=this.a4.__inner[j];if(k==null){continue}if(h==null){var l=this.x(j,k,c);j+=this.bc(l,j,b,c,true);this.bs(l,true,f);this.z.z(l,1);this.bq(l,k);i=k}else{if(this.groupComparer().compare(h,k)!=0){var m=this.z.t().__inner[this.z.t().count()-1];if(m.q()){j+=this.bb(j,i,b,c)}this.bt(j-1,i,b);var n=this.x(j,k,c);this.bs(n,false,f);var o=this.bc(n,j,b,c,true);j+=o;n.q(this.z.r(n));this.z.z(n,1);this.bq(n,k);i=k}else{var p=this.z.t().__inner[this.z.t().count()-1];this.z.z(p,1);this.bq(p,k)}}if(j==this.a4.count()-1){var q=this.z.t().__inner[this.z.t().count()-1];if(q.q()){j+=this.bb(j+1,i,b,c)}this.bt(j,i,b)}h=k}if(!f){if(this.sectionHeaderDisplayMode()==1){for(var r=0;r<c.length;r++){for(var s=0;s<this.summaryDescriptions().k().count();s++){this.b[r]._i[r][s]=this.c[r][s].endCalculation();this.b[r]._i[r][s].summaryIndex(s)}for(var t=0;t<this.b[r]._h.length;t++){if(this.b[r]._h[t]==-1){this.b[r]._h[t]=this.z.t().__inner[this.z.t().count()-1]._ad+1}}}}else{for(var u=0;u<this.summaryDescriptions().k().count();u++){this.b[0]._i[0][u]=this.c[0][u].endCalculation();this.b[0]._i[0][u].summaryIndex(u)}this.b[0]._h[0]=this.z.t().__inner[this.z.t().count()-1]._ad+1}}this.bx();for(var v=0;v<this.z.t().count();v++){var w=this.z.t().__inner[v];if(this.shouldEmitSectionHeaders()){if(!w.q()){var x=w._ad-w._af+1;if(this.sectionHeaderDisplayMode()==1&&this.groupDescriptions().k().count()>1&&this.includeSummaryRowsInSection()&&this.isSectionSummaryRowsAtBottom()){var y=w.w();var z=false;if(v+1<this.z.t().count()&&this.z.t().__inner[v+1].w()==0){z=true}if(z){var aa=w.v();x=aa+w._d[w._d.length-1]}}this.a4.removeRange(w._af,x);this.z.ae(w._ae);this.z.ab(w,-x,-x);v--}else if(!w.p()){var ab=0;var ac=w.w();for(var ad=ac;ad<w._c.length;ad++){ab=w._b[ad];if(!w._c[ad]){break}}var ae=w._af+ab+1;var af=w._d[w._d.length-1];this.a4.removeRange(ae,af);w._ad-=af;this.z.ac(w,-af,-af)}}}}else{for(var ag=0;ag<this.a4.count();ag++){var ah=this.a4.__inner[ag];if(ah==null){continue}if(h==null){var ai=this.x(ag,ah,c);this.bd(g,ai,ah,b,c,true);this.bs(ai,true,f);this.z.z(ai,1);this.bq(ai,ah);i=ah}else{if(this.groupComparer().compare(h,ah)!=0){var aj=this.z.t().__inner[this.z.t().count()-1];this.bt(g.count()-1,i,b);var ak=this.x(ag,ah,c);this.bs(ak,false,f);this.bd(g,ak,ah,b,c,true);ak.q(this.z.r(ak));this.z.z(ak,1);this.bq(ak,ah);i=ah}else{var al=this.z.t().__inner[this.z.t().count()-1];this.z.z(al,1);this.bq(al,ah)}}if(ag==this.a4.count()-1){var am=this.z.t().__inner[this.z.t().count()-1];this.bt(ag,i,b)}h=ah}this.a4=g}for(var an=0;an<this.b.length;an++){this.a[an]=null;this.b[an]=null}this.c=null;var ao=$$0.$s.now()},bs:function(a,b,c){if(b){for(var d=0;d<this.b.length;d++){this.b[d]=a;if(!c){for(var e=0;e<this.summaryDescriptions().k().count();e++){var f=this.summaryDescriptions().k().item(e);this.c[d][e]=f.d();this.c[d][e].beginCalculation(this.dataSource(),f.propertyName())}}}}if(this.sectionHeaderDisplayMode()==1){var g=false;var h=a._e.length;for(var i=0;i<h;i++){if(g){if(!c){for(var j=0;j<this.summaryDescriptions().k().count();j++){this.b[i]._i[i][j]=this.c[i][j].endCalculation();this.b[i]._i[i][j].summaryIndex(j);this.c[i][j].beginCalculation(this.dataSource(),this.summaryDescriptions().k().item(j).propertyName())}this.b[i]._h[i]=a._af}this.b[i]=a;continue}var k=false;if(this.b[i]._f[i]==null){k=a._f[i]!=null}else{k=!this.b[i]._f[i].equals(a._f[i])}if(k){if(!c){for(var l=0;l<this.summaryDescriptions().k().count();l++){this.b[i]._i[i][l]=this.c[i][l].endCalculation();this.b[i]._i[i][l].summaryIndex(l);this.c[i][l].beginCalculation(this.dataSource(),this.summaryDescriptions().k().item(l).propertyName())}this.b[i]._h[i]=a._af}this.b[i]=a;if(i-1>-1){var m=i-1;while(m>=0&&this.b[m]._o){m=m-1}a.z(this.b[m]._ae)}g=true}}}else{var n=false;for(var o=0;o<a._e.length;o++){if(this.b[0]._f[o]==null){if(this.b[0]._f[o]!=a._f[o]){n=true;break}continue}if(!this.b[0]._f[o].equals(a._f[o])){n=true;break}}if(n){if(!c){for(var p=0;p<this.summaryDescriptions().k().count();p++){this.b[0]._i[0][p]=this.c[0][p].endCalculation();this.b[0]._i[0][p].summaryIndex(p);this.c[0][p].beginCalculation(this.dataSource(),this.summaryDescriptions().k().item(p).propertyName())}this.b[0]._h[0]=a._af}this.b[0]=a}}},ba:function(){var a=0;var b=new $$4.h(String,$$0.$aw.$type,0);for(var c=0;c<this.summaryDescriptions().k().count();c++){var d=this.summaryDescriptions().k().item(c).propertyName();if(!b.containsKey(d)){b.add(d,1)}else{b.item(d,b.item(d)+1)}if(b.item(d)>a){a=b.item(d)}}return a},bd:function(a,b,c,d,e,f){var g=0;if(this.shouldEmitSectionHeaders()){if(this.dataSource().sectionHeaderDisplayMode()==0){if(this.an(a,0,c,d,e,f)){this.z.y();g++;if(b!=null){var h=this.bm(b);b._a[0]=h;b._c[0]=this.al(h);b._b[0]=a.count()-1-b._af}}}else if(this.dataSource().sectionHeaderDisplayMode()==1){for(var i=0,j=0;i<e.length;i++){var k=a.count()+j;if(this.an(a,i,c,d,[e[i]],f)){g++;this.z.y();if(b!=null){var l=this.bn(b,i);b._a[i]=l;b._c[i]=this.al(l);b._b[i]=k-b._af;if(!b._c[i]){break}}else if(!this.ar()){break}j++}}}}return g},bc:function(a,b,c,d,e){var f=0;if(this.shouldEmitSectionHeaders()){var g=this.a4.__inner[b];if(this.dataSource().sectionHeaderDisplayMode()==0){if(this.ao(b,0,g,c,d,e)){this.z.y();f++;if(a!=null){var h=this.bm(a);a._a[0]=h;a._c[0]=this.al(h);a._b[0]=b-a._af}}}else if(this.dataSource().sectionHeaderDisplayMode()==1){for(var i=0,j=0;i<d.length;i++){var k=b+j;if(this.ao(k,i,g,c,[d[i]],e)){f++;this.z.y();if(a!=null){var l=this.bn(a,i);a._a[i]=l;a._c[i]=this.al(l);a._b[i]=k-a._af;if(!a._c[i]){break}}else if(!this.ar()){break}j++}}}}return f},ao:function(a,b,c,d,e,f){var g=new $$t.cj;g.level(b);for(var h=0;h<d.length;h++){g.setValue(d[h],this.dataSource().getItemProperty(c,d[h]));if(h<e.length){g.setSectionValue(e[h],this.dataSource().getItemProperty(c,e[h]))}}g.rowType(1);g.summaryResults(new Array(this.summaryDescriptions().k().count()));if(f&&this.a!=null){if(this.a[b]!=null){if(this.a[b].l(g)){return false}else{this.a[b]=g;for(var i=b+1;i<this.a.length;i++){this.a[i]=null}}}else{this.a[b]=g}}this.a4.insert1(a,g);return true},an:function(a,b,c,d,e,f){var g=new $$t.cj;g.level(b);for(var h=0;h<d.length;h++){g.setValue(d[h],this.dataSource().getItemProperty(c,d[h]));if(h<e.length){g.setSectionValue(e[h],this.dataSource().getItemProperty(c,e[h]))}}g.rowType(1);g.summaryResults(new Array(this.summaryDescriptions().k().count()));if(f&&this.a!=null){if(this.a[b]!=null){if(this.a[b].l(g)){return false}else{this.a[b]=g;for(var i=b+1;i<this.a.length;i++){this.a[i]=null}}}else{this.a[b]=g}}a.add1(g);return true},bb:function(a,b,c,d){var e=0;if(this.shouldEmitSectionFooters()){if(this.dataSource().sectionHeaderDisplayMode()==0){this.bv(a,0,b,c,d);e++}else if(this.dataSource().sectionHeaderDisplayMode()==1){for(var f=d.length-1;f>=0;f--){if(this.z.t().__inner[this.z.t().count()-1]._c[f]){this.bv(a,f,b,c,[d[f]]);a++;e++}}}}return e},bv:function(a,b,c,d,e){var f=new $$t.cj;f.level(b);for(var g=0;g<d.length;g++){f.setValue(d[g],this.dataSource().getItemProperty(c,d[g]));if(g<e.length){f.setSectionValue(e[g],this.dataSource().getItemProperty(c,e[g]))}}f.rowType(2);this.a4.insert1(a,f)},q:function(a,b,c){var d=this.r(b,0,c,5);if(this.isSectionSummaryRowsAtBottom()){a._ag++}else{a._ah++}a._ad++;this.z.ac(a,1,1);return d},r:function(a,b,c,d){var e=function(){var $ret=new $$t.cj;$ret.level(b);$ret.rowType(d);$ret.summaryResults(c);return $ret}();this.a4.insert1(a,e);return e},bf:function(a,b,c){var d=a.v();var e=a._af+a._ah+a._aa;if(this.shouldEmitSectionHeaders()){e+=d}this.bh(e,a._c.length,b);a._aa++;a._ad++;a._t++;if(c){this.z.ac(a,1,1)}return e},bg:function(a,b,c){var d=a.v();if(this.shouldEmitSectionHeaders()){b+=d}this.bh(b,a._c.length,c);a._aa++;a._ad++;a._t++;this.z.ac(a,1,1);return b},bh:function(a,b,c){var d=new $$t.cj;d.rowType(3);d.targetRow(c);d.level(b);this.a4.insert1(a,d);return a+1},bi:function(a,b){var c=-1;for(var d=0;d<this.a3.count();d++){if(this.primaryKeyComparer().compareToKey(b,this.a3.__inner[d])==0){c=d;break}}return this.bj(a,b,c)},bj:function(a,b,c){var d=-1;if(c!=-1){var e=a._af;var f=e+a._aa;var g=false;for(var h=e;h<f;h++){var i=this.shouldEmitSectionHeaders()?h+1:h;var j=$b($$t.$cj.$type,this.a4.__inner[i]);if(j.targetRow()!=null){if(this.a0!=null){var k=this.a0.compare(b,j.targetRow());if(k==0||k<0){d=this.bg(a,h,b);g=true;break}}else{var l=-1;for(var m=0;m<this.a3.count();m++){if(this.primaryKeyComparer().compareToKey(j.targetRow(),this.a3.__inner[m])==0){l=m;break}}if(l>c){d=this.bg(a,h,b);g=true;break}}}}if(!g){d=this.bf(a,b,true);g=true}}return d},bw:function(a){var b=$$t.$cg.r(a);this.a7=b.count();for(var c=0;c<b.count();c++){var d=new Array(b.__inner[c].count());b.__inner[c].values().copyTo(d,0);this.r(this.a4.count(),0,d,4)}},bx:function(){if(this.summaryScope()==0||this.summaryScope()==2){for(var a=0;a<this.z.t().count();a++){var b=this.z.t().__inner[a];if(!b.q()){continue}if(this.includeSummaryRowsInSection()){if(this.isSectionSummaryRowsAtBottom()){this.by(b,false)}else{this.bz(b,false)}}else{for(var c=0;c<b._i.length;c++){var d=this.a4.__inner[b._af+b._b[c]];if(d!=null){d.summaryResults(b._i[c])}if(!b._c[c]){break}}}}}},bz:function(a,b){var c=0;var d=this.bl(a,!this.isSectionSummaryRowsAtBottom());for(var e=0;e<a._i.length;e++){if(a._a[e]==null||!a._c[e]){continue}var f=$$t.$cg.r(a._i[e]);if(this.shouldEmitSectionHeaders()){c+=1}a._g[e]=new $$t.ch;a._g[e]._a=new Array(this.a8);for(var g=0;g<f.count();g++){var h=new Array(f.__inner[g].count());f.__inner[g].values().copyTo(h,0);var i=a._af+c+g;var j=this.r(i,e+1,h,5);a.ak(j,g);for(var k=e+1;k<a._b.length;k++){a._b[k]++}a._ad++;a._ah++;this.z.ad(a,1,1);if(d!=null){var l=this.f();for(var m=0;m<l.length;m++){j.setValue(l[m],this.dataSource().getItemProperty(d,l[m]))}}if(b&&this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(i,j)}}c+=f.count()}},be:function(a,b,c){var d=a._h[b];var e=$$t.$cg.r(a._i[b]);for(var f=0;f<e.count();f++){var g=new Array(e.__inner[f].count());e.__inner[f].values().copyTo(g,0);var h=this.z.e(d-1);var i=this.r(d+f,b+1,g,5);a.ak(i,f);h._ad++;h._ag++;this.z.ac(h,1,1);var j=null;var k=0;for(var l=d+f-1;l>=0;l--){var m=this.dataSource().getRowType(l);if(m==0||m==1){j=this.a4.__inner[l];k=m;break}}if(j!=null){var n=this.f();if(k==1){var o=$b($$t.$cj.$type,j);for(var p=0;p<n.length;p++){i.setValue(n[p],o.getValue(n[p]))}}else{for(var q=0;q<n.length;q++){i.setValue(n[q],this.dataSource().getItemProperty(j,n[q]))}}}if(c&&this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(d+f,i)}}return e.count()},by:function(a,b){for(var c=0;c<a._i.length;c++){if(!a._c[c]){break}if(a._h[c]==-1){continue}a._g[c]=new $$t.ch;a._g[c]._a=new Array(this.a8);var d=this.be(a,c,b)}},f:function(){var a=new Array(this.groupDescriptions().k().count()+this.sortDescriptions().k().count());var b=0;for(var c=0;c<this.groupDescriptions().k().count();c++){a[b]=this.groupDescriptions().k().item(c).propertyName();b++}for(var d=0;d<this.sortDescriptions().k().count();d++){a[b]=this.sortDescriptions().k().item(d).propertyName();b++}return a},g:function(){var a=new Array(this.groupDescriptions().k().count());var b=0;for(var c=0;c<this.groupDescriptions().k().count();c++){a[b]=this.groupDescriptions().k().item(c).propertyName();b++}return a},bt:function(a,b,c){this.z.x(a)},x:function(a,b,c){return this.z.i(a,this.dataSource(),b,c,this.dataSource().sectionHeaderDisplayMode(),this.ar())},setPinnedKeys:function(a){this.a3=new $$4.x(Array,0);for(var b=0;b<a.count();b++){this.a3.add(a.__inner[b])}},b2:function(){this.a4.clear();if(this.updateNotifier()!=null){this.updateNotifier().notifyClearItems()}},notifySetItem:function(a,b,c){if(this.a0!=null){this.b8(b);this.bo(c)}else{this.b9(a,b);this.bp(a,c)}},bp:function(a,b){if(!this.ax(b)){return}var c=this.a9(a);this.b3(c,b)},b3:function(a,b){this.b0(a,b);this.ce(a,b);this.cj(a,b)},b0:function(a,b){if(this.ah){var c=this.z.e(a);if(c==null){c=this.z.d()}var d=c.v();var e=true;if(a>=c._af&&a<=c._af+(d-1)+c._ah+c._aa){if(!this.ai(c,b,this.a4.__inner[c._af])){c=this.z.e(c._af-1);if(c==null){c=this.z.c();c._af++}e=false}else{a=c._af+d+c._ah+c._aa}}if(e&&!c.p()){return}c._ad++;this.z.ac(c,1,0);if(this.ai(c,b,this.a4.__inner[c._af])){if(!c.p()){c._ad--;this.z.ac(c,-1,0);return}if(a>=c._ad-c._u-c._ag&&a<=c._ad){a=c._ad-c._u-c._ag}}}this.a4.insert1(a,b);if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(a,b)}},ce:function(a,b){var c=null;if(this.ah){c=this.z.e(a)}else{c=this.z.t().__inner[0]}if(c==null){if(this.ah&&a==0){c=this.z.c()}else{c=this.z.d()}}if(this.ai(c,b,this.a4.__inner[c._af])){this.z.z(c,1);if(this.shouldEmitShiftedRows()&&c.p()){var d=this.bi(c,b);if(d!=-1&&this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(d,this.a4.__inner[d])}}}else{var e=this.z.e(a-1);if(e!=null&&this.ai(e,b,this.a4.__inner[e._af])){this.z.z(e,1);if(this.shouldEmitShiftedRows()&&e.p()){var f=this.bi(e,b);if(f!=-1&&this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(f,this.a4.__inner[f])}}}else{var g=false;if(a<=c._af){g=true}var h=0;var i=null;var j=null;var k=this.f();var l=this.g();var m=this.z.b(this.dataSource(),b,l,this.sectionHeaderDisplayMode(),this.ar());m._af=a;m._ad=a;m._ae=g?c._ae:c._ae+1;this.z.af(m,g);for(var n=0;n<c._f.length;n++){if(c._f[n].equals(m._f[n])&&!c._c[n]){this.z.z(c,1);return}}this.z.aa(m._ae,m);if(this.shouldEmitSectionHeaders()){var o=this.bc(m,a,k,l,false);m._ad+=o;h+=o;i=this.a4.__inner[a];if(!g){c._ad--}}if(m.p()){if(this.shouldEmitShiftedRows()){for(var p=0;p<this.a3.count();p++){if(this.primaryKeyComparer().compareToKey(b,this.a3.__inner[p])==0){this.bf(m,b,false);h++;break}}}}else{this.a4.removeAt(a+h);m._ad--;h--}if(this.shouldEmitSectionFooters()){var q=this.bb(a+(h-1),b,k,l);if(q>1){m._ad+=q}h+=q;j=this.a4.__inner[a+(h-1)]}this.z.ad(m,h,h);this.b7(m);if(m.p()){this.z.z(m,1)}if(this.updateNotifier()!=null){if(i!=null){this.updateNotifier().notifyInsertItem(a,i)}if(j!=null){this.updateNotifier().notifyInsertItem(a+(h-1),j)}}}}},cm:function(a){var b=this.a4.indexOf1(a);if(b>=0){var c=this.a4.__inner[b-1];var d=$b($$t.$cj.$type,c);var e=this.f();for(var f=0;f<e.length;f++){if(d==null){a.setValue(e[f],this.dataSource().getItemProperty(c,e[f]))}else{a.setValue(e[f],d.getValue(e[f]))}}}},b7:function(a){var b=false;var c=false;if(a._ae>0){var d=this.z.t().__inner[a._ae-1];var e=0;for(var f=0,g=0;f<a._e.length;f++,g++){if(!b&&d._f[f].equals(a._f[f])){this.a4.removeAt(a._af+g);a._ad--;this.z.ac(a,-1,-1);if(this.includeSummaryRowsInSection()&&(this.summaryScope()==2||this.summaryScope()==0)){for(var h=0;h<this.a8;h++){var i=$b($$t.$cj.$type,this.a4.__inner[a._af-1]);if(i!=null&&i.rowType()==5&&i.level()==f+1){this.a4.removeAt(a._af-1);d._ad--;this.z.ac(d,-1,-1);this.a4.insert1(a._ad+1,i);e++;this.cm(i)}}}a._a[f]=null;a._b[f]=0;a._c[f]=true;if(d._a[f]!=null){a.z(d._ae)}g--;c=true}else{b=true;a._b[f]=g;if(e>0){a._ad+=e;this.z.ac(a,e,e);a._h[f]=a._ad-(e-1)}else{a._h[f]=a._ad+1}}}if(a.z()==-1&&c){a.z(d.z())}}if(a._ae<this.z.t().count()-1){b=false;c=false;var j=this.z.t().__inner[a._ae+1];for(var k=0,l=0;k<a._e.length;k++,l++){if(!b&&j._f[k].equals(a._f[k])){if(j._a[k]!=null){this.a4.removeAt(j._af+l);j._ad--;this.z.ac(j,-1,-1);a.al(k,-1);a._i[k]=j._i[k];a._d[k]=j._d[k];if(this.includeSummaryRowsInSection()&&(this.summaryScope()==2||this.summaryScope()==0)){var m=j._g[k]._a[0];var n=this.a4.indexOf1(m);a._h[k]=n;var o=this.z.e(n);var p=j._g[k]._a.length;for(var q=0;q<p;q++){j._g[k]._a[q]=null;this.a4.removeAt(n);o._ad--;if(this.isSectionSummaryRowsAtBottom()){o._ag--}else{o._ah--}}this.z.ac(o,-p,-p);a.al(k,-p)}j._h[k]=-1;j._d[k]=0;j._i[k]=null;j._g[k]=null;j._a[k]=null;j._b[k]=0;j._c[k]=true;c=true}l--}else{b=true;j._b[k]=l;if(a._a[k]!=null&&a._h[k]==-1){a._h[k]=a._ad+1}}}}},ai:function(a,b,c){if(this.groupDescriptions().k().count()==0){return true}if(this.groupComparer().compare(b,c)==0){return true}return false},h:function(a,b){var c=new Array(a.length);for(var d=0;d<c.length;d++){c[d]=this.dataSource().getItemProperty(b,a[d])}return c},at:function(a,b){if(a==null&&b==null){return true}if(a==null&&b!=null){return false}if(a!=null&&b==null){return false}return a.equals(b)},a9:function(a){if(this.groupDescriptions().k().count()==0&&this.a3.count()==0&&this.s==null&&this.n.actualCount()==this.a4.count()){return a}var b=0;var c=0;var d=this.a4.count();while(b<a&&c<d){while(c<d){var e=this.a4.__inner[c];var f=false;var viewItem_=e;if(viewItem_.$$isSpecialRow!==undefined){f=true}if(!f){break}c++}var g=this.n.getItemAtIndex(b);if(this.at(g,this.a4.__inner[c])){c++;b++}else{b++}}return c},b9:function(a,b){var c=this.a9(a);if(c<this.a4.count()){if(this.at(b,this.a4.__inner[c])){this.b4(c,b)}}},b4:function(a,b){this.a4.removeAt(a);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(a,b)}var c=this.y(a,b);this.ck(a,b,c)},y:function(a,b){var c=null;if(this.ah){c=this.z.e(a)}else{c=this.z.t().__inner[0]}if(c!=null){this.z.z(c,-1);if(c.p()){c._ad--;this.z.ac(c,-1,0);if(this.shouldEmitShiftedRows()){for(var d=0;d<c._aa;d++){var e=0;if(this.shouldEmitSectionHeaders()){e=1}e+=c._ah;var f=this.a4.__inner[c._af+d+e];var g=null;var item_=f;if(item_!=null&&item_.$$isSpecialRow!==undefined){g=f}if(g!=null){if(g.targetRow()==b){this.a4.removeAt(c._af+d+e);c._ad--;c._aa--;c._t--;this.z.ac(c,-1,-1);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(c._af+d+e,g)}}}}}}if(this.ah&&!c.m()&&this.aj(c)){var h=0;if(this.z.p(c)){var i=c.w();var j=i;var k=this.groupDescriptions().k().count();var l=this.g();var m=this.z.t().__inner[c._ae+1];for(var n=0;n<c._f.length;n++){if(!c._f[n].equals(m._f[n])){j=n;break}}if(this.shouldEmitSectionHeaders()){if(c._c[j-1]){for(var o=j;o<k;o++){if(c._g[o]!=null){for(var p=0;p<c._g[o]._a.length;p++){var q=c._g[o]._a[p];if(q!=null){var r=this.a4.indexOf1(q);if(r>=0){this.a4.removeAt(r);c._ad--;h++;if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(r,q)}if(!this.isSectionSummaryRowsAtBottom()){for(var s=o+1;s<c._b.length;s++){c._b[s]--}}}}}}var t=c._af+c._b[o];var u=$b($$t.$cj.$type,this.a4.__inner[t]);if(u!=null&&u.rowType()==1){c._a[o]=null;this.a4.removeAt(t);c._ad--;h++;if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(t,u)}for(var v=o+1;v<c._b.length;v++){c._b[v]--}}if(!c._c[o]){break}}}}c._k=m;for(var w=0;w<j;w++){if(this.includeSummaryRowsInSection()&&!this.isSectionSummaryRowsAtBottom()&&(this.summaryScope()==2||this.summaryScope()==0)){m._af-=this.shouldEmitSectionHeaders()?this.a8+1:this.a8}else if(this.shouldEmitSectionHeaders()){m._af--}}m._d[i]=c._d[i];m._a[i]=c._a[i];m._c[i]=c._c[i];m.z(c.z());for(var x=i;x<k;x++){m._g[x]=c._g[x]}m._b[i]=c._b[i];for(var y=i,z=c._b[i];y<k;y++){m._b[y]=z;if(this.shouldEmitSectionHeaders()){z++}if(!this.isSectionSummaryRowsAtBottom()){if(m._g[y]!=null){z+=m._g[y]._a.length}}var aa=m._af-h+m._b[y];var ab=$b($$t.$cj.$type,this.a4.__inner[aa]);if(ab!=null&&ab.rowType()==1){for(var ac=0;ac<m._f.length;ac++){ab.setValue(m._e[ac],m._f[ac])}}}}else{if(this.shouldEmitSectionHeaders()){for(var ad=c._af;ad<=c._ad;ad++){var ae=$b($$t.$cj.$type,this.a4.__inner[ad]);if(ae!=null&&ae.rowType()==1){this.a4.removeAt(ad);c._ad--;h++;ad--;if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(ad,ae)}}}}for(var af=0;af<c._g.length;af++){if(c._g[af]==null){continue}for(var ag=0;ag<c._g[af]._a.length;ag++){var ah=c._g[af]._a[ag];if(ah!=null){var ai=this.a4.indexOf1(ah);this.a4.removeAt(ai);c._ad--;h++;if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(ai,ah)}}}}if(c.z()>=0){var aj=c._ad-c._af+1;if(aj>0){var ak=this.a4.__inner[c._af-1];var al=$b($$t.$cj.$type,ak);var am=this.f();for(var an=0;an<aj;an++){var ao=c._af+an;var ap=$b($$t.$cj.$type,this.a4.__inner[ao]);if(ap!=null){for(var aq=0;aq<am.length;aq++){if(al==null){ap.setValue(am[aq],this.dataSource().getItemProperty(ak,am[aq]))}else{ap.setValue(am[aq],al.getValue(am[aq]))}}}}var ar=this.z.t().__inner[c._ae-1];ar._ad+=aj}}}if(this.shouldEmitSectionFooters()){for(var as=0;as<c._a.length;as++){if(!c._c[as]){break}if(c._a[as]!=null){var at=this.a4.__inner[c._ad];this.a4.removeAt(c._ad);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(c._ad,at)}h++;c._ad--}}}this.z.ae(c._ae);this.z.ab(c,-h,-h);c._o=true}}return c},aj:function(a){for(var b=a._af;b<=a._ad;b++){if(this.dataSource().getRowType(b)==0){return false}}return true},bo:function(a){if(this.ax(a)){var b=this.a4.binarySearch1(a,this.a0);if(b<0){b=~b}this.b3(b,a)}},a3:null,pinRow:function(a){this.a3.add(a);var b=this.dataSource().indexOfKey(a);var c=this.dataSource().getItemAtIndex(b);if(b==-1){return}if(this.shouldEmitShiftedRows()){var d=this.z.e(b);var e=this.bi(d,this.a4.__inner[b]);if(this.updateNotifier()!=null){this.updateNotifier().notifyInsertItem(e,this.a4.__inner[e])}}},unpinRow:function(a){if(this.a3.remove(a)){var b=this.dataSource().indexOfKey(a);var c=this.dataSource().getItemAtIndex(b);if(b==-1){return}var d=this.z.e(b);var e=d._af;if(this.shouldEmitSectionHeaders()){e+=d.v()}if(this.shouldEmitShiftedRows()){var f=this.u(e,this.a4.__inner[b],d._aa,this.f());if(f!=null){d._ad--;d._aa--;d._t--;this.z.ac(d,-1,-1);if(this.updateNotifier()!=null){this.updateNotifier().notifyRemoveItem(f._a,f.item())}}}}},u:function(a,b,c,d){for(var e=a+(c-1);e>=a;e--){if($b($$t.$cj.$type,this.a4.__inner[e])!==null){var f=this.a4.__inner[e];if(f.rowType()==3){var g=f.targetRow();if(g==b){this.a4.removeAt(e);return function(){var $ret=new $$t.cz;$ret.item(f);$ret._a=e;return $ret}()}}}}return null},b8:function(a){var b=this.a4.binarySearch1(a,this.a0);if(b<0){b=~b}if(b>=0){var c=this.a4.count();var d=0;while(d<c){var e=b-d;var f=b+d;if(e<0&&f>c-1){break}if(e>=0&&e<c){if(this.a4.__inner[e]!=null&&this.a4.__inner[e].equals(a)){b=e;break}}if(f<c){if(this.a4.__inner[f]!=null&&this.a4.__inner[f].equals(a)){b=f;break}}d++}if(b<0||b>c-1){return}var g=this.a4.__inner[b];if(g==null&&a==null){this.a4.removeAt(b);this.aa.notifyRemoveItem(b,a);var h=this.y(b,a);this.updateSummaries(b,a,false,h);return}if(g==null){return}if(g.equals(a)){this.a4.removeAt(b);this.aa.notifyRemoveItem(b,a);var i=this.y(b,a);this.updateSummaries(b,a,false,i)}else{if(b-1>=0){var j=this.z.e(b-1);if(j!=null&&!j.p()){b=b-1}}this.y(b,a)}}else{var k=this.a4.count();for(var l=0;l<k;l++){var m=this.a4.__inner[l];if(m==null&&a==null){this.a4.removeAt(l);break}if(m==null){continue}if(m.equals(a)){this.a4.removeAt(l);this.aa.notifyRemoveItem(l,a);var n=this.y(l,a);this.ck(l,a,n);break}}}},ax:function(a){if(this.s==null){return true}return this.s(a)},notifyClearItems:function(){},notifyInsertItem:function(a,b){if(this.a0!=null){this.bo(b)}else{this.bp(a,b)}},notifyRemoveItem:function(a,b){if(this.a0!=null){this.b8(b)}else{this.b9(a,b)}},ay:null,setIsRowExpandedAtIndex:function(a,b){var c=this.z.e(a);if(c==null){c=this.z.d()}for(var d=0,e=0;d<c._a.length;d++){if(c._a[d]!=null){if(a==c._af+c._b[d]){var f=c._a[d];if(this.ay.containsKey(f)){if(this.ay.item(f)!=b){var g=this.ay.item(f);if(b==this.ar()){this.ay.remove(f)}else{this.ay.item(f,b)}this.dataSource().queueAutoRefresh();if(this.expansionNotifier()!=null){this.expansionNotifier().notifyRowExpansionChanged(a,g,b)}}}else if(b!=this.ar()){this.ay.add(f,b);this.dataSource().queueAutoRefresh();if(this.expansionNotifier()!=null){this.expansionNotifier().notifyRowExpansionChanged(a,this.ar(),b)}}}e++}}},getExpansionStateForRow:function(a){var b=this.z.e(a);if(b==null){b=this.z.d()}for(var c=0,d=0;c<b._a.length;c++){if(b._a[c]!=null){if(a==b._af+b._b[c]){return b._c[c]}d++}}return true},al:function(a){if(!this.isSectionCollapsable()){return true}return this.ay.containsKey(a)?this.ay.item(a):this.ar()},bm:function(a){var b="";for(var c=0;c<a._e.length;c++){b+=a._e[c]+":"+a._f[c]}return b},bn:function(a,b){if(this.dataSource().sectionHeaderDisplayMode()==0){return this.bm(a)}var c="";for(var d=0;d<b+1;d++){c+=a._e[d]+":"+a._f[d]+":"}return c},br:function(a){if(this.summaryScope()==3||a!=null&&this.summaryScope()==1||a==null&&this.summaryScope()==2){return}if(a==null&&(this.e==null||this.e.length!=this.summaryDescriptions().k().count())){this.e=new Array(this.summaryDescriptions().k().count())}if(a!=null){var b=a.v();for(var c=b-1;c>=0;c--){for(var d=0;d<this.summaryDescriptions().k().count();d++){var e=this.summaryDescriptions().k().item(d);this.c[c][d].beginCalculation(this.dataSource(),e.propertyName())}}}else{if(this.d==null||this.d.length!=this.summaryDescriptions().k().count()){this.d=new Array(this.summaryDescriptions().k().count())}for(var f=0;f<this.summaryDescriptions().k().count();f++){var g=this.summaryDescriptions().k().item(f);if(this.d[f]==null||this.d[f].operand()!=g.operand()){this.d[f]=g.d()}this.d[f].beginCalculation(this.dataSource(),g.propertyName())}}},bu:function(a){if(this.summaryScope()==3||a!=null&&this.summaryScope()==1||a==null&&this.summaryScope()==2){return}if(a!=null){var b=a.v();for(var c=b-1;c>=0;c--){var d=this.a4.__inner[a._af+c];for(var e=0;e<this.summaryDescriptions().k().count();e++){var f=this.summaryDescriptions().k().item(e);var g=this.c[c][e].endCalculation();g.summaryIndex(e);if(d!=null){d.summaryResults()[c]=g}}}}else{for(var h=0;h<this.summaryDescriptions().k().count();h++){var i=this.d[h].endCalculation();i.summaryIndex(h);this.e[h]=i}}},bq:function(a,b){if(this.summaryScope()==3||a!=null&&this.summaryScope()==1||a==null&&this.summaryScope()==2){return}if(b!=null){if(a!=null){for(var c=0;c<this.c.length;c++){if(this.c[c]!=null){for(var d=0;d<this.c[c].length;d++){if(this.c[c][d]!=null){this.c[c][d].aggregate(b)}}}}}else{for(var e=0;e<this.summaryDescriptions().k().count();e++){this.d[e].aggregate(b)}}}},cg:function(a,b,c,d,e){var f=a._i[d][e];var g=b.itemAdded(c,f,a._d[d]);a.an(d,e,g);if(this.shouldEmitSectionHeaders()){if(a._a[d]!=null){var h=$b($$t.$cj.$type,this.a4.__inner[a._af+a._b[d]]);if(h!=null){h.summaryResults()[e]=a._i[d][e]}}}},cf:function(a,b,c,d,e,f){var g=a._i[d][e];var h=a._d[d];var i=f?b.itemAdded(c,g,h):b.itemRemoved(c,g,h);a.an(d,e,i);if(this.shouldEmitSectionHeaders()){if(!a._o&&a._a[d]!=null){var j=$b($$t.$cj.$type,this.a4.__inner[a._af+a._b[d]]);if(j!=null){j.summaryResults()[e]=a._i[d][e]}}}},updateSummaries:function(a,b,c,d){if(this.summaryDescriptions().k().count()==0){return}if(d==null){d=this.getSection(a);if(d==null){d=this.z.d()}}var e=false;var f=false;var g=false;for(var h=0;h<this.summaryDescriptions().k().count();h++){var i=this.summaryDescriptions().k().item(h);if(this.summaryScope()==0||this.summaryScope()==1){var j=null;if(c){j=this.d[h].itemAdded(b,this.e[h],this.n.actualCount())}else{j=this.d[h].itemRemoved(b,this.e[h],this.n.actualCount())}j.summaryIndex(h);this.e[h]=j;if(this.d[h].isSummaryDirty()){e=true}else{f=true}}if(this.summaryScope()==0||this.summaryScope()==2){if(d!=null&&d._i!=null){var k=i.d();k.dataSource(this.dataSource());k.propertyName(i.propertyName());
k.propertyType(this.dataSource().resolveSchemaPropertyType(i.propertyName()));var l=this.g();var m=d.w();for(var n=m;n<l.length;n++){this.cf(d,k,b,n,h,c);if(k.isSummaryDirty()){e=true}g=true}var o=d.z();while(o!=-1){var p=this.z.t().__inner[o];var q=p.w();for(var r=q;r<m;r++){this.cf(p,k,b,r,h,c);if(k.isSummaryDirty()){e=true}}o=p.z();m=m-1}}}}if(e){this.dataSource().queueAutoRefresh()}else{if(f){var s=$$t.$cg.r(this.e);this.cd(s)}if(g){this.ch(d,null);var t=d.z();while(t!=-1){var u=this.z.t().__inner[t];this.ch(u,null);t=u.z()}}}},updateSummary:function(a,b,c,d,e){var f=a;var g=this.summaryDescriptions().k().item(a);if(g==null){return}if(e==null){e=this.getSection(b);if(e==null){e=this.z.d()}}var h=false;var i=false;var j=false;if(this.summaryScope()==0||this.summaryScope()==1){var k=null;if(d){k=this.d[f].itemAdded(c,this.e[f],this.n.actualCount())}else{k=this.d[f].itemRemoved(c,this.e[f],this.n.actualCount())}k.summaryIndex(f);this.e[f]=k;if(this.d[f].isSummaryDirty()){h=true}else{i=true}}if(this.summaryScope()==0||this.summaryScope()==2){if(e!=null&&e._i!=null){var l=g.d();l.dataSource(this.dataSource());l.propertyName(g.propertyName());l.propertyType(this.dataSource().resolveSchemaPropertyType(g.propertyName()));var m=this.g();var n=e.w();for(var o=n;o<m.length;o++){this.cf(e,l,c,o,f,d);if(l.isSummaryDirty()){h=true}j=true}var p=e.z();while(p!=-1){var q=this.z.t().__inner[p];var r=q.w();for(var s=r;s<n;s++){this.cf(q,l,c,s,f,d);if(l.isSummaryDirty()){h=true}}p=q.z();n=n-1}}}if(h){this.dataSource().queueAutoRefresh()}else{if(i){var t=$$t.$cg.r(this.e);this.cd(t)}if(j){this.ch(e,null);var u=e.z();while(u!=-1){var v=this.z.t().__inner[u];this.ch(v,null);u=v.z()}}}},cj:function(a,b){if(this.summaryDescriptions().k().count()==0){return}var c=this.getSection(a);if(c==null){c=this.z.d()}var d=null;if(c!=null){d=$b($$t.$cj.$type,this.a4.__inner[c._af])}var e=false;var f=false;var g=false;for(var h=0;h<this.summaryDescriptions().k().count();h++){var i=this.summaryDescriptions().k().item(h);if(this.summaryScope()==0||this.summaryScope()==1){var j=this.d[h].itemAdded(b,this.e[h],this.n.actualCount());j.summaryIndex(h);this.e[h]=j;if(this.d[h].isSummaryDirty()){e=true}else{f=true}}if(this.summaryScope()==0||this.summaryScope()==2){if(c!=null&&c._i!=null){var k=i.d();k.dataSource(this.dataSource());k.propertyName(i.propertyName());k.propertyType(this.dataSource().resolveSchemaPropertyType(i.propertyName()));var l=this.g();var m=c.w();for(var n=m;n<l.length;n++){this.cg(c,k,b,n,h);if(k.isSummaryDirty()){e=true}g=true}var o=c.z();while(o!=-1){var p=this.z.t().__inner[o];var q=p.w();for(var r=q;r<m;r++){this.cg(p,k,b,r,h);if(k.isSummaryDirty()){e=true}}o=p.z();m=m-1}}}}if(e){this.dataSource().queueAutoRefresh()}else{if(f){var s=$$t.$cg.r(this.e);this.cd(s)}if(g){this.ch(c,null);var t=c.z();while(t!=-1){var u=this.z.t().__inner[t];this.ch(u,null);t=u.z()}}}},ck:function(a,b,c){if(this.summaryDescriptions().k().count()==0){return}var d=null;if(c!=null){d=$b($$t.$cj.$type,this.a4.__inner[c._af])}var e=false;var f=false;var g=false;for(var h=0;h<this.summaryDescriptions().k().count();h++){var i=this.summaryDescriptions().k().item(h);if(this.summaryScope()==0||this.summaryScope()==1){var j=this.d[h].itemRemoved(b,this.e[h],this.dataSource().actualCount());j.summaryIndex(h);this.e[h]=j;if(this.d[h].isSummaryDirty()){e=true}else{f=true}}if(this.summaryScope()==0||this.summaryScope()==2){if(c!=null&&c._i!=null){var k=i.d();k.dataSource(this.dataSource());k.propertyName(i.propertyName());k.propertyType(this.dataSource().resolveSchemaPropertyType(i.propertyName()));var l=this.g();var m=c.w();for(var n=m;n<l.length;n++){this.cf(c,k,b,n,h,false);if(k.isSummaryDirty()){e=true}g=true}var o=c.z();while(o!=-1){var p=this.z.t().__inner[o];var q=p.w();for(var r=q;r<m;r++){this.cf(p,k,b,r,h,false);if(k.isSummaryDirty()){e=true}}o=p.z();m=m-1}}}}if(e){this.dataSource().queueAutoRefresh()}else{if(f){var s=$$t.$cg.r(this.e);this.cd(s)}if(g){this.ch(c,null);var t=c.z();while(t!=-1){var u=this.z.t().__inner[t];this.ch(u,null);t=u.z()}}}},ch:function(a,b){var $self=this;if(this.summaryScope()==2||this.summaryScope()==0){if(this.includeSummaryRowsInSection()){if(!a._o&&!a.n()){if(this.isSectionSummaryRowsAtBottom()){this.by(a,true)}else{this.bz(a,true)}}else{a.am(function(c){if($self.updateNotifier()!=null){var d=$self.a4.indexOf1(c);$self.updateNotifier().notifySetItem(d,c,c)}})}}else{for(var c=0;c<a._i.length;c++){var d=a._af+a._b[c];var e=this.a4.__inner[d];if(e!=null){e.summaryResults(a._i[c]);if(this.updateNotifier()!=null){this.updateNotifier().notifySetItem(d,e,e)}}}}}},cd:function(a){for(var b=0;b<a.count();b++){var c=new Array(a.__inner[b].count());a.__inner[b].values().copyTo(c,0);var d=this.a4.count()-a.count()+b;var e=$b($$t.$cj.$type,this.a4.__inner[d]);e.summaryResults(c);if(this.updateNotifier()!=null){this.updateNotifier().notifySetItem(d,e,e)}}},$type:new $.ig.Type("RearrangedListView",$.ig.$ot,[$$t.$a5.$type])},true);$c("SectionDataStartIndexComparer:cx","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){return $w(a._af,b._af)},$type:new $.ig.Type("SectionDataStartIndexComparer",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$cg.$type)])},true);$c("SectionDataUndisplacedStartIndexComparer:cy","Object",{init:function(){$.ig.$op.init.call(this)},compare:function(a,b){return $w(a.ac(),b._af)},$type:new $.ig.Type("SectionDataUndisplacedStartIndexComparer",$.ig.$ot,[$$6.$ad.$type.specialize($$t.$cg.$type)])},true);$c("RemovedShiftedRowInfo:cz","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,_item:null,item:function(a){if(arguments.length===1){this._item=a;return a}else{return this._item}},$type:new $.ig.Type("RemovedShiftedRowInfo",$.ig.$ot)},true);$c("VirtualDataSource:c0","BaseDataSource",{init:function(){this.d2=50;this.d1=200;this._actualPageSizePopulated=false;this.dm=50;this.de=false;this.dd=new $.ig.LRUCache$2($.ig.$op.$type,$$t.$bi.$type,0,200);this.dk=new $$4.h($.ig.$op.$type,Array,0);this.dl=new $$4.h($$0.$aw.$type,$$0.$aw.$type,0);this.dc=new $$t.ct;this.cu=null;this.dv=-1;this.dn=-1;this.dx=-1;this.dq=-1;this.dy=-1;this.dr=-1;this.dw=-1;this.dp=-1;this.d0=-1;this.dz=-1;this.dt=-1;this.ds=-1;this.du=-1;this.dj=new $$4.h(String,$$0.$aq.$type,0);$$t.$cf.init.call(this);this._da=new $$t.co;this._da.pageCandidatesSink(this);this._da.pageSize(this.actualPageSize());this._da.sectionMap(this.dc);this.executionContext(new $$t.b);this._da.executionContext(this.executionContext());this.isReadOnly(true)},cx:null,dg:false,d3:0,isSectionCollapsable:function(a){if(arguments.length===1){$$t.$cf.isSectionCollapsable.call(this,a);return a}else{if(!this.isSectionContentVisible()){return true}return $$t.$cf.isSectionCollapsable.call(this)}},isSectionExpandedDefault:function(a){if(arguments.length===1){$$t.$cf.isSectionExpandedDefault.call(this,a);return a}else{if(!this.isSectionContentVisible()){return false}if(this.isSectionCollapsable()){return $$t.$cf.isSectionExpandedDefault.call(this)}return true}},_da:null,actualBaseDataProvider:function(){return this.actualDataProvider()},c1:null,dataProvider:function(a){if(arguments.length===1){var b=this.c1;this.c1=a;if(b!=this.c1){this.onPropertyUpdated("DataProvider",b,this.c1)}return a}else{return this.c1}},c0:null,actualDataProvider:function(a){if(arguments.length===1){var b=this.c0;this.c0=a;if(b!=this.c0){this.onPropertyUpdated("ActualDataProvider",b,this.c0)}return a}else{if(this.c0==null){this.actualDataProvider(this.resolveDataProvider())}return this.c0}},d2:0,pageSizeRequested:function(a){if(arguments.length===1){var b=this.d2;this.d2=a;if(b!=this.d2){this.onPropertyUpdated("PageSizeRequested",b,this.d2)}return a}else{return this.d2}},resetCache:function(){if(this.c6()!=null){this.c6().resetCache()}this.resetCacheOverride()},resetCacheOverride:function(){this.dd.i()},d1:0,maxCachedPages:function(a){if(arguments.length===1){var b=this.d1;this.d1=a;if(b!=this.d1){this.onPropertyUpdated("MaxCachedPages",b,this.d1)}return a}else{return this.d1}},_actualPageSizePopulated:false,dm:0,actualPageSize:function(a){if(arguments.length===1){var b=this.dm;this.dm=a;if(b!=this.dm){this.onPropertyUpdated("ActualPageSize",b,this.dm)}return a}else{return this.dm}},de:false,isSortingSupported:function(){if(this.externalDataSource()!=null&&!this.de){this.de=true;var a=this.externalDataSource().isSortingSupportedOverride();this.de=false;return a}return false},isFilteringSupported:function(){if(this.externalDataSource()!=null&&!this.de){this.de=true;var a=this.externalDataSource().isFilteringSupportedOverride();this.de=false;return a}return false},isGroupingSupported:function(){if(this.externalDataSource()!=null&&!this.de){this.de=true;var a=this.externalDataSource().isGroupingSupportedOverride();this.de=false;return a}return false},c5:null,c6:function(a){if(arguments.length===1){this.c5=a;this.actualDataProvider(this.resolveDataProvider());return a}else{return this.c5}},resolveDataProvider:function(){if(this.c6()==null){return null}return this.c6().resolveDataProvider()},propertyUpdatedOverride:function(a,b,c){$$t.$cf.propertyUpdatedOverride.call(this,a,b,c);switch(a){case"DataProvider":this.actualDataProvider(this.dataProvider());this.queueAutoRefresh();break;case"ExecutionContext":this._da.executionContext(this.executionContext());break;case"ActualDataProvider":this.actualDataProvider().pageSizeRequested(this.pageSizeRequested());this.actualDataProvider().pageLoaded(this.eo.runOn(this));this.actualDataProvider().batchCompleted(this.en.runOn(this));this.queueAutoRefresh();break;case"PageSizeRequested":this.actualPageSize(this.pageSizeRequested());if(this.actualDataProvider()!=null){this.actualDataProvider().pageSizeRequested(this.pageSizeRequested())}this.queueAutoRefresh();break;case"ActualPageSize":this._da.pageSize(this.actualPageSize());this.queueAutoRefresh();break;case"FirstVisibleIndexRequested":this._da.firstVisibleIndexRequested(this.firstVisibleIndexRequested());break;case"LastVisibleIndexRequested":this._da.lastVisibleIndexRequested(this.lastVisibleIndexRequested());break;case"ActualCount":if(this.actualDataProvider()!=null&&!this.dc.q()){this._da.fullCount(this.actualDataProvider().actualCount())}else{this._da.fullCount(this.actualCount())}this.queueAutoRefresh();break;case"MaxCachedPages":this.dd.h(this.maxCachedPages());break}},d7:function(a){if(this._ao&&this.dc.q()){var b=this.db(a);if(b==null){b=this.dc.d()}return a-b._t}return a},eo:function(a,b,c){var $self=this;var d=this.executionContext();if(d!=null){d.execute(function(){$self.eu(a,b,c)})}else{this.eu(a,b,c)}},eu:function(a,b,c){if(a==null){b=this.resolveFullCount(b);if(this.actualCount()!=b){this.actualCount(b)}return}if(c!=this.actualPageSize()&&!this._actualPageSizePopulated){this.actualPageSize(c)}this._actualPageSizePopulated=true;var d=a.pageIndex();this.ep(d);this.dd.item(d,a);var e=a.schema();if(e!=null){this.actualSchema(e)}var f=a.getSummaryInformation();if(this.summaryDescriptions().k().count()>0&&this.cy==null&&f!=null){this.cy=f;for(var g=0;g<this.cy.length;g++){this.cy[g].summaryIndex(this.d5(this.cy[g]))}var h=$$t.$cg.r(this.cy);this.d3=h.count()}var i=a.getGroupInformation();if(this.groupDescriptions().k().count()>0&&this.ct==null&&i!=null){this.ct=i;this.et();this.dg=false}b=this.resolveFullCount(b);if(this.actualCount()!=b){this.actualCount(b)}this.es(a)},d5:function(a){for(var b=0;b<this.summaryDescriptions().k().count();b++){var c=this.summaryDescriptions().k().item(b);if(c.propertyName()==a.propertyName()&&c.operand()==a.operand()){return b}}return-1},resolveFullCount:function(a){if(this.ct!=null){return this.dc.u()+this.d3}return a+this.d3},et:function(){var a=0;var b=0;var c=this.shouldEmitSectionHeaders();var d=this.shouldEmitSectionFooters();for(var e=0;e<this.ct.length;e++){var f=new $$t.cg;var g=b;var h=this.ct[e].endIndex()-this.ct[e].startIndex();f._af=a;f._ae=e;f._d=new Array(this.groupDescriptions().k().count());for(var i=0;i<this.groupDescriptions().k().count();i++){f._d[i]=0}f._ad=a+h;f._t=0;f._e=this.ct[e].groupKeyProperties();f._f=this.ct[e].groupKeyValues();f._h=new Array(0);f.ai(this.sectionHeaderDisplayMode(),this.isSectionExpandedDefault());this.em(f,e==0);if(d){f._u=f._c.length}var j=0;f._i=new Array(this.groupDescriptions().k().count());if(this.summaryScope()==0||this.summaryScope()==2){if(this.ct[e].summaryResults()!=null){f._i[this.groupDescriptions().k().count()-1]=this.ct[e].summaryResults();if(f._i!=null){for(var k=0;k<f._i[this.groupDescriptions().k().count()-1].length;k++){var l=f._i[this.groupDescriptions().k().count()-1][k];l.summaryIndex(this.d5(l))}j=$$t.$cg.r(f._i[this.groupDescriptions().k().count()-1]).count()}}}if(this.includeSummaryRowsInSection()){if(this.isSectionSummaryRowsAtBottom()){f._ag=j}else{f._ah=j;g+=j}b+=j;f._ad+=j}if(d){b++}var m=0;f._b=new Array(f._c.length);if(f.z()>-1){var n=this.dc.t().__inner[f.z()];for(var o=0;o<n._f.length;o++){m=o;if(!n._f[o].equals(f._f[o])){break}}}for(var p=m;p<f._c.length;p++){b++;g++;f._ad++;var q=this.eg(f,p);f._a[p]=q;f._b[p]=p-m;if(this.dj.containsKey(q)){f._c[p]=this.dj.item(q)}else{f._c[p]=this.isSectionExpandedDefault()}if(!f._c[p]){var r=0;var s=f._c.length-1-p;f._ad-=r;b-=r;if(d){b--;f._u--}p+=s}}f._y=f.v();f._t=g;this.dc.z(f,h+1);if(!f.p()){var t=f.w();f._ad-=f._d[t]+j;b-=f._d[t]+j}a=f._ad+1;this.dc.t().add(f);f.q(this.dc.r(f))}var u=0;for(var v=0;v<this.dc.t().count();v++){var w=this.dc.t().__inner[v];if(this.shouldEmitSectionHeaders()){if(!w.q()){var x=w._ad-w._af+1;this.dc.ae(w._ae);this.dc.ab(w,-x,-x);v--;u++;continue}}if(w.z()>-1){w.z(w.z()-u)}}},cv:null,em:function(a,b){if(b){this.cv=new Array(this.groupDescriptions().k().count());for(var c=0;c<this.cv.length;c++){this.cv[c]=a}}if(this.sectionHeaderDisplayMode()==1){var d=false;var e=a._e.length;for(var f=0;f<e;f++){if(d){this.cv[f]=a;continue}var g=false;if(this.cv[f]._f[f]==null){g=a._f[f]!=null}else{g=!this.cv[f]._f[f].equals(a._f[f])}if(g){this.cv[f]=a;if(f-1>-1){var h=f-1;while(h>=0&&this.cv[h]._o){h=h-1}a.z(this.cv[h]._ae)}d=true}}}else{var i=false;for(var j=0;j<a._e.length;j++){if(this.cv[0]._f[j]==null){if(this.cv[0]._f[j]!=a._f[j]){i=true;break}continue}if(!this.cv[0]._f[j].equals(a._f[j])){i=true;break}}if(i){this.cv[0]=a}}},cw:null,el:function(a){},es:function(a){if(this.updateNotifier()!=null){var b=a.pageIndex()*this.actualPageSize();if(this.actualDataProvider()!=null){if(b>this.actualDataProvider().actualCount()){return}}var c=this.d6(b);var d=this.d6(b+a.count()-1);if(c>0&&this.getRowType(c-1)==1){c--}if(this.actualCount()==0&&a.count()==0){this.onClearItems()}else{this.updateNotifier().rangeActualized(c,d)}}},d6:function(a){if(this._ao&&this.dc.q()){var b=this.dc.g(a);if(b==null){b=this.dc.d()}if(!b.p()){return b._af}return a+b._t}return a},eq:function(a){a()},isVirtual:function(){return true},dd:null,dk:null,dl:null,df:false,ct:null,cy:null,isPlaceholderItem:function(a){var b=this.cz(a);var c=b[0];if(!this.dd.d(c)){if(b[1]==-1){return false}return true}return false},getItemAtIndex:function(a){if(a>=this.actualCount()-this.d3){return this.eb(a)}var b=this.cz(a);var c=b[0];if(!this.dd.d(c)){if(b[1]==-1){return this.eb(a)}return null}var d=this.dd.item(c);var e=b[1];if(e==-1){return this.eb(a)}return d.getItemAtIndex(e)},getItemFromKey:function(a){var b=this.indexOfKey(a);if(b>=0){return this.getItemAtIndex(b)}return null},eb:function(a){if(a>=this.actualCount()-this.d3){var b=new $$t.cj;b.rowType(4);b.level(0);var c=a-(this.actualCount()-this.d3);var d=$$t.$cg.r(this.cy);var e=new Array(d.__inner[c].count());d.__inner[c].values().copyTo(e,0);b.summaryResults(e);return b}var f=this.db(a);if(f!=null){var g=f.j(a);if(g==1||g==2){var h=new $$t.cj;h.rowType(g);h.summaryResults(f._i[f._i.length-1]);h.level(g==1?f.w()+(a-f._af):f._u-1-(f.w()+(a-(f._ad-f._u+1))));if(this.sectionHeaderDisplayMode()==0){for(var i=0;i<this.groupDescriptions().k().count();i++){h.setSectionValue(this.groupDescriptions().k().item(i).propertyName(),f._f[i]);h.setValue(this.groupDescriptions().k().item(i).propertyName(),f._f[i])}}else{if(h.level()>=0&&h.level()<this.groupDescriptions().k().count()){h.setSectionValue(this.groupDescriptions().k().item(h.level()).propertyName(),f._f[h.level()]);h.setValue(this.groupDescriptions().k().item(h.level()).propertyName(),f._f[h.level()])}}return h}else if(g==5){var j=new $$t.cj;j.rowType(5);j.level(f._c.length);var k=f.x(a);var l=$$t.$cg.r(f._i[f._i.length-1]);var m=new Array(l.__inner[k].count());l.__inner[k].values().copyTo(m,0);j.summaryResults(m);return j}}return null},cz:function(a){if(this._ao&&this.dc.q()){var b=false;var c=this.db(a);if(c==null){c=this.dc.d();if(this.cy.length>0&&a>c._ad){b=true}}var d=c._af;if(this.shouldEmitSectionHeaders()&&a>=d&&a<d+c.v()){b=true}if(a-(d+c.v()-1)<=c._aa+c._ah){b=true}if(this.shouldEmitSectionFooters()){if(a<=c._ad&&a>=c._ad-c._c.length-c._ag){b=true}}else if(c._ag>0){if(a>c._ad-c._ag&&a<=c._ad){b=true}}var e=a-c._t;var f=$.ig.truncate(Math.floor(e/this.actualPageSize()));var g=e%this.actualPageSize();if(b){g=-1}var h=new Array(2);h[0]=f;h[1]=g;return h}else{var i=$.ig.truncate(Math.floor(a/this.actualPageSize()));var j=a%this.actualPageSize();var k=new Array(2);k[0]=i;k[1]=j;return k}},dc:null,db:function(a){return this.dc.e(a)},getItemPropertyAtIndex:function(a,b){if(a>this.actualCount()-1-this.d3){return this.ec(a,b)}var c=this.cz(a);var d=c[0];if(!this.dd.d(d)){if(c[1]==-1){return this.ec(a,b)}return null}var e=this.dd.item(d);var f=c[1];if(f==-1){return this.ec(a,b)}if(this.ap()){var g=e.getItemAtIndex(f);var h=this.am(g,b);if(h){var i=this.a0(g,b);return i}}return e.getItemValueAtIndex(f,b)},ec:function(a,b){var c=this.eb(a);if($b($$t.$cj.$type,c)!==null){return c.getValue(b)}return null},er:function(a){if(!this.dl.containsKey(a)){this.dl.add(a,1)}else{this.dl.item(a,this.dl.item(a)+1)}},ep:function(a){if(this.dl.containsKey(a)){this.dl.item(a,this.dl.item(a)-1);if(this.dl.item(a)<=0){this.dl.remove(a);if(this.actualDataProvider()!=null){this.actualDataProvider().removePageRequest(a)}}}},addCandidate:function(a,b){var c=false;if(!this.dk.containsKey(a)){var d=new $$4.x($$0.$aw.$type,0);var e=this.transformPage(a);for(var f=0;f<e.length;f++){var g=e[f];if(!this.dd.d(g)){d.add(g);this.er(g);var h=this.dl.item(g);if(h==1&&this.actualDataProvider()!=null){this.actualDataProvider().addPageRequest(g,b)}c=true}}if(d.count()>0){this.dk.add(a,d.toArray())}}return c},removeCandidate:function(a){if(this.dk.containsKey(a)){for(var b=0;b<this.dk.item(a).length;b++){var c=this.dk.item(a)[b];this.ep(c)}this.dk.remove(a)}},transformPage:function(a){var b=[a];if(this._ao&&this.dc.q()){var c=a*this.actualPageSize();var d=c+this.actualPageSize()-1;var e=this.db(c);var f=new $$4.x($$0.$aw.$type,0);for(var g=c;g<=d;g++){if(e==null){break}if(g>e._ad){if(e._ae<this.dc.t().count()-1){e=this.dc.t().__inner[e._ae+1]}else{break}}if(!e.p()||g>=e._af&&g<=e._af+(e.v()-1)+e._aa){continue}var h=g-e._t;var i=$a(h,this.actualPageSize());if(!f.contains(i)){f.add(i)}}b=f.toArray()}return b},getUnrealizedCount:function(){var a=this.dd.g()*this.actualPageSize();var b=this.actualCount()-a;return b},onSetItemOverride:function(a,b,c){$$t.$cf.onSetItemOverride.call(this,a,b,c);var d=this.cz(a);var e=d[0];if(this.dd.d(e)){this.dd.j(e)}},refreshInternalOverride:function(){$$t.$cf.refreshInternalOverride.call(this);this._actualPageSizePopulated=false;var a=this.actualCount()!=0;this.df=true;if(!this.dg){this.resetCache();if(a){this.onClearItems()}this.ct=null;this.cy=null;this.d3=0;this.dc.v()}else{this.dg=false;if(a){this.onClearItems()}}this.ev();this._da.enqueueUpdate();this.df=false},ev:function(){if(this.actualDataProvider()!=null){var b=this.dk.values().getEnumerator();while(b.moveNext()){var a=b.current();for(var d=0;d<a.length;d++){var c=a[d];this.actualDataProvider().addPageRequest(c,1)}}}},onClearItemsOverride:function(){$$t.$cf.onClearItemsOverride.call(this);if(!this.df){this.queueAutoRefresh()}},onInsertItemOverride:function(a,b){$$t.$cf.onInsertItemOverride.call(this,a,b);this.queueAutoRefresh()},onRemoveItemOverride:function(a,b){$$t.$cf.onRemoveItemOverride.call(this,a,b);this.queueAutoRefresh()},isItemIndexLookupSupported:function(){return true},isKeyIndexLookupSupported:function(){return true},indexOfItem:function(a){var b=this.dd.b();var c=b._o;var d=b._q;var e=d.count();var f=b._p;for(var g=0;g<e;g++){if(f.__inner[g]){continue}var h=d.__inner[g]._b;var i=h.count();for(var j=0;j<i;j++){if(this.di(h.getItemAtIndex(j),a)){var k=$h(c.__inner[g]);var l=k*this.actualPageSize();return l+j}}}if(this.actualDataProvider()!=null&&this.actualDataProvider().isItemIndexLookupSupported()){return this.actualDataProvider().indexOfItem(a)}return-1},di:function(a,b){if(a==null&&b==null){return true}if(a==null||b==null){return false}return a.equals(b)},indexOfKey:function(a){var b=this.actualPrimaryKey();if(b==null||b.length<1||this.actualBaseDataProvider()==null){return-1}this.ensureComparables(this.actualSchema());var c=this.c9();if(this._ao&&this.shouldEmitSectionHeaders()&&!this.isSectionContentVisible()&&this.isSectionHeaderNormalRow()){if(this.dc.t().count()>0){for(var d=0;d<this.dc.t().count();d++){var e=this.dc.t().__inner[d];var f=new $$t.cj;for(var g=0;g<e._e.length;g++){var h=e._e[g];var i=e._f[g];f.setSectionValue(h,i)}if(c.compareToKey(f,a)==0){return d}}}}var j=this.dd.b();var k=j._o;var l=j._q;var m=l.count();var n=j._p;for(var o=0;o<m;o++){if(n.__inner[o]){continue}var p=l.__inner[o]._b;var q=p.count();for(var r=0;r<q;r++){if(c.compareToKey(p.getItemAtIndex(r),a)==0){var s=$h(k.__inner[o]);var t=s*this.actualPageSize();return t+r}}}if(this.actualDataProvider()!=null&&this.actualDataProvider().isKeyIndexLookupSupported()){return this.actualDataProvider().indexOfKey(a)}return-1},c9:function(){var a=new Array(this.actualPrimaryKey().length);for(var b=0;b<a.length;b++){a[b]=0}return new $$t.cl(this.actualPrimaryKey(),a,this.cx,this)},getStickyRowPriority:function(a){var b=this.getRowType(a);switch(b){case 1:return 100-this.getRowLevel(a);case 2:return 99-this.getRowLevel(a);case 3:case 5:return 2;case 4:return 3}return 1},unpinRow:function(a){$$t.$cf.unpinRow.call(this,a)},pinRow:function(a){$$t.$cf.pinRow.call(this,a)},isRowPinned:function(a){return $$t.$cf.isRowPinned.call(this,a)},cu:null,dv:0,dn:0,dx:0,dq:0,dy:0,dr:0,dw:0,dp:0,d0:0,dz:0,dt:0,ds:0,du:0,getStickyRowsInRange:function(a,b){if((this.groupDescriptions()==null||this.groupDescriptions().k().count()==0)&&(this.summaryDescriptions()==null||this.summaryDescriptions().k().count()==0)){return null}var c=this.db(a);var d=this.db(b);if(this.dc.t().count()>0){if(this.dc.t().count()==1){c=this.dc.t().__inner[0];d=this.dc.t().__inner[0]}else{c=this.dc.e(a);if(c!=null){while(c.z()!=-1){c=this.dc.t().__inner[c.z()]}}d=this.dc.e(b);if(b>=this.actualCount()-this.d3){d=this.dc.d()}}}else if(this.d3>0){var e=new $$4.x($$0.$aw.$type,0);for(var f=this.actualCount()-this.d3;f<this.actualCount();f++){e.add(f)}return e.toArray()}if(c==null||d==null){return null}if(c._ae==this.dv&&c._aa==this.dx&&c._af==this.dy&&c._ad==this.dw&&c._ah==this.d0&&c._ag==this.dz&&d._ae==this.dn&&d._aa==this.dq&&d._af==this.dr&&d._ad==this.dp&&d._ah==this.dt&&d._ag==this.ds&&this.d3==this.du){return this.cu}this.dv=c._ae;this.dn=d._ae;this.dx=c._aa;this.dq=d._aa;this.dy=c._af;this.dr=d._af;this.dw=c._ad;this.dp=d._ad;this.dt=d._ah;this.ds=d._ag;this.d0=c._ah;this.dz=c._ag;this.du=this.d3;var g=new $$4.x($$0.$aw.$type,0);for(var h=c._ae;h<=d._ae;h++){var i=this.dc.t().__inner[h];var j=i._c.length;var k=i.v();if(this.shouldEmitSectionHeaders()&&this._ao){for(var l=0;l<i._c.length;l++){if(i._a[l]!=null){var m=i._af+i._b[l];g.add(m)}if(!i._c[l]){break}}}if(i.p()){for(var n=0;n<i._ah;n++){g.add(i._af+n+k)}if(this.shouldEmitShiftedRows()){for(var o=0;o<i._aa;o++){g.add(i._af+o+j)}}if(this.summaryScope()==0||this.summaryScope()==2){if(this.includeSummaryRowsInSection()&&this.isSectionSummaryRowsAtBottom()){for(var p=i._ag-1;p>=0;p--){if(this.shouldEmitSectionFooters()){g.add(i._ad-k-p)}else{g.add(i._ad-p)}}}}}if(this.shouldEmitSectionFooters()&&this._ao){for(var q=i._c.length-1;q>=0;q--){if(!i._c[q]){break}g.add(i._ad-q)}}}for(var r=this.actualCount()-this.d3;r<this.actualCount();r++){g.add(r)}this.cu=g.toArray();return this.cu},isExclusivelySticky:function(a){var b=this.getRowType(a);return b==1||b==2||b==4||this.isSectionSummaryRowsAtBottom()&&b==5},getRowType:function(a){if(a<0){return 0}var b=this.getItemAtIndex(a);var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){var c=b.rowType();if(this.isSectionHeaderNormalRow()&&c==1){return 0}return c}return 0},dj:null,getIsRowExpandedAtIndex:function(a){var b=this.dc.e(a);if(b==null){b=this.dc.d()}for(var c=0;c<b._a.length;c++){if(b._a[c]!=null){if(a==b._af+b._b[c]){return b._c[c]}}}return $$t.$cf.getIsRowExpandedAtIndex.call(this,a)},setIsRowExpandedAtIndex:function(a,b){var c=this.dc.e(a);if(c==null){c=this.dc.d()}for(var d=0;d<c._a.length;d++){if(c._a[d]!=null){if(a==c._af+c._b[d]){var e=false;var f=c._a[d];if(this.dj.containsKey(f)&&this.dj.item(f)!=b){var g=this.dj.item(f);if(b==this.isSectionExpandedDefault()){this.dj.remove(f)}else{this.dj.item(f,b)}e=true;this.onRowExpansionChanged(a,g,b)}else if(b!=this.isSectionExpandedDefault()){this.dj.add(f,b);e=true;this.onRowExpansionChanged(a,this.isSectionExpandedDefault(),b)}if(e){this.dc.v();this.et();this.dg=true;if(this.actualCount()!=this.dc.u()){this.actualCount(this.dc.u()+this.d3)}else{this.queueAutoRefresh()}}break}}}},getRowLevel:function(a){if(a<0){return 0}var b=this.getItemAtIndex(a);var item_=b;if(item_!=null&&item_.$$isSpecialRow!==undefined){return b.level()}if(this.isGroupingSupported()){if(this.sectionHeaderDisplayMode()==1){return this.groupDescriptions().k().count()}else if(this.groupDescriptions().k().count()>0){return 1}}return 0},getRootSummaryRowCount:function(){return this.d3},ef:function(a){var b="";for(var c=0;c<a._e.length;c++){b+=a._e[c]+":"+a._f[c]}return b},eg:function(a,b){if(this.sectionHeaderDisplayMode()==0){return this.ef(a)}var c="";for(var d=0;d<a._e.length;d++){c+=a._e[d]+":"+a._f[d]+":"}c+=b;return c},getRootSummaryResults:function(){return this.cy},getSectionSummaryResults:function(a){if(this.dc.t().count()>0&&a>=0&&a<this.dc.t().count()){return this.dc.t().__inner[a]._i}return null},clone:function(){return null},cloneProperties:function(a){$$t.$cf.cloneProperties.call(this,a);var b=$b($$t.$c0.$type,a);if(b!=null){b.pageSizeRequested(this.pageSizeRequested());b.maxCachedPages(this.maxCachedPages())}},_concurrencyTag:null,concurrencyTag:function(a){if(arguments.length===1){this._concurrencyTag=a;return a}else{return this._concurrencyTag}},isBatchingEnabled:function(a){if(arguments.length===1){$$t.$cf.isBatchingEnabled.call(this,a);return a}else{return true}},updatePropertyAtKey:function(a,b,c,d){var e=$$t.$cf.updatePropertyAtKey.call(this,a,b,c,d);if(this.concurrencyTag()!=null&&this.ap()){var f=this.indexOfKey(a);if(f>-1){var g=this.getItemAtIndex(f);var h=this.actualDataProvider().getItemValue(g,this.concurrencyTag());if(h!=null){var i=this._u.g(a);i.version(h)}}}return e},removeItemByKey:function(a){$$t.$cf.removeItemByKey.call(this,a);if(this.concurrencyTag()!=null&&this.ap()){var b=this.indexOfKey(a);if(b>-1){var c=this.getItemAtIndex(b);var d=this.actualDataProvider().getItemValue(c,this.concurrencyTag());if(d!=null){var e=this._u.g(a);e.version(d)}}}},cm:function(a,b){if(a==5){var c=b;var d=c._a;var e=new $$4.x($$t.$c9.$type,0);for(var f=0;f<d.length;f++){var g=d[f].transactionType();var h=null;var i=null;if(g==2||g==1){var j=new $$4.h(String,$.ig.$op.$type,0);var k=d[f].iD();for(var l=0;l<this.actualPrimaryKey().length;l++){j.add(this.actualPrimaryKey()[l],k[l])}h=j}if(g==0){var m=new $$4.h(String,$.ig.$op.$type,0);var n=d[f].iD()[0];for(var o=0;o<this.actualSchema().propertyNames().length;o++){var p=this.actualSchema().propertyNames()[o];m.add(p,this.actualDataProvider().getItemValue(n,p))}i=m}else if(g==1){i=d[f].value()}if(h!=null){var q={};var r=h;var t=r.getEnumerator();while(t.moveNext()){var s=t.current();q[s.key()]=s.value()}h=q}if(i!=null){var u={};var v=i;var x=v.getEnumerator();while(x.moveNext()){var w=x.current();u[w.key()]=w.value()}i=u}e.add(function(){var $ret=new $$t.c9(h,g,i);$ret.version(d[f].version());return $ret}())}var y=e.toArray();if(this.batchStarted!=null){this.batchStarted(this,new $$t.c1(y))}this.actualDataProvider().createBatchRequest(y)}},en:function(a,b,c){if(b){this.queueAutoRefresh()}if(this.batchCompleted!=null){this.batchCompleted(this,new $$t.c3(a,c))}},batchStarted:null,batchCompleted:null,$type:new $.ig.Type("VirtualDataSource",$$t.$cf.$type,[$$t.$cs.$type])},true);$c("DataSourceBatchStartedEventArgs:c1","Object",{_a:null,init:function(a){$.ig.$op.init.call(this);this._a=a},$type:new $.ig.Type("DataSourceBatchStartedEventArgs",$.ig.$ot)},true);$c("DataSourceBatchCompletedEventArgs:c3","Object",{_b:false,_a:null,init:function(a,b){$.ig.$op.init.call(this);this._b=a;this._a=b},$type:new $.ig.Type("DataSourceBatchCompletedEventArgs",$.ig.$ot)},true);$$t.$h.maxSimultaneousExecutingTasks=2;$$t.$h.maxRetryDelay=2e4;$$t.$h.initialRetryDelay=200;$$t.$i.as=null;$$t.$df.ao=0;$$t.$co.aq="PageVisibilityDisplayThresholdMilliseconds"});