(self["webpackChunkdatabasir"]=self["webpackChunkdatabasir"]||[]).push([[269],{9669:function(t,e,r){t.exports=r(51609)},55448:function(t,e,r){"use strict";var n=r(64867),o=r(36026),i=r(4372),a=r(15327),s=r(94097),u=r(84109),c=r(67985),f=r(85061),l=r(45655),p=r(65263);t.exports=function(t){return new Promise((function(e,r){var h,d=t.data,v=t.headers,g=t.responseType;function m(){t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}n.isFormData(d)&&delete v["Content-Type"];var y=new XMLHttpRequest;if(t.auth){var x=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var b=s(t.baseURL,t.url);function E(){if(y){var n="getAllResponseHeaders"in y?u(y.getAllResponseHeaders()):null,i=g&&"text"!==g&&"json"!==g?y.response:y.responseText,a={data:i,status:y.status,statusText:y.statusText,headers:n,config:t,request:y};o((function(t){e(t),m()}),(function(t){r(t),m()}),a),y=null}}if(y.open(t.method.toUpperCase(),a(b,t.params,t.paramsSerializer),!0),y.timeout=t.timeout,"onloadend"in y?y.onloadend=E:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(E)},y.onabort=function(){y&&(r(f("Request aborted",t,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(f("Network Error",t,null,y)),y=null},y.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||l.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(f(e,t,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var R=(t.withCredentials||c(b))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;R&&(v[t.xsrfHeaderName]=R)}"setRequestHeader"in y&&n.forEach(v,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete v[e]:y.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),g&&"json"!==g&&(y.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&y.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(h=function(t){y&&(r(!t||t&&t.type?new p("canceled"):t),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h))),d||(d=null),y.send(d)}))}},51609:function(t,e,r){"use strict";var n=r(64867),o=r(91849),i=r(30321),a=r(47185),s=r(45655);function u(t){var e=new i(t),r=o(i.prototype.request,e);return n.extend(r,i.prototype,e),n.extend(r,e),r.create=function(e){return u(a(t,e))},r}var c=u(s);c.Axios=i,c.Cancel=r(65263),c.CancelToken=r(14972),c.isCancel=r(26502),c.VERSION=r(97288).version,c.all=function(t){return Promise.all(t)},c.spread=r(8713),c.isAxiosError=r(16268),t.exports=c,t.exports["default"]=c},65263:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},14972:function(t,e,r){"use strict";var n=r(65263);function o(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;this.promise.then((function(t){if(r._listeners){var e,n=r._listeners.length;for(e=0;e=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(a)})),t.exports=f},97288:function(t){t.exports={version:"0.24.0"}},91849:function(t){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},54875:function(t,e,r){"use strict";var n=r(97288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));var i={};function a(t,e,r){if("object"!==typeof t)throw new TypeError("options must be an object");var n=Object.keys(t),o=n.length;while(o-- >0){var i=n[o],a=e[i];if(a){var s=t[i],u=void 0===s||a(s,i,t);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==r)throw Error("Unknown option "+i)}}o.transitional=function(t,e,r){function o(t,e){return"[Axios v"+n+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,n,a){if(!1===t)throw new Error(o(n," has been removed"+(e?" in "+e:"")));return e&&!i[n]&&(i[n]=!0,console.warn(o(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,a)}},t.exports={assertOptions:a,validators:o}},64867:function(t,e,r){"use strict";var n=r(91849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===o.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function f(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function l(t){return"string"===typeof t}function p(t){return"number"===typeof t}function h(t){return null!==t&&"object"===typeof t}function d(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function v(t){return"[object Date]"===o.call(t)}function g(t){return"[object File]"===o.call(t)}function m(t){return"[object Blob]"===o.call(t)}function y(t){return"[object Function]"===o.call(t)}function x(t){return h(t)&&y(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function E(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function R(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),i(t))for(var r=0,n=t.length;r]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,p){var h=r+t.length,d=n.length,v=f;return void 0!==l&&(l=o(l),v=c),s(p,v,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,h);case"<":c=l[u(s,1,-1)];break;default:var f=+s;if(0===f)return o;if(f>d){var p=i(f/10);return 0===p?o:p<=d?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):o}c=n[f-1]}return void 0===c?"":c}))}},47850:function(t,e,r){var n=r(70111),o=r(84326),i=r(5112),a=i("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},3929:function(t,e,r){var n=r(17854),o=r(47850),i=n.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},97651:function(t,e,r){var n=r(17854),o=r(46916),i=r(19670),a=r(60614),s=r(84326),u=r(22261),c=n.TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var n=o(r,t,e);return null!==n&&i(n),n}if("RegExp"===s(t))return o(u,t,e);throw c("RegExp#exec called on incompatible receiver")}},22261:function(t,e,r){"use strict";var n=r(46916),o=r(1702),i=r(41340),a=r(67066),s=r(52999),u=r(72309),c=r(70030),f=r(29909).get,l=r(9441),p=r(38173),h=u("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,g=o("".charAt),m=o("".indexOf),y=o("".replace),x=o("".slice),w=function(){var t=/a/,e=/b*/g;return n(d,t,"a"),n(d,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),b=s.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],R=w||E||b||l||p;R&&(v=function(t){var e,r,o,s,u,l,p,R=this,S=f(R),O=i(t),T=S.raw;if(T)return T.lastIndex=R.lastIndex,e=n(v,T,O),R.lastIndex=T.lastIndex,e;var k=S.groups,A=b&&R.sticky,j=n(a,R),L=R.source,C=0,N=O;if(A&&(j=y(j,"y",""),-1===m(j,"g")&&(j+="g"),N=x(O,R.lastIndex),R.lastIndex>0&&(!R.multiline||R.multiline&&"\n"!==g(O,R.lastIndex-1))&&(L="(?: "+L+")",N=" "+N,C++),r=new RegExp("^(?:"+L+")",j)),E&&(r=new RegExp("^"+L+"$(?!\\s)",j)),w&&(o=R.lastIndex),s=n(d,A?r:R,N),A?s?(s.input=x(s.input,C),s[0]=x(s[0],C),s.index=R.lastIndex,R.lastIndex+=s[0].length):R.lastIndex=0:w&&s&&(R.lastIndex=R.global?s.index+s[0].length:o),E&&s&&s.length>1&&n(h,s[0],r,(function(){for(u=1;ub)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},74916:function(t,e,r){"use strict";var n=r(82109),o=r(22261);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},15306:function(t,e,r){"use strict";var n=r(22104),o=r(46916),i=r(1702),a=r(27007),s=r(47293),u=r(19670),c=r(60614),f=r(19303),l=r(17466),p=r(41340),h=r(84488),d=r(31530),v=r(58173),g=r(10647),m=r(97651),y=r(5112),x=y("replace"),w=Math.max,b=Math.min,E=i([].concat),R=i([].push),S=i("".indexOf),O=i("".slice),T=function(t){return void 0===t?t:String(t)},k=function(){return"$0"==="a".replace(/./,"$0")}(),A=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),j=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));a("replace",(function(t,e,r){var i=A?"$":"$0";return[function(t,r){var n=h(this),i=void 0==t?void 0:v(t,x);return i?o(i,t,n,r):o(e,p(n),t,r)},function(t,o){var a=u(this),s=p(t);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var h=r(e,a,s,o);if(h.done)return h.value}var v=c(o);v||(o=p(o));var y=a.global;if(y){var x=a.unicode;a.lastIndex=0}var k=[];while(1){var A=m(a,s);if(null===A)break;if(R(k,A),!y)break;var j=p(A[0]);""===j&&(a.lastIndex=d(s,l(a.lastIndex),x))}for(var L="",C=0,N=0;N=C&&(L+=O(s,C,_)+q,C=_+P.length)}return L+O(s,C)}]}),!j||!k||A)},23157:function(t,e,r){"use strict";var n=r(82109),o=r(1702),i=r(31236).f,a=r(17466),s=r(41340),u=r(3929),c=r(84488),f=r(84964),l=r(31913),p=o("".startsWith),h=o("".slice),d=Math.min,v=f("startsWith"),g=!l&&!v&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!g&&!v},{startsWith:function(t){var e=s(c(this));u(t);var r=a(d(arguments.length>1?arguments[1]:void 0,e.length)),n=s(t);return p?p(e,n,r):h(e,r,r+n.length)===n}})},35666:function(t){var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(N){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=O(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=c;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function m(){}function y(){}var x={};u(x,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(L([])));b&&b!==r&&n.call(b,i)&&(x=b);var E=y.prototype=g.prototype=Object.create(x);function R(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"===typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;function i(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}this._invoke=i}function O(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return C()}r.method=o,r.arg=i;while(1){var a=r.delegate;if(a){var s=T(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){while(++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},40152:function(t,e,r){"use strict";r.d(e,{x4:function(){return o},rd:function(){return i},jb:function(){return a}});var n=r(63872),o=function(t){var e=new FormData;return e.append("username",t.username),e.append("password",t.password),n.Z.post("/login",e)},i=function(t,e){return n.Z.get("/oauth2/login/"+t,{params:e})},a=function(t){return n.Z.post("/access_tokens",{refreshToken:t})}},63872:function(t,e,r){"use strict";var n=r(48534),o=(r(35666),r(41539),r(54747),r(23157),r(74916),r(15306),r(9669)),i=r.n(o),a=r(20610),s=r(34466),u=r(51836),c=r(40152),f={NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_API_URL;i().defaults.baseURL=f,i().defaults.timeout=15e3,i().defaults.withCredentials=!1,i().defaults.headers.post["Content-Type"]="application/json",i().defaults.headers.post["Access-Control-Allow-Origin-Type"]="*";var l=!1;function p(){l=!0}function h(){l=!1}var d=[];function v(t){d.push(t)}function g(t){d.forEach((function(e){e(t)})),d=[]}function m(t){return y.apply(this,arguments)}function y(){return y=(0,n.Z)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=u.E.getRefreshToken(),r||b(),!l){t.next=4;break}return t.abrupt("return",new Promise((function(t){v((function(){e&&(e.headers.Authorization="Bearer "+u.r.loadAccessToken()),t(e)}))})));case 4:return p(),t.next=7,(0,c.jb)(r).then((function(t){t.errCode?b():(u.r.saveAccessToken(t.data.accessToken,t.data.accessTokenExpireAt),h())})).finally((function(){return h()}));case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),t)}))),y.apply(this,arguments)}function x(t){return w.apply(this,arguments)}function w(){return w=(0,n.Z)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i()({method:e.method,data:e.data,url:e.url,baseURL:e.baseURL,headers:{Authorization:"Bearer "+u.r.loadAccessToken()}});case 3:return r=t.sent,g(e),t.abrupt("return",r);case 8:t.prev=8,t.t0=t["catch"](0),console.log(t.t0),E("网络异常,请稍后再试");case 12:case"end":return t.stop()}}),t,null,[[0,8]])}))),w.apply(this,arguments)}function b(){u.E.removeUserLoginData(),s.Z.replace("/login")}function E(t){(0,a.z8)({message:t,type:"error",duration:5e3,grouping:!0})}i().interceptors.request.use(function(){var t=(0,n.Z)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("/access_tokens"!=e.url&&!e.url.startsWith("/oauth2")&&"/login"!=e.url){t.next=2;break}return t.abrupt("return",e);case 2:if(!u.r.hasValidAccessToken()){t.next=5;break}return e.headers.Authorization="Bearer "+u.r.loadAccessToken(),t.abrupt("return",e);case 5:if(!l){t.next=8;break}return r=new Promise((function(t){v((function(){e&&(e.headers.Authorization="Bearer "+u.r.loadAccessToken()),t(e)}))})),t.abrupt("return",r);case 8:return t.abrupt("return",e);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){return h(),Promise.reject(t)})),i().interceptors.response.use((function(t){var e=t.data;return e.errCode&&E(e.errMessage),e}),(function(t){if(t.response)if(401==t.response.status){if("X_0002"==t.response.data.errCode)u.E.removeUserLoginData(),E("登陆状态失效,请重新登陆"),b();else if("X_0004"==t.response.data.errCode)return m(t.config).then((function(){return x(t.config)}))}else 403==t.response.status?E("无执行该操作的权限"):E(t.message);else console.log(t),E("网络异常,请稍后再试");return Promise.reject(t)})),e["Z"]=i()},48534:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});r(41539);function n(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function s(t){n(a,o,i,s,u,"next",t)}function u(t){n(a,o,i,s,u,"throw",t)}s(void 0)}))}}}}]); //# sourceMappingURL=269-legacy.af28be5f.js.map