(function(){"use strict";var e={phone:"u8://web.client/api/phone/"};function n(e){$.extend(this,e);this.requiresAuthentication=true;this.product="update.launcher";this._texts={};this.bind(e);this._create()}n.makeClass({events:["Create"]});$.extend(n.prototype,{dispose:function(){if(!this._plugin){return}},initialize:function(){var n={};var t=u8.services.launcher;var i={};var r=$.Deferred();t.call(e.phone+"create",n).done(function(e){i.id=e;c()}).fail(function(e){r.reject(e)});function c(){t.call(e.phone+"start",i.id).done(function(e){r.resolve()}).fail(function(e){r.reject(e)})}return r.promise()},_create:function(){var e=this;u8.services.launcher.connect().done(function(){e._version=u8.services.launcher.version;e.raise("Create",{plugin:e})}).fail(function(n){e.raise("Create",{error:n})})}});u8.services.ready("phone",function(){u8.services.phone.launcherPhone=function(e){return new n(e)}})})();