!function(){$.utils||($.utils={});$.utils.getPreference=function(){if($.preference)return $.preference;$.preference=qyboot.getPreference($.user.userid+"/gamemei");return $.preference};$.utils.savePreference=function(e){$.preference=e;qyboot.savePreference($.user.userid+"/gamemei",e)};$.utils.startAutoSave=function(){$.utils.stopAutoSave();var e=$.utils.getPreference();e.autoSaving!==!1&&($.autoSaveInterval=setInterval(function(){if($.utils.anyChanges()){$.utils.alert(i18n("auto_saving"));$.utils.saveData(!1,function(e){e&&$.utils.alert(i18n("auto_save_succeed"))})}},6e3*(e.autoSaving||20)))};$.utils.stopAutoSave=function(){$.autoSaveInterval&&clearInterval($.autoSaveInterval)};$.utils.isMouseScollScale=function(){var e=$.utils.getPreference()||{};return void 0===e.mouseScollScale?!0:e.mouseScollScale}}();