@das-fed/utils 6.4.0-hot.6 → 6.4.0-hot.61

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