@commercelayer/app-elements 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +14 -48
  2. package/dist/{InputDateComponent-4461b3e6.js → InputDateComponent-926e5e6d.js} +133 -134
  3. package/dist/dictionaries/customers.d.ts +6 -0
  4. package/dist/dictionaries/orders.d.ts +4 -3
  5. package/dist/dictionaries/returns.d.ts +16 -0
  6. package/dist/dictionaries/types.d.ts +7 -0
  7. package/dist/helpers/appsNavigation.d.ts +5 -5
  8. package/dist/main-d208b3aa.js +29029 -0
  9. package/dist/main.d.ts +10 -8
  10. package/dist/main.js +141 -140
  11. package/dist/style.css +1 -1
  12. package/dist/ui/forms/InputCurrencyRange.d.ts +1 -1
  13. package/dist/ui/forms/InputSelect/{Async.d.ts → AsyncComponent.d.ts} +1 -4
  14. package/dist/ui/forms/InputSelect/HookedInputSelect.d.ts +1 -4
  15. package/dist/ui/forms/InputSelect/InputSelect.d.ts +61 -52
  16. package/dist/ui/forms/InputSelect/{Select.d.ts → SelectComponent.d.ts} +1 -4
  17. package/dist/ui/forms/InputSelect/index.d.ts +2 -1
  18. package/dist/ui/forms/InputSelect/overrides.d.ts +5 -1
  19. package/dist/ui/forms/InputSelect/utils.d.ts +48 -0
  20. package/dist/ui/internals/InputWrapper.d.ts +16 -5
  21. package/dist/ui/resources/{LineItems.d.ts → ResourceLineItems.d.ts} +1 -1
  22. package/dist/ui/resources/ResourceList/ResourceList.d.ts +5 -5
  23. package/dist/ui/resources/ResourceListItem/ResourceListItem.d.ts +26 -0
  24. package/dist/ui/resources/ResourceListItem/ResourceListItem.mocks.d.ts +399 -0
  25. package/dist/ui/resources/ResourceListItem/common.d.ts +14 -0
  26. package/dist/ui/resources/ResourceListItem/index.d.ts +1 -0
  27. package/dist/ui/resources/ResourceListItem/transformers/customers.d.ts +3 -0
  28. package/dist/ui/resources/ResourceListItem/transformers/index.d.ts +3 -0
  29. package/dist/ui/resources/ResourceListItem/transformers/orders.d.ts +3 -0
  30. package/dist/ui/resources/ResourceListItem/transformers/returns.d.ts +3 -0
  31. package/dist/ui/resources/ResourceListItem/types.d.ts +15 -0
  32. package/dist/ui/resources/{ListItemsMetadata.d.ts → ResourceListItemsMetadata.d.ts} +1 -2
  33. package/dist/ui/resources/{OrderSummary.d.ts → ResourceOrderSummary.d.ts} +1 -1
  34. package/dist/ui/resources/{OrderTimeline.d.ts → ResourceOrderTimeline.d.ts} +1 -1
  35. package/dist/ui/resources/{ShipmentParcels.d.ts → ResourceShipmentParcels.d.ts} +1 -1
  36. package/dist/ui/resources/ResourceTags.d.ts +1 -0
  37. package/dist/ui/resources/useResourceFilters/index.d.ts +1 -0
  38. package/dist/ui/resources/{Filters/useFilters.d.ts → useResourceFilters/useResourceFilters.d.ts} +5 -5
  39. package/package.json +2 -1
  40. package/dist/Async-566ec3f7.js +0 -99
  41. package/dist/Select-89937223.js +0 -38
  42. package/dist/main-795be39b.js +0 -24377
  43. package/dist/overrides-346bb0f6.js +0 -4225
  44. package/dist/ui/resources/Filters/index.d.ts +0 -5
  45. package/dist/ui/resources/ListItemOrder.d.ts +0 -8
  46. package/dist/unsupportedIterableToArray-a3020d44.js +0 -126
  47. /package/dist/ui/{resources/Filters → forms/InputSelect}/utils.test.d.ts +0 -0
  48. /package/dist/ui/resources/{LineItems.mocks.d.ts → ResourceLineItems.mocks.d.ts} +0 -0
  49. /package/dist/ui/resources/{Filters/adaptFormValuesToSdk.test.d.ts → ResourceLineItems.test.d.ts} +0 -0
  50. /package/dist/ui/resources/{Filters/adaptFormValuesToUrlQuery.test.d.ts → ResourceListItemsMetadata.test.d.ts} +0 -0
  51. /package/dist/ui/resources/{Filters/adaptUrlQueryToFormValues.test.d.ts → ResourceOrderSummary.test.d.ts} +0 -0
  52. /package/dist/ui/resources/{ShipmentParcels.mocks.d.ts → ResourceShipmentParcels.mocks.d.ts} +0 -0
  53. /package/dist/ui/resources/{Filters/adaptUrlQueryToSdk.test.d.ts → ResourceShipmentParcels.test.d.ts} +0 -0
  54. /package/dist/ui/resources/{Filters → useResourceFilters}/FieldCurrencyRange.d.ts +0 -0
  55. /package/dist/ui/resources/{Filters → useResourceFilters}/FieldItem.d.ts +0 -0
  56. /package/dist/ui/resources/{Filters → useResourceFilters}/FieldTimeRange.d.ts +0 -0
  57. /package/dist/ui/resources/{Filters → useResourceFilters}/FiltersForm.d.ts +0 -0
  58. /package/dist/ui/resources/{Filters → useResourceFilters}/FiltersNav.d.ts +0 -0
  59. /package/dist/ui/resources/{Filters → useResourceFilters}/FiltersSearchBar.d.ts +0 -0
  60. /package/dist/ui/resources/{Filters → useResourceFilters}/adaptFormValuesToSdk.d.ts +0 -0
  61. /package/dist/ui/resources/{Filters/adaptUrlQueryToUrlQuery.test.d.ts → useResourceFilters/adaptFormValuesToSdk.test.d.ts} +0 -0
  62. /package/dist/ui/resources/{Filters → useResourceFilters}/adaptFormValuesToUrlQuery.d.ts +0 -0
  63. /package/dist/ui/resources/{Filters/timeUtils.test.d.ts → useResourceFilters/adaptFormValuesToUrlQuery.test.d.ts} +0 -0
  64. /package/dist/ui/resources/{Filters → useResourceFilters}/adaptUrlQueryToFormValues.d.ts +0 -0
  65. /package/dist/ui/resources/{LineItems.test.d.ts → useResourceFilters/adaptUrlQueryToFormValues.test.d.ts} +0 -0
  66. /package/dist/ui/resources/{Filters → useResourceFilters}/adaptUrlQueryToSdk.d.ts +0 -0
  67. /package/dist/ui/resources/{ListItemOrder.test.d.ts → useResourceFilters/adaptUrlQueryToSdk.test.d.ts} +0 -0
  68. /package/dist/ui/resources/{Filters → useResourceFilters}/adaptUrlQueryToUrlQuery.d.ts +0 -0
  69. /package/dist/ui/resources/{ListItemsMetadata.test.d.ts → useResourceFilters/adaptUrlQueryToUrlQuery.test.d.ts} +0 -0
  70. /package/dist/ui/resources/{Filters → useResourceFilters}/adapters.d.ts +0 -0
  71. /package/dist/ui/resources/{Filters → useResourceFilters}/adapters.types.d.ts +0 -0
  72. /package/dist/ui/resources/{Filters → useResourceFilters}/mockedInstructions.d.ts +0 -0
  73. /package/dist/ui/resources/{Filters → useResourceFilters}/timeUtils.d.ts +0 -0
  74. /package/dist/ui/resources/{OrderSummary.test.d.ts → useResourceFilters/timeUtils.test.d.ts} +0 -0
  75. /package/dist/ui/resources/{Filters → useResourceFilters}/types.d.ts +0 -0
  76. /package/dist/ui/resources/{Filters → useResourceFilters}/utils.d.ts +0 -0
  77. /package/dist/ui/resources/{ShipmentParcels.test.d.ts → useResourceFilters/utils.test.d.ts} +0 -0
