//>>built
define("dojox/fx/ext-dojo/complex","dojo/_base/kernel dojo/_base/lang dojo/_base/array dojo/_base/declare dojo/_base/connect dojo/_base/Color dojo/_base/fx dojo/fx".split(" "),function(l,q,m,r,t,n,p,v){q.getObject("dojox.fx.ext-dojo.complex",!0);var u=p.animateProperty;l.animateProperty=p.animateProperty=function(a){var b=u(a);t.connect(b,"beforeBegin",function(){b.curve.getValue=function(g){var h={},e;for(e in this._properties){var f=this._properties[e],k=f.start;k instanceof l.Color?h[e]=l.blendColors(k,
f.end,g,f.tempColor).toCss():k instanceof dojox.fx._Complex?h[e]=k.getValue(g):l.isArray(k)||(h[e]=(f.end-k)*g+k+("opacity"!=e?f.units||"px":0))}return h};for(var d in this.properties){var c=this.properties[d];"string"==typeof c.start&&/\(/.test(c.start)&&(this.curve._properties[d].start=new dojox.fx._Complex(c))}});return b};return r("dojox.fx._Complex",null,{PROP:/\([\w|,|+|\-|#|\.|\s]*\)/g,constructor:function(a){var b=a.start.match(this.PROP),d=a.end.match(this.PROP);b=m.map(b,this.getProps,this);
var c=m.map(d,this.getProps,this);this._properties={};this.strProp=a.start;m.forEach(b,function(g,h){m.forEach(g,function(e,f){this.strProp=this.strProp.replace(e,"PROP_"+h+f);this._properties["PROP_"+h+f]=this.makePropObject(e,c[h][f])},this)},this)},getValue:function(a){var b=this.strProp,d;for(d in this._properties){var c=this._properties[d];if("isColor"==c.units){var g=n.blendColors(c.beg,c.end,a).toCss(!1);c=""}else g=(c.end-c.beg)*a+c.beg,c=c.units;b=b.replace(d,g+c)}return b},makePropObject:function(a,
b){var d=this.getNumAndUnits(a),c=this.getNumAndUnits(b);return{beg:d.num,end:c.num,units:d.units}},getProps:function(a){a=a.substring(1,a.length-1);/,/.test(a)?(a=a.replace(/\s/g,""),a=a.split(",")):(a=a.replace(/\s{2,}/g," "),a=a.split(" "));return a},getNumAndUnits:function(a){if(!a)return{};if(/#/.test(a))return{num:new n(a),units:"isColor"};var b={num:parseFloat(/-*[\d\.\d|\d]{1,}/.exec(a).join(""))};b.units=/[a-z]{1,}/.exec(a);b.units=b.units&&b.units.length?b.units.join(""):"";return b}})});