diff --git "a/_next/static/chunks/910-fce807fbc1103a04.js" "b/_next/static/chunks/910-fce807fbc1103a04.js" new file mode 100644--- /dev/null +++ "b/_next/static/chunks/910-fce807fbc1103a04.js" @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[910],{6855:function(e,t,r){r.d(t,{u:function(){return s}});var n=r(2265),o=r(2989),a=r(7470),i=r(2281);let l=e=>{let{color:t="black",size:r=24,...n}=e;return(0,i.jsxs)(o.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,i.jsx)(o.UL,{width:"20",height:"14",x:"2",y:"3",rx:"2",stroke:t}),(0,i.jsx)(o.x1,{x1:"8",x2:"16",y1:"21",y2:"21",stroke:t}),(0,i.jsx)(o.x1,{x1:"12",x2:"12",y1:"17",y2:"21",stroke:t})]})};l.displayName="Monitor";let s=(0,n.memo)((0,a.H)(l))},2890:function(e,t,r){r.d(t,{J:function(){return s}});var n=r(2265),o=r(2989),a=r(7470),i=r(2281);let l=e=>{let{color:t="black",size:r=24,...n}=e;return(0,i.jsx)(o.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:(0,i.jsx)(o.y$,{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",stroke:t})})};l.displayName="Moon";let s=(0,n.memo)((0,a.H)(l))},896:function(e,t,r){r.d(t,{k:function(){return s}});var n=r(2265),o=r(2989),a=r(7470),i=r(2281);let l=e=>{let{color:t="black",size:r=24,...n}=e;return(0,i.jsxs)(o.ny,{width:r,height:r,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...n,children:[(0,i.jsx)(o.Cd,{cx:"12",cy:"12",r:"4",stroke:t}),(0,i.jsx)(o.y$,{d:"M12 2v2",stroke:t}),(0,i.jsx)(o.y$,{d:"M12 20v2",stroke:t}),(0,i.jsx)(o.y$,{d:"m4.93 4.93 1.41 1.41",stroke:t}),(0,i.jsx)(o.y$,{d:"m17.66 17.66 1.41 1.41",stroke:t}),(0,i.jsx)(o.y$,{d:"M2 12h2",stroke:t}),(0,i.jsx)(o.y$,{d:"M20 12h2",stroke:t}),(0,i.jsx)(o.y$,{d:"m6.34 17.66-1.41 1.41",stroke:t}),(0,i.jsx)(o.y$,{d:"m19.07 4.93-1.41 1.41",stroke:t})]})};l.displayName="Sun";let s=(0,n.memo)((0,a.H)(l))},7138:function(e,t,r){r.d(t,{default:function(){return o.a}});var n=r(231),o=r.n(n)},844:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(8157);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;na?e.prefetch(t,o):e.prefetch(t,r,n))().catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=a.default.forwardRef(function(e,t){let r,n;let{href:s,as:y,children:x,prefetch:j=null,passHref:w,replace:R,shallow:P,scroll:C,locale:_,onClick:k,onMouseEnter:E,onTouchStart:S,legacyBehavior:I=!1,...O}=e;r=x,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let M=a.default.useContext(d.RouterContext),A=a.default.useContext(f.AppRouterContext),T=null!=M?M:A,L=!M,N=!1!==j,z=null===j?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:F,as:$}=a.default.useMemo(()=>{if(!M){let e=v(s);return{href:e,as:y?v(y):e}}let[e,t]=(0,i.resolveHref)(M,s,!0);return{href:e,as:y?(0,i.resolveHref)(M,y):t||e}},[M,s,y]),D=a.default.useRef(F),U=a.default.useRef($);I&&(n=a.default.Children.only(r));let W=I?n&&"object"==typeof n&&n.ref:t,[K,H,B]=(0,p.useIntersection)({rootMargin:"200px"}),V=a.default.useCallback(e=>{(U.current!==$||D.current!==F)&&(B(),U.current=$,D.current=F),K(e),W&&("function"==typeof W?W(e):"object"==typeof W&&(W.current=e))},[$,W,F,B,K]);a.default.useEffect(()=>{T&&H&&N&&b(T,F,$,{locale:_},{kind:z},L)},[$,F,H,_,N,null==M?void 0:M.locale,T,L,z]);let G={ref:V,onClick(e){I||"function"!=typeof k||k(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,r,n,o,i,s,u,c){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)||!c&&!(0,l.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==s||s;"beforePopState"in t?t[o?"replace":"push"](r,n,{shallow:i,locale:u,scroll:e}):t[o?"replace":"push"](n||r,{scroll:e})};c?a.default.startTransition(f):f()}(e,T,F,$,R,P,C,_,L)},onMouseEnter(e){I||"function"!=typeof E||E(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),T&&(N||!L)&&b(T,F,$,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:z},L)},onTouchStart:function(e){I||"function"!=typeof S||S(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),T&&(N||!L)&&b(T,F,$,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:z},L)}};if((0,u.isAbsoluteUrl)($))G.href=$;else if(!I||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==_?_:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)($,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);G.href=t||(0,m.addBasePath)((0,c.addLocale)($,e,null==M?void 0:M.defaultLocale))}return I?a.default.cloneElement(n,G):(0,o.jsx)("a",{...O,...G,children:r})});("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)},9189:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="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)},n="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)},8016:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(8323),o=r(1142),a=r(5519),i=r(3461),l=r(8157),s=r(8029),u=r(9195),c=r(20);function d(e,t,r){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,i.normalizeRepeatedSlashes)(h);f=(p?p[0]:"")+t}if(!(0,s.isLocalURL)(f))return r?[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,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[f]:f}}("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)},3106:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(2265),o=r(9189),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,u=s||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:o,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=i.get(n)))return t;let o=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:o},l.push(r),i.set(r,t),t}(r);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]),[p,c,(0,n.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)},1943:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},291:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(9920)._(r(2265)).default.createContext(null)},1142:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return l},urlObjectKeys:function(){return i}});let n=r(1452)._(r(8323)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(n.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+a+u+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return a(e)}},9195:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(9089),o=r(8083)},20:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(1533),o=r(3169);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,s=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in s)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},8083:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=r(2269),o=/\/\[[^/]+?\](?=\/|$)/;function a(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},8029:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(3461),o=r(9404);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},5519:function(e,t){function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},8323:function(e,t){function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(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[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return a},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},1533:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(3461);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},3169:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return f},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return s}});let n=r(2269),o=r(1943),a=r(7741);function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=(0,a.removeTrailingSlash)(e).slice(1).split("/"),r={},l=1;return{parameterizedRoute:t.map(e=>{let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&a){let{key:e,optional:n,repeat:s}=i(a[1]);return r[e]={pos:l++,repeat:s,optional:n},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!a)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:n}=i(a[1]);return r[e]={pos:l++,repeat:t,optional:n},t?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function u(e){let{interceptionMarker:t,getSafeRouteKey:r,segment:n,routeKeys:a,keyPrefix:l}=e,{key:s,optional:u,repeat:c}=i(n),d=s.replace(/\W/g,"");l&&(d=""+l+d);let f=!1;(0===d.length||d.length>30)&&(f=!0),isNaN(parseInt(d.slice(0,1)))||(f=!0),f&&(d=r()),l?a[d]=""+l+s:a[d]=s;let p=t?(0,o.escapeStringRegexp)(t):"";return c?u?"(?:/"+p+"(?<"+d+">.+?))?":"/"+p+"(?<"+d+">.+?)":"/"+p+"(?<"+d+">[^/]+?)"}function c(e,t){let r;let i=(0,a.removeTrailingSlash)(e).slice(1).split("/"),l=(r=0,()=>{let e="",t=++r;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),s={};return{namedParameterizedRoute:i.map(e=>{let r=n.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),a=e.match(/\[((?:\[.*\])|.+)\]/);if(r&&a){let[r]=e.split(a[0]);return u({getSafeRouteKey:l,interceptionMarker:r,segment:a[1],routeKeys:s,keyPrefix:t?"nxtI":void 0})}return a?u({getSafeRouteKey:l,segment:a[1],routeKeys:s,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:s}}function d(e,t){let r=c(e,t);return{...s(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function f(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},9089:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{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 r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.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+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" 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 "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){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]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,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]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},3461:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return f},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return s},getLocationOrigin:function(){return i},getURL:function(){return l},isAbsoluteUrl:function(){return a},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Error('"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let f="undefined"!=typeof performance,p=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class 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 y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},2986:function(e,t){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(0,c.isValidElement)(e)&&function(e,t){let r=e?.staticConfig;return!!(r&&(!t||t===r.componentName))}(e.type,t);var f=r(5260),p=r(450),h=r(301),m=r(2145),g=r(2545),y=r(3277),b=r(5589);r(2986),c.createContext(!1).displayName="PrerenderContext";var v=c.createContext([]);v.displayName="MaxIndexContext";var x=c.createContext(null);x.displayName="IndexContext",c.createContext(null).displayName="TreeStateContext","undefined"==typeof window?c.useEffect:c.useLayoutEffect;var j=r(2281),w=r(357);let R="Group",[P,C]=(0,h.b)(R),[_,k]=P(R),E=(0,i.z)(g.K,{name:"GroupFrame",variants:{unstyled:{false:{size:"$true"}},size:(e,{tokens:t})=>({borderRadius:t.radius[e]??e??t.radius.$true})},defaultVariants:{unstyled:"1"===w.env.TAMAGUI_HEADLESS}});function S(e){return(0,m.$e)(E.styleable((t,r)=>{let n=(0,l.wN)(t),{__scopeGroup:o,children:a,space:i,size:p="$true",spaceDirection:h,separator:m,scrollable:g,axis:b=e?"vertical":"horizontal",orientation:w=b,disabled:R,disablePassBorderRadius:P,borderRadius:C,forceUseItem:k,...S}=n,I="vertical"===w,[O,M]=(0,y.T)({defaultProp:k?1:0}),N=C??(p?(0,s.Ve)((0,u.lz)().radius[p])-1:void 0),z=P??!(void 0!==N),F=c.Children.toArray(a),$=O>0?c.Children.toArray(a).filter(c.isValidElement):F.map((e,t)=>{if(!(0,c.isValidElement)(e))return e;let r=e.props.disabled??R,n=t===F.length-1,o=!0===z?null:T({isFirst:0===t,isLast:n,radius:N,vertical:I,disable:z}),a={disabled:r,...d(e)?o:{style:o}};return L(e,a)}),D=function(e){let t=c.useContext(v),r=c.useContext(x),n=c.Children.count(e),o=c.useMemo(()=>t.concat(n-1),[n]);return c.createElement(v.Provider,{value:o},c.Children.map(e,(e,t)=>c.isValidElement(e)?c.createElement(x.Provider,{key:e.key,value:r?`${r}.${t.toString()}`:t.toString()},e):e))}((0,f.P9)({direction:h,separator:m,space:i,children:$})),U=c.useCallback(()=>M(e=>e+1),[]),W=c.useCallback(()=>M(e=>e-1),[]);return(0,j.jsx)(_,{disablePassBorderRadius:z,vertical:"vertical"===w,radius:N,disabled:R,onItemMount:U,onItemUnmount:W,scope:o,children:(0,j.jsx)(E,{ref:r,size:p,flexDirection:"horizontal"===w?"row":"column",borderRadius:C,...S,children:A({...n,orientation:w},D)})})}),{Item:I})}let I=(0,c.forwardRef)((e,t)=>{let{__scopeGroup:r,children:n,forcePlacement:o}=e,a=O({disabled:(0,c.isValidElement)(n)?n.props.disabled:void 0},o,r);return(0,c.isValidElement)(n)?d(n)?c.cloneElement(n,a):c.cloneElement(n,{style:{...n.props?.style,...a}}):n}),O=(e,t,r)=>{let n=function(){let e=c.useContext(v),t=c.useContext(x);return c.useMemo(()=>{if(null===t)return null;let r=t.split(".").map(e=>parseInt(e,10)),n=e[e.length-1],o=r[r.length-1];return{maxIndex:n,maxIndexPath:e,index:o,indexPath:r,indexPathString:t,isFirst:0===o,isLast:o===n,isEven:o%2==0,isOdd:1===Math.abs(o%2)}},[e,t])}(),o=k("GroupItem",r);if(c.useEffect(()=>(o.onItemMount(),()=>{o.onItemUnmount()}),[]),!n)throw Error(" should only be used within a ");let a="first"===t||"last"!==t&&0===n.index,i="last"===t||"first"!==t&&n.index===n.maxIndex,l={disabled:e.disabled??o.disabled};if(!0!==o.disablePassBorderRadius){let e=T({radius:o.radius,isFirst:a,isLast:i,vertical:o.vertical,disable:o.disablePassBorderRadius});return{...l,...e}}return l},M=S(!0),A=(S(!1),({scrollable:e,orientation:t,showScrollIndicator:r=!1},n)=>e?(0,j.jsx)(b.Z,{..."vertical"===t&&{showsVerticalScrollIndicator:r},..."horizontal"===t&&{horizontal:!0,showsHorizontalScrollIndicator:r},children:n}):n),T=({isFirst:e,isLast:t,radius:r,vertical:n,disable:o})=>({borderTopLeftRadius:e&&"top"!==o&&"start"!==o?r:0,borderTopRightRadius:"top"!==o&&"end"!==o&&(n&&e||!n&&t)?r:0,borderBottomLeftRadius:"bottom"!==o&&"start"!==o&&(n&&t||!n&&e)?r:0,borderBottomRightRadius:t&&"bottom"!==o&&"end"!==o?r:0}),L=(e,t)=>{let r=(0,p.d)(e.props,t,(0,u.iE)().shorthands);return c.cloneElement({...e,props:null},r)};var N=r(925),z=r(4326),F=r(9087),$=r(2166);let D=c.createContext(void 0);function U(e){let t=c.useContext(D);return e||t||"ltr"}let W="rovingFocusGroup.onEntryFocus",K={bubbles:!1,cancelable:!0},H=c.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,p=c.useRef(null),h=(0,n.ex)(t,p),g=U(i),[b=null,v]=(0,y.T)({prop:l,defaultProp:s??null,onChange:u}),[x,w]=c.useState(!1),R=(0,F.z)(d),P=q(r||Q),C=c.useRef(!1),[_,k]=c.useState(0);return c.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(W,R),()=>e.removeEventListener(W,R)},[R]),(0,j.jsx)(Z,{scope:r,orientation:o,dir:g,loop:a,currentTabStopId:b,onItemFocus:c.useCallback(e=>v(e),[v]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>k(e=>e-1),[]),children:(0,j.jsx)($.Kq,{tabIndex:x||0===_?-1:0,"data-orientation":o,...f,ref:h,style:[{outline:"none"},e.style],onMouseDown:(0,m.Mj)(e.onMouseDown,()=>{C.current=!0}),onFocus:(0,m.Mj)(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(W,K);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);ee([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current))}}C.current=!1}),onBlur:(0,m.Mj)(e.onBlur,()=>w(!1))})})}),B=c.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:i,...l}=e,s=c.useId(),u=i||s,d=Y(r),f=d.currentTabStopId===u,p=q(r||Q),{onFocusableItemAdd:h,onFocusableItemRemove:g}=d;return c.useEffect(()=>{if(n)return h(),()=>g()},[n,h,g]),(0,j.jsx)(G.ItemSlot,{__scopeCollection:r||Q,id:u,focusable:n,active:a,children:(0,j.jsx)($.Kq,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:(0,m.Mj)(e.onMouseDown,e=>{n?d.onItemFocus(u):e.preventDefault()}),onFocus:(0,m.Mj)(e.onFocus,()=>d.onItemFocus(u)),...o.$L&&{onKeyDown:(0,m.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return X[o]}(e,d.orientation,d.dir);if(void 0!==t){e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=d.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>ee(o))}})}})})});B.displayName="RovingFocusGroupItem";let V="RovingFocusGroup",[G,q]=function(e){let{Provider:t,useStyledContext:r}=(0,N.i)({collectionRef:{current:null},itemMap:new Map}),a=e=>{let{__scopeCollection:r,children:n}=e,o=c.useRef(null),a=c.useRef(new Map).current;return(0,j.jsx)(t,{scope:r,itemMap:a,collectionRef:o,children:n})};a.displayName="CollectionProvider";let i=c.forwardRef((e,t)=>{let{__scopeCollection:o,children:a}=e,i=r(o),l=(0,n.ex)(t,i.collectionRef);return(0,j.jsx)(z.g,{ref:l,children:a})});i.displayName=e+"CollectionSlot";let l="data-collection-item",s=c.forwardRef((e,t)=>{let{__scopeCollection:o,children:a,...i}=e,s=c.useRef(null),u=(0,n.ex)(t,s),d=r(o);return c.useEffect(()=>(d.itemMap.set(s,{ref:s,...i}),()=>void d.itemMap.delete(s))),(0,j.jsx)(z.g,{[l]:"",ref:u,children:a})});return s.displayName=e+"CollectionItemSlot",[{Provider:a,Slot:i,ItemSlot:s},function(e){let t=r(e);return c.useCallback(()=>{if(!o.$L)return[];let e=t.collectionRef.current;if(!e)return[];let r=Array.from(e.querySelectorAll(`[${l}]`));return Array.from(t.itemMap.values()).sort((e,t)=>r.indexOf(e.ref.current)-r.indexOf(t.ref.current))},[t.collectionRef,t.itemMap])}]}(V),{Provider:Z,useStyledContext:Y}=(0,N.i)(),Q="RovingFocusGroupContext",J=(0,m.$e)(c.forwardRef((e,t)=>(0,j.jsx)(G.Provider,{__scopeCollection:e.__scopeRovingFocusGroup||Q,children:(0,j.jsx)(G.Slot,{__scopeCollection:e.__scopeRovingFocusGroup||Q,children:(0,j.jsx)(H,{...e,ref:t})})})),{Item:B});J.displayName=V;let X={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ee(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}var et=r(5377),er=r(5402);let en=(0,i.z)(et.sL,{name:"SizableStack",variants:{unstyled:{true:{hoverTheme:!1,pressTheme:!1,focusTheme:!1,elevate:!1,bordered:!1}},hoverTheme:er.TW,pressTheme:er.mK,focusTheme:er.DM,circular:er.iu,elevate:er.NE,bordered:er.Dq,size:{"...size":(e,t)=>(0,a.f)(e,t)}}});var eo=r(1130),ea=r(357);let ei="TabsContext",el="TabsList",es=c.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,children:o,...a}=e,i=eg(r);return(0,j.jsx)(J,{__scopeRovingFocusGroup:r||ei,orientation:i.orientation,dir:i.dir,loop:n,asChild:!0,children:(0,j.jsx)(M,{role:"tablist",componentName:el,"aria-orientation":i.orientation,ref:t,orientation:i.orientation,...a,children:o})})});es.displayName=el;let eu="TabsTrigger",ec=(0,i.z)(g.K,{name:eu,tag:"button",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",userSelect:"none",variants:{size:{"...size":a.f},disabled:{true:{pointerEvents:"none"}},active:{true:{hoverStyle:{backgroundColor:"$background"},focusStyle:{backgroundColor:"$background"}}},unstyled:{false:{backgroundColor:"$background",pressStyle:{backgroundColor:"$backgroundPress"},hoverStyle:{backgroundColor:"$backgroundHover"},focusStyle:{backgroundColor:"$backgroundFocus"}}}},defaultVariants:{unstyled:"1"===ea.env.TAMAGUI_HEADLESS}}),ed=ec.styleable((e,t)=>{let{__scopeTabs:r,value:a,disabled:i=!1,onInteraction:l,disableActiveTheme:s,...u}=e,d=eg(r),f=ex(d.baseId,a),p=ej(d.baseId,a),h=a===d.value,[g,y]=c.useState(null),b=c.useRef(null),v=O({disabled:!!i});return c.useEffect(()=>(d.registerTrigger(),()=>d.unregisterTrigger()),[]),c.useEffect(()=>{if(!b.current||!o.$L)return;function e(){b.current&&y({width:b.current.offsetWidth,height:b.current.offsetHeight,x:b.current.offsetLeft,y:b.current.offsetTop})}e();let t=new ResizeObserver(e);return t.observe(b.current),()=>{b.current&&t.unobserve(b.current)}},[d.triggersCount]),c.useEffect(()=>{h&&g&&l?.("select",g)},[h,a,g]),(0,j.jsx)(eo.Q,{name:h&&!s?"active":null,children:(0,j.jsx)(J.Item,{__scopeRovingFocusGroup:r||ei,asChild:!0,focusable:!i,active:h,children:(0,j.jsx)(ec,{onLayout:e=>{o.$L||y(e.nativeEvent.layout)},onHoverIn:(0,m.Mj)(e.onHoverIn,()=>{g&&l?.("hover",g)}),onHoverOut:(0,m.Mj)(e.onHoverOut,()=>{l?.("hover",null)}),role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...!e.unstyled&&{size:d.size},...v,...u,ref:(0,n.FE)(t,b),onPress:(0,m.Mj)(e.onPress??void 0,e=>{let t=!o.$L||0===e.button&&!1===e.ctrlKey;i||h||!t?e.preventDefault():d.onChange(a)}),...o.$L&&{type:"button",onKeyDown:(0,m.Mj)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&(d.onChange(a),e.preventDefault())}),onFocus:(0,m.Mj)(e.onFocus,e=>{g&&l?.("focus",g);let t="manual"!==d.activationMode;h||i||!t||d.onChange(a)}),onBlur:(0,m.Mj)(e.onFocus,()=>{l?.("focus",null)})}})})})});ed.displayName=eu;let ef=(0,i.z)(g.K,{name:"TabsContent"}),ep=ef.styleable(function(e,t){let{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,l=eg(r),s=n===l.value,u=o||s,c=ex(l.baseId,n),d=ej(l.baseId,n);return u?(0,j.jsx)(ef,{"data-state":s?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!u,id:d,tabIndex:0,...i,ref:t,children:a},n):null}),eh="Tabs",{Provider:em,useStyledContext:eg}=(0,N.i)(),ey=(0,i.z)(en,{name:eh}),eb=ey.styleable((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:s="automatic",size:u="$true",...d}=e,f=U(l),[p,h]=(0,y.T)({prop:n,onChange:o,defaultProp:a??""}),[m,g]=c.useState(0),b=(0,F.z)(()=>g(e=>e+1)),v=(0,F.z)(()=>g(e=>e-1));return(0,j.jsx)(em,{scope:r,baseId:c.useId(),value:p,onChange:h,orientation:i,dir:f,activationMode:s,size:u,registerTrigger:b,triggersCount:m,unregisterTrigger:v,children:(0,j.jsx)(ey,{direction:f,"data-orientation":i,...d,ref:t})})}),ev=(0,m.$e)(eb,{List:es,Trigger:ed,Tab:ed,Content:ep});function ex(e,t){return`${e}-trigger-${t}`}function ej(e,t){return`${e}-content-${t}`}ev.displayName=eh},391:function(e,t,r){r.d(t,{H1:function(){return i}});var n=r(4975),o=r(1217);let a=(0,n.z)(o.n,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),i=(0,n.z)(a,{name:"H1",tag:"h1",size:"$10"});(0,n.z)(a,{name:"H2",tag:"h2",size:"$9"}),(0,n.z)(a,{name:"H3",tag:"h3",size:"$8"}),(0,n.z)(a,{name:"H4",tag:"h4",size:"$7"}),(0,n.z)(a,{name:"H5",tag:"h5",size:"$6"}),(0,n.z)(a,{name:"H6",tag:"h6",size:"$5"})},9451:function(e,t,r){r.d(t,{u:function(){return eS}}),r(7961);var n=r(4243),o=r(9087),a=r(4674),i=r(2265);let l=(0,i.createContext)(null),s=e=>(i.useContext(l)||a.YF)?.(e);var u=r(6748),c=r(2145),d=r(3370),f=r(5794),p=r(126),h=r(2281);function m({children:e,type:t,...r}){return"presence"===t?r.keepChildrenMounted?(0,h.jsx)(f.g,{initial:!!r.initial&&void 0,onExitComplete:r.onExitComplete,enterVariant:r.enterVariant,exitVariant:r.exitVariant,enterExitVariant:r.enterExitVariant,presenceAffectsLayout:!1,isPresent:r.present,custom:r.custom,children:e}):(0,h.jsx)(p.M,{...r,children:r.present?e:null}):(0,h.jsx)(h.Fragment,{children:e})}var g=r(5390),y=new WeakMap,b=new WeakMap,v={},x=0,j=function(e){return e&&(e.host||j(e.parentNode))},w=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=j(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});v[r]||(v[r]=new WeakMap);var a=v[r],i=[],l=new Set,s=new Set(o),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,s=(y.get(e)||0)+1,u=(a.get(e)||0)+1;y.set(e,s),a.set(e,u),i.push(e),1===s&&o&&b.set(e,!0),1===u&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),x++,function(){i.forEach(function(e){var t=y.get(e)-1,o=a.get(e)-1;y.set(e,t),a.set(e,o),t||(b.has(e)||e.removeAttribute(n),b.delete(e)),o||e.removeAttribute(r)}),--x||(y=new WeakMap,y=new WeakMap,b=new WeakMap,v={})}},R=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),w(n,o,r,"aria-hidden")):function(){return null}},P=r(9046),C=r(281),_=r(925),k=r(2166),E=r(4582),S=r(1130),I=r(3820),O=r(9097),M=r(9018),A=r(6616),T=r(4975),L=r(1386),N=r(2202),z=r(5377),F=r(2545),$=r(357);let D=(0,_.i)({}),{useStyledContext:U,Provider:W}=D,K=void 0,H={};function B(e){let{children:t,size:r,strategy:n="absolute",placement:o="bottom",stayInFrame:l,allowFlip:u,offset:c,disableRTL:d,__scopePopper:f}=e,p=(0,A.SZ)(),[m,g]=i.useState(null),[y,b]=i.useState(0),v=c??y,x=s({strategy:n,placement:o,sameScrollView:!1,platform:d??H.disableRTL?{...a.Jv,isRTL:e=>!1}:a.Jv,middleware:[l?(0,a.uY)("boolean"==typeof l?{}:l):null,u?(0,a.RR)("boolean"==typeof u?{}:u):null,m?(0,a.x7)({element:m}):null,"u">typeof v?(0,a.cv)(v):null,K].filter(Boolean)}),{refs:j,middlewareData:w,open:R}=x;(0,C.LI)(()=>{if(R&&j.reference.current&&j.floating.current)return x.update(),(0,a.Me)(j.reference.current,j.floating.current,x.update)},[R,x.update,j.floating,j.reference]);let P={size:r,arrowRef:g,arrowStyle:w.arrow,onArrowSize:b,isMounted:p,scope:f,hasFloating:w.checkFloating?.hasFloating,...x};return(0,h.jsx)(W,{...P,children:t})}let V=z.FA.extractable(i.forwardRef(function(e,t){let{virtualRef:r,__scopePopper:n,...o}=e,{getReferenceProps:a,refs:l}=U(n),s=i.useRef(null),u=(0,P.ex)(t,s,l.setReference);i.useEffect(()=>{r&&l.setReference(r.current)},[r]);let c={ref:u,...o};return(0,h.jsx)(k.G7,{...a?a(c):c})})),G=(0,T.z)(F.K,{name:"PopperContent",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",radiused:!0}},size:{"...size":(e,{tokens:t})=>({padding:t.space[e],borderRadius:t.radius[e]})}},defaultVariants:{unstyled:"1"===$.env.TAMAGUI_HEADLESS}}),q=i.forwardRef(function(e,t){let{__scopePopper:r,enableAnimationForPositionChange:n,...o}=e,{strategy:a,placement:l,refs:s,x:u,y:c,getFloatingProps:d,size:f,isMounted:p,update:m,floatingStyles:g,hasFloating:y}=U(r),b=(0,P.ex)(s.setFloating,t),v=!1;if(C.Dt){let e=i.useRef(!0),t=i.useRef(!1);!1===y&&(e.current=!1),e.current||(t.current=y),v=t.current}let x=i.useMemo(()=>(0,h.jsx)(G,{"data-placement":l,"data-strategy":a,contain:"layout",size:f,...o},"popper-content-frame"),[l,a,e]),[j,w]=i.useState(!0);i.useEffect(()=>{(u||c)&&w(!1)},[u,c]),(0,C.LI)(()=>{p&&m()},[p]);let R=!0;if(C.Dt){let[e,t]=i.useState(!1);R=e,i.useEffect(()=>{v&&t(!0)},[v,u,c])}if(!p)return null;let _={ref:b,x:u||0,y:c||0,top:0,left:0,position:a,opacity:R?1:0,...n&&{animation:o.animation,animateOnly:j?["none"]:o.animateOnly,animatePresence:!1}};return(0,h.jsx)(k.Kq,{...d?d(_):_,children:x})}),Z=(0,T.z)(z.FA,{name:"PopperArrow",variants:{unstyled:{false:{borderColor:"$borderColor",backgroundColor:"$background",position:"relative"}}},defaultVariants:{unstyled:"1"===$.env.TAMAGUI_HEADLESS}}),Y=(0,T.z)(z.FA,{name:"PopperArrowOuter",variants:{unstyled:{false:{position:"absolute",zIndex:1e6,pointerEvents:"none",overflow:"hidden",alignItems:"center",justifyContent:"center"}}},defaultVariants:{unstyled:"1"===$.env.TAMAGUI_HEADLESS}}),Q={top:"bottom",right:"left",bottom:"top",left:"right"},J=Z.styleable(function(e,t){let{__scopePopper:r,...n}=e,{offset:o,size:a,borderWidth:i=0,...l}=(0,L.wN)(n),s=U(r),c=Math.max(0,+("number"==typeof a?a:(0,N.Ve)((0,u.Pj)(a??s.size,{shift:-2,bounds:[2]})))),{placement:d}=s,f=(0,P.ex)(s.arrowRef,t),p=s.arrowStyle?.x||0,m=s.arrowStyle?.y||0,g=d?d.split("-")[0]:"top",y={x:p,y:m,width:c,height:c},b={};if(g){y["bottom"===g||"top"===g?"width":"height"]=2*c;let e=Q[g];e&&(y[e]=-c,b[e]=c/2),("top"===e||"bottom"===e)&&(y.left=0),("left"===e||"right"===e)&&(y.top=0),(0,C.LI)(()=>{s.onArrowSize?.(c)},[c,s.onArrowSize])}return(0,h.jsx)(Y,{ref:f,...y,children:(0,h.jsx)(Z,{width:c,height:c,...l,...b,rotate:"45deg",..."bottom"===g&&{borderLeftWidth:i,borderTopWidth:i},..."top"===g&&{borderBottomWidth:i,borderRightWidth:i},..."right"===g&&{borderLeftWidth:i,borderBottomWidth:i},..."left"===g&&{borderTopWidth:i,borderRightWidth:i}})})});var X=r(4624),ee=r(2583),et=r(1021),er=r(4077),en=r(3277),eo=r(1840),ea=r(5589);let ei=({open:e,setOpen:t,disable:r,disableFocus:o,hoverable:a})=>(0,i.useCallback)(i=>{let l=(0,n.YF)({...i,open:e,onOpenChange:(e,r)=>{t(e,r?.type==="mousemove"||r?.type==="mouseenter"||r?.type==="mouseleave"?"hover":"press")}}),{getReferenceProps:s,getFloatingProps:u}=(0,n.NI)([a?(0,n.XI)(l.context,{enabled:!r&&a,handleClose:(0,n.xp)({requireIntent:!0,blockPointerEvents:!0,buffer:1}),...a&&"object"==typeof a&&a}):(0,n.XI)(l.context,{enabled:!1}),(0,n.KK)(l.context,{enabled:!r&&!o,visibleOnly:!0}),(0,n.qs)(l.context,{role:"dialog"}),(0,n.bQ)(l.context,{enabled:!r})]);return{...l,open:e,getReferenceProps:s,getFloatingProps:u}},[e,t,r,o,a]),el="PopoverScope",es=(0,_.i)({}),eu=es.useStyledContext,ec=i.forwardRef(function(e,t){let{__scopePopover:r,...n}=e,{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=eu(r)||{};return i.useEffect(()=>(o(),()=>a()),[o,a]),(0,h.jsx)(V,{__scopePopper:r||el,...n,ref:t})}),ed=i.forwardRef(function(e,t){let{__scopePopover:r,...n}=e,o=eu(r),a=o.anchorTo,i=(0,P.ex)(t,o.triggerRef);if(!e.children)return null;let l=(0,h.jsx)(k.G7,{"aria-haspopup":"dialog","aria-expanded":o.open,"data-state":ev(o.open),...n,ref:i,onPress:(0,c.Mj)(e.onPress,o.onOpenToggle)});if(a){let e={current:{getBoundingClientRect:()=>C.$L?DOMRect.fromRect(a):a,...!C.$L&&{measure:e=>e(a?.x,a?.y,a?.width,a?.height),measureInWindow:e=>e(a?.x,a?.y,a?.width,a?.height)}}};return(0,h.jsx)(V,{virtualRef:e,__scopePopper:r||el,children:l})}return o.hasCustomAnchor?l:(0,h.jsx)(V,{__scopePopper:r||el,asChild:!0,children:l})}),ef=G.extractable(i.forwardRef(function(e,t){let{allowPinchZoom:r,trapFocus:n,disableRemoveScroll:o=!0,zIndex:a,__scopePopover:l,...s}=e,u=eu(l),d=i.useRef(null),f=(0,P.ex)(t,d),p=i.useRef(!1),[m,g]=i.useState(!u.open);return u.open&&m&&g(!1),i.useEffect(()=>{if(!u.open)return;let e=d.current;if(e)return R(e)},[u.open]),!u.keepChildrenMounted&&m?null:(0,h.jsx)(eh,{__scopePopover:l,zIndex:e.zIndex,children:(0,h.jsx)(k.Kq,{pointerEvents:u.open?"auto":"none",children:(0,h.jsx)(em,{...s,disableRemoveScroll:o,ref:f,setIsFullyHidden:g,__scopePopover:l,trapFocus:n??u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,c.Mj)(e.onCloseAutoFocus,e=>{e.preventDefault(),p.current||u.triggerRef.current?.focus()}),onPointerDownOutside:(0,c.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;p.current=n},{checkDefaultPrevented:!1}),onFocusOutside:(0,c.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkDefaultPrevented:!1})})})})}));function ep(e){return(0,h.jsx)(D.Provider,{scope:e.scope,...e.popperContext,children:(0,h.jsx)(es.Provider,{...e.context,children:e.children})})}function eh(e){let{__scopePopover:t}=e,r=e.zIndex??15e4,n=eu(t),o=U(t||el),a=(0,E.C)(),i=e.children;return("android"===eo.Z.OS||"ios"===eo.Z.OS)&&(i=(0,h.jsx)(ep,{scope:t||el,popperContext:o,context:n,children:e.children})),(0,h.jsx)(X.h_,{zIndex:r,children:(0,h.jsxs)(S.Q,{forceClassName:!0,name:a,children:[!!n.open&&!n.breakpointActive&&(0,h.jsx)(z.FA,{fullscreen:!0,onPress:(0,c.Mj)(e.onPress,n.onOpenToggle)}),i]})})}let em=i.forwardRef(function(e,t){let{trapFocus:r,__scopePopover:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,disableFocusScope:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,children:p,disableRemoveScroll:y,freezeContentsWhenHidden:b,setIsFullyHidden:v,...x}=e,j=eu(n),{open:w,keepChildrenMounted:R}=j,P=U(n||el),_=i.useCallback(()=>{v?.(!0)},[v]);if(j.breakpointActive){let e=i.Children.toArray(p).map(e=>i.isValidElement(e)&&e.type===ea.Z?e.props.children:e),t=(0,h.jsx)(g.il,{children:e});return("android"===eo.Z.OS||"ios"===eo.Z.OS)&&(t=(0,h.jsx)(D.Provider,{scope:n||el,...P,children:e})),(0,h.jsx)(X.b5,{hostName:`${j.id}PopoverContents`,children:t})}return(0,h.jsx)(m,{type:"presence",present:!!w,keepChildrenMounted:R,onExitComplete:_,children:(0,h.jsx)(q,{__scopePopper:n||el,"data-state":ev(w),id:j.contentId,ref:t,...x,children:(0,h.jsx)(ee.f,{enabled:!y&&w,allowPinchZoom:!0,removeScrollBar:!1,style:eg,children:(0,h.jsx)(g.il,{children:(0,h.jsx)(M.M,{loop:!0,enabled:!s&&w,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:C.$L?(0,h.jsx)("div",{style:eg,children:p}):p})})})},j.contentId)})}),eg={display:"contents"},ey=i.forwardRef(function(e,t){let{__scopePopover:r,...n}=e,o=eu(r);return(0,h.jsx)(z.FA,{...n,ref:t,componentName:"PopoverClose",onPress:(0,c.Mj)(e.onPress,()=>o.onOpenChange(!1,"press"))})}),eb=J.styleable(function(e,t){let{__scopePopover:r,...n}=e;return ej(eu(r).sheetBreakpoint)?null:(0,h.jsx)(J,{__scopePopper:r||el,componentName:"PopoverArrow",...n,ref:t})});function ev(e){return e?"open":"closed"}(0,c.$e)(i.forwardRef((e,t)=>{let{children:r,open:n,defaultOpen:a,onOpenChange:s,__scopePopover:u,keepChildrenMounted:c,hoverable:f,disableFocus:p,...m}=e,g=i.useId(),{when:y,AdaptProvider:b}=(0,d.pV)({Contents:i.useCallback(()=>(0,h.jsx)(X.$2,{name:`${g}PopoverContents`}),[])}),v=i.useRef(null),[x,j]=i.useState(!1),w=i.useRef(),[R,P]=(0,en.T)({prop:n,defaultProp:a||!1,onChange:e=>{s?.(e,w.current)}}),_=(0,o.z)((e,t)=>{w.current=t,P(e)}),k=ej(y),E=ei({open:R,setOpen:_,disable:k,hoverable:f,disableFocus:p}),[S,O]=i.useState(),M=(0,I.JL)(O);i.useImperativeHandle(t,()=>({anchorTo:M,toggle:()=>P(e=>!e),open:()=>P(!0),close:()=>P(!1),setOpen:P}));let A={id:g,sheetBreakpoint:y,contentId:i.useId(),triggerRef:v,open:R,breakpointActive:k,onOpenChange:_,onOpenToggle:(0,o.z)(()=>{R&&k||P(!R)}),hasCustomAnchor:x,anchorTo:S,onCustomAnchorAdd:i.useCallback(()=>j(!0),[]),onCustomAnchorRemove:i.useCallback(()=>j(!1),[]),keepChildrenMounted:c},T=(0,h.jsx)(B,{__scopePopper:u||el,stayInFrame:!0,...m,children:(0,h.jsx)(es.Provider,{scope:u,...A,children:(0,h.jsx)(ex,{onOpenChange:P,children:r})})});return(0,h.jsx)(b,{children:C.$L?(0,h.jsx)(l.Provider,{value:E,children:T}):T})}),{Anchor:ec,Arrow:eb,Trigger:ed,Content:ef,Close:ey,Adapt:d.Tr,ScrollView:ea.Z,Sheet:et.yo.Controlled});let ex=({__scopePopover:e,...t})=>{let r=eu(e),n=ew(r),a=r.breakpointActive,i=(0,o.X)(n);return(0,h.jsx)(er.f,{onOpenChange:e=>{i()&&t.onOpenChange(e)},open:r.open,hidden:!1===a,children:t.children})},ej=e=>{let t=(0,O.GS)();return"boolean"!=typeof e&&e?t[e]:!!e},ew=e=>{let t=ej(e.sheetBreakpoint);return!1!==e.open&&t},eR="tooltip",eP=G.extractable(i.forwardRef(({__scopeTooltip:e,...t},r)=>{let n=U(e||eR),o=t.padding??t.size??n.size??(0,u.ap)("$true",{shift:-2});return(0,h.jsx)(ef,{__scopePopover:e||eR,componentName:"Tooltip",disableRemoveScroll:!0,disableFocusScope:!0,...!t.unstyled&&{padding:o},ref:r,...t})})),eC=i.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e;return(0,h.jsx)(eb,{__scopePopper:r||eR,componentName:"Tooltip",ref:t,...n})}),e_=i.forwardRef(function(e,t){let{children:r,delay:a,restMs:s=typeof a>"u"?500:"number"==typeof a?a:0,onOpenChange:c,focus:d,open:f,disableAutoCloseOnScroll:p,__scopeTooltip:m,...g}=e,y=i.useRef(null),[b,v]=i.useState(!1),{delay:x,setCurrentId:j}=(0,n.tj)(),w=a??x,[R,P]=(0,en.T)({prop:f,defaultProp:!1,onChange:c}),C=e.groupId,_=(0,o.z)(e=>{e&&j(C),P(e)});i.useEffect(()=>{if(!R||p||typeof document>"u")return;let e=()=>{P(!1)};return document.documentElement.addEventListener("scroll",e),()=>{document.documentElement.removeEventListener("scroll",e)}},[R,p]);let k=i.useCallback(e=>{let t=(0,n.YF)({...e,open:R,onOpenChange:_}),{delay:r}=(0,n.Qu)(t.context,{id:C}),{getReferenceProps:o,getFloatingProps:a}=(0,n.NI)([(0,n.XI)(t.context,{delay:w??r,restMs:s}),(0,n.KK)(t.context,d),(0,n.qs)(t.context,{role:"tooltip"}),(0,n.bQ)(t.context)]);return{...t,open:R,getReferenceProps:o,getFloatingProps:a}},[C,w,R,s,d?JSON.stringify(d):0]),E=i.useCallback(()=>v(!0),[]),S=i.useCallback(()=>v(!1),[]),I=i.useId(),O=e.unstyled?null:(0,u.ap)("$true",{shift:-2,bounds:[0]});return(0,h.jsx)(l.Provider,{value:k,children:(0,h.jsx)(B,{__scopePopper:m||eR,size:O?.key,allowFlip:!0,stayInFrame:!0,...g,children:(0,h.jsx)(es.Provider,{contentId:I,triggerRef:y,sheetBreakpoint:!1,open:R,scope:m||eR,onOpenChange:P,onOpenToggle:eI,hasCustomAnchor:b,onCustomAnchorAdd:E,onCustomAnchorRemove:S,children:r})})})}),ek=i.forwardRef(function(e,t){let{__scopeTooltip:r,...n}=e;return(0,h.jsx)(ed,{...n,__scopePopover:r||eR,ref:t})}),eE=i.forwardRef(function(e,t){let{__scopeTooltip:r,...n}=e;return(0,h.jsx)(ec,{...n,__scopePopover:r||eR,ref:t})}),eS=(0,c.$e)(e_,{Anchor:eE,Arrow:eC,Content:eP,Trigger:ek}),eI=()=>{}},5737:function(e,t,r){r.d(t,{e:function(){return m}});var n=r(281),o=r(4975),a=r(2026),i=r(7445),l=r.n(i),s=r(1213),u=s.Z?window.location.href:"";class c{constructor(){this._eventCallbacks={}}_dispatchEvent(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{e(...r)})}addEventListener(e,t){var r=this;return r._eventCallbacks[e]||(r._eventCallbacks[e]=[t]),r._eventCallbacks[e].push(t),{remove(){var n=r._eventCallbacks[e].filter(e=>e.toString()!==t.toString());r._eventCallbacks[e]=n}}}removeEventListener(e,t){console.error("Linking.removeEventListener('"+e+"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `Linking.addEventListener`.");var r=this._eventCallbacks[e].filter(e=>e.toString()!==t.toString());this._eventCallbacks[e]=r}canOpenURL(){return Promise.resolve(!0)}getInitialURL(){return Promise.resolve(u)}openURL(e,t){1==arguments.length&&(t="_blank");try{return d(e,t),this._dispatchEvent("onOpen",e),Promise.resolve()}catch(e){return Promise.reject(e)}}_validateURL(e){l()("string"==typeof e,"Invalid URL: should be a string. Was: "+e),l()(e,"Invalid URL: cannot be empty")}}var d=(e,t)=>{if(s.Z){var r=new URL(e,window.location).toString();0===r.indexOf("tel:")?window.location=r:window.open(r,t,"noopener")}},f=new c,p=r(2281);let h=(0,o.z)(a.J,{name:"Anchor",tag:"a",accessibilityRole:"link"}),m=h.styleable(({href:e,target:t,...r},o)=>(0,p.jsx)(h,{...r,...n.$L?{href:e,target:t}:{onPress:t=>{r.onPress?.(t),void 0!==e&&f.openURL(e)}},ref:o}))}}]); \ No newline at end of file