PageSourceSearch

https://www.thinkchina.sg/assets/entry.client-S3KiKbek.js

js thinkchina.sg collected 2026-10-02 04:03:39 UTC 4,140 bytes, 2 lines download raw bytes

1import{s as h,u as w,F as y,R as p,d as g,c as M,g as v,a as D,b as S,j as m}from"./errorBoundaries-CaZR3_6M.js";import{m as E,r as o,R as _,i as R,c as P,a as b,h as C,d as F}from"./components-CVBURg7C.js";import{r as L,c as H}from"./client-BXVN592o.js";var I=L();function k({state:t,routes:i,getRouteInfo:c,location:s,basename:n,isSpaMode:a}){let r={...t,loaderData:{...t.loaderData}},u=E(i,s,n);if(u)for(let x of u){let f=x.route.id,d=c(f);h(f,d.clientLoader,d.hasLoader,a)&&(d.hasHydrateFallback||!d.hasLoader)?delete r.loaderData[f]:d.hasLoader||(r.loaderData[f]=null)}return r}function z(t){return o.createElement(_,{flushSync:I.flushSync,...t})}let e=null,l=null;function O(){if(!e&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const t=document.querySelector("script[rr-importmap]");if(t?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(t.textContent).integrity}catch(i){console.error("Failed to parse import map",i)}}e={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function T({getContext:t,instrumentations:i}){if(O(),!e)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let c=e;if(!e.stateDecodingPromise){let r=e.context.stream;R(r,"No stream found for single fetch decoding"),e.context.stream=void 0,e.stateDecodingPromise=g(r,window).then(u=>{e.context.state=u.value,c.stateDecodingPromise.value=!0}).catch(u=>{c.stateDecodingPromise.error=u})}if(e.stateDecodingPromise.error)throw e.stateDecodingPromise.error;if(!e.stateDecodingPromise.value)throw e.stateDecodingPromise;let s=M(e.manifest.routes,e.routeModules,e.context.state,e.context.ssr,e.context.isSpaMode),n;if(e.context.isSpaMode){let{loaderData:r}=e.context.state;e.manifest.routes.root?.hasLoader&&r&&"root"in r&&(n={loaderData:{root:r.root}})}else n=k({state:e.context.state,routes:s,getRouteInfo:r=>({clientLoader:e.routeModules[r]?.clientLoader,hasLoader:e.manifest.routes[r]?.hasLoader===!0,hasHydrateFallback:e.routeModules[r]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:e.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let a=P({routes:s,history:b(),basename:e.context.basename,getContext:t,hydrationData:n,mapRouteProperties:F,hydrationRouteProperties:C,instrumentations:i,dataStrategy:D(()=>a,e.manifest,e.routeModules,e.context.ssr),patchRoutesOnNavigation:v(()=>a,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode,e.context.basename)});return e.router=a,a.state.initialized&&(e.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=S,window.__reactRouterDataRouter=a,a}function j(t){l||(l=T({getContext:t.getContext,instrumentations:t.instrumentations}));let[i,c]=o.useState(void 0);o.useEffect(()=>{},[]),o.useEffect(()=>{},[i]);let[s,n]=o.useState(l.state.location);return o.useLayoutEffect(()=>{e&&e.router&&!e.routerInitialized&&(e.routerInitialized=!0,e.router.initialize())},[]),o.useLayoutEffect(()=>{if(e&&e.router)return e.router.subscribe(a=>{a.location!==s&&n(a.location)})},[s]),R(e,"ssrInfo unavailable for HydratedRouter"),w(l,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode),o.createElement(o.Fragment,null,o.createElement(y.Provider,{value:{manifest:e.manifest,routeModules:e.routeModules,future:e.context.future,criticalCss:i,ssr:e.context.ssr,isSpaMode:e.context.isSpaMode,routeDiscovery:e.context.routeDiscovery}},o.createElement(p,{location:s},o.createElement(z,{router:l,useTransitions:t.useTransitions,onError:t.onError}))),o.createElement(o.Fragment,null))}o.startTransition(()=>{H.hydrateRoot(document,m.jsx(o.StrictMode,{children:m.jsx(j,{})}),{onRecoverableError(t){console.error("[Hydration Recoverable Error]",t)}})});
2//# sourceMappingURL=entry.client-S3KiKbek.js.map

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.