ynotsoft-dynamic-form 1.0.18 → 1.0.21

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,4812 @@
1
+ import * as oe from "react";
2
+ import we, { forwardRef as ri, useContext as ii, useLayoutEffect as ai, useRef as et, useState as ve, useMemo as ir, useCallback as Xt, createContext as oi, isValidElement as gt, cloneElement as ft, Children as si, useEffect as Le } from "react";
3
+ import { toast as ht } from "react-hot-toast";
4
+ import Pn from "dayjs";
5
+ import { Label as ci } from "@radix-ui/react-label";
6
+ import li from "react-select";
7
+ import lt, { createPortal as ui } from "react-dom";
8
+ import * as pe from "@radix-ui/react-select";
9
+ import { ChevronDownIcon as di, InformationCircleIcon as bi, CheckCircleIcon as gi, XCircleIcon as fi } from "@heroicons/react/20/solid";
10
+ import * as Se from "@radix-ui/react-popover";
11
+ import { DayPicker as ar } from "react-day-picker";
12
+ import { Separator as Wt } from "@radix-ui/react-separator";
13
+ import * as Vt from "@radix-ui/react-radio-group";
14
+ import { ExclamationCircleIcon as mi } from "@heroicons/react/24/outline";
15
+ function pi(e) {
16
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
17
+ }
18
+ var kt = { exports: {} }, $e = {};
19
+ /**
20
+ * @license React
21
+ * react-jsx-runtime.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ var Tn;
29
+ function vi() {
30
+ if (Tn) return $e;
31
+ Tn = 1;
32
+ var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
33
+ function o(s, l, d) {
34
+ var b, g = {}, x = null, R = null;
35
+ d !== void 0 && (x = "" + d), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (R = l.ref);
36
+ for (b in l) r.call(l, b) && !a.hasOwnProperty(b) && (g[b] = l[b]);
37
+ if (s && s.defaultProps) for (b in l = s.defaultProps, l) g[b] === void 0 && (g[b] = l[b]);
38
+ return { $$typeof: t, type: s, key: x, ref: R, props: g, _owner: i.current };
39
+ }
40
+ return $e.Fragment = n, $e.jsx = o, $e.jsxs = o, $e;
41
+ }
42
+ var Qe = {};
43
+ /**
44
+ * @license React
45
+ * react-jsx-runtime.development.js
46
+ *
47
+ * Copyright (c) Facebook, Inc. and its affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */
52
+ var Nn;
53
+ function hi() {
54
+ return Nn || (Nn = 1, process.env.NODE_ENV !== "production" && function() {
55
+ var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), E = Symbol.iterator, I = "@@iterator";
56
+ function T(c) {
57
+ if (c === null || typeof c != "object")
58
+ return null;
59
+ var f = E && c[E] || c[I];
60
+ return typeof f == "function" ? f : null;
61
+ }
62
+ var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
63
+ function P(c) {
64
+ {
65
+ for (var f = arguments.length, A = new Array(f > 1 ? f - 1 : 0), W = 1; W < f; W++)
66
+ A[W - 1] = arguments[W];
67
+ y("error", c, A);
68
+ }
69
+ }
70
+ function y(c, f, A) {
71
+ {
72
+ var W = p.ReactDebugCurrentFrame, te = W.getStackAddendum();
73
+ te !== "" && (f += "%s", A = A.concat([te]));
74
+ var ie = A.map(function(U) {
75
+ return String(U);
76
+ });
77
+ ie.unshift("Warning: " + f), Function.prototype.apply.call(console[c], console, ie);
78
+ }
79
+ }
80
+ var B = !1, h = !1, Q = !1, S = !1, j = !1, m;
81
+ m = Symbol.for("react.module.reference");
82
+ function G(c) {
83
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === a || j || c === i || c === d || c === b || S || c === R || B || h || Q || typeof c == "object" && c !== null && (c.$$typeof === x || c.$$typeof === g || c.$$typeof === o || c.$$typeof === s || c.$$typeof === l || // This needs to include all possible module reference object
84
+ // types supported by any Flight configuration anywhere since
85
+ // we don't know which Flight build this will end up being used
86
+ // with.
87
+ c.$$typeof === m || c.getModuleId !== void 0));
88
+ }
89
+ function X(c, f, A) {
90
+ var W = c.displayName;
91
+ if (W)
92
+ return W;
93
+ var te = f.displayName || f.name || "";
94
+ return te !== "" ? A + "(" + te + ")" : A;
95
+ }
96
+ function N(c) {
97
+ return c.displayName || "Context";
98
+ }
99
+ function ee(c) {
100
+ if (c == null)
101
+ return null;
102
+ if (typeof c.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
103
+ return c.displayName || c.name || null;
104
+ if (typeof c == "string")
105
+ return c;
106
+ switch (c) {
107
+ case r:
108
+ return "Fragment";
109
+ case n:
110
+ return "Portal";
111
+ case a:
112
+ return "Profiler";
113
+ case i:
114
+ return "StrictMode";
115
+ case d:
116
+ return "Suspense";
117
+ case b:
118
+ return "SuspenseList";
119
+ }
120
+ if (typeof c == "object")
121
+ switch (c.$$typeof) {
122
+ case s:
123
+ var f = c;
124
+ return N(f) + ".Consumer";
125
+ case o:
126
+ var A = c;
127
+ return N(A._context) + ".Provider";
128
+ case l:
129
+ return X(c, c.render, "ForwardRef");
130
+ case g:
131
+ var W = c.displayName || null;
132
+ return W !== null ? W : ee(c.type) || "Memo";
133
+ case x: {
134
+ var te = c, ie = te._payload, U = te._init;
135
+ try {
136
+ return ee(U(ie));
137
+ } catch {
138
+ return null;
139
+ }
140
+ }
141
+ }
142
+ return null;
143
+ }
144
+ var k = Object.assign, fe = 0, Ie, Re, Be, Ye, v, w, F;
145
+ function H() {
146
+ }
147
+ H.__reactDisabledLog = !0;
148
+ function M() {
149
+ {
150
+ if (fe === 0) {
151
+ Ie = console.log, Re = console.info, Be = console.warn, Ye = console.error, v = console.group, w = console.groupCollapsed, F = console.groupEnd;
152
+ var c = {
153
+ configurable: !0,
154
+ enumerable: !0,
155
+ value: H,
156
+ writable: !0
157
+ };
158
+ Object.defineProperties(console, {
159
+ info: c,
160
+ log: c,
161
+ warn: c,
162
+ error: c,
163
+ group: c,
164
+ groupCollapsed: c,
165
+ groupEnd: c
166
+ });
167
+ }
168
+ fe++;
169
+ }
170
+ }
171
+ function _() {
172
+ {
173
+ if (fe--, fe === 0) {
174
+ var c = {
175
+ configurable: !0,
176
+ enumerable: !0,
177
+ writable: !0
178
+ };
179
+ Object.defineProperties(console, {
180
+ log: k({}, c, {
181
+ value: Ie
182
+ }),
183
+ info: k({}, c, {
184
+ value: Re
185
+ }),
186
+ warn: k({}, c, {
187
+ value: Be
188
+ }),
189
+ error: k({}, c, {
190
+ value: Ye
191
+ }),
192
+ group: k({}, c, {
193
+ value: v
194
+ }),
195
+ groupCollapsed: k({}, c, {
196
+ value: w
197
+ }),
198
+ groupEnd: k({}, c, {
199
+ value: F
200
+ })
201
+ });
202
+ }
203
+ fe < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
204
+ }
205
+ }
206
+ var Y = p.ReactCurrentDispatcher, Z;
207
+ function z(c, f, A) {
208
+ {
209
+ if (Z === void 0)
210
+ try {
211
+ throw Error();
212
+ } catch (te) {
213
+ var W = te.stack.trim().match(/\n( *(at )?)/);
214
+ Z = W && W[1] || "";
215
+ }
216
+ return `
217
+ ` + Z + c;
218
+ }
219
+ }
220
+ var $ = !1, J;
221
+ {
222
+ var be = typeof WeakMap == "function" ? WeakMap : Map;
223
+ J = new be();
224
+ }
225
+ function C(c, f) {
226
+ if (!c || $)
227
+ return "";
228
+ {
229
+ var A = J.get(c);
230
+ if (A !== void 0)
231
+ return A;
232
+ }
233
+ var W;
234
+ $ = !0;
235
+ var te = Error.prepareStackTrace;
236
+ Error.prepareStackTrace = void 0;
237
+ var ie;
238
+ ie = Y.current, Y.current = null, M();
239
+ try {
240
+ if (f) {
241
+ var U = function() {
242
+ throw Error();
243
+ };
244
+ if (Object.defineProperty(U.prototype, "props", {
245
+ set: function() {
246
+ throw Error();
247
+ }
248
+ }), typeof Reflect == "object" && Reflect.construct) {
249
+ try {
250
+ Reflect.construct(U, []);
251
+ } catch (he) {
252
+ W = he;
253
+ }
254
+ Reflect.construct(c, [], U);
255
+ } else {
256
+ try {
257
+ U.call();
258
+ } catch (he) {
259
+ W = he;
260
+ }
261
+ c.call(U.prototype);
262
+ }
263
+ } else {
264
+ try {
265
+ throw Error();
266
+ } catch (he) {
267
+ W = he;
268
+ }
269
+ c();
270
+ }
271
+ } catch (he) {
272
+ if (he && W && typeof he.stack == "string") {
273
+ for (var L = he.stack.split(`
274
+ `), me = W.stack.split(`
275
+ `), ce = L.length - 1, le = me.length - 1; ce >= 1 && le >= 0 && L[ce] !== me[le]; )
276
+ le--;
277
+ for (; ce >= 1 && le >= 0; ce--, le--)
278
+ if (L[ce] !== me[le]) {
279
+ if (ce !== 1 || le !== 1)
280
+ do
281
+ if (ce--, le--, le < 0 || L[ce] !== me[le]) {
282
+ var Ge = `
283
+ ` + L[ce].replace(" at new ", " at ");
284
+ return c.displayName && Ge.includes("<anonymous>") && (Ge = Ge.replace("<anonymous>", c.displayName)), typeof c == "function" && J.set(c, Ge), Ge;
285
+ }
286
+ while (ce >= 1 && le >= 0);
287
+ break;
288
+ }
289
+ }
290
+ } finally {
291
+ $ = !1, Y.current = ie, _(), Error.prepareStackTrace = te;
292
+ }
293
+ var Fe = c ? c.displayName || c.name : "", We = Fe ? z(Fe) : "";
294
+ return typeof c == "function" && J.set(c, We), We;
295
+ }
296
+ function Ae(c, f, A) {
297
+ return C(c, !1);
298
+ }
299
+ function Ze(c) {
300
+ var f = c.prototype;
301
+ return !!(f && f.isReactComponent);
302
+ }
303
+ function Xe(c, f, A) {
304
+ if (c == null)
305
+ return "";
306
+ if (typeof c == "function")
307
+ return C(c, Ze(c));
308
+ if (typeof c == "string")
309
+ return z(c);
310
+ switch (c) {
311
+ case d:
312
+ return z("Suspense");
313
+ case b:
314
+ return z("SuspenseList");
315
+ }
316
+ if (typeof c == "object")
317
+ switch (c.$$typeof) {
318
+ case l:
319
+ return Ae(c.render);
320
+ case g:
321
+ return Xe(c.type, f, A);
322
+ case x: {
323
+ var W = c, te = W._payload, ie = W._init;
324
+ try {
325
+ return Xe(ie(te), f, A);
326
+ } catch {
327
+ }
328
+ }
329
+ }
330
+ return "";
331
+ }
332
+ var Ue = Object.prototype.hasOwnProperty, fn = {}, mn = p.ReactDebugCurrentFrame;
333
+ function ct(c) {
334
+ if (c) {
335
+ var f = c._owner, A = Xe(c.type, c._source, f ? f.type : null);
336
+ mn.setExtraStackFrame(A);
337
+ } else
338
+ mn.setExtraStackFrame(null);
339
+ }
340
+ function Wr(c, f, A, W, te) {
341
+ {
342
+ var ie = Function.call.bind(Ue);
343
+ for (var U in c)
344
+ if (ie(c, U)) {
345
+ var L = void 0;
346
+ try {
347
+ if (typeof c[U] != "function") {
348
+ var me = Error((W || "React class") + ": " + A + " type `" + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[U] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
349
+ throw me.name = "Invariant Violation", me;
350
+ }
351
+ L = c[U](f, U, W, A, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
352
+ } catch (ce) {
353
+ L = ce;
354
+ }
355
+ L && !(L instanceof Error) && (ct(te), P("%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).", W || "React class", A, U, typeof L), ct(null)), L instanceof Error && !(L.message in fn) && (fn[L.message] = !0, ct(te), P("Failed %s type: %s", A, L.message), ct(null));
356
+ }
357
+ }
358
+ }
359
+ var Vr = Array.isArray;
360
+ function Tt(c) {
361
+ return Vr(c);
362
+ }
363
+ function Mr(c) {
364
+ {
365
+ var f = typeof Symbol == "function" && Symbol.toStringTag, A = f && c[Symbol.toStringTag] || c.constructor.name || "Object";
366
+ return A;
367
+ }
368
+ }
369
+ function Or(c) {
370
+ try {
371
+ return pn(c), !1;
372
+ } catch {
373
+ return !0;
374
+ }
375
+ }
376
+ function pn(c) {
377
+ return "" + c;
378
+ }
379
+ function vn(c) {
380
+ if (Or(c))
381
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mr(c)), pn(c);
382
+ }
383
+ var hn = p.ReactCurrentOwner, Yr = {
384
+ key: !0,
385
+ ref: !0,
386
+ __self: !0,
387
+ __source: !0
388
+ }, xn, In;
389
+ function Zr(c) {
390
+ if (Ue.call(c, "ref")) {
391
+ var f = Object.getOwnPropertyDescriptor(c, "ref").get;
392
+ if (f && f.isReactWarning)
393
+ return !1;
394
+ }
395
+ return c.ref !== void 0;
396
+ }
397
+ function Hr(c) {
398
+ if (Ue.call(c, "key")) {
399
+ var f = Object.getOwnPropertyDescriptor(c, "key").get;
400
+ if (f && f.isReactWarning)
401
+ return !1;
402
+ }
403
+ return c.key !== void 0;
404
+ }
405
+ function Fr(c, f) {
406
+ typeof c.ref == "string" && hn.current;
407
+ }
408
+ function zr(c, f) {
409
+ {
410
+ var A = function() {
411
+ xn || (xn = !0, P("%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)", f));
412
+ };
413
+ A.isReactWarning = !0, Object.defineProperty(c, "key", {
414
+ get: A,
415
+ configurable: !0
416
+ });
417
+ }
418
+ }
419
+ function Jr(c, f) {
420
+ {
421
+ var A = function() {
422
+ In || (In = !0, P("%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)", f));
423
+ };
424
+ A.isReactWarning = !0, Object.defineProperty(c, "ref", {
425
+ get: A,
426
+ configurable: !0
427
+ });
428
+ }
429
+ }
430
+ var kr = function(c, f, A, W, te, ie, U) {
431
+ var L = {
432
+ // This tag allows us to uniquely identify this as a React Element
433
+ $$typeof: t,
434
+ // Built-in properties that belong on the element
435
+ type: c,
436
+ key: f,
437
+ ref: A,
438
+ props: U,
439
+ // Record the component responsible for creating this element.
440
+ _owner: ie
441
+ };
442
+ return L._store = {}, Object.defineProperty(L._store, "validated", {
443
+ configurable: !1,
444
+ enumerable: !1,
445
+ writable: !0,
446
+ value: !1
447
+ }), Object.defineProperty(L, "_self", {
448
+ configurable: !1,
449
+ enumerable: !1,
450
+ writable: !1,
451
+ value: W
452
+ }), Object.defineProperty(L, "_source", {
453
+ configurable: !1,
454
+ enumerable: !1,
455
+ writable: !1,
456
+ value: te
457
+ }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
458
+ };
459
+ function Lr(c, f, A, W, te) {
460
+ {
461
+ var ie, U = {}, L = null, me = null;
462
+ A !== void 0 && (vn(A), L = "" + A), Hr(f) && (vn(f.key), L = "" + f.key), Zr(f) && (me = f.ref, Fr(f, te));
463
+ for (ie in f)
464
+ Ue.call(f, ie) && !Yr.hasOwnProperty(ie) && (U[ie] = f[ie]);
465
+ if (c && c.defaultProps) {
466
+ var ce = c.defaultProps;
467
+ for (ie in ce)
468
+ U[ie] === void 0 && (U[ie] = ce[ie]);
469
+ }
470
+ if (L || me) {
471
+ var le = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
472
+ L && zr(U, le), me && Jr(U, le);
473
+ }
474
+ return kr(c, L, me, te, W, hn.current, U);
475
+ }
476
+ }
477
+ var Nt = p.ReactCurrentOwner, yn = p.ReactDebugCurrentFrame;
478
+ function He(c) {
479
+ if (c) {
480
+ var f = c._owner, A = Xe(c.type, c._source, f ? f.type : null);
481
+ yn.setExtraStackFrame(A);
482
+ } else
483
+ yn.setExtraStackFrame(null);
484
+ }
485
+ var St;
486
+ St = !1;
487
+ function jt(c) {
488
+ return typeof c == "object" && c !== null && c.$$typeof === t;
489
+ }
490
+ function Cn() {
491
+ {
492
+ if (Nt.current) {
493
+ var c = ee(Nt.current.type);
494
+ if (c)
495
+ return `
496
+
497
+ Check the render method of \`` + c + "`.";
498
+ }
499
+ return "";
500
+ }
501
+ }
502
+ function Dr(c) {
503
+ return "";
504
+ }
505
+ var An = {};
506
+ function _r(c) {
507
+ {
508
+ var f = Cn();
509
+ if (!f) {
510
+ var A = typeof c == "string" ? c : c.displayName || c.name;
511
+ A && (f = `
512
+
513
+ Check the top-level render call using <` + A + ">.");
514
+ }
515
+ return f;
516
+ }
517
+ }
518
+ function Gn(c, f) {
519
+ {
520
+ if (!c._store || c._store.validated || c.key != null)
521
+ return;
522
+ c._store.validated = !0;
523
+ var A = _r(f);
524
+ if (An[A])
525
+ return;
526
+ An[A] = !0;
527
+ var W = "";
528
+ c && c._owner && c._owner !== Nt.current && (W = " It was passed a child from " + ee(c._owner.type) + "."), He(c), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', A, W), He(null);
529
+ }
530
+ }
531
+ function wn(c, f) {
532
+ {
533
+ if (typeof c != "object")
534
+ return;
535
+ if (Tt(c))
536
+ for (var A = 0; A < c.length; A++) {
537
+ var W = c[A];
538
+ jt(W) && Gn(W, f);
539
+ }
540
+ else if (jt(c))
541
+ c._store && (c._store.validated = !0);
542
+ else if (c) {
543
+ var te = T(c);
544
+ if (typeof te == "function" && te !== c.entries)
545
+ for (var ie = te.call(c), U; !(U = ie.next()).done; )
546
+ jt(U.value) && Gn(U.value, f);
547
+ }
548
+ }
549
+ }
550
+ function Ur(c) {
551
+ {
552
+ var f = c.type;
553
+ if (f == null || typeof f == "string")
554
+ return;
555
+ var A;
556
+ if (typeof f == "function")
557
+ A = f.propTypes;
558
+ else if (typeof f == "object" && (f.$$typeof === l || // Note: Memo only checks outer props here.
559
+ // Inner props are checked in the reconciler.
560
+ f.$$typeof === g))
561
+ A = f.propTypes;
562
+ else
563
+ return;
564
+ if (A) {
565
+ var W = ee(f);
566
+ Wr(A, c.props, "prop", W, c);
567
+ } else if (f.PropTypes !== void 0 && !St) {
568
+ St = !0;
569
+ var te = ee(f);
570
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
571
+ }
572
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
+ }
574
+ }
575
+ function $r(c) {
576
+ {
577
+ for (var f = Object.keys(c.props), A = 0; A < f.length; A++) {
578
+ var W = f[A];
579
+ if (W !== "children" && W !== "key") {
580
+ He(c), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", W), He(null);
581
+ break;
582
+ }
583
+ }
584
+ c.ref !== null && (He(c), P("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
585
+ }
586
+ }
587
+ var Rn = {};
588
+ function En(c, f, A, W, te, ie) {
589
+ {
590
+ var U = G(c);
591
+ if (!U) {
592
+ var L = "";
593
+ (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var me = Dr();
595
+ me ? L += me : L += Cn();
596
+ var ce;
597
+ c === null ? ce = "null" : Tt(c) ? ce = "array" : c !== void 0 && c.$$typeof === t ? (ce = "<" + (ee(c.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : ce = typeof c, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ce, L);
598
+ }
599
+ var le = Lr(c, f, A, te, ie);
600
+ if (le == null)
601
+ return le;
602
+ if (U) {
603
+ var Ge = f.children;
604
+ if (Ge !== void 0)
605
+ if (W)
606
+ if (Tt(Ge)) {
607
+ for (var Fe = 0; Fe < Ge.length; Fe++)
608
+ wn(Ge[Fe], c);
609
+ Object.freeze && Object.freeze(Ge);
610
+ } else
611
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
+ else
613
+ wn(Ge, c);
614
+ }
615
+ if (Ue.call(f, "key")) {
616
+ var We = ee(c), he = Object.keys(f).filter(function(ni) {
617
+ return ni !== "key";
618
+ }), Bt = he.length > 0 ? "{key: someKey, " + he.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!Rn[We + Bt]) {
620
+ var ti = he.length > 0 ? "{" + he.join(": ..., ") + ": ...}" : "{}";
621
+ P(`A props object containing a "key" prop is being spread into JSX:
622
+ let props = %s;
623
+ <%s {...props} />
624
+ React keys must be passed directly to JSX without using spread:
625
+ let props = %s;
626
+ <%s key={someKey} {...props} />`, Bt, We, ti, We), Rn[We + Bt] = !0;
627
+ }
628
+ }
629
+ return c === r ? $r(le) : Ur(le), le;
630
+ }
631
+ }
632
+ function Qr(c, f, A) {
633
+ return En(c, f, A, !0);
634
+ }
635
+ function Kr(c, f, A) {
636
+ return En(c, f, A, !1);
637
+ }
638
+ var qr = Kr, ei = Qr;
639
+ Qe.Fragment = r, Qe.jsx = qr, Qe.jsxs = ei;
640
+ }()), Qe;
641
+ }
642
+ process.env.NODE_ENV === "production" ? kt.exports = vi() : kt.exports = hi();
643
+ var u = kt.exports;
644
+ function xi(e) {
645
+ return /* @__PURE__ */ u.jsx("input", { type: "hidden", name: e.name, value: e.value }, e.name);
646
+ }
647
+ function tt(e) {
648
+ "@babel/helpers - typeof";
649
+ return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
650
+ return typeof t;
651
+ } : function(t) {
652
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
653
+ }, tt(e);
654
+ }
655
+ function Ii(e, t) {
656
+ if (tt(e) != "object" || !e) return e;
657
+ var n = e[Symbol.toPrimitive];
658
+ if (n !== void 0) {
659
+ var r = n.call(e, t);
660
+ if (tt(r) != "object") return r;
661
+ throw new TypeError("@@toPrimitive must return a primitive value.");
662
+ }
663
+ return (t === "string" ? String : Number)(e);
664
+ }
665
+ function yi(e) {
666
+ var t = Ii(e, "string");
667
+ return tt(t) == "symbol" ? t : t + "";
668
+ }
669
+ function Ci(e, t, n) {
670
+ return (t = yi(t)) in e ? Object.defineProperty(e, t, {
671
+ value: n,
672
+ enumerable: !0,
673
+ configurable: !0,
674
+ writable: !0
675
+ }) : e[t] = n, e;
676
+ }
677
+ function Sn(e, t) {
678
+ var n = Object.keys(e);
679
+ if (Object.getOwnPropertySymbols) {
680
+ var r = Object.getOwnPropertySymbols(e);
681
+ t && (r = r.filter(function(i) {
682
+ return Object.getOwnPropertyDescriptor(e, i).enumerable;
683
+ })), n.push.apply(n, r);
684
+ }
685
+ return n;
686
+ }
687
+ function ae(e) {
688
+ for (var t = 1; t < arguments.length; t++) {
689
+ var n = arguments[t] != null ? arguments[t] : {};
690
+ t % 2 ? Sn(Object(n), !0).forEach(function(r) {
691
+ Ci(e, r, n[r]);
692
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Sn(Object(n)).forEach(function(r) {
693
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
694
+ });
695
+ }
696
+ return e;
697
+ }
698
+ function tn(e, t) {
699
+ if (e == null) return {};
700
+ var n = {};
701
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
702
+ if (t.indexOf(r) !== -1) continue;
703
+ n[r] = e[r];
704
+ }
705
+ return n;
706
+ }
707
+ function Ce(e, t) {
708
+ if (e == null) return {};
709
+ var n, r, i = tn(e, t);
710
+ if (Object.getOwnPropertySymbols) {
711
+ var a = Object.getOwnPropertySymbols(e);
712
+ for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
713
+ }
714
+ return i;
715
+ }
716
+ var jn = Number.isNaN || function(t) {
717
+ return typeof t == "number" && t !== t;
718
+ };
719
+ function Ai(e, t) {
720
+ return !!(e === t || jn(e) && jn(t));
721
+ }
722
+ function Gi(e, t) {
723
+ if (e.length !== t.length)
724
+ return !1;
725
+ for (var n = 0; n < e.length; n++)
726
+ if (!Ai(e[n], t[n]))
727
+ return !1;
728
+ return !0;
729
+ }
730
+ function wi(e, t) {
731
+ t === void 0 && (t = Gi);
732
+ var n = null;
733
+ function r() {
734
+ for (var i = [], a = 0; a < arguments.length; a++)
735
+ i[a] = arguments[a];
736
+ if (n && n.lastThis === this && t(i, n.lastArgs))
737
+ return n.lastResult;
738
+ var o = e.apply(this, i);
739
+ return n = {
740
+ lastResult: o,
741
+ lastArgs: i,
742
+ lastThis: this
743
+ }, o;
744
+ }
745
+ return r.clear = function() {
746
+ n = null;
747
+ }, r;
748
+ }
749
+ function D() {
750
+ return D = Object.assign ? Object.assign.bind() : function(e) {
751
+ for (var t = 1; t < arguments.length; t++) {
752
+ var n = arguments[t];
753
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
754
+ }
755
+ return e;
756
+ }, D.apply(null, arguments);
757
+ }
758
+ function Ri(e) {
759
+ if (e.sheet)
760
+ return e.sheet;
761
+ for (var t = 0; t < document.styleSheets.length; t++)
762
+ if (document.styleSheets[t].ownerNode === e)
763
+ return document.styleSheets[t];
764
+ }
765
+ function Ei(e) {
766
+ var t = document.createElement("style");
767
+ return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
768
+ }
769
+ var Pi = /* @__PURE__ */ function() {
770
+ function e(n) {
771
+ var r = this;
772
+ this._insertTag = function(i) {
773
+ var a;
774
+ r.tags.length === 0 ? r.insertionPoint ? a = r.insertionPoint.nextSibling : r.prepend ? a = r.container.firstChild : a = r.before : a = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(i, a), r.tags.push(i);
775
+ }, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
776
+ }
777
+ var t = e.prototype;
778
+ return t.hydrate = function(r) {
779
+ r.forEach(this._insertTag);
780
+ }, t.insert = function(r) {
781
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ei(this));
782
+ var i = this.tags[this.tags.length - 1];
783
+ if (this.isSpeedy) {
784
+ var a = Ri(i);
785
+ try {
786
+ a.insertRule(r, a.cssRules.length);
787
+ } catch {
788
+ }
789
+ } else
790
+ i.appendChild(document.createTextNode(r));
791
+ this.ctr++;
792
+ }, t.flush = function() {
793
+ this.tags.forEach(function(r) {
794
+ var i;
795
+ return (i = r.parentNode) == null ? void 0 : i.removeChild(r);
796
+ }), this.tags = [], this.ctr = 0;
797
+ }, e;
798
+ }(), ge = "-ms-", xt = "-moz-", K = "-webkit-", or = "comm", nn = "rule", rn = "decl", Ti = "@import", sr = "@keyframes", Ni = "@layer", Si = Math.abs, Gt = String.fromCharCode, ji = Object.assign;
799
+ function Bi(e, t) {
800
+ return de(e, 0) ^ 45 ? (((t << 2 ^ de(e, 0)) << 2 ^ de(e, 1)) << 2 ^ de(e, 2)) << 2 ^ de(e, 3) : 0;
801
+ }
802
+ function cr(e) {
803
+ return e.trim();
804
+ }
805
+ function Xi(e, t) {
806
+ return (e = t.exec(e)) ? e[0] : e;
807
+ }
808
+ function q(e, t, n) {
809
+ return e.replace(t, n);
810
+ }
811
+ function Lt(e, t) {
812
+ return e.indexOf(t);
813
+ }
814
+ function de(e, t) {
815
+ return e.charCodeAt(t) | 0;
816
+ }
817
+ function nt(e, t, n) {
818
+ return e.slice(t, n);
819
+ }
820
+ function Ee(e) {
821
+ return e.length;
822
+ }
823
+ function an(e) {
824
+ return e.length;
825
+ }
826
+ function ut(e, t) {
827
+ return t.push(e), e;
828
+ }
829
+ function Wi(e, t) {
830
+ return e.map(t).join("");
831
+ }
832
+ var wt = 1, De = 1, lr = 0, xe = 0, ue = 0, _e = "";
833
+ function Rt(e, t, n, r, i, a, o) {
834
+ return { value: e, root: t, parent: n, type: r, props: i, children: a, line: wt, column: De, length: o, return: "" };
835
+ }
836
+ function Ke(e, t) {
837
+ return ji(Rt("", null, null, "", null, null, 0), e, { length: -e.length }, t);
838
+ }
839
+ function Vi() {
840
+ return ue;
841
+ }
842
+ function Mi() {
843
+ return ue = xe > 0 ? de(_e, --xe) : 0, De--, ue === 10 && (De = 1, wt--), ue;
844
+ }
845
+ function ye() {
846
+ return ue = xe < lr ? de(_e, xe++) : 0, De++, ue === 10 && (De = 1, wt++), ue;
847
+ }
848
+ function Te() {
849
+ return de(_e, xe);
850
+ }
851
+ function mt() {
852
+ return xe;
853
+ }
854
+ function ot(e, t) {
855
+ return nt(_e, e, t);
856
+ }
857
+ function rt(e) {
858
+ switch (e) {
859
+ case 0:
860
+ case 9:
861
+ case 10:
862
+ case 13:
863
+ case 32:
864
+ return 5;
865
+ case 33:
866
+ case 43:
867
+ case 44:
868
+ case 47:
869
+ case 62:
870
+ case 64:
871
+ case 126:
872
+ case 59:
873
+ case 123:
874
+ case 125:
875
+ return 4;
876
+ case 58:
877
+ return 3;
878
+ case 34:
879
+ case 39:
880
+ case 40:
881
+ case 91:
882
+ return 2;
883
+ case 41:
884
+ case 93:
885
+ return 1;
886
+ }
887
+ return 0;
888
+ }
889
+ function ur(e) {
890
+ return wt = De = 1, lr = Ee(_e = e), xe = 0, [];
891
+ }
892
+ function dr(e) {
893
+ return _e = "", e;
894
+ }
895
+ function pt(e) {
896
+ return cr(ot(xe - 1, Dt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
897
+ }
898
+ function Oi(e) {
899
+ for (; (ue = Te()) && ue < 33; )
900
+ ye();
901
+ return rt(e) > 2 || rt(ue) > 3 ? "" : " ";
902
+ }
903
+ function Yi(e, t) {
904
+ for (; --t && ye() && !(ue < 48 || ue > 102 || ue > 57 && ue < 65 || ue > 70 && ue < 97); )
905
+ ;
906
+ return ot(e, mt() + (t < 6 && Te() == 32 && ye() == 32));
907
+ }
908
+ function Dt(e) {
909
+ for (; ye(); )
910
+ switch (ue) {
911
+ case e:
912
+ return xe;
913
+ case 34:
914
+ case 39:
915
+ e !== 34 && e !== 39 && Dt(ue);
916
+ break;
917
+ case 40:
918
+ e === 41 && Dt(e);
919
+ break;
920
+ case 92:
921
+ ye();
922
+ break;
923
+ }
924
+ return xe;
925
+ }
926
+ function Zi(e, t) {
927
+ for (; ye() && e + ue !== 57; )
928
+ if (e + ue === 84 && Te() === 47)
929
+ break;
930
+ return "/*" + ot(t, xe - 1) + "*" + Gt(e === 47 ? e : ye());
931
+ }
932
+ function Hi(e) {
933
+ for (; !rt(Te()); )
934
+ ye();
935
+ return ot(e, xe);
936
+ }
937
+ function Fi(e) {
938
+ return dr(vt("", null, null, null, [""], e = ur(e), 0, [0], e));
939
+ }
940
+ function vt(e, t, n, r, i, a, o, s, l) {
941
+ for (var d = 0, b = 0, g = o, x = 0, R = 0, E = 0, I = 1, T = 1, p = 1, P = 0, y = "", B = i, h = a, Q = r, S = y; T; )
942
+ switch (E = P, P = ye()) {
943
+ case 40:
944
+ if (E != 108 && de(S, g - 1) == 58) {
945
+ Lt(S += q(pt(P), "&", "&\f"), "&\f") != -1 && (p = -1);
946
+ break;
947
+ }
948
+ case 34:
949
+ case 39:
950
+ case 91:
951
+ S += pt(P);
952
+ break;
953
+ case 9:
954
+ case 10:
955
+ case 13:
956
+ case 32:
957
+ S += Oi(E);
958
+ break;
959
+ case 92:
960
+ S += Yi(mt() - 1, 7);
961
+ continue;
962
+ case 47:
963
+ switch (Te()) {
964
+ case 42:
965
+ case 47:
966
+ ut(zi(Zi(ye(), mt()), t, n), l);
967
+ break;
968
+ default:
969
+ S += "/";
970
+ }
971
+ break;
972
+ case 123 * I:
973
+ s[d++] = Ee(S) * p;
974
+ case 125 * I:
975
+ case 59:
976
+ case 0:
977
+ switch (P) {
978
+ case 0:
979
+ case 125:
980
+ T = 0;
981
+ case 59 + b:
982
+ p == -1 && (S = q(S, /\f/g, "")), R > 0 && Ee(S) - g && ut(R > 32 ? Xn(S + ";", r, n, g - 1) : Xn(q(S, " ", "") + ";", r, n, g - 2), l);
983
+ break;
984
+ case 59:
985
+ S += ";";
986
+ default:
987
+ if (ut(Q = Bn(S, t, n, d, b, i, s, y, B = [], h = [], g), a), P === 123)
988
+ if (b === 0)
989
+ vt(S, t, Q, Q, B, a, g, s, h);
990
+ else
991
+ switch (x === 99 && de(S, 3) === 110 ? 100 : x) {
992
+ case 100:
993
+ case 108:
994
+ case 109:
995
+ case 115:
996
+ vt(e, Q, Q, r && ut(Bn(e, Q, Q, 0, 0, i, s, y, i, B = [], g), h), i, h, g, s, r ? B : h);
997
+ break;
998
+ default:
999
+ vt(S, Q, Q, Q, [""], h, 0, s, h);
1000
+ }
1001
+ }
1002
+ d = b = R = 0, I = p = 1, y = S = "", g = o;
1003
+ break;
1004
+ case 58:
1005
+ g = 1 + Ee(S), R = E;
1006
+ default:
1007
+ if (I < 1) {
1008
+ if (P == 123)
1009
+ --I;
1010
+ else if (P == 125 && I++ == 0 && Mi() == 125)
1011
+ continue;
1012
+ }
1013
+ switch (S += Gt(P), P * I) {
1014
+ case 38:
1015
+ p = b > 0 ? 1 : (S += "\f", -1);
1016
+ break;
1017
+ case 44:
1018
+ s[d++] = (Ee(S) - 1) * p, p = 1;
1019
+ break;
1020
+ case 64:
1021
+ Te() === 45 && (S += pt(ye())), x = Te(), b = g = Ee(y = S += Hi(mt())), P++;
1022
+ break;
1023
+ case 45:
1024
+ E === 45 && Ee(S) == 2 && (I = 0);
1025
+ }
1026
+ }
1027
+ return a;
1028
+ }
1029
+ function Bn(e, t, n, r, i, a, o, s, l, d, b) {
1030
+ for (var g = i - 1, x = i === 0 ? a : [""], R = an(x), E = 0, I = 0, T = 0; E < r; ++E)
1031
+ for (var p = 0, P = nt(e, g + 1, g = Si(I = o[E])), y = e; p < R; ++p)
1032
+ (y = cr(I > 0 ? x[p] + " " + P : q(P, /&\f/g, x[p]))) && (l[T++] = y);
1033
+ return Rt(e, t, n, i === 0 ? nn : s, l, d, b);
1034
+ }
1035
+ function zi(e, t, n) {
1036
+ return Rt(e, t, n, or, Gt(Vi()), nt(e, 2, -2), 0);
1037
+ }
1038
+ function Xn(e, t, n, r) {
1039
+ return Rt(e, t, n, rn, nt(e, 0, r), nt(e, r + 1, -1), r);
1040
+ }
1041
+ function ke(e, t) {
1042
+ for (var n = "", r = an(e), i = 0; i < r; i++)
1043
+ n += t(e[i], i, e, t) || "";
1044
+ return n;
1045
+ }
1046
+ function Ji(e, t, n, r) {
1047
+ switch (e.type) {
1048
+ case Ni:
1049
+ if (e.children.length) break;
1050
+ case Ti:
1051
+ case rn:
1052
+ return e.return = e.return || e.value;
1053
+ case or:
1054
+ return "";
1055
+ case sr:
1056
+ return e.return = e.value + "{" + ke(e.children, r) + "}";
1057
+ case nn:
1058
+ e.value = e.props.join(",");
1059
+ }
1060
+ return Ee(n = ke(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1061
+ }
1062
+ function ki(e) {
1063
+ var t = an(e);
1064
+ return function(n, r, i, a) {
1065
+ for (var o = "", s = 0; s < t; s++)
1066
+ o += e[s](n, r, i, a) || "";
1067
+ return o;
1068
+ };
1069
+ }
1070
+ function Li(e) {
1071
+ return function(t) {
1072
+ t.root || (t = t.return) && e(t);
1073
+ };
1074
+ }
1075
+ function Di(e) {
1076
+ var t = /* @__PURE__ */ Object.create(null);
1077
+ return function(n) {
1078
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
1079
+ };
1080
+ }
1081
+ var _i = function(t, n, r) {
1082
+ for (var i = 0, a = 0; i = a, a = Te(), i === 38 && a === 12 && (n[r] = 1), !rt(a); )
1083
+ ye();
1084
+ return ot(t, xe);
1085
+ }, Ui = function(t, n) {
1086
+ var r = -1, i = 44;
1087
+ do
1088
+ switch (rt(i)) {
1089
+ case 0:
1090
+ i === 38 && Te() === 12 && (n[r] = 1), t[r] += _i(xe - 1, n, r);
1091
+ break;
1092
+ case 2:
1093
+ t[r] += pt(i);
1094
+ break;
1095
+ case 4:
1096
+ if (i === 44) {
1097
+ t[++r] = Te() === 58 ? "&\f" : "", n[r] = t[r].length;
1098
+ break;
1099
+ }
1100
+ default:
1101
+ t[r] += Gt(i);
1102
+ }
1103
+ while (i = ye());
1104
+ return t;
1105
+ }, $i = function(t, n) {
1106
+ return dr(Ui(ur(t), n));
1107
+ }, Wn = /* @__PURE__ */ new WeakMap(), Qi = function(t) {
1108
+ if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
1109
+ // negative .length indicates that this rule has been already prefixed
1110
+ t.length < 1)) {
1111
+ for (var n = t.value, r = t.parent, i = t.column === r.column && t.line === r.line; r.type !== "rule"; )
1112
+ if (r = r.parent, !r) return;
1113
+ if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Wn.get(r)) && !i) {
1114
+ Wn.set(t, !0);
1115
+ for (var a = [], o = $i(n, a), s = r.props, l = 0, d = 0; l < o.length; l++)
1116
+ for (var b = 0; b < s.length; b++, d++)
1117
+ t.props[d] = a[l] ? o[l].replace(/&\f/g, s[b]) : s[b] + " " + o[l];
1118
+ }
1119
+ }
1120
+ }, Ki = function(t) {
1121
+ if (t.type === "decl") {
1122
+ var n = t.value;
1123
+ // charcode for l
1124
+ n.charCodeAt(0) === 108 && // charcode for b
1125
+ n.charCodeAt(2) === 98 && (t.return = "", t.value = "");
1126
+ }
1127
+ };
1128
+ function br(e, t) {
1129
+ switch (Bi(e, t)) {
1130
+ case 5103:
1131
+ return K + "print-" + e + e;
1132
+ case 5737:
1133
+ case 4201:
1134
+ case 3177:
1135
+ case 3433:
1136
+ case 1641:
1137
+ case 4457:
1138
+ case 2921:
1139
+ case 5572:
1140
+ case 6356:
1141
+ case 5844:
1142
+ case 3191:
1143
+ case 6645:
1144
+ case 3005:
1145
+ case 6391:
1146
+ case 5879:
1147
+ case 5623:
1148
+ case 6135:
1149
+ case 4599:
1150
+ case 4855:
1151
+ case 4215:
1152
+ case 6389:
1153
+ case 5109:
1154
+ case 5365:
1155
+ case 5621:
1156
+ case 3829:
1157
+ return K + e + e;
1158
+ case 5349:
1159
+ case 4246:
1160
+ case 4810:
1161
+ case 6968:
1162
+ case 2756:
1163
+ return K + e + xt + e + ge + e + e;
1164
+ case 6828:
1165
+ case 4268:
1166
+ return K + e + ge + e + e;
1167
+ case 6165:
1168
+ return K + e + ge + "flex-" + e + e;
1169
+ case 5187:
1170
+ return K + e + q(e, /(\w+).+(:[^]+)/, K + "box-$1$2" + ge + "flex-$1$2") + e;
1171
+ case 5443:
1172
+ return K + e + ge + "flex-item-" + q(e, /flex-|-self/, "") + e;
1173
+ case 4675:
1174
+ return K + e + ge + "flex-line-pack" + q(e, /align-content|flex-|-self/, "") + e;
1175
+ case 5548:
1176
+ return K + e + ge + q(e, "shrink", "negative") + e;
1177
+ case 5292:
1178
+ return K + e + ge + q(e, "basis", "preferred-size") + e;
1179
+ case 6060:
1180
+ return K + "box-" + q(e, "-grow", "") + K + e + ge + q(e, "grow", "positive") + e;
1181
+ case 4554:
1182
+ return K + q(e, /([^-])(transform)/g, "$1" + K + "$2") + e;
1183
+ case 6187:
1184
+ return q(q(q(e, /(zoom-|grab)/, K + "$1"), /(image-set)/, K + "$1"), e, "") + e;
1185
+ case 5495:
1186
+ case 3959:
1187
+ return q(e, /(image-set\([^]*)/, K + "$1$`$1");
1188
+ case 4968:
1189
+ return q(q(e, /(.+:)(flex-)?(.*)/, K + "box-pack:$3" + ge + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + K + e + e;
1190
+ case 4095:
1191
+ case 3583:
1192
+ case 4068:
1193
+ case 2532:
1194
+ return q(e, /(.+)-inline(.+)/, K + "$1$2") + e;
1195
+ case 8116:
1196
+ case 7059:
1197
+ case 5753:
1198
+ case 5535:
1199
+ case 5445:
1200
+ case 5701:
1201
+ case 4933:
1202
+ case 4677:
1203
+ case 5533:
1204
+ case 5789:
1205
+ case 5021:
1206
+ case 4765:
1207
+ if (Ee(e) - 1 - t > 6) switch (de(e, t + 1)) {
1208
+ case 109:
1209
+ if (de(e, t + 4) !== 45) break;
1210
+ case 102:
1211
+ return q(e, /(.+:)(.+)-([^]+)/, "$1" + K + "$2-$3$1" + xt + (de(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1212
+ case 115:
1213
+ return ~Lt(e, "stretch") ? br(q(e, "stretch", "fill-available"), t) + e : e;
1214
+ }
1215
+ break;
1216
+ case 4949:
1217
+ if (de(e, t + 1) !== 115) break;
1218
+ case 6444:
1219
+ switch (de(e, Ee(e) - 3 - (~Lt(e, "!important") && 10))) {
1220
+ case 107:
1221
+ return q(e, ":", ":" + K) + e;
1222
+ case 101:
1223
+ return q(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + K + (de(e, 14) === 45 ? "inline-" : "") + "box$3$1" + K + "$2$3$1" + ge + "$2box$3") + e;
1224
+ }
1225
+ break;
1226
+ case 5936:
1227
+ switch (de(e, t + 11)) {
1228
+ case 114:
1229
+ return K + e + ge + q(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1230
+ case 108:
1231
+ return K + e + ge + q(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1232
+ case 45:
1233
+ return K + e + ge + q(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1234
+ }
1235
+ return K + e + ge + e + e;
1236
+ }
1237
+ return e;
1238
+ }
1239
+ var qi = function(t, n, r, i) {
1240
+ if (t.length > -1 && !t.return) switch (t.type) {
1241
+ case rn:
1242
+ t.return = br(t.value, t.length);
1243
+ break;
1244
+ case sr:
1245
+ return ke([Ke(t, {
1246
+ value: q(t.value, "@", "@" + K)
1247
+ })], i);
1248
+ case nn:
1249
+ if (t.length) return Wi(t.props, function(a) {
1250
+ switch (Xi(a, /(::plac\w+|:read-\w+)/)) {
1251
+ case ":read-only":
1252
+ case ":read-write":
1253
+ return ke([Ke(t, {
1254
+ props: [q(a, /:(read-\w+)/, ":" + xt + "$1")]
1255
+ })], i);
1256
+ case "::placeholder":
1257
+ return ke([Ke(t, {
1258
+ props: [q(a, /:(plac\w+)/, ":" + K + "input-$1")]
1259
+ }), Ke(t, {
1260
+ props: [q(a, /:(plac\w+)/, ":" + xt + "$1")]
1261
+ }), Ke(t, {
1262
+ props: [q(a, /:(plac\w+)/, ge + "input-$1")]
1263
+ })], i);
1264
+ }
1265
+ return "";
1266
+ });
1267
+ }
1268
+ }, ea = [qi], ta = function(t) {
1269
+ var n = t.key;
1270
+ if (n === "css") {
1271
+ var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
1272
+ Array.prototype.forEach.call(r, function(I) {
1273
+ var T = I.getAttribute("data-emotion");
1274
+ T.indexOf(" ") !== -1 && (document.head.appendChild(I), I.setAttribute("data-s", ""));
1275
+ });
1276
+ }
1277
+ var i = t.stylisPlugins || ea, a = {}, o, s = [];
1278
+ o = t.container || document.head, Array.prototype.forEach.call(
1279
+ // this means we will ignore elements which don't have a space in them which
1280
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1281
+ document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
1282
+ function(I) {
1283
+ for (var T = I.getAttribute("data-emotion").split(" "), p = 1; p < T.length; p++)
1284
+ a[T[p]] = !0;
1285
+ s.push(I);
1286
+ }
1287
+ );
1288
+ var l, d = [Qi, Ki];
1289
+ {
1290
+ var b, g = [Ji, Li(function(I) {
1291
+ b.insert(I);
1292
+ })], x = ki(d.concat(i, g)), R = function(T) {
1293
+ return ke(Fi(T), x);
1294
+ };
1295
+ l = function(T, p, P, y) {
1296
+ b = P, R(T ? T + "{" + p.styles + "}" : p.styles), y && (E.inserted[p.name] = !0);
1297
+ };
1298
+ }
1299
+ var E = {
1300
+ key: n,
1301
+ sheet: new Pi({
1302
+ key: n,
1303
+ container: o,
1304
+ nonce: t.nonce,
1305
+ speedy: t.speedy,
1306
+ prepend: t.prepend,
1307
+ insertionPoint: t.insertionPoint
1308
+ }),
1309
+ nonce: t.nonce,
1310
+ inserted: a,
1311
+ registered: {},
1312
+ insert: l
1313
+ };
1314
+ return E.sheet.hydrate(s), E;
1315
+ }, _t = { exports: {} }, ne = {};
1316
+ /** @license React v16.13.1
1317
+ * react-is.production.min.js
1318
+ *
1319
+ * Copyright (c) Facebook, Inc. and its affiliates.
1320
+ *
1321
+ * This source code is licensed under the MIT license found in the
1322
+ * LICENSE file in the root directory of this source tree.
1323
+ */
1324
+ var Vn;
1325
+ function na() {
1326
+ if (Vn) return ne;
1327
+ Vn = 1;
1328
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, I = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, p = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
1329
+ function y(h) {
1330
+ if (typeof h == "object" && h !== null) {
1331
+ var Q = h.$$typeof;
1332
+ switch (Q) {
1333
+ case t:
1334
+ switch (h = h.type, h) {
1335
+ case l:
1336
+ case d:
1337
+ case r:
1338
+ case a:
1339
+ case i:
1340
+ case g:
1341
+ return h;
1342
+ default:
1343
+ switch (h = h && h.$$typeof, h) {
1344
+ case s:
1345
+ case b:
1346
+ case E:
1347
+ case R:
1348
+ case o:
1349
+ return h;
1350
+ default:
1351
+ return Q;
1352
+ }
1353
+ }
1354
+ case n:
1355
+ return Q;
1356
+ }
1357
+ }
1358
+ }
1359
+ function B(h) {
1360
+ return y(h) === d;
1361
+ }
1362
+ return ne.AsyncMode = l, ne.ConcurrentMode = d, ne.ContextConsumer = s, ne.ContextProvider = o, ne.Element = t, ne.ForwardRef = b, ne.Fragment = r, ne.Lazy = E, ne.Memo = R, ne.Portal = n, ne.Profiler = a, ne.StrictMode = i, ne.Suspense = g, ne.isAsyncMode = function(h) {
1363
+ return B(h) || y(h) === l;
1364
+ }, ne.isConcurrentMode = B, ne.isContextConsumer = function(h) {
1365
+ return y(h) === s;
1366
+ }, ne.isContextProvider = function(h) {
1367
+ return y(h) === o;
1368
+ }, ne.isElement = function(h) {
1369
+ return typeof h == "object" && h !== null && h.$$typeof === t;
1370
+ }, ne.isForwardRef = function(h) {
1371
+ return y(h) === b;
1372
+ }, ne.isFragment = function(h) {
1373
+ return y(h) === r;
1374
+ }, ne.isLazy = function(h) {
1375
+ return y(h) === E;
1376
+ }, ne.isMemo = function(h) {
1377
+ return y(h) === R;
1378
+ }, ne.isPortal = function(h) {
1379
+ return y(h) === n;
1380
+ }, ne.isProfiler = function(h) {
1381
+ return y(h) === a;
1382
+ }, ne.isStrictMode = function(h) {
1383
+ return y(h) === i;
1384
+ }, ne.isSuspense = function(h) {
1385
+ return y(h) === g;
1386
+ }, ne.isValidElementType = function(h) {
1387
+ return typeof h == "string" || typeof h == "function" || h === r || h === d || h === a || h === i || h === g || h === x || typeof h == "object" && h !== null && (h.$$typeof === E || h.$$typeof === R || h.$$typeof === o || h.$$typeof === s || h.$$typeof === b || h.$$typeof === T || h.$$typeof === p || h.$$typeof === P || h.$$typeof === I);
1388
+ }, ne.typeOf = y, ne;
1389
+ }
1390
+ var re = {};
1391
+ /** @license React v16.13.1
1392
+ * react-is.development.js
1393
+ *
1394
+ * Copyright (c) Facebook, Inc. and its affiliates.
1395
+ *
1396
+ * This source code is licensed under the MIT license found in the
1397
+ * LICENSE file in the root directory of this source tree.
1398
+ */
1399
+ var Mn;
1400
+ function ra() {
1401
+ return Mn || (Mn = 1, process.env.NODE_ENV !== "production" && function() {
1402
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, I = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, p = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119;
1403
+ function y(C) {
1404
+ return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1405
+ C === r || C === d || C === a || C === i || C === g || C === x || typeof C == "object" && C !== null && (C.$$typeof === E || C.$$typeof === R || C.$$typeof === o || C.$$typeof === s || C.$$typeof === b || C.$$typeof === T || C.$$typeof === p || C.$$typeof === P || C.$$typeof === I);
1406
+ }
1407
+ function B(C) {
1408
+ if (typeof C == "object" && C !== null) {
1409
+ var Ae = C.$$typeof;
1410
+ switch (Ae) {
1411
+ case t:
1412
+ var Ze = C.type;
1413
+ switch (Ze) {
1414
+ case l:
1415
+ case d:
1416
+ case r:
1417
+ case a:
1418
+ case i:
1419
+ case g:
1420
+ return Ze;
1421
+ default:
1422
+ var Xe = Ze && Ze.$$typeof;
1423
+ switch (Xe) {
1424
+ case s:
1425
+ case b:
1426
+ case E:
1427
+ case R:
1428
+ case o:
1429
+ return Xe;
1430
+ default:
1431
+ return Ae;
1432
+ }
1433
+ }
1434
+ case n:
1435
+ return Ae;
1436
+ }
1437
+ }
1438
+ }
1439
+ var h = l, Q = d, S = s, j = o, m = t, G = b, X = r, N = E, ee = R, k = n, fe = a, Ie = i, Re = g, Be = !1;
1440
+ function Ye(C) {
1441
+ return Be || (Be = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), v(C) || B(C) === l;
1442
+ }
1443
+ function v(C) {
1444
+ return B(C) === d;
1445
+ }
1446
+ function w(C) {
1447
+ return B(C) === s;
1448
+ }
1449
+ function F(C) {
1450
+ return B(C) === o;
1451
+ }
1452
+ function H(C) {
1453
+ return typeof C == "object" && C !== null && C.$$typeof === t;
1454
+ }
1455
+ function M(C) {
1456
+ return B(C) === b;
1457
+ }
1458
+ function _(C) {
1459
+ return B(C) === r;
1460
+ }
1461
+ function Y(C) {
1462
+ return B(C) === E;
1463
+ }
1464
+ function Z(C) {
1465
+ return B(C) === R;
1466
+ }
1467
+ function z(C) {
1468
+ return B(C) === n;
1469
+ }
1470
+ function $(C) {
1471
+ return B(C) === a;
1472
+ }
1473
+ function J(C) {
1474
+ return B(C) === i;
1475
+ }
1476
+ function be(C) {
1477
+ return B(C) === g;
1478
+ }
1479
+ re.AsyncMode = h, re.ConcurrentMode = Q, re.ContextConsumer = S, re.ContextProvider = j, re.Element = m, re.ForwardRef = G, re.Fragment = X, re.Lazy = N, re.Memo = ee, re.Portal = k, re.Profiler = fe, re.StrictMode = Ie, re.Suspense = Re, re.isAsyncMode = Ye, re.isConcurrentMode = v, re.isContextConsumer = w, re.isContextProvider = F, re.isElement = H, re.isForwardRef = M, re.isFragment = _, re.isLazy = Y, re.isMemo = Z, re.isPortal = z, re.isProfiler = $, re.isStrictMode = J, re.isSuspense = be, re.isValidElementType = y, re.typeOf = B;
1480
+ }()), re;
1481
+ }
1482
+ process.env.NODE_ENV === "production" ? _t.exports = na() : _t.exports = ra();
1483
+ var on = _t.exports, gr = on, ia = {
1484
+ $$typeof: !0,
1485
+ render: !0,
1486
+ defaultProps: !0,
1487
+ displayName: !0,
1488
+ propTypes: !0
1489
+ }, aa = {
1490
+ $$typeof: !0,
1491
+ compare: !0,
1492
+ defaultProps: !0,
1493
+ displayName: !0,
1494
+ propTypes: !0,
1495
+ type: !0
1496
+ }, fr = {};
1497
+ fr[gr.ForwardRef] = ia;
1498
+ fr[gr.Memo] = aa;
1499
+ var oa = !0;
1500
+ function sa(e, t, n) {
1501
+ var r = "";
1502
+ return n.split(" ").forEach(function(i) {
1503
+ e[i] !== void 0 ? t.push(e[i] + ";") : i && (r += i + " ");
1504
+ }), r;
1505
+ }
1506
+ var mr = function(t, n, r) {
1507
+ var i = t.key + "-" + n.name;
1508
+ // we only need to add the styles to the registered cache if the
1509
+ // class name could be used further down
1510
+ // the tree but if it's a string tag, we know it won't
1511
+ // so we don't have to add it to registered cache.
1512
+ // this improves memory usage since we can avoid storing the whole style string
1513
+ (r === !1 || // we need to always store it if we're in compat mode and
1514
+ // in node since emotion-server relies on whether a style is in
1515
+ // the registered cache to know whether a style is global or not
1516
+ // also, note that this check will be dead code eliminated in the browser
1517
+ oa === !1) && t.registered[i] === void 0 && (t.registered[i] = n.styles);
1518
+ }, ca = function(t, n, r) {
1519
+ mr(t, n, r);
1520
+ var i = t.key + "-" + n.name;
1521
+ if (t.inserted[n.name] === void 0) {
1522
+ var a = n;
1523
+ do
1524
+ t.insert(n === a ? "." + i : "", a, t.sheet, !0), a = a.next;
1525
+ while (a !== void 0);
1526
+ }
1527
+ };
1528
+ function la(e) {
1529
+ for (var t = 0, n, r = 0, i = e.length; i >= 4; ++r, i -= 4)
1530
+ n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
1531
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
1532
+ n >>> 24, t = /* Math.imul(k, m): */
1533
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1534
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1535
+ switch (i) {
1536
+ case 3:
1537
+ t ^= (e.charCodeAt(r + 2) & 255) << 16;
1538
+ case 2:
1539
+ t ^= (e.charCodeAt(r + 1) & 255) << 8;
1540
+ case 1:
1541
+ t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
1542
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1543
+ }
1544
+ return t ^= t >>> 13, t = /* Math.imul(h, m): */
1545
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
1546
+ }
1547
+ var ua = {
1548
+ animationIterationCount: 1,
1549
+ aspectRatio: 1,
1550
+ borderImageOutset: 1,
1551
+ borderImageSlice: 1,
1552
+ borderImageWidth: 1,
1553
+ boxFlex: 1,
1554
+ boxFlexGroup: 1,
1555
+ boxOrdinalGroup: 1,
1556
+ columnCount: 1,
1557
+ columns: 1,
1558
+ flex: 1,
1559
+ flexGrow: 1,
1560
+ flexPositive: 1,
1561
+ flexShrink: 1,
1562
+ flexNegative: 1,
1563
+ flexOrder: 1,
1564
+ gridRow: 1,
1565
+ gridRowEnd: 1,
1566
+ gridRowSpan: 1,
1567
+ gridRowStart: 1,
1568
+ gridColumn: 1,
1569
+ gridColumnEnd: 1,
1570
+ gridColumnSpan: 1,
1571
+ gridColumnStart: 1,
1572
+ msGridRow: 1,
1573
+ msGridRowSpan: 1,
1574
+ msGridColumn: 1,
1575
+ msGridColumnSpan: 1,
1576
+ fontWeight: 1,
1577
+ lineHeight: 1,
1578
+ opacity: 1,
1579
+ order: 1,
1580
+ orphans: 1,
1581
+ scale: 1,
1582
+ tabSize: 1,
1583
+ widows: 1,
1584
+ zIndex: 1,
1585
+ zoom: 1,
1586
+ WebkitLineClamp: 1,
1587
+ // SVG-related properties
1588
+ fillOpacity: 1,
1589
+ floodOpacity: 1,
1590
+ stopOpacity: 1,
1591
+ strokeDasharray: 1,
1592
+ strokeDashoffset: 1,
1593
+ strokeMiterlimit: 1,
1594
+ strokeOpacity: 1,
1595
+ strokeWidth: 1
1596
+ }, da = /[A-Z]|^ms/g, ba = /_EMO_([^_]+?)_([^]*?)_EMO_/g, pr = function(t) {
1597
+ return t.charCodeAt(1) === 45;
1598
+ }, On = function(t) {
1599
+ return t != null && typeof t != "boolean";
1600
+ }, Mt = /* @__PURE__ */ Di(function(e) {
1601
+ return pr(e) ? e : e.replace(da, "-$&").toLowerCase();
1602
+ }), Yn = function(t, n) {
1603
+ switch (t) {
1604
+ case "animation":
1605
+ case "animationName":
1606
+ if (typeof n == "string")
1607
+ return n.replace(ba, function(r, i, a) {
1608
+ return Pe = {
1609
+ name: i,
1610
+ styles: a,
1611
+ next: Pe
1612
+ }, i;
1613
+ });
1614
+ }
1615
+ return ua[t] !== 1 && !pr(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
1616
+ };
1617
+ function it(e, t, n) {
1618
+ if (n == null)
1619
+ return "";
1620
+ var r = n;
1621
+ if (r.__emotion_styles !== void 0)
1622
+ return r;
1623
+ switch (typeof n) {
1624
+ case "boolean":
1625
+ return "";
1626
+ case "object": {
1627
+ var i = n;
1628
+ if (i.anim === 1)
1629
+ return Pe = {
1630
+ name: i.name,
1631
+ styles: i.styles,
1632
+ next: Pe
1633
+ }, i.name;
1634
+ var a = n;
1635
+ if (a.styles !== void 0) {
1636
+ var o = a.next;
1637
+ if (o !== void 0)
1638
+ for (; o !== void 0; )
1639
+ Pe = {
1640
+ name: o.name,
1641
+ styles: o.styles,
1642
+ next: Pe
1643
+ }, o = o.next;
1644
+ var s = a.styles + ";";
1645
+ return s;
1646
+ }
1647
+ return ga(e, t, n);
1648
+ }
1649
+ case "function": {
1650
+ if (e !== void 0) {
1651
+ var l = Pe, d = n(e);
1652
+ return Pe = l, it(e, t, d);
1653
+ }
1654
+ break;
1655
+ }
1656
+ }
1657
+ var b = n;
1658
+ return b;
1659
+ }
1660
+ function ga(e, t, n) {
1661
+ var r = "";
1662
+ if (Array.isArray(n))
1663
+ for (var i = 0; i < n.length; i++)
1664
+ r += it(e, t, n[i]) + ";";
1665
+ else
1666
+ for (var a in n) {
1667
+ var o = n[a];
1668
+ if (typeof o != "object") {
1669
+ var s = o;
1670
+ On(s) && (r += Mt(a) + ":" + Yn(a, s) + ";");
1671
+ } else if (Array.isArray(o) && typeof o[0] == "string" && t == null)
1672
+ for (var l = 0; l < o.length; l++)
1673
+ On(o[l]) && (r += Mt(a) + ":" + Yn(a, o[l]) + ";");
1674
+ else {
1675
+ var d = it(e, t, o);
1676
+ switch (a) {
1677
+ case "animation":
1678
+ case "animationName": {
1679
+ r += Mt(a) + ":" + d + ";";
1680
+ break;
1681
+ }
1682
+ default:
1683
+ r += a + "{" + d + "}";
1684
+ }
1685
+ }
1686
+ }
1687
+ return r;
1688
+ }
1689
+ var Zn = /label:\s*([^\s;{]+)\s*(;|$)/g, Pe;
1690
+ function vr(e, t, n) {
1691
+ if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1692
+ return e[0];
1693
+ var r = !0, i = "";
1694
+ Pe = void 0;
1695
+ var a = e[0];
1696
+ if (a == null || a.raw === void 0)
1697
+ r = !1, i += it(n, t, a);
1698
+ else {
1699
+ var o = a;
1700
+ i += o[0];
1701
+ }
1702
+ for (var s = 1; s < e.length; s++)
1703
+ if (i += it(n, t, e[s]), r) {
1704
+ var l = a;
1705
+ i += l[s];
1706
+ }
1707
+ Zn.lastIndex = 0;
1708
+ for (var d = "", b; (b = Zn.exec(i)) !== null; )
1709
+ d += "-" + b[1];
1710
+ var g = la(i) + d;
1711
+ return {
1712
+ name: g,
1713
+ styles: i,
1714
+ next: Pe
1715
+ };
1716
+ }
1717
+ var fa = function(t) {
1718
+ return t();
1719
+ }, ma = oe.useInsertionEffect ? oe.useInsertionEffect : !1, pa = ma || fa, hr = /* @__PURE__ */ oe.createContext(
1720
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1721
+ // because this module is primarily intended for the browser and node
1722
+ // but it's also required in react native and similar environments sometimes
1723
+ // and we could have a special build just for that
1724
+ // but this is much easier and the native packages
1725
+ // might use a different theme context in the future anyway
1726
+ typeof HTMLElement < "u" ? /* @__PURE__ */ ta({
1727
+ key: "css"
1728
+ }) : null
1729
+ );
1730
+ hr.Provider;
1731
+ var va = function(t) {
1732
+ return /* @__PURE__ */ ri(function(n, r) {
1733
+ var i = ii(hr);
1734
+ return t(n, i, r);
1735
+ });
1736
+ }, ha = /* @__PURE__ */ oe.createContext({}), sn = {}.hasOwnProperty, Ut = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", xa = function(t, n) {
1737
+ var r = {};
1738
+ for (var i in n)
1739
+ sn.call(n, i) && (r[i] = n[i]);
1740
+ return r[Ut] = t, r;
1741
+ }, Ia = function(t) {
1742
+ var n = t.cache, r = t.serialized, i = t.isStringTag;
1743
+ return mr(n, r, i), pa(function() {
1744
+ return ca(n, r, i);
1745
+ }), null;
1746
+ }, ya = /* @__PURE__ */ va(function(e, t, n) {
1747
+ var r = e.css;
1748
+ typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
1749
+ var i = e[Ut], a = [r], o = "";
1750
+ typeof e.className == "string" ? o = sa(t.registered, a, e.className) : e.className != null && (o = e.className + " ");
1751
+ var s = vr(a, void 0, oe.useContext(ha));
1752
+ o += t.key + "-" + s.name;
1753
+ var l = {};
1754
+ for (var d in e)
1755
+ sn.call(e, d) && d !== "css" && d !== Ut && (l[d] = e[d]);
1756
+ return l.className = o, n && (l.ref = n), /* @__PURE__ */ oe.createElement(oe.Fragment, null, /* @__PURE__ */ oe.createElement(Ia, {
1757
+ cache: t,
1758
+ serialized: s,
1759
+ isStringTag: typeof i == "string"
1760
+ }), /* @__PURE__ */ oe.createElement(i, l));
1761
+ }), Ca = ya, O = function(t, n) {
1762
+ var r = arguments;
1763
+ if (n == null || !sn.call(n, "css"))
1764
+ return oe.createElement.apply(void 0, r);
1765
+ var i = r.length, a = new Array(i);
1766
+ a[0] = Ca, a[1] = xa(t, n);
1767
+ for (var o = 2; o < i; o++)
1768
+ a[o] = r[o];
1769
+ return oe.createElement.apply(null, a);
1770
+ };
1771
+ (function(e) {
1772
+ var t;
1773
+ t || (t = e.JSX || (e.JSX = {}));
1774
+ })(O || (O = {}));
1775
+ function xr() {
1776
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1777
+ t[n] = arguments[n];
1778
+ return vr(t);
1779
+ }
1780
+ function Aa() {
1781
+ var e = xr.apply(void 0, arguments), t = "animation-" + e.name;
1782
+ return {
1783
+ name: t,
1784
+ styles: "@keyframes " + t + "{" + e.styles + "}",
1785
+ anim: 1,
1786
+ toString: function() {
1787
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1788
+ }
1789
+ };
1790
+ }
1791
+ function Ga(e) {
1792
+ if (Array.isArray(e)) return e;
1793
+ }
1794
+ function wa(e, t) {
1795
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1796
+ if (n != null) {
1797
+ var r, i, a, o, s = [], l = !0, d = !1;
1798
+ try {
1799
+ if (a = (n = n.call(e)).next, t !== 0) for (; !(l = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ;
1800
+ } catch (b) {
1801
+ d = !0, i = b;
1802
+ } finally {
1803
+ try {
1804
+ if (!l && n.return != null && (o = n.return(), Object(o) !== o)) return;
1805
+ } finally {
1806
+ if (d) throw i;
1807
+ }
1808
+ }
1809
+ return s;
1810
+ }
1811
+ }
1812
+ function Hn(e, t) {
1813
+ (t == null || t > e.length) && (t = e.length);
1814
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1815
+ return r;
1816
+ }
1817
+ function Ra(e, t) {
1818
+ if (e) {
1819
+ if (typeof e == "string") return Hn(e, t);
1820
+ var n = {}.toString.call(e).slice(8, -1);
1821
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Hn(e, t) : void 0;
1822
+ }
1823
+ }
1824
+ function Ea() {
1825
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1826
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1827
+ }
1828
+ function at(e, t) {
1829
+ return Ga(e) || wa(e, t) || Ra(e, t) || Ea();
1830
+ }
1831
+ function Pa(e, t) {
1832
+ return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
1833
+ raw: {
1834
+ value: Object.freeze(t)
1835
+ }
1836
+ }));
1837
+ }
1838
+ const Ta = Math.min, Na = Math.max, It = Math.round, dt = Math.floor, yt = (e) => ({
1839
+ x: e,
1840
+ y: e
1841
+ });
1842
+ function Sa(e) {
1843
+ const {
1844
+ x: t,
1845
+ y: n,
1846
+ width: r,
1847
+ height: i
1848
+ } = e;
1849
+ return {
1850
+ width: r,
1851
+ height: i,
1852
+ top: n,
1853
+ left: t,
1854
+ right: t + r,
1855
+ bottom: n + i,
1856
+ x: t,
1857
+ y: n
1858
+ };
1859
+ }
1860
+ function Et() {
1861
+ return typeof window < "u";
1862
+ }
1863
+ function Ir(e) {
1864
+ return Cr(e) ? (e.nodeName || "").toLowerCase() : "#document";
1865
+ }
1866
+ function je(e) {
1867
+ var t;
1868
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1869
+ }
1870
+ function yr(e) {
1871
+ var t;
1872
+ return (t = (Cr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1873
+ }
1874
+ function Cr(e) {
1875
+ return Et() ? e instanceof Node || e instanceof je(e).Node : !1;
1876
+ }
1877
+ function ja(e) {
1878
+ return Et() ? e instanceof Element || e instanceof je(e).Element : !1;
1879
+ }
1880
+ function cn(e) {
1881
+ return Et() ? e instanceof HTMLElement || e instanceof je(e).HTMLElement : !1;
1882
+ }
1883
+ function Fn(e) {
1884
+ return !Et() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof je(e).ShadowRoot;
1885
+ }
1886
+ const Ba = /* @__PURE__ */ new Set(["inline", "contents"]);
1887
+ function Ar(e) {
1888
+ const {
1889
+ overflow: t,
1890
+ overflowX: n,
1891
+ overflowY: r,
1892
+ display: i
1893
+ } = ln(e);
1894
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Ba.has(i);
1895
+ }
1896
+ function Xa() {
1897
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1898
+ }
1899
+ const Wa = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1900
+ function Va(e) {
1901
+ return Wa.has(Ir(e));
1902
+ }
1903
+ function ln(e) {
1904
+ return je(e).getComputedStyle(e);
1905
+ }
1906
+ function Ma(e) {
1907
+ if (Ir(e) === "html")
1908
+ return e;
1909
+ const t = (
1910
+ // Step into the shadow DOM of the parent of a slotted node.
1911
+ e.assignedSlot || // DOM Element detected.
1912
+ e.parentNode || // ShadowRoot detected.
1913
+ Fn(e) && e.host || // Fallback.
1914
+ yr(e)
1915
+ );
1916
+ return Fn(t) ? t.host : t;
1917
+ }
1918
+ function Gr(e) {
1919
+ const t = Ma(e);
1920
+ return Va(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : cn(t) && Ar(t) ? t : Gr(t);
1921
+ }
1922
+ function Ct(e, t, n) {
1923
+ var r;
1924
+ t === void 0 && (t = []), n === void 0 && (n = !0);
1925
+ const i = Gr(e), a = i === ((r = e.ownerDocument) == null ? void 0 : r.body), o = je(i);
1926
+ if (a) {
1927
+ const s = $t(o);
1928
+ return t.concat(o, o.visualViewport || [], Ar(i) ? i : [], s && n ? Ct(s) : []);
1929
+ }
1930
+ return t.concat(i, Ct(i, [], n));
1931
+ }
1932
+ function $t(e) {
1933
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1934
+ }
1935
+ function Oa(e) {
1936
+ const t = ln(e);
1937
+ let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1938
+ const i = cn(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = It(n) !== a || It(r) !== o;
1939
+ return s && (n = a, r = o), {
1940
+ width: n,
1941
+ height: r,
1942
+ $: s
1943
+ };
1944
+ }
1945
+ function un(e) {
1946
+ return ja(e) ? e : e.contextElement;
1947
+ }
1948
+ function zn(e) {
1949
+ const t = un(e);
1950
+ if (!cn(t))
1951
+ return yt(1);
1952
+ const n = t.getBoundingClientRect(), {
1953
+ width: r,
1954
+ height: i,
1955
+ $: a
1956
+ } = Oa(t);
1957
+ let o = (a ? It(n.width) : n.width) / r, s = (a ? It(n.height) : n.height) / i;
1958
+ return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1959
+ x: o,
1960
+ y: s
1961
+ };
1962
+ }
1963
+ const Ya = /* @__PURE__ */ yt(0);
1964
+ function Za(e) {
1965
+ const t = je(e);
1966
+ return !Xa() || !t.visualViewport ? Ya : {
1967
+ x: t.visualViewport.offsetLeft,
1968
+ y: t.visualViewport.offsetTop
1969
+ };
1970
+ }
1971
+ function Ha(e, t, n) {
1972
+ return !1;
1973
+ }
1974
+ function Jn(e, t, n, r) {
1975
+ t === void 0 && (t = !1);
1976
+ const i = e.getBoundingClientRect(), a = un(e);
1977
+ let o = yt(1);
1978
+ t && (o = zn(e));
1979
+ const s = Ha() ? Za(a) : yt(0);
1980
+ let l = (i.left + s.x) / o.x, d = (i.top + s.y) / o.y, b = i.width / o.x, g = i.height / o.y;
1981
+ if (a) {
1982
+ const x = je(a), R = r;
1983
+ let E = x, I = $t(E);
1984
+ for (; I && r && R !== E; ) {
1985
+ const T = zn(I), p = I.getBoundingClientRect(), P = ln(I), y = p.left + (I.clientLeft + parseFloat(P.paddingLeft)) * T.x, B = p.top + (I.clientTop + parseFloat(P.paddingTop)) * T.y;
1986
+ l *= T.x, d *= T.y, b *= T.x, g *= T.y, l += y, d += B, E = je(I), I = $t(E);
1987
+ }
1988
+ }
1989
+ return Sa({
1990
+ width: b,
1991
+ height: g,
1992
+ x: l,
1993
+ y: d
1994
+ });
1995
+ }
1996
+ function wr(e, t) {
1997
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1998
+ }
1999
+ function Fa(e, t) {
2000
+ let n = null, r;
2001
+ const i = yr(e);
2002
+ function a() {
2003
+ var s;
2004
+ clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
2005
+ }
2006
+ function o(s, l) {
2007
+ s === void 0 && (s = !1), l === void 0 && (l = 1), a();
2008
+ const d = e.getBoundingClientRect(), {
2009
+ left: b,
2010
+ top: g,
2011
+ width: x,
2012
+ height: R
2013
+ } = d;
2014
+ if (s || t(), !x || !R)
2015
+ return;
2016
+ const E = dt(g), I = dt(i.clientWidth - (b + x)), T = dt(i.clientHeight - (g + R)), p = dt(b), y = {
2017
+ rootMargin: -E + "px " + -I + "px " + -T + "px " + -p + "px",
2018
+ threshold: Na(0, Ta(1, l)) || 1
2019
+ };
2020
+ let B = !0;
2021
+ function h(Q) {
2022
+ const S = Q[0].intersectionRatio;
2023
+ if (S !== l) {
2024
+ if (!B)
2025
+ return o();
2026
+ S ? o(!1, S) : r = setTimeout(() => {
2027
+ o(!1, 1e-7);
2028
+ }, 1e3);
2029
+ }
2030
+ S === 1 && !wr(d, e.getBoundingClientRect()) && o(), B = !1;
2031
+ }
2032
+ try {
2033
+ n = new IntersectionObserver(h, {
2034
+ ...y,
2035
+ // Handle <iframe>s
2036
+ root: i.ownerDocument
2037
+ });
2038
+ } catch {
2039
+ n = new IntersectionObserver(h, y);
2040
+ }
2041
+ n.observe(e);
2042
+ }
2043
+ return o(!0), a;
2044
+ }
2045
+ function za(e, t, n, r) {
2046
+ r === void 0 && (r = {});
2047
+ const {
2048
+ ancestorScroll: i = !0,
2049
+ ancestorResize: a = !0,
2050
+ elementResize: o = typeof ResizeObserver == "function",
2051
+ layoutShift: s = typeof IntersectionObserver == "function",
2052
+ animationFrame: l = !1
2053
+ } = r, d = un(e), b = i || a ? [...d ? Ct(d) : [], ...Ct(t)] : [];
2054
+ b.forEach((p) => {
2055
+ i && p.addEventListener("scroll", n, {
2056
+ passive: !0
2057
+ }), a && p.addEventListener("resize", n);
2058
+ });
2059
+ const g = d && s ? Fa(d, n) : null;
2060
+ let x = -1, R = null;
2061
+ o && (R = new ResizeObserver((p) => {
2062
+ let [P] = p;
2063
+ P && P.target === d && R && (R.unobserve(t), cancelAnimationFrame(x), x = requestAnimationFrame(() => {
2064
+ var y;
2065
+ (y = R) == null || y.observe(t);
2066
+ })), n();
2067
+ }), d && !l && R.observe(d), R.observe(t));
2068
+ let E, I = l ? Jn(e) : null;
2069
+ l && T();
2070
+ function T() {
2071
+ const p = Jn(e);
2072
+ I && !wr(I, p) && n(), I = p, E = requestAnimationFrame(T);
2073
+ }
2074
+ return n(), () => {
2075
+ var p;
2076
+ b.forEach((P) => {
2077
+ i && P.removeEventListener("scroll", n), a && P.removeEventListener("resize", n);
2078
+ }), g == null || g(), (p = R) == null || p.disconnect(), R = null, l && cancelAnimationFrame(E);
2079
+ };
2080
+ }
2081
+ var kn = ai, Ja = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], Ln = function() {
2082
+ }, Rr = function(t) {
2083
+ t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
2084
+ var n = Ce(t, Ja);
2085
+ return ae({}, n);
2086
+ }, se = function(t, n, r) {
2087
+ var i = t.cx, a = t.getStyles, o = t.getClassNames, s = t.className;
2088
+ return {
2089
+ css: a(n, t),
2090
+ className: i(r ?? {}, o(n, t), s)
2091
+ };
2092
+ };
2093
+ function ka(e) {
2094
+ var t = e.getBoundingClientRect();
2095
+ return {
2096
+ bottom: t.bottom,
2097
+ height: t.height,
2098
+ left: t.left,
2099
+ right: t.right,
2100
+ top: t.top,
2101
+ width: t.width
2102
+ };
2103
+ }
2104
+ var La = {
2105
+ get passive() {
2106
+ return !0;
2107
+ }
2108
+ }, bt = typeof window < "u" ? window : {};
2109
+ bt.addEventListener && bt.removeEventListener && (bt.addEventListener("p", Ln, La), bt.removeEventListener("p", Ln, !1));
2110
+ var Da = ["children", "innerProps"], _a = ["children", "innerProps"], Ua = function(t) {
2111
+ return t === "auto" ? "bottom" : t;
2112
+ }, $a = /* @__PURE__ */ oi(null), Qa = function(t) {
2113
+ var n = t.children, r = t.innerRef, i = t.innerProps;
2114
+ return O("div", D({}, se(t, "menu", {
2115
+ menu: !0
2116
+ }), {
2117
+ ref: r
2118
+ }, i), n);
2119
+ }, Ka = Qa, qa = function(t) {
2120
+ var n = t.children, r = t.innerProps, i = t.innerRef, a = t.isMulti;
2121
+ return O("div", D({}, se(t, "menuList", {
2122
+ "menu-list": !0,
2123
+ "menu-list--is-multi": a
2124
+ }), {
2125
+ ref: i
2126
+ }, r), n);
2127
+ }, eo = function(t) {
2128
+ var n = t.children, r = n === void 0 ? "No options" : n, i = t.innerProps, a = Ce(t, Da);
2129
+ return O("div", D({}, se(ae(ae({}, a), {}, {
2130
+ children: r,
2131
+ innerProps: i
2132
+ }), "noOptionsMessage", {
2133
+ "menu-notice": !0,
2134
+ "menu-notice--no-options": !0
2135
+ }), i), r);
2136
+ }, to = function(t) {
2137
+ var n = t.children, r = n === void 0 ? "Loading..." : n, i = t.innerProps, a = Ce(t, _a);
2138
+ return O("div", D({}, se(ae(ae({}, a), {}, {
2139
+ children: r,
2140
+ innerProps: i
2141
+ }), "loadingMessage", {
2142
+ "menu-notice": !0,
2143
+ "menu-notice--loading": !0
2144
+ }), i), r);
2145
+ }, no = function(t) {
2146
+ var n = t.appendTo, r = t.children, i = t.controlElement, a = t.innerProps, o = t.menuPlacement, s = t.menuPosition, l = et(null), d = et(null), b = ve(Ua(o)), g = at(b, 2), x = g[0], R = g[1], E = ir(function() {
2147
+ return {
2148
+ setPortalPlacement: R
2149
+ };
2150
+ }, []), I = ve(null), T = at(I, 2), p = T[0], P = T[1], y = Xt(function() {
2151
+ if (i) {
2152
+ var S = ka(i), j = s === "fixed" ? 0 : window.pageYOffset, m = S[x] + j;
2153
+ (m !== (p == null ? void 0 : p.offset) || S.left !== (p == null ? void 0 : p.rect.left) || S.width !== (p == null ? void 0 : p.rect.width)) && P({
2154
+ offset: m,
2155
+ rect: S
2156
+ });
2157
+ }
2158
+ }, [i, s, x, p == null ? void 0 : p.offset, p == null ? void 0 : p.rect.left, p == null ? void 0 : p.rect.width]);
2159
+ kn(function() {
2160
+ y();
2161
+ }, [y]);
2162
+ var B = Xt(function() {
2163
+ typeof d.current == "function" && (d.current(), d.current = null), i && l.current && (d.current = za(i, l.current, y, {
2164
+ elementResize: "ResizeObserver" in window
2165
+ }));
2166
+ }, [i, y]);
2167
+ kn(function() {
2168
+ B();
2169
+ }, [B]);
2170
+ var h = Xt(function(S) {
2171
+ l.current = S, B();
2172
+ }, [B]);
2173
+ if (!n && s !== "fixed" || !p) return null;
2174
+ var Q = O("div", D({
2175
+ ref: h
2176
+ }, se(ae(ae({}, t), {}, {
2177
+ offset: p.offset,
2178
+ position: s,
2179
+ rect: p.rect
2180
+ }), "menuPortal", {
2181
+ "menu-portal": !0
2182
+ }), a), r);
2183
+ return O($a.Provider, {
2184
+ value: E
2185
+ }, n ? /* @__PURE__ */ ui(Q, n) : Q);
2186
+ }, ro = function(t) {
2187
+ var n = t.children, r = t.innerProps, i = t.isDisabled, a = t.isRtl;
2188
+ return O("div", D({}, se(t, "container", {
2189
+ "--is-disabled": i,
2190
+ "--is-rtl": a
2191
+ }), r), n);
2192
+ }, io = function(t) {
2193
+ var n = t.children, r = t.innerProps, i = t.isMulti, a = t.hasValue;
2194
+ return O("div", D({}, se(t, "valueContainer", {
2195
+ "value-container": !0,
2196
+ "value-container--is-multi": i,
2197
+ "value-container--has-value": a
2198
+ }), r), n);
2199
+ }, ao = function(t) {
2200
+ var n = t.children, r = t.innerProps;
2201
+ return O("div", D({}, se(t, "indicatorsContainer", {
2202
+ indicators: !0
2203
+ }), r), n);
2204
+ }, Dn, oo = ["size"], so = ["innerProps", "isRtl", "size"];
2205
+ function co() {
2206
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
2207
+ }
2208
+ var lo = process.env.NODE_ENV === "production" ? {
2209
+ name: "8mmkcg",
2210
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
2211
+ } : {
2212
+ name: "tj5bde-Svg",
2213
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
2214
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuL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ce(t, oo);
2218
+ return O("svg", D({
2219
+ height: n,
2220
+ width: n,
2221
+ viewBox: "0 0 20 20",
2222
+ "aria-hidden": "true",
2223
+ focusable: "false",
2224
+ css: lo
2225
+ }, r));
2226
+ }, dn = function(t) {
2227
+ return O(Er, D({
2228
+ size: 20
2229
+ }, t), O("path", {
2230
+ d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
2231
+ }));
2232
+ }, Pr = function(t) {
2233
+ return O(Er, D({
2234
+ size: 20
2235
+ }, t), O("path", {
2236
+ d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
2237
+ }));
2238
+ }, uo = function(t) {
2239
+ var n = t.children, r = t.innerProps;
2240
+ return O("div", D({}, se(t, "dropdownIndicator", {
2241
+ indicator: !0,
2242
+ "dropdown-indicator": !0
2243
+ }), r), n || O(Pr, null));
2244
+ }, bo = function(t) {
2245
+ var n = t.children, r = t.innerProps;
2246
+ return O("div", D({}, se(t, "clearIndicator", {
2247
+ indicator: !0,
2248
+ "clear-indicator": !0
2249
+ }), r), n || O(dn, null));
2250
+ }, go = function(t) {
2251
+ var n = t.innerProps;
2252
+ return O("span", D({}, n, se(t, "indicatorSeparator", {
2253
+ "indicator-separator": !0
2254
+ })));
2255
+ }, fo = Aa(Dn || (Dn = Pa([`
2256
+ 0%, 80%, 100% { opacity: 0; }
2257
+ 40% { opacity: 1; }
2258
+ `]))), Ot = function(t) {
2259
+ var n = t.delay, r = t.offset;
2260
+ return O("span", {
2261
+ css: /* @__PURE__ */ xr({
2262
+ animation: "".concat(fo, " 1s ease-in-out ").concat(n, "ms infinite;"),
2263
+ backgroundColor: "currentColor",
2264
+ borderRadius: "1em",
2265
+ display: "inline-block",
2266
+ marginLeft: r ? "1em" : void 0,
2267
+ height: "1em",
2268
+ verticalAlign: "top",
2269
+ width: "1em"
2270
+ }, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnR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GJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")
2271
+ });
2272
+ }, mo = function(t) {
2273
+ var n = t.innerProps, r = t.isRtl, i = t.size, a = i === void 0 ? 4 : i, o = Ce(t, so);
2274
+ return O("div", D({}, se(ae(ae({}, o), {}, {
2275
+ innerProps: n,
2276
+ isRtl: r,
2277
+ size: a
2278
+ }), "loadingIndicator", {
2279
+ indicator: !0,
2280
+ "loading-indicator": !0
2281
+ }), n), O(Ot, {
2282
+ delay: 0,
2283
+ offset: r
2284
+ }), O(Ot, {
2285
+ delay: 160,
2286
+ offset: !0
2287
+ }), O(Ot, {
2288
+ delay: 320,
2289
+ offset: !r
2290
+ }));
2291
+ }, po = function(t) {
2292
+ var n = t.children, r = t.isDisabled, i = t.isFocused, a = t.innerRef, o = t.innerProps, s = t.menuIsOpen;
2293
+ return O("div", D({
2294
+ ref: a
2295
+ }, se(t, "control", {
2296
+ control: !0,
2297
+ "control--is-disabled": r,
2298
+ "control--is-focused": i,
2299
+ "control--menu-is-open": s
2300
+ }), o, {
2301
+ "aria-disabled": r || void 0
2302
+ }), n);
2303
+ }, vo = po, ho = ["data"], xo = function(t) {
2304
+ var n = t.children, r = t.cx, i = t.getStyles, a = t.getClassNames, o = t.Heading, s = t.headingProps, l = t.innerProps, d = t.label, b = t.theme, g = t.selectProps;
2305
+ return O("div", D({}, se(t, "group", {
2306
+ group: !0
2307
+ }), l), O(o, D({}, s, {
2308
+ selectProps: g,
2309
+ theme: b,
2310
+ getStyles: i,
2311
+ getClassNames: a,
2312
+ cx: r
2313
+ }), d), O("div", null, n));
2314
+ }, Io = function(t) {
2315
+ var n = Rr(t);
2316
+ n.data;
2317
+ var r = Ce(n, ho);
2318
+ return O("div", D({}, se(t, "groupHeading", {
2319
+ "group-heading": !0
2320
+ }), r));
2321
+ }, yo = xo, Co = ["innerRef", "isDisabled", "isHidden", "inputClassName"], Tr = {
2322
+ gridArea: "1 / 2",
2323
+ font: "inherit",
2324
+ minWidth: "2px",
2325
+ border: 0,
2326
+ margin: 0,
2327
+ outline: 0,
2328
+ padding: 0
2329
+ };
2330
+ ae({
2331
+ content: 'attr(data-value) " "',
2332
+ visibility: "hidden",
2333
+ whiteSpace: "pre"
2334
+ }, Tr);
2335
+ var Ao = function(t) {
2336
+ return ae({
2337
+ label: "input",
2338
+ color: "inherit",
2339
+ background: 0,
2340
+ opacity: t ? 0 : 1,
2341
+ width: "100%"
2342
+ }, Tr);
2343
+ }, Go = function(t) {
2344
+ var n = t.cx, r = t.value, i = Rr(t), a = i.innerRef, o = i.isDisabled, s = i.isHidden, l = i.inputClassName, d = Ce(i, Co);
2345
+ return O("div", D({}, se(t, "input", {
2346
+ "input-container": !0
2347
+ }), {
2348
+ "data-value": r || ""
2349
+ }), O("input", D({
2350
+ className: n({
2351
+ input: !0
2352
+ }, l),
2353
+ ref: a,
2354
+ style: Ao(s),
2355
+ disabled: o
2356
+ }, d)));
2357
+ }, wo = Go, Nr = function(t) {
2358
+ var n = t.children, r = t.innerProps;
2359
+ return O("div", r, n);
2360
+ }, Ro = Nr, Eo = Nr;
2361
+ function Po(e) {
2362
+ var t = e.children, n = e.innerProps;
2363
+ return O("div", D({
2364
+ role: "button"
2365
+ }, n), t || O(dn, {
2366
+ size: 14
2367
+ }));
2368
+ }
2369
+ var To = function(t) {
2370
+ var n = t.children, r = t.components, i = t.data, a = t.innerProps, o = t.isDisabled, s = t.removeProps, l = t.selectProps, d = r.Container, b = r.Label, g = r.Remove;
2371
+ return O(d, {
2372
+ data: i,
2373
+ innerProps: ae(ae({}, se(t, "multiValue", {
2374
+ "multi-value": !0,
2375
+ "multi-value--is-disabled": o
2376
+ })), a),
2377
+ selectProps: l
2378
+ }, O(b, {
2379
+ data: i,
2380
+ innerProps: ae({}, se(t, "multiValueLabel", {
2381
+ "multi-value__label": !0
2382
+ })),
2383
+ selectProps: l
2384
+ }, n), O(g, {
2385
+ data: i,
2386
+ innerProps: ae(ae({}, se(t, "multiValueRemove", {
2387
+ "multi-value__remove": !0
2388
+ })), {}, {
2389
+ "aria-label": "Remove ".concat(n || "option")
2390
+ }, s),
2391
+ selectProps: l
2392
+ }));
2393
+ }, No = To, So = function(t) {
2394
+ var n = t.children, r = t.isDisabled, i = t.isFocused, a = t.isSelected, o = t.innerRef, s = t.innerProps;
2395
+ return O("div", D({}, se(t, "option", {
2396
+ option: !0,
2397
+ "option--is-disabled": r,
2398
+ "option--is-focused": i,
2399
+ "option--is-selected": a
2400
+ }), {
2401
+ ref: o,
2402
+ "aria-disabled": r
2403
+ }, s), n);
2404
+ }, jo = So, Bo = function(t) {
2405
+ var n = t.children, r = t.innerProps;
2406
+ return O("div", D({}, se(t, "placeholder", {
2407
+ placeholder: !0
2408
+ }), r), n);
2409
+ }, Xo = Bo, Wo = function(t) {
2410
+ var n = t.children, r = t.isDisabled, i = t.innerProps;
2411
+ return O("div", D({}, se(t, "singleValue", {
2412
+ "single-value": !0,
2413
+ "single-value--is-disabled": r
2414
+ }), i), n);
2415
+ }, Vo = Wo, Mo = {
2416
+ ClearIndicator: bo,
2417
+ Control: vo,
2418
+ DropdownIndicator: uo,
2419
+ DownChevron: Pr,
2420
+ CrossIcon: dn,
2421
+ Group: yo,
2422
+ GroupHeading: Io,
2423
+ IndicatorsContainer: ao,
2424
+ IndicatorSeparator: go,
2425
+ Input: wo,
2426
+ LoadingIndicator: mo,
2427
+ Menu: Ka,
2428
+ MenuList: qa,
2429
+ MenuPortal: no,
2430
+ LoadingMessage: to,
2431
+ NoOptionsMessage: eo,
2432
+ MultiValue: No,
2433
+ MultiValueContainer: Ro,
2434
+ MultiValueLabel: Eo,
2435
+ MultiValueRemove: Po,
2436
+ Option: jo,
2437
+ Placeholder: Xo,
2438
+ SelectContainer: ro,
2439
+ SingleValue: Vo,
2440
+ ValueContainer: io
2441
+ }, Oo = function(t) {
2442
+ return ae(ae({}, Mo), t.components);
2443
+ };
2444
+ function Qt(e, t) {
2445
+ return Qt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
2446
+ return n.__proto__ = r, n;
2447
+ }, Qt(e, t);
2448
+ }
2449
+ function Sr(e, t) {
2450
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Qt(e, t);
2451
+ }
2452
+ var Kt = { exports: {} };
2453
+ /*
2454
+ object-assign
2455
+ (c) Sindre Sorhus
2456
+ @license MIT
2457
+ */
2458
+ var Yt, _n;
2459
+ function Yo() {
2460
+ if (_n) return Yt;
2461
+ _n = 1;
2462
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
2463
+ function r(a) {
2464
+ if (a == null)
2465
+ throw new TypeError("Object.assign cannot be called with null or undefined");
2466
+ return Object(a);
2467
+ }
2468
+ function i() {
2469
+ try {
2470
+ if (!Object.assign)
2471
+ return !1;
2472
+ var a = new String("abc");
2473
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
2474
+ return !1;
2475
+ for (var o = {}, s = 0; s < 10; s++)
2476
+ o["_" + String.fromCharCode(s)] = s;
2477
+ var l = Object.getOwnPropertyNames(o).map(function(b) {
2478
+ return o[b];
2479
+ });
2480
+ if (l.join("") !== "0123456789")
2481
+ return !1;
2482
+ var d = {};
2483
+ return "abcdefghijklmnopqrst".split("").forEach(function(b) {
2484
+ d[b] = b;
2485
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
2486
+ } catch {
2487
+ return !1;
2488
+ }
2489
+ }
2490
+ return Yt = i() ? Object.assign : function(a, o) {
2491
+ for (var s, l = r(a), d, b = 1; b < arguments.length; b++) {
2492
+ s = Object(arguments[b]);
2493
+ for (var g in s)
2494
+ t.call(s, g) && (l[g] = s[g]);
2495
+ if (e) {
2496
+ d = e(s);
2497
+ for (var x = 0; x < d.length; x++)
2498
+ n.call(s, d[x]) && (l[d[x]] = s[d[x]]);
2499
+ }
2500
+ }
2501
+ return l;
2502
+ }, Yt;
2503
+ }
2504
+ var Zt, Un;
2505
+ function bn() {
2506
+ if (Un) return Zt;
2507
+ Un = 1;
2508
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2509
+ return Zt = e, Zt;
2510
+ }
2511
+ var Ht, $n;
2512
+ function jr() {
2513
+ return $n || ($n = 1, Ht = Function.call.bind(Object.prototype.hasOwnProperty)), Ht;
2514
+ }
2515
+ var Ft, Qn;
2516
+ function Zo() {
2517
+ if (Qn) return Ft;
2518
+ Qn = 1;
2519
+ var e = function() {
2520
+ };
2521
+ if (process.env.NODE_ENV !== "production") {
2522
+ var t = bn(), n = {}, r = jr();
2523
+ e = function(a) {
2524
+ var o = "Warning: " + a;
2525
+ typeof console < "u" && console.error(o);
2526
+ try {
2527
+ throw new Error(o);
2528
+ } catch {
2529
+ }
2530
+ };
2531
+ }
2532
+ function i(a, o, s, l, d) {
2533
+ if (process.env.NODE_ENV !== "production") {
2534
+ for (var b in a)
2535
+ if (r(a, b)) {
2536
+ var g;
2537
+ try {
2538
+ if (typeof a[b] != "function") {
2539
+ var x = Error(
2540
+ (l || "React class") + ": " + s + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2541
+ );
2542
+ throw x.name = "Invariant Violation", x;
2543
+ }
2544
+ g = a[b](o, b, l, s, null, t);
2545
+ } catch (E) {
2546
+ g = E;
2547
+ }
2548
+ if (g && !(g instanceof Error) && e(
2549
+ (l || "React class") + ": type specification of " + s + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof g + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2550
+ ), g instanceof Error && !(g.message in n)) {
2551
+ n[g.message] = !0;
2552
+ var R = d ? d() : "";
2553
+ e(
2554
+ "Failed " + s + " type: " + g.message + (R ?? "")
2555
+ );
2556
+ }
2557
+ }
2558
+ }
2559
+ }
2560
+ return i.resetWarningCache = function() {
2561
+ process.env.NODE_ENV !== "production" && (n = {});
2562
+ }, Ft = i, Ft;
2563
+ }
2564
+ var zt, Kn;
2565
+ function Ho() {
2566
+ if (Kn) return zt;
2567
+ Kn = 1;
2568
+ var e = on, t = Yo(), n = bn(), r = jr(), i = Zo(), a = function() {
2569
+ };
2570
+ process.env.NODE_ENV !== "production" && (a = function(s) {
2571
+ var l = "Warning: " + s;
2572
+ typeof console < "u" && console.error(l);
2573
+ try {
2574
+ throw new Error(l);
2575
+ } catch {
2576
+ }
2577
+ });
2578
+ function o() {
2579
+ return null;
2580
+ }
2581
+ return zt = function(s, l) {
2582
+ var d = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
2583
+ function g(v) {
2584
+ var w = v && (d && v[d] || v[b]);
2585
+ if (typeof w == "function")
2586
+ return w;
2587
+ }
2588
+ var x = "<<anonymous>>", R = {
2589
+ array: p("array"),
2590
+ bigint: p("bigint"),
2591
+ bool: p("boolean"),
2592
+ func: p("function"),
2593
+ number: p("number"),
2594
+ object: p("object"),
2595
+ string: p("string"),
2596
+ symbol: p("symbol"),
2597
+ any: P(),
2598
+ arrayOf: y,
2599
+ element: B(),
2600
+ elementType: h(),
2601
+ instanceOf: Q,
2602
+ node: G(),
2603
+ objectOf: j,
2604
+ oneOf: S,
2605
+ oneOfType: m,
2606
+ shape: N,
2607
+ exact: ee
2608
+ };
2609
+ function E(v, w) {
2610
+ return v === w ? v !== 0 || 1 / v === 1 / w : v !== v && w !== w;
2611
+ }
2612
+ function I(v, w) {
2613
+ this.message = v, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
2614
+ }
2615
+ I.prototype = Error.prototype;
2616
+ function T(v) {
2617
+ if (process.env.NODE_ENV !== "production")
2618
+ var w = {}, F = 0;
2619
+ function H(_, Y, Z, z, $, J, be) {
2620
+ if (z = z || x, J = J || Z, be !== n) {
2621
+ if (l) {
2622
+ var C = new Error(
2623
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
2624
+ );
2625
+ throw C.name = "Invariant Violation", C;
2626
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2627
+ var Ae = z + ":" + Z;
2628
+ !w[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
2629
+ F < 3 && (a(
2630
+ "You are manually calling a React.PropTypes validation function for the `" + J + "` prop on `" + z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2631
+ ), w[Ae] = !0, F++);
2632
+ }
2633
+ }
2634
+ return Y[Z] == null ? _ ? Y[Z] === null ? new I("The " + $ + " `" + J + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new I("The " + $ + " `" + J + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : v(Y, Z, z, $, J);
2635
+ }
2636
+ var M = H.bind(null, !1);
2637
+ return M.isRequired = H.bind(null, !0), M;
2638
+ }
2639
+ function p(v) {
2640
+ function w(F, H, M, _, Y, Z) {
2641
+ var z = F[H], $ = Ie(z);
2642
+ if ($ !== v) {
2643
+ var J = Re(z);
2644
+ return new I(
2645
+ "Invalid " + _ + " `" + Y + "` of type " + ("`" + J + "` supplied to `" + M + "`, expected ") + ("`" + v + "`."),
2646
+ { expectedType: v }
2647
+ );
2648
+ }
2649
+ return null;
2650
+ }
2651
+ return T(w);
2652
+ }
2653
+ function P() {
2654
+ return T(o);
2655
+ }
2656
+ function y(v) {
2657
+ function w(F, H, M, _, Y) {
2658
+ if (typeof v != "function")
2659
+ return new I("Property `" + Y + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
2660
+ var Z = F[H];
2661
+ if (!Array.isArray(Z)) {
2662
+ var z = Ie(Z);
2663
+ return new I("Invalid " + _ + " `" + Y + "` of type " + ("`" + z + "` supplied to `" + M + "`, expected an array."));
2664
+ }
2665
+ for (var $ = 0; $ < Z.length; $++) {
2666
+ var J = v(Z, $, M, _, Y + "[" + $ + "]", n);
2667
+ if (J instanceof Error)
2668
+ return J;
2669
+ }
2670
+ return null;
2671
+ }
2672
+ return T(w);
2673
+ }
2674
+ function B() {
2675
+ function v(w, F, H, M, _) {
2676
+ var Y = w[F];
2677
+ if (!s(Y)) {
2678
+ var Z = Ie(Y);
2679
+ return new I("Invalid " + M + " `" + _ + "` of type " + ("`" + Z + "` supplied to `" + H + "`, expected a single ReactElement."));
2680
+ }
2681
+ return null;
2682
+ }
2683
+ return T(v);
2684
+ }
2685
+ function h() {
2686
+ function v(w, F, H, M, _) {
2687
+ var Y = w[F];
2688
+ if (!e.isValidElementType(Y)) {
2689
+ var Z = Ie(Y);
2690
+ return new I("Invalid " + M + " `" + _ + "` of type " + ("`" + Z + "` supplied to `" + H + "`, expected a single ReactElement type."));
2691
+ }
2692
+ return null;
2693
+ }
2694
+ return T(v);
2695
+ }
2696
+ function Q(v) {
2697
+ function w(F, H, M, _, Y) {
2698
+ if (!(F[H] instanceof v)) {
2699
+ var Z = v.name || x, z = Ye(F[H]);
2700
+ return new I("Invalid " + _ + " `" + Y + "` of type " + ("`" + z + "` supplied to `" + M + "`, expected ") + ("instance of `" + Z + "`."));
2701
+ }
2702
+ return null;
2703
+ }
2704
+ return T(w);
2705
+ }
2706
+ function S(v) {
2707
+ if (!Array.isArray(v))
2708
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
2709
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2710
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
2711
+ function w(F, H, M, _, Y) {
2712
+ for (var Z = F[H], z = 0; z < v.length; z++)
2713
+ if (E(Z, v[z]))
2714
+ return null;
2715
+ var $ = JSON.stringify(v, function(be, C) {
2716
+ var Ae = Re(C);
2717
+ return Ae === "symbol" ? String(C) : C;
2718
+ });
2719
+ return new I("Invalid " + _ + " `" + Y + "` of value `" + String(Z) + "` " + ("supplied to `" + M + "`, expected one of " + $ + "."));
2720
+ }
2721
+ return T(w);
2722
+ }
2723
+ function j(v) {
2724
+ function w(F, H, M, _, Y) {
2725
+ if (typeof v != "function")
2726
+ return new I("Property `" + Y + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
2727
+ var Z = F[H], z = Ie(Z);
2728
+ if (z !== "object")
2729
+ return new I("Invalid " + _ + " `" + Y + "` of type " + ("`" + z + "` supplied to `" + M + "`, expected an object."));
2730
+ for (var $ in Z)
2731
+ if (r(Z, $)) {
2732
+ var J = v(Z, $, M, _, Y + "." + $, n);
2733
+ if (J instanceof Error)
2734
+ return J;
2735
+ }
2736
+ return null;
2737
+ }
2738
+ return T(w);
2739
+ }
2740
+ function m(v) {
2741
+ if (!Array.isArray(v))
2742
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
2743
+ for (var w = 0; w < v.length; w++) {
2744
+ var F = v[w];
2745
+ if (typeof F != "function")
2746
+ return a(
2747
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Be(F) + " at index " + w + "."
2748
+ ), o;
2749
+ }
2750
+ function H(M, _, Y, Z, z) {
2751
+ for (var $ = [], J = 0; J < v.length; J++) {
2752
+ var be = v[J], C = be(M, _, Y, Z, z, n);
2753
+ if (C == null)
2754
+ return null;
2755
+ C.data && r(C.data, "expectedType") && $.push(C.data.expectedType);
2756
+ }
2757
+ var Ae = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
2758
+ return new I("Invalid " + Z + " `" + z + "` supplied to " + ("`" + Y + "`" + Ae + "."));
2759
+ }
2760
+ return T(H);
2761
+ }
2762
+ function G() {
2763
+ function v(w, F, H, M, _) {
2764
+ return k(w[F]) ? null : new I("Invalid " + M + " `" + _ + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
2765
+ }
2766
+ return T(v);
2767
+ }
2768
+ function X(v, w, F, H, M) {
2769
+ return new I(
2770
+ (v || "React class") + ": " + w + " type `" + F + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + M + "`."
2771
+ );
2772
+ }
2773
+ function N(v) {
2774
+ function w(F, H, M, _, Y) {
2775
+ var Z = F[H], z = Ie(Z);
2776
+ if (z !== "object")
2777
+ return new I("Invalid " + _ + " `" + Y + "` of type `" + z + "` " + ("supplied to `" + M + "`, expected `object`."));
2778
+ for (var $ in v) {
2779
+ var J = v[$];
2780
+ if (typeof J != "function")
2781
+ return X(M, _, Y, $, Re(J));
2782
+ var be = J(Z, $, M, _, Y + "." + $, n);
2783
+ if (be)
2784
+ return be;
2785
+ }
2786
+ return null;
2787
+ }
2788
+ return T(w);
2789
+ }
2790
+ function ee(v) {
2791
+ function w(F, H, M, _, Y) {
2792
+ var Z = F[H], z = Ie(Z);
2793
+ if (z !== "object")
2794
+ return new I("Invalid " + _ + " `" + Y + "` of type `" + z + "` " + ("supplied to `" + M + "`, expected `object`."));
2795
+ var $ = t({}, F[H], v);
2796
+ for (var J in $) {
2797
+ var be = v[J];
2798
+ if (r(v, J) && typeof be != "function")
2799
+ return X(M, _, Y, J, Re(be));
2800
+ if (!be)
2801
+ return new I(
2802
+ "Invalid " + _ + " `" + Y + "` key `" + J + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(F[H], null, " ") + `
2803
+ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
2804
+ );
2805
+ var C = be(Z, J, M, _, Y + "." + J, n);
2806
+ if (C)
2807
+ return C;
2808
+ }
2809
+ return null;
2810
+ }
2811
+ return T(w);
2812
+ }
2813
+ function k(v) {
2814
+ switch (typeof v) {
2815
+ case "number":
2816
+ case "string":
2817
+ case "undefined":
2818
+ return !0;
2819
+ case "boolean":
2820
+ return !v;
2821
+ case "object":
2822
+ if (Array.isArray(v))
2823
+ return v.every(k);
2824
+ if (v === null || s(v))
2825
+ return !0;
2826
+ var w = g(v);
2827
+ if (w) {
2828
+ var F = w.call(v), H;
2829
+ if (w !== v.entries) {
2830
+ for (; !(H = F.next()).done; )
2831
+ if (!k(H.value))
2832
+ return !1;
2833
+ } else
2834
+ for (; !(H = F.next()).done; ) {
2835
+ var M = H.value;
2836
+ if (M && !k(M[1]))
2837
+ return !1;
2838
+ }
2839
+ } else
2840
+ return !1;
2841
+ return !0;
2842
+ default:
2843
+ return !1;
2844
+ }
2845
+ }
2846
+ function fe(v, w) {
2847
+ return v === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
2848
+ }
2849
+ function Ie(v) {
2850
+ var w = typeof v;
2851
+ return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : fe(w, v) ? "symbol" : w;
2852
+ }
2853
+ function Re(v) {
2854
+ if (typeof v > "u" || v === null)
2855
+ return "" + v;
2856
+ var w = Ie(v);
2857
+ if (w === "object") {
2858
+ if (v instanceof Date)
2859
+ return "date";
2860
+ if (v instanceof RegExp)
2861
+ return "regexp";
2862
+ }
2863
+ return w;
2864
+ }
2865
+ function Be(v) {
2866
+ var w = Re(v);
2867
+ switch (w) {
2868
+ case "array":
2869
+ case "object":
2870
+ return "an " + w;
2871
+ case "boolean":
2872
+ case "date":
2873
+ case "regexp":
2874
+ return "a " + w;
2875
+ default:
2876
+ return w;
2877
+ }
2878
+ }
2879
+ function Ye(v) {
2880
+ return !v.constructor || !v.constructor.name ? x : v.constructor.name;
2881
+ }
2882
+ return R.checkPropTypes = i, R.resetWarningCache = i.resetWarningCache, R.PropTypes = R, R;
2883
+ }, zt;
2884
+ }
2885
+ var Jt, qn;
2886
+ function Fo() {
2887
+ if (qn) return Jt;
2888
+ qn = 1;
2889
+ var e = bn();
2890
+ function t() {
2891
+ }
2892
+ function n() {
2893
+ }
2894
+ return n.resetWarningCache = t, Jt = function() {
2895
+ function r(o, s, l, d, b, g) {
2896
+ if (g !== e) {
2897
+ var x = new Error(
2898
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2899
+ );
2900
+ throw x.name = "Invariant Violation", x;
2901
+ }
2902
+ }
2903
+ r.isRequired = r;
2904
+ function i() {
2905
+ return r;
2906
+ }
2907
+ var a = {
2908
+ array: r,
2909
+ bigint: r,
2910
+ bool: r,
2911
+ func: r,
2912
+ number: r,
2913
+ object: r,
2914
+ string: r,
2915
+ symbol: r,
2916
+ any: r,
2917
+ arrayOf: i,
2918
+ element: r,
2919
+ elementType: r,
2920
+ instanceOf: i,
2921
+ node: r,
2922
+ objectOf: i,
2923
+ oneOf: i,
2924
+ oneOfType: i,
2925
+ shape: i,
2926
+ exact: i,
2927
+ checkPropTypes: n,
2928
+ resetWarningCache: t
2929
+ };
2930
+ return a.PropTypes = a, a;
2931
+ }, Jt;
2932
+ }
2933
+ if (process.env.NODE_ENV !== "production") {
2934
+ var zo = on, Jo = !0;
2935
+ Kt.exports = Ho()(zo.isElement, Jo);
2936
+ } else
2937
+ Kt.exports = Fo()();
2938
+ var ko = Kt.exports;
2939
+ const V = /* @__PURE__ */ pi(ko), er = {
2940
+ disabled: !1
2941
+ };
2942
+ var Lo = process.env.NODE_ENV !== "production" ? V.oneOfType([V.number, V.shape({
2943
+ enter: V.number,
2944
+ exit: V.number,
2945
+ appear: V.number
2946
+ }).isRequired]) : null;
2947
+ process.env.NODE_ENV !== "production" && V.oneOfType([V.string, V.shape({
2948
+ enter: V.string,
2949
+ exit: V.string,
2950
+ active: V.string
2951
+ }), V.shape({
2952
+ enter: V.string,
2953
+ enterDone: V.string,
2954
+ enterActive: V.string,
2955
+ exit: V.string,
2956
+ exitDone: V.string,
2957
+ exitActive: V.string
2958
+ })]);
2959
+ const At = we.createContext(null);
2960
+ var Do = function(t) {
2961
+ return t.scrollTop;
2962
+ }, qe = "unmounted", Ve = "exited", Me = "entering", Je = "entered", qt = "exiting", Ne = /* @__PURE__ */ function(e) {
2963
+ Sr(t, e);
2964
+ function t(r, i) {
2965
+ var a;
2966
+ a = e.call(this, r, i) || this;
2967
+ var o = i, s = o && !o.isMounting ? r.enter : r.appear, l;
2968
+ return a.appearStatus = null, r.in ? s ? (l = Ve, a.appearStatus = Me) : l = Je : r.unmountOnExit || r.mountOnEnter ? l = qe : l = Ve, a.state = {
2969
+ status: l
2970
+ }, a.nextCallback = null, a;
2971
+ }
2972
+ t.getDerivedStateFromProps = function(i, a) {
2973
+ var o = i.in;
2974
+ return o && a.status === qe ? {
2975
+ status: Ve
2976
+ } : null;
2977
+ };
2978
+ var n = t.prototype;
2979
+ return n.componentDidMount = function() {
2980
+ this.updateStatus(!0, this.appearStatus);
2981
+ }, n.componentDidUpdate = function(i) {
2982
+ var a = null;
2983
+ if (i !== this.props) {
2984
+ var o = this.state.status;
2985
+ this.props.in ? o !== Me && o !== Je && (a = Me) : (o === Me || o === Je) && (a = qt);
2986
+ }
2987
+ this.updateStatus(!1, a);
2988
+ }, n.componentWillUnmount = function() {
2989
+ this.cancelNextCallback();
2990
+ }, n.getTimeouts = function() {
2991
+ var i = this.props.timeout, a, o, s;
2992
+ return a = o = s = i, i != null && typeof i != "number" && (a = i.exit, o = i.enter, s = i.appear !== void 0 ? i.appear : o), {
2993
+ exit: a,
2994
+ enter: o,
2995
+ appear: s
2996
+ };
2997
+ }, n.updateStatus = function(i, a) {
2998
+ if (i === void 0 && (i = !1), a !== null)
2999
+ if (this.cancelNextCallback(), a === Me) {
3000
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
3001
+ var o = this.props.nodeRef ? this.props.nodeRef.current : lt.findDOMNode(this);
3002
+ o && Do(o);
3003
+ }
3004
+ this.performEnter(i);
3005
+ } else
3006
+ this.performExit();
3007
+ else this.props.unmountOnExit && this.state.status === Ve && this.setState({
3008
+ status: qe
3009
+ });
3010
+ }, n.performEnter = function(i) {
3011
+ var a = this, o = this.props.enter, s = this.context ? this.context.isMounting : i, l = this.props.nodeRef ? [s] : [lt.findDOMNode(this), s], d = l[0], b = l[1], g = this.getTimeouts(), x = s ? g.appear : g.enter;
3012
+ if (!i && !o || er.disabled) {
3013
+ this.safeSetState({
3014
+ status: Je
3015
+ }, function() {
3016
+ a.props.onEntered(d);
3017
+ });
3018
+ return;
3019
+ }
3020
+ this.props.onEnter(d, b), this.safeSetState({
3021
+ status: Me
3022
+ }, function() {
3023
+ a.props.onEntering(d, b), a.onTransitionEnd(x, function() {
3024
+ a.safeSetState({
3025
+ status: Je
3026
+ }, function() {
3027
+ a.props.onEntered(d, b);
3028
+ });
3029
+ });
3030
+ });
3031
+ }, n.performExit = function() {
3032
+ var i = this, a = this.props.exit, o = this.getTimeouts(), s = this.props.nodeRef ? void 0 : lt.findDOMNode(this);
3033
+ if (!a || er.disabled) {
3034
+ this.safeSetState({
3035
+ status: Ve
3036
+ }, function() {
3037
+ i.props.onExited(s);
3038
+ });
3039
+ return;
3040
+ }
3041
+ this.props.onExit(s), this.safeSetState({
3042
+ status: qt
3043
+ }, function() {
3044
+ i.props.onExiting(s), i.onTransitionEnd(o.exit, function() {
3045
+ i.safeSetState({
3046
+ status: Ve
3047
+ }, function() {
3048
+ i.props.onExited(s);
3049
+ });
3050
+ });
3051
+ });
3052
+ }, n.cancelNextCallback = function() {
3053
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
3054
+ }, n.safeSetState = function(i, a) {
3055
+ a = this.setNextCallback(a), this.setState(i, a);
3056
+ }, n.setNextCallback = function(i) {
3057
+ var a = this, o = !0;
3058
+ return this.nextCallback = function(s) {
3059
+ o && (o = !1, a.nextCallback = null, i(s));
3060
+ }, this.nextCallback.cancel = function() {
3061
+ o = !1;
3062
+ }, this.nextCallback;
3063
+ }, n.onTransitionEnd = function(i, a) {
3064
+ this.setNextCallback(a);
3065
+ var o = this.props.nodeRef ? this.props.nodeRef.current : lt.findDOMNode(this), s = i == null && !this.props.addEndListener;
3066
+ if (!o || s) {
3067
+ setTimeout(this.nextCallback, 0);
3068
+ return;
3069
+ }
3070
+ if (this.props.addEndListener) {
3071
+ var l = this.props.nodeRef ? [this.nextCallback] : [o, this.nextCallback], d = l[0], b = l[1];
3072
+ this.props.addEndListener(d, b);
3073
+ }
3074
+ i != null && setTimeout(this.nextCallback, i);
3075
+ }, n.render = function() {
3076
+ var i = this.state.status;
3077
+ if (i === qe)
3078
+ return null;
3079
+ var a = this.props, o = a.children;
3080
+ a.in, a.mountOnEnter, a.unmountOnExit, a.appear, a.enter, a.exit, a.timeout, a.addEndListener, a.onEnter, a.onEntering, a.onEntered, a.onExit, a.onExiting, a.onExited, a.nodeRef;
3081
+ var s = tn(a, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
3082
+ return (
3083
+ // allows for nested Transitions
3084
+ /* @__PURE__ */ we.createElement(At.Provider, {
3085
+ value: null
3086
+ }, typeof o == "function" ? o(i, s) : we.cloneElement(we.Children.only(o), s))
3087
+ );
3088
+ }, t;
3089
+ }(we.Component);
3090
+ Ne.contextType = At;
3091
+ Ne.propTypes = process.env.NODE_ENV !== "production" ? {
3092
+ /**
3093
+ * A React reference to DOM element that need to transition:
3094
+ * https://stackoverflow.com/a/51127130/4671932
3095
+ *
3096
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
3097
+ * (e.g. `onEnter`) because user already has direct access to the node.
3098
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
3099
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
3100
+ * (see
3101
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
3102
+ */
3103
+ nodeRef: V.shape({
3104
+ current: typeof Element > "u" ? V.any : function(e, t, n, r, i, a) {
3105
+ var o = e[t];
3106
+ return V.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(e, t, n, r, i, a);
3107
+ }
3108
+ }),
3109
+ /**
3110
+ * A `function` child can be used instead of a React element. This function is
3111
+ * called with the current transition status (`'entering'`, `'entered'`,
3112
+ * `'exiting'`, `'exited'`), which can be used to apply context
3113
+ * specific props to a component.
3114
+ *
3115
+ * ```jsx
3116
+ * <Transition in={this.state.in} timeout={150}>
3117
+ * {state => (
3118
+ * <MyComponent className={`fade fade-${state}`} />
3119
+ * )}
3120
+ * </Transition>
3121
+ * ```
3122
+ */
3123
+ children: V.oneOfType([V.func.isRequired, V.element.isRequired]).isRequired,
3124
+ /**
3125
+ * Show the component; triggers the enter or exit states
3126
+ */
3127
+ in: V.bool,
3128
+ /**
3129
+ * By default the child component is mounted immediately along with
3130
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
3131
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
3132
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
3133
+ */
3134
+ mountOnEnter: V.bool,
3135
+ /**
3136
+ * By default the child component stays mounted after it reaches the `'exited'` state.
3137
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
3138
+ */
3139
+ unmountOnExit: V.bool,
3140
+ /**
3141
+ * By default the child component does not perform the enter transition when
3142
+ * it first mounts, regardless of the value of `in`. If you want this
3143
+ * behavior, set both `appear` and `in` to `true`.
3144
+ *
3145
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
3146
+ * > only adds an additional enter transition. However, in the
3147
+ * > `<CSSTransition>` component that first enter transition does result in
3148
+ * > additional `.appear-*` classes, that way you can choose to style it
3149
+ * > differently.
3150
+ */
3151
+ appear: V.bool,
3152
+ /**
3153
+ * Enable or disable enter transitions.
3154
+ */
3155
+ enter: V.bool,
3156
+ /**
3157
+ * Enable or disable exit transitions.
3158
+ */
3159
+ exit: V.bool,
3160
+ /**
3161
+ * The duration of the transition, in milliseconds.
3162
+ * Required unless `addEndListener` is provided.
3163
+ *
3164
+ * You may specify a single timeout for all transitions:
3165
+ *
3166
+ * ```jsx
3167
+ * timeout={500}
3168
+ * ```
3169
+ *
3170
+ * or individually:
3171
+ *
3172
+ * ```jsx
3173
+ * timeout={{
3174
+ * appear: 500,
3175
+ * enter: 300,
3176
+ * exit: 500,
3177
+ * }}
3178
+ * ```
3179
+ *
3180
+ * - `appear` defaults to the value of `enter`
3181
+ * - `enter` defaults to `0`
3182
+ * - `exit` defaults to `0`
3183
+ *
3184
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
3185
+ */
3186
+ timeout: function(t) {
3187
+ var n = Lo;
3188
+ t.addEndListener || (n = n.isRequired);
3189
+ for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
3190
+ i[a - 1] = arguments[a];
3191
+ return n.apply(void 0, [t].concat(i));
3192
+ },
3193
+ /**
3194
+ * Add a custom transition end trigger. Called with the transitioning
3195
+ * DOM node and a `done` callback. Allows for more fine grained transition end
3196
+ * logic. Timeouts are still used as a fallback if provided.
3197
+ *
3198
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3199
+ *
3200
+ * ```jsx
3201
+ * addEndListener={(node, done) => {
3202
+ * // use the css transitionend event to mark the finish of a transition
3203
+ * node.addEventListener('transitionend', done, false);
3204
+ * }}
3205
+ * ```
3206
+ */
3207
+ addEndListener: V.func,
3208
+ /**
3209
+ * Callback fired before the "entering" status is applied. An extra parameter
3210
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3211
+ *
3212
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3213
+ *
3214
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
3215
+ */
3216
+ onEnter: V.func,
3217
+ /**
3218
+ * Callback fired after the "entering" status is applied. An extra parameter
3219
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3220
+ *
3221
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3222
+ *
3223
+ * @type Function(node: HtmlElement, isAppearing: bool)
3224
+ */
3225
+ onEntering: V.func,
3226
+ /**
3227
+ * Callback fired after the "entered" status is applied. An extra parameter
3228
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
3229
+ *
3230
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3231
+ *
3232
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
3233
+ */
3234
+ onEntered: V.func,
3235
+ /**
3236
+ * Callback fired before the "exiting" status is applied.
3237
+ *
3238
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3239
+ *
3240
+ * @type Function(node: HtmlElement) -> void
3241
+ */
3242
+ onExit: V.func,
3243
+ /**
3244
+ * Callback fired after the "exiting" status is applied.
3245
+ *
3246
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
3247
+ *
3248
+ * @type Function(node: HtmlElement) -> void
3249
+ */
3250
+ onExiting: V.func,
3251
+ /**
3252
+ * Callback fired after the "exited" status is applied.
3253
+ *
3254
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
3255
+ *
3256
+ * @type Function(node: HtmlElement) -> void
3257
+ */
3258
+ onExited: V.func
3259
+ } : {};
3260
+ function ze() {
3261
+ }
3262
+ Ne.defaultProps = {
3263
+ in: !1,
3264
+ mountOnEnter: !1,
3265
+ unmountOnExit: !1,
3266
+ appear: !1,
3267
+ enter: !0,
3268
+ exit: !0,
3269
+ onEnter: ze,
3270
+ onEntering: ze,
3271
+ onEntered: ze,
3272
+ onExit: ze,
3273
+ onExiting: ze,
3274
+ onExited: ze
3275
+ };
3276
+ Ne.UNMOUNTED = qe;
3277
+ Ne.EXITED = Ve;
3278
+ Ne.ENTERING = Me;
3279
+ Ne.ENTERED = Je;
3280
+ Ne.EXITING = qt;
3281
+ function _o(e) {
3282
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3283
+ return e;
3284
+ }
3285
+ function gn(e, t) {
3286
+ var n = function(a) {
3287
+ return t && gt(a) ? t(a) : a;
3288
+ }, r = /* @__PURE__ */ Object.create(null);
3289
+ return e && si.map(e, function(i) {
3290
+ return i;
3291
+ }).forEach(function(i) {
3292
+ r[i.key] = n(i);
3293
+ }), r;
3294
+ }
3295
+ function Uo(e, t) {
3296
+ e = e || {}, t = t || {};
3297
+ function n(b) {
3298
+ return b in t ? t[b] : e[b];
3299
+ }
3300
+ var r = /* @__PURE__ */ Object.create(null), i = [];
3301
+ for (var a in e)
3302
+ a in t ? i.length && (r[a] = i, i = []) : i.push(a);
3303
+ var o, s = {};
3304
+ for (var l in t) {
3305
+ if (r[l])
3306
+ for (o = 0; o < r[l].length; o++) {
3307
+ var d = r[l][o];
3308
+ s[r[l][o]] = n(d);
3309
+ }
3310
+ s[l] = n(l);
3311
+ }
3312
+ for (o = 0; o < i.length; o++)
3313
+ s[i[o]] = n(i[o]);
3314
+ return s;
3315
+ }
3316
+ function Oe(e, t, n) {
3317
+ return n[t] != null ? n[t] : e.props[t];
3318
+ }
3319
+ function $o(e, t) {
3320
+ return gn(e.children, function(n) {
3321
+ return ft(n, {
3322
+ onExited: t.bind(null, n),
3323
+ in: !0,
3324
+ appear: Oe(n, "appear", e),
3325
+ enter: Oe(n, "enter", e),
3326
+ exit: Oe(n, "exit", e)
3327
+ });
3328
+ });
3329
+ }
3330
+ function Qo(e, t, n) {
3331
+ var r = gn(e.children), i = Uo(t, r);
3332
+ return Object.keys(i).forEach(function(a) {
3333
+ var o = i[a];
3334
+ if (gt(o)) {
3335
+ var s = a in t, l = a in r, d = t[a], b = gt(d) && !d.props.in;
3336
+ l && (!s || b) ? i[a] = ft(o, {
3337
+ onExited: n.bind(null, o),
3338
+ in: !0,
3339
+ exit: Oe(o, "exit", e),
3340
+ enter: Oe(o, "enter", e)
3341
+ }) : !l && s && !b ? i[a] = ft(o, {
3342
+ in: !1
3343
+ }) : l && s && gt(d) && (i[a] = ft(o, {
3344
+ onExited: n.bind(null, o),
3345
+ in: d.props.in,
3346
+ exit: Oe(o, "exit", e),
3347
+ enter: Oe(o, "enter", e)
3348
+ }));
3349
+ }
3350
+ }), i;
3351
+ }
3352
+ var Ko = Object.values || function(e) {
3353
+ return Object.keys(e).map(function(t) {
3354
+ return e[t];
3355
+ });
3356
+ }, qo = {
3357
+ component: "div",
3358
+ childFactory: function(t) {
3359
+ return t;
3360
+ }
3361
+ }, Pt = /* @__PURE__ */ function(e) {
3362
+ Sr(t, e);
3363
+ function t(r, i) {
3364
+ var a;
3365
+ a = e.call(this, r, i) || this;
3366
+ var o = a.handleExited.bind(_o(a));
3367
+ return a.state = {
3368
+ contextValue: {
3369
+ isMounting: !0
3370
+ },
3371
+ handleExited: o,
3372
+ firstRender: !0
3373
+ }, a;
3374
+ }
3375
+ var n = t.prototype;
3376
+ return n.componentDidMount = function() {
3377
+ this.mounted = !0, this.setState({
3378
+ contextValue: {
3379
+ isMounting: !1
3380
+ }
3381
+ });
3382
+ }, n.componentWillUnmount = function() {
3383
+ this.mounted = !1;
3384
+ }, t.getDerivedStateFromProps = function(i, a) {
3385
+ var o = a.children, s = a.handleExited, l = a.firstRender;
3386
+ return {
3387
+ children: l ? $o(i, s) : Qo(i, o, s),
3388
+ firstRender: !1
3389
+ };
3390
+ }, n.handleExited = function(i, a) {
3391
+ var o = gn(this.props.children);
3392
+ i.key in o || (i.props.onExited && i.props.onExited(a), this.mounted && this.setState(function(s) {
3393
+ var l = D({}, s.children);
3394
+ return delete l[i.key], {
3395
+ children: l
3396
+ };
3397
+ }));
3398
+ }, n.render = function() {
3399
+ var i = this.props, a = i.component, o = i.childFactory, s = tn(i, ["component", "childFactory"]), l = this.state.contextValue, d = Ko(this.state.children).map(o);
3400
+ return delete s.appear, delete s.enter, delete s.exit, a === null ? /* @__PURE__ */ we.createElement(At.Provider, {
3401
+ value: l
3402
+ }, d) : /* @__PURE__ */ we.createElement(At.Provider, {
3403
+ value: l
3404
+ }, /* @__PURE__ */ we.createElement(a, s, d));
3405
+ }, t;
3406
+ }(we.Component);
3407
+ Pt.propTypes = process.env.NODE_ENV !== "production" ? {
3408
+ /**
3409
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
3410
+ * behavior by providing a `component` prop.
3411
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
3412
+ * you can pass in `component={null}`. This is useful if the wrapping div
3413
+ * borks your css styles.
3414
+ */
3415
+ component: V.any,
3416
+ /**
3417
+ * A set of `<Transition>` components, that are toggled `in` and out as they
3418
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
3419
+ * remember to spread them through if you are wrapping the `<Transition>` as
3420
+ * with our `<Fade>` example.
3421
+ *
3422
+ * While this component is meant for multiple `Transition` or `CSSTransition`
3423
+ * children, sometimes you may want to have a single transition child with
3424
+ * content that you want to be transitioned out and in when you change it
3425
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
3426
+ * the transition child as you change its content, this will cause
3427
+ * `TransitionGroup` to transition the child out and back in.
3428
+ */
3429
+ children: V.node,
3430
+ /**
3431
+ * A convenience prop that enables or disables appear animations
3432
+ * for all children. Note that specifying this will override any defaults set
3433
+ * on individual children Transitions.
3434
+ */
3435
+ appear: V.bool,
3436
+ /**
3437
+ * A convenience prop that enables or disables enter animations
3438
+ * for all children. Note that specifying this will override any defaults set
3439
+ * on individual children Transitions.
3440
+ */
3441
+ enter: V.bool,
3442
+ /**
3443
+ * A convenience prop that enables or disables exit animations
3444
+ * for all children. Note that specifying this will override any defaults set
3445
+ * on individual children Transitions.
3446
+ */
3447
+ exit: V.bool,
3448
+ /**
3449
+ * You may need to apply reactive updates to a child as it is exiting.
3450
+ * This is generally done by using `cloneElement` however in the case of an exiting
3451
+ * child the element has already been removed and not accessible to the consumer.
3452
+ *
3453
+ * If you do need to update a child as it leaves you can provide a `childFactory`
3454
+ * to wrap every child, even the ones that are leaving.
3455
+ *
3456
+ * @type Function(child: ReactElement) -> ReactElement
3457
+ */
3458
+ childFactory: V.func
3459
+ } : {};
3460
+ Pt.defaultProps = qo;
3461
+ var es = ["in", "onExited", "appear", "enter", "exit"], ts = function(t) {
3462
+ return function(n) {
3463
+ n.in, n.onExited, n.appear, n.enter, n.exit;
3464
+ var r = Ce(n, es);
3465
+ return /* @__PURE__ */ oe.createElement(t, r);
3466
+ };
3467
+ }, ns = ts, rs = ["component", "duration", "in", "onExited"], Br = function(t) {
3468
+ var n = t.component, r = t.duration, i = r === void 0 ? 1 : r, a = t.in;
3469
+ t.onExited;
3470
+ var o = Ce(t, rs), s = et(null), l = {
3471
+ entering: {
3472
+ opacity: 0
3473
+ },
3474
+ entered: {
3475
+ opacity: 1,
3476
+ transition: "opacity ".concat(i, "ms")
3477
+ },
3478
+ exiting: {
3479
+ opacity: 0
3480
+ },
3481
+ exited: {
3482
+ opacity: 0
3483
+ }
3484
+ };
3485
+ return /* @__PURE__ */ oe.createElement(Ne, {
3486
+ mountOnEnter: !0,
3487
+ unmountOnExit: !0,
3488
+ in: a,
3489
+ timeout: i,
3490
+ nodeRef: s
3491
+ }, function(d) {
3492
+ var b = {
3493
+ style: ae({}, l[d]),
3494
+ ref: s
3495
+ };
3496
+ return /* @__PURE__ */ oe.createElement(n, D({
3497
+ innerProps: b
3498
+ }, o));
3499
+ });
3500
+ }, en = 260, is = function(t) {
3501
+ var n = t.children, r = t.in, i = t.onExited, a = et(null), o = ve("auto"), s = at(o, 2), l = s[0], d = s[1];
3502
+ Le(function() {
3503
+ var g = a.current;
3504
+ if (g) {
3505
+ var x = window.requestAnimationFrame(function() {
3506
+ return d(g.getBoundingClientRect().width);
3507
+ });
3508
+ return function() {
3509
+ return window.cancelAnimationFrame(x);
3510
+ };
3511
+ }
3512
+ }, []);
3513
+ var b = function(x) {
3514
+ switch (x) {
3515
+ default:
3516
+ return {
3517
+ width: l
3518
+ };
3519
+ case "exiting":
3520
+ return {
3521
+ width: 0,
3522
+ transition: "width ".concat(en, "ms ease-out")
3523
+ };
3524
+ case "exited":
3525
+ return {
3526
+ width: 0
3527
+ };
3528
+ }
3529
+ };
3530
+ return /* @__PURE__ */ oe.createElement(Ne, {
3531
+ enter: !1,
3532
+ mountOnEnter: !0,
3533
+ unmountOnExit: !0,
3534
+ in: r,
3535
+ onExited: function() {
3536
+ var x = a.current;
3537
+ x && (i == null || i(x));
3538
+ },
3539
+ timeout: en,
3540
+ nodeRef: a
3541
+ }, function(g) {
3542
+ return /* @__PURE__ */ oe.createElement("div", {
3543
+ ref: a,
3544
+ style: ae({
3545
+ overflow: "hidden",
3546
+ whiteSpace: "nowrap"
3547
+ }, b(g))
3548
+ }, n);
3549
+ });
3550
+ }, as = ["in", "onExited"], os = function(t) {
3551
+ return function(n) {
3552
+ var r = n.in, i = n.onExited, a = Ce(n, as);
3553
+ return /* @__PURE__ */ oe.createElement(is, {
3554
+ in: r,
3555
+ onExited: i
3556
+ }, /* @__PURE__ */ oe.createElement(t, D({
3557
+ cropWithEllipsis: r
3558
+ }, a)));
3559
+ };
3560
+ }, ss = os, cs = function(t) {
3561
+ return function(n) {
3562
+ return /* @__PURE__ */ oe.createElement(Br, D({
3563
+ component: t,
3564
+ duration: n.isMulti ? en : 1
3565
+ }, n));
3566
+ };
3567
+ }, ls = cs, us = function(t) {
3568
+ return function(n) {
3569
+ return /* @__PURE__ */ oe.createElement(Br, D({
3570
+ component: t
3571
+ }, n));
3572
+ };
3573
+ }, ds = us, bs = ["component"], gs = ["children"], fs = function(t) {
3574
+ return function(n) {
3575
+ return n.isMulti ? /* @__PURE__ */ oe.createElement(ms, D({
3576
+ component: t
3577
+ }, n)) : /* @__PURE__ */ oe.createElement(Pt, D({
3578
+ component: t
3579
+ }, n));
3580
+ };
3581
+ }, ms = function(t) {
3582
+ var n = t.component, r = Ce(t, bs), i = ps(r);
3583
+ return /* @__PURE__ */ oe.createElement(Pt, D({
3584
+ component: n
3585
+ }, i));
3586
+ }, ps = function(t) {
3587
+ var n = t.children, r = Ce(t, gs), i = r.isMulti, a = r.hasValue, o = r.innerProps, s = r.selectProps, l = s.components, d = s.controlShouldRenderValue, b = ve(i && d && a), g = at(b, 2), x = g[0], R = g[1], E = ve(!1), I = at(E, 2), T = I[0], p = I[1];
3588
+ Le(function() {
3589
+ a && !x && R(!0);
3590
+ }, [a, x]), Le(function() {
3591
+ T && !a && x && R(!1), p(!1);
3592
+ }, [T, a, x]);
3593
+ var P = function() {
3594
+ return p(!0);
3595
+ }, y = function(S) {
3596
+ if (i && /* @__PURE__ */ oe.isValidElement(S)) {
3597
+ if (S.type === l.MultiValue)
3598
+ return /* @__PURE__ */ oe.cloneElement(S, {
3599
+ onExited: P
3600
+ });
3601
+ if (S.type === l.Placeholder && x)
3602
+ return null;
3603
+ }
3604
+ return S;
3605
+ }, B = ae(ae({}, o), {}, {
3606
+ style: ae(ae({}, o == null ? void 0 : o.style), {}, {
3607
+ display: i && a || x ? "flex" : "grid"
3608
+ })
3609
+ }), h = ae(ae({}, r), {}, {
3610
+ innerProps: B,
3611
+ children: oe.Children.toArray(n).map(y)
3612
+ });
3613
+ return h;
3614
+ }, vs = fs, hs = ["Input", "MultiValue", "Placeholder", "SingleValue", "ValueContainer"], Xr = function() {
3615
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = Oo({
3616
+ components: t
3617
+ }), r = n.Input, i = n.MultiValue, a = n.Placeholder, o = n.SingleValue, s = n.ValueContainer, l = Ce(n, hs);
3618
+ return ae({
3619
+ Input: ns(r),
3620
+ MultiValue: ss(i),
3621
+ Placeholder: ls(a),
3622
+ SingleValue: ds(o),
3623
+ ValueContainer: vs(s)
3624
+ }, l);
3625
+ }, st = Xr();
3626
+ st.Input;
3627
+ st.MultiValue;
3628
+ st.Placeholder;
3629
+ st.SingleValue;
3630
+ st.ValueContainer;
3631
+ var xs = wi(Xr);
3632
+ function Is({ field: e, formValues: t, handleChange: n, touched: r, errors: i, handleBlur: a }) {
3633
+ const o = e.disabled && e.disabled(t), s = e.options || [], l = xs(), d = t[e.name] || [];
3634
+ return /* @__PURE__ */ u.jsx(
3635
+ li,
3636
+ {
3637
+ components: l,
3638
+ isMulti: !0,
3639
+ isDisabled: o,
3640
+ name: e.label,
3641
+ value: d,
3642
+ onChange: (b) => n(e.name, b),
3643
+ options: s,
3644
+ placeholder: e.placeholder,
3645
+ closeMenuOnSelect: !1
3646
+ }
3647
+ );
3648
+ }
3649
+ function ys({ field: e, formValues: t, handleChange: n, handleBlur: r }) {
3650
+ var s;
3651
+ const i = t[e.name] || "", a = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, o = e.options || [];
3652
+ return /* @__PURE__ */ u.jsxs(
3653
+ pe.Root,
3654
+ {
3655
+ value: i,
3656
+ onValueChange: (l) => n(e.name, l),
3657
+ disabled: a,
3658
+ children: [
3659
+ /* @__PURE__ */ u.jsxs(
3660
+ pe.Trigger,
3661
+ {
3662
+ id: e.name,
3663
+ onBlur: () => r(e.name),
3664
+ className: `inline-flex items-center justify-between w-full px-3 py-2 border rounded-md text-sm transition-all
3665
+ ${a ? "bg-gray-100 text-gray-500 cursor-not-allowed" : "border-gray-300 hover:border-gray-400 focus:ring-2 focus:ring-blue-500"}
3666
+ `,
3667
+ children: [
3668
+ /* @__PURE__ */ u.jsx(
3669
+ pe.Value,
3670
+ {
3671
+ placeholder: e.placeholder || `Select ${((s = e.label) == null ? void 0 : s.toLowerCase()) || ""}`
3672
+ }
3673
+ ),
3674
+ /* @__PURE__ */ u.jsx(pe.Icon, { className: "ml-2 text-gray-500", children: /* @__PURE__ */ u.jsx(di, { className: "w-4 h-4" }) })
3675
+ ]
3676
+ }
3677
+ ),
3678
+ /* @__PURE__ */ u.jsx(pe.Portal, { children: /* @__PURE__ */ u.jsxs(
3679
+ pe.Content,
3680
+ {
3681
+ className: "bg-white border border-gray-200 rounded-md shadow-lg z-50 min-w-[var(--radix-select-trigger-width)]",
3682
+ position: "popper",
3683
+ sideOffset: 5,
3684
+ children: [
3685
+ /* @__PURE__ */ u.jsx(pe.ScrollUpButton, { className: "flex items-center justify-center h-6 text-gray-500 bg-gray-50", children: /* @__PURE__ */ u.jsx(pe.Arrow, { className: "fill-white stroke-gray-200" }) }),
3686
+ /* @__PURE__ */ u.jsxs(pe.Viewport, { className: "p-1", children: [
3687
+ e.groupLabel && /* @__PURE__ */ u.jsx(pe.Group, { children: /* @__PURE__ */ u.jsx(pe.Label, { className: "px-2 py-1 text-xs text-gray-500 uppercase tracking-wide", children: e.groupLabel }) }),
3688
+ o.map((l) => /* @__PURE__ */ u.jsx(
3689
+ pe.Item,
3690
+ {
3691
+ value: l.value,
3692
+ className: `relative flex items-center px-3 py-2 text-sm rounded cursor-pointer select-none
3693
+ data-[state=checked]:bg-blue-50
3694
+ data-[state=checked]:text-blue-600
3695
+ `,
3696
+ children: /* @__PURE__ */ u.jsx(pe.ItemText, { children: l.label })
3697
+ },
3698
+ l.value
3699
+ )),
3700
+ e.separator && /* @__PURE__ */ u.jsx(pe.Separator, { className: "my-1 h-px bg-gray-200" })
3701
+ ] }),
3702
+ /* @__PURE__ */ u.jsx(pe.Arrow, { className: "fill-white stroke-gray-200" })
3703
+ ]
3704
+ }
3705
+ ) })
3706
+ ]
3707
+ }
3708
+ );
3709
+ }
3710
+ function Cs({ field: e, formValues: t, handleChange: n, handleBlur: r, touched: i, errors: a }) {
3711
+ const o = e.readOnly && e.disabled;
3712
+ return /* @__PURE__ */ u.jsx(
3713
+ "input",
3714
+ {
3715
+ ...e.props,
3716
+ type: "email",
3717
+ value: t[e.name] || "",
3718
+ onChange: (s) => n(e.name, s.target.value),
3719
+ onBlur: () => r(e.name),
3720
+ disabled: o,
3721
+ name: e.name,
3722
+ placeholder: e.placeholder,
3723
+ className: `w-full px-3 py-2 border rounded-md border-gray-300 ${o ? "bg-gray-100 text-gray-500 cursor-not-allowed" : ""}`
3724
+ }
3725
+ );
3726
+ }
3727
+ function tr({ field: e, formValues: t, handleChange: n, handleBlur: r, touched: i, errors: a }) {
3728
+ const o = e.readOnly || e.disabled;
3729
+ return /* @__PURE__ */ u.jsx(
3730
+ "input",
3731
+ {
3732
+ ...e.props,
3733
+ id: e.name,
3734
+ type: e.type || "text",
3735
+ value: t[e.name] || "",
3736
+ onChange: (s) => n(e.name, s.target.value),
3737
+ onBlur: () => r(e.name),
3738
+ disabled: o,
3739
+ name: e.name,
3740
+ placeholder: e.placeholder,
3741
+ min: e.minLength,
3742
+ max: e.maxLength,
3743
+ className: `flex h-10 w-full rounded-md border px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 border-input focus-visible:ring-blue-500 ${o ? "bg-gray-50 text-gray-500" : "bg-background"}`
3744
+ }
3745
+ );
3746
+ }
3747
+ function As({ field: e, formValues: t }) {
3748
+ const n = t[e.name] || e.content || "";
3749
+ return /* @__PURE__ */ u.jsx("div", { className: `mb-4 ${e.fieldClass ? e.fieldClass : "col-span-full"}`, id: e.name.toLowerCase() + "_id", children: /* @__PURE__ */ u.jsx(
3750
+ "div",
3751
+ {
3752
+ className: "w-full px-3 py-2 border rounded-md overflow-y-auto max-h-40 prose prose-sm max-w-none",
3753
+ dangerouslySetInnerHTML: { __html: n }
3754
+ }
3755
+ ) }, e.name);
3756
+ }
3757
+ function Gs({ field: e, formValues: t, handleChange: n, handleBlur: r, touched: i, errors: a }) {
3758
+ const o = e.disabled && e.disabled(t);
3759
+ return /* @__PURE__ */ u.jsxs("div", { className: "mt-1 space-x-2", children: [
3760
+ /* @__PURE__ */ u.jsx(
3761
+ "input",
3762
+ {
3763
+ ...e.props,
3764
+ id: "id_" + e.name,
3765
+ type: "checkbox",
3766
+ checked: t[e.name] || !1,
3767
+ onChange: (l) => n(e.name, l.target.checked),
3768
+ onBlur: () => r(e.name),
3769
+ disabled: o,
3770
+ className: `rounded border-gray-300 ${o ? "opacity-50 cursor-not-allowed" : ""}`
3771
+ }
3772
+ ),
3773
+ /* @__PURE__ */ u.jsxs("label", { className: "", htmlFor: "id_" + e.name, children: [
3774
+ e.label,
3775
+ e.required && /* @__PURE__ */ u.jsx("span", { className: "text-red-500", children: "*" })
3776
+ ] }),
3777
+ !1
3778
+ ] });
3779
+ }
3780
+ function ws({ field: e, formValues: t, handleChange: n, handleBlur: r }) {
3781
+ const [i, a] = ve(!1), o = t[e.name] ?? { from: null, to: null }, s = (d) => n(e.name, d), l = () => n(e.name, { from: null, to: null });
3782
+ return /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs(Se.Root, { open: i, onOpenChange: a, children: [
3783
+ /* @__PURE__ */ u.jsx(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(
3784
+ "button",
3785
+ {
3786
+ type: "button",
3787
+ id: e.name,
3788
+ "aria-haspopup": "dialog",
3789
+ "aria-expanded": i,
3790
+ onClick: () => a(!0),
3791
+ onKeyDown: (d) => d.key === "Enter" && a(!0),
3792
+ className: `
3793
+ inline-flex items-center justify-between gap-2
3794
+ w-full h-9 rounded-md border border-gray-300 bg-white
3795
+ px-3 py-2 text-sm font-normal shadow-sm
3796
+ hover:bg-gray-50 hover:text-gray-900
3797
+ focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2
3798
+ disabled:cursor-not-allowed disabled:opacity-50
3799
+ `,
3800
+ children: [
3801
+ o.from ? o.to ? /* @__PURE__ */ u.jsxs("span", { children: [
3802
+ o.from.toLocaleDateString(),
3803
+ " – ",
3804
+ o.to.toLocaleDateString()
3805
+ ] }) : /* @__PURE__ */ u.jsx("span", { children: o.from.toLocaleDateString() }) : /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground", children: e.placeholder || "Select date range" }),
3806
+ /* @__PURE__ */ u.jsx(
3807
+ "svg",
3808
+ {
3809
+ xmlns: "http://www.w3.org/2000/svg",
3810
+ width: "16",
3811
+ height: "16",
3812
+ viewBox: "0 0 24 24",
3813
+ fill: "none",
3814
+ stroke: "currentColor",
3815
+ strokeWidth: "2",
3816
+ strokeLinecap: "round",
3817
+ strokeLinejoin: "round",
3818
+ className: "lucide lucide-chevron-down opacity-70",
3819
+ children: /* @__PURE__ */ u.jsx("path", { d: "m6 9 6 6 6-6" })
3820
+ }
3821
+ )
3822
+ ]
3823
+ }
3824
+ ) }),
3825
+ /* @__PURE__ */ u.jsxs(
3826
+ Se.Content,
3827
+ {
3828
+ align: "start",
3829
+ sideOffset: 2,
3830
+ className: "z-50 rounded-md border border-gray-200 bg-white p-0 shadow-md w-auto",
3831
+ children: [
3832
+ /* @__PURE__ */ u.jsx(
3833
+ ar,
3834
+ {
3835
+ mode: "range",
3836
+ selected: o,
3837
+ onSelect: s,
3838
+ showOutsideDays: !0,
3839
+ className: "rounded-md bg-white p-3 text-xs"
3840
+ }
3841
+ ),
3842
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 p-3", children: [
3843
+ /* @__PURE__ */ u.jsx(
3844
+ "button",
3845
+ {
3846
+ type: "button",
3847
+ onClick: l,
3848
+ className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-gray-300 bg-white hover:bg-gray-100 hover:text-gray-900 h-9 px-4 py-2",
3849
+ children: "Clear"
3850
+ }
3851
+ ),
3852
+ /* @__PURE__ */ u.jsx(
3853
+ "button",
3854
+ {
3855
+ type: "button",
3856
+ onClick: () => a(!1),
3857
+ className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-blue-600 text-white hover:bg-blue-700 h-9 px-4 py-2",
3858
+ children: "Done"
3859
+ }
3860
+ )
3861
+ ] })
3862
+ ]
3863
+ }
3864
+ )
3865
+ ] }) });
3866
+ }
3867
+ function nr({
3868
+ field: e,
3869
+ formValues: t,
3870
+ touched: n,
3871
+ errors: r,
3872
+ fileUploads: i,
3873
+ setFileUploads: a,
3874
+ fileInputRefs: o,
3875
+ handleChange: s,
3876
+ onFieldsChange: l,
3877
+ api_URL: d
3878
+ }) {
3879
+ const b = n[e.name] && r[e.name], g = e.type === "multifile", x = i[e.name] || {}, R = t[e.name], E = g ? R || [] : [R].filter(Boolean), I = e.disabled && e.disabled(t), T = `px-4 py-2 bg-gray-100 border rounded hover:bg-gray-200 ${I ? "cursor-not-allowed" : ""}`, p = d ? `${d}uploads` : null;
3880
+ !p && e.uploadEndpoint && console.error(`api_URL prop is required when using FileField with upload functionality for field "${e.name}"`);
3881
+ const P = (j) => {
3882
+ if (j === 0) return "0 Bytes";
3883
+ const m = 1024, G = ["Bytes", "KB", "MB", "GB"], X = Math.floor(Math.log(j) / Math.log(m));
3884
+ return parseFloat((j / Math.pow(m, X)).toFixed(2)) + " " + G[X];
3885
+ }, y = async (j, m) => {
3886
+ const G = new FormData();
3887
+ G.append("file", j);
3888
+ const X = await fetch(`${p}`, {
3889
+ method: "POST",
3890
+ body: G
3891
+ });
3892
+ if (!X.ok)
3893
+ throw ht.error("Upload failed"), new Error("Upload failed");
3894
+ return await X.json();
3895
+ }, B = async (j, m) => {
3896
+ if (!m) return;
3897
+ if (j.maxSize && m.size > j.maxSize)
3898
+ throw new Error(
3899
+ `File size must not exceed ${P(j.maxSize)}`
3900
+ );
3901
+ const G = await y(m, j.name), X = { ...t, [j.name]: G };
3902
+ s(j.name, G), l(X);
3903
+ }, h = async (j, m) => {
3904
+ const G = t[j.name] || [];
3905
+ if (G.length + m.length > j.maxFiles)
3906
+ throw new Error(`Maximum ${j.maxFiles} files allowed`);
3907
+ m.forEach((ee) => {
3908
+ if (j.maxSize && ee.size > j.maxSize)
3909
+ throw new Error(
3910
+ `Each file must not exceed ${P(j.maxSize)}`
3911
+ );
3912
+ });
3913
+ const X = await Promise.all(
3914
+ m.map((ee) => y(ee, j.name))
3915
+ ), N = [...G, ...X];
3916
+ s(j.name, N), l({ ...t, [j.name]: N });
3917
+ }, Q = async (j, m) => {
3918
+ const G = Array.from(m);
3919
+ try {
3920
+ e.type === "file" ? await B(e, G[0]) : e.type === "multifile" && await h(e, G), o.current[j] && (o.current[j].value = "");
3921
+ } catch (X) {
3922
+ ht.error(`Upload failed: ${X.message}`);
3923
+ }
3924
+ }, S = async (j, m) => {
3925
+ let G;
3926
+ e.type === "file" ? G = "" : G = (t[j] || []).filter((N) => N !== m), s(j, G), l({ ...t, [j]: G }), o.current[j] && (o.current[j].value = "");
3927
+ };
3928
+ return /* @__PURE__ */ u.jsxs("div", { className: `mb-4 ${e.fieldClass || "col-span-full"}`, children: [
3929
+ /* @__PURE__ */ u.jsxs("label", { className: "block font-medium mb-1", children: [
3930
+ e.label,
3931
+ e.required && /* @__PURE__ */ u.jsx("span", { className: "text-red-500", children: "*" })
3932
+ ] }),
3933
+ /* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
3934
+ /* @__PURE__ */ u.jsxs("div", { className: "items-center space-x-2", children: [
3935
+ /* @__PURE__ */ u.jsxs(
3936
+ "button",
3937
+ {
3938
+ type: "button",
3939
+ disabled: I,
3940
+ onClick: () => o.current[e.name].click(),
3941
+ className: T,
3942
+ children: [
3943
+ "Choose ",
3944
+ g ? "Files" : "File"
3945
+ ]
3946
+ }
3947
+ ),
3948
+ g && E.length > 0 && /* @__PURE__ */ u.jsxs("span", { className: "text-sm text-gray-600", children: [
3949
+ E.length,
3950
+ " of ",
3951
+ e.maxFiles,
3952
+ " files uploaded"
3953
+ ] })
3954
+ ] }),
3955
+ /* @__PURE__ */ u.jsx(
3956
+ "input",
3957
+ {
3958
+ ref: (j) => o.current[e.name] = j,
3959
+ type: "file",
3960
+ accept: e.accept,
3961
+ multiple: g,
3962
+ className: "hidden",
3963
+ onChange: (j) => Q(e.name, j.target.files)
3964
+ }
3965
+ ),
3966
+ /* @__PURE__ */ u.jsx("div", { className: "space-y-2", children: E.map((j, m) => {
3967
+ const G = Object.values(x).find(
3968
+ (X) => X.file === j
3969
+ );
3970
+ return /* @__PURE__ */ u.jsxs(
3971
+ "div",
3972
+ {
3973
+ className: "flex items-center justify-between p-2 bg-gray-50 rounded",
3974
+ children: [
3975
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center space-x-2", children: [
3976
+ G && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
3977
+ /* @__PURE__ */ u.jsx("span", { className: "text-sm", children: G.fileName }),
3978
+ /* @__PURE__ */ u.jsxs("span", { className: "text-xs text-gray-500", children: [
3979
+ "(",
3980
+ P(G.fileSize),
3981
+ ")"
3982
+ ] })
3983
+ ] }),
3984
+ !G && /* @__PURE__ */ u.jsx("span", { className: "text-sm", children: j.original_name })
3985
+ ] }),
3986
+ /* @__PURE__ */ u.jsx(
3987
+ "button",
3988
+ {
3989
+ type: "button",
3990
+ onClick: () => S(e.name, j),
3991
+ className: "text-red-500 hover:text-red-700 ml-3",
3992
+ children: "Remove"
3993
+ }
3994
+ )
3995
+ ]
3996
+ },
3997
+ j
3998
+ );
3999
+ }) }),
4000
+ Object.entries(x).map(([j, m]) => m.status === "uploading" ? /* @__PURE__ */ u.jsxs("div", { className: "relative pt-1", children: [
4001
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
4002
+ /* @__PURE__ */ u.jsxs("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
4003
+ "Uploading ",
4004
+ j
4005
+ ] }),
4006
+ /* @__PURE__ */ u.jsxs("span", { className: "text-xs font-semibold inline-block text-blue-600", children: [
4007
+ m.progress,
4008
+ "%"
4009
+ ] })
4010
+ ] }),
4011
+ /* @__PURE__ */ u.jsx("div", { className: "overflow-hidden h-2 mt-1 text-xs flex rounded bg-blue-200", children: /* @__PURE__ */ u.jsx(
4012
+ "div",
4013
+ {
4014
+ className: "shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-blue-500",
4015
+ style: { width: `${m.progress}%` }
4016
+ }
4017
+ ) })
4018
+ ] }, j) : null)
4019
+ ] }),
4020
+ b && /* @__PURE__ */ u.jsx("p", { className: "mt-1 text-sm text-red-500", children: b })
4021
+ ] }, e.name);
4022
+ }
4023
+ function Rs({
4024
+ field: e,
4025
+ formValues: t,
4026
+ handleChange: n,
4027
+ handleBlur: r,
4028
+ touched: i,
4029
+ errors: a,
4030
+ charCount: o,
4031
+ setCharCounts: s
4032
+ }) {
4033
+ const l = et(null), d = t[e.name] || "", b = typeof e.disabled == "function" ? e.disabled(t) : e.disabled || e.readOnly, g = i != null && i[e.name] && (a != null && a[e.name]) ? a[e.name] : null, x = () => {
4034
+ const E = l.current;
4035
+ E && (E.style.height = "auto", E.style.height = `${E.scrollHeight + 2}px`);
4036
+ };
4037
+ Le(() => {
4038
+ x();
4039
+ }, [d]);
4040
+ const R = (E) => {
4041
+ n(e.name, E.target.value), x(), s && s((I) => ({
4042
+ ...I,
4043
+ [e.name]: E.target.value.length
4044
+ }));
4045
+ };
4046
+ return /* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
4047
+ /* @__PURE__ */ u.jsx(
4048
+ "textarea",
4049
+ {
4050
+ ...e.props,
4051
+ ref: l,
4052
+ id: e.name,
4053
+ name: e.name,
4054
+ placeholder: e.placeholder || "",
4055
+ value: d,
4056
+ onChange: R,
4057
+ onBlur: () => r(e.name),
4058
+ disabled: b,
4059
+ maxLength: e.maxLength,
4060
+ rows: e.rows || 3,
4061
+ className: `flex w-full rounded-md border px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 resize-none overflow-y-auto ${g ? "border-red-500 focus-visible:ring-red-500" : "border-input focus-visible:ring-blue-500"} ${b ? "bg-gray-50 text-gray-500" : "bg-background"}`,
4062
+ style: {
4063
+ minHeight: "80px",
4064
+ maxHeight: "400px"
4065
+ }
4066
+ }
4067
+ ),
4068
+ /* @__PURE__ */ u.jsx("div", { className: "flex justify-between items-center", children: e.maxLength && !e.readOnly && /* @__PURE__ */ u.jsxs("span", { className: "text-xs text-gray-500", children: [
4069
+ o || 0,
4070
+ "/",
4071
+ e.maxLength,
4072
+ " characters"
4073
+ ] }) })
4074
+ ] });
4075
+ }
4076
+ function Es({ field: e, formValues: t, handleChange: n, handleBlur: r, touched: i, errors: a }) {
4077
+ return /* @__PURE__ */ u.jsxs("div", { children: [
4078
+ /* @__PURE__ */ u.jsx(
4079
+ "input",
4080
+ {
4081
+ type: "datetime-local",
4082
+ value: e.value || "",
4083
+ onChange: (o) => n(e.name, o.target.value),
4084
+ onBlur: r,
4085
+ className: "border rounded px-3 py-2 w-full",
4086
+ placeholder: "Select date and time"
4087
+ }
4088
+ ),
4089
+ /* @__PURE__ */ u.jsx("p", { className: "text-sm text-gray-500 mt-1", children: "Note: Install @mui/x-date-pickers for enhanced date picker functionality" })
4090
+ ] });
4091
+ }
4092
+ function Ps({ field: e }) {
4093
+ return e != null && e.label ? /* @__PURE__ */ u.jsxs("div", { className: "relative flex items-center py-4", children: [
4094
+ /* @__PURE__ */ u.jsx(Wt, { className: "flex-1 h-px bg-gray-300" }),
4095
+ /* @__PURE__ */ u.jsx("span", { className: "px-3 font-medium text-gray-600 bg-white", children: e.label }),
4096
+ /* @__PURE__ */ u.jsx(Wt, { className: "flex-1 h-px bg-gray-300" })
4097
+ ] }) : /* @__PURE__ */ u.jsx(Wt, { className: "my-4 h-px bg-gray-300" });
4098
+ }
4099
+ function Ts({ field: e, formValues: t, handleChange: n, handleBlur: r }) {
4100
+ const i = t[e.name] || "", a = typeof e.disabled == "function" ? e.disabled(t) : e.disabled, o = e.options || [], s = e.inline || !1;
4101
+ return /* @__PURE__ */ u.jsx(
4102
+ Vt.Root,
4103
+ {
4104
+ value: i,
4105
+ onValueChange: (l) => n(e.name, l),
4106
+ onBlur: () => r(e.name),
4107
+ disabled: a,
4108
+ className: s ? "flex flex-wrap gap-4" : "space-y-3",
4109
+ "aria-label": e.label || e.name,
4110
+ children: o.map((l) => {
4111
+ const d = typeof l == "object" ? l.value : l, b = typeof l == "object" ? l.label : l, g = typeof l == "object" ? l.description : null, x = `${e.name}-${d}`;
4112
+ return /* @__PURE__ */ u.jsxs("div", { className: "relative flex items-start", children: [
4113
+ /* @__PURE__ */ u.jsx("div", { className: "flex h-6 items-center", children: /* @__PURE__ */ u.jsx(
4114
+ Vt.Item,
4115
+ {
4116
+ value: d,
4117
+ id: x,
4118
+ disabled: a,
4119
+ className: `
4120
+ relative size-4 rounded-full border transition-all
4121
+ ${a ? "border-gray-300 bg-gray-100 cursor-not-allowed" : "border-gray-300 bg-white hover:border-blue-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"}
4122
+ data-[state=checked]:border-blue-600 data-[state=checked]:bg-blue-600
4123
+ `,
4124
+ children: /* @__PURE__ */ u.jsx(Vt.Indicator, { className: "flex items-center justify-center w-full h-full relative after:content-[''] after:block after:w-1.5 after:h-1.5 after:rounded-full after:bg-white" })
4125
+ }
4126
+ ) }),
4127
+ /* @__PURE__ */ u.jsxs("div", { className: "ml-3 text-sm", children: [
4128
+ /* @__PURE__ */ u.jsx(
4129
+ "label",
4130
+ {
4131
+ htmlFor: x,
4132
+ className: `font-medium ${a ? "text-gray-500" : "text-gray-900 cursor-pointer"}`,
4133
+ children: b
4134
+ }
4135
+ ),
4136
+ g && !s && /* @__PURE__ */ u.jsx("p", { className: `text-sm ${a ? "text-gray-400" : "text-gray-500"}`, children: g })
4137
+ ] })
4138
+ ] }, d);
4139
+ })
4140
+ }
4141
+ );
4142
+ }
4143
+ function Ns({ field: e }) {
4144
+ const t = e.text || e.label || "", n = e.description || "", r = e.size || "lg", i = e.underline || !1, a = e.align || "left", o = e.className || "", s = {
4145
+ sm: "text-base font-semibold",
4146
+ md: "text-lg font-semibold",
4147
+ lg: "text-xl font-bold",
4148
+ xl: "text-2xl font-bold",
4149
+ "2xl": "text-3xl font-bold",
4150
+ "3xl": "text-4xl font-bold",
4151
+ "4xl": "text-5xl font-bold"
4152
+ }, l = {
4153
+ left: "text-left",
4154
+ center: "text-center",
4155
+ right: "text-right"
4156
+ }, d = `
4157
+ ${s[r] || s.lg}
4158
+ ${l[a] || l.left}
4159
+ ${i ? "border-b-2 border-gray-300 pb-2" : ""}
4160
+ ${o}
4161
+ text-gray-900
4162
+ `.trim(), b = `
4163
+ mt-1 text-sm text-gray-600
4164
+ ${l[a] || l.left}
4165
+ `.trim();
4166
+ return /* @__PURE__ */ u.jsxs("div", { className: "my-4", children: [
4167
+ /* @__PURE__ */ u.jsx("h2", { className: d, children: t }),
4168
+ n && /* @__PURE__ */ u.jsx("p", { className: b, children: n })
4169
+ ] });
4170
+ }
4171
+ function Ss({ field: e, formValues: t, handleChange: n, handleBlur: r }) {
4172
+ const [i, a] = ve(!1), o = t[e.name] ?? null, s = (d) => n(e.name, d), l = () => n(e.name, null);
4173
+ return /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs(Se.Root, { open: i, onOpenChange: a, children: [
4174
+ /* @__PURE__ */ u.jsx(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(
4175
+ "button",
4176
+ {
4177
+ type: "button",
4178
+ id: e.name,
4179
+ "aria-haspopup": "dialog",
4180
+ "aria-expanded": i,
4181
+ onClick: () => a(!0),
4182
+ onKeyDown: (d) => d.key === "Enter" && a(!0),
4183
+ className: `
4184
+ inline-flex items-center justify-between gap-2
4185
+ w-full h-9 rounded-md border border-gray-300 bg-white
4186
+ px-3 py-2 text-sm font-normal shadow-sm
4187
+ hover:bg-gray-50 hover:text-gray-900
4188
+ focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2
4189
+ disabled:cursor-not-allowed disabled:opacity-50
4190
+ `,
4191
+ children: [
4192
+ o ? /* @__PURE__ */ u.jsx("span", { children: o.toLocaleDateString() }) : /* @__PURE__ */ u.jsx("span", { className: "text-muted-foreground", children: e.placeholder || "Select date" }),
4193
+ /* @__PURE__ */ u.jsx(
4194
+ "svg",
4195
+ {
4196
+ xmlns: "http://www.w3.org/2000/svg",
4197
+ width: "16",
4198
+ height: "16",
4199
+ viewBox: "0 0 24 24",
4200
+ fill: "none",
4201
+ stroke: "currentColor",
4202
+ strokeWidth: "2",
4203
+ strokeLinecap: "round",
4204
+ strokeLinejoin: "round",
4205
+ className: "lucide lucide-chevron-down opacity-70",
4206
+ children: /* @__PURE__ */ u.jsx("path", { d: "m6 9 6 6 6-6" })
4207
+ }
4208
+ )
4209
+ ]
4210
+ }
4211
+ ) }),
4212
+ /* @__PURE__ */ u.jsxs(
4213
+ Se.Content,
4214
+ {
4215
+ align: "start",
4216
+ sideOffset: 2,
4217
+ className: "z-50 rounded-md border border-gray-200 bg-white p-0 shadow-md w-auto",
4218
+ children: [
4219
+ /* @__PURE__ */ u.jsx(
4220
+ ar,
4221
+ {
4222
+ mode: "single",
4223
+ selected: o,
4224
+ onSelect: s,
4225
+ showOutsideDays: !0,
4226
+ className: "rounded-md bg-white p-3 text-xs"
4227
+ }
4228
+ ),
4229
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 p-3", children: [
4230
+ /* @__PURE__ */ u.jsx(
4231
+ "button",
4232
+ {
4233
+ type: "button",
4234
+ onClick: l,
4235
+ className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-gray-300 bg-white hover:bg-gray-100 hover:text-gray-900 h-9 px-4 py-2",
4236
+ children: "Clear"
4237
+ }
4238
+ ),
4239
+ /* @__PURE__ */ u.jsx(
4240
+ "button",
4241
+ {
4242
+ type: "button",
4243
+ onClick: () => a(!1),
4244
+ className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-blue-600 text-white hover:bg-blue-700 h-9 px-4 py-2",
4245
+ children: "Done"
4246
+ }
4247
+ )
4248
+ ] })
4249
+ ]
4250
+ }
4251
+ )
4252
+ ] }) });
4253
+ }
4254
+ function js({ field: e, formValues: t, handleChange: n, handleBlur: r }) {
4255
+ const [i, a] = ve(!1), [o, s] = ve("12"), [l, d] = ve("00"), [b, g] = ve("PM"), x = t[e.name] || "";
4256
+ we.useEffect(() => {
4257
+ if (x) {
4258
+ const y = x.match(/(\d{1,2}):(\d{2})\s*(AM|PM)/i);
4259
+ y && (s(y[1].padStart(2, "0")), d(y[2]), g(y[3].toUpperCase()));
4260
+ }
4261
+ }, [x]);
4262
+ const R = () => {
4263
+ const y = `${o}:${l} ${b}`;
4264
+ n(e.name, y), a(!1);
4265
+ }, E = () => {
4266
+ n(e.name, ""), s("12"), d("00"), g("PM");
4267
+ }, I = () => {
4268
+ const y = parseInt(o);
4269
+ s((y % 12 + 1).toString().padStart(2, "0"));
4270
+ }, T = () => {
4271
+ const y = parseInt(o);
4272
+ s((y === 1 ? 12 : y - 1).toString().padStart(2, "0"));
4273
+ }, p = () => {
4274
+ const y = parseInt(l);
4275
+ d(((y + 5) % 60).toString().padStart(2, "0"));
4276
+ }, P = () => {
4277
+ const y = parseInt(l);
4278
+ d((y === 0 ? 55 : y - 5).toString().padStart(2, "0"));
4279
+ };
4280
+ return /* @__PURE__ */ u.jsx("div", { children: /* @__PURE__ */ u.jsxs(Se.Root, { open: i, onOpenChange: a, children: [
4281
+ /* @__PURE__ */ u.jsx(Se.Trigger, { asChild: !0, children: /* @__PURE__ */ u.jsxs(
4282
+ "button",
4283
+ {
4284
+ type: "button",
4285
+ id: e.name,
4286
+ "aria-haspopup": "dialog",
4287
+ "aria-expanded": i,
4288
+ onClick: () => a(!0),
4289
+ className: `
4290
+ inline-flex items-center justify-between gap-2
4291
+ w-full h-9 rounded-md border border-gray-300 bg-white
4292
+ px-3 py-2 text-sm font-normal shadow-sm
4293
+ hover:bg-gray-50 hover:text-gray-900
4294
+ focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2
4295
+ disabled:cursor-not-allowed disabled:opacity-50
4296
+ `,
4297
+ children: [
4298
+ x ? /* @__PURE__ */ u.jsx("span", { children: x }) : /* @__PURE__ */ u.jsx("span", { className: "text-gray-400", children: e.placeholder || "Select time" }),
4299
+ /* @__PURE__ */ u.jsxs(
4300
+ "svg",
4301
+ {
4302
+ xmlns: "http://www.w3.org/2000/svg",
4303
+ width: "16",
4304
+ height: "16",
4305
+ viewBox: "0 0 24 24",
4306
+ fill: "none",
4307
+ stroke: "currentColor",
4308
+ strokeWidth: "2",
4309
+ strokeLinecap: "round",
4310
+ strokeLinejoin: "round",
4311
+ className: "lucide lucide-clock opacity-70",
4312
+ children: [
4313
+ /* @__PURE__ */ u.jsx("circle", { cx: "12", cy: "12", r: "10" }),
4314
+ /* @__PURE__ */ u.jsx("polyline", { points: "12 6 12 12 16 14" })
4315
+ ]
4316
+ }
4317
+ )
4318
+ ]
4319
+ }
4320
+ ) }),
4321
+ /* @__PURE__ */ u.jsx(
4322
+ Se.Content,
4323
+ {
4324
+ align: "start",
4325
+ sideOffset: 2,
4326
+ className: "z-50 rounded-md border border-gray-200 bg-white p-4 shadow-md w-64",
4327
+ children: /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-4", children: [
4328
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-center gap-2", children: [
4329
+ /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col items-center", children: [
4330
+ /* @__PURE__ */ u.jsx(
4331
+ "button",
4332
+ {
4333
+ type: "button",
4334
+ onClick: I,
4335
+ className: "p-1 hover:bg-gray-100 rounded",
4336
+ children: /* @__PURE__ */ u.jsx(
4337
+ "svg",
4338
+ {
4339
+ xmlns: "http://www.w3.org/2000/svg",
4340
+ width: "16",
4341
+ height: "16",
4342
+ viewBox: "0 0 24 24",
4343
+ fill: "none",
4344
+ stroke: "currentColor",
4345
+ strokeWidth: "2",
4346
+ children: /* @__PURE__ */ u.jsx("polyline", { points: "18 15 12 9 6 15" })
4347
+ }
4348
+ )
4349
+ }
4350
+ ),
4351
+ /* @__PURE__ */ u.jsx(
4352
+ "input",
4353
+ {
4354
+ type: "text",
4355
+ value: o,
4356
+ onChange: (y) => {
4357
+ const B = y.target.value.replace(/\D/g, "");
4358
+ (B === "" || parseInt(B) >= 1 && parseInt(B) <= 12) && s(B.padStart(2, "0"));
4359
+ },
4360
+ className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
4361
+ maxLength: "2"
4362
+ }
4363
+ ),
4364
+ /* @__PURE__ */ u.jsx(
4365
+ "button",
4366
+ {
4367
+ type: "button",
4368
+ onClick: T,
4369
+ className: "p-1 hover:bg-gray-100 rounded",
4370
+ children: /* @__PURE__ */ u.jsx(
4371
+ "svg",
4372
+ {
4373
+ xmlns: "http://www.w3.org/2000/svg",
4374
+ width: "16",
4375
+ height: "16",
4376
+ viewBox: "0 0 24 24",
4377
+ fill: "none",
4378
+ stroke: "currentColor",
4379
+ strokeWidth: "2",
4380
+ children: /* @__PURE__ */ u.jsx("polyline", { points: "6 9 12 15 18 9" })
4381
+ }
4382
+ )
4383
+ }
4384
+ )
4385
+ ] }),
4386
+ /* @__PURE__ */ u.jsx("span", { className: "text-2xl font-semibold", children: ":" }),
4387
+ /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col items-center", children: [
4388
+ /* @__PURE__ */ u.jsx(
4389
+ "button",
4390
+ {
4391
+ type: "button",
4392
+ onClick: p,
4393
+ className: "p-1 hover:bg-gray-100 rounded",
4394
+ children: /* @__PURE__ */ u.jsx(
4395
+ "svg",
4396
+ {
4397
+ xmlns: "http://www.w3.org/2000/svg",
4398
+ width: "16",
4399
+ height: "16",
4400
+ viewBox: "0 0 24 24",
4401
+ fill: "none",
4402
+ stroke: "currentColor",
4403
+ strokeWidth: "2",
4404
+ children: /* @__PURE__ */ u.jsx("polyline", { points: "18 15 12 9 6 15" })
4405
+ }
4406
+ )
4407
+ }
4408
+ ),
4409
+ /* @__PURE__ */ u.jsx(
4410
+ "input",
4411
+ {
4412
+ type: "text",
4413
+ value: l,
4414
+ onChange: (y) => {
4415
+ const B = y.target.value.replace(/\D/g, "");
4416
+ (B === "" || parseInt(B) >= 0 && parseInt(B) <= 59) && d(B.padStart(2, "0"));
4417
+ },
4418
+ className: "w-14 text-center text-2xl font-semibold border-0 focus:outline-none focus:ring-2 focus:ring-blue-500 rounded py-2",
4419
+ maxLength: "2"
4420
+ }
4421
+ ),
4422
+ /* @__PURE__ */ u.jsx(
4423
+ "button",
4424
+ {
4425
+ type: "button",
4426
+ onClick: P,
4427
+ className: "p-1 hover:bg-gray-100 rounded",
4428
+ children: /* @__PURE__ */ u.jsx(
4429
+ "svg",
4430
+ {
4431
+ xmlns: "http://www.w3.org/2000/svg",
4432
+ width: "16",
4433
+ height: "16",
4434
+ viewBox: "0 0 24 24",
4435
+ fill: "none",
4436
+ stroke: "currentColor",
4437
+ strokeWidth: "2",
4438
+ children: /* @__PURE__ */ u.jsx("polyline", { points: "6 9 12 15 18 9" })
4439
+ }
4440
+ )
4441
+ }
4442
+ )
4443
+ ] }),
4444
+ /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-1 ml-2", children: [
4445
+ /* @__PURE__ */ u.jsx(
4446
+ "button",
4447
+ {
4448
+ type: "button",
4449
+ onClick: () => g("AM"),
4450
+ className: `
4451
+ px-3 py-1 text-sm font-medium rounded
4452
+ ${b === "AM" ? "bg-blue-600 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}
4453
+ `,
4454
+ children: "AM"
4455
+ }
4456
+ ),
4457
+ /* @__PURE__ */ u.jsx(
4458
+ "button",
4459
+ {
4460
+ type: "button",
4461
+ onClick: () => g("PM"),
4462
+ className: `
4463
+ px-3 py-1 text-sm font-medium rounded
4464
+ ${b === "PM" ? "bg-blue-600 text-white" : "bg-gray-100 text-gray-700 hover:bg-gray-200"}
4465
+ `,
4466
+ children: "PM"
4467
+ }
4468
+ )
4469
+ ] })
4470
+ ] }),
4471
+ /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-gray-200 pt-3", children: [
4472
+ /* @__PURE__ */ u.jsx(
4473
+ "button",
4474
+ {
4475
+ type: "button",
4476
+ onClick: E,
4477
+ className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-gray-300 bg-white hover:bg-gray-100 hover:text-gray-900 h-9 px-4 py-2",
4478
+ children: "Clear"
4479
+ }
4480
+ ),
4481
+ /* @__PURE__ */ u.jsx(
4482
+ "button",
4483
+ {
4484
+ type: "button",
4485
+ onClick: R,
4486
+ className: "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-blue-600 text-white hover:bg-blue-700 h-9 px-4 py-2",
4487
+ children: "Done"
4488
+ }
4489
+ )
4490
+ ] })
4491
+ ] })
4492
+ }
4493
+ )
4494
+ ] }) });
4495
+ }
4496
+ function Bs({ message: e }) {
4497
+ return /* @__PURE__ */ u.jsx("div", { className: "rounded-lg bg-red-50 border border-red-100 p-4 shadow-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
4498
+ /* @__PURE__ */ u.jsx(fi, { "aria-hidden": "true", className: "size-5 text-red-500 shrink-0" }),
4499
+ /* @__PURE__ */ u.jsx("span", { className: "text-sm font-medium text-red-900", children: e })
4500
+ ] }) });
4501
+ }
4502
+ function Xs({ message: e }) {
4503
+ return /* @__PURE__ */ u.jsx("div", { className: "rounded-lg bg-amber-50 border border-amber-100 p-4 shadow-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
4504
+ /* @__PURE__ */ u.jsx(
4505
+ mi,
4506
+ {
4507
+ "aria-hidden": "true",
4508
+ className: "size-5 text-amber-600 shrink-0"
4509
+ }
4510
+ ),
4511
+ /* @__PURE__ */ u.jsx("span", { className: "text-sm font-medium text-amber-900", children: e })
4512
+ ] }) });
4513
+ }
4514
+ function Ws({ message: e }) {
4515
+ return /* @__PURE__ */ u.jsx("div", { className: "rounded-lg bg-green-50 border border-green-100 p-4 shadow-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
4516
+ /* @__PURE__ */ u.jsx(
4517
+ gi,
4518
+ {
4519
+ "aria-hidden": "true",
4520
+ className: "size-5 text-green-600 shrink-0"
4521
+ }
4522
+ ),
4523
+ /* @__PURE__ */ u.jsx("span", { className: "text-sm font-medium text-green-900", children: e })
4524
+ ] }) });
4525
+ }
4526
+ function Vs({ message: e }) {
4527
+ return /* @__PURE__ */ u.jsx("div", { className: "rounded-lg bg-blue-50 border border-blue-100 p-4 shadow-sm", children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
4528
+ /* @__PURE__ */ u.jsx(
4529
+ bi,
4530
+ {
4531
+ "aria-hidden": "true",
4532
+ className: "size-5 text-blue-600 shrink-0"
4533
+ }
4534
+ ),
4535
+ /* @__PURE__ */ u.jsx("span", { className: "text-sm font-medium text-blue-900", children: e })
4536
+ ] }) });
4537
+ }
4538
+ function Ms({ field: e }) {
4539
+ const { variant: t = "info", message: n, content: r } = e, i = n || r || "";
4540
+ switch (t.toLowerCase()) {
4541
+ case "error":
4542
+ case "danger":
4543
+ return /* @__PURE__ */ u.jsx(Bs, { message: i });
4544
+ case "success":
4545
+ return /* @__PURE__ */ u.jsx(Ws, { message: i });
4546
+ case "warning":
4547
+ case "warn":
4548
+ return /* @__PURE__ */ u.jsx(Xs, { message: i });
4549
+ case "info":
4550
+ case "information":
4551
+ default:
4552
+ return /* @__PURE__ */ u.jsx(Vs, { message: i });
4553
+ }
4554
+ }
4555
+ function rr(e) {
4556
+ switch (e) {
4557
+ case 1:
4558
+ return "col-span-1";
4559
+ case 2:
4560
+ return "col-span-2";
4561
+ case 3:
4562
+ return "col-span-3";
4563
+ case 4:
4564
+ return "col-span-4";
4565
+ case 5:
4566
+ return "col-span-5";
4567
+ case 6:
4568
+ return "col-span-6";
4569
+ case 7:
4570
+ return "col-span-7";
4571
+ case 8:
4572
+ return "col-span-8";
4573
+ case 9:
4574
+ return "col-span-9";
4575
+ case 10:
4576
+ return "col-span-10";
4577
+ case 11:
4578
+ return "col-span-11";
4579
+ case 12:
4580
+ return "col-span-12";
4581
+ default:
4582
+ return "col-span-12";
4583
+ }
4584
+ }
4585
+ function Os(e) {
4586
+ switch (e) {
4587
+ case 1:
4588
+ return "grid-cols-1";
4589
+ case 2:
4590
+ return "grid-cols-2";
4591
+ case 3:
4592
+ return "grid-cols-3";
4593
+ case 4:
4594
+ return "grid-cols-4";
4595
+ case 5:
4596
+ return "grid-cols-5";
4597
+ case 6:
4598
+ return "grid-cols-6";
4599
+ case 7:
4600
+ return "grid-cols-7";
4601
+ case 8:
4602
+ return "grid-cols-8";
4603
+ case 9:
4604
+ return "grid-cols-9";
4605
+ case 10:
4606
+ return "grid-cols-10";
4607
+ case 11:
4608
+ return "grid-cols-11";
4609
+ case 12:
4610
+ return "grid-cols-12";
4611
+ default:
4612
+ return "grid-cols-12";
4613
+ }
4614
+ }
4615
+ const Us = ({
4616
+ apiClient: e,
4617
+ api_URL: t,
4618
+ formDefinition: n,
4619
+ sendFormValues: r,
4620
+ children: i,
4621
+ defaultValues: a = {},
4622
+ onFieldsChange: o = () => {
4623
+ }
4624
+ }) => {
4625
+ const [s, l] = ve({ ...a }), [d, b] = ve({}), [g, x] = ve({}), [R, E] = ve({}), I = [
4626
+ "hidden",
4627
+ "html",
4628
+ "linebreak",
4629
+ "header",
4630
+ "alert"
4631
+ ], T = ir(
4632
+ () => ({
4633
+ file: nr,
4634
+ multifile: nr,
4635
+ dateRange: ws,
4636
+ date: Ss,
4637
+ dayTimePicker: Es,
4638
+ time: js,
4639
+ hidden: xi,
4640
+ multiselect: Is,
4641
+ select: ys,
4642
+ email: Cs,
4643
+ litertext: As,
4644
+ checkbox: Gs,
4645
+ radiogroup: Ts,
4646
+ input: tr,
4647
+ textarea: Rs,
4648
+ header: Ns,
4649
+ alert: Ms,
4650
+ linebreak: Ps
4651
+ }),
4652
+ []
4653
+ ), p = {
4654
+ green: "border-green-500 bg-green-50",
4655
+ blue: "border-blue-500 bg-blue-50",
4656
+ red: "border-red-500 bg-red-50",
4657
+ yellow: "border-yellow-500 bg-yellow-50",
4658
+ purple: "border-purple-500 bg-purple-50",
4659
+ indigo: "border-indigo-500 bg-indigo-50",
4660
+ gray: "border-gray-500 bg-gray-50",
4661
+ pink: "border-pink-500 bg-pink-50",
4662
+ orange: "border-orange-500 bg-orange-50"
4663
+ }, P = async (m, G = null) => {
4664
+ if (!e) {
4665
+ const X = `apiClient prop is required when using fields with optionsUrl. Field "${m.name}" requires optionsUrl but no apiClient was provided.`;
4666
+ console.error(X), ht.error(X);
4667
+ return;
4668
+ }
4669
+ try {
4670
+ const X = await e(`/${m.optionsUrl}`);
4671
+ let N = [];
4672
+ m.type === "select" ? N = [
4673
+ { value: "", label: `Select ${m.label.toLowerCase()}` },
4674
+ ...X.data
4675
+ ] : N = X.data.map((ee) => ({
4676
+ value: ee.value,
4677
+ label: ee.label
4678
+ })), n.fields.forEach((ee) => {
4679
+ ee.name === m.name && (ee.options = N);
4680
+ });
4681
+ } catch (X) {
4682
+ console.error(`Failed to load options for ${m.name}:`, X);
4683
+ }
4684
+ };
4685
+ Le(() => {
4686
+ var m;
4687
+ if (((m = n == null ? void 0 : n.fields) == null ? void 0 : m.length) > 0) {
4688
+ if (!n.fields.some((N) => N.value)) return;
4689
+ n.fields.forEach((N) => {
4690
+ N.optionsUrl && P(N);
4691
+ });
4692
+ const X = {};
4693
+ n.fields.forEach((N) => {
4694
+ X[N.name] = a[N.name] ?? N.value ?? (N.type === "multiselect" ? [] : "");
4695
+ }), l(X);
4696
+ }
4697
+ }, [n]);
4698
+ const y = (m, G, X) => {
4699
+ if (m.disabled && m.disabled(X)) return null;
4700
+ if (m.required) {
4701
+ if (!G) return `${m.label} is required`;
4702
+ if (Array.isArray(G) && G.length === 0)
4703
+ return `Please select at least one ${m.label.toLowerCase()}`;
4704
+ }
4705
+ if (m.validate) {
4706
+ const N = m.validate(G, X);
4707
+ if (N) return N;
4708
+ }
4709
+ if (m.type === "email" && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(G))
4710
+ return "Please enter a valid email address";
4711
+ if (m.type === "number") {
4712
+ if (m.min !== void 0 && G < m.min)
4713
+ return `${m.label} must be at least ${m.min}`;
4714
+ if (m.max !== void 0 && G > m.max)
4715
+ return `${m.label} must be no more than ${m.max}`;
4716
+ }
4717
+ return m.type === "date" && !Pn(G).isValid() ? `${m.label} must be a valid date` : m.maxLength && G && G.length > m.maxLength ? `${m.label} must not exceed ${m.maxLength} characters` : null;
4718
+ }, B = (m, G) => {
4719
+ const X = n.fields.find((k) => k.name === m);
4720
+ if (!X) return;
4721
+ const N = { ...s };
4722
+ X.type === "multiselect" ? N[m] = Array.isArray(G) ? G : Array.from(G.target.selectedOptions).map((k) => k.value) : X.type === "dateRange" ? N[m] = [
4723
+ { startDate: G[0].from, endDate: G[0].to, key: "selection" }
4724
+ ] : X.type === "dayTimePicker" ? N[m] = G ? Pn(G).format("YYYY-MM-DD HH:mm:ss") : "" : N[m] = G, X.type === "select" && n.fields.forEach((k) => {
4725
+ k.showIf && !k.showIf(N) && (N[k.name] = k.type === "multiselect" ? [] : "");
4726
+ }), n.fields.forEach((k) => {
4727
+ k.disabled && k.disabled(N) && (N[k.name] = k.type === "multiselect" ? [] : "");
4728
+ }), l(N);
4729
+ const ee = {};
4730
+ n.fields.forEach((k) => {
4731
+ if (!k.showIf || k.showIf(N)) {
4732
+ const fe = y(k, N[k.name], N);
4733
+ fe && (ee[k.name] = fe);
4734
+ }
4735
+ }), b(ee);
4736
+ }, h = (m) => {
4737
+ x({ ...g, [m]: !0 });
4738
+ }, Q = (m) => {
4739
+ m.preventDefault();
4740
+ const G = {};
4741
+ n.fields.forEach((N) => {
4742
+ G[N.name] = !0;
4743
+ }), x(G);
4744
+ const X = {};
4745
+ n.fields.forEach((N) => {
4746
+ if ((!N.showIf || N.showIf(s)) && (!N.disabled || !N.disabled(s))) {
4747
+ const ee = y(N, s[N.name], s);
4748
+ ee && (X[N.name] = ee);
4749
+ }
4750
+ }), b(X), Object.keys(X).length === 0 ? r(s) : ht.error("Please correct the errors in the form");
4751
+ };
4752
+ Le(() => {
4753
+ o(s);
4754
+ }, [s, o]);
4755
+ function S(m, G, X) {
4756
+ if (I.includes(G.type))
4757
+ return /* @__PURE__ */ u.jsx("div", { className: rr(G.span || 8), children: m });
4758
+ const N = G.containerStyle, ee = G.color || "blue", k = N === "card" ? `rounded-lg border text-card-foreground shadow-sm p-4 ${G.containerClassName || p[ee] || p.blue}` : "", fe = /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
4759
+ G.label && /* @__PURE__ */ u.jsxs(
4760
+ ci,
4761
+ {
4762
+ htmlFor: G.name,
4763
+ className: "block text-sm font-medium mb-1",
4764
+ children: [
4765
+ G.label,
4766
+ G.required && /* @__PURE__ */ u.jsx("span", { className: "text-red-500 ml-1", children: "*" })
4767
+ ]
4768
+ }
4769
+ ),
4770
+ /* @__PURE__ */ u.jsx("div", { children: m }),
4771
+ X && /* @__PURE__ */ u.jsx("p", { className: "mt-1 text-sm text-red-500", children: X })
4772
+ ] });
4773
+ return /* @__PURE__ */ u.jsx("div", { className: `mb-4 ${rr(G.span || 8)}`, children: N === "card" ? /* @__PURE__ */ u.jsx("div", { className: k, children: fe }) : fe });
4774
+ }
4775
+ const j = (m) => {
4776
+ if (m.showIf && !m.showIf(s)) return null;
4777
+ const G = T[m.type] || tr;
4778
+ s[m.name] === void 0 && (s[m.name] = m.value !== void 0 ? m.value : m.type === "multiselect" ? [] : "");
4779
+ const X = g[m.name] && d[m.name] ? d[m.name] : null;
4780
+ return S(
4781
+ /* @__PURE__ */ u.jsx(
4782
+ G,
4783
+ {
4784
+ field: m,
4785
+ formValues: s,
4786
+ handleChange: B,
4787
+ handleBlur: () => h(m.name),
4788
+ setCharCounts: E,
4789
+ charCount: R[m.name] || 0,
4790
+ api_URL: t
4791
+ }
4792
+ ),
4793
+ m,
4794
+ X
4795
+ );
4796
+ };
4797
+ return /* @__PURE__ */ u.jsxs(
4798
+ "form",
4799
+ {
4800
+ onSubmit: Q,
4801
+ className: `grid ${Os((n == null ? void 0 : n.columns) || 12)} gap-x-4 mx-auto`,
4802
+ children: [
4803
+ n ? n.fields.map(j) : /* @__PURE__ */ u.jsx("div", { children: "Loading..." }),
4804
+ i
4805
+ ]
4806
+ }
4807
+ );
4808
+ };
4809
+ export {
4810
+ Us as DynamicForm,
4811
+ Us as default
4812
+ };