(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8161687a"],{"1f75":function(e,t,r){"use strict";var n=r("c964"),a=(r("96cf"),r("d3b7"),r("6062"),r("3ca3"),r("ddb0"),r("caad"),r("2532"),r("ac1f"),r("00b4"),r("99af"),r("25f0"),r("bc3a")),o=r.n(a),c=r("2295"),s=r("f3f3"),i=(r("a9e3"),r("b6802"),r("159b"),r("3ef4")),u=r("e466"),d=r("2ef0"),l=r.n(d),f=25,p=function(e){var t=1e3*Number((e.length/f).toFixed(3));return t<3e3?3e3:t>8e3?8e3:t},b=function(e){var t=!e||Object(d["isString"])(e)||Object(d["isFunction"])(e)?{message:e}:e;return t},v=function(e){var t=b(e),r=t.message,n=t.duration,a=t.showClose,o=t.type,c=n||r&&p(r)||void 0,u=a||"error"===o;return Object(i["a"])(Object(s["a"])(Object(s["a"])({},e),{},{duration:c,showClose:u}))};u["d"].forEach((function(e){v[e]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=b(t);return v(Object(s["a"])(Object(s["a"])({},r),{},{type:e}))}}));var g=v,m=r("323e"),h=r.n(m),w=(r("a5d8"),r("afbc")),O=r("0613"),j=r("2fc2"),E="BAD_TOKEN",_="TOKEN_TIME_OUT",S="BAD_USERNAME_OR_PWD",C=r("88c3");h.a.configure({showSpinner:!1,trickleSpeed:200});var N=new Set,T=function(){return N=new Set};Object.assign(o.a.defaults,{baseURL:"api/v5",timeout:2e4}),o.a.interceptors.request.use((function(e){var t=O["a"].state.user;return e.headers={Authorization:"Bearer "+t.token},e}),(function(e){Promise.reject(e)})),o.a.interceptors.request.use(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.doNotTriggerProgress){e.next=4;break}return O["a"].state.request_queue||h.a.start(),e.next=4,O["a"].dispatch("SET_REQ_CHANGE",!0);case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var k=function(e,t){return 401===e&&[E,_].includes(t.code)};function R(){return P.apply(this,arguments)}function P(){return P=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,O["a"].dispatch("SET_REQ_CHANGE",!1);case 2:t=O["a"].state.request_queue,t>0?h.a.inc():h.a.done();case 4:case"end":return e.stop()}}),e)}))),P.apply(this,arguments)}o.a.interceptors.response.use((function(e){return e.config.doNotTriggerProgress||R(),/\/trace\/.+\/download/.test(e.config.url)?e:e.data||e.status}),(function(e){if(e.config.doNotTriggerProgress||R(),e.response){var t=e.response,r=t.data,n=t.status;if(!N.has(n)){var a;N.add(n);var o=401===n&&O["a"].state.afterCurrentUserPwdChanged;if(k(n,r))return o?O["a"].commit("SET_AFTER_CURRENT_USER_PWD_CHANGED",!1):c["a"].error(C["a"].global.t("Base.tokenExpiredMsg")),Object(w["c"])(),window.setTimeout(T,1e3),Promise.reject(e);var s=(null===(a=e.config)||void 0===a?void 0:a.errorsHandleCustom)&&Array.isArray(e.config.errorsHandleCustom)&&e.config.errorsHandleCustom.includes(n);if(!s)if((null===r||void 0===r?void 0:r.code)===S)c["a"].error(C["a"].global.t("Base.namePwdError"));else if(null!==r&&void 0!==r&&r.code||null!==r&&void 0!==r&&r.message){var i,u,d;g.error("".concat(n," ").concat(null!==(i=null===r||void 0===r?void 0:r.code)&&void 0!==i?i:"",": ").concat(null!==(u=null===r||void 0===r||null===(d=r.message)||void 0===d?void 0:d.toString())&&void 0!==u?u:""))}else g.error(n+" Network error");401===n&&Object(w["c"])()}}else{var f=e.code===j["C"]&&e.config.handleTimeoutSelf;N.has(0)||(f||g.error(C["a"].global.t("Base.networkError")),N.add(0))}return 0===O["a"].state.request_queue&&(N=new Set),l.a.throttle(T,2e3,{trailing:!1}),Promise.reject(e)}));t["a"]=o.a},be20:function(e,t,r){"use strict";r("c8c3")},c8c3:function(e,t,r){},fc54:function(e,t,r){"use strict";var n=r("f3f3"),a=r("7a23"),o={class:"pre-with-ellipsis"},c={class:"placeholder"},s=Object(a["defineComponent"])({name:"PreWithEllipsis"}),i=Object(a["defineComponent"])(Object(n["a"])(Object(n["a"])({},s),{},{setup:function(e){return function(e,t){return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",o,[Object(a["createElementVNode"])("p",c,[Object(a["renderSlot"])(e.$slots,"default")]),Object(a["createElementVNode"])("pre",null,[Object(a["renderSlot"])(e.$slots,"default")])])}}}));r("be20");const u=i;t["a"]=u}}]);