PageSourceSearch

https://cdn.vialibri.net/static/assets/useLocalStorage-CLkwt2cY.js

js vialibri.net collected 2026-09-24 09:35:41 UTC 1,053 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4bf8d160-489f-4f61-94e5-16421feb8c37",e._sentryDebugIdIdentifier="sentry-dbid-4bf8d160-489f-4f61-94e5-16421feb8c37")}catch(e){}}();import{a as e}from"./rolldown-runtime-BBzOAo5_.js";import{t}from"./react-DuV36FPs.js";import{ft as n}from"./index-CRc22cjs.js";var r=e(t());function o(e,t,o=!1){const[i,a]=(0,r.useState)((()=>{try{return s(e,t,o)}catch(n){return console.log(n),t}}));return[i,(0,r.useCallback)((r=>{a((i=>{let a=null;try{const u=s(e,t,o);return a=r instanceof Function?r(u):r,n(a,i)&&(a=i),n(a,u)||f(o).setItem(e,JSON.stringify(a)),a}catch(u){return console.log(u),i}}))}),[t,e,o])]}function s(e,t,n){const r=f(n).getItem(e);return r?JSON.parse(r):t}function f(e=!1){return e?window.sessionStorage:window.localStorage}export{o as t};
2//# sourceMappingURL=useLocalStorage-CLkwt2cY.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.