1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86194],{67357:(e,t,r)=>{r.d(t,{BE:()=>X,Es:()=>L,Ht:()=>G,PP:()=>M,Tk:()=>q,Tn:()=>o,X3:()=>O,ZH:()=>a,aw:()=>z,b0:()=>l,bZ:()=>E,bu:()=>D,dO:()=>R,iX:()=>B,lK:()=>C,lg:()=>A,mF:()=>F,mf:()=>V,q9:()=>Z,qm:()=>K,qv:()=>u,r9:()=>v,rL:()=>s,sb:()=>x});var n=r(2193);let i=()=>{},a=i(),u=Object,l=e=>e===a,o=e=>"function"==typeof e,s=(e,t)=>({...e,...t}),c=new WeakMap,d=0,f=e=>{let t,r,n=typeof e,i=e&&e.constructor,a=i==Date;if(u(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=c.get(e))return t;if(t=++d+"~",c.set(e,t),i==Array){for(r=0,t="@";r<e.length;r++)t+=f(e[r])+",";c.set(e,t)}if(i==u){t="#";let n=u.keys(e).sort();for(;!l(r=n.pop());)l(e[r])||(t+=r+":"+f(e[r])+",");c.set(e,t)}}return t},E=new WeakMap,b={},g={},w="undefined",_=typeof window!=w,h=typeof document!=w,v=(e,t)=>{let r=E.get(e);return[()=>!l(t)&&e.get(t)||b,n=>{if(!l(t)){let i=e.get(t);t in g||(g[t]=i),r[5](t,s(i,n),i||b)}},r[6],()=>!l(t)&&t in g?g[t]:!l(t)&&e.get(t)||b]},p=!0,[T,m]=_&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i,i],y={initFocus:e=>(h&&document.addEventListener("visibilitychange",e),T("focus",e),()=>{h&&document.removeEventListener("visibilitychange",e),m("focus",e)}),initReconnect:e=>{let t=()=>{p=!0,e()},r=()=>{p=!1};return T("online",t),T("offline",r),()=>{m("online",t),m("offline",r)}}},R=!n.useId,O=!_||"Deno"in window,V=e=>_&&typeof window.requestAnimationFrame!=w?window.requestAnimationFrame(e):setTimeout(e,1),L=O?n.useEffect:n.useLayoutEffect,k="u">typeof navigator&&navigator.connection,S=!O&&k&&(["slow-2g","2g"].includes(k.effectiveType)||k.saveData),C=e=>{if(o(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f(e):"",t]},N=0,A=()=>++N;var D={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function F(...e){let[t,r,n,i]=e,u=s({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),c=u.populateCache,d=u.rollbackOnError,f=u.optimisticData,b=u.throwOnError;if(o(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(g))}return g(r);async function g(r){let i,[s]=C(r);if(!s)return;let[g,w]=v(t,s),[_,h,p,T]=E.get(t),m=()=>{let e=_[s];return(o(u.revalidate)?u.revalidate(g().data,r):!1!==u.revalidate)&&(delete p[s],delete T[s],e&&e[0])?e[0](2).then(()=>g().data):g().data};if(e.length<3)return m();let y=n,R=A();h[s]=[R,0];let O=!l(f),V=g(),L=V.data,k=V._c,S=l(k)?L:k;if(O&&w({data:f=o(f)?f(S,L):f,_c:S}),o(y))try{y=y(S)}catch(e){i=e}if(y&&o(y.then)){let e;if(y=await y.catch(e=>{i=e}),R!==h[s][0]){if(i)throw i;return y}i&&O&&(e=i,"function"==typeof d?d(e):!1!==d)&&(c=!0,w({data:S,_c:a}))}if(c&&!i&&(o(c)?w({data:c(y,S),error:a,_c:a}):w({data:y,error:a,_c:a})),h[s][1]=A(),Promise.resolve(m()).then(()=>{w({_c:a})}),i){if(b)throw i;return}return y}}let I=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},P=(e,t)=>{if(!E.has(e)){let r=s(y,t),n={},u=F.bind(a,e),l=i,o={},c=(e,t)=>{let r=o[e]||[];return o[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=o[t];if(i)for(let e of i)e(r,n)},f=()=>{if(!E.has(e)&&(E.set(e,[n,{},{},{},u,d,c]),!O)){let t=r.initFocus(setTimeout.bind(a,I.bind(a,n,0))),i=r.initReconnect(setTimeout.bind(a,I.bind(a,n,1)));l=()=>{t&&t(),i&&i(),E.delete(e)}}};return f(),[e,u,f,l]}return[e,E.get(e)[4]]},[M,q]=P(new Map),x=s({onLoadingSlow:i,onSuccess:i,onError:i,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,u=i.retryCount,o=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(l(a)||!(u>a))&&setTimeout(n,o,i)},onDiscarded:i,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:S?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:S?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:M,mutate:q,fallback:{}},{isOnline:()=>p,isVisible:()=>{let e=h&&document.visibilityState;
1return l(e)||"hidden"!==e}}),U=(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},W=(0,n.createContext)({}),X=e=>{let{value:t}=e,r=(0,n.useContext)(W),i=o(t),u=(0,n.useMemo)(()=>i?t(r):t,[i,r,t]),l=(0,n.useMemo)(()=>i?u:U(r,u),[i,r,u]),c=u&&u.provider,d=(0,n.useRef)(a);c&&!d.current&&(d.current=P(c(l.cache||M),u));let f=d.current;return f&&(l.cache=f[0],l.mutate=f[1]),L(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,n.createElement)(W.Provider,s(e,{value:l}))},Z="$inf$",H=_&&window.__SWR_DEVTOOLS_USE__,$=H?window.__SWR_DEVTOOLS_USE__:[],j=e=>o(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],B=()=>s(x,(0,n.useContext)(W)),J=$.concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=C(t),[,,,i]=E.get(M);if(n.startsWith(Z))return r(...e);let a=i[n];return l(a)?r(...e):(delete i[n],a)});return e(t,i,n)}),K=e=>function(...t){let r=B(),[n,i,a]=j(t),u=U(r,a),l=e,{use:o}=u,s=(o||[]).concat(J);for(let e=s.length;e--;)l=s[e](l);return l(n,i||u.fetcher||null,u)},z=(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())}},G=(e,t)=>(...r)=>{let[n,i,a]=j(r),u=(a.use||[]).concat(t);return e(n,i,{...a,use:u})};H&&(window.__SWR_DEVTOOLS_REACT__=n)},86194:(e,t,r)=>{r.d(t,{Ay:()=>s,BE:()=>o,Tk:()=>a.Tk,iX:()=>a.iX});var n=r(2193),i=r(48130),a=r(67357);let u=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}),l={dedupe:!0},o=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),s=(0,a.qm)((e,t,r)=>{let{cache:o,compare:s,suspense:c,fallbackData:d,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:b,refreshWhenHidden:g,refreshWhenOffline:w,keepPreviousData:_}=r,[h,v,p,T]=a.bZ.get(o),[m,y]=(0,a.lK)(e),R=(0,n.useRef)(!1),O=(0,n.useRef)(!1),V=(0,n.useRef)(m),L=(0,n.useRef)(t),k=(0,n.useRef)(r),S=()=>k.current.isVisible()&&k.current.isOnline(),[C,N,A,D]=(0,a.r9)(o,m),F=(0,n.useRef)({}).current,I=(0,a.b0)(d)?r.fallback[m]:d,P=(e,t)=>{for(let r in F)if("data"===r){if(!s(e[r],t[r])&&(!(0,a.b0)(e[r])||!s($,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},M=(0,n.useMemo)(()=>{let e=!!m&&!!t&&((0,a.b0)(f)?!k.current.isPaused()&&!c&&(!!(0,a.b0)(E)||E):f),r=t=>{let r=(0,a.rL)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=C(),i=D(),u=r(n),l=n===i?u:r(i),o=u;return[()=>{let e=r(C());return P(e,o)?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>l]},[o,m]),q=(0,i.useSyncExternalStore)((0,n.useCallback)(e=>A(m,(t,r)=>{P(r,t)||e()}),[o,m]),M[0],M[1]),x=!R.current,U=h[m]&&h[m].length>0,W=q.data,X=(0,a.b0)(W)?I:W,Z=q.error,H=(0,n.useRef)(X),$=_?(0,a.b0)(W)?H.current:W:X,j=(!U||!!(0,a.b0)(Z))&&(x&&!(0,a.b0)(f)?f:!k.current.isPaused()&&(c?!(0,a.b0)(X)&&E:(0,a.b0)(X)||E)),B=!!(m&&t&&x&&j),J=(0,a.b0)(q.isValidating)?B:q.isValidating,K=(0,a.b0)(q.isLoading)?B:q.isLoading,z=(0,n.useCallback)(async e=>{let t,n,i=L.current;if(!m||!i||O.current||k.current.isPaused())return!1;let u=!0,l=e||{},o=!p[m]||!l.dedupe,c=()=>a.dO?!O.current&&m===V.current&&R.current:m===V.current,d={isValidating:!1,isLoading:!1},f=()=>{N(d)},E=()=>{let e=p[m];e&&e[1]===n&&delete p[m]},b={isValidating:!0};(0,a.b0)(C().data)&&(b.isLoading=!0);try{if(o&&(N(b),r.loadingTimeout&&(0,a.b0)(C().data)&&setTimeout(()=>{u&&c()&&k.current.onLoadingSlow(m,r)},r.loadingTimeout),p[m]=[i(y),(0,a.lg)()]),[t,n]=p[m],t=await t,o&&setTimeout(E,r.dedupingInterval),!p[m]||p[m][1]!==n)return o&&c()&&k.current.onDiscarded(m),!1;d.error=a.ZH;let e=v[m];if(!(0,a.b0)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),o&&c()&&k.current.onDiscarded(m),!1;let l=C().data;d.data=s(l,t)?l:t,o&&c()&&k.current.onSuccess(t,m,r)}catch(r){E();let e=k.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=r,o&&c()&&(e.onError(r,m,e),(!0===t||(0,a.Tn)(t)&&t(r))&&(!k.current.revalidateOnFocus||!k.current.revalidateOnReconnect||S())&&e.onErrorRetry(r,m,e,e=>{let t=h[m];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return u=!1,f(),!0},[m,o]),G=(0,n.useCallback)((...e)=>(0,a.mF)(o,V.current,...e),[]);if((0,a.Es)(()=>{L.current=t,k.current=r,(0,a.b0)(W)||(H.current=W)}),(0,a.Es)(()=>
1{if(!m)return;let e=z.bind(a.ZH,l),t=0,r=(0,a.aw)(m,h,(r,n={})=>{if(r==a.bu.FOCUS_EVENT){let r=Date.now();k.current.revalidateOnFocus&&r>t&&S()&&(t=r+k.current.focusThrottleInterval,e())}else if(r==a.bu.RECONNECT_EVENT)k.current.revalidateOnReconnect&&S()&&e();else if(r==a.bu.MUTATE_EVENT)return z();else if(r==a.bu.ERROR_REVALIDATE_EVENT)return z(n)});return O.current=!1,V.current=m,R.current=!0,N({_k:y}),j&&((0,a.b0)(X)||a.X3?e():(0,a.mf)(e)),()=>{O.current=!0,r()}},[m]),(0,a.Es)(()=>{let e;function t(){let t=(0,a.Tn)(b)?b(C().data):b;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!C().error&&(g||k.current.isVisible())&&(w||k.current.isOnline())?z(l).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[b,g,w,m]),(0,n.useDebugValue)($),c&&(0,a.b0)(X)&&m){if(!a.dO&&a.X3)throw Error("Fallback data is required when using suspense in SSR.");L.current=t,k.current=r,O.current=!1;let e=T[m];if((0,a.b0)(e)||u(G(e)),(0,a.b0)(Z)){let e=z(l);(0,a.b0)($)||(e.status="fulfilled",e.value=!0),u(e)}else throw Z}return{mutate:G,get data(){return F.data=!0,$},get error(){return F.error=!0,Z},get isValidating(){return F.isValidating=!0,J},get isLoading(){return F.isLoading=!0,K}}})}}]);
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.