import{s as fl,a as It,e as Pt,b as bl,u as yl,g as xl,d as kl,r as vt,f as pt,o as El,n as ht}from"../chunks/DHedsUi_.js";import{S as pl,i as _l,k as nt,l as Ze,m as Re,n as at,o as st,p as ot,d as c,x as ct,s as qe,u as s,A as rt,q as bt,a as Qe,b as r,r as Ee,z as Ae,c as o,e as p,g as h,v as Ie,f as Y,w as Ot,h as i,j as v,t as G,y as yt,F as wt,B as ft}from"../chunks/G8UKEBBn.js";import{I as Cl,g as wl,a as Tl,e as tt,u as Dl,o as Il}from"../chunks/C1tDbyYL.js";import{a as gt}from"../chunks/DjUyxgK6.js";import{C as gl}from"../chunks/DIz1JgvC.js";import{P as hl}from"../chunks/CLS07P5K.js";import{T as Nl,a as Vl}from"../chunks/7IRyKQzz.js";import{X as Tt}from"../chunks/C_l6I72z.js";import{C as Pl}from"../chunks/zQrtb5Kq.js";import{G as vl}from"../chunks/2JpTzebs.js";import{P as Ol}from"../chunks/C_K4PjIw.js";import{T as Ll}from"../chunks/7MWtQ_HQ.js";function Sl(l){let e;const t=l[2].default,n=bl(t,l,l[3],null);return{c(){n&&n.c()},l(a){n&&n.l(a)},m(a,u){n&&n.m(a,u),e=!0},p(a,u){n&&n.p&&(!e||u&8)&&yl(n,t,a,a[3],e?kl(t,a[3],u,null):xl(a[3]),null)},i(a){e||(Re(n,a),e=!0)},o(a){Ze(n,a),e=!1},d(a){n&&n.d(a)}}}function Bl(l){let e,t;const n=[{name:"layers"},l[1],{iconNode:l[0]}];let a={$$slots:{default:[Sl]},$$scope:{ctx:l}};for(let u=0;u{t(1,e=It(It({},e),Pt(f))),"$$scope"in f&&t(3,a=f.$$scope)},e=Pt(e),[u,e,n,a]}class ml extends pl{constructor(e){super(),_l(this,e,Fl,Bl,fl,{})}}function Lt(l,e,t){const n=l.slice();return n[85]=e[t],n[86]=e,n[87]=t,n}function St(l,e,t){const n=l.slice();return n[88]=e[t],n}function Bt(l,e,t){const n=l.slice();return n[91]=e[t],n}function Ft(l,e,t){const n=l.slice();return n[85]=e[t],n[94]=e,n[87]=t,n}function At(l,e,t){const n=l.slice();return n[88]=e[t],n}function Ut(l,e,t){const n=l.slice();return n[91]=e[t],n}function jt(l,e,t){const n=l.slice();return n[88]=e[t],n}function Mt(l,e,t){const n=l.slice();return n[91]=e[t],n}function zt(l,e,t){const n=l.slice();return n[106]=e[t],n}function Al(l,e,t){const n=l.slice();return n[103]=e[t],n}function Rt(l,e,t){const n=l.slice();return n[109]=e[t],n}function qt(l,e,t){const n=l.slice();return n[91]=e[t],n}function Ht(l){let e,t=l[91].name+"",n,a;return{c(){e=i("option"),n=G(t),this.h()},l(u){e=o(u,"OPTION",{});var f=p(e);n=Y(f,t),f.forEach(c),this.h()},h(){e.__value=a=l[91].id,Ae(e,e.__value)},m(u,f){Qe(u,e,f),r(e,n)},p(u,f){f[0]&4096&&t!==(t=u[91].name+"")&&qe(n,t),f[0]&4096&&a!==(a=u[91].id)&&(e.__value=a,Ae(e,e.__value))},d(u){u&&c(e)}}}function Yt(l){let e,t=l[109]+"",n;return{c(){e=i("option"),n=G(t),this.h()},l(a){e=o(a,"OPTION",{});var u=p(e);n=Y(u,t),u.forEach(c),this.h()},h(){e.__value=l[109],Ae(e,e.__value)},m(a,u){Qe(a,e,u),r(e,n)},p:ht,d(a){a&&c(e)}}}function Gt(l){let e,t=` Sans catégorie`;return{c(){e=i("span"),e.innerHTML=t,this.h()},l(n){e=o(n,"SPAN",{class:!0,"data-svelte-h":!0}),Ie(e)!=="svelte-3fc8tw"&&(e.innerHTML=t),this.h()},h(){s(e,"class","flex items-center gap-1.5 text-xs text-amber-600 dark:text-amber-400 ml-2")},m(n,a){Qe(n,e,a)},d(n){n&&c(e)}}}function Ul(l){let e,t,n,a='Date Description Catégorie Bien Montant ',u,f,m=[],y=new Map,K,M=tt(l[0]);const z=w=>w[106].id;for(let w=0;wl[58].call(F)),s(je,"class","block text-xs font-medium text-gray-500 dark:text-gray-400 mb-1"),Le.__value="",Ae(Le,Le.__value),s(A,"class","w-full px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),l[2].category_id===void 0&&pt(()=>l[59].call(A)),s(Se,"class","block text-xs font-medium text-gray-500 dark:text-gray-400 mb-1"),s(me,"type","number"),s(me,"step","0.01"),s(me,"min","0"),s(me,"placeholder","0.00"),s(me,"class","w-full px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),s(b,"class","block text-xs font-medium text-gray-500 dark:text-gray-400 mb-1"),s(Ye,"type","date"),s(Ye,"class","w-full px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),s(xe,"class","grid grid-cols-2 gap-4"),s(Me,"class","block text-xs font-medium text-gray-500 dark:text-gray-400 mb-1"),s(J,"placeholder","Ex: Facture plombier, loyer janvier..."),s(J,"class","w-full px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),s(z,"class","px-6 py-5 space-y-4"),s(ke,"class","px-4 py-2 text-sm text-gray-600 dark:text-gray-400"),s(Te,"class","flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg text-sm font-medium transition-colors"),s(T,"class","flex justify-end gap-3 px-6 py-4 border-t border-gray-100 dark:border-gray-800"),s(t,"class","bg-white dark:bg-gray-900 rounded-2xl w-full max-w-md shadow-xl border border-gray-100 dark:border-gray-800"),s(e,"class","fixed inset-0 bg-black/40 flex items-center justify-center z-50 p-4")},m(P,X){Qe(P,e,X),r(e,t),r(t,n),r(n,a),r(a,f),r(n,m),r(n,y),at(K,y,null),r(t,M),r(t,z),He&&He.m(z,null),r(z,w),r(z,k),r(k,j),r(j,H),r(k,pe),r(k,ee),r(ee,ne),r(z,Ce),r(z,Q),r(Q,B),r(Q,ve),r(Q,F),r(F,se);for(let x=0;x=0?"−":"+",te,Ye=l[44](Math.abs(l[27]))+"",Be,R,Me,Xe,Ve,J="Annuler",S,T,ke,be,Je=l[4].length+"",Te,De,Fe,Pe,$;y=new Tt({props:{size:18}});let C=l[20]&&$t(l),D=tt(l[4]),V=[];for(let q=0;qZe(V[q],1,1,()=>{V[q]=null});return de=new hl({props:{size:13}}),ke=new ml({props:{size:15}}),{c(){e=i("div"),t=i("div"),n=i("div"),a=i("div"),a.innerHTML=u,f=v(),m=i("button"),ot(y.$$.fragment),K=v(),M=i("div"),C&&C.c(),z=v(),w=i("div"),k=i("label"),k.textContent=j,H=v(),E=i("input"),pe=v();for(let q=0;q=0?"text-red-500":"text-green-600")),s(fe,"class","flex justify-between border-t border-gray-200 dark:border-gray-700 pt-1 mt-1"),s(B,"class","bg-gray-100 dark:bg-gray-800 rounded-lg px-4 py-3 text-xs space-y-1"),s(M,"class","px-6 py-4 overflow-y-auto flex-1 space-y-4"),s(Ve,"class","px-4 py-2 text-sm text-gray-600 dark:text-gray-400"),s(T,"class","flex items-center gap-2 px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-lg text-sm font-medium transition-colors"),s(Xe,"class","flex justify-end gap-3 px-6 py-4 border-t border-gray-100 dark:border-gray-800"),s(t,"class","bg-white dark:bg-gray-900 rounded-2xl w-full max-w-2xl shadow-xl border border-gray-100 dark:border-gray-800 max-h-[90vh] flex flex-col"),s(e,"class","fixed inset-0 bg-black/40 flex items-center justify-center z-50 p-4")},m(q,O){Qe(q,e,O),r(e,t),r(t,n),r(n,a),r(n,f),r(n,m),at(y,m,null),r(t,K),r(t,M),C&&C.m(M,null),r(M,z),r(M,w),r(w,k),r(w,H),r(w,E),Ae(E,l[24]),r(M,pe);for(let le=0;le=0?"−":"+")&&qe(te,ie),(!Fe||O[0]&134217728)&&Ye!==(Ye=q[44](Math.abs(q[27]))+"")&&qe(Be,Ye),(!Fe||O[0]&134217728&&R!==(R="font-semibold "+(q[27]>=0?"text-red-500":"text-green-600")))&&s(b,"class",R),(!Fe||O[0]&16)&&Je!==(Je=q[4].length+"")&&qe(Te,Je)},i(q){if(!Fe){Re(y.$$.fragment,q);for(let O=0;O2&&el(l),ie=tt(l[12]),te=[];for(let J=0;J2?b?(b.p(l,S),S[0]&16&&Re(b,1)):(b=el(l),b.c(),Re(b,1),b.m(t,null)):b&&(yt(),Ze(b,1,1,()=>{b=null}),bt()),S[0]&4096){ie=tt(l[12]);let T;for(T=0;T=0?"text-green-600":"text-red-500")),s(oe,"class","bg-white dark:bg-gray-900 rounded-xl p-4 border border-gray-100 dark:border-gray-800"),s(ee,"class","grid grid-cols-3 gap-3 mb-6"),te.__value="",Ae(te,te.__value),s(ie,"class","px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),l[21]===void 0&&pt(()=>l[50].call(ie)),Me.__value="",Ae(Me,Me.__value),Ve.__value="income",Ae(Ve,Ve.__value),S.__value="expense",Ae(S,S.__value),s(R,"class","px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),l[22]===void 0&&pt(()=>l[51].call(R)),s(be,"class","px-3 py-2 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500"),l[23]===void 0&&pt(()=>l[52].call(be)),s(b,"class","flex flex-wrap gap-3 mb-4 items-center"),s(e,"class","p-6 max-w-5xl mx-auto")},m(g,ae){Qe(g,e,ae),r(e,t),r(t,n),at(a,n,null),r(n,u),r(n,f),r(t,y),r(t,K),r(K,M),at(z,M,null),r(M,w),r(K,k),r(K,j),at(H,j,null),r(j,E),r(e,pe),r(e,ee),r(ee,ne),r(ne,de),at(Ce,de,null),r(de,Q),r(ne,B),r(ne,_e),r(_e,F),r(ee,se),r(ee,ge),r(ge,ue),at(W,ue,null),r(ue,je),r(ge,Z),r(ge,_),r(_,Le),r(ee,N),r(ee,oe),r(oe,xe),r(oe,Se),r(oe,we),r(we,me),r(e,he),r(e,b),r(b,ie),r(ie,te);for(let Ue=0;Ue=0?"text-green-600":"text-red-500")))&&s(we,"class",We),ae[0]&4096){le=tt(g[12]);let ce;for(ce=0;ce{ye[Ue]=null}),bt(),Pe=ye[Fe],Pe?Pe.p(g,ae):(Pe=ye[Fe]=I[Fe](g),Pe.c()),Re(Pe,1),Pe.m(e,null)),g[14]?re?(re.p(g,ae),ae[0]&16384&&Re(re,1)):(re=Xt(g),re.c(),Re(re,1),re.m(C.parentNode,C)):re&&(yt(),Ze(re,1,1,()=>{re=null}),bt()),g[16]?ze?(ze.p(g,ae),ae[0]&65536&&Re(ze,1)):(ze=Wt(g),ze.c(),Re(ze,1),ze.m(D.parentNode,D)):ze&&(yt(),Ze(ze,1,1,()=>{ze=null}),bt()),g[15]&&g[1]?Ge?(Ge.p(g,ae),ae[0]&32770&&Re(Ge,1)):(Ge=nl(g),Ge.c(),Re(Ge,1),Ge.m(V.parentNode,V)):Ge&&(yt(),Ze(Ge,1,1,()=>{Ge=null}),bt())},i(g){He||(Re(a.$$.fragment,g),Re(z.$$.fragment,g),Re(H.$$.fragment,g),Re(Ce.$$.fragment,g),Re(W.$$.fragment,g),Re(Pe),Re(re),Re(ze),Re(Ge),He=!0)},o(g){Ze(a.$$.fragment,g),Ze(z.$$.fragment,g),Ze(H.$$.fragment,g),Ze(Ce.$$.fragment,g),Ze(W.$$.fragment,g),Ze(Pe),Ze(re),Ze(ze),Ze(Ge),He=!1},d(g){g&&(c(e),c($),c(C),c(D),c(V)),nt(a),nt(z),nt(H),nt(Ce),nt(W),ct(L,g),ct(X,g),x&&x.d(),ye[Fe].d(),re&&re.d(g),ze&&ze.d(g),Ge&&Ge.d(g),q=!1,vt(O)}}}const kt="w-full px-2 py-1.5 rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-gray-900 dark:text-white text-xs focus:outline-none focus:ring-2 focus:ring-blue-500";function cl(l){return l.category_id?"hover:bg-gray-50 dark:hover:bg-gray-800/50":"bg-amber-50/50 dark:bg-amber-950/10 hover:bg-amber-50 dark:hover:bg-amber-950/20"}const dl=l=>!l.category_id;function Ql(l,e,t){let n,a,u,f,m,y,K,M,z,w,k,j,H=[],E=[],pe=[],ee=!0,ne=!1,de=!1,Ce=!1,Q=null,B=null,_e="",ve="",F="",se="",ge="",ue=String(new Date().getFullYear());const W=Array.from({length:5},(d,U)=>String(new Date().getFullYear()-U)),je=()=>({property_id:"",category_id:"",type:"expense",amount:"",date:new Date().toISOString().slice(0,10),description:""});let Z=je(),_=[];const A=()=>({type:"expense",property_id:"",category_id:"",amount:"",description:""});let Le=new Date().toISOString().slice(0,10),N=[{...A(),type:"income"},{...A(),type:"expense"}];El(async()=>{t(12,[E,pe]=await Promise.all([gt.properties.list(),gt.categories.list()]),E,t(47,pe)),t(12,E=E||[]),t(47,pe=pe||[]),await oe()});async function oe(){t(13,ee=!0);const d={};se&&(d.property_id=se),ge&&(d.type=ge),ue&&(d.year=ue),t(0,H=await gt.transactions.list(d)||[]),t(13,ee=!1)}function xe(){t(2,Z=je()),t(17,Q=null),t(14,ne=!0),t(18,_e="")}function Ne(d){t(2,Z={property_id:d.property_id,category_id:d.category_id||"",type:d.type,amount:d.amount,date:d.date,description:d.description||""}),t(17,Q=d.id),t(14,ne=!0),t(18,_e="")}function Se(){t(14,ne=!1),t(18,_e=""),t(17,Q=null)}async function we(){if(t(18,_e=""),!Z.property_id||!Z.amount||!Z.date){t(18,_e="Bien, montant et date sont requis.");return}try{const d={...Z,amount:parseFloat(Z.amount)};Q?await gt.transactions.update(Q,d):await gt.transactions.create(d),t(14,ne=!1),t(17,Q=null),await oe()}catch(d){t(18,_e=d.message)}}async function fe(d){confirm("Supprimer cette transaction ?")&&(await gt.transactions.delete(d),await oe())}function me(){var d,U;t(24,Le=new Date().toISOString().slice(0,10)),t(4,N=[{...A(),type:"income",property_id:((d=E[0])==null?void 0:d.id)||""},{...A(),type:"expense",property_id:((U=E[0])==null?void 0:U.id)||""}]),t(20,F=""),t(16,Ce=!0)}function We(){var d;t(4,N=[...N,{...A(),property_id:((d=E[0])==null?void 0:d.id)||""}])}function he(d){t(4,N=N.filter((U,Ke)=>Ke!==d))}async function b(){t(20,F="");for(const d of N){if(!d.property_id){t(20,F="Chaque ligne doit avoir un bien.");return}if(!d.amount||parseFloat(d.amount)<=0){t(20,F="Chaque ligne doit avoir un montant > 0.");return}}try{for(const d of N)await gt.transactions.create({property_id:d.property_id,category_id:d.category_id||"",type:d.type,amount:parseFloat(d.amount),date:Le,description:d.description});t(16,Ce=!1),await oe()}catch(d){t(20,F=d.message)}}function ie(d){var Ke;t(1,B=d),t(19,ve="");const U=d.amount;t(3,_=E.slice(0,2).map((lt,it)=>({property_id:lt.id,category_id:d.category_id||"",type:d.type,amount:parseFloat((U/2).toFixed(2)),description:d.description||"",pct:50}))),_.length<2&&_.push({property_id:((Ke=E[0])==null?void 0:Ke.id)||"",category_id:d.category_id||"",type:d.type,amount:parseFloat((U/2).toFixed(2)),description:d.description||"",pct:50}),t(15,de=!0)}function te(d,U){const Ke=B.amount;if(U=Math.min(100,Math.max(0,parseFloat(U)||0)),_.length===2){const lt=100-U;t(3,_[d].pct=U,_),t(3,_[d].amount=parseFloat((Ke*U/100).toFixed(2)),_),t(3,_[1-d].pct=lt,_),t(3,_[1-d].amount=parseFloat((Ke*lt/100).toFixed(2)),_)}else t(3,_[d].pct=U,_),t(3,_[d].amount=parseFloat((Ke*U/100).toFixed(2)),_);t(3,_=[..._])}function Ye(d,U){const Ke=B.amount;if(U=Math.abs(parseFloat(U)||0),t(3,_[d].amount=U,_),t(3,_[d].pct=parseFloat((U/Ke*100).toFixed(1)),_),_.length===2){const lt=1-d,it=B.type,ut=_.every(dt=>dt.type===it);let et;ut?et=parseFloat((Ke-U).toFixed(2)):(et=_[d].type===it?parseFloat((U-Ke).toFixed(2)):parseFloat((Ke+U).toFixed(2)),et=Math.max(0,et)),t(3,_[lt].amount=et,_),t(3,_[lt].pct=parseFloat((et/Ke*100).toFixed(1)),_)}t(3,_=[..._])}async function Be(){if(t(19,ve=""),!z){const d=B.type==="income"?"Revenus − Dépenses":"Dépenses − Revenus";t(19,ve=`${d} = ${R(K)} ≠ ${R(B.amount)}`);return}for(const d of _)if(!d.property_id){t(19,ve="Chaque part doit avoir un bien.");return}try{await gt.transactions.split(B.id,{source_id:B.id,splits:_.map(d=>({property_id:d.property_id,category_id:d.category_id,type:d.type,amount:parseFloat(d.amount),description:d.description}))}),t(15,de=!1),t(1,B=null),await oe()}catch(d){t(19,ve=d.message)}}const R=d=>Number(d).toLocaleString("fr-FR",{minimumFractionDigits:2})+" €",Me=d=>{if(!d)return"—";const U=d.split("-");return U.length===3?U[2]+"/"+U[1]+"/"+U[0]:d},Xe=d=>pe.filter(U=>U.type===d),Ve=d=>d.type===B.type;function J(){se=ft(this),t(21,se),t(12,E)}function S(){ge=ft(this),t(22,ge)}function T(){ue=ft(this),t(23,ue),t(29,W)}const ke=d=>ie(d),be=d=>Ne(d),Je=d=>fe(d.id),Te=()=>{t(2,Z.type="expense",Z),t(2,Z.category_id="",Z)},De=()=>{t(2,Z.type="income",Z),t(2,Z.category_id="",Z)};function Fe(){Z.property_id=ft(this),t(2,Z),t(12,E)}function Pe(){Z.category_id=ft(this),t(2,Z),t(12,E)}function $(){Z.amount=wt(this.value),t(2,Z),t(12,E)}function C(){Z.date=this.value,t(2,Z),t(12,E)}function D(){Z.description=this.value,t(2,Z),t(12,E)}const V=()=>t(16,Ce=!1);function He(){Le=this.value,t(24,Le)}const q=d=>{t(4,N[d].type="income",N),t(4,N[d].category_id="",N),t(4,N=[...N])},O=d=>{t(4,N[d].type="expense",N),t(4,N[d].category_id="",N),t(4,N=[...N])},le=d=>he(d);function L(d){N[d].property_id=ft(this),t(4,N),t(12,E)}function P(d){N[d].category_id=ft(this),t(4,N),t(12,E)}function X(d){N[d].amount=wt(this.value),t(4,N),t(12,E)}function x(d){N[d].description=this.value,t(4,N),t(12,E)}const I=()=>t(16,Ce=!1),ye=()=>t(15,de=!1),Oe=d=>{t(3,_[d].type="income",_),t(3,_[d].category_id="",_),t(3,_=[..._])},re=d=>{t(3,_[d].type="expense",_),t(3,_[d].category_id="",_),t(3,_=[..._])},ze=(d,U)=>te(d,U.target.value),Ge=(d,U)=>te(d,U.target.value),g=(d,U)=>Ye(d,U.target.value);function ae(d){_[d].property_id=ft(this),t(3,_),t(12,E)}function Ue(d){_[d].category_id=ft(this),t(3,_),t(12,E)}function ce(d){_[d].description=this.value,t(3,_),t(12,E)}const $e=()=>t(15,de=!1);return l.$$.update=()=>{l.$$.dirty[0]&4|l.$$.dirty[1]&65536&&t(28,n=pe.filter(d=>d.type===Z.type)),l.$$.dirty[0]&16&&t(10,a=N.filter(d=>d.type==="income").reduce((d,U)=>d+(parseFloat(U.amount)||0),0)),l.$$.dirty[0]&16&&t(11,u=N.filter(d=>d.type==="expense").reduce((d,U)=>d+(parseFloat(U.amount)||0),0)),l.$$.dirty[0]&3072&&t(27,f=parseFloat((u-a).toFixed(2))),l.$$.dirty[0]&8&&t(9,m=_.filter(d=>d.type==="expense").reduce((d,U)=>d+(parseFloat(U.amount)||0),0)),l.$$.dirty[0]&8&&t(8,y=_.filter(d=>d.type==="income").reduce((d,U)=>d+(parseFloat(U.amount)||0),0)),l.$$.dirty[0]&770&&t(7,K=parseFloat(((B==null?void 0:B.type)==="income"?y-m:m-y).toFixed(2))),l.$$.dirty[0]&130&&t(48,M=parseFloat((K-((B==null?void 0:B.amount)||0)).toFixed(2))),l.$$.dirty[1]&131072&&t(26,z=Math.abs(M)<=.01),l.$$.dirty[0]&1&&t(6,w=H.filter(d=>d.type==="income").reduce((d,U)=>d+U.amount,0)),l.$$.dirty[0]&1&&t(5,k=H.filter(d=>d.type==="expense").reduce((d,U)=>d+U.amount,0)),l.$$.dirty[0]&96&&t(25,j=w-k)},[H,B,Z,_,N,k,w,K,y,m,a,u,E,ee,ne,de,Ce,Q,_e,ve,F,se,ge,ue,Le,j,z,f,n,W,oe,xe,Ne,Se,we,fe,me,We,he,b,ie,te,Ye,Be,R,Me,Xe,pe,M,Ve,J,S,T,ke,be,Je,Te,De,Fe,Pe,$,C,D,V,He,q,O,le,L,P,X,x,I,ye,Oe,re,ze,Ge,g,ae,Ue,ce,$e]}class sr extends pl{constructor(e){super(),_l(this,e,Ql,Gl,fl,{},null,[-1,-1,-1,-1])}}export{sr as component};