text: !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports={type:function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()},isObject:function(e,t){return t?"object"===this.type(e):e&&"object"===(void 0===e?"undefined":o(e))},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},encode:function(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")},formatParams:function(e){function t(e,s){var i=r.encode,a=r.type(e);if("array"==a)e.forEach(function(e,n){r.isObject(e)||(n=""),t(e,s+"%5B"+n+"%5D")});else if("object"==a)for(var u in e)s?t(e[u],s+"%5B"+i(u)+"%5D"):t(e[u],i(u));else o||(n+="&"),o=!1,n+=s+"="+i(e)}var n="",o=!0,r=this;return this.isObject(e)?(t(e,""),n):e},merge:function(e,t){for(var n in t)e.hasOwnProperty(n)?this.isObject(t[n],1)&&this.isObject(e[n],1)&&this.merge(e[n],t[n]):e[n]=t[n];return e}}},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return function(){function t(){o(this,t),this.requestHeaders={},this.readyState=0,this.timeout=0,this.responseURL="",this.responseHeaders={}}return i(t,[{key:"_call",value:function(e){this[e]&&this[e].apply(this,[].splice.call(arguments,1))}},{key:"_changeReadyState",value:function(e){this.readyState=e,this._call("onreadystatechange")}},{key:"open",value:function(e,t){if(this.method=e,t){if(t=a.trim(t),0!==t.indexOf("http")&&u){var n=document.createElement("a");n.href=t,t=n.href}}else t=location.href;this.responseURL=t,this._changeReadyState(1)}},{key:"send",value:function(t){var n=this;t=t||null;var o=this;if(e){var r={method:o.method,url:o.responseURL,headers:o.requestHeaders||{},body:t};a.merge(r,o._options||{}),"GET"===r.method&&(r.body=null),o._changeReadyState(3);var i=void 0;o.timeout=o.timeout||0,o.timeout>0&&(i=setTimeout(function(){3===o.readyState&&(n._call("onloadend"),o._changeReadyState(0),o._call("ontimeout"))},o.timeout)),r.timeout=o.timeout,e(r,function(e){function t(t){var n=e[t];return delete e[t],n}if(3===o.readyState){clearTimeout(i),o.status=t("statusCode")-0;var n=t("responseText"),r=t("statusMessage");if(o.status){var a=t("headers"),c={};for(var f in a){var l=a[f],p=f.toLowerCase();"object"===(void 0===l?"undefined":s(l))?c[p]=l:(c[p]=c[p]||[],c[p].push(l))}var d=c["set-cookie"];u&&d&&d.forEach(function(e){document.cookie=e.replace(/;\s*httpOnly/gi,"")}),o.responseHeaders=c,o.statusText=r||"",o.response=o.responseText=n,o._response=e,o._changeReadyState(4),o._call("onload")}else o.statusText=n,o._call("onerror",{msg:r});o._call("onloadend")}})}else console.error("Ajax require adapter")}},{key:"setRequestHeader",value:function(e,t){this.requestHeaders[a.trim(e)]=t}},{key:"getResponseHeader",value:function(e){return(this.responseHeaders[e.toLowerCase()]||"").toString()||null}},{key:"getAllResponseHeaders",value:function(){var e="";for(var t in this.responseHeaders)e+=t+":"+this.getResponseHeader(t)+"\r\n";return e||null}},{key:"abort",value:function(e){this._changeReadyState(0),this._call("onerror",{msg:e}),this._call("onloadend")}}],[{key:"setAdapter",value:function(t){e=t}}]),t}()}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(0),u="undefined"!=typeof document;e.exports=r},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),i="undefined"!=typeof document,a=function(){function e(t){function n(e){function t(){e.p=n=o=null}var n=void 0,o=void 0;s.merge(e,{lock:function(){n||(e.p=new Promise(function(e,t){n=e,o=t}))},unlock:function(){n&&(n(),t())},clear:function(){o&&(o("cancel"),t())}})}o(this,e),this.engine=t||XMLHttpRequest,this.default=this;var r=this.interceptors={response:{use:function(e,t){this.handler=e,this.onerror=t}},request:{use:function(e){this.handler=e}}},i=r.request;n(r.response),n(i),this.config={method:"GET",baseURL:"",headers:{},timeout:0,params:{},parseJson:!0,withCredentials:!1}}return r(e,[{key:"request",value:function(e,t,n){var o=this,r=new this.engine,a="Content-Type",u=a.toLowerCase(),c=this.interceptors,f=c.request,l=c.response,p=f.handler,d=new Promise(function(c,d){function h(e){return e&&e.then&&e.catch}function m(e,t){e?e.then(function(){t()}):t()}function y(n){function o(e,t,o){m(l.p,function(){if(e){o&&(t.request=n);var r=e.call(l,t,Promise);t=void 0===r?t:r}h(t)||(t=Promise[0===o?"resolve":"reject"](t)),t.then(function(e){c(e)}).catch(function(e){d(e)})})}function f(e){e.engine=r,o(l.onerror,e,-1)}function p(e,t){this.message=e,this.status=t}t=n.body,e=s.trim(n.url);var y=s.trim(n.baseURL||"");if(e||!i||y||(e=location.href),0!==e.indexOf("http")){var v="/"===e[0];if(!y&&i){var b=location.pathname.split("/");b.pop(),y=location.protocol+"//"+location.host+(v?"":b.join("/"))}if("/"!==y[y.length-1]&&(y+="/"),e=y+(v?e.substr(1):e),i){var g=document.createElement("a");g.href=e,e=g.href}}var S=s.trim(n.responseType||""),x=-1!==["GET","HEAD","DELETE","OPTION"].indexOf(n.method),w=s.type(t),j=n.params||{};x&&"object"===w&&(j=s.merge(t,j)),j=s.formatParams(j);var O=[];j&&O.push(j),x&&t&&"string"===w&&O.push(t),O.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+O.join("&")),r.open(n.method,e);try{r.withCredentials=!!n.withCredentials,r.timeout=n.timeout||0,"stream"!==S&&(r.responseType=S)}catch(e){}var k=n.headers[a]||n.headers[u],R="application/x-www-form-urlencoded";s.trim((k||"").toLowerCase())===R?t=s.formatParams(t):s.isFormData(t)||-1===["object","array"].indexOf(s.type(t))||(R="application/json;charset=utf-8",t=JSON.stringify(t)),k||x||(n.headers[a]=R);for(var T in n.headers)if(T===a&&s.isFormData(t))delete n.headers[T];else try{r.setRequestHeader(T,n.headers[T])}catch(e){}r.onload=function(){try{var e=r.response||r.responseText;e&&n.parseJson&&-1!==(r.getResponseHeader(a)||"").indexOf("json")&&!s.isObject(e)&&(e=JSON.parse(e));var t=r.responseHeaders;if(!t){t={};var i=(r.getAllResponseHeaders()||"").split("\r\n");i.pop(),i.forEach(function(e){if(e){var n=e.split(":")[0];t[n]=r.getResponseHeader(n)}})}var u=r.status,c=r.statusText,d={data:e,headers:t,status:u,statusText:c};if(s.merge(d,r._response),u>=200&&u<300||304===u)d.engine=r,d.request=n,o(l.handler,d,0);else{var h=new p(c,u);h.response=d,f(h)}}catch(h){f(new p("Network Error",r.status))}},r.onerror=function(e){f(new p("Network Error",0))},r.ontimeout=function(){f(new p("timeout [ "+r.timeout+"ms ]",1))},r._options=n,setTimeout(function(){r.send(x?null:t)},0)}s.isObject(e)&&(n=e,e=n.url),n=n||{},n.headers=n.headers||{},m(f.p,function(){s.merge(n,JSON.parse(JSON.stringify(o.config)));var r=n.headers;r[a]=r[a]||r[u]||"",delete r[u],n.body=t||n.body,e=s.trim(e||""),n.method=n.method.toUpperCase(),n.url=e;var i=n;p&&(i=p.call(f,n,Promise)||n),h(i)||(i=Promise.resolve(i)),i.then(function(e){e===n?y(e):c(e)},function(e){d(e)})})});return d.engine=r,d}},{key:"all",value:function(e){return Promise.all(e)}},{key:"spread",value:function(e){return function(t){return e.apply(null,t)}}}]),e}();a.default=a,["get","post","put","patch","head","delete"].forEach(function(e){a.prototype[e]=function(t,n,o){return this.request(t,n,s.merge({method:e},o))}}),["lock","unlock","clear"].forEach(function(e){a.prototype[e]=function(){this.interceptors.request[e]()}}),e.exports=a},,,function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return function(t,n){t.data=t.body,t.header=t.headers,t.complete=function(e){"object"!==(void 0===e?"undefined":o(e))&&(e={code:0,msg:e}),n({statusCode:e.code||0,responseText:e.data,headers:e.headers,statusMessage:e.msg})},e.fetch(t)}}},,,,,,function(e,t,n){"use strict";var o=n(2),r=n(1),s=n(5);e.exports=function(e){var t=r(s(e));return new o(t)}}])});