1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2227],{101:(e,t,n)=>{n.d(t,{A:()=>V});var r,o,i=function(){return(i=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 l(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 a=("function"==typeof SuppressedError&&SuppressedError,n(2115)),u="right-scroll-bar-position",s="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function p(e){return e}var h=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=p),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=i({async:!0,ssr:!1},e),o}(),v=function(){},m=a.forwardRef(function(e,t){var n,r,o,u,s=a.useRef(null),p=a.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),m=p[0],g=p[1],y=e.forwardProps,w=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,C=e.shards,R=e.sideCar,k=e.noRelative,A=e.noIsolation,S=e.inert,j=e.allowPinchZoom,M=e.as,O=e.gapMode,L=l(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=(n=[s,t],r=function(e){return n.forEach(function(t){return c(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,u=o.facade,d(function(){var e=f.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}f.set(u,n)},[n]),u),D=i(i({},L),m);return a.createElement(a.Fragment,null,E&&a.createElement(R,{sideCar:h,removeScrollBar:x,shards:C,noRelative:k,noIsolation:A,inert:S,setCallbacks:g,allowPinchZoom:!!j,lockRef:s,gapMode:O}),y?a.cloneElement(a.Children.only(w),i(i({},D),{ref:P})):a.createElement(void 0===M?"div":M,i({},D,{className:b,ref:P}),w))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:s,zeroRight:u};var g=function(e){var t=e.sideCar,n=l(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,i({},n))};g.isSideCarExport=!0;var y=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=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=r:i.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)}}},w=function(){var e=y();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},C=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[E(n),E(r),E(o)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=C(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])}},k=b(),A="data-scroll-locked",S=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(A,"] {\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,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(u," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(s," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n right: 0 ").concat(r,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},M=function(){a.useEffect(function(){return document.body.setAttribute(A,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;M();var i=a.useMemo(function(){return R(o)},[o]);return a.createElement(k,{styles:S(i,!t,o,n?"":"!important")})},L=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return L=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){L=!1}var D=!!L&&{passive:!1},T=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])},_=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),I(e,r)){var o=N(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},I=function(e,t){return"v"===e?T(t,"overflowY"):T(t,"overflowX")},N=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,s=t.contains(u),c=!1,d=a>0,f=0,p=0;do{if(!u)break;var h=N(e,u),v=h[0],m=h[1]-h[2]-l*v;(v||m)&&I(e,u)&&(f+=m,p+=v);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&a>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(c=!0),c},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},W=function(e){return e&&"current"in e?e.current:e},B=0,H=[];let z=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(B++)[0],i=a.useState(b)[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(W),!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=K(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=_(d,c);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=_(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var v=r.current||o;return F(v,t,e,"h"===v?u:s,!0)},[]),s=a.useCallback(function(e){if(H.length&&H[H.length-1]===i){var n="deltaY"in e?G(e):K(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}
1if(!r){var o=(l.current.shards||[]).map(W).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=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=K(e),r.current=void 0},[]),f=a.useCallback(function(t){c(t.type,G(t),t.target,u(t,e.lockRef.current))},[]),p=a.useCallback(function(t){c(t.type,K(t),t.target,u(t,e.lockRef.current))},[]);a.useEffect(function(){return H.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,D),document.addEventListener("touchmove",s,D),document.addEventListener("touchstart",d,D),function(){H=H.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,D),document.removeEventListener("touchmove",s,D),document.removeEventListener("touchstart",d,D)}},[]);var h=e.removeScrollBar,v=e.inert;return a.createElement(a.Fragment,null,v?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(O,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},h.useMedium(r),g);var q=a.forwardRef(function(e,t){return a.createElement(m,i({},e,{ref:t,sideCar:z}))});q.classNames=m.classNames;let V=q},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),[])}},1402:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return m}});let r=n(8140),o=n(9417),i=n(5155),l=r._(n(7650)),a=o._(n(2115)),u=n(2073),s=n(4681),c=n(4853),d=n(9001),f=new Map,p=new Set,h=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:a="",strategy:u="afterInteractive",onError:c,stylesheets:d}=e,h=n||t;if(h&&p.has(h))return;if(f.has(t)){p.add(h),f.get(t).then(r,c);return}let v=()=>{o&&o(),p.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),r&&r.call(this,t),v()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(m.innerHTML=i.__html||"",v()):a?(m.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",v()):t&&(m.src=t,f.set(t,g)),(0,s.setAttributesFromProps)(m,e),"worker"===u&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",u),d&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(d),document.body.appendChild(m)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:v,...m}=e,{updateScripts:g,scripts:y,getIsSsr:w,appDir:b,nonce:x}=(0,a.useContext)(u.HeadManagerContext);x=m.nonce||x;let E=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=t||n;E.current||(o&&e&&p.has(e)&&o(),E.current=!0)},[o,t,n]);let C=(0,a.useRef)(!1);if((0,a.useEffect)(()=>{if(!C.current){if("afterInteractive"===s)h(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}));C.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(y[s]=(y[s]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:f,...m,nonce:x}]),g(y)):w&&w()?p.add(t||n):w&&!w()&&h({...e,nonce:x}
1)),b){if(v&&v.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!n)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))+")"}});else return l.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:x,crossOrigin:m.crossOrigin}:{as:"script",nonce:x,crossOrigin:m.crossOrigin}),(0,i.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([n,{...m,id:t}]))+")"}});"afterInteractive"===s&&n&&l.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:x,crossOrigin:m.crossOrigin}:{as:"script",nonce:x,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let y=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1873:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},1887:(e,t,n)=>{n.d(t,{b:()=>c,l:()=>s});var r=n(2115),o=n(2556),i=n(3558),l=n(7602),a=n(5155),u="Toggle",s=r.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:s,...c}=e,[d,f]=(0,i.i)({prop:n,onChange:s,defaultProp:null!=r&&r,caller:u});return(0,a.jsx)(l.sG.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...c,ref:t,onClick:(0,o.mK)(e.onClick,()=>{e.disabled||f(!d)})})});s.displayName=u;var c=s},1987:(e,t,n)=>{n.d(t,{e0:()=>p,qW:()=>f});var r,o=n(2115),i=n(2556),l=n(7602),a=n(4446),u=n(222),s=n(5155),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:p=!1,deferPointerDownOutside:g=!1,onEscapeKeyDown:y,onPointerDownOutside:w,onFocusOutside:b,onInteractOutside:x,onDismiss:E,...C}=e,R=o.useContext(d),[k,A]=o.useState(null),S=null!=(f=null==k?void 0:k.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,j]=o.useState({}),M=(0,a.s)(t,A),O=Array.from(R.layers),[L]=[...R.layersWithOutsidePointerEventsDisabled].slice(-1),P=L?O.indexOf(L):-1,D=k?O.indexOf(k):-1,T=R.layersWithOutsidePointerEventsDisabled.size>0,_=D>=P,I=o.useRef(!1),N=function(e,t){var n;let{ownerDocument:r=null==(n=globalThis)?void 0:n.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:l,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=h}=t,c=(0,u.c)(e),d=o.useRef(!1),f=o.useRef(!1),p=o.useRef(new Map),v=o.useRef(()=>{});return o.useEffect(()=>{function e(){f.current=!1,l.current=!1,p.current.clear()}function t(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||p.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{f.current&&v.current()},0)}function n(e){f.current&&p.current.set(e.type,!1)}let o=t=>{if(t.target&&!d.current){let n=function(){r.removeEventListener("click",v.current);let t=Array.from(p.current.values()).some(Boolean);e(),t||m("dismissableLayer.pointerDownOutside",c,o,{discrete:!0})};if(!s(t.target)){r.removeEventListener("click",v.current),e(),d.current=!1;return}let o={originalEvent:t};f.current=!0,l.current=i&&0===t.button,p.current.clear(),i&&0===t.button?(r.removeEventListener("click",v.current),v.current=n,r.addEventListener("click",v.current,{once:!0})):n()}else r.removeEventListener("click",v.current),e();d.current=!1},u=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of u)r.addEventListener(e,t,!0),r.addEventListener(e,n);let h=window.setTimeout(()=>{r.addEventListener("pointerdown",o)},0);return()=>{for(let e of(window.clearTimeout(h),r.removeEventListener("pointerdown",o),r.removeEventListener("click",v.current),u))r.removeEventListener(e,t,!0),r.removeEventListener(e,n)}},[r,c,i,l,a,s]),{onPointerDownCapture:()=>d.current=!0}}(e=>{null==w||w(e),null==x||x(e),e.defaultPrevented||null==E||E()},{ownerDocument:S,deferPointerDownOutside:g,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:R.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...R.branches].some(t=>t.contains(e));return _&&!t},[R.branches,_])}),F=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{if(g&&I.current)return;let t=e.target;![...R.branches].some(e=>e.contains(t))&&(null==b||b(e),null==x||x(e),e.defaultPrevented||null==E||E())},S),K=!!k&&D===O.length-1,G=(0,u.c)(e=>{"Escape"===e.key&&(null==y||y(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))});return o.useEffect(()=>{if(K)return S.addEventListener("keydown",G,{capture:!0}),()=>S.removeEventListener("keydown",G,{capture:!0})},[S,K,G]),o.useEffect(()=>{if(k)return p&&(0===R.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),R.layersWithOutsidePointerEventsDisabled.add(k)),R.layers.add(k),v(),()=>{p&&(R.layersWithOutsidePointerEventsDisabled.delete(k),0===R.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r))}},[k,S,p,R]),o.useEffect(()=>()=>{k&&(R.layers.delete(k),R.layersWithOutsidePointerEventsDisabled.delete(k),v())},[k,R]),o.useEffect(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(l.sG.div,{...C,ref:M,style:{pointerEvents:T?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,N.onPointerDownCapture)})});function p(){let e=o.useContext(d),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(d),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(l.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var h=()=>!0;function v(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}},2104:(e,t,n)=>{let r;n.d(t,{H_:()=>nk,UC:()=>nx,YJ:()=>nE,q7:()=>nR,VF:()=>nj,JU:()=>nC,ZL:()=>nb,z6:()=>nA,hN:()=>nS,bL:()=>ny,wv:()=>nM,Pb:()=>nO,G5:()=>nP,ZP:()=>nL,l9:()=>nw});var o=n(2115),i=n(2556),l=n(4446),a=n(3468),u=n(3558),s=n(7602),c=n(9972),d=n(6218),f=n(1987),p=n(9526),h=n(9666),v=n(8946);let m=["top","right","bottom","left"],g=Math.min,y=Math.max,w=Math.round,b=Math.floor,x=e=>({x:e,y:e}),E={left:"right",right:"left",bottom:"top",top:"bottom"};function C(e,t){return"function"==typeof e?e(t):e}function R(e){return e.split("-")[0]}function k(e){return e.split("-")[1]}function A(e){return"x"===e?"y":"x"}function S(e){return"y"===e?"height":"width"}function j(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function M(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let O=["left","right"],L=["right","left"],P=["top","bottom"],D=["bottom","top"];function T(e){let t=R(e);return E[t]+e.slice(t.length)}function _(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function I(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 N(e,t,n){let r,{reference:o,floating:i}=e,l=j(t),a=A(j(t)),u=S(a),s=R(t),c=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[u]/2-i[u]/2;switch(s){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}let p=k(t);return p&&(r[a]+=f*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function F(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=C(t,e),h=_(p),v=a[f?"floating"===d?"reference":"floating":d],m=I(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,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=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-b.top+h.top)/w.y,bottom:(b.bottom-m.bottom+h.bottom)/w.y,left:(m.left-b.left+h.left)/w.x,right:(b.right-m.right+h.right)/w.x}}let K=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:F},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=N(s,r,u),f=r,p=0,h={};for(let n=0;n<i.length;n++){let v=i[n];if(!v)continue;let{name:m,fn:g}=v,{x:y,y:w,data:b,reset:x}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=w?w:d,h[m]={...h[m],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:d}=N(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};function G(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function W(e){return m.some(t=>e[t]>=0)}let B=new Set(["left","top"]);async function H(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=R(n),a=k(n),u="y"===j(n),s=B.has(l)?-1:1,c=i&&u?-1:1,d=C(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{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*c,y:f*s}:{x:f*s,y:p*c}}function z(){return"undefined"!=typeof window}function q(e){return U(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function X(e){var t;return null==(t=(U(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function U(e){return!!z()&&(e instanceof Node||e instanceof V(e).Node)}function Y(e){return!!z()&&(e instanceof Element||e instanceof V(e).Element)}function Z(e){return!!z()&&(e instanceof HTMLElement||e instanceof V(e).HTMLElement)}function J(e){return!!z()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof V(e).ShadowRoot)}function $(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=Y(e)?el(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!eo()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function eo(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ei(e){return/^(html|body|#document)$/.test(q(e))}function el(e){return V(e).getComputedStyle(e)}function ea(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===q(e))return e;let t=e.assignedSlot||e.parentNode||J(e)&&e.host||X(e);return J(t)?t.host:t}
1function es(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return ei(n)?(t.ownerDocument||t).body:Z(n)&&$(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=V(o);if(!i)return t.concat(o,es(o,[],n));{let e=ec(l);return t.concat(l,l.visualViewport||[],$(o)?o:[],e&&n?es(e):[])}}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ed(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Z(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=w(n)!==i||w(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ef(e){return Y(e)?e:e.contextElement}function ep(e){let t=ef(e);if(!Z(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ed(t),l=(i?w(n.width):n.width)/r,a=(i?w(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eh=x(0);function ev(e){let t=V(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function em(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ef(e),a=x(1);t&&(r?Y(r)&&(a=ep(r)):a=ep(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===V(l))?ev(l):x(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l&&r){let e=V(l),t=Y(r)?V(r):r,n=e,o=ec(n);for(;o&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=l,o=ec(n=V(o))}}return I({width:d,height:f,x:s,y:c})}function eg(e,t){let n=ea(e).scrollLeft;return t?t.left+n:em(X(e)).left+n}function ey(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eg(e,n),y:n.top+t.scrollTop}}function ew(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=V(e),i=X(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,s=0,c=0;if(l){let e=!eo()||"fixed"===t;r?e||(s=-l.offsetLeft,c=-l.offsetTop):(a=l.width,u=l.height,e&&(s=l.offsetLeft,c=l.offsetTop))}if(0>=eg(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:s,y:c}}(e,n,t);else if("document"===t)r=function(e){let t=ea(e),n=e.ownerDocument.body,r=y(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=y(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+eg(e),l=-t.scrollTop;return"rtl"===el(n).direction&&(i+=y(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(X(e));else if(Y(t))r=function(e,t){let n=em(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ep(e),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=ev(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return I(r)}function eb(e){return"static"===el(e).position}function ex(e,t){if(!Z(e)||"fixed"===el(e).position)return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function eE(e,t){var n;let r=V(e);if(Q(e))return r;if(!Z(e)){let t=eu(e);for(;t&&!ei(t);){if(Y(t)&&!eb(t))return t;t=eu(t)}return r}let o=ex(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(q(n)))&&eb(o);)o=ex(o,t);return o&&ei(o)&&eb(o)&&!er(o)?r:o||function(e){let t=eu(e);for(;Z(t)&&!ei(t);){if(er(t))return t;if(Q(t))break;t=eu(t)}return null}(e)||r}let eC=async function(e){let t=this.getOffsetParent||eE,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Z(t),o=X(t),i="fixed"===n,l=em(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=x(0);if((r||!i)&&(("body"!==q(t)||$(o))&&(a=ea(t)),r)){let e=em(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=eg(o));let s=!o||r||i?x(0):ey(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eR={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=X(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=x(1),c=x(0),d=Z(r);
1if((d||!i)&&(("body"!==q(r)||$(l))&&(u=ea(r)),d)){let e=em(r);s=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?x(0):ey(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:X,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=es(e,[],!1).filter(e=>Y(e)&&"body"!==q(e)),o=null,i="fixed"===el(e).position,l=i?eu(e):e;for(;Y(l)&&!ei(l);){let e=el(l),t=er(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=eu(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ew(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=ew(t,i[e],o);a=y(n.top,a),u=g(n.right,u),s=g(n.bottom,s),c=y(n.left,c)}return{width:u-c,height:s-a,x:c,y:a}},getOffsetParent:eE,getElementRects:eC,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ed(e);return{width:t,height:n}},getScale:ep,isElement:Y,isRTL:function(e){return"rtl"===el(e).direction}};function ek(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eA=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:s,padding:c=0}=C(e,t)||{};if(null==s)return{};let d=_(c),f={x:n,y:r},p=A(j(o)),h=S(p),v=await l.getDimensions(s),m="y"===p,w=m?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),R=E?E[w]:0;R&&await (null==l.isElement?void 0:l.isElement(E))||(R=a.floating[w]||i.floating[h]);let M=R/2-v[h]/2-1,O=g(d[m?"top":"left"],M),L=g(d[m?"bottom":"right"],M),P=R-v[h]-L,D=R/2-v[h]/2+(b/2-x/2),T=y(O,g(D,P)),I=!u.arrow&&null!=k(o)&&D!==T&&i.reference[h]/2-(D<O?O:L)-v[h]/2<0,N=I?D<O?D-O:D-P:0;return{[p]:f[p]+N,data:{[p]:T,centerOffset:D-T-N,...I&&{alignmentOffset:N}},reset:I}}});var eS=n(7650),ej="undefined"!=typeof document?o.useLayoutEffect:function(){};function eM(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(!eM(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)&&!eM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eO(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eL(e,t){let n=eO(e);return Math.round(t*n)/n}function eP(e){let t=o.useRef(e);return ej(()=>{t.current=e}),t}var eD=n(5155),eT=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eD.jsx)(s.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eD.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eT.displayName="Arrow";var e_=n(222),eI=n(4129),eN=n(4288),eF="Popper",[eK,eG]=(0,a.A)(eF),[eW,eB]=eK(eF),eH=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eD.jsx)(eW,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})};eH.displayName=eF;var ez="PopperAnchor",eq=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=eB(ez,n),u=o.useRef(null),c=a.onAnchorChange,d=o.useCallback(e=>{u.current=e,e&&c(e)},[c]),f=(0,l.s)(t,d),p=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=p.current;p.current=r.current,e!==p.current&&c(p.current)});let h=a.placementState&&e1(a.placementState),v=null==h?void 0:h[0],m=null==h?void 0:h[1];return r?null:(0,eD.jsx)(s.sG.div,{"data-radix-popper-side":v,"data-radix-popper-align":m,...i,ref:f})});eq.displayName=ez;var eV="PopperContent",[eX,eU]=eK(eV),eY=o.forwardRef((e,t)=>{var n,r,i,a,u,c,d,f;let{__scopePopper:p,side:h="bottom",sideOffset:v=0,align:m="center",alignOffset:w=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:_=[],collisionPadding:I=0,sticky:N="partial",hideWhenDetached:F=!1,updatePositionStrategy:z="optimized",onPlaced:q,...U}=e,Y=eB(eV,p),[Z,J]=o.useState(null),$=(0,l.s)(t,J),[Q,ee]=o.useState(null),et=(0,eN.X)(Q),en=null!=(d=null==et?void 0:et.width)?d:0,er=null!=(f=null==et?void 0:et.height)?f:0,eo="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},ei=Array.isArray(_)?_:[_],el=ei.length>0,ea={padding:eo,boundary:ei.filter(eQ),altBoundary:el},{refs:eu,floatingStyles:ec,placement:ed,isPositioned:ep,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}
1),[p,h]=o.useState(r);eM(p,r)||h(r);let[v,m]=o.useState(null),[g,y]=o.useState(null),w=o.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=o.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=l||v,E=a||g,C=o.useRef(null),R=o.useRef(null),k=o.useRef(d),A=null!=s,S=eP(s),j=eP(i),M=eP(c),O=o.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};j.current&&(e.platform=j.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...eR,...o.platform,_c:r};return K(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==M.current};L.current&&!eM(k.current,t)&&(k.current=t,eS.flushSync(()=>{f(t)}))})},[p,t,n,j,M]);ej(()=>{!1===c&&k.current.isPositioned&&(k.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let L=o.useRef(!1);ej(()=>(L.current=!0,()=>{L.current=!1}),[]),ej(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(S.current)return S.current(x,E,O);O()}},[x,E,O,S,A]);let P=o.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),D=o.useMemo(()=>({reference:x,floating:E}),[x,E]),T=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eL(D.floating,d.x),r=eL(D.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eO(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,D.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:O,refs:P,elements:D,floatingStyles:T}),[d,O,P,D,T])}({strategy:"fixed",placement:h+("center"!==m?"-"+m:""),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:s=!1}=r,c=ef(e),d=i||l?[...c?es(c):[],...t?es(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let f=c&&u?function(e,t,n){let r,o=null,i=X(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=s;if(n||t(),!f||!p)return;let h=b(d),v=b(i.clientWidth-(c+f)),m={rootMargin:-h+"px "+-v+"px "+-b(i.clientHeight-(d+p))+"px "+-b(c)+"px",threshold:y(0,g(1,u))||1},w=!0;function x(t){let n=t[0].intersectionRatio;if(!ek(s,e.getBoundingClientRect()))return a();if(n!==u){if(!w)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}w=!1}try{o=new IntersectionObserver(x,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(x,m)}o.observe(e)}let u=V(e),s=()=>a(n);return u.addEventListener("resize",s),a(!0),()=>{u.removeEventListener("resize",s),l()}}(c,n,l):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let v=s?em(e):null;return s&&function t(){let r=em(e);v&&!ek(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===z})},elements:{reference:Y.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 H(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:v+er,alignmentAxis:w}),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}}},...s}=C(e,t),c={x:n,y:r},d=await i.detectOverflow(t,s),f=j(o),p=A(f),h=c[p],v=c[f],m=(e,t)=>y(t+d["y"===e?"top":"left"],g(t,t-d["y"===e?"bottom":"right"]));l&&(h=m(p,h)),a&&(v=m(f,v));let w=u.fn({...t,[p]:h,[f]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?((e,t)=>
1({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r,o,i;let{x:l,y:a,placement:u,rects:s,middlewareData:c}=t,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=C(e,t),h={x:l,y:a},v=j(u),m=A(v),g=h[m],y=h[v],w=C(d,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(n=w.mainAxis)?n:0,crossAxis:null!=(r=w.crossAxis)?r:0};if(f){let e="y"===m?"height":"width",t=s.reference[m]-s.floating[e]+b.mainAxis,n=s.reference[m]+s.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(p){let e="y"===m?"width":"height",t=B.has(R(u)),n=s.reference[v]-s.floating[e]+(t&&(null==(o=c.offset)?void 0:o[v])||0)+(t?0:b.crossAxis),r=s.reference[v]+s.reference[e]+(t?0:(null==(i=c.offset)?void 0:i[v])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[m]:g,[v]:y}}}}(e).fn,options:[e,t]}))():void 0,...ea}),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:s,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=C(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=R(a),x=j(c),E=R(c)===c,_=await (null==d.isRTL?void 0:d.isRTL(f.floating)),I=v||(E||!y?[T(c)]:function(e){let t=T(e);return[M(e),t,M(t)]}(c)),N="none"!==g;!v&&N&&I.push(...function(e,t,n,r){let o=k(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?L:O;return t?O:L;case"left":case"right":return t?P:D;default:return[]}}(R(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(M)))),i}(c,y,g,_));let F=[c,...I],K=await d.detectOverflow(t,w),G=[],W=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&G.push(K[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=k(e),o=A(j(e)),i=S(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=T(l)),[l,T(l)]}(a,s,_);G.push(K[e[0]],K[e[1]])}if(W=[...W,{placement:a,overflows:G}],!G.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=F[e];if(t&&("alignment"!==h||x===j(t)||W.every(e=>j(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let n=null==(i=W.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=W.filter(e=>{if(N){let t=j(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=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ea}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:o,rects:i,platform:l,elements:a}=t,{apply:u=()=>{},...s}=C(e,t),c=await l.detectOverflow(t,s),d=R(o),f=k(o),p="y"===j(o),{width:h,height:v}=i.floating;"top"===d||"bottom"===d?(n=d,r=f===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=d,n="end"===f?"top":"bottom");let m=v-c.top-c.bottom,w=h-c.left-c.right,b=g(v-c[n],m),x=g(h-c[r],w),E=t.middlewareData.shift,A=!E,S=b,M=x;null!=E&&E.enabled.x&&(M=w),null!=E&&E.enabled.y&&(S=m),A&&!f&&(p?M=h-2*y(c.left,c.right):S=v-2*y(c.top,c.bottom)),await u({...t,availableWidth:M,availableHeight:S});let O=await l.getDimensions(a.floating);return h!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ea,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"))}}),Q&&((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?eA({element:n.current,padding:r}).fn(t):{}:n?eA({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:Q,padding:x}),e0({arrowWidth:en,arrowHeight:er}),F&&((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}=C(e,t);switch(o){case"referenceHidden":{let e=G(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:W(e)}}}case"escaped":{let e=G(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:W(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...ea,boundary:el?ea.boundary:void 0})]}),ev=Y.setPlacementState;(0,eI.N)(()=>(ev(ed),()=>{ev(void 0)}),[ed,ev]);let[eg,ey]=e1(ed),ew=(0,e_.c)(q);(0,eI.N)(()=>{ep&&(null==ew||ew())},[ep,ew]);let eb=null==(n=eh.arrow)?void 0:n.x,ex=null==(r=eh.arrow)?void 0:r.y,eE=(null==(i=eh.arrow)?void 0:i.centerOffset)!==0,[eC,eT]=o.useState();return(0,eI.N)(()=>{Z&&eT(window.getComputedStyle(Z).zIndex)},[Z]),(0,eD.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...ec,transform:ep?ec.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eC,"--radix-popper-transform-origin":[null==(a=eh.transformOrigin)?void 0:a.x,null==(u=eh.transformOrigin)?void 0:u.y].join(" "),...(null==(c=eh.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eD.jsx)(eX,{scope:p,placedSide:eg,placedAlign:ey,onArrowChange:ee,arrowX:eb,arrowY:ex,shouldHideArrow:eE,children:(0,eD.jsx)(s.sG.div,{"data-side":eg,"data-align":ey,...U,ref:$,style:{...U.style,animation:ep?void 0:"none"}})})})});eY.displayName=eV;var eZ="PopperArrow",eJ={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},e$=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eU(eZ,n),i=eJ[o.placedSide];return(0,eD.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,eD.jsx)(eT,{...r,ref:t,style:{...r.style,display:"block"}})})});function eQ(e){return null!==e}e$.displayName=eZ;var e0=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=e1(a),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+f/2,y="",w="";return"bottom"===p?(y=c?v:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=c?v:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=c?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function e1(e){let[t,n="center"]=e.split("-");return[t,n]}var e2=n(5433),e5=n(6842),e6=n(7308),e4=n(2467),e3=n(7745),e8=n(101),e9=["Enter"," "],e7=["ArrowUp","PageDown","End"],te=["ArrowDown","PageUp","Home",...e7],tt={ltr:[...e9,"ArrowRight"],rtl:[...e9,"ArrowLeft"]},tn={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tr="Menu",[to,ti,tl]=(0,c.N)(tr),[ta,tu]=(0,a.A)(tr,[tl,eG,e6.RG]),ts=eG(),tc=(0,e6.RG)(),[td,tf]=ta(tr),[tp,th]=ta(tr),tv=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=ts(t),[s,c]=o.useState(null),f=o.useRef(!1),p=(0,e_.c)(l),h=(0,d.jH)(i);return o.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),o.useEffect(()=>{if(!n)return;let e=()=>p(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,p]),(0,eD.jsx)(eH,{...u,children:(0,eD.jsx)(td,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:c,children:(0,eD.jsx)(tp,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:a,children:r})})})};tv.displayName=tr;var tm=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ts(n);return(0,eD.jsx)(eq,{...o,...r,ref:t})});tm.displayName="MenuAnchor";var tg="MenuPortal",[ty,tw]=ta(tg,{forceMount:void 0}),tb=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tf(tg,t);return(0,eD.jsx)(ty,{scope:t,forceMount:n,children:(0,eD.jsx)(e5.C,{present:n||i.open,children:(0,eD.jsx)(e2.Z,{asChild:!0,container:o,children:r})})})};tb.displayName=tg;var tx="MenuContent",[tE,tC]=ta(tx),tR=o.forwardRef((e,t)=>{let n=tw(tx,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tf(tx,e.__scopeMenu),l=th(tx,e.__scopeMenu);return(0,eD.jsx)(to.Provider,{scope:e.__scopeMenu,children:(0,eD.jsx)(e5.C,{present:r||i.open,children:(0,eD.jsx)(to.Slot,{scope:e.__scopeMenu,children:l.modal?(0,eD.jsx)(tk,{...o,ref:t}):(0,eD.jsx)(tA,{...o,ref:t})})})})}),tk=o.forwardRef((e,t)=>{let n=tf(tx,e.__scopeMenu),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,e3.Eq)(e)},[]),(0,eD.jsx)(tj,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tA=o.forwardRef((e,t)=>{let n=tf(tx,e.__scopeMenu);return(0,eD.jsx)(tj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tS=(0,e4.TL)("MenuContent.ScrollLock"),tj=o.forwardRef((e,t)=>
1{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:w,disableOutsideScroll:b,...x}=e,E=tf(tx,n),C=th(tx,n),R=ts(n),k=tc(n),A=ti(n),[S,j]=o.useState(null),M=o.useRef(null),O=(0,l.s)(t,M,E.onContentChange),L=o.useRef(0),P=o.useRef(""),D=o.useRef(0),T=o.useRef(null),_=o.useRef("right"),I=o.useRef(0),N=b?e8.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(L.current),[]),(0,p.Oh)();let F=o.useCallback(e=>{var t,n;return _.current===(null==(t=T.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,d=a.y;s>r!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=T.current)?void 0:n.area)},[]);return(0,eD.jsx)(tE,{scope:n,searchRef:P,onItemEnter:o.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:o.useCallback(e=>{var t;F(e)||(null==(t=M.current)||t.focus(),j(null))},[F]),onTriggerLeave:o.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:D,onPointerGraceIntentChange:o.useCallback(e=>{T.current=e},[]),children:(0,eD.jsx)(N,{...b?{as:tS,allowPinchZoom:!0}:void 0,children:(0,eD.jsx)(h.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.mK)(u,e=>{var t;e.preventDefault(),null==(t=M.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,eD.jsx)(f.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:v,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:w,children:(0,eD.jsx)(e6.bL,{asChild:!0,...k,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:j,onEntryFocus:(0,i.mK)(d,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eD.jsx)(eY,{role:"menu","aria-orientation":"vertical","data-state":t2(E.open),"data-radix-menu-content":"",dir:C.dir,...R,...x,ref:O,style:{outline:"none",...x.style},onKeyDown:(0,i.mK)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=P.current+e,o=A().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,l),u=null==(n=o.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){P.current=t,window.clearTimeout(L.current),""!==t&&(L.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())})(e.key));let o=M.current;if(e.target!==o||!te.includes(e.key))return;e.preventDefault();let i=A().filter(e=>!e.disabled).map(e=>e.ref.current);e7.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(L.current),P.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,t4(e=>{let t=e.target,n=I.current!==e.clientX;e.currentTarget.contains(t)&&n&&(_.current=e.clientX>I.current?"right":"left",I.current=e.clientX)}))})})})})})})});tR.displayName=tx;var tM=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eD.jsx)(s.sG.div,{role:"group",...r,ref:t})});tM.displayName="MenuGroup";var tO=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eD.jsx)(s.sG.div,{...r,ref:t})});tO.displayName="MenuLabel";var tL="MenuItem",tP="menu.itemSelect",tD=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),c=th(tL,e.__scopeMenu),d=tC(tL,e.__scopeMenu),f=(0,l.s)(t,u),p=o.useRef(!1);return(0,eD.jsx)(tT,{...a,ref:f,disabled:n,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(tP,{bubbles:!0,cancelable:!0});e.addEventListener(tP,e=>null==r?void 0:r(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!n&&e.target===e.currentTarget&&(""===d.searchRef.current||" "!==e.key)&&e9.includes(e.ke
1y)&&(e.currentTarget.click(),e.preventDefault())})})});tD.displayName=tL;var tT=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,c=tC(tL,n),d=tc(n),f=o.useRef(null),p=(0,l.s)(t,f),[h,v]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;g((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,eD.jsx)(to.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:m,children:(0,eD.jsx)(e6.q7,{asChild:!0,...d,focusable:!r,children:(0,eD.jsx)(s.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,t4(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,t4(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>v(!0)),onBlur:(0,i.mK)(e.onBlur,()=>v(!1))})})})}),t_=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,eD.jsx)(tH,{scope:e.__scopeMenu,checked:n,children:(0,eD.jsx)(tD,{role:"menuitemcheckbox","aria-checked":t5(n)?"mixed":n,...o,ref:t,"data-state":t6(n),onSelect:(0,i.mK)(o.onSelect,()=>null==r?void 0:r(!!t5(n)||!n),{checkForDefaultPrevented:!1})})})});t_.displayName="MenuCheckboxItem";var tI="MenuRadioGroup",[tN,tF]=ta(tI,{value:void 0,onValueChange:()=>{}}),tK=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,e_.c)(r);return(0,eD.jsx)(tN,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eD.jsx)(tM,{...o,ref:t})})});tK.displayName=tI;var tG="MenuRadioItem",tW=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=tF(tG,e.__scopeMenu),l=n===o.value;return(0,eD.jsx)(tH,{scope:e.__scopeMenu,checked:l,children:(0,eD.jsx)(tD,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":t6(l),onSelect:(0,i.mK)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});tW.displayName=tG;var tB="MenuItemIndicator",[tH,tz]=ta(tB,{checked:!1}),tq=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=tz(tB,n);return(0,eD.jsx)(e5.C,{present:r||t5(i.checked)||!0===i.checked,children:(0,eD.jsx)(s.sG.span,{...o,ref:t,"data-state":t6(i.checked)})})});tq.displayName=tB;var tV=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eD.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tV.displayName="MenuSeparator";var tX=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=ts(n);return(0,eD.jsx)(e$,{...o,...r,ref:t})});tX.displayName="MenuArrow";var tU="MenuSub",[tY,tZ]=ta(tU),tJ=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,l=tf(tU,t),a=ts(t),[u,s]=o.useState(null),[c,d]=o.useState(null),f=(0,e_.c)(i);return o.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,eD.jsx)(eH,{...a,children:(0,eD.jsx)(td,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d,children:(0,eD.jsx)(tY,{scope:t,contentId:(0,v.B)(),triggerId:(0,v.B)(),trigger:u,onTriggerChange:s,children:n})})})};tJ.displayName=tU;var t$="MenuSubTrigger",tQ=o.forwardRef((e,t)=>{let n=tf(t$,e.__scopeMenu),r=th(t$,e.__scopeMenu),a=tZ(t$,e.__scopeMenu),u=tC(t$,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]);let h=(0,l.s)(t,a.onTriggerChange);return(0,eD.jsx)(tm,{asChild:!0,...f,children:(0,eD.jsx)(tT,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?a.contentId:void 0,"data-state":t2(n.open),...e,ref:h,onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,t4(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,t4(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{if(!e.disabled&&t.target===t.currentTarget&&(""===u.searchRef.current||" "!==t.key)&&tt[r.dir].includes(t.key)){var o;n.onOpenChange(!0),null==(o=n.content)||o.focus(),t.preventDefault()}})})})});tQ.displayName=t$;var t0="MenuSubContent",t1=o.forwardRef((e,t)=>
1{let n=tw(tx,e.__scopeMenu),{forceMount:r=n.forceMount,align:a="start",...u}=e,s=tf(tx,e.__scopeMenu),c=th(tx,e.__scopeMenu),d=tZ(t0,e.__scopeMenu),f=o.useRef(null),p=(0,l.s)(t,f);return(0,eD.jsx)(to.Provider,{scope:e.__scopeMenu,children:(0,eD.jsx)(e5.C,{present:r||s.open,children:(0,eD.jsx)(to.Slot,{scope:e.__scopeMenu,children:(0,eD.jsx)(tj,{id:d.contentId,"aria-labelledby":d.triggerId,...u,ref:p,align:a,side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null==(t=f.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tn[c.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null==(r=d.trigger)||r.focus(),e.preventDefault()}})})})})})});function t2(e){return e?"open":"closed"}function t5(e){return"indeterminate"===e}function t6(e){return t5(e)?"indeterminate":e?"checked":"unchecked"}function t4(e){return t=>"mouse"===t.pointerType?e(t):void 0}t1.displayName=t0;var t3="DropdownMenu",[t8,t9]=(0,a.A)(t3,[tu]),t7=tu(),[ne,nt]=t8(t3),nn=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=t7(t),d=o.useRef(null),[f,p]=(0,u.i)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:t3});return(0,eD.jsx)(ne,{scope:t,triggerId:(0,v.B)(),triggerRef:d,contentId:(0,v.B)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,eD.jsx)(tv,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};nn.displayName=t3;var nr="DropdownMenuTrigger",no=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=nt(nr,n),u=t7(n),c=(0,l.s)(t,a.triggerRef);return(0,eD.jsx)(tm,{asChild:!0,...u,children:(0,eD.jsx)(s.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:c,onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});no.displayName=nr;var ni=e=>{let{__scopeDropdownMenu:t,...n}=e,r=t7(t);return(0,eD.jsx)(tb,{...r,...n})};ni.displayName="DropdownMenuPortal";var nl="DropdownMenuContent",na=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=nt(nl,n),a=t7(n),u=o.useRef(!1);return(0,eD.jsx)(tR,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=l.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});na.displayName=nl;var nu=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tM,{...o,...r,ref:t})});nu.displayName="DropdownMenuGroup";var ns=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tO,{...o,...r,ref:t})});ns.displayName="DropdownMenuLabel";var nc=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tD,{...o,...r,ref:t})});nc.displayName="DropdownMenuItem";var nd=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(t_,{...o,...r,ref:t})});nd.displayName="DropdownMenuCheckboxItem";var nf=o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tK,{...o,...r,ref:t})});nf.displayName="DropdownMenuRadioGroup";var np=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tW,{...o,...r,ref:t})});np.displayName="DropdownMenuRadioItem";var nh=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tq,{...o,...r,ref:t})});nh.displayName="DropdownMenuItemIndicator";var nv=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tV,{...o,...r,ref:t})});nv.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tX,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nm=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(tQ,{...o,...r,ref:t})});nm.displayName="DropdownMenuSubTrigger";var ng=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t7(n);return(0,eD.jsx)(t1,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ng.displayName="DropdownMenuSubContent";var ny=nn,nw=no,nb=ni,nx=na,nE=nu,nC=ns,nR=nc,nk=nd,nA=nf,nS=np,nj=nh,nM=nv,nO=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=t7(t),[a,s]=(0,u.i)({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,eD.jsx)(tJ,{...l,open:a,onOpenChange:s,children:n})},nL=nm,nP=ng},3413:(e,t,n)=>{n.d(t,{bL:()=>v,q7:()=>R});var r=n(2115),o=n(3468),i=n(7602),l=n(7308),a=n(1887),u=n(3558),s=n(6218),c=n(5155),d="ToggleGroup",[f,p]=(0,o.A)(d,[l.RG]),h=(0,l.RG)(),v=r.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,c.jsx)(y,{role:"radiogroup",...r,ref:t});if("multiple"===n)return(0,c.jsx)(w,{role:"toolbar",...r,ref:t});throw Error("Missing prop `type` expected on `".concat(d,"`"))});v.displayName=d;var[m,g]=f(d),y=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[a,s]=(0,u.i)({prop:n,defaultProp:null!=o?o:"",onChange:i,caller:d});return(0,c.jsx)(m,{scope:e.__scopeToggleGroup,type:"single",value:r.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:r.useCallback(()=>s(""),[s]),children:(0,c.jsx)(E,{...l,ref:t})})}),w=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[a,s]=(0,u.i)({prop:n,defaultProp:null!=o?o:[],onChange:i,caller:d}),f=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),p=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,c.jsx)(m,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:f,onItemDeactivate:p,children:(0,c.jsx)(E,{...l,ref:t})})});v.displayName=d;var[b,x]=f(d),E=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:a,dir:u,loop:d=!0,...f}=e,p=h(n),v=(0,s.jH)(u),m={dir:v,...f};return(0,c.jsx)(b,{scope:n,rovingFocus:o,disabled:r,children:o?(0,c.jsx)(l.bL,{asChild:!0,...p,orientation:a,dir:v,loop:d,children:(0,c.jsx)(i.sG.div,{...m,ref:t})}):(0,c.jsx)(i.sG.div,{...m,ref:t})})}),C="ToggleGroupItem",R=r.forwardRef((e,t)=>{let n=g(C,e.__scopeToggleGroup),o=x(C,e.__scopeToggleGroup),i=h(e.__scopeToggleGroup),a=n.value.includes(e.value),u=o.disabled||e.disabled,s={...e,pressed:a,disabled:u},d=r.useRef(null);return o.rovingFocus?(0,c.jsx)(l.q7,{asChild:!0,...i,focusable:!u,active:a,ref:d,children:(0,c.jsx)(k,{...s,ref:t})}):(0,c.jsx)(k,{...s,ref:t})});R.displayName=C;var k=r.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...o}=e,i=g(C,n),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},u="single"===i.type?l:void 0;
1return(0,c.jsx)(a.l,{...u,...o,ref:t,onPressedChange:e=>{e?i.onItemActivate(r):i.onItemDeactivate(r)}})})},4033:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},4853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5229:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5433:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(2115),o=n(7650),i=n(7602),l=n(4129),a=n(5155),u=r.forwardRef((e,t)=>{var n,u;let{container:s,...c}=e,[d,f]=r.useState(!1);(0,l.N)(()=>f(!0),[]);let p=s||d&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.sG.div,{...c,ref:t}),p):null});u.displayName="Portal"},5813:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]])},6218:(e,t,n)=>{n.d(t,{jH:()=>i});var r=n(2115);n(5155);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},7268:(e,t,n)=>{n.d(t,{b:()=>s});var r=n(2115),o=n(7602),i=n(5155),l="horizontal",a=["horizontal","vertical"],u=r.forwardRef((e,t)=>{var n;let{decorative:r,orientation:u=l,...s}=e,c=(n=u,a.includes(n))?u:l;return(0,i.jsx)(o.sG.div,{"data-orientation":c,...r?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...s,ref:t})});u.displayName="Separator";var s=u},7308:(e,t,n)=>{n.d(t,{q7:()=>N,bL:()=>I,RG:()=>S});var r=n(2115),o=n.t(r,2),i=n(2556),l=n(9972),a=n(4446),u=n(3468),s=n(8946),c=n(7602),d=n(222),f=n(3558),p=n(6218),h=n(4129),v=!1,m=o[" useSyncExternalStore ".trim().toString()];function g(){return()=>{}}var y="function"==typeof m?function(){return m(g,()=>!0,()=>!1)}:function(){let[e,t]=r.useState(v);return r.useEffect(()=>{v||(v=!0,t(!0))},[]),e},w=n(5155),b="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[C,R,k]=(0,l.N)(E),[A,S]=(0,u.A)(E,[k]),[j,M]=A(E),O=r.forwardRef((e,t)=>(0,w.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(L,{...e,ref:t})})}));O.displayName=E;var L=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:l=!1,dir:u,currentTabStopId:s,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...y}=e,C=r.useRef(null),k=(0,a.s)(t,C),A=(0,p.jH)(u),[S,M]=(0,f.i)({prop:s,defaultProp:null!=h?h:null,onChange:v,caller:E}),[O,L]=r.useState(!1),P=(0,d.c)(m),D=R(n),T=r.useRef(!1),[I,N]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(b,P),()=>e.removeEventListener(b,P)},[P]),(0,w.jsx)(j,{scope:n,orientation:o,dir:A,loop:l,currentTabStopId:S,onItemFocus:r.useCallback(e=>M(e),[M]),onItemShiftTab:r.useCallback(()=>L(!0),[]),onFocusableItemAdd:r.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>N(e=>e-1),[]),children:(0,w.jsx)(c.sG.div,{tabIndex:O||0===I?-1:0,"data-orientation":o,...y,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(b,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>
1e.focusable);_([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),g)}}T.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>L(!1))})})}),P="RovingFocusGroupItem",D=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:a,children:u,...d}=e,f=(0,s.B)(),p=a||f,v=M(P,n),m=v.currentTabStopId===p,g=R(n),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:E}=v,k=y();return(0,h.N)(()=>{if(k&&o)return b(),()=>x()},[k,o,b,x]),r.useEffect(()=>{if(!k&&o)return b(),()=>x()},[k,o,b,x]),(0,w.jsx)(C.ItemSlot,{scope:n,id:p,focusable:o,active:l,children:(0,w.jsx)(c.sG.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?v.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>v.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return T[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=v.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>_(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=E}):u})})});D.displayName=P;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var I=O,N=D},7470:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]])},7599:(e,t,n)=>{n.d(t,{bL:()=>b,zi:()=>E});var r=n(2115),o=n(2556),i=n(4446),l=n(3468),a=n(3558),u=n(8108),s=n(4288),c=n(7602),d=n(5155),f="Switch",[p,h]=(0,l.A)(f),[v,m]=p(f);function g(e){let{__scopeSwitch:t,checked:n,children:o,defaultChecked:i,disabled:l,form:u,name:s,onCheckedChange:c,required:p,value:h="on",internal_do_not_use_render:m}=e,[g,y]=(0,a.i)({prop:n,defaultProp:null!=i&&i,onChange:c,caller:f}),[w,b]=r.useState(null),[x,E]=r.useState(null),C=r.useRef(!1),R=!w||!!u||!!w.closest("form"),k={checked:g,setChecked:y,disabled:l,control:w,setControl:b,name:s,form:u,value:h,hasConsumerStoppedPropagationRef:C,required:p,defaultChecked:i,isFormControl:R,bubbleInput:x,setBubbleInput:E};return(0,d.jsx)(v,{scope:t,...k,children:"function"==typeof m?m(k):o})}var y="SwitchTrigger",w=r.forwardRef((e,t)=>{let{__scopeSwitch:n,onClick:l,...a}=e,{control:u,form:s,value:f,disabled:p,checked:h,required:v,setControl:g,setChecked:w,hasConsumerStoppedPropagationRef:b,isFormControl:x,bubbleInput:E}=m(y,n),C=(0,i.s)(t,g),R=r.useRef(h);return r.useEffect(()=>{let e=s?null==u?void 0:u.ownerDocument.getElementById(s):null==u?void 0:u.form;if(e instanceof HTMLFormElement){let t=()=>w(R.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[u,s,w]),(0,d.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":h,"aria-required":v,"data-state":k(h),"data-disabled":p?"":void 0,disabled:p,value:f,...a,ref:C,onClick:(0,o.mK)(l,e=>{w(e=>!e),E&&x&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})});w.displayName=y;var b=r.forwardRef((e,t)=>{let{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:l,disabled:a,value:u,onCheckedChange:s,form:c,...f}=e;return(0,d.jsx)(g,{__scopeSwitch:n,checked:o,defaultChecked:i,disabled:a,required:l,onCheckedChange:s,name:r,form:c,value:u,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(w,{...f,ref:t,__scopeSwitch:n}),r&&(0,d.jsx)(R,{__scopeSwitch:n})]})}})});b.displayName=f;var x="SwitchThumb",E=r.forwardRef((e,t)=>
1{let{__scopeSwitch:n,...r}=e,o=m(x,n);return(0,d.jsx)(c.sG.span,{"data-state":k(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});E.displayName=x;var C="SwitchBubbleInput",R=r.forwardRef((e,t)=>{let{__scopeSwitch:n,...o}=e,{control:l,hasConsumerStoppedPropagationRef:a,checked:f,defaultChecked:p,required:h,disabled:v,name:g,value:y,form:w,bubbleInput:b,setBubbleInput:x}=m(C,n),E=(0,i.s)(t,x),R=(0,u.Z)(f),k=(0,s.X)(l);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!a.current;if(R!==f&&e){let n=new Event("click",{bubbles:t});e.call(b,f),b.dispatchEvent(n)}},[b,R,f,a]);let A=r.useRef(f);return(0,d.jsx)(c.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:A.current,required:h,disabled:v,name:g,value:y,form:w,...o,tabIndex:-1,ref:E,style:{...o.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function k(e){return e?"checked":"unchecked"}R.displayName=C},7745:(e,t,n)=>{n.d(t,{Eq:()=>s});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var s=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(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});i[n]||(i[n]=new WeakMap);var c=i[n],d=[],f=new Set,p=new Set(s),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};s.forEach(h);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(c.get(e)||0)+1;r.set(e,l),c.set(e,a),d.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,i=c.get(e)-1;r.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},s=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"))),u(r,o,n,"aria-hidden")):function(){return null}}},7937:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},8314:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},8946:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(2115),i=n(4129),l=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},9001:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeAttributeString:function(){return a},htmlEscapeJsonString:function(){return l}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},i=/[&"'<>]/g;function l(e){return e.replace(r,e=>n[e])}function a(e){return e.replace(i,e=>o[e])}},9051:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},9141:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},9511:(e,t,n)=>{n.d(t,{UC:()=>I,VY:()=>H,ZL:()=>O,bL:()=>R,bm:()=>q,hE:()=>W,hJ:()=>P,l9:()=>A});var r=n(2115),o=n(2556),i=n(4446),l=n(3468),a=n(8946),u=n(3558),s=n(1987),c=n(9666),d=n(5433),f=n(6842),p=n(7602),h=n(9526),v=n(101),m=n(7745),g=n(2467),y=n(5155),w="Dialog",[b,x]=(0,l.A)(w),[E,C]=b(w),R=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,p]=(0,u.i)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:w});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};R.displayName=w;var k="DialogTrigger",A=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,l=C(k,n),a=(0,i.s)(t,l.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":V(l.open),...r,ref:a,onClick:(0,o.mK)(e.onClick,l.onOpenToggle)})});A.displayName=k;var S="DialogPortal",[j,M]=b(S,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,l=C(S,t);return(0,y.jsx)(j,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||l.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};O.displayName=S;var L="DialogOverlay",P=r.forwardRef((e,t)=>{let n=M(L,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(L,e.__scopeDialog);return i.modal?(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(T,{...o,ref:t})}):null});P.displayName=L;var D=(0,g.TL)("DialogOverlay.RemoveScroll"),T=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(L,n),l=(0,s.e0)(),a=(0,i.s)(t,l);return(0,y.jsx)(v.A,{as:D,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":V(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})}),_="DialogContent",I=r.forwardRef((e,t)=>{let n=M(_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(_,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||i.open,children:i.modal?(0,y.jsx)(N,{...o,ref:t}):(0,y.jsx)(F,{...o,ref:t})})});I.displayName=_;var N=r.forwardRef((e,t)=>{let n=C(_,e.__scopeDialog),l=r.useRef(null),a=(0,i.s)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,m.Eq)(e)},[]),(0,y.jsx)(K,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),F=r.forwardRef((e,t)=>{let n=C(_,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(K,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,l;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),K=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=C(_,n);return(0,h.Oh)(),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,y.jsx)(s.qW,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":V(a.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>a.onOpenChange(!1)})})})}),G="DialogTitle",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(G,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});W.displayName=G;var B="DialogDescription",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(B,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});H.displayName=B;var z="DialogClose",q=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(z,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});function V(e){return e?"open":"closed"}q.displayName=z},9526:(e,t,n)=>{n.d(t,{Oh:()=>l});var r=n(2115),o=0,i=null;function l(){r.useEffect(()=>{i||(i={start:a(),end:a()});let{start:e,end:t}=i;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),o++,()=>{1===o&&(null==i||i.start.remove(),null==i||i.end.remove(),i=null),o=Math.max(0,o-1)}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}},9540:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(5121).A)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]])},9666:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(2115),o=n(4446),i=n(7602),l=n(222),a=n(5155),u="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:m,onUnmountAutoFocus:g,...y}=e,[w,b]=r.useState(null),x=(0,l.c)(m),E=(0,l.c)(g),C=r.useRef(null),R=(0,o.s)(t,b),k=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(k.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:h(C.current,{select:!0})},t=function(e){if(k.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||h(C.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&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,k.paused]),r.useEffect(()=>{if(w){v.add(k);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(u,c);w.addEventListener(u,x),w.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(h(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(s,c);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),v.remove(k)},0)}}},[w,x,E,k]);let A=r.useCallback(e=>{if(!n&&!d||k.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,k.paused]);return(0,a.jsx)(i.sG.div,{tabIndex:-1,...y,ref:R,onKeyDown:A})});function f(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 p(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):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}(r,{upTo:t})))return r}function h(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()}}d.displayName="FocusScope";var v=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=m(e,t)).unshift(t)},remove(t){var n;null==(n=(e=m(e,t))[0])||n.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},9972:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function i(e,t,n){var o=r(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}n.d(t,{N:()=>f});var l,a=n(2115),u=n(3468),s=n(4446),c=n(2467),d=n(5155);function f(e){let t=e+"CollectionProvider",[n,r]=(0,u.A)(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=a.useRef(null),i=a.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};l.displayName=t;let f=e+"CollectionSlot",p=(0,c.TL)(f),h=a.forwardRef((e,t)=>
1{let{scope:n,children:r}=e,o=i(f,n),l=(0,s.s)(t,o.collectionRef);return(0,d.jsx)(p,{ref:l,children:r})});h.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",g=(0,c.TL)(v),y=a.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,l=a.useRef(null),u=(0,s.s)(t,l),c=i(v,n);return a.useEffect(()=>(c.itemMap.set(l,{ref:l,...o}),()=>void c.itemMap.delete(l))),(0,d.jsx)(g,{...{[m]:""},ref:u,children:r})});return y.displayName=v,[{Provider:l,Slot:h,ItemSlot:y},function(t){let n=i(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var p=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=v(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function v(e){return e!=e||0===e?0:Math.trunc(e)}l=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?o(this,l)[o(this,l).indexOf(e)]=e:o(this,l).push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),a=o(this,l).length,u=v(e),s=u>=0?u:a+u,c=s<0||s>=a?-1:s;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;u<0&&s++;let f=[...o(this,l)],p=!1;for(let e=s;e<d;e++)if(s===e){let o=f[e];f[e]===t&&(o=f[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=o(this,l).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=o(this,l).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=o(this,l).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=o(this,l).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,l,[]),super.clear()}delete(e){let t=super.delete(e);return t&&o(this,l).splice(o(this,l).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(o(this,l),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(o(this,l),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return o(this,l).indexOf(e)}keyAt(e){return h(o(this,l),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,l=null!=o?o:this.at(0);for(let e of this)l=0===i&&1===t.length?e:Reflect.apply(r,this,[l,e,i,this]),i++;return l}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,l,{writable:!0,value:void 0}),i(this,l,[...super.keys()]),p.set(this,!0)}}}}]);
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.