"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Guid = void 0;
var Guid = (function () {
    function Guid() {
        this.internalGuid = '';
        this.setRandomInternalGuid();
    }
    Guid.prototype.toString = function () {
        return this.internalGuid;
    };
    Guid.newGuid = function () {
        return new Guid();
    };
    Guid.prototype.setRandomInternalGuid = function () {
        this.internalGuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
            var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8);
            return v.toString(16);
        });
    };
    return Guid;
}());
exports.Guid = Guid;

//# sourceMappingURL=guid.js.map
