hplx-feature-library 1.0.178 → 1.0.180

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 (32) hide show
  1. package/dist/{APIAction-owCQeK4h.js → APIAction-CyDmLDGJ.js} +1 -1
  2. package/dist/{APIAction-GKwgCFa7.cjs → APIAction-CygaXp73.cjs} +1 -1
  3. package/dist/CommonConstant-BL0tq5l_.js +436 -0
  4. package/dist/CommonConstant-X6DHVEfC.cjs +1 -0
  5. package/dist/NineDots/index.js +1 -1
  6. package/dist/{NineDots-Q7DH5xQq.js → NineDots-sOxfzp6L.js} +15 -14
  7. package/dist/NineDots-wBuj1tLD.cjs +3 -0
  8. package/dist/PatientAddEdit/index.js +1 -1
  9. package/dist/PatientAddEdit-CATkoJRU.cjs +7 -0
  10. package/dist/{PatientAddEdit-MgBWiJqX.js → PatientAddEdit-Cg2AXnbZ.js} +17 -16
  11. package/dist/PatientPopup/index.js +1 -1
  12. package/dist/{PatientPopupContainer-BREW2AZX.cjs → PatientPopupContainer-BqclZ33g.cjs} +7 -7
  13. package/dist/{PatientPopupContainer-CyTTjYhk.js → PatientPopupContainer-Dkxulx92.js} +46 -45
  14. package/dist/{PrintModal-BR_tTgyn.js → PrintModal-B8tNBQAZ.js} +3 -2
  15. package/dist/{PrintModal-CaqANEG3.cjs → PrintModal-CUczXjjr.cjs} +6 -6
  16. package/dist/SearchPatients/index.js +1 -1
  17. package/dist/{SearchPatients-BEQ0kjtj.js → SearchPatients-BRtrWjT9.js} +2 -2
  18. package/dist/{SearchPatients-eiOJOnND.cjs → SearchPatients-GDi5ZvNl.cjs} +1 -1
  19. package/dist/UserProfile/index.js +1 -1
  20. package/dist/{UserProfile-Bs3EzSqu.js → UserProfile-C7U9iJ6G.js} +1 -1
  21. package/dist/{UserProfile-C4cNhkeg.cjs → UserProfile-CjBsl-R3.cjs} +1 -1
  22. package/dist/common-utils-Bo5b1GnC.js +1900 -0
  23. package/dist/common-utils-DviOTrwv.cjs +6 -0
  24. package/dist/constants/CommonConstant.d.ts +19 -0
  25. package/dist/index.js +5 -5
  26. package/dist/print-pdf/index.js +1 -1
  27. package/dist/types/NineDotsTypes.d.ts +2 -2
  28. package/package.json +1 -1
  29. package/dist/NineDots-Cy5GdMqh.cjs +0 -3
  30. package/dist/PatientAddEdit-D-PuyA4h.cjs +0 -7
  31. package/dist/common-utils-CDvwCtzy.js +0 -2328
  32. package/dist/common-utils-lI6oOpoS.cjs +0 -6
