PageSourceSearch

https://localized-blog-basehub.vercel.app/_next/static/chunks/338-428cf161b4ea9fe3.js

js localized-blog-basehub.vercel.app collected 2026-10-03 07:15:03 UTC 72,685 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[338],{4837:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(4094);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:u,className:c="",children:s,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...l,width:o,height:o,stroke:n,strokeWidth:u?24*Number(a)/Number(o):a,className:i("lucide",c),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:u,...c}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:i("lucide-".concat(o(e)),u),...c})});return n.displayName="".concat(e),n}},4464:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=(0,n(4837).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},463:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=(0,n(4837).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},1896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});let r=(0,n(4837).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},6478:(e,t,n)=>{"use strict";var r=n(6992);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},1034:e=>{e.exports={style:{fontFamily:"'GeistMono', ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace"},className:"__className_8a4d12",variable:"__variable_8a4d12"}},6375:e=>{e.exports={style:{fontFamily:"'GeistSans', 'GeistSans Fallback'"},className:"__className_ac79ff",variable:"__variable_ac79ff"}},6010:(e,t,n)=>{"use strict";n.d(t,{VY:()=>n3,ZA:()=>n9,JO:()=>n6,ck:()=>re,wU:()=>rn,eT:()=>rt,__:()=>n7,h_:()=>n5,fC:()=>n1,$G:()=>ro,u_:()=>rr,Z0:()=>ri,xz:()=>n2,B4:()=>n4,l_:()=>n8});var r,o,i,l=n(4094),a=n.t(l,2),u=n(294);function c(e,[t,n]){return Math.min(n,Math.max(t,e))}function s(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var d=n(5864);function f(e,t=[]){let n=[],r=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=l.createContext(r),i=n.length;function a(t){let{scope:n,children:r,...a}=t,u=n?.[e][i]||o,c=l.useMemo(()=>a,Object.values(a));return(0,d.jsx)(u.Provider,{value:c,children:r})}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e][i]||o,c=l.useContext(u);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function p(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function v(...e){return l.useCallback(p(...e),e)}var h=l.forwardRef((e,t)=>{let{children:n,...r}=e,o=l.Children.toArray(n),i=o.find(y);if(i){let e=i.props.children,n=o.map(t=>t!==i?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,d.jsx)(m,{...r,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return(0,d.jsx)(m,{...r,ref:t,children:n})});h.displayName="Slot";var m=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=function(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}(n);return l.cloneElement(n,{...function(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)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?p(t,e):e})}return l.Children.count(n)>1?l.Children.only(null):null});m.displayName="SlotClone";var g=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});function y(e){return l.isValidElement(e)&&e.type===g}var w=l.createContext(void 0),b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=l.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?h:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function x(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...e)=>t.current?.(...e),[])}var E="dismissableLayer.update",S=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=l.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:f,onDismiss:p,...h}=e,m=l.useContext(S),[g,y]=l.useState(null),w=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,C]=l.useState({}),P=v(t,e=>y(e)),T=Array.from(m.layers),[k]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),L=T.indexOf(k),N=g?T.indexOf(g):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,M=N>=L,O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=x(e),o=l.useRef(!1),i=l.useRef(()=>{});return l.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){A("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...m.branches].some(e=>e.contains(t));!M||n||(null==u||u(e),null==f||f(e),e.defaultPrevented||null==p||p())},w),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=x(e),o=l.useRef(!1);return l.useEffect(()=>{let e=e=>{e.target&&!o.current&&A("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...m.branches].some(e=>e.contains(t))||(null==c||c(e),null==f||f(e),e.defaultPrevented||null==p||p())},w);return!function(e,t=globalThis?.document){let n=x(e);l.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N!==m.layers.size-1||(null==a||a(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},w),l.useEffect(()=>{if(g)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(o=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),R(),()=>{i&&1===m.layersWithOutsidePointerEventsDisabled.size&&(w.body.style.pointerEvents=o)}},[g,w,i,m]),l.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),R())},[g,m]),l.useEffect(()=>{let e=()=>C({});return document.addEventListener(E,e),()=>document.removeEventListener(E,e)},[]),(0,d.jsx)(b.div,{...h,ref:P,style:{pointerEvents:j?M?"auto":"none":void 0,...e.style},onFocusCapture:s(e.onFocusCapture,D.onFocusCapture),onBlurCapture:s(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,O.onPointerDownCapture)})});function R(){let e=new CustomEvent(E);document.dispatchEvent(e)}function A(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&u.flushSync(()=>i.dispatchEvent(l)):i.dispatchEvent(l)}C.displayName="DismissableLayer",l.forwardRef((e,t)=>
1{let n=l.useContext(S),r=l.useRef(null),o=v(t,r);return l.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(b.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var P=0;function T(){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}var k="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",N={bubbles:!1,cancelable:!0},j=l.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,c]=l.useState(null),s=x(o),f=x(i),p=l.useRef(null),h=v(t,e=>c(e)),m=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:D(p.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||D(p.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,m.paused]),l.useEffect(()=>{if(u){I.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(k,N);u.addEventListener(k,s),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}(M(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(u))}return()=>{u.removeEventListener(k,s),setTimeout(()=>{let t=new CustomEvent(L,N);u.addEventListener(L,f),u.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),u.removeEventListener(L,f),I.remove(m)},0)}}},[u,s,f,m]);let g=l.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]=function(e){let t=M(e);return[O(t,e),O(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(i,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,d.jsx)(b.div,{tabIndex:-1,...a,ref:h,onKeyDown:g})});function M(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function O(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}j.displayName="FocusScope";var I=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=_(e,t)).unshift(t)},remove(t){var n;null===(n=(e=_(e,t))[0])||void 0===n||n.resume()}}}();function _(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var W=globalThis?.document?l.useLayoutEffect:()=>{},F=a["useId".toString()]||(()=>void 0),H=0;function B(e){let[t,n]=l.useState(F());return W(()=>{e||n(e=>e??String(H++))},[e]),e||(t?`radix-${t}`:"")}let V=["top","right","bottom","left"],z=Math.min,K=Math.max,$=Math.round,Z=Math.floor,Y=e=>({x:e,y:e}),U={left:"right",right:"left",bottom:"top",top:"bottom"},X={start:"end",end:"start"};function q(e,t){return"function"==typeof e?e(t):e}function G(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function Q(e){return"x"===e?"y":"x"}function ee(e){return"y"===e?"height":"width"}function et(e){return["top","bottom"].includes(G(e))?"y":"x"}function en(e){return e.replace(/start|end/g,e=>X[e])}function er(e){return e.replace(/left|right|bottom|top/g,e=>U[e])}function eo(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function ei(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 el(e,t,n){let r,{reference:o,floating:i}=e,l=et(t),a=Q(et(t)),u=ee(a),c=G(t),s="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(J(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}let ea=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)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=el(c,r,u),f=r,p={},v=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:m,y:g,data:y,reset:w}=await h({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=m?m:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=el(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function eu(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=q(t,e),v=eo(p),h=a[f?"floating"===d?"reference":"floating":d],m=ei(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=ei(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-b.top+v.top)/w.y,bottom:(b.bottom-m.bottom+v.bottom)/w.y,left:(m.left-b.left+v.left)/w.x,right:(b.right-m.right+v.right)/w.x}}function ec(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function es(e){return V.some(t=>e[t]>=0)}async function ed(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=G(n),a=J(n),u="y"===et(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,d=q(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function ef(){return"undefined"!=typeof window}function ep(e){return em(e)?(e.nodeName||"").toLowerCase():"#document"}function ev(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eh(e){var t;return null==(t=(em(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function em(e){return!!ef()&&(e instanceof Node||e instanceof ev(e).Node)}function eg(e){return!!ef()&&(e instanceof Element||e instanceof ev(e).Element)}function ey(e){return!!ef()&&(e instanceof HTMLElement||e instanceof ev(e).HTMLElement)}function ew(e){return!!ef()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ev(e).ShadowRoot)}function eb(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ex(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function eE(e){let t=eS(),n=eg(e)?eR(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function eS(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function eC(e){return["html","body","#document"].includes(ep(e))}function eR(e){return ev(e).getComputedStyle(e)}function eA(e){return eg(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eP(e){if("html"===ep(e))return e;let t=e.assignedSlot||e.parentNode||ew(e)&&e.host||eh(e);return ew(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=eP(t);return eC(n)?t.ownerDocument?t.ownerDocument.body:t.body:ey(n)&&eb(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ev(o);if(i){let e=ek(l);
1return t.concat(l,l.visualViewport||[],eb(o)?o:[],e&&n?eT(e):[])}return t.concat(o,eT(o,[],n))}function ek(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eL(e){let t=eR(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=ey(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=$(n)!==i||$(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eN(e){return eg(e)?e:e.contextElement}function ej(e){let t=eN(e);if(!ey(t))return Y(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eL(t),l=(i?$(n.width):n.width)/r,a=(i?$(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eM=Y(0);function eO(e){let t=ev(e);return eS()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eM}function eD(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eN(e),a=Y(1);t&&(r?eg(r)&&(a=ej(r)):a=ej(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===ev(l))&&o)?eO(l):Y(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=ev(l),t=r&&eg(r)?ev(r):r,n=e,o=ek(n);for(;o&&r&&t!==n;){let e=ej(o),t=o.getBoundingClientRect(),r=eR(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=l,o=ek(n=ev(o))}}return ei({width:d,height:f,x:c,y:s})}function eI(e,t){let n=eA(e).scrollLeft;return t?t.left+n:eD(eh(e)).left+n}function e_(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=ev(e),r=eh(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eS();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=eh(e),n=eA(e),r=e.ownerDocument.body,o=K(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=K(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eI(e),a=-n.scrollTop;return"rtl"===eR(r).direction&&(l+=K(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(eh(e));else if(eg(t))r=function(e,t){let n=eD(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ey(e)?ej(e):Y(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=eO(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ei(r)}function eW(e){return"static"===eR(e).position}function eF(e,t){if(!ey(e)||"fixed"===eR(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eh(e)===n&&(n=n.ownerDocument.body),n}function eH(e,t){let n=ev(e);
1if(ex(e))return n;if(!ey(e)){let t=eP(e);for(;t&&!eC(t);){if(eg(t)&&!eW(t))return t;t=eP(t)}return n}let r=eF(e,t);for(;r&&["table","td","th"].includes(ep(r))&&eW(r);)r=eF(r,t);return r&&eC(r)&&eW(r)&&!eE(r)?n:r||function(e){let t=eP(e);for(;ey(t)&&!eC(t);){if(eE(t))return t;if(ex(t))break;t=eP(t)}return null}(e)||n}let eB=async function(e){let t=this.getOffsetParent||eH,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ey(t),o=eh(t),i="fixed"===n,l=eD(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=Y(0);if(r||!r&&!i){if(("body"!==ep(t)||eb(o))&&(a=eA(t)),r){let e=eD(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eI(o))}let c=0,s=0;if(o&&!r&&!i){let e=o.getBoundingClientRect();s=e.top+a.scrollTop,c=e.left+a.scrollLeft-eI(o,e)}return{x:l.left+a.scrollLeft-u.x-c,y:l.top+a.scrollTop-u.y-s,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}}},eV={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=eh(r),a=!!t&&ex(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Y(1),s=Y(0),d=ey(r);if((d||!d&&!i)&&(("body"!==ep(r)||eb(l))&&(u=eA(r)),ey(r))){let e=eD(r);c=ej(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x,y:n.y*c.y-u.scrollTop*c.y+s.y}},getDocumentElement:eh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ex(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eT(e,[],!1).filter(e=>eg(e)&&"body"!==ep(e)),o=null,i="fixed"===eR(e).position,l=i?eP(e):e;for(;eg(l)&&!eC(l);){let t=eR(l),n=eE(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||eb(l)&&!n&&function e(t,n){let r=eP(t);return!(r===n||!eg(r)||eC(r))&&("fixed"===eR(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=eP(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=e_(t,n,o);return e.top=K(r.top,e.top),e.right=z(r.right,e.right),e.bottom=z(r.bottom,e.bottom),e.left=K(r.left,e.left),e},e_(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eH,getElementRects:eB,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eL(e);return{width:t,height:n}},getScale:ej,isElement:eg,isRTL:function(e){return"rtl"===eR(e).direction}},ez=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=q(e,t)||{};if(null==c)return{};let d=eo(s),f={x:n,y:r},p=Q(et(o)),v=ee(p),h=await l.getDimensions(c),m="y"===p,g=m?"clientHeight":"clientWidth",y=i.reference[v]+i.reference[p]-f[p]-i.floating[v],w=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=b?b[g]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=a.floating[g]||i.floating[v]);let E=x/2-h[v]/2-1,S=z(d[m?"top":"left"],E),C=z(d[m?"bottom":"right"],E),R=x-h[v]-C,A=x/2-h[v]/2+(y/2-w/2),P=K(S,z(A,R)),T=!u.arrow&&null!=J(o)&&A!==P&&i.reference[v]/2-(A<S?S:C)-h[v]/2<0,k=T?A<S?A-S:A-R:0;return{[p]:f[p]+k,data:{[p]:P,centerOffset:A-P-k,...T&&{alignmentOffset:k}},reset:T}}}),eK=(e,t,n)=>{let r=new Map,o={platform:eV,...n},i={...o.platform,_c:r};return ea(e,t,{...o,platform:i})};var e$="undefined"!=typeof document?l.useLayoutEffect:l.useEffect;function eZ(e,t){let n,r,o;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(!eZ(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)&&!eZ(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eY(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eU(e,t){let n=eY(e);return Math.round(t*n)/n}function eX(e){let t=l.useRef(e);return e$(()=>{t.current=e}),t}let eq=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ez({element:n.current,padding:r}).fn(t):{}:n?ez({element:n,padding:r}).fn(t):{}}}),eG=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await ed(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}),eJ=(e,t)=>
1({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=q(e,t),c={x:n,y:r},s=await eu(t,u),d=et(G(o)),f=Q(d),p=c[f],v=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=K(n,z(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=v+s[e],r=v-s[t];v=K(n,z(v,r))}let h=a.fn({...t,[f]:p,[d]:v});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:l}}}}}}(e),options:[e,t]}),eQ=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=q(e,t),s={x:n,y:r},d=et(o),f=Q(d),p=s[f],v=s[d],h=q(a,t),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===f?"width":"height",t=["top","left"].includes(G(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[f]:p,[d]:v}}}}(e),options:[e,t]}),e0=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:v=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=q(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=G(a),x=et(s),E=G(s)===s,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=h||(E||!y?[er(s)]:function(e){let t=er(e);return[en(e),t,en(t)]}(s)),R="none"!==g;!h&&R&&C.push(...function(e,t,n,r){let o=J(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(G(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(en)))),i}(s,y,g,S));let A=[s,...C],P=await eu(t,w),T=[],k=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&T.push(P[b]),v){let e=function(e,t,n){void 0===n&&(n=!1);let r=J(e),o=Q(et(e)),i=ee(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=er(l)),[l,er(l)]}(a,c,S);T.push(P[e[0]],P[e[1]])}if(k=[...k,{placement:a,overflows:T}],!T.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=A[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(i=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=k.filter(e=>{if(R){let t=et(e.placement);return t===x||"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=s}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),e1=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i;let{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...d}=q(e,t),f=await eu(t,d),p=G(l),v=J(l),h="y"===et(l),{width:m,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=v===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===v?"top":"bottom");let y=g-f.top-f.bottom,w=m-f.left-f.right,b=z(g-f[o],y),x=z(m-f[i],w),E=!t.middlewareData.shift,S=b,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=y),E&&!v){let e=K(f.left,0),t=K(f.right,0),n=K(f.top,0),r=K(f.bottom,0);h?C=m-2*(0!==e||0!==t?e+t:K(f.left,f.right)):S=g-2*(0!==n||0!==r?n+r:K(f.top,f.bottom))}await s({...t,availableWidth:C,availableHeight:S});let R=await u.getDimensions(c.floating);return m!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),e2=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=q(e,t);switch(r){case"referenceHidden":{let e=ec(await eu(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:es(e)}}}case"escaped":{let e=ec(await eu(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:es(e)}}}default:return{}}}}}(e),options:[e,t]}),e4=(e,t)=>({...eq(e),options:[e,t]});var e6=l.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,d.jsx)(b.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e6.displayName="Arrow";var e5="Popper",[e3,e8]=f(e5),[e9,e7]=e3(e5),te=e=>{let{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return(0,d.jsx)(e9,{scope:t,anchor:r,onAnchorChange:o,children:n})};te.displayName=e5;var tt="PopperAnchor",tn=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=e7(tt,n),a=l.useRef(null),u=v(t,a);return l.useEffect(()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,d.jsx)(b.div,{...o,ref:u})});tn.displayName=tt;var tr="PopperContent",[to,ti]=e3(tr),tl=l.forwardRef((e,t)=>{var n,r,o,i,a,c,s,f;let{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:g="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:A=!1,updatePositionStrategy:P="optimized",onPlaced:T,...k}=e,L=e7(tr,p),[N,j]=l.useState(null),M=v(t,e=>j(e)),[O,D]=l.useState(null),I=function(e){let[t,n]=l.useState(void 0);return W(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,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;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(O),_=null!==(s=null==I?void 0:I.width)&&void 0!==s?s:0,F=null!==(f=null==I?void 0:I.height)&&void 0!==f?f:0,H="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},B=Array.isArray(S)?S:[S],V=B.length>0,$={padding:H,boundary:B.filter(ts),altBoundary:V},{refs:Y,floatingStyles:U,placement:X,isPositioned:q,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:s,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,h]=l.useState(r);eZ(v,r)||h(r);let[m,g]=l.useState(null),[y,w]=l.useState(null),b=l.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=l.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),E=i||m,S=a||y,C=l.useRef(null),R=l.useRef(null),A=l.useRef(f),P=null!=s,T=eX(s),k=eX(o),L=eX(d),N=l.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:v};k.current&&(e.platform=k.current),eK(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};j.current&&!eZ(A.current,t)&&(A.current=t,u.flushSync(()=>{p(t)}))})},[v,t,n,k,L]);e$(()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let j=l.useRef(!1);e$(()=>(j.current=!0,()=>{j.current=!1}),[]),e$(()=>{if(E&&(C.current=E),S&&(R.current=S),E&&S){if(T.current)return T.current(E,S,N);N()}},[E,S,N,T,P]);let M=l.useMemo(()=>({reference:C,floating:R,setReference:b,setFloating:x}),[b,x]),O=l.useMemo(()=>({reference:E,floating:S}),[E,S]),D=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eU(O.floating,f.x),r=eU(O.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...eY(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,O.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:N,refs:M,elements:O,floatingStyles:D}),[f,N,M,O,D])}({strategy:"fixed",placement:h+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eN(e),d=i||l?[...s?eT(s):[],...eT(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=eh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let{left:c,top:s,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;let p=Z(s),v=Z(o.clientWidth-(c+d)),h={rootMargin:-p+"px "+-v+"px "+-Z(o.clientHeight-(s+f))+"px "+-Z(c)+"px",threshold:K(0,z(1,u))||1},m=!0;function g(e){let t=e[0].intersectionRatio;if(t!==u){if(!m)return l();t?l(!1,t):n=setTimeout(()=>{l(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(s,n):null,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),s&&!c&&v.observe(s),v.observe(t));let h=c?eD(e):null;return c&&function t(){let r=eD(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:L.anchor},middleware:[eG({mainAxis:m+F,alignmentAxis:y}),E&&eJ({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eQ():void 0,...$}),E&&e0({...$}),e1({...$,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),O&&e4({element:O,padding:w}),td({arrowWidth:_,arrowHeight:F}),A&&e2({strategy:"referenceHidden",...$})]}),[J,Q]=tf(X),ee=x(T);W(()=>{q&&(null==ee||ee())},[q,ee]);let et=null===(n=G.arrow)||void 0===n?void 0:n.x,en=null===(r=G.arrow)||void 0===r?void 0:r.y,er=(null===(o=G.arrow)||void 0===o?void 0:o.centerOffset)!==0,[eo,ei]=l.useState();return W(()=>{N&&ei(window.getComputedStyle(N).zIndex)},[N]),(0,d.jsx)("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:q?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eo,"--radix-popper-transform-origin":[null===(i=G.transformOrigin)||void 0===i?void 0:i.x,null===(a=G.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(c=G.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(to,{scope:p,placedSide:J,onArrowChange:D,arrowX:et,arrowY:en,shouldHideArrow:er,children:(0,d.jsx)(b.div,{"data-side":J,"data-align":Q,...k,ref:M,style:{...k.style,animation:q?void 0:"none"}})})})});tl.displayName=tr;var ta="PopperArrow",tu={top:"bottom",right:"left",bottom:"top",left:"right"},tc=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=ti(ta,n),i=tu[o.placedSide];return(0,d.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,d.jsx)(e6,{...r,ref:t,style:{...r.style,display:"block"}})})});function ts(e){return null!==e}tc.displayName=ta;var td=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=tf(a),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function tf(e){let[t,n="center"]=e.split("-");return[t,n]}var tp=l.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[a,c]=l.useState(!1);W(()=>c(!0),[]);let s=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?u.createPortal((0,d.jsx)(b.div,{...i,ref:t}),s):null});function tv({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=l.useState(e),[r]=n,o=l.useRef(r),i=x(t);return l.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,u=x(n);return[a,l.useCallback(t=>{if(i){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[i,e,o,u])]}tp.displayName="Portal";var th=l.forwardRef((e,t)=>(0,d.jsx)(b.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));th.displayName="VisuallyHidden";var tm=new WeakMap,tg=new WeakMap,ty={},tw=0,tb=function(e){return e&&(e.host||tb(e.parentNode))},tx=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tb(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});ty[n]||(ty[n]=new WeakMap);var i=ty[n],l=[],a=new Set,u=new Set(o),c=function(e){!e||a.has(e)||(a.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(tm.get(e)||0)+1,c=(i.get(e)||0)+1;tm.set(e,u),i.set(e,c),l.push(e),1===u&&o&&tg.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),a.clear(),tw++,function(){l.forEach(function(e){var t=tm.get(e)-1,o=i.get(e)-1;tm.set(e,t),i.set(e,o),t||(tg.has(e)||e.removeAttribute(r),tg.delete(e)),o||e.removeAttribute(n)}),--tw||(tm=new WeakMap,tm=new WeakMap,tg=new WeakMap,ty={})}},tE=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),i=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),tx(o,i,n,"aria-hidden")):function(){return null}},tS=function(){return(tS=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 tC(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}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var tR="right-scroll-bar-position",tA="width-before-scroll-bar";function tP(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tT="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,tk=new WeakMap;function tL(e){return e}var tN=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=tL),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;
1t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return o.options=tS({async:!0,ssr:!1},e),o}(),tj=function(){},tM=l.forwardRef(function(e,t){var n,r,o,i,a=l.useRef(null),u=l.useState({onScrollCapture:tj,onWheelCapture:tj,onTouchMoveCapture:tj}),c=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,S=tC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[a,t],r=function(e){return n.forEach(function(t){return tP(t,e)})},(o=(0,l.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,tT(function(){var e=tk.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tP(e,null)}),r.forEach(function(e){t.has(e)||tP(e,o)})}tk.set(i,n)},[n]),i),R=tS(tS({},S),c);return l.createElement(l.Fragment,null,h&&l.createElement(g,{sideCar:tN,removeScrollBar:v,shards:m,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:a,gapMode:E}),d?l.cloneElement(l.Children.only(f),tS(tS({},R),{ref:C})):l.createElement(void 0===x?"div":x,tS({},R,{className:p,ref:C}),f))});tM.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tM.classNames={fullWidth:tA,zeroRight:tR};var tO=function(e){var t=e.sideCar,n=tC(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 l.createElement(r,tS({},n))};tO.isSideCarExport=!0;var tD=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,l;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tI=function(){var e=tD();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},t_=function(){var e=tI();return function(t){return e(t.styles,t.dynamic),null}},tW={left:0,top:0,right:0,gap:0},tF=function(e){return parseInt(e||"",10)||0},tH=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[tF(n),tF(r),tF(o)]},tB=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tW;var t=tH(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])}},tV=t_(),tz="data-scroll-locked",tK=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(tz,"] {\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(tR," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tA," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tR," .").concat(tR," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tA," .").concat(tA," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tz,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},t$=function(){var e=parseInt(document.body.getAttribute(tz)||"0",10);return isFinite(e)?e:0},tZ=function(){l.useEffect(function(){return document.body.setAttribute(tz,(t$()+1).toString()),function(){var e=t$()-1;e<=0?document.body.removeAttribute(tz):document.body.setAttribute(tz,e.toString())}},[])},tY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tZ();var i=l.useMemo(function(){return tB(o)},[o]);return l.createElement(tV,{styles:tK(i,!t,o,n?"":"!important")})},tU=!1;if("undefined"!=typeof window)try{var tX=Object.defineProperty({},"passive",{get:function(){return tU=!0,!0}});window.addEventListener("test",tX,tX),window.removeEventListener("test",tX,tX)}catch(e){tU=!1}var tq=!!tU&&{passive:!1},tG=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])},tJ=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tQ(e,r)){var o=t0(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tQ=function(e,t){return"v"===e?tG(t,"overflowY"):tG(t,"overflowX")},t0=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t1=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,c=t.contains(u),s=!1,d=a>0,f=0,p=0;do{var v=t0(e,u),h=v[0],m=v[1]-v[2]-l*h;(h||m)&&tQ(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},t2=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t4=function(e){return[e.deltaX,e.deltaY]},t6=function(e){return e&&"current"in e?e.current:e},t5=0,t3=[];let t8=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(t5++)[0],i=l.useState(t_)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.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))}
1)([e.lockRef.current],(e.shards||[]).map(t6),!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 u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=t2(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=tJ(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=tJ(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return t1(p,t,e,"h"===p?u:c,!0)},[]),c=l.useCallback(function(e){if(t3.length&&t3[t3.length-1]===i){var n="deltaY"in e?t4(e):t2(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)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(t6).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=l.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)},[]),d=l.useCallback(function(e){n.current=t2(e),r.current=void 0},[]),f=l.useCallback(function(t){s(t.type,t4(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){s(t.type,t2(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return t3.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,tq),document.addEventListener("touchmove",c,tq),document.addEventListener("touchstart",d,tq),function(){t3=t3.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,tq),document.removeEventListener("touchmove",c,tq),document.removeEventListener("touchstart",d,tq)}},[]);var v=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?l.createElement(tY,{gapMode:e.gapMode}):null)},tN.useMedium(r),tO);var t9=l.forwardRef(function(e,t){return l.createElement(tM,tS({},e,{ref:t,sideCar:t8}))});t9.classNames=tM.classNames;var t7=[" ","Enter","ArrowUp","ArrowDown"],ne=[" ","Enter"],nt="Select",[nn,nr,no]=function(e){let t=e+"CollectionProvider",[n,r]=f(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=l.useRef(null),i=l.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",c=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=v(t,i(u,n).collectionRef);return(0,d.jsx)(h,{ref:o,children:r})});c.displayName=u;let s=e+"CollectionItemSlot",p="data-radix-collection-item",m=l.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=l.useRef(null),u=v(t,a),c=i(s,n);return l.useEffect(()=>(c.itemMap.set(a,{ref:a,...o}),()=>void c.itemMap.delete(a))),(0,d.jsx)(h,{[p]:"",ref:u,children:r})});return m.displayName=s,[{Provider:a,Slot:c,ItemSlot:m},function(t){let n=i(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(nt),[ni,nl]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>l.createContext(e));return function(n){let r=n?.[e]||t;return l.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=l.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[i]||o,c=l.useMemo(()=>a,Object.values(a));return(0,d.jsx)(u.Provider,{value:c,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[i]||o,c=l.useContext(u);if(c)return c;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(nt,[no,e8]),na=e8(),[nu,nc]=ni(nt),[ns,nd]=ni(nt),nf=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:c,dir:s,name:f,autoComplete:p,disabled:v,required:h,form:m}=e,g=na(t),[y,b]=l.useState(null),[x,E]=l.useState(null),[S,C]=l.useState(!1),R=function(e){let t=l.useContext(w);return e||t||"ltr"}(s),[A=!1,P]=tv({prop:r,defaultProp:o,onChange:i}),[T,k]=tv({prop:a,defaultProp:u,onChange:c}),L=l.useRef(null),N=!y||m||!!y.closest("form"),[j,M]=l.useState(new Set),O=Array.from(j).map(e=>e.props.value).join(";");return(0,d.jsx)(te,{...g,children:(0,d.jsxs)(nu,{required:h,scope:t,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:B(),value:T,onValueChange:k,open:A,onOpenChange:P,dir:R,triggerPointerDownPosRef:L,disabled:v,children:[(0,d.jsx)(nn.Provider,{scope:t,children:(0,d.jsx)(ns,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,d.jsxs)(nJ,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:T,onChange:e=>k(e.target.value),disabled:v,form:m,children:[void 0===T?(0,d.jsx)("option",{value:""}):null,Array.from(j)]},O):null]})})};nf.displayName=nt;var np="SelectTrigger",nv=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=na(n),a=nc(np,n),u=a.disabled||r,c=v(t,a.onTriggerChange),f=nr(n),p=l.useRef("touch"),[h,m,g]=nQ(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=n0(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{u||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,d.jsx)(tn,{asChild:!0,...i,children:(0,d.jsx)(b.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":nG(a.value)?"":void 0,...o,ref:c,onClick:s(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:s(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:s(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&t7.includes(e.key)&&(y(),e.preventDefault())})})})});nv.displayName=np;var nh="SelectValue",nm=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,u=nc(nh,n),{onValueNodeHasChildrenChange:c}=u,s=void 0!==i,f=v(t,u.onValueNodeChange);return W(()=>{c(s)},[c,s]),(0,d.jsx)(b.span,{...a,ref:f,style:{pointerEvents:"none"},children:nG(u.value)?(0,d.jsx)(d.Fragment,{children:l}):i})});nm.displayName=nh;var ng=l.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,d.jsx)(b.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ng.displayName="SelectIcon";var ny=e=>(0,d.jsx)(tp,{asChild:!0,...e});ny.displayName="SelectPortal";var nw="SelectContent",nb=l.forwardRef((e,t)=>{let n=nc(nw,e.__scopeSelect),[r,o]=l.useState();return(W(()=>{o(new DocumentFragment)},[]),n.open)?(0,d.jsx)(nS,{...e,ref:t}):r?u.createPortal((0,d.jsx)(nx,{scope:e.__scopeSelect,children:(0,d.jsx)(nn.Slot,{scope:e.__scopeSelect,children:(0,d.jsx)("div",{children:e.children})})}),r):null});nb.displayName=nw;var[nx,nE]=ni(nw),nS=l.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:u,sideOffset:c,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:y,sticky:w,hideWhenDetached:b,avoidCollisions:x,...E}=e,S=nc(nw,n),[R,A]=l.useState(null),[k,L]=l.useState(null),N=v(t,e=>A(e)),[M,O]=l.useState(null),[D,I]=l.useState(null),_=nr(n),[W,F]=l.useState(!1),H=l.useRef(!1);l.useEffect(()=>{if(R)return tE(R)},[R]),l.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:T()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:T()),P++,()=>{1===P&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),P--}},[]);let B=l.useCallback(e=>{let[t,...n]=_().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[_,k]),V=l.useCallback(()=>B([M,R]),[B,M,R]);l.useEffect(()=>{W&&V()},[W,V]);let{onOpenChange:z,triggerPointerDownPosRef:K}=S;l.useEffect(()=>{if(R){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(o=null===(n=K.current)||void 0===n?void 0:n.x)&&void 0!==o?o:0)),y:Math.abs(Math.round(t.pageY)-(null!==(i=null===(r=K.current)||void 0===r?void 0:r.y)&&void 0!==i?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():R.contains(n.target)||z(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[R,z,K]),l.useEffect(()=>{let e=()=>z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[z]);let[$,Z]=nQ(e=>{let t=_().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=n0(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Y=l.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==S.value&&S.value===t||r)&&(O(e),r&&(H.current=!0))},[S.value]),U=l.useCallback(()=>null==R?void 0:R.focus(),[R]),X=l.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==S.value&&S.value===t||r)&&I(e)},[S.value]),q="popper"===r?nR:nC,G=q===nR?{side:u,sideOffset:c,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:g,collisionPadding:y,sticky:w,hideWhenDetached:b,avoidCollisions:x}:{};return(0,d.jsx)(nx,{scope:n,content:R,viewport:k,onViewportChange:L,itemRefCallback:Y,selectedItem:M,onItemLeave:U,itemTextRefCallback:X,focusSelectedItem:V,selectedItemText:D,position:r,isPositioned:W,searchRef:$,children:(0,d.jsx)(t9,{as:h,allowPinchZoom:!0,children:(0,d.jsx)(j,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:s(o,e=>{var t;null===(t=S.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,d.jsx)(C,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,d.jsx)(q,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...E,...G,onPlaced:()=>F(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:s(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=_().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});nS.displayName="SelectContentImpl";var nC=l.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}=e,i=nc(nw,n),a=nE(nw,n),[u,s]=l.useState(null),[f,p]=l.useState(null),h=v(t,e=>p(e)),m=nr(n),g=l.useRef(!1),y=l.useRef(!0),{viewport:w,selectedItem:x,selectedItemText:E,focusSelectedItem:S}=a,C=l.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&f&&w&&x&&E){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=E.getBoundingClientRect();if("rtl"!==i.dir){let r=o.left-t.left,i=n.left-r,l=e.left-i,a=e.width+l,s=Math.max(a,t.width),d=c(i,[10,Math.max(10,window.innerWidth-10-s)]);u.style.minWidth=a+"px",u.style.left=d+"px"}else{let r=t.right-o.right,i=window.innerWidth-n.right-r,l=window.innerWidth-e.right-i,a=e.width+l,s=Math.max(a,t.width),d=c(i,[10,Math.max(10,window.innerWidth-10-s)]);u.style.minWidth=a+"px",u.style.right=d+"px"}let l=m(),a=window.innerHeight-20,s=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),h=parseInt(d.borderBottomWidth,10),y=p+v+s+parseInt(d.paddingBottom,10)+h,b=Math.min(5*x.offsetHeight,y),S=window.getComputedStyle(w),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),A=e.top+e.height/2-10,P=x.offsetHeight/2,T=p+v+(x.offsetTop+P);if(T<=A){let e=l.length>0&&x===l[l.length-1].ref.current;u.style.bottom="0px";let t=Math.max(a-A,P+(e?R:0)+(f.clientHeight-w.offsetTop-w.offsetHeight)+h);u.style.height=T+t+"px"}else{let e=l.length>0&&x===l[0].ref.current;u.style.top="0px";let t=Math.max(A,p+w.offsetTop+(e?C:0)+P);u.style.height=t+(y-T)+"px",w.scrollTop=T-A+w.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=b+"px",u.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>g.current=!0)}},[m,i.trigger,i.valueNode,u,f,w,x,E,i.dir,r]);W(()=>C(),[C]);let[R,A]=l.useState();W(()=>{f&&A(window.getComputedStyle(f).zIndex)},[f]);let P=l.useCallback(e=>{e&&!0===y.current&&(C(),null==S||S(),y.current=!1)},[C,S]);return(0,d.jsx)(nA,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:P,children:(0,d.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,d.jsx)(b.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});nC.displayName="SelectItemAlignedPosition";var nR=l.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=na(n);return(0,d.jsx)(tl,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});nR.displayName="SelectPopperPosition";var[nA,nP]=ni(nw,{}),nT="SelectViewport",nk=l.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,i=nE(nT,n),a=nP(nT,n),u=v(t,i.onViewportChange),c=l.useRef(0);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,d.jsx)(nn.Slot,{scope:n,children:(0,d.jsx)(b.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:s(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});nk.displayName=nT;var nL="SelectGroup",[nN,nj]=ni(nL),nM=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=B();return(0,d.jsx)(nN,{scope:n,id:o,children:(0,d.jsx)(b.div,{role:"group","aria-labelledby":o,...r,ref:t})})});nM.displayName=nL;var nO="SelectLabel",nD=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=nj(nO,n);return(0,d.jsx)(b.div,{id:o.id,...r,ref:t})});nD.displayName=nO;var nI="SelectItem",[n_,nW]=ni(nI),nF=l.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,u=nc(nI,n),c=nE(nI,n),f=u.value===r,[p,h]=l.useState(null!=i?i:""),[m,g]=l.useState(!1),y=v(t,e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,o)}),w=B(),x=l.useRef("touch"),E=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,d.jsx)(n_,{scope:n,value:r,disabled:o,textId:w,isSelected:f,onItemTextChange:l.useCallback(e=>{h(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,d.jsx)(nn.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,d.jsx)(b.div,{role:"option","aria-labelledby":w,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:y,onFocus:s(a.onFocus,()=>g(!0)),onBlur:s(a.onBlur,()=>g(!1)),onClick:s(a.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:s(a.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:s(a.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:s(a.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:s(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:s(a.onKeyDown,e=>{var t;(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(ne.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});nF.displayName=nI;var nH="SelectItemText",nB=l.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...i}=e,a=nc(nH,n),c=nE(nH,n),s=nW(nH,n),f=nd(nH,n),[p,h]=l.useState(null),m=v(t,e=>h(e),s.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,s.value,s.disabled)}),g=null==p?void 0:p.textContent,y=l.useMemo(()=>(0,d.jsx)("option",{value:s.value,disabled:s.disabled,children:g},s.value),[s.disabled,s.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=f;return W(()=>(w(y),()=>x(y)),[w,x,y]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(b.span,{id:s.textId,...i,ref:m}),s.isSelected&&a.valueNode&&!a.valueNodeHasChildren?u.createPortal(i.children,a.valueNode):null]})});nB.displayName=nH;var nV="SelectItemIndicator",nz=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return nW(nV,n).isSelected?(0,d.jsx)(b.span,{"aria-hidden":!0,...r,ref:t}):null});nz.displayName=nV;var nK="SelectScrollUpButton",n$=l.forwardRef((e,t)=>{let n=nE(nK,e.__scopeSelect),r=nP(nK,e.__scopeSelect),[o,i]=l.useState(!1),a=v(t,r.onScrollButtonChange);return W(()=>{if(n.viewport&&n.isPositioned){let e=function(){i(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,d.jsx)(nU,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});n$.displayName=nK;var nZ="SelectScrollDownButton",nY=l.forwardRef((e,t)=>{let n=nE(nZ,e.__scopeSelect),r=nP(nZ,e.__scopeSelect),[o,i]=l.useState(!1),a=v(t,r.onScrollButtonChange);return W(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,d.jsx)(nU,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});nY.displayName=nZ;var nU=l.forwardRef((e,t)=>
1{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=nE("SelectScrollButton",n),a=l.useRef(null),u=nr(n),c=l.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),W(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[u]),(0,d.jsx)(b.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:s(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:s(o.onPointerMove,()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:s(o.onPointerLeave,()=>{c()})})}),nX=l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,d.jsx)(b.div,{"aria-hidden":!0,...r,ref:t})});nX.displayName="SelectSeparator";var nq="SelectArrow";function nG(e){return""===e||void 0===e}l.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=na(n),i=nc(nq,n),l=nE(nq,n);return i.open&&"popper"===l.position?(0,d.jsx)(tc,{...o,...r,ref:t}):null}).displayName=nq;var nJ=l.forwardRef((e,t)=>{let{value:n,...r}=e,o=l.useRef(null),i=v(t,o),a=function(e){let t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n);return l.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[a,n]),(0,d.jsx)(th,{asChild:!0,children:(0,d.jsx)("select",{...r,ref:i,defaultValue:n})})});function nQ(e){let t=x(e),n=l.useRef(""),r=l.useRef(0),o=l.useCallback(e=>{let o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=l.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function n0(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}nJ.displayName="BubbleSelect";var n1=nf,n2=nv,n4=nm,n6=ng,n5=ny,n3=nb,n8=nk,n9=nM,n7=nD,re=nF,rt=nB,rn=nz,rr=n$,ro=nY,ri=nX},3468:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(r&&(r+=" "),r+=t);return r}n.d(t,{W:()=>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.