@akad/sdk 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.d.ts +17 -6
- package/endorsement/index.d.ts +1 -1
- package/main.d.ts +4 -8
- package/package.json +1 -1
- package/ts-lib.js +27 -32
- package/ts-lib.umd.cjs +4 -4
package/base.d.ts
CHANGED
|
@@ -20,17 +20,28 @@ export interface Config {
|
|
|
20
20
|
onReject: (error: AxiosError) => Promise<typeof error> | Promise<never>;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Supported data types for request body
|
|
25
|
+
*/
|
|
26
|
+
export type RequestData = string | object | FormData;
|
|
27
|
+
/**
|
|
28
|
+
* Options for making HTTP requests
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestOptions {
|
|
31
|
+
contentType?: string;
|
|
32
|
+
data?: RequestData;
|
|
33
|
+
headers?: Record<string, string>;
|
|
34
|
+
method?: string;
|
|
35
|
+
responseType?: ResponseType;
|
|
36
|
+
withCredentials?: boolean;
|
|
37
|
+
}
|
|
23
38
|
export declare const createBase: (config: Config) => {
|
|
24
39
|
axiosClient: import('axios').AxiosInstance;
|
|
25
40
|
getAccessToken: () => string | null;
|
|
26
41
|
setTokens: (tokens: TokenResponse) => void;
|
|
27
42
|
clearTokens: () => void;
|
|
28
|
-
request: <T>(endpoint: string, options?: {
|
|
43
|
+
request: <T>(endpoint: string, options?: RequestOptions & {
|
|
29
44
|
method: string;
|
|
30
|
-
data:
|
|
31
|
-
contentType?: string;
|
|
32
|
-
responseType?: ResponseType;
|
|
33
|
-
headers?: Record<string, string>;
|
|
34
|
-
withCredentials?: boolean;
|
|
45
|
+
data: RequestData;
|
|
35
46
|
}) => Promise<T>;
|
|
36
47
|
};
|
package/endorsement/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '../base';
|
|
2
2
|
|
|
3
3
|
export declare const createEndorsement: (config: Config) => {
|
|
4
|
-
putEndorsement: <
|
|
4
|
+
putEndorsement: <ResPayload = unknown>(formData: FormData) => Promise<ResPayload>;
|
|
5
5
|
};
|
package/main.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export default function sdkInitialize(config: Config): {
|
|
|
40
40
|
getAllBrokerages: (name: string) => Promise<import('./broker/types').BrokerageFirmType>;
|
|
41
41
|
};
|
|
42
42
|
endorsement: {
|
|
43
|
-
putEndorsement: <
|
|
43
|
+
putEndorsement: <ResPayload = unknown>(formData: FormData) => Promise<ResPayload>;
|
|
44
44
|
};
|
|
45
45
|
plugin: {
|
|
46
46
|
getCnpjStatus: (cnpj: string, brokerageIdentity?: string | undefined, isBrokerageDefinedAtStart?: boolean | undefined) => Promise<import('./plugin/types').CnpjStatus>;
|
|
@@ -59,13 +59,9 @@ export default function sdkInitialize(config: Config): {
|
|
|
59
59
|
getAccessToken: () => string | null;
|
|
60
60
|
setTokens: (tokens: import('./helpers/TokenRefreshManager').TokenResponse) => void;
|
|
61
61
|
clearTokens: () => void;
|
|
62
|
-
request: <T>(endpoint: string, options?: {
|
|
62
|
+
request: <T>(endpoint: string, options?: (import('./base').RequestOptions & {
|
|
63
63
|
method: string;
|
|
64
|
-
data:
|
|
65
|
-
|
|
66
|
-
responseType?: import('axios').ResponseType | undefined;
|
|
67
|
-
headers?: Record<string, string> | undefined;
|
|
68
|
-
withCredentials?: boolean | undefined;
|
|
69
|
-
} | undefined) => Promise<T>;
|
|
64
|
+
data: import('./base').RequestData;
|
|
65
|
+
}) | undefined) => Promise<T>;
|
|
70
66
|
};
|
|
71
67
|
};
|
package/package.json
CHANGED
package/ts-lib.js
CHANGED
|
@@ -15,7 +15,7 @@ function ot(e) {
|
|
|
15
15
|
let t;
|
|
16
16
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
|
|
17
17
|
}
|
|
18
|
-
const it = G("string"), R = G("function"), Be = G("number"), K = (e) => e !== null && typeof e == "object", at = (e) => e === !0 || e === !1,
|
|
18
|
+
const it = G("string"), R = G("function"), Be = G("number"), K = (e) => e !== null && typeof e == "object", at = (e) => e === !0 || e === !1, z = (e) => {
|
|
19
19
|
if (v(e) !== "object")
|
|
20
20
|
return !1;
|
|
21
21
|
const t = ue(e);
|
|
@@ -52,7 +52,7 @@ const _e = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
52
52
|
function re() {
|
|
53
53
|
const { caseless: e } = Fe(this) && this || {}, t = {}, r = (n, s) => {
|
|
54
54
|
const o = e && Le(t, s) || s;
|
|
55
|
-
|
|
55
|
+
z(t[o]) && z(n) ? t[o] = re(t[o], n) : z(n) ? t[o] = re({}, n) : L(n) ? t[o] = n.slice() : t[o] = n;
|
|
56
56
|
};
|
|
57
57
|
for (let n = 0, s = arguments.length; n < s; n++)
|
|
58
58
|
arguments[n] && I(arguments[n], r);
|
|
@@ -179,7 +179,7 @@ const $t = (e) => {
|
|
|
179
179
|
isNumber: Be,
|
|
180
180
|
isBoolean: at,
|
|
181
181
|
isObject: K,
|
|
182
|
-
isPlainObject:
|
|
182
|
+
isPlainObject: z,
|
|
183
183
|
isReadableStream: mt,
|
|
184
184
|
isRequest: yt,
|
|
185
185
|
isResponse: gt,
|
|
@@ -289,10 +289,10 @@ function ye(e, t, r) {
|
|
|
289
289
|
return s = He(s), !r && o ? "[" + s + "]" : s;
|
|
290
290
|
}).join(r ? "." : "") : t;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function zt(e) {
|
|
293
293
|
return u.isArray(e) && !e.some(ne);
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const Jt = u.toFlatObject(u, {}, null, function(t) {
|
|
296
296
|
return /^is[A-Z]/.test(t);
|
|
297
297
|
});
|
|
298
298
|
function W(e, t, r) {
|
|
@@ -322,7 +322,7 @@ function W(e, t, r) {
|
|
|
322
322
|
if (h && !T && typeof h == "object") {
|
|
323
323
|
if (u.endsWith(y, "{}"))
|
|
324
324
|
y = n ? y : y.slice(0, -2), h = JSON.stringify(h);
|
|
325
|
-
else if (u.isArray(h) &&
|
|
325
|
+
else if (u.isArray(h) && zt(h) || (u.isFileList(h) || u.endsWith(y, "[]")) && (S = u.toArray(h)))
|
|
326
326
|
return y = He(y), S.forEach(function(w, F) {
|
|
327
327
|
!(u.isUndefined(w) || w === null) && t.append(
|
|
328
328
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -333,7 +333,7 @@ function W(e, t, r) {
|
|
|
333
333
|
}
|
|
334
334
|
return ne(h) ? !0 : (t.append(ye(T, y, o), f(h)), !1);
|
|
335
335
|
}
|
|
336
|
-
const d = [], g = Object.assign(
|
|
336
|
+
const d = [], g = Object.assign(Jt, {
|
|
337
337
|
defaultVisitor: a,
|
|
338
338
|
convertValue: f,
|
|
339
339
|
isVisitable: ne
|
|
@@ -374,11 +374,11 @@ function ge(e) {
|
|
|
374
374
|
function le(e, t) {
|
|
375
375
|
this._pairs = [], e && W(e, this, t);
|
|
376
376
|
}
|
|
377
|
-
const
|
|
378
|
-
|
|
377
|
+
const ze = le.prototype;
|
|
378
|
+
ze.append = function(t, r) {
|
|
379
379
|
this._pairs.push([t, r]);
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
ze.toString = function(t) {
|
|
382
382
|
const r = t ? function(n) {
|
|
383
383
|
return t.call(this, n, ge);
|
|
384
384
|
} : ge;
|
|
@@ -389,7 +389,7 @@ Je.toString = function(t) {
|
|
|
389
389
|
function Mt(e) {
|
|
390
390
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Je(e, t, r) {
|
|
393
393
|
if (!t)
|
|
394
394
|
return e;
|
|
395
395
|
const n = r && r.encode || Mt, s = r && r.serialize;
|
|
@@ -620,8 +620,8 @@ const nr = u.toObjectSet([
|
|
|
620
620
|
function D(e) {
|
|
621
621
|
return e && String(e).trim().toLowerCase();
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return e === !1 || e == null ? e : u.isArray(e) ? e.map(
|
|
623
|
+
function J(e) {
|
|
624
|
+
return e === !1 || e == null ? e : u.isArray(e) ? e.map(J) : String(e);
|
|
625
625
|
}
|
|
626
626
|
function or(e) {
|
|
627
627
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -666,7 +666,7 @@ let E = class {
|
|
|
666
666
|
if (!a)
|
|
667
667
|
throw new Error("header name must be a non-empty string");
|
|
668
668
|
const d = u.findKey(s, a);
|
|
669
|
-
(!d || s[d] === void 0 || f === !0 || f === void 0 && s[d] !== !1) && (s[d || l] =
|
|
669
|
+
(!d || s[d] === void 0 || f === !0 || f === void 0 && s[d] !== !1) && (s[d || l] = J(c));
|
|
670
670
|
}
|
|
671
671
|
const i = (c, l) => u.forEach(c, (f, a) => o(f, a, l));
|
|
672
672
|
if (u.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -729,11 +729,11 @@ let E = class {
|
|
|
729
729
|
return u.forEach(this, (s, o) => {
|
|
730
730
|
const i = u.findKey(n, o);
|
|
731
731
|
if (i) {
|
|
732
|
-
r[i] =
|
|
732
|
+
r[i] = J(s), delete r[o];
|
|
733
733
|
return;
|
|
734
734
|
}
|
|
735
735
|
const c = t ? ar(o) : String(o).trim();
|
|
736
|
-
c !== o && delete r[o], r[c] =
|
|
736
|
+
c !== o && delete r[o], r[c] = J(s), n[c] = !0;
|
|
737
737
|
}), this;
|
|
738
738
|
}
|
|
739
739
|
concat(...t) {
|
|
@@ -996,7 +996,7 @@ function q(e, t) {
|
|
|
996
996
|
const We = (e) => {
|
|
997
997
|
const t = q({}, e);
|
|
998
998
|
let { data: r, withXSRFToken: n, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
|
|
999
|
-
t.headers = i = E.from(i), t.url =
|
|
999
|
+
t.headers = i = E.from(i), t.url = Je(Ke(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1000
1000
|
"Authorization",
|
|
1001
1001
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1002
1002
|
);
|
|
@@ -1458,7 +1458,7 @@ let U = class {
|
|
|
1458
1458
|
getUri(t) {
|
|
1459
1459
|
t = q(this.defaults, t);
|
|
1460
1460
|
const r = Ke(t.baseURL, t.url);
|
|
1461
|
-
return
|
|
1461
|
+
return Je(r, t.params, t.paramsSerializer);
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
1464
|
u.forEach(["delete", "get", "head", "options"], function(t) {
|
|
@@ -1917,7 +1917,7 @@ const Hr = (e) => {
|
|
|
1917
1917
|
data: JSON.stringify(c)
|
|
1918
1918
|
})
|
|
1919
1919
|
};
|
|
1920
|
-
}, xe = "digital",
|
|
1920
|
+
}, xe = "digital", zr = (e) => {
|
|
1921
1921
|
const t = O(e);
|
|
1922
1922
|
return {
|
|
1923
1923
|
getBroker: () => t.request(`/${xe}/getBroker`, {
|
|
@@ -1932,10 +1932,10 @@ const Hr = (e) => {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
)
|
|
1934
1934
|
};
|
|
1935
|
-
},
|
|
1935
|
+
}, Jr = "data", Mr = (e) => {
|
|
1936
1936
|
const t = O(e);
|
|
1937
1937
|
return {
|
|
1938
|
-
postData: async (n) => await t.request(`/${
|
|
1938
|
+
postData: async (n) => await t.request(`/${Jr}`, {
|
|
1939
1939
|
method: "POST",
|
|
1940
1940
|
data: JSON.stringify(n)
|
|
1941
1941
|
})
|
|
@@ -1943,16 +1943,11 @@ const Hr = (e) => {
|
|
|
1943
1943
|
}, Vr = "endorsement", vr = (e) => {
|
|
1944
1944
|
const t = O(e);
|
|
1945
1945
|
return {
|
|
1946
|
-
putEndorsement: (n
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
method: "PUT",
|
|
1952
|
-
data: o,
|
|
1953
|
-
contentType: "multipart/form-data"
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1946
|
+
putEndorsement: (n) => t.request(`/${Vr}`, {
|
|
1947
|
+
method: "PUT",
|
|
1948
|
+
data: n,
|
|
1949
|
+
contentType: "multipart/form-data"
|
|
1950
|
+
})
|
|
1956
1951
|
};
|
|
1957
1952
|
}, te = "payment", Gr = (e) => {
|
|
1958
1953
|
const t = O(e);
|
|
@@ -2097,7 +2092,7 @@ const Hr = (e) => {
|
|
|
2097
2092
|
};
|
|
2098
2093
|
};
|
|
2099
2094
|
function gn(e) {
|
|
2100
|
-
const t = Ur(e), r = Hr(e), n = Mr(e), s = Wr(e), o = Gr(e), i = jr(e), c =
|
|
2095
|
+
const t = Ur(e), r = Hr(e), n = Mr(e), s = Wr(e), o = Gr(e), i = jr(e), c = zr(e), l = vr(e), f = Kr(e), a = Xr(e), d = Yr(e), g = O(e);
|
|
2101
2096
|
return {
|
|
2102
2097
|
auth: t,
|
|
2103
2098
|
authAkad: r,
|
package/ts-lib.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(B,D){typeof exports=="object"&&typeof module<"u"?module.exports=D():typeof define=="function"&&define.amd?define(D):(B=typeof globalThis<"u"?globalThis:B||self,B["ts-lib"]=D())})(this,function(){"use strict";function B(e,t){return function(){return e.apply(t,arguments)}}const{toString:D}=Object.prototype,{getPrototypeOf:Y}=Object,z=(e=>t=>{const n=D.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>z(t)===e),M=e=>t=>typeof t===e,{isArray:L}=Array,$=M("undefined");function rt(e){return e!==null&&!$(e)&&e.constructor!==null&&!$(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const me=A("ArrayBuffer");function st(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&me(e.buffer),t}const ot=M("string"),R=M("function"),ye=M("number"),V=e=>e!==null&&typeof e=="object",it=e=>e===!0||e===!1,v=e=>{if(z(e)!=="object")return!1;const t=Y(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},at=A("Date"),ct=A("File"),ut=A("Blob"),lt=A("FileList"),ft=e=>V(e)&&R(e.pipe),dt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=z(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},ht=A("URLSearchParams"),[pt,mt,yt,bt]=["ReadableStream","Request","Response","Headers"].map(A),gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),L(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function be(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,we=e=>!$(e)&&e!==ge;function ee(){const{caseless:e}=we(this)&&this||{},t={},n=(r,s)=>{const o=e&&be(t,s)||s;v(t[o])&&v(r)?t[o]=ee(t[o],r):v(r)?t[o]=ee({},r):L(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&I(arguments[r],n);return t}const wt=(e,t,n,{allOwnKeys:r}={})=>(I(t,(s,o)=>{n&&R(s)?e[o]=B(s,n):e[o]=s},{allOwnKeys:r}),e),Tt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),St=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Et=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ot=e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!ye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},At=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Y(Uint8Array)),Pt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Nt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kt=A("HTMLFormElement"),Ct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Te=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=A("RegExp"),Se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ut=e=>{Se(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return L(e)?r(e):r(String(e).split(t)),n},Bt=()=>{},Lt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,te="abcdefghijklmnopqrstuvwxyz",Ee="0123456789",Re={DIGIT:Ee,ALPHA:te,ALPHA_DIGIT:te+te.toUpperCase()+Ee},Ft=(e=16,t=Re.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function _t(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Dt=e=>{const t=new Array(10),n=(r,s)=>{if(V(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=L(r)?[]:{};return I(r,(i,c)=>{const l=n(i,s+1);!$(l)&&(o[c]=l)}),t[s]=void 0,o}}return r};return n(e,0)},$t=A("AsyncFunction"),u={isArray:L,isArrayBuffer:me,isBuffer:rt,isFormData:dt,isArrayBufferView:st,isString:ot,isNumber:ye,isBoolean:it,isObject:V,isPlainObject:v,isReadableStream:pt,isRequest:mt,isResponse:yt,isHeaders:bt,isUndefined:$,isDate:at,isFile:ct,isBlob:ut,isRegExp:xt,isFunction:R,isStream:ft,isURLSearchParams:ht,isTypedArray:At,isFileList:lt,forEach:I,merge:ee,extend:wt,trim:gt,stripBOM:Tt,inherits:St,toFlatObject:Et,kindOf:z,kindOfTest:A,endsWith:Rt,toArray:Ot,forEachEntry:Pt,matchAll:Nt,isHTMLForm:kt,hasOwnProperty:Te,hasOwnProp:Te,reduceDescriptors:Se,freezeMethods:Ut,toObjectSet:qt,toCamelCase:Ct,noop:Bt,toFiniteNumber:Lt,findKey:be,global:ge,isContextDefined:we,ALPHABET:Re,generateString:Ft,isSpecCompliantForm:_t,toJSONObject:Dt,isAsyncFn:$t,isThenable:e=>e&&(V(e)||R(e))&&R(e.then)&&R(e.catch)};function p(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}u.inherits(p,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oe=p.prototype,Ae={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ae[e]={value:e}}),Object.defineProperties(p,Ae),Object.defineProperty(Oe,"isAxiosError",{value:!0}),p.from=(e,t,n,r,s,o)=>{const i=Object.create(Oe);return u.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),p.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const It=null;function ne(e){return u.isPlainObject(e)||u.isArray(e)}function Pe(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map(function(s,o){return s=Pe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function jt(e){return u.isArray(e)&&!e.some(ne)}const Ht=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,T){return!u.isUndefined(T[y])});const r=n.metaTokens,s=n.visitor||a,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(!l&&u.isBlob(h))throw new p("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,y,T){let S=h;if(h&&!T&&typeof h=="object"){if(u.endsWith(y,"{}"))y=r?y:y.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&jt(h)||(u.isFileList(h)||u.endsWith(y,"[]"))&&(S=u.toArray(h)))return y=Pe(y),S.forEach(function(g,J){!(u.isUndefined(g)||g===null)&&t.append(i===!0?Ne([y],J,o):i===null?y:y+"[]",f(g))}),!1}return ne(h)?!0:(t.append(Ne(T,y,o),f(h)),!1)}const d=[],b=Object.assign(Ht,{defaultVisitor:a,convertValue:f,isVisitable:ne});function m(h,y){if(!u.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(h),u.forEach(h,function(S,N){(!(u.isUndefined(S)||S===null)&&s.call(t,S,u.isString(N)?N.trim():N,y,b))===!0&&m(S,y?y.concat(N):[N])}),d.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function re(e,t){this._pairs=[],e&&G(e,this,t)}const Ce=re.prototype;Ce.append=function(t,n){this._pairs.push([t,n])},Ce.toString=function(t){const n=t?function(r){return t.call(this,r,ke)}:ke;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xe(e,t,n){if(!t)return e;const r=n&&n.encode||Jt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=u.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ue{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:re,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},se=typeof window<"u"&&typeof document<"u",Mt=(e=>se&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vt=se&&window.location.href||"http://localhost",P={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:se,hasStandardBrowserEnv:Mt,hasStandardBrowserWebWorkerEnv:Vt,origin:vt},Symbol.toStringTag,{value:"Module"})),...zt};function Gt(e,t){return G(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return P.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Kt(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Be(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=o>=n.length;return i=!i&&u.isArray(s)?s.length:i,l?(u.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&u.isArray(s[i])&&(s[i]=Wt(s[i])),!c)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(r,s)=>{t(Kt(r),s,n,0)}),n}return null}function Qt(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const j={transitional:qe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(Be(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gt(t,this.formSerializer).toString();if((c=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Qt(t)):t}],transformResponse:[function(t){const n=this.transitional||j.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?p.from(c,p.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{j.headers[e]={}});const Xt=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
1
|
+
(function(B,$){typeof exports=="object"&&typeof module<"u"?module.exports=$():typeof define=="function"&&define.amd?define($):(B=typeof globalThis<"u"?globalThis:B||self,B["ts-lib"]=$())})(this,function(){"use strict";function B(e,t){return function(){return e.apply(t,arguments)}}const{toString:$}=Object.prototype,{getPrototypeOf:Y}=Object,J=(e=>t=>{const n=$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>J(t)===e),M=e=>t=>typeof t===e,{isArray:L}=Array,D=M("undefined");function rt(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const me=A("ArrayBuffer");function st(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&me(e.buffer),t}const ot=M("string"),R=M("function"),ye=M("number"),V=e=>e!==null&&typeof e=="object",it=e=>e===!0||e===!1,v=e=>{if(J(e)!=="object")return!1;const t=Y(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},at=A("Date"),ct=A("File"),ut=A("Blob"),lt=A("FileList"),ft=e=>V(e)&&R(e.pipe),dt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=J(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},ht=A("URLSearchParams"),[pt,mt,yt,bt]=["ReadableStream","Request","Response","Headers"].map(A),gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),L(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(r=0;r<i;r++)c=o[r],t.call(null,e[c],c,e)}}function be(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,we=e=>!D(e)&&e!==ge;function ee(){const{caseless:e}=we(this)&&this||{},t={},n=(r,s)=>{const o=e&&be(t,s)||s;v(t[o])&&v(r)?t[o]=ee(t[o],r):v(r)?t[o]=ee({},r):L(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&I(arguments[r],n);return t}const wt=(e,t,n,{allOwnKeys:r}={})=>(I(t,(s,o)=>{n&&R(s)?e[o]=B(s,n):e[o]=s},{allOwnKeys:r}),e),Tt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),St=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Et=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ot=e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!ye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},At=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Y(Uint8Array)),Pt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Nt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kt=A("HTMLFormElement"),Ct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Te=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xt=A("RegExp"),Se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ut=e=>{Se(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},qt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return L(e)?r(e):r(String(e).split(t)),n},Bt=()=>{},Lt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,te="abcdefghijklmnopqrstuvwxyz",Ee="0123456789",Re={DIGIT:Ee,ALPHA:te,ALPHA_DIGIT:te+te.toUpperCase()+Ee},_t=(e=16,t=Re.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ft(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const $t=e=>{const t=new Array(10),n=(r,s)=>{if(V(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=L(r)?[]:{};return I(r,(i,c)=>{const l=n(i,s+1);!D(l)&&(o[c]=l)}),t[s]=void 0,o}}return r};return n(e,0)},Dt=A("AsyncFunction"),u={isArray:L,isArrayBuffer:me,isBuffer:rt,isFormData:dt,isArrayBufferView:st,isString:ot,isNumber:ye,isBoolean:it,isObject:V,isPlainObject:v,isReadableStream:pt,isRequest:mt,isResponse:yt,isHeaders:bt,isUndefined:D,isDate:at,isFile:ct,isBlob:ut,isRegExp:xt,isFunction:R,isStream:ft,isURLSearchParams:ht,isTypedArray:At,isFileList:lt,forEach:I,merge:ee,extend:wt,trim:gt,stripBOM:Tt,inherits:St,toFlatObject:Et,kindOf:J,kindOfTest:A,endsWith:Rt,toArray:Ot,forEachEntry:Pt,matchAll:Nt,isHTMLForm:kt,hasOwnProperty:Te,hasOwnProp:Te,reduceDescriptors:Se,freezeMethods:Ut,toObjectSet:qt,toCamelCase:Ct,noop:Bt,toFiniteNumber:Lt,findKey:be,global:ge,isContextDefined:we,ALPHABET:Re,generateString:_t,isSpecCompliantForm:Ft,toJSONObject:$t,isAsyncFn:Dt,isThenable:e=>e&&(V(e)||R(e))&&R(e.then)&&R(e.catch)};function p(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}u.inherits(p,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oe=p.prototype,Ae={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ae[e]={value:e}}),Object.defineProperties(p,Ae),Object.defineProperty(Oe,"isAxiosError",{value:!0}),p.from=(e,t,n,r,s,o)=>{const i=Object.create(Oe);return u.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),p.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const It=null;function ne(e){return u.isPlainObject(e)||u.isArray(e)}function Pe(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map(function(s,o){return s=Pe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function jt(e){return u.isArray(e)&&!e.some(ne)}const Ht=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,T){return!u.isUndefined(T[y])});const r=n.metaTokens,s=n.visitor||a,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(!l&&u.isBlob(h))throw new p("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,y,T){let S=h;if(h&&!T&&typeof h=="object"){if(u.endsWith(y,"{}"))y=r?y:y.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&jt(h)||(u.isFileList(h)||u.endsWith(y,"[]"))&&(S=u.toArray(h)))return y=Pe(y),S.forEach(function(g,z){!(u.isUndefined(g)||g===null)&&t.append(i===!0?Ne([y],z,o):i===null?y:y+"[]",f(g))}),!1}return ne(h)?!0:(t.append(Ne(T,y,o),f(h)),!1)}const d=[],b=Object.assign(Ht,{defaultVisitor:a,convertValue:f,isVisitable:ne});function m(h,y){if(!u.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(h),u.forEach(h,function(S,N){(!(u.isUndefined(S)||S===null)&&s.call(t,S,u.isString(N)?N.trim():N,y,b))===!0&&m(S,y?y.concat(N):[N])}),d.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function re(e,t){this._pairs=[],e&&G(e,this,t)}const Ce=re.prototype;Ce.append=function(t,n){this._pairs.push([t,n])},Ce.toString=function(t){const n=t?function(r){return t.call(this,r,ke)}:ke;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function zt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xe(e,t,n){if(!t)return e;const r=n&&n.encode||zt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=u.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ue{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:re,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},se=typeof window<"u"&&typeof document<"u",Mt=(e=>se&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vt=se&&window.location.href||"http://localhost",P={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:se,hasStandardBrowserEnv:Mt,hasStandardBrowserWebWorkerEnv:Vt,origin:vt},Symbol.toStringTag,{value:"Module"})),...Jt};function Gt(e,t){return G(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return P.isNode&&u.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Kt(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Be(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),l=o>=n.length;return i=!i&&u.isArray(s)?s.length:i,l?(u.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!u.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&u.isArray(s[i])&&(s[i]=Wt(s[i])),!c)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(r,s)=>{t(Kt(r),s,n,0)}),n}return null}function Qt(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const j={transitional:qe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=u.isObject(t);if(o&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s?JSON.stringify(Be(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Gt(t,this.formSerializer).toString();if((c=u.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Qt(t)):t}],transformResponse:[function(t){const n=this.transitional||j.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?p.from(c,p.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{j.headers[e]={}});const Xt=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Zt=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Xt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Le=Symbol("internals");function H(e){return e&&String(e).trim().toLowerCase()}function K(e){return e===!1||e==null?e:u.isArray(e)?e.map(K):String(e)}function Yt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const en=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oe(e,t,n,r,s){if(u.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!u.isString(t)){if(u.isString(r))return t.indexOf(r)!==-1;if(u.isRegExp(r))return r.test(t)}}function tn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function nn(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let E=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,l,f){const a=H(l);if(!a)throw new Error("header name must be a non-empty string");const d=u.findKey(s,a);(!d||s[d]===void 0||f===!0||f===void 0&&s[d]!==!1)&&(s[d||l]=K(c))}const i=(c,l)=>u.forEach(c,(f,a)=>o(f,a,l));if(u.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(u.isString(t)&&(t=t.trim())&&!en(t))i(Zt(t),n);else if(u.isHeaders(t))for(const[c,l]of t.entries())o(l,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=H(t),t){const r=u.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Yt(s);if(u.isFunction(n))return n.call(this,s,r);if(u.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=H(t),t){const r=u.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||oe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=H(i),i){const c=u.findKey(r,i);c&&(!n||oe(r,r[c],c,n))&&(delete r[c],s=!0)}}return u.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||oe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return u.forEach(this,(s,o)=>{const i=u.findKey(r,o);if(i){n[i]=K(s),delete n[o];return}const c=t?tn(o):String(o).trim();c!==o&&delete n[o],n[c]=K(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&u.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Le]=this[Le]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=H(i);r[c]||(nn(s,i),r[c]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};E.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(E.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),u.freezeMethods(E);function ie(e,t){const n=this||j,r=t||n,s=E.from(r.headers);let o=r.data;return u.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Fe(e){return!!(e&&e.__CANCEL__)}function F(e,t,n){p.call(this,e??"canceled",p.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(F,p,{__CANCEL__:!0});function _e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,[p.ERR_BAD_REQUEST,p.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),a=r[o];i||(i=f),n[s]=l,r[s]=f;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const m=a&&f-a;return m?Math.round(b*1e3/m):void 0}}function on(e,t){let n=0;const r=1e3/t;let s=null;return function(){const i=this===!0,c=Date.now();if(i||c-n>r)return s&&(clearTimeout(s),s=null),n=c,e.apply(null,arguments);s||(s=setTimeout(()=>(s=null,n=Date.now(),e.apply(null,arguments)),r-(c-n)))}}const W=(e,t,n=3)=>{let r=0;const s=sn(50,250);return on(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,f=s(l),a=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:f||void 0,estimated:f&&c&&a?(c-i)/f:void 0,event:o,lengthComputable:c!=null};d[t?"download":"upload"]=!0,e(d)},n)},an=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=u.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),cn=P.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),u.isString(r)&&i.push("path="+r),u.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function un(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ln(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function De(e,t){return e&&!un(t)?ln(e,t):t}const $e=e=>e instanceof E?{...e}:e;function U(e,t){t=t||{};const n={};function r(f,a,d){return u.isPlainObject(f)&&u.isPlainObject(a)?u.merge.call({caseless:d},f,a):u.isPlainObject(a)?u.merge({},a):u.isArray(a)?a.slice():a}function s(f,a,d){if(u.isUndefined(a)){if(!u.isUndefined(f))return r(void 0,f,d)}else return r(f,a,d)}function o(f,a){if(!u.isUndefined(a))return r(void 0,a)}function i(f,a){if(u.isUndefined(a)){if(!u.isUndefined(f))return r(void 0,f)}else return r(void 0,a)}function c(f,a,d){if(d in t)return r(f,a);if(d in e)return r(void 0,f)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,a)=>s($e(f),$e(a),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(a){const d=l[a]||s,b=d(e[a],t[a],a);u.isUndefined(b)&&d!==c||(n[a]=b)}),n}const Ie=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=E.from(i),t.url=xe(De(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(u.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...a]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...a].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(t)),r||r!==!1&&an(t.url))){const f=s&&o&&cn.read(o);f&&i.set(s,f)}return t},fn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=Ie(e);let o=s.data;const i=E.from(s.headers).normalize();let{responseType:c}=s,l;function f(){s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let a=new XMLHttpRequest;a.open(s.method.toUpperCase(),s.url,!0),a.timeout=s.timeout;function d(){if(!a)return;const m=E.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),y={data:!c||c==="text"||c==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};_e(function(S){n(S),f()},function(S){r(S),f()},y),a=null}"onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new p("Request aborted",p.ECONNABORTED,s,a)),a=null)},a.onerror=function(){r(new p("Network Error",p.ERR_NETWORK,s,a)),a=null},a.ontimeout=function(){let h=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const y=s.transitional||qe;s.timeoutErrorMessage&&(h=s.timeoutErrorMessage),r(new p(h,y.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,s,a)),a=null},o===void 0&&i.setContentType(null),"setRequestHeader"in a&&u.forEach(i.toJSON(),function(h,y){a.setRequestHeader(y,h)}),u.isUndefined(s.withCredentials)||(a.withCredentials=!!s.withCredentials),c&&c!=="json"&&(a.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&a.addEventListener("progress",W(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",W(s.onUploadProgress)),(s.cancelToken||s.signal)&&(l=m=>{a&&(r(!m||m.type?new F(null,e,a):m),a.abort(),a=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const b=rn(s.url);if(b&&P.protocols.indexOf(b)===-1){r(new p("Unsupported protocol "+b+":",p.ERR_BAD_REQUEST,e));return}a.send(o||null)})},dn=(e,t)=>{let n=new AbortController,r;const s=function(l){if(!r){r=!0,i();const f=l instanceof Error?l:this.reason;n.abort(f instanceof p?f:new F(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{s(new p(`timeout ${t} of ms exceeded`,p.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",s):l.unsubscribe(s))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=i,[c,()=>{o&&clearTimeout(o),o=null}]},hn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},pn=async function*(e,t,n){for await(const r of e)yield*hn(ArrayBuffer.isView(r)?r:await n(String(r)),t)},je=(e,t,n,r,s)=>{const o=pn(e,t,s);let i=0;return new ReadableStream({type:"bytes",async pull(c){const{done:l,value:f}=await o.next();if(l){c.close(),r();return}let a=f.byteLength;n&&n(i+=a),c.enqueue(new Uint8Array(f))},cancel(c){return r(c),o.return()}},{highWaterMark:2})},He=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Je=Q&&typeof ReadableStream=="function",ae=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mn=Je&&(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ze=64*1024,ce=Je&&!!(()=>{try{return u.isReadableStream(new Response("").body)}catch{}})(),X={stream:ce&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X[t]&&(X[t]=u.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new p(`Response type '${t}' is not supported`,p.ERR_NOT_SUPPORT,r)})})})(new Response);const yn=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(u.isArrayBufferView(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await ae(e)).byteLength},bn=async(e,t)=>{const n=u.toFiniteNumber(e.getContentLength());return n??yn(t)},ue={http:It,xhr:fn,fetch:Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:l,responseType:f,headers:a,withCredentials:d="same-origin",fetchOptions:b}=Ie(e);f=f?(f+"").toLowerCase():"text";let[m,h]=s||o||i?dn([s,o],i):[],y,T;const S=()=>{!y&&setTimeout(()=>{m&&m.unsubscribe()}),y=!0};let N;try{if(l&&mn&&n!=="get"&&n!=="head"&&(N=await bn(a,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),_;u.isFormData(r)&&(_=x.headers.get("content-type"))&&a.setContentType(_),x.body&&(r=je(x.body,ze,He(N,W(l)),null,ae))}u.isString(d)||(d=d?"cors":"omit"),T=new Request(t,{...b,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let g=await fetch(T);const J=ce&&(f==="stream"||f==="response");if(ce&&(c||J)){const x={};["status","statusText","headers"].forEach(tt=>{x[tt]=g[tt]});const _=u.toFiniteNumber(g.headers.get("content-length"));g=new Response(je(g.body,ze,c&&He(_,W(c,!0)),J&&S,ae),x)}f=f||"text";let Kn=await X[u.findKey(X,f)||"text"](g,e);return!J&&S(),h&&h(),await new Promise((x,_)=>{_e(x,_,{data:Kn,headers:E.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:T})})}catch(g){throw S(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new p("Network Error",p.ERR_NETWORK,e,T),{cause:g.cause||g}):p.from(g,g&&g.code,e,T)}})};u.forEach(ue,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Me=e=>`- ${e}`,gn=e=>u.isFunction(e)||e===null||e===!1,Ve={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!gn(n)&&(r=ue[(i=String(n)).toLowerCase()],r===void 0))throw new p(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
3
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Le]=this[Le]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=H(i);r[c]||(nn(s,i),r[c]=!0)}return u.isArray(t)?t.forEach(o):o(t),this}};E.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(E.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),u.freezeMethods(E);function ie(e,t){const n=this||j,r=t||n,s=E.from(r.headers);let o=r.data;return u.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function _e(e){return!!(e&&e.__CANCEL__)}function _(e,t,n){p.call(this,e??"canceled",p.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(_,p,{__CANCEL__:!0});function Fe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new p("Request failed with status code "+n.status,[p.ERR_BAD_REQUEST,p.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),a=r[o];i||(i=f),n[s]=l,r[s]=f;let d=o,b=0;for(;d!==s;)b+=n[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i<t)return;const m=a&&f-a;return m?Math.round(b*1e3/m):void 0}}function on(e,t){let n=0;const r=1e3/t;let s=null;return function(){const i=this===!0,c=Date.now();if(i||c-n>r)return s&&(clearTimeout(s),s=null),n=c,e.apply(null,arguments);s||(s=setTimeout(()=>(s=null,n=Date.now(),e.apply(null,arguments)),r-(c-n)))}}const W=(e,t,n=3)=>{let r=0;const s=sn(50,250);return on(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,l=i-r,f=s(l),a=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:l,rate:f||void 0,estimated:f&&c&&a?(c-i)/f:void 0,event:o,lengthComputable:c!=null};d[t?"download":"upload"]=!0,e(d)},n)},an=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=u.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),cn=P.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),u.isString(r)&&i.push("path="+r),u.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function un(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ln(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $e(e,t){return e&&!un(t)?ln(e,t):t}const De=e=>e instanceof E?{...e}:e;function U(e,t){t=t||{};const n={};function r(f,a,d){return u.isPlainObject(f)&&u.isPlainObject(a)?u.merge.call({caseless:d},f,a):u.isPlainObject(a)?u.merge({},a):u.isArray(a)?a.slice():a}function s(f,a,d){if(u.isUndefined(a)){if(!u.isUndefined(f))return r(void 0,f,d)}else return r(f,a,d)}function o(f,a){if(!u.isUndefined(a))return r(void 0,a)}function i(f,a){if(u.isUndefined(a)){if(!u.isUndefined(f))return r(void 0,f)}else return r(void 0,a)}function c(f,a,d){if(d in t)return r(f,a);if(d in e)return r(void 0,f)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,a)=>s(De(f),De(a),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(a){const d=l[a]||s,b=d(e[a],t[a],a);u.isUndefined(b)&&d!==c||(n[a]=b)}),n}const Ie=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=E.from(i),t.url=xe($e(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(u.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...a]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...a].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&u.isFunction(r)&&(r=r(t)),r||r!==!1&&an(t.url))){const f=s&&o&&cn.read(o);f&&i.set(s,f)}return t},fn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=Ie(e);let o=s.data;const i=E.from(s.headers).normalize();let{responseType:c}=s,l;function f(){s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let a=new XMLHttpRequest;a.open(s.method.toUpperCase(),s.url,!0),a.timeout=s.timeout;function d(){if(!a)return;const m=E.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),y={data:!c||c==="text"||c==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};Fe(function(S){n(S),f()},function(S){r(S),f()},y),a=null}"onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(r(new p("Request aborted",p.ECONNABORTED,s,a)),a=null)},a.onerror=function(){r(new p("Network Error",p.ERR_NETWORK,s,a)),a=null},a.ontimeout=function(){let h=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const y=s.transitional||qe;s.timeoutErrorMessage&&(h=s.timeoutErrorMessage),r(new p(h,y.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,s,a)),a=null},o===void 0&&i.setContentType(null),"setRequestHeader"in a&&u.forEach(i.toJSON(),function(h,y){a.setRequestHeader(y,h)}),u.isUndefined(s.withCredentials)||(a.withCredentials=!!s.withCredentials),c&&c!=="json"&&(a.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&a.addEventListener("progress",W(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",W(s.onUploadProgress)),(s.cancelToken||s.signal)&&(l=m=>{a&&(r(!m||m.type?new _(null,e,a):m),a.abort(),a=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const b=rn(s.url);if(b&&P.protocols.indexOf(b)===-1){r(new p("Unsupported protocol "+b+":",p.ERR_BAD_REQUEST,e));return}a.send(o||null)})},dn=(e,t)=>{let n=new AbortController,r;const s=function(l){if(!r){r=!0,i();const f=l instanceof Error?l:this.reason;n.abort(f instanceof p?f:new _(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{s(new p(`timeout ${t} of ms exceeded`,p.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",s):l.unsubscribe(s))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",s));const{signal:c}=n;return c.unsubscribe=i,[c,()=>{o&&clearTimeout(o),o=null}]},hn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},pn=async function*(e,t,n){for await(const r of e)yield*hn(ArrayBuffer.isView(r)?r:await n(String(r)),t)},je=(e,t,n,r,s)=>{const o=pn(e,t,s);let i=0;return new ReadableStream({type:"bytes",async pull(c){const{done:l,value:f}=await o.next();if(l){c.close(),r();return}let a=f.byteLength;n&&n(i+=a),c.enqueue(new Uint8Array(f))},cancel(c){return r(c),o.return()}},{highWaterMark:2})},He=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Q=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ze=Q&&typeof ReadableStream=="function",ae=Q&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mn=ze&&(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Je=64*1024,ce=ze&&!!(()=>{try{return u.isReadableStream(new Response("").body)}catch{}})(),X={stream:ce&&(e=>e.body)};Q&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!X[t]&&(X[t]=u.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new p(`Response type '${t}' is not supported`,p.ERR_NOT_SUPPORT,r)})})})(new Response);const yn=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(u.isArrayBufferView(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await ae(e)).byteLength},bn=async(e,t)=>{const n=u.toFiniteNumber(e.getContentLength());return n??yn(t)},ue={http:It,xhr:fn,fetch:Q&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:l,responseType:f,headers:a,withCredentials:d="same-origin",fetchOptions:b}=Ie(e);f=f?(f+"").toLowerCase():"text";let[m,h]=s||o||i?dn([s,o],i):[],y,T;const S=()=>{!y&&setTimeout(()=>{m&&m.unsubscribe()}),y=!0};let N;try{if(l&&mn&&n!=="get"&&n!=="head"&&(N=await bn(a,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),F;u.isFormData(r)&&(F=x.headers.get("content-type"))&&a.setContentType(F),x.body&&(r=je(x.body,Je,He(N,W(l)),null,ae))}u.isString(d)||(d=d?"cors":"omit"),T=new Request(t,{...b,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let g=await fetch(T);const z=ce&&(f==="stream"||f==="response");if(ce&&(c||z)){const x={};["status","statusText","headers"].forEach(tt=>{x[tt]=g[tt]});const F=u.toFiniteNumber(g.headers.get("content-length"));g=new Response(je(g.body,Je,c&&He(F,W(c,!0)),z&&S,ae),x)}f=f||"text";let Kn=await X[u.findKey(X,f)||"text"](g,e);return!z&&S(),h&&h(),await new Promise((x,F)=>{Fe(x,F,{data:Kn,headers:E.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:T})})}catch(g){throw S(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new p("Network Error",p.ERR_NETWORK,e,T),{cause:g.cause||g}):p.from(g,g&&g.code,e,T)}})};u.forEach(ue,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Me=e=>`- ${e}`,gn=e=>u.isFunction(e)||e===null||e===!1,Ve={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!gn(n)&&(r=ue[(i=String(n)).toLowerCase()],r===void 0))throw new p(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(Me).join(`
|
|
5
|
-
`):" "+Me(o[0]):"as no adapter specified";throw new p("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ue};function le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new
|
|
6
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&de.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:de.assertOptions(s,{encode:k.function,serialize:k.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=E.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let a,d=0,b;if(!l){const h=[ve.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,f),b=h.length,a=Promise.resolve(n);d<b;)a=a.then(h[d++],h[d++]);return a}b=c.length;let m=n;for(d=0;d<b;){const h=c[d++],y=c[d++];try{m=h(m)}catch(T){y.call(this,T);break}}try{a=ve.call(this,m)}catch(h){return Promise.reject(h)}for(d=0,b=f.length;d<b;)a=a.then(f[d++],f[d++]);return a}getUri(t){t=U(this.defaults,t);const n=De(t.baseURL,t.url);return xe(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){q.prototype[t]=function(n,r){return this.request(U(r||{},{method:t,url:n,data:(r||{}).data}))}}),u.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(U(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}q.prototype[t]=n(),q.prototype[t+"Form"]=n(!0)});let Tn=class nt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new F(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new nt(function(s){t=s}),cancel:t}}};function Sn(e){return function(n){return e.apply(null,n)}}function En(e){return u.isObject(e)&&e.isAxiosError===!0}const he={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(he).forEach(([e,t])=>{he[t]=e});function We(e){const t=new q(e),n=B(q.prototype.request,t);return u.extend(n,q.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return We(U(e,s))},n}const w=We(j);w.Axios=q,w.CanceledError=F,w.CancelToken=Tn,w.isCancel=Fe,w.VERSION=Ge,w.toFormData=G,w.AxiosError=p,w.Cancel=w.CanceledError,w.all=function(t){return Promise.all(t)},w.spread=Sn,w.isAxiosError=En,w.mergeConfig=U,w.AxiosHeaders=E,w.formToJSON=e=>Be(u.isHTMLForm(e)?new FormData(e):e),w.getAdapter=Ve.getAdapter,w.HttpStatusCode=he,w.default=w;const{Axios:nr,AxiosError:Rn,CanceledError:rr,isCancel:sr,CancelToken:or,VERSION:ir,all:ar,Cancel:cr,isAxiosError:ur,spread:lr,toFormData:fr,AxiosHeaders:Qe,HttpStatusCode:dr,formToJSON:hr,getAdapter:pr,mergeConfig:mr}=w,Xe="auth",Ze=async(e,t,n)=>{const r={client_id:e.clientId,client_secret:e.clientSecret},s=await n.post(`${e.url}/security/connect/token/refresh`,r,{withCredentials:!0,headers:t||{}}),o={...s.data,accessToken:s.data.access_token};return"access_token"in o&&delete o.access_token,s.status===200&&o.accessToken&&localStorage.setItem("accessToken",o.accessToken),o},On=e=>{const t=O(e),n=e.digitalRefresh,r=async c=>{var f;const l=await t.request(`/${Xe}/login`,{method:"POST",data:JSON.stringify(c)});return l.status===200&&((f=l.data)!=null&&f.accessToken)&&localStorage.setItem("accessToken",l.data.accessToken),l},s=async c=>await t.request(`/${Xe}?code=${c}`,{method:"GET",data:""}),o=async()=>{try{await t.request("/security/api/authorization/logout",{method:"POST",data:"",withCredentials:!0})}catch(c){console.error("Error during logout:",c)}finally{t.clearTokens();const c=e.refreshLogoutUrl??"";c&&(globalThis.location.href=`${c}?logout`)}},i=t.axiosClient;return{postLogin:r,getToken:s,postToken:n?()=>Ze(n,e.headers,i):void 0,postLogout:o}},Ye=()=>new Rn("Unauthorized","ERR_UNAUTHORIZED",{headers:new Qe},null,{status:401,data:null,statusText:"UNAUTHORIZED",headers:{},config:{headers:new Qe}}),An=e=>{let t=!1;const n=[],r=()=>localStorage.getItem("accessToken"),s=()=>localStorage.getItem("refreshToken"),o=a=>{const d=a.accessToken,b=a.refreshToken;d&&localStorage.setItem("accessToken",d),b&&localStorage.setItem("refreshToken",b)},i=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken")},c=(a,d=null)=>{var b;for(const m of n)a?m.reject(a):((b=m.requestConfig).headers??(b.headers={}),m.requestConfig.headers.Authorization=`Bearer ${d}`,m.resolve(m.requestConfig));n.length=0};return{getAccessToken:r,setTokens:o,clearTokens:i,handleTokenRefresh:async a=>{var d;if(e.refreshTokenEndpointPath&&((d=a.url)==null?void 0:d.includes(e.refreshTokenEndpointPath))){i();const m=Ye();throw c(m),e.refreshLogoutUrl&&(globalThis.location.href=`${e.refreshLogoutUrl}?logout`),m}if(t)return new Promise((b,m)=>{n.push({resolve:b,reject:m,requestConfig:a})});t=!0;try{const b=s(),m=await e.onRefreshToken(b);return o(m),a.headers??(a.headers={}),a.headers.Authorization=`Bearer ${m.accessToken}`,c(null,m.accessToken),t=!1,a}catch{i();const b=Ye();throw c(b),t=!1,b}},isAuthError:a=>{var d;return((d=a==null?void 0:a.response)==null?void 0:d.status)===401}}},Pn=e=>{const t=r=>r?r.toString().replace(/(^\/{1,2})|(\/{1,2}$)/g,""):null;return[t(e.baseUrl),t(e.productCode),t(e.apiVersion),t(e.endpoint)].filter(Boolean).join("/")},Nn=(e,t,n,r,s)=>{var f;if(!t)return null;const o=!!e.digitalRefresh,i=e.refreshTokenApiVersion??s,c=e.refreshTokenEndpointPath??(o?"/security/connect/token/refresh":"/refresh-token"),l=`${r}/auth/${i}${c}`;return An({baseUrl:e.baseUrl,refreshTokenEndpointPath:c,digitalRefreshUrl:(f=e.digitalRefresh)==null?void 0:f.url,refreshLogoutUrl:e.refreshLogoutUrl??void 0,onRefreshToken:async a=>o?await Ze(e.digitalRefresh,e.headers,n):(await n.post(l,{refreshToken:a})).data})},kn=(e,t)=>{e.interceptors.response.use(n=>n,async n=>{const r=n.config;if(!t.isAuthError(n)||r._retry)throw n;r._retry=!0;const s=await t.handleTokenRefresh(r);return e.request(s)})},Cn=(e,t,n,r,s)=>{const o={"Content-Type":(e==null?void 0:e.contentType)??"application/json",apiVersion:t??"",Authorization:"",...n,...e==null?void 0:e.headers};if(s&&r){const i=r.getAccessToken();i&&(o.Authorization=`Bearer ${i}`)}return o},xn=(e,t,n)=>{const r={method:(e==null?void 0:e.method)??"GET",headers:t,url:n,data:(e==null?void 0:e.data)??{},responseType:e==null?void 0:e.responseType};return(e==null?void 0:e.withCredentials)!==void 0&&(r.withCredentials=e.withCredentials),r},Un=(e,t)=>({getAccessToken:e&&t?t.getAccessToken:()=>null,setTokens:e&&t?t.setTokens:()=>{},clearTokens:e&&t?t.clearTokens:()=>{}}),O=e=>{const t=w.create(),n=e.apiVersion,r=e.productCode,o=e.baseUrl.replace(/\/$/,""),i=e.hasTokenManager!==!1,c=Nn(e,i,t,o,n);i&&c&&kn(t,c),e.responseInterceptor&&t.interceptors.response.use(e.responseInterceptor.onFulfilled,e.responseInterceptor.onReject);const l=async(a,d)=>{const b=a.startsWith("/")?a.substring(1):a,m=Pn({baseUrl:o,productCode:r,apiVersion:n,endpoint:b}),h=Cn(d,n,e.headers,c,i),y=xn(d,h,m);return await t.request(y)},f=Un(i,c);return{request:l,...f,axiosClient:t}},qn="cep";function Bn(e){const t=O(e);function n(r){return t.request(`/${qn}`,{method:"POST",data:JSON.stringify(r)})}return{getAddress:n}}const Ln=e=>{const t=O(e);return{signUp:async c=>await t.request("/sign-up",{method:"POST",data:JSON.stringify(c)}),signIn:async c=>{var f,a;const l=await t.request("/sign-in",{method:"POST",data:JSON.stringify(c)});return l.status===200&&((f=l.data)!=null&&f.accessToken)&&((a=l.data)!=null&&a.refreshToken)&&t.setTokens(l.data),l},getProfile:async()=>await t.request("/me",{method:"GET",data:""}),recoverPassword:async c=>await t.request("/recovery",{method:"POST",data:JSON.stringify(c)}),updatePassword:async c=>await t.request("/update-password",{method:"POST",data:JSON.stringify(c)})}},et="digital",Fn=e=>{const t=O(e);return{getBroker:()=>t.request(`/${et}/getBroker`,{method:"GET",data:""}),getAllBrokerages:s=>t.request(`/${et}/getAllBrokerages?name=${s}`,{method:"GET",data:""})}},_n="data",Dn=e=>{const t=O(e);return{postData:async r=>await t.request(`/${_n}`,{method:"POST",data:JSON.stringify(r)})}},$n="endorsement",In=e=>{const t=O(e);return{putEndorsement:(r,s)=>{const o=new FormData;return o.append("data",JSON.stringify(r)),s&&(Array.isArray(s)?s.forEach(i=>{o.append("attachments",i)}):o.append("attachments",s)),t.request(`/${$n}`,{method:"PUT",data:o,contentType:"multipart/form-data"})}}},pe="payment",jn=e=>{const t=O(e);return{postPayment:o=>t.request(`/${pe}`,{method:"POST",data:JSON.stringify(o)}),getPaymentStatus:o=>t.request(`/${pe}/status?policyId=${o.policyId}`,{method:"GET",data:""}),getPaymentSummary:o=>t.request(`/${pe}/summary?policyId=${o.policyId}`,{method:"GET",data:""})}},Z="product/action",Hn=e=>{const t=O(e);return{getCnpjStatus:(i,c,l)=>{const a=new URLSearchParams({...i&&{cnpj:i},...c&&{brokerageIdentity:c},...l!==void 0&&{isBrokerageDefinedAtStart:String(l)}}).toString(),d=`/${Z}/Custom/CnpjCheck?${a}`;return t.request(d,{method:"GET",data:""})},getKeyNumber:()=>t.request(`/${Z}/Custom/GetKeyNumber`,{method:"GET",data:""}),getProposalNumberByKeyNumber:i=>t.request(`/${Z}/Custom/GetProposalNoByKeyNumber?keyNumber=${i.keyNumber}`,{method:"GET",data:""}),postCoveragesAndClausesRules:i=>t.request(`/${Z}/Custom/LoadRules`,{method:"POST",data:JSON.stringify(i)})}},C="quotation",Jn=e=>{const t=O(e);return{getQuotations:a=>{const d=new URLSearchParams({...a});return t.request(`/${C}/query?${d.toString()}`,{method:"GET",data:""})},getQuotationDetail:a=>{const d=new URLSearchParams({id:a.policyId});return t.request(`/${C}?${d.toString()}`,{method:"GET",data:""})},postQuickQuote:a=>t.request(`/${C}/QuickQuote`,{method:"POST",data:JSON.stringify(a)}),postFullQuote:a=>t.request(`/${C}/FullQuote`,{method:"POST",data:JSON.stringify(a)}),postBind:a=>t.request(`/${C}/Bind`,{method:"POST",data:JSON.stringify(a)}),getQuotation:a=>t.request(`/${C}?id=${a.policyId}`,{method:"GET",data:""}),getVersions:a=>t.request(`/${C}/versions?policyId=${a.policyId}`,{method:"GET",data:""}),switchSelectedVersion:a=>t.request(`/${C}/switchSelectedVersion?policyId=${a.policyId}"ationVersionId=${a.quotationVersionId}`,{method:"POST",data:JSON.stringify(a)})}},zn="report",Mn=e=>{const t=O(e);return{getReportStream:r=>{const s=new URLSearchParams({policyId:r.policyId,documentType:r.documentType??"certificate",...r.additionalParams});return t.request(`/${zn}/generate-stream?${s.toString()}`,{method:"GET",data:"",responseType:"blob"})}}},Vn="SubscriberData",vn=e=>{const t=O(e);return{getSubscriber:r=>t.request(`/${Vn}/get-subscriber-data?cnpj=${r}`,{method:"GET",data:""})}};function Gn(e){const t=On(e),n=Ln(e),r=Dn(e),s=Jn(e),o=jn(e),i=Bn(e),c=Fn(e),l=In(e),f=Hn(e),a=Mn(e),d=vn(e),b=O(e);return{auth:t,authAkad:n,data:r,quotation:s,payment:o,address:i,broker:c,endorsement:l,plugin:f,report:a,subscriber:d,base:b}}return Gn});
|
|
5
|
+
`):" "+Me(o[0]):"as no adapter specified";throw new p("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ue};function le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _(null,e)}function ve(e){return le(e),e.headers=E.from(e.headers),e.data=ie.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ve.getAdapter(e.adapter||j.adapter)(e).then(function(r){return le(e),r.data=ie.call(e,e.transformResponse,r),r.headers=E.from(r.headers),r},function(r){return _e(r)||(le(e),r&&r.response&&(r.response.data=ie.call(e,e.transformResponse,r.response),r.response.headers=E.from(r.response.headers))),Promise.reject(r)})}const Ge="1.7.2",fe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fe[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ke={};fe.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ge+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new p(s(i," has been removed"+(n?" in "+n:"")),p.ERR_DEPRECATED);return n&&!Ke[i]&&(Ke[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function wn(e,t,n){if(typeof e!="object")throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new p("option "+o+" must be "+l,p.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new p("Unknown option "+o,p.ERR_BAD_OPTION)}}const de={assertOptions:wn,validators:fe},k=de.validators;let q=class{constructor(t){this.defaults=t,this.interceptors={request:new Ue,response:new Ue}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&de.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(u.isFunction(s)?n.paramsSerializer={serialize:s}:de.assertOptions(s,{encode:k.function,serialize:k.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&u.merge(o.common,o[n.method]);o&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=E.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let a,d=0,b;if(!l){const h=[ve.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,f),b=h.length,a=Promise.resolve(n);d<b;)a=a.then(h[d++],h[d++]);return a}b=c.length;let m=n;for(d=0;d<b;){const h=c[d++],y=c[d++];try{m=h(m)}catch(T){y.call(this,T);break}}try{a=ve.call(this,m)}catch(h){return Promise.reject(h)}for(d=0,b=f.length;d<b;)a=a.then(f[d++],f[d++]);return a}getUri(t){t=U(this.defaults,t);const n=$e(t.baseURL,t.url);return xe(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){q.prototype[t]=function(n,r){return this.request(U(r||{},{method:t,url:n,data:(r||{}).data}))}}),u.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,c){return this.request(U(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}q.prototype[t]=n(),q.prototype[t+"Form"]=n(!0)});let Tn=class nt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new _(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new nt(function(s){t=s}),cancel:t}}};function Sn(e){return function(n){return e.apply(null,n)}}function En(e){return u.isObject(e)&&e.isAxiosError===!0}const he={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(he).forEach(([e,t])=>{he[t]=e});function We(e){const t=new q(e),n=B(q.prototype.request,t);return u.extend(n,q.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return We(U(e,s))},n}const w=We(j);w.Axios=q,w.CanceledError=_,w.CancelToken=Tn,w.isCancel=_e,w.VERSION=Ge,w.toFormData=G,w.AxiosError=p,w.Cancel=w.CanceledError,w.all=function(t){return Promise.all(t)},w.spread=Sn,w.isAxiosError=En,w.mergeConfig=U,w.AxiosHeaders=E,w.formToJSON=e=>Be(u.isHTMLForm(e)?new FormData(e):e),w.getAdapter=Ve.getAdapter,w.HttpStatusCode=he,w.default=w;const{Axios:nr,AxiosError:Rn,CanceledError:rr,isCancel:sr,CancelToken:or,VERSION:ir,all:ar,Cancel:cr,isAxiosError:ur,spread:lr,toFormData:fr,AxiosHeaders:Qe,HttpStatusCode:dr,formToJSON:hr,getAdapter:pr,mergeConfig:mr}=w,Xe="auth",Ze=async(e,t,n)=>{const r={client_id:e.clientId,client_secret:e.clientSecret},s=await n.post(`${e.url}/security/connect/token/refresh`,r,{withCredentials:!0,headers:t||{}}),o={...s.data,accessToken:s.data.access_token};return"access_token"in o&&delete o.access_token,s.status===200&&o.accessToken&&localStorage.setItem("accessToken",o.accessToken),o},On=e=>{const t=O(e),n=e.digitalRefresh,r=async c=>{var f;const l=await t.request(`/${Xe}/login`,{method:"POST",data:JSON.stringify(c)});return l.status===200&&((f=l.data)!=null&&f.accessToken)&&localStorage.setItem("accessToken",l.data.accessToken),l},s=async c=>await t.request(`/${Xe}?code=${c}`,{method:"GET",data:""}),o=async()=>{try{await t.request("/security/api/authorization/logout",{method:"POST",data:"",withCredentials:!0})}catch(c){console.error("Error during logout:",c)}finally{t.clearTokens();const c=e.refreshLogoutUrl??"";c&&(globalThis.location.href=`${c}?logout`)}},i=t.axiosClient;return{postLogin:r,getToken:s,postToken:n?()=>Ze(n,e.headers,i):void 0,postLogout:o}},Ye=()=>new Rn("Unauthorized","ERR_UNAUTHORIZED",{headers:new Qe},null,{status:401,data:null,statusText:"UNAUTHORIZED",headers:{},config:{headers:new Qe}}),An=e=>{let t=!1;const n=[],r=()=>localStorage.getItem("accessToken"),s=()=>localStorage.getItem("refreshToken"),o=a=>{const d=a.accessToken,b=a.refreshToken;d&&localStorage.setItem("accessToken",d),b&&localStorage.setItem("refreshToken",b)},i=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken")},c=(a,d=null)=>{var b;for(const m of n)a?m.reject(a):((b=m.requestConfig).headers??(b.headers={}),m.requestConfig.headers.Authorization=`Bearer ${d}`,m.resolve(m.requestConfig));n.length=0};return{getAccessToken:r,setTokens:o,clearTokens:i,handleTokenRefresh:async a=>{var d;if(e.refreshTokenEndpointPath&&((d=a.url)==null?void 0:d.includes(e.refreshTokenEndpointPath))){i();const m=Ye();throw c(m),e.refreshLogoutUrl&&(globalThis.location.href=`${e.refreshLogoutUrl}?logout`),m}if(t)return new Promise((b,m)=>{n.push({resolve:b,reject:m,requestConfig:a})});t=!0;try{const b=s(),m=await e.onRefreshToken(b);return o(m),a.headers??(a.headers={}),a.headers.Authorization=`Bearer ${m.accessToken}`,c(null,m.accessToken),t=!1,a}catch{i();const b=Ye();throw c(b),t=!1,b}},isAuthError:a=>{var d;return((d=a==null?void 0:a.response)==null?void 0:d.status)===401}}},Pn=e=>{const t=r=>r?r.toString().replace(/(^\/{1,2})|(\/{1,2}$)/g,""):null;return[t(e.baseUrl),t(e.productCode),t(e.apiVersion),t(e.endpoint)].filter(Boolean).join("/")},Nn=(e,t,n,r,s)=>{var f;if(!t)return null;const o=!!e.digitalRefresh,i=e.refreshTokenApiVersion??s,c=e.refreshTokenEndpointPath??(o?"/security/connect/token/refresh":"/refresh-token"),l=`${r}/auth/${i}${c}`;return An({baseUrl:e.baseUrl,refreshTokenEndpointPath:c,digitalRefreshUrl:(f=e.digitalRefresh)==null?void 0:f.url,refreshLogoutUrl:e.refreshLogoutUrl??void 0,onRefreshToken:async a=>o?await Ze(e.digitalRefresh,e.headers,n):(await n.post(l,{refreshToken:a})).data})},kn=(e,t)=>{e.interceptors.response.use(n=>n,async n=>{const r=n.config;if(!t.isAuthError(n)||r._retry)throw n;r._retry=!0;const s=await t.handleTokenRefresh(r);return e.request(s)})},Cn=(e,t,n,r,s)=>{const o={"Content-Type":(e==null?void 0:e.contentType)??"application/json",apiVersion:t??"",Authorization:"",...n,...e==null?void 0:e.headers};if(s&&r){const i=r.getAccessToken();i&&(o.Authorization=`Bearer ${i}`)}return o},xn=(e,t,n)=>{const r={method:(e==null?void 0:e.method)??"GET",headers:t,url:n,data:(e==null?void 0:e.data)??{},responseType:e==null?void 0:e.responseType};return(e==null?void 0:e.withCredentials)!==void 0&&(r.withCredentials=e.withCredentials),r},Un=(e,t)=>({getAccessToken:e&&t?t.getAccessToken:()=>null,setTokens:e&&t?t.setTokens:()=>{},clearTokens:e&&t?t.clearTokens:()=>{}}),O=e=>{const t=w.create(),n=e.apiVersion,r=e.productCode,o=e.baseUrl.replace(/\/$/,""),i=e.hasTokenManager!==!1,c=Nn(e,i,t,o,n);i&&c&&kn(t,c),e.responseInterceptor&&t.interceptors.response.use(e.responseInterceptor.onFulfilled,e.responseInterceptor.onReject);const l=async(a,d)=>{const b=a.startsWith("/")?a.substring(1):a,m=Pn({baseUrl:o,productCode:r,apiVersion:n,endpoint:b}),h=Cn(d,n,e.headers,c,i),y=xn(d,h,m);return await t.request(y)},f=Un(i,c);return{request:l,...f,axiosClient:t}},qn="cep";function Bn(e){const t=O(e);function n(r){return t.request(`/${qn}`,{method:"POST",data:JSON.stringify(r)})}return{getAddress:n}}const Ln=e=>{const t=O(e);return{signUp:async c=>await t.request("/sign-up",{method:"POST",data:JSON.stringify(c)}),signIn:async c=>{var f,a;const l=await t.request("/sign-in",{method:"POST",data:JSON.stringify(c)});return l.status===200&&((f=l.data)!=null&&f.accessToken)&&((a=l.data)!=null&&a.refreshToken)&&t.setTokens(l.data),l},getProfile:async()=>await t.request("/me",{method:"GET",data:""}),recoverPassword:async c=>await t.request("/recovery",{method:"POST",data:JSON.stringify(c)}),updatePassword:async c=>await t.request("/update-password",{method:"POST",data:JSON.stringify(c)})}},et="digital",_n=e=>{const t=O(e);return{getBroker:()=>t.request(`/${et}/getBroker`,{method:"GET",data:""}),getAllBrokerages:s=>t.request(`/${et}/getAllBrokerages?name=${s}`,{method:"GET",data:""})}},Fn="data",$n=e=>{const t=O(e);return{postData:async r=>await t.request(`/${Fn}`,{method:"POST",data:JSON.stringify(r)})}},Dn="endorsement",In=e=>{const t=O(e);return{putEndorsement:r=>t.request(`/${Dn}`,{method:"PUT",data:r,contentType:"multipart/form-data"})}},pe="payment",jn=e=>{const t=O(e);return{postPayment:o=>t.request(`/${pe}`,{method:"POST",data:JSON.stringify(o)}),getPaymentStatus:o=>t.request(`/${pe}/status?policyId=${o.policyId}`,{method:"GET",data:""}),getPaymentSummary:o=>t.request(`/${pe}/summary?policyId=${o.policyId}`,{method:"GET",data:""})}},Z="product/action",Hn=e=>{const t=O(e);return{getCnpjStatus:(i,c,l)=>{const a=new URLSearchParams({...i&&{cnpj:i},...c&&{brokerageIdentity:c},...l!==void 0&&{isBrokerageDefinedAtStart:String(l)}}).toString(),d=`/${Z}/Custom/CnpjCheck?${a}`;return t.request(d,{method:"GET",data:""})},getKeyNumber:()=>t.request(`/${Z}/Custom/GetKeyNumber`,{method:"GET",data:""}),getProposalNumberByKeyNumber:i=>t.request(`/${Z}/Custom/GetProposalNoByKeyNumber?keyNumber=${i.keyNumber}`,{method:"GET",data:""}),postCoveragesAndClausesRules:i=>t.request(`/${Z}/Custom/LoadRules`,{method:"POST",data:JSON.stringify(i)})}},C="quotation",zn=e=>{const t=O(e);return{getQuotations:a=>{const d=new URLSearchParams({...a});return t.request(`/${C}/query?${d.toString()}`,{method:"GET",data:""})},getQuotationDetail:a=>{const d=new URLSearchParams({id:a.policyId});return t.request(`/${C}?${d.toString()}`,{method:"GET",data:""})},postQuickQuote:a=>t.request(`/${C}/QuickQuote`,{method:"POST",data:JSON.stringify(a)}),postFullQuote:a=>t.request(`/${C}/FullQuote`,{method:"POST",data:JSON.stringify(a)}),postBind:a=>t.request(`/${C}/Bind`,{method:"POST",data:JSON.stringify(a)}),getQuotation:a=>t.request(`/${C}?id=${a.policyId}`,{method:"GET",data:""}),getVersions:a=>t.request(`/${C}/versions?policyId=${a.policyId}`,{method:"GET",data:""}),switchSelectedVersion:a=>t.request(`/${C}/switchSelectedVersion?policyId=${a.policyId}"ationVersionId=${a.quotationVersionId}`,{method:"POST",data:JSON.stringify(a)})}},Jn="report",Mn=e=>{const t=O(e);return{getReportStream:r=>{const s=new URLSearchParams({policyId:r.policyId,documentType:r.documentType??"certificate",...r.additionalParams});return t.request(`/${Jn}/generate-stream?${s.toString()}`,{method:"GET",data:"",responseType:"blob"})}}},Vn="SubscriberData",vn=e=>{const t=O(e);return{getSubscriber:r=>t.request(`/${Vn}/get-subscriber-data?cnpj=${r}`,{method:"GET",data:""})}};function Gn(e){const t=On(e),n=Ln(e),r=$n(e),s=zn(e),o=jn(e),i=Bn(e),c=_n(e),l=In(e),f=Hn(e),a=Mn(e),d=vn(e),b=O(e);return{auth:t,authAkad:n,data:r,quotation:s,payment:o,address:i,broker:c,endorsement:l,plugin:f,report:a,subscriber:d,base:b}}return Gn});
|