@yusr_systems/core 2.1.6 → 2.1.7
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.
- package/dist/yusr-core.js +374 -1545
- package/dist/yusr-core.umd.cjs +1 -17
- package/package.json +1 -1
package/dist/yusr-core.js
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
-
});
|
|
7
|
-
return e;
|
|
8
|
-
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
-
value: n,
|
|
10
|
-
enumerable: !0
|
|
11
|
-
}) : a, n)), l = class {
|
|
1
|
+
import e from "react";
|
|
2
|
+
import "react-dom";
|
|
3
|
+
//#region src/auth/authConstants.ts
|
|
4
|
+
var t = class {
|
|
12
5
|
static LoggedInUserStorageItemName = "LoggedInUser";
|
|
13
6
|
static AuthCheckStorageItemName = "IsLoggedIn";
|
|
14
7
|
static SettingStorageItemName = "Setting";
|
|
15
8
|
static UnauthorizedEventName = "ApiUnauthorized";
|
|
16
9
|
};
|
|
17
10
|
typeof Symbol == "function" && Symbol.observable;
|
|
18
|
-
var
|
|
19
|
-
`${/* @__PURE__ */
|
|
20
|
-
function
|
|
11
|
+
var n = () => Math.random().toString(36).substring(7).split("").join(".");
|
|
12
|
+
`${/* @__PURE__ */ n()}`, `${/* @__PURE__ */ n()}`;
|
|
13
|
+
function r(e) {
|
|
21
14
|
if (typeof e != "object" || !e) return !1;
|
|
22
15
|
let t = e;
|
|
23
16
|
for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
24
17
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
25
18
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
19
|
+
function i(e) {
|
|
20
|
+
return r(e) && "type" in e && typeof e.type == "string";
|
|
28
21
|
}
|
|
29
22
|
//#endregion
|
|
30
23
|
//#region ../../node_modules/immer/dist/immer.mjs
|
|
31
|
-
var
|
|
24
|
+
var a = Symbol.for("immer-nothing"), o = Symbol.for("immer-draftable"), s = Symbol.for("immer-state"), c = process.env.NODE_ENV === "production" ? [] : [
|
|
32
25
|
function(e) {
|
|
33
26
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
34
27
|
},
|
|
@@ -56,98 +49,98 @@ var p = Symbol.for("immer-nothing"), m = Symbol.for("immer-draftable"), h = Symb
|
|
|
56
49
|
return `'original' expects a draft, got: ${e}`;
|
|
57
50
|
}
|
|
58
51
|
];
|
|
59
|
-
function
|
|
52
|
+
function l(e, ...t) {
|
|
60
53
|
if (process.env.NODE_ENV !== "production") {
|
|
61
|
-
let n =
|
|
54
|
+
let n = c[e], r = D(n) ? n.apply(null, t) : n;
|
|
62
55
|
throw Error(`[Immer] ${r}`);
|
|
63
56
|
}
|
|
64
57
|
throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`);
|
|
65
58
|
}
|
|
66
|
-
var
|
|
67
|
-
function
|
|
68
|
-
return e ?
|
|
59
|
+
var u = Object, d = u.getPrototypeOf, f = "constructor", p = "prototype", m = "configurable", h = "enumerable", g = "writable", _ = "value", v = (e) => !!e && !!e[s];
|
|
60
|
+
function y(e) {
|
|
61
|
+
return e ? ne(e) || w(e) || !!e[o] || !!e[f]?.[o] || T(e) || E(e) : !1;
|
|
69
62
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
72
|
-
if (!e || !
|
|
73
|
-
let t =
|
|
74
|
-
if (t === null || t ===
|
|
75
|
-
let n =
|
|
63
|
+
var ee = u[p][f].toString(), te = /* @__PURE__ */ new WeakMap();
|
|
64
|
+
function ne(e) {
|
|
65
|
+
if (!e || !ae(e)) return !1;
|
|
66
|
+
let t = d(e);
|
|
67
|
+
if (t === null || t === u[p]) return !0;
|
|
68
|
+
let n = u.hasOwnProperty.call(t, f) && t[f];
|
|
76
69
|
if (n === Object) return !0;
|
|
77
|
-
if (!
|
|
70
|
+
if (!D(n)) return !1;
|
|
78
71
|
let r = te.get(n);
|
|
79
|
-
return r === void 0 && (r = Function.toString.call(n), te.set(n, r)), r ===
|
|
72
|
+
return r === void 0 && (r = Function.toString.call(n), te.set(n, r)), r === ee;
|
|
80
73
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
74
|
+
function b(e, t, n = !0) {
|
|
75
|
+
x(e) === 0 ? (n ? Reflect.ownKeys(e) : u.keys(e)).forEach((n) => {
|
|
83
76
|
t(n, e[n], e);
|
|
84
77
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
85
78
|
}
|
|
86
|
-
function
|
|
87
|
-
let t = e[
|
|
88
|
-
return t ? t.type_ :
|
|
79
|
+
function x(e) {
|
|
80
|
+
let t = e[s];
|
|
81
|
+
return t ? t.type_ : w(e) ? 1 : T(e) ? 2 : E(e) ? 3 : 0;
|
|
89
82
|
}
|
|
90
|
-
var
|
|
83
|
+
var re = (e, t, n = x(e)) => n === 2 ? e.has(t) : u[p].hasOwnProperty.call(e, t), S = (e, t, n = x(e)) => n === 2 ? e.get(t) : e[t], C = (e, t, n, r = x(e)) => {
|
|
91
84
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
92
85
|
};
|
|
93
|
-
function
|
|
86
|
+
function ie(e, t) {
|
|
94
87
|
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
95
88
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
89
|
+
var w = Array.isArray, T = (e) => e instanceof Map, E = (e) => e instanceof Set, ae = (e) => typeof e == "object", D = (e) => typeof e == "function", O = (e) => typeof e == "boolean";
|
|
90
|
+
function oe(e) {
|
|
98
91
|
let t = +e;
|
|
99
92
|
return Number.isInteger(t) && String(t) === e;
|
|
100
93
|
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
103
|
-
if (
|
|
104
|
-
if (
|
|
105
|
-
if (
|
|
106
|
-
let n =
|
|
94
|
+
var k = (e) => e.copy_ || e.base_, se = (e) => e.modified_ ? e.copy_ : e.base_;
|
|
95
|
+
function A(e, t) {
|
|
96
|
+
if (T(e)) return new Map(e);
|
|
97
|
+
if (E(e)) return new Set(e);
|
|
98
|
+
if (w(e)) return Array[p].slice.call(e);
|
|
99
|
+
let n = ne(e);
|
|
107
100
|
if (t === !0 || t === "class_only" && !n) {
|
|
108
|
-
let t =
|
|
109
|
-
delete t[
|
|
101
|
+
let t = u.getOwnPropertyDescriptors(e);
|
|
102
|
+
delete t[s];
|
|
110
103
|
let n = Reflect.ownKeys(t);
|
|
111
104
|
for (let r = 0; r < n.length; r++) {
|
|
112
105
|
let i = n[r], a = t[i];
|
|
113
|
-
a[
|
|
114
|
-
[
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
[
|
|
106
|
+
a[g] === !1 && (a[g] = !0, a[m] = !0), (a.get || a.set) && (t[i] = {
|
|
107
|
+
[m]: !0,
|
|
108
|
+
[g]: !0,
|
|
109
|
+
[h]: a[h],
|
|
110
|
+
[_]: e[i]
|
|
118
111
|
});
|
|
119
112
|
}
|
|
120
|
-
return
|
|
113
|
+
return u.create(d(e), t);
|
|
121
114
|
} else {
|
|
122
|
-
let t =
|
|
115
|
+
let t = d(e);
|
|
123
116
|
if (t !== null && n) return { ...e };
|
|
124
|
-
let r =
|
|
125
|
-
return
|
|
117
|
+
let r = u.create(t);
|
|
118
|
+
return u.assign(r, e);
|
|
126
119
|
}
|
|
127
120
|
}
|
|
128
|
-
function
|
|
129
|
-
return
|
|
130
|
-
set:
|
|
131
|
-
add:
|
|
132
|
-
clear:
|
|
133
|
-
delete:
|
|
134
|
-
}),
|
|
135
|
-
|
|
121
|
+
function j(e, t = !1) {
|
|
122
|
+
return N(e) || v(e) || !y(e) ? e : (x(e) > 1 && u.defineProperties(e, {
|
|
123
|
+
set: M,
|
|
124
|
+
add: M,
|
|
125
|
+
clear: M,
|
|
126
|
+
delete: M
|
|
127
|
+
}), u.freeze(e), t && b(e, (e, t) => {
|
|
128
|
+
j(t, !0);
|
|
136
129
|
}, !1), e);
|
|
137
130
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
131
|
+
function ce() {
|
|
132
|
+
l(2);
|
|
140
133
|
}
|
|
141
|
-
var
|
|
142
|
-
function
|
|
143
|
-
return e === null || !
|
|
134
|
+
var M = { [_]: ce };
|
|
135
|
+
function N(e) {
|
|
136
|
+
return e === null || !ae(e) ? !0 : u.isFrozen(e);
|
|
144
137
|
}
|
|
145
|
-
var
|
|
146
|
-
function
|
|
147
|
-
let t =
|
|
148
|
-
return t ||
|
|
138
|
+
var P = "MapSet", F = "Patches", le = "ArrayMethods", ue = {};
|
|
139
|
+
function I(e) {
|
|
140
|
+
let t = ue[e];
|
|
141
|
+
return t || l(0, e), t;
|
|
149
142
|
}
|
|
150
|
-
var
|
|
143
|
+
var de = (e) => !!ue[e], L, fe = () => L, pe = (e, t) => ({
|
|
151
144
|
drafts_: [],
|
|
152
145
|
parent_: e,
|
|
153
146
|
immer_: t,
|
|
@@ -155,114 +148,114 @@ var q = (e) => !!ce[e], J, le = () => J, ue = (e, t) => ({
|
|
|
155
148
|
unfinalizedDrafts_: 0,
|
|
156
149
|
handledSet_: /* @__PURE__ */ new Set(),
|
|
157
150
|
processedForPatches_: /* @__PURE__ */ new Set(),
|
|
158
|
-
mapSetPlugin_:
|
|
159
|
-
arrayMethodsPlugin_:
|
|
151
|
+
mapSetPlugin_: de(P) ? I(P) : void 0,
|
|
152
|
+
arrayMethodsPlugin_: de(le) ? I(le) : void 0
|
|
160
153
|
});
|
|
161
|
-
function
|
|
162
|
-
t && (e.patchPlugin_ =
|
|
154
|
+
function me(e, t) {
|
|
155
|
+
t && (e.patchPlugin_ = I(F), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
163
156
|
}
|
|
164
|
-
function
|
|
165
|
-
|
|
157
|
+
function he(e) {
|
|
158
|
+
ge(e), e.drafts_.forEach(ve), e.drafts_ = null;
|
|
166
159
|
}
|
|
167
|
-
function
|
|
168
|
-
e ===
|
|
160
|
+
function ge(e) {
|
|
161
|
+
e === L && (L = e.parent_);
|
|
169
162
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
let t = e[
|
|
163
|
+
var _e = (e) => L = pe(L, e);
|
|
164
|
+
function ve(e) {
|
|
165
|
+
let t = e[s];
|
|
173
166
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
174
167
|
}
|
|
175
|
-
function
|
|
168
|
+
function ye(e, t) {
|
|
176
169
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
177
170
|
let n = t.drafts_[0];
|
|
178
171
|
if (e !== void 0 && e !== n) {
|
|
179
|
-
n[
|
|
172
|
+
n[s].modified_ && (he(t), l(4)), y(e) && (e = be(t, e));
|
|
180
173
|
let { patchPlugin_: r } = t;
|
|
181
|
-
r && r.generateReplacementPatches_(n[
|
|
182
|
-
} else e =
|
|
183
|
-
return
|
|
174
|
+
r && r.generateReplacementPatches_(n[s].base_, e, t);
|
|
175
|
+
} else e = be(t, n);
|
|
176
|
+
return xe(t, e, !0), he(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e === a ? void 0 : e;
|
|
184
177
|
}
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
187
|
-
let n = t[
|
|
188
|
-
if (!n) return
|
|
189
|
-
if (!
|
|
178
|
+
function be(e, t) {
|
|
179
|
+
if (N(t)) return t;
|
|
180
|
+
let n = t[s];
|
|
181
|
+
if (!n) return z(t, e.handledSet_, e);
|
|
182
|
+
if (!R(n, e)) return t;
|
|
190
183
|
if (!n.modified_) return n.base_;
|
|
191
184
|
if (!n.finalized_) {
|
|
192
185
|
let { callbacks_: t } = n;
|
|
193
186
|
if (t) for (; t.length > 0;) t.pop()(e);
|
|
194
|
-
|
|
187
|
+
Ee(n, e);
|
|
195
188
|
}
|
|
196
189
|
return n.copy_;
|
|
197
190
|
}
|
|
198
|
-
function
|
|
199
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ &&
|
|
191
|
+
function xe(e, t, n = !1) {
|
|
192
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && j(t, n);
|
|
200
193
|
}
|
|
201
|
-
function
|
|
194
|
+
function Se(e) {
|
|
202
195
|
e.finalized_ = !0, e.scope_.unfinalizedDrafts_--;
|
|
203
196
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
206
|
-
let i =
|
|
207
|
-
if (r !== void 0 &&
|
|
208
|
-
|
|
197
|
+
var R = (e, t) => e.scope_ === t, Ce = [];
|
|
198
|
+
function we(e, t, n, r) {
|
|
199
|
+
let i = k(e), a = e.type_;
|
|
200
|
+
if (r !== void 0 && S(i, r, a) === t) {
|
|
201
|
+
C(i, r, n, a);
|
|
209
202
|
return;
|
|
210
203
|
}
|
|
211
204
|
if (!e.draftLocations_) {
|
|
212
205
|
let t = e.draftLocations_ = /* @__PURE__ */ new Map();
|
|
213
|
-
|
|
214
|
-
if (
|
|
206
|
+
b(i, (e, n) => {
|
|
207
|
+
if (v(n)) {
|
|
215
208
|
let r = t.get(n) || [];
|
|
216
209
|
r.push(e), t.set(n, r);
|
|
217
210
|
}
|
|
218
211
|
});
|
|
219
212
|
}
|
|
220
|
-
let o = e.draftLocations_.get(t) ??
|
|
221
|
-
for (let e of o)
|
|
213
|
+
let o = e.draftLocations_.get(t) ?? Ce;
|
|
214
|
+
for (let e of o) C(i, e, n, a);
|
|
222
215
|
}
|
|
223
|
-
function
|
|
216
|
+
function Te(e, t, n) {
|
|
224
217
|
e.callbacks_.push(function(r) {
|
|
225
218
|
let i = t;
|
|
226
|
-
if (!i || !
|
|
219
|
+
if (!i || !R(i, r)) return;
|
|
227
220
|
r.mapSetPlugin_?.fixSetContents(i);
|
|
228
|
-
let a =
|
|
229
|
-
|
|
221
|
+
let a = se(i);
|
|
222
|
+
we(e, i.draft_ ?? i, a, n), Ee(i, r);
|
|
230
223
|
});
|
|
231
224
|
}
|
|
232
|
-
function
|
|
225
|
+
function Ee(e, t) {
|
|
233
226
|
if (e.modified_ && !e.finalized_ && (e.type_ === 3 || e.type_ === 1 && e.allIndicesReassigned_ || (e.assigned_?.size ?? 0) > 0)) {
|
|
234
227
|
let { patchPlugin_: n } = t;
|
|
235
228
|
if (n) {
|
|
236
229
|
let r = n.getPath(e);
|
|
237
230
|
r && n.generatePatches_(e, r, t);
|
|
238
231
|
}
|
|
239
|
-
|
|
232
|
+
Se(e);
|
|
240
233
|
}
|
|
241
234
|
}
|
|
242
|
-
function
|
|
235
|
+
function De(e, t, n) {
|
|
243
236
|
let { scope_: r } = e;
|
|
244
|
-
if (
|
|
245
|
-
let i = n[
|
|
246
|
-
|
|
247
|
-
|
|
237
|
+
if (v(n)) {
|
|
238
|
+
let i = n[s];
|
|
239
|
+
R(i, r) && i.callbacks_.push(function() {
|
|
240
|
+
U(e), we(e, n, se(i), t);
|
|
248
241
|
});
|
|
249
|
-
} else
|
|
250
|
-
let i =
|
|
251
|
-
e.type_ === 3 ? i.has(n) &&
|
|
242
|
+
} else y(n) && e.callbacks_.push(function() {
|
|
243
|
+
let i = k(e);
|
|
244
|
+
e.type_ === 3 ? i.has(n) && z(n, r.handledSet_, r) : S(i, t, e.type_) === n && r.drafts_.length > 1 && (e.assigned_.get(t) ?? !1) === !0 && e.copy_ && z(S(e.copy_, t, e.type_), r.handledSet_, r);
|
|
252
245
|
});
|
|
253
246
|
}
|
|
254
|
-
function
|
|
255
|
-
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 ||
|
|
256
|
-
if (
|
|
257
|
-
let t = i[
|
|
258
|
-
|
|
259
|
-
} else
|
|
247
|
+
function z(e, t, n) {
|
|
248
|
+
return !n.immer_.autoFreeze_ && n.unfinalizedDrafts_ < 1 || v(e) || t.has(e) || !y(e) || N(e) ? e : (t.add(e), b(e, (r, i) => {
|
|
249
|
+
if (v(i)) {
|
|
250
|
+
let t = i[s];
|
|
251
|
+
R(t, n) && (C(e, r, se(t), e.type_), Se(t));
|
|
252
|
+
} else y(i) && z(i, t, n);
|
|
260
253
|
}), e);
|
|
261
254
|
}
|
|
262
|
-
function
|
|
263
|
-
let n =
|
|
255
|
+
function Oe(e, t) {
|
|
256
|
+
let n = w(e), r = {
|
|
264
257
|
type_: n ? 1 : 0,
|
|
265
|
-
scope_: t ? t.scope_ :
|
|
258
|
+
scope_: t ? t.scope_ : fe(),
|
|
266
259
|
modified_: !1,
|
|
267
260
|
finalized_: !1,
|
|
268
261
|
assigned_: void 0,
|
|
@@ -273,105 +266,105 @@ function Te(e, t) {
|
|
|
273
266
|
revoke_: null,
|
|
274
267
|
isManual_: !1,
|
|
275
268
|
callbacks_: void 0
|
|
276
|
-
}, i = r, a =
|
|
277
|
-
n && (i = [r], a =
|
|
269
|
+
}, i = r, a = B;
|
|
270
|
+
n && (i = [r], a = V);
|
|
278
271
|
let { revoke: o, proxy: s } = Proxy.revocable(i, a);
|
|
279
272
|
return r.draft_ = s, r.revoke_ = o, [s, r];
|
|
280
273
|
}
|
|
281
|
-
var
|
|
274
|
+
var B = {
|
|
282
275
|
get(e, t) {
|
|
283
|
-
if (t ===
|
|
276
|
+
if (t === s) return e;
|
|
284
277
|
let n = e.scope_.arrayMethodsPlugin_, r = e.type_ === 1 && typeof t == "string";
|
|
285
278
|
if (r && n?.isArrayOperationMethod(t)) return n.createMethodInterceptor(e, t);
|
|
286
|
-
let i =
|
|
287
|
-
if (!
|
|
279
|
+
let i = k(e);
|
|
280
|
+
if (!re(i, t, e.type_)) return ke(e, i, t);
|
|
288
281
|
let a = i[t];
|
|
289
|
-
if (e.finalized_ || !
|
|
290
|
-
if (a ===
|
|
291
|
-
|
|
292
|
-
let n = e.type_ === 1 ? +t : t, r =
|
|
282
|
+
if (e.finalized_ || !y(a) || r && e.operationMethod && n?.isMutatingArrayMethod(e.operationMethod) && oe(t)) return a;
|
|
283
|
+
if (a === H(e.base_, t)) {
|
|
284
|
+
U(e);
|
|
285
|
+
let n = e.type_ === 1 ? +t : t, r = W(e.scope_, a, e, n);
|
|
293
286
|
return e.copy_[n] = r;
|
|
294
287
|
}
|
|
295
288
|
return a;
|
|
296
289
|
},
|
|
297
290
|
has(e, t) {
|
|
298
|
-
return t in
|
|
291
|
+
return t in k(e);
|
|
299
292
|
},
|
|
300
293
|
ownKeys(e) {
|
|
301
|
-
return Reflect.ownKeys(
|
|
294
|
+
return Reflect.ownKeys(k(e));
|
|
302
295
|
},
|
|
303
296
|
set(e, t, n) {
|
|
304
|
-
let r = Ae(
|
|
297
|
+
let r = Ae(k(e), t);
|
|
305
298
|
if (r?.set) return r.set.call(e.draft_, n), !0;
|
|
306
299
|
if (!e.modified_) {
|
|
307
|
-
let r =
|
|
300
|
+
let r = H(k(e), t), i = r?.[s];
|
|
308
301
|
if (i && i.base_ === n) return e.copy_[t] = n, e.assigned_.set(t, !1), !0;
|
|
309
|
-
if (
|
|
310
|
-
|
|
302
|
+
if (ie(n, r) && (n !== void 0 || re(e.base_, t, e.type_))) return !0;
|
|
303
|
+
U(e), je(e);
|
|
311
304
|
}
|
|
312
|
-
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0),
|
|
305
|
+
return e.copy_[t] === n && (n !== void 0 || t in e.copy_) || Number.isNaN(n) && Number.isNaN(e.copy_[t]) ? !0 : (e.copy_[t] = n, e.assigned_.set(t, !0), De(e, t, n), !0);
|
|
313
306
|
},
|
|
314
307
|
deleteProperty(e, t) {
|
|
315
|
-
return
|
|
308
|
+
return U(e), H(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_.set(t, !1), je(e)) : e.assigned_.delete(t), e.copy_ && delete e.copy_[t], !0;
|
|
316
309
|
},
|
|
317
310
|
getOwnPropertyDescriptor(e, t) {
|
|
318
|
-
let n =
|
|
311
|
+
let n = k(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
319
312
|
return r && {
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
323
|
-
[
|
|
313
|
+
[g]: !0,
|
|
314
|
+
[m]: e.type_ !== 1 || t !== "length",
|
|
315
|
+
[h]: r[h],
|
|
316
|
+
[_]: n[t]
|
|
324
317
|
};
|
|
325
318
|
},
|
|
326
319
|
defineProperty() {
|
|
327
|
-
|
|
320
|
+
l(11);
|
|
328
321
|
},
|
|
329
322
|
getPrototypeOf(e) {
|
|
330
|
-
return
|
|
323
|
+
return d(e.base_);
|
|
331
324
|
},
|
|
332
325
|
setPrototypeOf() {
|
|
333
|
-
|
|
326
|
+
l(12);
|
|
334
327
|
}
|
|
335
|
-
},
|
|
336
|
-
for (let e in
|
|
337
|
-
let t =
|
|
338
|
-
|
|
328
|
+
}, V = {};
|
|
329
|
+
for (let e in B) {
|
|
330
|
+
let t = B[e];
|
|
331
|
+
V[e] = function() {
|
|
339
332
|
let e = arguments;
|
|
340
333
|
return e[0] = e[0][0], t.apply(this, e);
|
|
341
334
|
};
|
|
342
335
|
}
|
|
343
|
-
|
|
344
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) &&
|
|
345
|
-
},
|
|
346
|
-
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) &&
|
|
336
|
+
V.deleteProperty = function(e, t) {
|
|
337
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && l(13), V.set.call(this, e, t, void 0);
|
|
338
|
+
}, V.set = function(e, t, n) {
|
|
339
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && l(14), B.set.call(this, e[0], t, n, e[0]);
|
|
347
340
|
};
|
|
348
|
-
function
|
|
349
|
-
let n = e[
|
|
350
|
-
return (n ?
|
|
341
|
+
function H(e, t) {
|
|
342
|
+
let n = e[s];
|
|
343
|
+
return (n ? k(n) : e)[t];
|
|
351
344
|
}
|
|
352
345
|
function ke(e, t, n) {
|
|
353
346
|
let r = Ae(t, n);
|
|
354
|
-
return r ?
|
|
347
|
+
return r ? _ in r ? r[_] : r.get?.call(e.draft_) : void 0;
|
|
355
348
|
}
|
|
356
349
|
function Ae(e, t) {
|
|
357
350
|
if (!(t in e)) return;
|
|
358
|
-
let n =
|
|
351
|
+
let n = d(e);
|
|
359
352
|
for (; n;) {
|
|
360
353
|
let e = Object.getOwnPropertyDescriptor(n, t);
|
|
361
354
|
if (e) return e;
|
|
362
|
-
n =
|
|
355
|
+
n = d(n);
|
|
363
356
|
}
|
|
364
357
|
}
|
|
365
358
|
function je(e) {
|
|
366
359
|
e.modified_ || (e.modified_ = !0, e.parent_ && je(e.parent_));
|
|
367
360
|
}
|
|
368
|
-
function
|
|
369
|
-
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(),
|
|
361
|
+
function U(e) {
|
|
362
|
+
e.copy_ ||= (e.assigned_ = /* @__PURE__ */ new Map(), A(e.base_, e.scope_.immer_.useStrictShallowCopy_));
|
|
370
363
|
}
|
|
371
|
-
var
|
|
364
|
+
var Me = class {
|
|
372
365
|
constructor(e) {
|
|
373
366
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.useStrictIteration_ = !1, this.produce = (e, t, n) => {
|
|
374
|
-
if (
|
|
367
|
+
if (D(e) && !D(t)) {
|
|
375
368
|
let n = t;
|
|
376
369
|
t = e;
|
|
377
370
|
let r = this;
|
|
@@ -379,28 +372,28 @@ var Ne = class {
|
|
|
379
372
|
return r.produce(e, (e) => t.call(this, e, ...i));
|
|
380
373
|
};
|
|
381
374
|
}
|
|
382
|
-
|
|
375
|
+
D(t) || l(6), n !== void 0 && !D(n) && l(7);
|
|
383
376
|
let r;
|
|
384
|
-
if (
|
|
385
|
-
let i =
|
|
377
|
+
if (y(e)) {
|
|
378
|
+
let i = _e(this), a = W(i, e, void 0), o = !0;
|
|
386
379
|
try {
|
|
387
380
|
r = t(a), o = !1;
|
|
388
381
|
} finally {
|
|
389
|
-
o ?
|
|
382
|
+
o ? he(i) : ge(i);
|
|
390
383
|
}
|
|
391
|
-
return
|
|
392
|
-
} else if (!e || !
|
|
393
|
-
if (r = t(e), r === void 0 && (r = e), r ===
|
|
384
|
+
return me(i, n), ye(r, i);
|
|
385
|
+
} else if (!e || !ae(e)) {
|
|
386
|
+
if (r = t(e), r === void 0 && (r = e), r === a && (r = void 0), this.autoFreeze_ && j(r, !0), n) {
|
|
394
387
|
let t = [], i = [];
|
|
395
|
-
|
|
388
|
+
I(F).generateReplacementPatches_(e, r, {
|
|
396
389
|
patches_: t,
|
|
397
390
|
inversePatches_: i
|
|
398
391
|
}), n(t, i);
|
|
399
392
|
}
|
|
400
393
|
return r;
|
|
401
|
-
} else
|
|
394
|
+
} else l(1, e);
|
|
402
395
|
}, this.produceWithPatches = (e, t) => {
|
|
403
|
-
if (
|
|
396
|
+
if (D(e)) return (t, ...n) => this.produceWithPatches(t, (t) => e(t, ...n));
|
|
404
397
|
let n, r;
|
|
405
398
|
return [
|
|
406
399
|
this.produce(e, t, (e, t) => {
|
|
@@ -409,18 +402,18 @@ var Ne = class {
|
|
|
409
402
|
n,
|
|
410
403
|
r
|
|
411
404
|
];
|
|
412
|
-
},
|
|
405
|
+
}, O(e?.autoFreeze) && this.setAutoFreeze(e.autoFreeze), O(e?.useStrictShallowCopy) && this.setUseStrictShallowCopy(e.useStrictShallowCopy), O(e?.useStrictIteration) && this.setUseStrictIteration(e.useStrictIteration);
|
|
413
406
|
}
|
|
414
407
|
createDraft(e) {
|
|
415
|
-
|
|
416
|
-
let t =
|
|
417
|
-
return n[
|
|
408
|
+
y(e) || l(8), v(e) && (e = Ne(e));
|
|
409
|
+
let t = _e(this), n = W(t, e, void 0);
|
|
410
|
+
return n[s].isManual_ = !0, ge(t), n;
|
|
418
411
|
}
|
|
419
412
|
finishDraft(e, t) {
|
|
420
|
-
let n = e && e[
|
|
421
|
-
(!n || !n.isManual_) &&
|
|
413
|
+
let n = e && e[s];
|
|
414
|
+
(!n || !n.isManual_) && l(9);
|
|
422
415
|
let { scope_: r } = n;
|
|
423
|
-
return
|
|
416
|
+
return me(r, t), ye(void 0, r);
|
|
424
417
|
}
|
|
425
418
|
setAutoFreeze(e) {
|
|
426
419
|
this.autoFreeze_ = e;
|
|
@@ -444,39 +437,39 @@ var Ne = class {
|
|
|
444
437
|
}
|
|
445
438
|
}
|
|
446
439
|
n > -1 && (t = t.slice(n + 1));
|
|
447
|
-
let r =
|
|
448
|
-
return
|
|
440
|
+
let r = I(F).applyPatches_;
|
|
441
|
+
return v(e) ? r(e, t) : this.produce(e, (e) => r(e, t));
|
|
449
442
|
}
|
|
450
443
|
};
|
|
451
|
-
function
|
|
452
|
-
let [i, a] =
|
|
453
|
-
return (n?.scope_ ??
|
|
444
|
+
function W(e, t, n, r) {
|
|
445
|
+
let [i, a] = T(t) ? I(P).proxyMap_(t, n) : E(t) ? I(P).proxySet_(t, n) : Oe(t, n);
|
|
446
|
+
return (n?.scope_ ?? fe()).drafts_.push(i), a.callbacks_ = n?.callbacks_ ?? [], a.key_ = r, n && r !== void 0 ? Te(n, a, r) : a.callbacks_.push(function(e) {
|
|
454
447
|
e.mapSetPlugin_?.fixSetContents(a);
|
|
455
448
|
let { patchPlugin_: t } = e;
|
|
456
449
|
a.modified_ && t && t.generatePatches_(a, [], e);
|
|
457
450
|
}), i;
|
|
458
451
|
}
|
|
459
|
-
function
|
|
460
|
-
return
|
|
452
|
+
function Ne(e) {
|
|
453
|
+
return v(e) || l(10, e), Pe(e);
|
|
461
454
|
}
|
|
462
|
-
function
|
|
463
|
-
if (!
|
|
464
|
-
let t = e[
|
|
455
|
+
function Pe(e) {
|
|
456
|
+
if (!y(e) || N(e)) return e;
|
|
457
|
+
let t = e[s], n, r = !0;
|
|
465
458
|
if (t) {
|
|
466
459
|
if (!t.modified_) return t.base_;
|
|
467
|
-
t.finalized_ = !0, n =
|
|
468
|
-
} else n =
|
|
469
|
-
return
|
|
470
|
-
|
|
460
|
+
t.finalized_ = !0, n = A(e, t.scope_.immer_.useStrictShallowCopy_), r = t.scope_.immer_.shouldUseStrictIteration();
|
|
461
|
+
} else n = A(e, !0);
|
|
462
|
+
return b(n, (e, t) => {
|
|
463
|
+
C(n, e, Pe(t));
|
|
471
464
|
}, r), t && (t.finalized_ = !1), n;
|
|
472
465
|
}
|
|
473
|
-
var
|
|
466
|
+
var Fe = new Me().produce;
|
|
474
467
|
typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__, typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
475
|
-
function
|
|
468
|
+
function G(e, t) {
|
|
476
469
|
function n(...n) {
|
|
477
470
|
if (t) {
|
|
478
471
|
let r = t(...n);
|
|
479
|
-
if (!r) throw Error(process.env.NODE_ENV === "production" ?
|
|
472
|
+
if (!r) throw Error(process.env.NODE_ENV === "production" ? J(0) : "prepareAction did not return an object");
|
|
480
473
|
return {
|
|
481
474
|
type: e,
|
|
482
475
|
payload: r.payload,
|
|
@@ -489,43 +482,43 @@ function Re(e, t) {
|
|
|
489
482
|
payload: n[0]
|
|
490
483
|
};
|
|
491
484
|
}
|
|
492
|
-
return n.toString = () => `${e}`, n.type = e, n.match = (t) =>
|
|
485
|
+
return n.toString = () => `${e}`, n.type = e, n.match = (t) => i(t) && t.type === e, n;
|
|
493
486
|
}
|
|
494
487
|
Array, Symbol.species;
|
|
495
|
-
function
|
|
496
|
-
return
|
|
488
|
+
function Ie(e) {
|
|
489
|
+
return y(e) ? Fe(e, () => {}) : e;
|
|
497
490
|
}
|
|
498
|
-
function
|
|
491
|
+
function K(e, t, n) {
|
|
499
492
|
return e.has(t) ? e.get(t) : e.set(t, n(t)).get(t);
|
|
500
493
|
}
|
|
501
|
-
function
|
|
494
|
+
function Le(e) {
|
|
502
495
|
let t = {}, n = [], r, i = {
|
|
503
496
|
addCase(e, a) {
|
|
504
497
|
if (process.env.NODE_ENV !== "production") {
|
|
505
|
-
if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
506
|
-
if (r) throw Error(process.env.NODE_ENV === "production" ?
|
|
498
|
+
if (n.length > 0) throw Error(process.env.NODE_ENV === "production" ? J(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
|
|
499
|
+
if (r) throw Error(process.env.NODE_ENV === "production" ? J(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
|
|
507
500
|
}
|
|
508
501
|
let o = typeof e == "string" ? e : e.type;
|
|
509
|
-
if (!o) throw Error(process.env.NODE_ENV === "production" ?
|
|
510
|
-
if (o in t) throw Error(process.env.NODE_ENV === "production" ?
|
|
502
|
+
if (!o) throw Error(process.env.NODE_ENV === "production" ? J(28) : "`builder.addCase` cannot be called with an empty action type");
|
|
503
|
+
if (o in t) throw Error(process.env.NODE_ENV === "production" ? J(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);
|
|
511
504
|
return t[o] = a, i;
|
|
512
505
|
},
|
|
513
506
|
addAsyncThunk(e, a) {
|
|
514
|
-
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ?
|
|
507
|
+
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? J(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
|
|
515
508
|
return a.pending && (t[e.pending.type] = a.pending), a.rejected && (t[e.rejected.type] = a.rejected), a.fulfilled && (t[e.fulfilled.type] = a.fulfilled), a.settled && n.push({
|
|
516
509
|
matcher: e.settled,
|
|
517
510
|
reducer: a.settled
|
|
518
511
|
}), i;
|
|
519
512
|
},
|
|
520
513
|
addMatcher(e, t) {
|
|
521
|
-
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ?
|
|
514
|
+
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? J(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
|
|
522
515
|
return n.push({
|
|
523
516
|
matcher: e,
|
|
524
517
|
reducer: t
|
|
525
518
|
}), i;
|
|
526
519
|
},
|
|
527
520
|
addDefaultCase(e) {
|
|
528
|
-
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ?
|
|
521
|
+
if (process.env.NODE_ENV !== "production" && r) throw Error(process.env.NODE_ENV === "production" ? J(31) : "`builder.addDefaultCase` can only be called once");
|
|
529
522
|
return r = e, i;
|
|
530
523
|
}
|
|
531
524
|
};
|
|
@@ -535,24 +528,24 @@ function Ve(e) {
|
|
|
535
528
|
r
|
|
536
529
|
];
|
|
537
530
|
}
|
|
538
|
-
function
|
|
531
|
+
function Re(e) {
|
|
539
532
|
return typeof e == "function";
|
|
540
533
|
}
|
|
541
|
-
function
|
|
542
|
-
if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ?
|
|
543
|
-
let [n, r, i] =
|
|
544
|
-
if (
|
|
534
|
+
function ze(e, t) {
|
|
535
|
+
if (process.env.NODE_ENV !== "production" && typeof t == "object") throw Error(process.env.NODE_ENV === "production" ? J(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
536
|
+
let [n, r, i] = Le(t), a;
|
|
537
|
+
if (Re(e)) a = () => Ie(e());
|
|
545
538
|
else {
|
|
546
|
-
let t =
|
|
539
|
+
let t = Ie(e);
|
|
547
540
|
a = () => t;
|
|
548
541
|
}
|
|
549
542
|
function o(e = a(), t) {
|
|
550
543
|
let o = [n[t.type], ...r.filter(({ matcher: e }) => e(t)).map(({ reducer: e }) => e)];
|
|
551
544
|
return o.filter((e) => !!e).length === 0 && (o = [i]), o.reduce((e, n) => {
|
|
552
|
-
if (n) if (
|
|
545
|
+
if (n) if (v(e)) {
|
|
553
546
|
let r = n(e, t);
|
|
554
547
|
return r === void 0 ? e : r;
|
|
555
|
-
} else if (
|
|
548
|
+
} else if (y(e)) return Fe(e, (e) => n(e, t));
|
|
556
549
|
else {
|
|
557
550
|
let r = n(e, t);
|
|
558
551
|
if (r === void 0) {
|
|
@@ -566,17 +559,17 @@ function Ue(e, t) {
|
|
|
566
559
|
}
|
|
567
560
|
return o.getInitialState = a, o;
|
|
568
561
|
}
|
|
569
|
-
var
|
|
570
|
-
function
|
|
562
|
+
var Be = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
563
|
+
function Ve(e, t) {
|
|
571
564
|
return `${e}/${t}`;
|
|
572
565
|
}
|
|
573
|
-
function
|
|
574
|
-
let t = e?.asyncThunk?.[
|
|
566
|
+
function He({ creators: e } = {}) {
|
|
567
|
+
let t = e?.asyncThunk?.[Be];
|
|
575
568
|
return function(e) {
|
|
576
569
|
let { name: n, reducerPath: r = n } = e;
|
|
577
|
-
if (!n) throw Error(process.env.NODE_ENV === "production" ?
|
|
570
|
+
if (!n) throw Error(process.env.NODE_ENV === "production" ? J(11) : "`name` is a required option for createSlice");
|
|
578
571
|
typeof process < "u" && process.env.NODE_ENV === "development" && e.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
579
|
-
let i = (typeof e.reducers == "function" ? e.reducers(
|
|
572
|
+
let i = (typeof e.reducers == "function" ? e.reducers(Ge()) : e.reducers) || {}, a = Object.keys(i), o = {
|
|
580
573
|
sliceCaseReducersByName: {},
|
|
581
574
|
sliceCaseReducersByType: {},
|
|
582
575
|
actionCreators: {},
|
|
@@ -584,8 +577,8 @@ function Ke({ creators: e } = {}) {
|
|
|
584
577
|
}, s = {
|
|
585
578
|
addCase(e, t) {
|
|
586
579
|
let n = typeof e == "string" ? e : e.type;
|
|
587
|
-
if (!n) throw Error(process.env.NODE_ENV === "production" ?
|
|
588
|
-
if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ?
|
|
580
|
+
if (!n) throw Error(process.env.NODE_ENV === "production" ? J(12) : "`context.addCase` cannot be called with an empty action type");
|
|
581
|
+
if (n in o.sliceCaseReducersByType) throw Error(process.env.NODE_ENV === "production" ? J(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + n);
|
|
589
582
|
return o.sliceCaseReducersByType[n] = t, s;
|
|
590
583
|
},
|
|
591
584
|
addMatcher(e, t) {
|
|
@@ -604,18 +597,18 @@ function Ke({ creators: e } = {}) {
|
|
|
604
597
|
a.forEach((r) => {
|
|
605
598
|
let a = i[r], o = {
|
|
606
599
|
reducerName: r,
|
|
607
|
-
type:
|
|
600
|
+
type: Ve(n, r),
|
|
608
601
|
createNotation: typeof e.reducers == "function"
|
|
609
602
|
};
|
|
610
|
-
|
|
603
|
+
qe(a) ? Ye(o, a, s, t) : Ke(o, a, s);
|
|
611
604
|
});
|
|
612
605
|
function c() {
|
|
613
|
-
if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ?
|
|
614
|
-
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ?
|
|
606
|
+
if (process.env.NODE_ENV !== "production" && typeof e.extraReducers == "object") throw Error(process.env.NODE_ENV === "production" ? J(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
607
|
+
let [t = {}, n = [], r = void 0] = typeof e.extraReducers == "function" ? Le(e.extraReducers) : [e.extraReducers], i = {
|
|
615
608
|
...t,
|
|
616
609
|
...o.sliceCaseReducersByType
|
|
617
610
|
};
|
|
618
|
-
return
|
|
611
|
+
return ze(e.initialState, (e) => {
|
|
619
612
|
for (let t in i) e.addCase(t, i[t]);
|
|
620
613
|
for (let t of o.sliceMatchers) e.addMatcher(t.matcher, t.reducer);
|
|
621
614
|
for (let t of n) e.addMatcher(t.matcher, t.reducer);
|
|
@@ -633,15 +626,15 @@ function Ke({ creators: e } = {}) {
|
|
|
633
626
|
function r(e) {
|
|
634
627
|
let i = e[t];
|
|
635
628
|
if (i === void 0) {
|
|
636
|
-
if (n) i =
|
|
637
|
-
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ?
|
|
629
|
+
if (n) i = K(d, r, m);
|
|
630
|
+
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? J(15) : "selectSlice returned undefined for an uninjected slice reducer");
|
|
638
631
|
}
|
|
639
632
|
return i;
|
|
640
633
|
}
|
|
641
634
|
function i(t = l) {
|
|
642
|
-
return
|
|
635
|
+
return K(K(u, n, () => /* @__PURE__ */ new WeakMap()), t, () => {
|
|
643
636
|
let r = {};
|
|
644
|
-
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] =
|
|
637
|
+
for (let [i, a] of Object.entries(e.selectors ?? {})) r[i] = Ue(a, t, () => K(d, t, m), n);
|
|
645
638
|
return r;
|
|
646
639
|
});
|
|
647
640
|
}
|
|
@@ -675,19 +668,19 @@ function Ke({ creators: e } = {}) {
|
|
|
675
668
|
return g;
|
|
676
669
|
};
|
|
677
670
|
}
|
|
678
|
-
function
|
|
671
|
+
function Ue(e, t, n, r) {
|
|
679
672
|
function i(i, ...a) {
|
|
680
673
|
let o = t(i);
|
|
681
674
|
if (o === void 0) {
|
|
682
675
|
if (r) o = n();
|
|
683
|
-
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ?
|
|
676
|
+
else if (process.env.NODE_ENV !== "production") throw Error(process.env.NODE_ENV === "production" ? J(16) : "selectState returned undefined for an uninjected slice reducer");
|
|
684
677
|
}
|
|
685
678
|
return e(o, ...a);
|
|
686
679
|
}
|
|
687
680
|
return i.unwrapped = e, i;
|
|
688
681
|
}
|
|
689
|
-
var
|
|
690
|
-
function
|
|
682
|
+
var We = /* @__PURE__ */ He();
|
|
683
|
+
function Ge() {
|
|
691
684
|
function e(e, t) {
|
|
692
685
|
return {
|
|
693
686
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -711,79 +704,79 @@ function Ye() {
|
|
|
711
704
|
asyncThunk: e
|
|
712
705
|
};
|
|
713
706
|
}
|
|
714
|
-
function
|
|
707
|
+
function Ke({ type: e, reducerName: t, createNotation: n }, r, i) {
|
|
715
708
|
let a, o;
|
|
716
709
|
if ("reducer" in r) {
|
|
717
|
-
if (n && !
|
|
710
|
+
if (n && !Je(r)) throw Error(process.env.NODE_ENV === "production" ? J(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
718
711
|
a = r.reducer, o = r.prepare;
|
|
719
712
|
} else a = r;
|
|
720
|
-
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ?
|
|
713
|
+
i.addCase(e, a).exposeCaseReducer(t, a).exposeAction(t, o ? G(e, o) : G(e));
|
|
721
714
|
}
|
|
722
|
-
function
|
|
715
|
+
function qe(e) {
|
|
723
716
|
return e._reducerDefinitionType === "asyncThunk";
|
|
724
717
|
}
|
|
725
|
-
function
|
|
718
|
+
function Je(e) {
|
|
726
719
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
727
720
|
}
|
|
728
|
-
function
|
|
729
|
-
if (!i) throw Error(process.env.NODE_ENV === "production" ?
|
|
721
|
+
function Ye({ type: e, reducerName: t }, n, r, i) {
|
|
722
|
+
if (!i) throw Error(process.env.NODE_ENV === "production" ? J(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
|
|
730
723
|
let { payloadCreator: a, fulfilled: o, pending: s, rejected: c, settled: l, options: u } = n, d = i(e, a, u);
|
|
731
724
|
r.exposeAction(t, d), o && r.addCase(d.fulfilled, o), s && r.addCase(d.pending, s), c && r.addCase(d.rejected, c), l && r.addMatcher(d.settled, l), r.exposeCaseReducer(t, {
|
|
732
|
-
fulfilled: o ||
|
|
733
|
-
pending: s ||
|
|
734
|
-
rejected: c ||
|
|
735
|
-
settled: l ||
|
|
725
|
+
fulfilled: o || q,
|
|
726
|
+
pending: s || q,
|
|
727
|
+
rejected: c || q,
|
|
728
|
+
settled: l || q
|
|
736
729
|
});
|
|
737
730
|
}
|
|
738
|
-
function
|
|
739
|
-
var
|
|
740
|
-
`${
|
|
741
|
-
var { assign:
|
|
742
|
-
`${
|
|
743
|
-
var
|
|
744
|
-
function
|
|
731
|
+
function q() {}
|
|
732
|
+
var Xe = "listener", Ze = "completed", Qe = "cancelled";
|
|
733
|
+
`${Qe}`, `${Ze}`, `${Xe}${Qe}`, `${Xe}${Ze}`;
|
|
734
|
+
var { assign: $e } = Object, et = "listenerMiddleware", tt = /* @__PURE__ */ $e(/* @__PURE__ */ G(`${et}/add`), { withTypes: () => tt });
|
|
735
|
+
`${et}`;
|
|
736
|
+
var nt = /* @__PURE__ */ $e(/* @__PURE__ */ G(`${et}/remove`), { withTypes: () => nt });
|
|
737
|
+
function J(e) {
|
|
745
738
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
746
739
|
}
|
|
747
740
|
//#endregion
|
|
748
741
|
//#region src/auth/authSlice.ts
|
|
749
|
-
var
|
|
750
|
-
let e = localStorage.getItem(
|
|
742
|
+
var rt = () => {
|
|
743
|
+
let e = localStorage.getItem(t.AuthCheckStorageItemName) === "true", n = localStorage.getItem(t.LoggedInUserStorageItemName), r = localStorage.getItem(t.SettingStorageItemName);
|
|
751
744
|
return {
|
|
752
745
|
isAuthenticated: e,
|
|
753
|
-
loggedInUser:
|
|
754
|
-
setting:
|
|
746
|
+
loggedInUser: n ? JSON.parse(n) : void 0,
|
|
747
|
+
setting: r ? JSON.parse(r) : void 0
|
|
755
748
|
};
|
|
756
|
-
},
|
|
749
|
+
}, it = () => We({
|
|
757
750
|
name: "auth",
|
|
758
|
-
initialState:
|
|
751
|
+
initialState: rt(),
|
|
759
752
|
reducers: {
|
|
760
|
-
login: (e,
|
|
761
|
-
e.isAuthenticated = !0, localStorage.setItem(
|
|
753
|
+
login: (e, n) => {
|
|
754
|
+
e.isAuthenticated = !0, localStorage.setItem(t.AuthCheckStorageItemName, "true"), n.payload && (e.loggedInUser = n.payload.user, localStorage.setItem(t.LoggedInUserStorageItemName, JSON.stringify(n.payload.user)), e.setting = n.payload.setting, localStorage.setItem(t.SettingStorageItemName, JSON.stringify(n.payload.setting)));
|
|
762
755
|
},
|
|
763
756
|
logout: (e) => {
|
|
764
|
-
e.isAuthenticated = !1, e.loggedInUser = void 0, e.setting = void 0, localStorage.removeItem(
|
|
757
|
+
e.isAuthenticated = !1, e.loggedInUser = void 0, e.setting = void 0, localStorage.removeItem(t.AuthCheckStorageItemName), localStorage.removeItem(t.LoggedInUserStorageItemName), localStorage.removeItem(t.SettingStorageItemName);
|
|
765
758
|
},
|
|
766
|
-
updateLoggedInUser: (e,
|
|
759
|
+
updateLoggedInUser: (e, n) => {
|
|
767
760
|
e.loggedInUser = {
|
|
768
761
|
...e.loggedInUser,
|
|
769
|
-
...
|
|
770
|
-
}, localStorage.setItem(
|
|
762
|
+
...n.payload
|
|
763
|
+
}, localStorage.setItem(t.LoggedInUserStorageItemName, JSON.stringify(e.loggedInUser));
|
|
771
764
|
},
|
|
772
|
-
updateSetting: (e,
|
|
765
|
+
updateSetting: (e, n) => {
|
|
773
766
|
e.setting = {
|
|
774
767
|
...e.setting,
|
|
775
|
-
...
|
|
776
|
-
}, localStorage.setItem(
|
|
768
|
+
...n.payload
|
|
769
|
+
}, localStorage.setItem(t.SettingStorageItemName, JSON.stringify(e.setting));
|
|
777
770
|
},
|
|
778
771
|
syncFromStorage: (e) => {
|
|
779
|
-
e.isAuthenticated = localStorage.getItem(
|
|
780
|
-
let
|
|
781
|
-
e.loggedInUser =
|
|
782
|
-
let
|
|
783
|
-
e.setting =
|
|
772
|
+
e.isAuthenticated = localStorage.getItem(t.AuthCheckStorageItemName) === "true";
|
|
773
|
+
let n = localStorage.getItem(t.LoggedInUserStorageItemName);
|
|
774
|
+
e.loggedInUser = n ? JSON.parse(n) : void 0;
|
|
775
|
+
let r = localStorage.getItem(t.SettingStorageItemName);
|
|
776
|
+
e.setting = r ? JSON.parse(r) : void 0;
|
|
784
777
|
}
|
|
785
778
|
}
|
|
786
|
-
}),
|
|
779
|
+
}), at = class e {
|
|
787
780
|
static Format(e, t) {
|
|
788
781
|
return `${e}:${t}`;
|
|
789
782
|
}
|
|
@@ -804,32 +797,32 @@ var ct = () => {
|
|
|
804
797
|
let [t] = e[0].split(":");
|
|
805
798
|
return `/${t.toLowerCase()}`;
|
|
806
799
|
}
|
|
807
|
-
},
|
|
800
|
+
}, Y = class {
|
|
808
801
|
id;
|
|
809
|
-
},
|
|
802
|
+
}, ot = class extends Y {
|
|
810
803
|
name;
|
|
811
804
|
countryId;
|
|
812
805
|
country;
|
|
813
806
|
constructor(e) {
|
|
814
807
|
super(), Object.assign(this, e);
|
|
815
808
|
}
|
|
816
|
-
},
|
|
809
|
+
}, st = class {
|
|
817
810
|
static columnsNames = [{
|
|
818
811
|
label: "اسم المدينة",
|
|
819
812
|
value: "Name"
|
|
820
813
|
}];
|
|
821
|
-
},
|
|
814
|
+
}, ct = class extends Y {
|
|
822
815
|
name;
|
|
823
816
|
code;
|
|
824
817
|
constructor(e) {
|
|
825
818
|
super(), Object.assign(this, e);
|
|
826
819
|
}
|
|
827
|
-
},
|
|
820
|
+
}, lt = class {
|
|
828
821
|
static columnsNames = [{
|
|
829
822
|
label: "اسم الدولة",
|
|
830
823
|
value: "Name"
|
|
831
824
|
}];
|
|
832
|
-
},
|
|
825
|
+
}, ut = class extends Y {
|
|
833
826
|
name;
|
|
834
827
|
code;
|
|
835
828
|
isFeminine;
|
|
@@ -840,33 +833,33 @@ var ct = () => {
|
|
|
840
833
|
constructor(e) {
|
|
841
834
|
super(), Object.assign(this, e);
|
|
842
835
|
}
|
|
843
|
-
},
|
|
836
|
+
}, dt = class {
|
|
844
837
|
value;
|
|
845
838
|
columnName;
|
|
846
839
|
constructor(e) {
|
|
847
840
|
Object.assign(this, e);
|
|
848
841
|
}
|
|
849
|
-
},
|
|
842
|
+
}, ft = class {
|
|
850
843
|
companyEmail;
|
|
851
844
|
username;
|
|
852
845
|
password;
|
|
853
846
|
constructor(e) {
|
|
854
847
|
Object.assign(this, e);
|
|
855
848
|
}
|
|
856
|
-
},
|
|
849
|
+
}, pt = class {
|
|
857
850
|
url = null;
|
|
858
851
|
base64File = null;
|
|
859
852
|
extension = null;
|
|
860
853
|
contentType = null;
|
|
861
|
-
status =
|
|
854
|
+
status = mt.Unchanged;
|
|
862
855
|
constructor(e) {
|
|
863
856
|
Object.assign(this, e);
|
|
864
857
|
}
|
|
865
|
-
},
|
|
858
|
+
}, mt = {
|
|
866
859
|
Unchanged: 0,
|
|
867
860
|
New: 1,
|
|
868
861
|
Delete: 2
|
|
869
|
-
},
|
|
862
|
+
}, X = class {
|
|
870
863
|
static _baseUrl = "";
|
|
871
864
|
static get baseUrl() {
|
|
872
865
|
return this._baseUrl || console.warn("YusrCore: baseUrl has not been initialized. Defaults to empty string."), this._baseUrl;
|
|
@@ -874,1180 +867,16 @@ var ct = () => {
|
|
|
874
867
|
static initialize(e) {
|
|
875
868
|
this._baseUrl = e;
|
|
876
869
|
}
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}
|
|
882
|
-
var h = {
|
|
883
|
-
isMounted: function() {
|
|
884
|
-
return !1;
|
|
885
|
-
},
|
|
886
|
-
enqueueForceUpdate: function() {},
|
|
887
|
-
enqueueReplaceState: function() {},
|
|
888
|
-
enqueueSetState: function() {}
|
|
889
|
-
}, g = Object.assign, _ = {};
|
|
890
|
-
function v(e, t, n) {
|
|
891
|
-
this.props = e, this.context = t, this.refs = _, this.updater = n || h;
|
|
892
|
-
}
|
|
893
|
-
v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
|
|
894
|
-
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
895
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
896
|
-
}, v.prototype.forceUpdate = function(e) {
|
|
897
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
898
|
-
};
|
|
899
|
-
function y() {}
|
|
900
|
-
y.prototype = v.prototype;
|
|
901
|
-
function b(e, t, n) {
|
|
902
|
-
this.props = e, this.context = t, this.refs = _, this.updater = n || h;
|
|
903
|
-
}
|
|
904
|
-
var x = b.prototype = new y();
|
|
905
|
-
x.constructor = b, g(x, v.prototype), x.isPureReactComponent = !0;
|
|
906
|
-
var ee = Array.isArray;
|
|
907
|
-
function S() {}
|
|
908
|
-
var C = {
|
|
909
|
-
H: null,
|
|
910
|
-
A: null,
|
|
911
|
-
T: null,
|
|
912
|
-
S: null
|
|
913
|
-
}, w = Object.prototype.hasOwnProperty;
|
|
914
|
-
function T(e, n, r) {
|
|
915
|
-
var i = r.ref;
|
|
916
|
-
return {
|
|
917
|
-
$$typeof: t,
|
|
918
|
-
type: e,
|
|
919
|
-
key: n,
|
|
920
|
-
ref: i === void 0 ? null : i,
|
|
921
|
-
props: r
|
|
922
|
-
};
|
|
923
|
-
}
|
|
924
|
-
function E(e, t) {
|
|
925
|
-
return T(e.type, t, e.props);
|
|
926
|
-
}
|
|
927
|
-
function D(e) {
|
|
928
|
-
return typeof e == "object" && !!e && e.$$typeof === t;
|
|
929
|
-
}
|
|
930
|
-
function te(e) {
|
|
931
|
-
var t = {
|
|
932
|
-
"=": "=0",
|
|
933
|
-
":": "=2"
|
|
934
|
-
};
|
|
935
|
-
return "$" + e.replace(/[=:]/g, function(e) {
|
|
936
|
-
return t[e];
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
var O = /\/+/g;
|
|
940
|
-
function k(e, t) {
|
|
941
|
-
return typeof e == "object" && e && e.key != null ? te("" + e.key) : t.toString(36);
|
|
942
|
-
}
|
|
943
|
-
function A(e) {
|
|
944
|
-
switch (e.status) {
|
|
945
|
-
case "fulfilled": return e.value;
|
|
946
|
-
case "rejected": throw e.reason;
|
|
947
|
-
default: switch (typeof e.status == "string" ? e.then(S, S) : (e.status = "pending", e.then(function(t) {
|
|
948
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
949
|
-
}, function(t) {
|
|
950
|
-
e.status === "pending" && (e.status = "rejected", e.reason = t);
|
|
951
|
-
})), e.status) {
|
|
952
|
-
case "fulfilled": return e.value;
|
|
953
|
-
case "rejected": throw e.reason;
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
throw e;
|
|
957
|
-
}
|
|
958
|
-
function j(e, r, i, a, o) {
|
|
959
|
-
var s = typeof e;
|
|
960
|
-
(s === "undefined" || s === "boolean") && (e = null);
|
|
961
|
-
var c = !1;
|
|
962
|
-
if (e === null) c = !0;
|
|
963
|
-
else switch (s) {
|
|
964
|
-
case "bigint":
|
|
965
|
-
case "string":
|
|
966
|
-
case "number":
|
|
967
|
-
c = !0;
|
|
968
|
-
break;
|
|
969
|
-
case "object": switch (e.$$typeof) {
|
|
970
|
-
case t:
|
|
971
|
-
case n:
|
|
972
|
-
c = !0;
|
|
973
|
-
break;
|
|
974
|
-
case d: return c = e._init, j(c(e._payload), r, i, a, o);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
if (c) return o = o(e), c = a === "" ? "." + k(e, 0) : a, ee(o) ? (i = "", c != null && (i = c.replace(O, "$&/") + "/"), j(o, r, i, "", function(e) {
|
|
978
|
-
return e;
|
|
979
|
-
})) : o != null && (D(o) && (o = E(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(O, "$&/") + "/") + c)), r.push(o)), 1;
|
|
980
|
-
c = 0;
|
|
981
|
-
var l = a === "" ? "." : a + ":";
|
|
982
|
-
if (ee(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + k(a, u), c += j(a, r, i, s, o);
|
|
983
|
-
else if (u = m(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + k(a, u++), c += j(a, r, i, s, o);
|
|
984
|
-
else if (s === "object") {
|
|
985
|
-
if (typeof e.then == "function") return j(A(e), r, i, a, o);
|
|
986
|
-
throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
|
|
987
|
-
}
|
|
988
|
-
return c;
|
|
989
|
-
}
|
|
990
|
-
function M(e, t, n) {
|
|
991
|
-
if (e == null) return e;
|
|
992
|
-
var r = [], i = 0;
|
|
993
|
-
return j(e, r, "", "", function(e) {
|
|
994
|
-
return t.call(n, e, i++);
|
|
995
|
-
}), r;
|
|
996
|
-
}
|
|
997
|
-
function N(e) {
|
|
998
|
-
if (e._status === -1) {
|
|
999
|
-
var t = e._result;
|
|
1000
|
-
t = t(), t.then(function(t) {
|
|
1001
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = t);
|
|
1002
|
-
}, function(t) {
|
|
1003
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = t);
|
|
1004
|
-
}), e._status === -1 && (e._status = 0, e._result = t);
|
|
1005
|
-
}
|
|
1006
|
-
if (e._status === 1) return e._result.default;
|
|
1007
|
-
throw e._result;
|
|
1008
|
-
}
|
|
1009
|
-
var ne = typeof reportError == "function" ? reportError : function(e) {
|
|
1010
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1011
|
-
var t = new window.ErrorEvent("error", {
|
|
1012
|
-
bubbles: !0,
|
|
1013
|
-
cancelable: !0,
|
|
1014
|
-
message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
|
|
1015
|
-
error: e
|
|
1016
|
-
});
|
|
1017
|
-
if (!window.dispatchEvent(t)) return;
|
|
1018
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1019
|
-
process.emit("uncaughtException", e);
|
|
1020
|
-
return;
|
|
1021
|
-
}
|
|
1022
|
-
console.error(e);
|
|
1023
|
-
}, P = {
|
|
1024
|
-
map: M,
|
|
1025
|
-
forEach: function(e, t, n) {
|
|
1026
|
-
M(e, function() {
|
|
1027
|
-
t.apply(this, arguments);
|
|
1028
|
-
}, n);
|
|
1029
|
-
},
|
|
1030
|
-
count: function(e) {
|
|
1031
|
-
var t = 0;
|
|
1032
|
-
return M(e, function() {
|
|
1033
|
-
t++;
|
|
1034
|
-
}), t;
|
|
1035
|
-
},
|
|
1036
|
-
toArray: function(e) {
|
|
1037
|
-
return M(e, function(e) {
|
|
1038
|
-
return e;
|
|
1039
|
-
}) || [];
|
|
1040
|
-
},
|
|
1041
|
-
only: function(e) {
|
|
1042
|
-
if (!D(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
1043
|
-
return e;
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
e.Activity = f, e.Children = P, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C, e.__COMPILER_RUNTIME = {
|
|
1047
|
-
__proto__: null,
|
|
1048
|
-
c: function(e) {
|
|
1049
|
-
return C.H.useMemoCache(e);
|
|
1050
|
-
}
|
|
1051
|
-
}, e.cache = function(e) {
|
|
1052
|
-
return function() {
|
|
1053
|
-
return e.apply(null, arguments);
|
|
1054
|
-
};
|
|
1055
|
-
}, e.cacheSignal = function() {
|
|
1056
|
-
return null;
|
|
1057
|
-
}, e.cloneElement = function(e, t, n) {
|
|
1058
|
-
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
1059
|
-
var r = g({}, e.props), i = e.key;
|
|
1060
|
-
if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !w.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);
|
|
1061
|
-
var a = arguments.length - 2;
|
|
1062
|
-
if (a === 1) r.children = n;
|
|
1063
|
-
else if (1 < a) {
|
|
1064
|
-
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
1065
|
-
r.children = o;
|
|
1066
|
-
}
|
|
1067
|
-
return T(e.type, i, r);
|
|
1068
|
-
}, e.createContext = function(e) {
|
|
1069
|
-
return e = {
|
|
1070
|
-
$$typeof: s,
|
|
1071
|
-
_currentValue: e,
|
|
1072
|
-
_currentValue2: e,
|
|
1073
|
-
_threadCount: 0,
|
|
1074
|
-
Provider: null,
|
|
1075
|
-
Consumer: null
|
|
1076
|
-
}, e.Provider = e, e.Consumer = {
|
|
1077
|
-
$$typeof: o,
|
|
1078
|
-
_context: e
|
|
1079
|
-
}, e;
|
|
1080
|
-
}, e.createElement = function(e, t, n) {
|
|
1081
|
-
var r, i = {}, a = null;
|
|
1082
|
-
if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) w.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);
|
|
1083
|
-
var o = arguments.length - 2;
|
|
1084
|
-
if (o === 1) i.children = n;
|
|
1085
|
-
else if (1 < o) {
|
|
1086
|
-
for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2];
|
|
1087
|
-
i.children = s;
|
|
1088
|
-
}
|
|
1089
|
-
if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);
|
|
1090
|
-
return T(e, a, i);
|
|
1091
|
-
}, e.createRef = function() {
|
|
1092
|
-
return { current: null };
|
|
1093
|
-
}, e.forwardRef = function(e) {
|
|
1094
|
-
return {
|
|
1095
|
-
$$typeof: c,
|
|
1096
|
-
render: e
|
|
1097
|
-
};
|
|
1098
|
-
}, e.isValidElement = D, e.lazy = function(e) {
|
|
1099
|
-
return {
|
|
1100
|
-
$$typeof: d,
|
|
1101
|
-
_payload: {
|
|
1102
|
-
_status: -1,
|
|
1103
|
-
_result: e
|
|
1104
|
-
},
|
|
1105
|
-
_init: N
|
|
1106
|
-
};
|
|
1107
|
-
}, e.memo = function(e, t) {
|
|
1108
|
-
return {
|
|
1109
|
-
$$typeof: u,
|
|
1110
|
-
type: e,
|
|
1111
|
-
compare: t === void 0 ? null : t
|
|
1112
|
-
};
|
|
1113
|
-
}, e.startTransition = function(e) {
|
|
1114
|
-
var t = C.T, n = {};
|
|
1115
|
-
C.T = n;
|
|
1116
|
-
try {
|
|
1117
|
-
var r = e(), i = C.S;
|
|
1118
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(S, ne);
|
|
1119
|
-
} catch (e) {
|
|
1120
|
-
ne(e);
|
|
1121
|
-
} finally {
|
|
1122
|
-
t !== null && n.types !== null && (t.types = n.types), C.T = t;
|
|
1123
|
-
}
|
|
1124
|
-
}, e.unstable_useCacheRefresh = function() {
|
|
1125
|
-
return C.H.useCacheRefresh();
|
|
1126
|
-
}, e.use = function(e) {
|
|
1127
|
-
return C.H.use(e);
|
|
1128
|
-
}, e.useActionState = function(e, t, n) {
|
|
1129
|
-
return C.H.useActionState(e, t, n);
|
|
1130
|
-
}, e.useCallback = function(e, t) {
|
|
1131
|
-
return C.H.useCallback(e, t);
|
|
1132
|
-
}, e.useContext = function(e) {
|
|
1133
|
-
return C.H.useContext(e);
|
|
1134
|
-
}, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {
|
|
1135
|
-
return C.H.useDeferredValue(e, t);
|
|
1136
|
-
}, e.useEffect = function(e, t) {
|
|
1137
|
-
return C.H.useEffect(e, t);
|
|
1138
|
-
}, e.useEffectEvent = function(e) {
|
|
1139
|
-
return C.H.useEffectEvent(e);
|
|
1140
|
-
}, e.useId = function() {
|
|
1141
|
-
return C.H.useId();
|
|
1142
|
-
}, e.useImperativeHandle = function(e, t, n) {
|
|
1143
|
-
return C.H.useImperativeHandle(e, t, n);
|
|
1144
|
-
}, e.useInsertionEffect = function(e, t) {
|
|
1145
|
-
return C.H.useInsertionEffect(e, t);
|
|
1146
|
-
}, e.useLayoutEffect = function(e, t) {
|
|
1147
|
-
return C.H.useLayoutEffect(e, t);
|
|
1148
|
-
}, e.useMemo = function(e, t) {
|
|
1149
|
-
return C.H.useMemo(e, t);
|
|
1150
|
-
}, e.useOptimistic = function(e, t) {
|
|
1151
|
-
return C.H.useOptimistic(e, t);
|
|
1152
|
-
}, e.useReducer = function(e, t, n) {
|
|
1153
|
-
return C.H.useReducer(e, t, n);
|
|
1154
|
-
}, e.useRef = function(e) {
|
|
1155
|
-
return C.H.useRef(e);
|
|
1156
|
-
}, e.useState = function(e) {
|
|
1157
|
-
return C.H.useState(e);
|
|
1158
|
-
}, e.useSyncExternalStore = function(e, t, n) {
|
|
1159
|
-
return C.H.useSyncExternalStore(e, t, n);
|
|
1160
|
-
}, e.useTransition = function() {
|
|
1161
|
-
return C.H.useTransition();
|
|
1162
|
-
}, e.version = "19.2.4";
|
|
1163
|
-
})), Ct = /* @__PURE__ */ o(((e, t) => {
|
|
1164
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
1165
|
-
function n(e, t) {
|
|
1166
|
-
Object.defineProperty(a.prototype, e, { get: function() {
|
|
1167
|
-
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
1168
|
-
} });
|
|
1169
|
-
}
|
|
1170
|
-
function r(e) {
|
|
1171
|
-
return typeof e != "object" || !e ? null : (e = se && e[se] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
1172
|
-
}
|
|
1173
|
-
function i(e, t) {
|
|
1174
|
-
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
1175
|
-
var n = e + "." + t;
|
|
1176
|
-
V[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), V[n] = !0);
|
|
1177
|
-
}
|
|
1178
|
-
function a(e, t, n) {
|
|
1179
|
-
this.props = e, this.context = t, this.refs = W, this.updater = n || H;
|
|
1180
|
-
}
|
|
1181
|
-
function o() {}
|
|
1182
|
-
function s(e, t, n) {
|
|
1183
|
-
this.props = e, this.context = t, this.refs = W, this.updater = n || H;
|
|
1184
|
-
}
|
|
1185
|
-
function c() {}
|
|
1186
|
-
function l(e) {
|
|
1187
|
-
return "" + e;
|
|
1188
|
-
}
|
|
1189
|
-
function u(e) {
|
|
1190
|
-
try {
|
|
1191
|
-
l(e);
|
|
1192
|
-
var t = !1;
|
|
1193
|
-
} catch {
|
|
1194
|
-
t = !0;
|
|
1195
|
-
}
|
|
1196
|
-
if (t) {
|
|
1197
|
-
t = console;
|
|
1198
|
-
var n = t.error, r = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
1199
|
-
return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", r), l(e);
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
function d(e) {
|
|
1203
|
-
if (e == null) return null;
|
|
1204
|
-
if (typeof e == "function") return e.$$typeof === K ? null : e.displayName || e.name || null;
|
|
1205
|
-
if (typeof e == "string") return e;
|
|
1206
|
-
switch (e) {
|
|
1207
|
-
case P: return "Fragment";
|
|
1208
|
-
case I: return "Profiler";
|
|
1209
|
-
case F: return "StrictMode";
|
|
1210
|
-
case ie: return "Suspense";
|
|
1211
|
-
case z: return "SuspenseList";
|
|
1212
|
-
case oe: return "Activity";
|
|
1213
|
-
}
|
|
1214
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
1215
|
-
case ne: return "Portal";
|
|
1216
|
-
case R: return e.displayName || "Context";
|
|
1217
|
-
case L: return (e._context.displayName || "Context") + ".Consumer";
|
|
1218
|
-
case re:
|
|
1219
|
-
var t = e.render;
|
|
1220
|
-
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
1221
|
-
case ae: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
1222
|
-
case B:
|
|
1223
|
-
t = e._payload, e = e._init;
|
|
1224
|
-
try {
|
|
1225
|
-
return d(e(t));
|
|
1226
|
-
} catch {}
|
|
1227
|
-
}
|
|
1228
|
-
return null;
|
|
1229
|
-
}
|
|
1230
|
-
function f(e) {
|
|
1231
|
-
if (e === P) return "<>";
|
|
1232
|
-
if (typeof e == "object" && e && e.$$typeof === B) return "<...>";
|
|
1233
|
-
try {
|
|
1234
|
-
var t = d(e);
|
|
1235
|
-
return t ? "<" + t + ">" : "<...>";
|
|
1236
|
-
} catch {
|
|
1237
|
-
return "<...>";
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
function p() {
|
|
1241
|
-
var e = q.A;
|
|
1242
|
-
return e === null ? null : e.getOwner();
|
|
1243
|
-
}
|
|
1244
|
-
function m() {
|
|
1245
|
-
return Error("react-stack-top-frame");
|
|
1246
|
-
}
|
|
1247
|
-
function h(e) {
|
|
1248
|
-
if (J.call(e, "key")) {
|
|
1249
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
1250
|
-
if (t && t.isReactWarning) return !1;
|
|
1251
|
-
}
|
|
1252
|
-
return e.key !== void 0;
|
|
1253
|
-
}
|
|
1254
|
-
function g(e, t) {
|
|
1255
|
-
function n() {
|
|
1256
|
-
ue || (ue = !0, console.error("%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://react.dev/link/special-props)", t));
|
|
1257
|
-
}
|
|
1258
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
1259
|
-
get: n,
|
|
1260
|
-
configurable: !0
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
function _() {
|
|
1264
|
-
var e = d(this.type);
|
|
1265
|
-
return fe[e] || (fe[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
1266
|
-
}
|
|
1267
|
-
function v(e, t, n, r, i, a) {
|
|
1268
|
-
var o = n.ref;
|
|
1269
|
-
return e = {
|
|
1270
|
-
$$typeof: N,
|
|
1271
|
-
type: e,
|
|
1272
|
-
key: t,
|
|
1273
|
-
props: n,
|
|
1274
|
-
_owner: r
|
|
1275
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
1276
|
-
enumerable: !1,
|
|
1277
|
-
value: null
|
|
1278
|
-
}) : Object.defineProperty(e, "ref", {
|
|
1279
|
-
enumerable: !1,
|
|
1280
|
-
get: _
|
|
1281
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
1282
|
-
configurable: !1,
|
|
1283
|
-
enumerable: !1,
|
|
1284
|
-
writable: !0,
|
|
1285
|
-
value: 0
|
|
1286
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
1287
|
-
configurable: !1,
|
|
1288
|
-
enumerable: !1,
|
|
1289
|
-
writable: !0,
|
|
1290
|
-
value: null
|
|
1291
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
1292
|
-
configurable: !1,
|
|
1293
|
-
enumerable: !1,
|
|
1294
|
-
writable: !0,
|
|
1295
|
-
value: i
|
|
1296
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
1297
|
-
configurable: !1,
|
|
1298
|
-
enumerable: !1,
|
|
1299
|
-
writable: !0,
|
|
1300
|
-
value: a
|
|
1301
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
1302
|
-
}
|
|
1303
|
-
function y(e, t) {
|
|
1304
|
-
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
1305
|
-
}
|
|
1306
|
-
function b(e) {
|
|
1307
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === B && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
1308
|
-
}
|
|
1309
|
-
function x(e) {
|
|
1310
|
-
return typeof e == "object" && !!e && e.$$typeof === N;
|
|
1311
|
-
}
|
|
1312
|
-
function ee(e) {
|
|
1313
|
-
var t = {
|
|
1314
|
-
"=": "=0",
|
|
1315
|
-
":": "=2"
|
|
1316
|
-
};
|
|
1317
|
-
return "$" + e.replace(/[=:]/g, function(e) {
|
|
1318
|
-
return t[e];
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
function S(e, t) {
|
|
1322
|
-
return typeof e == "object" && e && e.key != null ? (u(e.key), ee("" + e.key)) : t.toString(36);
|
|
1323
|
-
}
|
|
1324
|
-
function C(e) {
|
|
1325
|
-
switch (e.status) {
|
|
1326
|
-
case "fulfilled": return e.value;
|
|
1327
|
-
case "rejected": throw e.reason;
|
|
1328
|
-
default: switch (typeof e.status == "string" ? e.then(c, c) : (e.status = "pending", e.then(function(t) {
|
|
1329
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
1330
|
-
}, function(t) {
|
|
1331
|
-
e.status === "pending" && (e.status = "rejected", e.reason = t);
|
|
1332
|
-
})), e.status) {
|
|
1333
|
-
case "fulfilled": return e.value;
|
|
1334
|
-
case "rejected": throw e.reason;
|
|
1335
|
-
}
|
|
1336
|
-
}
|
|
1337
|
-
throw e;
|
|
1338
|
-
}
|
|
1339
|
-
function w(e, t, n, i, a) {
|
|
1340
|
-
var o = typeof e;
|
|
1341
|
-
(o === "undefined" || o === "boolean") && (e = null);
|
|
1342
|
-
var s = !1;
|
|
1343
|
-
if (e === null) s = !0;
|
|
1344
|
-
else switch (o) {
|
|
1345
|
-
case "bigint":
|
|
1346
|
-
case "string":
|
|
1347
|
-
case "number":
|
|
1348
|
-
s = !0;
|
|
1349
|
-
break;
|
|
1350
|
-
case "object": switch (e.$$typeof) {
|
|
1351
|
-
case N:
|
|
1352
|
-
case ne:
|
|
1353
|
-
s = !0;
|
|
1354
|
-
break;
|
|
1355
|
-
case B: return s = e._init, w(s(e._payload), t, n, i, a);
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
if (s) {
|
|
1359
|
-
s = e, a = a(s);
|
|
1360
|
-
var c = i === "" ? "." + S(s, 0) : i;
|
|
1361
|
-
return ce(a) ? (n = "", c != null && (n = c.replace(ge, "$&/") + "/"), w(a, t, n, "", function(e) {
|
|
1362
|
-
return e;
|
|
1363
|
-
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(ge, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
1364
|
-
}
|
|
1365
|
-
if (s = 0, c = i === "" ? "." : i + ":", ce(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + S(i, l), s += w(i, t, n, o, a);
|
|
1366
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (he || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), he = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + S(i, l++), s += w(i, t, n, o, a);
|
|
1367
|
-
else if (o === "object") {
|
|
1368
|
-
if (typeof e.then == "function") return w(C(e), t, n, i, a);
|
|
1369
|
-
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
1370
|
-
}
|
|
1371
|
-
return s;
|
|
1372
|
-
}
|
|
1373
|
-
function T(e, t, n) {
|
|
1374
|
-
if (e == null) return e;
|
|
1375
|
-
var r = [], i = 0;
|
|
1376
|
-
return w(e, r, "", "", function(e) {
|
|
1377
|
-
return t.call(n, e, i++);
|
|
1378
|
-
}), r;
|
|
1379
|
-
}
|
|
1380
|
-
function E(e) {
|
|
1381
|
-
if (e._status === -1) {
|
|
1382
|
-
var t = e._ioInfo;
|
|
1383
|
-
t != null && (t.start = t.end = performance.now()), t = e._result;
|
|
1384
|
-
var n = t();
|
|
1385
|
-
if (n.then(function(t) {
|
|
1386
|
-
if (e._status === 0 || e._status === -1) {
|
|
1387
|
-
e._status = 1, e._result = t;
|
|
1388
|
-
var r = e._ioInfo;
|
|
1389
|
-
r != null && (r.end = performance.now()), n.status === void 0 && (n.status = "fulfilled", n.value = t);
|
|
1390
|
-
}
|
|
1391
|
-
}, function(t) {
|
|
1392
|
-
if (e._status === 0 || e._status === -1) {
|
|
1393
|
-
e._status = 2, e._result = t;
|
|
1394
|
-
var r = e._ioInfo;
|
|
1395
|
-
r != null && (r.end = performance.now()), n.status === void 0 && (n.status = "rejected", n.reason = t);
|
|
1396
|
-
}
|
|
1397
|
-
}), t = e._ioInfo, t != null) {
|
|
1398
|
-
t.value = n;
|
|
1399
|
-
var r = n.displayName;
|
|
1400
|
-
typeof r == "string" && (t.name = r);
|
|
1401
|
-
}
|
|
1402
|
-
e._status === -1 && (e._status = 0, e._result = n);
|
|
1403
|
-
}
|
|
1404
|
-
if (e._status === 1) return t = e._result, t === void 0 && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", t), "default" in t || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", t), t.default;
|
|
1405
|
-
throw e._result;
|
|
1406
|
-
}
|
|
1407
|
-
function D() {
|
|
1408
|
-
var e = q.H;
|
|
1409
|
-
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
1410
|
-
}
|
|
1411
|
-
function te() {
|
|
1412
|
-
q.asyncTransitions--;
|
|
1413
|
-
}
|
|
1414
|
-
function O(e) {
|
|
1415
|
-
if (ye === null) try {
|
|
1416
|
-
var n = ("require" + Math.random()).slice(0, 7);
|
|
1417
|
-
ye = (t && t[n]).call(t, "timers").setImmediate;
|
|
1418
|
-
} catch {
|
|
1419
|
-
ye = function(e) {
|
|
1420
|
-
!1 === ve && (ve = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
1421
|
-
var t = new MessageChannel();
|
|
1422
|
-
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
1423
|
-
};
|
|
1424
|
-
}
|
|
1425
|
-
return ye(e);
|
|
1426
|
-
}
|
|
1427
|
-
function k(e) {
|
|
1428
|
-
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
1429
|
-
}
|
|
1430
|
-
function A(e, t) {
|
|
1431
|
-
t !== Y - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Y = t;
|
|
1432
|
-
}
|
|
1433
|
-
function j(e, t, n) {
|
|
1434
|
-
var r = q.actQueue;
|
|
1435
|
-
if (r !== null) if (r.length !== 0) try {
|
|
1436
|
-
M(r), O(function() {
|
|
1437
|
-
return j(e, t, n);
|
|
1438
|
-
});
|
|
1439
|
-
return;
|
|
1440
|
-
} catch (e) {
|
|
1441
|
-
q.thrownErrors.push(e);
|
|
1442
|
-
}
|
|
1443
|
-
else q.actQueue = null;
|
|
1444
|
-
0 < q.thrownErrors.length ? (r = k(q.thrownErrors), q.thrownErrors.length = 0, n(r)) : t(e);
|
|
1445
|
-
}
|
|
1446
|
-
function M(e) {
|
|
1447
|
-
if (!xe) {
|
|
1448
|
-
xe = !0;
|
|
1449
|
-
var t = 0;
|
|
1450
|
-
try {
|
|
1451
|
-
for (; t < e.length; t++) {
|
|
1452
|
-
var n = e[t];
|
|
1453
|
-
do {
|
|
1454
|
-
q.didUsePromise = !1;
|
|
1455
|
-
var r = n(!1);
|
|
1456
|
-
if (r !== null) {
|
|
1457
|
-
if (q.didUsePromise) {
|
|
1458
|
-
e[t] = n, e.splice(0, t);
|
|
1459
|
-
return;
|
|
1460
|
-
}
|
|
1461
|
-
n = r;
|
|
1462
|
-
} else break;
|
|
1463
|
-
} while (1);
|
|
1464
|
-
}
|
|
1465
|
-
e.length = 0;
|
|
1466
|
-
} catch (n) {
|
|
1467
|
-
e.splice(0, t + 1), q.thrownErrors.push(n);
|
|
1468
|
-
} finally {
|
|
1469
|
-
xe = !1;
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1474
|
-
var N = Symbol.for("react.transitional.element"), ne = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), R = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), se = Symbol.iterator, V = {}, H = {
|
|
1475
|
-
isMounted: function() {
|
|
1476
|
-
return !1;
|
|
1477
|
-
},
|
|
1478
|
-
enqueueForceUpdate: function(e) {
|
|
1479
|
-
i(e, "forceUpdate");
|
|
1480
|
-
},
|
|
1481
|
-
enqueueReplaceState: function(e) {
|
|
1482
|
-
i(e, "replaceState");
|
|
1483
|
-
},
|
|
1484
|
-
enqueueSetState: function(e) {
|
|
1485
|
-
i(e, "setState");
|
|
1486
|
-
}
|
|
1487
|
-
}, U = Object.assign, W = {};
|
|
1488
|
-
Object.freeze(W), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
1489
|
-
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1490
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
1491
|
-
}, a.prototype.forceUpdate = function(e) {
|
|
1492
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1493
|
-
};
|
|
1494
|
-
var G = {
|
|
1495
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1496
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1497
|
-
};
|
|
1498
|
-
for (X in G) G.hasOwnProperty(X) && n(X, G[X]);
|
|
1499
|
-
o.prototype = a.prototype, G = s.prototype = new o(), G.constructor = s, U(G, a.prototype), G.isPureReactComponent = !0;
|
|
1500
|
-
var ce = Array.isArray, K = Symbol.for("react.client.reference"), q = {
|
|
1501
|
-
H: null,
|
|
1502
|
-
A: null,
|
|
1503
|
-
T: null,
|
|
1504
|
-
S: null,
|
|
1505
|
-
actQueue: null,
|
|
1506
|
-
asyncTransitions: 0,
|
|
1507
|
-
isBatchingLegacy: !1,
|
|
1508
|
-
didScheduleLegacyUpdate: !1,
|
|
1509
|
-
didUsePromise: !1,
|
|
1510
|
-
thrownErrors: [],
|
|
1511
|
-
getCurrentStack: null,
|
|
1512
|
-
recentlyCreatedOwnerStacks: 0
|
|
1513
|
-
}, J = Object.prototype.hasOwnProperty, le = console.createTask ? console.createTask : function() {
|
|
1514
|
-
return null;
|
|
1515
|
-
};
|
|
1516
|
-
G = { react_stack_bottom_frame: function(e) {
|
|
1517
|
-
return e();
|
|
1518
|
-
} };
|
|
1519
|
-
var ue, de, fe = {}, pe = G.react_stack_bottom_frame.bind(G, m)(), me = le(f(m)), he = !1, ge = /\/+/g, _e = typeof reportError == "function" ? reportError : function(e) {
|
|
1520
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1521
|
-
var t = new window.ErrorEvent("error", {
|
|
1522
|
-
bubbles: !0,
|
|
1523
|
-
cancelable: !0,
|
|
1524
|
-
message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
|
|
1525
|
-
error: e
|
|
1526
|
-
});
|
|
1527
|
-
if (!window.dispatchEvent(t)) return;
|
|
1528
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1529
|
-
process.emit("uncaughtException", e);
|
|
1530
|
-
return;
|
|
1531
|
-
}
|
|
1532
|
-
console.error(e);
|
|
1533
|
-
}, ve = !1, ye = null, Y = 0, be = !1, xe = !1, Se = typeof queueMicrotask == "function" ? function(e) {
|
|
1534
|
-
queueMicrotask(function() {
|
|
1535
|
-
return queueMicrotask(e);
|
|
1536
|
-
});
|
|
1537
|
-
} : O;
|
|
1538
|
-
G = Object.freeze({
|
|
1539
|
-
__proto__: null,
|
|
1540
|
-
c: function(e) {
|
|
1541
|
-
return D().useMemoCache(e);
|
|
1542
|
-
}
|
|
1543
|
-
});
|
|
1544
|
-
var X = {
|
|
1545
|
-
map: T,
|
|
1546
|
-
forEach: function(e, t, n) {
|
|
1547
|
-
T(e, function() {
|
|
1548
|
-
t.apply(this, arguments);
|
|
1549
|
-
}, n);
|
|
1550
|
-
},
|
|
1551
|
-
count: function(e) {
|
|
1552
|
-
var t = 0;
|
|
1553
|
-
return T(e, function() {
|
|
1554
|
-
t++;
|
|
1555
|
-
}), t;
|
|
1556
|
-
},
|
|
1557
|
-
toArray: function(e) {
|
|
1558
|
-
return T(e, function(e) {
|
|
1559
|
-
return e;
|
|
1560
|
-
}) || [];
|
|
1561
|
-
},
|
|
1562
|
-
only: function(e) {
|
|
1563
|
-
if (!x(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
1564
|
-
return e;
|
|
1565
|
-
}
|
|
1566
|
-
};
|
|
1567
|
-
e.Activity = oe, e.Children = X, e.Component = a, e.Fragment = P, e.Profiler = I, e.PureComponent = s, e.StrictMode = F, e.Suspense = ie, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = q, e.__COMPILER_RUNTIME = G, e.act = function(e) {
|
|
1568
|
-
var t = q.actQueue, n = Y;
|
|
1569
|
-
Y++;
|
|
1570
|
-
var r = q.actQueue = t === null ? [] : t, i = !1;
|
|
1571
|
-
try {
|
|
1572
|
-
var a = e();
|
|
1573
|
-
} catch (e) {
|
|
1574
|
-
q.thrownErrors.push(e);
|
|
1575
|
-
}
|
|
1576
|
-
if (0 < q.thrownErrors.length) throw A(t, n), e = k(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
1577
|
-
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
1578
|
-
var o = a;
|
|
1579
|
-
return Se(function() {
|
|
1580
|
-
i || be || (be = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1581
|
-
}), { then: function(e, a) {
|
|
1582
|
-
i = !0, o.then(function(i) {
|
|
1583
|
-
if (A(t, n), n === 0) {
|
|
1584
|
-
try {
|
|
1585
|
-
M(r), O(function() {
|
|
1586
|
-
return j(i, e, a);
|
|
1587
|
-
});
|
|
1588
|
-
} catch (e) {
|
|
1589
|
-
q.thrownErrors.push(e);
|
|
1590
|
-
}
|
|
1591
|
-
if (0 < q.thrownErrors.length) {
|
|
1592
|
-
var o = k(q.thrownErrors);
|
|
1593
|
-
q.thrownErrors.length = 0, a(o);
|
|
1594
|
-
}
|
|
1595
|
-
} else e(i);
|
|
1596
|
-
}, function(e) {
|
|
1597
|
-
A(t, n), 0 < q.thrownErrors.length ? (e = k(q.thrownErrors), q.thrownErrors.length = 0, a(e)) : a(e);
|
|
1598
|
-
});
|
|
1599
|
-
} };
|
|
1600
|
-
}
|
|
1601
|
-
var s = a;
|
|
1602
|
-
if (A(t, n), n === 0 && (M(r), r.length !== 0 && Se(function() {
|
|
1603
|
-
i || be || (be = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
1604
|
-
}), q.actQueue = null), 0 < q.thrownErrors.length) throw e = k(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
1605
|
-
return { then: function(e, t) {
|
|
1606
|
-
i = !0, n === 0 ? (q.actQueue = r, O(function() {
|
|
1607
|
-
return j(s, e, t);
|
|
1608
|
-
})) : e(s);
|
|
1609
|
-
} };
|
|
1610
|
-
}, e.cache = function(e) {
|
|
1611
|
-
return function() {
|
|
1612
|
-
return e.apply(null, arguments);
|
|
1613
|
-
};
|
|
1614
|
-
}, e.cacheSignal = function() {
|
|
1615
|
-
return null;
|
|
1616
|
-
}, e.captureOwnerStack = function() {
|
|
1617
|
-
var e = q.getCurrentStack;
|
|
1618
|
-
return e === null ? null : e();
|
|
1619
|
-
}, e.cloneElement = function(e, t, n) {
|
|
1620
|
-
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
1621
|
-
var r = U({}, e.props), i = e.key, a = e._owner;
|
|
1622
|
-
if (t != null) {
|
|
1623
|
-
var o;
|
|
1624
|
-
a: {
|
|
1625
|
-
if (J.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
1626
|
-
o = !1;
|
|
1627
|
-
break a;
|
|
1628
|
-
}
|
|
1629
|
-
o = t.ref !== void 0;
|
|
1630
|
-
}
|
|
1631
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !J.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
1632
|
-
}
|
|
1633
|
-
var s = arguments.length - 2;
|
|
1634
|
-
if (s === 1) r.children = n;
|
|
1635
|
-
else if (1 < s) {
|
|
1636
|
-
o = Array(s);
|
|
1637
|
-
for (var c = 0; c < s; c++) o[c] = arguments[c + 2];
|
|
1638
|
-
r.children = o;
|
|
1639
|
-
}
|
|
1640
|
-
for (r = v(e.type, i, r, a, e._debugStack, e._debugTask), i = 2; i < arguments.length; i++) b(arguments[i]);
|
|
1641
|
-
return r;
|
|
1642
|
-
}, e.createContext = function(e) {
|
|
1643
|
-
return e = {
|
|
1644
|
-
$$typeof: R,
|
|
1645
|
-
_currentValue: e,
|
|
1646
|
-
_currentValue2: e,
|
|
1647
|
-
_threadCount: 0,
|
|
1648
|
-
Provider: null,
|
|
1649
|
-
Consumer: null
|
|
1650
|
-
}, e.Provider = e, e.Consumer = {
|
|
1651
|
-
$$typeof: L,
|
|
1652
|
-
_context: e
|
|
1653
|
-
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1654
|
-
}, e.createElement = function(e, t, n) {
|
|
1655
|
-
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
1656
|
-
r = {};
|
|
1657
|
-
var i = null;
|
|
1658
|
-
if (t != null) for (c in de || !("__self" in t) || "key" in t || (de = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) J.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
1659
|
-
var a = arguments.length - 2;
|
|
1660
|
-
if (a === 1) r.children = n;
|
|
1661
|
-
else if (1 < a) {
|
|
1662
|
-
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
1663
|
-
Object.freeze && Object.freeze(o), r.children = o;
|
|
1664
|
-
}
|
|
1665
|
-
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
1666
|
-
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
1667
|
-
var c = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
1668
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : pe, c ? le(f(e)) : me);
|
|
1669
|
-
}, e.createRef = function() {
|
|
1670
|
-
var e = { current: null };
|
|
1671
|
-
return Object.seal(e), e;
|
|
1672
|
-
}, e.forwardRef = function(e) {
|
|
1673
|
-
e != null && e.$$typeof === ae ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
1674
|
-
var t = {
|
|
1675
|
-
$$typeof: re,
|
|
1676
|
-
render: e
|
|
1677
|
-
}, n;
|
|
1678
|
-
return Object.defineProperty(t, "displayName", {
|
|
1679
|
-
enumerable: !1,
|
|
1680
|
-
configurable: !0,
|
|
1681
|
-
get: function() {
|
|
1682
|
-
return n;
|
|
1683
|
-
},
|
|
1684
|
-
set: function(t) {
|
|
1685
|
-
n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
1686
|
-
}
|
|
1687
|
-
}), t;
|
|
1688
|
-
}, e.isValidElement = x, e.lazy = function(e) {
|
|
1689
|
-
e = {
|
|
1690
|
-
_status: -1,
|
|
1691
|
-
_result: e
|
|
1692
|
-
};
|
|
1693
|
-
var t = {
|
|
1694
|
-
$$typeof: B,
|
|
1695
|
-
_payload: e,
|
|
1696
|
-
_init: E
|
|
1697
|
-
}, n = {
|
|
1698
|
-
name: "lazy",
|
|
1699
|
-
start: -1,
|
|
1700
|
-
end: -1,
|
|
1701
|
-
value: null,
|
|
1702
|
-
owner: null,
|
|
1703
|
-
debugStack: Error("react-stack-top-frame"),
|
|
1704
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1705
|
-
};
|
|
1706
|
-
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
1707
|
-
}, e.memo = function(e, t) {
|
|
1708
|
-
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
1709
|
-
$$typeof: ae,
|
|
1710
|
-
type: e,
|
|
1711
|
-
compare: t === void 0 ? null : t
|
|
1712
|
-
};
|
|
1713
|
-
var n;
|
|
1714
|
-
return Object.defineProperty(t, "displayName", {
|
|
1715
|
-
enumerable: !1,
|
|
1716
|
-
configurable: !0,
|
|
1717
|
-
get: function() {
|
|
1718
|
-
return n;
|
|
1719
|
-
},
|
|
1720
|
-
set: function(t) {
|
|
1721
|
-
n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
1722
|
-
}
|
|
1723
|
-
}), t;
|
|
1724
|
-
}, e.startTransition = function(e) {
|
|
1725
|
-
var t = q.T, n = {};
|
|
1726
|
-
n._updatedFibers = /* @__PURE__ */ new Set(), q.T = n;
|
|
1727
|
-
try {
|
|
1728
|
-
var r = e(), i = q.S;
|
|
1729
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (q.asyncTransitions++, r.then(te, te), r.then(c, _e));
|
|
1730
|
-
} catch (e) {
|
|
1731
|
-
_e(e);
|
|
1732
|
-
} finally {
|
|
1733
|
-
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), q.T = t;
|
|
1734
|
-
}
|
|
1735
|
-
}, e.unstable_useCacheRefresh = function() {
|
|
1736
|
-
return D().useCacheRefresh();
|
|
1737
|
-
}, e.use = function(e) {
|
|
1738
|
-
return D().use(e);
|
|
1739
|
-
}, e.useActionState = function(e, t, n) {
|
|
1740
|
-
return D().useActionState(e, t, n);
|
|
1741
|
-
}, e.useCallback = function(e, t) {
|
|
1742
|
-
return D().useCallback(e, t);
|
|
1743
|
-
}, e.useContext = function(e) {
|
|
1744
|
-
var t = D();
|
|
1745
|
-
return e.$$typeof === L && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
1746
|
-
}, e.useDebugValue = function(e, t) {
|
|
1747
|
-
return D().useDebugValue(e, t);
|
|
1748
|
-
}, e.useDeferredValue = function(e, t) {
|
|
1749
|
-
return D().useDeferredValue(e, t);
|
|
1750
|
-
}, e.useEffect = function(e, t) {
|
|
1751
|
-
return e ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"), D().useEffect(e, t);
|
|
1752
|
-
}, e.useEffectEvent = function(e) {
|
|
1753
|
-
return D().useEffectEvent(e);
|
|
1754
|
-
}, e.useId = function() {
|
|
1755
|
-
return D().useId();
|
|
1756
|
-
}, e.useImperativeHandle = function(e, t, n) {
|
|
1757
|
-
return D().useImperativeHandle(e, t, n);
|
|
1758
|
-
}, e.useInsertionEffect = function(e, t) {
|
|
1759
|
-
return e ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"), D().useInsertionEffect(e, t);
|
|
1760
|
-
}, e.useLayoutEffect = function(e, t) {
|
|
1761
|
-
return e ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"), D().useLayoutEffect(e, t);
|
|
1762
|
-
}, e.useMemo = function(e, t) {
|
|
1763
|
-
return D().useMemo(e, t);
|
|
1764
|
-
}, e.useOptimistic = function(e, t) {
|
|
1765
|
-
return D().useOptimistic(e, t);
|
|
1766
|
-
}, e.useReducer = function(e, t, n) {
|
|
1767
|
-
return D().useReducer(e, t, n);
|
|
1768
|
-
}, e.useRef = function(e) {
|
|
1769
|
-
return D().useRef(e);
|
|
1770
|
-
}, e.useState = function(e) {
|
|
1771
|
-
return D().useState(e);
|
|
1772
|
-
}, e.useSyncExternalStore = function(e, t, n) {
|
|
1773
|
-
return D().useSyncExternalStore(e, t, n);
|
|
1774
|
-
}, e.useTransition = function() {
|
|
1775
|
-
return D().useTransition();
|
|
1776
|
-
}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1777
|
-
})();
|
|
1778
|
-
})), wt = /* @__PURE__ */ o(((e, t) => {
|
|
1779
|
-
process.env.NODE_ENV === "production" ? t.exports = St() : t.exports = Ct();
|
|
1780
|
-
})), Tt = /* @__PURE__ */ o(((e) => {
|
|
1781
|
-
var t = wt();
|
|
1782
|
-
function n(e) {
|
|
1783
|
-
var t = "https://react.dev/errors/" + e;
|
|
1784
|
-
if (1 < arguments.length) {
|
|
1785
|
-
t += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
1786
|
-
for (var n = 2; n < arguments.length; n++) t += "&args[]=" + encodeURIComponent(arguments[n]);
|
|
1787
|
-
}
|
|
1788
|
-
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
1789
|
-
}
|
|
1790
|
-
function r() {}
|
|
1791
|
-
var i = {
|
|
1792
|
-
d: {
|
|
1793
|
-
f: r,
|
|
1794
|
-
r: function() {
|
|
1795
|
-
throw Error(n(522));
|
|
1796
|
-
},
|
|
1797
|
-
D: r,
|
|
1798
|
-
C: r,
|
|
1799
|
-
L: r,
|
|
1800
|
-
m: r,
|
|
1801
|
-
X: r,
|
|
1802
|
-
S: r,
|
|
1803
|
-
M: r
|
|
1804
|
-
},
|
|
1805
|
-
p: 0,
|
|
1806
|
-
findDOMNode: null
|
|
1807
|
-
}, a = Symbol.for("react.portal");
|
|
1808
|
-
function o(e, t, n) {
|
|
1809
|
-
var r = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
1810
|
-
return {
|
|
1811
|
-
$$typeof: a,
|
|
1812
|
-
key: r == null ? null : "" + r,
|
|
1813
|
-
children: e,
|
|
1814
|
-
containerInfo: t,
|
|
1815
|
-
implementation: n
|
|
1816
|
-
};
|
|
1817
|
-
}
|
|
1818
|
-
var s = t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1819
|
-
function c(e, t) {
|
|
1820
|
-
if (e === "font") return "";
|
|
1821
|
-
if (typeof t == "string") return t === "use-credentials" ? t : "";
|
|
1822
|
-
}
|
|
1823
|
-
e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, e.createPortal = function(e, t) {
|
|
1824
|
-
var r = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
1825
|
-
if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error(n(299));
|
|
1826
|
-
return o(e, t, null, r);
|
|
1827
|
-
}, e.flushSync = function(e) {
|
|
1828
|
-
var t = s.T, n = i.p;
|
|
1829
|
-
try {
|
|
1830
|
-
if (s.T = null, i.p = 2, e) return e();
|
|
1831
|
-
} finally {
|
|
1832
|
-
s.T = t, i.p = n, i.d.f();
|
|
1833
|
-
}
|
|
1834
|
-
}, e.preconnect = function(e, t) {
|
|
1835
|
-
typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, i.d.C(e, t));
|
|
1836
|
-
}, e.prefetchDNS = function(e) {
|
|
1837
|
-
typeof e == "string" && i.d.D(e);
|
|
1838
|
-
}, e.preinit = function(e, t) {
|
|
1839
|
-
if (typeof e == "string" && t && typeof t.as == "string") {
|
|
1840
|
-
var n = t.as, r = c(n, t.crossOrigin), a = typeof t.integrity == "string" ? t.integrity : void 0, o = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
|
|
1841
|
-
n === "style" ? i.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {
|
|
1842
|
-
crossOrigin: r,
|
|
1843
|
-
integrity: a,
|
|
1844
|
-
fetchPriority: o
|
|
1845
|
-
}) : n === "script" && i.d.X(e, {
|
|
1846
|
-
crossOrigin: r,
|
|
1847
|
-
integrity: a,
|
|
1848
|
-
fetchPriority: o,
|
|
1849
|
-
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
}, e.preinitModule = function(e, t) {
|
|
1853
|
-
if (typeof e == "string") if (typeof t == "object" && t) {
|
|
1854
|
-
if (t.as == null || t.as === "script") {
|
|
1855
|
-
var n = c(t.as, t.crossOrigin);
|
|
1856
|
-
i.d.M(e, {
|
|
1857
|
-
crossOrigin: n,
|
|
1858
|
-
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
1859
|
-
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
1860
|
-
});
|
|
1861
|
-
}
|
|
1862
|
-
} else t ?? i.d.M(e);
|
|
1863
|
-
}, e.preload = function(e, t) {
|
|
1864
|
-
if (typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {
|
|
1865
|
-
var n = t.as, r = c(n, t.crossOrigin);
|
|
1866
|
-
i.d.L(e, n, {
|
|
1867
|
-
crossOrigin: r,
|
|
1868
|
-
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
1869
|
-
nonce: typeof t.nonce == "string" ? t.nonce : void 0,
|
|
1870
|
-
type: typeof t.type == "string" ? t.type : void 0,
|
|
1871
|
-
fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,
|
|
1872
|
-
referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,
|
|
1873
|
-
imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,
|
|
1874
|
-
imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,
|
|
1875
|
-
media: typeof t.media == "string" ? t.media : void 0
|
|
1876
|
-
});
|
|
1877
|
-
}
|
|
1878
|
-
}, e.preloadModule = function(e, t) {
|
|
1879
|
-
if (typeof e == "string") if (t) {
|
|
1880
|
-
var n = c(t.as, t.crossOrigin);
|
|
1881
|
-
i.d.m(e, {
|
|
1882
|
-
as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
|
|
1883
|
-
crossOrigin: n,
|
|
1884
|
-
integrity: typeof t.integrity == "string" ? t.integrity : void 0
|
|
1885
|
-
});
|
|
1886
|
-
} else i.d.m(e);
|
|
1887
|
-
}, e.requestFormReset = function(e) {
|
|
1888
|
-
i.d.r(e);
|
|
1889
|
-
}, e.unstable_batchedUpdates = function(e, t) {
|
|
1890
|
-
return e(t);
|
|
1891
|
-
}, e.useFormState = function(e, t, n) {
|
|
1892
|
-
return s.H.useFormState(e, t, n);
|
|
1893
|
-
}, e.useFormStatus = function() {
|
|
1894
|
-
return s.H.useHostTransitionStatus();
|
|
1895
|
-
}, e.version = "19.2.4";
|
|
1896
|
-
})), Et = /* @__PURE__ */ o(((e) => {
|
|
1897
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
1898
|
-
function t() {}
|
|
1899
|
-
function n(e) {
|
|
1900
|
-
return "" + e;
|
|
1901
|
-
}
|
|
1902
|
-
function r(e, t, r) {
|
|
1903
|
-
var i = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
1904
|
-
try {
|
|
1905
|
-
n(i);
|
|
1906
|
-
var a = !1;
|
|
1907
|
-
} catch {
|
|
1908
|
-
a = !0;
|
|
1909
|
-
}
|
|
1910
|
-
return a && (console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object"), n(i)), {
|
|
1911
|
-
$$typeof: u,
|
|
1912
|
-
key: i == null ? null : "" + i,
|
|
1913
|
-
children: e,
|
|
1914
|
-
containerInfo: t,
|
|
1915
|
-
implementation: r
|
|
1916
|
-
};
|
|
1917
|
-
}
|
|
1918
|
-
function i(e, t) {
|
|
1919
|
-
if (e === "font") return "";
|
|
1920
|
-
if (typeof t == "string") return t === "use-credentials" ? t : "";
|
|
1921
|
-
}
|
|
1922
|
-
function a(e) {
|
|
1923
|
-
return e === null ? "`null`" : e === void 0 ? "`undefined`" : e === "" ? "an empty string" : "something with type \"" + typeof e + "\"";
|
|
1924
|
-
}
|
|
1925
|
-
function o(e) {
|
|
1926
|
-
return e === null ? "`null`" : e === void 0 ? "`undefined`" : e === "" ? "an empty string" : typeof e == "string" ? JSON.stringify(e) : typeof e == "number" ? "`" + e + "`" : "something with type \"" + typeof e + "\"";
|
|
1927
|
-
}
|
|
1928
|
-
function s() {
|
|
1929
|
-
var e = d.H;
|
|
1930
|
-
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
1931
|
-
}
|
|
1932
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1933
|
-
var c = wt(), l = {
|
|
1934
|
-
d: {
|
|
1935
|
-
f: t,
|
|
1936
|
-
r: function() {
|
|
1937
|
-
throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.");
|
|
1938
|
-
},
|
|
1939
|
-
D: t,
|
|
1940
|
-
C: t,
|
|
1941
|
-
L: t,
|
|
1942
|
-
m: t,
|
|
1943
|
-
X: t,
|
|
1944
|
-
S: t,
|
|
1945
|
-
M: t
|
|
1946
|
-
},
|
|
1947
|
-
p: 0,
|
|
1948
|
-
findDOMNode: null
|
|
1949
|
-
}, u = Symbol.for("react.portal"), d = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
1950
|
-
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"), e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = l, e.createPortal = function(e, t) {
|
|
1951
|
-
var n = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
1952
|
-
if (!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11) throw Error("Target container is not a DOM element.");
|
|
1953
|
-
return r(e, t, null, n);
|
|
1954
|
-
}, e.flushSync = function(e) {
|
|
1955
|
-
var t = d.T, n = l.p;
|
|
1956
|
-
try {
|
|
1957
|
-
if (d.T = null, l.p = 2, e) return e();
|
|
1958
|
-
} finally {
|
|
1959
|
-
d.T = t, l.p = n, l.d.f() && console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.");
|
|
1960
|
-
}
|
|
1961
|
-
}, e.preconnect = function(e, t) {
|
|
1962
|
-
typeof e == "string" && e ? t != null && typeof t != "object" ? console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", o(t)) : t != null && typeof t.crossOrigin != "string" && console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", a(t.crossOrigin)) : console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", a(e)), typeof e == "string" && (t ? (t = t.crossOrigin, t = typeof t == "string" ? t === "use-credentials" ? t : "" : void 0) : t = null, l.d.C(e, t));
|
|
1963
|
-
}, e.prefetchDNS = function(e) {
|
|
1964
|
-
if (typeof e != "string" || !e) console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", a(e));
|
|
1965
|
-
else if (1 < arguments.length) {
|
|
1966
|
-
var t = arguments[1];
|
|
1967
|
-
typeof t == "object" && t.hasOwnProperty("crossOrigin") ? console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", o(t)) : console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", o(t));
|
|
1968
|
-
}
|
|
1969
|
-
typeof e == "string" && l.d.D(e);
|
|
1970
|
-
}, e.preinit = function(e, t) {
|
|
1971
|
-
if (typeof e == "string" && e ? typeof t != "object" || !t ? console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", o(t)) : t.as !== "style" && t.as !== "script" && console.error("ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".", o(t.as)) : console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", a(e)), typeof e == "string" && t && typeof t.as == "string") {
|
|
1972
|
-
var n = t.as, r = i(n, t.crossOrigin), s = typeof t.integrity == "string" ? t.integrity : void 0, c = typeof t.fetchPriority == "string" ? t.fetchPriority : void 0;
|
|
1973
|
-
n === "style" ? l.d.S(e, typeof t.precedence == "string" ? t.precedence : void 0, {
|
|
1974
|
-
crossOrigin: r,
|
|
1975
|
-
integrity: s,
|
|
1976
|
-
fetchPriority: c
|
|
1977
|
-
}) : n === "script" && l.d.X(e, {
|
|
1978
|
-
crossOrigin: r,
|
|
1979
|
-
integrity: s,
|
|
1980
|
-
fetchPriority: c,
|
|
1981
|
-
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
1982
|
-
});
|
|
1983
|
-
}
|
|
1984
|
-
}, e.preinitModule = function(e, t) {
|
|
1985
|
-
var n = "";
|
|
1986
|
-
if (typeof e == "string" && e || (n += " The `href` argument encountered was " + a(e) + "."), t !== void 0 && typeof t != "object" ? n += " The `options` argument encountered was " + a(t) + "." : t && "as" in t && t.as !== "script" && (n += " The `as` option encountered was " + o(t.as) + "."), n) console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", n);
|
|
1987
|
-
else switch (n = t && typeof t.as == "string" ? t.as : "script", n) {
|
|
1988
|
-
case "script": break;
|
|
1989
|
-
default: n = o(n), console.error("ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)", n, e);
|
|
1990
|
-
}
|
|
1991
|
-
typeof e == "string" && (typeof t == "object" && t ? (t.as == null || t.as === "script") && (n = i(t.as, t.crossOrigin), l.d.M(e, {
|
|
1992
|
-
crossOrigin: n,
|
|
1993
|
-
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
1994
|
-
nonce: typeof t.nonce == "string" ? t.nonce : void 0
|
|
1995
|
-
})) : t ?? l.d.M(e));
|
|
1996
|
-
}, e.preload = function(e, t) {
|
|
1997
|
-
var n = "";
|
|
1998
|
-
if (typeof e == "string" && e || (n += " The `href` argument encountered was " + a(e) + "."), typeof t != "object" || !t ? n += " The `options` argument encountered was " + a(t) + "." : typeof t.as == "string" && t.as || (n += " The `as` option encountered was " + a(t.as) + "."), n && console.error("ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s", n), typeof e == "string" && typeof t == "object" && t && typeof t.as == "string") {
|
|
1999
|
-
n = t.as;
|
|
2000
|
-
var r = i(n, t.crossOrigin);
|
|
2001
|
-
l.d.L(e, n, {
|
|
2002
|
-
crossOrigin: r,
|
|
2003
|
-
integrity: typeof t.integrity == "string" ? t.integrity : void 0,
|
|
2004
|
-
nonce: typeof t.nonce == "string" ? t.nonce : void 0,
|
|
2005
|
-
type: typeof t.type == "string" ? t.type : void 0,
|
|
2006
|
-
fetchPriority: typeof t.fetchPriority == "string" ? t.fetchPriority : void 0,
|
|
2007
|
-
referrerPolicy: typeof t.referrerPolicy == "string" ? t.referrerPolicy : void 0,
|
|
2008
|
-
imageSrcSet: typeof t.imageSrcSet == "string" ? t.imageSrcSet : void 0,
|
|
2009
|
-
imageSizes: typeof t.imageSizes == "string" ? t.imageSizes : void 0,
|
|
2010
|
-
media: typeof t.media == "string" ? t.media : void 0
|
|
2011
|
-
});
|
|
2012
|
-
}
|
|
2013
|
-
}, e.preloadModule = function(e, t) {
|
|
2014
|
-
var n = "";
|
|
2015
|
-
typeof e == "string" && e || (n += " The `href` argument encountered was " + a(e) + "."), t !== void 0 && typeof t != "object" ? n += " The `options` argument encountered was " + a(t) + "." : t && "as" in t && typeof t.as != "string" && (n += " The `as` option encountered was " + a(t.as) + "."), n && console.error("ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s", n), typeof e == "string" && (t ? (n = i(t.as, t.crossOrigin), l.d.m(e, {
|
|
2016
|
-
as: typeof t.as == "string" && t.as !== "script" ? t.as : void 0,
|
|
2017
|
-
crossOrigin: n,
|
|
2018
|
-
integrity: typeof t.integrity == "string" ? t.integrity : void 0
|
|
2019
|
-
})) : l.d.m(e));
|
|
2020
|
-
}, e.requestFormReset = function(e) {
|
|
2021
|
-
l.d.r(e);
|
|
2022
|
-
}, e.unstable_batchedUpdates = function(e, t) {
|
|
2023
|
-
return e(t);
|
|
2024
|
-
}, e.useFormState = function(e, t, n) {
|
|
2025
|
-
return s().useFormState(e, t, n);
|
|
2026
|
-
}, e.useFormStatus = function() {
|
|
2027
|
-
return s().useHostTransitionStatus();
|
|
2028
|
-
}, e.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2029
|
-
})();
|
|
2030
|
-
})), Dt = /* @__PURE__ */ o(((e, t) => {
|
|
2031
|
-
function n() {
|
|
2032
|
-
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
2033
|
-
if (process.env.NODE_ENV !== "production") throw Error("^_^");
|
|
2034
|
-
try {
|
|
2035
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n);
|
|
2036
|
-
} catch (e) {
|
|
2037
|
-
console.error(e);
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
process.env.NODE_ENV === "production" ? (n(), t.exports = Tt()) : t.exports = Et();
|
|
2042
|
-
})), Ot = /* @__PURE__ */ c(wt(), 1);
|
|
2043
|
-
Dt();
|
|
2044
|
-
function kt(e) {
|
|
870
|
+
};
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region ../../node_modules/sonner/dist/index.mjs
|
|
873
|
+
function ht(e) {
|
|
2045
874
|
if (!e || typeof document > "u") return;
|
|
2046
875
|
let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
|
|
2047
876
|
n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
|
|
2048
877
|
}
|
|
2049
878
|
Array(12).fill(0);
|
|
2050
|
-
var
|
|
879
|
+
var gt = 1, Z = new class {
|
|
2051
880
|
constructor() {
|
|
2052
881
|
this.subscribe = (e) => (this.subscribers.push(e), () => {
|
|
2053
882
|
let t = this.subscribers.indexOf(e);
|
|
@@ -2057,7 +886,7 @@ var At = 1, Q = new class {
|
|
|
2057
886
|
}, this.addToast = (e) => {
|
|
2058
887
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
2059
888
|
}, this.create = (e) => {
|
|
2060
|
-
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id :
|
|
889
|
+
let { message: t, ...n } = e, r = typeof e?.id == "number" || e.id?.length > 0 ? e.id : gt++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
2061
890
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
2062
891
|
...n,
|
|
2063
892
|
...e,
|
|
@@ -2106,67 +935,67 @@ var At = 1, Q = new class {
|
|
|
2106
935
|
...t,
|
|
2107
936
|
type: "loading",
|
|
2108
937
|
message: e
|
|
2109
|
-
}), this.promise = (
|
|
2110
|
-
if (!
|
|
2111
|
-
let
|
|
2112
|
-
|
|
2113
|
-
...
|
|
2114
|
-
promise:
|
|
938
|
+
}), this.promise = (t, n) => {
|
|
939
|
+
if (!n) return;
|
|
940
|
+
let r;
|
|
941
|
+
n.loading !== void 0 && (r = this.create({
|
|
942
|
+
...n,
|
|
943
|
+
promise: t,
|
|
2115
944
|
type: "loading",
|
|
2116
|
-
message:
|
|
2117
|
-
description: typeof
|
|
945
|
+
message: n.loading,
|
|
946
|
+
description: typeof n.description == "function" ? void 0 : n.description
|
|
2118
947
|
}));
|
|
2119
|
-
let
|
|
2120
|
-
if (
|
|
2121
|
-
id:
|
|
948
|
+
let i = Promise.resolve(t instanceof Function ? t() : t), a = r !== void 0, o, s = i.then(async (t) => {
|
|
949
|
+
if (o = ["resolve", t], e.isValidElement(t)) a = !1, this.create({
|
|
950
|
+
id: r,
|
|
2122
951
|
type: "default",
|
|
2123
|
-
message:
|
|
952
|
+
message: t
|
|
2124
953
|
});
|
|
2125
|
-
else if (
|
|
2126
|
-
|
|
2127
|
-
let
|
|
954
|
+
else if (vt(t) && !t.ok) {
|
|
955
|
+
a = !1;
|
|
956
|
+
let i = typeof n.error == "function" ? await n.error(`HTTP error! status: ${t.status}`) : n.error, o = typeof n.description == "function" ? await n.description(`HTTP error! status: ${t.status}`) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
2128
957
|
this.create({
|
|
2129
|
-
id:
|
|
958
|
+
id: r,
|
|
2130
959
|
type: "error",
|
|
2131
|
-
description:
|
|
2132
|
-
...
|
|
960
|
+
description: o,
|
|
961
|
+
...s
|
|
2133
962
|
});
|
|
2134
|
-
} else if (
|
|
2135
|
-
|
|
2136
|
-
let
|
|
963
|
+
} else if (t instanceof Error) {
|
|
964
|
+
a = !1;
|
|
965
|
+
let i = typeof n.error == "function" ? await n.error(t) : n.error, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
2137
966
|
this.create({
|
|
2138
|
-
id:
|
|
967
|
+
id: r,
|
|
2139
968
|
type: "error",
|
|
2140
|
-
description:
|
|
2141
|
-
...
|
|
969
|
+
description: o,
|
|
970
|
+
...s
|
|
2142
971
|
});
|
|
2143
|
-
} else if (
|
|
2144
|
-
|
|
2145
|
-
let
|
|
972
|
+
} else if (n.success !== void 0) {
|
|
973
|
+
a = !1;
|
|
974
|
+
let i = typeof n.success == "function" ? await n.success(t) : n.success, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
2146
975
|
this.create({
|
|
2147
|
-
id:
|
|
976
|
+
id: r,
|
|
2148
977
|
type: "success",
|
|
2149
|
-
description:
|
|
2150
|
-
...
|
|
978
|
+
description: o,
|
|
979
|
+
...s
|
|
2151
980
|
});
|
|
2152
981
|
}
|
|
2153
|
-
}).catch(async (
|
|
2154
|
-
if (
|
|
2155
|
-
|
|
2156
|
-
let
|
|
982
|
+
}).catch(async (t) => {
|
|
983
|
+
if (o = ["reject", t], n.error !== void 0) {
|
|
984
|
+
a = !1;
|
|
985
|
+
let i = typeof n.error == "function" ? await n.error(t) : n.error, o = typeof n.description == "function" ? await n.description(t) : n.description, s = typeof i == "object" && !e.isValidElement(i) ? i : { message: i };
|
|
2157
986
|
this.create({
|
|
2158
|
-
id:
|
|
987
|
+
id: r,
|
|
2159
988
|
type: "error",
|
|
2160
|
-
description:
|
|
2161
|
-
...
|
|
989
|
+
description: o,
|
|
990
|
+
...s
|
|
2162
991
|
});
|
|
2163
992
|
}
|
|
2164
993
|
}).finally(() => {
|
|
2165
|
-
|
|
2166
|
-
}),
|
|
2167
|
-
return typeof
|
|
994
|
+
a && (this.dismiss(r), r = void 0), n.finally == null || n.finally.call(n);
|
|
995
|
+
}), c = () => new Promise((e, t) => s.then(() => o[0] === "reject" ? t(o[1]) : e(o[1])).catch(t));
|
|
996
|
+
return typeof r != "string" && typeof r != "number" ? { unwrap: c } : Object.assign(r, { unwrap: c });
|
|
2168
997
|
}, this.custom = (e, t) => {
|
|
2169
|
-
let n = t?.id ||
|
|
998
|
+
let n = t?.id || gt++;
|
|
2170
999
|
return this.create({
|
|
2171
1000
|
jsx: e(n),
|
|
2172
1001
|
id: n,
|
|
@@ -2174,28 +1003,28 @@ var At = 1, Q = new class {
|
|
|
2174
1003
|
}), n;
|
|
2175
1004
|
}, this.getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
|
|
2176
1005
|
}
|
|
2177
|
-
}(),
|
|
2178
|
-
let n = t?.id ||
|
|
2179
|
-
return
|
|
1006
|
+
}(), _t = (e, t) => {
|
|
1007
|
+
let n = t?.id || gt++;
|
|
1008
|
+
return Z.addToast({
|
|
2180
1009
|
title: e,
|
|
2181
1010
|
...t,
|
|
2182
1011
|
id: n
|
|
2183
1012
|
}), n;
|
|
2184
|
-
},
|
|
2185
|
-
success:
|
|
2186
|
-
info:
|
|
2187
|
-
warning:
|
|
2188
|
-
error:
|
|
2189
|
-
custom:
|
|
2190
|
-
message:
|
|
2191
|
-
promise:
|
|
2192
|
-
dismiss:
|
|
2193
|
-
loading:
|
|
1013
|
+
}, vt = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", yt = _t, Q = Object.assign(yt, {
|
|
1014
|
+
success: Z.success,
|
|
1015
|
+
info: Z.info,
|
|
1016
|
+
warning: Z.warning,
|
|
1017
|
+
error: Z.error,
|
|
1018
|
+
custom: Z.custom,
|
|
1019
|
+
message: Z.message,
|
|
1020
|
+
promise: Z.promise,
|
|
1021
|
+
dismiss: Z.dismiss,
|
|
1022
|
+
loading: Z.loading
|
|
2194
1023
|
}, {
|
|
2195
|
-
getHistory: () =>
|
|
2196
|
-
getToasts: () =>
|
|
1024
|
+
getHistory: () => Z.toasts,
|
|
1025
|
+
getToasts: () => Z.getActiveToasts()
|
|
2197
1026
|
});
|
|
2198
|
-
kt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
1027
|
+
ht("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
|
|
2199
1028
|
//#endregion
|
|
2200
1029
|
//#region src/networking/services/yusrApiHelper.ts
|
|
2201
1030
|
var $ = class e {
|
|
@@ -2254,19 +1083,19 @@ var $ = class e {
|
|
|
2254
1083
|
});
|
|
2255
1084
|
if (!a.ok) {
|
|
2256
1085
|
let e = await a.json();
|
|
2257
|
-
|
|
1086
|
+
Q.error(e.title || "حدث خطأ أثناء تحميل التقرير", { description: e.detail || "يرجى المحاولة مرة أخرى لاحقاً" });
|
|
2258
1087
|
return;
|
|
2259
1088
|
}
|
|
2260
1089
|
return await a.blob();
|
|
2261
1090
|
}
|
|
2262
|
-
static async handleResponse(e,
|
|
2263
|
-
if (e.status === 401) return window.dispatchEvent(new Event(
|
|
1091
|
+
static async handleResponse(e, n) {
|
|
1092
|
+
if (e.status === 401) return window.dispatchEvent(new Event(t.UnauthorizedEventName)), Q.error("انتهت صلاحية الدخول", { description: "سجل الدخول مجددًا." }), {
|
|
2264
1093
|
data: void 0,
|
|
2265
1094
|
status: 401,
|
|
2266
1095
|
errorTitle: "Unauthorized",
|
|
2267
1096
|
errorDetails: "Session expired"
|
|
2268
1097
|
};
|
|
2269
|
-
if (e.status === 404) return
|
|
1098
|
+
if (e.status === 404) return Q.error("لم يتم العثور على طلبك"), {
|
|
2270
1099
|
data: void 0,
|
|
2271
1100
|
status: 404,
|
|
2272
1101
|
errorTitle: "Not Found",
|
|
@@ -2274,39 +1103,39 @@ var $ = class e {
|
|
|
2274
1103
|
};
|
|
2275
1104
|
if (!e.ok) {
|
|
2276
1105
|
let t = await e.json();
|
|
2277
|
-
return
|
|
1106
|
+
return Q.error(t.title || "An error occurred", { description: t.detail }), {
|
|
2278
1107
|
data: void 0,
|
|
2279
1108
|
status: e.status,
|
|
2280
1109
|
errorTitle: t.title,
|
|
2281
1110
|
errorDetails: t.detail
|
|
2282
1111
|
};
|
|
2283
1112
|
}
|
|
2284
|
-
let
|
|
2285
|
-
return
|
|
2286
|
-
data:
|
|
1113
|
+
let r = await e.json();
|
|
1114
|
+
return n && Q.success(n), {
|
|
1115
|
+
data: r,
|
|
2287
1116
|
status: e.status,
|
|
2288
1117
|
errorTitle: "",
|
|
2289
1118
|
errorDetails: ""
|
|
2290
1119
|
};
|
|
2291
1120
|
}
|
|
2292
|
-
},
|
|
1121
|
+
}, bt = class {
|
|
2293
1122
|
async Filter(e, t, n) {
|
|
2294
|
-
return await $.Post(`${
|
|
1123
|
+
return await $.Post(`${X.baseUrl}/${this.routeName}/Filter?pageNumber=${e}&rowsPerPage=${t}`, n);
|
|
2295
1124
|
}
|
|
2296
|
-
},
|
|
1125
|
+
}, xt = class extends bt {
|
|
2297
1126
|
async Get(e) {
|
|
2298
|
-
return await $.Get(`${
|
|
1127
|
+
return await $.Get(`${X.baseUrl}/${this.routeName}/${e}`);
|
|
2299
1128
|
}
|
|
2300
1129
|
async Add(e) {
|
|
2301
|
-
return await $.Post(`${
|
|
1130
|
+
return await $.Post(`${X.baseUrl}/${this.routeName}/Add`, e, void 0, "تم حفظ البيانات بنجاح");
|
|
2302
1131
|
}
|
|
2303
1132
|
async Update(e) {
|
|
2304
|
-
return await $.Put(`${
|
|
1133
|
+
return await $.Put(`${X.baseUrl}/${this.routeName}/Update`, e, void 0, "تم تحديث المعلومات بنجاح");
|
|
2305
1134
|
}
|
|
2306
1135
|
async Delete(e) {
|
|
2307
|
-
return await $.Delete(`${
|
|
1136
|
+
return await $.Delete(`${X.baseUrl}/${this.routeName}/${e}`, void 0, "تمت إزالة السجل بنجاح");
|
|
2308
1137
|
}
|
|
2309
|
-
},
|
|
1138
|
+
}, St = class {
|
|
2310
1139
|
static required(e = "هذا الحقل مطلوب") {
|
|
2311
1140
|
return (t) => t == null || t === "" || typeof t == "string" && t.trim() === "" ? e : null;
|
|
2312
1141
|
}
|
|
@@ -2324,4 +1153,4 @@ var $ = class e {
|
|
|
2324
1153
|
}
|
|
2325
1154
|
};
|
|
2326
1155
|
//#endregion
|
|
2327
|
-
export {
|
|
1156
|
+
export { X as ApiConstants, t as AuthConstants, xt as BaseApiService, Y as BaseEntity, bt as BaseFilterableApiService, ot as City, st as CityFilterColumns, ct as Country, lt as CountryFilterColumns, ut as Currency, dt as FilterCondition, ft as LoginRequest, pt as StorageFile, mt as StorageFileStatus, at as SystemPermissions, St as Validators, $ as YusrApiHelper, it as createAuthSlice };
|