(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,i)=>{var s;let f,p,{children:h,...m}=r,g=null,b=!1,v=[];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===o){b=!0;let t="child"in e.props?e.props.child:e.props.children;a(t)&&"function"==typeof d&&(t=d(t._payload)),g=l(e,t),v.push(g?.props?.children)}else v.push(e)}),g?g=t.cloneElement(g,void 0,v):!b&&1===t.Children.count(h)&&t.isValidElement(h)&&(g=h);let x=g?(s=g,(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,y=function(...e){return t.useCallback(function(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(m,g.props??{});return g.type!==t.Fragment&&(w.ref=i?y:x),t.cloneElement(g,w)});return r.displayName=`${e}.Slot`,r}var i=r("Slot"),o=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,i,"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[i,o]=(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:i,setAccordionValue:e=>{o(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,i=(e,t)=>r(e,"name",{value:t,configurable:!0});function o(e,r=[]){let s=[];function a(r,o){let l=n.createContext(o);l.displayName=r+"Context";let a=s.length;s=[...s,o];let c=i(r=>{let{scope:i,children:o,...s}=r,c=i?.[e]?.[a]||l,u=n.useMemo(()=>s,Object.values(s));return(0,t.jsx)(c.Provider,{value:u,children:o})},"Provider");function u(t,i,s={}){let{optional:c=!1}=s,d=i?.[e]?.[a]||l,f=n.useContext(d);if(f)return f;if(void 0!==o)return o;if(!c)throw Error(`\`${t}\` must be used within \`${r}\``)}return c.displayName=r+"Provider",i(u,"useContext"),[c,u]}i(a,"createContext");let c=i(()=>{let t=s.map(e=>n.createContext(e));return i(function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])},"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=i(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return i(function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}i(function(e,r){let o=n.createContext(r);o.displayName=e+"Context";let l=i(e=>{let{children:r,...i}=e,l=n.useMemo(()=>i,Object.values(i));return(0,t.jsx)(o.Provider,{value:l,children:r})},"Provider");function s(t,i={}){let{optional:l=!1}=i,a=n.useContext(o);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",i(s,"useContext"),[l,s]},"createContext"),i(o,"createContextScope"),i(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",[i,l]=o(r),[s,a]=i(r,{collectionRef:{current:null},itemMap:new Map}),c=h(e=>{let{scope:r,children:i}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,t.jsx)(s,{scope:r,itemMap:l,collectionRef:o,children:i})},"CollectionProvider");c.displayName=r;let u=e+"CollectionSlot",p=(0,f.createSlot)(u),m=n.forwardRef((e,n)=>{let{scope:r,children:i}=e,o=d(n,a(u,r).collectionRef);return(0,t.jsx)(p,{ref:o,children:i})});m.displayName=u;let g=e+"CollectionItemSlot",b="data-radix-collection-item",v=(0,f.createSlot)(g),x=n.forwardRef((e,r)=>{let{scope:i,children:o,...l}=e,s=n.useRef(null),c=d(r,s),u=a(g,i);return n.useEffect(()=>(u.itemMap.set(s,{ref:s,...l}),()=>void u.itemMap.delete(s))),(0,t.jsx)(v,{...{[b]:""},ref:c,children:o})});function y(t){let r=a(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${b}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])}return x.displayName=g,h(y,"useCollection"),[{Provider:c,Slot:m,ItemSlot:x},y,l]}h(m,"createCollection");var g=new WeakMap,b=class e extends Map{static{h(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],g.set(this,!0)}set(e,t){return g.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,i=this.has(t),o=this.#e.length,l=y(e),s=l>=0?l:o+l,a=s=o?-1:s;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,n),this;let c=this.size+ +!i;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=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,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,i=this.size-1;if(void 0===t)return r;t0&&(i=n-1);for(let e=t;e=0?r:n+r;return i=n?-1:i}function y(e){return e!=e||0===e?0:Math.trunc(e)}function w(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 j(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function k(e,t){return e[1].element&&t[1].element?j(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(v,"at"),h(x,"toSafeIndex"),h(y,"toSafeInteger"),h(function(e){let r=e+"CollectionProvider",[i,l]=o(r),[s,a]=i(r,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new b,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:i,state:o}=e,l=n.useRef(null),[a,c]=n.useState(null),u=d(l,c),[f,p]=o;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:i})},"CollectionProviderImpl");p.displayName=r+"Impl";let m=e+"CollectionSlot",g=(0,f.createSlot)(m),v=n.forwardRef((e,n)=>{let{scope:r,children:i}=e,o=d(n,a(m,r).collectionRef);return(0,t.jsx)(g,{ref:o,children:i})});v.displayName=m;let x=e+"CollectionItemSlot",y=(0,f.createSlot)(x),j=n.forwardRef((e,r)=>{let{scope:i,children:o,...l}=e,s=n.useRef(null),[c,u]=n.useState(null),f=d(r,s,u),{setItemMap:p}=a(x,i),h=n.useRef(l);w(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 b(e)):e)}),[c,m,p]),(0,t.jsx)(y,{"data-radix-collection-item":"",ref:f,children:o})});function S(){return n.useState(new b)}function A(t){let{itemMap:n}=a(e+"CollectionConsumer",t);return n}return j.displayName=x,h(S,"useInitCollection"),h(A,"useCollection"),[{Provider:c,Slot:v,ItemSlot:j},{createCollectionScope:l,useCollection:A,useInitCollection:S}]},"createCollection"),h(w,"shallowEqual"),h(j,"isElementPreceding"),h(k,"sortByDocumentPosition"),h(C,"getChildListObserver");var S=Object.defineProperty,A=(e,t)=>S(e,"name",{value:t,configurable:!0}),N=!!("u">typeof window&&window.document&&window.document.createElement);function R(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(!N)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function I(e){return"IFRAME"===e.tagName}A(R,"composeEventHandlers"),A(function(e){if(!N)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(I(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(I,"isFrame");var O=globalThis?.document?n.useLayoutEffect:()=>{},T=Object.defineProperty,_=n[" useEffectEvent ".trim().toString()],M=n[" useInsertionEffect ".trim().toString()];function P(e){if("function"==typeof _)return _(e);let t=n.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof M?M(()=>{t.current=e}):O(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}T(P,"name",{value:"useEffectEvent",configurable:!0});var $=Object.defineProperty,D=(e,t)=>$(e,"name",{value:t,configurable:!0}),z=n[" useInsertionEffect ".trim().toString()]||O;function L({prop:e,defaultProp:t,onChange:r=D(()=>{},"onChange"),caller:i}){let[o,l,s]=B({defaultProp:t,onChange:r}),a=void 0!==e,c=a?e:o;return[c,n.useCallback(t=>{if(a){let n=F(t)?t(e):t;n!==e&&s.current?.(n)}else l(t)},[a,e,l,s])]}function B({defaultProp:e,onChange:t}){let[r,i]=n.useState(e),o=n.useRef(r),l=n.useRef(t);return z(()=>{l.current=t},[t]),n.useEffect(()=>{o.current!==r&&(l.current?.(r),o.current=r)},[r,o]),[r,i,l]}function F(e){return"function"==typeof e}D(L,"useControllableState"),D(B,"useUncontrolledState"),D(F,"isFunction");var U=Symbol("RADIX:SYNC_STATE");D(function(e,t,r,i){let{prop:o,defaultProp:l,onChange:s,caller:a}=t,c=void 0!==o,u=P(s),d=[{...r,state:l}];i&&d.push(i);let[f,p]=n.useReducer((t,n)=>{if(n.type===U)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 g=n.useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return n.useEffect(()=>{c&&!Object.is(o,f.state)&&p({type:U,state:o})},[o,f.state,c]),[g,p]},"useControllableStateReducer");var V=e.i(798973),X=Object.defineProperty,q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let i=(0,f.createSlot)(`Primitive.${r}`),o=n.forwardRef((e,n)=>{let{asChild:o,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?i:r,{...l,ref:n})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{});X(function(e,t){e&&V.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var J=Object.defineProperty,W=(e,t)=>J(e,"name",{value:t,configurable:!0});function H(e,t){return n.useReducer((e,n)=>t[e][n]??e,e)}W(H,"useStateMachine");var K=W(e=>{let{present:t,children:r}=e,i=Y(t),o="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),l=G(i.ref,ee(o));return"function"==typeof r||i.isPresent?n.cloneElement(o,{ref:l}):null},"Presence");function Y(e){let[t,r]=n.useState(),i=n.useRef(null),o=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(i.current),s.current=void 0):l.current="none"},[a]),O(()=>{let t=i.current,n=o.current;if(n!==e){let r=l.current,i=Q(t);e?(s.current=i,c("MOUNT")):"none"===i||t?.display==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),o.current=e}},[e,c]),O(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=W(r=>{let l=Q(i.current).includes(CSS.escape(r.animationName));if(r.target===t&&l&&(c("ANIMATION_END"),!o.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),s=W(e=>{e.target===t&&(l.current=Q(i.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);i.current=t,s.current=Q(t)}else i.current=null;r(e)},[])}}function Z(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function G(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Z(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;evoid 0),er=0;function ei(e){let[t,r]=n.useState(en());return O(()=>{e||r(e=>e??String(er++))},[e]),e||(t?`radix-${t}`:"")}et(ei,"name",{value:"useId",configurable:!0});var eo=Object.defineProperty,el=(e,t)=>eo(e,"name",{value:t,configurable:!0}),es="Collapsible",[ea,ec]=o(es),[eu,ed]=ea(es),ef=n.forwardRef(el(function(e,r){let{__scopeCollapsible:i,open:o,defaultOpen:l,disabled:s,onOpenChange:a,...c}=e,[u,d]=L({prop:o,defaultProp:l??!1,onChange:a,caller:es});return(0,t.jsx)(eu,{scope:i,disabled:s,contentId:ei(),open:u,onOpenToggle:n.useCallback(()=>d(e=>!e),[d]),children:(0,t.jsx)(q.div,{"data-state":eb(u),"data-disabled":s?"":void 0,...c,ref:r})})},"Collapsible")),ep=n.forwardRef(el(function(e,n){let{__scopeCollapsible:r,...i}=e,o=ed("CollapsibleTrigger",r);return(0,t.jsx)(q.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":eb(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:n,onClick:R(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),eh="CollapsibleContent",em=n.forwardRef(el(function(e,n){let{forceMount:r,...i}=e,o=ed(eh,e.__scopeCollapsible);return(0,t.jsx)(K,{present:r||o.open,children:({present:e})=>(0,t.jsx)(eg,{...i,ref:n,present:e})})},"CollapsibleContent")),eg=n.forwardRef(el(function(e,r){let{__scopeCollapsible:i,present:o,children:l,...s}=e,a=ed(eh,i),[c,u]=n.useState(o),f=n.useRef(null),p=d(r,f),h=n.useRef(0),m=h.current,g=n.useRef(0),b=g.current,v=a.open||c,x=n.useRef(v),y=n.useRef(void 0);return n.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),O(()=>{let e=f.current;if(e){y.current=y.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,g.current=t.width,x.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),u(o)}},[a.open,o]),(0,t.jsx)(q.div,{"data-state":eb(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!v,...s,ref:p,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&l})},"CollapsibleContentImpl"));function eb(e){return e?"open":"closed"}el(eb,"getState");var ev=Object.defineProperty,ex=n.createContext(void 0);function ey(e){let t=n.useContext(ex);return e||t||"ltr"}ev(ey,"name",{value:"useDirection",configurable:!0});var ew=Object.defineProperty,ej=(e,t)=>ew(e,"name",{value:t,configurable:!0}),ek="Accordion",eC=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[eS,eA,eN]=m(ek),[eR,eE]=o(ek,[eN,ec]),eI=ec(),eO=n.forwardRef(ej(function(e,n){let{type:r,...i}=e;return(0,t.jsx)(eS.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,t.jsx)(eD,{...i,ref:n}):(0,t.jsx)(e$,{...i,ref:n})})},"Accordion")),[eT,e_]=eR(ek),[eM,eP]=eR(ek,{collapsible:!1}),e$=n.forwardRef(ej(function(e,r){let{value:i,defaultValue:o,onValueChange:l=ej(()=>{},"onValueChange"),collapsible:s=!1,...a}=e,[c,u]=L({prop:i,defaultProp:o??"",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)(eM,{scope:e.__scopeAccordion,collapsible:s,children:(0,t.jsx)(eB,{...a,ref:r})})})},"AccordionImplSingle")),eD=n.forwardRef(ej(function(e,r){let{value:i,defaultValue:o,onValueChange:l=ej(()=>{},"onValueChange"),...s}=e,[a,c]=L({prop:i,defaultProp:o??[],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)(eM,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(eB,{...s,ref:r})})})},"AccordionImplMultiple")),[ez,eL]=eR(ek),eB=n.forwardRef(ej(function(e,r){let{__scopeAccordion:i,disabled:o,dir:l,orientation:s="vertical",...a}=e,c=d(n.useRef(null),r),u=eA(i),f="ltr"===ey(l),p=R(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),i=n.length;if(-1===r)return;e.preventDefault();let o=r,l=i-1,a=ej(()=>{(o=r+1)>l&&(o=0)},"moveNext"),c=ej(()=>{(o=r-1){e?s.onItemOpen(i):s.onItemClose(i)}})})},"AccordionItem")),eq=n.forwardRef(ej(function(e,n){let{__scopeAccordion:r,...i}=e,o=eL(ek,r),l=eV("AccordionHeader",r);return(0,t.jsx)(q.h3,{"data-orientation":o.orientation,"data-state":eK(l.open),"data-disabled":l.disabled?"":void 0,...i,ref:n})},"AccordionHeader")),eJ="AccordionTrigger",eW=n.forwardRef(ej(function(e,n){let{__scopeAccordion:r,...i}=e,o=eL(ek,r),l=eV(eJ,r),s=eP(eJ,r),a=eI(r);return(0,t.jsx)(eS.ItemSlot,{scope:r,children:(0,t.jsx)(ep,{"aria-disabled":l.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:l.triggerId,...a,...i,ref:n})})},"AccordionTrigger")),eH=n.forwardRef(ej(function(e,n){let{__scopeAccordion:r,...i}=e,o=eL(ek,r),l=eV("AccordionContent",r),s=eI(r);return(0,t.jsx)(em,{role:"region","aria-labelledby":l.triggerId,"data-orientation":o.orientation,...s,...i,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"}ej(eK,"getState");var eY=e.i(514514);let eZ=(0,eY.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),eG=(0,eY.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)(eO,{"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)(eq,{id:r.id,className:"not-prose flex",children:(0,t.jsxs)(eW,{"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)(eG,{size:16})})]}),(0,t.jsx)(eZ,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function e9({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 e4=({internalDocToHref:e})=>({autolink:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),i=e.fields.newTab?"noopener noreferrer":void 0,o=e.fields.newTab?"_blank":void 0;return(0,t.jsx)("a",{href:e.fields.url,rel:i,target:o,children:r})},link:({node:n,nodesToJSX:r})=>{let i=r({nodes:n.children}),o=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:o,target:l,children:i})}}),e5={horizontalrule:(0,t.jsx)("hr",{})},e2={linebreak:(0,t.jsx)("br",{})};var e7=e.i(990033);let e6="֑-߿יִ-﷽ﹰ-ﻼ",e8="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-";RegExp("^[^"+e8+"]*["+e6+"]"),RegExp("^[^"+e6+"]*["+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},...e2,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}),i=e.headerState>0?"th":"td",o=`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)(i,{className:`lexical-table-cell ${o}`,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}),i=e.tag;return(0,t.jsx)(i,{children:r})},...e5,list:({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),i=e.tag;return(0,t.jsx)(i,{className:`list-${e?.listType}`,children:r})},listitem:({node:e,nodesToJSX:n,parent:r})=>{let i=e.children.some(e=>"list"===e.type),o=n({nodes:e.children});if(!("listType"in r)||r?.listType!=="check")return(0,t.jsx)("li",{className:`${i?"nestedListItem":""}`,style:i?{listStyleType:"none"}:void 0,value:e?.value,children:o});{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"}${i?" nestedListItem":""}`,role:"checkbox",style:{listStyleType:"none"},tabIndex:-1,value:e?.value,children:i?o:(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:o}),(0,t.jsx)("br",{})]})})}},...e4({}),upload:({node:e})=>{if("object"!=typeof e.value)return null;let n=e.value,r=e.fields?.alt||n?.alt||"",i=n.url;if(!n.mimeType.startsWith("image"))return(0,t.jsx)("a",{href:i,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:i,width:n.width});let o=[];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 i=r?.url;o.push((0,t.jsx)("source",{media:`(max-width: ${r.width}px)`,srcSet:i,type:r.mimeType},e))}return o.push((0,t.jsx)("img",{alt:r,height:n?.height,src:i,width:n?.width},"image")),(0,t.jsx)("picture",{children:o})},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,i={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,i)}if(e.html){let n={...r,isEditor:!1,isJSXConverter:!0},i="function"==typeof e.html?e.html(n):e.html;return(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:i}})}return null}}function tn({className:e,converters:r,data:i,disableContainer:o,disableIndent:l,disableTextAlign:s,nodeMap:a}){if(!i)return null;let c={};c=r?"function"==typeof r?r({defaultConverters:te}):r:te;let u=i&&!Array.isArray(i)&&"object"==typeof i&&"root"in i&&function({converters:e,data:r,disableIndent:i,disableTextAlign:o,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,i]of Object.entries(e))if(i&&"object"==typeof i){if("blocks"===r){for(let[e,t]of(n.blocks={},Object.entries(i)))(t.Component||t.Block||t.html)&&(n.blocks[e]=tt(t));continue}if("inlineBlocks"===r){for(let[e,t]of(n.inlineBlocks={},Object.entries(i)))(t.Component||t.Block||t.html)&&(n.inlineBlocks[e]=tt(t));continue}(i.Component||i.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}}(i))}return n}(l):void 0;return function e({converters:r,disableIndent:i,disableTextAlign:o,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??i,disableTextAlign:t.disableTextAlign??o,nodes:t.nodes,parent:t.parent??{...l,parent:s}}),parent:s}):u:(0,t.jsx)("span",{children:"unknown node"},c);let f={};if(!o&&(!Array.isArray(o)||!o?.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(!i&&(!Array.isArray(i)||!i?.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:i,disableTextAlign:o,nodes:r.root.children,parent:r.root})}return(0,t.jsx)(t.Fragment,{})}({converters:c,data:i,disableIndent:l,disableTextAlign:s,nodeMap:a});return o?(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}`},ti=({defaultConverters:e})=>({...e,...e4({internalDocToHref:tr}),"heading-with-anchorId":({node:e,nodesToJSX:n})=>{let r=n({nodes:e.children}),i=e.tag,o=e?.anchorId??void 0;return(0,t.jsx)(i,{id:o,children:r})}});function to(e){let{data:n,...r}=e;return(0,t.jsx)(tn,{converters:ti,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:i=!1})=>{let{expandAllSignal:o,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]:[]:[]),g=(0,n.useMemo)(()=>e?.map(e=>e?.sectionAnchorId??"")||[],[e]),b=(0,n.useMemo)(()=>h.length===g.length&&g.length>0?g.map(e=>{try{return document.querySelector?.(`[data-accordion-value="${e}"]`)}catch(e){return null}}):[],[g,h]),v=(0,n.useCallback)(()=>{d?m(g):p(g[0])},[g,d]),x=(0,n.useCallback)(()=>{d?m([]):p(void 0)},[d]),[y,w]=(0,n.useState)(tl.default&&window?.location?.hash?.substring(1)||""),j=(0,n.useRef)(!1),k=(0,n.useRef)(!1),C=(0,n.useRef)(""),S=(0,n.useRef)(!1);return((0,n.useEffect)(()=>{let e=()=>{w(tl.default&&window?.location?.hash?.substring(1)||""),j.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;y&&!j.current&&(j.current=!0,v());let e=h.length===b.length&&b.length>0,t=document.getElementById?.(y);if(y&&e&&!k.current){k.current=!0;let e=b.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,y,v,b,c,f,h,g.length,j,g]),(0,n.useEffect)(()=>{o>0&&v()},[o]),(0,n.useEffect)(()=>{l>0&&x()},[l]),e&&0!==e.length)?(0,t.jsxs)("div",{className:"w-full",children:[!i&&(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:v,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:x,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)(e9,{className:"text-muted-foreground leading-relaxed",children:(0,t.jsx)(to,{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)(e9,{className:"text-muted-foreground leading-relaxed",children:(0,t.jsx)(to,{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)},715375,e=>{"use strict";var t=e.i(699173),n=e.i(592121),r=e.i(447839);function i(e,t={}){let{maxLength:n=80,separator:r="-",preserveCase:o=!1,allowedChars:l=/[^a-z0-9\s/-]/g,removeLeadingSlashes:s=!0,questionMarkReplacement:a="-by-"}=t;if(!e||"string"!=typeof e)return"";let c=e.trim();return s&&(c=c.replace(/^\/+/,"")),o||(c=c.toLowerCase()),c.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\?/g,a).replace(/\./g,r).replace(l,"").replace(/\/+/g,r).replace(/\s+/g,r).replace(RegExp(`\\${r}+`,"g"),r).replace(RegExp(`^\\${r}|\\${r}$`,"g"),"").substring(0,n).replace(RegExp(`\\${r}$`),"")}function o(e){return e&&0!==e.length?e.map(e=>"text"in e&&"string"==typeof e.text?e.text:"children"in e&&Array.isArray(e.children)?o(e.children):"").join(""):""}e.s(["TableOfContents",0,e=>{let l=(0,n.useMemo)(()=>(function(e,t){if(!e||!e.root||!e.root.children)return[];let n=function e(t,n=[],r){if(!t||0===t.length)return n;for(let l of t){if("heading"===l.type){let e=o(l.children);if(e){let t=i(e),o=parseInt(l.tag.substring(1),10);n.push({id:t,text:e,depth:o,accordionValue:r})}}if("heading-with-anchorId"===l.type){let e=o(l.children);if(e){let t=l?.anchorId||i(e),o=parseInt(l.tag.substring(1),10);n.push({id:t,text:e,depth:o,accordionValue:r})}}if("block"===l.type){if("accordion"===l.fields.blockType){let t=l.fields;if(t.sections&&t.sections.length>0){for(let r of t.sections)if(r.title){let t=i(r.title);n.push({id:t,text:r.title,depth:3,accordionValue:t}),r.body?.root?.children&&e(r.body.root.children,n,t)}}}if("disclosure"===l.fields.blockType){let t=l.fields;t.body?.root?.children&&e(t.body.root.children,n,r)}}"children"in l&&Array.isArray(l.children)&&e(l.children,n,r)}return n}(e.root.children);if(void 0===t||0===n.length)return n;let r=Math.min(...n.map(e=>e.depth));return n.filter(e=>e.depth-r+10===l.length?1:Math.min(...l.map(e=>e.depth)),[l]),{activeIndex:a,handleClick:c}=function(e){let{headings:t,offset:r=100}=e,[i,o]=(0,n.useState)(0),l=(0,n.useRef)(!1),s=(0,n.useRef)(0),a=(0,n.useRef)(5),c=(0,n.useCallback)(()=>{if(l.current)return;let e=t.map(e=>document.getElementById(e.id)).filter(e=>null!==e);if(0===e.length)return;let n=0,i=window.scrollY+r;for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&i>=r.offsetTop){n=t;break}}o(n)},[t,r]);return(0,n.useEffect)(()=>{let e=null,t=0,n=()=>{let n=Date.now();n-t{let t=window.scrollY,n=Math.abs(t-s.current);l.current&&n>a.current&&(l.current=!1),s.current=t,c(),e=null}))};return c(),window.addEventListener("scroll",n,{passive:!0}),window.addEventListener("hashchange",c),()=>{window.removeEventListener("scroll",n),window.removeEventListener("hashchange",c),null!==e&&cancelAnimationFrame(e)}},[c]),{activeIndex:i,handleClick:(0,n.useCallback)((e,t,n)=>{o(e),l.current=!0,s.current=window.scrollY,n()},[])}}({headings:l,offset:100}),u=(0,n.useRef)(null),d=(0,n.useRef)(null);return((0,n.useEffect)(()=>{u.current&&d.current&&u.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[a]),0===l.length)?null:(0,t.jsxs)("nav",{className:"bg-card sticky top-4 rounded-sm border p-4",children:[(0,t.jsx)("h2",{className:"mb-4 text-sm font-semibold",children:"Table of Contents"}),(0,t.jsx)("ul",{ref:d,className:"max-h-[calc(100vh-12rem)] space-y-1 overflow-y-auto scroll-smooth",children:l.map((e,n)=>{let i=n===a,o=(e.depth-s)*12;return(0,t.jsx)("li",{style:{paddingLeft:`${Math.max(0,o)}px`},children:(0,t.jsx)("button",{ref:i?u:null,type:"button",onClick:()=>{c(n,e,()=>{document.getElementById(e.id)&&(window.location.hash=e.id)})},className:(0,r.cn)("w-full rounded-sm px-3 py-1.5 text-left text-sm transition-colors",i?"bg-blue-500 text-white":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:e.text})},e.id)})})]})}],715375)},213980,e=>{"use strict";var t=e.i(699173),n=e.i(592121);let r=(0,e.i(514514).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);var i=e.i(982538),o=e.i(294237),l=e.i(447839);let s=(0,o.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function a({className:e,variant:n,size:r,asChild:o=!1,...c}){let u=o?i.Slot:"button";return(0,t.jsx)(u,{"data-slot":"button",className:(0,l.cn)(s({variant:n,size:r,className:e})),...c})}e.s(["BackToTop",0,function(){let[e,i]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>{window.scrollY>300?i(!0):i(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsx)(a,{variant:"default",size:"icon-lg",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"Back to top",className:`fixed right-8 bottom-8 z-50 shadow-lg transition-opacity duration-300 ${e?"opacity-100":"pointer-events-none opacity-0"}`,children:(0,t.jsx)(r,{})})}],213980)},469652,e=>{"use strict";var t=e.i(592121);e.s(["HashRedirect",0,function({rules:e}){let n=(0,t.useRef)(e);return(0,t.useEffect)(()=>{let e=window.location.hash.slice(1),t=n.current.find(t=>t.from===e);t&&window.location.replace(`#${t.to}`)},[]),null}])},203320,e=>{"use strict";var t=e.i(699173),n=e.i(848083),r=e.i(447839),i=e.i(683903);e.s(["NavLink",0,({link:e,pathname:o,locale:l})=>{let s=e.page,a=(0,i.useTranslations)("Nav"),c="internal"===e.linkType?((e,t="en-US")=>"en-US"===t?`/privacy/${e?.slug}`:`/${t}/privacy/${e?.slug}`)(s,l):e.url,u=o===c,d="external"===e.linkType,f=a(e.labelTranslationKey);return c&&f?(0,t.jsx)(n.default,{href:c,className:(0,r.cn)("text-lg transition-colors",u?"text-gray-400":"text-[#003399]"),...d&&{target:"_blank",rel:"noopener noreferrer"},children:f}):null}],203320)},382224,e=>{"use strict";var t=e.i(699173),n=e.i(683903),r=e.i(606916);e.s(["NavAccordionTriggers",0,()=>{let{triggerExpandAll:e,triggerCollapseAll:i,pageHasAccordion:o}=(0,r.useAccordionContext)(),l=(0,n.useTranslations)("Nav");return o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e,className:"cursor-pointer font-medium text-[#039] hover:underline",type:"button",children:l("expandAll")}),(0,t.jsx)("span",{className:"text-gray-400",children:"|"}),(0,t.jsx)("button",{onClick:i,className:"cursor-pointer font-medium text-[#039] hover:underline",type:"button",children:l("collapseAll")})]}):null}])}]);