react-luminus-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +3 -0
  2. package/dist/.vite/manifest.json +133 -0
  3. package/dist/Modal-JLnYbEat.js +1 -0
  4. package/dist/Modal-_FnSEPRk.mjs +623 -0
  5. package/dist/SimpleTooltip-BjlbHsKC.mjs +1767 -0
  6. package/dist/SimpleTooltip-D9shMl1R.js +1 -0
  7. package/dist/components/EmployeePicker/EmployeeSearch/EmployeeSearch.d.ts +7 -0
  8. package/dist/components/EmployeePicker/EmployeeSearchModal/EmployeeSearchModal.d.ts +9 -0
  9. package/dist/components/EmployeePicker/comps/EmployeeSearchItem/EmployeeSearchItem.d.ts +7 -0
  10. package/dist/components/EmployeePicker/comps/index.d.ts +1 -0
  11. package/dist/components/EmployeePicker/index.d.ts +2 -0
  12. package/dist/components/Form/CheckInput/CheckInput.d.ts +11 -0
  13. package/dist/components/Form/Container/InputContainer.d.ts +8 -0
  14. package/dist/components/Form/EmployeePicker/EmployeePicker.d.ts +12 -0
  15. package/dist/components/Form/SelectInput/SelectInput.d.ts +17 -0
  16. package/dist/components/Form/TextInput/TextInput.d.ts +16 -0
  17. package/dist/components/Form/index.d.ts +4 -0
  18. package/dist/components/HookForm/CheckInput/HookFormCheckInput.d.ts +9 -0
  19. package/dist/components/HookForm/EmployeePicker/HookFormEmployeePicker.d.ts +9 -0
  20. package/dist/components/HookForm/FloatingSubmit/FloatingFormSubmit.d.ts +6 -0
  21. package/dist/components/HookForm/RadioInput/HookFormRadioInput.d.ts +9 -0
  22. package/dist/components/HookForm/SelectInput/HookFormSelectInput.d.ts +9 -0
  23. package/dist/components/HookForm/TextAreaInput/HookFormTextAreaInput.d.ts +9 -0
  24. package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +9 -0
  25. package/dist/components/HookForm/index.d.ts +7 -0
  26. package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +10 -0
  27. package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +8 -0
  28. package/dist/components/Tooltip/index.d.ts +2 -0
  29. package/dist/components/UserAvatar/AvatarIcon/AvatarIcon.d.ts +8 -0
  30. package/dist/components/UserAvatar/UserAvatarDropdown/UserAvatarDropdown.d.ts +7 -0
  31. package/dist/components/UserAvatar/UserAvatarToggle/UserAvatarToggle.d.ts +8 -0
  32. package/dist/components/UserAvatar/index.d.ts +2 -0
  33. package/dist/components/common/ApiFileDownloadButton/ApiFileDownloadButton.d.ts +9 -0
  34. package/dist/components/common/ConfirmDialog/ConfirmDialog.d.ts +3 -0
  35. package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +9 -0
  36. package/dist/components/common/HomeDashboard/comps/FreeSpaceWidget/FreeSpaceWidget.d.ts +6 -0
  37. package/dist/components/common/HomeDashboard/comps/index.d.ts +1 -0
  38. package/dist/components/common/HomeDashboard/hooks/useUserDashboard.d.ts +6 -0
  39. package/dist/components/common/Loading/Loading.d.ts +3 -0
  40. package/dist/components/common/MonthPicker/MonthPicker.d.ts +9 -0
  41. package/dist/components/common/Typography/Typography.d.ts +9 -0
  42. package/dist/components/common/index.d.ts +6 -0
  43. package/dist/constants-CT2hnPeO.js +1 -0
  44. package/dist/constants-CzNy5yO3.mjs +7 -0
  45. package/dist/contexts/confirm/ConfirmContext.d.ts +9 -0
  46. package/dist/contexts/confirm/ConfirmProvider.d.ts +6 -0
  47. package/dist/contexts/index.d.ts +6 -0
  48. package/dist/contexts/loading/LoadingContext.d.ts +8 -0
  49. package/dist/contexts/loading/LoadingProvider.d.ts +6 -0
  50. package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +15 -0
  51. package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +16 -0
  52. package/dist/contexts/user/UserContext.d.ts +9 -0
  53. package/dist/contexts/user/UserProvider.d.ts +6 -0
  54. package/dist/contexts.cjs.js +1 -0
  55. package/dist/contexts.d.ts +1 -0
  56. package/dist/contexts.es.js +86 -0
  57. package/dist/hasClass-3JW9Qluf.mjs +1482 -0
  58. package/dist/hasClass-6m1Qq_DA.js +20 -0
  59. package/dist/hooks/index.d.ts +5 -0
  60. package/dist/hooks/useAuth/useAuth.d.ts +7 -0
  61. package/dist/hooks/useAxios/useAxios.d.ts +3 -0
  62. package/dist/hooks/useConfirm/useConfirm.d.ts +8 -0
  63. package/dist/hooks/useNotifications/useNotifications.d.ts +4 -0
  64. package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +44 -0
  65. package/dist/hooks.cjs.js +1 -0
  66. package/dist/hooks.d.ts +1 -0
  67. package/dist/hooks.es.js +2781 -0
  68. package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +4 -0
  69. package/dist/layout/MainContainer/MainContainer.d.ts +4 -0
  70. package/dist/layout/SideContentBar/SideContentBar.d.ts +7 -0
  71. package/dist/layout/SideMenu/MenuItem/MenuItem.d.ts +10 -0
  72. package/dist/layout/SideMenu/SideMenu.d.ts +10 -0
  73. package/dist/layout/TopBar/TopBar.d.ts +7 -0
  74. package/dist/layout/index.d.ts +5 -0
  75. package/dist/layout.cjs.js +1 -0
  76. package/dist/layout.d.ts +1 -0
  77. package/dist/layout.es.js +164 -0
  78. package/dist/main.cjs.js +1 -0
  79. package/dist/main.d.ts +11 -0
  80. package/dist/main.es.js +2788 -0
  81. package/dist/models/index.d.ts +23 -0
  82. package/dist/models/prop-types/ContainerProps.d.ts +6 -0
  83. package/dist/models/prop-types/HookFormCheckInputProps.d.ts +7 -0
  84. package/dist/models/prop-types/HookFormEmployeePickerProps.d.ts +9 -0
  85. package/dist/models/prop-types/HookFormInputProps.d.ts +9 -0
  86. package/dist/models/prop-types/HookFormRadioInputProps.d.ts +7 -0
  87. package/dist/models/prop-types/HookFormSelectInputProps.d.ts +12 -0
  88. package/dist/models/prop-types/HookFormTextAreaInputProps.d.ts +9 -0
  89. package/dist/models/prop-types/HookFormTextInputProps.d.ts +11 -0
  90. package/dist/models/texts/AxiosTexts.d.ts +6 -0
  91. package/dist/models/texts/ConfirmTexts.d.ts +5 -0
  92. package/dist/models/texts/EmployeeSearchModalTexts.d.ts +6 -0
  93. package/dist/models/texts/FormValidationTexts.d.ts +5 -0
  94. package/dist/models/texts/HomeDashboardTexts.d.ts +5 -0
  95. package/dist/models/types/ApiErrorResult.d.ts +7 -0
  96. package/dist/models/types/DashboardConfig.d.ts +5 -0
  97. package/dist/models/types/DashboardWidget.d.ts +7 -0
  98. package/dist/models/types/DashboardWidgetConfig.d.ts +5 -0
  99. package/dist/models/types/EmployeeIndexModel.d.ts +14 -0
  100. package/dist/models/types/ErrorField.d.ts +5 -0
  101. package/dist/models/types/FormSelectOption.d.ts +5 -0
  102. package/dist/models/types/HookFormInputProps.d.ts +9 -0
  103. package/dist/models/types/MenuItemType.d.ts +9 -0
  104. package/dist/models/types/NameIdIntModel.d.ts +5 -0
  105. package/dist/models/types/NameIdStringModel.d.ts +5 -0
  106. package/dist/models/types/UserModel.d.ts +13 -0
  107. package/dist/style.css +1 -0
  108. package/dist/textUtils-9KFqOvA8.mjs +27 -0
  109. package/dist/textUtils-C0nqWp3S.js +1 -0
  110. package/dist/useAxios-BU-BqYrK.mjs +2663 -0
  111. package/dist/useAxios-ZEhq7C_H.js +212 -0
  112. package/dist/useConfirm-BazFQNRI.js +1 -0
  113. package/dist/useConfirm-DH9Pmz_w.mjs +18 -0
  114. package/dist/utils/apiErrorFields/apiErrorFieldsUtils.d.ts +4 -0
  115. package/dist/utils/date/dateUtils.d.ts +1 -0
  116. package/dist/utils/index.d.ts +4 -0
  117. package/dist/utils/object/objectUtils.d.ts +2 -0
  118. package/dist/utils/text/textUtils.d.ts +1 -0
  119. package/dist/utils.cjs.js +1 -0
  120. package/dist/utils.d.ts +1 -0
  121. package/dist/utils.es.js +137 -0
  122. package/package.json +94 -0
