PageSourceSearch

https://trystan.net/assets/useImageFallback-CQeWCUc2.js

js trystan.net collected 2026-09-26 06:21:46 UTC 1,527 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3fb85819`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`56129d38-9632-4861-b055-de5b98058652`,e._sentryDebugIdIdentifier=`sentry-dbid-56129d38-9632-4861-b055-de5b98058652`)}catch{}})();import{s as e,t}from"./react-BxJ5vIog.js";import{t as n}from"./src-jTF5SSYo.js";import{t as r}from"./compiler-runtime-BQBjb8-F.js";import{S as i}from"./useFetch-BoJLT2pS.js";import{t as a}from"./image-CILLplR7.js";var o=r(),s=e(t(),1);function c(e,t){let r=(0,o.c)(10),c;r[0]!==t||r[1]!==e?(c=a(e,t),r[0]=t,r[1]=e,r[2]=c):c=r[2];let[l,u]=(0,s.useState)(c),[d,f]=(0,s.useState)(i.IDLE),[p,m]=(0,s.useState)(e),[h,g]=(0,s.useState)(t);(e!==p||t!==h)&&(m(e),g(t),e&&u(a(e,t)));let _=(0,s.useRef)(!1),v,y;r[3]!==e||r[4]!==l?(v=()=>{let t=function(){f(i.SUCCESS)},r=function(){try{if(f(i.ERROR),_.current)return;_.current=!0;let t=e.split(`/`).pop();t&&u(`${n.NEXT_PUBLIC_FILE_URL}/file/${t}`)}catch{}};if(!l)return;let a=new Image;try{a.src=l}catch{r();return}return a.addEventListener(`error`,r),a.addEventListener(`load`,t),()=>{_.current=!1,a&&=(a.removeEventListener(`error`,r),a.removeEventListener(`load`,t),null)}},y=[e,l],r[3]=e,r[4]=l,r[5]=v,r[6]=y):(v=r[5],y=r[6]),(0,s.useEffect)(v,y);let b;return r[7]!==l||r[8]!==d?(b={src:l,status:d},r[7]=l,r[8]=d,r[9]=b):b=r[9],b}export{c as t};
2//# sourceMappingURL=useImageFallback-CQeWCUc2.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.