//>>built
define("dojox/uuid/Uuid",["dojo/_base/lang","./_base"],function(b,e){dojox.uuid.Uuid=function(a){this._uuidString=dojox.uuid.NIL_UUID;if(a)dojox.uuid.assert(b.isString(a)),this._uuidString=a.toLowerCase(),dojox.uuid.assert(this.isValid());else if(a=dojox.uuid.Uuid.getGenerator())this._uuidString=a(),dojox.uuid.assert(this.isValid())};dojox.uuid.Uuid.compare=function(a,b){var c=a.toString(),d=b.toString();return c>d?1:c<d?-1:0};dojox.uuid.Uuid.setGenerator=function(a){dojox.uuid.assert(!a||b.isFunction(a));
dojox.uuid.Uuid._ourGenerator=a};dojox.uuid.Uuid.getGenerator=function(){return dojox.uuid.Uuid._ourGenerator};dojox.uuid.Uuid.prototype.toString=function(){return this._uuidString};dojox.uuid.Uuid.prototype.compare=function(a){return dojox.uuid.Uuid.compare(this,a)};dojox.uuid.Uuid.prototype.isEqual=function(a){return 0==this.compare(a)};dojox.uuid.Uuid.prototype.isValid=function(){return dojox.uuid.isValid(this)};dojox.uuid.Uuid.prototype.getVariant=function(){return dojox.uuid.getVariant(this)};
dojox.uuid.Uuid.prototype.getVersion=function(){this._versionNumber||(this._versionNumber=dojox.uuid.getVersion(this));return this._versionNumber};dojox.uuid.Uuid.prototype.getNode=function(){this._nodeString||(this._nodeString=dojox.uuid.getNode(this));return this._nodeString};dojox.uuid.Uuid.prototype.getTimestamp=function(a){a||(a=null);switch(a){case "string":case String:return this.getTimestamp(Date).toUTCString();case "hex":return this._timestampAsHexString||(this._timestampAsHexString=dojox.uuid.getTimestamp(this,
"hex")),this._timestampAsHexString;case null:case "date":case Date:return this._timestampAsDate||(this._timestampAsDate=dojox.uuid.getTimestamp(this,Date)),this._timestampAsDate;default:dojox.uuid.assert(!1,"The getTimestamp() method dojox.uuid.Uuid was passed a bogus returnType: "+a)}};return dojox.uuid.Uuid});