//>>built
define("dojox/css3/transition","dojo/_base/lang dojo/_base/array dojo/Deferred dojo/when dojo/promise/all dojo/on dojo/sniff".split(" "),function(h,g,u,q,v,r,t){var l="transitionend",f="t",m="translate3d(",n=",0,0)";t("webkit")?(f="WebkitT",l="webkitTransitionEnd"):t("mozilla")&&(f="MozT",m="translateX(",n=")");var e=function(b){h.mixin(this,{startState:{},endState:{},node:null,duration:250,"in":!0,direction:1,autoClear:!0});h.mixin(this,b);this.deferred||(this.deferred=new u)};h.extend(e,{play:function(){e.groupedPlay([this])},
_applyState:function(b){var d=this.node.style,a;for(a in b)b.hasOwnProperty(a)&&(d[a]=b[a])},initState:function(){this.node.style[f+"ransitionProperty"]="none";this.node.style[f+"ransitionDuration"]="0ms";this._applyState(this.startState)},_beforeStart:function(){"none"===this.node.style.display&&(this.node.style.display="");this.beforeStart()},_beforeClear:function(){this.node.style[f+"ransitionProperty"]="";this.node.style[f+"ransitionDuration"]="";!0!==this["in"]&&(this.node.style.display="none");
this.beforeClear()},_onAfterEnd:function(){this.deferred.resolve(this.node);this.node.id&&e.playing[this.node.id]===this.deferred&&delete e.playing[this.node.id];this.onAfterEnd()},beforeStart:function(){},beforeClear:function(){},onAfterEnd:function(){},start:function(){this._beforeStart();this._startTime=(new Date).getTime();this._cleared=!1;var b=this;b.node.style[f+"ransitionProperty"]="all";b.node.style[f+"ransitionDuration"]=b.duration+"ms";r.once(b.node,l,function(){b.clear()});this._applyState(this.endState)},
clear:function(){this._cleared||(this._cleared=!0,this._beforeClear(),this._removeState(this.endState),this._onAfterEnd())},_removeState:function(b){var d=this.node.style,a;for(a in b)b.hasOwnProperty(a)&&(d[a]="")}});e.slide=function(b,d){var a=new e(d);a.node=b;var c="0",k="0";a["in"]?c=1===a.direction?"100%":"-100%":k=1===a.direction?"-100%":"100%";a.startState[f+"ransform"]=m+c+n;a.endState[f+"ransform"]=m+k+n;return a};e.fade=function(b,d){var a=new e(d);a.node=b;var c="0",k="0";a["in"]?k="1":
c="1";h.mixin(a,{startState:{opacity:c},endState:{opacity:k}});return a};e.flip=function(b,d){var a=new e(d);a.node=b;a["in"]?(h.mixin(a,{startState:{opacity:"0"},endState:{opacity:"1"}}),a.startState[f+"ransform"]="scale(0,0.8) skew(0,-30deg)",a.endState[f+"ransform"]="scale(1,1) skew(0,0)"):(h.mixin(a,{startState:{opacity:"1"},endState:{opacity:"0"}}),a.startState[f+"ransform"]="scale(1,1) skew(0,0)",a.endState[f+"ransform"]="scale(0,0.8) skew(0,30deg)");return a};var p=function(b){var d=[];g.forEach(b,
function(a){a.id&&e.playing[a.id]&&d.push(e.playing[a.id])});return v(d)};e.getWaitingList=p;e.groupedPlay=function(b){var d=g.filter(b,function(a){return a.node});d=p(d);g.forEach(b,function(a){a.node.id&&(e.playing[a.node.id]=a.deferred)});q(d,function(){g.forEach(b,function(a){a.initState()});setTimeout(function(){g.forEach(b,function(a){a.start()});r.once(b[b.length-1].node,l,function(){for(var a,c=0;c<b.length-1;c++)0===b[c].deferred.fired||b[c]._cleared||(a=(new Date).getTime()-b[c]._startTime,
a>=b[c].duration&&b[c].clear())});setTimeout(function(){for(var a,c=0;c<b.length;c++)0===b[c].deferred.fired||b[c]._cleared||(a=(new Date).getTime()-b[c]._startTime,a>=b[c].duration&&b[c].clear())},b[0].duration+50)},33)})};e.chainedPlay=function(b){var d=g.filter(b,function(a){return a.node});d=p(d);g.forEach(b,function(a){a.node.id&&(e.playing[a.node.id]=a.deferred)});q(d,function(){g.forEach(b,function(k){k.initState()});for(var a=1,c=b.length;a<c;a++)b[a-1].deferred.then(h.hitch(b[a],function(){this.start()}));
setTimeout(function(){b[0].start()},33)})};e.playing={};return e});