PageSourceSearch

https://polypages.ai/_next/static/chunks/7441-ddfffb5c408ea706.js

js polypages.ai collected 2026-10-05 15:44:36 UTC 52,107 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dc67caf9-d6a1-4097-9288-3bb00d1406de",e._sentryDebugIdIdentifier="sentry-dbid-dc67caf9-d6a1-4097-9288-3bb00d1406de")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7441],{10407:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},40519:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},53795:function(e,t,n){var r=n(33910),o=n(99138),a=n(14814);t.iV=r.default,o.default,a.default},50628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52680),o=n(2265),a=n(12579),l=n(99448),i=n(92417),u=o&&o.__esModule?o:{default:o};let c=o.forwardRef(function(e,t){let{locale:n,localePrefix:o,...c}=e,d=a.default(),s=n||d,f=l.getLocalePrefix(s,o);return u.default.createElement(i.default,r.extends({ref:t,locale:s,localePrefixMode:o.mode,prefix:f},c))});c.displayName="ClientLink",t.default=c},99138:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52680),o=n(2265),a=n(12579),l=n(99415),i=n(42571),u=n(50628),c=n(92219),d=n(6188),s=n(26900),f=o&&o.__esModule?o:{default:o};t.default=function(e){let t=l.receiveRoutingConfig(e),n=l.receiveLocaleCookie(e.localeCookie);function p(){let e=a.default();if(!t.locales.includes(e))throw Error(void 0);return e}let v=o.forwardRef(function(e,o){let{href:a,locale:l,...c}=e,d=p(),s=l||d;return f.default.createElement(u.default,r.extends({ref:o,href:i.compileLocalizedPathname({locale:s,pathname:a,params:"object"==typeof a?a.params:void 0,pathnames:t.pathnames}),locale:l,localeCookie:n,localePrefix:t.localePrefix},c))});function m(e){let{href:n,locale:r}=e;return i.compileLocalizedPathname({...i.normalizeNameOrNameWithParams(n),locale:r,pathnames:t.pathnames})}return v.displayName="Link",{Link:v,redirect:function(e){let n=m({href:e,locale:p()});for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return c.clientRedirect({pathname:n,localePrefix:t.localePrefix},...o)},permanentRedirect:function(e){let n=m({href:e,locale:p()});for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return c.clientPermanentRedirect({pathname:n,localePrefix:t.localePrefix},...o)},usePathname:function(){let e=d.default(t),n=p();return o.useMemo(()=>e?i.getRoute(n,e,t.pathnames):e,[n,e])},useRouter:function(){let e=s.default(t.localePrefix,n),r=p();return o.useMemo(()=>({...e,push(t){for(var n,o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];let i=m({href:t,locale:(null===(n=a[0])||void 0===n?void 0:n.locale)||r});return e.push(i,...a)},replace(t){for(var n,o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];let i=m({href:t,locale:(null===(n=a[0])||void 0===n?void 0:n.locale)||r});return e.replace(i,...a)},prefetch(t){for(var n,o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];let i=m({href:t,locale:(null===(n=a[0])||void 0===n?void 0:n.locale)||r});return e.prefetch(i,...a)}}),[e,r])},getPathname:m}}},14814:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(99376),o=n(2265),a=n(12579),l=n(44986),i=n(56146),u=n(42571),c=n(6188);t.default=function(e){function t(){return a.default()}let{Link:n,config:d,getPathname:s,...f}=l.default(t,e);return{...f,Link:n,usePathname:function(){let e=c.default(d),n=t();return o.useMemo(()=>e&&d.pathnames?u.getRoute(n,e,d.pathnames):e,[n,e])},useRouter:function(){let e=r.useRouter(),n=t(),a=r.usePathname();return o.useMemo(()=>{function t(e){return function(t,r){let{locale:o,...l}=r||{},u=[s({href:t,locale:o||n,domain:window.location.host})];Object.keys(l).length>0&&u.push(l),e(...u),i.default(d.localeCookie,a,n,o)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[n,a,e])},getPathname:s}}}
1,33910:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52680),o=n(2265),a=n(99415),l=n(50628),i=n(92219),u=n(6188),c=n(26900),d=o&&o.__esModule?o:{default:o};t.default=function(e){let t=a.receiveLocalePrefixConfig(null==e?void 0:e.localePrefix),n=a.receiveLocaleCookie(null==e?void 0:e.localeCookie),s=o.forwardRef(function(e,o){return d.default.createElement(l.default,r.extends({ref:o,localeCookie:n,localePrefix:t},e))});return s.displayName="Link",{Link:s,redirect:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return i.clientRedirect({pathname:e,localePrefix:t},...r)},permanentRedirect:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return i.clientPermanentRedirect({pathname:e,localePrefix:t},...r)},usePathname:function(){return u.default({localePrefix:t,defaultLocale:null==e?void 0:e.defaultLocale})},useRouter:function(){return c.default(t,n)}}}},92219:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(12579),o=n(90050);function a(e){return function(t){let n;try{n=r.default()}catch(e){throw e}for(var o=arguments.length,a=Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return e({...t,locale:n},...a)}}let l=a(o.baseRedirect),i=a(o.basePermanentRedirect);t.clientPermanentRedirect=i,t.clientRedirect=l},6188:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(99376),o=n(2265),a=n(12579),l=n(99448);t.default=function(e){let t=r.usePathname(),n=a.default();return o.useMemo(()=>{if(!t)return t;let r=t,o=l.getLocalePrefix(n,e.localePrefix);if(l.hasPathnamePrefixed(o,t))r=l.unprefixPathname(t,o);else if("as-needed"===e.localePrefix.mode&&e.localePrefix.prefixes){let e=l.getLocaleAsPrefix(n);l.hasPathnamePrefixed(e,t)&&(r=l.unprefixPathname(t,e))}return r},[e.localePrefix,n,t])}},26900:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(99376),o=n(2265),a=n(12579),l=n(99448),i=n(56146),u=n(42571);t.default=function(e,t){let n=r.useRouter(),c=a.default(),d=r.usePathname();return o.useMemo(()=>{function r(n){return function(r,o){let{locale:a,...s}=o||{};i.default(t,d,c,a);let f=[function(t,n){let r=window.location.pathname,o=u.getBasePath(d);o&&(r=r.replace(o,""));let a=n||c,i=l.getLocalePrefix(a,e);return l.localizeHref(t,a,c,r,i)}(r,a)];return Object.keys(s).length>0&&f.push(s),n(...f)}}return{...n,push:r(n.push),replace:r(n.replace),prefetch:r(n.prefetch)}},[c,t,e,d,n])}},23740:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52680),o=n(27648),a=n(99376),l=n(2265),i=n(12579),u=n(56146);function c(e){return e&&e.__esModule?e:{default:e}}var d=c(o),s=c(l),f=l.forwardRef(function(e,t){let{defaultLocale:n,href:o,locale:c,localeCookie:f,onClick:p,prefetch:v,unprefixed:m,...h}=e,g=i.default(),y=null!=c&&c!==g,x=c||g,w=function(){let[e,t]=l.useState();return l.useEffect(()=>{t(window.location.host)},[]),e}(),b=w&&m&&(m.domains[w]===x||!Object.keys(m.domains).includes(w)&&g===n&&!c)?m.pathname:o,P=a.usePathname();return y&&(v=!1),s.default.createElement(d.default,r.extends({ref:t,href:b,hrefLang:y?c:void 0,onClick:function(e){u.default(f,P,g,c),p&&p(e)},prefetch:v},h))});t.default=f},92417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52680),o=n(99376),a=n(2265),l=n(12579),i=n(99448),u=n(23740),c=a&&a.__esModule?a:{default:a};let d=a.forwardRef(function(e,t){let{href:n,locale:d,localeCookie:s,localePrefixMode:f,prefix:p,...v}=e,m=o.usePathname(),h=l.default(),g=d!==h,[y,x]=a.useState(()=>i.isLocalizableHref(n)&&("never"!==f||g)?i.prefixHref(n,p):n);return a.useEffect(()=>{m&&x(i.localizeHref(n,d,h,m,p))},[h,n,d,m,p]),c.default.createElement(u.default,r.extends({ref:t,href:y,locale:d,localeCookie:s},v))});d.displayName="ClientLink",t.default=d},44986:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(52680),o=n(99376),a=n(2265),l=n(99415),i=n(99448),u=n(23740),c=n(42571),d=a&&a.__esModule?a:{default:a};t.default=function(e,t){let n=l.receiveRoutingConfig(t||{}),s=n.pathnames,f="as-needed"===n.localePrefix.mode&&n.domains||void 0,p=a.forwardRef(function(t,o){let l,c,p,{href:m,locale:h,...g}=t;"object"==typeof m?(l=m.pathname,p=m.query,c=m.params):l=m;let y=i.isLocalizableHref(m),x=e(),w=i.isPromise(x)?a.use(x):x,b=y?v({locale:h||w,href:null==s?l:{pathname:l,params:c}},null!=h||f||void 0):l;return d.default.createElement(u.default,r.extends({ref:o,defaultLocale:n.defaultLocale,href:"object"==typeof m?{...m,pathname:b}:b,locale:h,localeCookie:n.localeCookie,unprefixed:f&&y?{domains:n.domains.reduce((e,t)=>
1(e[t.domain]=t.defaultLocale,e),{}),pathname:v({locale:w,href:null==s?{pathname:l,query:p}:{pathname:l,query:p,params:c}},!1)}:void 0},g))});function v(e,t){let r;let{href:o,locale:a}=e;return null==s?"object"==typeof o?(r=o.pathname,o.query&&(r+=c.serializeSearchParams(o.query))):r=o:r=c.compileLocalizedPathname({locale:a,...c.normalizeNameOrNameWithParams(o),pathnames:n.pathnames}),c.applyPathnamePrefix(r,a,n,e.domain,t)}function m(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e(v(t,t.domain?void 0:f),...r)}}return{config:n,Link:p,redirect:m(o.redirect),permanentRedirect:m(o.permanentRedirect),getPathname:v}}},90050:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(99376),o=n(99448);function a(e){return function(t){let n=o.getLocalePrefix(t.locale,t.localePrefix),r="never"!==t.localePrefix.mode&&o.isLocalizableHref(t.pathname)?o.prefixPathname(n,t.pathname):t.pathname;for(var a=arguments.length,l=Array(a>1?a-1:0),i=1;i<a;i++)l[i-1]=arguments[i];return e(r,...l)}}let l=a(r.redirect),i=a(r.permanentRedirect);t.basePermanentRedirect=i,t.baseRedirect=l},56146:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(42571);t.default=function(e,t,n,o){if(!e||!(o!==n&&null!=o)||!t)return;let a=r.getBasePath(t),{name:l,...i}=e;i.path||(i.path=""!==a?a:"/");let u="".concat(l,"=").concat(o,";");for(let[e,t]of Object.entries(i))u+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(u+="="+t),u+=";";document.cookie=u}},42571:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(99448);function o(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}t.applyPathnamePrefix=function(e,t,n,o,a){let l;let{mode:i}=n.localePrefix;if(void 0!==a)l=a;else if(r.isLocalizableHref(e)){if("always"===i)l=!0;else if("as-needed"===i){let e=n.defaultLocale;if(n.domains){let t=n.domains.find(e=>e.domain===o);t&&(e=t.defaultLocale)}l=e!==t}}return l?r.prefixPathname(r.getLocalePrefix(t,n.localePrefix),e):e},t.compileLocalizedPathname=function(e){let{pathname:t,locale:n,params:a,pathnames:l,query:i}=e;function u(e){let t=l[e];return t||(t=e),t}function c(e){let t="string"==typeof e?e:e[n];return a&&Object.entries(a).forEach(e=>{let n,r,[o,a]=e;Array.isArray(a)?(n="(\\[)?\\[...".concat(o,"\\](\\])?"),r=a.map(e=>String(e)).join("/")):(n="\\[".concat(o,"\\]"),r=String(a)),t=t.replace(RegExp(n,"g"),r)}),t=t.replace(/\[\[\.\.\..+\]\]/g,""),t=r.normalizeTrailingSlash(t),i&&(t+=o(i)),t}if("string"==typeof t)return c(u(t));{let{pathname:e,...n}=t;return{...n,pathname:c(u(e))}}},t.getBasePath=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")},t.getRoute=function(e,t,n){let o=r.getSortedPathnames(Object.keys(n)),a=decodeURI(t);for(let t of o){let o=n[t];if("string"==typeof o){if(r.matchesPathname(o,a))return t}else if(r.matchesPathname(o[e],a))return t}return t},t.normalizeNameOrNameWithParams=function(e){return"string"==typeof e?{pathname:e}:e},t.serializeSearchParams=o},99415:function(e,t){function n(e){return!(null!=e&&!e)&&{name:"NEXT_LOCALE",maxAge:31536e3,sameSite:"lax",..."object"==typeof e&&e}}function r(e){return"object"==typeof e?e:{mode:e||"always"}}Object.defineProperty(t,"__esModule",{value:!0}),t.receiveLocaleCookie=n,t.receiveLocalePrefixConfig=r,t.receiveRoutingConfig=function(e){var t,o;return{...e,localePrefix:r(e.localePrefix),localeCookie:n(e.localeCookie),localeDetection:null===(t=e.localeDetection)||void 0===t||t,alternateLinks:null===(o=e.alternateLinks)||void 0===o||o}}},99448:function(e,t,n){var r=n(25566);function o(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function a(e,t){let n;return"string"==typeof e?n=l(t,e):(n={...e},e.pathname&&(n.pathname=l(t,e.pathname))),n}function l(e,t){let n=e;
1return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function i(e,t){return t===e||t.startsWith("".concat(e,"/"))}function u(e){let t=function(){try{return"true"===r.env._next_intl_trailing_slash}catch(e){return!1}}();if("/"!==e){let n=e.endsWith("/");t&&!n?e+="/":!t&&n&&(e=e.slice(0,-1))}return e}function c(e){return"/"+e}function d(e){let t=e.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return new RegExp("^".concat(t,"$"))}function s(e){return e.includes("[[...")}function f(e){return e.includes("[...")}function p(e){return e.includes("[")}function v(e,t){let n=e.split("/"),r=t.split("/"),o=Math.max(n.length,r.length);for(let e=0;e<o;e++){let t=n[e],o=r[e];if(!t&&o)return -1;if(t&&!o)return 1;if(t||o){if(!p(t)&&p(o))return -1;if(p(t)&&!p(o))return 1;if(!f(t)&&f(o))return -1;if(f(t)&&!f(o))return 1;if(!s(t)&&s(o))return -1;if(s(t)&&!s(o))return 1}}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocaleAsPrefix=c,t.getLocalePrefix=function(e,t){var n;return"never"!==t.mode&&(null===(n=t.prefixes)||void 0===n?void 0:n[e])||c(e)},t.getSortedPathnames=function(e){return e.sort(v)},t.hasPathnamePrefixed=i,t.isLocalizableHref=o,t.isPromise=function(e){return"function"==typeof e.then},t.localizeHref=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;if(!o(e))return e;let u=i(l,r);return(t!==n||u)&&null!=l?a(e,l):e},t.matchesPathname=function(e,t){let n=u(e),r=u(t);return d(n).test(r)},t.normalizeTrailingSlash=u,t.prefixHref=a,t.prefixPathname=l,t.templateToRegex=d,t.unprefixPathname=function(e,t){return e.replace(new RegExp("^".concat(t)),"")||"/"}},16268:function(e,t,n){let r;n.d(t,{oC:function(){return tJ},VY:function(){return tX},ZA:function(){return tY},ck:function(){return t$},wU:function(){return t1},__:function(){return tq},Uv:function(){return tV},Ee:function(){return tQ},Rk:function(){return t0},fC:function(){return tG},Z0:function(){return t9},Tr:function(){return t2},tu:function(){return t6},fF:function(){return t5},xz:function(){return tZ}});var o,a=n(2265),l=n(6741),i=n(98575),u=n(73966),c=n(80886),d=n(54887),s=n(37053),f=n(57437),p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,s.Z8)(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:o,...a}=e,l=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(l,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function v(e,t){e&&d.flushSync(()=>e.dispatchEvent(t))}function m(e){let t=e+"CollectionProvider",[n,r]=(0,u.b)(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:n}=e,r=a.useRef(null),l=a.useRef(new Map).current;return(0,f.jsx)(o,{scope:t,itemMap:l,collectionRef:r,children:n})};c.displayName=t;let d=e+"CollectionSlot",p=(0,s.Z8)(d),v=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=l(d,n),a=(0,i.e)(t,o.collectionRef);return(0,f.jsx)(p,{ref:a,children:r})});v.displayName=d;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,s.Z8)(m),y=a.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,u=a.useRef(null),c=(0,i.e)(t,u),d=l(m,n);return a.useEffect(()=>(d.itemMap.set(u,{ref:u,...o}),()=>void d.itemMap.delete(u))),(0,f.jsx)(g,{[h]:"",ref:c,children:r})});return y.displayName=m,[{Provider:c,Slot:v,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}
1n(95691),n(25134),n(11455);var h=n(29114),g=n(26606),y=n(91096),x="dismissableLayer.update",w=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),b=a.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:s,onInteractOutside:v,onDismiss:m,...h}=e,b=a.useContext(w),[R,C]=a.useState(null),E=null!==(r=null==R?void 0:R.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,j]=a.useState({}),_=(0,i.e)(t,e=>C(e)),L=Array.from(b.layers),[k]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),D=L.indexOf(k),O=R?L.indexOf(R):-1,N=b.layersWithOutsidePointerEventsDisabled.size>0,S=O>=D,A=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,g.W)(e),o=a.useRef(!1),l=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){M("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!S||n||(null==d||d(e),null==v||v(e),e.defaultPrevented||null==m||m())},E),T=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,g.W)(e),o=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!o.current&&M("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...b.branches].some(e=>e.contains(t))||(null==s||s(e),null==v||v(e),e.defaultPrevented||null==m||m())},E);return(0,y.e)(e=>{O!==b.layers.size-1||(null==c||c(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},E),a.useEffect(()=>{if(R)return u&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(o=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(R)),b.layers.add(R),P(),()=>{u&&1===b.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=o)}},[R,E,u,b]),a.useEffect(()=>()=>{R&&(b.layers.delete(R),b.layersWithOutsidePointerEventsDisabled.delete(R),P())},[R,b]),a.useEffect(()=>{let e=()=>j({});return document.addEventListener(x,e),()=>document.removeEventListener(x,e)},[]),(0,f.jsx)(p.div,{...h,ref:_,style:{pointerEvents:N?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,l.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,l.M)(e.onPointerDownCapture,A.onPointerDownCapture)})});function P(){let e=new CustomEvent(x);document.dispatchEvent(e)}function M(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?v(a,l):a.dispatchEvent(l)}b.displayName="DismissableLayer",a.forwardRef((e,t)=>{let n=a.useContext(w),r=a.useRef(null),o=(0,i.e)(t,r);return a.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(p.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var R=n(86097),C="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",j={bubbles:!1,cancelable:!0},_=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[c,d]=a.useState(null),s=(0,g.W)(o),v=(0,g.W)(l),m=a.useRef(null),h=(0,i.e)(t,e=>d(e)),y=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?m.current=t:D(m.current,{select:!0})},t=function(e){if(y.paused||!c)return;let t=e.relatedTarget;null===t||c.contains(t)||D(m.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,y.paused]),a.useEffect(()=>{if(c){O.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(C,j);c.addEventListener(C,s),c.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}(L(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&D(c))}return()=>{c.removeEventListener(C,s),setTimeout(()=>{let t=new CustomEvent(E,j);c.addEventListener(E,v),c.dispatchEvent(t),t.defaultPrevented||D(null!=e?e:document.body,{select:!0}),c.removeEventListener(E,v),O.remove(y)},0)}}},[c,s,v,y]);let x=a.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=L(e);return[k(t,e),k(t.reverse(),e)]}(t);
1r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&D(a,{select:!0})):(e.preventDefault(),n&&D(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,f.jsx)(p.div,{tabIndex:-1,...u,ref:h,onKeyDown:x})});function L(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function k(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function D(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}_.displayName="FocusScope";var O=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=N(r,e)).unshift(e)},remove(e){var t;null===(t=(r=N(r,e))[0])||void 0===t||t.resume()}});function N(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var S=n(99255),A=n(97859),T=n(50032),I=a.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,f.jsx)(p.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});I.displayName="Arrow";var F=n(61188),K=n(90420),W="Popper",[z,U]=(0,u.b)(W),[H,B]=z(W),G=e=>{let{__scopePopper:t,children:n}
1=e,[r,o]=a.useState(null);return(0,f.jsx)(H,{scope:t,anchor:r,onAnchorChange:o,children:n})};G.displayName=W;var Z="PopperAnchor",V=a.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,l=B(Z,n),u=a.useRef(null),c=(0,i.e)(t,u);return a.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||u.current)}),r?null:(0,f.jsx)(p.div,{...o,ref:c})});V.displayName=Z;var X="PopperContent",[Y,q]=z(X),$=a.forwardRef((e,t)=>{var n,r,o,l,u,c,d,s;let{__scopePopper:v,side:m="bottom",sideOffset:h=0,align:y="center",alignOffset:x=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:P=[],collisionPadding:M=0,sticky:R="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:j,..._}=e,L=B(X,v),[k,D]=a.useState(null),O=(0,i.e)(t,e=>D(e)),[N,S]=a.useState(null),I=(0,K.t)(N),W=null!==(d=null==I?void 0:I.width)&&void 0!==d?d:0,z=null!==(s=null==I?void 0:I.height)&&void 0!==s?s:0,U="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},H=Array.isArray(P)?P:[P],G=H.length>0,Z={padding:U,boundary:H.filter(et),altBoundary:G},{refs:V,floatingStyles:q,placement:$,isPositioned:J,middlewareData:Q}=(0,A.YF)({strategy:"fixed",placement:m+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,T.Me)(...t,{animationFrame:"always"===E})},elements:{reference:L.anchor},middleware:[(0,A.cv)({mainAxis:h+z,alignmentAxis:x}),b&&(0,A.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?(0,A.dr)():void 0,...Z}),b&&(0,A.RR)({...Z}),(0,A.dp)({...Z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:l}=n.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(r,"px")),i.setProperty("--radix-popper-available-height","".concat(o,"px")),i.setProperty("--radix-popper-anchor-width","".concat(a,"px")),i.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),N&&(0,A.x7)({element:N,padding:w}),en({arrowWidth:W,arrowHeight:z}),C&&(0,A.Cp)({strategy:"referenceHidden",...Z})]}),[ee,eo]=er($),ea=(0,g.W)(j);(0,F.b)(()=>{J&&(null==ea||ea())},[J,ea]);let el=null===(n=Q.arrow)||void 0===n?void 0:n.x,ei=null===(r=Q.arrow)||void 0===r?void 0:r.y,eu=(null===(o=Q.arrow)||void 0===o?void 0:o.centerOffset)!==0,[ec,ed]=a.useState();return(0,F.b)(()=>{k&&ed(window.getComputedStyle(k).zIndex)},[k]),(0,f.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:J?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ec,"--radix-popper-transform-origin":[null===(l=Q.transformOrigin)||void 0===l?void 0:l.x,null===(u=Q.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(c=Q.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(Y,{scope:v,placedSide:ee,onArrowChange:S,arrowX:el,arrowY:ei,shouldHideArrow:eu,children:(0,f.jsx)(p.div,{"data-side":ee,"data-align":eo,..._,ref:O,style:{..._.style,animation:J?void 0:"none"}})})})});$.displayName=X;var J="PopperArrow",Q={top:"bottom",right:"left",bottom:"top",left:"right"},ee=a.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=q(J,n),a=Q[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]: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,f.jsx)(I,{...r,ref:t,style:{...r.style,display:"block"}})})});function et(e){return null!==e}ee.displayName=J;var en=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,l;let{placement:i,rects:u,middlewareData:c}=t,d=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,v]=er(i),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+s/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",x="";return"bottom"===p?(y=d?m:"".concat(h,"px"),x="".concat(-f,"px")):"top"===p?(y=d?m:"".concat(h,"px"),x="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),x=d?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),x=d?m:"".concat(g,"px")),{data:{x:y,y:x}}}});function er(e){let[t,n="center"]=e.split("-");return[t,n]}var eo=a.forwardRef((e,t)=>
1{var n,r;let{container:o,...l}=e,[i,u]=a.useState(!1);(0,F.b)(()=>u(!0),[]);let c=o||i&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?d.createPortal((0,f.jsx)(p.div,{...l,ref:t}),c):null});eo.displayName="Portal";var ea=e=>{var t,n;let r,o;let{present:l,children:u}=e,c=function(e){var t,n;let[r,o]=a.useState(),l=a.useRef(null),i=a.useRef(e),u=a.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},a.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return a.useEffect(()=>{let e=el(l.current);u.current="mounted"===c?e:"none"},[c]),(0,F.b)(()=>{let t=l.current,n=i.current;if(n!==e){let r=u.current,o=el(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),i.current=e}},[e,d]),(0,F.b)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>
1{let o=el(l.current).includes(e.animationName);if(e.target===r&&o&&(d("ANIMATION_END"),!i.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},a=e=>{e.target===r&&(u.current=el(l.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:a.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(l),d="function"==typeof u?u({present:c.isPresent}):a.Children.only(u),s=(0,i.e)(c.ref,(r=null===(t=Object.getOwnPropertyDescriptor(d.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?d.ref:(r=null===(n=Object.getOwnPropertyDescriptor(d,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?d.props.ref:d.props.ref||d.ref);return"function"==typeof u||c.isPresent?a.cloneElement(d,{ref:s}):null};function el(e){return(null==e?void 0:e.animationName)||"none"}ea.displayName="Presence";var ei="rovingFocusGroup.onEntryFocus",eu={bubbles:!1,cancelable:!0},ec="RovingFocusGroup",[ed,es,ef]=m(ec),[ep,ev]=(0,u.b)(ec,[ef]),[em,eh]=ep(ec),eg=a.forwardRef((e,t)=>(0,f.jsx)(ed.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(ed.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(ey,{...e,ref:t})})}));eg.displayName=ec;var ey=a.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:v,onEntryFocus:m,preventScrollOnEntryFocus:y=!1,...x}=e,w=a.useRef(null),b=(0,i.e)(t,w),P=(0,h.gm)(u),[M,R]=(0,c.T)({prop:d,defaultProp:null!=s?s:null,onChange:v,caller:ec}),[C,E]=a.useState(!1),j=(0,g.W)(m),_=es(n),L=a.useRef(!1),[k,D]=a.useState(0);return a.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(ei,j),()=>e.removeEventListener(ei,j)},[j]),(0,f.jsx)(em,{scope:n,orientation:r,dir:P,loop:o,currentTabStopId:M,onItemFocus:a.useCallback(e=>R(e),[R]),onItemShiftTab:a.useCallback(()=>E(!0),[]),onFocusableItemAdd:a.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:a.useCallback(()=>D(e=>e-1),[]),children:(0,f.jsx)(p.div,{tabIndex:C||0===k?-1:0,"data-orientation":r,...x,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,l.M)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,l.M)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(ei,eu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=_().filter(e=>e.focusable);eP([e.find(e=>e.active),e.find(e=>e.id===M),...e].filter(Boolean).map(e=>e.ref.current),y)}}L.current=!1}),onBlur:(0,l.M)(e.onBlur,()=>E(!1))})})}),ex="RovingFocusGroupItem",ew=a.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:u,...c}=e,d=(0,S.M)(),s=i||d,v=eh(ex,n),m=v.currentTabStopId===s,h=es(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:x}=v;return a.useEffect(()=>{if(r)return g(),()=>y()},[r,g,y]),(0,f.jsx)(ed.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:(0,f.jsx)(p.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{r?v.onItemFocus(s):e.preventDefault()}),onFocus:(0,l.M)(e.onFocus,()=>v.onItemFocus(s)),onKeyDown:(0,l.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return eb[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=v.loop?(n=o,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>eP(o))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=x}):u})})});ew.displayName=ex;var eb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eP(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var eM=n(5478),eR=n(69895),eC=["Enter"," "],eE=["ArrowUp","PageDown","End"],ej=["ArrowDown","PageUp","Home",...eE],e_={ltr:[...eC,"ArrowRight"],rtl:[...eC,"ArrowLeft"]},eL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ek="Menu",[eD,eO,eN]=m(ek),[eS,eA]=(0,u.b)(ek,[eN,U,ev]),eT=U(),eI=ev(),[eF,eK]=eS(ek),[eW,ez]=eS(ek),eU=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:l,modal:i=!0}
1=e,u=eT(t),[c,d]=a.useState(null),s=a.useRef(!1),p=(0,g.W)(l),v=(0,h.gm)(o);return a.useEffect(()=>{let e=()=>{s.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>s.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,f.jsx)(G,{...u,children:(0,f.jsx)(eF,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,f.jsx)(eW,{scope:t,onClose:a.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:s,dir:v,modal:i,children:r})})})};eU.displayName=ek;var eH=a.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=eT(n);return(0,f.jsx)(V,{...o,...r,ref:t})});eH.displayName="MenuAnchor";var eB="MenuPortal",[eG,eZ]=eS(eB,{forceMount:void 0}),eV=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=eK(eB,t);return(0,f.jsx)(eG,{scope:t,forceMount:n,children:(0,f.jsx)(ea,{present:n||a.open,children:(0,f.jsx)(eo,{asChild:!0,container:o,children:r})})})};eV.displayName=eB;var eX="MenuContent",[eY,eq]=eS(eX),e$=a.forwardRef((e,t)=>{let n=eZ(eX,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=eK(eX,e.__scopeMenu),l=ez(eX,e.__scopeMenu);return(0,f.jsx)(eD.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(ea,{present:r||a.open,children:(0,f.jsx)(eD.Slot,{scope:e.__scopeMenu,children:l.modal?(0,f.jsx)(eJ,{...o,ref:t}):(0,f.jsx)(eQ,{...o,ref:t})})})})}),eJ=a.forwardRef((e,t)=>{let n=eK(eX,e.__scopeMenu),r=a.useRef(null),o=(0,i.e)(t,r);return a.useEffect(()=>{let e=r.current;if(e)return(0,eM.Ry)(e)},[]),(0,f.jsx)(e1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,l.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eQ=a.forwardRef((e,t)=>{let n=eK(eX,e.__scopeMenu);return(0,f.jsx)(e1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),e0=(0,s.Z8)("MenuContent.ScrollLock"),e1=a.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:s,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:h,onDismiss:g,disableOutsideScroll:y,...x}=e,w=eK(eX,n),P=ez(eX,n),M=eT(n),C=eI(n),E=eO(n),[j,L]=a.useState(null),k=a.useRef(null),D=(0,i.e)(t,k,w.onContentChange),O=a.useRef(0),N=a.useRef(""),S=a.useRef(0),A=a.useRef(null),T=a.useRef("right"),I=a.useRef(0),F=y?eR.Z:a.Fragment,K=e=>{var t,n;let r=N.current+e,o=E().filter(e=>!e.disabled),a=document.activeElement,l=null===(t=o.find(e=>
1e.ref.current===a))||void 0===t?void 0:t.textValue,i=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===i))||void 0===n?void 0:n.ref.current;!function e(t){N.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};a.useEffect(()=>()=>window.clearTimeout(O.current),[]),(0,R.EW)();let W=a.useCallback(e=>{var t,n,r;return T.current===(null===(t=A.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=A.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let l=t[e],i=t[a],u=l.x,c=l.y,d=i.x,s=i.y;c>r!=s>r&&n<(d-u)*(r-c)/(s-c)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,f.jsx)(eY,{scope:n,searchRef:N,onItemEnter:a.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:a.useCallback(e=>{var t;W(e)||(null===(t=k.current)||void 0===t||t.focus(),L(null))},[W]),onTriggerLeave:a.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:S,onPointerGraceIntentChange:a.useCallback(e=>{A.current=e},[]),children:(0,f.jsx)(F,{...y?{as:e0,allowPinchZoom:!0}:void 0,children:(0,f.jsx)(_,{asChild:!0,trapped:o,onMountAutoFocus:(0,l.M)(u,e=>{var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,f.jsx)(b,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:h,onDismiss:g,children:(0,f.jsx)(eg,{asChild:!0,...C,dir:P.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:L,onEntryFocus:(0,l.M)(s,e=>{P.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,f.jsx)($,{role:"menu","aria-orientation":"vertical","data-state":tx(w.open),"data-radix-menu-content":"",dir:P.dir,...M,...x,ref:D,style:{outline:"none",...x.style},onKeyDown:(0,l.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.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&K(e.key));let o=k.current;if(e.target!==o||!ej.includes(e.key))return;e.preventDefault();let a=E().filter(e=>!e.disabled).map(e=>e.ref.current);eE.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,l.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),N.current="")}),onPointerMove:(0,l.M)(e.onPointerMove,tP(e=>{let t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>I.current?"right":"left";T.current=t,I.current=e.clientX}}))})})})})})})});e$.displayName=eX;var e9=a.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(p.div,{role:"group",...r,ref:t})});e9.displayName="MenuGroup";var e2=a.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(p.div,{...r,ref:t})});e2.displayName="MenuLabel";var e5="MenuItem",e6="menu.itemSelect",e4=a.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,u=a.useRef(null),c=ez(e5,e.__scopeMenu),d=eq(e5,e.__scopeMenu),s=(0,i.e)(t,u),p=a.useRef(!1);return(0,f.jsx)(e8,{...o,ref:s,disabled:n,onClick:(0,l.M)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(e6,{bubbles:!0,cancelable:!0});e.addEventListener(e6,e=>null==r?void 0:r(e),{once:!0}),v(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,l.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&eC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});e4.displayName=e5;var e8=a.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...u}=e,c=eq(e5,n),d=eI(n),s=a.useRef(null),v=(0,i.e)(t,s),[m,h]=a.use
1State(!1),[g,y]=a.useState("");return a.useEffect(()=>{let e=s.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,f.jsx)(eD.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:g,children:(0,f.jsx)(ew,{asChild:!0,...d,focusable:!r,children:(0,f.jsx)(p.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:v,onPointerMove:(0,l.M)(e.onPointerMove,tP(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,l.M)(e.onPointerLeave,tP(e=>c.onItemLeave(e))),onFocus:(0,l.M)(e.onFocus,()=>h(!0)),onBlur:(0,l.M)(e.onBlur,()=>h(!1))})})})}),e7=a.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,f.jsx)(tl,{scope:e.__scopeMenu,checked:n,children:(0,f.jsx)(e4,{role:"menuitemcheckbox","aria-checked":tw(n)?"mixed":n,...o,ref:t,"data-state":tb(n),onSelect:(0,l.M)(o.onSelect,()=>null==r?void 0:r(!!tw(n)||!n),{checkForDefaultPrevented:!1})})})});e7.displayName="MenuCheckboxItem";var e3="MenuRadioGroup",[te,tt]=eS(e3,{value:void 0,onValueChange:()=>{}}),tn=a.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,g.W)(r);return(0,f.jsx)(te,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,f.jsx)(e9,{...o,ref:t})})});tn.displayName=e3;var tr="MenuRadioItem",to=a.forwardRef((e,t)=>{let{value:n,...r}=e,o=tt(tr,e.__scopeMenu),a=n===o.value;return(0,f.jsx)(tl,{scope:e.__scopeMenu,checked:a,children:(0,f.jsx)(e4,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":tb(a),onSelect:(0,l.M)(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});to.displayName=tr;var ta="MenuItemIndicator",[tl,ti]=eS(ta,{checked:!1}),tu=a.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=ti(ta,n);return(0,f.jsx)(ea,{present:r||tw(a.checked)||!0===a.checked,children:(0,f.jsx)(p.span,{...o,ref:t,"data-state":tb(a.checked)})})});tu.displayName=ta;var tc=a.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,f.jsx)(p.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tc.displayName="MenuSeparator";var td=a.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=eT(n);return(0,f.jsx)(ee,{...o,...r,ref:t})});td.displayName="MenuArrow";var ts="MenuSub",[tf,tp]=eS(ts),tv=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,l=eK(ts,t),i=eT(t),[u,c]=a.useState(null),[d,s]=a.useState(null),p=(0,g.W)(o);return a.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,f.jsx)(G,{...i,children:(0,f.jsx)(eF,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:s,children:(0,f.jsx)(tf,{scope:t,contentId:(0,S.M)(),triggerId:(0,S.M)(),trigger:u,onTriggerChange:c,children:n})})})};tv.displayName=ts;var tm="MenuSubTrigger",th=a.forwardRef((e,t)=>{let n=eK(tm,e.__scopeMenu),r=ez(tm,e.__scopeMenu),o=tp(tm,e.__scopeMenu),u=eq(tm,e.__scopeMenu),c=a.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:s}=u,p={__scopeMenu:e.__scopeMenu},v=a.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return a.useEffect(()=>v,[v]),a.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),s(null)}},[d,s]),(0,f.jsx)(eH,{asChild:!0,...p,children:(0,f.jsx)(e8,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":tx(n.open),...e,ref:(0,i.F)(t,o.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,l.M)(e.onPointerMove,tP(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:(0,l.M)(e.onPointerLeave,tP(e=>{var t,r;v();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,a="right"===t,l=o[a?"left":"right"],i=o[a?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,l.M)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&e_[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})})});th.displayName=tm;var tg="MenuSubContent",ty=a.forwardRef((e,t)=>
1{let n=eZ(eX,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,u=eK(eX,e.__scopeMenu),c=ez(eX,e.__scopeMenu),d=tp(tg,e.__scopeMenu),s=a.useRef(null),p=(0,i.e)(t,s);return(0,f.jsx)(eD.Provider,{scope:e.__scopeMenu,children:(0,f.jsx)(ea,{present:r||u.open,children:(0,f.jsx)(eD.Slot,{scope:e.__scopeMenu,children:(0,f.jsx)(e1,{id:d.contentId,"aria-labelledby":d.triggerId,...o,ref:p,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=s.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,l.M)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,l.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=eL[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=d.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function tx(e){return e?"open":"closed"}function tw(e){return"indeterminate"===e}function tb(e){return tw(e)?"indeterminate":e?"checked":"unchecked"}function tP(e){return t=>"mouse"===t.pointerType?e(t):void 0}ty.displayName=tg;var tM="DropdownMenu",[tR,tC]=(0,u.b)(tM,[eA]),tE=eA(),[tj,t_]=tR(tM),tL=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,d=tE(t),s=a.useRef(null),[p,v]=(0,c.T)({prop:o,defaultProp:null!=l&&l,onChange:i,caller:tM});return(0,f.jsx)(tj,{scope:t,triggerId:(0,S.M)(),triggerRef:s,contentId:(0,S.M)(),open:p,onOpenChange:v,onOpenToggle:a.useCallback(()=>v(e=>!e),[v]),modal:u,children:(0,f.jsx)(eU,{...d,open:p,onOpenChange:v,dir:r,modal:u,children:n})})};tL.displayName=tM;var tk="DropdownMenuTrigger",tD=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=t_(tk,n),u=tE(n);return(0,f.jsx)(eH,{asChild:!0,...u,children:(0,f.jsx)(p.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,i.F)(t,a.triggerRef),onPointerDown:(0,l.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,l.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tD.displayName=tk;var tO=e=>{let{__scopeDropdownMenu:t,...n}=e,r=tE(t);return(0,f.jsx)(eV,{...r,...n})};tO.displayName="DropdownMenuPortal";var tN="DropdownMenuContent",tS=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t_(tN,n),i=tE(n),u=a.useRef(!1);return(0,f.jsx)(e$,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:(0,l.M)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,l.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.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)"}})});tS.displayName=tN;var tA=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(e9,{...o,...r,ref:t})});tA.displayName="DropdownMenuGroup";var tT=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(e2,{...o,...r,ref:t})});tT.displayName="DropdownMenuLabel";var tI=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(e4,{...o,...r,ref:t})});tI.displayName="DropdownMenuItem";var tF=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(e7,{...o,...r,ref:t})});tF.displayName="DropdownMenuCheckboxItem";var tK=a.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(tn,{...o,...r,ref:t})});tK.displayName="DropdownMenuRadioGroup";var tW=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(to,{...o,...r,ref:t})});tW.displayName="DropdownMenuRadioItem";var tz=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(tu,{...o,...r,ref:t})});tz.displayName="DropdownMenuItemIndicator";var tU=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(tc,{...o,...r,ref:t})});tU.displayName="DropdownMenuSeparator",a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(td,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var tH=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(th,{...o,...r,ref:t})});tH.displayName="DropdownMenuSubTrigger";var tB=a.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tE(n);return(0,f.jsx)(ty,{...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)"}})});tB.displayName="DropdownMenuSubContent";var tG=tL,tZ=tD,tV=tO,tX=tS,tY=tA,tq=tT,t$=tI,tJ=tF,tQ=tK,t0=tW,t1=tz,t9=tU,t2=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,l=tE(t),[i,u]=(0,c.T)({prop:r,defaultProp:null!=a&&a,onChange:o,caller:"DropdownMenuSub"});return(0,f.jsx)(tv,{...l,open:i,onOpenChange:u,children:n})},t5=tH,t6=tB}}]);

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.