/* 2016-09-23 17:25:32 */ try{!function(){var build_index_preconfig,common_errorStackParser,util_typeOf,util_cookie,util_uuidcore,common_uuid,common_Parser,util_JSON_stringify,common_report,build_index_footer;build_index_preconfig=function(){window.__FEERP__={product:"webgame",errorQueue:[],debug:!1,preErrFun:function(){var r=window.__FEERP__;return r.errorQueue.push(arguments),!(r.debug===!0)}},window.onerror=__FEERP__.preErrFun}(),common_errorStackParser=function(){var r=function(){this.init()};r.FIREFOX_SAFARI_STACK_REGEXP=/\S+\:\d+/,r.CHROME_IE_STACK_REGEXP=/\s+at /,r.prototype={constructor:r,init:function(){},parse:function(e){return"undefined"!=typeof e.stacktrace||"undefined"!=typeof e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(r.CHROME_IE_STACK_REGEXP)?this.parseV8OrIE(e):e.stack&&e.stack.match(r.FIREFOX_SAFARI_STACK_REGEXP)?this.parseFFOrSafari(e):[]},extractLocation:function(r){var e=r.split(":"),t=e.pop(),n=e[e.length-1];if(!isNaN(parseFloat(n))&&isFinite(n)){var o=e.pop();return[e.join(":"),o,t]}return[e.join(":"),t,void 0]},parseV8OrIE:function(r){return r.stack.split("\n").slice(1).map(function(r){var e=r.replace(/^\s+/,"").split(/\s+/).slice(1),t=this.extractLocation(e.pop().replace(/[\(\)\s]/g,"")),n=e[0]&&"Anonymous"!==e[0]?e[0]:void 0;return[n,t[0],t[1],t[2]]},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(r.FIREFOX_SAFARI_STACK_REGEXP)}).map(function(r){var e=r.split("@"),t=this.extractLocation(e.pop()),n=e.shift()||void 0;return[n,t[0],t[1],t[2]]},this)},parseOpera:function(r){return!r.stacktrace||r.message.indexOf("\n")>-1&&r.message.split("\n").length>r.stacktrace.split("\n").length?this.parseOpera9(r):r.stack?this.parseOpera11(r):this.parseOpera10(r)},parseOpera9:function(r){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,t=r.message.split("\n"),n=[],o=2,i=t.length;o/,"$2").replace(/\([^\)]*\)/g,"")||void 0;return[o,t[0],t[1],t[2]]},this)}};var e=new r;return e}(),function(r,e){util_typeOf=function(){return"function"==typeof e?e():e}()}(this,function(){var r=Object.prototype.toString,e=function(e){switch(r.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if("object"==typeof e&&e&&"number"==typeof e.length)try{if("function"==typeof e.callee)return"arguments"}catch(t){if(t instanceof TypeError)return"arguments"}return null===e?"null":void 0===e?"undefined":e&&1===e.nodeType?"element":e===Object(e)?"object":typeof e};return e}),!function(r,e){var t=function(){return t.get.apply(t,arguments)},n=t.utils={isArray:Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)},isPlainObject:function(r){return!!r&&"[object Object]"===Object.prototype.toString.call(r)},toArray:function(r){return Array.prototype.slice.call(r)},getKeys:Object.keys||function(r){var e=[],t="";for(t in r)r.hasOwnProperty(t)&&e.push(t);return e},escape:function(r){return String(r).replace(/[,;"\\=\s%]/g,function(r){return encodeURIComponent(r)})},retrieve:function(r,e){return null==r?e:r}};t.defaults={},t.expiresMultiplier=86400,t.set=function(t,o,i){if(n.isPlainObject(t))for(var a in t)t.hasOwnProperty(a)&&this.set(a,t[a],o);else{i=n.isPlainObject(i)?i:{expires:i};var u=i.expires!==e?i.expires:this.defaults.expires||"",s=typeof u;"string"===s&&""!==u?u=new Date(u):"number"===s&&(u=new Date(+new Date+1e3*this.expiresMultiplier*u)),""!==u&&"toGMTString"in u&&(u=";expires="+u.toGMTString());var c=i.path||this.defaults.path;c=c?";path="+c:"";var p=i.domain||this.defaults.domain;p=p?";domain="+p:"";var f=i.secure||this.defaults.secure?";secure":"";r.cookie=n.escape(t)+"="+n.escape(o)+u+c+p+f}return this},t.remove=function(r){r=n.isArray(r)?r:n.toArray(arguments);for(var e=0,t=r.length;e0;n>>>=1,o+=o)1&n&&(t=o+t);return t},r}),common_uuid=function(r,e){var t={name:"FEERP_UUID",expires:3650,get:function(){var e=r.get(this.name);return e||(e=this.generate()),e},generate:function(){var t=e.generate();return r.set(this.name,t,this.expires),t}};return t}(util_cookie,util_uuidcore),common_Parser=function(errorStackParser,typeOf,uuid){var ErrorParser=function(){this.init()};ErrorParser.stackLength=5,ErrorParser.prototype={reportModel:{product:window.__FEERP__.product,domain:"",url:"",error:{},browser:"",os:"",flash:"",type:"default",time:"",uuid:"",tips:""},init:function(){this.reportModel.os=navigator.platform,this.reportModel.browser=encodeURIComponent(navigator.userAgent),this.reportModel.screen=screen.width+"x"+screen.height,this.reportModel.domain=window.location.host,this.reportModel.url=encodeURIComponent(window.location.href),this.reportModel.uuid=uuid.get(),this.reportModel.flash=this.getFlashVersion()},checkErrorType:function(r){r.length<=1?r[0][4]instanceof EvalError?(this.reportModel.type="EvalError",this.reportModel.tips="EvalError对象表示全局函数eval()中发生的错误"):r[0][4]instanceof ReferenceError?(this.reportModel.type="ReferenceError",this.reportModel.tips="ReferenceError错误对象会在引用未定义的变量时触发。"):r[0][4]instanceof SyntaxError&&(this.reportModel.type="SyntaxError",this.reportModel.tips="SyntaxError错误对象会使用不合法的语法结构时触发。"):2==r.length?(this.reportModel.type=r[1],this.reportModel.tips="自定义错误类型"):(this.reportModel.type=r[1],this.reportModel.tips=r[2])},parse:function(r){return this.checkErrorType(r),this.reportModel.time=(new Date).getTime(),"object"===typeOf(r[0])?this.parseTryCatch(r[0]):this.parseWinError(r[0])},parseTryCatch:function(r){var e=this.parseStack(r);return this.formatData(r,e)},formatData:function(r,e){var t=JSON.parse(JSON.stringify(this.reportModel));if(e.length){var n=e[0];t.error.msg=r.toString(),t.error.method=n[0],t.error.url=n[1],t.error.line=n[2],t.error.column=n[3],t.error.stack=e}else t.error.msg=r.toString();return t},parseWinError:function(r){if(r&&"object"===typeOf(r[4]))return this.parseTryCatch(r[4]);var e=this.reportModel;return e.error.msg=r[0],e.error.url=r[1],e.error.column=r[2],e},parseStack:function(r){var e=errorStackParser.parse(r);return e.length>ErrorParser.stackLength&&(e.length=ErrorParser.stackLength),e},replaceBlank:function(r){var e=r.toString();return e=e.replace(/ /g,""),e=e.replace(/ /g,""),e=e.replace(/&/g,"|||"),e=e.replace(/r/g,"")},getFlashVersion:function(){var f="0",n=navigator;if(n.plugins&&n.plugins.length){for(var ii=0;ii=2;ii--)try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if(fl){f=ii+".0";break}}catch(e){}return parseInt(this.replaceBlank(f))}};var errorParser=new ErrorParser;return errorParser}(common_errorStackParser,util_typeOf,common_uuid),function(r,e){util_JSON_stringify=function(){return"function"==typeof e?e():e}()}(this,function(){function r(r){return'"'+r.replace(o,function(r){var e=i[r];return"string"==typeof e?e:"\\u"+("0000"+r.charCodeAt(0).toString(16)).slice(-4)})+'"'}function e(r){return r<10?"0"+r:r}function t(n,o){var i,a,u,s,c=o[n],p=typeof c;switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(n),p=typeof c),p){case"string":return r(c);case"number":return isFinite(c)?String(c):"null";case"boolean":return String(c);case"object":if(!c)return"null";switch(Object.prototype.toString.call(c)){case"[object Date]":return isFinite(c.valueOf())?'"'+c.getUTCFullYear()+"-"+e(c.getUTCMonth()+1)+"-"+e(c.getUTCDate())+"T"+e(c.getUTCHours())+":"+e(c.getUTCMinutes())+":"+e(c.getUTCSeconds())+'Z"':"null";case"[object Array]":for(u=c.length,s=[],i=0;i