define(["ember"],function(){return{newGuid:function(){var a=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return a()+a()+a()+a()+a()+a()+a()+a()},formatDeg:function(a){return deg=a%360,deg>180?deg-=360:deg<=-180&&(deg=360+deg),deg},compareVersion:function(a,b){var c,d,e;return a=a.split(".").map(this.parseIntOrDefault),b=b.split(".").map(this.parseIntOrDefault),c=a.length>=b.length?b.length:a.length,1>c?0:(d=0,function(){e=[];for(var a=0,b=c-1;b>=0?b>=a:a>=b;b>=0?a++:a--)e.push(a);return e}.apply(this).forEach(function(c){return 0===d?d=this.compareInt(a[c],b[c]):void 0}),0===d&&a.length!==b.length&&(d=this.compareInt(a.length,b.length)),d)},parseIntOrDefault:function(a){var b;return b=parseInt(a),isNaN(b)&&(b=0),b},compareInt:function(a,b){return a===b?0:a>b?1:-1}}});