@das-fed/utils 1.0.9 → 6.3.0-beta.1

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.
Files changed (103) hide show
  1. package/api-services/index.d.ts +2 -1
  2. package/api-services/index.js +3 -2
  3. package/api-services/modules/app-manage.js +1 -1
  4. package/api-services/modules/authentication.js +1 -1
  5. package/api-services/modules/bems.js +1 -1
  6. package/api-services/modules/contract.js +1 -1
  7. package/api-services/modules/duty-manage.js +1 -1
  8. package/api-services/modules/enterpriseright.js +1 -1
  9. package/api-services/modules/file.d.ts +1 -1
  10. package/api-services/modules/file.js +355 -342
  11. package/api-services/modules/gateway-edge.js +1 -1
  12. package/api-services/modules/iot.js +1 -1
  13. package/api-services/modules/justauth.js +1 -1
  14. package/api-services/modules/knowledge.js +1 -1
  15. package/api-services/modules/link.js +1 -1
  16. package/api-services/modules/permission.js +1 -1
  17. package/api-services/modules/platformManage.js +1 -1
  18. package/api-services/modules/portal.js +1 -1
  19. package/api-services/modules/space-manage.js +1 -1
  20. package/api-services/modules/super-admin.js +1 -1
  21. package/api-services/modules/supplier.js +1 -1
  22. package/api-services/modules/supplychain-manage.js +1 -1
  23. package/api-services/modules/systemConfiguration.js +1 -1
  24. package/api-services/modules/tool.js +1 -1
  25. package/api-services/src/create-service.d.ts +1 -1
  26. package/api-services/src/create-service.js +2 -3234
  27. package/common-info/{setInfoFromUrl.d.ts → getInfoFromUrl.d.ts} +1 -1
  28. package/common-info/{setInfoFromUrl.js → getInfoFromUrl.js} +26 -29
  29. package/common-info/index.d.ts +17 -6
  30. package/common-info/index.js +82 -131
  31. package/{api-services/src/sso.js → common-info/set-personal-info.js} +754 -667
  32. package/common-tools/get-url-params.d.ts +21 -8
  33. package/common-tools/get-url-params.js +26 -15
  34. package/common-tools/index.d.ts +2 -0
  35. package/common-tools/index.js +2 -0
  36. package/common-tools/obj-tools.d.ts +1 -1
  37. package/common-tools/platform-tools.d.ts +18 -0
  38. package/common-tools/platform-tools.js +15 -0
  39. package/common-tools/setHtmlMinWH.js +8 -4
  40. package/common-tools/update-fav-icon.d.ts +10 -0
  41. package/common-tools/update-fav-icon.js +22 -0
  42. package/create-api-service/index.d.ts +1 -0
  43. package/create-api-service/index.js +3492 -0
  44. package/create-api-service/proxy-sso.d.ts +3 -0
  45. package/create-api-service/proxy-sso.js +21 -0
  46. package/create-api-service/sso.d.ts +23 -0
  47. package/create-api-service/sso.js +1969 -0
  48. package/curring-http/index.d.ts +3 -2
  49. package/curring-http/index.js +2872 -2662
  50. package/dimple-canvas/index.d.ts +1 -0
  51. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +1 -0
  52. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +2244 -2265
  53. package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +4 -3
  54. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +2 -1
  55. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +2 -1
  56. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +2 -1
  57. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +2 -1
  58. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +1079 -1051
  59. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +2 -1
  60. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +3 -2
  61. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +2 -1
  62. package/dimple-canvas/use-dimple-canvas/index.d.ts +2 -1
  63. package/directive/auth.js +21 -21
  64. package/directive/clickOutside.d.ts +3 -2
  65. package/directive/hoverInside.d.ts +2 -1
  66. package/dom-check-in/index.js +5 -5
  67. package/hooks/popup-manager/use-zindex.js +8 -8
  68. package/hooks/use-get-auth/apis.d.ts +4 -0
  69. package/hooks/use-get-auth/apis.js +8 -0
  70. package/hooks/use-get-auth/index.d.ts +9 -0
  71. package/hooks/use-get-auth/index.js +57 -0
  72. package/nextTiken/index.d.ts +3 -4
  73. package/nextTiken/index.js +34 -46
  74. package/package.json +7 -4
  75. package/pinyin-first-character/index.js +19792 -20877
  76. package/process-engine-info/index.d.ts +5 -2
  77. package/process-engine-info/index.js +11 -6
  78. package/style/index.js +1 -1
  79. package/style/style.d.ts +2 -1
  80. package/style/style.js +1 -1
  81. package/token-tools/index.d.ts +10 -7
  82. package/token-tools/index.js +44 -59
  83. package/use-low-code/index.d.ts +1 -0
  84. package/use-low-code/index.js +70 -0
  85. package/use-low-code/low-code-iframe.vue.d.ts +2 -0
  86. package/use-low-code/style.css +1 -0
  87. package/webSocket-service/index.d.ts +2 -1
  88. package/with-install/index.d.ts +2 -1
  89. package/api-services/src/sso.d.ts +0 -29
  90. package/api-services/src/util.d.ts +0 -1
  91. package/api-services/src/util.js +0 -1466
  92. package/common-info/set-common-info.d.ts +0 -45
  93. package/common-info/set-common-info.js +0 -103
  94. package/common-tools/throttled.d.ts +0 -7
  95. package/common-tools/throttled.js +0 -10
  96. package/micro-app/globalData.d.ts +0 -3
  97. package/micro-app/globalData.js +0 -11
  98. package/micro-app/index.d.ts +0 -5
  99. package/micro-app/index.js +0 -3699
  100. package/panel/index.d.ts +0 -31
  101. package/panel/index.js +0 -37
  102. package/set-personal-info/index.js +0 -1468
  103. /package/{set-personal-info/index.d.ts → common-info/set-personal-info.d.ts} +0 -0
