text: !function e(r,t,n){function o(u,s){if(!t[u]){if(!r[u]){var i="function"==typeof require&&require;if(!s&&i)return i(u,!0);if(a)return a(u,!0);throw new Error("Cannot find module '"+u+"'")}var l=t[u]={exports:{}};r[u][0].call(l.exports,function(e){var t=r[u][1][e];return o(t||e)},l,l.exports,e,r,t,n)}return t[u].exports}for(var a="function"==typeof require&&require,u=0;u<n.length;u++)o(n[u]);return o}({1:[function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(r,t){var n=(t=t||{}).ignoreDocErr||!1,o=t.types||["get","post","put","delete"],a=t.timeout||0;Array.isArray(o)||(o=[o]),o.forEach(function(t){r[t]=function(r,o){var i={};for(var l in r)i[l]=r[l];i.type=t.toUpperCase(),i.contentType=i.contentType||"application/json",i.dataType=i.dataType||"json",i.timeout=i.timeout||a,i.success=i.success||function(e){if(o){var a=null;e&&e.err&&(s.debug(t.toUpperCase()+" failed. request: "+JSON.stringify(r)+" response: "+JSON.stringify(e)),n||(a=new Error(e.msg||e.err))),o(a,e)}},i.error=i.error||function(e,n,a){var l=t.toUpperCase()+" "+r.url,f=u.FA_NETWORK;i.error.timeout&&(a=new Error("timeout"),f=u.FA_TIMEOUT),a=a||new Error(l),s.debug(t.toUpperCase()+" failed. request: "+JSON.stringify(r)+" response: "+JSON.stringify(f)),o&&o(a,f)},e.ajax(i)}})}};var o=n(e("jm-err")),a=n(e("jm-logger")),u=o.default.Err,s=a.default.getLogger("jm:ajax");r.exports=t.default},{"jm-err":3,"jm-logger":6}],2:[function(e,r,t){(function(n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=o(e("jm-err")),u=o(e("./enableajax")),s=a.default.Err,i={};if(function(e){var r={extend:function(e){return r.each(Array.prototype.slice.call(arguments,1),function(r){for(var t in r)void 0!==r[t]&&(e[t]=r[t])}),e},each:function(e,r,t){if(null!==e)if(n&&e.forEach===n)e.forEach(r,t);else if(e.length===+e.length){for(var o=0,a=e.length;o<a;o++)if(o in e&&r.call(t,e[o],o,e)===breaker)return}else for(var u in e)if(hasOwnProperty.call(e,u)&&r.call(t,e[u],u,e)===breaker)return}},t={},n=Array.prototype.forEach,o=r.extend;t.xhr=function(){return new XMLHttpRequest},t._xhrResp=function(e){switch(e.getResponseHeader("Content-Type").split(";")[0]){case"text/xml":return e.responseXML;case"text/json":case"application/json":case"text/javascript":case"application/javascript":case"application/x-javascript":try{return JSON.parse(e.responseText)}catch(e){return s.FAIL}default:return e.responseText}},t._formData=function(e){var r=[],t=/%20/g;for(var n in e)void 0!=e[n]&&null!=e[n]&&r.push(encodeURIComponent(n).replace(t,"+")+"="+encodeURIComponent(e[n].toString()).replace(t,"+"));return r.join("&")},t.ajax=function(e){var r=t.xhr(),n=null,a=0;if("function"==typeof r.open){(e=o({userAgent:"XMLHttpRequest",lang:"en",type:"GET",data:null,contentType:"application/x-www-form-urlencoded"},e)).timeout&&(n=setTimeout(function(){e.error.timeout=!0,r.abort(),e.timeoutFn&&e.timeoutFn(e.url)},e.timeout)),r.onreadystatechange=function(){4==r.readyState?(null!=n&&(clearTimeout(n),n=null),r.status>=200&&r.status<300||304===r.status?e.success&&e.success(t._xhrResp(r)):e.error&&e.error(r,r.status,r.statusText),e.complete&&e.complete(t._xhrResp(r),r,r.statusText)):e.progress&&e.progress(++a)};var u=e.url,s=null;e.type=(e.type||"GET").toUpperCase();var i="POST"===e.type||"PUT"===e.type;if(!i&&e.data&&(u+="?"+t._formData(e.data)),r.open(e.type,u),e.headers)for(var l in e.headers)e.headers[l]&&r.setRequestHeader(l,e.headers[l]);if(i){var f=e.contentType.indexOf("json")>=0;s=f?JSON.stringify(e.data):t._formData(e.data),r.setRequestHeader("Content-Type",f?"application/json":"application/x-www-form-urlencoded")}s?r.send(s):r.send()}},e.ajax=t.ajax}(i),i.enableAjax=(0,u.default)(i),void 0!==n&&n){n.jm||(n.jm={});var l=n.jm;l.ajax||(l.ajax=i.ajax,l.enableAjax=i.enableAjax)}t.default=i,r.exports=t.default}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./enableajax":1,"jm-err":3}],3:[function(e,r,t){(function(n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(e("./locale")),a={SUCCESS:{err:0,msg:"Success"},FAIL:{err:1,msg:"Fail"},FA_SYS:{err:2,msg:"System Error"},FA_NETWORK:{err:3,msg:"Network Error"},FA_PARAMS:{err:4,msg:"Parameter Error"},FA_BUSY:{err:5,msg:"Busy"},FA_TIMEOUT:{err:6,msg:"Time Out"},FA_ABORT:{err:7,msg:"Abort"},FA_NOTREADY:{err:8,msg:"Not Ready"},FA_NOTEXISTS:{err:9,msg:"Not Exists"},FA_EXISTS:{err:8,msg:"Already Exists"},OK:{err:200,msg:"OK"},FA_BADREQUEST:{err:400,msg:"Bad Request"},FA_NOAUTH:{err:401,msg:"Unauthorized"},FA_NOPERMISSION:{err:403,msg:"Forbidden"},FA_NOTFOUND:{err:404,msg:"Not Found"},FA_INTERNALERROR:{err:500,msg:"Internal Server Error"},FA_UNAVAILABLE:{err:503,msg:"Service Unavailable"}};a.t=o.default;var u=function(e,r){if(r){var t=!0,n=!1,o=void 0;try{for(var a,u=Object.keys(r)[Symbol.iterator]();!(t=(a=u.next()).done);t=!0){var s=a.value;e=e.split("${"+s+"}").join(r[s])}}catch(e){n=!0,o=e}finally{try{!t&&u.return&&u.return()}finally{if(n)throw o}}}return e},s=function(e,r){"string"==typeof e&&(e={msg:e});var t=u(e.msg,r),n=new Error(t);return e.err&&(n.code=e.err),n},i=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Err";return!e[r]&&(e[r]=a,e.err=s,e.errMsg=u,!0)},l={Err:a,errMsg:u,err:s,enableErr:i,disableErr:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Err";e[r]&&(delete e[r],delete e.err,delete e.errMsg)}};if(void 0!==n&&n){n.jm||(n.jm={});var f=n.jm;if(!f.enableErr){i(f);for(var c in l)f[c]=l[c]}}t.default=l,r.exports=t.default}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./locale":4}],4:[function(e,r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,r){return r&&n[r]?n[r][e]:null};var n={zh_CN:function(e){return e&&e.__esModule?e:{default:e}}(e("./zh_CN")).default};r.exports=t.default},{"./zh_CN":5}],5:[function(e,r,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={Success:"成功",Fail:"失败","System Error":"系统错误","Network Error":"网络错误","Parameter Error":"参数错误",Busy:"忙","Time Out":"超时",Abort:"中止","Not Ready":"未准备好","Not Exists":"不存在","Already Exists":"已存在",OK:"OK","Bad Request":"错误请求",Unauthorized:"未验证",Forbidden:"无权限","Not Found":"未找到","Internal Server Error":"服务器内部错误","Service Unavailable":"无效服务"},r.exports=t.default},{}],6:[function(e,r,t){(function(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return console.debug||(console.debug=console.log),console},o={logger:n(),getLogger:n,moduleLogger:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"logger",r=this;return r.getLogger=n,r.logger=n(),{name:e,unuse:function(){delete r.logger,delete r.getLogger}}}};if(void 0!==e&&e){e.jm||(e.jm={});var a=e.jm;if(!a.logger)for(var u in o)a[u]=o[u]}t.default=o,r.exports=t.default}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2]);