// Debug logging - stripped in production by Vite's minifier (dead code elimination) // This constant is replaced at build time declare const __DEV__: boolean; export const isDev = typeof __DEV__ !== "undefined" ? __DEV__ : false; export const debugLog = (...args: unknown[]) => { if (isDev && typeof console !== "undefined") { console.log("[B3 WVS]", ...args); } }; export const safeParseJson = (value: string | undefined) => { if (!value) return {}; try { return JSON.parse(value); } catch { return {}; } };