1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,543836,315671,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 u(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(u(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(u,"isFrame"),e.s(["composeEventHandlers",0,o],543836);var s=e.i(299921),l=e.i(899300),c=e.i(44532),a=Object.defineProperty,f=s[" useEffectEvent ".trim().toString()],d=s[" useInsertionEffect ".trim().toString()];function p(e){if("function"==typeof f)return f(e);let t=s.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof d?d(()=>{t.current=e}):(0,c.useLayoutEffect)(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}a(p,"name",{value:"useEffectEvent",configurable:!0});var m=Object.defineProperty,h=(e,t)=>m(e,"name",{value:t,configurable:!0}),v=s[" useInsertionEffect ".trim().toString()]||c.useLayoutEffect;function E({prop:e,defaultProp:t,onChange:n=h(()=>{},"onChange"),caller:r}){let[o,i,u]=y({defaultProp:t,onChange:n}),c=void 0!==e,a=c?e:o;if(l.IS_DEVELOPMENT){let t=s.useRef(void 0!==e);s.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${r} 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=c},[c,r])}return[a,s.useCallback(t=>{if(c){let n=b(t)?t(e):t;n!==e&&u.current?.(n)}else i(t)},[c,e,i,u])]}function y({defaultProp:e,onChange:t}){let[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return v(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function b(e){return"function"==typeof e}h(E,"useControllableState"),h(y,"useUncontrolledState"),h(b,"isFunction");var g=Symbol("RADIX:SYNC_STATE");h(function(e,t,n,r){let{prop:o,defaultProp:i,onChange:u,caller:c}=t,a=void 0!==o,f=p(u);if(l.IS_DEVELOPMENT){let e=s.useRef(void 0!==o);s.useEffect(()=>{let t=e.current;if(t!==a){let e=a?"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=a},[a,c])}let d=[{...n,state:i}];r&&d.push(r);let[m,h]=s.useReducer((t,n)=>{if(n.type===g)return{...t,state:n.state};let r=e(t,n);return a&&!Object.is(r.state,t.state)&&f(r.state),r},...d),v=m.state,E=s.useRef(v);s.useEffect(()=>{E.current!==v&&(E.current=v,a||f(v))},[v,E,a]);let y=s.useMemo(()=>void 0!==o?{...m,state:o}:m,[m,o]);return s.useEffect(()=>{a&&!Object.is(o,m.state)&&h({type:g,state:o})},[o,m.state,a]),[y,h]},"useControllableStateReducer"),e.s(["useControllableState",0,E],315671)},899300,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},166100,e=>{"use strict";var t=e.i(299921),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 u(...e){return t.useCallback(i(...e),e)}r(o,"setRef"),r(i,"composeRefs"),r(u,"useComposedRefs"),e.s(["composeRefs",0,i,"useComposedRefs",0,u])},296113,21738,e=>{"use strict";var t,n=e.i(299921),r=e.i(543836),o=e.i(978238),i=e.i(166100),u=e.i(232253),s=e.i(485989),l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0}),a="dismissableLayer.update",f=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),d=n.forwardRef(c(function(e,l){let{disableOutsidePointerEvents:d=!1,deferPointerDownOutside:p=!1,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:g,onDismiss:w,...C}=e,S=n.useContext(f),[P,R]=n.useState(null),O=P?.ownerDocument??globalThis?.document,[,L]=n.useState({}),D=(0,i.useComposedRefs)(l,R),x=Array.from(S.layers),[N]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),T=N?x.indexOf(N):-1,I=P?x.indexOf(P):-1,M=S.layersWithOutsidePointerEventsDisabled.size>0,j=I>=T,$=n.useRef(!1),A=h(e=>{y?.(e),g?.(e),e.defaultPrevented||w?.()},{ownerDocument:O,deferPointerDownOutside:p,isDeferredPointerDownOutsideRef:$,dismissableSurfaces:S.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...S.branches].some(t=>t.contains(e));return j&&!t},[S.branches,j])}),k=v(e=>{if(p&&$.current)return;let t=e.target;![...S.branches].some(e=>e.contains(t))&&(b?.(e),g?.(e),e.defaultPrevented||w?.())},O),_=!!P&&I===x.length-1,F=(0,u.useCallbackRef)(e=>{"Escape"===e.key&&(m?.(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))});return n.useEffect(()=>{if(_)return O.addEventListener("keydown",F,{capture:!0}),()=>O.removeEventListener("keydown",F,{capture:!0})},[O,_,F]),n.useEffect(()=>{if(P)return d&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(t=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(P)),S.layers.add(P),E(),()=>{d&&(S.layersWithOutsidePointerEventsDisabled.delete(P),0===S.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=t))}},[P,O,d,S]),n.useEffect(()=>()=>{P&&(S.layers.delete(P),S.layersWithOutsidePointerEventsDisabled.delete(P),E())},[P,S]),n.useEffect(()=>{let e=c(()=>L({}),"handleUpdate");return document.addEventListener(a,e),()=>document.removeEventListener(a,e)},[]),(0,s.jsx)(o.Primitive.div,{...C,ref:D,style:{pointerEvents:M?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,A.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}c(p,"useDismissableLayerSurface");var m=c(()=>!0,"IS_TRUE");function h(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:s,shouldHandlePointerDownOutside:l=m}=t,a=(0,u.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&&[...s].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&h.current()},0)}function u(e){d.current&&p.current.set(e.type,!1)}c(e,"resetOutsideInteraction"),c(t,"isOutsideInteractionIntercepted"),
1c(n,"handleInteractionCapture"),c(u,"handleInteractionBubble");let m=c(n=>{if(n.target&&!f.current){let u=function(){r.removeEventListener("click",h.current);let n=t();e(),n||y("dismissableLayer.pointerDownOutside",a,s,{discrete:!0})};if(c(u,"handleAndDispatchPointerDownOutsideEvent"),!l(n.target)){r.removeEventListener("click",h.current),e(),f.current=!1;return}let s={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=u,r.addEventListener("click",h.current,{once:!0})):u()}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,u);let E=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(E),r.removeEventListener("pointerdown",m),r.removeEventListener("click",h.current),v))r.removeEventListener(e,n,!0),r.removeEventListener(e,u)}},[r,a,o,i,s,l]),{onPointerDownCapture:c(()=>f.current=!0,"onPointerDownCapture")}}function v(e,t=globalThis?.document){let r=(0,u.useCallbackRef)(e),o=n.useRef(!1);return n.useEffect(()=>{let e=c(e=>{e.target&&!o.current&&y("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:c(()=>o.current=!0,"onFocusCapture"),onBlurCapture:c(()=>o.current=!1,"onBlurCapture")}}function E(){let e=new CustomEvent(a);document.dispatchEvent(e)}function y(e,t,n,{discrete:r}){let i=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.dispatchDiscreteCustomEvent)(i,u):i.dispatchEvent(u)}c(h,"usePointerDownOutside"),c(v,"useFocusOutside"),c(E,"dispatchUpdate"),c(y,"handleAndDispatchCustomEvent"),e.s(["DismissableLayer",0,d,"useDismissableLayerSurface",0,p],296113);var b=e.i(995124),g=e.i(44532),w=Object.defineProperty,C=n.forwardRef(w(function(e,t){let{container:r,...i}=e,[u,l]=n.useState(!1);(0,g.useLayoutEffect)(()=>l(!0),[]);let c=r||u&&globalThis?.document?.body;return c?b.createPortal((0,s.jsx)(o.Primitive.div,{...i,ref:t}),c):null},"name",{value:"Portal",configurable:!0}));e.s(["Portal",0,C],21738)},432567,e=>{"use strict";var t=e.i(299921),n=e.i(44532),r=Object.defineProperty,o=t[" useId ".trim().toString()]||(()=>void 0),i=0;function u(e){let[r,u]=t.useState(o());return(0,n.useLayoutEffect)(()=>{e||u(e=>e??String(i++))},[e]),e||(r?`radix-${r}`:"")}r(u,"name",{value:"useId",configurable:!0}),e.s(["useId",0,u])},997611,e=>{"use strict";var t=e.i(299921),n=e.i(44532),r=Object.defineProperty,o=(e,t)=>r(e,"name",{value:t,configurable:!0});function i(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}o(i,"useStateMachine");var u=o(e=>{let{present:n,children:r}=e,o=s(n),i="function"==typeof r?r({present:o.isPresent}):t.Children.only(r),u=c(o.ref,f(i));return"function"==typeof r||o.isPresent?t.cloneElement(i,{ref:u}):null},"Presence");function s(e){let[r,u]=t.useState(),s=t.useRef(null),l=t.useRef(e),c=t.useRef("none"),f=t.useRef(void 0),[d,p]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===d?(c.current=f.current??a(s.current),f.current=void 0):c.current="none"},[d]),(0,n.useLayoutEffect)(()=>{let t=s.current,n=l.current;if(n!==e){let r=c.current,o=a(t);e?(f.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),l.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=o(n=>{let o=a(s.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(p("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"),i=o(e=>{e.target===r&&(c.current=a(s.current))},"handleAnimationStart");return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);s.current=t,f.current=a(t)}else s.current=null;u(e)},[])}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...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=l(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():l(t[e],null)}}},[])}function a(e){return e?.animationName||"none"}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}o(s,"usePresence"),o(l,"setRef"),o(c,"useStableComposedRefs"),o(a,"getAnimationName"),o(f,"getElementRef"),e.s(["Presence",0,u])},978238,617739,e=>{"use strict";var t=e.i(299921),n=e.i(995124),r=e.i(166100),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function u(e){let n=t.forwardRef((n,o)=>{let{children:i,...u}=n,s=null,l=!1,c=[];
1v(i)&&"function"==typeof g&&(i=g(i._payload)),t.Children.forEach(i,e=>{if(m(e)){l=!0;let t="child"in e.props?e.props.child:e.props.children;v(t)&&"function"==typeof g&&(t=g(t._payload)),s=f(e,t),c.push(s?.props?.children)}else c.push(e)}),s?s=t.cloneElement(s,void 0,c):!l&&1===t.Children.count(i)&&t.isValidElement(i)&&(s=i);let a=s?p(s):void 0,h=(0,r.useComposedRefs)(o,a);if(!s){if(i||0===i)throw Error(l?b(e):y(e));return i}let E=d(u,s.props??{});return s.type!==t.Fragment&&(E.ref=o?h:a),t.cloneElement(s,E)});return n.displayName=`${e}.Slot`,n}i(u,"createSlot");var s=u("Slot"),l=Symbol.for("radix.slottable");function c(e){let t=i(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=l,t}i(c,"createSlottable");var a=c("Slottable"),f=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 d(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 p(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 m(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}i(d,"mergeProps"),i(p,"getElementRef"),i(m,"isSlottable");var h=Symbol.for("react.lazy");function v(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===h&&"_payload"in e&&E(e._payload)}function E(e){return"object"==typeof e&&null!==e&&"then"in e}i(v,"isLazyComponent"),i(E,"isPromiseLike");var y=i(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),b=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(["Root",0,s,"Slot",0,s,"Slottable",0,a,"createSlot",0,u,"createSlottable",0,c],617739);var w=e.i(485989),C=Object.defineProperty,S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=u(`Primitive.${n}`),o=t.forwardRef((e,t)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,w.jsx)(o?r:n,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function P(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}C(P,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,S,"dispatchDiscreteCustomEvent",0,P],978238)},44532,e=>{"use strict";var t=e.i(299921),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},982635,e=>{"use strict";var t=e.i(485989),n=e.i(299921),r=e.i(850902),o=e.i(526895),i=e.i(116986),u=e.i(833515),s=e.i(920479),l=n,c=e.i(946266);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,s.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,s.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,s.isHTMLElement)(e)&&e.offsetHeight||0,o=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(o.height),i.width=parseFloat(o.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top,i.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:r,anchorX:o,anchorY:i,root:u,pop:s}){let p=(0,l.useId)(),m=(0,l.useRef)(null),h=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:v}=(0,l.useContext)(c.MotionConfigContext),E=function(...e){return n.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(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():a(e[t],null)}}}}(...e),e)}(m,!1!==s?e.props?.ref??e?.ref:void 0);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:l,right:c,bottom:a,direction:f}=h.current;if(r||!1===s||!m.current||!e||!t)return;let d="rtl"===f,E="left"===o?d?`right: ${c}`:`left: ${l}`:d?`left: ${l}`:`right: ${c}`,y="bottom"===i?`bottom: ${a}`:`top: ${n}`;m.current.dataset.motionPopId=p;let b=document.createElement("style");v&&(b.nonce=v);let g=u??document.head;return g.appendChild(b),b.sheet&&b.sheet.insertRule(` 2 [data-motion-pop-id="${p}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${E}px !important; 7 ${y}px !important; 8 } 9 `),()=>{m.current?.removeAttribute("data-motion-pop-id"),g.contains(b)&&g.removeChild(b)}},[r]),(0,t.jsx)(f,{isPresent:r,childRef:m,sizeRef:h,pop:s,children:!1===s?e:l.cloneElement(e,{ref:E})})}let p=({children:e,initial:r,isPresent:s,onExitComplete:l,custom:c,presenceAffectsLayout:a,mode:f,anchorX:p,anchorY:h,root:v})=>{let E=(0,o.useConstant)(m),y=(0,n.useId)(),b=(0,n.useRef)(s),g=(0,n.useRef)(l);(0,i.useIsomorphicLayoutEffect)(()=>{b.current=s,g.current=l});let w=!0,C=(0,n.useMemo)(()=>(w=!1,{id:y,initial:r,isPresent:s,custom:c,onExitComplete:e=>
9{for(let t of(E.set(e,!0),E.values()))if(!t)return;l&&l()},register:e=>(E.set(e,!1),()=>{E.delete(e),b.current||E.size||g.current?.()})}),[s,E,l]);return a&&w&&(C={...C}),(0,n.useMemo)(()=>{E.forEach((e,t)=>E.set(t,!1))},[s]),n.useEffect(()=>{s||E.size||!l||l()},[s]),e=(0,t.jsx)(d,{pop:"popLayout"===f,isPresent:s,anchorX:p,anchorY:h,root:v,children:e}),(0,t.jsx)(u.PresenceContext.Provider,{value:C,children:e})};function m(){return new Map}var h=e.i(587129);let v=e=>e.key||"";function E(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:u,initial:s=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:a="sync",propagate:f=!1,anchorX:d="left",anchorY:m="top",root:y})=>{let[b,g]=(0,h.usePresence)(f),w=(0,n.useMemo)(()=>E(e),[e]),C=f&&!b?[]:w.map(v),S=(0,n.useRef)(!0),P=(0,n.useRef)(w),R=(0,o.useConstant)(()=>new Map),O=(0,n.useRef)(new Set),[L,D]=(0,n.useState)(w),[x,N]=(0,n.useState)(w);(0,i.useIsomorphicLayoutEffect)(()=>{S.current=!1,P.current=w;for(let e=0;e<x.length;e++){let t=v(x[e]);C.includes(t)?(R.delete(t),O.current.delete(t)):!0!==R.get(t)&&R.set(t,!1)}},[x,C.length,C.join("-")]);let T=[];if(w!==L){let e=[...w];for(let t=0;t<x.length;t++){let n=x[t],r=v(n);C.includes(r)||(e.splice(t,0,n),T.push(n))}return"wait"===a&&T.length&&(e=T),N(E(e)),D(w),null}let{forceRender:I}=(0,n.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:x.map(e=>{let n=v(e),r=(!f||!!b)&&(w===x||C.includes(n));return(0,t.jsx)(p,{isPresent:r,initial:(!S.current||!!s)&&void 0,custom:u,presenceAffectsLayout:c,mode:a,root:y,onExitComplete:r?void 0:()=>{if(O.current.has(n)||!R.has(n))return;O.current.add(n),R.set(n,!0);let e=!0;R.forEach(t=>{t||(e=!1)}),e&&(I?.(),N(P.current),f&&g?.(),l&&l())},anchorX:d,anchorY:m,children:e},n)})})}],982635)},613491,e=>{"use strict";var t=e.i(299921);e.s(["useControlledState",0,function(e){let{value:n,defaultValue:r,onChange:o}=e,[i,u]=t.useState(void 0!==n?n:r);return t.useEffect(()=>{void 0!==n&&u(n)},[n]),[i,t.useCallback((e,...t)=>{u(e),o?.(e,...t)},[o])]}])},205711,e=>{"use strict";var t=e.i(485989),n=e.i(108880),r=e.i(299921);e.s(["getStrictContext",0,function(e){let o=r.createContext(void 0);return[e=>{let r,i=(0,n.c)(3),{value:u,children:s}=e;return i[0]!==s||i[1]!==u?(r=(0,t.jsx)(o.Provider,{value:u,children:s}),i[0]=s,i[1]=u,i[2]=r):r=i[2],r},()=>{let t=r.useContext(o);if(void 0===t)throw Error(`useContext must be used within ${e??"a Provider"}`);return t}]}])}]);
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.