@uninspired/cookie-banner 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,45 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),pr=require("react-dom");function Ht(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const f=Ht(S),hr=Ht(pr);var ze,R,Kt,V,wt,qt,Gt,Yt,ct,et,tt,ke={},Ae=[],vr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function j(e,t){for(var n in t)e[n]=t[n];return e}function at(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _r(e,t,n){var r,o,s,c={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:c[s]=t[s];if(arguments.length>2&&(c.children=arguments.length>3?ze.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)c[s]===void 0&&(c[s]=e.defaultProps[s]);return Ee(e,c,r,o,null)}function Ee(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Kt,__i:-1,__u:0};return o==null&&R.vnode!=null&&R.vnode(s),s}function ee(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function te(e,t){if(t==null)return e.__?te(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?te(e):null}function mr(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],s=j({},t);s.__v=t.__v+1,R.vnode&&R.vnode(s),lt(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??te(t),!!(32&t.__u),o),s.__v=t.__v,s.__.__k[s.__i]=s,en(r,s,o),t.__e=t.__=null,s.__e!=n&&Xt(s)}}function Xt(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Xt(e)}function Ct(e){(!e.__d&&(e.__d=!0)&&V.push(e)&&!Ne.__r++||wt!=R.debounceRendering)&&((wt=R.debounceRendering)||qt)(Ne)}function Ne(){for(var e,t=1;V.length;)V.length>t&&V.sort(Gt),e=V.shift(),t=V.length,mr(e);Ne.__r=0}function Jt(e,t,n,r,o,s,c,i,u,a,d){var l,m,h,b,p,_,g,y=r&&r.__k||Ae,w=t.length;for(u=gr(n,t,y,u,w),l=0;l<w;l++)(h=n.__k[l])!=null&&(m=h.__i!=-1&&y[h.__i]||ke,h.__i=l,_=lt(e,h,m,o,s,c,i,u,a,d),b=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&ut(m.ref,null,h),d.push(h.ref,h.__c||b,h)),p==null&&b!=null&&(p=b),(g=!!(4&h.__u))||m.__k===h.__k?u=Qt(h,u,e,g):typeof h.type=="function"&&_!==void 0?u=_:b&&(u=b.nextSibling),h.__u&=-7);return n.__e=p,u}function gr(e,t,n,r,o){var s,c,i,u,a,d=n.length,l=d,m=0;for(e.__k=new Array(o),s=0;s<o;s++)(c=t[s])!=null&&typeof c!="boolean"&&typeof c!="function"?(typeof c=="string"||typeof c=="number"||typeof c=="bigint"||c.constructor==String?c=e.__k[s]=Ee(null,c,null,null,null):Le(c)?c=e.__k[s]=Ee(ee,{children:c},null,null,null):c.constructor===void 0&&c.__b>0?c=e.__k[s]=Ee(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):e.__k[s]=c,u=s+m,c.__=e,c.__b=e.__b+1,i=null,(a=c.__i=yr(c,n,u,l))!=-1&&(l--,(i=n[a])&&(i.__u|=2)),i==null||i.__v==null?(a==-1&&(o>d?m--:o<d&&m++),typeof c.type!="function"&&(c.__u|=4)):a!=u&&(a==u-1?m--:a==u+1?m++:(a>u?m--:m++,c.__u|=4))):e.__k[s]=null;if(l)for(s=0;s<d;s++)(i=n[s])!=null&&(2&i.__u)==0&&(i.__e==r&&(r=te(i)),nn(i,i));return r}function Qt(e,t,n,r){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=Qt(o[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=te(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yr(e,t,n,r){var o,s,c,i=e.key,u=e.type,a=t[n],d=a!=null&&(2&a.__u)==0;if(a===null&&i==null||d&&i==a.key&&u==a.type)return n;if(r>(d?1:0)){for(o=n-1,s=n+1;o>=0||s<t.length;)if((a=t[c=o>=0?o--:s++])!=null&&(2&a.__u)==0&&i==a.key&&u==a.type)return c}return-1}function St(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||vr.test(t)?n:n+"px"}function ve(e,t,n,r,o){var s,c;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||St(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||St(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Yt,"$1")),c=t.toLowerCase(),t=c in e||t=="onFocusOut"||t=="onFocusIn"?c.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=ct,e.addEventListener(t,s?tt:et,s)):e.removeEventListener(t,s?tt:et,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Et(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ct++;else if(t.t<n.u)return;return n(R.event?R.event(t):t)}}}function lt(e,t,n,r,o,s,c,i,u,a){var d,l,m,h,b,p,_,g,y,w,C,P,O,E,N,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),s=[i=t.__e=n.__e]),(d=R.__b)&&d(t);e:if(typeof A=="function")try{if(g=t.props,y="prototype"in A&&A.prototype.render,w=(d=A.contextType)&&r[d.__c],C=d?w?w.props.value:d.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:(y?t.__c=l=new A(g,C):(t.__c=l=new Pe(g,C),l.constructor=A,l.render=wr),w&&w.sub(l),l.state||(l.state={}),l.__n=r,m=l.__d=!0,l.__h=[],l._sb=[]),y&&l.__s==null&&(l.__s=l.state),y&&A.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=j({},l.__s)),j(l.__s,A.getDerivedStateFromProps(g,l.__s))),h=l.props,b=l.state,l.__v=t,m)y&&A.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),y&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(y&&A.getDerivedStateFromProps==null&&g!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,C),t.__v==n.__v||!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,C)===!1){t.__v!=n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(D){D&&(D.__=t)}),Ae.push.apply(l.__h,l._sb),l._sb=[],l.__h.length&&c.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,C),y&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,b,p)})}if(l.context=C,l.props=g,l.__P=e,l.__e=!1,P=R.__r,O=0,y)l.state=l.__s,l.__d=!1,P&&P(t),d=l.render(l.props,l.state,l.context),Ae.push.apply(l.__h,l._sb),l._sb=[];else do l.__d=!1,P&&P(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++O<25);l.state=l.__s,l.getChildContext!=null&&(r=j(j({},r),l.getChildContext())),y&&!m&&l.getSnapshotBeforeUpdate!=null&&(p=l.getSnapshotBeforeUpdate(h,b)),E=d!=null&&d.type===ee&&d.key==null?tn(d.props.children):d,i=Jt(e,Le(E)?E:[E],t,n,r,o,s,c,i,u,a),l.base=t.__e,t.__u&=-161,l.__h.length&&c.push(l),_&&(l.__E=l.__=null)}catch(D){if(t.__v=null,u||s!=null)if(D.then){for(t.__u|=u?160:128;i&&i.nodeType==8&&i.nextSibling;)i=i.nextSibling;s[s.indexOf(i)]=null,t.__e=i}else{for(N=s.length;N--;)at(s[N]);nt(t)}else t.__e=n.__e,t.__k=n.__k,D.then||nt(t);R.__e(D,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):i=t.__e=br(n.__e,t,n,r,o,s,c,u,a);return(d=R.diffed)&&d(t),128&t.__u?void 0:i}function nt(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(nt))}function en(e,t,n){for(var r=0;r<n.length;r++)ut(n[r],n[++r],n[++r]);R.__c&&R.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){R.__e(s,o.__v)}})}function tn(e){return typeof e!="object"||e==null||e.__b>0?e:Le(e)?e.map(tn):j({},e)}function br(e,t,n,r,o,s,c,i,u){var a,d,l,m,h,b,p,_=n.props||ke,g=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(a=0;a<s.length;a++)if((h=s[a])&&"setAttribute"in h==!!y&&(y?h.localName==y:h.nodeType==3)){e=h,s[a]=null;break}}if(e==null){if(y==null)return document.createTextNode(g);e=document.createElementNS(o,y,g.is&&g),i&&(R.__m&&R.__m(t,s),i=!1),s=null}if(y==null)_===g||i&&e.data==g||(e.data=g);else{if(s=s&&ze.call(e.childNodes),!i&&s!=null)for(_={},a=0;a<e.attributes.length;a++)_[(h=e.attributes[a]).name]=h.value;for(a in _)h=_[a],a=="dangerouslySetInnerHTML"?l=h:a=="children"||a in g||a=="value"&&"defaultValue"in g||a=="checked"&&"defaultChecked"in g||ve(e,a,null,h,o);for(a in g)h=g[a],a=="children"?m=h:a=="dangerouslySetInnerHTML"?d=h:a=="value"?b=h:a=="checked"?p=h:i&&typeof h!="function"||_[a]===h||ve(e,a,h,_[a],o);if(d)i||l&&(d.__html==l.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Jt(t.type=="template"?e.content:e,Le(m)?m:[m],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,c,s?s[0]:n.__k&&te(n,0),i,u),s!=null)for(a=s.length;a--;)at(s[a]);i||(a="value",y=="progress"&&b==null?e.removeAttribute("value"):b!=null&&(b!==e[a]||y=="progress"&&!b||y=="option"&&b!=_[a])&&ve(e,a,b,_[a],o),a="checked",p!=null&&p!=e[a]&&ve(e,a,p,_[a],o))}return e}function ut(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){R.__e(o,n)}}function nn(e,t,n){var r,o;if(R.unmount&&R.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||ut(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){R.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&nn(r[o],t,n||typeof e.type!="function");n||at(e.__e),e.__c=e.__=e.__e=void 0}function wr(e,t,n){return this.constructor(e,n)}function Cr(e,t,n){var r,o,s,c;t==document&&(t=document.documentElement),R.__&&R.__(e,t),o=(r=!1)?null:t.__k,s=[],c=[],lt(t,e=t.__k=_r(ee,null,[e]),o||ke,ke,t.namespaceURI,o?null:t.firstChild?ze.call(t.childNodes):null,s,o?o.__e:t.firstChild,r,c),en(s,e,c)}ze=Ae.slice,R={__e:function(e,t,n,r){for(var o,s,c;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),c=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),c=o.__d),c)return o.__E=o}catch(i){e=i}throw e}},Kt=0,Pe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=j({},this.state),typeof e=="function"&&(e=e(j({},n),this.props)),e&&j(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ct(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ct(this))},Pe.prototype.render=ee,V=[],qt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Gt=function(e,t){return e.__v.__b-t.__v.__b},Ne.__r=0,Yt=/(PointerCapture)$|Capture$/i,ct=0,et=Et(!1),tt=Et(!0);var Sr=0;function v(e,t,n,r,o,s){t||(t={});var c,i,u=t;if("ref"in u)for(i in u={},t)i=="ref"?c=t[i]:u[i]=t[i];var a={type:e,props:u,key:n,ref:c,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Sr,__i:-1,__u:0,__source:o,__self:s};if(typeof e=="function"&&(c=e.defaultProps))for(i in c)u[i]===void 0&&(u[i]=c[i]);return R.vnode&&R.vnode(a),a}function dt(...e){return e.filter(Boolean).join(" ")}function rt(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}const Er="_root_hw69b_1",Pr="_neutral_hw69b_17",Rr="_brand_hw69b_30",Or="_ghost_hw69b_43",Pt={root:Er,neutral:Pr,brand:Rr,ghost:Or},He=({variant:e="neutral",...t})=>v("button",{className:dt(Pt.root,Pt[e]),...t}),kr="_root_14l5h_1",Ar="_muted_14l5h_4",Nr="_body_14l5h_8",Tr="_normal_14l5h_14",Ir="_bold_14l5h_18",Dr="_caption_14l5h_23",_e={root:kr,muted:Ar,body:Nr,normal:Tr,bold:Ir,caption:Dr},K=({as:e="span",size:t="body",weight:n="normal",color:r="default",...o})=>v(e??"span",{className:dt(_e.root,_e[t],_e[n],_e[r]),...o}),xr="_root_1wsw7_42",Mr="_noTarget_1wsw7_53",zr="_collapsible_1wsw7_62",Lr="_header_1wsw7_65",$r="_heading_1wsw7_72",Fr="_chevron_1wsw7_78",jr="_open_1wsw7_83",Wr="_settings_1wsw7_89",Br="_footer_1wsw7_103",Ur="_legal_1wsw7_110",Zr="_actions_1wsw7_113",x={root:xr,noTarget:Mr,collapsible:zr,header:Lr,heading:$r,chevron:Fr,open:jr,settings:Wr,footer:Br,legal:Ur,actions:Zr},Vr="_root_mqtha_19",Hr="_header_mqtha_24",Kr="_label_mqtha_33",qr="_actions_mqtha_39",Gr="_chevron_mqtha_45",Yr="_open_mqtha_51",Xr="_description_mqtha_58",Z={root:Vr,header:Hr,label:Kr,actions:qr,chevron:Gr,open:Yr,description:Xr};function k(e,t,n){function r(i,u){if(i._zod||Object.defineProperty(i,"_zod",{value:{def:u,constr:c,traits:new Set},enumerable:!1}),i._zod.traits.has(e))return;i._zod.traits.add(e),t(i,u);const a=c.prototype,d=Object.keys(a);for(let l=0;l<d.length;l++){const m=d[l];m in i||(i[m]=a[m].bind(i))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function c(i){var u;const a=n?.Parent?new s:this;r(a,i),(u=a._zod).deferred??(u.deferred=[]);for(const d of a._zod.deferred)d();return a}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:i=>n?.Parent&&i instanceof n.Parent?!0:i?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class ae extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Jr={};function re(e){return Jr}function Qr(e,t){return typeof t=="bigint"?t.toString():t}function rn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function on(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const Rt=Symbol("evaluating");function $(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Rt)return r===void 0&&(r=Rt,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}const sn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Te(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function eo(e){if(Te(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Te(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function to(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function oe(e){return{}}function no(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function ie(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 ce(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function me(e){return typeof e=="string"?e:e?.message}function se(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=me(e.inst?._zod.def?.error?.(e))??me(t?.error?.(e))??me(n.customError?.(e))??me(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const cn=(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,Qr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ro=k("$ZodError",cn),$e=k("$ZodError",cn,{Parent:Error}),oo=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise)throw new ae;if(c.issues.length){const i=new(o?.Err??e)(c.issues.map(u=>se(u,s,re())));throw sn(i,o?.callee),i}return c.value},so=oo($e),io=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const i=new(o?.Err??e)(c.issues.map(u=>se(u,s,re())));throw sn(i,o?.callee),i}return c.value},co=io($e),ao=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new ae;return s.issues.length?{success:!1,error:new(e??ro)(s.issues.map(c=>se(c,o,re())))}:{success:!0,data:s.value}},an=ao($e),lo=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(c=>se(c,o,re())))}:{success:!0,data:s.value}},ln=lo($e),uo=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},fo=/^-?\d+(?:\.\d+)?$/,po=/^(?:true|false)$/i,ho={major:4,minor:3,patch:6},U=k("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ho;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,i,u)=>{let a=ie(c),d;for(const l of i){if(l._zod.def.when){if(!l._zod.def.when(c))continue}else if(a)continue;const m=c.issues.length,h=l._zod.check(c);if(h instanceof Promise&&u?.async===!1)throw new ae;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,c.issues.length!==m&&(a||(a=ie(c,m)))});else{if(c.issues.length===m)continue;a||(a=ie(c,m))}}return d?d.then(()=>c):c},s=(c,i,u)=>{if(ie(c))return c.aborted=!0,c;const a=o(i,r,u);if(a instanceof Promise){if(u.async===!1)throw new ae;return a.then(d=>e._zod.parse(d,u))}return e._zod.parse(a,u)};e._zod.run=(c,i)=>{if(i.skipChecks)return e._zod.parse(c,i);if(i.direction==="backward"){const a=e._zod.parse({value:c.value,issues:[]},{...i,skipChecks:!0});return a instanceof Promise?a.then(d=>s(d,c,i)):s(a,c,i)}const u=e._zod.parse(c,i);if(u instanceof Promise){if(i.async===!1)throw new ae;return u.then(a=>o(a,r,i))}return o(u,r,i)}}$(e,"~standard",()=>({validate:o=>{try{const s=an(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return ln(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),vo=k("$ZodString",(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??uo(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}}),_o=k("$ZodBoolean",(e,t)=>{U.init(e,t),e._zod.pattern=po,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 Ie(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...ce(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function mo(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=no(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function go(e,t,n,r,o,s){const c=[],i=o.keySet,u=o.catchall._zod,a=u.def.type,d=u.optout==="optional";for(const l in t){if(i.has(l))continue;if(a==="never"){c.push(l);continue}const m=u.run({value:t[l],issues:[]},r);m instanceof Promise?e.push(m.then(h=>Ie(h,n,l,t,d))):Ie(m,n,l,t,d)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const yo=k("$ZodObject",(e,t)=>{if(U.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const i=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...i};return Object.defineProperty(t,"shape",{value:u}),u}})}const r=rn(()=>mo(t));$(e._zod,"propValues",()=>{const i=t.shape,u={};for(const a in i){const d=i[a]._zod;if(d.values){u[a]??(u[a]=new Set);for(const l of d.values)u[a].add(l)}}return u});const o=Te,s=t.catchall;let c;e._zod.parse=(i,u)=>{c??(c=r.value);const a=i.value;if(!o(a))return i.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),i;i.value={};const d=[],l=c.shape;for(const m of c.keys){const h=l[m],b=h._zod.optout==="optional",p=h._zod.run({value:a[m],issues:[]},u);p instanceof Promise?d.push(p.then(_=>Ie(_,i,m,a,b))):Ie(p,i,m,a,b)}return s?go(d,a,i,u,r.value,e):d.length?Promise.all(d).then(()=>i):i}});function kt(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!ie(s));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(s=>s.issues.map(c=>se(c,r,re())))}),t)}const bo=k("$ZodUnion",(e,t)=>{U.init(e,t),$(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),$(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),$(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),$(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>on(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let c=!1;const i=[];for(const u of t.options){const a=u._zod.run({value:o.value,issues:[]},s);if(a instanceof Promise)i.push(a),c=!0;else{if(a.issues.length===0)return a;i.push(a)}}return c?Promise.all(i).then(u=>kt(u,o,e,s)):kt(i,o,e,s)}}),wo=k("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,bo.init(e,t);const n=e._zod.parse;$(e._zod,"propValues",()=>{const o={};for(const s of t.options){const c=s._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[i,u]of Object.entries(c)){o[i]||(o[i]=new Set);for(const a of u)o[i].add(a)}}return o});const r=rn(()=>{const o=t.options,s=new Map;for(const c of o){const i=c._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(const u of i){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,c)}}return s});e._zod.parse=(o,s)=>{const c=o.value;if(!Te(c))return o.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),o;const i=r.value.get(c?.[t.discriminator]);return i?i._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),o)}}),Co=k("$ZodRecord",(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!eo(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],c=t.keyType._zod.values;if(c){n.value={};const i=new Set;for(const a of c)if(typeof a=="string"||typeof a=="number"||typeof a=="symbol"){i.add(typeof a=="number"?a.toString():a);const d=t.valueType._zod.run({value:o[a],issues:[]},r);d instanceof Promise?s.push(d.then(l=>{l.issues.length&&n.issues.push(...ce(a,l.issues)),n.value[a]=l.value})):(d.issues.length&&n.issues.push(...ce(a,d.issues)),n.value[a]=d.value)}let u;for(const a in o)i.has(a)||(u=u??[],u.push(a));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u})}else{n.value={};for(const i of Reflect.ownKeys(o)){if(i==="__proto__")continue;let u=t.keyType._zod.run({value:i,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof i=="string"&&fo.test(i)&&u.issues.length){const l=t.keyType._zod.run({value:Number(i),issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");l.issues.length===0&&(u=l)}if(u.issues.length){t.mode==="loose"?n.value[i]=o[i]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(l=>se(l,r,re())),input:i,path:[i],inst:e});continue}const d=t.valueType._zod.run({value:o[i],issues:[]},r);d instanceof Promise?s.push(d.then(l=>{l.issues.length&&n.issues.push(...ce(i,l.issues)),n.value[u.value]=l.value})):(d.issues.length&&n.issues.push(...ce(i,d.issues)),n.value[u.value]=d.value)}}return s.length?Promise.all(s).then(()=>n):n}}),So=k("$ZodLiteral",(e,t)=>{if(U.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"?Ot(r):r?Ot(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}});function At(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Eo=k("$ZodOptional",(e,t)=>{U.init(e,t),e._zod.optin="optional",e._zod.optout="optional",$(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),$(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${on(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(s=>At(s,n.value)):At(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}});function Po(e,t){return new e({type:"string",...oe()})}function Ro(e,t){return new e({type:"boolean",...oe()})}const G=k("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");U.init(e,t),e.def=t,e.type=t.type,e.parse=(n,r)=>so(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>an(e,n,r),e.parseAsync=async(n,r)=>co(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>ln(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)=>to(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.apply=n=>n(e)}),Oo=k("ZodMiniString",(e,t)=>{vo.init(e,t),G.init(e,t)});function H(e){return Po(Oo)}const ko=k("ZodMiniBoolean",(e,t)=>{_o.init(e,t),G.init(e,t)});function ue(e){return Ro(ko)}const Ao=k("ZodMiniObject",(e,t)=>{yo.init(e,t),G.init(e,t),$(e,"shape",()=>t.shape)});function un(e,t){const n={type:"object",shape:e??{},...oe()};return new Ao(n)}const No=k("ZodMiniDiscriminatedUnion",(e,t)=>{wo.init(e,t),G.init(e,t)});function To(e,t,n){return new No({type:"union",options:t,discriminator:e,...oe()})}const Io=k("ZodMiniRecord",(e,t)=>{Co.init(e,t),G.init(e,t)});function Do(e,t,n){return new Io({type:"record",keyType:e,valueType:t,...oe()})}const xo=k("ZodMiniLiteral",(e,t)=>{So.init(e,t),G.init(e,t)});function dn(e,t){return new xo({type:"literal",values:Array.isArray(e)?e:[e],...oe()})}const Mo=k("ZodMiniOptional",(e,t)=>{Eo.init(e,t),G.init(e,t)});function B(e){return new Mo({type:"optional",innerType:e})}const zo=un({variant:dn("remote"),type:B(H()),src:H(),async:B(ue()),defer:B(ue()),crossorigin:B(H()),integrity:B(H())}),Lo=un({variant:dn("inline"),type:B(H()),async:B(ue()),defer:B(ue()),content:H()}),$o=To("variant",[zo,Lo]);function Fo(e,t){const n=f.createContext(t),r=s=>{const{children:c,...i}=s,u=f.useMemo(()=>i,Object.values(i));return v(n.Provider,{value:u,children:c})};r.displayName=e+"Provider";function o(s){const c=f.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function fe(e,t=[]){let n=[];function r(s,c){const i=f.createContext(c),u=n.length;n=[...n,c];const a=l=>{const{scope:m,children:h,...b}=l,p=m?.[e]?.[u]||i,_=f.useMemo(()=>b,Object.values(b));return v(p.Provider,{value:_,children:h})};a.displayName=s+"Provider";function d(l,m){const h=m?.[e]?.[u]||i,b=f.useContext(h);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${l}\` must be used within \`${s}\``)}return[a,d]}const o=()=>{const s=n.map(c=>f.createContext(c));return function(i){const u=i?.[e]||s;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[r,jo(o,...t)]}function jo(...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(s){const c=r.reduce((i,{useScope:u,scopeName:a})=>{const l=u(s)[`__scope${a}`];return{...i,...l}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Nt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Nt(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Nt(e[o],null)}}}}function I(...e){return f.useCallback(fn(...e),e)}function De(e){const t=Wo(e),n=f.forwardRef((r,o)=>{const{children:s,...c}=r,i=f.Children.toArray(s),u=i.find(Uo);if(u){const a=u.props.children,d=i.map(l=>l===u?f.Children.count(a)>1?f.Children.only(null):f.isValidElement(a)?a.props.children:null:l);return v(t,{...c,ref:o,children:f.isValidElement(a)?f.cloneElement(a,void 0,d):null})}return v(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Wo(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const c=Vo(o),i=Zo(s,o.props);return o.type!==f.Fragment&&(i.ref=r?fn(r,c):c),f.cloneElement(o,i)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Bo=Symbol("radix.slottable");function Uo(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bo}function Zo(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const u=s(...i);return o(...i),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Vo(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 Ho(e){const t=e+"CollectionProvider",[n,r]=fe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=p=>{const{scope:_,children:g}=p,y=S.useRef(null),w=S.useRef(new Map).current;return v(o,{scope:_,itemMap:w,collectionRef:y,children:g})};c.displayName=t;const i=e+"CollectionSlot",u=De(i),a=S.forwardRef((p,_)=>{const{scope:g,children:y}=p,w=s(i,g),C=I(_,w.collectionRef);return v(u,{ref:C,children:y})});a.displayName=i;const d=e+"CollectionItemSlot",l="data-radix-collection-item",m=De(d),h=S.forwardRef((p,_)=>{const{scope:g,children:y,...w}=p,C=S.useRef(null),P=I(_,C),O=s(d,g);return S.useEffect(()=>(O.itemMap.set(C,{ref:C,...w}),()=>{O.itemMap.delete(C)})),v(m,{[l]:"",ref:P,children:y})});h.displayName=d;function b(p){const _=s(e+"CollectionConsumer",p);return S.useCallback(()=>{const y=_.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${l}]`));return Array.from(_.itemMap.values()).sort((O,E)=>w.indexOf(O.ref.current)-w.indexOf(E.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:c,Slot:a,ItemSlot:h},b,r]}function M(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var ne=globalThis?.document?f.useLayoutEffect:()=>{},Ko=f[" useInsertionEffect ".trim().toString()]||ne;function pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=qo({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const l=d.current;l!==i&&console.warn(`${r} is changing from ${l?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,r])}const a=f.useCallback(d=>{if(i){const l=Go(d)?d(e):d;l!==e&&c.current?.(l)}else s(d)},[i,e,s,c]);return[u,a]}function qo({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return Ko(()=>{s.current=t},[t]),f.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Go(e){return typeof e=="function"}var Yo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],T=Yo.reduce((e,t)=>{const n=De(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:c,...i}=o,u=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v(u,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xo(e,t){e&&hr.flushSync(()=>e.dispatchEvent(t))}function Jo(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Fe=e=>{const{present:t,children:n}=e,r=Qo(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=I(r.ref,es(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};Fe.displayName="Presence";function Qo(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),c=e?"mounted":"unmounted",[i,u]=Jo(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const a=ge(r.current);s.current=i==="mounted"?a:"none"},[i]),ne(()=>{const a=r.current,d=o.current;if(d!==e){const m=s.current,h=ge(a);e?u("MOUNT"):h==="none"||a?.display==="none"?u("UNMOUNT"):u(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),ne(()=>{if(t){let a;const d=t.ownerDocument.defaultView??window,l=h=>{const p=ge(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(u("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",a=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},m=h=>{h.target===t&&(s.current=ge(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{d.clearTimeout(a),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(a=>{r.current=a?getComputedStyle(a):null,n(a)},[])}}function ge(e){return e?.animationName||"none"}function es(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 ts=f[" useId ".trim().toString()]||(()=>{}),ns=0;function le(e){const[t,n]=f.useState(ts());return ne(()=>{n(r=>r??String(ns++))},[e]),e||(t?`radix-${t}`:"")}var je="Collapsible",[rs,pn]=fe(je),[os,ft]=rs(je),hn=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:c,...i}=e,[u,a]=pe({prop:r,defaultProp:o??!1,onChange:c,caller:je});return v(os,{scope:n,disabled:s,contentId:le(),open:u,onOpenToggle:f.useCallback(()=>a(d=>!d),[a]),children:v(T.div,{"data-state":ht(u),"data-disabled":s?"":void 0,...i,ref:t})})});hn.displayName=je;var vn="CollapsibleTrigger",_n=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ft(vn,n);return v(T.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ht(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:M(e.onClick,o.onOpenToggle)})});_n.displayName=vn;var pt="CollapsibleContent",mn=f.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ft(pt,e.__scopeCollapsible);return v(Fe,{present:n||o.open,children:({present:s})=>v(ss,{...r,ref:t,present:s})})});mn.displayName=pt;var ss=f.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,c=ft(pt,n),[i,u]=f.useState(r),a=f.useRef(null),d=I(t,a),l=f.useRef(0),m=l.current,h=f.useRef(0),b=h.current,p=c.open||i,_=f.useRef(p),g=f.useRef(void 0);return f.useEffect(()=>{const y=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(y)},[]),ne(()=>{const y=a.current;if(y){g.current=g.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();l.current=w.height,h.current=w.width,_.current||(y.style.transitionDuration=g.current.transitionDuration,y.style.animationName=g.current.animationName),u(r)}},[c.open,r]),v(T.div,{"data-state":ht(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!p,...s,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:p&&o})});function ht(e){return e?"open":"closed"}var gn=hn,yn=_n,bn=mn,is=f.createContext(void 0);function cs(e){const t=f.useContext(is);return e||t||"ltr"}var z="Accordion",as=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[vt,ls,us]=Ho(z),[We]=fe(z,[us,pn]),_t=pn(),wn=S.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return v(vt.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?v(hs,{...s,ref:t}):v(ps,{...o,ref:t})})});wn.displayName=z;var[Cn,ds]=We(z),[Sn,fs]=We(z,{collapsible:!1}),ps=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...c}=e,[i,u]=pe({prop:n,defaultProp:r??"",onChange:o,caller:z});return v(Cn,{scope:e.__scopeAccordion,value:S.useMemo(()=>i?[i]:[],[i]),onItemOpen:u,onItemClose:S.useCallback(()=>s&&u(""),[s,u]),children:v(Sn,{scope:e.__scopeAccordion,collapsible:s,children:v(En,{...c,ref:t})})})}),hs=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[c,i]=pe({prop:n,defaultProp:r??[],onChange:o,caller:z}),u=S.useCallback(d=>i((l=[])=>[...l,d]),[i]),a=S.useCallback(d=>i((l=[])=>l.filter(m=>m!==d)),[i]);return v(Cn,{scope:e.__scopeAccordion,value:c,onItemOpen:u,onItemClose:a,children:v(Sn,{scope:e.__scopeAccordion,collapsible:!0,children:v(En,{...s,ref:t})})})}),[vs,Be]=We(z),En=S.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...c}=e,i=S.useRef(null),u=I(i,t),a=ls(n),l=cs(o)==="ltr",m=M(e.onKeyDown,h=>{if(!as.includes(h.key))return;const b=h.target,p=a().filter(N=>!N.ref.current?.disabled),_=p.findIndex(N=>N.ref.current===b),g=p.length;if(_===-1)return;h.preventDefault();let y=_;const w=0,C=g-1,P=()=>{y=_+1,y>C&&(y=w)},O=()=>{y=_-1,y<w&&(y=C)};switch(h.key){case"Home":y=w;break;case"End":y=C;break;case"ArrowRight":s==="horizontal"&&(l?P():O());break;case"ArrowDown":s==="vertical"&&P();break;case"ArrowLeft":s==="horizontal"&&(l?O():P());break;case"ArrowUp":s==="vertical"&&O();break}const E=y%g;p[E].ref.current?.focus()});return v(vs,{scope:n,disabled:r,direction:o,orientation:s,children:v(vt.Slot,{scope:n,children:v(T.div,{...c,"data-orientation":s,ref:u,onKeyDown:r?void 0:m})})})}),xe="AccordionItem",[_s,mt]=We(xe),Pn=S.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=Be(xe,n),c=ds(xe,n),i=_t(n),u=le(),a=r&&c.value.includes(r)||!1,d=s.disabled||e.disabled;return v(_s,{scope:n,open:a,disabled:d,triggerId:u,children:v(gn,{"data-orientation":s.orientation,"data-state":Nn(a),...i,...o,ref:t,disabled:d,open:a,onOpenChange:l=>{l?c.onItemOpen(r):c.onItemClose(r)}})})});Pn.displayName=xe;var Rn="AccordionHeader",ms=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Be(z,n),s=mt(Rn,n);return v(T.h3,{"data-orientation":o.orientation,"data-state":Nn(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});ms.displayName=Rn;var ot="AccordionTrigger",On=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Be(z,n),s=mt(ot,n),c=fs(ot,n),i=_t(n);return v(vt.ItemSlot,{scope:n,children:v(yn,{"aria-disabled":s.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...i,...r,ref:t})})});On.displayName=ot;var kn="AccordionContent",An=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Be(z,n),s=mt(kn,n),c=_t(n);return v(bn,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...c,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});An.displayName=kn;function Nn(e){return e?"open":"closed"}var gs=wn,ys=Pn,Tt=On,bs=An;const Tn=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const ws=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Cs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const It=e=>{const t=Cs(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ss={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 Es=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Ps=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:c,...i},u)=>S.createElement("svg",{ref:u,...Ss,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Tn("lucide",o),...!s&&!Es(i)&&{"aria-hidden":"true"},...i},[...c.map(([a,d])=>S.createElement(a,d)),...Array.isArray(s)?s:[s]]));const In=(e,t)=>{const n=S.forwardRef(({className:r,...o},s)=>S.createElement(Ps,{ref:s,iconNode:t,className:Tn(`lucide-${ws(It(e))}`,`lucide-${e}`,r),...o}));return n.displayName=It(e),n};const Rs=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Os=In("chevron-down",Rs);const ks=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],As=In("chevron-up",ks);function Ns(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ts(e){const[t,n]=f.useState(void 0);return ne(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,i;if("borderBoxSize"in s){const u=s.borderBoxSize,a=Array.isArray(u)?u[0]:u;c=a.inlineSize,i=a.blockSize}else c=e.offsetWidth,i=e.offsetHeight;n({width:c,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ue="Switch",[Is]=fe(Ue),[Ds,xs]=Is(Ue),Dn=f.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:c,disabled:i,value:u="on",onCheckedChange:a,form:d,...l}=e,[m,h]=f.useState(null),b=I(t,w=>h(w)),p=f.useRef(!1),_=m?d||!!m.closest("form"):!0,[g,y]=pe({prop:o,defaultProp:s??!1,onChange:a,caller:Ue});return v(Ds,{scope:n,checked:g,disabled:i,children:[v(T.button,{type:"button",role:"switch","aria-checked":g,"aria-required":c,"data-state":Ln(g),"data-disabled":i?"":void 0,disabled:i,value:u,...l,ref:b,onClick:M(e.onClick,w=>{y(C=>!C),_&&(p.current=w.isPropagationStopped(),p.current||w.stopPropagation())})}),_&&v(zn,{control:m,bubbles:!p.current,name:r,value:u,checked:g,required:c,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});Dn.displayName=Ue;var xn="SwitchThumb",Mn=f.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=xs(xn,n);return v(T.span,{"data-state":Ln(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Mn.displayName=xn;var Ms="SwitchBubbleInput",zn=f.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const c=f.useRef(null),i=I(c,s),u=Ns(n),a=Ts(t);return f.useEffect(()=>{const d=c.current;if(!d)return;const l=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(l,"checked").set;if(u!==n&&h){const b=new Event("click",{bubbles:r});h.call(d,n),d.dispatchEvent(b)}},[u,n,r]),v("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:i,style:{...o.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});zn.displayName=Ms;function Ln(e){return e?"checked":"unchecked"}var zs=Dn,Ls=Mn;const $s="_root_dibqz_1",Fs="_thumb_dibqz_38",ye={root:$s,switch:"_switch_dibqz_8",thumb:Fs},js=({label:e,id:t,...n})=>v("div",{className:ye.root,children:[e&&v(K,{className:ye.label,as:"label",htmlFor:t,children:e}),v(zs,{className:ye.switch,...n,children:v(Ls,{className:ye.thumb})})]}),Ws=Do(H(),ue()),$n=S.createContext(null),Bs=({children:e,items:t,localStorageKey:n})=>{function r(b){const p=localStorage.getItem(b);if(!p)return null;const{success:_,data:g}=Ws.safeParse(JSON.parse(p));return _?g:null}const o=S.useMemo(()=>Object.fromEntries(t.map(b=>[b.value,b.defaultSelected??!1])),[t]),[s,c]=S.useState(r(n)??o),[i,u]=S.useState(r(n));function a(b,p){const _=s?{...s,[b]:p}:{[b]:p};c(_)}S.useEffect(()=>{let b=[];i!==null&&(b=Object.entries(i).filter(([_,g])=>g).map(([_])=>_));const p=t.filter(_=>b.includes(_.value));for(const _ of t){const g=document.head.querySelector(`#${_.value}`);g&&g.remove()}for(const _ of p){const g=document.createElement("script");if(g.id=_.value,!_.script){_.required||console.warn("CookieBanner: Missing script for",_.value);continue}const{success:y,data:w}=$o.safeParse(_.script);if(!y){console.error("CookieBanner: Invalid script definition for",_.value);continue}switch(g.type=w.type??"text/javascript",g.async=w.async??!1,g.defer=w.defer??!1,w.variant){case"inline":g.textContent=w.content;break;case"remote":g.src=w.src,g.crossOrigin=w.crossorigin??null,g.integrity=w.integrity??"";break}document.head.appendChild(g)}},[i,t]);function d(b){u(b),localStorage.setItem(n,JSON.stringify(b))}const l=S.useCallback(()=>{const b=Object.fromEntries(t.map(p=>[p.value,!1]));c(b),d(b)},[t]),m=S.useCallback(()=>{d(s)},[s]),h=S.useMemo(()=>{if(!i)return!1;const b=Object.keys(i);return t.map(_=>_.value).every(_=>b.includes(_))},[i,t]);return v($n.Provider,{value:{selection:s,toggleSelection:a,onDeclineAll:l,onSave:m,selectionTaken:h},children:e})};function Fn(){const e=S.useContext($n);if(!e)throw new Error("useSelection must be used within a SelectionProvider");return e}const Us=({value:e,label:t,sublabel:n,required:r=!1,description:o,openItem:s})=>{const{toggleSelection:c,selection:i}=Fn(),u=S.useMemo(()=>i?.[e]??!1,[i,e]);S.useEffect(()=>{c(e,u)},[e,u]);const a=S.useMemo(()=>r?!0:u,[r,u]),d=S.useMemo(()=>m=>r?()=>{}:c(e,m),[r,c,e]),l=S.useMemo(()=>r,[r]);return v(ys,{value:e,className:Z.root,children:[v("div",{className:Z.header,children:[v(Tt,{asChild:!0,children:v("div",{className:Z.label,children:[v(K,{weight:"bold",children:t}),n&&v(K,{size:"caption",color:"muted",children:n})]})}),v("div",{className:Z.actions,children:[v(js,{checked:a,onCheckedChange:d,disabled:l}),v(Tt,{asChild:!0,children:v(Os,{size:16,className:rt({[Z.chevron]:!0,[Z.open]:s===e})})})]})]}),o&&v(bs,{className:Z.description,children:v(K,{size:"caption",dangerouslySetInnerHTML:{__html:o}})})]})};function de(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function Zs(e,t=globalThis?.document){const n=de(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Vs="DismissableLayer",st="dismissableLayer.update",Hs="dismissableLayer.pointerDownOutside",Ks="dismissableLayer.focusOutside",Dt,jn=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wn=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:i,...u}=e,a=f.useContext(jn),[d,l]=f.useState(null),m=d?.ownerDocument??globalThis?.document,[,h]=f.useState({}),b=I(t,E=>l(E)),p=Array.from(a.layers),[_]=[...a.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(_),y=d?p.indexOf(d):-1,w=a.layersWithOutsidePointerEventsDisabled.size>0,C=y>=g,P=Ys(E=>{const N=E.target,A=[...a.branches].some(D=>D.contains(N));!C||A||(o?.(E),c?.(E),E.defaultPrevented||i?.())},m),O=Xs(E=>{const N=E.target;[...a.branches].some(D=>D.contains(N))||(s?.(E),c?.(E),E.defaultPrevented||i?.())},m);return Zs(E=>{y===a.layers.size-1&&(r?.(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},m),f.useEffect(()=>{if(d)return n&&(a.layersWithOutsidePointerEventsDisabled.size===0&&(Dt=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),a.layersWithOutsidePointerEventsDisabled.add(d)),a.layers.add(d),xt(),()=>{n&&a.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Dt)}},[d,m,n,a]),f.useEffect(()=>()=>{d&&(a.layers.delete(d),a.layersWithOutsidePointerEventsDisabled.delete(d),xt())},[d,a]),f.useEffect(()=>{const E=()=>h({});return document.addEventListener(st,E),()=>document.removeEventListener(st,E)},[]),v(T.div,{...u,ref:b,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:M(e.onFocusCapture,O.onFocusCapture),onBlurCapture:M(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:M(e.onPointerDownCapture,P.onPointerDownCapture)})});Wn.displayName=Vs;var qs="DismissableLayerBranch",Gs=f.forwardRef((e,t)=>{const n=f.useContext(jn),r=f.useRef(null),o=I(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),v(T.div,{...e,ref:o})});Gs.displayName=qs;function Ys(e,t=globalThis?.document){const n=de(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let u=function(){Bn(Hs,n,a,{discrete:!0})};const a={originalEvent:i};i.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},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xs(e,t=globalThis?.document){const n=de(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Bn(Ks,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xt(){const e=new CustomEvent(st);document.dispatchEvent(e)}function Bn(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Xo(o,s):o.dispatchEvent(s)}var Ke="focusScope.autoFocusOnMount",qe="focusScope.autoFocusOnUnmount",Mt={bubbles:!1,cancelable:!0},Js="FocusScope",Un=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[i,u]=f.useState(null),a=de(o),d=de(s),l=f.useRef(null),m=I(t,p=>u(p)),h=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let p=function(w){if(h.paused||!i)return;const C=w.target;i.contains(C)?l.current=C:W(l.current,{select:!0})},_=function(w){if(h.paused||!i)return;const C=w.relatedTarget;C!==null&&(i.contains(C)||W(l.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const P of w)P.removedNodes.length>0&&W(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",_);const y=new MutationObserver(g);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",_),y.disconnect()}}},[r,i,h.paused]),f.useEffect(()=>{if(i){Lt.add(h);const p=document.activeElement;if(!i.contains(p)){const g=new CustomEvent(Ke,Mt);i.addEventListener(Ke,a),i.dispatchEvent(g),g.defaultPrevented||(Qs(oi(Zn(i)),{select:!0}),document.activeElement===p&&W(i))}return()=>{i.removeEventListener(Ke,a),setTimeout(()=>{const g=new CustomEvent(qe,Mt);i.addEventListener(qe,d),i.dispatchEvent(g),g.defaultPrevented||W(p??document.body,{select:!0}),i.removeEventListener(qe,d),Lt.remove(h)},0)}}},[i,a,d,h]);const b=f.useCallback(p=>{if(!n&&!r||h.paused)return;const _=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(_&&g){const y=p.currentTarget,[w,C]=ei(y);w&&C?!p.shiftKey&&g===C?(p.preventDefault(),n&&W(w,{select:!0})):p.shiftKey&&g===w&&(p.preventDefault(),n&&W(C,{select:!0})):g===y&&p.preventDefault()}},[n,r,h.paused]);return v(T.div,{tabIndex:-1,...c,ref:m,onKeyDown:b})});Un.displayName=Js;function Qs(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(W(r,{select:t}),document.activeElement!==n)return}function ei(e){const t=Zn(e),n=zt(t,e),r=zt(t.reverse(),e);return[n,r]}function Zn(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 zt(e,t){for(const n of e)if(!ti(n,{upTo:t}))return n}function ti(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 ni(e){return e instanceof HTMLInputElement&&"select"in e}function W(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ni(e)&&t&&e.select()}}var Lt=ri();function ri(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$t(e,t),e.unshift(t)},remove(t){e=$t(e,t),e[0]?.resume()}}}function $t(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function oi(e){return e.filter(t=>t.tagName!=="A")}var Ge=0;function si(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ft()),document.body.insertAdjacentElement("beforeend",e[1]??Ft()),Ge++,()=>{Ge===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ge--}},[])}function Ft(){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 L=function(){return L=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},L.apply(this,arguments)};function Vn(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 ii(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Re="right-scroll-bar-position",Oe="width-before-scroll-bar",ci="with-scroll-bars-hidden",ai="--removed-body-scroll-bar-size";function Ye(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function li(e,t){var n=S.useState(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 ui=typeof window<"u"?f.useLayoutEffect:f.useEffect,jt=new WeakMap;function di(e,t){var n=li(null,function(r){return e.forEach(function(o){return Ye(o,r)})});return ui(function(){var r=jt.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(i){s.has(i)||Ye(i,null)}),s.forEach(function(i){o.has(i)||Ye(i,c)})}jt.set(n,e)},[e]),n}function fi(e){return e}function pi(e,t){t===void 0&&(t=fi);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(s){var c=t(s,r);return n.push(c),function(){n=n.filter(function(i){return i!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var i=n;n=[],i.forEach(s),c=n}var u=function(){var d=c;c=[],d.forEach(s)},a=function(){return Promise.resolve().then(u)};a(),n={push:function(d){c.push(d),a()},filter:function(d){return c=c.filter(d),n}}}};return o}function hi(e){e===void 0&&(e={});var t=pi(null);return t.options=L({async:!0,ssr:!1},e),t}var Hn=function(e){var t=e.sideCar,n=Vn(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 f.createElement(r,L({},n))};Hn.isSideCarExport=!0;function vi(e,t){return e.useMedium(t),Hn}var Kn=hi(),Xe=function(){},Ze=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Xe,onWheelCapture:Xe,onTouchMoveCapture:Xe}),o=r[0],s=r[1],c=e.forwardProps,i=e.children,u=e.className,a=e.removeScrollBar,d=e.enabled,l=e.shards,m=e.sideCar,h=e.noRelative,b=e.noIsolation,p=e.inert,_=e.allowPinchZoom,g=e.as,y=g===void 0?"div":g,w=e.gapMode,C=Vn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,O=di([n,t]),E=L(L({},C),o);return f.createElement(f.Fragment,null,d&&f.createElement(P,{sideCar:Kn,removeScrollBar:a,shards:l,noRelative:h,noIsolation:b,inert:p,setCallbacks:s,allowPinchZoom:!!_,lockRef:n,gapMode:w}),c?f.cloneElement(f.Children.only(i),L(L({},E),{ref:O})):f.createElement(y,L({},E,{className:u,ref:O}),i))});Ze.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ze.classNames={fullWidth:Oe,zeroRight:Re};var _i=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mi(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_i();return t&&e.setAttribute("nonce",t),e}function gi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mi())&&(gi(t,n),yi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wi=function(){var e=bi();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qn=function(){var e=wi(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ci={left:0,top:0,right:0,gap:0},Je=function(e){return parseInt(e||"",10)||0},Si=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[Je(n),Je(r),Je(o)]},Ei=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ci;var t=Si(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])}},Pi=qn(),Q="data-scroll-locked",Ri=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(ci,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("preact");var Jr=0;function p(e,t,n,r,o,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:--Jr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(c=e.defaultProps))for(s in c)a[s]===void 0&&(a[s]=c[s]);return h.options.vnode&&h.options.vnode(u),u}var V,O,et,$t,de=0,Cn=[],R=h.options,Lt=R.__b,Ft=R.__r,jt=R.diffed,Ut=R.__c,Wt=R.unmount,Bt=R.__;function re(e,t){R.__h&&R.__h(O,e,de||t),de=0;var n=O.__H||(O.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function I(e){return de=1,Pe(wn,e)}function Pe(e,t,n){var r=re(V++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):wn(void 0,t),function(s){var a=r.__N?r.__N[0]:r.__[0],u=r.t(a,s);a!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=O,!O.__f)){var o=function(s,a,u){if(!r.__c.__H)return!0;var l=r.__c.__H.__.filter(function(_){return _.__c});if(l.every(function(_){return!_.__N}))return!i||i.call(this,s,a,u);var d=r.__c.props!==s;return l.some(function(_){if(_.__N){var g=_.__[0];_.__=_.__N,_.__N=void 0,g!==_.__[0]&&(d=!0)}}),i&&i.call(this,s,a,u)||d};O.__f=!0;var i=O.shouldComponentUpdate,c=O.componentWillUpdate;O.componentWillUpdate=function(s,a,u){if(this.__e){var l=i;i=void 0,o(s,a,u),i=l}c&&c.call(this,s,a,u)},O.shouldComponentUpdate=o}return r.__N||r.__}function P(e,t){var n=re(V++,3);!R.__s&&yt(n.__H,t)&&(n.__=e,n.u=t,O.__H.__h.push(n))}function X(e,t){var n=re(V++,4);!R.__s&&yt(n.__H,t)&&(n.__=e,n.u=t,O.__h.push(n))}function E(e){return de=5,D(function(){return{current:e}},[])}function ht(e,t,n){de=6,X(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 D(e,t){var n=re(V++,7);return yt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function M(e,t){return de=8,D(function(){return e},t)}function q(e){var t=O.context[e.__c],n=re(V++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(O)),t.props.value):e.__}function mt(e,t){R.useDebugValue&&R.useDebugValue(t?t(e):e)}function Qr(e){var t=re(V++,10),n=I();return t.__=e,O.componentDidCatch||(O.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function gt(){var e=re(V++,11);if(!e.__){for(var t=O.__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 eo(){for(var e;e=Cn.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some($e),t.__h.some(lt),t.__h=[]}catch(n){t.__h=[],R.__e(n,e.__v)}}}R.__b=function(e){O=null,Lt&&Lt(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Bt&&Bt(e,t)},R.__r=function(e){Ft&&Ft(e),V=0;var t=(O=e.__c).__H;t&&(et===O?(t.__h=[],O.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some($e),t.__h.some(lt),t.__h=[],V=0)),et=O},R.diffed=function(e){jt&&jt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Cn.push(t)!==1&&$t===R.requestAnimationFrame||(($t=R.requestAnimationFrame)||to)(eo)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),et=O=null},R.__c=function(e,t){t.some(function(n){try{n.__h.some($e),n.__h=n.__h.filter(function(r){return!r.__||lt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],R.__e(r,n.__v)}}),Ut&&Ut(e,t)},R.unmount=function(e){Wt&&Wt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{$e(r)}catch(o){t=o}}),n.__H=void 0,t&&R.__e(t,n.__v))};var Ht=typeof requestAnimationFrame=="function";function to(e){var t,n=function(){clearTimeout(r),Ht&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ht&&(t=requestAnimationFrame(n))}function $e(e){var t=O,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),O=t}function lt(e){var t=O;e.__c=e.__(),O=t}function yt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function wn(e,t){return typeof t=="function"?t(e):t}function En(e,t){for(var n in t)e[n]=t[n];return e}function dt(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 bt(e,t){var n=t(),r=I({t:{__:n,u:t}}),o=r[0].t,i=r[1];return X(function(){o.__=n,o.u=t,tt(o)&&i({t:o})},[e,n,t]),P(function(){return tt(o)&&i({t:o}),e(function(){tt(o)&&i({t:o})})},[e]),n}function tt(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 wt(e){return e}function Et(){return[!1,Ct]}var St=X;function je(e,t){this.props=e,this.context=t}function Sn(e,t){function n(o){var i=this.props.ref,c=i==o.ref;return!c&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!c:dt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,h.createElement(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(je.prototype=new h.Component).isPureReactComponent=!0,je.prototype.shouldComponentUpdate=function(e,t){return dt(this.props,e)||dt(this.state,t)};var Zt=h.options.__b;h.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zt&&Zt(e)};var no=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function N(e){function t(n){var r=En({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=no,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Vt=function(e,t){return e==null?null:h.toChildArray(h.toChildArray(e).map(t))},Z={map:Vt,forEach:Vt,count:function(e){return e?h.toChildArray(e).length:0},only:function(e){var t=h.toChildArray(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:h.toChildArray},ro=h.options.__e;h.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)}ro(e,t,n,r)};var Kt=h.options.unmount;function Pn(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=En({},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 Pn(r,t,n)})),e}function Nn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Nn(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 be(){this.__u=0,this.o=null,this.__b=null}function On(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function An(e){var t,n,r,o=null;function i(c){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?h.createElement(o,c):null}return i.displayName="Lazy",i.__f=!0,i}function ue(){this.i=null,this.l=null}h.options.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Kt&&Kt(e)},(be.prototype=new h.Component).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=On(r.__v),i=!1,c=function(){i||r.__z||(i=!0,n.__R=null,o?o(a):a())};n.__R=c;var s=n.__P;n.__P=null;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Nn(u,u.__c.__P,u.__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(c,c)},be.prototype.componentWillUnmount=function(){this.o=[]},be.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]=Pn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&h.createElement(h.Fragment,null,e.fallback);return o&&(o.__u&=-33),[h.createElement(h.Fragment,null,t.__a?null:e.children),o]};var qt=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 oo(e){return this.getChildContext=function(){return e.context},e.children}function io(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){h.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)}}}h.render(h.createElement(oo,{context:t.context},e.__v),t.v)}function Rn(e,t){var n=h.createElement(io,{__v:e,h:t});return n.containerInfo=t,n}(ue.prototype=new h.Component).__a=function(e){var t=this,n=On(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),qt(t,e,r)):o()};n?n(i):i()}},ue.prototype.render=function(e){this.i=null,this.l=new Map;var t=h.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},ue.prototype.componentDidUpdate=ue.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){qt(e,n,t)})};var In=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,so=/^(?: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]/,co=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ao=/[A-Z0-9]/g,uo=typeof document<"u",lo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Tn(e,t,n){return t.__k==null&&(t.textContent=""),h.render(e,t),typeof n=="function"&&n(),e?e.__c:null}function kn(e,t,n){return h.hydrate(e,t),typeof n=="function"&&n(),e?e.__c:null}h.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(h.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 Gt=h.options.event;function fo(){}function po(){return this.cancelBubble}function _o(){return this.defaultPrevented}h.options.event=function(e){return Gt&&(e=Gt(e)),e.persist=fo,e.isPropagationStopped=po,e.isDefaultPrevented=_o,e.nativeEvent=e};var Pt,vo={enumerable:!1,configurable:!0,get:function(){return this.class}},Yt=h.options.vnode;h.options.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var c in n){var s=n[c];if(!(c==="value"&&"defaultValue"in n&&s==null||uo&&c==="children"&&r==="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"||r!=="input"&&r!=="textarea"||lo(n.type)?a==="onfocus"?c="onfocusin":a==="onblur"?c="onfocusout":co.test(c)&&(c=a):a=c="oninput":i&&so.test(c)?c=c.replace(ao,"-$&").toLowerCase():s===null&&(s=void 0),a==="oninput"&&o[c=a]&&(c="oninputCapture"),o[c]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=h.toChildArray(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=h.toChildArray(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",vo)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=In,Yt&&Yt(e)};var Xt=h.options.__r;h.options.__r=function(e){Xt&&Xt(e),Pt=e.__c};var Jt=h.options.diffed;h.options.diffed=function(e){Jt&&Jt(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),Pt=null};var Dn={ReactCurrentDispatcher:{current:{readContext:function(e){return Pt.__n[e.__c].props.value},useCallback:M,useContext:q,useDebugValue:mt,useDeferredValue:wt,useEffect:P,useId:gt,useImperativeHandle:ht,useInsertionEffect:St,useLayoutEffect:X,useMemo:D,useReducer:Pe,useRef:E,useState:I,useSyncExternalStore:bt,useTransition:Et}}},ho="18.3.1";function xn(e){return h.createElement.bind(null,e)}function K(e){return!!e&&e.$$typeof===In}function Mn(e){return K(e)&&e.type===h.Fragment}function zn(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function pe(e){return K(e)?h.cloneElement.apply(null,arguments):e}function $n(e){return!!e.__k&&(h.render(null,e),!0)}function Ln(e){return e&&(e.base||e.nodeType===1&&e)||null}var Fn=function(e,t){return e(t)},Nt=function(e,t){return e(t)},jn=h.Fragment,Un=K,T={useState:I,useId:gt,useReducer:Pe,useEffect:P,useLayoutEffect:X,useInsertionEffect:St,useTransition:Et,useDeferredValue:wt,useSyncExternalStore:bt,startTransition:Ct,useRef:E,useImperativeHandle:ht,useMemo:D,useCallback:M,useContext:q,useDebugValue:mt,version:"18.3.1",Children:Z,render:Tn,hydrate:kn,unmountComponentAtNode:$n,createPortal:Rn,createElement:h.createElement,createContext:h.createContext,createFactory:xn,cloneElement:pe,createRef:h.createRef,Fragment:h.Fragment,isValidElement:K,isElement:Un,isFragment:Mn,isMemo:zn,findDOMNode:Ln,Component:h.Component,PureComponent:je,memo:Sn,forwardRef:N,flushSync:Nt,unstable_batchedUpdates:Fn,StrictMode:jn,Suspense:be,SuspenseList:ue,lazy:An,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Dn};const Wn=Object.freeze(Object.defineProperty({__proto__:null,Children:Z,Component:h.Component,Fragment:h.Fragment,PureComponent:je,StrictMode:jn,Suspense:be,SuspenseList:ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Dn,cloneElement:pe,createContext:h.createContext,createElement:h.createElement,createFactory:xn,createPortal:Rn,createRef:h.createRef,default:T,findDOMNode:Ln,flushSync:Nt,forwardRef:N,hydrate:kn,isElement:Un,isFragment:Mn,isMemo:zn,isValidElement:K,lazy:An,memo:Sn,render:Tn,startTransition:Ct,unmountComponentAtNode:$n,unstable_batchedUpdates:Fn,useCallback:M,useContext:q,useDebugValue:mt,useDeferredValue:wt,useEffect:P,useErrorBoundary:Qr,useId:gt,useImperativeHandle:ht,useInsertionEffect:St,useLayoutEffect:X,useMemo:D,useReducer:Pe,useRef:E,useState:I,useSyncExternalStore:bt,useTransition:Et,version:ho},Symbol.toStringTag,{value:"Module"}));function Ot(...e){return e.filter(Boolean).join(" ")}function ft(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}const mo="_root_hw69b_1",go="_neutral_hw69b_17",yo="_brand_hw69b_30",bo="_ghost_hw69b_43",Qt={root:mo,neutral:go,brand:yo,ghost:bo},nt=({variant:e="neutral",...t})=>p("button",{className:Ot(Qt.root,Qt[e]),...t}),Co="_root_14l5h_1",wo="_muted_14l5h_4",Eo="_body_14l5h_8",So="_normal_14l5h_14",Po="_bold_14l5h_18",No="_caption_14l5h_23",Re={root:Co,muted:wo,body:Eo,normal:So,bold:Po,caption:No},te=({as:e="span",size:t="body",weight:n="normal",color:r="default",...o})=>p(e??"span",{className:Ot(Re.root,Re[t],Re[n],Re[r]),...o}),Oo="_root_1wsw7_42",Ao="_noTarget_1wsw7_53",Ro="_collapsible_1wsw7_62",Io="_header_1wsw7_65",To="_heading_1wsw7_72",ko="_chevron_1wsw7_78",Do="_open_1wsw7_83",xo="_settings_1wsw7_89",Mo="_footer_1wsw7_103",zo="_legal_1wsw7_110",$o="_actions_1wsw7_113",F={root:Oo,noTarget:Ao,collapsible:Ro,header:Io,heading:To,chevron:ko,open:Do,settings:xo,footer:Mo,legal:zo,actions:$o},Lo="_root_mqtha_19",Fo="_header_mqtha_24",jo="_label_mqtha_33",Uo="_actions_mqtha_39",Wo="_chevron_mqtha_45",Bo="_open_mqtha_51",Ho="_description_mqtha_58",Q={root:Lo,header:Fo,label:jo,actions:Uo,chevron:Wo,open:Bo,description:Ho};function x(e,t,n){function r(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 _=l[d];_ in s||(s[_]=u[_].bind(s))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function c(s){var a;const u=n?.Parent?new i:this;r(u,s),(a=u._zod).deferred??(a.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(c,"init",{value:r}),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 Zo={};function _e(e){return Zo}function Vo(e,t){return typeof t=="bigint"?t.toString():t}function Bn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Hn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const en=Symbol("evaluating");function B(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==en)return r===void 0&&(r=en,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}const Zn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ue(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ko(e){if(Ue(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Ue(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function tn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function ve(e){return{}}function Go(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function ge(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 ye(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ie(e){return typeof e=="string"?e:e?.message}function he(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Ie(e.inst?._zod.def?.error?.(e))??Ie(t?.error?.(e))??Ie(n.customError?.(e))??Ie(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const Vn=(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,Vo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Yo=x("$ZodError",Vn),Ve=x("$ZodError",Vn,{Parent:Error}),Xo=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{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(o?.Err??e)(c.issues.map(a=>he(a,i,_e())));throw Zn(s,o?.callee),s}return c.value},Jo=Xo(Ve),Qo=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{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(o?.Err??e)(c.issues.map(a=>he(a,i,_e())));throw Zn(s,o?.callee),s}return c.value},ei=Qo(Ve),ti=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 Ce;return i.issues.length?{success:!1,error:new(e??Yo)(i.issues.map(c=>he(c,o,_e())))}:{success:!0,data:i.value}},Kn=ti(Ve),ni=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(c=>he(c,o,_e())))}:{success:!0,data:i.value}},qn=ni(Ve),ri=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},oi=/^-?\d+(?:\.\d+)?$/,ii=/^(?:true|false)$/i,si={major:4,minor:3,patch:6},J=x("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=si;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=(c,s,a)=>{let u=ge(c),l;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(c))continue}else if(u)continue;const _=c.issues.length,g=d._zod.check(c);if(g instanceof Promise&&a?.async===!1)throw new Ce;if(l||g instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await g,c.issues.length!==_&&(u||(u=ge(c,_)))});else{if(c.issues.length===_)continue;u||(u=ge(c,_))}}return l?l.then(()=>c):c},i=(c,s,a)=>{if(ge(c))return c.aborted=!0,c;const u=o(s,r,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=>o(u,r,s))}return o(a,r,s)}}B(e,"~standard",()=>({validate:o=>{try{const i=Kn(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return qn(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),ci=x("$ZodString",(e,t)=>{J.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ri(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}}),ai=x("$ZodBoolean",(e,t)=>{J.init(e,t),e._zod.pattern=ii,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 We(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...ye(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function ui(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=Go(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function li(e,t,n,r,o,i){const c=[],s=o.keySet,a=o.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 _=a.run({value:t[d],issues:[]},r);_ instanceof Promise?e.push(_.then(g=>We(g,n,d,t,l))):We(_,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 di=x("$ZodObject",(e,t)=>{if(J.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 r=Bn(()=>ui(t));B(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 o=Ue,i=t.catchall;let c;e._zod.parse=(s,a)=>{c??(c=r.value);const u=s.value;if(!o(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const l=[],d=c.shape;for(const _ of c.keys){const g=d[_],y=g._zod.optout==="optional",f=g._zod.run({value:u[_],issues:[]},a);f instanceof Promise?l.push(f.then(v=>We(v,s,_,u,y))):We(f,s,_,u,y)}return i?li(l,u,s,a,r.value,e):l.length?Promise.all(l).then(()=>s):s}});function nn(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=>!ge(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(c=>he(c,r,_e())))}),t)}const fi=x("$ZodUnion",(e,t)=>{J.init(e,t),B(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),B(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),B(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),B(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=>Hn(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 c=!1;const s=[];for(const a of t.options){const u=a._zod.run({value:o.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=>nn(a,o,e,i)):nn(s,o,e,i)}}),pi=x("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,fi.init(e,t);const n=e._zod.parse;B(e._zod,"propValues",()=>{const o={};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)){o[s]||(o[s]=new Set);for(const u of a)o[s].add(u)}}return o});const r=Bn(()=>{const o=t.options,i=new Map;for(const c of o){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=(o,i)=>{const c=o.value;if(!Ue(c))return o.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),o;const s=r.value.get(c?.[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:c,path:[t.discriminator],inst:e}),o)}}),_i=x("$ZodRecord",(e,t)=>{J.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Ko(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,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:o[u],issues:[]},r);l instanceof Promise?i.push(l.then(d=>{d.issues.length&&n.issues.push(...ye(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...ye(u,l.issues)),n.value[u]=l.value)}let a;for(const u in o)s.has(u)||(a=a??[],a.push(u));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:a})}else{n.value={};for(const s of Reflect.ownKeys(o)){if(s==="__proto__")continue;let a=t.keyType._zod.run({value:s,issues:[]},r);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&oi.test(s)&&a.issues.length){const d=t.keyType._zod.run({value:Number(s),issues:[]},r);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]=o[s]:n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(d=>he(d,r,_e())),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(d=>{d.issues.length&&n.issues.push(...ye(s,d.issues)),n.value[a.value]=d.value})):(l.issues.length&&n.issues.push(...ye(s,l.issues)),n.value[a.value]=l.value)}}return i.length?Promise.all(i).then(()=>n):n}}),vi=x("$ZodLiteral",(e,t)=>{if(J.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"?tn(r):r?tn(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 rn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const hi=x("$ZodOptional",(e,t)=>{J.init(e,t),e._zod.optin="optional",e._zod.optout="optional",B(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),B(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Hn(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=>rn(i,n.value)):rn(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}});function mi(e,t){return new e({type:"string",...ve()})}function gi(e,t){return new e({type:"boolean",...ve()})}const oe=x("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");J.init(e,t),e.def=t,e.type=t.type,e.parse=(n,r)=>Jo(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Kn(e,n,r),e.parseAsync=async(n,r)=>ei(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>qn(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)=>qo(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.apply=n=>n(e)}),yi=x("ZodMiniString",(e,t)=>{ci.init(e,t),oe.init(e,t)});function ee(e){return mi(yi)}const bi=x("ZodMiniBoolean",(e,t)=>{ai.init(e,t),oe.init(e,t)});function Ee(e){return gi(bi)}const Ci=x("ZodMiniObject",(e,t)=>{di.init(e,t),oe.init(e,t),B(e,"shape",()=>t.shape)});function Gn(e,t){const n={type:"object",shape:e??{},...ve()};return new Ci(n)}const wi=x("ZodMiniDiscriminatedUnion",(e,t)=>{pi.init(e,t),oe.init(e,t)});function Ei(e,t,n){return new wi({type:"union",options:t,discriminator:e,...ve()})}const Si=x("ZodMiniRecord",(e,t)=>{_i.init(e,t),oe.init(e,t)});function Pi(e,t,n){return new Si({type:"record",keyType:e,valueType:t,...ve()})}const Ni=x("ZodMiniLiteral",(e,t)=>{vi.init(e,t),oe.init(e,t)});function Yn(e,t){return new Ni({type:"literal",values:Array.isArray(e)?e:[e],...ve()})}const Oi=x("ZodMiniOptional",(e,t)=>{hi.init(e,t),oe.init(e,t)});function Y(e){return new Oi({type:"optional",innerType:e})}const Ai=Gn({variant:Yn("remote"),type:Y(ee()),src:ee(),async:Y(Ee()),defer:Y(Ee()),crossorigin:Y(ee()),integrity:Y(ee())}),Ri=Gn({variant:Yn("inline"),type:Y(ee()),async:Y(Ee()),defer:Y(Ee()),content:ee()}),Ii=Ei("variant",[Ai,Ri]);function Ti(e,t){const n=h.createContext(t),r=i=>{const{children:c,...s}=i,a=D(()=>s,Object.values(s));return p(n.Provider,{value:a,children:c})};r.displayName=e+"Provider";function o(i){const c=q(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Ne(e,t=[]){let n=[];function r(i,c){const s=h.createContext(c),a=n.length;n=[...n,c];const u=d=>{const{scope:_,children:g,...y}=d,f=_?.[e]?.[a]||s,v=D(()=>y,Object.values(y));return p(f.Provider,{value:v,children:g})};u.displayName=i+"Provider";function l(d,_){const g=_?.[e]?.[a]||s,y=q(g);if(y)return y;if(c!==void 0)return c;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,l]}const o=()=>{const i=n.map(c=>h.createContext(c));return function(s){const a=s?.[e]||i;return D(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,ki(o,...t)]}function ki(...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 c=r.reduce((s,{useScope:a,scopeName:u})=>{const d=a(i)[`__scope${u}`];return{...s,...d}},{});return D(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function on(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Xn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=on(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():on(e[o],null)}}}}function $(...e){return M(Xn(...e),e)}function Be(e){const t=Di(e),n=N((r,o)=>{const{children:i,...c}=r,s=Z.toArray(i),a=s.find(Mi);if(a){const u=a.props.children,l=s.map(d=>d===a?Z.count(u)>1?Z.only(null):K(u)?u.props.children:null:d);return p(t,{...c,ref:o,children:K(u)?pe(u,void 0,l):null})}return p(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Di(e){const t=N((n,r)=>{const{children:o,...i}=n;if(K(o)){const c=$i(o),s=zi(i,o.props);return o.type!==h.Fragment&&(s.ref=r?Xn(r,c):c),pe(o,s)}return Z.count(o)>1?Z.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xi=Symbol("radix.slottable");function Mi(e){return K(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xi}function zi(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 a=i(...s);return o(...s),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function $i(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 Li(e){const t=e+"CollectionProvider",[n,r]=Ne(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=f=>{const{scope:v,children:m}=f,b=T.useRef(null),C=T.useRef(new Map).current;return p(o,{scope:v,itemMap:C,collectionRef:b,children:m})};c.displayName=t;const s=e+"CollectionSlot",a=Be(s),u=T.forwardRef((f,v)=>{const{scope:m,children:b}=f,C=i(s,m),w=$(v,C.collectionRef);return p(a,{ref:w,children:b})});u.displayName=s;const l=e+"CollectionItemSlot",d="data-radix-collection-item",_=Be(l),g=T.forwardRef((f,v)=>{const{scope:m,children:b,...C}=f,w=T.useRef(null),A=$(v,w),k=i(l,m);return T.useEffect(()=>(k.itemMap.set(w,{ref:w,...C}),()=>{k.itemMap.delete(w)})),p(_,{[d]:"",ref:A,children:b})});g.displayName=l;function y(f){const v=i(e+"CollectionConsumer",f);return T.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((k,S)=>C.indexOf(k.ref.current)-C.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:c,Slot:u,ItemSlot:g},y,r]}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var fe=globalThis?.document?X:()=>{},Fi=Wn[" useInsertionEffect ".trim().toString()]||fe;function Oe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=ji({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const l=E(e!==void 0);P(()=>{const d=l.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),l.current=s},[s,r])}const u=M(l=>{if(s){const d=Ui(l)?l(e):l;d!==e&&c.current?.(d)}else i(l)},[s,e,i,c]);return[a,u]}function ji({defaultProp:e,onChange:t}){const[n,r]=I(e),o=E(n),i=E(t);return Fi(()=>{i.current=t},[t]),P(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ui(e){return typeof e=="function"}var Wi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=Wi.reduce((e,t)=>{const n=Be(`Primitive.${t}`),r=N((o,i)=>{const{asChild:c,...s}=o,a=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p(a,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Bi(e,t){e&&Nt(()=>e.dispatchEvent(t))}function Hi(e,t){return Pe((n,r)=>t[n][r]??n,e)}var Ke=e=>{const{present:t,children:n}=e,r=Zi(t),o=typeof n=="function"?n({present:r.isPresent}):Z.only(n),i=$(r.ref,Vi(o));return typeof n=="function"||r.isPresent?pe(o,{ref:i}):null};Ke.displayName="Presence";function Zi(e){const[t,n]=I(),r=E(null),o=E(e),i=E("none"),c=e?"mounted":"unmounted",[s,a]=Hi(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P(()=>{const u=Te(r.current);i.current=s==="mounted"?u:"none"},[s]),fe(()=>{const u=r.current,l=o.current;if(l!==e){const _=i.current,g=Te(u);e?a("MOUNT"):g==="none"||u?.display==="none"?a("UNMOUNT"):a(l&&_!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),fe(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,d=g=>{const f=Te(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&f&&(a("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},_=g=>{g.target===t&&(i.current=Te(r.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:M(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Te(e){return e?.animationName||"none"}function Vi(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 Ki=Wn[" useId ".trim().toString()]||(()=>{}),qi=0;function we(e){const[t,n]=I(Ki());return fe(()=>{n(r=>r??String(qi++))},[e]),e||(t?`radix-${t}`:"")}var qe="Collapsible",[Gi,Jn]=Ne(qe),[Yi,At]=Gi(qe),Qn=N((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:c,...s}=e,[a,u]=Oe({prop:r,defaultProp:o??!1,onChange:c,caller:qe});return p(Yi,{scope:n,disabled:i,contentId:we(),open:a,onOpenToggle:M(()=>u(l=>!l),[u]),children:p(z.div,{"data-state":It(a),"data-disabled":i?"":void 0,...s,ref:t})})});Qn.displayName=qe;var er="CollapsibleTrigger",tr=N((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=At(er,n);return p(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":It(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});tr.displayName=er;var Rt="CollapsibleContent",nr=N((e,t)=>{const{forceMount:n,...r}=e,o=At(Rt,e.__scopeCollapsible);return p(Ke,{present:n||o.open,children:({present:i})=>p(Xi,{...r,ref:t,present:i})})});nr.displayName=Rt;var Xi=N((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,c=At(Rt,n),[s,a]=I(r),u=E(null),l=$(t,u),d=E(0),_=d.current,g=E(0),y=g.current,f=c.open||s,v=E(f),m=E(void 0);return P(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),fe(()=>{const b=u.current;if(b){m.current=m.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,g.current=C.width,v.current||(b.style.transitionDuration=m.current.transitionDuration,b.style.animationName=m.current.animationName),a(r)}},[c.open,r]),p(z.div,{"data-state":It(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!f,...i,ref:l,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:f&&o})});function It(e){return e?"open":"closed"}var rr=Qn,or=tr,ir=nr,Ji=h.createContext(void 0);function Qi(e){const t=q(Ji);return e||t||"ltr"}var U="Accordion",es=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Tt,ts,ns]=Li(U),[Ge]=Ne(U,[ns,Jn]),kt=Jn(),sr=T.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return p(Tt.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p(ss,{...i,ref:t}):p(is,{...o,ref:t})})});sr.displayName=U;var[cr,rs]=Ge(U),[ar,os]=Ge(U,{collapsible:!1}),is=T.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...c}=e,[s,a]=Oe({prop:n,defaultProp:r??"",onChange:o,caller:U});return p(cr,{scope:e.__scopeAccordion,value:T.useMemo(()=>s?[s]:[],[s]),onItemOpen:a,onItemClose:T.useCallback(()=>i&&a(""),[i,a]),children:p(ar,{scope:e.__scopeAccordion,collapsible:i,children:p(ur,{...c,ref:t})})})}),ss=T.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[c,s]=Oe({prop:n,defaultProp:r??[],onChange:o,caller:U}),a=T.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=T.useCallback(l=>s((d=[])=>d.filter(_=>_!==l)),[s]);return p(cr,{scope:e.__scopeAccordion,value:c,onItemOpen:a,onItemClose:u,children:p(ar,{scope:e.__scopeAccordion,collapsible:!0,children:p(ur,{...i,ref:t})})})}),[cs,Ye]=Ge(U),ur=T.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...c}=e,s=T.useRef(null),a=$(s,t),u=ts(n),d=Qi(o)==="ltr",_=j(e.onKeyDown,g=>{if(!es.includes(g.key))return;const y=g.target,f=u().filter(L=>!L.ref.current?.disabled),v=f.findIndex(L=>L.ref.current===y),m=f.length;if(v===-1)return;g.preventDefault();let b=v;const C=0,w=m-1,A=()=>{b=v+1,b>w&&(b=C)},k=()=>{b=v-1,b<C&&(b=w)};switch(g.key){case"Home":b=C;break;case"End":b=w;break;case"ArrowRight":i==="horizontal"&&(d?A():k());break;case"ArrowDown":i==="vertical"&&A();break;case"ArrowLeft":i==="horizontal"&&(d?k():A());break;case"ArrowUp":i==="vertical"&&k();break}const S=b%m;f[S].ref.current?.focus()});return p(cs,{scope:n,disabled:r,direction:o,orientation:i,children:p(Tt.Slot,{scope:n,children:p(z.div,{...c,"data-orientation":i,ref:a,onKeyDown:r?void 0:_})})})}),He="AccordionItem",[as,Dt]=Ge(He),lr=T.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=Ye(He,n),c=rs(He,n),s=kt(n),a=we(),u=r&&c.value.includes(r)||!1,l=i.disabled||e.disabled;return p(as,{scope:n,open:u,disabled:l,triggerId:a,children:p(rr,{"data-orientation":i.orientation,"data-state":vr(u),...s,...o,ref:t,disabled:l,open:u,onOpenChange:d=>{d?c.onItemOpen(r):c.onItemClose(r)}})})});lr.displayName=He;var dr="AccordionHeader",us=T.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ye(U,n),i=Dt(dr,n);return p(z.h3,{"data-orientation":o.orientation,"data-state":vr(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});us.displayName=dr;var pt="AccordionTrigger",fr=T.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ye(U,n),i=Dt(pt,n),c=os(pt,n),s=kt(n);return p(Tt.ItemSlot,{scope:n,children:p(or,{"aria-disabled":i.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})});fr.displayName=pt;var pr="AccordionContent",_r=T.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Ye(U,n),i=Dt(pr,n),c=kt(n);return p(ir,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...c,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});_r.displayName=pr;function vr(e){return e?"open":"closed"}var ls=sr,ds=lr,sn=fr,fs=_r;const hr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const ps=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _s=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const cn=e=>{const t=_s(e);return t.charAt(0).toUpperCase()+t.slice(1)};var vs={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 hs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const ms=N(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:c,...s},a)=>h.createElement("svg",{ref:a,...vs,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:hr("lucide",o),...!i&&!hs(s)&&{"aria-hidden":"true"},...s},[...c.map(([u,l])=>h.createElement(u,l)),...Array.isArray(i)?i:[i]]));const mr=(e,t)=>{const n=N(({className:r,...o},i)=>h.createElement(ms,{ref:i,iconNode:t,className:hr(`lucide-${ps(cn(e))}`,`lucide-${e}`,r),...o}));return n.displayName=cn(e),n};const gs=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ys=mr("chevron-down",gs);const bs=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Cs=mr("chevron-up",bs);function ws(e){const t=E({value:e,previous:e});return D(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Es(e){const[t,n]=I(void 0);return fe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[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 r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Xe="Switch",[Ss]=Ne(Xe),[Ps,Ns]=Ss(Xe),gr=N((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:c,disabled:s,value:a="on",onCheckedChange:u,form:l,...d}=e,[_,g]=I(null),y=$(t,C=>g(C)),f=E(!1),v=_?l||!!_.closest("form"):!0,[m,b]=Oe({prop:o,defaultProp:i??!1,onChange:u,caller:Xe});return p(Ps,{scope:n,checked:m,disabled:s,children:[p(z.button,{type:"button",role:"switch","aria-checked":m,"aria-required":c,"data-state":wr(m),"data-disabled":s?"":void 0,disabled:s,value:a,...d,ref:y,onClick:j(e.onClick,C=>{b(w=>!w),v&&(f.current=C.isPropagationStopped(),f.current||C.stopPropagation())})}),v&&p(Cr,{control:_,bubbles:!f.current,name:r,value:a,checked:m,required:c,disabled:s,form:l,style:{transform:"translateX(-100%)"}})]})});gr.displayName=Xe;var yr="SwitchThumb",br=N((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ns(yr,n);return p(z.span,{"data-state":wr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});br.displayName=yr;var Os="SwitchBubbleInput",Cr=N(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const c=E(null),s=$(c,i),a=ws(n),u=Es(t);return P(()=>{const l=c.current;if(!l)return;const d=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&g){const y=new Event("click",{bubbles:r});g.call(l,n),l.dispatchEvent(y)}},[a,n,r]),p("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Cr.displayName=Os;function wr(e){return e?"checked":"unchecked"}var As=gr,Rs=br;const Is="_root_dibqz_1",Ts="_thumb_dibqz_38",ke={root:Is,switch:"_switch_dibqz_8",thumb:Ts},ks=({label:e,id:t,...n})=>p("div",{className:ke.root,children:[e&&p(te,{className:ke.label,as:"label",htmlFor:t,children:e}),p(As,{className:ke.switch,...n,children:p(Rs,{className:ke.thumb})})]}),Ds=Pi(ee(),Ee()),Er=h.createContext(null),xs=({children:e,items:t,localStorageKey:n})=>{function r(y){const f=localStorage.getItem(y);if(!f)return null;const{success:v,data:m}=Ds.safeParse(JSON.parse(f));return v?m:null}const o=D(()=>Object.fromEntries(t.map(y=>[y.value,y.defaultSelected??!1])),[t]),[i,c]=I(r(n)??o),[s,a]=I(r(n));function u(y,f){const v=i?{...i,[y]:f}:{[y]:f};c(v)}P(()=>{let y=[];s!==null&&(y=Object.entries(s).filter(([v,m])=>m).map(([v])=>v));const f=t.filter(v=>y.includes(v.value));for(const v of t){const m=document.head.querySelector(`#${v.value}`);m&&m.remove()}for(const v of f){const m=document.createElement("script");if(m.id=v.value,!v.script){v.required||console.warn("CookieBanner: Missing script for",v.value);continue}const{success:b,data:C}=Ii.safeParse(v.script);if(!b){console.error("CookieBanner: Invalid script definition for",v.value);continue}switch(m.type=C.type??"text/javascript",m.async=C.async??!1,m.defer=C.defer??!1,C.variant){case"inline":m.textContent=C.content;break;case"remote":m.src=C.src,m.crossOrigin=C.crossorigin??null,m.integrity=C.integrity??"";break}document.head.appendChild(m)}},[s,t]);function l(y){a(y),localStorage.setItem(n,JSON.stringify(y))}const d=M(()=>{const y=Object.fromEntries(t.map(f=>[f.value,!1]));c(y),l(y)},[t]),_=M(()=>{l(i)},[i]),g=D(()=>{if(!s)return!1;const y=Object.keys(s);return t.map(v=>v.value).every(v=>y.includes(v))},[s,t]);return p(Er.Provider,{value:{selection:i,toggleSelection:u,onDeclineAll:d,onSave:_,selectionTaken:g},children:e})};function Sr(){const e=q(Er);if(!e)throw new Error("useSelection must be used within a SelectionProvider");return e}const Ms=({value:e,label:t,sublabel:n,required:r=!1,description:o,openItem:i})=>{const{toggleSelection:c,selection:s}=Sr(),a=D(()=>s?.[e]??!1,[s,e]);P(()=>{c(e,a)},[e,a]);const u=D(()=>r?!0:a,[r,a]),l=D(()=>_=>r?()=>{}:c(e,_),[r,c,e]),d=D(()=>r,[r]);return p(ds,{value:e,className:Q.root,children:[p("div",{className:Q.header,children:[p(sn,{asChild:!0,children:p("div",{className:Q.label,children:[p(te,{weight:"bold",children:t}),n&&p(te,{size:"caption",color:"muted",children:n})]})}),p("div",{className:Q.actions,children:[p(ks,{checked:u,onCheckedChange:l,disabled:d}),p(sn,{asChild:!0,children:p(ys,{size:16,className:ft({[Q.chevron]:!0,[Q.open]:i===e})})})]})]}),o&&p(fs,{className:Q.description,children:p(te,{size:"caption",dangerouslySetInnerHTML:{__html:o}})})]})};function Se(e){const t=E(e);return P(()=>{t.current=e}),D(()=>(...n)=>t.current?.(...n),[])}function zs(e,t=globalThis?.document){const n=Se(e);P(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var $s="DismissableLayer",_t="dismissableLayer.update",Ls="dismissableLayer.pointerDownOutside",Fs="dismissableLayer.focusOutside",an,Pr=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nr=N((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...a}=e,u=q(Pr),[l,d]=I(null),_=l?.ownerDocument??globalThis?.document,[,g]=I({}),y=$(t,S=>d(S)),f=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=f.indexOf(v),b=l?f.indexOf(l):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,w=b>=m,A=Ws(S=>{const L=S.target,ie=[...u.branches].some(me=>me.contains(L));!w||ie||(o?.(S),c?.(S),S.defaultPrevented||s?.())},_),k=Bs(S=>{const L=S.target;[...u.branches].some(me=>me.contains(L))||(i?.(S),c?.(S),S.defaultPrevented||s?.())},_);return zs(S=>{b===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},_),P(()=>{if(l)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(an=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),un(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=an)}},[l,_,n,u]),P(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),un())},[l,u]),P(()=>{const S=()=>g({});return document.addEventListener(_t,S),()=>document.removeEventListener(_t,S)},[]),p(z.div,{...a,ref:y,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,k.onFocusCapture),onBlurCapture:j(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,A.onPointerDownCapture)})});Nr.displayName=$s;var js="DismissableLayerBranch",Us=N((e,t)=>{const n=q(Pr),r=E(null),o=$(t,r);return P(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p(z.div,{...e,ref:o})});Us.displayName=js;function Ws(e,t=globalThis?.document){const n=Se(e),r=E(!1),o=E(()=>{});return P(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Or(Ls,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bs(e,t=globalThis?.document){const n=Se(e),r=E(!1);return P(()=>{const o=i=>{i.target&&!r.current&&Or(Fs,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 un(){const e=new CustomEvent(_t);document.dispatchEvent(e)}function Or(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?Bi(o,i):o.dispatchEvent(i)}var rt="focusScope.autoFocusOnMount",ot="focusScope.autoFocusOnUnmount",ln={bubbles:!1,cancelable:!0},Hs="FocusScope",Ar=N((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,a]=I(null),u=Se(o),l=Se(i),d=E(null),_=$(t,f=>a(f)),g=E({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P(()=>{if(r){let f=function(C){if(g.paused||!s)return;const w=C.target;s.contains(w)?d.current=w:G(d.current,{select:!0})},v=function(C){if(g.paused||!s)return;const w=C.relatedTarget;w!==null&&(s.contains(w)||G(d.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const A of C)A.removedNodes.length>0&&G(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const b=new MutationObserver(m);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),b.disconnect()}}},[r,s,g.paused]),P(()=>{if(s){fn.add(g);const f=document.activeElement;if(!s.contains(f)){const m=new CustomEvent(rt,ln);s.addEventListener(rt,u),s.dispatchEvent(m),m.defaultPrevented||(Zs(Ys(Rr(s)),{select:!0}),document.activeElement===f&&G(s))}return()=>{s.removeEventListener(rt,u),setTimeout(()=>{const m=new CustomEvent(ot,ln);s.addEventListener(ot,l),s.dispatchEvent(m),m.defaultPrevented||G(f??document.body,{select:!0}),s.removeEventListener(ot,l),fn.remove(g)},0)}}},[s,u,l,g]);const y=M(f=>{if(!n&&!r||g.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,m=document.activeElement;if(v&&m){const b=f.currentTarget,[C,w]=Vs(b);C&&w?!f.shiftKey&&m===w?(f.preventDefault(),n&&G(C,{select:!0})):f.shiftKey&&m===C&&(f.preventDefault(),n&&G(w,{select:!0})):m===b&&f.preventDefault()}},[n,r,g.paused]);return p(z.div,{tabIndex:-1,...c,ref:_,onKeyDown:y})});Ar.displayName=Hs;function Zs(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(G(r,{select:t}),document.activeElement!==n)return}function Vs(e){const t=Rr(e),n=dn(t,e),r=dn(t.reverse(),e);return[n,r]}function Rr(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 dn(e,t){for(const n of e)if(!Ks(n,{upTo:t}))return n}function Ks(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 qs(e){return e instanceof HTMLInputElement&&"select"in e}function G(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&qs(e)&&t&&e.select()}}var fn=Gs();function Gs(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=pn(e,t),e.unshift(t)},remove(t){e=pn(e,t),e[0]?.resume()}}}function pn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ys(e){return e.filter(t=>t.tagName!=="A")}var it=0;function Xs(){P(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??_n()),document.body.insertAdjacentElement("beforeend",e[1]??_n()),it++,()=>{it===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),it--}},[])}function _n(){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 W=function(){return W=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},W.apply(this,arguments)};function Ir(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 Js(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 Le="right-scroll-bar-position",Fe="width-before-scroll-bar",Qs="with-scroll-bars-hidden",ec="--removed-body-scroll-bar-size";function st(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function tc(e,t){var n=I(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 nc=typeof window<"u"?X:P,vn=new WeakMap;function rc(e,t){var n=tc(null,function(r){return e.forEach(function(o){return st(o,r)})});return nc(function(){var r=vn.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||st(s,null)}),i.forEach(function(s){o.has(s)||st(s,c)})}vn.set(n,e)},[e]),n}function oc(e){return e}function ic(e,t){t===void 0&&(t=oc);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 c=t(i,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(i),c=n}var a=function(){var l=c;c=[],l.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(l){c.push(l),u()},filter:function(l){return c=c.filter(l),n}}}};return o}function sc(e){e===void 0&&(e={});var t=ic(null);return t.options=W({async:!0,ssr:!1},e),t}var Tr=function(e){var t=e.sideCar,n=Ir(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 h.createElement(r,W({},n))};Tr.isSideCarExport=!0;function cc(e,t){return e.useMedium(t),Tr}var kr=sc(),ct=function(){},Je=N(function(e,t){var n=E(null),r=I({onScrollCapture:ct,onWheelCapture:ct,onTouchMoveCapture:ct}),o=r[0],i=r[1],c=e.forwardProps,s=e.children,a=e.className,u=e.removeScrollBar,l=e.enabled,d=e.shards,_=e.sideCar,g=e.noRelative,y=e.noIsolation,f=e.inert,v=e.allowPinchZoom,m=e.as,b=m===void 0?"div":m,C=e.gapMode,w=Ir(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=_,k=rc([n,t]),S=W(W({},w),o);return h.createElement(h.Fragment,null,l&&h.createElement(A,{sideCar:kr,removeScrollBar:u,shards:d,noRelative:g,noIsolation:y,inert:f,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:C}),c?pe(Z.only(s),W(W({},S),{ref:k})):h.createElement(b,W({},S,{className:a,ref:k}),s))});Je.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Je.classNames={fullWidth:Fe,zeroRight:Le};var ac=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ac();return t&&e.setAttribute("nonce",t),e}function lc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function dc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uc())&&(lc(t,n),dc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pc=function(){var e=fc();return function(t,n){P(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Dr=function(){var e=pc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_c={left:0,top:0,right:0,gap:0},at=function(e){return parseInt(e||"",10)||0},vc=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[at(n),at(r),at(o)]},hc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _c;var t=vc(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])}},mc=Dr(),le="data-scroll-locked",gc=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(Qs,` {
3
3
  overflow: hidden `).concat(r,`;
4
- padding-right: `).concat(i,"px ").concat(r,`;
4
+ padding-right: `).concat(s,"px ").concat(r,`;
5
5
  }
6
- body[`).concat(Q,`] {
6
+ body[`).concat(le,`] {
7
7
  overflow: hidden `).concat(r,`;
8
8
  overscroll-behavior: contain;
9
9
  `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
10
10
  padding-left: `.concat(o,`px;
11
- padding-top: `).concat(s,`px;
11
+ padding-top: `).concat(i,`px;
12
12
  padding-right: `).concat(c,`px;
13
13
  margin-left:0;
14
14
  margin-top:0;
15
- margin-right: `).concat(i,"px ").concat(r,`;
16
- `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
15
+ margin-right: `).concat(s,"px ").concat(r,`;
16
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
17
17
  }
18
18
 
19
- .`).concat(Re,` {
20
- right: `).concat(i,"px ").concat(r,`;
19
+ .`).concat(Le,` {
20
+ right: `).concat(s,"px ").concat(r,`;
21
21
  }
22
22
 
23
- .`).concat(Oe,` {
24
- margin-right: `).concat(i,"px ").concat(r,`;
23
+ .`).concat(Fe,` {
24
+ margin-right: `).concat(s,"px ").concat(r,`;
25
25
  }
26
26
 
27
- .`).concat(Re," .").concat(Re,` {
27
+ .`).concat(Le," .").concat(Le,` {
28
28
  right: 0 `).concat(r,`;
29
29
  }
30
30
 
31
- .`).concat(Oe," .").concat(Oe,` {
31
+ .`).concat(Fe," .").concat(Fe,` {
32
32
  margin-right: 0 `).concat(r,`;
33
33
  }
34
34
 
35
- body[`).concat(Q,`] {
36
- `).concat(ai,": ").concat(i,`px;
35
+ body[`).concat(le,`] {
36
+ `).concat(ec,": ").concat(s,`px;
37
37
  }
38
- `)},Wt=function(){var e=parseInt(document.body.getAttribute(Q)||"0",10);return isFinite(e)?e:0},Oi=function(){f.useEffect(function(){return document.body.setAttribute(Q,(Wt()+1).toString()),function(){var e=Wt()-1;e<=0?document.body.removeAttribute(Q):document.body.setAttribute(Q,e.toString())}},[])},ki=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Oi();var s=f.useMemo(function(){return Ei(o)},[o]);return f.createElement(Pi,{styles:Ri(s,!t,o,n?"":"!important")})},it=!1;if(typeof window<"u")try{var be=Object.defineProperty({},"passive",{get:function(){return it=!0,!0}});window.addEventListener("test",be,be),window.removeEventListener("test",be,be)}catch{it=!1}var Y=it?{passive:!1}:!1,Ai=function(e){return e.tagName==="TEXTAREA"},Gn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ai(e)&&n[t]==="visible")},Ni=function(e){return Gn(e,"overflowY")},Ti=function(e){return Gn(e,"overflowX")},Bt=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Yn(e,r);if(o){var s=Xn(e,r),c=s[1],i=s[2];if(c>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ii=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Di=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Yn=function(e,t){return e==="v"?Ni(t):Ti(t)},Xn=function(e,t){return e==="v"?Ii(t):Di(t)},xi=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mi=function(e,t,n,r,o){var s=xi(e,window.getComputedStyle(t).direction),c=s*r,i=n.target,u=t.contains(i),a=!1,d=c>0,l=0,m=0;do{if(!i)break;var h=Xn(e,i),b=h[0],p=h[1],_=h[2],g=p-_-s*b;(b||g)&&Yn(e,i)&&(l+=g,m+=b);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(d&&Math.abs(l)<1||!d&&Math.abs(m)<1)&&(a=!0),a},we=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ut=function(e){return[e.deltaX,e.deltaY]},Zt=function(e){return e&&"current"in e?e.current:e},zi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Li=function(e){return`
38
+ `)},hn=function(){var e=parseInt(document.body.getAttribute(le)||"0",10);return isFinite(e)?e:0},yc=function(){P(function(){return document.body.setAttribute(le,(hn()+1).toString()),function(){var e=hn()-1;e<=0?document.body.removeAttribute(le):document.body.setAttribute(le,e.toString())}},[])},bc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;yc();var i=D(function(){return hc(o)},[o]);return h.createElement(mc,{styles:gc(i,!t,o,n?"":"!important")})},vt=!1;if(typeof window<"u")try{var De=Object.defineProperty({},"passive",{get:function(){return vt=!0,!0}});window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch{vt=!1}var se=vt?{passive:!1}:!1,Cc=function(e){return e.tagName==="TEXTAREA"},xr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Cc(e)&&n[t]==="visible")},wc=function(e){return xr(e,"overflowY")},Ec=function(e){return xr(e,"overflowX")},mn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Mr(e,r);if(o){var i=zr(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Sc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Pc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Mr=function(e,t){return e==="v"?wc(t):Ec(t)},zr=function(e,t){return e==="v"?Sc(t):Pc(t)},Nc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Oc=function(e,t,n,r,o){var i=Nc(e,window.getComputedStyle(t).direction),c=i*r,s=n.target,a=t.contains(s),u=!1,l=c>0,d=0,_=0;do{if(!s)break;var g=zr(e,s),y=g[0],f=g[1],v=g[2],m=f-v-i*y;(y||m)&&Mr(e,s)&&(d+=m,_+=y);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(l&&Math.abs(d)<1||!l&&Math.abs(_)<1)&&(u=!0),u},xe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},gn=function(e){return[e.deltaX,e.deltaY]},yn=function(e){return e&&"current"in e?e.current:e},Ac=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rc=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},$i=0,X=[];function Fi(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState($i++)[0],s=f.useState(qn)[0],c=f.useRef(e);f.useEffect(function(){c.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=ii([e.lockRef.current],(e.shards||[]).map(Zt),!0).filter(Boolean);return p.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=f.useCallback(function(p,_){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!c.current.allowPinchZoom;var g=we(p),y=n.current,w="deltaX"in p?p.deltaX:y[0]-g[0],C="deltaY"in p?p.deltaY:y[1]-g[1],P,O=p.target,E=Math.abs(w)>Math.abs(C)?"h":"v";if("touches"in p&&E==="h"&&O.type==="range")return!1;var N=window.getSelection(),A=N&&N.anchorNode,D=A?A===O||A.contains(O):!1;if(D)return!1;var he=Bt(E,O);if(!he)return!0;if(he?P=E:(P=E==="v"?"h":"v",he=Bt(E,O)),!he)return!1;if(!r.current&&"changedTouches"in p&&(w||C)&&(r.current=P),!P)return!0;var bt=r.current||P;return Mi(bt,_,p,bt==="h"?w:C)},[]),u=f.useCallback(function(p){var _=p;if(!(!X.length||X[X.length-1]!==s)){var g="deltaY"in _?Ut(_):we(_),y=t.current.filter(function(P){return P.name===_.type&&(P.target===_.target||_.target===P.shadowParent)&&zi(P.delta,g)})[0];if(y&&y.should){_.cancelable&&_.preventDefault();return}if(!y){var w=(c.current.shards||[]).map(Zt).filter(Boolean).filter(function(P){return P.contains(_.target)}),C=w.length>0?i(_,w[0]):!c.current.noIsolation;C&&_.cancelable&&_.preventDefault()}}},[]),a=f.useCallback(function(p,_,g,y){var w={name:p,delta:_,target:g,should:y,shadowParent:ji(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(C){return C!==w})},1)},[]),d=f.useCallback(function(p){n.current=we(p),r.current=void 0},[]),l=f.useCallback(function(p){a(p.type,Ut(p),p.target,i(p,e.lockRef.current))},[]),m=f.useCallback(function(p){a(p.type,we(p),p.target,i(p,e.lockRef.current))},[]);f.useEffect(function(){return X.push(s),e.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Y),document.addEventListener("touchmove",u,Y),document.addEventListener("touchstart",d,Y),function(){X=X.filter(function(p){return p!==s}),document.removeEventListener("wheel",u,Y),document.removeEventListener("touchmove",u,Y),document.removeEventListener("touchstart",d,Y)}},[]);var h=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(s,{styles:Li(o)}):null,h?f.createElement(ki,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ji(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Wi=vi(Kn,Fi);var Jn=f.forwardRef(function(e,t){return f.createElement(Ze,L({},e,{ref:t,sideCar:Wi}))});Jn.classNames=Ze.classNames;var Bi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},J=new WeakMap,Ce=new WeakMap,Se={},Qe=0,Qn=function(e){return e&&(e.host||Qn(e.parentNode))},Ui=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Qn(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})},Zi=function(e,t,n,r){var o=Ui(t,Array.isArray(e)?e:[e]);Se[n]||(Se[n]=new WeakMap);var s=Se[n],c=[],i=new Set,u=new Set(o),a=function(l){!l||i.has(l)||(i.add(l),a(l.parentNode))};o.forEach(a);var d=function(l){!l||u.has(l)||Array.prototype.forEach.call(l.children,function(m){if(i.has(m))d(m);else try{var h=m.getAttribute(r),b=h!==null&&h!=="false",p=(J.get(m)||0)+1,_=(s.get(m)||0)+1;J.set(m,p),s.set(m,_),c.push(m),p===1&&b&&Ce.set(m,!0),_===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return d(t),i.clear(),Qe++,function(){c.forEach(function(l){var m=J.get(l)-1,h=s.get(l)-1;J.set(l,m),s.set(l,h),m||(Ce.has(l)||l.removeAttribute(r),Ce.delete(l)),h||l.removeAttribute(n)}),Qe--,Qe||(J=new WeakMap,J=new WeakMap,Ce=new WeakMap,Se={})}},Vi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Bi(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Zi(r,o,n,"aria-hidden")):function(){return null}},Ve="Dialog",[er]=fe(Ve),[Hi,F]=er(Ve),tr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,i=f.useRef(null),u=f.useRef(null),[a,d]=pe({prop:r,defaultProp:o??!1,onChange:s,caller:Ve});return v(Hi,{scope:t,triggerRef:i,contentRef:u,contentId:le(),titleId:le(),descriptionId:le(),open:a,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(l=>!l),[d]),modal:c,children:n})};tr.displayName=Ve;var nr="DialogTrigger",Ki=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(nr,n),s=I(t,o.triggerRef);return v(T.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yt(o.open),...r,ref:s,onClick:M(e.onClick,o.onOpenToggle)})});Ki.displayName=nr;var qi="DialogPortal",[uc,rr]=er(qi,{forceMount:void 0}),Me="DialogOverlay",Gi=f.forwardRef((e,t)=>{const n=rr(Me,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=F(Me,e.__scopeDialog);return s.modal?v(Fe,{present:r||s.open,children:v(Xi,{...o,ref:t})}):null});Gi.displayName=Me;var Yi=De("DialogOverlay.RemoveScroll"),Xi=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(Me,n);return v(Jn,{as:Yi,allowPinchZoom:!0,shards:[o.contentRef],children:v(T.div,{"data-state":yt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),q="DialogContent",or=f.forwardRef((e,t)=>{const n=rr(q,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=F(q,e.__scopeDialog);return v(Fe,{present:r||s.open,children:s.modal?v(Ji,{...o,ref:t}):v(Qi,{...o,ref:t})})});or.displayName=q;var Ji=f.forwardRef((e,t)=>{const n=F(q,e.__scopeDialog),r=f.useRef(null),o=I(t,n.contentRef,r);return f.useEffect(()=>{const s=r.current;if(s)return Vi(s)},[]),v(sr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:M(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:M(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,i=c.button===0&&c.ctrlKey===!0;(c.button===2||i)&&s.preventDefault()}),onFocusOutside:M(e.onFocusOutside,s=>s.preventDefault())})}),Qi=f.forwardRef((e,t)=>{const n=F(q,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return v(sr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),sr=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,i=F(q,n),u=f.useRef(null),a=I(t,u);return si(),v(ee,{children:[v(Un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:v(Wn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":yt(i.open),...c,ref:a,onDismiss:()=>i.onOpenChange(!1)})}),v(ee,{children:[v(ec,{titleId:i.titleId}),v(nc,{contentRef:u,descriptionId:i.descriptionId})]})]})}),gt="DialogTitle",ir=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(gt,n);return v(T.h2,{id:o.titleId,...r,ref:t})});ir.displayName=gt;var cr="DialogDescription",ar=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(cr,n);return v(T.p,{id:o.descriptionId,...r,ref:t})});ar.displayName=cr;var lr="DialogClose",ur=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=F(lr,n);return v(T.button,{type:"button",...r,ref:t,onClick:M(e.onClick,()=>o.onOpenChange(!1))})});ur.displayName=lr;function yt(e){return e?"open":"closed"}var dr="DialogTitleWarning",[dc,fr]=Fo(dr,{contentName:q,titleName:gt,docsSlug:"dialog"}),ec=({titleId:e})=>{const t=fr(dr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},Ic=0,ce=[];function Tc(e){var t=E([]),n=E([0,0]),r=E(),o=I(Ic++)[0],i=I(Dr)[0],c=E(e);P(function(){c.current=e},[e]),P(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var f=Js([e.lockRef.current],(e.shards||[]).map(yn),!0).filter(Boolean);return f.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),f.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=M(function(f,v){if("touches"in f&&f.touches.length===2||f.type==="wheel"&&f.ctrlKey)return!c.current.allowPinchZoom;var m=xe(f),b=n.current,C="deltaX"in f?f.deltaX:b[0]-m[0],w="deltaY"in f?f.deltaY:b[1]-m[1],A,k=f.target,S=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in f&&S==="h"&&k.type==="range")return!1;var L=window.getSelection(),ie=L&&L.anchorNode,me=ie?ie===k||ie.contains(k):!1;if(me)return!1;var Ae=mn(S,k);if(!Ae)return!0;if(Ae?A=S:(A=S==="v"?"h":"v",Ae=mn(S,k)),!Ae)return!1;if(!r.current&&"changedTouches"in f&&(C||w)&&(r.current=A),!A)return!0;var zt=r.current||A;return Oc(zt,v,f,zt==="h"?C:w)},[]),a=M(function(f){var v=f;if(!(!ce.length||ce[ce.length-1]!==i)){var m="deltaY"in v?gn(v):xe(v),b=t.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&Ac(A.delta,m)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var C=(c.current.shards||[]).map(yn).filter(Boolean).filter(function(A){return A.contains(v.target)}),w=C.length>0?s(v,C[0]):!c.current.noIsolation;w&&v.cancelable&&v.preventDefault()}}},[]),u=M(function(f,v,m,b){var C={name:f,delta:v,target:m,should:b,shadowParent:kc(m)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),l=M(function(f){n.current=xe(f),r.current=void 0},[]),d=M(function(f){u(f.type,gn(f),f.target,s(f,e.lockRef.current))},[]),_=M(function(f){u(f.type,xe(f),f.target,s(f,e.lockRef.current))},[]);P(function(){return ce.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:_}),document.addEventListener("wheel",a,se),document.addEventListener("touchmove",a,se),document.addEventListener("touchstart",l,se),function(){ce=ce.filter(function(f){return f!==i}),document.removeEventListener("wheel",a,se),document.removeEventListener("touchmove",a,se),document.removeEventListener("touchstart",l,se)}},[]);var g=e.removeScrollBar,y=e.inert;return h.createElement(h.Fragment,null,y?h.createElement(i,{styles:Rc(o)}):null,g?h.createElement(bc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function kc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Dc=cc(kr,Tc);var $r=N(function(e,t){return h.createElement(Je,W({},e,{ref:t,sideCar:Dc}))});$r.classNames=Je.classNames;var xc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ae=new WeakMap,Me=new WeakMap,ze={},ut=0,Lr=function(e){return e&&(e.host||Lr(e.parentNode))},Mc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lr(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})},zc=function(e,t,n,r){var o=Mc(t,Array.isArray(e)?e:[e]);ze[n]||(ze[n]=new WeakMap);var i=ze[n],c=[],s=new Set,a=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var l=function(d){!d||a.has(d)||Array.prototype.forEach.call(d.children,function(_){if(s.has(_))l(_);else try{var g=_.getAttribute(r),y=g!==null&&g!=="false",f=(ae.get(_)||0)+1,v=(i.get(_)||0)+1;ae.set(_,f),i.set(_,v),c.push(_),f===1&&y&&Me.set(_,!0),v===1&&_.setAttribute(n,"true"),y||_.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",_,m)}})};return l(t),s.clear(),ut++,function(){c.forEach(function(d){var _=ae.get(d)-1,g=i.get(d)-1;ae.set(d,_),i.set(d,g),_||(Me.has(d)||d.removeAttribute(r),Me.delete(d)),g||d.removeAttribute(n)}),ut--,ut||(ae=new WeakMap,ae=new WeakMap,Me=new WeakMap,ze={})}},$c=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),zc(r,o,n,"aria-hidden")):function(){return null}},Qe="Dialog",[Fr]=Ne(Qe),[Lc,H]=Fr(Qe),jr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=E(null),a=E(null),[u,l]=Oe({prop:r,defaultProp:o??!1,onChange:i,caller:Qe});return p(Lc,{scope:t,triggerRef:s,contentRef:a,contentId:we(),titleId:we(),descriptionId:we(),open:u,onOpenChange:l,onOpenToggle:M(()=>l(d=>!d),[l]),modal:c,children:n})};jr.displayName=Qe;var Ur="DialogTrigger",Fc=N((e,t)=>{const{__scopeDialog:n,...r}=e,o=H(Ur,n),i=$(t,o.triggerRef);return p(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mt(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)})});Fc.displayName=Ur;var jc="DialogPortal",[na,Wr]=Fr(jc,{forceMount:void 0}),Ze="DialogOverlay",Uc=N((e,t)=>{const n=Wr(Ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=H(Ze,e.__scopeDialog);return i.modal?p(Ke,{present:r||i.open,children:p(Bc,{...o,ref:t})}):null});Uc.displayName=Ze;var Wc=Be("DialogOverlay.RemoveScroll"),Bc=N((e,t)=>{const{__scopeDialog:n,...r}=e,o=H(Ze,n);return p($r,{as:Wc,allowPinchZoom:!0,shards:[o.contentRef],children:p(z.div,{"data-state":Mt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ne="DialogContent",Br=N((e,t)=>{const n=Wr(ne,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=H(ne,e.__scopeDialog);return p(Ke,{present:r||i.open,children:i.modal?p(Hc,{...o,ref:t}):p(Zc,{...o,ref:t})})});Br.displayName=ne;var Hc=N((e,t)=>{const n=H(ne,e.__scopeDialog),r=E(null),o=$(t,n.contentRef,r);return P(()=>{const i=r.current;if(i)return $c(i)},[]),p(Hr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&i.preventDefault()}),onFocusOutside:j(e.onFocusOutside,i=>i.preventDefault())})}),Zc=N((e,t)=>{const n=H(ne,e.__scopeDialog),r=E(!1),o=E(!1);return p(Hr,{...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 c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Hr=N((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=H(ne,n),a=E(null),u=$(t,a);return Xs(),p(h.Fragment,{children:[p(Ar,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:p(Nr,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Mt(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),p(h.Fragment,{children:[p(Vc,{titleId:s.titleId}),p(qc,{contentRef:a,descriptionId:s.descriptionId})]})]})}),xt="DialogTitle",Zr=N((e,t)=>{const{__scopeDialog:n,...r}=e,o=H(xt,n);return p(z.h2,{id:o.titleId,...r,ref:t})});Zr.displayName=xt;var Vr="DialogDescription",Kr=N((e,t)=>{const{__scopeDialog:n,...r}=e,o=H(Vr,n);return p(z.p,{id:o.descriptionId,...r,ref:t})});Kr.displayName=Vr;var qr="DialogClose",Gr=N((e,t)=>{const{__scopeDialog:n,...r}=e,o=H(qr,n);return p(z.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Gr.displayName=qr;function Mt(e){return e?"open":"closed"}var Yr="DialogTitleWarning",[ra,Xr]=Ti(Yr,{contentName:ne,titleName:xt,docsSlug:"dialog"}),Vc=({titleId:e})=>{const t=Xr(Yr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tc="DialogDescriptionWarning",nc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fr(tc).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rc=tr,oc=or,sc=ir,ic=ar,Vt=ur;const cc=({noTarget:e=!0,heading:t="We use cookies.",subheading:n="Please define your selection below.",selectLabel:r="Select",hideLabel:o="Hide",saveLabel:s="Save selection",declineLabel:c="Decline all",defaultSettingsOpen:i=!0,privacyPolicy:u,items:a})=>{const{onSave:d,onDeclineAll:l,selectionTaken:m}=Fn(),[h,b]=S.useState(void 0),[p,_]=S.useState(i);return v(rc,{open:!m,children:v(oc,{className:dt(x.root,e?x.noTarget:""),children:v(gn,{open:p,onOpenChange:_,className:x.collapsible,children:[v("div",{className:x.header,children:[v("div",{className:x.heading,children:[v(sc,{asChild:!0,children:v(K,{weight:"bold",children:t})}),v(ic,{asChild:!0,children:v(K,{size:"caption",color:"muted",children:n})})]}),v(yn,{asChild:!0,children:v(He,{variant:"ghost",children:[p?o:r," ",v(As,{size:12,className:rt({[x.chevron]:!0,[x.open]:p})})]})})]}),v(bn,{className:rt({[x.settings]:!0}),children:v(gs,{type:"single",collapsible:!0,value:h,onValueChange:b,children:a.map(g=>v(Us,{...g,openItem:h},g.value))})}),v("div",{className:x.footer,children:[v("div",{className:x.legal,children:u&&v(K,{size:"caption",children:v("a",{href:u.url,target:"_blank",children:u.label})})}),v("div",{className:x.actions,children:[v(Vt,{asChild:!0,children:v(He,{variant:"neutral",onClick:()=>l(),children:c})}),v(Vt,{asChild:!0,children:v(He,{variant:"brand",onClick:()=>d(),children:s})})]})]})]})})})},ac=({localStorageKey:e="cb-selection",items:t,...n})=>{const r=S.useMemo(()=>t.filter(o=>!o.required).map(o=>({value:o.value,script:o.script,defaultSelected:o.defaultSelected,required:o.required})),[t]);return v(Bs,{items:r,localStorageKey:e,children:v(cc,{items:t,...n})})};function lc(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;Cr(v(ac,{noTarget:n,...e}),r??document.body)}exports.mountBanner=lc;
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Kc="DialogDescriptionWarning",qc=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xr(Kc).contentName}}.`;return P(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Gc=jr,Yc=Br,Xc=Zr,Jc=Kr,bn=Gr;const Qc=({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:c="Decline all",defaultSettingsOpen:s=!0,privacyPolicy:a,items:u})=>{const{onSave:l,onDeclineAll:d,selectionTaken:_}=Sr(),[g,y]=I(void 0),[f,v]=I(s);return p(Gc,{open:!_,children:p(Yc,{className:Ot(F.root,e?F.noTarget:""),children:p(rr,{open:f,onOpenChange:v,className:F.collapsible,children:[p("div",{className:F.header,children:[p("div",{className:F.heading,children:[p(Xc,{asChild:!0,children:p(te,{weight:"bold",children:t})}),p(Jc,{asChild:!0,children:p(te,{size:"caption",color:"muted",children:n})})]}),p(or,{asChild:!0,children:p(nt,{variant:"ghost",children:[f?o:r," ",p(Cs,{size:12,className:ft({[F.chevron]:!0,[F.open]:f})})]})})]}),p(ir,{className:ft({[F.settings]:!0}),children:p(ls,{type:"single",collapsible:!0,value:g,onValueChange:y,children:u.map(m=>p(Ms,{...m,openItem:g},m.value))})}),p("div",{className:F.footer,children:[p("div",{className:F.legal,children:a&&p(te,{size:"caption",children:p("a",{href:a.url,target:"_blank",children:a.label})})}),p("div",{className:F.actions,children:[p(bn,{asChild:!0,children:p(nt,{variant:"neutral",onClick:()=>d(),children:c})}),p(bn,{asChild:!0,children:p(nt,{variant:"brand",onClick:()=>l(),children:i})})]})]})]})})})},ea=({localStorageKey:e="cb-selection",items:t,...n})=>{const r=D(()=>t.filter(o=>!o.required).map(o=>({value:o.value,script:o.script,defaultSelected:o.defaultSelected,required:o.required})),[t]);return p(xs,{items:r,localStorageKey:e,children:p(Qc,{items:t,...n})})};function ta(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;h.render(p(ea,{noTarget:n,...e}),r??document.body)}exports.mountBanner=ta;