@scbt-ecom/ui 0.17.4 → 0.18.1

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 (36) hide show
  1. package/dist/CustomLink-CcSUq55J.js +4505 -0
  2. package/dist/CustomLink-CcSUq55J.js.map +1 -0
  3. package/dist/scrollToElement-B-reg4jF.js.map +1 -1
  4. package/dist/shared/ui/CustomLink.d.ts +1 -1
  5. package/dist/shared/ui/accordion/Accordion.d.ts +14 -8
  6. package/dist/shared/ui/accordion/ui/AccordionHeader.d.ts +3 -2
  7. package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
  8. package/dist/shared/utils/scrollToElement.d.ts +1 -1
  9. package/dist/sprites/arrows.svg +1 -1
  10. package/dist/style.css +1 -1
  11. package/dist/ui.js +7987 -8385
  12. package/dist/ui.js.map +1 -1
  13. package/dist/utils-tailwind.css +2 -8
  14. package/dist/widget.js +349 -279
  15. package/dist/widget.js.map +1 -1
  16. package/dist/widgets/footer/Footer.d.ts +1 -17
  17. package/dist/widgets/footer/model/types.d.ts +22 -0
  18. package/dist/widgets/footer/ui/Copyright.d.ts +1 -2
  19. package/dist/widgets/footer/ui/index.d.ts +0 -1
  20. package/dist/widgets/index.d.ts +1 -1
  21. package/dist/widgets/interLinking/InterLinking.d.ts +16 -0
  22. package/dist/widgets/interLinking/index.d.ts +2 -0
  23. package/dist/widgets/interLinking/model/helpers.d.ts +140 -0
  24. package/dist/widgets/interLinking/model/types.d.ts +6 -0
  25. package/dist/widgets/interLinking/ui/Column.d.ts +13 -0
  26. package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +15 -0
  27. package/dist/widgets/interLinking/ui/LinksList.d.ts +11 -0
  28. package/dist/widgets/interLinking/ui/index.d.ts +1 -0
  29. package/package.json +1 -1
  30. package/dist/CustomLink-DmCJLTWC.js +0 -4090
  31. package/dist/CustomLink-DmCJLTWC.js.map +0 -1
  32. package/dist/client.d.ts +0 -12
  33. package/dist/hybrid.d.ts +0 -24
  34. package/dist/shared/ui/accordion/model/types.d.ts +0 -17
  35. package/dist/widgets/baseForm/BaseForm.d.ts +0 -3
  36. package/dist/widgets/baseForm/index.d.ts +0 -1
