(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{4044:(e,t,r)=>{"use strict";r.d(t,{Hx:()=>p,OB:()=>s,R8:()=>u,V7:()=>d,Yz:()=>c,z3:()=>n});var a=r(37913),o={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",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 n(e){return`[nuqs] ${o[e]}
  See https://err.47ng.com/NUQS-${e}`}function s(e){if(0===e.size)return"";let t=[];for(let[r,a]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${a.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,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}var l=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}return(localStorage.getItem("debug")??"").includes("nuqs")}();function c(e,...t){if(!l)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);try{console.log(e,...t)}catch(e){console.log(r)}}function u(e,...t){l&&console.warn(e,...t)}var i=(0,a.createContext)({useAdapter(){throw Error(n(404))}});function p(e){return({children:t,...r})=>(0,a.createElement)(i.Provider,{...r,value:{useAdapter:e}},t)}function d(){let e=(0,a.useContext)(i);if(!("useAdapter"in e))throw Error(n(404));return e.useAdapter()}i.displayName="NuqsAdapterContext",l&&"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==i&&console.error(n(303)),window.__NuqsAdapterContext=i)},31404:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_9a245f"}},37521:()=>{},80359:(e,t,r)=>{"use strict";var a=r(54255);r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},86275:(e,t,r)=>{"use strict";r.d(t,{NuqsAdapter:()=>s});var a=r(4044),o=r(80359),n=r(37913),s=(0,a.Hx)(function(){let e=(0,o.useRouter)(),t=(0,o.useSearchParams)(),[r,s]=(0,n.useOptimistic)(t);return{searchParams:r,updateUrl:(0,n.useCallback)((t,r)=>{(0,n.startTransition)(()=>{r.shallow||s(t);let o=function(e,t){let r=e.split("#")[0]??"";return r+(0,a.OB)(t)+location.hash}(location.origin+location.pathname,t);(0,a.Yz)("[nuqs queue (app)] Updating url: %s",o),("push"===r.history?history.pushState:history.replaceState).call(history,null,"",o),r.scroll&&window.scrollTo(0,0),r.shallow||e.replace(o,{scroll:!1})})},[]),rateLimitFactor:3}})},92551:(e,t,r)=>{Promise.resolve().then(r.bind(r,86275)),Promise.resolve().then(r.t.bind(r,37521,23)),Promise.resolve().then(r.t.bind(r,31404,23))}},e=>{var t=t=>e(e.s=t);e.O(0,[1554,2982,9670,7358],()=>t(92551)),_N_E=e.O()}]);