(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,982538,e=>{"use strict";var t=e.i(592121);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(e){let r=t.forwardRef((r,o)=>{var s;let f,p,{children:h,...m}=r,b=null,y=!1,x=[];a(h)&&"function"==typeof d&&(h=d(h._payload)),t.Children.forEach(h,e=>{var n;if(n=e,t.isValidElement(n)&&"function"==typeof n.type&&"__radixId"in n.type&&n.type.__radixId===i){y=!0;let t="child"in e.props?e.props.child:e.props.children;a(t)&&"function"==typeof d&&(t=d(t._payload)),b=l(e,t),x.push(b?.props?.children)}else x.push(e)}),b?b=t.cloneElement(b,void 0,x):!y&&1===t.Children.count(h)&&t.isValidElement(h)&&(b=h);let v=b?(s=b,(p=(f=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in f&&f.isReactWarning)?s.ref:(p=(f=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in f&&f.isReactWarning)?s.props.ref:s.props.ref||s.ref):void 0,g=function(...e){return t.useCallback(function(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(m,b.props??{});return b.type!==t.Fragment&&(j.ref=o?g:v),t.cloneElement(b,j)});return r.displayName=`${e}.Slot`,r}var o=r("Slot"),i=Symbol.for("radix.slottable"),l=(e,n)=>{if("child"in e.props){let n=e.props.child;return t.isValidElement(n)?t.cloneElement(n,void 0,e.props.children(n.props.children)):null}return t.isValidElement(n)?n:null},s=Symbol.for("react.lazy");function a(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,u=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,d=t[" use ".trim().toString()];e.s(["Slot",0,o,"createSlot",0,r],982538)},606916,e=>{"use strict";var t=e.i(699173),n=e.i(592121);let r=(0,n.createContext)(null);e.s(["AccordionProvider",0,function({children:e}){let[o,i]=(0,n.useState)(void 0),[l,s]=(0,n.useState)(!1),[a,c]=(0,n.useState)(0),[u,d]=(0,n.useState)(0),f=(0,n.useCallback)(()=>c(e=>e+1),[]),p=(0,n.useCallback)(()=>d(e=>e+1),[]);return(0,t.jsx)(r.Provider,{value:{accordionValue:o,setAccordionValue:e=>{i(e)},expandAllSignal:a,collapseAllSignal:u,triggerExpandAll:f,triggerCollapseAll:p,pageHasAccordion:l,setPageHasAccordion:s},children:e})},"useAccordionContext",0,function(){let e=(0,n.useContext)(r);if(!e)throw Error("useAccordionContext must be used within AccordionProvider");return e}])},611413,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,r=[]){let s=[];function a(r,i){let l=n.createContext(i);l.displayName=r+"Context";let a=s.length;s=[...s,i];let c=o(r=>{let{scope:o,children:i,...s}=r,c=o?.[e]?.[a]||l,u=n.useMemo(()=>s,Object.values(s));return(0,t.jsx)(c.Provider,{value:u,children:i})},"Provider");function u(t,o,s={}){let{optional:c=!1}=s,d=o?.[e]?.[a]||l,f=n.useContext(d);if(f)return f;if(void 0!==i)return i;if(!c)throw Error(`\`${t}\` must be used within \`${r}\``)}return c.displayName=r+"Provider",o(u,"useContext"),[c,u]}o(a,"createContext");let c=o(()=>{let t=s.map(e=>n.createContext(e));return o(function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return c.scopeName=e,[a,l(c,...r)]}function l(...e){let t=e[0];if(1===e.length)return t;let r=o(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return o(function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}o(function(e,r){let i=n.createContext(r);i.displayName=e+"Context";let l=o(e=>{let{children:r,...o}=e,l=n.useMemo(()=>o,Object.values(o));return(0,t.jsx)(i.Provider,{value:l,children:r})},"Provider");function s(t,o={}){let{optional:l=!1}=o,a=n.useContext(i);if(a)return a;if(void 0!==r)return r;if(!l)throw Error(`\`${t}\` must be used within \`${e}\``)}return l.displayName=e+"Provider",o(s,"useContext"),[l,s]},"createContext"),o(i,"createContextScope"),o(l,"composeContextScopes");var s=Object.defineProperty,a=(e,t)=>s(e,"name",{value:t,configurable:!0});function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;tp(e,"name",{value:t,configurable:!0});function m(e){let r=e+"CollectionProvider",[o,l]=i(r),[s,a]=o(r,{collectionRef:{current:null},itemMap:new Map}),c=h(e=>{let{scope:r,children:o}=e,i=n.useRef(null),l=n.useRef(new Map).current;return(0,t.jsx)(s,{scope:r,itemMap:l,collectionRef:i,children:o})},"CollectionProvider");c.displayName=r;let u=e+"CollectionSlot",p=(0,f.createSlot)(u),m=n.forwardRef((e,n)=>{let{scope:r,children:o}=e,i=d(n,a(u,r).collectionRef);return(0,t.jsx)(p,{ref:i,children:o})});m.displayName=u;let b=e+"CollectionItemSlot",y="data-radix-collection-item",x=(0,f.createSlot)(b),v=n.forwardRef((e,r)=>{let{scope:o,children:i,...l}=e,s=n.useRef(null),c=d(r,s),u=a(b,o);return n.useEffect(()=>(u.itemMap.set(s,{ref:s,...l}),()=>void u.itemMap.delete(s))),(0,t.jsx)(x,{...{[y]:""},ref:c,children:i})});function g(t){let r=a(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])}return v.displayName=b,h(g,"useCollection"),[{Provider:c,Slot:m,ItemSlot:v},g,l]}h(m,"createCollection");var b=new WeakMap,y=class e extends Map{static{h(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],b.set(this,!0)}set(e,t){return b.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,l=g(e),s=l>=0?l:i+l,a=s=i?-1:s;if(a===this.size||o&&a===this.size-1||-1===a)return this.set(t,n),this;let c=this.size+ +!o;l=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t0&&(o=n-1);for(let e=t;e=0?r:n+r;return o=n?-1:o}function g(e){return e!=e||0===e?0:Math.trunc(e)}function j(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function w(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function k(e,t){return e[1].element&&t[1].element?w(e[1].element,t[1].element)?-1:1:0}function C(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}h(x,"at"),h(v,"toSafeIndex"),h(g,"toSafeInteger"),h(function(e){let r=e+"CollectionProvider",[o,l]=i(r),[s,a]=o(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new y,setItemMap:h(()=>void 0,"setItemMap")}),c=h(({state:e,...n})=>e?(0,t.jsx)(p,{...n,state:e}):(0,t.jsx)(u,{...n}),"CollectionProvider");c.displayName=r;let u=h(e=>{let n=S();return(0,t.jsx)(p,{...e,state:n})},"CollectionInit");u.displayName=r+"Init";let p=h(e=>{let{scope:r,children:o,state:i}=e,l=n.useRef(null),[a,c]=n.useState(null),u=d(l,c),[f,p]=i;return n.useEffect(()=>{if(!a)return;let e=C(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,t.jsx)(s,{scope:r,itemMap:f,setItemMap:p,collectionRef:u,collectionRefObject:l,collectionElement:a,children:o})},"CollectionProviderImpl");p.displayName=r+"Impl";let m=e+"CollectionSlot",b=(0,f.createSlot)(m),x=n.forwardRef((e,n)=>{let{scope:r,children:o}=e,i=d(n,a(m,r).collectionRef);return(0,t.jsx)(b,{ref:i,children:o})});x.displayName=m;let v=e+"CollectionItemSlot",g=(0,f.createSlot)(v),w=n.forwardRef((e,r)=>{let{scope:o,children:i,...l}=e,s=n.useRef(null),[c,u]=n.useState(null),f=d(r,s,u),{setItemMap:p}=a(v,o),h=n.useRef(l);j(h.current,l)||(h.current=l);let m=h.current;return n.useEffect(()=>(p(e=>c?e.has(c)?e.set(c,{...m,element:c}).toSorted(k):(e.set(c,{...m,element:c}),e.toSorted(k)):e),()=>{p(e=>c&&e.has(c)?(e.delete(c),new y(e)):e)}),[c,m,p]),(0,t.jsx)(g,{"data-radix-collection-item":"",ref:f,children:i})});function S(){return n.useState(new y)}function A(t){let{itemMap:n}=a(e+"CollectionConsumer",t);return n}return w.displayName=v,h(S,"useInitCollection"),h(A,"useCollection"),[{Provider:c,Slot:x,ItemSlot:w},{createCollectionScope:l,useCollection:A,useInitCollection:S}]},"createCollection"),h(j,"shallowEqual"),h(w,"isElementPreceding"),h(k,"sortByDocumentPosition"),h(C,"getChildListObserver");var S=Object.defineProperty,A=(e,t)=>S(e,"name",{value:t,configurable:!0}),R=!!("u">typeof window&&window.document&&window.document.createElement);function N(e,t,{checkForDefaultPrevented:n=!0}={}){return A(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function E(e){if(!R)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function O(e){return"IFRAME"===e.tagName}A(N,"composeEventHandlers"),A(function(e){if(!R)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),A(E,"getOwnerDocument"),A(function e(t,n=!1){let{activeElement:r}=E(t);if(!r?.nodeName)return null;if(O(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=E(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),A(O,"isFrame");var I=globalThis?.document?n.useLayoutEffect:()=>{},T=Object.defineProperty,_=n[" useEffectEvent ".trim().toString()],P=n[" useInsertionEffect ".trim().toString()];function M(e){if("function"==typeof _)return _(e);let t=n.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof P?P(()=>{t.current=e}):I(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}T(M,"name",{value:"useEffectEvent",configurable:!0});var D=Object.defineProperty,$=(e,t)=>D(e,"name",{value:t,configurable:!0}),z=n[" useInsertionEffect ".trim().toString()]||I;function B({prop:e,defaultProp:t,onChange:r=$(()=>{},"onChange"),caller:o}){let[i,l,s]=L({defaultProp:t,onChange:r}),a=void 0!==e,c=a?e:i;return[c,n.useCallback(t=>{if(a){let n=U(t)?t(e):t;n!==e&&s.current?.(n)}else l(t)},[a,e,l,s])]}function L({defaultProp:e,onChange:t}){let[r,o]=n.useState(e),i=n.useRef(r),l=n.useRef(t);return z(()=>{l.current=t},[t]),n.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,o,l]}function U(e){return"function"==typeof e}$(B,"useControllableState"),$(L,"useUncontrolledState"),$(U,"isFunction");var F=Symbol("RADIX:SYNC_STATE");$(function(e,t,r,o){let{prop:i,defaultProp:l,onChange:s,caller:a}=t,c=void 0!==i,u=M(s),d=[{...r,state:l}];o&&d.push(o);let[f,p]=n.useReducer((t,n)=>{if(n.type===F)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&u(r.state),r},...d),h=f.state,m=n.useRef(h);n.useEffect(()=>{m.current!==h&&(m.current=h,c||u(h))},[h,m,c]);let b=n.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return n.useEffect(()=>{c&&!Object.is(i,f.state)&&p({type:F,state:i})},[i,f.state,c]),[b,p]},"useControllableStateReducer");var V=e.i(798973),X=Object.defineProperty,J=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=(0,f.createSlot)(`Primitive.${r}`),i=n.forwardRef((e,n)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(i?o:r,{...l,ref:n})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});X(function(e,t){e&&V.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var W=Object.defineProperty,q=(e,t)=>W(e,"name",{value:t,configurable:!0});function H(e,t){return n.useReducer((e,n)=>t[e][n]??e,e)}q(H,"useStateMachine");var K=q(e=>{let{present:t,children:r}=e,o=Z(t),i="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),l=Y(o.ref,ee(i));return"function"==typeof r||o.isPresent?n.cloneElement(i,{ref:l}):null},"Presence");function Z(e){let[t,r]=n.useState(),o=n.useRef(null),i=n.useRef(e),l=n.useRef("none"),s=n.useRef(void 0),[a,c]=H(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect(()=>{"mounted"===a?(l.current=s.current??Q(o.current),s.current=void 0):l.current="none"},[a]),I(()=>{let t=o.current,n=i.current;if(n!==e){let r=l.current,o=Q(t);e?(s.current=o,c("MOUNT")):"none"===o||t?.display==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),i.current=e}},[e,c]),I(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=q(r=>{let l=Q(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&l&&(c("ANIMATION_END"),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),s=q(e=>{e.target===t&&(l.current=Q(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,s.current=Q(t)}else o.current=null;r(e)},[])}}function G(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Y(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=G(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;evoid 0),er=0;function eo(e){let[t,r]=n.useState(en());return I(()=>{e||r(e=>e??String(er++))},[e]),e||(t?`radix-${t}`:"")}et(eo,"name",{value:"useId",configurable:!0});var ei=Object.defineProperty,el=(e,t)=>ei(e,"name",{value:t,configurable:!0}),es="Collapsible",[ea,ec]=i(es),[eu,ed]=ea(es),ef=n.forwardRef(el(function(e,r){let{__scopeCollapsible:o,open:i,defaultOpen:l,disabled:s,onOpenChange:a,...c}=e,[u,d]=B({prop:i,defaultProp:l??!1,onChange:a,caller:es});return(0,t.jsx)(eu,{scope:o,disabled:s,contentId:eo(),open:u,onOpenToggle:n.useCallback(()=>d(e=>!e),[d]),children:(0,t.jsx)(J.div,{"data-state":ey(u),"data-disabled":s?"":void 0,...c,ref:r})})},"Collapsible")),ep=n.forwardRef(el(function(e,n){let{__scopeCollapsible:r,...o}=e,i=ed("CollapsibleTrigger",r);return(0,t.jsx)(J.button,{type:"button","aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":ey(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:N(e.onClick,i.onOpenToggle)})},"CollapsibleTrigger")),eh="CollapsibleContent",em=n.forwardRef(el(function(e,n){let{forceMount:r,...o}=e,i=ed(eh,e.__scopeCollapsible);return(0,t.jsx)(K,{present:r||i.open,children:({present:e})=>(0,t.jsx)(eb,{...o,ref:n,present:e})})},"CollapsibleContent")),eb=n.forwardRef(el(function(e,r){let{__scopeCollapsible:o,present:i,children:l,...s}=e,a=ed(eh,o),[c,u]=n.useState(i),f=n.useRef(null),p=d(r,f),h=n.useRef(0),m=h.current,b=n.useRef(0),y=b.current,x=a.open||c,v=n.useRef(x),g=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),I(()=>{let e=f.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,b.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationName=g.current.animationName),u(i)}},[a.open,i]),(0,t.jsx)(J.div,{"data-state":ey(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!x,...s,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:x&&l})},"CollapsibleContentImpl"));function ey(e){return e?"open":"closed"}el(ey,"getState");var ex=Object.defineProperty,ev=n.createContext(void 0);function eg(e){let t=n.useContext(ev);return e||t||"ltr"}ex(eg,"name",{value:"useDirection",configurable:!0});var ej=Object.defineProperty,ew=(e,t)=>ej(e,"name",{value:t,configurable:!0}),ek="Accordion",eC=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[eS,eA,eR]=m(ek),[eN,eE]=i(ek,[eR,ec]),eO=ec(),eI=n.forwardRef(ew(function(e,n){let{type:r,...o}=e;return(0,t.jsx)(eS.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,t.jsx)(e$,{...o,ref:n}):(0,t.jsx)(eD,{...o,ref:n})})},"Accordion")),[eT,e_]=eN(ek),[eP,eM]=eN(ek,{collapsible:!1}),eD=n.forwardRef(ew(function(e,r){let{value:o,defaultValue:i,onValueChange:l=ew(()=>{},"onValueChange"),collapsible:s=!1,...a}=e,[c,u]=B({prop:o,defaultProp:i??"",onChange:l,caller:ek});return(0,t.jsx)(eT,{scope:e.__scopeAccordion,value:n.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:n.useCallback(()=>s&&u(""),[s,u]),children:(0,t.jsx)(eP,{scope:e.__scopeAccordion,collapsible:s,children:(0,t.jsx)(eL,{...a,ref:r})})})},"AccordionImplSingle")),e$=n.forwardRef(ew(function(e,r){let{value:o,defaultValue:i,onValueChange:l=ew(()=>{},"onValueChange"),...s}=e,[a,c]=B({prop:o,defaultProp:i??[],onChange:l,caller:ek}),u=n.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=n.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(eT,{scope:e.__scopeAccordion,value:a,onItemOpen:u,onItemClose:d,children:(0,t.jsx)(eP,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(eL,{...s,ref:r})})})},"AccordionImplMultiple")),[ez,eB]=eN(ek),eL=n.forwardRef(ew(function(e,r){let{__scopeAccordion:o,disabled:i,dir:l,orientation:s="vertical",...a}=e,c=d(n.useRef(null),r),u=eA(o),f="ltr"===eg(l),p=N(e.onKeyDown,e=>{if(!eC.includes(e.key))return;let t=e.target,n=u().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===r)return;e.preventDefault();let i=r,l=o-1,a=ew(()=>{(i=r+1)>l&&(i=0)},"moveNext"),c=ew(()=>{(i=r-1){e?s.onItemOpen(o):s.onItemClose(o)}})})},"AccordionItem")),eJ=n.forwardRef(ew(function(e,n){let{__scopeAccordion:r,...o}=e,i=eB(ek,r),l=eV("AccordionHeader",r);return(0,t.jsx)(J.h3,{"data-orientation":i.orientation,"data-state":eK(l.open),"data-disabled":l.disabled?"":void 0,...o,ref:n})},"AccordionHeader")),eW="AccordionTrigger",eq=n.forwardRef(ew(function(e,n){let{__scopeAccordion:r,...o}=e,i=eB(ek,r),l=eV(eW,r),s=eM(eW,r),a=eO(r);return(0,t.jsx)(eS.ItemSlot,{scope:r,children:(0,t.jsx)(ep,{"aria-disabled":l.open&&!s.collapsible||void 0,"data-orientation":i.orientation,id:l.triggerId,...a,...o,ref:n})})},"AccordionTrigger")),eH=n.forwardRef(ew(function(e,n){let{__scopeAccordion:r,...o}=e,i=eB(ek,r),l=eV("AccordionContent",r),s=eO(r);return(0,t.jsx)(em,{role:"region","aria-labelledby":l.triggerId,"data-orientation":i.orientation,...s,...o,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})},"AccordionContent"));function eK(e){return e?"open":"closed"}ew(eK,"getState");var eZ=e.i(514514);let eG=(0,eZ.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),eY=(0,eZ.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var eQ=e.i(447839);function e0({...e}){return(0,t.jsx)(eI,{"data-slot":"accordion",...e})}function e1({className:e,...n}){return(0,t.jsx)(eX,{"data-slot":"accordion-item",className:(0,eQ.cn)("border-b last:border-b-0",e),...n})}function e3({className:e,children:n,...r}){return(0,t.jsx)(eJ,{id:r.id,className:"not-prose flex",children:(0,t.jsxs)(eq,{"data-slot":"accordion-trigger",className:"group/atrg focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-xl font-bold transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",...r,children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[n,(0,t.jsx)("a",{href:`#${r.id}`,className:"text-gray-400 group-hover/atrg:inline md:hidden",onClick:e=>{e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(e.currentTarget.href)},children:(0,t.jsx)(eY,{size:16})})]}),(0,t.jsx)(eG,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function e4({className:e,children:n,...r}){return(0,t.jsx)(eH,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:(0,t.jsx)("div",{className:(0,eQ.cn)("pt-0 pb-4",e),children:n})})}let e5=({internalDocToHref:e})=>({autolink:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),o=e.fields.newTab?"noopener noreferrer":void 0,i=e.fields.newTab?"_blank":void 0;return(0,t.jsx)("a",{href:e.fields.url,rel:o,target:i,children:r})},link:({node:n,nodesToJSX:r})=>{let o=r({nodes:n.children}),i=n.fields.newTab?"noopener noreferrer":void 0,l=n.fields.newTab?"_blank":void 0,s=n.fields.url??"";return"internal"===n.fields.linkType&&(e?s=e({linkNode:n}):(console.error("Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided"),s="#")),(0,t.jsx)("a",{href:s,rel:i,target:l,children:o})}}),e9={horizontalrule:(0,t.jsx)("hr",{})},e6={linebreak:(0,t.jsx)("br",{})};var e7=e.i(990033);let e2="֑-߿יִ-﷽ﹰ-ﻼ",e8="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-";RegExp("^[^"+e8+"]*["+e2+"]"),RegExp("^[^"+e2+"]*["+e8+"]");let te={paragraph:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children});return r?.length?(0,t.jsx)("p",{children:r}):(0,t.jsx)("p",{children:(0,t.jsx)("br",{})})},text:({node:e})=>{let n=e.text;return 1&e.format&&(n=(0,t.jsx)("strong",{children:n})),2&e.format&&(n=(0,t.jsx)("em",{children:n})),4&e.format&&(n=(0,t.jsx)("span",{style:{textDecoration:"line-through"},children:n})),8&e.format&&(n=(0,t.jsx)("span",{style:{textDecoration:"underline"},children:n})),16&e.format&&(n=(0,t.jsx)("code",{children:n})),32&e.format&&(n=(0,t.jsx)("sub",{children:n})),64&e.format&&(n=(0,t.jsx)("sup",{children:n})),n},...e6,quote:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children});return(0,t.jsx)("blockquote",{children:r})},table:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children});return(0,t.jsx)("div",{className:"lexical-table-container",children:(0,t.jsx)("table",{className:"lexical-table",style:{borderCollapse:"collapse"},children:(0,t.jsx)("tbody",{children:r})})})},tablecell:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),o=e.headerState>0?"th":"td",i=`lexical-table-cell-header-${e.headerState}`,l={backgroundColor:e.backgroundColor||void 0,border:"1px solid #ccc",padding:"8px"},s=e.colSpan&&e.colSpan>1?e.colSpan:void 0,a=e.rowSpan&&e.rowSpan>1?e.rowSpan:void 0;return(0,t.jsx)(o,{className:`lexical-table-cell ${i}`,colSpan:s,rowSpan:a,style:l,children:r})},tablerow:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children});return(0,t.jsx)("tr",{className:"lexical-table-row",children:r})},heading:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),o=e.tag;return(0,t.jsx)(o,{children:r})},...e9,list:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),o=e.tag;return(0,t.jsx)(o,{className:`list-${e?.listType}`,children:r})},listitem:({node:e,nodesToJSX:n,parent:r})=>{let o=e.children.some(e=>"list"===e.type),i=n({nodes:e.children});if(!("listType"in r)||r?.listType!=="check")return(0,t.jsx)("li",{className:`${o?"nestedListItem":""}`,style:o?{listStyleType:"none"}:void 0,value:e?.value,children:i});{let n=(0,e7.v4)();return(0,t.jsx)("li",{"aria-checked":e.checked?"true":"false",className:`list-item-checkbox${e.checked?" list-item-checkbox-checked":" list-item-checkbox-unchecked"}${o?" nestedListItem":""}`,role:"checkbox",style:{listStyleType:"none"},tabIndex:-1,value:e?.value,children:o?i:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{checked:e.checked,id:n,readOnly:!0,type:"checkbox"}),(0,t.jsx)("label",{htmlFor:n,children:i}),(0,t.jsx)("br",{})]})})}},...e5({}),upload:({node:e})=>{if("object"!=typeof e.value)return null;let n=e.value,r=e.fields?.alt||n?.alt||"",o=n.url;if(!n.mimeType.startsWith("image"))return(0,t.jsx)("a",{href:o,rel:"noopener noreferrer",children:n.filename});if(!n.sizes||!Object.keys(n.sizes).length)return(0,t.jsx)("img",{alt:r,height:n.height,src:o,width:n.width});let i=[];for(let e in n.sizes){let r=n.sizes[e];if(!r||!r.width||!r.height||!r.mimeType||!r.filesize||!r.filename||!r.url)continue;let o=r?.url;i.push((0,t.jsx)("source",{media:`(max-width: ${r.width}px)`,srcSet:o,type:r.mimeType},e))}return i.push((0,t.jsx)("img",{alt:r,height:n?.height,src:o,width:n?.width},"image")),(0,t.jsx)("picture",{children:i})},tab:" "};function tt(e){return r=>{if(e.Component){let t={...r,isEditor:!1,isJSXConverter:!0};return e.Component(t)}if(e.Block){let t=r.node,o={childIndex:r.childIndex,converters:r.converters,formData:t.fields??{},isEditor:!1,isJSXConverter:!0,node:t,nodesToJSX:r.nodesToJSX,parent:r.parent};return n.default.createElement(e.Block,o)}if(e.html){let n={...r,isEditor:!1,isJSXConverter:!0},o="function"==typeof e.html?e.html(n):e.html;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:o}})}return null}}function tn({className:e,converters:r,data:o,disableContainer:i,disableIndent:l,disableTextAlign:s,nodeMap:a}){if(!o)return null;let c={};c=r?"function"==typeof r?r({defaultConverters:te}):r:te;let u=o&&!Array.isArray(o)&&"object"==typeof o&&"root"in o&&function({converters:e,data:r,disableIndent:o,disableTextAlign:i,nodeMap:l}){if(function(e){if(!e?.root?.children?.length)return!1;let t=!1;if(e?.root?.children?.length===1&&e?.root?.children[0]?.type==="paragraph"){let n=e?.root?.children[0];if(n?.children&&n?.children?.length!==0){if(n?.children?.length===1){let e=n?.children[0];e?.type!=="text"||e?.text?.length||(t=!0)}}else t=!0}return!t}(r)){let s=l?function(e){let n={};for(let[r,o]of Object.entries(e))if(o&&"object"==typeof o){if("blocks"===r){for(let[e,t]of(n.blocks={},Object.entries(o)))(t.Component||t.Block||t.html)&&(n.blocks[e]=tt(t));continue}if("inlineBlocks"===r){for(let[e,t]of(n.inlineBlocks={},Object.entries(o)))(t.Component||t.Block||t.html)&&(n.inlineBlocks[e]=tt(t));continue}(o.Component||o.html)&&(n[r]=function(e){return n=>{let r={...n,isEditor:!1,isJSXConverter:!0};if(e.Component)return e.Component(r);if(e.html){let n="function"==typeof e.html?e.html(r):e.html;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})}return null}}(o))}return n}(l):void 0;return function e({converters:r,disableIndent:o,disableTextAlign:i,nodes:l,parent:s}){let a=r.unknown;return l.map((l,c)=>{let u;"block"===l.type?(u=r?.blocks?.[l?.fields?.blockType])||a||console.error(`Lexical => JSX converter: Blocks converter: found ${l?.fields?.blockType} block, but no converter is provided`):"inlineBlock"===l.type?(u=r?.inlineBlocks?.[l?.fields?.blockType])||a||console.error(`Lexical => JSX converter: Inline Blocks converter: found ${l?.fields?.blockType} inline block, but no converter is provided`):u=r[l.type];try{let d;!u&&a&&(u=a),d=u?"function"==typeof u?u({childIndex:c,converters:r,node:l,nodesToJSX:t=>e({converters:t.converters??r,disableIndent:t.disableIndent??o,disableTextAlign:t.disableTextAlign??i,nodes:t.nodes,parent:t.parent??{...l,parent:s}}),parent:s}):u:(0,t.jsx)("span",{children:"unknown node"},c);let f={};if(!i&&(!Array.isArray(i)||!i?.includes(l.type))&&"format"in l&&l.format)switch(l.format){case"center":f.textAlign="center";break;case"end":case"right":f.textAlign="right";break;case"justify":f.textAlign="justify";break;case"left":break;case"start":f.textAlign="left"}if(!o&&(!Array.isArray(o)||!o?.includes(l.type))&&"indent"in l&&l.indent&&"listitem"!==l.type&&(f.paddingInlineStart=`${40*Number(l.indent)}px`),n.default.isValidElement(d)){if(f.textAlign||f.paddingInlineStart){let e={...f,...d?.props?.style??{}};return n.default.cloneElement(d,{key:c,style:e})}return n.default.cloneElement(d,{key:c})}return d}catch(e){return console.error("Error converting lexical node to JSX:",e,"node:",l),null}}).filter(Boolean)}({converters:s?{...e,...s,blocks:{...e.blocks,...s.blocks},inlineBlocks:{...e.inlineBlocks,...s.inlineBlocks}}:e,disableIndent:o,disableTextAlign:i,nodes:r.root.children,parent:r.root})}return(0,t.jsx)(t.Fragment,{})}({converters:c,data:o,disableIndent:l,disableTextAlign:s,nodeMap:a});return i?(0,t.jsx)(t.Fragment,{children:u}):(0,t.jsx)("div",{className:e??"payload-richtext",children:u})}let tr=({linkNode:e})=>{let{value:t,relationTo:n}=e.fields.doc;if("object"!=typeof t)throw Error("Expected value to be an object");let r=t.slug;return"pages"===n?`/privacy/${r}`:`/${r}`},to=({defaultConverters:e})=>({...e,...e5({internalDocToHref:tr}),"heading-with-anchorId":({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),o=e.tag,i=e?.anchorId??void 0;return(0,t.jsx)(o,{id:i,children:r})}});function ti(e){let{data:n,...r}=e;return(0,t.jsx)(tn,{converters:to,data:n||{root:{children:[],direction:"ltr",format:"",indent:0,type:"root",version:1}},...r})}var tl=e.i(333350),ts=e.i(606916),ta=e.i(683903);e.s(["AccordionBlock",0,({sections:e,collapseSingle:r=!1,hideControls:o=!1})=>{let{expandAllSignal:i,collapseAllSignal:l,setPageHasAccordion:s}=(0,ts.useAccordionContext)(),a=(0,ta.useTranslations)("Nav"),c=(0,n.useMemo)(()=>e&&e.length>0?e[0].sectionAnchorId??"":void 0,[e]),u=(0,n.useMemo)(()=>e&&e.length>0?e.filter(e=>e.expand).map(e=>e?.sectionAnchorId??""):[],[e]);(0,n.useEffect)(()=>s(!0),[]);let d=u.length>0||!r,[f,p]=(0,n.useState)(d?void 0:c),[h,m]=(0,n.useState)(d?u.length>0?u:c?[c]:[]:[]),b=(0,n.useMemo)(()=>e?.map(e=>e?.sectionAnchorId??"")||[],[e]),y=(0,n.useMemo)(()=>h.length===b.length&&b.length>0?b.map(e=>{try{return document.querySelector?.(`[data-accordion-value="${e}"]`)}catch(e){return null}}):[],[b,h]),x=(0,n.useCallback)(()=>{d?m(b):p(b[0])},[b,d]),v=(0,n.useCallback)(()=>{d?m([]):p(void 0)},[d]),[g,j]=(0,n.useState)(tl.default&&window?.location?.hash?.substring(1)||""),w=(0,n.useRef)(!1),k=(0,n.useRef)(!1),C=(0,n.useRef)(""),S=(0,n.useRef)(!1);return((0,n.useEffect)(()=>{let e=()=>{j(tl.default&&window?.location?.hash?.substring(1)||""),w.current=!1,k.current=!1,C.current="",S.current=!1};return window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),(0,n.useEffect)(()=>{if(S.current)return;g&&!w.current&&(w.current=!0,x());let e=h.length===y.length&&y.length>0,t=document.getElementById?.(g);if(g&&e&&!k.current){k.current=!0;let e=y.find(e=>e?.contains?.(t));if(!e)return void(d?m(c?[c]:[]):p(c));let n=e?.getAttribute("data-accordion-value");n&&(C.current=n,d?m(["welcome",n]):p(n))}let n=C.current&&(d?h.includes(C.current)&&2===h.length:f===C.current);t&&C.current&&n&&!S.current&&(S.current=!0,setTimeout(()=>{t.scrollIntoView({behavior:"instant"})},250))},[d,g,x,y,c,f,h,b.length,w,b]),(0,n.useEffect)(()=>{i>0&&x()},[i]),(0,n.useEffect)(()=>{l>0&&v()},[l]),e&&0!==e.length)?(0,t.jsxs)("div",{className:"w-full",children:[!o&&(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-2 text-sm",children:[(0,t.jsx)("button",{onClick:x,className:"cursor-pointer font-semibold text-[#039] hover:underline",type:"button",children:a("expandAll")}),(0,t.jsx)("span",{className:"text-gray-400",children:"|"}),(0,t.jsx)("button",{onClick:v,className:"cursor-pointer font-semibold text-[#039] hover:underline",type:"button",children:a("collapseAll")})]})}),d?(0,t.jsx)(e0,{type:"multiple",className:"w-full",value:h,onValueChange:m,children:e.map((e,n)=>{let r=e?.sectionAnchorId??"";return(0,t.jsxs)(e1,{value:r,"data-accordion-section":!0,"data-accordion-value":r,children:[(0,t.jsx)(e3,{id:r,children:e.title}),(0,t.jsx)(e4,{className:"text-muted-foreground leading-relaxed",children:(0,t.jsx)(ti,{className:"prose prose-lg max-w-none [&_table]:mb-4 [&_table]:block [&_table]:w-full [&_table]:border-collapse [&_table]:overflow-x-auto [&_td]:min-w-40 [&_th]:whitespace-nowrap",data:e.body??null})})]},n)})}):(0,t.jsx)(e0,{type:"single",collapsible:!0,className:"w-full",value:f,onValueChange:p,children:e.map((e,n)=>{let r=e?.sectionAnchorId??"";return(0,t.jsxs)(e1,{value:r,"data-accordion-section":!0,"data-accordion-value":r,children:[(0,t.jsx)(e3,{id:r,className:"hover:no-underline",children:e.title}),(0,t.jsx)(e4,{className:"text-muted-foreground leading-relaxed",children:(0,t.jsx)(ti,{className:"prose prose-lg max-w-none [&_table]:mb-4 [&_table]:block [&_table]:w-full [&_table]:border-collapse [&_table]:overflow-x-auto [&_td]:min-w-40 [&_th]:whitespace-nowrap",data:e.body??null})})]},n)})})]}):null}],611413)}]);