text: "use strict";angular.module("ui.gravatar",["md5"]).provider("gravatarService",[function(){var a,b;return b=this,a=/^[0-9a-f]{32}$/i,this.defaults={},this.secure=!1,this.$get=["md5",function(c){return{url:function(d,e){var f,g,h,i,j;return null==e&&(e={}),e=angular.extend(angular.copy(b.defaults),e),i=b.secure?"https://secure":"http://www",h=[i,".gravatar.com/avatar/",a.test(d)?d:c(d)],g=function(){var a;a=[];for(f in e)j=e[f],a.push(""+f+"="+escape(j));return a}().join("&"),g.length>0&&h.push("?"+g),h.join("")}}}],this}]).directive("gravatarSrc",["gravatarService",function(a){var b;return b=function(a,b){var c,d,e;d={};for(c in b)e=b[c],0===c.indexOf(a)&&(c=c.substr(a.length).toLowerCase(),c.length>0&&(d[c]=e));return d},{restrict:"A",link:function(c,d,e){var f;return f=b("gravatar",e),delete f.src,c.$watch(e.gravatarSrc,function(b){return null!=b?d.attr("src",a.url(b,f)):void 0})}}}]);