@uninspired/cookie-banner 0.0.16 → 0.0.17

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.
@@ -2006,11 +2006,19 @@ class Cookies {
2006
2006
  );
2007
2007
  };
2008
2008
  set = (key, value, ttl = 365) => {
2009
+ if (typeof document === "undefined") {
2010
+ console.log("Can't set cookie in non-browser environment");
2011
+ return;
2012
+ }
2009
2013
  const expires = new Date(Date.now() + ttl * 24 * 60 * 60 * 1e3);
2010
2014
  const cookie = `${this.#prefix}${key}=${this.#serialize(value)}; expires=${expires}; path=/; domain=${this.#domain}; SameSite=${this.#sameSite}; ${this.#secure ? "secure" : ""}`;
2011
2015
  document.cookie = cookie;
2012
2016
  };
2013
2017
  get = (key) => {
2018
+ if (typeof document === "undefined") {
2019
+ console.log("Can't get cookie in non-browser environment");
2020
+ return;
2021
+ }
2014
2022
  const match = document.cookie.match(
2015
2023
  new RegExp(`(?:^|; )${this.#prefix}${key}=([^;]*)`)
2016
2024
  );
@@ -2004,11 +2004,19 @@ class Cookies {
2004
2004
  );
2005
2005
  };
2006
2006
  set = (key, value, ttl = 365) => {
2007
+ if (typeof document === "undefined") {
2008
+ console.log("Can't set cookie in non-browser environment");
2009
+ return;
2010
+ }
2007
2011
  const expires = new Date(Date.now() + ttl * 24 * 60 * 60 * 1e3);
2008
2012
  const cookie = `${this.#prefix}${key}=${this.#serialize(value)}; expires=${expires}; path=/; domain=${this.#domain}; SameSite=${this.#sameSite}; ${this.#secure ? "secure" : ""}`;
2009
2013
  document.cookie = cookie;
2010
2014
  };