@@ -1,3236 +1,4 @@
1
- import { curringHttp as Sn } from "@das-fed/utils/curring-http";
2
- import { DasMessage as bn } from "@das-fed/ui/packages/components/message";
3
- import { getToken as wn, getQuery as On, login as En, getTokenParams as An, real_uri as $n } from "@das-fed/utils/api-services/src/sso";
4
- import { getProjectInfo as Pn } from "@das-fed/utils/common-info";
5
- import { getAccessToken as Rn } from "@das-fed/utils/token-tools";
6
- import { getConfig as xr } from "@das-fed/utils/config";
7
- function Tr(t, e) {
8
- return function() {
9
- return t.apply(e, arguments);
10
- };
11
- }
12
- const { toString: xn } = Object.prototype, { getPrototypeOf: Ct } = Object, Xe = /* @__PURE__ */ ((t) => (e) => {
13
- const r = xn.call(e);
14
- return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
15
- })(/* @__PURE__ */ Object.create(null)), te = (t) => (t = t.toLowerCase(), (e) => Xe(e) === t), et = (t) => (e) => typeof e === t, { isArray: Ae } = Array, _e = et("undefined");
16
- function Tn(t) {
17
- return t !== null && !_e(t) && t.constructor !== null && !_e(t.constructor) && K(t.constructor.isBuffer) && t.constructor.isBuffer(t);
18
- }
19
- const Dr = te("ArrayBuffer");
20
- function Dn(t) {
21
- let e;
22
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Dr(t.buffer), e;
23
- }
24
- const Fn = et("string"), K = et("function"), Fr = et("number"), tt = (t) => t !== null && typeof t == "object", Nn = (t) => t === !0 || t === !1, je = (t) => {
25
- if (Xe(t) !== "object")
26
- return !1;
27
- const e = Ct(t);
28
- return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
29
- }, Cn = te("Date"), _n = te("File"), Mn = te("Blob"), In = te("FileList"), Un = (t) => tt(t) && K(t.pipe), Bn = (t) => {
30
- let e;
31
- return t && (typeof FormData == "function" && t instanceof FormData || K(t.append) && ((e = Xe(t)) === "formdata" || // detect form-data instance
32
- e === "object" && K(t.toString) && t.toString() === "[object FormData]"));
33
- }, Ln = te("URLSearchParams"), kn = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
34
- function Me(t, e, { allOwnKeys: r = !1 } = {}) {
35
- if (t === null || typeof t > "u")
36
- return;
37
- let n, o;
38
- if (typeof t != "object" && (t = [t]), Ae(t))
39
- for (n = 0, o = t.length; n < o; n++)
40
- e.call(null, t[n], n, t);
41
- else {
42
- const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = i.length;
43
- let s;
44
- for (n = 0; n < a; n++)
45
- s = i[n], e.call(null, t[s], s, t);
46
- }
47
- }
48
- function Nr(t, e) {
49
- e = e.toLowerCase();
50
- const r = Object.keys(t);
51
- let n = r.length, o;
52
- for (; n-- > 0; )
53
- if (o = r[n], e === o.toLowerCase())
54
- return o;
55
- return null;
56
- }
57
- const Cr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _r = (t) => !_e(t) && t !== Cr;
58
- function St() {
59
- const { caseless: t } = _r(this) && this || {}, e = {}, r = (n, o) => {
60
- const i = t && Nr(e, o) || o;
61
- je(e[i]) && je(n) ? e[i] = St(e[i], n) : je(n) ? e[i] = St({}, n) : Ae(n) ? e[i] = n.slice() : e[i] = n;
62
- };
63
- for (let n = 0, o = arguments.length; n < o; n++)
64
- arguments[n] && Me(arguments[n], r);
65
- return e;
66
- }
67
- const Hn = (t, e, r, { allOwnKeys: n } = {}) => (Me(e, (o, i) => {
68
- r && K(o) ? t[i] = Tr(o, r) : t[i] = o;
69
- }, { allOwnKeys: n }), t), zn = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), jn = (t, e, r, n) => {
70
- t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
71
- value: e.prototype
72
- }), r && Object.assign(t.prototype, r);
73
- }, Wn = (t, e, r, n) => {
74
- let o, i, a;
75
- const s = {};
76
- if (e = e || {}, t == null)
77
- return e;
78
- do {
79
- for (o = Object.getOwnPropertyNames(t), i = o.length; i-- > 0; )
80
- a = o[i], (!n || n(a, t, e)) && !s[a] && (e[a] = t[a], s[a] = !0);
81
- t = r !== !1 && Ct(t);
82
- } while (t && (!r || r(t, e)) && t !== Object.prototype);
83
- return e;
84
- }, qn = (t, e, r) => {
85
- t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
86
- const n = t.indexOf(e, r);
87
- return n !== -1 && n === r;
88
- }, Jn = (t) => {
89
- if (!t)
90
- return null;
91
- if (Ae(t))
92
- return t;
93
- let e = t.length;
94
- if (!Fr(e))
95
- return null;
96
- const r = new Array(e);
97
- for (; e-- > 0; )
98
- r[e] = t[e];
99
- return r;
100
- }, Gn = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Ct(Uint8Array)), Vn = (t, e) => {
101
- const n = (t && t[Symbol.iterator]).call(t);
102
- let o;
103
- for (; (o = n.next()) && !o.done; ) {
104
- const i = o.value;
105
- e.call(t, i[0], i[1]);
106
- }
107
- }, Yn = (t, e) => {
108
- let r;
109
- const n = [];
110
- for (; (r = t.exec(e)) !== null; )
111
- n.push(r);
112
- return n;
113
- }, Qn = te("HTMLFormElement"), Kn = (t) => t.toLowerCase().replace(
114
- /[-_\s]([a-z\d])(\w*)/g,
115
- function(r, n, o) {
116
- return n.toUpperCase() + o;
117
- }
118
- ), Vt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Zn = te("RegExp"), Mr = (t, e) => {
119
- const r = Object.getOwnPropertyDescriptors(t), n = {};
120
- Me(r, (o, i) => {
121
- let a;
122
- (a = e(o, i, t)) !== !1 && (n[i] = a || o);
123
- }), Object.defineProperties(t, n);
124
- }, Xn = (t) => {
125
- Mr(t, (e, r) => {
126
- if (K(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
127
- return !1;
128
- const n = t[r];
129
- if (K(n)) {
130
- if (e.enumerable = !1, "writable" in e) {
131
- e.writable = !1;
132
- return;
133
- }
134
- e.set || (e.set = () => {
135
- throw Error("Can not rewrite read-only method '" + r + "'");
136
- });
137
- }
138
- });
139
- }, eo = (t, e) => {
140
- const r = {}, n = (o) => {
141
- o.forEach((i) => {
142
- r[i] = !0;
143
- });
144
- };
145
- return Ae(t) ? n(t) : n(String(t).split(e)), r;
146
- }, to = () => {
147
- }, ro = (t, e) => (t = +t, Number.isFinite(t) ? t : e), at = "abcdefghijklmnopqrstuvwxyz", Yt = "0123456789", Ir = {
148
- DIGIT: Yt,
149
- ALPHA: at,
150
- ALPHA_DIGIT: at + at.toUpperCase() + Yt
151
- }, no = (t = 16, e = Ir.ALPHA_DIGIT) => {
152
- let r = "";
153
- const { length: n } = e;
154
- for (; t--; )
155
- r += e[Math.random() * n | 0];
156
- return r;
157
- };
158
- function oo(t) {
159
- return !!(t && K(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
160
- }
161
- const io = (t) => {
162
- const e = new Array(10), r = (n, o) => {
163
- if (tt(n)) {
164
- if (e.indexOf(n) >= 0)
165
- return;
166
- if (!("toJSON" in n)) {
167
- e[o] = n;
168
- const i = Ae(n) ? [] : {};
169
- return Me(n, (a, s) => {
170
- const u = r(a, o + 1);
171
- !_e(u) && (i[s] = u);
172
- }), e[o] = void 0, i;
173
- }
174
- }
175
- return n;
176
- };
177
- return r(t, 0);
178
- }, ao = te("AsyncFunction"), so = (t) => t && (tt(t) || K(t)) && K(t.then) && K(t.catch), p = {
179
- isArray: Ae,
180
- isArrayBuffer: Dr,
181
- isBuffer: Tn,
182
- isFormData: Bn,
183
- isArrayBufferView: Dn,
184
- isString: Fn,
185
- isNumber: Fr,
186
- isBoolean: Nn,
187
- isObject: tt,
188
- isPlainObject: je,
189
- isUndefined: _e,
190
- isDate: Cn,
191
- isFile: _n,
192
- isBlob: Mn,
193
- isRegExp: Zn,
194
- isFunction: K,
195
- isStream: Un,
196
- isURLSearchParams: Ln,
197
- isTypedArray: Gn,
198
- isFileList: In,
199
- forEach: Me,
200
- merge: St,
201
- extend: Hn,
202
- trim: kn,
203
- stripBOM: zn,
204
- inherits: jn,
205
- toFlatObject: Wn,
206
- kindOf: Xe,
207
- kindOfTest: te,
208
- endsWith: qn,
209
- toArray: Jn,
210
- forEachEntry: Vn,
211
- matchAll: Yn,
212
- isHTMLForm: Qn,
213
- hasOwnProperty: Vt,
214
- hasOwnProp: Vt,
215
- // an alias to avoid ESLint no-prototype-builtins detection
216
- reduceDescriptors: Mr,
217
- freezeMethods: Xn,
218
- toObjectSet: eo,
219
- toCamelCase: Kn,
220
- noop: to,
221
- toFiniteNumber: ro,
222
- findKey: Nr,
223
- global: Cr,
224
- isContextDefined: _r,
225
- ALPHABET: Ir,
226
- generateString: no,
227
- isSpecCompliantForm: oo,
228
- toJSONObject: io,
229
- isAsyncFn: ao,
230
- isThenable: so
231
- };
232
- function D(t, e, r, n, o) {
233
- Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), o && (this.response = o);
234
- }
235
- p.inherits(D, Error, {
236
- toJSON: function() {
237
- return {
238
- // Standard
239
- message: this.message,
240
- name: this.name,
241
- // Microsoft
242
- description: this.description,
243
- number: this.number,
244
- // Mozilla
245
- fileName: this.fileName,
246
- lineNumber: this.lineNumber,
247
- columnNumber: this.columnNumber,
248
- stack: this.stack,
249
- // Axios
250
- config: p.toJSONObject(this.config),
251
- code: this.code,
252
- status: this.response && this.response.status ? this.response.status : null
253
- };
254
- }
255
- });
256
- const Ur = D.prototype, Br = {};
257
- [
258
- "ERR_BAD_OPTION_VALUE",
259
- "ERR_BAD_OPTION",
260
- "ECONNABORTED",
261
- "ETIMEDOUT",
262
- "ERR_NETWORK",
263
- "ERR_FR_TOO_MANY_REDIRECTS",
264
- "ERR_DEPRECATED",
265
- "ERR_BAD_RESPONSE",
266
- "ERR_BAD_REQUEST",
267
- "ERR_CANCELED",
268
- "ERR_NOT_SUPPORT",
269
- "ERR_INVALID_URL"
270
- // eslint-disable-next-line func-names
271
- ].forEach((t) => {
272
- Br[t] = { value: t };
273
- });
274
- Object.defineProperties(D, Br);
275
- Object.defineProperty(Ur, "isAxiosError", { value: !0 });
276
- D.from = (t, e, r, n, o, i) => {
277
- const a = Object.create(Ur);
278
- return p.toFlatObject(t, a, function(u) {
279
- return u !== Error.prototype;
280
- }, (s) => s !== "isAxiosError"), D.call(a, t.message, e, r, n, o), a.cause = t, a.name = t.name, i && Object.assign(a, i), a;
281
- };
282
- const uo = null;
283
- function bt(t) {
284
- return p.isPlainObject(t) || p.isArray(t);
285
- }
286
- function Lr(t) {
287
- return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
288
- }
289
- function Qt(t, e, r) {
290
- return t ? t.concat(e).map(function(o, i) {
291
- return o = Lr(o), !r && i ? "[" + o + "]" : o;
292
- }).join(r ? "." : "") : e;
293
- }
294
- function co(t) {
295
- return p.isArray(t) && !t.some(bt);
296
- }
297
- const lo = p.toFlatObject(p, {}, null, function(e) {
298
- return /^is[A-Z]/.test(e);
299
- });
300
- function rt(t, e, r) {
301
- if (!p.isObject(t))
302
- throw new TypeError("target must be an object");
303
- e = e || new FormData(), r = p.toFlatObject(r, {
304
- metaTokens: !0,
305
- dots: !1,
306
- indexes: !1
307
- }, !1, function(f, w) {
308
- return !p.isUndefined(w[f]);
309
- });
310
- const n = r.metaTokens, o = r.visitor || d, i = r.dots, a = r.indexes, u = (r.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
311
- if (!p.isFunction(o))
312
- throw new TypeError("visitor must be a function");
313
- function c(y) {
314
- if (y === null)
315
- return "";
316
- if (p.isDate(y))
317
- return y.toISOString();
318
- if (!u && p.isBlob(y))
319
- throw new D("Blob is not supported. Use a Buffer instead.");
320
- return p.isArrayBuffer(y) || p.isTypedArray(y) ? u && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
321
- }
322
- function d(y, f, w) {
323
- let b = y;
324
- if (y && !w && typeof y == "object") {
325
- if (p.endsWith(f, "{}"))
326
- f = n ? f : f.slice(0, -2), y = JSON.stringify(y);
327
- else if (p.isArray(y) && co(y) || (p.isFileList(y) || p.endsWith(f, "[]")) && (b = p.toArray(y)))
328
- return f = Lr(f), b.forEach(function(R, _) {
329
- !(p.isUndefined(R) || R === null) && e.append(
330
- // eslint-disable-next-line no-nested-ternary
331
- a === !0 ? Qt([f], _, i) : a === null ? f : f + "[]",
332
- c(R)
333
- );
334
- }), !1;
335
- }
336
- return bt(y) ? !0 : (e.append(Qt(w, f, i), c(y)), !1);
337
- }
338
- const l = [], h = Object.assign(lo, {
339
- defaultVisitor: d,
340
- convertValue: c,
341
- isVisitable: bt
342
- });
343
- function v(y, f) {
344
- if (!p.isUndefined(y)) {
345
- if (l.indexOf(y) !== -1)
346
- throw Error("Circular reference detected in " + f.join("."));
347
- l.push(y), p.forEach(y, function(b, A) {
348
- (!(p.isUndefined(b) || b === null) && o.call(
349
- e,
350
- b,
351
- p.isString(A) ? A.trim() : A,
352
- f,
353
- h
354
- )) === !0 && v(b, f ? f.concat(A) : [A]);
355
- }), l.pop();
356
- }
357
- }
358
- if (!p.isObject(t))
359
- throw new TypeError("data must be an object");
360
- return v(t), e;
361
- }
362
- function Kt(t) {
363
- const e = {
364
- "!": "%21",
365
- "'": "%27",
366
- "(": "%28",
367
- ")": "%29",
368
- "~": "%7E",
369
- "%20": "+",
370
- "%00": "\0"
371
- };
372
- return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) {
373
- return e[n];
374
- });
375
- }
376
- function _t(t, e) {
377
- this._pairs = [], t && rt(t, this, e);
378
- }
379
- const kr = _t.prototype;
380
- kr.append = function(e, r) {
381
- this._pairs.push([e, r]);
382
- };
383
- kr.toString = function(e) {
384
- const r = e ? function(n) {
385
- return e.call(this, n, Kt);
386
- } : Kt;
387
- return this._pairs.map(function(o) {
388
- return r(o[0]) + "=" + r(o[1]);
389
- }, "").join("&");
390
- };
391
- function fo(t) {
392
- return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
393
- }
394
- function Hr(t, e, r) {
395
- if (!e)
396
- return t;
397
- const n = r && r.encode || fo, o = r && r.serialize;
398
- let i;
399
- if (o ? i = o(e, r) : i = p.isURLSearchParams(e) ? e.toString() : new _t(e, r).toString(n), i) {
400
- const a = t.indexOf("#");
401
- a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
402
- }
403
- return t;
404
- }
405
- class Zt {
406
- constructor() {
407
- this.handlers = [];
408
- }
409
- /**
410
- * Add a new interceptor to the stack
411
- *
412
- * @param {Function} fulfilled The function to handle `then` for a `Promise`
413
- * @param {Function} rejected The function to handle `reject` for a `Promise`
414
- *
415
- * @return {Number} An ID used to remove interceptor later
416
- */
417
- use(e, r, n) {
418
- return this.handlers.push({
419
- fulfilled: e,
420
- rejected: r,
421
- synchronous: n ? n.synchronous : !1,
422
- runWhen: n ? n.runWhen : null
423
- }), this.handlers.length - 1;
424
- }
425
- /**
426
- * Remove an interceptor from the stack
427
- *
428
- * @param {Number} id The ID that was returned by `use`
429
- *
430
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
431
- */
432
- eject(e) {
433
- this.handlers[e] && (this.handlers[e] = null);
434
- }
435
- /**
436
- * Clear all interceptors from the stack
437
- *
438
- * @returns {void}
439
- */
440
- clear() {
441
- this.handlers && (this.handlers = []);
442
- }
443
- /**
444
- * Iterate over all the registered interceptors
445
- *
446
- * This method is particularly useful for skipping over any
447
- * interceptors that may have become `null` calling `eject`.
448
- *
449
- * @param {Function} fn The function to call for each interceptor
450
- *
451
- * @returns {void}
452
- */
453
- forEach(e) {
454
- p.forEach(this.handlers, function(n) {
455
- n !== null && e(n);
456
- });
457
- }
458
- }
459
- const zr = {
460
- silentJSONParsing: !0,
461
- forcedJSONParsing: !0,
462
- clarifyTimeoutError: !1
463
- }, po = typeof URLSearchParams < "u" ? URLSearchParams : _t, yo = typeof FormData < "u" ? FormData : null, ho = typeof Blob < "u" ? Blob : null, mo = {
464
- isBrowser: !0,
465
- classes: {
466
- URLSearchParams: po,
467
- FormData: yo,
468
- Blob: ho
469
- },
470
- protocols: ["http", "https", "file", "blob", "url", "data"]
471
- }, jr = typeof window < "u" && typeof document < "u", vo = ((t) => jr && ["ReactNative", "NativeScript", "NS"].indexOf(t) < 0)(typeof navigator < "u" && navigator.product), go = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
472
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
473
- __proto__: null,
474
- hasBrowserEnv: jr,
475
- hasStandardBrowserEnv: vo,
476
- hasStandardBrowserWebWorkerEnv: go
477
- }, Symbol.toStringTag, { value: "Module" })), ee = {
478
- ...So,
479
- ...mo
480
- };
481
- function bo(t, e) {
482
- return rt(t, new ee.classes.URLSearchParams(), Object.assign({
483
- visitor: function(r, n, o, i) {
484
- return ee.isNode && p.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
485
- }
486
- }, e));
487
- }
488
- function wo(t) {
489
- return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
490
- }
491
- function Oo(t) {
492
- const e = {}, r = Object.keys(t);
493
- let n;
494
- const o = r.length;
495
- let i;
496
- for (n = 0; n < o; n++)
497
- i = r[n], e[i] = t[i];
498
- return e;
499
- }
500
- function Wr(t) {
501
- function e(r, n, o, i) {
502
- let a = r[i++];
503
- if (a === "__proto__")
504
- return !0;
505
- const s = Number.isFinite(+a), u = i >= r.length;
506
- return a = !a && p.isArray(o) ? o.length : a, u ? (p.hasOwnProp(o, a) ? o[a] = [o[a], n] : o[a] = n, !s) : ((!o[a] || !p.isObject(o[a])) && (o[a] = []), e(r, n, o[a], i) && p.isArray(o[a]) && (o[a] = Oo(o[a])), !s);
507
- }
508
- if (p.isFormData(t) && p.isFunction(t.entries)) {
509
- const r = {};
510
- return p.forEachEntry(t, (n, o) => {
511
- e(wo(n), o, r, 0);
512
- }), r;
513
- }
514
- return null;
515
- }
516
- function Eo(t, e, r) {
517
- if (p.isString(t))
518
- try {
519
- return (e || JSON.parse)(t), p.trim(t);
520
- } catch (n) {
521
- if (n.name !== "SyntaxError")
522
- throw n;
523
- }
524
- return (r || JSON.stringify)(t);
525
- }
526
- const Mt = {
527
- transitional: zr,
528
- adapter: ["xhr", "http"],
529
- transformRequest: [function(e, r) {
530
- const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, i = p.isObject(e);
531
- if (i && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
532
- return o ? JSON.stringify(Wr(e)) : e;
533
- if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e))
534
- return e;
535
- if (p.isArrayBufferView(e))
536
- return e.buffer;
537
- if (p.isURLSearchParams(e))
538
- return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
539
- let s;
540
- if (i) {
541
- if (n.indexOf("application/x-www-form-urlencoded") > -1)
542
- return bo(e, this.formSerializer).toString();
543
- if ((s = p.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
544
- const u = this.env && this.env.FormData;
545
- return rt(
546
- s ? { "files[]": e } : e,
547
- u && new u(),
548
- this.formSerializer
549
- );
550
- }
551
- }
552
- return i || o ? (r.setContentType("application/json", !1), Eo(e)) : e;
553
- }],
554
- transformResponse: [function(e) {
555
- const r = this.transitional || Mt.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
556
- if (e && p.isString(e) && (n && !this.responseType || o)) {
557
- const a = !(r && r.silentJSONParsing) && o;
558
- try {
559
- return JSON.parse(e);
560
- } catch (s) {
561
- if (a)
562
- throw s.name === "SyntaxError" ? D.from(s, D.ERR_BAD_RESPONSE, this, null, this.response) : s;
563
- }
564
- }
565
- return e;
566
- }],
567
- /**
568
- * A timeout in milliseconds to abort a request. If set to 0 (default) a
569
- * timeout is not created.
570
- */
571
- timeout: 0,
572
- xsrfCookieName: "XSRF-TOKEN",
573
- xsrfHeaderName: "X-XSRF-TOKEN",
574
- maxContentLength: -1,
575
- maxBodyLength: -1,
576
- env: {
577
- FormData: ee.classes.FormData,
578
- Blob: ee.classes.Blob
579
- },
580
- validateStatus: function(e) {
581
- return e >= 200 && e < 300;
582
- },
583
- headers: {
584
- common: {
585
- Accept: "application/json, text/plain, */*",
586
- "Content-Type": void 0
587
- }
588
- }
589
- };
590
- p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
591
- Mt.headers[t] = {};
592
- });
593
- const It = Mt, Ao = p.toObjectSet([
594
- "age",
595
- "authorization",
596
- "content-length",
597
- "content-type",
598
- "etag",
599
- "expires",
600
- "from",
601
- "host",
602
- "if-modified-since",
603
- "if-unmodified-since",
604
- "last-modified",
605
- "location",
606
- "max-forwards",
607
- "proxy-authorization",
608
- "referer",
609
- "retry-after",
610
- "user-agent"
611
- ]), $o = (t) => {
612
- const e = {};
613
- let r, n, o;
614
- return t && t.split(`
615
- `).forEach(function(a) {
616
- o = a.indexOf(":"), r = a.substring(0, o).trim().toLowerCase(), n = a.substring(o + 1).trim(), !(!r || e[r] && Ao[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
617
- }), e;
618
- }, Xt = Symbol("internals");
619
- function xe(t) {
620
- return t && String(t).trim().toLowerCase();
621
- }
622
- function We(t) {
623
- return t === !1 || t == null ? t : p.isArray(t) ? t.map(We) : String(t);
624
- }
625
- function Po(t) {
626
- const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
627
- let n;
628
- for (; n = r.exec(t); )
629
- e[n[1]] = n[2];
630
- return e;
631
- }
632
- const Ro = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
633
- function st(t, e, r, n, o) {
634
- if (p.isFunction(n))
635
- return n.call(this, e, r);
636
- if (o && (e = r), !!p.isString(e)) {
637
- if (p.isString(n))
638
- return e.indexOf(n) !== -1;
639
- if (p.isRegExp(n))
640
- return n.test(e);
641
- }
642
- }
643
- function xo(t) {
644
- return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
645
- }
646
- function To(t, e) {
647
- const r = p.toCamelCase(" " + e);
648
- ["get", "set", "has"].forEach((n) => {
649
- Object.defineProperty(t, n + r, {
650
- value: function(o, i, a) {
651
- return this[n].call(this, e, o, i, a);
652
- },
653
- configurable: !0
654
- });
655
- });
656
- }
657
- class nt {
658
- constructor(e) {
659
- e && this.set(e);
660
- }
661
- set(e, r, n) {
662
- const o = this;
663
- function i(s, u, c) {
664
- const d = xe(u);
665
- if (!d)
666
- throw new Error("header name must be a non-empty string");
667
- const l = p.findKey(o, d);
668
- (!l || o[l] === void 0 || c === !0 || c === void 0 && o[l] !== !1) && (o[l || u] = We(s));
669
- }
670
- const a = (s, u) => p.forEach(s, (c, d) => i(c, d, u));
671
- return p.isPlainObject(e) || e instanceof this.constructor ? a(e, r) : p.isString(e) && (e = e.trim()) && !Ro(e) ? a($o(e), r) : e != null && i(r, e, n), this;
672
- }
673
- get(e, r) {
674
- if (e = xe(e), e) {
675
- const n = p.findKey(this, e);
676
- if (n) {
677
- const o = this[n];
678
- if (!r)
679
- return o;
680
- if (r === !0)
681
- return Po(o);
682
- if (p.isFunction(r))
683
- return r.call(this, o, n);
684
- if (p.isRegExp(r))
685
- return r.exec(o);
686
- throw new TypeError("parser must be boolean|regexp|function");
687
- }
688
- }
689
- }
690
- has(e, r) {
691
- if (e = xe(e), e) {
692
- const n = p.findKey(this, e);
693
- return !!(n && this[n] !== void 0 && (!r || st(this, this[n], n, r)));
694
- }
695
- return !1;
696
- }
697
- delete(e, r) {
698
- const n = this;
699
- let o = !1;
700
- function i(a) {
701
- if (a = xe(a), a) {
702
- const s = p.findKey(n, a);
703
- s && (!r || st(n, n[s], s, r)) && (delete n[s], o = !0);
704
- }
705
- }
706
- return p.isArray(e) ? e.forEach(i) : i(e), o;
707
- }
708
- clear(e) {
709
- const r = Object.keys(this);
710
- let n = r.length, o = !1;
711
- for (; n--; ) {
712
- const i = r[n];
713
- (!e || st(this, this[i], i, e, !0)) && (delete this[i], o = !0);
714
- }
715
- return o;
716
- }
717
- normalize(e) {
718
- const r = this, n = {};
719
- return p.forEach(this, (o, i) => {
720
- const a = p.findKey(n, i);
721
- if (a) {
722
- r[a] = We(o), delete r[i];
723
- return;
724
- }
725
- const s = e ? xo(i) : String(i).trim();
726
- s !== i && delete r[i], r[s] = We(o), n[s] = !0;
727
- }), this;
728
- }
729
- concat(...e) {
730
- return this.constructor.concat(this, ...e);
731
- }
732
- toJSON(e) {
733
- const r = /* @__PURE__ */ Object.create(null);
734
- return p.forEach(this, (n, o) => {
735
- n != null && n !== !1 && (r[o] = e && p.isArray(n) ? n.join(", ") : n);
736
- }), r;
737
- }
738
- [Symbol.iterator]() {
739
- return Object.entries(this.toJSON())[Symbol.iterator]();
740
- }
741
- toString() {
742
- return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(`
743
- `);
744
- }
745
- get [Symbol.toStringTag]() {
746
- return "AxiosHeaders";
747
- }
748
- static from(e) {
749
- return e instanceof this ? e : new this(e);
750
- }
751
- static concat(e, ...r) {
752
- const n = new this(e);
753
- return r.forEach((o) => n.set(o)), n;
754
- }
755
- static accessor(e) {
756
- const n = (this[Xt] = this[Xt] = {
757
- accessors: {}
758
- }).accessors, o = this.prototype;
759
- function i(a) {
760
- const s = xe(a);
761
- n[s] || (To(o, a), n[s] = !0);
762
- }
763
- return p.isArray(e) ? e.forEach(i) : i(e), this;
764
- }
765
- }
766
- nt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
767
- p.reduceDescriptors(nt.prototype, ({ value: t }, e) => {
768
- let r = e[0].toUpperCase() + e.slice(1);
769
- return {
770
- get: () => t,
771
- set(n) {
772
- this[r] = n;
773
- }
774
- };
775
- });
776
- p.freezeMethods(nt);
777
- const ne = nt;
778
- function ut(t, e) {
779
- const r = this || It, n = e || r, o = ne.from(n.headers);
780
- let i = n.data;
781
- return p.forEach(t, function(s) {
782
- i = s.call(r, i, o.normalize(), e ? e.status : void 0);
783
- }), o.normalize(), i;
784
- }
785
- function qr(t) {
786
- return !!(t && t.__CANCEL__);
787
- }
788
- function Ie(t, e, r) {
789
- D.call(this, t ?? "canceled", D.ERR_CANCELED, e, r), this.name = "CanceledError";
790
- }
791
- p.inherits(Ie, D, {
792
- __CANCEL__: !0
793
- });
794
- function Do(t, e, r) {
795
- const n = r.config.validateStatus;
796
- !r.status || !n || n(r.status) ? t(r) : e(new D(
797
- "Request failed with status code " + r.status,
798
- [D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
799
- r.config,
800
- r.request,
801
- r
802
- ));
803
- }
804
- const Fo = ee.hasStandardBrowserEnv ? (
805
- // Standard browser envs support document.cookie
806
- {
807
- write(t, e, r, n, o, i) {
808
- const a = [t + "=" + encodeURIComponent(e)];
809
- p.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), p.isString(n) && a.push("path=" + n), p.isString(o) && a.push("domain=" + o), i === !0 && a.push("secure"), document.cookie = a.join("; ");
810
- },
811
- read(t) {
812
- const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
813
- return e ? decodeURIComponent(e[3]) : null;
814
- },
815
- remove(t) {
816
- this.write(t, "", Date.now() - 864e5);
817
- }
818
- }
819
- ) : (
820
- // Non-standard browser env (web workers, react-native) lack needed support.
821
- {
822
- write() {
823
- },
824
- read() {
825
- return null;
826
- },
827
- remove() {
828
- }
829
- }
830
- );
831
- function No(t) {
832
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
833
- }
834
- function Co(t, e) {
835
- return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
836
- }
837
- function Jr(t, e) {
838
- return t && !No(e) ? Co(t, e) : e;
839
- }
840
- const _o = ee.hasStandardBrowserEnv ? (
841
- // Standard browser envs have full support of the APIs needed to test
842
- // whether the request URL is of the same origin as current location.
843
- function() {
844
- const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
845
- let n;
846
- function o(i) {
847
- let a = i;
848
- return e && (r.setAttribute("href", a), a = r.href), r.setAttribute("href", a), {
849
- href: r.href,
850
- protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
851
- host: r.host,
852
- search: r.search ? r.search.replace(/^\?/, "") : "",
853
- hash: r.hash ? r.hash.replace(/^#/, "") : "",
854
- hostname: r.hostname,
855
- port: r.port,
856
- pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
857
- };
858
- }
859
- return n = o(window.location.href), function(a) {
860
- const s = p.isString(a) ? o(a) : a;
861
- return s.protocol === n.protocol && s.host === n.host;
862
- };
863
- }()
864
- ) : (
865
- // Non standard browser envs (web workers, react-native) lack needed support.
866
- /* @__PURE__ */ function() {
867
- return function() {
868
- return !0;
869
- };
870
- }()
871
- );
872
- function Mo(t) {
873
- const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
874
- return e && e[1] || "";
875
- }
876
- function Io(t, e) {
877
- t = t || 10;
878
- const r = new Array(t), n = new Array(t);
879
- let o = 0, i = 0, a;
880
- return e = e !== void 0 ? e : 1e3, function(u) {
881
- const c = Date.now(), d = n[i];
882
- a || (a = c), r[o] = u, n[o] = c;
883
- let l = i, h = 0;
884
- for (; l !== o; )
885
- h += r[l++], l = l % t;
886
- if (o = (o + 1) % t, o === i && (i = (i + 1) % t), c - a < e)
887
- return;
888
- const v = d && c - d;
889
- return v ? Math.round(h * 1e3 / v) : void 0;
890
- };
891
- }
892
- function er(t, e) {
893
- let r = 0;
894
- const n = Io(50, 250);
895
- return (o) => {
896
- const i = o.loaded, a = o.lengthComputable ? o.total : void 0, s = i - r, u = n(s), c = i <= a;
897
- r = i;
898
- const d = {
899
- loaded: i,
900
- total: a,
901
- progress: a ? i / a : void 0,
902
- bytes: s,
903
- rate: u || void 0,
904
- estimated: u && a && c ? (a - i) / u : void 0,
905
- event: o
906
- };
907
- d[e ? "download" : "upload"] = !0, t(d);
908
- };
909
- }
910
- const Uo = typeof XMLHttpRequest < "u", Bo = Uo && function(t) {
911
- return new Promise(function(r, n) {
912
- let o = t.data;
913
- const i = ne.from(t.headers).normalize();
914
- let { responseType: a, withXSRFToken: s } = t, u;
915
- function c() {
916
- t.cancelToken && t.cancelToken.unsubscribe(u), t.signal && t.signal.removeEventListener("abort", u);
917
- }
918
- let d;
919
- if (p.isFormData(o)) {
920
- if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
921
- i.setContentType(!1);
922
- else if ((d = i.getContentType()) !== !1) {
923
- const [f, ...w] = d ? d.split(";").map((b) => b.trim()).filter(Boolean) : [];
924
- i.setContentType([f || "multipart/form-data", ...w].join("; "));
925
- }
926
- }
927
- let l = new XMLHttpRequest();
928
- if (t.auth) {
929
- const f = t.auth.username || "", w = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
930
- i.set("Authorization", "Basic " + btoa(f + ":" + w));
931
- }
932
- const h = Jr(t.baseURL, t.url);
933
- l.open(t.method.toUpperCase(), Hr(h, t.params, t.paramsSerializer), !0), l.timeout = t.timeout;
934
- function v() {
935
- if (!l)
936
- return;
937
- const f = ne.from(
938
- "getAllResponseHeaders" in l && l.getAllResponseHeaders()
939
- ), b = {
940
- data: !a || a === "text" || a === "json" ? l.responseText : l.response,
941
- status: l.status,
942
- statusText: l.statusText,
943
- headers: f,
944
- config: t,
945
- request: l
946
- };
947
- Do(function(R) {
948
- r(R), c();
949
- }, function(R) {
950
- n(R), c();
951
- }, b), l = null;
952
- }
953
- if ("onloadend" in l ? l.onloadend = v : l.onreadystatechange = function() {
954
- !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(v);
955
- }, l.onabort = function() {
956
- l && (n(new D("Request aborted", D.ECONNABORTED, t, l)), l = null);
957
- }, l.onerror = function() {
958
- n(new D("Network Error", D.ERR_NETWORK, t, l)), l = null;
959
- }, l.ontimeout = function() {
960
- let w = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
961
- const b = t.transitional || zr;
962
- t.timeoutErrorMessage && (w = t.timeoutErrorMessage), n(new D(
963
- w,
964
- b.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
965
- t,
966
- l
967
- )), l = null;
968
- }, ee.hasStandardBrowserEnv && (s && p.isFunction(s) && (s = s(t)), s || s !== !1 && _o(h))) {
969
- const f = t.xsrfHeaderName && t.xsrfCookieName && Fo.read(t.xsrfCookieName);
970
- f && i.set(t.xsrfHeaderName, f);
971
- }
972
- o === void 0 && i.setContentType(null), "setRequestHeader" in l && p.forEach(i.toJSON(), function(w, b) {
973
- l.setRequestHeader(b, w);
974
- }), p.isUndefined(t.withCredentials) || (l.withCredentials = !!t.withCredentials), a && a !== "json" && (l.responseType = t.responseType), typeof t.onDownloadProgress == "function" && l.addEventListener("progress", er(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", er(t.onUploadProgress)), (t.cancelToken || t.signal) && (u = (f) => {
975
- l && (n(!f || f.type ? new Ie(null, t, l) : f), l.abort(), l = null);
976
- }, t.cancelToken && t.cancelToken.subscribe(u), t.signal && (t.signal.aborted ? u() : t.signal.addEventListener("abort", u)));
977
- const y = Mo(h);
978
- if (y && ee.protocols.indexOf(y) === -1) {
979
- n(new D("Unsupported protocol " + y + ":", D.ERR_BAD_REQUEST, t));
980
- return;
981
- }
982
- l.send(o || null);
983
- });
984
- }, wt = {
985
- http: uo,
986
- xhr: Bo
987
- };
988
- p.forEach(wt, (t, e) => {
989
- if (t) {
990
- try {
991
- Object.defineProperty(t, "name", { value: e });
992
- } catch {
993
- }
994
- Object.defineProperty(t, "adapterName", { value: e });
995
- }
996
- });
997
- const tr = (t) => `- ${t}`, Lo = (t) => p.isFunction(t) || t === null || t === !1, Gr = {
998
- getAdapter: (t) => {
999
- t = p.isArray(t) ? t : [t];
1000
- const { length: e } = t;
1001
- let r, n;
1002
- const o = {};
1003
- for (let i = 0; i < e; i++) {
1004
- r = t[i];
1005
- let a;
1006
- if (n = r, !Lo(r) && (n = wt[(a = String(r)).toLowerCase()], n === void 0))
1007
- throw new D(`Unknown adapter '${a}'`);
1008
- if (n)
1009
- break;
1010
- o[a || "#" + i] = n;
1011
- }
1012
- if (!n) {
1013
- const i = Object.entries(o).map(
1014
- ([s, u]) => `adapter ${s} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1015
- );
1016
- let a = e ? i.length > 1 ? `since :
1017
- ` + i.map(tr).join(`
1018
- `) : " " + tr(i[0]) : "as no adapter specified";
1019
- throw new D(
1020
- "There is no suitable adapter to dispatch the request " + a,
1021
- "ERR_NOT_SUPPORT"
1022
- );
1023
- }
1024
- return n;
1025
- },
1026
- adapters: wt
1027
- };
1028
- function ct(t) {
1029
- if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1030
- throw new Ie(null, t);
1031
- }
1032
- function rr(t) {
1033
- return ct(t), t.headers = ne.from(t.headers), t.data = ut.call(
1034
- t,
1035
- t.transformRequest
1036
- ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Gr.getAdapter(t.adapter || It.adapter)(t).then(function(n) {
1037
- return ct(t), n.data = ut.call(
1038
- t,
1039
- t.transformResponse,
1040
- n
1041
- ), n.headers = ne.from(n.headers), n;
1042
- }, function(n) {
1043
- return qr(n) || (ct(t), n && n.response && (n.response.data = ut.call(
1044
- t,
1045
- t.transformResponse,
1046
- n.response
1047
- ), n.response.headers = ne.from(n.response.headers))), Promise.reject(n);
1048
- });
1049
- }
1050
- const nr = (t) => t instanceof ne ? t.toJSON() : t;
1051
- function be(t, e) {
1052
- e = e || {};
1053
- const r = {};
1054
- function n(c, d, l) {
1055
- return p.isPlainObject(c) && p.isPlainObject(d) ? p.merge.call({ caseless: l }, c, d) : p.isPlainObject(d) ? p.merge({}, d) : p.isArray(d) ? d.slice() : d;
1056
- }
1057
- function o(c, d, l) {
1058
- if (p.isUndefined(d)) {
1059
- if (!p.isUndefined(c))
1060
- return n(void 0, c, l);
1061
- } else
1062
- return n(c, d, l);
1063
- }
1064
- function i(c, d) {
1065
- if (!p.isUndefined(d))
1066
- return n(void 0, d);
1067
- }
1068
- function a(c, d) {
1069
- if (p.isUndefined(d)) {
1070
- if (!p.isUndefined(c))
1071
- return n(void 0, c);
1072
- } else
1073
- return n(void 0, d);
1074
- }
1075
- function s(c, d, l) {
1076
- if (l in e)
1077
- return n(c, d);
1078
- if (l in t)
1079
- return n(void 0, c);
1080
- }
1081
- const u = {
1082
- url: i,
1083
- method: i,
1084
- data: i,
1085
- baseURL: a,
1086
- transformRequest: a,
1087
- transformResponse: a,
1088
- paramsSerializer: a,
1089
- timeout: a,
1090
- timeoutMessage: a,
1091
- withCredentials: a,
1092
- withXSRFToken: a,
1093
- adapter: a,
1094
- responseType: a,
1095
- xsrfCookieName: a,
1096
- xsrfHeaderName: a,
1097
- onUploadProgress: a,
1098
- onDownloadProgress: a,
1099
- decompress: a,
1100
- maxContentLength: a,
1101
- maxBodyLength: a,
1102
- beforeRedirect: a,
1103
- transport: a,
1104
- httpAgent: a,
1105
- httpsAgent: a,
1106
- cancelToken: a,
1107
- socketPath: a,
1108
- responseEncoding: a,
1109
- validateStatus: s,
1110
- headers: (c, d) => o(nr(c), nr(d), !0)
1111
- };
1112
- return p.forEach(Object.keys(Object.assign({}, t, e)), function(d) {
1113
- const l = u[d] || o, h = l(t[d], e[d], d);
1114
- p.isUndefined(h) && l !== s || (r[d] = h);
1115
- }), r;
1116
- }
1117
- const Vr = "1.6.7", Ut = {};
1118
- ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1119
- Ut[t] = function(n) {
1120
- return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
1121
- };
1122
- });
1123
- const or = {};
1124
- Ut.transitional = function(e, r, n) {
1125
- function o(i, a) {
1126
- return "[Axios v" + Vr + "] Transitional option '" + i + "'" + a + (n ? ". " + n : "");
1127
- }
1128
- return (i, a, s) => {
1129
- if (e === !1)
1130
- throw new D(
1131
- o(a, " has been removed" + (r ? " in " + r : "")),
1132
- D.ERR_DEPRECATED
1133
- );
1134
- return r && !or[a] && (or[a] = !0, console.warn(
1135
- o(
1136
- a,
1137
- " has been deprecated since v" + r + " and will be removed in the near future"
1138
- )
1139
- )), e ? e(i, a, s) : !0;
1140
- };
1141
- };
1142
- function ko(t, e, r) {
1143
- if (typeof t != "object")
1144
- throw new D("options must be an object", D.ERR_BAD_OPTION_VALUE);
1145
- const n = Object.keys(t);
1146
- let o = n.length;
1147
- for (; o-- > 0; ) {
1148
- const i = n[o], a = e[i];
1149
- if (a) {
1150
- const s = t[i], u = s === void 0 || a(s, i, t);
1151
- if (u !== !0)
1152
- throw new D("option " + i + " must be " + u, D.ERR_BAD_OPTION_VALUE);
1153
- continue;
1154
- }
1155
- if (r !== !0)
1156
- throw new D("Unknown option " + i, D.ERR_BAD_OPTION);
1157
- }
1158
- }
1159
- const Ot = {
1160
- assertOptions: ko,
1161
- validators: Ut
1162
- }, ie = Ot.validators;
1163
- class Ve {
1164
- constructor(e) {
1165
- this.defaults = e, this.interceptors = {
1166
- request: new Zt(),
1167
- response: new Zt()
1168
- };
1169
- }
1170
- /**
1171
- * Dispatch a request
1172
- *
1173
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1174
- * @param {?Object} config
1175
- *
1176
- * @returns {Promise} The Promise to be fulfilled
1177
- */
1178
- async request(e, r) {
1179
- try {
1180
- return await this._request(e, r);
1181
- } catch (n) {
1182
- if (n instanceof Error) {
1183
- let o;
1184
- Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
1185
- const i = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1186
- n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += `
1187
- ` + i) : n.stack = i;
1188
- }
1189
- throw n;
1190
- }
1191
- }
1192
- _request(e, r) {
1193
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = be(this.defaults, r);
1194
- const { transitional: n, paramsSerializer: o, headers: i } = r;
1195
- n !== void 0 && Ot.assertOptions(n, {
1196
- silentJSONParsing: ie.transitional(ie.boolean),
1197
- forcedJSONParsing: ie.transitional(ie.boolean),
1198
- clarifyTimeoutError: ie.transitional(ie.boolean)
1199
- }, !1), o != null && (p.isFunction(o) ? r.paramsSerializer = {
1200
- serialize: o
1201
- } : Ot.assertOptions(o, {
1202
- encode: ie.function,
1203
- serialize: ie.function
1204
- }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1205
- let a = i && p.merge(
1206
- i.common,
1207
- i[r.method]
1208
- );
1209
- i && p.forEach(
1210
- ["delete", "get", "head", "post", "put", "patch", "common"],
1211
- (y) => {
1212
- delete i[y];
1213
- }
1214
- ), r.headers = ne.concat(a, i);
1215
- const s = [];
1216
- let u = !0;
1217
- this.interceptors.request.forEach(function(f) {
1218
- typeof f.runWhen == "function" && f.runWhen(r) === !1 || (u = u && f.synchronous, s.unshift(f.fulfilled, f.rejected));
1219
- });
1220
- const c = [];
1221
- this.interceptors.response.forEach(function(f) {
1222
- c.push(f.fulfilled, f.rejected);
1223
- });
1224
- let d, l = 0, h;
1225
- if (!u) {
1226
- const y = [rr.bind(this), void 0];
1227
- for (y.unshift.apply(y, s), y.push.apply(y, c), h = y.length, d = Promise.resolve(r); l < h; )
1228
- d = d.then(y[l++], y[l++]);
1229
- return d;
1230
- }
1231
- h = s.length;
1232
- let v = r;
1233
- for (l = 0; l < h; ) {
1234
- const y = s[l++], f = s[l++];
1235
- try {
1236
- v = y(v);
1237
- } catch (w) {
1238
- f.call(this, w);
1239
- break;
1240
- }
1241
- }
1242
- try {
1243
- d = rr.call(this, v);
1244
- } catch (y) {
1245
- return Promise.reject(y);
1246
- }
1247
- for (l = 0, h = c.length; l < h; )
1248
- d = d.then(c[l++], c[l++]);
1249
- return d;
1250
- }
1251
- getUri(e) {
1252
- e = be(this.defaults, e);
1253
- const r = Jr(e.baseURL, e.url);
1254
- return Hr(r, e.params, e.paramsSerializer);
1255
- }
1256
- }
1257
- p.forEach(["delete", "get", "head", "options"], function(e) {
1258
- Ve.prototype[e] = function(r, n) {
1259
- return this.request(be(n || {}, {
1260
- method: e,
1261
- url: r,
1262
- data: (n || {}).data
1263
- }));
1264
- };
1265
- });
1266
- p.forEach(["post", "put", "patch"], function(e) {
1267
- function r(n) {
1268
- return function(i, a, s) {
1269
- return this.request(be(s || {}, {
1270
- method: e,
1271
- headers: n ? {
1272
- "Content-Type": "multipart/form-data"
1273
- } : {},
1274
- url: i,
1275
- data: a
1276
- }));
1277
- };
1278
- }
1279
- Ve.prototype[e] = r(), Ve.prototype[e + "Form"] = r(!0);
1280
- });
1281
- const qe = Ve;
1282
- class Bt {
1283
- constructor(e) {
1284
- if (typeof e != "function")
1285
- throw new TypeError("executor must be a function.");
1286
- let r;
1287
- this.promise = new Promise(function(i) {
1288
- r = i;
1289
- });
1290
- const n = this;
1291
- this.promise.then((o) => {
1292
- if (!n._listeners)
1293
- return;
1294
- let i = n._listeners.length;
1295
- for (; i-- > 0; )
1296
- n._listeners[i](o);
1297
- n._listeners = null;
1298
- }), this.promise.then = (o) => {
1299
- let i;
1300
- const a = new Promise((s) => {
1301
- n.subscribe(s), i = s;
1302
- }).then(o);
1303
- return a.cancel = function() {
1304
- n.unsubscribe(i);
1305
- }, a;
1306
- }, e(function(i, a, s) {
1307
- n.reason || (n.reason = new Ie(i, a, s), r(n.reason));
1308
- });
1309
- }
1310
- /**
1311
- * Throws a `CanceledError` if cancellation has been requested.
1312
- */
1313
- throwIfRequested() {
1314
- if (this.reason)
1315
- throw this.reason;
1316
- }
1317
- /**
1318
- * Subscribe to the cancel signal
1319
- */
1320
- subscribe(e) {
1321
- if (this.reason) {
1322
- e(this.reason);
1323
- return;
1324
- }
1325
- this._listeners ? this._listeners.push(e) : this._listeners = [e];
1326
- }
1327
- /**
1328
- * Unsubscribe from the cancel signal
1329
- */
1330
- unsubscribe(e) {
1331
- if (!this._listeners)
1332
- return;
1333
- const r = this._listeners.indexOf(e);
1334
- r !== -1 && this._listeners.splice(r, 1);
1335
- }
1336
- /**
1337
- * Returns an object that contains a new `CancelToken` and a function that, when called,
1338
- * cancels the `CancelToken`.
1339
- */
1340
- static source() {
1341
- let e;
1342
- return {
1343
- token: new Bt(function(o) {
1344
- e = o;
1345
- }),
1346
- cancel: e
1347
- };
1348
- }
1349
- }
1350
- const Ho = Bt;
1351
- function zo(t) {
1352
- return function(r) {
1353
- return t.apply(null, r);
1354
- };
1355
- }
1356
- function jo(t) {
1357
- return p.isObject(t) && t.isAxiosError === !0;
1358
- }
1359
- const Et = {
1360
- Continue: 100,
1361
- SwitchingProtocols: 101,
1362
- Processing: 102,
1363
- EarlyHints: 103,
1364
- Ok: 200,
1365
- Created: 201,
1366
- Accepted: 202,
1367
- NonAuthoritativeInformation: 203,
1368
- NoContent: 204,
1369
- ResetContent: 205,
1370
- PartialContent: 206,
1371
- MultiStatus: 207,
1372
- AlreadyReported: 208,
1373
- ImUsed: 226,
1374
- MultipleChoices: 300,
1375
- MovedPermanently: 301,
1376
- Found: 302,
1377
- SeeOther: 303,
1378
- NotModified: 304,
1379
- UseProxy: 305,
1380
- Unused: 306,
1381
- TemporaryRedirect: 307,
1382
- PermanentRedirect: 308,
1383
- BadRequest: 400,
1384
- Unauthorized: 401,
1385
- PaymentRequired: 402,
1386
- Forbidden: 403,
1387
- NotFound: 404,
1388
- MethodNotAllowed: 405,
1389
- NotAcceptable: 406,
1390
- ProxyAuthenticationRequired: 407,
1391
- RequestTimeout: 408,
1392
- Conflict: 409,
1393
- Gone: 410,
1394
- LengthRequired: 411,
1395
- PreconditionFailed: 412,
1396
- PayloadTooLarge: 413,
1397
- UriTooLong: 414,
1398
- UnsupportedMediaType: 415,
1399
- RangeNotSatisfiable: 416,
1400
- ExpectationFailed: 417,
1401
- ImATeapot: 418,
1402
- MisdirectedRequest: 421,
1403
- UnprocessableEntity: 422,
1404
- Locked: 423,
1405
- FailedDependency: 424,
1406
- TooEarly: 425,
1407
- UpgradeRequired: 426,
1408
- PreconditionRequired: 428,
1409
- TooManyRequests: 429,
1410
- RequestHeaderFieldsTooLarge: 431,
1411
- UnavailableForLegalReasons: 451,
1412
- InternalServerError: 500,
1413
- NotImplemented: 501,
1414
- BadGateway: 502,
1415
- ServiceUnavailable: 503,
1416
- GatewayTimeout: 504,
1417
- HttpVersionNotSupported: 505,
1418
- VariantAlsoNegotiates: 506,
1419
- InsufficientStorage: 507,
1420
- LoopDetected: 508,
1421
- NotExtended: 510,
1422
- NetworkAuthenticationRequired: 511
1423
- };
1424
- Object.entries(Et).forEach(([t, e]) => {
1425
- Et[e] = t;
1426
- });
1427
- const Wo = Et;
1428
- function Yr(t) {
1429
- const e = new qe(t), r = Tr(qe.prototype.request, e);
1430
- return p.extend(r, qe.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(o) {
1431
- return Yr(be(t, o));
1432
- }, r;
1433
- }
1434
- const k = Yr(It);
1435
- k.Axios = qe;
1436
- k.CanceledError = Ie;
1437
- k.CancelToken = Ho;
1438
- k.isCancel = qr;
1439
- k.VERSION = Vr;
1440
- k.toFormData = rt;
1441
- k.AxiosError = D;
1442
- k.Cancel = k.CanceledError;
1443
- k.all = function(e) {
1444
- return Promise.all(e);
1445
- };
1446
- k.spread = zo;
1447
- k.isAxiosError = jo;
1448
- k.mergeConfig = be;
1449
- k.AxiosHeaders = ne;
1450
- k.formToJSON = (t) => Wr(p.isHTMLForm(t) ? new FormData(t) : t);
1451
- k.getAdapter = Gr.getAdapter;
1452
- k.HttpStatusCode = Wo;
1453
- k.default = k;
1454
- var ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1455
- function it(t) {
1456
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1457
- }
1458
- function qo(t) {
1459
- if (t.__esModule)
1460
- return t;
1461
- var e = t.default;
1462
- if (typeof e == "function") {
1463
- var r = function n() {
1464
- return this instanceof n ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
1465
- };
1466
- r.prototype = e.prototype;
1467
- } else
1468
- r = {};
1469
- return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(t).forEach(function(n) {
1470
- var o = Object.getOwnPropertyDescriptor(t, n);
1471
- Object.defineProperty(r, n, o.get ? o : {
1472
- enumerable: !0,
1473
- get: function() {
1474
- return t[n];
1475
- }
1476
- });
1477
- }), r;
1478
- }
1479
- var Jo = function() {
1480
- if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1481
- return !1;
1482
- if (typeof Symbol.iterator == "symbol")
1483
- return !0;
1484
- var e = {}, r = Symbol("test"), n = Object(r);
1485
- if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
1486
- return !1;
1487
- var o = 42;
1488
- e[r] = o;
1489
- for (r in e)
1490
- return !1;
1491
- if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
1492
- return !1;
1493
- var i = Object.getOwnPropertySymbols(e);
1494
- if (i.length !== 1 || i[0] !== r || !Object.prototype.propertyIsEnumerable.call(e, r))
1495
- return !1;
1496
- if (typeof Object.getOwnPropertyDescriptor == "function") {
1497
- var a = Object.getOwnPropertyDescriptor(e, r);
1498
- if (a.value !== o || a.enumerable !== !0)
1499
- return !1;
1500
- }
1501
- return !0;
1502
- }, ir = typeof Symbol < "u" && Symbol, Go = Jo, Vo = function() {
1503
- return typeof ir != "function" || typeof Symbol != "function" || typeof ir("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Go();
1504
- }, ar = {
1505
- foo: {}
1506
- }, Yo = Object, Qo = function() {
1507
- return { __proto__: ar }.foo === ar.foo && !({ __proto__: null } instanceof Yo);
1508
- }, Ko = "Function.prototype.bind called on incompatible ", Zo = Object.prototype.toString, Xo = Math.max, ei = "[object Function]", sr = function(e, r) {
1509
- for (var n = [], o = 0; o < e.length; o += 1)
1510
- n[o] = e[o];
1511
- for (var i = 0; i < r.length; i += 1)
1512
- n[i + e.length] = r[i];
1513
- return n;
1514
- }, ti = function(e, r) {
1515
- for (var n = [], o = r || 0, i = 0; o < e.length; o += 1, i += 1)
1516
- n[i] = e[o];
1517
- return n;
1518
- }, ri = function(t, e) {
1519
- for (var r = "", n = 0; n < t.length; n += 1)
1520
- r += t[n], n + 1 < t.length && (r += e);
1521
- return r;
1522
- }, ni = function(e) {
1523
- var r = this;
1524
- if (typeof r != "function" || Zo.apply(r) !== ei)
1525
- throw new TypeError(Ko + r);
1526
- for (var n = ti(arguments, 1), o, i = function() {
1527
- if (this instanceof o) {
1528
- var d = r.apply(
1529
- this,
1530
- sr(n, arguments)
1531
- );
1532
- return Object(d) === d ? d : this;
1533
- }
1534
- return r.apply(
1535
- e,
1536
- sr(n, arguments)
1537
- );
1538
- }, a = Xo(0, r.length - n.length), s = [], u = 0; u < a; u++)
1539
- s[u] = "$" + u;
1540
- if (o = Function("binder", "return function (" + ri(s, ",") + "){ return binder.apply(this,arguments); }")(i), r.prototype) {
1541
- var c = function() {
1542
- };
1543
- c.prototype = r.prototype, o.prototype = new c(), c.prototype = null;
1544
- }
1545
- return o;
1546
- }, oi = ni, Lt = Function.prototype.bind || oi, ii = Function.prototype.call, ai = Object.prototype.hasOwnProperty, si = Lt, ui = si.call(ii, ai), T, we = SyntaxError, Qr = Function, Se = TypeError, lt = function(t) {
1547
- try {
1548
- return Qr('"use strict"; return (' + t + ").constructor;")();
1549
- } catch {
1550
- }
1551
- }, pe = Object.getOwnPropertyDescriptor;
1552
- if (pe)
1553
- try {
1554
- pe({}, "");
1555
- } catch {
1556
- pe = null;
1557
- }
1558
- var ft = function() {
1559
- throw new Se();
1560
- }, ci = pe ? function() {
1561
- try {
1562
- return arguments.callee, ft;
1563
- } catch {
1564
- try {
1565
- return pe(arguments, "callee").get;
1566
- } catch {
1567
- return ft;
1568
- }
1569
- }
1570
- }() : ft, me = Vo(), li = Qo(), j = Object.getPrototypeOf || (li ? function(t) {
1571
- return t.__proto__;
1572
- } : null), ge = {}, fi = typeof Uint8Array > "u" || !j ? T : j(Uint8Array), de = {
1573
- "%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
1574
- "%Array%": Array,
1575
- "%ArrayBuffer%": typeof ArrayBuffer > "u" ? T : ArrayBuffer,
1576
- "%ArrayIteratorPrototype%": me && j ? j([][Symbol.iterator]()) : T,
1577
- "%AsyncFromSyncIteratorPrototype%": T,
1578
- "%AsyncFunction%": ge,
1579
- "%AsyncGenerator%": ge,
1580
- "%AsyncGeneratorFunction%": ge,
1581
- "%AsyncIteratorPrototype%": ge,
1582
- "%Atomics%": typeof Atomics > "u" ? T : Atomics,
1583
- "%BigInt%": typeof BigInt > "u" ? T : BigInt,
1584
- "%BigInt64Array%": typeof BigInt64Array > "u" ? T : BigInt64Array,
1585
- "%BigUint64Array%": typeof BigUint64Array > "u" ? T : BigUint64Array,
1586
- "%Boolean%": Boolean,
1587
- "%DataView%": typeof DataView > "u" ? T : DataView,
1588
- "%Date%": Date,
1589
- "%decodeURI%": decodeURI,
1590
- "%decodeURIComponent%": decodeURIComponent,
1591
- "%encodeURI%": encodeURI,
1592
- "%encodeURIComponent%": encodeURIComponent,
1593
- "%Error%": Error,
1594
- "%eval%": eval,
1595
- // eslint-disable-line no-eval
1596
- "%EvalError%": EvalError,
1597
- "%Float32Array%": typeof Float32Array > "u" ? T : Float32Array,
1598
- "%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
1599
- "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
1600
- "%Function%": Qr,
1601
- "%GeneratorFunction%": ge,
1602
- "%Int8Array%": typeof Int8Array > "u" ? T : Int8Array,
1603
- "%Int16Array%": typeof Int16Array > "u" ? T : Int16Array,
1604
- "%Int32Array%": typeof Int32Array > "u" ? T : Int32Array,
1605
- "%isFinite%": isFinite,
1606
- "%isNaN%": isNaN,
1607
- "%IteratorPrototype%": me && j ? j(j([][Symbol.iterator]())) : T,
1608
- "%JSON%": typeof JSON == "object" ? JSON : T,
1609
- "%Map%": typeof Map > "u" ? T : Map,
1610
- "%MapIteratorPrototype%": typeof Map > "u" || !me || !j ? T : j((/* @__PURE__ */ new Map())[Symbol.iterator]()),
1611
- "%Math%": Math,
1612
- "%Number%": Number,
1613
- "%Object%": Object,
1614
- "%parseFloat%": parseFloat,
1615
- "%parseInt%": parseInt,
1616
- "%Promise%": typeof Promise > "u" ? T : Promise,
1617
- "%Proxy%": typeof Proxy > "u" ? T : Proxy,
1618
- "%RangeError%": RangeError,
1619
- "%ReferenceError%": ReferenceError,
1620
- "%Reflect%": typeof Reflect > "u" ? T : Reflect,
1621
- "%RegExp%": RegExp,
1622
- "%Set%": typeof Set > "u" ? T : Set,
1623
- "%SetIteratorPrototype%": typeof Set > "u" || !me || !j ? T : j((/* @__PURE__ */ new Set())[Symbol.iterator]()),
1624
- "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? T : SharedArrayBuffer,
1625
- "%String%": String,
1626
- "%StringIteratorPrototype%": me && j ? j(""[Symbol.iterator]()) : T,
1627
- "%Symbol%": me ? Symbol : T,
1628
- "%SyntaxError%": we,
1629
- "%ThrowTypeError%": ci,
1630
- "%TypedArray%": fi,
1631
- "%TypeError%": Se,
1632
- "%Uint8Array%": typeof Uint8Array > "u" ? T : Uint8Array,
1633
- "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? T : Uint8ClampedArray,
1634
- "%Uint16Array%": typeof Uint16Array > "u" ? T : Uint16Array,
1635
- "%Uint32Array%": typeof Uint32Array > "u" ? T : Uint32Array,
1636
- "%URIError%": URIError,
1637
- "%WeakMap%": typeof WeakMap > "u" ? T : WeakMap,
1638
- "%WeakRef%": typeof WeakRef > "u" ? T : WeakRef,
1639
- "%WeakSet%": typeof WeakSet > "u" ? T : WeakSet
1640
- };
1641
- if (j)
1642
- try {
1643
- null.error;
1644
- } catch (t) {
1645
- var pi = j(j(t));
1646
- de["%Error.prototype%"] = pi;
1647
- }
1648
- var di = function t(e) {
1649
- var r;
1650
- if (e === "%AsyncFunction%")
1651
- r = lt("async function () {}");
1652
- else if (e === "%GeneratorFunction%")
1653
- r = lt("function* () {}");
1654
- else if (e === "%AsyncGeneratorFunction%")
1655
- r = lt("async function* () {}");
1656
- else if (e === "%AsyncGenerator%") {
1657
- var n = t("%AsyncGeneratorFunction%");
1658
- n && (r = n.prototype);
1659
- } else if (e === "%AsyncIteratorPrototype%") {
1660
- var o = t("%AsyncGenerator%");
1661
- o && j && (r = j(o.prototype));
1662
- }
1663
- return de[e] = r, r;
1664
- }, ur = {
1665
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1666
- "%ArrayPrototype%": ["Array", "prototype"],
1667
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
1668
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
1669
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
1670
- "%ArrayProto_values%": ["Array", "prototype", "values"],
1671
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
1672
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
1673
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
1674
- "%BooleanPrototype%": ["Boolean", "prototype"],
1675
- "%DataViewPrototype%": ["DataView", "prototype"],
1676
- "%DatePrototype%": ["Date", "prototype"],
1677
- "%ErrorPrototype%": ["Error", "prototype"],
1678
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
1679
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
1680
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
1681
- "%FunctionPrototype%": ["Function", "prototype"],
1682
- "%Generator%": ["GeneratorFunction", "prototype"],
1683
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
1684
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
1685
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
1686
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
1687
- "%JSONParse%": ["JSON", "parse"],
1688
- "%JSONStringify%": ["JSON", "stringify"],
1689
- "%MapPrototype%": ["Map", "prototype"],
1690
- "%NumberPrototype%": ["Number", "prototype"],
1691
- "%ObjectPrototype%": ["Object", "prototype"],
1692
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
1693
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1694
- "%PromisePrototype%": ["Promise", "prototype"],
1695
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
1696
- "%Promise_all%": ["Promise", "all"],
1697
- "%Promise_reject%": ["Promise", "reject"],
1698
- "%Promise_resolve%": ["Promise", "resolve"],
1699
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
1700
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1701
- "%RegExpPrototype%": ["RegExp", "prototype"],
1702
- "%SetPrototype%": ["Set", "prototype"],
1703
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1704
- "%StringPrototype%": ["String", "prototype"],
1705
- "%SymbolPrototype%": ["Symbol", "prototype"],
1706
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1707
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1708
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
1709
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1710
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1711
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1712
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1713
- "%URIErrorPrototype%": ["URIError", "prototype"],
1714
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
1715
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
1716
- }, Ue = Lt, Ye = ui, yi = Ue.call(Function.call, Array.prototype.concat), hi = Ue.call(Function.apply, Array.prototype.splice), cr = Ue.call(Function.call, String.prototype.replace), Qe = Ue.call(Function.call, String.prototype.slice), mi = Ue.call(Function.call, RegExp.prototype.exec), vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, gi = /\\(\\)?/g, Si = function(e) {
1717
- var r = Qe(e, 0, 1), n = Qe(e, -1);
1718
- if (r === "%" && n !== "%")
1719
- throw new we("invalid intrinsic syntax, expected closing `%`");
1720
- if (n === "%" && r !== "%")
1721
- throw new we("invalid intrinsic syntax, expected opening `%`");
1722
- var o = [];
1723
- return cr(e, vi, function(i, a, s, u) {
1724
- o[o.length] = s ? cr(u, gi, "$1") : a || i;
1725
- }), o;
1726
- }, bi = function(e, r) {
1727
- var n = e, o;
1728
- if (Ye(ur, n) && (o = ur[n], n = "%" + o[0] + "%"), Ye(de, n)) {
1729
- var i = de[n];
1730
- if (i === ge && (i = di(n)), typeof i > "u" && !r)
1731
- throw new Se("intrinsic " + e + " exists, but is not available. Please file an issue!");
1732
- return {
1733
- alias: o,
1734
- name: n,
1735
- value: i
1736
- };
1737
- }
1738
- throw new we("intrinsic " + e + " does not exist!");
1739
- }, ye = function(e, r) {
1740
- if (typeof e != "string" || e.length === 0)
1741
- throw new Se("intrinsic name must be a non-empty string");
1742
- if (arguments.length > 1 && typeof r != "boolean")
1743
- throw new Se('"allowMissing" argument must be a boolean');
1744
- if (mi(/^%?[^%]*%?$/, e) === null)
1745
- throw new we("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1746
- var n = Si(e), o = n.length > 0 ? n[0] : "", i = bi("%" + o + "%", r), a = i.name, s = i.value, u = !1, c = i.alias;
1747
- c && (o = c[0], hi(n, yi([0, 1], c)));
1748
- for (var d = 1, l = !0; d < n.length; d += 1) {
1749
- var h = n[d], v = Qe(h, 0, 1), y = Qe(h, -1);
1750
- if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y)
1751
- throw new we("property names with quotes must have matching quotes");
1752
- if ((h === "constructor" || !l) && (u = !0), o += "." + h, a = "%" + o + "%", Ye(de, a))
1753
- s = de[a];
1754
- else if (s != null) {
1755
- if (!(h in s)) {
1756
- if (!r)
1757
- throw new Se("base intrinsic for " + e + " exists, but the property is not available.");
1758
- return;
1759
- }
1760
- if (pe && d + 1 >= n.length) {
1761
- var f = pe(s, h);
1762
- l = !!f, l && "get" in f && !("originalValue" in f.get) ? s = f.get : s = s[h];
1763
- } else
1764
- l = Ye(s, h), s = s[h];
1765
- l && !u && (de[a] = s);
1766
- }
1767
- }
1768
- return s;
1769
- }, Kr = { exports: {} }, wi = ye, At = wi("%Object.defineProperty%", !0), $t = function() {
1770
- if (At)
1771
- try {
1772
- return At({}, "a", { value: 1 }), !0;
1773
- } catch {
1774
- return !1;
1775
- }
1776
- return !1;
1777
- };
1778
- $t.hasArrayLengthDefineBug = function() {
1779
- if (!$t())
1780
- return null;
1781
- try {
1782
- return At([], "length", { value: 1 }).length !== 1;
1783
- } catch {
1784
- return !0;
1785
- }
1786
- };
1787
- var Zr = $t, Oi = ye, Je = Oi("%Object.getOwnPropertyDescriptor%", !0);
1788
- if (Je)
1789
- try {
1790
- Je([], "length");
1791
- } catch {
1792
- Je = null;
1793
- }
1794
- var Xr = Je, Ei = Zr(), kt = ye, De = Ei && kt("%Object.defineProperty%", !0);
1795
- if (De)
1796
- try {
1797
- De({}, "a", { value: 1 });
1798
- } catch {
1799
- De = !1;
1800
- }
1801
- var Ai = kt("%SyntaxError%"), ve = kt("%TypeError%"), lr = Xr, $i = function(e, r, n) {
1802
- if (!e || typeof e != "object" && typeof e != "function")
1803
- throw new ve("`obj` must be an object or a function`");
1804
- if (typeof r != "string" && typeof r != "symbol")
1805
- throw new ve("`property` must be a string or a symbol`");
1806
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
1807
- throw new ve("`nonEnumerable`, if provided, must be a boolean or null");
1808
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
1809
- throw new ve("`nonWritable`, if provided, must be a boolean or null");
1810
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
1811
- throw new ve("`nonConfigurable`, if provided, must be a boolean or null");
1812
- if (arguments.length > 6 && typeof arguments[6] != "boolean")
1813
- throw new ve("`loose`, if provided, must be a boolean");
1814
- var o = arguments.length > 3 ? arguments[3] : null, i = arguments.length > 4 ? arguments[4] : null, a = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, u = !!lr && lr(e, r);
1815
- if (De)
1816
- De(e, r, {
1817
- configurable: a === null && u ? u.configurable : !a,
1818
- enumerable: o === null && u ? u.enumerable : !o,
1819
- value: n,
1820
- writable: i === null && u ? u.writable : !i
1821
- });
1822
- else if (s || !o && !i && !a)
1823
- e[r] = n;
1824
- else
1825
- throw new Ai("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1826
- }, en = ye, fr = $i, Pi = Zr(), pr = Xr, dr = en("%TypeError%"), Ri = en("%Math.floor%"), xi = function(e, r) {
1827
- if (typeof e != "function")
1828
- throw new dr("`fn` is not a function");
1829
- if (typeof r != "number" || r < 0 || r > 4294967295 || Ri(r) !== r)
1830
- throw new dr("`length` must be a positive 32-bit integer");
1831
- var n = arguments.length > 2 && !!arguments[2], o = !0, i = !0;
1832
- if ("length" in e && pr) {
1833
- var a = pr(e, "length");
1834
- a && !a.configurable && (o = !1), a && !a.writable && (i = !1);
1835
- }
1836
- return (o || i || !n) && (Pi ? fr(e, "length", r, !0, !0) : fr(e, "length", r)), e;
1837
- };
1838
- (function(t) {
1839
- var e = Lt, r = ye, n = xi, o = r("%TypeError%"), i = r("%Function.prototype.apply%"), a = r("%Function.prototype.call%"), s = r("%Reflect.apply%", !0) || e.call(a, i), u = r("%Object.defineProperty%", !0), c = r("%Math.max%");
1840
- if (u)
1841
- try {
1842
- u({}, "a", { value: 1 });
1843
- } catch {
1844
- u = null;
1845
- }
1846
- t.exports = function(h) {
1847
- if (typeof h != "function")
1848
- throw new o("a function is required");
1849
- var v = s(e, a, arguments);
1850
- return n(
1851
- v,
1852
- 1 + c(0, h.length - (arguments.length - 1)),
1853
- !0
1854
- );
1855
- };
1856
- var d = function() {
1857
- return s(e, i, arguments);
1858
- };
1859
- u ? u(t.exports, "apply", { value: d }) : t.exports.apply = d;
1860
- })(Kr);
1861
- var Ti = Kr.exports, tn = ye, rn = Ti, Di = rn(tn("String.prototype.indexOf")), Fi = function(e, r) {
1862
- var n = tn(e, !!r);
1863
- return typeof n == "function" && Di(e, ".prototype.") > -1 ? rn(n) : n;
1864
- };
1865
- const Ni = {}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1866
- __proto__: null,
1867
- default: Ni
1868
- }, Symbol.toStringTag, { value: "Module" })), _i = /* @__PURE__ */ qo(Ci);
1869
- var Ht = typeof Map == "function" && Map.prototype, pt = Object.getOwnPropertyDescriptor && Ht ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ke = Ht && pt && typeof pt.get == "function" ? pt.get : null, yr = Ht && Map.prototype.forEach, zt = typeof Set == "function" && Set.prototype, dt = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ze = zt && dt && typeof dt.get == "function" ? dt.get : null, hr = zt && Set.prototype.forEach, Mi = typeof WeakMap == "function" && WeakMap.prototype, Fe = Mi ? WeakMap.prototype.has : null, Ii = typeof WeakSet == "function" && WeakSet.prototype, Ne = Ii ? WeakSet.prototype.has : null, Ui = typeof WeakRef == "function" && WeakRef.prototype, mr = Ui ? WeakRef.prototype.deref : null, Bi = Boolean.prototype.valueOf, Li = Object.prototype.toString, ki = Function.prototype.toString, Hi = String.prototype.match, jt = String.prototype.slice, se = String.prototype.replace, zi = String.prototype.toUpperCase, vr = String.prototype.toLowerCase, nn = RegExp.prototype.test, gr = Array.prototype.concat, X = Array.prototype.join, ji = Array.prototype.slice, Sr = Math.floor, Pt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, yt = Object.getOwnPropertySymbols, Rt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Oe = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Oe || !0) ? Symbol.toStringTag : null, on = Object.prototype.propertyIsEnumerable, br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1870
- return t.__proto__;
1871
- } : null);
1872
- function wr(t, e) {
1873
- if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || nn.call(/e/, e))
1874
- return e;
1875
- var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1876
- if (typeof t == "number") {
1877
- var n = t < 0 ? -Sr(-t) : Sr(t);
1878
- if (n !== t) {
1879
- var o = String(n), i = jt.call(e, o.length + 1);
1880
- return se.call(o, r, "$&_") + "." + se.call(se.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
1881
- }
1882
- }
1883
- return se.call(e, r, "$&_");
1884
- }
1885
- var xt = _i, Or = xt.custom, Er = sn(Or) ? Or : null, Wi = function t(e, r, n, o) {
1886
- var i = r || {};
1887
- if (ae(i, "quoteStyle") && i.quoteStyle !== "single" && i.quoteStyle !== "double")
1888
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1889
- if (ae(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
1890
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1891
- var a = ae(i, "customInspect") ? i.customInspect : !0;
1892
- if (typeof a != "boolean" && a !== "symbol")
1893
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1894
- if (ae(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
1895
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1896
- if (ae(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
1897
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1898
- var s = i.numericSeparator;
1899
- if (typeof e > "u")
1900
- return "undefined";
1901
- if (e === null)
1902
- return "null";
1903
- if (typeof e == "boolean")
1904
- return e ? "true" : "false";
1905
- if (typeof e == "string")
1906
- return cn(e, i);
1907
- if (typeof e == "number") {
1908
- if (e === 0)
1909
- return 1 / 0 / e > 0 ? "0" : "-0";
1910
- var u = String(e);
1911
- return s ? wr(e, u) : u;
1912
- }
1913
- if (typeof e == "bigint") {
1914
- var c = String(e) + "n";
1915
- return s ? wr(e, c) : c;
1916
- }
1917
- var d = typeof i.depth > "u" ? 5 : i.depth;
1918
- if (typeof n > "u" && (n = 0), n >= d && d > 0 && typeof e == "object")
1919
- return Tt(e) ? "[Array]" : "[Object]";
1920
- var l = ua(i, n);
1921
- if (typeof o > "u")
1922
- o = [];
1923
- else if (un(o, e) >= 0)
1924
- return "[Circular]";
1925
- function h(Y, E, g) {
1926
- if (E && (o = ji.call(o), o.push(E)), g) {
1927
- var m = {
1928
- depth: i.depth
1929
- };
1930
- return ae(i, "quoteStyle") && (m.quoteStyle = i.quoteStyle), t(Y, m, n + 1, o);
1931
- }
1932
- return t(Y, i, n + 1, o);
1933
- }
1934
- if (typeof e == "function" && !Ar(e)) {
1935
- var v = Xi(e), y = Le(e, h);
1936
- return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + X.call(y, ", ") + " }" : "");
1937
- }
1938
- if (sn(e)) {
1939
- var f = Oe ? se.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Rt.call(e);
1940
- return typeof e == "object" && !Oe ? Te(f) : f;
1941
- }
1942
- if (ia(e)) {
1943
- for (var w = "<" + vr.call(String(e.nodeName)), b = e.attributes || [], A = 0; A < b.length; A++)
1944
- w += " " + b[A].name + "=" + an(qi(b[A].value), "double", i);
1945
- return w += ">", e.childNodes && e.childNodes.length && (w += "..."), w += "</" + vr.call(String(e.nodeName)) + ">", w;
1946
- }
1947
- if (Tt(e)) {
1948
- if (e.length === 0)
1949
- return "[]";
1950
- var R = Le(e, h);
1951
- return l && !sa(R) ? "[" + Dt(R, l) + "]" : "[ " + X.call(R, ", ") + " ]";
1952
- }
1953
- if (Gi(e)) {
1954
- var _ = Le(e, h);
1955
- return !("cause" in Error.prototype) && "cause" in e && !on.call(e, "cause") ? "{ [" + String(e) + "] " + X.call(gr.call("[cause]: " + h(e.cause), _), ", ") + " }" : _.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + X.call(_, ", ") + " }";
1956
- }
1957
- if (typeof e == "object" && a) {
1958
- if (Er && typeof e[Er] == "function" && xt)
1959
- return xt(e, { depth: d - n });
1960
- if (a !== "symbol" && typeof e.inspect == "function")
1961
- return e.inspect();
1962
- }
1963
- if (ea(e)) {
1964
- var N = [];
1965
- return yr && yr.call(e, function(Y, E) {
1966
- N.push(h(E, e, !0) + " => " + h(Y, e));
1967
- }), $r("Map", Ke.call(e), N, l);
1968
- }
1969
- if (na(e)) {
1970
- var U = [];
1971
- return hr && hr.call(e, function(Y) {
1972
- U.push(h(Y, e));
1973
- }), $r("Set", Ze.call(e), U, l);
1974
- }
1975
- if (ta(e))
1976
- return ht("WeakMap");
1977
- if (oa(e))
1978
- return ht("WeakSet");
1979
- if (ra(e))
1980
- return ht("WeakRef");
1981
- if (Yi(e))
1982
- return Te(h(Number(e)));
1983
- if (Ki(e))
1984
- return Te(h(Pt.call(e)));
1985
- if (Qi(e))
1986
- return Te(Bi.call(e));
1987
- if (Vi(e))
1988
- return Te(h(String(e)));
1989
- if (typeof window < "u" && e === window)
1990
- return "{ [object Window] }";
1991
- if (e === ot)
1992
- return "{ [object globalThis] }";
1993
- if (!Ji(e) && !Ar(e)) {
1994
- var M = Le(e, h), B = br ? br(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", F = !B && G && Object(e) === e && G in e ? jt.call(ue(e), 8, -1) : L ? "Object" : "", x = B || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", W = x + (F || L ? "[" + X.call(gr.call([], F || [], L || []), ": ") + "] " : "");
1995
- return M.length === 0 ? W + "{}" : l ? W + "{" + Dt(M, l) + "}" : W + "{ " + X.call(M, ", ") + " }";
1996
- }
1997
- return String(e);
1998
- };
1999
- function an(t, e, r) {
2000
- var n = (r.quoteStyle || e) === "double" ? '"' : "'";
2001
- return n + t + n;
2002
- }
2003
- function qi(t) {
2004
- return se.call(String(t), /"/g, "&quot;");
2005
- }
2006
- function Tt(t) {
2007
- return ue(t) === "[object Array]" && (!G || !(typeof t == "object" && G in t));
2008
- }
2009
- function Ji(t) {
2010
- return ue(t) === "[object Date]" && (!G || !(typeof t == "object" && G in t));
2011
- }
2012
- function Ar(t) {
2013
- return ue(t) === "[object RegExp]" && (!G || !(typeof t == "object" && G in t));
2014
- }
2015
- function Gi(t) {
2016
- return ue(t) === "[object Error]" && (!G || !(typeof t == "object" && G in t));
2017
- }
2018
- function Vi(t) {
2019
- return ue(t) === "[object String]" && (!G || !(typeof t == "object" && G in t));
2020
- }
2021
- function Yi(t) {
2022
- return ue(t) === "[object Number]" && (!G || !(typeof t == "object" && G in t));
2023
- }
2024
- function Qi(t) {
2025
- return ue(t) === "[object Boolean]" && (!G || !(typeof t == "object" && G in t));
2026
- }
2027
- function sn(t) {
2028
- if (Oe)
2029
- return t && typeof t == "object" && t instanceof Symbol;
2030
- if (typeof t == "symbol")
2031
- return !0;
2032
- if (!t || typeof t != "object" || !Rt)
2033
- return !1;
2034
- try {
2035
- return Rt.call(t), !0;
2036
- } catch {
2037
- }
2038
- return !1;
2039
- }
2040
- function Ki(t) {
2041
- if (!t || typeof t != "object" || !Pt)
2042
- return !1;
2043
- try {
2044
- return Pt.call(t), !0;
2045
- } catch {
2046
- }
2047
- return !1;
2048
- }
2049
- var Zi = Object.prototype.hasOwnProperty || function(t) {
2050
- return t in this;
2051
- };
2052
- function ae(t, e) {
2053
- return Zi.call(t, e);
2054
- }
2055
- function ue(t) {
2056
- return Li.call(t);
2057
- }
2058
- function Xi(t) {
2059
- if (t.name)
2060
- return t.name;
2061
- var e = Hi.call(ki.call(t), /^function\s*([\w$]+)/);
2062
- return e ? e[1] : null;
2063
- }
2064
- function un(t, e) {
2065
- if (t.indexOf)
2066
- return t.indexOf(e);
2067
- for (var r = 0, n = t.length; r < n; r++)
2068
- if (t[r] === e)
2069
- return r;
2070
- return -1;
2071
- }
2072
- function ea(t) {
2073
- if (!Ke || !t || typeof t != "object")
2074
- return !1;
2075
- try {
2076
- Ke.call(t);
2077
- try {
2078
- Ze.call(t);
2079
- } catch {
2080
- return !0;
2081
- }
2082
- return t instanceof Map;
2083
- } catch {
2084
- }
2085
- return !1;
2086
- }
2087
- function ta(t) {
2088
- if (!Fe || !t || typeof t != "object")
2089
- return !1;
2090
- try {
2091
- Fe.call(t, Fe);
2092
- try {
2093
- Ne.call(t, Ne);
2094
- } catch {
2095
- return !0;
2096
- }
2097
- return t instanceof WeakMap;
2098
- } catch {
2099
- }
2100
- return !1;
2101
- }
2102
- function ra(t) {
2103
- if (!mr || !t || typeof t != "object")
2104
- return !1;
2105
- try {
2106
- return mr.call(t), !0;
2107
- } catch {
2108
- }
2109
- return !1;
2110
- }
2111
- function na(t) {
2112
- if (!Ze || !t || typeof t != "object")
2113
- return !1;
2114
- try {
2115
- Ze.call(t);
2116
- try {
2117
- Ke.call(t);
2118
- } catch {
2119
- return !0;
2120
- }
2121
- return t instanceof Set;
2122
- } catch {
2123
- }
2124
- return !1;
2125
- }
2126
- function oa(t) {
2127
- if (!Ne || !t || typeof t != "object")
2128
- return !1;
2129
- try {
2130
- Ne.call(t, Ne);
2131
- try {
2132
- Fe.call(t, Fe);
2133
- } catch {
2134
- return !0;
2135
- }
2136
- return t instanceof WeakSet;
2137
- } catch {
2138
- }
2139
- return !1;
2140
- }
2141
- function ia(t) {
2142
- return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2143
- }
2144
- function cn(t, e) {
2145
- if (t.length > e.maxStringLength) {
2146
- var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
2147
- return cn(jt.call(t, 0, e.maxStringLength), e) + n;
2148
- }
2149
- var o = se.call(se.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, aa);
2150
- return an(o, "single", e);
2151
- }
2152
- function aa(t) {
2153
- var e = t.charCodeAt(0), r = {
2154
- 8: "b",
2155
- 9: "t",
2156
- 10: "n",
2157
- 12: "f",
2158
- 13: "r"
2159
- }[e];
2160
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + zi.call(e.toString(16));
2161
- }
2162
- function Te(t) {
2163
- return "Object(" + t + ")";
2164
- }
2165
- function ht(t) {
2166
- return t + " { ? }";
2167
- }
2168
- function $r(t, e, r, n) {
2169
- var o = n ? Dt(r, n) : X.call(r, ", ");
2170
- return t + " (" + e + ") {" + o + "}";
2171
- }
2172
- function sa(t) {
2173
- for (var e = 0; e < t.length; e++)
2174
- if (un(t[e], `
2175
- `) >= 0)
2176
- return !1;
2177
- return !0;
2178
- }
2179
- function ua(t, e) {
2180
- var r;
2181
- if (t.indent === " ")
2182
- r = " ";
2183
- else if (typeof t.indent == "number" && t.indent > 0)
2184
- r = X.call(Array(t.indent + 1), " ");
2185
- else
2186
- return null;
2187
- return {
2188
- base: r,
2189
- prev: X.call(Array(e + 1), r)
2190
- };
2191
- }
2192
- function Dt(t, e) {
2193
- if (t.length === 0)
2194
- return "";
2195
- var r = `
2196
- ` + e.prev + e.base;
2197
- return r + X.call(t, "," + r) + `
2198
- ` + e.prev;
2199
- }
2200
- function Le(t, e) {
2201
- var r = Tt(t), n = [];
2202
- if (r) {
2203
- n.length = t.length;
2204
- for (var o = 0; o < t.length; o++)
2205
- n[o] = ae(t, o) ? e(t[o], t) : "";
2206
- }
2207
- var i = typeof yt == "function" ? yt(t) : [], a;
2208
- if (Oe) {
2209
- a = {};
2210
- for (var s = 0; s < i.length; s++)
2211
- a["$" + i[s]] = i[s];
2212
- }
2213
- for (var u in t)
2214
- ae(t, u) && (r && String(Number(u)) === u && u < t.length || Oe && a["$" + u] instanceof Symbol || (nn.call(/[^\w$]/, u) ? n.push(e(u, t) + ": " + e(t[u], t)) : n.push(u + ": " + e(t[u], t))));
2215
- if (typeof yt == "function")
2216
- for (var c = 0; c < i.length; c++)
2217
- on.call(t, i[c]) && n.push("[" + e(i[c]) + "]: " + e(t[i[c]], t));
2218
- return n;
2219
- }
2220
- var Wt = ye, $e = Fi, ca = Wi, la = Wt("%TypeError%"), ke = Wt("%WeakMap%", !0), He = Wt("%Map%", !0), fa = $e("WeakMap.prototype.get", !0), pa = $e("WeakMap.prototype.set", !0), da = $e("WeakMap.prototype.has", !0), ya = $e("Map.prototype.get", !0), ha = $e("Map.prototype.set", !0), ma = $e("Map.prototype.has", !0), qt = function(t, e) {
2221
- for (var r = t, n; (n = r.next) !== null; r = n)
2222
- if (n.key === e)
2223
- return r.next = n.next, n.next = t.next, t.next = n, n;
2224
- }, va = function(t, e) {
2225
- var r = qt(t, e);
2226
- return r && r.value;
2227
- }, ga = function(t, e, r) {
2228
- var n = qt(t, e);
2229
- n ? n.value = r : t.next = {
2230
- // eslint-disable-line no-param-reassign
2231
- key: e,
2232
- next: t.next,
2233
- value: r
2234
- };
2235
- }, Sa = function(t, e) {
2236
- return !!qt(t, e);
2237
- }, ba = function() {
2238
- var e, r, n, o = {
2239
- assert: function(i) {
2240
- if (!o.has(i))
2241
- throw new la("Side channel does not contain " + ca(i));
2242
- },
2243
- get: function(i) {
2244
- if (ke && i && (typeof i == "object" || typeof i == "function")) {
2245
- if (e)
2246
- return fa(e, i);
2247
- } else if (He) {
2248
- if (r)
2249
- return ya(r, i);
2250
- } else if (n)
2251
- return va(n, i);
2252
- },
2253
- has: function(i) {
2254
- if (ke && i && (typeof i == "object" || typeof i == "function")) {
2255
- if (e)
2256
- return da(e, i);
2257
- } else if (He) {
2258
- if (r)
2259
- return ma(r, i);
2260
- } else if (n)
2261
- return Sa(n, i);
2262
- return !1;
2263
- },
2264
- set: function(i, a) {
2265
- ke && i && (typeof i == "object" || typeof i == "function") ? (e || (e = new ke()), pa(e, i, a)) : He ? (r || (r = new He()), ha(r, i, a)) : (n || (n = { key: {}, next: null }), ga(n, i, a));
2266
- }
2267
- };
2268
- return o;
2269
- }, wa = String.prototype.replace, Oa = /%20/g, mt = {
2270
- RFC1738: "RFC1738",
2271
- RFC3986: "RFC3986"
2272
- }, Jt = {
2273
- default: mt.RFC3986,
2274
- formatters: {
2275
- RFC1738: function(t) {
2276
- return wa.call(t, Oa, "+");
2277
- },
2278
- RFC3986: function(t) {
2279
- return String(t);
2280
- }
2281
- },
2282
- RFC1738: mt.RFC1738,
2283
- RFC3986: mt.RFC3986
2284
- }, Ea = Jt, vt = Object.prototype.hasOwnProperty, fe = Array.isArray, Z = function() {
2285
- for (var t = [], e = 0; e < 256; ++e)
2286
- t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
2287
- return t;
2288
- }(), Aa = function(e) {
2289
- for (; e.length > 1; ) {
2290
- var r = e.pop(), n = r.obj[r.prop];
2291
- if (fe(n)) {
2292
- for (var o = [], i = 0; i < n.length; ++i)
2293
- typeof n[i] < "u" && o.push(n[i]);
2294
- r.obj[r.prop] = o;
2295
- }
2296
- }
2297
- }, ln = function(e, r) {
2298
- for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < e.length; ++o)
2299
- typeof e[o] < "u" && (n[o] = e[o]);
2300
- return n;
2301
- }, $a = function t(e, r, n) {
2302
- if (!r)
2303
- return e;
2304
- if (typeof r != "object") {
2305
- if (fe(e))
2306
- e.push(r);
2307
- else if (e && typeof e == "object")
2308
- (n && (n.plainObjects || n.allowPrototypes) || !vt.call(Object.prototype, r)) && (e[r] = !0);
2309
- else
2310
- return [e, r];
2311
- return e;
2312
- }
2313
- if (!e || typeof e != "object")
2314
- return [e].concat(r);
2315
- var o = e;
2316
- return fe(e) && !fe(r) && (o = ln(e, n)), fe(e) && fe(r) ? (r.forEach(function(i, a) {
2317
- if (vt.call(e, a)) {
2318
- var s = e[a];
2319
- s && typeof s == "object" && i && typeof i == "object" ? e[a] = t(s, i, n) : e.push(i);
2320
- } else
2321
- e[a] = i;
2322
- }), e) : Object.keys(r).reduce(function(i, a) {
2323
- var s = r[a];
2324
- return vt.call(i, a) ? i[a] = t(i[a], s, n) : i[a] = s, i;
2325
- }, o);
2326
- }, Pa = function(e, r) {
2327
- return Object.keys(r).reduce(function(n, o) {
2328
- return n[o] = r[o], n;
2329
- }, e);
2330
- }, Ra = function(t, e, r) {
2331
- var n = t.replace(/\+/g, " ");
2332
- if (r === "iso-8859-1")
2333
- return n.replace(/%[0-9a-f]{2}/gi, unescape);
2334
- try {
2335
- return decodeURIComponent(n);
2336
- } catch {
2337
- return n;
2338
- }
2339
- }, xa = function(e, r, n, o, i) {
2340
- if (e.length === 0)
2341
- return e;
2342
- var a = e;
2343
- if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), n === "iso-8859-1")
2344
- return escape(a).replace(/%u[0-9a-f]{4}/gi, function(d) {
2345
- return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
2346
- });
2347
- for (var s = "", u = 0; u < a.length; ++u) {
2348
- var c = a.charCodeAt(u);
2349
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || i === Ea.RFC1738 && (c === 40 || c === 41)) {
2350
- s += a.charAt(u);
2351
- continue;
2352
- }
2353
- if (c < 128) {
2354
- s = s + Z[c];
2355
- continue;
2356
- }
2357
- if (c < 2048) {
2358
- s = s + (Z[192 | c >> 6] + Z[128 | c & 63]);
2359
- continue;
2360
- }
2361
- if (c < 55296 || c >= 57344) {
2362
- s = s + (Z[224 | c >> 12] + Z[128 | c >> 6 & 63] + Z[128 | c & 63]);
2363
- continue;
2364
- }
2365
- u += 1, c = 65536 + ((c & 1023) << 10 | a.charCodeAt(u) & 1023), s += Z[240 | c >> 18] + Z[128 | c >> 12 & 63] + Z[128 | c >> 6 & 63] + Z[128 | c & 63];
2366
- }
2367
- return s;
2368
- }, Ta = function(e) {
2369
- for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
2370
- for (var i = r[o], a = i.obj[i.prop], s = Object.keys(a), u = 0; u < s.length; ++u) {
2371
- var c = s[u], d = a[c];
2372
- typeof d == "object" && d !== null && n.indexOf(d) === -1 && (r.push({ obj: a, prop: c }), n.push(d));
2373
- }
2374
- return Aa(r), e;
2375
- }, Da = function(e) {
2376
- return Object.prototype.toString.call(e) === "[object RegExp]";
2377
- }, Fa = function(e) {
2378
- return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
2379
- }, Na = function(e, r) {
2380
- return [].concat(e, r);
2381
- }, Ca = function(e, r) {
2382
- if (fe(e)) {
2383
- for (var n = [], o = 0; o < e.length; o += 1)
2384
- n.push(r(e[o]));
2385
- return n;
2386
- }
2387
- return r(e);
2388
- }, fn = {
2389
- arrayToObject: ln,
2390
- assign: Pa,
2391
- combine: Na,
2392
- compact: Ta,
2393
- decode: Ra,
2394
- encode: xa,
2395
- isBuffer: Fa,
2396
- isRegExp: Da,
2397
- maybeMap: Ca,
2398
- merge: $a
2399
- }, pn = ba, Ge = fn, Ce = Jt, _a = Object.prototype.hasOwnProperty, Pr = {
2400
- brackets: function(e) {
2401
- return e + "[]";
2402
- },
2403
- comma: "comma",
2404
- indices: function(e, r) {
2405
- return e + "[" + r + "]";
2406
- },
2407
- repeat: function(e) {
2408
- return e;
2409
- }
2410
- }, re = Array.isArray, Ma = Array.prototype.push, dn = function(t, e) {
2411
- Ma.apply(t, re(e) ? e : [e]);
2412
- }, Ia = Date.prototype.toISOString, Rr = Ce.default, J = {
2413
- addQueryPrefix: !1,
2414
- allowDots: !1,
2415
- charset: "utf-8",
2416
- charsetSentinel: !1,
2417
- delimiter: "&",
2418
- encode: !0,
2419
- encoder: Ge.encode,
2420
- encodeValuesOnly: !1,
2421
- format: Rr,
2422
- formatter: Ce.formatters[Rr],
2423
- // deprecated
2424
- indices: !1,
2425
- serializeDate: function(e) {
2426
- return Ia.call(e);
2427
- },
2428
- skipNulls: !1,
2429
- strictNullHandling: !1
2430
- }, Ua = function(e) {
2431
- return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
2432
- }, gt = {}, Ba = function t(e, r, n, o, i, a, s, u, c, d, l, h, v, y, f, w) {
2433
- for (var b = e, A = w, R = 0, _ = !1; (A = A.get(gt)) !== void 0 && !_; ) {
2434
- var N = A.get(e);
2435
- if (R += 1, typeof N < "u") {
2436
- if (N === R)
2437
- throw new RangeError("Cyclic object value");
2438
- _ = !0;
2439
- }
2440
- typeof A.get(gt) > "u" && (R = 0);
2441
- }
2442
- if (typeof u == "function" ? b = u(r, b) : b instanceof Date ? b = l(b) : n === "comma" && re(b) && (b = Ge.maybeMap(b, function(m) {
2443
- return m instanceof Date ? l(m) : m;
2444
- })), b === null) {
2445
- if (i)
2446
- return s && !y ? s(r, J.encoder, f, "key", h) : r;
2447
- b = "";
2448
- }
2449
- if (Ua(b) || Ge.isBuffer(b)) {
2450
- if (s) {
2451
- var U = y ? r : s(r, J.encoder, f, "key", h);
2452
- return [v(U) + "=" + v(s(b, J.encoder, f, "value", h))];
2453
- }
2454
- return [v(r) + "=" + v(String(b))];
2455
- }
2456
- var M = [];
2457
- if (typeof b > "u")
2458
- return M;
2459
- var B;
2460
- if (n === "comma" && re(b))
2461
- y && s && (b = Ge.maybeMap(b, s)), B = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
2462
- else if (re(u))
2463
- B = u;
2464
- else {
2465
- var L = Object.keys(b);
2466
- B = c ? L.sort(c) : L;
2467
- }
2468
- for (var F = o && re(b) && b.length === 1 ? r + "[]" : r, x = 0; x < B.length; ++x) {
2469
- var W = B[x], Y = typeof W == "object" && typeof W.value < "u" ? W.value : b[W];
2470
- if (!(a && Y === null)) {
2471
- var E = re(b) ? typeof n == "function" ? n(F, W) : F : F + (d ? "." + W : "[" + W + "]");
2472
- w.set(e, R);
2473
- var g = pn();
2474
- g.set(gt, w), dn(M, t(
2475
- Y,
2476
- E,
2477
- n,
2478
- o,
2479
- i,
2480
- a,
2481
- n === "comma" && y && re(b) ? null : s,
2482
- u,
2483
- c,
2484
- d,
2485
- l,
2486
- h,
2487
- v,
2488
- y,
2489
- f,
2490
- g
2491
- ));
2492
- }
2493
- }
2494
- return M;
2495
- }, La = function(e) {
2496
- if (!e)
2497
- return J;
2498
- if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
2499
- throw new TypeError("Encoder has to be a function.");
2500
- var r = e.charset || J.charset;
2501
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2502
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2503
- var n = Ce.default;
2504
- if (typeof e.format < "u") {
2505
- if (!_a.call(Ce.formatters, e.format))
2506
- throw new TypeError("Unknown format option provided.");
2507
- n = e.format;
2508
- }
2509
- var o = Ce.formatters[n], i = J.filter;
2510
- return (typeof e.filter == "function" || re(e.filter)) && (i = e.filter), {
2511
- addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : J.addQueryPrefix,
2512
- allowDots: typeof e.allowDots > "u" ? J.allowDots : !!e.allowDots,
2513
- charset: r,
2514
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : J.charsetSentinel,
2515
- delimiter: typeof e.delimiter > "u" ? J.delimiter : e.delimiter,
2516
- encode: typeof e.encode == "boolean" ? e.encode : J.encode,
2517
- encoder: typeof e.encoder == "function" ? e.encoder : J.encoder,
2518
- encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : J.encodeValuesOnly,
2519
- filter: i,
2520
- format: n,
2521
- formatter: o,
2522
- serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : J.serializeDate,
2523
- skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : J.skipNulls,
2524
- sort: typeof e.sort == "function" ? e.sort : null,
2525
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : J.strictNullHandling
2526
- };
2527
- }, ka = function(t, e) {
2528
- var r = t, n = La(e), o, i;
2529
- typeof n.filter == "function" ? (i = n.filter, r = i("", r)) : re(n.filter) && (i = n.filter, o = i);
2530
- var a = [];
2531
- if (typeof r != "object" || r === null)
2532
- return "";
2533
- var s;
2534
- e && e.arrayFormat in Pr ? s = e.arrayFormat : e && "indices" in e ? s = e.indices ? "indices" : "repeat" : s = "indices";
2535
- var u = Pr[s];
2536
- if (e && "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
2537
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2538
- var c = u === "comma" && e && e.commaRoundTrip;
2539
- o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
2540
- for (var d = pn(), l = 0; l < o.length; ++l) {
2541
- var h = o[l];
2542
- n.skipNulls && r[h] === null || dn(a, Ba(
2543
- r[h],
2544
- h,
2545
- u,
2546
- c,
2547
- n.strictNullHandling,
2548
- n.skipNulls,
2549
- n.encode ? n.encoder : null,
2550
- n.filter,
2551
- n.sort,
2552
- n.allowDots,
2553
- n.serializeDate,
2554
- n.format,
2555
- n.formatter,
2556
- n.encodeValuesOnly,
2557
- n.charset,
2558
- d
2559
- ));
2560
- }
2561
- var v = a.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
2562
- return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
2563
- }, Ee = fn, Ft = Object.prototype.hasOwnProperty, Ha = Array.isArray, z = {
2564
- allowDots: !1,
2565
- allowPrototypes: !1,
2566
- allowSparse: !1,
2567
- arrayLimit: 20,
2568
- charset: "utf-8",
2569
- charsetSentinel: !1,
2570
- comma: !1,
2571
- decoder: Ee.decode,
2572
- delimiter: "&",
2573
- depth: 5,
2574
- ignoreQueryPrefix: !1,
2575
- interpretNumericEntities: !1,
2576
- parameterLimit: 1e3,
2577
- parseArrays: !0,
2578
- plainObjects: !1,
2579
- strictNullHandling: !1
2580
- }, za = function(t) {
2581
- return t.replace(/&#(\d+);/g, function(e, r) {
2582
- return String.fromCharCode(parseInt(r, 10));
2583
- });
2584
- }, yn = function(t, e) {
2585
- return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
2586
- }, ja = "utf8=%26%2310003%3B", Wa = "utf8=%E2%9C%93", qa = function(e, r) {
2587
- var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, i = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, a = o.split(r.delimiter, i), s = -1, u, c = r.charset;
2588
- if (r.charsetSentinel)
2589
- for (u = 0; u < a.length; ++u)
2590
- a[u].indexOf("utf8=") === 0 && (a[u] === Wa ? c = "utf-8" : a[u] === ja && (c = "iso-8859-1"), s = u, u = a.length);
2591
- for (u = 0; u < a.length; ++u)
2592
- if (u !== s) {
2593
- var d = a[u], l = d.indexOf("]="), h = l === -1 ? d.indexOf("=") : l + 1, v, y;
2594
- h === -1 ? (v = r.decoder(d, z.decoder, c, "key"), y = r.strictNullHandling ? null : "") : (v = r.decoder(d.slice(0, h), z.decoder, c, "key"), y = Ee.maybeMap(
2595
- yn(d.slice(h + 1), r),
2596
- function(f) {
2597
- return r.decoder(f, z.decoder, c, "value");
2598
- }
2599
- )), y && r.interpretNumericEntities && c === "iso-8859-1" && (y = za(y)), d.indexOf("[]=") > -1 && (y = Ha(y) ? [y] : y), Ft.call(n, v) ? n[v] = Ee.combine(n[v], y) : n[v] = y;
2600
- }
2601
- return n;
2602
- }, Ja = function(t, e, r, n) {
2603
- for (var o = n ? e : yn(e, r), i = t.length - 1; i >= 0; --i) {
2604
- var a, s = t[i];
2605
- if (s === "[]" && r.parseArrays)
2606
- a = [].concat(o);
2607
- else {
2608
- a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2609
- var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, c = parseInt(u, 10);
2610
- !r.parseArrays && u === "" ? a = { 0: o } : !isNaN(c) && s !== u && String(c) === u && c >= 0 && r.parseArrays && c <= r.arrayLimit ? (a = [], a[c] = o) : u !== "__proto__" && (a[u] = o);
2611
- }
2612
- o = a;
2613
- }
2614
- return o;
2615
- }, Ga = function(e, r, n, o) {
2616
- if (e) {
2617
- var i = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, a = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = n.depth > 0 && a.exec(i), c = u ? i.slice(0, u.index) : i, d = [];
2618
- if (c) {
2619
- if (!n.plainObjects && Ft.call(Object.prototype, c) && !n.allowPrototypes)
2620
- return;
2621
- d.push(c);
2622
- }
2623
- for (var l = 0; n.depth > 0 && (u = s.exec(i)) !== null && l < n.depth; ) {
2624
- if (l += 1, !n.plainObjects && Ft.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes)
2625
- return;
2626
- d.push(u[1]);
2627
- }
2628
- return u && d.push("[" + i.slice(u.index) + "]"), Ja(d, r, n, o);
2629
- }
2630
- }, Va = function(e) {
2631
- if (!e)
2632
- return z;
2633
- if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
2634
- throw new TypeError("Decoder has to be a function.");
2635
- if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
2636
- throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
2637
- var r = typeof e.charset > "u" ? z.charset : e.charset;
2638
- return {
2639
- allowDots: typeof e.allowDots > "u" ? z.allowDots : !!e.allowDots,
2640
- allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : z.allowPrototypes,
2641
- allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : z.allowSparse,
2642
- arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : z.arrayLimit,
2643
- charset: r,
2644
- charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : z.charsetSentinel,
2645
- comma: typeof e.comma == "boolean" ? e.comma : z.comma,
2646
- decoder: typeof e.decoder == "function" ? e.decoder : z.decoder,
2647
- delimiter: typeof e.delimiter == "string" || Ee.isRegExp(e.delimiter) ? e.delimiter : z.delimiter,
2648
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2649
- depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : z.depth,
2650
- ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
2651
- interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : z.interpretNumericEntities,
2652
- parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : z.parameterLimit,
2653
- parseArrays: e.parseArrays !== !1,
2654
- plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : z.plainObjects,
2655
- strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : z.strictNullHandling
2656
- };
2657
- }, Ya = function(t, e) {
2658
- var r = Va(e);
2659
- if (t === "" || t === null || typeof t > "u")
2660
- return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2661
- for (var n = typeof t == "string" ? qa(t, r) : t, o = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = Object.keys(n), a = 0; a < i.length; ++a) {
2662
- var s = i[a], u = Ga(s, n[s], r, typeof t == "string");
2663
- o = Ee.merge(o, u, r);
2664
- }
2665
- return r.allowSparse === !0 ? o : Ee.compact(o);
2666
- }, Qa = ka, Ka = Ya, Za = Jt, Xa = {
2667
- formats: Za,
2668
- parse: Ka,
2669
- stringify: Qa
2670
- };
2671
- const es = /* @__PURE__ */ it(Xa);
2672
- /*! js-cookie v3.0.5 | MIT */
2673
- function ze(t) {
2674
- for (var e = 1; e < arguments.length; e++) {
2675
- var r = arguments[e];
2676
- for (var n in r)
2677
- t[n] = r[n];
2678
- }
2679
- return t;
2680
- }
2681
- var ts = {
2682
- read: function(t) {
2683
- return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
2684
- },
2685
- write: function(t) {
2686
- return encodeURIComponent(t).replace(
2687
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2688
- decodeURIComponent
2689
- );
2690
- }
2691
- };
2692
- function Nt(t, e) {
2693
- function r(o, i, a) {
2694
- if (!(typeof document > "u")) {
2695
- a = ze({}, e, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
2696
- var s = "";
2697
- for (var u in a)
2698
- a[u] && (s += "; " + u, a[u] !== !0 && (s += "=" + a[u].split(";")[0]));
2699
- return document.cookie = o + "=" + t.write(i, o) + s;
2700
- }
2701
- }
2702
- function n(o) {
2703
- if (!(typeof document > "u" || arguments.length && !o)) {
2704
- for (var i = document.cookie ? document.cookie.split("; ") : [], a = {}, s = 0; s < i.length; s++) {
2705
- var u = i[s].split("="), c = u.slice(1).join("=");
2706
- try {
2707
- var d = decodeURIComponent(u[0]);
2708
- if (a[d] = t.read(c, d), o === d)
2709
- break;
2710
- } catch {
2711
- }
2712
- }
2713
- return o ? a[o] : a;
2714
- }
2715
- }
2716
- return Object.create(
2717
- {
2718
- set: r,
2719
- get: n,
2720
- remove: function(o, i) {
2721
- r(
2722
- o,
2723
- "",
2724
- ze({}, i, {
2725
- expires: -1
2726
- })
2727
- );
2728
- },
2729
- withAttributes: function(o) {
2730
- return Nt(this.converter, ze({}, this.attributes, o));
2731
- },
2732
- withConverter: function(o) {
2733
- return Nt(ze({}, this.converter, o), this.attributes);
2734
- }
2735
- },
2736
- {
2737
- attributes: { value: Object.freeze(e) },
2738
- converter: { value: Object.freeze(t) }
2739
- }
2740
- );
2741
- }
2742
- var rs = Nt(ts, { path: "/" }), hn = { exports: {} };
2743
- (function(t, e) {
2744
- (function(r, n) {
2745
- t.exports = n();
2746
- })(ot, function() {
2747
- var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", a = "second", s = "minute", u = "hour", c = "day", d = "week", l = "month", h = "quarter", v = "year", y = "date", f = "Invalid Date", w = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, A = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) {
2748
- var g = ["th", "st", "nd", "rd"], m = E % 100;
2749
- return "[" + E + (g[(m - 20) % 10] || g[m] || g[0]) + "]";
2750
- } }, R = function(E, g, m) {
2751
- var O = String(E);
2752
- return !O || O.length >= g ? E : "" + Array(g + 1 - O.length).join(m) + E;
2753
- }, _ = { s: R, z: function(E) {
2754
- var g = -E.utcOffset(), m = Math.abs(g), O = Math.floor(m / 60), S = m % 60;
2755
- return (g <= 0 ? "+" : "-") + R(O, 2, "0") + ":" + R(S, 2, "0");
2756
- }, m: function E(g, m) {
2757
- if (g.date() < m.date())
2758
- return -E(m, g);
2759
- var O = 12 * (m.year() - g.year()) + (m.month() - g.month()), S = g.clone().add(O, l), $ = m - S < 0, P = g.clone().add(O + ($ ? -1 : 1), l);
2760
- return +(-(O + (m - S) / ($ ? S - P : P - S)) || 0);
2761
- }, a: function(E) {
2762
- return E < 0 ? Math.ceil(E) || 0 : Math.floor(E);
2763
- }, p: function(E) {
2764
- return { M: l, y: v, w: d, d: c, D: y, h: u, m: s, s: a, ms: i, Q: h }[E] || String(E || "").toLowerCase().replace(/s$/, "");
2765
- }, u: function(E) {
2766
- return E === void 0;
2767
- } }, N = "en", U = {};
2768
- U[N] = A;
2769
- var M = "$isDayjsObject", B = function(E) {
2770
- return E instanceof W || !(!E || !E[M]);
2771
- }, L = function E(g, m, O) {
2772
- var S;
2773
- if (!g)
2774
- return N;
2775
- if (typeof g == "string") {
2776
- var $ = g.toLowerCase();
2777
- U[$] && (S = $), m && (U[$] = m, S = $);
2778
- var P = g.split("-");
2779
- if (!S && P.length > 1)
2780
- return E(P[0]);
2781
- } else {
2782
- var C = g.name;
2783
- U[C] = g, S = C;
2784
- }
2785
- return !O && S && (N = S), S || !O && N;
2786
- }, F = function(E, g) {
2787
- if (B(E))
2788
- return E.clone();
2789
- var m = typeof g == "object" ? g : {};
2790
- return m.date = E, m.args = arguments, new W(m);
2791
- }, x = _;
2792
- x.l = L, x.i = B, x.w = function(E, g) {
2793
- return F(E, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
2794
- };
2795
- var W = function() {
2796
- function E(m) {
2797
- this.$L = L(m.locale, null, !0), this.parse(m), this.$x = this.$x || m.x || {}, this[M] = !0;
2798
- }
2799
- var g = E.prototype;
2800
- return g.parse = function(m) {
2801
- this.$d = function(O) {
2802
- var S = O.date, $ = O.utc;
2803
- if (S === null)
2804
- return /* @__PURE__ */ new Date(NaN);
2805
- if (x.u(S))
2806
- return /* @__PURE__ */ new Date();
2807
- if (S instanceof Date)
2808
- return new Date(S);
2809
- if (typeof S == "string" && !/Z$/i.test(S)) {
2810
- var P = S.match(w);
2811
- if (P) {
2812
- var C = P[2] - 1 || 0, I = (P[7] || "0").substring(0, 3);
2813
- return $ ? new Date(Date.UTC(P[1], C, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, I)) : new Date(P[1], C, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, I);
2814
- }
2815
- }
2816
- return new Date(S);
2817
- }(m), this.init();
2818
- }, g.init = function() {
2819
- var m = this.$d;
2820
- this.$y = m.getFullYear(), this.$M = m.getMonth(), this.$D = m.getDate(), this.$W = m.getDay(), this.$H = m.getHours(), this.$m = m.getMinutes(), this.$s = m.getSeconds(), this.$ms = m.getMilliseconds();
2821
- }, g.$utils = function() {
2822
- return x;
2823
- }, g.isValid = function() {
2824
- return this.$d.toString() !== f;
2825
- }, g.isSame = function(m, O) {
2826
- var S = F(m);
2827
- return this.startOf(O) <= S && S <= this.endOf(O);
2828
- }, g.isAfter = function(m, O) {
2829
- return F(m) < this.startOf(O);
2830
- }, g.isBefore = function(m, O) {
2831
- return this.endOf(O) < F(m);
2832
- }, g.$g = function(m, O, S) {
2833
- return x.u(m) ? this[O] : this.set(S, m);
2834
- }, g.unix = function() {
2835
- return Math.floor(this.valueOf() / 1e3);
2836
- }, g.valueOf = function() {
2837
- return this.$d.getTime();
2838
- }, g.startOf = function(m, O) {
2839
- var S = this, $ = !!x.u(O) || O, P = x.p(m), C = function(le, V) {
2840
- var oe = x.w(S.$u ? Date.UTC(S.$y, V, le) : new Date(S.$y, V, le), S);
2841
- return $ ? oe : oe.endOf(c);
2842
- }, I = function(le, V) {
2843
- return x.w(S.toDate()[le].apply(S.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), S);
2844
- }, H = this.$W, q = this.$M, Q = this.$D, he = "set" + (this.$u ? "UTC" : "");
2845
- switch (P) {
2846
- case v:
2847
- return $ ? C(1, 0) : C(31, 11);
2848
- case l:
2849
- return $ ? C(1, q) : C(0, q + 1);
2850
- case d:
2851
- var ce = this.$locale().weekStart || 0, Pe = (H < ce ? H + 7 : H) - ce;
2852
- return C($ ? Q - Pe : Q + (6 - Pe), q);
2853
- case c:
2854
- case y:
2855
- return I(he + "Hours", 0);
2856
- case u:
2857
- return I(he + "Minutes", 1);
2858
- case s:
2859
- return I(he + "Seconds", 2);
2860
- case a:
2861
- return I(he + "Milliseconds", 3);
2862
- default:
2863
- return this.clone();
2864
- }
2865
- }, g.endOf = function(m) {
2866
- return this.startOf(m, !1);
2867
- }, g.$set = function(m, O) {
2868
- var S, $ = x.p(m), P = "set" + (this.$u ? "UTC" : ""), C = (S = {}, S[c] = P + "Date", S[y] = P + "Date", S[l] = P + "Month", S[v] = P + "FullYear", S[u] = P + "Hours", S[s] = P + "Minutes", S[a] = P + "Seconds", S[i] = P + "Milliseconds", S)[$], I = $ === c ? this.$D + (O - this.$W) : O;
2869
- if ($ === l || $ === v) {
2870
- var H = this.clone().set(y, 1);
2871
- H.$d[C](I), H.init(), this.$d = H.set(y, Math.min(this.$D, H.daysInMonth())).$d;
2872
- } else
2873
- C && this.$d[C](I);
2874
- return this.init(), this;
2875
- }, g.set = function(m, O) {
2876
- return this.clone().$set(m, O);
2877
- }, g.get = function(m) {
2878
- return this[x.p(m)]();
2879
- }, g.add = function(m, O) {
2880
- var S, $ = this;
2881
- m = Number(m);
2882
- var P = x.p(O), C = function(q) {
2883
- var Q = F($);
2884
- return x.w(Q.date(Q.date() + Math.round(q * m)), $);
2885
- };
2886
- if (P === l)
2887
- return this.set(l, this.$M + m);
2888
- if (P === v)
2889
- return this.set(v, this.$y + m);
2890
- if (P === c)
2891
- return C(1);
2892
- if (P === d)
2893
- return C(7);
2894
- var I = (S = {}, S[s] = n, S[u] = o, S[a] = r, S)[P] || 1, H = this.$d.getTime() + m * I;
2895
- return x.w(H, this);
2896
- }, g.subtract = function(m, O) {
2897
- return this.add(-1 * m, O);
2898
- }, g.format = function(m) {
2899
- var O = this, S = this.$locale();
2900
- if (!this.isValid())
2901
- return S.invalidDate || f;
2902
- var $ = m || "YYYY-MM-DDTHH:mm:ssZ", P = x.z(this), C = this.$H, I = this.$m, H = this.$M, q = S.weekdays, Q = S.months, he = S.meridiem, ce = function(V, oe, Re, Be) {
2903
- return V && (V[oe] || V(O, $)) || Re[oe].slice(0, Be);
2904
- }, Pe = function(V) {
2905
- return x.s(C % 12 || 12, V, "0");
2906
- }, le = he || function(V, oe, Re) {
2907
- var Be = V < 12 ? "AM" : "PM";
2908
- return Re ? Be.toLowerCase() : Be;
2909
- };
2910
- return $.replace(b, function(V, oe) {
2911
- return oe || function(Re) {
2912
- switch (Re) {
2913
- case "YY":
2914
- return String(O.$y).slice(-2);
2915
- case "YYYY":
2916
- return x.s(O.$y, 4, "0");
2917
- case "M":
2918
- return H + 1;
2919
- case "MM":
2920
- return x.s(H + 1, 2, "0");
2921
- case "MMM":
2922
- return ce(S.monthsShort, H, Q, 3);
2923
- case "MMMM":
2924
- return ce(Q, H);
2925
- case "D":
2926
- return O.$D;
2927
- case "DD":
2928
- return x.s(O.$D, 2, "0");
2929
- case "d":
2930
- return String(O.$W);
2931
- case "dd":
2932
- return ce(S.weekdaysMin, O.$W, q, 2);
2933
- case "ddd":
2934
- return ce(S.weekdaysShort, O.$W, q, 3);
2935
- case "dddd":
2936
- return q[O.$W];
2937
- case "H":
2938
- return String(C);
2939
- case "HH":
2940
- return x.s(C, 2, "0");
2941
- case "h":
2942
- return Pe(1);
2943
- case "hh":
2944
- return Pe(2);
2945
- case "a":
2946
- return le(C, I, !0);
2947
- case "A":
2948
- return le(C, I, !1);
2949
- case "m":
2950
- return String(I);
2951
- case "mm":
2952
- return x.s(I, 2, "0");
2953
- case "s":
2954
- return String(O.$s);
2955
- case "ss":
2956
- return x.s(O.$s, 2, "0");
2957
- case "SSS":
2958
- return x.s(O.$ms, 3, "0");
2959
- case "Z":
2960
- return P;
2961
- }
2962
- return null;
2963
- }(V) || P.replace(":", "");
2964
- });
2965
- }, g.utcOffset = function() {
2966
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2967
- }, g.diff = function(m, O, S) {
2968
- var $, P = this, C = x.p(O), I = F(m), H = (I.utcOffset() - this.utcOffset()) * n, q = this - I, Q = function() {
2969
- return x.m(P, I);
2970
- };
2971
- switch (C) {
2972
- case v:
2973
- $ = Q() / 12;
2974
- break;
2975
- case l:
2976
- $ = Q();
2977
- break;
2978
- case h:
2979
- $ = Q() / 3;
2980
- break;
2981
- case d:
2982
- $ = (q - H) / 6048e5;
2983
- break;
2984
- case c:
2985
- $ = (q - H) / 864e5;
2986
- break;
2987
- case u:
2988
- $ = q / o;
2989
- break;
2990
- case s:
2991
- $ = q / n;
2992
- break;
2993
- case a:
2994
- $ = q / r;
2995
- break;
2996
- default:
2997
- $ = q;
2998
- }
2999
- return S ? $ : x.a($);
3000
- }, g.daysInMonth = function() {
3001
- return this.endOf(l).$D;
3002
- }, g.$locale = function() {
3003
- return U[this.$L];
3004
- }, g.locale = function(m, O) {
3005
- if (!m)
3006
- return this.$L;
3007
- var S = this.clone(), $ = L(m, O, !0);
3008
- return $ && (S.$L = $), S;
3009
- }, g.clone = function() {
3010
- return x.w(this.$d, this);
3011
- }, g.toDate = function() {
3012
- return new Date(this.valueOf());
3013
- }, g.toJSON = function() {
3014
- return this.isValid() ? this.toISOString() : null;
3015
- }, g.toISOString = function() {
3016
- return this.$d.toISOString();
3017
- }, g.toString = function() {
3018
- return this.$d.toUTCString();
3019
- }, E;
3020
- }(), Y = W.prototype;
3021
- return F.prototype = Y, [["$ms", i], ["$s", a], ["$m", s], ["$H", u], ["$W", c], ["$M", l], ["$y", v], ["$D", y]].forEach(function(E) {
3022
- Y[E[1]] = function(g) {
3023
- return this.$g(g, E[0], E[1]);
3024
- };
3025
- }), F.extend = function(E, g) {
3026
- return E.$i || (E(g, W, F), E.$i = !0), F;
3027
- }, F.locale = L, F.isDayjs = B, F.unix = function(E) {
3028
- return F(1e3 * E);
3029
- }, F.en = U[N], F.Ls = U, F.p = {}, F;
3030
- });
3031
- })(hn);
3032
- var ns = hn.exports;
3033
- const Gt = /* @__PURE__ */ it(ns);
3034
- var mn = { exports: {} };
3035
- (function(t, e) {
3036
- (function(r, n) {
3037
- t.exports = n();
3038
- })(ot, function() {
3039
- var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, o = /([+-]|\d\d)/g;
3040
- return function(i, a, s) {
3041
- var u = a.prototype;
3042
- s.utc = function(f) {
3043
- var w = { date: f, utc: !0, args: arguments };
3044
- return new a(w);
3045
- }, u.utc = function(f) {
3046
- var w = s(this.toDate(), { locale: this.$L, utc: !0 });
3047
- return f ? w.add(this.utcOffset(), r) : w;
3048
- }, u.local = function() {
3049
- return s(this.toDate(), { locale: this.$L, utc: !1 });
3050
- };
3051
- var c = u.parse;
3052
- u.parse = function(f) {
3053
- f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), c.call(this, f);
3054
- };
3055
- var d = u.init;
3056
- u.init = function() {
3057
- if (this.$u) {
3058
- var f = this.$d;
3059
- this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
3060
- } else
3061
- d.call(this);
3062
- };
3063
- var l = u.utcOffset;
3064
- u.utcOffset = function(f, w) {
3065
- var b = this.$utils().u;
3066
- if (b(f))
3067
- return this.$u ? 0 : b(this.$offset) ? l.call(this) : this.$offset;
3068
- if (typeof f == "string" && (f = function(N) {
3069
- N === void 0 && (N = "");
3070
- var U = N.match(n);
3071
- if (!U)
3072
- return null;
3073
- var M = ("" + U[0]).match(o) || ["-", 0, 0], B = M[0], L = 60 * +M[1] + +M[2];
3074
- return L === 0 ? 0 : B === "+" ? L : -L;
3075
- }(f), f === null))
3076
- return this;
3077
- var A = Math.abs(f) <= 16 ? 60 * f : f, R = this;
3078
- if (w)
3079
- return R.$offset = A, R.$u = f === 0, R;
3080
- if (f !== 0) {
3081
- var _ = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
3082
- (R = this.local().add(A + _, r)).$offset = A, R.$x.$localOffset = _;
3083
- } else
3084
- R = this.utc();
3085
- return R;
3086
- };
3087
- var h = u.format;
3088
- u.format = function(f) {
3089
- var w = f || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
3090
- return h.call(this, w);
3091
- }, u.valueOf = function() {
3092
- var f = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
3093
- return this.$d.valueOf() - 6e4 * f;
3094
- }, u.isUTC = function() {
3095
- return !!this.$u;
3096
- }, u.toISOString = function() {
3097
- return this.toDate().toISOString();
3098
- }, u.toString = function() {
3099
- return this.toDate().toUTCString();
3100
- };
3101
- var v = u.toDate;
3102
- u.toDate = function(f) {
3103
- return f === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : v.call(this);
3104
- };
3105
- var y = u.diff;
3106
- u.diff = function(f, w, b) {
3107
- if (f && this.$u === f.$u)
3108
- return y.call(this, f, w, b);
3109
- var A = this.local(), R = s(f).local();
3110
- return y.call(A, R, w, b);
3111
- };
3112
- };
3113
- });
3114
- })(mn);
3115
- var os = mn.exports;
3116
- const is = /* @__PURE__ */ it(os);
3117
- var vn = { exports: {} };
3118
- (function(t, e) {
3119
- (function(r, n) {
3120
- t.exports = n();
3121
- })(ot, function() {
3122
- var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
3123
- return function(o, i, a) {
3124
- var s, u = function(h, v, y) {
3125
- y === void 0 && (y = {});
3126
- var f = new Date(h), w = function(b, A) {
3127
- A === void 0 && (A = {});
3128
- var R = A.timeZoneName || "short", _ = b + "|" + R, N = n[_];
3129
- return N || (N = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: b, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: R }), n[_] = N), N;
3130
- }(v, y);
3131
- return w.formatToParts(f);
3132
- }, c = function(h, v) {
3133
- for (var y = u(h, v), f = [], w = 0; w < y.length; w += 1) {
3134
- var b = y[w], A = b.type, R = b.value, _ = r[A];
3135
- _ >= 0 && (f[_] = parseInt(R, 10));
3136
- }
3137
- var N = f[3], U = N === 24 ? 0 : N, M = f[0] + "-" + f[1] + "-" + f[2] + " " + U + ":" + f[4] + ":" + f[5] + ":000", B = +h;
3138
- return (a.utc(M).valueOf() - (B -= B % 1e3)) / 6e4;
3139
- }, d = i.prototype;
3140
- d.tz = function(h, v) {
3141
- h === void 0 && (h = s);
3142
- var y = this.utcOffset(), f = this.toDate(), w = f.toLocaleString("en-US", { timeZone: h }), b = Math.round((f - new Date(w)) / 1e3 / 60), A = a(w, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(f.getTimezoneOffset() / 15) - b, !0);
3143
- if (v) {
3144
- var R = A.utcOffset();
3145
- A = A.add(y - R, "minute");
3146
- }
3147
- return A.$x.$timezone = h, A;
3148
- }, d.offsetName = function(h) {
3149
- var v = this.$x.$timezone || a.tz.guess(), y = u(this.valueOf(), v, { timeZoneName: h }).find(function(f) {
3150
- return f.type.toLowerCase() === "timezonename";
3151
- });
3152
- return y && y.value;
3153
- };
3154
- var l = d.startOf;
3155
- d.startOf = function(h, v) {
3156
- if (!this.$x || !this.$x.$timezone)
3157
- return l.call(this, h, v);
3158
- var y = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
3159
- return l.call(y, h, v).tz(this.$x.$timezone, !0);
3160
- }, a.tz = function(h, v, y) {
3161
- var f = y && v, w = y || v || s, b = c(+a(), w);
3162
- if (typeof h != "string")
3163
- return a(h).tz(w);
3164
- var A = function(U, M, B) {
3165
- var L = U - 60 * M * 1e3, F = c(L, B);
3166
- if (M === F)
3167
- return [L, M];
3168
- var x = c(L -= 60 * (F - M) * 1e3, B);
3169
- return F === x ? [L, F] : [U - 60 * Math.min(F, x) * 1e3, Math.max(F, x)];
3170
- }(a.utc(h, f).valueOf(), b, w), R = A[0], _ = A[1], N = a(R).utcOffset(_);
3171
- return N.$x.$timezone = w, N;
3172
- }, a.tz.guess = function() {
3173
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
3174
- }, a.tz.setDefault = function(h) {
3175
- s = h;
3176
- };
3177
- };
3178
- });
3179
- })(vn);
3180
- var as = vn.exports;
3181
- const ss = /* @__PURE__ */ it(as);
3182
- Gt.extend(is);
3183
- Gt.extend(ss);
3184
- const us = xr(), gn = us.sso ?? !0, cs = async (t) => {
3185
- var r;
3186
- return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
3187
- }, ls = async (t, e) => {
3188
- var u, c, d, l, h;
3189
- let r = ((u = t.response) == null ? void 0 : u.status) || 500, n = (c = t.response) == null ? void 0 : c.message, o = {};
3190
- const i = { 400: "参数校验错误", 404: "接口地址未找到", 500: "服务器内部错误" };
3191
- let a = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
3192
- if (!(On("code") || "") && !(e != null && e.noRedireLogin) && (r === 401 || (a == null ? void 0 : a.code) === 401)) {
3193
- if (gn)
3194
- En({ ...An, redirect_uri: $n });
3195
- else {
3196
- const v = sessionStorage.getItem("appConfig"), y = JSON.parse(v || "{}");
3197
- if (!(y != null && y.appName) || y.appName === "enterpriseadmin")
3198
- return;
3199
- const f = "/login";
3200
- if (location.pathname === f)
3201
- return;
3202
- sessionStorage.clear(), sessionStorage.setItem("appConfig", v), location.replace(f);
3203
- }
3204
- o = a;
3205
- } else
3206
- t.response ? (a instanceof Blob && (a = await new Promise((v) => {
3207
- const y = new FileReader();
3208
- y.readAsText(a, "utf-8"), y.onload = () => {
3209
- try {
3210
- v(JSON.parse(y.result || "{}"));
3211
- } catch {
3212
- v({ code: 400, msg: "blob解析错误" });
3213
- }
3214
- };
3215
- })), a.code && (r = a.code, n = a.msg || a.message, o = a), n || (n = i[t.response.status] || t.message)) : t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (n = t.abortReason) : n = "网络异常,请检查您的网络情况" : t.code === "ERR_CANCELED" ? t.abortReason && (n = t.abortReason) : n = "请求配置异常", e != null && e.customErrorMessage && (n = e == null ? void 0 : e.customErrorMessage(n, t)), !(e != null && e.ignoreErrorMessage) && n && ((h = (l = bn) == null ? void 0 : l.error) == null || h.call(l, { message: n, showClose: !0 }));
3216
- return { ...o, code: r, msg: n, error: t };
3217
- }, vs = (t, e) => {
3218
- const r = k.create();
3219
- return Sn(r, async (n) => {
3220
- const o = xr();
3221
- if (n.headers || (n.headers = {}), !(n != null && n.public)) {
3222
- let u = "";
3223
- if (o.token && (u = o.token), u || (u = Rn()), !u) {
3224
- const c = new URL(location.href).searchParams;
3225
- u = c.get("token") || c.get("accessToken") || c.get("accesstoken") || "";
3226
- }
3227
- !u && gn && (u = await wn(n)), u && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${u}`);
3228
- }
3229
- n.baseURL || (n.baseURL = o.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (u) => es.stringify(u, { indices: !1 }) }), n.onSuccess || (n.onSuccess = cs), n.onError || (n.onError = ls), (n.csrf ?? !1) && (n.headers["csrf-token"] = rs.get("csrf-token"));
3230
- const a = n.params || {}, { id: s } = Pn();
3231
- return !(a != null && a.project) && s && (a.project = s), n.params = a, n.headers.Timezone = Gt.tz.guess(), (e == null ? void 0 : e(n)) || n;
3232
- });
3233
- };
1
+ import { createService as c } from "@das-fed/utils/create-api-service";
3234
2
  export {
3235
- vs as createService
3
+ c as createService
3236
4
  };