HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode.com/build/client/_app/immutable/nodes/21.840d386d.js
import{s as Se,n as ye,c as Ne,r as dt,o as mt,t as bt,f as Ge}from"../chunks/index.614a0f19.js";import{S as Me,i as We,e as h,o as q,s as S,d,f as _,p as z,g as u,b as F,h as c,F as we,j as se,r as s,u as Y,n as Le,K as Re,A as _t,c as de,a as me,m as _e,t as ie,k as oe,l as Ie,w as ze,N as He,y as It,v as gt,x as Ke}from"../chunks/index.f20d589e.js";import{F as pt}from"../chunks/Faq.c6399859.js";import{H as Ct}from"../chunks/Header.ab45ac15.js";import{s as wt}from"../chunks/seo-image.c1f13bb2.js";import{S as kt}from"../chunks/SeoHead.27938517.js";import{o as Te,e as Fe,q as qe,c as Je}from"../chunks/Lang.c84e954b.js";import{p as Qe}from"../chunks/index.0fccc2a6.js";const yt=""+new URL("../assets/icon1.4056ac80.svg",import.meta.url).href,Et=""+new URL("../assets/icon2.afec0697.svg",import.meta.url).href,Vt=""+new URL("../assets/icon3.e15f3b36.svg",import.meta.url).href,Dt=""+new URL("../assets/icon4.734c164e.svg",import.meta.url).href;function Pt(l){let e,t,a,n=l[0]("IC.How it Works?")+"",v,m,f,D,k,C,g,P=l[0]("IC.The Base")+"",b,V,o,y=l[0]("IC.We take your starting amount and apply compound interest based on your expected return.")+"",r,p,w,i,E,I,R=l[0]("IC.The Growth")+"",T,U,M,O=l[0]('IC.We add your monthly contributions. If you use the "Annual Increase" setting, we boost your contributions every year to match your growing income.')+"",j,ee,G,Z,ae,K,L=l[0]("IC.The Reality Check")+"",B,Q,W,H=l[0]("IC.This is where we differ. We subtract estimated taxes and fees, then adjust the final number for inflation.")+"",X,ce,$,ue,re,ke,J=l[0]("IC.The Result")+"",x,ge,te,fe=l[0]("IC.You get two numbers - what you’ll have on paper (Nominal) and what that money will actually buy you (Purchasing Power).")+"",Ee;return{c(){e=h("div"),t=h("div"),a=h("p"),v=q(n),m=S(),f=h("div"),D=h("div"),k=h("div"),C=S(),g=h("div"),b=q(P),V=S(),o=h("div"),r=q(y),p=S(),w=h("div"),i=h("div"),E=S(),I=h("div"),T=q(R),U=S(),M=h("div"),j=q(O),ee=S(),G=h("div"),Z=h("div"),ae=S(),K=h("div"),B=q(L),Q=S(),W=h("div"),X=q(H),ce=S(),$=h("div"),ue=h("div"),re=S(),ke=h("div"),x=q(J),ge=S(),te=h("div"),Ee=q(fe),this.h()},l(N){e=d(N,"DIV",{class:!0});var A=_(e);t=d(A,"DIV",{class:!0});var ne=_(t);a=d(ne,"P",{class:!0});var be=_(a);v=z(be,n),be.forEach(u),m=F(ne),f=d(ne,"DIV",{class:!0});var le=_(f);D=d(le,"DIV",{class:!0});var ve=_(D);k=d(ve,"DIV",{class:!0,style:!0}),_(k).forEach(u),C=F(ve),g=d(ve,"DIV",{class:!0});var Ce=_(g);b=z(Ce,P),Ce.forEach(u),V=F(ve),o=d(ve,"DIV",{class:!0});var Ve=_(o);r=z(Ve,y),Ve.forEach(u),ve.forEach(u),p=F(le),w=d(le,"DIV",{class:!0});var he=_(w);i=d(he,"DIV",{class:!0,style:!0}),_(i).forEach(u),E=F(he),I=d(he,"DIV",{class:!0});var De=_(I);T=z(De,R),De.forEach(u),U=F(he),M=d(he,"DIV",{class:!0});var Pe=_(M);j=z(Pe,O),Pe.forEach(u),he.forEach(u),ee=F(le),G=d(le,"DIV",{class:!0});var pe=_(G);Z=d(pe,"DIV",{class:!0,style:!0}),_(Z).forEach(u),ae=F(pe),K=d(pe,"DIV",{class:!0});var Be=_(K);B=z(Be,L),Be.forEach(u),Q=F(pe),W=d(pe,"DIV",{class:!0});var Ye=_(W);X=z(Ye,H),Ye.forEach(u),pe.forEach(u),ce=F(le),$=d(le,"DIV",{class:!0});var Ue=_($);ue=d(Ue,"DIV",{class:!0,style:!0}),_(ue).forEach(u),re=F(Ue),ke=d(Ue,"DIV",{class:!0});var je=_(ke);x=z(je,J),je.forEach(u),ge=F(Ue),te=d(Ue,"DIV",{class:!0});var Oe=_(te);Ee=z(Oe,fe),Oe.forEach(u),Ue.forEach(u),le.forEach(u),ne.forEach(u),A.forEach(u),this.h()},h(){c(a,"class","block-howItWorks__title svelte-11he01t"),c(k,"class","howItWorks-block__icon svelte-11he01t"),we(k,"background-image","url("+yt+")"),c(g,"class","howItWorks-block__title svelte-11he01t"),c(o,"class","howItWorks-block__text svelte-11he01t"),c(D,"class","block-howItWorks__block svelte-11he01t"),c(i,"class","howItWorks-block__icon svelte-11he01t"),we(i,"background-image","url("+Et+")"),c(I,"class","howItWorks-block__title svelte-11he01t"),c(M,"class","howItWorks-block__text svelte-11he01t"),c(w,"class","block-howItWorks__block svelte-11he01t"),c(Z,"class","howItWorks-block__icon svelte-11he01t"),we(Z,"background-image","url("+Vt+")"),c(K,"class","howItWorks-block__title svelte-11he01t"),c(W,"class","howItWorks-block__text svelte-11he01t"),c(G,"class","block-howItWorks__block svelte-11he01t"),c(ue,"class","howItWorks-block__icon svelte-11he01t"),we(ue,"background-image","url("+Dt+")"),c(ke,"class","howItWorks-block__title svelte-11he01t"),c(te,"class","howItWorks-block__text svelte-11he01t"),c($,"class","block-howItWorks__block svelte-11he01t"),c(f,"class","block-howItWorks__blocks svelte-11he01t"),c(t,"class","container svelte-11he01t"),c(e,"class","block-howItWorks svelte-11he01t")},m(N,A){se(N,e,A),s(e,t),s(t,a),s(a,v),s(t,m),s(t,f),s(f,D),s(D,k),s(D,C),s(D,g),s(g,b),s(D,V),s(D,o),s(o,r),s(f,p),s(f,w),s(w,i),s(w,E),s(w,I),s(I,T),s(w,U),s(w,M),s(M,j),s(f,ee),s(f,G),s(G,Z),s(G,ae),s(G,K),s(K,B),s(G,Q),s(G,W),s(W,X),s(f,ce),s(f,$),s($,ue),s($,re),s($,ke),s(ke,x),s($,ge),s($,te),s(te,Ee)},p(N,[A]){A&1&&n!==(n=N[0]("IC.How it Works?")+"")&&Y(v,n),A&1&&P!==(P=N[0]("IC.The Base")+"")&&Y(b,P),A&1&&y!==(y=N[0]("IC.We take your starting amount and apply compound interest based on your expected return.")+"")&&Y(r,y),A&1&&R!==(R=N[0]("IC.The Growth")+"")&&Y(T,R),A&1&&O!==(O=N[0]('IC.We add your monthly contributions. If you use the "Annual Increase" setting, we boost your contributions every year to match your growing income.')+"")&&Y(j,O),A&1&&L!==(L=N[0]("IC.The Reality Check")+"")&&Y(B,L),A&1&&H!==(H=N[0]("IC.This is where we differ. We subtract estimated taxes and fees, then adjust the final number for inflation.")+"")&&Y(X,H),A&1&&J!==(J=N[0]("IC.The Result")+"")&&Y(x,J),A&1&&fe!==(fe=N[0]("IC.You get two numbers - what you’ll have on paper (Nominal) and what that money will actually buy you (Purchasing Power).")+"")&&Y(Ee,fe)},i:ye,o:ye,d(N){N&&u(e)}}}function Tt(l,e,t){let a;return Ne(l,Le,n=>t(0,a=n)),[a]}class Nt extends Me{constructor(e){super(),We(this,e,Tt,Pt,Se,{})}}function Xe(l){let e,t;return{c(){e=h("div"),t=q(l[1]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[1]),n.forEach(u),this.h()},h(){c(e,"class","calculatorInput__Label svelte-ez0ax")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&2&&Y(t,a[1])},d(a){a&&u(e)}}}function Ze(l){let e,t;return{c(){e=h("div"),t=q(l[2]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[2]),n.forEach(u),this.h()},h(){c(e,"class","calculatorInput__Hint svelte-ez0ax")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&4&&Y(t,a[2])},d(a){a&&u(e)}}}function $e(l){let e,t;return{c(){e=h("div"),t=q(l[5]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[5]),n.forEach(u),this.h()},h(){c(e,"class","calculatorInput__SubLabel svelte-ez0ax")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&32&&Y(t,a[5])},d(a){a&&u(e)}}}function xe(l){let e,t;return{c(){e=h("div"),t=q(l[4]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[4]),n.forEach(u),this.h()},h(){c(e,"class","calculatorInput__extraPlaceholder svelte-ez0ax")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&16&&Y(t,a[4])},d(a){a&&u(e)}}}function St(l){let e,t,a,n,v,m,f,D,k,C,g=l[1]!==""&&Xe(l),P=l[1]!==""&&Ze(l),b=l[5]!==""&&$e(l),V=l[7]&&xe(l);return{c(){e=h("div"),g&&g.c(),t=S(),P&&P.c(),a=S(),b&&b.c(),n=S(),v=h("div"),V&&V.c(),m=S(),f=h("input"),this.h()},l(o){e=d(o,"DIV",{class:!0});var y=_(e);g&&g.l(y),t=F(y),P&&P.l(y),a=F(y),b&&b.l(y),n=F(y),v=d(y,"DIV",{class:!0});var r=_(v);V&&V.l(r),m=F(r),f=d(r,"INPUT",{class:!0,type:!0,placeholder:!0}),r.forEach(u),y.forEach(u),this.h()},h(){c(f,"class","calculatorInput__input svelte-ez0ax"),c(f,"type","text"),f.value=l[0],c(f,"placeholder",l[6]),c(v,"class","calculatorInput__inputContainer svelte-ez0ax"),c(e,"class",D="calculatorInput "+l[8]+" "+l[3]+" svelte-ez0ax")},m(o,y){se(o,e,y),g&&g.m(e,null),s(e,t),P&&P.m(e,null),s(e,a),b&&b.m(e,null),s(e,n),s(e,v),V&&V.m(v,null),s(v,m),s(v,f),k||(C=Re(f,"input",l[9]),k=!0)},p(o,[y]){o[1]!==""?g?g.p(o,y):(g=Xe(o),g.c(),g.m(e,t)):g&&(g.d(1),g=null),o[1]!==""?P?P.p(o,y):(P=Ze(o),P.c(),P.m(e,a)):P&&(P.d(1),P=null),o[5]!==""?b?b.p(o,y):(b=$e(o),b.c(),b.m(e,n)):b&&(b.d(1),b=null),o[7]?V?V.p(o,y):(V=xe(o),V.c(),V.m(v,m)):V&&(V.d(1),V=null),y&1&&f.value!==o[0]&&(f.value=o[0]),y&64&&c(f,"placeholder",o[6]),y&264&&D!==(D="calculatorInput "+o[8]+" "+o[3]+" svelte-ez0ax")&&c(e,"class",D)},i:ye,o:ye,d(o){o&&u(e),g&&g.d(),P&&P.d(),b&&b.d(),V&&V.d(),k=!1,C()}}}function Ft(l,e,t){let a;Ne(l,_t,r=>t(8,a=r));let{id:n}=e,{title:v=""}=e,{hint:m=""}=e,{value:f}=e,{className:D=""}=e,{extraPlaceholder:k=""}=e,{subLabel:C=""}=e,{placeholder:g=""}=e,P=!0,b;const V=D.includes("percent"),o=r=>{if(!V||r==="")return r;const p=r.replace(/%/g,"");return p!==""?`${p}%`:""};Te.subscribe(r=>{var w;b=r;const p=((w=b[n])==null?void 0:w.toString())??"";t(0,f=o(p))});const y=r=>{const p=r.currentTarget.value.replace(/%/g,"").replace(/[^0-9.]/g,"").replace(/\.(?=.*\.)/g,"");if(r.currentTarget.value=V?o(p):p,t(0,f=V?o(p):p),V&&f!==""){const w=f.length-1;r.currentTarget.value=f,r.currentTarget.setSelectionRange(w,w)}t(7,P=!1),!(p===""||p.endsWith(".")||/\.\d*0$/.test(p))&&(b[n]=Number(p),Te.set(b))};return l.$$set=r=>{"id"in r&&t(10,n=r.id),"title"in r&&t(1,v=r.title),"hint"in r&&t(2,m=r.hint),"value"in r&&t(0,f=r.value),"className"in r&&t(3,D=r.className),"extraPlaceholder"in r&&t(4,k=r.extraPlaceholder),"subLabel"in r&&t(5,C=r.subLabel),"placeholder"in r&&t(6,g=r.placeholder)},[f,v,m,D,k,C,g,P,a,y,n]}class Ae extends Me{constructor(e){super(),We(this,e,Ft,St,Se,{id:10,title:1,hint:2,value:0,className:3,extraPlaceholder:4,subLabel:5,placeholder:6})}}function et(l){let e,t;return{c(){e=h("div"),t=q(l[1]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[1]),n.forEach(u),this.h()},h(){c(e,"class","calculatorSliderInput__Label svelte-lgqbo8")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&2&&Y(t,a[1])},d(a){a&&u(e)}}}function tt(l){let e,t;return{c(){e=h("div"),t=q(l[2]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[2]),n.forEach(u),this.h()},h(){c(e,"class","calculatorSliderInput__Hint svelte-lgqbo8")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&4&&Y(t,a[2])},d(a){a&&u(e)}}}function lt(l){let e,t;return{c(){e=h("div"),t=q(l[7]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[7]),n.forEach(u),this.h()},h(){c(e,"class","calculatorSliderInput__SubLabel svelte-lgqbo8")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&128&&Y(t,a[7])},d(a){a&&u(e)}}}function at(l){let e,t;return{c(){e=h("div"),t=q(l[6]),this.h()},l(a){e=d(a,"DIV",{class:!0});var n=_(e);t=z(n,l[6]),n.forEach(u),this.h()},h(){c(e,"class","calculatorSliderInput__ExtraPlaceholder svelte-lgqbo8")},m(a,n){se(a,e,n),s(e,t)},p(a,n){n&64&&Y(t,a[6])},d(a){a&&u(e)}}}function Mt(l){let e,t,a,n,v,m,f,D,k,C=Qe(parseInt(l[9]),...l[13])+"",g,P,b,V,o,y,r,p,w,i=new Intl.NumberFormat("en-US").format(l[4][0])+"",E,I=l[5]==="%"?"%":"",R,T,U,M=new Intl.NumberFormat("en-US").format(l[4][1])+"",O,j=l[5]==="%"?"%":"",ee,G,Z,ae,K=l[1]!==""&&et(l),L=l[1]!==""&&tt(l),B=l[7]!==""&&lt(l),Q=l[6]!==""&&at(l);return{c(){e=h("div"),K&&K.c(),t=S(),L&&L.c(),a=S(),B&&B.c(),n=S(),Q&&Q.c(),v=S(),m=h("div"),f=q(l[9]),D=q(l[8]),k=S(),g=q(C),P=S(),b=h("div"),V=h("label"),o=h("input"),p=S(),w=h("div"),E=q(i),R=q(I),T=S(),U=h("div"),O=q(M),ee=q(j),this.h()},l(W){e=d(W,"DIV",{class:!0});var H=_(e);K&&K.l(H),t=F(H),L&&L.l(H),a=F(H),B&&B.l(H),n=F(H),Q&&Q.l(H),v=F(H),m=d(H,"DIV",{class:!0});var X=_(m);f=z(X,l[9]),D=z(X,l[8]),k=F(X),g=z(X,C),X.forEach(u),P=F(H),b=d(H,"DIV",{class:!0});var ce=_(b);V=d(ce,"LABEL",{class:!0});var $=_(V);o=d($,"INPUT",{type:!0,min:!0,max:!0,"aria-label":!0,style:!0,class:!0}),$.forEach(u),p=F(ce),w=d(ce,"DIV",{class:!0});var ue=_(w);E=z(ue,i),R=z(ue,I),ue.forEach(u),T=F(ce),U=d(ce,"DIV",{class:!0});var re=_(U);O=z(re,M),ee=z(re,j),re.forEach(u),ce.forEach(u),H.forEach(u),this.h()},h(){c(m,"class","calculatorSliderInput__Value svelte-lgqbo8"),c(o,"type","range"),c(o,"min",y=l[4][0]),c(o,"max",r=l[4][1]),o.value=l[0],c(o,"aria-label","Range"),we(o,"background","linear-gradient(to right, rgb(68, 86, 103) "+l[10]+"%, rgb(207, 218, 225) "+l[10]+"%)"),c(o,"class","svelte-lgqbo8"),c(V,"class","calculatorSliderInput__range svelte-lgqbo8"),c(w,"class","calculatorSliderInput__rangeContainer--min svelte-lgqbo8"),c(U,"class","calculatorSliderInput__rangeContainer--max svelte-lgqbo8"),c(b,"class","calculatorSliderInput__rangeContainer svelte-lgqbo8"),c(e,"class",G="calculatorSliderInput "+l[11]+" "+l[3]+" svelte-lgqbo8")},m(W,H){se(W,e,H),K&&K.m(e,null),s(e,t),L&&L.m(e,null),s(e,a),B&&B.m(e,null),s(e,n),Q&&Q.m(e,null),s(e,v),s(e,m),s(m,f),s(m,D),s(m,k),s(m,g),s(e,P),s(e,b),s(b,V),s(V,o),s(b,p),s(b,w),s(w,E),s(w,R),s(b,T),s(b,U),s(U,O),s(U,ee),Z||(ae=Re(o,"input",l[12]),Z=!0)},p(W,[H]){W[1]!==""?K?K.p(W,H):(K=et(W),K.c(),K.m(e,t)):K&&(K.d(1),K=null),W[1]!==""?L?L.p(W,H):(L=tt(W),L.c(),L.m(e,a)):L&&(L.d(1),L=null),W[7]!==""?B?B.p(W,H):(B=lt(W),B.c(),B.m(e,n)):B&&(B.d(1),B=null),W[6]!==""?Q?Q.p(W,H):(Q=at(W),Q.c(),Q.m(e,v)):Q&&(Q.d(1),Q=null),H&512&&Y(f,W[9]),H&256&&Y(D,W[8]),H&512&&C!==(C=Qe(parseInt(W[9]),...W[13])+"")&&Y(g,C),H&16&&y!==(y=W[4][0])&&c(o,"min",y),H&16&&r!==(r=W[4][1])&&c(o,"max",r),H&1&&(o.value=W[0]),H&1024&&we(o,"background","linear-gradient(to right, rgb(68, 86, 103) "+W[10]+"%, rgb(207, 218, 225) "+W[10]+"%)"),H&16&&i!==(i=new Intl.NumberFormat("en-US").format(W[4][0])+"")&&Y(E,i),H&32&&I!==(I=W[5]==="%"?"%":"")&&Y(R,I),H&16&&M!==(M=new Intl.NumberFormat("en-US").format(W[4][1])+"")&&Y(O,M),H&32&&j!==(j=W[5]==="%"?"%":"")&&Y(ee,j),H&2056&&G!==(G="calculatorSliderInput "+W[11]+" "+W[3]+" svelte-lgqbo8")&&c(e,"class",G)},i:ye,o:ye,d(W){W&&u(e),K&&K.d(),L&&L.d(),B&&B.d(),Q&&Q.d(),Z=!1,ae()}}}function Wt(l,e,t){let a;Ne(l,_t,i=>t(11,a=i));let{id:n}=e,{title:v=""}=e,{hint:m=""}=e,{value:f}=e,{className:D=""}=e,{range:k=[0,100]}=e,{name:C=""}=e,{extraPlaceholder:g=""}=e,{subLabel:P=""}=e,{suffix:b=""}=e,V;Te.subscribe(i=>{V=i,t(0,f=V[n]??0)});let o=new Intl.NumberFormat("en-US").format(f),y=f*100/k[1];const r=i=>{t(0,f=Number(i.currentTarget.value)),t(9,o=new Intl.NumberFormat("en-US").format(f)),t(10,y=f*100/k[1]),V[n]=f,Te.set(V)},p=C.split("|"),w=[p[0]??"",p[1]??"",p[2]??""];return l.$$set=i=>{"id"in i&&t(14,n=i.id),"title"in i&&t(1,v=i.title),"hint"in i&&t(2,m=i.hint),"value"in i&&t(0,f=i.value),"className"in i&&t(3,D=i.className),"range"in i&&t(4,k=i.range),"name"in i&&t(5,C=i.name),"extraPlaceholder"in i&&t(6,g=i.extraPlaceholder),"subLabel"in i&&t(7,P=i.subLabel),"suffix"in i&&t(8,b=i.suffix)},[f,v,m,D,k,C,g,P,b,o,y,a,r,w,n]}class st extends Me{constructor(e){super(),We(this,e,Wt,Mt,Se,{id:14,title:1,hint:2,value:0,className:3,range:4,name:5,extraPlaceholder:6,subLabel:7,suffix:8})}}function Rt(l){let e,t,a,n,v=l[1]("IC.Investment Calculator: Check Your Potential Earnings")+"",m,f,D,k=l[1]("IC.Use smart investment calculator to see how much your money can grow over time.")+"",C,g,P,b,V=l[1]("IC.Basic")+"",o,y,r,p,w=l[1]("IC.Advanced")+"",i,E,I,R,T,U,M,O,j,ee,G,Z,ae,K,L,B,Q,W,H,X,ce,$,ue,re,ke,J,x=l[1]("IC.Calculate")+"",ge,te,fe,Ee;return M=new Ae({props:{id:"initialInvestment",title:l[1]("IC.Initial investment"),hint:l[1]("IC.How much money do you have today?"),value:"65",className:"money"}}),j=new st({props:{id:"timeHorizon",title:l[1]("IC.Time horizon"),hint:l[1]("IC.How long are you investing?"),value:140,range:[0,250],name:l[1]("IC.month|months|months")}}),G=new Ae({props:{id:"monthlyContribution",title:l[1]("IC.Monthly contribution"),hint:l[1]("IC.How much will you add each month?"),value:"65",className:"money"}}),ae=new st({props:{id:"returnRate",title:l[1]("IC.Expected annual return"),hint:l[1]("IC.Choose your investment strategy"),value:7,range:[0,100],name:l[1]("%|%|%")}}),B=new Ae({props:{id:"annualInflationRate",title:l[1]("IC.Annual inflation rate"),hint:l[1]("IC.Average price increase per year (usually 2-4%)"),value:"2",className:"percent"}}),W=new Ae({props:{id:"taxRate",title:l[1]("IC.Tax rate"),hint:l[1]("IC.Your estimated tax on investment gains"),value:"13",className:"percent"}}),X=new Ae({props:{id:"investmentFees",title:l[1]("IC.Investment fees %"),hint:l[1]("IC.Annual management fees or expense ratios"),value:"0.05",className:"percent"}}),$=new Ae({props:{id:"annualContributionIncrease",title:l[1]("IC.Annual contribution increase"),hint:l[1]("IC.Percentage by which you will increase your monthly deposit each year."),value:"30",className:"percent"}}),{c(){e=h("div"),t=h("div"),a=h("div"),n=h("h2"),m=q(v),f=S(),D=h("p"),C=q(k),g=S(),P=h("div"),b=h("button"),o=q(V),r=S(),p=h("button"),i=q(w),R=S(),T=h("div"),U=h("div"),de(M.$$.fragment),O=S(),de(j.$$.fragment),ee=S(),de(G.$$.fragment),Z=S(),de(ae.$$.fragment),K=S(),L=h("div"),de(B.$$.fragment),Q=S(),de(W.$$.fragment),H=S(),de(X.$$.fragment),ce=S(),de($.$$.fragment),ke=S(),J=h("button"),ge=q(x),this.h()},l(N){e=d(N,"DIV",{class:!0});var A=_(e);t=d(A,"DIV",{class:!0});var ne=_(t);a=d(ne,"DIV",{class:!0});var be=_(a);n=d(be,"H2",{class:!0});var le=_(n);m=z(le,v),le.forEach(u),f=F(be),D=d(be,"P",{class:!0});var ve=_(D);C=z(ve,k),ve.forEach(u),be.forEach(u),g=F(ne),P=d(ne,"DIV",{class:!0});var Ce=_(P);b=d(Ce,"BUTTON",{class:!0});var Ve=_(b);o=z(Ve,V),Ve.forEach(u),r=F(Ce),p=d(Ce,"BUTTON",{class:!0});var he=_(p);i=z(he,w),he.forEach(u),Ce.forEach(u),R=F(ne),T=d(ne,"DIV",{class:!0});var De=_(T);U=d(De,"DIV",{class:!0});var Pe=_(U);me(M.$$.fragment,Pe),O=F(Pe),me(j.$$.fragment,Pe),ee=F(Pe),me(G.$$.fragment,Pe),Z=F(Pe),me(ae.$$.fragment,Pe),Pe.forEach(u),K=F(De),L=d(De,"DIV",{class:!0});var pe=_(L);me(B.$$.fragment,pe),Q=F(pe),me(W.$$.fragment,pe),H=F(pe),me(X.$$.fragment,pe),ce=F(pe),me($.$$.fragment,pe),pe.forEach(u),De.forEach(u),ke=F(ne),J=d(ne,"BUTTON",{class:!0});var Be=_(J);ge=z(Be,x),Be.forEach(u),ne.forEach(u),A.forEach(u),this.h()},h(){c(n,"class","svelte-19hyl4p"),c(D,"class","svelte-19hyl4p"),c(a,"class","investmentProfitCalculator__header"),c(b,"class",y="investmentProfitCalculator__item "+(l[0]==="basic"?"active":"")+" svelte-19hyl4p"),c(p,"class",E="investmentProfitCalculator__item "+(l[0]==="advanced"?"active":"")+" svelte-19hyl4p"),c(P,"class",I="investmentProfitCalculator__toggle "+(l[0]==="advanced"?"item2":"")+" svelte-19hyl4p"),c(U,"class","investmentProfitCalculator__basic svelte-19hyl4p"),c(L,"class",ue="investmentProfitCalculator__advanced "+(l[0]!=="advanced"?"disabled":"")+" svelte-19hyl4p"),c(T,"class",re="investmentProfitCalculator__inputForm "+("mode-"+l[0])+" svelte-19hyl4p"),c(J,"class","investmentProfitCalculator__calculate svelte-19hyl4p"),c(t,"class","container svelte-19hyl4p"),c(e,"class","block-calculator svelte-19hyl4p")},m(N,A){se(N,e,A),s(e,t),s(t,a),s(a,n),s(n,m),s(a,f),s(a,D),s(D,C),s(t,g),s(t,P),s(P,b),s(b,o),s(P,r),s(P,p),s(p,i),s(t,R),s(t,T),s(T,U),_e(M,U,null),s(U,O),_e(j,U,null),s(U,ee),_e(G,U,null),s(U,Z),_e(ae,U,null),s(T,K),s(T,L),_e(B,L,null),s(L,Q),_e(W,L,null),s(L,H),_e(X,L,null),s(L,ce),_e($,L,null),s(t,ke),s(t,J),s(J,ge),te=!0,fe||(Ee=[Re(b,"click",l[4]),Re(p,"click",l[5]),Re(J,"click",l[3])],fe=!0)},p(N,[A]){(!te||A&2)&&v!==(v=N[1]("IC.Investment Calculator: Check Your Potential Earnings")+"")&&Y(m,v),(!te||A&2)&&k!==(k=N[1]("IC.Use smart investment calculator to see how much your money can grow over time.")+"")&&Y(C,k),(!te||A&2)&&V!==(V=N[1]("IC.Basic")+"")&&Y(o,V),(!te||A&1&&y!==(y="investmentProfitCalculator__item "+(N[0]==="basic"?"active":"")+" svelte-19hyl4p"))&&c(b,"class",y),(!te||A&2)&&w!==(w=N[1]("IC.Advanced")+"")&&Y(i,w),(!te||A&1&&E!==(E="investmentProfitCalculator__item "+(N[0]==="advanced"?"active":"")+" svelte-19hyl4p"))&&c(p,"class",E),(!te||A&1&&I!==(I="investmentProfitCalculator__toggle "+(N[0]==="advanced"?"item2":"")+" svelte-19hyl4p"))&&c(P,"class",I);const ne={};A&2&&(ne.title=N[1]("IC.Initial investment")),A&2&&(ne.hint=N[1]("IC.How much money do you have today?")),M.$set(ne);const be={};A&2&&(be.title=N[1]("IC.Time horizon")),A&2&&(be.hint=N[1]("IC.How long are you investing?")),A&2&&(be.name=N[1]("IC.month|months|months")),j.$set(be);const le={};A&2&&(le.title=N[1]("IC.Monthly contribution")),A&2&&(le.hint=N[1]("IC.How much will you add each month?")),G.$set(le);const ve={};A&2&&(ve.title=N[1]("IC.Expected annual return")),A&2&&(ve.hint=N[1]("IC.Choose your investment strategy")),A&2&&(ve.name=N[1]("%|%|%")),ae.$set(ve);const Ce={};A&2&&(Ce.title=N[1]("IC.Annual inflation rate")),A&2&&(Ce.hint=N[1]("IC.Average price increase per year (usually 2-4%)")),B.$set(Ce);const Ve={};A&2&&(Ve.title=N[1]("IC.Tax rate")),A&2&&(Ve.hint=N[1]("IC.Your estimated tax on investment gains")),W.$set(Ve);const he={};A&2&&(he.title=N[1]("IC.Investment fees %")),A&2&&(he.hint=N[1]("IC.Annual management fees or expense ratios")),X.$set(he);const De={};A&2&&(De.title=N[1]("IC.Annual contribution increase")),A&2&&(De.hint=N[1]("IC.Percentage by which you will increase your monthly deposit each year.")),$.$set(De),(!te||A&1&&ue!==(ue="investmentProfitCalculator__advanced "+(N[0]!=="advanced"?"disabled":"")+" svelte-19hyl4p"))&&c(L,"class",ue),(!te||A&1&&re!==(re="investmentProfitCalculator__inputForm "+("mode-"+N[0])+" svelte-19hyl4p"))&&c(T,"class",re),(!te||A&2)&&x!==(x=N[1]("IC.Calculate")+"")&&Y(ge,x)},i(N){te||(ie(M.$$.fragment,N),ie(j.$$.fragment,N),ie(G.$$.fragment,N),ie(ae.$$.fragment,N),ie(B.$$.fragment,N),ie(W.$$.fragment,N),ie(X.$$.fragment,N),ie($.$$.fragment,N),te=!0)},o(N){oe(M.$$.fragment,N),oe(j.$$.fragment,N),oe(G.$$.fragment,N),oe(ae.$$.fragment,N),oe(B.$$.fragment,N),oe(W.$$.fragment,N),oe(X.$$.fragment,N),oe($.$$.fragment,N),te=!1},d(N){N&&u(e),Ie(M),Ie(j),Ie(G),Ie(ae),Ie(B),Ie(W),Ie(X),Ie($),fe=!1,dt(Ee)}}}function Ut(l,e,t){let a;Ne(l,Le,C=>t(1,a=C));let n;Te.subscribe(C=>{n=C});let v="basic";const m=C=>{t(0,v=C),n.mode=C,Te.set(n),f()};mt(()=>{f()});const f=()=>{const{initialInvestment:C,timeHorizon:g,monthlyContribution:P,returnRate:b,annualInflationRate:V,taxRate:o,investmentFees:y,annualContributionIncrease:r}=n;if(v==="basic"){const p=(1+b/100)**.08333333333333333-1;let w=C,i=C;const E=[];for(let M=1;M<=g;M++)w+=P,i+=P,w*=1+p,M%12===0&&E.push({year:M/12,totalInvested:Math.ceil(i),totalInterest:Math.ceil(w-i),finalBalance:Math.ceil(w)});g%12!==0&&E.push({year:+(g/12).toFixed(1),totalInvested:Math.ceil(i),totalInterest:Math.ceil(w-i),finalBalance:Math.ceil(w)});const I=Math.ceil(w),R=Math.ceil(i),T=Math.ceil(w-i);n={...n,nominalValue:I,totalInvested:R,totalInterest:T,finalBalance:I,chartData:E},Te.set(n)}else{const p=V/100,w=o/100,i=r/100,E=(1+b/100)**(1/12)-1,I=(1+y/100)**(1/12)-1;let R=C,T=C,U=C,M=P;for(let B=1;B<=g;B++)B>1&&(B-1)%12===0&&(M*=1+i),R+=M,T+=M,U+=M,R*=1+E,T*=(1+E)/(1+I);const O=T-U,j=Math.max(0,O)*w,ee=T-j,G=(1+p)**(g/12),Z=Math.ceil(T),ae=Math.ceil(ee/G),K=Math.ceil(T-T/G),L=Math.ceil(R-T);n={...n,nominalValue:Z,realValue:ae,estimatedTaxes:Math.ceil(j),inflationImpact:K,managementFees:L},Te.set(n)}};return[v,a,m,f,()=>m("basic"),()=>m("advanced")]}class At extends Me{constructor(e){super(),We(this,e,Ut,Rt,Se,{})}}function nt(l,e,t){const a=l.slice();a[3]=e[t];const n=a[3].finalBalance/a[1]*100;a[4]=n;const v=a[3].totalInvested/a[3].finalBalance*100;a[5]=v;const m=a[3].totalInterest/a[3].finalBalance*100;return a[6]=m,a}function rt(l){let e,t,a,n,v,m,f,D;return{c(){e=h("div"),t=h("div"),a=h("div"),n=S(),v=h("div"),m=S(),f=h("div"),D=S(),this.h()},l(k){e=d(k,"DIV",{class:!0});var C=_(e);t=d(C,"DIV",{class:!0,style:!0});var g=_(t);a=d(g,"DIV",{class:!0,style:!0}),_(a).forEach(u),n=F(g),v=d(g,"DIV",{class:!0,style:!0}),_(v).forEach(u),m=F(g),f=d(g,"DIV",{class:!0,style:!0}),_(f).forEach(u),g.forEach(u),D=F(C),C.forEach(u),this.h()},h(){c(a,"class","investmentChart__segment balance svelte-1ygm3wn"),we(a,"flex",l[6]),c(v,"class","investmentChart__segment interest svelte-1ygm3wn"),we(v,"flex",l[6]),c(f,"class","investmentChart__segment invested svelte-1ygm3wn"),we(f,"flex",l[5]),c(t,"class","investmentChart__stack svelte-1ygm3wn"),we(t,"height",l[4]+"%"),c(e,"class","investmentChart__bar svelte-1ygm3wn")},m(k,C){se(k,e,C),s(e,t),s(t,a),s(t,n),s(t,v),s(t,m),s(t,f),s(e,D)},p(k,C){C&1&&we(a,"flex",k[6]),C&1&&we(v,"flex",k[6]),C&1&&we(f,"flex",k[5]),C&3&&we(t,"height",k[4]+"%")},d(k){k&&u(e)}}}function Ht(l){let e,t,a,n,v,m=l[2]("IC.Total invested")+"",f,D,k,C,g,P=l[2]("IC.Total interest")+"",b,V,o,y,r,p=l[2]("IC.Final balance")+"",w,i,E,I=Fe(l[0]),R=[];for(let T=0;T<I.length;T+=1)R[T]=rt(nt(l,I,T));return{c(){e=h("div"),t=h("div");for(let T=0;T<R.length;T+=1)R[T].c();a=S(),n=h("div"),v=h("span"),f=q(m),D=S(),k=h("i"),C=S(),g=h("span"),b=q(P),V=S(),o=h("i"),y=S(),r=h("span"),w=q(p),i=S(),E=h("i"),this.h()},l(T){e=d(T,"DIV",{class:!0});var U=_(e);t=d(U,"DIV",{class:!0});var M=_(t);for(let Z=0;Z<R.length;Z+=1)R[Z].l(M);M.forEach(u),a=F(U),n=d(U,"DIV",{class:!0});var O=_(n);v=d(O,"SPAN",{class:!0});var j=_(v);f=z(j,m),D=F(j),k=d(j,"I",{class:!0}),_(k).forEach(u),j.forEach(u),C=F(O),g=d(O,"SPAN",{class:!0});var ee=_(g);b=z(ee,P),V=F(ee),o=d(ee,"I",{class:!0}),_(o).forEach(u),ee.forEach(u),y=F(O),r=d(O,"SPAN",{class:!0});var G=_(r);w=z(G,p),i=F(G),E=d(G,"I",{class:!0}),_(E).forEach(u),G.forEach(u),O.forEach(u),U.forEach(u),this.h()},h(){c(t,"class","investmentChart__bars svelte-1ygm3wn"),c(k,"class","invested svelte-1ygm3wn"),c(v,"class","svelte-1ygm3wn"),c(o,"class","interest svelte-1ygm3wn"),c(g,"class","svelte-1ygm3wn"),c(E,"class","balance svelte-1ygm3wn"),c(r,"class","svelte-1ygm3wn"),c(n,"class","investmentChart__legend svelte-1ygm3wn"),c(e,"class","investmentChart svelte-1ygm3wn")},m(T,U){se(T,e,U),s(e,t);for(let M=0;M<R.length;M+=1)R[M]&&R[M].m(t,null);s(e,a),s(e,n),s(n,v),s(v,f),s(v,D),s(v,k),s(n,C),s(n,g),s(g,b),s(g,V),s(g,o),s(n,y),s(n,r),s(r,w),s(r,i),s(r,E)},p(T,[U]){if(U&3){I=Fe(T[0]);let M;for(M=0;M<I.length;M+=1){const O=nt(T,I,M);R[M]?R[M].p(O,U):(R[M]=rt(O),R[M].c(),R[M].m(t,null))}for(;M<R.length;M+=1)R[M].d(1);R.length=I.length}U&4&&m!==(m=T[2]("IC.Total invested")+"")&&Y(f,m),U&4&&P!==(P=T[2]("IC.Total interest")+"")&&Y(b,P),U&4&&p!==(p=T[2]("IC.Final balance")+"")&&Y(w,p)},i:ye,o:ye,d(T){T&&u(e),ze(R,T)}}}function Lt(l,e,t){let a;Ne(l,Le,m=>t(2,a=m));let n=[],v=0;return Te.subscribe(m=>{t(0,n=m.chartData),t(1,v=Math.max(...n.map(f=>f.finalBalance)))}),[n,v,a]}class Bt extends Me{constructor(e){super(),We(this,e,Lt,Ht,Se,{})}}function it(l,e,t){const a=l.slice();return a[14]=e[t],a[15]=e,a[16]=t,a}function ot(l,e,t){const a=l.slice();return a[17]=e[t],a[19]=t,a}function ct(l,e,t){const a=l.slice();return a[17]=e[t],a[16]=t,a}function ut(l){let e;return{c(){e=h("div"),this.h()},l(t){e=d(t,"DIV",{class:!0}),_(e).forEach(u),this.h()},h(){c(e,"class","advancedChart__segment svelte-1uedy2n"),He(e,"filled",l[16]<l[8](l[0])),He(e,"gray",!0)},m(t,a){se(t,e,a)},p(t,a){a&257&&He(e,"filled",t[16]<t[8](t[0]))},d(t){t&&u(e)}}}function ft(l){let e;return{c(){e=h("div"),this.h()},l(t){e=d(t,"DIV",{class:!0}),_(e).forEach(u),this.h()},h(){c(e,"class","advancedChart__segment negative svelte-1uedy2n"),He(e,"filled",l[19]<l[8](l[14].value)),He(e,"red",!0)},m(t,a){se(t,e,a)},p(t,a){a&334&&He(e,"filled",t[19]<t[8](t[14].value))},d(t){t&&u(e)}}}function vt(l){let e,t,a=l[14].label+"",n,v,m,f,D=l[7](l[14].value)+"",k,C,g=l[16],P,b,V;const o=()=>l[10](f,g),y=()=>l[10](null,g);let r=Fe(Array(l[5])),p=[];for(let w=0;w<r.length;w+=1)p[w]=ft(ot(l,r,w));return{c(){e=h("div"),t=h("div"),n=q(a),v=S(),m=h("div"),f=h("div"),k=q(D),P=S(),b=h("div");for(let w=0;w<p.length;w+=1)p[w].c();V=S(),this.h()},l(w){e=d(w,"DIV",{class:!0});var i=_(e);t=d(i,"DIV",{class:!0});var E=_(t);n=z(E,a),E.forEach(u),v=F(i),m=d(i,"DIV",{class:!0});var I=_(m);f=d(I,"DIV",{class:!0,title:!0});var R=_(f);k=z(R,D),R.forEach(u),P=F(I),b=d(I,"DIV",{class:!0});var T=_(b);for(let U=0;U<p.length;U+=1)p[U].l(T);T.forEach(u),I.forEach(u),V=F(i),i.forEach(u),this.h()},h(){c(t,"class","advancedChart__label svelte-1uedy2n"),c(f,"class","advancedChart__value svelte-1uedy2n"),c(f,"title",C=l[7](l[14].value)),c(b,"class","advancedChart__bar svelte-1uedy2n"),c(m,"class","advancedChart__data svelte-1uedy2n"),c(e,"class","advancedChart__row svelte-1uedy2n")},m(w,i){se(w,e,i),s(e,t),s(t,n),s(e,v),s(e,m),s(m,f),s(f,k),o(),s(m,P),s(m,b);for(let E=0;E<p.length;E+=1)p[E]&&p[E].m(b,null);s(e,V)},p(w,i){if(l=w,i&78&&a!==(a=l[14].label+"")&&Y(n,a),i&78&&D!==(D=l[7](l[14].value)+"")&&Y(k,D),i&78&&C!==(C=l[7](l[14].value))&&c(f,"title",C),g!==l[16]&&(y(),g=l[16],o()),i&366){r=Fe(Array(l[5]));let E;for(E=0;E<r.length;E+=1){const I=ot(l,r,E);p[E]?p[E].p(I,i):(p[E]=ft(I),p[E].c(),p[E].m(b,null))}for(;E<p.length;E+=1)p[E].d(1);p.length=r.length}},d(w){w&&u(e),y(),ze(p,w)}}}function qt(l){let e,t,a,n=l[6]("IC.Real Value")+"",v,m,f,D,k=l[7](l[0])+"",C,g,P,b,V,o,y=Fe(Array(l[5])),r=[];for(let i=0;i<y.length;i+=1)r[i]=ut(ct(l,y,i));let p=Fe([{label:l[6]("IC.Estimated Taxes"),value:-l[1]},{label:l[6]("IC.Inflation Impact"),value:-l[2]},{label:l[6]("IC.Management Fees"),value:-l[3]}]),w=[];for(let i=0;i<3;i+=1)w[i]=vt(it(l,p,i));return{c(){e=h("div"),t=h("div"),a=h("div"),v=q(n),m=S(),f=h("div"),D=h("div"),C=q(k),P=S(),b=h("div");for(let i=0;i<r.length;i+=1)r[i].c();V=S(),o=h("div");for(let i=0;i<3;i+=1)w[i].c();this.h()},l(i){e=d(i,"DIV",{class:!0});var E=_(e);t=d(E,"DIV",{class:!0});var I=_(t);a=d(I,"DIV",{class:!0});var R=_(a);v=z(R,n),R.forEach(u),m=F(I),f=d(I,"DIV",{class:!0});var T=_(f);D=d(T,"DIV",{class:!0,title:!0});var U=_(D);C=z(U,k),U.forEach(u),P=F(T),b=d(T,"DIV",{class:!0});var M=_(b);for(let j=0;j<r.length;j+=1)r[j].l(M);M.forEach(u),T.forEach(u),I.forEach(u),V=F(E),o=d(E,"DIV",{class:!0});var O=_(o);for(let j=0;j<3;j+=1)w[j].l(O);O.forEach(u),E.forEach(u),this.h()},h(){c(a,"class","advancedChart__label svelte-1uedy2n"),c(D,"class","advancedChart__value svelte-1uedy2n"),c(D,"title",g=l[7](l[0])),c(b,"class","advancedChart__bar svelte-1uedy2n"),c(f,"class","advancedChart__data svelte-1uedy2n"),c(t,"class","advancedChart__row advancedChart__row--main svelte-1uedy2n"),c(o,"class","advancedChart__group svelte-1uedy2n"),c(e,"class","advancedChart svelte-1uedy2n")},m(i,E){se(i,e,E),s(e,t),s(t,a),s(a,v),s(t,m),s(t,f),s(f,D),s(D,C),l[9](D),s(f,P),s(f,b);for(let I=0;I<r.length;I+=1)r[I]&&r[I].m(b,null);s(e,V),s(e,o);for(let I=0;I<3;I+=1)w[I]&&w[I].m(o,null)},p(i,[E]){if(E&64&&n!==(n=i[6]("IC.Real Value")+"")&&Y(v,n),E&1&&k!==(k=i[7](i[0])+"")&&Y(C,k),E&1&&g!==(g=i[7](i[0]))&&c(D,"title",g),E&289){y=Fe(Array(i[5]));let I;for(I=0;I<y.length;I+=1){const R=ct(i,y,I);r[I]?r[I].p(R,E):(r[I]=ut(R),r[I].c(),r[I].m(b,null))}for(;I<r.length;I+=1)r[I].d(1);r.length=y.length}if(E&510){p=Fe([{label:i[6]("IC.Estimated Taxes"),value:-i[1]},{label:i[6]("IC.Inflation Impact"),value:-i[2]},{label:i[6]("IC.Management Fees"),value:-i[3]}]);let I;for(I=0;I<3;I+=1){const R=it(i,p,I);w[I]?w[I].p(R,E):(w[I]=vt(R),w[I].c(),w[I].m(o,null))}for(;I<3;I+=1)w[I].d(1)}},i:ye,o:ye,d(i){i&&u(e),l[9](null),ze(r,i),ze(w,i)}}}function zt(l,e,t){let a,n;Ne(l,qe,r=>t(5,a=r)),Ne(l,Le,r=>t(6,n=r));let v=0,m=0,f=0,D=0,k=0,C=[];const g=()=>{window.matchMedia("(max-width: 767px)").matches?qe.set(22):window.matchMedia("(max-width: 1439px)").matches?qe.set(40):qe.set(30)},P=async()=>{if(await bt(),!C.length)return;C.forEach(p=>p.style.minWidth="");const r=Math.max(...C.map(p=>p.getBoundingClientRect().width));C.forEach(p=>p.style.minWidth=`${r}px`)};mt(()=>{g(),P();const r=[window.matchMedia("(max-width: 767px)"),window.matchMedia("(max-width: 1439px)")];return r.forEach(p=>p.addEventListener("change",g)),()=>{r.forEach(p=>p.removeEventListener("change",g))}}),Te.subscribe(r=>{v=r.nominalValue,t(0,m=r.realValue),t(1,f=r.estimatedTaxes),t(2,D=r.inflationImpact),t(3,k=r.managementFees),P()});const b=r=>{const p=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(Math.abs(r));return r<0?`-${p}`:p},V=r=>v?Math.round(Math.abs(r)/v*a):0;function o(r){Ge[r?"unshift":"push"](()=>{C[0]=r,t(4,C)})}function y(r,p){Ge[r?"unshift":"push"](()=>{C[p+1]=r,t(4,C)})}return[m,f,D,k,C,a,n,b,V,o,y]}class Yt extends Me{constructor(e){super(),We(this,e,zt,qt,Se,{})}}function jt(l){let e=l[3],t,a,n=ht();return{c(){n.c(),t=Ke()},l(v){n.l(v),t=Ke()},m(v,m){n.m(v,m),se(v,t,m),a=!0},p(v,m){m&8&&Se(e,e=v[3])?(It(),oe(n,1,1,ye),gt(),n=ht(),n.c(),ie(n,1),n.m(t.parentNode,t)):n.p(v,m)},i(v){a||(ie(n),a=!0)},o(v){oe(n),a=!1},d(v){v&&u(t),n.d(v)}}}function Ot(l){let e,t;return e=new Bt({}),{c(){de(e.$$.fragment)},l(a){me(e.$$.fragment,a)},m(a,n){_e(e,a,n),t=!0},p:ye,i(a){t||(ie(e.$$.fragment,a),t=!0)},o(a){oe(e.$$.fragment,a),t=!1},d(a){Ie(e,a)}}}function ht(l){let e,t;return e=new Yt({}),{c(){de(e.$$.fragment)},l(a){me(e.$$.fragment,a)},m(a,n){_e(e,a,n),t=!0},p:ye,i(a){t||(ie(e.$$.fragment,a),t=!0)},o(a){oe(e.$$.fragment,a),t=!1},d(a){Ie(e,a)}}}function Gt(l){let e,t,a,n,v,m,f=l[2]("IC.Your Monthly Profit")+"",D,k,C,g=l[2]("IC.Nominal Value")+"",P,b,V,o=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(l[0])+"",y,r,p,w,i,E,I,R,T,U,M,O,j=l[2]("IC.Disclaimer")+"",ee,G,Z,ae=l[2]("IC.Note: These figures are projections, not guarantees. Market volatility is not factored into this linear calculation.")+"",K,L,B,Q,W=l[2]("IC.Talk to us")+"",H,X,ce,$;const ue=[Ot,jt],re=[];function ke(J,x){return J[1]==="basic"?0:1}return E=ke(l),I=re[E]=ue[E](l),{c(){e=h("div"),t=h("div"),a=h("div"),n=h("div"),v=h("div"),m=h("h2"),D=q(f),k=S(),C=h("p"),P=q(g),b=S(),V=h("div"),y=q(o),r=S(),p=h("hr"),w=S(),i=h("div"),I.c(),R=S(),T=h("div"),U=h("hr"),M=S(),O=h("h5"),ee=q(j),G=S(),Z=h("p"),K=q(ae),L=S(),B=h("div"),Q=h("button"),H=q(W),this.h()},l(J){e=d(J,"DIV",{class:!0});var x=_(e);t=d(x,"DIV",{class:!0});var ge=_(t);a=d(ge,"DIV",{class:!0});var te=_(a);n=d(te,"DIV",{class:!0});var fe=_(n);v=d(fe,"DIV",{class:!0});var Ee=_(v);m=d(Ee,"H2",{class:!0});var N=_(m);D=z(N,f),N.forEach(u),k=F(Ee),C=d(Ee,"P",{class:!0});var A=_(C);P=z(A,g),A.forEach(u),Ee.forEach(u),b=F(fe),V=d(fe,"DIV",{class:!0});var ne=_(V);y=z(ne,o),r=F(ne),p=d(ne,"HR",{class:!0}),ne.forEach(u),w=F(fe),i=d(fe,"DIV",{class:!0});var be=_(i);I.l(be),be.forEach(u),R=F(fe),T=d(fe,"DIV",{class:!0});var le=_(T);U=d(le,"HR",{class:!0}),M=F(le),O=d(le,"H5",{class:!0});var ve=_(O);ee=z(ve,j),ve.forEach(u),G=F(le),Z=d(le,"P",{class:!0});var Ce=_(Z);K=z(Ce,ae),Ce.forEach(u),L=F(le),B=d(le,"DIV",{class:!0});var Ve=_(B);Q=d(Ve,"BUTTON",{class:!0});var he=_(Q);H=z(he,W),he.forEach(u),Ve.forEach(u),le.forEach(u),fe.forEach(u),te.forEach(u),ge.forEach(u),x.forEach(u),this.h()},h(){c(m,"class","svelte-c5v040"),c(C,"class","svelte-c5v040"),c(v,"class","investmentProfitCalculator__header svelte-c5v040"),c(p,"class","svelte-c5v040"),c(V,"class","investmentProfitCalculator__value svelte-c5v040"),c(i,"class","investmentProfitCalculator__chart svelte-c5v040"),c(U,"class","svelte-c5v040"),c(O,"class","svelte-c5v040"),c(Z,"class","svelte-c5v040"),c(Q,"class","svelte-c5v040"),c(B,"class","investmentProfitCalculator__cta svelte-c5v040"),c(T,"class","investmentProfitCalculator__footer svelte-c5v040"),c(n,"class","investmentProfitCalculator__content svelte-c5v040"),c(a,"class","investmentProfitCalculator"),c(t,"class","container svelte-c5v040"),c(e,"class","block-profit svelte-c5v040")},m(J,x){se(J,e,x),s(e,t),s(t,a),s(a,n),s(n,v),s(v,m),s(m,D),s(v,k),s(v,C),s(C,P),s(n,b),s(n,V),s(V,y),s(V,r),s(V,p),s(n,w),s(n,i),re[E].m(i,null),s(n,R),s(n,T),s(T,U),s(T,M),s(T,O),s(O,ee),s(T,G),s(T,Z),s(Z,K),s(T,L),s(T,B),s(B,Q),s(Q,H),X=!0,ce||($=[Re(Q,"click",l[4]),Re(Q,"keydown",l[5])],ce=!0)},p(J,[x]){(!X||x&4)&&f!==(f=J[2]("IC.Your Monthly Profit")+"")&&Y(D,f),(!X||x&4)&&g!==(g=J[2]("IC.Nominal Value")+"")&&Y(P,g),(!X||x&1)&&o!==(o=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(J[0])+"")&&Y(y,o);let ge=E;E=ke(J),E===ge?re[E].p(J,x):(It(),oe(re[ge],1,1,()=>{re[ge]=null}),gt(),I=re[E],I?I.p(J,x):(I=re[E]=ue[E](J),I.c()),ie(I,1),I.m(i,null)),(!X||x&4)&&j!==(j=J[2]("IC.Disclaimer")+"")&&Y(ee,j),(!X||x&4)&&ae!==(ae=J[2]("IC.Note: These figures are projections, not guarantees. Market volatility is not factored into this linear calculation.")+"")&&Y(K,ae),(!X||x&4)&&W!==(W=J[2]("IC.Talk to us")+"")&&Y(H,W)},i(J){X||(ie(I),X=!0)},o(J){oe(I),X=!1},d(J){J&&u(e),re[E].d(),ce=!1,dt($)}}}function Kt(l,e,t){let a,n;Ne(l,Le,k=>t(2,a=k)),Ne(l,qe,k=>t(3,n=k));let v=0,m="basic";return Te.subscribe(k=>{t(0,v=k.nominalValue),t(1,m=k.mode)}),[v,m,a,n,()=>Je.set(!0),k=>{k.key==="Escape"&&Je.set(!1)}]}class Jt extends Me{constructor(e){super(),We(this,e,Kt,Gt,Se,{})}}function Qt(l){let e,t,a,n,v,m,f,D,k,C,g,P,b,V;return e=new kt({props:{image:wt,type:"website",title:l[0]("IC.Investment Calculator: Future Value, Returns, Inflation & Fees"),description:l[0]("IC.Calculate future investment value with monthly contributions, expected returns, inflation, taxes, and fees. Use our free investment calculator to compare basic and advanced scenarios and see how your money may grow over time.")}}),a=new Ct({}),f=new At({}),k=new Jt({}),g=new Nt({}),b=new pt({}),{c(){de(e.$$.fragment),t=S(),de(a.$$.fragment),n=S(),v=h("section"),m=h("div"),de(f.$$.fragment),D=S(),de(k.$$.fragment),C=S(),de(g.$$.fragment),P=S(),de(b.$$.fragment),this.h()},l(o){me(e.$$.fragment,o),t=F(o),me(a.$$.fragment,o),n=F(o),v=d(o,"SECTION",{class:!0});var y=_(v);m=d(y,"DIV",{class:!0});var r=_(m);me(f.$$.fragment,r),D=F(r),me(k.$$.fragment,r),C=F(r),me(g.$$.fragment,r),r.forEach(u),P=F(y),me(b.$$.fragment,y),y.forEach(u),this.h()},h(){c(m,"class","main svelte-14q7bee"),c(v,"class","layout")},m(o,y){_e(e,o,y),se(o,t,y),_e(a,o,y),se(o,n,y),se(o,v,y),s(v,m),_e(f,m,null),s(m,D),_e(k,m,null),s(m,C),_e(g,m,null),s(v,P),_e(b,v,null),V=!0},p(o,[y]){const r={};y&1&&(r.title=o[0]("IC.Investment Calculator: Future Value, Returns, Inflation & Fees")),y&1&&(r.description=o[0]("IC.Calculate future investment value with monthly contributions, expected returns, inflation, taxes, and fees. Use our free investment calculator to compare basic and advanced scenarios and see how your money may grow over time.")),e.$set(r)},i(o){V||(ie(e.$$.fragment,o),ie(a.$$.fragment,o),ie(f.$$.fragment,o),ie(k.$$.fragment,o),ie(g.$$.fragment,o),ie(b.$$.fragment,o),V=!0)},o(o){oe(e.$$.fragment,o),oe(a.$$.fragment,o),oe(f.$$.fragment,o),oe(k.$$.fragment,o),oe(g.$$.fragment,o),oe(b.$$.fragment,o),V=!1},d(o){o&&(u(t),u(n),u(v)),Ie(e,o),Ie(a,o),Ie(f),Ie(k),Ie(g),Ie(b)}}}function Xt(l,e,t){let a;return Ne(l,Le,n=>t(0,a=n)),[a]}class nl extends Me{constructor(e){super(),We(this,e,Xt,Qt,Se,{})}}export{nl as component};