PageSourceSearch

https://libscie.org/_next/static/immutable/chunks/1ro_riwwfy4z1.js

js libscie.org collected 2026-10-03 21:38:59 UTC 38,180 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,981140,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}])},820783,e=>{"use strict";var t=e.i(271645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(...e){return t=>{let r=!1,i=e.map(e=>{let i=n(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():n(e[t],null)}}}}e.s(["composeRefs",0,r,"useComposedRefs",0,function(...e){return t.useCallback(r(...e),e)}])},30030,e=>{"use strict";var t=e.i(271645),n=e.i(843476);e.s(["createContext",0,function(e,r){let i=t.createContext(r),o=e=>{let{children:r,...o}=e,l=t.useMemo(()=>o,Object.values(o));return(0,n.jsx)(i.Provider,{value:l,children:r})};return o.displayName=e+"Provider",[o,function(n){let o=t.useContext(i);if(o)return o;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,r=[]){let i=[],o=()=>{let n=i.map(e=>t.createContext(e));return function(r){let i=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(r,o){let l=t.createContext(o),s=i.length;i=[...i,o];let a=r=>{let{scope:i,children:o,...a}=r,u=i?.[e]?.[s]||l,c=t.useMemo(()=>a,Object.values(a));return(0,n.jsx)(u.Provider,{value:c,children:o})};return a.displayName=r+"Provider",[a,function(n,i){let a=i?.[e]?.[s]||l,u=t.useContext(a);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${r}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}(o,...r)]}])},726330,e=>{"use strict";var t,n=e.i(271645),r=e.i(981140),i=e.i(248425),o=e.i(820783),l=e.i(30207),s=e.i(843476),a="dismissableLayer.update",u=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),c=n.forwardRef((e,c)=>{let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:y,onDismiss:v,...w}=e,x=n.useContext(u),[b,E]=n.useState(null),R=b?.ownerDocument??globalThis?.document,[,C]=n.useState({}),P=(0,o.useComposedRefs)(c,e=>E(e)),A=Array.from(x.layers),[S]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),L=A.indexOf(S),O=b?A.indexOf(b):-1,T=x.layersWithOutsidePointerEventsDisabled.size>0,N=O>=L,D=function(e,t=globalThis?.document){let r=(0,l.useCallbackRef)(e),i=n.useRef(!1),o=n.useRef(()=>{});return n.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let n=function(){d("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);i.current=!1},n=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));N&&!n&&(h?.(e),y?.(e),e.defaultPrevented||v?.())},R),M=function(e,t=globalThis?.document){let r=(0,l.useCallbackRef)(e),i=n.useRef(!1);return n.useEffect(()=>{let e=e=>{e.target&&!i.current&&d("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(g?.(e),y?.(e),e.defaultPrevented||v?.())},R);return!function(e,t=globalThis?.document){let r=(0,l.useCallbackRef)(e);n.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{O===x.layers.size-1&&(m?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},R),n.useEffect(()=>{if(b)return p&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(t=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),f(),()=>{p&&1===x.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=t)}},[b,R,p,x]),n.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),f())},[b,x]),n.useEffect(()=>{let e=()=>C({});return document.addEventListener(a,e),()=>document.removeEventListener(a,e)},[]),(0,s.jsx)(i.Primitive.div,{...w,ref:P,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,D.onPointerDownCapture)})});function f(){let e=new CustomEvent(a);document.dispatchEvent(e)}function d(e,t,n,{discrete:r}){let o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,i.dispatchDiscreteCustomEvent)(o,l):o.dispatchEvent(l)}c.displayName="DismissableLayer",n.forwardRef((e,t)=>
1{let r=n.useContext(u),l=n.useRef(null),a=(0,o.useComposedRefs)(t,l);return n.useEffect(()=>{let e=l.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,s.jsx)(i.Primitive.div,{...e,ref:a})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,c],726330)},610772,e=>{"use strict";var t=e.i(271645),n=e.i(934620),r=t[" useId ".trim().toString()]||(()=>void 0),i=0;e.s(["useId",0,function(e){let[o,l]=t.useState(r());return(0,n.useLayoutEffect)(()=>{e||l(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}])},853660,635804,e=>{"use strict";var t=e.i(271645);let n=["top","right","bottom","left"],r=Math.min,i=Math.max,o=Math.round,l=Math.floor,s=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},u={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"}function h(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>u[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function v(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function w(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function x(e,t,n){let r,{reference:i,floating:o}=e,l=h(t),s=p(h(t)),a=m(s),u=f(t),c="y"===l,g=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,v=i[a]/2-o[a]/2;switch(u){case"top":r={x:g,y:i.y-o.height};break;case"bottom":r={x:g,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:y};break;case"left":r={x:i.x-o.width,y:y};break;default:r={x:i.x,y:i.y}}switch(d(t)){case"start":r[s]-=v*(n&&c?-1:1);break;case"end":r[s]+=v*(n&&c?-1:1)}return r}let b=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=o.filter(Boolean),a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=x(u,r,a),d=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:o,fn:h}=s[n],{x:g,y:y,data:v,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,f=null!=y?y:f,p={...p,[o]:{...p[o],...v}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=x(u,d,a)),n=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function E(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=c(t,e),h=v(m),g=s[p?"floating"===d?"reference":"floating":d],y=w(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:a})),x="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),E=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},R=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:b,strategy:a}):x);return{top:(y.top-R.top+h.top)/E.y,bottom:(R.bottom-y.bottom+h.bottom)/E.y,left:(y.left-R.left+h.left)/E.x,right:(R.right-y.right+h.right)/E.x}}function R(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return n.some(t=>e[t]>=0)}async function P(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=f(n),s=d(n),a="y"===h(n),u=["left","top"].includes(l)?-1:1,p=o&&a?-1:1,m=c(t,e),{mainAxis:g,crossAxis:y,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}
1:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&"number"==typeof v&&(y="end"===s?-1*v:v),a?{x:y*p,y:g*u}:{x:g*u,y:y*p}}function A(){return"u">typeof window}function S(e){return T(e)?(e.nodeName||"").toLowerCase():"#document"}function L(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){var t;return null==(t=(T(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function T(e){return!!A()&&(e instanceof Node||e instanceof L(e).Node)}function N(e){return!!A()&&(e instanceof Element||e instanceof L(e).Element)}function D(e){return!!A()&&(e instanceof HTMLElement||e instanceof L(e).HTMLElement)}function M(e){return!(!A()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof L(e).ShadowRoot)}function k(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=H(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function $(e){let t=W(),n=N(e)?H(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function W(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function F(e){return["html","body","#document"].includes(S(e))}function H(e){return L(e).getComputedStyle(e)}function I(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _(e){if("html"===S(e))return e;let t=e.assignedSlot||e.parentNode||M(e)&&e.host||O(e);return M(t)?t.host:t}function B(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=_(t);return F(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&k(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=L(i);if(o){let e=z(l);return t.concat(l,l.visualViewport||[],k(i)?i:[],e&&n?B(e):[])}return t.concat(i,B(i,[],n))}function z(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V(e){let t=H(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=D(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=o(n)!==l||o(r)!==s;return a&&(n=l,r=s),{width:n,height:r,$:a}}function U(e){return N(e)?e:e.contextElement}function Y(e){let t=U(e);if(!D(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=V(t),a=(l?o(n.width):n.width)/r,u=(l?o(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let X=s(0);function q(e){let t=L(e);return W()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function K(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=U(e),a=s(1);t&&(r?N(r)&&(a=Y(r)):a=Y(e));let u=(void 0===(i=n)&&(i=!1),r&&(!i||r===L(l))&&i)?q(l):s(0),c=(o.left+u.x)/a.x,f=(o.top+u.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=L(l),t=r&&N(r)?L(r):r,n=e,i=z(n);for(;i&&r&&t!==n;){let e=Y(i),t=i.getBoundingClientRect(),r=H(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=o,f+=l,i=z(n=L(i))}}return w({width:d,height:p,x:c,y:f})}function Z(e,t){let n=I(e).scrollLeft;return t?t.left+n:K(O(e)).left+n}function G(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Z(e,r)),y:r.top+t.scrollTop}}function J(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=L(e),r=O(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;let e=W();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:o,height:l,x:s,y:a}}(e,n);else if("document"===t){let t,n,l,s,a,u,c;r=O(e),t=O(r),n=I(r),l=r.ownerDocument.body,s=i(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),a=i(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),u=-n.scrollLeft+Z(r),c=-n.scrollTop,"rtl"===H(l).direction&&(u+=i(t.clientWidth,l.clientWidth)-s),o={width:s,height:a,x:u,y:c}}else if(N(t)){let e,r,i,l,a,u;r=(e=K(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=
1D(t)?Y(t):s(1),a=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:a,height:u,x:i*l.x,y:r*l.y}}else{let n=q(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return w(o)}function Q(e){return"static"===H(e).position}function ee(e,t){if(!D(e)||"fixed"===H(e).position)return null;if(t)return t(e);let n=e.offsetParent;return O(e)===n&&(n=n.ownerDocument.body),n}function et(e,t){let n=L(e);if(j(e))return n;if(!D(e)){let t=_(e);for(;t&&!F(t);){if(N(t)&&!Q(t))return t;t=_(t)}return n}let r=ee(e,t);for(;r&&["table","td","th"].includes(S(r))&&Q(r);)r=ee(r,t);return r&&F(r)&&Q(r)&&!$(r)?n:r||function(e){let t=_(e);for(;D(t)&&!F(t);){if($(t))return t;if(j(t))break;t=_(t)}return null}(e)||n}let en=async function(e){let t=this.getOffsetParent||et,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=D(t),i=O(t),o="fixed"===n,l=K(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!o)if(("body"!==S(t)||k(i))&&(a=I(t)),r){let e=K(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=Z(i));o&&!r&&i&&(u.x=Z(i));let c=!i||r||o?s(0):G(i,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.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}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=O(r),a=!!t&&j(t.floating);if(r===l||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),f=s(0),d=D(r);if((d||!d&&!o)&&(("body"!==S(r)||k(l))&&(u=I(r)),D(r))){let e=K(r);c=Y(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||o?s(0):G(l,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-u.scrollTop*c.y+f.y+p.y}},getDocumentElement:O,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,s=[..."clippingAncestors"===n?j(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=B(e,[],!1).filter(e=>N(e)&&"body"!==S(e)),i=null,o="fixed"===H(e).position,l=o?_(e):e;for(;N(l)&&!F(l);){let t=H(l),n=$(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||k(l)&&!n&&function e(t,n){let r=_(t);return!(r===n||!N(r)||F(r))&&("fixed"===H(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=_(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=s[0],u=s.reduce((e,n)=>{let o=J(t,n,l);return e.top=i(o.top,e.top),e.right=r(o.right,e.right),e.bottom=r(o.bottom,e.bottom),e.left=i(o.left,e.left),e},J(t,a,l));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=V(e);return{width:t,height:n}},getScale:Y,isElement:N,isRTL:function(e){return"rtl"===H(e).direction}};function ei(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eo=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:s,platform:a,elements:u,middlewareData:f}=t,{element:g,padding:y=0}=c(e,t)||{};if(null==g)return{};let w=v(y),x={x:n,y:o},b=p(h(l)),E=m(b),R=await a.getDimensions(g),C="y"===b,P=C?"clientHeight":"clientWidth",A=s.reference[E]+s.reference[b]-x[b]-s.floating[E],S=x[b]-s.reference[b],L=await (null==a.getOffsetParent?void 0:a.getOffsetParent(g)),O=L?L[P]:0;O&&await (null==a.isElement?void 0:a.isElement(L))||(O=u.floating[P]||s.floating[E]);let T=O/2-R[E]/2-1,N=r(w[C?"top":"left"],T),D=r(w[C?"bottom":"right"],T),M=O-R[E]-D,k=O/2-R[E]/2+(A/2-S/2),j=i(N,r(k,M)),$=!f.arrow&&null!=d(l)&&k!==j&&s.reference[E]/2-(k<N?N:D)-R[E]/2<0,W=$?k<N?k-N:k-M:0;return{[b]:x[b]+W,data:{[b]:j,centerOffset:k-j-W,...$&&{alignmentOffset:W}},reset:$}}});var el=e.i(174080),es="u">typeof document?t.useLayoutEffect:t.useEffect;function ea(e,t){let n,r,i;if(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(!ea(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eu(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=eu(e);return Math.round(t*n)/n}function ef(e){let n=t.useRef(e);return es(()=>{n.current=e}),n}var ed=e.i(248425),ep=e.i(843476),em=t.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ep.jsx)(ed.Primitive.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ep.jsx)("polygon",{points:"0,0 30,0 15,10"})})});em.displayName="Arrow";var eh=e.i(820783),eg=e.i(30030),ey=e.i(30207),ev=e.i(934620);function ew(e){let[n,r]=t.useState(void 0);return(0,ev.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),n}e.s(["useSize",0,ew],635804);var ex="Popper",[eb,eE]=(0,eg.createContextScope)(ex),[eR,eC]=eb(ex),eP=e=>{let{__scopePopper:n,children:r}=e,[i,o]=t.useState(null);return(0,ep.jsx)(eR,{scope:n,anchor:i,onAnchorChange:o,children:r})};eP.displayName=ex;var eA="PopperAnchor",eS=t.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:i,...o}=e,l=eC(eA,r),s=t.useRef(null),a=(0,eh.useComposedRefs)(n,s),u=t.useRef(null);return t.useEffect(()=>{let e=u.current;u.current=i?.current||s.current,e!==u.current&&l.onAnchorChange(u.current)}),i?null:(0,ep.jsx)(ed.Primitive.div,{...o,ref:a})});eS.displayName=eA;var eL="PopperContent",[eO,eT]=eb(eL),eN=t.forwardRef((e,n)=>{var o,s,a,u,v,w,x,A,S,L,T,N,D;let{__scopePopper:M,side:k="bottom",sideOffset:j=0,align:$="center",alignOffset:W=0,arrowPadding:F=0,avoidCollisions:H=!0,collisionBoundary:I=[],collisionPadding:_=0,sticky:z="partial",hideWhenDetached:V=!1,updatePositionStrategy:Y="optimized",onPlaced:X,...q}=e,Z=eC(eL,M),[G,J]=t.useState(null),Q=(0,eh.useComposedRefs)(n,e=>J(e)),[ee,et]=t.useState(null),en=ew(ee),em=en?.width??0,eg=en?.height??0,ex="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},eb=Array.isArray(I)?I:[I],eE=eb.length>0,eR={padding:ex,boundary:eb.filter(ej),altBoundary:eE},{refs:eP,floatingStyles:eA,placement:eS,isPositioned:eT,middlewareData:eN}=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[f,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=t.useState(i);ea(p,i)||m(i);let[h,g]=t.useState(null),[y,v]=t.useState(null),w=t.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=t.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),E=l||h,R=s||y,C=t.useRef(null),P=t.useRef(null),A=t.useRef(f),S=null!=u,L=ef(u),O=ef(o),T=ef(c),N=t.useCallback(()=>{var e,t;let i,o,l;if(!C.current||!P.current)return;let s={placement:n,strategy:r,middleware:p};O.current&&(s.platform=O.current),(e=C.current,t=P.current,i=new Map,l={...(o={platform:er,...s}).platform,_c:i},b(e,t,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==T.current};D.current&&!ea(A.current,t)&&(A.current=t,el.flushSync(()=>{d(t)}))})},[p,n,r,O,T]);es(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let D=t.useRef(!1);es(()=>(D.current=!0,()=>{D.current=!1}),[]),es(()=>{if(E&&(C.current=E),R&&(P.current=R),E&&R){if(L.current)return L.current(E,R,N);N()}},[E,R,N,L,S]);let M=t.useMemo(()=>({reference:C,floating:P,setReference:w,setFloating:x}),[w,x]),k=t.useMemo(()=>({reference:E,floating:R}),[E,R]),j=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!k.floating)return e;let t=ec(k.floating,f.x),n=ec(k.floating,f.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...eu(k.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,k.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:N,refs:M,elements:k,floatingStyles:j}),[f,N,M,k,j])}({strategy:"fixed",placement:k+("center"!==$?"-"+$:""),whileElementsMounted:(...e)=>(function(e,t,n,o){let s;void 0===o&&(o={});let{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=U(e),m=a||u?[...p?B(p):[],...B(t)]:[];
1m.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,o=null,s=O(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function u(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),a();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=d;if(c||t(),!h||!g)return;let y={rootMargin:-l(m)+"px "+-l(s.clientWidth-(p+h))+"px "+-l(s.clientHeight-(m+g))+"px "+-l(p)+"px",threshold:i(0,r(1,f))||1},v=!0;function w(t){let r=t[0].intersectionRatio;if(r!==f){if(!v)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ei(d,e.getBoundingClientRect())||u(),v=!1}try{o=new IntersectionObserver(w,{...y,root:s.ownerDocument})}catch(e){o=new IntersectionObserver(w,y)}o.observe(e)}(!0),a}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let v=d?K(e):null;return d&&function t(){let r=K(e);v&&!ei(v,r)&&n(),v=r,s=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(s)}})(...e,{animationFrame:"always"===Y}),elements:{reference:Z.anchor},middleware:[{...{name:"offset",options:s=o={mainAxis:j+eg,alignmentAxis:W},async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:l}=e,a=await P(e,s);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:o}}}},options:[o,void 0]},H&&{...{name:"shift",options:v=u={mainAxis:!0,crossAxis:!1,limiter:"partial"===z?{...(a=void 0,{options:a={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=c(a,e),d={x:t,y:n},m=h(r),g=p(m),y=d[g],v=d[m],w=c(l,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+x.mainAxis,n=i.reference[g]+i.reference[e]-x.mainAxis;y<t?y=t:y>n&&(y=n)}if(u){var b,E;let e="y"===g?"width":"height",t=["top","left"].includes(f(r)),n=i.reference[m]-i.floating[e]+(t&&(null==(b=o.offset)?void 0:b[m])||0)+(t?0:x.crossAxis),l=i.reference[m]+i.reference[e]+(t?0:(null==(E=o.offset)?void 0:E[m])||0)-(t?x.crossAxis:0);v<n?v=n:v>l&&(v=l)}return{[g]:y,[m]:v}}}),options:[void 0,void 0]}:void 0,...eR},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=c(v,e),d={x:t,y:n},m=await E(e,u),g=h(f(o)),y=p(g),w=d[y],x=d[g];if(l){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+m[e],o=w-m[t];w=i(n,r(w,o))}if(s){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+m[e],o=x-m[t];x=i(n,r(x,o))}let b=a.fn({...e,[y]:w,[g]:x});return{...b,data:{x:b.x-t,y:b.y-n,enabled:{[y]:l,[g]:s}}}}},options:[u,void 0]},H&&{...{name:"flip",options:x=w={...eR},async fn(e){var t,n,r,i,o,l,s,a,u;let v,w,b,{placement:R,middlewareData:C,rects:P,initialPlacement:A,platform:S,elements:L}=e,{mainAxis:O=!0,crossAxis:T=!0,fallbackPlacements:N,fallbackStrategy:D="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:k=!0,...j}=c(x,e);if(null!=(t=C.arrow)&&t.alignmentOffset)return{};let $=f(R),W=h(A),F=f(A)===A,H=await (null==S.isRTL?void 0:S.isRTL(L.floating)),I=N||(F||!k?[y(A)]:(v=y(A),[g(A),v,g(v)])),_="none"!==M;!N&&_&&I.push(...(w=d(A),b=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(A),"start"===M,H),w&&(b=b.map(e=>e+"-"+w),k&&(b=b.concat(b.map(g)))),b));let B=[A,...I],z=await E(e,j),V=[],U=(null==(n=C.flip)?void 0:n.overflows)||[];if(O&&V.push(z[$]),T){let e,t,n,r,i=(s=R,a=P,void 0===(u=H)&&(u=!1),e=d(s),n=m(t=p(h(s))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=y(r)),[r,y(r)]);V.push(z[i[0]],z[i[1]])}if(U=[...U,{placement:R,overflows:V}],!V.every(e=>e<=0)){let e=((null==(r=C.flip)?void 0:r.index)||0)+1,t=B[e];if(t){let n="alignment"===T&&W!==h(t),r=(null==(o=U[0])?void 0:o.overflows[0])>0;
1if(!n||r)return{data:{index:e,overflows:U},reset:{placement:t}}}let n=null==(i=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(D){case"bestFit":{let e=null==(l=U.filter(e=>{if(_){let t=h(e.placement);return t===W||"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:l[0];e&&(n=e);break}case"initialPlacement":n=A}if(R!==n)return{reset:{placement:n}}}return{}}},options:[w,void 0]},{...{name:"size",options:S=A={...eR,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=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",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let o,l,{placement:s,rects:a,platform:u,elements:p}=e,{apply:m=()=>{},...g}=c(S,e),y=await E(e,g),v=f(s),w=d(s),x="y"===h(s),{width:b,height:R}=a.floating;"top"===v||"bottom"===v?(o=v,l=w===(await (null==u.isRTL?void 0:u.isRTL(p.floating))?"start":"end")?"left":"right"):(l=v,o="end"===w?"top":"bottom");let C=R-y.top-y.bottom,P=b-y.left-y.right,A=r(R-y[o],C),L=r(b-y[l],P),O=!e.middlewareData.shift,T=A,N=L;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(N=P),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(T=C),O&&!w){let e=i(y.left,0),t=i(y.right,0),n=i(y.top,0),r=i(y.bottom,0);x?N=b-2*(0!==e||0!==t?e+t:i(y.left,y.right)):T=R-2*(0!==n||0!==r?n+r:i(y.top,y.bottom))}await m({...e,availableWidth:N,availableHeight:T});let D=await u.getDimensions(p.floating);return b!==D.width||R!==D.height?{reset:{rects:!0}}:{}}},options:[A,void 0]},ee&&{...{name:"arrow",options:T=L={element:ee,padding:F},fn(e){let{element:t,padding:n}="function"==typeof T?T(e):T;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eo({element:t.current,padding:n}).fn(e):{}:t?eo({element:t,padding:n}).fn(e):{}}},options:[L,void 0]},e$({arrowWidth:em,arrowHeight:eg}),V&&{...{name:"hide",options:D=N={strategy:"referenceHidden",...eR},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=c(D,e);switch(n){case"referenceHidden":{let n=R(await E(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:C(n)}}}case"escaped":{let n=R(await E(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:C(n)}}}default:return{}}}},options:[N,void 0]}]}),[eD,eM]=eW(eS),ek=(0,ey.useCallbackRef)(X);(0,ev.useLayoutEffect)(()=>{eT&&ek?.()},[eT,ek]);let eF=eN.arrow?.x,eH=eN.arrow?.y,eI=eN.arrow?.centerOffset!==0,[e_,eB]=t.useState();return(0,ev.useLayoutEffect)(()=>{G&&eB(window.getComputedStyle(G).zIndex)},[G]),(0,ep.jsx)("div",{ref:eP.setFloating,"data-radix-popper-content-wrapper":"",style:{...eA,transform:eT?eA.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:e_,"--radix-popper-transform-origin":[eN.transformOrigin?.x,eN.transformOrigin?.y].join(" "),...eN.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ep.jsx)(eO,{scope:M,placedSide:eD,onArrowChange:et,arrowX:eF,arrowY:eH,shouldHideArrow:eI,children:(0,ep.jsx)(ed.Primitive.div,{"data-side":eD,"data-align":eM,...q,ref:Q,style:{...q.style,animation:eT?void 0:"none"}})})})});eN.displayName=eL;var eD="PopperArrow",eM={top:"bottom",right:"left",bottom:"top",left:"right"},ek=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eT(eD,n),o=eM[i.placedSide];return(0,ep.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ep.jsx)(em,{...r,ref:t,style:{...r.style,display:"block"}})})});function ej(e){return null!==e}ek.displayName=eD;var e$=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[a,u]=eW(n),c={start:"0%",center:"50%",end:"100%"}[u],f=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+s/2,p="",m="";return"bottom"===a?(p=o?c:`${f}px`,m=`${-s}px`):"top"===a?(p=o?c:`${f}px`,m=`${r.floating.height+s}px`):"right"===a?(p=`${-s}px`,m=o?c:`${d}px`):"left"===a&&(p=`${r.floating.width+s}px`,m=o?c:`${d}px`),{data:{x:p,y:m}}}});function eW(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,eS,"Arrow",0,ek,"Content",0,eN,"Root",0,eP,"createPopperScope",0,eE],853660)},774606,296626,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(248425),i=e.i(934620),o=e.i(843476),l=t.forwardRef((e,l)=>{let{container:s,...a}=e,[u,c]=t.useState(!1);(0,i.useLayoutEffect)(()=>c(!0),[]);let f=s||u&&globalThis?.document?.body;return f?n.default.createPortal((0,o.jsx)(r.Primitive.div,{...a,ref:l}),f):null});l.displayName="Portal",e.s(["Portal",0,l],774606);var s=e.i(820783),a=e=>{var n;let r,o,{present:l,children:a}=e,c=function(e){var n,r;let[o,l]=t.useState(),s=t.useRef(null),a=t.useRef(e),c=t.useRef("none"),[f,d]=(n=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>
1r[e][t]??e,n));return t.useEffect(()=>{let e=u(s.current);c.current="mounted"===f?e:"none"},[f]),(0,i.useLayoutEffect)(()=>{let t=s.current,n=a.current;if(n!==e){let r=c.current,i=u(t);e?d("MOUNT"):"none"===i||t?.display==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),a.current=e}},[e,d]),(0,i.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=n=>{let r=u(s.current).includes(CSS.escape(n.animationName));if(n.target===o&&r&&(d("ANIMATION_END"),!a.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(c.current=u(s.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(l),f="function"==typeof a?a({present:c.isPresent}):t.Children.only(a),d=(0,s.useComposedRefs)(c.ref,(n=f,(o=(r=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?n.ref:(o=(r=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof a||c.isPresent?t.cloneElement(f,{ref:d}):null};function u(e){return e?.animationName||"none"}a.displayName="Presence",e.s(["Presence",0,a],296626)},248425,991918,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(820783),i=e.i(843476);function o(e){var n;let o,l=(n=e,(o=t.forwardRef((e,n)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var l;let e,s,a=(l=i,(s=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(s=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,i.props);return i.type!==t.Fragment&&(u.ref=n?(0,r.composeRefs)(n,a):a),t.cloneElement(i,u)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,o),a=t.forwardRef((e,n)=>{let{children:r,...o}=e,a=t.Children.toArray(r),u=a.find(s);if(u){let e=u.props.children,r=a.map(n=>n!==u?n:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(l,{...o,ref:n,children:t.isValidElement(e)?t.cloneElement(e,void 0,r):null})}return(0,i.jsx)(l,{...o,ref:n,children:r})});return a.displayName=`${e}.Slot`,a}var l=Symbol("radix.slottable");function s(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}e.s(["createSlot",0,o,"createSlottable",0,function(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=l,t}],991918);var a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let r=o(`Primitive.${n}`),l=t.forwardRef((e,t)=>{let{asChild:o,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:n,{...l,ref:t})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{});e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,function(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}],248425)},30207,e=>{"use strict";var t=e.i(271645);e.s(["useCallbackRef",0,function(e){let n=t.useRef(e);return t.useEffect(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}])},369340,683986,e=>{"use strict";var t=e.i(271645),n=e.i(934620),r=t[" useEffectEvent ".trim().toString()],i=t[" useInsertionEffect ".trim().toString()];e.s(["useEffectEvent",0,function(e){if("function"==typeof r)return r(e);let o=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof i?i(()=>{o.current=e}):(0,n.useLayoutEffect)(()=>{o.current=e}),t.useMemo(()=>(...e)=>o.current?.(...e),[])}],683986);var o=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){let[l,s,a]=function({defaultProp:e,onChange:n}){let[r,i]=t.useState(e),l=t.useRef(r),s=t.useRef(n);return o(()=>{s.current=n},[n]),t.useEffect(()=>{l.current!==r&&(s.current?.(r),l.current=r)},[r,l]),[r,i,s]}({defaultProp:n,onChange:r}),u=void 0!==e,c=u?e:l;{let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==u){let t=u?"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=u},[u,i])}return[c,t.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else s(t)},[u,e,s,a])]}],369340)},934620,e=>{"use strict";var t=e.i(271645),n=globalThis?.document?t.useLayoutEffect:()=>{};
1e.s(["useLayoutEffect",0,n])}]);

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.