hanzi-mobile-package
Version:
Hanzi mobile Package
10 lines • 34.7 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["Hanzi-vue-package"]=e():t["Hanzi-vue-package"]=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_axios=__webpack_require__(12),_axios2=_interopRequireDefault(_axios),_jsMd=__webpack_require__(31),_jsMd2=_interopRequireDefault(_jsMd);exports.default={errorData:{},loginStatus:{},axios:_axios2.default,ajax:function(t){var e=this,r="";tools.url.params("usertest")&&"debug"===config.environment&&(r=t.url.match("[?]")?"&usertest="+tools.url.params("usertest"):"?usertest="+tools.url.params("usertest"));var n=void 0!==t.url?window.config.api.url+t.url+r:"/",o={url:n,ajaxData:t.ajaxData||{},successFun:t.successFun||"",errorFun:t.errorFun||"",type:t.type||"POST",timeout:t.timeout||1e4,isLoading:t.isLoading||0},i={};i.data=t.ajaxData,i.method=t.type,i.timeout=t.timeout,i.url=n;for(var s in i.data)i.data[s]||0===i.data[s]?"number"==typeof i.data[s]&&(i.data[s]=i.data[s].toString()):delete i.data[s];o.params={},o.data={},"GET"==t.type?(i.params=t.ajaxData,o.params=o.ajaxData):(i.data=t.ajaxData,o.data=o.ajaxData);var a=this.cache.get("Authorization")||"",u=tools.cache.get("sk");i.method=i.method?i.method.toUpperCase():"";var f=window.config.api.url.replace("http://","").replace("https://",""),c=(new Date).getTime(),l=t.url,p=l.indexOf("?");if(p>=0){l=l.substr(0,p);var d=i.url.replace(l,"");i.data=$.extend(!0,i.data,this.GetRequest(d))}var h={sk:u,path:l,method:i.method,nowtime:c,param_str:this.objToStr(this.ksort(i.data)),api:f},y=h.method+"/"+h.sk+"/"+h.nowtime+"/"+h.api+h.path+"?"+h.param_str,m={"X-ISAPI":1,"X-Hztimestmps":c,"X-Signingkey":btoa((0,_jsMd2.default)(y)),Authorization:a};if(m=$.extend(!0,m,t.headers),"POST"==i.method||"PUT"==i.method||"DELETE"==i.method)for(var g in i.data)if("[object Array]"===toString.apply(i.data[g])){"0"==i.data[g].length&&delete i.data[g],m["Content-Type"]="application/json";break}if(o.isLoading&&tools.alert.loading(),1==tools.cache.get("is_sign"))var _={method:i.method,url:i.url,params:i.params,data:i.data,timeout:i.timeout,withCredentials:config.withCredentials,headers:m};else{var _={method:o.type,url:o.url,params:o.params,data:o.data,timeout:o.timeout,withCredentials:config.withCredentials,headers:{"X-ISAPI":1,Authorization:a}};_=Object.assign(t,_)}(0,_axios2.default)(_).then(function(t){o.isLoading&&tools.alert.closeLoading(),"function"==typeof o.successFun&&o.successFun(t.data)}).catch(function(r){if(tools.alert.closeLoading(),!r.response)return log.debug("Error:",r.message),void(r.message.indexOf("timeout")>=0?tools.alert.error("接口超时,请尝试刷新页面后重试"):tools.alert.error("服务器异常",3e3,"ion-android-close"));var n=r.response.status,i=r.response.data,s=r.response.headers,a=i.error_code;return 500===n?void tools.alert.error("服务器异常",3e3,"ion-android-close"):void(e.errorHandle({errcode:a,option:t})&&"function"==typeof o.errorFun&&o.errorFun(i,n,s,r))})},ksort:function(t){var e,r,n,o=[];for(e in t)t.hasOwnProperty(e)&&o.push(e);o.sort(),n=o.length;var i={};for(r=0;r<n;r++)e=o[r],i[e]=t[e];return i},GetRequest:function(t){for(var e=new Object,r=t.substr(1),n=r.split("&"),o=0;o<n.length;o++)e[n[o].split("=")[0]]=unescape(n[o].split("=")[1]);return e},objToStr:function(t){var e="";for(var r in t)"object"!=_typeof(t[r])&&""!==t[r]&&"file"!=r&&(e+=r+"="+t[r]+"&");return e.length>0&&(e=e.substring(0,e.length-1)),e},trim:function(t){return t=t.toString()||"",t.replace(/(^\s*)|(\s*$)/g,"")},date:function(t){function e(e,r){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(e,r){var n=r?new Date(1e3*r):new Date,o=function(t,e){return(t+="").length<e?new Array(++e-t.length).join("0")+t:t},i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},a=["","January","February","March","April","May","June","July","August","September","October","November","December"],u={d:function(){return o(u.j(),2)},D:function(){return t=u.l(),t.substr(0,3)},j:function(){return n.getDate()},l:function(){return i[u.w()]},N:function(){return u.w()+1},S:function(){return s[u.j()]?s[u.j()]:"th"},w:function(){return n.getDay()},z:function(){return(n-new Date(n.getFullYear()+"/1/1"))/864e5>>0},W:function(){var t,e=u.z(),r=364+u.L()-e,o=(new Date(n.getFullYear()+"/1/1").getDay()||7)-1;return r<=2&&(n.getDay()||7)-1<=2-r?1:e<=2&&o>=4&&e>=6-o?(t=new Date(n.getFullYear()-1+"/12/31"),date("W",Math.round(t.getTime()/1e3))):1+(o<=3?(e+o)/7:(e-(7-o))/7)>>0},F:function(){return a[u.n()]},m:function(){return o(u.n(),2)},M:function(){return t=u.F(),t.substr(0,3)},n:function(){return n.getMonth()+1},t:function(){var t;return 2==(t=n.getMonth()+1)?28+u.L():1&t&&t<8||!(1&t)&&t>7?31:30},L:function(){var t=u.Y();return 3&t||!(t%100)&&t%400?0:1},Y:function(){return n.getFullYear()},y:function(){return(n.getFullYear()+"").slice(2)},a:function(){return n.getHours()>11?"pm":"am"},A:function(){return u.a().toUpperCase()},B:function(){var t=60*(n.getTimezoneOffset()+60),e=3600*n.getHours()+60*n.getMinutes()+n.getSeconds()+t,r=Math.floor(e/86.4);return r>1e3&&(r-=1e3),r<0&&(r+=1e3),1==String(r).length&&(r="00"+r),2==String(r).length&&(r="0"+r),r},g:function(){return n.getHours()%12||12},G:function(){return n.getHours()},h:function(){return o(u.g(),2)},H:function(){return o(n.getHours(),2)},i:function(){return o(n.getMinutes(),2)},s:function(){return o(n.getSeconds(),2)},O:function(){var t=o(Math.abs(n.getTimezoneOffset()/60*100),4);return t=n.getTimezoneOffset()>0?"-"+t:"+"+t},P:function(){var t=u.O();return t.substr(0,3)+":"+t.substr(3,2)},c:function(){return u.Y()+"-"+u.m()+"-"+u.d()+"T"+u.h()+":"+u.i()+":"+u.s()+u.P()},U:function(){return Math.round(n.getTime()/1e3)}};return e.replace(/[\\]?([a-zA-Z])/g,function(t,e){var r;return r=t!=e?e:u[e]?u[e]():e})}),strtotime:function(t){var e={};return e.datetime=t||"",t=void 0,e._=e.datetime.toString().indexOf(" ")==-1?e.datetime.toString().indexOf(":")==-1?[e.datetime,""]:["",e.datetime]:e.datetime.split(" "),e.ymd=e._[0]||"",e.his=e._[1]||"",e.ymd=e.ymd.toString().indexOf("-")==-1?[e.ymd]:e.ymd.split("-"),e.his=e.his.toString().indexOf(":")==-1?[e.his]:e.his.split(":"),e.year=(e.ymd[0]||0)-0,e.month=(e.ymd[1]||0)-1,e.day=(e.ymd[2]||0)-0,e.hour=e.his[0]-0,e.minute=e.his[1]-0,e.second=e.his[2]-0,(void 0==e.his[0]||isNaN(e.hour))&&(e.hour=0),(void 0==e.his[1]||isNaN(e.minute))&&(e.minute=0),(void 0==e.his[2]||isNaN(e.second))&&(e.second=0),e.time=new Date(e.year,e.month,e.day,e.hour,e.minute,e.second).getTime(),e=parseInt(e.time/1e3)},now:function(){return(new Date).getTime()},time:function(){return parseInt(this.now()/1e3)},isEmpty:function(t){return null===t||void 0===t||""===t||t===!1||"object"===("undefined"==typeof t?"undefined":_typeof(t))&&0===Object.getOwnPropertyNames(t).length},url:{query:function(){var t=location.href.substring(location.href.indexOf("?")),e=t.substr(1);e.indexOf("#")>=0&&(e=e.split("#")[0]);var r={},n=e.split("&");if(""===e)return r;for(var o=0,i=n.length;o<i;o++){for(var s=n[o].split("="),a="",u=0;u<s.length;u++)0!==u&&(s[u]=""===s[u]?"=":s[u],a+=s[u]);r[s[0]]=a}return r},params:function(t){return this.query()[t]},replaceParamVal:function replaceParamVal(arg,arg_val,url){void 0===url&&(url=window.location.href.toString());var pattern=arg+"=([^&]*)",replaceText=arg+"="+arg_val;if(url.match(pattern)){var tmp="/("+arg+"=)([^&]*)/gi";return tmp=url.replace(eval(tmp),replaceText)}return url.match("[?]")?url+"&"+replaceText:url+"?"+replaceText},replaceParamVals:function(t,e){if(tools.isEmpty(t)&&tools.isEmpty(e))e=window.location.href.toString();else for(var r in t)e=this.replaceParamVal(r,t[r],e);return e},changeUrl:function(t,e){var r=e||{};"Microsoft Internet Explorer"==navigator.appName&&"MSIE9.0"==navigator.appVersion.split(";")[1].replace(/[ ]/g,"")||window.history.pushState(r,0,t)},replaceUrl:function(t,e){var r=e||{};"Microsoft Internet Explorer"==navigator.appName&&"MSIE9.0"==navigator.appVersion.split(";")[1].replace(/[ ]/g,"")||window.history.replaceState(r,0,t)}},cache:{get:function(t){return sessionStorage.getItem(t)},set:function(t,e){return sessionStorage.setItem(t,e)},del:function(t){return sessionStorage.removeItem(t)}},title:{get:function(){return document.title},set:function(t){return document.title=t}},get:{guid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0,r="x"==t?e:3&e|8;return r.toString(16)})}},errorHandle:function(t){for(var e=this.errorData,r=!0,n=0;n<e.length;n++){var o=n;if(t.errcode==e[o].errcode){if(void 0!==e[o].prompt&&""!==e[o].prompt&&window.tools.alert.message(e[o].prompt),""!==e[o].fun&&"function"==typeof e[o].fun&&e[o].fun({option:t.option}),void 0!==e[o].url&&""!==e[o].url&&e[o].url!==-1){var i;i=e[o].url===!0?function(){window.location.reload()}:function(){window.tools.router.push(e[o].url)},setTimeout(i,2e3)}return r=!1,e[o].url===-1}}return r},deleteObj:function(t){for(var e in t)t.hasOwnProperty(e)&&(""!==t[e]&&void 0!==t[e]&&null!==t[e]||delete t[e]);return t}}},function(t,e,r){"use strict";function n(t){return"[object Array]"===A.call(t)}function o(t){return"[object ArrayBuffer]"===A.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function s(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function a(t){return"string"==typeof t}function u(t){return"number"==typeof t}function f(t){return"undefined"==typeof t}function c(t){return null!==t&&"object"===("undefined"==typeof t?"undefined":S(t))}function l(t){return"[object Date]"===A.call(t)}function p(t){return"[object File]"===A.call(t)}function d(t){return"[object Blob]"===A.call(t)}function h(t){return"[object Function]"===A.call(t)}function y(t){return c(t)&&h(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function _(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function v(t,e){if(null!==t&&"undefined"!=typeof t)if("object"===("undefined"==typeof t?"undefined":S(t))||n(t)||(t=[t]),n(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function b(){function t(t,r){"object"===S(e[r])&&"object"===("undefined"==typeof t?"undefined":S(t))?e[r]=b(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)v(arguments[r],t);return e}function w(t,e,r){return v(e,function(e,n){r&&"function"==typeof e?t[n]=E(e,r):t[n]=e}),t}var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E=r(10),A=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:o,isFormData:i,isArrayBufferView:s,isString:a,isNumber:u,isObject:c,isUndefined:f,isDate:l,isFile:p,isBlob:d,isFunction:h,isStream:y,isURLSearchParams:m,isStandardBrowserEnv:_,forEach:v,merge:b,extend:w,trim:g}},function(t,e){"use strict";function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function s(){y&&d&&(y=!1,d.length?h=d.concat(h):m=-1,h.length&&a())}function a(){if(!y){var t=o(s);y=!0;for(var e=h.length;e;){for(d=h,h=[];++m<e;)d&&d[m].run();m=-1,e=h.length}d=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function f(){}var c,l,p=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(t){c=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var d,h=[],y=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];h.push(new u(t,e)),1!==h.length||y||o(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.prependListener=f,p.prependOnceListener=f,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,r){(function(e){"use strict";function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function o(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(6):"undefined"!=typeof e&&(t=r(6)),t}var i=r(1),s=r(27),a=/^\)\]\}',?\n/,u={"Content-Type":"application/x-www-form-urlencoded"},f={adapter:o(),transformRequest:[function(t,e){return s(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(a,"");try{t=JSON.parse(t)}catch(t){}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){f.headers[t]={}}),i.forEach(["post","put","patch"],function(t){f.headers[t]=i.merge(u)}),t.exports=f}).call(e,r(2))},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e,r){(function(e){"use strict";var n=r(1),o=r(19),i=r(22),s=r(28),a=r(26),u=r(9),f="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(21);t.exports=function(t){return new Promise(function(c,l){var p=t.data,d=t.headers;n.isFormData(p)&&delete d["Content-Type"];var h=new XMLHttpRequest,y="onreadystatechange",m=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||a(t.url)||(h=new window.XDomainRequest,y="onload",m=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var g=t.auth.username||"",_=t.auth.password||"";d.Authorization="Basic "+f(g+":"+_)}if(h.open(t.method.toUpperCase(),i(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[y]=function(){if(h&&(4===h.readyState||m)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?h.response:h.responseText,n={data:r,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:e,config:t,request:h};o(c,l,n),h=null}},h.onerror=function(){l(u("Network Error",t)),h=null},h.ontimeout=function(){l(u("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),h=null},n.isStandardBrowserEnv()){var v=r(24),b=(t.withCredentials||a(t.url))&&t.xsrfCookieName?v.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&n.forEach(d,function(t,e){"undefined"==typeof p&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(t){if("json"!==h.responseType)throw t}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),l(t),h=null)}),void 0===p&&(p=null),h.send(p)})}}).call(e,r(2))},function(t,e){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";var n=r(18);t.exports=function(t,e,r,o){var i=new Error(t);return n(i,e,r,o)}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},,function(t,e,r){"use strict";t.exports=r(13)},function(t,e,r){"use strict";function n(t){var e=new s(t),r=i(s.prototype.request,e);return o.extend(r,s.prototype,e),o.extend(r,e),r}var o=r(1),i=r(10),s=r(15),a=r(4),u=n(a);u.Axios=s,u.create=function(t){return n(o.merge(a,t))},u.Cancel=r(7),u.CancelToken=r(14),u.isCancel=r(8),u.all=function(t){return Promise.all(t)},u.spread=r(29),t.exports=u,t.exports.default=u},function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new o(t),e(r.reason))})}var o=r(7);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t,e=new n(function(e){t=e});return{token:e,cancel:t}},t.exports=n},function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new s,response:new s}}var o=r(4),i=r(1),s=r(16),a=r(17),u=r(25),f=r(23);n.prototype.request=function(t){"string"==typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(o,this.defaults,{method:"get"},t),t.baseURL&&!u(t.url)&&(t.url=f(t.baseURL,t.url));var e=[a,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},i.forEach(["delete","get","head"],function(t){n.prototype[t]=function(e,r){return this.request(i.merge(r||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(i.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},function(t,e,r){"use strict";function n(){this.handlers=[]}var o=r(1);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=r(1),i=r(20),s=r(8),a=r(4);t.exports=function(t){n(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||a.adapter;return e(t).then(function(e){return n(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return s(e)||(n(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e){"use strict";t.exports=function(t,e,r,n){return t.config=e,r&&(t.code=r),t.response=n,t}},function(t,e,r){"use strict";var n=r(9);t.exports=function(t,e,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r)):t(r)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},function(t,e){"use strict";function r(){this.message="String contains an invalid character"}function n(t){for(var e,n,i=String(t),s="",a=0,u=o;i.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&e>>8-a%1*8)){if(n=i.charCodeAt(a+=.75),n>255)throw new r;e=e<<8|n}return s}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",t.exports=n},function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=r(1);t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(o.isURLSearchParams(e))i=e.toString();else{var s=[];o.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(o.isArray(t)&&(e+="[]"),o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),s.push(n(e)+"="+n(t))}))}),i=s.join("&")}return i&&(t+=(t.indexOf("?")===-1?"?":"&")+i),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,r){"use strict";var n=r(1);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,o,i,s){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";var n=r(1);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(r){var o=n.isString(r)?t(r):r;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){var e,r,o,i={};return t?(n.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e&&(i[e]=i[e]?i[e]+", "+r:r)}),i):i}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},,function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(process,global,module){"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/**
* [js-md5]{@link https://github.com/emn178/js-md5}
*
* @namespace md5
* @version 0.7.3
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/
!function(){function Md5(t){if(t)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}var ERROR="input is invalid type",WINDOW="object"===("undefined"==typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"==typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===("undefined"==typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(5),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===("undefined"==typeof t?"undefined":_typeof(t))&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var r=OUTPUT_TYPES[e];t[r]=createOutputMethod(r)}return t},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("md5").update(t,"utf8").digest("hex");if(null===t||void 0===t)throw ERROR;return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===Buffer?crypto.createHash("md5").update(new Buffer(t)).digest("hex"):method(t)};return nodeMethod};Md5.prototype.update=function(t){if(!this.finalized){var e,r="undefined"==typeof t?"undefined":_typeof(t);if("string"!==r){if("object"!==r)throw ERROR;if(null===t)throw ERROR;if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw ERROR;e=!0}for(var n,o,i=0,s=t.length,a=this.blocks,u=this.buffer8;i<s;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)if(ARRAY_BUFFER)for(o=this.start;i<s&&o<64;++i)u[o++]=t[i];else for(o=this.start;i<s&&o<64;++i)a[o>>2]|=t[i]<<SHIFT[3&o++];else if(ARRAY_BUFFER)for(o=this.start;i<s&&o<64;++i)n=t.charCodeAt(i),n<128?u[o++]=n:n<2048?(u[o++]=192|n>>6,u[o++]=128|63&n):n<55296||n>=57344?(u[o++]=224|n>>12,u[o++]=128|n>>6&63,u[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++i)),u[o++]=240|n>>18,u[o++]=128|n>>12&63,u[o++]=128|n>>6&63,u[o++]=128|63&n);else for(o=this.start;i<s&&o<64;++i)n=t.charCodeAt(i),n<128?a[o>>2]|=n<<SHIFT[3&o++]:n<2048?(a[o>>2]|=(192|n>>6)<<SHIFT[3&o++],a[o>>2]|=(128|63&n)<<SHIFT[3&o++]):n<55296||n>=57344?(a[o>>2]|=(224|n>>12)<<SHIFT[3&o++],a[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],a[o>>2]|=(128|63&n)<<SHIFT[3&o++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++i)),a[o>>2]|=(240|n>>18)<<SHIFT[3&o++],a[o>>2]|=(128|n>>12&63)<<SHIFT[3&o++],a[o>>2]|=(128|n>>6&63)<<SHIFT[3&o++],a[o>>2]|=(128|63&n)<<SHIFT[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,r,n,o,i,s=this.blocks;this.first?(t=s[0]-680876937,t=(t<<7|t>>>25)-271733879<<0,n=(-1732584194^2004318071&t)+s[1]-117830708,n=(n<<12|n>>>20)+t<<0,r=(-271733879^n&(t^-271733879))+s[2]-1126478375,r=(r<<17|r>>>15)+n<<0,e=(t^r&(n^t))+s[3]-1316259209,e=(e<<22|e>>>10)+r<<0):(t=this.h0,e=this.h1,r=this.h2,n=this.h3,t+=(n^e&(r^n))+s[0]-680876936,t=(t<<7|t>>>25)+e<<0,n+=(r^t&(e^r))+s[1]-389564586,n=(n<<12|n>>>20)+t<<0,r+=(e^n&(t^e))+s[2]+606105819,r=(r<<17|r>>>15)+n<<0,e+=(t^r&(n^t))+s[3]-1044525330,e=(e<<22|e>>>10)+r<<0),t+=(n^e&(r^n))+s[4]-176418897,t=(t<<7|t>>>25)+e<<0,n+=(r^t&(e^r))+s[5]+1200080426,n=(n<<12|n>>>20)+t<<0,r+=(e^n&(t^e))+s[6]-1473231341,r=(r<<17|r>>>15)+n<<0,e+=(t^r&(n^t))+s[7]-45705983,e=(e<<22|e>>>10)+r<<0,t+=(n^e&(r^n))+s[8]+1770035416,t=(t<<7|t>>>25)+e<<0,n+=(r^t&(e^r))+s[9]-1958414417,n=(n<<12|n>>>20)+t<<0,r+=(e^n&(t^e))+s[10]-42063,r=(r<<17|r>>>15)+n<<0,e+=(t^r&(n^t))+s[11]-1990404162,e=(e<<22|e>>>10)+r<<0,t+=(n^e&(r^n))+s[12]+1804603682,t=(t<<7|t>>>25)+e<<0,n+=(r^t&(e^r))+s[13]-40341101,n=(n<<12|n>>>20)+t<<0,r+=(e^n&(t^e))+s[14]-1502002290,r=(r<<17|r>>>15)+n<<0,e+=(t^r&(n^t))+s[15]+1236535329,e=(e<<22|e>>>10)+r<<0,t+=(r^n&(e^r))+s[1]-165796510,t=(t<<5|t>>>27)+e<<0,n+=(e^r&(t^e))+s[6]-1069501632,n=(n<<9|n>>>23)+t<<0,r+=(t^e&(n^t))+s[11]+643717713,r=(r<<14|r>>>18)+n<<0,e+=(n^t&(r^n))+s[0]-373897302,e=(e<<20|e>>>12)+r<<0,t+=(r^n&(e^r))+s[5]-701558691,t=(t<<5|t>>>27)+e<<0,n+=(e^r&(t^e))+s[10]+38016083,n=(n<<9|n>>>23)+t<<0,r+=(t^e&(n^t))+s[15]-660478335,r=(r<<14|r>>>18)+n<<0,e+=(n^t&(r^n))+s[4]-405537848,e=(e<<20|e>>>12)+r<<0,t+=(r^n&(e^r))+s[9]+568446438,t=(t<<5|t>>>27)+e<<0,n+=(e^r&(t^e))+s[14]-1019803690,n=(n<<9|n>>>23)+t<<0,r+=(t^e&(n^t))+s[3]-187363961,r=(r<<14|r>>>18)+n<<0,e+=(n^t&(r^n))+s[8]+1163531501,e=(e<<20|e>>>12)+r<<0,t+=(r^n&(e^r))+s[13]-1444681467,t=(t<<5|t>>>27)+e<<0,n+=(e^r&(t^e))+s[2]-51403784,n=(n<<9|n>>>23)+t<<0,r+=(t^e&(n^t))+s[7]+1735328473,r=(r<<14|r>>>18)+n<<0,e+=(n^t&(r^n))+s[12]-1926607734,e=(e<<20|e>>>12)+r<<0,o=e^r,t+=(o^n)+s[5]-378558,t=(t<<4|t>>>28)+e<<0,n+=(o^t)+s[8]-2022574463,n=(n<<11|n>>>21)+t<<0,i=n^t,r+=(i^e)+s[11]+1839030562,r=(r<<16|r>>>16)+n<<0,e+=(i^r)+s[14]-35309556,e=(e<<23|e>>>9)+r<<0,o=e^r,t+=(o^n)+s[1]-1530992060,t=(t<<4|t>>>28)+e<<0,n+=(o^t)+s[4]+1272893353,n=(n<<11|n>>>21)+t<<0,i=n^t,r+=(i^e)+s[7]-155497632,r=(r<<16|r>>>16)+n<<0,e+=(i^r)+s[10]-1094730640,e=(e<<23|e>>>9)+r<<0,o=e^r,t+=(o^n)+s[13]+681279174,t=(t<<4|t>>>28)+e<<0,n+=(o^t)+s[0]-358537222,n=(n<<11|n>>>21)+t<<0,i=n^t,r+=(i^e)+s[3]-722521979,r=(r<<16|r>>>16)+n<<0,e+=(i^r)+s[6]+76029189,e=(e<<23|e>>>9)+r<<0,o=e^r,t+=(o^n)+s[9]-640364487,t=(t<<4|t>>>28)+e<<0,n+=(o^t)+s[12]-421815835,n=(n<<11|n>>>21)+t<<0,i=n^t,r+=(i^e)+s[15]+530742520,r=(r<<16|r>>>16)+n<<0,e+=(i^r)+s[2]-995338651,e=(e<<23|e>>>9)+r<<0,t+=(r^(e|~n))+s[0]-198630844,t=(t<<6|t>>>26)+e<<0,n+=(e^(t|~r))+s[7]+1126891415,n=(n<<10|n>>>22)+t<<0,r+=(t^(n|~e))+s[14]-1416354905,r=(r<<15|r>>>17)+n<<0,e+=(n^(r|~t))+s[5]-57434055,e=(e<<21|e>>>11)+r<<0,t+=(r^(e|~n))+s[12]+1700485571,t=(t<<6|t>>>26)+e<<0,n+=(e^(t|~r))+s[3]-1894986606,n=(n<<10|n>>>22)+t<<0,r+=(t^(n|~e))+s[10]-1051523,r=(r<<15|r>>>17)+n<<0,e+=(n^(r|~t))+s[1]-2054922799,e=(e<<21|e>>>11)+r<<0,t+=(r^(e|~n))+s[8]+1873313359,t=(t<<6|t>>>26)+e<<0,n+=(e^(t|~r))+s[15]-30611744,n=(n<<10|n>>>22)+t<<0,r+=(t^(n|~e))+s[6]-1560198380,r=(r<<15|r>>>17)+n<<0,e+=(n^(r|~t))+s[13]+1309151649,e=(e<<21|e>>>11)+r<<0,t+=(r^(e|~n))+s[4]-145523070,t=(t<<6|t>>>26)+e<<0,n+=(e^(t|~r))+s[11]-1120210379,n=(n<<10|n>>>22)+t<<0,r+=(t^(n|~e))+s[2]+718787259,r=(r<<15|r>>>17)+n<<0,e+=(n^(r|~t))+s[9]-343485551,e=(e<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,n=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,r,n="",o=this.array(),i=0;i<15;)t=o[i++],e=o[i++],r=o[i++],n+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return t=o[i],n+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))))}()}).call(exports,__webpack_require__(2),function(){return this}(),__webpack_require__(3)(module))}])});