const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
const require_rng = require('./rng.cjs');
const require_stringify = require('./stringify.cjs');

//#region ../../node_modules/samlify/node_modules/uuid/dist/esm-node/v4.js
function v4(options, buf, offset) {
	options = options || {};
	const rnds = options.random || (options.rng || require_rng.default)();
	rnds[6] = rnds[6] & 15 | 64;
	rnds[8] = rnds[8] & 63 | 128;
	if (buf) {
		offset = offset || 0;
		for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
		return buf;
	}
	return require_stringify.default(rnds);
}
var v4_default;
var init_v4 = require_rolldown_runtime.__esm({ "../../node_modules/samlify/node_modules/uuid/dist/esm-node/v4.js": (() => {
	require_rng.init_rng();
	require_stringify.init_stringify();
	v4_default = v4;
}) });

//#endregion
init_v4();
exports.default = v4_default;
Object.defineProperty(exports, 'init_v4', {
  enumerable: true,
  get: function () {
    return init_v4;
  }
});
//# sourceMappingURL=v4.cjs.map