@@ -1,4225 +0,0 @@
1
- import { d as Se, g as gr, _ as In, a as br, b as pr, c as fr, f as mr } from "./unsupportedIterableToArray-a3020d44.js";
2
- import * as B from "react";
3
- import { useLayoutEffect as vn, forwardRef as Ir, useContext as Te, createElement as me, Fragment as Be, createContext as Ct, useRef as oe, useState as Ie, useMemo as Ce, useCallback as Y, Component as vr, useEffect as hn } from "react";
4
- import { _ as hr, H as se, K as Cn } from "./main-795be39b.js";
5
- import { createPortal as Cr } from "react-dom";
6
- function V() {
7
- return V = Object.assign ? Object.assign.bind() : function(t) {
8
- for (var e = 1; e < arguments.length; e++) {
9
- var r = arguments[e];
10
- for (var i in r)
11
- Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
12
- }
13
- return t;
14
- }, V.apply(this, arguments);
15
- }
16
- function Tt(t, e) {
17
- var r = Object.keys(t);
18
- if (Object.getOwnPropertySymbols) {
19
- var i = Object.getOwnPropertySymbols(t);
20
- e && (i = i.filter(function(n) {
21
- return Object.getOwnPropertyDescriptor(t, n).enumerable;
22
- })), r.push.apply(r, i);
23
- }
24
- return r;
25
- }
26
- function G(t) {
27
- for (var e = 1; e < arguments.length; e++) {
28
- var r = arguments[e] != null ? arguments[e] : {};
29
- e % 2 ? Tt(Object(r), !0).forEach(function(i) {
30
- Se(t, i, r[i]);
31
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Tt(Object(r)).forEach(function(i) {
32
- Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
33
- });
34
- }
35
- return t;
36
- }
37
- function Ar(t) {
38
- if (Array.isArray(t))
39
- return gr(t);
40
- }
41
- function yr(t) {
42
- if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
43
- return Array.from(t);
44
- }
45
- function xr() {
46
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
47
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
48
- }
49
- function An(t) {
50
- return Ar(t) || yr(t) || In(t) || xr();
51
- }
52
- function Er(t) {
53
- if (t.sheet)
54
- return t.sheet;
55
- for (var e = 0; e < document.styleSheets.length; e++)
56
- if (document.styleSheets[e].ownerNode === t)
57
- return document.styleSheets[e];
58
- }
59
- function Gr(t) {
60
- var e = document.createElement("style");
61
- return e.setAttribute("data-emotion", t.key), t.nonce !== void 0 && e.setAttribute("nonce", t.nonce), e.appendChild(document.createTextNode("")), e.setAttribute("data-s", ""), e;
62
- }
63
- var Fr = /* @__PURE__ */ function() {
64
- function t(r) {
65
- var i = this;
66
- this._insertTag = function(n) {
67
- var a;
68
- i.tags.length === 0 ? i.insertionPoint ? a = i.insertionPoint.nextSibling : i.prepend ? a = i.container.firstChild : a = i.before : a = i.tags[i.tags.length - 1].nextSibling, i.container.insertBefore(n, a), i.tags.push(n);
69
- }, this.isSpeedy = r.speedy === void 0 ? process.env.NODE_ENV === "production" : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
70
- }
71
- var e = t.prototype;
72
- return e.hydrate = function(i) {
73
- i.forEach(this._insertTag);
74
- }, e.insert = function(i) {
75
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Gr(this));
76
- var n = this.tags[this.tags.length - 1];
77
- if (process.env.NODE_ENV !== "production") {
78
- var a = i.charCodeAt(0) === 64 && i.charCodeAt(1) === 105;
79
- a && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:
80
- ` + i + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !a;
81
- }
82
- if (this.isSpeedy) {
83
- var o = Er(n);
84
- try {
85
- o.insertRule(i, o.cssRules.length);
86
- } catch (u) {
87
- process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(i) && console.error('There was a problem inserting the following rule: "' + i + '"', u);
88
- }
89
- } else
90
- n.appendChild(document.createTextNode(i));
91
- this.ctr++;
92
- }, e.flush = function() {
93
- this.tags.forEach(function(i) {
94
- return i.parentNode && i.parentNode.removeChild(i);
95
- }), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
96
- }, t;
97
- }(), k = "-ms-", Ue = "-moz-", N = "-webkit-", At = "comm", yt = "rule", xt = "decl", Vr = "@import", yn = "@keyframes", Sr = Math.abs, et = String.fromCharCode, Br = Object.assign;
98
- function Nr(t, e) {
99
- return O(t, 0) ^ 45 ? (((e << 2 ^ O(t, 0)) << 2 ^ O(t, 1)) << 2 ^ O(t, 2)) << 2 ^ O(t, 3) : 0;
100
- }
101
- function xn(t) {
102
- return t.trim();
103
- }
104
- function wr(t, e) {
105
- return (t = e.exec(t)) ? t[0] : t;
106
- }
107
- function W(t, e, r) {
108
- return t.replace(e, r);
109
- }
110
- function pt(t, e) {
111
- return t.indexOf(e);
112
- }
113
- function O(t, e) {
114
- return t.charCodeAt(e) | 0;
115
- }
116
- function Ne(t, e, r) {
117
- return t.slice(e, r);
118
- }
119
- function ue(t) {
120
- return t.length;
121
- }
122
- function Et(t) {
123
- return t.length;
124
- }
125
- function De(t, e) {
126
- return e.push(t), t;
127
- }
128
- function Rr(t, e) {
129
- return t.map(e).join("");
130
- }
131
- var tt = 1, xe = 1, En = 0, J = 0, D = 0, Ee = "";
132
- function nt(t, e, r, i, n, a, o) {
133
- return { value: t, root: e, parent: r, type: i, props: n, children: a, line: tt, column: xe, length: o, return: "" };
134
- }
135
- function Fe(t, e) {
136
- return Br(nt("", null, null, "", null, null, 0), t, { length: -t.length }, e);
137
- }
138
- function Wr() {
139
- return D;
140
- }
141
- function Tr() {
142
- return D = J > 0 ? O(Ee, --J) : 0, xe--, D === 10 && (xe = 1, tt--), D;
143
- }
144
- function Q() {
145
- return D = J < En ? O(Ee, J++) : 0, xe++, D === 10 && (xe = 1, tt++), D;
146
- }
147
- function le() {
148
- return O(Ee, J);
149
- }
150
- function Ye() {
151
- return J;
152
- }
153
- function Ze(t, e) {
154
- return Ne(Ee, t, e);
155
- }
156
- function we(t) {
157
- switch (t) {
158
- case 0:
159
- case 9:
160
- case 10:
161
- case 13:
162
- case 32:
163
- return 5;
164
- case 33:
165
- case 43:
166
- case 44:
167
- case 47:
168
- case 62:
169
- case 64:
170
- case 126:
171
- case 59:
172
- case 123:
173
- case 125:
174
- return 4;
175
- case 58:
176
- return 3;
177
- case 34:
178
- case 39:
179
- case 40:
180
- case 91:
181
- return 2;
182
- case 41:
183
- case 93:
184
- return 1;
185
- }
186
- return 0;
187
- }
188
- function Gn(t) {
189
- return tt = xe = 1, En = ue(Ee = t), J = 0, [];
190
- }
191
- function Fn(t) {
192
- return Ee = "", t;
193
- }
194
- function ze(t) {
195
- return xn(Ze(J - 1, ft(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
196
- }
197
- function Zr(t) {
198
- for (; (D = le()) && D < 33; )
199
- Q();
200
- return we(t) > 2 || we(D) > 3 ? "" : " ";
201
- }
202
- function Xr(t, e) {
203
- for (; --e && Q() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); )
204
- ;
205
- return Ze(t, Ye() + (e < 6 && le() == 32 && Q() == 32));
206
- }
207
- function ft(t) {
208
- for (; Q(); )
209
- switch (D) {
210
- case t:
211
- return J;
212
- case 34:
213
- case 39:
214
- t !== 34 && t !== 39 && ft(D);
215
- break;
216
- case 40:
217
- t === 41 && ft(t);
218
- break;
219
- case 92:
220
- Q();
221
- break;
222
- }
223
- return J;
224
- }
225
- function Pr(t, e) {
226
- for (; Q() && t + D !== 47 + 10; )
227
- if (t + D === 42 + 42 && le() === 47)
228
- break;
229
- return "/*" + Ze(e, J - 1) + "*" + et(t === 47 ? t : Q());
230
- }
231
- function Dr(t) {
232
- for (; !we(le()); )
233
- Q();
234
- return Ze(t, J);
235
- }
236
- function Lr(t) {
237
- return Fn(Je("", null, null, null, [""], t = Gn(t), 0, [0], t));
238
- }
239
- function Je(t, e, r, i, n, a, o, u, s) {
240
- for (var c = 0, l = 0, d = o, g = 0, v = 0, p = 0, m = 1, I = 1, f = 1, A = 0, h = "", C = n, b = a, y = i, E = h; I; )
241
- switch (p = A, A = Q()) {
242
- case 40:
243
- if (p != 108 && O(E, d - 1) == 58) {
244
- pt(E += W(ze(A), "&", "&\f"), "&\f") != -1 && (f = -1);
245
- break;
246
- }
247
- case 34:
248
- case 39:
249
- case 91:
250
- E += ze(A);
251
- break;
252
- case 9:
253
- case 10:
254
- case 13:
255
- case 32:
256
- E += Zr(p);
257
- break;
258
- case 92:
259
- E += Xr(Ye() - 1, 7);
260
- continue;
261
- case 47:
262
- switch (le()) {
263
- case 42:
264
- case 47:
265
- De(Or(Pr(Q(), Ye()), e, r), s);
266
- break;
267
- default:
268
- E += "/";
269
- }
270
- break;
271
- case 123 * m:
272
- u[c++] = ue(E) * f;
273
- case 125 * m:
274
- case 59:
275
- case 0:
276
- switch (A) {
277
- case 0:
278
- case 125:
279
- I = 0;
280
- case 59 + l:
281
- v > 0 && ue(E) - d && De(v > 32 ? Xt(E + ";", i, r, d - 1) : Xt(W(E, " ", "") + ";", i, r, d - 2), s);
282
- break;
283
- case 59:
284
- E += ";";
285
- default:
286
- if (De(y = Zt(E, e, r, c, l, n, u, h, C = [], b = [], d), a), A === 123)
287
- if (l === 0)
288
- Je(E, e, y, y, C, a, d, u, b);
289
- else
290
- switch (g === 99 && O(E, 3) === 110 ? 100 : g) {
291
- case 100:
292
- case 109:
293
- case 115:
294
- Je(t, y, y, i && De(Zt(t, y, y, 0, 0, n, u, h, n, C = [], d), b), n, b, d, u, i ? C : b);
295
- break;
296
- default:
297
- Je(E, y, y, y, [""], b, 0, u, b);
298
- }
299
- }
300
- c = l = v = 0, m = f = 1, h = E = "", d = o;
301
- break;
302
- case 58:
303
- d = 1 + ue(E), v = p;
304
- default:
305
- if (m < 1) {
306
- if (A == 123)
307
- --m;
308
- else if (A == 125 && m++ == 0 && Tr() == 125)
309
- continue;
310
- }
311
- switch (E += et(A), A * m) {
312
- case 38:
313
- f = l > 0 ? 1 : (E += "\f", -1);
314
- break;
315
- case 44:
316
- u[c++] = (ue(E) - 1) * f, f = 1;
317
- break;
318
- case 64:
319
- le() === 45 && (E += ze(Q())), g = le(), l = d = ue(h = E += Dr(Ye())), A++;
320
- break;
321
- case 45:
322
- p === 45 && ue(E) == 2 && (m = 0);
323
- }
324
- }
325
- return a;
326
- }
327
- function Zt(t, e, r, i, n, a, o, u, s, c, l) {
328
- for (var d = n - 1, g = n === 0 ? a : [""], v = Et(g), p = 0, m = 0, I = 0; p < i; ++p)
329
- for (var f = 0, A = Ne(t, d + 1, d = Sr(m = o[p])), h = t; f < v; ++f)
330
- (h = xn(m > 0 ? g[f] + " " + A : W(A, /&\f/g, g[f]))) && (s[I++] = h);
331
- return nt(t, e, r, n === 0 ? yt : u, s, c, l);
332
- }
333
- function Or(t, e, r) {
334
- return nt(t, e, r, At, et(Wr()), Ne(t, 2, -2), 0);
335
- }
336
- function Xt(t, e, r, i) {
337
- return nt(t, e, r, xt, Ne(t, 0, i), Ne(t, i + 1, -1), i);
338
- }
339
- function Ae(t, e) {
340
- for (var r = "", i = Et(t), n = 0; n < i; n++)
341
- r += e(t[n], n, t, e) || "";
342
- return r;
343
- }
344
- function Hr(t, e, r, i) {
345
- switch (t.type) {
346
- case Vr:
347
- case xt:
348
- return t.return = t.return || t.value;
349
- case At:
350
- return "";
351
- case yn:
352
- return t.return = t.value + "{" + Ae(t.children, i) + "}";
353
- case yt:
354
- t.value = t.props.join(",");
355
- }
356
- return ue(r = Ae(t.children, i)) ? t.return = t.value + "{" + r + "}" : "";
357
- }
358
- function Mr(t) {
359
- var e = Et(t);
360
- return function(r, i, n, a) {
361
- for (var o = "", u = 0; u < e; u++)
362
- o += t[u](r, i, n, a) || "";
363
- return o;
364
- };
365
- }
366
- function kr(t) {
367
- return function(e) {
368
- e.root || (e = e.return) && t(e);
369
- };
370
- }
371
- function Yr(t) {
372
- var e = /* @__PURE__ */ Object.create(null);
373
- return function(r) {
374
- return e[r] === void 0 && (e[r] = t(r)), e[r];
375
- };
376
- }
377
- var zr = function(e, r, i) {
378
- for (var n = 0, a = 0; n = a, a = le(), n === 38 && a === 12 && (r[i] = 1), !we(a); )
379
- Q();
380
- return Ze(e, J);
381
- }, Jr = function(e, r) {
382
- var i = -1, n = 44;
383
- do
384
- switch (we(n)) {
385
- case 0:
386
- n === 38 && le() === 12 && (r[i] = 1), e[i] += zr(J - 1, r, i);
387
- break;
388
- case 2:
389
- e[i] += ze(n);
390
- break;
391
- case 4:
392
- if (n === 44) {
393
- e[++i] = le() === 58 ? "&\f" : "", r[i] = e[i].length;
394
- break;
395
- }
396
- default:
397
- e[i] += et(n);
398
- }
399
- while (n = Q());
400
- return e;
401
- }, jr = function(e, r) {
402
- return Fn(Jr(Gn(e), r));
403
- }, Pt = /* @__PURE__ */ new WeakMap(), Ur = function(e) {
404
- if (!(e.type !== "rule" || !e.parent || // positive .length indicates that this rule contains pseudo
405
- // negative .length indicates that this rule has been already prefixed
406
- e.length < 1)) {
407
- for (var r = e.value, i = e.parent, n = e.column === i.column && e.line === i.line; i.type !== "rule"; )
408
- if (i = i.parent, !i)
409
- return;
410
- if (!(e.props.length === 1 && r.charCodeAt(0) !== 58 && !Pt.get(i)) && !n) {
411
- Pt.set(e, !0);
412
- for (var a = [], o = jr(r, a), u = i.props, s = 0, c = 0; s < o.length; s++)
413
- for (var l = 0; l < u.length; l++, c++)
414
- e.props[c] = a[s] ? o[s].replace(/&\f/g, u[l]) : u[l] + " " + o[s];
415
- }
416
- }
417
- }, Qr = function(e) {
418
- if (e.type === "decl") {
419
- var r = e.value;
420
- // charcode for l
421
- r.charCodeAt(0) === 108 && // charcode for b
422
- r.charCodeAt(2) === 98 && (e.return = "", e.value = "");
423
- }
424
- }, _r = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", $r = function(e) {
425
- return e.type === "comm" && e.children.indexOf(_r) > -1;
426
- }, Kr = function(e) {
427
- return function(r, i, n) {
428
- if (!(r.type !== "rule" || e.compat)) {
429
- var a = r.value.match(/(:first|:nth|:nth-last)-child/g);
430
- if (a) {
431
- for (var o = r.parent === n[0], u = o ? n[0].children : (
432
- // global rule at the root level
433
- n
434
- ), s = u.length - 1; s >= 0; s--) {
435
- var c = u[s];
436
- if (c.line < r.line)
437
- break;
438
- if (c.column < r.column) {
439
- if ($r(c))
440
- return;
441
- break;
442
- }
443
- }
444
- a.forEach(function(l) {
445
- console.error('The pseudo class "' + l + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + l.split("-child")[0] + '-of-type".');
446
- });
447
- }
448
- }
449
- };
450
- }, Vn = function(e) {
451
- return e.type.charCodeAt(1) === 105 && e.type.charCodeAt(0) === 64;
452
- }, qr = function(e, r) {
453
- for (var i = e - 1; i >= 0; i--)
454
- if (!Vn(r[i]))
455
- return !0;
456
- return !1;
457
- }, Dt = function(e) {
458
- e.type = "", e.value = "", e.return = "", e.children = "", e.props = "";
459
- }, ei = function(e, r, i) {
460
- Vn(e) && (e.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), Dt(e)) : qr(r, i) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), Dt(e)));
461
- };
462
- function Sn(t, e) {
463
- switch (Nr(t, e)) {
464
- case 5103:
465
- return N + "print-" + t + t;
466
- case 5737:
467
- case 4201:
468
- case 3177:
469
- case 3433:
470
- case 1641:
471
- case 4457:
472
- case 2921:
473
- case 5572:
474
- case 6356:
475
- case 5844:
476
- case 3191:
477
- case 6645:
478
- case 3005:
479
- case 6391:
480
- case 5879:
481
- case 5623:
482
- case 6135:
483
- case 4599:
484
- case 4855:
485
- case 4215:
486
- case 6389:
487
- case 5109:
488
- case 5365:
489
- case 5621:
490
- case 3829:
491
- return N + t + t;
492
- case 5349:
493
- case 4246:
494
- case 4810:
495
- case 6968:
496
- case 2756:
497
- return N + t + Ue + t + k + t + t;
498
- case 6828:
499
- case 4268:
500
- return N + t + k + t + t;
501
- case 6165:
502
- return N + t + k + "flex-" + t + t;
503
- case 5187:
504
- return N + t + W(t, /(\w+).+(:[^]+)/, N + "box-$1$2" + k + "flex-$1$2") + t;
505
- case 5443:
506
- return N + t + k + "flex-item-" + W(t, /flex-|-self/, "") + t;
507
- case 4675:
508
- return N + t + k + "flex-line-pack" + W(t, /align-content|flex-|-self/, "") + t;
509
- case 5548:
510
- return N + t + k + W(t, "shrink", "negative") + t;
511
- case 5292:
512
- return N + t + k + W(t, "basis", "preferred-size") + t;
513
- case 6060:
514
- return N + "box-" + W(t, "-grow", "") + N + t + k + W(t, "grow", "positive") + t;
515
- case 4554:
516
- return N + W(t, /([^-])(transform)/g, "$1" + N + "$2") + t;
517
- case 6187:
518
- return W(W(W(t, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), t, "") + t;
519
- case 5495:
520
- case 3959:
521
- return W(t, /(image-set\([^]*)/, N + "$1$`$1");
522
- case 4968:
523
- return W(W(t, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + k + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + t + t;
524
- case 4095:
525
- case 3583:
526
- case 4068:
527
- case 2532:
528
- return W(t, /(.+)-inline(.+)/, N + "$1$2") + t;
529
- case 8116:
530
- case 7059:
531
- case 5753:
532
- case 5535:
533
- case 5445:
534
- case 5701:
535
- case 4933:
536
- case 4677:
537
- case 5533:
538
- case 5789:
539
- case 5021:
540
- case 4765:
541
- if (ue(t) - 1 - e > 6)
542
- switch (O(t, e + 1)) {
543
- case 109:
544
- if (O(t, e + 4) !== 45)
545
- break;
546
- case 102:
547
- return W(t, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + Ue + (O(t, e + 3) == 108 ? "$3" : "$2-$3")) + t;
548
- case 115:
549
- return ~pt(t, "stretch") ? Sn(W(t, "stretch", "fill-available"), e) + t : t;
550
- }
551
- break;
552
- case 4949:
553
- if (O(t, e + 1) !== 115)
554
- break;
555
- case 6444:
556
- switch (O(t, ue(t) - 3 - (~pt(t, "!important") && 10))) {
557
- case 107:
558
- return W(t, ":", ":" + N) + t;
559
- case 101:
560
- return W(t, /(.+:)([^;!]+)(;|!.+)?/, "$1" + N + (O(t, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + k + "$2box$3") + t;
561
- }
562
- break;
563
- case 5936:
564
- switch (O(t, e + 11)) {
565
- case 114:
566
- return N + t + k + W(t, /[svh]\w+-[tblr]{2}/, "tb") + t;
567
- case 108:
568
- return N + t + k + W(t, /[svh]\w+-[tblr]{2}/, "tb-rl") + t;
569
- case 45:
570
- return N + t + k + W(t, /[svh]\w+-[tblr]{2}/, "lr") + t;
571
- }
572
- return N + t + k + t + t;
573
- }
574
- return t;
575
- }
576
- var ti = function(e, r, i, n) {
577
- if (e.length > -1 && !e.return)
578
- switch (e.type) {
579
- case xt:
580
- e.return = Sn(e.value, e.length);
581
- break;
582
- case yn:
583
- return Ae([Fe(e, {
584
- value: W(e.value, "@", "@" + N)
585
- })], n);
586
- case yt:
587
- if (e.length)
588
- return Rr(e.props, function(a) {
589
- switch (wr(a, /(::plac\w+|:read-\w+)/)) {
590
- case ":read-only":
591
- case ":read-write":
592
- return Ae([Fe(e, {
593
- props: [W(a, /:(read-\w+)/, ":" + Ue + "$1")]
594
- })], n);
595
- case "::placeholder":
596
- return Ae([Fe(e, {
597
- props: [W(a, /:(plac\w+)/, ":" + N + "input-$1")]
598
- }), Fe(e, {
599
- props: [W(a, /:(plac\w+)/, ":" + Ue + "$1")]
600
- }), Fe(e, {
601
- props: [W(a, /:(plac\w+)/, k + "input-$1")]
602
- })], n);
603
- }
604
- return "";
605
- });
606
- }
607
- }, ni = [ti], ri = function(e) {
608
- var r = e.key;
609
- if (process.env.NODE_ENV !== "production" && !r)
610
- throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
611
- If multiple caches share the same key they might "fight" for each other's style elements.`);
612
- if (r === "css") {
613
- var i = document.querySelectorAll("style[data-emotion]:not([data-s])");
614
- Array.prototype.forEach.call(i, function(m) {
615
- var I = m.getAttribute("data-emotion");
616
- I.indexOf(" ") !== -1 && (document.head.appendChild(m), m.setAttribute("data-s", ""));
617
- });
618
- }
619
- var n = e.stylisPlugins || ni;
620
- if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r))
621
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed');
622
- var a = {}, o, u = [];
623
- o = e.container || document.head, Array.prototype.forEach.call(
624
- // this means we will ignore elements which don't have a space in them which
625
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
626
- document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
627
- function(m) {
628
- for (var I = m.getAttribute("data-emotion").split(" "), f = 1; f < I.length; f++)
629
- a[I[f]] = !0;
630
- u.push(m);
631
- }
632
- );
633
- var s, c = [Ur, Qr];
634
- process.env.NODE_ENV !== "production" && c.push(Kr({
635
- get compat() {
636
- return p.compat;
637
- }
638
- }), ei);
639
- {
640
- var l, d = [Hr, process.env.NODE_ENV !== "production" ? function(m) {
641
- m.root || (m.return ? l.insert(m.return) : m.value && m.type !== At && l.insert(m.value + "{}"));
642
- } : kr(function(m) {
643
- l.insert(m);
644
- })], g = Mr(c.concat(n, d)), v = function(I) {
645
- return Ae(Lr(I), g);
646
- };
647
- s = function(I, f, A, h) {
648
- l = A, process.env.NODE_ENV !== "production" && f.map !== void 0 && (l = {
649
- insert: function(b) {
650
- A.insert(b + f.map);
651
- }
652
- }), v(I ? I + "{" + f.styles + "}" : f.styles), h && (p.inserted[f.name] = !0);
653
- };
654
- }
655
- var p = {
656
- key: r,
657
- sheet: new Fr({
658
- key: r,
659
- container: o,
660
- nonce: e.nonce,
661
- speedy: e.speedy,
662
- prepend: e.prepend,
663
- insertionPoint: e.insertionPoint
664
- }),
665
- nonce: e.nonce,
666
- inserted: a,
667
- registered: {},
668
- insert: s
669
- };
670
- return p.sheet.hydrate(u), p;
671
- }, Le = { exports: {} }, w = {};
672
- /** @license React v16.13.1
673
- * react-is.production.min.js
674
- *
675
- * Copyright (c) Facebook, Inc. and its affiliates.
676
- *
677
- * This source code is licensed under the MIT license found in the
678
- * LICENSE file in the root directory of this source tree.
679
- */
680
- var Lt;
681
- function ii() {
682
- if (Lt)
683
- return w;
684
- Lt = 1;
685
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, u = t ? Symbol.for("react.context") : 60110, s = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, I = t ? Symbol.for("react.fundamental") : 60117, f = t ? Symbol.for("react.responder") : 60118, A = t ? Symbol.for("react.scope") : 60119;
686
- function h(b) {
687
- if (typeof b == "object" && b !== null) {
688
- var y = b.$$typeof;
689
- switch (y) {
690
- case e:
691
- switch (b = b.type, b) {
692
- case s:
693
- case c:
694
- case i:
695
- case a:
696
- case n:
697
- case d:
698
- return b;
699
- default:
700
- switch (b = b && b.$$typeof, b) {
701
- case u:
702
- case l:
703
- case p:
704
- case v:
705
- case o:
706
- return b;
707
- default:
708
- return y;
709
- }
710
- }
711
- case r:
712
- return y;
713
- }
714
- }
715
- }
716
- function C(b) {
717
- return h(b) === c;
718
- }
719
- return w.AsyncMode = s, w.ConcurrentMode = c, w.ContextConsumer = u, w.ContextProvider = o, w.Element = e, w.ForwardRef = l, w.Fragment = i, w.Lazy = p, w.Memo = v, w.Portal = r, w.Profiler = a, w.StrictMode = n, w.Suspense = d, w.isAsyncMode = function(b) {
720
- return C(b) || h(b) === s;
721
- }, w.isConcurrentMode = C, w.isContextConsumer = function(b) {
722
- return h(b) === u;
723
- }, w.isContextProvider = function(b) {
724
- return h(b) === o;
725
- }, w.isElement = function(b) {
726
- return typeof b == "object" && b !== null && b.$$typeof === e;
727
- }, w.isForwardRef = function(b) {
728
- return h(b) === l;
729
- }, w.isFragment = function(b) {
730
- return h(b) === i;
731
- }, w.isLazy = function(b) {
732
- return h(b) === p;
733
- }, w.isMemo = function(b) {
734
- return h(b) === v;
735
- }, w.isPortal = function(b) {
736
- return h(b) === r;
737
- }, w.isProfiler = function(b) {
738
- return h(b) === a;
739
- }, w.isStrictMode = function(b) {
740
- return h(b) === n;
741
- }, w.isSuspense = function(b) {
742
- return h(b) === d;
743
- }, w.isValidElementType = function(b) {
744
- return typeof b == "string" || typeof b == "function" || b === i || b === c || b === a || b === n || b === d || b === g || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === v || b.$$typeof === o || b.$$typeof === u || b.$$typeof === l || b.$$typeof === I || b.$$typeof === f || b.$$typeof === A || b.$$typeof === m);
745
- }, w.typeOf = h, w;
746
- }
747
- var R = {};
748
- /** @license React v16.13.1
749
- * react-is.development.js
750
- *
751
- * Copyright (c) Facebook, Inc. and its affiliates.
752
- *
753
- * This source code is licensed under the MIT license found in the
754
- * LICENSE file in the root directory of this source tree.
755
- */
756
- var Ot;
757
- function ai() {
758
- return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() {
759
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, u = t ? Symbol.for("react.context") : 60110, s = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, g = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, I = t ? Symbol.for("react.fundamental") : 60117, f = t ? Symbol.for("react.responder") : 60118, A = t ? Symbol.for("react.scope") : 60119;
760
- function h(x) {
761
- return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
762
- x === i || x === c || x === a || x === n || x === d || x === g || typeof x == "object" && x !== null && (x.$$typeof === p || x.$$typeof === v || x.$$typeof === o || x.$$typeof === u || x.$$typeof === l || x.$$typeof === I || x.$$typeof === f || x.$$typeof === A || x.$$typeof === m);
763
- }
764
- function C(x) {
765
- if (typeof x == "object" && x !== null) {
766
- var Ge = x.$$typeof;
767
- switch (Ge) {
768
- case e:
769
- var fe = x.type;
770
- switch (fe) {
771
- case s:
772
- case c:
773
- case i:
774
- case a:
775
- case n:
776
- case d:
777
- return fe;
778
- default:
779
- var Pe = fe && fe.$$typeof;
780
- switch (Pe) {
781
- case u:
782
- case l:
783
- case p:
784
- case v:
785
- case o:
786
- return Pe;
787
- default:
788
- return Ge;
789
- }
790
- }
791
- case r:
792
- return Ge;
793
- }
794
- }
795
- }
796
- var b = s, y = c, E = u, S = o, T = e, z = l, _ = i, H = p, $ = v, X = r, P = a, j = n, K = d, U = !1;
797
- function re(x) {
798
- return U || (U = !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.")), te(x) || C(x) === s;
799
- }
800
- function te(x) {
801
- return C(x) === c;
802
- }
803
- function de(x) {
804
- return C(x) === u;
805
- }
806
- function L(x) {
807
- return C(x) === o;
808
- }
809
- function M(x) {
810
- return typeof x == "object" && x !== null && x.$$typeof === e;
811
- }
812
- function ie(x) {
813
- return C(x) === l;
814
- }
815
- function ae(x) {
816
- return C(x) === i;
817
- }
818
- function q(x) {
819
- return C(x) === p;
820
- }
821
- function ee(x) {
822
- return C(x) === v;
823
- }
824
- function pe(x) {
825
- return C(x) === r;
826
- }
827
- function ve(x) {
828
- return C(x) === a;
829
- }
830
- function ut(x) {
831
- return C(x) === n;
832
- }
833
- function Xe(x) {
834
- return C(x) === d;
835
- }
836
- R.AsyncMode = b, R.ConcurrentMode = y, R.ContextConsumer = E, R.ContextProvider = S, R.Element = T, R.ForwardRef = z, R.Fragment = _, R.Lazy = H, R.Memo = $, R.Portal = X, R.Profiler = P, R.StrictMode = j, R.Suspense = K, R.isAsyncMode = re, R.isConcurrentMode = te, R.isContextConsumer = de, R.isContextProvider = L, R.isElement = M, R.isForwardRef = ie, R.isFragment = ae, R.isLazy = q, R.isMemo = ee, R.isPortal = pe, R.isProfiler = ve, R.isStrictMode = ut, R.isSuspense = Xe, R.isValidElementType = h, R.typeOf = C;
837
- }()), R;
838
- }
839
- var Ht;
840
- function ui() {
841
- return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? Le.exports = ii() : Le.exports = ai()), Le.exports;
842
- }
843
- var Bn = ui(), oi = {
844
- $$typeof: !0,
845
- render: !0,
846
- defaultProps: !0,
847
- displayName: !0,
848
- propTypes: !0
849
- }, si = {
850
- $$typeof: !0,
851
- compare: !0,
852
- defaultProps: !0,
853
- displayName: !0,
854
- propTypes: !0,
855
- type: !0
856
- }, Nn = {};
857
- Nn[Bn.ForwardRef] = oi;
858
- Nn[Bn.Memo] = si;
859
- var ci = !0;
860
- function wn(t, e, r) {
861
- var i = "";
862
- return r.split(" ").forEach(function(n) {
863
- t[n] !== void 0 ? e.push(t[n] + ";") : i += n + " ";
864
- }), i;
865
- }
866
- var Gt = function(e, r, i) {
867
- var n = e.key + "-" + r.name;
868
- // we only need to add the styles to the registered cache if the
869
- // class name could be used further down
870
- // the tree but if it's a string tag, we know it won't
871
- // so we don't have to add it to registered cache.
872
- // this improves memory usage since we can avoid storing the whole style string
873
- (i === !1 || // we need to always store it if we're in compat mode and
874
- // in node since emotion-server relies on whether a style is in
875
- // the registered cache to know whether a style is global or not
876
- // also, note that this check will be dead code eliminated in the browser
877
- ci === !1) && e.registered[n] === void 0 && (e.registered[n] = r.styles);
878
- }, Ft = function(e, r, i) {
879
- Gt(e, r, i);
880
- var n = e.key + "-" + r.name;
881
- if (e.inserted[r.name] === void 0) {
882
- var a = r;
883
- do
884
- e.insert(r === a ? "." + n : "", a, e.sheet, !0), a = a.next;
885
- while (a !== void 0);
886
- }
887
- };
888
- function li(t) {
889
- for (var e = 0, r, i = 0, n = t.length; n >= 4; ++i, n -= 4)
890
- r = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, r = /* Math.imul(k, m): */
891
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
892
- r >>> 24, e = /* Math.imul(k, m): */
893
- (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
894
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
895
- switch (n) {
896
- case 3:
897
- e ^= (t.charCodeAt(i + 2) & 255) << 16;
898
- case 2:
899
- e ^= (t.charCodeAt(i + 1) & 255) << 8;
900
- case 1:
901
- e ^= t.charCodeAt(i) & 255, e = /* Math.imul(h, m): */
902
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
903
- }
904
- return e ^= e >>> 13, e = /* Math.imul(h, m): */
905
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
906
- }
907
- var di = {
908
- animationIterationCount: 1,
909
- borderImageOutset: 1,
910
- borderImageSlice: 1,
911
- borderImageWidth: 1,
912
- boxFlex: 1,
913
- boxFlexGroup: 1,
914
- boxOrdinalGroup: 1,
915
- columnCount: 1,
916
- columns: 1,
917
- flex: 1,
918
- flexGrow: 1,
919
- flexPositive: 1,
920
- flexShrink: 1,
921
- flexNegative: 1,
922
- flexOrder: 1,
923
- gridRow: 1,
924
- gridRowEnd: 1,
925
- gridRowSpan: 1,
926
- gridRowStart: 1,
927
- gridColumn: 1,
928
- gridColumnEnd: 1,
929
- gridColumnSpan: 1,
930
- gridColumnStart: 1,
931
- msGridRow: 1,
932
- msGridRowSpan: 1,
933
- msGridColumn: 1,
934
- msGridColumnSpan: 1,
935
- fontWeight: 1,
936
- lineHeight: 1,
937
- opacity: 1,
938
- order: 1,
939
- orphans: 1,
940
- tabSize: 1,
941
- widows: 1,
942
- zIndex: 1,
943
- zoom: 1,
944
- WebkitLineClamp: 1,
945
- // SVG-related properties
946
- fillOpacity: 1,
947
- floodOpacity: 1,
948
- stopOpacity: 1,
949
- strokeDasharray: 1,
950
- strokeDashoffset: 1,
951
- strokeMiterlimit: 1,
952
- strokeOpacity: 1,
953
- strokeWidth: 1
954
- }, Mt = `You have illegal escape sequence in your template literal, most likely inside content's property value.
955
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
956
- You can read more about this here:
957
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, gi = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", bi = /[A-Z]|^ms/g, Rn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Vt = function(e) {
958
- return e.charCodeAt(1) === 45;
959
- }, kt = function(e) {
960
- return e != null && typeof e != "boolean";
961
- }, ot = /* @__PURE__ */ Yr(function(t) {
962
- return Vt(t) ? t : t.replace(bi, "-$&").toLowerCase();
963
- }), Qe = function(e, r) {
964
- switch (e) {
965
- case "animation":
966
- case "animationName":
967
- if (typeof r == "string")
968
- return r.replace(Rn, function(i, n, a) {
969
- return ne = {
970
- name: n,
971
- styles: a,
972
- next: ne
973
- }, n;
974
- });
975
- }
976
- return di[e] !== 1 && !Vt(e) && typeof r == "number" && r !== 0 ? r + "px" : r;
977
- };
978
- if (process.env.NODE_ENV !== "production") {
979
- var pi = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, fi = ["normal", "none", "initial", "inherit", "unset"], mi = Qe, Ii = /^-ms-/, hi = /-(.)/g, Yt = {};
980
- Qe = function(e, r) {
981
- if (e === "content" && (typeof r != "string" || fi.indexOf(r) === -1 && !pi.test(r) && (r.charAt(0) !== r.charAt(r.length - 1) || r.charAt(0) !== '"' && r.charAt(0) !== "'")))
982
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + r + "\"'`");
983
- var i = mi(e, r);
984
- return i !== "" && !Vt(e) && e.indexOf("-") !== -1 && Yt[e] === void 0 && (Yt[e] = !0, console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + e.replace(Ii, "ms-").replace(hi, function(n, a) {
985
- return a.toUpperCase();
986
- }) + "?")), i;
987
- };
988
- }
989
- var Wn = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
990
- function Re(t, e, r) {
991
- if (r == null)
992
- return "";
993
- if (r.__emotion_styles !== void 0) {
994
- if (process.env.NODE_ENV !== "production" && r.toString() === "NO_COMPONENT_SELECTOR")
995
- throw new Error(Wn);
996
- return r;
997
- }
998
- switch (typeof r) {
999
- case "boolean":
1000
- return "";
1001
- case "object": {
1002
- if (r.anim === 1)
1003
- return ne = {
1004
- name: r.name,
1005
- styles: r.styles,
1006
- next: ne
1007
- }, r.name;
1008
- if (r.styles !== void 0) {
1009
- var i = r.next;
1010
- if (i !== void 0)
1011
- for (; i !== void 0; )
1012
- ne = {
1013
- name: i.name,
1014
- styles: i.styles,
1015
- next: ne
1016
- }, i = i.next;
1017
- var n = r.styles + ";";
1018
- return process.env.NODE_ENV !== "production" && r.map !== void 0 && (n += r.map), n;
1019
- }
1020
- return Ci(t, e, r);
1021
- }
1022
- case "function": {
1023
- if (t !== void 0) {
1024
- var a = ne, o = r(t);
1025
- return ne = a, Re(t, e, o);
1026
- } else
1027
- process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
1028
- break;
1029
- }
1030
- case "string":
1031
- if (process.env.NODE_ENV !== "production") {
1032
- var u = [], s = r.replace(Rn, function(l, d, g) {
1033
- var v = "animation" + u.length;
1034
- return u.push("const " + v + " = keyframes`" + g.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + v + "}";
1035
- });
1036
- u.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(u, ["`" + s + "`"]).join(`
1037
- `) + `
1038
-
1039
- You should wrap it with \`css\` like this:
1040
-
1041
- ` + ("css`" + s + "`"));
1042
- }
1043
- break;
1044
- }
1045
- if (e == null)
1046
- return r;
1047
- var c = e[r];
1048
- return c !== void 0 ? c : r;
1049
- }
1050
- function Ci(t, e, r) {
1051
- var i = "";
1052
- if (Array.isArray(r))
1053
- for (var n = 0; n < r.length; n++)
1054
- i += Re(t, e, r[n]) + ";";
1055
- else
1056
- for (var a in r) {
1057
- var o = r[a];
1058
- if (typeof o != "object")
1059
- e != null && e[o] !== void 0 ? i += a + "{" + e[o] + "}" : kt(o) && (i += ot(a) + ":" + Qe(a, o) + ";");
1060
- else {
1061
- if (a === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
1062
- throw new Error(Wn);
1063
- if (Array.isArray(o) && typeof o[0] == "string" && (e == null || e[o[0]] === void 0))
1064
- for (var u = 0; u < o.length; u++)
1065
- kt(o[u]) && (i += ot(a) + ":" + Qe(a, o[u]) + ";");
1066
- else {
1067
- var s = Re(t, e, o);
1068
- switch (a) {
1069
- case "animation":
1070
- case "animationName": {
1071
- i += ot(a) + ":" + s + ";";
1072
- break;
1073
- }
1074
- default:
1075
- process.env.NODE_ENV !== "production" && a === "undefined" && console.error(gi), i += a + "{" + s + "}";
1076
- }
1077
- }
1078
- }
1079
- }
1080
- return i;
1081
- }
1082
- var zt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Tn;
1083
- process.env.NODE_ENV !== "production" && (Tn = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
1084
- var ne, We = function(e, r, i) {
1085
- if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1086
- return e[0];
1087
- var n = !0, a = "";
1088
- ne = void 0;
1089
- var o = e[0];
1090
- o == null || o.raw === void 0 ? (n = !1, a += Re(i, r, o)) : (process.env.NODE_ENV !== "production" && o[0] === void 0 && console.error(Mt), a += o[0]);
1091
- for (var u = 1; u < e.length; u++)
1092
- a += Re(i, r, e[u]), n && (process.env.NODE_ENV !== "production" && o[u] === void 0 && console.error(Mt), a += o[u]);
1093
- var s;
1094
- process.env.NODE_ENV !== "production" && (a = a.replace(Tn, function(g) {
1095
- return s = g, "";
1096
- })), zt.lastIndex = 0;
1097
- for (var c = "", l; (l = zt.exec(a)) !== null; )
1098
- c += "-" + // $FlowFixMe we know it's not null
1099
- l[1];
1100
- var d = li(a) + c;
1101
- return process.env.NODE_ENV !== "production" ? {
1102
- name: d,
1103
- styles: a,
1104
- map: s,
1105
- next: ne,
1106
- toString: function() {
1107
- 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).";
1108
- }
1109
- } : {
1110
- name: d,
1111
- styles: a,
1112
- next: ne
1113
- };
1114
- }, Ai = function(e) {
1115
- return e();
1116
- }, Zn = B["useInsertionEffect"] ? B["useInsertionEffect"] : !1, Xn = Zn || Ai, Jt = Zn || vn, St = {}.hasOwnProperty, Bt = /* @__PURE__ */ Ct(
1117
- // we're doing this to avoid preconstruct's dead code elimination in this one case
1118
- // because this module is primarily intended for the browser and node
1119
- // but it's also required in react native and similar environments sometimes
1120
- // and we could have a special build just for that
1121
- // but this is much easier and the native packages
1122
- // might use a different theme context in the future anyway
1123
- typeof HTMLElement < "u" ? /* @__PURE__ */ ri({
1124
- key: "css"
1125
- }) : null
1126
- );
1127
- process.env.NODE_ENV !== "production" && (Bt.displayName = "EmotionCacheContext");
1128
- Bt.Provider;
1129
- var Nt = function(e) {
1130
- return /* @__PURE__ */ Ir(function(r, i) {
1131
- var n = Te(Bt);
1132
- return e(r, n, i);
1133
- });
1134
- }, rt = /* @__PURE__ */ Ct({});
1135
- process.env.NODE_ENV !== "production" && (rt.displayName = "EmotionThemeContext");
1136
- var jt = function(e) {
1137
- var r = e.split(".");
1138
- return r[r.length - 1];
1139
- }, yi = function(e) {
1140
- var r = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);
1141
- if (r || (r = /^([A-Za-z0-9$.]+)@/.exec(e), r))
1142
- return jt(r[1]);
1143
- }, xi = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToString"]), Ei = function(e) {
1144
- return e.replace(/\$/g, "-");
1145
- }, Gi = function(e) {
1146
- if (e)
1147
- for (var r = e.split(`
1148
- `), i = 0; i < r.length; i++) {
1149
- var n = yi(r[i]);
1150
- if (n) {
1151
- if (xi.has(n))
1152
- break;
1153
- if (/^[A-Z]/.test(n))
1154
- return Ei(n);
1155
- }
1156
- }
1157
- }, mt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", It = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Fi = function(e, r) {
1158
- if (process.env.NODE_ENV !== "production" && typeof r.css == "string" && // check if there is a css declaration
1159
- r.css.indexOf(":") !== -1)
1160
- throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + r.css + "`");
1161
- var i = {};
1162
- for (var n in r)
1163
- St.call(r, n) && (i[n] = r[n]);
1164
- if (i[mt] = e, process.env.NODE_ENV !== "production" && r.css && (typeof r.css != "object" || typeof r.css.name != "string" || r.css.name.indexOf("-") === -1)) {
1165
- var a = Gi(new Error().stack);
1166
- a && (i[It] = a);
1167
- }
1168
- return i;
1169
- }, Vi = function(e) {
1170
- var r = e.cache, i = e.serialized, n = e.isStringTag;
1171
- return Gt(r, i, n), Xn(function() {
1172
- return Ft(r, i, n);
1173
- }), null;
1174
- }, Pn = /* @__PURE__ */ Nt(function(t, e, r) {
1175
- var i = t.css;
1176
- typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1177
- var n = t[mt], a = [i], o = "";
1178
- typeof t.className == "string" ? o = wn(e.registered, a, t.className) : t.className != null && (o = t.className + " ");
1179
- var u = We(a, void 0, Te(rt));
1180
- if (process.env.NODE_ENV !== "production" && u.name.indexOf("-") === -1) {
1181
- var s = t[It];
1182
- s && (u = We([u, "label:" + s + ";"]));
1183
- }
1184
- o += e.key + "-" + u.name;
1185
- var c = {};
1186
- for (var l in t)
1187
- St.call(t, l) && l !== "css" && l !== mt && (process.env.NODE_ENV === "production" || l !== It) && (c[l] = t[l]);
1188
- return c.ref = r, c.className = o, /* @__PURE__ */ me(Be, null, /* @__PURE__ */ me(Vi, {
1189
- cache: e,
1190
- serialized: u,
1191
- isStringTag: typeof n == "string"
1192
- }), /* @__PURE__ */ me(n, c));
1193
- });
1194
- process.env.NODE_ENV !== "production" && (Pn.displayName = "EmotionCssPropInternal");
1195
- var Si = {
1196
- name: "@emotion/react",
1197
- version: "11.10.6",
1198
- main: "dist/emotion-react.cjs.js",
1199
- module: "dist/emotion-react.esm.js",
1200
- browser: {
1201
- "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
1202
- },
1203
- exports: {
1204
- ".": {
1205
- module: {
1206
- worker: "./dist/emotion-react.worker.esm.js",
1207
- browser: "./dist/emotion-react.browser.esm.js",
1208
- default: "./dist/emotion-react.esm.js"
1209
- },
1210
- default: "./dist/emotion-react.cjs.js"
1211
- },
1212
- "./jsx-runtime": {
1213
- module: {
1214
- worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
1215
- browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
1216
- default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
1217
- },
1218
- default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
1219
- },
1220
- "./_isolated-hnrs": {
1221
- module: {
1222
- worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
1223
- browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
1224
- default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
1225
- },
1226
- default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
1227
- },
1228
- "./jsx-dev-runtime": {
1229
- module: {
1230
- worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
1231
- browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
1232
- default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
1233
- },
1234
- default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
1235
- },
1236
- "./package.json": "./package.json",
1237
- "./types/css-prop": "./types/css-prop.d.ts",
1238
- "./macro": "./macro.js"
1239
- },
1240
- types: "types/index.d.ts",
1241
- files: [
1242
- "src",
1243
- "dist",
1244
- "jsx-runtime",
1245
- "jsx-dev-runtime",
1246
- "_isolated-hnrs",
1247
- "types/*.d.ts",
1248
- "macro.js",
1249
- "macro.d.ts",
1250
- "macro.js.flow"
1251
- ],
1252
- sideEffects: !1,
1253
- author: "Emotion Contributors",
1254
- license: "MIT",
1255
- scripts: {
1256
- "test:typescript": "dtslint types"
1257
- },
1258
- dependencies: {
1259
- "@babel/runtime": "^7.18.3",
1260
- "@emotion/babel-plugin": "^11.10.6",
1261
- "@emotion/cache": "^11.10.5",
1262
- "@emotion/serialize": "^1.1.1",
1263
- "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
1264
- "@emotion/utils": "^1.2.0",
1265
- "@emotion/weak-memoize": "^0.3.0",
1266
- "hoist-non-react-statics": "^3.3.1"
1267
- },
1268
- peerDependencies: {
1269
- react: ">=16.8.0"
1270
- },
1271
- peerDependenciesMeta: {
1272
- "@types/react": {
1273
- optional: !0
1274
- }
1275
- },
1276
- devDependencies: {
1277
- "@definitelytyped/dtslint": "0.0.112",
1278
- "@emotion/css": "11.10.6",
1279
- "@emotion/css-prettifier": "1.1.1",
1280
- "@emotion/server": "11.10.0",
1281
- "@emotion/styled": "11.10.6",
1282
- "html-tag-names": "^1.1.2",
1283
- react: "16.14.0",
1284
- "svg-tag-names": "^1.1.1",
1285
- typescript: "^4.5.5"
1286
- },
1287
- repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
1288
- publishConfig: {
1289
- access: "public"
1290
- },
1291
- "umd:main": "dist/emotion-react.umd.min.js",
1292
- preconstruct: {
1293
- entrypoints: [
1294
- "./index.js",
1295
- "./jsx-runtime.js",
1296
- "./jsx-dev-runtime.js",
1297
- "./_isolated-hnrs.js"
1298
- ],
1299
- umdName: "emotionReact",
1300
- exports: {
1301
- envConditions: [
1302
- "browser",
1303
- "worker"
1304
- ],
1305
- extra: {
1306
- "./types/css-prop": "./types/css-prop.d.ts",
1307
- "./macro": "./macro.js"
1308
- }
1309
- }
1310
- }
1311
- }, F = function(e, r) {
1312
- var i = arguments;
1313
- if (r == null || !St.call(r, "css"))
1314
- return me.apply(void 0, i);
1315
- var n = i.length, a = new Array(n);
1316
- a[0] = Pn, a[1] = Fi(e, r);
1317
- for (var o = 2; o < n; o++)
1318
- a[o] = i[o];
1319
- return me.apply(null, a);
1320
- }, Ut = !1, Bi = /* @__PURE__ */ Nt(function(t, e) {
1321
- process.env.NODE_ENV !== "production" && !Ut && // check for className as well since the user is
1322
- // probably using the custom createElement which
1323
- // means it will be turned into a className prop
1324
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
1325
- (t.className || t.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), Ut = !0);
1326
- var r = t.styles, i = We([r], void 0, Te(rt)), n = oe();
1327
- return Jt(function() {
1328
- var a = e.key + "-global", o = new e.sheet.constructor({
1329
- key: a,
1330
- nonce: e.sheet.nonce,
1331
- container: e.sheet.container,
1332
- speedy: e.sheet.isSpeedy
1333
- }), u = !1, s = document.querySelector('style[data-emotion="' + a + " " + i.name + '"]');
1334
- return e.sheet.tags.length && (o.before = e.sheet.tags[0]), s !== null && (u = !0, s.setAttribute("data-emotion", a), o.hydrate([s])), n.current = [o, u], function() {
1335
- o.flush();
1336
- };
1337
- }, [e]), Jt(function() {
1338
- var a = n.current, o = a[0], u = a[1];
1339
- if (u) {
1340
- a[1] = !1;
1341
- return;
1342
- }
1343
- if (i.next !== void 0 && Ft(e, i.next, !0), o.tags.length) {
1344
- var s = o.tags[o.tags.length - 1].nextElementSibling;
1345
- o.before = s, o.flush();
1346
- }
1347
- e.insert("", i, o, !1);
1348
- }, [e, i.name]), null;
1349
- });
1350
- process.env.NODE_ENV !== "production" && (Bi.displayName = "EmotionGlobal");
1351
- function wt() {
1352
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
1353
- e[r] = arguments[r];
1354
- return We(e);
1355
- }
1356
- var Ni = function() {
1357
- var e = wt.apply(void 0, arguments), r = "animation-" + e.name;
1358
- return {
1359
- name: r,
1360
- styles: "@keyframes " + r + "{" + e.styles + "}",
1361
- anim: 1,
1362
- toString: function() {
1363
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1364
- }
1365
- };
1366
- }, wi = function t(e) {
1367
- for (var r = e.length, i = 0, n = ""; i < r; i++) {
1368
- var a = e[i];
1369
- if (a != null) {
1370
- var o = void 0;
1371
- switch (typeof a) {
1372
- case "boolean":
1373
- break;
1374
- case "object": {
1375
- if (Array.isArray(a))
1376
- o = t(a);
1377
- else {
1378
- process.env.NODE_ENV !== "production" && a.styles !== void 0 && a.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."), o = "";
1379
- for (var u in a)
1380
- a[u] && u && (o && (o += " "), o += u);
1381
- }
1382
- break;
1383
- }
1384
- default:
1385
- o = a;
1386
- }
1387
- o && (n && (n += " "), n += o);
1388
- }
1389
- }
1390
- return n;
1391
- };
1392
- function Ri(t, e, r) {
1393
- var i = [], n = wn(t, i, r);
1394
- return i.length < 2 ? r : n + e(i);
1395
- }
1396
- var Wi = function(e) {
1397
- var r = e.cache, i = e.serializedArr;
1398
- return Xn(function() {
1399
- for (var n = 0; n < i.length; n++)
1400
- Ft(r, i[n], !1);
1401
- }), null;
1402
- }, Ti = /* @__PURE__ */ Nt(function(t, e) {
1403
- var r = !1, i = [], n = function() {
1404
- if (r && process.env.NODE_ENV !== "production")
1405
- throw new Error("css can only be used during render");
1406
- for (var c = arguments.length, l = new Array(c), d = 0; d < c; d++)
1407
- l[d] = arguments[d];
1408
- var g = We(l, e.registered);
1409
- return i.push(g), Gt(e, g, !1), e.key + "-" + g.name;
1410
- }, a = function() {
1411
- if (r && process.env.NODE_ENV !== "production")
1412
- throw new Error("cx can only be used during render");
1413
- for (var c = arguments.length, l = new Array(c), d = 0; d < c; d++)
1414
- l[d] = arguments[d];
1415
- return Ri(e.registered, n, wi(l));
1416
- }, o = {
1417
- css: n,
1418
- cx: a,
1419
- theme: Te(rt)
1420
- }, u = t.children(o);
1421
- return r = !0, /* @__PURE__ */ me(Be, null, /* @__PURE__ */ me(Wi, {
1422
- cache: e,
1423
- serializedArr: i
1424
- }), u);
1425
- });
1426
- process.env.NODE_ENV !== "production" && (Ti.displayName = "EmotionClassNames");
1427
- if (process.env.NODE_ENV !== "production") {
1428
- var Qt = !0, Zi = typeof jest < "u" || typeof vi < "u";
1429
- if (Qt && !Zi) {
1430
- var _t = (
1431
- // $FlowIgnore
1432
- typeof globalThis < "u" ? globalThis : Qt ? window : global
1433
- ), $t = "__EMOTION_REACT_" + Si.version.split(".")[0] + "__";
1434
- _t[$t] && console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."), _t[$t] = !0;
1435
- }
1436
- }
1437
- function Xi(t) {
1438
- if (Array.isArray(t))
1439
- return t;
1440
- }
1441
- function Pi(t, e) {
1442
- var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1443
- if (r != null) {
1444
- var i, n, a, o, u = [], s = !0, c = !1;
1445
- try {
1446
- if (a = (r = r.call(t)).next, e === 0) {
1447
- if (Object(r) !== r)
1448
- return;
1449
- s = !1;
1450
- } else
1451
- for (; !(s = (i = a.call(r)).done) && (u.push(i.value), u.length !== e); s = !0)
1452
- ;
1453
- } catch (l) {
1454
- c = !0, n = l;
1455
- } finally {
1456
- try {
1457
- if (!s && r.return != null && (o = r.return(), Object(o) !== o))
1458
- return;
1459
- } finally {
1460
- if (c)
1461
- throw n;
1462
- }
1463
- }
1464
- return u;
1465
- }
1466
- }
1467
- function Di() {
1468
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1469
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1470
- }
1471
- function ge(t, e) {
1472
- return Xi(t) || Pi(t, e) || In(t, e) || Di();
1473
- }
1474
- function Li(t, e) {
1475
- if (t == null)
1476
- return {};
1477
- var r = {}, i = Object.keys(t), n, a;
1478
- for (a = 0; a < i.length; a++)
1479
- n = i[a], !(e.indexOf(n) >= 0) && (r[n] = t[n]);
1480
- return r;
1481
- }
1482
- function be(t, e) {
1483
- if (t == null)
1484
- return {};
1485
- var r = Li(t, e), i, n;
1486
- if (Object.getOwnPropertySymbols) {
1487
- var a = Object.getOwnPropertySymbols(t);
1488
- for (n = 0; n < a.length; n++)
1489
- i = a[n], !(e.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(t, i) && (r[i] = t[i]);
1490
- }
1491
- return r;
1492
- }
1493
- function Oi(t, e) {
1494
- return e || (e = t.slice(0)), Object.freeze(Object.defineProperties(t, {
1495
- raw: {
1496
- value: Object.freeze(e)
1497
- }
1498
- }));
1499
- }
1500
- function Hi(t) {
1501
- return { ...t, top: t.y, left: t.x, right: t.x + t.width, bottom: t.y + t.height };
1502
- }
1503
- const Mi = ["top", "right", "bottom", "left"];
1504
- Mi.reduce((t, e) => t.concat(e, e + "-start", e + "-end"), []);
1505
- function ce(t) {
1506
- var e;
1507
- return ((e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
1508
- }
1509
- function Dn(t) {
1510
- return ce(t).getComputedStyle(t);
1511
- }
1512
- function Ln(t) {
1513
- return t instanceof ce(t).Node;
1514
- }
1515
- function On(t) {
1516
- return Ln(t) ? (t.nodeName || "").toLowerCase() : "";
1517
- }
1518
- let Oe;
1519
- function ki() {
1520
- if (Oe)
1521
- return Oe;
1522
- const t = navigator.userAgentData;
1523
- return t && Array.isArray(t.brands) ? (Oe = t.brands.map((e) => e.brand + "/" + e.version).join(" "), Oe) : navigator.userAgent;
1524
- }
1525
- function Rt(t) {
1526
- return t instanceof ce(t).HTMLElement;
1527
- }
1528
- function ye(t) {
1529
- return t instanceof ce(t).Element;
1530
- }
1531
- function Kt(t) {
1532
- return typeof ShadowRoot > "u" ? !1 : t instanceof ce(t).ShadowRoot || t instanceof ShadowRoot;
1533
- }
1534
- function Hn(t) {
1535
- const { overflow: e, overflowX: r, overflowY: i, display: n } = Dn(t);
1536
- return /auto|scroll|overlay|hidden|clip/.test(e + i + r) && !["inline", "contents"].includes(n);
1537
- }
1538
- function Yi() {
1539
- return /^((?!chrome|android).)*safari/i.test(ki());
1540
- }
1541
- function zi(t) {
1542
- return ["html", "body", "#document"].includes(On(t));
1543
- }
1544
- const _e = Math.round;
1545
- function Ji(t) {
1546
- const e = Dn(t);
1547
- let r = parseFloat(e.width), i = parseFloat(e.height);
1548
- const n = Rt(t), a = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i, u = _e(r) !== a || _e(i) !== o;
1549
- return u && (r = a, i = o), { width: r, height: i, fallback: u };
1550
- }
1551
- function Mn(t) {
1552
- return ye(t) ? t : t.contextElement;
1553
- }
1554
- const kn = { x: 1, y: 1 };
1555
- function st(t) {
1556
- const e = Mn(t);
1557
- if (!Rt(e))
1558
- return kn;
1559
- const r = e.getBoundingClientRect(), { width: i, height: n, fallback: a } = Ji(e);
1560
- let o = (a ? _e(r.width) : r.width) / i, u = (a ? _e(r.height) : r.height) / n;
1561
- return o && Number.isFinite(o) || (o = 1), u && Number.isFinite(u) || (u = 1), { x: o, y: u };
1562
- }
1563
- function qt(t, e, r, i) {
1564
- var n, a;
1565
- e === void 0 && (e = !1), r === void 0 && (r = !1);
1566
- const o = t.getBoundingClientRect(), u = Mn(t);
1567
- let s = kn;
1568
- e && (i ? ye(i) && (s = st(i)) : s = st(t));
1569
- const c = u ? ce(u) : window, l = Yi() && r;
1570
- let d = (o.left + (l && ((n = c.visualViewport) == null ? void 0 : n.offsetLeft) || 0)) / s.x, g = (o.top + (l && ((a = c.visualViewport) == null ? void 0 : a.offsetTop) || 0)) / s.y, v = o.width / s.x, p = o.height / s.y;
1571
- if (u) {
1572
- const m = ce(u), I = i && ye(i) ? ce(i) : i;
1573
- let f = m.frameElement;
1574
- for (; f && i && I !== m; ) {
1575
- const A = st(f), h = f.getBoundingClientRect(), C = getComputedStyle(f);
1576
- h.x += (f.clientLeft + parseFloat(C.paddingLeft)) * A.x, h.y += (f.clientTop + parseFloat(C.paddingTop)) * A.y, d *= A.x, g *= A.y, v *= A.x, p *= A.y, d += h.x, g += h.y, f = ce(f).frameElement;
1577
- }
1578
- }
1579
- return Hi({ width: v, height: p, x: d, y: g });
1580
- }
1581
- function ji(t) {
1582
- return ((Ln(t) ? t.ownerDocument : t.document) || window.document).documentElement;
1583
- }
1584
- function Ui(t) {
1585
- if (On(t) === "html")
1586
- return t;
1587
- const e = t.assignedSlot || t.parentNode || Kt(t) && t.host || ji(t);
1588
- return Kt(e) ? e.host : e;
1589
- }
1590
- function Yn(t) {
1591
- const e = Ui(t);
1592
- return zi(e) ? e.ownerDocument.body : Rt(e) && Hn(e) ? e : Yn(e);
1593
- }
1594
- function je(t, e) {
1595
- var r;
1596
- e === void 0 && (e = []);
1597
- const i = Yn(t), n = i === ((r = t.ownerDocument) == null ? void 0 : r.body), a = ce(i);
1598
- return n ? e.concat(a, a.visualViewport || [], Hn(i) ? i : []) : e.concat(i, je(i));
1599
- }
1600
- function Qi(t, e, r, i) {
1601
- i === void 0 && (i = {});
1602
- const { ancestorScroll: n = !0, ancestorResize: a = !0, elementResize: o = !0, animationFrame: u = !1 } = i, s = n && !u, c = s || a ? [...ye(t) ? je(t) : t.contextElement ? je(t.contextElement) : [], ...je(e)] : [];
1603
- c.forEach((v) => {
1604
- s && v.addEventListener("scroll", r, { passive: !0 }), a && v.addEventListener("resize", r);
1605
- });
1606
- let l, d = null;
1607
- o && (d = new ResizeObserver(() => {
1608
- r();
1609
- }), ye(t) && !u && d.observe(t), ye(t) || !t.contextElement || u || d.observe(t.contextElement), d.observe(e));
1610
- let g = u ? qt(t) : null;
1611
- return u && function v() {
1612
- const p = qt(t);
1613
- !g || p.x === g.x && p.y === g.y && p.width === g.width && p.height === g.height || r(), g = p, l = requestAnimationFrame(v);
1614
- }(), r(), () => {
1615
- var v;
1616
- c.forEach((p) => {
1617
- s && p.removeEventListener("scroll", r), a && p.removeEventListener("resize", r);
1618
- }), (v = d) == null || v.disconnect(), d = null, u && cancelAnimationFrame(l);
1619
- };
1620
- }
1621
- var vt = vn, _i = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], $e = function() {
1622
- };
1623
- function $i(t, e) {
1624
- return e ? e[0] === "-" ? t + e : t + "__" + e : t;
1625
- }
1626
- function Ki(t, e) {
1627
- for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), n = 2; n < r; n++)
1628
- i[n - 2] = arguments[n];
1629
- var a = [].concat(i);
1630
- if (e && t)
1631
- for (var o in e)
1632
- e.hasOwnProperty(o) && e[o] && a.push("".concat($i(t, o)));
1633
- return a.filter(function(u) {
1634
- return u;
1635
- }).map(function(u) {
1636
- return String(u).trim();
1637
- }).join(" ");
1638
- }
1639
- var en = function(e) {
1640
- return oa(e) ? e.filter(Boolean) : hr(e) === "object" && e !== null ? [e] : [];
1641
- }, zn = function(e) {
1642
- e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
1643
- var r = be(e, _i);
1644
- return G({}, r);
1645
- }, Z = function(e, r, i) {
1646
- var n = e.cx, a = e.getStyles, o = e.getClassNames, u = e.className;
1647
- return {
1648
- css: a(r, e),
1649
- className: n(i ?? {}, o(r, e), u)
1650
- };
1651
- };
1652
- function Co(t, e, r) {
1653
- if (r) {
1654
- var i = r(t, e);
1655
- if (typeof i == "string")
1656
- return i;
1657
- }
1658
- return t;
1659
- }
1660
- function it(t) {
1661
- return [document.documentElement, document.body, window].indexOf(t) > -1;
1662
- }
1663
- function qi(t) {
1664
- return it(t) ? window.innerHeight : t.clientHeight;
1665
- }
1666
- function Jn(t) {
1667
- return it(t) ? window.pageYOffset : t.scrollTop;
1668
- }
1669
- function Ke(t, e) {
1670
- if (it(t)) {
1671
- window.scrollTo(0, e);
1672
- return;
1673
- }
1674
- t.scrollTop = e;
1675
- }
1676
- function ea(t) {
1677
- var e = getComputedStyle(t), r = e.position === "absolute", i = /(auto|scroll)/;
1678
- if (e.position === "fixed")
1679
- return document.documentElement;
1680
- for (var n = t; n = n.parentElement; )
1681
- if (e = getComputedStyle(n), !(r && e.position === "static") && i.test(e.overflow + e.overflowY + e.overflowX))
1682
- return n;
1683
- return document.documentElement;
1684
- }
1685
- function ta(t, e, r, i) {
1686
- return r * ((t = t / i - 1) * t * t + 1) + e;
1687
- }
1688
- function He(t, e) {
1689
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 200, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : $e, n = Jn(t), a = e - n, o = 10, u = 0;
1690
- function s() {
1691
- u += o;
1692
- var c = ta(u, n, a, r);
1693
- Ke(t, c), u < r ? window.requestAnimationFrame(s) : i(t);
1694
- }
1695
- s();
1696
- }
1697
- function tn(t, e) {
1698
- var r = t.getBoundingClientRect(), i = e.getBoundingClientRect(), n = e.offsetHeight / 3;
1699
- i.bottom + n > r.bottom ? Ke(t, Math.min(e.offsetTop + e.clientHeight - t.offsetHeight + n, t.scrollHeight)) : i.top - n < r.top && Ke(t, Math.max(e.offsetTop - n, 0));
1700
- }
1701
- function na(t) {
1702
- var e = t.getBoundingClientRect();
1703
- return {
1704
- bottom: e.bottom,
1705
- height: e.height,
1706
- left: e.left,
1707
- right: e.right,
1708
- top: e.top,
1709
- width: e.width
1710
- };
1711
- }
1712
- function nn() {
1713
- try {
1714
- return document.createEvent("TouchEvent"), !0;
1715
- } catch {
1716
- return !1;
1717
- }
1718
- }
1719
- function ra() {
1720
- try {
1721
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1722
- } catch {
1723
- return !1;
1724
- }
1725
- }
1726
- var jn = !1, ia = {
1727
- get passive() {
1728
- return jn = !0;
1729
- }
1730
- }, Me = typeof window < "u" ? window : {};
1731
- Me.addEventListener && Me.removeEventListener && (Me.addEventListener("p", $e, ia), Me.removeEventListener("p", $e, !1));
1732
- var aa = jn;
1733
- function ua(t) {
1734
- return t != null;
1735
- }
1736
- function oa(t) {
1737
- return Array.isArray(t);
1738
- }
1739
- function ke(t, e, r) {
1740
- return t ? e : r;
1741
- }
1742
- var sa = function(e) {
1743
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1744
- i[n - 1] = arguments[n];
1745
- var a = Object.entries(e).filter(function(o) {
1746
- var u = ge(o, 1), s = u[0];
1747
- return !i.includes(s);
1748
- });
1749
- return a.reduce(function(o, u) {
1750
- var s = ge(u, 2), c = s[0], l = s[1];
1751
- return o[c] = l, o;
1752
- }, {});
1753
- }, ca = ["children", "innerProps"], la = ["children", "innerProps"];
1754
- function da(t) {
1755
- var e = t.maxHeight, r = t.menuEl, i = t.minHeight, n = t.placement, a = t.shouldScroll, o = t.isFixedPosition, u = t.controlHeight, s = ea(r), c = {
1756
- placement: "bottom",
1757
- maxHeight: e
1758
- };
1759
- if (!r || !r.offsetParent)
1760
- return c;
1761
- var l = s.getBoundingClientRect(), d = l.height, g = r.getBoundingClientRect(), v = g.bottom, p = g.height, m = g.top, I = r.offsetParent.getBoundingClientRect(), f = I.top, A = o ? window.innerHeight : qi(s), h = Jn(s), C = parseInt(getComputedStyle(r).marginBottom, 10), b = parseInt(getComputedStyle(r).marginTop, 10), y = f - b, E = A - m, S = y + h, T = d - h - m, z = v - A + h + C, _ = h + m - b, H = 160;
1762
- switch (n) {
1763
- case "auto":
1764
- case "bottom":
1765
- if (E >= p)
1766
- return {
1767
- placement: "bottom",
1768
- maxHeight: e
1769
- };
1770
- if (T >= p && !o)
1771
- return a && He(s, z, H), {
1772
- placement: "bottom",
1773
- maxHeight: e
1774
- };
1775
- if (!o && T >= i || o && E >= i) {
1776
- a && He(s, z, H);
1777
- var $ = o ? E - C : T - C;
1778
- return {
1779
- placement: "bottom",
1780
- maxHeight: $
1781
- };
1782
- }
1783
- if (n === "auto" || o) {
1784
- var X = e, P = o ? y : S;
1785
- return P >= i && (X = Math.min(P - C - u, e)), {
1786
- placement: "top",
1787
- maxHeight: X
1788
- };
1789
- }
1790
- if (n === "bottom")
1791
- return a && Ke(s, z), {
1792
- placement: "bottom",
1793
- maxHeight: e
1794
- };
1795
- break;
1796
- case "top":
1797
- if (y >= p)
1798
- return {
1799
- placement: "top",
1800
- maxHeight: e
1801
- };
1802
- if (S >= p && !o)
1803
- return a && He(s, _, H), {
1804
- placement: "top",
1805
- maxHeight: e
1806
- };
1807
- if (!o && S >= i || o && y >= i) {
1808
- var j = e;
1809
- return (!o && S >= i || o && y >= i) && (j = o ? y - b : S - b), a && He(s, _, H), {
1810
- placement: "top",
1811
- maxHeight: j
1812
- };
1813
- }
1814
- return {
1815
- placement: "bottom",
1816
- maxHeight: e
1817
- };
1818
- default:
1819
- throw new Error('Invalid placement provided "'.concat(n, '".'));
1820
- }
1821
- return c;
1822
- }
1823
- function ga(t) {
1824
- var e = {
1825
- bottom: "top",
1826
- top: "bottom"
1827
- };
1828
- return t ? e[t] : "bottom";
1829
- }
1830
- var Un = function(e) {
1831
- return e === "auto" ? "bottom" : e;
1832
- }, ba = function(e, r) {
1833
- var i, n = e.placement, a = e.theme, o = a.borderRadius, u = a.spacing, s = a.colors;
1834
- return G((i = {
1835
- label: "menu"
1836
- }, Se(i, ga(n), "100%"), Se(i, "position", "absolute"), Se(i, "width", "100%"), Se(i, "zIndex", 1), i), r ? {} : {
1837
- backgroundColor: s.neutral0,
1838
- borderRadius: o,
1839
- boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
1840
- marginBottom: u.menuGutter,
1841
- marginTop: u.menuGutter
1842
- });
1843
- }, Qn = /* @__PURE__ */ Ct(null), pa = function(e) {
1844
- var r = e.children, i = e.minMenuHeight, n = e.maxMenuHeight, a = e.menuPlacement, o = e.menuPosition, u = e.menuShouldScrollIntoView, s = e.theme, c = Te(Qn) || {}, l = c.setPortalPlacement, d = oe(null), g = Ie(n), v = ge(g, 2), p = v[0], m = v[1], I = Ie(null), f = ge(I, 2), A = f[0], h = f[1], C = s.spacing.controlHeight;
1845
- return vt(function() {
1846
- var b = d.current;
1847
- if (b) {
1848
- var y = o === "fixed", E = u && !y, S = da({
1849
- maxHeight: n,
1850
- menuEl: b,
1851
- minHeight: i,
1852
- placement: a,
1853
- shouldScroll: E,
1854
- isFixedPosition: y,
1855
- controlHeight: C
1856
- });
1857
- m(S.maxHeight), h(S.placement), l == null || l(S.placement);
1858
- }
1859
- }, [n, a, o, u, i, l, C]), r({
1860
- ref: d,
1861
- placerProps: G(G({}, e), {}, {
1862
- placement: A || Un(a),
1863
- maxHeight: p
1864
- })
1865
- });
1866
- }, fa = function(e) {
1867
- var r = e.children, i = e.innerRef, n = e.innerProps;
1868
- return F("div", V({}, Z(e, "menu", {
1869
- menu: !0
1870
- }), {
1871
- ref: i
1872
- }, n), r);
1873
- }, ma = fa, Ia = function(e, r) {
1874
- var i = e.maxHeight, n = e.theme.spacing.baseUnit;
1875
- return G({
1876
- maxHeight: i,
1877
- overflowY: "auto",
1878
- position: "relative",
1879
- // required for offset[Height, Top] > keyboard scroll
1880
- WebkitOverflowScrolling: "touch"
1881
- }, r ? {} : {
1882
- paddingBottom: n,
1883
- paddingTop: n
1884
- });
1885
- }, va = function(e) {
1886
- var r = e.children, i = e.innerProps, n = e.innerRef, a = e.isMulti;
1887
- return F("div", V({}, Z(e, "menuList", {
1888
- "menu-list": !0,
1889
- "menu-list--is-multi": a
1890
- }), {
1891
- ref: n
1892
- }, i), r);
1893
- }, _n = function(e, r) {
1894
- var i = e.theme, n = i.spacing.baseUnit, a = i.colors;
1895
- return G({
1896
- textAlign: "center"
1897
- }, r ? {} : {
1898
- color: a.neutral40,
1899
- padding: "".concat(n * 2, "px ").concat(n * 3, "px")
1900
- });
1901
- }, ha = _n, Ca = _n, Aa = function(e) {
1902
- var r = e.children, i = r === void 0 ? "No options" : r, n = e.innerProps, a = be(e, ca);
1903
- return F("div", V({}, Z(G(G({}, a), {}, {
1904
- children: i,
1905
- innerProps: n
1906
- }), "noOptionsMessage", {
1907
- "menu-notice": !0,
1908
- "menu-notice--no-options": !0
1909
- }), n), i);
1910
- }, ya = function(e) {
1911
- var r = e.children, i = r === void 0 ? "Loading..." : r, n = e.innerProps, a = be(e, la);
1912
- return F("div", V({}, Z(G(G({}, a), {}, {
1913
- children: i,
1914
- innerProps: n
1915
- }), "loadingMessage", {
1916
- "menu-notice": !0,
1917
- "menu-notice--loading": !0
1918
- }), n), i);
1919
- }, xa = function(e) {
1920
- var r = e.rect, i = e.offset, n = e.position;
1921
- return {
1922
- left: r.left,
1923
- position: n,
1924
- top: i,
1925
- width: r.width,
1926
- zIndex: 1
1927
- };
1928
- }, Ea = function(e) {
1929
- var r = e.appendTo, i = e.children, n = e.controlElement, a = e.innerProps, o = e.menuPlacement, u = e.menuPosition, s = oe(null), c = oe(null), l = Ie(Un(o)), d = ge(l, 2), g = d[0], v = d[1], p = Ce(function() {
1930
- return {
1931
- setPortalPlacement: v
1932
- };
1933
- }, []), m = Ie(null), I = ge(m, 2), f = I[0], A = I[1], h = Y(function() {
1934
- if (n) {
1935
- var E = na(n), S = u === "fixed" ? 0 : window.pageYOffset, T = E[g] + S;
1936
- (T !== (f == null ? void 0 : f.offset) || E.left !== (f == null ? void 0 : f.rect.left) || E.width !== (f == null ? void 0 : f.rect.width)) && A({
1937
- offset: T,
1938
- rect: E
1939
- });
1940
- }
1941
- }, [n, u, g, f == null ? void 0 : f.offset, f == null ? void 0 : f.rect.left, f == null ? void 0 : f.rect.width]);
1942
- vt(function() {
1943
- h();
1944
- }, [h]);
1945
- var C = Y(function() {
1946
- typeof c.current == "function" && (c.current(), c.current = null), n && s.current && (c.current = Qi(n, s.current, h, {
1947
- elementResize: "ResizeObserver" in window
1948
- }));
1949
- }, [n, h]);
1950
- vt(function() {
1951
- C();
1952
- }, [C]);
1953
- var b = Y(function(E) {
1954
- s.current = E, C();
1955
- }, [C]);
1956
- if (!r && u !== "fixed" || !f)
1957
- return null;
1958
- var y = F("div", V({
1959
- ref: b
1960
- }, Z(G(G({}, e), {}, {
1961
- offset: f.offset,
1962
- position: u,
1963
- rect: f.rect
1964
- }), "menuPortal", {
1965
- "menu-portal": !0
1966
- }), a), i);
1967
- return F(Qn.Provider, {
1968
- value: p
1969
- }, r ? /* @__PURE__ */ Cr(y, r) : y);
1970
- }, Ga = function(e) {
1971
- var r = e.isDisabled, i = e.isRtl;
1972
- return {
1973
- label: "container",
1974
- direction: i ? "rtl" : void 0,
1975
- pointerEvents: r ? "none" : void 0,
1976
- // cancel mouse events when disabled
1977
- position: "relative"
1978
- };
1979
- }, Fa = function(e) {
1980
- var r = e.children, i = e.innerProps, n = e.isDisabled, a = e.isRtl;
1981
- return F("div", V({}, Z(e, "container", {
1982
- "--is-disabled": n,
1983
- "--is-rtl": a
1984
- }), i), r);
1985
- }, Va = function(e, r) {
1986
- var i = e.theme.spacing, n = e.isMulti, a = e.hasValue, o = e.selectProps.controlShouldRenderValue;
1987
- return G({
1988
- alignItems: "center",
1989
- display: n && a && o ? "flex" : "grid",
1990
- flex: 1,
1991
- flexWrap: "wrap",
1992
- WebkitOverflowScrolling: "touch",
1993
- position: "relative",
1994
- overflow: "hidden"
1995
- }, r ? {} : {
1996
- padding: "".concat(i.baseUnit / 2, "px ").concat(i.baseUnit * 2, "px")
1997
- });
1998
- }, Sa = function(e) {
1999
- var r = e.children, i = e.innerProps, n = e.isMulti, a = e.hasValue;
2000
- return F("div", V({}, Z(e, "valueContainer", {
2001
- "value-container": !0,
2002
- "value-container--is-multi": n,
2003
- "value-container--has-value": a
2004
- }), i), r);
2005
- }, Ba = function() {
2006
- return {
2007
- alignItems: "center",
2008
- alignSelf: "stretch",
2009
- display: "flex",
2010
- flexShrink: 0
2011
- };
2012
- }, Na = function(e) {
2013
- var r = e.children, i = e.innerProps;
2014
- return F("div", V({}, Z(e, "indicatorsContainer", {
2015
- indicators: !0
2016
- }), i), r);
2017
- }, rn, wa = ["size"], Ra = ["innerProps", "isRtl", "size"];
2018
- function Wa() {
2019
- 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).";
2020
- }
2021
- var Ta = process.env.NODE_ENV === "production" ? {
2022
- name: "8mmkcg",
2023
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"
2024
- } : {
2025
- name: "tj5bde-Svg",
2026
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
2027
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bG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cbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",
2028
- toString: Wa
2029
- }, $n = function(e) {
2030
- var r = e.size, i = be(e, wa);
2031
- return F("svg", V({
2032
- height: r,
2033
- width: r,
2034
- viewBox: "0 0 20 20",
2035
- "aria-hidden": "true",
2036
- focusable: "false",
2037
- css: Ta
2038
- }, i));
2039
- }, Wt = function(e) {
2040
- return F($n, V({
2041
- size: 20
2042
- }, e), F("path", {
2043
- 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"
2044
- }));
2045
- }, Kn = function(e) {
2046
- return F($n, V({
2047
- size: 20
2048
- }, e), F("path", {
2049
- 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"
2050
- }));
2051
- }, qn = function(e, r) {
2052
- var i = e.isFocused, n = e.theme, a = n.spacing.baseUnit, o = n.colors;
2053
- return G({
2054
- label: "indicatorContainer",
2055
- display: "flex",
2056
- transition: "color 150ms"
2057
- }, r ? {} : {
2058
- color: i ? o.neutral60 : o.neutral20,
2059
- padding: a * 2,
2060
- ":hover": {
2061
- color: i ? o.neutral80 : o.neutral40
2062
- }
2063
- });
2064
- }, Za = qn, Xa = function(e) {
2065
- var r = e.children, i = e.innerProps;
2066
- return F("div", V({}, Z(e, "dropdownIndicator", {
2067
- indicator: !0,
2068
- "dropdown-indicator": !0
2069
- }), i), r || F(Kn, null));
2070
- }, Pa = qn, Da = function(e) {
2071
- var r = e.children, i = e.innerProps;
2072
- return F("div", V({}, Z(e, "clearIndicator", {
2073
- indicator: !0,
2074
- "clear-indicator": !0
2075
- }), i), r || F(Wt, null));
2076
- }, La = function(e, r) {
2077
- var i = e.isDisabled, n = e.theme, a = n.spacing.baseUnit, o = n.colors;
2078
- return G({
2079
- label: "indicatorSeparator",
2080
- alignSelf: "stretch",
2081
- width: 1
2082
- }, r ? {} : {
2083
- backgroundColor: i ? o.neutral10 : o.neutral20,
2084
- marginBottom: a * 2,
2085
- marginTop: a * 2
2086
- });
2087
- }, Oa = function(e) {
2088
- var r = e.innerProps;
2089
- return F("span", V({}, r, Z(e, "indicatorSeparator", {
2090
- "indicator-separator": !0
2091
- })));
2092
- }, Ha = Ni(rn || (rn = Oi([`
2093
- 0%, 80%, 100% { opacity: 0; }
2094
- 40% { opacity: 1; }
2095
- `]))), Ma = function(e, r) {
2096
- var i = e.isFocused, n = e.size, a = e.theme, o = a.colors, u = a.spacing.baseUnit;
2097
- return G({
2098
- label: "loadingIndicator",
2099
- display: "flex",
2100
- transition: "color 150ms",
2101
- alignSelf: "center",
2102
- fontSize: n,
2103
- lineHeight: 1,
2104
- marginRight: n,
2105
- textAlign: "center",
2106
- verticalAlign: "middle"
2107
- }, r ? {} : {
2108
- color: i ? o.neutral60 : o.neutral20,
2109
- padding: u * 2
2110
- });
2111
- }, ct = function(e) {
2112
- var r = e.delay, i = e.offset;
2113
- return F("span", {
2114
- css: /* @__PURE__ */ wt({
2115
- animation: "".concat(Ha, " 1s ease-in-out ").concat(r, "ms infinite;"),
2116
- backgroundColor: "currentColor",
2117
- borderRadius: "1em",
2118
- display: "inline-block",
2119
- marginLeft: i ? "1em" : void 0,
2120
- height: "1em",
2121
- verticalAlign: "top",
2122
- width: "1em"
2123
- }, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLn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17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")
2124
- });
2125
- }, ka = function(e) {
2126
- var r = e.innerProps, i = e.isRtl, n = e.size, a = n === void 0 ? 4 : n, o = be(e, Ra);
2127
- return F("div", V({}, Z(G(G({}, o), {}, {
2128
- innerProps: r,
2129
- isRtl: i,
2130
- size: a
2131
- }), "loadingIndicator", {
2132
- indicator: !0,
2133
- "loading-indicator": !0
2134
- }), r), F(ct, {
2135
- delay: 0,
2136
- offset: i
2137
- }), F(ct, {
2138
- delay: 160,
2139
- offset: !0
2140
- }), F(ct, {
2141
- delay: 320,
2142
- offset: !i
2143
- }));
2144
- }, Ya = function(e, r) {
2145
- var i = e.isDisabled, n = e.isFocused, a = e.theme, o = a.colors, u = a.borderRadius, s = a.spacing;
2146
- return G({
2147
- label: "control",
2148
- alignItems: "center",
2149
- cursor: "default",
2150
- display: "flex",
2151
- flexWrap: "wrap",
2152
- justifyContent: "space-between",
2153
- minHeight: s.controlHeight,
2154
- outline: "0 !important",
2155
- position: "relative",
2156
- transition: "all 100ms"
2157
- }, r ? {} : {
2158
- backgroundColor: i ? o.neutral5 : o.neutral0,
2159
- borderColor: i ? o.neutral10 : n ? o.primary : o.neutral20,
2160
- borderRadius: u,
2161
- borderStyle: "solid",
2162
- borderWidth: 1,
2163
- boxShadow: n ? "0 0 0 1px ".concat(o.primary) : void 0,
2164
- "&:hover": {
2165
- borderColor: n ? o.primary : o.neutral30
2166
- }
2167
- });
2168
- }, za = function(e) {
2169
- var r = e.children, i = e.isDisabled, n = e.isFocused, a = e.innerRef, o = e.innerProps, u = e.menuIsOpen;
2170
- return F("div", V({
2171
- ref: a
2172
- }, Z(e, "control", {
2173
- control: !0,
2174
- "control--is-disabled": i,
2175
- "control--is-focused": n,
2176
- "control--menu-is-open": u
2177
- }), o), r);
2178
- }, Ja = za, ja = ["data"], Ua = function(e, r) {
2179
- var i = e.theme.spacing;
2180
- return r ? {} : {
2181
- paddingBottom: i.baseUnit * 2,
2182
- paddingTop: i.baseUnit * 2
2183
- };
2184
- }, Qa = function(e) {
2185
- var r = e.children, i = e.cx, n = e.getStyles, a = e.getClassNames, o = e.Heading, u = e.headingProps, s = e.innerProps, c = e.label, l = e.theme, d = e.selectProps;
2186
- return F("div", V({}, Z(e, "group", {
2187
- group: !0
2188
- }), s), F(o, V({}, u, {
2189
- selectProps: d,
2190
- theme: l,
2191
- getStyles: n,
2192
- getClassNames: a,
2193
- cx: i
2194
- }), c), F("div", null, r));
2195
- }, _a = function(e, r) {
2196
- var i = e.theme, n = i.colors, a = i.spacing;
2197
- return G({
2198
- label: "group",
2199
- cursor: "default",
2200
- display: "block"
2201
- }, r ? {} : {
2202
- color: n.neutral40,
2203
- fontSize: "75%",
2204
- fontWeight: 500,
2205
- marginBottom: "0.25em",
2206
- paddingLeft: a.baseUnit * 3,
2207
- paddingRight: a.baseUnit * 3,
2208
- textTransform: "uppercase"
2209
- });
2210
- }, $a = function(e) {
2211
- var r = zn(e);
2212
- r.data;
2213
- var i = be(r, ja);
2214
- return F("div", V({}, Z(e, "groupHeading", {
2215
- "group-heading": !0
2216
- }), i));
2217
- }, Ka = Qa, qa = ["innerRef", "isDisabled", "isHidden", "inputClassName"], eu = function(e, r) {
2218
- var i = e.isDisabled, n = e.value, a = e.theme, o = a.spacing, u = a.colors;
2219
- return G(G({
2220
- visibility: i ? "hidden" : "visible",
2221
- // force css to recompute when value change due to @emotion bug.
2222
- // We can remove it whenever the bug is fixed.
2223
- transform: n ? "translateZ(0)" : ""
2224
- }, tu), r ? {} : {
2225
- margin: o.baseUnit / 2,
2226
- paddingBottom: o.baseUnit / 2,
2227
- paddingTop: o.baseUnit / 2,
2228
- color: u.neutral80
2229
- });
2230
- }, er = {
2231
- gridArea: "1 / 2",
2232
- font: "inherit",
2233
- minWidth: "2px",
2234
- border: 0,
2235
- margin: 0,
2236
- outline: 0,
2237
- padding: 0
2238
- }, tu = {
2239
- flex: "1 1 auto",
2240
- display: "inline-grid",
2241
- gridArea: "1 / 1 / 2 / 3",
2242
- gridTemplateColumns: "0 min-content",
2243
- "&:after": G({
2244
- content: 'attr(data-value) " "',
2245
- visibility: "hidden",
2246
- whiteSpace: "pre"
2247
- }, er)
2248
- }, nu = function(e) {
2249
- return G({
2250
- label: "input",
2251
- color: "inherit",
2252
- background: 0,
2253
- opacity: e ? 0 : 1,
2254
- width: "100%"
2255
- }, er);
2256
- }, ru = function(e) {
2257
- var r = e.cx, i = e.value, n = zn(e), a = n.innerRef, o = n.isDisabled, u = n.isHidden, s = n.inputClassName, c = be(n, qa);
2258
- return F("div", V({}, Z(e, "input", {
2259
- "input-container": !0
2260
- }), {
2261
- "data-value": i || ""
2262
- }), F("input", V({
2263
- className: r({
2264
- input: !0
2265
- }, s),
2266
- ref: a,
2267
- style: nu(u),
2268
- disabled: o
2269
- }, c)));
2270
- }, iu = ru, au = function(e, r) {
2271
- var i = e.theme, n = i.spacing, a = i.borderRadius, o = i.colors;
2272
- return G({
2273
- label: "multiValue",
2274
- display: "flex",
2275
- minWidth: 0
2276
- }, r ? {} : {
2277
- backgroundColor: o.neutral10,
2278
- borderRadius: a / 2,
2279
- margin: n.baseUnit / 2
2280
- });
2281
- }, uu = function(e, r) {
2282
- var i = e.theme, n = i.borderRadius, a = i.colors, o = e.cropWithEllipsis;
2283
- return G({
2284
- overflow: "hidden",
2285
- textOverflow: o || o === void 0 ? "ellipsis" : void 0,
2286
- whiteSpace: "nowrap"
2287
- }, r ? {} : {
2288
- borderRadius: n / 2,
2289
- color: a.neutral80,
2290
- fontSize: "85%",
2291
- padding: 3,
2292
- paddingLeft: 6
2293
- });
2294
- }, ou = function(e, r) {
2295
- var i = e.theme, n = i.spacing, a = i.borderRadius, o = i.colors, u = e.isFocused;
2296
- return G({
2297
- alignItems: "center",
2298
- display: "flex"
2299
- }, r ? {} : {
2300
- borderRadius: a / 2,
2301
- backgroundColor: u ? o.dangerLight : void 0,
2302
- paddingLeft: n.baseUnit,
2303
- paddingRight: n.baseUnit,
2304
- ":hover": {
2305
- backgroundColor: o.dangerLight,
2306
- color: o.danger
2307
- }
2308
- });
2309
- }, tr = function(e) {
2310
- var r = e.children, i = e.innerProps;
2311
- return F("div", i, r);
2312
- }, su = tr, cu = tr;
2313
- function lu(t) {
2314
- var e = t.children, r = t.innerProps;
2315
- return F("div", V({
2316
- role: "button"
2317
- }, r), e || F(Wt, {
2318
- size: 14
2319
- }));
2320
- }
2321
- var du = function(e) {
2322
- var r = e.children, i = e.components, n = e.data, a = e.innerProps, o = e.isDisabled, u = e.removeProps, s = e.selectProps, c = i.Container, l = i.Label, d = i.Remove;
2323
- return F(c, {
2324
- data: n,
2325
- innerProps: G(G({}, Z(e, "multiValue", {
2326
- "multi-value": !0,
2327
- "multi-value--is-disabled": o
2328
- })), a),
2329
- selectProps: s
2330
- }, F(l, {
2331
- data: n,
2332
- innerProps: G({}, Z(e, "multiValueLabel", {
2333
- "multi-value__label": !0
2334
- })),
2335
- selectProps: s
2336
- }, r), F(d, {
2337
- data: n,
2338
- innerProps: G(G({}, Z(e, "multiValueRemove", {
2339
- "multi-value__remove": !0
2340
- })), {}, {
2341
- "aria-label": "Remove ".concat(r || "option")
2342
- }, u),
2343
- selectProps: s
2344
- }));
2345
- }, gu = du, bu = function(e, r) {
2346
- var i = e.isDisabled, n = e.isFocused, a = e.isSelected, o = e.theme, u = o.spacing, s = o.colors;
2347
- return G({
2348
- label: "option",
2349
- cursor: "default",
2350
- display: "block",
2351
- fontSize: "inherit",
2352
- width: "100%",
2353
- userSelect: "none",
2354
- WebkitTapHighlightColor: "rgba(0, 0, 0, 0)"
2355
- }, r ? {} : {
2356
- backgroundColor: a ? s.primary : n ? s.primary25 : "transparent",
2357
- color: i ? s.neutral20 : a ? s.neutral0 : "inherit",
2358
- padding: "".concat(u.baseUnit * 2, "px ").concat(u.baseUnit * 3, "px"),
2359
- // provide some affordance on touch devices
2360
- ":active": {
2361
- backgroundColor: i ? void 0 : a ? s.primary : s.primary50
2362
- }
2363
- });
2364
- }, pu = function(e) {
2365
- var r = e.children, i = e.isDisabled, n = e.isFocused, a = e.isSelected, o = e.innerRef, u = e.innerProps;
2366
- return F("div", V({}, Z(e, "option", {
2367
- option: !0,
2368
- "option--is-disabled": i,
2369
- "option--is-focused": n,
2370
- "option--is-selected": a
2371
- }), {
2372
- ref: o,
2373
- "aria-disabled": i
2374
- }, u), r);
2375
- }, fu = pu, mu = function(e, r) {
2376
- var i = e.theme, n = i.spacing, a = i.colors;
2377
- return G({
2378
- label: "placeholder",
2379
- gridArea: "1 / 1 / 2 / 3"
2380
- }, r ? {} : {
2381
- color: a.neutral50,
2382
- marginLeft: n.baseUnit / 2,
2383
- marginRight: n.baseUnit / 2
2384
- });
2385
- }, Iu = function(e) {
2386
- var r = e.children, i = e.innerProps;
2387
- return F("div", V({}, Z(e, "placeholder", {
2388
- placeholder: !0
2389
- }), i), r);
2390
- }, vu = Iu, hu = function(e, r) {
2391
- var i = e.isDisabled, n = e.theme, a = n.spacing, o = n.colors;
2392
- return G({
2393
- label: "singleValue",
2394
- gridArea: "1 / 1 / 2 / 3",
2395
- maxWidth: "100%",
2396
- overflow: "hidden",
2397
- textOverflow: "ellipsis",
2398
- whiteSpace: "nowrap"
2399
- }, r ? {} : {
2400
- color: i ? o.neutral40 : o.neutral80,
2401
- marginLeft: a.baseUnit / 2,
2402
- marginRight: a.baseUnit / 2
2403
- });
2404
- }, Cu = function(e) {
2405
- var r = e.children, i = e.isDisabled, n = e.innerProps;
2406
- return F("div", V({}, Z(e, "singleValue", {
2407
- "single-value": !0,
2408
- "single-value--is-disabled": i
2409
- }), n), r);
2410
- }, Au = Cu, at = {
2411
- ClearIndicator: Da,
2412
- Control: Ja,
2413
- DropdownIndicator: Xa,
2414
- DownChevron: Kn,
2415
- CrossIcon: Wt,
2416
- Group: Ka,
2417
- GroupHeading: $a,
2418
- IndicatorsContainer: Na,
2419
- IndicatorSeparator: Oa,
2420
- Input: iu,
2421
- LoadingIndicator: ka,
2422
- Menu: ma,
2423
- MenuList: va,
2424
- MenuPortal: Ea,
2425
- LoadingMessage: ya,
2426
- NoOptionsMessage: Aa,
2427
- MultiValue: gu,
2428
- MultiValueContainer: su,
2429
- MultiValueLabel: cu,
2430
- MultiValueRemove: lu,
2431
- Option: fu,
2432
- Placeholder: vu,
2433
- SelectContainer: Fa,
2434
- SingleValue: Au,
2435
- ValueContainer: Sa
2436
- }, yu = function(e) {
2437
- return G(G({}, at), e.components);
2438
- }, an = Number.isNaN || function(e) {
2439
- return typeof e == "number" && e !== e;
2440
- };
2441
- function xu(t, e) {
2442
- return !!(t === e || an(t) && an(e));
2443
- }
2444
- function Eu(t, e) {
2445
- if (t.length !== e.length)
2446
- return !1;
2447
- for (var r = 0; r < t.length; r++)
2448
- if (!xu(t[r], e[r]))
2449
- return !1;
2450
- return !0;
2451
- }
2452
- function Gu(t, e) {
2453
- e === void 0 && (e = Eu);
2454
- var r = null;
2455
- function i() {
2456
- for (var n = [], a = 0; a < arguments.length; a++)
2457
- n[a] = arguments[a];
2458
- if (r && r.lastThis === this && e(n, r.lastArgs))
2459
- return r.lastResult;
2460
- var o = t.apply(this, n);
2461
- return r = {
2462
- lastResult: o,
2463
- lastArgs: n,
2464
- lastThis: this
2465
- }, o;
2466
- }
2467
- return i.clear = function() {
2468
- r = null;
2469
- }, i;
2470
- }
2471
- function Fu() {
2472
- 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).";
2473
- }
2474
- var Vu = process.env.NODE_ENV === "production" ? {
2475
- name: "7pg0cj-a11yText",
2476
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
2477
- } : {
2478
- name: "1f43avz-a11yText-A11yText",
2479
- styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
2480
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
2481
- toString: Fu
2482
- }, Su = function(e) {
2483
- return F("span", V({
2484
- css: Vu
2485
- }, e));
2486
- }, un = Su, Bu = {
2487
- guidance: function(e) {
2488
- var r = e.isSearchable, i = e.isMulti, n = e.isDisabled, a = e.tabSelectsValue, o = e.context;
2489
- switch (o) {
2490
- case "menu":
2491
- return "Use Up and Down to choose options".concat(n ? "" : ", press Enter to select the currently focused option", ", press Escape to exit the menu").concat(a ? ", press Tab to select the option and exit the menu" : "", ".");
2492
- case "input":
2493
- return "".concat(e["aria-label"] || "Select", " is focused ").concat(r ? ",type to refine list" : "", ", press Down to open the menu, ").concat(i ? " press left to focus selected values" : "");
2494
- case "value":
2495
- return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
2496
- default:
2497
- return "";
2498
- }
2499
- },
2500
- onChange: function(e) {
2501
- var r = e.action, i = e.label, n = i === void 0 ? "" : i, a = e.labels, o = e.isDisabled;
2502
- switch (r) {
2503
- case "deselect-option":
2504
- case "pop-value":
2505
- case "remove-value":
2506
- return "option ".concat(n, ", deselected.");
2507
- case "clear":
2508
- return "All selected options have been cleared.";
2509
- case "initial-input-focus":
2510
- return "option".concat(a.length > 1 ? "s" : "", " ").concat(a.join(","), ", selected.");
2511
- case "select-option":
2512
- return o ? "option ".concat(n, " is disabled. Select another option.") : "option ".concat(n, ", selected.");
2513
- default:
2514
- return "";
2515
- }
2516
- },
2517
- onFocus: function(e) {
2518
- var r = e.context, i = e.focused, n = e.options, a = e.label, o = a === void 0 ? "" : a, u = e.selectValue, s = e.isDisabled, c = e.isSelected, l = function(p, m) {
2519
- return p && p.length ? "".concat(p.indexOf(m) + 1, " of ").concat(p.length) : "";
2520
- };
2521
- if (r === "value" && u)
2522
- return "value ".concat(o, " focused, ").concat(l(u, i), ".");
2523
- if (r === "menu") {
2524
- var d = s ? " disabled" : "", g = "".concat(c ? "selected" : "focused").concat(d);
2525
- return "option ".concat(o, " ").concat(g, ", ").concat(l(n, i), ".");
2526
- }
2527
- return "";
2528
- },
2529
- onFilter: function(e) {
2530
- var r = e.inputValue, i = e.resultsMessage;
2531
- return "".concat(i).concat(r ? " for search term " + r : "", ".");
2532
- }
2533
- }, Nu = function(e) {
2534
- var r = e.ariaSelection, i = e.focusedOption, n = e.focusedValue, a = e.focusableOptions, o = e.isFocused, u = e.selectValue, s = e.selectProps, c = e.id, l = s.ariaLiveMessages, d = s.getOptionLabel, g = s.inputValue, v = s.isMulti, p = s.isOptionDisabled, m = s.isSearchable, I = s.menuIsOpen, f = s.options, A = s.screenReaderStatus, h = s.tabSelectsValue, C = s["aria-label"], b = s["aria-live"], y = Ce(function() {
2535
- return G(G({}, Bu), l || {});
2536
- }, [l]), E = Ce(function() {
2537
- var X = "";
2538
- if (r && y.onChange) {
2539
- var P = r.option, j = r.options, K = r.removedValue, U = r.removedValues, re = r.value, te = function(ee) {
2540
- return Array.isArray(ee) ? null : ee;
2541
- }, de = K || P || te(re), L = de ? d(de) : "", M = j || U || void 0, ie = M ? M.map(d) : [], ae = G({
2542
- // multiSelected items are usually items that have already been selected
2543
- // or set by the user as a default value so we assume they are not disabled
2544
- isDisabled: de && p(de, u),
2545
- label: L,
2546
- labels: ie
2547
- }, r);
2548
- X = y.onChange(ae);
2549
- }
2550
- return X;
2551
- }, [r, y, p, u, d]), S = Ce(function() {
2552
- var X = "", P = i || n, j = !!(i && u && u.includes(i));
2553
- if (P && y.onFocus) {
2554
- var K = {
2555
- focused: P,
2556
- label: d(P),
2557
- isDisabled: p(P, u),
2558
- isSelected: j,
2559
- options: a,
2560
- context: P === i ? "menu" : "value",
2561
- selectValue: u
2562
- };
2563
- X = y.onFocus(K);
2564
- }
2565
- return X;
2566
- }, [i, n, d, p, y, a, u]), T = Ce(function() {
2567
- var X = "";
2568
- if (I && f.length && y.onFilter) {
2569
- var P = A({
2570
- count: a.length
2571
- });
2572
- X = y.onFilter({
2573
- inputValue: g,
2574
- resultsMessage: P
2575
- });
2576
- }
2577
- return X;
2578
- }, [a, g, I, y, f, A]), z = Ce(function() {
2579
- var X = "";
2580
- if (y.guidance) {
2581
- var P = n ? "value" : I ? "menu" : "input";
2582
- X = y.guidance({
2583
- "aria-label": C,
2584
- context: P,
2585
- isDisabled: i && p(i, u),
2586
- isMulti: v,
2587
- isSearchable: m,
2588
- tabSelectsValue: h
2589
- });
2590
- }
2591
- return X;
2592
- }, [C, i, n, v, p, m, I, y, u, h]), _ = "".concat(S, " ").concat(T, " ").concat(z), H = F(Be, null, F("span", {
2593
- id: "aria-selection"
2594
- }, E), F("span", {
2595
- id: "aria-context"
2596
- }, _)), $ = (r == null ? void 0 : r.action) === "initial-input-focus";
2597
- return F(Be, null, F(un, {
2598
- id: c
2599
- }, $ && H), F(un, {
2600
- "aria-live": b,
2601
- "aria-atomic": "false",
2602
- "aria-relevant": "additions text"
2603
- }, o && !$ && H));
2604
- }, wu = Nu, ht = [{
2605
- base: "A",
2606
- letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
2607
- }, {
2608
- base: "AA",
2609
- letters: "Ꜳ"
2610
- }, {
2611
- base: "AE",
2612
- letters: "ÆǼǢ"
2613
- }, {
2614
- base: "AO",
2615
- letters: "Ꜵ"
2616
- }, {
2617
- base: "AU",
2618
- letters: "Ꜷ"
2619
- }, {
2620
- base: "AV",
2621
- letters: "ꜸꜺ"
2622
- }, {
2623
- base: "AY",
2624
- letters: "Ꜽ"
2625
- }, {
2626
- base: "B",
2627
- letters: "BⒷBḂḄḆɃƂƁ"
2628
- }, {
2629
- base: "C",
2630
- letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
2631
- }, {
2632
- base: "D",
2633
- letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
2634
- }, {
2635
- base: "DZ",
2636
- letters: "DZDŽ"
2637
- }, {
2638
- base: "Dz",
2639
- letters: "DzDž"
2640
- }, {
2641
- base: "E",
2642
- letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
2643
- }, {
2644
- base: "F",
2645
- letters: "FⒻFḞƑꝻ"
2646
- }, {
2647
- base: "G",
2648
- letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
2649
- }, {
2650
- base: "H",
2651
- letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
2652
- }, {
2653
- base: "I",
2654
- letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
2655
- }, {
2656
- base: "J",
2657
- letters: "JⒿJĴɈ"
2658
- }, {
2659
- base: "K",
2660
- letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
2661
- }, {
2662
- base: "L",
2663
- letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
2664
- }, {
2665
- base: "LJ",
2666
- letters: "LJ"
2667
- }, {
2668
- base: "Lj",
2669
- letters: "Lj"
2670
- }, {
2671
- base: "M",
2672
- letters: "MⓂMḾṀṂⱮƜ"
2673
- }, {
2674
- base: "N",
2675
- letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
2676
- }, {
2677
- base: "NJ",
2678
- letters: "NJ"
2679
- }, {
2680
- base: "Nj",
2681
- letters: "Nj"
2682
- }, {
2683
- base: "O",
2684
- letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
2685
- }, {
2686
- base: "OI",
2687
- letters: "Ƣ"
2688
- }, {
2689
- base: "OO",
2690
- letters: "Ꝏ"
2691
- }, {
2692
- base: "OU",
2693
- letters: "Ȣ"
2694
- }, {
2695
- base: "P",
2696
- letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
2697
- }, {
2698
- base: "Q",
2699
- letters: "QⓆQꝖꝘɊ"
2700
- }, {
2701
- base: "R",
2702
- letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
2703
- }, {
2704
- base: "S",
2705
- letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
2706
- }, {
2707
- base: "T",
2708
- letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
2709
- }, {
2710
- base: "TZ",
2711
- letters: "Ꜩ"
2712
- }, {
2713
- base: "U",
2714
- letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
2715
- }, {
2716
- base: "V",
2717
- letters: "VⓋVṼṾƲꝞɅ"
2718
- }, {
2719
- base: "VY",
2720
- letters: "Ꝡ"
2721
- }, {
2722
- base: "W",
2723
- letters: "WⓌWẀẂŴẆẄẈⱲ"
2724
- }, {
2725
- base: "X",
2726
- letters: "XⓍXẊẌ"
2727
- }, {
2728
- base: "Y",
2729
- letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
2730
- }, {
2731
- base: "Z",
2732
- letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
2733
- }, {
2734
- base: "a",
2735
- letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
2736
- }, {
2737
- base: "aa",
2738
- letters: "ꜳ"
2739
- }, {
2740
- base: "ae",
2741
- letters: "æǽǣ"
2742
- }, {
2743
- base: "ao",
2744
- letters: "ꜵ"
2745
- }, {
2746
- base: "au",
2747
- letters: "ꜷ"
2748
- }, {
2749
- base: "av",
2750
- letters: "ꜹꜻ"
2751
- }, {
2752
- base: "ay",
2753
- letters: "ꜽ"
2754
- }, {
2755
- base: "b",
2756
- letters: "bⓑbḃḅḇƀƃɓ"
2757
- }, {
2758
- base: "c",
2759
- letters: "cⓒcćĉċčçḉƈȼꜿↄ"
2760
- }, {
2761
- base: "d",
2762
- letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
2763
- }, {
2764
- base: "dz",
2765
- letters: "dzdž"
2766
- }, {
2767
- base: "e",
2768
- letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
2769
- }, {
2770
- base: "f",
2771
- letters: "fⓕfḟƒꝼ"
2772
- }, {
2773
- base: "g",
2774
- letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
2775
- }, {
2776
- base: "h",
2777
- letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
2778
- }, {
2779
- base: "hv",
2780
- letters: "ƕ"
2781
- }, {
2782
- base: "i",
2783
- letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
2784
- }, {
2785
- base: "j",
2786
- letters: "jⓙjĵǰɉ"
2787
- }, {
2788
- base: "k",
2789
- letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
2790
- }, {
2791
- base: "l",
2792
- letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
2793
- }, {
2794
- base: "lj",
2795
- letters: "lj"
2796
- }, {
2797
- base: "m",
2798
- letters: "mⓜmḿṁṃɱɯ"
2799
- }, {
2800
- base: "n",
2801
- letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
2802
- }, {
2803
- base: "nj",
2804
- letters: "nj"
2805
- }, {
2806
- base: "o",
2807
- letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
2808
- }, {
2809
- base: "oi",
2810
- letters: "ƣ"
2811
- }, {
2812
- base: "ou",
2813
- letters: "ȣ"
2814
- }, {
2815
- base: "oo",
2816
- letters: "ꝏ"
2817
- }, {
2818
- base: "p",
2819
- letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
2820
- }, {
2821
- base: "q",
2822
- letters: "qⓠqɋꝗꝙ"
2823
- }, {
2824
- base: "r",
2825
- letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
2826
- }, {
2827
- base: "s",
2828
- letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
2829
- }, {
2830
- base: "t",
2831
- letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
2832
- }, {
2833
- base: "tz",
2834
- letters: "ꜩ"
2835
- }, {
2836
- base: "u",
2837
- letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
2838
- }, {
2839
- base: "v",
2840
- letters: "vⓥvṽṿʋꝟʌ"
2841
- }, {
2842
- base: "vy",
2843
- letters: "ꝡ"
2844
- }, {
2845
- base: "w",
2846
- letters: "wⓦwẁẃŵẇẅẘẉⱳ"
2847
- }, {
2848
- base: "x",
2849
- letters: "xⓧxẋẍ"
2850
- }, {
2851
- base: "y",
2852
- letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
2853
- }, {
2854
- base: "z",
2855
- letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
2856
- }], Ru = new RegExp("[" + ht.map(function(t) {
2857
- return t.letters;
2858
- }).join("") + "]", "g"), nr = {};
2859
- for (var lt = 0; lt < ht.length; lt++)
2860
- for (var dt = ht[lt], gt = 0; gt < dt.letters.length; gt++)
2861
- nr[dt.letters[gt]] = dt.base;
2862
- var rr = function(e) {
2863
- return e.replace(Ru, function(r) {
2864
- return nr[r];
2865
- });
2866
- }, Wu = Gu(rr), on = function(e) {
2867
- return e.replace(/^\s+|\s+$/g, "");
2868
- }, Tu = function(e) {
2869
- return "".concat(e.label, " ").concat(e.value);
2870
- }, Zu = function(e) {
2871
- return function(r, i) {
2872
- if (r.data.__isNew__)
2873
- return !0;
2874
- var n = G({
2875
- ignoreCase: !0,
2876
- ignoreAccents: !0,
2877
- stringify: Tu,
2878
- trim: !0,
2879
- matchFrom: "any"
2880
- }, e), a = n.ignoreCase, o = n.ignoreAccents, u = n.stringify, s = n.trim, c = n.matchFrom, l = s ? on(i) : i, d = s ? on(u(r)) : u(r);
2881
- return a && (l = l.toLowerCase(), d = d.toLowerCase()), o && (l = Wu(l), d = rr(d)), c === "start" ? d.substr(0, l.length) === l : d.indexOf(l) > -1;
2882
- };
2883
- }, Xu = ["innerRef"];
2884
- function Pu(t) {
2885
- var e = t.innerRef, r = be(t, Xu), i = sa(r, "onExited", "in", "enter", "exit", "appear");
2886
- return F("input", V({
2887
- ref: e
2888
- }, i, {
2889
- css: /* @__PURE__ */ wt({
2890
- label: "dummyInput",
2891
- // get rid of any default styles
2892
- background: 0,
2893
- border: 0,
2894
- // important! this hides the flashing cursor
2895
- caretColor: "transparent",
2896
- fontSize: "inherit",
2897
- gridArea: "1 / 1 / 2 / 3",
2898
- outline: 0,
2899
- padding: 0,
2900
- // important! without `width` browsers won't allow focus
2901
- width: 1,
2902
- // remove cursor on desktop
2903
- color: "transparent",
2904
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
2905
- left: -100,
2906
- opacity: 0,
2907
- position: "relative",
2908
- transform: "scale(.01)"
2909
- }, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG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aW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")
2910
- }));
2911
- }
2912
- var Du = function(e) {
2913
- e.preventDefault(), e.stopPropagation();
2914
- };
2915
- function Lu(t) {
2916
- var e = t.isEnabled, r = t.onBottomArrive, i = t.onBottomLeave, n = t.onTopArrive, a = t.onTopLeave, o = oe(!1), u = oe(!1), s = oe(0), c = oe(null), l = Y(function(I, f) {
2917
- if (c.current !== null) {
2918
- var A = c.current, h = A.scrollTop, C = A.scrollHeight, b = A.clientHeight, y = c.current, E = f > 0, S = C - b - h, T = !1;
2919
- S > f && o.current && (i && i(I), o.current = !1), E && u.current && (a && a(I), u.current = !1), E && f > S ? (r && !o.current && r(I), y.scrollTop = C, T = !0, o.current = !0) : !E && -f > h && (n && !u.current && n(I), y.scrollTop = 0, T = !0, u.current = !0), T && Du(I);
2920
- }
2921
- }, [r, i, n, a]), d = Y(function(I) {
2922
- l(I, I.deltaY);
2923
- }, [l]), g = Y(function(I) {
2924
- s.current = I.changedTouches[0].clientY;
2925
- }, []), v = Y(function(I) {
2926
- var f = s.current - I.changedTouches[0].clientY;
2927
- l(I, f);
2928
- }, [l]), p = Y(function(I) {
2929
- if (I) {
2930
- var f = aa ? {
2931
- passive: !1
2932
- } : !1;
2933
- I.addEventListener("wheel", d, f), I.addEventListener("touchstart", g, f), I.addEventListener("touchmove", v, f);
2934
- }
2935
- }, [v, g, d]), m = Y(function(I) {
2936
- I && (I.removeEventListener("wheel", d, !1), I.removeEventListener("touchstart", g, !1), I.removeEventListener("touchmove", v, !1));
2937
- }, [v, g, d]);
2938
- return hn(function() {
2939
- if (e) {
2940
- var I = c.current;
2941
- return p(I), function() {
2942
- m(I);
2943
- };
2944
- }
2945
- }, [e, p, m]), function(I) {
2946
- c.current = I;
2947
- };
2948
- }
2949
- var sn = ["boxSizing", "height", "overflow", "paddingRight", "position"], cn = {
2950
- boxSizing: "border-box",
2951
- // account for possible declaration `width: 100%;` on body
2952
- overflow: "hidden",
2953
- position: "relative",
2954
- height: "100%"
2955
- };
2956
- function ln(t) {
2957
- t.preventDefault();
2958
- }
2959
- function dn(t) {
2960
- t.stopPropagation();
2961
- }
2962
- function gn() {
2963
- var t = this.scrollTop, e = this.scrollHeight, r = t + this.offsetHeight;
2964
- t === 0 ? this.scrollTop = 1 : r === e && (this.scrollTop = t - 1);
2965
- }
2966
- function bn() {
2967
- return "ontouchstart" in window || navigator.maxTouchPoints;
2968
- }
2969
- var pn = !!(typeof window < "u" && window.document && window.document.createElement), Ve = 0, he = {
2970
- capture: !1,
2971
- passive: !1
2972
- };
2973
- function Ou(t) {
2974
- var e = t.isEnabled, r = t.accountForScrollbars, i = r === void 0 ? !0 : r, n = oe({}), a = oe(null), o = Y(function(s) {
2975
- if (pn) {
2976
- var c = document.body, l = c && c.style;
2977
- if (i && sn.forEach(function(p) {
2978
- var m = l && l[p];
2979
- n.current[p] = m;
2980
- }), i && Ve < 1) {
2981
- var d = parseInt(n.current.paddingRight, 10) || 0, g = document.body ? document.body.clientWidth : 0, v = window.innerWidth - g + d || 0;
2982
- Object.keys(cn).forEach(function(p) {
2983
- var m = cn[p];
2984
- l && (l[p] = m);
2985
- }), l && (l.paddingRight = "".concat(v, "px"));
2986
- }
2987
- c && bn() && (c.addEventListener("touchmove", ln, he), s && (s.addEventListener("touchstart", gn, he), s.addEventListener("touchmove", dn, he))), Ve += 1;
2988
- }
2989
- }, [i]), u = Y(function(s) {
2990
- if (pn) {
2991
- var c = document.body, l = c && c.style;
2992
- Ve = Math.max(Ve - 1, 0), i && Ve < 1 && sn.forEach(function(d) {
2993
- var g = n.current[d];
2994
- l && (l[d] = g);
2995
- }), c && bn() && (c.removeEventListener("touchmove", ln, he), s && (s.removeEventListener("touchstart", gn, he), s.removeEventListener("touchmove", dn, he)));
2996
- }
2997
- }, [i]);
2998
- return hn(function() {
2999
- if (e) {
3000
- var s = a.current;
3001
- return o(s), function() {
3002
- u(s);
3003
- };
3004
- }
3005
- }, [e, o, u]), function(s) {
3006
- a.current = s;
3007
- };
3008
- }
3009
- function Hu() {
3010
- 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).";
3011
- }
3012
- var Mu = function() {
3013
- return document.activeElement && document.activeElement.blur();
3014
- }, ku = process.env.NODE_ENV === "production" ? {
3015
- name: "1kfdb0e",
3016
- styles: "position:fixed;left:0;bottom:0;right:0;top:0"
3017
- } : {
3018
- name: "bp8cua-ScrollManager",
3019
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
3020
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStDVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2sgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWN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LFxuICAgIG9uVG9wQXJyaXZlLFxuICAgIG9uVG9wTGVhdmUsXG4gIH0pO1xuICBjb25zdCBzZXRTY3JvbGxMb2NrVGFyZ2V0ID0gdXNlU2Nyb2xsTG9jayh7IGlzRW5hYmxlZDogbG9ja0VuYWJsZWQgfSk7XG5cbiAgY29uc3QgdGFyZ2V0UmVmOiBSZWZDYWxsYmFjazxIVE1MRWxlbWVudD4gPSAoZWxlbWVudCkgPT4ge1xuICAgIHNldFNjcm9sbENhcHR1cmVUYXJnZXQoZWxlbWVudCk7XG4gICAgc2V0U2Nyb2xsTG9ja1RhcmdldChlbGVtZW50KTtcbiAgfTtcblxuICByZXR1cm4gKFxuICAgIDxGcmFnbWVudD5cbiAgICAgIHtsb2NrRW5hYmxlZCAmJiAoXG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXtibHVyU2VsZWN0SW5wdXR9XG4gICAgICAgICAgY3NzPXt7IHBvc2l0aW9uOiAnZml4ZWQnLCBsZWZ0OiAwLCBib3R0b206IDAsIHJpZ2h0OiAwLCB0b3A6IDAgfX1cbiAgICAgICAgLz5cbiAgICAgICl9XG4gICAgICB7Y2hpbGRyZW4odGFyZ2V0UmVmKX1cbiAgICA8L0ZyYWdtZW50PlxuICApO1xufVxuIl19 */",
3021
- toString: Hu
3022
- };
3023
- function Yu(t) {
3024
- var e = t.children, r = t.lockEnabled, i = t.captureEnabled, n = i === void 0 ? !0 : i, a = t.onBottomArrive, o = t.onBottomLeave, u = t.onTopArrive, s = t.onTopLeave, c = Lu({
3025
- isEnabled: n,
3026
- onBottomArrive: a,
3027
- onBottomLeave: o,
3028
- onTopArrive: u,
3029
- onTopLeave: s
3030
- }), l = Ou({
3031
- isEnabled: r
3032
- }), d = function(v) {
3033
- c(v), l(v);
3034
- };
3035
- return F(Be, null, r && F("div", {
3036
- onClick: Mu,
3037
- css: ku
3038
- }), e(d));
3039
- }
3040
- function zu() {
3041
- 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).";
3042
- }
3043
- var Ju = process.env.NODE_ENV === "production" ? {
3044
- name: "1a0ro4n-requiredInput",
3045
- styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
3046
- } : {
3047
- name: "5kkxb2-requiredInput-RequiredInput",
3048
- styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
3049
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
3050
- toString: zu
3051
- }, ju = function(e) {
3052
- var r = e.name, i = e.onFocus;
3053
- return F("input", {
3054
- required: !0,
3055
- name: r,
3056
- tabIndex: -1,
3057
- "aria-hidden": "true",
3058
- onFocus: i,
3059
- css: Ju,
3060
- value: "",
3061
- onChange: function() {
3062
- }
3063
- });
3064
- }, Uu = ju, Qu = function(e) {
3065
- return e.label;
3066
- }, _u = function(e) {
3067
- return e.label;
3068
- }, $u = function(e) {
3069
- return e.value;
3070
- }, Ku = function(e) {
3071
- return !!e.isDisabled;
3072
- }, qu = {
3073
- clearIndicator: Pa,
3074
- container: Ga,
3075
- control: Ya,
3076
- dropdownIndicator: Za,
3077
- group: Ua,
3078
- groupHeading: _a,
3079
- indicatorsContainer: Ba,
3080
- indicatorSeparator: La,
3081
- input: eu,
3082
- loadingIndicator: Ma,
3083
- loadingMessage: Ca,
3084
- menu: ba,
3085
- menuList: Ia,
3086
- menuPortal: xa,
3087
- multiValue: au,
3088
- multiValueLabel: uu,
3089
- multiValueRemove: ou,
3090
- noOptionsMessage: ha,
3091
- option: bu,
3092
- placeholder: mu,
3093
- singleValue: hu,
3094
- valueContainer: Va
3095
- }, eo = {
3096
- primary: "#2684FF",
3097
- primary75: "#4C9AFF",
3098
- primary50: "#B2D4FF",
3099
- primary25: "#DEEBFF",
3100
- danger: "#DE350B",
3101
- dangerLight: "#FFBDAD",
3102
- neutral0: "hsl(0, 0%, 100%)",
3103
- neutral5: "hsl(0, 0%, 95%)",
3104
- neutral10: "hsl(0, 0%, 90%)",
3105
- neutral20: "hsl(0, 0%, 80%)",
3106
- neutral30: "hsl(0, 0%, 70%)",
3107
- neutral40: "hsl(0, 0%, 60%)",
3108
- neutral50: "hsl(0, 0%, 50%)",
3109
- neutral60: "hsl(0, 0%, 40%)",
3110
- neutral70: "hsl(0, 0%, 30%)",
3111
- neutral80: "hsl(0, 0%, 20%)",
3112
- neutral90: "hsl(0, 0%, 10%)"
3113
- }, to = 4, ir = 4, no = 38, ro = ir * 2, io = {
3114
- baseUnit: ir,
3115
- controlHeight: no,
3116
- menuGutter: ro
3117
- }, bt = {
3118
- borderRadius: to,
3119
- colors: eo,
3120
- spacing: io
3121
- }, ao = {
3122
- "aria-live": "polite",
3123
- backspaceRemovesValue: !0,
3124
- blurInputOnSelect: nn(),
3125
- captureMenuScroll: !nn(),
3126
- classNames: {},
3127
- closeMenuOnSelect: !0,
3128
- closeMenuOnScroll: !1,
3129
- components: {},
3130
- controlShouldRenderValue: !0,
3131
- escapeClearsValue: !1,
3132
- filterOption: Zu(),
3133
- formatGroupLabel: Qu,
3134
- getOptionLabel: _u,
3135
- getOptionValue: $u,
3136
- isDisabled: !1,
3137
- isLoading: !1,
3138
- isMulti: !1,
3139
- isRtl: !1,
3140
- isSearchable: !0,
3141
- isOptionDisabled: Ku,
3142
- loadingMessage: function() {
3143
- return "Loading...";
3144
- },
3145
- maxMenuHeight: 300,
3146
- minMenuHeight: 140,
3147
- menuIsOpen: !1,
3148
- menuPlacement: "bottom",
3149
- menuPosition: "absolute",
3150
- menuShouldBlockScroll: !1,
3151
- menuShouldScrollIntoView: !ra(),
3152
- noOptionsMessage: function() {
3153
- return "No options";
3154
- },
3155
- openMenuOnFocus: !1,
3156
- openMenuOnClick: !0,
3157
- options: [],
3158
- pageSize: 5,
3159
- placeholder: "Select...",
3160
- screenReaderStatus: function(e) {
3161
- var r = e.count;
3162
- return "".concat(r, " result").concat(r !== 1 ? "s" : "", " available");
3163
- },
3164
- styles: {},
3165
- tabIndex: 0,
3166
- tabSelectsValue: !0,
3167
- unstyled: !1
3168
- };
3169
- function fn(t, e, r, i) {
3170
- var n = sr(t, e, r), a = cr(t, e, r), o = or(t, e), u = qe(t, e);
3171
- return {
3172
- type: "option",
3173
- data: e,
3174
- isDisabled: n,
3175
- isSelected: a,
3176
- label: o,
3177
- value: u,
3178
- index: i
3179
- };
3180
- }
3181
- function ar(t, e) {
3182
- return t.options.map(function(r, i) {
3183
- if ("options" in r) {
3184
- var n = r.options.map(function(o, u) {
3185
- return fn(t, o, e, u);
3186
- }).filter(function(o) {
3187
- return mn(t, o);
3188
- });
3189
- return n.length > 0 ? {
3190
- type: "group",
3191
- data: r,
3192
- options: n,
3193
- index: i
3194
- } : void 0;
3195
- }
3196
- var a = fn(t, r, e, i);
3197
- return mn(t, a) ? a : void 0;
3198
- }).filter(ua);
3199
- }
3200
- function ur(t) {
3201
- return t.reduce(function(e, r) {
3202
- return r.type === "group" ? e.push.apply(e, An(r.options.map(function(i) {
3203
- return i.data;
3204
- }))) : e.push(r.data), e;
3205
- }, []);
3206
- }
3207
- function uo(t, e) {
3208
- return ur(ar(t, e));
3209
- }
3210
- function mn(t, e) {
3211
- var r = t.inputValue, i = r === void 0 ? "" : r, n = e.data, a = e.isSelected, o = e.label, u = e.value;
3212
- return (!dr(t) || !a) && lr(t, {
3213
- label: o,
3214
- value: u,
3215
- data: n
3216
- }, i);
3217
- }
3218
- function oo(t, e) {
3219
- var r = t.focusedValue, i = t.selectValue, n = i.indexOf(r);
3220
- if (n > -1) {
3221
- var a = e.indexOf(r);
3222
- if (a > -1)
3223
- return r;
3224
- if (n < e.length)
3225
- return e[n];
3226
- }
3227
- return null;
3228
- }
3229
- function so(t, e) {
3230
- var r = t.focusedOption;
3231
- return r && e.indexOf(r) > -1 ? r : e[0];
3232
- }
3233
- var or = function(e, r) {
3234
- return e.getOptionLabel(r);
3235
- }, qe = function(e, r) {
3236
- return e.getOptionValue(r);
3237
- };
3238
- function sr(t, e, r) {
3239
- return typeof t.isOptionDisabled == "function" ? t.isOptionDisabled(e, r) : !1;
3240
- }
3241
- function cr(t, e, r) {
3242
- if (r.indexOf(e) > -1)
3243
- return !0;
3244
- if (typeof t.isOptionSelected == "function")
3245
- return t.isOptionSelected(e, r);
3246
- var i = qe(t, e);
3247
- return r.some(function(n) {
3248
- return qe(t, n) === i;
3249
- });
3250
- }
3251
- function lr(t, e, r) {
3252
- return t.filterOption ? t.filterOption(e, r) : !0;
3253
- }
3254
- var dr = function(e) {
3255
- var r = e.hideSelectedOptions, i = e.isMulti;
3256
- return r === void 0 ? i : r;
3257
- }, co = 1, lo = /* @__PURE__ */ function(t) {
3258
- br(r, t);
3259
- var e = pr(r);
3260
- function r(i) {
3261
- var n;
3262
- if (fr(this, r), n = e.call(this, i), n.state = {
3263
- ariaSelection: null,
3264
- focusedOption: null,
3265
- focusedValue: null,
3266
- inputIsHidden: !1,
3267
- isFocused: !1,
3268
- selectValue: [],
3269
- clearFocusValueOnUpdate: !1,
3270
- prevWasFocused: !1,
3271
- inputIsHiddenAfterUpdate: void 0,
3272
- prevProps: void 0
3273
- }, n.blockOptionHover = !1, n.isComposing = !1, n.commonProps = void 0, n.initialTouchX = 0, n.initialTouchY = 0, n.instancePrefix = "", n.openAfterFocus = !1, n.scrollToFocusedOptionOnUpdate = !1, n.userIsDragging = void 0, n.controlRef = null, n.getControlRef = function(u) {
3274
- n.controlRef = u;
3275
- }, n.focusedOptionRef = null, n.getFocusedOptionRef = function(u) {
3276
- n.focusedOptionRef = u;
3277
- }, n.menuListRef = null, n.getMenuListRef = function(u) {
3278
- n.menuListRef = u;
3279
- }, n.inputRef = null, n.getInputRef = function(u) {
3280
- n.inputRef = u;
3281
- }, n.focus = n.focusInput, n.blur = n.blurInput, n.onChange = function(u, s) {
3282
- var c = n.props, l = c.onChange, d = c.name;
3283
- s.name = d, n.ariaOnChange(u, s), l(u, s);
3284
- }, n.setValue = function(u, s, c) {
3285
- var l = n.props, d = l.closeMenuOnSelect, g = l.isMulti, v = l.inputValue;
3286
- n.onInputChange("", {
3287
- action: "set-value",
3288
- prevInputValue: v
3289
- }), d && (n.setState({
3290
- inputIsHiddenAfterUpdate: !g
3291
- }), n.onMenuClose()), n.setState({
3292
- clearFocusValueOnUpdate: !0
3293
- }), n.onChange(u, {
3294
- action: s,
3295
- option: c
3296
- });
3297
- }, n.selectOption = function(u) {
3298
- var s = n.props, c = s.blurInputOnSelect, l = s.isMulti, d = s.name, g = n.state.selectValue, v = l && n.isOptionSelected(u, g), p = n.isOptionDisabled(u, g);
3299
- if (v) {
3300
- var m = n.getOptionValue(u);
3301
- n.setValue(g.filter(function(I) {
3302
- return n.getOptionValue(I) !== m;
3303
- }), "deselect-option", u);
3304
- } else if (!p)
3305
- l ? n.setValue([].concat(An(g), [u]), "select-option", u) : n.setValue(u, "select-option");
3306
- else {
3307
- n.ariaOnChange(u, {
3308
- action: "select-option",
3309
- option: u,
3310
- name: d
3311
- });
3312
- return;
3313
- }
3314
- c && n.blurInput();
3315
- }, n.removeValue = function(u) {
3316
- var s = n.props.isMulti, c = n.state.selectValue, l = n.getOptionValue(u), d = c.filter(function(v) {
3317
- return n.getOptionValue(v) !== l;
3318
- }), g = ke(s, d, d[0] || null);
3319
- n.onChange(g, {
3320
- action: "remove-value",
3321
- removedValue: u
3322
- }), n.focusInput();
3323
- }, n.clearValue = function() {
3324
- var u = n.state.selectValue;
3325
- n.onChange(ke(n.props.isMulti, [], null), {
3326
- action: "clear",
3327
- removedValues: u
3328
- });
3329
- }, n.popValue = function() {
3330
- var u = n.props.isMulti, s = n.state.selectValue, c = s[s.length - 1], l = s.slice(0, s.length - 1), d = ke(u, l, l[0] || null);
3331
- n.onChange(d, {
3332
- action: "pop-value",
3333
- removedValue: c
3334
- });
3335
- }, n.getValue = function() {
3336
- return n.state.selectValue;
3337
- }, n.cx = function() {
3338
- for (var u = arguments.length, s = new Array(u), c = 0; c < u; c++)
3339
- s[c] = arguments[c];
3340
- return Ki.apply(void 0, [n.props.classNamePrefix].concat(s));
3341
- }, n.getOptionLabel = function(u) {
3342
- return or(n.props, u);
3343
- }, n.getOptionValue = function(u) {
3344
- return qe(n.props, u);
3345
- }, n.getStyles = function(u, s) {
3346
- var c = n.props.unstyled, l = qu[u](s, c);
3347
- l.boxSizing = "border-box";
3348
- var d = n.props.styles[u];
3349
- return d ? d(l, s) : l;
3350
- }, n.getClassNames = function(u, s) {
3351
- var c, l;
3352
- return (c = (l = n.props.classNames)[u]) === null || c === void 0 ? void 0 : c.call(l, s);
3353
- }, n.getElementId = function(u) {
3354
- return "".concat(n.instancePrefix, "-").concat(u);
3355
- }, n.getComponents = function() {
3356
- return yu(n.props);
3357
- }, n.buildCategorizedOptions = function() {
3358
- return ar(n.props, n.state.selectValue);
3359
- }, n.getCategorizedOptions = function() {
3360
- return n.props.menuIsOpen ? n.buildCategorizedOptions() : [];
3361
- }, n.buildFocusableOptions = function() {
3362
- return ur(n.buildCategorizedOptions());
3363
- }, n.getFocusableOptions = function() {
3364
- return n.props.menuIsOpen ? n.buildFocusableOptions() : [];
3365
- }, n.ariaOnChange = function(u, s) {
3366
- n.setState({
3367
- ariaSelection: G({
3368
- value: u
3369
- }, s)
3370
- });
3371
- }, n.onMenuMouseDown = function(u) {
3372
- u.button === 0 && (u.stopPropagation(), u.preventDefault(), n.focusInput());
3373
- }, n.onMenuMouseMove = function(u) {
3374
- n.blockOptionHover = !1;
3375
- }, n.onControlMouseDown = function(u) {
3376
- if (!u.defaultPrevented) {
3377
- var s = n.props.openMenuOnClick;
3378
- n.state.isFocused ? n.props.menuIsOpen ? u.target.tagName !== "INPUT" && u.target.tagName !== "TEXTAREA" && n.onMenuClose() : s && n.openMenu("first") : (s && (n.openAfterFocus = !0), n.focusInput()), u.target.tagName !== "INPUT" && u.target.tagName !== "TEXTAREA" && u.preventDefault();
3379
- }
3380
- }, n.onDropdownIndicatorMouseDown = function(u) {
3381
- if (!(u && u.type === "mousedown" && u.button !== 0) && !n.props.isDisabled) {
3382
- var s = n.props, c = s.isMulti, l = s.menuIsOpen;
3383
- n.focusInput(), l ? (n.setState({
3384
- inputIsHiddenAfterUpdate: !c
3385
- }), n.onMenuClose()) : n.openMenu("first"), u.preventDefault();
3386
- }
3387
- }, n.onClearIndicatorMouseDown = function(u) {
3388
- u && u.type === "mousedown" && u.button !== 0 || (n.clearValue(), u.preventDefault(), n.openAfterFocus = !1, u.type === "touchend" ? n.focusInput() : setTimeout(function() {
3389
- return n.focusInput();
3390
- }));
3391
- }, n.onScroll = function(u) {
3392
- typeof n.props.closeMenuOnScroll == "boolean" ? u.target instanceof HTMLElement && it(u.target) && n.props.onMenuClose() : typeof n.props.closeMenuOnScroll == "function" && n.props.closeMenuOnScroll(u) && n.props.onMenuClose();
3393
- }, n.onCompositionStart = function() {
3394
- n.isComposing = !0;
3395
- }, n.onCompositionEnd = function() {
3396
- n.isComposing = !1;
3397
- }, n.onTouchStart = function(u) {
3398
- var s = u.touches, c = s && s.item(0);
3399
- c && (n.initialTouchX = c.clientX, n.initialTouchY = c.clientY, n.userIsDragging = !1);
3400
- }, n.onTouchMove = function(u) {
3401
- var s = u.touches, c = s && s.item(0);
3402
- if (c) {
3403
- var l = Math.abs(c.clientX - n.initialTouchX), d = Math.abs(c.clientY - n.initialTouchY), g = 5;
3404
- n.userIsDragging = l > g || d > g;
3405
- }
3406
- }, n.onTouchEnd = function(u) {
3407
- n.userIsDragging || (n.controlRef && !n.controlRef.contains(u.target) && n.menuListRef && !n.menuListRef.contains(u.target) && n.blurInput(), n.initialTouchX = 0, n.initialTouchY = 0);
3408
- }, n.onControlTouchEnd = function(u) {
3409
- n.userIsDragging || n.onControlMouseDown(u);
3410
- }, n.onClearIndicatorTouchEnd = function(u) {
3411
- n.userIsDragging || n.onClearIndicatorMouseDown(u);
3412
- }, n.onDropdownIndicatorTouchEnd = function(u) {
3413
- n.userIsDragging || n.onDropdownIndicatorMouseDown(u);
3414
- }, n.handleInputChange = function(u) {
3415
- var s = n.props.inputValue, c = u.currentTarget.value;
3416
- n.setState({
3417
- inputIsHiddenAfterUpdate: !1
3418
- }), n.onInputChange(c, {
3419
- action: "input-change",
3420
- prevInputValue: s
3421
- }), n.props.menuIsOpen || n.onMenuOpen();
3422
- }, n.onInputFocus = function(u) {
3423
- n.props.onFocus && n.props.onFocus(u), n.setState({
3424
- inputIsHiddenAfterUpdate: !1,
3425
- isFocused: !0
3426
- }), (n.openAfterFocus || n.props.openMenuOnFocus) && n.openMenu("first"), n.openAfterFocus = !1;
3427
- }, n.onInputBlur = function(u) {
3428
- var s = n.props.inputValue;
3429
- if (n.menuListRef && n.menuListRef.contains(document.activeElement)) {
3430
- n.inputRef.focus();
3431
- return;
3432
- }
3433
- n.props.onBlur && n.props.onBlur(u), n.onInputChange("", {
3434
- action: "input-blur",
3435
- prevInputValue: s
3436
- }), n.onMenuClose(), n.setState({
3437
- focusedValue: null,
3438
- isFocused: !1
3439
- });
3440
- }, n.onOptionHover = function(u) {
3441
- n.blockOptionHover || n.state.focusedOption === u || n.setState({
3442
- focusedOption: u
3443
- });
3444
- }, n.shouldHideSelectedOptions = function() {
3445
- return dr(n.props);
3446
- }, n.onValueInputFocus = function(u) {
3447
- u.preventDefault(), u.stopPropagation(), n.focus();
3448
- }, n.onKeyDown = function(u) {
3449
- var s = n.props, c = s.isMulti, l = s.backspaceRemovesValue, d = s.escapeClearsValue, g = s.inputValue, v = s.isClearable, p = s.isDisabled, m = s.menuIsOpen, I = s.onKeyDown, f = s.tabSelectsValue, A = s.openMenuOnFocus, h = n.state, C = h.focusedOption, b = h.focusedValue, y = h.selectValue;
3450
- if (!p && !(typeof I == "function" && (I(u), u.defaultPrevented))) {
3451
- switch (n.blockOptionHover = !0, u.key) {
3452
- case "ArrowLeft":
3453
- if (!c || g)
3454
- return;
3455
- n.focusValue("previous");
3456
- break;
3457
- case "ArrowRight":
3458
- if (!c || g)
3459
- return;
3460
- n.focusValue("next");
3461
- break;
3462
- case "Delete":
3463
- case "Backspace":
3464
- if (g)
3465
- return;
3466
- if (b)
3467
- n.removeValue(b);
3468
- else {
3469
- if (!l)
3470
- return;
3471
- c ? n.popValue() : v && n.clearValue();
3472
- }
3473
- break;
3474
- case "Tab":
3475
- if (n.isComposing || u.shiftKey || !m || !f || !C || // don't capture the event if the menu opens on focus and the focused
3476
- // option is already selected; it breaks the flow of navigation
3477
- A && n.isOptionSelected(C, y))
3478
- return;
3479
- n.selectOption(C);
3480
- break;
3481
- case "Enter":
3482
- if (u.keyCode === 229)
3483
- break;
3484
- if (m) {
3485
- if (!C || n.isComposing)
3486
- return;
3487
- n.selectOption(C);
3488
- break;
3489
- }
3490
- return;
3491
- case "Escape":
3492
- m ? (n.setState({
3493
- inputIsHiddenAfterUpdate: !1
3494
- }), n.onInputChange("", {
3495
- action: "menu-close",
3496
- prevInputValue: g
3497
- }), n.onMenuClose()) : v && d && n.clearValue();
3498
- break;
3499
- case " ":
3500
- if (g)
3501
- return;
3502
- if (!m) {
3503
- n.openMenu("first");
3504
- break;
3505
- }
3506
- if (!C)
3507
- return;
3508
- n.selectOption(C);
3509
- break;
3510
- case "ArrowUp":
3511
- m ? n.focusOption("up") : n.openMenu("last");
3512
- break;
3513
- case "ArrowDown":
3514
- m ? n.focusOption("down") : n.openMenu("first");
3515
- break;
3516
- case "PageUp":
3517
- if (!m)
3518
- return;
3519
- n.focusOption("pageup");
3520
- break;
3521
- case "PageDown":
3522
- if (!m)
3523
- return;
3524
- n.focusOption("pagedown");
3525
- break;
3526
- case "Home":
3527
- if (!m)
3528
- return;
3529
- n.focusOption("first");
3530
- break;
3531
- case "End":
3532
- if (!m)
3533
- return;
3534
- n.focusOption("last");
3535
- break;
3536
- default:
3537
- return;
3538
- }
3539
- u.preventDefault();
3540
- }
3541
- }, n.instancePrefix = "react-select-" + (n.props.instanceId || ++co), n.state.selectValue = en(i.value), i.menuIsOpen && n.state.selectValue.length) {
3542
- var a = n.buildFocusableOptions(), o = a.indexOf(n.state.selectValue[0]);
3543
- n.state.focusedOption = a[o];
3544
- }
3545
- return n;
3546
- }
3547
- return mr(r, [{
3548
- key: "componentDidMount",
3549
- value: function() {
3550
- this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && tn(this.menuListRef, this.focusedOptionRef);
3551
- }
3552
- }, {
3553
- key: "componentDidUpdate",
3554
- value: function(n) {
3555
- var a = this.props, o = a.isDisabled, u = a.menuIsOpen, s = this.state.isFocused;
3556
- // ensure focus is restored correctly when the control becomes enabled
3557
- (s && !o && n.isDisabled || // ensure focus is on the Input when the menu opens
3558
- s && u && !n.menuIsOpen) && this.focusInput(), s && o && !n.isDisabled ? this.setState({
3559
- isFocused: !1
3560
- }, this.onMenuClose) : !s && !o && n.isDisabled && this.inputRef === document.activeElement && this.setState({
3561
- isFocused: !0
3562
- }), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (tn(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
3563
- }
3564
- }, {
3565
- key: "componentWillUnmount",
3566
- value: function() {
3567
- this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
3568
- }
3569
- // ==============================
3570
- // Consumer Handlers
3571
- // ==============================
3572
- }, {
3573
- key: "onMenuOpen",
3574
- value: function() {
3575
- this.props.onMenuOpen();
3576
- }
3577
- }, {
3578
- key: "onMenuClose",
3579
- value: function() {
3580
- this.onInputChange("", {
3581
- action: "menu-close",
3582
- prevInputValue: this.props.inputValue
3583
- }), this.props.onMenuClose();
3584
- }
3585
- }, {
3586
- key: "onInputChange",
3587
- value: function(n, a) {
3588
- this.props.onInputChange(n, a);
3589
- }
3590
- // ==============================
3591
- // Methods
3592
- // ==============================
3593
- }, {
3594
- key: "focusInput",
3595
- value: function() {
3596
- this.inputRef && this.inputRef.focus();
3597
- }
3598
- }, {
3599
- key: "blurInput",
3600
- value: function() {
3601
- this.inputRef && this.inputRef.blur();
3602
- }
3603
- // aliased for consumers
3604
- }, {
3605
- key: "openMenu",
3606
- value: function(n) {
3607
- var a = this, o = this.state, u = o.selectValue, s = o.isFocused, c = this.buildFocusableOptions(), l = n === "first" ? 0 : c.length - 1;
3608
- if (!this.props.isMulti) {
3609
- var d = c.indexOf(u[0]);
3610
- d > -1 && (l = d);
3611
- }
3612
- this.scrollToFocusedOptionOnUpdate = !(s && this.menuListRef), this.setState({
3613
- inputIsHiddenAfterUpdate: !1,
3614
- focusedValue: null,
3615
- focusedOption: c[l]
3616
- }, function() {
3617
- return a.onMenuOpen();
3618
- });
3619
- }
3620
- }, {
3621
- key: "focusValue",
3622
- value: function(n) {
3623
- var a = this.state, o = a.selectValue, u = a.focusedValue;
3624
- if (this.props.isMulti) {
3625
- this.setState({
3626
- focusedOption: null
3627
- });
3628
- var s = o.indexOf(u);
3629
- u || (s = -1);
3630
- var c = o.length - 1, l = -1;
3631
- if (o.length) {
3632
- switch (n) {
3633
- case "previous":
3634
- s === 0 ? l = 0 : s === -1 ? l = c : l = s - 1;
3635
- break;
3636
- case "next":
3637
- s > -1 && s < c && (l = s + 1);
3638
- break;
3639
- }
3640
- this.setState({
3641
- inputIsHidden: l !== -1,
3642
- focusedValue: o[l]
3643
- });
3644
- }
3645
- }
3646
- }
3647
- }, {
3648
- key: "focusOption",
3649
- value: function() {
3650
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", a = this.props.pageSize, o = this.state.focusedOption, u = this.getFocusableOptions();
3651
- if (u.length) {
3652
- var s = 0, c = u.indexOf(o);
3653
- o || (c = -1), n === "up" ? s = c > 0 ? c - 1 : u.length - 1 : n === "down" ? s = (c + 1) % u.length : n === "pageup" ? (s = c - a, s < 0 && (s = 0)) : n === "pagedown" ? (s = c + a, s > u.length - 1 && (s = u.length - 1)) : n === "last" && (s = u.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
3654
- focusedOption: u[s],
3655
- focusedValue: null
3656
- });
3657
- }
3658
- }
3659
- }, {
3660
- key: "getTheme",
3661
- value: (
3662
- // ==============================
3663
- // Getters
3664
- // ==============================
3665
- function() {
3666
- return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(bt) : G(G({}, bt), this.props.theme) : bt;
3667
- }
3668
- )
3669
- }, {
3670
- key: "getCommonProps",
3671
- value: function() {
3672
- var n = this.clearValue, a = this.cx, o = this.getStyles, u = this.getClassNames, s = this.getValue, c = this.selectOption, l = this.setValue, d = this.props, g = d.isMulti, v = d.isRtl, p = d.options, m = this.hasValue();
3673
- return {
3674
- clearValue: n,
3675
- cx: a,
3676
- getStyles: o,
3677
- getClassNames: u,
3678
- getValue: s,
3679
- hasValue: m,
3680
- isMulti: g,
3681
- isRtl: v,
3682
- options: p,
3683
- selectOption: c,
3684
- selectProps: d,
3685
- setValue: l,
3686
- theme: this.getTheme()
3687
- };
3688
- }
3689
- }, {
3690
- key: "hasValue",
3691
- value: function() {
3692
- var n = this.state.selectValue;
3693
- return n.length > 0;
3694
- }
3695
- }, {
3696
- key: "hasOptions",
3697
- value: function() {
3698
- return !!this.getFocusableOptions().length;
3699
- }
3700
- }, {
3701
- key: "isClearable",
3702
- value: function() {
3703
- var n = this.props, a = n.isClearable, o = n.isMulti;
3704
- return a === void 0 ? o : a;
3705
- }
3706
- }, {
3707
- key: "isOptionDisabled",
3708
- value: function(n, a) {
3709
- return sr(this.props, n, a);
3710
- }
3711
- }, {
3712
- key: "isOptionSelected",
3713
- value: function(n, a) {
3714
- return cr(this.props, n, a);
3715
- }
3716
- }, {
3717
- key: "filterOption",
3718
- value: function(n, a) {
3719
- return lr(this.props, n, a);
3720
- }
3721
- }, {
3722
- key: "formatOptionLabel",
3723
- value: function(n, a) {
3724
- if (typeof this.props.formatOptionLabel == "function") {
3725
- var o = this.props.inputValue, u = this.state.selectValue;
3726
- return this.props.formatOptionLabel(n, {
3727
- context: a,
3728
- inputValue: o,
3729
- selectValue: u
3730
- });
3731
- } else
3732
- return this.getOptionLabel(n);
3733
- }
3734
- }, {
3735
- key: "formatGroupLabel",
3736
- value: function(n) {
3737
- return this.props.formatGroupLabel(n);
3738
- }
3739
- // ==============================
3740
- // Mouse Handlers
3741
- // ==============================
3742
- }, {
3743
- key: "startListeningComposition",
3744
- value: (
3745
- // ==============================
3746
- // Composition Handlers
3747
- // ==============================
3748
- function() {
3749
- document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
3750
- }
3751
- )
3752
- }, {
3753
- key: "stopListeningComposition",
3754
- value: function() {
3755
- document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
3756
- }
3757
- }, {
3758
- key: "startListeningToTouch",
3759
- value: (
3760
- // ==============================
3761
- // Touch Handlers
3762
- // ==============================
3763
- function() {
3764
- document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
3765
- }
3766
- )
3767
- }, {
3768
- key: "stopListeningToTouch",
3769
- value: function() {
3770
- document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
3771
- }
3772
- }, {
3773
- key: "renderInput",
3774
- value: (
3775
- // ==============================
3776
- // Renderers
3777
- // ==============================
3778
- function() {
3779
- var n = this.props, a = n.isDisabled, o = n.isSearchable, u = n.inputId, s = n.inputValue, c = n.tabIndex, l = n.form, d = n.menuIsOpen, g = n.required, v = this.getComponents(), p = v.Input, m = this.state, I = m.inputIsHidden, f = m.ariaSelection, A = this.commonProps, h = u || this.getElementId("input"), C = G(G(G({
3780
- "aria-autocomplete": "list",
3781
- "aria-expanded": d,
3782
- "aria-haspopup": !0,
3783
- "aria-errormessage": this.props["aria-errormessage"],
3784
- "aria-invalid": this.props["aria-invalid"],
3785
- "aria-label": this.props["aria-label"],
3786
- "aria-labelledby": this.props["aria-labelledby"],
3787
- "aria-required": g,
3788
- role: "combobox"
3789
- }, d && {
3790
- "aria-controls": this.getElementId("listbox"),
3791
- "aria-owns": this.getElementId("listbox")
3792
- }), !o && {
3793
- "aria-readonly": !0
3794
- }), this.hasValue() ? (f == null ? void 0 : f.action) === "initial-input-focus" && {
3795
- "aria-describedby": this.getElementId("live-region")
3796
- } : {
3797
- "aria-describedby": this.getElementId("placeholder")
3798
- });
3799
- return o ? /* @__PURE__ */ B.createElement(p, V({}, A, {
3800
- autoCapitalize: "none",
3801
- autoComplete: "off",
3802
- autoCorrect: "off",
3803
- id: h,
3804
- innerRef: this.getInputRef,
3805
- isDisabled: a,
3806
- isHidden: I,
3807
- onBlur: this.onInputBlur,
3808
- onChange: this.handleInputChange,
3809
- onFocus: this.onInputFocus,
3810
- spellCheck: "false",
3811
- tabIndex: c,
3812
- form: l,
3813
- type: "text",
3814
- value: s
3815
- }, C)) : /* @__PURE__ */ B.createElement(Pu, V({
3816
- id: h,
3817
- innerRef: this.getInputRef,
3818
- onBlur: this.onInputBlur,
3819
- onChange: $e,
3820
- onFocus: this.onInputFocus,
3821
- disabled: a,
3822
- tabIndex: c,
3823
- inputMode: "none",
3824
- form: l,
3825
- value: ""
3826
- }, C));
3827
- }
3828
- )
3829
- }, {
3830
- key: "renderPlaceholderOrValue",
3831
- value: function() {
3832
- var n = this, a = this.getComponents(), o = a.MultiValue, u = a.MultiValueContainer, s = a.MultiValueLabel, c = a.MultiValueRemove, l = a.SingleValue, d = a.Placeholder, g = this.commonProps, v = this.props, p = v.controlShouldRenderValue, m = v.isDisabled, I = v.isMulti, f = v.inputValue, A = v.placeholder, h = this.state, C = h.selectValue, b = h.focusedValue, y = h.isFocused;
3833
- if (!this.hasValue() || !p)
3834
- return f ? null : /* @__PURE__ */ B.createElement(d, V({}, g, {
3835
- key: "placeholder",
3836
- isDisabled: m,
3837
- isFocused: y,
3838
- innerProps: {
3839
- id: this.getElementId("placeholder")
3840
- }
3841
- }), A);
3842
- if (I)
3843
- return C.map(function(S, T) {
3844
- var z = S === b, _ = "".concat(n.getOptionLabel(S), "-").concat(n.getOptionValue(S));
3845
- return /* @__PURE__ */ B.createElement(o, V({}, g, {
3846
- components: {
3847
- Container: u,
3848
- Label: s,
3849
- Remove: c
3850
- },
3851
- isFocused: z,
3852
- isDisabled: m,
3853
- key: _,
3854
- index: T,
3855
- removeProps: {
3856
- onClick: function() {
3857
- return n.removeValue(S);
3858
- },
3859
- onTouchEnd: function() {
3860
- return n.removeValue(S);
3861
- },
3862
- onMouseDown: function($) {
3863
- $.preventDefault();
3864
- }
3865
- },
3866
- data: S
3867
- }), n.formatOptionLabel(S, "value"));
3868
- });
3869
- if (f)
3870
- return null;
3871
- var E = C[0];
3872
- return /* @__PURE__ */ B.createElement(l, V({}, g, {
3873
- data: E,
3874
- isDisabled: m
3875
- }), this.formatOptionLabel(E, "value"));
3876
- }
3877
- }, {
3878
- key: "renderClearIndicator",
3879
- value: function() {
3880
- var n = this.getComponents(), a = n.ClearIndicator, o = this.commonProps, u = this.props, s = u.isDisabled, c = u.isLoading, l = this.state.isFocused;
3881
- if (!this.isClearable() || !a || s || !this.hasValue() || c)
3882
- return null;
3883
- var d = {
3884
- onMouseDown: this.onClearIndicatorMouseDown,
3885
- onTouchEnd: this.onClearIndicatorTouchEnd,
3886
- "aria-hidden": "true"
3887
- };
3888
- return /* @__PURE__ */ B.createElement(a, V({}, o, {
3889
- innerProps: d,
3890
- isFocused: l
3891
- }));
3892
- }
3893
- }, {
3894
- key: "renderLoadingIndicator",
3895
- value: function() {
3896
- var n = this.getComponents(), a = n.LoadingIndicator, o = this.commonProps, u = this.props, s = u.isDisabled, c = u.isLoading, l = this.state.isFocused;
3897
- if (!a || !c)
3898
- return null;
3899
- var d = {
3900
- "aria-hidden": "true"
3901
- };
3902
- return /* @__PURE__ */ B.createElement(a, V({}, o, {
3903
- innerProps: d,
3904
- isDisabled: s,
3905
- isFocused: l
3906
- }));
3907
- }
3908
- }, {
3909
- key: "renderIndicatorSeparator",
3910
- value: function() {
3911
- var n = this.getComponents(), a = n.DropdownIndicator, o = n.IndicatorSeparator;
3912
- if (!a || !o)
3913
- return null;
3914
- var u = this.commonProps, s = this.props.isDisabled, c = this.state.isFocused;
3915
- return /* @__PURE__ */ B.createElement(o, V({}, u, {
3916
- isDisabled: s,
3917
- isFocused: c
3918
- }));
3919
- }
3920
- }, {
3921
- key: "renderDropdownIndicator",
3922
- value: function() {
3923
- var n = this.getComponents(), a = n.DropdownIndicator;
3924
- if (!a)
3925
- return null;
3926
- var o = this.commonProps, u = this.props.isDisabled, s = this.state.isFocused, c = {
3927
- onMouseDown: this.onDropdownIndicatorMouseDown,
3928
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
3929
- "aria-hidden": "true"
3930
- };
3931
- return /* @__PURE__ */ B.createElement(a, V({}, o, {
3932
- innerProps: c,
3933
- isDisabled: u,
3934
- isFocused: s
3935
- }));
3936
- }
3937
- }, {
3938
- key: "renderMenu",
3939
- value: function() {
3940
- var n = this, a = this.getComponents(), o = a.Group, u = a.GroupHeading, s = a.Menu, c = a.MenuList, l = a.MenuPortal, d = a.LoadingMessage, g = a.NoOptionsMessage, v = a.Option, p = this.commonProps, m = this.state.focusedOption, I = this.props, f = I.captureMenuScroll, A = I.inputValue, h = I.isLoading, C = I.loadingMessage, b = I.minMenuHeight, y = I.maxMenuHeight, E = I.menuIsOpen, S = I.menuPlacement, T = I.menuPosition, z = I.menuPortalTarget, _ = I.menuShouldBlockScroll, H = I.menuShouldScrollIntoView, $ = I.noOptionsMessage, X = I.onMenuScrollToTop, P = I.onMenuScrollToBottom;
3941
- if (!E)
3942
- return null;
3943
- var j = function(M, ie) {
3944
- var ae = M.type, q = M.data, ee = M.isDisabled, pe = M.isSelected, ve = M.label, ut = M.value, Xe = m === q, x = ee ? void 0 : function() {
3945
- return n.onOptionHover(q);
3946
- }, Ge = ee ? void 0 : function() {
3947
- return n.selectOption(q);
3948
- }, fe = "".concat(n.getElementId("option"), "-").concat(ie), Pe = {
3949
- id: fe,
3950
- onClick: Ge,
3951
- onMouseMove: x,
3952
- onMouseOver: x,
3953
- tabIndex: -1
3954
- };
3955
- return /* @__PURE__ */ B.createElement(v, V({}, p, {
3956
- innerProps: Pe,
3957
- data: q,
3958
- isDisabled: ee,
3959
- isSelected: pe,
3960
- key: fe,
3961
- label: ve,
3962
- type: ae,
3963
- value: ut,
3964
- isFocused: Xe,
3965
- innerRef: Xe ? n.getFocusedOptionRef : void 0
3966
- }), n.formatOptionLabel(M.data, "menu"));
3967
- }, K;
3968
- if (this.hasOptions())
3969
- K = this.getCategorizedOptions().map(function(L) {
3970
- if (L.type === "group") {
3971
- var M = L.data, ie = L.options, ae = L.index, q = "".concat(n.getElementId("group"), "-").concat(ae), ee = "".concat(q, "-heading");
3972
- return /* @__PURE__ */ B.createElement(o, V({}, p, {
3973
- key: q,
3974
- data: M,
3975
- options: ie,
3976
- Heading: u,
3977
- headingProps: {
3978
- id: ee,
3979
- data: L.data
3980
- },
3981
- label: n.formatGroupLabel(L.data)
3982
- }), L.options.map(function(pe) {
3983
- return j(pe, "".concat(ae, "-").concat(pe.index));
3984
- }));
3985
- } else if (L.type === "option")
3986
- return j(L, "".concat(L.index));
3987
- });
3988
- else if (h) {
3989
- var U = C({
3990
- inputValue: A
3991
- });
3992
- if (U === null)
3993
- return null;
3994
- K = /* @__PURE__ */ B.createElement(d, p, U);
3995
- } else {
3996
- var re = $({
3997
- inputValue: A
3998
- });
3999
- if (re === null)
4000
- return null;
4001
- K = /* @__PURE__ */ B.createElement(g, p, re);
4002
- }
4003
- var te = {
4004
- minMenuHeight: b,
4005
- maxMenuHeight: y,
4006
- menuPlacement: S,
4007
- menuPosition: T,
4008
- menuShouldScrollIntoView: H
4009
- }, de = /* @__PURE__ */ B.createElement(pa, V({}, p, te), function(L) {
4010
- var M = L.ref, ie = L.placerProps, ae = ie.placement, q = ie.maxHeight;
4011
- return /* @__PURE__ */ B.createElement(s, V({}, p, te, {
4012
- innerRef: M,
4013
- innerProps: {
4014
- onMouseDown: n.onMenuMouseDown,
4015
- onMouseMove: n.onMenuMouseMove,
4016
- id: n.getElementId("listbox")
4017
- },
4018
- isLoading: h,
4019
- placement: ae
4020
- }), /* @__PURE__ */ B.createElement(Yu, {
4021
- captureEnabled: f,
4022
- onTopArrive: X,
4023
- onBottomArrive: P,
4024
- lockEnabled: _
4025
- }, function(ee) {
4026
- return /* @__PURE__ */ B.createElement(c, V({}, p, {
4027
- innerRef: function(ve) {
4028
- n.getMenuListRef(ve), ee(ve);
4029
- },
4030
- isLoading: h,
4031
- maxHeight: q,
4032
- focusedOption: m
4033
- }), K);
4034
- }));
4035
- });
4036
- return z || T === "fixed" ? /* @__PURE__ */ B.createElement(l, V({}, p, {
4037
- appendTo: z,
4038
- controlElement: this.controlRef,
4039
- menuPlacement: S,
4040
- menuPosition: T
4041
- }), de) : de;
4042
- }
4043
- }, {
4044
- key: "renderFormField",
4045
- value: function() {
4046
- var n = this, a = this.props, o = a.delimiter, u = a.isDisabled, s = a.isMulti, c = a.name, l = a.required, d = this.state.selectValue;
4047
- if (l && !this.hasValue() && !u)
4048
- return /* @__PURE__ */ B.createElement(Uu, {
4049
- name: c,
4050
- onFocus: this.onValueInputFocus
4051
- });
4052
- if (!(!c || u))
4053
- if (s)
4054
- if (o) {
4055
- var g = d.map(function(m) {
4056
- return n.getOptionValue(m);
4057
- }).join(o);
4058
- return /* @__PURE__ */ B.createElement("input", {
4059
- name: c,
4060
- type: "hidden",
4061
- value: g
4062
- });
4063
- } else {
4064
- var v = d.length > 0 ? d.map(function(m, I) {
4065
- return /* @__PURE__ */ B.createElement("input", {
4066
- key: "i-".concat(I),
4067
- name: c,
4068
- type: "hidden",
4069
- value: n.getOptionValue(m)
4070
- });
4071
- }) : /* @__PURE__ */ B.createElement("input", {
4072
- name: c,
4073
- type: "hidden",
4074
- value: ""
4075
- });
4076
- return /* @__PURE__ */ B.createElement("div", null, v);
4077
- }
4078
- else {
4079
- var p = d[0] ? this.getOptionValue(d[0]) : "";
4080
- return /* @__PURE__ */ B.createElement("input", {
4081
- name: c,
4082
- type: "hidden",
4083
- value: p
4084
- });
4085
- }
4086
- }
4087
- }, {
4088
- key: "renderLiveRegion",
4089
- value: function() {
4090
- var n = this.commonProps, a = this.state, o = a.ariaSelection, u = a.focusedOption, s = a.focusedValue, c = a.isFocused, l = a.selectValue, d = this.getFocusableOptions();
4091
- return /* @__PURE__ */ B.createElement(wu, V({}, n, {
4092
- id: this.getElementId("live-region"),
4093
- ariaSelection: o,
4094
- focusedOption: u,
4095
- focusedValue: s,
4096
- isFocused: c,
4097
- selectValue: l,
4098
- focusableOptions: d
4099
- }));
4100
- }
4101
- }, {
4102
- key: "render",
4103
- value: function() {
4104
- var n = this.getComponents(), a = n.Control, o = n.IndicatorsContainer, u = n.SelectContainer, s = n.ValueContainer, c = this.props, l = c.className, d = c.id, g = c.isDisabled, v = c.menuIsOpen, p = this.state.isFocused, m = this.commonProps = this.getCommonProps();
4105
- return /* @__PURE__ */ B.createElement(u, V({}, m, {
4106
- className: l,
4107
- innerProps: {
4108
- id: d,
4109
- onKeyDown: this.onKeyDown
4110
- },
4111
- isDisabled: g,
4112
- isFocused: p
4113
- }), this.renderLiveRegion(), /* @__PURE__ */ B.createElement(a, V({}, m, {
4114
- innerRef: this.getControlRef,
4115
- innerProps: {
4116
- onMouseDown: this.onControlMouseDown,
4117
- onTouchEnd: this.onControlTouchEnd
4118
- },
4119
- isDisabled: g,
4120
- isFocused: p,
4121
- menuIsOpen: v
4122
- }), /* @__PURE__ */ B.createElement(s, V({}, m, {
4123
- isDisabled: g
4124
- }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ B.createElement(o, V({}, m, {
4125
- isDisabled: g
4126
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
4127
- }
4128
- }], [{
4129
- key: "getDerivedStateFromProps",
4130
- value: function(n, a) {
4131
- var o = a.prevProps, u = a.clearFocusValueOnUpdate, s = a.inputIsHiddenAfterUpdate, c = a.ariaSelection, l = a.isFocused, d = a.prevWasFocused, g = n.options, v = n.value, p = n.menuIsOpen, m = n.inputValue, I = n.isMulti, f = en(v), A = {};
4132
- if (o && (v !== o.value || g !== o.options || p !== o.menuIsOpen || m !== o.inputValue)) {
4133
- var h = p ? uo(n, f) : [], C = u ? oo(a, f) : null, b = so(a, h);
4134
- A = {
4135
- selectValue: f,
4136
- focusedOption: b,
4137
- focusedValue: C,
4138
- clearFocusValueOnUpdate: !1
4139
- };
4140
- }
4141
- var y = s != null && n !== o ? {
4142
- inputIsHidden: s,
4143
- inputIsHiddenAfterUpdate: void 0
4144
- } : {}, E = c, S = l && d;
4145
- return l && !S && (E = {
4146
- value: ke(I, f, f[0] || null),
4147
- options: f,
4148
- action: "initial-input-focus"
4149
- }, S = !d), (c == null ? void 0 : c.action) === "initial-input-focus" && (E = null), G(G(G({}, A), y), {}, {
4150
- prevProps: n,
4151
- ariaSelection: E,
4152
- prevWasFocused: S
4153
- });
4154
- }
4155
- }]), r;
4156
- }(vr);
4157
- lo.defaultProps = ao;
4158
- var go = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
4159
- function Ao(t) {
4160
- var e = t.defaultInputValue, r = e === void 0 ? "" : e, i = t.defaultMenuIsOpen, n = i === void 0 ? !1 : i, a = t.defaultValue, o = a === void 0 ? null : a, u = t.inputValue, s = t.menuIsOpen, c = t.onChange, l = t.onInputChange, d = t.onMenuClose, g = t.onMenuOpen, v = t.value, p = be(t, go), m = Ie(u !== void 0 ? u : r), I = ge(m, 2), f = I[0], A = I[1], h = Ie(s !== void 0 ? s : n), C = ge(h, 2), b = C[0], y = C[1], E = Ie(v !== void 0 ? v : o), S = ge(E, 2), T = S[0], z = S[1], _ = Y(function(U, re) {
4161
- typeof c == "function" && c(U, re), z(U);
4162
- }, [c]), H = Y(function(U, re) {
4163
- var te;
4164
- typeof l == "function" && (te = l(U, re)), A(te !== void 0 ? te : U);
4165
- }, [l]), $ = Y(function() {
4166
- typeof g == "function" && g(), y(!0);
4167
- }, [g]), X = Y(function() {
4168
- typeof d == "function" && d(), y(!1);
4169
- }, [d]), P = u !== void 0 ? u : f, j = s !== void 0 ? s : b, K = v !== void 0 ? v : T;
4170
- return G(G({}, p), {}, {
4171
- inputValue: P,
4172
- menuIsOpen: j,
4173
- onChange: _,
4174
- onInputChange: H,
4175
- onMenuClose: X,
4176
- onMenuOpen: $,
4177
- value: K
4178
- });
4179
- }
4180
- function bo(t) {
4181
- return /* @__PURE__ */ se.jsx(at.DropdownIndicator, { ...t, className: "p-0", children: /* @__PURE__ */ se.jsx("button", { type: "button", className: "px-2 cursor-pointer", children: /* @__PURE__ */ se.jsx(
4182
- "svg",
4183
- {
4184
- width: "16",
4185
- height: "14",
4186
- fill: "none",
4187
- xmlns: "http://www.w3.org/2000/svg",
4188
- children: /* @__PURE__ */ se.jsx(
4189
- "path",
4190
- {
4191
- fillRule: "evenodd",
4192
- clipRule: "evenodd",
4193
- d: "M4.107 4.902a.314.314 0 0 1 0-.471l3.636-3.333a.387.387 0 0 1 .514 0l3.636 3.333a.314.314 0 0 1 0 .471.387.387 0 0 1-.514 0L8 1.805 4.62 4.902a.387.387 0 0 1-.513 0ZM11.893 9.098a.314.314 0 0 1 0 .471l-3.636 3.333a.388.388 0 0 1-.514 0L4.107 9.57a.314.314 0 0 1 0-.471.387.387 0 0 1 .514 0L8 12.195l3.38-3.097a.387.387 0 0 1 .513 0Z",
4194
- fill: t.isDisabled ? "#DBDCDC" : "#101111",
4195
- stroke: t.isDisabled ? "#DBDCDC" : "#101111",
4196
- strokeWidth: ".8",
4197
- strokeLinecap: "round",
4198
- strokeLinejoin: "round"
4199
- }
4200
- )
4201
- }
4202
- ) }) });
4203
- }
4204
- function po(t) {
4205
- return /* @__PURE__ */ se.jsx(at.ClearIndicator, { ...t, className: "p-0", children: /* @__PURE__ */ se.jsx("button", { type: "button", className: "px-2 cursor-pointer", children: /* @__PURE__ */ se.jsx(Cn, {}) }) });
4206
- }
4207
- function fo(t) {
4208
- return /* @__PURE__ */ se.jsx(at.MultiValueRemove, { ...t, children: /* @__PURE__ */ se.jsx("button", { type: "button", className: "cursor-pointer", children: /* @__PURE__ */ se.jsx(Cn, { weight: "bold" }) }) });
4209
- }
4210
- const yo = {
4211
- DropdownIndicator: bo,
4212
- IndicatorSeparator: () => null,
4213
- ClearIndicator: po,
4214
- MultiValueRemove: fo
4215
- };
4216
- export {
4217
- lo as S,
4218
- be as _,
4219
- ge as a,
4220
- G as b,
4221
- V as c,
4222
- Co as h,
4223
- yo as s,
4224
- Ao as u
4225
- };