@zeniai/web-app-ui 5.0.5-dev → 5.0.5-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/assets/{AddressRoutes-BJ6qdoLD.js → AddressRoutes-Dg5wTso4.js} +1 -1
  2. package/dist/assets/{AddressScreen-CTET3dvy.js → AddressScreen-BmUTIXDQ.js} +1 -1
  3. package/dist/assets/{AiCfoScreen-C696xm-F.js → AiCfoScreen-DOESDB_y.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-D5NqeVu0.js → BillPayApprovalRoutes-Devc75aa.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-Ck98EEir.js → BillPayRoutes-CVZSwrXO.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-Bp1i3y8M.js → BusinessVerificationPageScreen-rlQFJbcN.js} +1 -1
  7. package/dist/assets/{ChargeCardRoutes-Brqn9urb.js → ChargeCardRoutes-DhwHiThG.js} +1 -1
  8. package/dist/assets/{CompanyPassportScreen-Co-nMIHe.js → CompanyPassportScreen-OV_RlgTD.js} +1 -1
  9. package/dist/assets/{ConnectionAuthScreen-Y4nfaNNV.js → ConnectionAuthScreen-CXSm9A3K.js} +1 -1
  10. package/dist/assets/{CustomerOnboardingAuthScreen-gxNylpwG.js → CustomerOnboardingAuthScreen-kIRiytnK.js} +1 -1
  11. package/dist/assets/{CustomerOnboardingRoutes-BRWqx_0f.js → CustomerOnboardingRoutes-VbVi0pO3.js} +1 -1
  12. package/dist/assets/{DashboardRoutes-B3U1f4u1.js → DashboardRoutes-Djz9fKJS.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-C4r-hTkj.js → DefaultTenantHome-xquI5mdg.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-CzTl9QXc.js → DomesticWireDetailScreen-BPKqOjuc.js} +1 -1
  15. package/dist/assets/{DrawerScreen-Wjya0jbS.js → DrawerScreen-BAinUAiT.js} +1 -1
  16. package/dist/assets/{EntityDetailRoutes-BiBUkyBy.js → EntityDetailRoutes-C426Mprw.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-Mno1g-90.js → ExpenseAutomationRoutes-BLZeM7AE.js} +1 -1
  18. package/dist/assets/{FeaturePreviewScreen-DfsTuVkN.js → FeaturePreviewScreen-BOGEp7mZ.js} +1 -1
  19. package/dist/assets/{MagicLinkRoutes-BxQ-5ayp.js → MagicLinkRoutes-CFl_3geL.js} +1 -1
  20. package/dist/assets/{MagicLinkSignInScreen-DaLkRpCV.js → MagicLinkSignInScreen-BDCry5qq.js} +1 -1
  21. package/dist/assets/{MobileAppDrawer-Clk7FI85.js → MobileAppDrawer-DkCKi5Fn.js} +1 -1
  22. package/dist/assets/{NotFoundScreen-CAOLTLHp.js → NotFoundScreen-DPOmbROX.js} +1 -1
  23. package/dist/assets/{NotificationRoutes-Et6v_O-z.js → NotificationRoutes-DZhNQVLE.js} +1 -1
  24. package/dist/assets/{PandLWithForecastRoutes-PVFrj_hl.js → PandLWithForecastRoutes-DSOuY0Sq.js} +1 -1
  25. package/dist/assets/{PeopleRoutes-AzcRD0Yf.js → PeopleRoutes-DJ5vAQLD.js} +1 -1
  26. package/dist/assets/{PerformanceRoutes-GWU_y7En.js → PerformanceRoutes-B6wY-7PG.js} +1 -1
  27. package/dist/assets/{QBOConnectionScreen-CcDeJYBx.js → QBOConnectionScreen-CaGgw5Mo.js} +1 -1
  28. package/dist/assets/{ReferralListScreen-DgyLr49m.js → ReferralListScreen-mDnpbI4k.js} +1 -1
  29. package/dist/assets/{ReimbursementApprovalRoutes-D5db9hma.js → ReimbursementApprovalRoutes-CiEDO6E-.js} +1 -1
  30. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-N-cMdQ-A.js → ReimbursementApprovalRuleDetailScreen-B4m_Prkq.js} +1 -1
  31. package/dist/assets/{ReimbursementRoutes-JgtzXn1e.js → ReimbursementRoutes-DvqIKhWH.js} +1 -1
  32. package/dist/assets/{ReportsRoutes-Bzvx_8qb.js → ReportsRoutes-B55Mm_bZ.js} +1 -1
  33. package/dist/assets/{RewardsRoutes-DHQCeZWs.js → RewardsRoutes-D3siXOf6.js} +1 -1
  34. package/dist/assets/{ScreenRoutes-CsRNaB7V.js → ScreenRoutes-CR4LbxNH.js} +2 -2
  35. package/dist/assets/{SettingsRoutes-DNYnZ26G.js → SettingsRoutes-BAZtLZO7.js} +1 -1
  36. package/dist/assets/{SetupPagesScreen-CmJWX7Ir.js → SetupPagesScreen-Ck1fJ-gD.js} +1 -1
  37. package/dist/assets/{SignInScreen-DxjD1CPo.js → SignInScreen-BGmMngZm.js} +1 -1
  38. package/dist/assets/{SignOutScreen-tGSzKdMS.js → SignOutScreen-B7Ls3yjH.js} +1 -1
  39. package/dist/assets/{TaskListScreen-TQmA5ZGq.js → TaskListScreen-C_FkV4uq.js} +1 -1
  40. package/dist/assets/{TaskRoutes-DBh6aj7c.js → TaskRoutes-DubqoBe-.js} +1 -1
  41. package/dist/assets/{TransactionDetailRoutes-Cjt29p_e.js → TransactionDetailRoutes-BLrzFmca.js} +1 -1
  42. package/dist/assets/{TransactionDetailScreen-BQZTcMhs.js → TransactionDetailScreen-Dq4Bv7Yw.js} +1 -1
  43. package/dist/assets/{TransactionListRoutes-CcuSwiOJ.js → TransactionListRoutes-C4fPXh7s.js} +1 -1
  44. package/dist/assets/{TreasuryRoutes-DpMwhemK.js → TreasuryRoutes-CMZcHv3V.js} +1 -1
  45. package/dist/assets/{VendorsRoutes-frUR5tPv.js → VendorsRoutes-BlU_E8-4.js} +1 -1
  46. package/dist/assets/{WiseConfirmationScreen-B2x2znqS.js → WiseConfirmationScreen-DcnsS_39.js} +1 -1
  47. package/dist/assets/{ZeniAccountRoutes-D-YpoVj0.js → ZeniAccountRoutes-C1H652qU.js} +1 -1
  48. package/dist/assets/{ZeniAccountStatementScreen-C3hVq6G3.js → ZeniAccountStatementScreen-BUk4IFgX.js} +1 -1
  49. package/dist/assets/{analyticsHelper-MCISw32F.js → analyticsHelper-UdYvDCQO.js} +1 -1
  50. package/dist/assets/{getLocaleForTenant-C0C8sNl1.js → getLocaleForTenant-B5XIMdPl.js} +1 -1
  51. package/dist/assets/{index-CJiQhPf1.js → index-CtIv1cPm.js} +5 -5
  52. package/dist/assets/{routePaths-BJH4smh2.js → routePaths-CAPvhOau.js} +1 -1
  53. package/dist/assets/{useAskAiCfoHostNavButtonProps-YJt2mAQE.js → useAskAiCfoHostNavButtonProps-D6kPXOEr.js} +1 -1
  54. package/dist/assets/{useFetchSuggestedQuestionsWhenReady-bhvjxs2J.js → useFetchSuggestedQuestionsWhenReady-D_w411d6.js} +1 -1
  55. package/dist/assets/{useInitialThreadRequest-zJW0Aqvd.js → useInitialThreadRequest-BTSPvXZ7.js} +1 -1
  56. package/dist/assets/{withTransactionSidePanel-CslN6Fxb.js → withTransactionSidePanel-BRNXRpXy.js} +1 -1
  57. package/dist/index.html +1 -1
  58. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-ZCc1K30S.js","assets/sentry-Bp45iw9z.js","assets/core-a8i-_0Kh.js","assets/index-DYi-byqV.js","assets/DefaultTenantHome-C4r-hTkj.js","assets/mui-B8yatdty.js","assets/getLocaleForTenant-C0C8sNl1.js","assets/analytics-vyykHm3I.js","assets/utils-ikosPjSL.js","assets/ScreenRoutes-CsRNaB7V.js","assets/analyticsHelper-MCISw32F.js","assets/ConnectionAuthScreen-Y4nfaNNV.js","assets/QBOConnectionScreen-CcDeJYBx.js","assets/empty-9qzWTKUd.js","assets/index-DTPu_Uy6.js","assets/url-asQ2Q_hT.js","assets/index-DvmHdckU.js","assets/decodeURIComponentSafe-B_IVipCF.js","assets/SignInScreen-DxjD1CPo.js","assets/useDeviceId-AHvFaHki.js","assets/MagicLinkSignInScreen-DaLkRpCV.js","assets/NotFoundScreen-CAOLTLHp.js","assets/MagicLinkRoutes-BxQ-5ayp.js","assets/WiseConfirmationScreen-B2x2znqS.js","assets/CustomerOnboardingAuthScreen-gxNylpwG.js","assets/SignOutScreen-tGSzKdMS.js"])))=>i.map(i=>d[i]);
