"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[241],{6686:(e,t,r)=>{r.d(t,{i:()=>o});var n,i=r(70464),l=r(97884),s=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||l.N;function o({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[l,o,u]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),l=i.useRef(r),o=i.useRef(t);return s(()=>{o.current=t},[t]),i.useEffect(()=>{l.current!==r&&(o.current?.(r),l.current=r)},[r,l]),[r,n,o]}({defaultProp:t,onChange:r}),a=void 0!==e,f=a?e:l;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=a},[a,n])}return[f,i.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&u.current?.(r)}else o(t)},[a,e,o,u])]}Symbol("RADIX:SYNC_STATE")},35560:(e,t,r)=>{r.d(t,{hO:()=>u,sG:()=>o});var n=r(70464),i=r(11473),l=r(10182),s=r(21164),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,l.TL)(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i?r:t,{...l,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function u(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},41067:(e,t,r)=>{r.d(t,{C:()=>s});var n=r(70464),i=r(1126),l=r(97884),s=e=>{let{present:t,children:r}=e,s=function(e){var t,r;let[i,s]=n.useState(),u=n.useRef(null),a=n.useRef(e),f=n.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=o(u.current);f.current="mounted"===c?e:"none"},[c]),(0,l.N)(()=>{let t=u.current,r=a.current;if(r!==e){let n=f.current,i=o(t);e?d("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):r&&n!==i?d("ANIMATION_OUT"):d("UNMOUNT"),a.current=e}},[e,d]),(0,l.N)(()=>{if(i){var e;let t,r=null!=(e=i.ownerDocument.defaultView)?e:window,n=e=>{let n=o(u.current).includes(CSS.escape(e.animationName));if(e.target===i&&n&&(d("ANIMATION_END"),!a.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},l=e=>{e.target===i&&(f.current=o(u.current))};return i.addEventListener("animationstart",l),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{r.clearTimeout(t),i.removeEventListener("animationstart",l),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}d("ANIMATION_END")},[i,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{u.current=e?getComputedStyle(e):null,s(e)},[])}}(t),u="function"==typeof r?r({present:s.isPresent}):n.Children.only(r),a=(0,i.s)(s.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof r||s.isPresent?n.cloneElement(u,{ref:a}):null};function o(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},65830:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(70464),i=r(21164);function l(e,t=[]){let r=[],s=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return s.scopeName=e,[function(t,l){let s=n.createContext(l),o=r.length;r=[...r,l];let u=t=>{let{scope:r,children:l,...u}=t,a=r?.[e]?.[o]||s,f=n.useMemo(()=>u,Object.values(u));return(0,i.jsx)(a.Provider,{value:f,children:l})};return u.displayName=t+"Provider",[u,function(r,i){let u=i?.[e]?.[o]||s,a=n.useContext(u);if(a)return a;if(void 0!==l)return l;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(s,...t)]}},72188:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function i(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function l(e,t,r){var i=n(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}r.d(t,{N:()=>d});var s,o=r(70464),u=r(65830),a=r(1126),f=r(10182),c=r(21164);function d(e){let t=e+"CollectionProvider",[r,n]=(0,u.A)(t),[i,l]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=o.useRef(null),l=o.useRef(new Map).current;return(0,c.jsx)(i,{scope:t,itemMap:l,collectionRef:n,children:r})};s.displayName=t;let d=e+"CollectionSlot",h=(0,f.TL)(d),p=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=l(d,r),s=(0,a.s)(t,i.collectionRef);return(0,c.jsx)(h,{ref:s,children:n})});p.displayName=d;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,f.TL)(m),w=o.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,s=o.useRef(null),u=(0,a.s)(t,s),f=l(m,r);return o.useEffect(()=>(f.itemMap.set(s,{ref:s,...i}),()=>void f.itemMap.delete(s))),(0,c.jsx)(y,{...{[v]:""},ref:u,children:n})});return w.displayName=m,[{Provider:s,Slot:p,ItemSlot:w},function(t){let r=l(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var h=new WeakMap;function p(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=m(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function m(e){return e!=e||0===e?0:Math.trunc(e)}s=new WeakMap,class e extends Map{set(e,t){return h.get(this)&&(this.has(e)?i(this,s)[i(this,s).indexOf(e)]=e:i(this,s).push(e)),super.set(e,t),this}insert(e,t,r){let n,l=this.has(t),o=i(this,s).length,u=m(e),a=u>=0?u:o+u,f=a<0||a>=o?-1:a;if(f===this.size||l&&f===this.size-1||-1===f)return this.set(t,r),this;let c=this.size+ +!l;u<0&&a++;let d=[...i(this,s)],h=!1;for(let e=a;e=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r=0;e--){let r=this.at(e);l=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[l,r,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,s,{writable:!0,value:void 0}),l(this,s,[...super.keys()]),h.set(this,!0)}}},97884:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(70464),i=globalThis?.document?n.useLayoutEffect:()=>{}},99966:(e,t,r)=>{function n(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}r.d(t,{mK:()=>n}),"undefined"!=typeof window&&window.document&&window.document.createElement}}]);