1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[540],{5478:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(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 s=i[n],d=[],f=new Set,p=new Set(c),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(s.get(e)||0)+1;r.set(e,a),s.set(e,l),d.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=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}}},2660:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},401:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},875:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},407:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3566:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},2489:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},7648:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(2972),o=n.n(r)},5449:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(8521);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 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)},6958:function(e,t,n){function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(8521),("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)},2972:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(7043),o=n(7437),i=r._(n(2265)),a=n(5246),l=n(3552),u=n(7497),c=n(3987),s=n(5449),d=n(5523),f=n(1956),p=n(6081),h=n(6958),m=n(1634),g=n(4673),v=new Set;function y(e,t,n,r,o,i){if("undefined"!=typeof window&&(i||(0,l.isLocalURL)(t))){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(o))return;v.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function w(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let n,r;let{href:u,as:v,children:b,prefetch:x=null,passHref:E,replace:R,shallow:_,scroll:C,locale:S,onClick:P,onMouseEnter:M,onTouchStart:A,legacyBehavior:O=!1,...T}=e;n=b,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let N=i.default.useContext(d.RouterContext),j=i.default.useContext(f.AppRouterContext),I=null!=N?N:j,D=!N,L=!1!==x,k=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:W}=i.default.useMemo(()=>
1{if(!N){let e=w(u);return{href:e,as:v?w(v):e}}let[e,t]=(0,a.resolveHref)(N,u,!0);return{href:e,as:v?(0,a.resolveHref)(N,v):t||e}},[N,u,v]),U=i.default.useRef(F),V=i.default.useRef(W);O&&(r=i.default.Children.only(n));let B=O?r&&"object"==typeof r&&r.ref:t,[H,X,K]=(0,p.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(V.current!==W||U.current!==F)&&(K(),V.current=W,U.current=F),H(e),B&&("function"==typeof B?B(e):"object"==typeof B&&(B.current=e))},[W,B,F,K,H]);i.default.useEffect(()=>{I&&X&&L&&y(I,F,W,{locale:S},{kind:k},D)},[W,F,X,S,L,null==N?void 0:N.locale,I,D,k]);let z={ref:Y,onClick(e){O||"function"!=typeof P||P(e),O&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,n,r,o,a,u,c,s){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!s&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==u||u;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};s?i.default.startTransition(f):f()}(e,I,F,W,R,_,C,S,D)},onMouseEnter(e){O||"function"!=typeof M||M(e),O&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),I&&(L||!D)&&y(I,F,W,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:k},D)},onTouchStart:function(e){O||"function"!=typeof A||A(e),O&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),I&&(L||!D)&&y(I,F,W,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:k},D)}};if((0,c.isAbsoluteUrl)(W))z.href=W;else if(!O||E||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,h.getDomainLocale)(W,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);z.href=t||(0,m.addBasePath)((0,s.addLocale)(W,e,null==N?void 0:N.defaultLocale))}return O?i.default.cloneElement(r,z):(0,o.jsx)("a",{...T,...z,children:n})});("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)},3515:function(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)},5246:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let r=n(8637),o=n(7497),i=n(7053),a=n(3987),l=n(8521),u=n(3552),c=n(6279),s=n(7205);function d(e,t,n){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),p=f.match(/^[a-zA-Z]{1,}:\/\//),h=p?f.slice(p[0].length):f;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);f=(p?p[0]:"")+t}if(!(0,u.isLocalURL)(f))return n?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:l}=(0,s.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,l)}))}let a=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6081:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2265),o=n(3515),i="function"==typeof IntersectionObserver,a=new Map,l=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,c=u||!i,[s,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(c||s)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=l.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},l.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!s){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,s,f.current]),[p,s,(0,r.useCallback)(()=>{d(!1)},[])]}("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)},9259:function(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,{ACTION_SUFFIX:function(){return u},APP_DIR_ALIAS:function(){return P},CACHE_ONE_YEAR:function(){return b},DOT_NEXT_ALIAS:function(){return C},ESLINT_DEFAULT_DIRS:function(){return K},GSP_NO_RETURNED_VALUE:function(){return W},GSSP_COMPONENT_MEMBER_ERROR:function(){return B},GSSP_NO_RETURNED_VALUE:function(){return U},INSTRUMENTATION_HOOK_FILENAME:function(){return R},MIDDLEWARE_FILENAME:function(){return x},MIDDLEWARE_LOCATION_REGEXP:function(){return E},NEXT_BODY_SUFFIX:function(){return d},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return w},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return h},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return m},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return p},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return y},NEXT_CACHE_TAGS_HEADER:function(){return f},NEXT_CACHE_TAG_MAX_ITEMS:function(){return g},NEXT_CACHE_TAG_MAX_LENGTH:function(){return v},NEXT_DATA_SUFFIX:function(){return c},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return s},NEXT_QUERY_PARAM_PREFIX:function(){return n},NON_STANDARD_NODE_ENV:function(){return H},PAGES_DIR_ALIAS:function(){return _},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return i},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return j},ROOT_DIR_ALIAS:function(){return S},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return N},RSC_ACTION_ENCRYPTION_ALIAS:function(){return T},RSC_ACTION_PROXY_ALIAS:function(){return O},RSC_ACTION_VALIDATE_ALIAS:function(){return A},RSC_MOD_REF_PROXY_ALIAS:function(){return M},RSC_PREFETCH_SUFFIX:function(){return a},RSC_SUFFIX:function(){return l},SERVER_PROPS_EXPORT_ERROR:function(){return F},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return D},SERVER_PROPS_SSG_CONFLICT:function(){return L},SERVER_RUNTIME:function(){return Y},SSG_FALLBACK_EXPORT_ERROR:function(){return X},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return I},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return k},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return V},WEBPACK_LAYERS:function(){return G},WEBPACK_RESOURCE_QUERIES:function(){return Z}});let n="nxtP",r="nxtI",o="x-prerender-revalidate",i="x-prerender-revalidate-if-generated",a=".prefetch.rsc",l=".rsc",u=".action",c=".json",s=".meta",d=".body",f="x-next-cache-tags",p="x-next-cache-soft-tags",h="x-next-revalidated-tags",m="x-next-revalidate-tag-token",g=128,v=256,y=1024,w="_N_T_",b=31536e3,x="middleware",E=`(?:src/)?${x}`,R="instrumentation",_="private-next-pages",C="private-dot-next",S="private-next-root-dir",P="private-next-app-dir",M="private-next-rsc-mod-ref-proxy",A="private-next-rsc-action-validate",O="private-next-rsc-server-reference",T="private-next-rsc-action-encryption",N="private-next-rsc-action-client-wrapper",j="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",I="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",D="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",L="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",k="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",F="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",W="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",U="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",V="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",B="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",H='You are using a non-standard "NODE_ENV" value in y
1our environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',X="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",K=["app","pages","components","lib","src"],Y={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},z={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},G={...z,GROUP:{serverOnly:[z.reactServerComponents,z.actionBrowser,z.appMetadataRoute,z.appRouteHandler,z.instrument],clientOnly:[z.serverSideRendering,z.appPagesBrowser],nonClientServerTarget:[z.middleware,z.api],app:[z.reactServerComponents,z.actionBrowser,z.appMetadataRoute,z.appRouteHandler,z.serverSideRendering,z.appPagesBrowser,z.shared,z.instrument]}},Z={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},42:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},7497:function(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,{formatUrl:function(){return i},formatWithValidation:function(){return l},urlObjectKeys:function(){return a}});let r=n(3099)._(n(8637)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:n&&(c=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let s=e.search||u&&"?"+u||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),s&&"?"!==s[0]&&(s="?"+s),""+i+c+(a=a.replace(/[?#]/g,encodeURIComponent))+(s=s.replace("#","%23"))+l}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return i(e)}},6279:function(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,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(4777),o=n(8104)},7205:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(4199),o=n(9964);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),l=a.groups,u=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let c=Object.keys(l);return c.every(e=>{let t=u[e]||"",{repeat:n,optional:r}=l[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in u)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:c,result:i}}},8104:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(1182),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},3552:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(3987),o=n(1283);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},7053:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},8637:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.forEach(t=>{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},4199:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(3987);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},9964:function(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,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return c},parseParameter:function(){return l}});let r=n(9259),o=n(1182),i=n(42),a=n(6674);function l(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function u(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),n={},r=1;return{parameterizedRoute:t.map(e=>{let t=o.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:o,repeat:u}=l(a[1]);return n[e]={pos:r++,repeat:u,optional:o},"/"+(0,i.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,i.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:o}=l(a[1]);return n[e]={pos:r++,repeat:t,optional:o},t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function c(e){let{parameterizedRoute:t,groups:n}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:o,keyPrefix:a}=e,{key:u,optional:c,repeat:s}=l(r),d=u.replace(/\W/g,"");a&&(d=""+a+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=n()),a?o[d]=""+a+u:o[d]=u;let p=t?(0,i.escapeStringRegexp)(t):"";return s?c?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function d(e,t){let n;let l=(0,a.removeTrailingSlash)(e).slice(1).split("/"),u=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),c={};return{namedParameterizedRoute:l.map(e=>{let n=o.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&a){let[n]=e.split(a[0]);return s({getSafeRouteKey:u,interceptionMarker:n,segment:a[1],routeKeys:c,keyPrefix:t?r.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}return a?s({getSafeRouteKey:u,segment:a[1],routeKeys:c,keyPrefix:t?r.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(e)}).join(""),routeKeys:c}}function f(e,t){let n=d(e,t);return{...c(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function p(e,t){let{parameterizedRoute:n}=u(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=d(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},4777:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});
1class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},3987:function(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,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return y},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return u},getLocationOrigin:function(){return a},getURL:function(){return l},isAbsoluteUrl:function(){return i},isResSent:function(){return c},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return s},stringifyError:function(){return w}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return n||(n=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function l(){let{href:e}=window.location,t=a();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function s(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&c(n))return r;if(!r)throw Error('"'+u(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},9157:function(e,t,n){n.d(t,{Z:function(){return q}});var r,o,i,a,l,u,c,s=function(){return(s=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 d(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}"function"==typeof SuppressedError&&SuppressedError;var f=n(2265),p="right-scroll-bar-position",h="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var g="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,v=new WeakMap,y=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],l=!1,u={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,l);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){l=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=s({async:!0,ssr:!1},o),u),w=function(){},b=f.forwardRef(function(e,t){var n,r,o,i,a=f.useRef(null),l=f.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),u=l[0],c=l[1],p=e.forwardProps,h=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,R=e.shards,_=e.sideCar,C=e.noRelative,S=e.noIsolation,P=e.inert,M=e.allowPinchZoom,A=e.as,O=e.gapMode,T=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(n=[a,t],r=function(e){return n.forEach(function(t){return m(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,g(function(){var e=v.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||m(e,null)}),r.forEach(function(e){t.has(e)||m(e,o)})}v.set(i,n)},[n]),i),j=s(s({},T),u);return f.createElement(f.Fragment,null,E&&f.createElement(_,{sideCar:y,removeScrollBar:x,shards:R,noRelative:C,noIsolation:S,inert:P,setCallbacks:c,allowPinchZoom:!!M,lockRef:a,gapMode:O}),p?f.cloneElement(f.Children.only(h),s(s({},j),{ref:N})):f.createElement(void 0===A?"div":A,s({},j,{className:b,ref:N}),h))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:h,zeroRight:p};var x=function(e){var t=e.sideCar,n=d(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 f.createElement(r,s({},n))};x.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R=function(){var e=E();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_=function(){var e=R();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},S=function(e){return parseInt(e||"",10)||0},P=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[S(n),S(r),S(o)]},M=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return C;var t=P(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])}},A=_(),O="data-scroll-locked",T=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(O,"] {\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(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(p," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(O,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},N=function(){var e=parseInt(document.body.getAttribute(O)||"0",10);return isFinite(e)?e:0},j=function(){f.useEffect(function(){return document.body.setAttribute(O,(N()+1).toString()),function(){var e=N()-1;e<=0?document.body.removeAttribute(O):document.body.setAttribute(O,e.toString())}},[])},I=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;j();var i=f.useMemo(function(){return M(o)},[o]);return f.createElement(A,{styles:T(i,!t,o,n?"":"!important")})},D=!1;if("undefined"!=typeof window)try{var L=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch(e){D=!1}var k=!!D&&{passive:!1},F=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])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),U(e,r)){var o=V(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},U=function(e,t){return"v"===e?F(t,"overflowY"):F(t,"overflowX")},V=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{if(!u)break;var h=V(e,u),m=h[0],g=h[1]-h[2]-a*m;(m||g)&&U(e,u)&&(f+=g,p+=m);var v=u.parentNode;u=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},H=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&"current"in e?e.current:e},Y=0,z=[],G=(c=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Y++)[0],i=f.useState(_)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.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(K),!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 l=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=H(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=W(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=W(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return B(p,t,e,"h"===p?u:c,!0)},[]),u=f.useCallback(function(e){if(z.length&&z[z.length-1]===i){var n="deltaY"in e?X(e):H(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(K).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.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)},[]),s=f.useCallback(function(e){n.current=H(e),r.current=void 0},[]),d=f.useCallback(function(t){c(t.type,X(t),t.target,l(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,H(t),t.target,l(t,e.lockRef.current))},[]);f.useEffect(function(){return z.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,k),document.addEventListener("touchmove",u,k),document.addEventListener("touchstart",s,k),function(){z=z.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,k),document.removeEventListener("touchmove",u,k),document.removeEventListener("touchstart",s,k)}},[]);var h=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?f.createElement(I,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(c),x),Z=f.forwardRef(function(e,t){return f.createElement(b,s({},e,{ref:t,sideCar:G}))});Z.classNames=b.classNames;var q=Z},9027:function(e,t,n){n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return $},h_:function(){return J},x8:function(){return eo},xz:function(){return Q}});var r=n(2265),o=n(6741),i=n(8575),a=n(3966),l=n(9255),u=n(886),c=n(5278),s=n(9103),d=n(3832),f=n(1599),p=n(6840),h=n(6097),m=n(9157),g=n(5478),v=n(7495),y=n(7437),w="Dialog",[b,x]=(0,a.b)(w),[E,R]=b(w),_=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,s=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,u.T)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(E,{scope:t,triggerRef:s,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})};_.displayName=w;var C="DialogTrigger",S=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,a=R(C,n),l=(0,i.e)(t,a.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":K(a.open),...r,ref:l,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});S.displayName=C;var P="DialogPortal",[M,A]=b(P,{forceMount:void 0}),O=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=R(P,t);return(0,y.jsx)(M,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.z,{present:n||a.open,children:(0,y.jsx)(d.h,{asChild:!0,container:i,children:e})}))})};O.displayName=P;var T="DialogOverlay",N=r.forwardRef((e,t)=>{let n=A(T,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(T,e.__scopeDialog);return i.modal?(0,y.jsx)(f.z,{present:r||i.open,children:(0,y.jsx)(j,{...o,ref:t})}):null});N.displayName=T;var j=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(T,n);return(0,y.jsx)(m.Z,{as:v.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":K(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",D=r.forwardRef((e,t)=>{let n=A(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(I,e.__scopeDialog);return(0,y.jsx)(f.z,{present:r||i.open,children:i.modal?(0,y.jsx)(L,{...o,ref:t}):(0,y.jsx)(k,{...o,ref:t})})});D.displayName=I;var L=r.forwardRef((e,t)=>{let n=R(I,e.__scopeDialog),a=r.useRef(null),l=(0,i.e)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,g.Ry)(e)},[]),(0,y.jsx)(F,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,t)=>{let n=R(I,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,d=R(I,n),f=r.useRef(null),p=(0,i.e)(t,f);return(0,h.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(s.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(c.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":K(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Z,{titleId:d.titleId}),(0,y.jsx)(q,{contentRef:f,descriptionId:d.descriptionId})]})]})}),W="DialogTitle",U=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(W,n);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});U.displayName=W;var V="DialogDescription",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(V,n);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});B.displayName=V;var H="DialogClose",X=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(H,n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function K(e){return e?"open":"closed"}X.displayName=H;var Y="DialogTitleWarning",[z,G]=(0,a.k)(Y,{contentName:I,titleName:W,docsSlug:"dialog"}),Z=e=>{let{titleId:t}=e,n=G(Y),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},q=e=>{let{contentRef:t,descriptionId:n}=e,o=G("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},$=_,Q=S,J=O,ee=N,et=D,en=U,er=B,eo=X},5278:function(e,t,n){n.d(t,{XB:function(){return f}});
1var r,o=n(2265),i=n(6741),a=n(6840),l=n(8575),u=n(6606),c=n(7437),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[R,_]=o.useState(null),C=null!==(f=null==R?void 0:R.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,S]=o.useState({}),P=(0,l.e)(t,e=>_(e)),M=Array.from(E.layers),[A]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),O=M.indexOf(A),T=R?M.indexOf(R):-1,N=E.layersWithOutsidePointerEventsDisabled.size>0,j=T>=O,I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!j||n||(null==v||v(e),null==w||w(e),e.defaultPrevented||null==b||b())},C),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&h("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=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},C);return!function(e,t=globalThis?.document){let n=(0,u.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{T!==E.layers.size-1||(null==g||g(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},C),o.useEffect(()=>{if(R)return m&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(R)),E.layers.add(R),p(),()=>{m&&1===E.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[R,C,m,E]),o.useEffect(()=>()=>{R&&(E.layers.delete(R),E.layersWithOutsidePointerEventsDisabled.delete(R),p())},[R,E]),o.useEffect(()=>{let e=()=>S({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(a.WV.div,{...x,ref:P,style:{pointerEvents:N?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,I.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.jH)(i,l):i.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(d),r=o.useRef(null),i=(0,l.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},6182:function(e,t,n){n.d(t,{oC:function(){return nW},VY:function(){return nD},ZA:function(){return nL},ck:function(){return nF},wU:function(){return nB},__:function(){return nk},Uv:function(){return nI},Ee:function(){return nU},Rk:function(){return nV},fC:function(){return nN},Z0:function(){return nH},Tr:function(){return nX},tu:function(){return nY},fF:function(){return nK},xz:function(){return nj}});var r=n(2265),o=n(6741),i=n(8575),a=n(3966),l=n(886),u=n(6840),c=n(7822),s=n(9114),d=n(5278),f=n(6097),p=n(9103),h=n(9255);let m=["top","right","bottom","left"],g=Math.min,v=Math.max,y=Math.round,w=Math.floor,b=e=>({x:e,y:e}
1),x={left:"right",right:"left",bottom:"top",top:"bottom"},E={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function _(e){return e.split("-")[0]}function C(e){return e.split("-")[1]}function S(e){return"x"===e?"y":"x"}function P(e){return"y"===e?"height":"width"}let M=new Set(["top","bottom"]);function A(e){return M.has(_(e))?"y":"x"}function O(e){return e.replace(/start|end/g,e=>E[e])}let T=["left","right"],N=["right","left"],j=["top","bottom"],I=["bottom","top"];function D(e){return e.replace(/left|right|bottom|top/g,e=>x[e])}function L(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(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 F(e,t,n){let r,{reference:o,floating:i}=e,a=A(t),l=S(A(t)),u=P(l),c=_(t),s="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(C(t)){case"start":r[l]-=p*(n&&s?-1:1);break;case"end":r[l]+=p*(n&&s?-1:1)}return r}let W=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=F(c,r,u),f=r,p={},h=0;for(let n=0;n<l.length;n++){let{name:i,fn:m}=l[n],{x:g,y:v,data:y,reset:w}=await m({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=g?g:s,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=F(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function U(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=R(t,e),h=L(p),m=l[f?"floating"===d?"reference":"floating":d],g=k(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:s,strategy:u})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.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=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:u}):v);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}function V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function B(e){return m.some(t=>e[t]>=0)}let H=new Set(["left","top"]);async function X(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=_(n),l=C(n),u="y"===A(n),c=H.has(a)?-1:1,s=i&&u?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function K(){return"undefined"!=typeof window}function Y(e){return Z(e)?(e.nodeName||"").toLowerCase():"#document"}function z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function G(e){var t;return null==(t=(Z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Z(e){return!!K()&&(e instanceof Node||e instanceof z(e).Node)}function q(e){return!!K()&&(e instanceof Element||e instanceof z(e).Element)}function $(e){return!!K()&&(e instanceof HTMLElement||e instanceof z(e).HTMLElement)}function Q(e){return!!K()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof z(e).ShadowRoot)}let J=new Set(["inline","contents"]);function ee(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ed(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!J.has(o)}let et=new Set(["table","td","th"]),en=[":popover-open",":modal"];function er(e){return en.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eo=["transform","translate","scale","rotate","perspective"],ei=["transform","translate","scale","rotate","perspective","filter"],ea=["paint","layout","strict","content"];function el(e){let t=eu(),n=q(e)?ed(e):e;return eo.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ei.some(e=>(n.willChange||"").includes(e))||ea.some(e=>(n.contain||"").includes(e))}function eu(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ec=new Set(["html","body","#document"]);function es(e){return ec.has(Y(e))}function ed(e){return z(e).getComputedStyle(e)}function ef(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ep(e){if("html"===Y(e))return e;let t=e.assignedSlot||e.parentNode||Q(e)&&e.host||G(e);return Q(t)?t.host:t}function eh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ep(t);return es(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&ee(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=z(o);if(i){let e=em(a);return t.concat(a,a.visualViewport||[],ee(o)?o:[],e&&n?eh(e):[])}return t.concat(o,eh(o,[],n))}function em(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eg(e){let t=ed(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=$(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=y(n)!==i||y(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ev(e){return q(e)?e:e.contextElement}function ey(e){let t=ev(e);if(!$(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eg(t),a=(i?y(n.width):n.width)/r,l=(i?y(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let ew=b(0);function eb(e){let t=z(e);return eu()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ew}function ex(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ev(e),l=b(1);t&&(r?q(r)&&(l=ey(r)):l=ey(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===z(a))&&o)?eb(a):b(0),c=(i.left+u.x)/l.x,s=(i.top+u.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=z(a),t=r&&q(r)?z(r):r,n=e,o=em(n);for(;o&&r&&t!==n;){let e=ey(o),t=o.getBoundingClientRect(),r=ed(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=a,o=em(n=z(o))}}return k({width:d,height:f,x:c,y:s})}function eE(e,t){let n=ef(e).scrollLeft;return t?t.left+n:ex(G(e)).left+n}function eR(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eE(e,n),y:n.top+t.scrollTop}}let e_=new Set(["absolute","fixed"]);function eC(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=z(e),r=G(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=eu();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}let c=eE(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=G(e),n=ef(e),r=e.ownerDocument.body,o=v(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=v(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+eE(e),l=-n.scrollTop;return"rtl"===ed(r).direction&&(a+=v(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(G(e));else if(q(t))r=function(e,t){let n=ex(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$(e)?ey(e):b(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=eb(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function eS(e){return"static"===ed(e).position}function eP(e,t){if(!$(e)||"fixed"===ed(e).position)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function eM(e,t){var n;let r=z(e);
1if(er(e))return r;if(!$(e)){let t=ep(e);for(;t&&!es(t);){if(q(t)&&!eS(t))return t;t=ep(t)}return r}let o=eP(e,t);for(;o&&(n=o,et.has(Y(n)))&&eS(o);)o=eP(o,t);return o&&es(o)&&eS(o)&&!el(o)?r:o||function(e){let t=ep(e);for(;$(t)&&!es(t);){if(el(t))return t;if(er(t))break;t=ep(t)}return null}(e)||r}let eA=async function(e){let t=this.getOffsetParent||eM,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),o=G(t),i="fixed"===n,a=ex(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=b(0);if(r||!r&&!i){if(("body"!==Y(t)||ee(o))&&(l=ef(t)),r){let e=ex(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eE(o))}i&&!r&&o&&(u.x=eE(o));let c=!o||r||i?b(0):eR(o,l);return{x:a.left+l.scrollLeft-u.x-c.x,y:a.top+l.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eO={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=G(r),l=!!t&&er(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=b(1),s=b(0),d=$(r);if((d||!d&&!i)&&(("body"!==Y(r)||ee(a))&&(u=ef(r)),$(r))){let e=ex(r);c=ey(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!a||d||i?b(0):eR(a,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:G,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?er(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eh(e,[],!1).filter(e=>q(e)&&"body"!==Y(e)),o=null,i="fixed"===ed(e).position,a=i?ep(e):e;for(;q(a)&&!es(a);){let t=ed(a),n=el(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&e_.has(o.position)||ee(a)&&!n&&function e(t,n){let r=ep(t);return!(r===n||!q(r)||es(r))&&("fixed"===ed(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=ep(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=eC(t,n,o);return e.top=v(r.top,e.top),e.right=g(r.right,e.right),e.bottom=g(r.bottom,e.bottom),e.left=v(r.left,e.left),e},eC(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:eM,getElementRects:eA,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eg(e);return{width:t,height:n}},getScale:ey,isElement:q,isRTL:function(e){return"rtl"===ed(e).direction}};function eT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eN=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:s=0}=R(e,t)||{};if(null==c)return{};let d=L(s),f={x:n,y:r},p=S(A(o)),h=P(p),m=await a.getDimensions(c),y="y"===p,w=y?"clientHeight":"clientWidth",b=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],E=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),_=E?E[w]:0;_&&await (null==a.isElement?void 0:a.isElement(E))||(_=l.floating[w]||i.floating[h]);let M=_/2-m[h]/2-1,O=g(d[y?"top":"left"],M),T=g(d[y?"bottom":"right"],M),N=_-m[h]-T,j=_/2-m[h]/2+(b/2-x/2),I=v(O,g(j,N)),D=!u.arrow&&null!=C(o)&&j!==I&&i.reference[h]/2-(j<O?O:T)-m[h]/2<0,k=D?j<O?j-O:j-N:0;return{[p]:f[p]+k,data:{[p]:I,centerOffset:j-I-k,...D&&{alignmentOffset:k}},reset:D}}}),ej=(e,t,n)=>{let r=new Map,o={platform:eO,...n},i={...o.platform,_c:r};return W(e,t,{...o,platform:i})};var eI=n(4887),eD="undefined"!=typeof document?r.useLayoutEffect:function(){};function eL(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(!eL(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)&&!eL(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ek(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eF(e,t){let n=ek(e);return Math.round(t*n)/n}function eW(e){let t=r.useRef(e);return eD(()=>{t.current=e}),t}let eU=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?eN({element:n.current,padding:r}).fn(t):{}:n?eN({element:n,padding:r}).fn(t):{}}}),eV=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:l}=e,u=await X(e,n);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}),options:[e,t]}},eB=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=R(n,e),c={x:t,y:r},s=await U(e,u),d=A(_(o)),f=S(d),p=c[f],h=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=v(n,g(p,r))}
1if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+s[e],r=h-s[t];h=v(n,g(h,r))}let m=l.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}),options:[e,t]}},eH=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=R(n,e),s={x:t,y:r},d=A(o),f=S(d),p=s[f],h=s[d],m=R(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,y;let e="y"===f?"width":"height",t=H.has(_(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}),options:[e,t]}},eX=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=R(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let b=_(l),x=A(s),E=_(s)===s,M=await (null==d.isRTL?void 0:d.isRTL(f.floating)),L=m||(E||!y?[D(s)]:function(e){let t=D(e);return[O(e),t,O(t)]}(s)),k="none"!==v;!m&&k&&L.push(...function(e,t,n,r){let o=C(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?N:T;return t?T:N;case"left":case"right":return t?j:I;default:return[]}}(_(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(O)))),i}(s,y,v,M));let F=[s,...L],W=await U(e,w),V=[],B=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&V.push(W[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=C(e),o=S(A(e)),i=P(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=D(a)),[a,D(a)]}(l,c,M);V.push(W[e[0]],W[e[1]])}if(B=[...B,{placement:l,overflows:V}],!V.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=F[e];if(t&&(!("alignment"===h&&x!==A(t))||B.every(e=>A(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(i=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(a=B.filter(e=>{if(k){let t=A(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:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eK=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:a,rects:l,platform:u,elements:c}=e,{apply:s=()=>{},...d}=R(n,e),f=await U(e,d),p=_(a),h=C(a),m="y"===A(a),{width:y,height:w}=l.floating;"top"===p||"bottom"===p?(o=p,i=h===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===h?"top":"bottom");let b=w-f.top-f.bottom,x=y-f.left-f.right,E=g(w-f[o],b),S=g(y-f[i],x),P=!e.middlewareData.shift,M=E,O=S;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(M=b),P&&!h){let e=v(f.left,0),t=v(f.right,0),n=v(f.top,0),r=v(f.bottom,0);m?O=y-2*(0!==e||0!==t?e+t:v(f.left,f.right)):M=w-2*(0!==n||0!==r?n+r:v(f.top,f.bottom))}await s({...e,availableWidth:O,availableHeight:M});let T=await u.getDimensions(c.floating);return y!==T.width||w!==T.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eY=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=R(n,e);switch(r){case"referenceHidden":{let n=V(await U(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:B(n)}}}case"escaped":{let n=V(await U(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:B(n)}}}default:return{}}}}),options:[e,t]}},ez=(e,t)=>({...eU(e),options:[e,t]});var eG=n(7437),eZ=r.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eG.jsx)(u.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eG.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eZ.displayName="Arrow";var eq=n(6606),e$=n(1188),eQ=n(420),eJ="Popper",[e0,e1]=(0,a.b)(eJ),[e2,e5]=e0(eJ),e7=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eG.jsx)(e2,{scope:t,anchor:o,onAnchorChange:i,children:n})};e7.displayName=eJ;var e6="PopperAnchor",e9=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,l=e5(e6,n),c=r.useRef(null),s=(0,i.e)(t,c);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||c.current)}),o?null:(0,eG.jsx)(u.WV.div,{...a,ref:s})});e9.displayName=e6;var e8="PopperContent",[e4,e3]=e0(e8),te=r.forwardRef((e,t)=>{var n,o,a,l,c,s,d,f;let{__scopePopper:p,side:h="bottom",sideOffset:m=0,align:y="center",alignOffset:b=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:R=[],collisionPadding:_=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:P="optimized",onPlaced:M,...A}=e,O=e5(e8,p),[T,N]=r.useState(null),j=(0,i.e)(t,e=>N(e)),[I,D]=r.useState(null),L=(0,eQ.t)(I),k=null!==(d=null==L?void 0:L.width)&&void 0!==d?d:0,F=null!==(f=null==L?void 0:L.height)&&void 0!==f?f:0,W="number"==typeof _?_:{top:0,right:0,bottom:0,left:0,..._},U=Array.isArray(R)?R:[R],V=U.length>0,B={padding:W,boundary:U.filter(to),altBoundary:V},{refs:H,floatingStyles:X,placement:K,isPositioned:Y,middlewareData:z}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(o);eL(p,o)||h(o);let[m,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),b=r.useCallback(e=>{e!==_.current&&(_.current=e,y(e))},[]),x=a||m,E=l||v,R=r.useRef(null),_=r.useRef(null),C=r.useRef(d),S=null!=c,P=eW(c),M=eW(i),A=eW(s),O=r.useCallback(()=>{if(!R.current||!_.current)return;let e={placement:t,strategy:n,middleware:p};M.current&&(e.platform=M.current),ej(R.current,_.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};T.current&&!eL(C.current,t)&&(C.current=t,eI.flushSync(()=>{f(t)}))})},[p,t,n,M,A]);eD(()=>{!1===s&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let T=r.useRef(!1);eD(()=>(T.current=!0,()=>{T.current=!1}),[]),eD(()=>{if(x&&(R.current=x),E&&(_.current=E),x&&E){if(P.current)return P.current(x,E,O);O()}},[x,E,O,P,S]);let N=r.useMemo(()=>({reference:R,floating:_,setReference:w,setFloating:b}),[w,b]),j=r.useMemo(()=>({reference:x,floating:E}),[x,E]),I=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eF(j.floating,d.x),r=eF(j.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ek(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,j.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:O,refs:N,elements:j,floatingStyles:I}),[d,O,N,j,I])}({strategy:"fixed",placement:h+("center"!==y?"-"+y:""),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:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=ev(e),d=i||a?[...s?eh(s):[],...eh(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=G(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),i();let c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let h=w(d),m=w(o.clientWidth-(s+f)),y={rootMargin:-h+"px "+-m+"px "+-w(o.clientHeight-(d+p))+"px "+-w(s)+"px",threshold:v(0,g(1,u))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==u){if(!b)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eT(c,e.getBoundingClientRect())||a(),b=!1}try{r=new IntersectionObserver(x,{...y,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,y)}r.observe(e)}(!0),i}(s,n):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),s&&!c&&h.observe(s),h.observe(t));let m=c?ex(e):null;return c&&function t(){let r=ex(e);m&&!eT(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:O.anchor},middleware:[eV({mainAxis:m+F,alignmentAxis:b}),E&&eB({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?eH():void 0,...B}),E&&eX({...B}),eK({...B,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),I&&ez({element:I,padding:x}),ti({arrowWidth:k,arrowHeight:F}),S&&eY({strategy:"referenceHidden",...B})]}),[Z,q]=ta(K),$=(0,eq.W)(M);(0,e$.b)(()=>{Y&&(null==$||$())},[Y,$]);let Q=null===(n=z.arrow)||void 0===n?void 0:n.x,J=null===(o=z.arrow)||void 0===o?void 0:o.y,ee=(null===(a=z.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=r.useState();return(0,e$.b)(()=>{T&&en(window.getComputedStyle(T).zIndex)},[T]),(0,eG.jsx)("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Y?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=z.transformOrigin)||void 0===l?void 0:l.x,null===(c=z.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=z.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eG.jsx)(e4,{scope:p,placedSide:Z,onArrowChange:D,arrowX:Q,arrowY:J,shouldHideArrow:ee,children:(0,eG.jsx)(u.WV.div,{"data-side":Z,"data-align":q,...A,ref:j,style:{...A.style,animation:Y?void 0:"none"}})})})});te.displayName=e8;var tt="PopperArrow",tn={top:"bottom",right:"left",bottom:"top",left:"right"},tr=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e3(tt,n),i=tn[o.placedSide];return(0,eG.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,eG.jsx)(eZ,{...r,ref:t,style:{...r.style,display:"block"}})})});function to(e){return null!==e}tr.displayName=tt;var ti=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,h]=ta(l),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,v=(null!==(a=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",w="";return"bottom"===p?(y=s?m:"".concat(g,"px"),w="".concat(-f,"px")):"top"===p?(y=s?m:"".concat(g,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?m:"".concat(v,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?m:"".concat(v,"px")),{data:{x:y,y:w}}}});function ta(e){let[t,n="center"]=e.split("-");return[t,n]}var tl=n(3832),tu=n(1599),tc=n(1353),ts=n(7495),td=n(5478),tf=n(9157),tp=["Enter"," "],th=["ArrowUp","PageDown","End"],tm=["ArrowDown","PageUp","Home",...th],tg={ltr:[...tp,"ArrowRight"],rtl:[...tp,"ArrowLeft"]},tv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ty="Menu",[tw,tb,tx]=(0,c.B)(ty),[tE,tR]=(0,a.b)(ty,[tx,e1,tc.Pc]),t_=e1(),tC=(0,tc.Pc)(),[tS,tP]=tE(ty),[tM,tA]=tE(ty),tO=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,u=t_(t),[c,d]=r.useState(null),f=r.useRef(!1),p=(0,eq.W)(a),h=(0,s.gm)(i);return r.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})}},[]),(0,eG.jsx)(e7,{...u,children:(0,eG.jsx)(tS,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,eG.jsx)(tM,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:l,children:o})})})};tO.displayName=ty;var tT=r.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=t_(n);return(0,eG.jsx)(e9,{...o,...r,ref:t})});tT.displayName="MenuAnchor";var tN="MenuPortal",[tj,tI]=tE(tN,{forceMount:void 0}),tD=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tP(tN,t);return(0,eG.jsx)(tj,{scope:t,forceMount:n,children:(0,eG.jsx)(tu.z,{present:n||i.open,children:(0,eG.jsx)(tl.h,{asChild:!0,container:o,children:r})})})};tD.displayName=tN;var tL="MenuContent",[tk,tF]=tE(tL),tW=r.forwardRef((e,t)=>{let n=tI(tL,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tP(tL,e.__scopeMenu),a=tA(tL,e.__scopeMenu);return(0,eG.jsx)(tw.Provider,{scope:e.__scopeMenu,children:(0,eG.jsx)(tu.z,{present:r||i.open,children:(0,eG.jsx)(tw.Slot,{scope:e.__scopeMenu,children:a.modal?(0,eG.jsx)(tU,{...o,ref:t}):(0,eG.jsx)(tV,{...o,ref:t})})})})}),tU=r.forwardRef((e,t)=>{let n=tP(tL,e.__scopeMenu),a=r.useRef(null),l=(0,i.e)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,td.Ry)(e)},[]),(0,eG.jsx)(tB,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tV=r.forwardRef((e,t)=>{let n=tP(tL,e.__scopeMenu);return(0,eG.jsx)(tB,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tB=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,onDismiss:w,disableOutsideScroll:b,...x}=e,E=tP(tL,n),R=tA(tL,n),_=t_(n),C=tC(n),S=tb(n),[P,M]=r.useState(null),A=r.useRef(null),O=(0,i.e)(t,A,E.onContentChange),T=r.useRef(0),N=r.useRef(""),j=r.useRef(0),I=r.useRef(null),D=r.useRef("right"),L=r.useRef(0),k=b?tf.Z:r.Fragment,F=b?{as:ts.g7,allowPinchZoom:!0}:void 0,W=e=>{var t,n;let r=N.current+e,o=S().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,a),u=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){N.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};r.useEffect(()=>()=>window.clearTimeout(T.current),[]),(0,f.EW)();let U=r.useCallback(e=>{var t,n,r;return D.current===(null===(t=I.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=I.current)||void 0===n?void 0:n.area)&&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 a=t[e].x,l=t[e].y,u=t[i].x,c=t[i].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,eG.jsx)(tk,{scope:n,searchRef:N,onItemEnter:r.useCallback(e=>{U(e)&&e.preventDefault()},[U]),onItemLeave:r.useCallback(e=>{var t;U(e)||(null===(t=A.current)||void 0===t||t.focus(),M(null))},[U]),onTriggerLeave:r.useCallback(e=>{U(e)&&e.preventDefault()},[U]),pointerGraceTimerRef:j,onPointerGraceIntentChange:r.useCallback(e=>{I.current=e},[]),children:(0,eG.jsx)(k,{...F,children:(0,eG.jsx)(p.M,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.M)(u,e=>{var t;e.preventDefault(),null===(t=A.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,eG.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:y,onDismiss:w,children:(0,eG.jsx)(tc.fC,{asChild:!0,...C,dir:R.dir,orientation:"vertical",loop:a,currentTabStopId:P,onCurrentTabStopIdChange:M,onEntryFocus:(0,o.M)(h,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eG.jsx)(te,{role:"menu","aria-orientation":"vertical","data-state":na(E.open),"data-radix-menu-content":"",dir:R.dir,..._,...x,ref:O,style:{outline:"none",...x.style},onKeyDown:(0,o.M)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));let o=A.current;if(e.target!==o||!tm.includes(e.key))return;e.preventDefault();let i=S().filter(e=>!e.disabled).map(e=>e.ref.current);th.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,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),N.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,nc(e=>{let t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>L.current?"right":"left";D.current=t,L.current=e.clientX}}))})})})})})})});tW.displayName=tL;var tH=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eG.jsx)(u.WV.div,{role:"group",...r,ref:t})});tH.displayName="MenuGroup";var tX=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eG.jsx)(u.WV.div,{...r,ref:t})});tX.displayName="MenuLabel";var tK="MenuItem",tY="menu.itemSelect",tz=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...l}=e,c=r.useRef(null),s=tA(tK,e.__scopeMenu),d=tF(tK,e.__scopeMenu),f=(0,i.e)(t,c),p=r.useRef(!1);return(0,eG.jsx)(tG,{...l,ref:f,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(tY,{bubbles:!0,cancelable:!0});e.addEventListener(tY,e=>null==a?void 0:a(e),{once:!0}),(0,u.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&tp.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tz.displayName=tK;var tG=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:l,...c}=e,s=tF(tK,n),d=tC(n),f=r.useRef(null),p=(0,i.e)(t,f),[h,m]=r.useState(!1),[g,v]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;v((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,eG.jsx)(tw.ItemSlot,{scope:n,disabled:a,textValue:null!=l?l:g,children:(0,eG.jsx)(tc.ck,{asChild:!0,...d,focusable:!a,children:(0,eG.jsx)(u.WV.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...c,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,nc(e=>{a?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nc(e=>s.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>m(!0)),onBlur:(0,o.M)(e.onBlur,()=>m(!1))})})})}),tZ=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,eG.jsx)(t5,{scope:e.__scopeMenu,checked:n,children:(0,eG.jsx)(tz,{role:"menuitemcheckbox","aria-checked":nl(n)?"mixed":n,...i,ref:t,"data-state":nu(n),onSelect:(0,o.M)(i.onSelect,()=>null==r?void 0:r(!!nl(n)||!n),{checkForDefaultPrevented:!1})})})});tZ.displayName="MenuCheckboxItem";var tq="MenuRadioGroup",[t$,tQ]=tE(tq,{value:void 0,onValueChange:()=>{}}),tJ=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eq.W)(r);return(0,eG.jsx)(t$,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eG.jsx)(tH,{...o,ref:t})})});tJ.displayName=tq;var t0="MenuRadioItem",t1=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=tQ(t0,e.__scopeMenu),a=n===i.value;return(0,eG.jsx)(t5,{scope:e.__scopeMenu,checked:a,children:(0,eG.jsx)(tz,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":nu(a),onSelect:(0,o.M)(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});t1.displayName=t0;var t2="MenuItemIndicator",[t5,t7]=tE(t2,{checked:!1}),t6=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=t7(t2,n);return(0,eG.jsx)(tu.z,{present:r||nl(i.checked)||!0===i.checked,children:(0,eG.jsx)(u.WV.span,{...o,ref:t,"data-state":nu(i.checked)})})});t6.displayName=t2;var t9=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eG.jsx)(u.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});t9.displayName="MenuSeparator";var t8=r.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e,o=t_(n);return(0,eG.jsx)(tr,{...o,...r,ref:t})});t8.displayName="MenuArrow";var t4="MenuSub",[t3,ne]=tE(t4),nt=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=tP(t4,t),l=t_(t),[u,c]=r.useState(null),[s,d]=r.useState(null),f=(0,eq.W)(i);return r.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,eG.jsx)(e7,{...l,children:(0,eG.jsx)(tS,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,eG.jsx)(t3,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:u,onTriggerChange:c,children:n})})})};nt.displayName=t4;var nn="MenuSubTrigger",nr=r.forwardRef((e,t)=>{let n=tP(nn,e.__scopeMenu),a=tA(nn,e.__scopeMenu),l=ne(nn,e.__scopeMenu),u=tF(nn,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,eG.jsx)(tT,{asChild:!0,...f,children:(0,eG.jsx)(tG,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":na(n.open),...e,ref:(0,i.F)(t,l.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,nc(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,nc(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&tg[a.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});nr.displayName=nn;var no="MenuSubContent",ni=r.forwardRef((e,t)=>{let n=tI(tL,e.__scopeMenu),{forceMount:a=n.forceMount,...l}=e,u=tP(tL,e.__scopeMenu),c=tA(tL,e.__scopeMenu),s=ne(no,e.__scopeMenu),d=r.useRef(null),f=(0,i.e)(t,d);return(0,eG.jsx)(tw.Provider,{scope:e.__scopeMenu,children:(0,eG.jsx)(tu.z,{present:a||u.open,children:(0,eG.jsx)(tw.Slot,{scope:e.__scopeMenu,children:(0,eG.jsx)(tB,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tv[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function na(e){return e?"open":"closed"}function nl(e){return"indeterminate"===e}function nu(e){return nl(e)?"indeterminate":e?"checked":"unchecked"}function nc(e){return t=>"mouse"===t.pointerType?e(t):void 0}ni.displayName=no;var ns="DropdownMenu",[nd,nf]=(0,a.b)(ns,[tR]),np=tR(),[nh,nm]=nd(ns),ng=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:c=!0}=e,s=np(t),d=r.useRef(null),[f=!1,p]=(0,l.T)({prop:i,defaultProp:a,onChange:u});return(0,eG.jsx)(nh,{scope:t,triggerId:(0,h.M)(),triggerRef:d,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,eG.jsx)(tO,{...s,open:f,onOpenChange:p,dir:o,modal:c,children:n})})};ng.displayName=ns;var nv="DropdownMenuTrigger",ny=r.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,l=nm(nv,n),c=np(n);return(0,eG.jsx)(tT,{asChild:!0,...c,children:(0,eG.jsx)(u.WV.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.F)(t,l.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ny.displayName=nv;var nw=e=>{let{__scopeDropdownMenu:t,...n}=e,r=np(t);return(0,eG.jsx)(tD,{...r,...n})};nw.displayName="DropdownMenuPortal";var nb="DropdownMenuContent",nx=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=nm(nb,n),l=np(n),u=r.useRef(!1);return(0,eG.jsx)(tW,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.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)"}})});nx.displayName=nb;var nE=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(tH,{...o,...r,ref:t})});nE.displayName="DropdownMenuGroup";var nR=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(tX,{...o,...r,ref:t})});nR.displayName="DropdownMenuLabel";var n_=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(tz,{...o,...r,ref:t})});n_.displayName="DropdownMenuItem";var nC=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(tZ,{...o,...r,ref:t})});nC.displayName="DropdownMenuCheckboxItem";var nS=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(tJ,{...o,...r,ref:t})});nS.displayName="DropdownMenuRadioGroup";var nP=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(t1,{...o,...r,ref:t})});nP.displayName="DropdownMenuRadioItem";var nM=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(t6,{...o,...r,ref:t})});nM.displayName="DropdownMenuItemIndicator";var nA=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(t9,{...o,...r,ref:t})});nA.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(t8,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nO=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(nr,{...o,...r,ref:t})});nO.displayName="DropdownMenuSubTrigger";var nT=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=np(n);return(0,eG.jsx)(ni,{...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)"}})});nT.displayName="DropdownMenuSubContent";var nN=ng,nj=ny,nI=nw,nD=nx,nL=nE,nk=nR,nF=n_,nW=nC,nU=nS,nV=nP,nB=nM,nH=nA,nX=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=np(t),[u=!1,c]=(0,l.T)({prop:r,defaultProp:i,onChange:o});return(0,eG.jsx)(nt,{...a,open:u,onOpenChange:c,children:n})},nK=nO,nY=nT},6097:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(2265),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),o--}},[])}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.style.position="fixed",e.style.pointerEvents="none",e}},9103:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(2265),i=n(8575),a=n(6840),l=n(6606),u=n(7437),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:v,...y}=e,[w,b]=o.useState(null),x=(0,l.W)(f),E=(0,l.W)(v),R=o.useRef(null),_=(0,i.e)(t,e=>b(e)),C=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(C.paused||!w)return;let t=e.target;w.contains(t)?R.current=t:m(R.current,{select:!0})},t=function(e){if(C.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||m(R.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&&m(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,C.paused]),o.useEffect(()=>{if(w){g.add(C);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,d);w.addEventListener(c,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(m(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,d);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),g.remove(C)},0)}}},[w,x,E,C]);let S=o.useCallback(e=>{if(!n&&!r||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&m(i,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,C.paused]);return(0,u.jsx)(a.WV.div,{tabIndex:-1,...y,ref:_,onKeyDown:S})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function h(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(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()}}f.displayName="FocusScope";var g=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=v(r,e)).unshift(e)},remove(e){var t;null===(t=(r=v(r,e))[0])||void 0===t||t.resume()}});function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},3832:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(2265),o=n(4887),i=n(6840),a=n(1188),l=n(7437),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,a.b)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,l.jsx)(i.WV.div,{...s,ref:t}),p):null});u.displayName="Portal"}}]);
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.