@@ -0,0 +1,2663 @@
1
+ import * as N from "react";
2
+ import Vt, { createContext as Se, useEffect as et, useCallback as Z, useState as Xr, useContext as Jt } from "react";
3
+ import { t as Zr, e as Qr } from "./textUtils-9KFqOvA8.mjs";
4
+ function en(e) {
5
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
+ }
7
+ var We = { exports: {} }, ne = {};
8
+ /**
9
+ * @license React
10
+ * react-jsx-runtime.production.min.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var kt;
18
+ function tn() {
19
+ if (kt)
20
+ return ne;
21
+ kt = 1;
22
+ var e = Vt, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function a(c, l, h) {
24
+ var p, f = {}, w = null, x = null;
25
+ h !== void 0 && (w = "" + h), l.key !== void 0 && (w = "" + l.key), l.ref !== void 0 && (x = l.ref);
26
+ for (p in l)
27
+ n.call(l, p) && !o.hasOwnProperty(p) && (f[p] = l[p]);
28
+ if (c && c.defaultProps)
29
+ for (p in l = c.defaultProps, l)
30
+ f[p] === void 0 && (f[p] = l[p]);
31
+ return { $$typeof: t, type: c, key: w, ref: x, props: f, _owner: s.current };
32
+ }
33
+ return ne.Fragment = r, ne.jsx = a, ne.jsxs = a, ne;
34
+ }
35
+ var oe = {};
36
+ /**
37
+ * @license React
38
+ * react-jsx-runtime.development.js
39
+ *
40
+ * Copyright (c) Facebook, Inc. and its affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */
45
+ var Nt;
46
+ function rn() {
47
+ return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var e = Vt, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), y = Symbol.iterator, b = "@@iterator";
49
+ function k(i) {
50
+ if (i === null || typeof i != "object")
51
+ return null;
52
+ var d = y && i[y] || i[b];
53
+ return typeof d == "function" ? d : null;
54
+ }
55
+ var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function O(i) {
57
+ {
58
+ for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), g = 1; g < d; g++)
59
+ m[g - 1] = arguments[g];
60
+ I("error", i, m);
61
+ }
62
+ }
63
+ function I(i, d, m) {
64
+ {
65
+ var g = T.ReactDebugCurrentFrame, R = g.getStackAddendum();
66
+ R !== "" && (d += "%s", m = m.concat([R]));
67
+ var S = m.map(function(v) {
68
+ return String(v);
69
+ });
70
+ S.unshift("Warning: " + d), Function.prototype.apply.call(console[i], console, S);
71
+ }
72
+ }
73
+ var Ne = !1, Er = !1, vr = !1, _r = !1, Rr = !1, at;
74
+ at = Symbol.for("react.module.reference");
75
+ function xr(i) {
76
+ return !!(typeof i == "string" || typeof i == "function" || i === n || i === o || Rr || i === s || i === h || i === p || _r || i === x || Ne || Er || vr || typeof i == "object" && i !== null && (i.$$typeof === w || i.$$typeof === f || i.$$typeof === a || i.$$typeof === c || i.$$typeof === l || // This needs to include all possible module reference object
77
+ // types supported by any Flight configuration anywhere since
78
+ // we don't know which Flight build this will end up being used
79
+ // with.
80
+ i.$$typeof === at || i.getModuleId !== void 0));
81
+ }
82
+ function Sr(i, d, m) {
83
+ var g = i.displayName;
84
+ if (g)
85
+ return g;
86
+ var R = d.displayName || d.name || "";
87
+ return R !== "" ? m + "(" + R + ")" : m;
88
+ }
89
+ function ct(i) {
90
+ return i.displayName || "Context";
91
+ }
92
+ function $(i) {
93
+ if (i == null)
94
+ return null;
95
+ if (typeof i.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof i == "function")
96
+ return i.displayName || i.name || null;
97
+ if (typeof i == "string")
98
+ return i;
99
+ switch (i) {
100
+ case n:
101
+ return "Fragment";
102
+ case r:
103
+ return "Portal";
104
+ case o:
105
+ return "Profiler";
106
+ case s:
107
+ return "StrictMode";
108
+ case h:
109
+ return "Suspense";
110
+ case p:
111
+ return "SuspenseList";
112
+ }
113
+ if (typeof i == "object")
114
+ switch (i.$$typeof) {
115
+ case c:
116
+ var d = i;
117
+ return ct(d) + ".Consumer";
118
+ case a:
119
+ var m = i;
120
+ return ct(m._context) + ".Provider";
121
+ case l:
122
+ return Sr(i, i.render, "ForwardRef");
123
+ case f:
124
+ var g = i.displayName || null;
125
+ return g !== null ? g : $(i.type) || "Memo";
126
+ case w: {
127
+ var R = i, S = R._payload, v = R._init;
128
+ try {
129
+ return $(v(S));
130
+ } catch {
131
+ return null;
132
+ }
133
+ }
134
+ }
135
+ return null;
136
+ }
137
+ var Y = Object.assign, te = 0, lt, ut, ft, dt, pt, ht, mt;
138
+ function yt() {
139
+ }
140
+ yt.__reactDisabledLog = !0;
141
+ function Or() {
142
+ {
143
+ if (te === 0) {
144
+ lt = console.log, ut = console.info, ft = console.warn, dt = console.error, pt = console.group, ht = console.groupCollapsed, mt = console.groupEnd;
145
+ var i = {
146
+ configurable: !0,
147
+ enumerable: !0,
148
+ value: yt,
149
+ writable: !0
150
+ };
151
+ Object.defineProperties(console, {
152
+ info: i,
153
+ log: i,
154
+ warn: i,
155
+ error: i,
156
+ group: i,
157
+ groupCollapsed: i,
158
+ groupEnd: i
159
+ });
160
+ }
161
+ te++;
162
+ }
163
+ }
164
+ function Tr() {
165
+ {
166
+ if (te--, te === 0) {
167
+ var i = {
168
+ configurable: !0,
169
+ enumerable: !0,
170
+ writable: !0
171
+ };
172
+ Object.defineProperties(console, {
173
+ log: Y({}, i, {
174
+ value: lt
175
+ }),
176
+ info: Y({}, i, {
177
+ value: ut
178
+ }),
179
+ warn: Y({}, i, {
180
+ value: ft
181
+ }),
182
+ error: Y({}, i, {
183
+ value: dt
184
+ }),
185
+ group: Y({}, i, {
186
+ value: pt
187
+ }),
188
+ groupCollapsed: Y({}, i, {
189
+ value: ht
190
+ }),
191
+ groupEnd: Y({}, i, {
192
+ value: mt
193
+ })
194
+ });
195
+ }
196
+ te < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
+ }
198
+ }
199
+ var je = T.ReactCurrentDispatcher, Fe;
200
+ function ue(i, d, m) {
201
+ {
202
+ if (Fe === void 0)
203
+ try {
204
+ throw Error();
205
+ } catch (R) {
206
+ var g = R.stack.trim().match(/\n( *(at )?)/);
207
+ Fe = g && g[1] || "";
208
+ }
209
+ return `
210
+ ` + Fe + i;
211
+ }
212
+ }
213
+ var De = !1, fe;
214
+ {
215
+ var Ar = typeof WeakMap == "function" ? WeakMap : Map;
216
+ fe = new Ar();
217
+ }
218
+ function bt(i, d) {
219
+ if (!i || De)
220
+ return "";
221
+ {
222
+ var m = fe.get(i);
223
+ if (m !== void 0)
224
+ return m;
225
+ }
226
+ var g;
227
+ De = !0;
228
+ var R = Error.prepareStackTrace;
229
+ Error.prepareStackTrace = void 0;
230
+ var S;
231
+ S = je.current, je.current = null, Or();
232
+ try {
233
+ if (d) {
234
+ var v = function() {
235
+ throw Error();
236
+ };
237
+ if (Object.defineProperty(v.prototype, "props", {
238
+ set: function() {
239
+ throw Error();
240
+ }
241
+ }), typeof Reflect == "object" && Reflect.construct) {
242
+ try {
243
+ Reflect.construct(v, []);
244
+ } catch (M) {
245
+ g = M;
246
+ }
247
+ Reflect.construct(i, [], v);
248
+ } else {
249
+ try {
250
+ v.call();
251
+ } catch (M) {
252
+ g = M;
253
+ }
254
+ i.call(v.prototype);
255
+ }
256
+ } else {
257
+ try {
258
+ throw Error();
259
+ } catch (M) {
260
+ g = M;
261
+ }
262
+ i();
263
+ }
264
+ } catch (M) {
265
+ if (M && g && typeof M.stack == "string") {
266
+ for (var E = M.stack.split(`
267
+ `), j = g.stack.split(`
268
+ `), C = E.length - 1, P = j.length - 1; C >= 1 && P >= 0 && E[C] !== j[P]; )
269
+ P--;
270
+ for (; C >= 1 && P >= 0; C--, P--)
271
+ if (E[C] !== j[P]) {
272
+ if (C !== 1 || P !== 1)
273
+ do
274
+ if (C--, P--, P < 0 || E[C] !== j[P]) {
275
+ var D = `
276
+ ` + E[C].replace(" at new ", " at ");
277
+ return i.displayName && D.includes("<anonymous>") && (D = D.replace("<anonymous>", i.displayName)), typeof i == "function" && fe.set(i, D), D;
278
+ }
279
+ while (C >= 1 && P >= 0);
280
+ break;
281
+ }
282
+ }
283
+ } finally {
284
+ De = !1, je.current = S, Tr(), Error.prepareStackTrace = R;
285
+ }
286
+ var X = i ? i.displayName || i.name : "", Pt = X ? ue(X) : "";
287
+ return typeof i == "function" && fe.set(i, Pt), Pt;
288
+ }
289
+ function Cr(i, d, m) {
290
+ return bt(i, !1);
291
+ }
292
+ function Pr(i) {
293
+ var d = i.prototype;
294
+ return !!(d && d.isReactComponent);
295
+ }
296
+ function de(i, d, m) {
297
+ if (i == null)
298
+ return "";
299
+ if (typeof i == "function")
300
+ return bt(i, Pr(i));
301
+ if (typeof i == "string")
302
+ return ue(i);
303
+ switch (i) {
304
+ case h:
305
+ return ue("Suspense");
306
+ case p:
307
+ return ue("SuspenseList");
308
+ }
309
+ if (typeof i == "object")
310
+ switch (i.$$typeof) {
311
+ case l:
312
+ return Cr(i.render);
313
+ case f:
314
+ return de(i.type, d, m);
315
+ case w: {
316
+ var g = i, R = g._payload, S = g._init;
317
+ try {
318
+ return de(S(R), d, m);
319
+ } catch {
320
+ }
321
+ }
322
+ }
323
+ return "";
324
+ }
325
+ var pe = Object.prototype.hasOwnProperty, gt = {}, wt = T.ReactDebugCurrentFrame;
326
+ function he(i) {
327
+ if (i) {
328
+ var d = i._owner, m = de(i.type, i._source, d ? d.type : null);
329
+ wt.setExtraStackFrame(m);
330
+ } else
331
+ wt.setExtraStackFrame(null);
332
+ }
333
+ function kr(i, d, m, g, R) {
334
+ {
335
+ var S = Function.call.bind(pe);
336
+ for (var v in i)
337
+ if (S(i, v)) {
338
+ var E = void 0;
339
+ try {
340
+ if (typeof i[v] != "function") {
341
+ var j = Error((g || "React class") + ": " + m + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw j.name = "Invariant Violation", j;
343
+ }
344
+ E = i[v](d, v, g, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ } catch (C) {
346
+ E = C;
347
+ }
348
+ E && !(E instanceof Error) && (he(R), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", m, v, typeof E), he(null)), E instanceof Error && !(E.message in gt) && (gt[E.message] = !0, he(R), O("Failed %s type: %s", m, E.message), he(null));
349
+ }
350
+ }
351
+ }
352
+ var Nr = Array.isArray;
353
+ function Le(i) {
354
+ return Nr(i);
355
+ }
356
+ function jr(i) {
357
+ {
358
+ var d = typeof Symbol == "function" && Symbol.toStringTag, m = d && i[Symbol.toStringTag] || i.constructor.name || "Object";
359
+ return m;
360
+ }
361
+ }
362
+ function Fr(i) {
363
+ try {
364
+ return Et(i), !1;
365
+ } catch {
366
+ return !0;
367
+ }
368
+ }
369
+ function Et(i) {
370
+ return "" + i;
371
+ }
372
+ function vt(i) {
373
+ if (Fr(i))
374
+ return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jr(i)), Et(i);
375
+ }
376
+ var re = T.ReactCurrentOwner, Dr = {
377
+ key: !0,
378
+ ref: !0,
379
+ __self: !0,
380
+ __source: !0
381
+ }, _t, Rt, Ie;
382
+ Ie = {};
383
+ function Lr(i) {
384
+ if (pe.call(i, "ref")) {
385
+ var d = Object.getOwnPropertyDescriptor(i, "ref").get;
386
+ if (d && d.isReactWarning)
387
+ return !1;
388
+ }
389
+ return i.ref !== void 0;
390
+ }
391
+ function Ir(i) {
392
+ if (pe.call(i, "key")) {
393
+ var d = Object.getOwnPropertyDescriptor(i, "key").get;
394
+ if (d && d.isReactWarning)
395
+ return !1;
396
+ }
397
+ return i.key !== void 0;
398
+ }
399
+ function Ur(i, d) {
400
+ if (typeof i.ref == "string" && re.current && d && re.current.stateNode !== d) {
401
+ var m = $(re.current.type);
402
+ Ie[m] || (O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(re.current.type), i.ref), Ie[m] = !0);
403
+ }
404
+ }
405
+ function Br(i, d) {
406
+ {
407
+ var m = function() {
408
+ _t || (_t = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
409
+ };
410
+ m.isReactWarning = !0, Object.defineProperty(i, "key", {
411
+ get: m,
412
+ configurable: !0
413
+ });
414
+ }
415
+ }
416
+ function $r(i, d) {
417
+ {
418
+ var m = function() {
419
+ Rt || (Rt = !0, O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
420
+ };
421
+ m.isReactWarning = !0, Object.defineProperty(i, "ref", {
422
+ get: m,
423
+ configurable: !0
424
+ });
425
+ }
426
+ }
427
+ var Mr = function(i, d, m, g, R, S, v) {
428
+ var E = {
429
+ // This tag allows us to uniquely identify this as a React Element
430
+ $$typeof: t,
431
+ // Built-in properties that belong on the element
432
+ type: i,
433
+ key: d,
434
+ ref: m,
435
+ props: v,
436
+ // Record the component responsible for creating this element.
437
+ _owner: S
438
+ };
439
+ return E._store = {}, Object.defineProperty(E._store, "validated", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !0,
443
+ value: !1
444
+ }), Object.defineProperty(E, "_self", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: g
449
+ }), Object.defineProperty(E, "_source", {
450
+ configurable: !1,
451
+ enumerable: !1,
452
+ writable: !1,
453
+ value: R
454
+ }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
455
+ };
456
+ function qr(i, d, m, g, R) {
457
+ {
458
+ var S, v = {}, E = null, j = null;
459
+ m !== void 0 && (vt(m), E = "" + m), Ir(d) && (vt(d.key), E = "" + d.key), Lr(d) && (j = d.ref, Ur(d, R));
460
+ for (S in d)
461
+ pe.call(d, S) && !Dr.hasOwnProperty(S) && (v[S] = d[S]);
462
+ if (i && i.defaultProps) {
463
+ var C = i.defaultProps;
464
+ for (S in C)
465
+ v[S] === void 0 && (v[S] = C[S]);
466
+ }
467
+ if (E || j) {
468
+ var P = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
469
+ E && Br(v, P), j && $r(v, P);
470
+ }
471
+ return Mr(i, E, j, R, g, re.current, v);
472
+ }
473
+ }
474
+ var Ue = T.ReactCurrentOwner, xt = T.ReactDebugCurrentFrame;
475
+ function K(i) {
476
+ if (i) {
477
+ var d = i._owner, m = de(i.type, i._source, d ? d.type : null);
478
+ xt.setExtraStackFrame(m);
479
+ } else
480
+ xt.setExtraStackFrame(null);
481
+ }
482
+ var Be;
483
+ Be = !1;
484
+ function $e(i) {
485
+ return typeof i == "object" && i !== null && i.$$typeof === t;
486
+ }
487
+ function St() {
488
+ {
489
+ if (Ue.current) {
490
+ var i = $(Ue.current.type);
491
+ if (i)
492
+ return `
493
+
494
+ Check the render method of \`` + i + "`.";
495
+ }
496
+ return "";
497
+ }
498
+ }
499
+ function Hr(i) {
500
+ {
501
+ if (i !== void 0) {
502
+ var d = i.fileName.replace(/^.*[\\\/]/, ""), m = i.lineNumber;
503
+ return `
504
+
505
+ Check your code at ` + d + ":" + m + ".";
506
+ }
507
+ return "";
508
+ }
509
+ }
510
+ var Ot = {};
511
+ function zr(i) {
512
+ {
513
+ var d = St();
514
+ if (!d) {
515
+ var m = typeof i == "string" ? i : i.displayName || i.name;
516
+ m && (d = `
517
+
518
+ Check the top-level render call using <` + m + ">.");
519
+ }
520
+ return d;
521
+ }
522
+ }
523
+ function Tt(i, d) {
524
+ {
525
+ if (!i._store || i._store.validated || i.key != null)
526
+ return;
527
+ i._store.validated = !0;
528
+ var m = zr(d);
529
+ if (Ot[m])
530
+ return;
531
+ Ot[m] = !0;
532
+ var g = "";
533
+ i && i._owner && i._owner !== Ue.current && (g = " It was passed a child from " + $(i._owner.type) + "."), K(i), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, g), K(null);
534
+ }
535
+ }
536
+ function At(i, d) {
537
+ {
538
+ if (typeof i != "object")
539
+ return;
540
+ if (Le(i))
541
+ for (var m = 0; m < i.length; m++) {
542
+ var g = i[m];
543
+ $e(g) && Tt(g, d);
544
+ }
545
+ else if ($e(i))
546
+ i._store && (i._store.validated = !0);
547
+ else if (i) {
548
+ var R = k(i);
549
+ if (typeof R == "function" && R !== i.entries)
550
+ for (var S = R.call(i), v; !(v = S.next()).done; )
551
+ $e(v.value) && Tt(v.value, d);
552
+ }
553
+ }
554
+ }
555
+ function Wr(i) {
556
+ {
557
+ var d = i.type;
558
+ if (d == null || typeof d == "string")
559
+ return;
560
+ var m;
561
+ if (typeof d == "function")
562
+ m = d.propTypes;
563
+ else if (typeof d == "object" && (d.$$typeof === l || // Note: Memo only checks outer props here.
564
+ // Inner props are checked in the reconciler.
565
+ d.$$typeof === f))
566
+ m = d.propTypes;
567
+ else
568
+ return;
569
+ if (m) {
570
+ var g = $(d);
571
+ kr(m, i.props, "prop", g, i);
572
+ } else if (d.PropTypes !== void 0 && !Be) {
573
+ Be = !0;
574
+ var R = $(d);
575
+ O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
576
+ }
577
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
+ }
579
+ }
580
+ function Vr(i) {
581
+ {
582
+ for (var d = Object.keys(i.props), m = 0; m < d.length; m++) {
583
+ var g = d[m];
584
+ if (g !== "children" && g !== "key") {
585
+ K(i), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), K(null);
586
+ break;
587
+ }
588
+ }
589
+ i.ref !== null && (K(i), O("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
590
+ }
591
+ }
592
+ function Ct(i, d, m, g, R, S) {
593
+ {
594
+ var v = xr(i);
595
+ if (!v) {
596
+ var E = "";
597
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
+ var j = Hr(R);
599
+ j ? E += j : E += St();
600
+ var C;
601
+ i === null ? C = "null" : Le(i) ? C = "array" : i !== void 0 && i.$$typeof === t ? (C = "<" + ($(i.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : C = typeof i, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", C, E);
602
+ }
603
+ var P = qr(i, d, m, R, S);
604
+ if (P == null)
605
+ return P;
606
+ if (v) {
607
+ var D = d.children;
608
+ if (D !== void 0)
609
+ if (g)
610
+ if (Le(D)) {
611
+ for (var X = 0; X < D.length; X++)
612
+ At(D[X], i);
613
+ Object.freeze && Object.freeze(D);
614
+ } else
615
+ O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ else
617
+ At(D, i);
618
+ }
619
+ return i === n ? Vr(P) : Wr(P), P;
620
+ }
621
+ }
622
+ function Jr(i, d, m) {
623
+ return Ct(i, d, m, !0);
624
+ }
625
+ function Yr(i, d, m) {
626
+ return Ct(i, d, m, !1);
627
+ }
628
+ var Gr = Yr, Kr = Jr;
629
+ oe.Fragment = n, oe.jsx = Gr, oe.jsxs = Kr;
630
+ }()), oe;
631
+ }
632
+ process.env.NODE_ENV === "production" ? We.exports = tn() : We.exports = rn();
633
+ var Ls = We.exports, Yt = { exports: {} };
634
+ /*!
635
+ Copyright (c) 2018 Jed Watson.
636
+ Licensed under the MIT License (MIT), see
637
+ http://jedwatson.github.io/classnames
638
+ */
639
+ (function(e) {
640
+ (function() {
641
+ var t = {}.hasOwnProperty;
642
+ function r() {
643
+ for (var o = "", a = 0; a < arguments.length; a++) {
644
+ var c = arguments[a];
645
+ c && (o = s(o, n(c)));
646
+ }
647
+ return o;
648
+ }
649
+ function n(o) {
650
+ if (typeof o == "string" || typeof o == "number")
651
+ return o;
652
+ if (typeof o != "object")
653
+ return "";
654
+ if (Array.isArray(o))
655
+ return r.apply(null, o);
656
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
657
+ return o.toString();
658
+ var a = "";
659
+ for (var c in o)
660
+ t.call(o, c) && o[c] && (a = s(a, c));
661
+ return a;
662
+ }
663
+ function s(o, a) {
664
+ return a ? o ? o + " " + a : o + a : o;
665
+ }
666
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
667
+ })();
668
+ })(Yt);
669
+ var nn = Yt.exports;
670
+ const Is = /* @__PURE__ */ en(nn), on = "_loading_14qfh_1", sn = "_spinner-grow_14qfh_10", an = "_second_14qfh_14", cn = "_third_14qfh_17", Us = {
671
+ loading: on,
672
+ "spinner-grow": "_spinner-grow_14qfh_10",
673
+ spinnerGrow: sn,
674
+ second: an,
675
+ third: cn
676
+ }, ln = "_h1_8gr7h_1", un = "_h3_8gr7h_8", fn = "_h6_8gr7h_15", dn = "_subtitle_8gr7h_22", pn = "_body_8gr7h_29", hn = "_body2_8gr7h_36", mn = "_caption_8gr7h_43", Bs = {
677
+ h1: ln,
678
+ h3: un,
679
+ h6: fn,
680
+ subtitle: dn,
681
+ body: pn,
682
+ body2: hn,
683
+ caption: mn
684
+ }, yn = "_widget_1sdw8_1", $s = {
685
+ widget: yn
686
+ }, bn = "_dashboard_1ikl9_1", gn = "_widgets-grid_1ikl9_1", wn = "_widget-wrapper_1ikl9_7", En = "_full-width_1ikl9_12", vn = "_widget-edit_1ikl9_15", _n = "_remove-icon_1ikl9_18", Rn = "_full-width-icon_1ikl9_25", xn = "_widget-edit-overlay_1ikl9_35", Ms = {
687
+ dashboard: bn,
688
+ "widgets-grid": "_widgets-grid_1ikl9_1",
689
+ widgetsGrid: gn,
690
+ "widget-wrapper": "_widget-wrapper_1ikl9_7",
691
+ widgetWrapper: wn,
692
+ "full-width": "_full-width_1ikl9_12",
693
+ fullWidth: En,
694
+ "widget-edit": "_widget-edit_1ikl9_15",
695
+ widgetEdit: vn,
696
+ "remove-icon": "_remove-icon_1ikl9_18",
697
+ removeIcon: _n,
698
+ "full-width-icon": "_full-width-icon_1ikl9_25",
699
+ fullWidthIcon: Rn,
700
+ "widget-edit-overlay": "_widget-edit-overlay_1ikl9_35",
701
+ widgetEditOverlay: xn
702
+ }, Gt = Se({
703
+ axiosInstance: {},
704
+ LinkComponent: {},
705
+ language: "",
706
+ axiosTexts: {},
707
+ confirmTexts: {},
708
+ formValidationTexts: {},
709
+ employeePickerModalTexts: {}
710
+ });
711
+ let Sn = { data: "" }, On = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || Sn, Tn = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, An = /\/\*[^]*?\*\/| +/g, jt = /\n+/g, V = (e, t) => {
712
+ let r = "", n = "", s = "";
713
+ for (let o in e) {
714
+ let a = e[o];
715
+ o[0] == "@" ? o[1] == "i" ? r = o + " " + a + ";" : n += o[1] == "f" ? V(a, o) : o + "{" + V(a, o[1] == "k" ? "" : t) + "}" : typeof a == "object" ? n += V(a, t ? t.replace(/([^,])+/g, (c) => o.replace(/(^:.*)|([^,])+/g, (l) => /&/.test(l) ? l.replace(/&/g, c) : c ? c + " " + l : l)) : o) : a != null && (o = /^--/.test(o) ? o : o.replace(/[A-Z]/g, "-$&").toLowerCase(), s += V.p ? V.p(o, a) : o + ":" + a + ";");
716
+ }
717
+ return r + (t && s ? t + "{" + s + "}" : s) + n;
718
+ }, q = {}, Kt = (e) => {
719
+ if (typeof e == "object") {
720
+ let t = "";
721
+ for (let r in e)
722
+ t += r + Kt(e[r]);
723
+ return t;
724
+ }
725
+ return e;
726
+ }, Cn = (e, t, r, n, s) => {
727
+ let o = Kt(e), a = q[o] || (q[o] = ((l) => {
728
+ let h = 0, p = 11;
729
+ for (; h < l.length; )
730
+ p = 101 * p + l.charCodeAt(h++) >>> 0;
731
+ return "go" + p;
732
+ })(o));
733
+ if (!q[a]) {
734
+ let l = o !== e ? e : ((h) => {
735
+ let p, f, w = [{}];
736
+ for (; p = Tn.exec(h.replace(An, "")); )
737
+ p[4] ? w.shift() : p[3] ? (f = p[3].replace(jt, " ").trim(), w.unshift(w[0][f] = w[0][f] || {})) : w[0][p[1]] = p[2].replace(jt, " ").trim();
738
+ return w[0];
739
+ })(e);
740
+ q[a] = V(s ? { ["@keyframes " + a]: l } : l, r ? "" : "." + a);
741
+ }
742
+ let c = r && q.g ? q.g : null;
743
+ return r && (q.g = q[a]), ((l, h, p, f) => {
744
+ f ? h.data = h.data.replace(f, l) : h.data.indexOf(l) === -1 && (h.data = p ? l + h.data : h.data + l);
745
+ })(q[a], t, n, c), a;
746
+ }, Pn = (e, t, r) => e.reduce((n, s, o) => {
747
+ let a = t[o];
748
+ if (a && a.call) {
749
+ let c = a(r), l = c && c.props && c.props.className || /^go/.test(c) && c;
750
+ a = l ? "." + l : c && typeof c == "object" ? c.props ? "" : V(c, "") : c === !1 ? "" : c;
751
+ }
752
+ return n + s + (a ?? "");
753
+ }, "");
754
+ function Oe(e) {
755
+ let t = this || {}, r = e.call ? e(t.p) : e;
756
+ return Cn(r.unshift ? r.raw ? Pn(r, [].slice.call(arguments, 1), t.p) : r.reduce((n, s) => Object.assign(n, s && s.call ? s(t.p) : s), {}) : r, On(t.target), t.g, t.o, t.k);
757
+ }
758
+ let Xt, Ve, Je;
759
+ Oe.bind({ g: 1 });
760
+ let z = Oe.bind({ k: 1 });
761
+ function kn(e, t, r, n) {
762
+ V.p = t, Xt = e, Ve = r, Je = n;
763
+ }
764
+ function J(e, t) {
765
+ let r = this || {};
766
+ return function() {
767
+ let n = arguments;
768
+ function s(o, a) {
769
+ let c = Object.assign({}, o), l = c.className || s.className;
770
+ r.p = Object.assign({ theme: Ve && Ve() }, c), r.o = / *go\d+/.test(l), c.className = Oe.apply(r, n) + (l ? " " + l : ""), t && (c.ref = a);
771
+ let h = e;
772
+ return e[0] && (h = c.as || e, delete c.as), Je && h[0] && Je(c), Xt(h, c);
773
+ }
774
+ return t ? t(s) : s;
775
+ };
776
+ }
777
+ var Nn = (e) => typeof e == "function", Re = (e, t) => Nn(e) ? e(t) : e, jn = /* @__PURE__ */ (() => {
778
+ let e = 0;
779
+ return () => (++e).toString();
780
+ })(), Zt = /* @__PURE__ */ (() => {
781
+ let e;
782
+ return () => {
783
+ if (e === void 0 && typeof window < "u") {
784
+ let t = matchMedia("(prefers-reduced-motion: reduce)");
785
+ e = !t || t.matches;
786
+ }
787
+ return e;
788
+ };
789
+ })(), Fn = 20, be = /* @__PURE__ */ new Map(), Dn = 1e3, Ft = (e) => {
790
+ if (be.has(e))
791
+ return;
792
+ let t = setTimeout(() => {
793
+ be.delete(e), G({ type: 4, toastId: e });
794
+ }, Dn);
795
+ be.set(e, t);
796
+ }, Ln = (e) => {
797
+ let t = be.get(e);
798
+ t && clearTimeout(t);
799
+ }, Ye = (e, t) => {
800
+ switch (t.type) {
801
+ case 0:
802
+ return { ...e, toasts: [t.toast, ...e.toasts].slice(0, Fn) };
803
+ case 1:
804
+ return t.toast.id && Ln(t.toast.id), { ...e, toasts: e.toasts.map((o) => o.id === t.toast.id ? { ...o, ...t.toast } : o) };
805
+ case 2:
806
+ let { toast: r } = t;
807
+ return e.toasts.find((o) => o.id === r.id) ? Ye(e, { type: 1, toast: r }) : Ye(e, { type: 0, toast: r });
808
+ case 3:
809
+ let { toastId: n } = t;
810
+ return n ? Ft(n) : e.toasts.forEach((o) => {
811
+ Ft(o.id);
812
+ }), { ...e, toasts: e.toasts.map((o) => o.id === n || n === void 0 ? { ...o, visible: !1 } : o) };
813
+ case 4:
814
+ return t.toastId === void 0 ? { ...e, toasts: [] } : { ...e, toasts: e.toasts.filter((o) => o.id !== t.toastId) };
815
+ case 5:
816
+ return { ...e, pausedAt: t.time };
817
+ case 6:
818
+ let s = t.time - (e.pausedAt || 0);
819
+ return { ...e, pausedAt: void 0, toasts: e.toasts.map((o) => ({ ...o, pauseDuration: o.pauseDuration + s })) };
820
+ }
821
+ }, ge = [], we = { toasts: [], pausedAt: void 0 }, G = (e) => {
822
+ we = Ye(we, e), ge.forEach((t) => {
823
+ t(we);
824
+ });
825
+ }, In = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, Un = (e = {}) => {
826
+ let [t, r] = Xr(we);
827
+ et(() => (ge.push(r), () => {
828
+ let s = ge.indexOf(r);
829
+ s > -1 && ge.splice(s, 1);
830
+ }), [t]);
831
+ let n = t.toasts.map((s) => {
832
+ var o, a;
833
+ return { ...e, ...e[s.type], ...s, duration: s.duration || ((o = e[s.type]) == null ? void 0 : o.duration) || (e == null ? void 0 : e.duration) || In[s.type], style: { ...e.style, ...(a = e[s.type]) == null ? void 0 : a.style, ...s.style } };
834
+ });
835
+ return { ...t, toasts: n };
836
+ }, Bn = (e, t = "blank", r) => ({ createdAt: Date.now(), visible: !0, type: t, ariaProps: { role: "status", "aria-live": "polite" }, message: e, pauseDuration: 0, ...r, id: (r == null ? void 0 : r.id) || jn() }), ae = (e) => (t, r) => {
837
+ let n = Bn(t, e, r);
838
+ return G({ type: 2, toast: n }), n.id;
839
+ }, F = (e, t) => ae("blank")(e, t);
840
+ F.error = ae("error");
841
+ F.success = ae("success");
842
+ F.loading = ae("loading");
843
+ F.custom = ae("custom");
844
+ F.dismiss = (e) => {
845
+ G({ type: 3, toastId: e });
846
+ };
847
+ F.remove = (e) => G({ type: 4, toastId: e });
848
+ F.promise = (e, t, r) => {
849
+ let n = F.loading(t.loading, { ...r, ...r == null ? void 0 : r.loading });
850
+ return e.then((s) => (F.success(Re(t.success, s), { id: n, ...r, ...r == null ? void 0 : r.success }), s)).catch((s) => {
851
+ F.error(Re(t.error, s), { id: n, ...r, ...r == null ? void 0 : r.error });
852
+ }), e;
853
+ };
854
+ var $n = (e, t) => {
855
+ G({ type: 1, toast: { id: e, height: t } });
856
+ }, Mn = () => {
857
+ G({ type: 5, time: Date.now() });
858
+ }, qn = (e) => {
859
+ let { toasts: t, pausedAt: r } = Un(e);
860
+ et(() => {
861
+ if (r)
862
+ return;
863
+ let o = Date.now(), a = t.map((c) => {
864
+ if (c.duration === 1 / 0)
865
+ return;
866
+ let l = (c.duration || 0) + c.pauseDuration - (o - c.createdAt);
867
+ if (l < 0) {
868
+ c.visible && F.dismiss(c.id);
869
+ return;
870
+ }
871
+ return setTimeout(() => F.dismiss(c.id), l);
872
+ });
873
+ return () => {
874
+ a.forEach((c) => c && clearTimeout(c));
875
+ };
876
+ }, [t, r]);
877
+ let n = Z(() => {
878
+ r && G({ type: 6, time: Date.now() });
879
+ }, [r]), s = Z((o, a) => {
880
+ let { reverseOrder: c = !1, gutter: l = 8, defaultPosition: h } = a || {}, p = t.filter((x) => (x.position || h) === (o.position || h) && x.height), f = p.findIndex((x) => x.id === o.id), w = p.filter((x, y) => y < f && x.visible).length;
881
+ return p.filter((x) => x.visible).slice(...c ? [w + 1] : [0, w]).reduce((x, y) => x + (y.height || 0) + l, 0);
882
+ }, [t]);
883
+ return { toasts: t, handlers: { updateHeight: $n, startPause: Mn, endPause: n, calculateOffset: s } };
884
+ }, Hn = z`
885
+ from {
886
+ transform: scale(0) rotate(45deg);
887
+ opacity: 0;
888
+ }
889
+ to {
890
+ transform: scale(1) rotate(45deg);
891
+ opacity: 1;
892
+ }`, zn = z`
893
+ from {
894
+ transform: scale(0);
895
+ opacity: 0;
896
+ }
897
+ to {
898
+ transform: scale(1);
899
+ opacity: 1;
900
+ }`, Wn = z`
901
+ from {
902
+ transform: scale(0) rotate(90deg);
903
+ opacity: 0;
904
+ }
905
+ to {
906
+ transform: scale(1) rotate(90deg);
907
+ opacity: 1;
908
+ }`, Vn = J("div")`
909
+ width: 20px;
910
+ opacity: 0;
911
+ height: 20px;
912
+ border-radius: 10px;
913
+ background: ${(e) => e.primary || "#ff4b4b"};
914
+ position: relative;
915
+ transform: rotate(45deg);
916
+
917
+ animation: ${Hn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
918
+ forwards;
919
+ animation-delay: 100ms;
920
+
921
+ &:after,
922
+ &:before {
923
+ content: '';
924
+ animation: ${zn} 0.15s ease-out forwards;
925
+ animation-delay: 150ms;
926
+ position: absolute;
927
+ border-radius: 3px;
928
+ opacity: 0;
929
+ background: ${(e) => e.secondary || "#fff"};
930
+ bottom: 9px;
931
+ left: 4px;
932
+ height: 2px;
933
+ width: 12px;
934
+ }
935
+
936
+ &:before {
937
+ animation: ${Wn} 0.15s ease-out forwards;
938
+ animation-delay: 180ms;
939
+ transform: rotate(90deg);
940
+ }
941
+ `, Jn = z`
942
+ from {
943
+ transform: rotate(0deg);
944
+ }
945
+ to {
946
+ transform: rotate(360deg);
947
+ }
948
+ `, Yn = J("div")`
949
+ width: 12px;
950
+ height: 12px;
951
+ box-sizing: border-box;
952
+ border: 2px solid;
953
+ border-radius: 100%;
954
+ border-color: ${(e) => e.secondary || "#e0e0e0"};
955
+ border-right-color: ${(e) => e.primary || "#616161"};
956
+ animation: ${Jn} 1s linear infinite;
957
+ `, Gn = z`
958
+ from {
959
+ transform: scale(0) rotate(45deg);
960
+ opacity: 0;
961
+ }
962
+ to {
963
+ transform: scale(1) rotate(45deg);
964
+ opacity: 1;
965
+ }`, Kn = z`
966
+ 0% {
967
+ height: 0;
968
+ width: 0;
969
+ opacity: 0;
970
+ }
971
+ 40% {
972
+ height: 0;
973
+ width: 6px;
974
+ opacity: 1;
975
+ }
976
+ 100% {
977
+ opacity: 1;
978
+ height: 10px;
979
+ }`, Xn = J("div")`
980
+ width: 20px;
981
+ opacity: 0;
982
+ height: 20px;
983
+ border-radius: 10px;
984
+ background: ${(e) => e.primary || "#61d345"};
985
+ position: relative;
986
+ transform: rotate(45deg);
987
+
988
+ animation: ${Gn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
989
+ forwards;
990
+ animation-delay: 100ms;
991
+ &:after {
992
+ content: '';
993
+ box-sizing: border-box;
994
+ animation: ${Kn} 0.2s ease-out forwards;
995
+ opacity: 0;
996
+ animation-delay: 200ms;
997
+ position: absolute;
998
+ border-right: 2px solid;
999
+ border-bottom: 2px solid;
1000
+ border-color: ${(e) => e.secondary || "#fff"};
1001
+ bottom: 6px;
1002
+ left: 6px;
1003
+ height: 10px;
1004
+ width: 6px;
1005
+ }
1006
+ `, Zn = J("div")`
1007
+ position: absolute;
1008
+ `, Qn = J("div")`
1009
+ position: relative;
1010
+ display: flex;
1011
+ justify-content: center;
1012
+ align-items: center;
1013
+ min-width: 20px;
1014
+ min-height: 20px;
1015
+ `, eo = z`
1016
+ from {
1017
+ transform: scale(0.6);
1018
+ opacity: 0.4;
1019
+ }
1020
+ to {
1021
+ transform: scale(1);
1022
+ opacity: 1;
1023
+ }`, to = J("div")`
1024
+ position: relative;
1025
+ transform: scale(0.6);
1026
+ opacity: 0.4;
1027
+ min-width: 20px;
1028
+ animation: ${eo} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
1029
+ forwards;
1030
+ `, ro = ({ toast: e }) => {
1031
+ let { icon: t, type: r, iconTheme: n } = e;
1032
+ return t !== void 0 ? typeof t == "string" ? N.createElement(to, null, t) : t : r === "blank" ? null : N.createElement(Qn, null, N.createElement(Yn, { ...n }), r !== "loading" && N.createElement(Zn, null, r === "error" ? N.createElement(Vn, { ...n }) : N.createElement(Xn, { ...n })));
1033
+ }, no = (e) => `
1034
+ 0% {transform: translate3d(0,${e * -200}%,0) scale(.6); opacity:.5;}
1035
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
1036
+ `, oo = (e) => `
1037
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
1038
+ 100% {transform: translate3d(0,${e * -150}%,-1px) scale(.6); opacity:0;}
1039
+ `, so = "0%{opacity:0;} 100%{opacity:1;}", io = "0%{opacity:1;} 100%{opacity:0;}", ao = J("div")`
1040
+ display: flex;
1041
+ align-items: center;
1042
+ background: #fff;
1043
+ color: #363636;
1044
+ line-height: 1.3;
1045
+ will-change: transform;
1046
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
1047
+ max-width: 350px;
1048
+ pointer-events: auto;
1049
+ padding: 8px 10px;
1050
+ border-radius: 8px;
1051
+ `, co = J("div")`
1052
+ display: flex;
1053
+ justify-content: center;
1054
+ margin: 4px 10px;
1055
+ color: inherit;
1056
+ flex: 1 1 auto;
1057
+ white-space: pre-line;
1058
+ `, lo = (e, t) => {
1059
+ let r = e.includes("top") ? 1 : -1, [n, s] = Zt() ? [so, io] : [no(r), oo(r)];
1060
+ return { animation: t ? `${z(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards` : `${z(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)` };
1061
+ }, uo = N.memo(({ toast: e, position: t, style: r, children: n }) => {
1062
+ let s = e.height ? lo(e.position || t || "top-center", e.visible) : { opacity: 0 }, o = N.createElement(ro, { toast: e }), a = N.createElement(co, { ...e.ariaProps }, Re(e.message, e));
1063
+ return N.createElement(ao, { className: e.className, style: { ...s, ...r, ...e.style } }, typeof n == "function" ? n({ icon: o, message: a }) : N.createElement(N.Fragment, null, o, a));
1064
+ });
1065
+ kn(N.createElement);
1066
+ var fo = ({ id: e, className: t, style: r, onHeightUpdate: n, children: s }) => {
1067
+ let o = N.useCallback((a) => {
1068
+ if (a) {
1069
+ let c = () => {
1070
+ let l = a.getBoundingClientRect().height;
1071
+ n(e, l);
1072
+ };
1073
+ c(), new MutationObserver(c).observe(a, { subtree: !0, childList: !0, characterData: !0 });
1074
+ }
1075
+ }, [e, n]);
1076
+ return N.createElement("div", { ref: o, className: t, style: r }, s);
1077
+ }, po = (e, t) => {
1078
+ let r = e.includes("top"), n = r ? { top: 0 } : { bottom: 0 }, s = e.includes("center") ? { justifyContent: "center" } : e.includes("right") ? { justifyContent: "flex-end" } : {};
1079
+ return { left: 0, right: 0, display: "flex", position: "absolute", transition: Zt() ? void 0 : "all 230ms cubic-bezier(.21,1.02,.73,1)", transform: `translateY(${t * (r ? 1 : -1)}px)`, ...n, ...s };
1080
+ }, ho = Oe`
1081
+ z-index: 9999;
1082
+ > * {
1083
+ pointer-events: auto;
1084
+ }
1085
+ `, me = 16, qs = ({ reverseOrder: e, position: t = "top-center", toastOptions: r, gutter: n, children: s, containerStyle: o, containerClassName: a }) => {
1086
+ let { toasts: c, handlers: l } = qn(r);
1087
+ return N.createElement("div", { style: { position: "fixed", zIndex: 9999, top: me, left: me, right: me, bottom: me, pointerEvents: "none", ...o }, className: a, onMouseEnter: l.startPause, onMouseLeave: l.endPause }, c.map((h) => {
1088
+ let p = h.position || t, f = l.calculateOffset(h, { reverseOrder: e, gutter: n, defaultPosition: t }), w = po(p, f);
1089
+ return N.createElement(fo, { id: h.id, key: h.id, onHeightUpdate: l.updateHeight, className: h.visible ? ho : "", style: w }, h.type === "custom" ? Re(h.message, h) : s ? s(h) : N.createElement(uo, { toast: h, position: p }));
1090
+ }));
1091
+ }, ye = F;
1092
+ const Hs = Se({
1093
+ show: !1,
1094
+ text: "",
1095
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1096
+ showConfirm: (e) => {
1097
+ },
1098
+ hideConfirm: () => {
1099
+ }
1100
+ }), zs = Se({
1101
+ isLoading: !1,
1102
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1103
+ startLoading: (e) => {
1104
+ },
1105
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1106
+ stopLoading: (e) => {
1107
+ }
1108
+ }), Ws = Se({
1109
+ user: null,
1110
+ loginUser: () => Promise.resolve(!0),
1111
+ logoutUser: () => {
1112
+ }
1113
+ }), mo = () => {
1114
+ const { axiosInstance: e } = Jt(Gt), t = Z(() => localStorage.getItem("token") ?? null, []), r = Z(() => {
1115
+ const o = t();
1116
+ return o !== null && o.length > 0;
1117
+ }, [t]), n = Z(async (o, a) => {
1118
+ let c = !1;
1119
+ return await e.post("/user/login", { kid: o, password: a }).then((l) => {
1120
+ localStorage.setItem("token", l.data), c = !0;
1121
+ }).catch((l) => {
1122
+ console.log(l), c = !1;
1123
+ }), c;
1124
+ }, [e]), s = Z(() => {
1125
+ localStorage.removeItem("token"), localStorage.removeItem("user");
1126
+ }, []);
1127
+ return {
1128
+ isAuthenticated: r,
1129
+ getToken: t,
1130
+ authenticate: n,
1131
+ logout: s
1132
+ };
1133
+ }, yo = (e) => {
1134
+ switch (e) {
1135
+ case "success":
1136
+ return 5e3;
1137
+ case "warning":
1138
+ return 7e3;
1139
+ case "danger":
1140
+ return 1e4;
1141
+ default:
1142
+ return 5e3;
1143
+ }
1144
+ }, bo = () => ({ addNotification: (t, r) => {
1145
+ const n = Zr(t), s = yo(r);
1146
+ switch (r) {
1147
+ case "success": {
1148
+ ye.success(n, {
1149
+ duration: s,
1150
+ position: "bottom-center",
1151
+ className: "toast-success"
1152
+ });
1153
+ break;
1154
+ }
1155
+ case "danger": {
1156
+ ye.error(n, {
1157
+ duration: s,
1158
+ position: "top-center",
1159
+ className: "toast-danger"
1160
+ });
1161
+ break;
1162
+ }
1163
+ case "warning": {
1164
+ ye.error(n, {
1165
+ duration: s,
1166
+ position: "top-center",
1167
+ className: "toast-warning"
1168
+ });
1169
+ break;
1170
+ }
1171
+ default: {
1172
+ ye(n, { duration: s, position: "top-center", className: "toast-default" });
1173
+ break;
1174
+ }
1175
+ }
1176
+ } });
1177
+ function Qt(e, t) {
1178
+ return function() {
1179
+ return e.apply(t, arguments);
1180
+ };
1181
+ }
1182
+ const { toString: go } = Object.prototype, { getPrototypeOf: tt } = Object, Te = /* @__PURE__ */ ((e) => (t) => {
1183
+ const r = go.call(t);
1184
+ return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
1185
+ })(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => Te(t) === e), Ae = (e) => (t) => typeof t === e, { isArray: ee } = Array, ie = Ae("undefined");
1186
+ function wo(e) {
1187
+ return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && L(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1188
+ }
1189
+ const er = B("ArrayBuffer");
1190
+ function Eo(e) {
1191
+ let t;
1192
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && er(e.buffer), t;
1193
+ }
1194
+ const vo = Ae("string"), L = Ae("function"), tr = Ae("number"), Ce = (e) => e !== null && typeof e == "object", _o = (e) => e === !0 || e === !1, Ee = (e) => {
1195
+ if (Te(e) !== "object")
1196
+ return !1;
1197
+ const t = tt(e);
1198
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
1199
+ }, Ro = B("Date"), xo = B("File"), So = B("Blob"), Oo = B("FileList"), To = (e) => Ce(e) && L(e.pipe), Ao = (e) => {
1200
+ let t;
1201
+ return e && (typeof FormData == "function" && e instanceof FormData || L(e.append) && ((t = Te(e)) === "formdata" || // detect form-data instance
1202
+ t === "object" && L(e.toString) && e.toString() === "[object FormData]"));
1203
+ }, Co = B("URLSearchParams"), Po = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1204
+ function ce(e, t, { allOwnKeys: r = !1 } = {}) {
1205
+ if (e === null || typeof e > "u")
1206
+ return;
1207
+ let n, s;
1208
+ if (typeof e != "object" && (e = [e]), ee(e))
1209
+ for (n = 0, s = e.length; n < s; n++)
1210
+ t.call(null, e[n], n, e);
1211
+ else {
1212
+ const o = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
1213
+ let c;
1214
+ for (n = 0; n < a; n++)
1215
+ c = o[n], t.call(null, e[c], c, e);
1216
+ }
1217
+ }
1218
+ function rr(e, t) {
1219
+ t = t.toLowerCase();
1220
+ const r = Object.keys(e);
1221
+ let n = r.length, s;
1222
+ for (; n-- > 0; )
1223
+ if (s = r[n], t === s.toLowerCase())
1224
+ return s;
1225
+ return null;
1226
+ }
1227
+ const nr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, or = (e) => !ie(e) && e !== nr;
1228
+ function Ge() {
1229
+ const { caseless: e } = or(this) && this || {}, t = {}, r = (n, s) => {
1230
+ const o = e && rr(t, s) || s;
1231
+ Ee(t[o]) && Ee(n) ? t[o] = Ge(t[o], n) : Ee(n) ? t[o] = Ge({}, n) : ee(n) ? t[o] = n.slice() : t[o] = n;
1232
+ };
1233
+ for (let n = 0, s = arguments.length; n < s; n++)
1234
+ arguments[n] && ce(arguments[n], r);
1235
+ return t;
1236
+ }
1237
+ const ko = (e, t, r, { allOwnKeys: n } = {}) => (ce(t, (s, o) => {
1238
+ r && L(s) ? e[o] = Qt(s, r) : e[o] = s;
1239
+ }, { allOwnKeys: n }), e), No = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), jo = (e, t, r, n) => {
1240
+ e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1241
+ value: t.prototype
1242
+ }), r && Object.assign(e.prototype, r);
1243
+ }, Fo = (e, t, r, n) => {
1244
+ let s, o, a;
1245
+ const c = {};
1246
+ if (t = t || {}, e == null)
1247
+ return t;
1248
+ do {
1249
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
1250
+ a = s[o], (!n || n(a, e, t)) && !c[a] && (t[a] = e[a], c[a] = !0);
1251
+ e = r !== !1 && tt(e);
1252
+ } while (e && (!r || r(e, t)) && e !== Object.prototype);
1253
+ return t;
1254
+ }, Do = (e, t, r) => {
1255
+ e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
1256
+ const n = e.indexOf(t, r);
1257
+ return n !== -1 && n === r;
1258
+ }, Lo = (e) => {
1259
+ if (!e)
1260
+ return null;
1261
+ if (ee(e))
1262
+ return e;
1263
+ let t = e.length;
1264
+ if (!tr(t))
1265
+ return null;
1266
+ const r = new Array(t);
1267
+ for (; t-- > 0; )
1268
+ r[t] = e[t];
1269
+ return r;
1270
+ }, Io = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && tt(Uint8Array)), Uo = (e, t) => {
1271
+ const n = (e && e[Symbol.iterator]).call(e);
1272
+ let s;
1273
+ for (; (s = n.next()) && !s.done; ) {
1274
+ const o = s.value;
1275
+ t.call(e, o[0], o[1]);
1276
+ }
1277
+ }, Bo = (e, t) => {
1278
+ let r;
1279
+ const n = [];
1280
+ for (; (r = e.exec(t)) !== null; )
1281
+ n.push(r);
1282
+ return n;
1283
+ }, $o = B("HTMLFormElement"), Mo = (e) => e.toLowerCase().replace(
1284
+ /[-_\s]([a-z\d])(\w*)/g,
1285
+ function(r, n, s) {
1286
+ return n.toUpperCase() + s;
1287
+ }
1288
+ ), Dt = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), qo = B("RegExp"), sr = (e, t) => {
1289
+ const r = Object.getOwnPropertyDescriptors(e), n = {};
1290
+ ce(r, (s, o) => {
1291
+ let a;
1292
+ (a = t(s, o, e)) !== !1 && (n[o] = a || s);
1293
+ }), Object.defineProperties(e, n);
1294
+ }, Ho = (e) => {
1295
+ sr(e, (t, r) => {
1296
+ if (L(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
1297
+ return !1;
1298
+ const n = e[r];
1299
+ if (L(n)) {
1300
+ if (t.enumerable = !1, "writable" in t) {
1301
+ t.writable = !1;
1302
+ return;
1303
+ }
1304
+ t.set || (t.set = () => {
1305
+ throw Error("Can not rewrite read-only method '" + r + "'");
1306
+ });
1307
+ }
1308
+ });
1309
+ }, zo = (e, t) => {
1310
+ const r = {}, n = (s) => {
1311
+ s.forEach((o) => {
1312
+ r[o] = !0;
1313
+ });
1314
+ };
1315
+ return ee(e) ? n(e) : n(String(e).split(t)), r;
1316
+ }, Wo = () => {
1317
+ }, Vo = (e, t) => (e = +e, Number.isFinite(e) ? e : t), Me = "abcdefghijklmnopqrstuvwxyz", Lt = "0123456789", ir = {
1318
+ DIGIT: Lt,
1319
+ ALPHA: Me,
1320
+ ALPHA_DIGIT: Me + Me.toUpperCase() + Lt
1321
+ }, Jo = (e = 16, t = ir.ALPHA_DIGIT) => {
1322
+ let r = "";
1323
+ const { length: n } = t;
1324
+ for (; e--; )
1325
+ r += t[Math.random() * n | 0];
1326
+ return r;
1327
+ };
1328
+ function Yo(e) {
1329
+ return !!(e && L(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
1330
+ }
1331
+ const Go = (e) => {
1332
+ const t = new Array(10), r = (n, s) => {
1333
+ if (Ce(n)) {
1334
+ if (t.indexOf(n) >= 0)
1335
+ return;
1336
+ if (!("toJSON" in n)) {
1337
+ t[s] = n;
1338
+ const o = ee(n) ? [] : {};
1339
+ return ce(n, (a, c) => {
1340
+ const l = r(a, s + 1);
1341
+ !ie(l) && (o[c] = l);
1342
+ }), t[s] = void 0, o;
1343
+ }
1344
+ }
1345
+ return n;
1346
+ };
1347
+ return r(e, 0);
1348
+ }, Ko = B("AsyncFunction"), Xo = (e) => e && (Ce(e) || L(e)) && L(e.then) && L(e.catch), u = {
1349
+ isArray: ee,
1350
+ isArrayBuffer: er,
1351
+ isBuffer: wo,
1352
+ isFormData: Ao,
1353
+ isArrayBufferView: Eo,
1354
+ isString: vo,
1355
+ isNumber: tr,
1356
+ isBoolean: _o,
1357
+ isObject: Ce,
1358
+ isPlainObject: Ee,
1359
+ isUndefined: ie,
1360
+ isDate: Ro,
1361
+ isFile: xo,
1362
+ isBlob: So,
1363
+ isRegExp: qo,
1364
+ isFunction: L,
1365
+ isStream: To,
1366
+ isURLSearchParams: Co,
1367
+ isTypedArray: Io,
1368
+ isFileList: Oo,
1369
+ forEach: ce,
1370
+ merge: Ge,
1371
+ extend: ko,
1372
+ trim: Po,
1373
+ stripBOM: No,
1374
+ inherits: jo,
1375
+ toFlatObject: Fo,
1376
+ kindOf: Te,
1377
+ kindOfTest: B,
1378
+ endsWith: Do,
1379
+ toArray: Lo,
1380
+ forEachEntry: Uo,
1381
+ matchAll: Bo,
1382
+ isHTMLForm: $o,
1383
+ hasOwnProperty: Dt,
1384
+ hasOwnProp: Dt,
1385
+ // an alias to avoid ESLint no-prototype-builtins detection
1386
+ reduceDescriptors: sr,
1387
+ freezeMethods: Ho,
1388
+ toObjectSet: zo,
1389
+ toCamelCase: Mo,
1390
+ noop: Wo,
1391
+ toFiniteNumber: Vo,
1392
+ findKey: rr,
1393
+ global: nr,
1394
+ isContextDefined: or,
1395
+ ALPHABET: ir,
1396
+ generateString: Jo,
1397
+ isSpecCompliantForm: Yo,
1398
+ toJSONObject: Go,
1399
+ isAsyncFn: Ko,
1400
+ isThenable: Xo
1401
+ };
1402
+ function _(e, t, r, n, s) {
1403
+ 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), r && (this.config = r), n && (this.request = n), s && (this.response = s);
1404
+ }
1405
+ u.inherits(_, Error, {
1406
+ toJSON: function() {
1407
+ return {
1408
+ // Standard
1409
+ message: this.message,
1410
+ name: this.name,
1411
+ // Microsoft
1412
+ description: this.description,
1413
+ number: this.number,
1414
+ // Mozilla
1415
+ fileName: this.fileName,
1416
+ lineNumber: this.lineNumber,
1417
+ columnNumber: this.columnNumber,
1418
+ stack: this.stack,
1419
+ // Axios
1420
+ config: u.toJSONObject(this.config),
1421
+ code: this.code,
1422
+ status: this.response && this.response.status ? this.response.status : null
1423
+ };
1424
+ }
1425
+ });
1426
+ const ar = _.prototype, cr = {};
1427
+ [
1428
+ "ERR_BAD_OPTION_VALUE",
1429
+ "ERR_BAD_OPTION",
1430
+ "ECONNABORTED",
1431
+ "ETIMEDOUT",
1432
+ "ERR_NETWORK",
1433
+ "ERR_FR_TOO_MANY_REDIRECTS",
1434
+ "ERR_DEPRECATED",
1435
+ "ERR_BAD_RESPONSE",
1436
+ "ERR_BAD_REQUEST",
1437
+ "ERR_CANCELED",
1438
+ "ERR_NOT_SUPPORT",
1439
+ "ERR_INVALID_URL"
1440
+ // eslint-disable-next-line func-names
1441
+ ].forEach((e) => {
1442
+ cr[e] = { value: e };
1443
+ });
1444
+ Object.defineProperties(_, cr);
1445
+ Object.defineProperty(ar, "isAxiosError", { value: !0 });
1446
+ _.from = (e, t, r, n, s, o) => {
1447
+ const a = Object.create(ar);
1448
+ return u.toFlatObject(e, a, function(l) {
1449
+ return l !== Error.prototype;
1450
+ }, (c) => c !== "isAxiosError"), _.call(a, e.message, t, r, n, s), a.cause = e, a.name = e.name, o && Object.assign(a, o), a;
1451
+ };
1452
+ const Zo = null;
1453
+ function Ke(e) {
1454
+ return u.isPlainObject(e) || u.isArray(e);
1455
+ }
1456
+ function lr(e) {
1457
+ return u.endsWith(e, "[]") ? e.slice(0, -2) : e;
1458
+ }
1459
+ function It(e, t, r) {
1460
+ return e ? e.concat(t).map(function(s, o) {
1461
+ return s = lr(s), !r && o ? "[" + s + "]" : s;
1462
+ }).join(r ? "." : "") : t;
1463
+ }
1464
+ function Qo(e) {
1465
+ return u.isArray(e) && !e.some(Ke);
1466
+ }
1467
+ const es = u.toFlatObject(u, {}, null, function(t) {
1468
+ return /^is[A-Z]/.test(t);
1469
+ });
1470
+ function Pe(e, t, r) {
1471
+ if (!u.isObject(e))
1472
+ throw new TypeError("target must be an object");
1473
+ t = t || new FormData(), r = u.toFlatObject(r, {
1474
+ metaTokens: !0,
1475
+ dots: !1,
1476
+ indexes: !1
1477
+ }, !1, function(b, k) {
1478
+ return !u.isUndefined(k[b]);
1479
+ });
1480
+ const n = r.metaTokens, s = r.visitor || p, o = r.dots, a = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && u.isSpecCompliantForm(t);
1481
+ if (!u.isFunction(s))
1482
+ throw new TypeError("visitor must be a function");
1483
+ function h(y) {
1484
+ if (y === null)
1485
+ return "";
1486
+ if (u.isDate(y))
1487
+ return y.toISOString();
1488
+ if (!l && u.isBlob(y))
1489
+ throw new _("Blob is not supported. Use a Buffer instead.");
1490
+ return u.isArrayBuffer(y) || u.isTypedArray(y) ? l && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
1491
+ }
1492
+ function p(y, b, k) {
1493
+ let T = y;
1494
+ if (y && !k && typeof y == "object") {
1495
+ if (u.endsWith(b, "{}"))
1496
+ b = n ? b : b.slice(0, -2), y = JSON.stringify(y);
1497
+ else if (u.isArray(y) && Qo(y) || (u.isFileList(y) || u.endsWith(b, "[]")) && (T = u.toArray(y)))
1498
+ return b = lr(b), T.forEach(function(I, Ne) {
1499
+ !(u.isUndefined(I) || I === null) && t.append(
1500
+ // eslint-disable-next-line no-nested-ternary
1501
+ a === !0 ? It([b], Ne, o) : a === null ? b : b + "[]",
1502
+ h(I)
1503
+ );
1504
+ }), !1;
1505
+ }
1506
+ return Ke(y) ? !0 : (t.append(It(k, b, o), h(y)), !1);
1507
+ }
1508
+ const f = [], w = Object.assign(es, {
1509
+ defaultVisitor: p,
1510
+ convertValue: h,
1511
+ isVisitable: Ke
1512
+ });
1513
+ function x(y, b) {
1514
+ if (!u.isUndefined(y)) {
1515
+ if (f.indexOf(y) !== -1)
1516
+ throw Error("Circular reference detected in " + b.join("."));
1517
+ f.push(y), u.forEach(y, function(T, O) {
1518
+ (!(u.isUndefined(T) || T === null) && s.call(
1519
+ t,
1520
+ T,
1521
+ u.isString(O) ? O.trim() : O,
1522
+ b,
1523
+ w
1524
+ )) === !0 && x(T, b ? b.concat(O) : [O]);
1525
+ }), f.pop();
1526
+ }
1527
+ }
1528
+ if (!u.isObject(e))
1529
+ throw new TypeError("data must be an object");
1530
+ return x(e), t;
1531
+ }
1532
+ function Ut(e) {
1533
+ const t = {
1534
+ "!": "%21",
1535
+ "'": "%27",
1536
+ "(": "%28",
1537
+ ")": "%29",
1538
+ "~": "%7E",
1539
+ "%20": "+",
1540
+ "%00": "\0"
1541
+ };
1542
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
1543
+ return t[n];
1544
+ });
1545
+ }
1546
+ function rt(e, t) {
1547
+ this._pairs = [], e && Pe(e, this, t);
1548
+ }
1549
+ const ur = rt.prototype;
1550
+ ur.append = function(t, r) {
1551
+ this._pairs.push([t, r]);
1552
+ };
1553
+ ur.toString = function(t) {
1554
+ const r = t ? function(n) {
1555
+ return t.call(this, n, Ut);
1556
+ } : Ut;
1557
+ return this._pairs.map(function(s) {
1558
+ return r(s[0]) + "=" + r(s[1]);
1559
+ }, "").join("&");
1560
+ };
1561
+ function ts(e) {
1562
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1563
+ }
1564
+ function fr(e, t, r) {
1565
+ if (!t)
1566
+ return e;
1567
+ const n = r && r.encode || ts, s = r && r.serialize;
1568
+ let o;
1569
+ if (s ? o = s(t, r) : o = u.isURLSearchParams(t) ? t.toString() : new rt(t, r).toString(n), o) {
1570
+ const a = e.indexOf("#");
1571
+ a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
1572
+ }
1573
+ return e;
1574
+ }
1575
+ class Bt {
1576
+ constructor() {
1577
+ this.handlers = [];
1578
+ }
1579
+ /**
1580
+ * Add a new interceptor to the stack
1581
+ *
1582
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1583
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1584
+ *
1585
+ * @return {Number} An ID used to remove interceptor later
1586
+ */
1587
+ use(t, r, n) {
1588
+ return this.handlers.push({
1589
+ fulfilled: t,
1590
+ rejected: r,
1591
+ synchronous: n ? n.synchronous : !1,
1592
+ runWhen: n ? n.runWhen : null
1593
+ }), this.handlers.length - 1;
1594
+ }
1595
+ /**
1596
+ * Remove an interceptor from the stack
1597
+ *
1598
+ * @param {Number} id The ID that was returned by `use`
1599
+ *
1600
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1601
+ */
1602
+ eject(t) {
1603
+ this.handlers[t] && (this.handlers[t] = null);
1604
+ }
1605
+ /**
1606
+ * Clear all interceptors from the stack
1607
+ *
1608
+ * @returns {void}
1609
+ */
1610
+ clear() {
1611
+ this.handlers && (this.handlers = []);
1612
+ }
1613
+ /**
1614
+ * Iterate over all the registered interceptors
1615
+ *
1616
+ * This method is particularly useful for skipping over any
1617
+ * interceptors that may have become `null` calling `eject`.
1618
+ *
1619
+ * @param {Function} fn The function to call for each interceptor
1620
+ *
1621
+ * @returns {void}
1622
+ */
1623
+ forEach(t) {
1624
+ u.forEach(this.handlers, function(n) {
1625
+ n !== null && t(n);
1626
+ });
1627
+ }
1628
+ }
1629
+ const dr = {
1630
+ silentJSONParsing: !0,
1631
+ forcedJSONParsing: !0,
1632
+ clarifyTimeoutError: !1
1633
+ }, rs = typeof URLSearchParams < "u" ? URLSearchParams : rt, ns = typeof FormData < "u" ? FormData : null, os = typeof Blob < "u" ? Blob : null, ss = {
1634
+ isBrowser: !0,
1635
+ classes: {
1636
+ URLSearchParams: rs,
1637
+ FormData: ns,
1638
+ Blob: os
1639
+ },
1640
+ protocols: ["http", "https", "file", "blob", "url", "data"]
1641
+ }, pr = typeof window < "u" && typeof document < "u", is = ((e) => pr && ["ReactNative", "NativeScript", "NS"].indexOf(e) < 0)(typeof navigator < "u" && navigator.product), as = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1642
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1643
+ __proto__: null,
1644
+ hasBrowserEnv: pr,
1645
+ hasStandardBrowserEnv: is,
1646
+ hasStandardBrowserWebWorkerEnv: as
1647
+ }, Symbol.toStringTag, { value: "Module" })), U = {
1648
+ ...cs,
1649
+ ...ss
1650
+ };
1651
+ function ls(e, t) {
1652
+ return Pe(e, new U.classes.URLSearchParams(), Object.assign({
1653
+ visitor: function(r, n, s, o) {
1654
+ return U.isNode && u.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1655
+ }
1656
+ }, t));
1657
+ }
1658
+ function us(e) {
1659
+ return u.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1660
+ }
1661
+ function fs(e) {
1662
+ const t = {}, r = Object.keys(e);
1663
+ let n;
1664
+ const s = r.length;
1665
+ let o;
1666
+ for (n = 0; n < s; n++)
1667
+ o = r[n], t[o] = e[o];
1668
+ return t;
1669
+ }
1670
+ function hr(e) {
1671
+ function t(r, n, s, o) {
1672
+ let a = r[o++];
1673
+ if (a === "__proto__")
1674
+ return !0;
1675
+ const c = Number.isFinite(+a), l = o >= r.length;
1676
+ return a = !a && u.isArray(s) ? s.length : a, l ? (u.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !c) : ((!s[a] || !u.isObject(s[a])) && (s[a] = []), t(r, n, s[a], o) && u.isArray(s[a]) && (s[a] = fs(s[a])), !c);
1677
+ }
1678
+ if (u.isFormData(e) && u.isFunction(e.entries)) {
1679
+ const r = {};
1680
+ return u.forEachEntry(e, (n, s) => {
1681
+ t(us(n), s, r, 0);
1682
+ }), r;
1683
+ }
1684
+ return null;
1685
+ }
1686
+ function ds(e, t, r) {
1687
+ if (u.isString(e))
1688
+ try {
1689
+ return (t || JSON.parse)(e), u.trim(e);
1690
+ } catch (n) {
1691
+ if (n.name !== "SyntaxError")
1692
+ throw n;
1693
+ }
1694
+ return (r || JSON.stringify)(e);
1695
+ }
1696
+ const nt = {
1697
+ transitional: dr,
1698
+ adapter: ["xhr", "http"],
1699
+ transformRequest: [function(t, r) {
1700
+ const n = r.getContentType() || "", s = n.indexOf("application/json") > -1, o = u.isObject(t);
1701
+ if (o && u.isHTMLForm(t) && (t = new FormData(t)), u.isFormData(t))
1702
+ return s ? JSON.stringify(hr(t)) : t;
1703
+ if (u.isArrayBuffer(t) || u.isBuffer(t) || u.isStream(t) || u.isFile(t) || u.isBlob(t))
1704
+ return t;
1705
+ if (u.isArrayBufferView(t))
1706
+ return t.buffer;
1707
+ if (u.isURLSearchParams(t))
1708
+ return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1709
+ let c;
1710
+ if (o) {
1711
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
1712
+ return ls(t, this.formSerializer).toString();
1713
+ if ((c = u.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
1714
+ const l = this.env && this.env.FormData;
1715
+ return Pe(
1716
+ c ? { "files[]": t } : t,
1717
+ l && new l(),
1718
+ this.formSerializer
1719
+ );
1720
+ }
1721
+ }
1722
+ return o || s ? (r.setContentType("application/json", !1), ds(t)) : t;
1723
+ }],
1724
+ transformResponse: [function(t) {
1725
+ const r = this.transitional || nt.transitional, n = r && r.forcedJSONParsing, s = this.responseType === "json";
1726
+ if (t && u.isString(t) && (n && !this.responseType || s)) {
1727
+ const a = !(r && r.silentJSONParsing) && s;
1728
+ try {
1729
+ return JSON.parse(t);
1730
+ } catch (c) {
1731
+ if (a)
1732
+ throw c.name === "SyntaxError" ? _.from(c, _.ERR_BAD_RESPONSE, this, null, this.response) : c;
1733
+ }
1734
+ }
1735
+ return t;
1736
+ }],
1737
+ /**
1738
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1739
+ * timeout is not created.
1740
+ */
1741
+ timeout: 0,
1742
+ xsrfCookieName: "XSRF-TOKEN",
1743
+ xsrfHeaderName: "X-XSRF-TOKEN",
1744
+ maxContentLength: -1,
1745
+ maxBodyLength: -1,
1746
+ env: {
1747
+ FormData: U.classes.FormData,
1748
+ Blob: U.classes.Blob
1749
+ },
1750
+ validateStatus: function(t) {
1751
+ return t >= 200 && t < 300;
1752
+ },
1753
+ headers: {
1754
+ common: {
1755
+ Accept: "application/json, text/plain, */*",
1756
+ "Content-Type": void 0
1757
+ }
1758
+ }
1759
+ };
1760
+ u.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1761
+ nt.headers[e] = {};
1762
+ });
1763
+ const ot = nt, ps = u.toObjectSet([
1764
+ "age",
1765
+ "authorization",
1766
+ "content-length",
1767
+ "content-type",
1768
+ "etag",
1769
+ "expires",
1770
+ "from",
1771
+ "host",
1772
+ "if-modified-since",
1773
+ "if-unmodified-since",
1774
+ "last-modified",
1775
+ "location",
1776
+ "max-forwards",
1777
+ "proxy-authorization",
1778
+ "referer",
1779
+ "retry-after",
1780
+ "user-agent"
1781
+ ]), hs = (e) => {
1782
+ const t = {};
1783
+ let r, n, s;
1784
+ return e && e.split(`
1785
+ `).forEach(function(a) {
1786
+ s = a.indexOf(":"), r = a.substring(0, s).trim().toLowerCase(), n = a.substring(s + 1).trim(), !(!r || t[r] && ps[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
1787
+ }), t;
1788
+ }, $t = Symbol("internals");
1789
+ function se(e) {
1790
+ return e && String(e).trim().toLowerCase();
1791
+ }
1792
+ function ve(e) {
1793
+ return e === !1 || e == null ? e : u.isArray(e) ? e.map(ve) : String(e);
1794
+ }
1795
+ function ms(e) {
1796
+ const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1797
+ let n;
1798
+ for (; n = r.exec(e); )
1799
+ t[n[1]] = n[2];
1800
+ return t;
1801
+ }
1802
+ const ys = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1803
+ function qe(e, t, r, n, s) {
1804
+ if (u.isFunction(n))
1805
+ return n.call(this, t, r);
1806
+ if (s && (t = r), !!u.isString(t)) {
1807
+ if (u.isString(n))
1808
+ return t.indexOf(n) !== -1;
1809
+ if (u.isRegExp(n))
1810
+ return n.test(t);
1811
+ }
1812
+ }
1813
+ function bs(e) {
1814
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
1815
+ }
1816
+ function gs(e, t) {
1817
+ const r = u.toCamelCase(" " + t);
1818
+ ["get", "set", "has"].forEach((n) => {
1819
+ Object.defineProperty(e, n + r, {
1820
+ value: function(s, o, a) {
1821
+ return this[n].call(this, t, s, o, a);
1822
+ },
1823
+ configurable: !0
1824
+ });
1825
+ });
1826
+ }
1827
+ class ke {
1828
+ constructor(t) {
1829
+ t && this.set(t);
1830
+ }
1831
+ set(t, r, n) {
1832
+ const s = this;
1833
+ function o(c, l, h) {
1834
+ const p = se(l);
1835
+ if (!p)
1836
+ throw new Error("header name must be a non-empty string");
1837
+ const f = u.findKey(s, p);
1838
+ (!f || s[f] === void 0 || h === !0 || h === void 0 && s[f] !== !1) && (s[f || l] = ve(c));
1839
+ }
1840
+ const a = (c, l) => u.forEach(c, (h, p) => o(h, p, l));
1841
+ return u.isPlainObject(t) || t instanceof this.constructor ? a(t, r) : u.isString(t) && (t = t.trim()) && !ys(t) ? a(hs(t), r) : t != null && o(r, t, n), this;
1842
+ }
1843
+ get(t, r) {
1844
+ if (t = se(t), t) {
1845
+ const n = u.findKey(this, t);
1846
+ if (n) {
1847
+ const s = this[n];
1848
+ if (!r)
1849
+ return s;
1850
+ if (r === !0)
1851
+ return ms(s);
1852
+ if (u.isFunction(r))
1853
+ return r.call(this, s, n);
1854
+ if (u.isRegExp(r))
1855
+ return r.exec(s);
1856
+ throw new TypeError("parser must be boolean|regexp|function");
1857
+ }
1858
+ }
1859
+ }
1860
+ has(t, r) {
1861
+ if (t = se(t), t) {
1862
+ const n = u.findKey(this, t);
1863
+ return !!(n && this[n] !== void 0 && (!r || qe(this, this[n], n, r)));
1864
+ }
1865
+ return !1;
1866
+ }
1867
+ delete(t, r) {
1868
+ const n = this;
1869
+ let s = !1;
1870
+ function o(a) {
1871
+ if (a = se(a), a) {
1872
+ const c = u.findKey(n, a);
1873
+ c && (!r || qe(n, n[c], c, r)) && (delete n[c], s = !0);
1874
+ }
1875
+ }
1876
+ return u.isArray(t) ? t.forEach(o) : o(t), s;
1877
+ }
1878
+ clear(t) {
1879
+ const r = Object.keys(this);
1880
+ let n = r.length, s = !1;
1881
+ for (; n--; ) {
1882
+ const o = r[n];
1883
+ (!t || qe(this, this[o], o, t, !0)) && (delete this[o], s = !0);
1884
+ }
1885
+ return s;
1886
+ }
1887
+ normalize(t) {
1888
+ const r = this, n = {};
1889
+ return u.forEach(this, (s, o) => {
1890
+ const a = u.findKey(n, o);
1891
+ if (a) {
1892
+ r[a] = ve(s), delete r[o];
1893
+ return;
1894
+ }
1895
+ const c = t ? bs(o) : String(o).trim();
1896
+ c !== o && delete r[o], r[c] = ve(s), n[c] = !0;
1897
+ }), this;
1898
+ }
1899
+ concat(...t) {
1900
+ return this.constructor.concat(this, ...t);
1901
+ }
1902
+ toJSON(t) {
1903
+ const r = /* @__PURE__ */ Object.create(null);
1904
+ return u.forEach(this, (n, s) => {
1905
+ n != null && n !== !1 && (r[s] = t && u.isArray(n) ? n.join(", ") : n);
1906
+ }), r;
1907
+ }
1908
+ [Symbol.iterator]() {
1909
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1910
+ }
1911
+ toString() {
1912
+ return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
1913
+ `);
1914
+ }
1915
+ get [Symbol.toStringTag]() {
1916
+ return "AxiosHeaders";
1917
+ }
1918
+ static from(t) {
1919
+ return t instanceof this ? t : new this(t);
1920
+ }
1921
+ static concat(t, ...r) {
1922
+ const n = new this(t);
1923
+ return r.forEach((s) => n.set(s)), n;
1924
+ }
1925
+ static accessor(t) {
1926
+ const n = (this[$t] = this[$t] = {
1927
+ accessors: {}
1928
+ }).accessors, s = this.prototype;
1929
+ function o(a) {
1930
+ const c = se(a);
1931
+ n[c] || (gs(s, a), n[c] = !0);
1932
+ }
1933
+ return u.isArray(t) ? t.forEach(o) : o(t), this;
1934
+ }
1935
+ }
1936
+ ke.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1937
+ u.reduceDescriptors(ke.prototype, ({ value: e }, t) => {
1938
+ let r = t[0].toUpperCase() + t.slice(1);
1939
+ return {
1940
+ get: () => e,
1941
+ set(n) {
1942
+ this[r] = n;
1943
+ }
1944
+ };
1945
+ });
1946
+ u.freezeMethods(ke);
1947
+ const H = ke;
1948
+ function He(e, t) {
1949
+ const r = this || ot, n = t || r, s = H.from(n.headers);
1950
+ let o = n.data;
1951
+ return u.forEach(e, function(c) {
1952
+ o = c.call(r, o, s.normalize(), t ? t.status : void 0);
1953
+ }), s.normalize(), o;
1954
+ }
1955
+ function mr(e) {
1956
+ return !!(e && e.__CANCEL__);
1957
+ }
1958
+ function le(e, t, r) {
1959
+ _.call(this, e ?? "canceled", _.ERR_CANCELED, t, r), this.name = "CanceledError";
1960
+ }
1961
+ u.inherits(le, _, {
1962
+ __CANCEL__: !0
1963
+ });
1964
+ function ws(e, t, r) {
1965
+ const n = r.config.validateStatus;
1966
+ !r.status || !n || n(r.status) ? e(r) : t(new _(
1967
+ "Request failed with status code " + r.status,
1968
+ [_.ERR_BAD_REQUEST, _.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
1969
+ r.config,
1970
+ r.request,
1971
+ r
1972
+ ));
1973
+ }
1974
+ const Es = U.hasStandardBrowserEnv ? (
1975
+ // Standard browser envs support document.cookie
1976
+ {
1977
+ write(e, t, r, n, s, o) {
1978
+ const a = [e + "=" + encodeURIComponent(t)];
1979
+ u.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), u.isString(n) && a.push("path=" + n), u.isString(s) && a.push("domain=" + s), o === !0 && a.push("secure"), document.cookie = a.join("; ");
1980
+ },
1981
+ read(e) {
1982
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1983
+ return t ? decodeURIComponent(t[3]) : null;
1984
+ },
1985
+ remove(e) {
1986
+ this.write(e, "", Date.now() - 864e5);
1987
+ }
1988
+ }
1989
+ ) : (
1990
+ // Non-standard browser env (web workers, react-native) lack needed support.
1991
+ {
1992
+ write() {
1993
+ },
1994
+ read() {
1995
+ return null;
1996
+ },
1997
+ remove() {
1998
+ }
1999
+ }
2000
+ );
2001
+ function vs(e) {
2002
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2003
+ }
2004
+ function _s(e, t) {
2005
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2006
+ }
2007
+ function yr(e, t) {
2008
+ return e && !vs(t) ? _s(e, t) : t;
2009
+ }
2010
+ const Rs = U.hasStandardBrowserEnv ? (
2011
+ // Standard browser envs have full support of the APIs needed to test
2012
+ // whether the request URL is of the same origin as current location.
2013
+ function() {
2014
+ const t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
2015
+ let n;
2016
+ function s(o) {
2017
+ let a = o;
2018
+ return t && (r.setAttribute("href", a), a = r.href), r.setAttribute("href", a), {
2019
+ href: r.href,
2020
+ protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
2021
+ host: r.host,
2022
+ search: r.search ? r.search.replace(/^\?/, "") : "",
2023
+ hash: r.hash ? r.hash.replace(/^#/, "") : "",
2024
+ hostname: r.hostname,
2025
+ port: r.port,
2026
+ pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
2027
+ };
2028
+ }
2029
+ return n = s(window.location.href), function(a) {
2030
+ const c = u.isString(a) ? s(a) : a;
2031
+ return c.protocol === n.protocol && c.host === n.host;
2032
+ };
2033
+ }()
2034
+ ) : (
2035
+ // Non standard browser envs (web workers, react-native) lack needed support.
2036
+ /* @__PURE__ */ function() {
2037
+ return function() {
2038
+ return !0;
2039
+ };
2040
+ }()
2041
+ );
2042
+ function xs(e) {
2043
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2044
+ return t && t[1] || "";
2045
+ }
2046
+ function Ss(e, t) {
2047
+ e = e || 10;
2048
+ const r = new Array(e), n = new Array(e);
2049
+ let s = 0, o = 0, a;
2050
+ return t = t !== void 0 ? t : 1e3, function(l) {
2051
+ const h = Date.now(), p = n[o];
2052
+ a || (a = h), r[s] = l, n[s] = h;
2053
+ let f = o, w = 0;
2054
+ for (; f !== s; )
2055
+ w += r[f++], f = f % e;
2056
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), h - a < t)
2057
+ return;
2058
+ const x = p && h - p;
2059
+ return x ? Math.round(w * 1e3 / x) : void 0;
2060
+ };
2061
+ }
2062
+ function Mt(e, t) {
2063
+ let r = 0;
2064
+ const n = Ss(50, 250);
2065
+ return (s) => {
2066
+ const o = s.loaded, a = s.lengthComputable ? s.total : void 0, c = o - r, l = n(c), h = o <= a;
2067
+ r = o;
2068
+ const p = {
2069
+ loaded: o,
2070
+ total: a,
2071
+ progress: a ? o / a : void 0,
2072
+ bytes: c,
2073
+ rate: l || void 0,
2074
+ estimated: l && a && h ? (a - o) / l : void 0,
2075
+ event: s
2076
+ };
2077
+ p[t ? "download" : "upload"] = !0, e(p);
2078
+ };
2079
+ }
2080
+ const Os = typeof XMLHttpRequest < "u", Ts = Os && function(e) {
2081
+ return new Promise(function(r, n) {
2082
+ let s = e.data;
2083
+ const o = H.from(e.headers).normalize();
2084
+ let { responseType: a, withXSRFToken: c } = e, l;
2085
+ function h() {
2086
+ e.cancelToken && e.cancelToken.unsubscribe(l), e.signal && e.signal.removeEventListener("abort", l);
2087
+ }
2088
+ let p;
2089
+ if (u.isFormData(s)) {
2090
+ if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv)
2091
+ o.setContentType(!1);
2092
+ else if ((p = o.getContentType()) !== !1) {
2093
+ const [b, ...k] = p ? p.split(";").map((T) => T.trim()).filter(Boolean) : [];
2094
+ o.setContentType([b || "multipart/form-data", ...k].join("; "));
2095
+ }
2096
+ }
2097
+ let f = new XMLHttpRequest();
2098
+ if (e.auth) {
2099
+ const b = e.auth.username || "", k = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
2100
+ o.set("Authorization", "Basic " + btoa(b + ":" + k));
2101
+ }
2102
+ const w = yr(e.baseURL, e.url);
2103
+ f.open(e.method.toUpperCase(), fr(w, e.params, e.paramsSerializer), !0), f.timeout = e.timeout;
2104
+ function x() {
2105
+ if (!f)
2106
+ return;
2107
+ const b = H.from(
2108
+ "getAllResponseHeaders" in f && f.getAllResponseHeaders()
2109
+ ), T = {
2110
+ data: !a || a === "text" || a === "json" ? f.responseText : f.response,
2111
+ status: f.status,
2112
+ statusText: f.statusText,
2113
+ headers: b,
2114
+ config: e,
2115
+ request: f
2116
+ };
2117
+ ws(function(I) {
2118
+ r(I), h();
2119
+ }, function(I) {
2120
+ n(I), h();
2121
+ }, T), f = null;
2122
+ }
2123
+ if ("onloadend" in f ? f.onloadend = x : f.onreadystatechange = function() {
2124
+ !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(x);
2125
+ }, f.onabort = function() {
2126
+ f && (n(new _("Request aborted", _.ECONNABORTED, e, f)), f = null);
2127
+ }, f.onerror = function() {
2128
+ n(new _("Network Error", _.ERR_NETWORK, e, f)), f = null;
2129
+ }, f.ontimeout = function() {
2130
+ let k = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
2131
+ const T = e.transitional || dr;
2132
+ e.timeoutErrorMessage && (k = e.timeoutErrorMessage), n(new _(
2133
+ k,
2134
+ T.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
2135
+ e,
2136
+ f
2137
+ )), f = null;
2138
+ }, U.hasStandardBrowserEnv && (c && u.isFunction(c) && (c = c(e)), c || c !== !1 && Rs(w))) {
2139
+ const b = e.xsrfHeaderName && e.xsrfCookieName && Es.read(e.xsrfCookieName);
2140
+ b && o.set(e.xsrfHeaderName, b);
2141
+ }
2142
+ s === void 0 && o.setContentType(null), "setRequestHeader" in f && u.forEach(o.toJSON(), function(k, T) {
2143
+ f.setRequestHeader(T, k);
2144
+ }), u.isUndefined(e.withCredentials) || (f.withCredentials = !!e.withCredentials), a && a !== "json" && (f.responseType = e.responseType), typeof e.onDownloadProgress == "function" && f.addEventListener("progress", Mt(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Mt(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (b) => {
2145
+ f && (n(!b || b.type ? new le(null, e, f) : b), f.abort(), f = null);
2146
+ }, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
2147
+ const y = xs(w);
2148
+ if (y && U.protocols.indexOf(y) === -1) {
2149
+ n(new _("Unsupported protocol " + y + ":", _.ERR_BAD_REQUEST, e));
2150
+ return;
2151
+ }
2152
+ f.send(s || null);
2153
+ });
2154
+ }, Xe = {
2155
+ http: Zo,
2156
+ xhr: Ts
2157
+ };
2158
+ u.forEach(Xe, (e, t) => {
2159
+ if (e) {
2160
+ try {
2161
+ Object.defineProperty(e, "name", { value: t });
2162
+ } catch {
2163
+ }
2164
+ Object.defineProperty(e, "adapterName", { value: t });
2165
+ }
2166
+ });
2167
+ const qt = (e) => `- ${e}`, As = (e) => u.isFunction(e) || e === null || e === !1, br = {
2168
+ getAdapter: (e) => {
2169
+ e = u.isArray(e) ? e : [e];
2170
+ const { length: t } = e;
2171
+ let r, n;
2172
+ const s = {};
2173
+ for (let o = 0; o < t; o++) {
2174
+ r = e[o];
2175
+ let a;
2176
+ if (n = r, !As(r) && (n = Xe[(a = String(r)).toLowerCase()], n === void 0))
2177
+ throw new _(`Unknown adapter '${a}'`);
2178
+ if (n)
2179
+ break;
2180
+ s[a || "#" + o] = n;
2181
+ }
2182
+ if (!n) {
2183
+ const o = Object.entries(s).map(
2184
+ ([c, l]) => `adapter ${c} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
2185
+ );
2186
+ let a = t ? o.length > 1 ? `since :
2187
+ ` + o.map(qt).join(`
2188
+ `) : " " + qt(o[0]) : "as no adapter specified";
2189
+ throw new _(
2190
+ "There is no suitable adapter to dispatch the request " + a,
2191
+ "ERR_NOT_SUPPORT"
2192
+ );
2193
+ }
2194
+ return n;
2195
+ },
2196
+ adapters: Xe
2197
+ };
2198
+ function ze(e) {
2199
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2200
+ throw new le(null, e);
2201
+ }
2202
+ function Ht(e) {
2203
+ return ze(e), e.headers = H.from(e.headers), e.data = He.call(
2204
+ e,
2205
+ e.transformRequest
2206
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), br.getAdapter(e.adapter || ot.adapter)(e).then(function(n) {
2207
+ return ze(e), n.data = He.call(
2208
+ e,
2209
+ e.transformResponse,
2210
+ n
2211
+ ), n.headers = H.from(n.headers), n;
2212
+ }, function(n) {
2213
+ return mr(n) || (ze(e), n && n.response && (n.response.data = He.call(
2214
+ e,
2215
+ e.transformResponse,
2216
+ n.response
2217
+ ), n.response.headers = H.from(n.response.headers))), Promise.reject(n);
2218
+ });
2219
+ }
2220
+ const zt = (e) => e instanceof H ? { ...e } : e;
2221
+ function Q(e, t) {
2222
+ t = t || {};
2223
+ const r = {};
2224
+ function n(h, p, f) {
2225
+ return u.isPlainObject(h) && u.isPlainObject(p) ? u.merge.call({ caseless: f }, h, p) : u.isPlainObject(p) ? u.merge({}, p) : u.isArray(p) ? p.slice() : p;
2226
+ }
2227
+ function s(h, p, f) {
2228
+ if (u.isUndefined(p)) {
2229
+ if (!u.isUndefined(h))
2230
+ return n(void 0, h, f);
2231
+ } else
2232
+ return n(h, p, f);
2233
+ }
2234
+ function o(h, p) {
2235
+ if (!u.isUndefined(p))
2236
+ return n(void 0, p);
2237
+ }
2238
+ function a(h, p) {
2239
+ if (u.isUndefined(p)) {
2240
+ if (!u.isUndefined(h))
2241
+ return n(void 0, h);
2242
+ } else
2243
+ return n(void 0, p);
2244
+ }
2245
+ function c(h, p, f) {
2246
+ if (f in t)
2247
+ return n(h, p);
2248
+ if (f in e)
2249
+ return n(void 0, h);
2250
+ }
2251
+ const l = {
2252
+ url: o,
2253
+ method: o,
2254
+ data: o,
2255
+ baseURL: a,
2256
+ transformRequest: a,
2257
+ transformResponse: a,
2258
+ paramsSerializer: a,
2259
+ timeout: a,
2260
+ timeoutMessage: a,
2261
+ withCredentials: a,
2262
+ withXSRFToken: a,
2263
+ adapter: a,
2264
+ responseType: a,
2265
+ xsrfCookieName: a,
2266
+ xsrfHeaderName: a,
2267
+ onUploadProgress: a,
2268
+ onDownloadProgress: a,
2269
+ decompress: a,
2270
+ maxContentLength: a,
2271
+ maxBodyLength: a,
2272
+ beforeRedirect: a,
2273
+ transport: a,
2274
+ httpAgent: a,
2275
+ httpsAgent: a,
2276
+ cancelToken: a,
2277
+ socketPath: a,
2278
+ responseEncoding: a,
2279
+ validateStatus: c,
2280
+ headers: (h, p) => s(zt(h), zt(p), !0)
2281
+ };
2282
+ return u.forEach(Object.keys(Object.assign({}, e, t)), function(p) {
2283
+ const f = l[p] || s, w = f(e[p], t[p], p);
2284
+ u.isUndefined(w) && f !== c || (r[p] = w);
2285
+ }), r;
2286
+ }
2287
+ const gr = "1.6.8", st = {};
2288
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2289
+ st[e] = function(n) {
2290
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
2291
+ };
2292
+ });
2293
+ const Wt = {};
2294
+ st.transitional = function(t, r, n) {
2295
+ function s(o, a) {
2296
+ return "[Axios v" + gr + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
2297
+ }
2298
+ return (o, a, c) => {
2299
+ if (t === !1)
2300
+ throw new _(
2301
+ s(a, " has been removed" + (r ? " in " + r : "")),
2302
+ _.ERR_DEPRECATED
2303
+ );
2304
+ return r && !Wt[a] && (Wt[a] = !0, console.warn(
2305
+ s(
2306
+ a,
2307
+ " has been deprecated since v" + r + " and will be removed in the near future"
2308
+ )
2309
+ )), t ? t(o, a, c) : !0;
2310
+ };
2311
+ };
2312
+ function Cs(e, t, r) {
2313
+ if (typeof e != "object")
2314
+ throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
2315
+ const n = Object.keys(e);
2316
+ let s = n.length;
2317
+ for (; s-- > 0; ) {
2318
+ const o = n[s], a = t[o];
2319
+ if (a) {
2320
+ const c = e[o], l = c === void 0 || a(c, o, e);
2321
+ if (l !== !0)
2322
+ throw new _("option " + o + " must be " + l, _.ERR_BAD_OPTION_VALUE);
2323
+ continue;
2324
+ }
2325
+ if (r !== !0)
2326
+ throw new _("Unknown option " + o, _.ERR_BAD_OPTION);
2327
+ }
2328
+ }
2329
+ const Ze = {
2330
+ assertOptions: Cs,
2331
+ validators: st
2332
+ }, W = Ze.validators;
2333
+ class xe {
2334
+ constructor(t) {
2335
+ this.defaults = t, this.interceptors = {
2336
+ request: new Bt(),
2337
+ response: new Bt()
2338
+ };
2339
+ }
2340
+ /**
2341
+ * Dispatch a request
2342
+ *
2343
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2344
+ * @param {?Object} config
2345
+ *
2346
+ * @returns {Promise} The Promise to be fulfilled
2347
+ */
2348
+ async request(t, r) {
2349
+ try {
2350
+ return await this._request(t, r);
2351
+ } catch (n) {
2352
+ if (n instanceof Error) {
2353
+ let s;
2354
+ Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error();
2355
+ const o = s.stack ? s.stack.replace(/^.+\n/, "") : "";
2356
+ n.stack ? o && !String(n.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (n.stack += `
2357
+ ` + o) : n.stack = o;
2358
+ }
2359
+ throw n;
2360
+ }
2361
+ }
2362
+ _request(t, r) {
2363
+ typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Q(this.defaults, r);
2364
+ const { transitional: n, paramsSerializer: s, headers: o } = r;
2365
+ n !== void 0 && Ze.assertOptions(n, {
2366
+ silentJSONParsing: W.transitional(W.boolean),
2367
+ forcedJSONParsing: W.transitional(W.boolean),
2368
+ clarifyTimeoutError: W.transitional(W.boolean)
2369
+ }, !1), s != null && (u.isFunction(s) ? r.paramsSerializer = {
2370
+ serialize: s
2371
+ } : Ze.assertOptions(s, {
2372
+ encode: W.function,
2373
+ serialize: W.function
2374
+ }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
2375
+ let a = o && u.merge(
2376
+ o.common,
2377
+ o[r.method]
2378
+ );
2379
+ o && u.forEach(
2380
+ ["delete", "get", "head", "post", "put", "patch", "common"],
2381
+ (y) => {
2382
+ delete o[y];
2383
+ }
2384
+ ), r.headers = H.concat(a, o);
2385
+ const c = [];
2386
+ let l = !0;
2387
+ this.interceptors.request.forEach(function(b) {
2388
+ typeof b.runWhen == "function" && b.runWhen(r) === !1 || (l = l && b.synchronous, c.unshift(b.fulfilled, b.rejected));
2389
+ });
2390
+ const h = [];
2391
+ this.interceptors.response.forEach(function(b) {
2392
+ h.push(b.fulfilled, b.rejected);
2393
+ });
2394
+ let p, f = 0, w;
2395
+ if (!l) {
2396
+ const y = [Ht.bind(this), void 0];
2397
+ for (y.unshift.apply(y, c), y.push.apply(y, h), w = y.length, p = Promise.resolve(r); f < w; )
2398
+ p = p.then(y[f++], y[f++]);
2399
+ return p;
2400
+ }
2401
+ w = c.length;
2402
+ let x = r;
2403
+ for (f = 0; f < w; ) {
2404
+ const y = c[f++], b = c[f++];
2405
+ try {
2406
+ x = y(x);
2407
+ } catch (k) {
2408
+ b.call(this, k);
2409
+ break;
2410
+ }
2411
+ }
2412
+ try {
2413
+ p = Ht.call(this, x);
2414
+ } catch (y) {
2415
+ return Promise.reject(y);
2416
+ }
2417
+ for (f = 0, w = h.length; f < w; )
2418
+ p = p.then(h[f++], h[f++]);
2419
+ return p;
2420
+ }
2421
+ getUri(t) {
2422
+ t = Q(this.defaults, t);
2423
+ const r = yr(t.baseURL, t.url);
2424
+ return fr(r, t.params, t.paramsSerializer);
2425
+ }
2426
+ }
2427
+ u.forEach(["delete", "get", "head", "options"], function(t) {
2428
+ xe.prototype[t] = function(r, n) {
2429
+ return this.request(Q(n || {}, {
2430
+ method: t,
2431
+ url: r,
2432
+ data: (n || {}).data
2433
+ }));
2434
+ };
2435
+ });
2436
+ u.forEach(["post", "put", "patch"], function(t) {
2437
+ function r(n) {
2438
+ return function(o, a, c) {
2439
+ return this.request(Q(c || {}, {
2440
+ method: t,
2441
+ headers: n ? {
2442
+ "Content-Type": "multipart/form-data"
2443
+ } : {},
2444
+ url: o,
2445
+ data: a
2446
+ }));
2447
+ };
2448
+ }
2449
+ xe.prototype[t] = r(), xe.prototype[t + "Form"] = r(!0);
2450
+ });
2451
+ const _e = xe;
2452
+ class it {
2453
+ constructor(t) {
2454
+ if (typeof t != "function")
2455
+ throw new TypeError("executor must be a function.");
2456
+ let r;
2457
+ this.promise = new Promise(function(o) {
2458
+ r = o;
2459
+ });
2460
+ const n = this;
2461
+ this.promise.then((s) => {
2462
+ if (!n._listeners)
2463
+ return;
2464
+ let o = n._listeners.length;
2465
+ for (; o-- > 0; )
2466
+ n._listeners[o](s);
2467
+ n._listeners = null;
2468
+ }), this.promise.then = (s) => {
2469
+ let o;
2470
+ const a = new Promise((c) => {
2471
+ n.subscribe(c), o = c;
2472
+ }).then(s);
2473
+ return a.cancel = function() {
2474
+ n.unsubscribe(o);
2475
+ }, a;
2476
+ }, t(function(o, a, c) {
2477
+ n.reason || (n.reason = new le(o, a, c), r(n.reason));
2478
+ });
2479
+ }
2480
+ /**
2481
+ * Throws a `CanceledError` if cancellation has been requested.
2482
+ */
2483
+ throwIfRequested() {
2484
+ if (this.reason)
2485
+ throw this.reason;
2486
+ }
2487
+ /**
2488
+ * Subscribe to the cancel signal
2489
+ */
2490
+ subscribe(t) {
2491
+ if (this.reason) {
2492
+ t(this.reason);
2493
+ return;
2494
+ }
2495
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
2496
+ }
2497
+ /**
2498
+ * Unsubscribe from the cancel signal
2499
+ */
2500
+ unsubscribe(t) {
2501
+ if (!this._listeners)
2502
+ return;
2503
+ const r = this._listeners.indexOf(t);
2504
+ r !== -1 && this._listeners.splice(r, 1);
2505
+ }
2506
+ /**
2507
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
2508
+ * cancels the `CancelToken`.
2509
+ */
2510
+ static source() {
2511
+ let t;
2512
+ return {
2513
+ token: new it(function(s) {
2514
+ t = s;
2515
+ }),
2516
+ cancel: t
2517
+ };
2518
+ }
2519
+ }
2520
+ const Ps = it;
2521
+ function ks(e) {
2522
+ return function(r) {
2523
+ return e.apply(null, r);
2524
+ };
2525
+ }
2526
+ function Ns(e) {
2527
+ return u.isObject(e) && e.isAxiosError === !0;
2528
+ }
2529
+ const Qe = {
2530
+ Continue: 100,
2531
+ SwitchingProtocols: 101,
2532
+ Processing: 102,
2533
+ EarlyHints: 103,
2534
+ Ok: 200,
2535
+ Created: 201,
2536
+ Accepted: 202,
2537
+ NonAuthoritativeInformation: 203,
2538
+ NoContent: 204,
2539
+ ResetContent: 205,
2540
+ PartialContent: 206,
2541
+ MultiStatus: 207,
2542
+ AlreadyReported: 208,
2543
+ ImUsed: 226,
2544
+ MultipleChoices: 300,
2545
+ MovedPermanently: 301,
2546
+ Found: 302,
2547
+ SeeOther: 303,
2548
+ NotModified: 304,
2549
+ UseProxy: 305,
2550
+ Unused: 306,
2551
+ TemporaryRedirect: 307,
2552
+ PermanentRedirect: 308,
2553
+ BadRequest: 400,
2554
+ Unauthorized: 401,
2555
+ PaymentRequired: 402,
2556
+ Forbidden: 403,
2557
+ NotFound: 404,
2558
+ MethodNotAllowed: 405,
2559
+ NotAcceptable: 406,
2560
+ ProxyAuthenticationRequired: 407,
2561
+ RequestTimeout: 408,
2562
+ Conflict: 409,
2563
+ Gone: 410,
2564
+ LengthRequired: 411,
2565
+ PreconditionFailed: 412,
2566
+ PayloadTooLarge: 413,
2567
+ UriTooLong: 414,
2568
+ UnsupportedMediaType: 415,
2569
+ RangeNotSatisfiable: 416,
2570
+ ExpectationFailed: 417,
2571
+ ImATeapot: 418,
2572
+ MisdirectedRequest: 421,
2573
+ UnprocessableEntity: 422,
2574
+ Locked: 423,
2575
+ FailedDependency: 424,
2576
+ TooEarly: 425,
2577
+ UpgradeRequired: 426,
2578
+ PreconditionRequired: 428,
2579
+ TooManyRequests: 429,
2580
+ RequestHeaderFieldsTooLarge: 431,
2581
+ UnavailableForLegalReasons: 451,
2582
+ InternalServerError: 500,
2583
+ NotImplemented: 501,
2584
+ BadGateway: 502,
2585
+ ServiceUnavailable: 503,
2586
+ GatewayTimeout: 504,
2587
+ HttpVersionNotSupported: 505,
2588
+ VariantAlsoNegotiates: 506,
2589
+ InsufficientStorage: 507,
2590
+ LoopDetected: 508,
2591
+ NotExtended: 510,
2592
+ NetworkAuthenticationRequired: 511
2593
+ };
2594
+ Object.entries(Qe).forEach(([e, t]) => {
2595
+ Qe[t] = e;
2596
+ });
2597
+ const js = Qe;
2598
+ function wr(e) {
2599
+ const t = new _e(e), r = Qt(_e.prototype.request, t);
2600
+ return u.extend(r, _e.prototype, t, { allOwnKeys: !0 }), u.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(s) {
2601
+ return wr(Q(e, s));
2602
+ }, r;
2603
+ }
2604
+ const A = wr(ot);
2605
+ A.Axios = _e;
2606
+ A.CanceledError = le;
2607
+ A.CancelToken = Ps;
2608
+ A.isCancel = mr;
2609
+ A.VERSION = gr;
2610
+ A.toFormData = Pe;
2611
+ A.AxiosError = _;
2612
+ A.Cancel = A.CanceledError;
2613
+ A.all = function(t) {
2614
+ return Promise.all(t);
2615
+ };
2616
+ A.spread = ks;
2617
+ A.isAxiosError = Ns;
2618
+ A.mergeConfig = Q;
2619
+ A.AxiosHeaders = H;
2620
+ A.formToJSON = (e) => hr(u.isHTMLForm(e) ? new FormData(e) : e);
2621
+ A.getAdapter = br.getAdapter;
2622
+ A.HttpStatusCode = js;
2623
+ A.default = A;
2624
+ const Vs = A.CancelToken, Js = (e = !0) => {
2625
+ const { axiosInstance: t, language: r, axiosTexts: n } = Jt(Gt), { addNotification: s } = bo(), { getToken: o } = mo();
2626
+ return et(() => {
2627
+ t.interceptors.request.clear(), t.interceptors.response.clear();
2628
+ const a = t.interceptors.request.use((l) => {
2629
+ var h, p, f;
2630
+ return e && !l.headers.Authorization && (l.headers.Authorization = `Bearer ${o()}`), (h = l.url) != null && h.includes("culture=") ? l.url = (p = l.url) == null ? void 0 : p.replace(/culture=[a-z]{2}/, `culture=${r}`) : l.url = `${l.url}${(f = l.url) != null && f.includes("?") ? "&" : "?"}culture=${r}`, l;
2631
+ }, (l) => Promise.reject(l)), c = t.interceptors.response.use((l) => l, (l) => {
2632
+ if (A.isCancel(l))
2633
+ return Promise.reject(l);
2634
+ const h = Qr(l);
2635
+ if (h.length > 0) {
2636
+ const p = h.find((f) => f.name.toLowerCase() === "others");
2637
+ return p ? (s(p.errors, "danger"), Promise.reject(l)) : (s(n.validationError, "warning"), Promise.reject(l));
2638
+ }
2639
+ return l.message && l.message === "Network Error" ? (s(n.networkError, "danger"), Promise.reject(l)) : (A.isCancel(l) || s(n.unexpectedError, "danger"), Promise.reject(l));
2640
+ });
2641
+ return () => {
2642
+ t.interceptors.request.eject(a), t.interceptors.response.eject(c);
2643
+ };
2644
+ }, [t, s, r, o, e, n]), t;
2645
+ };
2646
+ export {
2647
+ Hs as C,
2648
+ qs as I,
2649
+ Gt as L,
2650
+ Ws as U,
2651
+ bo as a,
2652
+ Js as b,
2653
+ Vs as c,
2654
+ zs as d,
2655
+ Is as e,
2656
+ Us as f,
2657
+ Bs as g,
2658
+ en as h,
2659
+ $s as i,
2660
+ Ls as j,
2661
+ Ms as k,
2662
+ mo as u
2663
+ };