text: var crypto = require('crypto');
  function CoreMotionQuaternion(__SLAG_PROPERTIES) {
  	__SLAG_PROPERTIES = __SLAG_PROPERTIES || {};
  	var __SLAG_DEVICE = JSON.parse(process.env.SLAG_DEVICE);
  	var __SLAG_CHECKS = [], __SLAG_NAMES = [
  			'x',
  			'y',
  			'z',
  			'w',
  			'id'
  		];
  	if (__SLAG_NAMES.length > 0 && process.env.SLAG_STRICT === 'true') {
  		for (var __SLAG_NAME in __SLAG_PROPERTIES) {
  			if (__SLAG_NAMES.indexOf(__SLAG_NAME) === -1) {
  				throw new Error('Use user custom property ' + __SLAG_NAME);
  			}
  		}
  	} else if (__SLAG_NAMES.length === 0 && __SLAG_PROPERTIES.length > 0 && process.env.SLAG_STRICT === 'true') {
  		throw new Error('Use user custom properties. ' + __SLAG_PROPERTIES.join(', '));
  	}
  	var md5 = crypto.createHash('md5');
  	md5.update(crypto.randomBytes(32), 'binary');
  	this.__SLAG_ID = md5.digest('hex');
  	this.__SLAG_PARENT;
  	if (__SLAG_PROPERTIES.x) {
  		throw new Error('CoreMotionQuaternion.x is read only property');
  	}
  	if (['ios'].indexOf(process.env.SLAG_PLATFORM) === -1) {
  		this.x = undefined;
  	} else {
  		this.x = 0;
  	}
  	if (__SLAG_PROPERTIES.y) {
  		throw new Error('CoreMotionQuaternion.y is read only property');
  	}
  	if (['ios'].indexOf(process.env.SLAG_PLATFORM) === -1) {
  		this.y = undefined;
  	} else {
  		this.y = 0;
  	}
  	if (__SLAG_PROPERTIES.z) {
  		throw new Error('CoreMotionQuaternion.z is read only property');
  	}
  	if (['ios'].indexOf(process.env.SLAG_PLATFORM) === -1) {
  		this.z = undefined;
  	} else {
  		this.z = 0;
  	}
  	if (__SLAG_PROPERTIES.w) {
  		throw new Error('CoreMotionQuaternion.w is read only property');
  	}
  	if (['ios'].indexOf(process.env.SLAG_PLATFORM) === -1) {
  		this.w = undefined;
  	} else {
  		this.w = 0;
  	}
  	this.id = __SLAG_PROPERTIES.id || '';
  	return this;
  }
  module.exports = function (properties) {
  	return new CoreMotionQuaternion(properties);
  };