@uninspired/cookie-banner 0.0.12 → 0.0.14

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.
@@ -1,28 +1,28 @@
1
- import { options as z, Fragment as W, Component as se, createRef as Nn, createContext as ee, createElement as T, toChildArray as Q, cloneElement as io, render as Ae, hydrate as so } from "preact";
2
- var co = 0;
3
- function p(e, t, n, r, o, i) {
1
+ import { options as $, toChildArray as ne, Fragment as B, Component as ae, createRef as Rn, createContext as re, createElement as D, cloneElement as lo, render as Ae, hydrate as fo } from "preact";
2
+ var po = 0;
3
+ function f(e, t, n, r, o, i) {
4
4
  t || (t = {});
5
5
  var c, s, a = t;
6
6
  if ("ref" in a) for (s in a = {}, t) s == "ref" ? c = t[s] : a[s] = t[s];
7
- var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --co, __i: -1, __u: 0, __source: o, __self: i };
7
+ var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --po, __i: -1, __u: 0, __source: o, __self: i };
8
8
  if (typeof e == "function" && (c = e.defaultProps)) for (s in c) a[s] === void 0 && (a[s] = c[s]);
9
- return z.vnode && z.vnode(u), u;
9
+ return $.vnode && $.vnode(u), u;
10
10
  }
11
- var q, N, ct, Wt, he = 0, On = [], A = z, Bt = A.__b, Ht = A.__r, Zt = A.diffed, Vt = A.__c, Kt = A.unmount, qt = A.__;
12
- function ae(e, t) {
13
- A.__h && A.__h(N, e, he || t), he = 0;
14
- var n = N.__H || (N.__H = { __: [], __h: [] });
11
+ var Y, A, ct, Bt, ge = 0, In = [], T = $, Ht = T.__b, Zt = T.__r, Vt = T.diffed, Kt = T.__c, qt = T.unmount, Gt = T.__;
12
+ function de(e, t) {
13
+ T.__h && T.__h(A, e, ge || t), ge = 0;
14
+ var n = A.__H || (A.__H = { __: [], __h: [] });
15
15
  return e >= n.__.length && n.__.push({}), n.__[e];
16
16
  }
17
- function R(e) {
18
- return he = 1, Te(An, e);
17
+ function I(e) {
18
+ return ge = 1, Te(Tn, e);
19
19
  }
20
20
  function Te(e, t, n) {
21
- var r = ae(q++, 2);
22
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : An(void 0, t), function(s) {
21
+ var r = de(Y++, 2);
22
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Tn(void 0, t), function(s) {
23
23
  var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, s);
24
24
  a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
25
- }], r.__c = N, !N.__f)) {
25
+ }], r.__c = A, !A.__f)) {
26
26
  var o = function(s, a, u) {
27
27
  if (!r.__c.__H) return !0;
28
28
  var l = r.__c.__H.__.filter(function(_) {
@@ -34,38 +34,38 @@ function Te(e, t, n) {
34
34
  var d = r.__c.props !== s;
35
35
  return l.some(function(_) {
36
36
  if (_.__N) {
37
- var m = _.__[0];
38
- _.__ = _.__N, _.__N = void 0, m !== _.__[0] && (d = !0);
37
+ var v = _.__[0];
38
+ _.__ = _.__N, _.__N = void 0, v !== _.__[0] && (d = !0);
39
39
  }
40
40
  }), i && i.call(this, s, a, u) || d;
41
41
  };
42
- N.__f = !0;
43
- var i = N.shouldComponentUpdate, c = N.componentWillUpdate;
44
- N.componentWillUpdate = function(s, a, u) {
42
+ A.__f = !0;
43
+ var i = A.shouldComponentUpdate, c = A.componentWillUpdate;
44
+ A.componentWillUpdate = function(s, a, u) {
45
45
  if (this.__e) {
46
46
  var l = i;
47
47
  i = void 0, o(s, a, u), i = l;
48
48
  }
49
49
  c && c.call(this, s, a, u);
50
- }, N.shouldComponentUpdate = o;
50
+ }, A.shouldComponentUpdate = o;
51
51
  }
52
52
  return r.__N || r.__;
53
53
  }
54
- function E(e, t) {
55
- var n = ae(q++, 3);
56
- !A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__H.__h.push(n));
54
+ function N(e, t) {
55
+ var n = de(Y++, 3);
56
+ !T.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__H.__h.push(n));
57
57
  }
58
- function te(e, t) {
59
- var n = ae(q++, 4);
60
- !A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__h.push(n));
58
+ function oe(e, t) {
59
+ var n = de(Y++, 4);
60
+ !T.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__h.push(n));
61
61
  }
