(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107983,(e,t,r)=>{"use strict";var n=e.r(357436),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,u=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"{"use strict";t.exports=e.r(107983)},613646,966341,401232,e=>{"use strict";var t=e.i(357436);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],966341);var r=Object.prototype.hasOwnProperty;let n=new WeakMap,i=()=>{},a=i(),u=Object,o=e=>e===a,l=e=>"function"==typeof e,s=(e,t)=>({...e,...t}),c=e=>l(e.then),d={},f={},g="undefined",E=typeof window!=g,v=typeof document!=g,h=E&&"Deno"in window,p=(e,t)=>{let r=n.get(e);return[()=>!o(t)&&e.get(t)||d,n=>{if(!o(t)){let i=e.get(t);t in f||(f[t]=i),r[5](t,s(i,n),i||d)}},r[6],()=>!o(t)&&t in f?f[t]:!o(t)&&e.get(t)||d]},w=!0,[b,y]=E&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],m={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),b("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),y("focus",e)}),initReconnect:e=>{let t=()=>{w=!0,e()},r=()=>{w=!1};return b("online",t),b("offline",r),()=>{y("online",t),y("offline",r)}}},S=!t.default.useId,O=!E||h,R=O?t.useEffect:t.useLayoutEffect,T="u">typeof navigator&&navigator.connection,_=!O&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),V=new WeakMap,C=(e,t)=>e===`[object ${t}]`,L=0,k=e=>{let t,r,n=typeof e,i=u.prototype.toString.call(e),a=C(i,"Date"),l=C(i,"RegExp"),s=C(i,"Object");if(u(e)!==e||a||l)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=V.get(e))return t;if(t=++L+"~",V.set(e,t),Array.isArray(e)){for(r=0,t="@";r{if(l(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?k(e):"",t]},D=0,I=()=>++D;async function j(...e){let[t,r,i,u]=e,d=s({populateCache:!0,throwOnError:!0},"boolean"==typeof u?{revalidate:u}:u||{}),f=d.populateCache,g=d.rollbackOnError,E=d.optimisticData,v=d.throwOnError;if(l(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(h))}return h(r);async function h(r){let u,[s]=A(r);if(!s)return;let[h,w]=p(t,s),[b,y,m,S]=n.get(t),O=()=>{let e=b[s];return(l(d.revalidate)?d.revalidate(h().data,r):!1!==d.revalidate)&&(delete m[s],delete S[s],e&&e[0])?e[0](2).then(()=>h().data):h().data};if(e.length{u=e,T=!0}),_!==y[s][0]){if(T)throw u;return R}T&&V&&(e=u,"function"==typeof g?g(e):!1!==g)&&(f=!0,w({data:D,_c:a}))}if(f&&!T&&(l(f)?w({data:f(R,D),error:a,_c:a}):w({data:R,error:a,_c:a})),y[s][1]=I(),Promise.resolve(O()).then(()=>{w({_c:a})}),T){if(v)throw u;return}return R}}let N=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},U=(e,t)=>{if(!n.has(e)){let r=s(m,t),u=Object.create(null),o=j.bind(a,e),l=i,c=Object.create(null),d=(e,t)=>{let r=c[e]||[];return c[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let i=c[t];if(i)for(let e of i)e(r,n)},g=()=>{if(!n.has(e)&&(n.set(e,[u,Object.create(null),Object.create(null),Object.create(null),o,f,d]),!O)){let t=r.initFocus(setTimeout.bind(a,N.bind(a,u,0))),i=r.initReconnect(setTimeout.bind(a,N.bind(a,u,1)));l=()=>{t&&t(),i&&i(),n.delete(e)}}};return g(),[e,o,g,l]}return[e,n.get(e)[4]]},[P,x]=U(new Map),M=s({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,u=i.retryCount,l=~~((Math.random()+.5)*(1a))&&setTimeout(n,l,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:_?5e3:3e3,compare:function e(t,n){var i,a;if(t===n)return!0;if(t&&n&&(i=t.constructor)===n.constructor){if(i===Date)return t.getTime()===n.getTime();if(i===RegExp)return t.toString()===n.toString();if(i===Array){if((a=t.length)===n.length)for(;a--&&e(t[a],n[a]););return -1===a}if(!i||"object"==typeof t){for(i in a=0,t)if(r.call(t,i)&&++a&&!r.call(n,i)||!(i in n)||!e(t[i],n[i]))return!1;return Object.keys(n).length===a}}return t!=t&&n!=n},isPaused:()=>!1,cache:P,mutate:x,fallback:{}},{isOnline:()=>w,isVisible:()=>{let e=v&&document.visibilityState;return o(e)||"hidden"!==e}}),W=(e,t)=>{let r=s(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:u}=t;n&&a&&(r.use=n.concat(a)),i&&u&&(r.fallback=s(i,u))}return r},F=(0,t.createContext)({}),$=e=>{let{value:r}=e,n=(0,t.useContext)(F),i=l(r),u=(0,t.useMemo)(()=>i?r(n):r,[i,n,r]),o=(0,t.useMemo)(()=>i?u:W(n,u),[i,n,u]),c=u&&u.provider,d=(0,t.useRef)(a);c&&!d.current&&(d.current=U(c(o.cache||P),u));let f=d.current;return f&&(o.cache=f[0],o.mutate=f[1]),R(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,t.createElement)(F.Provider,s(e,{value:o}))};e.s(["A",0,i,"B",0,c,"I",0,S,"O",0,u,"S",0,F,"U",0,a,"a",0,l,"b",0,n,"c",0,P,"d",0,M,"e",0,o,"f",0,W,"g",0,$,"i",0,E,"j",0,x,"m",0,s,"n",0,j,"o",0,I,"r",0,O,"s",0,A,"t",0,e=>E&&typeof window.requestAnimationFrame!=g?window.requestAnimationFrame(e):setTimeout(e,1),"u",0,R,"z",0,p],613646),e.s(["SWRConfig",0,$],401232)},381477,895711,66396,676037,527983,354622,78160,582853,e=>{"use strict";var t=e.i(357436),r=e.i(33347),n=e.i(613646);e.s(["UNDEFINED",()=>n.U],895711);var n=n,i=n,a=e.i(401232),u=n,o=n,l=e.i(966341);let s=o.i&&window.__SWR_DEVTOOLS_USE__,c=s?window.__SWR_DEVTOOLS_USE__:[],d=e=>(0,o.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],f=()=>{let e=(0,t.useContext)(o.S);return(0,t.useMemo)(()=>(0,o.m)(o.d,e),[e])},g=c.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=(0,o.s)(t),[,,,i]=o.b.get(o.c);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return(0,o.e)(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),E=e=>function(...t){let r=f(),[n,i,a]=d(t),u=(0,o.f)(r,a),l=e,{use:s}=u,c=(s||[]).concat(g);for(let e=c.length;e--;)l=c[e](l);return l(n,i||u.fetcher||null,u)},v=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};s&&(window.__SWR_DEVTOOLS_REACT__=t.default),e.s(["subscribeCallback",0,v,"useSWRConfig",0,f,"withArgs",0,E,"withMiddleware",0,(e,t)=>(...r)=>{let[n,i,a]=d(r),u=(a.use||[]).concat(t);return e(n,i,{...a,use:u})}],66396);var h=n,p=n;e.s(["serialize",()=>p.s],676037);var p=n,w=n,b=n,y=n,m=n,S=n,O=n;e.s(["getTimestamp",()=>O.o],527983);var O=n,R=n,T=n,_=n;e.s(["useIsomorphicLayoutEffect",()=>_.u],354622);var _=n,V=n,C=n;e.s(["IS_REACT_LEGACY",()=>C.I],78160);var C=n,L=n;e.s(["mergeObjects",()=>L.m],582853);var L=n;let k=()=>{},A=k(),D=(new WeakMap,t.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),I={dedupe:!0},j=Promise.resolve(n.U),N=i.O.defineProperty(a.SWRConfig,"defaultValue",{value:u.d}),U=E((e,i,a)=>{let{cache:u,compare:o,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:g,refreshWhenHidden:E,refreshWhenOffline:k,keepPreviousData:A,strictServerPrefetchWarning:N}=a,[U,P,x,M]=h.b.get(u),[W,F]=(0,p.s)(e),$=(0,t.useRef)(!1),z=(0,t.useRef)(!1),B=(0,t.useRef)(W),q=(0,t.useRef)(i),J=(0,t.useRef)(a),K=()=>J.current.isVisible()&&J.current.isOnline(),[Y,G,H,Q]=(0,w.z)(u,W),X=(0,t.useRef)({}).current,Z=(0,b.e)(c)?(0,b.e)(a.fallback)?n.U:a.fallback[W]:c,ee=(e,t)=>{for(let r in X)if("data"===r){if(!o(e[r],t[r])&&(!(0,b.e)(e[r])||!o(es,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},et=(0,t.useMemo)(()=>{let e=!!W&&!!i&&((0,b.e)(d)?!J.current.isPaused()&&!s&&!1!==f:d),t=t=>{let r=(0,L.m)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},r=Y(),n=Q(),a=t(r),u=r===n?a:t(n),o=a;return[()=>{let e=t(Y());return ee(e,o)?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>u]},[u,W]),er=(0,r.useSyncExternalStore)((0,t.useCallback)(e=>H(W,(t,r)=>{ee(r,t)||e()}),[u,W]),et[0],et[1]),en=!$.current,ei=U[W]&&U[W].length>0,ea=er.data,eu=(0,b.e)(ea)?Z&&(0,y.B)(Z)?D(Z):Z:ea,eo=er.error,el=(0,t.useRef)(eu),es=A?(0,b.e)(ea)?(0,b.e)(el.current)?eu:el.current:ea:eu,ec=W&&(0,b.e)(eu),ed=!m.r&&(0,r.useSyncExternalStore)(()=>S.A,()=>!1,()=>!0);N&&ed&&!s&&ec&&console.warn(`Missing pre-initiated data for serialized key "${W}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ef=(!ei||!!(0,b.e)(eo))&&(en&&!(0,b.e)(d)?d:!J.current.isPaused()&&(s?!(0,b.e)(eu)&&f:(0,b.e)(eu)||f)),eg=!!(W&&i&&en&&ef),eE=(0,b.e)(er.isValidating)?eg:er.isValidating,ev=(0,b.e)(er.isLoading)?eg:er.isLoading,eh=(0,t.useCallback)(async e=>{let t,r,i=q.current;if(!W||!i||z.current||J.current.isPaused())return!1;let u=!0,s=e||{},c=!x[W]||!s.dedupe,d=()=>C.I?!z.current&&W===B.current&&$.current:W===B.current,f={isValidating:!1,isLoading:!1},g=()=>{G(f)},E=()=>{let e=x[W];e&&e[1]===r&&delete x[W]},v={isValidating:!0};(0,b.e)(Y().data)&&(v.isLoading=!0);try{if(c&&(G(v),a.loadingTimeout&&(0,b.e)(Y().data)&&setTimeout(()=>{u&&d()&&J.current.onLoadingSlow(W,a)},a.loadingTimeout),x[W]=[i(F),(0,O.o)()]),[t,r]=x[W],t=await t,c&&setTimeout(E,a.dedupingInterval),!x[W]||x[W][1]!==r)return c&&d()&&J.current.onDiscarded(W),!1;f.error=n.U;let e=P[W];if(!(0,b.e)(e)&&(r{let t=U[W];t&&t[0]&&t[0](l.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return u=!1,g(),!0},[W,u]),ep=(0,t.useCallback)((...e)=>(0,T.n)(u,B.current,...e),[]);if((0,_.u)(()=>{q.current=i,J.current=a,(0,b.e)(ea)||(el.current=ea)}),(0,_.u)(()=>{if(!W)return;let e=eh.bind(n.U,I),t=0;J.current.revalidateOnFocus&&(t=Date.now()+J.current.focusThrottleInterval);let r=v(W,U,(r,n={})=>{if(r==l.FOCUS_EVENT){let r=Date.now();J.current.revalidateOnFocus&&r>t&&K()&&(t=r+J.current.focusThrottleInterval,e())}else if(r==l.RECONNECT_EVENT)J.current.revalidateOnReconnect&&K()&&e();else if(r==l.MUTATE_EVENT)return eh();else if(r==l.ERROR_REVALIDATE_EVENT)return eh(n)});return z.current=!1,B.current=W,$.current=!0,G({_k:F}),ef&&!x[W]&&((0,b.e)(eu)||m.r?e():(0,V.t)(e)),()=>{z.current=!0,r()}},[W]),(0,_.u)(()=>{let e;function t(){let t=(0,R.a)(g)?g(Y().data):g;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!Y().error&&(E||J.current.isVisible())&&(k||J.current.isOnline())?eh(I).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,E,k,W]),(0,t.useDebugValue)(es),s){if(!C.I&&m.r&&ec)throw Error("Fallback data is required when using Suspense in SSR.");ec&&(q.current=i,J.current=a,z.current=!1);let e=M[W];if(D(!(0,b.e)(e)&&ec?ep(e):j),!(0,b.e)(eo)&&ec)throw eo;let t=ec?eh(I):j;!(0,b.e)(es)&&ec&&(t.status="fulfilled",t.value=!0),D(t)}return{mutate:ep,get data(){return X.data=!0,es},get error(){return X.error=!0,eo},get isValidating(){return X.isValidating=!0,eE},get isLoading(){return X.isLoading=!0,ev}}});e.s(["SWRConfig",0,N,"default",0,U],381477)}]);