@protonradio/proton-ui 0.1.2 → 0.1.4

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