import{n as e}from"./rolldown-runtime-S-ySWqyJ.js";import{t}from"./db-D2Po16Ap.js";import{t as n}from"./DATA_DEFAULTS-BcOucxL3.js";var r=e({EMPTY_BUDGET_PLAN:()=>o,EMPTY_DEBT_PLAN:()=>i,EMPTY_MOVE_PLAN:()=>a,seedFromDefaults:()=>s}),i={debtTotal:0,withheldMonthly:0,startDate:``,notes:``},a={targetMonth:``,moveFundGoal:0,moveFundSaved:0,rentTargetRange:[0,0],notes:``},o={monthlyAvailableRub:0,essentialBudgetsRub:[]};async function s(){if(await t.settings.get(`singleton`))return!1;let e=n,r={userName:``,timezone:e.meta?.timezone??`Europe/Moscow`,wakeTimeTarget:`08:00`,sleepTimeTarget:`23:30`,waterTargetMl:0,waterQuickAddMl:250,notificationsEnabled:!1,voiceEnabled:!1,devNowOverride:null,automationDisabledEventIds:[`sleep:prep`]};return await t.settings.add({id:`singleton`,debt:i,move:a,app:r,guardrails:e.guardrails??{},budgetPlan:o}),!0}export{r as n,s as t};