@uninspired/cookie-banner 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/react/index.cjs +1994 -4061
  2. package/dist/react/index.js +1343 -3393
  3. package/dist/react/style.css +165 -18
  4. package/dist/script/index.cjs +1 -45
  5. package/dist/script/index.js +1561 -2091
  6. package/dist/script/style.css +1 -1
  7. package/package.json +2 -4
  8. package/dist/components/Banner/Banner.js +0 -38
  9. package/dist/components/Banner/index.js +0 -1
  10. package/dist/components/BannerItem/BannerItem.js +0 -24
  11. package/dist/components/BannerItem/index.js +0 -1
  12. package/dist/components/Button/Button.js +0 -6
  13. package/dist/components/Button/index.js +0 -1
  14. package/dist/components/Switch/Switch.js +0 -7
  15. package/dist/components/Switch/index.js +0 -1
  16. package/dist/components/Text/Text.js +0 -9
  17. package/dist/components/Text/index.js +0 -1
  18. package/dist/contexts/SelectionContext.js +0 -101
  19. package/dist/react.js +0 -1
  20. package/dist/script.js +0 -1
  21. package/dist/types/components/Banner/Banner.d.ts +0 -21
  22. package/dist/types/components/Banner/index.d.ts +0 -1
  23. package/dist/types/components/BannerItem/BannerItem.d.ts +0 -23
  24. package/dist/types/components/BannerItem/index.d.ts +0 -1
  25. package/dist/types/components/Button/Button.d.ts +0 -5
  26. package/dist/types/components/Button/index.d.ts +0 -1
  27. package/dist/types/components/Switch/Switch.d.ts +0 -5
  28. package/dist/types/components/Switch/index.d.ts +0 -1
  29. package/dist/types/components/Text/Text.d.ts +0 -8
  30. package/dist/types/components/Text/index.d.ts +0 -1
  31. package/dist/types/contexts/SelectionContext.d.ts +0 -23
  32. package/dist/types/react.d.ts +0 -1
  33. package/dist/types/script.d.ts +0 -1
  34. package/dist/types/utils/classes.d.ts +0 -2
  35. package/dist/types/utils/mountBanner.d.ts +0 -2
  36. package/dist/types/utils/scriptDefinition.d.ts +0 -35
  37. package/dist/types/utils/selection.d.ts +0 -3
  38. package/dist/utils/classes.js +0 -9
  39. package/dist/utils/mountBanner.js +0 -18
  40. package/dist/utils/scriptDefinition.js +0 -21
  41. package/dist/utils/selection.js +0 -2
@@ -102,7 +102,7 @@
102
102
  }
103
103
  }
104
104
  }
