@uninspired/cookie-banner 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/react/index.cjs +1994 -4061
  2. package/dist/react/index.js +1343 -3393
  3. package/dist/react/style.css +165 -18
  4. package/dist/script/index.cjs +1 -45
  5. package/dist/script/index.js +1561 -2091
  6. package/dist/script/style.css +1 -1
  7. package/package.json +2 -4
  8. package/dist/components/Banner/Banner.js +0 -38
  9. package/dist/components/Banner/index.js +0 -1
  10. package/dist/components/BannerItem/BannerItem.js +0 -24
  11. package/dist/components/BannerItem/index.js +0 -1
  12. package/dist/components/Button/Button.js +0 -6
  13. package/dist/components/Button/index.js +0 -1
  14. package/dist/components/Switch/Switch.js +0 -7
  15. package/dist/components/Switch/index.js +0 -1
  16. package/dist/components/Text/Text.js +0 -9
  17. package/dist/components/Text/index.js +0 -1
  18. package/dist/contexts/SelectionContext.js +0 -101
  19. package/dist/react.js +0 -1
  20. package/dist/script.js +0 -1
  21. package/dist/types/components/Banner/Banner.d.ts +0 -21
  22. package/dist/types/components/Banner/index.d.ts +0 -1
  23. package/dist/types/components/BannerItem/BannerItem.d.ts +0 -23
  24. package/dist/types/components/BannerItem/index.d.ts +0 -1
  25. package/dist/types/components/Button/Button.d.ts +0 -5
  26. package/dist/types/components/Button/index.d.ts +0 -1
  27. package/dist/types/components/Switch/Switch.d.ts +0 -5
  28. package/dist/types/components/Switch/index.d.ts +0 -1
  29. package/dist/types/components/Text/Text.d.ts +0 -8
  30. package/dist/types/components/Text/index.d.ts +0 -1
  31. package/dist/types/contexts/SelectionContext.d.ts +0 -23
  32. package/dist/types/react.d.ts +0 -1
  33. package/dist/types/script.d.ts +0 -1
  34. package/dist/types/utils/classes.d.ts +0 -2
  35. package/dist/types/utils/mountBanner.d.ts +0 -2
  36. package/dist/types/utils/scriptDefinition.d.ts +0 -35
  37. package/dist/types/utils/selection.d.ts +0 -3
  38. package/dist/utils/classes.js +0 -9
  39. package/dist/utils/mountBanner.js +0 -18
  40. package/dist/utils/scriptDefinition.js +0 -21
  41. package/dist/utils/selection.js +0 -2
