PageSourceSearch

https://swetrix.com/assets/ThemeProvider-lRYGWbAo.js

js swetrix.com collected 2026-09-24 18:59:26 UTC 548 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{H as n,t as r}from"./jsx-runtime-BNAwhg6S.js";import{n as i}from"./cookie-HKINz00f.js";var a=e(t(),1),o=r(),s=(0,a.createContext)(void 0),c=({children:e,initialTheme:t})=>{let[r,c]=(0,a.useState)(t),l=(0,a.useCallback)(e=>{c(e),i(n,e,7776e3)},[]);return(0,o.jsx)(s.Provider,{value:{theme:r,setTheme:l},children:e})},l=()=>{let e=(0,a.useContext)(s);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e};export{l as n,c as t};

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.