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:`10.0.294`},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:m1-web":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`ea36315a-b3c1-498c-88a5-75557ccb021d`,e._sentryDebugIdIdentifier=`sentry-dbid-ea36315a-b3c1-498c-88a5-75557ccb021d`)}catch{}})();import{o as e}from"./rolldown-runtime-8uEnS_M4.js";import{F as t}from"./apollo-CaoVZJxQ.js";import{t as n}from"./useLocalStorage-DmmWLiJI.js";var r=e(t()),i=[`system`,`light`,`dark`],a=r.createContext({mode:`system`,update:()=>{},isProduction:!0,isOverridden:!1}),o=a.Provider,s=()=>{let e=typeof window<`u`&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`,{mode:t,update:o,isOverridden:s,isProduction:c}=r.useContext(a),[l,u]=n(`theme`,t),[d,f]=r.useState(l===`system`?e:l),p=s?t===`system`?e:t:d;return r.useEffect(()=>{typeof document>`u`||s||document.documentElement.classList.toggle(`dark`,d===`dark`)},[d,s]),r.useEffect(()=>{let e=e=>{f(e.matches?`dark`:`light`)};return typeof window<`u`&&l===`system`&&window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,e),()=>{typeof window<`u`&&l===`system`&&window.matchMedia(`(prefers-color-scheme: dark)`).removeEventListener(`change`,e)}},[l]),{activeThemeMode:p,browserThemePreference:e,themeMode:s?t:l,setThemeMode:t=>{if(!(e=>typeof e==`string`&&i.includes(e))(t))throw Error(`Value must be one of "system" | "light" | "dark", received ${t}.`);if(s){c||console.warn(`[liquid-react] setThemeMode("${t}") was ignored: this subtree is pinned by <ThemeProvider themeOverride>. Remove the override to make the theme settable here.`);return}f(t===`system`?e:t),u(t),o(t)}}},c=()=>{let{isProduction:e}=r.useContext(a);return e};export{s as a,i,a as n,o as r,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.