PageSourceSearch

https://nodejs.org/_next/static/immutable/chunks/1hnd4-gjyq64c.js

js nodejs.org collected 2026-09-24 06:03:33 UTC 74,766 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,543836,e=>{"use strict";var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),r=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return n(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function i(e){if(!r)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function l(e){return"IFRAME"===e.tagName}n(o,"composeEventHandlers"),n(function(e){if(!r)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(i,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:r}=i(t);if(!r?.nodeName)return null;if(l(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=i(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),n(l,"isFrame"),e.s(["composeEventHandlers",0,o])},899300,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},210793,128461,e=>{"use strict";var t=e.i(388320),n=e.i(464503),r=e.i(976173),o=e.i(950700),i=e.i(963317),l=Object.defineProperty,a=(e,t)=>l(e,"name",{value:t,configurable:!0});function u(e){let l=e+"CollectionProvider",[u,s]=(0,n.createContextScope)(l),[c,f]=u(l,{collectionRef:{current:null},itemMap:new Map}),d=a(e=>{let{scope:n,children:r}=e,o=t.useRef(null),l=t.useRef(new Map).current;return(0,i.jsx)(c,{scope:n,itemMap:l,collectionRef:o,children:r})},"CollectionProvider");d.displayName=l;let p=e+"CollectionSlot",m=(0,o.createSlot)(p),h=t.forwardRef((e,t)=>{let{scope:n,children:o}=e,l=f(p,n),a=(0,r.useComposedRefs)(t,l.collectionRef);return(0,i.jsx)(m,{ref:a,children:o})});h.displayName=p;let v=e+"CollectionItemSlot",y="data-radix-collection-item",g=(0,o.createSlot)(v),b=t.forwardRef((e,n)=>{let{scope:o,children:l,...a}=e,u=t.useRef(null),s=(0,r.useComposedRefs)(n,u),c=f(v,o);return t.useEffect(()=>(c.itemMap.set(u,{ref:u,...a}),()=>void c.itemMap.delete(u))),(0,i.jsx)(g,{...{[y]:""},ref:s,children:l})});function w(n){let r=f(e+"CollectionConsumer",n);return t.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 b.displayName=v,a(w,"useCollection"),[{Provider:d,Slot:h,ItemSlot:b},w,s]}a(u,"createCollection");var s=new WeakMap,c=class e extends Map{static{a(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],s.set(this,!0)}set(e,t){return s.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=p(e),a=l>=0?l:i+l,u=a<0||a>=i?-1:a;if(u===this.size||o&&u===this.size-1||-1===u)return this.set(t,n),this;let s=this.size+ +!o;l<0&&a++;let c=[...this.#e],f=!1;for(let e=a;e<s;e++)if(a===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{f||c[e-1]!==t||(f=!0);let n=c[f?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=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<0&&(r=0),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++}
1}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;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function f(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=d(e,t);return -1===n?void 0:e[n]}function d(e,t){let n=e.length,r=p(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function p(e){return e!=e||0===e?0:Math.trunc(e)}function m(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 h(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function v(e,t){return e[1].element&&t[1].element?h(e[1].element,t[1].element)?-1:1:0}function y(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}a(f,"at"),a(d,"toSafeIndex"),a(p,"toSafeInteger"),a(function(e){let l=e+"CollectionProvider",[u,s]=(0,n.createContextScope)(l),[f,d]=u(l,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new c,setItemMap:a(()=>void 0,"setItemMap")}),p=a(({state:e,...t})=>e?(0,i.jsx)(g,{...t,state:e}):(0,i.jsx)(h,{...t}),"CollectionProvider");p.displayName=l;let h=a(e=>{let t=C();return(0,i.jsx)(g,{...e,state:t})},"CollectionInit");h.displayName=l+"Init";let g=a(e=>{let{scope:n,children:o,state:l}=e,a=t.useRef(null),[u,s]=t.useState(null),c=(0,r.useComposedRefs)(a,s),[d,p]=l;return t.useEffect(()=>{if(!u)return;let e=y(()=>{});return e.observe(u,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[u]),(0,i.jsx)(f,{scope:n,itemMap:d,setItemMap:p,collectionRef:c,collectionRefObject:a,collectionElement:u,children:o})},"CollectionProviderImpl");g.displayName=l+"Impl";let b=e+"CollectionSlot",w=(0,o.createSlot)(b),E=t.forwardRef((e,t)=>{let{scope:n,children:o}=e,l=d(b,n),a=(0,r.useComposedRefs)(t,l.collectionRef);return(0,i.jsx)(w,{ref:a,children:o})});E.displayName=b;let x=e+"CollectionItemSlot",S=(0,o.createSlot)(x),R=t.forwardRef((e,n)=>{let{scope:o,children:l,...a}=e,u=t.useRef(null),[s,f]=t.useState(null),p=(0,r.useComposedRefs)(n,u,f),{setItemMap:h}=d(x,o),y=t.useRef(a);m(y.current,a)||(y.current=a);let g=y.current;return t.useEffect(()=>(h(e=>s?e.has(s)?e.set(s,{...g,element:s}).toSorted(v):(e.set(s,{...g,element:s}),e.toSorted(v)):e),()=>{h(e=>s&&e.has(s)?(e.delete(s),new c(e)):e)}),[s,g,h]),(0,i.jsx)(S,{"data-radix-collection-item":"",ref:p,children:l})});function C(){return t.useState(new c)}function P(t){let{itemMap:n}=d(e+"CollectionConsumer",t);return n}return R.displayName=x,a(C,"useInitCollection"),a(P,"useCollection"),[{Provider:p,Slot:E,ItemSlot:R},{createCollectionScope:s,useCollection:P,useInitCollection:C}]},"createCollection"),a(m,"shallowEqual"),a(h,"isElementPreceding"),a(v,"sortByDocumentPosition"),a(y,"getChildListObserver"),e.s(["createCollection",0,u],210793);var g=Object.defineProperty,b=t.createContext(void 0);function w(e){let n=t.useContext(b);return e||n||"ltr"}g(w,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,w],128461)},976173,e=>{"use strict";var t=e.i(388320),n=Object.defineProperty,r=(e,t)=>n(e,"name",{value:t,configurable:!0});function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return t.useCallback(i(...e),e)}r(o,"setRef"),r(i,"composeRefs"),r(l,"useComposedRefs"),e.s(["useComposedRefs",0,l])},464503,e=>{"use strict";var t=e.i(388320),n=e.i(963317),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,r=[]){let a=[];function u(r,i){let l=t.createContext(i);l.displayName=r+"Context";let u=a.length;a=[...a,i];let s=o(r=>{let{scope:o,children:i,...a}=r,s=o?.[e]?.[u]||l,c=t.useMemo(()=>a,Object.values(a));return(0,n.jsx)(s.Provider,{value:c,children:i})},"Provider");function c(n,o,a={}){let{optional:s=!1}
1=a,f=o?.[e]?.[u]||l,d=t.useContext(f);if(d)return d;if(void 0!==i)return i;if(!s)throw Error(`\`${n}\` must be used within \`${r}\``)}return s.displayName=r+"Provider",o(c,"useContext"),[s,c]}o(u,"createContext");let s=o(()=>{let n=a.map(e=>t.createContext(e));return o(function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return s.scopeName=e,[u,l(s,...r)]}function l(...e){let n=e[0];if(1===e.length)return n;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 t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=n.scopeName,r}o(function(e,r){let i=t.createContext(r);i.displayName=e+"Context";let l=o(e=>{let{children:r,...o}=e,l=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(i.Provider,{value:l,children:r})},"Provider");function a(n,o={}){let{optional:l=!1}=o,u=t.useContext(i);if(u)return u;if(void 0!==r)return r;if(!l)throw Error(`\`${n}\` must be used within \`${e}\``)}return l.displayName=e+"Provider",o(a,"useContext"),[l,a]},"createContext"),o(i,"createContextScope"),o(l,"composeContextScopes"),e.s(["createContextScope",0,i])},20582,484090,e=>{"use strict";var t,n=e.i(388320),r=e.i(543836),o=e.i(369100),i=e.i(976173),l=e.i(228755),a=e.i(963317),u=Object.defineProperty,s=(e,t)=>u(e,"name",{value:t,configurable:!0}),c="dismissableLayer.update",f=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),d=n.forwardRef(s(function(e,u){let{disableOutsidePointerEvents:d=!1,deferPointerDownOutside:p=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:b,onInteractOutside:w,onDismiss:E,...x}=e,S=n.useContext(f),[R,C]=n.useState(null),P=R?.ownerDocument??globalThis?.document,[,O]=n.useState({}),A=(0,i.useComposedRefs)(u,C),L=Array.from(S.layers),[k]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),T=k?L.indexOf(k):-1,D=R?L.indexOf(R):-1,M=S.layersWithOutsidePointerEventsDisabled.size>0,N=D>=T,I=n.useRef(!1),j=h(e=>{g?.(e),w?.(e),e.defaultPrevented||E?.()},{ownerDocument:P,deferPointerDownOutside:p,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return N&&!t},[S.branches,N])}),F=v(e=>{if(p&&I.current)return;let t=e.target;![...S.branches].some(e=>e.contains(t))&&(b?.(e),w?.(e),e.defaultPrevented||E?.())},P),_=!!R&&D===L.length-1,W=(0,l.useCallbackRef)(e=>{"Escape"===e.key&&(m?.(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))});return n.useEffect(()=>{if(_)return P.addEventListener("keydown",W,{capture:!0}),()=>P.removeEventListener("keydown",W,{capture:!0})},[P,_,W]),n.useEffect(()=>{if(R)return d&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(t=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(R)),S.layers.add(R),y(),()=>{d&&(S.layersWithOutsidePointerEventsDisabled.delete(R),0===S.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=t))}},[R,P,d,S]),n.useEffect(()=>()=>{R&&(S.layers.delete(R),S.layersWithOutsidePointerEventsDisabled.delete(R),y())},[R,S]),n.useEffect(()=>{let e=s(()=>O({}),"handleUpdate");return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.jsx)(o.Primitive.div,{...x,ref:A,style:{pointerEvents:M?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,j.onPointerDownCapture)})},"DismissableLayer"));function p(){let e=n.useContext(f),[t,r]=n.useState(null);return n.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}s(p,"useDismissableLayerSurface");var m=s(()=>!0,"IS_TRUE");function h(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:u=m}=t,c=(0,l.useCallbackRef)(e),f=n.useRef(!1),d=n.useRef(!1),p=n.useRef(new Map),h=n.useRef(()=>{});return n.useEffect(()=>{function e(){d.current=!1,i.current=!1,p.current.clear()}function t(){return Array.from(p.current.values()).some(Boolean)}function n(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&h.current()},0)}function l(e){d.current&&p.current.set(e.type,!1)}s(e,"resetOutsideInteraction"),s(t,"isOutsideInteractionIntercepted"),s(n,"handleInteractionCapture"),s(l,"handleInteractionBubble");let m=s(n=>{if(n.target&&!f.current){let l=function(){r.removeEventListener("click",h.current);let n=t();e(),n||g("dismissableLayer.pointerDownOutside",c,a,{discrete:!0})};if(s(l,"handleAndDispatchPointerDownOutsideEvent"),!u(n.target)){r.removeEventListener("click",h.current),e(
1),f.current=!1;return}let a={originalEvent:n};d.current=!0,i.current=o&&0===n.button,p.current.clear(),o&&0===n.button?(r.removeEventListener("click",h.current),h.current=l,r.addEventListener("click",h.current,{once:!0})):l()}else r.removeEventListener("click",h.current),e();f.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)r.addEventListener(e,n,!0),r.addEventListener(e,l);let y=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(y),r.removeEventListener("pointerdown",m),r.removeEventListener("click",h.current),v))r.removeEventListener(e,n,!0),r.removeEventListener(e,l)}},[r,c,o,i,a,u]),{onPointerDownCapture:s(()=>f.current=!0,"onPointerDownCapture")}}function v(e,t=globalThis?.document){let r=(0,l.useCallbackRef)(e),o=n.useRef(!1);return n.useEffect(()=>{let e=s(e=>{e.target&&!o.current&&g("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:s(()=>o.current=!0,"onFocusCapture"),onBlurCapture:s(()=>o.current=!1,"onBlurCapture")}}function y(){let e=new CustomEvent(c);document.dispatchEvent(e)}function g(e,t,n,{discrete:r}){let i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(i,l):i.dispatchEvent(l)}s(h,"usePointerDownOutside"),s(v,"useFocusOutside"),s(y,"dispatchUpdate"),s(g,"handleAndDispatchCustomEvent"),e.s(["DismissableLayer",0,d,"useDismissableLayerSurface",0,p],20582);var b=e.i(701099),w=e.i(587114),E=Object.defineProperty,x=n.forwardRef(E(function(e,t){let{container:r,...i}=e,[l,u]=n.useState(!1);(0,w.useLayoutEffect)(()=>u(!0),[]);let s=r||l&&globalThis?.document?.body;return s?b.createPortal((0,a.jsx)(o.Primitive.div,{...i,ref:t}),s):null},"name",{value:"Portal",configurable:!0}));e.s(["Portal",0,x],484090)},225948,544681,73772,180962,e=>{"use strict";var t,n,r,o,i,l,a,u=e.i(388320),s=Object.defineProperty,c=(e,t)=>s(e,"name",{value:t,configurable:!0}),f=0,d=null;function p(){u.useEffect(()=>{d||(d={start:m(),end:m()});let{start:e,end:t}=d;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),f++,()=>{1===f&&(d?.start.remove(),d?.end.remove(),d=null),f=Math.max(0,f-1)}},[])}function m(){let 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}c(function(e){return p(),e.children},"FocusGuards"),c(p,"useFocusGuards"),c(m,"createFocusGuard"),e.s(["useFocusGuards",0,p],225948);var h=e.i(976173),v=e.i(369100),y=e.i(228755),g=e.i(963317),b=Object.defineProperty,w=(e,t)=>b(e,"name",{value:t,configurable:!0}),E="focusScope.autoFocusOnMount",x="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},R=u.forwardRef(w(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,s]=u.useState(null),c=(0,y.useCallbackRef)(o),f=(0,y.useCallbackRef)(i),d=u.useRef(null),p=(0,h.useComposedRefs)(t,s),m=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let e=function(e){if(m.paused||!a)return;let t=e.target;a.contains(t)?d.current=t:T(d.current,{select:!0})},t=function(e){if(m.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||T(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&T(a)};w(e,"handleFocusIn"),w(t,"handleFocusOut"),w(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,m.paused]),u.useEffect(()=>{if(a){D.add(m);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(E,S);
1a.addEventListener(E,c),a.dispatchEvent(t),t.defaultPrevented||(C(I(O(a)),{select:!0}),document.activeElement===e&&T(a))}return()=>{a.removeEventListener(E,c),setTimeout(()=>{let t=new CustomEvent(x,S);a.addEventListener(x,f),a.dispatchEvent(t),t.defaultPrevented||T(e??document.body,{select:!0}),a.removeEventListener(x,f),D.remove(m)},0)}}},[a,c,f,m]);let b=u.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=P(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&T(i,{select:!0})):(e.preventDefault(),n&&T(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,g.jsx)(v.Primitive.div,{tabIndex:-1,...l,ref:p,onKeyDown:b})},"FocusScope"));function C(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(T(r,{select:t}),document.activeElement!==n)return}function P(e){let t=O(e);return[A(t,e),A(t.reverse(),e)]}function O(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:w(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):L(r,{upTo:t})))return r}function L(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function k(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&k(e)&&t&&e.select()}}w(C,"focusFirst"),w(P,"getTabbableEdges"),w(O,"getTabbableCandidates"),w(A,"findVisible"),w(L,"isHidden"),w(k,"isSelectableInput"),w(T,"focus");var D=M();function M(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=N(e,t)).unshift(t)},remove(t){e=N(e,t),e[0]?.resume()}}}function N(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function I(e){return e.filter(e=>"A"!==e.tagName)}w(M,"createFocusScopesStack"),w(N,"arrayRemove"),w(I,"removeLinks"),e.s(["FocusScope",0,R],544681);var j=new WeakMap,F=new WeakMap,_={},W=0,H=function(e){return e&&(e.host||H(e.parentNode))},$=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=H(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});_[n]||(_[n]=new WeakMap);var i=_[n],l=[],a=new Set,u=new Set(o),s=function(e){!e||a.has(e)||(a.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(j.get(e)||0)+1,s=(i.get(e)||0)+1;j.set(e,u),i.set(e,s),l.push(e),1===u&&o&&F.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),W++,function(){l.forEach(function(e){var t=j.get(e)-1,o=i.get(e)-1;j.set(e,t),i.set(e,o),t||(F.has(e)||e.removeAttribute(r),F.delete(e)),o||e.removeAttribute(n)}),--W||(j=new WeakMap,j=new WeakMap,F=new WeakMap,_={})}};e.s(["hideOthers",0,function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),$(r,o,n,"aria-hidden")):function(){return null}}],73772);var B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function z(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var U=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),V="width-before-scroll-bar";function K(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var G="u">typeof window?u.useLayoutEffect:u.useEffect,Y=new WeakMap,X=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;
1r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),r={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),r}}}}).options=B({async:!0,ssr:!1},t),i),q=function(){},Z=u.forwardRef(function(e,t){var n,r,o,i,l=u.useRef(null),a=u.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),s=a[0],c=a[1],f=e.forwardProps,d=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,b=e.noIsolation,w=e.inert,E=e.allowPinchZoom,x=e.as,S=e.gapMode,R=z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[l,t],r=function(e){return n.forEach(function(t){return K(t,e)})},(o=(0,u.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,G(function(){var e=Y.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||K(e,null)}),r.forEach(function(e){t.has(e)||K(e,o)})}Y.set(i,n)},[n]),i),P=B(B({},R),s);return u.createElement(u.Fragment,null,h&&u.createElement(y,{sideCar:X,removeScrollBar:m,shards:v,noRelative:g,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!E,lockRef:l,gapMode:S}),f?u.cloneElement(u.Children.only(d),B(B({},P),{ref:C})):u.createElement(void 0===x?"div":x,B({},P,{className:p,ref:C}),d))});Z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Z.classNames={fullWidth:V,zeroRight:U};var J=function(e){var t=e.sideCar,n=z(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return u.createElement(r,B({},n))};J.isSideCarExport=!0;var Q=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ee=function(){var e=Q();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},et=function(){var e=ee();return function(t){return e(t.styles,t.dynamic),null}},en={left:0,top:0,right:0,gap:0},er=function(e){return parseInt(e||"",10)||0},eo=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[er(n),er(r),er(o)]},ei=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return en;var t=eo(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])}},el=et(),ea="data-scroll-locked",eu=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(ea,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(l,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(U," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(V," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(U," .").concat(U," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(V," .").concat(V," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ea,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},es=function(){var e=parseInt(document.body.getAttribute(ea)||"0",10);return isFinite(e)?e:0},ec=function(){u.useEffect(function(){return document.body.setAttribute(ea,(es()+1).toString()),function(){var e=es()-1;e<=0?document.body.removeAttribute(ea):document.body.setAttribute(ea,e.toString())}},[])},ef=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;ec();var i=u.useMemo(function(){return ei(o)},[o]);return u.createElement(el,{styles:eu(i,!t,o,n?"":"!important")})},ed=!1;if("u">typeof window)try{var ep=Object.defineProperty({},"passive",{get:function(){return ed=!0,!0}});window.addEventListener("test",ep,ep),window.removeEventListener("test",ep,ep)}catch(e){ed=!1}var em=!!ed&&{passive:!1},eh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},ev=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ey(e,r)){var o=eg(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},ey=function(e,t){return"v"===e?eh(t,"overflowY"):eh(t,"overflowX")},eg=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eb=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,f=a>0,d=0,p=0;
1do{if(!u)break;var m=eg(e,u),h=m[0],v=m[1]-m[2]-l*h;(h||v)&&ey(e,u)&&(d+=v,p+=h);var y=u.parentNode;u=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&u!==document.body||s&&(t.contains(u)||t===u))return f&&(o&&1>Math.abs(d)||!o&&a>d)?c=!0:!f&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},ew=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eE=function(e){return[e.deltaX,e.deltaY]},ex=function(e){return e&&"current"in e?e.current:e},eS=0,eR=[];let eC=(l=function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(eS++)[0],i=u.useState(et)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ex),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=ew(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,f=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=ev(f,c);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=ev(f,c)),!m)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var h=r.current||o;return eb(h,t,e,"h"===h?u:s,!0)},[]),s=u.useCallback(function(e){if(eR.length&&eR[eR.length-1]===i){var n="deltaY"in e?eE(e):ew(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(ex).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=u.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=u.useCallback(function(e){n.current=ew(e),r.current=void 0},[]),d=u.useCallback(function(t){c(t.type,eE(t),t.target,a(t,e.lockRef.current))},[]),p=u.useCallback(function(t){c(t.type,ew(t),t.target,a(t,e.lockRef.current))},[]);u.useEffect(function(){return eR.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",s,em),document.addEventListener("touchmove",s,em),document.addEventListener("touchstart",f,em),function(){eR=eR.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,em),document.removeEventListener("touchmove",s,em),document.removeEventListener("touchstart",f,em)}},[]);var m=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?u.createElement(ef,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},X.useMedium(l),J);var eP=u.forwardRef(function(e,t){return u.createElement(Z,B({},e,{ref:t,sideCar:eC}))});eP.classNames=Z.classNames,e.s(["RemoveScroll",0,eP],180962)},244726,943731,e=>{"use strict";var t=e.i(388320),n=e.i(587114),r=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),i=0;function l(e){let[r,l]=t.useState(o());return(0,n.useLayoutEffect)(()=>{e||l(e=>e??String(i++))},[e]),e||(r?`radix-${r}`:"")}r(l,"name",{value:"useId",configurable:!0}),e.s(["useId",0,l],244726);var a=Object.defineProperty,u=(e,t)=>
1a(e,"name",{value:t,configurable:!0});function s(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}u(s,"useStateMachine");var c=u(e=>{let{present:n,children:r}=e,o=f(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),l=p(o.ref,h(i));return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:l}):null},"Presence");function f(e){let[r,o]=t.useState(),i=t.useRef(null),l=t.useRef(e),a=t.useRef("none"),c=t.useRef(void 0),[f,d]=s(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===f?(a.current=c.current??m(i.current),c.current=void 0):a.current="none"},[f]),(0,n.useLayoutEffect)(()=>{let t=i.current,n=l.current;if(n!==e){let r=a.current,o=m(t);e?(c.current=o,d("MOUNT")):"none"===o||t?.display==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),(0,n.useLayoutEffect)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=u(n=>{let o=m(i.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(d("ANIMATION_END"),!l.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},"handleAnimationEnd"),o=u(e=>{e.target===r&&(a.current=m(i.current))},"handleAnimationStart");return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);i.current=t,c.current=m(t)}else i.current=null;o(e)},[])}}function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function p(...e){let n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,r=!1,o=t.map(t=>{let n=d(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let n=o[e];"function"==typeof n?n():d(t[e],null)}}},[])}function m(e){return e?.animationName||"none"}function h(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}u(f,"usePresence"),u(d,"setRef"),u(p,"useStableComposedRefs"),u(m,"getAnimationName"),u(h,"getElementRef"),e.s(["Presence",0,c],943731)},79155,e=>{"use strict";var t=e.i(388320);let n=["top","right","bottom","left"],r=Math.min,o=Math.max,i=Math.round,l=Math.floor,a=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}let h=new Set(["top","bottom"]);function v(e){return h.has(f(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>s[e])}let g=["left","right"],b=["right","left"],w=["top","bottom"],E=["bottom","top"];function x(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function C(e,t,n){let r,{reference:o,floating:i}=e,l=v(t),a=p(v(t)),u=m(a),s=f(t),c="y"===l,h=o.x+o.width/2-i.width/2,y=o.y+o.height/2-i.height/2,g=o[u]/2-i[u]/2;switch(s){case"top":r={x:h,y:o.y-i.height};break;case"bottom":r={x:h,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:y};break;case"left":r={x:o.x-i.width,y:y};break;default:r={x:o.x,y:o.y}}switch(d(t)){case"start":r[a]-=g*(n&&c?-1:1);break;case"end":r[a]+=g*(n&&c?-1:1)}return r}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}
1=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=C(s,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:v,y:y,data:g,reset:b}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=y?y:f,p={...p,[i]:{...p[i],...g}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=C(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function O(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=c(t,e),h=S(m),v=a[p?"floating"===d?"reference":"floating":d],y=R(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:f,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},E=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:b,strategy:u}):g);return{top:(y.top-E.top+h.top)/w.y,bottom:(E.bottom-y.bottom+h.bottom)/w.y,left:(y.left-E.left+h.left)/w.x,right:(E.right-y.right+h.right)/w.x}}function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(e){return n.some(t=>e[t]>=0)}let k=new Set(["left","top"]);async function T(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=d(n),u="y"===v(n),s=k.has(l)?-1:1,p=i&&u?-1:1,m=c(t,e),{mainAxis:h,crossAxis:y,alignmentAxis:g}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof g&&(y="end"===a?-1*g:g),u?{x:y*p,y:h*s}:{x:h*s,y:y*p}}function D(){return"u">typeof window}function M(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function I(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return!!D()&&(e instanceof Node||e instanceof N(e).Node)}function F(e){return!!D()&&(e instanceof Element||e instanceof N(e).Element)}function _(e){return!!D()&&(e instanceof HTMLElement||e instanceof N(e).HTMLElement)}function W(e){return!(!D()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof N(e).ShadowRoot)}let H=new Set(["inline","contents"]);function $(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(o)}let B=new Set(["table","td","th"]),z=[":popover-open",":modal"];function U(e){return z.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let V=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],G=["paint","layout","strict","content"];function Y(e){let t=X(),n=F(e)?J(e):e;return V.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||K.some(e=>(n.willChange||"").includes(e))||G.some(e=>(n.contain||"").includes(e))}function X(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let q=new Set(["html","body","#document"]);function Z(e){return q.has(M(e))}function J(e){return N(e).getComputedStyle(e)}function Q(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ee(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||I(e);return W(t)?t.host:t}function et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ee(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:_(n)&&$(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=N(o);if(i){let e=en(l);
1return t.concat(l,l.visualViewport||[],$(o)?o:[],e&&n?et(e):[])}return t.concat(o,et(o,[],n))}function en(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function er(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=_(e),l=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=i(n)!==l||i(r)!==a;return u&&(n=l,r=a),{width:n,height:r,$:u}}function eo(e){return F(e)?e:e.contextElement}function ei(e){let t=eo(e);if(!_(t))return a(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:l}=er(t),u=(l?i(n.width):n.width)/r,s=(l?i(n.height):n.height)/o;return u&&Number.isFinite(u)||(u=1),s&&Number.isFinite(s)||(s=1),{x:u,y:s}}let el=a(0);function ea(e){let t=N(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function eu(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eo(e),u=a(1);t&&(r?F(r)&&(u=ei(r)):u=ei(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===N(l))&&o)?ea(l):a(0),c=(i.left+s.x)/u.x,f=(i.top+s.y)/u.y,d=i.width/u.x,p=i.height/u.y;if(l){let e=N(l),t=r&&F(r)?N(r):r,n=e,o=en(n);for(;o&&r&&t!==n;){let e=ei(o),t=o.getBoundingClientRect(),r=J(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=i,f+=l,o=en(n=N(o))}}return R({width:d,height:p,x:c,y:f})}function es(e,t){let n=Q(e).scrollLeft;return t?t.left+n:eu(I(e)).left+n}function ec(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-es(e,n),y:n.top+t.scrollTop}}let ef=new Set(["absolute","fixed"]);function ed(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=N(e),r=I(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=X();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=es(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t){let t,n,l,a,u,s,c;r=I(e),t=I(r),n=Q(r),l=r.ownerDocument.body,a=o(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),u=o(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),s=-n.scrollLeft+es(r),c=-n.scrollTop,"rtl"===J(l).direction&&(s+=o(t.clientWidth,l.clientWidth)-a),i={width:a,height:u,x:s,y:c}}else if(F(t)){let e,r,o,l,u,s;r=(e=eu(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=_(t)?ei(t):a(1),u=t.clientWidth*l.x,s=t.clientHeight*l.y,i={width:u,height:s,x:o*l.x,y:r*l.y}}else{let n=ea(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return R(i)}function ep(e){return"static"===J(e).position}function em(e,t){if(!_(e)||"fixed"===J(e).position)return null;if(t)return t(e);let n=e.offsetParent;return I(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){var n;let r=N(e);if(U(e))return r;if(!_(e)){let t=ee(e);for(;t&&!Z(t);){if(F(t)&&!ep(t))return t;t=ee(t)}return r}let o=em(e,t);for(;o&&(n=o,B.has(M(n)))&&ep(o);)o=em(o,t);return o&&Z(o)&&ep(o)&&!Y(o)?r:o||function(e){let t=ee(e);for(;_(t)&&!Z(t);){if(Y(t))return t;if(U(t))break;t=ee(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=_(t),o=I(t),i="fixed"===n,l=eu(e,!0,i,t),u={scrollLeft:0,scrollTop:0},s=a(0);if(r||!r&&!i)if(("body"!==M(t)||$(o))&&(u=Q(t)),r){let e=eu(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=es(o));i&&!r&&o&&(s.x=es(o));let c=!o||r||i?a(0):ec(o,u);return{x:l.left+u.scrollLeft-s.x-c.x,y:l.top+u.scrollTop-s.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ey={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=I(r),u=!!t&&U(t.floating);if(r===l||u&&i)return n;let s={scrollLeft:0,scrollTop:0},c=a(1),f=a(0),d=_(r);if((d||!d&&!i)&&(("body"!==M(r)||$(l))&&(s=Q(r)),_(r))){let e=eu(r);c=ei(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?a(0):ec(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-s.scrollTop*c.y+f.y+p.y}},getDocumentElement:I,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e,a=[..."clippingAncestors"===n?U(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=et(e,[],!1).filter(e=>F(e)&&"body"!==M(e)),o=null,i="fixed"===J(e).position,l=i?ee(e):e;for(;F(l)&&!Z(l);){let t=J(l),n=Y(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ef.has(o.position)||$(l)&&!n&&function e(t,n){let r=ee(t);return!(r===n||!F(r)||Z(r))&&("fixed"===J(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ee(l)}return t.set(e,r),r}(t,this._c):[].concat(n),i],u=a[0],s=a.reduce((e,n)=>{let i=ed(t,n,l);return e.top=o(i.top,e.top),e.right=r(i.right,e.right),e.bottom=r(i.bottom,e.bottom),e.left=o(i.left,e.left),e},ed(t,u,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eh,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:ei,isElement:F,isRTL:function(e){return"rtl"===J(e).direction}};function eg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:l,rects:a,platform:u,elements:s,middlewareData:f}=t,{element:h,padding:y=0}=c(e,t)||{};if(null==h)return{};let g=S(y),b={x:n,y:i},w=p(v(l)),E=m(w),x=await u.getDimensions(h),R="y"===w,C=R?"clientHeight":"clientWidth",P=a.reference[E]+a.reference[w]-b[w]-a.floating[E],O=b[w]-a.reference[w],A=await (null==u.getOffsetParent?void 0:u.getOffsetParent(h)),L=A?A[C]:0;L&&await (null==u.isElement?void 0:u.isElement(A))||(L=s.floating[C]||a.floating[E]);let k=L/2-x[E]/2-1,T=r(g[R?"top":"left"],k),D=r(g[R?"bottom":"right"],k),M=L-x[E]-D,N=L/2-x[E]/2+(P/2-O/2),I=o(T,r(N,M)),j=!f.arrow&&null!=d(l)&&N!==I&&a.reference[E]/2-(N<T?T:D)-x[E]/2<0,F=j?N<T?N-T:N-M:0;return{[w]:b[w]+F,data:{[w]:I,centerOffset:N-I-F,...j&&{alignmentOffset:F}},reset:j}}});var ew=e.i(701099),eE="u">typeof document?t.useLayoutEffect:function(){};function ex(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ex(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!ex(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eS(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eR(e,t){let n=eS(e);return Math.round(t*n)/n}function eC(e){let n=t.useRef(e);return eE(()=>{n.current=e}),n}var eP=e.i(369100),eO=e.i(963317),eA=Object.defineProperty,eL=t.forwardRef(eA(function(e,t){let{children:n,width:r=10,height:o=5,...i}=e;return(0,eO.jsx)(eP.Primitive.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eO.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),ek=e.i(976173),eT=e.i(464503),eD=e.i(228755),eM=e.i(587114);function eN(e){let[n,r]=t.useState(void 0);return(0,eM.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),n}(0,Object.defineProperty)(eN,"name",{value:"useSize",configurable:!0});var eI=Object.defineProperty,ej=(e,t)=>eI(e,"name",{value:t,configurable:!0}),eF="Popper",[e_,eW]=(0,eT.createContextScope)(eF),[eH,e$]=e_(eF),eB=ej(e=>{let{__scopePopper:n,children:r}=e,[o,i]=t.useState(null),[l,a]=t.useState(void 0);return(0,eO.jsx)(eH,{scope:n,anchor:o,onAnchorChange:i,placementState:l,setPlacementState:a,children:r})},"Popper"),ez=t.forwardRef(ej(function(e,n){let{__scopePopper:r,virtualRef:o,...i}=e,l=e$("PopperAnchor",r),a=t.useRef(null),u=l.onAnchorChange,s=t.useCallback(e=>{a.current=e,e&&u(e)},[u]),c=(0,ek.useComposedRefs)(n,s),f=t.useRef(null);t.useEffect(()=>{if(!o)return;let e=f.current;f.current=o.current,e!==f.current&&u(f.current)});let d=l.placementState&&eJ(l.placementState),p=d?.[0],m=d?.[1];return o?null:(0,eO.jsx)(eP.Primitive.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...i,ref:c})},"PopperAnchor")),eU="PopperContent",[eV,eK]=e_(eU),eG=t.forwardRef(ej(function(e,n){var i,a,u,s,h,S,R,C,D,M,N,j,F;let{__scopePopper:_,side:W="bottom",sideOffset:H=0,align:$="center",alignOffset:B=0,arrowPadding:z=0,avoidCollisions:U=!0,collisionBoundary:V=[],collisionPadding:K=0,sticky:G="partial",hideWhenDetached:Y=!1,updatePositionStrategy:X="optimized",onPlaced:q,...Z}=e,J=e$(eU,_),[Q,ee]=t.useState(null),en=(0,ek.useComposedRefs)(n,ee),[er,ei]=t.useState(null),el=eN(er),ea=el?.width??0,es=el?.height??0,ec="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},ef=Array.isArray(V)?V:[V],ed=ef.length>0,ep={padding:ec,boundary:ef.filter(eq),altBoundary:ed},{refs:em,floatingStyles:eh,placement:ev,isPositioned:eA,middlewareData:eL}=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=t.useState(o);ex(p,o)||m(o);let[h,v]=t.useState(null),[y,g]=t.useState(null),b=t.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=t.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),E=l||h,x=a||y,S=t.useRef(null),R=t.useRef(null),C=t.useRef(f),O=null!=s,A=eC(s),L=eC(i),k=eC(c),T=t.useCallback(()=>{var e,t;let o,i,l;if(!S.current||!R.current)return;let a={placement:n,strategy:r,middleware:p};L.current&&(a.platform=L.current),(e=S.current,t=R.current,o=new Map,l={...(i={platform:ey,...a}
1).platform,_c:o},P(e,t,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==k.current};D.current&&!ex(C.current,t)&&(C.current=t,ew.flushSync(()=>{d(t)}))})},[p,n,r,L,k]);eE(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let D=t.useRef(!1);eE(()=>(D.current=!0,()=>{D.current=!1}),[]),eE(()=>{if(E&&(S.current=E),x&&(R.current=x),E&&x){if(A.current)return A.current(E,x,T);T()}},[E,x,T,A,O]);let M=t.useMemo(()=>({reference:S,floating:R,setReference:b,setFloating:w}),[b,w]),N=t.useMemo(()=>({reference:E,floating:x}),[E,x]),I=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!N.floating)return e;let t=eR(N.floating,f.x),n=eR(N.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...eS(N.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,N.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:T,refs:M,elements:N,floatingStyles:I}),[f,T,M,N,I])}({strategy:"fixed",placement:W+("center"!==$?"-"+$:""),whileElementsMounted:ej((...e)=>(function(e,t,n,i){let a;void 0===i&&(i={});let{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=i,p=eo(e),m=u||s?[...p?et(p):[],...et(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,i=null,a=I(e);function u(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),u();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:v}=d;if(c||t(),!h||!v)return;let y={rootMargin:-l(m)+"px "+-l(a.clientWidth-(p+h))+"px "+-l(a.clientHeight-(m+v))+"px "+-l(p)+"px",threshold:o(0,r(1,f))||1},g=!0;function b(t){let r=t[0].intersectionRatio;if(r!==f){if(!g)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||eg(d,e.getBoundingClientRect())||s(),g=!1}try{i=new IntersectionObserver(b,{...y,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(b,y)}i.observe(e)}(!0),u}(p,n):null,v=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let g=d?eu(e):null;return d&&function t(){let r=eu(e);g&&!eg(g,r)&&n(),g=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(a)}})(...e,{animationFrame:"always"===X}),"whileElementsMounted"),elements:{reference:J.anchor},middleware:[{...{name:"offset",options:a=i={mainAxis:H+es,alignmentAxis:B},async fn(e){var t,n;let{x:r,y:o,placement:i,middlewareData:l}=e,u=await T(e,a);return i===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+u.x,y:o+u.y,data:{...u,placement:i}}}},options:[i,void 0]},U&&{...{name:"shift",options:h=s={mainAxis:!0,crossAxis:!1,limiter:"partial"===G?{...(u=void 0,{options:u={},fn(e){let{x:t,y:n,placement:r,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:a=!0,crossAxis:s=!0}=c(u,e),d={x:t,y:n},m=v(r),h=p(m),y=d[h],g=d[m],b=c(l,e),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(a){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+w.mainAxis,n=o.reference[h]+o.reference[e]-w.mainAxis;y<t?y=t:y>n&&(y=n)}if(s){var E,x;let e="y"===h?"width":"height",t=k.has(f(r)),n=o.reference[m]-o.floating[e]+(t&&(null==(E=i.offset)?void 0:E[m])||0)+(t?0:w.crossAxis),l=o.reference[m]+o.reference[e]+(t?0:(null==(x=i.offset)?void 0:x[m])||0)-(t?w.crossAxis:0);g<n?g=n:g>l&&(g=l)}return{[h]:y,[m]:g}}}),options:[void 0,void 0]}:void 0,...ep},async fn(e){let{x:t,y:n,placement:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=c(h,e),d={x:t,y:n},m=await O(e,s),y=v(f(i)),g=p(y),b=d[g],w=d[y];if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=b+m[e],i=b-m[t];b=o(n,r(b,i))}if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],i=w-m[t];w=o(n,r(w,i))}let E=u.fn({...e,[g]:b,[y]:w});return{...E,data:{x:E.x-t,y:E.y-n,enabled:{[g]:l,[y]:a}}}}},options:[s,void 0]},U&&{...{name:"flip",options:R=S={...ep},async fn(e){var t,n,r,o,i,l,a,u;let s,h,S,{placement:C,middlewareData:P,rects:A,initialPlacement:L,platform:k,elements:T}=e,{mainAxis:D=!0,crossAxis:M=!0,fallbackPlacements:N,fallbackStrategy:I="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:F=!0,..._}=c(R,e);if(null!=(t=P.arrow)&&t.alignmentOffset)return{};let W=f(C),H=v(L),$=f(L)===L,B=await (null==k.isRTL?void 0:k.isRTL(T.floating)),z=N||($||!F?[x(L)]:(s=x(L),[y(L),s,y(s)])),U="none"!==j;!N&&U&&z.push(...(h=d(L),S=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:g;return t?g:b;case"left":case"right":return t?w:E;default:return[]}}(f(L),"start"===j,B),h&&(S=S.map(e=>e+"-"+h),F&&(S=S.concat(S.map(y)))),S));let V=[L,...z],K=await O(e,_),G=[],Y=(null==(n=P.flip)?void 0:n.overflows)||[];
1if(D&&G.push(K[W]),M){let e,t,n,r,o=(l=C,a=A,void 0===(u=B)&&(u=!1),e=d(l),n=m(t=p(v(l))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=x(r)),[r,x(r)]);G.push(K[o[0]],K[o[1]])}if(Y=[...Y,{placement:C,overflows:G}],!G.every(e=>e<=0)){let e=((null==(r=P.flip)?void 0:r.index)||0)+1,t=V[e];if(t&&("alignment"!==M||H===v(t)||Y.every(e=>v(e.placement)!==H||e.overflows[0]>0)))return{data:{index:e,overflows:Y},reset:{placement:t}};let n=null==(o=Y.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(I){case"bestFit":{let e=null==(i=Y.filter(e=>{if(U){let t=v(e.placement);return t===H||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=L}if(C!==n)return{reset:{placement:n}}}return{}}},options:[S,void 0]},{...{name:"size",options:D=C={...ep,apply:ej(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")},async fn(e){var t,n;let i,l,{placement:a,rects:u,platform:s,elements:p}=e,{apply:m=()=>{},...h}=c(D,e),y=await O(e,h),g=f(a),b=d(a),w="y"===v(a),{width:E,height:x}=u.floating;"top"===g||"bottom"===g?(i=g,l=b===(await (null==s.isRTL?void 0:s.isRTL(p.floating))?"start":"end")?"left":"right"):(l=g,i="end"===b?"top":"bottom");let S=x-y.top-y.bottom,R=E-y.left-y.right,C=r(x-y[i],S),P=r(E-y[l],R),A=!e.middlewareData.shift,L=C,k=P;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=R),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(L=S),A&&!b){let e=o(y.left,0),t=o(y.right,0),n=o(y.top,0),r=o(y.bottom,0);w?k=E-2*(0!==e||0!==t?e+t:o(y.left,y.right)):L=x-2*(0!==n||0!==r?n+r:o(y.top,y.bottom))}await m({...e,availableWidth:k,availableHeight:L});let T=await s.getDimensions(p.floating);return E!==T.width||x!==T.height?{reset:{rects:!0}}:{}}},options:[C,void 0]},er&&{...{name:"arrow",options:N=M={element:er,padding:z},fn(e){let{element:t,padding:n}="function"==typeof N?N(e):N;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eb({element:t.current,padding:n}).fn(e):{}:t?eb({element:t,padding:n}).fn(e):{}}},options:[M,void 0]},eZ({arrowWidth:ea,arrowHeight:es}),Y&&{...{name:"hide",options:F=j={strategy:"referenceHidden",...ep,boundary:ed?ep.boundary:void 0},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=c(F,e);switch(n){case"referenceHidden":{let n=A(await O(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:L(n)}}}case"escaped":{let n=A(await O(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:L(n)}}}default:return{}}}},options:[j,void 0]}]}),eT=J.setPlacementState;(0,eM.useLayoutEffect)(()=>(eT(ev),()=>{eT(void 0)}),[ev,eT]);let[eI,eF]=eJ(ev),e_=(0,eD.useCallbackRef)(q);(0,eM.useLayoutEffect)(()=>{eA&&e_?.()},[eA,e_]);let eW=eL.arrow?.x,eH=eL.arrow?.y,eB=eL.arrow?.centerOffset!==0,[ez,eK]=t.useState();return(0,eM.useLayoutEffect)(()=>{Q&&eK(window.getComputedStyle(Q).zIndex)},[Q]),(0,eO.jsx)("div",{ref:em.setFloating,"data-radix-popper-content-wrapper":"",style:{...eh,transform:eA?eh.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ez,"--radix-popper-transform-origin":[eL.transformOrigin?.x,eL.transformOrigin?.y].join(" "),...eL.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eO.jsx)(eV,{scope:_,placedSide:eI,placedAlign:eF,onArrowChange:ei,arrowX:eW,arrowY:eH,shouldHideArrow:eB,children:(0,eO.jsx)(eP.Primitive.div,{"data-side":eI,"data-align":eF,...Z,ref:en,style:{...Z.style,animation:eA?Z.style?.animation:"none"}})})})},"PopperContent")),eY={top:"bottom",right:"left",bottom:"top",left:"right"},eX=t.forwardRef(ej(function(e,t){let{__scopePopper:n,...r}=e,o=eK("PopperArrow",n),i=eY[o.placedSide];return(0,eO.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eO.jsx)(eL,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function eq(e){return null!==e}ej(eq,"isNotNull");var eZ=ej(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,s]=eJ(n),c={start:"0%",center:"50%",end:"100%"}[s],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===u?(p=i?c:`${f}px`,m=`${-a}px`):"top"===u?(p=i?c:`${f}px`,m=`${r.floating.height+a}px`):"right"===u?(p=`${-a}px`,m=i?c:`${d}px`):"left"===u&&(p=`${r.floating.width+a}px`,m=i?c:`${d}px`),{data:{x:p,y:m}}}}),"transformOrigin");function eJ(e){let[t,n="center"]=e.split("-");return[t,n]}ej(eJ,"getSideAndAlignFromPlacement"),e.s(["Anchor",0,ez,"Arrow",0,eX,"Content",0,eG,"Root",0,eB,"createPopperScope",0,eW],79155)},369100,950700,228755,e=>{"use strict";var t=e.i(388320),n=e.i(701099),r=e.i(976173),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function l(e){let n=t.forwardRef((n,o)=>{let{children:i,...l}=n,a=null,u=!1,p=[];
1m(i)&&"function"==typeof g&&(i=g(i._payload)),t.Children.forEach(i,e=>{if(d(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;m(t)&&"function"==typeof g&&(t=g(t._payload)),a=s(e,t),p.push(a?.props?.children)}else p.push(e)}),a?a=t.cloneElement(a,void 0,p):!u&&1===t.Children.count(i)&&t.isValidElement(i)&&(a=i);let h=a?f(a):void 0,b=(0,r.useComposedRefs)(o,h);if(!a){if(i||0===i)throw Error(u?y(e):v(e));return i}let w=c(l,a.props??{});return a.type!==t.Fragment&&(w.ref=o?b:h),t.cloneElement(a,w)});return n.displayName=`${e}.Slot`,n}i(l,"createSlot");var a=Symbol.for("radix.slottable");function u(e){let t=i(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=a,t}i(u,"createSlottable");var s=i((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},"getSlottableElementFromSlottable");function c(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{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}}function f(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function d(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}i(c,"mergeProps"),i(f,"getElementRef"),i(d,"isSlottable");var p=Symbol.for("react.lazy");function m(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===p&&"_payload"in e&&h(e._payload)}function h(e){return"object"==typeof e&&null!==e&&"then"in e}i(m,"isLazyComponent"),i(h,"isPromiseLike");var v=i(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),y=i(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),g=t[" use ".trim().toString()];e.s(["createSlot",0,l,"createSlottable",0,u],950700);var b=e.i(963317),w=Object.defineProperty,E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=l(`Primitive.${n}`),o=t.forwardRef((e,t)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,b.jsx)(o?r:n,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function x(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}function S(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}w(x,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,E,"dispatchDiscreteCustomEvent",0,x],369100),(0,Object.defineProperty)(S,"name",{value:"useCallbackRef",configurable:!0}),e.s(["useCallbackRef",0,S],228755)},888900,e=>{"use strict";var t=e.i(388320),n=e.i(543836),r=e.i(210793),o=e.i(976173),i=e.i(464503),l=e.i(244726),a=e.i(369100),u=e.i(228755),s=e.i(76440),c=e.i(128461),f=e.i(587114),d=Object.defineProperty,p=(e,t)=>d(e,"name",{value:t,configurable:!0}),m=!1;function h(){let[e,n]=t.useState(m);return t.useEffect(()=>{m||(m=!0,n(!0))},[]),e}p(h,"useIsHydrated");var v=t[" useSyncExternalStore ".trim().toString()];function y(){return()=>{}}function g(){return v(y,()=>!0,()=>!1)}p(y,"subscribe"),p(g,"useIsHydratedModern");var b="function"==typeof v?g:h,w=e.i(963317),E=Object.defineProperty,x=(e,t)=>E(e,"name",{value:t,configurable:!0}),S="rovingFocusGroup.onEntryFocus",R={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[P,O,A]=(0,r.createCollection)(C),[L,k]=(0,i.createContextScope)(C,[A]),[T,D]=L(C),M=t.forwardRef(x(function(e,t){return(0,w.jsx)(P.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(P.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(N,{...e,ref:t})})})},"RovingFocusGroup")),N=t.forwardRef(x(function(e,r){let{__scopeRovingFocusGroup:i,orientation:l,loop:f=!1,dir:d,currentTabStopId:p,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:h,onEntryFocus:v,preventScrollOnEntryFocus:y=!1,...g}=e,b=t.useRef(null),E=(0,o.useComposedRefs)(r,b),x=(0,c.useDirection)(d),[P,A]=(0,s.useControllableState)({prop:p,defaultProp:m??null,onChange:h,caller:C}),[L,k]=t.useState(!1),D=(0,u.useCallbackRef)(v),M=O(i),N=t.useRef(!1),[I,j]=t.useState(0);return t.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(S,D),()=>e.removeEventListener(S,D)},[D]),(0,w.jsx)(T,{scope:i,orientation:l,dir:x,loop:f,currentTabStopId:P,onItemFocus:t.useCallback(e=>A(e),[A]),onItemShiftTab:t.useCallback(()=>k(!0),[]),onFocusableItemAdd:t.useCallback(()=>j(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>j(e=>
1e-1),[]),children:(0,w.jsx)(a.Primitive.div,{tabIndex:L||0===I?-1:0,"data-orientation":l,...g,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,n.composeEventHandlers)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(S,R);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);W([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),y)}}N.current=!1}),onBlur:(0,n.composeEventHandlers)(e.onBlur,()=>k(!1))})})},"RovingFocusGroupImpl")),I=t.forwardRef(x(function(e,r){let{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:s,children:c,...d}=e,p=(0,l.useId)(),m=s||p,h=D("RovingFocusGroupItem",o),v=h.currentTabStopId===m,y=O(o),{onFocusableItemAdd:g,onFocusableItemRemove:E,currentTabStopId:x}=h,S=b();return(0,f.useLayoutEffect)(()=>{if(S&&i)return g(),()=>E()},[S,i,g,E]),t.useEffect(()=>{if(!S&&i)return g(),()=>E()},[S,i,g,E]),(0,w.jsx)(P.ItemSlot,{scope:o,id:m,focusable:i,active:u,children:(0,w.jsx)(a.Primitive.span,{tabIndex:v?0:-1,"data-orientation":h.orientation,...d,ref:r,onMouseDown:(0,n.composeEventHandlers)(e.onMouseDown,e=>{i?h.onItemFocus(m):e.preventDefault()}),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>h.onItemFocus(m)),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=_(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=h.loop?H(n,r+1):n.slice(r+1)}setTimeout(()=>W(n))}}),children:"function"==typeof c?c({isCurrentTabStop:v,hasTabStop:null!=x}):c})})},"RovingFocusGroupItem")),j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function F(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function _(e,t,n){let r=F(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return j[r]}function W(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function H(e,t){return e.map((n,r)=>e[(t+r)%e.length])}x(F,"getDirectionAwareKey"),x(_,"getFocusIntent"),x(W,"focusFirst"),x(H,"wrapArray"),e.s(["Item",0,I,"Root",0,M,"createRovingFocusGroupScope",0,k],888900)},76440,e=>{"use strict";var t=e.i(388320),n=e.i(899300),r=e.i(587114),o=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],l=t[" useInsertionEffect ".trim().toString()];function a(e){if("function"==typeof i)return i(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof l?l(()=>{n.current=e}):(0,r.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}o(a,"name",{value:"useEffectEvent",configurable:!0});var u=Object.defineProperty,s=(e,t)=>u(e,"name",{value:t,configurable:!0}),c=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;function f({prop:e,defaultProp:r,onChange:o=s(()=>{},"onChange"),caller:i}){let[l,a,u]=d({defaultProp:r,onChange:o}),c=void 0!==e,m=c?e:l;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} 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.`)}n.current=c},[c,i])}return[m,t.useCallback(t=>{if(c){let n=p(t)?t(e):t;n!==e&&u.current?.(n)}else a(t)},[c,e,a,u])]}function d({defaultProp:e,onChange:n}){let[r,o]=t.useState(e),i=t.useRef(r),l=t.useRef(n);return c(()=>{l.current=n},[n]),t.useEffect(()=>{i.current!==r&&(l.current?.(r),i.current=r)},[r,i]),[r,o,l]}function p(e){return"function"==typeof e}s(f,"useControllableState"),s(d,"useUncontrolledState"),s(p,"isFunction");var m=Symbol("RADIX:SYNC_STATE");s(function(e,r,o,i){let{prop:l,defaultProp:u,onChange:s,caller:c}=r,f=void 0!==l,d=a(s);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==l);t.useEffect(()=>{let t=e.current;if(t!==f){let e=f?"controlled":"uncontrolled";console.warn(`${c} is changing from ${t?"controlled":"uncontrolled"} to ${e}. 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.`)}e.current=f},[f,c])}let p=[{...o,state:u}];i&&p.push(i);let[h,v]=t.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let r=e(t,n);return f&&!Object.is(r.state,t.state)&&d(r.state),r},...p),y=h.state,g=t.useRef(y);t.useEffect(()=>{g.current!==y&&(g.current=y,f||d(y))},[y,g,f]);let b=t.useMemo(()=>void 0!==l?{...h,state:l}:h,[h,l]);return t.useEffect(()=>{f&&!Object.is(l,h.state)&&v({type:m,state:l})},[l,h.state,f]),[b,v]},"useControllableStateReducer"),e.s(["useControllableState",0,f],76440)},587114,e=>{"use strict";var t=e.i(388320),n=globalThis?.document?t.useLayoutEffect:()=>{};
1e.s(["useLayoutEffect",0,n])},264458,(e,t,n)=>{!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var i=arguments[t];i&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var i in e)n.call(e,i)&&e[i]&&(t=o(t,i));return t}(i)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}if(t.exports)r.default=r,t.exports=r;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==r&&e.v(r);else window.classNames=r}()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.