try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa9f91f5-9757-43cc-afbc-15dcaf2b9c94",e._sentryDebugIdIdentifier="sentry-dbid-fa9f91f5-9757-43cc-afbc-15dcaf2b9c94")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sentry-changelog":!0})}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[225],{13172:(e,t,r)=>{r.d(t,{m:()=>f});var n={};r.r(n),r.d(n,{MDXContext:()=>o,MDXProvider:()=>c,useMDXComponents:()=>s,withMDXComponents:()=>u});var l=r(12115),a=r(80981);let o=l.createContext({});function u(e){return function(t){let r=s(t.components);return l.createElement(e,{...t,allComponents:r})}}function s(e){let t=l.useContext(o);return l.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let i={};function c({components:e,children:t,disableParentContext:r}){let n;return n=r?"function"==typeof e?e({}):e||i:s(e),l.createElement(o.Provider,{value:n},t)}function f(e){let{compiledSource:t,frontmatter:r,scope:o,components:u={},lazy:s}=e,[i,f]=(0,l.useState)(!s);(0,l.useEffect)(()=>{if(s){let e=window.requestIdleCallback(()=>{f(!0)});return()=>window.cancelIdleCallback(e)}},[]);let p=(0,l.useMemo)(()=>{let e=Object.assign({opts:{...n,...a.jsxRuntime}},{frontmatter:r},o),l=Object.keys(e),u=Object.values(e),s=Reflect.construct(Function,l.concat("".concat(t)));return s.apply(s,u).default},[o,t]);if(!i)return l.createElement("div",{dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0});let d=l.createElement(c,{components:u},l.createElement(p,null));return s?l.createElement("div",null,d):d}window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)}},20063:(e,t,r)=>{var n=r(47260);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},34204:(e,t,r)=>{r.d(t,{rl:()=>f,IN:()=>i,GJ:()=>s,tU:()=>u,ZA:()=>C});var n=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}let e=localStorage.getItem("debug")??"";return e.includes("nuqs")||e.includes("next-usequerystate")}();function l(e,...t){if(!n)return;let r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r),console.log(e,...t)}function a(e,t,r){try{return e(t)}catch(e){return!function(e,...t){n&&console.warn(e,...t)}("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}function o(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),a(e.parse,r)}return{eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}var u=o({parse:e=>e,serialize:e=>`${e}`}),s=o({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});function i(e,t=","){let r=e.eq??((e,t)=>e===t),n=encodeURIComponent(t);return o({parse:r=>""===r?[]:r.split(t).map((r,l)=>a(e.parse,r.replaceAll(n,t),`[${l}]`)).filter(e=>null!=e),serialize:r=>r.map(r=>(e.serialize?e.serialize(r):String(r)).replaceAll(t,n)).join(t),eq:(e,t)=>e===t||e.length===t.length&&e.every((e,n)=>r(e,t[n]))})}function c(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(//g,"%3E")}`)}return"?"+t.join("&")}function f(e){return function(t,r={}){let[n,l]=p(t)?function(e){if("string"==typeof e){let[t="",r]=e.split("?");return[t,new URLSearchParams(r)]}return e instanceof URLSearchParams?["",new URLSearchParams(e)]:[e.origin+e.pathname,new URLSearchParams(e.searchParams)]}(t):["",new URLSearchParams],a=p(t)?r:t;if(null===a){for(let t in e)l.delete(t);return n+c(l)}for(let t in e){let r=e[t],n=a[t];if(!r||void 0===n)continue;let o=void 0!==r.defaultValue&&(r.eq??((e,t)=>e===t))(n,r.defaultValue);null===n||r.clearOnDefault&&o?l.delete(t):l.set(t,r.serialize(n))}return n+c(l)}}function p(e){return"string"==typeof e||e instanceof URLSearchParams||e instanceof URL}o({parse:e=>{let t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{let t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}}),o({parse:e=>{let t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()}),o({parse:e=>"true"===e,serialize:e=>e?"true":"false"}),o({parse:e=>{let t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString()}),o({parse:e=>{let t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString()});var d={409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` was about to load on top.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function h(e){return`[nuqs] ${d[e]} See https://err.47ng.com/NUQS-${e}`}var g=r(20063),y=r(12115),m=function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}(),w=new Map,b={history:"replace",scroll:!1,shallow:!0,throttleMs:m},S=new Set,v=0,_=null;function q(e){return w.get(e)??null}function M(e,t){let r=e.split("#")[0]??"";return r+c(t)+location.hash}var O=Symbol("__nuqs__SYNC__"),P="__nuqs__NO_SYNC__",I=Symbol("__nuqs__NOTIFY__"),T=function(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(e){e(r)}),(n=e.get("*"))&&n.slice().map(function(e){e(t,r)})}}}();function C(e,{history:t="replace",shallow:r=!0,scroll:n=!1,throttleMs:o=m,parse:u=e=>e,serialize:s=String,eq:i=(e,t)=>e===t,defaultValue:c,clearOnDefault:f=!1,startTransition:p}={history:"replace",scroll:!1,shallow:!0,throttleMs:m,parse:e=>e,serialize:String,eq:(e,t)=>e===t,clearOnDefault:!1,defaultValue:void 0}){let d=(0,g.useRouter)(),I=(0,g.useSearchParams)(),E=y.useRef(null),[N,k]=y.useState(()=>{let t=q(e),r=I?.get(e)??null,n=t??r;return E.current=n,null===n?null:a(u,n,e)}),R=y.useRef(N);l("[nuqs `%s`] render - state: %O, iSP: %s",e,N,I?.get(e)??null),y.useEffect(()=>{if(window.next?.version!=="14.0.3")return;let t=I.get(e)??null;if(t===E.current)return;let r=null===t?null:a(u,t,e);l("[nuqs `%s`] syncFromUseSearchParams %O",e,r),R.current=r,E.current=t,k(r)},[I?.get(e),e]),y.useInsertionEffect(()=>{function t({state:t,query:r}){l("[nuqs `%s`] updateInternalState %O",e,t),R.current=t,E.current=r,k(t)}function r(r){let n=r.get(e);if(n===E.current)return;let o=null===n?null:a(u,n,e);l("[nuqs `%s`] syncFromURL %O",e,o),t({state:o,query:n})}return l("[nuqs `%s`] subscribing to sync",e),T.on(O,r),T.on(e,t),()=>{l("[nuqs `%s`] unsubscribing from sync",e),T.off(O,r),T.off(e,t)}},[e]);let x=y.useCallback((a,u={})=>{var g;let y="function"==typeof a?a(R.current??c??null):a;return(u.clearOnDefault??f)&&null!==y&&void 0!==c&&i(y,c)&&(y=null),E.current=function(e,t,r,n){let a=null===t?null:r(t);return l("[nuqs queue] Enqueueing %s=%s %O",e,a,n),w.set(e,a),"push"===n.history&&(b.history="push"),n.scroll&&(b.scroll=!0),!1===n.shallow&&(b.shallow=!1),n.startTransition&&(S.add(n.startTransition),b.shallow=!1),b.throttleMs=Math.max(n.throttleMs??m,Number.isFinite(b.throttleMs)?b.throttleMs:0),a}(e,y,s,{history:u.history??t,shallow:u.shallow??r,scroll:u.scroll??n,throttleMs:u.throttleMs??o,startTransition:u.startTransition??p}),T.emit(e,{state:y,query:E.current}),g=d,null===_&&(_=new Promise((e,t)=>{if(!Number.isFinite(b.throttleMs)){l("[nuqs queue] Skipping flush due to throttleMs=Infinity"),e(new URLSearchParams(location.search)),setTimeout(()=>{_=null},0);return}function r(){v=performance.now();let[r,n]=function(e){let t=new URLSearchParams(location.search);if(0===w.size)return[t,null];let r=Array.from(w.entries()),n={...b},a=Array.from(S);for(let[e,a]of(w.clear(),S.clear(),b.history="replace",b.scroll=!1,b.shallow=!0,b.throttleMs=m,l("[nuqs queue] Flushing queue %O with options %O",r,n),r))null===a?t.delete(e):t.set(e,a);try{let r=window.next?.router;if("string"==typeof r?.state?.asPath){let e=M(r.state.asPath.split("?")[0]??"",t);l("[nuqs queue (pages)] Updating url: %s",e),("push"===n.history?r.push:r.replace).call(r,e,e,{scroll:n.scroll,shallow:n.shallow})}else{let r=M(location.origin+location.pathname,t);l("[nuqs queue (app)] Updating url: %s",r);let o="push"===n.history?history.pushState:history.replaceState,u=(window.next?.version??"")>="14.1.0"?null:history.state;o.call(history,u,P,r),n.scroll&&window.scrollTo(0,0),n.shallow||function(e,t){let r=n=>{if(n===e.length)return t();let l=e[n];if(!l)throw Error("Invalid transition function");l(()=>r(n+1))};r(0)}(a,()=>{e.replace(r,{scroll:!1})})}return[t,null]}catch(e){return console.error(h(429),r.map(([e])=>e).join(),e),[t,e]}}(g);null===n?e(r):t(r),_=null}setTimeout(function(){let e=performance.now()-v,t=b.throttleMs,n=Math.max(0,Math.min(t,t-e));l("[nuqs queue] Scheduling flush in %f ms. Throttled at %f ms",n,t),0===n?r():setTimeout(r,n)},0)})),_},[e,t,r,n,o,p]);return[N??c??null,x]}"object"==typeof history&&function(){let e="1.20.0",t=history.__nuqs_patched;if(t){t!==e&&console.error(h(409),t,e);return}for(let t of(l("[nuqs] Patching history with %s",e),["pushState","replaceState"])){let e=history[t].bind(history);history[t]=function(r,n,a){if(!a)return l("[nuqs] history.%s(null) (%s) %O",t,n,r),e(r,n,a);let o=n===P?"internal":"external",u=new URL(a,location.origin).searchParams;if(l("[nuqs] history.%s(%s) (%s) %O",t,a,o,r),"external"===o){for(let[e,t]of u.entries()){let r=q(e);null!==r&&r!==t&&(l("[nuqs] Overwrite detected for key: %s, Server: %s, queue: %s",e,t,r),u.set(e,r))}setTimeout(()=>{l("[nuqs] External history.%s call: triggering sync with %s",t,u),T.emit(O,u),T.emit(I,{search:u,source:o})},0)}else setTimeout(()=>{T.emit(I,{search:u,source:o})},0);return e(r,n===P?"":n,a)}}Object.defineProperty(history,"__nuqs_patched",{value:e,writable:!1,enumerable:!1,configurable:!1})}()},52619:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(28140),l=r(95155),a=n._(r(12115)),o=r(47670),u=r(46752),s=r(86871),i=r(83011),c=r(62296),f=r(96058);r(94781);let p=r(63499);function d(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}let h=a.default.forwardRef(function(e,t){let r,n;let{href:o,as:h,children:g,prefetch:y=null,passHref:m,replace:w,shallow:b,scroll:S,onClick:v,onMouseEnter:_,onTouchStart:q,legacyBehavior:M=!1,...O}=e;r=g,M&&("string"==typeof r||"number"==typeof r)&&(r=(0,l.jsx)("a",{children:r}));let P=a.default.useContext(u.AppRouterContext),I=!1!==y,T=null===y?s.PrefetchKind.AUTO:s.PrefetchKind.FULL,{href:C,as:E}=a.default.useMemo(()=>{let e=d(o);return{href:e,as:h?d(h):e}},[o,h]);M&&(n=a.default.Children.only(r));let N=M?n&&"object"==typeof n&&n.ref:t,k=a.default.useCallback(e=>(I&&null!==P&&(0,p.mountLinkInstance)(e,C,P,T),()=>{(0,p.unmountLinkInstance)(e)}),[I,C,P,T]),R={ref:(0,i.useMergedRef)(k,N),onClick(e){M||"function"!=typeof v||v(e),M&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&!e.defaultPrevented&&!function(e,t,r,n,l,o,u){let{nodeName:s}=e.currentTarget;!("A"===s.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))&&(e.preventDefault(),a.default.startTransition(()=>{let e=null==u||u;"beforePopState"in t?t[l?"replace":"push"](r,n,{shallow:o,scroll:e}):t[l?"replace":"push"](n||r,{scroll:e})}))}(e,P,C,E,w,b,S)},onMouseEnter(e){M||"function"!=typeof _||_(e),M&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&I&&(0,p.onNavigationIntent)(e.currentTarget)},onTouchStart:function(e){M||"function"!=typeof q||q(e),M&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&I&&(0,p.onNavigationIntent)(e.currentTarget)}};return(0,c.isAbsoluteUrl)(E)?R.href=E:M&&!m&&("a"!==n.type||"href"in n.props)||(R.href=(0,f.addBasePath)(E)),M?a.default.cloneElement(n,R):(0,l.jsx)("a",{...O,...R,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)},80981:(e,t,r)=>{e.exports.jsxRuntime=r(95155)}}]);