//>>built
require({cache:{"url:dojox/widget/Pager/Pager.html":'\x3cdiv dojoAttachPoint\x3d"pagerContainer" tabIndex\x3d"0" dojoAttachEvent\x3d"onkeypress: _handleKey, onfocus: _a11yStyle, onblur:_a11yStyle" class\x3d"${orientation}PagerContainer"\x3e\n    \x3cdiv class\x3d"pagerContainer"\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"pagerContainerStatus" class\x3d"${orientation}PagerStatus"\x3e\x3c/div\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"pagerContainerView" class\x3d"${orientation}PagerView"\x3e\n\t\t    \x3cdiv dojoAttachPoint\x3d"pagerItemContainer"\x3e\x3cul dojoAttachPoint\x3d"pagerItems" class\x3d"pagerItems"\x3e\x3c/ul\x3e\x3c/div\x3e\n\t\t\x3c/div\x3e\n\t\t\x3cdiv dojoAttachPoint\x3d"pagerContainerPager" class\x3d"${orientation}PagerPager"\x3e\n\t\t\t\x3cdiv tabIndex\x3d"0" dojoAttachPoint\x3d"pagerNext" class\x3d"pagerIconContainer" dojoAttachEvent\x3d"onclick: _next"\x3e\x3cimg dojoAttachPoint\x3d"pagerIconNext" src\x3d"${iconNext}" alt\x3d"Next" /\x3e\x3c/div\x3e\n\t\t\t\x3cdiv tabIndex\x3d"0" dojoAttachPoint\x3d"pagerPrevious" class\x3d"pagerIconContainer" dojoAttachEvent\x3d"onclick: _previous"\x3e\x3cimg dojoAttachPoint\x3d"pagerIconPrevious" src\x3d"${iconPrevious}" alt\x3d"Previous" /\x3e\x3c/div\x3e\n\t\t\x3c/div\x3e\n    \x3c/div\x3e\n\t\x3cdiv dojoAttachPoint\x3d"containerNode" style\x3d"display:none"\x3e\x3c/div\x3e\n\x3c/div\x3e'}});
define("dojox/widget/Pager","dojo/aspect dojo/_base/array dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/fx dojo/_base/kernel dojo/keys dojo/_base/lang dojo/on dijit/_WidgetBase dijit/_TemplatedMixin ./PagerItem dojo/text!./Pager/Pager.html".split(" "),function(w,B,C,k,D,z,E,p,a,l,F,r,q,A,G,H,I,J){F.experimental("dojox.widget.Pager");return C("dojox.widget.Pager",[G,H],{templateString:J,iconPrevious:"",iconNext:"",iconPage:require.toUrl("dojox/widget/Pager/images/pageInactive.png"),
iconPageActive:require.toUrl("dojox/widget/Pager/images/pageActive.png"),store:null,orientation:"horizontal",statusPos:"leading",pagerPos:"center",duration:500,itemSpace:2,resizeChildren:!0,itemClass:I,itemsPage:3,postMixInProperties:function(){var b="horizontal"==this.orientation;q.mixin(this,{_totalPages:0,_currentPage:1,dirClass:"pager"+(b?"Horizontal":"Vertical"),iconNext:require.toUrl("dojox/widget/Pager/images/"+(b?"h":"v")+"Next.png"),iconPrevious:require.toUrl("dojox/widget/Pager/images/"+
(b?"h":"v")+"Previous.png")})},_next:function(){this.isLeftToRight()?this._pagerNext():this._pagerPrevious()},_previous:function(){this.isLeftToRight()?this._pagerPrevious():this._pagerNext()},postCreate:function(){this.inherited(arguments);this.store.fetch({onComplete:q.hitch(this,"_init")})},_a11yStyle:function(b){z.toggle(b.target,"pagerFocus","focus"==b.type)},_handleKey:function(b){switch(b.charCode==r.SPACE?r.SPACE:b.keyCode){case r.UP_ARROW:case r.RIGHT_ARROW:case 110:case 78:b.preventDefault();
this._next();break;case r.DOWN_ARROW:case r.LEFT_ARROW:case 112:case 80:b.preventDefault();this._previous();break;case r.ENTER:switch(b.target){case this.pagerNext:this._next();break;case this.pagerPrevious:this._previous()}}},_init:function(b){this.items=b;this._renderPages();this._renderStatus();this._renderPager()},generatePagerItem:function(b,d){var c=this.itemClass;c="string"==typeof c?q.getObject(c):c;var e=E.create("div",{innerHTML:b.content});return new c({id:this.id+"-item-"+(d+1)},e)},_renderPages:function(){var b=
this.pagerContainerView,d="horizontal"==this.orientation;if(d){var c=p.getMarginBox(this.pagerContainerPager).h,e=p.getMarginBox(this.pagerContainerStatus).h;if("center"!=this.pagerPos)var f=c+e;else{f=e;var g=this.pagerIconNext.width,h=a.get(b,"width");a.set(b,{width:h-2*g+"px",marginLeft:this.pagerIconNext.width+"px",marginRight:this.pagerIconNext.width+"px"})}f=a.get(this.pagerContainer,"height")-f;a.set(this.pagerContainerView,"height",f+"px");var n=Math.floor(a.get(b,"width")/this.itemsPage);
"trailing"==this.statusPos?("center"!=this.pagerPos&&a.set(b,"marginTop",c+"px"),a.set(b,"marginBottom",e+"px")):(a.set(b,"marginTop",e+"px"),"center"!=this.pagerPos&&a.set(b,"marginTop",c+"px"))}else c=p.getMarginBox(this.pagerContainerPager).w,e=p.getMarginBox(this.pagerContainerStatus).w,a.get(this.pagerContainer,"width"),"center"!=this.pagerPos?f=c+e:(f=e,g=this.pagerIconNext.height,h=a.get(b,"height"),a.set(b,{height:h-2*g+"px",marginTop:this.pagerIconNext.height+"px",marginBottom:this.pagerIconNext.height+
"px"})),f=a.get(this.pagerContainer,"width")-f,a.set(b,"width",f+"px"),n=Math.floor(a.get(b,"height")/this.itemsPage),"trailing"==this.statusPos?("center"!=this.pagerPos&&a.set(b,"marginLeft",c+"px"),a.set(b,"marginRight",e+"px")):(a.set(b,"marginLeft",e+"px"),"center"!=this.pagerPos&&a.set(b,"marginRight",c+"px"));var t="padding"+(d?"Left":"Top"),x="padding"+(d?"Right":"Bottom");B.forEach(this.items,function(K,y){var m=this.generatePagerItem(K,y),u={};this.pagerItems.appendChild(m.domNode);u[d?"width":
"height"]=n-this.itemSpace+"px";var v=d?"height":"width";u[v]=a.get(b,v)+"px";a.set(m.containerNode,u);this.resizeChildren&&m.resizeChildren();m.parseChildren();a.set(m.domNode,"position","absolute");y<this.itemsPage?(u=y*n,v=d?"left":"top",a.set(m.domNode,d?"top":"left","0px"),a.set(m.domNode,v,u+"px")):(a.set(m.domNode,"top","-1000px"),a.set(m.domNode,"left","-1000px"));a.set(m.domNode,x,this.itemSpace/2+"px");a.set(m.domNode,t,this.itemSpace/2+"px")},this)},_renderPager:function(){var b=this.pagerContainerPager;
"horizontal"==this.orientation?("center"!=this.statusPos&&("trailing"==this.statusPos?a.set(b,"top","0px"):a.set(b,"bottom","0px")),a.set(this.pagerNext,"right","0px"),a.set(this.pagerPrevious,"left","0px")):("trailing"==this.statusPos?a.set(b,"left","0px"):a.set(b,"right","0px"),a.set(this.pagerNext,"bottom","0px"),a.set(this.pagerPrevious,"top","0px"))},_renderStatus:function(){this._totalPages=Math.ceil(this.items.length/this.itemsPage);this.iconsLoaded=this.iconHeight=this.iconWidth=0;this._iconConnects=
[];for(var b=1;b<=this._totalPages;b++){var d=new Image,c=b;A(d,"click",q.hitch(this,"_pagerSkip",c));this._iconConnects[c]=A(d,"load",q.hitch(this,function(e){this.iconWidth+=d.width;this.iconHeight+=d.height;this.iconsLoaded++;if(this._totalPages==this.iconsLoaded)if("horizontal"==this.orientation){if("trailing"==this.statusPos){if("center"==this.pagerPos){var f=a.get(this.pagerContainer,"height"),g=a.get(this.pagerContainerStatus,"height");a.set(this.pagerContainerPager,"top",f/2-g/2+"px")}a.set(this.pagerContainerStatus,
"bottom","0px")}else"center"==this.pagerPos&&(f=a.get(this.pagerContainer,"height"),g=a.get(this.pagerContainerStatus,"height"),a.set(this.pagerContainerPager,"bottom",f/2-g/2+"px")),a.set(this.pagerContainerStatus,"top","0px");f=a.get(this.pagerContainer,"width")/2-this.iconWidth/2;a.set(this.pagerContainerStatus,this.isLeftToRight()?"paddingLeft":"paddingRight",f+"px")}else"trailing"==this.statusPos?("center"==this.pagerPos&&(f=a.get(this.pagerContainer,"width"),g=a.get(this.pagerContainerStatus,
"width"),a.set(this.pagerContainerPager,"left",f/2-g/2+"px")),a.set(this.pagerContainerStatus,"right","0px")):("center"==this.pagerPos&&(f=a.get(this.pagerContainer,"width"),g=a.get(this.pagerContainerStatus,"width"),a.set(this.pagerContainerPager,"right",f/2-g/2+"px")),a.set(this.pagerContainerStatus,"left","0px")),f=a.get(this.pagerContainer,"height")/2-this.iconHeight/2,a.set(this.pagerContainerStatus,"paddingTop",f+"px");this._iconConnects[e].remove()},c));d.src=b==this._currentPage?this.iconPageActive:
this.iconPage;c=b;z.add(d,this.orientation+"PagerIcon");D.set(d,"id",this.id+"-status-"+b);this.pagerContainerStatus.appendChild(d);"vertical"==this.orientation&&a.set(d,"display","block")}},_pagerSkip:function(b){if(this._currentPage!=b){if(b<this._currentPage){var d=this._currentPage-b;b=this._totalPages+b-this._currentPage}else d=this._totalPages+this._currentPage-b,b-=this._currentPage;var c=b>d;this._toScroll=c?d:b;var e=c?"_pagerPrevious":"_pagerNext",f=w.after(this,"onScrollEnd",q.hitch(this,
function(){this._toScroll--;if(1>this._toScroll)f.remove();else this[e]()}),!0);this[e]()}},_pagerNext:function(){if(!this._anim){for(var b=[],d=this._currentPage*this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--)if(k.byId(this.id+"-item-"+d)){var c=k.byId(this.id+"-item-"+d),e=p.getMarginBox(c);"horizontal"==this.orientation?(e=e.l-this.itemsPage*e.w,b.push(l.slideTo({node:c,left:e,duration:this.duration}))):(e=e.t-this.itemsPage*e.h,b.push(l.slideTo({node:c,top:e,duration:this.duration})))}var f=
this._currentPage;this._currentPage==this._totalPages?this._currentPage=1:this._currentPage++;var g=this.itemsPage;for(d=this._currentPage*this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--){if(k.byId(this.id+"-item-"+d))if(c=k.byId(this.id+"-item-"+d),e=p.getMarginBox(c),"horizontal"==this.orientation){var h=a.get(this.pagerContainerView,"width")+(g-1)*e.w-1;a.set(c,"left",h+"px");a.set(c,"top","0px");e=h-this.itemsPage*e.w;b.push(l.slideTo({node:c,left:e,duration:this.duration}))}else h=
a.get(this.pagerContainerView,"height")+(g-1)*e.h-1,a.set(c,"top",h+"px"),a.set(c,"left","0px"),e=h-this.itemsPage*e.h,b.push(l.slideTo({node:c,top:e,duration:this.duration}));g--}this._anim=l.combine(b);var n=w.after(this._anim,"onEnd",q.hitch(this,function(){delete this._anim;this.onScrollEnd();n.remove()}),!0);this._anim.play();k.byId(this.id+"-status-"+f).src=this.iconPage;k.byId(this.id+"-status-"+this._currentPage).src=this.iconPageActive}},_pagerPrevious:function(){if(!this._anim){for(var b=
[],d=this._currentPage*this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--)if(k.byId(this.id+"-item-"+d)){var c=k.byId(this.id+"-item-"+d),e=p.getMarginBox(c);if("horizontal"==this.orientation){var f=a.get(c,"left")+this.itemsPage*e.w;b.push(l.slideTo({node:c,left:f,duration:this.duration}))}else f=a.get(c,"top")+this.itemsPage*e.h,b.push(l.slideTo({node:c,top:f,duration:this.duration}))}var g=this._currentPage;1==this._currentPage?this._currentPage=this._totalPages:this._currentPage--;var h=
this.itemsPage,n=1;for(d=this._currentPage*this.itemsPage;d>(this._currentPage-1)*this.itemsPage;d--){if(k.byId(this.id+"-item-"+d))if(c=k.byId(this.id+"-item-"+d),e=p.getMarginBox(c),"horizontal"==this.orientation){var t=-(n*e.w)+1;a.set(c,"left",t+"px");a.set(c,"top","0px");f=(h-1)*e.w;b.push(l.slideTo({node:c,left:f,duration:this.duration}));f=t+this.itemsPage*e.w;b.push(l.slideTo({node:c,left:f,duration:this.duration}))}else t=-(n*e.h+1),a.set(c,"top",t+"px"),a.set(c,"left","0px"),f=(h-1)*e.h,
b.push(l.slideTo({node:c,top:f,duration:this.duration}));h--;n++}this._anim=l.combine(b);var x=w.after(this._anim,"onEnd",q.hitch(this,function(){delete this._anim;this.onScrollEnd();x.remove()}),!0);this._anim.play();k.byId(this.id+"-status-"+g).src=this.iconPage;k.byId(this.id+"-status-"+this._currentPage).src=this.iconPageActive}},onScrollEnd:function(){}})});