@@ -0,0 +1,1900 @@
1
+ import { B as Ne, g as tt, U as nt } from "./CommonConstant-BL0tq5l_.js";
2
+ import { d as q } from "./dayjs.min-B2cg6pUo.js";
3
+ var rt = /* @__PURE__ */ ((e) => (e.visitpad = "/md/viewPatientDashboard.php", e.consultations = "/md/viewPatientList.php", e.appointments = "/md/viewPatientAppointments.php", e.settings = "/md/viewPreferenceSettings.php", e.privateDb = "/md/viewPrivateDB.php", e.dashboardBase = "/", e.referEarn = "/md/inviteReferrals.php", e.teleConsults = "/md/viewRemoteAppointments.php", e.pricing = "/subscription/pricing", e.billSummary = "/subscription/bill-summary", e.pediatricsCalculator = "/md/viewPediatricCalculator.php", e))(rt || {}), st = /* @__PURE__ */ ((e) => (e.PRODUCTION = "PRODUCTION", e.STAGING = "STAGING", e.DEVELOPMENT = "DEVELOPMENT", e))(st || {});
4
+ function De(e, t) {
5
+ return function() {
6
+ return e.apply(t, arguments);
7
+ };
8
+ }
9
+ const { toString: ot } = Object.prototype, { getPrototypeOf: fe } = Object, { iterator: G, toStringTag: Pe } = Symbol, X = /* @__PURE__ */ ((e) => (t) => {
10
+ const n = ot.call(t);
11
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
12
+ })(/* @__PURE__ */ Object.create(null)), C = (e) => (e = e.toLowerCase(), (t) => X(t) === e), Q = (e) => (t) => typeof t === e, { isArray: U } = Array, M = Q("undefined");
13
+ function I(e) {
14
+ return e !== null && !M(e) && e.constructor !== null && !M(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
15
+ }
16
+ const Fe = C("ArrayBuffer");
17
+ function it(e) {
18
+ let t;
19
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Fe(e.buffer), t;
20
+ }
21
+ const at = Q("string"), A = Q("function"), Le = Q("number"), H = (e) => e !== null && typeof e == "object", ct = (e) => e === !0 || e === !1, V = (e) => {
22
+ if (X(e) !== "object")
23
+ return !1;
24
+ const t = fe(e);
25
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Pe in e) && !(G in e);
26
+ }, lt = (e) => {
27
+ if (!H(e) || I(e))
28
+ return !1;
29
+ try {
30
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
31
+ } catch {
32
+ return !1;
33
+ }
34
+ }, ut = C("Date"), ft = C("File"), dt = C("Blob"), pt = C("FileList"), ht = (e) => H(e) && A(e.pipe), mt = (e) => {
35
+ let t;
36
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = X(e)) === "formdata" || // detect form-data instance
37
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
38
+ }, yt = C("URLSearchParams"), [bt, wt, gt, Et] = ["ReadableStream", "Request", "Response", "Headers"].map(C), Rt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
39
+ function $(e, t, { allOwnKeys: n = !1 } = {}) {
40
+ if (e === null || typeof e > "u")
41
+ return;
42
+ let r, s;
43
+ if (typeof e != "object" && (e = [e]), U(e))
44
+ for (r = 0, s = e.length; r < s; r++)
45
+ t.call(null, e[r], r, e);
46
+ else {
47
+ if (I(e))
48
+ return;
49
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
50
+ let c;
51
+ for (r = 0; r < i; r++)
52
+ c = o[r], t.call(null, e[c], c, e);
53
+ }
54
+ }
55
+ function Be(e, t) {
56
+ if (I(e))
57
+ return null;
58
+ t = t.toLowerCase();
59
+ const n = Object.keys(e);
60
+ let r = n.length, s;
61
+ for (; r-- > 0; )
62
+ if (s = n[r], t === s.toLowerCase())
63
+ return s;
64
+ return null;
65
+ }
66
+ const L = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _e = (e) => !M(e) && e !== L;
67
+ function oe() {
68
+ const { caseless: e } = _e(this) && this || {}, t = {}, n = (r, s) => {
69
+ const o = e && Be(t, s) || s;
70
+ V(t[o]) && V(r) ? t[o] = oe(t[o], r) : V(r) ? t[o] = oe({}, r) : U(r) ? t[o] = r.slice() : t[o] = r;
71
+ };
72
+ for (let r = 0, s = arguments.length; r < s; r++)
73
+ arguments[r] && $(arguments[r], n);
74
+ return t;
75
+ }
76
+ const St = (e, t, n, { allOwnKeys: r } = {}) => ($(t, (s, o) => {
77
+ n && A(s) ? e[o] = De(s, n) : e[o] = s;
78
+ }, { allOwnKeys: r }), e), Tt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ot = (e, t, n, r) => {
79
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
80
+ value: t.prototype
81
+ }), n && Object.assign(e.prototype, n);
82
+ }, At = (e, t, n, r) => {
83
+ let s, o, i;
84
+ const c = {};
85
+ if (t = t || {}, e == null) return t;
86
+ do {
87
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
88
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
89
+ e = n !== !1 && fe(e);
90
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
91
+ return t;
92
+ }, xt = (e, t, n) => {
93
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
94
+ const r = e.indexOf(t, n);
95
+ return r !== -1 && r === n;
96
+ }, Ct = (e) => {
97
+ if (!e) return null;
98
+ if (U(e)) return e;
99
+ let t = e.length;
100
+ if (!Le(t)) return null;
101
+ const n = new Array(t);
102
+ for (; t-- > 0; )
103
+ n[t] = e[t];
104
+ return n;
105
+ }, Nt = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && fe(Uint8Array)), Dt = (e, t) => {
106
+ const r = (e && e[G]).call(e);
107
+ let s;
108
+ for (; (s = r.next()) && !s.done; ) {
109
+ const o = s.value;
110
+ t.call(e, o[0], o[1]);
111
+ }
112
+ }, Pt = (e, t) => {
113
+ let n;
114
+ const r = [];
115
+ for (; (n = e.exec(t)) !== null; )
116
+ r.push(n);
117
+ return r;
118
+ }, Ft = C("HTMLFormElement"), Lt = (e) => e.toLowerCase().replace(
119
+ /[-_\s]([a-z\d])(\w*)/g,
120
+ function(n, r, s) {
121
+ return r.toUpperCase() + s;
122
+ }
123
+ ), me = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Bt = C("RegExp"), Ue = (e, t) => {
124
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
125
+ $(n, (s, o) => {
126
+ let i;
127
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
128
+ }), Object.defineProperties(e, r);
129
+ }, _t = (e) => {
130
+ Ue(e, (t, n) => {
131
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
132
+ return !1;
133
+ const r = e[n];
134
+ if (A(r)) {
135
+ if (t.enumerable = !1, "writable" in t) {
136
+ t.writable = !1;
137
+ return;
138
+ }
139
+ t.set || (t.set = () => {
140
+ throw Error("Can not rewrite read-only method '" + n + "'");
141
+ });
142
+ }
143
+ });
144
+ }, Ut = (e, t) => {
145
+ const n = {}, r = (s) => {
146
+ s.forEach((o) => {
147
+ n[o] = !0;
148
+ });
149
+ };
150
+ return U(e) ? r(e) : r(String(e).split(t)), n;
151
+ }, kt = () => {
152
+ }, jt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
153
+ function qt(e) {
154
+ return !!(e && A(e.append) && e[Pe] === "FormData" && e[G]);
155
+ }
156
+ const Mt = (e) => {
157
+ const t = new Array(10), n = (r, s) => {
158
+ if (H(r)) {
159
+ if (t.indexOf(r) >= 0)
160
+ return;
161
+ if (I(r))
162
+ return r;
163
+ if (!("toJSON" in r)) {
164
+ t[s] = r;
165
+ const o = U(r) ? [] : {};
166
+ return $(r, (i, c) => {
167
+ const f = n(i, s + 1);
168
+ !M(f) && (o[c] = f);
169
+ }), t[s] = void 0, o;
170
+ }
171
+ }
172
+ return r;
173
+ };
174
+ return n(e, 0);
175
+ }, It = C("AsyncFunction"), Ht = (e) => e && (H(e) || A(e)) && A(e.then) && A(e.catch), ke = ((e, t) => e ? setImmediate : t ? ((n, r) => (L.addEventListener("message", ({ source: s, data: o }) => {
176
+ s === L && o === n && r.length && r.shift()();
177
+ }, !1), (s) => {
178
+ r.push(s), L.postMessage(n, "*");
179
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
180
+ typeof setImmediate == "function",
181
+ A(L.postMessage)
182
+ ), $t = typeof queueMicrotask < "u" ? queueMicrotask.bind(L) : typeof process < "u" && process.nextTick || ke, zt = (e) => e != null && A(e[G]), a = {
183
+ isArray: U,
184
+ isArrayBuffer: Fe,
185
+ isBuffer: I,
186
+ isFormData: mt,
187
+ isArrayBufferView: it,
188
+ isString: at,
189
+ isNumber: Le,
190
+ isBoolean: ct,
191
+ isObject: H,
192
+ isPlainObject: V,
193
+ isEmptyObject: lt,
194
+ isReadableStream: bt,
195
+ isRequest: wt,
196
+ isResponse: gt,
197
+ isHeaders: Et,
198
+ isUndefined: M,
199
+ isDate: ut,
200
+ isFile: ft,
201
+ isBlob: dt,
202
+ isRegExp: Bt,
203
+ isFunction: A,
204
+ isStream: ht,
205
+ isURLSearchParams: yt,
206
+ isTypedArray: Nt,
207
+ isFileList: pt,
208
+ forEach: $,
209
+ merge: oe,
210
+ extend: St,
211
+ trim: Rt,
212
+ stripBOM: Tt,
213
+ inherits: Ot,
214
+ toFlatObject: At,
215
+ kindOf: X,
216
+ kindOfTest: C,
217
+ endsWith: xt,
218
+ toArray: Ct,
219
+ forEachEntry: Dt,
220
+ matchAll: Pt,
221
+ isHTMLForm: Ft,
222
+ hasOwnProperty: me,
223
+ hasOwnProp: me,
224
+ // an alias to avoid ESLint no-prototype-builtins detection
225
+ reduceDescriptors: Ue,
226
+ freezeMethods: _t,
227
+ toObjectSet: Ut,
228
+ toCamelCase: Lt,
229
+ noop: kt,
230
+ toFiniteNumber: jt,
231
+ findKey: Be,
232
+ global: L,
233
+ isContextDefined: _e,
234
+ isSpecCompliantForm: qt,
235
+ toJSONObject: Mt,
236
+ isAsyncFn: It,
237
+ isThenable: Ht,
238
+ setImmediate: ke,
239
+ asap: $t,
240
+ isIterable: zt
241
+ };
242
+ function m(e, t, n, r, s) {
243
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
244
+ }
245
+ a.inherits(m, Error, {
246
+ toJSON: function() {
247
+ return {
248
+ // Standard
249
+ message: this.message,
250
+ name: this.name,
251
+ // Microsoft
252
+ description: this.description,
253
+ number: this.number,
254
+ // Mozilla
255
+ fileName: this.fileName,
256
+ lineNumber: this.lineNumber,
257
+ columnNumber: this.columnNumber,
258
+ stack: this.stack,
259
+ // Axios
260
+ config: a.toJSONObject(this.config),
261
+ code: this.code,
262
+ status: this.status
263
+ };
264
+ }
265
+ });
266
+ const je = m.prototype, qe = {};
267
+ [
268
+ "ERR_BAD_OPTION_VALUE",
269
+ "ERR_BAD_OPTION",
270
+ "ECONNABORTED",
271
+ "ETIMEDOUT",
272
+ "ERR_NETWORK",
273
+ "ERR_FR_TOO_MANY_REDIRECTS",
274
+ "ERR_DEPRECATED",
275
+ "ERR_BAD_RESPONSE",
276
+ "ERR_BAD_REQUEST",
277
+ "ERR_CANCELED",
278
+ "ERR_NOT_SUPPORT",
279
+ "ERR_INVALID_URL"
280
+ // eslint-disable-next-line func-names
281
+ ].forEach((e) => {
282
+ qe[e] = { value: e };
283
+ });
284
+ Object.defineProperties(m, qe);
285
+ Object.defineProperty(je, "isAxiosError", { value: !0 });
286
+ m.from = (e, t, n, r, s, o) => {
287
+ const i = Object.create(je);
288
+ return a.toFlatObject(e, i, function(f) {
289
+ return f !== Error.prototype;
290
+ }, (c) => c !== "isAxiosError"), m.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
291
+ };
292
+ const Jt = null;
293
+ function ie(e) {
294
+ return a.isPlainObject(e) || a.isArray(e);
295
+ }
296
+ function Me(e) {
297
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
298
+ }
299
+ function ye(e, t, n) {
300
+ return e ? e.concat(t).map(function(s, o) {
301
+ return s = Me(s), !n && o ? "[" + s + "]" : s;
302
+ }).join(n ? "." : "") : t;
303
+ }
304
+ function Vt(e) {
305
+ return a.isArray(e) && !e.some(ie);
306
+ }
307
+ const Wt = a.toFlatObject(a, {}, null, function(t) {
308
+ return /^is[A-Z]/.test(t);
309
+ });
310
+ function Z(e, t, n) {
311
+ if (!a.isObject(e))
312
+ throw new TypeError("target must be an object");
313
+ t = t || new FormData(), n = a.toFlatObject(n, {
314
+ metaTokens: !0,
315
+ dots: !1,
316
+ indexes: !1
317
+ }, !1, function(y, h) {
318
+ return !a.isUndefined(h[y]);
319
+ });
320
+ const r = n.metaTokens, s = n.visitor || u, o = n.dots, i = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
321
+ if (!a.isFunction(s))
322
+ throw new TypeError("visitor must be a function");
323
+ function l(p) {
324
+ if (p === null) return "";
325
+ if (a.isDate(p))
326
+ return p.toISOString();
327
+ if (a.isBoolean(p))
328
+ return p.toString();
329
+ if (!f && a.isBlob(p))
330
+ throw new m("Blob is not supported. Use a Buffer instead.");
331
+ return a.isArrayBuffer(p) || a.isTypedArray(p) ? f && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
332
+ }
333
+ function u(p, y, h) {
334
+ let g = p;
335
+ if (p && !h && typeof p == "object") {
336
+ if (a.endsWith(y, "{}"))
337
+ y = r ? y : y.slice(0, -2), p = JSON.stringify(p);
338
+ else if (a.isArray(p) && Vt(p) || (a.isFileList(p) || a.endsWith(y, "[]")) && (g = a.toArray(p)))
339
+ return y = Me(y), g.forEach(function(S, D) {
340
+ !(a.isUndefined(S) || S === null) && t.append(
341
+ // eslint-disable-next-line no-nested-ternary
342
+ i === !0 ? ye([y], D, o) : i === null ? y : y + "[]",
343
+ l(S)
344
+ );
345
+ }), !1;
346
+ }
347
+ return ie(p) ? !0 : (t.append(ye(h, y, o), l(p)), !1);
348
+ }
349
+ const d = [], b = Object.assign(Wt, {
350
+ defaultVisitor: u,
351
+ convertValue: l,
352
+ isVisitable: ie
353
+ });
354
+ function E(p, y) {
355
+ if (!a.isUndefined(p)) {
356
+ if (d.indexOf(p) !== -1)
357
+ throw Error("Circular reference detected in " + y.join("."));
358
+ d.push(p), a.forEach(p, function(g, R) {
359
+ (!(a.isUndefined(g) || g === null) && s.call(
360
+ t,
361
+ g,
362
+ a.isString(R) ? R.trim() : R,
363
+ y,
364
+ b
365
+ )) === !0 && E(g, y ? y.concat(R) : [R]);
366
+ }), d.pop();
367
+ }
368
+ }
369
+ if (!a.isObject(e))
370
+ throw new TypeError("data must be an object");
371
+ return E(e), t;
372
+ }
373
+ function be(e) {
374
+ const t = {
375
+ "!": "%21",
376
+ "'": "%27",
377
+ "(": "%28",
378
+ ")": "%29",
379
+ "~": "%7E",
380
+ "%20": "+",
381
+ "%00": "\0"
382
+ };
383
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
384
+ return t[r];
385
+ });
386
+ }
387
+ function de(e, t) {
388
+ this._pairs = [], e && Z(e, this, t);
389
+ }
390
+ const Ie = de.prototype;
391
+ Ie.append = function(t, n) {
392
+ this._pairs.push([t, n]);
393
+ };
394
+ Ie.toString = function(t) {
395
+ const n = t ? function(r) {
396
+ return t.call(this, r, be);
397
+ } : be;
398
+ return this._pairs.map(function(s) {
399
+ return n(s[0]) + "=" + n(s[1]);
400
+ }, "").join("&");
401
+ };
402
+ function Kt(e) {
403
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
404
+ }
405
+ function He(e, t, n) {
406
+ if (!t)
407
+ return e;
408
+ const r = n && n.encode || Kt;
409
+ a.isFunction(n) && (n = {
410
+ serialize: n
411
+ });
412
+ const s = n && n.serialize;
413
+ let o;
414
+ if (s ? o = s(t, n) : o = a.isURLSearchParams(t) ? t.toString() : new de(t, n).toString(r), o) {
415
+ const i = e.indexOf("#");
416
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
417
+ }
418
+ return e;
419
+ }
420
+ class we {
421
+ constructor() {
422
+ this.handlers = [];
423
+ }
424
+ /**
425
+ * Add a new interceptor to the stack
426
+ *
427
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
428
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
429
+ *
430
+ * @return {Number} An ID used to remove interceptor later
431
+ */
432
+ use(t, n, r) {
433
+ return this.handlers.push({
434
+ fulfilled: t,
435
+ rejected: n,
436
+ synchronous: r ? r.synchronous : !1,
437
+ runWhen: r ? r.runWhen : null
438
+ }), this.handlers.length - 1;
439
+ }
440
+ /**
441
+ * Remove an interceptor from the stack
442
+ *
443
+ * @param {Number} id The ID that was returned by `use`
444
+ *
445
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
446
+ */
447
+ eject(t) {
448
+ this.handlers[t] && (this.handlers[t] = null);
449
+ }
450
+ /**
451
+ * Clear all interceptors from the stack
452
+ *
453
+ * @returns {void}
454
+ */
455
+ clear() {
456
+ this.handlers && (this.handlers = []);
457
+ }
458
+ /**
459
+ * Iterate over all the registered interceptors
460
+ *
461
+ * This method is particularly useful for skipping over any
462
+ * interceptors that may have become `null` calling `eject`.
463
+ *
464
+ * @param {Function} fn The function to call for each interceptor
465
+ *
466
+ * @returns {void}
467
+ */
468
+ forEach(t) {
469
+ a.forEach(this.handlers, function(r) {
470
+ r !== null && t(r);
471
+ });
472
+ }
473
+ }
474
+ const $e = {
475
+ silentJSONParsing: !0,
476
+ forcedJSONParsing: !0,
477
+ clarifyTimeoutError: !1
478
+ }, vt = typeof URLSearchParams < "u" ? URLSearchParams : de, Yt = typeof FormData < "u" ? FormData : null, Gt = typeof Blob < "u" ? Blob : null, Xt = {
479
+ isBrowser: !0,
480
+ classes: {
481
+ URLSearchParams: vt,
482
+ FormData: Yt,
483
+ Blob: Gt
484
+ },
485
+ protocols: ["http", "https", "file", "blob", "url", "data"]
486
+ }, pe = typeof window < "u" && typeof document < "u", ae = typeof navigator == "object" && navigator || void 0, Qt = pe && (!ae || ["ReactNative", "NativeScript", "NS"].indexOf(ae.product) < 0), Zt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
487
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", en = pe && window.location.href || "http://localhost", tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
488
+ __proto__: null,
489
+ hasBrowserEnv: pe,
490
+ hasStandardBrowserEnv: Qt,
491
+ hasStandardBrowserWebWorkerEnv: Zt,
492
+ navigator: ae,
493
+ origin: en
494
+ }, Symbol.toStringTag, { value: "Module" })), T = {
495
+ ...tn,
496
+ ...Xt
497
+ };
498
+ function nn(e, t) {
499
+ return Z(e, new T.classes.URLSearchParams(), {
500
+ visitor: function(n, r, s, o) {
501
+ return T.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
502
+ },
503
+ ...t
504
+ });
505
+ }
506
+ function rn(e) {
507
+ return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
508
+ }
509
+ function sn(e) {
510
+ const t = {}, n = Object.keys(e);
511
+ let r;
512
+ const s = n.length;
513
+ let o;
514
+ for (r = 0; r < s; r++)
515
+ o = n[r], t[o] = e[o];
516
+ return t;
517
+ }
518
+ function ze(e) {
519
+ function t(n, r, s, o) {
520
+ let i = n[o++];
521
+ if (i === "__proto__") return !0;
522
+ const c = Number.isFinite(+i), f = o >= n.length;
523
+ return i = !i && a.isArray(s) ? s.length : i, f ? (a.hasOwnProp(s, i) ? s[i] = [s[i], r] : s[i] = r, !c) : ((!s[i] || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = sn(s[i])), !c);
524
+ }
525
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
526
+ const n = {};
527
+ return a.forEachEntry(e, (r, s) => {
528
+ t(rn(r), s, n, 0);
529
+ }), n;
530
+ }
531
+ return null;
532
+ }
533
+ function on(e, t, n) {
534
+ if (a.isString(e))
535
+ try {
536
+ return (t || JSON.parse)(e), a.trim(e);
537
+ } catch (r) {
538
+ if (r.name !== "SyntaxError")
539
+ throw r;
540
+ }
541
+ return (n || JSON.stringify)(e);
542
+ }
543
+ const z = {
544
+ transitional: $e,
545
+ adapter: ["xhr", "http", "fetch"],
546
+ transformRequest: [function(t, n) {
547
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
548
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
549
+ return s ? JSON.stringify(ze(t)) : t;
550
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
551
+ return t;
552
+ if (a.isArrayBufferView(t))
553
+ return t.buffer;
554
+ if (a.isURLSearchParams(t))
555
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
556
+ let c;
557
+ if (o) {
558
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
559
+ return nn(t, this.formSerializer).toString();
560
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
561
+ const f = this.env && this.env.FormData;
562
+ return Z(
563
+ c ? { "files[]": t } : t,
564
+ f && new f(),
565
+ this.formSerializer
566
+ );
567
+ }
568
+ }
569
+ return o || s ? (n.setContentType("application/json", !1), on(t)) : t;
570
+ }],
571
+ transformResponse: [function(t) {
572
+ const n = this.transitional || z.transitional, r = n && n.forcedJSONParsing, s = this.responseType === "json";
573
+ if (a.isResponse(t) || a.isReadableStream(t))
574
+ return t;
575
+ if (t && a.isString(t) && (r && !this.responseType || s)) {
576
+ const i = !(n && n.silentJSONParsing) && s;
577
+ try {
578
+ return JSON.parse(t);
579
+ } catch (c) {
580
+ if (i)
581
+ throw c.name === "SyntaxError" ? m.from(c, m.ERR_BAD_RESPONSE, this, null, this.response) : c;
582
+ }
583
+ }
584
+ return t;
585
+ }],
586
+ /**
587
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
588
+ * timeout is not created.
589
+ */
590
+ timeout: 0,
591
+ xsrfCookieName: "XSRF-TOKEN",
592
+ xsrfHeaderName: "X-XSRF-TOKEN",
593
+ maxContentLength: -1,
594
+ maxBodyLength: -1,
595
+ env: {
596
+ FormData: T.classes.FormData,
597
+ Blob: T.classes.Blob
598
+ },
599
+ validateStatus: function(t) {
600
+ return t >= 200 && t < 300;
601
+ },
602
+ headers: {
603
+ common: {
604
+ Accept: "application/json, text/plain, */*",
605
+ "Content-Type": void 0
606
+ }
607
+ }
608
+ };
609
+ a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
610
+ z.headers[e] = {};
611
+ });
612
+ const an = a.toObjectSet([
613
+ "age",
614
+ "authorization",
615
+ "content-length",
616
+ "content-type",
617
+ "etag",
618
+ "expires",
619
+ "from",
620
+ "host",
621
+ "if-modified-since",
622
+ "if-unmodified-since",
623
+ "last-modified",
624
+ "location",
625
+ "max-forwards",
626
+ "proxy-authorization",
627
+ "referer",
628
+ "retry-after",
629
+ "user-agent"
630
+ ]), cn = (e) => {
631
+ const t = {};
632
+ let n, r, s;
633
+ return e && e.split(`
634
+ `).forEach(function(i) {
635
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim(), !(!n || t[n] && an[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
636
+ }), t;
637
+ }, ge = Symbol("internals");
638
+ function j(e) {
639
+ return e && String(e).trim().toLowerCase();
640
+ }
641
+ function W(e) {
642
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(W) : String(e);
643
+ }
644
+ function ln(e) {
645
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
646
+ let r;
647
+ for (; r = n.exec(e); )
648
+ t[r[1]] = r[2];
649
+ return t;
650
+ }
651
+ const un = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
652
+ function ne(e, t, n, r, s) {
653
+ if (a.isFunction(r))
654
+ return r.call(this, t, n);
655
+ if (s && (t = n), !!a.isString(t)) {
656
+ if (a.isString(r))
657
+ return t.indexOf(r) !== -1;
658
+ if (a.isRegExp(r))
659
+ return r.test(t);
660
+ }
661
+ }
662
+ function fn(e) {
663
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
664
+ }
665
+ function dn(e, t) {
666
+ const n = a.toCamelCase(" " + t);
667
+ ["get", "set", "has"].forEach((r) => {
668
+ Object.defineProperty(e, r + n, {
669
+ value: function(s, o, i) {
670
+ return this[r].call(this, t, s, o, i);
671
+ },
672
+ configurable: !0
673
+ });
674
+ });
675
+ }
676
+ let x = class {
677
+ constructor(t) {
678
+ t && this.set(t);
679
+ }
680
+ set(t, n, r) {
681
+ const s = this;
682
+ function o(c, f, l) {
683
+ const u = j(f);
684
+ if (!u)
685
+ throw new Error("header name must be a non-empty string");
686
+ const d = a.findKey(s, u);
687
+ (!d || s[d] === void 0 || l === !0 || l === void 0 && s[d] !== !1) && (s[d || f] = W(c));
688
+ }
689
+ const i = (c, f) => a.forEach(c, (l, u) => o(l, u, f));
690
+ if (a.isPlainObject(t) || t instanceof this.constructor)
691
+ i(t, n);
692
+ else if (a.isString(t) && (t = t.trim()) && !un(t))
693
+ i(cn(t), n);
694
+ else if (a.isObject(t) && a.isIterable(t)) {
695
+ let c = {}, f, l;
696
+ for (const u of t) {
697
+ if (!a.isArray(u))
698
+ throw TypeError("Object iterator must return a key-value pair");
699
+ c[l = u[0]] = (f = c[l]) ? a.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
700
+ }
701
+ i(c, n);
702
+ } else
703
+ t != null && o(n, t, r);
704
+ return this;
705
+ }
706
+ get(t, n) {
707
+ if (t = j(t), t) {
708
+ const r = a.findKey(this, t);
709
+ if (r) {
710
+ const s = this[r];
711
+ if (!n)
712
+ return s;
713
+ if (n === !0)
714
+ return ln(s);
715
+ if (a.isFunction(n))
716
+ return n.call(this, s, r);
717
+ if (a.isRegExp(n))
718
+ return n.exec(s);
719
+ throw new TypeError("parser must be boolean|regexp|function");
720
+ }
721
+ }
722
+ }
723
+ has(t, n) {
724
+ if (t = j(t), t) {
725
+ const r = a.findKey(this, t);
726
+ return !!(r && this[r] !== void 0 && (!n || ne(this, this[r], r, n)));
727
+ }
728
+ return !1;
729
+ }
730
+ delete(t, n) {
731
+ const r = this;
732
+ let s = !1;
733
+ function o(i) {
734
+ if (i = j(i), i) {
735
+ const c = a.findKey(r, i);
736
+ c && (!n || ne(r, r[c], c, n)) && (delete r[c], s = !0);
737
+ }
738
+ }
739
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
740
+ }
741
+ clear(t) {
742
+ const n = Object.keys(this);
743
+ let r = n.length, s = !1;
744
+ for (; r--; ) {
745
+ const o = n[r];
746
+ (!t || ne(this, this[o], o, t, !0)) && (delete this[o], s = !0);
747
+ }
748
+ return s;
749
+ }
750
+ normalize(t) {
751
+ const n = this, r = {};
752
+ return a.forEach(this, (s, o) => {
753
+ const i = a.findKey(r, o);
754
+ if (i) {
755
+ n[i] = W(s), delete n[o];
756
+ return;
757
+ }
758
+ const c = t ? fn(o) : String(o).trim();
759
+ c !== o && delete n[o], n[c] = W(s), r[c] = !0;
760
+ }), this;
761
+ }
762
+ concat(...t) {
763
+ return this.constructor.concat(this, ...t);
764
+ }
765
+ toJSON(t) {
766
+ const n = /* @__PURE__ */ Object.create(null);
767
+ return a.forEach(this, (r, s) => {
768
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
769
+ }), n;
770
+ }
771
+ [Symbol.iterator]() {
772
+ return Object.entries(this.toJSON())[Symbol.iterator]();
773
+ }
774
+ toString() {
775
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
776
+ `);
777
+ }
778
+ getSetCookie() {
779
+ return this.get("set-cookie") || [];
780
+ }
781
+ get [Symbol.toStringTag]() {
782
+ return "AxiosHeaders";
783
+ }
784
+ static from(t) {
785
+ return t instanceof this ? t : new this(t);
786
+ }
787
+ static concat(t, ...n) {
788
+ const r = new this(t);
789
+ return n.forEach((s) => r.set(s)), r;
790
+ }
791
+ static accessor(t) {
792
+ const r = (this[ge] = this[ge] = {
793
+ accessors: {}
794
+ }).accessors, s = this.prototype;
795
+ function o(i) {
796
+ const c = j(i);
797
+ r[c] || (dn(s, i), r[c] = !0);
798
+ }
799
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
800
+ }
801
+ };
802
+ x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
+ a.reduceDescriptors(x.prototype, ({ value: e }, t) => {
804
+ let n = t[0].toUpperCase() + t.slice(1);
805
+ return {
806
+ get: () => e,
807
+ set(r) {
808
+ this[n] = r;
809
+ }
810
+ };
811
+ });
812
+ a.freezeMethods(x);
813
+ function re(e, t) {
814
+ const n = this || z, r = t || n, s = x.from(r.headers);
815
+ let o = r.data;
816
+ return a.forEach(e, function(c) {
817
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
818
+ }), s.normalize(), o;
819
+ }
820
+ function Je(e) {
821
+ return !!(e && e.__CANCEL__);
822
+ }
823
+ function k(e, t, n) {
824
+ m.call(this, e ?? "canceled", m.ERR_CANCELED, t, n), this.name = "CanceledError";
825
+ }
826
+ a.inherits(k, m, {
827
+ __CANCEL__: !0
828
+ });
829
+ function Ve(e, t, n) {
830
+ const r = n.config.validateStatus;
831
+ !n.status || !r || r(n.status) ? e(n) : t(new m(
832
+ "Request failed with status code " + n.status,
833
+ [m.ERR_BAD_REQUEST, m.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
834
+ n.config,
835
+ n.request,
836
+ n
837
+ ));
838
+ }
839
+ function pn(e) {
840
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
841
+ return t && t[1] || "";
842
+ }
843
+ function hn(e, t) {
844
+ e = e || 10;
845
+ const n = new Array(e), r = new Array(e);
846
+ let s = 0, o = 0, i;
847
+ return t = t !== void 0 ? t : 1e3, function(f) {
848
+ const l = Date.now(), u = r[o];
849
+ i || (i = l), n[s] = f, r[s] = l;
850
+ let d = o, b = 0;
851
+ for (; d !== s; )
852
+ b += n[d++], d = d % e;
853
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), l - i < t)
854
+ return;
855
+ const E = u && l - u;
856
+ return E ? Math.round(b * 1e3 / E) : void 0;
857
+ };
858
+ }
859
+ function mn(e, t) {
860
+ let n = 0, r = 1e3 / t, s, o;
861
+ const i = (l, u = Date.now()) => {
862
+ n = u, s = null, o && (clearTimeout(o), o = null), e(...l);
863
+ };
864
+ return [(...l) => {
865
+ const u = Date.now(), d = u - n;
866
+ d >= r ? i(l, u) : (s = l, o || (o = setTimeout(() => {
867
+ o = null, i(s);
868
+ }, r - d)));
869
+ }, () => s && i(s)];
870
+ }
871
+ const v = (e, t, n = 3) => {
872
+ let r = 0;
873
+ const s = hn(50, 250);
874
+ return mn((o) => {
875
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, f = i - r, l = s(f), u = i <= c;
876
+ r = i;
877
+ const d = {
878
+ loaded: i,
879
+ total: c,
880
+ progress: c ? i / c : void 0,
881
+ bytes: f,
882
+ rate: l || void 0,
883
+ estimated: l && c && u ? (c - i) / l : void 0,
884
+ event: o,
885
+ lengthComputable: c != null,
886
+ [t ? "download" : "upload"]: !0
887
+ };
888
+ e(d);
889
+ }, n);
890
+ }, Ee = (e, t) => {
891
+ const n = e != null;
892
+ return [(r) => t[0]({
893
+ lengthComputable: n,
894
+ total: e,
895
+ loaded: r
896
+ }), t[1]];
897
+ }, Re = (e) => (...t) => a.asap(() => e(...t)), yn = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, T.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
898
+ new URL(T.origin),
899
+ T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
900
+ ) : () => !0, bn = T.hasStandardBrowserEnv ? (
901
+ // Standard browser envs support document.cookie
902
+ {
903
+ write(e, t, n, r, s, o) {
904
+ const i = [e + "=" + encodeURIComponent(t)];
905
+ a.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), a.isString(r) && i.push("path=" + r), a.isString(s) && i.push("domain=" + s), o === !0 && i.push("secure"), document.cookie = i.join("; ");
906
+ },
907
+ read(e) {
908
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
909
+ return t ? decodeURIComponent(t[3]) : null;
910
+ },
911
+ remove(e) {
912
+ this.write(e, "", Date.now() - 864e5);
913
+ }
914
+ }
915
+ ) : (
916
+ // Non-standard browser env (web workers, react-native) lack needed support.
917
+ {
918
+ write() {
919
+ },
920
+ read() {
921
+ return null;
922
+ },
923
+ remove() {
924
+ }
925
+ }
926
+ );
927
+ function wn(e) {
928
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
929
+ }
930
+ function gn(e, t) {
931
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
932
+ }
933
+ function We(e, t, n) {
934
+ let r = !wn(t);
935
+ return e && (r || n == !1) ? gn(e, t) : t;
936
+ }
937
+ const Se = (e) => e instanceof x ? { ...e } : e;
938
+ function _(e, t) {
939
+ t = t || {};
940
+ const n = {};
941
+ function r(l, u, d, b) {
942
+ return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: b }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
943
+ }
944
+ function s(l, u, d, b) {
945
+ if (a.isUndefined(u)) {
946
+ if (!a.isUndefined(l))
947
+ return r(void 0, l, d, b);
948
+ } else return r(l, u, d, b);
949
+ }
950
+ function o(l, u) {
951
+ if (!a.isUndefined(u))
952
+ return r(void 0, u);
953
+ }
954
+ function i(l, u) {
955
+ if (a.isUndefined(u)) {
956
+ if (!a.isUndefined(l))
957
+ return r(void 0, l);
958
+ } else return r(void 0, u);
959
+ }
960
+ function c(l, u, d) {
961
+ if (d in t)
962
+ return r(l, u);
963
+ if (d in e)
964
+ return r(void 0, l);
965
+ }
966
+ const f = {
967
+ url: o,
968
+ method: o,
969
+ data: o,
970
+ baseURL: i,
971
+ transformRequest: i,
972
+ transformResponse: i,
973
+ paramsSerializer: i,
974
+ timeout: i,
975
+ timeoutMessage: i,
976
+ withCredentials: i,
977
+ withXSRFToken: i,
978
+ adapter: i,
979
+ responseType: i,
980
+ xsrfCookieName: i,
981
+ xsrfHeaderName: i,
982
+ onUploadProgress: i,
983
+ onDownloadProgress: i,
984
+ decompress: i,
985
+ maxContentLength: i,
986
+ maxBodyLength: i,
987
+ beforeRedirect: i,
988
+ transport: i,
989
+ httpAgent: i,
990
+ httpsAgent: i,
991
+ cancelToken: i,
992
+ socketPath: i,
993
+ responseEncoding: i,
994
+ validateStatus: c,
995
+ headers: (l, u, d) => s(Se(l), Se(u), d, !0)
996
+ };
997
+ return a.forEach(Object.keys({ ...e, ...t }), function(u) {
998
+ const d = f[u] || s, b = d(e[u], t[u], u);
999
+ a.isUndefined(b) && d !== c || (n[u] = b);
1000
+ }), n;
1001
+ }
1002
+ const Ke = (e) => {
1003
+ const t = _({}, e);
1004
+ let { data: n, withXSRFToken: r, xsrfHeaderName: s, xsrfCookieName: o, headers: i, auth: c } = t;
1005
+ t.headers = i = x.from(i), t.url = He(We(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && i.set(
1006
+ "Authorization",
1007
+ "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
+ );
1009
+ let f;
1010
+ if (a.isFormData(n)) {
1011
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv)
1012
+ i.setContentType(void 0);
1013
+ else if ((f = i.getContentType()) !== !1) {
1014
+ const [l, ...u] = f ? f.split(";").map((d) => d.trim()).filter(Boolean) : [];
1015
+ i.setContentType([l || "multipart/form-data", ...u].join("; "));
1016
+ }
1017
+ }
1018
+ if (T.hasStandardBrowserEnv && (r && a.isFunction(r) && (r = r(t)), r || r !== !1 && yn(t.url))) {
1019
+ const l = s && o && bn.read(o);
1020
+ l && i.set(s, l);
1021
+ }
1022
+ return t;
1023
+ }, En = typeof XMLHttpRequest < "u", Rn = En && function(e) {
1024
+ return new Promise(function(n, r) {
1025
+ const s = Ke(e);
1026
+ let o = s.data;
1027
+ const i = x.from(s.headers).normalize();
1028
+ let { responseType: c, onUploadProgress: f, onDownloadProgress: l } = s, u, d, b, E, p;
1029
+ function y() {
1030
+ E && E(), p && p(), s.cancelToken && s.cancelToken.unsubscribe(u), s.signal && s.signal.removeEventListener("abort", u);
1031
+ }
1032
+ let h = new XMLHttpRequest();
1033
+ h.open(s.method.toUpperCase(), s.url, !0), h.timeout = s.timeout;
1034
+ function g() {
1035
+ if (!h)
1036
+ return;
1037
+ const S = x.from(
1038
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
1039
+ ), O = {
1040
+ data: !c || c === "text" || c === "json" ? h.responseText : h.response,
1041
+ status: h.status,
1042
+ statusText: h.statusText,
1043
+ headers: S,
1044
+ config: e,
1045
+ request: h
1046
+ };
1047
+ Ve(function(F) {
1048
+ n(F), y();
1049
+ }, function(F) {
1050
+ r(F), y();
1051
+ }, O), h = null;
1052
+ }
1053
+ "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
1054
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
1055
+ }, h.onabort = function() {
1056
+ h && (r(new m("Request aborted", m.ECONNABORTED, e, h)), h = null);
1057
+ }, h.onerror = function() {
1058
+ r(new m("Network Error", m.ERR_NETWORK, e, h)), h = null;
1059
+ }, h.ontimeout = function() {
1060
+ let D = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1061
+ const O = s.transitional || $e;
1062
+ s.timeoutErrorMessage && (D = s.timeoutErrorMessage), r(new m(
1063
+ D,
1064
+ O.clarifyTimeoutError ? m.ETIMEDOUT : m.ECONNABORTED,
1065
+ e,
1066
+ h
1067
+ )), h = null;
1068
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in h && a.forEach(i.toJSON(), function(D, O) {
1069
+ h.setRequestHeader(O, D);
1070
+ }), a.isUndefined(s.withCredentials) || (h.withCredentials = !!s.withCredentials), c && c !== "json" && (h.responseType = s.responseType), l && ([b, p] = v(l, !0), h.addEventListener("progress", b)), f && h.upload && ([d, E] = v(f), h.upload.addEventListener("progress", d), h.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (u = (S) => {
1071
+ h && (r(!S || S.type ? new k(null, e, h) : S), h.abort(), h = null);
1072
+ }, s.cancelToken && s.cancelToken.subscribe(u), s.signal && (s.signal.aborted ? u() : s.signal.addEventListener("abort", u)));
1073
+ const R = pn(s.url);
1074
+ if (R && T.protocols.indexOf(R) === -1) {
1075
+ r(new m("Unsupported protocol " + R + ":", m.ERR_BAD_REQUEST, e));
1076
+ return;
1077
+ }
1078
+ h.send(o || null);
1079
+ });
1080
+ }, Sn = (e, t) => {
1081
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1082
+ if (t || n) {
1083
+ let r = new AbortController(), s;
1084
+ const o = function(l) {
1085
+ if (!s) {
1086
+ s = !0, c();
1087
+ const u = l instanceof Error ? l : this.reason;
1088
+ r.abort(u instanceof m ? u : new k(u instanceof Error ? u.message : u));
1089
+ }
1090
+ };
1091
+ let i = t && setTimeout(() => {
1092
+ i = null, o(new m(`timeout ${t} of ms exceeded`, m.ETIMEDOUT));
1093
+ }, t);
1094
+ const c = () => {
1095
+ e && (i && clearTimeout(i), i = null, e.forEach((l) => {
1096
+ l.unsubscribe ? l.unsubscribe(o) : l.removeEventListener("abort", o);
1097
+ }), e = null);
1098
+ };
1099
+ e.forEach((l) => l.addEventListener("abort", o));
1100
+ const { signal: f } = r;
1101
+ return f.unsubscribe = () => a.asap(c), f;
1102
+ }
1103
+ }, Tn = function* (e, t) {
1104
+ let n = e.byteLength;
1105
+ if (n < t) {
1106
+ yield e;
1107
+ return;
1108
+ }
1109
+ let r = 0, s;
1110
+ for (; r < n; )
1111
+ s = r + t, yield e.slice(r, s), r = s;
1112
+ }, On = async function* (e, t) {
1113
+ for await (const n of An(e))
1114
+ yield* Tn(n, t);
1115
+ }, An = async function* (e) {
1116
+ if (e[Symbol.asyncIterator]) {
1117
+ yield* e;
1118
+ return;
1119
+ }
1120
+ const t = e.getReader();
1121
+ try {
1122
+ for (; ; ) {
1123
+ const { done: n, value: r } = await t.read();
1124
+ if (n)
1125
+ break;
1126
+ yield r;
1127
+ }
1128
+ } finally {
1129
+ await t.cancel();
1130
+ }
1131
+ }, Te = (e, t, n, r) => {
1132
+ const s = On(e, t);
1133
+ let o = 0, i, c = (f) => {
1134
+ i || (i = !0, r && r(f));
1135
+ };
1136
+ return new ReadableStream({
1137
+ async pull(f) {
1138
+ try {
1139
+ const { done: l, value: u } = await s.next();
1140
+ if (l) {
1141
+ c(), f.close();
1142
+ return;
1143
+ }
1144
+ let d = u.byteLength;
1145
+ if (n) {
1146
+ let b = o += d;
1147
+ n(b);
1148
+ }
1149
+ f.enqueue(new Uint8Array(u));
1150
+ } catch (l) {
1151
+ throw c(l), l;
1152
+ }
1153
+ },
1154
+ cancel(f) {
1155
+ return c(f), s.return();
1156
+ }
1157
+ }, {
1158
+ highWaterMark: 2
1159
+ });
1160
+ }, ee = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ve = ee && typeof ReadableStream == "function", xn = ee && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Ye = (e, ...t) => {
1161
+ try {
1162
+ return !!e(...t);
1163
+ } catch {
1164
+ return !1;
1165
+ }
1166
+ }, Cn = ve && Ye(() => {
1167
+ let e = !1;
1168
+ const t = new Request(T.origin, {
1169
+ body: new ReadableStream(),
1170
+ method: "POST",
1171
+ get duplex() {
1172
+ return e = !0, "half";
1173
+ }
1174
+ }).headers.has("Content-Type");
1175
+ return e && !t;
1176
+ }), Oe = 64 * 1024, ce = ve && Ye(() => a.isReadableStream(new Response("").body)), Y = {
1177
+ stream: ce && ((e) => e.body)
1178
+ };
1179
+ ee && ((e) => {
1180
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1181
+ !Y[t] && (Y[t] = a.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1182
+ throw new m(`Response type '${t}' is not supported`, m.ERR_NOT_SUPPORT, r);
1183
+ });
1184
+ });
1185
+ })(new Response());
1186
+ const Nn = async (e) => {
1187
+ if (e == null)
1188
+ return 0;
1189
+ if (a.isBlob(e))
1190
+ return e.size;
1191
+ if (a.isSpecCompliantForm(e))
1192
+ return (await new Request(T.origin, {
1193
+ method: "POST",
1194
+ body: e
1195
+ }).arrayBuffer()).byteLength;
1196
+ if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
1197
+ return e.byteLength;
1198
+ if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
1199
+ return (await xn(e)).byteLength;
1200
+ }, Dn = async (e, t) => {
1201
+ const n = a.toFiniteNumber(e.getContentLength());
1202
+ return n ?? Nn(t);
1203
+ }, Pn = ee && (async (e) => {
1204
+ let {
1205
+ url: t,
1206
+ method: n,
1207
+ data: r,
1208
+ signal: s,
1209
+ cancelToken: o,
1210
+ timeout: i,
1211
+ onDownloadProgress: c,
1212
+ onUploadProgress: f,
1213
+ responseType: l,
1214
+ headers: u,
1215
+ withCredentials: d = "same-origin",
1216
+ fetchOptions: b
1217
+ } = Ke(e);
1218
+ l = l ? (l + "").toLowerCase() : "text";
1219
+ let E = Sn([s, o && o.toAbortSignal()], i), p;
1220
+ const y = E && E.unsubscribe && (() => {
1221
+ E.unsubscribe();
1222
+ });
1223
+ let h;
1224
+ try {
1225
+ if (f && Cn && n !== "get" && n !== "head" && (h = await Dn(u, r)) !== 0) {
1226
+ let O = new Request(t, {
1227
+ method: "POST",
1228
+ body: r,
1229
+ duplex: "half"
1230
+ }), P;
1231
+ if (a.isFormData(r) && (P = O.headers.get("content-type")) && u.setContentType(P), O.body) {
1232
+ const [F, J] = Ee(
1233
+ h,
1234
+ v(Re(f))
1235
+ );
1236
+ r = Te(O.body, Oe, F, J);
1237
+ }
1238
+ }
1239
+ a.isString(d) || (d = d ? "include" : "omit");
1240
+ const g = "credentials" in Request.prototype;
1241
+ p = new Request(t, {
1242
+ ...b,
1243
+ signal: E,
1244
+ method: n.toUpperCase(),
1245
+ headers: u.normalize().toJSON(),
1246
+ body: r,
1247
+ duplex: "half",
1248
+ credentials: g ? d : void 0
1249
+ });
1250
+ let R = await fetch(p, b);
1251
+ const S = ce && (l === "stream" || l === "response");
1252
+ if (ce && (c || S && y)) {
1253
+ const O = {};
1254
+ ["status", "statusText", "headers"].forEach((he) => {
1255
+ O[he] = R[he];
1256
+ });
1257
+ const P = a.toFiniteNumber(R.headers.get("content-length")), [F, J] = c && Ee(
1258
+ P,
1259
+ v(Re(c), !0)
1260
+ ) || [];
1261
+ R = new Response(
1262
+ Te(R.body, Oe, F, () => {
1263
+ J && J(), y && y();
1264
+ }),
1265
+ O
1266
+ );
1267
+ }
1268
+ l = l || "text";
1269
+ let D = await Y[a.findKey(Y, l) || "text"](R, e);
1270
+ return !S && y && y(), await new Promise((O, P) => {
1271
+ Ve(O, P, {
1272
+ data: D,
1273
+ headers: x.from(R.headers),
1274
+ status: R.status,
1275
+ statusText: R.statusText,
1276
+ config: e,
1277
+ request: p
1278
+ });
1279
+ });
1280
+ } catch (g) {
1281
+ throw y && y(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
1282
+ new m("Network Error", m.ERR_NETWORK, e, p),
1283
+ {
1284
+ cause: g.cause || g
1285
+ }
1286
+ ) : m.from(g, g && g.code, e, p);
1287
+ }
1288
+ }), le = {
1289
+ http: Jt,
1290
+ xhr: Rn,
1291
+ fetch: Pn
1292
+ };
1293
+ a.forEach(le, (e, t) => {
1294
+ if (e) {
1295
+ try {
1296
+ Object.defineProperty(e, "name", { value: t });
1297
+ } catch {
1298
+ }
1299
+ Object.defineProperty(e, "adapterName", { value: t });
1300
+ }
1301
+ });
1302
+ const Ae = (e) => `- ${e}`, Fn = (e) => a.isFunction(e) || e === null || e === !1, Ge = {
1303
+ getAdapter: (e) => {
1304
+ e = a.isArray(e) ? e : [e];
1305
+ const { length: t } = e;
1306
+ let n, r;
1307
+ const s = {};
1308
+ for (let o = 0; o < t; o++) {
1309
+ n = e[o];
1310
+ let i;
1311
+ if (r = n, !Fn(n) && (r = le[(i = String(n)).toLowerCase()], r === void 0))
1312
+ throw new m(`Unknown adapter '${i}'`);
1313
+ if (r)
1314
+ break;
1315
+ s[i || "#" + o] = r;
1316
+ }
1317
+ if (!r) {
1318
+ const o = Object.entries(s).map(
1319
+ ([c, f]) => `adapter ${c} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1320
+ );
1321
+ let i = t ? o.length > 1 ? `since :
1322
+ ` + o.map(Ae).join(`
1323
+ `) : " " + Ae(o[0]) : "as no adapter specified";
1324
+ throw new m(
1325
+ "There is no suitable adapter to dispatch the request " + i,
1326
+ "ERR_NOT_SUPPORT"
1327
+ );
1328
+ }
1329
+ return r;
1330
+ },
1331
+ adapters: le
1332
+ };
1333
+ function se(e) {
1334
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1335
+ throw new k(null, e);
1336
+ }
1337
+ function xe(e) {
1338
+ return se(e), e.headers = x.from(e.headers), e.data = re.call(
1339
+ e,
1340
+ e.transformRequest
1341
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ge.getAdapter(e.adapter || z.adapter)(e).then(function(r) {
1342
+ return se(e), r.data = re.call(
1343
+ e,
1344
+ e.transformResponse,
1345
+ r
1346
+ ), r.headers = x.from(r.headers), r;
1347
+ }, function(r) {
1348
+ return Je(r) || (se(e), r && r.response && (r.response.data = re.call(
1349
+ e,
1350
+ e.transformResponse,
1351
+ r.response
1352
+ ), r.response.headers = x.from(r.response.headers))), Promise.reject(r);
1353
+ });
1354
+ }
1355
+ const Xe = "1.11.0", te = {};
1356
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1357
+ te[e] = function(r) {
1358
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1359
+ };
1360
+ });
1361
+ const Ce = {};
1362
+ te.transitional = function(t, n, r) {
1363
+ function s(o, i) {
1364
+ return "[Axios v" + Xe + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
1365
+ }
1366
+ return (o, i, c) => {
1367
+ if (t === !1)
1368
+ throw new m(
1369
+ s(i, " has been removed" + (n ? " in " + n : "")),
1370
+ m.ERR_DEPRECATED
1371
+ );
1372
+ return n && !Ce[i] && (Ce[i] = !0, console.warn(
1373
+ s(
1374
+ i,
1375
+ " has been deprecated since v" + n + " and will be removed in the near future"
1376
+ )
1377
+ )), t ? t(o, i, c) : !0;
1378
+ };
1379
+ };
1380
+ te.spelling = function(t) {
1381
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1382
+ };
1383
+ function Ln(e, t, n) {
1384
+ if (typeof e != "object")
1385
+ throw new m("options must be an object", m.ERR_BAD_OPTION_VALUE);
1386
+ const r = Object.keys(e);
1387
+ let s = r.length;
1388
+ for (; s-- > 0; ) {
1389
+ const o = r[s], i = t[o];
1390
+ if (i) {
1391
+ const c = e[o], f = c === void 0 || i(c, o, e);
1392
+ if (f !== !0)
1393
+ throw new m("option " + o + " must be " + f, m.ERR_BAD_OPTION_VALUE);
1394
+ continue;
1395
+ }
1396
+ if (n !== !0)
1397
+ throw new m("Unknown option " + o, m.ERR_BAD_OPTION);
1398
+ }
1399
+ }
1400
+ const K = {
1401
+ assertOptions: Ln,
1402
+ validators: te
1403
+ }, N = K.validators;
1404
+ let B = class {
1405
+ constructor(t) {
1406
+ this.defaults = t || {}, this.interceptors = {
1407
+ request: new we(),
1408
+ response: new we()
1409
+ };
1410
+ }
1411
+ /**
1412
+ * Dispatch a request
1413
+ *
1414
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1415
+ * @param {?Object} config
1416
+ *
1417
+ * @returns {Promise} The Promise to be fulfilled
1418
+ */
1419
+ async request(t, n) {
1420
+ try {
1421
+ return await this._request(t, n);
1422
+ } catch (r) {
1423
+ if (r instanceof Error) {
1424
+ let s = {};
1425
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
1426
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
1427
+ try {
1428
+ r.stack ? o && !String(r.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (r.stack += `
1429
+ ` + o) : r.stack = o;
1430
+ } catch {
1431
+ }
1432
+ }
1433
+ throw r;
1434
+ }
1435
+ }
1436
+ _request(t, n) {
1437
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = _(this.defaults, n);
1438
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
1439
+ r !== void 0 && K.assertOptions(r, {
1440
+ silentJSONParsing: N.transitional(N.boolean),
1441
+ forcedJSONParsing: N.transitional(N.boolean),
1442
+ clarifyTimeoutError: N.transitional(N.boolean)
1443
+ }, !1), s != null && (a.isFunction(s) ? n.paramsSerializer = {
1444
+ serialize: s
1445
+ } : K.assertOptions(s, {
1446
+ encode: N.function,
1447
+ serialize: N.function
1448
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), K.assertOptions(n, {
1449
+ baseUrl: N.spelling("baseURL"),
1450
+ withXsrfToken: N.spelling("withXSRFToken")
1451
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1452
+ let i = o && a.merge(
1453
+ o.common,
1454
+ o[n.method]
1455
+ );
1456
+ o && a.forEach(
1457
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1458
+ (p) => {
1459
+ delete o[p];
1460
+ }
1461
+ ), n.headers = x.concat(i, o);
1462
+ const c = [];
1463
+ let f = !0;
1464
+ this.interceptors.request.forEach(function(y) {
1465
+ typeof y.runWhen == "function" && y.runWhen(n) === !1 || (f = f && y.synchronous, c.unshift(y.fulfilled, y.rejected));
1466
+ });
1467
+ const l = [];
1468
+ this.interceptors.response.forEach(function(y) {
1469
+ l.push(y.fulfilled, y.rejected);
1470
+ });
1471
+ let u, d = 0, b;
1472
+ if (!f) {
1473
+ const p = [xe.bind(this), void 0];
1474
+ for (p.unshift(...c), p.push(...l), b = p.length, u = Promise.resolve(n); d < b; )
1475
+ u = u.then(p[d++], p[d++]);
1476
+ return u;
1477
+ }
1478
+ b = c.length;
1479
+ let E = n;
1480
+ for (d = 0; d < b; ) {
1481
+ const p = c[d++], y = c[d++];
1482
+ try {
1483
+ E = p(E);
1484
+ } catch (h) {
1485
+ y.call(this, h);
1486
+ break;
1487
+ }
1488
+ }
1489
+ try {
1490
+ u = xe.call(this, E);
1491
+ } catch (p) {
1492
+ return Promise.reject(p);
1493
+ }
1494
+ for (d = 0, b = l.length; d < b; )
1495
+ u = u.then(l[d++], l[d++]);
1496
+ return u;
1497
+ }
1498
+ getUri(t) {
1499
+ t = _(this.defaults, t);
1500
+ const n = We(t.baseURL, t.url, t.allowAbsoluteUrls);
1501
+ return He(n, t.params, t.paramsSerializer);
1502
+ }
1503
+ };
1504
+ a.forEach(["delete", "get", "head", "options"], function(t) {
1505
+ B.prototype[t] = function(n, r) {
1506
+ return this.request(_(r || {}, {
1507
+ method: t,
1508
+ url: n,
1509
+ data: (r || {}).data
1510
+ }));
1511
+ };
1512
+ });
1513
+ a.forEach(["post", "put", "patch"], function(t) {
1514
+ function n(r) {
1515
+ return function(o, i, c) {
1516
+ return this.request(_(c || {}, {
1517
+ method: t,
1518
+ headers: r ? {
1519
+ "Content-Type": "multipart/form-data"
1520
+ } : {},
1521
+ url: o,
1522
+ data: i
1523
+ }));
1524
+ };
1525
+ }
1526
+ B.prototype[t] = n(), B.prototype[t + "Form"] = n(!0);
1527
+ });
1528
+ let Bn = class Qe {
1529
+ constructor(t) {
1530
+ if (typeof t != "function")
1531
+ throw new TypeError("executor must be a function.");
1532
+ let n;
1533
+ this.promise = new Promise(function(o) {
1534
+ n = o;
1535
+ });
1536
+ const r = this;
1537
+ this.promise.then((s) => {
1538
+ if (!r._listeners) return;
1539
+ let o = r._listeners.length;
1540
+ for (; o-- > 0; )
1541
+ r._listeners[o](s);
1542
+ r._listeners = null;
1543
+ }), this.promise.then = (s) => {
1544
+ let o;
1545
+ const i = new Promise((c) => {
1546
+ r.subscribe(c), o = c;
1547
+ }).then(s);
1548
+ return i.cancel = function() {
1549
+ r.unsubscribe(o);
1550
+ }, i;
1551
+ }, t(function(o, i, c) {
1552
+ r.reason || (r.reason = new k(o, i, c), n(r.reason));
1553
+ });
1554
+ }
1555
+ /**
1556
+ * Throws a `CanceledError` if cancellation has been requested.
1557
+ */
1558
+ throwIfRequested() {
1559
+ if (this.reason)
1560
+ throw this.reason;
1561
+ }
1562
+ /**
1563
+ * Subscribe to the cancel signal
1564
+ */
1565
+ subscribe(t) {
1566
+ if (this.reason) {
1567
+ t(this.reason);
1568
+ return;
1569
+ }
1570
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1571
+ }
1572
+ /**
1573
+ * Unsubscribe from the cancel signal
1574
+ */
1575
+ unsubscribe(t) {
1576
+ if (!this._listeners)
1577
+ return;
1578
+ const n = this._listeners.indexOf(t);
1579
+ n !== -1 && this._listeners.splice(n, 1);
1580
+ }
1581
+ toAbortSignal() {
1582
+ const t = new AbortController(), n = (r) => {
1583
+ t.abort(r);
1584
+ };
1585
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1586
+ }
1587
+ /**
1588
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1589
+ * cancels the `CancelToken`.
1590
+ */
1591
+ static source() {
1592
+ let t;
1593
+ return {
1594
+ token: new Qe(function(s) {
1595
+ t = s;
1596
+ }),
1597
+ cancel: t
1598
+ };
1599
+ }
1600
+ };
1601
+ function _n(e) {
1602
+ return function(n) {
1603
+ return e.apply(null, n);
1604
+ };
1605
+ }
1606
+ function Un(e) {
1607
+ return a.isObject(e) && e.isAxiosError === !0;
1608
+ }
1609
+ const ue = {
1610
+ Continue: 100,
1611
+ SwitchingProtocols: 101,
1612
+ Processing: 102,
1613
+ EarlyHints: 103,
1614
+ Ok: 200,
1615
+ Created: 201,
1616
+ Accepted: 202,
1617
+ NonAuthoritativeInformation: 203,
1618
+ NoContent: 204,
1619
+ ResetContent: 205,
1620
+ PartialContent: 206,
1621
+ MultiStatus: 207,
1622
+ AlreadyReported: 208,
1623
+ ImUsed: 226,
1624
+ MultipleChoices: 300,
1625
+ MovedPermanently: 301,
1626
+ Found: 302,
1627
+ SeeOther: 303,
1628
+ NotModified: 304,
1629
+ UseProxy: 305,
1630
+ Unused: 306,
1631
+ TemporaryRedirect: 307,
1632
+ PermanentRedirect: 308,
1633
+ BadRequest: 400,
1634
+ Unauthorized: 401,
1635
+ PaymentRequired: 402,
1636
+ Forbidden: 403,
1637
+ NotFound: 404,
1638
+ MethodNotAllowed: 405,
1639
+ NotAcceptable: 406,
1640
+ ProxyAuthenticationRequired: 407,
1641
+ RequestTimeout: 408,
1642
+ Conflict: 409,
1643
+ Gone: 410,
1644
+ LengthRequired: 411,
1645
+ PreconditionFailed: 412,
1646
+ PayloadTooLarge: 413,
1647
+ UriTooLong: 414,
1648
+ UnsupportedMediaType: 415,
1649
+ RangeNotSatisfiable: 416,
1650
+ ExpectationFailed: 417,
1651
+ ImATeapot: 418,
1652
+ MisdirectedRequest: 421,
1653
+ UnprocessableEntity: 422,
1654
+ Locked: 423,
1655
+ FailedDependency: 424,
1656
+ TooEarly: 425,
1657
+ UpgradeRequired: 426,
1658
+ PreconditionRequired: 428,
1659
+ TooManyRequests: 429,
1660
+ RequestHeaderFieldsTooLarge: 431,
1661
+ UnavailableForLegalReasons: 451,
1662
+ InternalServerError: 500,
1663
+ NotImplemented: 501,
1664
+ BadGateway: 502,
1665
+ ServiceUnavailable: 503,
1666
+ GatewayTimeout: 504,
1667
+ HttpVersionNotSupported: 505,
1668
+ VariantAlsoNegotiates: 506,
1669
+ InsufficientStorage: 507,
1670
+ LoopDetected: 508,
1671
+ NotExtended: 510,
1672
+ NetworkAuthenticationRequired: 511
1673
+ };
1674
+ Object.entries(ue).forEach(([e, t]) => {
1675
+ ue[t] = e;
1676
+ });
1677
+ function Ze(e) {
1678
+ const t = new B(e), n = De(B.prototype.request, t);
1679
+ return a.extend(n, B.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
1680
+ return Ze(_(e, s));
1681
+ }, n;
1682
+ }
1683
+ const w = Ze(z);
1684
+ w.Axios = B;
1685
+ w.CanceledError = k;
1686
+ w.CancelToken = Bn;
1687
+ w.isCancel = Je;
1688
+ w.VERSION = Xe;
1689
+ w.toFormData = Z;
1690
+ w.AxiosError = m;
1691
+ w.Cancel = w.CanceledError;
1692
+ w.all = function(t) {
1693
+ return Promise.all(t);
1694
+ };
1695
+ w.spread = _n;
1696
+ w.isAxiosError = Un;
1697
+ w.mergeConfig = _;
1698
+ w.AxiosHeaders = x;
1699
+ w.formToJSON = (e) => ze(a.isHTMLForm(e) ? new FormData(e) : e);
1700
+ w.getAdapter = Ge.getAdapter;
1701
+ w.HttpStatusCode = ue;
1702
+ w.default = w;
1703
+ const {
1704
+ Axios: In,
1705
+ AxiosError: Hn,
1706
+ CanceledError: $n,
1707
+ isCancel: zn,
1708
+ CancelToken: Jn,
1709
+ VERSION: Vn,
1710
+ all: Wn,
1711
+ Cancel: Kn,
1712
+ isAxiosError: vn,
1713
+ spread: Yn,
1714
+ toFormData: Gn,
1715
+ AxiosHeaders: Xn,
1716
+ HttpStatusCode: Qn,
1717
+ formToJSON: Zn,
1718
+ getAdapter: er,
1719
+ mergeConfig: tr
1720
+ } = w, et = {
1721
+ timeout: 60 * 1e3,
1722
+ headers: {
1723
+ Accept: "application/json",
1724
+ "Content-Type": "application/json"
1725
+ }
1726
+ }, nr = (e = "", t) => {
1727
+ const n = w.create({
1728
+ ...et,
1729
+ baseURL: Ne[t].php_url
1730
+ });
1731
+ return n.interceptors.request.use(
1732
+ (r) => (e && r.headers && (r.headers.Authorization = `Bearer ${e}`), r),
1733
+ (r) => Promise.reject(r)
1734
+ ), n.interceptors.response.use(
1735
+ (r) => r,
1736
+ (r) => {
1737
+ const { response: s, request: o } = r || {};
1738
+ return Promise.reject(s || o);
1739
+ }
1740
+ ), n;
1741
+ }, rr = (e = "", t) => {
1742
+ const n = w.create({
1743
+ ...et,
1744
+ baseURL: Ne[t].rearch_url
1745
+ });
1746
+ return n.interceptors.request.use(
1747
+ (r) => (e && r.headers && (r.headers.Authorization = `Bearer ${e}`), r),
1748
+ (r) => Promise.reject(r)
1749
+ ), n.interceptors.response.use(
1750
+ (r) => r,
1751
+ (r) => {
1752
+ const { response: s, request: o } = r || {};
1753
+ return Promise.reject(s || o);
1754
+ }
1755
+ ), n;
1756
+ }, sr = (e) => {
1757
+ window.location.href = e;
1758
+ }, or = (e) => {
1759
+ const t = [];
1760
+ if (e.length)
1761
+ for (const n of e)
1762
+ t.push({ title: n, value: n });
1763
+ return t;
1764
+ }, ir = (e) => {
1765
+ const t = [];
1766
+ if (e.length)
1767
+ for (const n of e)
1768
+ t.push({
1769
+ doctor_id: n.doctor_id ? n.doctor_id : "",
1770
+ doctor_name: n.doctor_name ? n.doctor_name : "",
1771
+ label: n.doctor_name ? n.doctor_name : "",
1772
+ specialist: n.specialist || ""
1773
+ });
1774
+ return t;
1775
+ }, ar = (e) => {
1776
+ try {
1777
+ JSON.parse(e);
1778
+ } catch (t) {
1779
+ return console.log("Error parsing JSON:", t), !1;
1780
+ }
1781
+ return !0;
1782
+ }, cr = (e, t) => {
1783
+ if (t?.length) {
1784
+ const n = t.toLowerCase();
1785
+ if (e && (n === "day" || n === "days" || n === "weeks" || n === "months" || n === "years")) {
1786
+ e = e ? e.toString() : "";
1787
+ const r = q().subtract(Number(e.replace(/[^0-9]/g, "")), n);
1788
+ return q(r).format("YYYY-MM-DD");
1789
+ }
1790
+ return null;
1791
+ }
1792
+ return null;
1793
+ }, lr = (e) => {
1794
+ switch (e) {
1795
+ case "0":
1796
+ return "M";
1797
+ case "1":
1798
+ return "F";
1799
+ case "2":
1800
+ return "O";
1801
+ default:
1802
+ return "O";
1803
+ }
1804
+ }, ur = (e) => {
1805
+ const t = tt.find((n) => n.value === e);
1806
+ return t && t.text ? t.text.slice(0, 1) : "";
1807
+ }, fr = (e) => {
1808
+ let t = "";
1809
+ return new RegExp("^[0-9]{10}$").test(e) ? { isError: !1, msg: t } : (e.length < 10 ? t = "Please enter 10 digit number" : e.length > 10 ? t = "Invalid phone number. Should have at most 10 digits." : /^\d+$/.test(e) ? t = "Please enter 10 digit number" : t = "Invalid phone number. Should contain only digits.", {
1810
+ isError: !0,
1811
+ msg: t
1812
+ });
1813
+ }, dr = (e) => e ? new Date(e).toString() !== "Invalid Date" : !1;
1814
+ function pr(e) {
1815
+ const t = q(e).format("YYYY-MM-DD"), n = new Date(t), s = Math.abs((/* @__PURE__ */ new Date()).getTime() - n.getTime()), o = Math.ceil(s / (1e3 * 60 * 60 * 24));
1816
+ if (o <= 7)
1817
+ return `${o} days`;
1818
+ if (o <= 30)
1819
+ return `${Math.floor(o / 7)} weeks`;
1820
+ if (o <= 365)
1821
+ return `${Math.floor(o / 30)} months`;
1822
+ {
1823
+ const i = Math.floor(o / 365);
1824
+ return isNaN(i) ? "" : `${i} years`;
1825
+ }
1826
+ }
1827
+ const hr = (e, t = 300) => {
1828
+ let n = null;
1829
+ return function(...r) {
1830
+ n && clearTimeout(n), n = setTimeout(() => {
1831
+ n = null, e.apply(this, r);
1832
+ }, t);
1833
+ };
1834
+ }, mr = (e, t) => {
1835
+ if (t?.length) {
1836
+ const n = t.toLowerCase();
1837
+ if (e && (n === "day" || n === "days" || n === "weeks" || n === "months" || n === "years")) {
1838
+ e = e ? e.toString() : "";
1839
+ const r = q().subtract(Number(e.replace(/[^0-9]/g, "")), n);
1840
+ return q(r).format("YYYY-MM-DD");
1841
+ }
1842
+ return null;
1843
+ }
1844
+ return null;
1845
+ }, yr = () => {
1846
+ const { title: e, subTitle: t, type: n, time: r } = nt;
1847
+ typeof window.showToast == "function" && window.showToast(e, t, n, r);
1848
+ };
1849
+ function br(e = "") {
1850
+ return e ? e.charAt(0).toUpperCase() + e.slice(1) : "";
1851
+ }
1852
+ const wr = (e = "", t = "") => {
1853
+ const n = e.split(" ")[0].toLowerCase();
1854
+ window.location.href = `${window.location.origin}/subscription/${n}/${t}`;
1855
+ }, gr = (e, t = "") => {
1856
+ const n = t?.length && t?.trim() ? t?.trim() : "";
1857
+ try {
1858
+ if (typeof e == "string" && e?.length && e?.trim()) {
1859
+ const r = e.replace(/\s+/g, " ").trim().split(" ");
1860
+ return r?.length ? {
1861
+ duration: r[0] || "",
1862
+ durationType: r[1]?.length ? r[1] : n || ""
1863
+ } : {
1864
+ duration: "",
1865
+ durationType: ""
1866
+ };
1867
+ }
1868
+ return {
1869
+ duration: e ? `${e}` : "",
1870
+ durationType: n
1871
+ };
1872
+ } catch (r) {
1873
+ return console.log(r, "getDurationFormat"), {
1874
+ duration: "",
1875
+ durationType: ""
1876
+ };
1877
+ }
1878
+ };
1879
+ export {
1880
+ rt as E,
1881
+ rr as R,
1882
+ sr as a,
1883
+ yr as b,
1884
+ mr as c,
1885
+ hr as d,
1886
+ or as e,
1887
+ pr as f,
1888
+ ur as g,
1889
+ nr as h,
1890
+ ar as i,
1891
+ dr as j,
1892
+ lr as k,
1893
+ cr as l,
1894
+ br as m,
1895
+ st as n,
1896
+ gr as o,
1897
+ ir as p,
1898
+ wr as r,
1899
+ fr as v
1900
+ };