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