2011
2015
  get = (key) => {
2016
+ if (typeof document === "undefined") {
2017
+ console.log("Can't get cookie in non-browser environment");
2018
+ return;
2019
+ }
2012
2020
  const match = document.cookie.match(
2013
2021
  new RegExp(`(?:^|; )${this.#prefix}${key}=([^;]*)`)
2014
2022
  );
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("preact");var ro=0;function f(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:--ro,__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 v.options.vnode&&v.options.vnode(u),u}var q,R,tt,$t,pe=0,Sn=[],k=v.options,Lt=k.__b,Ft=k.__r,Ut=k.diffed,jt=k.__c,Wt=k.unmount,Bt=k.__;function se(e,t){k.__h&&k.__h(R,e,pe||t),pe=0;var n=R.__H||(R.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function T(e){return pe=1,Pe(wn,e)}function Pe(e,t,n){var r=se(q++,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=R,!R.__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 h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(d=!0)}}),i&&i.call(this,s,a,u)||d};R.__f=!0;var i=R.shouldComponentUpdate,c=R.componentWillUpdate;R.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)},R.shouldComponentUpdate=o}return r.__N||r.__}function O(e,t){var n=se(q++,3);!k.__s&&yt(n.__H,t)&&(n.__=e,n.u=t,R.__H.__h.push(n))}function ee(e,t){var n=se(q++,4);!k.__s&&yt(n.__H,t)&&(n.__=e,n.u=t,R.__h.push(n))}function N(e){return pe=5,x(function(){return{current:e}},[])}function ht(e,t,n){pe=6,ee(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 x(e,t){var n=se(q++,7);return yt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function M(e,t){return pe=8,x(function(){return e},t)}function Y(e){var t=R.context[e.__c],n=se(q++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(R)),t.props.value):e.__}function mt(e,t){k.useDebugValue&&k.useDebugValue(t?t(e):e)}function oo(e){var t=se(q++,10),n=T();return t.__=e,R.componentDidCatch||(R.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function gt(){var e=se(q++,11);if(!e.__){for(var t=R.__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 io(){for(var e;e=Sn.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Le),t.__h.some(dt),t.__h=[]}catch(n){t.__h=[],k.__e(n,e.__v)}}}k.__b=function(e){R=null,Lt&&Lt(e)},k.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Bt&&Bt(e,t)},k.__r=function(e){Ft&&Ft(e),q=0;var t=(R=e.__c).__H;t&&(tt===R?(t.__h=[],R.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Le),t.__h.some(dt),t.__h=[],q=0)),tt=R},k.diffed=function(e){Ut&&Ut(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Sn.push(t)!==1&&$t===k.requestAnimationFrame||(($t=k.requestAnimationFrame)||so)(io)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),tt=R=null},k.__c=function(e,t){t.some(function(n){try{n.__h.some(Le),n.__h=n.__h.filter(function(r){return!r.__||dt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],k.__e(r,n.__v)}}),jt&&jt(e,t)},k.unmount=function(e){Wt&&Wt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Le(r)}catch(o){t=o}}),n.__H=void 0,t&&k.__e(t,n.__v))};var Ht=typeof requestAnimationFrame=="function";function so(e){var t,n=function(){clearTimeout(r),Ht&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ht&&(t=requestAnimationFrame(n))}function Le(e){var t=R,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),R=t}function dt(e){var t=R;e.__c=e.__(),R=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 Pn(e,t){for(var n in t)e[n]=t[n];return e}function ft(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=T({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ee(function(){o.__=n,o.u=t,nt(o)&&i({t:o})},[e,n,t]),O(function(){return nt(o)&&i({t:o}),e(function(){nt(o)&&i({t:o})})},[e]),n}function nt(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 Et(e){return e}function St(){return[!1,Ct]}var wt=ee;function We(e,t){this.props=e,this.context=t}function Nn(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:ft(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v.createElement(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(We.prototype=new v.Component).isPureReactComponent=!0,We.prototype.shouldComponentUpdate=function(e,t){return ft(this.props,e)||ft(this.state,t)};var Zt=v.options.__b;v.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zt&&Zt(e)};var co=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function A(e){function t(n){var r=Pn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=co,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:v.toChildArray(v.toChildArray(e).map(t))},V={map:Vt,forEach:Vt,count:function(e){return e?v.toChildArray(e).length:0},only:function(e){var t=v.toChildArray(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:v.toChildArray},ao=v.options.__e;v.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)}ao(e,t,n,r)};var Kt=v.options.unmount;function On(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=Pn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return On(r,t,n)})),e}function An(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return An(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 Rn(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function In(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?v.createElement(o,c):null}return i.displayName="Lazy",i.__f=!0,i}function de(){this.i=null,this.l=null}v.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 v.Component).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Rn(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]=An(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]=On(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v.createElement(v.Fragment,null,e.fallback);return o&&(o.__u&=-33),[v.createElement(v.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 uo(e){return this.getChildContext=function(){return e.context},e.children}function lo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){v.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)}}}v.render(v.createElement(uo,{context:t.context},e.__v),t.v)}function Tn(e,t){var n=v.createElement(lo,{__v:e,h:t});return n.containerInfo=t,n}(de.prototype=new v.Component).__a=function(e){var t=this,n=Rn(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()}},de.prototype.render=function(e){this.i=null,this.l=new Map;var t=v.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},de.prototype.componentDidUpdate=de.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){qt(e,n,t)})};var kn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,fo=/^(?: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]/,po=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_o=/[A-Z0-9]/g,vo=typeof document<"u",ho=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Dn(e,t,n){return t.__k==null&&(t.textContent=""),v.render(e,t),typeof n=="function"&&n(),e?e.__c:null}function xn(e,t,n){return v.hydrate(e,t),typeof n=="function"&&n(),e?e.__c:null}v.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(v.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=v.options.event;function mo(){}function go(){return this.cancelBubble}function yo(){return this.defaultPrevented}v.options.event=function(e){return Gt&&(e=Gt(e)),e.persist=mo,e.isPropagationStopped=go,e.isDefaultPrevented=yo,e.nativeEvent=e};var Pt,bo={enumerable:!1,configurable:!0,get:function(){return this.class}},Yt=v.options.vnode;v.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||vo&&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"||ho(n.type)?a==="onfocus"?c="onfocusin":a==="onblur"?c="onfocusout":po.test(c)&&(c=a):a=c="oninput":i&&fo.test(c)?c=c.replace(_o,"-$&").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=v.toChildArray(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=v.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",bo)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=kn,Yt&&Yt(e)};var Xt=v.options.__r;v.options.__r=function(e){Xt&&Xt(e),Pt=e.__c};var Jt=v.options.diffed;v.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 zn={ReactCurrentDispatcher:{current:{readContext:function(e){return Pt.__n[e.__c].props.value},useCallback:M,useContext:Y,useDebugValue:mt,useDeferredValue:Et,useEffect:O,useId:gt,useImperativeHandle:ht,useInsertionEffect:wt,useLayoutEffect:ee,useMemo:x,useReducer:Pe,useRef:N,useState:T,useSyncExternalStore:bt,useTransition:St}}},Co="18.3.1";function Mn(e){return v.createElement.bind(null,e)}function G(e){return!!e&&e.$$typeof===kn}function $n(e){return G(e)&&e.type===v.Fragment}function Ln(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function _e(e){return G(e)?v.cloneElement.apply(null,arguments):e}function Fn(e){return!!e.__k&&(v.render(null,e),!0)}function Un(e){return e&&(e.base||e.nodeType===1&&e)||null}var jn=function(e,t){return e(t)},Nt=function(e,t){return e(t)},Wn=v.Fragment,Bn=G,D={useState:T,useId:gt,useReducer:Pe,useEffect:O,useLayoutEffect:ee,useInsertionEffect:wt,useTransition:St,useDeferredValue:Et,useSyncExternalStore:bt,startTransition:Ct,useRef:N,useImperativeHandle:ht,useMemo:x,useCallback:M,useContext:Y,useDebugValue:mt,version:"18.3.1",Children:V,render:Dn,hydrate:xn,unmountComponentAtNode:Fn,createPortal:Tn,createElement:v.createElement,createContext:v.createContext,createFactory:Mn,cloneElement:_e,createRef:v.createRef,Fragment:v.Fragment,isValidElement:G,isElement:Bn,isFragment:$n,isMemo:Ln,findDOMNode:Un,Component:v.Component,PureComponent:We,memo:Nn,forwardRef:A,flushSync:Nt,unstable_batchedUpdates:jn,StrictMode:Wn,Suspense:be,SuspenseList:de,lazy:In,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zn};const Hn=Object.freeze(Object.defineProperty({__proto__:null,Children:V,Component:v.Component,Fragment:v.Fragment,PureComponent:We,StrictMode:Wn,Suspense:be,SuspenseList:de,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zn,cloneElement:_e,createContext:v.createContext,createElement:v.createElement,createFactory:Mn,createPortal:Tn,createRef:v.createRef,default:D,findDOMNode:Un,flushSync:Nt,forwardRef:A,hydrate:xn,isElement:Bn,isFragment:$n,isMemo:Ln,isValidElement:G,lazy:In,memo:Nn,render:Dn,startTransition:Ct,unmountComponentAtNode:Fn,unstable_batchedUpdates:jn,useCallback:M,useContext:Y,useDebugValue:mt,useDeferredValue:Et,useEffect:O,useErrorBoundary:oo,useId:gt,useImperativeHandle:ht,useInsertionEffect:wt,useLayoutEffect:ee,useMemo:x,useReducer:Pe,useRef:N,useState:T,useSyncExternalStore:bt,useTransition:St,version:Co},Symbol.toStringTag,{value:"Module"}));function Zn(...e){return e.filter(Boolean).join(" ")}function Fe(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}const Eo="_root_hw69b_1",So="_neutral_hw69b_17",wo="_brand_hw69b_30",Po="_ghost_hw69b_43",Qt={root:Eo,neutral:So,brand:wo,ghost:Po},rt=({variant:e="neutral",...t})=>f("button",{className:Zn(Qt.root,Qt[e]),...t}),No="_root_14l5h_1",Oo="_muted_14l5h_4",Ao="_body_14l5h_8",Ro="_normal_14l5h_14",Io="_bold_14l5h_18",To="_caption_14l5h_23",Ie={root:No,muted:Oo,body:Ao,normal:Ro,bold:Io,caption:To},re=({as:e="span",size:t="body",weight:n="normal",color:r="default",...o})=>f(e??"span",{className:Zn(Ie.root,Ie[t],Ie[n],Ie[r]),...o}),ko="_root_8pi9z_53",Do="_noTarget_8pi9z_66",xo="_collapsible_8pi9z_73",zo="_header_8pi9z_76",Mo="_heading_8pi9z_83",$o="_chevron_8pi9z_89",Lo="_open_8pi9z_94",Fo="_settings_8pi9z_100",Uo="_footer_8pi9z_114",jo="_legal_8pi9z_121",Wo="_actions_8pi9z_124",U={root:ko,noTarget:Do,collapsible:xo,header:zo,heading:Mo,chevron:$o,open:Lo,settings:Fo,footer:Uo,legal:jo,actions:Wo},Bo="_root_mqtha_19",Ho="_header_mqtha_24",Zo="_label_mqtha_33",Vo="_actions_mqtha_39",Ko="_chevron_mqtha_45",qo="_open_mqtha_51",Go="_description_mqtha_58",ne={root:Bo,header:Ho,label:Zo,actions:Vo,chevron:Ko,open:qo,description:Go};function z(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 Yo={};function ve(e){return Yo}function Xo(e,t){return typeof t=="bigint"?t.toString():t}function Vn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Kn(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 Z(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 qn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Be(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Jo(e){if(Be(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Be(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 he(e){return{}}function ei(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 Te(e){return typeof e=="string"?e:e?.message}function me(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=Te(e.inst?._zod.def?.error?.(e))??Te(t?.error?.(e))??Te(n.customError?.(e))??Te(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const Gn=(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,Xo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ti=z("$ZodError",Gn),qe=z("$ZodError",Gn,{Parent:Error}),ni=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=>me(a,i,ve())));throw qn(s,o?.callee),s}return c.value},ri=ni(qe),oi=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=>me(a,i,ve())));throw qn(s,o?.callee),s}return c.value},ii=oi(qe),si=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??ti)(i.issues.map(c=>me(c,o,ve())))}:{success:!0,data:i.value}},Yn=si(qe),ci=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=>me(c,o,ve())))}:{success:!0,data:i.value}},Xn=ci(qe),ai=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ui=/^-?\d+(?:\.\d+)?$/,li=/^(?:true|false)$/i,di={major:4,minor:3,patch:6},te=z("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=di;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,h=d._zod.check(c);if(h instanceof Promise&&a?.async===!1)throw new Ce;if(l||h instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await h,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)}}Z(e,"~standard",()=>({validate:o=>{try{const i=Yn(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Xn(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),fi=z("$ZodString",(e,t)=>{te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ai(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}}),pi=z("$ZodBoolean",(e,t)=>{te.init(e,t),e._zod.pattern=li,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 He(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 _i(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=ei(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function vi(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(h=>He(h,n,d,t,l))):He(_,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 hi=z("$ZodObject",(e,t)=>{if(te.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=Vn(()=>_i(t));Z(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=Be,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 h=d[_],S=h._zod.optout==="optional",p=h._zod.run({value:u[_],issues:[]},a);p instanceof Promise?l.push(p.then(m=>He(m,s,_,u,S))):He(p,s,_,u,S)}return i?vi(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=>me(c,r,ve())))}),t)}const mi=z("$ZodUnion",(e,t)=>{te.init(e,t),Z(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Z(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=>Kn(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)}}),gi=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,mi.init(e,t);const n=e._zod.parse;Z(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=Vn(()=>{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(!Be(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)}}),yi=z("$ZodRecord",(e,t)=>{te.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Jo(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"&&ui.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=>me(d,r,ve())),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}}),bi=z("$ZodLiteral",(e,t)=>{if(te.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 Ci=z("$ZodOptional",(e,t)=>{te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Kn(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 Ei(e,t){return new e({type:"string",...he()})}function Si(e,t){return new e({type:"boolean",...he()})}const ce=z("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");te.init(e,t),e.def=t,e.type=t.type,e.parse=(n,r)=>ri(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Yn(e,n,r),e.parseAsync=async(n,r)=>ii(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Xn(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)}),wi=z("ZodMiniString",(e,t)=>{fi.init(e,t),ce.init(e,t)});function K(e){return Ei(wi)}const Pi=z("ZodMiniBoolean",(e,t)=>{pi.init(e,t),ce.init(e,t)});function Se(e){return Si(Pi)}const Ni=z("ZodMiniObject",(e,t)=>{hi.init(e,t),ce.init(e,t),Z(e,"shape",()=>t.shape)});function Jn(e,t){const n={type:"object",shape:e??{},...he()};return new Ni(n)}const Oi=z("ZodMiniDiscriminatedUnion",(e,t)=>{gi.init(e,t),ce.init(e,t)});function Ai(e,t,n){return new Oi({type:"union",options:t,discriminator:e,...he()})}const Ri=z("ZodMiniRecord",(e,t)=>{yi.init(e,t),ce.init(e,t)});function Ii(e,t,n){return new Ri({type:"record",keyType:e,valueType:t,...he()})}const Ti=z("ZodMiniLiteral",(e,t)=>{bi.init(e,t),ce.init(e,t)});function Qn(e,t){return new Ti({type:"literal",values:Array.isArray(e)?e:[e],...he()})}const ki=z("ZodMiniOptional",(e,t)=>{Ci.init(e,t),ce.init(e,t)});function Q(e){return new ki({type:"optional",innerType:e})}const Di=Jn({id:K(),variant:Qn("remote"),type:Q(K()),src:K(),async:Q(Se()),defer:Q(Se()),crossorigin:Q(K()),integrity:Q(K())}),xi=Jn({id:K(),variant:Qn("inline"),type:Q(K()),async:Q(Se()),defer:Q(Se()),content:K()}),zi=Ai("variant",[Di,xi]);function Mi(e,t){const n=v.createContext(t),r=i=>{const{children:c,...s}=i,a=x(()=>s,Object.values(s));return f(n.Provider,{value:a,children:c})};r.displayName=e+"Provider";function o(i){const c=Y(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=v.createContext(c),a=n.length;n=[...n,c];const u=d=>{const{scope:_,children:h,...S}=d,p=_?.[e]?.[a]||s,m=x(()=>S,Object.values(S));return f(p.Provider,{value:m,children:h})};u.displayName=i+"Provider";function l(d,_){const h=_?.[e]?.[a]||s,S=Y(h);if(S)return S;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=>v.createContext(c));return function(s){const a=s?.[e]||i;return x(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,$i(o,...t)]}function $i(...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 x(()=>({[`__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 er(...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 F(...e){return M(er(...e),e)}function Ze(e){const t=Li(e),n=A((r,o)=>{const{children:i,...c}=r,s=V.toArray(i),a=s.find(Ui);if(a){const u=a.props.children,l=s.map(d=>d===a?V.count(u)>1?V.only(null):G(u)?u.props.children:null:d);return f(t,{...c,ref:o,children:G(u)?_e(u,void 0,l):null})}return f(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Li(e){const t=A((n,r)=>{const{children:o,...i}=n;if(G(o)){const c=Wi(o),s=ji(i,o.props);return o.type!==v.Fragment&&(s.ref=r?er(r,c):c),_e(o,s)}return V.count(o)>1?V.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fi=Symbol("radix.slottable");function Ui(e){return G(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fi}function ji(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 Wi(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 Bi(e){const t=e+"CollectionProvider",[n,r]=Ne(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=p=>{const{scope:m,children:b}=p,g=D.useRef(null),C=D.useRef(new Map).current;return f(o,{scope:m,itemMap:C,collectionRef:g,children:b})};c.displayName=t;const s=e+"CollectionSlot",a=Ze(s),u=D.forwardRef((p,m)=>{const{scope:b,children:g}=p,C=i(s,b),y=F(m,C.collectionRef);return f(a,{ref:y,children:g})});u.displayName=s;const l=e+"CollectionItemSlot",d="data-radix-collection-item",_=Ze(l),h=D.forwardRef((p,m)=>{const{scope:b,children:g,...C}=p,y=D.useRef(null),P=F(m,y),E=i(l,b);return D.useEffect(()=>(E.itemMap.set(y,{ref:y,...C}),()=>{E.itemMap.delete(y)})),f(_,{[d]:"",ref:P,children:g})});h.displayName=l;function S(p){const m=i(e+"CollectionConsumer",p);return D.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const C=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((E,w)=>C.indexOf(E.ref.current)-C.indexOf(w.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:c,Slot:u,ItemSlot:h},S,r]}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var oe=globalThis?.document?ee:()=>{},Hi=Hn[" useInsertionEffect ".trim().toString()]||oe;function Oe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=Zi({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const l=N(e!==void 0);O(()=>{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=Vi(l)?l(e):l;d!==e&&c.current?.(d)}else i(l)},[s,e,i,c]);return[a,u]}function Zi({defaultProp:e,onChange:t}){const[n,r]=T(e),o=N(n),i=N(t);return Hi(()=>{i.current=t},[t]),O(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Vi(e){return typeof e=="function"}var Ki=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=Ki.reduce((e,t)=>{const n=Ze(`Primitive.${t}`),r=A((o,i)=>{const{asChild:c,...s}=o,a=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f(a,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qi(e,t){e&&Nt(()=>e.dispatchEvent(t))}function Gi(e,t){return Pe((n,r)=>t[n][r]??n,e)}var Ae=e=>{const{present:t,children:n}=e,r=Yi(t),o=typeof n=="function"?n({present:r.isPresent}):V.only(n),i=F(r.ref,Xi(o));return typeof n=="function"||r.isPresent?_e(o,{ref:i}):null};Ae.displayName="Presence";function Yi(e){const[t,n]=T(),r=N(null),o=N(e),i=N("none"),c=e?"mounted":"unmounted",[s,a]=Gi(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O(()=>{const u=ke(r.current);i.current=s==="mounted"?u:"none"},[s]),oe(()=>{const u=r.current,l=o.current;if(l!==e){const _=i.current,h=ke(u);e?a("MOUNT"):h==="none"||u?.display==="none"?a("UNMOUNT"):a(l&&_!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),oe(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,d=h=>{const p=ke(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(a("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},_=h=>{h.target===t&&(i.current=ke(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 ke(e){return e?.animationName||"none"}function Xi(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 Ji=Hn[" useId ".trim().toString()]||(()=>{}),Qi=0;function Ee(e){const[t,n]=T(Ji());return oe(()=>{n(r=>r??String(Qi++))},[e]),e||(t?`radix-${t}`:"")}var Ge="Collapsible",[es,tr]=Ne(Ge),[ts,Ot]=es(Ge),nr=A((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:Ge});return f(ts,{scope:n,disabled:i,contentId:Ee(),open:a,onOpenToggle:M(()=>u(l=>!l),[u]),children:f($.div,{"data-state":Rt(a),"data-disabled":i?"":void 0,...s,ref:t})})});nr.displayName=Ge;var rr="CollapsibleTrigger",or=A((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ot(rr,n);return f($.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Rt(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});or.displayName=rr;var At="CollapsibleContent",ir=A((e,t)=>{const{forceMount:n,...r}=e,o=Ot(At,e.__scopeCollapsible);return f(Ae,{present:n||o.open,children:({present:i})=>f(ns,{...r,ref:t,present:i})})});ir.displayName=At;var ns=A((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,c=Ot(At,n),[s,a]=T(r),u=N(null),l=F(t,u),d=N(0),_=d.current,h=N(0),S=h.current,p=c.open||s,m=N(p),b=N(void 0);return O(()=>{const g=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(g)},[]),oe(()=>{const g=u.current;if(g){b.current=b.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const C=g.getBoundingClientRect();d.current=C.height,h.current=C.width,m.current||(g.style.transitionDuration=b.current.transitionDuration,g.style.animationName=b.current.animationName),a(r)}},[c.open,r]),f($.div,{"data-state":Rt(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!p,...i,ref:l,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:p&&o})});function Rt(e){return e?"open":"closed"}var sr=nr,cr=or,ar=ir,rs=v.createContext(void 0);function os(e){const t=Y(rs);return e||t||"ltr"}var W="Accordion",is=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[It,ss,cs]=Bi(W),[Ye]=Ne(W,[cs,tr]),Tt=tr(),ur=D.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return f(It.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?f(ds,{...i,ref:t}):f(ls,{...o,ref:t})})});ur.displayName=W;var[lr,as]=Ye(W),[dr,us]=Ye(W,{collapsible:!1}),ls=D.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:W});return f(lr,{scope:e.__scopeAccordion,value:D.useMemo(()=>s?[s]:[],[s]),onItemOpen:a,onItemClose:D.useCallback(()=>i&&a(""),[i,a]),children:f(dr,{scope:e.__scopeAccordion,collapsible:i,children:f(fr,{...c,ref:t})})})}),ds=D.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[c,s]=Oe({prop:n,defaultProp:r??[],onChange:o,caller:W}),a=D.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=D.useCallback(l=>s((d=[])=>d.filter(_=>_!==l)),[s]);return f(lr,{scope:e.__scopeAccordion,value:c,onItemOpen:a,onItemClose:u,children:f(dr,{scope:e.__scopeAccordion,collapsible:!0,children:f(fr,{...i,ref:t})})})}),[fs,Xe]=Ye(W),fr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...c}=e,s=D.useRef(null),a=F(s,t),u=ss(n),d=os(o)==="ltr",_=j(e.onKeyDown,h=>{if(!is.includes(h.key))return;const S=h.target,p=u().filter(I=>!I.ref.current?.disabled),m=p.findIndex(I=>I.ref.current===S),b=p.length;if(m===-1)return;h.preventDefault();let g=m;const C=0,y=b-1,P=()=>{g=m+1,g>y&&(g=C)},E=()=>{g=m-1,g<C&&(g=y)};switch(h.key){case"Home":g=C;break;case"End":g=y;break;case"ArrowRight":i==="horizontal"&&(d?P():E());break;case"ArrowDown":i==="vertical"&&P();break;case"ArrowLeft":i==="horizontal"&&(d?E():P());break;case"ArrowUp":i==="vertical"&&E();break}const w=g%b;p[w].ref.current?.focus()});return f(fs,{scope:n,disabled:r,direction:o,orientation:i,children:f(It.Slot,{scope:n,children:f($.div,{...c,"data-orientation":i,ref:a,onKeyDown:r?void 0:_})})})}),Ve="AccordionItem",[ps,kt]=Ye(Ve),pr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=Xe(Ve,n),c=as(Ve,n),s=Tt(n),a=Ee(),u=r&&c.value.includes(r)||!1,l=i.disabled||e.disabled;return f(ps,{scope:n,open:u,disabled:l,triggerId:a,children:f(sr,{"data-orientation":i.orientation,"data-state":gr(u),...s,...o,ref:t,disabled:l,open:u,onOpenChange:d=>{d?c.onItemOpen(r):c.onItemClose(r)}})})});pr.displayName=Ve;var _r="AccordionHeader",_s=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xe(W,n),i=kt(_r,n);return f($.h3,{"data-orientation":o.orientation,"data-state":gr(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});_s.displayName=_r;var pt="AccordionTrigger",vr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xe(W,n),i=kt(pt,n),c=us(pt,n),s=Tt(n);return f(It.ItemSlot,{scope:n,children:f(cr,{"aria-disabled":i.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})});vr.displayName=pt;var hr="AccordionContent",mr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xe(W,n),i=kt(hr,n),c=Tt(n);return f(ar,{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}})});mr.displayName=hr;function gr(e){return e?"open":"closed"}var vs=ur,hs=pr,sn=vr,ms=mr;const yr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const gs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ys=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const cn=e=>{const t=ys(e);return t.charAt(0).toUpperCase()+t.slice(1)};var bs={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 Cs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Es=A(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:c,...s},a)=>v.createElement("svg",{ref:a,...bs,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yr("lucide",o),...!i&&!Cs(s)&&{"aria-hidden":"true"},...s},[...c.map(([u,l])=>v.createElement(u,l)),...Array.isArray(i)?i:[i]]));const br=(e,t)=>{const n=A(({className:r,...o},i)=>v.createElement(Es,{ref:i,iconNode:t,className:yr(`lucide-${gs(cn(e))}`,`lucide-${e}`,r),...o}));return n.displayName=cn(e),n};const Ss=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ws=br("chevron-down",Ss);const Ps=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ns=br("chevron-up",Ps);function Os(e){const t=N({value:e,previous:e});return x(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function As(e){const[t,n]=T(void 0);return oe(()=>{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 Je="Switch",[Rs]=Ne(Je),[Is,Ts]=Rs(Je),Cr=A((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:c,disabled:s,value:a="on",onCheckedChange:u,form:l,...d}=e,[_,h]=T(null),S=F(t,C=>h(C)),p=N(!1),m=_?l||!!_.closest("form"):!0,[b,g]=Oe({prop:o,defaultProp:i??!1,onChange:u,caller:Je});return f(Is,{scope:n,checked:b,disabled:s,children:[f($.button,{type:"button",role:"switch","aria-checked":b,"aria-required":c,"data-state":Pr(b),"data-disabled":s?"":void 0,disabled:s,value:a,...d,ref:S,onClick:j(e.onClick,C=>{g(y=>!y),m&&(p.current=C.isPropagationStopped(),p.current||C.stopPropagation())})}),m&&f(wr,{control:_,bubbles:!p.current,name:r,value:a,checked:b,required:c,disabled:s,form:l,style:{transform:"translateX(-100%)"}})]})});Cr.displayName=Je;var Er="SwitchThumb",Sr=A((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Ts(Er,n);return f($.span,{"data-state":Pr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Sr.displayName=Er;var ks="SwitchBubbleInput",wr=A(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const c=N(null),s=F(c,i),a=Os(n),u=As(t);return O(()=>{const l=c.current;if(!l)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&h){const S=new Event("click",{bubbles:r});h.call(l,n),l.dispatchEvent(S)}},[a,n,r]),f("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}})});wr.displayName=ks;function Pr(e){return e?"checked":"unchecked"}var Ds=Cr,xs=Sr;const zs="_root_dibqz_1",Ms="_thumb_dibqz_38",De={root:zs,switch:"_switch_dibqz_8",thumb:Ms},$s=({label:e,id:t,...n})=>f("div",{className:De.root,children:[e&&f(re,{className:De.label,as:"label",htmlFor:t,children:e}),f(Ds,{className:De.switch,...n,children:f(xs,{className:De.thumb})})]}),Ls=Ii(K(),Se());class an{#t;#e;#n;#r;constructor(t){this.#t=t.domain,this.#e=t.prefix??"us-cookie-banner-",this.#n=t.sameSite??"lax",this.#r=t.secure??!0}#o=t=>btoa(String.fromCharCode(...new TextEncoder().encode(t)));#i=t=>new TextDecoder().decode(Uint8Array.from(atob(t),n=>n.charCodeAt(0)));set=(t,n,r=365)=>{const o=new Date(Date.now()+r*24*60*60*1e3),i=`${this.#e}${t}=${this.#o(n)}; expires=${o}; path=/; domain=${this.#t}; SameSite=${this.#n}; ${this.#r?"secure":""}`;document.cookie=i};get=t=>{const n=document.cookie.match(new RegExp(`(?:^|; )${this.#e}${t}=([^;]*)`));if(!n)return null;const[r,o]=n;return o?this.#i(o):null};remove=t=>{this.set(t,"",-1)}}const un="selection",Nr=v.createContext(null),Fs=({children:e,items:t,cookie:n})=>{const{domain:r,prefix:o,sameSite:i,secure:c}=n,[s,a]=T(new an({domain:r,prefix:o,sameSite:i,secure:c}));O(()=>{a(new an({domain:r,prefix:o,sameSite:i,secure:c}))},[r,o,i,c]);function u(){const y=s.get(un);if(!y)return null;const{success:P,data:E}=Ls.safeParse(JSON.parse(y));return P?E:null}const l=x(()=>Object.fromEntries(t.map(y=>[y.value,y.defaultSelected??!1])),[t]),[d,_]=T(u()??l),[h,S]=T(u());function p(y,P){const E=d?{...d,[y]:P}:{[y]:P};_(E)}O(()=>{let y=[];h!==null&&(y=Object.entries(h).filter(([E,w])=>w).map(([E])=>E));const P=t.filter(E=>y.includes(E.value));for(const E of t)if(E.scripts)for(const w of E.scripts){const I=document.head.querySelector(`#${E.value}-${w.id}`);I&&I.remove()}for(const E of P){if(!E.scripts){E.required||console.warn("CookieBanner: Missing script for",E.value);continue}for(const w of E.scripts){if(!w)continue;const I=document.createElement("script");I.id=`${E.value}-${w.id}`;const{success:X,data:L}=zi.safeParse(w);if(!X){console.error("CookieBanner: Invalid script definition for",E.value);continue}switch(I.type=L.type??"text/javascript",I.async=L.async??!1,I.defer=L.defer??!1,L.variant){case"inline":I.textContent=L.content;break;case"remote":I.src=L.src,I.crossOrigin=L.crossorigin??null,I.integrity=L.integrity??"";break}document.head.appendChild(I)}}},[h,t]);function m(y){S(y),s.set(un,JSON.stringify(y))}const b=M(()=>{const y=Object.fromEntries(t.map(P=>[P.value,!1]));_(y),m(y)},[t]),g=M(()=>{m(d),location.reload()},[d]),C=x(()=>{if(!h)return!1;const y=Object.keys(h);return t.map(E=>E.value).every(E=>y.includes(E))},[h,t]);return f(Nr.Provider,{value:{selection:d,toggleSelection:p,onDeclineAll:b,onSave:g,selectionTaken:C},children:e})};function Or(){const e=Y(Nr);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:i})=>{const{toggleSelection:c,selection:s}=Or(),a=x(()=>s?.[e]??!1,[s,e]);O(()=>{c(e,a)},[e,a]);const u=x(()=>r?!0:a,[r,a]),l=x(()=>_=>r?()=>{}:c(e,_),[r,c,e]),d=x(()=>r,[r]);return f(hs,{value:e,className:ne.root,children:[f("div",{className:ne.header,children:[f(sn,{asChild:!0,children:f("div",{className:ne.label,children:[f(re,{weight:"bold",children:t}),n&&f(re,{size:"caption",color:"muted",children:n})]})}),f("div",{className:ne.actions,children:[f($s,{checked:u,onCheckedChange:l,disabled:d}),f(sn,{asChild:!0,children:f(ws,{size:16,className:Fe({[ne.chevron]:!0,[ne.open]:i===e})})})]})]}),o&&f(ms,{className:ne.description,children:f(re,{size:"caption",dangerouslySetInnerHTML:{__html:o}})})]})};function we(e){const t=N(e);return O(()=>{t.current=e}),x(()=>(...n)=>t.current?.(...n),[])}function js(e,t=globalThis?.document){const n=we(e);O(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ws="DismissableLayer",_t="dismissableLayer.update",Bs="dismissableLayer.pointerDownOutside",Hs="dismissableLayer.focusOutside",ln,Ar=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rr=A((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...a}=e,u=Y(Ar),[l,d]=T(null),_=l?.ownerDocument??globalThis?.document,[,h]=T({}),S=F(t,w=>d(w)),p=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(m),g=l?p.indexOf(l):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,y=g>=b,P=Ks(w=>{const I=w.target,X=[...u.branches].some(L=>L.contains(I));!y||X||(o?.(w),c?.(w),w.defaultPrevented||s?.())},_),E=qs(w=>{const I=w.target;[...u.branches].some(L=>L.contains(I))||(i?.(w),c?.(w),w.defaultPrevented||s?.())},_);return js(w=>{g===u.layers.size-1&&(r?.(w),!w.defaultPrevented&&s&&(w.preventDefault(),s()))},_),O(()=>{if(l)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ln=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),dn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=ln)}},[l,_,n,u]),O(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),dn())},[l,u]),O(()=>{const w=()=>h({});return document.addEventListener(_t,w),()=>document.removeEventListener(_t,w)},[]),f($.div,{...a,ref:S,style:{pointerEvents:C?y?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,E.onFocusCapture),onBlurCapture:j(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,P.onPointerDownCapture)})});Rr.displayName=Ws;var Zs="DismissableLayerBranch",Vs=A((e,t)=>{const n=Y(Ar),r=N(null),o=F(t,r);return O(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f($.div,{...e,ref:o})});Vs.displayName=Zs;function Ks(e,t=globalThis?.document){const n=we(e),r=N(!1),o=N(()=>{});return O(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){Ir(Bs,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 qs(e,t=globalThis?.document){const n=we(e),r=N(!1);return O(()=>{const o=i=>{i.target&&!r.current&&Ir(Hs,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 dn(){const e=new CustomEvent(_t);document.dispatchEvent(e)}function Ir(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?qi(o,i):o.dispatchEvent(i)}var ot="focusScope.autoFocusOnMount",it="focusScope.autoFocusOnUnmount",fn={bubbles:!1,cancelable:!0},Gs="FocusScope",Tr=A((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,a]=T(null),u=we(o),l=we(i),d=N(null),_=F(t,p=>a(p)),h=N({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O(()=>{if(r){let p=function(C){if(h.paused||!s)return;const y=C.target;s.contains(y)?d.current=y:J(d.current,{select:!0})},m=function(C){if(h.paused||!s)return;const y=C.relatedTarget;y!==null&&(s.contains(y)||J(d.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&J(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const g=new MutationObserver(b);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),g.disconnect()}}},[r,s,h.paused]),O(()=>{if(s){_n.add(h);const p=document.activeElement;if(!s.contains(p)){const b=new CustomEvent(ot,fn);s.addEventListener(ot,u),s.dispatchEvent(b),b.defaultPrevented||(Ys(tc(kr(s)),{select:!0}),document.activeElement===p&&J(s))}return()=>{s.removeEventListener(ot,u),setTimeout(()=>{const b=new CustomEvent(it,fn);s.addEventListener(it,l),s.dispatchEvent(b),b.defaultPrevented||J(p??document.body,{select:!0}),s.removeEventListener(it,l),_n.remove(h)},0)}}},[s,u,l,h]);const S=M(p=>{if(!n&&!r||h.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(m&&b){const g=p.currentTarget,[C,y]=Xs(g);C&&y?!p.shiftKey&&b===y?(p.preventDefault(),n&&J(C,{select:!0})):p.shiftKey&&b===C&&(p.preventDefault(),n&&J(y,{select:!0})):b===g&&p.preventDefault()}},[n,r,h.paused]);return f($.div,{tabIndex:-1,...c,ref:_,onKeyDown:S})});Tr.displayName=Gs;function Ys(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(J(r,{select:t}),document.activeElement!==n)return}function Xs(e){const t=kr(e),n=pn(t,e),r=pn(t.reverse(),e);return[n,r]}function kr(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 pn(e,t){for(const n of e)if(!Js(n,{upTo:t}))return n}function Js(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 J(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qs(e)&&t&&e.select()}}var _n=ec();function ec(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=vn(e,t),e.unshift(t)},remove(t){e=vn(e,t),e[0]?.resume()}}}function vn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tc(e){return e.filter(t=>t.tagName!=="A")}var nc="Portal",Dr=A((e,t)=>{const{container:n,...r}=e,[o,i]=T(!1);oe(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?D.createPortal(f($.div,{...r,ref:t}),c):null});Dr.displayName=nc;var st=0;function rc(){O(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hn()),document.body.insertAdjacentElement("beforeend",e[1]??hn()),st++,()=>{st===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),st--}},[])}function hn(){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 H=function(){return H=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},H.apply(this,arguments)};function xr(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 oc(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 Ue="right-scroll-bar-position",je="width-before-scroll-bar",ic="with-scroll-bars-hidden",sc="--removed-body-scroll-bar-size";function ct(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cc(e,t){var n=T(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 ac=typeof window<"u"?ee:O,mn=new WeakMap;function uc(e,t){var n=cc(null,function(r){return e.forEach(function(o){return ct(o,r)})});return ac(function(){var r=mn.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||ct(s,null)}),i.forEach(function(s){o.has(s)||ct(s,c)})}mn.set(n,e)},[e]),n}function lc(e){return e}function dc(e,t){t===void 0&&(t=lc);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 fc(e){e===void 0&&(e={});var t=dc(null);return t.options=H({async:!0,ssr:!1},e),t}var zr=function(e){var t=e.sideCar,n=xr(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 v.createElement(r,H({},n))};zr.isSideCarExport=!0;function pc(e,t){return e.useMedium(t),zr}var Mr=fc(),at=function(){},Qe=A(function(e,t){var n=N(null),r=T({onScrollCapture:at,onWheelCapture:at,onTouchMoveCapture:at}),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,h=e.noRelative,S=e.noIsolation,p=e.inert,m=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,C=e.gapMode,y=xr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=_,E=uc([n,t]),w=H(H({},y),o);return v.createElement(v.Fragment,null,l&&v.createElement(P,{sideCar:Mr,removeScrollBar:u,shards:d,noRelative:h,noIsolation:S,inert:p,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:C}),c?_e(V.only(s),H(H({},w),{ref:E})):v.createElement(g,H({},w,{className:a,ref:E}),s))});Qe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qe.classNames={fullWidth:je,zeroRight:Ue};var _c=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_c();return t&&e.setAttribute("nonce",t),e}function hc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vc())&&(hc(t,n),mc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yc=function(){var e=gc();return function(t,n){O(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$r=function(){var e=yc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bc={left:0,top:0,right:0,gap:0},ut=function(e){return parseInt(e||"",10)||0},Cc=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[ut(n),ut(r),ut(o)]},Ec=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bc;var t=Cc(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])}},Sc=$r(),fe="data-scroll-locked",wc=function(e,t,n,r){var o=e.left,i=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("preact");var ro=0;function f(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:--ro,__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 v.options.vnode&&v.options.vnode(u),u}var q,R,tt,$t,pe=0,Sn=[],T=v.options,Lt=T.__b,Ft=T.__r,Ut=T.diffed,jt=T.__c,Wt=T.unmount,Bt=T.__;function se(e,t){T.__h&&T.__h(R,e,pe||t),pe=0;var n=R.__H||(R.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function I(e){return pe=1,Pe(wn,e)}function Pe(e,t,n){var r=se(q++,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=R,!R.__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 h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(d=!0)}}),i&&i.call(this,s,a,u)||d};R.__f=!0;var i=R.shouldComponentUpdate,c=R.componentWillUpdate;R.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)},R.shouldComponentUpdate=o}return r.__N||r.__}function O(e,t){var n=se(q++,3);!T.__s&&yt(n.__H,t)&&(n.__=e,n.u=t,R.__H.__h.push(n))}function ee(e,t){var n=se(q++,4);!T.__s&&yt(n.__H,t)&&(n.__=e,n.u=t,R.__h.push(n))}function N(e){return pe=5,x(function(){return{current:e}},[])}function ht(e,t,n){pe=6,ee(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 x(e,t){var n=se(q++,7);return yt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function M(e,t){return pe=8,x(function(){return e},t)}function Y(e){var t=R.context[e.__c],n=se(q++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(R)),t.props.value):e.__}function mt(e,t){T.useDebugValue&&T.useDebugValue(t?t(e):e)}function oo(e){var t=se(q++,10),n=I();return t.__=e,R.componentDidCatch||(R.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function gt(){var e=se(q++,11);if(!e.__){for(var t=R.__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 io(){for(var e;e=Sn.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Le),t.__h.some(dt),t.__h=[]}catch(n){t.__h=[],T.__e(n,e.__v)}}}T.__b=function(e){R=null,Lt&&Lt(e)},T.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Bt&&Bt(e,t)},T.__r=function(e){Ft&&Ft(e),q=0;var t=(R=e.__c).__H;t&&(tt===R?(t.__h=[],R.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Le),t.__h.some(dt),t.__h=[],q=0)),tt=R},T.diffed=function(e){Ut&&Ut(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Sn.push(t)!==1&&$t===T.requestAnimationFrame||(($t=T.requestAnimationFrame)||so)(io)),t.__H.__.some(function(n){n.u&&(n.__H=n.u),n.u=void 0})),tt=R=null},T.__c=function(e,t){t.some(function(n){try{n.__h.some(Le),n.__h=n.__h.filter(function(r){return!r.__||dt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],T.__e(r,n.__v)}}),jt&&jt(e,t)},T.unmount=function(e){Wt&&Wt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Le(r)}catch(o){t=o}}),n.__H=void 0,t&&T.__e(t,n.__v))};var Ht=typeof requestAnimationFrame=="function";function so(e){var t,n=function(){clearTimeout(r),Ht&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ht&&(t=requestAnimationFrame(n))}function Le(e){var t=R,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),R=t}function dt(e){var t=R;e.__c=e.__(),R=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 Pn(e,t){for(var n in t)e[n]=t[n];return e}function ft(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 ee(function(){o.__=n,o.u=t,nt(o)&&i({t:o})},[e,n,t]),O(function(){return nt(o)&&i({t:o}),e(function(){nt(o)&&i({t:o})})},[e]),n}function nt(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 Et(e){return e}function St(){return[!1,Ct]}var wt=ee;function We(e,t){this.props=e,this.context=t}function Nn(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:ft(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v.createElement(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(We.prototype=new v.Component).isPureReactComponent=!0,We.prototype.shouldComponentUpdate=function(e,t){return ft(this.props,e)||ft(this.state,t)};var Zt=v.options.__b;v.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zt&&Zt(e)};var co=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function A(e){function t(n){var r=Pn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=co,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:v.toChildArray(v.toChildArray(e).map(t))},V={map:Vt,forEach:Vt,count:function(e){return e?v.toChildArray(e).length:0},only:function(e){var t=v.toChildArray(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:v.toChildArray},ao=v.options.__e;v.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)}ao(e,t,n,r)};var Kt=v.options.unmount;function On(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=Pn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return On(r,t,n)})),e}function An(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return An(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 Rn(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function kn(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?v.createElement(o,c):null}return i.displayName="Lazy",i.__f=!0,i}function de(){this.i=null,this.l=null}v.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 v.Component).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Rn(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]=An(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]=On(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v.createElement(v.Fragment,null,e.fallback);return o&&(o.__u&=-33),[v.createElement(v.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 uo(e){return this.getChildContext=function(){return e.context},e.children}function lo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){v.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)}}}v.render(v.createElement(uo,{context:t.context},e.__v),t.v)}function In(e,t){var n=v.createElement(lo,{__v:e,h:t});return n.containerInfo=t,n}(de.prototype=new v.Component).__a=function(e){var t=this,n=Rn(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()}},de.prototype.render=function(e){this.i=null,this.l=new Map;var t=v.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},de.prototype.componentDidUpdate=de.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){qt(e,n,t)})};var Tn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,fo=/^(?: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]/,po=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_o=/[A-Z0-9]/g,vo=typeof document<"u",ho=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Dn(e,t,n){return t.__k==null&&(t.textContent=""),v.render(e,t),typeof n=="function"&&n(),e?e.__c:null}function xn(e,t,n){return v.hydrate(e,t),typeof n=="function"&&n(),e?e.__c:null}v.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(v.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=v.options.event;function mo(){}function go(){return this.cancelBubble}function yo(){return this.defaultPrevented}v.options.event=function(e){return Gt&&(e=Gt(e)),e.persist=mo,e.isPropagationStopped=go,e.isDefaultPrevented=yo,e.nativeEvent=e};var Pt,bo={enumerable:!1,configurable:!0,get:function(){return this.class}},Yt=v.options.vnode;v.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||vo&&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"||ho(n.type)?a==="onfocus"?c="onfocusin":a==="onblur"?c="onfocusout":po.test(c)&&(c=a):a=c="oninput":i&&fo.test(c)?c=c.replace(_o,"-$&").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=v.toChildArray(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=v.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",bo)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=Tn,Yt&&Yt(e)};var Xt=v.options.__r;v.options.__r=function(e){Xt&&Xt(e),Pt=e.__c};var Jt=v.options.diffed;v.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 zn={ReactCurrentDispatcher:{current:{readContext:function(e){return Pt.__n[e.__c].props.value},useCallback:M,useContext:Y,useDebugValue:mt,useDeferredValue:Et,useEffect:O,useId:gt,useImperativeHandle:ht,useInsertionEffect:wt,useLayoutEffect:ee,useMemo:x,useReducer:Pe,useRef:N,useState:I,useSyncExternalStore:bt,useTransition:St}}},Co="18.3.1";function Mn(e){return v.createElement.bind(null,e)}function G(e){return!!e&&e.$$typeof===Tn}function $n(e){return G(e)&&e.type===v.Fragment}function Ln(e){return!!e&&typeof e.displayName=="string"&&e.displayName.startsWith("Memo(")}function _e(e){return G(e)?v.cloneElement.apply(null,arguments):e}function Fn(e){return!!e.__k&&(v.render(null,e),!0)}function Un(e){return e&&(e.base||e.nodeType===1&&e)||null}var jn=function(e,t){return e(t)},Nt=function(e,t){return e(t)},Wn=v.Fragment,Bn=G,D={useState:I,useId:gt,useReducer:Pe,useEffect:O,useLayoutEffect:ee,useInsertionEffect:wt,useTransition:St,useDeferredValue:Et,useSyncExternalStore:bt,startTransition:Ct,useRef:N,useImperativeHandle:ht,useMemo:x,useCallback:M,useContext:Y,useDebugValue:mt,version:"18.3.1",Children:V,render:Dn,hydrate:xn,unmountComponentAtNode:Fn,createPortal:In,createElement:v.createElement,createContext:v.createContext,createFactory:Mn,cloneElement:_e,createRef:v.createRef,Fragment:v.Fragment,isValidElement:G,isElement:Bn,isFragment:$n,isMemo:Ln,findDOMNode:Un,Component:v.Component,PureComponent:We,memo:Nn,forwardRef:A,flushSync:Nt,unstable_batchedUpdates:jn,StrictMode:Wn,Suspense:be,SuspenseList:de,lazy:kn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zn};const Hn=Object.freeze(Object.defineProperty({__proto__:null,Children:V,Component:v.Component,Fragment:v.Fragment,PureComponent:We,StrictMode:Wn,Suspense:be,SuspenseList:de,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zn,cloneElement:_e,createContext:v.createContext,createElement:v.createElement,createFactory:Mn,createPortal:In,createRef:v.createRef,default:D,findDOMNode:Un,flushSync:Nt,forwardRef:A,hydrate:xn,isElement:Bn,isFragment:$n,isMemo:Ln,isValidElement:G,lazy:kn,memo:Nn,render:Dn,startTransition:Ct,unmountComponentAtNode:Fn,unstable_batchedUpdates:jn,useCallback:M,useContext:Y,useDebugValue:mt,useDeferredValue:Et,useEffect:O,useErrorBoundary:oo,useId:gt,useImperativeHandle:ht,useInsertionEffect:wt,useLayoutEffect:ee,useMemo:x,useReducer:Pe,useRef:N,useState:I,useSyncExternalStore:bt,useTransition:St,version:Co},Symbol.toStringTag,{value:"Module"}));function Zn(...e){return e.filter(Boolean).join(" ")}function Fe(e){return Object.entries(e).filter(([,t])=>t).map(([t])=>t).join(" ")}const Eo="_root_hw69b_1",So="_neutral_hw69b_17",wo="_brand_hw69b_30",Po="_ghost_hw69b_43",Qt={root:Eo,neutral:So,brand:wo,ghost:Po},rt=({variant:e="neutral",...t})=>f("button",{className:Zn(Qt.root,Qt[e]),...t}),No="_root_14l5h_1",Oo="_muted_14l5h_4",Ao="_body_14l5h_8",Ro="_normal_14l5h_14",ko="_bold_14l5h_18",Io="_caption_14l5h_23",ke={root:No,muted:Oo,body:Ao,normal:Ro,bold:ko,caption:Io},re=({as:e="span",size:t="body",weight:n="normal",color:r="default",...o})=>f(e??"span",{className:Zn(ke.root,ke[t],ke[n],ke[r]),...o}),To="_root_8pi9z_53",Do="_noTarget_8pi9z_66",xo="_collapsible_8pi9z_73",zo="_header_8pi9z_76",Mo="_heading_8pi9z_83",$o="_chevron_8pi9z_89",Lo="_open_8pi9z_94",Fo="_settings_8pi9z_100",Uo="_footer_8pi9z_114",jo="_legal_8pi9z_121",Wo="_actions_8pi9z_124",U={root:To,noTarget:Do,collapsible:xo,header:zo,heading:Mo,chevron:$o,open:Lo,settings:Fo,footer:Uo,legal:jo,actions:Wo},Bo="_root_mqtha_19",Ho="_header_mqtha_24",Zo="_label_mqtha_33",Vo="_actions_mqtha_39",Ko="_chevron_mqtha_45",qo="_open_mqtha_51",Go="_description_mqtha_58",ne={root:Bo,header:Ho,label:Zo,actions:Vo,chevron:Ko,open:qo,description:Go};function z(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 Yo={};function ve(e){return Yo}function Xo(e,t){return typeof t=="bigint"?t.toString():t}function Vn(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Kn(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 Z(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 qn="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Be(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Jo(e){if(Be(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Be(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 he(e){return{}}function ei(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 me(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 Gn=(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,Xo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ti=z("$ZodError",Gn),qe=z("$ZodError",Gn,{Parent:Error}),ni=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=>me(a,i,ve())));throw qn(s,o?.callee),s}return c.value},ri=ni(qe),oi=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=>me(a,i,ve())));throw qn(s,o?.callee),s}return c.value},ii=oi(qe),si=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??ti)(i.issues.map(c=>me(c,o,ve())))}:{success:!0,data:i.value}},Yn=si(qe),ci=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=>me(c,o,ve())))}:{success:!0,data:i.value}},Xn=ci(qe),ai=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ui=/^-?\d+(?:\.\d+)?$/,li=/^(?:true|false)$/i,di={major:4,minor:3,patch:6},te=z("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=di;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,h=d._zod.check(c);if(h instanceof Promise&&a?.async===!1)throw new Ce;if(l||h instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await h,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)}}Z(e,"~standard",()=>({validate:o=>{try{const i=Yn(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Xn(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),fi=z("$ZodString",(e,t)=>{te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ai(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}}),pi=z("$ZodBoolean",(e,t)=>{te.init(e,t),e._zod.pattern=li,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 He(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 _i(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=ei(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function vi(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(h=>He(h,n,d,t,l))):He(_,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 hi=z("$ZodObject",(e,t)=>{if(te.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=Vn(()=>_i(t));Z(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=Be,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 h=d[_],S=h._zod.optout==="optional",p=h._zod.run({value:u[_],issues:[]},a);p instanceof Promise?l.push(p.then(m=>He(m,s,_,u,S))):He(p,s,_,u,S)}return i?vi(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=>me(c,r,ve())))}),t)}const mi=z("$ZodUnion",(e,t)=>{te.init(e,t),Z(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Z(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=>Kn(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)}}),gi=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,mi.init(e,t);const n=e._zod.parse;Z(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=Vn(()=>{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(!Be(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)}}),yi=z("$ZodRecord",(e,t)=>{te.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Jo(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"&&ui.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=>me(d,r,ve())),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}}),bi=z("$ZodLiteral",(e,t)=>{if(te.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 Ci=z("$ZodOptional",(e,t)=>{te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Kn(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 Ei(e,t){return new e({type:"string",...he()})}function Si(e,t){return new e({type:"boolean",...he()})}const ce=z("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");te.init(e,t),e.def=t,e.type=t.type,e.parse=(n,r)=>ri(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Yn(e,n,r),e.parseAsync=async(n,r)=>ii(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Xn(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)}),wi=z("ZodMiniString",(e,t)=>{fi.init(e,t),ce.init(e,t)});function K(e){return Ei(wi)}const Pi=z("ZodMiniBoolean",(e,t)=>{pi.init(e,t),ce.init(e,t)});function Se(e){return Si(Pi)}const Ni=z("ZodMiniObject",(e,t)=>{hi.init(e,t),ce.init(e,t),Z(e,"shape",()=>t.shape)});function Jn(e,t){const n={type:"object",shape:e??{},...he()};return new Ni(n)}const Oi=z("ZodMiniDiscriminatedUnion",(e,t)=>{gi.init(e,t),ce.init(e,t)});function Ai(e,t,n){return new Oi({type:"union",options:t,discriminator:e,...he()})}const Ri=z("ZodMiniRecord",(e,t)=>{yi.init(e,t),ce.init(e,t)});function ki(e,t,n){return new Ri({type:"record",keyType:e,valueType:t,...he()})}const Ii=z("ZodMiniLiteral",(e,t)=>{bi.init(e,t),ce.init(e,t)});function Qn(e,t){return new Ii({type:"literal",values:Array.isArray(e)?e:[e],...he()})}const Ti=z("ZodMiniOptional",(e,t)=>{Ci.init(e,t),ce.init(e,t)});function Q(e){return new Ti({type:"optional",innerType:e})}const Di=Jn({id:K(),variant:Qn("remote"),type:Q(K()),src:K(),async:Q(Se()),defer:Q(Se()),crossorigin:Q(K()),integrity:Q(K())}),xi=Jn({id:K(),variant:Qn("inline"),type:Q(K()),async:Q(Se()),defer:Q(Se()),content:K()}),zi=Ai("variant",[Di,xi]);function Mi(e,t){const n=v.createContext(t),r=i=>{const{children:c,...s}=i,a=x(()=>s,Object.values(s));return f(n.Provider,{value:a,children:c})};r.displayName=e+"Provider";function o(i){const c=Y(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=v.createContext(c),a=n.length;n=[...n,c];const u=d=>{const{scope:_,children:h,...S}=d,p=_?.[e]?.[a]||s,m=x(()=>S,Object.values(S));return f(p.Provider,{value:m,children:h})};u.displayName=i+"Provider";function l(d,_){const h=_?.[e]?.[a]||s,S=Y(h);if(S)return S;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=>v.createContext(c));return function(s){const a=s?.[e]||i;return x(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return o.scopeName=e,[r,$i(o,...t)]}function $i(...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 x(()=>({[`__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 er(...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 F(...e){return M(er(...e),e)}function Ze(e){const t=Li(e),n=A((r,o)=>{const{children:i,...c}=r,s=V.toArray(i),a=s.find(Ui);if(a){const u=a.props.children,l=s.map(d=>d===a?V.count(u)>1?V.only(null):G(u)?u.props.children:null:d);return f(t,{...c,ref:o,children:G(u)?_e(u,void 0,l):null})}return f(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Li(e){const t=A((n,r)=>{const{children:o,...i}=n;if(G(o)){const c=Wi(o),s=ji(i,o.props);return o.type!==v.Fragment&&(s.ref=r?er(r,c):c),_e(o,s)}return V.count(o)>1?V.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fi=Symbol("radix.slottable");function Ui(e){return G(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fi}function ji(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 Wi(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 Bi(e){const t=e+"CollectionProvider",[n,r]=Ne(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=p=>{const{scope:m,children:b}=p,g=D.useRef(null),C=D.useRef(new Map).current;return f(o,{scope:m,itemMap:C,collectionRef:g,children:b})};c.displayName=t;const s=e+"CollectionSlot",a=Ze(s),u=D.forwardRef((p,m)=>{const{scope:b,children:g}=p,C=i(s,b),y=F(m,C.collectionRef);return f(a,{ref:y,children:g})});u.displayName=s;const l=e+"CollectionItemSlot",d="data-radix-collection-item",_=Ze(l),h=D.forwardRef((p,m)=>{const{scope:b,children:g,...C}=p,y=D.useRef(null),P=F(m,y),E=i(l,b);return D.useEffect(()=>(E.itemMap.set(y,{ref:y,...C}),()=>{E.itemMap.delete(y)})),f(_,{[d]:"",ref:P,children:g})});h.displayName=l;function S(p){const m=i(e+"CollectionConsumer",p);return D.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const C=Array.from(g.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((E,w)=>C.indexOf(E.ref.current)-C.indexOf(w.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:c,Slot:u,ItemSlot:h},S,r]}function j(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var oe=globalThis?.document?ee:()=>{},Hi=Hn[" useInsertionEffect ".trim().toString()]||oe;function Oe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,c]=Zi({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o;{const l=N(e!==void 0);O(()=>{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=Vi(l)?l(e):l;d!==e&&c.current?.(d)}else i(l)},[s,e,i,c]);return[a,u]}function Zi({defaultProp:e,onChange:t}){const[n,r]=I(e),o=N(n),i=N(t);return Hi(()=>{i.current=t},[t]),O(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Vi(e){return typeof e=="function"}var Ki=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=Ki.reduce((e,t)=>{const n=Ze(`Primitive.${t}`),r=A((o,i)=>{const{asChild:c,...s}=o,a=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f(a,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qi(e,t){e&&Nt(()=>e.dispatchEvent(t))}function Gi(e,t){return Pe((n,r)=>t[n][r]??n,e)}var Ae=e=>{const{present:t,children:n}=e,r=Yi(t),o=typeof n=="function"?n({present:r.isPresent}):V.only(n),i=F(r.ref,Xi(o));return typeof n=="function"||r.isPresent?_e(o,{ref:i}):null};Ae.displayName="Presence";function Yi(e){const[t,n]=I(),r=N(null),o=N(e),i=N("none"),c=e?"mounted":"unmounted",[s,a]=Gi(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O(()=>{const u=Te(r.current);i.current=s==="mounted"?u:"none"},[s]),oe(()=>{const u=r.current,l=o.current;if(l!==e){const _=i.current,h=Te(u);e?a("MOUNT"):h==="none"||u?.display==="none"?a("UNMOUNT"):a(l&&_!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),oe(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,d=h=>{const p=Te(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(a("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},_=h=>{h.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 Xi(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 Ji=Hn[" useId ".trim().toString()]||(()=>{}),Qi=0;function Ee(e){const[t,n]=I(Ji());return oe(()=>{n(r=>r??String(Qi++))},[e]),e||(t?`radix-${t}`:"")}var Ge="Collapsible",[es,tr]=Ne(Ge),[ts,Ot]=es(Ge),nr=A((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:Ge});return f(ts,{scope:n,disabled:i,contentId:Ee(),open:a,onOpenToggle:M(()=>u(l=>!l),[u]),children:f($.div,{"data-state":Rt(a),"data-disabled":i?"":void 0,...s,ref:t})})});nr.displayName=Ge;var rr="CollapsibleTrigger",or=A((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ot(rr,n);return f($.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Rt(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:j(e.onClick,o.onOpenToggle)})});or.displayName=rr;var At="CollapsibleContent",ir=A((e,t)=>{const{forceMount:n,...r}=e,o=Ot(At,e.__scopeCollapsible);return f(Ae,{present:n||o.open,children:({present:i})=>f(ns,{...r,ref:t,present:i})})});ir.displayName=At;var ns=A((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,c=Ot(At,n),[s,a]=I(r),u=N(null),l=F(t,u),d=N(0),_=d.current,h=N(0),S=h.current,p=c.open||s,m=N(p),b=N(void 0);return O(()=>{const g=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(g)},[]),oe(()=>{const g=u.current;if(g){b.current=b.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const C=g.getBoundingClientRect();d.current=C.height,h.current=C.width,m.current||(g.style.transitionDuration=b.current.transitionDuration,g.style.animationName=b.current.animationName),a(r)}},[c.open,r]),f($.div,{"data-state":Rt(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!p,...i,ref:l,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:p&&o})});function Rt(e){return e?"open":"closed"}var sr=nr,cr=or,ar=ir,rs=v.createContext(void 0);function os(e){const t=Y(rs);return e||t||"ltr"}var W="Accordion",is=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[kt,ss,cs]=Bi(W),[Ye]=Ne(W,[cs,tr]),It=tr(),ur=D.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return f(kt.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?f(ds,{...i,ref:t}):f(ls,{...o,ref:t})})});ur.displayName=W;var[lr,as]=Ye(W),[dr,us]=Ye(W,{collapsible:!1}),ls=D.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:W});return f(lr,{scope:e.__scopeAccordion,value:D.useMemo(()=>s?[s]:[],[s]),onItemOpen:a,onItemClose:D.useCallback(()=>i&&a(""),[i,a]),children:f(dr,{scope:e.__scopeAccordion,collapsible:i,children:f(fr,{...c,ref:t})})})}),ds=D.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[c,s]=Oe({prop:n,defaultProp:r??[],onChange:o,caller:W}),a=D.useCallback(l=>s((d=[])=>[...d,l]),[s]),u=D.useCallback(l=>s((d=[])=>d.filter(_=>_!==l)),[s]);return f(lr,{scope:e.__scopeAccordion,value:c,onItemOpen:a,onItemClose:u,children:f(dr,{scope:e.__scopeAccordion,collapsible:!0,children:f(fr,{...i,ref:t})})})}),[fs,Xe]=Ye(W),fr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...c}=e,s=D.useRef(null),a=F(s,t),u=ss(n),d=os(o)==="ltr",_=j(e.onKeyDown,h=>{if(!is.includes(h.key))return;const S=h.target,p=u().filter(k=>!k.ref.current?.disabled),m=p.findIndex(k=>k.ref.current===S),b=p.length;if(m===-1)return;h.preventDefault();let g=m;const C=0,y=b-1,P=()=>{g=m+1,g>y&&(g=C)},E=()=>{g=m-1,g<C&&(g=y)};switch(h.key){case"Home":g=C;break;case"End":g=y;break;case"ArrowRight":i==="horizontal"&&(d?P():E());break;case"ArrowDown":i==="vertical"&&P();break;case"ArrowLeft":i==="horizontal"&&(d?E():P());break;case"ArrowUp":i==="vertical"&&E();break}const w=g%b;p[w].ref.current?.focus()});return f(fs,{scope:n,disabled:r,direction:o,orientation:i,children:f(kt.Slot,{scope:n,children:f($.div,{...c,"data-orientation":i,ref:a,onKeyDown:r?void 0:_})})})}),Ve="AccordionItem",[ps,Tt]=Ye(Ve),pr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=Xe(Ve,n),c=as(Ve,n),s=It(n),a=Ee(),u=r&&c.value.includes(r)||!1,l=i.disabled||e.disabled;return f(ps,{scope:n,open:u,disabled:l,triggerId:a,children:f(sr,{"data-orientation":i.orientation,"data-state":gr(u),...s,...o,ref:t,disabled:l,open:u,onOpenChange:d=>{d?c.onItemOpen(r):c.onItemClose(r)}})})});pr.displayName=Ve;var _r="AccordionHeader",_s=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xe(W,n),i=Tt(_r,n);return f($.h3,{"data-orientation":o.orientation,"data-state":gr(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});_s.displayName=_r;var pt="AccordionTrigger",vr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xe(W,n),i=Tt(pt,n),c=us(pt,n),s=It(n);return f(kt.ItemSlot,{scope:n,children:f(cr,{"aria-disabled":i.open&&!c.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})});vr.displayName=pt;var hr="AccordionContent",mr=D.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Xe(W,n),i=Tt(hr,n),c=It(n);return f(ar,{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}})});mr.displayName=hr;function gr(e){return e?"open":"closed"}var vs=ur,hs=pr,sn=vr,ms=mr;const yr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const gs=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const ys=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const cn=e=>{const t=ys(e);return t.charAt(0).toUpperCase()+t.slice(1)};var bs={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 Cs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Es=A(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:c,...s},a)=>v.createElement("svg",{ref:a,...bs,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yr("lucide",o),...!i&&!Cs(s)&&{"aria-hidden":"true"},...s},[...c.map(([u,l])=>v.createElement(u,l)),...Array.isArray(i)?i:[i]]));const br=(e,t)=>{const n=A(({className:r,...o},i)=>v.createElement(Es,{ref:i,iconNode:t,className:yr(`lucide-${gs(cn(e))}`,`lucide-${e}`,r),...o}));return n.displayName=cn(e),n};const Ss=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ws=br("chevron-down",Ss);const Ps=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ns=br("chevron-up",Ps);function Os(e){const t=N({value:e,previous:e});return x(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function As(e){const[t,n]=I(void 0);return oe(()=>{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 Je="Switch",[Rs]=Ne(Je),[ks,Is]=Rs(Je),Cr=A((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:c,disabled:s,value:a="on",onCheckedChange:u,form:l,...d}=e,[_,h]=I(null),S=F(t,C=>h(C)),p=N(!1),m=_?l||!!_.closest("form"):!0,[b,g]=Oe({prop:o,defaultProp:i??!1,onChange:u,caller:Je});return f(ks,{scope:n,checked:b,disabled:s,children:[f($.button,{type:"button",role:"switch","aria-checked":b,"aria-required":c,"data-state":Pr(b),"data-disabled":s?"":void 0,disabled:s,value:a,...d,ref:S,onClick:j(e.onClick,C=>{g(y=>!y),m&&(p.current=C.isPropagationStopped(),p.current||C.stopPropagation())})}),m&&f(wr,{control:_,bubbles:!p.current,name:r,value:a,checked:b,required:c,disabled:s,form:l,style:{transform:"translateX(-100%)"}})]})});Cr.displayName=Je;var Er="SwitchThumb",Sr=A((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Is(Er,n);return f($.span,{"data-state":Pr(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Sr.displayName=Er;var Ts="SwitchBubbleInput",wr=A(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const c=N(null),s=F(c,i),a=Os(n),u=As(t);return O(()=>{const l=c.current;if(!l)return;const d=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==n&&h){const S=new Event("click",{bubbles:r});h.call(l,n),l.dispatchEvent(S)}},[a,n,r]),f("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}})});wr.displayName=Ts;function Pr(e){return e?"checked":"unchecked"}var Ds=Cr,xs=Sr;const zs="_root_dibqz_1",Ms="_thumb_dibqz_38",De={root:zs,switch:"_switch_dibqz_8",thumb:Ms},$s=({label:e,id:t,...n})=>f("div",{className:De.root,children:[e&&f(re,{className:De.label,as:"label",htmlFor:t,children:e}),f(Ds,{className:De.switch,...n,children:f(xs,{className:De.thumb})})]}),Ls=ki(K(),Se());class an{#t;#e;#n;#r;constructor(t){this.#t=t.domain,this.#e=t.prefix??"us-cookie-banner-",this.#n=t.sameSite??"lax",this.#r=t.secure??!0}#o=t=>btoa(String.fromCharCode(...new TextEncoder().encode(t)));#i=t=>new TextDecoder().decode(Uint8Array.from(atob(t),n=>n.charCodeAt(0)));set=(t,n,r=365)=>{if(typeof document>"u"){console.log("Can't set cookie in non-browser environment");return}const o=new Date(Date.now()+r*24*60*60*1e3),i=`${this.#e}${t}=${this.#o(n)}; expires=${o}; path=/; domain=${this.#t}; SameSite=${this.#n}; ${this.#r?"secure":""}`;document.cookie=i};get=t=>{if(typeof document>"u"){console.log("Can't get cookie in non-browser environment");return}const n=document.cookie.match(new RegExp(`(?:^|; )${this.#e}${t}=([^;]*)`));if(!n)return null;const[r,o]=n;return o?this.#i(o):null};remove=t=>{this.set(t,"",-1)}}const un="selection",Nr=v.createContext(null),Fs=({children:e,items:t,cookie:n})=>{const{domain:r,prefix:o,sameSite:i,secure:c}=n,[s,a]=I(new an({domain:r,prefix:o,sameSite:i,secure:c}));O(()=>{a(new an({domain:r,prefix:o,sameSite:i,secure:c}))},[r,o,i,c]);function u(){const y=s.get(un);if(!y)return null;const{success:P,data:E}=Ls.safeParse(JSON.parse(y));return P?E:null}const l=x(()=>Object.fromEntries(t.map(y=>[y.value,y.defaultSelected??!1])),[t]),[d,_]=I(u()??l),[h,S]=I(u());function p(y,P){const E=d?{...d,[y]:P}:{[y]:P};_(E)}O(()=>{let y=[];h!==null&&(y=Object.entries(h).filter(([E,w])=>w).map(([E])=>E));const P=t.filter(E=>y.includes(E.value));for(const E of t)if(E.scripts)for(const w of E.scripts){const k=document.head.querySelector(`#${E.value}-${w.id}`);k&&k.remove()}for(const E of P){if(!E.scripts){E.required||console.warn("CookieBanner: Missing script for",E.value);continue}for(const w of E.scripts){if(!w)continue;const k=document.createElement("script");k.id=`${E.value}-${w.id}`;const{success:X,data:L}=zi.safeParse(w);if(!X){console.error("CookieBanner: Invalid script definition for",E.value);continue}switch(k.type=L.type??"text/javascript",k.async=L.async??!1,k.defer=L.defer??!1,L.variant){case"inline":k.textContent=L.content;break;case"remote":k.src=L.src,k.crossOrigin=L.crossorigin??null,k.integrity=L.integrity??"";break}document.head.appendChild(k)}}},[h,t]);function m(y){S(y),s.set(un,JSON.stringify(y))}const b=M(()=>{const y=Object.fromEntries(t.map(P=>[P.value,!1]));_(y),m(y)},[t]),g=M(()=>{m(d),location.reload()},[d]),C=x(()=>{if(!h)return!1;const y=Object.keys(h);return t.map(E=>E.value).every(E=>y.includes(E))},[h,t]);return f(Nr.Provider,{value:{selection:d,toggleSelection:p,onDeclineAll:b,onSave:g,selectionTaken:C},children:e})};function Or(){const e=Y(Nr);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:i})=>{const{toggleSelection:c,selection:s}=Or(),a=x(()=>s?.[e]??!1,[s,e]);O(()=>{c(e,a)},[e,a]);const u=x(()=>r?!0:a,[r,a]),l=x(()=>_=>r?()=>{}:c(e,_),[r,c,e]),d=x(()=>r,[r]);return f(hs,{value:e,className:ne.root,children:[f("div",{className:ne.header,children:[f(sn,{asChild:!0,children:f("div",{className:ne.label,children:[f(re,{weight:"bold",children:t}),n&&f(re,{size:"caption",color:"muted",children:n})]})}),f("div",{className:ne.actions,children:[f($s,{checked:u,onCheckedChange:l,disabled:d}),f(sn,{asChild:!0,children:f(ws,{size:16,className:Fe({[ne.chevron]:!0,[ne.open]:i===e})})})]})]}),o&&f(ms,{className:ne.description,children:f(re,{size:"caption",dangerouslySetInnerHTML:{__html:o}})})]})};function we(e){const t=N(e);return O(()=>{t.current=e}),x(()=>(...n)=>t.current?.(...n),[])}function js(e,t=globalThis?.document){const n=we(e);O(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ws="DismissableLayer",_t="dismissableLayer.update",Bs="dismissableLayer.pointerDownOutside",Hs="dismissableLayer.focusOutside",ln,Ar=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Rr=A((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:s,...a}=e,u=Y(Ar),[l,d]=I(null),_=l?.ownerDocument??globalThis?.document,[,h]=I({}),S=F(t,w=>d(w)),p=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(m),g=l?p.indexOf(l):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,y=g>=b,P=Ks(w=>{const k=w.target,X=[...u.branches].some(L=>L.contains(k));!y||X||(o?.(w),c?.(w),w.defaultPrevented||s?.())},_),E=qs(w=>{const k=w.target;[...u.branches].some(L=>L.contains(k))||(i?.(w),c?.(w),w.defaultPrevented||s?.())},_);return js(w=>{g===u.layers.size-1&&(r?.(w),!w.defaultPrevented&&s&&(w.preventDefault(),s()))},_),O(()=>{if(l)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ln=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),dn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=ln)}},[l,_,n,u]),O(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),dn())},[l,u]),O(()=>{const w=()=>h({});return document.addEventListener(_t,w),()=>document.removeEventListener(_t,w)},[]),f($.div,{...a,ref:S,style:{pointerEvents:C?y?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,E.onFocusCapture),onBlurCapture:j(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,P.onPointerDownCapture)})});Rr.displayName=Ws;var Zs="DismissableLayerBranch",Vs=A((e,t)=>{const n=Y(Ar),r=N(null),o=F(t,r);return O(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f($.div,{...e,ref:o})});Vs.displayName=Zs;function Ks(e,t=globalThis?.document){const n=we(e),r=N(!1),o=N(()=>{});return O(()=>{const i=s=>{if(s.target&&!r.current){let a=function(){kr(Bs,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 qs(e,t=globalThis?.document){const n=we(e),r=N(!1);return O(()=>{const o=i=>{i.target&&!r.current&&kr(Hs,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 dn(){const e=new CustomEvent(_t);document.dispatchEvent(e)}function kr(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?qi(o,i):o.dispatchEvent(i)}var ot="focusScope.autoFocusOnMount",it="focusScope.autoFocusOnUnmount",fn={bubbles:!1,cancelable:!0},Gs="FocusScope",Ir=A((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[s,a]=I(null),u=we(o),l=we(i),d=N(null),_=F(t,p=>a(p)),h=N({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O(()=>{if(r){let p=function(C){if(h.paused||!s)return;const y=C.target;s.contains(y)?d.current=y:J(d.current,{select:!0})},m=function(C){if(h.paused||!s)return;const y=C.relatedTarget;y!==null&&(s.contains(y)||J(d.current,{select:!0}))},b=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&J(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const g=new MutationObserver(b);return s&&g.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),g.disconnect()}}},[r,s,h.paused]),O(()=>{if(s){_n.add(h);const p=document.activeElement;if(!s.contains(p)){const b=new CustomEvent(ot,fn);s.addEventListener(ot,u),s.dispatchEvent(b),b.defaultPrevented||(Ys(tc(Tr(s)),{select:!0}),document.activeElement===p&&J(s))}return()=>{s.removeEventListener(ot,u),setTimeout(()=>{const b=new CustomEvent(it,fn);s.addEventListener(it,l),s.dispatchEvent(b),b.defaultPrevented||J(p??document.body,{select:!0}),s.removeEventListener(it,l),_n.remove(h)},0)}}},[s,u,l,h]);const S=M(p=>{if(!n&&!r||h.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(m&&b){const g=p.currentTarget,[C,y]=Xs(g);C&&y?!p.shiftKey&&b===y?(p.preventDefault(),n&&J(C,{select:!0})):p.shiftKey&&b===C&&(p.preventDefault(),n&&J(y,{select:!0})):b===g&&p.preventDefault()}},[n,r,h.paused]);return f($.div,{tabIndex:-1,...c,ref:_,onKeyDown:S})});Ir.displayName=Gs;function Ys(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(J(r,{select:t}),document.activeElement!==n)return}function Xs(e){const t=Tr(e),n=pn(t,e),r=pn(t.reverse(),e);return[n,r]}function Tr(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 pn(e,t){for(const n of e)if(!Js(n,{upTo:t}))return n}function Js(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 J(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qs(e)&&t&&e.select()}}var _n=ec();function ec(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=vn(e,t),e.unshift(t)},remove(t){e=vn(e,t),e[0]?.resume()}}}function vn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tc(e){return e.filter(t=>t.tagName!=="A")}var nc="Portal",Dr=A((e,t)=>{const{container:n,...r}=e,[o,i]=I(!1);oe(()=>i(!0),[]);const c=n||o&&globalThis?.document?.body;return c?D.createPortal(f($.div,{...r,ref:t}),c):null});Dr.displayName=nc;var st=0;function rc(){O(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??hn()),document.body.insertAdjacentElement("beforeend",e[1]??hn()),st++,()=>{st===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),st--}},[])}function hn(){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 H=function(){return H=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},H.apply(this,arguments)};function xr(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 oc(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 Ue="right-scroll-bar-position",je="width-before-scroll-bar",ic="with-scroll-bars-hidden",sc="--removed-body-scroll-bar-size";function ct(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cc(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 ac=typeof window<"u"?ee:O,mn=new WeakMap;function uc(e,t){var n=cc(null,function(r){return e.forEach(function(o){return ct(o,r)})});return ac(function(){var r=mn.get(n);if(r){var o=new Set(r),i=new Set(e),c=n.current;o.forEach(function(s){i.has(s)||ct(s,null)}),i.forEach(function(s){o.has(s)||ct(s,c)})}mn.set(n,e)},[e]),n}function lc(e){return e}function dc(e,t){t===void 0&&(t=lc);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 fc(e){e===void 0&&(e={});var t=dc(null);return t.options=H({async:!0,ssr:!1},e),t}var zr=function(e){var t=e.sideCar,n=xr(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 v.createElement(r,H({},n))};zr.isSideCarExport=!0;function pc(e,t){return e.useMedium(t),zr}var Mr=fc(),at=function(){},Qe=A(function(e,t){var n=N(null),r=I({onScrollCapture:at,onWheelCapture:at,onTouchMoveCapture:at}),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,h=e.noRelative,S=e.noIsolation,p=e.inert,m=e.allowPinchZoom,b=e.as,g=b===void 0?"div":b,C=e.gapMode,y=xr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=_,E=uc([n,t]),w=H(H({},y),o);return v.createElement(v.Fragment,null,l&&v.createElement(P,{sideCar:Mr,removeScrollBar:u,shards:d,noRelative:h,noIsolation:S,inert:p,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:C}),c?_e(V.only(s),H(H({},w),{ref:E})):v.createElement(g,H({},w,{className:a,ref:E}),s))});Qe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qe.classNames={fullWidth:je,zeroRight:Ue};var _c=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_c();return t&&e.setAttribute("nonce",t),e}function hc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function mc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var gc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vc())&&(hc(t,n),mc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yc=function(){var e=gc();return function(t,n){O(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$r=function(){var e=yc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bc={left:0,top:0,right:0,gap:0},ut=function(e){return parseInt(e||"",10)||0},Cc=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[ut(n),ut(r),ut(o)]},Ec=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bc;var t=Cc(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])}},Sc=$r(),fe="data-scroll-locked",wc=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
2
  .`.concat(ic,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(s,"px ").concat(r,`;
@@ -35,11 +35,11 @@
35
35
  body[`).concat(fe,`] {
36
36
  `).concat(sc,": ").concat(s,`px;
37
37
  }
38
- `)},gn=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},Pc=function(){O(function(){return document.body.setAttribute(fe,(gn()+1).toString()),function(){var e=gn()-1;e<=0?document.body.removeAttribute(fe):document.body.setAttribute(fe,e.toString())}},[])},Nc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Pc();var i=x(function(){return Ec(o)},[o]);return v.createElement(Sc,{styles:wc(i,!t,o,n?"":"!important")})},vt=!1;if(typeof window<"u")try{var xe=Object.defineProperty({},"passive",{get:function(){return vt=!0,!0}});window.addEventListener("test",xe,xe),window.removeEventListener("test",xe,xe)}catch{vt=!1}var ae=vt?{passive:!1}:!1,Oc=function(e){return e.tagName==="TEXTAREA"},Lr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Oc(e)&&n[t]==="visible")},Ac=function(e){return Lr(e,"overflowY")},Rc=function(e){return Lr(e,"overflowX")},yn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fr(e,r);if(o){var i=Ur(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ic=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Tc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fr=function(e,t){return e==="v"?Ac(t):Rc(t)},Ur=function(e,t){return e==="v"?Ic(t):Tc(t)},kc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dc=function(e,t,n,r,o){var i=kc(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 h=Ur(e,s),S=h[0],p=h[1],m=h[2],b=p-m-i*S;(S||b)&&Fr(e,s)&&(d+=b,_+=S);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(l&&Math.abs(d)<1||!l&&Math.abs(_)<1)&&(u=!0),u},ze=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bn=function(e){return[e.deltaX,e.deltaY]},Cn=function(e){return e&&"current"in e?e.current:e},xc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zc=function(e){return`
38
+ `)},gn=function(){var e=parseInt(document.body.getAttribute(fe)||"0",10);return isFinite(e)?e:0},Pc=function(){O(function(){return document.body.setAttribute(fe,(gn()+1).toString()),function(){var e=gn()-1;e<=0?document.body.removeAttribute(fe):document.body.setAttribute(fe,e.toString())}},[])},Nc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Pc();var i=x(function(){return Ec(o)},[o]);return v.createElement(Sc,{styles:wc(i,!t,o,n?"":"!important")})},vt=!1;if(typeof window<"u")try{var xe=Object.defineProperty({},"passive",{get:function(){return vt=!0,!0}});window.addEventListener("test",xe,xe),window.removeEventListener("test",xe,xe)}catch{vt=!1}var ae=vt?{passive:!1}:!1,Oc=function(e){return e.tagName==="TEXTAREA"},Lr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Oc(e)&&n[t]==="visible")},Ac=function(e){return Lr(e,"overflowY")},Rc=function(e){return Lr(e,"overflowX")},yn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fr(e,r);if(o){var i=Ur(e,r),c=i[1],s=i[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},kc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ic=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fr=function(e,t){return e==="v"?Ac(t):Rc(t)},Ur=function(e,t){return e==="v"?kc(t):Ic(t)},Tc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Dc=function(e,t,n,r,o){var i=Tc(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 h=Ur(e,s),S=h[0],p=h[1],m=h[2],b=p-m-i*S;(S||b)&&Fr(e,s)&&(d+=b,_+=S);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(l&&Math.abs(d)<1||!l&&Math.abs(_)<1)&&(u=!0),u},ze=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bn=function(e){return[e.deltaX,e.deltaY]},Cn=function(e){return e&&"current"in e?e.current:e},xc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zc=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},Mc=0,ue=[];function $c(e){var t=N([]),n=N([0,0]),r=N(),o=T(Mc++)[0],i=T($r)[0],c=N(e);O(function(){c.current=e},[e]),O(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=oc([e.lockRef.current],(e.shards||[]).map(Cn),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=M(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!c.current.allowPinchZoom;var b=ze(p),g=n.current,C="deltaX"in p?p.deltaX:g[0]-b[0],y="deltaY"in p?p.deltaY:g[1]-b[1],P,E=p.target,w=Math.abs(C)>Math.abs(y)?"h":"v";if("touches"in p&&w==="h"&&E.type==="range")return!1;var I=window.getSelection(),X=I&&I.anchorNode,L=X?X===E||X.contains(E):!1;if(L)return!1;var Re=yn(w,E);if(!Re)return!0;if(Re?P=w:(P=w==="v"?"h":"v",Re=yn(w,E)),!Re)return!1;if(!r.current&&"changedTouches"in p&&(C||y)&&(r.current=P),!P)return!0;var Mt=r.current||P;return Dc(Mt,m,p,Mt==="h"?C:y)},[]),a=M(function(p){var m=p;if(!(!ue.length||ue[ue.length-1]!==i)){var b="deltaY"in m?bn(m):ze(m),g=t.current.filter(function(P){return P.name===m.type&&(P.target===m.target||m.target===P.shadowParent)&&xc(P.delta,b)})[0];if(g&&g.should){m.cancelable&&m.preventDefault();return}if(!g){var C=(c.current.shards||[]).map(Cn).filter(Boolean).filter(function(P){return P.contains(m.target)}),y=C.length>0?s(m,C[0]):!c.current.noIsolation;y&&m.cancelable&&m.preventDefault()}}},[]),u=M(function(p,m,b,g){var C={name:p,delta:m,target:b,should:g,shadowParent:Lc(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(y){return y!==C})},1)},[]),l=M(function(p){n.current=ze(p),r.current=void 0},[]),d=M(function(p){u(p.type,bn(p),p.target,s(p,e.lockRef.current))},[]),_=M(function(p){u(p.type,ze(p),p.target,s(p,e.lockRef.current))},[]);O(function(){return ue.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:_}),document.addEventListener("wheel",a,ae),document.addEventListener("touchmove",a,ae),document.addEventListener("touchstart",l,ae),function(){ue=ue.filter(function(p){return p!==i}),document.removeEventListener("wheel",a,ae),document.removeEventListener("touchmove",a,ae),document.removeEventListener("touchstart",l,ae)}},[]);var h=e.removeScrollBar,S=e.inert;return v.createElement(v.Fragment,null,S?v.createElement(i,{styles:zc(o)}):null,h?v.createElement(Nc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fc=pc(Mr,$c);var jr=A(function(e,t){return v.createElement(Qe,H({},e,{ref:t,sideCar:Fc}))});jr.classNames=Qe.classNames;var Uc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},le=new WeakMap,Me=new WeakMap,$e={},lt=0,Wr=function(e){return e&&(e.host||Wr(e.parentNode))},jc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wr(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})},Wc=function(e,t,n,r){var o=jc(t,Array.isArray(e)?e:[e]);$e[n]||($e[n]=new WeakMap);var i=$e[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 h=_.getAttribute(r),S=h!==null&&h!=="false",p=(le.get(_)||0)+1,m=(i.get(_)||0)+1;le.set(_,p),i.set(_,m),c.push(_),p===1&&S&&Me.set(_,!0),m===1&&_.setAttribute(n,"true"),S||_.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",_,b)}})};return l(t),s.clear(),lt++,function(){c.forEach(function(d){var _=le.get(d)-1,h=i.get(d)-1;le.set(d,_),i.set(d,h),_||(Me.has(d)||d.removeAttribute(r),Me.delete(d)),h||d.removeAttribute(n)}),lt--,lt||(le=new WeakMap,le=new WeakMap,Me=new WeakMap,$e={})}},Bc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Uc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Wc(r,o,n,"aria-hidden")):function(){return null}},et="Dialog",[Br]=Ne(et),[Hc,B]=Br(et),Hr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=N(null),a=N(null),[u,l]=Oe({prop:r,defaultProp:o??!1,onChange:i,caller:et});return f(Hc,{scope:t,triggerRef:s,contentRef:a,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:u,onOpenChange:l,onOpenToggle:M(()=>l(d=>!d),[l]),modal:c,children:n})};Hr.displayName=et;var Zr="DialogTrigger",Zc=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Zr,n),i=F(t,o.triggerRef);return f($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zt(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)})});Zc.displayName=Zr;var Dt="DialogPortal",[Vc,Vr]=Br(Dt,{forceMount:void 0}),Kr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=B(Dt,t);return f(Vc,{scope:t,forceMount:n,children:V.map(r,c=>f(Ae,{present:n||i.open,children:f(Dr,{asChild:!0,container:o,children:c})}))})};Kr.displayName=Dt;var Ke="DialogOverlay",Kc=A((e,t)=>{const n=Vr(Ke,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=B(Ke,e.__scopeDialog);return i.modal?f(Ae,{present:r||i.open,children:f(Gc,{...o,ref:t})}):null});Kc.displayName=Ke;var qc=Ze("DialogOverlay.RemoveScroll"),Gc=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Ke,n);return f(jr,{as:qc,allowPinchZoom:!0,shards:[o.contentRef],children:f($.div,{"data-state":zt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ie="DialogContent",qr=A((e,t)=>{const n=Vr(ie,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=B(ie,e.__scopeDialog);return f(Ae,{present:r||i.open,children:i.modal?f(Yc,{...o,ref:t}):f(Xc,{...o,ref:t})})});qr.displayName=ie;var Yc=A((e,t)=>{const n=B(ie,e.__scopeDialog),r=N(null),o=F(t,n.contentRef,r);return O(()=>{const i=r.current;if(i)return Bc(i)},[]),f(Gr,{...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())})}),Xc=A((e,t)=>{const n=B(ie,e.__scopeDialog),r=N(!1),o=N(!1);return f(Gr,{...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()}})}),Gr=A((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=B(ie,n),a=N(null),u=F(t,a);return rc(),f(v.Fragment,{children:[f(Tr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:f(Rr,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":zt(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),f(v.Fragment,{children:[f(Jc,{titleId:s.titleId}),f(ea,{contentRef:a,descriptionId:s.descriptionId})]})]})}),xt="DialogTitle",Yr=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(xt,n);return f($.h2,{id:o.titleId,...r,ref:t})});Yr.displayName=xt;var Xr="DialogDescription",Jr=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Xr,n);return f($.p,{id:o.descriptionId,...r,ref:t})});Jr.displayName=Xr;var Qr="DialogClose",eo=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Qr,n);return f($.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});eo.displayName=Qr;function zt(e){return e?"open":"closed"}var to="DialogTitleWarning",[ua,no]=Mi(to,{contentName:ie,titleName:xt,docsSlug:"dialog"}),Jc=({titleId:e})=>{const t=no(to),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},Mc=0,ue=[];function $c(e){var t=N([]),n=N([0,0]),r=N(),o=I(Mc++)[0],i=I($r)[0],c=N(e);O(function(){c.current=e},[e]),O(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=oc([e.lockRef.current],(e.shards||[]).map(Cn),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=M(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!c.current.allowPinchZoom;var b=ze(p),g=n.current,C="deltaX"in p?p.deltaX:g[0]-b[0],y="deltaY"in p?p.deltaY:g[1]-b[1],P,E=p.target,w=Math.abs(C)>Math.abs(y)?"h":"v";if("touches"in p&&w==="h"&&E.type==="range")return!1;var k=window.getSelection(),X=k&&k.anchorNode,L=X?X===E||X.contains(E):!1;if(L)return!1;var Re=yn(w,E);if(!Re)return!0;if(Re?P=w:(P=w==="v"?"h":"v",Re=yn(w,E)),!Re)return!1;if(!r.current&&"changedTouches"in p&&(C||y)&&(r.current=P),!P)return!0;var Mt=r.current||P;return Dc(Mt,m,p,Mt==="h"?C:y)},[]),a=M(function(p){var m=p;if(!(!ue.length||ue[ue.length-1]!==i)){var b="deltaY"in m?bn(m):ze(m),g=t.current.filter(function(P){return P.name===m.type&&(P.target===m.target||m.target===P.shadowParent)&&xc(P.delta,b)})[0];if(g&&g.should){m.cancelable&&m.preventDefault();return}if(!g){var C=(c.current.shards||[]).map(Cn).filter(Boolean).filter(function(P){return P.contains(m.target)}),y=C.length>0?s(m,C[0]):!c.current.noIsolation;y&&m.cancelable&&m.preventDefault()}}},[]),u=M(function(p,m,b,g){var C={name:p,delta:m,target:b,should:g,shadowParent:Lc(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(y){return y!==C})},1)},[]),l=M(function(p){n.current=ze(p),r.current=void 0},[]),d=M(function(p){u(p.type,bn(p),p.target,s(p,e.lockRef.current))},[]),_=M(function(p){u(p.type,ze(p),p.target,s(p,e.lockRef.current))},[]);O(function(){return ue.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:_}),document.addEventListener("wheel",a,ae),document.addEventListener("touchmove",a,ae),document.addEventListener("touchstart",l,ae),function(){ue=ue.filter(function(p){return p!==i}),document.removeEventListener("wheel",a,ae),document.removeEventListener("touchmove",a,ae),document.removeEventListener("touchstart",l,ae)}},[]);var h=e.removeScrollBar,S=e.inert;return v.createElement(v.Fragment,null,S?v.createElement(i,{styles:zc(o)}):null,h?v.createElement(Nc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fc=pc(Mr,$c);var jr=A(function(e,t){return v.createElement(Qe,H({},e,{ref:t,sideCar:Fc}))});jr.classNames=Qe.classNames;var Uc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},le=new WeakMap,Me=new WeakMap,$e={},lt=0,Wr=function(e){return e&&(e.host||Wr(e.parentNode))},jc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wr(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})},Wc=function(e,t,n,r){var o=jc(t,Array.isArray(e)?e:[e]);$e[n]||($e[n]=new WeakMap);var i=$e[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 h=_.getAttribute(r),S=h!==null&&h!=="false",p=(le.get(_)||0)+1,m=(i.get(_)||0)+1;le.set(_,p),i.set(_,m),c.push(_),p===1&&S&&Me.set(_,!0),m===1&&_.setAttribute(n,"true"),S||_.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",_,b)}})};return l(t),s.clear(),lt++,function(){c.forEach(function(d){var _=le.get(d)-1,h=i.get(d)-1;le.set(d,_),i.set(d,h),_||(Me.has(d)||d.removeAttribute(r),Me.delete(d)),h||d.removeAttribute(n)}),lt--,lt||(le=new WeakMap,le=new WeakMap,Me=new WeakMap,$e={})}},Bc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Uc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Wc(r,o,n,"aria-hidden")):function(){return null}},et="Dialog",[Br]=Ne(et),[Hc,B]=Br(et),Hr=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,s=N(null),a=N(null),[u,l]=Oe({prop:r,defaultProp:o??!1,onChange:i,caller:et});return f(Hc,{scope:t,triggerRef:s,contentRef:a,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:u,onOpenChange:l,onOpenToggle:M(()=>l(d=>!d),[l]),modal:c,children:n})};Hr.displayName=et;var Zr="DialogTrigger",Zc=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Zr,n),i=F(t,o.triggerRef);return f($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zt(o.open),...r,ref:i,onClick:j(e.onClick,o.onOpenToggle)})});Zc.displayName=Zr;var Dt="DialogPortal",[Vc,Vr]=Br(Dt,{forceMount:void 0}),Kr=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=B(Dt,t);return f(Vc,{scope:t,forceMount:n,children:V.map(r,c=>f(Ae,{present:n||i.open,children:f(Dr,{asChild:!0,container:o,children:c})}))})};Kr.displayName=Dt;var Ke="DialogOverlay",Kc=A((e,t)=>{const n=Vr(Ke,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=B(Ke,e.__scopeDialog);return i.modal?f(Ae,{present:r||i.open,children:f(Gc,{...o,ref:t})}):null});Kc.displayName=Ke;var qc=Ze("DialogOverlay.RemoveScroll"),Gc=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Ke,n);return f(jr,{as:qc,allowPinchZoom:!0,shards:[o.contentRef],children:f($.div,{"data-state":zt(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ie="DialogContent",qr=A((e,t)=>{const n=Vr(ie,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=B(ie,e.__scopeDialog);return f(Ae,{present:r||i.open,children:i.modal?f(Yc,{...o,ref:t}):f(Xc,{...o,ref:t})})});qr.displayName=ie;var Yc=A((e,t)=>{const n=B(ie,e.__scopeDialog),r=N(null),o=F(t,n.contentRef,r);return O(()=>{const i=r.current;if(i)return Bc(i)},[]),f(Gr,{...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())})}),Xc=A((e,t)=>{const n=B(ie,e.__scopeDialog),r=N(!1),o=N(!1);return f(Gr,{...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()}})}),Gr=A((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,s=B(ie,n),a=N(null),u=F(t,a);return rc(),f(v.Fragment,{children:[f(Ir,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:f(Rr,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":zt(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),f(v.Fragment,{children:[f(Jc,{titleId:s.titleId}),f(ea,{contentRef:a,descriptionId:s.descriptionId})]})]})}),xt="DialogTitle",Yr=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(xt,n);return f($.h2,{id:o.titleId,...r,ref:t})});Yr.displayName=xt;var Xr="DialogDescription",Jr=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Xr,n);return f($.p,{id:o.descriptionId,...r,ref:t})});Jr.displayName=Xr;var Qr="DialogClose",eo=A((e,t)=>{const{__scopeDialog:n,...r}=e,o=B(Qr,n);return f($.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});eo.displayName=Qr;function zt(e){return e?"open":"closed"}var to="DialogTitleWarning",[ua,no]=Mi(to,{contentName:ie,titleName:xt,docsSlug:"dialog"}),Jc=({titleId:e})=>{const t=no(to),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 O(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qc="DialogDescriptionWarning",ea=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${no(Qc).contentName}}.`;return O(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ta=Hr,na=Kr,ra=qr,oa=Yr,ia=Jr,En=eo;const sa=({container:e,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:_}=Or(),[h,S]=T(void 0),[p,m]=T(s);return f(ta,{open:!_,children:f(na,{container:e,children:f(ra,{className:Fe({[U.root]:!0,[U.noTarget]:!e}),children:f(sr,{open:p,onOpenChange:m,className:U.collapsible,children:[f("div",{className:U.header,children:[f("div",{className:U.heading,children:[f(oa,{asChild:!0,children:f(re,{weight:"bold",children:t})}),f(ia,{asChild:!0,children:f(re,{size:"caption",color:"muted",children:n})})]}),f(cr,{asChild:!0,children:f(rt,{variant:"ghost",children:[p?o:r," ",f(Ns,{size:12,className:Fe({[U.chevron]:!0,[U.open]:p})})]})})]}),f(ar,{className:Fe({[U.settings]:!0}),children:f(vs,{type:"single",collapsible:!0,value:h,onValueChange:S,children:u.map(b=>f(Us,{...b,openItem:h},b.value))})}),f("div",{className:U.footer,children:[f("div",{className:U.legal,children:a&&f(re,{size:"caption",children:f("a",{href:a.url,target:"_blank",children:a.label})})}),f("div",{className:U.actions,children:[f(En,{asChild:!0,children:f(rt,{variant:"neutral",onClick:()=>d(),children:c})}),f(En,{asChild:!0,children:f(rt,{variant:"brand",onClick:()=>l(),children:i})})]})]})]})})})})},ca=({cookie:e,items:t,...n})=>{const r=x(()=>t.filter(o=>!o.required).map(o=>({value:o.value,scripts:o.scripts,defaultSelected:o.defaultSelected,required:o.required})),[t]);return f(Fs,{items:r,cookie:e,children:f(sa,{items:t,cookie:e,...n})})};function aa(e,t){let n;if(typeof t=="string"){const r=document.querySelector(t);if(!r)throw new Error(`Element with selector "${t}" not found`);n=r}else n=t;v.render(f(ca,{container:n,...e}),document.body)}exports.mountBanner=aa;
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return O(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Qc="DialogDescriptionWarning",ea=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${no(Qc).contentName}}.`;return O(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ta=Hr,na=Kr,ra=qr,oa=Yr,ia=Jr,En=eo;const sa=({container:e,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:_}=Or(),[h,S]=I(void 0),[p,m]=I(s);return f(ta,{open:!_,children:f(na,{container:e,children:f(ra,{className:Fe({[U.root]:!0,[U.noTarget]:!e}),children:f(sr,{open:p,onOpenChange:m,className:U.collapsible,children:[f("div",{className:U.header,children:[f("div",{className:U.heading,children:[f(oa,{asChild:!0,children:f(re,{weight:"bold",children:t})}),f(ia,{asChild:!0,children:f(re,{size:"caption",color:"muted",children:n})})]}),f(cr,{asChild:!0,children:f(rt,{variant:"ghost",children:[p?o:r," ",f(Ns,{size:12,className:Fe({[U.chevron]:!0,[U.open]:p})})]})})]}),f(ar,{className:Fe({[U.settings]:!0}),children:f(vs,{type:"single",collapsible:!0,value:h,onValueChange:S,children:u.map(b=>f(Us,{...b,openItem:h},b.value))})}),f("div",{className:U.footer,children:[f("div",{className:U.legal,children:a&&f(re,{size:"caption",children:f("a",{href:a.url,target:"_blank",children:a.label})})}),f("div",{className:U.actions,children:[f(En,{asChild:!0,children:f(rt,{variant:"neutral",onClick:()=>d(),children:c})}),f(En,{asChild:!0,children:f(rt,{variant:"brand",onClick:()=>l(),children:i})})]})]})]})})})})},ca=({cookie:e,items:t,...n})=>{const r=x(()=>t.filter(o=>!o.required).map(o=>({value:o.value,scripts:o.scripts,defaultSelected:o.defaultSelected,required:o.required})),[t]);return f(Fs,{items:r,cookie:e,children:f(sa,{items:t,cookie:e,...n})})};function aa(e,t){let n;if(typeof t=="string"){const r=document.querySelector(t);if(!r)throw new Error(`Element with selector "${t}" not found`);n=r}else n=t;v.render(f(ca,{container:n,...e}),document.body)}exports.mountBanner=aa;
@@ -8,18 +8,18 @@ function f(e, t, n, r, o, i) {
8
8
  if (typeof e == "function" && (c = e.defaultProps)) for (s in c) a[s] === void 0 && (a[s] = c[s]);
9
9
  return $.vnode && $.vnode(u), u;
10
10
  }
11
- var Y, A, ct, Bt, ge = 0, In = [], k = $, Ht = k.__b, Zt = k.__r, Vt = k.diffed, Kt = k.__c, qt = k.unmount, Gt = k.__;
11
+ var Y, A, ct, Bt, ge = 0, kn = [], I = $, Ht = I.__b, Zt = I.__r, Vt = I.diffed, Kt = I.__c, qt = I.unmount, Gt = I.__;
12
12
  function de(e, t) {
13
- k.__h && k.__h(A, e, ge || t), ge = 0;
13
+ I.__h && I.__h(A, e, ge || t), ge = 0;
14
14
  var n = A.__H || (A.__H = { __: [], __h: [] });
15
15
  return e >= n.__.length && n.__.push({}), n.__[e];
16
16
  }
17
- function I(e) {
18
- return ge = 1, ke(kn, e);
17
+ function k(e) {
18
+ return ge = 1, Ie(In, e);
19
19
  }
20
- function ke(e, t, n) {
20
+ function Ie(e, t, n) {
21
21
  var r = de(Y++, 2);
22
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : kn(void 0, t), function(s) {
22
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : In(void 0, t), function(s) {
23
23
  var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, s);
24
24
  a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
25
25
  }], r.__c = A, !A.__f)) {
@@ -53,11 +53,11 @@ function ke(e, t, n) {
53
53
  }
54
54
  function N(e, t) {
55
55
  var n = de(Y++, 3);
56
- !k.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__H.__h.push(n));
56
+ !I.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__H.__h.push(n));
57
57
  }
58
58
  function oe(e, t) {
59
59
  var n = de(Y++, 4);
60
- !k.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__h.push(n));
60
+ !I.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, A.__h.push(n));
61
61
  }
62
62
  function P(e) {
63
63
  return ge = 5, x(function() {
@@ -91,10 +91,10 @@ function J(e) {
91
91
  return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(A)), t.props.value) : e.__;
92
92
  }
93
93
  function wt(e, t) {
94
- k.useDebugValue && k.useDebugValue(t ? t(e) : e);
94
+ I.useDebugValue && I.useDebugValue(t ? t(e) : e);
95
95
  }
96
96
  function _o(e) {
97
- var t = de(Y++, 10), n = I();
97
+ var t = de(Y++, 10), n = k();
98
98
  return t.__ = e, A.componentDidCatch || (A.componentDidCatch = function(r, o) {
99
99
  t.__ && t.__(r, o), n[1](r);
100
100
  }), [n[0], function() {
@@ -111,32 +111,32 @@ function Et() {
111
111
  return e.__;
112
112
  }
113
113
  function vo() {
114
- for (var e; e = In.shift(); ) {
114
+ for (var e; e = kn.shift(); ) {
115
115
  var t = e.__H;
116
116
  if (e.__P && t) try {
117
117
  t.__h.some(He), t.__h.some(mt), t.__h = [];
118
118
  } catch (n) {
119
- t.__h = [], k.__e(n, e.__v);
119
+ t.__h = [], I.__e(n, e.__v);
120
120
  }
121
121
  }
122
122
  }
123
- k.__b = function(e) {
123
+ I.__b = function(e) {
124
124
  A = null, Ht && Ht(e);
125
- }, k.__ = function(e, t) {
125
+ }, I.__ = function(e, t) {
126
126
  e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Gt && Gt(e, t);
127
- }, k.__r = function(e) {
127
+ }, I.__r = function(e) {
128
128
  Zt && Zt(e), Y = 0;
129
129
  var t = (A = e.__c).__H;
130
130
  t && (ct === A ? (t.__h = [], A.__h = [], t.__.some(function(n) {
131
131
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
132
132
  })) : (t.__h.some(He), t.__h.some(mt), t.__h = [], Y = 0)), ct = A;
133
- }, k.diffed = function(e) {
133
+ }, I.diffed = function(e) {
134
134
  Vt && Vt(e);
135
135
  var t = e.__c;
136
- t && t.__H && (t.__H.__h.length && (In.push(t) !== 1 && Bt === k.requestAnimationFrame || ((Bt = k.requestAnimationFrame) || ho)(vo)), t.__H.__.some(function(n) {
136
+ t && t.__H && (t.__H.__h.length && (kn.push(t) !== 1 && Bt === I.requestAnimationFrame || ((Bt = I.requestAnimationFrame) || ho)(vo)), t.__H.__.some(function(n) {
137
137
  n.u && (n.__H = n.u), n.u = void 0;
138
138
  })), ct = A = null;
139
- }, k.__c = function(e, t) {
139
+ }, I.__c = function(e, t) {
140
140
  t.some(function(n) {
141
141
  try {
142
142
  n.__h.some(He), n.__h = n.__h.filter(function(r) {
@@ -145,10 +145,10 @@ k.__b = function(e) {
145
145
  } catch (r) {
146
146
  t.some(function(o) {
147
147
  o.__h && (o.__h = []);
148
- }), t = [], k.__e(r, n.__v);
148
+ }), t = [], I.__e(r, n.__v);
149
149
  }
150
150
  }), Kt && Kt(e, t);
151
- }, k.unmount = function(e) {
151
+ }, I.unmount = function(e) {
152
152
  qt && qt(e);
153
153
  var t, n = e.__c;
154
154
  n && n.__H && (n.__H.__.some(function(r) {
@@ -157,7 +157,7 @@ k.__b = function(e) {
157
157
  } catch (o) {
158
158
  t = o;
159
159
  }
160
- }), n.__H = void 0, t && k.__e(t, n.__v));
160
+ }), n.__H = void 0, t && I.__e(t, n.__v));
161
161
  };
162
162
  var Yt = typeof requestAnimationFrame == "function";
163
163
  function ho(e) {
@@ -179,7 +179,7 @@ function Pt(e, t) {
179
179
  return n !== e[r];
180
180
  });
181
181
  }
182
- function kn(e, t) {
182
+ function In(e, t) {
183
183
  return typeof t == "function" ? t(e) : t;
184
184
  }
185
185
  function Tn(e, t) {
@@ -192,7 +192,7 @@ function gt(e, t) {
192
192
  return !1;
193
193
  }
194
194
  function Nt(e, t) {
195
- var n = t(), r = I({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
195
+ var n = t(), r = k({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
196
  return oe(function() {
197
197
  o.__ = n, o.u = t, at(o) && i({ t: o });
198
198
  }, [e, n, t]), N(function() {
@@ -218,7 +218,7 @@ function At(e) {
218
218
  function Rt() {
219
219
  return [!1, Ot];
220
220
  }
221
- var It = oe;
221
+ var kt = oe;
222
222
  function qe(e, t) {
223
223
  this.props = e, this.context = t;
224
224
  }
@@ -415,7 +415,7 @@ function Ao() {
415
415
  $.event = function(e) {
416
416
  return tn && (e = tn(e)), e.persist = No, e.isPropagationStopped = Oo, e.isDefaultPrevented = Ao, e.nativeEvent = e;
417
417
  };
418
- var kt, Ro = { enumerable: !1, configurable: !0, get: function() {
418
+ var It, Ro = { enumerable: !1, configurable: !0, get: function() {
419
419
  return this.class;
420
420
  } }, nn = $.vnode;
421
421
  $.vnode = function(e) {
@@ -437,17 +437,17 @@ $.vnode = function(e) {
437
437
  };
438
438
  var rn = $.__r;
439
439
  $.__r = function(e) {
440
- rn && rn(e), kt = e.__c;
440
+ rn && rn(e), It = e.__c;
441
441
  };
442
442
  var on = $.diffed;
443
443
  $.diffed = function(e) {
444
444
  on && on(e);
445
445
  var t = e.props, n = e.__e;
446
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), kt = null;
446
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), It = null;
447
447
  };
448
448
  var Wn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
- return kt.__n[e.__c].props.value;
450
- }, useCallback: M, useContext: J, useDebugValue: wt, useDeferredValue: At, useEffect: N, useId: Et, useImperativeHandle: St, useInsertionEffect: It, useLayoutEffect: oe, useMemo: x, useReducer: ke, useRef: P, useState: I, useSyncExternalStore: Nt, useTransition: Rt } } }, Io = "18.3.1";
449
+ return It.__n[e.__c].props.value;
450
+ }, useCallback: M, useContext: J, useDebugValue: wt, useDeferredValue: At, useEffect: N, useId: Et, useImperativeHandle: St, useInsertionEffect: kt, useLayoutEffect: oe, useMemo: x, useReducer: Ie, useRef: P, useState: k, useSyncExternalStore: Nt, useTransition: Rt } } }, ko = "18.3.1";
451
451
  function Bn(e) {
452
452
  return D.bind(null, e);
453
453
  }
@@ -473,7 +473,7 @@ var qn = function(e, t) {
473
473
  return e(t);
474
474
  }, Tt = function(e, t) {
475
475
  return e(t);
476
- }, Gn = B, Yn = X, T = { useState: I, useId: Et, useReducer: ke, useEffect: N, useLayoutEffect: oe, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: P, useImperativeHandle: St, useMemo: x, useCallback: M, useContext: J, useDebugValue: wt, version: "18.3.1", Children: q, render: Un, hydrate: jn, unmountComponentAtNode: Vn, createPortal: Ln, createElement: D, createContext: re, createFactory: Bn, cloneElement: ye, createRef: Rn, Fragment: B, isValidElement: X, isElement: Yn, isFragment: Hn, isMemo: Zn, findDOMNode: Kn, Component: ae, PureComponent: qe, memo: Dn, forwardRef: O, flushSync: Tt, unstable_batchedUpdates: qn, StrictMode: Gn, Suspense: Pe, SuspenseList: he, lazy: $n, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Wn };
476
+ }, Gn = B, Yn = X, T = { useState: k, useId: Et, useReducer: Ie, useEffect: N, useLayoutEffect: oe, useInsertionEffect: kt, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: P, useImperativeHandle: St, useMemo: x, useCallback: M, useContext: J, useDebugValue: wt, version: "18.3.1", Children: q, render: Un, hydrate: jn, unmountComponentAtNode: Vn, createPortal: Ln, createElement: D, createContext: re, createFactory: Bn, cloneElement: ye, createRef: Rn, Fragment: B, isValidElement: X, isElement: Yn, isFragment: Hn, isMemo: Zn, findDOMNode: Kn, Component: ae, PureComponent: qe, memo: Dn, forwardRef: O, flushSync: Tt, unstable_batchedUpdates: qn, StrictMode: Gn, Suspense: Pe, SuspenseList: he, lazy: $n, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Wn };
477
477
  const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
478
478
  __proto__: null,
479
479
  Children: q,
@@ -513,15 +513,15 @@ const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
513
513
  useErrorBoundary: _o,
514
514
  useId: Et,
515
515
  useImperativeHandle: St,
516
- useInsertionEffect: It,
516
+ useInsertionEffect: kt,
517
517
  useLayoutEffect: oe,
518
518
  useMemo: x,
519
- useReducer: ke,
519
+ useReducer: Ie,
520
520
  useRef: P,
521
- useState: I,
521
+ useState: k,
522
522
  useSyncExternalStore: Nt,
523
523
  useTransition: Rt,
524
- version: Io
524
+ version: ko
525
525
  }, Symbol.toStringTag, { value: "Module" }));
526
526
  function Jn(...e) {
527
527
  return e.filter(Boolean).join(" ");
@@ -529,8 +529,8 @@ function Jn(...e) {
529
529
  function Ze(e) {
530
530
  return Object.entries(e).filter(([, t]) => t).map(([t]) => t).join(" ");
531
531
  }
532
- const ko = "_root_hw69b_1", To = "_neutral_hw69b_17", Do = "_brand_hw69b_30", xo = "_ghost_hw69b_43", sn = {
533
- root: ko,
532
+ const Io = "_root_hw69b_1", To = "_neutral_hw69b_17", Do = "_brand_hw69b_30", xo = "_ghost_hw69b_43", sn = {
533
+ root: Io,
534
534
  neutral: To,
535
535
  brand: Do,
536
536
  ghost: xo
@@ -1127,7 +1127,7 @@ const Ni = /* @__PURE__ */ z("$ZodUnion", (e, t) => {
1127
1127
  function ln(e, t) {
1128
1128
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1129
1129
  }
1130
- const Ii = /* @__PURE__ */ z("$ZodOptional", (e, t) => {
1130
+ const ki = /* @__PURE__ */ z("$ZodOptional", (e, t) => {
1131
1131
  ie.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", K(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), K(e._zod, "pattern", () => {
1132
1132
  const n = t.innerType._zod.pattern;
1133
1133
  return n ? new RegExp(`^(${er(n.source)})?$`) : void 0;
@@ -1140,7 +1140,7 @@ const Ii = /* @__PURE__ */ z("$ZodOptional", (e, t) => {
1140
1140
  };
1141
1141
  });
1142
1142
  // @__NO_SIDE_EFFECTS__
1143
- function ki(e, t) {
1143
+ function Ii(e, t) {
1144
1144
  return new e({
1145
1145
  type: "string",
1146
1146
  ...Ce()
@@ -1168,7 +1168,7 @@ const fe = /* @__PURE__ */ z("ZodMiniType", (e, t) => {
1168
1168
  });
1169
1169
  // @__NO_SIDE_EFFECTS__
1170
1170
  function G(e) {
1171
- return /* @__PURE__ */ ki(Di);
1171
+ return /* @__PURE__ */ Ii(Di);
1172
1172
  }
1173
1173
  const xi = /* @__PURE__ */ z("ZodMiniBoolean", (e, t) => {
1174
1174
  Si.init(e, t), fe.init(e, t);
@@ -1225,7 +1225,7 @@ function sr(e, t) {
1225
1225
  });
1226
1226
  }
1227
1227
  const ji = /* @__PURE__ */ z("ZodMiniOptional", (e, t) => {
1228
- Ii.init(e, t), fe.init(e, t);
1228
+ ki.init(e, t), fe.init(e, t);
1229
1229
  });
1230
1230
  // @__NO_SIDE_EFFECTS__
1231
1231
  function te(e) {
@@ -1469,7 +1469,7 @@ function es({
1469
1469
  defaultProp: e,
1470
1470
  onChange: t
1471
1471
  }) {
1472
- const [n, r] = I(e), o = P(n), i = P(t);
1472
+ const [n, r] = k(e), o = P(n), i = P(t);
1473
1473
  return Qi(() => {
1474
1474
  i.current = t;
1475
1475
  }, [t]), N(() => {
@@ -1508,7 +1508,7 @@ function rs(e, t) {
1508
1508
  e && Tt(() => e.dispatchEvent(t));
1509
1509
  }
1510
1510
  function os(e, t) {
1511
- return ke((n, r) => t[n][r] ?? n, e);
1511
+ return Ie((n, r) => t[n][r] ?? n, e);
1512
1512
  }
1513
1513
  var xe = (e) => {
1514
1514
  const { present: t, children: n } = e, r = is(t), o = typeof n == "function" ? n({ present: r.isPresent }) : q.only(n), i = U(r.ref, ss(o));
@@ -1516,7 +1516,7 @@ var xe = (e) => {
1516
1516
  };
1517
1517
  xe.displayName = "Presence";
1518
1518
  function is(e) {
1519
- const [t, n] = I(), r = P(null), o = P(e), i = P("none"), c = e ? "mounted" : "unmounted", [s, a] = os(c, {
1519
+ const [t, n] = k(), r = P(null), o = P(e), i = P("none"), c = e ? "mounted" : "unmounted", [s, a] = os(c, {
1520
1520
  mounted: {
1521
1521
  UNMOUNT: "unmounted",
1522
1522
  ANIMATION_OUT: "unmountSuspended"
@@ -1574,7 +1574,7 @@ function ss(e) {
1574
1574
  var cs = Xn[" useId ".trim().toString()] || (() => {
1575
1575
  }), as = 0;
1576
1576
  function Oe(e) {
1577
- const [t, n] = I(cs());
1577
+ const [t, n] = k(cs());
1578
1578
  return ue(() => {
1579
1579
  n((r) => r ?? String(as++));
1580
1580
  }, [e]), e || (t ? `radix-${t}` : "");
@@ -1644,7 +1644,7 @@ var xt = "CollapsibleContent", fr = O(
1644
1644
  );
1645
1645
  fr.displayName = xt;
1646
1646
  var ds = O((e, t) => {
1647
- const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] = I(r), u = P(null), l = U(t, u), d = P(0), _ = d.current, v = P(0), S = v.current, p = c.open || s, h = P(p), y = P(void 0);
1647
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] = k(r), u = P(null), l = U(t, u), d = P(0), _ = d.current, v = P(0), S = v.current, p = c.open || s, h = P(p), y = P(void 0);
1648
1648
  return N(() => {
1649
1649
  const m = requestAnimationFrame(() => h.current = !1);
1650
1650
  return () => cancelAnimationFrame(m);
@@ -1917,13 +1917,13 @@ var Rs = {
1917
1917
  strokeLinecap: "round",
1918
1918
  strokeLinejoin: "round"
1919
1919
  };
1920
- const Is = (e) => {
1920
+ const ks = (e) => {
1921
1921
  for (const t in e)
1922
1922
  if (t.startsWith("aria-") || t === "role" || t === "title")
1923
1923
  return !0;
1924
1924
  return !1;
1925
1925
  };
1926
- const ks = O(
1926
+ const Is = O(
1927
1927
  ({
1928
1928
  color: e = "currentColor",
1929
1929
  size: t = 24,
@@ -1943,7 +1943,7 @@ const ks = O(
1943
1943
  stroke: e,
1944
1944
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
1945
1945
  className: Nr("lucide", o),
1946
- ...!i && !Is(s) && { "aria-hidden": "true" },
1946
+ ...!i && !ks(s) && { "aria-hidden": "true" },
1947
1947
  ...s
1948
1948
  },
1949
1949
  [
@@ -1954,7 +1954,7 @@ const ks = O(
1954
1954
  );
1955
1955
  const Or = (e, t) => {
1956
1956
  const n = O(
1957
- ({ className: r, ...o }, i) => D(ks, {
1957
+ ({ className: r, ...o }, i) => D(Is, {
1958
1958
  ref: i,
1959
1959
  iconNode: t,
1960
1960
  className: Nr(
@@ -1974,7 +1974,7 @@ function Ms(e) {
1974
1974
  return x(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1975
1975
  }
1976
1976
  function $s(e) {
1977
- const [t, n] = I(void 0);
1977
+ const [t, n] = k(void 0);
1978
1978
  return ue(() => {
1979
1979
  if (e) {
1980
1980
  n({ width: e.offsetWidth, height: e.offsetHeight });
@@ -2008,7 +2008,7 @@ var ot = "Switch", [Ls] = Te(ot), [Fs, Us] = Ls(ot), Ar = O(
2008
2008
  onCheckedChange: u,
2009
2009
  form: l,
2010
2010
  ...d
2011
- } = e, [_, v] = I(null), S = U(t, (b) => v(b)), p = P(!1), h = _ ? l || !!_.closest("form") : !0, [y, m] = De({
2011
+ } = e, [_, v] = k(null), S = U(t, (b) => v(b)), p = P(!1), h = _ ? l || !!_.closest("form") : !0, [y, m] = De({
2012
2012
  prop: o,
2013
2013
  defaultProp: i ?? !1,
2014
2014
  onChange: u,
@@ -2034,7 +2034,7 @@ var ot = "Switch", [Ls] = Te(ot), [Fs, Us] = Ls(ot), Ar = O(
2034
2034
  }
2035
2035
  ),
2036
2036
  h && /* @__PURE__ */ f(
2037
- kr,
2037
+ Ir,
2038
2038
  {
2039
2039
  control: _,
2040
2040
  bubbles: !p.current,
@@ -2051,7 +2051,7 @@ var ot = "Switch", [Ls] = Te(ot), [Fs, Us] = Ls(ot), Ar = O(
2051
2051
  }
2052
2052
  );
2053
2053
  Ar.displayName = ot;
2054
- var Rr = "SwitchThumb", Ir = O(
2054
+ var Rr = "SwitchThumb", kr = O(
2055
2055
  (e, t) => {
2056
2056
  const { __scopeSwitch: n, ...r } = e, o = Us(Rr, n);
2057
2057
  return /* @__PURE__ */ f(
@@ -2065,8 +2065,8 @@ var Rr = "SwitchThumb", Ir = O(
2065
2065
  );
2066
2066
  }
2067
2067
  );
2068
- Ir.displayName = Rr;
2069
- var js = "SwitchBubbleInput", kr = O(
2068
+ kr.displayName = Rr;
2069
+ var js = "SwitchBubbleInput", Ir = O(
2070
2070
  ({
2071
2071
  __scopeSwitch: e,
2072
2072
  control: t,
@@ -2107,11 +2107,11 @@ var js = "SwitchBubbleInput", kr = O(
2107
2107
  );
2108
2108
  }
2109
2109
  );
2110
- kr.displayName = js;
2110
+ Ir.displayName = js;
2111
2111
  function Tr(e) {
2112
2112
  return e ? "checked" : "unchecked";
2113
2113
  }
2114
- var Ws = Ar, Bs = Ir;
2114
+ var Ws = Ar, Bs = kr;
2115
2115
  const Hs = "_root_dibqz_1", Zs = "_thumb_dibqz_38", Fe = {
2116
2116
  root: Hs,
2117
2117
  switch: "_switch_dibqz_8",
@@ -2133,10 +2133,18 @@ class _n {
2133
2133
  Uint8Array.from(atob(t), (n) => n.charCodeAt(0))
2134
2134
  );
2135
2135
  set = (t, n, r = 365) => {
2136
+ if (typeof document > "u") {
2137
+ console.log("Can't set cookie in non-browser environment");
2138
+ return;
2139
+ }
2136
2140
  const o = new Date(Date.now() + r * 24 * 60 * 60 * 1e3), i = `${this.#e}${t}=${this.#o(n)}; expires=${o}; path=/; domain=${this.#t}; SameSite=${this.#n}; ${this.#r ? "secure" : ""}`;
2137
2141
  document.cookie = i;
2138
2142
  };
2139
2143
  get = (t) => {
2144
+ if (typeof document > "u") {
2145
+ console.log("Can't get cookie in non-browser environment");
2146
+ return;
2147
+ }
2140
2148
  const n = document.cookie.match(
2141
2149
  new RegExp(`(?:^|; )${this.#e}${t}=([^;]*)`)
2142
2150
  );
@@ -2153,7 +2161,7 @@ const vn = "selection", Dr = re(null), qs = ({
2153
2161
  items: t,
2154
2162
  cookie: n
2155
2163
  }) => {
2156
- const { domain: r, prefix: o, sameSite: i, secure: c } = n, [s, a] = I(
2164
+ const { domain: r, prefix: o, sameSite: i, secure: c } = n, [s, a] = k(
2157
2165
  new _n({ domain: r, prefix: o, sameSite: i, secure: c })
2158
2166
  );
2159
2167
  N(() => {
@@ -2172,9 +2180,9 @@ const vn = "selection", Dr = re(null), qs = ({
2172
2180
  t.map((g) => [g.value, g.defaultSelected ?? !1])
2173
2181
  ),
2174
2182
  [t]
2175
- ), [d, _] = I(
2183
+ ), [d, _] = k(
2176
2184
  u() ?? l
2177
- ), [v, S] = I(
2185
+ ), [v, S] = k(
2178
2186
  u()
2179
2187
  );
2180
2188
  function p(g, E) {
@@ -2316,14 +2324,14 @@ const Gs = ({
2316
2324
  ) })
2317
2325
  ] });
2318
2326
  };
2319
- function Ie(e) {
2327
+ function ke(e) {
2320
2328
  const t = P(e);
2321
2329
  return N(() => {
2322
2330
  t.current = e;
2323
2331
  }), x(() => (...n) => t.current?.(...n), []);
2324
2332
  }
2325
2333
  function Ys(e, t = globalThis?.document) {
2326
- const n = Ie(e);
2334
+ const n = ke(e);
2327
2335
  N(() => {
2328
2336
  const r = (o) => {
2329
2337
  o.key === "Escape" && n(o);
@@ -2345,7 +2353,7 @@ var Xs = "DismissableLayer", bt = "dismissableLayer.update", Js = "dismissableLa
2345
2353
  onInteractOutside: c,
2346
2354
  onDismiss: s,
2347
2355
  ...a
2348
- } = e, u = J(zr), [l, d] = I(null), _ = l?.ownerDocument ?? globalThis?.document, [, v] = I({}), S = U(t, (w) => d(w)), p = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(h), m = l ? p.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, g = m >= y, E = nc((w) => {
2356
+ } = e, u = J(zr), [l, d] = k(null), _ = l?.ownerDocument ?? globalThis?.document, [, v] = k({}), S = U(t, (w) => d(w)), p = Array.from(u.layers), [h] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(h), m = l ? p.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, g = m >= y, E = nc((w) => {
2349
2357
  const R = w.target, Q = [...u.branches].some((F) => F.contains(R));
2350
2358
  !g || Q || (o?.(w), c?.(w), w.defaultPrevented || s?.());
2351
2359
  }, _), C = rc((w) => {
@@ -2396,7 +2404,7 @@ var ec = "DismissableLayerBranch", tc = O((e, t) => {
2396
2404
  });
2397
2405
  tc.displayName = ec;
2398
2406
  function nc(e, t = globalThis?.document) {
2399
- const n = Ie(e), r = P(!1), o = P(() => {
2407
+ const n = ke(e), r = P(!1), o = P(() => {
2400
2408
  });
2401
2409
  return N(() => {
2402
2410
  const i = (s) => {
@@ -2426,7 +2434,7 @@ function nc(e, t = globalThis?.document) {
2426
2434
  };
2427
2435
  }
2428
2436
  function rc(e, t = globalThis?.document) {
2429
- const n = Ie(e), r = P(!1);
2437
+ const n = ke(e), r = P(!1);
2430
2438
  return N(() => {
2431
2439
  const o = (i) => {
2432
2440
  i.target && !r.current && $r(Qs, n, { originalEvent: i }, {
@@ -2454,7 +2462,7 @@ var lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", gn
2454
2462
  onMountAutoFocus: o,
2455
2463
  onUnmountAutoFocus: i,
2456
2464
  ...c
2457
- } = e, [s, a] = I(null), u = Ie(o), l = Ie(i), d = P(null), _ = U(t, (p) => a(p)), v = P({
2465
+ } = e, [s, a] = k(null), u = ke(o), l = ke(i), d = P(null), _ = U(t, (p) => a(p)), v = P({
2458
2466
  paused: !1,
2459
2467
  pause() {
2460
2468
  this.paused = !0;
@@ -2576,7 +2584,7 @@ function lc(e) {
2576
2584
  return e.filter((t) => t.tagName !== "A");
2577
2585
  }
2578
2586
  var dc = "Portal", Ur = O((e, t) => {
2579
- const { container: n, ...r } = e, [o, i] = I(!1);
2587
+ const { container: n, ...r } = e, [o, i] = k(!1);
2580
2588
  ue(() => i(!0), []);
2581
2589
  const c = n || o && globalThis?.document?.body;
2582
2590
  return c ? T.createPortal(/* @__PURE__ */ f(L.div, { ...r, ref: t }), c) : null;
@@ -2622,7 +2630,7 @@ function pt(e, t) {
2622
2630
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2623
2631
  }
2624
2632
  function hc(e, t) {
2625
- var n = I(function() {
2633
+ var n = k(function() {
2626
2634
  return {
2627
2635
  // value
2628
2636
  value: e,
@@ -2740,7 +2748,7 @@ function Sc(e, t) {
2740
2748
  }
2741
2749
  var Br = Cc(), _t = function() {
2742
2750
  }, it = O(function(e, t) {
2743
- var n = P(null), r = I({
2751
+ var n = P(null), r = k({
2744
2752
  onScrollCapture: _t,
2745
2753
  onWheelCapture: _t,
2746
2754
  onTouchMoveCapture: _t
@@ -2812,13 +2820,13 @@ var Oc = function() {
2812
2820
  gap: 0
2813
2821
  }, vt = function(e) {
2814
2822
  return parseInt(e || "", 10) || 0;
2815
- }, Ic = function(e) {
2823
+ }, kc = function(e) {
2816
2824
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2817
2825
  return [vt(n), vt(r), vt(o)];
2818
- }, kc = function(e) {
2826
+ }, Ic = function(e) {
2819
2827
  if (e === void 0 && (e = "margin"), typeof window > "u")
2820
2828
  return Rc;
2821
- var t = Ic(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2829
+ var t = kc(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2822
2830
  return {
2823
2831
  left: t[0],
2824
2832
  top: t[1],
@@ -2883,7 +2891,7 @@ var Oc = function() {
2883
2891
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2884
2892
  xc();
2885
2893
  var i = x(function() {
2886
- return kc(o);
2894
+ return Ic(o);
2887
2895
  }, [o]);
2888
2896
  return D(Tc, { styles: Dc(i, !t, o, n ? "" : "!important") });
2889
2897
  }, Ct = !1;
@@ -2976,7 +2984,7 @@ var pe = Ct ? { passive: !1 } : !1, Mc = function(e) {
2976
2984
  `);
2977
2985
  }, Zc = 0, _e = [];
2978
2986
  function Vc(e) {
2979
- var t = P([]), n = P([0, 0]), r = P(), o = I(Zc++)[0], i = I(Hr)[0], c = P(e);
2987
+ var t = P([]), n = P([0, 0]), r = P(), o = k(Zc++)[0], i = k(Hr)[0], c = P(e);
2980
2988
  N(function() {
2981
2989
  c.current = e;
2982
2990
  }, [e]), N(function() {
@@ -3352,7 +3360,7 @@ const va = ({
3352
3360
  privacyPolicy: a,
3353
3361
  items: u
3354
3362
  }) => {
3355
- const { onSave: l, onDeclineAll: d, selectionTaken: _ } = xr(), [v, S] = I(void 0), [p, h] = I(s);
3363
+ const { onSave: l, onDeclineAll: d, selectionTaken: _ } = xr(), [v, S] = k(void 0), [p, h] = k(s);
3356
3364
  return /* @__PURE__ */ f(la, { open: !_, children: /* @__PURE__ */ f(da, { container: e, children: /* @__PURE__ */ f(
3357
3365
  fa,
3358
3366
  {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Chris Kolb <chris@uninspired.studio>",
5
5
  "license": "MIT",
6
6
  "private": false,
7
- "version": "0.0.16",
7
+ "version": "0.0.17",
8
8
  "type": "module",
9
9
  "exports": {
10
10
  "./react": {