105
- @keyframes _contentShow_1wsw7_1 {
105
+ @keyframes _contentShow_2wcp0_1 {
106
106
  from {
107
107
  opacity: 0;
108
108
  transform: translateX(-100px);
@@ -113,7 +113,18 @@
113
113
  }
114
114
  }
115
115
 
116
- @keyframes _slideDown_1wsw7_1 {
116
+ @keyframes _contentHide_2wcp0_1 {
117
+ from {
118
+ opacity: 1;
119
+ transform: translateX(0px);
120
+ }
121
+ to {
122
+ opacity: 0;
123
+ transform: translateX(-100px);
124
+ }
125
+ }
126
+
127
+ @keyframes _slideDown_2wcp0_1 {
117
128
  0% {
118
129
  max-height: var(--cb-size-settings-max-height);
119
130
  overflow: auto;
@@ -128,7 +139,7 @@
128
139
  }
129
140
  }
130
141
 
131
- @keyframes _slideUp_1wsw7_1 {
142
+ @keyframes _slideUp_2wcp0_1 {
132
143
  0% {
133
144
  max-height: 0;
134
145
  overflow: hidden;
@@ -143,8 +154,9 @@
143
154
  }
144
155
  }
145
156
 
146
- ._root_1wsw7_42 {
147
- display: flex;
157
+ ._root_2wcp0_53 {
158
+ display: none;
159
+ visibility: hidden;
148
160
  flex-direction: column;
149
161
  gap: var(--cb-space-md);
150
162
  padding: var(--cb-space-md);
@@ -152,9 +164,16 @@
152
164
  box-shadow: var(--cb-shadow-lg);
153
165
  border-radius: var(--cb-radius-md);
154
166
  overflow: hidden;
155
- animation: _contentShow_1wsw7_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
167
+ will-change: opacity, transform;
168
+ animation: _contentHide_2wcp0_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
169
+
170
+ &._open_2wcp0_66 {
171
+ visibility: visible;
172
+ display: flex;
173
+ animation: _contentShow_2wcp0_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
174
+ }
156
175
 
157
- &._noTarget_1wsw7_53 {
176
+ &._noTarget_2wcp0_72 {
158
177
  position: fixed;
159
178
  bottom: var(--cb-space-md);
160
179
  left: var(--cb-space-md);
@@ -163,58 +182,58 @@
163
182
  max-width: var(--cb-size-banner-max-width);
164
183
  }
165
184
 
166
- ._collapsible_1wsw7_62 {
185
+ ._collapsible_2wcp0_81 {
167
186
  display: contents;
168
187
 
169
- ._header_1wsw7_65 {
188
+ ._header_2wcp0_84 {
170
189
  display: flex;
171
190
  flex-direction: row;
172
191
  align-items: flex-start;
173
192
  justify-content: space-between;
174
193
  gap: var(--cb-space-md);
175
194
 
176
- ._heading_1wsw7_72 {
195
+ ._heading_2wcp0_91 {
177
196
  display: flex;
178
197
  flex-direction: column;
179
198
  align-items: flex-start;
180
199
  }
181
200
 
182
- ._chevron_1wsw7_78 {
201
+ ._chevron_2wcp0_97 {
183
202
  transform: rotate(0deg);
184
203
  will-change: transform;
185
204
  transition: transform 150ms ease-out;
186
205
 
187
- &._open_1wsw7_83 {
206
+ &._open_2wcp0_66 {
188
207
  transform: rotate(180deg);
189
208
  }
190
209
  }
191
210
  }
192
211
 
193
- ._settings_1wsw7_89 {
212
+ ._settings_2wcp0_108 {
194
213
  display: flex;
195
214
  flex-direction: column;
196
215
  background-color: var(--cb-color-background-muted);
197
216
  border-radius: var(--cb-radius-md);
198
217
  overflow: hidden;
199
218
  will-change: max-height, overflow;
200
- animation: _slideDown_1wsw7_1 250ms ease-out;
219
+ animation: _slideDown_2wcp0_1 250ms ease-out;
201
220
 
202
221
  &[data-state="open"] {
203
- animation: _slideUp_1wsw7_1 250ms ease-out;
222
+ animation: _slideUp_2wcp0_1 250ms ease-out;
204
223
  }
205
224
  }
206
225
 
207
- ._footer_1wsw7_103 {
226
+ ._footer_2wcp0_122 {
208
227
  display: flex;
209
228
  flex-direction: row;
210
229
  align-items: center;
211
230
  justify-content: space-between;
212
231
  gap: var(--cb-space-md);
213
232
 
214
- ._legal_1wsw7_110 {
233
+ ._legal_2wcp0_129 {
215
234
  }
216
235
 
217
- ._actions_1wsw7_113 {
236
+ ._actions_2wcp0_132 {
218
237
  display: flex;
219
238
  flex-direction: row;
220
239
  align-items: center;
@@ -223,6 +242,134 @@
223
242
  }
224
243
  }
225
244
  }
245
+ @keyframes _slideDown_mqtha_1 {
246
+ from {
247
+ height: 0;
248
+ }
249
+ to {
250
+ height: var(--radix-accordion-content-height);
251
+ }
252
+ }
253
+
254
+ @keyframes _slideUp_mqtha_1 {
255
+ from {
256
+ height: var(--radix-accordion-content-height);
257
+ }
258
+ to {
259
+ height: 0;
260
+ }
261
+ }
262
+
263
+ ._root_mqtha_19 {
264
+ display: flex;
265
+ flex-direction: column;
266
+ overflow: hidden;
267
+
268
+ ._header_mqtha_24 {
269
+ all: unset;
270
+ display: flex;
271
+ flex-direction: row;
272
+ align-items: center;
273
+ justify-content: space-between;
274
+ padding: var(--cb-space-sm) var(--cb-space-md);
275
+ cursor: pointer;
276
+
277
+ ._label_mqtha_33 {
278
+ display: flex;
279
+ flex-direction: column;
280
+ width: 100%;
281
+ }
282
+
283
+ ._actions_mqtha_39 {
284
+ display: flex;
285
+ flex-direction: row;
286
+ align-items: center;
287
+ gap: var(--cb-space-sm);
288
+
289
+ ._chevron_mqtha_45 {
290
+ color: var(--cb-color-text-default);
291
+ transition: transform 150ms ease-out;
292
+ will-change: transform;
293
+ transform: rotate(0deg);
294
+
295
+ &._open_mqtha_51 {
296
+ transform: rotate(180deg);
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+ ._description_mqtha_58 {
303
+ padding: var(--cb-space-xs) var(--cb-space-md);
304
+ max-width: 96ch;
305
+ overflow: hidden;
306
+
307
+ &[data-state="open"] {
308
+ animation: _slideDown_mqtha_1 150ms ease-out;
309
+ }
310
+ &[data-state="closed"] {
311
+ animation: _slideUp_mqtha_1 150ms ease-out;
312
+ }
313
+ }
314
+ }
315
+ ._root_dibqz_1 {
316
+ display: flex;
317
+ flex-direction: row;
318
+ align-items: center;
319
+ justify-content: space-between;
320
+ gap: var(--cb-space-sm);
321
+
322
+ ._switch_dibqz_8 {
323
+ width: 32px;
324
+ height: 20px;
325
+ padding: 2px;
326
+ border-width: 1px;
327
+ border-style: solid;
328
+ border-color: var(--cb-color-border-neutral);
329
+ border-radius: 9999px;
330
+
331
+ will-change: background-color;
332
+ transition: background-color 150ms ease-out;
333
+ background-color: var(--cb-color-switch-background-neutral);
334
+ position: relative;
335
+
336
+ &[data-state="checked"] {
337
+ background-color: var(--cb-color-switch-background-brand);
338
+ }
339
+
340
+ &[data-disabled] {
341
+ cursor: not-allowed;
342
+ background-color: var(--cb-color-switch-background-disabled);
343
+ }
344
+
345
+ &:not([data-disabled]) {
346
+ cursor: pointer;
347
+ &:hover {
348
+ background-color: var(--cb-color-switch-background-light);
349
+ }
350
+ }
351
+
352
+ ._thumb_dibqz_38 {
353
+ width: 14px;
354
+ height: 14px;
355
+ position: absolute;
356
+ left: 0;
357
+ top: 0;
358
+
359
+ background-color: var(--cb-color-switch-thumb-background-neutral);
360
+ box-shadow: var(--cb-shadow-sm);
361
+ border-radius: 9999px;
362
+
363
+ transition: transform 150ms ease-out;
364
+ transform: translateX(2px) translateY(2px);
365
+ will-change: transform;
366
+
367
+ &[data-state="checked"] {
368
+ transform: translateX(14px) translateY(2px);
369
+ }
370
+ }
371
+ }
372
+ }
226
373
  :root {
227
374
  /* Semantic */
228
375
  --cb-color-background-default: var(--cb-color-neutral-0);
@@ -1,45 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("preact");var hr=0;function h(e,t,n,r,o,i){t||(t={});var a,s,u=t;if("ref"in u)for(s in u={},t)s=="ref"?a=t[s]:u[s]=t[s];var c={type:e,props:u,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--hr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)u[s]===void 0&&(u[s]=a[s]);return _.options.vnode&&_.options.vnode(c),c}var U,P,Ue,Et,ae=0,rn=[],A=_.options,Ct=A.__b,wt=A.__r,St=A.diffed,Pt=A.__c,Ot=A.unmount,Nt=A.__;function Q(e,t){A.__h&&A.__h(P,e,ae||t),ae=0;var n=P.__H||(P.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function D(e){return ae=1,be(on,e)}function be(e,t,n){var r=Q(U++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):on(void 0,t),function(s){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,s);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=P,!P.__f)){var o=function(s,u,c){if(!r.__c.__H)return!0;var l=r.__c.__H.__.filter(function(p){return p.__c});if(l.every(function(p){return!p.__N}))return!i||i.call(this,s,u,c);var f=r.__c.props!==s;return l.some(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),i&&i.call(this,s,u,c)||f};P.__f=!0;var i=P.shouldComponentUpdate,a=P.componentWillUpdate;P.componentWillUpdate=function(s,u,c){if(this.__e){var l=i;i=void 0,o(s,u,c),i=l}a&&a.call(this,s,u,c)},P.shouldComponentUpdate=o}return r.__N||r.__}function w(e,t){var n=Q(U++,3);!A.__s&&st(n.__H,t)&&(n.__=e,n.u=t,P.__H.__h.push(n))}function V(e,t){var n=Q(U++,4);!A.__s&&st(n.__H,t)&&(n.__=e,n.u=t,P.__h.push(n))}function C(e){return ae=5,I(function(){return{current:e}},[])}function rt(e,t,n){ae=6,V(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function I(e,t){var n=Q(U++,7);return st(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function k(e,t){return ae=8,I(function(){return e},t)}function K(e){var t=P.context[e.__c],n=Q(U++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(P)),t.props.value):e.__}function ot(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function mr(e){var t=Q(U++,10),n=D();return t.__=e,P.componentDidCatch||(P.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function it(){var e=Q(U++,11);if(!e.__){for(var t=P.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function gr(){for(var e;e=rn.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Te),t.__h.some(Qe),t.__h=[]}catch(n){t.__h=[],A.__e(n,e.__v)}}}A.__b=function(e){P=null,Ct&&Ct(e)},A.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Nt&&Nt(e,t)},A.__r=function(e){wt&&wt(e),U=0;var t=(P=e.__c).__H;t&&(Ue===P?(t.__h=[],P.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Te),t.__h.some(Qe),t.__h=[],U=0)),Ue=P},A.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rn.push(t)!==1&&Et===A.requestAnimationFrame||((Et=A.requestAnimationFrame)||yr)(gr)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ue=P=null},A.__c=function(e,t){t.some(function(n){try{n.__h.some(Te),n.__h=n.__h.filter(function(r){return!r.__||Qe(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],A.__e(r,n.__v)}}),Pt&&Pt(e,t)},A.unmount=function(e){Ot&&Ot(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Te(r)}catch(o){t=o}}),n.__H=void 0,t&&A.__e(t,n.__v))};var At=typeof requestAnimationFrame=="function";function yr(e){var t,n=function(){clearTimeout(r),At&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);At&&(t=requestAnimationFrame(n))}function Te(e){var t=P,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),P=t}function Qe(e){var t=P;e.__c=e.__(),P=t}function st(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function on(e,t){return typeof t=="function"?t(e):t}function sn(e,t){for(var n in t)e[n]=t[n];return e}function et(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function at(e,t){var n=t(),r=D({t:{__:n,u:t}}),o=r[0].t,i=r[1];return V(function(){o.__=n,o.u=t,Be(o)&&i({t:o})},[e,n,t]),w(function(){return Be(o)&&i({t:o}),e(function(){Be(o)&&i({t:o})})},[e]),n}function Be(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function ct(e){e()}function ut(e){return e}function lt(){return[!1,ct]}var ft=V;function Ie(e,t){this.props=e,this.context=t}function an(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:et(this.props,o)}function r(o){return this.shouldComponentUpdate=n,_.createElement(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Ie.prototype=new _.Component).isPureReactComponent=!0,Ie.prototype.shouldComponentUpdate=function(e,t){return et(this.props,e)||et(this.state,t)};var Tt=_.options.__b;_.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Tt&&Tt(e)};var br=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function O(e){function t(n){var r=sn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=br,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Dt=function(e,t){return e==null?null:_.toChildArray(_.toChildArray(e).map(t))},j={map:Dt,forEach:Dt,count:function(e){return e?_.toChildArray(e).length:0},only:function(e){var t=_.toChildArray(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:_.toChildArray},Er=_.options.__e;_.options.__e=function(e,t,n,r){if(e.then){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)}Er(e,t,n,r)};var Rt=_.options.unmount;function cn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=sn({},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){return cn(r,t,n)})),e}function un(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return un(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ve(){this.__u=0,this.o=null,this.__b=null}function ln(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function fn(e){var t,n,r,o=null;function i(a){if(t||(t=e()).then(function(s){s&&(o=s.default||s),r=!0},function(s){n=s,r=!0}),n)throw n;if(!r)throw t;return o?_.createElement(o,a):null}return i.displayName="Lazy",i.__f=!0,i}function ie(){this.i=null,this.l=null}_.options.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Rt&&Rt(e)},(ve.prototype=new _.Component).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ln(r.__v),i=!1,a=function(){i||r.__z||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var s=n.__P;n.__P=null;var u=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=un(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.__P=s,l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},ve.prototype.componentWillUnmount=function(){this.o=[]},ve.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=cn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&_.createElement(_.Fragment,null,e.fallback);return o&&(o.__u&=-33),[_.createElement(_.Fragment,null,t.__a?null:e.children),o]};var kt=function(e,t,n){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;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Cr(e){return this.getChildContext=function(){return e.context},e.children}function wr(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){_.render(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}_.render(_.createElement(Cr,{context:t.context},e.__v),t.v)}function dn(e,t){var n=_.createElement(wr,{__v:e,h:t});return n.containerInfo=t,n}(ie.prototype=new _.Component).__a=function(e){var t=this,n=ln(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),kt(t,e,r)):o()};n?n(i):i()}},ie.prototype.render=function(e){this.i=null,this.l=new Map;var t=_.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ie.prototype.componentDidUpdate=ie.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){kt(e,n,t)})};var pn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Sr=/^(?: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]/,Pr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Or=/[A-Z0-9]/g,Nr=typeof document<"u",Ar=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function _n(e,t,n){return t.__k==null&&(t.textContent=""),_.render(e,t),typeof n=="function"&&n(),e?e.__c:null}function vn(e,t,n){return _.hydrate(e,t),typeof n=="function"&&n(),e?e.__c:null}_.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var It=_.options.event;function Tr(){}function Dr(){return this.cancelBubble}function Rr(){return this.defaultPrevented}_.options.event=function(e){return It&&(e=It(e)),e.persist=Tr,e.isPropagationStopped=Dr,e.isDefaultPrevented=Rr,e.nativeEvent=e};var dt,kr={enumerable:!1,configurable:!0,get:function(){return this.class}},xt=_.options.vnode;_.options.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Nr&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var u=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":u==="translate"&&s==="no"?s=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?a="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Ar(n.type)?u==="onfocus"?a="onfocusin":u==="onblur"?a="onfocusout":Pr.test(a)&&(a=u):u=a="oninput":i&&Sr.test(a)?a=a.replace(Or,"-$&").toLowerCase():s===null&&(s=void 0),u==="oninput"&&o[a=u]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=_.toChildArray(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=_.toChildArray(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",kr)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=pn,xt&&xt(e)};var zt=_.options.__r;_.options.__r=function(e){zt&&zt(e),dt=e.__c};var Mt=_.options.diffed;_.options.diffed=function(e){Mt&&Mt(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),dt=null};var hn={ReactCurrentDispatcher:{current:{readContext:function(e){return dt.__n[e.__c].props.value},useCallback:k,useContext:K,useDebugValue:ot,useDeferredValue:ut,useEffect:w,useId:it,useImperativeHandle:rt,useInsertionEffect:ft,useLayoutEffect:V,useMemo:I,useReducer:be,useRef:C,useState:D,useSyncExternalStore:at,useTransition:lt}}},Ir="18.3.1";function mn(e){return _.createElement.bind(null,e)}function B(e){return!!e&&e.$$typeof===pn}function gn(e){return B(e)&&e.type===_.Fragment}function yn(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function ce(e){return B(e)?_.cloneElement.apply(null,arguments):e}function bn(e){return!!e.__k&&(_.render(null,e),!0)}function En(e){return e&&(e.base||e.nodeType===1&&e)||null}var Cn=function(e,t){return e(t)},pt=function(e,t){return e(t)},wn=_.Fragment,Sn=B,xr={useState:D,useId:it,useReducer:be,useEffect:w,useLayoutEffect:V,useInsertionEffect:ft,useTransition:lt,useDeferredValue:ut,useSyncExternalStore:at,startTransition:ct,useRef:C,useImperativeHandle:rt,useMemo:I,useCallback:k,useContext:K,useDebugValue:ot,version:"18.3.1",Children:j,render:_n,hydrate:vn,unmountComponentAtNode:bn,createPortal:dn,createElement:_.createElement,createContext:_.createContext,createFactory:mn,cloneElement:ce,createRef:_.createRef,Fragment:_.Fragment,isValidElement:B,isElement:Sn,isFragment:gn,isMemo:yn,findDOMNode:En,Component:_.Component,PureComponent:Ie,memo:an,forwardRef:O,flushSync:pt,unstable_batchedUpdates:Cn,StrictMode:wn,Suspense:ve,SuspenseList:ie,lazy:fn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn};const Pn=Object.freeze(Object.defineProperty({__proto__:null,Children:j,Component:_.Component,Fragment:_.Fragment,PureComponent:Ie,StrictMode:wn,Suspense:ve,SuspenseList:ie,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn,cloneElement:ce,createContext:_.createContext,createElement:_.createElement,createFactory:mn,createPortal:dn,createRef:_.createRef,default:xr,findDOMNode:En,flushSync:pt,forwardRef:O,hydrate:vn,isElement:Sn,isFragment:gn,isMemo:yn,isValidElement:B,lazy:fn,memo:an,render:_n,startTransition:ct,unmountComponentAtNode:bn,unstable_batchedUpdates:Cn,useCallback:k,useContext:K,useDebugValue:ot,useDeferredValue:ut,useEffect:w,useErrorBoundary:mr,useId:it,useImperativeHandle:rt,useInsertionEffect:ft,useLayoutEffect:V,useMemo:I,useReducer:be,useRef:C,useState:D,useSyncExternalStore:at,useTransition:lt,version:Ir},Symbol.toStringTag,{value:"Module"}));function _t(...e){return e.filter(Boolean).join(" ")}function zr(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}const Mr="_root_hw69b_1",$r="_neutral_hw69b_17",Lr="_brand_hw69b_30",Fr="_ghost_hw69b_43",$t={root:Mr,neutral:$r,brand:Lr,ghost:Fr},Ze=({variant:e="neutral",...t})=>h("button",{className:_t($t.root,$t[e]),...t}),jr="_root_14l5h_1",Wr="_muted_14l5h_4",Ur="_body_14l5h_8",Br="_normal_14l5h_14",Zr="_bold_14l5h_18",Hr="_caption_14l5h_23",Ce={root:jr,muted:Wr,body:Ur,normal:Br,bold:Zr,caption:Hr},He=({as:e="span",size:t="body",weight:n="normal",color:r="default",...o})=>h(e??"span",{className:_t(Ce.root,Ce[t],Ce[n],Ce[r]),...o}),Vr="_root_1wsw7_42",Kr="_noTarget_1wsw7_53",qr="_collapsible_1wsw7_62",Gr="_header_1wsw7_65",Yr="_heading_1wsw7_72",Xr="_chevron_1wsw7_78",Jr="_open_1wsw7_83",Qr="_footer_1wsw7_103",eo="_legal_1wsw7_110",to="_actions_1wsw7_113",M={root:Vr,noTarget:Kr,collapsible:qr,header:Gr,heading:Yr,chevron:Xr,open:Jr,footer:Qr,legal:eo,actions:to};function R(e,t,n){function r(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);const c=a.prototype,l=Object.keys(c);for(let f=0;f<l.length;f++){const p=l[f];p in s||(s[p]=c[p].bind(s))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var u;const c=n?.Parent?new i:this;r(c,s),(u=c._zod).deferred??(u.deferred=[]);for(const l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class he extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const no={};function ue(e){return no}function ro(e,t){return typeof t=="bigint"?t.toString():t}function On(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Nn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Lt=Symbol("evaluating");function L(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Lt)return r===void 0&&(r=Lt,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}const An="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function xe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function oo(e){if(xe(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(xe(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ft(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function io(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function le(e){return{}}function so(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function pe(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function _e(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function we(e){return typeof e=="string"?e:e?.message}function fe(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=we(e.inst?._zod.def?.error?.(e))??we(t?.error?.(e))??we(n.customError?.(e))??we(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const Tn=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ro,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ao=R("$ZodError",Tn),$e=R("$ZodError",Tn,{Parent:Error}),co=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new he;if(a.issues.length){const s=new(o?.Err??e)(a.issues.map(u=>fe(u,i,ue())));throw An(s,o?.callee),s}return a.value},uo=co($e),lo=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(o?.Err??e)(a.issues.map(u=>fe(u,i,ue())));throw An(s,o?.callee),s}return a.value},fo=lo($e),po=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new he;return i.issues.length?{success:!1,error:new(e??ao)(i.issues.map(a=>fe(a,o,ue())))}:{success:!0,data:i.value}},Dn=po($e),_o=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>fe(a,o,ue())))}:{success:!0,data:i.value}},Rn=_o($e),vo=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ho=/^-?\d+(?:\.\d+)?$/,mo=/^(?:true|false)$/i,go={major:4,minor:3,patch:6},q=R("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=go;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,u)=>{let c=pe(a),l;for(const f of s){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(c)continue;const p=a.issues.length,m=f._zod.check(a);if(m instanceof Promise&&u?.async===!1)throw new he;if(l||m instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(c||(c=pe(a,p)))});else{if(a.issues.length===p)continue;c||(c=pe(a,p))}}return l?l.then(()=>a):a},i=(a,s,u)=>{if(pe(a))return a.aborted=!0,a;const c=o(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new he;return c.then(l=>e._zod.parse(l,u))}return e._zod.parse(c,u)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>i(l,a,s)):i(c,a,s)}const u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new he;return u.then(c=>o(c,r,s))}return o(u,r,s)}}L(e,"~standard",()=>({validate:o=>{try{const i=Dn(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Rn(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),yo=R("$ZodString",(e,t)=>{q.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??vo(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),bo=R("$ZodBoolean",(e,t)=>{q.init(e,t),e._zod.pattern=mo,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}});function ze(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(..._e(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Eo(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=so(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Co(e,t,n,r,o,i){const a=[],s=o.keySet,u=o.catchall._zod,c=u.def.type,l=u.optout==="optional";for(const f in t){if(s.has(f))continue;if(c==="never"){a.push(f);continue}const p=u.run({value:t[f],issues:[]},r);p instanceof Promise?e.push(p.then(m=>ze(m,n,f,t,l))):ze(p,n,f,t,l)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const wo=R("$ZodObject",(e,t)=>{if(q.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}const r=On(()=>Eo(t));L(e._zod,"propValues",()=>{const s=t.shape,u={};for(const c in s){const l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(const f of l.values)u[c].add(f)}}return u});const o=xe,i=t.catchall;let a;e._zod.parse=(s,u)=>{a??(a=r.value);const c=s.value;if(!o(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};const l=[],f=a.shape;for(const p of a.keys){const m=f[p],y=m._zod.optout==="optional",d=m._zod.run({value:c[p],issues:[]},u);d instanceof Promise?l.push(d.then(v=>ze(v,s,p,c,y))):ze(d,s,p,c,y)}return i?Co(l,c,s,u,r.value,e):l.length?Promise.all(l).then(()=>s):s}});function jt(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!pe(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>fe(a,r,ue())))}),t)}const So=R("$ZodUnion",(e,t)=>{q.init(e,t),L(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),L(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),L(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),L(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Nn(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let a=!1;const s=[];for(const u of t.options){const c=u._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)s.push(c),a=!0;else{if(c.issues.length===0)return c;s.push(c)}}return a?Promise.all(s).then(u=>jt(u,o,e,i)):jt(s,o,e,i)}}),Po=R("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,So.init(e,t);const n=e._zod.parse;L(e._zod,"propValues",()=>{const o={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[s,u]of Object.entries(a)){o[s]||(o[s]=new Set);for(const c of u)o[s].add(c)}}return o});const r=On(()=>{const o=t.options,i=new Map;for(const a of o){const s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const u of s){if(i.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);i.set(u,a)}}return i});e._zod.parse=(o,i)=>{const a=o.value;if(!xe(a))return o.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),o;const s=r.value.get(a?.[t.discriminator]);return s?s._zod.run(o,i):t.unionFallback?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),o)}}),Oo=R("$ZodRecord",(e,t)=>{q.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!oo(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const s=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);const l=t.valueType._zod.run({value:o[c],issues:[]},r);l instanceof Promise?i.push(l.then(f=>{f.issues.length&&n.issues.push(..._e(c,f.issues)),n.value[c]=f.value})):(l.issues.length&&n.issues.push(..._e(c,l.issues)),n.value[c]=l.value)}let u;for(const c in o)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u})}else{n.value={};for(const s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let u=t.keyType._zod.run({value:s,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&ho.test(s)&&u.issues.length){const f=t.keyType._zod.run({value:Number(s),issues:[]},r);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode==="loose"?n.value[s]=o[s]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>fe(f,r,ue())),input:s,path:[s],inst:e});continue}const l=t.valueType._zod.run({value:o[s],issues:[]},r);l instanceof Promise?i.push(l.then(f=>{f.issues.length&&n.issues.push(..._e(s,f.issues)),n.value[u.value]=f.value})):(l.issues.length&&n.issues.push(..._e(s,l.issues)),n.value[u.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),No=R("$ZodLiteral",(e,t)=>{if(q.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Ft(r):r?Ft(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}});function Wt(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ao=R("$ZodOptional",(e,t)=>{q.init(e,t),e._zod.optin="optional",e._zod.optout="optional",L(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),L(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Nn(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Wt(i,n.value)):Wt(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}});function To(e,t){return new e({type:"string",...le()})}function Do(e,t){return new e({type:"boolean",...le()})}const ee=R("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");q.init(e,t),e.def=t,e.type=t.type,e.parse=(n,r)=>uo(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Dn(e,n,r),e.parseAsync=async(n,r)=>fo(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Rn(e,n,r),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]},{parent:!0}),e.with=e.check,e.clone=(n,r)=>io(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.apply=n=>n(e)}),Ro=R("ZodMiniString",(e,t)=>{yo.init(e,t),ee.init(e,t)});function X(e){return To(Ro)}const ko=R("ZodMiniBoolean",(e,t)=>{bo.init(e,t),ee.init(e,t)});function me(e){return Do(ko)}const Io=R("ZodMiniObject",(e,t)=>{wo.init(e,t),ee.init(e,t),L(e,"shape",()=>t.shape)});function kn(e,t){const n={type:"object",shape:e??{},...le()};return new Io(n)}const xo=R("ZodMiniDiscriminatedUnion",(e,t)=>{Po.init(e,t),ee.init(e,t)});function zo(e,t,n){return new xo({type:"union",options:t,discriminator:e,...le()})}const Mo=R("ZodMiniRecord",(e,t)=>{Oo.init(e,t),ee.init(e,t)});function $o(e,t,n){return new Mo({type:"record",keyType:e,valueType:t,...le()})}const Lo=R("ZodMiniLiteral",(e,t)=>{No.init(e,t),ee.init(e,t)});function In(e,t){return new Lo({type:"literal",values:Array.isArray(e)?e:[e],...le()})}const Fo=R("ZodMiniOptional",(e,t)=>{Ao.init(e,t),ee.init(e,t)});function H(e){return new Fo({type:"optional",innerType:e})}const jo=kn({variant:In("remote"),type:H(X()),src:X(),async:H(me()),defer:H(me()),crossorigin:H(X()),integrity:H(X())}),Wo=kn({variant:In("inline"),type:H(X()),async:H(me()),defer:H(me()),content:X()}),Uo=zo("variant",[jo,Wo]);function Bo(e,t){const n=_.createContext(t),r=i=>{const{children:a,...s}=i,u=I(()=>s,Object.values(s));return h(n.Provider,{value:u,children:a})};r.displayName=e+"Provider";function o(i){const a=K(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function xn(e,t=[]){let n=[];function r(i,a){const s=_.createContext(a),u=n.length;n=[...n,a];const c=f=>{const{scope:p,children:m,...y}=f,d=p?.[e]?.[u]||s,v=I(()=>y,Object.values(y));return h(d.Provider,{value:v,children:m})};c.displayName=i+"Provider";function l(f,p){const m=p?.[e]?.[u]||s,y=K(m);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,l]}const o=()=>{const i=n.map(a=>_.createContext(a));return function(s){const u=s?.[e]||i;return I(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return o.scopeName=e,[r,Zo(o,...t)]}function Zo(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:u,scopeName:c})=>{const f=u(i)[`__scope${c}`];return{...s,...f}},{});return I(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Ut(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ut(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ut(e[o],null)}}}}function G(...e){return k(zn(...e),e)}function Mn(e){const t=Ho(e),n=O((r,o)=>{const{children:i,...a}=r,s=j.toArray(i),u=s.find(Ko);if(u){const c=u.props.children,l=s.map(f=>f===u?j.count(c)>1?j.only(null):B(c)?c.props.children:null:f);return h(t,{...a,ref:o,children:B(c)?ce(c,void 0,l):null})}return h(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Ho(e){const t=O((n,r)=>{const{children:o,...i}=n;if(B(o)){const a=Go(o),s=qo(i,o.props);return o.type!==_.Fragment&&(s.ref=r?zn(r,a):a),ce(o,s)}return j.count(o)>1?j.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vo=Symbol("radix.slottable");function Ko(e){return B(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vo}function qo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Go(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ge=globalThis?.document?V:()=>{},Yo=Pn[" useInsertionEffect ".trim().toString()]||ge;function $n({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Xo({defaultProp:t,onChange:n}),s=e!==void 0,u=s?e:o;{const l=C(e!==void 0);w(()=>{const f=l.current;f!==s&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,r])}const c=k(l=>{if(s){const f=Jo(l)?l(e):l;f!==e&&a.current?.(f)}else i(l)},[s,e,i,a]);return[u,c]}function Xo({defaultProp:e,onChange:t}){const[n,r]=D(e),o=C(n),i=C(t);return Yo(()=>{i.current=t},[t]),w(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Jo(e){return typeof e=="function"}var Qo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Qo.reduce((e,t)=>{const n=Mn(`Primitive.${t}`),r=O((o,i)=>{const{asChild:a,...s}=o,u=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h(u,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ei(e,t){e&&pt(()=>e.dispatchEvent(t))}function ti(e,t){return be((n,r)=>t[n][r]??n,e)}var Le=e=>{const{present:t,children:n}=e,r=ni(t),o=typeof n=="function"?n({present:r.isPresent}):j.only(n),i=G(r.ref,ri(o));return typeof n=="function"||r.isPresent?ce(o,{ref:i}):null};Le.displayName="Presence";function ni(e){const[t,n]=D(),r=C(null),o=C(e),i=C("none"),a=e?"mounted":"unmounted",[s,u]=ti(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w(()=>{const c=Se(r.current);i.current=s==="mounted"?c:"none"},[s]),ge(()=>{const c=r.current,l=o.current;if(l!==e){const p=i.current,m=Se(c);e?u("MOUNT"):m==="none"||c?.display==="none"?u("UNMOUNT"):u(l&&p!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ge(()=>{if(t){let c;const l=t.ownerDocument.defaultView??window,f=m=>{const d=Se(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&d&&(u("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},p=m=>{m.target===t&&(i.current=Se(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:k(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Se(e){return e?.animationName||"none"}function ri(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}var oi=Pn[" useId ".trim().toString()]||(()=>{}),ii=0;function De(e){const[t,n]=D(oi());return ge(()=>{n(r=>r??String(ii++))},[e]),e||(t?`radix-${t}`:"")}var Fe="Collapsible",[si]=xn(Fe),[ai,vt]=si(Fe),Ln=O((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[u,c]=$n({prop:r,defaultProp:o??!1,onChange:a,caller:Fe});return h(ai,{scope:n,disabled:i,contentId:De(),open:u,onOpenToggle:k(()=>c(l=>!l),[c]),children:h(z.div,{"data-state":mt(u),"data-disabled":i?"":void 0,...s,ref:t})})});Ln.displayName=Fe;var Fn="CollapsibleTrigger",jn=O((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=vt(Fn,n);return h(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":mt(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:W(e.onClick,o.onOpenToggle)})});jn.displayName=Fn;var ht="CollapsibleContent",ci=O((e,t)=>{const{forceMount:n,...r}=e,o=vt(ht,e.__scopeCollapsible);return h(Le,{present:n||o.open,children:({present:i})=>h(ui,{...r,ref:t,present:i})})});ci.displayName=ht;var ui=O((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=vt(ht,n),[s,u]=D(r),c=C(null),l=G(t,c),f=C(0),p=f.current,m=C(0),y=m.current,d=a.open||s,v=C(d),g=C(void 0);return w(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),ge(()=>{const b=c.current;if(b){g.current=g.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const E=b.getBoundingClientRect();f.current=E.height,m.current=E.width,v.current||(b.style.transitionDuration=g.current.transitionDuration,b.style.animationName=g.current.animationName),u(r)}},[a.open,r]),h(z.div,{"data-state":mt(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!d,...i,ref:l,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:d&&o})});function mt(e){return e?"open":"closed"}var li=Ln,fi=jn;const Wn=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const di=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const pi=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const Bt=e=>{const t=pi(e);return t.charAt(0).toUpperCase()+t.slice(1)};var _i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const vi=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const hi=O(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},u)=>_.createElement("svg",{ref:u,..._i,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wn("lucide",o),...!i&&!vi(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,l])=>_.createElement(c,l)),...Array.isArray(i)?i:[i]]));const mi=(e,t)=>{const n=O(({className:r,...o},i)=>_.createElement(hi,{ref:i,iconNode:t,className:Wn(`lucide-${di(Bt(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Bt(e),n};const gi=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yi=mi("chevron-up",gi),bi=$o(X(),me()),Un=_.createContext(null),Ei=({children:e,items:t,localStorageKey:n})=>{function r(y){const d=localStorage.getItem(y);if(!d)return null;const{success:v,data:g}=bi.safeParse(JSON.parse(d));return v?g:null}const o=I(()=>Object.fromEntries(t.map(y=>[y.value,y.defaultSelected??!1])),[t]),[i,a]=D(r(n)??o),[s,u]=D(r(n));function c(y,d){const v=i?{...i,[y]:d}:{[y]:d};a(v)}w(()=>{let y=[];s!==null&&(y=Object.entries(s).filter(([v,g])=>g).map(([v])=>v));const d=t.filter(v=>y.includes(v.value));for(const v of t){const g=document.head.querySelector(`#${v.value}`);g&&g.remove()}for(const v of d){const g=document.createElement("script");if(g.id=v.value,!v.script){v.required||console.warn("CookieBanner: Missing script for",v.value);continue}const{success:b,data:E}=Uo.safeParse(v.script);if(!b){console.error("CookieBanner: Invalid script definition for",v.value);continue}switch(g.type=E.type??"text/javascript",g.async=E.async??!1,g.defer=E.defer??!1,E.variant){case"inline":g.textContent=E.content;break;case"remote":g.src=E.src,g.crossOrigin=E.crossorigin??null,g.integrity=E.integrity??"";break}document.head.appendChild(g)}},[s,t]);function l(y){u(y),localStorage.setItem(n,JSON.stringify(y))}const f=k(()=>{const y=Object.fromEntries(t.map(d=>[d.value,!1]));a(y),l(y)},[t]),p=k(()=>{l(i)},[i]),m=I(()=>{if(!s)return!1;const y=Object.keys(s);return t.map(v=>v.value).every(v=>y.includes(v))},[s,t]);return h(Un.Provider,{value:{selection:i,toggleSelection:c,onDeclineAll:f,onSave:p,selectionTaken:m},children:e})};function Ci(){const e=K(Un);if(!e)throw new Error("useSelection must be used within a SelectionProvider");return e}function ye(e){const t=C(e);return w(()=>{t.current=e}),I(()=>(...n)=>t.current?.(...n),[])}function wi(e,t=globalThis?.document){const n=ye(e);w(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Si="DismissableLayer",tt="dismissableLayer.update",Pi="dismissableLayer.pointerDownOutside",Oi="dismissableLayer.focusOutside",Zt,Bn=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zn=O((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...u}=e,c=K(Bn),[l,f]=D(null),p=l?.ownerDocument??globalThis?.document,[,m]=D({}),y=G(t,S=>f(S)),d=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),g=d.indexOf(v),b=l?d.indexOf(l):-1,E=c.layersWithOutsidePointerEventsDisabled.size>0,N=b>=g,T=Ti(S=>{const Y=S.target,te=[...c.branches].some(de=>de.contains(Y));!N||te||(o?.(S),a?.(S),S.defaultPrevented||s?.())},p),x=Di(S=>{const Y=S.target;[...c.branches].some(de=>de.contains(Y))||(i?.(S),a?.(S),S.defaultPrevented||s?.())},p);return wi(S=>{b===c.layers.size-1&&(r?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},p),w(()=>{if(l)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Zt=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(l)),c.layers.add(l),Ht(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Zt)}},[l,p,n,c]),w(()=>()=>{l&&(c.layers.delete(l),c.layersWithOutsidePointerEventsDisabled.delete(l),Ht())},[l,c]),w(()=>{const S=()=>m({});return document.addEventListener(tt,S),()=>document.removeEventListener(tt,S)},[]),h(z.div,{...u,ref:y,style:{pointerEvents:E?N?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,x.onFocusCapture),onBlurCapture:W(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,T.onPointerDownCapture)})});Zn.displayName=Si;var Ni="DismissableLayerBranch",Ai=O((e,t)=>{const n=K(Bn),r=C(null),o=G(t,r);return w(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h(z.div,{...e,ref:o})});Ai.displayName=Ni;function Ti(e,t=globalThis?.document){const n=ye(e),r=C(!1),o=C(()=>{});return w(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Hn(Pi,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Di(e,t=globalThis?.document){const n=ye(e),r=C(!1);return w(()=>{const o=i=>{i.target&&!r.current&&Hn(Oi,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ht(){const e=new CustomEvent(tt);document.dispatchEvent(e)}function Hn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ei(o,i):o.dispatchEvent(i)}var Ve="focusScope.autoFocusOnMount",Ke="focusScope.autoFocusOnUnmount",Vt={bubbles:!1,cancelable:!0},Ri="FocusScope",Vn=O((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,u]=D(null),c=ye(o),l=ye(i),f=C(null),p=G(t,d=>u(d)),m=C({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w(()=>{if(r){let d=function(E){if(m.paused||!s)return;const N=E.target;s.contains(N)?f.current=N:Z(f.current,{select:!0})},v=function(E){if(m.paused||!s)return;const N=E.relatedTarget;N!==null&&(s.contains(N)||Z(f.current,{select:!0}))},g=function(E){if(document.activeElement===document.body)for(const T of E)T.removedNodes.length>0&&Z(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",v);const b=new MutationObserver(g);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",v),b.disconnect()}}},[r,s,m.paused]),w(()=>{if(s){qt.add(m);const d=document.activeElement;if(!s.contains(d)){const g=new CustomEvent(Ve,Vt);s.addEventListener(Ve,c),s.dispatchEvent(g),g.defaultPrevented||(ki($i(Kn(s)),{select:!0}),document.activeElement===d&&Z(s))}return()=>{s.removeEventListener(Ve,c),setTimeout(()=>{const g=new CustomEvent(Ke,Vt);s.addEventListener(Ke,l),s.dispatchEvent(g),g.defaultPrevented||Z(d??document.body,{select:!0}),s.removeEventListener(Ke,l),qt.remove(m)},0)}}},[s,c,l,m]);const y=k(d=>{if(!n&&!r||m.paused)return;const v=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,g=document.activeElement;if(v&&g){const b=d.currentTarget,[E,N]=Ii(b);E&&N?!d.shiftKey&&g===N?(d.preventDefault(),n&&Z(E,{select:!0})):d.shiftKey&&g===E&&(d.preventDefault(),n&&Z(N,{select:!0})):g===b&&d.preventDefault()}},[n,r,m.paused]);return h(z.div,{tabIndex:-1,...a,ref:p,onKeyDown:y})});Vn.displayName=Ri;function ki(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Z(r,{select:t}),document.activeElement!==n)return}function Ii(e){const t=Kn(e),n=Kt(t,e),r=Kt(t.reverse(),e);return[n,r]}function Kn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kt(e,t){for(const n of e)if(!xi(n,{upTo:t}))return n}function xi(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zi(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&zi(e)&&t&&e.select()}}var qt=Mi();function Mi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Gt(e,t),e.unshift(t)},remove(t){e=Gt(e,t),e[0]?.resume()}}}function Gt(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $i(e){return e.filter(t=>t.tagName!=="A")}var qe=0;function Li(){w(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yt()),document.body.insertAdjacentElement("beforeend",e[1]??Yt()),qe++,()=>{qe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qe--}},[])}function Yt(){const e=document.createElement("span");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}var $=function(){return $=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},$.apply(this,arguments)};function qn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Fi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Re="right-scroll-bar-position",ke="width-before-scroll-bar",ji="with-scroll-bars-hidden",Wi="--removed-body-scroll-bar-size";function Ge(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ui(e,t){var n=D(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Bi=typeof window<"u"?V:w,Xt=new WeakMap;function Zi(e,t){var n=Ui(null,function(r){return e.forEach(function(o){return Ge(o,r)})});return Bi(function(){var r=Xt.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Ge(s,null)}),i.forEach(function(s){o.has(s)||Ge(s,a)})}Xt.set(n,e)},[e]),n}function Hi(e){return e}function Vi(e,t){t===void 0&&(t=Hi);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var u=function(){var l=a;a=[],l.forEach(i)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(l){a.push(l),c()},filter:function(l){return a=a.filter(l),n}}}};return o}function Ki(e){e===void 0&&(e={});var t=Vi(null);return t.options=$({async:!0,ssr:!1},e),t}var Gn=function(e){var t=e.sideCar,n=qn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,$({},n))};Gn.isSideCarExport=!0;function qi(e,t){return e.useMedium(t),Gn}var Yn=Ki(),Ye=function(){},je=O(function(e,t){var n=C(null),r=D({onScrollCapture:Ye,onWheelCapture:Ye,onTouchMoveCapture:Ye}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,u=e.className,c=e.removeScrollBar,l=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,y=e.noIsolation,d=e.inert,v=e.allowPinchZoom,g=e.as,b=g===void 0?"div":g,E=e.gapMode,N=qn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=p,x=Zi([n,t]),S=$($({},N),o);return _.createElement(_.Fragment,null,l&&_.createElement(T,{sideCar:Yn,removeScrollBar:c,shards:f,noRelative:m,noIsolation:y,inert:d,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:E}),a?ce(j.only(s),$($({},S),{ref:x})):_.createElement(b,$({},S,{className:u,ref:x}),s))});je.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};je.classNames={fullWidth:ke,zeroRight:Re};var Gi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gi();return t&&e.setAttribute("nonce",t),e}function Xi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ji(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Qi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yi())&&(Xi(t,n),Ji(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},es=function(){var e=Qi();return function(t,n){w(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Xn=function(){var e=es(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ts={left:0,top:0,right:0,gap:0},Xe=function(e){return parseInt(e||"",10)||0},ns=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Xe(n),Xe(r),Xe(o)]},rs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ts;var t=ns(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},os=Xn(),se="data-scroll-locked",is=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(ji,` {
3
- overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(s,"px ").concat(r,`;
5
- }
6
- body[`).concat(se,`] {
7
- overflow: hidden `).concat(r,`;
8
- overscroll-behavior: contain;
9
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
- padding-left: `.concat(o,`px;
11
- padding-top: `).concat(i,`px;
12
- padding-right: `).concat(a,`px;
13
- margin-left:0;
14
- margin-top:0;
15
- margin-right: `).concat(s,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
17
- }
18
-
19
- .`).concat(Re,` {
20
- right: `).concat(s,"px ").concat(r,`;
21
- }
22
-
23
- .`).concat(ke,` {
24
- margin-right: `).concat(s,"px ").concat(r,`;
25
- }
26
-
27
- .`).concat(Re," .").concat(Re,` {
28
- right: 0 `).concat(r,`;
29
- }
30
-
31
- .`).concat(ke," .").concat(ke,` {
32
- margin-right: 0 `).concat(r,`;
33
- }
34
-
35
- body[`).concat(se,`] {
36
- `).concat(Wi,": ").concat(s,`px;
37
- }
38
- `)},Jt=function(){var e=parseInt(document.body.getAttribute(se)||"0",10);return isFinite(e)?e:0},ss=function(){w(function(){return document.body.setAttribute(se,(Jt()+1).toString()),function(){var e=Jt()-1;e<=0?document.body.removeAttribute(se):document.body.setAttribute(se,e.toString())}},[])},as=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ss();var i=I(function(){return rs(o)},[o]);return _.createElement(os,{styles:is(i,!t,o,n?"":"!important")})},nt=!1;if(typeof window<"u")try{var Pe=Object.defineProperty({},"passive",{get:function(){return nt=!0,!0}});window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch{nt=!1}var ne=nt?{passive:!1}:!1,cs=function(e){return e.tagName==="TEXTAREA"},Jn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!cs(e)&&n[t]==="visible")},us=function(e){return Jn(e,"overflowY")},ls=function(e){return Jn(e,"overflowX")},Qt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Qn(e,r);if(o){var i=er(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fs=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ds=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Qn=function(e,t){return e==="v"?us(t):ls(t)},er=function(e,t){return e==="v"?fs(t):ds(t)},ps=function(e,t){return e==="h"&&t==="rtl"?-1:1},_s=function(e,t,n,r,o){var i=ps(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,u=t.contains(s),c=!1,l=a>0,f=0,p=0;do{if(!s)break;var m=er(e,s),y=m[0],d=m[1],v=m[2],g=d-v-i*y;(y||g)&&Qn(e,s)&&(f+=g,p+=y);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(l&&Math.abs(f)<1||!l&&Math.abs(p)<1)&&(c=!0),c},Oe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},en=function(e){return[e.deltaX,e.deltaY]},tn=function(e){return e&&"current"in e?e.current:e},vs=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hs=function(e){return`
39
- .block-interactivity-`.concat(e,` {pointer-events: none;}
40
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},ms=0,re=[];function gs(e){var t=C([]),n=C([0,0]),r=C(),o=D(ms++)[0],i=D(Xn)[0],a=C(e);w(function(){a.current=e},[e]),w(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var d=Fi([e.lockRef.current],(e.shards||[]).map(tn),!0).filter(Boolean);return d.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),d.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k(function(d,v){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!a.current.allowPinchZoom;var g=Oe(d),b=n.current,E="deltaX"in d?d.deltaX:b[0]-g[0],N="deltaY"in d?d.deltaY:b[1]-g[1],T,x=d.target,S=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in d&&S==="h"&&x.type==="range")return!1;var Y=window.getSelection(),te=Y&&Y.anchorNode,de=te?te===x||te.contains(x):!1;if(de)return!1;var Ee=Qt(S,x);if(!Ee)return!0;if(Ee?T=S:(T=S==="v"?"h":"v",Ee=Qt(S,x)),!Ee)return!1;if(!r.current&&"changedTouches"in d&&(E||N)&&(r.current=T),!T)return!0;var bt=r.current||T;return _s(bt,v,d,bt==="h"?E:N)},[]),u=k(function(d){var v=d;if(!(!re.length||re[re.length-1]!==i)){var g="deltaY"in v?en(v):Oe(v),b=t.current.filter(function(T){return T.name===v.type&&(T.target===v.target||v.target===T.shadowParent)&&vs(T.delta,g)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var E=(a.current.shards||[]).map(tn).filter(Boolean).filter(function(T){return T.contains(v.target)}),N=E.length>0?s(v,E[0]):!a.current.noIsolation;N&&v.cancelable&&v.preventDefault()}}},[]),c=k(function(d,v,g,b){var E={name:d,delta:v,target:g,should:b,shadowParent:ys(g)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),l=k(function(d){n.current=Oe(d),r.current=void 0},[]),f=k(function(d){c(d.type,en(d),d.target,s(d,e.lockRef.current))},[]),p=k(function(d){c(d.type,Oe(d),d.target,s(d,e.lockRef.current))},[]);w(function(){return re.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,ne),document.addEventListener("touchmove",u,ne),document.addEventListener("touchstart",l,ne),function(){re=re.filter(function(d){return d!==i}),document.removeEventListener("wheel",u,ne),document.removeEventListener("touchmove",u,ne),document.removeEventListener("touchstart",l,ne)}},[]);var m=e.removeScrollBar,y=e.inert;return _.createElement(_.Fragment,null,y?_.createElement(i,{styles:hs(o)}):null,m?_.createElement(as,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ys(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bs=qi(Yn,gs);var tr=O(function(e,t){return _.createElement(je,$({},e,{ref:t,sideCar:bs}))});tr.classNames=je.classNames;var Es=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},oe=new WeakMap,Ne=new WeakMap,Ae={},Je=0,nr=function(e){return e&&(e.host||nr(e.parentNode))},Cs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=nr(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ws=function(e,t,n,r){var o=Cs(t,Array.isArray(e)?e:[e]);Ae[n]||(Ae[n]=new WeakMap);var i=Ae[n],a=[],s=new Set,u=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var l=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(p){if(s.has(p))l(p);else try{var m=p.getAttribute(r),y=m!==null&&m!=="false",d=(oe.get(p)||0)+1,v=(i.get(p)||0)+1;oe.set(p,d),i.set(p,v),a.push(p),d===1&&y&&Ne.set(p,!0),v===1&&p.setAttribute(n,"true"),y||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return l(t),s.clear(),Je++,function(){a.forEach(function(f){var p=oe.get(f)-1,m=i.get(f)-1;oe.set(f,p),i.set(f,m),p||(Ne.has(f)||f.removeAttribute(r),Ne.delete(f)),m||f.removeAttribute(n)}),Je--,Je||(oe=new WeakMap,oe=new WeakMap,Ne=new WeakMap,Ae={})}},Ss=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Es(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),ws(r,o,n,"aria-hidden")):function(){return null}},We="Dialog",[rr]=xn(We),[Ps,F]=rr(We),or=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=C(null),u=C(null),[c,l]=$n({prop:r,defaultProp:o??!1,onChange:i,caller:We});return h(Ps,{scope:t,triggerRef:s,contentRef:u,contentId:De(),titleId:De(),descriptionId:De(),open:c,onOpenChange:l,onOpenToggle:k(()=>l(f=>!f),[l]),modal:a,children:n})};or.displayName=We;var ir="DialogTrigger",Os=O((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(ir,n),i=G(t,o.triggerRef);return h(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yt(o.open),...r,ref:i,onClick:W(e.onClick,o.onOpenToggle)})});Os.displayName=ir;var Ns="DialogPortal",[Bs,sr]=rr(Ns,{forceMount:void 0}),Me="DialogOverlay",As=O((e,t)=>{const n=sr(Me,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=F(Me,e.__scopeDialog);return i.modal?h(Le,{present:r||i.open,children:h(Ds,{...o,ref:t})}):null});As.displayName=Me;var Ts=Mn("DialogOverlay.RemoveScroll"),Ds=O((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(Me,n);return h(tr,{as:Ts,allowPinchZoom:!0,shards:[o.contentRef],children:h(z.div,{"data-state":yt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),J="DialogContent",ar=O((e,t)=>{const n=sr(J,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=F(J,e.__scopeDialog);return h(Le,{present:r||i.open,children:i.modal?h(Rs,{...o,ref:t}):h(ks,{...o,ref:t})})});ar.displayName=J;var Rs=O((e,t)=>{const n=F(J,e.__scopeDialog),r=C(null),o=G(t,n.contentRef,r);return w(()=>{const i=r.current;if(i)return Ss(i)},[]),h(cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:W(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:W(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault())})}),ks=O((e,t)=>{const n=F(J,e.__scopeDialog),r=C(!1),o=C(!1);return h(cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),cr=O((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=F(J,n),u=C(null),c=G(t,u);return Li(),h(_.Fragment,{children:[h(Vn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h(Zn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":yt(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),h(_.Fragment,{children:[h(Is,{titleId:s.titleId}),h(zs,{contentRef:u,descriptionId:s.descriptionId})]})]})}),gt="DialogTitle",ur=O((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(gt,n);return h(z.h2,{id:o.titleId,...r,ref:t})});ur.displayName=gt;var lr="DialogDescription",fr=O((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(lr,n);return h(z.p,{id:o.descriptionId,...r,ref:t})});fr.displayName=lr;var dr="DialogClose",pr=O((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(dr,n);return h(z.button,{type:"button",...r,ref:t,onClick:W(e.onClick,()=>o.onOpenChange(!1))})});pr.displayName=dr;function yt(e){return e?"open":"closed"}var _r="DialogTitleWarning",[Zs,vr]=Bo(_r,{contentName:J,titleName:gt,docsSlug:"dialog"}),Is=({titleId:e})=>{const t=vr(_r),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
-
43
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
-
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},xs="DialogDescriptionWarning",zs=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${vr(xs).contentName}}.`;return w(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ms=or,$s=ar,Ls=ur,Fs=fr,nn=pr;const js=({noTarget:e=!0,heading:t="We use cookies.",subheading:n="Please define your selection below.",selectLabel:r="Select",hideLabel:o="Hide",saveLabel:i="Save selection",declineLabel:a="Decline all",defaultSettingsOpen:s=!0,privacyPolicy:u})=>{const{onSave:c,onDeclineAll:l,selectionTaken:f}=Ci(),[p,m]=D(s);return h(Ms,{open:!f,children:h($s,{className:_t(M.root,e?M.noTarget:""),children:h(li,{open:p,onOpenChange:m,className:M.collapsible,children:[h("div",{className:M.header,children:[h("div",{className:M.heading,children:[h(Ls,{asChild:!0,children:h(He,{weight:"bold",children:t})}),h(Fs,{asChild:!0,children:h(He,{size:"caption",color:"muted",children:n})})]}),h(fi,{asChild:!0,children:h(Ze,{variant:"ghost",children:[p?o:r," ",h(yi,{size:12,className:zr({[M.chevron]:!0,[M.open]:p})})]})})]}),h("div",{className:M.footer,children:[h("div",{className:M.legal,children:u&&h(He,{size:"caption",children:h("a",{href:u.url,target:"_blank",children:u.label})})}),h("div",{className:M.actions,children:[h(nn,{asChild:!0,children:h(Ze,{variant:"neutral",onClick:()=>l(),children:a})}),h(nn,{asChild:!0,children:h(Ze,{variant:"brand",onClick:()=>c(),children:i})})]})]})]})})})},Ws=({localStorageKey:e="cb-selection",items:t,...n})=>{const r=I(()=>t.filter(o=>!o.required).map(o=>({value:o.value,script:o.script,defaultSelected:o.defaultSelected,required:o.required})),[t]);return h(Ei,{items:r,localStorageKey:e,children:h(js,{items:t,...n})})};function Us(e,t){const n=t===void 0;let r;if(typeof t=="string"){const o=document.querySelector(t);if(!o)throw new Error(`Element with selector "${t}" not found`);r=o}else r=t;_.render(h(Ws,{noTarget:n,...e}),r??document.body)}exports.mountBanner=Us;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("preact");var $n=0;function f(e,t,n,o,r,i){t||(t={});var c,s,a=t;if("ref"in a)for(s in a={},t)s=="ref"?c=t[s]:a[s]=t[s];var u={type:e,props:a,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--$n,__i:-1,__u:0,__source:r,__self:i};if(typeof e=="function"&&(c=e.defaultProps))for(s in c)a[s]===void 0&&(a[s]=c[s]);return _.options.vnode&&_.options.vnode(u),u}var T,w,ke,et,X=0,Pt=[],S=_.options,tt=S.__b,nt=S.__r,ot=S.diffed,rt=S.__c,it=S.unmount,st=S.__;function W(e,t){S.__h&&S.__h(w,e,X||t),X=0;var n=w.__H||(w.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function O(e){return X=1,ue(Nt,e)}function ue(e,t,n){var o=W(T++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):Nt(void 0,t),function(s){var a=o.__N?o.__N[0]:o.__[0],u=o.t(a,s);a!==u&&(o.__N=[u,o.__[1]],o.__c.setState({}))}],o.__c=w,!w.__f)){var r=function(s,a,u){if(!o.__c.__H)return!0;var l=o.__c.__H.__.filter(function(p){return p.__c});if(l.every(function(p){return!p.__N}))return!i||i.call(this,s,a,u);var d=o.__c.props!==s;return l.some(function(p){if(p.__N){var v=p.__[0];p.__=p.__N,p.__N=void 0,v!==p.__[0]&&(d=!0)}}),i&&i.call(this,s,a,u)||d};w.__f=!0;var i=w.shouldComponentUpdate,c=w.componentWillUpdate;w.componentWillUpdate=function(s,a,u){if(this.__e){var l=i;i=void 0,r(s,a,u),i=l}c&&c.call(this,s,a,u)},w.shouldComponentUpdate=r}return o.__N||o.__}function I(e,t){var n=W(T++,3);!S.__s&&Le(n.__H,t)&&(n.__=e,n.u=t,w.__H.__h.push(n))}function q(e,t){var n=W(T++,4);!S.__s&&Le(n.__H,t)&&(n.__=e,n.u=t,w.__h.push(n))}function A(e){return X=5,E(function(){return{current:e}},[])}function De(e,t,n){X=6,q(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function E(e,t){var n=W(T++,7);return Le(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function M(e,t){return X=8,E(function(){return e},t)}function ee(e){var t=w.context[e.__c],n=W(T++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(w)),t.props.value):e.__}function je(e,t){S.useDebugValue&&S.useDebugValue(t?t(e):e)}function xn(e){var t=W(T++,10),n=O();return t.__=e,w.componentDidCatch||(w.componentDidCatch=function(o,r){t.__&&t.__(o,r),n[1](o)}),[n[0],function(){n[1](void 0)}]}function Ue(){var e=W(T++,11);if(!e.__){for(var t=w.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Tn(){for(var e;e=Pt.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(he),t.__h.some($e),t.__h=[]}catch(n){t.__h=[],S.__e(n,e.__v)}}}S.__b=function(e){w=null,tt&&tt(e)},S.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),st&&st(e,t)},S.__r=function(e){nt&&nt(e),T=0;var t=(w=e.__c).__H;t&&(ke===w?(t.__h=[],w.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(he),t.__h.some($e),t.__h=[],T=0)),ke=w},S.diffed=function(e){ot&&ot(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Pt.push(t)!==1&&et===S.requestAnimationFrame||((et=S.requestAnimationFrame)||Mn)(Tn)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ke=w=null},S.__c=function(e,t){t.some(function(n){try{n.__h.some(he),n.__h=n.__h.filter(function(o){return!o.__||$e(o)})}catch(o){t.some(function(r){r.__h&&(r.__h=[])}),t=[],S.__e(o,n.__v)}}),rt&&rt(e,t)},S.unmount=function(e){it&&it(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(o){try{he(o)}catch(r){t=r}}),n.__H=void 0,t&&S.__e(t,n.__v))};var ct=typeof requestAnimationFrame=="function";function Mn(e){var t,n=function(){clearTimeout(o),ct&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);ct&&(t=requestAnimationFrame(n))}function he(e){var t=w,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),w=t}function $e(e){var t=w;e.__c=e.__(),w=t}function Le(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function Nt(e,t){return typeof t=="function"?t(e):t}function At(e,t){for(var n in t)e[n]=t[n];return e}function xe(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function Ze(e,t){var n=t(),o=O({t:{__:n,u:t}}),r=o[0].t,i=o[1];return q(function(){r.__=n,r.u=t,Re(r)&&i({t:r})},[e,n,t]),I(function(){return Re(r)&&i({t:r}),e(function(){Re(r)&&i({t:r})})},[e]),n}function Re(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function He(e){e()}function Be(e){return e}function Fe(){return[!1,He]}var Ve=q;function ve(e,t){this.props=e,this.context=t}function Et(e,t){function n(r){var i=this.props.ref,c=i==r.ref;return!c&&i&&(i.call?i(null):i.current=null),t?!t(this.props,r)||!c:xe(this.props,r)}function o(r){return this.shouldComponentUpdate=n,_.createElement(e,r)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o.type=e,o}(ve.prototype=new _.Component).isPureReactComponent=!0,ve.prototype.shouldComponentUpdate=function(e,t){return xe(this.props,e)||xe(this.state,t)};var at=_.options.__b;_.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),at&&at(e)};var Dn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function z(e){function t(n){var o=At({},n);return delete o.ref,e(o,n.ref||null)}return t.$$typeof=Dn,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ut=function(e,t){return e==null?null:_.toChildArray(_.toChildArray(e).map(t))},L={map:ut,forEach:ut,count:function(e){return e?_.toChildArray(e).length:0},only:function(e){var t=_.toChildArray(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:_.toChildArray},jn=_.options.__e;_.options.__e=function(e,t,n,o){if(e.then){for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}jn(e,t,n,o)};var lt=_.options.unmount;function Ot(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=At({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Ot(o,t,n)})),e}function zt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return zt(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function se(){this.__u=0,this.o=null,this.__b=null}function kt(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Rt(e){var t,n,o,r=null;function i(c){if(t||(t=e()).then(function(s){s&&(r=s.default||s),o=!0},function(s){n=s,o=!0}),n)throw n;if(!o)throw t;return r?_.createElement(r,c):null}return i.displayName="Lazy",i.__f=!0,i}function Y(){this.i=null,this.l=null}_.options.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),lt&&lt(e)},(se.prototype=new _.Component).__c=function(e,t){var n=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(n);var r=kt(o.__v),i=!1,c=function(){i||o.__z||(i=!0,n.__R=null,r?r(a):a())};n.__R=c;var s=n.__P;n.__P=null;var a=function(){if(!--o.__u){if(o.state.__a){var u=o.state.__a;o.__v.__k[0]=zt(u,u.__c.__P,u.__c.__O)}var l;for(o.setState({__a:o.__b=null});l=o.o.pop();)l.__P=s,l.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(c,c)},se.prototype.componentWillUnmount=function(){this.o=[]},se.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Ot(this.__b,n,o.__O=o.__P)}this.__b=null}var r=t.__a&&_.createElement(_.Fragment,null,e.fallback);return r&&(r.__u&=-33),[_.createElement(_.Fragment,null,t.__a?null:e.children),r]};var dt=function(e,t,n){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;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Un(e){return this.getChildContext=function(){return e.context},e.children}function Ln(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){_.render(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var o=t.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:o.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(r,i){this.childNodes.push(r),t.h.insertBefore(r,i)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}}_.render(_.createElement(Un,{context:t.context},e.__v),t.v)}function It(e,t){var n=_.createElement(Ln,{__v:e,h:t});return n.containerInfo=t,n}(Y.prototype=new _.Component).__a=function(e){var t=this,n=kt(t.__v),o=t.l.get(e);return o[0]++,function(r){var i=function(){t.props.revealOrder?(o.push(r),dt(t,e,o)):r()};n?n(i):i()}},Y.prototype.render=function(e){this.i=null,this.l=new Map;var t=_.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Y.prototype.componentDidUpdate=Y.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){dt(e,n,t)})};var $t=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zn=/^(?: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]/,Hn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bn=/[A-Z0-9]/g,Fn=typeof document<"u",Vn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function xt(e,t,n){return t.__k==null&&(t.textContent=""),_.render(e,t),typeof n=="function"&&n(),e?e.__c:null}function Tt(e,t,n){return _.hydrate(e,t),typeof n=="function"&&n(),e?e.__c:null}_.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ft=_.options.event;function Wn(){}function qn(){return this.cancelBubble}function Kn(){return this.defaultPrevented}_.options.event=function(e){return ft&&(e=ft(e)),e.persist=Wn,e.isPropagationStopped=qn,e.isDefaultPrevented=Kn,e.nativeEvent=e};var We,Gn={enumerable:!1,configurable:!0,get:function(){return this.class}},_t=_.options.vnode;_.options.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,o=t.type,r={},i=o.indexOf("-")===-1;for(var c in n){var s=n[c];if(!(c==="value"&&"defaultValue"in n&&s==null||Fn&&c==="children"&&o==="noscript"||c==="class"||c==="className")){var a=c.toLowerCase();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"||o!=="input"&&o!=="textarea"||Vn(n.type)?a==="onfocus"?c="onfocusin":a==="onblur"?c="onfocusout":Hn.test(c)&&(c=a):a=c="oninput":i&&Zn.test(c)?c=c.replace(Bn,"-$&").toLowerCase():s===null&&(s=void 0),a==="oninput"&&r[c=a]&&(c="oninputCapture"),r[c]=s}}o=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=_.toChildArray(n.children).forEach(function(u){u.props.selected=r.value.indexOf(u.props.value)!=-1})),o=="select"&&r.defaultValue!=null&&(r.value=_.toChildArray(n.children).forEach(function(u){u.props.selected=r.multiple?r.defaultValue.indexOf(u.props.value)!=-1:r.defaultValue==u.props.value})),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Gn)):n.className&&(r.class=r.className=n.className),t.props=r})(e),e.$$typeof=$t,_t&&_t(e)};var pt=_.options.__r;_.options.__r=function(e){pt&&pt(e),We=e.__c};var ht=_.options.diffed;_.options.diffed=function(e){ht&&ht(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),We=null};var Mt={ReactCurrentDispatcher:{current:{readContext:function(e){return We.__n[e.__c].props.value},useCallback:M,useContext:ee,useDebugValue:je,useDeferredValue:Be,useEffect:I,useId:Ue,useImperativeHandle:De,useInsertionEffect:Ve,useLayoutEffect:q,useMemo:E,useReducer:ue,useRef:A,useState:O,useSyncExternalStore:Ze,useTransition:Fe}}},Jn="18.3.1";function Dt(e){return _.createElement.bind(null,e)}function D(e){return!!e&&e.$$typeof===$t}function jt(e){return D(e)&&e.type===_.Fragment}function Ut(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function le(e){return D(e)?_.cloneElement.apply(null,arguments):e}function Lt(e){return!!e.__k&&(_.render(null,e),!0)}function Zt(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ht=function(e,t){return e(t)},Bt=function(e,t){return e(t)},Ft=_.Fragment,Vt=D,P={useState:O,useId:Ue,useReducer:ue,useEffect:I,useLayoutEffect:q,useInsertionEffect:Ve,useTransition:Fe,useDeferredValue:Be,useSyncExternalStore:Ze,startTransition:He,useRef:A,useImperativeHandle:De,useMemo:E,useCallback:M,useContext:ee,useDebugValue:je,version:"18.3.1",Children:L,render:xt,hydrate:Tt,unmountComponentAtNode:Lt,createPortal:It,createElement:_.createElement,createContext:_.createContext,createFactory:Dt,cloneElement:le,createRef:_.createRef,Fragment:_.Fragment,isValidElement:D,isElement:Vt,isFragment:jt,isMemo:Ut,findDOMNode:Zt,Component:_.Component,PureComponent:ve,memo:Et,forwardRef:z,flushSync:Bt,unstable_batchedUpdates:Ht,StrictMode:Ft,Suspense:se,SuspenseList:Y,lazy:Rt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Mt};const Wt=Object.freeze(Object.defineProperty({__proto__:null,Children:L,Component:_.Component,Fragment:_.Fragment,PureComponent:ve,StrictMode:Ft,Suspense:se,SuspenseList:Y,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Mt,cloneElement:le,createContext:_.createContext,createElement:_.createElement,createFactory:Dt,createPortal:It,createRef:_.createRef,default:P,findDOMNode:Zt,flushSync:Bt,forwardRef:z,hydrate:Tt,isElement:Vt,isFragment:jt,isMemo:Ut,isValidElement:D,lazy:Rt,memo:Et,render:xt,startTransition:He,unmountComponentAtNode:Lt,unstable_batchedUpdates:Ht,useCallback:M,useContext:ee,useDebugValue:je,useDeferredValue:Be,useEffect:I,useErrorBoundary:xn,useId:Ue,useImperativeHandle:De,useInsertionEffect:Ve,useLayoutEffect:q,useMemo:E,useReducer:ue,useRef:A,useState:O,useSyncExternalStore:Ze,useTransition:Fe,version:Jn},Symbol.toStringTag,{value:"Module"}));function qt(...e){return e.filter(Boolean).join(" ")}function me(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}const Yn="_root_hw69b_1",Xn="_neutral_hw69b_17",Qn="_brand_hw69b_30",eo="_ghost_hw69b_43",mt={root:Yn,neutral:Xn,brand:Qn,ghost:eo},Ie=({variant:e="neutral",...t})=>f("button",{className:qt(mt.root,mt[e]),...t}),to="_root_14l5h_1",no="_muted_14l5h_4",oo="_body_14l5h_8",ro="_normal_14l5h_14",io="_bold_14l5h_18",so="_caption_14l5h_23",de={root:to,muted:no,body:oo,normal:ro,bold:io,caption:so},F=({as:e="span",size:t="body",weight:n="normal",color:o="default",...r})=>f(e??"span",{className:qt(de.root,de[t],de[n],de[o]),...r}),co="_root_2wcp0_53",ao="_open_2wcp0_66",uo="_noTarget_2wcp0_72",lo="_collapsible_2wcp0_81",fo="_header_2wcp0_84",_o="_heading_2wcp0_91",po="_chevron_2wcp0_97",ho="_settings_2wcp0_108",mo="_footer_2wcp0_122",vo="_legal_2wcp0_129",go="_actions_2wcp0_132",R={root:co,open:ao,noTarget:uo,collapsible:lo,header:fo,heading:_o,chevron:po,settings:ho,footer:mo,legal:vo,actions:go},yo="_root_mqtha_19",bo="_header_mqtha_24",Co="_label_mqtha_33",wo="_actions_mqtha_39",So="_chevron_mqtha_45",Po="_open_mqtha_51",No="_description_mqtha_58",H={root:yo,header:bo,label:Co,actions:wo,chevron:So,open:Po,description:No};function N(e,t,n){function o(s,a){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:a,constr:c,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,a);const u=c.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const p=l[d];p in s||(s[p]=u[p].bind(s))}}const r=n?.Parent??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function c(s){var a;const u=n?.Parent?new i:this;o(u,s),(a=u._zod).deferred??(a.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(c,"init",{value:o}),Object.defineProperty(c,Symbol.hasInstance,{value:s=>n?.Parent&&s instanceof n.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class ce extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Ao={};function te(e){return Ao}function Eo(e,t){return typeof t=="bigint"?t.toString():t}function Kt(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Gt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const vt=Symbol("evaluating");function x(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==vt)return o===void 0&&(o=vt,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}const Jt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ge(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Oo(e){if(ge(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(ge(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function gt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zo(e,t,n){const o=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(o._zod.parent=e),o}function ne(e){return{}}function ko(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function re(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ie(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function fe(e){return typeof e=="string"?e:e?.message}function oe(e,t,n){const o={...e,path:e.path??[]};if(!e.message){const r=fe(e.inst?._zod.def?.error?.(e))??fe(t?.error?.(e))??fe(n.customError?.(e))??fe(n.localeError?.(e))??"Invalid input";o.message=r}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}const Yt=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Eo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ro=N("$ZodError",Yt),Ce=N("$ZodError",Yt,{Parent:Error}),Io=e=>(t,n,o,r)=>{const i=o?Object.assign(o,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new ce;if(c.issues.length){const s=new(r?.Err??e)(c.issues.map(a=>oe(a,i,te())));throw Jt(s,r?.callee),s}return c.value},$o=Io(Ce),xo=e=>async(t,n,o,r)=>{const i=o?Object.assign(o,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise&&(c=await c),c.issues.length){const s=new(r?.Err??e)(c.issues.map(a=>oe(a,i,te())));throw Jt(s,r?.callee),s}return c.value},To=xo(Ce),Mo=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new ce;return i.issues.length?{success:!1,error:new(e??Ro)(i.issues.map(c=>oe(c,r,te())))}:{success:!0,data:i.value}},Xt=Mo(Ce),Do=e=>async(t,n,o)=>{const r=o?Object.assign(o,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(c=>oe(c,r,te())))}:{success:!0,data:i.value}},Qt=Do(Ce),jo=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Uo=/^-?\d+(?:\.\d+)?$/,Lo=/^(?:true|false)$/i,Zo={major:4,minor:3,patch:6},Z=N("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Zo;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const r of o)for(const i of r._zod.onattach)i(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const r=(c,s,a)=>{let u=re(c),l;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(c))continue}else if(u)continue;const p=c.issues.length,v=d._zod.check(c);if(v instanceof Promise&&a?.async===!1)throw new ce;if(l||v instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await v,c.issues.length!==p&&(u||(u=re(c,p)))});else{if(c.issues.length===p)continue;u||(u=re(c,p))}}return l?l.then(()=>c):c},i=(c,s,a)=>{if(re(c))return c.aborted=!0,c;const u=r(s,o,a);if(u instanceof Promise){if(a.async===!1)throw new ce;return u.then(l=>e._zod.parse(l,a))}return e._zod.parse(u,a)};e._zod.run=(c,s)=>{if(s.skipChecks)return e._zod.parse(c,s);if(s.direction==="backward"){const u=e._zod.parse({value:c.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(l=>i(l,c,s)):i(u,c,s)}const a=e._zod.parse(c,s);if(a instanceof Promise){if(s.async===!1)throw new ce;return a.then(u=>r(u,o,s))}return r(a,o,s)}}x(e,"~standard",()=>({validate:r=>{try{const i=Xt(e,r);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Qt(e,r).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),Ho=N("$ZodString",(e,t)=>{Z.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??jo(e._zod.bag),e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Bo=N("$ZodBoolean",(e,t)=>{Z.init(e,t),e._zod.pattern=Lo,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}});function ye(e,t,n,o,r){if(e.issues.length){if(r&&!(n in o))return;t.issues.push(...ie(n,e.issues))}e.value===void 0?n in o&&(t.value[n]=void 0):t.value[n]=e.value}function Fo(e){const t=Object.keys(e.shape);for(const o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);const n=ko(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Vo(e,t,n,o,r,i){const c=[],s=r.keySet,a=r.catchall._zod,u=a.def.type,l=a.optout==="optional";for(const d in t){if(s.has(d))continue;if(u==="never"){c.push(d);continue}const p=a.run({value:t[d],issues:[]},o);p instanceof Promise?e.push(p.then(v=>ye(v,n,d,t,l))):ye(p,n,d,t,l)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Wo=N("$ZodObject",(e,t)=>{if(Z.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const a={...s};return Object.defineProperty(t,"shape",{value:a}),a}})}const o=Kt(()=>Fo(t));x(e._zod,"propValues",()=>{const s=t.shape,a={};for(const u in s){const l=s[u]._zod;if(l.values){a[u]??(a[u]=new Set);for(const d of l.values)a[u].add(d)}}return a});const r=ge,i=t.catchall;let c;e._zod.parse=(s,a)=>{c??(c=o.value);const u=s.value;if(!r(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const l=[],d=c.shape;for(const p of c.keys){const v=d[p],m=v._zod.optout==="optional",g=v._zod.run({value:u[p],issues:[]},a);g instanceof Promise?l.push(g.then(h=>ye(h,s,p,u,m))):ye(g,s,p,u,m)}return i?Vo(l,u,s,a,o.value,e):l.length?Promise.all(l).then(()=>s):s}});function yt(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!re(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(c=>oe(c,o,te())))}),t)}const qo=N("$ZodUnion",(e,t)=>{Z.init(e,t),x(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),x(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),x(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),x(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Gt(i.source)).join("|")})$`)}});const n=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(r,i)=>{if(n)return o(r,i);let c=!1;const s=[];for(const a of t.options){const u=a._zod.run({value:r.value,issues:[]},i);if(u instanceof Promise)s.push(u),c=!0;else{if(u.issues.length===0)return u;s.push(u)}}return c?Promise.all(s).then(a=>yt(a,r,e,i)):yt(s,r,e,i)}}),Ko=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,qo.init(e,t);const n=e._zod.parse;x(e._zod,"propValues",()=>{const r={};for(const i of t.options){const c=i._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[s,a]of Object.entries(c)){r[s]||(r[s]=new Set);for(const u of a)r[s].add(u)}}return r});const o=Kt(()=>{const r=t.options,i=new Map;for(const c of r){const s=c._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(const a of s){if(i.has(a))throw new Error(`Duplicate discriminator value "${String(a)}"`);i.set(a,c)}}return i});e._zod.parse=(r,i)=>{const c=r.value;if(!ge(c))return r.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),r;const s=o.value.get(c?.[t.discriminator]);return s?s._zod.run(r,i):t.unionFallback?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),r)}}),Go=N("$ZodRecord",(e,t)=>{Z.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Oo(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],c=t.keyType._zod.values;if(c){n.value={};const s=new Set;for(const u of c)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);const l=t.valueType._zod.run({value:r[u],issues:[]},o);l instanceof Promise?i.push(l.then(d=>{d.issues.length&&n.issues.push(...ie(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...ie(u,l.issues)),n.value[u]=l.value)}let a;for(const u in r)s.has(u)||(a=a??[],a.push(u));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:a})}else{n.value={};for(const s of Reflect.ownKeys(r)){if(s==="__proto__")continue;let a=t.keyType._zod.run({value:s,issues:[]},o);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Uo.test(s)&&a.issues.length){const d=t.keyType._zod.run({value:Number(s),issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(a=d)}if(a.issues.length){t.mode==="loose"?n.value[s]=r[s]:n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(d=>oe(d,o,te())),input:s,path:[s],inst:e});continue}const l=t.valueType._zod.run({value:r[s],issues:[]},o);l instanceof Promise?i.push(l.then(d=>{d.issues.length&&n.issues.push(...ie(s,d.issues)),n.value[a.value]=d.value})):(l.issues.length&&n.issues.push(...ie(s,l.issues)),n.value[a.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Jo=N("$ZodLiteral",(e,t)=>{if(Z.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?gt(o):o?gt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}});function bt(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Yo=N("$ZodOptional",(e,t)=>{Z.init(e,t),e._zod.optin="optional",e._zod.optout="optional",x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Gt(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>bt(i,n.value)):bt(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,o)}});function Xo(e,t){return new e({type:"string",...ne()})}function Qo(e,t){return new e({type:"boolean",...ne()})}const K=N("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Z.init(e,t),e.def=t,e.type=t.type,e.parse=(n,o)=>$o(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Xt(e,n,o),e.parseAsync=async(n,o)=>To(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Qt(e,n,o),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(n,o)=>zo(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.apply=n=>n(e)}),er=N("ZodMiniString",(e,t)=>{Ho.init(e,t),K.init(e,t)});function B(e){return Xo(er)}const tr=N("ZodMiniBoolean",(e,t)=>{Bo.init(e,t),K.init(e,t)});function ae(e){return Qo(tr)}const nr=N("ZodMiniObject",(e,t)=>{Wo.init(e,t),K.init(e,t),x(e,"shape",()=>t.shape)});function en(e,t){const n={type:"object",shape:e??{},...ne()};return new nr(n)}const or=N("ZodMiniDiscriminatedUnion",(e,t)=>{Ko.init(e,t),K.init(e,t)});function rr(e,t,n){return new or({type:"union",options:t,discriminator:e,...ne()})}const ir=N("ZodMiniRecord",(e,t)=>{Go.init(e,t),K.init(e,t)});function sr(e,t,n){return new ir({type:"record",keyType:e,valueType:t,...ne()})}const cr=N("ZodMiniLiteral",(e,t)=>{Jo.init(e,t),K.init(e,t)});function tn(e,t){return new cr({type:"literal",values:Array.isArray(e)?e:[e],...ne()})}const ar=N("ZodMiniOptional",(e,t)=>{Yo.init(e,t),K.init(e,t)});function U(e){return new ar({type:"optional",innerType:e})}const ur=en({variant:tn("remote"),type:U(B()),src:B(),async:U(ae()),defer:U(ae()),crossorigin:U(B()),integrity:U(B())}),lr=en({variant:tn("inline"),type:U(B()),async:U(ae()),defer:U(ae()),content:B()}),dr=rr("variant",[ur,lr]);function we(e,t=[]){let n=[];function o(i,c){const s=_.createContext(c),a=n.length;n=[...n,c];const u=d=>{const{scope:p,children:v,...m}=d,g=p?.[e]?.[a]||s,h=E(()=>m,Object.values(m));return f(g.Provider,{value:h,children:v})};u.displayName=i+"Provider";function l(d,p){const v=p?.[e]?.[a]||s,m=ee(v);if(m)return m;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,l]}const r=()=>{const i=n.map(c=>_.createContext(c));return function(s){const a=s?.[e]||i;return E(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return r.scopeName=e,[o,fr(r,...t)]}function fr(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const c=o.reduce((s,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...s,...d}},{});return E(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Ct(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function nn(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Ct(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():Ct(e[r],null)}}}}function V(...e){return M(nn(...e),e)}function Te(e){const t=_r(e),n=z((o,r)=>{const{children:i,...c}=o,s=L.toArray(i),a=s.find(hr);if(a){const u=a.props.children,l=s.map(d=>d===a?L.count(u)>1?L.only(null):D(u)?u.props.children:null:d);return f(t,{...c,ref:r,children:D(u)?le(u,void 0,l):null})}return f(t,{...c,ref:r,children:i})});return n.displayName=`${e}.Slot`,n}function _r(e){const t=z((n,o)=>{const{children:r,...i}=n;if(D(r)){const c=vr(r),s=mr(i,r.props);return r.type!==_.Fragment&&(s.ref=o?nn(o,c):c),le(r,s)}return L.count(r)>1?L.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pr=Symbol("radix.slottable");function hr(e){return D(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pr}function mr(e,t){const n={...t};for(const o in t){const r=e[o],i=t[o];/^on[A-Z]/.test(o)?r&&i?n[o]=(...s)=>{const a=i(...s);return r(...s),a}:r&&(n[o]=r):o==="style"?n[o]={...r,...i}:o==="className"&&(n[o]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function vr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}function gr(e){const t=e+"CollectionProvider",[n,o]=we(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=g=>{const{scope:h,children:y}=g,b=P.useRef(null),C=P.useRef(new Map).current;return f(r,{scope:h,itemMap:C,collectionRef:b,children:y})};c.displayName=t;const s=e+"CollectionSlot",a=Te(s),u=P.forwardRef((g,h)=>{const{scope:y,children:b}=g,C=i(s,y),k=V(h,C.collectionRef);return f(a,{ref:k,children:b})});u.displayName=s;const l=e+"CollectionItemSlot",d="data-radix-collection-item",p=Te(l),v=P.forwardRef((g,h)=>{const{scope:y,children:b,...C}=g,k=P.useRef(null),J=V(h,k),j=i(l,y);return P.useEffect(()=>(j.itemMap.set(k,{ref:k,...C}),()=>{j.itemMap.delete(k)})),f(p,{[d]:"",ref:J,children:b})});v.displayName=l;function m(g){const h=i(e+"CollectionConsumer",g);return P.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((j,Oe)=>C.indexOf(j.ref.current)-C.indexOf(Oe.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:c,Slot:u,ItemSlot:v},m,o]}function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var Q=globalThis?.document?q:()=>{},yr=Wt[" useInsertionEffect ".trim().toString()]||Q;function Se({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,i,c]=br({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r;{const l=A(e!==void 0);I(()=>{const d=l.current;d!==s&&console.warn(`${o} 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.`),l.current=s},[s,o])}const u=M(l=>{if(s){const d=Cr(l)?l(e):l;d!==e&&c.current?.(d)}else i(l)},[s,e,i,c]);return[a,u]}function br({defaultProp:e,onChange:t}){const[n,o]=O(e),r=A(n),i=A(t);return yr(()=>{i.current=t},[t]),I(()=>{r.current!==n&&(i.current?.(n),r.current=n)},[n,r]),[n,o,i]}function Cr(e){return typeof e=="function"}var wr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],G=wr.reduce((e,t)=>{const n=Te(`Primitive.${t}`),o=z((r,i)=>{const{asChild:c,...s}=r,a=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f(a,{...s,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Sr(e,t){return ue((n,o)=>t[n][o]??n,e)}var on=e=>{const{present:t,children:n}=e,o=Pr(t),r=typeof n=="function"?n({present:o.isPresent}):L.only(n),i=V(o.ref,Nr(r));return typeof n=="function"||o.isPresent?le(r,{ref:i}):null};on.displayName="Presence";function Pr(e){const[t,n]=O(),o=A(null),r=A(e),i=A("none"),c=e?"mounted":"unmounted",[s,a]=Sr(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I(()=>{const u=_e(o.current);i.current=s==="mounted"?u:"none"},[s]),Q(()=>{const u=o.current,l=r.current;if(l!==e){const p=i.current,v=_e(u);e?a("MOUNT"):v==="none"||u?.display==="none"?a("UNMOUNT"):a(l&&p!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,a]),Q(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,d=v=>{const g=_e(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(a("ANIMATION_END"),!r.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=v=>{v.target===t&&(i.current=_e(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:M(u=>{o.current=u?getComputedStyle(u):null,n(u)},[])}}function _e(e){return e?.animationName||"none"}function Nr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;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)}var Ar=Wt[" useId ".trim().toString()]||(()=>{}),Er=0;function rn(e){const[t,n]=O(Ar());return Q(()=>{n(o=>o??String(Er++))},[e]),t?`radix-${t}`:""}var Pe="Collapsible",[Or,sn]=we(Pe),[zr,Ke]=Or(Pe),cn=z((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:r,disabled:i,onOpenChange:c,...s}=e,[a,u]=Se({prop:o,defaultProp:r??!1,onChange:c,caller:Pe});return f(zr,{scope:n,disabled:i,contentId:rn(),open:a,onOpenToggle:M(()=>u(l=>!l),[u]),children:f(G.div,{"data-state":Je(a),"data-disabled":i?"":void 0,...s,ref:t})})});cn.displayName=Pe;var an="CollapsibleTrigger",un=z((e,t)=>{const{__scopeCollapsible:n,...o}=e,r=Ke(an,n);return f(G.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Je(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...o,ref:t,onClick:qe(e.onClick,r.onOpenToggle)})});un.displayName=an;var Ge="CollapsibleContent",ln=z((e,t)=>{const{forceMount:n,...o}=e,r=Ke(Ge,e.__scopeCollapsible);return f(on,{present:n||r.open,children:({present:i})=>f(kr,{...o,ref:t,present:i})})});ln.displayName=Ge;var kr=z((e,t)=>{const{__scopeCollapsible:n,present:o,children:r,...i}=e,c=Ke(Ge,n),[s,a]=O(o),u=A(null),l=V(t,u),d=A(0),p=d.current,v=A(0),m=v.current,g=c.open||s,h=A(g),y=A(void 0);return I(()=>{const b=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(b)},[]),Q(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const C=b.getBoundingClientRect();d.current=C.height,v.current=C.width,h.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),a(o)}},[c.open,o]),f(G.div,{"data-state":Je(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!g,...i,ref:l,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:g&&r})});function Je(e){return e?"open":"closed"}var dn=cn,fn=un,_n=ln,Rr=_.createContext(void 0);function Ir(e){const t=ee(Rr);return e||t||"ltr"}var $="Accordion",$r=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ye,xr,Tr]=gr($),[Ne]=we($,[Tr,sn]),Xe=sn(),pn=P.forwardRef((e,t)=>{const{type:n,...o}=e,r=o,i=o;return f(Ye.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?f(Ur,{...i,ref:t}):f(jr,{...r,ref:t})})});pn.displayName=$;var[hn,Mr]=Ne($),[mn,Dr]=Ne($,{collapsible:!1}),jr=P.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},collapsible:i=!1,...c}=e,[s,a]=Se({prop:n,defaultProp:o??"",onChange:r,caller:$});return f(hn,{scope:e.__scopeAccordion,value:P.useMemo(()=>s?[s]:[],[s]),onItemOpen:a,onItemClose:P.useCallback(()=>i&&a(""),[i,a]),children:f(mn,{scope:e.__scopeAccordion,collapsible:i,children:f(vn,{...c,ref:t})})})}),Ur=P.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:r=()=>{},...i}=e,[c,s]=Se({prop:n,defaultProp:o??[],onChange:r,caller:$}),a=P.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=P.useCallback(l=>s((d=[])=>d.filter(p=>p!==l)),[s]);return f(hn,{scope:e.__scopeAccordion,value:c,onItemOpen:a,onItemClose:u,children:f(mn,{scope:e.__scopeAccordion,collapsible:!0,children:f(vn,{...i,ref:t})})})}),[Lr,Ae]=Ne($),vn=P.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:r,orientation:i="vertical",...c}=e,s=P.useRef(null),a=V(s,t),u=xr(n),d=Ir(r)==="ltr",p=qe(e.onKeyDown,v=>{if(!$r.includes(v.key))return;const m=v.target,g=u().filter(ze=>!ze.ref.current?.disabled),h=g.findIndex(ze=>ze.ref.current===m),y=g.length;if(h===-1)return;v.preventDefault();let b=h;const C=0,k=y-1,J=()=>{b=h+1,b>k&&(b=C)},j=()=>{b=h-1,b<C&&(b=k)};switch(v.key){case"Home":b=C;break;case"End":b=k;break;case"ArrowRight":i==="horizontal"&&(d?J():j());break;case"ArrowDown":i==="vertical"&&J();break;case"ArrowLeft":i==="horizontal"&&(d?j():J());break;case"ArrowUp":i==="vertical"&&j();break}const Oe=b%y;g[Oe].ref.current?.focus()});return f(Lr,{scope:n,disabled:o,direction:r,orientation:i,children:f(Ye.Slot,{scope:n,children:f(G.div,{...c,"data-orientation":i,ref:a,onKeyDown:o?void 0:p})})})}),be="AccordionItem",[Zr,Qe]=Ne(be),gn=P.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...r}=e,i=Ae(be,n),c=Mr(be,n),s=Xe(n),a=rn(),u=o&&c.value.includes(o)||!1,l=i.disabled||e.disabled;return f(Zr,{scope:n,open:u,disabled:l,triggerId:a,children:f(dn,{"data-orientation":i.orientation,"data-state":Sn(u),...s,...r,ref:t,disabled:l,open:u,onOpenChange:d=>{d?c.onItemOpen(o):c.onItemClose(o)}})})});gn.displayName=be;var yn="AccordionHeader",Hr=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ae($,n),i=Qe(yn,n);return f(G.h3,{"data-orientation":r.orientation,"data-state":Sn(i.open),"data-disabled":i.disabled?"":void 0,...o,ref:t})});Hr.displayName=yn;var Me="AccordionTrigger",bn=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ae($,n),i=Qe(Me,n),c=Dr(Me,n),s=Xe(n);return f(Ye.ItemSlot,{scope:n,children:f(fn,{"aria-disabled":i.open&&!c.collapsible||void 0,"data-orientation":r.orientation,id:i.triggerId,...s,...o,ref:t})})});bn.displayName=Me;var Cn="AccordionContent",wn=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,r=Ae($,n),i=Qe(Cn,n),c=Xe(n);return f(_n,{role:"region","aria-labelledby":i.triggerId,"data-orientation":r.orientation,...c,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});wn.displayName=Cn;function Sn(e){return e?"open":"closed"}var Br=pn,Fr=gn,wt=bn,Vr=wn;const Pn=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim();const Wr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const qr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase());const St=e=>{const t=qr(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Kr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Gr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Jr=z(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:i,iconNode:c,...s},a)=>_.createElement("svg",{ref:a,...Kr,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Pn("lucide",r),...!i&&!Gr(s)&&{"aria-hidden":"true"},...s},[...c.map(([u,l])=>_.createElement(u,l)),...Array.isArray(i)?i:[i]]));const Nn=(e,t)=>{const n=z(({className:o,...r},i)=>_.createElement(Jr,{ref:i,iconNode:t,className:Pn(`lucide-${Wr(St(e))}`,`lucide-${e}`,o),...r}));return n.displayName=St(e),n};const Yr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xr=Nn("chevron-down",Yr);const Qr=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ei=Nn("chevron-up",Qr);function ti(e){const t=A({value:e,previous:e});return E(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ni(e){const[t,n]=O(void 0);return Q(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let c,s;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;c=u.inlineSize,s=u.blockSize}else c=e.offsetWidth,s=e.offsetHeight;n({width:c,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Ee="Switch",[oi]=we(Ee),[ri,ii]=oi(Ee),An=z((e,t)=>{const{__scopeSwitch:n,name:o,checked:r,defaultChecked:i,required:c,disabled:s,value:a="on",onCheckedChange:u,form:l,...d}=e,[p,v]=O(null),m=V(t,C=>v(C)),g=A(!1),h=p?l||!!p.closest("form"):!0,[y,b]=Se({prop:r,defaultProp:i??!1,onChange:u,caller:Ee});return f(ri,{scope:n,checked:y,disabled:s,children:[f(G.button,{type:"button",role:"switch","aria-checked":y,"aria-required":c,"data-state":kn(y),"data-disabled":s?"":void 0,disabled:s,value:a,...d,ref:m,onClick:qe(e.onClick,C=>{b(k=>!k),h&&(g.current=C.isPropagationStopped(),g.current||C.stopPropagation())})}),h&&f(zn,{control:p,bubbles:!g.current,name:o,value:a,checked:y,required:c,disabled:s,form:l,style:{transform:"translateX(-100%)"}})]})});An.displayName=Ee;var En="SwitchThumb",On=z((e,t)=>{const{__scopeSwitch:n,...o}=e,r=ii(En,n);return f(G.span,{"data-state":kn(r.checked),"data-disabled":r.disabled?"":void 0,...o,ref:t})});On.displayName=En;var si="SwitchBubbleInput",zn=z(({__scopeSwitch:e,control:t,checked:n,bubbles:o=!0,...r},i)=>{const c=A(null),s=V(c,i),a=ti(n),u=ni(t);return I(()=>{const l=c.current;if(!l)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&v){const m=new Event("click",{bubbles:o});v.call(l,n),l.dispatchEvent(m)}},[a,n,o]),f("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...r,tabIndex:-1,ref:s,style:{...r.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zn.displayName=si;function kn(e){return e?"checked":"unchecked"}var ci=An,ai=On;const ui="_root_dibqz_1",li="_thumb_dibqz_38",pe={root:ui,switch:"_switch_dibqz_8",thumb:li},di=({label:e,id:t,...n})=>f("div",{className:pe.root,children:[e&&f(F,{className:pe.label,as:"label",htmlFor:t,children:e}),f(ci,{className:pe.switch,...n,children:f(ai,{className:pe.thumb})})]}),fi=sr(B(),ae()),Rn=_.createContext(null),_i=({children:e,items:t,localStorageKey:n})=>{function o(m){const g=localStorage.getItem(m);if(!g)return null;const{success:h,data:y}=fi.safeParse(JSON.parse(g));return h?y:null}const r=E(()=>Object.fromEntries(t.map(m=>[m.value,m.defaultSelected??!1])),[t]),[i,c]=O(o(n)??r),[s,a]=O(o(n));function u(m,g){const h=i?{...i,[m]:g}:{[m]:g};c(h)}I(()=>{let m=[];s!==null&&(m=Object.entries(s).filter(([h,y])=>y).map(([h])=>h));const g=t.filter(h=>m.includes(h.value));for(const h of t){const y=document.head.querySelector(`#${h.value}`);y&&y.remove()}for(const h of g){const y=document.createElement("script");if(y.id=h.value,!h.script){h.required||console.warn("CookieBanner: Missing script for",h.value);continue}const{success:b,data:C}=dr.safeParse(h.script);if(!b){console.error("CookieBanner: Invalid script definition for",h.value);continue}switch(y.type=C.type??"text/javascript",y.async=C.async??!1,y.defer=C.defer??!1,C.variant){case"inline":y.textContent=C.content;break;case"remote":y.src=C.src,y.crossOrigin=C.crossorigin??null,y.integrity=C.integrity??"";break}document.head.appendChild(y)}},[s,t]);function l(m){a(m),localStorage.setItem(n,JSON.stringify(m))}const d=M(()=>{const m=Object.fromEntries(t.map(g=>[g.value,!1]));c(m),l(m)},[t]),p=M(()=>{l(i)},[i]),v=E(()=>{if(!s)return!1;const m=Object.keys(s);return t.map(h=>h.value).every(h=>m.includes(h))},[s,t]);return f(Rn.Provider,{value:{selection:i,toggleSelection:u,onDeclineAll:d,onSave:p,selectionTaken:v},children:e})};function In(){const e=ee(Rn);if(!e)throw new Error("useSelection must be used within a SelectionProvider");return e}const pi=({value:e,label:t,sublabel:n,required:o=!1,description:r,openItem:i})=>{const{toggleSelection:c,selection:s}=In(),a=E(()=>s?.[e]??!1,[s,e]);I(()=>{c(e,a)},[e,a]);const u=E(()=>o?!0:a,[o,a]),l=E(()=>p=>o?()=>{}:c(e,p),[o,c,e]),d=E(()=>o,[o]);return f(Fr,{value:e,className:H.root,children:[f("div",{className:H.header,children:[f(wt,{asChild:!0,children:f("div",{className:H.label,children:[f(F,{weight:"bold",children:t}),n&&f(F,{size:"caption",color:"muted",children:n})]})}),f("div",{className:H.actions,children:[f(di,{checked:u,onCheckedChange:l,disabled:d}),f(wt,{asChild:!0,children:f(Xr,{size:16,className:me({[H.chevron]:!0,[H.open]:i===e})})})]})]}),r&&f(Vr,{className:H.description,children:f(F,{size:"caption",dangerouslySetInnerHTML:{__html:r}})})]})},hi=({noTarget:e=!0,heading:t="We use cookies.",subheading:n="Please define your selection below.",selectLabel:o="Select",hideLabel:r="Hide",saveLabel:i="Save selection",declineLabel:c="Decline all",defaultSettingsOpen:s=!0,privacyPolicy:a,items:u})=>{const{onSave:l,onDeclineAll:d,selectionTaken:p}=In(),[v,m]=O(void 0),[g,h]=O(s);return f("div",{className:me({[R.root]:!0,[R.noTarget]:e,[R.open]:!p}),children:f(dn,{open:g,onOpenChange:h,className:R.collapsible,children:[f("div",{className:R.header,children:[f("div",{className:R.heading,children:[f(F,{weight:"bold",children:t}),f(F,{size:"caption",color:"muted",children:n})]}),f(fn,{asChild:!0,children:f(Ie,{variant:"ghost",children:[g?r:o," ",f(ei,{size:12,className:me({[R.chevron]:!0,[R.open]:g})})]})})]}),f(_n,{className:me({[R.settings]:!0}),children:f(Br,{type:"single",collapsible:!0,value:v,onValueChange:m,children:u.map(y=>f(pi,{...y,openItem:v},y.value))})}),f("div",{className:R.footer,children:[f("div",{className:R.legal,children:a&&f(F,{size:"caption",children:f("a",{href:a.url,target:"_blank",children:a.label})})}),f("div",{className:R.actions,children:[f(Ie,{variant:"neutral",onClick:()=>d(),children:c}),f(Ie,{variant:"brand",onClick:()=>l(),children:i})]})]})]})})},mi=({localStorageKey:e="cb-selection",items:t,...n})=>{const o=E(()=>t.filter(r=>!r.required).map(r=>({value:r.value,script:r.script,defaultSelected:r.defaultSelected,required:r.required})),[t]);return f(_i,{items:o,localStorageKey:e,children:f(hi,{items:t,...n})})};function vi(e,t){const n=t===void 0;let o;if(typeof t=="string"){const r=document.querySelector(t);if(!r)throw new Error(`Element with selector "${t}" not found`);o=r}else o=t;_.render(f(mi,{noTarget:n,...e}),o??document.body)}exports.mountBanner=vi;