@@ -0,0 +1,4505 @@
1
+ import { a as Wo, c as L } from "./cn-DIfn7EPB.js";
2
+ import * as d from "react";
3
+ import H, { forwardRef as rr, useLayoutEffect as $o, useEffect as Vo, useState as zo } from "react";
4
+ import * as or from "react-dom";
5
+ import Ho from "react-dom";
6
+ var Kt = { exports: {} }, Ge = {};
7
+ /**
8
+ * @license React
9
+ * react-jsx-runtime.production.min.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var kn;
17
+ function Uo() {
18
+ if (kn) return Ge;
19
+ kn = 1;
20
+ var e = H, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function a(s, u, l) {
22
+ var f, p = {}, v = null, m = null;
23
+ l !== void 0 && (v = "" + l), u.key !== void 0 && (v = "" + u.key), u.ref !== void 0 && (m = u.ref);
24
+ for (f in u) r.call(u, f) && !i.hasOwnProperty(f) && (p[f] = u[f]);
25
+ if (s && s.defaultProps) for (f in u = s.defaultProps, u) p[f] === void 0 && (p[f] = u[f]);
26
+ return { $$typeof: t, type: s, key: v, ref: m, props: p, _owner: o.current };
27
+ }
28
+ return Ge.Fragment = n, Ge.jsx = a, Ge.jsxs = a, Ge;
29
+ }
30
+ var qe = {};
31
+ /**
32
+ * @license React
33
+ * react-jsx-runtime.development.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+ var jn;
41
+ function Yo() {
42
+ return jn || (jn = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var e = H, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), x = Symbol.iterator, h = "@@iterator";
44
+ function g(c) {
45
+ if (c === null || typeof c != "object")
46
+ return null;
47
+ var C = x && c[x] || c[h];
48
+ return typeof C == "function" ? C : null;
49
+ }
50
+ var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function b(c) {
52
+ {
53
+ for (var C = arguments.length, P = new Array(C > 1 ? C - 1 : 0), O = 1; O < C; O++)
54
+ P[O - 1] = arguments[O];
55
+ E("error", c, P);
56
+ }
57
+ }
58
+ function E(c, C, P) {
59
+ {
60
+ var O = w.ReactDebugCurrentFrame, M = O.getStackAddendum();
61
+ M !== "" && (C += "%s", P = P.concat([M]));
62
+ var B = P.map(function(k) {
63
+ return String(k);
64
+ });
65
+ B.unshift("Warning: " + C), Function.prototype.apply.call(console[c], console, B);
66
+ }
67
+ }
68
+ var R = !1, A = !1, _ = !1, S = !1, j = !1, F;
69
+ F = Symbol.for("react.module.reference");
70
+ function W(c) {
71
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || j || c === o || c === l || c === f || S || c === m || R || A || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === p || c.$$typeof === a || c.$$typeof === s || c.$$typeof === u || // This needs to include all possible module reference object
72
+ // types supported by any Flight configuration anywhere since
73
+ // we don't know which Flight build this will end up being used
74
+ // with.
75
+ c.$$typeof === F || c.getModuleId !== void 0));
76
+ }
77
+ function G(c, C, P) {
78
+ var O = c.displayName;
79
+ if (O)
80
+ return O;
81
+ var M = C.displayName || C.name || "";
82
+ return M !== "" ? P + "(" + M + ")" : P;
83
+ }
84
+ function K(c) {
85
+ return c.displayName || "Context";
86
+ }
87
+ function D(c) {
88
+ if (c == null)
89
+ return null;
90
+ if (typeof c.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
91
+ return c.displayName || c.name || null;
92
+ if (typeof c == "string")
93
+ return c;
94
+ switch (c) {
95
+ case r:
96
+ return "Fragment";
97
+ case n:
98
+ return "Portal";
99
+ case i:
100
+ return "Profiler";
101
+ case o:
102
+ return "StrictMode";
103
+ case l:
104
+ return "Suspense";
105
+ case f:
106
+ return "SuspenseList";
107
+ }
108
+ if (typeof c == "object")
109
+ switch (c.$$typeof) {
110
+ case s:
111
+ var C = c;
112
+ return K(C) + ".Consumer";
113
+ case a:
114
+ var P = c;
115
+ return K(P._context) + ".Provider";
116
+ case u:
117
+ return G(c, c.render, "ForwardRef");
118
+ case p:
119
+ var O = c.displayName || null;
120
+ return O !== null ? O : D(c.type) || "Memo";
121
+ case v: {
122
+ var M = c, B = M._payload, k = M._init;
123
+ try {
124
+ return D(k(B));
125
+ } catch {
126
+ return null;
127
+ }
128
+ }
129
+ }
130
+ return null;
131
+ }
132
+ var I = Object.assign, X = 0, $, V, N, Y, Q, Ee, nt;
133
+ function rt() {
134
+ }
135
+ rt.__reactDisabledLog = !0;
136
+ function Tt() {
137
+ {
138
+ if (X === 0) {
139
+ $ = console.log, V = console.info, N = console.warn, Y = console.error, Q = console.group, Ee = console.groupCollapsed, nt = console.groupEnd;
140
+ var c = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ value: rt,
144
+ writable: !0
145
+ };
146
+ Object.defineProperties(console, {
147
+ info: c,
148
+ log: c,
149
+ warn: c,
150
+ error: c,
151
+ group: c,
152
+ groupCollapsed: c,
153
+ groupEnd: c
154
+ });
155
+ }
156
+ X++;
157
+ }
158
+ }
159
+ function Nt() {
160
+ {
161
+ if (X--, X === 0) {
162
+ var c = {
163
+ configurable: !0,
164
+ enumerable: !0,
165
+ writable: !0
166
+ };
167
+ Object.defineProperties(console, {
168
+ log: I({}, c, {
169
+ value: $
170
+ }),
171
+ info: I({}, c, {
172
+ value: V
173
+ }),
174
+ warn: I({}, c, {
175
+ value: N
176
+ }),
177
+ error: I({}, c, {
178
+ value: Y
179
+ }),
180
+ group: I({}, c, {
181
+ value: Q
182
+ }),
183
+ groupCollapsed: I({}, c, {
184
+ value: Ee
185
+ }),
186
+ groupEnd: I({}, c, {
187
+ value: nt
188
+ })
189
+ });
190
+ }
191
+ X < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ }
193
+ }
194
+ var Ye = w.ReactCurrentDispatcher, Te;
195
+ function Re(c, C, P) {
196
+ {
197
+ if (Te === void 0)
198
+ try {
199
+ throw Error();
200
+ } catch (M) {
201
+ var O = M.stack.trim().match(/\n( *(at )?)/);
202
+ Te = O && O[1] || "";
203
+ }
204
+ return `
205
+ ` + Te + c;
206
+ }
207
+ }
208
+ var Ne = !1, Pe;
209
+ {
210
+ var ot = typeof WeakMap == "function" ? WeakMap : Map;
211
+ Pe = new ot();
212
+ }
213
+ function Ke(c, C) {
214
+ if (!c || Ne)
215
+ return "";
216
+ {
217
+ var P = Pe.get(c);
218
+ if (P !== void 0)
219
+ return P;
220
+ }
221
+ var O;
222
+ Ne = !0;
223
+ var M = Error.prepareStackTrace;
224
+ Error.prepareStackTrace = void 0;
225
+ var B;
226
+ B = Ye.current, Ye.current = null, Tt();
227
+ try {
228
+ if (C) {
229
+ var k = function() {
230
+ throw Error();
231
+ };
232
+ if (Object.defineProperty(k.prototype, "props", {
233
+ set: function() {
234
+ throw Error();
235
+ }
236
+ }), typeof Reflect == "object" && Reflect.construct) {
237
+ try {
238
+ Reflect.construct(k, []);
239
+ } catch (J) {
240
+ O = J;
241
+ }
242
+ Reflect.construct(c, [], k);
243
+ } else {
244
+ try {
245
+ k.call();
246
+ } catch (J) {
247
+ O = J;
248
+ }
249
+ c.call(k.prototype);
250
+ }
251
+ } else {
252
+ try {
253
+ throw Error();
254
+ } catch (J) {
255
+ O = J;
256
+ }
257
+ c();
258
+ }
259
+ } catch (J) {
260
+ if (J && O && typeof J.stack == "string") {
261
+ for (var T = J.stack.split(`
262
+ `), q = O.stack.split(`
263
+ `), z = T.length - 1, U = q.length - 1; z >= 1 && U >= 0 && T[z] !== q[U]; )
264
+ U--;
265
+ for (; z >= 1 && U >= 0; z--, U--)
266
+ if (T[z] !== q[U]) {
267
+ if (z !== 1 || U !== 1)
268
+ do
269
+ if (z--, U--, U < 0 || T[z] !== q[U]) {
270
+ var ne = `
271
+ ` + T[z].replace(" at new ", " at ");
272
+ return c.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", c.displayName)), typeof c == "function" && Pe.set(c, ne), ne;
273
+ }
274
+ while (z >= 1 && U >= 0);
275
+ break;
276
+ }
277
+ }
278
+ } finally {
279
+ Ne = !1, Ye.current = B, Nt(), Error.prepareStackTrace = M;
280
+ }
281
+ var De = c ? c.displayName || c.name : "", Oe = De ? Re(De) : "";
282
+ return typeof c == "function" && Pe.set(c, Oe), Oe;
283
+ }
284
+ function Ae(c, C, P) {
285
+ return Ke(c, !1);
286
+ }
287
+ function it(c) {
288
+ var C = c.prototype;
289
+ return !!(C && C.isReactComponent);
290
+ }
291
+ function ke(c, C, P) {
292
+ if (c == null)
293
+ return "";
294
+ if (typeof c == "function")
295
+ return Ke(c, it(c));
296
+ if (typeof c == "string")
297
+ return Re(c);
298
+ switch (c) {
299
+ case l:
300
+ return Re("Suspense");
301
+ case f:
302
+ return Re("SuspenseList");
303
+ }
304
+ if (typeof c == "object")
305
+ switch (c.$$typeof) {
306
+ case u:
307
+ return Ae(c.render);
308
+ case p:
309
+ return ke(c.type, C, P);
310
+ case v: {
311
+ var O = c, M = O._payload, B = O._init;
312
+ try {
313
+ return ke(B(M), C, P);
314
+ } catch {
315
+ }
316
+ }
317
+ }
318
+ return "";
319
+ }
320
+ var Se = Object.prototype.hasOwnProperty, at = {}, st = w.ReactDebugCurrentFrame;
321
+ function fe(c) {
322
+ if (c) {
323
+ var C = c._owner, P = ke(c.type, c._source, C ? C.type : null);
324
+ st.setExtraStackFrame(P);
325
+ } else
326
+ st.setExtraStackFrame(null);
327
+ }
328
+ function yo(c, C, P, O, M) {
329
+ {
330
+ var B = Function.call.bind(Se);
331
+ for (var k in c)
332
+ if (B(c, k)) {
333
+ var T = void 0;
334
+ try {
335
+ if (typeof c[k] != "function") {
336
+ var q = Error((O || "React class") + ": " + P + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw q.name = "Invariant Violation", q;
338
+ }
339
+ T = c[k](C, k, O, P, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (z) {
341
+ T = z;
342
+ }
343
+ T && !(T instanceof Error) && (fe(M), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", P, k, typeof T), fe(null)), T instanceof Error && !(T.message in at) && (at[T.message] = !0, fe(M), b("Failed %s type: %s", P, T.message), fe(null));
344
+ }
345
+ }
346
+ }
347
+ var wo = Array.isArray;
348
+ function kt(c) {
349
+ return wo(c);
350
+ }
351
+ function bo(c) {
352
+ {
353
+ var C = typeof Symbol == "function" && Symbol.toStringTag, P = C && c[Symbol.toStringTag] || c.constructor.name || "Object";
354
+ return P;
355
+ }
356
+ }
357
+ function xo(c) {
358
+ try {
359
+ return xn(c), !1;
360
+ } catch {
361
+ return !0;
362
+ }
363
+ }
364
+ function xn(c) {
365
+ return "" + c;
366
+ }
367
+ function Cn(c) {
368
+ if (xo(c))
369
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bo(c)), xn(c);
370
+ }
371
+ var Xe = w.ReactCurrentOwner, Co = {
372
+ key: !0,
373
+ ref: !0,
374
+ __self: !0,
375
+ __source: !0
376
+ }, En, Rn, jt;
377
+ jt = {};
378
+ function Eo(c) {
379
+ if (Se.call(c, "ref")) {
380
+ var C = Object.getOwnPropertyDescriptor(c, "ref").get;
381
+ if (C && C.isReactWarning)
382
+ return !1;
383
+ }
384
+ return c.ref !== void 0;
385
+ }
386
+ function Ro(c) {
387
+ if (Se.call(c, "key")) {
388
+ var C = Object.getOwnPropertyDescriptor(c, "key").get;
389
+ if (C && C.isReactWarning)
390
+ return !1;
391
+ }
392
+ return c.key !== void 0;
393
+ }
394
+ function Po(c, C) {
395
+ if (typeof c.ref == "string" && Xe.current && C && Xe.current.stateNode !== C) {
396
+ var P = D(Xe.current.type);
397
+ jt[P] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(Xe.current.type), c.ref), jt[P] = !0);
398
+ }
399
+ }
400
+ function Ao(c, C) {
401
+ {
402
+ var P = function() {
403
+ En || (En = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", C));
404
+ };
405
+ P.isReactWarning = !0, Object.defineProperty(c, "key", {
406
+ get: P,
407
+ configurable: !0
408
+ });
409
+ }
410
+ }
411
+ function So(c, C) {
412
+ {
413
+ var P = function() {
414
+ Rn || (Rn = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", C));
415
+ };
416
+ P.isReactWarning = !0, Object.defineProperty(c, "ref", {
417
+ get: P,
418
+ configurable: !0
419
+ });
420
+ }
421
+ }
422
+ var Oo = function(c, C, P, O, M, B, k) {
423
+ var T = {
424
+ // This tag allows us to uniquely identify this as a React Element
425
+ $$typeof: t,
426
+ // Built-in properties that belong on the element
427
+ type: c,
428
+ key: C,
429
+ ref: P,
430
+ props: k,
431
+ // Record the component responsible for creating this element.
432
+ _owner: B
433
+ };
434
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
435
+ configurable: !1,
436
+ enumerable: !1,
437
+ writable: !0,
438
+ value: !1
439
+ }), Object.defineProperty(T, "_self", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !1,
443
+ value: O
444
+ }), Object.defineProperty(T, "_source", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: M
449
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
450
+ };
451
+ function _o(c, C, P, O, M) {
452
+ {
453
+ var B, k = {}, T = null, q = null;
454
+ P !== void 0 && (Cn(P), T = "" + P), Ro(C) && (Cn(C.key), T = "" + C.key), Eo(C) && (q = C.ref, Po(C, M));
455
+ for (B in C)
456
+ Se.call(C, B) && !Co.hasOwnProperty(B) && (k[B] = C[B]);
457
+ if (c && c.defaultProps) {
458
+ var z = c.defaultProps;
459
+ for (B in z)
460
+ k[B] === void 0 && (k[B] = z[B]);
461
+ }
462
+ if (T || q) {
463
+ var U = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
464
+ T && Ao(k, U), q && So(k, U);
465
+ }
466
+ return Oo(c, T, q, M, O, Xe.current, k);
467
+ }
468
+ }
469
+ var Dt = w.ReactCurrentOwner, Pn = w.ReactDebugCurrentFrame;
470
+ function je(c) {
471
+ if (c) {
472
+ var C = c._owner, P = ke(c.type, c._source, C ? C.type : null);
473
+ Pn.setExtraStackFrame(P);
474
+ } else
475
+ Pn.setExtraStackFrame(null);
476
+ }
477
+ var Mt;
478
+ Mt = !1;
479
+ function It(c) {
480
+ return typeof c == "object" && c !== null && c.$$typeof === t;
481
+ }
482
+ function An() {
483
+ {
484
+ if (Dt.current) {
485
+ var c = D(Dt.current.type);
486
+ if (c)
487
+ return `
488
+
489
+ Check the render method of \`` + c + "`.";
490
+ }
491
+ return "";
492
+ }
493
+ }
494
+ function To(c) {
495
+ return "";
496
+ }
497
+ var Sn = {};
498
+ function No(c) {
499
+ {
500
+ var C = An();
501
+ if (!C) {
502
+ var P = typeof c == "string" ? c : c.displayName || c.name;
503
+ P && (C = `
504
+
505
+ Check the top-level render call using <` + P + ">.");
506
+ }
507
+ return C;
508
+ }
509
+ }
510
+ function On(c, C) {
511
+ {
512
+ if (!c._store || c._store.validated || c.key != null)
513
+ return;
514
+ c._store.validated = !0;
515
+ var P = No(C);
516
+ if (Sn[P])
517
+ return;
518
+ Sn[P] = !0;
519
+ var O = "";
520
+ c && c._owner && c._owner !== Dt.current && (O = " It was passed a child from " + D(c._owner.type) + "."), je(c), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, O), je(null);
521
+ }
522
+ }
523
+ function _n(c, C) {
524
+ {
525
+ if (typeof c != "object")
526
+ return;
527
+ if (kt(c))
528
+ for (var P = 0; P < c.length; P++) {
529
+ var O = c[P];
530
+ It(O) && On(O, C);
531
+ }
532
+ else if (It(c))
533
+ c._store && (c._store.validated = !0);
534
+ else if (c) {
535
+ var M = g(c);
536
+ if (typeof M == "function" && M !== c.entries)
537
+ for (var B = M.call(c), k; !(k = B.next()).done; )
538
+ It(k.value) && On(k.value, C);
539
+ }
540
+ }
541
+ }
542
+ function ko(c) {
543
+ {
544
+ var C = c.type;
545
+ if (C == null || typeof C == "string")
546
+ return;
547
+ var P;
548
+ if (typeof C == "function")
549
+ P = C.propTypes;
550
+ else if (typeof C == "object" && (C.$$typeof === u || // Note: Memo only checks outer props here.
551
+ // Inner props are checked in the reconciler.
552
+ C.$$typeof === p))
553
+ P = C.propTypes;
554
+ else
555
+ return;
556
+ if (P) {
557
+ var O = D(C);
558
+ yo(P, c.props, "prop", O, c);
559
+ } else if (C.PropTypes !== void 0 && !Mt) {
560
+ Mt = !0;
561
+ var M = D(C);
562
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
563
+ }
564
+ typeof C.getDefaultProps == "function" && !C.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ }
566
+ }
567
+ function jo(c) {
568
+ {
569
+ for (var C = Object.keys(c.props), P = 0; P < C.length; P++) {
570
+ var O = C[P];
571
+ if (O !== "children" && O !== "key") {
572
+ je(c), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), je(null);
573
+ break;
574
+ }
575
+ }
576
+ c.ref !== null && (je(c), b("Invalid attribute `ref` supplied to `React.Fragment`."), je(null));
577
+ }
578
+ }
579
+ var Tn = {};
580
+ function Nn(c, C, P, O, M, B) {
581
+ {
582
+ var k = W(c);
583
+ if (!k) {
584
+ var T = "";
585
+ (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
586
+ var q = To();
587
+ q ? T += q : T += An();
588
+ var z;
589
+ c === null ? z = "null" : kt(c) ? z = "array" : c !== void 0 && c.$$typeof === t ? (z = "<" + (D(c.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : z = typeof c, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, T);
590
+ }
591
+ var U = _o(c, C, P, M, B);
592
+ if (U == null)
593
+ return U;
594
+ if (k) {
595
+ var ne = C.children;
596
+ if (ne !== void 0)
597
+ if (O)
598
+ if (kt(ne)) {
599
+ for (var De = 0; De < ne.length; De++)
600
+ _n(ne[De], c);
601
+ Object.freeze && Object.freeze(ne);
602
+ } else
603
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ else
605
+ _n(ne, c);
606
+ }
607
+ if (Se.call(C, "key")) {
608
+ var Oe = D(c), J = Object.keys(C).filter(function(Bo) {
609
+ return Bo !== "key";
610
+ }), Lt = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
611
+ if (!Tn[Oe + Lt]) {
612
+ var Fo = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
613
+ b(`A props object containing a "key" prop is being spread into JSX:
614
+ let props = %s;
615
+ <%s {...props} />
616
+ React keys must be passed directly to JSX without using spread:
617
+ let props = %s;
618
+ <%s key={someKey} {...props} />`, Lt, Oe, Fo, Oe), Tn[Oe + Lt] = !0;
619
+ }
620
+ }
621
+ return c === r ? jo(U) : ko(U), U;
622
+ }
623
+ }
624
+ function Do(c, C, P) {
625
+ return Nn(c, C, P, !0);
626
+ }
627
+ function Mo(c, C, P) {
628
+ return Nn(c, C, P, !1);
629
+ }
630
+ var Io = Mo, Lo = Do;
631
+ qe.Fragment = r, qe.jsx = Io, qe.jsxs = Lo;
632
+ }()), qe;
633
+ }
634
+ process.env.NODE_ENV === "production" ? Kt.exports = Uo() : Kt.exports = Yo();
635
+ var y = Kt.exports;
636
+ const Dn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = Wo, ze = (e, t) => (n) => {
637
+ var r;
638
+ if ((t == null ? void 0 : t.variants) == null) return Mn(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
639
+ const { variants: o, defaultVariants: i } = t, a = Object.keys(o).map((l) => {
640
+ const f = n == null ? void 0 : n[l], p = i == null ? void 0 : i[l];
641
+ if (f === null) return null;
642
+ const v = Dn(f) || Dn(p);
643
+ return o[l][v];
644
+ }), s = n && Object.entries(n).reduce((l, f) => {
645
+ let [p, v] = f;
646
+ return v === void 0 || (l[p] = v), l;
647
+ }, {}), u = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, f) => {
648
+ let { class: p, className: v, ...m } = f;
649
+ return Object.entries(m).every((x) => {
650
+ let [h, g] = x;
651
+ return Array.isArray(g) ? g.includes({
652
+ ...i,
653
+ ...s
654
+ }[h]) : {
655
+ ...i,
656
+ ...s
657
+ }[h] === g;
658
+ }) ? [
659
+ ...l,
660
+ p,
661
+ v
662
+ ] : l;
663
+ }, []);
664
+ return Mn(e, a, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
665
+ }, pc = ({ children: e, className: t, ...n }) => /* @__PURE__ */ y.jsx("section", { className: L("pb-16 desktop:pb-20", t), ...n, children: e }), hc = ({ children: e, offset: t = !0, className: n, ...r }) => /* @__PURE__ */ y.jsx("div", { className: L("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": t }, n), ...r, children: e }), Ko = ze("", {
666
+ variants: {
667
+ position: {
668
+ absolute: "absolute",
669
+ static: "static",
670
+ fixed: "fixed"
671
+ }
672
+ },
673
+ defaultVariants: {
674
+ position: "static"
675
+ }
676
+ }), Xo = ze("border-2 border-solid block animate-spin rounded-full", {
677
+ variants: {
678
+ intent: {
679
+ primary: "border-white border-b-transparent",
680
+ secondary: "border-primary-default border-b-transparent"
681
+ },
682
+ size: {
683
+ sm: "size-5 border-2",
684
+ md: "size-8 border-2",
685
+ lg: "size-12 border-4"
686
+ }
687
+ },
688
+ defaultVariants: {
689
+ size: "md",
690
+ intent: "primary"
691
+ }
692
+ }), Go = ({ size: e = "md", classes: t, intent: n = "secondary", position: r = "static", text: o, ...i }) => /* @__PURE__ */ y.jsxs("div", { className: L(Ko({ position: r }), { "flex flex-col items-center gap-2": o }, t == null ? void 0 : t.wrapper), children: [
693
+ /* @__PURE__ */ y.jsx("span", { "data-testid": "loader", className: L(Xo({ size: e, intent: n }), t == null ? void 0 : t.loader), ...i }),
694
+ o && /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-l text-color-dark", t == null ? void 0 : t.text), children: o })
695
+ ] }), qo = (e) => {
696
+ switch (e) {
697
+ case "ghost":
698
+ case "secondary":
699
+ return "secondary";
700
+ case "primary":
701
+ case "negative":
702
+ return "primary";
703
+ default:
704
+ return e;
705
+ }
706
+ }, Jo = ze(
707
+ "relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
708
+ {
709
+ variants: {
710
+ intent: {
711
+ primary: "bg-color-primary-default text-color-white outline-offset-[3px] hover:bg-color-primary-hover active:bg-color-primary-hover focus:bg-color-primary-default focus:outline-primary-focus disabled:bg-color-primary-disabled",
712
+ secondary: "bg-transparent text-color-primary-default border border-solid border-primary-default hover:bg-color-primary-tr-hover active:bg-color-primary-tr-pressed active:border-primary-hover focus:outline-primary-focus focus:bg-color-primary-tr-focus disabled:bg-color-blue-grey-200 disabled:text-color-primary-disabled disabled:border-transparent",
713
+ ghost: "bg-transparent text-color-primary-default hover:bg-color-primary-tr-hover hover:text-color-primary-hover focus:bg-color-primary-tr-focus focus:outline-primary-focus active:bg-color-primary-tr-pressed active:text-color-primary-hover disabled:text-color-primary-disabled disabled:bg-transparent",
714
+ negative: "bg-color-secondary-default text-color-white outline-offset-[3px] hover:bg-color-secondary-hover disabled:bg-color-secondary-disabled active:bg-color-secondary-hover focus:bg-color-secondary-default focus:outline-primary-focus"
715
+ },
716
+ size: {
717
+ sm: "h-10",
718
+ md: "h-12",
719
+ lg: "h-14"
720
+ },
721
+ textFormat: {
722
+ capitalize: "capitalize",
723
+ uppercase: "uppercase",
724
+ lowercase: "lowercase",
725
+ initial: "initial"
726
+ },
727
+ isFull: {
728
+ true: "w-full px-4"
729
+ },
730
+ isLoading: {
731
+ true: "",
732
+ false: ""
733
+ }
734
+ },
735
+ compoundVariants: [
736
+ {
737
+ intent: "primary",
738
+ isLoading: !0,
739
+ class: "!bg-color-primary-default"
740
+ },
741
+ {
742
+ intent: "secondary",
743
+ isLoading: !0,
744
+ class: "!bg-color-transparent !border-primary-hover"
745
+ },
746
+ {
747
+ intent: "ghost",
748
+ isLoading: !0,
749
+ class: "!bg-color-blue-grey-200"
750
+ },
751
+ {
752
+ intent: "negative",
753
+ isLoading: !0,
754
+ class: "!bg-color-secondary-default"
755
+ }
756
+ ],
757
+ defaultVariants: {
758
+ intent: "primary",
759
+ size: "md",
760
+ textFormat: "initial",
761
+ isFull: !1
762
+ }
763
+ }
764
+ ), vc = rr(
765
+ ({
766
+ intent: e,
767
+ size: t,
768
+ className: n,
769
+ children: r,
770
+ type: o = "button",
771
+ iconLeft: i,
772
+ iconRight: a,
773
+ disabled: s = !1,
774
+ isLoading: u = !1,
775
+ isFull: l = !1,
776
+ textFormat: f,
777
+ ...p
778
+ }, v) => /* @__PURE__ */ y.jsx(
779
+ "button",
780
+ {
781
+ ref: v,
782
+ type: o,
783
+ disabled: s || u,
784
+ className: L(Jo({ intent: e, size: t, textFormat: f, isLoading: u, isFull: l }), n),
785
+ ...p,
786
+ children: u ? /* @__PURE__ */ y.jsx(Go, { size: "sm", intent: qo(e) }) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
787
+ i && /* @__PURE__ */ y.jsx("span", { className: "flex size-5 items-center justify-center", children: i }),
788
+ r,
789
+ a && /* @__PURE__ */ y.jsx("span", { className: "flex size-5 items-center justify-center", children: a })
790
+ ] })
791
+ }
792
+ )
793
+ ), mc = ({ phone: e, text: t, classes: n, ...r }) => /* @__PURE__ */ y.jsxs("div", { className: L("flex w-max flex-col", n == null ? void 0 : n.wrapper), ...r, children: [
794
+ /* @__PURE__ */ y.jsx(
795
+ "a",
796
+ {
797
+ href: `tel:${e}`,
798
+ className: L("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.link),
799
+ children: e
800
+ }
801
+ ),
802
+ /* @__PURE__ */ y.jsx("p", { className: L("desk-body-regular-s text-color-tetriary", n == null ? void 0 : n.text), children: t })
803
+ ] }), gc = ({ children: e, className: t }) => /* @__PURE__ */ y.jsx(
804
+ "span",
805
+ {
806
+ className: L(
807
+ "desk-body-regular-m flex min-h-6 min-w-6 items-center justify-center text-nowrap rounded-full bg-color-primary-default px-2 py-[2px] text-color-white",
808
+ t
809
+ ),
810
+ children: e
811
+ }
812
+ ), Zo = ["top", "right", "bottom", "left"], ge = Math.min, ee = Math.max, gt = Math.round, ct = Math.floor, se = (e) => ({
813
+ x: e,
814
+ y: e
815
+ }), Qo = {
816
+ left: "right",
817
+ right: "left",
818
+ bottom: "top",
819
+ top: "bottom"
820
+ }, ei = {
821
+ start: "end",
822
+ end: "start"
823
+ };
824
+ function Xt(e, t, n) {
825
+ return ee(e, ge(t, n));
826
+ }
827
+ function pe(e, t) {
828
+ return typeof e == "function" ? e(t) : e;
829
+ }
830
+ function he(e) {
831
+ return e.split("-")[0];
832
+ }
833
+ function He(e) {
834
+ return e.split("-")[1];
835
+ }
836
+ function tn(e) {
837
+ return e === "x" ? "y" : "x";
838
+ }
839
+ function nn(e) {
840
+ return e === "y" ? "height" : "width";
841
+ }
842
+ function ye(e) {
843
+ return ["top", "bottom"].includes(he(e)) ? "y" : "x";
844
+ }
845
+ function rn(e) {
846
+ return tn(ye(e));
847
+ }
848
+ function ti(e, t, n) {
849
+ n === void 0 && (n = !1);
850
+ const r = He(e), o = rn(e), i = nn(o);
851
+ let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
852
+ return t.reference[i] > t.floating[i] && (a = yt(a)), [a, yt(a)];
853
+ }
854
+ function ni(e) {
855
+ const t = yt(e);
856
+ return [Gt(e), t, Gt(t)];
857
+ }
858
+ function Gt(e) {
859
+ return e.replace(/start|end/g, (t) => ei[t]);
860
+ }
861
+ function ri(e, t, n) {
862
+ const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
863
+ switch (e) {
864
+ case "top":
865
+ case "bottom":
866
+ return n ? t ? o : r : t ? r : o;
867
+ case "left":
868
+ case "right":
869
+ return t ? i : a;
870
+ default:
871
+ return [];
872
+ }
873
+ }
874
+ function oi(e, t, n, r) {
875
+ const o = He(e);
876
+ let i = ri(he(e), n === "start", r);
877
+ return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(Gt)))), i;
878
+ }
879
+ function yt(e) {
880
+ return e.replace(/left|right|bottom|top/g, (t) => Qo[t]);
881
+ }
882
+ function ii(e) {
883
+ return {
884
+ top: 0,
885
+ right: 0,
886
+ bottom: 0,
887
+ left: 0,
888
+ ...e
889
+ };
890
+ }
891
+ function ir(e) {
892
+ return typeof e != "number" ? ii(e) : {
893
+ top: e,
894
+ right: e,
895
+ bottom: e,
896
+ left: e
897
+ };
898
+ }
899
+ function wt(e) {
900
+ const {
901
+ x: t,
902
+ y: n,
903
+ width: r,
904
+ height: o
905
+ } = e;
906
+ return {
907
+ width: r,
908
+ height: o,
909
+ top: n,
910
+ left: t,
911
+ right: t + r,
912
+ bottom: n + o,
913
+ x: t,
914
+ y: n
915
+ };
916
+ }
917
+ function In(e, t, n) {
918
+ let {
919
+ reference: r,
920
+ floating: o
921
+ } = e;
922
+ const i = ye(t), a = rn(t), s = nn(a), u = he(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, p = r.y + r.height / 2 - o.height / 2, v = r[s] / 2 - o[s] / 2;
923
+ let m;
924
+ switch (u) {
925
+ case "top":
926
+ m = {
927
+ x: f,
928
+ y: r.y - o.height
929
+ };
930
+ break;
931
+ case "bottom":
932
+ m = {
933
+ x: f,
934
+ y: r.y + r.height
935
+ };
936
+ break;
937
+ case "right":
938
+ m = {
939
+ x: r.x + r.width,
940
+ y: p
941
+ };
942
+ break;
943
+ case "left":
944
+ m = {
945
+ x: r.x - o.width,
946
+ y: p
947
+ };
948
+ break;
949
+ default:
950
+ m = {
951
+ x: r.x,
952
+ y: r.y
953
+ };
954
+ }
955
+ switch (He(t)) {
956
+ case "start":
957
+ m[a] -= v * (n && l ? -1 : 1);
958
+ break;
959
+ case "end":
960
+ m[a] += v * (n && l ? -1 : 1);
961
+ break;
962
+ }
963
+ return m;
964
+ }
965
+ const ai = async (e, t, n) => {
966
+ const {
967
+ placement: r = "bottom",
968
+ strategy: o = "absolute",
969
+ middleware: i = [],
970
+ platform: a
971
+ } = n, s = i.filter(Boolean), u = await (a.isRTL == null ? void 0 : a.isRTL(t));
972
+ let l = await a.getElementRects({
973
+ reference: e,
974
+ floating: t,
975
+ strategy: o
976
+ }), {
977
+ x: f,
978
+ y: p
979
+ } = In(l, r, u), v = r, m = {}, x = 0;
980
+ for (let h = 0; h < s.length; h++) {
981
+ const {
982
+ name: g,
983
+ fn: w
984
+ } = s[h], {
985
+ x: b,
986
+ y: E,
987
+ data: R,
988
+ reset: A
989
+ } = await w({
990
+ x: f,
991
+ y: p,
992
+ initialPlacement: r,
993
+ placement: v,
994
+ strategy: o,
995
+ middlewareData: m,
996
+ rects: l,
997
+ platform: a,
998
+ elements: {
999
+ reference: e,
1000
+ floating: t
1001
+ }
1002
+ });
1003
+ f = b ?? f, p = E ?? p, m = {
1004
+ ...m,
1005
+ [g]: {
1006
+ ...m[g],
1007
+ ...R
1008
+ }
1009
+ }, A && x <= 50 && (x++, typeof A == "object" && (A.placement && (v = A.placement), A.rects && (l = A.rects === !0 ? await a.getElementRects({
1010
+ reference: e,
1011
+ floating: t,
1012
+ strategy: o
1013
+ }) : A.rects), {
1014
+ x: f,
1015
+ y: p
1016
+ } = In(l, v, u)), h = -1);
1017
+ }
1018
+ return {
1019
+ x: f,
1020
+ y: p,
1021
+ placement: v,
1022
+ strategy: o,
1023
+ middlewareData: m
1024
+ };
1025
+ };
1026
+ async function We(e, t) {
1027
+ var n;
1028
+ t === void 0 && (t = {});
1029
+ const {
1030
+ x: r,
1031
+ y: o,
1032
+ platform: i,
1033
+ rects: a,
1034
+ elements: s,
1035
+ strategy: u
1036
+ } = e, {
1037
+ boundary: l = "clippingAncestors",
1038
+ rootBoundary: f = "viewport",
1039
+ elementContext: p = "floating",
1040
+ altBoundary: v = !1,
1041
+ padding: m = 0
1042
+ } = pe(t, e), x = ir(m), g = s[v ? p === "floating" ? "reference" : "floating" : p], w = wt(await i.getClippingRect({
1043
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
1044
+ boundary: l,
1045
+ rootBoundary: f,
1046
+ strategy: u
1047
+ })), b = p === "floating" ? {
1048
+ x: r,
1049
+ y: o,
1050
+ width: a.floating.width,
1051
+ height: a.floating.height
1052
+ } : a.reference, E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), R = await (i.isElement == null ? void 0 : i.isElement(E)) ? await (i.getScale == null ? void 0 : i.getScale(E)) || {
1053
+ x: 1,
1054
+ y: 1
1055
+ } : {
1056
+ x: 1,
1057
+ y: 1
1058
+ }, A = wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
1059
+ elements: s,
1060
+ rect: b,
1061
+ offsetParent: E,
1062
+ strategy: u
1063
+ }) : b);
1064
+ return {
1065
+ top: (w.top - A.top + x.top) / R.y,
1066
+ bottom: (A.bottom - w.bottom + x.bottom) / R.y,
1067
+ left: (w.left - A.left + x.left) / R.x,
1068
+ right: (A.right - w.right + x.right) / R.x
1069
+ };
1070
+ }
1071
+ const si = (e) => ({
1072
+ name: "arrow",
1073
+ options: e,
1074
+ async fn(t) {
1075
+ const {
1076
+ x: n,
1077
+ y: r,
1078
+ placement: o,
1079
+ rects: i,
1080
+ platform: a,
1081
+ elements: s,
1082
+ middlewareData: u
1083
+ } = t, {
1084
+ element: l,
1085
+ padding: f = 0
1086
+ } = pe(e, t) || {};
1087
+ if (l == null)
1088
+ return {};
1089
+ const p = ir(f), v = {
1090
+ x: n,
1091
+ y: r
1092
+ }, m = rn(o), x = nn(m), h = await a.getDimensions(l), g = m === "y", w = g ? "top" : "left", b = g ? "bottom" : "right", E = g ? "clientHeight" : "clientWidth", R = i.reference[x] + i.reference[m] - v[m] - i.floating[x], A = v[m] - i.reference[m], _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1093
+ let S = _ ? _[E] : 0;
1094
+ (!S || !await (a.isElement == null ? void 0 : a.isElement(_))) && (S = s.floating[E] || i.floating[x]);
1095
+ const j = R / 2 - A / 2, F = S / 2 - h[x] / 2 - 1, W = ge(p[w], F), G = ge(p[b], F), K = W, D = S - h[x] - G, I = S / 2 - h[x] / 2 + j, X = Xt(K, I, D), $ = !u.arrow && He(o) != null && I !== X && i.reference[x] / 2 - (I < K ? W : G) - h[x] / 2 < 0, V = $ ? I < K ? I - K : I - D : 0;
1096
+ return {
1097
+ [m]: v[m] + V,
1098
+ data: {
1099
+ [m]: X,
1100
+ centerOffset: I - X - V,
1101
+ ...$ && {
1102
+ alignmentOffset: V
1103
+ }
1104
+ },
1105
+ reset: $
1106
+ };
1107
+ }
1108
+ }), ci = function(e) {
1109
+ return e === void 0 && (e = {}), {
1110
+ name: "flip",
1111
+ options: e,
1112
+ async fn(t) {
1113
+ var n, r;
1114
+ const {
1115
+ placement: o,
1116
+ middlewareData: i,
1117
+ rects: a,
1118
+ initialPlacement: s,
1119
+ platform: u,
1120
+ elements: l
1121
+ } = t, {
1122
+ mainAxis: f = !0,
1123
+ crossAxis: p = !0,
1124
+ fallbackPlacements: v,
1125
+ fallbackStrategy: m = "bestFit",
1126
+ fallbackAxisSideDirection: x = "none",
1127
+ flipAlignment: h = !0,
1128
+ ...g
1129
+ } = pe(e, t);
1130
+ if ((n = i.arrow) != null && n.alignmentOffset)
1131
+ return {};
1132
+ const w = he(o), b = ye(s), E = he(s) === s, R = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), A = v || (E || !h ? [yt(s)] : ni(s)), _ = x !== "none";
1133
+ !v && _ && A.push(...oi(s, h, x, R));
1134
+ const S = [s, ...A], j = await We(t, g), F = [];
1135
+ let W = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1136
+ if (f && F.push(j[w]), p) {
1137
+ const I = ti(o, a, R);
1138
+ F.push(j[I[0]], j[I[1]]);
1139
+ }
1140
+ if (W = [...W, {
1141
+ placement: o,
1142
+ overflows: F
1143
+ }], !F.every((I) => I <= 0)) {
1144
+ var G, K;
1145
+ const I = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, X = S[I];
1146
+ if (X)
1147
+ return {
1148
+ data: {
1149
+ index: I,
1150
+ overflows: W
1151
+ },
1152
+ reset: {
1153
+ placement: X
1154
+ }
1155
+ };
1156
+ let $ = (K = W.filter((V) => V.overflows[0] <= 0).sort((V, N) => V.overflows[1] - N.overflows[1])[0]) == null ? void 0 : K.placement;
1157
+ if (!$)
1158
+ switch (m) {
1159
+ case "bestFit": {
1160
+ var D;
1161
+ const V = (D = W.filter((N) => {
1162
+ if (_) {
1163
+ const Y = ye(N.placement);
1164
+ return Y === b || // Create a bias to the `y` side axis due to horizontal
1165
+ // reading directions favoring greater width.
1166
+ Y === "y";
1167
+ }
1168
+ return !0;
1169
+ }).map((N) => [N.placement, N.overflows.filter((Y) => Y > 0).reduce((Y, Q) => Y + Q, 0)]).sort((N, Y) => N[1] - Y[1])[0]) == null ? void 0 : D[0];
1170
+ V && ($ = V);
1171
+ break;
1172
+ }
1173
+ case "initialPlacement":
1174
+ $ = s;
1175
+ break;
1176
+ }
1177
+ if (o !== $)
1178
+ return {
1179
+ reset: {
1180
+ placement: $
1181
+ }
1182
+ };
1183
+ }
1184
+ return {};
1185
+ }
1186
+ };
1187
+ };
1188
+ function Ln(e, t) {
1189
+ return {
1190
+ top: e.top - t.height,
1191
+ right: e.right - t.width,
1192
+ bottom: e.bottom - t.height,
1193
+ left: e.left - t.width
1194
+ };
1195
+ }
1196
+ function Fn(e) {
1197
+ return Zo.some((t) => e[t] >= 0);
1198
+ }
1199
+ const li = function(e) {
1200
+ return e === void 0 && (e = {}), {
1201
+ name: "hide",
1202
+ options: e,
1203
+ async fn(t) {
1204
+ const {
1205
+ rects: n
1206
+ } = t, {
1207
+ strategy: r = "referenceHidden",
1208
+ ...o
1209
+ } = pe(e, t);
1210
+ switch (r) {
1211
+ case "referenceHidden": {
1212
+ const i = await We(t, {
1213
+ ...o,
1214
+ elementContext: "reference"
1215
+ }), a = Ln(i, n.reference);
1216
+ return {
1217
+ data: {
1218
+ referenceHiddenOffsets: a,
1219
+ referenceHidden: Fn(a)
1220
+ }
1221
+ };
1222
+ }
1223
+ case "escaped": {
1224
+ const i = await We(t, {
1225
+ ...o,
1226
+ altBoundary: !0
1227
+ }), a = Ln(i, n.floating);
1228
+ return {
1229
+ data: {
1230
+ escapedOffsets: a,
1231
+ escaped: Fn(a)
1232
+ }
1233
+ };
1234
+ }
1235
+ default:
1236
+ return {};
1237
+ }
1238
+ }
1239
+ };
1240
+ };
1241
+ async function ui(e, t) {
1242
+ const {
1243
+ placement: n,
1244
+ platform: r,
1245
+ elements: o
1246
+ } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = he(n), s = He(n), u = ye(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = i && u ? -1 : 1, p = pe(t, e);
1247
+ let {
1248
+ mainAxis: v,
1249
+ crossAxis: m,
1250
+ alignmentAxis: x
1251
+ } = typeof p == "number" ? {
1252
+ mainAxis: p,
1253
+ crossAxis: 0,
1254
+ alignmentAxis: null
1255
+ } : {
1256
+ mainAxis: p.mainAxis || 0,
1257
+ crossAxis: p.crossAxis || 0,
1258
+ alignmentAxis: p.alignmentAxis
1259
+ };
1260
+ return s && typeof x == "number" && (m = s === "end" ? x * -1 : x), u ? {
1261
+ x: m * f,
1262
+ y: v * l
1263
+ } : {
1264
+ x: v * l,
1265
+ y: m * f
1266
+ };
1267
+ }
1268
+ const fi = function(e) {
1269
+ return e === void 0 && (e = 0), {
1270
+ name: "offset",
1271
+ options: e,
1272
+ async fn(t) {
1273
+ var n, r;
1274
+ const {
1275
+ x: o,
1276
+ y: i,
1277
+ placement: a,
1278
+ middlewareData: s
1279
+ } = t, u = await ui(t, e);
1280
+ return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
1281
+ x: o + u.x,
1282
+ y: i + u.y,
1283
+ data: {
1284
+ ...u,
1285
+ placement: a
1286
+ }
1287
+ };
1288
+ }
1289
+ };
1290
+ }, di = function(e) {
1291
+ return e === void 0 && (e = {}), {
1292
+ name: "shift",
1293
+ options: e,
1294
+ async fn(t) {
1295
+ const {
1296
+ x: n,
1297
+ y: r,
1298
+ placement: o
1299
+ } = t, {
1300
+ mainAxis: i = !0,
1301
+ crossAxis: a = !1,
1302
+ limiter: s = {
1303
+ fn: (g) => {
1304
+ let {
1305
+ x: w,
1306
+ y: b
1307
+ } = g;
1308
+ return {
1309
+ x: w,
1310
+ y: b
1311
+ };
1312
+ }
1313
+ },
1314
+ ...u
1315
+ } = pe(e, t), l = {
1316
+ x: n,
1317
+ y: r
1318
+ }, f = await We(t, u), p = ye(he(o)), v = tn(p);
1319
+ let m = l[v], x = l[p];
1320
+ if (i) {
1321
+ const g = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", b = m + f[g], E = m - f[w];
1322
+ m = Xt(b, m, E);
1323
+ }
1324
+ if (a) {
1325
+ const g = p === "y" ? "top" : "left", w = p === "y" ? "bottom" : "right", b = x + f[g], E = x - f[w];
1326
+ x = Xt(b, x, E);
1327
+ }
1328
+ const h = s.fn({
1329
+ ...t,
1330
+ [v]: m,
1331
+ [p]: x
1332
+ });
1333
+ return {
1334
+ ...h,
1335
+ data: {
1336
+ x: h.x - n,
1337
+ y: h.y - r,
1338
+ enabled: {
1339
+ [v]: i,
1340
+ [p]: a
1341
+ }
1342
+ }
1343
+ };
1344
+ }
1345
+ };
1346
+ }, pi = function(e) {
1347
+ return e === void 0 && (e = {}), {
1348
+ options: e,
1349
+ fn(t) {
1350
+ const {
1351
+ x: n,
1352
+ y: r,
1353
+ placement: o,
1354
+ rects: i,
1355
+ middlewareData: a
1356
+ } = t, {
1357
+ offset: s = 0,
1358
+ mainAxis: u = !0,
1359
+ crossAxis: l = !0
1360
+ } = pe(e, t), f = {
1361
+ x: n,
1362
+ y: r
1363
+ }, p = ye(o), v = tn(p);
1364
+ let m = f[v], x = f[p];
1365
+ const h = pe(s, t), g = typeof h == "number" ? {
1366
+ mainAxis: h,
1367
+ crossAxis: 0
1368
+ } : {
1369
+ mainAxis: 0,
1370
+ crossAxis: 0,
1371
+ ...h
1372
+ };
1373
+ if (u) {
1374
+ const E = v === "y" ? "height" : "width", R = i.reference[v] - i.floating[E] + g.mainAxis, A = i.reference[v] + i.reference[E] - g.mainAxis;
1375
+ m < R ? m = R : m > A && (m = A);
1376
+ }
1377
+ if (l) {
1378
+ var w, b;
1379
+ const E = v === "y" ? "width" : "height", R = ["top", "left"].includes(he(o)), A = i.reference[p] - i.floating[E] + (R && ((w = a.offset) == null ? void 0 : w[p]) || 0) + (R ? 0 : g.crossAxis), _ = i.reference[p] + i.reference[E] + (R ? 0 : ((b = a.offset) == null ? void 0 : b[p]) || 0) - (R ? g.crossAxis : 0);
1380
+ x < A ? x = A : x > _ && (x = _);
1381
+ }
1382
+ return {
1383
+ [v]: m,
1384
+ [p]: x
1385
+ };
1386
+ }
1387
+ };
1388
+ }, hi = function(e) {
1389
+ return e === void 0 && (e = {}), {
1390
+ name: "size",
1391
+ options: e,
1392
+ async fn(t) {
1393
+ var n, r;
1394
+ const {
1395
+ placement: o,
1396
+ rects: i,
1397
+ platform: a,
1398
+ elements: s
1399
+ } = t, {
1400
+ apply: u = () => {
1401
+ },
1402
+ ...l
1403
+ } = pe(e, t), f = await We(t, l), p = he(o), v = He(o), m = ye(o) === "y", {
1404
+ width: x,
1405
+ height: h
1406
+ } = i.floating;
1407
+ let g, w;
1408
+ p === "top" || p === "bottom" ? (g = p, w = v === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (w = p, g = v === "end" ? "top" : "bottom");
1409
+ const b = h - f.top - f.bottom, E = x - f.left - f.right, R = ge(h - f[g], b), A = ge(x - f[w], E), _ = !t.middlewareData.shift;
1410
+ let S = R, j = A;
1411
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (j = E), (r = t.middlewareData.shift) != null && r.enabled.y && (S = b), _ && !v) {
1412
+ const W = ee(f.left, 0), G = ee(f.right, 0), K = ee(f.top, 0), D = ee(f.bottom, 0);
1413
+ m ? j = x - 2 * (W !== 0 || G !== 0 ? W + G : ee(f.left, f.right)) : S = h - 2 * (K !== 0 || D !== 0 ? K + D : ee(f.top, f.bottom));
1414
+ }
1415
+ await u({
1416
+ ...t,
1417
+ availableWidth: j,
1418
+ availableHeight: S
1419
+ });
1420
+ const F = await a.getDimensions(s.floating);
1421
+ return x !== F.width || h !== F.height ? {
1422
+ reset: {
1423
+ rects: !0
1424
+ }
1425
+ } : {};
1426
+ }
1427
+ };
1428
+ };
1429
+ function Ct() {
1430
+ return typeof window < "u";
1431
+ }
1432
+ function Ue(e) {
1433
+ return ar(e) ? (e.nodeName || "").toLowerCase() : "#document";
1434
+ }
1435
+ function te(e) {
1436
+ var t;
1437
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1438
+ }
1439
+ function ue(e) {
1440
+ var t;
1441
+ return (t = (ar(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1442
+ }
1443
+ function ar(e) {
1444
+ return Ct() ? e instanceof Node || e instanceof te(e).Node : !1;
1445
+ }
1446
+ function oe(e) {
1447
+ return Ct() ? e instanceof Element || e instanceof te(e).Element : !1;
1448
+ }
1449
+ function le(e) {
1450
+ return Ct() ? e instanceof HTMLElement || e instanceof te(e).HTMLElement : !1;
1451
+ }
1452
+ function Bn(e) {
1453
+ return !Ct() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof te(e).ShadowRoot;
1454
+ }
1455
+ function Qe(e) {
1456
+ const {
1457
+ overflow: t,
1458
+ overflowX: n,
1459
+ overflowY: r,
1460
+ display: o
1461
+ } = ie(e);
1462
+ return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1463
+ }
1464
+ function vi(e) {
1465
+ return ["table", "td", "th"].includes(Ue(e));
1466
+ }
1467
+ function Et(e) {
1468
+ return [":popover-open", ":modal"].some((t) => {
1469
+ try {
1470
+ return e.matches(t);
1471
+ } catch {
1472
+ return !1;
1473
+ }
1474
+ });
1475
+ }
1476
+ function on(e) {
1477
+ const t = an(), n = oe(e) ? ie(e) : e;
1478
+ return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1479
+ }
1480
+ function mi(e) {
1481
+ let t = we(e);
1482
+ for (; le(t) && !$e(t); ) {
1483
+ if (on(t))
1484
+ return t;
1485
+ if (Et(t))
1486
+ return null;
1487
+ t = we(t);
1488
+ }
1489
+ return null;
1490
+ }
1491
+ function an() {
1492
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1493
+ }
1494
+ function $e(e) {
1495
+ return ["html", "body", "#document"].includes(Ue(e));
1496
+ }
1497
+ function ie(e) {
1498
+ return te(e).getComputedStyle(e);
1499
+ }
1500
+ function Rt(e) {
1501
+ return oe(e) ? {
1502
+ scrollLeft: e.scrollLeft,
1503
+ scrollTop: e.scrollTop
1504
+ } : {
1505
+ scrollLeft: e.scrollX,
1506
+ scrollTop: e.scrollY
1507
+ };
1508
+ }
1509
+ function we(e) {
1510
+ if (Ue(e) === "html")
1511
+ return e;
1512
+ const t = (
1513
+ // Step into the shadow DOM of the parent of a slotted node.
1514
+ e.assignedSlot || // DOM Element detected.
1515
+ e.parentNode || // ShadowRoot detected.
1516
+ Bn(e) && e.host || // Fallback.
1517
+ ue(e)
1518
+ );
1519
+ return Bn(t) ? t.host : t;
1520
+ }
1521
+ function sr(e) {
1522
+ const t = we(e);
1523
+ return $e(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(t) && Qe(t) ? t : sr(t);
1524
+ }
1525
+ function Je(e, t, n) {
1526
+ var r;
1527
+ t === void 0 && (t = []), n === void 0 && (n = !0);
1528
+ const o = sr(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = te(o);
1529
+ if (i) {
1530
+ const s = qt(a);
1531
+ return t.concat(a, a.visualViewport || [], Qe(o) ? o : [], s && n ? Je(s) : []);
1532
+ }
1533
+ return t.concat(o, Je(o, [], n));
1534
+ }
1535
+ function qt(e) {
1536
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1537
+ }
1538
+ function cr(e) {
1539
+ const t = ie(e);
1540
+ let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1541
+ const o = le(e), i = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, s = gt(n) !== i || gt(r) !== a;
1542
+ return s && (n = i, r = a), {
1543
+ width: n,
1544
+ height: r,
1545
+ $: s
1546
+ };
1547
+ }
1548
+ function sn(e) {
1549
+ return oe(e) ? e : e.contextElement;
1550
+ }
1551
+ function Fe(e) {
1552
+ const t = sn(e);
1553
+ if (!le(t))
1554
+ return se(1);
1555
+ const n = t.getBoundingClientRect(), {
1556
+ width: r,
1557
+ height: o,
1558
+ $: i
1559
+ } = cr(t);
1560
+ let a = (i ? gt(n.width) : n.width) / r, s = (i ? gt(n.height) : n.height) / o;
1561
+ return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1562
+ x: a,
1563
+ y: s
1564
+ };
1565
+ }
1566
+ const gi = /* @__PURE__ */ se(0);
1567
+ function lr(e) {
1568
+ const t = te(e);
1569
+ return !an() || !t.visualViewport ? gi : {
1570
+ x: t.visualViewport.offsetLeft,
1571
+ y: t.visualViewport.offsetTop
1572
+ };
1573
+ }
1574
+ function yi(e, t, n) {
1575
+ return t === void 0 && (t = !1), !n || t && n !== te(e) ? !1 : t;
1576
+ }
1577
+ function _e(e, t, n, r) {
1578
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
1579
+ const o = e.getBoundingClientRect(), i = sn(e);
1580
+ let a = se(1);
1581
+ t && (r ? oe(r) && (a = Fe(r)) : a = Fe(e));
1582
+ const s = yi(i, n, r) ? lr(i) : se(0);
1583
+ let u = (o.left + s.x) / a.x, l = (o.top + s.y) / a.y, f = o.width / a.x, p = o.height / a.y;
1584
+ if (i) {
1585
+ const v = te(i), m = r && oe(r) ? te(r) : r;
1586
+ let x = v, h = qt(x);
1587
+ for (; h && r && m !== x; ) {
1588
+ const g = Fe(h), w = h.getBoundingClientRect(), b = ie(h), E = w.left + (h.clientLeft + parseFloat(b.paddingLeft)) * g.x, R = w.top + (h.clientTop + parseFloat(b.paddingTop)) * g.y;
1589
+ u *= g.x, l *= g.y, f *= g.x, p *= g.y, u += E, l += R, x = te(h), h = qt(x);
1590
+ }
1591
+ }
1592
+ return wt({
1593
+ width: f,
1594
+ height: p,
1595
+ x: u,
1596
+ y: l
1597
+ });
1598
+ }
1599
+ function cn(e, t) {
1600
+ const n = Rt(e).scrollLeft;
1601
+ return t ? t.left + n : _e(ue(e)).left + n;
1602
+ }
1603
+ function ur(e, t, n) {
1604
+ n === void 0 && (n = !1);
1605
+ const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1606
+ // RTL <body> scrollbar.
1607
+ cn(e, r)
1608
+ )), i = r.top + t.scrollTop;
1609
+ return {
1610
+ x: o,
1611
+ y: i
1612
+ };
1613
+ }
1614
+ function wi(e) {
1615
+ let {
1616
+ elements: t,
1617
+ rect: n,
1618
+ offsetParent: r,
1619
+ strategy: o
1620
+ } = e;
1621
+ const i = o === "fixed", a = ue(r), s = t ? Et(t.floating) : !1;
1622
+ if (r === a || s && i)
1623
+ return n;
1624
+ let u = {
1625
+ scrollLeft: 0,
1626
+ scrollTop: 0
1627
+ }, l = se(1);
1628
+ const f = se(0), p = le(r);
1629
+ if ((p || !p && !i) && ((Ue(r) !== "body" || Qe(a)) && (u = Rt(r)), le(r))) {
1630
+ const m = _e(r);
1631
+ l = Fe(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop;
1632
+ }
1633
+ const v = a && !p && !i ? ur(a, u, !0) : se(0);
1634
+ return {
1635
+ width: n.width * l.x,
1636
+ height: n.height * l.y,
1637
+ x: n.x * l.x - u.scrollLeft * l.x + f.x + v.x,
1638
+ y: n.y * l.y - u.scrollTop * l.y + f.y + v.y
1639
+ };
1640
+ }
1641
+ function bi(e) {
1642
+ return Array.from(e.getClientRects());
1643
+ }
1644
+ function xi(e) {
1645
+ const t = ue(e), n = Rt(e), r = e.ownerDocument.body, o = ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1646
+ let a = -n.scrollLeft + cn(e);
1647
+ const s = -n.scrollTop;
1648
+ return ie(r).direction === "rtl" && (a += ee(t.clientWidth, r.clientWidth) - o), {
1649
+ width: o,
1650
+ height: i,
1651
+ x: a,
1652
+ y: s
1653
+ };
1654
+ }
1655
+ function Ci(e, t) {
1656
+ const n = te(e), r = ue(e), o = n.visualViewport;
1657
+ let i = r.clientWidth, a = r.clientHeight, s = 0, u = 0;
1658
+ if (o) {
1659
+ i = o.width, a = o.height;
1660
+ const l = an();
1661
+ (!l || l && t === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
1662
+ }
1663
+ return {
1664
+ width: i,
1665
+ height: a,
1666
+ x: s,
1667
+ y: u
1668
+ };
1669
+ }
1670
+ function Ei(e, t) {
1671
+ const n = _e(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = le(e) ? Fe(e) : se(1), a = e.clientWidth * i.x, s = e.clientHeight * i.y, u = o * i.x, l = r * i.y;
1672
+ return {
1673
+ width: a,
1674
+ height: s,
1675
+ x: u,
1676
+ y: l
1677
+ };
1678
+ }
1679
+ function Wn(e, t, n) {
1680
+ let r;
1681
+ if (t === "viewport")
1682
+ r = Ci(e, n);
1683
+ else if (t === "document")
1684
+ r = xi(ue(e));
1685
+ else if (oe(t))
1686
+ r = Ei(t, n);
1687
+ else {
1688
+ const o = lr(e);
1689
+ r = {
1690
+ x: t.x - o.x,
1691
+ y: t.y - o.y,
1692
+ width: t.width,
1693
+ height: t.height
1694
+ };
1695
+ }
1696
+ return wt(r);
1697
+ }
1698
+ function fr(e, t) {
1699
+ const n = we(e);
1700
+ return n === t || !oe(n) || $e(n) ? !1 : ie(n).position === "fixed" || fr(n, t);
1701
+ }
1702
+ function Ri(e, t) {
1703
+ const n = t.get(e);
1704
+ if (n)
1705
+ return n;
1706
+ let r = Je(e, [], !1).filter((s) => oe(s) && Ue(s) !== "body"), o = null;
1707
+ const i = ie(e).position === "fixed";
1708
+ let a = i ? we(e) : e;
1709
+ for (; oe(a) && !$e(a); ) {
1710
+ const s = ie(a), u = on(a);
1711
+ !u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Qe(a) && !u && fr(e, a)) ? r = r.filter((f) => f !== a) : o = s, a = we(a);
1712
+ }
1713
+ return t.set(e, r), r;
1714
+ }
1715
+ function Pi(e) {
1716
+ let {
1717
+ element: t,
1718
+ boundary: n,
1719
+ rootBoundary: r,
1720
+ strategy: o
1721
+ } = e;
1722
+ const a = [...n === "clippingAncestors" ? Et(t) ? [] : Ri(t, this._c) : [].concat(n), r], s = a[0], u = a.reduce((l, f) => {
1723
+ const p = Wn(t, f, o);
1724
+ return l.top = ee(p.top, l.top), l.right = ge(p.right, l.right), l.bottom = ge(p.bottom, l.bottom), l.left = ee(p.left, l.left), l;
1725
+ }, Wn(t, s, o));
1726
+ return {
1727
+ width: u.right - u.left,
1728
+ height: u.bottom - u.top,
1729
+ x: u.left,
1730
+ y: u.top
1731
+ };
1732
+ }
1733
+ function Ai(e) {
1734
+ const {
1735
+ width: t,
1736
+ height: n
1737
+ } = cr(e);
1738
+ return {
1739
+ width: t,
1740
+ height: n
1741
+ };
1742
+ }
1743
+ function Si(e, t, n) {
1744
+ const r = le(t), o = ue(t), i = n === "fixed", a = _e(e, !0, i, t);
1745
+ let s = {
1746
+ scrollLeft: 0,
1747
+ scrollTop: 0
1748
+ };
1749
+ const u = se(0);
1750
+ if (r || !r && !i)
1751
+ if ((Ue(t) !== "body" || Qe(o)) && (s = Rt(t)), r) {
1752
+ const v = _e(t, !0, i, t);
1753
+ u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
1754
+ } else o && (u.x = cn(o));
1755
+ const l = o && !r && !i ? ur(o, s) : se(0), f = a.left + s.scrollLeft - u.x - l.x, p = a.top + s.scrollTop - u.y - l.y;
1756
+ return {
1757
+ x: f,
1758
+ y: p,
1759
+ width: a.width,
1760
+ height: a.height
1761
+ };
1762
+ }
1763
+ function Ft(e) {
1764
+ return ie(e).position === "static";
1765
+ }
1766
+ function $n(e, t) {
1767
+ if (!le(e) || ie(e).position === "fixed")
1768
+ return null;
1769
+ if (t)
1770
+ return t(e);
1771
+ let n = e.offsetParent;
1772
+ return ue(e) === n && (n = n.ownerDocument.body), n;
1773
+ }
1774
+ function dr(e, t) {
1775
+ const n = te(e);
1776
+ if (Et(e))
1777
+ return n;
1778
+ if (!le(e)) {
1779
+ let o = we(e);
1780
+ for (; o && !$e(o); ) {
1781
+ if (oe(o) && !Ft(o))
1782
+ return o;
1783
+ o = we(o);
1784
+ }
1785
+ return n;
1786
+ }
1787
+ let r = $n(e, t);
1788
+ for (; r && vi(r) && Ft(r); )
1789
+ r = $n(r, t);
1790
+ return r && $e(r) && Ft(r) && !on(r) ? n : r || mi(e) || n;
1791
+ }
1792
+ const Oi = async function(e) {
1793
+ const t = this.getOffsetParent || dr, n = this.getDimensions, r = await n(e.floating);
1794
+ return {
1795
+ reference: Si(e.reference, await t(e.floating), e.strategy),
1796
+ floating: {
1797
+ x: 0,
1798
+ y: 0,
1799
+ width: r.width,
1800
+ height: r.height
1801
+ }
1802
+ };
1803
+ };
1804
+ function _i(e) {
1805
+ return ie(e).direction === "rtl";
1806
+ }
1807
+ const Ti = {
1808
+ convertOffsetParentRelativeRectToViewportRelativeRect: wi,
1809
+ getDocumentElement: ue,
1810
+ getClippingRect: Pi,
1811
+ getOffsetParent: dr,
1812
+ getElementRects: Oi,
1813
+ getClientRects: bi,
1814
+ getDimensions: Ai,
1815
+ getScale: Fe,
1816
+ isElement: oe,
1817
+ isRTL: _i
1818
+ };
1819
+ function Ni(e, t) {
1820
+ let n = null, r;
1821
+ const o = ue(e);
1822
+ function i() {
1823
+ var s;
1824
+ clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1825
+ }
1826
+ function a(s, u) {
1827
+ s === void 0 && (s = !1), u === void 0 && (u = 1), i();
1828
+ const {
1829
+ left: l,
1830
+ top: f,
1831
+ width: p,
1832
+ height: v
1833
+ } = e.getBoundingClientRect();
1834
+ if (s || t(), !p || !v)
1835
+ return;
1836
+ const m = ct(f), x = ct(o.clientWidth - (l + p)), h = ct(o.clientHeight - (f + v)), g = ct(l), b = {
1837
+ rootMargin: -m + "px " + -x + "px " + -h + "px " + -g + "px",
1838
+ threshold: ee(0, ge(1, u)) || 1
1839
+ };
1840
+ let E = !0;
1841
+ function R(A) {
1842
+ const _ = A[0].intersectionRatio;
1843
+ if (_ !== u) {
1844
+ if (!E)
1845
+ return a();
1846
+ _ ? a(!1, _) : r = setTimeout(() => {
1847
+ a(!1, 1e-7);
1848
+ }, 1e3);
1849
+ }
1850
+ E = !1;
1851
+ }
1852
+ try {
1853
+ n = new IntersectionObserver(R, {
1854
+ ...b,
1855
+ // Handle <iframe>s
1856
+ root: o.ownerDocument
1857
+ });
1858
+ } catch {
1859
+ n = new IntersectionObserver(R, b);
1860
+ }
1861
+ n.observe(e);
1862
+ }
1863
+ return a(!0), i;
1864
+ }
1865
+ function ki(e, t, n, r) {
1866
+ r === void 0 && (r = {});
1867
+ const {
1868
+ ancestorScroll: o = !0,
1869
+ ancestorResize: i = !0,
1870
+ elementResize: a = typeof ResizeObserver == "function",
1871
+ layoutShift: s = typeof IntersectionObserver == "function",
1872
+ animationFrame: u = !1
1873
+ } = r, l = sn(e), f = o || i ? [...l ? Je(l) : [], ...Je(t)] : [];
1874
+ f.forEach((w) => {
1875
+ o && w.addEventListener("scroll", n, {
1876
+ passive: !0
1877
+ }), i && w.addEventListener("resize", n);
1878
+ });
1879
+ const p = l && s ? Ni(l, n) : null;
1880
+ let v = -1, m = null;
1881
+ a && (m = new ResizeObserver((w) => {
1882
+ let [b] = w;
1883
+ b && b.target === l && m && (m.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1884
+ var E;
1885
+ (E = m) == null || E.observe(t);
1886
+ })), n();
1887
+ }), l && !u && m.observe(l), m.observe(t));
1888
+ let x, h = u ? _e(e) : null;
1889
+ u && g();
1890
+ function g() {
1891
+ const w = _e(e);
1892
+ h && (w.x !== h.x || w.y !== h.y || w.width !== h.width || w.height !== h.height) && n(), h = w, x = requestAnimationFrame(g);
1893
+ }
1894
+ return n(), () => {
1895
+ var w;
1896
+ f.forEach((b) => {
1897
+ o && b.removeEventListener("scroll", n), i && b.removeEventListener("resize", n);
1898
+ }), p == null || p(), (w = m) == null || w.disconnect(), m = null, u && cancelAnimationFrame(x);
1899
+ };
1900
+ }
1901
+ const yc = We, ji = fi, Di = di, Mi = ci, Ii = hi, Li = li, Vn = si, Fi = pi, Bi = (e, t, n) => {
1902
+ const r = /* @__PURE__ */ new Map(), o = {
1903
+ platform: Ti,
1904
+ ...n
1905
+ }, i = {
1906
+ ...o.platform,
1907
+ _c: r
1908
+ };
1909
+ return ai(e, t, {
1910
+ ...o,
1911
+ platform: i
1912
+ });
1913
+ };
1914
+ function zn(e, t) {
1915
+ if (typeof e == "function")
1916
+ return e(t);
1917
+ e != null && (e.current = t);
1918
+ }
1919
+ function pr(...e) {
1920
+ return (t) => {
1921
+ let n = !1;
1922
+ const r = e.map((o) => {
1923
+ const i = zn(o, t);
1924
+ return !n && typeof i == "function" && (n = !0), i;
1925
+ });
1926
+ if (n)
1927
+ return () => {
1928
+ for (let o = 0; o < r.length; o++) {
1929
+ const i = r[o];
1930
+ typeof i == "function" ? i() : zn(e[o], null);
1931
+ }
1932
+ };
1933
+ };
1934
+ }
1935
+ function re(...e) {
1936
+ return d.useCallback(pr(...e), e);
1937
+ }
1938
+ function et(e, t = []) {
1939
+ let n = [];
1940
+ function r(i, a) {
1941
+ const s = d.createContext(a), u = n.length;
1942
+ n = [...n, a];
1943
+ const l = (p) => {
1944
+ var w;
1945
+ const { scope: v, children: m, ...x } = p, h = ((w = v == null ? void 0 : v[e]) == null ? void 0 : w[u]) || s, g = d.useMemo(() => x, Object.values(x));
1946
+ return /* @__PURE__ */ y.jsx(h.Provider, { value: g, children: m });
1947
+ };
1948
+ l.displayName = i + "Provider";
1949
+ function f(p, v) {
1950
+ var h;
1951
+ const m = ((h = v == null ? void 0 : v[e]) == null ? void 0 : h[u]) || s, x = d.useContext(m);
1952
+ if (x) return x;
1953
+ if (a !== void 0) return a;
1954
+ throw new Error(`\`${p}\` must be used within \`${i}\``);
1955
+ }
1956
+ return [l, f];
1957
+ }
1958
+ const o = () => {
1959
+ const i = n.map((a) => d.createContext(a));
1960
+ return function(s) {
1961
+ const u = (s == null ? void 0 : s[e]) || i;
1962
+ return d.useMemo(
1963
+ () => ({ [`__scope${e}`]: { ...s, [e]: u } }),
1964
+ [s, u]
1965
+ );
1966
+ };
1967
+ };
1968
+ return o.scopeName = e, [r, Wi(o, ...t)];
1969
+ }
1970
+ function Wi(...e) {
1971
+ const t = e[0];
1972
+ if (e.length === 1) return t;
1973
+ const n = () => {
1974
+ const r = e.map((o) => ({
1975
+ useScope: o(),
1976
+ scopeName: o.scopeName
1977
+ }));
1978
+ return function(i) {
1979
+ const a = r.reduce((s, { useScope: u, scopeName: l }) => {
1980
+ const p = u(i)[`__scope${l}`];
1981
+ return { ...s, ...p };
1982
+ }, {});
1983
+ return d.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
1984
+ };
1985
+ };
1986
+ return n.scopeName = t.scopeName, n;
1987
+ }
1988
+ function ce(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1989
+ return function(o) {
1990
+ if (e == null || e(o), n === !1 || !o.defaultPrevented)
1991
+ return t == null ? void 0 : t(o);
1992
+ };
1993
+ }
1994
+ function be(e) {
1995
+ const t = d.useRef(e);
1996
+ return d.useEffect(() => {
1997
+ t.current = e;
1998
+ }), d.useMemo(() => (...n) => {
1999
+ var r;
2000
+ return (r = t.current) == null ? void 0 : r.call(t, ...n);
2001
+ }, []);
2002
+ }
2003
+ function Pt({
2004
+ prop: e,
2005
+ defaultProp: t,
2006
+ onChange: n = () => {
2007
+ }
2008
+ }) {
2009
+ const [r, o] = $i({ defaultProp: t, onChange: n }), i = e !== void 0, a = i ? e : r, s = be(n), u = d.useCallback(
2010
+ (l) => {
2011
+ if (i) {
2012
+ const p = typeof l == "function" ? l(e) : l;
2013
+ p !== e && s(p);
2014
+ } else
2015
+ o(l);
2016
+ },
2017
+ [i, e, o, s]
2018
+ );
2019
+ return [a, u];
2020
+ }
2021
+ function $i({
2022
+ defaultProp: e,
2023
+ onChange: t
2024
+ }) {
2025
+ const n = d.useState(e), [r] = n, o = d.useRef(r), i = be(t);
2026
+ return d.useEffect(() => {
2027
+ o.current !== r && (i(r), o.current = r);
2028
+ }, [r, o, i]), n;
2029
+ }
2030
+ var xe = globalThis != null && globalThis.document ? d.useLayoutEffect : () => {
2031
+ };
2032
+ function Vi(e) {
2033
+ const [t, n] = d.useState(void 0);
2034
+ return xe(() => {
2035
+ if (e) {
2036
+ n({ width: e.offsetWidth, height: e.offsetHeight });
2037
+ const r = new ResizeObserver((o) => {
2038
+ if (!Array.isArray(o) || !o.length)
2039
+ return;
2040
+ const i = o[0];
2041
+ let a, s;
2042
+ if ("borderBoxSize" in i) {
2043
+ const u = i.borderBoxSize, l = Array.isArray(u) ? u[0] : u;
2044
+ a = l.inlineSize, s = l.blockSize;
2045
+ } else
2046
+ a = e.offsetWidth, s = e.offsetHeight;
2047
+ n({ width: a, height: s });
2048
+ });
2049
+ return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2050
+ } else
2051
+ n(void 0);
2052
+ }, [e]), t;
2053
+ }
2054
+ function zi(e, t) {
2055
+ return d.useReducer((n, r) => t[n][r] ?? n, e);
2056
+ }
2057
+ var At = (e) => {
2058
+ const { present: t, children: n } = e, r = Hi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : d.Children.only(n), i = re(r.ref, Ui(o));
2059
+ return typeof n == "function" || r.isPresent ? d.cloneElement(o, { ref: i }) : null;
2060
+ };
2061
+ At.displayName = "Presence";
2062
+ function Hi(e) {
2063
+ const [t, n] = d.useState(), r = d.useRef({}), o = d.useRef(e), i = d.useRef("none"), a = e ? "mounted" : "unmounted", [s, u] = zi(a, {
2064
+ mounted: {
2065
+ UNMOUNT: "unmounted",
2066
+ ANIMATION_OUT: "unmountSuspended"
2067
+ },
2068
+ unmountSuspended: {
2069
+ MOUNT: "mounted",
2070
+ ANIMATION_END: "unmounted"
2071
+ },
2072
+ unmounted: {
2073
+ MOUNT: "mounted"
2074
+ }
2075
+ });
2076
+ return d.useEffect(() => {
2077
+ const l = lt(r.current);
2078
+ i.current = s === "mounted" ? l : "none";
2079
+ }, [s]), xe(() => {
2080
+ const l = r.current, f = o.current;
2081
+ if (f !== e) {
2082
+ const v = i.current, m = lt(l);
2083
+ e ? u("MOUNT") : m === "none" || (l == null ? void 0 : l.display) === "none" ? u("UNMOUNT") : u(f && v !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2084
+ }
2085
+ }, [e, u]), xe(() => {
2086
+ if (t) {
2087
+ let l;
2088
+ const f = t.ownerDocument.defaultView ?? window, p = (m) => {
2089
+ const h = lt(r.current).includes(m.animationName);
2090
+ if (m.target === t && h && (u("ANIMATION_END"), !o.current)) {
2091
+ const g = t.style.animationFillMode;
2092
+ t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
2093
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
2094
+ });
2095
+ }
2096
+ }, v = (m) => {
2097
+ m.target === t && (i.current = lt(r.current));
2098
+ };
2099
+ return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
2100
+ f.clearTimeout(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
2101
+ };
2102
+ } else
2103
+ u("ANIMATION_END");
2104
+ }, [t, u]), {
2105
+ isPresent: ["mounted", "unmountSuspended"].includes(s),
2106
+ ref: d.useCallback((l) => {
2107
+ l && (r.current = getComputedStyle(l)), n(l);
2108
+ }, [])
2109
+ };
2110
+ }
2111
+ function lt(e) {
2112
+ return (e == null ? void 0 : e.animationName) || "none";
2113
+ }
2114
+ function Ui(e) {
2115
+ var r, o;
2116
+ let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2117
+ return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2118
+ }
2119
+ var Ze = d.forwardRef((e, t) => {
2120
+ const { children: n, ...r } = e, o = d.Children.toArray(n), i = o.find(Ki);
2121
+ if (i) {
2122
+ const a = i.props.children, s = o.map((u) => u === i ? d.Children.count(a) > 1 ? d.Children.only(null) : d.isValidElement(a) ? a.props.children : null : u);
2123
+ return /* @__PURE__ */ y.jsx(Jt, { ...r, ref: t, children: d.isValidElement(a) ? d.cloneElement(a, void 0, s) : null });
2124
+ }
2125
+ return /* @__PURE__ */ y.jsx(Jt, { ...r, ref: t, children: n });
2126
+ });
2127
+ Ze.displayName = "Slot";
2128
+ var Jt = d.forwardRef((e, t) => {
2129
+ const { children: n, ...r } = e;
2130
+ if (d.isValidElement(n)) {
2131
+ const o = Gi(n);
2132
+ return d.cloneElement(n, {
2133
+ ...Xi(r, n.props),
2134
+ // @ts-ignore
2135
+ ref: t ? pr(t, o) : o
2136
+ });
2137
+ }
2138
+ return d.Children.count(n) > 1 ? d.Children.only(null) : null;
2139
+ });
2140
+ Jt.displayName = "SlotClone";
2141
+ var Yi = ({ children: e }) => /* @__PURE__ */ y.jsx(y.Fragment, { children: e });
2142
+ function Ki(e) {
2143
+ return d.isValidElement(e) && e.type === Yi;
2144
+ }
2145
+ function Xi(e, t) {
2146
+ const n = { ...t };
2147
+ for (const r in t) {
2148
+ const o = e[r], i = t[r];
2149
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
2150
+ i(...s), o(...s);
2151
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
2152
+ }
2153
+ return { ...e, ...n };
2154
+ }
2155
+ function Gi(e) {
2156
+ var r, o;
2157
+ let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
2158
+ return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2159
+ }
2160
+ var qi = [
2161
+ "a",
2162
+ "button",
2163
+ "div",
2164
+ "form",
2165
+ "h2",
2166
+ "h3",
2167
+ "img",
2168
+ "input",
2169
+ "label",
2170
+ "li",
2171
+ "nav",
2172
+ "ol",
2173
+ "p",
2174
+ "span",
2175
+ "svg",
2176
+ "ul"
2177
+ ], Z = qi.reduce((e, t) => {
2178
+ const n = d.forwardRef((r, o) => {
2179
+ const { asChild: i, ...a } = r, s = i ? Ze : t;
2180
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y.jsx(s, { ...a, ref: o });
2181
+ });
2182
+ return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
2183
+ }, {});
2184
+ function Ji(e, t) {
2185
+ e && or.flushSync(() => e.dispatchEvent(t));
2186
+ }
2187
+ function Zi(e) {
2188
+ const t = e + "CollectionProvider", [n, r] = et(t), [o, i] = n(
2189
+ t,
2190
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
2191
+ ), a = (m) => {
2192
+ const { scope: x, children: h } = m, g = H.useRef(null), w = H.useRef(/* @__PURE__ */ new Map()).current;
2193
+ return /* @__PURE__ */ y.jsx(o, { scope: x, itemMap: w, collectionRef: g, children: h });
2194
+ };
2195
+ a.displayName = t;
2196
+ const s = e + "CollectionSlot", u = H.forwardRef(
2197
+ (m, x) => {
2198
+ const { scope: h, children: g } = m, w = i(s, h), b = re(x, w.collectionRef);
2199
+ return /* @__PURE__ */ y.jsx(Ze, { ref: b, children: g });
2200
+ }
2201
+ );
2202
+ u.displayName = s;
2203
+ const l = e + "CollectionItemSlot", f = "data-radix-collection-item", p = H.forwardRef(
2204
+ (m, x) => {
2205
+ const { scope: h, children: g, ...w } = m, b = H.useRef(null), E = re(x, b), R = i(l, h);
2206
+ return H.useEffect(() => (R.itemMap.set(b, { ref: b, ...w }), () => void R.itemMap.delete(b))), /* @__PURE__ */ y.jsx(Ze, { [f]: "", ref: E, children: g });
2207
+ }
2208
+ );
2209
+ p.displayName = l;
2210
+ function v(m) {
2211
+ const x = i(e + "CollectionConsumer", m);
2212
+ return H.useCallback(() => {
2213
+ const g = x.collectionRef.current;
2214
+ if (!g) return [];
2215
+ const w = Array.from(g.querySelectorAll(`[${f}]`));
2216
+ return Array.from(x.itemMap.values()).sort(
2217
+ (R, A) => w.indexOf(R.ref.current) - w.indexOf(A.ref.current)
2218
+ );
2219
+ }, [x.collectionRef, x.itemMap]);
2220
+ }
2221
+ return [
2222
+ { Provider: a, Slot: u, ItemSlot: p },
2223
+ v,
2224
+ r
2225
+ ];
2226
+ }
2227
+ var Qi = d.useId || (() => {
2228
+ }), ea = 0;
2229
+ function ln(e) {
2230
+ const [t, n] = d.useState(Qi());
2231
+ return xe(() => {
2232
+ n((r) => r ?? String(ea++));
2233
+ }, [e]), t ? `radix-${t}` : "";
2234
+ }
2235
+ var un = "Collapsible", [ta, hr] = et(un), [na, fn] = ta(un), vr = d.forwardRef(
2236
+ (e, t) => {
2237
+ const {
2238
+ __scopeCollapsible: n,
2239
+ open: r,
2240
+ defaultOpen: o,
2241
+ disabled: i,
2242
+ onOpenChange: a,
2243
+ ...s
2244
+ } = e, [u = !1, l] = Pt({
2245
+ prop: r,
2246
+ defaultProp: o,
2247
+ onChange: a
2248
+ });
2249
+ return /* @__PURE__ */ y.jsx(
2250
+ na,
2251
+ {
2252
+ scope: n,
2253
+ disabled: i,
2254
+ contentId: ln(),
2255
+ open: u,
2256
+ onOpenToggle: d.useCallback(() => l((f) => !f), [l]),
2257
+ children: /* @__PURE__ */ y.jsx(
2258
+ Z.div,
2259
+ {
2260
+ "data-state": pn(u),
2261
+ "data-disabled": i ? "" : void 0,
2262
+ ...s,
2263
+ ref: t
2264
+ }
2265
+ )
2266
+ }
2267
+ );
2268
+ }
2269
+ );
2270
+ vr.displayName = un;
2271
+ var mr = "CollapsibleTrigger", gr = d.forwardRef(
2272
+ (e, t) => {
2273
+ const { __scopeCollapsible: n, ...r } = e, o = fn(mr, n);
2274
+ return /* @__PURE__ */ y.jsx(
2275
+ Z.button,
2276
+ {
2277
+ type: "button",
2278
+ "aria-controls": o.contentId,
2279
+ "aria-expanded": o.open || !1,
2280
+ "data-state": pn(o.open),
2281
+ "data-disabled": o.disabled ? "" : void 0,
2282
+ disabled: o.disabled,
2283
+ ...r,
2284
+ ref: t,
2285
+ onClick: ce(e.onClick, o.onOpenToggle)
2286
+ }
2287
+ );
2288
+ }
2289
+ );
2290
+ gr.displayName = mr;
2291
+ var dn = "CollapsibleContent", yr = d.forwardRef(
2292
+ (e, t) => {
2293
+ const { forceMount: n, ...r } = e, o = fn(dn, e.__scopeCollapsible);
2294
+ return /* @__PURE__ */ y.jsx(At, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ y.jsx(ra, { ...r, ref: t, present: i }) });
2295
+ }
2296
+ );
2297
+ yr.displayName = dn;
2298
+ var ra = d.forwardRef((e, t) => {
2299
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = fn(dn, n), [s, u] = d.useState(r), l = d.useRef(null), f = re(t, l), p = d.useRef(0), v = p.current, m = d.useRef(0), x = m.current, h = a.open || s, g = d.useRef(h), w = d.useRef(void 0);
2300
+ return d.useEffect(() => {
2301
+ const b = requestAnimationFrame(() => g.current = !1);
2302
+ return () => cancelAnimationFrame(b);
2303
+ }, []), xe(() => {
2304
+ const b = l.current;
2305
+ if (b) {
2306
+ w.current = w.current || {
2307
+ transitionDuration: b.style.transitionDuration,
2308
+ animationName: b.style.animationName
2309
+ }, b.style.transitionDuration = "0s", b.style.animationName = "none";
2310
+ const E = b.getBoundingClientRect();
2311
+ p.current = E.height, m.current = E.width, g.current || (b.style.transitionDuration = w.current.transitionDuration, b.style.animationName = w.current.animationName), u(r);
2312
+ }
2313
+ }, [a.open, r]), /* @__PURE__ */ y.jsx(
2314
+ Z.div,
2315
+ {
2316
+ "data-state": pn(a.open),
2317
+ "data-disabled": a.disabled ? "" : void 0,
2318
+ id: a.contentId,
2319
+ hidden: !h,
2320
+ ...i,
2321
+ ref: f,
2322
+ style: {
2323
+ "--radix-collapsible-content-height": v ? `${v}px` : void 0,
2324
+ "--radix-collapsible-content-width": x ? `${x}px` : void 0,
2325
+ ...e.style
2326
+ },
2327
+ children: h && o
2328
+ }
2329
+ );
2330
+ });
2331
+ function pn(e) {
2332
+ return e ? "open" : "closed";
2333
+ }
2334
+ var oa = vr, ia = gr, aa = yr, sa = d.createContext(void 0);
2335
+ function ca(e) {
2336
+ const t = d.useContext(sa);
2337
+ return e || t || "ltr";
2338
+ }
2339
+ var ve = "Accordion", la = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [hn, ua, fa] = Zi(ve), [St, wc] = et(ve, [
2340
+ fa,
2341
+ hr
2342
+ ]), vn = hr(), wr = H.forwardRef(
2343
+ (e, t) => {
2344
+ const { type: n, ...r } = e, o = r, i = r;
2345
+ return /* @__PURE__ */ y.jsx(hn.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ y.jsx(va, { ...i, ref: t }) : /* @__PURE__ */ y.jsx(ha, { ...o, ref: t }) });
2346
+ }
2347
+ );
2348
+ wr.displayName = ve;
2349
+ var [br, da] = St(ve), [xr, pa] = St(
2350
+ ve,
2351
+ { collapsible: !1 }
2352
+ ), ha = H.forwardRef(
2353
+ (e, t) => {
2354
+ const {
2355
+ value: n,
2356
+ defaultValue: r,
2357
+ onValueChange: o = () => {
2358
+ },
2359
+ collapsible: i = !1,
2360
+ ...a
2361
+ } = e, [s, u] = Pt({
2362
+ prop: n,
2363
+ defaultProp: r,
2364
+ onChange: o
2365
+ });
2366
+ return /* @__PURE__ */ y.jsx(
2367
+ br,
2368
+ {
2369
+ scope: e.__scopeAccordion,
2370
+ value: s ? [s] : [],
2371
+ onItemOpen: u,
2372
+ onItemClose: H.useCallback(() => i && u(""), [i, u]),
2373
+ children: /* @__PURE__ */ y.jsx(xr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ y.jsx(Cr, { ...a, ref: t }) })
2374
+ }
2375
+ );
2376
+ }
2377
+ ), va = H.forwardRef((e, t) => {
2378
+ const {
2379
+ value: n,
2380
+ defaultValue: r,
2381
+ onValueChange: o = () => {
2382
+ },
2383
+ ...i
2384
+ } = e, [a = [], s] = Pt({
2385
+ prop: n,
2386
+ defaultProp: r,
2387
+ onChange: o
2388
+ }), u = H.useCallback(
2389
+ (f) => s((p = []) => [...p, f]),
2390
+ [s]
2391
+ ), l = H.useCallback(
2392
+ (f) => s((p = []) => p.filter((v) => v !== f)),
2393
+ [s]
2394
+ );
2395
+ return /* @__PURE__ */ y.jsx(
2396
+ br,
2397
+ {
2398
+ scope: e.__scopeAccordion,
2399
+ value: a,
2400
+ onItemOpen: u,
2401
+ onItemClose: l,
2402
+ children: /* @__PURE__ */ y.jsx(xr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ y.jsx(Cr, { ...i, ref: t }) })
2403
+ }
2404
+ );
2405
+ }), [ma, Ot] = St(ve), Cr = H.forwardRef(
2406
+ (e, t) => {
2407
+ const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...a } = e, s = H.useRef(null), u = re(s, t), l = ua(n), p = ca(o) === "ltr", v = ce(e.onKeyDown, (m) => {
2408
+ var j;
2409
+ if (!la.includes(m.key)) return;
2410
+ const x = m.target, h = l().filter((F) => {
2411
+ var W;
2412
+ return !((W = F.ref.current) != null && W.disabled);
2413
+ }), g = h.findIndex((F) => F.ref.current === x), w = h.length;
2414
+ if (g === -1) return;
2415
+ m.preventDefault();
2416
+ let b = g;
2417
+ const E = 0, R = w - 1, A = () => {
2418
+ b = g + 1, b > R && (b = E);
2419
+ }, _ = () => {
2420
+ b = g - 1, b < E && (b = R);
2421
+ };
2422
+ switch (m.key) {
2423
+ case "Home":
2424
+ b = E;
2425
+ break;
2426
+ case "End":
2427
+ b = R;
2428
+ break;
2429
+ case "ArrowRight":
2430
+ i === "horizontal" && (p ? A() : _());
2431
+ break;
2432
+ case "ArrowDown":
2433
+ i === "vertical" && A();
2434
+ break;
2435
+ case "ArrowLeft":
2436
+ i === "horizontal" && (p ? _() : A());
2437
+ break;
2438
+ case "ArrowUp":
2439
+ i === "vertical" && _();
2440
+ break;
2441
+ }
2442
+ const S = b % w;
2443
+ (j = h[S].ref.current) == null || j.focus();
2444
+ });
2445
+ return /* @__PURE__ */ y.jsx(
2446
+ ma,
2447
+ {
2448
+ scope: n,
2449
+ disabled: r,
2450
+ direction: o,
2451
+ orientation: i,
2452
+ children: /* @__PURE__ */ y.jsx(hn.Slot, { scope: n, children: /* @__PURE__ */ y.jsx(
2453
+ Z.div,
2454
+ {
2455
+ ...a,
2456
+ "data-orientation": i,
2457
+ ref: u,
2458
+ onKeyDown: r ? void 0 : v
2459
+ }
2460
+ ) })
2461
+ }
2462
+ );
2463
+ }
2464
+ ), bt = "AccordionItem", [ga, mn] = St(bt), Er = H.forwardRef(
2465
+ (e, t) => {
2466
+ const { __scopeAccordion: n, value: r, ...o } = e, i = Ot(bt, n), a = da(bt, n), s = vn(n), u = ln(), l = r && a.value.includes(r) || !1, f = i.disabled || e.disabled;
2467
+ return /* @__PURE__ */ y.jsx(
2468
+ ga,
2469
+ {
2470
+ scope: n,
2471
+ open: l,
2472
+ disabled: f,
2473
+ triggerId: u,
2474
+ children: /* @__PURE__ */ y.jsx(
2475
+ oa,
2476
+ {
2477
+ "data-orientation": i.orientation,
2478
+ "data-state": _r(l),
2479
+ ...s,
2480
+ ...o,
2481
+ ref: t,
2482
+ disabled: f,
2483
+ open: l,
2484
+ onOpenChange: (p) => {
2485
+ p ? a.onItemOpen(r) : a.onItemClose(r);
2486
+ }
2487
+ }
2488
+ )
2489
+ }
2490
+ );
2491
+ }
2492
+ );
2493
+ Er.displayName = bt;
2494
+ var Rr = "AccordionHeader", Pr = H.forwardRef(
2495
+ (e, t) => {
2496
+ const { __scopeAccordion: n, ...r } = e, o = Ot(ve, n), i = mn(Rr, n);
2497
+ return /* @__PURE__ */ y.jsx(
2498
+ Z.h3,
2499
+ {
2500
+ "data-orientation": o.orientation,
2501
+ "data-state": _r(i.open),
2502
+ "data-disabled": i.disabled ? "" : void 0,
2503
+ ...r,
2504
+ ref: t
2505
+ }
2506
+ );
2507
+ }
2508
+ );
2509
+ Pr.displayName = Rr;
2510
+ var Zt = "AccordionTrigger", Ar = H.forwardRef(
2511
+ (e, t) => {
2512
+ const { __scopeAccordion: n, ...r } = e, o = Ot(ve, n), i = mn(Zt, n), a = pa(Zt, n), s = vn(n);
2513
+ return /* @__PURE__ */ y.jsx(hn.ItemSlot, { scope: n, children: /* @__PURE__ */ y.jsx(
2514
+ ia,
2515
+ {
2516
+ "aria-disabled": i.open && !a.collapsible || void 0,
2517
+ "data-orientation": o.orientation,
2518
+ id: i.triggerId,
2519
+ ...s,
2520
+ ...r,
2521
+ ref: t
2522
+ }
2523
+ ) });
2524
+ }
2525
+ );
2526
+ Ar.displayName = Zt;
2527
+ var Sr = "AccordionContent", Or = H.forwardRef(
2528
+ (e, t) => {
2529
+ const { __scopeAccordion: n, ...r } = e, o = Ot(ve, n), i = mn(Sr, n), a = vn(n);
2530
+ return /* @__PURE__ */ y.jsx(
2531
+ aa,
2532
+ {
2533
+ role: "region",
2534
+ "aria-labelledby": i.triggerId,
2535
+ "data-orientation": o.orientation,
2536
+ ...a,
2537
+ ...r,
2538
+ ref: t,
2539
+ style: {
2540
+ "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
2541
+ "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
2542
+ ...e.style
2543
+ }
2544
+ }
2545
+ );
2546
+ }
2547
+ );
2548
+ Or.displayName = Sr;
2549
+ function _r(e) {
2550
+ return e ? "open" : "closed";
2551
+ }
2552
+ var ya = wr, wa = Er, ba = Pr, xa = Ar, Ca = Or;
2553
+ const Ea = {
2554
+ arrows: {
2555
+ filePath: "arrows.svg",
2556
+ items: {
2557
+ arrowCircle: {
2558
+ viewBox: "0 0 32 32",
2559
+ width: 32,
2560
+ height: 32
2561
+ },
2562
+ arrowLink: {
2563
+ viewBox: "0 0 24 24",
2564
+ width: 24,
2565
+ height: 24
2566
+ },
2567
+ arrowRight: {
2568
+ viewBox: "0 0 16 17",
2569
+ width: 16,
2570
+ height: 17
2571
+ },
2572
+ arrowScroll: {
2573
+ viewBox: "0 0 14 16",
2574
+ width: 14,
2575
+ height: 16
2576
+ }
2577
+ }
2578
+ },
2579
+ brandLogos: {
2580
+ filePath: "brandLogos.svg",
2581
+ items: {
2582
+ logoBlack: {
2583
+ viewBox: "0 0 194 32",
2584
+ width: 194,
2585
+ height: 32
2586
+ },
2587
+ logoBusiness: {
2588
+ viewBox: "0 0 192 32",
2589
+ width: 192,
2590
+ height: 32
2591
+ },
2592
+ logoGray: {
2593
+ viewBox: "0 0 194 32",
2594
+ width: 194,
2595
+ height: 32
2596
+ },
2597
+ logoInsurance: {
2598
+ viewBox: "0 0 193 32",
2599
+ width: 193,
2600
+ height: 32
2601
+ },
2602
+ logoMain: {
2603
+ viewBox: "0 0 192 32",
2604
+ width: 192,
2605
+ height: 32
2606
+ },
2607
+ logoWhite: {
2608
+ viewBox: "0 0 194 32",
2609
+ width: 194,
2610
+ height: 32
2611
+ }
2612
+ }
2613
+ },
2614
+ editor: {
2615
+ filePath: "editor.svg",
2616
+ items: {
2617
+ bold: {
2618
+ viewBox: "0 0 24 24",
2619
+ width: 24,
2620
+ height: 24
2621
+ },
2622
+ heading: {
2623
+ viewBox: "0 0 24 24",
2624
+ width: 24,
2625
+ height: 24
2626
+ },
2627
+ italic: {
2628
+ viewBox: "0 0 24 24",
2629
+ width: 24,
2630
+ height: 24
2631
+ },
2632
+ link: {
2633
+ viewBox: "0 0 24 24",
2634
+ width: 24,
2635
+ height: 24
2636
+ },
2637
+ list: {
2638
+ viewBox: "0 0 24 24",
2639
+ width: 24,
2640
+ height: 24
2641
+ },
2642
+ palette: {
2643
+ viewBox: "0 0 24 24",
2644
+ width: 24,
2645
+ height: 24
2646
+ },
2647
+ redo: {
2648
+ viewBox: "0 0 24 24",
2649
+ width: 24,
2650
+ height: 24
2651
+ },
2652
+ removeFormatting: {
2653
+ viewBox: "0 0 24 24",
2654
+ width: 24,
2655
+ height: 24
2656
+ },
2657
+ space: {
2658
+ viewBox: "0 0 24 24",
2659
+ width: 24,
2660
+ height: 24
2661
+ },
2662
+ strikethrough: {
2663
+ viewBox: "0 0 24 24",
2664
+ width: 24,
2665
+ height: 24
2666
+ },
2667
+ typography: {
2668
+ viewBox: "0 0 24 24",
2669
+ width: 24,
2670
+ height: 24
2671
+ },
2672
+ underline: {
2673
+ viewBox: "0 0 24 24",
2674
+ width: 24,
2675
+ height: 24
2676
+ },
2677
+ undo: {
2678
+ viewBox: "0 0 24 24",
2679
+ width: 24,
2680
+ height: 24
2681
+ }
2682
+ }
2683
+ },
2684
+ files: {
2685
+ filePath: "files.svg",
2686
+ items: {
2687
+ border: {
2688
+ viewBox: "0 0 476 64",
2689
+ width: 476,
2690
+ height: 64
2691
+ },
2692
+ borderError: {
2693
+ viewBox: "0 0 476 64",
2694
+ width: 476,
2695
+ height: 64
2696
+ },
2697
+ documentFilled: {
2698
+ viewBox: "0 0 22 28",
2699
+ width: 22,
2700
+ height: 28
2701
+ },
2702
+ documentOutline: {
2703
+ viewBox: "0 0 22 28",
2704
+ width: 22,
2705
+ height: 28
2706
+ },
2707
+ upload: {
2708
+ viewBox: "0 0 23 20",
2709
+ width: 23,
2710
+ height: 20
2711
+ }
2712
+ }
2713
+ },
2714
+ general: {
2715
+ filePath: "general.svg",
2716
+ items: {
2717
+ calendar: {
2718
+ viewBox: "0 0 19 20",
2719
+ width: 19,
2720
+ height: 20
2721
+ },
2722
+ check: {
2723
+ viewBox: "0 0 24 24",
2724
+ width: 800,
2725
+ height: 800
2726
+ },
2727
+ close: {
2728
+ viewBox: "0 0 24 24",
2729
+ width: 24,
2730
+ height: 24
2731
+ },
2732
+ edit: {
2733
+ viewBox: "0 0 19 19",
2734
+ width: 19,
2735
+ height: 19
2736
+ },
2737
+ hiddenEye: {
2738
+ viewBox: "0 0 20 18",
2739
+ width: 20,
2740
+ height: 18
2741
+ },
2742
+ plus: {
2743
+ viewBox: "0 0 16 16",
2744
+ width: 16,
2745
+ height: 16
2746
+ },
2747
+ showEye: {
2748
+ viewBox: "0 0 20 14",
2749
+ width: 20,
2750
+ height: 14
2751
+ }
2752
+ }
2753
+ },
2754
+ info: {
2755
+ filePath: "info.svg",
2756
+ items: {
2757
+ helpCircle: {
2758
+ viewBox: "0 0 12 12",
2759
+ width: 12,
2760
+ height: 12
2761
+ },
2762
+ warningCircle: {
2763
+ viewBox: "0 0 20 20",
2764
+ width: 20,
2765
+ height: 20
2766
+ }
2767
+ }
2768
+ },
2769
+ logos: {
2770
+ filePath: "logos.svg",
2771
+ items: {
2772
+ beeline: {
2773
+ viewBox: "0 0 32 32",
2774
+ width: 32,
2775
+ height: 32
2776
+ },
2777
+ megafon: {
2778
+ viewBox: "0 0 32 32",
2779
+ width: 32,
2780
+ height: 32
2781
+ },
2782
+ mts: {
2783
+ viewBox: "0 0 32 32",
2784
+ width: 32,
2785
+ height: 32
2786
+ }
2787
+ }
2788
+ },
2789
+ social: {
2790
+ filePath: "social.svg",
2791
+ items: {
2792
+ classmates: {
2793
+ viewBox: "0 0 9 15",
2794
+ width: 9,
2795
+ height: 15
2796
+ },
2797
+ telegram: {
2798
+ viewBox: "0 0 15 13",
2799
+ width: 15,
2800
+ height: 13
2801
+ },
2802
+ vk: {
2803
+ viewBox: "0 0 16 9",
2804
+ width: 16,
2805
+ height: 9
2806
+ }
2807
+ }
2808
+ }
2809
+ }, Ra = (e) => {
2810
+ const [t, n] = e.split("/"), {
2811
+ filePath: r,
2812
+ items: {
2813
+ [n]: { viewBox: o, width: i, height: a }
2814
+ }
2815
+ } = Ea[t], s = i === a ? "xy" : i > a ? "x" : "y";
2816
+ return { filePath: r, iconName: n, viewBox: o, axis: s };
2817
+ }, de = ({ name: e, className: t, ...n }) => {
2818
+ const { viewBox: r, filePath: o, iconName: i, axis: a } = Ra(e);
2819
+ return /* @__PURE__ */ y.jsx(
2820
+ "svg",
2821
+ {
2822
+ className: L("text-inherit inline-block size-6 select-none fill-current", t),
2823
+ focusable: "false",
2824
+ viewBox: r,
2825
+ "aria-hidden": !0,
2826
+ "data-axis": a,
2827
+ ...n,
2828
+ children: /* @__PURE__ */ y.jsx("use", { href: `/sprites/${o}#${i}` })
2829
+ }
2830
+ );
2831
+ }, Tr = d.forwardRef(
2832
+ ({ children: e, classes: t, icon: n, ...r }, o) => /* @__PURE__ */ y.jsx(ba, { className: L("rounded-sm bg-color-primary-light-default", t == null ? void 0 : t.header), children: /* @__PURE__ */ y.jsxs(
2833
+ xa,
2834
+ {
2835
+ ref: o,
2836
+ className: L(
2837
+ "group flex w-full cursor-pointer items-center justify-between gap-5 rounded-sm border border-solid border-transparent bg-color-transparent px-4 py-3 outline-0 focus-visible:border-primary-default desktop:px-6 desktop:py-4",
2838
+ t == null ? void 0 : t.trigger
2839
+ ),
2840
+ ...r,
2841
+ children: [
2842
+ /* @__PURE__ */ y.jsx("div", { className: L("desk-body-medium-l flex-1 text-left text-color-dark", t == null ? void 0 : t.label), children: e }),
2843
+ n || /* @__PURE__ */ y.jsx(
2844
+ de,
2845
+ {
2846
+ name: "arrows/arrowCircle",
2847
+ className: L(
2848
+ "size-8 rotate-180 text-icon-blue-grey-800 transition-all group-data-[state=open]:rotate-0",
2849
+ t == null ? void 0 : t.icon
2850
+ )
2851
+ }
2852
+ )
2853
+ ]
2854
+ }
2855
+ ) })
2856
+ );
2857
+ Tr.displayName = "AccordionHeader";
2858
+ const bc = rr(
2859
+ ({ children: e, label: t, classes: n, defaultOpen: r = !1, icon: o }, i) => /* @__PURE__ */ y.jsx(
2860
+ ya,
2861
+ {
2862
+ className: L("flex flex-col gap-5", n == null ? void 0 : n.root),
2863
+ type: "multiple",
2864
+ defaultValue: r ? [t.toString()] : void 0,
2865
+ children: /* @__PURE__ */ y.jsxs(wa, { className: L("w-full disabled:text-color-dark", n == null ? void 0 : n.wrapper), value: t.toString(), children: [
2866
+ /* @__PURE__ */ y.jsx(Tr, { icon: o, classes: n, children: t }),
2867
+ /* @__PURE__ */ y.jsx(
2868
+ Ca,
2869
+ {
2870
+ id: "text",
2871
+ ref: i,
2872
+ className: L(
2873
+ "desk-body-regular-l max-w-[680px] overflow-hidden bg-color-transparent text-color-dark transition-all data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown",
2874
+ n == null ? void 0 : n.content
2875
+ ),
2876
+ children: /* @__PURE__ */ y.jsx("div", { className: L("p-4 desktop:p-6", n == null ? void 0 : n.contentInner), children: e })
2877
+ }
2878
+ )
2879
+ ] })
2880
+ }
2881
+ )
2882
+ );
2883
+ function Pa(e, t = globalThis == null ? void 0 : globalThis.document) {
2884
+ const n = be(e);
2885
+ d.useEffect(() => {
2886
+ const r = (o) => {
2887
+ o.key === "Escape" && n(o);
2888
+ };
2889
+ return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2890
+ }, [n, t]);
2891
+ }
2892
+ var Aa = "DismissableLayer", Qt = "dismissableLayer.update", Sa = "dismissableLayer.pointerDownOutside", Oa = "dismissableLayer.focusOutside", Hn, Nr = d.createContext({
2893
+ layers: /* @__PURE__ */ new Set(),
2894
+ layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2895
+ branches: /* @__PURE__ */ new Set()
2896
+ }), kr = d.forwardRef(
2897
+ (e, t) => {
2898
+ const {
2899
+ disableOutsidePointerEvents: n = !1,
2900
+ onEscapeKeyDown: r,
2901
+ onPointerDownOutside: o,
2902
+ onFocusOutside: i,
2903
+ onInteractOutside: a,
2904
+ onDismiss: s,
2905
+ ...u
2906
+ } = e, l = d.useContext(Nr), [f, p] = d.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), x = re(t, (S) => p(S)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = h.indexOf(g), b = f ? h.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, R = b >= w, A = Na((S) => {
2907
+ const j = S.target, F = [...l.branches].some((W) => W.contains(j));
2908
+ !R || F || (o == null || o(S), a == null || a(S), S.defaultPrevented || s == null || s());
2909
+ }, v), _ = ka((S) => {
2910
+ const j = S.target;
2911
+ [...l.branches].some((W) => W.contains(j)) || (i == null || i(S), a == null || a(S), S.defaultPrevented || s == null || s());
2912
+ }, v);
2913
+ return Pa((S) => {
2914
+ b === l.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
2915
+ }, v), d.useEffect(() => {
2916
+ if (f)
2917
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Hn = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Un(), () => {
2918
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = Hn);
2919
+ };
2920
+ }, [f, v, n, l]), d.useEffect(() => () => {
2921
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Un());
2922
+ }, [f, l]), d.useEffect(() => {
2923
+ const S = () => m({});
2924
+ return document.addEventListener(Qt, S), () => document.removeEventListener(Qt, S);
2925
+ }, []), /* @__PURE__ */ y.jsx(
2926
+ Z.div,
2927
+ {
2928
+ ...u,
2929
+ ref: x,
2930
+ style: {
2931
+ pointerEvents: E ? R ? "auto" : "none" : void 0,
2932
+ ...e.style
2933
+ },
2934
+ onFocusCapture: ce(e.onFocusCapture, _.onFocusCapture),
2935
+ onBlurCapture: ce(e.onBlurCapture, _.onBlurCapture),
2936
+ onPointerDownCapture: ce(
2937
+ e.onPointerDownCapture,
2938
+ A.onPointerDownCapture
2939
+ )
2940
+ }
2941
+ );
2942
+ }
2943
+ );
2944
+ kr.displayName = Aa;
2945
+ var _a = "DismissableLayerBranch", Ta = d.forwardRef((e, t) => {
2946
+ const n = d.useContext(Nr), r = d.useRef(null), o = re(t, r);
2947
+ return d.useEffect(() => {
2948
+ const i = r.current;
2949
+ if (i)
2950
+ return n.branches.add(i), () => {
2951
+ n.branches.delete(i);
2952
+ };
2953
+ }, [n.branches]), /* @__PURE__ */ y.jsx(Z.div, { ...e, ref: o });
2954
+ });
2955
+ Ta.displayName = _a;
2956
+ function Na(e, t = globalThis == null ? void 0 : globalThis.document) {
2957
+ const n = be(e), r = d.useRef(!1), o = d.useRef(() => {
2958
+ });
2959
+ return d.useEffect(() => {
2960
+ const i = (s) => {
2961
+ if (s.target && !r.current) {
2962
+ let u = function() {
2963
+ jr(
2964
+ Sa,
2965
+ n,
2966
+ l,
2967
+ { discrete: !0 }
2968
+ );
2969
+ };
2970
+ const l = { originalEvent: s };
2971
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
2972
+ } else
2973
+ t.removeEventListener("click", o.current);
2974
+ r.current = !1;
2975
+ }, a = window.setTimeout(() => {
2976
+ t.addEventListener("pointerdown", i);
2977
+ }, 0);
2978
+ return () => {
2979
+ window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
2980
+ };
2981
+ }, [t, n]), {
2982
+ // ensures we check React component tree (not just DOM tree)
2983
+ onPointerDownCapture: () => r.current = !0
2984
+ };
2985
+ }
2986
+ function ka(e, t = globalThis == null ? void 0 : globalThis.document) {
2987
+ const n = be(e), r = d.useRef(!1);
2988
+ return d.useEffect(() => {
2989
+ const o = (i) => {
2990
+ i.target && !r.current && jr(Oa, n, { originalEvent: i }, {
2991
+ discrete: !1
2992
+ });
2993
+ };
2994
+ return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
2995
+ }, [t, n]), {
2996
+ onFocusCapture: () => r.current = !0,
2997
+ onBlurCapture: () => r.current = !1
2998
+ };
2999
+ }
3000
+ function Un() {
3001
+ const e = new CustomEvent(Qt);
3002
+ document.dispatchEvent(e);
3003
+ }
3004
+ function jr(e, t, n, { discrete: r }) {
3005
+ const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
3006
+ t && o.addEventListener(e, t, { once: !0 }), r ? Ji(o, i) : o.dispatchEvent(i);
3007
+ }
3008
+ var ht = typeof document < "u" ? $o : Vo;
3009
+ function xt(e, t) {
3010
+ if (e === t)
3011
+ return !0;
3012
+ if (typeof e != typeof t)
3013
+ return !1;
3014
+ if (typeof e == "function" && e.toString() === t.toString())
3015
+ return !0;
3016
+ let n, r, o;
3017
+ if (e && t && typeof e == "object") {
3018
+ if (Array.isArray(e)) {
3019
+ if (n = e.length, n !== t.length) return !1;
3020
+ for (r = n; r-- !== 0; )
3021
+ if (!xt(e[r], t[r]))
3022
+ return !1;
3023
+ return !0;
3024
+ }
3025
+ if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
3026
+ return !1;
3027
+ for (r = n; r-- !== 0; )
3028
+ if (!{}.hasOwnProperty.call(t, o[r]))
3029
+ return !1;
3030
+ for (r = n; r-- !== 0; ) {
3031
+ const i = o[r];
3032
+ if (!(i === "_owner" && e.$$typeof) && !xt(e[i], t[i]))
3033
+ return !1;
3034
+ }
3035
+ return !0;
3036
+ }
3037
+ return e !== e && t !== t;
3038
+ }
3039
+ function Dr(e) {
3040
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
3041
+ }
3042
+ function Yn(e, t) {
3043
+ const n = Dr(e);
3044
+ return Math.round(t * n) / n;
3045
+ }
3046
+ function Bt(e) {
3047
+ const t = d.useRef(e);
3048
+ return ht(() => {
3049
+ t.current = e;
3050
+ }), t;
3051
+ }
3052
+ function ja(e) {
3053
+ e === void 0 && (e = {});
3054
+ const {
3055
+ placement: t = "bottom",
3056
+ strategy: n = "absolute",
3057
+ middleware: r = [],
3058
+ platform: o,
3059
+ elements: {
3060
+ reference: i,
3061
+ floating: a
3062
+ } = {},
3063
+ transform: s = !0,
3064
+ whileElementsMounted: u,
3065
+ open: l
3066
+ } = e, [f, p] = d.useState({
3067
+ x: 0,
3068
+ y: 0,
3069
+ strategy: n,
3070
+ placement: t,
3071
+ middlewareData: {},
3072
+ isPositioned: !1
3073
+ }), [v, m] = d.useState(r);
3074
+ xt(v, r) || m(r);
3075
+ const [x, h] = d.useState(null), [g, w] = d.useState(null), b = d.useCallback((N) => {
3076
+ N !== _.current && (_.current = N, h(N));
3077
+ }, []), E = d.useCallback((N) => {
3078
+ N !== S.current && (S.current = N, w(N));
3079
+ }, []), R = i || x, A = a || g, _ = d.useRef(null), S = d.useRef(null), j = d.useRef(f), F = u != null, W = Bt(u), G = Bt(o), K = Bt(l), D = d.useCallback(() => {
3080
+ if (!_.current || !S.current)
3081
+ return;
3082
+ const N = {
3083
+ placement: t,
3084
+ strategy: n,
3085
+ middleware: v
3086
+ };
3087
+ G.current && (N.platform = G.current), Bi(_.current, S.current, N).then((Y) => {
3088
+ const Q = {
3089
+ ...Y,
3090
+ // The floating element's position may be recomputed while it's closed
3091
+ // but still mounted (such as when transitioning out). To ensure
3092
+ // `isPositioned` will be `false` initially on the next open, avoid
3093
+ // setting it to `true` when `open === false` (must be specified).
3094
+ isPositioned: K.current !== !1
3095
+ };
3096
+ I.current && !xt(j.current, Q) && (j.current = Q, or.flushSync(() => {
3097
+ p(Q);
3098
+ }));
3099
+ });
3100
+ }, [v, t, n, G, K]);
3101
+ ht(() => {
3102
+ l === !1 && j.current.isPositioned && (j.current.isPositioned = !1, p((N) => ({
3103
+ ...N,
3104
+ isPositioned: !1
3105
+ })));
3106
+ }, [l]);
3107
+ const I = d.useRef(!1);
3108
+ ht(() => (I.current = !0, () => {
3109
+ I.current = !1;
3110
+ }), []), ht(() => {
3111
+ if (R && (_.current = R), A && (S.current = A), R && A) {
3112
+ if (W.current)
3113
+ return W.current(R, A, D);
3114
+ D();
3115
+ }
3116
+ }, [R, A, D, W, F]);
3117
+ const X = d.useMemo(() => ({
3118
+ reference: _,
3119
+ floating: S,
3120
+ setReference: b,
3121
+ setFloating: E
3122
+ }), [b, E]), $ = d.useMemo(() => ({
3123
+ reference: R,
3124
+ floating: A
3125
+ }), [R, A]), V = d.useMemo(() => {
3126
+ const N = {
3127
+ position: n,
3128
+ left: 0,
3129
+ top: 0
3130
+ };
3131
+ if (!$.floating)
3132
+ return N;
3133
+ const Y = Yn($.floating, f.x), Q = Yn($.floating, f.y);
3134
+ return s ? {
3135
+ ...N,
3136
+ transform: "translate(" + Y + "px, " + Q + "px)",
3137
+ ...Dr($.floating) >= 1.5 && {
3138
+ willChange: "transform"
3139
+ }
3140
+ } : {
3141
+ position: n,
3142
+ left: Y,
3143
+ top: Q
3144
+ };
3145
+ }, [n, s, $.floating, f.x, f.y]);
3146
+ return d.useMemo(() => ({
3147
+ ...f,
3148
+ update: D,
3149
+ refs: X,
3150
+ elements: $,
3151
+ floatingStyles: V
3152
+ }), [f, D, X, $, V]);
3153
+ }
3154
+ const Da = (e) => {
3155
+ function t(n) {
3156
+ return {}.hasOwnProperty.call(n, "current");
3157
+ }
3158
+ return {
3159
+ name: "arrow",
3160
+ options: e,
3161
+ fn(n) {
3162
+ const {
3163
+ element: r,
3164
+ padding: o
3165
+ } = typeof e == "function" ? e(n) : e;
3166
+ return r && t(r) ? r.current != null ? Vn({
3167
+ element: r.current,
3168
+ padding: o
3169
+ }).fn(n) : {} : r ? Vn({
3170
+ element: r,
3171
+ padding: o
3172
+ }).fn(n) : {};
3173
+ }
3174
+ };
3175
+ }, Ma = (e, t) => ({
3176
+ ...ji(e),
3177
+ options: [e, t]
3178
+ }), Ia = (e, t) => ({
3179
+ ...Di(e),
3180
+ options: [e, t]
3181
+ }), La = (e, t) => ({
3182
+ ...Fi(e),
3183
+ options: [e, t]
3184
+ }), Fa = (e, t) => ({
3185
+ ...Mi(e),
3186
+ options: [e, t]
3187
+ }), Ba = (e, t) => ({
3188
+ ...Ii(e),
3189
+ options: [e, t]
3190
+ }), Wa = (e, t) => ({
3191
+ ...Li(e),
3192
+ options: [e, t]
3193
+ }), $a = (e, t) => ({
3194
+ ...Da(e),
3195
+ options: [e, t]
3196
+ });
3197
+ var Va = "Arrow", Mr = d.forwardRef((e, t) => {
3198
+ const { children: n, width: r = 10, height: o = 5, ...i } = e;
3199
+ return /* @__PURE__ */ y.jsx(
3200
+ Z.svg,
3201
+ {
3202
+ ...i,
3203
+ ref: t,
3204
+ width: r,
3205
+ height: o,
3206
+ viewBox: "0 0 30 10",
3207
+ preserveAspectRatio: "none",
3208
+ children: e.asChild ? n : /* @__PURE__ */ y.jsx("polygon", { points: "0,0 30,0 15,10" })
3209
+ }
3210
+ );
3211
+ });
3212
+ Mr.displayName = Va;
3213
+ var za = Mr, gn = "Popper", [Ir, Lr] = et(gn), [Ha, Fr] = Ir(gn), Br = (e) => {
3214
+ const { __scopePopper: t, children: n } = e, [r, o] = d.useState(null);
3215
+ return /* @__PURE__ */ y.jsx(Ha, { scope: t, anchor: r, onAnchorChange: o, children: n });
3216
+ };
3217
+ Br.displayName = gn;
3218
+ var Wr = "PopperAnchor", $r = d.forwardRef(
3219
+ (e, t) => {
3220
+ const { __scopePopper: n, virtualRef: r, ...o } = e, i = Fr(Wr, n), a = d.useRef(null), s = re(t, a);
3221
+ return d.useEffect(() => {
3222
+ i.onAnchorChange((r == null ? void 0 : r.current) || a.current);
3223
+ }), r ? null : /* @__PURE__ */ y.jsx(Z.div, { ...o, ref: s });
3224
+ }
3225
+ );
3226
+ $r.displayName = Wr;
3227
+ var yn = "PopperContent", [Ua, Ya] = Ir(yn), Vr = d.forwardRef(
3228
+ (e, t) => {
3229
+ var Te, Re, Ne, Pe, ot, Ke;
3230
+ const {
3231
+ __scopePopper: n,
3232
+ side: r = "bottom",
3233
+ sideOffset: o = 0,
3234
+ align: i = "center",
3235
+ alignOffset: a = 0,
3236
+ arrowPadding: s = 0,
3237
+ avoidCollisions: u = !0,
3238
+ collisionBoundary: l = [],
3239
+ collisionPadding: f = 0,
3240
+ sticky: p = "partial",
3241
+ hideWhenDetached: v = !1,
3242
+ updatePositionStrategy: m = "optimized",
3243
+ onPlaced: x,
3244
+ ...h
3245
+ } = e, g = Fr(yn, n), [w, b] = d.useState(null), E = re(t, (Ae) => b(Ae)), [R, A] = d.useState(null), _ = Vi(R), S = (_ == null ? void 0 : _.width) ?? 0, j = (_ == null ? void 0 : _.height) ?? 0, F = r + (i !== "center" ? "-" + i : ""), W = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, G = Array.isArray(l) ? l : [l], K = G.length > 0, D = {
3246
+ padding: W,
3247
+ boundary: G.filter(Xa),
3248
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
3249
+ altBoundary: K
3250
+ }, { refs: I, floatingStyles: X, placement: $, isPositioned: V, middlewareData: N } = ja({
3251
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
3252
+ strategy: "fixed",
3253
+ placement: F,
3254
+ whileElementsMounted: (...Ae) => ki(...Ae, {
3255
+ animationFrame: m === "always"
3256
+ }),
3257
+ elements: {
3258
+ reference: g.anchor
3259
+ },
3260
+ middleware: [
3261
+ Ma({ mainAxis: o + j, alignmentAxis: a }),
3262
+ u && Ia({
3263
+ mainAxis: !0,
3264
+ crossAxis: !1,
3265
+ limiter: p === "partial" ? La() : void 0,
3266
+ ...D
3267
+ }),
3268
+ u && Fa({ ...D }),
3269
+ Ba({
3270
+ ...D,
3271
+ apply: ({ elements: Ae, rects: it, availableWidth: ke, availableHeight: Se }) => {
3272
+ const { width: at, height: st } = it.reference, fe = Ae.floating.style;
3273
+ fe.setProperty("--radix-popper-available-width", `${ke}px`), fe.setProperty("--radix-popper-available-height", `${Se}px`), fe.setProperty("--radix-popper-anchor-width", `${at}px`), fe.setProperty("--radix-popper-anchor-height", `${st}px`);
3274
+ }
3275
+ }),
3276
+ R && $a({ element: R, padding: s }),
3277
+ Ga({ arrowWidth: S, arrowHeight: j }),
3278
+ v && Wa({ strategy: "referenceHidden", ...D })
3279
+ ]
3280
+ }), [Y, Q] = Ur($), Ee = be(x);
3281
+ xe(() => {
3282
+ V && (Ee == null || Ee());
3283
+ }, [V, Ee]);
3284
+ const nt = (Te = N.arrow) == null ? void 0 : Te.x, rt = (Re = N.arrow) == null ? void 0 : Re.y, Tt = ((Ne = N.arrow) == null ? void 0 : Ne.centerOffset) !== 0, [Nt, Ye] = d.useState();
3285
+ return xe(() => {
3286
+ w && Ye(window.getComputedStyle(w).zIndex);
3287
+ }, [w]), /* @__PURE__ */ y.jsx(
3288
+ "div",
3289
+ {
3290
+ ref: I.setFloating,
3291
+ "data-radix-popper-content-wrapper": "",
3292
+ style: {
3293
+ ...X,
3294
+ transform: V ? X.transform : "translate(0, -200%)",
3295
+ // keep off the page when measuring
3296
+ minWidth: "max-content",
3297
+ zIndex: Nt,
3298
+ "--radix-popper-transform-origin": [
3299
+ (Pe = N.transformOrigin) == null ? void 0 : Pe.x,
3300
+ (ot = N.transformOrigin) == null ? void 0 : ot.y
3301
+ ].join(" "),
3302
+ // hide the content if using the hide middleware and should be hidden
3303
+ // set visibility to hidden and disable pointer events so the UI behaves
3304
+ // as if the PopperContent isn't there at all
3305
+ ...((Ke = N.hide) == null ? void 0 : Ke.referenceHidden) && {
3306
+ visibility: "hidden",
3307
+ pointerEvents: "none"
3308
+ }
3309
+ },
3310
+ dir: e.dir,
3311
+ children: /* @__PURE__ */ y.jsx(
3312
+ Ua,
3313
+ {
3314
+ scope: n,
3315
+ placedSide: Y,
3316
+ onArrowChange: A,
3317
+ arrowX: nt,
3318
+ arrowY: rt,
3319
+ shouldHideArrow: Tt,
3320
+ children: /* @__PURE__ */ y.jsx(
3321
+ Z.div,
3322
+ {
3323
+ "data-side": Y,
3324
+ "data-align": Q,
3325
+ ...h,
3326
+ ref: E,
3327
+ style: {
3328
+ ...h.style,
3329
+ // if the PopperContent hasn't been placed yet (not all measurements done)
3330
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
3331
+ animation: V ? void 0 : "none"
3332
+ }
3333
+ }
3334
+ )
3335
+ }
3336
+ )
3337
+ }
3338
+ );
3339
+ }
3340
+ );
3341
+ Vr.displayName = yn;
3342
+ var zr = "PopperArrow", Ka = {
3343
+ top: "bottom",
3344
+ right: "left",
3345
+ bottom: "top",
3346
+ left: "right"
3347
+ }, Hr = d.forwardRef(function(t, n) {
3348
+ const { __scopePopper: r, ...o } = t, i = Ya(zr, r), a = Ka[i.placedSide];
3349
+ return (
3350
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
3351
+ // doesn't report size as we'd expect on SVG elements.
3352
+ // it reports their bounding box which is effectively the largest path inside the SVG.
3353
+ /* @__PURE__ */ y.jsx(
3354
+ "span",
3355
+ {
3356
+ ref: i.onArrowChange,
3357
+ style: {
3358
+ position: "absolute",
3359
+ left: i.arrowX,
3360
+ top: i.arrowY,
3361
+ [a]: 0,
3362
+ transformOrigin: {
3363
+ top: "",
3364
+ right: "0 0",
3365
+ bottom: "center 0",
3366
+ left: "100% 0"
3367
+ }[i.placedSide],
3368
+ transform: {
3369
+ top: "translateY(100%)",
3370
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
3371
+ bottom: "rotate(180deg)",
3372
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
3373
+ }[i.placedSide],
3374
+ visibility: i.shouldHideArrow ? "hidden" : void 0
3375
+ },
3376
+ children: /* @__PURE__ */ y.jsx(
3377
+ za,
3378
+ {
3379
+ ...o,
3380
+ ref: n,
3381
+ style: {
3382
+ ...o.style,
3383
+ // ensures the element can be measured correctly (mostly for if SVG)
3384
+ display: "block"
3385
+ }
3386
+ }
3387
+ )
3388
+ }
3389
+ )
3390
+ );
3391
+ });
3392
+ Hr.displayName = zr;
3393
+ function Xa(e) {
3394
+ return e !== null;
3395
+ }
3396
+ var Ga = (e) => ({
3397
+ name: "transformOrigin",
3398
+ options: e,
3399
+ fn(t) {
3400
+ var g, w, b;
3401
+ const { placement: n, rects: r, middlewareData: o } = t, a = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Ur(n), p = { start: "0%", center: "50%", end: "100%" }[f], v = (((w = o.arrow) == null ? void 0 : w.x) ?? 0) + s / 2, m = (((b = o.arrow) == null ? void 0 : b.y) ?? 0) + u / 2;
3402
+ let x = "", h = "";
3403
+ return l === "bottom" ? (x = a ? p : `${v}px`, h = `${-u}px`) : l === "top" ? (x = a ? p : `${v}px`, h = `${r.floating.height + u}px`) : l === "right" ? (x = `${-u}px`, h = a ? p : `${m}px`) : l === "left" && (x = `${r.floating.width + u}px`, h = a ? p : `${m}px`), { data: { x, y: h } };
3404
+ }
3405
+ });
3406
+ function Ur(e) {
3407
+ const [t, n = "center"] = e.split("-");
3408
+ return [t, n];
3409
+ }
3410
+ var qa = Br, Yr = $r, Ja = Vr, Za = Hr, Qa = "Portal", Kr = d.forwardRef((e, t) => {
3411
+ var s;
3412
+ const { container: n, ...r } = e, [o, i] = d.useState(!1);
3413
+ xe(() => i(!0), []);
3414
+ const a = n || o && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
3415
+ return a ? Ho.createPortal(/* @__PURE__ */ y.jsx(Z.div, { ...r, ref: t }), a) : null;
3416
+ });
3417
+ Kr.displayName = Qa;
3418
+ var Wt = 0;
3419
+ function es() {
3420
+ d.useEffect(() => {
3421
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
3422
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Kn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Kn()), Wt++, () => {
3423
+ Wt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Wt--;
3424
+ };
3425
+ }, []);
3426
+ }
3427
+ function Kn() {
3428
+ const e = document.createElement("span");
3429
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
3430
+ }
3431
+ var $t = "focusScope.autoFocusOnMount", Vt = "focusScope.autoFocusOnUnmount", Xn = { bubbles: !1, cancelable: !0 }, ts = "FocusScope", Xr = d.forwardRef((e, t) => {
3432
+ const {
3433
+ loop: n = !1,
3434
+ trapped: r = !1,
3435
+ onMountAutoFocus: o,
3436
+ onUnmountAutoFocus: i,
3437
+ ...a
3438
+ } = e, [s, u] = d.useState(null), l = be(o), f = be(i), p = d.useRef(null), v = re(t, (h) => u(h)), m = d.useRef({
3439
+ paused: !1,
3440
+ pause() {
3441
+ this.paused = !0;
3442
+ },
3443
+ resume() {
3444
+ this.paused = !1;
3445
+ }
3446
+ }).current;
3447
+ d.useEffect(() => {
3448
+ if (r) {
3449
+ let h = function(E) {
3450
+ if (m.paused || !s) return;
3451
+ const R = E.target;
3452
+ s.contains(R) ? p.current = R : me(p.current, { select: !0 });
3453
+ }, g = function(E) {
3454
+ if (m.paused || !s) return;
3455
+ const R = E.relatedTarget;
3456
+ R !== null && (s.contains(R) || me(p.current, { select: !0 }));
3457
+ }, w = function(E) {
3458
+ if (document.activeElement === document.body)
3459
+ for (const A of E)
3460
+ A.removedNodes.length > 0 && me(s);
3461
+ };
3462
+ document.addEventListener("focusin", h), document.addEventListener("focusout", g);
3463
+ const b = new MutationObserver(w);
3464
+ return s && b.observe(s, { childList: !0, subtree: !0 }), () => {
3465
+ document.removeEventListener("focusin", h), document.removeEventListener("focusout", g), b.disconnect();
3466
+ };
3467
+ }
3468
+ }, [r, s, m.paused]), d.useEffect(() => {
3469
+ if (s) {
3470
+ qn.add(m);
3471
+ const h = document.activeElement;
3472
+ if (!s.contains(h)) {
3473
+ const w = new CustomEvent($t, Xn);
3474
+ s.addEventListener($t, l), s.dispatchEvent(w), w.defaultPrevented || (ns(ss(Gr(s)), { select: !0 }), document.activeElement === h && me(s));
3475
+ }
3476
+ return () => {
3477
+ s.removeEventListener($t, l), setTimeout(() => {
3478
+ const w = new CustomEvent(Vt, Xn);
3479
+ s.addEventListener(Vt, f), s.dispatchEvent(w), w.defaultPrevented || me(h ?? document.body, { select: !0 }), s.removeEventListener(Vt, f), qn.remove(m);
3480
+ }, 0);
3481
+ };
3482
+ }
3483
+ }, [s, l, f, m]);
3484
+ const x = d.useCallback(
3485
+ (h) => {
3486
+ if (!n && !r || m.paused) return;
3487
+ const g = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, w = document.activeElement;
3488
+ if (g && w) {
3489
+ const b = h.currentTarget, [E, R] = rs(b);
3490
+ E && R ? !h.shiftKey && w === R ? (h.preventDefault(), n && me(E, { select: !0 })) : h.shiftKey && w === E && (h.preventDefault(), n && me(R, { select: !0 })) : w === b && h.preventDefault();
3491
+ }
3492
+ },
3493
+ [n, r, m.paused]
3494
+ );
3495
+ return /* @__PURE__ */ y.jsx(Z.div, { tabIndex: -1, ...a, ref: v, onKeyDown: x });
3496
+ });
3497
+ Xr.displayName = ts;
3498
+ function ns(e, { select: t = !1 } = {}) {
3499
+ const n = document.activeElement;
3500
+ for (const r of e)
3501
+ if (me(r, { select: t }), document.activeElement !== n) return;
3502
+ }
3503
+ function rs(e) {
3504
+ const t = Gr(e), n = Gn(t, e), r = Gn(t.reverse(), e);
3505
+ return [n, r];
3506
+ }
3507
+ function Gr(e) {
3508
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
3509
+ acceptNode: (r) => {
3510
+ const o = r.tagName === "INPUT" && r.type === "hidden";
3511
+ return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
3512
+ }
3513
+ });
3514
+ for (; n.nextNode(); ) t.push(n.currentNode);
3515
+ return t;
3516
+ }
3517
+ function Gn(e, t) {
3518
+ for (const n of e)
3519
+ if (!os(n, { upTo: t })) return n;
3520
+ }
3521
+ function os(e, { upTo: t }) {
3522
+ if (getComputedStyle(e).visibility === "hidden") return !0;
3523
+ for (; e; ) {
3524
+ if (t !== void 0 && e === t) return !1;
3525
+ if (getComputedStyle(e).display === "none") return !0;
3526
+ e = e.parentElement;
3527
+ }
3528
+ return !1;
3529
+ }
3530
+ function is(e) {
3531
+ return e instanceof HTMLInputElement && "select" in e;
3532
+ }
3533
+ function me(e, { select: t = !1 } = {}) {
3534
+ if (e && e.focus) {
3535
+ const n = document.activeElement;
3536
+ e.focus({ preventScroll: !0 }), e !== n && is(e) && t && e.select();
3537
+ }
3538
+ }
3539
+ var qn = as();
3540
+ function as() {
3541
+ let e = [];
3542
+ return {
3543
+ add(t) {
3544
+ const n = e[0];
3545
+ t !== n && (n == null || n.pause()), e = Jn(e, t), e.unshift(t);
3546
+ },
3547
+ remove(t) {
3548
+ var n;
3549
+ e = Jn(e, t), (n = e[0]) == null || n.resume();
3550
+ }
3551
+ };
3552
+ }
3553
+ function Jn(e, t) {
3554
+ const n = [...e], r = n.indexOf(t);
3555
+ return r !== -1 && n.splice(r, 1), n;
3556
+ }
3557
+ function ss(e) {
3558
+ return e.filter((t) => t.tagName !== "A");
3559
+ }
3560
+ var cs = function(e) {
3561
+ if (typeof document > "u")
3562
+ return null;
3563
+ var t = Array.isArray(e) ? e[0] : e;
3564
+ return t.ownerDocument.body;
3565
+ }, Me = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), ft = {}, zt = 0, qr = function(e) {
3566
+ return e && (e.host || qr(e.parentNode));
3567
+ }, ls = function(e, t) {
3568
+ return t.map(function(n) {
3569
+ if (e.contains(n))
3570
+ return n;
3571
+ var r = qr(n);
3572
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3573
+ }).filter(function(n) {
3574
+ return !!n;
3575
+ });
3576
+ }, us = function(e, t, n, r) {
3577
+ var o = ls(t, Array.isArray(e) ? e : [e]);
3578
+ ft[n] || (ft[n] = /* @__PURE__ */ new WeakMap());
3579
+ var i = ft[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(o), l = function(p) {
3580
+ !p || s.has(p) || (s.add(p), l(p.parentNode));
3581
+ };
3582
+ o.forEach(l);
3583
+ var f = function(p) {
3584
+ !p || u.has(p) || Array.prototype.forEach.call(p.children, function(v) {
3585
+ if (s.has(v))
3586
+ f(v);
3587
+ else
3588
+ try {
3589
+ var m = v.getAttribute(r), x = m !== null && m !== "false", h = (Me.get(v) || 0) + 1, g = (i.get(v) || 0) + 1;
3590
+ Me.set(v, h), i.set(v, g), a.push(v), h === 1 && x && ut.set(v, !0), g === 1 && v.setAttribute(n, "true"), x || v.setAttribute(r, "true");
3591
+ } catch (w) {
3592
+ console.error("aria-hidden: cannot operate on ", v, w);
3593
+ }
3594
+ });
3595
+ };
3596
+ return f(t), s.clear(), zt++, function() {
3597
+ a.forEach(function(p) {
3598
+ var v = Me.get(p) - 1, m = i.get(p) - 1;
3599
+ Me.set(p, v), i.set(p, m), v || (ut.has(p) || p.removeAttribute(r), ut.delete(p)), m || p.removeAttribute(n);
3600
+ }), zt--, zt || (Me = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), ft = {});
3601
+ };
3602
+ }, fs = function(e, t, n) {
3603
+ n === void 0 && (n = "data-aria-hidden");
3604
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = cs(e);
3605
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), us(r, o, n, "aria-hidden")) : function() {
3606
+ return null;
3607
+ };
3608
+ }, ae = function() {
3609
+ return ae = Object.assign || function(t) {
3610
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
3611
+ n = arguments[r];
3612
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
3613
+ }
3614
+ return t;
3615
+ }, ae.apply(this, arguments);
3616
+ };
3617
+ function Jr(e, t) {
3618
+ var n = {};
3619
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3620
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
3621
+ for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
3622
+ t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
3623
+ return n;
3624
+ }
3625
+ function xc(e, t, n, r) {
3626
+ function o(i) {
3627
+ return i instanceof n ? i : new n(function(a) {
3628
+ a(i);
3629
+ });
3630
+ }
3631
+ return new (n || (n = Promise))(function(i, a) {
3632
+ function s(f) {
3633
+ try {
3634
+ l(r.next(f));
3635
+ } catch (p) {
3636
+ a(p);
3637
+ }
3638
+ }
3639
+ function u(f) {
3640
+ try {
3641
+ l(r.throw(f));
3642
+ } catch (p) {
3643
+ a(p);
3644
+ }
3645
+ }
3646
+ function l(f) {
3647
+ f.done ? i(f.value) : o(f.value).then(s, u);
3648
+ }
3649
+ l((r = r.apply(e, t || [])).next());
3650
+ });
3651
+ }
3652
+ function ds(e, t, n) {
3653
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
3654
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
3655
+ return e.concat(i || Array.prototype.slice.call(t));
3656
+ }
3657
+ var vt = "right-scroll-bar-position", mt = "width-before-scroll-bar", ps = "with-scroll-bars-hidden", hs = "--removed-body-scroll-bar-size";
3658
+ function Ht(e, t) {
3659
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
3660
+ }
3661
+ function vs(e, t) {
3662
+ var n = zo(function() {
3663
+ return {
3664
+ // value
3665
+ value: e,
3666
+ // last callback
3667
+ callback: t,
3668
+ // "memoized" public interface
3669
+ facade: {
3670
+ get current() {
3671
+ return n.value;
3672
+ },
3673
+ set current(r) {
3674
+ var o = n.value;
3675
+ o !== r && (n.value = r, n.callback(r, o));
3676
+ }
3677
+ }
3678
+ };
3679
+ })[0];
3680
+ return n.callback = t, n.facade;
3681
+ }
3682
+ var ms = typeof window < "u" ? d.useLayoutEffect : d.useEffect, Zn = /* @__PURE__ */ new WeakMap();
3683
+ function gs(e, t) {
3684
+ var n = vs(null, function(r) {
3685
+ return e.forEach(function(o) {
3686
+ return Ht(o, r);
3687
+ });
3688
+ });
3689
+ return ms(function() {
3690
+ var r = Zn.get(n);
3691
+ if (r) {
3692
+ var o = new Set(r), i = new Set(e), a = n.current;
3693
+ o.forEach(function(s) {
3694
+ i.has(s) || Ht(s, null);
3695
+ }), i.forEach(function(s) {
3696
+ o.has(s) || Ht(s, a);
3697
+ });
3698
+ }
3699
+ Zn.set(n, e);
3700
+ }, [e]), n;
3701
+ }
3702
+ function ys(e) {
3703
+ return e;
3704
+ }
3705
+ function ws(e, t) {
3706
+ t === void 0 && (t = ys);
3707
+ var n = [], r = !1, o = {
3708
+ read: function() {
3709
+ if (r)
3710
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
3711
+ return n.length ? n[n.length - 1] : e;
3712
+ },
3713
+ useMedium: function(i) {
3714
+ var a = t(i, r);
3715
+ return n.push(a), function() {
3716
+ n = n.filter(function(s) {
3717
+ return s !== a;
3718
+ });
3719
+ };
3720
+ },
3721
+ assignSyncMedium: function(i) {
3722
+ for (r = !0; n.length; ) {
3723
+ var a = n;
3724
+ n = [], a.forEach(i);
3725
+ }
3726
+ n = {
3727
+ push: function(s) {
3728
+ return i(s);
3729
+ },
3730
+ filter: function() {
3731
+ return n;
3732
+ }
3733
+ };
3734
+ },
3735
+ assignMedium: function(i) {
3736
+ r = !0;
3737
+ var a = [];
3738
+ if (n.length) {
3739
+ var s = n;
3740
+ n = [], s.forEach(i), a = n;
3741
+ }
3742
+ var u = function() {
3743
+ var f = a;
3744
+ a = [], f.forEach(i);
3745
+ }, l = function() {
3746
+ return Promise.resolve().then(u);
3747
+ };
3748
+ l(), n = {
3749
+ push: function(f) {
3750
+ a.push(f), l();
3751
+ },
3752
+ filter: function(f) {
3753
+ return a = a.filter(f), n;
3754
+ }
3755
+ };
3756
+ }
3757
+ };
3758
+ return o;
3759
+ }
3760
+ function bs(e) {
3761
+ e === void 0 && (e = {});
3762
+ var t = ws(null);
3763
+ return t.options = ae({ async: !0, ssr: !1 }, e), t;
3764
+ }
3765
+ var Zr = function(e) {
3766
+ var t = e.sideCar, n = Jr(e, ["sideCar"]);
3767
+ if (!t)
3768
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
3769
+ var r = t.read();
3770
+ if (!r)
3771
+ throw new Error("Sidecar medium not found");
3772
+ return d.createElement(r, ae({}, n));
3773
+ };
3774
+ Zr.isSideCarExport = !0;
3775
+ function xs(e, t) {
3776
+ return e.useMedium(t), Zr;
3777
+ }
3778
+ var Qr = bs(), Ut = function() {
3779
+ }, _t = d.forwardRef(function(e, t) {
3780
+ var n = d.useRef(null), r = d.useState({
3781
+ onScrollCapture: Ut,
3782
+ onWheelCapture: Ut,
3783
+ onTouchMoveCapture: Ut
3784
+ }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, p = e.shards, v = e.sideCar, m = e.noIsolation, x = e.inert, h = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, b = e.gapMode, E = Jr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), R = v, A = gs([n, t]), _ = ae(ae({}, E), o);
3785
+ return d.createElement(
3786
+ d.Fragment,
3787
+ null,
3788
+ f && d.createElement(R, { sideCar: Qr, removeScrollBar: l, shards: p, noIsolation: m, inert: x, setCallbacks: i, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
3789
+ a ? d.cloneElement(d.Children.only(s), ae(ae({}, _), { ref: A })) : d.createElement(w, ae({}, _, { className: u, ref: A }), s)
3790
+ );
3791
+ });
3792
+ _t.defaultProps = {
3793
+ enabled: !0,
3794
+ removeScrollBar: !0,
3795
+ inert: !1
3796
+ };
3797
+ _t.classNames = {
3798
+ fullWidth: mt,
3799
+ zeroRight: vt
3800
+ };
3801
+ var Cs = function() {
3802
+ if (typeof __webpack_nonce__ < "u")
3803
+ return __webpack_nonce__;
3804
+ };
3805
+ function Es() {
3806
+ if (!document)
3807
+ return null;
3808
+ var e = document.createElement("style");
3809
+ e.type = "text/css";
3810
+ var t = Cs();
3811
+ return t && e.setAttribute("nonce", t), e;
3812
+ }
3813
+ function Rs(e, t) {
3814
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
3815
+ }
3816
+ function Ps(e) {
3817
+ var t = document.head || document.getElementsByTagName("head")[0];
3818
+ t.appendChild(e);
3819
+ }
3820
+ var As = function() {
3821
+ var e = 0, t = null;
3822
+ return {
3823
+ add: function(n) {
3824
+ e == 0 && (t = Es()) && (Rs(t, n), Ps(t)), e++;
3825
+ },
3826
+ remove: function() {
3827
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
3828
+ }
3829
+ };
3830
+ }, Ss = function() {
3831
+ var e = As();
3832
+ return function(t, n) {
3833
+ d.useEffect(function() {
3834
+ return e.add(t), function() {
3835
+ e.remove();
3836
+ };
3837
+ }, [t && n]);
3838
+ };
3839
+ }, eo = function() {
3840
+ var e = Ss(), t = function(n) {
3841
+ var r = n.styles, o = n.dynamic;
3842
+ return e(r, o), null;
3843
+ };
3844
+ return t;
3845
+ }, Os = {
3846
+ left: 0,
3847
+ top: 0,
3848
+ right: 0,
3849
+ gap: 0
3850
+ }, Yt = function(e) {
3851
+ return parseInt(e || "", 10) || 0;
3852
+ }, _s = function(e) {
3853
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
3854
+ return [Yt(n), Yt(r), Yt(o)];
3855
+ }, Ts = function(e) {
3856
+ if (e === void 0 && (e = "margin"), typeof window > "u")
3857
+ return Os;
3858
+ var t = _s(e), n = document.documentElement.clientWidth, r = window.innerWidth;
3859
+ return {
3860
+ left: t[0],
3861
+ top: t[1],
3862
+ right: t[2],
3863
+ gap: Math.max(0, r - n + t[2] - t[0])
3864
+ };
3865
+ }, Ns = eo(), Be = "data-scroll-locked", ks = function(e, t, n, r) {
3866
+ var o = e.left, i = e.top, a = e.right, s = e.gap;
3867
+ return n === void 0 && (n = "margin"), `
3868
+ .`.concat(ps, ` {
3869
+ overflow: hidden `).concat(r, `;
3870
+ padding-right: `).concat(s, "px ").concat(r, `;
3871
+ }
3872
+ body[`).concat(Be, `] {
3873
+ overflow: hidden `).concat(r, `;
3874
+ overscroll-behavior: contain;
3875
+ `).concat([
3876
+ t && "position: relative ".concat(r, ";"),
3877
+ n === "margin" && `
3878
+ padding-left: `.concat(o, `px;
3879
+ padding-top: `).concat(i, `px;
3880
+ padding-right: `).concat(a, `px;
3881
+ margin-left:0;
3882
+ margin-top:0;
3883
+ margin-right: `).concat(s, "px ").concat(r, `;
3884
+ `),
3885
+ n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
3886
+ ].filter(Boolean).join(""), `
3887
+ }
3888
+
3889
+ .`).concat(vt, ` {
3890
+ right: `).concat(s, "px ").concat(r, `;
3891
+ }
3892
+
3893
+ .`).concat(mt, ` {
3894
+ margin-right: `).concat(s, "px ").concat(r, `;
3895
+ }
3896
+
3897
+ .`).concat(vt, " .").concat(vt, ` {
3898
+ right: 0 `).concat(r, `;
3899
+ }
3900
+
3901
+ .`).concat(mt, " .").concat(mt, ` {
3902
+ margin-right: 0 `).concat(r, `;
3903
+ }
3904
+
3905
+ body[`).concat(Be, `] {
3906
+ `).concat(hs, ": ").concat(s, `px;
3907
+ }
3908
+ `);
3909
+ }, Qn = function() {
3910
+ var e = parseInt(document.body.getAttribute(Be) || "0", 10);
3911
+ return isFinite(e) ? e : 0;
3912
+ }, js = function() {
3913
+ d.useEffect(function() {
3914
+ return document.body.setAttribute(Be, (Qn() + 1).toString()), function() {
3915
+ var e = Qn() - 1;
3916
+ e <= 0 ? document.body.removeAttribute(Be) : document.body.setAttribute(Be, e.toString());
3917
+ };
3918
+ }, []);
3919
+ }, Ds = function(e) {
3920
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3921
+ js();
3922
+ var i = d.useMemo(function() {
3923
+ return Ts(o);
3924
+ }, [o]);
3925
+ return d.createElement(Ns, { styles: ks(i, !t, o, n ? "" : "!important") });
3926
+ }, en = !1;
3927
+ if (typeof window < "u")
3928
+ try {
3929
+ var dt = Object.defineProperty({}, "passive", {
3930
+ get: function() {
3931
+ return en = !0, !0;
3932
+ }
3933
+ });
3934
+ window.addEventListener("test", dt, dt), window.removeEventListener("test", dt, dt);
3935
+ } catch {
3936
+ en = !1;
3937
+ }
3938
+ var Ie = en ? { passive: !1 } : !1, Ms = function(e) {
3939
+ return e.tagName === "TEXTAREA";
3940
+ }, to = function(e, t) {
3941
+ if (!(e instanceof Element))
3942
+ return !1;
3943
+ var n = window.getComputedStyle(e);
3944
+ return (
3945
+ // not-not-scrollable
3946
+ n[t] !== "hidden" && // contains scroll inside self
3947
+ !(n.overflowY === n.overflowX && !Ms(e) && n[t] === "visible")
3948
+ );
3949
+ }, Is = function(e) {
3950
+ return to(e, "overflowY");
3951
+ }, Ls = function(e) {
3952
+ return to(e, "overflowX");
3953
+ }, er = function(e, t) {
3954
+ var n = t.ownerDocument, r = t;
3955
+ do {
3956
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3957
+ var o = no(e, r);
3958
+ if (o) {
3959
+ var i = ro(e, r), a = i[1], s = i[2];
3960
+ if (a > s)
3961
+ return !0;
3962
+ }
3963
+ r = r.parentNode;
3964
+ } while (r && r !== n.body);
3965
+ return !1;
3966
+ }, Fs = function(e) {
3967
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3968
+ return [
3969
+ t,
3970
+ n,
3971
+ r
3972
+ ];
3973
+ }, Bs = function(e) {
3974
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3975
+ return [
3976
+ t,
3977
+ n,
3978
+ r
3979
+ ];
3980
+ }, no = function(e, t) {
3981
+ return e === "v" ? Is(t) : Ls(t);
3982
+ }, ro = function(e, t) {
3983
+ return e === "v" ? Fs(t) : Bs(t);
3984
+ }, Ws = function(e, t) {
3985
+ return e === "h" && t === "rtl" ? -1 : 1;
3986
+ }, $s = function(e, t, n, r, o) {
3987
+ var i = Ws(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, u = t.contains(s), l = !1, f = a > 0, p = 0, v = 0;
3988
+ do {
3989
+ var m = ro(e, s), x = m[0], h = m[1], g = m[2], w = h - g - i * x;
3990
+ (x || w) && no(e, s) && (p += w, v += x), s instanceof ShadowRoot ? s = s.host : s = s.parentNode;
3991
+ } while (
3992
+ // portaled content
3993
+ !u && s !== document.body || // self content
3994
+ u && (t.contains(s) || t === s)
3995
+ );
3996
+ return (f && (Math.abs(p) < 1 || !o) || !f && (Math.abs(v) < 1 || !o)) && (l = !0), l;
3997
+ }, pt = function(e) {
3998
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3999
+ }, tr = function(e) {
4000
+ return [e.deltaX, e.deltaY];
4001
+ }, nr = function(e) {
4002
+ return e && "current" in e ? e.current : e;
4003
+ }, Vs = function(e, t) {
4004
+ return e[0] === t[0] && e[1] === t[1];
4005
+ }, zs = function(e) {
4006
+ return `
4007
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
4008
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
4009
+ `);
4010
+ }, Hs = 0, Le = [];
4011
+ function Us(e) {
4012
+ var t = d.useRef([]), n = d.useRef([0, 0]), r = d.useRef(), o = d.useState(Hs++)[0], i = d.useState(eo)[0], a = d.useRef(e);
4013
+ d.useEffect(function() {
4014
+ a.current = e;
4015
+ }, [e]), d.useEffect(function() {
4016
+ if (e.inert) {
4017
+ document.body.classList.add("block-interactivity-".concat(o));
4018
+ var h = ds([e.lockRef.current], (e.shards || []).map(nr), !0).filter(Boolean);
4019
+ return h.forEach(function(g) {
4020
+ return g.classList.add("allow-interactivity-".concat(o));
4021
+ }), function() {
4022
+ document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(g) {
4023
+ return g.classList.remove("allow-interactivity-".concat(o));
4024
+ });
4025
+ };
4026
+ }
4027
+ }, [e.inert, e.lockRef.current, e.shards]);
4028
+ var s = d.useCallback(function(h, g) {
4029
+ if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
4030
+ return !a.current.allowPinchZoom;
4031
+ var w = pt(h), b = n.current, E = "deltaX" in h ? h.deltaX : b[0] - w[0], R = "deltaY" in h ? h.deltaY : b[1] - w[1], A, _ = h.target, S = Math.abs(E) > Math.abs(R) ? "h" : "v";
4032
+ if ("touches" in h && S === "h" && _.type === "range")
4033
+ return !1;
4034
+ var j = er(S, _);
4035
+ if (!j)
4036
+ return !0;
4037
+ if (j ? A = S : (A = S === "v" ? "h" : "v", j = er(S, _)), !j)
4038
+ return !1;
4039
+ if (!r.current && "changedTouches" in h && (E || R) && (r.current = A), !A)
4040
+ return !0;
4041
+ var F = r.current || A;
4042
+ return $s(F, g, h, F === "h" ? E : R, !0);
4043
+ }, []), u = d.useCallback(function(h) {
4044
+ var g = h;
4045
+ if (!(!Le.length || Le[Le.length - 1] !== i)) {
4046
+ var w = "deltaY" in g ? tr(g) : pt(g), b = t.current.filter(function(A) {
4047
+ return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && Vs(A.delta, w);
4048
+ })[0];
4049
+ if (b && b.should) {
4050
+ g.cancelable && g.preventDefault();
4051
+ return;
4052
+ }
4053
+ if (!b) {
4054
+ var E = (a.current.shards || []).map(nr).filter(Boolean).filter(function(A) {
4055
+ return A.contains(g.target);
4056
+ }), R = E.length > 0 ? s(g, E[0]) : !a.current.noIsolation;
4057
+ R && g.cancelable && g.preventDefault();
4058
+ }
4059
+ }
4060
+ }, []), l = d.useCallback(function(h, g, w, b) {
4061
+ var E = { name: h, delta: g, target: w, should: b, shadowParent: Ys(w) };
4062
+ t.current.push(E), setTimeout(function() {
4063
+ t.current = t.current.filter(function(R) {
4064
+ return R !== E;
4065
+ });
4066
+ }, 1);
4067
+ }, []), f = d.useCallback(function(h) {
4068
+ n.current = pt(h), r.current = void 0;
4069
+ }, []), p = d.useCallback(function(h) {
4070
+ l(h.type, tr(h), h.target, s(h, e.lockRef.current));
4071
+ }, []), v = d.useCallback(function(h) {
4072
+ l(h.type, pt(h), h.target, s(h, e.lockRef.current));
4073
+ }, []);
4074
+ d.useEffect(function() {
4075
+ return Le.push(i), e.setCallbacks({
4076
+ onScrollCapture: p,
4077
+ onWheelCapture: p,
4078
+ onTouchMoveCapture: v
4079
+ }), document.addEventListener("wheel", u, Ie), document.addEventListener("touchmove", u, Ie), document.addEventListener("touchstart", f, Ie), function() {
4080
+ Le = Le.filter(function(h) {
4081
+ return h !== i;
4082
+ }), document.removeEventListener("wheel", u, Ie), document.removeEventListener("touchmove", u, Ie), document.removeEventListener("touchstart", f, Ie);
4083
+ };
4084
+ }, []);
4085
+ var m = e.removeScrollBar, x = e.inert;
4086
+ return d.createElement(
4087
+ d.Fragment,
4088
+ null,
4089
+ x ? d.createElement(i, { styles: zs(o) }) : null,
4090
+ m ? d.createElement(Ds, { gapMode: e.gapMode }) : null
4091
+ );
4092
+ }
4093
+ function Ys(e) {
4094
+ for (var t = null; e !== null; )
4095
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
4096
+ return t;
4097
+ }
4098
+ const Ks = xs(Qr, Us);
4099
+ var oo = d.forwardRef(function(e, t) {
4100
+ return d.createElement(_t, ae({}, e, { ref: t, sideCar: Ks }));
4101
+ });
4102
+ oo.classNames = _t.classNames;
4103
+ var wn = "Popover", [io, Cc] = et(wn, [
4104
+ Lr
4105
+ ]), tt = Lr(), [Xs, Ce] = io(wn), ao = (e) => {
4106
+ const {
4107
+ __scopePopover: t,
4108
+ children: n,
4109
+ open: r,
4110
+ defaultOpen: o,
4111
+ onOpenChange: i,
4112
+ modal: a = !1
4113
+ } = e, s = tt(t), u = d.useRef(null), [l, f] = d.useState(!1), [p = !1, v] = Pt({
4114
+ prop: r,
4115
+ defaultProp: o,
4116
+ onChange: i
4117
+ });
4118
+ return /* @__PURE__ */ y.jsx(qa, { ...s, children: /* @__PURE__ */ y.jsx(
4119
+ Xs,
4120
+ {
4121
+ scope: t,
4122
+ contentId: ln(),
4123
+ triggerRef: u,
4124
+ open: p,
4125
+ onOpenChange: v,
4126
+ onOpenToggle: d.useCallback(() => v((m) => !m), [v]),
4127
+ hasCustomAnchor: l,
4128
+ onCustomAnchorAdd: d.useCallback(() => f(!0), []),
4129
+ onCustomAnchorRemove: d.useCallback(() => f(!1), []),
4130
+ modal: a,
4131
+ children: n
4132
+ }
4133
+ ) });
4134
+ };
4135
+ ao.displayName = wn;
4136
+ var so = "PopoverAnchor", Gs = d.forwardRef(
4137
+ (e, t) => {
4138
+ const { __scopePopover: n, ...r } = e, o = Ce(so, n), i = tt(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: s } = o;
4139
+ return d.useEffect(() => (a(), () => s()), [a, s]), /* @__PURE__ */ y.jsx(Yr, { ...i, ...r, ref: t });
4140
+ }
4141
+ );
4142
+ Gs.displayName = so;
4143
+ var co = "PopoverTrigger", lo = d.forwardRef(
4144
+ (e, t) => {
4145
+ const { __scopePopover: n, ...r } = e, o = Ce(co, n), i = tt(n), a = re(t, o.triggerRef), s = /* @__PURE__ */ y.jsx(
4146
+ Z.button,
4147
+ {
4148
+ type: "button",
4149
+ "aria-haspopup": "dialog",
4150
+ "aria-expanded": o.open,
4151
+ "aria-controls": o.contentId,
4152
+ "data-state": go(o.open),
4153
+ ...r,
4154
+ ref: a,
4155
+ onClick: ce(e.onClick, o.onOpenToggle)
4156
+ }
4157
+ );
4158
+ return o.hasCustomAnchor ? s : /* @__PURE__ */ y.jsx(Yr, { asChild: !0, ...i, children: s });
4159
+ }
4160
+ );
4161
+ lo.displayName = co;
4162
+ var bn = "PopoverPortal", [qs, Js] = io(bn, {
4163
+ forceMount: void 0
4164
+ }), uo = (e) => {
4165
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, i = Ce(bn, t);
4166
+ return /* @__PURE__ */ y.jsx(qs, { scope: t, forceMount: n, children: /* @__PURE__ */ y.jsx(At, { present: n || i.open, children: /* @__PURE__ */ y.jsx(Kr, { asChild: !0, container: o, children: r }) }) });
4167
+ };
4168
+ uo.displayName = bn;
4169
+ var Ve = "PopoverContent", fo = d.forwardRef(
4170
+ (e, t) => {
4171
+ const n = Js(Ve, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, i = Ce(Ve, e.__scopePopover);
4172
+ return /* @__PURE__ */ y.jsx(At, { present: r || i.open, children: i.modal ? /* @__PURE__ */ y.jsx(Zs, { ...o, ref: t }) : /* @__PURE__ */ y.jsx(Qs, { ...o, ref: t }) });
4173
+ }
4174
+ );
4175
+ fo.displayName = Ve;
4176
+ var Zs = d.forwardRef(
4177
+ (e, t) => {
4178
+ const n = Ce(Ve, e.__scopePopover), r = d.useRef(null), o = re(t, r), i = d.useRef(!1);
4179
+ return d.useEffect(() => {
4180
+ const a = r.current;
4181
+ if (a) return fs(a);
4182
+ }, []), /* @__PURE__ */ y.jsx(oo, { as: Ze, allowPinchZoom: !0, children: /* @__PURE__ */ y.jsx(
4183
+ po,
4184
+ {
4185
+ ...e,
4186
+ ref: o,
4187
+ trapFocus: n.open,
4188
+ disableOutsidePointerEvents: !0,
4189
+ onCloseAutoFocus: ce(e.onCloseAutoFocus, (a) => {
4190
+ var s;
4191
+ a.preventDefault(), i.current || (s = n.triggerRef.current) == null || s.focus();
4192
+ }),
4193
+ onPointerDownOutside: ce(
4194
+ e.onPointerDownOutside,
4195
+ (a) => {
4196
+ const s = a.detail.originalEvent, u = s.button === 0 && s.ctrlKey === !0, l = s.button === 2 || u;
4197
+ i.current = l;
4198
+ },
4199
+ { checkForDefaultPrevented: !1 }
4200
+ ),
4201
+ onFocusOutside: ce(
4202
+ e.onFocusOutside,
4203
+ (a) => a.preventDefault(),
4204
+ { checkForDefaultPrevented: !1 }
4205
+ )
4206
+ }
4207
+ ) });
4208
+ }
4209
+ ), Qs = d.forwardRef(
4210
+ (e, t) => {
4211
+ const n = Ce(Ve, e.__scopePopover), r = d.useRef(!1), o = d.useRef(!1);
4212
+ return /* @__PURE__ */ y.jsx(
4213
+ po,
4214
+ {
4215
+ ...e,
4216
+ ref: t,
4217
+ trapFocus: !1,
4218
+ disableOutsidePointerEvents: !1,
4219
+ onCloseAutoFocus: (i) => {
4220
+ var a, s;
4221
+ (a = e.onCloseAutoFocus) == null || a.call(e, i), i.defaultPrevented || (r.current || (s = n.triggerRef.current) == null || s.focus(), i.preventDefault()), r.current = !1, o.current = !1;
4222
+ },
4223
+ onInteractOutside: (i) => {
4224
+ var u, l;
4225
+ (u = e.onInteractOutside) == null || u.call(e, i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
4226
+ const a = i.target;
4227
+ ((l = n.triggerRef.current) == null ? void 0 : l.contains(a)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
4228
+ }
4229
+ }
4230
+ );
4231
+ }
4232
+ ), po = d.forwardRef(
4233
+ (e, t) => {
4234
+ const {
4235
+ __scopePopover: n,
4236
+ trapFocus: r,
4237
+ onOpenAutoFocus: o,
4238
+ onCloseAutoFocus: i,
4239
+ disableOutsidePointerEvents: a,
4240
+ onEscapeKeyDown: s,
4241
+ onPointerDownOutside: u,
4242
+ onFocusOutside: l,
4243
+ onInteractOutside: f,
4244
+ ...p
4245
+ } = e, v = Ce(Ve, n), m = tt(n);
4246
+ return es(), /* @__PURE__ */ y.jsx(
4247
+ Xr,
4248
+ {
4249
+ asChild: !0,
4250
+ loop: !0,
4251
+ trapped: r,
4252
+ onMountAutoFocus: o,
4253
+ onUnmountAutoFocus: i,
4254
+ children: /* @__PURE__ */ y.jsx(
4255
+ kr,
4256
+ {
4257
+ asChild: !0,
4258
+ disableOutsidePointerEvents: a,
4259
+ onInteractOutside: f,
4260
+ onEscapeKeyDown: s,
4261
+ onPointerDownOutside: u,
4262
+ onFocusOutside: l,
4263
+ onDismiss: () => v.onOpenChange(!1),
4264
+ children: /* @__PURE__ */ y.jsx(
4265
+ Ja,
4266
+ {
4267
+ "data-state": go(v.open),
4268
+ role: "dialog",
4269
+ id: v.contentId,
4270
+ ...m,
4271
+ ...p,
4272
+ ref: t,
4273
+ style: {
4274
+ ...p.style,
4275
+ "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
4276
+ "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
4277
+ "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
4278
+ "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
4279
+ "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
4280
+ }
4281
+ }
4282
+ )
4283
+ }
4284
+ )
4285
+ }
4286
+ );
4287
+ }
4288
+ ), ho = "PopoverClose", vo = d.forwardRef(
4289
+ (e, t) => {
4290
+ const { __scopePopover: n, ...r } = e, o = Ce(ho, n);
4291
+ return /* @__PURE__ */ y.jsx(
4292
+ Z.button,
4293
+ {
4294
+ type: "button",
4295
+ ...r,
4296
+ ref: t,
4297
+ onClick: ce(e.onClick, () => o.onOpenChange(!1))
4298
+ }
4299
+ );
4300
+ }
4301
+ );
4302
+ vo.displayName = ho;
4303
+ var ec = "PopoverArrow", mo = d.forwardRef(
4304
+ (e, t) => {
4305
+ const { __scopePopover: n, ...r } = e, o = tt(n);
4306
+ return /* @__PURE__ */ y.jsx(Za, { ...o, ...r, ref: t });
4307
+ }
4308
+ );
4309
+ mo.displayName = ec;
4310
+ function go(e) {
4311
+ return e ? "open" : "closed";
4312
+ }
4313
+ var tc = ao, nc = lo, rc = uo, oc = fo, ic = vo, ac = mo;
4314
+ const Ec = ({
4315
+ triggerElement: e,
4316
+ classes: t,
4317
+ sideOffset: n = 4,
4318
+ alignOffset: r,
4319
+ align: o,
4320
+ side: i,
4321
+ defaultOpen: a = !1,
4322
+ avoidCollisions: s = !0,
4323
+ children: u,
4324
+ arrowPadding: l,
4325
+ portalContainer: f,
4326
+ ...p
4327
+ }) => /* @__PURE__ */ y.jsxs(tc, { defaultOpen: a, children: [
4328
+ /* @__PURE__ */ y.jsx("div", { className: L("flex w-max items-center gap-2", t == null ? void 0 : t.root), children: /* @__PURE__ */ y.jsx(
4329
+ nc,
4330
+ {
4331
+ "aria-label": "tooltip",
4332
+ className: L("flex cursor-pointer items-center justify-center", t == null ? void 0 : t.trigger),
4333
+ children: e
4334
+ }
4335
+ ) }),
4336
+ /* @__PURE__ */ y.jsx(rc, { container: f, children: /* @__PURE__ */ y.jsxs(
4337
+ oc,
4338
+ {
4339
+ className: L(
4340
+ "desk-body-regular-m flex w-64 items-start gap-2 rounded-sm bg-color-white p-4 shadow-sm outline-none",
4341
+ t == null ? void 0 : t.content
4342
+ ),
4343
+ sideOffset: n,
4344
+ alignOffset: r,
4345
+ avoidCollisions: s,
4346
+ arrowPadding: l,
4347
+ align: o,
4348
+ side: i,
4349
+ ...p,
4350
+ children: [
4351
+ u,
4352
+ /* @__PURE__ */ y.jsx(
4353
+ ic,
4354
+ {
4355
+ "aria-label": "Close",
4356
+ className: L("flex size-5 items-center justify-center outline-0 outline-transparent", t == null ? void 0 : t.closeTrigger),
4357
+ children: /* @__PURE__ */ y.jsx(
4358
+ de,
4359
+ {
4360
+ name: "general/close",
4361
+ className: L(
4362
+ "size-5 cursor-pointer text-icon-blue-grey-600 transition-colors hover:text-icon-blue-grey-800",
4363
+ t == null ? void 0 : t.closeIcon
4364
+ )
4365
+ }
4366
+ )
4367
+ }
4368
+ ),
4369
+ /* @__PURE__ */ y.jsx(ac, { width: 12, height: 6, className: L("fill-white", t == null ? void 0 : t.arrowIcon) })
4370
+ ]
4371
+ }
4372
+ ) })
4373
+ ] }), sc = ze("", {
4374
+ variants: {
4375
+ as: {
4376
+ h1: "mob-headline-bold-m desktop:desk-headline-bold-l",
4377
+ h2: "mob-headline-bold-s desktop:desk-headline-bold-m",
4378
+ h3: "mob-title-bold-l desktop:desk-title-bold-l",
4379
+ h4: "mob-title-bold-m desktop:desk-title-bold-s"
4380
+ // # add h5 and h6 if need
4381
+ }
4382
+ },
4383
+ defaultVariants: {
4384
+ as: "h2"
4385
+ }
4386
+ }), Rc = ({ as: e = "h2", children: t, className: n, ...r }) => {
4387
+ const o = e;
4388
+ return /* @__PURE__ */ y.jsx(o, { className: L(sc({ as: e }), n), ...r, children: t });
4389
+ }, Pc = {
4390
+ main: /* @__PURE__ */ y.jsx(de, { name: "brandLogos/logoMain" }),
4391
+ white: /* @__PURE__ */ y.jsx(de, { name: "brandLogos/logoWhite" }),
4392
+ gray: /* @__PURE__ */ y.jsx(de, { name: "brandLogos/logoGray" }),
4393
+ black: /* @__PURE__ */ y.jsx(de, { name: "brandLogos/logoBlack" }),
4394
+ business: /* @__PURE__ */ y.jsx(de, { name: "brandLogos/logoBusiness" }),
4395
+ insurance: /* @__PURE__ */ y.jsx(de, { name: "brandLogos/logoInsurance" })
4396
+ }, cc = ze(
4397
+ "group outline-none transition-all duration-100 p-[2px] rounded-sm border border-solid border-transparent",
4398
+ {
4399
+ variants: {
4400
+ intent: {
4401
+ blue: "text-color-primary-default hover:text-color-primary-hover hover:underline underline-offset-4 focus-visible:text-color-primary-default focus-visible:border-primary-focus",
4402
+ white: "text-color-white hover:text-color-footer focus-visible:text-color-white hover:underline underline-offset-4 focus-visible:border-primary-focus"
4403
+ },
4404
+ withUnderline: {
4405
+ true: "underline underline-offset-4",
4406
+ false: ""
4407
+ },
4408
+ withIcon: {
4409
+ true: "flex items-center gap-1",
4410
+ false: ""
4411
+ },
4412
+ disabled: {
4413
+ true: "!text-color-primary-disabled pointer-events-none !border-transparent",
4414
+ false: ""
4415
+ },
4416
+ size: {
4417
+ sm: "desk-body-regular-m",
4418
+ md: "desk-body-regular-l"
4419
+ }
4420
+ },
4421
+ defaultVariants: {
4422
+ intent: "blue",
4423
+ withIcon: !0,
4424
+ disabled: !1,
4425
+ size: "sm",
4426
+ withUnderline: !1
4427
+ }
4428
+ }
4429
+ ), lc = ze("size-6", {
4430
+ variants: {
4431
+ intent: {
4432
+ blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
4433
+ white: "text-icon-white group-hover:text-icon-footer group-focus:text-icon-white"
4434
+ },
4435
+ disabled: {
4436
+ true: "!text-icon-primary-disabled pointer-events-none",
4437
+ false: ""
4438
+ }
4439
+ },
4440
+ defaultVariants: {
4441
+ intent: "blue",
4442
+ disabled: !1
4443
+ }
4444
+ }), Ac = ({
4445
+ intent: e,
4446
+ children: t,
4447
+ withIcon: n,
4448
+ disabled: r,
4449
+ size: o,
4450
+ icon: i = "arrows/arrowLink",
4451
+ classes: a,
4452
+ withUnderline: s,
4453
+ ...u
4454
+ }) => /* @__PURE__ */ y.jsxs("a", { className: L(cc({ intent: e, withIcon: n, withUnderline: s, disabled: r, size: o }), a == null ? void 0 : a.link), ...u, children: [
4455
+ t,
4456
+ n && /* @__PURE__ */ y.jsx(de, { name: i, className: L(lc({ intent: e, disabled: r }), a == null ? void 0 : a.icon) })
4457
+ ] });
4458
+ export {
4459
+ bc as A,
4460
+ vc as B,
4461
+ Ac as C,
4462
+ kr as D,
4463
+ Ma as E,
4464
+ yc as F,
4465
+ ee as G,
4466
+ Rc as H,
4467
+ de as I,
4468
+ ge as J,
4469
+ gt as K,
4470
+ Go as L,
4471
+ Ia as M,
4472
+ Fa as N,
4473
+ Ba as O,
4474
+ mc as P,
4475
+ hc as R,
4476
+ pc as S,
4477
+ xc as _,
4478
+ Ec as a,
4479
+ Pc as b,
4480
+ ze as c,
4481
+ gc as d,
4482
+ ki as e,
4483
+ et as f,
4484
+ Pt as g,
4485
+ Z as h,
4486
+ ce as i,
4487
+ y as j,
4488
+ At as k,
4489
+ Vi as l,
4490
+ Lr as m,
4491
+ Yr as n,
4492
+ Ja as o,
4493
+ Yi as p,
4494
+ Za as q,
4495
+ ln as r,
4496
+ qa as s,
4497
+ Zi as t,
4498
+ re as u,
4499
+ ca as v,
4500
+ be as w,
4501
+ ja as x,
4502
+ oe as y,
4503
+ pe as z
4504
+ };
4505
+ //# sourceMappingURL=CustomLink-CcSUq55J.js.map