1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[697,2227,4039],{8608:(e,r,s)=>{"use strict";s.d(r,{RouteProgressProvider:()=>c,c:()=>i});var t=s(14145),u=s(70341),n=s(99842);let o=(0,u.createContext)(null);function i(){let e=(0,u.useContext)(o);if(!e)throw Error("useRouteProgress must be used within a RouteProgressProvider");return e}function c(e){let{children:r}=e,s=(0,n.usePathname)(),[i,c]=(0,u.useState)({isActive:!1,progress:0,progressId:0}),a=(0,u.useRef)([]),l=(0,u.useRef)(0),p=(0,u.useCallback)(()=>{a.current.forEach(e=>clearTimeout(e)),a.current=[]},[]),g=(0,u.useCallback)(e=>{p();let r=++l.current;if((null==e?void 0:e.immediateComplete)===!0){c({isActive:!0,progress:100,progressId:r});let e=setTimeout(()=>{l.current===r&&c({isActive:!1,progress:0,progressId:0})},200);a.current.push(e);return}c({isActive:!0,progress:0,progressId:r});let s=setTimeout(()=>{if(l.current===r){c({isActive:!0,progress:70,progressId:r});let e=()=>{if(l.current!==r)return;c(e=>{if(e.progress>=90)return e;let r=Math.floor(3*Math.random())+1,s=Math.min(e.progress+r,90);return{...e,progress:s}});let s=setTimeout(e,100);a.current.push(s)},s=setTimeout(e,100);a.current.push(s)}},300);a.current.push(s)},[p]);return(0,u.useEffect)(()=>{if(i.isActive)if(p(),i.progressId===l.current){c(e=>({...e,progress:100}));let e=setTimeout(()=>{l.current===i.progressId&&c({isActive:!1,progress:0,progressId:0})},300);a.current.push(e)}else c({isActive:!1,progress:0,progressId:0})},[s,p]),(0,u.useEffect)(()=>()=>{p()},[p]),(0,t.jsx)(o.Provider,{value:{progress:i.progress,isActive:i.isActive,startProgress:g},children:r})}},18687:(e,r,s)=>{Promise.resolve().then(s.bind(s,57481))},57481:(e,r,s)=>{"use strict";s.r(r),s.d(r,{RouteProgressLink:()=>c});var t=s(14145),u=s(11425),n=s.n(u),o=s(99842),i=s(8608);function c(e){let{onClick:r,target:s,href:u,...c}=e,a=(0,o.usePathname)(),{startProgress:l}=(0,i.c)();return(0,t.jsx)(n(),{onClick:e=>{if("_blank"===s||e.ctrlKey||e.metaKey||e.shiftKey||1===e.button){null==r||r(e);return}if(null==r||r(e),e.defaultPrevented)return;let t=!1;try{("string"==typeof u?new URL(u,window.location.origin).pathname:(null==u?void 0:u.pathname)||"")===a&&(t=!0)}catch(e){}l({immediateComplete:t})},target:s,href:u,...c})}},99842:(e,r,s)=>{"use strict";var t=s(41334);s.o(t,"usePathname")&&s.d(r,{usePathname:function(){return t.usePathname}}),s.o(t,"useSearchParams")&&s.d(r,{useSearchParams:function(){return t.useSearchParams}})}},e=>{e.O(0,[1425,4483,3727,7358],()=>e(e.s=18687)),_N_E=e.O()}]);
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.