//>>built
define("dojox/html/ext-dojo/style","dojo/_base/kernel dojo/dom-style dojo/_base/lang dojo/_base/html dojo/_base/sniff dojo/_base/window dojo/dom dojo/dom-construct dojo/dom-style dojo/dom-attr".split(" "),function(Q,S,F,y,G,O,H,P,I,R){Q.experimental("dojox.html.ext-dojo.style");F.getObject("dojox.html.ext-dojo.style",!0);var L=F.getObject("dojox.html");F.mixin(L["ext-dojo"].style,{supportsTransform:!0,_toPx:function(p){var r=y.style,l=this._conversion;if("number"===typeof p)return p+"px";if(-1!=p.toLowerCase().indexOf("px"))return p;
!l.parentNode&&P.place(l,O.body());r(l,"margin",p);return r(l,"margin")},init:function(){var p=O.doc.documentElement.style,r=L["ext-dojo"].style,l=I.get,b=I.set;I.get=function(c,n){var q="transformOrigin"==n;return"transform"==n?r.getTransform(c):q?r.getTransformOrigin(c):l.apply(this,arguments)};I.set=function(c,n,q){var M="transform"==n,N="transformOrigin"==n,B=H.byId(c);return M?r.setTransform(B,q,!0):N?r.setTransformOrigin(B,q):b.apply(this,arguments)};for(var k=0,d=["WebkitT","MozT","OT","msT",
"t"];k<d.length;k++)"undefined"!==typeof p[d[k]+"ransform"]&&(this.tPropertyName=d[k]+"ransform"),"undefined"!==typeof p[d[k]+"ransformOrigin"]&&(this.toPropertyName=d[k]+"ransformOrigin");this.tPropertyName?(this.setTransform=function(c,n){return b(c,this.tPropertyName,n)},this.getTransform=function(c){return l(c,this.tPropertyName)}):G("ie")&&(this.setTransform=this._setTransformFilter,this.getTransform=this._getTransformFilter);this.toPropertyName?(this.setTransformOrigin=function(c,n){return b(c,
this.toPropertyName,n)},this.getTransformOrigin=function(c){return l(c,this.toPropertyName)}):G("ie")?(this.setTransformOrigin=this._setTransformOriginFilter,this.getTransformOrigin=this._getTransformOriginFilter):this.supportsTransform=!1;this._conversion=P.create("div",{style:{position:"absolute",top:"-100px",left:"-100px",fontSize:0,width:"0",backgroundPosition:"50% 50%"}})},_notSupported:function(){},_setTransformOriginFilter:function(p,r){for(var l=F.trim(r).replace(" top"," 0").replace("left ",
"0 ").replace(" center","50%").replace("center ","50% ").replace(" bottom"," 100%").replace("right ","100% ").replace(/\s+/," ").split(" "),b=H.byId(p),k=this.getTransform(b),d=!0,c=0;c<l.length;c++)d=d&&/^0|(\d+(%|px|pt|in|pc|mm|cm))$/.test(l[c]),-1==l[c].indexOf("%")&&(l[c]=this._toPx(l[c]));if(!d||!l.length||2<l.length)return r;y.attr(b,"dojo-transform-origin",l.join(" "));k&&this.setTransform(p,k);return r},_getTransformOriginFilter:function(p){return y.attr(p,"dojo-transform-origin")||"50% 50%"},
_setTransformFilter:function(p,r){var l=r.replace(/\s/g,""),b=H.byId(p),k=l.split(")"),d=1,c=1;l=R.has;var n=y.attr,q=Math.PI,M=Math.cos,N=Math.sin,B=Math.tan,t=Math.max,v=Math.min,C=Math.abs,D=q/180,E=q/200,e="";e="";e=[];var w=0,z=0,A=0,J=0,u=0,m=0;d=0;d=1;var g=c=0,f=1,x=0,h=0,a=[d,c,g,f,x,h];z=!1;q=y.style;var K="absolute"==q(b,"position")?"absolute":"relative";u=q(b,"width")+q(b,"paddingLeft")+q(b,"paddingRight");w=q(b,"height")+q(b,"paddingTop")+q(b,"paddingBottom");A=this._toPx;!l(b,"dojo-transform-origin")&&
this.setTransformOrigin(b,"50% 50%");m=0;for(J=k.length;m<J;m++){e=(e=k[m].match(/matrix|rotate|scaleX|scaleY|scale|skewX|skewY|skew|translateX|translateY|translate/))?e[0]:"";switch(e){case "matrix":e=k[m].replace(/matrix\(|\)/g,"");h=e.split(",");d=a[0]*h[0]+a[1]*h[2];c=a[0]*h[1]+a[1]*h[3];g=a[2]*h[0]+a[3]*h[2];f=a[2]*h[1]+a[3]*h[3];x=a[4]+h[4];h=a[5]+h[5];break;case "rotate":e=k[m].replace(/rotate\(|\)/g,"");d=-1!=e.indexOf("deg")?D:-1!=e.indexOf("grad")?E:1;d*=parseFloat(e);f=N(d);e=M(d);d=a[0]*
e+a[1]*f;c=-a[0]*f+a[1]*e;g=a[2]*e+a[3]*f;f=-a[2]*f+a[3]*e;break;case "skewX":e=k[m].replace(/skewX\(|\)/g,"");d=-1!=e.indexOf("deg")?D:-1!=e.indexOf("grad")?E:1;f=B(parseFloat(e)*d);d=a[0];c=a[0]*f+a[1];g=a[2];f=a[2]*f+a[3];break;case "skewY":e=k[m].replace(/skewY\(|\)/g,"");d=-1!=e.indexOf("deg")?D:-1!=e.indexOf("grad")?E:1;f=B(parseFloat(e)*d);d=a[0]+a[1]*f;c=a[1];g=a[2]+a[3]*f;f=a[3];break;case "skew":e=k[m].replace(/skew\(|\)/g,"");g=e.split(",");g[1]=g[1]||"0";d=-1!=g[0].indexOf("deg")?D:-1!=
g[0].indexOf("grad")?E:1;c=-1!=g[1].indexOf("deg")?D:-1!=g[1].indexOf("grad")?E:1;f=B(parseFloat(g[0])*d);g=B(parseFloat(g[1])*c);d=a[0]+a[1]*g;c=a[0]*f+a[1];g=a[2]+a[3]*g;f=a[2]*f+a[3];break;case "scaleX":e=parseFloat(k[m].replace(/scaleX\(|\)/g,""))||1;d=a[0]*e;c=a[1];g=a[2]*e;f=a[3];break;case "scaleY":e=parseFloat(k[m].replace(/scaleY\(|\)/g,""))||1;d=a[0];c=a[1]*e;g=a[2];f=a[3]*e;break;case "scale":e=k[m].replace(/scale\(|\)/g,"");f=e.split(",");f[1]=f[1]||f[0];d=a[0]*f[0];c=a[1]*f[1];g=a[2]*
f[0];f=a[3]*f[1];break;case "translateX":e=parseInt(k[m].replace(/translateX\(|\)/g,""))||1;d=a[0];c=a[1];g=a[2];f=a[3];(x=A(e))&&n(b,"dojo-transform-matrix-tx",x);break;case "translateY":e=parseInt(k[m].replace(/translateY\(|\)/g,""))||1;d=a[0];c=a[1];g=a[2];f=a[3];(h=A(e))&&n(b,"dojo-transform-matrix-ty",h);break;case "translate":e=k[m].replace(/translate\(|\)/g,""),d=a[0],c=a[1],g=a[2],f=a[3],h=e.split(","),h[0]=parseInt(A(h[0]))||0,h[1]=parseInt(A(h[1]))||0,x=h[0],h=h[1],x&&n(b,"dojo-transform-matrix-tx",
x),h&&n(b,"dojo-transform-matrix-ty",h)}a=[d,c,g,f,x,h]}k=v(u*d+w*c,v(v(u*d,w*c),0));v=v(u*g+w*f,v(v(u*g,w*f),0));A=-k;J=-v;8>G("ie")?(b.style.zoom="1","absolute"!=K&&(v=q(p.parentNode,"width"),k=C(u*d),C=C(w*c),t=t(k+C,t(t(C,k),0)),A-=(t-u)/2-(v>t?0:(t-v)/2))):8==G("ie")&&"auto"==q(b,"zIndex")&&(b.style.zIndex="0");try{z=!!b.filters.item("DXImageTransform.Microsoft.Matrix")}catch(T){z=!1}z?(b.filters.item("DXImageTransform.Microsoft.Matrix").M11=d,b.filters.item("DXImageTransform.Microsoft.Matrix").M12=
c,b.filters.item("DXImageTransform.Microsoft.Matrix").M21=g,b.filters.item("DXImageTransform.Microsoft.Matrix").M22=f,b.filters.item("DXImageTransform.Microsoft.Matrix").filterType="bilinear",b.filters.item("DXImageTransform.Microsoft.Matrix").Dx=0,b.filters.item("DXImageTransform.Microsoft.Matrix").Dy=0,b.filters.item("DXImageTransform.Microsoft.Matrix").sizingMethod="auto expand"):b.style.filter+=" progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+d+",M12\x3d"+c+",M21\x3d"+g+",M22\x3d"+f+",FilterType\x3d'bilinear',Dx\x3d0,Dy\x3d0,sizingMethod\x3d'auto expand')";
x=parseInt(n(b,"dojo-transform-matrix-tx")||"0");h=parseInt(n(b,"dojo-transform-matrix-ty")||"0");t=n(b,"dojo-transform-origin").split(" ");for(m=0;2>m;m++)t[m]=t[m]||"50%";u=-1!=t[0].toString().indexOf("%")?u*parseInt(t[0])*.01:t[0];m=-1!=t[1].toString().indexOf("%")?w*parseInt(t[1])*.01:t[1];l(b,"dojo-startX")?w=parseInt(n(b,"dojo-startX")):(w=parseInt(q(b,"left")),n(b,"dojo-startX","absolute"==K?w:"0"));l(b,"dojo-startY")?z=parseInt(n(b,"dojo-startY")):(z=parseInt(q(b,"top")),n(b,"dojo-startY",
"absolute"==K?z:"0"));q(b,{position:K,left:w-parseInt(A)+parseInt(u)-((parseInt(u)-x)*d+(parseInt(m)-h)*c)+"px",top:z-parseInt(J)+parseInt(m)-((parseInt(u)-x)*g+(parseInt(m)-h)*f)+"px"});return r},_getTransformFilter:function(p){try{var r=H.byId(p).filters.item(0);return"matrix("+r.M11+", "+r.M12+", "+r.M21+", "+r.M22+", "+(y.attr(p,"dojo-transform-tx")||"0")+", "+(y.attr(p,"dojo-transform-ty")||"0")+")"}catch(l){return"matrix(1, 0, 0, 1, 0, 0)"}},setTransform:function(){this._notSupported()},setTransformOrigin:function(){this._notSupported()}});
L["ext-dojo"].style.init();return y.style});