2
- import{a as g,b as T,c as Hee,R as x5t,p as tU,e as pue,r as Au,g as dGe,f as y5t,s as hue,i as b5t,w as w5t,j as C5t,S as v5t,k as S5t,l as $5t,m as k5t,n as A5t,o as j5t}from"./sentry-Bp45iw9z.js";import{L as E5t,C as mue,_ as i0,a as ZE,b as I5t,c as EF,d as JE,u as uGe,T as L5t,e as T5t,f as D5t,g as P5t,h as pGe,i as B5t,k as M5t,j as Bt,l as _5t}from"./liveblocks-ZAKgWoPK.js";import{f as hGe,r as ra,R as K8,P as ll,u as gp,m as mGe,g as hi,h as Ff,O as z5t,N as gGe,i as LA,j as IF,k as O5t,l as F5t,n as R5t,o as Vp,p as N5t,B as V5t}from"./core-a8i-_0Kh.js";import{B as gue,bl as H5t,bm as Y7,bn as fGe,bo as xGe,bp as Ut,bq as yS,br as D2,bs as U5t,bt as Zf,bu as Na,bv as za,bw as W5t,bx as Q5t,by as xy,bz as q7,bA as Gre,bB as on,bC as yGe,bD as bGe,bE as Yre,bF as Cp,bG as Ng,bH as qc,bI as yf,bJ as G5t,bK as Ll,bL as Y5t,bM as bS,bN as q5t,bO as K5t,bP as Z5t,bQ as Nx,bR as J5t,bS as fue,bT as X5t,bU as e7t,bV as t7t,bW as n7t,bX as o7t,bY as i7t,bZ as r7t,b_ as a7t,b$ as c7,c0 as LF,c1 as l7t,c2 as TF,c3 as DF,c4 as PF,c5 as qre,c6 as BF,c7 as Lv,c8 as Tv,c9 as MF,ca as s7t,cb as c7t,cc as xue,cd as Uee,ce as d7t,cf as u7t,cg as x1,ch as wGe,ci as p7t,cj as a9,ck as yue,cl as h7t,cm as m7t,cn as g7t,co as yy,cp as by,cq as CGe,cr as vGe,cs as Kre,ct as f7t,cu as x7t,cv as k_,cw as SGe,cx as y7t,cy as $Ge,cz as b7t,cA as TA,cB as bue,cC as w7t,cD as kGe,cE as AGe,cF as jGe,cG as C7t,cH as wS,cI as wue,cJ as v7t,cK as S7t,cL as EGe,cM as $7t,cN as IGe,cO as Cue,cP as Zc,cQ as dl,cR as k7t,cS as Dv,cT as Sd,cU as LGe,cV as A7t,cW as Gj,cX as vx,cY as oa,cZ as j7t,c_ as E7t,c$ as I7t,d0 as mL,d1 as wh,d2 as L7t,d3 as T7t,d4 as D7t,d5 as P7t,d6 as gL,d7 as Vx,d8 as _F,d9 as B7t,da as M7t,db as wy,dc as Ed,dd as TGe,de as DGe,df as _7t,dg as Wee,dh as z7t,di as c1,dj as A7,dk as Zre,dl as PGe,dm as BGe,dn as MGe,dp as _Ge,dq as zGe,dr as OGe,ds as O7t,dt as vue,du as F7t,_ as S1,dv as Jre,dw as R7t,dx as Sue,dy as zF,dz as N7t,dA as V7t,dB as FGe,dC as H7t,dD as $ue,dE as _u,dF as bf,dG as oj,dH as ij,dI as U7t,dJ as W7t,dK as RGe,dL as Qee,dM as hM,dN as Q7t,dO as G7t,dP as Y7t,dQ as q7t,dR as K7t,dS as Z7t,dT as J7t,dU as X7t,dV as e6t,dW as t6t,dX as NGe,dY as wC,dZ as n6t,d_ as o6t,d$ as Xre,e0 as eae,e1 as CS,e2 as tae,e3 as nae,e4 as oae,e5 as iae,e6 as i6t,e7 as rae,e8 as r6t,e9 as a6t,ea as VGe,eb as kue,ec as l6t,ed as aae,ee as s6t,ef as c6t,eg as d6t,eh as u6t,ei as p6t,ej as h6t,ek as Aue,el as HGe,em as m6t,en as g6t,eo as UGe,ep as WGe,eq as QGe,er as GGe,es as YGe,et as qGe,eu as f6t,ev as x6t,ew as KGe,ex as y6t,ey as ZGe,ez as JGe,eA as b6t,eB as w6t,eC as C6t,eD as v6t,eE as S6t,eF as $6t,eG as k6t,eH as A6t,eI as j6t,v as E6t,eJ as I6t,eK as L6t,eL as lae,eM as ju,eN as XGe,eO as XE,eP as T6t,eQ as D6t,eR as eYe,eS as P6t,eT as tYe,eU as B6t,eV as nYe,eW as M6t,eX as _6t,eY as z6t,eZ as O6t,e_ as F6t,e$ as jue,f0 as R6t,f1 as oYe,f2 as db,f3 as sae,f4 as Eue,f5 as N6t,f6 as Iue,f7 as V6t,f8 as H6t,f9 as iYe,fa as rYe,fb as U6t,fc as W6t,fd as Q6t,fe as G6t,ff as Y6t,fg as q6t,fh as A_,fi as cae,fj as aYe,fk as K6t,fl as rj,fm as Z6t,fn as J6t,fo as X6t,fp as e9t,fq as t9t,fr as n9t,fs as o9t,ft as i9t,fu as r9t,fv as a9t,fw as l9t,fx as lYe,fy as s9t,fz as c9t,fA as d9t,fB as Lue,fC as u9t,fD as p9t,fE as h9t,fF as Gee,fG as m9t,fH as g9t,fI as f9t,fJ as x9t,fK as y9t,fL as Tue,fM as b9t,fN as w9t}from"./zeni-epic-state-ZCc1K30S.js";import{n as l,C as sYe,T as cYe,G as eI,j as Qo,c as Pe,k as zn,u as dae,a as Yee,A as C9t,b as v9t,I as S9t,d as $9t,D as j_,S as dYe}from"./mui-B8yatdty.js";import{L as Sx}from"./lottie-DN0gYkdx.js";import{r as k9t,m as uh}from"./analytics-vyykHm3I.js";import{u as jp}from"./plaid-CP3hLhCR.js";import{g as A9t,O as j9t,H as E9t,S as I9t,T as L9t,a as T9t,u as D9t,b as P9t}from"./dnd-CDdU3ON0.js";import{l as B9t}from"./stripe-DMRn4zHo.js";import{r as $s}from"./lexical-BzneVI9m.js";import{D as qee,P as Kee,_ as uYe,a as pYe}from"./pdf-C4rebPwh.js";import{R as Yj,G as Hx,X as Kl,Y as Tl,H as Ux,I as ed,J as vp,K as Cy,L as Ep,M as M9t,N as vS,O as hYe,P as _9t,Q as OF,S as GC,U as z9t,V as uae,W as O9t,Z as F9t,_ as R9t}from"./recharts-BhJEeZEG.js";import{r as N9t}from"./utils-ikosPjSL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e8372a78-b142-439a-9ecf-ef715095d517",e._sentryDebugIdIdentifier="sentry-dbid-e8372a78-b142-439a-9ecf-ef715095d517")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0})}function n(o){if(o.ep)return;o.ep=!0;const i=function(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}(o);fetch(o.href,i)}})();var Due,fL={},V9t=function(){if(Due)return fL;Due=1;var e=hGe();return fL.createRoot=e.createRoot,fL.hydrateRoot=e.hydrateRoot,fL}(),fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hee<"u"?Hee:typeof self<"u"?self:{};function bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pue,Bue,Mue={exports:{}},m$={};function mYe(){return Bue||(Bue=1,Mue.exports=function(){if(Pue)return m$;Pue=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,m={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return m$.Fragment=o,m$.jsx=c,m$.jsxs=c,m$}()),Mue.exports}var t=mYe();const H9t=g.createContext(null),nU={didCatch:!1,error:null};let U9t=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=nU}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{args:a,reason:"imperative-api"}),this.setState(nU)}}componentDidCatch(e,n){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:o}=this.state,{resetKeys:i}=this.props;var a,s;o&&n.error!==null&&function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==d.length||c.some((u,p)=>!Object.is(u,d[p]))}(e.resetKeys,i)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(nU))}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const d={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(o)c=g.createElement(o,d);else{if(i===void 0)throw s;c=i}}return g.createElement(H9t.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var _ue,oU={exports:{}},zue,Oue,iU,W9t=(_ue||(_ue=1,Oue=oU.exports,iU=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",P=1e12,z=1e9,M=1e6,V="",F=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=P&&!b||b==="t"?(I+=A.abbreviations.trillion,m/=P):w<P&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,m/=z):w<z&&w>=M&&!b||b==="m"?(I+=A.abbreviations.million,m/=M):(w<M&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,m/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=m.toString().split(".")[0],v=f.split(".")[1],k=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),V=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):V=e._.toFixed(m,v.length,x),C=V.split(".")[0],V=e._.includes(V,".")?A.delimiters.decimal+V.split(".")[1]:"",L&&Number(V.slice(1))===0&&(V="")):C=e._.toFixed(m,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),F=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return k>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+V+(I||""),E?j=(E&&F?"(":"")+j+(E&&F?")":""):$>=0?j=$===0?(F?"-":"+")+j:j+(F?"-":"+"):F&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(m),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(m,f){var x,y,b,w=this._value,C=m||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(m){return o.suffixes.indexOf(m)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(m,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(zue=oU).exports?zue.exports=iU():Oue.numeral=iU()),oU.exports);const jf=bi(W9t);function Rf(e,...n){const o=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}const Ef="$$material";var Q9t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function G9t(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var Y9t=/[A-Z]|^ms/g,q9t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gYe=function(e){return e.charCodeAt(1)===45},Fue=function(e){return e!=null&&typeof e!="boolean"},rU=G9t(function(e){return gYe(e)?e:e.replace(Y9t,"-$&").toLowerCase()}),Rue=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(q9t,function(o,i,a){return V5={name:i,styles:a,next:V5},i})}return Q9t[e]===1||gYe(e)||typeof n!="number"||n===0?n:n+"px"};function E_(e,n,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":var a=o;if(a.anim===1)return V5={name:a.name,styles:a.styles,next:V5},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)V5={name:c.name,styles:c.styles,next:V5},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var m=0;m<p.length;m++)h+=E_(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;Fue(y)&&(h+=rU(f)+":"+Rue(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)Fue(x[b])&&(h+=rU(f)+":"+Rue(f,x[b])+";");else{var w=E_(d,u,x);switch(f){case"animation":case"animationName":h+=rU(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var V5,Nue=/label:\s*([^\s;{]+)\s*(;|$)/g,Vue,Hue,Uue,Wue,Que,Gue={exports:{}};function K9t(){return Hue?Vue:(Hue=1,Vue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Z9t(){if(Wue)return Uue;Wue=1;var e=K9t();function n(){}function o(){}return o.resetWarningCache=n,Uue=function(){function i(c,d,u,p,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function a(){return i}i.isRequired=i;var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return s.PropTypes=s,s}}function pae(){return Que||(Que=1,Gue.exports=Z9t()()),Gue.exports}const Cn=bi(pae());var fYe=function(){function e(o){var i=this;this._insertTag=function(a){var s;s=i.tags.length===0?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,s),i.tags.push(a)},this.isSpeedy=o.speedy===void 0||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(s){var c=document.createElement("style");return c.setAttribute("data-emotion",s.key),s.nonce!==void 0&&c.setAttribute("nonce",s.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(s){if(s.sheet)return s.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===s)return document.styleSheets[c]}(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),md="-ms-",Yue="-moz-",Er="-webkit-",xYe="comm",hae="rule",mae="decl",yYe="@keyframes",J9t=Math.abs,FF=String.fromCharCode,X9t=Object.assign;function bYe(e){return e.trim()}function Lr(e,n,o){return e.replace(n,o)}function Zee(e,n){return e.indexOf(n)}function Uc(e,n){return 0|e.charCodeAt(n)}function qj(e,n,o){return e.slice(n,o)}function ng(e){return e.length}function gae(e){return e.length}function xL(e,n){return n.push(e),e}var RF=1,Pv=1,wYe=0,Cu=0,ys=0,SS="";function NF(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:RF,column:Pv,length:c,return:""}}function g$(e,n){return X9t(NF("",null,null,"",null,null,0),e,{length:-e.length},n)}function fp(){return ys=Cu<wYe?Uc(SS,Cu++):0,Pv++,ys===10&&(Pv=1,RF++),ys}function Lg(){return Uc(SS,Cu)}function mM(){return Cu}function tI(e,n){return qj(SS,e,n)}function Kj(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function CYe(e){return RF=Pv=1,wYe=ng(SS=e),Cu=0,[]}function vYe(e){return SS="",e}function gM(e){return bYe(tI(Cu-1,Jee(e===91?e+2:e===40?e+1:e)))}function e8t(e){for(;(ys=Lg())&&ys<33;)fp();return Kj(e)>2||Kj(ys)>3?"":" "}function t8t(e,n){for(;--n&&fp()&&!(ys<48||ys>102||ys>57&&ys<65||ys>70&&ys<97););return tI(e,mM()+(n<6&&Lg()==32&&fp()==32))}function Jee(e){for(;fp();)switch(ys){case e:return Cu;case 34:case 39:e!==34&&e!==39&&Jee(ys);break;case 40:e===41&&Jee(e);break;case 92:fp()}return Cu}function n8t(e,n){for(;fp()&&e+ys!==57&&(e+ys!==84||Lg()!==47););return"/*"+tI(n,Cu-1)+"*"+FF(e===47?e:fp())}function o8t(e){for(;!Kj(Lg());)fp();return tI(e,Cu)}function i8t(e){return vYe(fM("",null,null,null,[""],e=CYe(e),0,[0],e))}function fM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,$="",k=a,j=s,A=i,E=$;w;)switch(y=v,v=fp()){case 40:if(y!=108&&Uc(E,m-1)==58){Zee(E+=Lr(gM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=gM(v);break;case 9:case 10:case 13:case 32:E+=e8t(y);break;case 92:E+=t8t(mM()-1,7);continue;case 47:switch(Lg()){case 42:case 47:xL(r8t(n8t(fp(),mM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=ng(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Lr(E,/\f/g,"")),x>0&&ng(E)-m&&xL(x>32?Kue(E+";",i,o,m-1):Kue(Lr(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(xL(A=que(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)fM(E,n,A,A,k,s,m,d,j);else switch(f===99&&Uc(E,3)===110?100:f){case 100:case 108:case 109:case 115:fM(e,A,A,i&&xL(que(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:fM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+ng(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(ys=Cu>0?Uc(SS,--Cu):0,Pv--,ys===10&&(Pv=1,RF--),ys==125))continue}switch(E+=FF(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(ng(E)-1)*C,C=1;break;case 64:Lg()===45&&(E+=gM(fp())),f=Lg(),h=m=ng($=E+=o8t(mM())),v++;break;case 45:y===45&&ng(E)==2&&(b=0)}}return s}function que(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=gae(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=qj(e,m+1,m=J9t(b=c[y])),$=e;C<x;++C)($=bYe(b>0?f[C]+" "+v:Lr(v,/&\f/g,f[C])))&&(u[w++]=$);return NF(e,n,o,a===0?hae:d,u,p,h)}function r8t(e,n,o){return NF(e,n,o,xYe,FF(ys),qj(e,2,-2),0)}function Kue(e,n,o,i){return NF(e,n,o,mae,qj(e,0,i),qj(e,i+1,-1),i)}function YC(e,n){for(var o="",i=gae(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function a8t(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mae:return e.return=e.return||e.value;case xYe:return"";case yYe:return e.return=e.value+"{"+YC(e.children,i)+"}";case hae:e.value=e.props.join(",")}return ng(o=YC(e.children,i))?e.return=e.value+"{"+o+"}":""}function l8t(e){return function(n){n.root||(n=n.return)&&e(n)}}var s8t=function(e,n,o){for(var i=0,a=0;i=a,a=Lg(),i===38&&a===12&&(n[o]=1),!Kj(a);)fp();return tI(e,Cu)},c8t=function(e,n){return vYe(function(o,i){var a=-1,s=44;do switch(Kj(s)){case 0:s===38&&Lg()===12&&(i[a]=1),o[a]+=s8t(Cu-1,i,a);break;case 2:o[a]+=gM(s);break;case 4:if(s===44){o[++a]=Lg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=FF(s)}while(s=fp());return o}(CYe(e),n))},Zue=new WeakMap,d8t=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var n=e.value,o=e.parent,i=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(!(o=o.parent))return;if((e.props.length!==1||n.charCodeAt(0)===58||Zue.get(o))&&!i){Zue.set(e,!0);for(var a=[],s=c8t(n,a),c=o.props,d=0,u=0;d<s.length;d++)for(var p=0;p<c.length;p++,u++)e.props[u]=a[d]?s[d].replace(/&\f/g,c[p]):c[p]+" "+s[d]}}},u8t=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function SYe(e,n){switch(function(o,i){return 45^Uc(o,0)?(((i<<2^Uc(o,0))<<2^Uc(o,1))<<2^Uc(o,2))<<2^Uc(o,3):0}(e,n)){case 5103:return Er+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Er+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Er+e+Yue+e+md+e+e;case 6828:case 4268:return Er+e+md+e+e;case 6165:return Er+e+md+"flex-"+e+e;case 5187:return Er+e+Lr(e,/(\w+).+(:[^]+)/,Er+"box-$1$2"+md+"flex-$1$2")+e;case 5443:return Er+e+md+"flex-item-"+Lr(e,/flex-|-self/,"")+e;case 4675:return Er+e+md+"flex-line-pack"+Lr(e,/align-content|flex-|-self/,"")+e;case 5548:return Er+e+md+Lr(e,"shrink","negative")+e;case 5292:return Er+e+md+Lr(e,"basis","preferred-size")+e;case 6060:return Er+"box-"+Lr(e,"-grow","")+Er+e+md+Lr(e,"grow","positive")+e;case 4554:return Er+Lr(e,/([^-])(transform)/g,"$1"+Er+"$2")+e;case 6187:return Lr(Lr(Lr(e,/(zoom-|grab)/,Er+"$1"),/(image-set)/,Er+"$1"),e,"")+e;case 5495:case 3959:return Lr(e,/(image-set\([^]*)/,Er+"$1$`$1");case 4968:return Lr(Lr(e,/(.+:)(flex-)?(.*)/,Er+"box-pack:$3"+md+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Er+e+e;case 4095:case 3583:case 4068:case 2532:return Lr(e,/(.+)-inline(.+)/,Er+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ng(e)-1-n>6)switch(Uc(e,n+1)){case 109:if(Uc(e,n+4)!==45)break;case 102:return Lr(e,/(.+:)(.+)-([^]+)/,"$1"+Er+"$2-$3$1"+Yue+(Uc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Zee(e,"stretch")?SYe(Lr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Uc(e,n+1)!==115)break;case 6444:switch(Uc(e,ng(e)-3-(~Zee(e,"!important")&&10))){case 107:return Lr(e,":",":"+Er)+e;case 101:return Lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Er+(Uc(e,14)===45?"inline-":"")+"box$3$1"+Er+"$2$3$1"+md+"$2box$3")+e}break;case 5936:switch(Uc(e,n+11)){case 114:return Er+e+md+Lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Er+e+md+Lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Er+e+md+Lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Er+e+md+e+e}return e}var p8t=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case mae:e.return=SYe(e.value,e.length);break;case yYe:return YC([g$(e,{value:Lr(e.value,"@","@"+Er)})],i);case hae:if(e.length)return function(a,s){return a.map(s).join("")}(e.props,function(a){switch(function(s,c){return(s=c.exec(s))?s[0]:s}(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return YC([g$(e,{props:[Lr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return YC([g$(e,{props:[Lr(a,/:(plac\w+)/,":"+Er+"input-$1")]}),g$(e,{props:[Lr(a,/:(plac\w+)/,":-moz-$1")]}),g$(e,{props:[Lr(a,/:(plac\w+)/,md+"input-$1")]})],i)}return""})}}],$Ye=function(e){var n=e.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(x){x.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i,a=e.stylisPlugins||p8t,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(x)});var d,u,p=[d8t,u8t],h=[a8t,l8t(function(x){u.insert(x)})],m=function(x){var y=gae(x);return function(b,w,C,v){for(var $="",k=0;k<y;k++)$+=x[k](b,w,C,v)||"";return $}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){YC(i8t(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new fYe({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:d};return f.sheet.hydrate(c),f};const aU=new Map;let c5;if(typeof document=="object"&&(c5=document.querySelector('[name="emotion-insertion-point"]'),!c5)){c5=document.createElement("meta"),c5.setAttribute("name","emotion-insertion-point"),c5.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(c5)}function h8t(e,n){if(e||n){class o extends fYe{insert(s,c){return this.key&&this.key.endsWith("global")&&(this.before=c5),super.insert(s,c)}}const i=((a,s)=>{const c=$Ye(a);return c.sheet=new s({key:c.key,nonce:c.sheet.nonce,container:c.sheet.container,speedy:c.sheet.isSpeedy,prepend:c.sheet.prepend,insertionPoint:c.sheet.insertionPoint}),c})({key:"css",insertionPoint:e?c5:void 0},o);if(n){const a=i.insert;i.insert=(...s)=>(s[1].styles.match(/^@layer\s+[^{]*$/)||(s[1].styles=`@layer mui {${s[1].styles}}`),a(...s))}return i}}function m8t(e){const{injectFirst:n,enableCssLayer:o,children:i}=e,a=g.useMemo(()=>{const s=`${n}-${o}`;if(typeof document=="object"&&aU.has(s))return aU.get(s);const c=h8t(n,o);return aU.set(s,c),c},[n,o]);return a?t.jsx(sYe,{value:a,children:i}):i}function kYe(e){const{styles:n,defaultTheme:o={}}=e,i=typeof n=="function"?a=>n(function(s){return s==null||Object.keys(s).length===0}(a)?o:a):n;return t.jsx(eI,{styles:i})}const Jue=[];function d7(e){return Jue[0]=e,function(n,o,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var a=!0,s="";V5=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=E_(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=E_(i,o,n[d]),a&&(s+=c[d]);Nue.lastIndex=0;for(var u,p="";(u=Nue.exec(s))!==null;)p+="-"+u[1];var h=function(m){for(var f,x=0,y=0,b=m.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&m.charCodeAt(y)|(255&m.charCodeAt(++y))<<8|(255&m.charCodeAt(++y))<<16|(255&m.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&m.charCodeAt(y+2))<<16;case 2:x^=(255&m.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&m.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)}(s)+p;return{name:h,styles:s,next:V5}}(Jue)}var Xue,epe,tpe={exports:{}},ea={};function g8t(){if(Xue)return ea;Xue=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case o:case a:case i:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case m:case h:case s:return b;default:return w}}case n:return w}}}return ea.ContextConsumer=s,ea.ContextProvider=c,ea.Element=e,ea.ForwardRef=d,ea.Fragment=o,ea.Lazy=m,ea.Memo=h,ea.Portal=n,ea.Profiler=a,ea.StrictMode=i,ea.Suspense=u,ea.SuspenseList=p,ea.isContextConsumer=function(b){return y(b)===s},ea.isContextProvider=function(b){return y(b)===c},ea.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ea.isForwardRef=function(b){return y(b)===d},ea.isFragment=function(b){return y(b)===o},ea.isLazy=function(b){return y(b)===m},ea.isMemo=function(b){return y(b)===h},ea.isPortal=function(b){return y(b)===n},ea.isProfiler=function(b){return y(b)===a},ea.isStrictMode=function(b){return y(b)===i},ea.isSuspense=function(b){return y(b)===u},ea.isSuspenseList=function(b){return y(b)===p},ea.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===i||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},ea.typeOf=y,ea}function f8t(){return epe||(epe=1,tpe.exports=g8t()),tpe.exports}var AYe=f8t();function sf(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function jYe(e){if(g.isValidElement(e)||AYe.isValidElementType(e)||!sf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=jYe(e[o])}),n}function Id(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return sf(e)&&sf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||AYe.isValidElementType(n[a])?i[a]=n[a]:sf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&sf(e[a])?i[a]=Id(e[a],n[a],o):o.clone?i[a]=sf(n[a])?jYe(n[a]):n[a]:i[a]=n[a]}),i}function x8t(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,s=(h=>{const m=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return m.sort((f,x)=>f.val-x.val),m.reduce((f,x)=>({...f,[x.key]:x.val}),{})})(n),c=Object.keys(s);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-i/100}${o})`}function p(h,m){const f=c.indexOf(m);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:m)-i/100}${o})`}return{keys:c,values:s,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const m=c.indexOf(h);return m===0?d(c[1]):m===c.length-1?u(c[m]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function npe(e,n){if(!e.containerQueries)return n;const o=Object.keys(n).filter(i=>i.startsWith("@container")).sort((i,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return o.length?o.reduce((i,a)=>{const s=n[a];return delete i[a],i[a]=s,i},{...n}):n}const y8t={borderRadius:4};function aj(e,n){return n?Id(e,n,{clone:!1}):e}const VF={xs:0,sm:600,md:900,lg:1200,xl:1536},ope={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${VF[e]}px)`},b8t={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:VF[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Nf(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||ope;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||ope;return Object.keys(n).reduce((s,c)=>{if(function(d,u){return u==="@"||u.startsWith("@")&&(d.some(p=>u.startsWith(`@${p}`))||!!u.match(/^@\d/))}(a.keys,c)){const d=function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,m,f]=h,x=Number.isNaN(+m)?m||0:+m;return u.containerQueries(f).up(x)}(i.containerQueries?i:b8t,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||VF).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function ipe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function Ai(e){if(typeof e!="string")throw new Error(Rf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function HF(e,n,o=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&o){const i=`vars.${n}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(i!=null)return i}return n.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function I_(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:HF(e,o)||i,n&&(a=n(a,i,e)),a}function Ql(e){const{prop:n,cssProperty:o=e.prop,themeKey:i,transform:a}=e,s=c=>{if(c[n]==null)return null;const d=c[n],u=HF(c.theme,i)||{};return Nf(c,d,p=>{let h=I_(u,a,p);return p===h&&typeof p=="string"&&(h=I_(u,a,`${n}${p==="default"?"":Ai(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const w8t={m:"margin",p:"padding"},C8t={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rpe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},v8t=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!rpe[e])return[e];e=rpe[e]}const[n,o]=e.split(""),i=w8t[n],a=C8t[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),EYe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],IYe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function nI(e,n,o,i){const a=HF(e,n,!0)??o;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=a[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:()=>{}}function fae(e){return nI(e,"spacing",8)}function oI(e,n){return typeof n=="string"||n==null?n:e(n)}function S8t(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=oI(c,d),u),{})}(v8t(o),i);return Nf(e,e[o],a)}function LYe(e,n){const o=fae(e.theme);return Object.keys(e).map(i=>S8t(e,n,i,o)).reduce(aj,{})}function bl(e){return LYe(e,EYe)}function wl(e){return LYe(e,IYe)}function TYe(e=8,n=fae({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(a=>{const s=n(a);return typeof s=="number"?`${s}px`:s}).join(" ");return o.mui=!0,o}function UF(...e){const n=e.reduce((i,a)=>(a.filterProps.forEach(s=>{i[s]=a}),i),{}),o=i=>Object.keys(i).reduce((a,s)=>n[s]?aj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Ch(e){return typeof e!="number"?e:`${e}px solid`}function r0(e,n){return Ql({prop:e,themeKey:"borders",transform:n})}bl.propTypes={},bl.filterProps=EYe,wl.propTypes={},wl.filterProps=IYe;const $8t=r0("border",Ch),k8t=r0("borderTop",Ch),A8t=r0("borderRight",Ch),j8t=r0("borderBottom",Ch),E8t=r0("borderLeft",Ch),I8t=r0("borderColor"),L8t=r0("borderTopColor"),T8t=r0("borderRightColor"),D8t=r0("borderBottomColor"),P8t=r0("borderLeftColor"),B8t=r0("outline",Ch),M8t=r0("outlineColor"),xM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=nI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:oI(n,i)});return Nf(e,e.borderRadius,o)}return null};xM.propTypes={},xM.filterProps=["borderRadius"],UF($8t,k8t,A8t,j8t,E8t,I8t,L8t,T8t,D8t,P8t,xM,B8t,M8t);const L_=e=>{if(e.gap!==void 0&&e.gap!==null){const n=nI(e.theme,"spacing",8),o=i=>({gap:oI(n,i)});return Nf(e,e.gap,o)}return null};L_.propTypes={},L_.filterProps=["gap"];const T_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=nI(e.theme,"spacing",8),o=i=>({columnGap:oI(n,i)});return Nf(e,e.columnGap,o)}return null};T_.propTypes={},T_.filterProps=["columnGap"];const D_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=nI(e.theme,"spacing",8),o=i=>({rowGap:oI(n,i)});return Nf(e,e.rowGap,o)}return null};D_.propTypes={},D_.filterProps=["rowGap"];function qC(e,n){return n==="grey"?n:e}UF(L_,T_,D_,Ql({prop:"gridColumn"}),Ql({prop:"gridRow"}),Ql({prop:"gridAutoFlow"}),Ql({prop:"gridAutoColumns"}),Ql({prop:"gridAutoRows"}),Ql({prop:"gridTemplateColumns"}),Ql({prop:"gridTemplateRows"}),Ql({prop:"gridTemplateAreas"}),Ql({prop:"gridArea"}));function sp(e){return e<=1&&e!==0?100*e+"%":e}UF(Ql({prop:"color",themeKey:"palette",transform:qC}),Ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qC}),Ql({prop:"backgroundColor",themeKey:"palette",transform:qC}));const _8t=Ql({prop:"width",transform:sp}),xae=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||VF[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:sp(o)}};return Nf(e,e.maxWidth,n)}return null};xae.filterProps=["maxWidth"];const z8t=Ql({prop:"minWidth",transform:sp}),O8t=Ql({prop:"height",transform:sp}),F8t=Ql({prop:"maxHeight",transform:sp}),R8t=Ql({prop:"minHeight",transform:sp});Ql({prop:"size",cssProperty:"width",transform:sp}),Ql({prop:"size",cssProperty:"height",transform:sp});UF(_8t,xae,z8t,O8t,F8t,R8t,Ql({prop:"boxSizing"}));const WF={border:{themeKey:"borders",transform:Ch},borderTop:{themeKey:"borders",transform:Ch},borderRight:{themeKey:"borders",transform:Ch},borderBottom:{themeKey:"borders",transform:Ch},borderLeft:{themeKey:"borders",transform:Ch},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ch},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xM},color:{themeKey:"palette",transform:qC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qC},backgroundColor:{themeKey:"palette",transform:qC},p:{style:wl},pt:{style:wl},pr:{style:wl},pb:{style:wl},pl:{style:wl},px:{style:wl},py:{style:wl},padding:{style:wl},paddingTop:{style:wl},paddingRight:{style:wl},paddingBottom:{style:wl},paddingLeft:{style:wl},paddingX:{style:wl},paddingY:{style:wl},paddingInline:{style:wl},paddingInlineStart:{style:wl},paddingInlineEnd:{style:wl},paddingBlock:{style:wl},paddingBlockStart:{style:wl},paddingBlockEnd:{style:wl},m:{style:bl},mt:{style:bl},mr:{style:bl},mb:{style:bl},ml:{style:bl},mx:{style:bl},my:{style:bl},margin:{style:bl},marginTop:{style:bl},marginRight:{style:bl},marginBottom:{style:bl},marginLeft:{style:bl},marginX:{style:bl},marginY:{style:bl},marginInline:{style:bl},marginInlineStart:{style:bl},marginInlineEnd:{style:bl},marginBlock:{style:bl},marginBlockStart:{style:bl},marginBlockEnd:{style:bl},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:L_},rowGap:{style:D_},columnGap:{style:T_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sp},maxWidth:{style:xae},minWidth:{transform:sp},height:{transform:sp},maxHeight:{transform:sp},minHeight:{transform:sp},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Wx=function(){function e(n,o,i,a){const s={[n]:o,theme:i},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const m=HF(i,u)||{};return h?h(s):Nf(s,o,f=>{let x=I_(m,p,f);return f===x&&typeof f=="string"&&(x=I_(m,p,`${n}${f==="default"?"":Ai(f)}`,f)),d===!1?x:{[d]:x}})}return function n(o){const{sx:i,theme:a={},nested:s}=o||{};if(!i)return null;const c=a.unstable_sxConfig??WF;function d(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=function(x={}){return x.keys?.reduce((y,b)=>(y[x.up(b)]={},y),{})||{}}(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=function(b,w){return typeof b=="function"?b(w):b}(p[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=aj(f,e(x,y,a,c));else{const b=Nf({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce(($,k)=>$.concat(Object.keys(k)),[]),v=new Set(C);return w.every($=>v.size===Object.keys($).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=aj(f,b)}else f=aj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":npe(a,ipe(m,f))}:npe(a,ipe(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function N8t(e,n){const o=this;if(o.vars){if(!o.colorSchemes?.[e]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?n:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:n})}return o.palette.mode===e?n:{}}function yae(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Id({breakpoints:x8t(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:TYe(a),shape:{...y8t,...s}},c);return d=function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const m={},f=x=>(h(m,x),m);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=N8t,d=n.reduce((u,p)=>Id(u,p),d),d.unstable_sxConfig={...WF,...c?.unstable_sxConfig},d.unstable_sx=function(u){return Wx({sx:u,theme:this})},d}function Xee(e=null){const n=g.useContext(cYe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}Wx.filterProps=["sx"];const V8t=yae();function DYe(e=V8t){return Xee(e)}function ape(e){const n=d7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function PYe({styles:e,themeId:n,defaultTheme:o={}}){const i=DYe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>ape(typeof c=="function"?c(a):c)):ape(s)),t.jsx(kYe,{styles:s})}const lpe=e=>e,H8t=(()=>{let e=lpe;return{configure(n){e=n},generate:n=>e(n),reset(){e=lpe}}})();function BYe(e){var n,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(o=BYe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function $i(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=BYe(e))&&(i&&(i+=" "),i+=n);return i}const U8t={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function aa(e,n,o="Mui"){const i=U8t[n];return i?`${o}-${i}`:`${H8t.generate(e)}-${n}`}function Br(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=aa(e,a,o)}),i}function MYe(e){const{variants:n,...o}=e,i={variants:n,style:d7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=d7(a.style))}),i}const W8t=yae();function lU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Z8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Q8t(e){return e?(n,o)=>o[e]:null}function yM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>yM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?Z8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?Z8(d7(c),o):c}return _Ye(e,i.variants,[a],o)}return i?.isProcessed?o?Z8(d7(i.style),o):i.style:o?Z8(d7(i),o):i}function _Ye(e,n,o=[],i=void 0){let a;e:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?Z8(d7(c.style(a)),i):c.style(a))):o.push(i?Z8(d7(c.style),i):c.style)}return o}function G8t(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ete(e,n,o=!1){const i={...n};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=n[s];if(d)if(c){i[s]={...d};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const p=u;i[s][p]=ete(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=$i(e?.className,n?.className):s==="style"&&o&&n.style?i.style={...e?.style,...n?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Hh=typeof window<"u"?g.useLayoutEffect:g.useEffect;function bae(e,n=0,o=1){return function(i,a=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(i,s))}(e,n,o)}function j7(e){if(e.type)return e;if(e.charAt(0)==="#")return j7(function(s){s=s.slice(1);const c=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let d=s.match(c);return d&&d[0].length===1&&(d=d.map(u=>u+u)),d?`rgb${d.length===4?"a":""}(${d.map((u,p)=>p<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}(e));const n=e.indexOf("("),o=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Rf(9,e));let i,a=e.substring(n+1,e.length-1);if(o==="color"){if(a=a.split(" "),i=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Rf(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const DA=(e,n)=>{try{return(o=>{const i=j7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function QF(e){const{type:n,colorSpace:o}=e;let{values:i}=e;return n.includes("rgb")?i=i.map((a,s)=>s<3?parseInt(a,10):a):n.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=n.includes("color")?`${o} ${i.join(" ")}`:`${i.join(", ")}`,`${n}(${i})`}function zYe(e){e=j7(e);const{values:n}=e,o=n[0],i=n[1]/100,a=n[2]/100,s=i*Math.min(a,1-a),c=(p,h=(p+o/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return e.type==="hsla"&&(d+="a",u.push(n[3])),QF({type:d,values:u})}function tte(e){let n=(e=j7(e)).type==="hsl"||e.type==="hsla"?j7(zYe(e)).values:e.values;return n=n.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function P_(e,n){return e=j7(e),n=bae(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,QF(e)}function l9(e,n,o){try{return P_(e,n)}catch{return e}}function GF(e,n){if(e=j7(e),n=bae(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-n;return QF(e)}function Gr(e,n,o){try{return GF(e,n)}catch{return e}}function YF(e,n){if(e=j7(e),n=bae(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*n;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*n;return QF(e)}function Yr(e,n,o){try{return YF(e,n)}catch{return e}}function yL(e,n,o){try{return function(i,a=.15){return tte(i)>.5?GF(i,a):YF(i,a)}(e,n)}catch{return e}}const OYe=g.createContext(null);function wae(){return g.useContext(OYe)}const Y8t=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function q8t(e){const{children:n,theme:o}=e,i=wae(),a=g.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[Y8t]=i!==null),s},[o,i]);return t.jsx(OYe.Provider,{value:a,children:n})}const FYe=g.createContext();function K8t({value:e,...n}){return t.jsx(FYe.Provider,{value:e??!0,...n})}const qF=()=>g.useContext(FYe)??!1,RYe=g.createContext(void 0);function Z8t({value:e,children:n}){return t.jsx(RYe.Provider,{value:e,children:n})}function J8t({props:e,name:n}){return function(o){const{theme:i,name:a,props:s}=o;if(!i||!i.components||!i.components[a])return s;const c=i.components[a];return c.defaultProps?ete(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:ete(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext(RYe)}})}let spe=0;const cpe={...x5t}.useId;function KF(e){if(cpe!==void 0){const n=cpe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(spe+=1,i(`mui-${spe}`))},[o]),a}(e)}const dpe={};function upe(e,n,o,i=!1){return g.useMemo(()=>{const a=e&&n[e]||n;if(typeof o=="function"){const s=o(a),c=e?{...n,[e]:s}:s;return i?()=>c:c}return e?{...n,[e]:o}:{...n,...o}},[e,n,o,i])}function NYe(e){const{children:n,theme:o,themeId:i}=e,a=Xee(dpe),s=wae()||dpe,c=upe(i,a,o),d=upe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=Xee(),f=KF()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&m===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",Hh(()=>{const b=document.querySelector("head");if(!b)return;const w=b.firstChild;if(y){if(w&&w.hasAttribute?.("data-mui-layer-order")&&w.getAttribute("data-mui-layer-order")===f)return;const C=document.createElement("style");C.setAttribute("data-mui-layer-order",f),C.textContent=y,b.prepend(C)}else b.querySelector(`style[data-mui-layer-order="${f}"]`)?.remove()},[y,f]),y?t.jsx(PYe,{styles:y}):null}(c);return t.jsx(q8t,{theme:d,children:t.jsx(cYe.Provider,{value:c,children:t.jsx(K8t,{value:u,children:t.jsxs(Z8t,{value:i?c[i].components:c.components,children:[p,n]})})})})}const ppe={theme:void 0},nte="mode",ote="color-scheme",X8t="data-color-scheme";function ext(){}const txt=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(o){if(typeof window>"u")return;if(!n)return o;let i;try{i=n.localStorage.getItem(e)}catch{}return i||o},set:o=>{if(n)try{n.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!n)return ext;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function sU(){}function hpe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mpe(e,n){return e.mode==="light"||e.mode==="system"&&e.systemMode==="light"?n("light"):e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark"?n("dark"):void 0}function nxt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=nte,colorSchemeStorageKey:c=ote,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=txt,noSsr:p=!1}=e,h=a.join(","),m=a.length>1,f=g.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=g.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=g.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=g.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,P=y?.get(i)||i;return{mode:L,systemMode:hpe(L),lightColorScheme:I,darkColorScheme:P}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return mpe(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),k=g.useCallback(L=>{w(I=>{if(L===I.mode)return I;const P=L??n;return f?.set(P),{...I,mode:P,systemMode:hpe(P)}})},[f,n]),j=g.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const P={...I};return mpe(I,z=>{z==="light"&&(x?.set(L),P.lightColorScheme=L),z==="dark"&&(y?.set(L),P.darkColorScheme=L)}),P}):w(I=>{const P={...I},z=L.light===null?o:L.light,M=L.dark===null?i:L.dark;return z&&(h.includes(z)?(P.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),M&&(h.includes(M)?(P.darkColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),P}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=g.useCallback(L=>{b.mode==="system"&&w(I=>{const P=L?.matches?"dark":"light";return I.systemMode===P?I:{...I,systemMode:P}})},[b.mode]),E=g.useRef(A);return E.current=A,g.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const L=(...P)=>E.current(...P),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[m]),g.useEffect(()=>{if(m){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)})||sU,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||sU,P=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||sU;return()=>{L(),I(),P()}}},[j,k,h,n,d,m,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?$:void 0,setMode:k,setColorScheme:j}}function oxt(e=""){function n(...o){if(!o.length)return"";const i=o[0];return typeof i!="string"||i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${i}`:`, var(--${e?`${e}-`:""}${i}${n(...o.slice(1))})`}return(o,...i)=>`var(--${e?`${e}-`:""}${o}${n(...i)})`}const gpe=(e,n,o,i=[])=>{let a=e;n.forEach((s,c)=>{c===n.length-1?Array.isArray(a)?a[Number(s)]=o:a&&typeof a=="object"&&(a[s]=o):a&&typeof a=="object"&&(a[s]||(a[s]=i.includes(s)?[]:{}),a=a[s])})};function cU(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(m,f=[],x=[]){Object.entries(m).forEach(([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))})})(d)})(e,(d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||i&&i(d,u))){const h=`--${o?`${o}-`:""}${d.join("-")}`,m=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>f.includes(y))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(a,{[h]:m}),gpe(s,d,`var(${h})`,p),gpe(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function la(e,n,o=void 0){const i={};for(const a in e){const s=e[a];let c="",d=!0;for(let u=0;u<s.length;u+=1){const p=s[u];p&&(c+=(d===!0?"":" ")+n(p),d=!1,o&&o[p]&&(c+=" "+o[p]))}i[a]=c}return i}function dU(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Zj={black:"#000",white:"#fff"},ixt={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},rxt="#f3e5f5",axt="#ce93d8",lxt="#ba68c8",sxt="#ab47bc",cxt="#9c27b0",dxt="#7b1fa2",uxt="#e57373",pxt="#ef5350",hxt="#f44336",fpe="#d32f2f",mxt="#c62828",gxt="#ffb74d",fxt="#ffa726",xxt="#ff9800",yxt="#f57c00",bxt="#e65100",wxt="#e3f2fd",Cxt="#90caf9",xpe="#42a5f5",vxt="#1976d2",Sxt="#1565c0",$xt="#4fc3f7",kxt="#29b6f6",Axt="#03a9f4",ype="#0288d1",jxt="#01579b",Ext="#81c784",Ixt="#66bb6a",Lxt="#4caf50",Txt="#388e3c",Dxt="#2e7d32",Pxt="#1b5e20";function VYe(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Zj.white,default:Zj.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const HYe=VYe();function UYe(){return{text:{primary:Zj.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Zj.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ite=UYe();function bpe(e,n,o,i){const a=i.light||i,s=i.dark||1.5*i;e[n]||(e.hasOwnProperty(o)?e[n]=e[o]:n==="light"?e.light=YF(e.main,a):n==="dark"&&(e.dark=GF(e.main,s)))}function wpe(e,n,o,i,a){const s=a.light||a,c=a.dark||1.5*a;n[o]||(n.hasOwnProperty(i)?n[o]=n[i]:o==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(100*s).toFixed(0)}%)`:o==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(100*c).toFixed(0)}%)`))}function Cae(e){const{mode:n="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:a,...s}=e,c=e.primary||function(b="light"){return b==="dark"?{main:Cxt,light:wxt,dark:xpe}:{main:vxt,light:xpe,dark:Sxt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:axt,light:rxt,dark:sxt}:{main:cxt,light:lxt,dark:dxt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:hxt,light:uxt,dark:fpe}:{main:fpe,light:pxt,dark:mxt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:kxt,light:$xt,dark:ype}:{main:ype,light:Axt,dark:jxt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Ixt,light:Ext,dark:Txt}:{main:Dxt,light:Lxt,dark:Pxt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:fxt,light:gxt,dark:yxt}:{main:"#ed6c02",light:xxt,dark:bxt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=tte(C),k=tte(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,ite.text.primary)>=o?ite.text.primary:HYe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:$=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(Rf(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Rf(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(wpe(a,b,"light",v,i),wpe(a,b,"dark",$,i)):(bpe(b,"light",v,i),bpe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=VYe():n==="dark"&&(y=UYe()),Id({common:{...Zj},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:m,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:ixt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Bxt(e){const n={};return Object.entries(e).forEach(o=>{const[i,a]=o;typeof a=="object"&&(n[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}function Mxt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function _xt(e){return Math.round(1e5*e)/1e5}const Cpe={textTransform:"uppercase"},vpe='"Roboto", "Helvetica", "Arial", sans-serif';function WYe(e,n){const{fontFamily:o=vpe,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...m}=typeof n=="function"?n(e):n,f=i/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,$,k)=>({fontFamily:o,fontWeight:w,fontSize:x(C),lineHeight:v,...o===vpe?{letterSpacing:`${_xt($/C)}em`}:{},...k,...p}),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(c,14,1.75,.4,Cpe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Cpe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Id({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function Qa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const zxt=["none",Qa(0,2,1,-1,0,1,1,0,0,1,3,0),Qa(0,3,1,-2,0,2,2,0,0,1,5,0),Qa(0,3,3,-2,0,3,4,0,0,1,8,0),Qa(0,2,4,-1,0,4,5,0,0,1,10,0),Qa(0,3,5,-1,0,5,8,0,0,1,14,0),Qa(0,3,5,-1,0,6,10,0,0,1,18,0),Qa(0,4,5,-2,0,7,10,1,0,2,16,1),Qa(0,5,5,-3,0,8,10,1,0,3,14,2),Qa(0,5,6,-3,0,9,12,1,0,3,16,2),Qa(0,6,6,-3,0,10,14,1,0,4,18,3),Qa(0,6,7,-4,0,11,15,1,0,4,20,3),Qa(0,7,8,-4,0,12,17,2,0,5,22,4),Qa(0,7,8,-4,0,13,19,2,0,5,24,4),Qa(0,7,9,-4,0,14,21,2,0,5,26,4),Qa(0,8,9,-5,0,15,22,2,0,6,28,5),Qa(0,8,10,-5,0,16,24,2,0,6,30,5),Qa(0,8,11,-5,0,17,26,2,0,6,32,5),Qa(0,9,11,-5,0,18,28,2,0,7,34,6),Qa(0,9,12,-6,0,19,29,2,0,7,36,6),Qa(0,10,13,-6,0,20,31,3,0,8,38,7),Qa(0,10,13,-6,0,21,33,3,0,8,40,7),Qa(0,10,14,-6,0,22,35,3,0,8,42,7),Qa(0,11,14,-7,0,23,36,3,0,9,44,8),Qa(0,11,15,-7,0,24,38,3,0,9,46,8)],Oxt={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},QYe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Spe(e){return`${Math.round(e)}ms`}function Fxt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Rxt(e){const n={...Oxt,...e.easing},o={...QYe,...e.duration};return{getAutoHeightDuration:Fxt,create:(i=["all"],a={})=>{const{duration:s=o.standard,easing:c=n.easeInOut,delay:d=0,...u}=a;return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof s=="string"?s:Spe(s)} ${c} ${typeof d=="string"?d:Spe(d)}`).join(",")},...e,easing:n,duration:o}}const Nxt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Vxt(e){return sf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function GYe(e={}){const n={...e};return function o(i){const a=Object.entries(i);for(let s=0;s<a.length;s++){const[c,d]=a[s];!Vxt(d)||c.startsWith("unstable_")?delete i[c]:sf(d)&&(i[c]={...d},o(i[c]))}}(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-ZCc1K30S.js","assets/sentry-Bp45iw9z.js","assets/core-a8i-_0Kh.js","assets/index-DYi-byqV.js","assets/DefaultTenantHome-xquI5mdg.js","assets/mui-B8yatdty.js","assets/getLocaleForTenant-B5XIMdPl.js","assets/analytics-vyykHm3I.js","assets/utils-ikosPjSL.js","assets/ScreenRoutes-CR4LbxNH.js","assets/analyticsHelper-UdYvDCQO.js","assets/ConnectionAuthScreen-CXSm9A3K.js","assets/QBOConnectionScreen-CaGgw5Mo.js","assets/empty-9qzWTKUd.js","assets/index-DTPu_Uy6.js","assets/url-asQ2Q_hT.js","assets/index-DvmHdckU.js","assets/decodeURIComponentSafe-B_IVipCF.js","assets/SignInScreen-BGmMngZm.js","assets/useDeviceId-AHvFaHki.js","assets/MagicLinkSignInScreen-BDCry5qq.js","assets/NotFoundScreen-DPOmbROX.js","assets/MagicLinkRoutes-CFl_3geL.js","assets/WiseConfirmationScreen-DcnsS_39.js","assets/CustomerOnboardingAuthScreen-kIRiytnK.js","assets/SignOutScreen-B7Ls3yjH.js"])))=>i.map(i=>d[i]);
2
+ import{a as g,b as T,c as Hee,R as x5t,p as tU,e as pue,r as Au,g as dGe,f as y5t,s as hue,i as b5t,w as w5t,j as C5t,S as v5t,k as S5t,l as $5t,m as k5t,n as A5t,o as j5t}from"./sentry-Bp45iw9z.js";import{L as E5t,C as mue,_ as i0,a as ZE,b as I5t,c as EF,d as JE,u as uGe,T as L5t,e as T5t,f as D5t,g as P5t,h as pGe,i as B5t,k as M5t,j as Bt,l as _5t}from"./liveblocks-ZAKgWoPK.js";import{f as hGe,r as ra,R as K8,P as ll,u as gp,m as mGe,g as hi,h as Ff,O as z5t,N as gGe,i as LA,j as IF,k as O5t,l as F5t,n as R5t,o as Vp,p as N5t,B as V5t}from"./core-a8i-_0Kh.js";import{B as gue,bl as H5t,bm as Y7,bn as fGe,bo as xGe,bp as Ut,bq as yS,br as D2,bs as U5t,bt as Zf,bu as Na,bv as za,bw as W5t,bx as Q5t,by as xy,bz as q7,bA as Gre,bB as on,bC as yGe,bD as bGe,bE as Yre,bF as Cp,bG as Ng,bH as qc,bI as yf,bJ as G5t,bK as Ll,bL as Y5t,bM as bS,bN as q5t,bO as K5t,bP as Z5t,bQ as Nx,bR as J5t,bS as fue,bT as X5t,bU as e7t,bV as t7t,bW as n7t,bX as o7t,bY as i7t,bZ as r7t,b_ as a7t,b$ as c7,c0 as LF,c1 as l7t,c2 as TF,c3 as DF,c4 as PF,c5 as qre,c6 as BF,c7 as Lv,c8 as Tv,c9 as MF,ca as s7t,cb as c7t,cc as xue,cd as Uee,ce as d7t,cf as u7t,cg as x1,ch as wGe,ci as p7t,cj as a9,ck as yue,cl as h7t,cm as m7t,cn as g7t,co as yy,cp as by,cq as CGe,cr as vGe,cs as Kre,ct as f7t,cu as x7t,cv as k_,cw as SGe,cx as y7t,cy as $Ge,cz as b7t,cA as TA,cB as bue,cC as w7t,cD as kGe,cE as AGe,cF as jGe,cG as C7t,cH as wS,cI as wue,cJ as v7t,cK as S7t,cL as EGe,cM as $7t,cN as IGe,cO as Cue,cP as Zc,cQ as dl,cR as k7t,cS as Dv,cT as Sd,cU as LGe,cV as A7t,cW as Gj,cX as vx,cY as oa,cZ as j7t,c_ as E7t,c$ as I7t,d0 as mL,d1 as wh,d2 as L7t,d3 as T7t,d4 as D7t,d5 as P7t,d6 as gL,d7 as Vx,d8 as _F,d9 as B7t,da as M7t,db as wy,dc as Ed,dd as TGe,de as DGe,df as _7t,dg as Wee,dh as z7t,di as c1,dj as A7,dk as Zre,dl as PGe,dm as BGe,dn as MGe,dp as _Ge,dq as zGe,dr as OGe,ds as O7t,dt as vue,du as F7t,_ as S1,dv as Jre,dw as R7t,dx as Sue,dy as zF,dz as N7t,dA as V7t,dB as FGe,dC as H7t,dD as $ue,dE as _u,dF as bf,dG as oj,dH as ij,dI as U7t,dJ as W7t,dK as RGe,dL as Qee,dM as hM,dN as Q7t,dO as G7t,dP as Y7t,dQ as q7t,dR as K7t,dS as Z7t,dT as J7t,dU as X7t,dV as e6t,dW as t6t,dX as NGe,dY as wC,dZ as n6t,d_ as o6t,d$ as Xre,e0 as eae,e1 as CS,e2 as tae,e3 as nae,e4 as oae,e5 as iae,e6 as i6t,e7 as rae,e8 as r6t,e9 as a6t,ea as VGe,eb as kue,ec as l6t,ed as aae,ee as s6t,ef as c6t,eg as d6t,eh as u6t,ei as p6t,ej as h6t,ek as Aue,el as HGe,em as m6t,en as g6t,eo as UGe,ep as WGe,eq as QGe,er as GGe,es as YGe,et as qGe,eu as f6t,ev as x6t,ew as KGe,ex as y6t,ey as ZGe,ez as JGe,eA as b6t,eB as w6t,eC as C6t,eD as v6t,eE as S6t,eF as $6t,eG as k6t,eH as A6t,eI as j6t,v as E6t,eJ as I6t,eK as L6t,eL as lae,eM as ju,eN as XGe,eO as XE,eP as T6t,eQ as D6t,eR as eYe,eS as P6t,eT as tYe,eU as B6t,eV as nYe,eW as M6t,eX as _6t,eY as z6t,eZ as O6t,e_ as F6t,e$ as jue,f0 as R6t,f1 as oYe,f2 as db,f3 as sae,f4 as Eue,f5 as N6t,f6 as Iue,f7 as V6t,f8 as H6t,f9 as iYe,fa as rYe,fb as U6t,fc as W6t,fd as Q6t,fe as G6t,ff as Y6t,fg as q6t,fh as A_,fi as cae,fj as aYe,fk as K6t,fl as rj,fm as Z6t,fn as J6t,fo as X6t,fp as e9t,fq as t9t,fr as n9t,fs as o9t,ft as i9t,fu as r9t,fv as a9t,fw as l9t,fx as lYe,fy as s9t,fz as c9t,fA as d9t,fB as Lue,fC as u9t,fD as p9t,fE as h9t,fF as Gee,fG as m9t,fH as g9t,fI as f9t,fJ as x9t,fK as y9t,fL as Tue,fM as b9t,fN as w9t}from"./zeni-epic-state-ZCc1K30S.js";import{n as l,C as sYe,T as cYe,G as eI,j as Qo,c as Pe,k as zn,u as dae,a as Yee,A as C9t,b as v9t,I as S9t,d as $9t,D as j_,S as dYe}from"./mui-B8yatdty.js";import{L as Sx}from"./lottie-DN0gYkdx.js";import{r as k9t,m as uh}from"./analytics-vyykHm3I.js";import{u as jp}from"./plaid-CP3hLhCR.js";import{g as A9t,O as j9t,H as E9t,S as I9t,T as L9t,a as T9t,u as D9t,b as P9t}from"./dnd-CDdU3ON0.js";import{l as B9t}from"./stripe-DMRn4zHo.js";import{r as $s}from"./lexical-BzneVI9m.js";import{D as qee,P as Kee,_ as uYe,a as pYe}from"./pdf-C4rebPwh.js";import{R as Yj,G as Hx,X as Kl,Y as Tl,H as Ux,I as ed,J as vp,K as Cy,L as Ep,M as M9t,N as vS,O as hYe,P as _9t,Q as OF,S as GC,U as z9t,V as uae,W as O9t,Z as F9t,_ as R9t}from"./recharts-BhJEeZEG.js";import{r as N9t}from"./utils-ikosPjSL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e9158a81-e098-4666-b5bb-b2611bf2da50",e._sentryDebugIdIdentifier="sentry-dbid-e9158a81-e098-4666-b5bb-b2611bf2da50")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0})}function n(o){if(o.ep)return;o.ep=!0;const i=function(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}(o);fetch(o.href,i)}})();var Due,fL={},V9t=function(){if(Due)return fL;Due=1;var e=hGe();return fL.createRoot=e.createRoot,fL.hydrateRoot=e.hydrateRoot,fL}(),fu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Hee<"u"?Hee:typeof self<"u"?self:{};function bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pue,Bue,Mue={exports:{}},m$={};function mYe(){return Bue||(Bue=1,Mue.exports=function(){if(Pue)return m$;Pue=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,m={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return m$.Fragment=o,m$.jsx=c,m$.jsxs=c,m$}()),Mue.exports}var t=mYe();const H9t=g.createContext(null),nU={didCatch:!1,error:null};let U9t=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=nU}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,o,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];(n=(o=this.props).onReset)===null||n===void 0||n.call(o,{args:a,reason:"imperative-api"}),this.setState(nU)}}componentDidCatch(e,n){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:o}=this.state,{resetKeys:i}=this.props;var a,s;o&&n.error!==null&&function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return c.length!==d.length||c.some((u,p)=>!Object.is(u,d[p]))}(e.resetKeys,i)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(nU))}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const d={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(o)c=g.createElement(o,d);else{if(i===void 0)throw s;c=i}}return g.createElement(H9t.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var _ue,oU={exports:{}},zue,Oue,iU,W9t=(_ue||(_ue=1,Oue=oU.exports,iU=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",P=1e12,z=1e9,M=1e6,V="",F=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=P&&!b||b==="t"?(I+=A.abbreviations.trillion,m/=P):w<P&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,m/=z):w<z&&w>=M&&!b||b==="m"?(I+=A.abbreviations.million,m/=M):(w<M&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,m/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=m.toString().split(".")[0],v=f.split(".")[1],k=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),V=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):V=e._.toFixed(m,v.length,x),C=V.split(".")[0],V=e._.includes(V,".")?A.delimiters.decimal+V.split(".")[1]:"",L&&Number(V.slice(1))===0&&(V="")):C=e._.toFixed(m,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),F=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return k>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+V+(I||""),E?j=(E&&F?"(":"")+j+(E&&F?")":""):$>=0?j=$===0?(F?"-":"+")+j:j+(F?"-":"+"):F&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(m),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(m,f){var x,y,b,w=this._value,C=m||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(m){return o.suffixes.indexOf(m)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(m,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(zue=oU).exports?zue.exports=iU():Oue.numeral=iU()),oU.exports);const jf=bi(W9t);function Rf(e,...n){const o=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}const Ef="$$material";var Q9t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function G9t(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var Y9t=/[A-Z]|^ms/g,q9t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gYe=function(e){return e.charCodeAt(1)===45},Fue=function(e){return e!=null&&typeof e!="boolean"},rU=G9t(function(e){return gYe(e)?e:e.replace(Y9t,"-$&").toLowerCase()}),Rue=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(q9t,function(o,i,a){return V5={name:i,styles:a,next:V5},i})}return Q9t[e]===1||gYe(e)||typeof n!="number"||n===0?n:n+"px"};function E_(e,n,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":var a=o;if(a.anim===1)return V5={name:a.name,styles:a.styles,next:V5},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)V5={name:c.name,styles:c.styles,next:V5},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var m=0;m<p.length;m++)h+=E_(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;Fue(y)&&(h+=rU(f)+":"+Rue(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)Fue(x[b])&&(h+=rU(f)+":"+Rue(f,x[b])+";");else{var w=E_(d,u,x);switch(f){case"animation":case"animationName":h+=rU(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var V5,Nue=/label:\s*([^\s;{]+)\s*(;|$)/g,Vue,Hue,Uue,Wue,Que,Gue={exports:{}};function K9t(){return Hue?Vue:(Hue=1,Vue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Z9t(){if(Wue)return Uue;Wue=1;var e=K9t();function n(){}function o(){}return o.resetWarningCache=n,Uue=function(){function i(c,d,u,p,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function a(){return i}i.isRequired=i;var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return s.PropTypes=s,s}}function pae(){return Que||(Que=1,Gue.exports=Z9t()()),Gue.exports}const Cn=bi(pae());var fYe=function(){function e(o){var i=this;this._insertTag=function(a){var s;s=i.tags.length===0?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,s),i.tags.push(a)},this.isSpeedy=o.speedy===void 0||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(s){var c=document.createElement("style");return c.setAttribute("data-emotion",s.key),s.nonce!==void 0&&c.setAttribute("nonce",s.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(s){if(s.sheet)return s.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===s)return document.styleSheets[c]}(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),md="-ms-",Yue="-moz-",Er="-webkit-",xYe="comm",hae="rule",mae="decl",yYe="@keyframes",J9t=Math.abs,FF=String.fromCharCode,X9t=Object.assign;function bYe(e){return e.trim()}function Lr(e,n,o){return e.replace(n,o)}function Zee(e,n){return e.indexOf(n)}function Uc(e,n){return 0|e.charCodeAt(n)}function qj(e,n,o){return e.slice(n,o)}function ng(e){return e.length}function gae(e){return e.length}function xL(e,n){return n.push(e),e}var RF=1,Pv=1,wYe=0,Cu=0,ys=0,SS="";function NF(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:RF,column:Pv,length:c,return:""}}function g$(e,n){return X9t(NF("",null,null,"",null,null,0),e,{length:-e.length},n)}function fp(){return ys=Cu<wYe?Uc(SS,Cu++):0,Pv++,ys===10&&(Pv=1,RF++),ys}function Lg(){return Uc(SS,Cu)}function mM(){return Cu}function tI(e,n){return qj(SS,e,n)}function Kj(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function CYe(e){return RF=Pv=1,wYe=ng(SS=e),Cu=0,[]}function vYe(e){return SS="",e}function gM(e){return bYe(tI(Cu-1,Jee(e===91?e+2:e===40?e+1:e)))}function e8t(e){for(;(ys=Lg())&&ys<33;)fp();return Kj(e)>2||Kj(ys)>3?"":" "}function t8t(e,n){for(;--n&&fp()&&!(ys<48||ys>102||ys>57&&ys<65||ys>70&&ys<97););return tI(e,mM()+(n<6&&Lg()==32&&fp()==32))}function Jee(e){for(;fp();)switch(ys){case e:return Cu;case 34:case 39:e!==34&&e!==39&&Jee(ys);break;case 40:e===41&&Jee(e);break;case 92:fp()}return Cu}function n8t(e,n){for(;fp()&&e+ys!==57&&(e+ys!==84||Lg()!==47););return"/*"+tI(n,Cu-1)+"*"+FF(e===47?e:fp())}function o8t(e){for(;!Kj(Lg());)fp();return tI(e,Cu)}function i8t(e){return vYe(fM("",null,null,null,[""],e=CYe(e),0,[0],e))}function fM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,$="",k=a,j=s,A=i,E=$;w;)switch(y=v,v=fp()){case 40:if(y!=108&&Uc(E,m-1)==58){Zee(E+=Lr(gM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=gM(v);break;case 9:case 10:case 13:case 32:E+=e8t(y);break;case 92:E+=t8t(mM()-1,7);continue;case 47:switch(Lg()){case 42:case 47:xL(r8t(n8t(fp(),mM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=ng(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Lr(E,/\f/g,"")),x>0&&ng(E)-m&&xL(x>32?Kue(E+";",i,o,m-1):Kue(Lr(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(xL(A=que(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)fM(E,n,A,A,k,s,m,d,j);else switch(f===99&&Uc(E,3)===110?100:f){case 100:case 108:case 109:case 115:fM(e,A,A,i&&xL(que(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:fM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+ng(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(ys=Cu>0?Uc(SS,--Cu):0,Pv--,ys===10&&(Pv=1,RF--),ys==125))continue}switch(E+=FF(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(ng(E)-1)*C,C=1;break;case 64:Lg()===45&&(E+=gM(fp())),f=Lg(),h=m=ng($=E+=o8t(mM())),v++;break;case 45:y===45&&ng(E)==2&&(b=0)}}return s}function que(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=gae(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=qj(e,m+1,m=J9t(b=c[y])),$=e;C<x;++C)($=bYe(b>0?f[C]+" "+v:Lr(v,/&\f/g,f[C])))&&(u[w++]=$);return NF(e,n,o,a===0?hae:d,u,p,h)}function r8t(e,n,o){return NF(e,n,o,xYe,FF(ys),qj(e,2,-2),0)}function Kue(e,n,o,i){return NF(e,n,o,mae,qj(e,0,i),qj(e,i+1,-1),i)}function YC(e,n){for(var o="",i=gae(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function a8t(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mae:return e.return=e.return||e.value;case xYe:return"";case yYe:return e.return=e.value+"{"+YC(e.children,i)+"}";case hae:e.value=e.props.join(",")}return ng(o=YC(e.children,i))?e.return=e.value+"{"+o+"}":""}function l8t(e){return function(n){n.root||(n=n.return)&&e(n)}}var s8t=function(e,n,o){for(var i=0,a=0;i=a,a=Lg(),i===38&&a===12&&(n[o]=1),!Kj(a);)fp();return tI(e,Cu)},c8t=function(e,n){return vYe(function(o,i){var a=-1,s=44;do switch(Kj(s)){case 0:s===38&&Lg()===12&&(i[a]=1),o[a]+=s8t(Cu-1,i,a);break;case 2:o[a]+=gM(s);break;case 4:if(s===44){o[++a]=Lg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=FF(s)}while(s=fp());return o}(CYe(e),n))},Zue=new WeakMap,d8t=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var n=e.value,o=e.parent,i=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(!(o=o.parent))return;if((e.props.length!==1||n.charCodeAt(0)===58||Zue.get(o))&&!i){Zue.set(e,!0);for(var a=[],s=c8t(n,a),c=o.props,d=0,u=0;d<s.length;d++)for(var p=0;p<c.length;p++,u++)e.props[u]=a[d]?s[d].replace(/&\f/g,c[p]):c[p]+" "+s[d]}}},u8t=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function SYe(e,n){switch(function(o,i){return 45^Uc(o,0)?(((i<<2^Uc(o,0))<<2^Uc(o,1))<<2^Uc(o,2))<<2^Uc(o,3):0}(e,n)){case 5103:return Er+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Er+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Er+e+Yue+e+md+e+e;case 6828:case 4268:return Er+e+md+e+e;case 6165:return Er+e+md+"flex-"+e+e;case 5187:return Er+e+Lr(e,/(\w+).+(:[^]+)/,Er+"box-$1$2"+md+"flex-$1$2")+e;case 5443:return Er+e+md+"flex-item-"+Lr(e,/flex-|-self/,"")+e;case 4675:return Er+e+md+"flex-line-pack"+Lr(e,/align-content|flex-|-self/,"")+e;case 5548:return Er+e+md+Lr(e,"shrink","negative")+e;case 5292:return Er+e+md+Lr(e,"basis","preferred-size")+e;case 6060:return Er+"box-"+Lr(e,"-grow","")+Er+e+md+Lr(e,"grow","positive")+e;case 4554:return Er+Lr(e,/([^-])(transform)/g,"$1"+Er+"$2")+e;case 6187:return Lr(Lr(Lr(e,/(zoom-|grab)/,Er+"$1"),/(image-set)/,Er+"$1"),e,"")+e;case 5495:case 3959:return Lr(e,/(image-set\([^]*)/,Er+"$1$`$1");case 4968:return Lr(Lr(e,/(.+:)(flex-)?(.*)/,Er+"box-pack:$3"+md+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Er+e+e;case 4095:case 3583:case 4068:case 2532:return Lr(e,/(.+)-inline(.+)/,Er+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ng(e)-1-n>6)switch(Uc(e,n+1)){case 109:if(Uc(e,n+4)!==45)break;case 102:return Lr(e,/(.+:)(.+)-([^]+)/,"$1"+Er+"$2-$3$1"+Yue+(Uc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~Zee(e,"stretch")?SYe(Lr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Uc(e,n+1)!==115)break;case 6444:switch(Uc(e,ng(e)-3-(~Zee(e,"!important")&&10))){case 107:return Lr(e,":",":"+Er)+e;case 101:return Lr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Er+(Uc(e,14)===45?"inline-":"")+"box$3$1"+Er+"$2$3$1"+md+"$2box$3")+e}break;case 5936:switch(Uc(e,n+11)){case 114:return Er+e+md+Lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Er+e+md+Lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Er+e+md+Lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Er+e+md+e+e}return e}var p8t=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case mae:e.return=SYe(e.value,e.length);break;case yYe:return YC([g$(e,{value:Lr(e.value,"@","@"+Er)})],i);case hae:if(e.length)return function(a,s){return a.map(s).join("")}(e.props,function(a){switch(function(s,c){return(s=c.exec(s))?s[0]:s}(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return YC([g$(e,{props:[Lr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return YC([g$(e,{props:[Lr(a,/:(plac\w+)/,":"+Er+"input-$1")]}),g$(e,{props:[Lr(a,/:(plac\w+)/,":-moz-$1")]}),g$(e,{props:[Lr(a,/:(plac\w+)/,md+"input-$1")]})],i)}return""})}}],$Ye=function(e){var n=e.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(x){x.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i,a=e.stylisPlugins||p8t,s={},c=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)s[y[b]]=!0;c.push(x)});var d,u,p=[d8t,u8t],h=[a8t,l8t(function(x){u.insert(x)})],m=function(x){var y=gae(x);return function(b,w,C,v){for(var $="",k=0;k<y;k++)$+=x[k](b,w,C,v)||"";return $}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){YC(i8t(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new fYe({key:n,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:d};return f.sheet.hydrate(c),f};const aU=new Map;let c5;if(typeof document=="object"&&(c5=document.querySelector('[name="emotion-insertion-point"]'),!c5)){c5=document.createElement("meta"),c5.setAttribute("name","emotion-insertion-point"),c5.setAttribute("content","");const e=document.querySelector("head");e&&e.prepend(c5)}function h8t(e,n){if(e||n){class o extends fYe{insert(s,c){return this.key&&this.key.endsWith("global")&&(this.before=c5),super.insert(s,c)}}const i=((a,s)=>{const c=$Ye(a);return c.sheet=new s({key:c.key,nonce:c.sheet.nonce,container:c.sheet.container,speedy:c.sheet.isSpeedy,prepend:c.sheet.prepend,insertionPoint:c.sheet.insertionPoint}),c})({key:"css",insertionPoint:e?c5:void 0},o);if(n){const a=i.insert;i.insert=(...s)=>(s[1].styles.match(/^@layer\s+[^{]*$/)||(s[1].styles=`@layer mui {${s[1].styles}}`),a(...s))}return i}}function m8t(e){const{injectFirst:n,enableCssLayer:o,children:i}=e,a=g.useMemo(()=>{const s=`${n}-${o}`;if(typeof document=="object"&&aU.has(s))return aU.get(s);const c=h8t(n,o);return aU.set(s,c),c},[n,o]);return a?t.jsx(sYe,{value:a,children:i}):i}function kYe(e){const{styles:n,defaultTheme:o={}}=e,i=typeof n=="function"?a=>n(function(s){return s==null||Object.keys(s).length===0}(a)?o:a):n;return t.jsx(eI,{styles:i})}const Jue=[];function d7(e){return Jue[0]=e,function(n,o,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var a=!0,s="";V5=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=E_(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=E_(i,o,n[d]),a&&(s+=c[d]);Nue.lastIndex=0;for(var u,p="";(u=Nue.exec(s))!==null;)p+="-"+u[1];var h=function(m){for(var f,x=0,y=0,b=m.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&m.charCodeAt(y)|(255&m.charCodeAt(++y))<<8|(255&m.charCodeAt(++y))<<16|(255&m.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&m.charCodeAt(y+2))<<16;case 2:x^=(255&m.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&m.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)}(s)+p;return{name:h,styles:s,next:V5}}(Jue)}var Xue,epe,tpe={exports:{}},ea={};function g8t(){if(Xue)return ea;Xue=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case o:case a:case i:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case m:case h:case s:return b;default:return w}}case n:return w}}}return ea.ContextConsumer=s,ea.ContextProvider=c,ea.Element=e,ea.ForwardRef=d,ea.Fragment=o,ea.Lazy=m,ea.Memo=h,ea.Portal=n,ea.Profiler=a,ea.StrictMode=i,ea.Suspense=u,ea.SuspenseList=p,ea.isContextConsumer=function(b){return y(b)===s},ea.isContextProvider=function(b){return y(b)===c},ea.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ea.isForwardRef=function(b){return y(b)===d},ea.isFragment=function(b){return y(b)===o},ea.isLazy=function(b){return y(b)===m},ea.isMemo=function(b){return y(b)===h},ea.isPortal=function(b){return y(b)===n},ea.isProfiler=function(b){return y(b)===a},ea.isStrictMode=function(b){return y(b)===i},ea.isSuspense=function(b){return y(b)===u},ea.isSuspenseList=function(b){return y(b)===p},ea.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===i||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},ea.typeOf=y,ea}function f8t(){return epe||(epe=1,tpe.exports=g8t()),tpe.exports}var AYe=f8t();function sf(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return!(n!==null&&n!==Object.prototype&&Object.getPrototypeOf(n)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function jYe(e){if(g.isValidElement(e)||AYe.isValidElementType(e)||!sf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=jYe(e[o])}),n}function Id(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return sf(e)&&sf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||AYe.isValidElementType(n[a])?i[a]=n[a]:sf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&sf(e[a])?i[a]=Id(e[a],n[a],o):o.clone?i[a]=sf(n[a])?jYe(n[a]):n[a]:i[a]=n[a]}),i}function x8t(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,s=(h=>{const m=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return m.sort((f,x)=>f.val-x.val),m.reduce((f,x)=>({...f,[x.key]:x.val}),{})})(n),c=Object.keys(s);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-i/100}${o})`}function p(h,m){const f=c.indexOf(m);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:m)-i/100}${o})`}return{keys:c,values:s,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const m=c.indexOf(h);return m===0?d(c[1]):m===c.length-1?u(c[m]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function npe(e,n){if(!e.containerQueries)return n;const o=Object.keys(n).filter(i=>i.startsWith("@container")).sort((i,a)=>{const s=/min-width:\s*([0-9.]+)/;return+(i.match(s)?.[1]||0)-+(a.match(s)?.[1]||0)});return o.length?o.reduce((i,a)=>{const s=n[a];return delete i[a],i[a]=s,i},{...n}):n}const y8t={borderRadius:4};function aj(e,n){return n?Id(e,n,{clone:!1}):e}const VF={xs:0,sm:600,md:900,lg:1200,xl:1536},ope={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${VF[e]}px)`},b8t={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:VF[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Nf(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||ope;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||ope;return Object.keys(n).reduce((s,c)=>{if(function(d,u){return u==="@"||u.startsWith("@")&&(d.some(p=>u.startsWith(`@${p}`))||!!u.match(/^@\d/))}(a.keys,c)){const d=function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,m,f]=h,x=Number.isNaN(+m)?m||0:+m;return u.containerQueries(f).up(x)}(i.containerQueries?i:b8t,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||VF).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function ipe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function Ai(e){if(typeof e!="string")throw new Error(Rf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function HF(e,n,o=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&o){const i=`vars.${n}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(i!=null)return i}return n.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function I_(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:HF(e,o)||i,n&&(a=n(a,i,e)),a}function Ql(e){const{prop:n,cssProperty:o=e.prop,themeKey:i,transform:a}=e,s=c=>{if(c[n]==null)return null;const d=c[n],u=HF(c.theme,i)||{};return Nf(c,d,p=>{let h=I_(u,a,p);return p===h&&typeof p=="string"&&(h=I_(u,a,`${n}${p==="default"?"":Ai(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const w8t={m:"margin",p:"padding"},C8t={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rpe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},v8t=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!rpe[e])return[e];e=rpe[e]}const[n,o]=e.split(""),i=w8t[n],a=C8t[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),EYe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],IYe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function nI(e,n,o,i){const a=HF(e,n,!0)??o;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=a[c];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof a=="function"?a:()=>{}}function fae(e){return nI(e,"spacing",8)}function oI(e,n){return typeof n=="string"||n==null?n:e(n)}function S8t(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=oI(c,d),u),{})}(v8t(o),i);return Nf(e,e[o],a)}function LYe(e,n){const o=fae(e.theme);return Object.keys(e).map(i=>S8t(e,n,i,o)).reduce(aj,{})}function bl(e){return LYe(e,EYe)}function wl(e){return LYe(e,IYe)}function TYe(e=8,n=fae({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(a=>{const s=n(a);return typeof s=="number"?`${s}px`:s}).join(" ");return o.mui=!0,o}function UF(...e){const n=e.reduce((i,a)=>(a.filterProps.forEach(s=>{i[s]=a}),i),{}),o=i=>Object.keys(i).reduce((a,s)=>n[s]?aj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Ch(e){return typeof e!="number"?e:`${e}px solid`}function r0(e,n){return Ql({prop:e,themeKey:"borders",transform:n})}bl.propTypes={},bl.filterProps=EYe,wl.propTypes={},wl.filterProps=IYe;const $8t=r0("border",Ch),k8t=r0("borderTop",Ch),A8t=r0("borderRight",Ch),j8t=r0("borderBottom",Ch),E8t=r0("borderLeft",Ch),I8t=r0("borderColor"),L8t=r0("borderTopColor"),T8t=r0("borderRightColor"),D8t=r0("borderBottomColor"),P8t=r0("borderLeftColor"),B8t=r0("outline",Ch),M8t=r0("outlineColor"),xM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=nI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:oI(n,i)});return Nf(e,e.borderRadius,o)}return null};xM.propTypes={},xM.filterProps=["borderRadius"],UF($8t,k8t,A8t,j8t,E8t,I8t,L8t,T8t,D8t,P8t,xM,B8t,M8t);const L_=e=>{if(e.gap!==void 0&&e.gap!==null){const n=nI(e.theme,"spacing",8),o=i=>({gap:oI(n,i)});return Nf(e,e.gap,o)}return null};L_.propTypes={},L_.filterProps=["gap"];const T_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=nI(e.theme,"spacing",8),o=i=>({columnGap:oI(n,i)});return Nf(e,e.columnGap,o)}return null};T_.propTypes={},T_.filterProps=["columnGap"];const D_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=nI(e.theme,"spacing",8),o=i=>({rowGap:oI(n,i)});return Nf(e,e.rowGap,o)}return null};D_.propTypes={},D_.filterProps=["rowGap"];function qC(e,n){return n==="grey"?n:e}UF(L_,T_,D_,Ql({prop:"gridColumn"}),Ql({prop:"gridRow"}),Ql({prop:"gridAutoFlow"}),Ql({prop:"gridAutoColumns"}),Ql({prop:"gridAutoRows"}),Ql({prop:"gridTemplateColumns"}),Ql({prop:"gridTemplateRows"}),Ql({prop:"gridTemplateAreas"}),Ql({prop:"gridArea"}));function sp(e){return e<=1&&e!==0?100*e+"%":e}UF(Ql({prop:"color",themeKey:"palette",transform:qC}),Ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qC}),Ql({prop:"backgroundColor",themeKey:"palette",transform:qC}));const _8t=Ql({prop:"width",transform:sp}),xae=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||VF[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:sp(o)}};return Nf(e,e.maxWidth,n)}return null};xae.filterProps=["maxWidth"];const z8t=Ql({prop:"minWidth",transform:sp}),O8t=Ql({prop:"height",transform:sp}),F8t=Ql({prop:"maxHeight",transform:sp}),R8t=Ql({prop:"minHeight",transform:sp});Ql({prop:"size",cssProperty:"width",transform:sp}),Ql({prop:"size",cssProperty:"height",transform:sp});UF(_8t,xae,z8t,O8t,F8t,R8t,Ql({prop:"boxSizing"}));const WF={border:{themeKey:"borders",transform:Ch},borderTop:{themeKey:"borders",transform:Ch},borderRight:{themeKey:"borders",transform:Ch},borderBottom:{themeKey:"borders",transform:Ch},borderLeft:{themeKey:"borders",transform:Ch},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ch},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xM},color:{themeKey:"palette",transform:qC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qC},backgroundColor:{themeKey:"palette",transform:qC},p:{style:wl},pt:{style:wl},pr:{style:wl},pb:{style:wl},pl:{style:wl},px:{style:wl},py:{style:wl},padding:{style:wl},paddingTop:{style:wl},paddingRight:{style:wl},paddingBottom:{style:wl},paddingLeft:{style:wl},paddingX:{style:wl},paddingY:{style:wl},paddingInline:{style:wl},paddingInlineStart:{style:wl},paddingInlineEnd:{style:wl},paddingBlock:{style:wl},paddingBlockStart:{style:wl},paddingBlockEnd:{style:wl},m:{style:bl},mt:{style:bl},mr:{style:bl},mb:{style:bl},ml:{style:bl},mx:{style:bl},my:{style:bl},margin:{style:bl},marginTop:{style:bl},marginRight:{style:bl},marginBottom:{style:bl},marginLeft:{style:bl},marginX:{style:bl},marginY:{style:bl},marginInline:{style:bl},marginInlineStart:{style:bl},marginInlineEnd:{style:bl},marginBlock:{style:bl},marginBlockStart:{style:bl},marginBlockEnd:{style:bl},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:L_},rowGap:{style:D_},columnGap:{style:T_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sp},maxWidth:{style:xae},minWidth:{transform:sp},height:{transform:sp},maxHeight:{transform:sp},minHeight:{transform:sp},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Wx=function(){function e(n,o,i,a){const s={[n]:o,theme:i},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const m=HF(i,u)||{};return h?h(s):Nf(s,o,f=>{let x=I_(m,p,f);return f===x&&typeof f=="string"&&(x=I_(m,p,`${n}${f==="default"?"":Ai(f)}`,f)),d===!1?x:{[d]:x}})}return function n(o){const{sx:i,theme:a={},nested:s}=o||{};if(!i)return null;const c=a.unstable_sxConfig??WF;function d(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=function(x={}){return x.keys?.reduce((y,b)=>(y[x.up(b)]={},y),{})||{}}(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=function(b,w){return typeof b=="function"?b(w):b}(p[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=aj(f,e(x,y,a,c));else{const b=Nf({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce(($,k)=>$.concat(Object.keys(k)),[]),v=new Set(C);return w.every($=>v.size===Object.keys($).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=aj(f,b)}else f=aj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":npe(a,ipe(m,f))}:npe(a,ipe(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function N8t(e,n){const o=this;if(o.vars){if(!o.colorSchemes?.[e]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?n:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:n})}return o.palette.mode===e?n:{}}function yae(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Id({breakpoints:x8t(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:TYe(a),shape:{...y8t,...s}},c);return d=function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const m={},f=x=>(h(m,x),m);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=N8t,d=n.reduce((u,p)=>Id(u,p),d),d.unstable_sxConfig={...WF,...c?.unstable_sxConfig},d.unstable_sx=function(u){return Wx({sx:u,theme:this})},d}function Xee(e=null){const n=g.useContext(cYe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}Wx.filterProps=["sx"];const V8t=yae();function DYe(e=V8t){return Xee(e)}function ape(e){const n=d7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function PYe({styles:e,themeId:n,defaultTheme:o={}}){const i=DYe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>ape(typeof c=="function"?c(a):c)):ape(s)),t.jsx(kYe,{styles:s})}const lpe=e=>e,H8t=(()=>{let e=lpe;return{configure(n){e=n},generate:n=>e(n),reset(){e=lpe}}})();function BYe(e){var n,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(o=BYe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function $i(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=BYe(e))&&(i&&(i+=" "),i+=n);return i}const U8t={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function aa(e,n,o="Mui"){const i=U8t[n];return i?`${o}-${i}`:`${H8t.generate(e)}-${n}`}function Br(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=aa(e,a,o)}),i}function MYe(e){const{variants:n,...o}=e,i={variants:n,style:d7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=d7(a.style))}),i}const W8t=yae();function lU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Z8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Q8t(e){return e?(n,o)=>o[e]:null}function yM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>yM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?Z8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?Z8(d7(c),o):c}return _Ye(e,i.variants,[a],o)}return i?.isProcessed?o?Z8(d7(i.style),o):i.style:o?Z8(d7(i),o):i}function _Ye(e,n,o=[],i=void 0){let a;e:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?Z8(d7(c.style(a)),i):c.style(a))):o.push(i?Z8(d7(c.style),i):c.style)}return o}function G8t(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ete(e,n,o=!1){const i={...n};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const s=a;if(s==="components"||s==="slots")i[s]={...e[s],...i[s]};else if(s==="componentsProps"||s==="slotProps"){const c=e[s],d=n[s];if(d)if(c){i[s]={...d};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const p=u;i[s][p]=ete(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=$i(e?.className,n?.className):s==="style"&&o&&n.style?i.style={...e?.style,...n?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Hh=typeof window<"u"?g.useLayoutEffect:g.useEffect;function bae(e,n=0,o=1){return function(i,a=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(i,s))}(e,n,o)}function j7(e){if(e.type)return e;if(e.charAt(0)==="#")return j7(function(s){s=s.slice(1);const c=new RegExp(`.{1,${s.length>=6?2:1}}`,"g");let d=s.match(c);return d&&d[0].length===1&&(d=d.map(u=>u+u)),d?`rgb${d.length===4?"a":""}(${d.map((u,p)=>p<3?parseInt(u,16):Math.round(parseInt(u,16)/255*1e3)/1e3).join(", ")})`:""}(e));const n=e.indexOf("("),o=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Rf(9,e));let i,a=e.substring(n+1,e.length-1);if(o==="color"){if(a=a.split(" "),i=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Rf(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const DA=(e,n)=>{try{return(o=>{const i=j7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function QF(e){const{type:n,colorSpace:o}=e;let{values:i}=e;return n.includes("rgb")?i=i.map((a,s)=>s<3?parseInt(a,10):a):n.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),i=n.includes("color")?`${o} ${i.join(" ")}`:`${i.join(", ")}`,`${n}(${i})`}function zYe(e){e=j7(e);const{values:n}=e,o=n[0],i=n[1]/100,a=n[2]/100,s=i*Math.min(a,1-a),c=(p,h=(p+o/30)%12)=>a-s*Math.max(Math.min(h-3,9-h,1),-1);let d="rgb";const u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return e.type==="hsla"&&(d+="a",u.push(n[3])),QF({type:d,values:u})}function tte(e){let n=(e=j7(e)).type==="hsl"||e.type==="hsla"?j7(zYe(e)).values:e.values;return n=n.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function P_(e,n){return e=j7(e),n=bae(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,QF(e)}function l9(e,n,o){try{return P_(e,n)}catch{return e}}function GF(e,n){if(e=j7(e),n=bae(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-n;return QF(e)}function Gr(e,n,o){try{return GF(e,n)}catch{return e}}function YF(e,n){if(e=j7(e),n=bae(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*n;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*n;return QF(e)}function Yr(e,n,o){try{return YF(e,n)}catch{return e}}function yL(e,n,o){try{return function(i,a=.15){return tte(i)>.5?GF(i,a):YF(i,a)}(e,n)}catch{return e}}const OYe=g.createContext(null);function wae(){return g.useContext(OYe)}const Y8t=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function q8t(e){const{children:n,theme:o}=e,i=wae(),a=g.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[Y8t]=i!==null),s},[o,i]);return t.jsx(OYe.Provider,{value:a,children:n})}const FYe=g.createContext();function K8t({value:e,...n}){return t.jsx(FYe.Provider,{value:e??!0,...n})}const qF=()=>g.useContext(FYe)??!1,RYe=g.createContext(void 0);function Z8t({value:e,children:n}){return t.jsx(RYe.Provider,{value:e,children:n})}function J8t({props:e,name:n}){return function(o){const{theme:i,name:a,props:s}=o;if(!i||!i.components||!i.components[a])return s;const c=i.components[a];return c.defaultProps?ete(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:ete(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext(RYe)}})}let spe=0;const cpe={...x5t}.useId;function KF(e){if(cpe!==void 0){const n=cpe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(spe+=1,i(`mui-${spe}`))},[o]),a}(e)}const dpe={};function upe(e,n,o,i=!1){return g.useMemo(()=>{const a=e&&n[e]||n;if(typeof o=="function"){const s=o(a),c=e?{...n,[e]:s}:s;return i?()=>c:c}return e?{...n,[e]:o}:{...n,...o}},[e,n,o,i])}function NYe(e){const{children:n,theme:o,themeId:i}=e,a=Xee(dpe),s=wae()||dpe,c=upe(i,a,o),d=upe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=Xee(),f=KF()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&m===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",Hh(()=>{const b=document.querySelector("head");if(!b)return;const w=b.firstChild;if(y){if(w&&w.hasAttribute?.("data-mui-layer-order")&&w.getAttribute("data-mui-layer-order")===f)return;const C=document.createElement("style");C.setAttribute("data-mui-layer-order",f),C.textContent=y,b.prepend(C)}else b.querySelector(`style[data-mui-layer-order="${f}"]`)?.remove()},[y,f]),y?t.jsx(PYe,{styles:y}):null}(c);return t.jsx(q8t,{theme:d,children:t.jsx(cYe.Provider,{value:c,children:t.jsx(K8t,{value:u,children:t.jsxs(Z8t,{value:i?c[i].components:c.components,children:[p,n]})})})})}const ppe={theme:void 0},nte="mode",ote="color-scheme",X8t="data-color-scheme";function ext(){}const txt=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(o){if(typeof window>"u")return;if(!n)return o;let i;try{i=n.localStorage.getItem(e)}catch{}return i||o},set:o=>{if(n)try{n.localStorage.setItem(e,o)}catch{}},subscribe:o=>{if(!n)return ext;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function sU(){}function hpe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function mpe(e,n){return e.mode==="light"||e.mode==="system"&&e.systemMode==="light"?n("light"):e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark"?n("dark"):void 0}function nxt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=nte,colorSchemeStorageKey:c=ote,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=txt,noSsr:p=!1}=e,h=a.join(","),m=a.length>1,f=g.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=g.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=g.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=g.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,P=y?.get(i)||i;return{mode:L,systemMode:hpe(L),lightColorScheme:I,darkColorScheme:P}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return mpe(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),k=g.useCallback(L=>{w(I=>{if(L===I.mode)return I;const P=L??n;return f?.set(P),{...I,mode:P,systemMode:hpe(P)}})},[f,n]),j=g.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const P={...I};return mpe(I,z=>{z==="light"&&(x?.set(L),P.lightColorScheme=L),z==="dark"&&(y?.set(L),P.darkColorScheme=L)}),P}):w(I=>{const P={...I},z=L.light===null?o:L.light,M=L.dark===null?i:L.dark;return z&&(h.includes(z)?(P.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),M&&(h.includes(M)?(P.darkColorScheme=M,y?.set(M)):console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`)),P}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=g.useCallback(L=>{b.mode==="system"&&w(I=>{const P=L?.matches?"dark":"light";return I.systemMode===P?I:{...I,systemMode:P}})},[b.mode]),E=g.useRef(A);return E.current=A,g.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const L=(...P)=>E.current(...P),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[m]),g.useEffect(()=>{if(m){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)})||sU,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||sU,P=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||sU;return()=>{L(),I(),P()}}},[j,k,h,n,d,m,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?$:void 0,setMode:k,setColorScheme:j}}function oxt(e=""){function n(...o){if(!o.length)return"";const i=o[0];return typeof i!="string"||i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${i}`:`, var(--${e?`${e}-`:""}${i}${n(...o.slice(1))})`}return(o,...i)=>`var(--${e?`${e}-`:""}${o}${n(...i)})`}const gpe=(e,n,o,i=[])=>{let a=e;n.forEach((s,c)=>{c===n.length-1?Array.isArray(a)?a[Number(s)]=o:a&&typeof a=="object"&&(a[s]=o):a&&typeof a=="object"&&(a[s]||(a[s]=i.includes(s)?[]:{}),a=a[s])})};function cU(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(m,f=[],x=[]){Object.entries(m).forEach(([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))})})(d)})(e,(d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||i&&i(d,u))){const h=`--${o?`${o}-`:""}${d.join("-")}`,m=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>f.includes(y))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(a,{[h]:m}),gpe(s,d,`var(${h})`,p),gpe(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function la(e,n,o=void 0){const i={};for(const a in e){const s=e[a];let c="",d=!0;for(let u=0;u<s.length;u+=1){const p=s[u];p&&(c+=(d===!0?"":" ")+n(p),d=!1,o&&o[p]&&(c+=" "+o[p]))}i[a]=c}return i}function dU(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const Zj={black:"#000",white:"#fff"},ixt={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},rxt="#f3e5f5",axt="#ce93d8",lxt="#ba68c8",sxt="#ab47bc",cxt="#9c27b0",dxt="#7b1fa2",uxt="#e57373",pxt="#ef5350",hxt="#f44336",fpe="#d32f2f",mxt="#c62828",gxt="#ffb74d",fxt="#ffa726",xxt="#ff9800",yxt="#f57c00",bxt="#e65100",wxt="#e3f2fd",Cxt="#90caf9",xpe="#42a5f5",vxt="#1976d2",Sxt="#1565c0",$xt="#4fc3f7",kxt="#29b6f6",Axt="#03a9f4",ype="#0288d1",jxt="#01579b",Ext="#81c784",Ixt="#66bb6a",Lxt="#4caf50",Txt="#388e3c",Dxt="#2e7d32",Pxt="#1b5e20";function VYe(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Zj.white,default:Zj.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const HYe=VYe();function UYe(){return{text:{primary:Zj.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Zj.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ite=UYe();function bpe(e,n,o,i){const a=i.light||i,s=i.dark||1.5*i;e[n]||(e.hasOwnProperty(o)?e[n]=e[o]:n==="light"?e.light=YF(e.main,a):n==="dark"&&(e.dark=GF(e.main,s)))}function wpe(e,n,o,i,a){const s=a.light||a,c=a.dark||1.5*a;n[o]||(n.hasOwnProperty(i)?n[o]=n[i]:o==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(100*s).toFixed(0)}%)`:o==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(100*c).toFixed(0)}%)`))}function Cae(e){const{mode:n="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:a,...s}=e,c=e.primary||function(b="light"){return b==="dark"?{main:Cxt,light:wxt,dark:xpe}:{main:vxt,light:xpe,dark:Sxt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:axt,light:rxt,dark:sxt}:{main:cxt,light:lxt,dark:dxt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:hxt,light:uxt,dark:fpe}:{main:fpe,light:pxt,dark:mxt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:kxt,light:$xt,dark:ype}:{main:ype,light:Axt,dark:jxt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Ixt,light:Ext,dark:Txt}:{main:Dxt,light:Lxt,dark:Pxt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:fxt,light:gxt,dark:yxt}:{main:"#ed6c02",light:xxt,dark:bxt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=tte(C),k=tte(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,ite.text.primary)>=o?ite.text.primary:HYe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:$=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(Rf(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Rf(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(wpe(a,b,"light",v,i),wpe(a,b,"dark",$,i)):(bpe(b,"light",v,i),bpe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=VYe():n==="dark"&&(y=UYe()),Id({common:{...Zj},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:m,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:ixt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Bxt(e){const n={};return Object.entries(e).forEach(o=>{const[i,a]=o;typeof a=="object"&&(n[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}function Mxt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function _xt(e){return Math.round(1e5*e)/1e5}const Cpe={textTransform:"uppercase"},vpe='"Roboto", "Helvetica", "Arial", sans-serif';function WYe(e,n){const{fontFamily:o=vpe,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...m}=typeof n=="function"?n(e):n,f=i/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,$,k)=>({fontFamily:o,fontWeight:w,fontSize:x(C),lineHeight:v,...o===vpe?{letterSpacing:`${_xt($/C)}em`}:{},...k,...p}),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(c,14,1.75,.4,Cpe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Cpe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Id({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function Qa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const zxt=["none",Qa(0,2,1,-1,0,1,1,0,0,1,3,0),Qa(0,3,1,-2,0,2,2,0,0,1,5,0),Qa(0,3,3,-2,0,3,4,0,0,1,8,0),Qa(0,2,4,-1,0,4,5,0,0,1,10,0),Qa(0,3,5,-1,0,5,8,0,0,1,14,0),Qa(0,3,5,-1,0,6,10,0,0,1,18,0),Qa(0,4,5,-2,0,7,10,1,0,2,16,1),Qa(0,5,5,-3,0,8,10,1,0,3,14,2),Qa(0,5,6,-3,0,9,12,1,0,3,16,2),Qa(0,6,6,-3,0,10,14,1,0,4,18,3),Qa(0,6,7,-4,0,11,15,1,0,4,20,3),Qa(0,7,8,-4,0,12,17,2,0,5,22,4),Qa(0,7,8,-4,0,13,19,2,0,5,24,4),Qa(0,7,9,-4,0,14,21,2,0,5,26,4),Qa(0,8,9,-5,0,15,22,2,0,6,28,5),Qa(0,8,10,-5,0,16,24,2,0,6,30,5),Qa(0,8,11,-5,0,17,26,2,0,6,32,5),Qa(0,9,11,-5,0,18,28,2,0,7,34,6),Qa(0,9,12,-6,0,19,29,2,0,7,36,6),Qa(0,10,13,-6,0,20,31,3,0,8,38,7),Qa(0,10,13,-6,0,21,33,3,0,8,40,7),Qa(0,10,14,-6,0,22,35,3,0,8,42,7),Qa(0,11,14,-7,0,23,36,3,0,9,44,8),Qa(0,11,15,-7,0,24,38,3,0,9,46,8)],Oxt={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},QYe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Spe(e){return`${Math.round(e)}ms`}function Fxt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Rxt(e){const n={...Oxt,...e.easing},o={...QYe,...e.duration};return{getAutoHeightDuration:Fxt,create:(i=["all"],a={})=>{const{duration:s=o.standard,easing:c=n.easeInOut,delay:d=0,...u}=a;return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof s=="string"?s:Spe(s)} ${c} ${typeof d=="string"?d:Spe(d)}`).join(",")},...e,easing:n,duration:o}}const Nxt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Vxt(e){return sf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function GYe(e={}){const n={...e};return function o(i){const a=Object.entries(i);for(let s=0;s<a.length;s++){const[c,d]=a[s];!Vxt(d)||c.startsWith("unstable_")?delete i[c]:sf(d)&&(i[c]={...d},o(i[c]))}}(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
3
3
 
4
4
  const theme = ${JSON.stringify(n,null,2)};
5
5
 
@@ -70488,7 +70488,7 @@ ${xa.beneficiaryAddress} ${oe}`,d(ye),I(!0)})(o),"data-testid":K("title-text-cop
70488
70488
  width: 100%;
70489
70489
  `,_hr=l(Ze)`
70490
70490
  color: ${e=>e.theme.colors.hero};
70491
- `,Nre=g.createContext(void 0);function v4t(){const e=g.useContext(Nre);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const V1e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],H1e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],S4t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],$4t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],k4t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],A4t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],j4t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],E4t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],I4t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Vre(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let o=1;o<n.length;o+=1)if(n[o]==="transaction")return!0;return!1}const L4t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],T4t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],D4t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],P4t=[...S4t,...V1e,...H1e,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...L4t,...T4t,...D4t,...$4t,...k4t,...A4t,...j4t,...E4t,...I4t];function ss(e){const{pathname:n}=gp(),o=n??"";return e.some(i=>mGe(i,o)!=null)}const Qj=dGe(N9t()),zhr=["sandbox","production"],Ohr=["development","staging","production"],Ev=()=>yc==="DEV"||yc==="QA"||yc==="PUNE"||yc==="SUNNYVALE"||yc==="DELHI"||yc==="MOHALI",U1e="https://zeni-webapp-dev.uc.r.appspot.com",yc=Zf("DEV",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),P3r=(e=>Zf(e,zhr))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(yc)),NQe=(e=>Zf(e,Ohr))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(yc)),W1e=yc==="DEV"||yc==="QA"?.2:.8,B4t=W1e,_a={sentryDsn:"",sentryTraceSamplingRate:W1e,sentryProfileSamplingRate:B4t,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let xS,qE;function Fhr(e){_a.sentryDsn=e.keys.SENTRY_DSN,_a.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):W1e,_a.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):B4t,_a.googleClientId=e.keys.GOOGLE_CLIENT_ID,_a.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,_a.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,_a.mixpanelToken=e.keys.MIXPANEL_TOKEN,_a.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,_a.pusherCluster=e.keys.PUSHER_CLUSTER,_a.quickbooksKey=e.keys.QUICKBOOK_TOKEN,_a.appUrl=e.keys.WEB_ENDPOINT,_a.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,_a.cardVaultId=e.keys.UNIT_VAULT_ID,_a.stripeKey=e.keys.STRIPE_KEY,_a.qboRedirectionUrl=e.keys.QBO_URL,_a.mixpanelUrl=e.keys.MIXPANEL_URL,_a.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,qE=e.externalEndPoints,xS=e.apiEndPoints,function(n,o){const i=new Set,a=[...Object.values(n),...Object.values(o)];for(const s of a)if(typeof s=="string"&&s.length>0)try{i.add(new URL(s).origin)}catch{}for(const s of i){if(document.querySelector(`link[rel="preconnect"][href="${s}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=s,document.head.appendChild(c)}}(xS,qE)}let VQe=!1;function yC(){VQe||(uh.init("63d3a2406505a5737a2b4debdb513f20",{api_host:qE.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),VQe=!0)}const Rhr=new Set(Array.from(ao.EVENTS_WITHOUT_SUPER_PROPERTIES));let HQe=!1,UQe=!1;function Hre(){if(HQe)return;HQe=!0,yC();const e=ao.extractUtmParamsFromUrl();Object.keys(e).length>0&&uh.register(e),Ev()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Nhr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function Vhr(){const e=function(){return uh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||Nhr.has(o));for(const o of n)uh.unregister(o);Ev()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function WQe(){UQe||(UQe=!0,Vhr())}class QC{identify(n,o){if(yC(),this.#t=n,n!=null&&o!=null&&(QC.#e==null||!E6t({userId:n,traits:o},QC.#e))){const{$email:i,...a}={...o};uh.identify(n),i&&i!=null&&uh.people.set_once({$email:i}),uh.people.set(a),QC.#e={userId:n,traits:o},Ev()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(o)} `)}}identifyUserAndCompany(n,o,i,a,s){throw Error("Use identify in the web-app!!")}track(n,o){yC();const i=Rhr.has(n);if(this.#t!=null||i){if(Hre(),this.#t!=null){const a={distinct_id:this.#t,...o};uh.track(n,a)}else uh.track(n,o);if(WQe(),Ev()){const a=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(o)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(o)}`;console.log(a)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,o){yC(),Hre(),uh.track(n,o),WQe(),Ev()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){yC(),uh.alias(n,o)}reset(){yC(),uh.identify(void 0),this.#t=void 0,QC.#e=void 0}static#e;#t}const Ure=new QC,M4t=new ao.Analytics(Ure);M4t.trackWithoutUserId=Ure.trackWithoutUserId.bind(Ure);const Bh=M4t,_4t=g.createContext(null),Q1e={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Hhr({children:e}){const[n,o]=g.useState(()=>new Set([])),i=n.size>0,a=g.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=g.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:g.useCallback(()=>{o(new Set)},[])};return Bt.jsx(_4t.Provider,{value:c,children:e})}function qH(){const e=g.useContext(_4t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const Mi=new class{getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);return n!=null&&e!=null?JSON.parse(this.decrypt(n,e)):void 0}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!1}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!0}getSignedInUserTenant(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantEmailDomain===e)}getSignedInUserTenantWithId(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantId===e)}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_ACTIVE_TENANT_DOMAIN);if(!(n==null||e==null)){const o=this.decrypt(n,e),i=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS);if(i!=null)return JSON.parse(this.decrypt(i,e)).find(a=>a.tenantEmailDomain===o)}}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(n&&e!=null){const o=this.decrypt(n,e);return o?JSON.parse(o):[]}return[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),o)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(e=>window.localStorage.getItem(e)!=null).reduce((e,n)=>e&&n)}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN]);this.ALL_IDs.filter(n=>!e.has(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n)).forEach(n=>window.localStorage.removeItem(n))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){const e=window.localStorage.getItem(this.ZENI_OTP_TOKEN),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null){let o=JSON.parse(this.decrypt(e,n));return o={...o,expiry:on(o.expiry.toString())},o}}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const o=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let i={};if(o!=null)try{i=JSON.parse(o)}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(i))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:on(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return Qj.AES.encrypt(e,n).toString()}decrypt(e,n){return Qj.AES.decrypt(e,n).toString(Qj.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]};function Uhr(e){return hi(n=>function(o,i){if(i==null||i==="")return;const a=I6t(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const z4t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],O4t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],F4t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],R4t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],Whr=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function G1e(e){const n=gu(e),o=n.indexOf("review");if(o<2||n[o-1]!=="month_end_close_checks")return null;if(o===n.length-1)return"overview";const i=n[o+1];return i==null?"overview":Whr.includes(i)?i:null}const Qhr=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Ghr=new Set(["setup","verification","promo","approval-rules"]);function gu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Y1e(e){const n=gu(e),o=n[1]==="vendors"?1:-1;if(o<0||n.length<o+2)return;const i=n[o+1];if(i==="summary")return"vendors";if(i==="opex")return"opex_by_vendor";if(i==="schedules"){const a=n[o+2];return a==="prepaid_expenses"?"prepaid_expenses":a==="fixed_assets"?"fixed_assets":a==="accrued_expenses"?"accrued_expenses":void 0}return i==="filing_1099"?"form_1099":void 0}function N4t(e,n,o){const i=gu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function V4t(e,n,o){return N4t(e,n,i=>!o.has(i))}function H4t(e){return V4t(e,"bills",Qhr)}function U4t(e){return V4t(e,"reimbursements",Ghr)}function W4t(e){return N4t(e,"tasks",n=>n==="group")}const Yhr=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),qhr=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function q1e(e){const n=gu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return Yhr.has(o)?"checking":"checking_details"}function K1e(e){const n=gu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return qhr.has(o)?"cards":"cards_detail"}function Q4t(e){const n=gu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function G4t(e){return gu(e)[1]==="performance"?"performance":void 0}function Y4t(e){const n=gu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function q4t(e){const n=gu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function Kw(e,n){return n.some(o=>mGe(o,e)!=null)}function Khr(e){return Kw(e,V1e)?"reports":Kw(e,z4t)?"ap_aging":Kw(e,O4t)?"ar_aging":Y1e(e)!=null?"vendors_tab":Kw(e,H1e)?"forecast":G1e(e)!=null?"month_end_close_review":Kw(e,F4t)?"cash_balance":Kw(e,R4t)?"card_balance":W4t(e)?"task_checklist":Q4t(e)!=null?"transaction_detail":G4t(e)!=null?"performance":Y4t(e)!=null?"bills_detail":q4t(e)!=null?"reimbursement_detail":H4t(e)?"bills_list":U4t(e)?"reimbursement_list":function(n){const o=gu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":q1e(e)!=null?"checking":function(n){return gu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":K1e(e)!=null?"cards":function(n){return gu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return gu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return gu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function K4t(e,n){switch(Khr(e)){case"reports":{const o=n?.selectedReportId;return o==null?void 0:function(i){switch(i){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}}(o)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Y1e(e);case"forecast":return"forecast";case"month_end_close_review":{const o=G1e(e);return o==null?void 0:function(i){switch(i){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}}(o)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"dashboard":return"dashboard";case"checking":return q1e(e);case"treasury":return"treasury";case"cards":return K1e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Zhr(){const{pathname:e}=gp(),n=e??"",o=hi(i=>i.financeStatementState?.selectedReportId);return g.useMemo(()=>K4t(n,{selectedReportId:o}),[n,o])}const Z4t=g.createContext(void 0),J4t=()=>g.useContext(Z4t),Jhr=e=>{const n=Mi.isSignedIn(),o=Mi.getSignedInUser(),[i,a]=g.useState(void 0),s=g.useMemo(()=>i,[i]),c=hi(p=>ju(p)),d=c.companyId,u=c.userRoleId;return g.useEffect(()=>{let p,h=!1;if(n&&c.tenantId!=null&&o?.userId!=null&&o.zeniSessionId!=null){i!=null&&(i.channels.all().forEach(w=>{i.unsubscribe(w.name)}),i.disconnect()),a(void 0);const m=o.userId,f=c.tenantId,x=o.zeniSessionId,y=()=>{if(h)return;const w=T6t(_a.pusherClientSecret,{cluster:_a.pusherCluster},{userId:m,tenantId:f,sessionId:x},!0);a(w),w!=null&&(d!=null&&S_(w,d),m!=null&&S_(w,m),u!=null&&S_(w,u))},b=()=>{const w=XE();return w.tenantId===f&&w.userId===m&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),XGe(m,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(m=>i?.unsubscribe(m.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Bt.jsx(Z4t.Provider,{value:s,children:e.children})};function S_(e,n){const o=`private-${n}`,i=e.channel(o);if(i?.subscribed===!0)return i;const a=e.subscribe(o);return a.bind("pusher:subscription_error",s=>{console.warn("Pusher Channel Connection Subscription Error",s)}),a}const Z1e=e=>n=>{const o=J4t(),i=g.useRef(n.eventCallback),a=g.useRef({});g.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=g.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return g.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),m=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(m?.subscribed===!0)x=m,x.bind(h,f),d.push(()=>{m.unbind(h,f)});else{x=m??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Bt.jsx(e,{...n})},xf=(e,n)=>{const o=[...e??[]];return o.push(n),o},B3r=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},M3r=({state:e})=>Mi.isSignedIn()===!0?Bt.jsx(z5t,{}):Bt.jsx(gGe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Xhr=({children:e})=>{const n=Yee("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});g.useEffect(()=>{const s=Mi.getTheme()==null?n:Mi.getTheme()==="dark";o.dark!==s&&i({dark:s})},[o,n]);const a=o.dark?B_({palette:{mode:"dark"},..._$e},z$e,$On,AOn):B_({palette:{mode:"light"},..._$e},z$e,SOn,kOn);return Bt.jsx(LAn,{dark:o.dark,webAppTheme:a,toggle:()=>{const s=!o.dark;Mi.setTheme(s?"dark":"light"),i({...o,dark:s})},children:e})},X4t=g.createContext(!1),e0r=X4t.Provider;function t0r(){return g.useContext(X4t)}const n0r=()=>hi(e=>ju(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=_5t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function e5t(){const{useDynamicConfig:e}=tc(),{configValue:n}=e(C0.aiCfoConfig),o=hi(u=>ju(u)),i=Mi.getSignedInUser(),a=xn();if(n==null||o==null||i?.userId==null||a==null||a?.loggedInUserRoleMap==null)return!1;if(Y7(i)){const u=Array.isArray(n.zeni_admin_whitelist)&&n.zeni_admin_whitelist.includes(i.userId),p=D6t(a.loggedInUserRoleMap),h=Array.isArray(n.zeni_admin_company_ids)&&n.zeni_admin_company_ids.includes(o.companyId);return(u||p)&&h}const s=Array.isArray(o.userRole)?o.userRole:[],c=fGe(s)||xGe(s),d=Array.isArray(n.customer_company_ids)&&n.customer_company_ids.includes(o.companyId);return c&&d}const Wre=e=>nmn.includes(e),$_=e=>Wat.includes(e),QQe=e=>Wre(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":hO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:$_(e)?`ai-cfo/${e}`:e,o0r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],GQe=(e,n)=>e.includes(n),Qre=e=>{switch(e.split("/")[2]){case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return function(n){if(n==null)return;const o=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const i of o)if(GQe(n,i))switch(i){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}}(e);case"performance":return"performance";case"month_end_close_checks":return function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const o=n.split("/"),i=o.indexOf("review"),a=i>=0?o[i+1]:void 0;return a!=null&&hO(a)?Uat(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Wat)if(GQe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function YQe(e){let n=Qre(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=Qre(o[i])}return n??"home"}function i0r(e){return e.pathname.includes("settings")}function r0r(e){return e.pathname.includes("ai-cfo")}const a0r=()=>{const e=l0r();return LA("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},l0r=()=>gp().state?.message==="expenseAutomation";function s0r(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const c0r=(e,n,o)=>{const i=eYe(e),a=P6t(e),s=tYe(o,e);return n||o||a||i||s},Zw="AppDrawer",s2={root:`${Zw}-root`,drawer:`${Zw}-drawer`,appBar:`${Zw}-appBar`,menuButton:`${Zw}-menuButton`,appBarZenilogo:`${Zw}-appBarZenilogo`,drawerZenilogo:`${Zw}-drawerZenilogo`},KE=210,d0r=Vn("div",{slot:"Root"})(({theme:e})=>({[`&.${s2.root}`]:{display:"flex"},[`& .${s2.drawer}`]:{[e.breakpoints.up("md")]:{width:KE,flexShrink:0,backgroundColor:e.colors.background}},[`& .${s2.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${s2.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${s2.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${s2.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),u0r=Z1e(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=v4t(),[i,a]=T.useState(!1),[s,c]=g.useState(!1),d=gp(),u=IF(),p=XE(),h=Ose(),m=Ff(),[f,x]=g.useState(!1),y=Te(),{useFeatureGate:b}=tc(),{isFeatureEnabled:w}=b(Xi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Xi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Xi.isExpenseAutomationEnabledV2),[$,k]=g.useState(()=>Mi.getSignedInUser());g.useEffect(()=>{const Rt=()=>{const Fn=Mi.getSignedInUser();k(Fn)};return window.addEventListener("completeProfileDone",Rt),()=>{window.removeEventListener("completeProfileDone",Rt)}},[]);const j=hi(Rt=>ju(Rt)),{setLoading:A}=qH(),E=e5t(),L=Y7($),I=v||C&&L,P=t0r(),[z,M]=g.useState(void 0),{isFeatureEnabled:V}=b(Xi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:F}=b(Xi.isChargeCardFeatureEnabled),O=c0r(j,F,w),{isFeatureEnabled:R}=b(Xi.isSettingsFeatureEnabled),{isFeatureEnabled:_}=b(Xi.isReferralFeatureEnabled),{isFeatureEnabled:N}=b(Xi.isTreasuryEnabled),{isFeatureEnabled:H}=b(Xi.isTaskManagerCustomerUserAccessEnabled),Q=L||!L&&H,U=hi(Rt=>M6t(Rt));g.useEffect(()=>{const Rt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Rt),()=>{window.removeEventListener("scroll",Rt)}},[]);const G=hi(Rt=>_6t(Rt)),Z=hi(Rt=>Rt.expenseAutomationViewState.selectedPeriodByTenantId),q=hi(Rt=>z6t(Rt)),{monthEndCloseChecksView:oe}=q,te=LA("/signout")!==null,ne=LA("/:tenantEmailDomain/dashboard")!==null,ee=LA("/:tenantEmailDomain/reports")!==null,ie=LA("/:tenantEmailDomain/onboarding/*")!==null,ae=a0r();g.useEffect(()=>{P&&_&&!ie&&G.fetchState==="Not-Started"&&m(O6t(!0))},[P,_,G.fetchState,ie]),g.useEffect(()=>{if(ae){const Rt=d.state?.origin;if(Rt!=null){const Fn=F6t(Rt);m(jue(Fn))}}},[ae,d.state]),g.useEffect(()=>{const Rt=Z[j.tenantId];Rt!=null&&oe.fetchState!=="In-Progress"&&oe.fetchState!=="Completed"&&m(R6t({tenantId:j.tenantId,period:Rt,refreshViewInBackground:!1}))},[Z,oe.fetchState,j.tenantId]);const se=te||ie,ye=hi(Rt=>Rt.tenantState),ge=hi(Rt=>ye.fetchState==="Completed"?oYe(Rt):[]),{isFeatureEnabled:ue}=b(Xi.isApAgingFeatureEnabled),{isFeatureEnabled:me}=b(Xi.isArAgingFeatureEnabled),{isFeatureEnabled:le}=b(Xi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ce}=b(Xi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:fe}=b(Xi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:he}=b(Xi.isDashboardSidebarNewYearAnimationEnabled),we=hi(Rt=>db(Rt).totalUnreadCount),xe=hi(Rt=>db(Rt).notificationDetailsByTab.tasks.uiState.unreadCount),Se=hi(Rt=>db(Rt).notificationDetailsByTab.comments.uiState.unreadCount),$e=hi(Rt=>db(Rt).reducedFetchCountState),Ae=hi(Rt=>db(Rt).notificationDetailsByTab.tasks.fetchCountState),je=hi(Rt=>sae(Rt)),[Le,We]=g.useState(void 0),Ve=je.uiState.currentChatSessionId,Ce=Le!=null?je.deleteChatSessionStateByChatSessionId[Le]?.fetchState:void 0,Ee=Et(Ce),{inboxNotifications:ke,isLoading:He,isFetchingMore:qe,hasFetchedAll:ut,fetchMore:At}=n0r(),Re=hi(Rt=>db(Rt).notificationDetailsByTab.comments.fetchCountState);g.useEffect(()=>{const Rt=setTimeout(()=>At?.(),0);return()=>clearTimeout(Rt)}),g.useEffect(()=>{if(Le!=null)return Ee==="In-Progress"&&Ce==="Completed"?(m(Eue({chatSessionId:Le})),We(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(Ce==="Error"&&(m(Eue({chatSessionId:Le})),We(void 0)))},[m,d.state,u,Ce,Le,Ee,e]),g.useEffect(()=>{if(He===!1&&qe===!1&&ut===!0&&j?.companyId!=null&&ke!=null){const Rt=`dashboard_${j.companyId}`;M(ke.filter(Fn=>Fn.roomId===Rt&&Fn.readAt==null).length)}},[He,qe,ut,j?.companyId,ke]),g.useEffect(()=>{P&&L&&!ie&&Ae.fetchState==="Not-Started"&&p.tenantId!=null&&m(N6t("task_manager","dashboard"))},[P,p.tenantId]),g.useEffect(()=>{ie||Re.fetchState!=="Not-Started"||m(Iue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),g.useEffect(()=>{if(z!=null){const{fetchState:Rt}=Re;Rt!=="In-Progress"&&Rt!=="Completed"||(Rt==="In-Progress"&&m(Iue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(nYe({unreadCount:z},"comments")))}},[z,Re.fetchState]);const pt={fetchStatus:$e,count:we},gt=[];ue===!1&&gt.push("accounts_payable_aging"),me===!1&&gt.push("accounts_receivable_aging"),V===!1&&gt.push("zeni_accounts_promo_card"),_===!1&&gt.push("rewards_card"),I===!1&&gt.push("expense_automation_card");const $t=xn(),Ft=hi(Rt=>V6t(Rt,gt,$,v,C,N).fetchState),bt=hi(Rt=>H6t(Rt).fetchState),qt=e!=null?Mi.getSignedInUserTenant(e):null,Pt=hi(Rt=>qt?.tenantId!=null?iYe(Rt,qt.tenantId):void 0),zt=ne&&(Ft==="Completed"||Ft==="Error")||ee&&(bt==="Completed"||bt==="Error")||!ne&&!ee?void 0:"disabled",kt=g.useMemo(()=>rYe(j.userRole),[j.userRole]),Tt=jGe(kt),ln=Rt=>{a(Rt)},hn=j.company!=null&&U6t(j.company),Vt=N&&hn,vt=EGe($t?.loggedInUserRoleMap),en=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,Zt=hi(Rt=>Rt.treasurySetupViewState.treasuryFundsDetails),rn=g.useCallback(()=>Vt&&vt&&Zt?.fetchStatus.fetchState==="Completed"&&!Mi.getTreasuryPopupSeen(e??"")&&en===!1&&Qre(d.pathname)!=="treasury",[Vt,vt,en,d.pathname,e,Zt?.fetchStatus]),[Rn,dn]=g.useState(rn);g.useEffect(()=>{P&&Vt&&Zt?.fetchStatus.fetchState==="Not-Started"&&m(W6t())},[P,Vt,Zt?.fetchStatus.fetchState]),g.useEffect(()=>{dn(rn())},[rn]);const Ot=s0r(Zt.fundsDetails),Un=j?.rewardsLastViewedTime==null,Qn=$?.userEmail!=null&&U.fetchState==="Completed"&&Q6t(U.notificationSettings,$.userEmail,w,j),eo=g.useCallback(Rt=>{const Fn=d.state?.referrer;if(oe.monthEndCloseChecks?.auditSummary!=null&&Bh.trackMonthCloseAuditPage(Rt.month,Rt.year,oe.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",oe.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,Fn??null),m(G6t(j.tenantId,Rt)),Z[j.tenantId]!=null){const ho=xf(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${q.currentSelectedView}/${Rt.month}-${Rt.year}`,{state:{pathnameStackToGoBack:ho,referrer:q.currentSelectedView}})}m(jue(q.currentSelectedView)),q.reconciliation.selectedAccountId!=null&&m(Y6t({selectedAccountId:void 0}))},[q.reconciliation.selectedAccountId,q.currentSelectedView,j.tenantId,oe.monthEndCloseChecks?.auditSummary,oe.monthEndCloseChecks?.reportEmailSentDate,Z,e,d.state,d.pathname]),To=g.useMemo(()=>({zIndex:s||Rn?12:S[2]}),[s,Rn]),Bo=E&&r0r(d),Gn=Bt.jsx(ZKn,{signedInUser:$,currentTenantId:ye.currentTenantId??"",tenants:ye.fetchState==="Completed"?ge:Pt!=null?[Pt]:[],rewardsConfiguration:{isRewardsTabVisible:_,isRewardsAnimated:Un,rewardsPlan:G.rewardsPlan},selectedMenu:n===!0?Uat("ai_cfo"):YQe(d),isTenantDropdownDisabled:zt,isSettings:i0r(d),isSettingsFeatureEnabled:R,currentTenant:j,isVendorsTabVisible:Tt,isZeniAccountEnabled:V,isChargeCardEnabled:O,isTreasuryEnabled:Vt,isTreasuryPopupVisible:Rn,treasuryYieldPercentage:Ot,isNotificationsTabVisible:Qn,notificationCountDetails:pt,isExpenseAutomationEnabledForUser:I&&Na(j.userRole)===!1,isAiCfoAccessEnabled:E,onNotificationIconClick:()=>{ln(!1);const Rt=L?xe===0&&Se>0?"notifications/comments":"notifications/tasks":"notifications/comments",Fn=xf(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Rt}`,{state:{pathnameStackToGoBack:Fn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Rt=>{A(Q1e.TENANT_SWITCHING),ln(!1);const Fn=Rt.tenantEmailDomain,ho=YQe(d),gn=ho;let Pn="";const fo=hO(gn);ho==="home"?Pn+="dashboard":ho==="users_and_roles"?Pn+="people":Wre(ho)?Pn+="settings/my_profile":$_(ho)?Pn+=`ai-cfo/${ho}`:Pn+=gn==="task_checklist"?"tasks":fo?"month_end_close_checks/review":encodeURIComponent(ho);const lo=`/${encodeURIComponent(Fn)}/${Pn}`;u(lo,{replace:!0}),$!=null&&(m(cae(Rt.tenantId)),m(aYe($.userId,Rt.tenantId,$.zeniSessionId)));const Mo=Rt;Bh.trackCompanySwitch(Mo.companyId,Mo.companyName,Mo.userRole)},handleMenuChange:(Rt,Fn)=>{if($!=null&&Bh.trackSidePanelClicked(Rt.type,Rt.group),ln(!1),n&&(lo=>{if(Wre(lo)||$_(lo))return!0;const Mo=QQe(lo).split("/")[0];return!o0r.includes(Mo)})(Rt.type)&&o(!1),Rt.type==="ai_cfo"){Bh.trackAICFOChatScreenStateChanged("viewed","left_menu",Ve??null,null);const lo=xf(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:lo,referrer:"Sidebar"}})}const ho=xf(d.state?.pathnameStackToGoBack,d.pathname),gn=Rt.type,Pn=hO(gn)&&gn!=="command_center";if(gn!=="command_center"&&!Pn||Z[j.tenantId]==null||Bh.trackMonthEndCloseClicked(Z[j.tenantId].month,Z[j.tenantId].year,"Sidebar"),Pn&&Z[j.tenantId]!=null){const lo=Z[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Rt.type}/${lo.month}-${lo.year}`,{state:{pathnameStackToGoBack:ho,message:Fn,referrer:"Sidebar"}})}const fo=QQe(Rt.type);$_(Rt.type)?(Ve!=null&&m(A_()),u(`/${e}/ai-cfo/${Rt.type}`,{state:{pathnameStackToGoBack:ho.slice(0,-1),message:Fn,referrer:"Sidebar"}})):u(`../${e}/${fo}`,{state:{pathnameStackToGoBack:ho,message:Fn,referrer:"Sidebar"}})},onDeleteChatSession:Rt=>{m(q6t(Rt)),Ve===Rt&&We(Rt)},handleLogOutClick:()=>{ln(!1);const Rt=xf(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Rt,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{Mi.saveTreasuryPopupSeen(e??"",!0),dn(!1)},monthEndCloseChecksView:oe,onPeriodChange:eo,onCalendarOpen:c,aiCfoView:je,isAiCfo:Bo,isOnDashboard:ne,isTaskManagerAccessEnabled:Q,updateCurrentChatSessionId:Rt=>{m(lae({sessionId:Rt,agentId:"controller"})),u(`../${e}/ai-cfo/${Rt}`)},halloweenAnimationEnabled:le,thanksGivingAnimationEnabled:ce,christmasAnimationEnabled:fe,newYearAnimationEnabled:he}),pn=Bt.jsx(C9t,{position:"fixed",className:s2.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Bt.jsxs(v9t,{style:{minHeight:zat},children:[Bt.jsx(S9t,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>ln(!0),className:s2.menuButton,size:"large",children:Bt.jsx(p0r,{})}),Bt.jsx(h0r,{className:s2.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),mn=Yee(Rt=>Rt.breakpoints.up("md")),On=Yee(Rt=>Rt.breakpoints.down("md"));return e==null?null:Bt.jsxs(d0r,{className:s2.root,children:[Bt.jsx($9t,{}),se===!1?Bt.jsxs(Bt.Fragment,{children:[mn||!ne?null:pn,Bt.jsxs("nav",{className:s2.drawer,children:[mn?null:Bt.jsx(j_,{container:window.document.body,variant:"temporary",open:i,onClose:()=>ln(!1),PaperProps:{sx:{width:KE,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:Gn}),On?null:Bt.jsx(j_,{PaperProps:{sx:{width:KE,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...To}},variant:"permanent",open:!0,children:Gn})]})]}):null]})});function qQe(e){return e?.data.unread!=null&&e?.mode!=null}const p0r=Vn(e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.604839 4.51889C0.333157 4.57797 0.0879194 4.8318 0.0182541 5.12602C-0.00534674 5.22569 -0.00534674 5.4412 0.0182541 5.54086C0.0523791 5.685 0.117181 5.80198 0.22956 5.92229C0.346814 6.04782 0.459133 6.11627 0.600351 6.14826C0.726193 6.17676 23.2738 6.17676 23.3997 6.14826C23.5409 6.11627 23.6532 6.04782 23.7704 5.92229C23.9348 5.74632 24 5.57908 24 5.33344C24 5.1793 23.9797 5.08352 23.9199 4.95575C23.8455 4.79698 23.6879 4.63709 23.5343 4.56468C23.3857 4.49468 24.2116 4.49926 11.9899 4.50058C2.66632 4.50157 0.669677 4.50479 0.604839 4.51889ZM0.669895 11.1732C0.365117 11.2113 0.0889356 11.4752 0.0182179 11.7958C-0.00468131 11.8996 -0.00469357 12.0996 0.0181935 12.2034C0.0806855 12.4867 0.305734 12.7294 0.581516 12.8108C0.65573 12.8327 1.1761 12.8337 12 12.8337C22.8591 12.8337 23.3441 12.8327 23.4192 12.8106C23.6933 12.7297 23.9196 12.4855 23.9818 12.2034C24.0047 12.0996 24.0047 11.8997 23.9818 11.7959C23.9201 11.516 23.7014 11.2776 23.425 11.1888C23.3558 11.1665 22.8817 11.1655 12.0544 11.164C5.84032 11.1631 0.717278 11.1672 0.669895 11.1732ZM0.594774 17.8516C0.458952 17.8831 0.344939 17.9535 0.22956 18.077C0.0652015 18.253 0 18.4202 0 18.6659C0 18.82 0.0203225 18.9158 0.0801289 19.0435C0.154452 19.2023 0.312097 19.3622 0.465726 19.4346C0.614214 19.5046 -0.209758 19.4999 12 19.4999C21.8294 19.4999 23.3082 19.4975 23.3881 19.4811C23.6596 19.4256 23.9122 19.1669 23.9817 18.8733C24.0053 18.7736 24.0053 18.5581 23.9817 18.4584C23.9476 18.3143 23.8828 18.1973 23.7704 18.077C23.6532 17.9515 23.5409 17.883 23.3997 17.851C23.2779 17.8235 0.713601 17.824 0.594774 17.8516Z",fill:"currentColor"})))`
70491
+ `,Nre=g.createContext(void 0);function v4t(){const e=g.useContext(Nre);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const V1e=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],H1e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],S4t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],$4t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],k4t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],A4t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],j4t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],E4t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],I4t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Vre(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let o=1;o<n.length;o+=1)if(n[o]==="transaction")return!0;return!1}const L4t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],T4t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],D4t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],P4t=[...S4t,...V1e,...H1e,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...L4t,...T4t,...D4t,...$4t,...k4t,...A4t,...j4t,...E4t,...I4t];function ss(e){const{pathname:n}=gp(),o=n??"";return e.some(i=>mGe(i,o)!=null)}const Qj=dGe(N9t()),zhr=["sandbox","production"],Ohr=["development","staging","production"],Ev=()=>yc==="DEV"||yc==="QA"||yc==="PUNE"||yc==="SUNNYVALE"||yc==="DELHI"||yc==="MOHALI",U1e="https://zeni-webapp-qa.uc.r.appspot.com",yc=Zf("QA",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),P3r=(e=>Zf(e,zhr))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(yc)),NQe=(e=>Zf(e,Ohr))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(yc)),W1e=yc==="DEV"||yc==="QA"?.2:.8,B4t=W1e,_a={sentryDsn:"",sentryTraceSamplingRate:W1e,sentryProfileSamplingRate:B4t,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let xS,qE;function Fhr(e){_a.sentryDsn=e.keys.SENTRY_DSN,_a.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):W1e,_a.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):B4t,_a.googleClientId=e.keys.GOOGLE_CLIENT_ID,_a.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,_a.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,_a.mixpanelToken=e.keys.MIXPANEL_TOKEN,_a.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,_a.pusherCluster=e.keys.PUSHER_CLUSTER,_a.quickbooksKey=e.keys.QUICKBOOK_TOKEN,_a.appUrl=e.keys.WEB_ENDPOINT,_a.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,_a.cardVaultId=e.keys.UNIT_VAULT_ID,_a.stripeKey=e.keys.STRIPE_KEY,_a.qboRedirectionUrl=e.keys.QBO_URL,_a.mixpanelUrl=e.keys.MIXPANEL_URL,_a.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,qE=e.externalEndPoints,xS=e.apiEndPoints,function(n,o){const i=new Set,a=[...Object.values(n),...Object.values(o)];for(const s of a)if(typeof s=="string"&&s.length>0)try{i.add(new URL(s).origin)}catch{}for(const s of i){if(document.querySelector(`link[rel="preconnect"][href="${s}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=s,document.head.appendChild(c)}}(xS,qE)}let VQe=!1;function yC(){VQe||(uh.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:qE.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),VQe=!0)}const Rhr=new Set(Array.from(ao.EVENTS_WITHOUT_SUPER_PROPERTIES));let HQe=!1,UQe=!1;function Hre(){if(HQe)return;HQe=!0,yC();const e=ao.extractUtmParamsFromUrl();Object.keys(e).length>0&&uh.register(e),Ev()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Nhr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function Vhr(){const e=function(){return uh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||Nhr.has(o));for(const o of n)uh.unregister(o);Ev()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function WQe(){UQe||(UQe=!0,Vhr())}class QC{identify(n,o){if(yC(),this.#t=n,n!=null&&o!=null&&(QC.#e==null||!E6t({userId:n,traits:o},QC.#e))){const{$email:i,...a}={...o};uh.identify(n),i&&i!=null&&uh.people.set_once({$email:i}),uh.people.set(a),QC.#e={userId:n,traits:o},Ev()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(o)} `)}}identifyUserAndCompany(n,o,i,a,s){throw Error("Use identify in the web-app!!")}track(n,o){yC();const i=Rhr.has(n);if(this.#t!=null||i){if(Hre(),this.#t!=null){const a={distinct_id:this.#t,...o};uh.track(n,a)}else uh.track(n,o);if(WQe(),Ev()){const a=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(o)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(o)}`;console.log(a)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,o){yC(),Hre(),uh.track(n,o),WQe(),Ev()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){yC(),uh.alias(n,o)}reset(){yC(),uh.identify(void 0),this.#t=void 0,QC.#e=void 0}static#e;#t}const Ure=new QC,M4t=new ao.Analytics(Ure);M4t.trackWithoutUserId=Ure.trackWithoutUserId.bind(Ure);const Bh=M4t,_4t=g.createContext(null),Q1e={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Hhr({children:e}){const[n,o]=g.useState(()=>new Set([])),i=n.size>0,a=g.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=g.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:g.useCallback(()=>{o(new Set)},[])};return Bt.jsx(_4t.Provider,{value:c,children:e})}function qH(){const e=g.useContext(_4t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const Mi=new class{getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);return n!=null&&e!=null?JSON.parse(this.decrypt(n,e)):void 0}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!1}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!0}getSignedInUserTenant(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantEmailDomain===e)}getSignedInUserTenantWithId(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantId===e)}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_ACTIVE_TENANT_DOMAIN);if(!(n==null||e==null)){const o=this.decrypt(n,e),i=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS);if(i!=null)return JSON.parse(this.decrypt(i,e)).find(a=>a.tenantEmailDomain===o)}}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(n&&e!=null){const o=this.decrypt(n,e);return o?JSON.parse(o):[]}return[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),o)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(e=>window.localStorage.getItem(e)!=null).reduce((e,n)=>e&&n)}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN]);this.ALL_IDs.filter(n=>!e.has(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n)).forEach(n=>window.localStorage.removeItem(n))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){const e=window.localStorage.getItem(this.ZENI_OTP_TOKEN),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null){let o=JSON.parse(this.decrypt(e,n));return o={...o,expiry:on(o.expiry.toString())},o}}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const o=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let i={};if(o!=null)try{i=JSON.parse(o)}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(i))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:on(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return Qj.AES.encrypt(e,n).toString()}decrypt(e,n){return Qj.AES.decrypt(e,n).toString(Qj.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]};function Uhr(e){return hi(n=>function(o,i){if(i==null||i==="")return;const a=I6t(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const z4t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],O4t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],F4t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],R4t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],Whr=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function G1e(e){const n=gu(e),o=n.indexOf("review");if(o<2||n[o-1]!=="month_end_close_checks")return null;if(o===n.length-1)return"overview";const i=n[o+1];return i==null?"overview":Whr.includes(i)?i:null}const Qhr=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Ghr=new Set(["setup","verification","promo","approval-rules"]);function gu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Y1e(e){const n=gu(e),o=n[1]==="vendors"?1:-1;if(o<0||n.length<o+2)return;const i=n[o+1];if(i==="summary")return"vendors";if(i==="opex")return"opex_by_vendor";if(i==="schedules"){const a=n[o+2];return a==="prepaid_expenses"?"prepaid_expenses":a==="fixed_assets"?"fixed_assets":a==="accrued_expenses"?"accrued_expenses":void 0}return i==="filing_1099"?"form_1099":void 0}function N4t(e,n,o){const i=gu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function V4t(e,n,o){return N4t(e,n,i=>!o.has(i))}function H4t(e){return V4t(e,"bills",Qhr)}function U4t(e){return V4t(e,"reimbursements",Ghr)}function W4t(e){return N4t(e,"tasks",n=>n==="group")}const Yhr=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),qhr=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function q1e(e){const n=gu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return Yhr.has(o)?"checking":"checking_details"}function K1e(e){const n=gu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return qhr.has(o)?"cards":"cards_detail"}function Q4t(e){const n=gu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function G4t(e){return gu(e)[1]==="performance"?"performance":void 0}function Y4t(e){const n=gu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function q4t(e){const n=gu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function Kw(e,n){return n.some(o=>mGe(o,e)!=null)}function Khr(e){return Kw(e,V1e)?"reports":Kw(e,z4t)?"ap_aging":Kw(e,O4t)?"ar_aging":Y1e(e)!=null?"vendors_tab":Kw(e,H1e)?"forecast":G1e(e)!=null?"month_end_close_review":Kw(e,F4t)?"cash_balance":Kw(e,R4t)?"card_balance":W4t(e)?"task_checklist":Q4t(e)!=null?"transaction_detail":G4t(e)!=null?"performance":Y4t(e)!=null?"bills_detail":q4t(e)!=null?"reimbursement_detail":H4t(e)?"bills_list":U4t(e)?"reimbursement_list":function(n){const o=gu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":q1e(e)!=null?"checking":function(n){return gu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":K1e(e)!=null?"cards":function(n){return gu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return gu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return gu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function K4t(e,n){switch(Khr(e)){case"reports":{const o=n?.selectedReportId;return o==null?void 0:function(i){switch(i){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}}(o)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Y1e(e);case"forecast":return"forecast";case"month_end_close_review":{const o=G1e(e);return o==null?void 0:function(i){switch(i){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}}(o)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"dashboard":return"dashboard";case"checking":return q1e(e);case"treasury":return"treasury";case"cards":return K1e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Zhr(){const{pathname:e}=gp(),n=e??"",o=hi(i=>i.financeStatementState?.selectedReportId);return g.useMemo(()=>K4t(n,{selectedReportId:o}),[n,o])}const Z4t=g.createContext(void 0),J4t=()=>g.useContext(Z4t),Jhr=e=>{const n=Mi.isSignedIn(),o=Mi.getSignedInUser(),[i,a]=g.useState(void 0),s=g.useMemo(()=>i,[i]),c=hi(p=>ju(p)),d=c.companyId,u=c.userRoleId;return g.useEffect(()=>{let p,h=!1;if(n&&c.tenantId!=null&&o?.userId!=null&&o.zeniSessionId!=null){i!=null&&(i.channels.all().forEach(w=>{i.unsubscribe(w.name)}),i.disconnect()),a(void 0);const m=o.userId,f=c.tenantId,x=o.zeniSessionId,y=()=>{if(h)return;const w=T6t(_a.pusherClientSecret,{cluster:_a.pusherCluster},{userId:m,tenantId:f,sessionId:x},!0);a(w),w!=null&&(d!=null&&S_(w,d),m!=null&&S_(w,m),u!=null&&S_(w,u))},b=()=>{const w=XE();return w.tenantId===f&&w.userId===m&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),XGe(m,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(m=>i?.unsubscribe(m.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Bt.jsx(Z4t.Provider,{value:s,children:e.children})};function S_(e,n){const o=`private-${n}`,i=e.channel(o);if(i?.subscribed===!0)return i;const a=e.subscribe(o);return a.bind("pusher:subscription_error",s=>{console.warn("Pusher Channel Connection Subscription Error",s)}),a}const Z1e=e=>n=>{const o=J4t(),i=g.useRef(n.eventCallback),a=g.useRef({});g.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=g.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return g.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),m=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(m?.subscribed===!0)x=m,x.bind(h,f),d.push(()=>{m.unbind(h,f)});else{x=m??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Bt.jsx(e,{...n})},xf=(e,n)=>{const o=[...e??[]];return o.push(n),o},B3r=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},M3r=({state:e})=>Mi.isSignedIn()===!0?Bt.jsx(z5t,{}):Bt.jsx(gGe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Xhr=({children:e})=>{const n=Yee("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});g.useEffect(()=>{const s=Mi.getTheme()==null?n:Mi.getTheme()==="dark";o.dark!==s&&i({dark:s})},[o,n]);const a=o.dark?B_({palette:{mode:"dark"},..._$e},z$e,$On,AOn):B_({palette:{mode:"light"},..._$e},z$e,SOn,kOn);return Bt.jsx(LAn,{dark:o.dark,webAppTheme:a,toggle:()=>{const s=!o.dark;Mi.setTheme(s?"dark":"light"),i({...o,dark:s})},children:e})},X4t=g.createContext(!1),e0r=X4t.Provider;function t0r(){return g.useContext(X4t)}const n0r=()=>hi(e=>ju(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=_5t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function e5t(){const{useDynamicConfig:e}=tc(),{configValue:n}=e(C0.aiCfoConfig),o=hi(u=>ju(u)),i=Mi.getSignedInUser(),a=xn();if(n==null||o==null||i?.userId==null||a==null||a?.loggedInUserRoleMap==null)return!1;if(Y7(i)){const u=Array.isArray(n.zeni_admin_whitelist)&&n.zeni_admin_whitelist.includes(i.userId),p=D6t(a.loggedInUserRoleMap),h=Array.isArray(n.zeni_admin_company_ids)&&n.zeni_admin_company_ids.includes(o.companyId);return(u||p)&&h}const s=Array.isArray(o.userRole)?o.userRole:[],c=fGe(s)||xGe(s),d=Array.isArray(n.customer_company_ids)&&n.customer_company_ids.includes(o.companyId);return c&&d}const Wre=e=>nmn.includes(e),$_=e=>Wat.includes(e),QQe=e=>Wre(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":hO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:$_(e)?`ai-cfo/${e}`:e,o0r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],GQe=(e,n)=>e.includes(n),Qre=e=>{switch(e.split("/")[2]){case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return function(n){if(n==null)return;const o=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const i of o)if(GQe(n,i))switch(i){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}}(e);case"performance":return"performance";case"month_end_close_checks":return function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const o=n.split("/"),i=o.indexOf("review"),a=i>=0?o[i+1]:void 0;return a!=null&&hO(a)?Uat(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Wat)if(GQe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function YQe(e){let n=Qre(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=Qre(o[i])}return n??"home"}function i0r(e){return e.pathname.includes("settings")}function r0r(e){return e.pathname.includes("ai-cfo")}const a0r=()=>{const e=l0r();return LA("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},l0r=()=>gp().state?.message==="expenseAutomation";function s0r(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const c0r=(e,n,o)=>{const i=eYe(e),a=P6t(e),s=tYe(o,e);return n||o||a||i||s},Zw="AppDrawer",s2={root:`${Zw}-root`,drawer:`${Zw}-drawer`,appBar:`${Zw}-appBar`,menuButton:`${Zw}-menuButton`,appBarZenilogo:`${Zw}-appBarZenilogo`,drawerZenilogo:`${Zw}-drawerZenilogo`},KE=210,d0r=Vn("div",{slot:"Root"})(({theme:e})=>({[`&.${s2.root}`]:{display:"flex"},[`& .${s2.drawer}`]:{[e.breakpoints.up("md")]:{width:KE,flexShrink:0,backgroundColor:e.colors.background}},[`& .${s2.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${s2.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${s2.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${s2.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),u0r=Z1e(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=v4t(),[i,a]=T.useState(!1),[s,c]=g.useState(!1),d=gp(),u=IF(),p=XE(),h=Ose(),m=Ff(),[f,x]=g.useState(!1),y=Te(),{useFeatureGate:b}=tc(),{isFeatureEnabled:w}=b(Xi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Xi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Xi.isExpenseAutomationEnabledV2),[$,k]=g.useState(()=>Mi.getSignedInUser());g.useEffect(()=>{const Rt=()=>{const Fn=Mi.getSignedInUser();k(Fn)};return window.addEventListener("completeProfileDone",Rt),()=>{window.removeEventListener("completeProfileDone",Rt)}},[]);const j=hi(Rt=>ju(Rt)),{setLoading:A}=qH(),E=e5t(),L=Y7($),I=v||C&&L,P=t0r(),[z,M]=g.useState(void 0),{isFeatureEnabled:V}=b(Xi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:F}=b(Xi.isChargeCardFeatureEnabled),O=c0r(j,F,w),{isFeatureEnabled:R}=b(Xi.isSettingsFeatureEnabled),{isFeatureEnabled:_}=b(Xi.isReferralFeatureEnabled),{isFeatureEnabled:N}=b(Xi.isTreasuryEnabled),{isFeatureEnabled:H}=b(Xi.isTaskManagerCustomerUserAccessEnabled),Q=L||!L&&H,U=hi(Rt=>M6t(Rt));g.useEffect(()=>{const Rt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Rt),()=>{window.removeEventListener("scroll",Rt)}},[]);const G=hi(Rt=>_6t(Rt)),Z=hi(Rt=>Rt.expenseAutomationViewState.selectedPeriodByTenantId),q=hi(Rt=>z6t(Rt)),{monthEndCloseChecksView:oe}=q,te=LA("/signout")!==null,ne=LA("/:tenantEmailDomain/dashboard")!==null,ee=LA("/:tenantEmailDomain/reports")!==null,ie=LA("/:tenantEmailDomain/onboarding/*")!==null,ae=a0r();g.useEffect(()=>{P&&_&&!ie&&G.fetchState==="Not-Started"&&m(O6t(!0))},[P,_,G.fetchState,ie]),g.useEffect(()=>{if(ae){const Rt=d.state?.origin;if(Rt!=null){const Fn=F6t(Rt);m(jue(Fn))}}},[ae,d.state]),g.useEffect(()=>{const Rt=Z[j.tenantId];Rt!=null&&oe.fetchState!=="In-Progress"&&oe.fetchState!=="Completed"&&m(R6t({tenantId:j.tenantId,period:Rt,refreshViewInBackground:!1}))},[Z,oe.fetchState,j.tenantId]);const se=te||ie,ye=hi(Rt=>Rt.tenantState),ge=hi(Rt=>ye.fetchState==="Completed"?oYe(Rt):[]),{isFeatureEnabled:ue}=b(Xi.isApAgingFeatureEnabled),{isFeatureEnabled:me}=b(Xi.isArAgingFeatureEnabled),{isFeatureEnabled:le}=b(Xi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ce}=b(Xi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:fe}=b(Xi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:he}=b(Xi.isDashboardSidebarNewYearAnimationEnabled),we=hi(Rt=>db(Rt).totalUnreadCount),xe=hi(Rt=>db(Rt).notificationDetailsByTab.tasks.uiState.unreadCount),Se=hi(Rt=>db(Rt).notificationDetailsByTab.comments.uiState.unreadCount),$e=hi(Rt=>db(Rt).reducedFetchCountState),Ae=hi(Rt=>db(Rt).notificationDetailsByTab.tasks.fetchCountState),je=hi(Rt=>sae(Rt)),[Le,We]=g.useState(void 0),Ve=je.uiState.currentChatSessionId,Ce=Le!=null?je.deleteChatSessionStateByChatSessionId[Le]?.fetchState:void 0,Ee=Et(Ce),{inboxNotifications:ke,isLoading:He,isFetchingMore:qe,hasFetchedAll:ut,fetchMore:At}=n0r(),Re=hi(Rt=>db(Rt).notificationDetailsByTab.comments.fetchCountState);g.useEffect(()=>{const Rt=setTimeout(()=>At?.(),0);return()=>clearTimeout(Rt)}),g.useEffect(()=>{if(Le!=null)return Ee==="In-Progress"&&Ce==="Completed"?(m(Eue({chatSessionId:Le})),We(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(Ce==="Error"&&(m(Eue({chatSessionId:Le})),We(void 0)))},[m,d.state,u,Ce,Le,Ee,e]),g.useEffect(()=>{if(He===!1&&qe===!1&&ut===!0&&j?.companyId!=null&&ke!=null){const Rt=`dashboard_${j.companyId}`;M(ke.filter(Fn=>Fn.roomId===Rt&&Fn.readAt==null).length)}},[He,qe,ut,j?.companyId,ke]),g.useEffect(()=>{P&&L&&!ie&&Ae.fetchState==="Not-Started"&&p.tenantId!=null&&m(N6t("task_manager","dashboard"))},[P,p.tenantId]),g.useEffect(()=>{ie||Re.fetchState!=="Not-Started"||m(Iue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),g.useEffect(()=>{if(z!=null){const{fetchState:Rt}=Re;Rt!=="In-Progress"&&Rt!=="Completed"||(Rt==="In-Progress"&&m(Iue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(nYe({unreadCount:z},"comments")))}},[z,Re.fetchState]);const pt={fetchStatus:$e,count:we},gt=[];ue===!1&&gt.push("accounts_payable_aging"),me===!1&&gt.push("accounts_receivable_aging"),V===!1&&gt.push("zeni_accounts_promo_card"),_===!1&&gt.push("rewards_card"),I===!1&&gt.push("expense_automation_card");const $t=xn(),Ft=hi(Rt=>V6t(Rt,gt,$,v,C,N).fetchState),bt=hi(Rt=>H6t(Rt).fetchState),qt=e!=null?Mi.getSignedInUserTenant(e):null,Pt=hi(Rt=>qt?.tenantId!=null?iYe(Rt,qt.tenantId):void 0),zt=ne&&(Ft==="Completed"||Ft==="Error")||ee&&(bt==="Completed"||bt==="Error")||!ne&&!ee?void 0:"disabled",kt=g.useMemo(()=>rYe(j.userRole),[j.userRole]),Tt=jGe(kt),ln=Rt=>{a(Rt)},hn=j.company!=null&&U6t(j.company),Vt=N&&hn,vt=EGe($t?.loggedInUserRoleMap),en=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,Zt=hi(Rt=>Rt.treasurySetupViewState.treasuryFundsDetails),rn=g.useCallback(()=>Vt&&vt&&Zt?.fetchStatus.fetchState==="Completed"&&!Mi.getTreasuryPopupSeen(e??"")&&en===!1&&Qre(d.pathname)!=="treasury",[Vt,vt,en,d.pathname,e,Zt?.fetchStatus]),[Rn,dn]=g.useState(rn);g.useEffect(()=>{P&&Vt&&Zt?.fetchStatus.fetchState==="Not-Started"&&m(W6t())},[P,Vt,Zt?.fetchStatus.fetchState]),g.useEffect(()=>{dn(rn())},[rn]);const Ot=s0r(Zt.fundsDetails),Un=j?.rewardsLastViewedTime==null,Qn=$?.userEmail!=null&&U.fetchState==="Completed"&&Q6t(U.notificationSettings,$.userEmail,w,j),eo=g.useCallback(Rt=>{const Fn=d.state?.referrer;if(oe.monthEndCloseChecks?.auditSummary!=null&&Bh.trackMonthCloseAuditPage(Rt.month,Rt.year,oe.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",oe.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,Fn??null),m(G6t(j.tenantId,Rt)),Z[j.tenantId]!=null){const ho=xf(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${q.currentSelectedView}/${Rt.month}-${Rt.year}`,{state:{pathnameStackToGoBack:ho,referrer:q.currentSelectedView}})}m(jue(q.currentSelectedView)),q.reconciliation.selectedAccountId!=null&&m(Y6t({selectedAccountId:void 0}))},[q.reconciliation.selectedAccountId,q.currentSelectedView,j.tenantId,oe.monthEndCloseChecks?.auditSummary,oe.monthEndCloseChecks?.reportEmailSentDate,Z,e,d.state,d.pathname]),To=g.useMemo(()=>({zIndex:s||Rn?12:S[2]}),[s,Rn]),Bo=E&&r0r(d),Gn=Bt.jsx(ZKn,{signedInUser:$,currentTenantId:ye.currentTenantId??"",tenants:ye.fetchState==="Completed"?ge:Pt!=null?[Pt]:[],rewardsConfiguration:{isRewardsTabVisible:_,isRewardsAnimated:Un,rewardsPlan:G.rewardsPlan},selectedMenu:n===!0?Uat("ai_cfo"):YQe(d),isTenantDropdownDisabled:zt,isSettings:i0r(d),isSettingsFeatureEnabled:R,currentTenant:j,isVendorsTabVisible:Tt,isZeniAccountEnabled:V,isChargeCardEnabled:O,isTreasuryEnabled:Vt,isTreasuryPopupVisible:Rn,treasuryYieldPercentage:Ot,isNotificationsTabVisible:Qn,notificationCountDetails:pt,isExpenseAutomationEnabledForUser:I&&Na(j.userRole)===!1,isAiCfoAccessEnabled:E,onNotificationIconClick:()=>{ln(!1);const Rt=L?xe===0&&Se>0?"notifications/comments":"notifications/tasks":"notifications/comments",Fn=xf(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Rt}`,{state:{pathnameStackToGoBack:Fn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Rt=>{A(Q1e.TENANT_SWITCHING),ln(!1);const Fn=Rt.tenantEmailDomain,ho=YQe(d),gn=ho;let Pn="";const fo=hO(gn);ho==="home"?Pn+="dashboard":ho==="users_and_roles"?Pn+="people":Wre(ho)?Pn+="settings/my_profile":$_(ho)?Pn+=`ai-cfo/${ho}`:Pn+=gn==="task_checklist"?"tasks":fo?"month_end_close_checks/review":encodeURIComponent(ho);const lo=`/${encodeURIComponent(Fn)}/${Pn}`;u(lo,{replace:!0}),$!=null&&(m(cae(Rt.tenantId)),m(aYe($.userId,Rt.tenantId,$.zeniSessionId)));const Mo=Rt;Bh.trackCompanySwitch(Mo.companyId,Mo.companyName,Mo.userRole)},handleMenuChange:(Rt,Fn)=>{if($!=null&&Bh.trackSidePanelClicked(Rt.type,Rt.group),ln(!1),n&&(lo=>{if(Wre(lo)||$_(lo))return!0;const Mo=QQe(lo).split("/")[0];return!o0r.includes(Mo)})(Rt.type)&&o(!1),Rt.type==="ai_cfo"){Bh.trackAICFOChatScreenStateChanged("viewed","left_menu",Ve??null,null);const lo=xf(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:lo,referrer:"Sidebar"}})}const ho=xf(d.state?.pathnameStackToGoBack,d.pathname),gn=Rt.type,Pn=hO(gn)&&gn!=="command_center";if(gn!=="command_center"&&!Pn||Z[j.tenantId]==null||Bh.trackMonthEndCloseClicked(Z[j.tenantId].month,Z[j.tenantId].year,"Sidebar"),Pn&&Z[j.tenantId]!=null){const lo=Z[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Rt.type}/${lo.month}-${lo.year}`,{state:{pathnameStackToGoBack:ho,message:Fn,referrer:"Sidebar"}})}const fo=QQe(Rt.type);$_(Rt.type)?(Ve!=null&&m(A_()),u(`/${e}/ai-cfo/${Rt.type}`,{state:{pathnameStackToGoBack:ho.slice(0,-1),message:Fn,referrer:"Sidebar"}})):u(`../${e}/${fo}`,{state:{pathnameStackToGoBack:ho,message:Fn,referrer:"Sidebar"}})},onDeleteChatSession:Rt=>{m(q6t(Rt)),Ve===Rt&&We(Rt)},handleLogOutClick:()=>{ln(!1);const Rt=xf(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Rt,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{Mi.saveTreasuryPopupSeen(e??"",!0),dn(!1)},monthEndCloseChecksView:oe,onPeriodChange:eo,onCalendarOpen:c,aiCfoView:je,isAiCfo:Bo,isOnDashboard:ne,isTaskManagerAccessEnabled:Q,updateCurrentChatSessionId:Rt=>{m(lae({sessionId:Rt,agentId:"controller"})),u(`../${e}/ai-cfo/${Rt}`)},halloweenAnimationEnabled:le,thanksGivingAnimationEnabled:ce,christmasAnimationEnabled:fe,newYearAnimationEnabled:he}),pn=Bt.jsx(C9t,{position:"fixed",className:s2.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Bt.jsxs(v9t,{style:{minHeight:zat},children:[Bt.jsx(S9t,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>ln(!0),className:s2.menuButton,size:"large",children:Bt.jsx(p0r,{})}),Bt.jsx(h0r,{className:s2.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),mn=Yee(Rt=>Rt.breakpoints.up("md")),On=Yee(Rt=>Rt.breakpoints.down("md"));return e==null?null:Bt.jsxs(d0r,{className:s2.root,children:[Bt.jsx($9t,{}),se===!1?Bt.jsxs(Bt.Fragment,{children:[mn||!ne?null:pn,Bt.jsxs("nav",{className:s2.drawer,children:[mn?null:Bt.jsx(j_,{container:window.document.body,variant:"temporary",open:i,onClose:()=>ln(!1),PaperProps:{sx:{width:KE,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:Gn}),On?null:Bt.jsx(j_,{PaperProps:{sx:{width:KE,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...To}},variant:"permanent",open:!0,children:Gn})]})]}):null]})});function qQe(e){return e?.data.unread!=null&&e?.mode!=null}const p0r=Vn(e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.604839 4.51889C0.333157 4.57797 0.0879194 4.8318 0.0182541 5.12602C-0.00534674 5.22569 -0.00534674 5.4412 0.0182541 5.54086C0.0523791 5.685 0.117181 5.80198 0.22956 5.92229C0.346814 6.04782 0.459133 6.11627 0.600351 6.14826C0.726193 6.17676 23.2738 6.17676 23.3997 6.14826C23.5409 6.11627 23.6532 6.04782 23.7704 5.92229C23.9348 5.74632 24 5.57908 24 5.33344C24 5.1793 23.9797 5.08352 23.9199 4.95575C23.8455 4.79698 23.6879 4.63709 23.5343 4.56468C23.3857 4.49468 24.2116 4.49926 11.9899 4.50058C2.66632 4.50157 0.669677 4.50479 0.604839 4.51889ZM0.669895 11.1732C0.365117 11.2113 0.0889356 11.4752 0.0182179 11.7958C-0.00468131 11.8996 -0.00469357 12.0996 0.0181935 12.2034C0.0806855 12.4867 0.305734 12.7294 0.581516 12.8108C0.65573 12.8327 1.1761 12.8337 12 12.8337C22.8591 12.8337 23.3441 12.8327 23.4192 12.8106C23.6933 12.7297 23.9196 12.4855 23.9818 12.2034C24.0047 12.0996 24.0047 11.8997 23.9818 11.7959C23.9201 11.516 23.7014 11.2776 23.425 11.1888C23.3558 11.1665 22.8817 11.1655 12.0544 11.164C5.84032 11.1631 0.717278 11.1672 0.669895 11.1732ZM0.594774 17.8516C0.458952 17.8831 0.344939 17.9535 0.22956 18.077C0.0652015 18.253 0 18.4202 0 18.6659C0 18.82 0.0203225 18.9158 0.0801289 19.0435C0.154452 19.2023 0.312097 19.3622 0.465726 19.4346C0.614214 19.5046 -0.209758 19.4999 12 19.4999C21.8294 19.4999 23.3082 19.4975 23.3881 19.4811C23.6596 19.4256 23.9122 19.1669 23.9817 18.8733C24.0053 18.7736 24.0053 18.5581 23.9817 18.4584C23.9476 18.3143 23.8828 18.1973 23.7704 18.077C23.6532 17.9515 23.5409 17.883 23.3997 17.851C23.2779 17.8235 0.713601 17.824 0.594774 17.8516Z",fill:"currentColor"})))`
70492
70492
  height: 20px;
70493
70493
  width: 20px;
70494
70494
  color: ${e=>e.theme.colors.primary};
@@ -70585,7 +70585,7 @@ ${xa.beneficiaryAddress} ${oe}`,d(ye),I(!0)})(o),"data-testid":K("title-text-cop
70585
70585
  display: flex;
70586
70586
  min-height: 100%;
70587
70587
  flex-direction: column;
70588
- `,z0r=()=>{const[e,n]=g.useState(()=>Mi.getSignedInUser()),o=Ff(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=hi(m=>lYe(m).fetchState),u=hi(m=>ju(m));g.useEffect(()=>{const m=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(m)},[e]);const p=g.useCallback(()=>{const m=Mi.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(m)?m:f)},[]);g.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),g.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(u9t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Bt.jsxs(g.Fragment,{children:[s&&Bt.jsx(oce,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Bt.jsx(M0r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},KQe="init-enter",O0r=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||KQe);F0r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||KQe,c=R0r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),F0r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),R0r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},i5t=g.createContext(void 0),N0r=({children:e})=>{const{tenantEmailDomain:n}=F5t(),o=n!=null?Mi.getSignedInUserTenant(n):void 0,i=hi(u=>ju(u)),a=XE().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Bt.jsx(i5t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},_3r=()=>{const e=g.useContext(i5t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},Im=e=>g.lazy(async()=>{const n=e.toString(),o=Mi.getForceRefreshedComponents(),i=new Set(o),a=Mi.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&Mi.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&Mi.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),r5t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),a5t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),l5t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),s5t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function $l(...e){const n=yc==="DEV"||yc==="QA";if(r5t||a5t||l5t||s5t)return void console.log(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.log(...e)}function Iv(...e){const n=yc==="DEV"||yc==="QA";if(r5t||a5t||l5t||s5t)return void console.warn(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.warn(...e)}let Jw=null,IA=!1;const Ul=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function ZQe(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),a=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const V0r={dashboard:function(e){return[...ZQe()]},reports:ZQe,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${Ul}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Ul}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Ul}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${Ul}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Ul}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:o}=e,i=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${Ul}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Ul}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Ul}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Ul}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function JQe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,V0r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?($l(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?($l(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||($l(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return $l(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function XQe(e,n=0,o){if("serviceWorker"in navigator)try{const i=await async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise((h,m)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?($l("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):m(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)})}(1e4),a=navigator.serviceWorker.controller||i.active;if(!a)return void Iv("[Prefetch Manager - Service Worker] No active Service Worker available");const s=function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort((h,m)=>p[h.priority]-p[m.priority])}(e);$l("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:s.length,high:s.filter(u=>u.priority==="HIGH").length,medium:s.filter(u=>u.priority==="MEDIUM").length,low:s.filter(u=>u.priority==="LOW").length,batchSize:n>0?n:"disabled",expirationTime:o??"20 minutes",viaController:!!navigator.serviceWorker.controller}),s.forEach((u,p)=>{$l(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),$l(` URL: ${u.url}`)});const c=XE(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};a.postMessage({type:"PREFETCH_URLS",payload:{urls:s.map(u=>({url:u.url,priority:u.priority,apiType:u.apiType})),authHeaders:d,batchSize:n,expirationTime:o}}),$l("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){Iv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Iv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function H0r({children:e,currentPage:n,tenantId:o,batchCalls:i=0,expirationTime:a,delay:s=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:m=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=g.useState(!1),[b,w]=g.useState(!1),C=g.useRef(null),v=gp(),$=Mi.getSignedInUser(),{useFeatureGate:k}=tc(),{isFeatureEnabled:j}=k(Xi.isReferralFeatureEnabled),A=xn(),E=c7(A?.loggedInUserRole??[]),L=hi(V=>ju(V)),{isFeatureEnabled:I}=k(Xi.isDebitCardFeatureEnabled),P=tYe(I,L),z=eYe(L),M=P===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const V=JQe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L?.companyId??"",isPageIndependent:m}),F=m?"dashboard":n;if(V.length===0)return void $l(`[Prefetch Provider - ${F}${m?" (base)":""}] No URLs to prefetch`);$l(`[Prefetch Provider - ${F}${m?" (base)":""}] 📦 Generated ${V.length} URLs to prefetch`);const O=setTimeout(()=>{XQe(V,i,a).catch(R=>{Iv(`[Prefetch Provider - ${F}${m?" (base)":""}] Prefetch failed:`,R)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,M,L?.companyId,m,i,a,s,v.pathname]),g.useEffect(()=>{y(!1)},[o,v.pathname]),g.useEffect(()=>{m||(y(!1),w(!1))},[v.pathname,m]),g.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&$&&o)||b)return;$l(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const V=function(F){const{timeout:O=2e3,onIdle:R}=F;$l(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const _=()=>{IA&&($l("[Idle Detection - Service Worker] 🏃 User became active again"),IA=!1),Jw&&clearTimeout(Jw),Jw=setTimeout(()=>{IA||($l("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),IA=!0,R())},O)},N=["mousedown","mousemove","keypress","scroll","touchstart","click"];return N.forEach(H=>{document.addEventListener(H,_,!0)}),_(),()=>{$l("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),Jw&&(clearTimeout(Jw),Jw=null),N.forEach(H=>{document.removeEventListener(H,_,!0)}),IA=!1}}({timeout:h,onIdle:()=>{if(b)return;$l("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const F=JQe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;F.length!==0?($l(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${F.length} URLs to prefetch on idle`),XQe(F,i,a).catch(R=>{Iv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,R)}),w(!0)):$l(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=V,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,M,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.useEffect(()=>{(function(){const V=performance.getEntriesByType("navigation");if(V.length>0)return V[0].type==="reload";const F=performance.navigation;return!(!F||typeof F.type!="number")&&F.type===1})()&&f&&($l("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const V=await navigator.serviceWorker.ready,F=navigator.serviceWorker.controller||V.active;if(!F)return;$l("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),F.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(V){Iv("[Prefetch Provider] Failed to notify service worker of refresh:",V)}}())},[]),Bt.jsx(Bt.Fragment,{children:e})}function U0r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=gp(),u=hi(y=>ju(y)),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const m=u.tenantId,{useFeatureGate:f}=tc(),{isFeatureEnabled:x}=f(Xi.isServiceWorkerPrefetchingEnabled);return m&&p?Bt.jsx(H0r,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Bt.jsx(Bt.Fragment,{children:e})}function W0r(e,n){const o=ao.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const Q0r=Im(()=>S1(()=>import("./DefaultTenantHome-C4r-hTkj.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),eGe=Im(()=>S1(()=>Promise.resolve().then(()=>m0r),void 0)),tGe=Im(()=>S1(()=>import("./ScreenRoutes-CsRNaB7V.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),G0r=Im(()=>S1(()=>import("./ConnectionAuthScreen-Y4nfaNNV.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),Y0r=Im(()=>S1(()=>import("./SignInScreen-DxjD1CPo.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),q0r=Im(()=>S1(()=>import("./MagicLinkSignInScreen-DaLkRpCV.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),nGe=Im(()=>S1(()=>import("./NotFoundScreen-CAOLTLHp.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),K0r=Im(()=>S1(()=>import("./MagicLinkRoutes-BxQ-5ayp.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),Z0r=Im(()=>S1(()=>import("./WiseConfirmationScreen-B2x2znqS.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),J0r=Im(()=>S1(()=>import("./CustomerOnboardingAuthScreen-gxNylpwG.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),X0r=Im(()=>S1(()=>import("./SignOutScreen-tGSzKdMS.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),e2r=()=>{const e=gp(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=W0r("/",n);return Bt.jsx(gGe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})},t2r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=gp(),i=Mi.isSignedIn(),a=hi(z=>ju(z)),s=Mi.getSignedInUser(),c=i&&Y7(s),d=hi(z=>p9t(z)).tenantsBaseInOrder.map(z=>({companyId:z.companyId,tenantId:z.tenantId,companyName:z.companyName})),u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:a.tenantId??""},p=Ff(),h=ss(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),m=ss(P4t)||Vre(o.pathname),f=e5t(),[x,y]=g.useState(!1),b=g.useMemo(()=>({isAiCfoOpen:x,setIsAiCfoOpen:y}),[x,y]),{useFeatureGate:w}=tc(),{isFeatureEnabled:C}=w(Xi.isAiCfoFileUploadEnabled),{isFeatureEnabled:v}=w(Xi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=w(Xi.isReimbursementCommentingEnabled),{isFeatureEnabled:k}=w(Xi.isExpenseAutomationEnabled),{isFeatureEnabled:j}=w(Xi.isExpenseAutomationEnabledV2),{isFeatureEnabled:A}=w(Xi.isTreasuryCommentingEnabled),{isFeatureEnabled:E}=w(Xi.isCheckingCommentingEnabled),{isFeatureEnabled:L}=w(Xi.isTransactionCommentingEnabled),{isFeatureEnabled:I}=w(Xi.isCardsCommentingEnabled),P=v||$||c&&k||!c&&j||A||E||L||I;return g.useEffect(()=>{!m&&x&&y(!1)},[m,x]),g.useEffect(()=>{m||p(h9t())},[p,m]),Bt.jsx(vgn,{children:a.tenantId!=null?Bt.jsx(ADi,{roomId:`dashboard_${a.companyId}`,authParams:u,users:[],companies:d,authUrlEndPoint:`${xS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${xS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:c,autoConnect:c||L||I,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:P,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:a.companyId},children:Bt.jsx(Nre.Provider,{value:b,children:Bt.jsxs(rGe,{children:[Bt.jsx(eGe,{tenantEmailDomain:e}),Bt.jsx(iGe,{children:Bt.jsx(oGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:C})})]})})}):Bt.jsx(EDi,{children:Bt.jsx(Nre.Provider,{value:b,children:Bt.jsxs(rGe,{children:[Bt.jsx(eGe,{tenantEmailDomain:e}),Bt.jsx(iGe,{children:Bt.jsx(oGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:C})})]})})})})},oGe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=hi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=tc(),{configValue:c}=s(C0.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=qH(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=v4t();return g.useEffect(()=>{h(Q1e.APP_INITIALIZATION)},[h]),Bt.jsx(g.Suspense,{fallback:null,children:Bt.jsx(U0r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Bt.jsxs(R5t,{children:[Bt.jsx(Vp,{path:"/magic_links/*",element:Bt.jsx(K0r,{})}),Bt.jsx(Vp,{path:"/wise/callback/link-account/*",element:Bt.jsx(Z0r,{})}),Bt.jsx(Vp,{path:"/page-not-found",element:Bt.jsx(nGe,{})}),Bt.jsx(Vp,{path:"/",element:Bt.jsx(Q0r,{})}),Bt.jsx(Vp,{path:"/aicfo",element:Bt.jsx(e2r,{})}),Bt.jsx(Vp,{path:"/onboarding/auth",element:Bt.jsx(J0r,{})}),Bt.jsx(Vp,{path:"/:tenantEmailDomain/*",element:Bt.jsxs(i2r,{children:[Bt.jsx(r2r,{children:Bt.jsxs(N0r,{children:[a!=null?Bt.jsx(z0r,{}):null,n?Bt.jsx(tGe,{setTenantEmailDomain:e}):Bt.jsx(Nee,{children:Bt.jsx(tGe,{setTenantEmailDomain:e})})]})}),o?Bt.jsx(a2r,{isOpen:m,children:Bt.jsx(j0r,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Bt.jsx(Vp,{path:"/signin/auth",element:Bt.jsx(Nee,{children:Bt.jsx(Y0r,{setTenantEmailDomain:e})})}),Bt.jsx(Vp,{path:"/signin/magic-link",element:Bt.jsx(Nee,{children:Bt.jsx(q0r,{})})}),Bt.jsx(Vp,{path:"/signout",element:Bt.jsx(X0r,{})}),Bt.jsx(Vp,{path:"/connection/auth",element:Bt.jsx(G0r,{})}),Bt.jsx(Vp,{path:"*",element:Bt.jsx(nGe,{})})]})})})},iGe=({children:e})=>{const{isOpen:n,width:o}=Jat();return Bt.jsx(o2r,{commentsDrawerWidth:n?o:0,children:e})},n2r=Vn("div")`
70588
+ `,z0r=()=>{const[e,n]=g.useState(()=>Mi.getSignedInUser()),o=Ff(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=hi(m=>lYe(m).fetchState),u=hi(m=>ju(m));g.useEffect(()=>{const m=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(m)},[e]);const p=g.useCallback(()=>{const m=Mi.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(m)?m:f)},[]);g.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),g.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(u9t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Bt.jsxs(g.Fragment,{children:[s&&Bt.jsx(oce,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Bt.jsx(M0r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},KQe="init-enter",O0r=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||KQe);F0r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||KQe,c=R0r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),F0r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),R0r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},i5t=g.createContext(void 0),N0r=({children:e})=>{const{tenantEmailDomain:n}=F5t(),o=n!=null?Mi.getSignedInUserTenant(n):void 0,i=hi(u=>ju(u)),a=XE().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Bt.jsx(i5t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},_3r=()=>{const e=g.useContext(i5t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},Im=e=>g.lazy(async()=>{const n=e.toString(),o=Mi.getForceRefreshedComponents(),i=new Set(o),a=Mi.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&Mi.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&Mi.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),r5t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),a5t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),l5t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),s5t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function $l(...e){const n=yc==="DEV"||yc==="QA";if(r5t||a5t||l5t||s5t)return void console.log(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.log(...e)}function Iv(...e){const n=yc==="DEV"||yc==="QA";if(r5t||a5t||l5t||s5t)return void console.warn(...e);const o=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&o&&console.warn(...e)}let Jw=null,IA=!1;const Ul=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function ZQe(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),a=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Ul}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const V0r={dashboard:function(e){return[...ZQe()]},reports:ZQe,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),o=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Ul}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${Ul}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Ul}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Ul}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${Ul}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Ul}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:o}=e,i=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${Ul}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Ul}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Ul}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Ul}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function JQe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,V0r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?($l(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?($l(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||($l(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return $l(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function XQe(e,n=0,o){if("serviceWorker"in navigator)try{const i=await async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise((h,m)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?($l("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):m(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)})}(1e4),a=navigator.serviceWorker.controller||i.active;if(!a)return void Iv("[Prefetch Manager - Service Worker] No active Service Worker available");const s=function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort((h,m)=>p[h.priority]-p[m.priority])}(e);$l("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:s.length,high:s.filter(u=>u.priority==="HIGH").length,medium:s.filter(u=>u.priority==="MEDIUM").length,low:s.filter(u=>u.priority==="LOW").length,batchSize:n>0?n:"disabled",expirationTime:o??"20 minutes",viaController:!!navigator.serviceWorker.controller}),s.forEach((u,p)=>{$l(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),$l(` URL: ${u.url}`)});const c=XE(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};a.postMessage({type:"PREFETCH_URLS",payload:{urls:s.map(u=>({url:u.url,priority:u.priority,apiType:u.apiType})),authHeaders:d,batchSize:n,expirationTime:o}}),$l("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){Iv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Iv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function H0r({children:e,currentPage:n,tenantId:o,batchCalls:i=0,expirationTime:a,delay:s=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:m=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=g.useState(!1),[b,w]=g.useState(!1),C=g.useRef(null),v=gp(),$=Mi.getSignedInUser(),{useFeatureGate:k}=tc(),{isFeatureEnabled:j}=k(Xi.isReferralFeatureEnabled),A=xn(),E=c7(A?.loggedInUserRole??[]),L=hi(V=>ju(V)),{isFeatureEnabled:I}=k(Xi.isDebitCardFeatureEnabled),P=tYe(I,L),z=eYe(L),M=P===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const V=JQe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L?.companyId??"",isPageIndependent:m}),F=m?"dashboard":n;if(V.length===0)return void $l(`[Prefetch Provider - ${F}${m?" (base)":""}] No URLs to prefetch`);$l(`[Prefetch Provider - ${F}${m?" (base)":""}] 📦 Generated ${V.length} URLs to prefetch`);const O=setTimeout(()=>{XQe(V,i,a).catch(R=>{Iv(`[Prefetch Provider - ${F}${m?" (base)":""}] Prefetch failed:`,R)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,M,L?.companyId,m,i,a,s,v.pathname]),g.useEffect(()=>{y(!1)},[o,v.pathname]),g.useEffect(()=>{m||(y(!1),w(!1))},[v.pathname,m]),g.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&$&&o)||b)return;$l(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const V=function(F){const{timeout:O=2e3,onIdle:R}=F;$l(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const _=()=>{IA&&($l("[Idle Detection - Service Worker] 🏃 User became active again"),IA=!1),Jw&&clearTimeout(Jw),Jw=setTimeout(()=>{IA||($l("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),IA=!0,R())},O)},N=["mousedown","mousemove","keypress","scroll","touchstart","click"];return N.forEach(H=>{document.addEventListener(H,_,!0)}),_(),()=>{$l("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),Jw&&(clearTimeout(Jw),Jw=null),N.forEach(H=>{document.removeEventListener(H,_,!0)}),IA=!1}}({timeout:h,onIdle:()=>{if(b)return;$l("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const F=JQe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:M,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;F.length!==0?($l(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${F.length} URLs to prefetch on idle`),XQe(F,i,a).catch(R=>{Iv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,R)}),w(!0)):$l(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=V,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,M,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.useEffect(()=>{(function(){const V=performance.getEntriesByType("navigation");if(V.length>0)return V[0].type==="reload";const F=performance.navigation;return!(!F||typeof F.type!="number")&&F.type===1})()&&f&&($l("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const V=await navigator.serviceWorker.ready,F=navigator.serviceWorker.controller||V.active;if(!F)return;$l("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),F.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(V){Iv("[Prefetch Provider] Failed to notify service worker of refresh:",V)}}())},[]),Bt.jsx(Bt.Fragment,{children:e})}function U0r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=gp(),u=hi(y=>ju(y)),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const m=u.tenantId,{useFeatureGate:f}=tc(),{isFeatureEnabled:x}=f(Xi.isServiceWorkerPrefetchingEnabled);return m&&p?Bt.jsx(H0r,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Bt.jsx(Bt.Fragment,{children:e})}function W0r(e,n){const o=ao.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const Q0r=Im(()=>S1(()=>import("./DefaultTenantHome-xquI5mdg.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),eGe=Im(()=>S1(()=>Promise.resolve().then(()=>m0r),void 0)),tGe=Im(()=>S1(()=>import("./ScreenRoutes-CR4LbxNH.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),G0r=Im(()=>S1(()=>import("./ConnectionAuthScreen-CXSm9A3K.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),Y0r=Im(()=>S1(()=>import("./SignInScreen-BGmMngZm.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),q0r=Im(()=>S1(()=>import("./MagicLinkSignInScreen-BDCry5qq.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),nGe=Im(()=>S1(()=>import("./NotFoundScreen-DPOmbROX.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),K0r=Im(()=>S1(()=>import("./MagicLinkRoutes-CFl_3geL.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),Z0r=Im(()=>S1(()=>import("./WiseConfirmationScreen-DcnsS_39.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),J0r=Im(()=>S1(()=>import("./CustomerOnboardingAuthScreen-kIRiytnK.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),X0r=Im(()=>S1(()=>import("./SignOutScreen-B7Ls3yjH.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),e2r=()=>{const e=gp(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=W0r("/",n);return Bt.jsx(gGe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})},t2r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=gp(),i=Mi.isSignedIn(),a=hi(z=>ju(z)),s=Mi.getSignedInUser(),c=i&&Y7(s),d=hi(z=>p9t(z)).tenantsBaseInOrder.map(z=>({companyId:z.companyId,tenantId:z.tenantId,companyName:z.companyName})),u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:a.tenantId??""},p=Ff(),h=ss(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),m=ss(P4t)||Vre(o.pathname),f=e5t(),[x,y]=g.useState(!1),b=g.useMemo(()=>({isAiCfoOpen:x,setIsAiCfoOpen:y}),[x,y]),{useFeatureGate:w}=tc(),{isFeatureEnabled:C}=w(Xi.isAiCfoFileUploadEnabled),{isFeatureEnabled:v}=w(Xi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=w(Xi.isReimbursementCommentingEnabled),{isFeatureEnabled:k}=w(Xi.isExpenseAutomationEnabled),{isFeatureEnabled:j}=w(Xi.isExpenseAutomationEnabledV2),{isFeatureEnabled:A}=w(Xi.isTreasuryCommentingEnabled),{isFeatureEnabled:E}=w(Xi.isCheckingCommentingEnabled),{isFeatureEnabled:L}=w(Xi.isTransactionCommentingEnabled),{isFeatureEnabled:I}=w(Xi.isCardsCommentingEnabled),P=v||$||c&&k||!c&&j||A||E||L||I;return g.useEffect(()=>{!m&&x&&y(!1)},[m,x]),g.useEffect(()=>{m||p(h9t())},[p,m]),Bt.jsx(vgn,{children:a.tenantId!=null?Bt.jsx(ADi,{roomId:`dashboard_${a.companyId}`,authParams:u,users:[],companies:d,authUrlEndPoint:`${xS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${xS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:c,autoConnect:c||L||I,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:P,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:a.companyId},children:Bt.jsx(Nre.Provider,{value:b,children:Bt.jsxs(rGe,{children:[Bt.jsx(eGe,{tenantEmailDomain:e}),Bt.jsx(iGe,{children:Bt.jsx(oGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:C})})]})})}):Bt.jsx(EDi,{children:Bt.jsx(Nre.Provider,{value:b,children:Bt.jsxs(rGe,{children:[Bt.jsx(eGe,{tenantEmailDomain:e}),Bt.jsx(iGe,{children:Bt.jsx(oGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:C})})]})})})})},oGe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=hi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=tc(),{configValue:c}=s(C0.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=qH(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=v4t();return g.useEffect(()=>{h(Q1e.APP_INITIALIZATION)},[h]),Bt.jsx(g.Suspense,{fallback:null,children:Bt.jsx(U0r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Bt.jsxs(R5t,{children:[Bt.jsx(Vp,{path:"/magic_links/*",element:Bt.jsx(K0r,{})}),Bt.jsx(Vp,{path:"/wise/callback/link-account/*",element:Bt.jsx(Z0r,{})}),Bt.jsx(Vp,{path:"/page-not-found",element:Bt.jsx(nGe,{})}),Bt.jsx(Vp,{path:"/",element:Bt.jsx(Q0r,{})}),Bt.jsx(Vp,{path:"/aicfo",element:Bt.jsx(e2r,{})}),Bt.jsx(Vp,{path:"/onboarding/auth",element:Bt.jsx(J0r,{})}),Bt.jsx(Vp,{path:"/:tenantEmailDomain/*",element:Bt.jsxs(i2r,{children:[Bt.jsx(r2r,{children:Bt.jsxs(N0r,{children:[a!=null?Bt.jsx(z0r,{}):null,n?Bt.jsx(tGe,{setTenantEmailDomain:e}):Bt.jsx(Nee,{children:Bt.jsx(tGe,{setTenantEmailDomain:e})})]})}),o?Bt.jsx(a2r,{isOpen:m,children:Bt.jsx(j0r,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Bt.jsx(Vp,{path:"/signin/auth",element:Bt.jsx(Nee,{children:Bt.jsx(Y0r,{setTenantEmailDomain:e})})}),Bt.jsx(Vp,{path:"/signin/magic-link",element:Bt.jsx(Nee,{children:Bt.jsx(q0r,{})})}),Bt.jsx(Vp,{path:"/signout",element:Bt.jsx(X0r,{})}),Bt.jsx(Vp,{path:"/connection/auth",element:Bt.jsx(G0r,{})}),Bt.jsx(Vp,{path:"*",element:Bt.jsx(nGe,{})})]})})})},iGe=({children:e})=>{const{isOpen:n,width:o}=Jat();return Bt.jsx(o2r,{commentsDrawerWidth:n?o:0,children:e})},n2r=Vn("div")`
70589
70589
  display:flex;
70590
70590
  `,rGe=Vn("div")`
70591
70591
  display: flex;
@@ -70707,4 +70707,4 @@ ${xa.beneficiaryAddress} ${oe}`,d(ye),I(!0)})(o),"data-testid":K("title-text-cop
70707
70707
  }
70708
70708
  `,m2r=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?Bt.jsxs(c2r,{style:n,children:[Bt.jsxs(d2r,{children:[Bt.jsx(pM,{children:Bt.jsx(eh,{width:96,height:20})}),Bt.jsxs(pM,{children:[Bt.jsx(eh,{width:55,height:12}),Bt.jsx(eh,{width:78,height:16}),Bt.jsx(eh,{width:46,height:16})]}),Bt.jsxs(pM,{children:[Bt.jsx(eh,{width:55,height:12}),Bt.jsx(eh,{width:110,height:16}),Bt.jsx(eh,{width:84,height:16})]}),Bt.jsxs(pM,{children:[Bt.jsx(eh,{width:55,height:12}),Bt.jsx(eh,{width:84,height:16}),Bt.jsx(eh,{width:64,height:16})]})]}),Bt.jsxs(u2r,{children:[Bt.jsxs(p2r,{children:[Bt.jsx(eh,{width:106,height:27}),Bt.jsx(eh,{width:111,height:32})]}),Bt.jsx(h2r,{children:Bt.jsx(s2r,{width:96,height:96})})]})]}):null;function g2r({minDisplayTime:e=0}){const{isLoading:n}=qH(),[o,i]=g.useState(!1),a=g.useRef(),s=g.useRef(null);return g.useLayoutEffect(()=>{if(a.current&&clearTimeout(a.current),Mi.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)o||(i(!0),s.current=Date.now());else if(!n&&o){document.querySelector("#app-shell-loader")?.remove();const c=s.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);a.current=setTimeout(()=>{i(!1),s.current=null},u)}else i(!1)}},[n,o,e]),g.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),!n&&o||!o?null:Bt.jsx(m2r,{fetchState:"In-Progress"})}const P8=new class{state={activeTenantFetchFired:new Set,activeTenantFetchInProgress:!1,allTenantsFetchFired:!1,allTenantsFetchInProgress:!1,connectionsFetchFired:new Set,excludedResourcesFetchFired:new Set};reset(){this.state={activeTenantFetchFired:new Set,activeTenantFetchInProgress:!1,allTenantsFetchFired:!1,allTenantsFetchInProgress:!1,connectionsFetchFired:new Set,excludedResourcesFetchFired:new Set}}shouldFetchActiveTenant(e){return!this.state.activeTenantFetchInProgress&&!this.state.activeTenantFetchFired.has(e)}markActiveTenantFetchStarted(e){this.state.activeTenantFetchInProgress=!0,this.state.activeTenantFetchFired.add(e)}markActiveTenantFetchCompleted(e){this.state.activeTenantFetchInProgress=!1}markActiveTenantFetchFailed(e){this.state.activeTenantFetchInProgress=!1}shouldFetchAllTenants(){return!this.state.allTenantsFetchInProgress&&!this.state.allTenantsFetchFired}markAllTenantsFetchStarted(){this.state.allTenantsFetchInProgress=!0,this.state.allTenantsFetchFired=!0}markAllTenantsFetchCompleted(){this.state.allTenantsFetchInProgress=!1}markAllTenantsFetchFailed(){this.state.allTenantsFetchInProgress=!1,this.state.allTenantsFetchFired=!1}shouldFetchExcludedResources(e){return!this.state.excludedResourcesFetchFired.has(e)}markExcludedResourcesFetchStarted(e){this.state.excludedResourcesFetchFired.add(e)}shouldFetchConnections(e){return!this.state.connectionsFetchFired.has(e)}markConnectionsFetchStarted(e){this.state.connectionsFetchFired.add(e)}clearTenant(e){this.state.activeTenantFetchFired.delete(e),this.state.connectionsFetchFired.delete(e),this.state.excludedResourcesFetchFired.delete(e)}clearAllFiredStates(){this.state.activeTenantFetchFired.clear(),this.state.connectionsFetchFired.clear(),this.state.excludedResourcesFetchFired.clear(),this.state.allTenantsFetchInProgress||(this.state.allTenantsFetchFired=!1)}getState(){return{...this.state,activeTenantFetchFired:Array.from(this.state.activeTenantFetchFired)}}};X.updateAppLocaleID("en");let bC=null;function f2r(){return bC===null&&(bC=function(){console.warn(`initializing epic state with url ${JSON.stringify(xS)}`);const e=Mi.getSignedInUser(),n=e!=null?function(){const a=window.location.pathname.split("/").filter(Boolean)[0],s=["signin","signout"];if(a!=null&&!s.includes(a)){const d=Mi.getSignedInUserTenant(a);if(d?.tenantId!=null)return d.tenantId}return Mi.getActiveTenantForUser()?.tenantId}():void 0,o=g9t(xS,e?.userId,e?.zeniSessionId,n,Ev(),w2r);Gee();const i=XE();return i.userId!=null&&Bh.identify(i.userId,{tenant_id:i.tenantId}),o}(),Gee().then(()=>{bC!=null&&(P8.reset(),b2r(bC))}).catch(e=>{console.error("Failed to load feature epics:",e),C5t(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
70709
70709
 
70710
- Please refresh the page to try again.`)})),bC}function O3r(){return bC}const aGe=()=>{const e=Ff(),n=Mi.getSignedInUser(),o=hi(f=>ju(f)),i=hi(f=>y9t(f,o.companyId)),a=ss(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),s=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];g.useEffect(()=>()=>{e(Tue())},[]);const c=hi(f=>b9t(f)),d=o?.externalConnections?.accounting[0]?.connectionName,u=g.useMemo(()=>rYe(o.userRole),[o.userRole]),p={events:o.userRoleId!=null?[`private-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(f,x)=>{var y;y=x,y?.data!=null&&e(w9t(x))}},h=g.useMemo(()=>Mi.getSignedInUser(),[]),m=g.useMemo(()=>({userId:h?.userId??"",sessionId:h?.zeniSessionId??"",tenantId:o.tenantId??""}),[h,o.tenantId]);return Bt.jsx(Aln,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:s,loggedInUserRoleMap:u,currentTenant:o,connectionName:d,controllersList:i},children:Bt.jsx(yln,{toolkit:{analytics:Bh,sentry:v5t,authParams:m},children:Bt.jsxs(_an,{endPoint:{url:U1e},children:[Bt.jsx(ARo,{showSnackbar:c.isSnackbarOpen,snackbar:{message:c.message,messageType:c.messageType,onRemoveSnackbar:()=>{e(Tue())},showStatusIcon:c.showStatusIcon},isOnDashboard:a}),Bt.jsx(l2r,{...p})]})})})},x2r=()=>{const e=Mi.isSignedIn(),n=hi(s=>ju(s)).companyId,o=hi(s=>m9t(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=g.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=g.useMemo(()=>({currentFeatureEnv:NQe,featureClientSecret:_a.featureClientSecret,providerEndPoint:qE.statsigBaseUrl}),[NQe,_a.featureClientSecret,qE.statsigBaseUrl]);return n?Bt.jsx(zdn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Bt.jsx(aGe,{})}):Bt.jsx(aGe,{})},y2r=w5t(function(){const e=g.useMemo(()=>f2r(),[]),[n,o]=g.useState(!1),[i,a]=g.useState(!1);g.useEffect(()=>{Gee().then(()=>o(!0)).catch(()=>{})},[]);const s=g.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Bt.jsx(Xhr,{children:Bt.jsx(N5t,{store:e,children:Bt.jsx(e0r,{value:n,children:Bt.jsxs(Hhr,{children:[Bt.jsx(g2r,{}),Bt.jsx(B_t,{children:Bt.jsx(Jhr,{children:Bt.jsxs(fln,{children:[i?Bt.jsx(kmn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Bt.jsx(x2r,{})]})})})]})})})})});function b2r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:Mi.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=ju(n);let c;if(!a||["signin","signout"].includes(a))if(s?.tenantEmailDomain!=null&&s?.tenantId!=null)a=s.tenantEmailDomain,c=s.tenantId;else{const d=Mi.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=Mi.getSignedInUserTenant(a)?.tenantId;c!=null&&(XGe(i.userId,i.zeniSessionId,c),e.dispatch(cae(c)),a!=null&&Mi.saveActiveTenantDomainForUser(a),P8.shouldFetchActiveTenant(c)&&(P8.markActiveTenantFetchStarted(c),e.dispatch(aYe(i.userId,c,i.zeniSessionId))),P8.shouldFetchExcludedResources(c)&&(P8.markExcludedResourcesFetchStarted(c),e.dispatch(f9t(i.userId,c))),P8.shouldFetchConnections(c)&&(P8.markConnectionsFetchStarted(c),e.dispatch(x9t(i.userId,c))))}function w2r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const C2r=!!(globalThis.location.hostname==="localhost"||globalThis.location.hostname==="[::1]"||globalThis.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),v2r=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;let Vee=!1,lGe=null;const sGe="//js.hs-scripts.com/5991084.js",cGe="hs-script-loader",S2r=Mi.getSignedInUser(),$2r=S2r?.zeniSessionId;var g8;(async function(){try{const o=await async function(){const a={environment:yc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${U1e}/api/keys?query=${s}`);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return await c.json()}catch(c){return console.error("Error fetching details:",c),null}}(),i=(e=o,n="ZENI-WEB-APP-"+yc,Qj.AES.decrypt(e,n).toString(Qj.enc.Utf8));Fhr(JSON.parse(i)),V9t.createRoot(document.getElementById("root")).render(Bt.jsx(T.StrictMode,{children:Bt.jsx(V5t,{children:Bt.jsx(y2r,{})})})),function(){const a=()=>{S5t({dsn:_a.sentryDsn,tracesSampleRate:_a.sentryTraceSamplingRate,profilesSampleRate:_a.sentryProfileSamplingRate,integrations:[$5t(),k5t(),A5t({maskAllText:!0,blockAllMedia:!0})],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter(c=>c.category!=="console"||!((c.message??"").toLowerCase().includes("called people set")||Array.isArray(c.data?.arguments)&&c.data.arguments.some(d=>typeof d=="string"&&d.toLowerCase().includes("called people set"))||(Array.isArray(c.data?.arguments)&&(c.data.arguments=c.data.arguments.map(d=>{if(typeof d=="string"&&d.includes("user_roles"))try{const u=d.match(/\{.*\}/s);if(u!==null){const p=JSON.parse(u[0]);if(p.user_roles!=null)return delete p.user_roles,d.replace(u[0],JSON.stringify(p))}}catch{}return d})),0)))),s)}),j5t("session-id",$2r)};"requestIdleCallback"in window?requestIdleCallback(a):setTimeout(a,0)}()}catch(o){console.error("Error initializing app:",o)}var e,n})(),typeof window>"u"?Promise.resolve(!1):lGe!==null||(lGe=new Promise(e=>{if(Vee)return void e(!0);const n=()=>{Vee?e(!0):(Vee=!0,new Promise((i,a)=>{if(document.getElementById(cGe))return void i();const s=document.createElement("script");s.id=cGe,s.src=sGe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${sGe}`)),document.body.appendChild(s)}).then(()=>{e(!0)}).catch(i=>{console.error("Error loading third-party scripts:",i),e(!0)}))},o=()=>{var i,a;i=()=>{setTimeout(n,7e3)},a=3e3,"requestIdleCallback"in window?window.requestIdleCallback(i,{timeout:a}):setTimeout(i,50)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})})),function(){if("serviceWorker"in navigator){const e=new URL("https://dev.app.zeni.ai",window.location.href);if(e.origin!==window.location.origin&&!C2r)return void $l(`[Service Worker] ⚠️ Our service worker won't work if PUBLIC_URL is on a different origin: ${e.origin} !== ${window.location.origin}`);window.addEventListener("load",()=>{var n;n=v2r,navigator.serviceWorker.register(n).then(o=>{o.onupdatefound=()=>{const i=o.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})})}}(),(g8=console.log)&&g8 instanceof Function&&S1(async()=>{const{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}=await import("./web-vitals-D_vxw1oG.js");return{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}},[]).then(({getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a})=>{e(g8),n(g8),o(g8),i(g8),a(g8)});export{bn as $,bgr as A,D0r as B,ygr as C,X as D,B as E,R2r as F,Khr as G,omr as H,v4t as I,_3r as J,dmr as K,Q1e as L,EPo as M,M_t as N,U1e as O,M3r as P,Ose as Q,n4o as R,s2r as S,P3r as T,fmr as U,Qre as V,J8n as W,m3r as X,Uat as Y,de as Z,Zhr as _,tc as a,p3r as a$,s3r as a0,Z1e as a1,qQe as a2,t0r as a3,c0r as a4,n0r as a5,r0r as a6,s0r as a7,ZKn as a8,YQe as a9,qmr as aA,Jmr as aB,Sde as aC,jgr as aD,Agr as aE,Zmr as aF,Kmr as aG,tmr as aH,C0 as aI,cgr as aJ,a0r as aK,_fo as aL,gmr as aM,LBn as aN,WZn as aO,vgr as aP,Cgr as aQ,Sgr as aR,lmr as aS,$n as aT,Kat as aU,cmr as aV,umr as aW,imr as aX,sRn as aY,$rt as aZ,xmr as a_,i0r as aa,Wre as ab,$_ as ac,hO as ad,QQe as ae,Fo as af,Qmr as ag,Wmr as ah,u6o as ai,mmr as aj,pgr as ak,Et as al,dgr as am,KE as an,xS as ao,t3 as ap,ugr as aq,Hgr as ar,qat as as,Rgr as at,Vgr as au,Ngr as av,Ugr as aw,Wgr as ax,nmr as ay,$gr as az,W0r as b,I3r as b$,d3r as b0,zmr as b1,W2r as b2,K2r as b3,Gat as b4,Q2r as b5,g3r as b6,Ymr as b7,Y2r as b8,q2r as b9,hgr as bA,ggr as bB,Tmr as bC,Dmr as bD,Pmr as bE,Nmr as bF,emr as bG,Hmr as bH,Umr as bI,f3r as bJ,Mmr as bK,T3r as bL,S3r as bM,tgr as bN,igr as bO,ngr as bP,V2r as bQ,Xmr as bR,egr as bS,lgr as bT,oce as bU,rgr as bV,sgr as bW,Par as bX,Nsr as bY,xee as bZ,E3r as b_,G2r as ba,Ev as bb,kgr as bc,$mr as bd,Amr as be,kmr as bf,Cmr as bg,wmr as bh,jmr as bi,wgr as bj,vmr as bk,Smr as bl,Emr as bm,na as bn,Ggr as bo,_mr as bp,Bmr as bq,j3r as br,agr as bs,v3r as bt,Fmr as bu,Rmr as bv,Vmr as bw,mgr as bx,Imr as by,Lmr as bz,e5t as c,L3r as c0,A3r as c1,smr as c2,i3r as c3,Kgr as c4,Xgr as c5,Z2r as c6,ogr as c7,Fi as c8,r9i as c9,l3r as cA,S0r as cB,g0r as cC,$0r as cD,J1e as cE,z3r as cF,edn as cG,H2r as cH,v0r as cI,t5t as cJ,Jgr as ca,Ygr as cb,t3r as cc,qgr as cd,e3r as ce,J2r as cf,X2r as cg,r3r as ch,S as ci,o3r as cj,n3r as ck,Zgr as cl,Qgr as cm,c3r as cn,h3r as co,y3r as cp,x3r as cq,C3r as cr,U2r as cs,Gmr as ct,D3r as cu,J4t as cv,w3r as cw,Omr as cx,u3r as cy,a3r as cz,Bh as d,b2r as e,ao as f,O3r as g,_a as h,Xi as i,xn as j,F2r as k,Im as l,Te as m,kYn as n,r as o,B3r as p,xf as q,pmr as r,hmr as s,P8 as t,qH as u,Lct as v,D as w,fgr as x,xgr as y,Mi as z};
70710
+ Please refresh the page to try again.`)})),bC}function O3r(){return bC}const aGe=()=>{const e=Ff(),n=Mi.getSignedInUser(),o=hi(f=>ju(f)),i=hi(f=>y9t(f,o.companyId)),a=ss(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),s=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];g.useEffect(()=>()=>{e(Tue())},[]);const c=hi(f=>b9t(f)),d=o?.externalConnections?.accounting[0]?.connectionName,u=g.useMemo(()=>rYe(o.userRole),[o.userRole]),p={events:o.userRoleId!=null?[`private-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(f,x)=>{var y;y=x,y?.data!=null&&e(w9t(x))}},h=g.useMemo(()=>Mi.getSignedInUser(),[]),m=g.useMemo(()=>({userId:h?.userId??"",sessionId:h?.zeniSessionId??"",tenantId:o.tenantId??""}),[h,o.tenantId]);return Bt.jsx(Aln,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:s,loggedInUserRoleMap:u,currentTenant:o,connectionName:d,controllersList:i},children:Bt.jsx(yln,{toolkit:{analytics:Bh,sentry:v5t,authParams:m},children:Bt.jsxs(_an,{endPoint:{url:U1e},children:[Bt.jsx(ARo,{showSnackbar:c.isSnackbarOpen,snackbar:{message:c.message,messageType:c.messageType,onRemoveSnackbar:()=>{e(Tue())},showStatusIcon:c.showStatusIcon},isOnDashboard:a}),Bt.jsx(l2r,{...p})]})})})},x2r=()=>{const e=Mi.isSignedIn(),n=hi(s=>ju(s)).companyId,o=hi(s=>m9t(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=g.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=g.useMemo(()=>({currentFeatureEnv:NQe,featureClientSecret:_a.featureClientSecret,providerEndPoint:qE.statsigBaseUrl}),[NQe,_a.featureClientSecret,qE.statsigBaseUrl]);return n?Bt.jsx(zdn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Bt.jsx(aGe,{})}):Bt.jsx(aGe,{})},y2r=w5t(function(){const e=g.useMemo(()=>f2r(),[]),[n,o]=g.useState(!1),[i,a]=g.useState(!1);g.useEffect(()=>{Gee().then(()=>o(!0)).catch(()=>{})},[]);const s=g.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Bt.jsx(Xhr,{children:Bt.jsx(N5t,{store:e,children:Bt.jsx(e0r,{value:n,children:Bt.jsxs(Hhr,{children:[Bt.jsx(g2r,{}),Bt.jsx(B_t,{children:Bt.jsx(Jhr,{children:Bt.jsxs(fln,{children:[i?Bt.jsx(kmn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Bt.jsx(x2r,{})]})})})]})})})})});function b2r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:Mi.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=ju(n);let c;if(!a||["signin","signout"].includes(a))if(s?.tenantEmailDomain!=null&&s?.tenantId!=null)a=s.tenantEmailDomain,c=s.tenantId;else{const d=Mi.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=Mi.getSignedInUserTenant(a)?.tenantId;c!=null&&(XGe(i.userId,i.zeniSessionId,c),e.dispatch(cae(c)),a!=null&&Mi.saveActiveTenantDomainForUser(a),P8.shouldFetchActiveTenant(c)&&(P8.markActiveTenantFetchStarted(c),e.dispatch(aYe(i.userId,c,i.zeniSessionId))),P8.shouldFetchExcludedResources(c)&&(P8.markExcludedResourcesFetchStarted(c),e.dispatch(f9t(i.userId,c))),P8.shouldFetchConnections(c)&&(P8.markConnectionsFetchStarted(c),e.dispatch(x9t(i.userId,c))))}function w2r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const C2r=!!(globalThis.location.hostname==="localhost"||globalThis.location.hostname==="[::1]"||globalThis.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),v2r=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;let Vee=!1,lGe=null;const sGe="//js.hs-scripts.com/5991084.js",cGe="hs-script-loader",S2r=Mi.getSignedInUser(),$2r=S2r?.zeniSessionId;var g8;(async function(){try{const o=await async function(){const a={environment:yc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${U1e}/api/keys?query=${s}`);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return await c.json()}catch(c){return console.error("Error fetching details:",c),null}}(),i=(e=o,n="ZENI-WEB-APP-"+yc,Qj.AES.decrypt(e,n).toString(Qj.enc.Utf8));Fhr(JSON.parse(i)),V9t.createRoot(document.getElementById("root")).render(Bt.jsx(T.StrictMode,{children:Bt.jsx(V5t,{children:Bt.jsx(y2r,{})})})),function(){const a=()=>{S5t({dsn:_a.sentryDsn,tracesSampleRate:_a.sentryTraceSamplingRate,profilesSampleRate:_a.sentryProfileSamplingRate,integrations:[$5t(),k5t(),A5t({maskAllText:!0,blockAllMedia:!0})],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter(c=>c.category!=="console"||!((c.message??"").toLowerCase().includes("called people set")||Array.isArray(c.data?.arguments)&&c.data.arguments.some(d=>typeof d=="string"&&d.toLowerCase().includes("called people set"))||(Array.isArray(c.data?.arguments)&&(c.data.arguments=c.data.arguments.map(d=>{if(typeof d=="string"&&d.includes("user_roles"))try{const u=d.match(/\{.*\}/s);if(u!==null){const p=JSON.parse(u[0]);if(p.user_roles!=null)return delete p.user_roles,d.replace(u[0],JSON.stringify(p))}}catch{}return d})),0)))),s)}),j5t("session-id",$2r)};"requestIdleCallback"in window?requestIdleCallback(a):setTimeout(a,0)}()}catch(o){console.error("Error initializing app:",o)}var e,n})(),typeof window>"u"?Promise.resolve(!1):lGe!==null||(lGe=new Promise(e=>{if(Vee)return void e(!0);const n=()=>{Vee?e(!0):(Vee=!0,new Promise((i,a)=>{if(document.getElementById(cGe))return void i();const s=document.createElement("script");s.id=cGe,s.src=sGe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${sGe}`)),document.body.appendChild(s)}).then(()=>{e(!0)}).catch(i=>{console.error("Error loading third-party scripts:",i),e(!0)}))},o=()=>{var i,a;i=()=>{setTimeout(n,7e3)},a=3e3,"requestIdleCallback"in window?window.requestIdleCallback(i,{timeout:a}):setTimeout(i,50)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})})),function(){if("serviceWorker"in navigator){const e=new URL("https://qa.app.zeni.ai",window.location.href);if(e.origin!==window.location.origin&&!C2r)return void $l(`[Service Worker] ⚠️ Our service worker won't work if PUBLIC_URL is on a different origin: ${e.origin} !== ${window.location.origin}`);window.addEventListener("load",()=>{var n;n=v2r,navigator.serviceWorker.register(n).then(o=>{o.onupdatefound=()=>{const i=o.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})})}}(),(g8=console.log)&&g8 instanceof Function&&S1(async()=>{const{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}=await import("./web-vitals-D_vxw1oG.js");return{getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a}},[]).then(({getCLS:e,getFID:n,getFCP:o,getLCP:i,getTTFB:a})=>{e(g8),n(g8),o(g8),i(g8),a(g8)});export{bn as $,bgr as A,D0r as B,ygr as C,X as D,B as E,R2r as F,Khr as G,omr as H,v4t as I,_3r as J,dmr as K,Q1e as L,EPo as M,M_t as N,U1e as O,M3r as P,Ose as Q,n4o as R,s2r as S,P3r as T,fmr as U,Qre as V,J8n as W,m3r as X,Uat as Y,de as Z,Zhr as _,tc as a,p3r as a$,s3r as a0,Z1e as a1,qQe as a2,t0r as a3,c0r as a4,n0r as a5,r0r as a6,s0r as a7,ZKn as a8,YQe as a9,qmr as aA,Jmr as aB,Sde as aC,jgr as aD,Agr as aE,Zmr as aF,Kmr as aG,tmr as aH,C0 as aI,cgr as aJ,a0r as aK,_fo as aL,gmr as aM,LBn as aN,WZn as aO,vgr as aP,Cgr as aQ,Sgr as aR,lmr as aS,$n as aT,Kat as aU,cmr as aV,umr as aW,imr as aX,sRn as aY,$rt as aZ,xmr as a_,i0r as aa,Wre as ab,$_ as ac,hO as ad,QQe as ae,Fo as af,Qmr as ag,Wmr as ah,u6o as ai,mmr as aj,pgr as ak,Et as al,dgr as am,KE as an,xS as ao,t3 as ap,ugr as aq,Hgr as ar,qat as as,Rgr as at,Vgr as au,Ngr as av,Ugr as aw,Wgr as ax,nmr as ay,$gr as az,W0r as b,I3r as b$,d3r as b0,zmr as b1,W2r as b2,K2r as b3,Gat as b4,Q2r as b5,g3r as b6,Ymr as b7,Y2r as b8,q2r as b9,hgr as bA,ggr as bB,Tmr as bC,Dmr as bD,Pmr as bE,Nmr as bF,emr as bG,Hmr as bH,Umr as bI,f3r as bJ,Mmr as bK,T3r as bL,S3r as bM,tgr as bN,igr as bO,ngr as bP,V2r as bQ,Xmr as bR,egr as bS,lgr as bT,oce as bU,rgr as bV,sgr as bW,Par as bX,Nsr as bY,xee as bZ,E3r as b_,G2r as ba,Ev as bb,kgr as bc,$mr as bd,Amr as be,kmr as bf,Cmr as bg,wmr as bh,jmr as bi,wgr as bj,vmr as bk,Smr as bl,Emr as bm,na as bn,Ggr as bo,_mr as bp,Bmr as bq,j3r as br,agr as bs,v3r as bt,Fmr as bu,Rmr as bv,Vmr as bw,mgr as bx,Imr as by,Lmr as bz,e5t as c,L3r as c0,A3r as c1,smr as c2,i3r as c3,Kgr as c4,Xgr as c5,Z2r as c6,ogr as c7,Fi as c8,r9i as c9,l3r as cA,S0r as cB,g0r as cC,$0r as cD,J1e as cE,z3r as cF,edn as cG,H2r as cH,v0r as cI,t5t as cJ,Jgr as ca,Ygr as cb,t3r as cc,qgr as cd,e3r as ce,J2r as cf,X2r as cg,r3r as ch,S as ci,o3r as cj,n3r as ck,Zgr as cl,Qgr as cm,c3r as cn,h3r as co,y3r as cp,x3r as cq,C3r as cr,U2r as cs,Gmr as ct,D3r as cu,J4t as cv,w3r as cw,Omr as cx,u3r as cy,a3r as cz,Bh as d,b2r as e,ao as f,O3r as g,_a as h,Xi as i,xn as j,F2r as k,Im as l,Te as m,kYn as n,r as o,B3r as p,xf as q,pmr as r,hmr as s,P8 as t,qH as u,Lct as v,D as w,fgr as x,xgr as y,Mi as z};