62
- function S(e) {
63
- return he = 5, D(function() {
62
+ function P(e) {
63
+ return ge = 5, x(function() {
64
64
  return { current: e };
65
65
  }, []);
66
66
  }
67
67
  function St(e, t, n) {
68
- he = 6, te(function() {
68
+ ge = 6, oe(function() {
69
69
  if (typeof e == "function") {
70
70
  var r = e(t());
71
71
  return function() {
@@ -77,112 +77,112 @@ function St(e, t, n) {
77
77
  };
78
78
  }, n == null ? n : n.concat(e));
79
79
  }
80
- function D(e, t) {
81
- var n = ae(q++, 7);
80
+ function x(e, t) {
81
+ var n = de(Y++, 7);
82
82
  return Pt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
83
83
  }
84
- function M(e, t) {
85
- return he = 8, D(function() {
84
+ function z(e, t) {
85
+ return ge = 8, x(function() {
86
86
  return e;
87
87
  }, t);
88
88
  }
89
- function Y(e) {
90
- var t = N.context[e.__c], n = ae(q++, 9);
91
- return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(N)), t.props.value) : e.__;
89
+ function J(e) {
90
+ var t = A.context[e.__c], n = de(Y++, 9);
91
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(A)), t.props.value) : e.__;
92
92
  }
93
93
  function wt(e, t) {
94
- A.useDebugValue && A.useDebugValue(t ? t(e) : e);
94
+ T.useDebugValue && T.useDebugValue(t ? t(e) : e);
95
95
  }
96
- function ao(e) {
97
- var t = ae(q++, 10), n = R();
98
- return t.__ = e, N.componentDidCatch || (N.componentDidCatch = function(r, o) {
96
+ function _o(e) {
97
+ var t = de(Y++, 10), n = I();
98
+ return t.__ = e, A.componentDidCatch || (A.componentDidCatch = function(r, o) {
99
99
  t.__ && t.__(r, o), n[1](r);
100
100
  }), [n[0], function() {
101
101
  n[1](void 0);
102
102
  }];
103
103
  }
104
104
  function Et() {
105
- var e = ae(q++, 11);
105
+ var e = de(Y++, 11);
106
106
  if (!e.__) {
107
- for (var t = N.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
107
+ for (var t = A.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
108
108
  var n = t.__m || (t.__m = [0, 0]);
109
109
  e.__ = "P" + n[0] + "-" + n[1]++;
110
110
  }
111
111
  return e.__;
112
112
  }
113
- function uo() {
114
- for (var e; e = On.shift(); ) {
113
+ function vo() {
114
+ for (var e; e = In.shift(); ) {
115
115
  var t = e.__H;
116
116
  if (e.__P && t) try {
117
- t.__h.some(Be), t.__h.some(mt), t.__h = [];
117
+ t.__h.some(He), t.__h.some(mt), t.__h = [];
118
118
  } catch (n) {
119
- t.__h = [], A.__e(n, e.__v);
119
+ t.__h = [], T.__e(n, e.__v);
120
120
  }
121
121
  }
122
122
  }
123
- A.__b = function(e) {
124
- N = null, Bt && Bt(e);
125
- }, A.__ = function(e, t) {
126
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), qt && qt(e, t);
127
- }, A.__r = function(e) {
128
- Ht && Ht(e), q = 0;
129
- var t = (N = e.__c).__H;
130
- t && (ct === N ? (t.__h = [], N.__h = [], t.__.some(function(n) {
123
+ T.__b = function(e) {
124
+ A = null, Ht && Ht(e);
125
+ }, T.__ = function(e, t) {
126
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Gt && Gt(e, t);
127
+ }, T.__r = function(e) {
128
+ Zt && Zt(e), Y = 0;
129
+ var t = (A = e.__c).__H;
130
+ t && (ct === A ? (t.__h = [], A.__h = [], t.__.some(function(n) {
131
131
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
132
- })) : (t.__h.some(Be), t.__h.some(mt), t.__h = [], q = 0)), ct = N;
133
- }, A.diffed = function(e) {
134
- Zt && Zt(e);
132
+ })) : (t.__h.some(He), t.__h.some(mt), t.__h = [], Y = 0)), ct = A;
133
+ }, T.diffed = function(e) {
134
+ Vt && Vt(e);
135
135
  var t = e.__c;
136
- t && t.__H && (t.__H.__h.length && (On.push(t) !== 1 && Wt === A.requestAnimationFrame || ((Wt = A.requestAnimationFrame) || lo)(uo)), t.__H.__.some(function(n) {
136
+ t && t.__H && (t.__H.__h.length && (In.push(t) !== 1 && Bt === T.requestAnimationFrame || ((Bt = T.requestAnimationFrame) || ho)(vo)), t.__H.__.some(function(n) {
137
137
  n.u && (n.__H = n.u), n.u = void 0;
138
- })), ct = N = null;
139
- }, A.__c = function(e, t) {
138
+ })), ct = A = null;
139
+ }, T.__c = function(e, t) {
140
140
  t.some(function(n) {
141
141
  try {
142
- n.__h.some(Be), n.__h = n.__h.filter(function(r) {
142
+ n.__h.some(He), n.__h = n.__h.filter(function(r) {
143
143
  return !r.__ || mt(r);
144
144
  });
145
145
  } catch (r) {
146
146
  t.some(function(o) {
147
147
  o.__h && (o.__h = []);
148
- }), t = [], A.__e(r, n.__v);
148
+ }), t = [], T.__e(r, n.__v);
149
149
  }
150
- }), Vt && Vt(e, t);
151
- }, A.unmount = function(e) {
152
- Kt && Kt(e);
150
+ }), Kt && Kt(e, t);
151
+ }, T.unmount = function(e) {
152
+ qt && qt(e);
153
153
  var t, n = e.__c;
154
154
  n && n.__H && (n.__H.__.some(function(r) {
155
155
  try {
156
- Be(r);
156
+ He(r);
157
157
  } catch (o) {
158
158
  t = o;
159
159
  }
160
- }), n.__H = void 0, t && A.__e(t, n.__v));
160
+ }), n.__H = void 0, t && T.__e(t, n.__v));
161
161
  };
162
- var Gt = typeof requestAnimationFrame == "function";
163
- function lo(e) {
162
+ var Yt = typeof requestAnimationFrame == "function";
163
+ function ho(e) {
164
164
  var t, n = function() {
165
- clearTimeout(r), Gt && cancelAnimationFrame(t), setTimeout(e);
165
+ clearTimeout(r), Yt && cancelAnimationFrame(t), setTimeout(e);
166
166
  }, r = setTimeout(n, 35);
167
- Gt && (t = requestAnimationFrame(n));
167
+ Yt && (t = requestAnimationFrame(n));
168
168
  }
169
- function Be(e) {
170
- var t = N, n = e.__c;
171
- typeof n == "function" && (e.__c = void 0, n()), N = t;
169
+ function He(e) {
170
+ var t = A, n = e.__c;
171
+ typeof n == "function" && (e.__c = void 0, n()), A = t;
172
172
  }
173
173
  function mt(e) {
174
- var t = N;
175
- e.__c = e.__(), N = t;
174
+ var t = A;
175
+ e.__c = e.__(), A = t;
176
176
  }
177
177
  function Pt(e, t) {
178
178
  return !e || e.length !== t.length || t.some(function(n, r) {
179
179
  return n !== e[r];
180
180
  });
181
181
  }
182
- function An(e, t) {
182
+ function Tn(e, t) {
183
183
  return typeof t == "function" ? t(e) : t;
184
184
  }
185
- function Rn(e, t) {
185
+ function kn(e, t) {
186
186
  for (var n in t) e[n] = t[n];
187
187
  return e;
188
188
  }
@@ -192,10 +192,10 @@ function gt(e, t) {
192
192
  return !1;
193
193
  }
194
194
  function Nt(e, t) {
195
- var n = t(), r = R({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
- return te(function() {
195
+ var n = t(), r = I({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
+ return oe(function() {
197
197
  o.__ = n, o.u = t, at(o) && i({ t: o });
198
- }, [e, n, t]), E(function() {
198
+ }, [e, n, t]), N(function() {
199
199
  return at(o) && i({ t: o }), e(function() {
200
200
  at(o) && i({ t: o });
201
201
  });
@@ -218,72 +218,72 @@ function At(e) {
218
218
  function Rt() {
219
219
  return [!1, Ot];
220
220
  }
221
- var It = te;
222
- function Ke(e, t) {
221
+ var It = oe;
222
+ function qe(e, t) {
223
223
  this.props = e, this.context = t;
224
224
  }
225
- function In(e, t) {
225
+ function Dn(e, t) {
226
226
  function n(o) {
227
227
  var i = this.props.ref, c = i == o.ref;
228
228
  return !c && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !c : gt(this.props, o);
229
229
  }
230
230
  function r(o) {
231
- return this.shouldComponentUpdate = n, T(e, o);
231
+ return this.shouldComponentUpdate = n, D(e, o);
232
232
  }
233
233
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
234
234
  }
235
- (Ke.prototype = new se()).isPureReactComponent = !0, Ke.prototype.shouldComponentUpdate = function(e, t) {
235
+ (qe.prototype = new ae()).isPureReactComponent = !0, qe.prototype.shouldComponentUpdate = function(e, t) {
236
236
  return gt(this.props, e) || gt(this.state, t);
237
237
  };
238
- var Yt = z.__b;
239
- z.__b = function(e) {
240
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Yt && Yt(e);
238
+ var Xt = $.__b;
239
+ $.__b = function(e) {
240
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Xt && Xt(e);
241
241
  };
242
- var fo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
243
- function P(e) {
242
+ var mo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
243
+ function O(e) {
244
244
  function t(n) {
245
- var r = Rn({}, n);
245
+ var r = kn({}, n);
246
246
  return delete r.ref, e(r, n.ref || null);
247
247
  }
248
- return t.$$typeof = fo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
248
+ return t.$$typeof = mo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
249
249
  }
250
- var Xt = function(e, t) {
251
- return e == null ? null : Q(Q(e).map(t));
252
- }, K = { map: Xt, forEach: Xt, count: function(e) {
253
- return e ? Q(e).length : 0;
250
+ var Jt = function(e, t) {
251
+ return e == null ? null : ne(ne(e).map(t));
252
+ }, q = { map: Jt, forEach: Jt, count: function(e) {
253
+ return e ? ne(e).length : 0;
254
254
  }, only: function(e) {
255
- var t = Q(e);
255
+ var t = ne(e);
256
256
  if (t.length !== 1) throw "Children.only";
257
257
  return t[0];
258
- }, toArray: Q }, po = z.__e;
259
- z.__e = function(e, t, n, r) {
258
+ }, toArray: ne }, go = $.__e;
259
+ $.__e = function(e, t, n, r) {
260
260
  if (e.then) {
261
261
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
262
262
  }
263
- po(e, t, n, r);
263
+ go(e, t, n, r);
264
264
  };
265
- var Jt = z.unmount;
266
- function Tn(e, t, n) {
265
+ var Qt = $.unmount;
266
+ function xn(e, t, n) {
267
267
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
268
268
  typeof r.__c == "function" && r.__c();
269
- }), e.__c.__H = null), (e = Rn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
270
- return Tn(r, t, n);
269
+ }), e.__c.__H = null), (e = kn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
270
+ return xn(r, t, n);
271
271
  })), e;
272
272
  }
273
- function kn(e, t, n) {
273
+ function Mn(e, t, n) {
274
274
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
275
- return kn(r, t, n);
275
+ return Mn(r, t, n);
276
276
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
277
277
  }
278
278
  function Pe() {
279
279
  this.__u = 0, this.o = null, this.__b = null;
280
280
  }
281
- function Dn(e) {
281
+ function zn(e) {
282
282
  if (!e.__) return null;
283
283
  var t = e.__.__c;
284
284
  return t && t.__a && t.__a(e);
285
285
  }
286
- function xn(e) {
286
+ function $n(e) {
287
287
  var t, n, r, o = null;
288
288
  function i(c) {
289
289
  if (t || (t = e()).then(function(s) {
@@ -292,20 +292,20 @@ function xn(e) {
292
292
  n = s, r = !0;
293
293
  }), n) throw n;
294
294
  if (!r) throw t;
295
- return o ? T(o, c) : null;
295
+ return o ? D(o, c) : null;
296
296
  }
297
297
  return i.displayName = "Lazy", i.__f = !0, i;
298
298
  }
299
- function _e() {
299
+ function he() {
300
300
  this.i = null, this.l = null;
301
301
  }
302
- z.unmount = function(e) {
302
+ $.unmount = function(e) {
303
303
  var t = e.__c;
304
- t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Jt && Jt(e);
305
- }, (Pe.prototype = new se()).__c = function(e, t) {
304
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Qt && Qt(e);
305
+ }, (Pe.prototype = new ae()).__c = function(e, t) {
306
306
  var n = t.__c, r = this;
307
307
  r.o == null && (r.o = []), r.o.push(n);
308
- var o = Dn(r.__v), i = !1, c = function() {
308
+ var o = zn(r.__v), i = !1, c = function() {
309
309
  i || r.__z || (i = !0, n.__R = null, o ? o(a) : a());
310
310
  };
311
311
  n.__R = c;
@@ -315,7 +315,7 @@ z.unmount = function(e) {
315
315
  if (!--r.__u) {
316
316
  if (r.state.__a) {
317
317
  var u = r.state.__a;
318
- r.__v.__k[0] = kn(u, u.__c.__P, u.__c.__O);
318
+ r.__v.__k[0] = Mn(u, u.__c.__P, u.__c.__O);
319
319
  }
320
320
  var l;
321
321
  for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.__P = s, l.forceUpdate();
@@ -328,26 +328,26 @@ z.unmount = function(e) {
328
328
  if (this.__b) {
329
329
  if (this.__v.__k) {
330
330
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
331
- this.__v.__k[0] = Tn(this.__b, n, r.__O = r.__P);
331
+ this.__v.__k[0] = xn(this.__b, n, r.__O = r.__P);
332
332
  }
333
333
  this.__b = null;
334
334
  }
335
- var o = t.__a && T(W, null, e.fallback);
336
- return o && (o.__u &= -33), [T(W, null, t.__a ? null : e.children), o];
335
+ var o = t.__a && D(B, null, e.fallback);
336
+ return o && (o.__u &= -33), [D(B, null, t.__a ? null : e.children), o];
337
337
  };
338
- var Qt = function(e, t, n) {
338
+ var en = function(e, t, n) {
339
339
  if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
340
340
  for (; n.length > 3; ) n.pop()();
341
341
  if (n[1] < n[0]) break;
342
342
  e.i = n = n[2];
343
343
  }
344
344
  };
345
- function _o(e) {
345
+ function yo(e) {
346
346
  return this.getChildContext = function() {
347
347
  return e.context;
348
348
  }, e.children;
349
349
  }
350
- function vo(e) {
350
+ function bo(e) {
351
351
  var t = this, n = e.h;
352
352
  if (t.componentWillUnmount = function() {
353
353
  Ae(null, t.v), t.v = null, t.h = null;
@@ -361,187 +361,187 @@ function vo(e) {
361
361
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
362
362
  } };
363
363
  }
364
- Ae(T(_o, { context: t.context }, e.__v), t.v);
364
+ Ae(D(yo, { context: t.context }, e.__v), t.v);
365
365
  }
366
- function Mn(e, t) {
367
- var n = T(vo, { __v: e, h: t });
366
+ function Ln(e, t) {
367
+ var n = D(bo, { __v: e, h: t });
368
368
  return n.containerInfo = t, n;
369
369
  }
370
- (_e.prototype = new se()).__a = function(e) {
371
- var t = this, n = Dn(t.__v), r = t.l.get(e);
370
+ (he.prototype = new ae()).__a = function(e) {
371
+ var t = this, n = zn(t.__v), r = t.l.get(e);
372
372
  return r[0]++, function(o) {
373
373
  var i = function() {
374
- t.props.revealOrder ? (r.push(o), Qt(t, e, r)) : o();
374
+ t.props.revealOrder ? (r.push(o), en(t, e, r)) : o();
375
375
  };
376
376
  n ? n(i) : i();
377
377
  };
378
- }, _e.prototype.render = function(e) {
378
+ }, he.prototype.render = function(e) {
379
379
  this.i = null, this.l = /* @__PURE__ */ new Map();
380
- var t = Q(e.children);
380
+ var t = ne(e.children);
381
381
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
382
382
  for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
383
383
  return e.children;
384
- }, _e.prototype.componentDidUpdate = _e.prototype.componentDidMount = function() {
384
+ }, he.prototype.componentDidUpdate = he.prototype.componentDidMount = function() {
385
385
  var e = this;
386
386
  this.l.forEach(function(t, n) {
387
- Qt(e, n, t);
387
+ en(e, n, t);
388
388
  });
389
389
  };
390
- var zn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, ho = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, mo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, go = /[A-Z0-9]/g, yo = typeof document < "u", bo = function(e) {
390
+ var Fn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, Co = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, So = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, wo = /[A-Z0-9]/g, Eo = typeof document < "u", Po = function(e) {
391
391
  return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
392
392
  };
393
- function $n(e, t, n) {
393
+ function Un(e, t, n) {
394
394
  return t.__k == null && (t.textContent = ""), Ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
395
395
  }
396
- function Ln(e, t, n) {
397
- return so(e, t), typeof n == "function" && n(), e ? e.__c : null;
396
+ function jn(e, t, n) {
397
+ return fo(e, t), typeof n == "function" && n(), e ? e.__c : null;
398
398
  }
399
- se.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
- Object.defineProperty(se.prototype, e, { configurable: !0, get: function() {
399
+ ae.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
+ Object.defineProperty(ae.prototype, e, { configurable: !0, get: function() {
401
401
  return this["UNSAFE_" + e];
402
402
  }, set: function(t) {
403
403
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
404
404
  } });
405
405
  });
406
- var en = z.event;
407
- function Co() {
406
+ var tn = $.event;
407
+ function No() {
408
408
  }
409
- function So() {
409
+ function Oo() {
410
410
  return this.cancelBubble;
411
411
  }
412
- function wo() {
412
+ function Ao() {
413
413
  return this.defaultPrevented;
414
414
  }
415
- z.event = function(e) {
416
- return en && (e = en(e)), e.persist = Co, e.isPropagationStopped = So, e.isDefaultPrevented = wo, e.nativeEvent = e;
415
+ $.event = function(e) {
416
+ return tn && (e = tn(e)), e.persist = No, e.isPropagationStopped = Oo, e.isDefaultPrevented = Ao, e.nativeEvent = e;
417
417
  };
418
- var Tt, Eo = { enumerable: !1, configurable: !0, get: function() {
418
+ var Tt, Ro = { enumerable: !1, configurable: !0, get: function() {
419
419
  return this.class;
420
- } }, tn = z.vnode;
421
- z.vnode = function(e) {
420
+ } }, nn = $.vnode;
421
+ $.vnode = function(e) {
422
422
  typeof e.type == "string" && (function(t) {
423
423
  var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
424
424
  for (var c in n) {
425
425
  var s = n[c];
426
- if (!(c === "value" && "defaultValue" in n && s == null || yo && c === "children" && r === "noscript" || c === "class" || c === "className")) {
426
+ if (!(c === "value" && "defaultValue" in n && s == null || Eo && c === "children" && r === "noscript" || c === "class" || c === "className")) {
427
427
  var a = c.toLowerCase();
428
- c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || bo(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : mo.test(c) && (c = a) : a = c = "oninput" : i && ho.test(c) ? c = c.replace(go, "-$&").toLowerCase() : s === null && (s = void 0), a === "oninput" && o[c = a] && (c = "oninputCapture"), o[c] = s;
428
+ c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || Po(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : So.test(c) && (c = a) : a = c = "oninput" : i && Co.test(c) ? c = c.replace(wo, "-$&").toLowerCase() : s === null && (s = void 0), a === "oninput" && o[c = a] && (c = "oninputCapture"), o[c] = s;
429
429
  }
430
430
  }
431
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = Q(n.children).forEach(function(u) {
431
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ne(n.children).forEach(function(u) {
432
432
  u.props.selected = o.value.indexOf(u.props.value) != -1;
433
- })), r == "select" && o.defaultValue != null && (o.value = Q(n.children).forEach(function(u) {
433
+ })), r == "select" && o.defaultValue != null && (o.value = ne(n.children).forEach(function(u) {
434
434
  u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
435
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Eo)) : n.className && (o.class = o.className = n.className), t.props = o;
436
- })(e), e.$$typeof = zn, tn && tn(e);
435
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Ro)) : n.className && (o.class = o.className = n.className), t.props = o;
436
+ })(e), e.$$typeof = Fn, nn && nn(e);
437
437
  };
438
- var nn = z.__r;
439
- z.__r = function(e) {
440
- nn && nn(e), Tt = e.__c;
438
+ var rn = $.__r;
439
+ $.__r = function(e) {
440
+ rn && rn(e), Tt = e.__c;
441
441
  };
442
- var rn = z.diffed;
443
- z.diffed = function(e) {
444
- rn && rn(e);
442
+ var on = $.diffed;
443
+ $.diffed = function(e) {
444
+ on && on(e);
445
445
  var t = e.props, n = e.__e;
446
446
  n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Tt = null;
447
447
  };
448
- var Fn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
448
+ var Wn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
449
  return Tt.__n[e.__c].props.value;
450
- }, useCallback: M, useContext: Y, useDebugValue: wt, useDeferredValue: At, useEffect: E, useId: Et, useImperativeHandle: St, useInsertionEffect: It, useLayoutEffect: te, useMemo: D, useReducer: Te, useRef: S, useState: R, useSyncExternalStore: Nt, useTransition: Rt } } }, Po = "18.3.1";
451
- function Un(e) {
452
- return T.bind(null, e);
450
+ }, useCallback: z, useContext: J, useDebugValue: wt, useDeferredValue: At, useEffect: N, useId: Et, useImperativeHandle: St, useInsertionEffect: It, useLayoutEffect: oe, useMemo: x, useReducer: Te, useRef: P, useState: I, useSyncExternalStore: Nt, useTransition: Rt } } }, Io = "18.3.1";
451
+ function Bn(e) {
452
+ return D.bind(null, e);
453
453
  }
454
- function G(e) {
455
- return !!e && e.$$typeof === zn;
454
+ function X(e) {
455
+ return !!e && e.$$typeof === Fn;
456
456
  }
457
- function jn(e) {
458
- return G(e) && e.type === W;
457
+ function Hn(e) {
458
+ return X(e) && e.type === B;
459
459
  }
460
- function Wn(e) {
460
+ function Zn(e) {
461
461
  return !!e && typeof e.displayName == "string" && e.displayName.startsWith("Memo(");
462
462
  }
463
- function ge(e) {
464
- return G(e) ? io.apply(null, arguments) : e;
463
+ function ye(e) {
464
+ return X(e) ? lo.apply(null, arguments) : e;
465
465
  }
466
- function Bn(e) {
466
+ function Vn(e) {
467
467
  return !!e.__k && (Ae(null, e), !0);
468
468
  }
469
- function Hn(e) {
469
+ function Kn(e) {
470
470
  return e && (e.base || e.nodeType === 1 && e) || null;
471
471
  }
472
- var Zn = function(e, t) {
472
+ var qn = function(e, t) {
473
473
  return e(t);
474
474
  }, kt = function(e, t) {
475
475
  return e(t);
476
- }, Vn = W, Kn = G, I = { useState: R, useId: Et, useReducer: Te, useEffect: E, useLayoutEffect: te, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: S, useImperativeHandle: St, useMemo: D, useCallback: M, useContext: Y, useDebugValue: wt, version: "18.3.1", Children: K, render: $n, hydrate: Ln, unmountComponentAtNode: Bn, createPortal: Mn, createElement: T, createContext: ee, createFactory: Un, cloneElement: ge, createRef: Nn, Fragment: W, isValidElement: G, isElement: Kn, isFragment: jn, isMemo: Wn, findDOMNode: Hn, Component: se, PureComponent: Ke, memo: In, forwardRef: P, flushSync: kt, unstable_batchedUpdates: Zn, StrictMode: Vn, Suspense: Pe, SuspenseList: _e, lazy: xn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Fn };
477
- const qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
476
+ }, Gn = B, Yn = X, k = { useState: I, useId: Et, useReducer: Te, useEffect: N, useLayoutEffect: oe, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: P, useImperativeHandle: St, useMemo: x, useCallback: z, useContext: J, useDebugValue: wt, version: "18.3.1", Children: q, render: Un, hydrate: jn, unmountComponentAtNode: Vn, createPortal: Ln, createElement: D, createContext: re, createFactory: Bn, cloneElement: ye, createRef: Rn, Fragment: B, isValidElement: X, isElement: Yn, isFragment: Hn, isMemo: Zn, findDOMNode: Kn, Component: ae, PureComponent: qe, memo: Dn, forwardRef: O, flushSync: kt, unstable_batchedUpdates: qn, StrictMode: Gn, Suspense: Pe, SuspenseList: he, lazy: $n, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Wn };
477
+ const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
478
478
  __proto__: null,
479
- Children: K,
480
- Component: se,
481
- Fragment: W,
482
- PureComponent: Ke,
483
- StrictMode: Vn,
479
+ Children: q,
480
+ Component: ae,
481
+ Fragment: B,
482
+ PureComponent: qe,
483
+ StrictMode: Gn,
484
484
  Suspense: Pe,
485
- SuspenseList: _e,
486
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Fn,
487
- cloneElement: ge,
488
- createContext: ee,
489
- createElement: T,
490
- createFactory: Un,
491
- createPortal: Mn,
492
- createRef: Nn,
493
- default: I,
494
- findDOMNode: Hn,
485
+ SuspenseList: he,
486
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Wn,
487
+ cloneElement: ye,
488
+ createContext: re,
489
+ createElement: D,
490
+ createFactory: Bn,
491
+ createPortal: Ln,
492
+ createRef: Rn,
493
+ default: k,
494
+ findDOMNode: Kn,
495
495
  flushSync: kt,
496
- forwardRef: P,
497
- hydrate: Ln,
498
- isElement: Kn,
499
- isFragment: jn,
500
- isMemo: Wn,
501
- isValidElement: G,
502
- lazy: xn,
503
- memo: In,
504
- render: $n,
496
+ forwardRef: O,
497
+ hydrate: jn,
498
+ isElement: Yn,
499
+ isFragment: Hn,
500
+ isMemo: Zn,
501
+ isValidElement: X,
502
+ lazy: $n,
503
+ memo: Dn,
504
+ render: Un,
505
505
  startTransition: Ot,
506
- unmountComponentAtNode: Bn,
507
- unstable_batchedUpdates: Zn,
508
- useCallback: M,
509
- useContext: Y,
506
+ unmountComponentAtNode: Vn,
507
+ unstable_batchedUpdates: qn,
508
+ useCallback: z,
509
+ useContext: J,
510
510
  useDebugValue: wt,
511
511
  useDeferredValue: At,
512
- useEffect: E,
513
- useErrorBoundary: ao,
512
+ useEffect: N,
513
+ useErrorBoundary: _o,
514
514
  useId: Et,
515
515
  useImperativeHandle: St,
516
516
  useInsertionEffect: It,
517
- useLayoutEffect: te,
518
- useMemo: D,
517
+ useLayoutEffect: oe,
518
+ useMemo: x,
519
519
  useReducer: Te,
520
- useRef: S,
521
- useState: R,
520
+ useRef: P,
521
+ useState: I,
522
522
  useSyncExternalStore: Nt,
523
523
  useTransition: Rt,
524
- version: Po
524
+ version: Io
525
525
  }, Symbol.toStringTag, { value: "Module" }));
526
- function Gn(...e) {
526
+ function Jn(...e) {
527
527
  return e.filter(Boolean).join(" ");
528
528
  }
529
- function He(e) {
529
+ function Ze(e) {
530
530
  return Object.entries(e).filter(([, t]) => t).map(([t]) => t).join(" ");
531
531
  }
532
- const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro = "_ghost_hw69b_43", on = {
533
- root: No,
534
- neutral: Oo,
535
- brand: Ao,
536
- ghost: Ro
537
- }, ut = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ p("button", { className: Gn(on.root, on[e]), ...t }), Io = "_root_14l5h_1", To = "_muted_14l5h_4", ko = "_body_14l5h_8", Do = "_normal_14l5h_14", xo = "_bold_14l5h_18", Mo = "_caption_14l5h_23", Me = {
538
- root: Io,
539
- muted: To,
540
- body: ko,
541
- normal: Do,
542
- bold: xo,
543
- caption: Mo
544
- }, ie = ({
532
+ const To = "_root_hw69b_1", ko = "_neutral_hw69b_17", Do = "_brand_hw69b_30", xo = "_ghost_hw69b_43", sn = {
533
+ root: To,
534
+ neutral: ko,
535
+ brand: Do,
536
+ ghost: xo
537
+ }, ut = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ f("button", { className: Jn(sn.root, sn[e]), ...t }), Mo = "_root_14l5h_1", zo = "_muted_14l5h_4", $o = "_body_14l5h_8", Lo = "_normal_14l5h_14", Fo = "_bold_14l5h_18", Uo = "_caption_14l5h_23", ze = {
538
+ root: Mo,
539
+ muted: zo,
540
+ body: $o,
541
+ normal: Lo,
542
+ bold: Fo,
543
+ caption: Uo
544
+ }, ce = ({
545
545
  as: e = "span",
546
546
  size: t = "body",
547
547
  weight: n = "normal",
@@ -549,40 +549,40 @@ const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro
549
549
  ...o
550
550
  }) => (
551
551
  // @ts-ignore
552
- /* @__PURE__ */ p(
552
+ /* @__PURE__ */ f(
553
553
  e ?? "span",
554
554
  {
555
- className: Gn(
556
- Me.root,
557
- Me[t],
558
- Me[n],
559
- Me[r]
555
+ className: Jn(
556
+ ze.root,
557
+ ze[t],
558
+ ze[n],
559
+ ze[r]
560
560
  ),
561
561
  ...o
562
562
  }
563
563
  )
564
- ), zo = "_root_12udu_53", $o = "_noTarget_12udu_65", Lo = "_collapsible_12udu_74", Fo = "_header_12udu_77", Uo = "_heading_12udu_84", jo = "_chevron_12udu_90", Wo = "_open_12udu_95", Bo = "_settings_12udu_101", Ho = "_footer_12udu_115", Zo = "_legal_12udu_122", Vo = "_actions_12udu_125", U = {
565
- root: zo,
566
- noTarget: $o,
567
- collapsible: Lo,
568
- header: Fo,
569
- heading: Uo,
570
- chevron: jo,
571
- open: Wo,
572
- settings: Bo,
573
- footer: Ho,
574
- legal: Zo,
575
- actions: Vo
576
- }, Ko = "_root_mqtha_19", qo = "_header_mqtha_24", Go = "_label_mqtha_33", Yo = "_actions_mqtha_39", Xo = "_chevron_mqtha_45", Jo = "_open_mqtha_51", Qo = "_description_mqtha_58", re = {
577
- root: Ko,
578
- header: qo,
579
- label: Go,
580
- actions: Yo,
581
- chevron: Xo,
582
- open: Jo,
583
- description: Qo
564
+ ), jo = "_root_12udu_53", Wo = "_noTarget_12udu_65", Bo = "_collapsible_12udu_74", Ho = "_header_12udu_77", Zo = "_heading_12udu_84", Vo = "_chevron_12udu_90", Ko = "_open_12udu_95", qo = "_settings_12udu_101", Go = "_footer_12udu_115", Yo = "_legal_12udu_122", Xo = "_actions_12udu_125", j = {
565
+ root: jo,
566
+ noTarget: Wo,
567
+ collapsible: Bo,
568
+ header: Ho,
569
+ heading: Zo,
570
+ chevron: Vo,
571
+ open: Ko,
572
+ settings: qo,
573
+ footer: Go,
574
+ legal: Yo,
575
+ actions: Xo
576
+ }, Jo = "_root_mqtha_19", Qo = "_header_mqtha_24", ei = "_label_mqtha_33", ti = "_actions_mqtha_39", ni = "_chevron_mqtha_45", ri = "_open_mqtha_51", oi = "_description_mqtha_58", se = {
577
+ root: Jo,
578
+ header: Qo,
579
+ label: ei,
580
+ actions: ti,
581
+ chevron: ni,
582
+ open: ri,
583
+ description: oi
584
584
  };
585
- function x(e, t, n) {
585
+ function M(e, t, n) {
586
586
  function r(s, a) {
587
587
  if (s._zod || Object.defineProperty(s, "_zod", {
588
588
  value: {
@@ -621,14 +621,14 @@ class Ne extends Error {
621
621
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
622
622
  }
623
623
  }
624
- const ei = {};
625
- function ye(e) {
626
- return ei;
624
+ const ii = {};
625
+ function be(e) {
626
+ return ii;
627
627
  }
628
- function ti(e, t) {
628
+ function si(e, t) {
629
629
  return typeof t == "bigint" ? t.toString() : t;
630
630
  }
631
- function Yn(e) {
631
+ function Qn(e) {
632
632
  return {
633
633
  get value() {
634
634
  {
@@ -638,17 +638,17 @@ function Yn(e) {
638
638
  }
639
639
  };
640
640
  }
641
- function Xn(e) {
641
+ function er(e) {
642
642
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
643
643
  return e.slice(t, n);
644
644
  }
645
- const sn = /* @__PURE__ */ Symbol("evaluating");
646
- function Z(e, t, n) {
645
+ const cn = /* @__PURE__ */ Symbol("evaluating");
646
+ function K(e, t, n) {
647
647
  let r;
648
648
  Object.defineProperty(e, t, {
649
649
  get() {
650
- if (r !== sn)
651
- return r === void 0 && (r = sn, r = n()), r;
650
+ if (r !== cn)
651
+ return r === void 0 && (r = cn, r = n()), r;
652
652
  },
653
653
  set(o) {
654
654
  Object.defineProperty(e, t, {
@@ -659,31 +659,31 @@ function Z(e, t, n) {
659
659
  configurable: !0
660
660
  });
661
661
  }
662
- const Jn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
662
+ const tr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
663
663
  };
664
- function qe(e) {
664
+ function Ge(e) {
665
665
  return typeof e == "object" && e !== null && !Array.isArray(e);
666
666
  }
667
- function ni(e) {
668
- if (qe(e) === !1)
667
+ function ci(e) {
668
+ if (Ge(e) === !1)
669
669
  return !1;
670
670
  const t = e.constructor;
671
671
  if (t === void 0 || typeof t != "function")
672
672
  return !0;
673
673
  const n = t.prototype;
674
- return !(qe(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
674
+ return !(Ge(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
675
675
  }
676
- function cn(e) {
676
+ function an(e) {
677
677
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
678
678
  }
679
- function ri(e, t, n) {
679
+ function ai(e, t, n) {
680
680
  const r = new e._zod.constr(t ?? e._zod.def);
681
681
  return (!t || n?.parent) && (r._zod.parent = e), r;
682
682
  }
683
- function be(e) {
683
+ function Ce(e) {
684
684
  return {};
685
685
  }
686
- function oi(e) {
686
+ function ui(e) {
687
687
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
688
688
  }
689
689
  function we(e, t = 0) {
@@ -700,70 +700,70 @@ function Ee(e, t) {
700
700
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
701
701
  });
702
702
  }
703
- function ze(e) {
703
+ function $e(e) {
704
704
  return typeof e == "string" ? e : e?.message;
705
705
  }
706
- function Ce(e, t, n) {
706
+ function Se(e, t, n) {
707
707
  const r = { ...e, path: e.path ?? [] };
708
708
  if (!e.message) {
709
- const o = ze(e.inst?._zod.def?.error?.(e)) ?? ze(t?.error?.(e)) ?? ze(n.customError?.(e)) ?? ze(n.localeError?.(e)) ?? "Invalid input";
709
+ const o = $e(e.inst?._zod.def?.error?.(e)) ?? $e(t?.error?.(e)) ?? $e(n.customError?.(e)) ?? $e(n.localeError?.(e)) ?? "Invalid input";
710
710
  r.message = o;
711
711
  }
712
712
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
713
713
  }
714
- const Qn = (e, t) => {
714
+ const nr = (e, t) => {
715
715
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
716
716
  value: e._zod,
717
717
  enumerable: !1
718
718
  }), Object.defineProperty(e, "issues", {
719
719
  value: t,
720
720
  enumerable: !1
721
- }), e.message = JSON.stringify(t, ti, 2), Object.defineProperty(e, "toString", {
721
+ }), e.message = JSON.stringify(t, si, 2), Object.defineProperty(e, "toString", {
722
722
  value: () => e.message,
723
723
  enumerable: !1
724
724
  });
725
- }, ii = x("$ZodError", Qn), Qe = x("$ZodError", Qn, { Parent: Error }), si = (e) => (t, n, r, o) => {
725
+ }, li = M("$ZodError", nr), et = M("$ZodError", nr, { Parent: Error }), di = (e) => (t, n, r, o) => {
726
726
  const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, i);
727
727
  if (c instanceof Promise)
728
728
  throw new Ne();
729
729
  if (c.issues.length) {
730
- const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
731
- throw Jn(s, o?.callee), s;
730
+ const s = new (o?.Err ?? e)(c.issues.map((a) => Se(a, i, be())));
731
+ throw tr(s, o?.callee), s;
732
732
  }
733
733
  return c.value;
734
- }, ci = /* @__PURE__ */ si(Qe), ai = (e) => async (t, n, r, o) => {
734
+ }, fi = /* @__PURE__ */ di(et), pi = (e) => async (t, n, r, o) => {
735
735
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
736
736
  let c = t._zod.run({ value: n, issues: [] }, i);
737
737
  if (c instanceof Promise && (c = await c), c.issues.length) {
738
- const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
739
- throw Jn(s, o?.callee), s;
738
+ const s = new (o?.Err ?? e)(c.issues.map((a) => Se(a, i, be())));
739
+ throw tr(s, o?.callee), s;
740
740
  }
741
741
  return c.value;
742
- }, ui = /* @__PURE__ */ ai(Qe), li = (e) => (t, n, r) => {
742
+ }, _i = /* @__PURE__ */ pi(et), vi = (e) => (t, n, r) => {
743
743
  const o = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, o);
744
744
  if (i instanceof Promise)
745
745
  throw new Ne();
746
746
  return i.issues.length ? {
747
747
  success: !1,
748
- error: new (e ?? ii)(i.issues.map((c) => Ce(c, o, ye())))
748
+ error: new (e ?? li)(i.issues.map((c) => Se(c, o, be())))
749
749
  } : { success: !0, data: i.value };
750
- }, er = /* @__PURE__ */ li(Qe), di = (e) => async (t, n, r) => {
750
+ }, rr = /* @__PURE__ */ vi(et), hi = (e) => async (t, n, r) => {
751
751
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
752
752
  let i = t._zod.run({ value: n, issues: [] }, o);
753
753
  return i instanceof Promise && (i = await i), i.issues.length ? {
754
754
  success: !1,
755
- error: new e(i.issues.map((c) => Ce(c, o, ye())))
755
+ error: new e(i.issues.map((c) => Se(c, o, be())))
756
756
  } : { success: !0, data: i.value };
757
- }, tr = /* @__PURE__ */ di(Qe), fi = (e) => {
757
+ }, or = /* @__PURE__ */ hi(et), mi = (e) => {
758
758
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
759
759
  return new RegExp(`^${t}$`);
760
- }, pi = /^-?\d+(?:\.\d+)?$/, _i = /^(?:true|false)$/i, vi = {
760
+ }, gi = /^-?\d+(?:\.\d+)?$/, yi = /^(?:true|false)$/i, bi = {
761
761
  major: 4,
762
762
  minor: 3,
763
763
  patch: 6
764
- }, ne = /* @__PURE__ */ x("$ZodType", (e, t) => {
764
+ }, ie = /* @__PURE__ */ M("$ZodType", (e, t) => {
765
765
  var n;
766
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vi;
766
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = bi;
767
767
  const r = [...e._zod.def.checks ?? []];
768
768
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
769
769
  for (const o of r)
@@ -782,12 +782,12 @@ const Qn = (e, t) => {
782
782
  continue;
783
783
  } else if (u)
784
784
  continue;
785
- const _ = c.issues.length, m = d._zod.check(c);
786
- if (m instanceof Promise && a?.async === !1)
785
+ const _ = c.issues.length, v = d._zod.check(c);
786
+ if (v instanceof Promise && a?.async === !1)
787
787
  throw new Ne();
788
- if (l || m instanceof Promise)
788
+ if (l || v instanceof Promise)
789
789
  l = (l ?? Promise.resolve()).then(async () => {
790
- await m, c.issues.length !== _ && (u || (u = we(c, _)));
790
+ await v, c.issues.length !== _ && (u || (u = we(c, _)));
791
791
  });
792
792
  else {
793
793
  if (c.issues.length === _)
@@ -823,20 +823,20 @@ const Qn = (e, t) => {
823
823
  return o(a, r, s);
824
824
  };
825
825
  }
826
- Z(e, "~standard", () => ({
826
+ K(e, "~standard", () => ({
827
827
  validate: (o) => {
828
828
  try {
829
- const i = er(e, o);
829
+ const i = rr(e, o);
830
830
  return i.success ? { value: i.data } : { issues: i.error?.issues };
831
831
  } catch {
832
- return tr(e, o).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
832
+ return or(e, o).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
833
833
  }
834
834
  },
835
835
  vendor: "zod",
836
836
  version: 1
837
837
  }));
838
- }), hi = /* @__PURE__ */ x("$ZodString", (e, t) => {
839
- ne.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fi(e._zod.bag), e._zod.parse = (n, r) => {
838
+ }), Ci = /* @__PURE__ */ M("$ZodString", (e, t) => {
839
+ ie.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? mi(e._zod.bag), e._zod.parse = (n, r) => {
840
840
  if (t.coerce)
841
841
  try {
842
842
  n.value = String(n.value);
@@ -849,8 +849,8 @@ const Qn = (e, t) => {
849
849
  inst: e
850
850
  }), n;
851
851
  };
852
- }), mi = /* @__PURE__ */ x("$ZodBoolean", (e, t) => {
853
- ne.init(e, t), e._zod.pattern = _i, e._zod.parse = (n, r) => {
852
+ }), Si = /* @__PURE__ */ M("$ZodBoolean", (e, t) => {
853
+ ie.init(e, t), e._zod.pattern = yi, e._zod.parse = (n, r) => {
854
854
  if (t.coerce)
855
855
  try {
856
856
  n.value = !!n.value;
@@ -865,7 +865,7 @@ const Qn = (e, t) => {
865
865
  }), n;
866
866
  };
867
867
  });
868
- function Ge(e, t, n, r, o) {
868
+ function Ye(e, t, n, r, o) {
869
869
  if (e.issues.length) {
870
870
  if (o && !(n in r))
871
871
  return;
@@ -873,12 +873,12 @@ function Ge(e, t, n, r, o) {
873
873
  }
874
874
  e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
875
875
  }
876
- function gi(e) {
876
+ function wi(e) {
877
877
  const t = Object.keys(e.shape);
878
878
  for (const r of t)
879
879
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
880
880
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
881
- const n = oi(e.shape);
881
+ const n = ui(e.shape);
882
882
  return {
883
883
  ...e,
884
884
  keys: t,
@@ -887,7 +887,7 @@ function gi(e) {
887
887
  optionalKeys: new Set(n)
888
888
  };
889
889
  }
890
- function yi(e, t, n, r, o, i) {
890
+ function Ei(e, t, n, r, o, i) {
891
891
  const c = [], s = o.keySet, a = o.catchall._zod, u = a.def.type, l = a.optout === "optional";
892
892
  for (const d in t) {
893
893
  if (s.has(d))
@@ -897,7 +897,7 @@ function yi(e, t, n, r, o, i) {
897
897
  continue;
898
898
  }
899
899
  const _ = a.run({ value: t[d], issues: [] }, r);
900
- _ instanceof Promise ? e.push(_.then((m) => Ge(m, n, d, t, l))) : Ge(_, n, d, t, l);
900
+ _ instanceof Promise ? e.push(_.then((v) => Ye(v, n, d, t, l))) : Ye(_, n, d, t, l);
901
901
  }
902
902
  return c.length && n.issues.push({
903
903
  code: "unrecognized_keys",
@@ -906,8 +906,8 @@ function yi(e, t, n, r, o, i) {
906
906
  inst: i
907
907
  }), e.length ? Promise.all(e).then(() => n) : n;
908
908
  }
909
- const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
910
- if (ne.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
909
+ const Pi = /* @__PURE__ */ M("$ZodObject", (e, t) => {
910
+ if (ie.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
911
911
  const s = t.shape;
912
912
  Object.defineProperty(t, "shape", {
913
913
  get: () => {
@@ -918,8 +918,8 @@ const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
918
918
  }
919
919
  });
920
920
  }
921
- const r = Yn(() => gi(t));
922
- Z(e._zod, "propValues", () => {
921
+ const r = Qn(() => wi(t));
922
+ K(e._zod, "propValues", () => {
923
923
  const s = t.shape, a = {};
924
924
  for (const u in s) {
925
925
  const l = s[u]._zod;
@@ -931,7 +931,7 @@ const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
931
931
  }
932
932
  return a;
933
933
  });
934
- const o = qe, i = t.catchall;
934
+ const o = Ge, i = t.catchall;
935
935
  let c;
936
936
  e._zod.parse = (s, a) => {
937
937
  c ?? (c = r.value);
@@ -946,13 +946,13 @@ const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
946
946
  s.value = {};
947
947
  const l = [], d = c.shape;
948
948
  for (const _ of c.keys) {
949
- const m = d[_], g = m._zod.optout === "optional", f = m._zod.run({ value: u[_], issues: [] }, a);
950
- f instanceof Promise ? l.push(f.then((v) => Ge(v, s, _, u, g))) : Ge(f, s, _, u, g);
949
+ const v = d[_], S = v._zod.optout === "optional", p = v._zod.run({ value: u[_], issues: [] }, a);
950
+ p instanceof Promise ? l.push(p.then((h) => Ye(h, s, _, u, S))) : Ye(p, s, _, u, S);
951
951
  }
952
- return i ? yi(l, u, s, a, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
952
+ return i ? Ei(l, u, s, a, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
953
953
  };
954
954
  });
955
- function an(e, t, n, r) {
955
+ function un(e, t, n, r) {
956
956
  for (const i of e)
957
957
  if (i.issues.length === 0)
958
958
  return t.value = i.value, t;
@@ -961,17 +961,17 @@ function an(e, t, n, r) {
961
961
  code: "invalid_union",
962
962
  input: t.value,
963
963
  inst: n,
964
- errors: e.map((i) => i.issues.map((c) => Ce(c, r, ye())))
964
+ errors: e.map((i) => i.issues.map((c) => Se(c, r, be())))
965
965
  }), t);
966
966
  }
967
- const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
968
- ne.init(e, t), Z(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), Z(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), Z(e._zod, "values", () => {
967
+ const Ni = /* @__PURE__ */ M("$ZodUnion", (e, t) => {
968
+ ie.init(e, t), K(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), K(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), K(e._zod, "values", () => {
969
969
  if (t.options.every((o) => o._zod.values))
970
970
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
971
- }), Z(e._zod, "pattern", () => {
971
+ }), K(e._zod, "pattern", () => {
972
972
  if (t.options.every((o) => o._zod.pattern)) {
973
973
  const o = t.options.map((i) => i._zod.pattern);
974
- return new RegExp(`^(${o.map((i) => Xn(i.source)).join("|")})$`);
974
+ return new RegExp(`^(${o.map((i) => er(i.source)).join("|")})$`);
975
975
  }
976
976
  });
977
977
  const n = t.options.length === 1, r = t.options[0]._zod.run;
@@ -993,12 +993,12 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
993
993
  s.push(u);
994
994
  }
995
995
  }
996
- return c ? Promise.all(s).then((a) => an(a, o, e, i)) : an(s, o, e, i);
996
+ return c ? Promise.all(s).then((a) => un(a, o, e, i)) : un(s, o, e, i);
997
997
  };
998
- }), Si = /* @__PURE__ */ x("$ZodDiscriminatedUnion", (e, t) => {
999
- t.inclusive = !1, Ci.init(e, t);
998
+ }), Oi = /* @__PURE__ */ M("$ZodDiscriminatedUnion", (e, t) => {
999
+ t.inclusive = !1, Ni.init(e, t);
1000
1000
  const n = e._zod.parse;
1001
- Z(e._zod, "propValues", () => {
1001
+ K(e._zod, "propValues", () => {
1002
1002
  const o = {};
1003
1003
  for (const i of t.options) {
1004
1004
  const c = i._zod.propValues;
@@ -1012,7 +1012,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1012
1012
  }
1013
1013
  return o;
1014
1014
  });
1015
- const r = Yn(() => {
1015
+ const r = Qn(() => {
1016
1016
  const o = t.options, i = /* @__PURE__ */ new Map();
1017
1017
  for (const c of o) {
1018
1018
  const s = c._zod.propValues?.[t.discriminator];
@@ -1028,7 +1028,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1028
1028
  });
1029
1029
  e._zod.parse = (o, i) => {
1030
1030
  const c = o.value;
1031
- if (!qe(c))
1031
+ if (!Ge(c))
1032
1032
  return o.issues.push({
1033
1033
  code: "invalid_type",
1034
1034
  expected: "object",
@@ -1046,10 +1046,10 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1046
1046
  inst: e
1047
1047
  }), o);
1048
1048
  };
1049
- }), wi = /* @__PURE__ */ x("$ZodRecord", (e, t) => {
1050
- ne.init(e, t), e._zod.parse = (n, r) => {
1049
+ }), Ai = /* @__PURE__ */ M("$ZodRecord", (e, t) => {
1050
+ ie.init(e, t), e._zod.parse = (n, r) => {
1051
1051
  const o = n.value;
1052
- if (!ni(o))
1052
+ if (!ci(o))
1053
1053
  return n.issues.push({
1054
1054
  expected: "record",
1055
1055
  code: "invalid_type",
@@ -1085,7 +1085,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1085
1085
  let a = t.keyType._zod.run({ value: s, issues: [] }, r);
1086
1086
  if (a instanceof Promise)
1087
1087
  throw new Error("Async schemas not supported in object keys currently");
1088
- if (typeof s == "string" && pi.test(s) && a.issues.length) {
1088
+ if (typeof s == "string" && gi.test(s) && a.issues.length) {
1089
1089
  const d = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
1090
1090
  if (d instanceof Promise)
1091
1091
  throw new Error("Async schemas not supported in object keys currently");
@@ -1095,7 +1095,7 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1095
1095
  t.mode === "loose" ? n.value[s] = o[s] : n.issues.push({
1096
1096
  code: "invalid_key",
1097
1097
  origin: "record",
1098
- issues: a.issues.map((d) => Ce(d, r, ye())),
1098
+ issues: a.issues.map((d) => Se(d, r, be())),
1099
1099
  input: s,
1100
1100
  path: [s],
1101
1101
  inst: e
@@ -1110,11 +1110,11 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1110
1110
  }
1111
1111
  return i.length ? Promise.all(i).then(() => n) : n;
1112
1112
  };
1113
- }), Ei = /* @__PURE__ */ x("$ZodLiteral", (e, t) => {
1114
- if (ne.init(e, t), t.values.length === 0)
1113
+ }), Ri = /* @__PURE__ */ M("$ZodLiteral", (e, t) => {
1114
+ if (ie.init(e, t), t.values.length === 0)
1115
1115
  throw new Error("Cannot create literal schema with no valid values");
1116
1116
  const n = new Set(t.values);
1117
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? cn(r) : r ? cn(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
1117
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? an(r) : r ? an(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
1118
1118
  const i = r.value;
1119
1119
  return n.has(i) || r.issues.push({
1120
1120
  code: "invalid_value",
@@ -1124,142 +1124,144 @@ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
1124
1124
  }), r;
1125
1125
  };
1126
1126
  });
1127
- function un(e, t) {
1127
+ function ln(e, t) {
1128
1128
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1129
1129
  }
1130
- const Pi = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
1131
- ne.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
1130
+ const Ii = /* @__PURE__ */ M("$ZodOptional", (e, t) => {
1131
+ ie.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", K(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), K(e._zod, "pattern", () => {
1132
1132
  const n = t.innerType._zod.pattern;
1133
- return n ? new RegExp(`^(${Xn(n.source)})?$`) : void 0;
1133
+ return n ? new RegExp(`^(${er(n.source)})?$`) : void 0;
1134
1134
  }), e._zod.parse = (n, r) => {
1135
1135
  if (t.innerType._zod.optin === "optional") {
1136
1136
  const o = t.innerType._zod.run(n, r);
1137
- return o instanceof Promise ? o.then((i) => un(i, n.value)) : un(o, n.value);
1137
+ return o instanceof Promise ? o.then((i) => ln(i, n.value)) : ln(o, n.value);
1138
1138
  }
1139
1139
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1140
1140
  };
1141
1141
  });
1142
1142
  // @__NO_SIDE_EFFECTS__
1143
- function Ni(e, t) {
1143
+ function Ti(e, t) {
1144
1144
  return new e({
1145
1145
  type: "string",
1146
- ...be()
1146
+ ...Ce()
1147
1147
  });
1148
1148
  }
1149
1149
  // @__NO_SIDE_EFFECTS__
1150
- function Oi(e, t) {
1150
+ function ki(e, t) {
1151
1151
  return new e({
1152
1152
  type: "boolean",
1153
- ...be()
1153
+ ...Ce()
1154
1154
  });
1155
1155
  }
1156
- const ue = /* @__PURE__ */ x("ZodMiniType", (e, t) => {
1156
+ const fe = /* @__PURE__ */ M("ZodMiniType", (e, t) => {
1157
1157
  if (!e._zod)
1158
1158
  throw new Error("Uninitialized schema in ZodMiniType.");
1159
- ne.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => ci(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => er(e, n, r), e.parseAsync = async (n, r) => ui(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => tr(e, n, r), e.check = (...n) => e.clone({
1159
+ ie.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => fi(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => rr(e, n, r), e.parseAsync = async (n, r) => _i(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => or(e, n, r), e.check = (...n) => e.clone({
1160
1160
  ...t,
1161
1161
  checks: [
1162
1162
  ...t.checks ?? [],
1163
1163
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
1164
1164
  ]
1165
- }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => ri(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
1166
- }), Ai = /* @__PURE__ */ x("ZodMiniString", (e, t) => {
1167
- hi.init(e, t), ue.init(e, t);
1165
+ }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => ai(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
1166
+ }), Di = /* @__PURE__ */ M("ZodMiniString", (e, t) => {
1167
+ Ci.init(e, t), fe.init(e, t);
1168
1168
  });
1169
1169
  // @__NO_SIDE_EFFECTS__
1170
- function oe(e) {
1171
- return /* @__PURE__ */ Ni(Ai);
1170
+ function G(e) {
1171
+ return /* @__PURE__ */ Ti(Di);
1172
1172
  }
1173
- const Ri = /* @__PURE__ */ x("ZodMiniBoolean", (e, t) => {
1174
- mi.init(e, t), ue.init(e, t);
1173
+ const xi = /* @__PURE__ */ M("ZodMiniBoolean", (e, t) => {
1174
+ Si.init(e, t), fe.init(e, t);
1175
1175
  });
1176
1176
  // @__NO_SIDE_EFFECTS__
1177
1177
  function Re(e) {
1178
- return /* @__PURE__ */ Oi(Ri);
1178
+ return /* @__PURE__ */ ki(xi);
1179
1179
  }
1180
- const Ii = /* @__PURE__ */ x("ZodMiniObject", (e, t) => {
1181
- bi.init(e, t), ue.init(e, t), Z(e, "shape", () => t.shape);
1180
+ const Mi = /* @__PURE__ */ M("ZodMiniObject", (e, t) => {
1181
+ Pi.init(e, t), fe.init(e, t), K(e, "shape", () => t.shape);
1182
1182
  });
1183
1183
  // @__NO_SIDE_EFFECTS__
1184
- function nr(e, t) {
1184
+ function ir(e, t) {
1185
1185
  const n = {
1186
1186
  type: "object",
1187
1187
  shape: e ?? {},
1188
- ...be()
1188
+ ...Ce()
1189
1189
  };
1190
- return new Ii(n);
1190
+ return new Mi(n);
1191
1191
  }
1192
- const Ti = /* @__PURE__ */ x("ZodMiniDiscriminatedUnion", (e, t) => {
1193
- Si.init(e, t), ue.init(e, t);
1192
+ const zi = /* @__PURE__ */ M("ZodMiniDiscriminatedUnion", (e, t) => {
1193
+ Oi.init(e, t), fe.init(e, t);
1194
1194
  });
1195
1195
  // @__NO_SIDE_EFFECTS__
1196
- function ki(e, t, n) {
1197
- return new Ti({
1196
+ function $i(e, t, n) {
1197
+ return new zi({
1198
1198
  type: "union",
1199
1199
  options: t,
1200
1200
  discriminator: e,
1201
- ...be()
1201
+ ...Ce()
1202
1202
  });
1203
1203
  }
1204
- const Di = /* @__PURE__ */ x("ZodMiniRecord", (e, t) => {
1205
- wi.init(e, t), ue.init(e, t);
1204
+ const Li = /* @__PURE__ */ M("ZodMiniRecord", (e, t) => {
1205
+ Ai.init(e, t), fe.init(e, t);
1206
1206
  });
1207
1207
  // @__NO_SIDE_EFFECTS__
1208
- function xi(e, t, n) {
1209
- return new Di({
1208
+ function Fi(e, t, n) {
1209
+ return new Li({
1210
1210
  type: "record",
1211
1211
  keyType: e,
1212
1212
  valueType: t,
1213
- ...be()
1213
+ ...Ce()
1214
1214
  });
1215
1215
  }
1216
- const Mi = /* @__PURE__ */ x("ZodMiniLiteral", (e, t) => {
1217
- Ei.init(e, t), ue.init(e, t);
1216
+ const Ui = /* @__PURE__ */ M("ZodMiniLiteral", (e, t) => {
1217
+ Ri.init(e, t), fe.init(e, t);
1218
1218
  });
1219
1219
  // @__NO_SIDE_EFFECTS__
1220
- function rr(e, t) {
1221
- return new Mi({
1220
+ function sr(e, t) {
1221
+ return new Ui({
1222
1222
  type: "literal",
1223
1223
  values: Array.isArray(e) ? e : [e],
1224
- ...be()
1224
+ ...Ce()
1225
1225
  });
1226
1226
  }
1227
- const zi = /* @__PURE__ */ x("ZodMiniOptional", (e, t) => {
1228
- Pi.init(e, t), ue.init(e, t);
1227
+ const ji = /* @__PURE__ */ M("ZodMiniOptional", (e, t) => {
1228
+ Ii.init(e, t), fe.init(e, t);
1229
1229
  });
1230
1230
  // @__NO_SIDE_EFFECTS__
1231
- function J(e) {
1232
- return new zi({
1231
+ function te(e) {
1232
+ return new ji({
1233
1233
  type: "optional",
1234
1234
  innerType: e
1235
1235
  });
1236
1236
  }
1237
- const $i = /* @__PURE__ */ nr({
1238
- variant: /* @__PURE__ */ rr("remote"),
1239
- type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1240
- src: /* @__PURE__ */ oe(),
1241
- async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1242
- defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1243
- crossorigin: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1244
- integrity: /* @__PURE__ */ J(/* @__PURE__ */ oe())
1245
- }), Li = /* @__PURE__ */ nr({
1246
- variant: /* @__PURE__ */ rr("inline"),
1247
- type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1248
- async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1249
- defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1250
- content: /* @__PURE__ */ oe()
1251
- }), Fi = /* @__PURE__ */ ki("variant", [
1252
- $i,
1253
- Li
1237
+ const Wi = /* @__PURE__ */ ir({
1238
+ id: /* @__PURE__ */ G(),
1239
+ variant: /* @__PURE__ */ sr("remote"),
1240
+ type: /* @__PURE__ */ te(/* @__PURE__ */ G()),
1241
+ src: /* @__PURE__ */ G(),
1242
+ async: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
1243
+ defer: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
1244
+ crossorigin: /* @__PURE__ */ te(/* @__PURE__ */ G()),
1245
+ integrity: /* @__PURE__ */ te(/* @__PURE__ */ G())
1246
+ }), Bi = /* @__PURE__ */ ir({
1247
+ id: /* @__PURE__ */ G(),
1248
+ variant: /* @__PURE__ */ sr("inline"),
1249
+ type: /* @__PURE__ */ te(/* @__PURE__ */ G()),
1250
+ async: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
1251
+ defer: /* @__PURE__ */ te(/* @__PURE__ */ Re()),
1252
+ content: /* @__PURE__ */ G()
1253
+ }), Hi = /* @__PURE__ */ $i("variant", [
1254
+ Wi,
1255
+ Bi
1254
1256
  ]);
1255
- function Ui(e, t) {
1256
- const n = ee(t), r = (i) => {
1257
- const { children: c, ...s } = i, a = D(() => s, Object.values(s));
1258
- return /* @__PURE__ */ p(n.Provider, { value: a, children: c });
1257
+ function Zi(e, t) {
1258
+ const n = re(t), r = (i) => {
1259
+ const { children: c, ...s } = i, a = x(() => s, Object.values(s));
1260
+ return /* @__PURE__ */ f(n.Provider, { value: a, children: c });
1259
1261
  };
1260
1262
  r.displayName = e + "Provider";
1261
1263
  function o(i) {
1262
- const c = Y(n);
1264
+ const c = J(n);
1263
1265
  if (c) return c;
1264
1266
  if (t !== void 0) return t;
1265
1267
  throw new Error(`\`${i}\` must be used within \`${e}\``);
@@ -1269,34 +1271,34 @@ function Ui(e, t) {
1269
1271
  function ke(e, t = []) {
1270
1272
  let n = [];
1271
1273
  function r(i, c) {
1272
- const s = ee(c), a = n.length;
1274
+ const s = re(c), a = n.length;
1273
1275
  n = [...n, c];
1274
1276
  const u = (d) => {
1275
- const { scope: _, children: m, ...g } = d, f = _?.[e]?.[a] || s, v = D(() => g, Object.values(g));
1276
- return /* @__PURE__ */ p(f.Provider, { value: v, children: m });
1277
+ const { scope: _, children: v, ...S } = d, p = _?.[e]?.[a] || s, h = x(() => S, Object.values(S));
1278
+ return /* @__PURE__ */ f(p.Provider, { value: h, children: v });
1277
1279
  };
1278
1280
  u.displayName = i + "Provider";
1279
1281
  function l(d, _) {
1280
- const m = _?.[e]?.[a] || s, g = Y(m);
1281
- if (g) return g;
1282
+ const v = _?.[e]?.[a] || s, S = J(v);
1283
+ if (S) return S;
1282
1284
  if (c !== void 0) return c;
1283
1285
  throw new Error(`\`${d}\` must be used within \`${i}\``);
1284
1286
  }
1285
1287
  return [u, l];
1286
1288
  }
1287
1289
  const o = () => {
1288
- const i = n.map((c) => ee(c));
1290
+ const i = n.map((c) => re(c));
1289
1291
  return function(s) {
1290
1292
  const a = s?.[e] || i;
1291
- return D(
1293
+ return x(
1292
1294
  () => ({ [`__scope${e}`]: { ...s, [e]: a } }),
1293
1295
  [s, a]
1294
1296
  );
1295
1297
  };
1296
1298
  };
1297
- return o.scopeName = e, [r, ji(o, ...t)];
1299
+ return o.scopeName = e, [r, Vi(o, ...t)];
1298
1300
  }
1299
- function ji(...e) {
1301
+ function Vi(...e) {
1300
1302
  const t = e[0];
1301
1303
  if (e.length === 1) return t;
1302
1304
  const n = () => {
@@ -1309,64 +1311,64 @@ function ji(...e) {
1309
1311
  const d = a(i)[`__scope${u}`];
1310
1312
  return { ...s, ...d };
1311
1313
  }, {});
1312
- return D(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
1314
+ return x(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
1313
1315
  };
1314
1316
  };
1315
1317
  return n.scopeName = t.scopeName, n;
1316
1318
  }
1317
- function ln(e, t) {
1319
+ function dn(e, t) {
1318
1320
  if (typeof e == "function")
1319
1321
  return e(t);
1320
1322
  e != null && (e.current = t);
1321
1323
  }
1322
- function or(...e) {
1324
+ function cr(...e) {
1323
1325
  return (t) => {
1324
1326
  let n = !1;
1325
1327
  const r = e.map((o) => {
1326
- const i = ln(o, t);
1328
+ const i = dn(o, t);
1327
1329
  return !n && typeof i == "function" && (n = !0), i;
1328
1330
  });
1329
1331
  if (n)
1330
1332
  return () => {
1331
1333
  for (let o = 0; o < r.length; o++) {
1332
1334
  const i = r[o];
1333
- typeof i == "function" ? i() : ln(e[o], null);
1335
+ typeof i == "function" ? i() : dn(e[o], null);
1334
1336
  }
1335
1337
  };
1336
1338
  };
1337
1339
  }
1338
- function L(...e) {
1339
- return M(or(...e), e);
1340
+ function U(...e) {
1341
+ return z(cr(...e), e);
1340
1342
  }
1341
1343
  // @__NO_SIDE_EFFECTS__
1342
- function Ye(e) {
1343
- const t = /* @__PURE__ */ Wi(e), n = P((r, o) => {
1344
- const { children: i, ...c } = r, s = K.toArray(i), a = s.find(Hi);
1344
+ function Xe(e) {
1345
+ const t = /* @__PURE__ */ Ki(e), n = O((r, o) => {
1346
+ const { children: i, ...c } = r, s = q.toArray(i), a = s.find(Gi);
1345
1347
  if (a) {
1346
- const u = a.props.children, l = s.map((d) => d === a ? K.count(u) > 1 ? K.only(null) : G(u) ? u.props.children : null : d);
1347
- return /* @__PURE__ */ p(t, { ...c, ref: o, children: G(u) ? ge(u, void 0, l) : null });
1348
+ const u = a.props.children, l = s.map((d) => d === a ? q.count(u) > 1 ? q.only(null) : X(u) ? u.props.children : null : d);
1349
+ return /* @__PURE__ */ f(t, { ...c, ref: o, children: X(u) ? ye(u, void 0, l) : null });
1348
1350
  }
1349
- return /* @__PURE__ */ p(t, { ...c, ref: o, children: i });
1351
+ return /* @__PURE__ */ f(t, { ...c, ref: o, children: i });
1350
1352
  });
1351
1353
  return n.displayName = `${e}.Slot`, n;
1352
1354
  }
1353
1355
  // @__NO_SIDE_EFFECTS__
1354
- function Wi(e) {
1355
- const t = P((n, r) => {
1356
+ function Ki(e) {
1357
+ const t = O((n, r) => {
1356
1358
  const { children: o, ...i } = n;
1357
- if (G(o)) {
1358
- const c = Vi(o), s = Zi(i, o.props);
1359
- return o.type !== W && (s.ref = r ? or(r, c) : c), ge(o, s);
1359
+ if (X(o)) {
1360
+ const c = Xi(o), s = Yi(i, o.props);
1361
+ return o.type !== B && (s.ref = r ? cr(r, c) : c), ye(o, s);
1360
1362
  }
1361
- return K.count(o) > 1 ? K.only(null) : null;
1363
+ return q.count(o) > 1 ? q.only(null) : null;
1362
1364
  });
1363
1365
  return t.displayName = `${e}.SlotClone`, t;
1364
1366
  }
1365
- var Bi = /* @__PURE__ */ Symbol("radix.slottable");
1366
- function Hi(e) {
1367
- return G(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bi;
1367
+ var qi = /* @__PURE__ */ Symbol("radix.slottable");
1368
+ function Gi(e) {
1369
+ return X(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === qi;
1368
1370
  }
1369
- function Zi(e, t) {
1371
+ function Yi(e, t) {
1370
1372
  const n = { ...t };
1371
1373
  for (const r in t) {
1372
1374
  const o = e[r], i = t[r];
@@ -1377,60 +1379,60 @@ function Zi(e, t) {
1377
1379
  }
1378
1380
  return { ...e, ...n };
1379
1381
  }
1380
- function Vi(e) {
1382
+ function Xi(e) {
1381
1383
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1382
1384
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1383
1385
  }
1384
- function Ki(e) {
1386
+ function Ji(e) {
1385
1387
  const t = e + "CollectionProvider", [n, r] = ke(t), [o, i] = n(
1386
1388
  t,
1387
1389
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1388
- ), c = (f) => {
1389
- const { scope: v, children: h } = f, y = I.useRef(null), b = I.useRef(/* @__PURE__ */ new Map()).current;
1390
- return /* @__PURE__ */ p(o, { scope: v, itemMap: b, collectionRef: y, children: h });
1390
+ ), c = (p) => {
1391
+ const { scope: h, children: y } = p, m = k.useRef(null), b = k.useRef(/* @__PURE__ */ new Map()).current;
1392
+ return /* @__PURE__ */ f(o, { scope: h, itemMap: b, collectionRef: m, children: y });
1391
1393
  };
1392
1394
  c.displayName = t;
1393
- const s = e + "CollectionSlot", a = /* @__PURE__ */ Ye(s), u = I.forwardRef(
1394
- (f, v) => {
1395
- const { scope: h, children: y } = f, b = i(s, h), C = L(v, b.collectionRef);
1396
- return /* @__PURE__ */ p(a, { ref: C, children: y });
1395
+ const s = e + "CollectionSlot", a = /* @__PURE__ */ Xe(s), u = k.forwardRef(
1396
+ (p, h) => {
1397
+ const { scope: y, children: m } = p, b = i(s, y), g = U(h, b.collectionRef);
1398
+ return /* @__PURE__ */ f(a, { ref: g, children: m });
1397
1399
  }
1398
1400
  );
1399
1401
  u.displayName = s;
1400
- const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ye(l), m = I.forwardRef(
1401
- (f, v) => {
1402
- const { scope: h, children: y, ...b } = f, C = I.useRef(null), O = L(v, C), k = i(l, h);
1403
- return I.useEffect(() => (k.itemMap.set(C, { ref: C, ...b }), () => {
1404
- k.itemMap.delete(C);
1405
- })), /* @__PURE__ */ p(_, { [d]: "", ref: O, children: y });
1402
+ const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Xe(l), v = k.forwardRef(
1403
+ (p, h) => {
1404
+ const { scope: y, children: m, ...b } = p, g = k.useRef(null), E = U(h, g), C = i(l, y);
1405
+ return k.useEffect(() => (C.itemMap.set(g, { ref: g, ...b }), () => {
1406
+ C.itemMap.delete(g);
1407
+ })), /* @__PURE__ */ f(_, { [d]: "", ref: E, children: m });
1406
1408
  }
1407
1409
  );
1408
- m.displayName = l;
1409
- function g(f) {
1410
- const v = i(e + "CollectionConsumer", f);
1411
- return I.useCallback(() => {
1412
- const y = v.collectionRef.current;
1413
- if (!y) return [];
1414
- const b = Array.from(y.querySelectorAll(`[${d}]`));
1415
- return Array.from(v.itemMap.values()).sort(
1416
- (k, w) => b.indexOf(k.ref.current) - b.indexOf(w.ref.current)
1410
+ v.displayName = l;
1411
+ function S(p) {
1412
+ const h = i(e + "CollectionConsumer", p);
1413
+ return k.useCallback(() => {
1414
+ const m = h.collectionRef.current;
1415
+ if (!m) return [];
1416
+ const b = Array.from(m.querySelectorAll(`[${d}]`));
1417
+ return Array.from(h.itemMap.values()).sort(
1418
+ (C, w) => b.indexOf(C.ref.current) - b.indexOf(w.ref.current)
1417
1419
  );
1418
- }, [v.collectionRef, v.itemMap]);
1420
+ }, [h.collectionRef, h.itemMap]);
1419
1421
  }
1420
1422
  return [
1421
- { Provider: c, Slot: u, ItemSlot: m },
1422
- g,
1423
+ { Provider: c, Slot: u, ItemSlot: v },
1424
+ S,
1423
1425
  r
1424
1426
  ];
1425
1427
  }
1426
- function j(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1428
+ function W(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1427
1429
  return function(o) {
1428
1430
  if (e?.(o), n === !1 || !o.defaultPrevented)
1429
1431
  return t?.(o);
1430
1432
  };
1431
1433
  }
1432
- var me = globalThis?.document ? te : () => {
1433
- }, qi = qn[" useInsertionEffect ".trim().toString()] || me;
1434
+ var ue = globalThis?.document ? oe : () => {
1435
+ }, Qi = Xn[" useInsertionEffect ".trim().toString()] || ue;
1434
1436
  function De({
1435
1437
  prop: e,
1436
1438
  defaultProp: t,
@@ -1438,23 +1440,23 @@ function De({
1438
1440
  },
1439
1441
  caller: r
1440
1442
  }) {
1441
- const [o, i, c] = Gi({
1443
+ const [o, i, c] = es({
1442
1444
  defaultProp: t,
1443
1445
  onChange: n
1444
1446
  }), s = e !== void 0, a = s ? e : o;
1445
1447
  {
1446
- const l = S(e !== void 0);
1447
- E(() => {
1448
+ const l = P(e !== void 0);
1449
+ N(() => {
1448
1450
  const d = l.current;
1449
1451
  d !== s && console.warn(
1450
1452
  `${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
1451
1453
  ), l.current = s;
1452
1454
  }, [s, r]);
1453
1455
  }
1454
- const u = M(
1456
+ const u = z(
1455
1457
  (l) => {
1456
1458
  if (s) {
1457
- const d = Yi(l) ? l(e) : l;
1459
+ const d = ts(l) ? l(e) : l;
1458
1460
  d !== e && c.current?.(d);
1459
1461
  } else
1460
1462
  i(l);
@@ -1463,21 +1465,21 @@ function De({
1463
1465
  );
1464
1466
  return [a, u];
1465
1467
  }
1466
- function Gi({
1468
+ function es({
1467
1469
  defaultProp: e,
1468
1470
  onChange: t
1469
1471
  }) {
1470
- const [n, r] = R(e), o = S(n), i = S(t);
1471
- return qi(() => {
1472
+ const [n, r] = I(e), o = P(n), i = P(t);
1473
+ return Qi(() => {
1472
1474
  i.current = t;
1473
- }, [t]), E(() => {
1475
+ }, [t]), N(() => {
1474
1476
  o.current !== n && (i.current?.(n), o.current = n);
1475
1477
  }, [n, o]), [n, r, i];
1476
1478
  }
1477
- function Yi(e) {
1479
+ function ts(e) {
1478
1480
  return typeof e == "function";
1479
1481
  }
1480
- var Xi = [
1482
+ var ns = [
1481
1483
  "a",
1482
1484
  "button",
1483
1485
  "div",
@@ -1495,26 +1497,26 @@ var Xi = [
1495
1497
  "span",
1496
1498
  "svg",
1497
1499
  "ul"
1498
- ], $ = Xi.reduce((e, t) => {
1499
- const n = /* @__PURE__ */ Ye(`Primitive.${t}`), r = P((o, i) => {
1500
+ ], L = ns.reduce((e, t) => {
1501
+ const n = /* @__PURE__ */ Xe(`Primitive.${t}`), r = O((o, i) => {
1500
1502
  const { asChild: c, ...s } = o, a = c ? n : t;
1501
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(a, { ...s, ref: i });
1503
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(a, { ...s, ref: i });
1502
1504
  });
1503
1505
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1504
1506
  }, {});
1505
- function Ji(e, t) {
1507
+ function rs(e, t) {
1506
1508
  e && kt(() => e.dispatchEvent(t));
1507
1509
  }
1508
- function Qi(e, t) {
1510
+ function os(e, t) {
1509
1511
  return Te((n, r) => t[n][r] ?? n, e);
1510
1512
  }
1511
- var et = (e) => {
1512
- const { present: t, children: n } = e, r = es(t), o = typeof n == "function" ? n({ present: r.isPresent }) : K.only(n), i = L(r.ref, ts(o));
1513
- return typeof n == "function" || r.isPresent ? ge(o, { ref: i }) : null;
1513
+ var xe = (e) => {
1514
+ const { present: t, children: n } = e, r = is(t), o = typeof n == "function" ? n({ present: r.isPresent }) : q.only(n), i = U(r.ref, ss(o));
1515
+ return typeof n == "function" || r.isPresent ? ye(o, { ref: i }) : null;
1514
1516
  };
1515
- et.displayName = "Presence";
1516
- function es(e) {
1517
- const [t, n] = R(), r = S(null), o = S(e), i = S("none"), c = e ? "mounted" : "unmounted", [s, a] = Qi(c, {
1517
+ xe.displayName = "Presence";
1518
+ function is(e) {
1519
+ const [t, n] = I(), r = P(null), o = P(e), i = P("none"), c = e ? "mounted" : "unmounted", [s, a] = os(c, {
1518
1520
  mounted: {
1519
1521
  UNMOUNT: "unmounted",
1520
1522
  ANIMATION_OUT: "unmountSuspended"
@@ -1527,28 +1529,28 @@ function es(e) {
1527
1529
  MOUNT: "mounted"
1528
1530
  }
1529
1531
  });
1530
- return E(() => {
1531
- const u = $e(r.current);
1532
+ return N(() => {
1533
+ const u = Le(r.current);
1532
1534
  i.current = s === "mounted" ? u : "none";
1533
- }, [s]), me(() => {
1535
+ }, [s]), ue(() => {
1534
1536
  const u = r.current, l = o.current;
1535
1537
  if (l !== e) {
1536
- const _ = i.current, m = $e(u);
1537
- e ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1538
+ const _ = i.current, v = Le(u);
1539
+ e ? a("MOUNT") : v === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== v ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1538
1540
  }
1539
- }, [e, a]), me(() => {
1541
+ }, [e, a]), ue(() => {
1540
1542
  if (t) {
1541
1543
  let u;
1542
- const l = t.ownerDocument.defaultView ?? window, d = (m) => {
1543
- const f = $e(r.current).includes(CSS.escape(m.animationName));
1544
- if (m.target === t && f && (a("ANIMATION_END"), !o.current)) {
1545
- const v = t.style.animationFillMode;
1544
+ const l = t.ownerDocument.defaultView ?? window, d = (v) => {
1545
+ const p = Le(r.current).includes(CSS.escape(v.animationName));
1546
+ if (v.target === t && p && (a("ANIMATION_END"), !o.current)) {
1547
+ const h = t.style.animationFillMode;
1546
1548
  t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
1547
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
1549
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
1548
1550
  });
1549
1551
  }
1550
- }, _ = (m) => {
1551
- m.target === t && (i.current = $e(r.current));
1552
+ }, _ = (v) => {
1553
+ v.target === t && (i.current = Le(r.current));
1552
1554
  };
1553
1555
  return t.addEventListener("animationstart", _), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
1554
1556
  l.clearTimeout(u), t.removeEventListener("animationstart", _), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
@@ -1557,27 +1559,27 @@ function es(e) {
1557
1559
  a("ANIMATION_END");
1558
1560
  }, [t, a]), {
1559
1561
  isPresent: ["mounted", "unmountSuspended"].includes(s),
1560
- ref: M((u) => {
1562
+ ref: z((u) => {
1561
1563
  r.current = u ? getComputedStyle(u) : null, n(u);
1562
1564
  }, [])
1563
1565
  };
1564
1566
  }
1565
- function $e(e) {
1567
+ function Le(e) {
1566
1568
  return e?.animationName || "none";
1567
1569
  }
1568
- function ts(e) {
1570
+ function ss(e) {
1569
1571
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1570
1572
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1571
1573
  }
1572
- var ns = qn[" useId ".trim().toString()] || (() => {
1573
- }), rs = 0;
1574
+ var cs = Xn[" useId ".trim().toString()] || (() => {
1575
+ }), as = 0;
1574
1576
  function Oe(e) {
1575
- const [t, n] = R(ns());
1576
- return me(() => {
1577
- n((r) => r ?? String(rs++));
1577
+ const [t, n] = I(cs());
1578
+ return ue(() => {
1579
+ n((r) => r ?? String(as++));
1578
1580
  }, [e]), e || (t ? `radix-${t}` : "");
1579
1581
  }
1580
- var tt = "Collapsible", [os, ir] = ke(tt), [is, Dt] = os(tt), sr = P(
1582
+ var tt = "Collapsible", [us, ar] = ke(tt), [ls, Dt] = us(tt), ur = O(
1581
1583
  (e, t) => {
1582
1584
  const {
1583
1585
  __scopeCollapsible: n,
@@ -1592,16 +1594,16 @@ var tt = "Collapsible", [os, ir] = ke(tt), [is, Dt] = os(tt), sr = P(
1592
1594
  onChange: c,
1593
1595
  caller: tt
1594
1596
  });
1595
- return /* @__PURE__ */ p(
1596
- is,
1597
+ return /* @__PURE__ */ f(
1598
+ ls,
1597
1599
  {
1598
1600
  scope: n,
1599
1601
  disabled: i,
1600
1602
  contentId: Oe(),
1601
1603
  open: a,
1602
- onOpenToggle: M(() => u((l) => !l), [u]),
1603
- children: /* @__PURE__ */ p(
1604
- $.div,
1604
+ onOpenToggle: z(() => u((l) => !l), [u]),
1605
+ children: /* @__PURE__ */ f(
1606
+ L.div,
1605
1607
  {
1606
1608
  "data-state": Mt(a),
1607
1609
  "data-disabled": i ? "" : void 0,
@@ -1613,12 +1615,12 @@ var tt = "Collapsible", [os, ir] = ke(tt), [is, Dt] = os(tt), sr = P(
1613
1615
  );
1614
1616
  }
1615
1617
  );
1616
- sr.displayName = tt;
1617
- var cr = "CollapsibleTrigger", ar = P(
1618
+ ur.displayName = tt;
1619
+ var lr = "CollapsibleTrigger", dr = O(
1618
1620
  (e, t) => {
1619
- const { __scopeCollapsible: n, ...r } = e, o = Dt(cr, n);
1620
- return /* @__PURE__ */ p(
1621
- $.button,
1621
+ const { __scopeCollapsible: n, ...r } = e, o = Dt(lr, n);
1622
+ return /* @__PURE__ */ f(
1623
+ L.button,
1622
1624
  {
1623
1625
  type: "button",
1624
1626
  "aria-controls": o.contentId,
@@ -1628,74 +1630,74 @@ var cr = "CollapsibleTrigger", ar = P(
1628
1630
  disabled: o.disabled,
1629
1631
  ...r,
1630
1632
  ref: t,
1631
- onClick: j(e.onClick, o.onOpenToggle)
1633
+ onClick: W(e.onClick, o.onOpenToggle)
1632
1634
  }
1633
1635
  );
1634
1636
  }
1635
1637
  );
1636
- ar.displayName = cr;
1637
- var xt = "CollapsibleContent", ur = P(
1638
+ dr.displayName = lr;
1639
+ var xt = "CollapsibleContent", fr = O(
1638
1640
  (e, t) => {
1639
1641
  const { forceMount: n, ...r } = e, o = Dt(xt, e.__scopeCollapsible);
1640
- return /* @__PURE__ */ p(et, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ p(ss, { ...r, ref: t, present: i }) });
1642
+ return /* @__PURE__ */ f(xe, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ f(ds, { ...r, ref: t, present: i }) });
1641
1643
  }
1642
1644
  );
1643
- ur.displayName = xt;
1644
- var ss = P((e, t) => {
1645
- const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] = R(r), u = S(null), l = L(t, u), d = S(0), _ = d.current, m = S(0), g = m.current, f = c.open || s, v = S(f), h = S(void 0);
1646
- return E(() => {
1647
- const y = requestAnimationFrame(() => v.current = !1);
1648
- return () => cancelAnimationFrame(y);
1649
- }, []), me(() => {
1650
- const y = u.current;
1651
- if (y) {
1652
- h.current = h.current || {
1653
- transitionDuration: y.style.transitionDuration,
1654
- animationName: y.style.animationName
1655
- }, y.style.transitionDuration = "0s", y.style.animationName = "none";
1656
- const b = y.getBoundingClientRect();
1657
- d.current = b.height, m.current = b.width, v.current || (y.style.transitionDuration = h.current.transitionDuration, y.style.animationName = h.current.animationName), a(r);
1645
+ fr.displayName = xt;
1646
+ var ds = O((e, t) => {
1647
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] = I(r), u = P(null), l = U(t, u), d = P(0), _ = d.current, v = P(0), S = v.current, p = c.open || s, h = P(p), y = P(void 0);
1648
+ return N(() => {
1649
+ const m = requestAnimationFrame(() => h.current = !1);
1650
+ return () => cancelAnimationFrame(m);
1651
+ }, []), ue(() => {
1652
+ const m = u.current;
1653
+ if (m) {
1654
+ y.current = y.current || {
1655
+ transitionDuration: m.style.transitionDuration,
1656
+ animationName: m.style.animationName
1657
+ }, m.style.transitionDuration = "0s", m.style.animationName = "none";
1658
+ const b = m.getBoundingClientRect();
1659
+ d.current = b.height, v.current = b.width, h.current || (m.style.transitionDuration = y.current.transitionDuration, m.style.animationName = y.current.animationName), a(r);
1658
1660
  }
1659
- }, [c.open, r]), /* @__PURE__ */ p(
1660
- $.div,
1661
+ }, [c.open, r]), /* @__PURE__ */ f(
1662
+ L.div,
1661
1663
  {
1662
1664
  "data-state": Mt(c.open),
1663
1665
  "data-disabled": c.disabled ? "" : void 0,
1664
1666
  id: c.contentId,
1665
- hidden: !f,
1667
+ hidden: !p,
1666
1668
  ...i,
1667
1669
  ref: l,
1668
1670
  style: {
1669
1671
  "--radix-collapsible-content-height": _ ? `${_}px` : void 0,
1670
- "--radix-collapsible-content-width": g ? `${g}px` : void 0,
1672
+ "--radix-collapsible-content-width": S ? `${S}px` : void 0,
1671
1673
  ...e.style
1672
1674
  },
1673
- children: f && o
1675
+ children: p && o
1674
1676
  }
1675
1677
  );
1676
1678
  });
1677
1679
  function Mt(e) {
1678
1680
  return e ? "open" : "closed";
1679
1681
  }
1680
- var lr = sr, dr = ar, fr = ur, cs = ee(void 0);
1681
- function as(e) {
1682
- const t = Y(cs);
1682
+ var pr = ur, _r = dr, vr = fr, fs = re(void 0);
1683
+ function ps(e) {
1684
+ const t = J(fs);
1683
1685
  return e || t || "ltr";
1684
1686
  }
1685
- var B = "Accordion", us = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [zt, ls, ds] = Ki(B), [nt] = ke(B, [
1686
- ds,
1687
- ir
1688
- ]), $t = ir(), pr = I.forwardRef(
1687
+ var H = "Accordion", _s = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [zt, vs, hs] = Ji(H), [nt] = ke(H, [
1688
+ hs,
1689
+ ar
1690
+ ]), $t = ar(), hr = k.forwardRef(
1689
1691
  (e, t) => {
1690
1692
  const { type: n, ...r } = e, o = r, i = r;
1691
- return /* @__PURE__ */ p(zt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ p(vs, { ...i, ref: t }) : /* @__PURE__ */ p(_s, { ...o, ref: t }) });
1693
+ return /* @__PURE__ */ f(zt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ f(bs, { ...i, ref: t }) : /* @__PURE__ */ f(ys, { ...o, ref: t }) });
1692
1694
  }
1693
1695
  );
1694
- pr.displayName = B;
1695
- var [_r, fs] = nt(B), [vr, ps] = nt(
1696
- B,
1696
+ hr.displayName = H;
1697
+ var [mr, ms] = nt(H), [gr, gs] = nt(
1698
+ H,
1697
1699
  { collapsible: !1 }
1698
- ), _s = I.forwardRef(
1700
+ ), ys = k.forwardRef(
1699
1701
  (e, t) => {
1700
1702
  const {
1701
1703
  value: n,
@@ -1708,20 +1710,20 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
1708
1710
  prop: n,
1709
1711
  defaultProp: r ?? "",
1710
1712
  onChange: o,
1711
- caller: B
1713
+ caller: H
1712
1714
  });
1713
- return /* @__PURE__ */ p(
1714
- _r,
1715
+ return /* @__PURE__ */ f(
1716
+ mr,
1715
1717
  {
1716
1718
  scope: e.__scopeAccordion,
1717
- value: I.useMemo(() => s ? [s] : [], [s]),
1719
+ value: k.useMemo(() => s ? [s] : [], [s]),
1718
1720
  onItemOpen: a,
1719
- onItemClose: I.useCallback(() => i && a(""), [i, a]),
1720
- children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ p(hr, { ...c, ref: t }) })
1721
+ onItemClose: k.useCallback(() => i && a(""), [i, a]),
1722
+ children: /* @__PURE__ */ f(gr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ f(yr, { ...c, ref: t }) })
1721
1723
  }
1722
1724
  );
1723
1725
  }
1724
- ), vs = I.forwardRef((e, t) => {
1726
+ ), bs = k.forwardRef((e, t) => {
1725
1727
  const {
1726
1728
  value: n,
1727
1729
  defaultValue: r,
@@ -1732,69 +1734,69 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
1732
1734
  prop: n,
1733
1735
  defaultProp: r ?? [],
1734
1736
  onChange: o,
1735
- caller: B
1736
- }), a = I.useCallback(
1737
+ caller: H
1738
+ }), a = k.useCallback(
1737
1739
  (l) => s((d = []) => [...d, l]),
1738
1740
  [s]
1739
- ), u = I.useCallback(
1741
+ ), u = k.useCallback(
1740
1742
  (l) => s((d = []) => d.filter((_) => _ !== l)),
1741
1743
  [s]
1742
1744
  );
1743
- return /* @__PURE__ */ p(
1744
- _r,
1745
+ return /* @__PURE__ */ f(
1746
+ mr,
1745
1747
  {
1746
1748
  scope: e.__scopeAccordion,
1747
1749
  value: c,
1748
1750
  onItemOpen: a,
1749
1751
  onItemClose: u,
1750
- children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ p(hr, { ...i, ref: t }) })
1752
+ children: /* @__PURE__ */ f(gr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ f(yr, { ...i, ref: t }) })
1751
1753
  }
1752
1754
  );
1753
- }), [hs, rt] = nt(B), hr = I.forwardRef(
1755
+ }), [Cs, rt] = nt(H), yr = k.forwardRef(
1754
1756
  (e, t) => {
1755
- const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s = I.useRef(null), a = L(s, t), u = ls(n), d = as(o) === "ltr", _ = j(e.onKeyDown, (m) => {
1756
- if (!us.includes(m.key)) return;
1757
- const g = m.target, f = u().filter((F) => !F.ref.current?.disabled), v = f.findIndex((F) => F.ref.current === g), h = f.length;
1758
- if (v === -1) return;
1759
- m.preventDefault();
1760
- let y = v;
1761
- const b = 0, C = h - 1, O = () => {
1762
- y = v + 1, y > C && (y = b);
1763
- }, k = () => {
1764
- y = v - 1, y < b && (y = C);
1757
+ const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s = k.useRef(null), a = U(s, t), u = vs(n), d = ps(o) === "ltr", _ = W(e.onKeyDown, (v) => {
1758
+ if (!_s.includes(v.key)) return;
1759
+ const S = v.target, p = u().filter((R) => !R.ref.current?.disabled), h = p.findIndex((R) => R.ref.current === S), y = p.length;
1760
+ if (h === -1) return;
1761
+ v.preventDefault();
1762
+ let m = h;
1763
+ const b = 0, g = y - 1, E = () => {
1764
+ m = h + 1, m > g && (m = b);
1765
+ }, C = () => {
1766
+ m = h - 1, m < b && (m = g);
1765
1767
  };
1766
- switch (m.key) {
1768
+ switch (v.key) {
1767
1769
  case "Home":
1768
- y = b;
1770
+ m = b;
1769
1771
  break;
1770
1772
  case "End":
1771
- y = C;
1773
+ m = g;
1772
1774
  break;
1773
1775
  case "ArrowRight":
1774
- i === "horizontal" && (d ? O() : k());
1776
+ i === "horizontal" && (d ? E() : C());
1775
1777
  break;
1776
1778
  case "ArrowDown":
1777
- i === "vertical" && O();
1779
+ i === "vertical" && E();
1778
1780
  break;
1779
1781
  case "ArrowLeft":
1780
- i === "horizontal" && (d ? k() : O());
1782
+ i === "horizontal" && (d ? C() : E());
1781
1783
  break;
1782
1784
  case "ArrowUp":
1783
- i === "vertical" && k();
1785
+ i === "vertical" && C();
1784
1786
  break;
1785
1787
  }
1786
- const w = y % h;
1787
- f[w].ref.current?.focus();
1788
+ const w = m % y;
1789
+ p[w].ref.current?.focus();
1788
1790
  });
1789
- return /* @__PURE__ */ p(
1790
- hs,
1791
+ return /* @__PURE__ */ f(
1792
+ Cs,
1791
1793
  {
1792
1794
  scope: n,
1793
1795
  disabled: r,
1794
1796
  direction: o,
1795
1797
  orientation: i,
1796
- children: /* @__PURE__ */ p(zt.Slot, { scope: n, children: /* @__PURE__ */ p(
1797
- $.div,
1798
+ children: /* @__PURE__ */ f(zt.Slot, { scope: n, children: /* @__PURE__ */ f(
1799
+ L.div,
1798
1800
  {
1799
1801
  ...c,
1800
1802
  "data-orientation": i,
@@ -1805,21 +1807,21 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
1805
1807
  }
1806
1808
  );
1807
1809
  }
1808
- ), Xe = "AccordionItem", [ms, Lt] = nt(Xe), mr = I.forwardRef(
1810
+ ), Je = "AccordionItem", [Ss, Lt] = nt(Je), br = k.forwardRef(
1809
1811
  (e, t) => {
1810
- const { __scopeAccordion: n, value: r, ...o } = e, i = rt(Xe, n), c = fs(Xe, n), s = $t(n), a = Oe(), u = r && c.value.includes(r) || !1, l = i.disabled || e.disabled;
1811
- return /* @__PURE__ */ p(
1812
- ms,
1812
+ const { __scopeAccordion: n, value: r, ...o } = e, i = rt(Je, n), c = ms(Je, n), s = $t(n), a = Oe(), u = r && c.value.includes(r) || !1, l = i.disabled || e.disabled;
1813
+ return /* @__PURE__ */ f(
1814
+ Ss,
1813
1815
  {
1814
1816
  scope: n,
1815
1817
  open: u,
1816
1818
  disabled: l,
1817
1819
  triggerId: a,
1818
- children: /* @__PURE__ */ p(
1819
- lr,
1820
+ children: /* @__PURE__ */ f(
1821
+ pr,
1820
1822
  {
1821
1823
  "data-orientation": i.orientation,
1822
- "data-state": Sr(u),
1824
+ "data-state": Pr(u),
1823
1825
  ...s,
1824
1826
  ...o,
1825
1827
  ref: t,
@@ -1834,15 +1836,15 @@ var [_r, fs] = nt(B), [vr, ps] = nt(
1834
1836
  );
1835
1837
  }
1836
1838
  );
1837
- mr.displayName = Xe;
1838
- var gr = "AccordionHeader", gs = I.forwardRef(
1839
+ br.displayName = Je;
1840
+ var Cr = "AccordionHeader", ws = k.forwardRef(
1839
1841
  (e, t) => {
1840
- const { __scopeAccordion: n, ...r } = e, o = rt(B, n), i = Lt(gr, n);
1841
- return /* @__PURE__ */ p(
1842
- $.h3,
1842
+ const { __scopeAccordion: n, ...r } = e, o = rt(H, n), i = Lt(Cr, n);
1843
+ return /* @__PURE__ */ f(
1844
+ L.h3,
1843
1845
  {
1844
1846
  "data-orientation": o.orientation,
1845
- "data-state": Sr(i.open),
1847
+ "data-state": Pr(i.open),
1846
1848
  "data-disabled": i.disabled ? "" : void 0,
1847
1849
  ...r,
1848
1850
  ref: t
@@ -1850,12 +1852,12 @@ var gr = "AccordionHeader", gs = I.forwardRef(
1850
1852
  );
1851
1853
  }
1852
1854
  );
1853
- gs.displayName = gr;
1854
- var yt = "AccordionTrigger", yr = I.forwardRef(
1855
+ ws.displayName = Cr;
1856
+ var yt = "AccordionTrigger", Sr = k.forwardRef(
1855
1857
  (e, t) => {
1856
- const { __scopeAccordion: n, ...r } = e, o = rt(B, n), i = Lt(yt, n), c = ps(yt, n), s = $t(n);
1857
- return /* @__PURE__ */ p(zt.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
1858
- dr,
1858
+ const { __scopeAccordion: n, ...r } = e, o = rt(H, n), i = Lt(yt, n), c = gs(yt, n), s = $t(n);
1859
+ return /* @__PURE__ */ f(zt.ItemSlot, { scope: n, children: /* @__PURE__ */ f(
1860
+ _r,
1859
1861
  {
1860
1862
  "aria-disabled": i.open && !c.collapsible || void 0,
1861
1863
  "data-orientation": o.orientation,
@@ -1867,12 +1869,12 @@ var yt = "AccordionTrigger", yr = I.forwardRef(
1867
1869
  ) });
1868
1870
  }
1869
1871
  );
1870
- yr.displayName = yt;
1871
- var br = "AccordionContent", Cr = I.forwardRef(
1872
+ Sr.displayName = yt;
1873
+ var wr = "AccordionContent", Er = k.forwardRef(
1872
1874
  (e, t) => {
1873
- const { __scopeAccordion: n, ...r } = e, o = rt(B, n), i = Lt(br, n), c = $t(n);
1874
- return /* @__PURE__ */ p(
1875
- fr,
1875
+ const { __scopeAccordion: n, ...r } = e, o = rt(H, n), i = Lt(wr, n), c = $t(n);
1876
+ return /* @__PURE__ */ f(
1877
+ vr,
1876
1878
  {
1877
1879
  role: "region",
1878
1880
  "aria-labelledby": i.triggerId,
@@ -1889,22 +1891,22 @@ var br = "AccordionContent", Cr = I.forwardRef(
1889
1891
  );
1890
1892
  }
1891
1893
  );
1892
- Cr.displayName = br;
1893
- function Sr(e) {
1894
+ Er.displayName = wr;
1895
+ function Pr(e) {
1894
1896
  return e ? "open" : "closed";
1895
1897
  }
1896
- var ys = pr, bs = mr, dn = yr, Cs = Cr;
1897
- const wr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1898
- const Ss = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1899
- const ws = (e) => e.replace(
1898
+ var Es = hr, Ps = br, fn = Sr, Ns = Er;
1899
+ const Nr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1900
+ const Os = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1901
+ const As = (e) => e.replace(
1900
1902
  /^([A-Z])|[\s-_]+(\w)/g,
1901
1903
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
1902
1904
  );
1903
- const fn = (e) => {
1904
- const t = ws(e);
1905
+ const pn = (e) => {
1906
+ const t = As(e);
1905
1907
  return t.charAt(0).toUpperCase() + t.slice(1);
1906
1908
  };
1907
- var Es = {
1909
+ var Rs = {
1908
1910
  xmlns: "http://www.w3.org/2000/svg",
1909
1911
  width: 24,
1910
1912
  height: 24,
@@ -1915,13 +1917,13 @@ var Es = {
1915
1917
  strokeLinecap: "round",
1916
1918
  strokeLinejoin: "round"
1917
1919
  };
1918
- const Ps = (e) => {
1920
+ const Is = (e) => {
1919
1921
  for (const t in e)
1920
1922
  if (t.startsWith("aria-") || t === "role" || t === "title")
1921
1923
  return !0;
1922
1924
  return !1;
1923
1925
  };
1924
- const Ns = P(
1926
+ const Ts = O(
1925
1927
  ({
1926
1928
  color: e = "currentColor",
1927
1929
  size: t = 24,
@@ -1931,49 +1933,49 @@ const Ns = P(
1931
1933
  children: i,
1932
1934
  iconNode: c,
1933
1935
  ...s
1934
- }, a) => T(
1936
+ }, a) => D(
1935
1937
  "svg",
1936
1938
  {
1937
1939
  ref: a,
1938
- ...Es,
1940
+ ...Rs,
1939
1941
  width: t,
1940
1942
  height: t,
1941
1943
  stroke: e,
1942
1944
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
1943
- className: wr("lucide", o),
1944
- ...!i && !Ps(s) && { "aria-hidden": "true" },
1945
+ className: Nr("lucide", o),
1946
+ ...!i && !Is(s) && { "aria-hidden": "true" },
1945
1947
  ...s
1946
1948
  },
1947
1949
  [
1948
- ...c.map(([u, l]) => T(u, l)),
1950
+ ...c.map(([u, l]) => D(u, l)),
1949
1951
  ...Array.isArray(i) ? i : [i]
1950
1952
  ]
1951
1953
  )
1952
1954
  );
1953
- const Er = (e, t) => {
1954
- const n = P(
1955
- ({ className: r, ...o }, i) => T(Ns, {
1955
+ const Or = (e, t) => {
1956
+ const n = O(
1957
+ ({ className: r, ...o }, i) => D(Ts, {
1956
1958
  ref: i,
1957
1959
  iconNode: t,
1958
- className: wr(
1959
- `lucide-${Ss(fn(e))}`,
1960
+ className: Nr(
1961
+ `lucide-${Os(pn(e))}`,
1960
1962
  `lucide-${e}`,
1961
1963
  r
1962
1964
  ),
1963
1965
  ...o
1964
1966
  })
1965
1967
  );
1966
- return n.displayName = fn(e), n;
1968
+ return n.displayName = pn(e), n;
1967
1969
  };
1968
- const Os = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], As = Er("chevron-down", Os);
1969
- const Rs = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Is = Er("chevron-up", Rs);
1970
- function Ts(e) {
1971
- const t = S({ value: e, previous: e });
1972
- return D(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1973
- }
1974
- function ks(e) {
1975
- const [t, n] = R(void 0);
1976
- return me(() => {
1970
+ const ks = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ds = Or("chevron-down", ks);
1971
+ const xs = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ms = Or("chevron-up", xs);
1972
+ function zs(e) {
1973
+ const t = P({ value: e, previous: e });
1974
+ return x(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1975
+ }
1976
+ function $s(e) {
1977
+ const [t, n] = I(void 0);
1978
+ return ue(() => {
1977
1979
  if (e) {
1978
1980
  n({ width: e.offsetWidth, height: e.offsetHeight });
1979
1981
  const r = new ResizeObserver((o) => {
@@ -1993,7 +1995,7 @@ function ks(e) {
1993
1995
  n(void 0);
1994
1996
  }, [e]), t;
1995
1997
  }
1996
- var ot = "Switch", [Ds] = ke(ot), [xs, Ms] = Ds(ot), Pr = P(
1998
+ var ot = "Switch", [Ls] = ke(ot), [Fs, Us] = Ls(ot), Ar = O(
1997
1999
  (e, t) => {
1998
2000
  const {
1999
2001
  __scopeSwitch: n,
@@ -2006,39 +2008,39 @@ var ot = "Switch", [Ds] = ke(ot), [xs, Ms] = Ds(ot), Pr = P(
2006
2008
  onCheckedChange: u,
2007
2009
  form: l,
2008
2010
  ...d
2009
- } = e, [_, m] = R(null), g = L(t, (b) => m(b)), f = S(!1), v = _ ? l || !!_.closest("form") : !0, [h, y] = De({
2011
+ } = e, [_, v] = I(null), S = U(t, (b) => v(b)), p = P(!1), h = _ ? l || !!_.closest("form") : !0, [y, m] = De({
2010
2012
  prop: o,
2011
2013
  defaultProp: i ?? !1,
2012
2014
  onChange: u,
2013
2015
  caller: ot
2014
2016
  });
2015
- return /* @__PURE__ */ p(xs, { scope: n, checked: h, disabled: s, children: [
2016
- /* @__PURE__ */ p(
2017
- $.button,
2017
+ return /* @__PURE__ */ f(Fs, { scope: n, checked: y, disabled: s, children: [
2018
+ /* @__PURE__ */ f(
2019
+ L.button,
2018
2020
  {
2019
2021
  type: "button",
2020
2022
  role: "switch",
2021
- "aria-checked": h,
2023
+ "aria-checked": y,
2022
2024
  "aria-required": c,
2023
- "data-state": Rr(h),
2025
+ "data-state": kr(y),
2024
2026
  "data-disabled": s ? "" : void 0,
2025
2027
  disabled: s,
2026
2028
  value: a,
2027
2029
  ...d,
2028
- ref: g,
2029
- onClick: j(e.onClick, (b) => {
2030
- y((C) => !C), v && (f.current = b.isPropagationStopped(), f.current || b.stopPropagation());
2030
+ ref: S,
2031
+ onClick: W(e.onClick, (b) => {
2032
+ m((g) => !g), h && (p.current = b.isPropagationStopped(), p.current || b.stopPropagation());
2031
2033
  })
2032
2034
  }
2033
2035
  ),
2034
- v && /* @__PURE__ */ p(
2035
- Ar,
2036
+ h && /* @__PURE__ */ f(
2037
+ Tr,
2036
2038
  {
2037
2039
  control: _,
2038
- bubbles: !f.current,
2040
+ bubbles: !p.current,
2039
2041
  name: r,
2040
2042
  value: a,
2041
- checked: h,
2043
+ checked: y,
2042
2044
  required: c,
2043
2045
  disabled: s,
2044
2046
  form: l,
@@ -2048,14 +2050,14 @@ var ot = "Switch", [Ds] = ke(ot), [xs, Ms] = Ds(ot), Pr = P(
2048
2050
  ] });
2049
2051
  }
2050
2052
  );
2051
- Pr.displayName = ot;
2052
- var Nr = "SwitchThumb", Or = P(
2053
+ Ar.displayName = ot;
2054
+ var Rr = "SwitchThumb", Ir = O(
2053
2055
  (e, t) => {
2054
- const { __scopeSwitch: n, ...r } = e, o = Ms(Nr, n);
2055
- return /* @__PURE__ */ p(
2056
- $.span,
2056
+ const { __scopeSwitch: n, ...r } = e, o = Us(Rr, n);
2057
+ return /* @__PURE__ */ f(
2058
+ L.span,
2057
2059
  {
2058
- "data-state": Rr(o.checked),
2060
+ "data-state": kr(o.checked),
2059
2061
  "data-disabled": o.disabled ? "" : void 0,
2060
2062
  ...r,
2061
2063
  ref: t
@@ -2063,8 +2065,8 @@ var Nr = "SwitchThumb", Or = P(
2063
2065
  );
2064
2066
  }
2065
2067
  );
2066
- Or.displayName = Nr;
2067
- var zs = "SwitchBubbleInput", Ar = P(
2068
+ Ir.displayName = Rr;
2069
+ var js = "SwitchBubbleInput", Tr = O(
2068
2070
  ({
2069
2071
  __scopeSwitch: e,
2070
2072
  control: t,
@@ -2072,19 +2074,19 @@ var zs = "SwitchBubbleInput", Ar = P(
2072
2074
  bubbles: r = !0,
2073
2075
  ...o
2074
2076
  }, i) => {
2075
- const c = S(null), s = L(c, i), a = Ts(n), u = ks(t);
2076
- return E(() => {
2077
+ const c = P(null), s = U(c, i), a = zs(n), u = $s(t);
2078
+ return N(() => {
2077
2079
  const l = c.current;
2078
2080
  if (!l) return;
2079
- const d = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
2081
+ const d = window.HTMLInputElement.prototype, v = Object.getOwnPropertyDescriptor(
2080
2082
  d,
2081
2083
  "checked"
2082
2084
  ).set;
2083
- if (a !== n && m) {
2084
- const g = new Event("click", { bubbles: r });
2085
- m.call(l, n), l.dispatchEvent(g);
2085
+ if (a !== n && v) {
2086
+ const S = new Event("click", { bubbles: r });
2087
+ v.call(l, n), l.dispatchEvent(S);
2086
2088
  }
2087
- }, [a, n, r]), /* @__PURE__ */ p(
2089
+ }, [a, n, r]), /* @__PURE__ */ f(
2088
2090
  "input",
2089
2091
  {
2090
2092
  type: "checkbox",
@@ -2105,118 +2107,157 @@ var zs = "SwitchBubbleInput", Ar = P(
2105
2107
  );
2106
2108
  }
2107
2109
  );
2108
- Ar.displayName = zs;
2109
- function Rr(e) {
2110
+ Tr.displayName = js;
2111
+ function kr(e) {
2110
2112
  return e ? "checked" : "unchecked";
2111
2113
  }
2112
- var $s = Pr, Ls = Or;
2113
- const Fs = "_root_dibqz_1", Us = "_thumb_dibqz_38", Le = {
2114
- root: Fs,
2114
+ var Ws = Ar, Bs = Ir;
2115
+ const Hs = "_root_dibqz_1", Zs = "_thumb_dibqz_38", Fe = {
2116
+ root: Hs,
2115
2117
  switch: "_switch_dibqz_8",
2116
- thumb: Us
2117
- }, js = ({ label: e, id: t, ...n }) => /* @__PURE__ */ p("div", { className: Le.root, children: [
2118
- e && /* @__PURE__ */ p(ie, { className: Le.label, as: "label", htmlFor: t, children: e }),
2119
- /* @__PURE__ */ p($s, { className: Le.switch, ...n, children: /* @__PURE__ */ p(Ls, { className: Le.thumb }) })
2120
- ] }), Ws = /* @__PURE__ */ xi(/* @__PURE__ */ oe(), /* @__PURE__ */ Re()), Ir = ee(null), Bs = ({
2118
+ thumb: Zs
2119
+ }, Vs = ({ label: e, id: t, ...n }) => /* @__PURE__ */ f("div", { className: Fe.root, children: [
2120
+ e && /* @__PURE__ */ f(ce, { className: Fe.label, as: "label", htmlFor: t, children: e }),
2121
+ /* @__PURE__ */ f(Ws, { className: Fe.switch, ...n, children: /* @__PURE__ */ f(Bs, { className: Fe.thumb }) })
2122
+ ] }), Ks = /* @__PURE__ */ Fi(/* @__PURE__ */ G(), /* @__PURE__ */ Re());
2123
+ class _n {
2124
+ #t;
2125
+ #e;
2126
+ #n;
2127
+ #r;
2128
+ constructor(t) {
2129
+ this.#t = t.domain, this.#e = t.prefix ?? "us-cookie-banner-", this.#n = t.sameSite ?? "lax", this.#r = t.secure ?? !0;
2130
+ }
2131
+ #o = (t) => btoa(String.fromCharCode(...new TextEncoder().encode(t)));
2132
+ #i = (t) => new TextDecoder().decode(
2133
+ Uint8Array.from(atob(t), (n) => n.charCodeAt(0))
2134
+ );
2135
+ set = (t, n, r = 365) => {
2136
+ const o = new Date(Date.now() + r * 24 * 60 * 60 * 1e3), i = `${this.#e}${t}=${this.#o(n)}; expires=${o}; path=/; domain=${this.#t}; SameSite=${this.#n}; ${this.#r ? "secure" : ""}`;
2137
+ document.cookie = i;
2138
+ };
2139
+ get = (t) => {
2140
+ const n = document.cookie.match(
2141
+ new RegExp(`(?:^|; )${this.#e}${t}=([^;]*)`)
2142
+ );
2143
+ if (!n) return null;
2144
+ const [r, o] = n;
2145
+ return o ? this.#i(o) : null;
2146
+ };
2147
+ remove = (t) => {
2148
+ this.set(t, "", -1);
2149
+ };
2150
+ }
2151
+ const vn = "selection", Dr = re(null), qs = ({
2121
2152
  children: e,
2122
2153
  items: t,
2123
- localStorageKey: n
2154
+ cookie: n
2124
2155
  }) => {
2125
- function r(g) {
2126
- const f = localStorage.getItem(g);
2127
- if (!f) return null;
2128
- const { success: v, data: h } = Ws.safeParse(
2129
- JSON.parse(f)
2156
+ const { domain: r, prefix: o, sameSite: i, secure: c } = n, [s, a] = I(
2157
+ new _n({ domain: r, prefix: o, sameSite: i, secure: c })
2158
+ );
2159
+ N(() => {
2160
+ a(new _n({ domain: r, prefix: o, sameSite: i, secure: c }));
2161
+ }, [r, o, i, c]);
2162
+ function u() {
2163
+ const g = s.get(vn);
2164
+ if (!g) return null;
2165
+ const { success: E, data: C } = Ks.safeParse(
2166
+ JSON.parse(g)
2130
2167
  );
2131
- return v ? h : null;
2168
+ return E ? C : null;
2132
2169
  }
2133
- const o = D(
2170
+ const l = x(
2134
2171
  () => Object.fromEntries(
2135
2172
  t.map((g) => [g.value, g.defaultSelected ?? !1])
2136
2173
  ),
2137
2174
  [t]
2138
- ), [i, c] = R(
2139
- r(n) ?? o
2140
- ), [s, a] = R(
2141
- r(n)
2175
+ ), [d, _] = I(
2176
+ u() ?? l
2177
+ ), [v, S] = I(
2178
+ u()
2142
2179
  );
2143
- function u(g, f) {
2144
- const v = i ? { ...i, [g]: f } : { [g]: f };
2145
- c(v);
2180
+ function p(g, E) {
2181
+ const C = d ? { ...d, [g]: E } : { [g]: E };
2182
+ _(C);
2146
2183
  }
2147
- E(() => {
2184
+ N(() => {
2148
2185
  let g = [];
2149
- s !== null && (g = Object.entries(s).filter(([v, h]) => h).map(([v]) => v));
2150
- const f = t.filter(
2151
- (v) => g.includes(v.value)
2186
+ v !== null && (g = Object.entries(v).filter(([C, w]) => w).map(([C]) => C));
2187
+ const E = t.filter(
2188
+ (C) => g.includes(C.value)
2152
2189
  );
2153
- for (const v of t) {
2154
- const h = document.head.querySelector(`#${v.value}`);
2155
- h && h.remove();
2156
- }
2157
- for (const v of f) {
2158
- const h = document.createElement("script");
2159
- if (h.id = v.value, !v.script) {
2160
- v.required || console.warn("CookieBanner: Missing script for", v.value);
2161
- continue;
2162
- }
2163
- const { success: y, data: b } = Fi.safeParse(
2164
- v.script
2165
- );
2166
- if (!y) {
2167
- console.error(
2168
- "CookieBanner: Invalid script definition for",
2169
- v.value
2170
- );
2190
+ for (const C of t)
2191
+ if (C.scripts)
2192
+ for (const w of C.scripts) {
2193
+ const R = document.head.querySelector(`#${C.value}-${w.id}`);
2194
+ R && R.remove();
2195
+ }
2196
+ for (const C of E) {
2197
+ if (!C.scripts) {
2198
+ C.required || console.warn("CookieBanner: Missing script for", C.value);
2171
2199
  continue;
2172
2200
  }
2173
- switch (h.type = b.type ?? "text/javascript", h.async = b.async ?? !1, h.defer = b.defer ?? !1, b.variant) {
2174
- case "inline":
2175
- h.textContent = b.content;
2176
- break;
2177
- case "remote":
2178
- h.src = b.src, h.crossOrigin = b.crossorigin ?? null, h.integrity = b.integrity ?? "";
2179
- break;
2201
+ for (const w of C.scripts) {
2202
+ if (!w) continue;
2203
+ const R = document.createElement("script");
2204
+ R.id = `${C.value}-${w.id}`;
2205
+ const { success: Q, data: F } = Hi.safeParse(w);
2206
+ if (!Q) {
2207
+ console.error(
2208
+ "CookieBanner: Invalid script definition for",
2209
+ C.value
2210
+ );
2211
+ continue;
2212
+ }
2213
+ switch (R.type = F.type ?? "text/javascript", R.async = F.async ?? !1, R.defer = F.defer ?? !1, F.variant) {
2214
+ case "inline":
2215
+ R.textContent = F.content;
2216
+ break;
2217
+ case "remote":
2218
+ R.src = F.src, R.crossOrigin = F.crossorigin ?? null, R.integrity = F.integrity ?? "";
2219
+ break;
2220
+ }
2221
+ document.head.appendChild(R);
2180
2222
  }
2181
- document.head.appendChild(h);
2182
2223
  }
2183
- }, [s, t]);
2184
- function l(g) {
2185
- a(g), localStorage.setItem(n, JSON.stringify(g));
2224
+ }, [v, t]);
2225
+ function h(g) {
2226
+ S(g), s.set(vn, JSON.stringify(g));
2186
2227
  }
2187
- const d = M(() => {
2228
+ const y = z(() => {
2188
2229
  const g = Object.fromEntries(
2189
- t.map((f) => [f.value, !1])
2230
+ t.map((E) => [E.value, !1])
2190
2231
  );
2191
- c(g), l(g);
2192
- }, [t]), _ = M(() => {
2193
- l(i), location.reload();
2194
- }, [i]), m = D(() => {
2195
- if (!s) return !1;
2196
- const g = Object.keys(s);
2197
- return t.map((v) => v.value).every((v) => g.includes(v));
2198
- }, [s, t]);
2199
- return /* @__PURE__ */ p(
2200
- Ir.Provider,
2232
+ _(g), h(g);
2233
+ }, [t]), m = z(() => {
2234
+ h(d), location.reload();
2235
+ }, [d]), b = x(() => {
2236
+ if (!v) return !1;
2237
+ const g = Object.keys(v);
2238
+ return t.map((C) => C.value).every((C) => g.includes(C));
2239
+ }, [v, t]);
2240
+ return /* @__PURE__ */ f(
2241
+ Dr.Provider,
2201
2242
  {
2202
2243
  value: {
2203
- selection: i,
2204
- toggleSelection: u,
2205
- onDeclineAll: d,
2206
- onSave: _,
2207
- selectionTaken: m
2244
+ selection: d,
2245
+ toggleSelection: p,
2246
+ onDeclineAll: y,
2247
+ onSave: m,
2248
+ selectionTaken: b
2208
2249
  },
2209
2250
  children: e
2210
2251
  }
2211
2252
  );
2212
2253
  };
2213
- function Tr() {
2214
- const e = Y(Ir);
2254
+ function xr() {
2255
+ const e = J(Dr);
2215
2256
  if (!e)
2216
2257
  throw new Error("useSelection must be used within a SelectionProvider");
2217
2258
  return e;
2218
2259
  }
2219
- const Hs = ({
2260
+ const Gs = ({
2220
2261
  value: e,
2221
2262
  label: t,
2222
2263
  sublabel: n,
@@ -2224,50 +2265,50 @@ const Hs = ({
2224
2265
  description: o,
2225
2266
  openItem: i
2226
2267
  }) => {
2227
- const { toggleSelection: c, selection: s } = Tr(), a = D(
2268
+ const { toggleSelection: c, selection: s } = xr(), a = x(
2228
2269
  () => s?.[e] ?? !1,
2229
2270
  [s, e]
2230
2271
  );
2231
- E(() => {
2272
+ N(() => {
2232
2273
  c(e, a);
2233
2274
  }, [e, a]);
2234
- const u = D(
2275
+ const u = x(
2235
2276
  () => r ? !0 : a,
2236
2277
  [r, a]
2237
- ), l = D(
2278
+ ), l = x(
2238
2279
  () => (_) => r ? () => {
2239
2280
  } : c(e, _),
2240
2281
  [r, c, e]
2241
- ), d = D(() => r, [r]);
2242
- return /* @__PURE__ */ p(bs, { value: e, className: re.root, children: [
2243
- /* @__PURE__ */ p("div", { className: re.header, children: [
2244
- /* @__PURE__ */ p(dn, { asChild: !0, children: /* @__PURE__ */ p("div", { className: re.label, children: [
2245
- /* @__PURE__ */ p(ie, { weight: "bold", children: t }),
2246
- n && /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n })
2282
+ ), d = x(() => r, [r]);
2283
+ return /* @__PURE__ */ f(Ps, { value: e, className: se.root, children: [
2284
+ /* @__PURE__ */ f("div", { className: se.header, children: [
2285
+ /* @__PURE__ */ f(fn, { asChild: !0, children: /* @__PURE__ */ f("div", { className: se.label, children: [
2286
+ /* @__PURE__ */ f(ce, { weight: "bold", children: t }),
2287
+ n && /* @__PURE__ */ f(ce, { size: "caption", color: "muted", children: n })
2247
2288
  ] }) }),
2248
- /* @__PURE__ */ p("div", { className: re.actions, children: [
2249
- /* @__PURE__ */ p(
2250
- js,
2289
+ /* @__PURE__ */ f("div", { className: se.actions, children: [
2290
+ /* @__PURE__ */ f(
2291
+ Vs,
2251
2292
  {
2252
2293
  checked: u,
2253
2294
  onCheckedChange: l,
2254
2295
  disabled: d
2255
2296
  }
2256
2297
  ),
2257
- /* @__PURE__ */ p(dn, { asChild: !0, children: /* @__PURE__ */ p(
2258
- As,
2298
+ /* @__PURE__ */ f(fn, { asChild: !0, children: /* @__PURE__ */ f(
2299
+ Ds,
2259
2300
  {
2260
2301
  size: 16,
2261
- className: He({
2262
- [re.chevron]: !0,
2263
- [re.open]: i === e
2302
+ className: Ze({
2303
+ [se.chevron]: !0,
2304
+ [se.open]: i === e
2264
2305
  })
2265
2306
  }
2266
2307
  ) })
2267
2308
  ] })
2268
2309
  ] }),
2269
- o && /* @__PURE__ */ p(Cs, { className: re.description, children: /* @__PURE__ */ p(
2270
- ie,
2310
+ o && /* @__PURE__ */ f(Ns, { className: se.description, children: /* @__PURE__ */ f(
2311
+ ce,
2271
2312
  {
2272
2313
  size: "caption",
2273
2314
  dangerouslySetInnerHTML: { __html: o }
@@ -2276,25 +2317,25 @@ const Hs = ({
2276
2317
  ] });
2277
2318
  };
2278
2319
  function Ie(e) {
2279
- const t = S(e);
2280
- return E(() => {
2320
+ const t = P(e);
2321
+ return N(() => {
2281
2322
  t.current = e;
2282
- }), D(() => (...n) => t.current?.(...n), []);
2323
+ }), x(() => (...n) => t.current?.(...n), []);
2283
2324
  }
2284
- function Zs(e, t = globalThis?.document) {
2325
+ function Ys(e, t = globalThis?.document) {
2285
2326
  const n = Ie(e);
2286
- E(() => {
2327
+ N(() => {
2287
2328
  const r = (o) => {
2288
2329
  o.key === "Escape" && n(o);
2289
2330
  };
2290
2331
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2291
2332
  }, [n, t]);
2292
2333
  }
2293
- var Vs = "DismissableLayer", bt = "dismissableLayer.update", Ks = "dismissableLayer.pointerDownOutside", qs = "dismissableLayer.focusOutside", pn, kr = ee({
2334
+ var Xs = "DismissableLayer", bt = "dismissableLayer.update", Js = "dismissableLayer.pointerDownOutside", Qs = "dismissableLayer.focusOutside", hn, Mr = re({
2294
2335
  layers: /* @__PURE__ */ new Set(),
2295
2336
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2296
2337
  branches: /* @__PURE__ */ new Set()
2297
- }), Dr = P(
2338
+ }), zr = O(
2298
2339
  (e, t) => {
2299
2340
  const {
2300
2341
  disableOutsidePointerEvents: n = !1,
@@ -2304,65 +2345,65 @@ var Vs = "DismissableLayer", bt = "dismissableLayer.update", Ks = "dismissableLa
2304
2345
  onInteractOutside: c,
2305
2346
  onDismiss: s,
2306
2347
  ...a
2307
- } = e, u = Y(kr), [l, d] = R(null), _ = l?.ownerDocument ?? globalThis?.document, [, m] = R({}), g = L(t, (w) => d(w)), f = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), h = f.indexOf(v), y = l ? f.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= h, O = Xs((w) => {
2308
- const F = w.target, le = [...u.branches].some((Se) => Se.contains(F));
2309
- !C || le || (o?.(w), c?.(w), w.defaultPrevented || s?.());
2310
- }, _), k = Js((w) => {
2311
- const F = w.target;
2312
- [...u.branches].some((Se) => Se.contains(F)) || (i?.(w), c?.(w), w.defaultPrevented || s?.());
2348
+ } = e, u = J(Mr), [l, d] = I(null), _ = l?.ownerDocument ?? globalThis?.document, [, v] = I({}), S = U(t, (w) => d(w)), p = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(h), m = l ? p.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, g = m >= y, E = nc((w) => {
2349
+ const R = w.target, Q = [...u.branches].some((F) => F.contains(R));
2350
+ !g || Q || (o?.(w), c?.(w), w.defaultPrevented || s?.());
2351
+ }, _), C = rc((w) => {
2352
+ const R = w.target;
2353
+ [...u.branches].some((F) => F.contains(R)) || (i?.(w), c?.(w), w.defaultPrevented || s?.());
2313
2354
  }, _);
2314
- return Zs((w) => {
2315
- y === u.layers.size - 1 && (r?.(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
2316
- }, _), E(() => {
2355
+ return Ys((w) => {
2356
+ m === u.layers.size - 1 && (r?.(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
2357
+ }, _), N(() => {
2317
2358
  if (l)
2318
- return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (pn = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), _n(), () => {
2319
- n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = pn);
2359
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (hn = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), mn(), () => {
2360
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = hn);
2320
2361
  };
2321
- }, [l, _, n, u]), E(() => () => {
2322
- l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), _n());
2323
- }, [l, u]), E(() => {
2324
- const w = () => m({});
2362
+ }, [l, _, n, u]), N(() => () => {
2363
+ l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), mn());
2364
+ }, [l, u]), N(() => {
2365
+ const w = () => v({});
2325
2366
  return document.addEventListener(bt, w), () => document.removeEventListener(bt, w);
2326
- }, []), /* @__PURE__ */ p(
2327
- $.div,
2367
+ }, []), /* @__PURE__ */ f(
2368
+ L.div,
2328
2369
  {
2329
2370
  ...a,
2330
- ref: g,
2371
+ ref: S,
2331
2372
  style: {
2332
- pointerEvents: b ? C ? "auto" : "none" : void 0,
2373
+ pointerEvents: b ? g ? "auto" : "none" : void 0,
2333
2374
  ...e.style
2334
2375
  },
2335
- onFocusCapture: j(e.onFocusCapture, k.onFocusCapture),
2336
- onBlurCapture: j(e.onBlurCapture, k.onBlurCapture),
2337
- onPointerDownCapture: j(
2376
+ onFocusCapture: W(e.onFocusCapture, C.onFocusCapture),
2377
+ onBlurCapture: W(e.onBlurCapture, C.onBlurCapture),
2378
+ onPointerDownCapture: W(
2338
2379
  e.onPointerDownCapture,
2339
- O.onPointerDownCapture
2380
+ E.onPointerDownCapture
2340
2381
  )
2341
2382
  }
2342
2383
  );
2343
2384
  }
2344
2385
  );
2345
- Dr.displayName = Vs;
2346
- var Gs = "DismissableLayerBranch", Ys = P((e, t) => {
2347
- const n = Y(kr), r = S(null), o = L(t, r);
2348
- return E(() => {
2386
+ zr.displayName = Xs;
2387
+ var ec = "DismissableLayerBranch", tc = O((e, t) => {
2388
+ const n = J(Mr), r = P(null), o = U(t, r);
2389
+ return N(() => {
2349
2390
  const i = r.current;
2350
2391
  if (i)
2351
2392
  return n.branches.add(i), () => {
2352
2393
  n.branches.delete(i);
2353
2394
  };
2354
- }, [n.branches]), /* @__PURE__ */ p($.div, { ...e, ref: o });
2395
+ }, [n.branches]), /* @__PURE__ */ f(L.div, { ...e, ref: o });
2355
2396
  });
2356
- Ys.displayName = Gs;
2357
- function Xs(e, t = globalThis?.document) {
2358
- const n = Ie(e), r = S(!1), o = S(() => {
2397
+ tc.displayName = ec;
2398
+ function nc(e, t = globalThis?.document) {
2399
+ const n = Ie(e), r = P(!1), o = P(() => {
2359
2400
  });
2360
- return E(() => {
2401
+ return N(() => {
2361
2402
  const i = (s) => {
2362
2403
  if (s.target && !r.current) {
2363
2404
  let a = function() {
2364
- xr(
2365
- Ks,
2405
+ $r(
2406
+ Js,
2366
2407
  n,
2367
2408
  u,
2368
2409
  { discrete: !0 }
@@ -2384,11 +2425,11 @@ function Xs(e, t = globalThis?.document) {
2384
2425
  onPointerDownCapture: () => r.current = !0
2385
2426
  };
2386
2427
  }
2387
- function Js(e, t = globalThis?.document) {
2388
- const n = Ie(e), r = S(!1);
2389
- return E(() => {
2428
+ function rc(e, t = globalThis?.document) {
2429
+ const n = Ie(e), r = P(!1);
2430
+ return N(() => {
2390
2431
  const o = (i) => {
2391
- i.target && !r.current && xr(qs, n, { originalEvent: i }, {
2432
+ i.target && !r.current && $r(Qs, n, { originalEvent: i }, {
2392
2433
  discrete: !1
2393
2434
  });
2394
2435
  };
@@ -2398,22 +2439,22 @@ function Js(e, t = globalThis?.document) {
2398
2439
  onBlurCapture: () => r.current = !1
2399
2440
  };
2400
2441
  }
2401
- function _n() {
2442
+ function mn() {
2402
2443
  const e = new CustomEvent(bt);
2403
2444
  document.dispatchEvent(e);
2404
2445
  }
2405
- function xr(e, t, n, { discrete: r }) {
2446
+ function $r(e, t, n, { discrete: r }) {
2406
2447
  const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
2407
- t && o.addEventListener(e, t, { once: !0 }), r ? Ji(o, i) : o.dispatchEvent(i);
2448
+ t && o.addEventListener(e, t, { once: !0 }), r ? rs(o, i) : o.dispatchEvent(i);
2408
2449
  }
2409
- var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", vn = { bubbles: !1, cancelable: !0 }, Qs = "FocusScope", Mr = P((e, t) => {
2450
+ var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", gn = { bubbles: !1, cancelable: !0 }, oc = "FocusScope", Lr = O((e, t) => {
2410
2451
  const {
2411
2452
  loop: n = !1,
2412
2453
  trapped: r = !1,
2413
2454
  onMountAutoFocus: o,
2414
2455
  onUnmountAutoFocus: i,
2415
2456
  ...c
2416
- } = e, [s, a] = R(null), u = Ie(o), l = Ie(i), d = S(null), _ = L(t, (f) => a(f)), m = S({
2457
+ } = e, [s, a] = I(null), u = Ie(o), l = Ie(i), d = P(null), _ = U(t, (p) => a(p)), v = P({
2417
2458
  paused: !1,
2418
2459
  pause() {
2419
2460
  this.paused = !0;
@@ -2422,67 +2463,67 @@ var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", vn
2422
2463
  this.paused = !1;
2423
2464
  }
2424
2465
  }).current;
2425
- E(() => {
2466
+ N(() => {
2426
2467
  if (r) {
2427
- let f = function(b) {
2428
- if (m.paused || !s) return;
2429
- const C = b.target;
2430
- s.contains(C) ? d.current = C : X(d.current, { select: !0 });
2431
- }, v = function(b) {
2432
- if (m.paused || !s) return;
2433
- const C = b.relatedTarget;
2434
- C !== null && (s.contains(C) || X(d.current, { select: !0 }));
2468
+ let p = function(b) {
2469
+ if (v.paused || !s) return;
2470
+ const g = b.target;
2471
+ s.contains(g) ? d.current = g : ee(d.current, { select: !0 });
2435
2472
  }, h = function(b) {
2473
+ if (v.paused || !s) return;
2474
+ const g = b.relatedTarget;
2475
+ g !== null && (s.contains(g) || ee(d.current, { select: !0 }));
2476
+ }, y = function(b) {
2436
2477
  if (document.activeElement === document.body)
2437
- for (const O of b)
2438
- O.removedNodes.length > 0 && X(s);
2478
+ for (const E of b)
2479
+ E.removedNodes.length > 0 && ee(s);
2439
2480
  };
2440
- document.addEventListener("focusin", f), document.addEventListener("focusout", v);
2441
- const y = new MutationObserver(h);
2442
- return s && y.observe(s, { childList: !0, subtree: !0 }), () => {
2443
- document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), y.disconnect();
2481
+ document.addEventListener("focusin", p), document.addEventListener("focusout", h);
2482
+ const m = new MutationObserver(y);
2483
+ return s && m.observe(s, { childList: !0, subtree: !0 }), () => {
2484
+ document.removeEventListener("focusin", p), document.removeEventListener("focusout", h), m.disconnect();
2444
2485
  };
2445
2486
  }
2446
- }, [r, s, m.paused]), E(() => {
2487
+ }, [r, s, v.paused]), N(() => {
2447
2488
  if (s) {
2448
- mn.add(m);
2449
- const f = document.activeElement;
2450
- if (!s.contains(f)) {
2451
- const h = new CustomEvent(lt, vn);
2452
- s.addEventListener(lt, u), s.dispatchEvent(h), h.defaultPrevented || (ec(ic(zr(s)), { select: !0 }), document.activeElement === f && X(s));
2489
+ bn.add(v);
2490
+ const p = document.activeElement;
2491
+ if (!s.contains(p)) {
2492
+ const y = new CustomEvent(lt, gn);
2493
+ s.addEventListener(lt, u), s.dispatchEvent(y), y.defaultPrevented || (ic(lc(Fr(s)), { select: !0 }), document.activeElement === p && ee(s));
2453
2494
  }
2454
2495
  return () => {
2455
2496
  s.removeEventListener(lt, u), setTimeout(() => {
2456
- const h = new CustomEvent(dt, vn);
2457
- s.addEventListener(dt, l), s.dispatchEvent(h), h.defaultPrevented || X(f ?? document.body, { select: !0 }), s.removeEventListener(dt, l), mn.remove(m);
2497
+ const y = new CustomEvent(dt, gn);
2498
+ s.addEventListener(dt, l), s.dispatchEvent(y), y.defaultPrevented || ee(p ?? document.body, { select: !0 }), s.removeEventListener(dt, l), bn.remove(v);
2458
2499
  }, 0);
2459
2500
  };
2460
2501
  }
2461
- }, [s, u, l, m]);
2462
- const g = M(
2463
- (f) => {
2464
- if (!n && !r || m.paused) return;
2465
- const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, h = document.activeElement;
2466
- if (v && h) {
2467
- const y = f.currentTarget, [b, C] = tc(y);
2468
- b && C ? !f.shiftKey && h === C ? (f.preventDefault(), n && X(b, { select: !0 })) : f.shiftKey && h === b && (f.preventDefault(), n && X(C, { select: !0 })) : h === y && f.preventDefault();
2502
+ }, [s, u, l, v]);
2503
+ const S = z(
2504
+ (p) => {
2505
+ if (!n && !r || v.paused) return;
2506
+ const h = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
2507
+ if (h && y) {
2508
+ const m = p.currentTarget, [b, g] = sc(m);
2509
+ b && g ? !p.shiftKey && y === g ? (p.preventDefault(), n && ee(b, { select: !0 })) : p.shiftKey && y === b && (p.preventDefault(), n && ee(g, { select: !0 })) : y === m && p.preventDefault();
2469
2510
  }
2470
2511
  },
2471
- [n, r, m.paused]
2512
+ [n, r, v.paused]
2472
2513
  );
2473
- return /* @__PURE__ */ p($.div, { tabIndex: -1, ...c, ref: _, onKeyDown: g });
2514
+ return /* @__PURE__ */ f(L.div, { tabIndex: -1, ...c, ref: _, onKeyDown: S });
2474
2515
  });
2475
- Mr.displayName = Qs;
2476
- function ec(e, { select: t = !1 } = {}) {
2516
+ Lr.displayName = oc;
2517
+ function ic(e, { select: t = !1 } = {}) {
2477
2518
  const n = document.activeElement;
2478
2519
  for (const r of e)
2479
- if (X(r, { select: t }), document.activeElement !== n) return;
2520
+ if (ee(r, { select: t }), document.activeElement !== n) return;
2480
2521
  }
2481
- function tc(e) {
2482
- const t = zr(e), n = hn(t, e), r = hn(t.reverse(), e);
2522
+ function sc(e) {
2523
+ const t = Fr(e), n = yn(t, e), r = yn(t.reverse(), e);
2483
2524
  return [n, r];
2484
2525
  }
2485
- function zr(e) {
2526
+ function Fr(e) {
2486
2527
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
2487
2528
  acceptNode: (r) => {
2488
2529
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -2492,11 +2533,11 @@ function zr(e) {
2492
2533
  for (; n.nextNode(); ) t.push(n.currentNode);
2493
2534
  return t;
2494
2535
  }
2495
- function hn(e, t) {
2536
+ function yn(e, t) {
2496
2537
  for (const n of e)
2497
- if (!nc(n, { upTo: t })) return n;
2538
+ if (!cc(n, { upTo: t })) return n;
2498
2539
  }
2499
- function nc(e, { upTo: t }) {
2540
+ function cc(e, { upTo: t }) {
2500
2541
  if (getComputedStyle(e).visibility === "hidden") return !0;
2501
2542
  for (; e; ) {
2502
2543
  if (t !== void 0 && e === t) return !1;
@@ -2505,58 +2546,65 @@ function nc(e, { upTo: t }) {
2505
2546
  }
2506
2547
  return !1;
2507
2548
  }
2508
- function rc(e) {
2549
+ function ac(e) {
2509
2550
  return e instanceof HTMLInputElement && "select" in e;
2510
2551
  }
2511
- function X(e, { select: t = !1 } = {}) {
2552
+ function ee(e, { select: t = !1 } = {}) {
2512
2553
  if (e && e.focus) {
2513
2554
  const n = document.activeElement;
2514
- e.focus({ preventScroll: !0 }), e !== n && rc(e) && t && e.select();
2555
+ e.focus({ preventScroll: !0 }), e !== n && ac(e) && t && e.select();
2515
2556
  }
2516
2557
  }
2517
- var mn = oc();
2518
- function oc() {
2558
+ var bn = uc();
2559
+ function uc() {
2519
2560
  let e = [];
2520
2561
  return {
2521
2562
  add(t) {
2522
2563
  const n = e[0];
2523
- t !== n && n?.pause(), e = gn(e, t), e.unshift(t);
2564
+ t !== n && n?.pause(), e = Cn(e, t), e.unshift(t);
2524
2565
  },
2525
2566
  remove(t) {
2526
- e = gn(e, t), e[0]?.resume();
2567
+ e = Cn(e, t), e[0]?.resume();
2527
2568
  }
2528
2569
  };
2529
2570
  }
2530
- function gn(e, t) {
2571
+ function Cn(e, t) {
2531
2572
  const n = [...e], r = n.indexOf(t);
2532
2573
  return r !== -1 && n.splice(r, 1), n;
2533
2574
  }
2534
- function ic(e) {
2575
+ function lc(e) {
2535
2576
  return e.filter((t) => t.tagName !== "A");
2536
2577
  }
2578
+ var dc = "Portal", Ur = O((e, t) => {
2579
+ const { container: n, ...r } = e, [o, i] = I(!1);
2580
+ ue(() => i(!0), []);
2581
+ const c = n || o && globalThis?.document?.body;
2582
+ return c ? k.createPortal(/* @__PURE__ */ f(L.div, { ...r, ref: t }), c) : null;
2583
+ });
2584
+ Ur.displayName = dc;
2537
2585
  var ft = 0;
2538
- function sc() {
2539
- E(() => {
2586
+ function fc() {
2587
+ N(() => {
2540
2588
  const e = document.querySelectorAll("[data-radix-focus-guard]");
2541
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? yn()), document.body.insertAdjacentElement("beforeend", e[1] ?? yn()), ft++, () => {
2589
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Sn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Sn()), ft++, () => {
2542
2590
  ft === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ft--;
2543
2591
  };
2544
2592
  }, []);
2545
2593
  }
2546
- function yn() {
2594
+ function Sn() {
2547
2595
  const e = document.createElement("span");
2548
2596
  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;
2549
2597
  }
2550
- var H = function() {
2551
- return H = Object.assign || function(t) {
2598
+ var V = function() {
2599
+ return V = Object.assign || function(t) {
2552
2600
  for (var n, r = 1, o = arguments.length; r < o; r++) {
2553
2601
  n = arguments[r];
2554
2602
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2555
2603
  }
2556
2604
  return t;
2557
- }, H.apply(this, arguments);
2605
+ }, V.apply(this, arguments);
2558
2606
  };
2559
- function $r(e, t) {
2607
+ function jr(e, t) {
2560
2608
  var n = {};
2561
2609
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2562
2610
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2564,17 +2612,17 @@ function $r(e, t) {
2564
2612
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2565
2613
  return n;
2566
2614
  }
2567
- function cc(e, t, n) {
2615
+ function pc(e, t, n) {
2568
2616
  if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2569
2617
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2570
2618
  return e.concat(i || Array.prototype.slice.call(t));
2571
2619
  }
2572
- var Ze = "right-scroll-bar-position", Ve = "width-before-scroll-bar", ac = "with-scroll-bars-hidden", uc = "--removed-body-scroll-bar-size";
2620
+ var Ve = "right-scroll-bar-position", Ke = "width-before-scroll-bar", _c = "with-scroll-bars-hidden", vc = "--removed-body-scroll-bar-size";
2573
2621
  function pt(e, t) {
2574
2622
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2575
2623
  }
2576
- function lc(e, t) {
2577
- var n = R(function() {
2624
+ function hc(e, t) {
2625
+ var n = I(function() {
2578
2626
  return {
2579
2627
  // value
2580
2628
  value: e,
@@ -2594,15 +2642,15 @@ function lc(e, t) {
2594
2642
  })[0];
2595
2643
  return n.callback = t, n.facade;
2596
2644
  }
2597
- var dc = typeof window < "u" ? te : E, bn = /* @__PURE__ */ new WeakMap();
2598
- function fc(e, t) {
2599
- var n = lc(null, function(r) {
2645
+ var mc = typeof window < "u" ? oe : N, wn = /* @__PURE__ */ new WeakMap();
2646
+ function gc(e, t) {
2647
+ var n = hc(null, function(r) {
2600
2648
  return e.forEach(function(o) {
2601
2649
  return pt(o, r);
2602
2650
  });
2603
2651
  });
2604
- return dc(function() {
2605
- var r = bn.get(n);
2652
+ return mc(function() {
2653
+ var r = wn.get(n);
2606
2654
  if (r) {
2607
2655
  var o = new Set(r), i = new Set(e), c = n.current;
2608
2656
  o.forEach(function(s) {
@@ -2611,14 +2659,14 @@ function fc(e, t) {
2611
2659
  o.has(s) || pt(s, c);
2612
2660
  });
2613
2661
  }
2614
- bn.set(n, e);
2662
+ wn.set(n, e);
2615
2663
  }, [e]), n;
2616
2664
  }
2617
- function pc(e) {
2665
+ function yc(e) {
2618
2666
  return e;
2619
2667
  }
2620
- function _c(e, t) {
2621
- t === void 0 && (t = pc);
2668
+ function bc(e, t) {
2669
+ t === void 0 && (t = yc);
2622
2670
  var n = [], r = !1, o = {
2623
2671
  read: function() {
2624
2672
  if (r)
@@ -2672,36 +2720,36 @@ function _c(e, t) {
2672
2720
  };
2673
2721
  return o;
2674
2722
  }
2675
- function vc(e) {
2723
+ function Cc(e) {
2676
2724
  e === void 0 && (e = {});
2677
- var t = _c(null);
2678
- return t.options = H({ async: !0, ssr: !1 }, e), t;
2725
+ var t = bc(null);
2726
+ return t.options = V({ async: !0, ssr: !1 }, e), t;
2679
2727
  }
2680
- var Lr = function(e) {
2681
- var t = e.sideCar, n = $r(e, ["sideCar"]);
2728
+ var Wr = function(e) {
2729
+ var t = e.sideCar, n = jr(e, ["sideCar"]);
2682
2730
  if (!t)
2683
2731
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2684
2732
  var r = t.read();
2685
2733
  if (!r)
2686
2734
  throw new Error("Sidecar medium not found");
2687
- return T(r, H({}, n));
2735
+ return D(r, V({}, n));
2688
2736
  };
2689
- Lr.isSideCarExport = !0;
2690
- function hc(e, t) {
2691
- return e.useMedium(t), Lr;
2737
+ Wr.isSideCarExport = !0;
2738
+ function Sc(e, t) {
2739
+ return e.useMedium(t), Wr;
2692
2740
  }
2693
- var Fr = vc(), _t = function() {
2694
- }, it = P(function(e, t) {
2695
- var n = S(null), r = R({
2741
+ var Br = Cc(), _t = function() {
2742
+ }, it = O(function(e, t) {
2743
+ var n = P(null), r = I({
2696
2744
  onScrollCapture: _t,
2697
2745
  onWheelCapture: _t,
2698
2746
  onTouchMoveCapture: _t
2699
- }), o = r[0], i = r[1], c = e.forwardProps, s = e.children, a = e.className, u = e.removeScrollBar, l = e.enabled, d = e.shards, _ = e.sideCar, m = e.noRelative, g = e.noIsolation, f = e.inert, v = e.allowPinchZoom, h = e.as, y = h === void 0 ? "div" : h, b = e.gapMode, C = $r(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), O = _, k = fc([n, t]), w = H(H({}, C), o);
2700
- return T(
2701
- W,
2747
+ }), o = r[0], i = r[1], c = e.forwardProps, s = e.children, a = e.className, u = e.removeScrollBar, l = e.enabled, d = e.shards, _ = e.sideCar, v = e.noRelative, S = e.noIsolation, p = e.inert, h = e.allowPinchZoom, y = e.as, m = y === void 0 ? "div" : y, b = e.gapMode, g = jr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = _, C = gc([n, t]), w = V(V({}, g), o);
2748
+ return D(
2749
+ B,
2702
2750
  null,
2703
- l && T(O, { sideCar: Fr, removeScrollBar: u, shards: d, noRelative: m, noIsolation: g, inert: f, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
2704
- c ? ge(K.only(s), H(H({}, w), { ref: k })) : T(y, H({}, w, { className: a, ref: k }), s)
2751
+ l && D(E, { sideCar: Br, removeScrollBar: u, shards: d, noRelative: v, noIsolation: S, inert: p, setCallbacks: i, allowPinchZoom: !!h, lockRef: n, gapMode: b }),
2752
+ c ? ye(q.only(s), V(V({}, w), { ref: C })) : D(m, V({}, w, { className: a, ref: C }), s)
2705
2753
  );
2706
2754
  });
2707
2755
  it.defaultProps = {
@@ -2710,81 +2758,81 @@ it.defaultProps = {
2710
2758
  inert: !1
2711
2759
  };
2712
2760
  it.classNames = {
2713
- fullWidth: Ve,
2714
- zeroRight: Ze
2761
+ fullWidth: Ke,
2762
+ zeroRight: Ve
2715
2763
  };
2716
- var mc = function() {
2764
+ var wc = function() {
2717
2765
  if (typeof __webpack_nonce__ < "u")
2718
2766
  return __webpack_nonce__;
2719
2767
  };
2720
- function gc() {
2768
+ function Ec() {
2721
2769
  if (!document)
2722
2770
  return null;
2723
2771
  var e = document.createElement("style");
2724
2772
  e.type = "text/css";
2725
- var t = mc();
2773
+ var t = wc();
2726
2774
  return t && e.setAttribute("nonce", t), e;
2727
2775
  }
2728
- function yc(e, t) {
2776
+ function Pc(e, t) {
2729
2777
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2730
2778
  }
2731
- function bc(e) {
2779
+ function Nc(e) {
2732
2780
  var t = document.head || document.getElementsByTagName("head")[0];
2733
2781
  t.appendChild(e);
2734
2782
  }
2735
- var Cc = function() {
2783
+ var Oc = function() {
2736
2784
  var e = 0, t = null;
2737
2785
  return {
2738
2786
  add: function(n) {
2739
- e == 0 && (t = gc()) && (yc(t, n), bc(t)), e++;
2787
+ e == 0 && (t = Ec()) && (Pc(t, n), Nc(t)), e++;
2740
2788
  },
2741
2789
  remove: function() {
2742
2790
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2743
2791
  }
2744
2792
  };
2745
- }, Sc = function() {
2746
- var e = Cc();
2793
+ }, Ac = function() {
2794
+ var e = Oc();
2747
2795
  return function(t, n) {
2748
- E(function() {
2796
+ N(function() {
2749
2797
  return e.add(t), function() {
2750
2798
  e.remove();
2751
2799
  };
2752
2800
  }, [t && n]);
2753
2801
  };
2754
- }, Ur = function() {
2755
- var e = Sc(), t = function(n) {
2802
+ }, Hr = function() {
2803
+ var e = Ac(), t = function(n) {
2756
2804
  var r = n.styles, o = n.dynamic;
2757
2805
  return e(r, o), null;
2758
2806
  };
2759
2807
  return t;
2760
- }, wc = {
2808
+ }, Rc = {
2761
2809
  left: 0,
2762
2810
  top: 0,
2763
2811
  right: 0,
2764
2812
  gap: 0
2765
2813
  }, vt = function(e) {
2766
2814
  return parseInt(e || "", 10) || 0;
2767
- }, Ec = function(e) {
2815
+ }, Ic = function(e) {
2768
2816
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2769
2817
  return [vt(n), vt(r), vt(o)];
2770
- }, Pc = function(e) {
2818
+ }, Tc = function(e) {
2771
2819
  if (e === void 0 && (e = "margin"), typeof window > "u")
2772
- return wc;
2773
- var t = Ec(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2820
+ return Rc;
2821
+ var t = Ic(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2774
2822
  return {
2775
2823
  left: t[0],
2776
2824
  top: t[1],
2777
2825
  right: t[2],
2778
2826
  gap: Math.max(0, r - n + t[2] - t[0])
2779
2827
  };
2780
- }, Nc = Ur(), ve = "data-scroll-locked", Oc = function(e, t, n, r) {
2828
+ }, kc = Hr(), me = "data-scroll-locked", Dc = function(e, t, n, r) {
2781
2829
  var o = e.left, i = e.top, c = e.right, s = e.gap;
2782
2830
  return n === void 0 && (n = "margin"), `
2783
- .`.concat(ac, ` {
2831
+ .`.concat(_c, ` {
2784
2832
  overflow: hidden `).concat(r, `;
2785
2833
  padding-right: `).concat(s, "px ").concat(r, `;
2786
2834
  }
2787
- body[`).concat(ve, `] {
2835
+ body[`).concat(me, `] {
2788
2836
  overflow: hidden `).concat(r, `;
2789
2837
  overscroll-behavior: contain;
2790
2838
  `).concat([
@@ -2801,247 +2849,247 @@ var Cc = function() {
2801
2849
  ].filter(Boolean).join(""), `
2802
2850
  }
2803
2851
 
2804
- .`).concat(Ze, ` {
2852
+ .`).concat(Ve, ` {
2805
2853
  right: `).concat(s, "px ").concat(r, `;
2806
2854
  }
2807
2855
 
2808
- .`).concat(Ve, ` {
2856
+ .`).concat(Ke, ` {
2809
2857
  margin-right: `).concat(s, "px ").concat(r, `;
2810
2858
  }
2811
2859
 
2812
- .`).concat(Ze, " .").concat(Ze, ` {
2860
+ .`).concat(Ve, " .").concat(Ve, ` {
2813
2861
  right: 0 `).concat(r, `;
2814
2862
  }
2815
2863
 
2816
- .`).concat(Ve, " .").concat(Ve, ` {
2864
+ .`).concat(Ke, " .").concat(Ke, ` {
2817
2865
  margin-right: 0 `).concat(r, `;
2818
2866
  }
2819
2867
 
2820
- body[`).concat(ve, `] {
2821
- `).concat(uc, ": ").concat(s, `px;
2868
+ body[`).concat(me, `] {
2869
+ `).concat(vc, ": ").concat(s, `px;
2822
2870
  }
2823
2871
  `);
2824
- }, Cn = function() {
2825
- var e = parseInt(document.body.getAttribute(ve) || "0", 10);
2872
+ }, En = function() {
2873
+ var e = parseInt(document.body.getAttribute(me) || "0", 10);
2826
2874
  return isFinite(e) ? e : 0;
2827
- }, Ac = function() {
2828
- E(function() {
2829
- return document.body.setAttribute(ve, (Cn() + 1).toString()), function() {
2830
- var e = Cn() - 1;
2831
- e <= 0 ? document.body.removeAttribute(ve) : document.body.setAttribute(ve, e.toString());
2875
+ }, xc = function() {
2876
+ N(function() {
2877
+ return document.body.setAttribute(me, (En() + 1).toString()), function() {
2878
+ var e = En() - 1;
2879
+ e <= 0 ? document.body.removeAttribute(me) : document.body.setAttribute(me, e.toString());
2832
2880
  };
2833
2881
  }, []);
2834
- }, Rc = function(e) {
2882
+ }, Mc = function(e) {
2835
2883
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2836
- Ac();
2837
- var i = D(function() {
2838
- return Pc(o);
2884
+ xc();
2885
+ var i = x(function() {
2886
+ return Tc(o);
2839
2887
  }, [o]);
2840
- return T(Nc, { styles: Oc(i, !t, o, n ? "" : "!important") });
2888
+ return D(kc, { styles: Dc(i, !t, o, n ? "" : "!important") });
2841
2889
  }, Ct = !1;
2842
2890
  if (typeof window < "u")
2843
2891
  try {
2844
- var Fe = Object.defineProperty({}, "passive", {
2892
+ var Ue = Object.defineProperty({}, "passive", {
2845
2893
  get: function() {
2846
2894
  return Ct = !0, !0;
2847
2895
  }
2848
2896
  });
2849
- window.addEventListener("test", Fe, Fe), window.removeEventListener("test", Fe, Fe);
2897
+ window.addEventListener("test", Ue, Ue), window.removeEventListener("test", Ue, Ue);
2850
2898
  } catch {
2851
2899
  Ct = !1;
2852
2900
  }
2853
- var de = Ct ? { passive: !1 } : !1, Ic = function(e) {
2901
+ var pe = Ct ? { passive: !1 } : !1, zc = function(e) {
2854
2902
  return e.tagName === "TEXTAREA";
2855
- }, jr = function(e, t) {
2903
+ }, Zr = function(e, t) {
2856
2904
  if (!(e instanceof Element))
2857
2905
  return !1;
2858
2906
  var n = window.getComputedStyle(e);
2859
2907
  return (
2860
2908
  // not-not-scrollable
2861
2909
  n[t] !== "hidden" && // contains scroll inside self
2862
- !(n.overflowY === n.overflowX && !Ic(e) && n[t] === "visible")
2910
+ !(n.overflowY === n.overflowX && !zc(e) && n[t] === "visible")
2863
2911
  );
2864
- }, Tc = function(e) {
2865
- return jr(e, "overflowY");
2866
- }, kc = function(e) {
2867
- return jr(e, "overflowX");
2868
- }, Sn = function(e, t) {
2912
+ }, $c = function(e) {
2913
+ return Zr(e, "overflowY");
2914
+ }, Lc = function(e) {
2915
+ return Zr(e, "overflowX");
2916
+ }, Pn = function(e, t) {
2869
2917
  var n = t.ownerDocument, r = t;
2870
2918
  do {
2871
2919
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2872
- var o = Wr(e, r);
2920
+ var o = Vr(e, r);
2873
2921
  if (o) {
2874
- var i = Br(e, r), c = i[1], s = i[2];
2922
+ var i = Kr(e, r), c = i[1], s = i[2];
2875
2923
  if (c > s)
2876
2924
  return !0;
2877
2925
  }
2878
2926
  r = r.parentNode;
2879
2927
  } while (r && r !== n.body);
2880
2928
  return !1;
2881
- }, Dc = function(e) {
2929
+ }, Fc = function(e) {
2882
2930
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2883
2931
  return [
2884
2932
  t,
2885
2933
  n,
2886
2934
  r
2887
2935
  ];
2888
- }, xc = function(e) {
2936
+ }, Uc = function(e) {
2889
2937
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2890
2938
  return [
2891
2939
  t,
2892
2940
  n,
2893
2941
  r
2894
2942
  ];
2895
- }, Wr = function(e, t) {
2896
- return e === "v" ? Tc(t) : kc(t);
2897
- }, Br = function(e, t) {
2898
- return e === "v" ? Dc(t) : xc(t);
2899
- }, Mc = function(e, t) {
2943
+ }, Vr = function(e, t) {
2944
+ return e === "v" ? $c(t) : Lc(t);
2945
+ }, Kr = function(e, t) {
2946
+ return e === "v" ? Fc(t) : Uc(t);
2947
+ }, jc = function(e, t) {
2900
2948
  return e === "h" && t === "rtl" ? -1 : 1;
2901
- }, zc = function(e, t, n, r, o) {
2902
- var i = Mc(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, a = t.contains(s), u = !1, l = c > 0, d = 0, _ = 0;
2949
+ }, Wc = function(e, t, n, r, o) {
2950
+ var i = jc(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, a = t.contains(s), u = !1, l = c > 0, d = 0, _ = 0;
2903
2951
  do {
2904
2952
  if (!s)
2905
2953
  break;
2906
- var m = Br(e, s), g = m[0], f = m[1], v = m[2], h = f - v - i * g;
2907
- (g || h) && Wr(e, s) && (d += h, _ += g);
2908
- var y = s.parentNode;
2909
- s = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
2954
+ var v = Kr(e, s), S = v[0], p = v[1], h = v[2], y = p - h - i * S;
2955
+ (S || y) && Vr(e, s) && (d += y, _ += S);
2956
+ var m = s.parentNode;
2957
+ s = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
2910
2958
  } while (
2911
2959
  // portaled content
2912
2960
  !a && s !== document.body || // self content
2913
2961
  a && (t.contains(s) || t === s)
2914
2962
  );
2915
2963
  return (l && Math.abs(d) < 1 || !l && Math.abs(_) < 1) && (u = !0), u;
2916
- }, Ue = function(e) {
2964
+ }, je = function(e) {
2917
2965
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2918
- }, wn = function(e) {
2966
+ }, Nn = function(e) {
2919
2967
  return [e.deltaX, e.deltaY];
2920
- }, En = function(e) {
2968
+ }, On = function(e) {
2921
2969
  return e && "current" in e ? e.current : e;
2922
- }, $c = function(e, t) {
2970
+ }, Bc = function(e, t) {
2923
2971
  return e[0] === t[0] && e[1] === t[1];
2924
- }, Lc = function(e) {
2972
+ }, Hc = function(e) {
2925
2973
  return `
2926
2974
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2927
2975
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2928
2976
  `);
2929
- }, Fc = 0, fe = [];
2930
- function Uc(e) {
2931
- var t = S([]), n = S([0, 0]), r = S(), o = R(Fc++)[0], i = R(Ur)[0], c = S(e);
2932
- E(function() {
2977
+ }, Zc = 0, _e = [];
2978
+ function Vc(e) {
2979
+ var t = P([]), n = P([0, 0]), r = P(), o = I(Zc++)[0], i = I(Hr)[0], c = P(e);
2980
+ N(function() {
2933
2981
  c.current = e;
2934
- }, [e]), E(function() {
2982
+ }, [e]), N(function() {
2935
2983
  if (e.inert) {
2936
2984
  document.body.classList.add("block-interactivity-".concat(o));
2937
- var f = cc([e.lockRef.current], (e.shards || []).map(En), !0).filter(Boolean);
2938
- return f.forEach(function(v) {
2939
- return v.classList.add("allow-interactivity-".concat(o));
2985
+ var p = pc([e.lockRef.current], (e.shards || []).map(On), !0).filter(Boolean);
2986
+ return p.forEach(function(h) {
2987
+ return h.classList.add("allow-interactivity-".concat(o));
2940
2988
  }), function() {
2941
- document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(v) {
2942
- return v.classList.remove("allow-interactivity-".concat(o));
2989
+ document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(h) {
2990
+ return h.classList.remove("allow-interactivity-".concat(o));
2943
2991
  });
2944
2992
  };
2945
2993
  }
2946
2994
  }, [e.inert, e.lockRef.current, e.shards]);
2947
- var s = M(function(f, v) {
2948
- if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
2995
+ var s = z(function(p, h) {
2996
+ if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
2949
2997
  return !c.current.allowPinchZoom;
2950
- var h = Ue(f), y = n.current, b = "deltaX" in f ? f.deltaX : y[0] - h[0], C = "deltaY" in f ? f.deltaY : y[1] - h[1], O, k = f.target, w = Math.abs(b) > Math.abs(C) ? "h" : "v";
2951
- if ("touches" in f && w === "h" && k.type === "range")
2998
+ var y = je(p), m = n.current, b = "deltaX" in p ? p.deltaX : m[0] - y[0], g = "deltaY" in p ? p.deltaY : m[1] - y[1], E, C = p.target, w = Math.abs(b) > Math.abs(g) ? "h" : "v";
2999
+ if ("touches" in p && w === "h" && C.type === "range")
2952
3000
  return !1;
2953
- var F = window.getSelection(), le = F && F.anchorNode, Se = le ? le === k || le.contains(k) : !1;
2954
- if (Se)
3001
+ var R = window.getSelection(), Q = R && R.anchorNode, F = Q ? Q === C || Q.contains(C) : !1;
3002
+ if (F)
2955
3003
  return !1;
2956
- var xe = Sn(w, k);
2957
- if (!xe)
3004
+ var Me = Pn(w, C);
3005
+ if (!Me)
2958
3006
  return !0;
2959
- if (xe ? O = w : (O = w === "v" ? "h" : "v", xe = Sn(w, k)), !xe)
3007
+ if (Me ? E = w : (E = w === "v" ? "h" : "v", Me = Pn(w, C)), !Me)
2960
3008
  return !1;
2961
- if (!r.current && "changedTouches" in f && (b || C) && (r.current = O), !O)
3009
+ if (!r.current && "changedTouches" in p && (b || g) && (r.current = E), !E)
2962
3010
  return !0;
2963
- var jt = r.current || O;
2964
- return zc(jt, v, f, jt === "h" ? b : C);
2965
- }, []), a = M(function(f) {
2966
- var v = f;
2967
- if (!(!fe.length || fe[fe.length - 1] !== i)) {
2968
- var h = "deltaY" in v ? wn(v) : Ue(v), y = t.current.filter(function(O) {
2969
- return O.name === v.type && (O.target === v.target || v.target === O.shadowParent) && $c(O.delta, h);
3011
+ var Wt = r.current || E;
3012
+ return Wc(Wt, h, p, Wt === "h" ? b : g);
3013
+ }, []), a = z(function(p) {
3014
+ var h = p;
3015
+ if (!(!_e.length || _e[_e.length - 1] !== i)) {
3016
+ var y = "deltaY" in h ? Nn(h) : je(h), m = t.current.filter(function(E) {
3017
+ return E.name === h.type && (E.target === h.target || h.target === E.shadowParent) && Bc(E.delta, y);
2970
3018
  })[0];
2971
- if (y && y.should) {
2972
- v.cancelable && v.preventDefault();
3019
+ if (m && m.should) {
3020
+ h.cancelable && h.preventDefault();
2973
3021
  return;
2974
3022
  }
2975
- if (!y) {
2976
- var b = (c.current.shards || []).map(En).filter(Boolean).filter(function(O) {
2977
- return O.contains(v.target);
2978
- }), C = b.length > 0 ? s(v, b[0]) : !c.current.noIsolation;
2979
- C && v.cancelable && v.preventDefault();
3023
+ if (!m) {
3024
+ var b = (c.current.shards || []).map(On).filter(Boolean).filter(function(E) {
3025
+ return E.contains(h.target);
3026
+ }), g = b.length > 0 ? s(h, b[0]) : !c.current.noIsolation;
3027
+ g && h.cancelable && h.preventDefault();
2980
3028
  }
2981
3029
  }
2982
- }, []), u = M(function(f, v, h, y) {
2983
- var b = { name: f, delta: v, target: h, should: y, shadowParent: jc(h) };
3030
+ }, []), u = z(function(p, h, y, m) {
3031
+ var b = { name: p, delta: h, target: y, should: m, shadowParent: Kc(y) };
2984
3032
  t.current.push(b), setTimeout(function() {
2985
- t.current = t.current.filter(function(C) {
2986
- return C !== b;
3033
+ t.current = t.current.filter(function(g) {
3034
+ return g !== b;
2987
3035
  });
2988
3036
  }, 1);
2989
- }, []), l = M(function(f) {
2990
- n.current = Ue(f), r.current = void 0;
2991
- }, []), d = M(function(f) {
2992
- u(f.type, wn(f), f.target, s(f, e.lockRef.current));
2993
- }, []), _ = M(function(f) {
2994
- u(f.type, Ue(f), f.target, s(f, e.lockRef.current));
3037
+ }, []), l = z(function(p) {
3038
+ n.current = je(p), r.current = void 0;
3039
+ }, []), d = z(function(p) {
3040
+ u(p.type, Nn(p), p.target, s(p, e.lockRef.current));
3041
+ }, []), _ = z(function(p) {
3042
+ u(p.type, je(p), p.target, s(p, e.lockRef.current));
2995
3043
  }, []);
2996
- E(function() {
2997
- return fe.push(i), e.setCallbacks({
3044
+ N(function() {
3045
+ return _e.push(i), e.setCallbacks({
2998
3046
  onScrollCapture: d,
2999
3047
  onWheelCapture: d,
3000
3048
  onTouchMoveCapture: _
3001
- }), document.addEventListener("wheel", a, de), document.addEventListener("touchmove", a, de), document.addEventListener("touchstart", l, de), function() {
3002
- fe = fe.filter(function(f) {
3003
- return f !== i;
3004
- }), document.removeEventListener("wheel", a, de), document.removeEventListener("touchmove", a, de), document.removeEventListener("touchstart", l, de);
3049
+ }), document.addEventListener("wheel", a, pe), document.addEventListener("touchmove", a, pe), document.addEventListener("touchstart", l, pe), function() {
3050
+ _e = _e.filter(function(p) {
3051
+ return p !== i;
3052
+ }), document.removeEventListener("wheel", a, pe), document.removeEventListener("touchmove", a, pe), document.removeEventListener("touchstart", l, pe);
3005
3053
  };
3006
3054
  }, []);
3007
- var m = e.removeScrollBar, g = e.inert;
3008
- return T(
3009
- W,
3055
+ var v = e.removeScrollBar, S = e.inert;
3056
+ return D(
3057
+ B,
3010
3058
  null,
3011
- g ? T(i, { styles: Lc(o) }) : null,
3012
- m ? T(Rc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3059
+ S ? D(i, { styles: Hc(o) }) : null,
3060
+ v ? D(Mc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3013
3061
  );
3014
3062
  }
3015
- function jc(e) {
3063
+ function Kc(e) {
3016
3064
  for (var t = null; e !== null; )
3017
3065
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3018
3066
  return t;
3019
3067
  }
3020
- const Wc = hc(Fr, Uc);
3021
- var Hr = P(function(e, t) {
3022
- return T(it, H({}, e, { ref: t, sideCar: Wc }));
3068
+ const qc = Sc(Br, Vc);
3069
+ var qr = O(function(e, t) {
3070
+ return D(it, V({}, e, { ref: t, sideCar: qc }));
3023
3071
  });
3024
- Hr.classNames = it.classNames;
3025
- var Bc = function(e) {
3072
+ qr.classNames = it.classNames;
3073
+ var Gc = function(e) {
3026
3074
  if (typeof document > "u")
3027
3075
  return null;
3028
3076
  var t = Array.isArray(e) ? e[0] : e;
3029
3077
  return t.ownerDocument.body;
3030
- }, pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {}, ht = 0, Zr = function(e) {
3031
- return e && (e.host || Zr(e.parentNode));
3032
- }, Hc = function(e, t) {
3078
+ }, ve = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Be = {}, ht = 0, Gr = function(e) {
3079
+ return e && (e.host || Gr(e.parentNode));
3080
+ }, Yc = function(e, t) {
3033
3081
  return t.map(function(n) {
3034
3082
  if (e.contains(n))
3035
3083
  return n;
3036
- var r = Zr(n);
3084
+ var r = Gr(n);
3037
3085
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
3038
3086
  }).filter(function(n) {
3039
3087
  return !!n;
3040
3088
  });
3041
- }, Zc = function(e, t, n, r) {
3042
- var o = Hc(t, Array.isArray(e) ? e : [e]);
3043
- We[n] || (We[n] = /* @__PURE__ */ new WeakMap());
3044
- var i = We[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(o), u = function(d) {
3089
+ }, Xc = function(e, t, n, r) {
3090
+ var o = Yc(t, Array.isArray(e) ? e : [e]);
3091
+ Be[n] || (Be[n] = /* @__PURE__ */ new WeakMap());
3092
+ var i = Be[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(o), u = function(d) {
3045
3093
  !d || s.has(d) || (s.add(d), u(d.parentNode));
3046
3094
  };
3047
3095
  o.forEach(u);
@@ -3051,26 +3099,26 @@ var Bc = function(e) {
3051
3099
  l(_);
3052
3100
  else
3053
3101
  try {
3054
- var m = _.getAttribute(r), g = m !== null && m !== "false", f = (pe.get(_) || 0) + 1, v = (i.get(_) || 0) + 1;
3055
- pe.set(_, f), i.set(_, v), c.push(_), f === 1 && g && je.set(_, !0), v === 1 && _.setAttribute(n, "true"), g || _.setAttribute(r, "true");
3056
- } catch (h) {
3057
- console.error("aria-hidden: cannot operate on ", _, h);
3102
+ var v = _.getAttribute(r), S = v !== null && v !== "false", p = (ve.get(_) || 0) + 1, h = (i.get(_) || 0) + 1;
3103
+ ve.set(_, p), i.set(_, h), c.push(_), p === 1 && S && We.set(_, !0), h === 1 && _.setAttribute(n, "true"), S || _.setAttribute(r, "true");
3104
+ } catch (y) {
3105
+ console.error("aria-hidden: cannot operate on ", _, y);
3058
3106
  }
3059
3107
  });
3060
3108
  };
3061
3109
  return l(t), s.clear(), ht++, function() {
3062
3110
  c.forEach(function(d) {
3063
- var _ = pe.get(d) - 1, m = i.get(d) - 1;
3064
- pe.set(d, _), i.set(d, m), _ || (je.has(d) || d.removeAttribute(r), je.delete(d)), m || d.removeAttribute(n);
3065
- }), ht--, ht || (pe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {});
3111
+ var _ = ve.get(d) - 1, v = i.get(d) - 1;
3112
+ ve.set(d, _), i.set(d, v), _ || (We.has(d) || d.removeAttribute(r), We.delete(d)), v || d.removeAttribute(n);
3113
+ }), ht--, ht || (ve = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Be = {});
3066
3114
  };
3067
- }, Vc = function(e, t, n) {
3115
+ }, Jc = function(e, t, n) {
3068
3116
  n === void 0 && (n = "data-aria-hidden");
3069
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Bc(e);
3070
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Zc(r, o, n, "aria-hidden")) : function() {
3117
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Gc(e);
3118
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Xc(r, o, n, "aria-hidden")) : function() {
3071
3119
  return null;
3072
3120
  };
3073
- }, st = "Dialog", [Vr] = ke(st), [Kc, V] = Vr(st), Kr = (e) => {
3121
+ }, st = "Dialog", [Yr] = ke(st), [Qc, Z] = Yr(st), Xr = (e) => {
3074
3122
  const {
3075
3123
  __scopeDialog: t,
3076
3124
  children: n,
@@ -3078,14 +3126,14 @@ var Bc = function(e) {
3078
3126
  defaultOpen: o,
3079
3127
  onOpenChange: i,
3080
3128
  modal: c = !0
3081
- } = e, s = S(null), a = S(null), [u, l] = De({
3129
+ } = e, s = P(null), a = P(null), [u, l] = De({
3082
3130
  prop: r,
3083
3131
  defaultProp: o ?? !1,
3084
3132
  onChange: i,
3085
3133
  caller: st
3086
3134
  });
3087
- return /* @__PURE__ */ p(
3088
- Kc,
3135
+ return /* @__PURE__ */ f(
3136
+ Qc,
3089
3137
  {
3090
3138
  scope: t,
3091
3139
  triggerRef: s,
@@ -3095,51 +3143,56 @@ var Bc = function(e) {
3095
3143
  descriptionId: Oe(),
3096
3144
  open: u,
3097
3145
  onOpenChange: l,
3098
- onOpenToggle: M(() => l((d) => !d), [l]),
3146
+ onOpenToggle: z(() => l((d) => !d), [l]),
3099
3147
  modal: c,
3100
3148
  children: n
3101
3149
  }
3102
3150
  );
3103
3151
  };
3104
- Kr.displayName = st;
3105
- var qr = "DialogTrigger", qc = P(
3152
+ Xr.displayName = st;
3153
+ var Jr = "DialogTrigger", ea = O(
3106
3154
  (e, t) => {
3107
- const { __scopeDialog: n, ...r } = e, o = V(qr, n), i = L(t, o.triggerRef);
3108
- return /* @__PURE__ */ p(
3109
- $.button,
3155
+ const { __scopeDialog: n, ...r } = e, o = Z(Jr, n), i = U(t, o.triggerRef);
3156
+ return /* @__PURE__ */ f(
3157
+ L.button,
3110
3158
  {
3111
3159
  type: "button",
3112
3160
  "aria-haspopup": "dialog",
3113
3161
  "aria-expanded": o.open,
3114
3162
  "aria-controls": o.contentId,
3115
- "data-state": Ut(o.open),
3163
+ "data-state": jt(o.open),
3116
3164
  ...r,
3117
3165
  ref: i,
3118
- onClick: j(e.onClick, o.onOpenToggle)
3166
+ onClick: W(e.onClick, o.onOpenToggle)
3119
3167
  }
3120
3168
  );
3121
3169
  }
3122
3170
  );
3123
- qc.displayName = qr;
3124
- var Gc = "DialogPortal", [da, Gr] = Vr(Gc, {
3171
+ ea.displayName = Jr;
3172
+ var Ft = "DialogPortal", [ta, Qr] = Yr(Ft, {
3125
3173
  forceMount: void 0
3126
- }), Je = "DialogOverlay", Yc = P(
3174
+ }), eo = (e) => {
3175
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = Z(Ft, t);
3176
+ return /* @__PURE__ */ f(ta, { scope: t, forceMount: n, children: q.map(r, (c) => /* @__PURE__ */ f(xe, { present: n || i.open, children: /* @__PURE__ */ f(Ur, { asChild: !0, container: o, children: c }) })) });
3177
+ };
3178
+ eo.displayName = Ft;
3179
+ var Qe = "DialogOverlay", na = O(
3127
3180
  (e, t) => {
3128
- const n = Gr(Je, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(Je, e.__scopeDialog);
3129
- return i.modal ? /* @__PURE__ */ p(et, { present: r || i.open, children: /* @__PURE__ */ p(Jc, { ...o, ref: t }) }) : null;
3181
+ const n = Qr(Qe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = Z(Qe, e.__scopeDialog);
3182
+ return i.modal ? /* @__PURE__ */ f(xe, { present: r || i.open, children: /* @__PURE__ */ f(oa, { ...o, ref: t }) }) : null;
3130
3183
  }
3131
3184
  );
3132
- Yc.displayName = Je;
3133
- var Xc = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), Jc = P(
3185
+ na.displayName = Qe;
3186
+ var ra = /* @__PURE__ */ Xe("DialogOverlay.RemoveScroll"), oa = O(
3134
3187
  (e, t) => {
3135
- const { __scopeDialog: n, ...r } = e, o = V(Je, n);
3188
+ const { __scopeDialog: n, ...r } = e, o = Z(Qe, n);
3136
3189
  return (
3137
3190
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
3138
3191
  // ie. when `Overlay` and `Content` are siblings
3139
- /* @__PURE__ */ p(Hr, { as: Xc, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ p(
3140
- $.div,
3192
+ /* @__PURE__ */ f(qr, { as: ra, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ f(
3193
+ L.div,
3141
3194
  {
3142
- "data-state": Ut(o.open),
3195
+ "data-state": jt(o.open),
3143
3196
  ...r,
3144
3197
  ref: t,
3145
3198
  style: { pointerEvents: "auto", ...r.style }
@@ -3147,45 +3200,45 @@ var Xc = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), Jc = P(
3147
3200
  ) })
3148
3201
  );
3149
3202
  }
3150
- ), ce = "DialogContent", Yr = P(
3203
+ ), le = "DialogContent", to = O(
3151
3204
  (e, t) => {
3152
- const n = Gr(ce, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(ce, e.__scopeDialog);
3153
- return /* @__PURE__ */ p(et, { present: r || i.open, children: i.modal ? /* @__PURE__ */ p(Qc, { ...o, ref: t }) : /* @__PURE__ */ p(ea, { ...o, ref: t }) });
3205
+ const n = Qr(le, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = Z(le, e.__scopeDialog);
3206
+ return /* @__PURE__ */ f(xe, { present: r || i.open, children: i.modal ? /* @__PURE__ */ f(ia, { ...o, ref: t }) : /* @__PURE__ */ f(sa, { ...o, ref: t }) });
3154
3207
  }
3155
3208
  );
3156
- Yr.displayName = ce;
3157
- var Qc = P(
3209
+ to.displayName = le;
3210
+ var ia = O(
3158
3211
  (e, t) => {
3159
- const n = V(ce, e.__scopeDialog), r = S(null), o = L(t, n.contentRef, r);
3160
- return E(() => {
3212
+ const n = Z(le, e.__scopeDialog), r = P(null), o = U(t, n.contentRef, r);
3213
+ return N(() => {
3161
3214
  const i = r.current;
3162
- if (i) return Vc(i);
3163
- }, []), /* @__PURE__ */ p(
3164
- Xr,
3215
+ if (i) return Jc(i);
3216
+ }, []), /* @__PURE__ */ f(
3217
+ no,
3165
3218
  {
3166
3219
  ...e,
3167
3220
  ref: o,
3168
3221
  trapFocus: n.open,
3169
3222
  disableOutsidePointerEvents: !0,
3170
- onCloseAutoFocus: j(e.onCloseAutoFocus, (i) => {
3223
+ onCloseAutoFocus: W(e.onCloseAutoFocus, (i) => {
3171
3224
  i.preventDefault(), n.triggerRef.current?.focus();
3172
3225
  }),
3173
- onPointerDownOutside: j(e.onPointerDownOutside, (i) => {
3226
+ onPointerDownOutside: W(e.onPointerDownOutside, (i) => {
3174
3227
  const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
3175
3228
  (c.button === 2 || s) && i.preventDefault();
3176
3229
  }),
3177
- onFocusOutside: j(
3230
+ onFocusOutside: W(
3178
3231
  e.onFocusOutside,
3179
3232
  (i) => i.preventDefault()
3180
3233
  )
3181
3234
  }
3182
3235
  );
3183
3236
  }
3184
- ), ea = P(
3237
+ ), sa = O(
3185
3238
  (e, t) => {
3186
- const n = V(ce, e.__scopeDialog), r = S(!1), o = S(!1);
3187
- return /* @__PURE__ */ p(
3188
- Xr,
3239
+ const n = Z(le, e.__scopeDialog), r = P(!1), o = P(!1);
3240
+ return /* @__PURE__ */ f(
3241
+ no,
3189
3242
  {
3190
3243
  ...e,
3191
3244
  ref: t,
@@ -3202,26 +3255,26 @@ var Qc = P(
3202
3255
  }
3203
3256
  );
3204
3257
  }
3205
- ), Xr = P(
3258
+ ), no = O(
3206
3259
  (e, t) => {
3207
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = e, s = V(ce, n), a = S(null), u = L(t, a);
3208
- return sc(), /* @__PURE__ */ p(W, { children: [
3209
- /* @__PURE__ */ p(
3210
- Mr,
3260
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = e, s = Z(le, n), a = P(null), u = U(t, a);
3261
+ return fc(), /* @__PURE__ */ f(B, { children: [
3262
+ /* @__PURE__ */ f(
3263
+ Lr,
3211
3264
  {
3212
3265
  asChild: !0,
3213
3266
  loop: !0,
3214
3267
  trapped: r,
3215
3268
  onMountAutoFocus: o,
3216
3269
  onUnmountAutoFocus: i,
3217
- children: /* @__PURE__ */ p(
3218
- Dr,
3270
+ children: /* @__PURE__ */ f(
3271
+ zr,
3219
3272
  {
3220
3273
  role: "dialog",
3221
3274
  id: s.contentId,
3222
3275
  "aria-describedby": s.descriptionId,
3223
3276
  "aria-labelledby": s.titleId,
3224
- "data-state": Ut(s.open),
3277
+ "data-state": jt(s.open),
3225
3278
  ...c,
3226
3279
  ref: u,
3227
3280
  onDismiss: () => s.onOpenChange(!1)
@@ -3229,66 +3282,66 @@ var Qc = P(
3229
3282
  )
3230
3283
  }
3231
3284
  ),
3232
- /* @__PURE__ */ p(W, { children: [
3233
- /* @__PURE__ */ p(ta, { titleId: s.titleId }),
3234
- /* @__PURE__ */ p(ra, { contentRef: a, descriptionId: s.descriptionId })
3285
+ /* @__PURE__ */ f(B, { children: [
3286
+ /* @__PURE__ */ f(ca, { titleId: s.titleId }),
3287
+ /* @__PURE__ */ f(ua, { contentRef: a, descriptionId: s.descriptionId })
3235
3288
  ] })
3236
3289
  ] });
3237
3290
  }
3238
- ), Ft = "DialogTitle", Jr = P(
3291
+ ), Ut = "DialogTitle", ro = O(
3239
3292
  (e, t) => {
3240
- const { __scopeDialog: n, ...r } = e, o = V(Ft, n);
3241
- return /* @__PURE__ */ p($.h2, { id: o.titleId, ...r, ref: t });
3293
+ const { __scopeDialog: n, ...r } = e, o = Z(Ut, n);
3294
+ return /* @__PURE__ */ f(L.h2, { id: o.titleId, ...r, ref: t });
3242
3295
  }
3243
3296
  );
3244
- Jr.displayName = Ft;
3245
- var Qr = "DialogDescription", eo = P(
3297
+ ro.displayName = Ut;
3298
+ var oo = "DialogDescription", io = O(
3246
3299
  (e, t) => {
3247
- const { __scopeDialog: n, ...r } = e, o = V(Qr, n);
3248
- return /* @__PURE__ */ p($.p, { id: o.descriptionId, ...r, ref: t });
3300
+ const { __scopeDialog: n, ...r } = e, o = Z(oo, n);
3301
+ return /* @__PURE__ */ f(L.p, { id: o.descriptionId, ...r, ref: t });
3249
3302
  }
3250
3303
  );
3251
- eo.displayName = Qr;
3252
- var to = "DialogClose", no = P(
3304
+ io.displayName = oo;
3305
+ var so = "DialogClose", co = O(
3253
3306
  (e, t) => {
3254
- const { __scopeDialog: n, ...r } = e, o = V(to, n);
3255
- return /* @__PURE__ */ p(
3256
- $.button,
3307
+ const { __scopeDialog: n, ...r } = e, o = Z(so, n);
3308
+ return /* @__PURE__ */ f(
3309
+ L.button,
3257
3310
  {
3258
3311
  type: "button",
3259
3312
  ...r,
3260
3313
  ref: t,
3261
- onClick: j(e.onClick, () => o.onOpenChange(!1))
3314
+ onClick: W(e.onClick, () => o.onOpenChange(!1))
3262
3315
  }
3263
3316
  );
3264
3317
  }
3265
3318
  );
3266
- no.displayName = to;
3267
- function Ut(e) {
3319
+ co.displayName = so;
3320
+ function jt(e) {
3268
3321
  return e ? "open" : "closed";
3269
3322
  }
3270
- var ro = "DialogTitleWarning", [fa, oo] = Ui(ro, {
3271
- contentName: ce,
3272
- titleName: Ft,
3323
+ var ao = "DialogTitleWarning", [ga, uo] = Zi(ao, {
3324
+ contentName: le,
3325
+ titleName: Ut,
3273
3326
  docsSlug: "dialog"
3274
- }), ta = ({ titleId: e }) => {
3275
- const t = oo(ro), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3327
+ }), ca = ({ titleId: e }) => {
3328
+ const t = uo(ao), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3276
3329
 
3277
3330
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
3278
3331
 
3279
3332
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
3280
- return E(() => {
3333
+ return N(() => {
3281
3334
  e && (document.getElementById(e) || console.error(n));
3282
3335
  }, [n, e]), null;
3283
- }, na = "DialogDescriptionWarning", ra = ({ contentRef: e, descriptionId: t }) => {
3284
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oo(na).contentName}}.`;
3285
- return E(() => {
3336
+ }, aa = "DialogDescriptionWarning", ua = ({ contentRef: e, descriptionId: t }) => {
3337
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${uo(aa).contentName}}.`;
3338
+ return N(() => {
3286
3339
  const o = e.current?.getAttribute("aria-describedby");
3287
3340
  t && o && (document.getElementById(t) || console.warn(r));
3288
3341
  }, [r, e, t]), null;
3289
- }, oa = Kr, ia = Yr, sa = Jr, ca = eo, Pn = no;
3290
- const aa = ({
3291
- noTarget: e = !0,
3342
+ }, la = Xr, da = eo, fa = to, pa = ro, _a = io, An = co;
3343
+ const va = ({
3344
+ container: e,
3292
3345
  heading: t = "We use cookies.",
3293
3346
  subheading: n = "Please define your selection below.",
3294
3347
  selectLabel: r = "Select",
@@ -3299,88 +3352,84 @@ const aa = ({
3299
3352
  privacyPolicy: a,
3300
3353
  items: u
3301
3354
  }) => {
3302
- const { onSave: l, onDeclineAll: d, selectionTaken: _ } = Tr(), [m, g] = R(void 0), [f, v] = R(s);
3303
- return /* @__PURE__ */ p(oa, { open: !_, children: /* @__PURE__ */ p(
3304
- ia,
3355
+ const { onSave: l, onDeclineAll: d, selectionTaken: _ } = xr(), [v, S] = I(void 0), [p, h] = I(s);
3356
+ return /* @__PURE__ */ f(la, { open: !_, children: /* @__PURE__ */ f(da, { container: e, children: /* @__PURE__ */ f(
3357
+ fa,
3305
3358
  {
3306
- className: He({
3307
- [U.root]: !0,
3308
- [U.noTarget]: e
3359
+ className: Ze({
3360
+ [j.root]: !0,
3361
+ [j.noTarget]: !e
3309
3362
  }),
3310
- children: /* @__PURE__ */ p(
3311
- lr,
3363
+ children: /* @__PURE__ */ f(
3364
+ pr,
3312
3365
  {
3313
- open: f,
3314
- onOpenChange: v,
3315
- className: U.collapsible,
3366
+ open: p,
3367
+ onOpenChange: h,
3368
+ className: j.collapsible,
3316
3369
  children: [
3317
- /* @__PURE__ */ p("div", { className: U.header, children: [
3318
- /* @__PURE__ */ p("div", { className: U.heading, children: [
3319
- /* @__PURE__ */ p(sa, { asChild: !0, children: /* @__PURE__ */ p(ie, { weight: "bold", children: t }) }),
3320
- /* @__PURE__ */ p(ca, { asChild: !0, children: /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n }) })
3370
+ /* @__PURE__ */ f("div", { className: j.header, children: [
3371
+ /* @__PURE__ */ f("div", { className: j.heading, children: [
3372
+ /* @__PURE__ */ f(pa, { asChild: !0, children: /* @__PURE__ */ f(ce, { weight: "bold", children: t }) }),
3373
+ /* @__PURE__ */ f(_a, { asChild: !0, children: /* @__PURE__ */ f(ce, { size: "caption", color: "muted", children: n }) })
3321
3374
  ] }),
3322
- /* @__PURE__ */ p(dr, { asChild: !0, children: /* @__PURE__ */ p(ut, { variant: "ghost", children: [
3323
- f ? o : r,
3375
+ /* @__PURE__ */ f(_r, { asChild: !0, children: /* @__PURE__ */ f(ut, { variant: "ghost", children: [
3376
+ p ? o : r,
3324
3377
  " ",
3325
- /* @__PURE__ */ p(
3326
- Is,
3378
+ /* @__PURE__ */ f(
3379
+ Ms,
3327
3380
  {
3328
3381
  size: 12,
3329
- className: He({
3330
- [U.chevron]: !0,
3331
- [U.open]: f
3382
+ className: Ze({
3383
+ [j.chevron]: !0,
3384
+ [j.open]: p
3332
3385
  })
3333
3386
  }
3334
3387
  )
3335
3388
  ] }) })
3336
3389
  ] }),
3337
- /* @__PURE__ */ p(
3338
- fr,
3390
+ /* @__PURE__ */ f(
3391
+ vr,
3339
3392
  {
3340
- className: He({
3341
- [U.settings]: !0
3393
+ className: Ze({
3394
+ [j.settings]: !0
3342
3395
  }),
3343
- children: /* @__PURE__ */ p(
3344
- ys,
3396
+ children: /* @__PURE__ */ f(
3397
+ Es,
3345
3398
  {
3346
3399
  type: "single",
3347
3400
  collapsible: !0,
3348
- value: m,
3349
- onValueChange: g,
3350
- children: u.map((h) => /* @__PURE__ */ p(Hs, { ...h, openItem: m }, h.value))
3401
+ value: v,
3402
+ onValueChange: S,
3403
+ children: u.map((y) => /* @__PURE__ */ f(Gs, { ...y, openItem: v }, y.value))
3351
3404
  }
3352
3405
  )
3353
3406
  }
3354
3407
  ),
3355
- /* @__PURE__ */ p("div", { className: U.footer, children: [
3356
- /* @__PURE__ */ p("div", { className: U.legal, children: a && /* @__PURE__ */ p(ie, { size: "caption", children: /* @__PURE__ */ p("a", { href: a.url, target: "_blank", children: a.label }) }) }),
3357
- /* @__PURE__ */ p("div", { className: U.actions, children: [
3358
- /* @__PURE__ */ p(Pn, { asChild: !0, children: /* @__PURE__ */ p(ut, { variant: "neutral", onClick: () => d(), children: c }) }),
3359
- /* @__PURE__ */ p(Pn, { asChild: !0, children: /* @__PURE__ */ p(ut, { variant: "brand", onClick: () => l(), children: i }) })
3408
+ /* @__PURE__ */ f("div", { className: j.footer, children: [
3409
+ /* @__PURE__ */ f("div", { className: j.legal, children: a && /* @__PURE__ */ f(ce, { size: "caption", children: /* @__PURE__ */ f("a", { href: a.url, target: "_blank", children: a.label }) }) }),
3410
+ /* @__PURE__ */ f("div", { className: j.actions, children: [
3411
+ /* @__PURE__ */ f(An, { asChild: !0, children: /* @__PURE__ */ f(ut, { variant: "neutral", onClick: () => d(), children: c }) }),
3412
+ /* @__PURE__ */ f(An, { asChild: !0, children: /* @__PURE__ */ f(ut, { variant: "brand", onClick: () => l(), children: i }) })
3360
3413
  ] })
3361
3414
  ] })
3362
3415
  ]
3363
3416
  }
3364
3417
  )
3365
3418
  }
3366
- ) });
3367
- }, ua = ({
3368
- localStorageKey: e = "cb-selection",
3369
- items: t,
3370
- ...n
3371
- }) => {
3372
- const r = D(
3419
+ ) }) });
3420
+ }, ha = ({ cookie: e, items: t, ...n }) => {
3421
+ const r = x(
3373
3422
  () => t.filter((o) => !o.required).map((o) => ({
3374
3423
  value: o.value,
3375
- script: o.script,
3424
+ scripts: o.scripts,
3376
3425
  defaultSelected: o.defaultSelected,
3377
3426
  required: o.required
3378
3427
  })),
3379
3428
  [t]
3380
3429
  );
3381
- return /* @__PURE__ */ p(Bs, { items: r, localStorageKey: e, children: /* @__PURE__ */ p(aa, { items: t, ...n }) });
3430
+ return /* @__PURE__ */ f(qs, { items: r, cookie: e, children: /* @__PURE__ */ f(va, { items: t, cookie: e, ...n }) });
3382
3431
  };
3383
- function pa(e, t) {
3432
+ function ya(e, t) {
3384
3433
  const n = t === void 0;
3385
3434
  let r;
3386
3435
  if (typeof t == "string") {
@@ -3390,8 +3439,8 @@ function pa(e, t) {
3390
3439
  r = o;
3391
3440
  } else
3392
3441
  r = t;
3393
- Ae(/* @__PURE__ */ p(ua, { noTarget: n, ...e }), r ?? document.body);
3442
+ Ae(/* @__PURE__ */ f(ha, { noTarget: n, ...e }), r ?? document.body);
3394
3443
  }
3395
3444
  export {
3396
- pa as mountBanner
3445
+ ya as mountBanner
3397
3446
  };