(function(){(function(n,t,i){var o,b,k,d,g,l,v,nt,a,tt,it,rt,ut,y,ft,et,ot,s,c,st,f,h,r,u,p=[].slice,e=function(n,t){function r(){this.constructor=n}for(var i in t)ht.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},ht={}.hasOwnProperty,w=function(n,t){return function(){return n.apply(t,arguments)}};f=n.console;typeof f=="undefined"&&(h=function(){},f={log:h,warn:h,assert:h,clear:h,dir:h,error:h,info:h,profile:h,profileEnd:h});r={achievementsEarned:"Achievements Earned",avatar:"Avatar of ${DisplayName}",header:{},recentAchievements:"Recent Achievements",recognitionPoints:"Points",learnHow:"No Achievements Earned. Learn How!<\/a>",learnHowLink:function(){var n;return n='',r.learnHow.replace("",n)},leaderboardEmpty:"No leaderboard results available at this time.",viewProfile:"View Profile",boostProfile:"Boost your online profile",joined:"Joined ",notableAchievements:"Notable Achievements",recentActivity:"Recent Activity: ",topPercentile:"Top",uploadImage:"Upload an image",userPoint:"Point",userPoints:"Points",goToProfile:"Go to ${DisplayName}'s profile",showActivity:"Show Activity"};r.header["all time"]="all time";r.header.day="last day";r.header.days="last %d days";r.header.hour="last hour";r.header.hours="last %d hours";r.header.week="last week";r.header.weeks="last %d weeks";r.header["activities completed"]="activities completed";r.header["points earned"]="points earned";r.achievementsEarned="Achievements Earned";r.avatar="Avatar of ${DisplayName}";r.learnHow="No Achievements Earned. Learn How!<\/a>";r.recentAchievements="Recent Achievements";r.recognitionPoints="Points";r.viewProfile="View Profile";r.leaderboardEmpty="No leaderboard results available at this time.";r.header["all time"]="all time";r.header.day="last day";r.header.days="last %d days";r.header.hour="last hour";r.header.hours="last %d hours";r.header.week="last week";r.header.weeks="last %d weeks";r.header["activities completed"]="activities completed";r.header["points earned"]="points earned";r.boostProfile="Boost your online profile";r.joined="Joined ";r.notableAchievements="Notable Achievements";r.recentActivity="Recent Activity: ";r.topPercentile="Top";r.uploadImage="Upload an image";r.userPoint="Point";r.userPoints="Points";r.goToProfile="Go to ${DisplayName}'s profile";r.showActivity="Show activity";u={animationSpeed:100,brand:"msdn",host:n.location.host,lang:"en",largeImageDimension:135,leaderboardDataUri:"/v1/leaderboard/",scanDelay:250,search:"",statGroupDataUri:"/v1/statGroup/",userDataUri:"/v1/user/usercard/",userDataBatchSize:50,widgetImageUri:"/v1/resources/widget.png",hideDelay:250,showDelay:750,version:"debug",protocol:n.location.protocol};u.brand="TechNet";u.lang="en-US";u.host="widgets.services.microsoft.com:443";u.search="?brand=TechNet&lang=en-US&ver=4.9.0.0";u.version="4.9.0.0";u.protocol="https:";o={LogMetric:function(){return!0},getBaseMetricObject:function(){return{currentUrl:t.URL,referrer:t.referrer}}};s={resolve:function(n){return u.protocol+"//"+u.host+n},resolveStatic:function(n){return this.resolve(n)+u.search},createDataUri:function(){var n,t;return n=arguments[0],t=2<=arguments.length?p.call(arguments,1):[],n=""+s.resolve(n)+(t!=null?t.sort().join(","):void 0),n+("?lang="+u.lang+"&brand="+u.brand)},createQSDataUri:function(){var n,t;return n=arguments[0],t=2<=arguments.length?p.call(arguments,1):[],n=s.resolve(n)+"?id="+(t!=null?t.sort().join(","):void 0),n+("&lang="+u.lang+"&brand="+u.brand)},createStatGroupDataUri:function(n,t,i){var r;return r=s.createDataUri(u.statGroupDataUri,n),r+("&filterLocale="+t+"&filterUserId="+i)},createUsercardDataUri:function(){return function(){var n;return n=1<=arguments.length?p.call(arguments,0):[],s.createQSDataUri(u.userDataUri,n)}}(this),createLeaderboardDataUri:function(){return function(){var n;return n=1<=arguments.length?p.call(arguments,0):[],s.createDataUri(u.leaderboardDataUri,n)}}(this),createWidgetImageUri:function(){return s.resolve(u.widgetImageUri+"?v="+u.version)}};a={scaleImage:function(n,t){var r,u,f;return r=i(n),u={x:r.width(),y:r.height()},f=this.getXDimension(u,t),r.css("width",f),r.css("display","inline-block")},getXDimension:function(n,t){var i,r;return n.x<=t&&n.y<=t?n.x:(r=n.x>=n.y?n.x:n.y,i=t/r,Math.floor(n.x*i))}};ot={ellipsify:function(n,t){return n.length<=t?n:(f.log("ellipsify"),n.substr(0,t-3).concat("..."))}};v=function(){function n(n,t,i,r,u){this.dataIdName=n;this.inline=t;this.selector=i;this.template=r;this.templateName=u;this.warn}return n.prototype.canonicalizeId=function(n){return n.replace(/[^a-zA-Z0-9]/g,"").toLowerCase()},n.prototype.findIds=function(n){var f,t,r,u,e,s,o;for(t=[],o=i(this.selector,n),r=0,s=o.length;r=1?0:1,r={settings:u,ellipsify:ot.ellipsify,useDataUri:u.supportsDataUri,PercentileRankingsFormatted:t.toLocaleString(u.lang,{maximumFractionDigits:f})},i.tmpl(this.templateName,n,r)},t.prototype.warn=function(n){return f.warn("Profile [UsercardRegistration]: "+n)},t.prototype.usercardTemplate='
{{if $item.useDataUri }} '+r.avatar+' {{else}} '+r.avatar+' {{/if}} <\/span>
${$item.ellipsify(DisplayName, 32)}<\/span> {{if Company}} ${$item.ellipsify(Company, 27)}<\/span> {{/if}} {{if Affiliations}} ${Affiliations}<\/span> {{/if}} <\/div> <\/div>
${Points} '+r.recognitionPoints+'<\/span><\/span> <\/span>${Achievements.Bronze}<\/span><\/span> <\/span>${Achievements.Silver}<\/span><\/span> <\/span>${Achievements.Gold}<\/span><\/span> <\/div>
'+r.recentAchievements+'<\/span> <\/div>
{{if Achievements.Recent && Achievements.Recent.length > 0}} {{each Achievements.Recent}} ${Title}<\/span><\/span> {{/each}} {{else}}
'+r.learnHowLink()+'<\/div> {{/if}} <\/div> <\/div>