PageSourceSearch

https://dalkdgi-aimao.hf.space/assets/js/useTheme-B0TxXkB2.js

js dalkdgi-aimao.hf.space collected 2026-10-03 16:47:13 UTC 709 bytes, 1 lines download raw bytes

1import{n as l}from"./rolldown-runtime-iJLb3ux7.js";import{kt as n,vt as u,z as c}from"./ui-vendor-DIP97-f3.js";function r(e){a.value=e,document.documentElement.classList.toggle("dark",e)}function s(e){return e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches:e==="dark"}function f(){function e(i){t.value=i}function o(){t.value=a.value?"light":"dark"}return{mode:t,isDark:a,setMode:e,toggleTheme:o}}var m,t,a,v=l((()=>{c(),m="hermes_theme",t=n(localStorage.getItem(m)||"system"),a=n(!1),r(s(t.value)),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{t.value==="system"&&r(s("system"))}),u(t,e=>{localStorage.setItem(m,e),r(s(e))})}));export{f as n,v 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.