1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5344],{5344:(e,t,r)=>{let n;r.d(t,{Ay:()=>z});var i=r(14232),u=r(38806);let o=new WeakMap,a={},l={},c=()=>{},s=c(),d=Object,f=e=>e===s,g=(e,t)=>({...e,...t}),p="undefined",y=typeof window!=p,E=typeof document!=p,w=(e,t)=>{let r=o.get(e);return[()=>e.get(t)||a,n=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),r[5](t,g(i,n),i||a)}},r[6],()=>!f(t)&&t in l?l[t]:e.get(t)||a]},h=new WeakMap,v=0,m=e=>{let t,r,n=typeof e,i=e&&e.constructor,u=i==Date;if(d(e)!==e||u||i==RegExp)t=u?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=h.get(e))return t;if(t=++v+"~",h.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=m(e[r])+",";h.set(e,t)}if(i==d){t="#";let n=d.keys(e).sort();for(;!f(r=n.pop());)f(e[r])||(t+=r+":"+m(e[r])+",");h.set(e,t)}}return t},_=!0,[S,b]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[c,c],T={initFocus:e=>(E&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{E&&document.removeEventListener("visibilitychange",e),b("focus",e)}),initReconnect:e=>{let t=()=>{_=!0,e()},r=()=>{_=!1};return S("online",t),S("offline",r),()=>{b("online",t),b("offline",r)}}},O=!i.useId,R=!y||"Deno"in window,V=R?i.useEffect:i.useLayoutEffect,k="undefined"!=typeof navigator&&navigator.connection,C=!R&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),L=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?m(e):"",t]},N=0,x=()=>++N;var D={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2};async function A(...e){let[t,r,n,i]=e,u=g({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),a=u.populateCache,l=u.rollbackOnError,c=u.optimisticData,d=!1!==u.revalidate,p=u.throwOnError;if("function"==typeof r){let e=[],n=t.keys();for(let i=n.next();!i.done;i=n.next()){let n=i.value;!n.startsWith("$inf$")&&r(t.get(n)._k)&&e.push(n)}return Promise.all(e.map(y))}return y(r);async function y(r){let i,[u]=L(r);if(!u)return;let[g,y]=w(t,u),[E,h,v]=o.get(t),m=E[u],_=()=>d&&(delete v[u],m&&m[0])?m[0](2).then(()=>g().data):g().data;if(e.length<3)return _();let S=n,b=x();h[u]=[b,0];let T=!f(c),O=g(),R=O.data,V=O._c,k=f(V)?R:V;if(T&&y({data:c="function"==typeof c?c(k):c,_c:k}),"function"==typeof S)try{S=S(k)}catch(e){i=e}if(S&&"function"==typeof S.then){let e;if(S=await S.catch(e=>{i=e}),b!==h[u][0]){if(i)throw i;return S}i&&T&&(e=i,"function"==typeof l?l(e):!1!==l)&&(a=!0,y({data:S=k,_c:s}))}a&&!i&&("function"==typeof a&&(S=a(S,k)),y({data:S,_c:s})),h[u][1]=x();let C=await _();if(y({_c:s}),i){if(p)throw i;return}return a?C:S}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},M=(e,t)=>{if(!o.has(e)){let r=g(T,t),n={},i=A.bind(s,e),u=c,a={},l=(e,t)=>{let r=a[e]||[];return a[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=a[t];if(i)for(let e=i.length;e--;)i[e](r,n)},f=()=>{if(!o.has(e)&&(o.set(e,[n,{},{},{},i,d,l]),!R)){let t=r.initFocus(setTimeout.bind(s,F.bind(s,n,0))),i=r.initReconnect(setTimeout.bind(s,F.bind(s,n,1)));u=()=>{t&&t(),i&&i(),o.delete(e)}}};return f(),[e,i,f,u]}return[e,o.get(e)[4]]},[I,P]=M(new Map),U=g({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(e,t,r,n,i)=>{let u=r.errorRetryCount,o=i.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*r.errorRetryInterval;(f(u)||!(o>u))&&setTimeout(n,a,i)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:(e,t)=>m(e)==m(t),isPaused:()=>!1,cache:I,mutate:P,fallback:{}},{isOnline:()=>_,isVisible:()=>{let e=E&&document.visibilityState;return f(e)||"hidden"!==e}}),W=(e,t)=>{let r=g(e,t);if(t){let{use:n,fallback:i}=e,{use:u,fallback:o}=t;n&&u&&(r.use=n.concat(u)),i&&o&&(r.fallback=g(i,o))}return r},j=(0,i.createContext)({}),q=y&&window.__SWR_DEVTOOLS_USE__,J=(q?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let n=L(t)[0],[,,,i]=o.get(I),u=i[n];return u?(delete i[n],u):r(...e)});return e(t,i,n)});q&&(window.__SWR_DEVTOOLS_REACT__=i);let $={dedupe:!0};d.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(j),n="function"==typeof t,u=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),o=(0,i.useMemo)(()=>n?u:W(r,u),[n,r,u]),a=u&&u.provider,[l]=(0,i.useState)(()=>a?M(a(o.cache||I),u):s);return l&&(o.cache=l[0],o.mutate=l[1]),V(()=>
1{if(l)return l[2]&&l[2](),l[3]},[]),(0,i.createElement)(j.Provider,g(e,{value:o}))},"defaultValue",{value:U});var z=(n=(e,t,r)=>{let{cache:n,compare:a,suspense:l,fallbackData:c,revalidateOnMount:d,revalidateIfStale:E,refreshInterval:h,refreshWhenHidden:v,refreshWhenOffline:m,keepPreviousData:_}=r,[S,b,T]=o.get(n),[k,C]=L(e),N=(0,i.useRef)(!1),F=(0,i.useRef)(!1),M=(0,i.useRef)(k),I=(0,i.useRef)(t),P=(0,i.useRef)(r),U=()=>P.current.isVisible()&&P.current.isOnline(),[W,j,q,J]=w(n,k),z=(0,i.useRef)({}).current,B=f(c)?r.fallback[k]:c,G=(e,t)=>{let r=!0;for(let n in z)"data"===n?!a(t[n],e[n])&&(f(e[n])&&a(t[n],er)||(r=!1)):t[n]!==e[n]&&(r=!1);return r},H=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!P.current.isPaused()&&!l&&(!!f(E)||E):d),r=t=>{let r=g(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=r(W()),i=r(J());return[()=>{let e=r(W());return G(e,n)?n:n=e},()=>i]},[n,k]),K=(0,u.useSyncExternalStore)((0,i.useCallback)(e=>q(k,(t,r)=>{G(r,t)||e()}),[n,k]),H[0],H[1]),Q=!N.current,X=S[k]&&S[k].length>0,Y=K.data,Z=f(Y)?B:Y,ee=K.error,et=(0,i.useRef)(Z),er=_?f(Y)?et.current:Y:Z,en=(!X||!!f(ee))&&(Q&&!f(d)?d:!P.current.isPaused()&&(l?!f(Z)&&E:f(Z)||E)),ei=!!(k&&t&&Q&&en),eu=f(K.isValidating)?ei:K.isValidating,eo=f(K.isLoading)?ei:K.isLoading,ea=(0,i.useCallback)(async e=>{let t,n,i=I.current;if(!k||!i||F.current||P.current.isPaused())return!1;let u=!0,o=e||{},l=!T[k]||!o.dedupe,c=()=>O?!F.current&&k===M.current&&N.current:k===M.current,d={isValidating:!1,isLoading:!1},g=()=>{j(d)},p=()=>{let e=T[k];e&&e[1]===n&&delete T[k]},y={isValidating:!0};f(W().data)&&(y.isLoading=!0);try{if(l&&(j(y),r.loadingTimeout&&f(W().data)&&setTimeout(()=>{u&&c()&&P.current.onLoadingSlow(k,r)},r.loadingTimeout),T[k]=[i(C),x()]),[t,n]=T[k],t=await t,l&&setTimeout(p,r.dedupingInterval),!T[k]||T[k][1]!==n)return l&&c()&&P.current.onDiscarded(k),!1;d.error=s;let e=b[k];if(!f(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),l&&c()&&P.current.onDiscarded(k),!1;let o=W().data;d.data=a(o,t)?o:t,l&&c()&&P.current.onSuccess(t,k,r)}catch(r){p();let e=P.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,l&&c())&&(e.onError(r,k,e),(!0===t||"function"==typeof t&&t(r))&&U()&&e.onErrorRetry(r,k,e,ea,{retryCount:(o.retryCount||0)+1,dedupe:!0}))}return u=!1,g(),!0},[k,n]),el=(0,i.useCallback)((...e)=>A(n,M.current,...e),[]);if(V(()=>{I.current=t,P.current=r,f(Y)||(et.current=Y)}),V(()=>{if(!k)return;let e=ea.bind(s,$),t=0,r=((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,S,r=>{if(r==D.FOCUS_EVENT){let r=Date.now();P.current.revalidateOnFocus&&r>t&&U()&&(t=r+P.current.focusThrottleInterval,e())}else if(r==D.RECONNECT_EVENT)P.current.revalidateOnReconnect&&U()&&e();else if(r==D.MUTATE_EVENT)return ea()});return F.current=!1,M.current=k,N.current=!0,j({_k:C}),en&&(f(Z)||R?e():(e=>y&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{F.current=!0,r()}},[k]),V(()=>{let e;function t(){let t="function"==typeof h?h(Z):h;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!W().error&&(v||P.current.isVisible())&&(m||P.current.isOnline())?ea($).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[h,v,m,k]),(0,i.useDebugValue)(er),l&&f(Z)&&k){if(!O&&R)throw Error("Fallback data is required when using suspense in SSR.");throw I.current=t,P.current=r,F.current=!1,f(ee)?ea($):ee}return{mutate:el,get data(){return z.data=!0,er},get error(){return z.error=!0,ee},get isValidating(){return z.isValidating=!0,eu},get isLoading(){return z.isLoading=!0,eo}}},function(...e){let t=g(U,(0,i.useContext)(j)),[r,u,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],a=W(t,o),l=n,{use:c}=a,s=(c||[]).concat(J);for(let e=s.length;e--;)l=s[e](l);return l(r,u||a.fetcher||null,a)})},29429:(e,t,r)=>{var n=r(14232),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=u({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return a(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),o(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s},38806:(e,t,r)=>{e.exports=r(29429)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.