"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7823],{84203:(e,t,r)=>{r.d(t,{$l:()=>s,BN:()=>M,DY:()=>i,J$:()=>$,JG:()=>J,JN:()=>p,LI:()=>L,PM:()=>f,W6:()=>V,i_:()=>l,kY:()=>B,ko:()=>H,kw:()=>k,mf:()=>c,o8:()=>d,qC:()=>N,s6:()=>z,sj:()=>A,u3:()=>I,u_:()=>W,w6:()=>O,xD:()=>K});var n=r(46212);let i=new WeakMap,o={},a={},u=()=>{},l=u(),s=Object,d=e=>e===l,c=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),E="undefined",g=typeof window!=E,_=typeof document!=E,w=()=>g&&typeof window.requestAnimationFrame!=E,p=(e,t)=>{let r=i.get(e);return[()=>!d(t)&&e.get(t)||o,n=>{if(!d(t)){let i=e.get(t);t in a||(a[t]=i),r[5](t,f(i,n),i||o)}},r[6],()=>!d(t)&&t in a?a[t]:!d(t)&&e.get(t)||o]},h=new WeakMap,y=0,R=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(s(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=h.get(e))return t;if(t=++y+"~",h.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=R(e[r])+",";h.set(e,t)}if(i==s){t="#";let n=s.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+R(e[r])+",");h.set(e,t)}}return t},m=!0,[T,v]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],b={initFocus:e=>(_&&document.addEventListener("visibilitychange",e),T("focus",e),()=>{_&&document.removeEventListener("visibilitychange",e),v("focus",e)}),initReconnect:e=>{let t=()=>{m=!0,e()},r=()=>{m=!1};return T("online",t),T("offline",r),()=>{v("online",t),v("offline",r)}}},O=!n.useId,V=!g||"Deno"in window,k=e=>w()?window.requestAnimationFrame(e):setTimeout(e,1),L=V?n.useEffect:n.useLayoutEffect,C="undefined"!=typeof navigator&&navigator.connection,S=!V&&C&&(["slow-2g","2g"].includes(C.effectiveType)||C.saveData),N=e=>{if(c(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?R(e):"",t]},D=0,I=()=>++D;var A={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function M(...e){let[t,r,n,o]=e,a=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),u=a.populateCache,s=a.rollbackOnError,E=a.optimisticData,g=!1!==a.revalidate,_=e=>"function"==typeof s?s(e):!1!==s,w=a.throwOnError;if(c(r)){let e=[],n=t.keys();for(let i=n.next();!i.done;i=n.next()){let n=i.value;!/^\$(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 o;let[a]=N(r);if(!a)return;let[s,f]=p(t,a),[h,y,R]=i.get(t),m=h[a],T=()=>g&&(delete R[a],m&&m[0])?m[0](2).then(()=>s().data):s().data;if(e.length<3)return T();let v=n,b=I();y[a]=[b,0];let O=!d(E),V=s(),k=V.data,L=V._c,C=d(L)?k:L;if(O&&f({data:E=c(E)?E(C):E,_c:C}),c(v))try{v=v(C)}catch(e){o=e}if(v&&c(v.then)){if(v=await v.catch(e=>{o=e}),b!==y[a][0]){if(o)throw o;return v}o&&O&&_(o)&&(u=!0,f({data:v=C,_c:l}))}u&&!o&&(c(u)&&(v=u(v,C)),f({data:v,_c:l})),y[a][1]=I();let S=await T();if(f({_c:l}),o){if(w)throw o;return}return u?S:v}}let P=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},x=(e,t)=>{if(!i.has(e)){let r=f(b,t),n={},o=M.bind(l,e),a=u,s={},d=(e,t)=>{let r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},c=(t,r,n)=>{e.set(t,r);let i=s[t];if(i)for(let e of i)e(r,n)},E=()=>{if(!i.has(e)&&(i.set(e,[n,{},{},{},o,c,d]),!V)){let t=r.initFocus(setTimeout.bind(l,P.bind(l,n,0))),o=r.initReconnect(setTimeout.bind(l,P.bind(l,n,1)));a=()=>{t&&t(),o&&o(),i.delete(e)}}};return E(),[e,o,E,a]}return[e,i.get(e)[4]]},[F,J]=x(new Map),W=f({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(d(o)||!(a>o))&&setTimeout(n,u,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:S?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:S?5e3:3e3,compare:(e,t)=>R(e)==R(t),isPaused:()=>!1,cache:F,mutate:J,fallback:{}},{isOnline:()=>m,isVisible:()=>{let e=_&&document.visibilityState;return d(e)||"hidden"!==e}}),j=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:o,fallback:a}=t;n&&o&&(r.use=n.concat(o)),i&&a&&(r.fallback=f(i,a))}return r},U=(0,n.createContext)({}),$=e=>{let{value:t}=e,r=(0,n.useContext)(U),i=c(t),o=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),a=(0,n.useMemo)(()=>i?o:j(r,o),[i,r,o]),u=o&&o.provider,s=(0,n.useRef)(l);u&&!s.current&&(s.current=x(u(a.cache||F),o));let d=s.current;return d&&(a.cache=d[0],a.mutate=d[1]),L(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,n.createElement)(U.Provider,f(e,{value:a}))},q=g&&window.__SWR_DEVTOOLS_USE__,Y=q?window.__SWR_DEVTOOLS_USE__:[],G=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],B=()=>f(W,(0,n.useContext)(U)),Z=Y.concat(e=>(t,r,n)=>{let o=r&&((...e)=>{let[n]=N(t),[,,,o]=i.get(F),a=o[n];return a?(delete o[n],a):r(...e)});return e(t,o,n)}),z=e=>function(...t){let r=B(),[n,i,o]=G(t),a=j(r,o),u=e,{use:l}=a,s=(l||[]).concat(Z);for(let e=s.length;e--;)u=s[e](u);return u(n,i||a.fetcher||null,a)},H=(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())}},K=(e,t)=>(...r)=>{let[n,i,o]=G(r),a=(o.use||[]).concat(t);return e(n,i,{...o,use:a})};q&&(window.__SWR_DEVTOOLS_REACT__=n)},97823:(e,t,r)=>{r.d(t,{JG:()=>o.JG,ZP:()=>u,kY:()=>o.kY});var n=r(46212),i=r(72486),o=r(84203);let a={dedupe:!0};o.$l.defineProperty(o.J$,"defaultValue",{value:o.u_});let u=(0,o.s6)((e,t,r)=>{let{cache:u,compare:l,suspense:s,fallbackData:d,revalidateOnMount:c,revalidateIfStale:f,refreshInterval:E,refreshWhenHidden:g,refreshWhenOffline:_,keepPreviousData:w}=r,[p,h,y]=o.DY.get(u),[R,m]=(0,o.qC)(e),T=(0,n.useRef)(!1),v=(0,n.useRef)(!1),b=(0,n.useRef)(R),O=(0,n.useRef)(t),V=(0,n.useRef)(r),k=()=>V.current,L=()=>k().isVisible()&&k().isOnline(),[C,S,N,D]=(0,o.JN)(u,R),I=(0,n.useRef)({}).current,A=(0,o.o8)(d)?r.fallback[R]:d,M=(e,t)=>{for(let r in I)if("data"===r){if(!l(e[r],t[r])&&(!(0,o.o8)(e[r])||!l(q,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},P=(0,n.useMemo)(()=>{let e=!!R&&!!t&&((0,o.o8)(c)?!k().isPaused()&&!s&&(!!(0,o.o8)(f)||f):c),r=t=>{let r=(0,o.PM)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=C(),i=D(),a=r(n),u=n===i?a:r(i),l=a;return[()=>{let e=r(C());return M(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>u]},[u,R]),x=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>N(R,(t,r)=>{M(r,t)||e()}),[u,R]),P[0],P[1]),F=!T.current,J=p[R]&&p[R].length>0,W=x.data,j=(0,o.o8)(W)?A:W,U=x.error,$=(0,n.useRef)(j),q=w?(0,o.o8)(W)?$.current:W:j,Y=(!J||!!(0,o.o8)(U))&&(F&&!(0,o.o8)(c)?c:!k().isPaused()&&(s?!(0,o.o8)(j)&&f:(0,o.o8)(j)||f)),G=!!(R&&t&&F&&Y),B=(0,o.o8)(x.isValidating)?G:x.isValidating,Z=(0,o.o8)(x.isLoading)?G:x.isLoading,z=(0,n.useCallback)(async e=>{let t,n;let i=O.current;if(!R||!i||v.current||k().isPaused())return!1;let a=!0,u=e||{},s=!y[R]||!u.dedupe,d=()=>o.w6?!v.current&&R===b.current&&T.current:R===b.current,c={isValidating:!1,isLoading:!1},f=()=>{S(c)},E=()=>{let e=y[R];e&&e[1]===n&&delete y[R]},g={isValidating:!0};(0,o.o8)(C().data)&&(g.isLoading=!0);try{if(s&&(S(g),r.loadingTimeout&&(0,o.o8)(C().data)&&setTimeout(()=>{a&&d()&&k().onLoadingSlow(R,r)},r.loadingTimeout),y[R]=[i(m),(0,o.u3)()]),[t,n]=y[R],t=await t,s&&setTimeout(E,r.dedupingInterval),!y[R]||y[R][1]!==n)return s&&d()&&k().onDiscarded(R),!1;c.error=o.i_;let e=h[R];if(!(0,o.o8)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),s&&d()&&k().onDiscarded(R),!1;let u=C().data;c.data=l(u,t)?u:t,s&&d()&&k().onSuccess(t,R,r)}catch(r){E();let e=k(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=r,s&&d()&&(e.onError(r,R,e),(!0===t||(0,o.mf)(t)&&t(r))&&L()&&e.onErrorRetry(r,R,e,e=>{let t=p[R];t&&t[0]&&t[0](o.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[R,u]),H=(0,n.useCallback)((...e)=>(0,o.BN)(u,b.current,...e),[]);if((0,o.LI)(()=>{O.current=t,V.current=r,(0,o.o8)(W)||($.current=W)}),(0,o.LI)(()=>{if(!R)return;let e=z.bind(o.i_,a),t=0,r=(0,o.ko)(R,p,(r,n={})=>{if(r==o.sj.FOCUS_EVENT){let r=Date.now();k().revalidateOnFocus&&r>t&&L()&&(t=r+k().focusThrottleInterval,e())}else if(r==o.sj.RECONNECT_EVENT)k().revalidateOnReconnect&&L()&&e();else if(r==o.sj.MUTATE_EVENT)return z();else if(r==o.sj.ERROR_REVALIDATE_EVENT)return z(n)});return v.current=!1,b.current=R,T.current=!0,S({_k:m}),Y&&((0,o.o8)(j)||o.W6?e():(0,o.kw)(e)),()=>{v.current=!0,r()}},[R]),(0,o.LI)(()=>{let e;function t(){let t=(0,o.mf)(E)?E(C().data):E;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!C().error&&(g||k().isVisible())&&(_||k().isOnline())?z(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[E,g,_,R]),(0,n.useDebugValue)(q),s&&(0,o.o8)(j)&&R){if(!o.w6&&o.W6)throw Error("Fallback data is required when using suspense in SSR.");throw O.current=t,V.current=r,v.current=!1,(0,o.o8)(U)?z(a):U}return{mutate:H,get data(){return I.data=!0,q},get error(){return I.error=!0,U},get isValidating(){return I.isValidating=!0,B},get isLoading(){return I.isLoading=!0,Z}}})}}]);