cordova.define("cordova-plugin-device.device",function(require,exports,module){var argscheck=require("cordova/argscheck"),channel=require("cordova/channel"),utils=require("cordova/utils"),exec=require("cordova/exec"),cordova=require("cordova");function Device(){this.available=!1,this.platform=null,this.version=null,this.uuid=null,this.cordova=null,this.model=null,this.manufacturer=null,this.isVirtual=null,this.serial=null;var me=this;channel.onCordovaReady.subscribe(function(){me.getInfo(function(info){var buildLabel=cordova.version;me.available=!0,me.platform=info.platform,me.version=info.version,me.uuid=info.uuid,me.cordova=buildLabel,me.model=info.model,me.isVirtual=info.isVirtual,me.manufacturer=info.manufacturer||"unknown",me.serial=info.serial||"unknown",channel.onCordovaInfoReady.fire()},function(e){me.available=!1,utils.alert("[ERROR] Error initializing Cordova: "+e)})})}channel.createSticky("onCordovaInfoReady"),channel.waitForInitialization("onCordovaInfoReady"),Device.prototype.getInfo=function(successCallback,errorCallback){argscheck.checkArgs("fF","Device.getInfo",arguments),exec(successCallback,errorCallback,"Device","getDeviceInfo",[])},module.exports=new Device});