@jctrans-materials/shared 1.0.0

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.
@@ -0,0 +1,2356 @@
1
+ import kt from "mitt";
2
+ function Ze(e, t) {
3
+ return function() {
4
+ return e.apply(t, arguments);
5
+ };
6
+ }
7
+ const { toString: Ut } = Object.prototype, { getPrototypeOf: Te } = Object, { iterator: ue, toStringTag: et } = Symbol, le = /* @__PURE__ */ ((e) => (t) => {
8
+ const n = Ut.call(t);
9
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
10
+ })(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => le(t) === e), de = (e) => (t) => typeof t === e, { isArray: V } = Array, J = de("undefined");
11
+ function Q(e) {
12
+ return e !== null && !J(e) && e.constructor !== null && !J(e.constructor) && O(e.constructor.isBuffer) && e.constructor.isBuffer(e);
13
+ }
14
+ const tt = B("ArrayBuffer");
15
+ function Dt(e) {
16
+ let t;
17
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && tt(e.buffer), t;
18
+ }
19
+ const vt = de("string"), O = de("function"), nt = de("number"), Y = (e) => e !== null && typeof e == "object", zt = (e) => e === !0 || e === !1, oe = (e) => {
20
+ if (le(e) !== "object")
21
+ return !1;
22
+ const t = Te(e);
23
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(et in e) && !(ue in e);
24
+ }, qt = (e) => {
25
+ if (!Y(e) || Q(e))
26
+ return !1;
27
+ try {
28
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
29
+ } catch {
30
+ return !1;
31
+ }
32
+ }, jt = B("Date"), $t = B("File"), Mt = B("Blob"), Ht = B("FileList"), Jt = (e) => Y(e) && O(e.pipe), Vt = (e) => {
33
+ let t;
34
+ return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((t = le(e)) === "formdata" || // detect form-data instance
35
+ t === "object" && O(e.toString) && e.toString() === "[object FormData]"));
36
+ }, Wt = B("URLSearchParams"), [Kt, Xt, Gt, Qt] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
+ function Z(e, t, { allOwnKeys: n = !1 } = {}) {
38
+ if (e === null || typeof e > "u")
39
+ return;
40
+ let r, s;
41
+ if (typeof e != "object" && (e = [e]), V(e))
42
+ for (r = 0, s = e.length; r < s; r++)
43
+ t.call(null, e[r], r, e);
44
+ else {
45
+ if (Q(e))
46
+ return;
47
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
48
+ let c;
49
+ for (r = 0; r < i; r++)
50
+ c = o[r], t.call(null, e[c], c, e);
51
+ }
52
+ }
53
+ function rt(e, t) {
54
+ if (Q(e))
55
+ return null;
56
+ t = t.toLowerCase();
57
+ const n = Object.keys(e);
58
+ let r = n.length, s;
59
+ for (; r-- > 0; )
60
+ if (s = n[r], t === s.toLowerCase())
61
+ return s;
62
+ return null;
63
+ }
64
+ const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, st = (e) => !J(e) && e !== q;
65
+ function Ee() {
66
+ const { caseless: e, skipUndefined: t } = st(this) && this || {}, n = {}, r = (s, o) => {
67
+ const i = e && rt(n, o) || o;
68
+ oe(n[i]) && oe(s) ? n[i] = Ee(n[i], s) : oe(s) ? n[i] = Ee({}, s) : V(s) ? n[i] = s.slice() : (!t || !J(s)) && (n[i] = s);
69
+ };
70
+ for (let s = 0, o = arguments.length; s < o; s++)
71
+ arguments[s] && Z(arguments[s], r);
72
+ return n;
73
+ }
74
+ const Zt = (e, t, n, { allOwnKeys: r } = {}) => (Z(t, (s, o) => {
75
+ n && O(s) ? e[o] = Ze(s, n) : e[o] = s;
76
+ }, { allOwnKeys: r }), e), en = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), tn = (e, t, n, r) => {
77
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
78
+ value: t.prototype
79
+ }), n && Object.assign(e.prototype, n);
80
+ }, nn = (e, t, n, r) => {
81
+ let s, o, i;
82
+ const c = {};
83
+ if (t = t || {}, e == null) return t;
84
+ do {
85
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
86
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
87
+ e = n !== !1 && Te(e);
88
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
89
+ return t;
90
+ }, rn = (e, t, n) => {
91
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
92
+ const r = e.indexOf(t, n);
93
+ return r !== -1 && r === n;
94
+ }, sn = (e) => {
95
+ if (!e) return null;
96
+ if (V(e)) return e;
97
+ let t = e.length;
98
+ if (!nt(t)) return null;
99
+ const n = new Array(t);
100
+ for (; t-- > 0; )
101
+ n[t] = e[t];
102
+ return n;
103
+ }, on = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Te(Uint8Array)), an = (e, t) => {
104
+ const r = (e && e[ue]).call(e);
105
+ let s;
106
+ for (; (s = r.next()) && !s.done; ) {
107
+ const o = s.value;
108
+ t.call(e, o[0], o[1]);
109
+ }
110
+ }, cn = (e, t) => {
111
+ let n;
112
+ const r = [];
113
+ for (; (n = e.exec(t)) !== null; )
114
+ r.push(n);
115
+ return r;
116
+ }, un = B("HTMLFormElement"), ln = (e) => e.toLowerCase().replace(
117
+ /[-_\s]([a-z\d])(\w*)/g,
118
+ function(n, r, s) {
119
+ return r.toUpperCase() + s;
120
+ }
121
+ ), De = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), dn = B("RegExp"), ot = (e, t) => {
122
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
123
+ Z(n, (s, o) => {
124
+ let i;
125
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
126
+ }), Object.defineProperties(e, r);
127
+ }, fn = (e) => {
128
+ ot(e, (t, n) => {
129
+ if (O(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
130
+ return !1;
131
+ const r = e[n];
132
+ if (O(r)) {
133
+ if (t.enumerable = !1, "writable" in t) {
134
+ t.writable = !1;
135
+ return;
136
+ }
137
+ t.set || (t.set = () => {
138
+ throw Error("Can not rewrite read-only method '" + n + "'");
139
+ });
140
+ }
141
+ });
142
+ }, pn = (e, t) => {
143
+ const n = {}, r = (s) => {
144
+ s.forEach((o) => {
145
+ n[o] = !0;
146
+ });
147
+ };
148
+ return V(e) ? r(e) : r(String(e).split(t)), n;
149
+ }, yn = () => {
150
+ }, hn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
151
+ function mn(e) {
152
+ return !!(e && O(e.append) && e[et] === "FormData" && e[ue]);
153
+ }
154
+ const wn = (e) => {
155
+ const t = new Array(10), n = (r, s) => {
156
+ if (Y(r)) {
157
+ if (t.indexOf(r) >= 0)
158
+ return;
159
+ if (Q(r))
160
+ return r;
161
+ if (!("toJSON" in r)) {
162
+ t[s] = r;
163
+ const o = V(r) ? [] : {};
164
+ return Z(r, (i, c) => {
165
+ const f = n(i, s + 1);
166
+ !J(f) && (o[c] = f);
167
+ }), t[s] = void 0, o;
168
+ }
169
+ }
170
+ return r;
171
+ };
172
+ return n(e, 0);
173
+ }, gn = B("AsyncFunction"), bn = (e) => e && (Y(e) || O(e)) && O(e.then) && O(e.catch), it = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
174
+ s === q && o === n && r.length && r.shift()();
175
+ }, !1), (s) => {
176
+ r.push(s), q.postMessage(n, "*");
177
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
178
+ typeof setImmediate == "function",
179
+ O(q.postMessage)
180
+ ), En = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || it, Sn = (e) => e != null && O(e[ue]), a = {
181
+ isArray: V,
182
+ isArrayBuffer: tt,
183
+ isBuffer: Q,
184
+ isFormData: Vt,
185
+ isArrayBufferView: Dt,
186
+ isString: vt,
187
+ isNumber: nt,
188
+ isBoolean: zt,
189
+ isObject: Y,
190
+ isPlainObject: oe,
191
+ isEmptyObject: qt,
192
+ isReadableStream: Kt,
193
+ isRequest: Xt,
194
+ isResponse: Gt,
195
+ isHeaders: Qt,
196
+ isUndefined: J,
197
+ isDate: jt,
198
+ isFile: $t,
199
+ isBlob: Mt,
200
+ isRegExp: dn,
201
+ isFunction: O,
202
+ isStream: Jt,
203
+ isURLSearchParams: Wt,
204
+ isTypedArray: on,
205
+ isFileList: Ht,
206
+ forEach: Z,
207
+ merge: Ee,
208
+ extend: Zt,
209
+ trim: Yt,
210
+ stripBOM: en,
211
+ inherits: tn,
212
+ toFlatObject: nn,
213
+ kindOf: le,
214
+ kindOfTest: B,
215
+ endsWith: rn,
216
+ toArray: sn,
217
+ forEachEntry: an,
218
+ matchAll: cn,
219
+ isHTMLForm: un,
220
+ hasOwnProperty: De,
221
+ hasOwnProp: De,
222
+ // an alias to avoid ESLint no-prototype-builtins detection
223
+ reduceDescriptors: ot,
224
+ freezeMethods: fn,
225
+ toObjectSet: pn,
226
+ toCamelCase: ln,
227
+ noop: yn,
228
+ toFiniteNumber: hn,
229
+ findKey: rt,
230
+ global: q,
231
+ isContextDefined: st,
232
+ isSpecCompliantForm: mn,
233
+ toJSONObject: wn,
234
+ isAsyncFn: gn,
235
+ isThenable: bn,
236
+ setImmediate: it,
237
+ asap: En,
238
+ isIterable: Sn
239
+ };
240
+ function m(e, t, n, r, s) {
241
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
242
+ }
243
+ a.inherits(m, Error, {
244
+ toJSON: function() {
245
+ return {
246
+ // Standard
247
+ message: this.message,
248
+ name: this.name,
249
+ // Microsoft
250
+ description: this.description,
251
+ number: this.number,
252
+ // Mozilla
253
+ fileName: this.fileName,
254
+ lineNumber: this.lineNumber,
255
+ columnNumber: this.columnNumber,
256
+ stack: this.stack,
257
+ // Axios
258
+ config: a.toJSONObject(this.config),
259
+ code: this.code,
260
+ status: this.status
261
+ };
262
+ }
263
+ });
264
+ const at = m.prototype, ct = {};
265
+ [
266
+ "ERR_BAD_OPTION_VALUE",
267
+ "ERR_BAD_OPTION",
268
+ "ECONNABORTED",
269
+ "ETIMEDOUT",
270
+ "ERR_NETWORK",
271
+ "ERR_FR_TOO_MANY_REDIRECTS",
272
+ "ERR_DEPRECATED",
273
+ "ERR_BAD_RESPONSE",
274
+ "ERR_BAD_REQUEST",
275
+ "ERR_CANCELED",
276
+ "ERR_NOT_SUPPORT",
277
+ "ERR_INVALID_URL"
278
+ // eslint-disable-next-line func-names
279
+ ].forEach((e) => {
280
+ ct[e] = { value: e };
281
+ });
282
+ Object.defineProperties(m, ct);
283
+ Object.defineProperty(at, "isAxiosError", { value: !0 });
284
+ m.from = (e, t, n, r, s, o) => {
285
+ const i = Object.create(at);
286
+ a.toFlatObject(e, i, function(l) {
287
+ return l !== Error.prototype;
288
+ }, (u) => u !== "isAxiosError");
289
+ const c = e && e.message ? e.message : "Error", f = t == null && e ? e.code : t;
290
+ return m.call(i, c, f, n, r, s), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", o && Object.assign(i, o), i;
291
+ };
292
+ const Cn = null;
293
+ function Se(e) {
294
+ return a.isPlainObject(e) || a.isArray(e);
295
+ }
296
+ function ut(e) {
297
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
+ }
299
+ function ve(e, t, n) {
300
+ return e ? e.concat(t).map(function(s, o) {
301
+ return s = ut(s), !n && o ? "[" + s + "]" : s;
302
+ }).join(n ? "." : "") : t;
303
+ }
304
+ function An(e) {
305
+ return a.isArray(e) && !e.some(Se);
306
+ }
307
+ const Rn = a.toFlatObject(a, {}, null, function(t) {
308
+ return /^is[A-Z]/.test(t);
309
+ });
310
+ function fe(e, t, n) {
311
+ if (!a.isObject(e))
312
+ throw new TypeError("target must be an object");
313
+ t = t || new FormData(), n = a.toFlatObject(n, {
314
+ metaTokens: !0,
315
+ dots: !1,
316
+ indexes: !1
317
+ }, !1, function(h, y) {
318
+ return !a.isUndefined(y[h]);
319
+ });
320
+ const r = n.metaTokens, s = n.visitor || l, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
321
+ if (!a.isFunction(s))
322
+ throw new TypeError("visitor must be a function");
323
+ function u(d) {
324
+ if (d === null) return "";
325
+ if (a.isDate(d))
326
+ return d.toISOString();
327
+ if (a.isBoolean(d))
328
+ return d.toString();
329
+ if (!f && a.isBlob(d))
330
+ throw new m("Blob is not supported. Use a Buffer instead.");
331
+ return a.isArrayBuffer(d) || a.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
332
+ }
333
+ function l(d, h, y) {
334
+ let b = d;
335
+ if (d && !y && typeof d == "object") {
336
+ if (a.endsWith(h, "{}"))
337
+ h = r ? h : h.slice(0, -2), d = JSON.stringify(d);
338
+ else if (a.isArray(d) && An(d) || (a.isFileList(d) || a.endsWith(h, "[]")) && (b = a.toArray(d)))
339
+ return h = ut(h), b.forEach(function(E, R) {
340
+ !(a.isUndefined(E) || E === null) && t.append(
341
+ // eslint-disable-next-line no-nested-ternary
342
+ i === !0 ? ve([h], R, o) : i === null ? h : h + "[]",
343
+ u(E)
344
+ );
345
+ }), !1;
346
+ }
347
+ return Se(d) ? !0 : (t.append(ve(y, h, o), u(d)), !1);
348
+ }
349
+ const p = [], w = Object.assign(Rn, {
350
+ defaultVisitor: l,
351
+ convertValue: u,
352
+ isVisitable: Se
353
+ });
354
+ function S(d, h) {
355
+ if (!a.isUndefined(d)) {
356
+ if (p.indexOf(d) !== -1)
357
+ throw Error("Circular reference detected in " + h.join("."));
358
+ p.push(d), a.forEach(d, function(b, T) {
359
+ (!(a.isUndefined(b) || b === null) && s.call(
360
+ t,
361
+ b,
362
+ a.isString(T) ? T.trim() : T,
363
+ h,
364
+ w
365
+ )) === !0 && S(b, h ? h.concat(T) : [T]);
366
+ }), p.pop();
367
+ }
368
+ }
369
+ if (!a.isObject(e))
370
+ throw new TypeError("data must be an object");
371
+ return S(e), t;
372
+ }
373
+ function ze(e) {
374
+ const t = {
375
+ "!": "%21",
376
+ "'": "%27",
377
+ "(": "%28",
378
+ ")": "%29",
379
+ "~": "%7E",
380
+ "%20": "+",
381
+ "%00": "\0"
382
+ };
383
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
384
+ return t[r];
385
+ });
386
+ }
387
+ function Ne(e, t) {
388
+ this._pairs = [], e && fe(e, this, t);
389
+ }
390
+ const lt = Ne.prototype;
391
+ lt.append = function(t, n) {
392
+ this._pairs.push([t, n]);
393
+ };
394
+ lt.toString = function(t) {
395
+ const n = t ? function(r) {
396
+ return t.call(this, r, ze);
397
+ } : ze;
398
+ return this._pairs.map(function(s) {
399
+ return n(s[0]) + "=" + n(s[1]);
400
+ }, "").join("&");
401
+ };
402
+ function On(e) {
403
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
404
+ }
405
+ function dt(e, t, n) {
406
+ if (!t)
407
+ return e;
408
+ const r = n && n.encode || On;
409
+ a.isFunction(n) && (n = {
410
+ serialize: n
411
+ });
412
+ const s = n && n.serialize;
413
+ let o;
414
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new Ne(t, n).toString(r), o) {
415
+ const i = e.indexOf("#");
416
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
417
+ }
418
+ return e;
419
+ }
420
+ class qe {
421
+ constructor() {
422
+ this.handlers = [];
423
+ }
424
+ /**
425
+ * Add a new interceptor to the stack
426
+ *
427
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
428
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
429
+ *
430
+ * @return {Number} An ID used to remove interceptor later
431
+ */
432
+ use(t, n, r) {
433
+ return this.handlers.push({
434
+ fulfilled: t,
435
+ rejected: n,
436
+ synchronous: r ? r.synchronous : !1,
437
+ runWhen: r ? r.runWhen : null
438
+ }), this.handlers.length - 1;
439
+ }
440
+ /**
441
+ * Remove an interceptor from the stack
442
+ *
443
+ * @param {Number} id The ID that was returned by `use`
444
+ *
445
+ * @returns {void}
446
+ */
447
+ eject(t) {
448
+ this.handlers[t] && (this.handlers[t] = null);
449
+ }
450
+ /**
451
+ * Clear all interceptors from the stack
452
+ *
453
+ * @returns {void}
454
+ */
455
+ clear() {
456
+ this.handlers && (this.handlers = []);
457
+ }
458
+ /**
459
+ * Iterate over all the registered interceptors
460
+ *
461
+ * This method is particularly useful for skipping over any
462
+ * interceptors that may have become `null` calling `eject`.
463
+ *
464
+ * @param {Function} fn The function to call for each interceptor
465
+ *
466
+ * @returns {void}
467
+ */
468
+ forEach(t) {
469
+ a.forEach(this.handlers, function(r) {
470
+ r !== null && t(r);
471
+ });
472
+ }
473
+ }
474
+ const ft = {
475
+ silentJSONParsing: !0,
476
+ forcedJSONParsing: !0,
477
+ clarifyTimeoutError: !1
478
+ }, In = typeof URLSearchParams < "u" ? URLSearchParams : Ne, Tn = typeof FormData < "u" ? FormData : null, Nn = typeof Blob < "u" ? Blob : null, xn = {
479
+ isBrowser: !0,
480
+ classes: {
481
+ URLSearchParams: In,
482
+ FormData: Tn,
483
+ Blob: Nn
484
+ },
485
+ protocols: ["http", "https", "file", "blob", "url", "data"]
486
+ }, xe = typeof window < "u" && typeof document < "u", Ce = typeof navigator == "object" && navigator || void 0, Bn = xe && (!Ce || ["ReactNative", "NativeScript", "NS"].indexOf(Ce.product) < 0), Pn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ln = xe && window.location.href || "http://localhost", Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
+ __proto__: null,
489
+ hasBrowserEnv: xe,
490
+ hasStandardBrowserEnv: Bn,
491
+ hasStandardBrowserWebWorkerEnv: Pn,
492
+ navigator: Ce,
493
+ origin: Ln
494
+ }, Symbol.toStringTag, { value: "Module" })), C = {
495
+ ...Fn,
496
+ ...xn
497
+ };
498
+ function _n(e, t) {
499
+ return fe(e, new C.classes.URLSearchParams(), {
500
+ visitor: function(n, r, s, o) {
501
+ return C.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
502
+ },
503
+ ...t
504
+ });
505
+ }
506
+ function kn(e) {
507
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
508
+ }
509
+ function Un(e) {
510
+ const t = {}, n = Object.keys(e);
511
+ let r;
512
+ const s = n.length;
513
+ let o;
514
+ for (r = 0; r < s; r++)
515
+ o = n[r], t[o] = e[o];
516
+ return t;
517
+ }
518
+ function pt(e) {
519
+ function t(n, r, s, o) {
520
+ let i = n[o++];
521
+ if (i === "__proto__") return !0;
522
+ const c = Number.isFinite(+i), f = o >= n.length;
523
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = Un(s[i])), !c);
524
+ }
525
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
526
+ const n = {};
527
+ return a.forEachEntry(e, (r, s) => {
528
+ t(kn(r), s, n, 0);
529
+ }), n;
530
+ }
531
+ return null;
532
+ }
533
+ function Dn(e, t, n) {
534
+ if (a.isString(e))
535
+ try {
536
+ return (t || JSON.parse)(e), a.trim(e);
537
+ } catch (r) {
538
+ if (r.name !== "SyntaxError")
539
+ throw r;
540
+ }
541
+ return (n || JSON.stringify)(e);
542
+ }
543
+ const ee = {
544
+ transitional: ft,
545
+ adapter: ["xhr", "http", "fetch"],
546
+ transformRequest: [function(t, n) {
547
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
548
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
549
+ return s ? JSON.stringify(pt(t)) : t;
550
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
551
+ return t;
552
+ if (a.isArrayBufferView(t))
553
+ return t.buffer;
554
+ if (a.isURLSearchParams(t))
555
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
556
+ let c;
557
+ if (o) {
558
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
559
+ return _n(t, this.formSerializer).toString();
560
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
561
+ const f = this.env && this.env.FormData;
562
+ return fe(
563
+ c ? { "files[]": t } : t,
564
+ f && new f(),
565
+ this.formSerializer
566
+ );
567
+ }
568
+ }
569
+ return o || s ? (n.setContentType("application/json", !1), Dn(t)) : t;
570
+ }],
571
+ transformResponse: [function(t) {
572
+ const n = this.transitional || ee.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
573
+ if (a.isResponse(t) || a.isReadableStream(t))
574
+ return t;
575
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
576
+ const i = !(n && n.silentJSONParsing) && s;
577
+ try {
578
+ return JSON.parse(t, this.parseReviver);
579
+ } catch (c) {
580
+ if (i)
581
+ throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
582
+ }
583
+ }
584
+ return t;
585
+ }],
586
+ /**
587
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
588
+ * timeout is not created.
589
+ */
590
+ timeout: 0,
591
+ xsrfCookieName: "XSRF-TOKEN",
592
+ xsrfHeaderName: "X-XSRF-TOKEN",
593
+ maxContentLength: -1,
594
+ maxBodyLength: -1,
595
+ env: {
596
+ FormData: C.classes.FormData,
597
+ Blob: C.classes.Blob
598
+ },
599
+ validateStatus: function(t) {
600
+ return t >= 200 && t < 300;
601
+ },
602
+ headers: {
603
+ common: {
604
+ Accept: "application/json, text/plain, */*",
605
+ "Content-Type": void 0
606
+ }
607
+ }
608
+ };
609
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
+ ee.headers[e] = {};
611
+ });
612
+ const vn = a.toObjectSet([
613
+ "age",
614
+ "authorization",
615
+ "content-length",
616
+ "content-type",
617
+ "etag",
618
+ "expires",
619
+ "from",
620
+ "host",
621
+ "if-modified-since",
622
+ "if-unmodified-since",
623
+ "last-modified",
624
+ "location",
625
+ "max-forwards",
626
+ "proxy-authorization",
627
+ "referer",
628
+ "retry-after",
629
+ "user-agent"
630
+ ]), zn = (e) => {
631
+ const t = {};
632
+ let n, r, s;
633
+ return e && e.split(`
634
+ `).forEach(function(i) {
635
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && vn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
636
+ }), t;
637
+ }, je = /* @__PURE__ */ Symbol("internals");
638
+ function X(e) {
639
+ return e && String(e).trim().toLowerCase();
640
+ }
641
+ function ie(e) {
642
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(ie) : String(e);
643
+ }
644
+ function qn(e) {
645
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
+ let r;
647
+ for (; r = n.exec(e); )
648
+ t[r[1]] = r[2];
649
+ return t;
650
+ }
651
+ const jn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
+ function we(e, t, n, r, s) {
653
+ if (a.isFunction(r))
654
+ return r.call(this, t, n);
655
+ if (s && (t = n), !!a.isString(t)) {
656
+ if (a.isString(r))
657
+ return t.indexOf(r) !== -1;
658
+ if (a.isRegExp(r))
659
+ return r.test(t);
660
+ }
661
+ }
662
+ function $n(e) {
663
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
664
+ }
665
+ function Mn(e, t) {
666
+ const n = a.toCamelCase(" " + t);
667
+ ["get", "set", "has"].forEach((r) => {
668
+ Object.defineProperty(e, r + n, {
669
+ value: function(s, o, i) {
670
+ return this[r].call(this, t, s, o, i);
671
+ },
672
+ configurable: !0
673
+ });
674
+ });
675
+ }
676
+ let I = class {
677
+ constructor(t) {
678
+ t && this.set(t);
679
+ }
680
+ set(t, n, r) {
681
+ const s = this;
682
+ function o(c, f, u) {
683
+ const l = X(f);
684
+ if (!l)
685
+ throw new Error("header name must be a non-empty string");
686
+ const p = a.findKey(s, l);
687
+ (!p || s[p] === void 0 || u === !0 || u === void 0 && s[p] !== !1) && (s[p || f] = ie(c));
688
+ }
689
+ const i = (c, f) => a.forEach(c, (u, l) => o(u, l, f));
690
+ if (a.isPlainObject(t) || t instanceof this.constructor)
691
+ i(t, n);
692
+ else if (a.isString(t) && (t = t.trim()) && !jn(t))
693
+ i(zn(t), n);
694
+ else if (a.isObject(t) && a.isIterable(t)) {
695
+ let c = {}, f, u;
696
+ for (const l of t) {
697
+ if (!a.isArray(l))
698
+ throw TypeError("Object iterator must return a key-value pair");
699
+ c[u = l[0]] = (f = c[u]) ? a.isArray(f) ? [...f, l[1]] : [f, l[1]] : l[1];
700
+ }
701
+ i(c, n);
702
+ } else
703
+ t != null && o(n, t, r);
704
+ return this;
705
+ }
706
+ get(t, n) {
707
+ if (t = X(t), t) {
708
+ const r = a.findKey(this, t);
709
+ if (r) {
710
+ const s = this[r];
711
+ if (!n)
712
+ return s;
713
+ if (n === !0)
714
+ return qn(s);
715
+ if (a.isFunction(n))
716
+ return n.call(this, s, r);
717
+ if (a.isRegExp(n))
718
+ return n.exec(s);
719
+ throw new TypeError("parser must be boolean|regexp|function");
720
+ }
721
+ }
722
+ }
723
+ has(t, n) {
724
+ if (t = X(t), t) {
725
+ const r = a.findKey(this, t);
726
+ return !!(r && this[r] !== void 0 && (!n || we(this, this[r], r, n)));
727
+ }
728
+ return !1;
729
+ }
730
+ delete(t, n) {
731
+ const r = this;
732
+ let s = !1;
733
+ function o(i) {
734
+ if (i = X(i), i) {
735
+ const c = a.findKey(r, i);
736
+ c && (!n || we(r, r[c], c, n)) && (delete r[c], s = !0);
737
+ }
738
+ }
739
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
740
+ }
741
+ clear(t) {
742
+ const n = Object.keys(this);
743
+ let r = n.length, s = !1;
744
+ for (; r--; ) {
745
+ const o = n[r];
746
+ (!t || we(this, this[o], o, t, !0)) && (delete this[o], s = !0);
747
+ }
748
+ return s;
749
+ }
750
+ normalize(t) {
751
+ const n = this, r = {};
752
+ return a.forEach(this, (s, o) => {
753
+ const i = a.findKey(r, o);
754
+ if (i) {
755
+ n[i] = ie(s), delete n[o];
756
+ return;
757
+ }
758
+ const c = t ? $n(o) : String(o).trim();
759
+ c !== o && delete n[o], n[c] = ie(s), r[c] = !0;
760
+ }), this;
761
+ }
762
+ concat(...t) {
763
+ return this.constructor.concat(this, ...t);
764
+ }
765
+ toJSON(t) {
766
+ const n = /* @__PURE__ */ Object.create(null);
767
+ return a.forEach(this, (r, s) => {
768
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
769
+ }), n;
770
+ }
771
+ [Symbol.iterator]() {
772
+ return Object.entries(this.toJSON())[Symbol.iterator]();
773
+ }
774
+ toString() {
775
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
776
+ `);
777
+ }
778
+ getSetCookie() {
779
+ return this.get("set-cookie") || [];
780
+ }
781
+ get [Symbol.toStringTag]() {
782
+ return "AxiosHeaders";
783
+ }
784
+ static from(t) {
785
+ return t instanceof this ? t : new this(t);
786
+ }
787
+ static concat(t, ...n) {
788
+ const r = new this(t);
789
+ return n.forEach((s) => r.set(s)), r;
790
+ }
791
+ static accessor(t) {
792
+ const r = (this[je] = this[je] = {
793
+ accessors: {}
794
+ }).accessors, s = this.prototype;
795
+ function o(i) {
796
+ const c = X(i);
797
+ r[c] || (Mn(s, i), r[c] = !0);
798
+ }
799
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
800
+ }
801
+ };
802
+ I.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
+ a.reduceDescriptors(I.prototype, ({ value: e }, t) => {
804
+ let n = t[0].toUpperCase() + t.slice(1);
805
+ return {
806
+ get: () => e,
807
+ set(r) {
808
+ this[n] = r;
809
+ }
810
+ };
811
+ });
812
+ a.freezeMethods(I);
813
+ function ge(e, t) {
814
+ const n = this || ee, r = t || n, s = I.from(r.headers);
815
+ let o = r.data;
816
+ return a.forEach(e, function(c) {
817
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
818
+ }), s.normalize(), o;
819
+ }
820
+ function yt(e) {
821
+ return !!(e && e.__CANCEL__);
822
+ }
823
+ function W(e, t, n) {
824
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
825
+ }
826
+ a.inherits(W, m, {
827
+ __CANCEL__: !0
828
+ });
829
+ function ht(e, t, n) {
830
+ const r = n.config.validateStatus;
831
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
832
+ "Request failed with status code " + n.status,
833
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
834
+ n.config,
835
+ n.request,
836
+ n
837
+ ));
838
+ }
839
+ function Hn(e) {
840
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
841
+ return t && t[1] || "";
842
+ }
843
+ function Jn(e, t) {
844
+ e = e || 10;
845
+ const n = new Array(e), r = new Array(e);
846
+ let s = 0, o = 0, i;
847
+ return t = t !== void 0 ? t : 1e3, function(f) {
848
+ const u = Date.now(), l = r[o];
849
+ i || (i = u), n[s] = f, r[s] = u;
850
+ let p = o, w = 0;
851
+ for (; p !== s; )
852
+ w += n[p++], p = p % e;
853
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), u - i < t)
854
+ return;
855
+ const S = l && u - l;
856
+ return S ? Math.round(w * 1e3 / S) : void 0;
857
+ };
858
+ }
859
+ function Vn(e, t) {
860
+ let n = 0, r = 1e3 / t, s, o;
861
+ const i = (u, l = Date.now()) => {
862
+ n = l, s = null, o && (clearTimeout(o), o = null), e(...u);
863
+ };
864
+ return [(...u) => {
865
+ const l = Date.now(), p = l - n;
866
+ p >= r ? i(u, l) : (s = u, o || (o = setTimeout(() => {
867
+ o = null, i(s);
868
+ }, r - p)));
869
+ }, () => s && i(s)];
870
+ }
871
+ const ce = (e, t, n = 3) => {
872
+ let r = 0;
873
+ const s = Jn(50, 250);
874
+ return Vn((o) => {
875
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, u = s(f), l = i <= c;
876
+ r = i;
877
+ const p = {
878
+ loaded: i,
879
+ total: c,
880
+ progress: c ? i / c : void 0,
881
+ bytes: f,
882
+ rate: u || void 0,
883
+ estimated: u && c && l ? (c - i) / u : void 0,
884
+ event: o,
885
+ lengthComputable: c != null,
886
+ [t ? "download" : "upload"]: !0
887
+ };
888
+ e(p);
889
+ }, n);
890
+ }, $e = (e, t) => {
891
+ const n = e != null;
892
+ return [(r) => t[0]({
893
+ lengthComputable: n,
894
+ total: e,
895
+ loaded: r
896
+ }), t[1]];
897
+ }, Me = (e) => (...t) => a.asap(() => e(...t)), Wn = C.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, C.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
+ new URL(C.origin),
899
+ C.navigator && /(msie|trident)/i.test(C.navigator.userAgent)
900
+ ) : () => !0, Kn = C.hasStandardBrowserEnv ? (
901
+ // Standard browser envs support document.cookie
902
+ {
903
+ write(e, t, n, r, s, o, i) {
904
+ if (typeof document > "u") return;
905
+ const c = [`${e}=${encodeURIComponent(t)}`];
906
+ a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), o === !0 && c.push("secure"), a.isString(i) && c.push(`SameSite=${i}`), document.cookie = c.join("; ");
907
+ },
908
+ read(e) {
909
+ if (typeof document > "u") return null;
910
+ const t = document.cookie.match(new RegExp("(?:^|; )" + e + "=([^;]*)"));
911
+ return t ? decodeURIComponent(t[1]) : null;
912
+ },
913
+ remove(e) {
914
+ this.write(e, "", Date.now() - 864e5, "/");
915
+ }
916
+ }
917
+ ) : (
918
+ // Non-standard browser env (web workers, react-native) lack needed support.
919
+ {
920
+ write() {
921
+ },
922
+ read() {
923
+ return null;
924
+ },
925
+ remove() {
926
+ }
927
+ }
928
+ );
929
+ function Xn(e) {
930
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
931
+ }
932
+ function Gn(e, t) {
933
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
934
+ }
935
+ function mt(e, t, n) {
936
+ let r = !Xn(t);
937
+ return e && (r || n == !1) ? Gn(e, t) : t;
938
+ }
939
+ const He = (e) => e instanceof I ? { ...e } : e;
940
+ function $(e, t) {
941
+ t = t || {};
942
+ const n = {};
943
+ function r(u, l, p, w) {
944
+ return a.isPlainObject(u) && a.isPlainObject(l) ? a.merge.call({ caseless: w }, u, l) : a.isPlainObject(l) ? a.merge({}, l) : a.isArray(l) ? l.slice() : l;
945
+ }
946
+ function s(u, l, p, w) {
947
+ if (a.isUndefined(l)) {
948
+ if (!a.isUndefined(u))
949
+ return r(void 0, u, p, w);
950
+ } else return r(u, l, p, w);
951
+ }
952
+ function o(u, l) {
953
+ if (!a.isUndefined(l))
954
+ return r(void 0, l);
955
+ }
956
+ function i(u, l) {
957
+ if (a.isUndefined(l)) {
958
+ if (!a.isUndefined(u))
959
+ return r(void 0, u);
960
+ } else return r(void 0, l);
961
+ }
962
+ function c(u, l, p) {
963
+ if (p in t)
964
+ return r(u, l);
965
+ if (p in e)
966
+ return r(void 0, u);
967
+ }
968
+ const f = {
969
+ url: o,
970
+ method: o,
971
+ data: o,
972
+ baseURL: i,
973
+ transformRequest: i,
974
+ transformResponse: i,
975
+ paramsSerializer: i,
976
+ timeout: i,
977
+ timeoutMessage: i,
978
+ withCredentials: i,
979
+ withXSRFToken: i,
980
+ adapter: i,
981
+ responseType: i,
982
+ xsrfCookieName: i,
983
+ xsrfHeaderName: i,
984
+ onUploadProgress: i,
985
+ onDownloadProgress: i,
986
+ decompress: i,
987
+ maxContentLength: i,
988
+ maxBodyLength: i,
989
+ beforeRedirect: i,
990
+ transport: i,
991
+ httpAgent: i,
992
+ httpsAgent: i,
993
+ cancelToken: i,
994
+ socketPath: i,
995
+ responseEncoding: i,
996
+ validateStatus: c,
997
+ headers: (u, l, p) => s(He(u), He(l), p, !0)
998
+ };
999
+ return a.forEach(Object.keys({ ...e, ...t }), function(l) {
1000
+ const p = f[l] || s, w = p(e[l], t[l], l);
1001
+ a.isUndefined(w) && p !== c || (n[l] = w);
1002
+ }), n;
1003
+ }
1004
+ const wt = (e) => {
1005
+ const t = $({}, e);
1006
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
1007
+ if (t.headers = i = I.from(i), t.url = dt(mt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1008
+ "Authorization",
1009
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1010
+ ), a.isFormData(n)) {
1011
+ if (C.hasStandardBrowserEnv || C.hasStandardBrowserWebWorkerEnv)
1012
+ i.setContentType(void 0);
1013
+ else if (a.isFunction(n.getHeaders)) {
1014
+ const f = n.getHeaders(), u = ["content-type", "content-length"];
1015
+ Object.entries(f).forEach(([l, p]) => {
1016
+ u.includes(l.toLowerCase()) && i.set(l, p);
1017
+ });
1018
+ }
1019
+ }
1020
+ if (C.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && Wn(t.url))) {
1021
+ const f = s && o && Kn.read(o);
1022
+ f && i.set(s, f);
1023
+ }
1024
+ return t;
1025
+ }, Qn = typeof XMLHttpRequest < "u", Yn = Qn && function(e) {
1026
+ return new Promise(function(n, r) {
1027
+ const s = wt(e);
1028
+ let o = s.data;
1029
+ const i = I.from(s.headers).normalize();
1030
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: u } = s, l, p, w, S, d;
1031
+ function h() {
1032
+ S && S(), d && d(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1033
+ }
1034
+ let y = new XMLHttpRequest();
1035
+ y.open(s.method.toUpperCase(), s.url, !0), y.timeout = s.timeout;
1036
+ function b() {
1037
+ if (!y)
1038
+ return;
1039
+ const E = I.from(
1040
+ "getAllResponseHeaders" in y && y.getAllResponseHeaders()
1041
+ ), x = {
1042
+ data: !c || c === "text" || c === "json" ? y.responseText : y.response,
1043
+ status: y.status,
1044
+ statusText: y.statusText,
1045
+ headers: E,
1046
+ config: e,
1047
+ request: y
1048
+ };
1049
+ ht(function(N) {
1050
+ n(N), h();
1051
+ }, function(N) {
1052
+ r(N), h();
1053
+ }, x), y = null;
1054
+ }
1055
+ "onloadend" in y ? y.onloadend = b : y.onreadystatechange = function() {
1056
+ !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(b);
1057
+ }, y.onabort = function() {
1058
+ y && (r(new m("Request aborted", m.ECONNABORTED, e, y)), y = null);
1059
+ }, y.onerror = function(R) {
1060
+ const x = R && R.message ? R.message : "Network Error", v = new m(x, m.ERR_NETWORK, e, y);
1061
+ v.event = R || null, r(v), y = null;
1062
+ }, y.ontimeout = function() {
1063
+ let R = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1064
+ const x = s.transitional || ft;
1065
+ s.timeoutErrorMessage && (R = s.timeoutErrorMessage), r(new m(
1066
+ R,
1067
+ x.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1068
+ e,
1069
+ y
1070
+ )), y = null;
1071
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in y && a.forEach(i.toJSON(), function(R, x) {
1072
+ y.setRequestHeader(x, R);
1073
+ }), a.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), c && c !== "json" && (y.responseType = s.responseType), u && ([w, d] = ce(u, !0), y.addEventListener("progress", w)), f && y.upload && ([p, S] = ce(f), y.upload.addEventListener("progress", p), y.upload.addEventListener("loadend", S)), (s.cancelToken || s.signal) && (l = (E) => {
1074
+ y && (r(!E || E.type ? new W(null, e, y) : E), y.abort(), y = null);
1075
+ }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1076
+ const T = Hn(s.url);
1077
+ if (T && C.protocols.indexOf(T) === -1) {
1078
+ r(new m("Unsupported protocol " + T + ":", m.ERR_BAD_REQUEST, e));
1079
+ return;
1080
+ }
1081
+ y.send(o || null);
1082
+ });
1083
+ }, Zn = (e, t) => {
1084
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1085
+ if (t || n) {
1086
+ let r = new AbortController(), s;
1087
+ const o = function(u) {
1088
+ if (!s) {
1089
+ s = !0, c();
1090
+ const l = u instanceof Error ? u : this.reason;
1091
+ r.abort(l instanceof m ? l : new W(l instanceof Error ? l.message : l));
1092
+ }
1093
+ };
1094
+ let i = t && setTimeout(() => {
1095
+ i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1096
+ }, t);
1097
+ const c = () => {
1098
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1099
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1100
+ }), e = null);
1101
+ };
1102
+ e.forEach((u) => u.addEventListener("abort", o));
1103
+ const { signal: f } = r;
1104
+ return f.unsubscribe = () => a.asap(c), f;
1105
+ }
1106
+ }, er = function* (e, t) {
1107
+ let n = e.byteLength;
1108
+ if (n < t) {
1109
+ yield e;
1110
+ return;
1111
+ }
1112
+ let r = 0, s;
1113
+ for (; r < n; )
1114
+ s = r + t, yield e.slice(r, s), r = s;
1115
+ }, tr = async function* (e, t) {
1116
+ for await (const n of nr(e))
1117
+ yield* er(n, t);
1118
+ }, nr = async function* (e) {
1119
+ if (e[Symbol.asyncIterator]) {
1120
+ yield* e;
1121
+ return;
1122
+ }
1123
+ const t = e.getReader();
1124
+ try {
1125
+ for (; ; ) {
1126
+ const { done: n, value: r } = await t.read();
1127
+ if (n)
1128
+ break;
1129
+ yield r;
1130
+ }
1131
+ } finally {
1132
+ await t.cancel();
1133
+ }
1134
+ }, Je = (e, t, n, r) => {
1135
+ const s = tr(e, t);
1136
+ let o = 0, i, c = (f) => {
1137
+ i || (i = !0, r && r(f));
1138
+ };
1139
+ return new ReadableStream({
1140
+ async pull(f) {
1141
+ try {
1142
+ const { done: u, value: l } = await s.next();
1143
+ if (u) {
1144
+ c(), f.close();
1145
+ return;
1146
+ }
1147
+ let p = l.byteLength;
1148
+ if (n) {
1149
+ let w = o += p;
1150
+ n(w);
1151
+ }
1152
+ f.enqueue(new Uint8Array(l));
1153
+ } catch (u) {
1154
+ throw c(u), u;
1155
+ }
1156
+ },
1157
+ cancel(f) {
1158
+ return c(f), s.return();
1159
+ }
1160
+ }, {
1161
+ highWaterMark: 2
1162
+ });
1163
+ }, Ve = 64 * 1024, { isFunction: se } = a, rr = (({ Request: e, Response: t }) => ({
1164
+ Request: e,
1165
+ Response: t
1166
+ }))(a.global), {
1167
+ ReadableStream: We,
1168
+ TextEncoder: Ke
1169
+ } = a.global, Xe = (e, ...t) => {
1170
+ try {
1171
+ return !!e(...t);
1172
+ } catch {
1173
+ return !1;
1174
+ }
1175
+ }, sr = (e) => {
1176
+ e = a.merge.call({
1177
+ skipUndefined: !0
1178
+ }, rr, e);
1179
+ const { fetch: t, Request: n, Response: r } = e, s = t ? se(t) : typeof fetch == "function", o = se(n), i = se(r);
1180
+ if (!s)
1181
+ return !1;
1182
+ const c = s && se(We), f = s && (typeof Ke == "function" ? /* @__PURE__ */ ((d) => (h) => d.encode(h))(new Ke()) : async (d) => new Uint8Array(await new n(d).arrayBuffer())), u = o && c && Xe(() => {
1183
+ let d = !1;
1184
+ const h = new n(C.origin, {
1185
+ body: new We(),
1186
+ method: "POST",
1187
+ get duplex() {
1188
+ return d = !0, "half";
1189
+ }
1190
+ }).headers.has("Content-Type");
1191
+ return d && !h;
1192
+ }), l = i && c && Xe(() => a.isReadableStream(new r("").body)), p = {
1193
+ stream: l && ((d) => d.body)
1194
+ };
1195
+ s && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((d) => {
1196
+ !p[d] && (p[d] = (h, y) => {
1197
+ let b = h && h[d];
1198
+ if (b)
1199
+ return b.call(h);
1200
+ throw new m(`Response type '${d}' is not supported`, m.ERR_NOT_SUPPORT, y);
1201
+ });
1202
+ });
1203
+ const w = async (d) => {
1204
+ if (d == null)
1205
+ return 0;
1206
+ if (a.isBlob(d))
1207
+ return d.size;
1208
+ if (a.isSpecCompliantForm(d))
1209
+ return (await new n(C.origin, {
1210
+ method: "POST",
1211
+ body: d
1212
+ }).arrayBuffer()).byteLength;
1213
+ if (a.isArrayBufferView(d) || a.isArrayBuffer(d))
1214
+ return d.byteLength;
1215
+ if (a.isURLSearchParams(d) && (d = d + ""), a.isString(d))
1216
+ return (await f(d)).byteLength;
1217
+ }, S = async (d, h) => {
1218
+ const y = a.toFiniteNumber(d.getContentLength());
1219
+ return y ?? w(h);
1220
+ };
1221
+ return async (d) => {
1222
+ let {
1223
+ url: h,
1224
+ method: y,
1225
+ data: b,
1226
+ signal: T,
1227
+ cancelToken: E,
1228
+ timeout: R,
1229
+ onDownloadProgress: x,
1230
+ onUploadProgress: v,
1231
+ responseType: N,
1232
+ headers: he,
1233
+ withCredentials: te = "same-origin",
1234
+ fetchOptions: Pe
1235
+ } = wt(d), Le = t || fetch;
1236
+ N = N ? (N + "").toLowerCase() : "text";
1237
+ let ne = Zn([T, E && E.toAbortSignal()], R), K = null;
1238
+ const z = ne && ne.unsubscribe && (() => {
1239
+ ne.unsubscribe();
1240
+ });
1241
+ let Fe;
1242
+ try {
1243
+ if (v && u && y !== "get" && y !== "head" && (Fe = await S(he, b)) !== 0) {
1244
+ let D = new n(h, {
1245
+ method: "POST",
1246
+ body: b,
1247
+ duplex: "half"
1248
+ }), M;
1249
+ if (a.isFormData(b) && (M = D.headers.get("content-type")) && he.setContentType(M), D.body) {
1250
+ const [me, re] = $e(
1251
+ Fe,
1252
+ ce(Me(v))
1253
+ );
1254
+ b = Je(D.body, Ve, me, re);
1255
+ }
1256
+ }
1257
+ a.isString(te) || (te = te ? "include" : "omit");
1258
+ const P = o && "credentials" in n.prototype, _e = {
1259
+ ...Pe,
1260
+ signal: ne,
1261
+ method: y.toUpperCase(),
1262
+ headers: he.normalize().toJSON(),
1263
+ body: b,
1264
+ duplex: "half",
1265
+ credentials: P ? te : void 0
1266
+ };
1267
+ K = o && new n(h, _e);
1268
+ let U = await (o ? Le(K, Pe) : Le(h, _e));
1269
+ const ke = l && (N === "stream" || N === "response");
1270
+ if (l && (x || ke && z)) {
1271
+ const D = {};
1272
+ ["status", "statusText", "headers"].forEach((Ue) => {
1273
+ D[Ue] = U[Ue];
1274
+ });
1275
+ const M = a.toFiniteNumber(U.headers.get("content-length")), [me, re] = x && $e(
1276
+ M,
1277
+ ce(Me(x), !0)
1278
+ ) || [];
1279
+ U = new r(
1280
+ Je(U.body, Ve, me, () => {
1281
+ re && re(), z && z();
1282
+ }),
1283
+ D
1284
+ );
1285
+ }
1286
+ N = N || "text";
1287
+ let _t = await p[a.findKey(p, N) || "text"](U, d);
1288
+ return !ke && z && z(), await new Promise((D, M) => {
1289
+ ht(D, M, {
1290
+ data: _t,
1291
+ headers: I.from(U.headers),
1292
+ status: U.status,
1293
+ statusText: U.statusText,
1294
+ config: d,
1295
+ request: K
1296
+ });
1297
+ });
1298
+ } catch (P) {
1299
+ throw z && z(), P && P.name === "TypeError" && /Load failed|fetch/i.test(P.message) ? Object.assign(
1300
+ new m("Network Error", m.ERR_NETWORK, d, K),
1301
+ {
1302
+ cause: P.cause || P
1303
+ }
1304
+ ) : m.from(P, P && P.code, d, K);
1305
+ }
1306
+ };
1307
+ }, or = /* @__PURE__ */ new Map(), gt = (e) => {
1308
+ let t = e && e.env || {};
1309
+ const { fetch: n, Request: r, Response: s } = t, o = [
1310
+ r,
1311
+ s,
1312
+ n
1313
+ ];
1314
+ let i = o.length, c = i, f, u, l = or;
1315
+ for (; c--; )
1316
+ f = o[c], u = l.get(f), u === void 0 && l.set(f, u = c ? /* @__PURE__ */ new Map() : sr(t)), l = u;
1317
+ return u;
1318
+ };
1319
+ gt();
1320
+ const Be = {
1321
+ http: Cn,
1322
+ xhr: Yn,
1323
+ fetch: {
1324
+ get: gt
1325
+ }
1326
+ };
1327
+ a.forEach(Be, (e, t) => {
1328
+ if (e) {
1329
+ try {
1330
+ Object.defineProperty(e, "name", { value: t });
1331
+ } catch {
1332
+ }
1333
+ Object.defineProperty(e, "adapterName", { value: t });
1334
+ }
1335
+ });
1336
+ const Ge = (e) => `- ${e}`, ir = (e) => a.isFunction(e) || e === null || e === !1;
1337
+ function ar(e, t) {
1338
+ e = a.isArray(e) ? e : [e];
1339
+ const { length: n } = e;
1340
+ let r, s;
1341
+ const o = {};
1342
+ for (let i = 0; i < n; i++) {
1343
+ r = e[i];
1344
+ let c;
1345
+ if (s = r, !ir(r) && (s = Be[(c = String(r)).toLowerCase()], s === void 0))
1346
+ throw new m(`Unknown adapter '${c}'`);
1347
+ if (s && (a.isFunction(s) || (s = s.get(t))))
1348
+ break;
1349
+ o[c || "#" + i] = s;
1350
+ }
1351
+ if (!s) {
1352
+ const i = Object.entries(o).map(
1353
+ ([f, u]) => `adapter ${f} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1354
+ );
1355
+ let c = n ? i.length > 1 ? `since :
1356
+ ` + i.map(Ge).join(`
1357
+ `) : " " + Ge(i[0]) : "as no adapter specified";
1358
+ throw new m(
1359
+ "There is no suitable adapter to dispatch the request " + c,
1360
+ "ERR_NOT_SUPPORT"
1361
+ );
1362
+ }
1363
+ return s;
1364
+ }
1365
+ const bt = {
1366
+ /**
1367
+ * Resolve an adapter from a list of adapter names or functions.
1368
+ * @type {Function}
1369
+ */
1370
+ getAdapter: ar,
1371
+ /**
1372
+ * Exposes all known adapters
1373
+ * @type {Object<string, Function|Object>}
1374
+ */
1375
+ adapters: Be
1376
+ };
1377
+ function be(e) {
1378
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1379
+ throw new W(null, e);
1380
+ }
1381
+ function Qe(e) {
1382
+ return be(e), e.headers = I.from(e.headers), e.data = ge.call(
1383
+ e,
1384
+ e.transformRequest
1385
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), bt.getAdapter(e.adapter || ee.adapter, e)(e).then(function(r) {
1386
+ return be(e), r.data = ge.call(
1387
+ e,
1388
+ e.transformResponse,
1389
+ r
1390
+ ), r.headers = I.from(r.headers), r;
1391
+ }, function(r) {
1392
+ return yt(r) || (be(e), r && r.response && (r.response.data = ge.call(
1393
+ e,
1394
+ e.transformResponse,
1395
+ r.response
1396
+ ), r.response.headers = I.from(r.response.headers))), Promise.reject(r);
1397
+ });
1398
+ }
1399
+ const Et = "1.13.2", pe = {};
1400
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1401
+ pe[e] = function(r) {
1402
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1403
+ };
1404
+ });
1405
+ const Ye = {};
1406
+ pe.transitional = function(t, n, r) {
1407
+ function s(o, i) {
1408
+ return "[Axios v" + Et + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1409
+ }
1410
+ return (o, i, c) => {
1411
+ if (t === !1)
1412
+ throw new m(
1413
+ s(i, " has been removed" + (n ? " in " + n : "")),
1414
+ m.ERR_DEPRECATED
1415
+ );
1416
+ return n && !Ye[i] && (Ye[i] = !0, console.warn(
1417
+ s(
1418
+ i,
1419
+ " has been deprecated since v" + n + " and will be removed in the near future"
1420
+ )
1421
+ )), t ? t(o, i, c) : !0;
1422
+ };
1423
+ };
1424
+ pe.spelling = function(t) {
1425
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1426
+ };
1427
+ function cr(e, t, n) {
1428
+ if (typeof e != "object")
1429
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1430
+ const r = Object.keys(e);
1431
+ let s = r.length;
1432
+ for (; s-- > 0; ) {
1433
+ const o = r[s], i = t[o];
1434
+ if (i) {
1435
+ const c = e[o], f = c === void 0 || i(c, o, e);
1436
+ if (f !== !0)
1437
+ throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1438
+ continue;
1439
+ }
1440
+ if (n !== !0)
1441
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1442
+ }
1443
+ }
1444
+ const ae = {
1445
+ assertOptions: cr,
1446
+ validators: pe
1447
+ }, L = ae.validators;
1448
+ let j = class {
1449
+ constructor(t) {
1450
+ this.defaults = t || {}, this.interceptors = {
1451
+ request: new qe(),
1452
+ response: new qe()
1453
+ };
1454
+ }
1455
+ /**
1456
+ * Dispatch a request
1457
+ *
1458
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1459
+ * @param {?Object} config
1460
+ *
1461
+ * @returns {Promise} The Promise to be fulfilled
1462
+ */
1463
+ async request(t, n) {
1464
+ try {
1465
+ return await this._request(t, n);
1466
+ } catch (r) {
1467
+ if (r instanceof Error) {
1468
+ let s = {};
1469
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1470
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1471
+ try {
1472
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1473
+ ` + o) : r.stack = o;
1474
+ } catch {
1475
+ }
1476
+ }
1477
+ throw r;
1478
+ }
1479
+ }
1480
+ _request(t, n) {
1481
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = $(this.defaults, n);
1482
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1483
+ r !== void 0 && ae.assertOptions(r, {
1484
+ silentJSONParsing: L.transitional(L.boolean),
1485
+ forcedJSONParsing: L.transitional(L.boolean),
1486
+ clarifyTimeoutError: L.transitional(L.boolean)
1487
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1488
+ serialize: s
1489
+ } : ae.assertOptions(s, {
1490
+ encode: L.function,
1491
+ serialize: L.function
1492
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ae.assertOptions(n, {
1493
+ baseUrl: L.spelling("baseURL"),
1494
+ withXsrfToken: L.spelling("withXSRFToken")
1495
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1496
+ let i = o && a.merge(
1497
+ o.common,
1498
+ o[n.method]
1499
+ );
1500
+ o && a.forEach(
1501
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1502
+ (d) => {
1503
+ delete o[d];
1504
+ }
1505
+ ), n.headers = I.concat(i, o);
1506
+ const c = [];
1507
+ let f = !0;
1508
+ this.interceptors.request.forEach(function(h) {
1509
+ typeof h.runWhen == "function" && h.runWhen(n) === !1 || (f = f && h.synchronous, c.unshift(h.fulfilled, h.rejected));
1510
+ });
1511
+ const u = [];
1512
+ this.interceptors.response.forEach(function(h) {
1513
+ u.push(h.fulfilled, h.rejected);
1514
+ });
1515
+ let l, p = 0, w;
1516
+ if (!f) {
1517
+ const d = [Qe.bind(this), void 0];
1518
+ for (d.unshift(...c), d.push(...u), w = d.length, l = Promise.resolve(n); p < w; )
1519
+ l = l.then(d[p++], d[p++]);
1520
+ return l;
1521
+ }
1522
+ w = c.length;
1523
+ let S = n;
1524
+ for (; p < w; ) {
1525
+ const d = c[p++], h = c[p++];
1526
+ try {
1527
+ S = d(S);
1528
+ } catch (y) {
1529
+ h.call(this, y);
1530
+ break;
1531
+ }
1532
+ }
1533
+ try {
1534
+ l = Qe.call(this, S);
1535
+ } catch (d) {
1536
+ return Promise.reject(d);
1537
+ }
1538
+ for (p = 0, w = u.length; p < w; )
1539
+ l = l.then(u[p++], u[p++]);
1540
+ return l;
1541
+ }
1542
+ getUri(t) {
1543
+ t = $(this.defaults, t);
1544
+ const n = mt(t.baseURL, t.url, t.allowAbsoluteUrls);
1545
+ return dt(n, t.params, t.paramsSerializer);
1546
+ }
1547
+ };
1548
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1549
+ j.prototype[t] = function(n, r) {
1550
+ return this.request($(r || {}, {
1551
+ method: t,
1552
+ url: n,
1553
+ data: (r || {}).data
1554
+ }));
1555
+ };
1556
+ });
1557
+ a.forEach(["post", "put", "patch"], function(t) {
1558
+ function n(r) {
1559
+ return function(o, i, c) {
1560
+ return this.request($(c || {}, {
1561
+ method: t,
1562
+ headers: r ? {
1563
+ "Content-Type": "multipart/form-data"
1564
+ } : {},
1565
+ url: o,
1566
+ data: i
1567
+ }));
1568
+ };
1569
+ }
1570
+ j.prototype[t] = n(), j.prototype[t + "Form"] = n(!0);
1571
+ });
1572
+ let ur = class St {
1573
+ constructor(t) {
1574
+ if (typeof t != "function")
1575
+ throw new TypeError("executor must be a function.");
1576
+ let n;
1577
+ this.promise = new Promise(function(o) {
1578
+ n = o;
1579
+ });
1580
+ const r = this;
1581
+ this.promise.then((s) => {
1582
+ if (!r._listeners) return;
1583
+ let o = r._listeners.length;
1584
+ for (; o-- > 0; )
1585
+ r._listeners[o](s);
1586
+ r._listeners = null;
1587
+ }), this.promise.then = (s) => {
1588
+ let o;
1589
+ const i = new Promise((c) => {
1590
+ r.subscribe(c), o = c;
1591
+ }).then(s);
1592
+ return i.cancel = function() {
1593
+ r.unsubscribe(o);
1594
+ }, i;
1595
+ }, t(function(o, i, c) {
1596
+ r.reason || (r.reason = new W(o, i, c), n(r.reason));
1597
+ });
1598
+ }
1599
+ /**
1600
+ * Throws a `CanceledError` if cancellation has been requested.
1601
+ */
1602
+ throwIfRequested() {
1603
+ if (this.reason)
1604
+ throw this.reason;
1605
+ }
1606
+ /**
1607
+ * Subscribe to the cancel signal
1608
+ */
1609
+ subscribe(t) {
1610
+ if (this.reason) {
1611
+ t(this.reason);
1612
+ return;
1613
+ }
1614
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1615
+ }
1616
+ /**
1617
+ * Unsubscribe from the cancel signal
1618
+ */
1619
+ unsubscribe(t) {
1620
+ if (!this._listeners)
1621
+ return;
1622
+ const n = this._listeners.indexOf(t);
1623
+ n !== -1 && this._listeners.splice(n, 1);
1624
+ }
1625
+ toAbortSignal() {
1626
+ const t = new AbortController(), n = (r) => {
1627
+ t.abort(r);
1628
+ };
1629
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1630
+ }
1631
+ /**
1632
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1633
+ * cancels the `CancelToken`.
1634
+ */
1635
+ static source() {
1636
+ let t;
1637
+ return {
1638
+ token: new St(function(s) {
1639
+ t = s;
1640
+ }),
1641
+ cancel: t
1642
+ };
1643
+ }
1644
+ };
1645
+ function lr(e) {
1646
+ return function(n) {
1647
+ return e.apply(null, n);
1648
+ };
1649
+ }
1650
+ function dr(e) {
1651
+ return a.isObject(e) && e.isAxiosError === !0;
1652
+ }
1653
+ const Ae = {
1654
+ Continue: 100,
1655
+ SwitchingProtocols: 101,
1656
+ Processing: 102,
1657
+ EarlyHints: 103,
1658
+ Ok: 200,
1659
+ Created: 201,
1660
+ Accepted: 202,
1661
+ NonAuthoritativeInformation: 203,
1662
+ NoContent: 204,
1663
+ ResetContent: 205,
1664
+ PartialContent: 206,
1665
+ MultiStatus: 207,
1666
+ AlreadyReported: 208,
1667
+ ImUsed: 226,
1668
+ MultipleChoices: 300,
1669
+ MovedPermanently: 301,
1670
+ Found: 302,
1671
+ SeeOther: 303,
1672
+ NotModified: 304,
1673
+ UseProxy: 305,
1674
+ Unused: 306,
1675
+ TemporaryRedirect: 307,
1676
+ PermanentRedirect: 308,
1677
+ BadRequest: 400,
1678
+ Unauthorized: 401,
1679
+ PaymentRequired: 402,
1680
+ Forbidden: 403,
1681
+ NotFound: 404,
1682
+ MethodNotAllowed: 405,
1683
+ NotAcceptable: 406,
1684
+ ProxyAuthenticationRequired: 407,
1685
+ RequestTimeout: 408,
1686
+ Conflict: 409,
1687
+ Gone: 410,
1688
+ LengthRequired: 411,
1689
+ PreconditionFailed: 412,
1690
+ PayloadTooLarge: 413,
1691
+ UriTooLong: 414,
1692
+ UnsupportedMediaType: 415,
1693
+ RangeNotSatisfiable: 416,
1694
+ ExpectationFailed: 417,
1695
+ ImATeapot: 418,
1696
+ MisdirectedRequest: 421,
1697
+ UnprocessableEntity: 422,
1698
+ Locked: 423,
1699
+ FailedDependency: 424,
1700
+ TooEarly: 425,
1701
+ UpgradeRequired: 426,
1702
+ PreconditionRequired: 428,
1703
+ TooManyRequests: 429,
1704
+ RequestHeaderFieldsTooLarge: 431,
1705
+ UnavailableForLegalReasons: 451,
1706
+ InternalServerError: 500,
1707
+ NotImplemented: 501,
1708
+ BadGateway: 502,
1709
+ ServiceUnavailable: 503,
1710
+ GatewayTimeout: 504,
1711
+ HttpVersionNotSupported: 505,
1712
+ VariantAlsoNegotiates: 506,
1713
+ InsufficientStorage: 507,
1714
+ LoopDetected: 508,
1715
+ NotExtended: 510,
1716
+ NetworkAuthenticationRequired: 511,
1717
+ WebServerIsDown: 521,
1718
+ ConnectionTimedOut: 522,
1719
+ OriginIsUnreachable: 523,
1720
+ TimeoutOccurred: 524,
1721
+ SslHandshakeFailed: 525,
1722
+ InvalidSslCertificate: 526
1723
+ };
1724
+ Object.entries(Ae).forEach(([e, t]) => {
1725
+ Ae[t] = e;
1726
+ });
1727
+ function Ct(e) {
1728
+ const t = new j(e), n = Ze(j.prototype.request, t);
1729
+ return a.extend(n, j.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1730
+ return Ct($(e, s));
1731
+ }, n;
1732
+ }
1733
+ const g = Ct(ee);
1734
+ g.Axios = j;
1735
+ g.CanceledError = W;
1736
+ g.CancelToken = ur;
1737
+ g.isCancel = yt;
1738
+ g.VERSION = Et;
1739
+ g.toFormData = fe;
1740
+ g.AxiosError = m;
1741
+ g.Cancel = g.CanceledError;
1742
+ g.all = function(t) {
1743
+ return Promise.all(t);
1744
+ };
1745
+ g.spread = lr;
1746
+ g.isAxiosError = dr;
1747
+ g.mergeConfig = $;
1748
+ g.AxiosHeaders = I;
1749
+ g.formToJSON = (e) => pt(a.isHTMLForm(e) ? new FormData(e) : e);
1750
+ g.getAdapter = bt.getAdapter;
1751
+ g.HttpStatusCode = Ae;
1752
+ g.default = g;
1753
+ const {
1754
+ Axios: Nr,
1755
+ AxiosError: xr,
1756
+ CanceledError: Br,
1757
+ isCancel: Pr,
1758
+ CancelToken: Lr,
1759
+ VERSION: Fr,
1760
+ all: _r,
1761
+ Cancel: kr,
1762
+ isAxiosError: Ur,
1763
+ spread: Dr,
1764
+ toFormData: vr,
1765
+ AxiosHeaders: zr,
1766
+ HttpStatusCode: qr,
1767
+ formToJSON: jr,
1768
+ getAdapter: $r,
1769
+ mergeConfig: Mr
1770
+ } = g, Re = g.create({
1771
+ timeout: 15e3
1772
+ // withCredentials: true,
1773
+ });
1774
+ Re.interceptors.response.use(
1775
+ (e) => e,
1776
+ (e) => Promise.reject(e)
1777
+ );
1778
+ const At = {
1779
+ async get(e, t) {
1780
+ const n = await Re.get(e, {
1781
+ params: t?.params,
1782
+ headers: t?.headers
1783
+ });
1784
+ return {
1785
+ data: n.data,
1786
+ status: n.status,
1787
+ headers: n.headers
1788
+ };
1789
+ },
1790
+ async post(e, t, n) {
1791
+ const r = await Re.post(e, t, {
1792
+ params: n?.params,
1793
+ headers: n?.headers
1794
+ });
1795
+ return {
1796
+ data: r.data,
1797
+ status: r.status,
1798
+ headers: r.headers
1799
+ };
1800
+ }
1801
+ };
1802
+ function fr(e) {
1803
+ return {
1804
+ async get(t, n) {
1805
+ const r = n?.params ? "?" + new URLSearchParams(n.params).toString() : "", s = await e(t + r, {
1806
+ method: "GET",
1807
+ headers: n?.headers
1808
+ });
1809
+ return {
1810
+ data: await s.json(),
1811
+ status: s.status
1812
+ };
1813
+ },
1814
+ async post(t, n, r) {
1815
+ const s = r?.params ? "?" + new URLSearchParams(r.params).toString() : "", o = await e(t + s, {
1816
+ method: "POST",
1817
+ headers: {
1818
+ "Content-Type": "application/json",
1819
+ ...r?.headers
1820
+ },
1821
+ body: n ? JSON.stringify(n) : void 0
1822
+ });
1823
+ return {
1824
+ data: await o.json(),
1825
+ status: o.status
1826
+ };
1827
+ }
1828
+ };
1829
+ }
1830
+ let G = At;
1831
+ function Hr(e, t) {
1832
+ return e === "fetch" ? G = fr(t?.fetch ?? fetch) : G = At, G;
1833
+ }
1834
+ const Rt = {
1835
+ get: (...e) => G.get(...e),
1836
+ post: (...e) => G.post(...e)
1837
+ };
1838
+ let Oe = {
1839
+ basePath: "https://cloudapi-sit2.jctrans.net.cn/system/dms/fr/aggr/getLocationOptions"
1840
+ };
1841
+ const Jr = (e) => {
1842
+ Oe = { ...Oe, ...e };
1843
+ }, Ot = () => Oe, It = () => {
1844
+ try {
1845
+ const n = globalThis.useCookie;
1846
+ if (typeof n == "function") {
1847
+ const r = n("jc-language").value;
1848
+ if (r) return /en/i.test(r) || /en-US/i.test(r);
1849
+ }
1850
+ } catch {
1851
+ }
1852
+ const e = typeof window < "u" && typeof document < "u";
1853
+ let t = "";
1854
+ if (e)
1855
+ t = document.cookie || "";
1856
+ else
1857
+ try {
1858
+ t = globalThis.useNuxtApp?.()?.ssrContext?.event?.node?.req?.headers?.cookie || "";
1859
+ } catch {
1860
+ t = "";
1861
+ }
1862
+ return /jc-language=en-US/i.test(t) || /jc-language=en/i.test(t);
1863
+ }, pr = () => Ot().basePath, yr = {
1864
+ Continent: "continentId",
1865
+ Country: "countryId",
1866
+ City: "cityId",
1867
+ Province: "provinceId",
1868
+ Seaport: "seaportId",
1869
+ Airport: "airportId"
1870
+ }, hr = [
1871
+ "City",
1872
+ "Seaport",
1873
+ "Airport",
1874
+ "Country",
1875
+ "Region"
1876
+ ].filter(Boolean);
1877
+ function H(e, t) {
1878
+ return e === "allCityByCountryId" ? Array.isArray(t) ? String(t[0]) : String(t) : Array.isArray(t) ? JSON.stringify(t) : JSON.stringify([Number(t)]);
1879
+ }
1880
+ function mr(e) {
1881
+ const t = [];
1882
+ if (e.ids)
1883
+ for (const n of e.ids) {
1884
+ const r = yr[n.type];
1885
+ t.push({
1886
+ name: r,
1887
+ val: H(r, n.ids)
1888
+ });
1889
+ }
1890
+ return e.scope && (e.scope.countryId !== void 0 && e.scope.countryId !== null && t.push({
1891
+ name: "countryId",
1892
+ val: H("countryId", [e.scope.countryId])
1893
+ }), e.scope.cityId !== void 0 && e.scope.cityId !== null && t.push({
1894
+ name: "cityId",
1895
+ val: H("cityId", [e.scope.cityId])
1896
+ }), e.scope.provinceId !== void 0 && e.scope.provinceId !== null && t.push({
1897
+ name: "provinceId",
1898
+ val: H("provinceId", [e.scope.provinceId])
1899
+ })), t;
1900
+ }
1901
+ function k(e) {
1902
+ const t = {
1903
+ current: e.page ?? 1,
1904
+ size: e.size ?? 10,
1905
+ level: e.level,
1906
+ searchContent: e.keyword ?? void 0,
1907
+ displayInfo: e.displayInfo ?? hr,
1908
+ sort: e.sort
1909
+ }, n = mr({
1910
+ ids: e.ids,
1911
+ scope: e.scope
1912
+ });
1913
+ return t.appointSearch = [...n, ...e.extraAppoint || []], Object.keys(t).forEach((r) => {
1914
+ t[r] === void 0 && delete t[r];
1915
+ }), t;
1916
+ }
1917
+ function wr(e, t, n) {
1918
+ const r = It(), s = (u, l) => {
1919
+ if (!u) return "";
1920
+ const p = u.nameCn ?? u[`${l.toLowerCase()}NameCn`] ?? u.name, w = u.nameEn ?? u[`${l.toLowerCase()}NameEn`];
1921
+ return r ? w || p || "" : p || w || "";
1922
+ }, o = s(e, t), i = s(n.country, "country"), c = s(n.city, "city"), f = s(n.continent, "continent");
1923
+ switch (t) {
1924
+ case "Seaport":
1925
+ case "Airport":
1926
+ const u = [c, i].filter(Boolean).join(", ");
1927
+ return u ? `${o} (${u})` : o;
1928
+ case "City":
1929
+ case "Province":
1930
+ return i ? `${o} (${i})` : o;
1931
+ case "Country":
1932
+ return f ? `${o} (${f})` : o;
1933
+ default:
1934
+ return o;
1935
+ }
1936
+ }
1937
+ function F(e = [], t = []) {
1938
+ const n = [];
1939
+ function r(o, i, c) {
1940
+ if (!o || !t.includes(i)) return;
1941
+ const f = o.id ?? o[i.toLowerCase() + "Id"] ?? null;
1942
+ if (f == null) return;
1943
+ const u = o.nameCn ?? o[`${i.toLowerCase()}NameCn`] ?? o.name ?? void 0, l = o.nameEn ?? o[`${i.toLowerCase()}NameEn`] ?? void 0, p = wr(o, i, c) || u || l || "";
1944
+ n.push({
1945
+ id: f,
1946
+ type: i,
1947
+ nameCn: u,
1948
+ nameEn: l,
1949
+ display: p,
1950
+ continent: c.continent ?? void 0,
1951
+ country: c.country ?? void 0,
1952
+ city: c.city ?? void 0,
1953
+ province: c.province ?? void 0,
1954
+ raw: o
1955
+ });
1956
+ }
1957
+ for (const o of e) {
1958
+ const i = {
1959
+ continent: o.continent ?? void 0,
1960
+ country: o.country ?? void 0,
1961
+ city: o.city ?? void 0,
1962
+ province: o.province ?? void 0
1963
+ };
1964
+ let c = !1;
1965
+ if ([
1966
+ "Continent",
1967
+ "Country",
1968
+ "Province",
1969
+ "City",
1970
+ "Seaport",
1971
+ "Airport"
1972
+ ].forEach((u) => {
1973
+ const l = u.toLowerCase();
1974
+ o[l] && (r(o[l], u, i), c = !0);
1975
+ }), !c && o.id !== void 0) {
1976
+ let u;
1977
+ o.type && t.includes(o.type) ? u = o.type : t.length === 1 && (u = t[0]), u && r(o, u, i);
1978
+ }
1979
+ }
1980
+ const s = /* @__PURE__ */ new Set();
1981
+ return n.filter((o) => {
1982
+ const i = `${o.type}_${o.id}`;
1983
+ return s.has(i) ? !1 : (s.add(i), !0);
1984
+ });
1985
+ }
1986
+ async function _(e) {
1987
+ return (await Rt.post(pr(), e)).data;
1988
+ }
1989
+ async function ye(e) {
1990
+ const t = k({
1991
+ keyword: e.keyword,
1992
+ displayInfo: e.displayInfo,
1993
+ page: e.page,
1994
+ size: e.size,
1995
+ level: e.level,
1996
+ sort: e.sort,
1997
+ ids: e.ids,
1998
+ scope: e.scope,
1999
+ extraAppoint: e.extraAppoint
2000
+ }), n = await _(t), r = F(
2001
+ n.data?.records || [],
2002
+ t.displayInfo || []
2003
+ );
2004
+ return {
2005
+ ...n,
2006
+ records: r
2007
+ };
2008
+ }
2009
+ async function Tt(e) {
2010
+ if (!e.keyword?.trim())
2011
+ throw new Error("searchByName: keyword 不能为空");
2012
+ const t = e.types && e.types.length > 0 ? e.types : ["Continent", "Country", "City", "Province", "Seaport", "Airport"];
2013
+ return ye({
2014
+ keyword: e.keyword.trim(),
2015
+ displayInfo: t,
2016
+ page: e.page,
2017
+ size: e.size,
2018
+ level: e.level,
2019
+ sort: e.sort
2020
+ });
2021
+ }
2022
+ async function gr(e, t) {
2023
+ const n = Array.isArray(t) ? t : [t], r = [e], s = k({
2024
+ displayInfo: r,
2025
+ ids: [{ type: e, ids: n }]
2026
+ }), o = await _(s);
2027
+ return F(
2028
+ o.records || [],
2029
+ r
2030
+ ).filter((c) => c.type === e);
2031
+ }
2032
+ async function Vr(e, t) {
2033
+ return (await gr(e, [t]))[0] ?? null;
2034
+ }
2035
+ async function Wr(e, t) {
2036
+ const n = ["City"], r = k({
2037
+ displayInfo: n,
2038
+ page: t?.page ?? 1,
2039
+ size: t?.size ?? 1e3,
2040
+ extraAppoint: [
2041
+ {
2042
+ name: "allCityByCountryId",
2043
+ val: H("allCityByCountryId", e)
2044
+ }
2045
+ ]
2046
+ }), s = await _(r);
2047
+ return {
2048
+ ...s,
2049
+ records: F(s.records || [], n)
2050
+ };
2051
+ }
2052
+ async function Kr(e, t, n) {
2053
+ if (!t || t.length === 0)
2054
+ throw new Error("childTypes 必须至少包含一个:Seaport | Airport");
2055
+ const r = t, s = k({
2056
+ displayInfo: r,
2057
+ page: n?.page ?? 1,
2058
+ size: n?.size ?? 1e3,
2059
+ extraAppoint: [
2060
+ {
2061
+ name: "cityId",
2062
+ val: H("cityId", [e])
2063
+ }
2064
+ ]
2065
+ }), o = await _(s);
2066
+ return {
2067
+ ...o,
2068
+ records: F(o.records || [], r)
2069
+ };
2070
+ }
2071
+ function Xr(e, t) {
2072
+ return Tt({
2073
+ keyword: e,
2074
+ types: ["Country"],
2075
+ page: t?.page,
2076
+ size: t?.size
2077
+ });
2078
+ }
2079
+ function Gr(e, t) {
2080
+ return t?.countryId ? ye({
2081
+ keyword: e,
2082
+ displayInfo: ["City"],
2083
+ scope: { countryId: t.countryId },
2084
+ page: t.page,
2085
+ size: t.size
2086
+ }) : Tt({
2087
+ keyword: e,
2088
+ types: ["City"],
2089
+ page: t?.page,
2090
+ size: t?.size
2091
+ });
2092
+ }
2093
+ function Qr(e, t) {
2094
+ return ye({
2095
+ keyword: e,
2096
+ displayInfo: ["Seaport"],
2097
+ scope: t?.cityId ? { cityId: t.cityId } : void 0,
2098
+ page: t?.page,
2099
+ size: t?.size
2100
+ });
2101
+ }
2102
+ function Yr(e, t) {
2103
+ return ye({
2104
+ keyword: e,
2105
+ displayInfo: ["Airport"],
2106
+ scope: t?.cityId ? { cityId: t.cityId } : void 0,
2107
+ page: t?.page,
2108
+ size: t?.size
2109
+ });
2110
+ }
2111
+ async function Zr(e = {}) {
2112
+ const t = ["Continent"], n = await _({
2113
+ current: e.page ?? 1,
2114
+ size: e.size ?? 10,
2115
+ level: 1,
2116
+ displayInfo: t
2117
+ });
2118
+ return {
2119
+ ...n,
2120
+ records: F(n.records || [], t)
2121
+ };
2122
+ }
2123
+ async function es(e = {}) {
2124
+ const t = ["Country"], n = k({
2125
+ displayInfo: t,
2126
+ page: e.page ?? 1,
2127
+ size: e.size ?? 10,
2128
+ ids: e.ids ? [{ type: "Country", ids: e.ids }] : void 0
2129
+ }), r = await _(n);
2130
+ return {
2131
+ ...r,
2132
+ records: F(r.records || [], t)
2133
+ };
2134
+ }
2135
+ async function ts(e = {}) {
2136
+ const t = ["City"], n = k({
2137
+ displayInfo: t,
2138
+ page: e.page ?? 1,
2139
+ size: e.size ?? 10,
2140
+ ids: e.ids ? [{ type: "City", ids: e.ids }] : void 0,
2141
+ scope: e.countryId ? { countryId: e.countryId } : void 0
2142
+ }), r = await _(n);
2143
+ return {
2144
+ ...r,
2145
+ records: F(r.records || [], t)
2146
+ };
2147
+ }
2148
+ async function ns(e = {}) {
2149
+ const t = ["Province"], n = k({
2150
+ displayInfo: t,
2151
+ page: e.page ?? 1,
2152
+ size: e.size ?? 10,
2153
+ ids: e.ids ? [{ type: "Province", ids: e.ids }] : void 0,
2154
+ scope: e.countryId ? { countryId: e.countryId } : void 0
2155
+ }), r = await _(n);
2156
+ return {
2157
+ ...r,
2158
+ records: F(r.records || [], t)
2159
+ };
2160
+ }
2161
+ async function rs(e = {}) {
2162
+ const t = ["Seaport"], n = k({
2163
+ displayInfo: t,
2164
+ page: e.page ?? 1,
2165
+ size: e.size ?? 10,
2166
+ ids: e.ids ? [{ type: "Seaport", ids: e.ids }] : void 0,
2167
+ scope: e.cityId ? { cityId: e.cityId } : e.countryId ? { countryId: e.countryId } : void 0
2168
+ }), r = await _(n);
2169
+ return {
2170
+ ...r,
2171
+ records: F(r.records || [], t)
2172
+ };
2173
+ }
2174
+ async function ss(e = {}) {
2175
+ const t = ["Airport"], n = k({
2176
+ displayInfo: t,
2177
+ page: e.page ?? 1,
2178
+ size: e.size ?? 10,
2179
+ ids: e.ids ? [{ type: "Airport", ids: e.ids }] : void 0,
2180
+ scope: e.cityId ? { cityId: e.cityId } : e.countryId ? { countryId: e.countryId } : void 0
2181
+ }), r = await _(n);
2182
+ return {
2183
+ ...r,
2184
+ records: F(r.records || [], t)
2185
+ };
2186
+ }
2187
+ const br = "2.0", Er = () => Ot().basePath;
2188
+ function Nt(e) {
2189
+ let t = e.type;
2190
+ return t === "Country" && e.region && !e.country ? {
2191
+ target: e.region,
2192
+ finalType: "Region"
2193
+ } : {
2194
+ target: e[t.toLowerCase()] || {},
2195
+ finalType: t
2196
+ };
2197
+ }
2198
+ function Sr(e) {
2199
+ const t = It(), { target: n, finalType: r } = Nt(e), s = (u) => {
2200
+ if (!u) return "";
2201
+ const l = u.nameCn || u.displayNameCn || u.name || "", p = u.nameEn || u.displayNameEn || u.nameEnShow || "";
2202
+ return t ? p || l : l || p;
2203
+ }, o = s(n), i = e.country || e.region, c = s(i), f = s(e.city);
2204
+ if (["Seaport", "Airport", "Wharf"].includes(r)) {
2205
+ const u = [f, c].filter(Boolean).join(", ");
2206
+ return u ? `${o} (${u})` : o;
2207
+ }
2208
+ return ["City", "Province"].includes(r) && c ? `${o} (${c})` : o;
2209
+ }
2210
+ function Cr(e = []) {
2211
+ return e.map((t) => {
2212
+ const { target: n, finalType: r } = Nt(t);
2213
+ return {
2214
+ // 优先取嵌套对象里的 ID
2215
+ id: n.id ?? t.id,
2216
+ type: r,
2217
+ nameCn: n.nameCn || n.name,
2218
+ nameEn: n.nameEn || n.nameEnShow,
2219
+ display: Sr(t),
2220
+ // continent: rec.continent,
2221
+ // 统一输出时,将 region 映射到 country 字段或保留原样,取决于业务需求
2222
+ // country: rec.country || rec.region,
2223
+ // city: rec.city,
2224
+ // province: rec.province,
2225
+ raw: t
2226
+ };
2227
+ });
2228
+ }
2229
+ async function A(e) {
2230
+ const t = {
2231
+ current: 1,
2232
+ // 默认页码 1
2233
+ size: 10,
2234
+ // 默认每页 10 条
2235
+ ...e
2236
+ }, r = (await Rt.post(Er(), t)).data.data || {};
2237
+ return {
2238
+ ...r,
2239
+ records: Cr(r.records || [])
2240
+ };
2241
+ }
2242
+ const xt = {
2243
+ searchByName: (e) => A({
2244
+ searchContent: e.keyword,
2245
+ searchMode: e.searchMode,
2246
+ ...e,
2247
+ displayInfo: ["Country"]
2248
+ }),
2249
+ getByIds: (e) => A({ countryIds: e, displayInfo: ["Country"] })
2250
+ }, Bt = {
2251
+ searchByName: (e) => A({
2252
+ searchContent: e.keyword,
2253
+ searchMode: e.searchMode,
2254
+ ...e,
2255
+ displayInfo: ["Country"]
2256
+ }),
2257
+ getByIds: (e) => A({ countryIds: e, displayInfo: ["Country"] })
2258
+ }, Ie = {
2259
+ searchByName: (e) => A({
2260
+ searchContent: e.keyword,
2261
+ countryIds: e.countryId ? [e.countryId] : void 0,
2262
+ ...e,
2263
+ displayInfo: ["City"]
2264
+ }),
2265
+ getByIds: (e) => A({ cityIds: e, displayInfo: ["City"] }),
2266
+ getCitiesByCountry: (e, t) => A({ countryIds: [e], displayInfo: ["City"], ...t })
2267
+ }, Pt = {
2268
+ searchByName: (e) => A({
2269
+ searchContent: e.keyword,
2270
+ cityIds: e.cityId ? [e.cityId] : void 0,
2271
+ countryIds: e.countryId ? [e.countryId] : void 0,
2272
+ ...e,
2273
+ displayInfo: ["Seaport"]
2274
+ }),
2275
+ getByIds: (e) => A({ seaportIds: e, displayInfo: ["Seaport"] })
2276
+ }, Lt = {
2277
+ searchByName: (e) => A({
2278
+ searchContent: e.keyword,
2279
+ countryIds: e.countryId ? [e.countryId] : void 0,
2280
+ ...e,
2281
+ displayInfo: ["Airport"]
2282
+ }),
2283
+ getByIds: (e) => A({ airportIds: e, displayInfo: ["Airport"] })
2284
+ }, Ft = {
2285
+ getByIds: (e) => A({ wharfIds: e, displayInfo: ["Wharf"] })
2286
+ }, Ar = (e) => A({
2287
+ searchContent: e.keyword,
2288
+ ...e
2289
+ // displayInfo: params.displayInfo,
2290
+ // current: params.current,
2291
+ // size: params.size,
2292
+ }), Rr = (e, t) => {
2293
+ const n = Array.isArray(e) ? e : [e];
2294
+ switch (t) {
2295
+ case "Country":
2296
+ return xt.getByIds(n);
2297
+ case "Region":
2298
+ return Bt.getByIds(n);
2299
+ case "City":
2300
+ return Ie.getByIds(n);
2301
+ case "Seaport":
2302
+ return Pt.getByIds(n);
2303
+ case "Airport":
2304
+ return Lt.getByIds(n);
2305
+ case "Wharf":
2306
+ return Ft.getByIds(n);
2307
+ default:
2308
+ return A({
2309
+ [`${t.toLowerCase()}Ids`]: n,
2310
+ displayInfo: [t]
2311
+ });
2312
+ }
2313
+ }, os = {
2314
+ SEARCH_VERSION: br,
2315
+ searchByName: Ar,
2316
+ searchByIdWithType: Rr,
2317
+ country: xt,
2318
+ region: Bt,
2319
+ city: Ie,
2320
+ seaport: Pt,
2321
+ airport: Lt,
2322
+ wharf: Ft,
2323
+ /** 获取某个国家下的所有城市 */
2324
+ getCitiesByCountry: Ie.getCitiesByCountry,
2325
+ /** 获取某个城市下的子实体(港口、机场、码头等) */
2326
+ getChildrenByCity: (e, t, n) => A({ cityIds: [e], displayInfo: t, ...n })
2327
+ }, is = {
2328
+ Open: "GLOBAL_MODAL_OPEN",
2329
+ Close: "GLOBAL_MODAL_CLOSE",
2330
+ Submit: "GLOBAL_MODAL_SUBMIT"
2331
+ }, as = kt();
2332
+ export {
2333
+ is as MODAL_ACTION,
2334
+ Hr as createRequest,
2335
+ as as emitter,
2336
+ ss as getAirport,
2337
+ Vr as getById,
2338
+ gr as getByIds,
2339
+ Kr as getChildrenByCity,
2340
+ Wr as getCitiesByCountry,
2341
+ ts as getCity,
2342
+ Zr as getContinent,
2343
+ es as getCountry,
2344
+ It as getIsEn,
2345
+ ns as getProvince,
2346
+ rs as getSeaport,
2347
+ Ot as getSharedConfig,
2348
+ Jr as initSharedConfig,
2349
+ os as locationSearchV2,
2350
+ ye as search,
2351
+ Yr as searchAirportByName,
2352
+ Tt as searchByName,
2353
+ Gr as searchCityByName,
2354
+ Xr as searchCountryByName,
2355
+ Qr as searchSeaportByName
2356
+ };