@opencx/widget 3.0.89 → 3.0.90
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/designs.cjs +31 -336
- package/dist/designs.cjs.map +1 -1
- package/dist/designs.js +9998 -28296
- package/dist/designs.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/is-exhaustive-9o43S91P.cjs +2 -0
- package/dist/is-exhaustive-9o43S91P.cjs.map +1 -0
- package/dist/is-exhaustive-DGJzQK69.js +7 -0
- package/dist/is-exhaustive-DGJzQK69.js.map +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +17 -16
- package/dist/react.js.map +1 -1
- package/dist/useModes-B3IdrBWZ.js +261 -0
- package/dist/useModes-B3IdrBWZ.js.map +1 -0
- package/dist/useModes-ZmjqOTMd.cjs +2 -0
- package/dist/useModes-ZmjqOTMd.cjs.map +1 -0
- package/dist/widget.ctx-6xcbtF7q.cjs +5 -0
- package/dist/widget.ctx-6xcbtF7q.cjs.map +1 -0
- package/dist/widget.ctx-uAWzif3-.js +688 -0
- package/dist/widget.ctx-uAWzif3-.js.map +1 -0
- package/dist-embed/script.js +1 -1
- package/package.json +1 -1
- package/dist/useModes-BAr0RJcP.js +0 -3183
- package/dist/useModes-BAr0RJcP.js.map +0 -1
- package/dist/useModes-C4Sdixy0.cjs +0 -85
- package/dist/useModes-C4Sdixy0.cjs.map +0 -1
- package/dist/widget.ctx-Db3DyLM5.js +0 -1564
- package/dist/widget.ctx-Db3DyLM5.js.map +0 -1
- package/dist/widget.ctx-RfaE5VPy.cjs +0 -5
- package/dist/widget.ctx-RfaE5VPy.cjs.map +0 -1
|
@@ -1,3183 +0,0 @@
|
|
|
1
|
-
import { g as Fn, W as zn, a as Bn, v as Gn } from "./widget.ctx-Db3DyLM5.js";
|
|
2
|
-
function Kn(t, n) {
|
|
3
|
-
for (var r = 0; r < n.length; r++) {
|
|
4
|
-
const o = n[r];
|
|
5
|
-
if (typeof o != "string" && !Array.isArray(o)) {
|
|
6
|
-
for (const i in o)
|
|
7
|
-
if (i !== "default" && !(i in t)) {
|
|
8
|
-
const c = Object.getOwnPropertyDescriptor(o, i);
|
|
9
|
-
c && Object.defineProperty(t, i, c.get ? c : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => o[i]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var mt = { exports: {} }, He = {};
|
|
19
|
-
/**
|
|
20
|
-
* @license React
|
|
21
|
-
* react-jsx-runtime.production.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|
|
28
|
-
var zt;
|
|
29
|
-
function Xn() {
|
|
30
|
-
if (zt) return He;
|
|
31
|
-
zt = 1;
|
|
32
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
33
|
-
function r(o, i, c) {
|
|
34
|
-
var l = null;
|
|
35
|
-
if (c !== void 0 && (l = "" + c), i.key !== void 0 && (l = "" + i.key), "key" in i) {
|
|
36
|
-
c = {};
|
|
37
|
-
for (var h in i)
|
|
38
|
-
h !== "key" && (c[h] = i[h]);
|
|
39
|
-
} else c = i;
|
|
40
|
-
return i = c.ref, {
|
|
41
|
-
$$typeof: t,
|
|
42
|
-
type: o,
|
|
43
|
-
key: l,
|
|
44
|
-
ref: i !== void 0 ? i : null,
|
|
45
|
-
props: c
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
return He.Fragment = n, He.jsx = r, He.jsxs = r, He;
|
|
49
|
-
}
|
|
50
|
-
var qe = {}, wt = { exports: {} }, U = {};
|
|
51
|
-
/**
|
|
52
|
-
* @license React
|
|
53
|
-
* react.production.js
|
|
54
|
-
*
|
|
55
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the MIT license found in the
|
|
58
|
-
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/
|
|
60
|
-
var Bt;
|
|
61
|
-
function Qn() {
|
|
62
|
-
if (Bt) return U;
|
|
63
|
-
Bt = 1;
|
|
64
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.iterator;
|
|
65
|
-
function m(a) {
|
|
66
|
-
return a === null || typeof a != "object" ? null : (a = v && a[v] || a["@@iterator"], typeof a == "function" ? a : null);
|
|
67
|
-
}
|
|
68
|
-
var _ = {
|
|
69
|
-
isMounted: function() {
|
|
70
|
-
return !1;
|
|
71
|
-
},
|
|
72
|
-
enqueueForceUpdate: function() {
|
|
73
|
-
},
|
|
74
|
-
enqueueReplaceState: function() {
|
|
75
|
-
},
|
|
76
|
-
enqueueSetState: function() {
|
|
77
|
-
}
|
|
78
|
-
}, D = Object.assign, x = {};
|
|
79
|
-
function V(a, d, C) {
|
|
80
|
-
this.props = a, this.context = d, this.refs = x, this.updater = C || _;
|
|
81
|
-
}
|
|
82
|
-
V.prototype.isReactComponent = {}, V.prototype.setState = function(a, d) {
|
|
83
|
-
if (typeof a != "object" && typeof a != "function" && a != null)
|
|
84
|
-
throw Error(
|
|
85
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
86
|
-
);
|
|
87
|
-
this.updater.enqueueSetState(this, a, d, "setState");
|
|
88
|
-
}, V.prototype.forceUpdate = function(a) {
|
|
89
|
-
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
90
|
-
};
|
|
91
|
-
function R() {
|
|
92
|
-
}
|
|
93
|
-
R.prototype = V.prototype;
|
|
94
|
-
function fe(a, d, C) {
|
|
95
|
-
this.props = a, this.context = d, this.refs = x, this.updater = C || _;
|
|
96
|
-
}
|
|
97
|
-
var z = fe.prototype = new R();
|
|
98
|
-
z.constructor = fe, D(z, V.prototype), z.isPureReactComponent = !0;
|
|
99
|
-
var W = Array.isArray, T = { H: null, A: null, T: null, S: null }, $ = Object.prototype.hasOwnProperty;
|
|
100
|
-
function ie(a, d, C, A, M, H) {
|
|
101
|
-
return C = H.ref, {
|
|
102
|
-
$$typeof: t,
|
|
103
|
-
type: a,
|
|
104
|
-
key: d,
|
|
105
|
-
ref: C !== void 0 ? C : null,
|
|
106
|
-
props: H
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function Y(a, d) {
|
|
110
|
-
return ie(
|
|
111
|
-
a.type,
|
|
112
|
-
d,
|
|
113
|
-
void 0,
|
|
114
|
-
void 0,
|
|
115
|
-
void 0,
|
|
116
|
-
a.props
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
function B(a) {
|
|
120
|
-
return typeof a == "object" && a !== null && a.$$typeof === t;
|
|
121
|
-
}
|
|
122
|
-
function re(a) {
|
|
123
|
-
var d = { "=": "=0", ":": "=2" };
|
|
124
|
-
return "$" + a.replace(/[=:]/g, function(C) {
|
|
125
|
-
return d[C];
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
var le = /\/+/g;
|
|
129
|
-
function de(a, d) {
|
|
130
|
-
return typeof a == "object" && a !== null && a.key != null ? re("" + a.key) : d.toString(36);
|
|
131
|
-
}
|
|
132
|
-
function oe() {
|
|
133
|
-
}
|
|
134
|
-
function he(a) {
|
|
135
|
-
switch (a.status) {
|
|
136
|
-
case "fulfilled":
|
|
137
|
-
return a.value;
|
|
138
|
-
case "rejected":
|
|
139
|
-
throw a.reason;
|
|
140
|
-
default:
|
|
141
|
-
switch (typeof a.status == "string" ? a.then(oe, oe) : (a.status = "pending", a.then(
|
|
142
|
-
function(d) {
|
|
143
|
-
a.status === "pending" && (a.status = "fulfilled", a.value = d);
|
|
144
|
-
},
|
|
145
|
-
function(d) {
|
|
146
|
-
a.status === "pending" && (a.status = "rejected", a.reason = d);
|
|
147
|
-
}
|
|
148
|
-
)), a.status) {
|
|
149
|
-
case "fulfilled":
|
|
150
|
-
return a.value;
|
|
151
|
-
case "rejected":
|
|
152
|
-
throw a.reason;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
throw a;
|
|
156
|
-
}
|
|
157
|
-
function _e(a, d, C, A, M) {
|
|
158
|
-
var H = typeof a;
|
|
159
|
-
(H === "undefined" || H === "boolean") && (a = null);
|
|
160
|
-
var k = !1;
|
|
161
|
-
if (a === null) k = !0;
|
|
162
|
-
else
|
|
163
|
-
switch (H) {
|
|
164
|
-
case "bigint":
|
|
165
|
-
case "string":
|
|
166
|
-
case "number":
|
|
167
|
-
k = !0;
|
|
168
|
-
break;
|
|
169
|
-
case "object":
|
|
170
|
-
switch (a.$$typeof) {
|
|
171
|
-
case t:
|
|
172
|
-
case n:
|
|
173
|
-
k = !0;
|
|
174
|
-
break;
|
|
175
|
-
case p:
|
|
176
|
-
return k = a._init, _e(
|
|
177
|
-
k(a._payload),
|
|
178
|
-
d,
|
|
179
|
-
C,
|
|
180
|
-
A,
|
|
181
|
-
M
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
if (k)
|
|
186
|
-
return M = M(a), k = A === "" ? "." + de(a, 0) : A, W(M) ? (C = "", k != null && (C = k.replace(le, "$&/") + "/"), _e(M, d, C, "", function(je) {
|
|
187
|
-
return je;
|
|
188
|
-
})) : M != null && (B(M) && (M = Y(
|
|
189
|
-
M,
|
|
190
|
-
C + (M.key == null || a && a.key === M.key ? "" : ("" + M.key).replace(
|
|
191
|
-
le,
|
|
192
|
-
"$&/"
|
|
193
|
-
) + "/") + k
|
|
194
|
-
)), d.push(M)), 1;
|
|
195
|
-
k = 0;
|
|
196
|
-
var pe = A === "" ? "." : A + ":";
|
|
197
|
-
if (W(a))
|
|
198
|
-
for (var te = 0; te < a.length; te++)
|
|
199
|
-
A = a[te], H = pe + de(A, te), k += _e(
|
|
200
|
-
A,
|
|
201
|
-
d,
|
|
202
|
-
C,
|
|
203
|
-
H,
|
|
204
|
-
M
|
|
205
|
-
);
|
|
206
|
-
else if (te = m(a), typeof te == "function")
|
|
207
|
-
for (a = te.call(a), te = 0; !(A = a.next()).done; )
|
|
208
|
-
A = A.value, H = pe + de(A, te++), k += _e(
|
|
209
|
-
A,
|
|
210
|
-
d,
|
|
211
|
-
C,
|
|
212
|
-
H,
|
|
213
|
-
M
|
|
214
|
-
);
|
|
215
|
-
else if (H === "object") {
|
|
216
|
-
if (typeof a.then == "function")
|
|
217
|
-
return _e(
|
|
218
|
-
he(a),
|
|
219
|
-
d,
|
|
220
|
-
C,
|
|
221
|
-
A,
|
|
222
|
-
M
|
|
223
|
-
);
|
|
224
|
-
throw d = String(a), Error(
|
|
225
|
-
"Objects are not valid as a React child (found: " + (d === "[object Object]" ? "object with keys {" + Object.keys(a).join(", ") + "}" : d) + "). If you meant to render a collection of children, use an array instead."
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
return k;
|
|
229
|
-
}
|
|
230
|
-
function Ee(a, d, C) {
|
|
231
|
-
if (a == null) return a;
|
|
232
|
-
var A = [], M = 0;
|
|
233
|
-
return _e(a, A, "", "", function(H) {
|
|
234
|
-
return d.call(C, H, M++);
|
|
235
|
-
}), A;
|
|
236
|
-
}
|
|
237
|
-
function Oe(a) {
|
|
238
|
-
if (a._status === -1) {
|
|
239
|
-
var d = a._result;
|
|
240
|
-
d = d(), d.then(
|
|
241
|
-
function(C) {
|
|
242
|
-
(a._status === 0 || a._status === -1) && (a._status = 1, a._result = C);
|
|
243
|
-
},
|
|
244
|
-
function(C) {
|
|
245
|
-
(a._status === 0 || a._status === -1) && (a._status = 2, a._result = C);
|
|
246
|
-
}
|
|
247
|
-
), a._status === -1 && (a._status = 0, a._result = d);
|
|
248
|
-
}
|
|
249
|
-
if (a._status === 1) return a._result.default;
|
|
250
|
-
throw a._result;
|
|
251
|
-
}
|
|
252
|
-
var be = typeof reportError == "function" ? reportError : function(a) {
|
|
253
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
254
|
-
var d = new window.ErrorEvent("error", {
|
|
255
|
-
bubbles: !0,
|
|
256
|
-
cancelable: !0,
|
|
257
|
-
message: typeof a == "object" && a !== null && typeof a.message == "string" ? String(a.message) : String(a),
|
|
258
|
-
error: a
|
|
259
|
-
});
|
|
260
|
-
if (!window.dispatchEvent(d)) return;
|
|
261
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
262
|
-
process.emit("uncaughtException", a);
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
console.error(a);
|
|
266
|
-
};
|
|
267
|
-
function G() {
|
|
268
|
-
}
|
|
269
|
-
return U.Children = {
|
|
270
|
-
map: Ee,
|
|
271
|
-
forEach: function(a, d, C) {
|
|
272
|
-
Ee(
|
|
273
|
-
a,
|
|
274
|
-
function() {
|
|
275
|
-
d.apply(this, arguments);
|
|
276
|
-
},
|
|
277
|
-
C
|
|
278
|
-
);
|
|
279
|
-
},
|
|
280
|
-
count: function(a) {
|
|
281
|
-
var d = 0;
|
|
282
|
-
return Ee(a, function() {
|
|
283
|
-
d++;
|
|
284
|
-
}), d;
|
|
285
|
-
},
|
|
286
|
-
toArray: function(a) {
|
|
287
|
-
return Ee(a, function(d) {
|
|
288
|
-
return d;
|
|
289
|
-
}) || [];
|
|
290
|
-
},
|
|
291
|
-
only: function(a) {
|
|
292
|
-
if (!B(a))
|
|
293
|
-
throw Error(
|
|
294
|
-
"React.Children.only expected to receive a single React element child."
|
|
295
|
-
);
|
|
296
|
-
return a;
|
|
297
|
-
}
|
|
298
|
-
}, U.Component = V, U.Fragment = r, U.Profiler = i, U.PureComponent = fe, U.StrictMode = o, U.Suspense = S, U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, U.act = function() {
|
|
299
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
300
|
-
}, U.cache = function(a) {
|
|
301
|
-
return function() {
|
|
302
|
-
return a.apply(null, arguments);
|
|
303
|
-
};
|
|
304
|
-
}, U.cloneElement = function(a, d, C) {
|
|
305
|
-
if (a == null)
|
|
306
|
-
throw Error(
|
|
307
|
-
"The argument must be a React element, but you passed " + a + "."
|
|
308
|
-
);
|
|
309
|
-
var A = D({}, a.props), M = a.key, H = void 0;
|
|
310
|
-
if (d != null)
|
|
311
|
-
for (k in d.ref !== void 0 && (H = void 0), d.key !== void 0 && (M = "" + d.key), d)
|
|
312
|
-
!$.call(d, k) || k === "key" || k === "__self" || k === "__source" || k === "ref" && d.ref === void 0 || (A[k] = d[k]);
|
|
313
|
-
var k = arguments.length - 2;
|
|
314
|
-
if (k === 1) A.children = C;
|
|
315
|
-
else if (1 < k) {
|
|
316
|
-
for (var pe = Array(k), te = 0; te < k; te++)
|
|
317
|
-
pe[te] = arguments[te + 2];
|
|
318
|
-
A.children = pe;
|
|
319
|
-
}
|
|
320
|
-
return ie(a.type, M, void 0, void 0, H, A);
|
|
321
|
-
}, U.createContext = function(a) {
|
|
322
|
-
return a = {
|
|
323
|
-
$$typeof: l,
|
|
324
|
-
_currentValue: a,
|
|
325
|
-
_currentValue2: a,
|
|
326
|
-
_threadCount: 0,
|
|
327
|
-
Provider: null,
|
|
328
|
-
Consumer: null
|
|
329
|
-
}, a.Provider = a, a.Consumer = {
|
|
330
|
-
$$typeof: c,
|
|
331
|
-
_context: a
|
|
332
|
-
}, a;
|
|
333
|
-
}, U.createElement = function(a, d, C) {
|
|
334
|
-
var A, M = {}, H = null;
|
|
335
|
-
if (d != null)
|
|
336
|
-
for (A in d.key !== void 0 && (H = "" + d.key), d)
|
|
337
|
-
$.call(d, A) && A !== "key" && A !== "__self" && A !== "__source" && (M[A] = d[A]);
|
|
338
|
-
var k = arguments.length - 2;
|
|
339
|
-
if (k === 1) M.children = C;
|
|
340
|
-
else if (1 < k) {
|
|
341
|
-
for (var pe = Array(k), te = 0; te < k; te++)
|
|
342
|
-
pe[te] = arguments[te + 2];
|
|
343
|
-
M.children = pe;
|
|
344
|
-
}
|
|
345
|
-
if (a && a.defaultProps)
|
|
346
|
-
for (A in k = a.defaultProps, k)
|
|
347
|
-
M[A] === void 0 && (M[A] = k[A]);
|
|
348
|
-
return ie(a, H, void 0, void 0, null, M);
|
|
349
|
-
}, U.createRef = function() {
|
|
350
|
-
return { current: null };
|
|
351
|
-
}, U.forwardRef = function(a) {
|
|
352
|
-
return { $$typeof: h, render: a };
|
|
353
|
-
}, U.isValidElement = B, U.lazy = function(a) {
|
|
354
|
-
return {
|
|
355
|
-
$$typeof: p,
|
|
356
|
-
_payload: { _status: -1, _result: a },
|
|
357
|
-
_init: Oe
|
|
358
|
-
};
|
|
359
|
-
}, U.memo = function(a, d) {
|
|
360
|
-
return {
|
|
361
|
-
$$typeof: g,
|
|
362
|
-
type: a,
|
|
363
|
-
compare: d === void 0 ? null : d
|
|
364
|
-
};
|
|
365
|
-
}, U.startTransition = function(a) {
|
|
366
|
-
var d = T.T, C = {};
|
|
367
|
-
T.T = C;
|
|
368
|
-
try {
|
|
369
|
-
var A = a(), M = T.S;
|
|
370
|
-
M !== null && M(C, A), typeof A == "object" && A !== null && typeof A.then == "function" && A.then(G, be);
|
|
371
|
-
} catch (H) {
|
|
372
|
-
be(H);
|
|
373
|
-
} finally {
|
|
374
|
-
T.T = d;
|
|
375
|
-
}
|
|
376
|
-
}, U.unstable_useCacheRefresh = function() {
|
|
377
|
-
return T.H.useCacheRefresh();
|
|
378
|
-
}, U.use = function(a) {
|
|
379
|
-
return T.H.use(a);
|
|
380
|
-
}, U.useActionState = function(a, d, C) {
|
|
381
|
-
return T.H.useActionState(a, d, C);
|
|
382
|
-
}, U.useCallback = function(a, d) {
|
|
383
|
-
return T.H.useCallback(a, d);
|
|
384
|
-
}, U.useContext = function(a) {
|
|
385
|
-
return T.H.useContext(a);
|
|
386
|
-
}, U.useDebugValue = function() {
|
|
387
|
-
}, U.useDeferredValue = function(a, d) {
|
|
388
|
-
return T.H.useDeferredValue(a, d);
|
|
389
|
-
}, U.useEffect = function(a, d) {
|
|
390
|
-
return T.H.useEffect(a, d);
|
|
391
|
-
}, U.useId = function() {
|
|
392
|
-
return T.H.useId();
|
|
393
|
-
}, U.useImperativeHandle = function(a, d, C) {
|
|
394
|
-
return T.H.useImperativeHandle(a, d, C);
|
|
395
|
-
}, U.useInsertionEffect = function(a, d) {
|
|
396
|
-
return T.H.useInsertionEffect(a, d);
|
|
397
|
-
}, U.useLayoutEffect = function(a, d) {
|
|
398
|
-
return T.H.useLayoutEffect(a, d);
|
|
399
|
-
}, U.useMemo = function(a, d) {
|
|
400
|
-
return T.H.useMemo(a, d);
|
|
401
|
-
}, U.useOptimistic = function(a, d) {
|
|
402
|
-
return T.H.useOptimistic(a, d);
|
|
403
|
-
}, U.useReducer = function(a, d, C) {
|
|
404
|
-
return T.H.useReducer(a, d, C);
|
|
405
|
-
}, U.useRef = function(a) {
|
|
406
|
-
return T.H.useRef(a);
|
|
407
|
-
}, U.useState = function(a) {
|
|
408
|
-
return T.H.useState(a);
|
|
409
|
-
}, U.useSyncExternalStore = function(a, d, C) {
|
|
410
|
-
return T.H.useSyncExternalStore(
|
|
411
|
-
a,
|
|
412
|
-
d,
|
|
413
|
-
C
|
|
414
|
-
);
|
|
415
|
-
}, U.useTransition = function() {
|
|
416
|
-
return T.H.useTransition();
|
|
417
|
-
}, U.version = "19.0.0", U;
|
|
418
|
-
}
|
|
419
|
-
var ze = { exports: {} };
|
|
420
|
-
/**
|
|
421
|
-
* @license React
|
|
422
|
-
* react.development.js
|
|
423
|
-
*
|
|
424
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
425
|
-
*
|
|
426
|
-
* This source code is licensed under the MIT license found in the
|
|
427
|
-
* LICENSE file in the root directory of this source tree.
|
|
428
|
-
*/
|
|
429
|
-
ze.exports;
|
|
430
|
-
var Gt;
|
|
431
|
-
function Jn() {
|
|
432
|
-
return Gt || (Gt = 1, function(t, n) {
|
|
433
|
-
process.env.NODE_ENV !== "production" && function() {
|
|
434
|
-
function r(e, u) {
|
|
435
|
-
Object.defineProperty(c.prototype, e, {
|
|
436
|
-
get: function() {
|
|
437
|
-
console.warn(
|
|
438
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
439
|
-
u[0],
|
|
440
|
-
u[1]
|
|
441
|
-
);
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
function o(e) {
|
|
446
|
-
return e === null || typeof e != "object" ? null : (e = ae && e[ae] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
447
|
-
}
|
|
448
|
-
function i(e, u) {
|
|
449
|
-
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
450
|
-
var f = e + "." + u;
|
|
451
|
-
ye[f] || (console.error(
|
|
452
|
-
"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.",
|
|
453
|
-
u,
|
|
454
|
-
e
|
|
455
|
-
), ye[f] = !0);
|
|
456
|
-
}
|
|
457
|
-
function c(e, u, f) {
|
|
458
|
-
this.props = e, this.context = u, this.refs = w, this.updater = f || s;
|
|
459
|
-
}
|
|
460
|
-
function l() {
|
|
461
|
-
}
|
|
462
|
-
function h(e, u, f) {
|
|
463
|
-
this.props = e, this.context = u, this.refs = w, this.updater = f || s;
|
|
464
|
-
}
|
|
465
|
-
function S(e) {
|
|
466
|
-
return "" + e;
|
|
467
|
-
}
|
|
468
|
-
function g(e) {
|
|
469
|
-
try {
|
|
470
|
-
S(e);
|
|
471
|
-
var u = !1;
|
|
472
|
-
} catch {
|
|
473
|
-
u = !0;
|
|
474
|
-
}
|
|
475
|
-
if (u) {
|
|
476
|
-
u = console;
|
|
477
|
-
var f = u.error, E = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
478
|
-
return f.call(
|
|
479
|
-
u,
|
|
480
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
481
|
-
E
|
|
482
|
-
), S(e);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
function p(e) {
|
|
486
|
-
if (e == null) return null;
|
|
487
|
-
if (typeof e == "function")
|
|
488
|
-
return e.$$typeof === L ? null : e.displayName || e.name || null;
|
|
489
|
-
if (typeof e == "string") return e;
|
|
490
|
-
switch (e) {
|
|
491
|
-
case te:
|
|
492
|
-
return "Fragment";
|
|
493
|
-
case pe:
|
|
494
|
-
return "Portal";
|
|
495
|
-
case Re:
|
|
496
|
-
return "Profiler";
|
|
497
|
-
case je:
|
|
498
|
-
return "StrictMode";
|
|
499
|
-
case ne:
|
|
500
|
-
return "Suspense";
|
|
501
|
-
case Z:
|
|
502
|
-
return "SuspenseList";
|
|
503
|
-
}
|
|
504
|
-
if (typeof e == "object")
|
|
505
|
-
switch (typeof e.tag == "number" && console.error(
|
|
506
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
507
|
-
), e.$$typeof) {
|
|
508
|
-
case q:
|
|
509
|
-
return (e.displayName || "Context") + ".Provider";
|
|
510
|
-
case Ne:
|
|
511
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
512
|
-
case F:
|
|
513
|
-
var u = e.render;
|
|
514
|
-
return e = e.displayName, e || (e = u.displayName || u.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
515
|
-
case ce:
|
|
516
|
-
return u = e.displayName || null, u !== null ? u : p(e.type) || "Memo";
|
|
517
|
-
case ge:
|
|
518
|
-
u = e._payload, e = e._init;
|
|
519
|
-
try {
|
|
520
|
-
return p(e(u));
|
|
521
|
-
} catch {
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
return null;
|
|
525
|
-
}
|
|
526
|
-
function v(e) {
|
|
527
|
-
return typeof e == "string" || typeof e == "function" || e === te || e === Re || e === je || e === ne || e === Z || e === se || typeof e == "object" && e !== null && (e.$$typeof === ge || e.$$typeof === ce || e.$$typeof === q || e.$$typeof === Ne || e.$$typeof === F || e.$$typeof === ve || e.getModuleId !== void 0);
|
|
528
|
-
}
|
|
529
|
-
function m() {
|
|
530
|
-
}
|
|
531
|
-
function _() {
|
|
532
|
-
if (Se === 0) {
|
|
533
|
-
Le = console.log, Ae = console.info, We = console.warn, Ce = console.error, kt = console.group, Mt = console.groupCollapsed, Lt = console.groupEnd;
|
|
534
|
-
var e = {
|
|
535
|
-
configurable: !0,
|
|
536
|
-
enumerable: !0,
|
|
537
|
-
value: m,
|
|
538
|
-
writable: !0
|
|
539
|
-
};
|
|
540
|
-
Object.defineProperties(console, {
|
|
541
|
-
info: e,
|
|
542
|
-
log: e,
|
|
543
|
-
warn: e,
|
|
544
|
-
error: e,
|
|
545
|
-
group: e,
|
|
546
|
-
groupCollapsed: e,
|
|
547
|
-
groupEnd: e
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
Se++;
|
|
551
|
-
}
|
|
552
|
-
function D() {
|
|
553
|
-
if (Se--, Se === 0) {
|
|
554
|
-
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
555
|
-
Object.defineProperties(console, {
|
|
556
|
-
log: y({}, e, { value: Le }),
|
|
557
|
-
info: y({}, e, { value: Ae }),
|
|
558
|
-
warn: y({}, e, { value: We }),
|
|
559
|
-
error: y({}, e, { value: Ce }),
|
|
560
|
-
group: y({}, e, { value: kt }),
|
|
561
|
-
groupCollapsed: y({}, e, { value: Mt }),
|
|
562
|
-
groupEnd: y({}, e, { value: Lt })
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
0 > Se && console.error(
|
|
566
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
567
|
-
);
|
|
568
|
-
}
|
|
569
|
-
function x(e) {
|
|
570
|
-
if (at === void 0)
|
|
571
|
-
try {
|
|
572
|
-
throw Error();
|
|
573
|
-
} catch (f) {
|
|
574
|
-
var u = f.stack.trim().match(/\n( *(at )?)/);
|
|
575
|
-
at = u && u[1] || "", Dt = -1 < f.stack.indexOf(`
|
|
576
|
-
at`) ? " (<anonymous>)" : -1 < f.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
577
|
-
}
|
|
578
|
-
return `
|
|
579
|
-
` + at + e + Dt;
|
|
580
|
-
}
|
|
581
|
-
function V(e, u) {
|
|
582
|
-
if (!e || ct) return "";
|
|
583
|
-
var f = ft.get(e);
|
|
584
|
-
if (f !== void 0) return f;
|
|
585
|
-
ct = !0, f = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
586
|
-
var E = null;
|
|
587
|
-
E = N.H, N.H = null, _();
|
|
588
|
-
try {
|
|
589
|
-
var b = {
|
|
590
|
-
DetermineComponentFrameRoot: function() {
|
|
591
|
-
try {
|
|
592
|
-
if (u) {
|
|
593
|
-
var Pe = function() {
|
|
594
|
-
throw Error();
|
|
595
|
-
};
|
|
596
|
-
if (Object.defineProperty(Pe.prototype, "props", {
|
|
597
|
-
set: function() {
|
|
598
|
-
throw Error();
|
|
599
|
-
}
|
|
600
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
601
|
-
try {
|
|
602
|
-
Reflect.construct(Pe, []);
|
|
603
|
-
} catch (ke) {
|
|
604
|
-
var Ze = ke;
|
|
605
|
-
}
|
|
606
|
-
Reflect.construct(e, [], Pe);
|
|
607
|
-
} else {
|
|
608
|
-
try {
|
|
609
|
-
Pe.call();
|
|
610
|
-
} catch (ke) {
|
|
611
|
-
Ze = ke;
|
|
612
|
-
}
|
|
613
|
-
e.call(Pe.prototype);
|
|
614
|
-
}
|
|
615
|
-
} else {
|
|
616
|
-
try {
|
|
617
|
-
throw Error();
|
|
618
|
-
} catch (ke) {
|
|
619
|
-
Ze = ke;
|
|
620
|
-
}
|
|
621
|
-
(Pe = e()) && typeof Pe.catch == "function" && Pe.catch(function() {
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
} catch (ke) {
|
|
625
|
-
if (ke && Ze && typeof ke.stack == "string")
|
|
626
|
-
return [ke.stack, Ze.stack];
|
|
627
|
-
}
|
|
628
|
-
return [null, null];
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
b.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
632
|
-
var j = Object.getOwnPropertyDescriptor(
|
|
633
|
-
b.DetermineComponentFrameRoot,
|
|
634
|
-
"name"
|
|
635
|
-
);
|
|
636
|
-
j && j.configurable && Object.defineProperty(
|
|
637
|
-
b.DetermineComponentFrameRoot,
|
|
638
|
-
"name",
|
|
639
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
640
|
-
);
|
|
641
|
-
var O = b.DetermineComponentFrameRoot(), ee = O[0], J = O[1];
|
|
642
|
-
if (ee && J) {
|
|
643
|
-
var ue = ee.split(`
|
|
644
|
-
`), me = J.split(`
|
|
645
|
-
`);
|
|
646
|
-
for (O = j = 0; j < ue.length && !ue[j].includes(
|
|
647
|
-
"DetermineComponentFrameRoot"
|
|
648
|
-
); )
|
|
649
|
-
j++;
|
|
650
|
-
for (; O < me.length && !me[O].includes(
|
|
651
|
-
"DetermineComponentFrameRoot"
|
|
652
|
-
); )
|
|
653
|
-
O++;
|
|
654
|
-
if (j === ue.length || O === me.length)
|
|
655
|
-
for (j = ue.length - 1, O = me.length - 1; 1 <= j && 0 <= O && ue[j] !== me[O]; )
|
|
656
|
-
O--;
|
|
657
|
-
for (; 1 <= j && 0 <= O; j--, O--)
|
|
658
|
-
if (ue[j] !== me[O]) {
|
|
659
|
-
if (j !== 1 || O !== 1)
|
|
660
|
-
do
|
|
661
|
-
if (j--, O--, 0 > O || ue[j] !== me[O]) {
|
|
662
|
-
var Ye = `
|
|
663
|
-
` + ue[j].replace(
|
|
664
|
-
" at new ",
|
|
665
|
-
" at "
|
|
666
|
-
);
|
|
667
|
-
return e.displayName && Ye.includes("<anonymous>") && (Ye = Ye.replace("<anonymous>", e.displayName)), typeof e == "function" && ft.set(e, Ye), Ye;
|
|
668
|
-
}
|
|
669
|
-
while (1 <= j && 0 <= O);
|
|
670
|
-
break;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
} finally {
|
|
674
|
-
ct = !1, N.H = E, D(), Error.prepareStackTrace = f;
|
|
675
|
-
}
|
|
676
|
-
return ue = (ue = e ? e.displayName || e.name : "") ? x(ue) : "", typeof e == "function" && ft.set(e, ue), ue;
|
|
677
|
-
}
|
|
678
|
-
function R(e) {
|
|
679
|
-
if (e == null) return "";
|
|
680
|
-
if (typeof e == "function") {
|
|
681
|
-
var u = e.prototype;
|
|
682
|
-
return V(
|
|
683
|
-
e,
|
|
684
|
-
!(!u || !u.isReactComponent)
|
|
685
|
-
);
|
|
686
|
-
}
|
|
687
|
-
if (typeof e == "string") return x(e);
|
|
688
|
-
switch (e) {
|
|
689
|
-
case ne:
|
|
690
|
-
return x("Suspense");
|
|
691
|
-
case Z:
|
|
692
|
-
return x("SuspenseList");
|
|
693
|
-
}
|
|
694
|
-
if (typeof e == "object")
|
|
695
|
-
switch (e.$$typeof) {
|
|
696
|
-
case F:
|
|
697
|
-
return e = V(e.render, !1), e;
|
|
698
|
-
case ce:
|
|
699
|
-
return R(e.type);
|
|
700
|
-
case ge:
|
|
701
|
-
u = e._payload, e = e._init;
|
|
702
|
-
try {
|
|
703
|
-
return R(e(u));
|
|
704
|
-
} catch {
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return "";
|
|
708
|
-
}
|
|
709
|
-
function fe() {
|
|
710
|
-
var e = N.A;
|
|
711
|
-
return e === null ? null : e.getOwner();
|
|
712
|
-
}
|
|
713
|
-
function z(e) {
|
|
714
|
-
if (Te.call(e, "key")) {
|
|
715
|
-
var u = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
716
|
-
if (u && u.isReactWarning) return !1;
|
|
717
|
-
}
|
|
718
|
-
return e.key !== void 0;
|
|
719
|
-
}
|
|
720
|
-
function W(e, u) {
|
|
721
|
-
function f() {
|
|
722
|
-
Ut || (Ut = !0, console.error(
|
|
723
|
-
"%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)",
|
|
724
|
-
u
|
|
725
|
-
));
|
|
726
|
-
}
|
|
727
|
-
f.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
728
|
-
get: f,
|
|
729
|
-
configurable: !0
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
|
-
function T() {
|
|
733
|
-
var e = p(this.type);
|
|
734
|
-
return $t[e] || ($t[e] = !0, console.error(
|
|
735
|
-
"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."
|
|
736
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
737
|
-
}
|
|
738
|
-
function $(e, u, f, E, b, j) {
|
|
739
|
-
return f = j.ref, e = {
|
|
740
|
-
$$typeof: k,
|
|
741
|
-
type: e,
|
|
742
|
-
key: u,
|
|
743
|
-
props: j,
|
|
744
|
-
_owner: b
|
|
745
|
-
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(e, "ref", {
|
|
746
|
-
enumerable: !1,
|
|
747
|
-
get: T
|
|
748
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
749
|
-
configurable: !1,
|
|
750
|
-
enumerable: !1,
|
|
751
|
-
writable: !0,
|
|
752
|
-
value: 0
|
|
753
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
754
|
-
configurable: !1,
|
|
755
|
-
enumerable: !1,
|
|
756
|
-
writable: !0,
|
|
757
|
-
value: null
|
|
758
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
759
|
-
}
|
|
760
|
-
function ie(e, u) {
|
|
761
|
-
return u = $(
|
|
762
|
-
e.type,
|
|
763
|
-
u,
|
|
764
|
-
void 0,
|
|
765
|
-
void 0,
|
|
766
|
-
e._owner,
|
|
767
|
-
e.props
|
|
768
|
-
), u._store.validated = e._store.validated, u;
|
|
769
|
-
}
|
|
770
|
-
function Y(e, u) {
|
|
771
|
-
if (typeof e == "object" && e && e.$$typeof !== qn) {
|
|
772
|
-
if (K(e))
|
|
773
|
-
for (var f = 0; f < e.length; f++) {
|
|
774
|
-
var E = e[f];
|
|
775
|
-
B(E) && re(E, u);
|
|
776
|
-
}
|
|
777
|
-
else if (B(e))
|
|
778
|
-
e._store && (e._store.validated = 1);
|
|
779
|
-
else if (f = o(e), typeof f == "function" && f !== e.entries && (f = f.call(e), f !== e))
|
|
780
|
-
for (; !(e = f.next()).done; )
|
|
781
|
-
B(e.value) && re(e.value, u);
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
function B(e) {
|
|
785
|
-
return typeof e == "object" && e !== null && e.$$typeof === k;
|
|
786
|
-
}
|
|
787
|
-
function re(e, u) {
|
|
788
|
-
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, u = le(u), !Wt[u])) {
|
|
789
|
-
Wt[u] = !0;
|
|
790
|
-
var f = "";
|
|
791
|
-
e && e._owner != null && e._owner !== fe() && (f = null, typeof e._owner.tag == "number" ? f = p(e._owner.type) : typeof e._owner.name == "string" && (f = e._owner.name), f = " It was passed a child from " + f + ".");
|
|
792
|
-
var E = N.getCurrentStack;
|
|
793
|
-
N.getCurrentStack = function() {
|
|
794
|
-
var b = R(e.type);
|
|
795
|
-
return E && (b += E() || ""), b;
|
|
796
|
-
}, console.error(
|
|
797
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
798
|
-
u,
|
|
799
|
-
f
|
|
800
|
-
), N.getCurrentStack = E;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
function le(e) {
|
|
804
|
-
var u = "", f = fe();
|
|
805
|
-
return f && (f = p(f.type)) && (u = `
|
|
806
|
-
|
|
807
|
-
Check the render method of \`` + f + "`."), u || (e = p(e)) && (u = `
|
|
808
|
-
|
|
809
|
-
Check the top-level render call using <` + e + ">."), u;
|
|
810
|
-
}
|
|
811
|
-
function de(e) {
|
|
812
|
-
var u = { "=": "=0", ":": "=2" };
|
|
813
|
-
return "$" + e.replace(/[=:]/g, function(f) {
|
|
814
|
-
return u[f];
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
function oe(e, u) {
|
|
818
|
-
return typeof e == "object" && e !== null && e.key != null ? (g(e.key), de("" + e.key)) : u.toString(36);
|
|
819
|
-
}
|
|
820
|
-
function he() {
|
|
821
|
-
}
|
|
822
|
-
function _e(e) {
|
|
823
|
-
switch (e.status) {
|
|
824
|
-
case "fulfilled":
|
|
825
|
-
return e.value;
|
|
826
|
-
case "rejected":
|
|
827
|
-
throw e.reason;
|
|
828
|
-
default:
|
|
829
|
-
switch (typeof e.status == "string" ? e.then(he, he) : (e.status = "pending", e.then(
|
|
830
|
-
function(u) {
|
|
831
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = u);
|
|
832
|
-
},
|
|
833
|
-
function(u) {
|
|
834
|
-
e.status === "pending" && (e.status = "rejected", e.reason = u);
|
|
835
|
-
}
|
|
836
|
-
)), e.status) {
|
|
837
|
-
case "fulfilled":
|
|
838
|
-
return e.value;
|
|
839
|
-
case "rejected":
|
|
840
|
-
throw e.reason;
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
throw e;
|
|
844
|
-
}
|
|
845
|
-
function Ee(e, u, f, E, b) {
|
|
846
|
-
var j = typeof e;
|
|
847
|
-
(j === "undefined" || j === "boolean") && (e = null);
|
|
848
|
-
var O = !1;
|
|
849
|
-
if (e === null) O = !0;
|
|
850
|
-
else
|
|
851
|
-
switch (j) {
|
|
852
|
-
case "bigint":
|
|
853
|
-
case "string":
|
|
854
|
-
case "number":
|
|
855
|
-
O = !0;
|
|
856
|
-
break;
|
|
857
|
-
case "object":
|
|
858
|
-
switch (e.$$typeof) {
|
|
859
|
-
case k:
|
|
860
|
-
case pe:
|
|
861
|
-
O = !0;
|
|
862
|
-
break;
|
|
863
|
-
case ge:
|
|
864
|
-
return O = e._init, Ee(
|
|
865
|
-
O(e._payload),
|
|
866
|
-
u,
|
|
867
|
-
f,
|
|
868
|
-
E,
|
|
869
|
-
b
|
|
870
|
-
);
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
if (O) {
|
|
874
|
-
O = e, b = b(O);
|
|
875
|
-
var ee = E === "" ? "." + oe(O, 0) : E;
|
|
876
|
-
return K(b) ? (f = "", ee != null && (f = ee.replace(Vt, "$&/") + "/"), Ee(b, u, f, "", function(ue) {
|
|
877
|
-
return ue;
|
|
878
|
-
})) : b != null && (B(b) && (b.key != null && (O && O.key === b.key || g(b.key)), f = ie(
|
|
879
|
-
b,
|
|
880
|
-
f + (b.key == null || O && O.key === b.key ? "" : ("" + b.key).replace(
|
|
881
|
-
Vt,
|
|
882
|
-
"$&/"
|
|
883
|
-
) + "/") + ee
|
|
884
|
-
), E !== "" && O != null && B(O) && O.key == null && O._store && !O._store.validated && (f._store.validated = 2), b = f), u.push(b)), 1;
|
|
885
|
-
}
|
|
886
|
-
if (O = 0, ee = E === "" ? "." : E + ":", K(e))
|
|
887
|
-
for (var J = 0; J < e.length; J++)
|
|
888
|
-
E = e[J], j = ee + oe(E, J), O += Ee(
|
|
889
|
-
E,
|
|
890
|
-
u,
|
|
891
|
-
f,
|
|
892
|
-
j,
|
|
893
|
-
b
|
|
894
|
-
);
|
|
895
|
-
else if (J = o(e), typeof J == "function")
|
|
896
|
-
for (J === e.entries && (Yt || console.warn(
|
|
897
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
898
|
-
), Yt = !0), e = J.call(e), J = 0; !(E = e.next()).done; )
|
|
899
|
-
E = E.value, j = ee + oe(E, J++), O += Ee(
|
|
900
|
-
E,
|
|
901
|
-
u,
|
|
902
|
-
f,
|
|
903
|
-
j,
|
|
904
|
-
b
|
|
905
|
-
);
|
|
906
|
-
else if (j === "object") {
|
|
907
|
-
if (typeof e.then == "function")
|
|
908
|
-
return Ee(
|
|
909
|
-
_e(e),
|
|
910
|
-
u,
|
|
911
|
-
f,
|
|
912
|
-
E,
|
|
913
|
-
b
|
|
914
|
-
);
|
|
915
|
-
throw u = String(e), Error(
|
|
916
|
-
"Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead."
|
|
917
|
-
);
|
|
918
|
-
}
|
|
919
|
-
return O;
|
|
920
|
-
}
|
|
921
|
-
function Oe(e, u, f) {
|
|
922
|
-
if (e == null) return e;
|
|
923
|
-
var E = [], b = 0;
|
|
924
|
-
return Ee(e, E, "", "", function(j) {
|
|
925
|
-
return u.call(f, j, b++);
|
|
926
|
-
}), E;
|
|
927
|
-
}
|
|
928
|
-
function be(e) {
|
|
929
|
-
if (e._status === -1) {
|
|
930
|
-
var u = e._result;
|
|
931
|
-
u = u(), u.then(
|
|
932
|
-
function(f) {
|
|
933
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = f);
|
|
934
|
-
},
|
|
935
|
-
function(f) {
|
|
936
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = f);
|
|
937
|
-
}
|
|
938
|
-
), e._status === -1 && (e._status = 0, e._result = u);
|
|
939
|
-
}
|
|
940
|
-
if (e._status === 1)
|
|
941
|
-
return u = e._result, u === void 0 && console.error(
|
|
942
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
943
|
-
|
|
944
|
-
Your code should look like:
|
|
945
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
946
|
-
|
|
947
|
-
Did you accidentally put curly braces around the import?`,
|
|
948
|
-
u
|
|
949
|
-
), "default" in u || console.error(
|
|
950
|
-
`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
951
|
-
|
|
952
|
-
Your code should look like:
|
|
953
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
954
|
-
u
|
|
955
|
-
), u.default;
|
|
956
|
-
throw e._result;
|
|
957
|
-
}
|
|
958
|
-
function G() {
|
|
959
|
-
var e = N.H;
|
|
960
|
-
return e === null && console.error(
|
|
961
|
-
`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:
|
|
962
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
963
|
-
2. You might be breaking the Rules of Hooks
|
|
964
|
-
3. You might have more than one copy of React in the same app
|
|
965
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
966
|
-
), e;
|
|
967
|
-
}
|
|
968
|
-
function a() {
|
|
969
|
-
}
|
|
970
|
-
function d(e) {
|
|
971
|
-
if (Xe === null)
|
|
972
|
-
try {
|
|
973
|
-
var u = ("require" + Math.random()).slice(0, 7);
|
|
974
|
-
Xe = (t && t[u]).call(
|
|
975
|
-
t,
|
|
976
|
-
"timers"
|
|
977
|
-
).setImmediate;
|
|
978
|
-
} catch {
|
|
979
|
-
Xe = function(E) {
|
|
980
|
-
qt === !1 && (qt = !0, typeof MessageChannel > "u" && console.error(
|
|
981
|
-
"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."
|
|
982
|
-
));
|
|
983
|
-
var b = new MessageChannel();
|
|
984
|
-
b.port1.onmessage = E, b.port2.postMessage(void 0);
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
return Xe(e);
|
|
988
|
-
}
|
|
989
|
-
function C(e) {
|
|
990
|
-
return 1 < e.length && typeof AggregateError == "function" ? new AggregateError(e) : e[0];
|
|
991
|
-
}
|
|
992
|
-
function A(e, u) {
|
|
993
|
-
u !== Qe - 1 && console.error(
|
|
994
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
995
|
-
), Qe = u;
|
|
996
|
-
}
|
|
997
|
-
function M(e, u, f) {
|
|
998
|
-
var E = N.actQueue;
|
|
999
|
-
if (E !== null)
|
|
1000
|
-
if (E.length !== 0)
|
|
1001
|
-
try {
|
|
1002
|
-
H(E), d(function() {
|
|
1003
|
-
return M(e, u, f);
|
|
1004
|
-
});
|
|
1005
|
-
return;
|
|
1006
|
-
} catch (b) {
|
|
1007
|
-
N.thrownErrors.push(b);
|
|
1008
|
-
}
|
|
1009
|
-
else N.actQueue = null;
|
|
1010
|
-
0 < N.thrownErrors.length ? (E = C(N.thrownErrors), N.thrownErrors.length = 0, f(E)) : u(e);
|
|
1011
|
-
}
|
|
1012
|
-
function H(e) {
|
|
1013
|
-
if (!lt) {
|
|
1014
|
-
lt = !0;
|
|
1015
|
-
var u = 0;
|
|
1016
|
-
try {
|
|
1017
|
-
for (; u < e.length; u++) {
|
|
1018
|
-
var f = e[u];
|
|
1019
|
-
do {
|
|
1020
|
-
N.didUsePromise = !1;
|
|
1021
|
-
var E = f(!1);
|
|
1022
|
-
if (E !== null) {
|
|
1023
|
-
if (N.didUsePromise) {
|
|
1024
|
-
e[u] = f, e.splice(0, u);
|
|
1025
|
-
return;
|
|
1026
|
-
}
|
|
1027
|
-
f = E;
|
|
1028
|
-
} else break;
|
|
1029
|
-
} while (!0);
|
|
1030
|
-
}
|
|
1031
|
-
e.length = 0;
|
|
1032
|
-
} catch (b) {
|
|
1033
|
-
e.splice(0, u + 1), N.thrownErrors.push(b);
|
|
1034
|
-
} finally {
|
|
1035
|
-
lt = !1;
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1040
|
-
var k = Symbol.for("react.transitional.element"), pe = Symbol.for("react.portal"), te = Symbol.for("react.fragment"), je = Symbol.for("react.strict_mode"), Re = Symbol.for("react.profiler"), Ne = Symbol.for("react.consumer"), q = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), ne = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), ce = Symbol.for("react.memo"), ge = Symbol.for("react.lazy"), se = Symbol.for("react.offscreen"), ae = Symbol.iterator, ye = {}, s = {
|
|
1041
|
-
isMounted: function() {
|
|
1042
|
-
return !1;
|
|
1043
|
-
},
|
|
1044
|
-
enqueueForceUpdate: function(e) {
|
|
1045
|
-
i(e, "forceUpdate");
|
|
1046
|
-
},
|
|
1047
|
-
enqueueReplaceState: function(e) {
|
|
1048
|
-
i(e, "replaceState");
|
|
1049
|
-
},
|
|
1050
|
-
enqueueSetState: function(e) {
|
|
1051
|
-
i(e, "setState");
|
|
1052
|
-
}
|
|
1053
|
-
}, y = Object.assign, w = {};
|
|
1054
|
-
Object.freeze(w), c.prototype.isReactComponent = {}, c.prototype.setState = function(e, u) {
|
|
1055
|
-
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
1056
|
-
throw Error(
|
|
1057
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
1058
|
-
);
|
|
1059
|
-
this.updater.enqueueSetState(this, e, u, "setState");
|
|
1060
|
-
}, c.prototype.forceUpdate = function(e) {
|
|
1061
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
1062
|
-
};
|
|
1063
|
-
var P = {
|
|
1064
|
-
isMounted: [
|
|
1065
|
-
"isMounted",
|
|
1066
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1067
|
-
],
|
|
1068
|
-
replaceState: [
|
|
1069
|
-
"replaceState",
|
|
1070
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1071
|
-
]
|
|
1072
|
-
}, Q;
|
|
1073
|
-
for (Q in P)
|
|
1074
|
-
P.hasOwnProperty(Q) && r(Q, P[Q]);
|
|
1075
|
-
l.prototype = c.prototype, P = h.prototype = new l(), P.constructor = h, y(P, c.prototype), P.isPureReactComponent = !0;
|
|
1076
|
-
var K = Array.isArray, L = Symbol.for("react.client.reference"), N = {
|
|
1077
|
-
H: null,
|
|
1078
|
-
A: null,
|
|
1079
|
-
T: null,
|
|
1080
|
-
S: null,
|
|
1081
|
-
actQueue: null,
|
|
1082
|
-
isBatchingLegacy: !1,
|
|
1083
|
-
didScheduleLegacyUpdate: !1,
|
|
1084
|
-
didUsePromise: !1,
|
|
1085
|
-
thrownErrors: [],
|
|
1086
|
-
getCurrentStack: null
|
|
1087
|
-
}, Te = Object.prototype.hasOwnProperty, ve = Symbol.for("react.client.reference"), Se = 0, Le, Ae, We, Ce, kt, Mt, Lt;
|
|
1088
|
-
m.__reactDisabledLog = !0;
|
|
1089
|
-
var at, Dt, ct = !1, ft = new (typeof WeakMap == "function" ? WeakMap : Map)(), qn = Symbol.for("react.client.reference"), Ut, It, $t = {}, Wt = {}, Yt = !1, Vt = /\/+/g, Ht = typeof reportError == "function" ? reportError : function(e) {
|
|
1090
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
1091
|
-
var u = new window.ErrorEvent("error", {
|
|
1092
|
-
bubbles: !0,
|
|
1093
|
-
cancelable: !0,
|
|
1094
|
-
message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
|
|
1095
|
-
error: e
|
|
1096
|
-
});
|
|
1097
|
-
if (!window.dispatchEvent(u)) return;
|
|
1098
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
1099
|
-
process.emit("uncaughtException", e);
|
|
1100
|
-
return;
|
|
1101
|
-
}
|
|
1102
|
-
console.error(e);
|
|
1103
|
-
}, qt = !1, Xe = null, Qe = 0, Je = !1, lt = !1, Ft = typeof queueMicrotask == "function" ? function(e) {
|
|
1104
|
-
queueMicrotask(function() {
|
|
1105
|
-
return queueMicrotask(e);
|
|
1106
|
-
});
|
|
1107
|
-
} : d;
|
|
1108
|
-
n.Children = {
|
|
1109
|
-
map: Oe,
|
|
1110
|
-
forEach: function(e, u, f) {
|
|
1111
|
-
Oe(
|
|
1112
|
-
e,
|
|
1113
|
-
function() {
|
|
1114
|
-
u.apply(this, arguments);
|
|
1115
|
-
},
|
|
1116
|
-
f
|
|
1117
|
-
);
|
|
1118
|
-
},
|
|
1119
|
-
count: function(e) {
|
|
1120
|
-
var u = 0;
|
|
1121
|
-
return Oe(e, function() {
|
|
1122
|
-
u++;
|
|
1123
|
-
}), u;
|
|
1124
|
-
},
|
|
1125
|
-
toArray: function(e) {
|
|
1126
|
-
return Oe(e, function(u) {
|
|
1127
|
-
return u;
|
|
1128
|
-
}) || [];
|
|
1129
|
-
},
|
|
1130
|
-
only: function(e) {
|
|
1131
|
-
if (!B(e))
|
|
1132
|
-
throw Error(
|
|
1133
|
-
"React.Children.only expected to receive a single React element child."
|
|
1134
|
-
);
|
|
1135
|
-
return e;
|
|
1136
|
-
}
|
|
1137
|
-
}, n.Component = c, n.Fragment = te, n.Profiler = Re, n.PureComponent = h, n.StrictMode = je, n.Suspense = ne, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = N, n.act = function(e) {
|
|
1138
|
-
var u = N.actQueue, f = Qe;
|
|
1139
|
-
Qe++;
|
|
1140
|
-
var E = N.actQueue = u !== null ? u : [], b = !1;
|
|
1141
|
-
try {
|
|
1142
|
-
var j = e();
|
|
1143
|
-
} catch (J) {
|
|
1144
|
-
N.thrownErrors.push(J);
|
|
1145
|
-
}
|
|
1146
|
-
if (0 < N.thrownErrors.length)
|
|
1147
|
-
throw A(u, f), e = C(N.thrownErrors), N.thrownErrors.length = 0, e;
|
|
1148
|
-
if (j !== null && typeof j == "object" && typeof j.then == "function") {
|
|
1149
|
-
var O = j;
|
|
1150
|
-
return Ft(function() {
|
|
1151
|
-
b || Je || (Je = !0, console.error(
|
|
1152
|
-
"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 () => ...);"
|
|
1153
|
-
));
|
|
1154
|
-
}), {
|
|
1155
|
-
then: function(J, ue) {
|
|
1156
|
-
b = !0, O.then(
|
|
1157
|
-
function(me) {
|
|
1158
|
-
if (A(u, f), f === 0) {
|
|
1159
|
-
try {
|
|
1160
|
-
H(E), d(function() {
|
|
1161
|
-
return M(
|
|
1162
|
-
me,
|
|
1163
|
-
J,
|
|
1164
|
-
ue
|
|
1165
|
-
);
|
|
1166
|
-
});
|
|
1167
|
-
} catch (Pe) {
|
|
1168
|
-
N.thrownErrors.push(Pe);
|
|
1169
|
-
}
|
|
1170
|
-
if (0 < N.thrownErrors.length) {
|
|
1171
|
-
var Ye = C(
|
|
1172
|
-
N.thrownErrors
|
|
1173
|
-
);
|
|
1174
|
-
N.thrownErrors.length = 0, ue(Ye);
|
|
1175
|
-
}
|
|
1176
|
-
} else J(me);
|
|
1177
|
-
},
|
|
1178
|
-
function(me) {
|
|
1179
|
-
A(u, f), 0 < N.thrownErrors.length && (me = C(
|
|
1180
|
-
N.thrownErrors
|
|
1181
|
-
), N.thrownErrors.length = 0), ue(me);
|
|
1182
|
-
}
|
|
1183
|
-
);
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
var ee = j;
|
|
1188
|
-
if (A(u, f), f === 0 && (H(E), E.length !== 0 && Ft(function() {
|
|
1189
|
-
b || Je || (Je = !0, console.error(
|
|
1190
|
-
"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(() => ...)"
|
|
1191
|
-
));
|
|
1192
|
-
}), N.actQueue = null), 0 < N.thrownErrors.length)
|
|
1193
|
-
throw e = C(N.thrownErrors), N.thrownErrors.length = 0, e;
|
|
1194
|
-
return {
|
|
1195
|
-
then: function(J, ue) {
|
|
1196
|
-
b = !0, f === 0 ? (N.actQueue = E, d(function() {
|
|
1197
|
-
return M(
|
|
1198
|
-
ee,
|
|
1199
|
-
J,
|
|
1200
|
-
ue
|
|
1201
|
-
);
|
|
1202
|
-
})) : J(ee);
|
|
1203
|
-
}
|
|
1204
|
-
};
|
|
1205
|
-
}, n.cache = function(e) {
|
|
1206
|
-
return function() {
|
|
1207
|
-
return e.apply(null, arguments);
|
|
1208
|
-
};
|
|
1209
|
-
}, n.cloneElement = function(e, u, f) {
|
|
1210
|
-
if (e == null)
|
|
1211
|
-
throw Error(
|
|
1212
|
-
"The argument must be a React element, but you passed " + e + "."
|
|
1213
|
-
);
|
|
1214
|
-
var E = y({}, e.props), b = e.key, j = e._owner;
|
|
1215
|
-
if (u != null) {
|
|
1216
|
-
var O;
|
|
1217
|
-
e: {
|
|
1218
|
-
if (Te.call(u, "ref") && (O = Object.getOwnPropertyDescriptor(
|
|
1219
|
-
u,
|
|
1220
|
-
"ref"
|
|
1221
|
-
).get) && O.isReactWarning) {
|
|
1222
|
-
O = !1;
|
|
1223
|
-
break e;
|
|
1224
|
-
}
|
|
1225
|
-
O = u.ref !== void 0;
|
|
1226
|
-
}
|
|
1227
|
-
O && (j = fe()), z(u) && (g(u.key), b = "" + u.key);
|
|
1228
|
-
for (ee in u)
|
|
1229
|
-
!Te.call(u, ee) || ee === "key" || ee === "__self" || ee === "__source" || ee === "ref" && u.ref === void 0 || (E[ee] = u[ee]);
|
|
1230
|
-
}
|
|
1231
|
-
var ee = arguments.length - 2;
|
|
1232
|
-
if (ee === 1) E.children = f;
|
|
1233
|
-
else if (1 < ee) {
|
|
1234
|
-
O = Array(ee);
|
|
1235
|
-
for (var J = 0; J < ee; J++)
|
|
1236
|
-
O[J] = arguments[J + 2];
|
|
1237
|
-
E.children = O;
|
|
1238
|
-
}
|
|
1239
|
-
for (E = $(e.type, b, void 0, void 0, j, E), b = 2; b < arguments.length; b++)
|
|
1240
|
-
Y(arguments[b], E.type);
|
|
1241
|
-
return E;
|
|
1242
|
-
}, n.createContext = function(e) {
|
|
1243
|
-
return e = {
|
|
1244
|
-
$$typeof: q,
|
|
1245
|
-
_currentValue: e,
|
|
1246
|
-
_currentValue2: e,
|
|
1247
|
-
_threadCount: 0,
|
|
1248
|
-
Provider: null,
|
|
1249
|
-
Consumer: null
|
|
1250
|
-
}, e.Provider = e, e.Consumer = {
|
|
1251
|
-
$$typeof: Ne,
|
|
1252
|
-
_context: e
|
|
1253
|
-
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
1254
|
-
}, n.createElement = function(e, u, f) {
|
|
1255
|
-
if (v(e))
|
|
1256
|
-
for (var E = 2; E < arguments.length; E++)
|
|
1257
|
-
Y(arguments[E], e);
|
|
1258
|
-
else {
|
|
1259
|
-
if (E = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null) var b = "null";
|
|
1260
|
-
else
|
|
1261
|
-
K(e) ? b = "array" : e !== void 0 && e.$$typeof === k ? (b = "<" + (p(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e;
|
|
1262
|
-
console.error(
|
|
1263
|
-
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
1264
|
-
b,
|
|
1265
|
-
E
|
|
1266
|
-
);
|
|
1267
|
-
}
|
|
1268
|
-
var j;
|
|
1269
|
-
if (E = {}, b = null, u != null)
|
|
1270
|
-
for (j in It || !("__self" in u) || "key" in u || (It = !0, console.warn(
|
|
1271
|
-
"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"
|
|
1272
|
-
)), z(u) && (g(u.key), b = "" + u.key), u)
|
|
1273
|
-
Te.call(u, j) && j !== "key" && j !== "__self" && j !== "__source" && (E[j] = u[j]);
|
|
1274
|
-
var O = arguments.length - 2;
|
|
1275
|
-
if (O === 1) E.children = f;
|
|
1276
|
-
else if (1 < O) {
|
|
1277
|
-
for (var ee = Array(O), J = 0; J < O; J++)
|
|
1278
|
-
ee[J] = arguments[J + 2];
|
|
1279
|
-
Object.freeze && Object.freeze(ee), E.children = ee;
|
|
1280
|
-
}
|
|
1281
|
-
if (e && e.defaultProps)
|
|
1282
|
-
for (j in O = e.defaultProps, O)
|
|
1283
|
-
E[j] === void 0 && (E[j] = O[j]);
|
|
1284
|
-
return b && W(
|
|
1285
|
-
E,
|
|
1286
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1287
|
-
), $(e, b, void 0, void 0, fe(), E);
|
|
1288
|
-
}, n.createRef = function() {
|
|
1289
|
-
var e = { current: null };
|
|
1290
|
-
return Object.seal(e), e;
|
|
1291
|
-
}, n.forwardRef = function(e) {
|
|
1292
|
-
e != null && e.$$typeof === ce ? console.error(
|
|
1293
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1294
|
-
) : typeof e != "function" ? console.error(
|
|
1295
|
-
"forwardRef requires a render function but was given %s.",
|
|
1296
|
-
e === null ? "null" : typeof e
|
|
1297
|
-
) : e.length !== 0 && e.length !== 2 && console.error(
|
|
1298
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1299
|
-
e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1300
|
-
), e != null && e.defaultProps != null && console.error(
|
|
1301
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1302
|
-
);
|
|
1303
|
-
var u = { $$typeof: F, render: e }, f;
|
|
1304
|
-
return Object.defineProperty(u, "displayName", {
|
|
1305
|
-
enumerable: !1,
|
|
1306
|
-
configurable: !0,
|
|
1307
|
-
get: function() {
|
|
1308
|
-
return f;
|
|
1309
|
-
},
|
|
1310
|
-
set: function(E) {
|
|
1311
|
-
f = E, e.name || e.displayName || (Object.defineProperty(e, "name", { value: E }), e.displayName = E);
|
|
1312
|
-
}
|
|
1313
|
-
}), u;
|
|
1314
|
-
}, n.isValidElement = B, n.lazy = function(e) {
|
|
1315
|
-
return {
|
|
1316
|
-
$$typeof: ge,
|
|
1317
|
-
_payload: { _status: -1, _result: e },
|
|
1318
|
-
_init: be
|
|
1319
|
-
};
|
|
1320
|
-
}, n.memo = function(e, u) {
|
|
1321
|
-
v(e) || console.error(
|
|
1322
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1323
|
-
e === null ? "null" : typeof e
|
|
1324
|
-
), u = {
|
|
1325
|
-
$$typeof: ce,
|
|
1326
|
-
type: e,
|
|
1327
|
-
compare: u === void 0 ? null : u
|
|
1328
|
-
};
|
|
1329
|
-
var f;
|
|
1330
|
-
return Object.defineProperty(u, "displayName", {
|
|
1331
|
-
enumerable: !1,
|
|
1332
|
-
configurable: !0,
|
|
1333
|
-
get: function() {
|
|
1334
|
-
return f;
|
|
1335
|
-
},
|
|
1336
|
-
set: function(E) {
|
|
1337
|
-
f = E, e.name || e.displayName || (Object.defineProperty(e, "name", { value: E }), e.displayName = E);
|
|
1338
|
-
}
|
|
1339
|
-
}), u;
|
|
1340
|
-
}, n.startTransition = function(e) {
|
|
1341
|
-
var u = N.T, f = {};
|
|
1342
|
-
N.T = f, f._updatedFibers = /* @__PURE__ */ new Set();
|
|
1343
|
-
try {
|
|
1344
|
-
var E = e(), b = N.S;
|
|
1345
|
-
b !== null && b(f, E), typeof E == "object" && E !== null && typeof E.then == "function" && E.then(a, Ht);
|
|
1346
|
-
} catch (j) {
|
|
1347
|
-
Ht(j);
|
|
1348
|
-
} finally {
|
|
1349
|
-
u === null && f._updatedFibers && (e = f._updatedFibers.size, f._updatedFibers.clear(), 10 < e && console.warn(
|
|
1350
|
-
"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."
|
|
1351
|
-
)), N.T = u;
|
|
1352
|
-
}
|
|
1353
|
-
}, n.unstable_useCacheRefresh = function() {
|
|
1354
|
-
return G().useCacheRefresh();
|
|
1355
|
-
}, n.use = function(e) {
|
|
1356
|
-
return G().use(e);
|
|
1357
|
-
}, n.useActionState = function(e, u, f) {
|
|
1358
|
-
return G().useActionState(
|
|
1359
|
-
e,
|
|
1360
|
-
u,
|
|
1361
|
-
f
|
|
1362
|
-
);
|
|
1363
|
-
}, n.useCallback = function(e, u) {
|
|
1364
|
-
return G().useCallback(e, u);
|
|
1365
|
-
}, n.useContext = function(e) {
|
|
1366
|
-
var u = G();
|
|
1367
|
-
return e.$$typeof === Ne && console.error(
|
|
1368
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1369
|
-
), u.useContext(e);
|
|
1370
|
-
}, n.useDebugValue = function(e, u) {
|
|
1371
|
-
return G().useDebugValue(e, u);
|
|
1372
|
-
}, n.useDeferredValue = function(e, u) {
|
|
1373
|
-
return G().useDeferredValue(e, u);
|
|
1374
|
-
}, n.useEffect = function(e, u) {
|
|
1375
|
-
return G().useEffect(e, u);
|
|
1376
|
-
}, n.useId = function() {
|
|
1377
|
-
return G().useId();
|
|
1378
|
-
}, n.useImperativeHandle = function(e, u, f) {
|
|
1379
|
-
return G().useImperativeHandle(e, u, f);
|
|
1380
|
-
}, n.useInsertionEffect = function(e, u) {
|
|
1381
|
-
return G().useInsertionEffect(e, u);
|
|
1382
|
-
}, n.useLayoutEffect = function(e, u) {
|
|
1383
|
-
return G().useLayoutEffect(e, u);
|
|
1384
|
-
}, n.useMemo = function(e, u) {
|
|
1385
|
-
return G().useMemo(e, u);
|
|
1386
|
-
}, n.useOptimistic = function(e, u) {
|
|
1387
|
-
return G().useOptimistic(e, u);
|
|
1388
|
-
}, n.useReducer = function(e, u, f) {
|
|
1389
|
-
return G().useReducer(e, u, f);
|
|
1390
|
-
}, n.useRef = function(e) {
|
|
1391
|
-
return G().useRef(e);
|
|
1392
|
-
}, n.useState = function(e) {
|
|
1393
|
-
return G().useState(e);
|
|
1394
|
-
}, n.useSyncExternalStore = function(e, u, f) {
|
|
1395
|
-
return G().useSyncExternalStore(
|
|
1396
|
-
e,
|
|
1397
|
-
u,
|
|
1398
|
-
f
|
|
1399
|
-
);
|
|
1400
|
-
}, n.useTransition = function() {
|
|
1401
|
-
return G().useTransition();
|
|
1402
|
-
}, n.version = "19.0.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1403
|
-
}();
|
|
1404
|
-
}(ze, ze.exports)), ze.exports;
|
|
1405
|
-
}
|
|
1406
|
-
process.env.NODE_ENV === "production" ? wt.exports = Qn() : wt.exports = Jn();
|
|
1407
|
-
var I = wt.exports;
|
|
1408
|
-
const st = /* @__PURE__ */ Fn(I), Fr = /* @__PURE__ */ Kn({
|
|
1409
|
-
__proto__: null,
|
|
1410
|
-
default: st
|
|
1411
|
-
}, [I]);
|
|
1412
|
-
/**
|
|
1413
|
-
* @license React
|
|
1414
|
-
* react-jsx-runtime.development.js
|
|
1415
|
-
*
|
|
1416
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1417
|
-
*
|
|
1418
|
-
* This source code is licensed under the MIT license found in the
|
|
1419
|
-
* LICENSE file in the root directory of this source tree.
|
|
1420
|
-
*/
|
|
1421
|
-
var Kt;
|
|
1422
|
-
function Zn() {
|
|
1423
|
-
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1424
|
-
function t(s) {
|
|
1425
|
-
if (s == null) return null;
|
|
1426
|
-
if (typeof s == "function")
|
|
1427
|
-
return s.$$typeof === be ? null : s.displayName || s.name || null;
|
|
1428
|
-
if (typeof s == "string") return s;
|
|
1429
|
-
switch (s) {
|
|
1430
|
-
case $:
|
|
1431
|
-
return "Fragment";
|
|
1432
|
-
case T:
|
|
1433
|
-
return "Portal";
|
|
1434
|
-
case Y:
|
|
1435
|
-
return "Profiler";
|
|
1436
|
-
case ie:
|
|
1437
|
-
return "StrictMode";
|
|
1438
|
-
case de:
|
|
1439
|
-
return "Suspense";
|
|
1440
|
-
case oe:
|
|
1441
|
-
return "SuspenseList";
|
|
1442
|
-
}
|
|
1443
|
-
if (typeof s == "object")
|
|
1444
|
-
switch (typeof s.tag == "number" && console.error(
|
|
1445
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1446
|
-
), s.$$typeof) {
|
|
1447
|
-
case re:
|
|
1448
|
-
return (s.displayName || "Context") + ".Provider";
|
|
1449
|
-
case B:
|
|
1450
|
-
return (s._context.displayName || "Context") + ".Consumer";
|
|
1451
|
-
case le:
|
|
1452
|
-
var y = s.render;
|
|
1453
|
-
return s = s.displayName, s || (s = y.displayName || y.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
1454
|
-
case he:
|
|
1455
|
-
return y = s.displayName || null, y !== null ? y : t(s.type) || "Memo";
|
|
1456
|
-
case _e:
|
|
1457
|
-
y = s._payload, s = s._init;
|
|
1458
|
-
try {
|
|
1459
|
-
return t(s(y));
|
|
1460
|
-
} catch {
|
|
1461
|
-
}
|
|
1462
|
-
}
|
|
1463
|
-
return null;
|
|
1464
|
-
}
|
|
1465
|
-
function n(s) {
|
|
1466
|
-
return "" + s;
|
|
1467
|
-
}
|
|
1468
|
-
function r(s) {
|
|
1469
|
-
try {
|
|
1470
|
-
n(s);
|
|
1471
|
-
var y = !1;
|
|
1472
|
-
} catch {
|
|
1473
|
-
y = !0;
|
|
1474
|
-
}
|
|
1475
|
-
if (y) {
|
|
1476
|
-
y = console;
|
|
1477
|
-
var w = y.error, P = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
1478
|
-
return w.call(
|
|
1479
|
-
y,
|
|
1480
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1481
|
-
P
|
|
1482
|
-
), n(s);
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
function o() {
|
|
1486
|
-
}
|
|
1487
|
-
function i() {
|
|
1488
|
-
if (M === 0) {
|
|
1489
|
-
H = console.log, k = console.info, pe = console.warn, te = console.error, je = console.group, Re = console.groupCollapsed, Ne = console.groupEnd;
|
|
1490
|
-
var s = {
|
|
1491
|
-
configurable: !0,
|
|
1492
|
-
enumerable: !0,
|
|
1493
|
-
value: o,
|
|
1494
|
-
writable: !0
|
|
1495
|
-
};
|
|
1496
|
-
Object.defineProperties(console, {
|
|
1497
|
-
info: s,
|
|
1498
|
-
log: s,
|
|
1499
|
-
warn: s,
|
|
1500
|
-
error: s,
|
|
1501
|
-
group: s,
|
|
1502
|
-
groupCollapsed: s,
|
|
1503
|
-
groupEnd: s
|
|
1504
|
-
});
|
|
1505
|
-
}
|
|
1506
|
-
M++;
|
|
1507
|
-
}
|
|
1508
|
-
function c() {
|
|
1509
|
-
if (M--, M === 0) {
|
|
1510
|
-
var s = { configurable: !0, enumerable: !0, writable: !0 };
|
|
1511
|
-
Object.defineProperties(console, {
|
|
1512
|
-
log: d({}, s, { value: H }),
|
|
1513
|
-
info: d({}, s, { value: k }),
|
|
1514
|
-
warn: d({}, s, { value: pe }),
|
|
1515
|
-
error: d({}, s, { value: te }),
|
|
1516
|
-
group: d({}, s, { value: je }),
|
|
1517
|
-
groupCollapsed: d({}, s, { value: Re }),
|
|
1518
|
-
groupEnd: d({}, s, { value: Ne })
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
0 > M && console.error(
|
|
1522
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
1523
|
-
);
|
|
1524
|
-
}
|
|
1525
|
-
function l(s) {
|
|
1526
|
-
if (q === void 0)
|
|
1527
|
-
try {
|
|
1528
|
-
throw Error();
|
|
1529
|
-
} catch (w) {
|
|
1530
|
-
var y = w.stack.trim().match(/\n( *(at )?)/);
|
|
1531
|
-
q = y && y[1] || "", F = -1 < w.stack.indexOf(`
|
|
1532
|
-
at`) ? " (<anonymous>)" : -1 < w.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
1533
|
-
}
|
|
1534
|
-
return `
|
|
1535
|
-
` + q + s + F;
|
|
1536
|
-
}
|
|
1537
|
-
function h(s, y) {
|
|
1538
|
-
if (!s || ne) return "";
|
|
1539
|
-
var w = Z.get(s);
|
|
1540
|
-
if (w !== void 0) return w;
|
|
1541
|
-
ne = !0, w = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
1542
|
-
var P = null;
|
|
1543
|
-
P = G.H, G.H = null, i();
|
|
1544
|
-
try {
|
|
1545
|
-
var Q = {
|
|
1546
|
-
DetermineComponentFrameRoot: function() {
|
|
1547
|
-
try {
|
|
1548
|
-
if (y) {
|
|
1549
|
-
var Ae = function() {
|
|
1550
|
-
throw Error();
|
|
1551
|
-
};
|
|
1552
|
-
if (Object.defineProperty(Ae.prototype, "props", {
|
|
1553
|
-
set: function() {
|
|
1554
|
-
throw Error();
|
|
1555
|
-
}
|
|
1556
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1557
|
-
try {
|
|
1558
|
-
Reflect.construct(Ae, []);
|
|
1559
|
-
} catch (Ce) {
|
|
1560
|
-
var We = Ce;
|
|
1561
|
-
}
|
|
1562
|
-
Reflect.construct(s, [], Ae);
|
|
1563
|
-
} else {
|
|
1564
|
-
try {
|
|
1565
|
-
Ae.call();
|
|
1566
|
-
} catch (Ce) {
|
|
1567
|
-
We = Ce;
|
|
1568
|
-
}
|
|
1569
|
-
s.call(Ae.prototype);
|
|
1570
|
-
}
|
|
1571
|
-
} else {
|
|
1572
|
-
try {
|
|
1573
|
-
throw Error();
|
|
1574
|
-
} catch (Ce) {
|
|
1575
|
-
We = Ce;
|
|
1576
|
-
}
|
|
1577
|
-
(Ae = s()) && typeof Ae.catch == "function" && Ae.catch(function() {
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
} catch (Ce) {
|
|
1581
|
-
if (Ce && We && typeof Ce.stack == "string")
|
|
1582
|
-
return [Ce.stack, We.stack];
|
|
1583
|
-
}
|
|
1584
|
-
return [null, null];
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
|
-
Q.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
1588
|
-
var K = Object.getOwnPropertyDescriptor(
|
|
1589
|
-
Q.DetermineComponentFrameRoot,
|
|
1590
|
-
"name"
|
|
1591
|
-
);
|
|
1592
|
-
K && K.configurable && Object.defineProperty(
|
|
1593
|
-
Q.DetermineComponentFrameRoot,
|
|
1594
|
-
"name",
|
|
1595
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
1596
|
-
);
|
|
1597
|
-
var L = Q.DetermineComponentFrameRoot(), N = L[0], Te = L[1];
|
|
1598
|
-
if (N && Te) {
|
|
1599
|
-
var ve = N.split(`
|
|
1600
|
-
`), Se = Te.split(`
|
|
1601
|
-
`);
|
|
1602
|
-
for (L = K = 0; K < ve.length && !ve[K].includes(
|
|
1603
|
-
"DetermineComponentFrameRoot"
|
|
1604
|
-
); )
|
|
1605
|
-
K++;
|
|
1606
|
-
for (; L < Se.length && !Se[L].includes(
|
|
1607
|
-
"DetermineComponentFrameRoot"
|
|
1608
|
-
); )
|
|
1609
|
-
L++;
|
|
1610
|
-
if (K === ve.length || L === Se.length)
|
|
1611
|
-
for (K = ve.length - 1, L = Se.length - 1; 1 <= K && 0 <= L && ve[K] !== Se[L]; )
|
|
1612
|
-
L--;
|
|
1613
|
-
for (; 1 <= K && 0 <= L; K--, L--)
|
|
1614
|
-
if (ve[K] !== Se[L]) {
|
|
1615
|
-
if (K !== 1 || L !== 1)
|
|
1616
|
-
do
|
|
1617
|
-
if (K--, L--, 0 > L || ve[K] !== Se[L]) {
|
|
1618
|
-
var Le = `
|
|
1619
|
-
` + ve[K].replace(
|
|
1620
|
-
" at new ",
|
|
1621
|
-
" at "
|
|
1622
|
-
);
|
|
1623
|
-
return s.displayName && Le.includes("<anonymous>") && (Le = Le.replace("<anonymous>", s.displayName)), typeof s == "function" && Z.set(s, Le), Le;
|
|
1624
|
-
}
|
|
1625
|
-
while (1 <= K && 0 <= L);
|
|
1626
|
-
break;
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
} finally {
|
|
1630
|
-
ne = !1, G.H = P, c(), Error.prepareStackTrace = w;
|
|
1631
|
-
}
|
|
1632
|
-
return ve = (ve = s ? s.displayName || s.name : "") ? l(ve) : "", typeof s == "function" && Z.set(s, ve), ve;
|
|
1633
|
-
}
|
|
1634
|
-
function S(s) {
|
|
1635
|
-
if (s == null) return "";
|
|
1636
|
-
if (typeof s == "function") {
|
|
1637
|
-
var y = s.prototype;
|
|
1638
|
-
return h(
|
|
1639
|
-
s,
|
|
1640
|
-
!(!y || !y.isReactComponent)
|
|
1641
|
-
);
|
|
1642
|
-
}
|
|
1643
|
-
if (typeof s == "string") return l(s);
|
|
1644
|
-
switch (s) {
|
|
1645
|
-
case de:
|
|
1646
|
-
return l("Suspense");
|
|
1647
|
-
case oe:
|
|
1648
|
-
return l("SuspenseList");
|
|
1649
|
-
}
|
|
1650
|
-
if (typeof s == "object")
|
|
1651
|
-
switch (s.$$typeof) {
|
|
1652
|
-
case le:
|
|
1653
|
-
return s = h(s.render, !1), s;
|
|
1654
|
-
case he:
|
|
1655
|
-
return S(s.type);
|
|
1656
|
-
case _e:
|
|
1657
|
-
y = s._payload, s = s._init;
|
|
1658
|
-
try {
|
|
1659
|
-
return S(s(y));
|
|
1660
|
-
} catch {
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
return "";
|
|
1664
|
-
}
|
|
1665
|
-
function g() {
|
|
1666
|
-
var s = G.A;
|
|
1667
|
-
return s === null ? null : s.getOwner();
|
|
1668
|
-
}
|
|
1669
|
-
function p(s) {
|
|
1670
|
-
if (a.call(s, "key")) {
|
|
1671
|
-
var y = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
1672
|
-
if (y && y.isReactWarning) return !1;
|
|
1673
|
-
}
|
|
1674
|
-
return s.key !== void 0;
|
|
1675
|
-
}
|
|
1676
|
-
function v(s, y) {
|
|
1677
|
-
function w() {
|
|
1678
|
-
ge || (ge = !0, console.error(
|
|
1679
|
-
"%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)",
|
|
1680
|
-
y
|
|
1681
|
-
));
|
|
1682
|
-
}
|
|
1683
|
-
w.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
1684
|
-
get: w,
|
|
1685
|
-
configurable: !0
|
|
1686
|
-
});
|
|
1687
|
-
}
|
|
1688
|
-
function m() {
|
|
1689
|
-
var s = t(this.type);
|
|
1690
|
-
return se[s] || (se[s] = !0, console.error(
|
|
1691
|
-
"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."
|
|
1692
|
-
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
1693
|
-
}
|
|
1694
|
-
function _(s, y, w, P, Q, K) {
|
|
1695
|
-
return w = K.ref, s = {
|
|
1696
|
-
$$typeof: W,
|
|
1697
|
-
type: s,
|
|
1698
|
-
key: y,
|
|
1699
|
-
props: K,
|
|
1700
|
-
_owner: Q
|
|
1701
|
-
}, (w !== void 0 ? w : null) !== null ? Object.defineProperty(s, "ref", {
|
|
1702
|
-
enumerable: !1,
|
|
1703
|
-
get: m
|
|
1704
|
-
}) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
1705
|
-
configurable: !1,
|
|
1706
|
-
enumerable: !1,
|
|
1707
|
-
writable: !0,
|
|
1708
|
-
value: 0
|
|
1709
|
-
}), Object.defineProperty(s, "_debugInfo", {
|
|
1710
|
-
configurable: !1,
|
|
1711
|
-
enumerable: !1,
|
|
1712
|
-
writable: !0,
|
|
1713
|
-
value: null
|
|
1714
|
-
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
1715
|
-
}
|
|
1716
|
-
function D(s, y, w, P, Q, K) {
|
|
1717
|
-
if (typeof s == "string" || typeof s == "function" || s === $ || s === Y || s === ie || s === de || s === oe || s === Ee || typeof s == "object" && s !== null && (s.$$typeof === _e || s.$$typeof === he || s.$$typeof === re || s.$$typeof === B || s.$$typeof === le || s.$$typeof === C || s.getModuleId !== void 0)) {
|
|
1718
|
-
var L = y.children;
|
|
1719
|
-
if (L !== void 0)
|
|
1720
|
-
if (P)
|
|
1721
|
-
if (A(L)) {
|
|
1722
|
-
for (P = 0; P < L.length; P++)
|
|
1723
|
-
x(L[P], s);
|
|
1724
|
-
Object.freeze && Object.freeze(L);
|
|
1725
|
-
} else
|
|
1726
|
-
console.error(
|
|
1727
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1728
|
-
);
|
|
1729
|
-
else x(L, s);
|
|
1730
|
-
} else
|
|
1731
|
-
L = "", (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), s === null ? P = "null" : A(s) ? P = "array" : s !== void 0 && s.$$typeof === W ? (P = "<" + (t(s.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : P = typeof s, console.error(
|
|
1732
|
-
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
1733
|
-
P,
|
|
1734
|
-
L
|
|
1735
|
-
);
|
|
1736
|
-
if (a.call(y, "key")) {
|
|
1737
|
-
L = t(s);
|
|
1738
|
-
var N = Object.keys(y).filter(function(ve) {
|
|
1739
|
-
return ve !== "key";
|
|
1740
|
-
});
|
|
1741
|
-
P = 0 < N.length ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}", ae[L + P] || (N = 0 < N.length ? "{" + N.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1742
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
1743
|
-
let props = %s;
|
|
1744
|
-
<%s {...props} />
|
|
1745
|
-
React keys must be passed directly to JSX without using spread:
|
|
1746
|
-
let props = %s;
|
|
1747
|
-
<%s key={someKey} {...props} />`,
|
|
1748
|
-
P,
|
|
1749
|
-
L,
|
|
1750
|
-
N,
|
|
1751
|
-
L
|
|
1752
|
-
), ae[L + P] = !0);
|
|
1753
|
-
}
|
|
1754
|
-
if (L = null, w !== void 0 && (r(w), L = "" + w), p(y) && (r(y.key), L = "" + y.key), "key" in y) {
|
|
1755
|
-
w = {};
|
|
1756
|
-
for (var Te in y)
|
|
1757
|
-
Te !== "key" && (w[Te] = y[Te]);
|
|
1758
|
-
} else w = y;
|
|
1759
|
-
return L && v(
|
|
1760
|
-
w,
|
|
1761
|
-
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
1762
|
-
), _(s, L, K, Q, g(), w);
|
|
1763
|
-
}
|
|
1764
|
-
function x(s, y) {
|
|
1765
|
-
if (typeof s == "object" && s && s.$$typeof !== ce) {
|
|
1766
|
-
if (A(s))
|
|
1767
|
-
for (var w = 0; w < s.length; w++) {
|
|
1768
|
-
var P = s[w];
|
|
1769
|
-
V(P) && R(P, y);
|
|
1770
|
-
}
|
|
1771
|
-
else if (V(s))
|
|
1772
|
-
s._store && (s._store.validated = 1);
|
|
1773
|
-
else if (s === null || typeof s != "object" ? w = null : (w = Oe && s[Oe] || s["@@iterator"], w = typeof w == "function" ? w : null), typeof w == "function" && w !== s.entries && (w = w.call(s), w !== s))
|
|
1774
|
-
for (; !(s = w.next()).done; )
|
|
1775
|
-
V(s.value) && R(s.value, y);
|
|
1776
|
-
}
|
|
1777
|
-
}
|
|
1778
|
-
function V(s) {
|
|
1779
|
-
return typeof s == "object" && s !== null && s.$$typeof === W;
|
|
1780
|
-
}
|
|
1781
|
-
function R(s, y) {
|
|
1782
|
-
if (s._store && !s._store.validated && s.key == null && (s._store.validated = 1, y = fe(y), !ye[y])) {
|
|
1783
|
-
ye[y] = !0;
|
|
1784
|
-
var w = "";
|
|
1785
|
-
s && s._owner != null && s._owner !== g() && (w = null, typeof s._owner.tag == "number" ? w = t(s._owner.type) : typeof s._owner.name == "string" && (w = s._owner.name), w = " It was passed a child from " + w + ".");
|
|
1786
|
-
var P = G.getCurrentStack;
|
|
1787
|
-
G.getCurrentStack = function() {
|
|
1788
|
-
var Q = S(s.type);
|
|
1789
|
-
return P && (Q += P() || ""), Q;
|
|
1790
|
-
}, console.error(
|
|
1791
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
1792
|
-
y,
|
|
1793
|
-
w
|
|
1794
|
-
), G.getCurrentStack = P;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
function fe(s) {
|
|
1798
|
-
var y = "", w = g();
|
|
1799
|
-
return w && (w = t(w.type)) && (y = `
|
|
1800
|
-
|
|
1801
|
-
Check the render method of \`` + w + "`."), y || (s = t(s)) && (y = `
|
|
1802
|
-
|
|
1803
|
-
Check the top-level render call using <` + s + ">."), y;
|
|
1804
|
-
}
|
|
1805
|
-
var z = I, W = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), ie = Symbol.for("react.strict_mode"), Y = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), re = Symbol.for("react.context"), le = Symbol.for("react.forward_ref"), de = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), he = Symbol.for("react.memo"), _e = Symbol.for("react.lazy"), Ee = Symbol.for("react.offscreen"), Oe = Symbol.iterator, be = Symbol.for("react.client.reference"), G = z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, a = Object.prototype.hasOwnProperty, d = Object.assign, C = Symbol.for("react.client.reference"), A = Array.isArray, M = 0, H, k, pe, te, je, Re, Ne;
|
|
1806
|
-
o.__reactDisabledLog = !0;
|
|
1807
|
-
var q, F, ne = !1, Z = new (typeof WeakMap == "function" ? WeakMap : Map)(), ce = Symbol.for("react.client.reference"), ge, se = {}, ae = {}, ye = {};
|
|
1808
|
-
qe.Fragment = $, qe.jsx = function(s, y, w, P, Q) {
|
|
1809
|
-
return D(s, y, w, !1, P, Q);
|
|
1810
|
-
}, qe.jsxs = function(s, y, w, P, Q) {
|
|
1811
|
-
return D(s, y, w, !0, P, Q);
|
|
1812
|
-
};
|
|
1813
|
-
}()), qe;
|
|
1814
|
-
}
|
|
1815
|
-
process.env.NODE_ENV === "production" ? mt.exports = Xn() : mt.exports = Zn();
|
|
1816
|
-
var rn = mt.exports, bt = function(t, n) {
|
|
1817
|
-
return bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
|
|
1818
|
-
r.__proto__ = o;
|
|
1819
|
-
} || function(r, o) {
|
|
1820
|
-
for (var i in o) Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
|
|
1821
|
-
}, bt(t, n);
|
|
1822
|
-
};
|
|
1823
|
-
function on(t, n) {
|
|
1824
|
-
if (typeof n != "function" && n !== null)
|
|
1825
|
-
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
1826
|
-
bt(t, n);
|
|
1827
|
-
function r() {
|
|
1828
|
-
this.constructor = t;
|
|
1829
|
-
}
|
|
1830
|
-
t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
1831
|
-
}
|
|
1832
|
-
var rt = function() {
|
|
1833
|
-
return rt = Object.assign || function(n) {
|
|
1834
|
-
for (var r, o = 1, i = arguments.length; o < i; o++) {
|
|
1835
|
-
r = arguments[o];
|
|
1836
|
-
for (var c in r) Object.prototype.hasOwnProperty.call(r, c) && (n[c] = r[c]);
|
|
1837
|
-
}
|
|
1838
|
-
return n;
|
|
1839
|
-
}, rt.apply(this, arguments);
|
|
1840
|
-
};
|
|
1841
|
-
function sn(t, n) {
|
|
1842
|
-
var r = {};
|
|
1843
|
-
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && n.indexOf(o) < 0 && (r[o] = t[o]);
|
|
1844
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1845
|
-
for (var i = 0, o = Object.getOwnPropertySymbols(t); i < o.length; i++)
|
|
1846
|
-
n.indexOf(o[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[i]) && (r[o[i]] = t[o[i]]);
|
|
1847
|
-
return r;
|
|
1848
|
-
}
|
|
1849
|
-
function un(t, n, r, o) {
|
|
1850
|
-
var i = arguments.length, c = i < 3 ? n : o === null ? o = Object.getOwnPropertyDescriptor(n, r) : o, l;
|
|
1851
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") c = Reflect.decorate(t, n, r, o);
|
|
1852
|
-
else for (var h = t.length - 1; h >= 0; h--) (l = t[h]) && (c = (i < 3 ? l(c) : i > 3 ? l(n, r, c) : l(n, r)) || c);
|
|
1853
|
-
return i > 3 && c && Object.defineProperty(n, r, c), c;
|
|
1854
|
-
}
|
|
1855
|
-
function an(t, n) {
|
|
1856
|
-
return function(r, o) {
|
|
1857
|
-
n(r, o, t);
|
|
1858
|
-
};
|
|
1859
|
-
}
|
|
1860
|
-
function cn(t, n, r, o, i, c) {
|
|
1861
|
-
function l(R) {
|
|
1862
|
-
if (R !== void 0 && typeof R != "function") throw new TypeError("Function expected");
|
|
1863
|
-
return R;
|
|
1864
|
-
}
|
|
1865
|
-
for (var h = o.kind, S = h === "getter" ? "get" : h === "setter" ? "set" : "value", g = !n && t ? o.static ? t : t.prototype : null, p = n || (g ? Object.getOwnPropertyDescriptor(g, o.name) : {}), v, m = !1, _ = r.length - 1; _ >= 0; _--) {
|
|
1866
|
-
var D = {};
|
|
1867
|
-
for (var x in o) D[x] = x === "access" ? {} : o[x];
|
|
1868
|
-
for (var x in o.access) D.access[x] = o.access[x];
|
|
1869
|
-
D.addInitializer = function(R) {
|
|
1870
|
-
if (m) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
1871
|
-
c.push(l(R || null));
|
|
1872
|
-
};
|
|
1873
|
-
var V = (0, r[_])(h === "accessor" ? { get: p.get, set: p.set } : p[S], D);
|
|
1874
|
-
if (h === "accessor") {
|
|
1875
|
-
if (V === void 0) continue;
|
|
1876
|
-
if (V === null || typeof V != "object") throw new TypeError("Object expected");
|
|
1877
|
-
(v = l(V.get)) && (p.get = v), (v = l(V.set)) && (p.set = v), (v = l(V.init)) && i.unshift(v);
|
|
1878
|
-
} else (v = l(V)) && (h === "field" ? i.unshift(v) : p[S] = v);
|
|
1879
|
-
}
|
|
1880
|
-
g && Object.defineProperty(g, o.name, p), m = !0;
|
|
1881
|
-
}
|
|
1882
|
-
function fn(t, n, r) {
|
|
1883
|
-
for (var o = arguments.length > 2, i = 0; i < n.length; i++)
|
|
1884
|
-
r = o ? n[i].call(t, r) : n[i].call(t);
|
|
1885
|
-
return o ? r : void 0;
|
|
1886
|
-
}
|
|
1887
|
-
function ln(t) {
|
|
1888
|
-
return typeof t == "symbol" ? t : "".concat(t);
|
|
1889
|
-
}
|
|
1890
|
-
function dn(t, n, r) {
|
|
1891
|
-
return typeof n == "symbol" && (n = n.description ? "[".concat(n.description, "]") : ""), Object.defineProperty(t, "name", { configurable: !0, value: r ? "".concat(r, " ", n) : n });
|
|
1892
|
-
}
|
|
1893
|
-
function pn(t, n) {
|
|
1894
|
-
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(t, n);
|
|
1895
|
-
}
|
|
1896
|
-
function vn(t, n, r, o) {
|
|
1897
|
-
function i(c) {
|
|
1898
|
-
return c instanceof r ? c : new r(function(l) {
|
|
1899
|
-
l(c);
|
|
1900
|
-
});
|
|
1901
|
-
}
|
|
1902
|
-
return new (r || (r = Promise))(function(c, l) {
|
|
1903
|
-
function h(p) {
|
|
1904
|
-
try {
|
|
1905
|
-
g(o.next(p));
|
|
1906
|
-
} catch (v) {
|
|
1907
|
-
l(v);
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
function S(p) {
|
|
1911
|
-
try {
|
|
1912
|
-
g(o.throw(p));
|
|
1913
|
-
} catch (v) {
|
|
1914
|
-
l(v);
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
function g(p) {
|
|
1918
|
-
p.done ? c(p.value) : i(p.value).then(h, S);
|
|
1919
|
-
}
|
|
1920
|
-
g((o = o.apply(t, n || [])).next());
|
|
1921
|
-
});
|
|
1922
|
-
}
|
|
1923
|
-
function En(t, n) {
|
|
1924
|
-
var r = { label: 0, sent: function() {
|
|
1925
|
-
if (c[0] & 1) throw c[1];
|
|
1926
|
-
return c[1];
|
|
1927
|
-
}, trys: [], ops: [] }, o, i, c, l = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
|
|
1928
|
-
return l.next = h(0), l.throw = h(1), l.return = h(2), typeof Symbol == "function" && (l[Symbol.iterator] = function() {
|
|
1929
|
-
return this;
|
|
1930
|
-
}), l;
|
|
1931
|
-
function h(g) {
|
|
1932
|
-
return function(p) {
|
|
1933
|
-
return S([g, p]);
|
|
1934
|
-
};
|
|
1935
|
-
}
|
|
1936
|
-
function S(g) {
|
|
1937
|
-
if (o) throw new TypeError("Generator is already executing.");
|
|
1938
|
-
for (; l && (l = 0, g[0] && (r = 0)), r; ) try {
|
|
1939
|
-
if (o = 1, i && (c = g[0] & 2 ? i.return : g[0] ? i.throw || ((c = i.return) && c.call(i), 0) : i.next) && !(c = c.call(i, g[1])).done) return c;
|
|
1940
|
-
switch (i = 0, c && (g = [g[0] & 2, c.value]), g[0]) {
|
|
1941
|
-
case 0:
|
|
1942
|
-
case 1:
|
|
1943
|
-
c = g;
|
|
1944
|
-
break;
|
|
1945
|
-
case 4:
|
|
1946
|
-
return r.label++, { value: g[1], done: !1 };
|
|
1947
|
-
case 5:
|
|
1948
|
-
r.label++, i = g[1], g = [0];
|
|
1949
|
-
continue;
|
|
1950
|
-
case 7:
|
|
1951
|
-
g = r.ops.pop(), r.trys.pop();
|
|
1952
|
-
continue;
|
|
1953
|
-
default:
|
|
1954
|
-
if (c = r.trys, !(c = c.length > 0 && c[c.length - 1]) && (g[0] === 6 || g[0] === 2)) {
|
|
1955
|
-
r = 0;
|
|
1956
|
-
continue;
|
|
1957
|
-
}
|
|
1958
|
-
if (g[0] === 3 && (!c || g[1] > c[0] && g[1] < c[3])) {
|
|
1959
|
-
r.label = g[1];
|
|
1960
|
-
break;
|
|
1961
|
-
}
|
|
1962
|
-
if (g[0] === 6 && r.label < c[1]) {
|
|
1963
|
-
r.label = c[1], c = g;
|
|
1964
|
-
break;
|
|
1965
|
-
}
|
|
1966
|
-
if (c && r.label < c[2]) {
|
|
1967
|
-
r.label = c[2], r.ops.push(g);
|
|
1968
|
-
break;
|
|
1969
|
-
}
|
|
1970
|
-
c[2] && r.ops.pop(), r.trys.pop();
|
|
1971
|
-
continue;
|
|
1972
|
-
}
|
|
1973
|
-
g = n.call(t, r);
|
|
1974
|
-
} catch (p) {
|
|
1975
|
-
g = [6, p], i = 0;
|
|
1976
|
-
} finally {
|
|
1977
|
-
o = c = 0;
|
|
1978
|
-
}
|
|
1979
|
-
if (g[0] & 5) throw g[1];
|
|
1980
|
-
return { value: g[0] ? g[1] : void 0, done: !0 };
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
var ut = Object.create ? function(t, n, r, o) {
|
|
1984
|
-
o === void 0 && (o = r);
|
|
1985
|
-
var i = Object.getOwnPropertyDescriptor(n, r);
|
|
1986
|
-
(!i || ("get" in i ? !n.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
|
|
1987
|
-
return n[r];
|
|
1988
|
-
} }), Object.defineProperty(t, o, i);
|
|
1989
|
-
} : function(t, n, r, o) {
|
|
1990
|
-
o === void 0 && (o = r), t[o] = n[r];
|
|
1991
|
-
};
|
|
1992
|
-
function hn(t, n) {
|
|
1993
|
-
for (var r in t) r !== "default" && !Object.prototype.hasOwnProperty.call(n, r) && ut(n, t, r);
|
|
1994
|
-
}
|
|
1995
|
-
function ot(t) {
|
|
1996
|
-
var n = typeof Symbol == "function" && Symbol.iterator, r = n && t[n], o = 0;
|
|
1997
|
-
if (r) return r.call(t);
|
|
1998
|
-
if (t && typeof t.length == "number") return {
|
|
1999
|
-
next: function() {
|
|
2000
|
-
return t && o >= t.length && (t = void 0), { value: t && t[o++], done: !t };
|
|
2001
|
-
}
|
|
2002
|
-
};
|
|
2003
|
-
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2004
|
-
}
|
|
2005
|
-
function Nt(t, n) {
|
|
2006
|
-
var r = typeof Symbol == "function" && t[Symbol.iterator];
|
|
2007
|
-
if (!r) return t;
|
|
2008
|
-
var o = r.call(t), i, c = [], l;
|
|
2009
|
-
try {
|
|
2010
|
-
for (; (n === void 0 || n-- > 0) && !(i = o.next()).done; ) c.push(i.value);
|
|
2011
|
-
} catch (h) {
|
|
2012
|
-
l = { error: h };
|
|
2013
|
-
} finally {
|
|
2014
|
-
try {
|
|
2015
|
-
i && !i.done && (r = o.return) && r.call(o);
|
|
2016
|
-
} finally {
|
|
2017
|
-
if (l) throw l.error;
|
|
2018
|
-
}
|
|
2019
|
-
}
|
|
2020
|
-
return c;
|
|
2021
|
-
}
|
|
2022
|
-
function gn() {
|
|
2023
|
-
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2024
|
-
t = t.concat(Nt(arguments[n]));
|
|
2025
|
-
return t;
|
|
2026
|
-
}
|
|
2027
|
-
function yn() {
|
|
2028
|
-
for (var t = 0, n = 0, r = arguments.length; n < r; n++) t += arguments[n].length;
|
|
2029
|
-
for (var o = Array(t), i = 0, n = 0; n < r; n++)
|
|
2030
|
-
for (var c = arguments[n], l = 0, h = c.length; l < h; l++, i++)
|
|
2031
|
-
o[i] = c[l];
|
|
2032
|
-
return o;
|
|
2033
|
-
}
|
|
2034
|
-
function _n(t, n, r) {
|
|
2035
|
-
if (r || arguments.length === 2) for (var o = 0, i = n.length, c; o < i; o++)
|
|
2036
|
-
(c || !(o in n)) && (c || (c = Array.prototype.slice.call(n, 0, o)), c[o] = n[o]);
|
|
2037
|
-
return t.concat(c || Array.prototype.slice.call(n));
|
|
2038
|
-
}
|
|
2039
|
-
function Ve(t) {
|
|
2040
|
-
return this instanceof Ve ? (this.v = t, this) : new Ve(t);
|
|
2041
|
-
}
|
|
2042
|
-
function mn(t, n, r) {
|
|
2043
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2044
|
-
var o = r.apply(t, n || []), i, c = [];
|
|
2045
|
-
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), h("next"), h("throw"), h("return", l), i[Symbol.asyncIterator] = function() {
|
|
2046
|
-
return this;
|
|
2047
|
-
}, i;
|
|
2048
|
-
function l(_) {
|
|
2049
|
-
return function(D) {
|
|
2050
|
-
return Promise.resolve(D).then(_, v);
|
|
2051
|
-
};
|
|
2052
|
-
}
|
|
2053
|
-
function h(_, D) {
|
|
2054
|
-
o[_] && (i[_] = function(x) {
|
|
2055
|
-
return new Promise(function(V, R) {
|
|
2056
|
-
c.push([_, x, V, R]) > 1 || S(_, x);
|
|
2057
|
-
});
|
|
2058
|
-
}, D && (i[_] = D(i[_])));
|
|
2059
|
-
}
|
|
2060
|
-
function S(_, D) {
|
|
2061
|
-
try {
|
|
2062
|
-
g(o[_](D));
|
|
2063
|
-
} catch (x) {
|
|
2064
|
-
m(c[0][3], x);
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
function g(_) {
|
|
2068
|
-
_.value instanceof Ve ? Promise.resolve(_.value.v).then(p, v) : m(c[0][2], _);
|
|
2069
|
-
}
|
|
2070
|
-
function p(_) {
|
|
2071
|
-
S("next", _);
|
|
2072
|
-
}
|
|
2073
|
-
function v(_) {
|
|
2074
|
-
S("throw", _);
|
|
2075
|
-
}
|
|
2076
|
-
function m(_, D) {
|
|
2077
|
-
_(D), c.shift(), c.length && S(c[0][0], c[0][1]);
|
|
2078
|
-
}
|
|
2079
|
-
}
|
|
2080
|
-
function wn(t) {
|
|
2081
|
-
var n, r;
|
|
2082
|
-
return n = {}, o("next"), o("throw", function(i) {
|
|
2083
|
-
throw i;
|
|
2084
|
-
}), o("return"), n[Symbol.iterator] = function() {
|
|
2085
|
-
return this;
|
|
2086
|
-
}, n;
|
|
2087
|
-
function o(i, c) {
|
|
2088
|
-
n[i] = t[i] ? function(l) {
|
|
2089
|
-
return (r = !r) ? { value: Ve(t[i](l)), done: !1 } : c ? c(l) : l;
|
|
2090
|
-
} : c;
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
function bn(t) {
|
|
2094
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
2095
|
-
var n = t[Symbol.asyncIterator], r;
|
|
2096
|
-
return n ? n.call(t) : (t = typeof ot == "function" ? ot(t) : t[Symbol.iterator](), r = {}, o("next"), o("throw"), o("return"), r[Symbol.asyncIterator] = function() {
|
|
2097
|
-
return this;
|
|
2098
|
-
}, r);
|
|
2099
|
-
function o(c) {
|
|
2100
|
-
r[c] = t[c] && function(l) {
|
|
2101
|
-
return new Promise(function(h, S) {
|
|
2102
|
-
l = t[c](l), i(h, S, l.done, l.value);
|
|
2103
|
-
});
|
|
2104
|
-
};
|
|
2105
|
-
}
|
|
2106
|
-
function i(c, l, h, S) {
|
|
2107
|
-
Promise.resolve(S).then(function(g) {
|
|
2108
|
-
c({ value: g, done: h });
|
|
2109
|
-
}, l);
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
function Sn(t, n) {
|
|
2113
|
-
return Object.defineProperty ? Object.defineProperty(t, "raw", { value: n }) : t.raw = n, t;
|
|
2114
|
-
}
|
|
2115
|
-
var er = Object.create ? function(t, n) {
|
|
2116
|
-
Object.defineProperty(t, "default", { enumerable: !0, value: n });
|
|
2117
|
-
} : function(t, n) {
|
|
2118
|
-
t.default = n;
|
|
2119
|
-
};
|
|
2120
|
-
function On(t) {
|
|
2121
|
-
if (t && t.__esModule) return t;
|
|
2122
|
-
var n = {};
|
|
2123
|
-
if (t != null) for (var r in t) r !== "default" && Object.prototype.hasOwnProperty.call(t, r) && ut(n, t, r);
|
|
2124
|
-
return er(n, t), n;
|
|
2125
|
-
}
|
|
2126
|
-
function Rn(t) {
|
|
2127
|
-
return t && t.__esModule ? t : { default: t };
|
|
2128
|
-
}
|
|
2129
|
-
function Cn(t, n, r, o) {
|
|
2130
|
-
if (r === "a" && !o) throw new TypeError("Private accessor was defined without a getter");
|
|
2131
|
-
if (typeof n == "function" ? t !== n || !o : !n.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2132
|
-
return r === "m" ? o : r === "a" ? o.call(t) : o ? o.value : n.get(t);
|
|
2133
|
-
}
|
|
2134
|
-
function Tn(t, n, r, o, i) {
|
|
2135
|
-
if (o === "m") throw new TypeError("Private method is not writable");
|
|
2136
|
-
if (o === "a" && !i) throw new TypeError("Private accessor was defined without a setter");
|
|
2137
|
-
if (typeof n == "function" ? t !== n || !i : !n.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2138
|
-
return o === "a" ? i.call(t, r) : i ? i.value = r : n.set(t, r), r;
|
|
2139
|
-
}
|
|
2140
|
-
function An(t, n) {
|
|
2141
|
-
if (n === null || typeof n != "object" && typeof n != "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
2142
|
-
return typeof t == "function" ? n === t : t.has(n);
|
|
2143
|
-
}
|
|
2144
|
-
function jn(t, n, r) {
|
|
2145
|
-
if (n != null) {
|
|
2146
|
-
if (typeof n != "object" && typeof n != "function") throw new TypeError("Object expected.");
|
|
2147
|
-
var o, i;
|
|
2148
|
-
if (r) {
|
|
2149
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
2150
|
-
o = n[Symbol.asyncDispose];
|
|
2151
|
-
}
|
|
2152
|
-
if (o === void 0) {
|
|
2153
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
2154
|
-
o = n[Symbol.dispose], r && (i = o);
|
|
2155
|
-
}
|
|
2156
|
-
if (typeof o != "function") throw new TypeError("Object not disposable.");
|
|
2157
|
-
i && (o = function() {
|
|
2158
|
-
try {
|
|
2159
|
-
i.call(this);
|
|
2160
|
-
} catch (c) {
|
|
2161
|
-
return Promise.reject(c);
|
|
2162
|
-
}
|
|
2163
|
-
}), t.stack.push({ value: n, dispose: o, async: r });
|
|
2164
|
-
} else r && t.stack.push({ async: !0 });
|
|
2165
|
-
return n;
|
|
2166
|
-
}
|
|
2167
|
-
var tr = typeof SuppressedError == "function" ? SuppressedError : function(t, n, r) {
|
|
2168
|
-
var o = new Error(r);
|
|
2169
|
-
return o.name = "SuppressedError", o.error = t, o.suppressed = n, o;
|
|
2170
|
-
};
|
|
2171
|
-
function Nn(t) {
|
|
2172
|
-
function n(c) {
|
|
2173
|
-
t.error = t.hasError ? new tr(c, t.error, "An error was suppressed during disposal.") : c, t.hasError = !0;
|
|
2174
|
-
}
|
|
2175
|
-
var r, o = 0;
|
|
2176
|
-
function i() {
|
|
2177
|
-
for (; r = t.stack.pop(); )
|
|
2178
|
-
try {
|
|
2179
|
-
if (!r.async && o === 1) return o = 0, t.stack.push(r), Promise.resolve().then(i);
|
|
2180
|
-
if (r.dispose) {
|
|
2181
|
-
var c = r.dispose.call(r.value);
|
|
2182
|
-
if (r.async) return o |= 2, Promise.resolve(c).then(i, function(l) {
|
|
2183
|
-
return n(l), i();
|
|
2184
|
-
});
|
|
2185
|
-
} else o |= 1;
|
|
2186
|
-
} catch (l) {
|
|
2187
|
-
n(l);
|
|
2188
|
-
}
|
|
2189
|
-
if (o === 1) return t.hasError ? Promise.reject(t.error) : Promise.resolve();
|
|
2190
|
-
if (t.hasError) throw t.error;
|
|
2191
|
-
}
|
|
2192
|
-
return i();
|
|
2193
|
-
}
|
|
2194
|
-
function Pn(t, n) {
|
|
2195
|
-
return typeof t == "string" && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(r, o, i, c, l) {
|
|
2196
|
-
return o ? n ? ".jsx" : ".js" : i && (!c || !l) ? r : i + c + "." + l.toLowerCase() + "js";
|
|
2197
|
-
}) : t;
|
|
2198
|
-
}
|
|
2199
|
-
const nr = {
|
|
2200
|
-
__extends: on,
|
|
2201
|
-
__assign: rt,
|
|
2202
|
-
__rest: sn,
|
|
2203
|
-
__decorate: un,
|
|
2204
|
-
__param: an,
|
|
2205
|
-
__esDecorate: cn,
|
|
2206
|
-
__runInitializers: fn,
|
|
2207
|
-
__propKey: ln,
|
|
2208
|
-
__setFunctionName: dn,
|
|
2209
|
-
__metadata: pn,
|
|
2210
|
-
__awaiter: vn,
|
|
2211
|
-
__generator: En,
|
|
2212
|
-
__createBinding: ut,
|
|
2213
|
-
__exportStar: hn,
|
|
2214
|
-
__values: ot,
|
|
2215
|
-
__read: Nt,
|
|
2216
|
-
__spread: gn,
|
|
2217
|
-
__spreadArrays: yn,
|
|
2218
|
-
__spreadArray: _n,
|
|
2219
|
-
__await: Ve,
|
|
2220
|
-
__asyncGenerator: mn,
|
|
2221
|
-
__asyncDelegator: wn,
|
|
2222
|
-
__asyncValues: bn,
|
|
2223
|
-
__makeTemplateObject: Sn,
|
|
2224
|
-
__importStar: On,
|
|
2225
|
-
__importDefault: Rn,
|
|
2226
|
-
__classPrivateFieldGet: Cn,
|
|
2227
|
-
__classPrivateFieldSet: Tn,
|
|
2228
|
-
__classPrivateFieldIn: An,
|
|
2229
|
-
__addDisposableResource: jn,
|
|
2230
|
-
__disposeResources: Nn,
|
|
2231
|
-
__rewriteRelativeImportExtension: Pn
|
|
2232
|
-
}, rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2233
|
-
__proto__: null,
|
|
2234
|
-
__addDisposableResource: jn,
|
|
2235
|
-
get __assign() {
|
|
2236
|
-
return rt;
|
|
2237
|
-
},
|
|
2238
|
-
__asyncDelegator: wn,
|
|
2239
|
-
__asyncGenerator: mn,
|
|
2240
|
-
__asyncValues: bn,
|
|
2241
|
-
__await: Ve,
|
|
2242
|
-
__awaiter: vn,
|
|
2243
|
-
__classPrivateFieldGet: Cn,
|
|
2244
|
-
__classPrivateFieldIn: An,
|
|
2245
|
-
__classPrivateFieldSet: Tn,
|
|
2246
|
-
__createBinding: ut,
|
|
2247
|
-
__decorate: un,
|
|
2248
|
-
__disposeResources: Nn,
|
|
2249
|
-
__esDecorate: cn,
|
|
2250
|
-
__exportStar: hn,
|
|
2251
|
-
__extends: on,
|
|
2252
|
-
__generator: En,
|
|
2253
|
-
__importDefault: Rn,
|
|
2254
|
-
__importStar: On,
|
|
2255
|
-
__makeTemplateObject: Sn,
|
|
2256
|
-
__metadata: pn,
|
|
2257
|
-
__param: an,
|
|
2258
|
-
__propKey: ln,
|
|
2259
|
-
__read: Nt,
|
|
2260
|
-
__rest: sn,
|
|
2261
|
-
__rewriteRelativeImportExtension: Pn,
|
|
2262
|
-
__runInitializers: fn,
|
|
2263
|
-
__setFunctionName: dn,
|
|
2264
|
-
__spread: gn,
|
|
2265
|
-
__spreadArray: _n,
|
|
2266
|
-
__spreadArrays: yn,
|
|
2267
|
-
__values: ot,
|
|
2268
|
-
default: nr
|
|
2269
|
-
}, Symbol.toStringTag, { value: "Module" })), or = "3.0.89";
|
|
2270
|
-
class sr {
|
|
2271
|
-
constructor(n) {
|
|
2272
|
-
this.components = [];
|
|
2273
|
-
const { components: r } = n;
|
|
2274
|
-
if (r && r.forEach((o) => this.register(o)), this.components.length === 0)
|
|
2275
|
-
throw new Error("No components registered");
|
|
2276
|
-
if (!this.get("fallback"))
|
|
2277
|
-
throw new Error("No fallback component registered");
|
|
2278
|
-
}
|
|
2279
|
-
// TODO test that this registers or replaces the component
|
|
2280
|
-
register(n) {
|
|
2281
|
-
const r = this.components.findIndex((o) => o.key === n.key);
|
|
2282
|
-
return r !== -1 ? this.components[r] = n : this.components.push(n), this;
|
|
2283
|
-
}
|
|
2284
|
-
get(n) {
|
|
2285
|
-
const r = this.components.find(
|
|
2286
|
-
(o) => o.key.toUpperCase() === n.toUpperCase()
|
|
2287
|
-
);
|
|
2288
|
-
return r || null;
|
|
2289
|
-
}
|
|
2290
|
-
getComponent(n) {
|
|
2291
|
-
var r;
|
|
2292
|
-
return (r = this.get(n)) == null ? void 0 : r.component;
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
const xn = I.createContext(null);
|
|
2296
|
-
function zr({
|
|
2297
|
-
options: t,
|
|
2298
|
-
children: n,
|
|
2299
|
-
components: r,
|
|
2300
|
-
modesComponents: o,
|
|
2301
|
-
storage: i,
|
|
2302
|
-
loadingComponent: c
|
|
2303
|
-
}) {
|
|
2304
|
-
const l = I.useRef(null), h = I.useRef(!1), [S, g] = I.useState(null), p = I.useMemo(
|
|
2305
|
-
() => new sr({
|
|
2306
|
-
components: r
|
|
2307
|
-
}),
|
|
2308
|
-
[r]
|
|
2309
|
-
);
|
|
2310
|
-
return I.useEffect(() => {
|
|
2311
|
-
h.current || (h.current = !0, zn.initialize({ config: t, storage: i }).then(g));
|
|
2312
|
-
}, []), S ? /* @__PURE__ */ rn.jsx(
|
|
2313
|
-
xn.Provider,
|
|
2314
|
-
{
|
|
2315
|
-
value: {
|
|
2316
|
-
widgetCtx: S,
|
|
2317
|
-
config: t,
|
|
2318
|
-
components: r,
|
|
2319
|
-
componentStore: p,
|
|
2320
|
-
modesComponents: o,
|
|
2321
|
-
version: or,
|
|
2322
|
-
contentIframeRef: l
|
|
2323
|
-
},
|
|
2324
|
-
children: n
|
|
2325
|
-
}
|
|
2326
|
-
) : c || null;
|
|
2327
|
-
}
|
|
2328
|
-
function $e() {
|
|
2329
|
-
const t = I.useContext(xn);
|
|
2330
|
-
if (!t)
|
|
2331
|
-
throw new Error("useWidget must be used within a WidgetProvider");
|
|
2332
|
-
return t;
|
|
2333
|
-
}
|
|
2334
|
-
function kn() {
|
|
2335
|
-
const { config: t } = $e();
|
|
2336
|
-
return t;
|
|
2337
|
-
}
|
|
2338
|
-
function Be(t) {
|
|
2339
|
-
return I.useSyncExternalStore(t.subscribe, t.get, t.get);
|
|
2340
|
-
}
|
|
2341
|
-
function Br() {
|
|
2342
|
-
const { widgetCtx: t } = $e();
|
|
2343
|
-
return {
|
|
2344
|
-
contactState: Be(t.contactCtx.state),
|
|
2345
|
-
createUnverifiedContact: t.contactCtx.createUnverifiedContact
|
|
2346
|
-
};
|
|
2347
|
-
}
|
|
2348
|
-
function ur() {
|
|
2349
|
-
const { widgetCtx: t } = $e();
|
|
2350
|
-
return { messagesState: Be(t.messageCtx.state), sendMessage: t.messageCtx.sendMessage };
|
|
2351
|
-
}
|
|
2352
|
-
function Mn() {
|
|
2353
|
-
const { widgetCtx: t } = $e(), { oneOpenSessionAllowed: n } = kn(), r = Be(t.sessionCtx.sessionState), o = Be(t.sessionCtx.sessionsState), { openSessions: i, closedSessions: c } = I.useMemo(() => ({
|
|
2354
|
-
openSessions: o.data.filter((h) => h.isOpened === !0),
|
|
2355
|
-
closedSessions: o.data.filter((h) => h.isOpened === !1)
|
|
2356
|
-
}), [o.data]), l = I.useMemo(() => n ? i.length === 0 : !0, [n, i.length]);
|
|
2357
|
-
return {
|
|
2358
|
-
sessionState: r,
|
|
2359
|
-
sessionsState: o,
|
|
2360
|
-
loadMoreSessions: t.sessionCtx.loadMoreSessions,
|
|
2361
|
-
resolveSession: t.sessionCtx.resolveSession,
|
|
2362
|
-
createStateCheckpoint: t.sessionCtx.createStateCheckpoint,
|
|
2363
|
-
openSessions: i,
|
|
2364
|
-
closedSessions: c,
|
|
2365
|
-
canCreateNewSession: l
|
|
2366
|
-
};
|
|
2367
|
-
}
|
|
2368
|
-
function Gr() {
|
|
2369
|
-
var l;
|
|
2370
|
-
const { sessionState: t } = Mn(), { messagesState: n } = ur(), r = ((l = t.session) == null ? void 0 : l.assignee.kind) === "ai", o = n.messages.length > 0 ? n.messages[n.messages.length - 1] : null, i = (o == null ? void 0 : o.type) === "FROM_USER";
|
|
2371
|
-
return { isAwaitingBotReply: (r || t.isCreatingSession) && (n.isSendingMessage || i) };
|
|
2372
|
-
}
|
|
2373
|
-
var St = { exports: {} }, dt = {};
|
|
2374
|
-
/**
|
|
2375
|
-
* @license React
|
|
2376
|
-
* use-sync-external-store-shim.production.min.js
|
|
2377
|
-
*
|
|
2378
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2379
|
-
*
|
|
2380
|
-
* This source code is licensed under the MIT license found in the
|
|
2381
|
-
* LICENSE file in the root directory of this source tree.
|
|
2382
|
-
*/
|
|
2383
|
-
var Xt;
|
|
2384
|
-
function ir() {
|
|
2385
|
-
if (Xt) return dt;
|
|
2386
|
-
Xt = 1;
|
|
2387
|
-
var t = I;
|
|
2388
|
-
function n(v, m) {
|
|
2389
|
-
return v === m && (v !== 0 || 1 / v === 1 / m) || v !== v && m !== m;
|
|
2390
|
-
}
|
|
2391
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useState, i = t.useEffect, c = t.useLayoutEffect, l = t.useDebugValue;
|
|
2392
|
-
function h(v, m) {
|
|
2393
|
-
var _ = m(), D = o({ inst: { value: _, getSnapshot: m } }), x = D[0].inst, V = D[1];
|
|
2394
|
-
return c(function() {
|
|
2395
|
-
x.value = _, x.getSnapshot = m, S(x) && V({ inst: x });
|
|
2396
|
-
}, [v, _, m]), i(function() {
|
|
2397
|
-
return S(x) && V({ inst: x }), v(function() {
|
|
2398
|
-
S(x) && V({ inst: x });
|
|
2399
|
-
});
|
|
2400
|
-
}, [v]), l(_), _;
|
|
2401
|
-
}
|
|
2402
|
-
function S(v) {
|
|
2403
|
-
var m = v.getSnapshot;
|
|
2404
|
-
v = v.value;
|
|
2405
|
-
try {
|
|
2406
|
-
var _ = m();
|
|
2407
|
-
return !r(v, _);
|
|
2408
|
-
} catch {
|
|
2409
|
-
return !0;
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
function g(v, m) {
|
|
2413
|
-
return m();
|
|
2414
|
-
}
|
|
2415
|
-
var p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : h;
|
|
2416
|
-
return dt.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : p, dt;
|
|
2417
|
-
}
|
|
2418
|
-
var pt = {};
|
|
2419
|
-
/**
|
|
2420
|
-
* @license React
|
|
2421
|
-
* use-sync-external-store-shim.development.js
|
|
2422
|
-
*
|
|
2423
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2424
|
-
*
|
|
2425
|
-
* This source code is licensed under the MIT license found in the
|
|
2426
|
-
* LICENSE file in the root directory of this source tree.
|
|
2427
|
-
*/
|
|
2428
|
-
var Qt;
|
|
2429
|
-
function ar() {
|
|
2430
|
-
return Qt || (Qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2431
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2432
|
-
var t = I, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2433
|
-
function r(z) {
|
|
2434
|
-
{
|
|
2435
|
-
for (var W = arguments.length, T = new Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++)
|
|
2436
|
-
T[$ - 1] = arguments[$];
|
|
2437
|
-
o("error", z, T);
|
|
2438
|
-
}
|
|
2439
|
-
}
|
|
2440
|
-
function o(z, W, T) {
|
|
2441
|
-
{
|
|
2442
|
-
var $ = n.ReactDebugCurrentFrame, ie = $.getStackAddendum();
|
|
2443
|
-
ie !== "" && (W += "%s", T = T.concat([ie]));
|
|
2444
|
-
var Y = T.map(function(B) {
|
|
2445
|
-
return String(B);
|
|
2446
|
-
});
|
|
2447
|
-
Y.unshift("Warning: " + W), Function.prototype.apply.call(console[z], console, Y);
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
|
-
function i(z, W) {
|
|
2451
|
-
return z === W && (z !== 0 || 1 / z === 1 / W) || z !== z && W !== W;
|
|
2452
|
-
}
|
|
2453
|
-
var c = typeof Object.is == "function" ? Object.is : i, l = t.useState, h = t.useEffect, S = t.useLayoutEffect, g = t.useDebugValue, p = !1, v = !1;
|
|
2454
|
-
function m(z, W, T) {
|
|
2455
|
-
p || t.startTransition !== void 0 && (p = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
2456
|
-
var $ = W();
|
|
2457
|
-
if (!v) {
|
|
2458
|
-
var ie = W();
|
|
2459
|
-
c($, ie) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), v = !0);
|
|
2460
|
-
}
|
|
2461
|
-
var Y = l({
|
|
2462
|
-
inst: {
|
|
2463
|
-
value: $,
|
|
2464
|
-
getSnapshot: W
|
|
2465
|
-
}
|
|
2466
|
-
}), B = Y[0].inst, re = Y[1];
|
|
2467
|
-
return S(function() {
|
|
2468
|
-
B.value = $, B.getSnapshot = W, _(B) && re({
|
|
2469
|
-
inst: B
|
|
2470
|
-
});
|
|
2471
|
-
}, [z, $, W]), h(function() {
|
|
2472
|
-
_(B) && re({
|
|
2473
|
-
inst: B
|
|
2474
|
-
});
|
|
2475
|
-
var le = function() {
|
|
2476
|
-
_(B) && re({
|
|
2477
|
-
inst: B
|
|
2478
|
-
});
|
|
2479
|
-
};
|
|
2480
|
-
return z(le);
|
|
2481
|
-
}, [z]), g($), $;
|
|
2482
|
-
}
|
|
2483
|
-
function _(z) {
|
|
2484
|
-
var W = z.getSnapshot, T = z.value;
|
|
2485
|
-
try {
|
|
2486
|
-
var $ = W();
|
|
2487
|
-
return !c(T, $);
|
|
2488
|
-
} catch {
|
|
2489
|
-
return !0;
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
function D(z, W, T) {
|
|
2493
|
-
return W();
|
|
2494
|
-
}
|
|
2495
|
-
var x = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", V = !x, R = V ? D : m, fe = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : R;
|
|
2496
|
-
pt.useSyncExternalStore = fe, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2497
|
-
}()), pt;
|
|
2498
|
-
}
|
|
2499
|
-
process.env.NODE_ENV === "production" ? St.exports = ir() : St.exports = ar();
|
|
2500
|
-
var cr = St.exports;
|
|
2501
|
-
const Ue = () => {
|
|
2502
|
-
}, we = (
|
|
2503
|
-
/*#__NOINLINE__*/
|
|
2504
|
-
Ue()
|
|
2505
|
-
), vt = Object, X = (t) => t === we, xe = (t) => typeof t == "function", Ie = (t, n) => ({
|
|
2506
|
-
...t,
|
|
2507
|
-
...n
|
|
2508
|
-
}), fr = (t) => xe(t.then), et = /* @__PURE__ */ new WeakMap();
|
|
2509
|
-
let lr = 0;
|
|
2510
|
-
const Ge = (t) => {
|
|
2511
|
-
const n = typeof t, r = t && t.constructor, o = r == Date;
|
|
2512
|
-
let i, c;
|
|
2513
|
-
if (vt(t) === t && !o && r != RegExp) {
|
|
2514
|
-
if (i = et.get(t), i) return i;
|
|
2515
|
-
if (i = ++lr + "~", et.set(t, i), r == Array) {
|
|
2516
|
-
for (i = "@", c = 0; c < t.length; c++)
|
|
2517
|
-
i += Ge(t[c]) + ",";
|
|
2518
|
-
et.set(t, i);
|
|
2519
|
-
}
|
|
2520
|
-
if (r == vt) {
|
|
2521
|
-
i = "#";
|
|
2522
|
-
const l = vt.keys(t).sort();
|
|
2523
|
-
for (; !X(c = l.pop()); )
|
|
2524
|
-
X(t[c]) || (i += c + ":" + Ge(t[c]) + ",");
|
|
2525
|
-
et.set(t, i);
|
|
2526
|
-
}
|
|
2527
|
-
} else
|
|
2528
|
-
i = o ? t.toJSON() : n == "symbol" ? t.toString() : n == "string" ? JSON.stringify(t) : "" + t;
|
|
2529
|
-
return i;
|
|
2530
|
-
}, Me = /* @__PURE__ */ new WeakMap(), Et = {}, tt = {}, Pt = "undefined", it = typeof window != Pt, Ot = typeof document != Pt, dr = () => it && typeof window.requestAnimationFrame != Pt, Ln = (t, n) => {
|
|
2531
|
-
const r = Me.get(t);
|
|
2532
|
-
return [
|
|
2533
|
-
// Getter
|
|
2534
|
-
() => !X(n) && t.get(n) || Et,
|
|
2535
|
-
// Setter
|
|
2536
|
-
(o) => {
|
|
2537
|
-
if (!X(n)) {
|
|
2538
|
-
const i = t.get(n);
|
|
2539
|
-
n in tt || (tt[n] = i), r[5](n, Ie(i, o), i || Et);
|
|
2540
|
-
}
|
|
2541
|
-
},
|
|
2542
|
-
// Subscriber
|
|
2543
|
-
r[6],
|
|
2544
|
-
// Get server cache snapshot
|
|
2545
|
-
() => !X(n) && n in tt ? tt[n] : !X(n) && t.get(n) || Et
|
|
2546
|
-
];
|
|
2547
|
-
};
|
|
2548
|
-
let Rt = !0;
|
|
2549
|
-
const pr = () => Rt, [Ct, Tt] = it && window.addEventListener ? [
|
|
2550
|
-
window.addEventListener.bind(window),
|
|
2551
|
-
window.removeEventListener.bind(window)
|
|
2552
|
-
] : [
|
|
2553
|
-
Ue,
|
|
2554
|
-
Ue
|
|
2555
|
-
], vr = () => {
|
|
2556
|
-
const t = Ot && document.visibilityState;
|
|
2557
|
-
return X(t) || t !== "hidden";
|
|
2558
|
-
}, Er = (t) => (Ot && document.addEventListener("visibilitychange", t), Ct("focus", t), () => {
|
|
2559
|
-
Ot && document.removeEventListener("visibilitychange", t), Tt("focus", t);
|
|
2560
|
-
}), hr = (t) => {
|
|
2561
|
-
const n = () => {
|
|
2562
|
-
Rt = !0, t();
|
|
2563
|
-
}, r = () => {
|
|
2564
|
-
Rt = !1;
|
|
2565
|
-
};
|
|
2566
|
-
return Ct("online", n), Ct("offline", r), () => {
|
|
2567
|
-
Tt("online", n), Tt("offline", r);
|
|
2568
|
-
};
|
|
2569
|
-
}, gr = {
|
|
2570
|
-
isOnline: pr,
|
|
2571
|
-
isVisible: vr
|
|
2572
|
-
}, yr = {
|
|
2573
|
-
initFocus: Er,
|
|
2574
|
-
initReconnect: hr
|
|
2575
|
-
}, Jt = !st.useId, Ke = !it || "Deno" in window, _r = (t) => dr() ? window.requestAnimationFrame(t) : setTimeout(t, 1), ht = Ke ? I.useEffect : I.useLayoutEffect, gt = typeof navigator < "u" && navigator.connection, Zt = !Ke && gt && ([
|
|
2576
|
-
"slow-2g",
|
|
2577
|
-
"2g"
|
|
2578
|
-
].includes(gt.effectiveType) || gt.saveData), xt = (t) => {
|
|
2579
|
-
if (xe(t))
|
|
2580
|
-
try {
|
|
2581
|
-
t = t();
|
|
2582
|
-
} catch {
|
|
2583
|
-
t = "";
|
|
2584
|
-
}
|
|
2585
|
-
const n = t;
|
|
2586
|
-
return t = typeof t == "string" ? t : (Array.isArray(t) ? t.length : t) ? Ge(t) : "", [
|
|
2587
|
-
t,
|
|
2588
|
-
n
|
|
2589
|
-
];
|
|
2590
|
-
};
|
|
2591
|
-
let mr = 0;
|
|
2592
|
-
const At = () => ++mr, Dn = 0, Un = 1, In = 2, wr = 3;
|
|
2593
|
-
var Fe = {
|
|
2594
|
-
__proto__: null,
|
|
2595
|
-
ERROR_REVALIDATE_EVENT: wr,
|
|
2596
|
-
FOCUS_EVENT: Dn,
|
|
2597
|
-
MUTATE_EVENT: In,
|
|
2598
|
-
RECONNECT_EVENT: Un
|
|
2599
|
-
};
|
|
2600
|
-
async function $n(...t) {
|
|
2601
|
-
const [n, r, o, i] = t, c = Ie({
|
|
2602
|
-
populateCache: !0,
|
|
2603
|
-
throwOnError: !0
|
|
2604
|
-
}, typeof i == "boolean" ? {
|
|
2605
|
-
revalidate: i
|
|
2606
|
-
} : i || {});
|
|
2607
|
-
let l = c.populateCache;
|
|
2608
|
-
const h = c.rollbackOnError;
|
|
2609
|
-
let S = c.optimisticData;
|
|
2610
|
-
const g = (m) => typeof h == "function" ? h(m) : h !== !1, p = c.throwOnError;
|
|
2611
|
-
if (xe(r)) {
|
|
2612
|
-
const m = r, _ = [], D = n.keys();
|
|
2613
|
-
for (const x of D)
|
|
2614
|
-
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
2615
|
-
!/^\$(inf|sub)\$/.test(x) && m(n.get(x)._k) && _.push(x);
|
|
2616
|
-
return Promise.all(_.map(v));
|
|
2617
|
-
}
|
|
2618
|
-
return v(r);
|
|
2619
|
-
async function v(m) {
|
|
2620
|
-
const [_] = xt(m);
|
|
2621
|
-
if (!_) return;
|
|
2622
|
-
const [D, x] = Ln(n, _), [V, R, fe, z] = Me.get(n), W = () => {
|
|
2623
|
-
const oe = V[_];
|
|
2624
|
-
return (xe(c.revalidate) ? c.revalidate(D().data, m) : c.revalidate !== !1) && (delete fe[_], delete z[_], oe && oe[0]) ? oe[0](In).then(() => D().data) : D().data;
|
|
2625
|
-
};
|
|
2626
|
-
if (t.length < 3)
|
|
2627
|
-
return W();
|
|
2628
|
-
let T = o, $;
|
|
2629
|
-
const ie = At();
|
|
2630
|
-
R[_] = [
|
|
2631
|
-
ie,
|
|
2632
|
-
0
|
|
2633
|
-
];
|
|
2634
|
-
const Y = !X(S), B = D(), re = B.data, le = B._c, de = X(le) ? re : le;
|
|
2635
|
-
if (Y && (S = xe(S) ? S(de, re) : S, x({
|
|
2636
|
-
data: S,
|
|
2637
|
-
_c: de
|
|
2638
|
-
})), xe(T))
|
|
2639
|
-
try {
|
|
2640
|
-
T = T(de);
|
|
2641
|
-
} catch (oe) {
|
|
2642
|
-
$ = oe;
|
|
2643
|
-
}
|
|
2644
|
-
if (T && fr(T))
|
|
2645
|
-
if (T = await T.catch((oe) => {
|
|
2646
|
-
$ = oe;
|
|
2647
|
-
}), ie !== R[_][0]) {
|
|
2648
|
-
if ($) throw $;
|
|
2649
|
-
return T;
|
|
2650
|
-
} else $ && Y && g($) && (l = !0, x({
|
|
2651
|
-
data: de,
|
|
2652
|
-
_c: we
|
|
2653
|
-
}));
|
|
2654
|
-
if (l && !$)
|
|
2655
|
-
if (xe(l)) {
|
|
2656
|
-
const oe = l(T, de);
|
|
2657
|
-
x({
|
|
2658
|
-
data: oe,
|
|
2659
|
-
error: we,
|
|
2660
|
-
_c: we
|
|
2661
|
-
});
|
|
2662
|
-
} else
|
|
2663
|
-
x({
|
|
2664
|
-
data: T,
|
|
2665
|
-
error: we,
|
|
2666
|
-
_c: we
|
|
2667
|
-
});
|
|
2668
|
-
if (R[_][1] = At(), Promise.resolve(W()).then(() => {
|
|
2669
|
-
x({
|
|
2670
|
-
_c: we
|
|
2671
|
-
});
|
|
2672
|
-
}), $) {
|
|
2673
|
-
if (p) throw $;
|
|
2674
|
-
return;
|
|
2675
|
-
}
|
|
2676
|
-
return T;
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
|
-
const en = (t, n) => {
|
|
2680
|
-
for (const r in t)
|
|
2681
|
-
t[r][0] && t[r][0](n);
|
|
2682
|
-
}, br = (t, n) => {
|
|
2683
|
-
if (!Me.has(t)) {
|
|
2684
|
-
const r = Ie(yr, n), o = {}, i = $n.bind(we, t);
|
|
2685
|
-
let c = Ue;
|
|
2686
|
-
const l = {}, h = (p, v) => {
|
|
2687
|
-
const m = l[p] || [];
|
|
2688
|
-
return l[p] = m, m.push(v), () => m.splice(m.indexOf(v), 1);
|
|
2689
|
-
}, S = (p, v, m) => {
|
|
2690
|
-
t.set(p, v);
|
|
2691
|
-
const _ = l[p];
|
|
2692
|
-
if (_)
|
|
2693
|
-
for (const D of _)
|
|
2694
|
-
D(v, m);
|
|
2695
|
-
}, g = () => {
|
|
2696
|
-
if (!Me.has(t) && (Me.set(t, [
|
|
2697
|
-
o,
|
|
2698
|
-
{},
|
|
2699
|
-
{},
|
|
2700
|
-
{},
|
|
2701
|
-
i,
|
|
2702
|
-
S,
|
|
2703
|
-
h
|
|
2704
|
-
]), !Ke)) {
|
|
2705
|
-
const p = r.initFocus(setTimeout.bind(we, en.bind(we, o, Dn))), v = r.initReconnect(setTimeout.bind(we, en.bind(we, o, Un)));
|
|
2706
|
-
c = () => {
|
|
2707
|
-
p && p(), v && v(), Me.delete(t);
|
|
2708
|
-
};
|
|
2709
|
-
}
|
|
2710
|
-
};
|
|
2711
|
-
return g(), [
|
|
2712
|
-
t,
|
|
2713
|
-
i,
|
|
2714
|
-
g,
|
|
2715
|
-
c
|
|
2716
|
-
];
|
|
2717
|
-
}
|
|
2718
|
-
return [
|
|
2719
|
-
t,
|
|
2720
|
-
Me.get(t)[4]
|
|
2721
|
-
];
|
|
2722
|
-
}, Sr = (t, n, r, o, i) => {
|
|
2723
|
-
const c = r.errorRetryCount, l = i.retryCount, h = ~~((Math.random() + 0.5) * (1 << (l < 8 ? l : 8))) * r.errorRetryInterval;
|
|
2724
|
-
!X(c) && l > c || setTimeout(o, h, i);
|
|
2725
|
-
}, Or = (t, n) => Ge(t) == Ge(n), [Wn, Rr] = br(/* @__PURE__ */ new Map()), Cr = Ie(
|
|
2726
|
-
{
|
|
2727
|
-
// events
|
|
2728
|
-
onLoadingSlow: Ue,
|
|
2729
|
-
onSuccess: Ue,
|
|
2730
|
-
onError: Ue,
|
|
2731
|
-
onErrorRetry: Sr,
|
|
2732
|
-
onDiscarded: Ue,
|
|
2733
|
-
// switches
|
|
2734
|
-
revalidateOnFocus: !0,
|
|
2735
|
-
revalidateOnReconnect: !0,
|
|
2736
|
-
revalidateIfStale: !0,
|
|
2737
|
-
shouldRetryOnError: !0,
|
|
2738
|
-
// timeouts
|
|
2739
|
-
errorRetryInterval: Zt ? 1e4 : 5e3,
|
|
2740
|
-
focusThrottleInterval: 5 * 1e3,
|
|
2741
|
-
dedupingInterval: 2 * 1e3,
|
|
2742
|
-
loadingTimeout: Zt ? 5e3 : 3e3,
|
|
2743
|
-
// providers
|
|
2744
|
-
compare: Or,
|
|
2745
|
-
isPaused: () => !1,
|
|
2746
|
-
cache: Wn,
|
|
2747
|
-
mutate: Rr,
|
|
2748
|
-
fallback: {}
|
|
2749
|
-
},
|
|
2750
|
-
// use web preset by default
|
|
2751
|
-
gr
|
|
2752
|
-
), Tr = (t, n) => {
|
|
2753
|
-
const r = Ie(t, n);
|
|
2754
|
-
if (n) {
|
|
2755
|
-
const { use: o, fallback: i } = t, { use: c, fallback: l } = n;
|
|
2756
|
-
o && c && (r.use = o.concat(c)), i && l && (r.fallback = Ie(i, l));
|
|
2757
|
-
}
|
|
2758
|
-
return r;
|
|
2759
|
-
}, Ar = I.createContext({}), jr = "$inf$", Yn = it && window.__SWR_DEVTOOLS_USE__, Nr = Yn ? window.__SWR_DEVTOOLS_USE__ : [], Pr = () => {
|
|
2760
|
-
Yn && (window.__SWR_DEVTOOLS_REACT__ = st);
|
|
2761
|
-
}, xr = (t) => xe(t[1]) ? [
|
|
2762
|
-
t[0],
|
|
2763
|
-
t[1],
|
|
2764
|
-
t[2] || {}
|
|
2765
|
-
] : [
|
|
2766
|
-
t[0],
|
|
2767
|
-
null,
|
|
2768
|
-
(t[1] === null ? t[2] : t[1]) || {}
|
|
2769
|
-
], kr = () => Ie(Cr, I.useContext(Ar)), Mr = (t) => (n, r, o) => t(n, r && ((...c) => {
|
|
2770
|
-
const [l] = xt(n), [, , , h] = Me.get(Wn);
|
|
2771
|
-
if (l.startsWith(jr))
|
|
2772
|
-
return r(...c);
|
|
2773
|
-
const S = h[l];
|
|
2774
|
-
return X(S) ? r(...c) : (delete h[l], S);
|
|
2775
|
-
}), o), Lr = Nr.concat(Mr), Dr = (t) => function(...r) {
|
|
2776
|
-
const o = kr(), [i, c, l] = xr(r), h = Tr(o, l);
|
|
2777
|
-
let S = t;
|
|
2778
|
-
const { use: g } = h, p = (g || []).concat(Lr);
|
|
2779
|
-
for (let v = p.length; v--; )
|
|
2780
|
-
S = p[v](S);
|
|
2781
|
-
return S(i, c || h.fetcher || null, h);
|
|
2782
|
-
}, Ur = (t, n, r) => {
|
|
2783
|
-
const o = n[t] || (n[t] = []);
|
|
2784
|
-
return o.push(r), () => {
|
|
2785
|
-
const i = o.indexOf(r);
|
|
2786
|
-
i >= 0 && (o[i] = o[o.length - 1], o.pop());
|
|
2787
|
-
};
|
|
2788
|
-
};
|
|
2789
|
-
Pr();
|
|
2790
|
-
const tn = st.use || ((t) => {
|
|
2791
|
-
if (t.status === "pending")
|
|
2792
|
-
throw t;
|
|
2793
|
-
if (t.status === "fulfilled")
|
|
2794
|
-
return t.value;
|
|
2795
|
-
throw t.status === "rejected" ? t.reason : (t.status = "pending", t.then((n) => {
|
|
2796
|
-
t.status = "fulfilled", t.value = n;
|
|
2797
|
-
}, (n) => {
|
|
2798
|
-
t.status = "rejected", t.reason = n;
|
|
2799
|
-
}), t);
|
|
2800
|
-
}), yt = {
|
|
2801
|
-
dedupe: !0
|
|
2802
|
-
}, Ir = (t, n, r) => {
|
|
2803
|
-
const { cache: o, compare: i, suspense: c, fallbackData: l, revalidateOnMount: h, revalidateIfStale: S, refreshInterval: g, refreshWhenHidden: p, refreshWhenOffline: v, keepPreviousData: m } = r, [_, D, x, V] = Me.get(o), [R, fe] = xt(t), z = I.useRef(!1), W = I.useRef(!1), T = I.useRef(R), $ = I.useRef(n), ie = I.useRef(r), Y = () => ie.current, B = () => Y().isVisible() && Y().isOnline(), [re, le, de, oe] = Ln(o, R), he = I.useRef({}).current, _e = X(l) ? r.fallback[R] : l, Ee = (q, F) => {
|
|
2804
|
-
for (const ne in he) {
|
|
2805
|
-
const Z = ne;
|
|
2806
|
-
if (Z === "data") {
|
|
2807
|
-
if (!i(q[Z], F[Z]) && (!X(q[Z]) || !i(H, F[Z])))
|
|
2808
|
-
return !1;
|
|
2809
|
-
} else if (F[Z] !== q[Z])
|
|
2810
|
-
return !1;
|
|
2811
|
-
}
|
|
2812
|
-
return !0;
|
|
2813
|
-
}, Oe = I.useMemo(() => {
|
|
2814
|
-
const q = !R || !n ? !1 : X(h) ? Y().isPaused() || c ? !1 : X(S) ? !0 : S : h, F = (ae) => {
|
|
2815
|
-
const ye = Ie(ae);
|
|
2816
|
-
return delete ye._k, q ? {
|
|
2817
|
-
isValidating: !0,
|
|
2818
|
-
isLoading: !0,
|
|
2819
|
-
...ye
|
|
2820
|
-
} : ye;
|
|
2821
|
-
}, ne = re(), Z = oe(), ce = F(ne), ge = ne === Z ? ce : F(Z);
|
|
2822
|
-
let se = ce;
|
|
2823
|
-
return [
|
|
2824
|
-
() => {
|
|
2825
|
-
const ae = F(re());
|
|
2826
|
-
return Ee(ae, se) ? (se.data = ae.data, se.isLoading = ae.isLoading, se.isValidating = ae.isValidating, se.error = ae.error, se) : (se = ae, ae);
|
|
2827
|
-
},
|
|
2828
|
-
() => ge
|
|
2829
|
-
];
|
|
2830
|
-
}, [
|
|
2831
|
-
o,
|
|
2832
|
-
R
|
|
2833
|
-
]), be = cr.useSyncExternalStore(I.useCallback(
|
|
2834
|
-
(q) => de(R, (F, ne) => {
|
|
2835
|
-
Ee(ne, F) || q();
|
|
2836
|
-
}),
|
|
2837
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2838
|
-
[
|
|
2839
|
-
o,
|
|
2840
|
-
R
|
|
2841
|
-
]
|
|
2842
|
-
), Oe[0], Oe[1]), G = !z.current, a = _[R] && _[R].length > 0, d = be.data, C = X(d) ? _e : d, A = be.error, M = I.useRef(C), H = m ? X(d) ? M.current : d : C, k = a && !X(A) ? !1 : G && !X(h) ? h : Y().isPaused() ? !1 : c ? X(C) ? !1 : S : X(C) || S, pe = !!(R && n && G && k), te = X(be.isValidating) ? pe : be.isValidating, je = X(be.isLoading) ? pe : be.isLoading, Re = I.useCallback(
|
|
2843
|
-
async (q) => {
|
|
2844
|
-
const F = $.current;
|
|
2845
|
-
if (!R || !F || W.current || Y().isPaused())
|
|
2846
|
-
return !1;
|
|
2847
|
-
let ne, Z, ce = !0;
|
|
2848
|
-
const ge = q || {}, se = !x[R] || !ge.dedupe, ae = () => Jt ? !W.current && R === T.current && z.current : R === T.current, ye = {
|
|
2849
|
-
isValidating: !1,
|
|
2850
|
-
isLoading: !1
|
|
2851
|
-
}, s = () => {
|
|
2852
|
-
le(ye);
|
|
2853
|
-
}, y = () => {
|
|
2854
|
-
const P = x[R];
|
|
2855
|
-
P && P[1] === Z && delete x[R];
|
|
2856
|
-
}, w = {
|
|
2857
|
-
isValidating: !0
|
|
2858
|
-
};
|
|
2859
|
-
X(re().data) && (w.isLoading = !0);
|
|
2860
|
-
try {
|
|
2861
|
-
if (se && (le(w), r.loadingTimeout && X(re().data) && setTimeout(() => {
|
|
2862
|
-
ce && ae() && Y().onLoadingSlow(R, r);
|
|
2863
|
-
}, r.loadingTimeout), x[R] = [
|
|
2864
|
-
F(fe),
|
|
2865
|
-
At()
|
|
2866
|
-
]), [ne, Z] = x[R], ne = await ne, se && setTimeout(y, r.dedupingInterval), !x[R] || x[R][1] !== Z)
|
|
2867
|
-
return se && ae() && Y().onDiscarded(R), !1;
|
|
2868
|
-
ye.error = we;
|
|
2869
|
-
const P = D[R];
|
|
2870
|
-
if (!X(P) && // case 1
|
|
2871
|
-
(Z <= P[0] || // case 2
|
|
2872
|
-
Z <= P[1] || // case 3
|
|
2873
|
-
P[1] === 0))
|
|
2874
|
-
return s(), se && ae() && Y().onDiscarded(R), !1;
|
|
2875
|
-
const Q = re().data;
|
|
2876
|
-
ye.data = i(Q, ne) ? Q : ne, se && ae() && Y().onSuccess(ne, R, r);
|
|
2877
|
-
} catch (P) {
|
|
2878
|
-
y();
|
|
2879
|
-
const Q = Y(), { shouldRetryOnError: K } = Q;
|
|
2880
|
-
Q.isPaused() || (ye.error = P, se && ae() && (Q.onError(P, R, Q), (K === !0 || xe(K) && K(P)) && (!Y().revalidateOnFocus || !Y().revalidateOnReconnect || B()) && Q.onErrorRetry(P, R, Q, (L) => {
|
|
2881
|
-
const N = _[R];
|
|
2882
|
-
N && N[0] && N[0](Fe.ERROR_REVALIDATE_EVENT, L);
|
|
2883
|
-
}, {
|
|
2884
|
-
retryCount: (ge.retryCount || 0) + 1,
|
|
2885
|
-
dedupe: !0
|
|
2886
|
-
})));
|
|
2887
|
-
}
|
|
2888
|
-
return ce = !1, s(), !0;
|
|
2889
|
-
},
|
|
2890
|
-
// `setState` is immutable, and `eventsCallback`, `fnArg`, and
|
|
2891
|
-
// `keyValidating` are depending on `key`, so we can exclude them from
|
|
2892
|
-
// the deps array.
|
|
2893
|
-
//
|
|
2894
|
-
// FIXME:
|
|
2895
|
-
// `fn` and `config` might be changed during the lifecycle,
|
|
2896
|
-
// but they might be changed every render like this.
|
|
2897
|
-
// `useSWR('key', () => fetch('/api/'), { suspense: true })`
|
|
2898
|
-
// So we omit the values from the deps array
|
|
2899
|
-
// even though it might cause unexpected behaviors.
|
|
2900
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2901
|
-
[
|
|
2902
|
-
R,
|
|
2903
|
-
o
|
|
2904
|
-
]
|
|
2905
|
-
), Ne = I.useCallback(
|
|
2906
|
-
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
2907
|
-
(...q) => $n(o, T.current, ...q),
|
|
2908
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2909
|
-
[]
|
|
2910
|
-
);
|
|
2911
|
-
if (ht(() => {
|
|
2912
|
-
$.current = n, ie.current = r, X(d) || (M.current = d);
|
|
2913
|
-
}), ht(() => {
|
|
2914
|
-
if (!R) return;
|
|
2915
|
-
const q = Re.bind(we, yt);
|
|
2916
|
-
let F = 0;
|
|
2917
|
-
const Z = Ur(R, _, (ce, ge = {}) => {
|
|
2918
|
-
if (ce == Fe.FOCUS_EVENT) {
|
|
2919
|
-
const se = Date.now();
|
|
2920
|
-
Y().revalidateOnFocus && se > F && B() && (F = se + Y().focusThrottleInterval, q());
|
|
2921
|
-
} else if (ce == Fe.RECONNECT_EVENT)
|
|
2922
|
-
Y().revalidateOnReconnect && B() && q();
|
|
2923
|
-
else {
|
|
2924
|
-
if (ce == Fe.MUTATE_EVENT)
|
|
2925
|
-
return Re();
|
|
2926
|
-
if (ce == Fe.ERROR_REVALIDATE_EVENT)
|
|
2927
|
-
return Re(ge);
|
|
2928
|
-
}
|
|
2929
|
-
});
|
|
2930
|
-
return W.current = !1, T.current = R, z.current = !0, le({
|
|
2931
|
-
_k: fe
|
|
2932
|
-
}), k && (X(C) || Ke ? q() : _r(q)), () => {
|
|
2933
|
-
W.current = !0, Z();
|
|
2934
|
-
};
|
|
2935
|
-
}, [
|
|
2936
|
-
R
|
|
2937
|
-
]), ht(() => {
|
|
2938
|
-
let q;
|
|
2939
|
-
function F() {
|
|
2940
|
-
const Z = xe(g) ? g(re().data) : g;
|
|
2941
|
-
Z && q !== -1 && (q = setTimeout(ne, Z));
|
|
2942
|
-
}
|
|
2943
|
-
function ne() {
|
|
2944
|
-
!re().error && (p || Y().isVisible()) && (v || Y().isOnline()) ? Re(yt).then(F) : F();
|
|
2945
|
-
}
|
|
2946
|
-
return F(), () => {
|
|
2947
|
-
q && (clearTimeout(q), q = -1);
|
|
2948
|
-
};
|
|
2949
|
-
}, [
|
|
2950
|
-
g,
|
|
2951
|
-
p,
|
|
2952
|
-
v,
|
|
2953
|
-
R
|
|
2954
|
-
]), I.useDebugValue(H), c && X(C) && R) {
|
|
2955
|
-
if (!Jt && Ke)
|
|
2956
|
-
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
2957
|
-
$.current = n, ie.current = r, W.current = !1;
|
|
2958
|
-
const q = V[R];
|
|
2959
|
-
if (!X(q)) {
|
|
2960
|
-
const F = Ne(q);
|
|
2961
|
-
tn(F);
|
|
2962
|
-
}
|
|
2963
|
-
if (X(A)) {
|
|
2964
|
-
const F = Re(yt);
|
|
2965
|
-
X(H) || (F.status = "fulfilled", F.value = !0), tn(F);
|
|
2966
|
-
} else
|
|
2967
|
-
throw A;
|
|
2968
|
-
}
|
|
2969
|
-
return {
|
|
2970
|
-
mutate: Ne,
|
|
2971
|
-
get data() {
|
|
2972
|
-
return he.data = !0, H;
|
|
2973
|
-
},
|
|
2974
|
-
get error() {
|
|
2975
|
-
return he.error = !0, A;
|
|
2976
|
-
},
|
|
2977
|
-
get isValidating() {
|
|
2978
|
-
return he.isValidating = !0, te;
|
|
2979
|
-
},
|
|
2980
|
-
get isLoading() {
|
|
2981
|
-
return he.isLoading = !0, je;
|
|
2982
|
-
}
|
|
2983
|
-
};
|
|
2984
|
-
}, $r = Dr(Ir);
|
|
2985
|
-
function Kr() {
|
|
2986
|
-
const { widgetCtx: t } = $e();
|
|
2987
|
-
return $r([t.config.token], t.api.widgetPrelude, {
|
|
2988
|
-
revalidateOnFocus: !1
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
function Xr() {
|
|
2992
|
-
const { widgetCtx: t } = $e();
|
|
2993
|
-
return {
|
|
2994
|
-
routerState: Be(t.routerCtx.state),
|
|
2995
|
-
toSessionsScreen: t.routerCtx.toSessionsScreen,
|
|
2996
|
-
toChatScreen: t.routerCtx.toChatScreen
|
|
2997
|
-
};
|
|
2998
|
-
}
|
|
2999
|
-
var Vn = {};
|
|
3000
|
-
const Wr = /* @__PURE__ */ Bn(rr);
|
|
3001
|
-
var nt = {}, nn;
|
|
3002
|
-
function Yr() {
|
|
3003
|
-
if (nn) return nt;
|
|
3004
|
-
nn = 1, Object.defineProperty(nt, "__esModule", { value: !0 });
|
|
3005
|
-
var t = I;
|
|
3006
|
-
function n() {
|
|
3007
|
-
var r = t.useRef(!1), o = t.useCallback(function() {
|
|
3008
|
-
return r.current;
|
|
3009
|
-
}, []);
|
|
3010
|
-
return t.useEffect(function() {
|
|
3011
|
-
return r.current = !0, function() {
|
|
3012
|
-
r.current = !1;
|
|
3013
|
-
};
|
|
3014
|
-
}, []), o;
|
|
3015
|
-
}
|
|
3016
|
-
return nt.default = n, nt;
|
|
3017
|
-
}
|
|
3018
|
-
Object.defineProperty(Vn, "__esModule", { value: !0 });
|
|
3019
|
-
var jt = Wr, _t = I, Vr = jt.__importDefault(Yr());
|
|
3020
|
-
function Hr(t, n, r) {
|
|
3021
|
-
n === void 0 && (n = []), r === void 0 && (r = { loading: !1 });
|
|
3022
|
-
var o = _t.useRef(0), i = Vr.default(), c = _t.useState(r), l = c[0], h = c[1], S = _t.useCallback(function() {
|
|
3023
|
-
for (var g = [], p = 0; p < arguments.length; p++)
|
|
3024
|
-
g[p] = arguments[p];
|
|
3025
|
-
var v = ++o.current;
|
|
3026
|
-
return l.loading || h(function(m) {
|
|
3027
|
-
return jt.__assign(jt.__assign({}, m), { loading: !0 });
|
|
3028
|
-
}), t.apply(void 0, g).then(function(m) {
|
|
3029
|
-
return i() && v === o.current && h({ value: m, loading: !1 }), m;
|
|
3030
|
-
}, function(m) {
|
|
3031
|
-
return i() && v === o.current && h({ error: m, loading: !1 }), m;
|
|
3032
|
-
});
|
|
3033
|
-
}, n);
|
|
3034
|
-
return [l, S];
|
|
3035
|
-
}
|
|
3036
|
-
var Qr = Vn.default = Hr;
|
|
3037
|
-
const De = /* @__PURE__ */ new Map();
|
|
3038
|
-
function Jr() {
|
|
3039
|
-
const [t, n] = I.useState([]), {
|
|
3040
|
-
widgetCtx: { api: r }
|
|
3041
|
-
} = $e();
|
|
3042
|
-
function o(p) {
|
|
3043
|
-
const v = p.map((m) => ({
|
|
3044
|
-
file: m,
|
|
3045
|
-
id: Gn(),
|
|
3046
|
-
status: "pending",
|
|
3047
|
-
progress: 0
|
|
3048
|
-
}));
|
|
3049
|
-
n((m) => [...m, ...v]), v.forEach(l);
|
|
3050
|
-
}
|
|
3051
|
-
function i(p, v) {
|
|
3052
|
-
n(
|
|
3053
|
-
(m) => m.map((_) => _.id === p ? { ..._, ...v } : _)
|
|
3054
|
-
);
|
|
3055
|
-
}
|
|
3056
|
-
function c(p) {
|
|
3057
|
-
n((v) => v.filter((m) => m.id !== p));
|
|
3058
|
-
}
|
|
3059
|
-
const l = async (p) => {
|
|
3060
|
-
const v = new AbortController();
|
|
3061
|
-
De.set(p.id, v);
|
|
3062
|
-
try {
|
|
3063
|
-
n(
|
|
3064
|
-
(_) => _.map(
|
|
3065
|
-
(D) => D.id === p.id ? { ...D, status: "uploading", progress: 0 } : D
|
|
3066
|
-
)
|
|
3067
|
-
);
|
|
3068
|
-
const m = await r.uploadFile({
|
|
3069
|
-
file: p.file,
|
|
3070
|
-
abortSignal: v.signal,
|
|
3071
|
-
onProgress: (_) => {
|
|
3072
|
-
i(p.id, { progress: _ });
|
|
3073
|
-
}
|
|
3074
|
-
});
|
|
3075
|
-
i(p.id, {
|
|
3076
|
-
status: "success",
|
|
3077
|
-
fileUrl: m.fileUrl,
|
|
3078
|
-
progress: 100
|
|
3079
|
-
});
|
|
3080
|
-
} catch (m) {
|
|
3081
|
-
v.signal.aborted || i(p.id, {
|
|
3082
|
-
status: "error",
|
|
3083
|
-
error: m instanceof Error ? m.message : "Upload failed",
|
|
3084
|
-
progress: 0
|
|
3085
|
-
});
|
|
3086
|
-
} finally {
|
|
3087
|
-
De.delete(p.id);
|
|
3088
|
-
}
|
|
3089
|
-
}, h = (p) => {
|
|
3090
|
-
const v = De.get(p);
|
|
3091
|
-
v && (v.abort(), De.delete(p)), c(p);
|
|
3092
|
-
}, S = I.useMemo(() => t.filter((p) => p.status === "success" && p.fileUrl), [t]);
|
|
3093
|
-
function g() {
|
|
3094
|
-
De.forEach((p) => p.abort()), De.clear(), n([]);
|
|
3095
|
-
}
|
|
3096
|
-
return I.useEffect(() => () => {
|
|
3097
|
-
De.forEach((p) => p.abort()), De.clear();
|
|
3098
|
-
}, []), {
|
|
3099
|
-
allFiles: t,
|
|
3100
|
-
appendFiles: o,
|
|
3101
|
-
handleCancelUpload: h,
|
|
3102
|
-
successFiles: S,
|
|
3103
|
-
emptyTheFiles: g,
|
|
3104
|
-
getFileById: (p) => t.find((v) => v.id === p),
|
|
3105
|
-
getUploadProgress: (p) => {
|
|
3106
|
-
var v;
|
|
3107
|
-
return ((v = t.find((m) => m.id === p)) == null ? void 0 : v.progress) ?? 0;
|
|
3108
|
-
},
|
|
3109
|
-
getUploadStatus: (p) => {
|
|
3110
|
-
var v;
|
|
3111
|
-
return (v = t.find((m) => m.id === p)) == null ? void 0 : v.status;
|
|
3112
|
-
},
|
|
3113
|
-
hasErrors: t.some((p) => p.status === "error"),
|
|
3114
|
-
isUploading: t.some((p) => p.status === "uploading")
|
|
3115
|
-
};
|
|
3116
|
-
}
|
|
3117
|
-
const Hn = I.createContext(null);
|
|
3118
|
-
function Zr({ children: t }) {
|
|
3119
|
-
const n = kn(), [r, o] = I.useState(n.isOpen ?? !1);
|
|
3120
|
-
return I.useEffect(() => {
|
|
3121
|
-
o((i) => n.isOpen ?? i);
|
|
3122
|
-
}, [n.isOpen]), I.useEffect(() => {
|
|
3123
|
-
const i = n.openAfterNSeconds;
|
|
3124
|
-
if (typeof i != "number" || isNaN(i))
|
|
3125
|
-
return;
|
|
3126
|
-
const c = setTimeout(() => o(!0), i * 1e3);
|
|
3127
|
-
return () => clearTimeout(c);
|
|
3128
|
-
}, [n.openAfterNSeconds]), /* @__PURE__ */ rn.jsx(Hn.Provider, { value: { isOpen: r, setIsOpen: o }, children: t });
|
|
3129
|
-
}
|
|
3130
|
-
function eo() {
|
|
3131
|
-
const t = I.useContext(Hn);
|
|
3132
|
-
if (!t)
|
|
3133
|
-
throw new Error(
|
|
3134
|
-
"useWidgetTrigger must be used within a WidgetTriggerProvider"
|
|
3135
|
-
);
|
|
3136
|
-
return t;
|
|
3137
|
-
}
|
|
3138
|
-
function to() {
|
|
3139
|
-
var h, S;
|
|
3140
|
-
const { widgetCtx: t, modesComponents: n } = $e(), { sessionState: r } = Mn(), o = t.modes, i = (h = r.session) == null ? void 0 : h.modeId, c = o.find((g) => g.id === i), l = (S = n == null ? void 0 : n.find(
|
|
3141
|
-
(g) => {
|
|
3142
|
-
var p, v;
|
|
3143
|
-
return [
|
|
3144
|
-
(c == null ? void 0 : c.id) || "",
|
|
3145
|
-
((p = c == null ? void 0 : c.name) == null ? void 0 : p.toLowerCase()) || "",
|
|
3146
|
-
((v = c == null ? void 0 : c.slug) == null ? void 0 : v.toLowerCase()) || ""
|
|
3147
|
-
].includes(g.key.toLowerCase());
|
|
3148
|
-
}
|
|
3149
|
-
)) == null ? void 0 : S.component;
|
|
3150
|
-
return {
|
|
3151
|
-
modes: o,
|
|
3152
|
-
modesComponents: n,
|
|
3153
|
-
activeModeId: i,
|
|
3154
|
-
activeMode: c,
|
|
3155
|
-
Component: l
|
|
3156
|
-
};
|
|
3157
|
-
}
|
|
3158
|
-
export {
|
|
3159
|
-
Fr as R,
|
|
3160
|
-
zr as W,
|
|
3161
|
-
Qr as _,
|
|
3162
|
-
kn as a,
|
|
3163
|
-
Br as b,
|
|
3164
|
-
Gr as c,
|
|
3165
|
-
ur as d,
|
|
3166
|
-
Kr as e,
|
|
3167
|
-
Be as f,
|
|
3168
|
-
Mn as g,
|
|
3169
|
-
Xr as h,
|
|
3170
|
-
Jr as i,
|
|
3171
|
-
eo as j,
|
|
3172
|
-
Zr as k,
|
|
3173
|
-
to as l,
|
|
3174
|
-
rn as m,
|
|
3175
|
-
rt as n,
|
|
3176
|
-
sn as o,
|
|
3177
|
-
_n as p,
|
|
3178
|
-
st as q,
|
|
3179
|
-
I as r,
|
|
3180
|
-
vn as s,
|
|
3181
|
-
$e as u
|
|
3182
|
-
};
|
|
3183
|
-
//# sourceMappingURL=useModes-BAr0RJcP.js.map
|