@@ -1,75 +1,75 @@
1
- import { options as I, toChildArray as q, Fragment as x, Component as te, createRef as ln, createContext as ne, createElement as D, cloneElement as Sr, render as Ee, hydrate as Cr } from "preact";
2
- var Pr = 0;
3
- function v(e, t, n, r, o, i) {
1
+ import { options as A, Fragment as q, Component as K, createRef as kt, createContext as ne, createElement as I, toChildArray as Z, cloneElement as Ln, render as _e, hydrate as Zn } from "preact";
2
+ var Hn = 0;
3
+ function f(e, t, n, o, r, s) {
4
4
  t || (t = {});
5
- var a, s, u = t;
6
- if ("ref" in u) for (s in u = {}, t) s == "ref" ? a = t[s] : u[s] = t[s];
7
- var c = { type: e, props: u, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Pr, __i: -1, __u: 0, __source: o, __self: i };
8
- if (typeof e == "function" && (a = e.defaultProps)) for (s in a) u[s] === void 0 && (u[s] = a[s]);
9
- return I.vnode && I.vnode(c), c;
10
- }
11
- var Z, C, qe, Nt, de = 0, fn = [], N = I, Dt = N.__b, Tt = N.__r, At = N.diffed, Rt = N.__c, kt = N.unmount, It = N.__;
12
- function oe(e, t) {
13
- N.__h && N.__h(C, e, de || t), de = 0;
5
+ var c, i, a = t;
6
+ if ("ref" in a) for (i in a = {}, t) i == "ref" ? c = t[i] : a[i] = t[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: --Hn, __i: -1, __u: 0, __source: r, __self: s };
8
+ if (typeof e == "function" && (c = e.defaultProps)) for (i in c) a[i] === void 0 && (a[i] = c[i]);
9
+ return A.vnode && A.vnode(u), u;
10
+ }
11
+ var M, C, Me, it, oe = 0, Rt = [], w = A, ct = w.__b, at = w.__r, ut = w.diffed, lt = w.__c, dt = w.unmount, ft = w.__;
12
+ function J(e, t) {
13
+ w.__h && w.__h(C, e, oe || t), oe = 0;
14
14
  var n = C.__H || (C.__H = { __: [], __h: [] });
15
15
  return e >= n.__.length && n.__.push({}), n.__[e];
16
16
  }
17
- function A(e) {
18
- return de = 1, Oe(dn, e);
19
- }
20
- function Oe(e, t, n) {
21
- var r = oe(Z++, 2);
22
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : dn(void 0, t), function(s) {
23
- var u = r.__N ? r.__N[0] : r.__[0], c = r.t(u, s);
24
- u !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
25
- }], r.__c = C, !C.__f)) {
26
- var o = function(s, u, c) {
27
- if (!r.__c.__H) return !0;
28
- var l = r.__c.__H.__.filter(function(p) {
29
- return p.__c;
17
+ function O(e) {
18
+ return oe = 1, he(It, e);
19
+ }
20
+ function he(e, t, n) {
21
+ var o = J(M++, 2);
22
+ if (o.t = e, !o.__c && (o.__ = [n ? n(t) : It(void 0, t), function(i) {
23
+ var a = o.__N ? o.__N[0] : o.__[0], u = o.t(a, i);
24
+ a !== u && (o.__N = [u, o.__[1]], o.__c.setState({}));
25
+ }], o.__c = C, !C.__f)) {
26
+ var r = function(i, a, u) {
27
+ if (!o.__c.__H) return !0;
28
+ var l = o.__c.__H.__.filter(function(_) {
29
+ return _.__c;
30
30
  });
31
- if (l.every(function(p) {
32
- return !p.__N;
33
- })) return !i || i.call(this, s, u, c);
34
- var f = r.__c.props !== s;
35
- return l.some(function(p) {
36
- if (p.__N) {
37
- var h = p.__[0];
38
- p.__ = p.__N, p.__N = void 0, h !== p.__[0] && (f = !0);
31
+ if (l.every(function(_) {
32
+ return !_.__N;
33
+ })) return !s || s.call(this, i, a, u);
34
+ var d = o.__c.props !== i;
35
+ return l.some(function(_) {
36
+ if (_.__N) {
37
+ var m = _.__[0];
38
+ _.__ = _.__N, _.__N = void 0, m !== _.__[0] && (d = !0);
39
39
  }
40
- }), i && i.call(this, s, u, c) || f;
40
+ }), s && s.call(this, i, a, u) || d;
41
41
  };
42
42
  C.__f = !0;
43
- var i = C.shouldComponentUpdate, a = C.componentWillUpdate;
44
- C.componentWillUpdate = function(s, u, c) {
43
+ var s = C.shouldComponentUpdate, c = C.componentWillUpdate;
44
+ C.componentWillUpdate = function(i, a, u) {
45
45
  if (this.__e) {
46
- var l = i;
47
- i = void 0, o(s, u, c), i = l;
46
+ var l = s;
47
+ s = void 0, r(i, a, u), s = l;
48
48
  }
49
- a && a.call(this, s, u, c);
50
- }, C.shouldComponentUpdate = o;
49
+ c && c.call(this, i, a, u);
50
+ }, C.shouldComponentUpdate = r;
51
51
  }
52
- return r.__N || r.__;
52
+ return o.__N || o.__;
53
53
  }
54
- function E(e, t) {
55
- var n = oe(Z++, 3);
56
- !N.__s && dt(n.__H, t) && (n.__ = e, n.u = t, C.__H.__h.push(n));
54
+ function $(e, t) {
55
+ var n = J(M++, 3);
56
+ !w.__s && Fe(n.__H, t) && (n.__ = e, n.u = t, C.__H.__h.push(n));
57
57
  }
58
- function G(e, t) {
59
- var n = oe(Z++, 4);
60
- !N.__s && dt(n.__H, t) && (n.__ = e, n.u = t, C.__h.push(n));
58
+ function Y(e, t) {
59
+ var n = J(M++, 4);
60
+ !w.__s && Fe(n.__H, t) && (n.__ = e, n.u = t, C.__h.push(n));
61
61
  }
62
- function w(e) {
63
- return de = 5, z(function() {
62
+ function N(e) {
63
+ return oe = 5, z(function() {
64
64
  return { current: e };
65
65
  }, []);
66
66
  }
67
- function ut(e, t, n) {
68
- de = 6, G(function() {
67
+ function Be(e, t, n) {
68
+ oe = 6, Y(function() {
69
69
  if (typeof e == "function") {
70
- var r = e(t());
70
+ var o = e(t());
71
71
  return function() {
72
- e(null), r && typeof r == "function" && r();
72
+ e(null), o && typeof o == "function" && o();
73
73
  };
74
74
  }
75
75
  if (e) return e.current = t(), function() {
@@ -78,31 +78,31 @@ function ut(e, t, n) {
78
78
  }, n == null ? n : n.concat(e));
79
79
  }
80
80
  function z(e, t) {
81
- var n = oe(Z++, 7);
82
- return dt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
81
+ var n = J(M++, 7);
82
+ return Fe(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
83
83
  }
84
- function k(e, t) {
85
- return de = 8, z(function() {
84
+ function D(e, t) {
85
+ return oe = 8, z(function() {
86
86
  return e;
87
87
  }, t);
88
88
  }
89
- function Y(e) {
90
- var t = C.context[e.__c], n = oe(Z++, 9);
89
+ function se(e) {
90
+ var t = C.context[e.__c], n = J(M++, 9);
91
91
  return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(C)), t.props.value) : e.__;
92
92
  }
93
- function lt(e, t) {
94
- N.useDebugValue && N.useDebugValue(t ? t(e) : e);
93
+ function Ve(e, t) {
94
+ w.useDebugValue && w.useDebugValue(t ? t(e) : e);
95
95
  }
96
- function Or(e) {
97
- var t = oe(Z++, 10), n = A();
98
- return t.__ = e, C.componentDidCatch || (C.componentDidCatch = function(r, o) {
99
- t.__ && t.__(r, o), n[1](r);
96
+ function Bn(e) {
97
+ var t = J(M++, 10), n = O();
98
+ return t.__ = e, C.componentDidCatch || (C.componentDidCatch = function(o, r) {
99
+ t.__ && t.__(o, r), n[1](o);
100
100
  }), [n[0], function() {
101
101
  n[1](void 0);
102
102
  }];
103
103
  }
104
- function ft() {
105
- var e = oe(Z++, 11);
104
+ function We() {
105
+ var e = J(M++, 11);
106
106
  if (!e.__) {
107
107
  for (var t = C.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
108
108
  var n = t.__m || (t.__m = [0, 0]);
@@ -110,98 +110,98 @@ function ft() {
110
110
  }
111
111
  return e.__;
112
112
  }
113
- function Nr() {
114
- for (var e; e = fn.shift(); ) {
113
+ function Vn() {
114
+ for (var e; e = Rt.shift(); ) {
115
115
  var t = e.__H;
116
116
  if (e.__P && t) try {
117
- t.__h.some(Me), t.__h.some(it), t.__h = [];
117
+ t.__h.some(Ce), t.__h.some(Ue), t.__h = [];
118
118
  } catch (n) {
119
- t.__h = [], N.__e(n, e.__v);
119
+ t.__h = [], w.__e(n, e.__v);
120
120
  }
121
121
  }
122
122
  }
123
- N.__b = function(e) {
124
- C = null, Dt && Dt(e);
125
- }, N.__ = function(e, t) {
126
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), It && It(e, t);
127
- }, N.__r = function(e) {
128
- Tt && Tt(e), Z = 0;
123
+ w.__b = function(e) {
124
+ C = null, ct && ct(e);
125
+ }, w.__ = function(e, t) {
126
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), ft && ft(e, t);
127
+ }, w.__r = function(e) {
128
+ at && at(e), M = 0;
129
129
  var t = (C = e.__c).__H;
130
- t && (qe === C ? (t.__h = [], C.__h = [], t.__.some(function(n) {
130
+ t && (Me === C ? (t.__h = [], C.__h = [], t.__.some(function(n) {
131
131
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
132
- })) : (t.__h.some(Me), t.__h.some(it), t.__h = [], Z = 0)), qe = C;
133
- }, N.diffed = function(e) {
134
- At && At(e);
132
+ })) : (t.__h.some(Ce), t.__h.some(Ue), t.__h = [], M = 0)), Me = C;
133
+ }, w.diffed = function(e) {
134
+ ut && ut(e);
135
135
  var t = e.__c;
136
- t && t.__H && (t.__H.__h.length && (fn.push(t) !== 1 && Nt === N.requestAnimationFrame || ((Nt = N.requestAnimationFrame) || Dr)(Nr)), t.__H.__.some(function(n) {
136
+ t && t.__H && (t.__H.__h.length && (Rt.push(t) !== 1 && it === w.requestAnimationFrame || ((it = w.requestAnimationFrame) || Wn)(Vn)), t.__H.__.some(function(n) {
137
137
  n.u && (n.__H = n.u), n.u = void 0;
138
- })), qe = C = null;
139
- }, N.__c = function(e, t) {
138
+ })), Me = C = null;
139
+ }, w.__c = function(e, t) {
140
140
  t.some(function(n) {
141
141
  try {
142
- n.__h.some(Me), n.__h = n.__h.filter(function(r) {
143
- return !r.__ || it(r);
142
+ n.__h.some(Ce), n.__h = n.__h.filter(function(o) {
143
+ return !o.__ || Ue(o);
144
144
  });
145
- } catch (r) {
146
- t.some(function(o) {
147
- o.__h && (o.__h = []);
148
- }), t = [], N.__e(r, n.__v);
145
+ } catch (o) {
146
+ t.some(function(r) {
147
+ r.__h && (r.__h = []);
148
+ }), t = [], w.__e(o, n.__v);
149
149
  }
150
- }), Rt && Rt(e, t);
151
- }, N.unmount = function(e) {
152
- kt && kt(e);
150
+ }), lt && lt(e, t);
151
+ }, w.unmount = function(e) {
152
+ dt && dt(e);
153
153
  var t, n = e.__c;
154
- n && n.__H && (n.__H.__.some(function(r) {
154
+ n && n.__H && (n.__H.__.some(function(o) {
155
155
  try {
156
- Me(r);
157
- } catch (o) {
158
- t = o;
156
+ Ce(o);
157
+ } catch (r) {
158
+ t = r;
159
159
  }
160
- }), n.__H = void 0, t && N.__e(t, n.__v));
160
+ }), n.__H = void 0, t && w.__e(t, n.__v));
161
161
  };
162
- var zt = typeof requestAnimationFrame == "function";
163
- function Dr(e) {
162
+ var _t = typeof requestAnimationFrame == "function";
163
+ function Wn(e) {
164
164
  var t, n = function() {
165
- clearTimeout(r), zt && cancelAnimationFrame(t), setTimeout(e);
166
- }, r = setTimeout(n, 35);
167
- zt && (t = requestAnimationFrame(n));
165
+ clearTimeout(o), _t && cancelAnimationFrame(t), setTimeout(e);
166
+ }, o = setTimeout(n, 35);
167
+ _t && (t = requestAnimationFrame(n));
168
168
  }
169
- function Me(e) {
169
+ function Ce(e) {
170
170
  var t = C, n = e.__c;
171
171
  typeof n == "function" && (e.__c = void 0, n()), C = t;
172
172
  }
173
- function it(e) {
173
+ function Ue(e) {
174
174
  var t = C;
175
175
  e.__c = e.__(), C = t;
176
176
  }
177
- function dt(e, t) {
178
- return !e || e.length !== t.length || t.some(function(n, r) {
179
- return n !== e[r];
177
+ function Fe(e, t) {
178
+ return !e || e.length !== t.length || t.some(function(n, o) {
179
+ return n !== e[o];
180
180
  });
181
181
  }
182
- function dn(e, t) {
182
+ function It(e, t) {
183
183
  return typeof t == "function" ? t(e) : t;
184
184
  }
185
- function pn(e, t) {
185
+ function $t(e, t) {
186
186
  for (var n in t) e[n] = t[n];
187
187
  return e;
188
188
  }
189
- function st(e, t) {
189
+ function Le(e, t) {
190
190
  for (var n in e) if (n !== "__source" && !(n in t)) return !0;
191
- for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
191
+ for (var o in t) if (o !== "__source" && e[o] !== t[o]) return !0;
192
192
  return !1;
193
193
  }
194
- function pt(e, t) {
195
- var n = t(), r = A({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
- return G(function() {
197
- o.__ = n, o.u = t, Ge(o) && i({ t: o });
198
- }, [e, n, t]), E(function() {
199
- return Ge(o) && i({ t: o }), e(function() {
200
- Ge(o) && i({ t: o });
194
+ function qe(e, t) {
195
+ var n = t(), o = O({ t: { __: n, u: t } }), r = o[0].t, s = o[1];
196
+ return Y(function() {
197
+ r.__ = n, r.u = t, De(r) && s({ t: r });
198
+ }, [e, n, t]), $(function() {
199
+ return De(r) && s({ t: r }), e(function() {
200
+ De(r) && s({ t: r });
201
201
  });
202
202
  }, [e]), n;
203
203
  }
204
- function Ge(e) {
204
+ function De(e) {
205
205
  try {
206
206
  return !((t = e.__) === (n = e.u()) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
207
207
  } catch {
@@ -209,417 +209,426 @@ function Ge(e) {
209
209
  }
210
210
  var t, n;
211
211
  }
212
- function _t(e) {
212
+ function Ke(e) {
213
213
  e();
214
214
  }
215
- function vt(e) {
215
+ function Ge(e) {
216
216
  return e;
217
217
  }
218
- function ht() {
219
- return [!1, _t];
218
+ function Je() {
219
+ return [!1, Ke];
220
220
  }
221
- var mt = G;
222
- function Fe(e, t) {
221
+ var Ye = Y;
222
+ function Se(e, t) {
223
223
  this.props = e, this.context = t;
224
224
  }
225
- function _n(e, t) {
226
- function n(o) {
227
- var i = this.props.ref, a = i == o.ref;
228
- return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : st(this.props, o);
225
+ function xt(e, t) {
226
+ function n(r) {
227
+ var s = this.props.ref, c = s == r.ref;
228
+ return !c && s && (s.call ? s(null) : s.current = null), t ? !t(this.props, r) || !c : Le(this.props, r);
229
229
  }
230
- function r(o) {
231
- return this.shouldComponentUpdate = n, D(e, o);
230
+ function o(r) {
231
+ return this.shouldComponentUpdate = n, I(e, r);
232
232
  }
233
- return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
233
+ return o.displayName = "Memo(" + (e.displayName || e.name) + ")", o.prototype.isReactComponent = !0, o.__f = !0, o.type = e, o;
234
234
  }
235
- (Fe.prototype = new te()).isPureReactComponent = !0, Fe.prototype.shouldComponentUpdate = function(e, t) {
236
- return st(this.props, e) || st(this.state, t);
235
+ (Se.prototype = new K()).isPureReactComponent = !0, Se.prototype.shouldComponentUpdate = function(e, t) {
236
+ return Le(this.props, e) || Le(this.state, t);
237
237
  };
238
- var Mt = I.__b;
239
- I.__b = function(e) {
240
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mt && Mt(e);
238
+ var pt = A.__b;
239
+ A.__b = function(e) {
240
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), pt && pt(e);
241
241
  };
242
- var Tr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
243
- function P(e) {
242
+ var Fn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
243
+ function E(e) {
244
244
  function t(n) {
245
- var r = pn({}, n);
246
- return delete r.ref, e(r, n.ref || null);
245
+ var o = $t({}, n);
246
+ return delete o.ref, e(o, n.ref || null);
247
247
  }
248
- return t.$$typeof = Tr, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
248
+ return t.$$typeof = Fn, 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
- }, U = { map: xt, forEach: xt, count: function(e) {
253
- return e ? q(e).length : 0;
250
+ var ht = function(e, t) {
251
+ return e == null ? null : Z(Z(e).map(t));
252
+ }, H = { map: ht, forEach: ht, count: function(e) {
253
+ return e ? Z(e).length : 0;
254
254
  }, only: function(e) {
255
- var t = q(e);
255
+ var t = Z(e);
256
256
  if (t.length !== 1) throw "Children.only";
257
257
  return t[0];
258
- }, toArray: q }, Ar = I.__e;
259
- I.__e = function(e, t, n, r) {
258
+ }, toArray: Z }, qn = A.__e;
259
+ A.__e = function(e, t, n, o) {
260
260
  if (e.then) {
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);
261
+ for (var r, s = t; s = s.__; ) if ((r = s.__c) && r.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), r.__c(e, t);
262
262
  }
263
- Ar(e, t, n, r);
263
+ qn(e, t, n, o);
264
264
  };
265
- var $t = I.unmount;
266
- function vn(e, t, n) {
267
- return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
268
- typeof r.__c == "function" && r.__c();
269
- }), e.__c.__H = null), (e = pn({}, 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 vn(r, t, n);
265
+ var mt = A.unmount;
266
+ function Tt(e, t, n) {
267
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(o) {
268
+ typeof o.__c == "function" && o.__c();
269
+ }), e.__c.__H = null), (e = $t({}, 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(o) {
270
+ return Tt(o, t, n);
271
271
  })), e;
272
272
  }
273
- function hn(e, t, n) {
274
- return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
275
- return hn(r, t, n);
273
+ function Mt(e, t, n) {
274
+ return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(o) {
275
+ return Mt(o, 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
- function be() {
278
+ function de() {
279
279
  this.__u = 0, this.o = null, this.__b = null;
280
280
  }
281
- function mn(e) {
281
+ function Dt(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 gn(e) {
287
- var t, n, r, o = null;
288
- function i(a) {
289
- if (t || (t = e()).then(function(s) {
290
- s && (o = s.default || s), r = !0;
291
- }, function(s) {
292
- n = s, r = !0;
286
+ function jt(e) {
287
+ var t, n, o, r = null;
288
+ function s(c) {
289
+ if (t || (t = e()).then(function(i) {
290
+ i && (r = i.default || i), o = !0;
291
+ }, function(i) {
292
+ n = i, o = !0;
293
293
  }), n) throw n;
294
- if (!r) throw t;
295
- return o ? D(o, a) : null;
294
+ if (!o) throw t;
295
+ return r ? I(r, c) : null;
296
296
  }
297
- return i.displayName = "Lazy", i.__f = !0, i;
297
+ return s.displayName = "Lazy", s.__f = !0, s;
298
298
  }
299
- function le() {
299
+ function te() {
300
300
  this.i = null, this.l = null;
301
301
  }
302
- I.unmount = function(e) {
302
+ A.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), $t && $t(e);
305
- }, (be.prototype = new te()).__c = function(e, t) {
306
- var n = t.__c, r = this;
307
- r.o == null && (r.o = []), r.o.push(n);
308
- var o = mn(r.__v), i = !1, a = function() {
309
- i || r.__z || (i = !0, n.__R = null, o ? o(u) : u());
304
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), mt && mt(e);
305
+ }, (de.prototype = new K()).__c = function(e, t) {
306
+ var n = t.__c, o = this;
307
+ o.o == null && (o.o = []), o.o.push(n);
308
+ var r = Dt(o.__v), s = !1, c = function() {
309
+ s || o.__z || (s = !0, n.__R = null, r ? r(a) : a());
310
310
  };
311
- n.__R = a;
312
- var s = n.__P;
311
+ n.__R = c;
312
+ var i = n.__P;
313
313
  n.__P = null;
314
- var u = function() {
315
- if (!--r.__u) {
316
- if (r.state.__a) {
317
- var c = r.state.__a;
318
- r.__v.__k[0] = hn(c, c.__c.__P, c.__c.__O);
314
+ var a = function() {
315
+ if (!--o.__u) {
316
+ if (o.state.__a) {
317
+ var u = o.state.__a;
318
+ o.__v.__k[0] = Mt(u, u.__c.__P, u.__c.__O);
319
319
  }
320
320
  var l;
321
- for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.__P = s, l.forceUpdate();
321
+ for (o.setState({ __a: o.__b = null }); l = o.o.pop(); ) l.__P = i, l.forceUpdate();
322
322
  }
323
323
  };
324
- r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
325
- }, be.prototype.componentWillUnmount = function() {
324
+ o.__u++ || 32 & t.__u || o.setState({ __a: o.__b = o.__v.__k[0] }), e.then(c, c);
325
+ }, de.prototype.componentWillUnmount = function() {
326
326
  this.o = [];
327
- }, be.prototype.render = function(e, t) {
327
+ }, de.prototype.render = function(e, t) {
328
328
  if (this.__b) {
329
329
  if (this.__v.__k) {
330
- var n = document.createElement("div"), r = this.__v.__k[0].__c;
331
- this.__v.__k[0] = vn(this.__b, n, r.__O = r.__P);
330
+ var n = document.createElement("div"), o = this.__v.__k[0].__c;
331
+ this.__v.__k[0] = Tt(this.__b, n, o.__O = o.__P);
332
332
  }
333
333
  this.__b = null;
334
334
  }
335
- var o = t.__a && D(x, null, e.fallback);
336
- return o && (o.__u &= -33), [D(x, null, t.__a ? null : e.children), o];
335
+ var r = t.__a && I(q, null, e.fallback);
336
+ return r && (r.__u &= -33), [I(q, null, t.__a ? null : e.children), r];
337
337
  };
338
- var Lt = function(e, t, n) {
338
+ var vt = 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 Rr(e) {
345
+ function Kn(e) {
346
346
  return this.getChildContext = function() {
347
347
  return e.context;
348
348
  }, e.children;
349
349
  }
350
- function kr(e) {
350
+ function Gn(e) {
351
351
  var t = this, n = e.h;
352
352
  if (t.componentWillUnmount = function() {
353
- Ee(null, t.v), t.v = null, t.h = null;
353
+ _e(null, t.v), t.v = null, t.h = null;
354
354
  }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
355
- for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
356
- t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
355
+ for (var o = t.__v; o !== null && !o.__m && o.__ !== null; ) o = o.__;
356
+ t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: o.__m }, contains: function() {
357
357
  return !0;
358
- }, namespaceURI: n.namespaceURI, insertBefore: function(o, i) {
359
- this.childNodes.push(o), t.h.insertBefore(o, i);
360
- }, removeChild: function(o) {
361
- this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
358
+ }, namespaceURI: n.namespaceURI, insertBefore: function(r, s) {
359
+ this.childNodes.push(r), t.h.insertBefore(r, s);
360
+ }, removeChild: function(r) {
361
+ this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.h.removeChild(r);
362
362
  } };
363
363
  }
364
- Ee(D(Rr, { context: t.context }, e.__v), t.v);
364
+ _e(I(Kn, { context: t.context }, e.__v), t.v);
365
365
  }
366
- function yn(e, t) {
367
- var n = D(kr, { __v: e, h: t });
366
+ function Ut(e, t) {
367
+ var n = I(Gn, { __v: e, h: t });
368
368
  return n.containerInfo = t, n;
369
369
  }
370
- (le.prototype = new te()).__a = function(e) {
371
- var t = this, n = mn(t.__v), r = t.l.get(e);
372
- return r[0]++, function(o) {
373
- var i = function() {
374
- t.props.revealOrder ? (r.push(o), Lt(t, e, r)) : o();
370
+ (te.prototype = new K()).__a = function(e) {
371
+ var t = this, n = Dt(t.__v), o = t.l.get(e);
372
+ return o[0]++, function(r) {
373
+ var s = function() {
374
+ t.props.revealOrder ? (o.push(r), vt(t, e, o)) : r();
375
375
  };
376
- n ? n(i) : i();
376
+ n ? n(s) : s();
377
377
  };
378
- }, le.prototype.render = function(e) {
378
+ }, te.prototype.render = function(e) {
379
379
  this.i = null, this.l = /* @__PURE__ */ new Map();
380
- var t = q(e.children);
380
+ var t = Z(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
- }, le.prototype.componentDidUpdate = le.prototype.componentDidMount = function() {
384
+ }, te.prototype.componentDidUpdate = te.prototype.componentDidMount = function() {
385
385
  var e = this;
386
386
  this.l.forEach(function(t, n) {
387
- Lt(e, n, t);
387
+ vt(e, n, t);
388
388
  });
389
389
  };
390
- var bn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, Ir = /^(?: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]/, zr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Mr = /[A-Z0-9]/g, xr = typeof document < "u", $r = function(e) {
390
+ var Lt = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, Jn = /^(?: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]/, Yn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Xn = /[A-Z0-9]/g, Qn = typeof document < "u", eo = function(e) {
391
391
  return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
392
392
  };
393
- function wn(e, t, n) {
394
- return t.__k == null && (t.textContent = ""), Ee(e, t), typeof n == "function" && n(), e ? e.__c : null;
393
+ function Zt(e, t, n) {
394
+ return t.__k == null && (t.textContent = ""), _e(e, t), typeof n == "function" && n(), e ? e.__c : null;
395
395
  }
396
- function En(e, t, n) {
397
- return Cr(e, t), typeof n == "function" && n(), e ? e.__c : null;
396
+ function Ht(e, t, n) {
397
+ return Zn(e, t), typeof n == "function" && n(), e ? e.__c : null;
398
398
  }
399
- te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
- Object.defineProperty(te.prototype, e, { configurable: !0, get: function() {
399
+ K.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
+ Object.defineProperty(K.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 Ft = I.event;
407
- function Lr() {
406
+ var gt = A.event;
407
+ function to() {
408
408
  }
409
- function Fr() {
409
+ function no() {
410
410
  return this.cancelBubble;
411
411
  }
412
- function jr() {
412
+ function oo() {
413
413
  return this.defaultPrevented;
414
414
  }
415
- I.event = function(e) {
416
- return Ft && (e = Ft(e)), e.persist = Lr, e.isPropagationStopped = Fr, e.isDefaultPrevented = jr, e.nativeEvent = e;
415
+ A.event = function(e) {
416
+ return gt && (e = gt(e)), e.persist = to, e.isPropagationStopped = no, e.isDefaultPrevented = oo, e.nativeEvent = e;
417
417
  };
418
- var gt, Wr = { enumerable: !1, configurable: !0, get: function() {
418
+ var Xe, ro = { enumerable: !1, configurable: !0, get: function() {
419
419
  return this.class;
420
- } }, jt = I.vnode;
421
- I.vnode = function(e) {
420
+ } }, yt = A.vnode;
421
+ A.vnode = function(e) {
422
422
  typeof e.type == "string" && (function(t) {
423
- var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
424
- for (var a in n) {
425
- var s = n[a];
426
- if (!(a === "value" && "defaultValue" in n && s == null || xr && a === "children" && r === "noscript" || a === "class" || a === "className")) {
427
- var u = a.toLowerCase();
428
- a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : u === "translate" && s === "no" ? s = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? a = "ondblclick" : u !== "onchange" || r !== "input" && r !== "textarea" || $r(n.type) ? u === "onfocus" ? a = "onfocusin" : u === "onblur" ? a = "onfocusout" : zr.test(a) && (a = u) : u = a = "oninput" : i && Ir.test(a) ? a = a.replace(Mr, "-$&").toLowerCase() : s === null && (s = void 0), u === "oninput" && o[a = u] && (a = "oninputCapture"), o[a] = s;
423
+ var n = t.props, o = t.type, r = {}, s = o.indexOf("-") === -1;
424
+ for (var c in n) {
425
+ var i = n[c];
426
+ if (!(c === "value" && "defaultValue" in n && i == null || Qn && c === "children" && o === "noscript" || c === "class" || c === "className")) {
427
+ var a = c.toLowerCase();
428
+ c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && i === !0 ? i = "" : a === "translate" && i === "no" ? i = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || o !== "input" && o !== "textarea" || eo(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : Yn.test(c) && (c = a) : a = c = "oninput" : s && Jn.test(c) ? c = c.replace(Xn, "-$&").toLowerCase() : i === null && (i = void 0), a === "oninput" && r[c = a] && (c = "oninputCapture"), r[c] = i;
429
429
  }
430
430
  }
431
- r == "select" && o.multiple && Array.isArray(o.value) && (o.value = q(n.children).forEach(function(c) {
432
- c.props.selected = o.value.indexOf(c.props.value) != -1;
433
- })), r == "select" && o.defaultValue != null && (o.value = q(n.children).forEach(function(c) {
434
- c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
435
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Wr)) : n.className && (o.class = o.className = n.className), t.props = o;
436
- })(e), e.$$typeof = bn, jt && jt(e);
431
+ o == "select" && r.multiple && Array.isArray(r.value) && (r.value = Z(n.children).forEach(function(u) {
432
+ u.props.selected = r.value.indexOf(u.props.value) != -1;
433
+ })), o == "select" && r.defaultValue != null && (r.value = Z(n.children).forEach(function(u) {
434
+ u.props.selected = r.multiple ? r.defaultValue.indexOf(u.props.value) != -1 : r.defaultValue == u.props.value;
435
+ })), n.class && !n.className ? (r.class = n.class, Object.defineProperty(r, "className", ro)) : n.className && (r.class = r.className = n.className), t.props = r;
436
+ })(e), e.$$typeof = Lt, yt && yt(e);
437
437
  };
438
- var Wt = I.__r;
439
- I.__r = function(e) {
440
- Wt && Wt(e), gt = e.__c;
438
+ var bt = A.__r;
439
+ A.__r = function(e) {
440
+ bt && bt(e), Xe = e.__c;
441
441
  };
442
- var Ut = I.diffed;
443
- I.diffed = function(e) {
444
- Ut && Ut(e);
442
+ var Ct = A.diffed;
443
+ A.diffed = function(e) {
444
+ Ct && Ct(e);
445
445
  var t = e.props, n = e.__e;
446
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), gt = null;
446
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Xe = null;
447
447
  };
448
- var Sn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
- return gt.__n[e.__c].props.value;
450
- }, useCallback: k, useContext: Y, useDebugValue: lt, useDeferredValue: vt, useEffect: E, useId: ft, useImperativeHandle: ut, useInsertionEffect: mt, useLayoutEffect: G, useMemo: z, useReducer: Oe, useRef: w, useState: A, useSyncExternalStore: pt, useTransition: ht } } }, Ur = "18.3.1";
451
- function Cn(e) {
452
- return D.bind(null, e);
448
+ var Bt = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
+ return Xe.__n[e.__c].props.value;
450
+ }, useCallback: D, useContext: se, useDebugValue: Ve, useDeferredValue: Ge, useEffect: $, useId: We, useImperativeHandle: Be, useInsertionEffect: Ye, useLayoutEffect: Y, useMemo: z, useReducer: he, useRef: N, useState: O, useSyncExternalStore: qe, useTransition: Je } } }, so = "18.3.1";
451
+ function Vt(e) {
452
+ return I.bind(null, e);
453
453
  }
454
- function H(e) {
455
- return !!e && e.$$typeof === bn;
454
+ function j(e) {
455
+ return !!e && e.$$typeof === Lt;
456
456
  }
457
- function Pn(e) {
458
- return H(e) && e.type === x;
457
+ function Wt(e) {
458
+ return j(e) && e.type === q;
459
459
  }
460
- function On(e) {
460
+ function Ft(e) {
461
461
  return !!e && typeof e.displayName == "string" && e.displayName.startsWith("Memo(");
462
462
  }
463
- function pe(e) {
464
- return H(e) ? Sr.apply(null, arguments) : e;
463
+ function me(e) {
464
+ return j(e) ? Ln.apply(null, arguments) : e;
465
465
  }
466
- function Nn(e) {
467
- return !!e.__k && (Ee(null, e), !0);
466
+ function qt(e) {
467
+ return !!e.__k && (_e(null, e), !0);
468
468
  }
469
- function Dn(e) {
469
+ function Kt(e) {
470
470
  return e && (e.base || e.nodeType === 1 && e) || null;
471
471
  }
472
- var Tn = function(e, t) {
472
+ var Gt = function(e, t) {
473
473
  return e(t);
474
- }, yt = function(e, t) {
474
+ }, Jt = function(e, t) {
475
475
  return e(t);
476
- }, An = x, Rn = H, Br = { useState: A, useId: ft, useReducer: Oe, useEffect: E, useLayoutEffect: G, useInsertionEffect: mt, useTransition: ht, useDeferredValue: vt, useSyncExternalStore: pt, startTransition: _t, useRef: w, useImperativeHandle: ut, useMemo: z, useCallback: k, useContext: Y, useDebugValue: lt, version: "18.3.1", Children: U, render: wn, hydrate: En, unmountComponentAtNode: Nn, createPortal: yn, createElement: D, createContext: ne, createFactory: Cn, cloneElement: pe, createRef: ln, Fragment: x, isValidElement: H, isElement: Rn, isFragment: Pn, isMemo: On, findDOMNode: Dn, Component: te, PureComponent: Fe, memo: _n, forwardRef: P, flushSync: yt, unstable_batchedUpdates: Tn, StrictMode: An, Suspense: be, SuspenseList: le, lazy: gn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Sn };
477
- const kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
476
+ }, Yt = q, Xt = j, S = { useState: O, useId: We, useReducer: he, useEffect: $, useLayoutEffect: Y, useInsertionEffect: Ye, useTransition: Je, useDeferredValue: Ge, useSyncExternalStore: qe, startTransition: Ke, useRef: N, useImperativeHandle: Be, useMemo: z, useCallback: D, useContext: se, useDebugValue: Ve, version: "18.3.1", Children: H, render: Zt, hydrate: Ht, unmountComponentAtNode: qt, createPortal: Ut, createElement: I, createContext: ne, createFactory: Vt, cloneElement: me, createRef: kt, Fragment: q, isValidElement: j, isElement: Xt, isFragment: Wt, isMemo: Ft, findDOMNode: Kt, Component: K, PureComponent: Se, memo: xt, forwardRef: E, flushSync: Jt, unstable_batchedUpdates: Gt, StrictMode: Yt, Suspense: de, SuspenseList: te, lazy: jt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Bt };
477
+ const Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
478
478
  __proto__: null,
479
- Children: U,
480
- Component: te,
481
- Fragment: x,
482
- PureComponent: Fe,
483
- StrictMode: An,
484
- Suspense: be,
485
- SuspenseList: le,
486
- __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Sn,
487
- cloneElement: pe,
479
+ Children: H,
480
+ Component: K,
481
+ Fragment: q,
482
+ PureComponent: Se,
483
+ StrictMode: Yt,
484
+ Suspense: de,
485
+ SuspenseList: te,
486
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Bt,
487
+ cloneElement: me,
488
488
  createContext: ne,
489
- createElement: D,
490
- createFactory: Cn,
491
- createPortal: yn,
492
- createRef: ln,
493
- default: Br,
494
- findDOMNode: Dn,
495
- flushSync: yt,
496
- forwardRef: P,
497
- hydrate: En,
498
- isElement: Rn,
499
- isFragment: Pn,
500
- isMemo: On,
501
- isValidElement: H,
502
- lazy: gn,
503
- memo: _n,
504
- render: wn,
505
- startTransition: _t,
506
- unmountComponentAtNode: Nn,
507
- unstable_batchedUpdates: Tn,
508
- useCallback: k,
509
- useContext: Y,
510
- useDebugValue: lt,
511
- useDeferredValue: vt,
512
- useEffect: E,
513
- useErrorBoundary: Or,
514
- useId: ft,
515
- useImperativeHandle: ut,
516
- useInsertionEffect: mt,
517
- useLayoutEffect: G,
489
+ createElement: I,
490
+ createFactory: Vt,
491
+ createPortal: Ut,
492
+ createRef: kt,
493
+ default: S,
494
+ findDOMNode: Kt,
495
+ flushSync: Jt,
496
+ forwardRef: E,
497
+ hydrate: Ht,
498
+ isElement: Xt,
499
+ isFragment: Wt,
500
+ isMemo: Ft,
501
+ isValidElement: j,
502
+ lazy: jt,
503
+ memo: xt,
504
+ render: Zt,
505
+ startTransition: Ke,
506
+ unmountComponentAtNode: qt,
507
+ unstable_batchedUpdates: Gt,
508
+ useCallback: D,
509
+ useContext: se,
510
+ useDebugValue: Ve,
511
+ useDeferredValue: Ge,
512
+ useEffect: $,
513
+ useErrorBoundary: Bn,
514
+ useId: We,
515
+ useImperativeHandle: Be,
516
+ useInsertionEffect: Ye,
517
+ useLayoutEffect: Y,
518
518
  useMemo: z,
519
- useReducer: Oe,
520
- useRef: w,
521
- useState: A,
522
- useSyncExternalStore: pt,
523
- useTransition: ht,
524
- version: Ur
519
+ useReducer: he,
520
+ useRef: N,
521
+ useState: O,
522
+ useSyncExternalStore: qe,
523
+ useTransition: Je,
524
+ version: so
525
525
  }, Symbol.toStringTag, { value: "Module" }));
526
- function bt(...e) {
526
+ function en(...e) {
527
527
  return e.filter(Boolean).join(" ");
528
528
  }
529
- function Zr(e) {
529
+ function we(e) {
530
530
  return Object.entries(e).filter(([, t]) => t).map(([t]) => t).join(" ");
531
531
  }
532
- const Hr = "_root_hw69b_1", Vr = "_neutral_hw69b_17", Kr = "_brand_hw69b_30", qr = "_ghost_hw69b_43", Bt = {
533
- root: Hr,
534
- neutral: Vr,
535
- brand: Kr,
536
- ghost: qr
537
- }, Ye = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ v("button", { className: bt(Bt.root, Bt[e]), ...t }), Gr = "_root_14l5h_1", Yr = "_muted_14l5h_4", Xr = "_body_14l5h_8", Jr = "_normal_14l5h_14", Qr = "_bold_14l5h_18", eo = "_caption_14l5h_23", De = {
538
- root: Gr,
539
- muted: Yr,
540
- body: Xr,
541
- normal: Jr,
542
- bold: Qr,
543
- caption: eo
544
- }, Xe = ({
532
+ const io = "_root_hw69b_1", co = "_neutral_hw69b_17", ao = "_brand_hw69b_30", uo = "_ghost_hw69b_43", wt = {
533
+ root: io,
534
+ neutral: co,
535
+ brand: ao,
536
+ ghost: uo
537
+ }, je = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ f("button", { className: en(wt.root, wt[e]), ...t }), lo = "_root_14l5h_1", fo = "_muted_14l5h_4", _o = "_body_14l5h_8", po = "_normal_14l5h_14", ho = "_bold_14l5h_18", mo = "_caption_14l5h_23", ve = {
538
+ root: lo,
539
+ muted: fo,
540
+ body: _o,
541
+ normal: po,
542
+ bold: ho,
543
+ caption: mo
544
+ }, F = ({
545
545
  as: e = "span",
546
546
  size: t = "body",
547
547
  weight: n = "normal",
548
- color: r = "default",
549
- ...o
548
+ color: o = "default",
549
+ ...r
550
550
  }) => (
551
551
  // @ts-ignore
552
- /* @__PURE__ */ v(
552
+ /* @__PURE__ */ f(
553
553
  e ?? "span",
554
554
  {
555
- className: bt(
556
- De.root,
557
- De[t],
558
- De[n],
559
- De[r]
555
+ className: en(
556
+ ve.root,
557
+ ve[t],
558
+ ve[n],
559
+ ve[o]
560
560
  ),
561
- ...o
561
+ ...r
562
562
  }
563
563
  )
564
- ), to = "_root_1wsw7_42", no = "_noTarget_1wsw7_53", ro = "_collapsible_1wsw7_62", oo = "_header_1wsw7_65", io = "_heading_1wsw7_72", so = "_chevron_1wsw7_78", ao = "_open_1wsw7_83", co = "_footer_1wsw7_103", uo = "_legal_1wsw7_110", lo = "_actions_1wsw7_113", L = {
565
- root: to,
566
- noTarget: no,
567
- collapsible: ro,
568
- header: oo,
569
- heading: io,
570
- chevron: so,
571
- open: ao,
572
- footer: co,
573
- legal: uo,
574
- actions: lo
564
+ ), vo = "_root_2wcp0_53", go = "_open_2wcp0_66", yo = "_noTarget_2wcp0_72", bo = "_collapsible_2wcp0_81", Co = "_header_2wcp0_84", wo = "_heading_2wcp0_91", So = "_chevron_2wcp0_97", Po = "_settings_2wcp0_108", No = "_footer_2wcp0_122", Ao = "_legal_2wcp0_129", zo = "_actions_2wcp0_132", R = {
565
+ root: vo,
566
+ open: go,
567
+ noTarget: yo,
568
+ collapsible: bo,
569
+ header: Co,
570
+ heading: wo,
571
+ chevron: So,
572
+ settings: Po,
573
+ footer: No,
574
+ legal: Ao,
575
+ actions: zo
576
+ }, Oo = "_root_mqtha_19", Eo = "_header_mqtha_24", ko = "_label_mqtha_33", Ro = "_actions_mqtha_39", Io = "_chevron_mqtha_45", $o = "_open_mqtha_51", xo = "_description_mqtha_58", V = {
577
+ root: Oo,
578
+ header: Eo,
579
+ label: ko,
580
+ actions: Ro,
581
+ chevron: Io,
582
+ open: $o,
583
+ description: xo
575
584
  };
576
- function R(e, t, n) {
577
- function r(s, u) {
578
- if (s._zod || Object.defineProperty(s, "_zod", {
585
+ function P(e, t, n) {
586
+ function o(i, a) {
587
+ if (i._zod || Object.defineProperty(i, "_zod", {
579
588
  value: {
580
- def: u,
581
- constr: a,
589
+ def: a,
590
+ constr: c,
582
591
  traits: /* @__PURE__ */ new Set()
583
592
  },
584
593
  enumerable: !1
585
- }), s._zod.traits.has(e))
594
+ }), i._zod.traits.has(e))
586
595
  return;
587
- s._zod.traits.add(e), t(s, u);
588
- const c = a.prototype, l = Object.keys(c);
589
- for (let f = 0; f < l.length; f++) {
590
- const p = l[f];
591
- p in s || (s[p] = c[p].bind(s));
596
+ i._zod.traits.add(e), t(i, a);
597
+ const u = c.prototype, l = Object.keys(u);
598
+ for (let d = 0; d < l.length; d++) {
599
+ const _ = l[d];
600
+ _ in i || (i[_] = u[_].bind(i));
592
601
  }
593
602
  }
594
- const o = n?.Parent ?? Object;
595
- class i extends o {
603
+ const r = n?.Parent ?? Object;
604
+ class s extends r {
596
605
  }
597
- Object.defineProperty(i, "name", { value: e });
598
- function a(s) {
599
- var u;
600
- const c = n?.Parent ? new i() : this;
601
- r(c, s), (u = c._zod).deferred ?? (u.deferred = []);
602
- for (const l of c._zod.deferred)
606
+ Object.defineProperty(s, "name", { value: e });
607
+ function c(i) {
608
+ var a;
609
+ const u = n?.Parent ? new s() : this;
610
+ o(u, i), (a = u._zod).deferred ?? (a.deferred = []);
611
+ for (const l of u._zod.deferred)
603
612
  l();
604
- return c;
613
+ return u;
605
614
  }
606
- return Object.defineProperty(a, "init", { value: r }), Object.defineProperty(a, Symbol.hasInstance, {
607
- value: (s) => n?.Parent && s instanceof n.Parent ? !0 : s?._zod?.traits?.has(e)
608
- }), Object.defineProperty(a, "name", { value: e }), a;
615
+ return Object.defineProperty(c, "init", { value: o }), Object.defineProperty(c, Symbol.hasInstance, {
616
+ value: (i) => n?.Parent && i instanceof n.Parent ? !0 : i?._zod?.traits?.has(e)
617
+ }), Object.defineProperty(c, "name", { value: e }), c;
609
618
  }
610
- class we extends Error {
619
+ class fe extends Error {
611
620
  constructor() {
612
621
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
613
622
  }
614
623
  }
615
- const fo = {};
616
- function _e(e) {
617
- return fo;
624
+ const To = {};
625
+ function ie(e) {
626
+ return To;
618
627
  }
619
- function po(e, t) {
628
+ function Mo(e, t) {
620
629
  return typeof t == "bigint" ? t.toString() : t;
621
630
  }
622
- function In(e) {
631
+ function tn(e) {
623
632
  return {
624
633
  get value() {
625
634
  {
@@ -629,55 +638,55 @@ function In(e) {
629
638
  }
630
639
  };
631
640
  }
632
- function zn(e) {
641
+ function nn(e) {
633
642
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
634
643
  return e.slice(t, n);
635
644
  }
636
- const Zt = /* @__PURE__ */ Symbol("evaluating");
637
- function j(e, t, n) {
638
- let r;
645
+ const St = /* @__PURE__ */ Symbol("evaluating");
646
+ function T(e, t, n) {
647
+ let o;
639
648
  Object.defineProperty(e, t, {
640
649
  get() {
641
- if (r !== Zt)
642
- return r === void 0 && (r = Zt, r = n()), r;
650
+ if (o !== St)
651
+ return o === void 0 && (o = St, o = n()), o;
643
652
  },
644
- set(o) {
653
+ set(r) {
645
654
  Object.defineProperty(e, t, {
646
- value: o
655
+ value: r
647
656
  // configurable: true,
648
657
  });
649
658
  },
650
659
  configurable: !0
651
660
  });
652
661
  }
653
- const Mn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
662
+ const on = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
654
663
  };
655
- function je(e) {
664
+ function Pe(e) {
656
665
  return typeof e == "object" && e !== null && !Array.isArray(e);
657
666
  }
658
- function _o(e) {
659
- if (je(e) === !1)
667
+ function Do(e) {
668
+ if (Pe(e) === !1)
660
669
  return !1;
661
670
  const t = e.constructor;
662
671
  if (t === void 0 || typeof t != "function")
663
672
  return !0;
664
673
  const n = t.prototype;
665
- return !(je(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
674
+ return !(Pe(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
666
675
  }
667
- function Ht(e) {
676
+ function Pt(e) {
668
677
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
669
678
  }
670
- function vo(e, t, n) {
671
- const r = new e._zod.constr(t ?? e._zod.def);
672
- return (!t || n?.parent) && (r._zod.parent = e), r;
679
+ function jo(e, t, n) {
680
+ const o = new e._zod.constr(t ?? e._zod.def);
681
+ return (!t || n?.parent) && (o._zod.parent = e), o;
673
682
  }
674
- function ve(e) {
683
+ function ce(e) {
675
684
  return {};
676
685
  }
677
- function ho(e) {
686
+ function Uo(e) {
678
687
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
679
688
  }
680
- function ge(e, t = 0) {
689
+ function ue(e, t = 0) {
681
690
  if (e.aborted === !0)
682
691
  return !0;
683
692
  for (let n = t; n < e.issues.length; n++)
@@ -685,149 +694,149 @@ function ge(e, t = 0) {
685
694
  return !0;
686
695
  return !1;
687
696
  }
688
- function ye(e, t) {
697
+ function le(e, t) {
689
698
  return t.map((n) => {
690
- var r;
691
- return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
699
+ var o;
700
+ return (o = n).path ?? (o.path = []), n.path.unshift(e), n;
692
701
  });
693
702
  }
694
- function Te(e) {
703
+ function ge(e) {
695
704
  return typeof e == "string" ? e : e?.message;
696
705
  }
697
- function he(e, t, n) {
698
- const r = { ...e, path: e.path ?? [] };
706
+ function ae(e, t, n) {
707
+ const o = { ...e, path: e.path ?? [] };
699
708
  if (!e.message) {
700
- const o = Te(e.inst?._zod.def?.error?.(e)) ?? Te(t?.error?.(e)) ?? Te(n.customError?.(e)) ?? Te(n.localeError?.(e)) ?? "Invalid input";
701
- r.message = o;
709
+ const r = ge(e.inst?._zod.def?.error?.(e)) ?? ge(t?.error?.(e)) ?? ge(n.customError?.(e)) ?? ge(n.localeError?.(e)) ?? "Invalid input";
710
+ o.message = r;
702
711
  }
703
- return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
712
+ return delete o.inst, delete o.continue, t?.reportInput || delete o.input, o;
704
713
  }
705
- const xn = (e, t) => {
714
+ const rn = (e, t) => {
706
715
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
707
716
  value: e._zod,
708
717
  enumerable: !1
709
718
  }), Object.defineProperty(e, "issues", {
710
719
  value: t,
711
720
  enumerable: !1
712
- }), e.message = JSON.stringify(t, po, 2), Object.defineProperty(e, "toString", {
721
+ }), e.message = JSON.stringify(t, Mo, 2), Object.defineProperty(e, "toString", {
713
722
  value: () => e.message,
714
723
  enumerable: !1
715
724
  });
716
- }, mo = R("$ZodError", xn), Be = R("$ZodError", xn, { Parent: Error }), go = (e) => (t, n, r, o) => {
717
- const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, a = t._zod.run({ value: n, issues: [] }, i);
718
- if (a instanceof Promise)
719
- throw new we();
720
- if (a.issues.length) {
721
- const s = new (o?.Err ?? e)(a.issues.map((u) => he(u, i, _e())));
722
- throw Mn(s, o?.callee), s;
725
+ }, Lo = P("$ZodError", rn), ze = P("$ZodError", rn, { Parent: Error }), Zo = (e) => (t, n, o, r) => {
726
+ const s = o ? Object.assign(o, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, s);
727
+ if (c instanceof Promise)
728
+ throw new fe();
729
+ if (c.issues.length) {
730
+ const i = new (r?.Err ?? e)(c.issues.map((a) => ae(a, s, ie())));
731
+ throw on(i, r?.callee), i;
723
732
  }
724
- return a.value;
725
- }, yo = /* @__PURE__ */ go(Be), bo = (e) => async (t, n, r, o) => {
726
- const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
727
- let a = t._zod.run({ value: n, issues: [] }, i);
728
- if (a instanceof Promise && (a = await a), a.issues.length) {
729
- const s = new (o?.Err ?? e)(a.issues.map((u) => he(u, i, _e())));
730
- throw Mn(s, o?.callee), s;
733
+ return c.value;
734
+ }, Ho = /* @__PURE__ */ Zo(ze), Bo = (e) => async (t, n, o, r) => {
735
+ const s = o ? Object.assign(o, { async: !0 }) : { async: !0 };
736
+ let c = t._zod.run({ value: n, issues: [] }, s);
737
+ if (c instanceof Promise && (c = await c), c.issues.length) {
738
+ const i = new (r?.Err ?? e)(c.issues.map((a) => ae(a, s, ie())));
739
+ throw on(i, r?.callee), i;
731
740
  }
732
- return a.value;
733
- }, wo = /* @__PURE__ */ bo(Be), Eo = (e) => (t, n, r) => {
734
- const o = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, o);
735
- if (i instanceof Promise)
736
- throw new we();
737
- return i.issues.length ? {
741
+ return c.value;
742
+ }, Vo = /* @__PURE__ */ Bo(ze), Wo = (e) => (t, n, o) => {
743
+ const r = o ? { ...o, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, r);
744
+ if (s instanceof Promise)
745
+ throw new fe();
746
+ return s.issues.length ? {
738
747
  success: !1,
739
- error: new (e ?? mo)(i.issues.map((a) => he(a, o, _e())))
740
- } : { success: !0, data: i.value };
741
- }, $n = /* @__PURE__ */ Eo(Be), So = (e) => async (t, n, r) => {
742
- const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
743
- let i = t._zod.run({ value: n, issues: [] }, o);
744
- return i instanceof Promise && (i = await i), i.issues.length ? {
748
+ error: new (e ?? Lo)(s.issues.map((c) => ae(c, r, ie())))
749
+ } : { success: !0, data: s.value };
750
+ }, sn = /* @__PURE__ */ Wo(ze), Fo = (e) => async (t, n, o) => {
751
+ const r = o ? Object.assign(o, { async: !0 }) : { async: !0 };
752
+ let s = t._zod.run({ value: n, issues: [] }, r);
753
+ return s instanceof Promise && (s = await s), s.issues.length ? {
745
754
  success: !1,
746
- error: new e(i.issues.map((a) => he(a, o, _e())))
747
- } : { success: !0, data: i.value };
748
- }, Ln = /* @__PURE__ */ So(Be), Co = (e) => {
755
+ error: new e(s.issues.map((c) => ae(c, r, ie())))
756
+ } : { success: !0, data: s.value };
757
+ }, cn = /* @__PURE__ */ Fo(ze), qo = (e) => {
749
758
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
750
759
  return new RegExp(`^${t}$`);
751
- }, Po = /^-?\d+(?:\.\d+)?$/, Oo = /^(?:true|false)$/i, No = {
760
+ }, Ko = /^-?\d+(?:\.\d+)?$/, Go = /^(?:true|false)$/i, Jo = {
752
761
  major: 4,
753
762
  minor: 3,
754
763
  patch: 6
755
- }, X = /* @__PURE__ */ R("$ZodType", (e, t) => {
764
+ }, B = /* @__PURE__ */ P("$ZodType", (e, t) => {
756
765
  var n;
757
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = No;
758
- const r = [...e._zod.def.checks ?? []];
759
- e._zod.traits.has("$ZodCheck") && r.unshift(e);
760
- for (const o of r)
761
- for (const i of o._zod.onattach)
762
- i(e);
763
- if (r.length === 0)
766
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Jo;
767
+ const o = [...e._zod.def.checks ?? []];
768
+ e._zod.traits.has("$ZodCheck") && o.unshift(e);
769
+ for (const r of o)
770
+ for (const s of r._zod.onattach)
771
+ s(e);
772
+ if (o.length === 0)
764
773
  (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
765
774
  e._zod.run = e._zod.parse;
766
775
  });
767
776
  else {
768
- const o = (a, s, u) => {
769
- let c = ge(a), l;
770
- for (const f of s) {
771
- if (f._zod.def.when) {
772
- if (!f._zod.def.when(a))
777
+ const r = (c, i, a) => {
778
+ let u = ue(c), l;
779
+ for (const d of i) {
780
+ if (d._zod.def.when) {
781
+ if (!d._zod.def.when(c))
773
782
  continue;
774
- } else if (c)
783
+ } else if (u)
775
784
  continue;
776
- const p = a.issues.length, h = f._zod.check(a);
777
- if (h instanceof Promise && u?.async === !1)
778
- throw new we();
779
- if (l || h instanceof Promise)
785
+ const _ = c.issues.length, m = d._zod.check(c);
786
+ if (m instanceof Promise && a?.async === !1)
787
+ throw new fe();
788
+ if (l || m instanceof Promise)
780
789
  l = (l ?? Promise.resolve()).then(async () => {
781
- await h, a.issues.length !== p && (c || (c = ge(a, p)));
790
+ await m, c.issues.length !== _ && (u || (u = ue(c, _)));
782
791
  });
783
792
  else {
784
- if (a.issues.length === p)
793
+ if (c.issues.length === _)
785
794
  continue;
786
- c || (c = ge(a, p));
795
+ u || (u = ue(c, _));
787
796
  }
788
797
  }
789
- return l ? l.then(() => a) : a;
790
- }, i = (a, s, u) => {
791
- if (ge(a))
792
- return a.aborted = !0, a;
793
- const c = o(s, r, u);
794
- if (c instanceof Promise) {
795
- if (u.async === !1)
796
- throw new we();
797
- return c.then((l) => e._zod.parse(l, u));
798
+ return l ? l.then(() => c) : c;
799
+ }, s = (c, i, a) => {
800
+ if (ue(c))
801
+ return c.aborted = !0, c;
802
+ const u = r(i, o, a);
803
+ if (u instanceof Promise) {
804
+ if (a.async === !1)
805
+ throw new fe();
806
+ return u.then((l) => e._zod.parse(l, a));
798
807
  }
799
- return e._zod.parse(c, u);
808
+ return e._zod.parse(u, a);
800
809
  };
801
- e._zod.run = (a, s) => {
802
- if (s.skipChecks)
803
- return e._zod.parse(a, s);
804
- if (s.direction === "backward") {
805
- const c = e._zod.parse({ value: a.value, issues: [] }, { ...s, skipChecks: !0 });
806
- return c instanceof Promise ? c.then((l) => i(l, a, s)) : i(c, a, s);
810
+ e._zod.run = (c, i) => {
811
+ if (i.skipChecks)
812
+ return e._zod.parse(c, i);
813
+ if (i.direction === "backward") {
814
+ const u = e._zod.parse({ value: c.value, issues: [] }, { ...i, skipChecks: !0 });
815
+ return u instanceof Promise ? u.then((l) => s(l, c, i)) : s(u, c, i);
807
816
  }
808
- const u = e._zod.parse(a, s);
809
- if (u instanceof Promise) {
810
- if (s.async === !1)
811
- throw new we();
812
- return u.then((c) => o(c, r, s));
817
+ const a = e._zod.parse(c, i);
818
+ if (a instanceof Promise) {
819
+ if (i.async === !1)
820
+ throw new fe();
821
+ return a.then((u) => r(u, o, i));
813
822
  }
814
- return o(u, r, s);
823
+ return r(a, o, i);
815
824
  };
816
825
  }
817
- j(e, "~standard", () => ({
818
- validate: (o) => {
826
+ T(e, "~standard", () => ({
827
+ validate: (r) => {
819
828
  try {
820
- const i = $n(e, o);
821
- return i.success ? { value: i.data } : { issues: i.error?.issues };
829
+ const s = sn(e, r);
830
+ return s.success ? { value: s.data } : { issues: s.error?.issues };
822
831
  } catch {
823
- return Ln(e, o).then((a) => a.success ? { value: a.data } : { issues: a.error?.issues });
832
+ return cn(e, r).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
824
833
  }
825
834
  },
826
835
  vendor: "zod",
827
836
  version: 1
828
837
  }));
829
- }), Do = /* @__PURE__ */ R("$ZodString", (e, t) => {
830
- X.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Co(e._zod.bag), e._zod.parse = (n, r) => {
838
+ }), Yo = /* @__PURE__ */ P("$ZodString", (e, t) => {
839
+ B.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? qo(e._zod.bag), e._zod.parse = (n, o) => {
831
840
  if (t.coerce)
832
841
  try {
833
842
  n.value = String(n.value);
@@ -840,36 +849,36 @@ const xn = (e, t) => {
840
849
  inst: e
841
850
  }), n;
842
851
  };
843
- }), To = /* @__PURE__ */ R("$ZodBoolean", (e, t) => {
844
- X.init(e, t), e._zod.pattern = Oo, e._zod.parse = (n, r) => {
852
+ }), Xo = /* @__PURE__ */ P("$ZodBoolean", (e, t) => {
853
+ B.init(e, t), e._zod.pattern = Go, e._zod.parse = (n, o) => {
845
854
  if (t.coerce)
846
855
  try {
847
856
  n.value = !!n.value;
848
857
  } catch {
849
858
  }
850
- const o = n.value;
851
- return typeof o == "boolean" || n.issues.push({
859
+ const r = n.value;
860
+ return typeof r == "boolean" || n.issues.push({
852
861
  expected: "boolean",
853
862
  code: "invalid_type",
854
- input: o,
863
+ input: r,
855
864
  inst: e
856
865
  }), n;
857
866
  };
858
867
  });
859
- function We(e, t, n, r, o) {
868
+ function Ne(e, t, n, o, r) {
860
869
  if (e.issues.length) {
861
- if (o && !(n in r))
870
+ if (r && !(n in o))
862
871
  return;
863
- t.issues.push(...ye(n, e.issues));
872
+ t.issues.push(...le(n, e.issues));
864
873
  }
865
- e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
874
+ e.value === void 0 ? n in o && (t.value[n] = void 0) : t.value[n] = e.value;
866
875
  }
867
- function Ao(e) {
876
+ function Qo(e) {
868
877
  const t = Object.keys(e.shape);
869
- for (const r of t)
870
- if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
871
- throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
872
- const n = ho(e.shape);
878
+ for (const o of t)
879
+ if (!e.shape?.[o]?._zod?.traits?.has("$ZodType"))
880
+ throw new Error(`Invalid element at key "${o}": expected a Zod schema`);
881
+ const n = Uo(e.shape);
873
882
  return {
874
883
  ...e,
875
884
  keys: t,
@@ -878,555 +887,583 @@ function Ao(e) {
878
887
  optionalKeys: new Set(n)
879
888
  };
880
889
  }
881
- function Ro(e, t, n, r, o, i) {
882
- const a = [], s = o.keySet, u = o.catchall._zod, c = u.def.type, l = u.optout === "optional";
883
- for (const f in t) {
884
- if (s.has(f))
890
+ function er(e, t, n, o, r, s) {
891
+ const c = [], i = r.keySet, a = r.catchall._zod, u = a.def.type, l = a.optout === "optional";
892
+ for (const d in t) {
893
+ if (i.has(d))
885
894
  continue;
886
- if (c === "never") {
887
- a.push(f);
895
+ if (u === "never") {
896
+ c.push(d);
888
897
  continue;
889
898
  }
890
- const p = u.run({ value: t[f], issues: [] }, r);
891
- p instanceof Promise ? e.push(p.then((h) => We(h, n, f, t, l))) : We(p, n, f, t, l);
899
+ const _ = a.run({ value: t[d], issues: [] }, o);
900
+ _ instanceof Promise ? e.push(_.then((m) => Ne(m, n, d, t, l))) : Ne(_, n, d, t, l);
892
901
  }
893
- return a.length && n.issues.push({
902
+ return c.length && n.issues.push({
894
903
  code: "unrecognized_keys",
895
- keys: a,
904
+ keys: c,
896
905
  input: t,
897
- inst: i
906
+ inst: s
898
907
  }), e.length ? Promise.all(e).then(() => n) : n;
899
908
  }
900
- const ko = /* @__PURE__ */ R("$ZodObject", (e, t) => {
901
- if (X.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
902
- const s = t.shape;
909
+ const tr = /* @__PURE__ */ P("$ZodObject", (e, t) => {
910
+ if (B.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
911
+ const i = t.shape;
903
912
  Object.defineProperty(t, "shape", {
904
913
  get: () => {
905
- const u = { ...s };
914
+ const a = { ...i };
906
915
  return Object.defineProperty(t, "shape", {
907
- value: u
908
- }), u;
916
+ value: a
917
+ }), a;
909
918
  }
910
919
  });
911
920
  }
912
- const r = In(() => Ao(t));
913
- j(e._zod, "propValues", () => {
914
- const s = t.shape, u = {};
915
- for (const c in s) {
916
- const l = s[c]._zod;
921
+ const o = tn(() => Qo(t));
922
+ T(e._zod, "propValues", () => {
923
+ const i = t.shape, a = {};
924
+ for (const u in i) {
925
+ const l = i[u]._zod;
917
926
  if (l.values) {
918
- u[c] ?? (u[c] = /* @__PURE__ */ new Set());
919
- for (const f of l.values)
920
- u[c].add(f);
927
+ a[u] ?? (a[u] = /* @__PURE__ */ new Set());
928
+ for (const d of l.values)
929
+ a[u].add(d);
921
930
  }
922
931
  }
923
- return u;
932
+ return a;
924
933
  });
925
- const o = je, i = t.catchall;
926
- let a;
927
- e._zod.parse = (s, u) => {
928
- a ?? (a = r.value);
929
- const c = s.value;
930
- if (!o(c))
931
- return s.issues.push({
934
+ const r = Pe, s = t.catchall;
935
+ let c;
936
+ e._zod.parse = (i, a) => {
937
+ c ?? (c = o.value);
938
+ const u = i.value;
939
+ if (!r(u))
940
+ return i.issues.push({
932
941
  expected: "object",
933
942
  code: "invalid_type",
934
- input: c,
943
+ input: u,
935
944
  inst: e
936
- }), s;
937
- s.value = {};
938
- const l = [], f = a.shape;
939
- for (const p of a.keys) {
940
- const h = f[p], g = h._zod.optout === "optional", d = h._zod.run({ value: c[p], issues: [] }, u);
941
- d instanceof Promise ? l.push(d.then((_) => We(_, s, p, c, g))) : We(d, s, p, c, g);
945
+ }), i;
946
+ i.value = {};
947
+ const l = [], d = c.shape;
948
+ for (const _ of c.keys) {
949
+ const m = d[_], h = m._zod.optout === "optional", v = m._zod.run({ value: u[_], issues: [] }, a);
950
+ v instanceof Promise ? l.push(v.then((p) => Ne(p, i, _, u, h))) : Ne(v, i, _, u, h);
942
951
  }
943
- return i ? Ro(l, c, s, u, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
952
+ return s ? er(l, u, i, a, o.value, e) : l.length ? Promise.all(l).then(() => i) : i;
944
953
  };
945
954
  });
946
- function Vt(e, t, n, r) {
947
- for (const i of e)
948
- if (i.issues.length === 0)
949
- return t.value = i.value, t;
950
- const o = e.filter((i) => !ge(i));
951
- return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
955
+ function Nt(e, t, n, o) {
956
+ for (const s of e)
957
+ if (s.issues.length === 0)
958
+ return t.value = s.value, t;
959
+ const r = e.filter((s) => !ue(s));
960
+ return r.length === 1 ? (t.value = r[0].value, r[0]) : (t.issues.push({
952
961
  code: "invalid_union",
953
962
  input: t.value,
954
963
  inst: n,
955
- errors: e.map((i) => i.issues.map((a) => he(a, r, _e())))
964
+ errors: e.map((s) => s.issues.map((c) => ae(c, o, ie())))
956
965
  }), t);
957
966
  }
958
- const Io = /* @__PURE__ */ R("$ZodUnion", (e, t) => {
959
- X.init(e, t), j(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), j(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), j(e._zod, "values", () => {
960
- if (t.options.every((o) => o._zod.values))
961
- return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
962
- }), j(e._zod, "pattern", () => {
963
- if (t.options.every((o) => o._zod.pattern)) {
964
- const o = t.options.map((i) => i._zod.pattern);
965
- return new RegExp(`^(${o.map((i) => zn(i.source)).join("|")})$`);
967
+ const nr = /* @__PURE__ */ P("$ZodUnion", (e, t) => {
968
+ B.init(e, t), T(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), T(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), T(e._zod, "values", () => {
969
+ if (t.options.every((r) => r._zod.values))
970
+ return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
971
+ }), T(e._zod, "pattern", () => {
972
+ if (t.options.every((r) => r._zod.pattern)) {
973
+ const r = t.options.map((s) => s._zod.pattern);
974
+ return new RegExp(`^(${r.map((s) => nn(s.source)).join("|")})$`);
966
975
  }
967
976
  });
968
- const n = t.options.length === 1, r = t.options[0]._zod.run;
969
- e._zod.parse = (o, i) => {
977
+ const n = t.options.length === 1, o = t.options[0]._zod.run;
978
+ e._zod.parse = (r, s) => {
970
979
  if (n)
971
- return r(o, i);
972
- let a = !1;
973
- const s = [];
974
- for (const u of t.options) {
975
- const c = u._zod.run({
976
- value: o.value,
980
+ return o(r, s);
981
+ let c = !1;
982
+ const i = [];
983
+ for (const a of t.options) {
984
+ const u = a._zod.run({
985
+ value: r.value,
977
986
  issues: []
978
- }, i);
979
- if (c instanceof Promise)
980
- s.push(c), a = !0;
987
+ }, s);
988
+ if (u instanceof Promise)
989
+ i.push(u), c = !0;
981
990
  else {
982
- if (c.issues.length === 0)
983
- return c;
984
- s.push(c);
991
+ if (u.issues.length === 0)
992
+ return u;
993
+ i.push(u);
985
994
  }
986
995
  }
987
- return a ? Promise.all(s).then((u) => Vt(u, o, e, i)) : Vt(s, o, e, i);
996
+ return c ? Promise.all(i).then((a) => Nt(a, r, e, s)) : Nt(i, r, e, s);
988
997
  };
989
- }), zo = /* @__PURE__ */ R("$ZodDiscriminatedUnion", (e, t) => {
990
- t.inclusive = !1, Io.init(e, t);
998
+ }), or = /* @__PURE__ */ P("$ZodDiscriminatedUnion", (e, t) => {
999
+ t.inclusive = !1, nr.init(e, t);
991
1000
  const n = e._zod.parse;
992
- j(e._zod, "propValues", () => {
993
- const o = {};
994
- for (const i of t.options) {
995
- const a = i._zod.propValues;
996
- if (!a || Object.keys(a).length === 0)
997
- throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);
998
- for (const [s, u] of Object.entries(a)) {
999
- o[s] || (o[s] = /* @__PURE__ */ new Set());
1000
- for (const c of u)
1001
- o[s].add(c);
1001
+ T(e._zod, "propValues", () => {
1002
+ const r = {};
1003
+ for (const s of t.options) {
1004
+ const c = s._zod.propValues;
1005
+ if (!c || Object.keys(c).length === 0)
1006
+ throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);
1007
+ for (const [i, a] of Object.entries(c)) {
1008
+ r[i] || (r[i] = /* @__PURE__ */ new Set());
1009
+ for (const u of a)
1010
+ r[i].add(u);
1002
1011
  }
1003
1012
  }
1004
- return o;
1013
+ return r;
1005
1014
  });
1006
- const r = In(() => {
1007
- const o = t.options, i = /* @__PURE__ */ new Map();
1008
- for (const a of o) {
1009
- const s = a._zod.propValues?.[t.discriminator];
1010
- if (!s || s.size === 0)
1011
- throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);
1012
- for (const u of s) {
1013
- if (i.has(u))
1014
- throw new Error(`Duplicate discriminator value "${String(u)}"`);
1015
- i.set(u, a);
1015
+ const o = tn(() => {
1016
+ const r = t.options, s = /* @__PURE__ */ new Map();
1017
+ for (const c of r) {
1018
+ const i = c._zod.propValues?.[t.discriminator];
1019
+ if (!i || i.size === 0)
1020
+ throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);
1021
+ for (const a of i) {
1022
+ if (s.has(a))
1023
+ throw new Error(`Duplicate discriminator value "${String(a)}"`);
1024
+ s.set(a, c);
1016
1025
  }
1017
1026
  }
1018
- return i;
1027
+ return s;
1019
1028
  });
1020
- e._zod.parse = (o, i) => {
1021
- const a = o.value;
1022
- if (!je(a))
1023
- return o.issues.push({
1029
+ e._zod.parse = (r, s) => {
1030
+ const c = r.value;
1031
+ if (!Pe(c))
1032
+ return r.issues.push({
1024
1033
  code: "invalid_type",
1025
1034
  expected: "object",
1026
- input: a,
1035
+ input: c,
1027
1036
  inst: e
1028
- }), o;
1029
- const s = r.value.get(a?.[t.discriminator]);
1030
- return s ? s._zod.run(o, i) : t.unionFallback ? n(o, i) : (o.issues.push({
1037
+ }), r;
1038
+ const i = o.value.get(c?.[t.discriminator]);
1039
+ return i ? i._zod.run(r, s) : t.unionFallback ? n(r, s) : (r.issues.push({
1031
1040
  code: "invalid_union",
1032
1041
  errors: [],
1033
1042
  note: "No matching discriminator",
1034
1043
  discriminator: t.discriminator,
1035
- input: a,
1044
+ input: c,
1036
1045
  path: [t.discriminator],
1037
1046
  inst: e
1038
- }), o);
1047
+ }), r);
1039
1048
  };
1040
- }), Mo = /* @__PURE__ */ R("$ZodRecord", (e, t) => {
1041
- X.init(e, t), e._zod.parse = (n, r) => {
1042
- const o = n.value;
1043
- if (!_o(o))
1049
+ }), rr = /* @__PURE__ */ P("$ZodRecord", (e, t) => {
1050
+ B.init(e, t), e._zod.parse = (n, o) => {
1051
+ const r = n.value;
1052
+ if (!Do(r))
1044
1053
  return n.issues.push({
1045
1054
  expected: "record",
1046
1055
  code: "invalid_type",
1047
- input: o,
1056
+ input: r,
1048
1057
  inst: e
1049
1058
  }), n;
1050
- const i = [], a = t.keyType._zod.values;
1051
- if (a) {
1059
+ const s = [], c = t.keyType._zod.values;
1060
+ if (c) {
1052
1061
  n.value = {};
1053
- const s = /* @__PURE__ */ new Set();
1054
- for (const c of a)
1055
- if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
1056
- s.add(typeof c == "number" ? c.toString() : c);
1057
- const l = t.valueType._zod.run({ value: o[c], issues: [] }, r);
1058
- l instanceof Promise ? i.push(l.then((f) => {
1059
- f.issues.length && n.issues.push(...ye(c, f.issues)), n.value[c] = f.value;
1060
- })) : (l.issues.length && n.issues.push(...ye(c, l.issues)), n.value[c] = l.value);
1062
+ const i = /* @__PURE__ */ new Set();
1063
+ for (const u of c)
1064
+ if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") {
1065
+ i.add(typeof u == "number" ? u.toString() : u);
1066
+ const l = t.valueType._zod.run({ value: r[u], issues: [] }, o);
1067
+ l instanceof Promise ? s.push(l.then((d) => {
1068
+ d.issues.length && n.issues.push(...le(u, d.issues)), n.value[u] = d.value;
1069
+ })) : (l.issues.length && n.issues.push(...le(u, l.issues)), n.value[u] = l.value);
1061
1070
  }
1062
- let u;
1063
- for (const c in o)
1064
- s.has(c) || (u = u ?? [], u.push(c));
1065
- u && u.length > 0 && n.issues.push({
1071
+ let a;
1072
+ for (const u in r)
1073
+ i.has(u) || (a = a ?? [], a.push(u));
1074
+ a && a.length > 0 && n.issues.push({
1066
1075
  code: "unrecognized_keys",
1067
- input: o,
1076
+ input: r,
1068
1077
  inst: e,
1069
- keys: u
1078
+ keys: a
1070
1079
  });
1071
1080
  } else {
1072
1081
  n.value = {};
1073
- for (const s of Reflect.ownKeys(o)) {
1074
- if (s === "__proto__")
1082
+ for (const i of Reflect.ownKeys(r)) {
1083
+ if (i === "__proto__")
1075
1084
  continue;
1076
- let u = t.keyType._zod.run({ value: s, issues: [] }, r);
1077
- if (u instanceof Promise)
1085
+ let a = t.keyType._zod.run({ value: i, issues: [] }, o);
1086
+ if (a instanceof Promise)
1078
1087
  throw new Error("Async schemas not supported in object keys currently");
1079
- if (typeof s == "string" && Po.test(s) && u.issues.length) {
1080
- const f = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
1081
- if (f instanceof Promise)
1088
+ if (typeof i == "string" && Ko.test(i) && a.issues.length) {
1089
+ const d = t.keyType._zod.run({ value: Number(i), issues: [] }, o);
1090
+ if (d instanceof Promise)
1082
1091
  throw new Error("Async schemas not supported in object keys currently");
1083
- f.issues.length === 0 && (u = f);
1092
+ d.issues.length === 0 && (a = d);
1084
1093
  }
1085
- if (u.issues.length) {
1086
- t.mode === "loose" ? n.value[s] = o[s] : n.issues.push({
1094
+ if (a.issues.length) {
1095
+ t.mode === "loose" ? n.value[i] = r[i] : n.issues.push({
1087
1096
  code: "invalid_key",
1088
1097
  origin: "record",
1089
- issues: u.issues.map((f) => he(f, r, _e())),
1090
- input: s,
1091
- path: [s],
1098
+ issues: a.issues.map((d) => ae(d, o, ie())),
1099
+ input: i,
1100
+ path: [i],
1092
1101
  inst: e
1093
1102
  });
1094
1103
  continue;
1095
1104
  }
1096
- const l = t.valueType._zod.run({ value: o[s], issues: [] }, r);
1097
- l instanceof Promise ? i.push(l.then((f) => {
1098
- f.issues.length && n.issues.push(...ye(s, f.issues)), n.value[u.value] = f.value;
1099
- })) : (l.issues.length && n.issues.push(...ye(s, l.issues)), n.value[u.value] = l.value);
1105
+ const l = t.valueType._zod.run({ value: r[i], issues: [] }, o);
1106
+ l instanceof Promise ? s.push(l.then((d) => {
1107
+ d.issues.length && n.issues.push(...le(i, d.issues)), n.value[a.value] = d.value;
1108
+ })) : (l.issues.length && n.issues.push(...le(i, l.issues)), n.value[a.value] = l.value);
1100
1109
  }
1101
1110
  }
1102
- return i.length ? Promise.all(i).then(() => n) : n;
1111
+ return s.length ? Promise.all(s).then(() => n) : n;
1103
1112
  };
1104
- }), xo = /* @__PURE__ */ R("$ZodLiteral", (e, t) => {
1105
- if (X.init(e, t), t.values.length === 0)
1113
+ }), sr = /* @__PURE__ */ P("$ZodLiteral", (e, t) => {
1114
+ if (B.init(e, t), t.values.length === 0)
1106
1115
  throw new Error("Cannot create literal schema with no valid values");
1107
1116
  const n = new Set(t.values);
1108
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Ht(r) : r ? Ht(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
1109
- const i = r.value;
1110
- return n.has(i) || r.issues.push({
1117
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((o) => typeof o == "string" ? Pt(o) : o ? Pt(o.toString()) : String(o)).join("|")})$`), e._zod.parse = (o, r) => {
1118
+ const s = o.value;
1119
+ return n.has(s) || o.issues.push({
1111
1120
  code: "invalid_value",
1112
1121
  values: t.values,
1113
- input: i,
1122
+ input: s,
1114
1123
  inst: e
1115
- }), r;
1124
+ }), o;
1116
1125
  };
1117
1126
  });
1118
- function Kt(e, t) {
1127
+ function At(e, t) {
1119
1128
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1120
1129
  }
1121
- const $o = /* @__PURE__ */ R("$ZodOptional", (e, t) => {
1122
- X.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", j(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), j(e._zod, "pattern", () => {
1130
+ const ir = /* @__PURE__ */ P("$ZodOptional", (e, t) => {
1131
+ B.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", T(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), T(e._zod, "pattern", () => {
1123
1132
  const n = t.innerType._zod.pattern;
1124
- return n ? new RegExp(`^(${zn(n.source)})?$`) : void 0;
1125
- }), e._zod.parse = (n, r) => {
1133
+ return n ? new RegExp(`^(${nn(n.source)})?$`) : void 0;
1134
+ }), e._zod.parse = (n, o) => {
1126
1135
  if (t.innerType._zod.optin === "optional") {
1127
- const o = t.innerType._zod.run(n, r);
1128
- return o instanceof Promise ? o.then((i) => Kt(i, n.value)) : Kt(o, n.value);
1136
+ const r = t.innerType._zod.run(n, o);
1137
+ return r instanceof Promise ? r.then((s) => At(s, n.value)) : At(r, n.value);
1129
1138
  }
1130
- return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1139
+ return n.value === void 0 ? n : t.innerType._zod.run(n, o);
1131
1140
  };
1132
1141
  });
1133
1142
  // @__NO_SIDE_EFFECTS__
1134
- function Lo(e, t) {
1143
+ function cr(e, t) {
1135
1144
  return new e({
1136
1145
  type: "string",
1137
- ...ve()
1146
+ ...ce()
1138
1147
  });
1139
1148
  }
1140
1149
  // @__NO_SIDE_EFFECTS__
1141
- function Fo(e, t) {
1150
+ function ar(e, t) {
1142
1151
  return new e({
1143
1152
  type: "boolean",
1144
- ...ve()
1153
+ ...ce()
1145
1154
  });
1146
1155
  }
1147
- const ie = /* @__PURE__ */ R("ZodMiniType", (e, t) => {
1156
+ const X = /* @__PURE__ */ P("ZodMiniType", (e, t) => {
1148
1157
  if (!e._zod)
1149
1158
  throw new Error("Uninitialized schema in ZodMiniType.");
1150
- X.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => yo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => $n(e, n, r), e.parseAsync = async (n, r) => wo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ln(e, n, r), e.check = (...n) => e.clone({
1159
+ B.init(e, t), e.def = t, e.type = t.type, e.parse = (n, o) => Ho(e, n, o, { callee: e.parse }), e.safeParse = (n, o) => sn(e, n, o), e.parseAsync = async (n, o) => Vo(e, n, o, { callee: e.parseAsync }), e.safeParseAsync = async (n, o) => cn(e, n, o), e.check = (...n) => e.clone({
1151
1160
  ...t,
1152
1161
  checks: [
1153
1162
  ...t.checks ?? [],
1154
- ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
1163
+ ...n.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
1155
1164
  ]
1156
- }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => vo(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
1157
- }), jo = /* @__PURE__ */ R("ZodMiniString", (e, t) => {
1158
- Do.init(e, t), ie.init(e, t);
1165
+ }, { parent: !0 }), e.with = e.check, e.clone = (n, o) => jo(e, n, o), e.brand = () => e, e.register = ((n, o) => (n.add(e, o), e)), e.apply = (n) => n(e);
1166
+ }), ur = /* @__PURE__ */ P("ZodMiniString", (e, t) => {
1167
+ Yo.init(e, t), X.init(e, t);
1159
1168
  });
1160
1169
  // @__NO_SIDE_EFFECTS__
1161
- function ee(e) {
1162
- return /* @__PURE__ */ Lo(jo);
1170
+ function W(e) {
1171
+ return /* @__PURE__ */ cr(ur);
1163
1172
  }
1164
- const Wo = /* @__PURE__ */ R("ZodMiniBoolean", (e, t) => {
1165
- To.init(e, t), ie.init(e, t);
1173
+ const lr = /* @__PURE__ */ P("ZodMiniBoolean", (e, t) => {
1174
+ Xo.init(e, t), X.init(e, t);
1166
1175
  });
1167
1176
  // @__NO_SIDE_EFFECTS__
1168
- function Se(e) {
1169
- return /* @__PURE__ */ Fo(Wo);
1177
+ function pe(e) {
1178
+ return /* @__PURE__ */ ar(lr);
1170
1179
  }
1171
- const Uo = /* @__PURE__ */ R("ZodMiniObject", (e, t) => {
1172
- ko.init(e, t), ie.init(e, t), j(e, "shape", () => t.shape);
1180
+ const dr = /* @__PURE__ */ P("ZodMiniObject", (e, t) => {
1181
+ tr.init(e, t), X.init(e, t), T(e, "shape", () => t.shape);
1173
1182
  });
1174
1183
  // @__NO_SIDE_EFFECTS__
1175
- function Fn(e, t) {
1184
+ function an(e, t) {
1176
1185
  const n = {
1177
1186
  type: "object",
1178
1187
  shape: e ?? {},
1179
- ...ve()
1188
+ ...ce()
1180
1189
  };
1181
- return new Uo(n);
1190
+ return new dr(n);
1182
1191
  }
1183
- const Bo = /* @__PURE__ */ R("ZodMiniDiscriminatedUnion", (e, t) => {
1184
- zo.init(e, t), ie.init(e, t);
1192
+ const fr = /* @__PURE__ */ P("ZodMiniDiscriminatedUnion", (e, t) => {
1193
+ or.init(e, t), X.init(e, t);
1185
1194
  });
1186
1195
  // @__NO_SIDE_EFFECTS__
1187
- function Zo(e, t, n) {
1188
- return new Bo({
1196
+ function _r(e, t, n) {
1197
+ return new fr({
1189
1198
  type: "union",
1190
1199
  options: t,
1191
1200
  discriminator: e,
1192
- ...ve()
1201
+ ...ce()
1193
1202
  });
1194
1203
  }
1195
- const Ho = /* @__PURE__ */ R("ZodMiniRecord", (e, t) => {
1196
- Mo.init(e, t), ie.init(e, t);
1204
+ const pr = /* @__PURE__ */ P("ZodMiniRecord", (e, t) => {
1205
+ rr.init(e, t), X.init(e, t);
1197
1206
  });
1198
1207
  // @__NO_SIDE_EFFECTS__
1199
- function Vo(e, t, n) {
1200
- return new Ho({
1208
+ function hr(e, t, n) {
1209
+ return new pr({
1201
1210
  type: "record",
1202
1211
  keyType: e,
1203
1212
  valueType: t,
1204
- ...ve()
1213
+ ...ce()
1205
1214
  });
1206
1215
  }
1207
- const Ko = /* @__PURE__ */ R("ZodMiniLiteral", (e, t) => {
1208
- xo.init(e, t), ie.init(e, t);
1216
+ const mr = /* @__PURE__ */ P("ZodMiniLiteral", (e, t) => {
1217
+ sr.init(e, t), X.init(e, t);
1209
1218
  });
1210
1219
  // @__NO_SIDE_EFFECTS__
1211
- function jn(e, t) {
1212
- return new Ko({
1220
+ function un(e, t) {
1221
+ return new mr({
1213
1222
  type: "literal",
1214
1223
  values: Array.isArray(e) ? e : [e],
1215
- ...ve()
1224
+ ...ce()
1216
1225
  });
1217
1226
  }
1218
- const qo = /* @__PURE__ */ R("ZodMiniOptional", (e, t) => {
1219
- $o.init(e, t), ie.init(e, t);
1227
+ const vr = /* @__PURE__ */ P("ZodMiniOptional", (e, t) => {
1228
+ ir.init(e, t), X.init(e, t);
1220
1229
  });
1221
1230
  // @__NO_SIDE_EFFECTS__
1222
- function K(e) {
1223
- return new qo({
1231
+ function L(e) {
1232
+ return new vr({
1224
1233
  type: "optional",
1225
1234
  innerType: e
1226
1235
  });
1227
1236
  }
1228
- const Go = /* @__PURE__ */ Fn({
1229
- variant: /* @__PURE__ */ jn("remote"),
1230
- type: /* @__PURE__ */ K(/* @__PURE__ */ ee()),
1231
- src: /* @__PURE__ */ ee(),
1232
- async: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1233
- defer: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1234
- crossorigin: /* @__PURE__ */ K(/* @__PURE__ */ ee()),
1235
- integrity: /* @__PURE__ */ K(/* @__PURE__ */ ee())
1236
- }), Yo = /* @__PURE__ */ Fn({
1237
- variant: /* @__PURE__ */ jn("inline"),
1238
- type: /* @__PURE__ */ K(/* @__PURE__ */ ee()),
1239
- async: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1240
- defer: /* @__PURE__ */ K(/* @__PURE__ */ Se()),
1241
- content: /* @__PURE__ */ ee()
1242
- }), Xo = /* @__PURE__ */ Zo("variant", [
1243
- Go,
1244
- Yo
1237
+ const gr = /* @__PURE__ */ an({
1238
+ variant: /* @__PURE__ */ un("remote"),
1239
+ type: /* @__PURE__ */ L(/* @__PURE__ */ W()),
1240
+ src: /* @__PURE__ */ W(),
1241
+ async: /* @__PURE__ */ L(/* @__PURE__ */ pe()),
1242
+ defer: /* @__PURE__ */ L(/* @__PURE__ */ pe()),
1243
+ crossorigin: /* @__PURE__ */ L(/* @__PURE__ */ W()),
1244
+ integrity: /* @__PURE__ */ L(/* @__PURE__ */ W())
1245
+ }), yr = /* @__PURE__ */ an({
1246
+ variant: /* @__PURE__ */ un("inline"),
1247
+ type: /* @__PURE__ */ L(/* @__PURE__ */ W()),
1248
+ async: /* @__PURE__ */ L(/* @__PURE__ */ pe()),
1249
+ defer: /* @__PURE__ */ L(/* @__PURE__ */ pe()),
1250
+ content: /* @__PURE__ */ W()
1251
+ }), br = /* @__PURE__ */ _r("variant", [
1252
+ gr,
1253
+ yr
1245
1254
  ]);
1246
- function Jo(e, t) {
1247
- const n = ne(t), r = (i) => {
1248
- const { children: a, ...s } = i, u = z(() => s, Object.values(s));
1249
- return /* @__PURE__ */ v(n.Provider, { value: u, children: a });
1250
- };
1251
- r.displayName = e + "Provider";
1252
- function o(i) {
1253
- const a = Y(n);
1254
- if (a) return a;
1255
- if (t !== void 0) return t;
1256
- throw new Error(`\`${i}\` must be used within \`${e}\``);
1257
- }
1258
- return [r, o];
1259
- }
1260
- function Wn(e, t = []) {
1255
+ function Oe(e, t = []) {
1261
1256
  let n = [];
1262
- function r(i, a) {
1263
- const s = ne(a), u = n.length;
1264
- n = [...n, a];
1265
- const c = (f) => {
1266
- const { scope: p, children: h, ...g } = f, d = p?.[e]?.[u] || s, _ = z(() => g, Object.values(g));
1267
- return /* @__PURE__ */ v(d.Provider, { value: _, children: h });
1257
+ function o(s, c) {
1258
+ const i = ne(c), a = n.length;
1259
+ n = [...n, c];
1260
+ const u = (d) => {
1261
+ const { scope: _, children: m, ...h } = d, v = _?.[e]?.[a] || i, p = z(() => h, Object.values(h));
1262
+ return /* @__PURE__ */ f(v.Provider, { value: p, children: m });
1268
1263
  };
1269
- c.displayName = i + "Provider";
1270
- function l(f, p) {
1271
- const h = p?.[e]?.[u] || s, g = Y(h);
1272
- if (g) return g;
1273
- if (a !== void 0) return a;
1274
- throw new Error(`\`${f}\` must be used within \`${i}\``);
1264
+ u.displayName = s + "Provider";
1265
+ function l(d, _) {
1266
+ const m = _?.[e]?.[a] || i, h = se(m);
1267
+ if (h) return h;
1268
+ if (c !== void 0) return c;
1269
+ throw new Error(`\`${d}\` must be used within \`${s}\``);
1275
1270
  }
1276
- return [c, l];
1271
+ return [u, l];
1277
1272
  }
1278
- const o = () => {
1279
- const i = n.map((a) => ne(a));
1280
- return function(s) {
1281
- const u = s?.[e] || i;
1273
+ const r = () => {
1274
+ const s = n.map((c) => ne(c));
1275
+ return function(i) {
1276
+ const a = i?.[e] || s;
1282
1277
  return z(
1283
- () => ({ [`__scope${e}`]: { ...s, [e]: u } }),
1284
- [s, u]
1278
+ () => ({ [`__scope${e}`]: { ...i, [e]: a } }),
1279
+ [i, a]
1285
1280
  );
1286
1281
  };
1287
1282
  };
1288
- return o.scopeName = e, [r, Qo(o, ...t)];
1283
+ return r.scopeName = e, [o, Cr(r, ...t)];
1289
1284
  }
1290
- function Qo(...e) {
1285
+ function Cr(...e) {
1291
1286
  const t = e[0];
1292
1287
  if (e.length === 1) return t;
1293
1288
  const n = () => {
1294
- const r = e.map((o) => ({
1295
- useScope: o(),
1296
- scopeName: o.scopeName
1289
+ const o = e.map((r) => ({
1290
+ useScope: r(),
1291
+ scopeName: r.scopeName
1297
1292
  }));
1298
- return function(i) {
1299
- const a = r.reduce((s, { useScope: u, scopeName: c }) => {
1300
- const f = u(i)[`__scope${c}`];
1301
- return { ...s, ...f };
1293
+ return function(s) {
1294
+ const c = o.reduce((i, { useScope: a, scopeName: u }) => {
1295
+ const d = a(s)[`__scope${u}`];
1296
+ return { ...i, ...d };
1302
1297
  }, {});
1303
- return z(() => ({ [`__scope${t.scopeName}`]: a }), [a]);
1298
+ return z(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
1304
1299
  };
1305
1300
  };
1306
1301
  return n.scopeName = t.scopeName, n;
1307
1302
  }
1308
- function qt(e, t) {
1303
+ function zt(e, t) {
1309
1304
  if (typeof e == "function")
1310
1305
  return e(t);
1311
1306
  e != null && (e.current = t);
1312
1307
  }
1313
- function Un(...e) {
1308
+ function ln(...e) {
1314
1309
  return (t) => {
1315
1310
  let n = !1;
1316
- const r = e.map((o) => {
1317
- const i = qt(o, t);
1318
- return !n && typeof i == "function" && (n = !0), i;
1311
+ const o = e.map((r) => {
1312
+ const s = zt(r, t);
1313
+ return !n && typeof s == "function" && (n = !0), s;
1319
1314
  });
1320
1315
  if (n)
1321
1316
  return () => {
1322
- for (let o = 0; o < r.length; o++) {
1323
- const i = r[o];
1324
- typeof i == "function" ? i() : qt(e[o], null);
1317
+ for (let r = 0; r < o.length; r++) {
1318
+ const s = o[r];
1319
+ typeof s == "function" ? s() : zt(e[r], null);
1325
1320
  }
1326
1321
  };
1327
1322
  };
1328
1323
  }
1329
- function J(...e) {
1330
- return k(Un(...e), e);
1324
+ function G(...e) {
1325
+ return D(ln(...e), e);
1331
1326
  }
1332
1327
  // @__NO_SIDE_EFFECTS__
1333
- function Bn(e) {
1334
- const t = /* @__PURE__ */ ei(e), n = P((r, o) => {
1335
- const { children: i, ...a } = r, s = U.toArray(i), u = s.find(ni);
1336
- if (u) {
1337
- const c = u.props.children, l = s.map((f) => f === u ? U.count(c) > 1 ? U.only(null) : H(c) ? c.props.children : null : f);
1338
- return /* @__PURE__ */ v(t, { ...a, ref: o, children: H(c) ? pe(c, void 0, l) : null });
1328
+ function Ze(e) {
1329
+ const t = /* @__PURE__ */ wr(e), n = E((o, r) => {
1330
+ const { children: s, ...c } = o, i = H.toArray(s), a = i.find(Pr);
1331
+ if (a) {
1332
+ const u = a.props.children, l = i.map((d) => d === a ? H.count(u) > 1 ? H.only(null) : j(u) ? u.props.children : null : d);
1333
+ return /* @__PURE__ */ f(t, { ...c, ref: r, children: j(u) ? me(u, void 0, l) : null });
1339
1334
  }
1340
- return /* @__PURE__ */ v(t, { ...a, ref: o, children: i });
1335
+ return /* @__PURE__ */ f(t, { ...c, ref: r, children: s });
1341
1336
  });
1342
1337
  return n.displayName = `${e}.Slot`, n;
1343
1338
  }
1344
1339
  // @__NO_SIDE_EFFECTS__
1345
- function ei(e) {
1346
- const t = P((n, r) => {
1347
- const { children: o, ...i } = n;
1348
- if (H(o)) {
1349
- const a = oi(o), s = ri(i, o.props);
1350
- return o.type !== x && (s.ref = r ? Un(r, a) : a), pe(o, s);
1340
+ function wr(e) {
1341
+ const t = E((n, o) => {
1342
+ const { children: r, ...s } = n;
1343
+ if (j(r)) {
1344
+ const c = Ar(r), i = Nr(s, r.props);
1345
+ return r.type !== q && (i.ref = o ? ln(o, c) : c), me(r, i);
1351
1346
  }
1352
- return U.count(o) > 1 ? U.only(null) : null;
1347
+ return H.count(r) > 1 ? H.only(null) : null;
1353
1348
  });
1354
1349
  return t.displayName = `${e}.SlotClone`, t;
1355
1350
  }
1356
- var ti = /* @__PURE__ */ Symbol("radix.slottable");
1357
- function ni(e) {
1358
- return H(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ti;
1351
+ var Sr = /* @__PURE__ */ Symbol("radix.slottable");
1352
+ function Pr(e) {
1353
+ return j(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Sr;
1359
1354
  }
1360
- function ri(e, t) {
1355
+ function Nr(e, t) {
1361
1356
  const n = { ...t };
1362
- for (const r in t) {
1363
- const o = e[r], i = t[r];
1364
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
1365
- const u = i(...s);
1366
- return o(...s), u;
1367
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
1357
+ for (const o in t) {
1358
+ const r = e[o], s = t[o];
1359
+ /^on[A-Z]/.test(o) ? r && s ? n[o] = (...i) => {
1360
+ const a = s(...i);
1361
+ return r(...i), a;
1362
+ } : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...s } : o === "className" && (n[o] = [r, s].filter(Boolean).join(" "));
1368
1363
  }
1369
1364
  return { ...e, ...n };
1370
1365
  }
1371
- function oi(e) {
1366
+ function Ar(e) {
1372
1367
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1373
1368
  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);
1374
1369
  }
1375
- function B(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1376
- return function(o) {
1377
- if (e?.(o), n === !1 || !o.defaultPrevented)
1378
- return t?.(o);
1370
+ function zr(e) {
1371
+ const t = e + "CollectionProvider", [n, o] = Oe(t), [r, s] = n(
1372
+ t,
1373
+ { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1374
+ ), c = (v) => {
1375
+ const { scope: p, children: g } = v, y = S.useRef(null), b = S.useRef(/* @__PURE__ */ new Map()).current;
1376
+ return /* @__PURE__ */ f(r, { scope: p, itemMap: b, collectionRef: y, children: g });
1377
+ };
1378
+ c.displayName = t;
1379
+ const i = e + "CollectionSlot", a = /* @__PURE__ */ Ze(i), u = S.forwardRef(
1380
+ (v, p) => {
1381
+ const { scope: g, children: y } = v, b = s(i, g), k = G(p, b.collectionRef);
1382
+ return /* @__PURE__ */ f(a, { ref: k, children: y });
1383
+ }
1384
+ );
1385
+ u.displayName = i;
1386
+ const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ze(l), m = S.forwardRef(
1387
+ (v, p) => {
1388
+ const { scope: g, children: y, ...b } = v, k = S.useRef(null), ee = G(p, k), U = s(l, g);
1389
+ return S.useEffect(() => (U.itemMap.set(k, { ref: k, ...b }), () => {
1390
+ U.itemMap.delete(k);
1391
+ })), /* @__PURE__ */ f(_, { [d]: "", ref: ee, children: y });
1392
+ }
1393
+ );
1394
+ m.displayName = l;
1395
+ function h(v) {
1396
+ const p = s(e + "CollectionConsumer", v);
1397
+ return S.useCallback(() => {
1398
+ const y = p.collectionRef.current;
1399
+ if (!y) return [];
1400
+ const b = Array.from(y.querySelectorAll(`[${d}]`));
1401
+ return Array.from(p.itemMap.values()).sort(
1402
+ (U, xe) => b.indexOf(U.ref.current) - b.indexOf(xe.ref.current)
1403
+ );
1404
+ }, [p.collectionRef, p.itemMap]);
1405
+ }
1406
+ return [
1407
+ { Provider: c, Slot: u, ItemSlot: m },
1408
+ h,
1409
+ o
1410
+ ];
1411
+ }
1412
+ function Qe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1413
+ return function(r) {
1414
+ if (e?.(r), n === !1 || !r.defaultPrevented)
1415
+ return t?.(r);
1379
1416
  };
1380
1417
  }
1381
- var Ce = globalThis?.document ? G : () => {
1382
- }, ii = kn[" useInsertionEffect ".trim().toString()] || Ce;
1383
- function Zn({
1418
+ var re = globalThis?.document ? Y : () => {
1419
+ }, Or = Qt[" useInsertionEffect ".trim().toString()] || re;
1420
+ function Ee({
1384
1421
  prop: e,
1385
1422
  defaultProp: t,
1386
1423
  onChange: n = () => {
1387
1424
  },
1388
- caller: r
1425
+ caller: o
1389
1426
  }) {
1390
- const [o, i, a] = si({
1427
+ const [r, s, c] = Er({
1391
1428
  defaultProp: t,
1392
1429
  onChange: n
1393
- }), s = e !== void 0, u = s ? e : o;
1430
+ }), i = e !== void 0, a = i ? e : r;
1394
1431
  {
1395
- const l = w(e !== void 0);
1396
- E(() => {
1397
- const f = l.current;
1398
- f !== s && console.warn(
1399
- `${r} is changing from ${f ? "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.`
1400
- ), l.current = s;
1401
- }, [s, r]);
1432
+ const l = N(e !== void 0);
1433
+ $(() => {
1434
+ const d = l.current;
1435
+ d !== i && console.warn(
1436
+ `${o} is changing from ${d ? "controlled" : "uncontrolled"} to ${i ? "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.`
1437
+ ), l.current = i;
1438
+ }, [i, o]);
1402
1439
  }
1403
- const c = k(
1440
+ const u = D(
1404
1441
  (l) => {
1405
- if (s) {
1406
- const f = ai(l) ? l(e) : l;
1407
- f !== e && a.current?.(f);
1442
+ if (i) {
1443
+ const d = kr(l) ? l(e) : l;
1444
+ d !== e && c.current?.(d);
1408
1445
  } else
1409
- i(l);
1446
+ s(l);
1410
1447
  },
1411
- [s, e, i, a]
1448
+ [i, e, s, c]
1412
1449
  );
1413
- return [u, c];
1450
+ return [a, u];
1414
1451
  }
1415
- function si({
1452
+ function Er({
1416
1453
  defaultProp: e,
1417
1454
  onChange: t
1418
1455
  }) {
1419
- const [n, r] = A(e), o = w(n), i = w(t);
1420
- return ii(() => {
1421
- i.current = t;
1422
- }, [t]), E(() => {
1423
- o.current !== n && (i.current?.(n), o.current = n);
1424
- }, [n, o]), [n, r, i];
1425
- }
1426
- function ai(e) {
1456
+ const [n, o] = O(e), r = N(n), s = N(t);
1457
+ return Or(() => {
1458
+ s.current = t;
1459
+ }, [t]), $(() => {
1460
+ r.current !== n && (s.current?.(n), r.current = n);
1461
+ }, [n, r]), [n, o, s];
1462
+ }
1463
+ function kr(e) {
1427
1464
  return typeof e == "function";
1428
1465
  }
1429
- var ci = [
1466
+ var Rr = [
1430
1467
  "a",
1431
1468
  "button",
1432
1469
  "div",
@@ -1444,26 +1481,23 @@ var ci = [
1444
1481
  "span",
1445
1482
  "svg",
1446
1483
  "ul"
1447
- ], $ = ci.reduce((e, t) => {
1448
- const n = /* @__PURE__ */ Bn(`Primitive.${t}`), r = P((o, i) => {
1449
- const { asChild: a, ...s } = o, u = a ? n : t;
1450
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(u, { ...s, ref: i });
1484
+ ], Q = Rr.reduce((e, t) => {
1485
+ const n = /* @__PURE__ */ Ze(`Primitive.${t}`), o = E((r, s) => {
1486
+ const { asChild: c, ...i } = r, a = c ? n : t;
1487
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(a, { ...i, ref: s });
1451
1488
  });
1452
- return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1489
+ return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
1453
1490
  }, {});
1454
- function ui(e, t) {
1455
- e && yt(() => e.dispatchEvent(t));
1456
- }
1457
- function li(e, t) {
1458
- return Oe((n, r) => t[n][r] ?? n, e);
1491
+ function Ir(e, t) {
1492
+ return he((n, o) => t[n][o] ?? n, e);
1459
1493
  }
1460
- var Ze = (e) => {
1461
- const { present: t, children: n } = e, r = fi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : U.only(n), i = J(r.ref, di(o));
1462
- return typeof n == "function" || r.isPresent ? pe(o, { ref: i }) : null;
1494
+ var dn = (e) => {
1495
+ const { present: t, children: n } = e, o = $r(t), r = typeof n == "function" ? n({ present: o.isPresent }) : H.only(n), s = G(o.ref, xr(r));
1496
+ return typeof n == "function" || o.isPresent ? me(r, { ref: s }) : null;
1463
1497
  };
1464
- Ze.displayName = "Presence";
1465
- function fi(e) {
1466
- const [t, n] = A(), r = w(null), o = w(e), i = w("none"), a = e ? "mounted" : "unmounted", [s, u] = li(a, {
1498
+ dn.displayName = "Presence";
1499
+ function $r(e) {
1500
+ const [t, n] = O(), o = N(null), r = N(e), s = N("none"), c = e ? "mounted" : "unmounted", [i, a] = Ir(c, {
1467
1501
  mounted: {
1468
1502
  UNMOUNT: "unmounted",
1469
1503
  ANIMATION_OUT: "unmountSuspended"
@@ -1476,85 +1510,85 @@ function fi(e) {
1476
1510
  MOUNT: "mounted"
1477
1511
  }
1478
1512
  });
1479
- return E(() => {
1480
- const c = Ae(r.current);
1481
- i.current = s === "mounted" ? c : "none";
1482
- }, [s]), Ce(() => {
1483
- const c = r.current, l = o.current;
1513
+ return $(() => {
1514
+ const u = ye(o.current);
1515
+ s.current = i === "mounted" ? u : "none";
1516
+ }, [i]), re(() => {
1517
+ const u = o.current, l = r.current;
1484
1518
  if (l !== e) {
1485
- const p = i.current, h = Ae(c);
1486
- e ? u("MOUNT") : h === "none" || c?.display === "none" ? u("UNMOUNT") : u(l && p !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1519
+ const _ = s.current, m = ye(u);
1520
+ e ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
1487
1521
  }
1488
- }, [e, u]), Ce(() => {
1522
+ }, [e, a]), re(() => {
1489
1523
  if (t) {
1490
- let c;
1491
- const l = t.ownerDocument.defaultView ?? window, f = (h) => {
1492
- const d = Ae(r.current).includes(CSS.escape(h.animationName));
1493
- if (h.target === t && d && (u("ANIMATION_END"), !o.current)) {
1494
- const _ = t.style.animationFillMode;
1495
- t.style.animationFillMode = "forwards", c = l.setTimeout(() => {
1496
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = _);
1524
+ let u;
1525
+ const l = t.ownerDocument.defaultView ?? window, d = (m) => {
1526
+ const v = ye(o.current).includes(CSS.escape(m.animationName));
1527
+ if (m.target === t && v && (a("ANIMATION_END"), !r.current)) {
1528
+ const p = t.style.animationFillMode;
1529
+ t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
1530
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = p);
1497
1531
  });
1498
1532
  }
1499
- }, p = (h) => {
1500
- h.target === t && (i.current = Ae(r.current));
1533
+ }, _ = (m) => {
1534
+ m.target === t && (s.current = ye(o.current));
1501
1535
  };
1502
- return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", f), t.addEventListener("animationend", f), () => {
1503
- l.clearTimeout(c), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", f), t.removeEventListener("animationend", f);
1536
+ return t.addEventListener("animationstart", _), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
1537
+ l.clearTimeout(u), t.removeEventListener("animationstart", _), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
1504
1538
  };
1505
1539
  } else
1506
- u("ANIMATION_END");
1507
- }, [t, u]), {
1508
- isPresent: ["mounted", "unmountSuspended"].includes(s),
1509
- ref: k((c) => {
1510
- r.current = c ? getComputedStyle(c) : null, n(c);
1540
+ a("ANIMATION_END");
1541
+ }, [t, a]), {
1542
+ isPresent: ["mounted", "unmountSuspended"].includes(i),
1543
+ ref: D((u) => {
1544
+ o.current = u ? getComputedStyle(u) : null, n(u);
1511
1545
  }, [])
1512
1546
  };
1513
1547
  }
1514
- function Ae(e) {
1548
+ function ye(e) {
1515
1549
  return e?.animationName || "none";
1516
1550
  }
1517
- function di(e) {
1551
+ function xr(e) {
1518
1552
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1519
1553
  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);
1520
1554
  }
1521
- var pi = kn[" useId ".trim().toString()] || (() => {
1522
- }), _i = 0;
1523
- function xe(e) {
1524
- const [t, n] = A(pi());
1525
- return Ce(() => {
1526
- n((r) => r ?? String(_i++));
1527
- }, [e]), e || (t ? `radix-${t}` : "");
1555
+ var Tr = Qt[" useId ".trim().toString()] || (() => {
1556
+ }), Mr = 0;
1557
+ function fn(e) {
1558
+ const [t, n] = O(Tr());
1559
+ return re(() => {
1560
+ n((o) => o ?? String(Mr++));
1561
+ }, [e]), t ? `radix-${t}` : "";
1528
1562
  }
1529
- var He = "Collapsible", [vi] = Wn(He), [hi, wt] = vi(He), Hn = P(
1563
+ var ke = "Collapsible", [Dr, _n] = Oe(ke), [jr, et] = Dr(ke), pn = E(
1530
1564
  (e, t) => {
1531
1565
  const {
1532
1566
  __scopeCollapsible: n,
1533
- open: r,
1534
- defaultOpen: o,
1535
- disabled: i,
1536
- onOpenChange: a,
1537
- ...s
1538
- } = e, [u, c] = Zn({
1539
- prop: r,
1540
- defaultProp: o ?? !1,
1541
- onChange: a,
1542
- caller: He
1567
+ open: o,
1568
+ defaultOpen: r,
1569
+ disabled: s,
1570
+ onOpenChange: c,
1571
+ ...i
1572
+ } = e, [a, u] = Ee({
1573
+ prop: o,
1574
+ defaultProp: r ?? !1,
1575
+ onChange: c,
1576
+ caller: ke
1543
1577
  });
1544
- return /* @__PURE__ */ v(
1545
- hi,
1578
+ return /* @__PURE__ */ f(
1579
+ jr,
1546
1580
  {
1547
1581
  scope: n,
1548
- disabled: i,
1549
- contentId: xe(),
1550
- open: u,
1551
- onOpenToggle: k(() => c((l) => !l), [c]),
1552
- children: /* @__PURE__ */ v(
1553
- $.div,
1582
+ disabled: s,
1583
+ contentId: fn(),
1584
+ open: a,
1585
+ onOpenToggle: D(() => u((l) => !l), [u]),
1586
+ children: /* @__PURE__ */ f(
1587
+ Q.div,
1554
1588
  {
1555
- "data-state": St(u),
1556
- "data-disabled": i ? "" : void 0,
1557
- ...s,
1589
+ "data-state": nt(a),
1590
+ "data-disabled": s ? "" : void 0,
1591
+ ...i,
1558
1592
  ref: t
1559
1593
  }
1560
1594
  )
@@ -1562,82 +1596,298 @@ var He = "Collapsible", [vi] = Wn(He), [hi, wt] = vi(He), Hn = P(
1562
1596
  );
1563
1597
  }
1564
1598
  );
1565
- Hn.displayName = He;
1566
- var Vn = "CollapsibleTrigger", Kn = P(
1599
+ pn.displayName = ke;
1600
+ var hn = "CollapsibleTrigger", mn = E(
1567
1601
  (e, t) => {
1568
- const { __scopeCollapsible: n, ...r } = e, o = wt(Vn, n);
1569
- return /* @__PURE__ */ v(
1570
- $.button,
1602
+ const { __scopeCollapsible: n, ...o } = e, r = et(hn, n);
1603
+ return /* @__PURE__ */ f(
1604
+ Q.button,
1571
1605
  {
1572
1606
  type: "button",
1573
- "aria-controls": o.contentId,
1574
- "aria-expanded": o.open || !1,
1575
- "data-state": St(o.open),
1576
- "data-disabled": o.disabled ? "" : void 0,
1577
- disabled: o.disabled,
1578
- ...r,
1607
+ "aria-controls": r.contentId,
1608
+ "aria-expanded": r.open || !1,
1609
+ "data-state": nt(r.open),
1610
+ "data-disabled": r.disabled ? "" : void 0,
1611
+ disabled: r.disabled,
1612
+ ...o,
1579
1613
  ref: t,
1580
- onClick: B(e.onClick, o.onOpenToggle)
1614
+ onClick: Qe(e.onClick, r.onOpenToggle)
1581
1615
  }
1582
1616
  );
1583
1617
  }
1584
1618
  );
1585
- Kn.displayName = Vn;
1586
- var Et = "CollapsibleContent", mi = P(
1619
+ mn.displayName = hn;
1620
+ var tt = "CollapsibleContent", vn = E(
1587
1621
  (e, t) => {
1588
- const { forceMount: n, ...r } = e, o = wt(Et, e.__scopeCollapsible);
1589
- return /* @__PURE__ */ v(Ze, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ v(gi, { ...r, ref: t, present: i }) });
1622
+ const { forceMount: n, ...o } = e, r = et(tt, e.__scopeCollapsible);
1623
+ return /* @__PURE__ */ f(dn, { present: n || r.open, children: ({ present: s }) => /* @__PURE__ */ f(Ur, { ...o, ref: t, present: s }) });
1590
1624
  }
1591
1625
  );
1592
- mi.displayName = Et;
1593
- var gi = P((e, t) => {
1594
- const { __scopeCollapsible: n, present: r, children: o, ...i } = e, a = wt(Et, n), [s, u] = A(r), c = w(null), l = J(t, c), f = w(0), p = f.current, h = w(0), g = h.current, d = a.open || s, _ = w(d), m = w(void 0);
1595
- return E(() => {
1596
- const y = requestAnimationFrame(() => _.current = !1);
1626
+ vn.displayName = tt;
1627
+ var Ur = E((e, t) => {
1628
+ const { __scopeCollapsible: n, present: o, children: r, ...s } = e, c = et(tt, n), [i, a] = O(o), u = N(null), l = G(t, u), d = N(0), _ = d.current, m = N(0), h = m.current, v = c.open || i, p = N(v), g = N(void 0);
1629
+ return $(() => {
1630
+ const y = requestAnimationFrame(() => p.current = !1);
1597
1631
  return () => cancelAnimationFrame(y);
1598
- }, []), Ce(() => {
1599
- const y = c.current;
1632
+ }, []), re(() => {
1633
+ const y = u.current;
1600
1634
  if (y) {
1601
- m.current = m.current || {
1635
+ g.current = g.current || {
1602
1636
  transitionDuration: y.style.transitionDuration,
1603
1637
  animationName: y.style.animationName
1604
1638
  }, y.style.transitionDuration = "0s", y.style.animationName = "none";
1605
1639
  const b = y.getBoundingClientRect();
1606
- f.current = b.height, h.current = b.width, _.current || (y.style.transitionDuration = m.current.transitionDuration, y.style.animationName = m.current.animationName), u(r);
1640
+ d.current = b.height, m.current = b.width, p.current || (y.style.transitionDuration = g.current.transitionDuration, y.style.animationName = g.current.animationName), a(o);
1607
1641
  }
1608
- }, [a.open, r]), /* @__PURE__ */ v(
1609
- $.div,
1642
+ }, [c.open, o]), /* @__PURE__ */ f(
1643
+ Q.div,
1610
1644
  {
1611
- "data-state": St(a.open),
1612
- "data-disabled": a.disabled ? "" : void 0,
1613
- id: a.contentId,
1614
- hidden: !d,
1615
- ...i,
1645
+ "data-state": nt(c.open),
1646
+ "data-disabled": c.disabled ? "" : void 0,
1647
+ id: c.contentId,
1648
+ hidden: !v,
1649
+ ...s,
1616
1650
  ref: l,
1617
1651
  style: {
1618
- "--radix-collapsible-content-height": p ? `${p}px` : void 0,
1619
- "--radix-collapsible-content-width": g ? `${g}px` : void 0,
1652
+ "--radix-collapsible-content-height": _ ? `${_}px` : void 0,
1653
+ "--radix-collapsible-content-width": h ? `${h}px` : void 0,
1620
1654
  ...e.style
1621
1655
  },
1622
- children: d && o
1656
+ children: v && r
1623
1657
  }
1624
1658
  );
1625
1659
  });
1626
- function St(e) {
1660
+ function nt(e) {
1661
+ return e ? "open" : "closed";
1662
+ }
1663
+ var gn = pn, yn = mn, bn = vn, Lr = ne(void 0);
1664
+ function Zr(e) {
1665
+ const t = se(Lr);
1666
+ return e || t || "ltr";
1667
+ }
1668
+ var x = "Accordion", Hr = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [ot, Br, Vr] = zr(x), [Re] = Oe(x, [
1669
+ Vr,
1670
+ _n
1671
+ ]), rt = _n(), Cn = S.forwardRef(
1672
+ (e, t) => {
1673
+ const { type: n, ...o } = e, r = o, s = o;
1674
+ return /* @__PURE__ */ f(ot.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ f(Kr, { ...s, ref: t }) : /* @__PURE__ */ f(qr, { ...r, ref: t }) });
1675
+ }
1676
+ );
1677
+ Cn.displayName = x;
1678
+ var [wn, Wr] = Re(x), [Sn, Fr] = Re(
1679
+ x,
1680
+ { collapsible: !1 }
1681
+ ), qr = S.forwardRef(
1682
+ (e, t) => {
1683
+ const {
1684
+ value: n,
1685
+ defaultValue: o,
1686
+ onValueChange: r = () => {
1687
+ },
1688
+ collapsible: s = !1,
1689
+ ...c
1690
+ } = e, [i, a] = Ee({
1691
+ prop: n,
1692
+ defaultProp: o ?? "",
1693
+ onChange: r,
1694
+ caller: x
1695
+ });
1696
+ return /* @__PURE__ */ f(
1697
+ wn,
1698
+ {
1699
+ scope: e.__scopeAccordion,
1700
+ value: S.useMemo(() => i ? [i] : [], [i]),
1701
+ onItemOpen: a,
1702
+ onItemClose: S.useCallback(() => s && a(""), [s, a]),
1703
+ children: /* @__PURE__ */ f(Sn, { scope: e.__scopeAccordion, collapsible: s, children: /* @__PURE__ */ f(Pn, { ...c, ref: t }) })
1704
+ }
1705
+ );
1706
+ }
1707
+ ), Kr = S.forwardRef((e, t) => {
1708
+ const {
1709
+ value: n,
1710
+ defaultValue: o,
1711
+ onValueChange: r = () => {
1712
+ },
1713
+ ...s
1714
+ } = e, [c, i] = Ee({
1715
+ prop: n,
1716
+ defaultProp: o ?? [],
1717
+ onChange: r,
1718
+ caller: x
1719
+ }), a = S.useCallback(
1720
+ (l) => i((d = []) => [...d, l]),
1721
+ [i]
1722
+ ), u = S.useCallback(
1723
+ (l) => i((d = []) => d.filter((_) => _ !== l)),
1724
+ [i]
1725
+ );
1726
+ return /* @__PURE__ */ f(
1727
+ wn,
1728
+ {
1729
+ scope: e.__scopeAccordion,
1730
+ value: c,
1731
+ onItemOpen: a,
1732
+ onItemClose: u,
1733
+ children: /* @__PURE__ */ f(Sn, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ f(Pn, { ...s, ref: t }) })
1734
+ }
1735
+ );
1736
+ }), [Gr, Ie] = Re(x), Pn = S.forwardRef(
1737
+ (e, t) => {
1738
+ const { __scopeAccordion: n, disabled: o, dir: r, orientation: s = "vertical", ...c } = e, i = S.useRef(null), a = G(i, t), u = Br(n), d = Zr(r) === "ltr", _ = Qe(e.onKeyDown, (m) => {
1739
+ if (!Hr.includes(m.key)) return;
1740
+ const h = m.target, v = u().filter((Te) => !Te.ref.current?.disabled), p = v.findIndex((Te) => Te.ref.current === h), g = v.length;
1741
+ if (p === -1) return;
1742
+ m.preventDefault();
1743
+ let y = p;
1744
+ const b = 0, k = g - 1, ee = () => {
1745
+ y = p + 1, y > k && (y = b);
1746
+ }, U = () => {
1747
+ y = p - 1, y < b && (y = k);
1748
+ };
1749
+ switch (m.key) {
1750
+ case "Home":
1751
+ y = b;
1752
+ break;
1753
+ case "End":
1754
+ y = k;
1755
+ break;
1756
+ case "ArrowRight":
1757
+ s === "horizontal" && (d ? ee() : U());
1758
+ break;
1759
+ case "ArrowDown":
1760
+ s === "vertical" && ee();
1761
+ break;
1762
+ case "ArrowLeft":
1763
+ s === "horizontal" && (d ? U() : ee());
1764
+ break;
1765
+ case "ArrowUp":
1766
+ s === "vertical" && U();
1767
+ break;
1768
+ }
1769
+ const xe = y % g;
1770
+ v[xe].ref.current?.focus();
1771
+ });
1772
+ return /* @__PURE__ */ f(
1773
+ Gr,
1774
+ {
1775
+ scope: n,
1776
+ disabled: o,
1777
+ direction: r,
1778
+ orientation: s,
1779
+ children: /* @__PURE__ */ f(ot.Slot, { scope: n, children: /* @__PURE__ */ f(
1780
+ Q.div,
1781
+ {
1782
+ ...c,
1783
+ "data-orientation": s,
1784
+ ref: a,
1785
+ onKeyDown: o ? void 0 : _
1786
+ }
1787
+ ) })
1788
+ }
1789
+ );
1790
+ }
1791
+ ), Ae = "AccordionItem", [Jr, st] = Re(Ae), Nn = S.forwardRef(
1792
+ (e, t) => {
1793
+ const { __scopeAccordion: n, value: o, ...r } = e, s = Ie(Ae, n), c = Wr(Ae, n), i = rt(n), a = fn(), u = o && c.value.includes(o) || !1, l = s.disabled || e.disabled;
1794
+ return /* @__PURE__ */ f(
1795
+ Jr,
1796
+ {
1797
+ scope: n,
1798
+ open: u,
1799
+ disabled: l,
1800
+ triggerId: a,
1801
+ children: /* @__PURE__ */ f(
1802
+ gn,
1803
+ {
1804
+ "data-orientation": s.orientation,
1805
+ "data-state": kn(u),
1806
+ ...i,
1807
+ ...r,
1808
+ ref: t,
1809
+ disabled: l,
1810
+ open: u,
1811
+ onOpenChange: (d) => {
1812
+ d ? c.onItemOpen(o) : c.onItemClose(o);
1813
+ }
1814
+ }
1815
+ )
1816
+ }
1817
+ );
1818
+ }
1819
+ );
1820
+ Nn.displayName = Ae;
1821
+ var An = "AccordionHeader", Yr = S.forwardRef(
1822
+ (e, t) => {
1823
+ const { __scopeAccordion: n, ...o } = e, r = Ie(x, n), s = st(An, n);
1824
+ return /* @__PURE__ */ f(
1825
+ Q.h3,
1826
+ {
1827
+ "data-orientation": r.orientation,
1828
+ "data-state": kn(s.open),
1829
+ "data-disabled": s.disabled ? "" : void 0,
1830
+ ...o,
1831
+ ref: t
1832
+ }
1833
+ );
1834
+ }
1835
+ );
1836
+ Yr.displayName = An;
1837
+ var He = "AccordionTrigger", zn = S.forwardRef(
1838
+ (e, t) => {
1839
+ const { __scopeAccordion: n, ...o } = e, r = Ie(x, n), s = st(He, n), c = Fr(He, n), i = rt(n);
1840
+ return /* @__PURE__ */ f(ot.ItemSlot, { scope: n, children: /* @__PURE__ */ f(
1841
+ yn,
1842
+ {
1843
+ "aria-disabled": s.open && !c.collapsible || void 0,
1844
+ "data-orientation": r.orientation,
1845
+ id: s.triggerId,
1846
+ ...i,
1847
+ ...o,
1848
+ ref: t
1849
+ }
1850
+ ) });
1851
+ }
1852
+ );
1853
+ zn.displayName = He;
1854
+ var On = "AccordionContent", En = S.forwardRef(
1855
+ (e, t) => {
1856
+ const { __scopeAccordion: n, ...o } = e, r = Ie(x, n), s = st(On, n), c = rt(n);
1857
+ return /* @__PURE__ */ f(
1858
+ bn,
1859
+ {
1860
+ role: "region",
1861
+ "aria-labelledby": s.triggerId,
1862
+ "data-orientation": r.orientation,
1863
+ ...c,
1864
+ ...o,
1865
+ ref: t,
1866
+ style: {
1867
+ "--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
1868
+ "--radix-accordion-content-width": "var(--radix-collapsible-content-width)",
1869
+ ...e.style
1870
+ }
1871
+ }
1872
+ );
1873
+ }
1874
+ );
1875
+ En.displayName = On;
1876
+ function kn(e) {
1627
1877
  return e ? "open" : "closed";
1628
1878
  }
1629
- var yi = Hn, bi = Kn;
1630
- const qn = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1631
- const wi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1632
- const Ei = (e) => e.replace(
1879
+ var Xr = Cn, Qr = Nn, Ot = zn, es = En;
1880
+ const Rn = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t) === n).join(" ").trim();
1881
+ const ts = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1882
+ const ns = (e) => e.replace(
1633
1883
  /^([A-Z])|[\s-_]+(\w)/g,
1634
- (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
1884
+ (t, n, o) => o ? o.toUpperCase() : n.toLowerCase()
1635
1885
  );
1636
- const Gt = (e) => {
1637
- const t = Ei(e);
1886
+ const Et = (e) => {
1887
+ const t = ns(e);
1638
1888
  return t.charAt(0).toUpperCase() + t.slice(1);
1639
1889
  };
1640
- var Si = {
1890
+ var os = {
1641
1891
  xmlns: "http://www.w3.org/2000/svg",
1642
1892
  width: 24,
1643
1893
  height: 24,
@@ -1648,1251 +1898,471 @@ var Si = {
1648
1898
  strokeLinecap: "round",
1649
1899
  strokeLinejoin: "round"
1650
1900
  };
1651
- const Ci = (e) => {
1901
+ const rs = (e) => {
1652
1902
  for (const t in e)
1653
1903
  if (t.startsWith("aria-") || t === "role" || t === "title")
1654
1904
  return !0;
1655
1905
  return !1;
1656
1906
  };
1657
- const Pi = P(
1907
+ const ss = E(
1658
1908
  ({
1659
1909
  color: e = "currentColor",
1660
1910
  size: t = 24,
1661
1911
  strokeWidth: n = 2,
1662
- absoluteStrokeWidth: r,
1663
- className: o = "",
1664
- children: i,
1665
- iconNode: a,
1666
- ...s
1667
- }, u) => D(
1912
+ absoluteStrokeWidth: o,
1913
+ className: r = "",
1914
+ children: s,
1915
+ iconNode: c,
1916
+ ...i
1917
+ }, a) => I(
1668
1918
  "svg",
1669
1919
  {
1670
- ref: u,
1671
- ...Si,
1920
+ ref: a,
1921
+ ...os,
1672
1922
  width: t,
1673
1923
  height: t,
1674
1924
  stroke: e,
1675
- strokeWidth: r ? Number(n) * 24 / Number(t) : n,
1676
- className: qn("lucide", o),
1677
- ...!i && !Ci(s) && { "aria-hidden": "true" },
1678
- ...s
1925
+ strokeWidth: o ? Number(n) * 24 / Number(t) : n,
1926
+ className: Rn("lucide", r),
1927
+ ...!s && !rs(i) && { "aria-hidden": "true" },
1928
+ ...i
1679
1929
  },
1680
1930
  [
1681
- ...a.map(([c, l]) => D(c, l)),
1682
- ...Array.isArray(i) ? i : [i]
1931
+ ...c.map(([u, l]) => I(u, l)),
1932
+ ...Array.isArray(s) ? s : [s]
1683
1933
  ]
1684
1934
  )
1685
1935
  );
1686
- const Oi = (e, t) => {
1687
- const n = P(
1688
- ({ className: r, ...o }, i) => D(Pi, {
1689
- ref: i,
1936
+ const In = (e, t) => {
1937
+ const n = E(
1938
+ ({ className: o, ...r }, s) => I(ss, {
1939
+ ref: s,
1690
1940
  iconNode: t,
1691
- className: qn(
1692
- `lucide-${wi(Gt(e))}`,
1941
+ className: Rn(
1942
+ `lucide-${ts(Et(e))}`,
1693
1943
  `lucide-${e}`,
1694
- r
1944
+ o
1695
1945
  ),
1696
- ...o
1946
+ ...r
1697
1947
  })
1698
1948
  );
1699
- return n.displayName = Gt(e), n;
1949
+ return n.displayName = Et(e), n;
1700
1950
  };
1701
- const Ni = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Di = Oi("chevron-up", Ni), Ti = /* @__PURE__ */ Vo(/* @__PURE__ */ ee(), /* @__PURE__ */ Se()), Gn = ne(null), Ai = ({
1951
+ const is = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], cs = In("chevron-down", is);
1952
+ const as = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], us = In("chevron-up", as);
1953
+ function ls(e) {
1954
+ const t = N({ value: e, previous: e });
1955
+ return z(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1956
+ }
1957
+ function ds(e) {
1958
+ const [t, n] = O(void 0);
1959
+ return re(() => {
1960
+ if (e) {
1961
+ n({ width: e.offsetWidth, height: e.offsetHeight });
1962
+ const o = new ResizeObserver((r) => {
1963
+ if (!Array.isArray(r) || !r.length)
1964
+ return;
1965
+ const s = r[0];
1966
+ let c, i;
1967
+ if ("borderBoxSize" in s) {
1968
+ const a = s.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
1969
+ c = u.inlineSize, i = u.blockSize;
1970
+ } else
1971
+ c = e.offsetWidth, i = e.offsetHeight;
1972
+ n({ width: c, height: i });
1973
+ });
1974
+ return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
1975
+ } else
1976
+ n(void 0);
1977
+ }, [e]), t;
1978
+ }
1979
+ var $e = "Switch", [fs] = Oe($e), [_s, ps] = fs($e), $n = E(
1980
+ (e, t) => {
1981
+ const {
1982
+ __scopeSwitch: n,
1983
+ name: o,
1984
+ checked: r,
1985
+ defaultChecked: s,
1986
+ required: c,
1987
+ disabled: i,
1988
+ value: a = "on",
1989
+ onCheckedChange: u,
1990
+ form: l,
1991
+ ...d
1992
+ } = e, [_, m] = O(null), h = G(t, (b) => m(b)), v = N(!1), p = _ ? l || !!_.closest("form") : !0, [g, y] = Ee({
1993
+ prop: r,
1994
+ defaultProp: s ?? !1,
1995
+ onChange: u,
1996
+ caller: $e
1997
+ });
1998
+ return /* @__PURE__ */ f(_s, { scope: n, checked: g, disabled: i, children: [
1999
+ /* @__PURE__ */ f(
2000
+ Q.button,
2001
+ {
2002
+ type: "button",
2003
+ role: "switch",
2004
+ "aria-checked": g,
2005
+ "aria-required": c,
2006
+ "data-state": Dn(g),
2007
+ "data-disabled": i ? "" : void 0,
2008
+ disabled: i,
2009
+ value: a,
2010
+ ...d,
2011
+ ref: h,
2012
+ onClick: Qe(e.onClick, (b) => {
2013
+ y((k) => !k), p && (v.current = b.isPropagationStopped(), v.current || b.stopPropagation());
2014
+ })
2015
+ }
2016
+ ),
2017
+ p && /* @__PURE__ */ f(
2018
+ Mn,
2019
+ {
2020
+ control: _,
2021
+ bubbles: !v.current,
2022
+ name: o,
2023
+ value: a,
2024
+ checked: g,
2025
+ required: c,
2026
+ disabled: i,
2027
+ form: l,
2028
+ style: { transform: "translateX(-100%)" }
2029
+ }
2030
+ )
2031
+ ] });
2032
+ }
2033
+ );
2034
+ $n.displayName = $e;
2035
+ var xn = "SwitchThumb", Tn = E(
2036
+ (e, t) => {
2037
+ const { __scopeSwitch: n, ...o } = e, r = ps(xn, n);
2038
+ return /* @__PURE__ */ f(
2039
+ Q.span,
2040
+ {
2041
+ "data-state": Dn(r.checked),
2042
+ "data-disabled": r.disabled ? "" : void 0,
2043
+ ...o,
2044
+ ref: t
2045
+ }
2046
+ );
2047
+ }
2048
+ );
2049
+ Tn.displayName = xn;
2050
+ var hs = "SwitchBubbleInput", Mn = E(
2051
+ ({
2052
+ __scopeSwitch: e,
2053
+ control: t,
2054
+ checked: n,
2055
+ bubbles: o = !0,
2056
+ ...r
2057
+ }, s) => {
2058
+ const c = N(null), i = G(c, s), a = ls(n), u = ds(t);
2059
+ return $(() => {
2060
+ const l = c.current;
2061
+ if (!l) return;
2062
+ const d = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
2063
+ d,
2064
+ "checked"
2065
+ ).set;
2066
+ if (a !== n && m) {
2067
+ const h = new Event("click", { bubbles: o });
2068
+ m.call(l, n), l.dispatchEvent(h);
2069
+ }
2070
+ }, [a, n, o]), /* @__PURE__ */ f(
2071
+ "input",
2072
+ {
2073
+ type: "checkbox",
2074
+ "aria-hidden": !0,
2075
+ defaultChecked: n,
2076
+ ...r,
2077
+ tabIndex: -1,
2078
+ ref: i,
2079
+ style: {
2080
+ ...r.style,
2081
+ ...u,
2082
+ position: "absolute",
2083
+ pointerEvents: "none",
2084
+ opacity: 0,
2085
+ margin: 0
2086
+ }
2087
+ }
2088
+ );
2089
+ }
2090
+ );
2091
+ Mn.displayName = hs;
2092
+ function Dn(e) {
2093
+ return e ? "checked" : "unchecked";
2094
+ }
2095
+ var ms = $n, vs = Tn;
2096
+ const gs = "_root_dibqz_1", ys = "_thumb_dibqz_38", be = {
2097
+ root: gs,
2098
+ switch: "_switch_dibqz_8",
2099
+ thumb: ys
2100
+ }, bs = ({ label: e, id: t, ...n }) => /* @__PURE__ */ f("div", { className: be.root, children: [
2101
+ e && /* @__PURE__ */ f(F, { className: be.label, as: "label", htmlFor: t, children: e }),
2102
+ /* @__PURE__ */ f(ms, { className: be.switch, ...n, children: /* @__PURE__ */ f(vs, { className: be.thumb }) })
2103
+ ] }), Cs = /* @__PURE__ */ hr(/* @__PURE__ */ W(), /* @__PURE__ */ pe()), jn = ne(null), ws = ({
1702
2104
  children: e,
1703
2105
  items: t,
1704
2106
  localStorageKey: n
1705
2107
  }) => {
1706
- function r(g) {
1707
- const d = localStorage.getItem(g);
1708
- if (!d) return null;
1709
- const { success: _, data: m } = Ti.safeParse(
1710
- JSON.parse(d)
2108
+ function o(h) {
2109
+ const v = localStorage.getItem(h);
2110
+ if (!v) return null;
2111
+ const { success: p, data: g } = Cs.safeParse(
2112
+ JSON.parse(v)
1711
2113
  );
1712
- return _ ? m : null;
2114
+ return p ? g : null;
1713
2115
  }
1714
- const o = z(
2116
+ const r = z(
1715
2117
  () => Object.fromEntries(
1716
- t.map((g) => [g.value, g.defaultSelected ?? !1])
2118
+ t.map((h) => [h.value, h.defaultSelected ?? !1])
1717
2119
  ),
1718
2120
  [t]
1719
- ), [i, a] = A(
1720
- r(n) ?? o
1721
- ), [s, u] = A(
1722
- r(n)
2121
+ ), [s, c] = O(
2122
+ o(n) ?? r
2123
+ ), [i, a] = O(
2124
+ o(n)
1723
2125
  );
1724
- function c(g, d) {
1725
- const _ = i ? { ...i, [g]: d } : { [g]: d };
1726
- a(_);
2126
+ function u(h, v) {
2127
+ const p = s ? { ...s, [h]: v } : { [h]: v };
2128
+ c(p);
1727
2129
  }
1728
- E(() => {
1729
- let g = [];
1730
- s !== null && (g = Object.entries(s).filter(([_, m]) => m).map(([_]) => _));
1731
- const d = t.filter(
1732
- (_) => g.includes(_.value)
2130
+ $(() => {
2131
+ let h = [];
2132
+ i !== null && (h = Object.entries(i).filter(([p, g]) => g).map(([p]) => p));
2133
+ const v = t.filter(
2134
+ (p) => h.includes(p.value)
1733
2135
  );
1734
- for (const _ of t) {
1735
- const m = document.head.querySelector(`#${_.value}`);
1736
- m && m.remove();
2136
+ for (const p of t) {
2137
+ const g = document.head.querySelector(`#${p.value}`);
2138
+ g && g.remove();
1737
2139
  }
1738
- for (const _ of d) {
1739
- const m = document.createElement("script");
1740
- if (m.id = _.value, !_.script) {
1741
- _.required || console.warn("CookieBanner: Missing script for", _.value);
2140
+ for (const p of v) {
2141
+ const g = document.createElement("script");
2142
+ if (g.id = p.value, !p.script) {
2143
+ p.required || console.warn("CookieBanner: Missing script for", p.value);
1742
2144
  continue;
1743
2145
  }
1744
- const { success: y, data: b } = Xo.safeParse(
1745
- _.script
2146
+ const { success: y, data: b } = br.safeParse(
2147
+ p.script
1746
2148
  );
1747
2149
  if (!y) {
1748
2150
  console.error(
1749
2151
  "CookieBanner: Invalid script definition for",
1750
- _.value
2152
+ p.value
1751
2153
  );
1752
2154
  continue;
1753
2155
  }
1754
- switch (m.type = b.type ?? "text/javascript", m.async = b.async ?? !1, m.defer = b.defer ?? !1, b.variant) {
2156
+ switch (g.type = b.type ?? "text/javascript", g.async = b.async ?? !1, g.defer = b.defer ?? !1, b.variant) {
1755
2157
  case "inline":
1756
- m.textContent = b.content;
2158
+ g.textContent = b.content;
1757
2159
  break;
1758
2160
  case "remote":
1759
- m.src = b.src, m.crossOrigin = b.crossorigin ?? null, m.integrity = b.integrity ?? "";
2161
+ g.src = b.src, g.crossOrigin = b.crossorigin ?? null, g.integrity = b.integrity ?? "";
1760
2162
  break;
1761
2163
  }
1762
- document.head.appendChild(m);
2164
+ document.head.appendChild(g);
1763
2165
  }
1764
- }, [s, t]);
1765
- function l(g) {
1766
- u(g), localStorage.setItem(n, JSON.stringify(g));
2166
+ }, [i, t]);
2167
+ function l(h) {
2168
+ a(h), localStorage.setItem(n, JSON.stringify(h));
1767
2169
  }
1768
- const f = k(() => {
1769
- const g = Object.fromEntries(
1770
- t.map((d) => [d.value, !1])
2170
+ const d = D(() => {
2171
+ const h = Object.fromEntries(
2172
+ t.map((v) => [v.value, !1])
1771
2173
  );
1772
- a(g), l(g);
1773
- }, [t]), p = k(() => {
1774
- l(i);
1775
- }, [i]), h = z(() => {
1776
- if (!s) return !1;
1777
- const g = Object.keys(s);
1778
- return t.map((_) => _.value).every((_) => g.includes(_));
1779
- }, [s, t]);
1780
- return /* @__PURE__ */ v(
1781
- Gn.Provider,
2174
+ c(h), l(h);
2175
+ }, [t]), _ = D(() => {
2176
+ l(s);
2177
+ }, [s]), m = z(() => {
2178
+ if (!i) return !1;
2179
+ const h = Object.keys(i);
2180
+ return t.map((p) => p.value).every((p) => h.includes(p));
2181
+ }, [i, t]);
2182
+ return /* @__PURE__ */ f(
2183
+ jn.Provider,
1782
2184
  {
1783
2185
  value: {
1784
- selection: i,
1785
- toggleSelection: c,
1786
- onDeclineAll: f,
1787
- onSave: p,
1788
- selectionTaken: h
2186
+ selection: s,
2187
+ toggleSelection: u,
2188
+ onDeclineAll: d,
2189
+ onSave: _,
2190
+ selectionTaken: m
1789
2191
  },
1790
2192
  children: e
1791
2193
  }
1792
2194
  );
1793
2195
  };
1794
- function Ri() {
1795
- const e = Y(Gn);
2196
+ function Un() {
2197
+ const e = se(jn);
1796
2198
  if (!e)
1797
2199
  throw new Error("useSelection must be used within a SelectionProvider");
1798
2200
  return e;
1799
2201
  }
1800
- function Pe(e) {
1801
- const t = w(e);
1802
- return E(() => {
1803
- t.current = e;
1804
- }), z(() => (...n) => t.current?.(...n), []);
1805
- }
1806
- function ki(e, t = globalThis?.document) {
1807
- const n = Pe(e);
1808
- E(() => {
1809
- const r = (o) => {
1810
- o.key === "Escape" && n(o);
1811
- };
1812
- return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
1813
- }, [n, t]);
1814
- }
1815
- var Ii = "DismissableLayer", at = "dismissableLayer.update", zi = "dismissableLayer.pointerDownOutside", Mi = "dismissableLayer.focusOutside", Yt, Yn = ne({
1816
- layers: /* @__PURE__ */ new Set(),
1817
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
1818
- branches: /* @__PURE__ */ new Set()
1819
- }), Xn = P(
1820
- (e, t) => {
1821
- const {
1822
- disableOutsidePointerEvents: n = !1,
1823
- onEscapeKeyDown: r,
1824
- onPointerDownOutside: o,
1825
- onFocusOutside: i,
1826
- onInteractOutside: a,
1827
- onDismiss: s,
1828
- ...u
1829
- } = e, c = Y(Yn), [l, f] = A(null), p = l?.ownerDocument ?? globalThis?.document, [, h] = A({}), g = J(t, (S) => f(S)), d = Array.from(c.layers), [_] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), m = d.indexOf(_), y = l ? d.indexOf(l) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, O = y >= m, T = Li((S) => {
1830
- const Q = S.target, se = [...c.branches].some((me) => me.contains(Q));
1831
- !O || se || (o?.(S), a?.(S), S.defaultPrevented || s?.());
1832
- }, p), M = Fi((S) => {
1833
- const Q = S.target;
1834
- [...c.branches].some((me) => me.contains(Q)) || (i?.(S), a?.(S), S.defaultPrevented || s?.());
1835
- }, p);
1836
- return ki((S) => {
1837
- y === c.layers.size - 1 && (r?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
1838
- }, p), E(() => {
1839
- if (l)
1840
- return n && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (Yt = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(l)), c.layers.add(l), Xt(), () => {
1841
- n && c.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = Yt);
1842
- };
1843
- }, [l, p, n, c]), E(() => () => {
1844
- l && (c.layers.delete(l), c.layersWithOutsidePointerEventsDisabled.delete(l), Xt());
1845
- }, [l, c]), E(() => {
1846
- const S = () => h({});
1847
- return document.addEventListener(at, S), () => document.removeEventListener(at, S);
1848
- }, []), /* @__PURE__ */ v(
1849
- $.div,
1850
- {
1851
- ...u,
1852
- ref: g,
1853
- style: {
1854
- pointerEvents: b ? O ? "auto" : "none" : void 0,
1855
- ...e.style
1856
- },
1857
- onFocusCapture: B(e.onFocusCapture, M.onFocusCapture),
1858
- onBlurCapture: B(e.onBlurCapture, M.onBlurCapture),
1859
- onPointerDownCapture: B(
1860
- e.onPointerDownCapture,
1861
- T.onPointerDownCapture
1862
- )
1863
- }
1864
- );
1865
- }
1866
- );
1867
- Xn.displayName = Ii;
1868
- var xi = "DismissableLayerBranch", $i = P((e, t) => {
1869
- const n = Y(Yn), r = w(null), o = J(t, r);
1870
- return E(() => {
1871
- const i = r.current;
1872
- if (i)
1873
- return n.branches.add(i), () => {
1874
- n.branches.delete(i);
1875
- };
1876
- }, [n.branches]), /* @__PURE__ */ v($.div, { ...e, ref: o });
1877
- });
1878
- $i.displayName = xi;
1879
- function Li(e, t = globalThis?.document) {
1880
- const n = Pe(e), r = w(!1), o = w(() => {
1881
- });
1882
- return E(() => {
1883
- const i = (s) => {
1884
- if (s.target && !r.current) {
1885
- let u = function() {
1886
- Jn(
1887
- zi,
1888
- n,
1889
- c,
1890
- { discrete: !0 }
1891
- );
1892
- };
1893
- const c = { originalEvent: s };
1894
- s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
1895
- } else
1896
- t.removeEventListener("click", o.current);
1897
- r.current = !1;
1898
- }, a = window.setTimeout(() => {
1899
- t.addEventListener("pointerdown", i);
1900
- }, 0);
1901
- return () => {
1902
- window.clearTimeout(a), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
1903
- };
1904
- }, [t, n]), {
1905
- // ensures we check React component tree (not just DOM tree)
1906
- onPointerDownCapture: () => r.current = !0
1907
- };
1908
- }
1909
- function Fi(e, t = globalThis?.document) {
1910
- const n = Pe(e), r = w(!1);
1911
- return E(() => {
1912
- const o = (i) => {
1913
- i.target && !r.current && Jn(Mi, n, { originalEvent: i }, {
1914
- discrete: !1
1915
- });
1916
- };
1917
- return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
1918
- }, [t, n]), {
1919
- onFocusCapture: () => r.current = !0,
1920
- onBlurCapture: () => r.current = !1
1921
- };
1922
- }
1923
- function Xt() {
1924
- const e = new CustomEvent(at);
1925
- document.dispatchEvent(e);
1926
- }
1927
- function Jn(e, t, n, { discrete: r }) {
1928
- const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
1929
- t && o.addEventListener(e, t, { once: !0 }), r ? ui(o, i) : o.dispatchEvent(i);
1930
- }
1931
- var Je = "focusScope.autoFocusOnMount", Qe = "focusScope.autoFocusOnUnmount", Jt = { bubbles: !1, cancelable: !0 }, ji = "FocusScope", Qn = P((e, t) => {
1932
- const {
1933
- loop: n = !1,
1934
- trapped: r = !1,
1935
- onMountAutoFocus: o,
1936
- onUnmountAutoFocus: i,
1937
- ...a
1938
- } = e, [s, u] = A(null), c = Pe(o), l = Pe(i), f = w(null), p = J(t, (d) => u(d)), h = w({
1939
- paused: !1,
1940
- pause() {
1941
- this.paused = !0;
1942
- },
1943
- resume() {
1944
- this.paused = !1;
1945
- }
1946
- }).current;
1947
- E(() => {
1948
- if (r) {
1949
- let d = function(b) {
1950
- if (h.paused || !s) return;
1951
- const O = b.target;
1952
- s.contains(O) ? f.current = O : V(f.current, { select: !0 });
1953
- }, _ = function(b) {
1954
- if (h.paused || !s) return;
1955
- const O = b.relatedTarget;
1956
- O !== null && (s.contains(O) || V(f.current, { select: !0 }));
1957
- }, m = function(b) {
1958
- if (document.activeElement === document.body)
1959
- for (const T of b)
1960
- T.removedNodes.length > 0 && V(s);
1961
- };
1962
- document.addEventListener("focusin", d), document.addEventListener("focusout", _);
1963
- const y = new MutationObserver(m);
1964
- return s && y.observe(s, { childList: !0, subtree: !0 }), () => {
1965
- document.removeEventListener("focusin", d), document.removeEventListener("focusout", _), y.disconnect();
1966
- };
1967
- }
1968
- }, [r, s, h.paused]), E(() => {
1969
- if (s) {
1970
- en.add(h);
1971
- const d = document.activeElement;
1972
- if (!s.contains(d)) {
1973
- const m = new CustomEvent(Je, Jt);
1974
- s.addEventListener(Je, c), s.dispatchEvent(m), m.defaultPrevented || (Wi(Vi(er(s)), { select: !0 }), document.activeElement === d && V(s));
1975
- }
1976
- return () => {
1977
- s.removeEventListener(Je, c), setTimeout(() => {
1978
- const m = new CustomEvent(Qe, Jt);
1979
- s.addEventListener(Qe, l), s.dispatchEvent(m), m.defaultPrevented || V(d ?? document.body, { select: !0 }), s.removeEventListener(Qe, l), en.remove(h);
1980
- }, 0);
1981
- };
1982
- }
1983
- }, [s, c, l, h]);
1984
- const g = k(
1985
- (d) => {
1986
- if (!n && !r || h.paused) return;
1987
- const _ = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, m = document.activeElement;
1988
- if (_ && m) {
1989
- const y = d.currentTarget, [b, O] = Ui(y);
1990
- b && O ? !d.shiftKey && m === O ? (d.preventDefault(), n && V(b, { select: !0 })) : d.shiftKey && m === b && (d.preventDefault(), n && V(O, { select: !0 })) : m === y && d.preventDefault();
1991
- }
1992
- },
1993
- [n, r, h.paused]
1994
- );
1995
- return /* @__PURE__ */ v($.div, { tabIndex: -1, ...a, ref: p, onKeyDown: g });
1996
- });
1997
- Qn.displayName = ji;
1998
- function Wi(e, { select: t = !1 } = {}) {
1999
- const n = document.activeElement;
2000
- for (const r of e)
2001
- if (V(r, { select: t }), document.activeElement !== n) return;
2002
- }
2003
- function Ui(e) {
2004
- const t = er(e), n = Qt(t, e), r = Qt(t.reverse(), e);
2005
- return [n, r];
2006
- }
2007
- function er(e) {
2008
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
2009
- acceptNode: (r) => {
2010
- const o = r.tagName === "INPUT" && r.type === "hidden";
2011
- return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
2012
- }
2013
- });
2014
- for (; n.nextNode(); ) t.push(n.currentNode);
2015
- return t;
2016
- }
2017
- function Qt(e, t) {
2018
- for (const n of e)
2019
- if (!Bi(n, { upTo: t })) return n;
2020
- }
2021
- function Bi(e, { upTo: t }) {
2022
- if (getComputedStyle(e).visibility === "hidden") return !0;
2023
- for (; e; ) {
2024
- if (t !== void 0 && e === t) return !1;
2025
- if (getComputedStyle(e).display === "none") return !0;
2026
- e = e.parentElement;
2027
- }
2028
- return !1;
2029
- }
2030
- function Zi(e) {
2031
- return e instanceof HTMLInputElement && "select" in e;
2032
- }
2033
- function V(e, { select: t = !1 } = {}) {
2034
- if (e && e.focus) {
2035
- const n = document.activeElement;
2036
- e.focus({ preventScroll: !0 }), e !== n && Zi(e) && t && e.select();
2037
- }
2038
- }
2039
- var en = Hi();
2040
- function Hi() {
2041
- let e = [];
2042
- return {
2043
- add(t) {
2044
- const n = e[0];
2045
- t !== n && n?.pause(), e = tn(e, t), e.unshift(t);
2046
- },
2047
- remove(t) {
2048
- e = tn(e, t), e[0]?.resume();
2049
- }
2050
- };
2051
- }
2052
- function tn(e, t) {
2053
- const n = [...e], r = n.indexOf(t);
2054
- return r !== -1 && n.splice(r, 1), n;
2055
- }
2056
- function Vi(e) {
2057
- return e.filter((t) => t.tagName !== "A");
2058
- }
2059
- var et = 0;
2060
- function Ki() {
2061
- E(() => {
2062
- const e = document.querySelectorAll("[data-radix-focus-guard]");
2063
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? nn()), document.body.insertAdjacentElement("beforeend", e[1] ?? nn()), et++, () => {
2064
- et === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), et--;
2065
- };
2066
- }, []);
2067
- }
2068
- function nn() {
2069
- const e = document.createElement("span");
2070
- 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;
2071
- }
2072
- var F = function() {
2073
- return F = Object.assign || function(t) {
2074
- for (var n, r = 1, o = arguments.length; r < o; r++) {
2075
- n = arguments[r];
2076
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2077
- }
2078
- return t;
2079
- }, F.apply(this, arguments);
2080
- };
2081
- function tr(e, t) {
2082
- var n = {};
2083
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2084
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2085
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
2086
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2087
- return n;
2088
- }
2089
- function qi(e, t, n) {
2090
- if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2091
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2092
- return e.concat(i || Array.prototype.slice.call(t));
2093
- }
2094
- var $e = "right-scroll-bar-position", Le = "width-before-scroll-bar", Gi = "with-scroll-bars-hidden", Yi = "--removed-body-scroll-bar-size";
2095
- function tt(e, t) {
2096
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
2097
- }
2098
- function Xi(e, t) {
2099
- var n = A(function() {
2100
- return {
2101
- // value
2102
- value: e,
2103
- // last callback
2104
- callback: t,
2105
- // "memoized" public interface
2106
- facade: {
2107
- get current() {
2108
- return n.value;
2109
- },
2110
- set current(r) {
2111
- var o = n.value;
2112
- o !== r && (n.value = r, n.callback(r, o));
2113
- }
2114
- }
2115
- };
2116
- })[0];
2117
- return n.callback = t, n.facade;
2118
- }
2119
- var Ji = typeof window < "u" ? G : E, rn = /* @__PURE__ */ new WeakMap();
2120
- function Qi(e, t) {
2121
- var n = Xi(null, function(r) {
2122
- return e.forEach(function(o) {
2123
- return tt(o, r);
2124
- });
2125
- });
2126
- return Ji(function() {
2127
- var r = rn.get(n);
2128
- if (r) {
2129
- var o = new Set(r), i = new Set(e), a = n.current;
2130
- o.forEach(function(s) {
2131
- i.has(s) || tt(s, null);
2132
- }), i.forEach(function(s) {
2133
- o.has(s) || tt(s, a);
2134
- });
2135
- }
2136
- rn.set(n, e);
2137
- }, [e]), n;
2138
- }
2139
- function es(e) {
2140
- return e;
2141
- }
2142
- function ts(e, t) {
2143
- t === void 0 && (t = es);
2144
- var n = [], r = !1, o = {
2145
- read: function() {
2146
- if (r)
2147
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
2148
- return n.length ? n[n.length - 1] : e;
2149
- },
2150
- useMedium: function(i) {
2151
- var a = t(i, r);
2152
- return n.push(a), function() {
2153
- n = n.filter(function(s) {
2154
- return s !== a;
2155
- });
2156
- };
2157
- },
2158
- assignSyncMedium: function(i) {
2159
- for (r = !0; n.length; ) {
2160
- var a = n;
2161
- n = [], a.forEach(i);
2162
- }
2163
- n = {
2164
- push: function(s) {
2165
- return i(s);
2166
- },
2167
- filter: function() {
2168
- return n;
2169
- }
2170
- };
2171
- },
2172
- assignMedium: function(i) {
2173
- r = !0;
2174
- var a = [];
2175
- if (n.length) {
2176
- var s = n;
2177
- n = [], s.forEach(i), a = n;
2178
- }
2179
- var u = function() {
2180
- var l = a;
2181
- a = [], l.forEach(i);
2182
- }, c = function() {
2183
- return Promise.resolve().then(u);
2184
- };
2185
- c(), n = {
2186
- push: function(l) {
2187
- a.push(l), c();
2188
- },
2189
- filter: function(l) {
2190
- return a = a.filter(l), n;
2191
- }
2192
- };
2193
- }
2194
- };
2195
- return o;
2196
- }
2197
- function ns(e) {
2198
- e === void 0 && (e = {});
2199
- var t = ts(null);
2200
- return t.options = F({ async: !0, ssr: !1 }, e), t;
2201
- }
2202
- var nr = function(e) {
2203
- var t = e.sideCar, n = tr(e, ["sideCar"]);
2204
- if (!t)
2205
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2206
- var r = t.read();
2207
- if (!r)
2208
- throw new Error("Sidecar medium not found");
2209
- return D(r, F({}, n));
2210
- };
2211
- nr.isSideCarExport = !0;
2212
- function rs(e, t) {
2213
- return e.useMedium(t), nr;
2214
- }
2215
- var rr = ns(), nt = function() {
2216
- }, Ve = P(function(e, t) {
2217
- var n = w(null), r = A({
2218
- onScrollCapture: nt,
2219
- onWheelCapture: nt,
2220
- onTouchMoveCapture: nt
2221
- }), o = r[0], i = r[1], a = e.forwardProps, s = e.children, u = e.className, c = e.removeScrollBar, l = e.enabled, f = e.shards, p = e.sideCar, h = e.noRelative, g = e.noIsolation, d = e.inert, _ = e.allowPinchZoom, m = e.as, y = m === void 0 ? "div" : m, b = e.gapMode, O = tr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), T = p, M = Qi([n, t]), S = F(F({}, O), o);
2222
- return D(
2223
- x,
2224
- null,
2225
- l && D(T, { sideCar: rr, removeScrollBar: c, shards: f, noRelative: h, noIsolation: g, inert: d, setCallbacks: i, allowPinchZoom: !!_, lockRef: n, gapMode: b }),
2226
- a ? pe(U.only(s), F(F({}, S), { ref: M })) : D(y, F({}, S, { className: u, ref: M }), s)
2227
- );
2228
- });
2229
- Ve.defaultProps = {
2230
- enabled: !0,
2231
- removeScrollBar: !0,
2232
- inert: !1
2233
- };
2234
- Ve.classNames = {
2235
- fullWidth: Le,
2236
- zeroRight: $e
2237
- };
2238
- var os = function() {
2239
- if (typeof __webpack_nonce__ < "u")
2240
- return __webpack_nonce__;
2241
- };
2242
- function is() {
2243
- if (!document)
2244
- return null;
2245
- var e = document.createElement("style");
2246
- e.type = "text/css";
2247
- var t = os();
2248
- return t && e.setAttribute("nonce", t), e;
2249
- }
2250
- function ss(e, t) {
2251
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2252
- }
2253
- function as(e) {
2254
- var t = document.head || document.getElementsByTagName("head")[0];
2255
- t.appendChild(e);
2256
- }
2257
- var cs = function() {
2258
- var e = 0, t = null;
2259
- return {
2260
- add: function(n) {
2261
- e == 0 && (t = is()) && (ss(t, n), as(t)), e++;
2262
- },
2263
- remove: function() {
2264
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2265
- }
2266
- };
2267
- }, us = function() {
2268
- var e = cs();
2269
- return function(t, n) {
2270
- E(function() {
2271
- return e.add(t), function() {
2272
- e.remove();
2273
- };
2274
- }, [t && n]);
2275
- };
2276
- }, or = function() {
2277
- var e = us(), t = function(n) {
2278
- var r = n.styles, o = n.dynamic;
2279
- return e(r, o), null;
2280
- };
2281
- return t;
2282
- }, ls = {
2283
- left: 0,
2284
- top: 0,
2285
- right: 0,
2286
- gap: 0
2287
- }, rt = function(e) {
2288
- return parseInt(e || "", 10) || 0;
2289
- }, fs = function(e) {
2290
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2291
- return [rt(n), rt(r), rt(o)];
2292
- }, ds = function(e) {
2293
- if (e === void 0 && (e = "margin"), typeof window > "u")
2294
- return ls;
2295
- var t = fs(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2296
- return {
2297
- left: t[0],
2298
- top: t[1],
2299
- right: t[2],
2300
- gap: Math.max(0, r - n + t[2] - t[0])
2301
- };
2302
- }, ps = or(), fe = "data-scroll-locked", _s = function(e, t, n, r) {
2303
- var o = e.left, i = e.top, a = e.right, s = e.gap;
2304
- return n === void 0 && (n = "margin"), `
2305
- .`.concat(Gi, ` {
2306
- overflow: hidden `).concat(r, `;
2307
- padding-right: `).concat(s, "px ").concat(r, `;
2308
- }
2309
- body[`).concat(fe, `] {
2310
- overflow: hidden `).concat(r, `;
2311
- overscroll-behavior: contain;
2312
- `).concat([
2313
- t && "position: relative ".concat(r, ";"),
2314
- n === "margin" && `
2315
- padding-left: `.concat(o, `px;
2316
- padding-top: `).concat(i, `px;
2317
- padding-right: `).concat(a, `px;
2318
- margin-left:0;
2319
- margin-top:0;
2320
- margin-right: `).concat(s, "px ").concat(r, `;
2321
- `),
2322
- n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
2323
- ].filter(Boolean).join(""), `
2324
- }
2325
-
2326
- .`).concat($e, ` {
2327
- right: `).concat(s, "px ").concat(r, `;
2328
- }
2329
-
2330
- .`).concat(Le, ` {
2331
- margin-right: `).concat(s, "px ").concat(r, `;
2332
- }
2333
-
2334
- .`).concat($e, " .").concat($e, ` {
2335
- right: 0 `).concat(r, `;
2336
- }
2337
-
2338
- .`).concat(Le, " .").concat(Le, ` {
2339
- margin-right: 0 `).concat(r, `;
2340
- }
2341
-
2342
- body[`).concat(fe, `] {
2343
- `).concat(Yi, ": ").concat(s, `px;
2344
- }
2345
- `);
2346
- }, on = function() {
2347
- var e = parseInt(document.body.getAttribute(fe) || "0", 10);
2348
- return isFinite(e) ? e : 0;
2349
- }, vs = function() {
2350
- E(function() {
2351
- return document.body.setAttribute(fe, (on() + 1).toString()), function() {
2352
- var e = on() - 1;
2353
- e <= 0 ? document.body.removeAttribute(fe) : document.body.setAttribute(fe, e.toString());
2354
- };
2355
- }, []);
2356
- }, hs = function(e) {
2357
- var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2358
- vs();
2359
- var i = z(function() {
2360
- return ds(o);
2361
- }, [o]);
2362
- return D(ps, { styles: _s(i, !t, o, n ? "" : "!important") });
2363
- }, ct = !1;
2364
- if (typeof window < "u")
2365
- try {
2366
- var Re = Object.defineProperty({}, "passive", {
2367
- get: function() {
2368
- return ct = !0, !0;
2369
- }
2370
- });
2371
- window.addEventListener("test", Re, Re), window.removeEventListener("test", Re, Re);
2372
- } catch {
2373
- ct = !1;
2374
- }
2375
- var ae = ct ? { passive: !1 } : !1, ms = function(e) {
2376
- return e.tagName === "TEXTAREA";
2377
- }, ir = function(e, t) {
2378
- if (!(e instanceof Element))
2379
- return !1;
2380
- var n = window.getComputedStyle(e);
2381
- return (
2382
- // not-not-scrollable
2383
- n[t] !== "hidden" && // contains scroll inside self
2384
- !(n.overflowY === n.overflowX && !ms(e) && n[t] === "visible")
2385
- );
2386
- }, gs = function(e) {
2387
- return ir(e, "overflowY");
2388
- }, ys = function(e) {
2389
- return ir(e, "overflowX");
2390
- }, sn = function(e, t) {
2391
- var n = t.ownerDocument, r = t;
2392
- do {
2393
- typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2394
- var o = sr(e, r);
2395
- if (o) {
2396
- var i = ar(e, r), a = i[1], s = i[2];
2397
- if (a > s)
2398
- return !0;
2399
- }
2400
- r = r.parentNode;
2401
- } while (r && r !== n.body);
2402
- return !1;
2403
- }, bs = function(e) {
2404
- var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2405
- return [
2406
- t,
2407
- n,
2408
- r
2409
- ];
2410
- }, ws = function(e) {
2411
- var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2412
- return [
2413
- t,
2414
- n,
2415
- r
2416
- ];
2417
- }, sr = function(e, t) {
2418
- return e === "v" ? gs(t) : ys(t);
2419
- }, ar = function(e, t) {
2420
- return e === "v" ? bs(t) : ws(t);
2421
- }, Es = function(e, t) {
2422
- return e === "h" && t === "rtl" ? -1 : 1;
2423
- }, Ss = function(e, t, n, r, o) {
2424
- var i = Es(e, window.getComputedStyle(t).direction), a = i * r, s = n.target, u = t.contains(s), c = !1, l = a > 0, f = 0, p = 0;
2425
- do {
2426
- if (!s)
2427
- break;
2428
- var h = ar(e, s), g = h[0], d = h[1], _ = h[2], m = d - _ - i * g;
2429
- (g || m) && sr(e, s) && (f += m, p += g);
2430
- var y = s.parentNode;
2431
- s = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
2432
- } while (
2433
- // portaled content
2434
- !u && s !== document.body || // self content
2435
- u && (t.contains(s) || t === s)
2436
- );
2437
- return (l && Math.abs(f) < 1 || !l && Math.abs(p) < 1) && (c = !0), c;
2438
- }, ke = function(e) {
2439
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2440
- }, an = function(e) {
2441
- return [e.deltaX, e.deltaY];
2442
- }, cn = function(e) {
2443
- return e && "current" in e ? e.current : e;
2444
- }, Cs = function(e, t) {
2445
- return e[0] === t[0] && e[1] === t[1];
2446
- }, Ps = function(e) {
2447
- return `
2448
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
2449
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2450
- `);
2451
- }, Os = 0, ce = [];
2452
- function Ns(e) {
2453
- var t = w([]), n = w([0, 0]), r = w(), o = A(Os++)[0], i = A(or)[0], a = w(e);
2454
- E(function() {
2455
- a.current = e;
2456
- }, [e]), E(function() {
2457
- if (e.inert) {
2458
- document.body.classList.add("block-interactivity-".concat(o));
2459
- var d = qi([e.lockRef.current], (e.shards || []).map(cn), !0).filter(Boolean);
2460
- return d.forEach(function(_) {
2461
- return _.classList.add("allow-interactivity-".concat(o));
2462
- }), function() {
2463
- document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(_) {
2464
- return _.classList.remove("allow-interactivity-".concat(o));
2465
- });
2466
- };
2467
- }
2468
- }, [e.inert, e.lockRef.current, e.shards]);
2469
- var s = k(function(d, _) {
2470
- if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
2471
- return !a.current.allowPinchZoom;
2472
- var m = ke(d), y = n.current, b = "deltaX" in d ? d.deltaX : y[0] - m[0], O = "deltaY" in d ? d.deltaY : y[1] - m[1], T, M = d.target, S = Math.abs(b) > Math.abs(O) ? "h" : "v";
2473
- if ("touches" in d && S === "h" && M.type === "range")
2474
- return !1;
2475
- var Q = window.getSelection(), se = Q && Q.anchorNode, me = se ? se === M || se.contains(M) : !1;
2476
- if (me)
2477
- return !1;
2478
- var Ne = sn(S, M);
2479
- if (!Ne)
2480
- return !0;
2481
- if (Ne ? T = S : (T = S === "v" ? "h" : "v", Ne = sn(S, M)), !Ne)
2482
- return !1;
2483
- if (!r.current && "changedTouches" in d && (b || O) && (r.current = T), !T)
2484
- return !0;
2485
- var Ot = r.current || T;
2486
- return Ss(Ot, _, d, Ot === "h" ? b : O);
2487
- }, []), u = k(function(d) {
2488
- var _ = d;
2489
- if (!(!ce.length || ce[ce.length - 1] !== i)) {
2490
- var m = "deltaY" in _ ? an(_) : ke(_), y = t.current.filter(function(T) {
2491
- return T.name === _.type && (T.target === _.target || _.target === T.shadowParent) && Cs(T.delta, m);
2492
- })[0];
2493
- if (y && y.should) {
2494
- _.cancelable && _.preventDefault();
2495
- return;
2496
- }
2497
- if (!y) {
2498
- var b = (a.current.shards || []).map(cn).filter(Boolean).filter(function(T) {
2499
- return T.contains(_.target);
2500
- }), O = b.length > 0 ? s(_, b[0]) : !a.current.noIsolation;
2501
- O && _.cancelable && _.preventDefault();
2502
- }
2503
- }
2504
- }, []), c = k(function(d, _, m, y) {
2505
- var b = { name: d, delta: _, target: m, should: y, shadowParent: Ds(m) };
2506
- t.current.push(b), setTimeout(function() {
2507
- t.current = t.current.filter(function(O) {
2508
- return O !== b;
2509
- });
2510
- }, 1);
2511
- }, []), l = k(function(d) {
2512
- n.current = ke(d), r.current = void 0;
2513
- }, []), f = k(function(d) {
2514
- c(d.type, an(d), d.target, s(d, e.lockRef.current));
2515
- }, []), p = k(function(d) {
2516
- c(d.type, ke(d), d.target, s(d, e.lockRef.current));
2517
- }, []);
2518
- E(function() {
2519
- return ce.push(i), e.setCallbacks({
2520
- onScrollCapture: f,
2521
- onWheelCapture: f,
2522
- onTouchMoveCapture: p
2523
- }), document.addEventListener("wheel", u, ae), document.addEventListener("touchmove", u, ae), document.addEventListener("touchstart", l, ae), function() {
2524
- ce = ce.filter(function(d) {
2525
- return d !== i;
2526
- }), document.removeEventListener("wheel", u, ae), document.removeEventListener("touchmove", u, ae), document.removeEventListener("touchstart", l, ae);
2527
- };
2528
- }, []);
2529
- var h = e.removeScrollBar, g = e.inert;
2530
- return D(
2531
- x,
2532
- null,
2533
- g ? D(i, { styles: Ps(o) }) : null,
2534
- h ? D(hs, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2535
- );
2536
- }
2537
- function Ds(e) {
2538
- for (var t = null; e !== null; )
2539
- e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2540
- return t;
2541
- }
2542
- const Ts = rs(rr, Ns);
2543
- var cr = P(function(e, t) {
2544
- return D(Ve, F({}, e, { ref: t, sideCar: Ts }));
2545
- });
2546
- cr.classNames = Ve.classNames;
2547
- var As = function(e) {
2548
- if (typeof document > "u")
2549
- return null;
2550
- var t = Array.isArray(e) ? e[0] : e;
2551
- return t.ownerDocument.body;
2552
- }, ue = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ze = {}, ot = 0, ur = function(e) {
2553
- return e && (e.host || ur(e.parentNode));
2554
- }, Rs = function(e, t) {
2555
- return t.map(function(n) {
2556
- if (e.contains(n))
2557
- return n;
2558
- var r = ur(n);
2559
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2560
- }).filter(function(n) {
2561
- return !!n;
2562
- });
2563
- }, ks = function(e, t, n, r) {
2564
- var o = Rs(t, Array.isArray(e) ? e : [e]);
2565
- ze[n] || (ze[n] = /* @__PURE__ */ new WeakMap());
2566
- var i = ze[n], a = [], s = /* @__PURE__ */ new Set(), u = new Set(o), c = function(f) {
2567
- !f || s.has(f) || (s.add(f), c(f.parentNode));
2568
- };
2569
- o.forEach(c);
2570
- var l = function(f) {
2571
- !f || u.has(f) || Array.prototype.forEach.call(f.children, function(p) {
2572
- if (s.has(p))
2573
- l(p);
2574
- else
2575
- try {
2576
- var h = p.getAttribute(r), g = h !== null && h !== "false", d = (ue.get(p) || 0) + 1, _ = (i.get(p) || 0) + 1;
2577
- ue.set(p, d), i.set(p, _), a.push(p), d === 1 && g && Ie.set(p, !0), _ === 1 && p.setAttribute(n, "true"), g || p.setAttribute(r, "true");
2578
- } catch (m) {
2579
- console.error("aria-hidden: cannot operate on ", p, m);
2580
- }
2581
- });
2582
- };
2583
- return l(t), s.clear(), ot++, function() {
2584
- a.forEach(function(f) {
2585
- var p = ue.get(f) - 1, h = i.get(f) - 1;
2586
- ue.set(f, p), i.set(f, h), p || (Ie.has(f) || f.removeAttribute(r), Ie.delete(f)), h || f.removeAttribute(n);
2587
- }), ot--, ot || (ue = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ze = {});
2588
- };
2589
- }, Is = function(e, t, n) {
2590
- n === void 0 && (n = "data-aria-hidden");
2591
- var r = Array.from(Array.isArray(e) ? e : [e]), o = As(e);
2592
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), ks(r, o, n, "aria-hidden")) : function() {
2593
- return null;
2594
- };
2595
- }, Ke = "Dialog", [lr] = Wn(Ke), [zs, W] = lr(Ke), fr = (e) => {
2596
- const {
2597
- __scopeDialog: t,
2598
- children: n,
2599
- open: r,
2600
- defaultOpen: o,
2601
- onOpenChange: i,
2602
- modal: a = !0
2603
- } = e, s = w(null), u = w(null), [c, l] = Zn({
2604
- prop: r,
2605
- defaultProp: o ?? !1,
2606
- onChange: i,
2607
- caller: Ke
2608
- });
2609
- return /* @__PURE__ */ v(
2610
- zs,
2611
- {
2612
- scope: t,
2613
- triggerRef: s,
2614
- contentRef: u,
2615
- contentId: xe(),
2616
- titleId: xe(),
2617
- descriptionId: xe(),
2618
- open: c,
2619
- onOpenChange: l,
2620
- onOpenToggle: k(() => l((f) => !f), [l]),
2621
- modal: a,
2622
- children: n
2623
- }
2202
+ const Ss = ({
2203
+ value: e,
2204
+ label: t,
2205
+ sublabel: n,
2206
+ required: o = !1,
2207
+ description: r,
2208
+ openItem: s
2209
+ }) => {
2210
+ const { toggleSelection: c, selection: i } = Un(), a = z(
2211
+ () => i?.[e] ?? !1,
2212
+ [i, e]
2624
2213
  );
2625
- };
2626
- fr.displayName = Ke;
2627
- var dr = "DialogTrigger", Ms = P(
2628
- (e, t) => {
2629
- const { __scopeDialog: n, ...r } = e, o = W(dr, n), i = J(t, o.triggerRef);
2630
- return /* @__PURE__ */ v(
2631
- $.button,
2632
- {
2633
- type: "button",
2634
- "aria-haspopup": "dialog",
2635
- "aria-expanded": o.open,
2636
- "aria-controls": o.contentId,
2637
- "data-state": Pt(o.open),
2638
- ...r,
2639
- ref: i,
2640
- onClick: B(e.onClick, o.onOpenToggle)
2641
- }
2642
- );
2643
- }
2644
- );
2645
- Ms.displayName = dr;
2646
- var xs = "DialogPortal", [Js, pr] = lr(xs, {
2647
- forceMount: void 0
2648
- }), Ue = "DialogOverlay", $s = P(
2649
- (e, t) => {
2650
- const n = pr(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = W(Ue, e.__scopeDialog);
2651
- return i.modal ? /* @__PURE__ */ v(Ze, { present: r || i.open, children: /* @__PURE__ */ v(Fs, { ...o, ref: t }) }) : null;
2652
- }
2653
- );
2654
- $s.displayName = Ue;
2655
- var Ls = /* @__PURE__ */ Bn("DialogOverlay.RemoveScroll"), Fs = P(
2656
- (e, t) => {
2657
- const { __scopeDialog: n, ...r } = e, o = W(Ue, n);
2658
- return (
2659
- // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2660
- // ie. when `Overlay` and `Content` are siblings
2661
- /* @__PURE__ */ v(cr, { as: Ls, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v(
2662
- $.div,
2663
- {
2664
- "data-state": Pt(o.open),
2665
- ...r,
2666
- ref: t,
2667
- style: { pointerEvents: "auto", ...r.style }
2668
- }
2669
- ) })
2670
- );
2671
- }
2672
- ), re = "DialogContent", _r = P(
2673
- (e, t) => {
2674
- const n = pr(re, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = W(re, e.__scopeDialog);
2675
- return /* @__PURE__ */ v(Ze, { present: r || i.open, children: i.modal ? /* @__PURE__ */ v(js, { ...o, ref: t }) : /* @__PURE__ */ v(Ws, { ...o, ref: t }) });
2676
- }
2677
- );
2678
- _r.displayName = re;
2679
- var js = P(
2680
- (e, t) => {
2681
- const n = W(re, e.__scopeDialog), r = w(null), o = J(t, n.contentRef, r);
2682
- return E(() => {
2683
- const i = r.current;
2684
- if (i) return Is(i);
2685
- }, []), /* @__PURE__ */ v(
2686
- vr,
2687
- {
2688
- ...e,
2689
- ref: o,
2690
- trapFocus: n.open,
2691
- disableOutsidePointerEvents: !0,
2692
- onCloseAutoFocus: B(e.onCloseAutoFocus, (i) => {
2693
- i.preventDefault(), n.triggerRef.current?.focus();
2694
- }),
2695
- onPointerDownOutside: B(e.onPointerDownOutside, (i) => {
2696
- const a = i.detail.originalEvent, s = a.button === 0 && a.ctrlKey === !0;
2697
- (a.button === 2 || s) && i.preventDefault();
2698
- }),
2699
- onFocusOutside: B(
2700
- e.onFocusOutside,
2701
- (i) => i.preventDefault()
2702
- )
2703
- }
2704
- );
2705
- }
2706
- ), Ws = P(
2707
- (e, t) => {
2708
- const n = W(re, e.__scopeDialog), r = w(!1), o = w(!1);
2709
- return /* @__PURE__ */ v(
2710
- vr,
2711
- {
2712
- ...e,
2713
- ref: t,
2714
- trapFocus: !1,
2715
- disableOutsidePointerEvents: !1,
2716
- onCloseAutoFocus: (i) => {
2717
- e.onCloseAutoFocus?.(i), i.defaultPrevented || (r.current || n.triggerRef.current?.focus(), i.preventDefault()), r.current = !1, o.current = !1;
2718
- },
2719
- onInteractOutside: (i) => {
2720
- e.onInteractOutside?.(i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2721
- const a = i.target;
2722
- n.triggerRef.current?.contains(a) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
2723
- }
2724
- }
2725
- );
2726
- }
2727
- ), vr = P(
2728
- (e, t) => {
2729
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...a } = e, s = W(re, n), u = w(null), c = J(t, u);
2730
- return Ki(), /* @__PURE__ */ v(x, { children: [
2731
- /* @__PURE__ */ v(
2732
- Qn,
2733
- {
2734
- asChild: !0,
2735
- loop: !0,
2736
- trapped: r,
2737
- onMountAutoFocus: o,
2738
- onUnmountAutoFocus: i,
2739
- children: /* @__PURE__ */ v(
2740
- Xn,
2741
- {
2742
- role: "dialog",
2743
- id: s.contentId,
2744
- "aria-describedby": s.descriptionId,
2745
- "aria-labelledby": s.titleId,
2746
- "data-state": Pt(s.open),
2747
- ...a,
2748
- ref: c,
2749
- onDismiss: () => s.onOpenChange(!1)
2750
- }
2751
- )
2752
- }
2753
- ),
2754
- /* @__PURE__ */ v(x, { children: [
2755
- /* @__PURE__ */ v(Us, { titleId: s.titleId }),
2756
- /* @__PURE__ */ v(Zs, { contentRef: u, descriptionId: s.descriptionId })
2214
+ $(() => {
2215
+ c(e, a);
2216
+ }, [e, a]);
2217
+ const u = z(
2218
+ () => o ? !0 : a,
2219
+ [o, a]
2220
+ ), l = z(
2221
+ () => (_) => o ? () => {
2222
+ } : c(e, _),
2223
+ [o, c, e]
2224
+ ), d = z(() => o, [o]);
2225
+ return /* @__PURE__ */ f(Qr, { value: e, className: V.root, children: [
2226
+ /* @__PURE__ */ f("div", { className: V.header, children: [
2227
+ /* @__PURE__ */ f(Ot, { asChild: !0, children: /* @__PURE__ */ f("div", { className: V.label, children: [
2228
+ /* @__PURE__ */ f(F, { weight: "bold", children: t }),
2229
+ n && /* @__PURE__ */ f(F, { size: "caption", color: "muted", children: n })
2230
+ ] }) }),
2231
+ /* @__PURE__ */ f("div", { className: V.actions, children: [
2232
+ /* @__PURE__ */ f(
2233
+ bs,
2234
+ {
2235
+ checked: u,
2236
+ onCheckedChange: l,
2237
+ disabled: d
2238
+ }
2239
+ ),
2240
+ /* @__PURE__ */ f(Ot, { asChild: !0, children: /* @__PURE__ */ f(
2241
+ cs,
2242
+ {
2243
+ size: 16,
2244
+ className: we({
2245
+ [V.chevron]: !0,
2246
+ [V.open]: s === e
2247
+ })
2248
+ }
2249
+ ) })
2757
2250
  ] })
2758
- ] });
2759
- }
2760
- ), Ct = "DialogTitle", hr = P(
2761
- (e, t) => {
2762
- const { __scopeDialog: n, ...r } = e, o = W(Ct, n);
2763
- return /* @__PURE__ */ v($.h2, { id: o.titleId, ...r, ref: t });
2764
- }
2765
- );
2766
- hr.displayName = Ct;
2767
- var mr = "DialogDescription", gr = P(
2768
- (e, t) => {
2769
- const { __scopeDialog: n, ...r } = e, o = W(mr, n);
2770
- return /* @__PURE__ */ v($.p, { id: o.descriptionId, ...r, ref: t });
2771
- }
2772
- );
2773
- gr.displayName = mr;
2774
- var yr = "DialogClose", br = P(
2775
- (e, t) => {
2776
- const { __scopeDialog: n, ...r } = e, o = W(yr, n);
2777
- return /* @__PURE__ */ v(
2778
- $.button,
2251
+ ] }),
2252
+ r && /* @__PURE__ */ f(es, { className: V.description, children: /* @__PURE__ */ f(
2253
+ F,
2779
2254
  {
2780
- type: "button",
2781
- ...r,
2782
- ref: t,
2783
- onClick: B(e.onClick, () => o.onOpenChange(!1))
2255
+ size: "caption",
2256
+ dangerouslySetInnerHTML: { __html: r }
2784
2257
  }
2785
- );
2786
- }
2787
- );
2788
- br.displayName = yr;
2789
- function Pt(e) {
2790
- return e ? "open" : "closed";
2791
- }
2792
- var wr = "DialogTitleWarning", [Qs, Er] = Jo(wr, {
2793
- contentName: re,
2794
- titleName: Ct,
2795
- docsSlug: "dialog"
2796
- }), Us = ({ titleId: e }) => {
2797
- const t = Er(wr), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2798
-
2799
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2800
-
2801
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
2802
- return E(() => {
2803
- e && (document.getElementById(e) || console.error(n));
2804
- }, [n, e]), null;
2805
- }, Bs = "DialogDescriptionWarning", Zs = ({ contentRef: e, descriptionId: t }) => {
2806
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Er(Bs).contentName}}.`;
2807
- return E(() => {
2808
- const o = e.current?.getAttribute("aria-describedby");
2809
- t && o && (document.getElementById(t) || console.warn(r));
2810
- }, [r, e, t]), null;
2811
- }, Hs = fr, Vs = _r, Ks = hr, qs = gr, un = br;
2812
- const Gs = ({
2258
+ ) })
2259
+ ] });
2260
+ }, Ps = ({
2813
2261
  noTarget: e = !0,
2814
2262
  heading: t = "We use cookies.",
2815
2263
  subheading: n = "Please define your selection below.",
2816
- selectLabel: r = "Select",
2817
- hideLabel: o = "Hide",
2818
- saveLabel: i = "Save selection",
2819
- declineLabel: a = "Decline all",
2820
- defaultSettingsOpen: s = !0,
2821
- privacyPolicy: u
2822
- // items,
2264
+ selectLabel: o = "Select",
2265
+ hideLabel: r = "Hide",
2266
+ saveLabel: s = "Save selection",
2267
+ declineLabel: c = "Decline all",
2268
+ defaultSettingsOpen: i = !0,
2269
+ privacyPolicy: a,
2270
+ items: u
2823
2271
  }) => {
2824
- const { onSave: c, onDeclineAll: l, selectionTaken: f } = Ri(), [p, h] = A(s);
2825
- return /* @__PURE__ */ v(Hs, { open: !f, children: /* @__PURE__ */ v(
2826
- Vs,
2272
+ const { onSave: l, onDeclineAll: d, selectionTaken: _ } = Un(), [m, h] = O(void 0), [v, p] = O(i);
2273
+ return /* @__PURE__ */ f(
2274
+ "div",
2827
2275
  {
2828
- className: bt(L.root, e ? L.noTarget : ""),
2829
- children: /* @__PURE__ */ v(
2830
- yi,
2276
+ className: we({
2277
+ [R.root]: !0,
2278
+ [R.noTarget]: e,
2279
+ [R.open]: !_
2280
+ }),
2281
+ children: /* @__PURE__ */ f(
2282
+ gn,
2831
2283
  {
2832
- open: p,
2833
- onOpenChange: h,
2834
- className: L.collapsible,
2284
+ open: v,
2285
+ onOpenChange: p,
2286
+ className: R.collapsible,
2835
2287
  children: [
2836
- /* @__PURE__ */ v("div", { className: L.header, children: [
2837
- /* @__PURE__ */ v("div", { className: L.heading, children: [
2838
- /* @__PURE__ */ v(Ks, { asChild: !0, children: /* @__PURE__ */ v(Xe, { weight: "bold", children: t }) }),
2839
- /* @__PURE__ */ v(qs, { asChild: !0, children: /* @__PURE__ */ v(Xe, { size: "caption", color: "muted", children: n }) })
2288
+ /* @__PURE__ */ f("div", { className: R.header, children: [
2289
+ /* @__PURE__ */ f("div", { className: R.heading, children: [
2290
+ /* @__PURE__ */ f(F, { weight: "bold", children: t }),
2291
+ /* @__PURE__ */ f(F, { size: "caption", color: "muted", children: n })
2840
2292
  ] }),
2841
- /* @__PURE__ */ v(bi, { asChild: !0, children: /* @__PURE__ */ v(Ye, { variant: "ghost", children: [
2842
- p ? o : r,
2293
+ /* @__PURE__ */ f(yn, { asChild: !0, children: /* @__PURE__ */ f(je, { variant: "ghost", children: [
2294
+ v ? r : o,
2843
2295
  " ",
2844
- /* @__PURE__ */ v(
2845
- Di,
2296
+ /* @__PURE__ */ f(
2297
+ us,
2846
2298
  {
2847
2299
  size: 12,
2848
- className: Zr({
2849
- [L.chevron]: !0,
2850
- [L.open]: p
2300
+ className: we({
2301
+ [R.chevron]: !0,
2302
+ [R.open]: v
2851
2303
  })
2852
2304
  }
2853
2305
  )
2854
2306
  ] }) })
2855
2307
  ] }),
2856
- /* @__PURE__ */ v("div", { className: L.footer, children: [
2857
- /* @__PURE__ */ v("div", { className: L.legal, children: u && /* @__PURE__ */ v(Xe, { size: "caption", children: /* @__PURE__ */ v("a", { href: u.url, target: "_blank", children: u.label }) }) }),
2858
- /* @__PURE__ */ v("div", { className: L.actions, children: [
2859
- /* @__PURE__ */ v(un, { asChild: !0, children: /* @__PURE__ */ v(Ye, { variant: "neutral", onClick: () => l(), children: a }) }),
2860
- /* @__PURE__ */ v(un, { asChild: !0, children: /* @__PURE__ */ v(Ye, { variant: "brand", onClick: () => c(), children: i }) })
2308
+ /* @__PURE__ */ f(
2309
+ bn,
2310
+ {
2311
+ className: we({
2312
+ [R.settings]: !0
2313
+ }),
2314
+ children: /* @__PURE__ */ f(
2315
+ Xr,
2316
+ {
2317
+ type: "single",
2318
+ collapsible: !0,
2319
+ value: m,
2320
+ onValueChange: h,
2321
+ children: u.map((g) => /* @__PURE__ */ f(Ss, { ...g, openItem: m }, g.value))
2322
+ }
2323
+ )
2324
+ }
2325
+ ),
2326
+ /* @__PURE__ */ f("div", { className: R.footer, children: [
2327
+ /* @__PURE__ */ f("div", { className: R.legal, children: a && /* @__PURE__ */ f(F, { size: "caption", children: /* @__PURE__ */ f("a", { href: a.url, target: "_blank", children: a.label }) }) }),
2328
+ /* @__PURE__ */ f("div", { className: R.actions, children: [
2329
+ /* @__PURE__ */ f(je, { variant: "neutral", onClick: () => d(), children: c }),
2330
+ /* @__PURE__ */ f(je, { variant: "brand", onClick: () => l(), children: s })
2861
2331
  ] })
2862
2332
  ] })
2863
2333
  ]
2864
2334
  }
2865
2335
  )
2866
2336
  }
2867
- ) });
2868
- }, Ys = ({
2337
+ );
2338
+ }, Ns = ({
2869
2339
  localStorageKey: e = "cb-selection",
2870
2340
  items: t,
2871
2341
  ...n
2872
2342
  }) => {
2873
- const r = z(
2874
- () => t.filter((o) => !o.required).map((o) => ({
2875
- value: o.value,
2876
- script: o.script,
2877
- defaultSelected: o.defaultSelected,
2878
- required: o.required
2343
+ const o = z(
2344
+ () => t.filter((r) => !r.required).map((r) => ({
2345
+ value: r.value,
2346
+ script: r.script,
2347
+ defaultSelected: r.defaultSelected,
2348
+ required: r.required
2879
2349
  })),
2880
2350
  [t]
2881
2351
  );
2882
- return /* @__PURE__ */ v(Ai, { items: r, localStorageKey: e, children: /* @__PURE__ */ v(Gs, { items: t, ...n }) });
2352
+ return /* @__PURE__ */ f(ws, { items: o, localStorageKey: e, children: /* @__PURE__ */ f(Ps, { items: t, ...n }) });
2883
2353
  };
2884
- function ea(e, t) {
2354
+ function zs(e, t) {
2885
2355
  const n = t === void 0;
2886
- let r;
2356
+ let o;
2887
2357
  if (typeof t == "string") {
2888
- const o = document.querySelector(t);
2889
- if (!o)
2358
+ const r = document.querySelector(t);
2359
+ if (!r)
2890
2360
  throw new Error(`Element with selector "${t}" not found`);
2891
- r = o;
2361
+ o = r;
2892
2362
  } else
2893
- r = t;
2894
- Ee(/* @__PURE__ */ v(Ys, { noTarget: n, ...e }), r ?? document.body);
2363
+ o = t;
2364
+ _e(/* @__PURE__ */ f(Ns, { noTarget: n, ...e }), o ?? document.body);
2895
2365
  }
2896
2366
  export {
2897
- ea as mountBanner
2367
+ zs as mountBanner
2898
2368
  };