"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5287],{78735:function(e,t,r){let n=r(16633),i=r(24561),o=r(51936),a=(e,t)=>e.some(e=>"string"==typeof e?e===t:(e.lastIndex=0,e.test(t))),s=new o({maxSize:1e5}),u=e=>"object"==typeof e&&null!==e&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),l=(e,t)=>{if(!u(e))return e;let{exclude:r,pascalCase:o,stopPaths:l,deep:c}=t={deep:!1,pascalCase:!1,...t},f=new Set(l),d=e=>(t,l)=>{if(c&&u(l)){let r=void 0===e?t:`${e}.${t}`;f.has(r)||(l=n(l,d(r)))}if(!(r&&a(r,t))){let e=o?`${t}_`:t;if(s.has(e))t=s.get(e);else{let r=i(t,{pascalCase:o});t.length<100&&s.set(e,r),t=r}}return[t,l]};return n(e,d(void 0))};e.exports=(e,t)=>Array.isArray(e)?Object.keys(e).map(r=>l(e[r],t)):l(e,t)},24561:function(e){var t=function(e){for(var t=!1,r=!1,n=!1,i=0;i<e.length;i++){var o=e[i];t&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(e=e.slice(0,i)+"-"+e.slice(i),t=!1,n=r,r=!0,i++):r&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(e=e.slice(0,i-1)+"-"+e.slice(i-1),n=r,r=!1,t=!0):(t=o.toLowerCase()===o&&o.toUpperCase()!==o,n=r,r=o.toUpperCase()===o&&o.toLowerCase()!==o)}return e},r=function(e,r){var n;if(!("string"==typeof e||Array.isArray(e)))throw TypeError("Expected the input to be `string | string[]`");return(r=Object.assign({pascalCase:!1},r),0===(e=Array.isArray(e)?e.map(function(e){return e.trim()}).filter(function(e){return e.length}).join("-"):e.trim()).length)?"":1===e.length?r.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=t(e)),n=e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(e,t){return t.toUpperCase()}).replace(/\d+(\w|$)/g,function(e){return e.toUpperCase()}),r.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)};e.exports=r,e.exports.default=r},16633:function(e){let t=e=>"object"==typeof e&&null!==e,r=Symbol("skip"),n=e=>t(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date),i=(e,t,o,a=new WeakMap)=>{if(o={deep:!1,target:{},...o},a.has(e))return a.get(e);a.set(e,o.target);let{target:s}=o;delete o.target;let u=e=>e.map(e=>n(e)?i(e,t,o,a):e);if(Array.isArray(e))return u(e);for(let[l,c]of Object.entries(e)){let f=t(l,c,e);if(f===r)continue;let[d,h,{shouldRecurse:p=!0}={}]=f;"__proto__"!==d&&(o.deep&&p&&n(h)&&(h=Array.isArray(h)?u(h):i(h,t,o,a)),s[d]=h)}return s};e.exports=(e,r,n)=>{if(!t(e))throw TypeError(`Expected an object, got \`${e}\` (${typeof e})`);return i(e,r,n)},e.exports.mapObjectSkip=r},51936:function(e){class t{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){let t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(let t of this.oldCache.keys())!this.cache.has(t)&&e++;return this._size+e}}e.exports=t},40993:function(e,t,r){var n=r(2265),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,u=n.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return s(function(){i.value=r,i.getSnapshot=t,l(i)&&c({inst:i})},[e,r,t]),a(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},3486:function(e,t,r){e.exports=r(40993)},62827:function(e,t,r){r.d(t,{$l:function(){return a},BN:function(){return z},DY:function(){return p},Fs:function(){return $},J$:function(){return J},JN:function(){return m},LI:function(){return L},PM:function(){return l},UG:function(){return q},W6:function(){return O},i_:function(){return o},kY:function(){return G},ko:function(){return Q},kw:function(){return k},mf:function(){return u},o8:function(){return s},qC:function(){return A},s6:function(){return K},sj:function(){return j},u3:function(){return N},u_:function(){return P},w6:function(){return T},xD:function(){return X}});var n=r(2265);let i=()=>{},o=i(),a=Object,s=e=>e===o,u=e=>"function"==typeof e,l=(e,t)=>({...e,...t}),c=e=>u(e.then),f=new WeakMap,d=0,h=e=>{let t,r;let n=typeof e,i=e&&e.constructor,o=i==Date;if(a(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=f.get(e))return t;if(t=++d+"~",f.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=h(e[r])+",";f.set(e,t)}if(i==a){t="#";let n=a.keys(e).sort();for(;!s(r=n.pop());)s(e[r])||(t+=r+":"+h(e[r])+",");f.set(e,t)}}return t},p=new WeakMap,g={},E={},w="undefined",y=typeof window!=w,_=typeof document!=w,v=()=>y&&typeof window.requestAnimationFrame!=w,m=(e,t)=>{let r=p.get(e);return[()=>!s(t)&&e.get(t)||g,n=>{if(!s(t)){let i=e.get(t);t in E||(E[t]=i),r[5](t,l(i,n),i||g)}},r[6],()=>!s(t)&&t in E?E[t]:!s(t)&&e.get(t)||g]},C=!0,[b,S]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],R={initFocus:e=>(_&&document.addEventListener("visibilitychange",e),b("focus",e),()=>{_&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{C=!0,e()},r=()=>{C=!1};return b("online",t),b("offline",r),()=>{S("online",t),S("offline",r)}}},T=!n.useId,O=!y||"Deno"in window,k=e=>v()?window.requestAnimationFrame(e):setTimeout(e,1),L=O?n.useEffect:n.useLayoutEffect,x="undefined"!=typeof navigator&&navigator.connection,V=!O&&x&&(["slow-2g","2g"].includes(x.effectiveType)||x.saveData),A=e=>{if(u(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?h(e):"",t]},D=0,N=()=>++D;var j={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function z(...e){let[t,r,n,i]=e,a=l({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),f=a.populateCache,d=a.rollbackOnError,h=a.optimisticData,g=e=>"function"==typeof d?d(e):!1!==d,E=a.throwOnError;if(u(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(w))}return w(r);async function w(r){let i;let[l]=A(r);if(!l)return;let[d,w]=m(t,l),[y,_,v,C]=p.get(t),b=()=>{let e=y[l];return(u(a.revalidate)?a.revalidate(d().data,r):!1!==a.revalidate)&&(delete v[l],delete C[l],e&&e[0])?e[0](2).then(()=>d().data):d().data};if(e.length<3)return b();let S=n,R=N();_[l]=[R,0];let T=!s(h),O=d(),k=O.data,L=O._c,x=s(L)?k:L;if(T&&w({data:h=u(h)?h(x,k):h,_c:x}),u(S))try{S=S(x)}catch(e){i=e}if(S&&c(S)){if(S=await S.catch(e=>{i=e}),R!==_[l][0]){if(i)throw i;return S}i&&T&&g(i)&&(f=!0,w({data:x,_c:o}))}if(f&&!i&&(u(f)?w({data:f(S,x),error:o,_c:o}):w({data:S,error:o,_c:o})),_[l][1]=N(),Promise.resolve(b()).then(()=>{w({_c:o})}),i){if(E)throw i;return}return S}}let I=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},M=(e,t)=>{if(!p.has(e)){let r=l(R,t),n={},a=z.bind(o,e),s=i,u={},c=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},d=()=>{if(!p.has(e)&&(p.set(e,[n,{},{},{},a,f,c]),!O)){let t=r.initFocus(setTimeout.bind(o,I.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,I.bind(o,n,1)));s=()=>{t&&t(),i&&i(),p.delete(e)}}};return d(),[e,a,d,s]}return[e,p.get(e)[4]]},[$,U]=M(new Map),P=l({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,r,n,i)=>{let o=r.errorRetryCount,a=i.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;(s(o)||!(a>o))&&setTimeout(n,u,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:V?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:V?5e3:3e3,compare:(e,t)=>h(e)==h(t),isPaused:()=>!1,cache:$,mutate:U,fallback:{}},{isOnline:()=>C,isVisible:()=>{let e=_&&document.visibilityState;return s(e)||"hidden"!==e}}),F=(e,t)=>{let r=l(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=l(i,a))}return r},W=(0,n.createContext)({}),J=e=>{let{value:t}=e,r=(0,n.useContext)(W),i=u(t),a=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),s=(0,n.useMemo)(()=>i?a:F(r,a),[i,r,a]),c=a&&a.provider,f=(0,n.useRef)(o);c&&!f.current&&(f.current=M(c(s.cache||$),a));let d=f.current;return d&&(s.cache=d[0],s.mutate=d[1]),L(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,n.createElement)(W.Provider,l(e,{value:s}))},q="$inf$",Y=y&&window.__SWR_DEVTOOLS_USE__,Z=Y?window.__SWR_DEVTOOLS_USE__:[],B=e=>u(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],G=()=>l(P,(0,n.useContext)(W)),H=Z.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=A(t),[,,,i]=p.get($);if(n.startsWith(q))return r(...e);let o=i[n];return s(o)?r(...e):(delete i[n],o)});return e(t,i,n)}),K=e=>function(...t){let r=G(),[n,i,o]=B(t),a=F(r,o),s=e,{use:u}=a,l=(u||[]).concat(H);for(let e=l.length;e--;)s=l[e](s);return s(n,i||a.fetcher||null,a)},Q=(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())}},X=(e,t)=>(...r)=>{let[n,i,o]=B(r),a=(o.use||[]).concat(t);return e(n,i,{...o,use:a})};Y&&(window.__SWR_DEVTOOLS_REACT__=n)},85118:function(e,t,r){r.d(t,{ZP:function(){return u},kY:function(){return o.kY}});var n=r(2265),i=r(3486),o=r(62827);let a=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),s={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:c,fallbackData:f,revalidateOnMount:d,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:E,keepPreviousData:w}=r,[y,_,v,m]=o.DY.get(u),[C,b]=(0,o.qC)(e),S=(0,n.useRef)(!1),R=(0,n.useRef)(!1),T=(0,n.useRef)(C),O=(0,n.useRef)(t),k=(0,n.useRef)(r),L=()=>k.current,x=()=>L().isVisible()&&L().isOnline(),[V,A,D,N]=(0,o.JN)(u,C),j=(0,n.useRef)({}).current,z=(0,o.o8)(f)?r.fallback[C]:f,I=(e,t)=>{for(let r in j)if("data"===r){if(!l(e[r],t[r])&&(!(0,o.o8)(e[r])||!l(Y,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},M=(0,n.useMemo)(()=>{let e=!!C&&!!t&&((0,o.o8)(d)?!L().isPaused()&&!c&&(!!(0,o.o8)(h)||h):d),r=t=>{let r=(0,o.PM)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=V(),i=N(),a=r(n),s=n===i?a:r(i),u=a;return[()=>{let e=r(V());return I(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]},[u,C]),$=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>D(C,(t,r)=>{I(r,t)||e()}),[u,C]),M[0],M[1]),U=!S.current,P=y[C]&&y[C].length>0,F=$.data,W=(0,o.o8)(F)?z:F,J=$.error,q=(0,n.useRef)(W),Y=w?(0,o.o8)(F)?q.current:F:W,Z=(!P||!!(0,o.o8)(J))&&(U&&!(0,o.o8)(d)?d:!L().isPaused()&&(c?!(0,o.o8)(W)&&h:(0,o.o8)(W)||h)),B=!!(C&&t&&U&&Z),G=(0,o.o8)($.isValidating)?B:$.isValidating,H=(0,o.o8)($.isLoading)?B:$.isLoading,K=(0,n.useCallback)(async e=>{let t,n;let i=O.current;if(!C||!i||R.current||L().isPaused())return!1;let a=!0,s=e||{},u=!v[C]||!s.dedupe,c=()=>o.w6?!R.current&&C===T.current&&S.current:C===T.current,f={isValidating:!1,isLoading:!1},d=()=>{A(f)},h=()=>{let e=v[C];e&&e[1]===n&&delete v[C]},p={isValidating:!0};(0,o.o8)(V().data)&&(p.isLoading=!0);try{if(u&&(A(p),r.loadingTimeout&&(0,o.o8)(V().data)&&setTimeout(()=>{a&&c()&&L().onLoadingSlow(C,r)},r.loadingTimeout),v[C]=[i(b),(0,o.u3)()]),[t,n]=v[C],t=await t,u&&setTimeout(h,r.dedupingInterval),!v[C]||v[C][1]!==n)return u&&c()&&L().onDiscarded(C),!1;f.error=o.i_;let e=_[C];if(!(0,o.o8)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),u&&c()&&L().onDiscarded(C),!1;let s=V().data;f.data=l(s,t)?s:t,u&&c()&&L().onSuccess(t,C,r)}catch(r){h();let e=L(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,u&&c()&&(e.onError(r,C,e),(!0===t||(0,o.mf)(t)&&t(r))&&(!L().revalidateOnFocus||!L().revalidateOnReconnect||x())&&e.onErrorRetry(r,C,e,e=>{let t=y[C];t&&t[0]&&t[0](o.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,d(),!0},[C,u]),Q=(0,n.useCallback)((...e)=>(0,o.BN)(u,T.current,...e),[]);if((0,o.LI)(()=>{O.current=t,k.current=r,(0,o.o8)(F)||(q.current=F)}),(0,o.LI)(()=>{if(!C)return;let e=K.bind(o.i_,s),t=0,r=(0,o.ko)(C,y,(r,n={})=>{if(r==o.sj.FOCUS_EVENT){let r=Date.now();L().revalidateOnFocus&&r>t&&x()&&(t=r+L().focusThrottleInterval,e())}else if(r==o.sj.RECONNECT_EVENT)L().revalidateOnReconnect&&x()&&e();else if(r==o.sj.MUTATE_EVENT)return K();else if(r==o.sj.ERROR_REVALIDATE_EVENT)return K(n)});return R.current=!1,T.current=C,S.current=!0,A({_k:b}),Z&&((0,o.o8)(W)||o.W6?e():(0,o.kw)(e)),()=>{R.current=!0,r()}},[C]),(0,o.LI)(()=>{let e;function t(){let t=(0,o.mf)(p)?p(V().data):p;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!V().error&&(g||L().isVisible())&&(E||L().isOnline())?K(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,g,E,C]),(0,n.useDebugValue)(Y),c&&(0,o.o8)(W)&&C){if(!o.w6&&o.W6)throw Error("Fallback data is required when using suspense in SSR.");O.current=t,k.current=r,R.current=!1;let e=m[C];if((0,o.o8)(e)||a(Q(e)),(0,o.o8)(J)){let e=K(s);(0,o.o8)(Y)||(e.status="fulfilled",e.value=!0),a(e)}else throw J}return{mutate:Q,get data(){return j.data=!0,Y},get error(){return j.error=!0,J},get isValidating(){return j.isValidating=!0,G},get isLoading(){return j.isLoading=!0,H}}})}}]);