PageSourceSearch

https://cubictofeetcalculator.cc/_next/static/chunks/6570.d344881856b03f9f.js

js cubictofeetcalculator.cc collected 2026-10-05 20:43:11 UTC 70,296 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6570],{222:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(2115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},490:(e,t,n)=>{n.d(t,{y:()=>o});let r=e=>{let t,n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(r,o,i);return i},o=e=>e?r(e):r},1138:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(2115),o=n(490);let i=e=>{let t=(0,o.y)(e),n=e=>(function(e,t=e=>e){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},l=e=>e?i(e):i},3926:(e,t,n)=>{let r;n.d(t,{UC:()=>nQ,YJ:()=>n1,In:()=>n$,q7:()=>n2,VF:()=>n9,p4:()=>n5,ZL:()=>nJ,bL:()=>nX,l9:()=>nq,WT:()=>nZ,LM:()=>n0});var o,i,l,a=n(2115),u=n(7650);function c(e,[t,n]){return Math.min(n,Math.max(t,e))}var s=n(2556),d=n(9118),f=n(4446),p=n(3468),h=n(6218),m=n(8142),v=n(222),g=n(5155),y="dismissableLayer.update",w=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b=a.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:p,...h}=e,b=a.useContext(w),[S,C]=a.useState(null),R=null!=(r=null==S?void 0:S.ownerDocument)?r:null==(n=globalThis)?void 0:n.document,[,T]=a.useState({}),A=(0,f.s)(t,e=>C(e)),L=Array.from(b.layers),[P]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),k=L.indexOf(P),N=S?L.indexOf(S):-1,O=b.layersWithOutsidePointerEventsDisabled.size>0,j=N>=k,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,v.c)(e),o=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){E("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=[...b.branches].some(e=>e.contains(t));j&&!n&&(null==u||u(e),null==d||d(e),e.defaultPrevented||null==p||p())},R),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,v.c)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&E("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;![...b.branches].some(e=>e.contains(t))&&(null==c||c(e),null==d||d(e),e.defaultPrevented||null==p||p())},R);return!function(e,t=globalThis?.document){let n=(0,v.c)(e);a.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===b.layers.size-1&&(null==l||l(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},R),a.useEffect(()=>{if(S)return o&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(i=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(S)),b.layers.add(S),x(),()=>{o&&1===b.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=i)}},[S,R,o,b]),a.useEffect(()=>()=>{S&&(b.layers.delete(S),b.layersWithOutsidePointerEventsDisabled.delete(S),x())},[S,b]),a.useEffect(()=>{let e=()=>T({});return document.addEventListener(y,e),()=>document.removeEventListener(y,e)},[]),(0,g.jsx)(m.sG.div,{...h,ref:A,style:{pointerEvents:O?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.mK)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,s.mK)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,s.mK)(e.onPointerDownCapture,D.onPointerDownCapture)})});function x(){let e=new CustomEvent(y);document.dispatchEvent(e)}function E(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?(0,m.hO)(i,l):i.dispatchEvent(l)}b.displayName="DismissableLayer",a.forwardRef((e,t)=>
1{let n=a.useContext(w),r=a.useRef(null),o=(0,f.s)(t,r);return a.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,g.jsx)(m.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var S=0;function C(){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 R="focusScope.autoFocusOnMount",T="focusScope.autoFocusOnUnmount",A={bubbles:!1,cancelable:!0},L=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[u,c]=a.useState(null),s=(0,v.c)(o),d=(0,v.c)(i),p=a.useRef(null),h=(0,f.s)(t,e=>c(e)),y=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(y.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:N(p.current,{select:!0})},t=function(e){if(y.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||N(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&&N(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,y.paused]),a.useEffect(()=>{if(u){O.add(y);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(R,A);u.addEventListener(R,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(N(r,{select:t}),document.activeElement!==n)return}(P(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&N(u))}return()=>{u.removeEventListener(R,s),setTimeout(()=>{let t=new CustomEvent(T,A);u.addEventListener(T,d),u.dispatchEvent(t),t.defaultPrevented||N(null!=e?e:document.body,{select:!0}),u.removeEventListener(T,d),O.remove(y)},0)}}},[u,s,d,y]);let w=a.useCallback(e=>{if(!n&&!r||y.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=P(e);return[k(t,e),k(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&N(i,{select:!0})):(e.preventDefault(),n&&N(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,g.jsx)(m.sG.div,{tabIndex:-1,...l,ref:h,onKeyDown:w})});function P(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 k(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 N(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()}}L.displayName="FocusScope";var O=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=j(e,t)).unshift(t)},remove(t){var n;null==(n=(e=j(e,t))[0])||n.resume()}}}();function j(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var D=n(8946);let M=["top","right","bottom","left"],I=Math.min,W=Math.max,H=Math.round,F=Math.floor,B=e=>({x:e,y:e}),K={left:"right",right:"left",bottom:"top",top:"bottom"};function _(e,t){return"function"==typeof e?e(t):e}function V(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function G(e){return"x"===e?"y":"x"}function Y(e){return"y"===e?"height":"width"}function U(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function X(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let q=["left","right"],Z=["right","left"],$=["top","bottom"],J=["bottom","top"];function Q(e){let t=V(e);return K[t]+e.slice(t.length)}function ee(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function et(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}}
1function en(e,t,n){let r,{reference:o,floating:i}=e,l=U(t),a=G(U(t)),u=Y(a),c=V(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(z(t)){case"start":r[a]-=p*(n&&s?-1:1);break;case"end":r[a]+=p*(n&&s?-1:1)}return r}async function er(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}=_(t,e),h=ee(p),m=a[f?"floating"===d?"reference":"floating":d],v=et(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.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=et(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-b.top+h.top)/w.y,bottom:(b.bottom-v.bottom+h.bottom)/w.y,left:(v.left-b.left+h.left)/w.x,right:(b.right-v.right+h.right)/w.x}}let eo=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:er},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=en(c,r,u),f=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:v,fn:g}=m,{x:y,y:w,data:b,reset:x}=await g({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=y?y:s,d=null!=w?w:d,h[v]={...h[v],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:d}=en(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:h}};function ei(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function el(e){return M.some(t=>e[t]>=0)}let ea=new Set(["left","top"]);async function eu(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=V(n),a=z(n),u="y"===U(n),c=ea.has(l)?-1:1,s=i&&u?-1:1,d=_(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function ec(){return"undefined"!=typeof window}function es(e){return ep(e)?(e.nodeName||"").toLowerCase():"#document"}function ed(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ef(e){var t;return null==(t=(ep(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ep(e){return!!ec()&&(e instanceof Node||e instanceof ed(e).Node)}function eh(e){return!!ec()&&(e instanceof Element||e instanceof ed(e).Element)}function em(e){return!!ec()&&(e instanceof HTMLElement||e instanceof ed(e).HTMLElement)}function ev(e){return!!ec()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ed(e).ShadowRoot)}function eg(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ey(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ew=/transform|translate|scale|rotate|perspective|filter/,eb=/paint|layout|strict|content/,ex=e=>!!e&&"none"!==e;function eE(e){let t=eh(e)?eR(e):e;return ex(t.transform)||ex(t.translate)||ex(t.scale)||ex(t.rotate)||ex(t.perspective)||!eS()&&(ex(t.backdropFilter)||ex(t.filter))||ew.test(t.willChange||"")||eb.test(t.contain||"")}function eS(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eC(e){return/^(html|body|#document)$/.test(es(e))}function eR(e){return ed(e).getComputedStyle(e)}function eT(e){return eh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eA(e){if("html"===es(e))return e;let t=e.assignedSlot||e.parentNode||ev(e)&&e.host||ef(e);return ev(t)?t.host:t}
1function eL(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eA(t);return eC(n)?t.ownerDocument?t.ownerDocument.body:t.body:em(n)&&eg(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ed(o);if(!i)return t.concat(o,eL(o,[],n));{let e=eP(l);return t.concat(l,l.visualViewport||[],eg(o)?o:[],e&&n?eL(e):[])}}function eP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ek(e){let t=eR(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=em(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=H(n)!==i||H(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eN(e){return eh(e)?e:e.contextElement}function eO(e){let t=eN(e);if(!em(t))return B(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ek(t),l=(i?H(n.width):n.width)/r,a=(i?H(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ej=B(0);function eD(e){let t=ed(e);return eS()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ej}function eM(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eN(e),a=B(1);t&&(r?eh(r)&&(a=eO(r)):a=eO(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===ed(l))&&o)?eD(l):B(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=ed(l),t=r&&eh(r)?ed(r):r,n=e,o=eP(n);for(;o&&r&&t!==n;){let e=eO(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=eP(n=ed(o))}}return et({width:d,height:f,x:c,y:s})}function eI(e,t){let n=eT(e).scrollLeft;return t?t.left+n:eM(ef(e)).left+n}function eW(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eI(e,n),y:n.top+t.scrollTop}}function eH(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=ed(e),r=ef(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)}let c=eI(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=ef(e),n=eT(e),r=e.ownerDocument.body,o=W(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=W(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eI(e),a=-n.scrollTop;return"rtl"===eR(r).direction&&(l+=W(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(ef(e));else if(eh(t))r=function(e,t){let n=eM(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=em(e)?eO(e):B(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return et(r)}function eF(e){return"static"===eR(e).position}function eB(e,t){if(!em(e)||"fixed"===eR(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ef(e)===n&&(n=n.ownerDocument.body),n}function eK(e,t){var n;let r=ed(e);if(ey(e))return r;if(!em(e)){let t=eA(e);for(;t&&!eC(t);){if(eh(t)&&!eF(t))return t;t=eA(t)}return r}let o=eB(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(es(n)))&&eF(o);)o=eB(o,t);return o&&eC(o)&&eF(o)&&!eE(o)?r:o||function(e){let t=eA(e);for(;em(t)&&!eC(t);){if(eE(t))return t;if(ey(t))break;t=eA(t)}return null}(e)||r}let e_=async function(e){let t=this.getOffsetParent||eK,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=em(t),o=ef(t),i="fixed"===n,l=eM(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=B(0);if(r||!r&&!i)if(("body"!==es(t)||eg(o))&&(a=eT(t)),r){let e=eM(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eI(o));i&&!r&&o&&(u.x=eI(o));let c=!o||r||i?B(0):eW(o,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}}},eV={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ef(r),a=!!t&&ey(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=B(1),s=B(0),d=em(r);
1if((d||!d&&!i)&&(("body"!==es(r)||eg(l))&&(u=eT(r)),d)){let e=eM(r);c=eO(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!l||d||i?B(0):eW(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:ef,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ey(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eL(e,[],!1).filter(e=>eh(e)&&"body"!==es(e)),o=null,i="fixed"===eR(e).position,l=i?eA(e):e;for(;eh(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"===o.position||"fixed"===o.position)||eg(l)&&!n&&function e(t,n){let r=eA(t);return!(r===n||!eh(r)||eC(r))&&("fixed"===eR(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=eA(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eH(t,i[0],o),a=l.top,u=l.right,c=l.bottom,s=l.left;for(let e=1;e<i.length;e++){let n=eH(t,i[e],o);a=W(n.top,a),u=I(n.right,u),c=I(n.bottom,c),s=W(n.left,s)}return{width:u-s,height:c-a,x:s,y:a}},getOffsetParent:eK,getElementRects:e_,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ek(e);return{width:t,height:n}},getScale:eO,isElement:eh,isRTL:function(e){return"rtl"===eR(e).direction}};function ez(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eG=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}=_(e,t)||{};if(null==c)return{};let d=ee(s),f={x:n,y:r},p=G(U(o)),h=Y(p),m=await l.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],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[h]);let E=x/2-m[h]/2-1,S=I(d[v?"top":"left"],E),C=I(d[v?"bottom":"right"],E),R=x-m[h]-C,T=x/2-m[h]/2+(y/2-w/2),A=W(S,I(T,R)),L=!u.arrow&&null!=z(o)&&T!==A&&i.reference[h]/2-(T<S?S:C)-m[h]/2<0,P=L?T<S?T-S:T-R:0;return{[p]:f[p]+P,data:{[p]:A,centerOffset:T-A-P,...L&&{alignmentOffset:P}},reset:L}}});var eY="undefined"!=typeof document?a.useLayoutEffect:function(){};function eU(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(!eU(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)&&!eU(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eX(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eq(e,t){let n=eX(e);return Math.round(t*n)/n}function eZ(e){let t=a.useRef(e);return eY(()=>{t.current=e}),t}var e$=a.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,g.jsx)(m.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,g.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e$.displayName="Arrow";var eJ=n(4129),eQ="Popper",[e0,e1]=(0,p.A)(eQ),[e2,e5]=e0(eQ),e9=e=>{let{__scopePopper:t,children:n}
1=e,[r,o]=a.useState(null);return(0,g.jsx)(e2,{scope:t,anchor:r,onAnchorChange:o,children:n})};e9.displayName=eQ;var e4="PopperAnchor",e6=a.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=e5(e4,n),l=a.useRef(null),u=(0,f.s)(t,l),c=a.useRef(null);return a.useEffect(()=>{let e=c.current;c.current=(null==r?void 0:r.current)||l.current,e!==c.current&&i.onAnchorChange(c.current)}),r?null:(0,g.jsx)(m.sG.div,{...o,ref:u})});e6.displayName=e4;var e8="PopperContent",[e3,e7]=e0(e8),te=a.forwardRef((e,t)=>{var n,r,o,i,l,c,s,d;let{__scopePopper:p,side:h="bottom",sideOffset:y=0,align:w="center",alignOffset:b=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:R="partial",hideWhenDetached:T=!1,updatePositionStrategy:A="optimized",onPlaced:L,...P}=e,k=e5(e8,p),[N,O]=a.useState(null),j=(0,f.s)(t,e=>O(e)),[D,M]=a.useState(null),H=function(e){let[t,n]=a.useState(void 0);return(0,eJ.N)(()=>{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}(D),B=null!=(s=null==H?void 0:H.width)?s:0,K=null!=(d=null==H?void 0:H.height)?d:0,ee="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},et=Array.isArray(S)?S:[S],en=et.length>0,er={padding:ee,boundary:et.filter(to),altBoundary:en},{refs:ec,floatingStyles:es,placement:ed,isPositioned:ep,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:s,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=a.useState(r);eU(h,r)||m(r);let[v,g]=a.useState(null),[y,w]=a.useState(null),b=a.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=a.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),E=i||v,S=l||y,C=a.useRef(null),R=a.useRef(null),T=a.useRef(f),A=null!=s,L=eZ(s),P=eZ(o),k=eZ(d),N=a.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:h};P.current&&(e.platform=P.current),((e,t,n)=>{let r=new Map,o={platform:eV,...n},i={...o.platform,_c:r};return eo(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};O.current&&!eU(T.current,t)&&(T.current=t,u.flushSync(()=>{p(t)}))})},[h,t,n,P,k]);eY(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let O=a.useRef(!1);eY(()=>(O.current=!0,()=>{O.current=!1}),[]),eY(()=>{if(E&&(C.current=E),S&&(R.current=S),E&&S){if(L.current)return L.current(E,S,N);N()}},[E,S,N,L,A]);let j=a.useMemo(()=>({reference:C,floating:R,setReference:b,setFloating:x}),[b,x]),D=a.useMemo(()=>({reference:E,floating:S}),[E,S]),M=a.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eq(D.floating,f.x),r=eq(D.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...eX(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,c,D.floating,f.x,f.y]);return a.useMemo(()=>({...f,update:N,refs:j,elements:D,floatingStyles:M}),[f,N,j,D,M])}({strategy:"fixed",placement:h+("center"!==w?"-"+w:""),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?eL(s):[],...t?eL(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=ef(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 c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let h=F(d),m=F(o.clientWidth-(s+f)),v={rootMargin:-h+"px "+-m+"px "+-F(o.clientHeight-(d+p))+"px "+-F(s)+"px",threshold:W(0,I(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||ez(c,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),i}(s,n):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),s&&!c&&h.observe(s),t&&h.observe(t));let m=c?eM(e):null;return c&&function t(){let r=eM(e);m&&!ez(m,r)&&n(),m=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=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:k.anchor},middleware:[((e,t)=>{let n=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 eu(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);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:y+K,alignmentAxis:b}),E&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=_(e,t),s={x:n,y:r},d=await i.detectOverflow(t,c),f=U(V(o)),p=G(f),h=s[p],m=s[f];if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+d[e],r=h-d[t];h=W(n,I(h,r))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+d[e],r=m-d[t];m=W(n,I(m,r))}let v=u.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?((e,t)=>({fn: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}=_(e,t),s={x:n,y:r},d=U(o),f=G(d),p=s[f],h=s[d],m=_(a,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===f?"width":"height",t=ea.has(V(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}}(e).fn,options:[e,t]}))():void 0,...er}),E&&((e,t)=>{let n=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:h=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=_(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=V(a),x=U(s),E=V(s)===s,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),C=m||(E||!y?[Q(s)]:function(e){let t=Q(e);return[X(e),t,X(t)]}(s)),R="none"!==g;!m&&R&&C.push(...function(e,t,n,r){let o=z(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?Z:q;return t?q:Z;case"left":case"right":return t?$:J;default:return[]}}(V(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(X)))),i}(s,y,g,S));let T=[s,...C],A=await d.detectOverflow(t,w),L=[],P=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&L.push(A[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=z(e),o=G(U(e)),i=Y(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Q(l)),[l,Q(l)]}(a,c,S);L.push(A[e[0]],A[e[1]])}if(P=[...P,{placement:a,overflows:L}],!L.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=T[e];if(t&&("alignment"!==h||x===U(t)||P.every(e=>U(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(i=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=P.filter(e=>{if(R){let t=U(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);return{name:n.name,fn:n.fn,options:[e,t]}})({...er}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:c}=t,{apply:s=()=>{},...d}=_(e,t),f=await u.detectOverflow(t,d),p=V(l),h=z(l),m="y"===U(l),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"to
1p":"bottom");let y=g-f.top-f.bottom,w=v-f.left-f.right,b=I(g-f[o],y),x=I(v-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&&!h){let e=W(f.left,0),t=W(f.right,0),n=W(f.top,0),r=W(f.bottom,0);m?C=v-2*(0!==e||0!==t?e+t:W(f.left,f.right)):S=g-2*(0!==n||0!==r?n+r:W(f.top,f.bottom))}await s({...t,availableWidth:C,availableHeight:S});let R=await u.getDimensions(c.floating);return v!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...er,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"))}}),D&&((e,t)=>{let n=(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?eG({element:n.current,padding:r}).fn(t):{}:n?eG({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:D,padding:x}),ti({arrowWidth:B,arrowHeight:K}),T&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=_(e,t);switch(o){case"referenceHidden":{let e=ei(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:el(e)}}}case"escaped":{let e=ei(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:el(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...er})]}),[em,ev]=tl(ed),eg=(0,v.c)(L);(0,eJ.N)(()=>{ep&&(null==eg||eg())},[ep,eg]);let ey=null==(n=eh.arrow)?void 0:n.x,ew=null==(r=eh.arrow)?void 0:r.y,eb=(null==(o=eh.arrow)?void 0:o.centerOffset)!==0,[ex,eE]=a.useState();return(0,eJ.N)(()=>{N&&eE(window.getComputedStyle(N).zIndex)},[N]),(0,g.jsx)("div",{ref:ec.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ep?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ex,"--radix-popper-transform-origin":[null==(i=eh.transformOrigin)?void 0:i.x,null==(l=eh.transformOrigin)?void 0:l.y].join(" "),...(null==(c=eh.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,g.jsx)(e3,{scope:p,placedSide:em,onArrowChange:M,arrowX:ey,arrowY:ew,shouldHideArrow:eb,children:(0,g.jsx)(m.sG.div,{"data-side":em,"data-align":ev,...P,ref:j,style:{...P.style,animation:ep?void 0:"none"}})})})});te.displayName=e8;var tt="PopperArrow",tn={top:"bottom",right:"left",bottom:"top",left:"right"},tr=a.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e7(tt,n),i=tn[o.placedSide];return(0,g.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,g.jsx)(e$,{...r,ref:t,style:{...r.style,display:"block"}})})});function to(e){return null!==e}tr.displayName=tt;var ti=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.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,h]=tl(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=c.arrow)?void 0:o.y)?l:0)+f/2,y="",w="";return"bottom"===p?(y=s?m:"".concat(v,"px"),w="".concat(-f,"px")):"top"===p?(y=s?m:"".concat(v,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function tl(e){let[t,n="center"]=e.split("-");return[t,n]}var ta=a.forwardRef((e,t)=>
1{var n,r;let{container:o,...i}=e,[l,c]=a.useState(!1);(0,eJ.N)(()=>c(!0),[]);let s=o||l&&(null==(r=globalThis)||null==(n=r.document)?void 0:n.body);return s?u.createPortal((0,g.jsx)(m.sG.div,{...i,ref:t}),s):null});ta.displayName="Portal";var tu=Symbol("radix.slottable");function tc(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tu}var ts=n(3558),td=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});a.forwardRef((e,t)=>(0,g.jsx)(m.sG.span,{...e,ref:t,style:{...td,...e.style}})).displayName="VisuallyHidden";var tf=new WeakMap,tp=new WeakMap,th={},tm=0,tv=function(e){return e&&(e.host||tv(e.parentNode))},tg=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tv(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});th[n]||(th[n]=new WeakMap);var i=th[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=(tf.get(e)||0)+1,c=(i.get(e)||0)+1;tf.set(e,u),i.set(e,c),l.push(e),1===u&&o&&tp.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(),tm++,function(){l.forEach(function(e){var t=tf.get(e)-1,o=i.get(e)-1;tf.set(e,t),i.set(e,o),t||(tp.has(e)||e.removeAttribute(r),tp.delete(e)),o||e.removeAttribute(n)}),--tm||(tf=new WeakMap,tf=new WeakMap,tp=new WeakMap,th={})}},ty=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tg(r,o,n,"aria-hidden")):function(){return null}},tw=function(){return(tw=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 tb(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;var tx=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),tE="width-before-scroll-bar";function tS(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tC="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,tR=new WeakMap;function tT(e){return e}var tA=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=tT),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;t=[],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=tw({async:!0,ssr:!1},e),o}(),tL=function(){},tP=a.forwardRef(function(e,t){var n,r,o,i,l=a.useRef(null),u=a.useState({onScrollCapture:tL,onWheelCapture:tL,onTouchMoveCapture:tL}),c=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,S=e.gapMode,C=tb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[l,t],r=function(e){return n.forEac
1h(function(t){return tS(t,e)})},(o=(0,a.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,tC(function(){var e=tR.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tS(e,null)}),r.forEach(function(e){t.has(e)||tS(e,o)})}tR.set(i,n)},[n]),i),T=tw(tw({},C),c);return a.createElement(a.Fragment,null,m&&a.createElement(g,{sideCar:tA,removeScrollBar:h,shards:v,noRelative:y,noIsolation:w,inert:b,setCallbacks:s,allowPinchZoom:!!x,lockRef:l,gapMode:S}),d?a.cloneElement(a.Children.only(f),tw(tw({},T),{ref:R})):a.createElement(void 0===E?"div":E,tw({},T,{className:p,ref:R}),f))});tP.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tP.classNames={fullWidth:tE,zeroRight:tx};var tk=function(e){var t=e.sideCar,n=tb(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 a.createElement(r,tw({},n))};tk.isSideCarExport=!0;var tN=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=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tO=function(){var e=tN();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tj=function(){var e=tO();return function(t){return e(t.styles,t.dynamic),null}},tD={left:0,top:0,right:0,gap:0},tM=function(e){return parseInt(e||"",10)||0},tI=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[tM(n),tM(r),tM(o)]},tW=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tD;var t=tI(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])}},tH=tj(),tF="data-scroll-locked",tB=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(tF,"] {\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(tx," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tE," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tx," .").concat(tx," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tE," .").concat(tE," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tF,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},tK=function(){var e=parseInt(document.body.getAttribute(tF)||"0",10);return isFinite(e)?e:0},t_=function(){a.useEffect(function(){return document.body.setAttribute(tF,(tK()+1).toString()),function(){var e=tK()-1;e<=0?document.body.removeAttribute(tF):document.body.setAttribute(tF,e.toString())}},[])},tV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;t_();var i=a.useMemo(function(){return tW(o)},[o]);return a.createElement(tH,{styles:tB(i,!t,o,n?"":"!important")})},tz=!1;if("undefined"!=typeof window)try{var tG=Object.defineProperty({},"passive",{get:function(){return tz=!0,!0}});window.addEventListener("test",tG,tG),window.removeEventListener("test",tG,tG)}catch(e){tz=!1}var tY=!!tz&&{passive:!1},tU=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])},tX=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=tZ(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?tU(t,"overflowY"):tU(t,"overflowX")},tZ=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t$=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;
1do{if(!u)break;var h=tZ(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&tq(e,u)&&(f+=v,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}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},tJ=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tQ=function(e){return[e.deltaX,e.deltaY]},t0=function(e){return e&&"current"in e?e.current:e},t1=0,t2=[];let t5=(o=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(t1++)[0],i=a.useState(tj)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(t0),!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=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=tJ(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[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=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var h=tX(d,s);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=tX(d,s)),!h)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var m=r.current||o;return t$(m,t,e,"h"===m?u:c,!0)},[]),c=a.useCallback(function(e){if(t2.length&&t2[t2.length-1]===i){var n="deltaY"in e?tQ(e):tJ(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(t0).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=a.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=a.useCallback(function(e){n.current=tJ(e),r.current=void 0},[]),f=a.useCallback(function(t){s(t.type,tQ(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){s(t.type,tJ(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return t2.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,tY),document.addEventListener("touchmove",c,tY),document.addEventListener("touchstart",d,tY),function(){t2=t2.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,tY),document.removeEventListener("touchmove",c,tY),document.removeEventListener("touchstart",d,tY)}},[]);var h=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?a.createElement(tV,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tA.useMedium(o),tk);var t9=a.forwardRef(function(e,t){return a.createElement(tP,tw({},e,{ref:t,sideCar:t5}))});t9.classNames=tP.classNames;var t4=[" ","Enter","ArrowUp","ArrowDown"],t6=[" ","Enter"],t8="Select",[t3,t7,ne]=(0,d.N)(t8),[nt,nn]=(0,p.A)(t8,[ne,e1]),nr=e1(),[no,ni]=nt(t8),[nl,na]=nt(t8),nu=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:l,defaultValue:u,onValueChange:c,dir:s,name:d,autoComplete:f,disabled:p,required:m,form:v}=e,y=nr(t),[w,b]=a.useState(null),[x,E]=a.useState(null),[S,C]=a.useState(!1),R=(0,h.jH)(s),[T,A]=(0,ts.i)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:t8}),[L,P]=(0,ts.i)({prop:l,defaultProp:u,onChange:c,caller:t8}),k=a.useRef(null),N=!w||v||!!w.closest("form"),[O,j]=a.useState(new Set),M=Array.from(O).map(e=>e.props.value).join(";");return(0,g.jsx)(e9,{...y,children:(0,g.jsxs)(no,{required:m,scope:t,trigger:w,onTriggerChange:b,valueNode:x,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:(0,D.B)(),value:L,onValueChange:P,open:T,onOpenChange:A,dir:R,triggerPointerDownPosRef:k,disabled:p,children:[(0,g.jsx)(t3.Provider,{scope:t,children:(0,g.jsx)(nl,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(e=>{j(t=>new Set(t).add(e))},[]),onNativeOptionRemove:a.useCallback(e=>{j(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,g.jsxs)(nz,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:L,onChange:e=>P(e.target.value),disabled:p,form:v,children:[void 0===L?(0,g.jsx)("option",{value:""}):null,Array.from(O)]},M):null]})})};nu.displayName=t8;var nc="SelectTrigger",ns=a.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:r=!1,...o}=e,i=nr(n),l=ni(nc,n),u=l.disabled||r,c=(0,f.s)(t,l.onTriggerChange),d=t7(n),p=a.useRef("touch"),[h,v,y]=nY(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===l.value),r=nU(t,e,n);void 0!==r&&l.onValueChange(r.value)}),w=e=>{u||(l.onOpenChange(!0),y()),e&&(l.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,g.jsx)(e6,{asChild:!0,...i,children:(0,g.jsx)(m.sG.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":nG(l.value)?"":void 0,...o,ref:c,onClick:(0,s.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,s.mK)(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&&(w(e),e.preventDefault())}),onKeyDown:(0,s.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&t4.includes(e.key)&&(w(),e.preventDefault())})})})});ns.displayName=nc;var nd="SelectValue",nf=a.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...a}=e,u=ni(nd,n),{onValueNodeHasChildrenChange:c}=u,s=void 0!==i,d=(0,f.s)(t,u.onValueNodeChange);return(0,eJ.N)(()=>{c(s)},[c,s]),(0,g.jsx)(m.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:nG(u.value)?(0,g.jsx)(g.Fragment,{children:l}):i})});nf.displayName=nd;var np=a.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,g.jsx)(m.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});np.displayName="SelectIcon";var nh=e=>(0,g.jsx)(ta,{asChild:!0,...e});nh.displayName="SelectPortal";var nm="SelectContent",nv=a.forwardRef((e,t)=>{let n=ni(nm,e.__scopeSelect),[r,o]=a.useState();return((0,eJ.N)(()=>{o(new DocumentFragment)},[]),n.open)?(0,g.jsx)(nb,{...e,ref:t}):r?u.createPortal((0,g.jsx)(ng,{scope:e.__scopeSelect,children:(0,g.jsx)(t3.Slot,{scope:e.__scopeSelect,children:(0,g.jsx)("div",{children:e.children})})}),r):null});nv.displayName=nm;var[ng,ny]=nt(nm),nw=function(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:n,...r}=e;if(a.isValidElement(n)){var o;let e,i,l=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=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)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==a.Fragment&&(u.ref=t?(0,f.t)(t,l):l),a.cloneElement(n,u)}return a.Children.count(n)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=a.forwardRef((e,n)=>{let{children:r,...o}=e,i=a.Children.toArray(r),l=i.find(tc);if(l){let e=l.props.children,r=i.map(t=>t!==l?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,g.jsx)(t,{...o,ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,g.jsx)(t,{...o,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}("SelectContent.RemoveScroll"),nb=a.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:u,sideOffset:c,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:v,sticky:y,hideWhenDetached:w,avoidCollisions:x,...E}=e,R=ni(nm,n),[T,A]=a.useState(null),[P,k]=a.useState(null),N=(0,f.s)(t,e=>A(e)),[O,j]=a.useState(null),[D,M]=a.useState(null),I=t7(n),[W,H]=a.useState(!1),F=a.useRef(!1);a.useEffect(()=>{if(T)return ty(T)},[T]),a.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:C()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:C()),S++,()=>{1===S&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),S--}},[]);let B=a.useCallback(e=>{let[t,...n]=I().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&&P&&(P.scrollTop=0),n===r&&P&&(P.scrollTop=P.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[I,P]),K=a.useCallback(()=>B([O,T]),[B,O,T]);a.useEffect(()=>{W&&K()},[W,K]);let{onOpenChange:_,triggerPointerDownPosRef:V}=R;a.useEffect(()=>{if(T){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=V.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=V.current)?void 0:r.y)?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():T.contains(n.target)||_(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[T,_,V]),a.useEffect(()=>{let e=()=>_(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[_]);let[z,G]=nY(e=>{let t=I().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=nU(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Y=a.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==R.value&&R.value===t||r)&&(j(e),r&&(F.current=!0))},[R.value]),U=a.useCallback(()=>null==T?void 0:T.focus(),[T]),X=a.useCallback((e,t,n)=>{let r=!F.current&&!n;(void 0!==R.value&&R.value===t||r)&&M(e)},[R.value]),q="popper"===r?nE:nx,Z=q===nE?{side:u,sideOffset:c,align:d,alignOffset:p,arrowPadding:h,collisionBoundary:m,collisionPadding:v,sticky:y,hideWhenDetached:w,avoidCollisions:x}:{};return(0,g.jsx)(ng,{scope:n,content:T,viewport:P,onViewportChange:k,itemRefCallback:Y,selectedItem:O,onItemLeave:U,itemTextRefCallback:X,focusSelectedItem:K,selectedItemText:D,position:r,isPositioned:W,searchRef:z,children:(0,g.jsx)(t9,{as:nw,allowPinchZoom:!0,children:(0,g.jsx)(L,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.mK)(o,e=>{var t;null==(t=R.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,g.jsx)(b,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,g.jsx)(q,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...E,...Z,onPlaced:()=>H(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:(0,s.mK)(E.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().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()}})})})})})})});nb.displayName="SelectContentImpl";var nx=a.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...o}
1=e,i=ni(nm,n),l=ny(nm,n),[u,s]=a.useState(null),[d,p]=a.useState(null),h=(0,f.s)(t,e=>p(e)),v=t7(n),y=a.useRef(!1),w=a.useRef(!0),{viewport:b,selectedItem:x,selectedItemText:E,focusSelectedItem:S}=l,C=a.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&d&&b&&x&&E){let e=i.trigger.getBoundingClientRect(),t=d.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=v(),a=window.innerHeight-20,s=b.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),g=p+h+s+parseInt(f.paddingBottom,10)+m,w=Math.min(5*x.offsetHeight,g),S=window.getComputedStyle(b),C=parseInt(S.paddingTop,10),R=parseInt(S.paddingBottom,10),T=e.top+e.height/2-10,A=x.offsetHeight/2,L=p+h+(x.offsetTop+A);if(L<=T){let e=l.length>0&&x===l[l.length-1].ref.current;u.style.bottom="0px";let t=Math.max(a-T,A+(e?R:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+m);u.style.height=L+t+"px"}else{let e=l.length>0&&x===l[0].ref.current;u.style.top="0px";let t=Math.max(T,p+b.offsetTop+(e?C:0)+A);u.style.height=t+(g-L)+"px",b.scrollTop=L-T+b.offsetTop}u.style.margin="".concat(10,"px 0"),u.style.minHeight=w+"px",u.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>y.current=!0)}},[v,i.trigger,i.valueNode,u,d,b,x,E,i.dir,r]);(0,eJ.N)(()=>C(),[C]);let[R,T]=a.useState();(0,eJ.N)(()=>{d&&T(window.getComputedStyle(d).zIndex)},[d]);let A=a.useCallback(e=>{e&&!0===w.current&&(C(),null==S||S(),w.current=!1)},[C,S]);return(0,g.jsx)(nS,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:y,onScrollButtonChange:A,children:(0,g.jsx)("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:(0,g.jsx)(m.sG.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});nx.displayName="SelectItemAlignedPosition";var nE=a.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,l=nr(n);return(0,g.jsx)(te,{...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)"}})});nE.displayName="SelectPopperPosition";var[nS,nC]=nt(nm,{}),nR="SelectViewport",nT=a.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...o}=e,i=ny(nR,n),l=nC(nR,n),u=(0,f.s)(t,i.onViewportChange),c=a.useRef(0);return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsx)(t3.Slot,{scope:n,children:(0,g.jsx)(m.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,s.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=l;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})})})]})});nT.displayName=nR;var nA="SelectGroup",[nL,nP]=nt(nA),nk=a.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=(0,D.B)();return(0,g.jsx)(nL,{scope:n,id:o,children:(0,g.jsx)(m.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})});nk.displayName=nA;var nN="SelectLabel";a.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=nP(nN,n);return(0,g.jsx)(m.sG.div,{id:o.id,...r,ref:t})}).displayName=nN;var nO="SelectItem",[nj,nD]=nt(nO),nM=a.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,u=ni(nO,n),c=ny(nO,n),d=u.value===r,[p,h]=a.useState(null!=i?i:""),[v,y]=a.useState(!1),w=(0,f.s)(t,e=>{var t;return null==(t=c.itemRefCallback)?void 0:t.call(c,e,r,o)}),b=(0,D.B)(),x=a.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,g.jsx)(nj,{scope:n,value:r,disabled:o,textId:b,isSelected:d,onItemTextChange:a.useCallback(e=>{h(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,g.jsx)(t3.ItemSlot,{scope:n,value:r,disabled:o,textValue:p,children:(0,g.jsx)(m.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:w,onFocus:(0,s.mK)(l.onFocus,()=>y(!0)),onBlur:(0,s.mK)(l.onBlur,()=>y(!1)),onClick:(0,s.mK)(l.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:(0,s.mK)(l.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:(0,s.mK)(l.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,s.mK)(l.onPointerMove,e=>{if(x.current=e.pointerType,o){var t;null==(t=c.onItemLeave)||t.call(c)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.mK)(l.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=c.onItemLeave)||t.call(c)}}),onKeyDown:(0,s.mK)(l.onKeyDown,e=>{var t;((null==(t=c.searchRef)?void 0:t.current)===""||" "!==e.key)&&(t6.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});nM.displayName=nO;var nI="SelectItemText",nW=a.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,...i}=e,l=ni(nI,n),c=ny(nI,n),s=nD(nI,n),d=na(nI,n),[p,h]=a.useState(null),v=(0,f.s)(t,e=>h(e),s.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,s.value,s.disabled)}),y=null==p?void 0:p.textContent,w=a.useMemo(()=>(0,g.jsx)("option",{value:s.value,disabled:s.disabled,children:y},s.value),[s.disabled,s.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=d;return(0,eJ.N)(()=>(b(w),()=>x(w)),[b,x,w]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(m.sG.span,{id:s.textId,...i,ref:v}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren?u.createPortal(i.children,l.valueNode):null]})});nW.displayName=nI;var nH="SelectItemIndicator",nF=a.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return nD(nH,n).isSelected?(0,g.jsx)(m.sG.span,{"aria-hidden":!0,...r,ref:t}):null});nF.displayName=nH;var nB="SelectScrollUpButton";a.forwardRef((e,t)=>{let n=ny(nB,e.__scopeSelect),r=nC(nB,e.__scopeSelect),[o,i]=a.useState(!1),l=(0,f.s)(t,r.onScrollButtonChange);return(0,eJ.N)(()=>{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,g.jsx)(n_,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=nB;var nK="SelectScrollDownButton";a.forwardRef((e,t)=>{let n=ny(nK,e.__scopeSelect),r=nC(nK,e.__scopeSelect),[o,i]=a.useState(!1),l=(0,f.s)(t,r.onScrollButtonChange);return(0,eJ.N)(()=>{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,g.jsx)(n_,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=nK;var n_=a.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ny("SelectScrollButton",n),l=a.useRef(null),u=t7(n),c=a.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return a.useEffect(()=>()=>c(),[c]),(0,eJ.N)(()=>{var e;let t=u().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[u]),(0,g.jsx)(m.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,s.mK)(o.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(r,50))}),onPointerMove:(0,s.mK)(o.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===l.current&&(l.current=window.setInterval(r,50))}),onPointerLeave:(0,s.mK)(o.onPointerLeave,()=>{c()})})});a.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e;return(0,g.jsx)(m.sG.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var nV="SelectArrow";a.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=nr(n),i=ni(nV,n),l=ny(nV,n);return i.open&&"popper"===l.position?(0,g.jsx)(tr,{...o,...r,ref:t}):null}).displayName=nV;var nz=a.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...o}=e,i=a.useRef(null),l=(0,f.s)(t,i),u=function(e){let t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return a.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[u,r]),(0,g.jsx)(m.sG.select,{...o,style:{...td,...o.style},ref:l,defaultValue:r})});function nG(e){return""===e||void 0===e}function nY(e){let t=(0,v.c)(e),n=a.useRef(""),r=a.useRef(0),o=a.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=a.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function nU(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,a=(r=e,o=Math.max(l,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}nz.displayName="SelectBubbleInput";var nX=nu,nq=ns,nZ=nf,n$=np,nJ=nh,nQ=nv,n0=nT,n1=nk,n2=nM,n5=nW,n9=nF},5917:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(1847).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},9863:(e,t,n)=>{n.d(t,{Zr:()=>o});let r=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>r(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},o=(e,t)=>(n,o,i)=>{let l,a={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=n.getItem(e))?t:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=0,s=new Set,d=new Set,f=a.storage;if(!f)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},o,i);let p=()=>{let e=a.partialize({...o()});return f.setItem(a.name,{state:e,version:a.version})},h=i.setState;i.setState=(e,t)=>(h(e,t),p());let m=e((...e)=>(n(...e),p()),o,i);i.getInitialState=()=>m;let v=()=>{var e,t;if(!f)return;let i=++c;u=!1,s.forEach(e=>{var t;return e(null!=(t=o())?t:m)});let h=(null==(t=a.onRehydrateStorage)?void 0:t.call(a,null!=(e=o())?e:m))||void 0;return r(f.getItem.bind(f))(a.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];else{if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(i!==c)return;let[r,u]=e;if(n(l=a.merge(u,null!=(t=o())?t:m),!0),r)return p()}).then(()=>{i===c&&(null==h||h(l,void 0),l=o(),u=!0,d.forEach(e=>e(l)))}).catch(e=>{i===c&&(null==h||h(void 0,e))})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(f=e.storage)},clearStorage:()=>{null==f||f.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>u,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},a.skipHydration||v(),l||m}}}]);

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.