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