@zeniai/web-app-ui 5.0.72-dev → 5.0.72-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 (60) hide show
  1. package/dist/assets/{AddressRoutes-C-QI3DFo.js → AddressRoutes-CtOGPOAj.js} +1 -1
  2. package/dist/assets/{AddressScreen--B-G7QO-.js → AddressScreen-Ix5tWZHc.js} +1 -1
  3. package/dist/assets/{AiCfoScreen-B1XtoO1j.js → AiCfoScreen-DibhVPUo.js} +1 -1
  4. package/dist/assets/{BillPayApprovalRoutes-BTct1_HT.js → BillPayApprovalRoutes-BHzH7Hrm.js} +1 -1
  5. package/dist/assets/{BillPayRoutes-0Ir4R_dy.js → BillPayRoutes-DnL_Dd5v.js} +1 -1
  6. package/dist/assets/{BusinessVerificationPageScreen-C5SO6Pvr.js → BusinessVerificationPageScreen-CpwixfEl.js} +1 -1
  7. package/dist/assets/{ChargeCardRoutes-DYWYfiCF.js → ChargeCardRoutes-D7SOpqVu.js} +1 -1
  8. package/dist/assets/{CompanyPassportScreen-ImtgWbLz.js → CompanyPassportScreen-5JBMtbdY.js} +1 -1
  9. package/dist/assets/{ConnectionAuthScreen-Cb9jSvP9.js → ConnectionAuthScreen-BgsvoVoV.js} +1 -1
  10. package/dist/assets/{CustomerOnboardingAuthScreen-C59aPPyy.js → CustomerOnboardingAuthScreen-q2OxHMS0.js} +1 -1
  11. package/dist/assets/{CustomerOnboardingRoutes-D083k3se.js → CustomerOnboardingRoutes-BLkcQSzU.js} +1 -1
  12. package/dist/assets/{DashboardRoutes-DCYo-RgX.js → DashboardRoutes-DIeIg4ky.js} +1 -1
  13. package/dist/assets/{DefaultTenantHome-BZpowVvC.js → DefaultTenantHome-DOFkLxHn.js} +1 -1
  14. package/dist/assets/{DomesticWireDetailScreen-C7OJwgdT.js → DomesticWireDetailScreen-D9of53D2.js} +1 -1
  15. package/dist/assets/{DrawerScreen-BZUjw4oO.js → DrawerScreen-0fzJHN6i.js} +1 -1
  16. package/dist/assets/{EntityDetailRoutes-D0h8mKin.js → EntityDetailRoutes-vYzM0syH.js} +1 -1
  17. package/dist/assets/{ExpenseAutomationRoutes-CsEeiul8.js → ExpenseAutomationRoutes-JGGxLdwj.js} +1 -1
  18. package/dist/assets/{FeaturePreviewScreen-K5aATczv.js → FeaturePreviewScreen-B_upIV_z.js} +1 -1
  19. package/dist/assets/{HubSpotOAuthCallbackScreen-BQBDXWqr.js → HubSpotOAuthCallbackScreen-Dnafv1F_.js} +1 -1
  20. package/dist/assets/{MagicLinkRoutes-CE-gub2V.js → MagicLinkRoutes-Dlg_sv3w.js} +1 -1
  21. package/dist/assets/{MagicLinkSignInScreen-CQSnWkbc.js → MagicLinkSignInScreen-BSQuMqe_.js} +1 -1
  22. package/dist/assets/{MobileAppDrawer-Cgt4TE38.js → MobileAppDrawer-BF7-1gg_.js} +1 -1
  23. package/dist/assets/{NotFoundScreen-gdNFrdCn.js → NotFoundScreen--NgVTkpE.js} +1 -1
  24. package/dist/assets/{NotificationRoutes-BdPqco6s.js → NotificationRoutes-C5EL7Dp4.js} +1 -1
  25. package/dist/assets/{OAuthConsentScreen-D0N2LAnp.js → OAuthConsentScreen-KmZzxwuS.js} +1 -1
  26. package/dist/assets/{PandLWithForecastRoutes-Bm69S-Ti.js → PandLWithForecastRoutes-Df6uqgw5.js} +1 -1
  27. package/dist/assets/{PeopleRoutes-jbfRIyVB.js → PeopleRoutes-W4o9CWZ7.js} +1 -1
  28. package/dist/assets/{PerformanceRoutes-Bmd54T25.js → PerformanceRoutes-DS0Ils-z.js} +1 -1
  29. package/dist/assets/{QBOConnectionScreen-BdH_dfqU.js → QBOConnectionScreen-QfAoc6ay.js} +1 -1
  30. package/dist/assets/{ReferralListScreen-ChHWDxsd.js → ReferralListScreen-SdB5w2hV.js} +1 -1
  31. package/dist/assets/{ReimbursementApprovalRoutes-TgmzGWOx.js → ReimbursementApprovalRoutes-CRONWgl9.js} +1 -1
  32. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-DC3PDULr.js → ReimbursementApprovalRuleDetailScreen-qyltnFfM.js} +1 -1
  33. package/dist/assets/{ReimbursementRoutes-CSWRe0vq.js → ReimbursementRoutes-CbGhl870.js} +1 -1
  34. package/dist/assets/{ReportsRoutes-DKXm4KKp.js → ReportsRoutes-Di3ZlGga.js} +1 -1
  35. package/dist/assets/{RewardsRoutes-vGbrbx2s.js → RewardsRoutes-C2agHY9i.js} +1 -1
  36. package/dist/assets/{ScreenRoutes-C_esjW3S.js → ScreenRoutes-CSJKItCB.js} +2 -2
  37. package/dist/assets/{SettingsRoutes-DVvUA_Bx.js → SettingsRoutes-DRoWWDnI.js} +1 -1
  38. package/dist/assets/{SetupPagesScreen-DucLsH4D.js → SetupPagesScreen-NZz5aFHU.js} +1 -1
  39. package/dist/assets/{SignInScreen-0ZDiC6ii.js → SignInScreen-BI2QJmsm.js} +1 -1
  40. package/dist/assets/{SignOutScreen-BBFPJdbD.js → SignOutScreen-DWdPOV-f.js} +1 -1
  41. package/dist/assets/{TaskListScreen-38bto6MZ.js → TaskListScreen-7nDHDAx6.js} +1 -1
  42. package/dist/assets/{TaskRoutes-Tf445JV3.js → TaskRoutes-Ds4xpskA.js} +1 -1
  43. package/dist/assets/{TransactionDetailRoutes-DiMG8Ceq.js → TransactionDetailRoutes-CPiB8Vo9.js} +1 -1
  44. package/dist/assets/{TransactionDetailScreen-eONbl3-5.js → TransactionDetailScreen-Bu7653PN.js} +1 -1
  45. package/dist/assets/{TransactionListRoutes-zno0rGgt.js → TransactionListRoutes-CfjNPOQt.js} +1 -1
  46. package/dist/assets/{TreasuryRoutes-LPcPr4Bm.js → TreasuryRoutes-YBCYhuyC.js} +1 -1
  47. package/dist/assets/{VendorsRoutes-B9bJ-Aua.js → VendorsRoutes-BfFmnVL2.js} +1 -1
  48. package/dist/assets/{WiseConfirmationScreen-QWHy02om.js → WiseConfirmationScreen-BTbWpX1H.js} +1 -1
  49. package/dist/assets/{ZeniAccountRoutes-Dsy44Rah.js → ZeniAccountRoutes-BhHNPKTB.js} +1 -1
  50. package/dist/assets/{ZeniAccountStatementScreen-vtEr6xSK.js → ZeniAccountStatementScreen-B_lseazU.js} +1 -1
  51. package/dist/assets/{analyticsHelper-ByPPdEaS.js → analyticsHelper-Bx8A0vf3.js} +1 -1
  52. package/dist/assets/{getLocaleForTenant-CRLTWbEq.js → getLocaleForTenant-DNhjRuKy.js} +1 -1
  53. package/dist/assets/{index-B7GRpDkc.js → index-CkmaHLOP.js} +5 -5
  54. package/dist/assets/{routePaths-PD5Rqyfc.js → routePaths-C8NVJkmp.js} +1 -1
  55. package/dist/assets/{useAskAiCfoHostNavButtonProps-BfmyGytS.js → useAskAiCfoHostNavButtonProps-DRzMbg61.js} +1 -1
  56. package/dist/assets/{useFetchSuggestedQuestionsWhenReady-B1r7XRNi.js → useFetchSuggestedQuestionsWhenReady-dE_HTM0_.js} +1 -1
  57. package/dist/assets/{useInitialThreadRequest-Oe-7-CI7.js → useInitialThreadRequest-DlZM3Hgb.js} +1 -1
  58. package/dist/assets/{withTransactionSidePanel-7uc9rYEd.js → withTransactionSidePanel-g1cpVyXy.js} +1 -1
  59. package/dist/index.html +1 -1
  60. 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-BLvcbIPk.js","assets/sentry-Bhr8KU--.js","assets/core-B86WF2Ww.js","assets/index-vzrF8p0m.js","assets/DefaultTenantHome-BZpowVvC.js","assets/mui-DZd7XaFW.js","assets/getLocaleForTenant-CRLTWbEq.js","assets/analytics-CFOBCmx3.js","assets/utils-Mvk27uIx.js","assets/ScreenRoutes-C_esjW3S.js","assets/analyticsHelper-ByPPdEaS.js","assets/ConnectionAuthScreen-Cb9jSvP9.js","assets/QBOConnectionScreen-BdH_dfqU.js","assets/empty-CRbjQ82E.js","assets/index-CcACvObI.js","assets/url-CgMNpbBl.js","assets/index-BHE-07hU.js","assets/decodeURIComponentSafe-C-DNZuqb.js","assets/SignInScreen-0ZDiC6ii.js","assets/useDeviceId-rK1IEgER.js","assets/MagicLinkSignInScreen-CQSnWkbc.js","assets/NotFoundScreen-gdNFrdCn.js","assets/MagicLinkRoutes-CE-gub2V.js","assets/WiseConfirmationScreen-QWHy02om.js","assets/HubSpotOAuthCallbackScreen-BQBDXWqr.js","assets/CustomerOnboardingAuthScreen-C59aPPyy.js","assets/SignOutScreen-BBFPJdbD.js","assets/OAuthConsentScreen-D0N2LAnp.js"])))=>i.map(i=>d[i]);
2
- import{a as m,b as T,c as rne,R as u9t,p as cW,r as Nu,g as vqe,e as Ipe,f as p9t,s as Lpe,i as h9t,w as m9t,j as g9t,S as f9t,k as x9t,l as y9t,m as b9t,n as w9t,o as C9t}from"./sentry-Bhr8KU--.js";import{L as v9t,C as Tpe,_ as Vp,a as AI,b as S9t,c as CR,d as jI,u as Sqe,T as k9t,e as $9t,f as A9t,g as j9t,h as kqe,i as E9t,k as I9t,j as Tt,l as L9t}from"./liveblocks-D41N0IlG.js";import{f as $qe,r as Tr,R as dx,P as ul,u as e0,m as ale,g as fi,h as i3,O as T9t,N as Aqe,i as lj,j as vR,k as D9t,l as P9t,n as B9t,o as Z1,p as M9t,B as _9t}from"./core-B86WF2Ww.js";import{L as Dpe,bl as z9t,bm as O9t,bn as S4,bo as jqe,bp as F9t,bq as Rt,br as NS,bs as N2,bt as R9t,bu as k4,bv as Va,bw as Fa,bx as N9t,by as V9t,bz as H9t,bA as u4,bB as r3,bC as SR,bD as nn,bE as Eqe,bF as Iqe,bG as lle,bH as _p,bI as a3,bJ as Jc,bK as Wf,bL as U9t,bM as _l,bN as W9t,bO as VS,bP as Q9t,bQ as G9t,bR as Y9t,bS as sy,bT as q9t,bU as Ppe,bV as K9t,bW as Z9t,bX as J9t,bY as X9t,bZ as e8t,b_ as t8t,b$ as n8t,c0 as o8t,c1 as $7,c2 as kR,c3 as i8t,c4 as $R,c5 as AR,c6 as jR,c7 as sle,c8 as ER,c9 as eS,ca as tS,cb as IR,cc as r8t,cd as a8t,ce as Bpe,cf as ane,cg as l8t,ch as s8t,ci as zd,cj as Lqe,ck as cle,cl as c8t,cm as S9,cn as Mpe,co as d8t,cp as u8t,cq as p8t,cr as Ry,cs as Ny,ct as Tqe,cu as Dqe,cv as dle,cw as h8t,cx as m8t,cy as iz,cz as Pqe,cA as g8t,cB as Bqe,cC as f8t,cD as sj,cE as _pe,cF as x8t,cG as Mqe,cH as _qe,cI as zqe,cJ as y8t,cK as HS,cL as zpe,cM as b8t,cN as w8t,cO as Oqe,cP as C8t,cQ as Ope,cR as bc,cS as ml,cT as v8t,cU as nS,cV as Ld,cW as Fqe,cX as S8t,cY as $E,cZ as Fx,c_ as ya,c$ as k8t,d0 as $8t,d1 as A8t,d2 as WL,d3 as Dh,d4 as j8t,d5 as E8t,d6 as I8t,d7 as L8t,d8 as QL,d9 as cy,da as LR,db as T8t,dc as D8t,dd as Vy,de as Od,df as Rqe,dg as Nqe,dh as P8t,di as lne,dj as B8t,dk as S1,dl as dy,dm as ule,dn as Vqe,dp as Hqe,dq as Uqe,dr as Wqe,ds as Qqe,dt as Gqe,du as M8t,dv as Fpe,dw as _8t,_ as rd,dx as ple,dy as Yqe,dz as z8t,dA as Rpe,dB as Ju,dC as Qf,dD as O8t,dE as F8t,dF as qqe,dG as sne,dH as WM,dI as R8t,dJ as N8t,dK as V8t,dL as H8t,dM as U8t,dN as W8t,dO as Q8t,dP as G8t,dQ as Y8t,dR as q8t,dS as Oj,dT as Fj,dU as Kqe,dV as YC,dW as hle,dX as mle,dY as US,dZ as gle,d_ as fle,d$ as xle,e0 as yle,e1 as Zqe,e2 as ble,e3 as K8t,e4 as Z8t,e5 as Jqe,e6 as Npe,e7 as J8t,e8 as wle,e9 as X8t,ea as ext,eb as Xqe,ec as txt,ed as nxt,ee as eKe,ef as oxt,eg as tKe,eh as nKe,ei as ixt,ej as rxt,ek as axt,el as lxt,em as sxt,en as cxt,eo as dxt,ep as uxt,eq as pxt,er as Vpe,es as TR,et as hxt,eu as mxt,ev as gxt,ew as fxt,ex as xxt,ey as yxt,ez as bxt,eA as wxt,eB as Hpe,eC as oKe,eD as iKe,eE as rKe,eF as aKe,eG as lKe,eH as sKe,eI as Cxt,eJ as vxt,eK as Sxt,v as kxt,eL as $xt,eM as Axt,eN as Cle,eO as Vu,eP as cKe,eQ as EI,eR as jxt,eS as dKe,eT as Ext,eU as uKe,eV as Ixt,eW as pKe,eX as Lxt,eY as Txt,eZ as Dxt,e_ as Pxt,e$ as Bxt,f0 as Upe,f1 as hKe,f2 as Bb,f3 as DR,f4 as Wpe,f5 as Mxt,f6 as Qpe,f7 as _xt,f8 as zxt,f9 as mKe,fa as gKe,fb as Oxt,fc as Fxt,fd as Rxt,fe as Nxt,ff as Vxt,fg as Hxt,fh as rz,fi as vle,fj as fKe,fk as Uxt,fl as Rj,fm as Wxt,fn as Qxt,fo as Gxt,fp as Yxt,fq as qxt,fr as Kxt,fs as Zxt,ft as Jxt,fu as Xxt,fv as eyt,fw as tyt,fx as xKe,fy as nyt,fz as oyt,fA as iyt,fB as Gpe,fC as ryt,fD as ayt,fE as lyt,fF as syt,fG as cyt,fH as cne,fI as dyt,fJ as uyt,fK as pyt,fL as hyt,fM as myt,fN as gyt,fO as fyt,fP as xyt,fQ as Ype,fR as yyt,fS as byt}from"./zeni-epic-state-BLvcbIPk.js";import{n as l,T as yKe,G as II,j as qo,c as De,k as On,C as bKe,u as Sle,a as dne,A as wyt,b as Cyt,I as vyt,d as Syt,D as az,S as wKe}from"./mui-DZd7XaFW.js";import{r as kyt,m as vh}from"./analytics-CFOBCmx3.js";import{u as Hp}from"./plaid-CZm5yErz.js";import{g as $yt,O as Ayt,H as jyt,S as Eyt,T as Iyt,a as Lyt,u as Tyt,b as Dyt}from"./dnd-DrUSXn8k.js";import{l as Pyt}from"./stripe-DMRn4zHo.js";import{L as bv}from"./lottie-BHETr187.js";import{r as As}from"./lexical-COpm991f.js";import{D as une,P as pne,_ as CKe,a as vKe}from"./pdf-BdWka_4Q.js";import{R as AE,G as uy,X as es,Y as zl,H as py,I as nd,J as zp,K as Hy,L as Up,M as Byt,N as WS,O as SKe,P as Myt,Q as PR,S as wv,U as _yt,V as kle,W as zyt,Z as Oyt,_ as Fyt}from"./recharts-BHLF4b4u.js";import{r as Ryt}from"./utils-Mvk27uIx.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]="91784862-88da-4d7c-b207-68e65a53e913",e._sentryDebugIdIdentifier="sentry-dbid-91784862-88da-4d7c-b207-68e65a53e913")}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 qpe,GL={},Nyt=function(){if(qpe)return GL;qpe=1;var e=$qe();return GL.createRoot=e.createRoot,GL.hydrateRoot=e.hydrateRoot,GL}(),Au=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof rne<"u"?rne:typeof self<"u"?self:{};function Ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kpe,Zpe,Jpe={exports:{}},Rk={};function kKe(){return Zpe||(Zpe=1,Jpe.exports=function(){if(Kpe)return Rk;Kpe=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,g={},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)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:a.current}}return Rk.Fragment=o,Rk.jsx=c,Rk.jsxs=c,Rk}()),Jpe.exports}var t=kKe();const Vyt=m.createContext(null),dW={didCatch:!1,error:null};let Hyt=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=dW}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(dW)}}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(dW))}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=m.createElement(o,d);else{if(i===void 0)throw s;c=i}}return m.createElement(Vyt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var Xpe,uW={exports:{}},ehe,the,pW,Uyt=(Xpe||(Xpe=1,the=uW.exports,pW=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(g,f){this._input=g,this._value=f}return e=function(g){var f,x,y,b;if(e.isNumeral(g))f=g.value();else if(g===0||typeof g>"u")f=0;else if(g===null||n.isNaN(g))f=null;else if(typeof g=="string")if(p.zeroFormat&&g===p.zeroFormat)f=0;else if(p.nullFormat&&g===p.nullFormat||!g.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)&&g.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(g)}else f=Number(g)||null;return new h(g,f)},e.version="2.0.6",e.isNumeral=function(g){return g instanceof h},e._=n={numberToFormat:function(g,f,x){var y,b,w,C,v,k,$,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",_=1e12,z=1e9,B=1e6,R="",N=!1;if(g=g||0,w=Math.abs(g),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&(k=e._.includes(f,"+")?f.indexOf("+"):g<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>=_&&!b||b==="t"?(I+=A.abbreviations.trillion,g/=_):w<_&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,g/=z):w<z&&w>=B&&!b||b==="m"?(I+=A.abbreviations.million,g/=B):(w<B&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,g/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=g.toString().split(".")[0],v=f.split(".")[1],$=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),R=e._.toFixed(g,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(g,v.length,x),C=R.split(".")[0],R=e._.includes(R,".")?A.delimiters.decimal+R.split(".")[1]:"",L&&Number(R.slice(1))===0&&(R="")):C=e._.toFixed(g,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),N=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return $>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+R+(I||""),E?j=(E&&N?"(":"")+j+(E&&N?")":""):k>=0?j=k===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(j="-"+j),j},stringToNumber:function(g){var f,x,y,b=d[p.currentLocale],w=g,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&g===p.zeroFormat)x=0;else if(p.nullFormat&&g===p.nullFormat||!g.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(g=g.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*=(g.split("-").length+Math.min(g.split("(").length-1,g.split(")").length-1))%2?1:-1,g=g.replace(/[^0-9\.]+/g,""),x*=Number(g)}return x},isNaN:function(g){return typeof g=="number"&&isNaN(g)},includes:function(g,f){return g.indexOf(f)!==-1},insert:function(g,f,x){return g.slice(0,x)+f+g.slice(x)},reduce:function(g,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(g),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(g){var f=g.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(g,f){var x=n.multiplier(f);return g>x?g:x},1)},toFixed:function(g,f,x,y){var b,w,C,v,k=g.toString().split("."),$=f-(y||0);return b=k.length===2?Math.min(Math.max(k[1].length,$),f):$,C=Math.pow(10,b),v=(x(g+"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(g){return g&&(p.currentLocale=g.toLowerCase()),p.currentLocale},e.localeData=function(g){if(!g)return d[p.currentLocale];if(g=g.toLowerCase(),!d[g])throw new Error("Unknown locale : "+g);return d[g]},e.reset=function(){for(var g in u)p[g]=u[g]},e.zeroFormat=function(g){p.zeroFormat=typeof g=="string"?g:null},e.nullFormat=function(g){p.nullFormat=typeof g=="string"?g:null},e.defaultFormat=function(g){p.defaultFormat=typeof g=="string"?g:"0.0"},e.register=function(g,f,x){if(f=f.toLowerCase(),this[g+"s"][f])throw new TypeError(f+" "+g+" already registered.");return this[g+"s"][f]=x,x},e.validate=function(g,f){var x,y,b,w,C,v,k,$;if(typeof g!="string"&&(g+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",g)),(g=g.trim()).match(/^\d+$/))return!0;if(g==="")return!1;try{k=e.localeData(f)}catch{k=e.localeData(e.locale())}return b=k.currency.symbol,C=k.abbreviations,x=k.delimiters.decimal,y=k.delimiters.thousands==="."?"\\.":k.delimiters.thousands,!(($=g.match(/^[^\d]+/))!==null&&(g=g.substr(1),$[0]!==b)||($=g.match(/[^\d]+$/))!==null&&(g=g.slice(0,-1),$[0]!==C.thousand&&$[0]!==C.million&&$[0]!==C.billion&&$[0]!==C.trillion)||(v=new RegExp(y+"{2}"),g.match(/[^\d.,]/g)||(w=g.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(g,f){var x,y,b,w=this._value,C=g||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(g){return this._value=Number(g),this},add:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([this._value,g],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([g],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(g){return this._value=n.reduce([this._value,g],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(g){return this._value=n.reduce([this._value,g],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(g){return Math.abs(e(this._value).subtract(g).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(g){var f=g%10;return~~(g%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(g,f,x){var y,b=e._.includes(f," BPS")?" ":"";return g*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(g){return+(1e-4*e._.stringToNumber(g)).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(g){return o.suffixes.indexOf(g)<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(g,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),g===null||g===0||g>=b&&g<w){v+=C.suffixes[y],b>0&&(g/=b);break}return e._.numberToFormat(g,f,x)+v},unformat:function(g){var f,x,y=e._.stringToNumber(g);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(g,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(g,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(g,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(g,f,x),g>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):g<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(g,f,x){var y=(typeof g!="number"||e._.isNaN(g)?"0e+0":g.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(g){var f=e._.includes(g,"e+")?g.split("e+"):g.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(g,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var k=e._.correctionFactor(b,w);return b*k*(w*k)/(k*k)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(g,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(g),e._.numberToFormat(g,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(g,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(g*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(g){var f=e._.stringToNumber(g);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(g,f,x){var y=Math.floor(g/60/60),b=Math.floor((g-60*y*60)/60),w=Math.round(g-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(g){var f=g.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},(ehe=uW).exports?ehe.exports=pW():the.numeral=pW()),uW.exports);const Xf=Ei(Uyt);function p4(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 e4="$$material";var Wyt={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 Qyt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var Gyt=/[A-Z]|^ms/g,Yyt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$Ke=function(e){return e.charCodeAt(1)===45},nhe=function(e){return e!=null&&typeof e!="boolean"},hW=Qyt(function(e){return $Ke(e)?e:e.replace(Gyt,"-$&").toLowerCase()}),ohe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yyt,function(o,i,a){return l7={name:i,styles:a,next:l7},i})}return Wyt[e]===1||$Ke(e)||typeof n!="number"||n===0?n:n+"px"};function lz(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 l7={name:a.name,styles:a.styles,next:l7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)l7={name:c.name,styles:c.styles,next:l7},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var g=0;g<p.length;g++)h+=lz(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;nhe(y)&&(h+=hW(f)+":"+ohe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)nhe(x[b])&&(h+=hW(f)+":"+ohe(f,x[b])+";");else{var w=lz(d,u,x);switch(f){case"animation":case"animationName":h+=hW(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var l7,ihe=/label:\s*([^\s;{]+)\s*(;|$)/g,rhe,ahe,lhe,she,che,dhe={exports:{}};function qyt(){return ahe?rhe:(ahe=1,rhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Kyt(){if(she)return lhe;she=1;var e=qyt();function n(){}function o(){}return o.resetWarningCache=n,lhe=function(){function i(c,d,u,p,h,g){if(g!==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 $le(){return che||(che=1,dhe.exports=Kyt()()),dhe.exports}const xn=Ei($le());var Zyt=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}(),Sd="-ms-",uhe="-moz-",_r="-webkit-",AKe="comm",Ale="rule",jle="decl",jKe="@keyframes",Jyt=Math.abs,BR=String.fromCharCode,Xyt=Object.assign;function EKe(e){return e.trim()}function zr(e,n,o){return e.replace(n,o)}function hne(e,n){return e.indexOf(n)}function Wc(e,n){return 0|e.charCodeAt(n)}function jE(e,n,o){return e.slice(n,o)}function xg(e){return e.length}function Ele(e){return e.length}function YL(e,n){return n.push(e),e}var MR=1,oS=1,IKe=0,Mu=0,vs=0,QS="";function _R(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:MR,column:oS,length:c,return:""}}function Nk(e,n){return Xyt(_R("",null,null,"",null,null,0),e,{length:-e.length},n)}function Dp(){return vs=Mu<IKe?Wc(QS,Mu++):0,oS++,vs===10&&(oS=1,MR++),vs}function Gg(){return Wc(QS,Mu)}function QM(){return Mu}function LI(e,n){return jE(QS,e,n)}function EE(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 LKe(e){return MR=oS=1,IKe=xg(QS=e),Mu=0,[]}function TKe(e){return QS="",e}function GM(e){return EKe(LI(Mu-1,mne(e===91?e+2:e===40?e+1:e)))}function ebt(e){for(;(vs=Gg())&&vs<33;)Dp();return EE(e)>2||EE(vs)>3?"":" "}function tbt(e,n){for(;--n&&Dp()&&!(vs<48||vs>102||vs>57&&vs<65||vs>70&&vs<97););return LI(e,QM()+(n<6&&Gg()==32&&Dp()==32))}function mne(e){for(;Dp();)switch(vs){case e:return Mu;case 34:case 39:e!==34&&e!==39&&mne(vs);break;case 40:e===41&&mne(e);break;case 92:Dp()}return Mu}function nbt(e,n){for(;Dp()&&e+vs!==57&&(e+vs!==84||Gg()!==47););return"/*"+LI(n,Mu-1)+"*"+BR(e===47?e:Dp())}function obt(e){for(;!EE(Gg());)Dp();return LI(e,Mu)}function ibt(e){return TKe(YM("",null,null,null,[""],e=LKe(e),0,[0],e))}function YM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,g=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,k="",$=a,j=s,A=i,E=k;w;)switch(y=v,v=Dp()){case 40:if(y!=108&&Wc(E,g-1)==58){hne(E+=zr(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+=ebt(y);break;case 92:E+=tbt(QM()-1,7);continue;case 47:switch(Gg()){case 42:case 47:YL(rbt(nbt(Dp(),QM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=xg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=zr(E,/\f/g,"")),x>0&&xg(E)-g&&YL(x>32?hhe(E+";",i,o,g-1):hhe(zr(E," ","")+";",i,o,g-2),u);break;case 59:E+=";";default:if(YL(A=phe(E,n,o,p,h,a,d,k,$=[],j=[],g),s),v===123)if(h===0)YM(E,n,A,A,$,s,g,d,j);else switch(f===99&&Wc(E,3)===110?100:f){case 100:case 108:case 109:case 115:YM(e,A,A,i&&YL(phe(e,A,A,0,0,a,d,k,a,$=[],g),j),a,j,g,d,i?$:j);break;default:YM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,k=E="",g=c;break;case 58:g=1+xg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(vs=Mu>0?Wc(QS,--Mu):0,oS--,vs===10&&(oS=1,MR--),vs==125))continue}switch(E+=BR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(xg(E)-1)*C,C=1;break;case 64:Gg()===45&&(E+=GM(Dp())),f=Gg(),h=g=xg(k=E+=obt(QM())),v++;break;case 45:y===45&&xg(E)==2&&(b=0)}}return s}function phe(e,n,o,i,a,s,c,d,u,p,h){for(var g=a-1,f=a===0?s:[""],x=Ele(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=jE(e,g+1,g=Jyt(b=c[y])),k=e;C<x;++C)(k=EKe(b>0?f[C]+" "+v:zr(v,/&\f/g,f[C])))&&(u[w++]=k);return _R(e,n,o,a===0?Ale:d,u,p,h)}function rbt(e,n,o){return _R(e,n,o,AKe,BR(vs),jE(e,2,-2),0)}function hhe(e,n,o,i){return _R(e,n,o,jle,jE(e,0,i),jE(e,i+1,-1),i)}function Cv(e,n){for(var o="",i=Ele(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function abt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case jle:return e.return=e.return||e.value;case AKe:return"";case jKe:return e.return=e.value+"{"+Cv(e.children,i)+"}";case Ale:e.value=e.props.join(",")}return xg(o=Cv(e.children,i))?e.return=e.value+"{"+o+"}":""}function lbt(e){return function(n){n.root||(n=n.return)&&e(n)}}var sbt=function(e,n,o){for(var i=0,a=0;i=a,a=Gg(),i===38&&a===12&&(n[o]=1),!EE(a);)Dp();return LI(e,Mu)},cbt=function(e,n){return TKe(function(o,i){var a=-1,s=44;do switch(EE(s)){case 0:s===38&&Gg()===12&&(i[a]=1),o[a]+=sbt(Mu-1,i,a);break;case 2:o[a]+=GM(s);break;case 4:if(s===44){o[++a]=Gg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=BR(s)}while(s=Dp());return o}(LKe(e),n))},mhe=new WeakMap,dbt=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||mhe.get(o))&&!i){mhe.set(e,!0);for(var a=[],s=cbt(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]}}},ubt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function DKe(e,n){switch(function(o,i){return 45^Wc(o,0)?(((i<<2^Wc(o,0))<<2^Wc(o,1))<<2^Wc(o,2))<<2^Wc(o,3):0}(e,n)){case 5103:return _r+"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 _r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _r+e+uhe+e+Sd+e+e;case 6828:case 4268:return _r+e+Sd+e+e;case 6165:return _r+e+Sd+"flex-"+e+e;case 5187:return _r+e+zr(e,/(\w+).+(:[^]+)/,_r+"box-$1$2"+Sd+"flex-$1$2")+e;case 5443:return _r+e+Sd+"flex-item-"+zr(e,/flex-|-self/,"")+e;case 4675:return _r+e+Sd+"flex-line-pack"+zr(e,/align-content|flex-|-self/,"")+e;case 5548:return _r+e+Sd+zr(e,"shrink","negative")+e;case 5292:return _r+e+Sd+zr(e,"basis","preferred-size")+e;case 6060:return _r+"box-"+zr(e,"-grow","")+_r+e+Sd+zr(e,"grow","positive")+e;case 4554:return _r+zr(e,/([^-])(transform)/g,"$1"+_r+"$2")+e;case 6187:return zr(zr(zr(e,/(zoom-|grab)/,_r+"$1"),/(image-set)/,_r+"$1"),e,"")+e;case 5495:case 3959:return zr(e,/(image-set\([^]*)/,_r+"$1$`$1");case 4968:return zr(zr(e,/(.+:)(flex-)?(.*)/,_r+"box-pack:$3"+Sd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_r+e+e;case 4095:case 3583:case 4068:case 2532:return zr(e,/(.+)-inline(.+)/,_r+"$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(xg(e)-1-n>6)switch(Wc(e,n+1)){case 109:if(Wc(e,n+4)!==45)break;case 102:return zr(e,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+uhe+(Wc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~hne(e,"stretch")?DKe(zr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Wc(e,n+1)!==115)break;case 6444:switch(Wc(e,xg(e)-3-(~hne(e,"!important")&&10))){case 107:return zr(e,":",":"+_r)+e;case 101:return zr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_r+(Wc(e,14)===45?"inline-":"")+"box$3$1"+_r+"$2$3$1"+Sd+"$2box$3")+e}break;case 5936:switch(Wc(e,n+11)){case 114:return _r+e+Sd+zr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _r+e+Sd+zr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _r+e+Sd+zr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _r+e+Sd+e+e}return e}var pbt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case jle:e.return=DKe(e.value,e.length);break;case jKe:return Cv([Nk(e,{value:zr(e.value,"@","@"+_r)})],i);case Ale: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 Cv([Nk(e,{props:[zr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return Cv([Nk(e,{props:[zr(a,/:(plac\w+)/,":"+_r+"input-$1")]}),Nk(e,{props:[zr(a,/:(plac\w+)/,":-moz-$1")]}),Nk(e,{props:[zr(a,/:(plac\w+)/,Sd+"input-$1")]})],i)}return""})}}],PKe=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||pbt,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=[dbt,ubt],h=[abt,lbt(function(x){u.insert(x)})],g=function(x){var y=Ele(x);return function(b,w,C,v){for(var k="",$=0;$<y;$++)k+=x[$](b,w,C,v)||"";return k}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){Cv(ibt(C),g)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Zyt({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};function BKe(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(II,{styles:i})}const ghe=[];function A7(e){return ghe[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="";l7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=lz(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=lz(i,o,n[d]),a&&(s+=c[d]);ihe.lastIndex=0;for(var u,p="";(u=ihe.exec(s))!==null;)p+="-"+u[1];var h=function(g){for(var f,x=0,y=0,b=g.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.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&g.charCodeAt(y+2))<<16;case 2:x^=(255&g.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&g.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:l7}}(ghe)}var fhe,xhe,yhe={exports:{}},aa={};function hbt(){if(fhe)return aa;fhe=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"),g=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 g:case h:case s:return b;default:return w}}case n:return w}}}return aa.ContextConsumer=s,aa.ContextProvider=c,aa.Element=e,aa.ForwardRef=d,aa.Fragment=o,aa.Lazy=g,aa.Memo=h,aa.Portal=n,aa.Profiler=a,aa.StrictMode=i,aa.Suspense=u,aa.SuspenseList=p,aa.isContextConsumer=function(b){return y(b)===s},aa.isContextProvider=function(b){return y(b)===c},aa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},aa.isForwardRef=function(b){return y(b)===d},aa.isFragment=function(b){return y(b)===o},aa.isLazy=function(b){return y(b)===g},aa.isMemo=function(b){return y(b)===h},aa.isPortal=function(b){return y(b)===n},aa.isProfiler=function(b){return y(b)===a},aa.isStrictMode=function(b){return y(b)===i},aa.isSuspense=function(b){return y(b)===u},aa.isSuspenseList=function(b){return y(b)===p},aa.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===g||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},aa.typeOf=y,aa}function mbt(){return xhe||(xhe=1,yhe.exports=hbt()),yhe.exports}var MKe=mbt();function Pf(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 _Ke(e){if(m.isValidElement(e)||MKe.isValidElementType(e)||!Pf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=_Ke(e[o])}),n}function Fd(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Pf(e)&&Pf(n)&&Object.keys(n).forEach(a=>{m.isValidElement(n[a])||MKe.isValidElementType(n[a])?i[a]=n[a]:Pf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Pf(e[a])?i[a]=Fd(e[a],n[a],o):o.clone?i[a]=Pf(n[a])?_Ke(n[a]):n[a]:i[a]=n[a]}),i}function gbt(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 g=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return g.sort((f,x)=>f.val-x.val),g.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,g){const f=c.indexOf(g);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]]:g)-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 g=c.indexOf(h);return g===0?d(c[1]):g===c.length-1?u(c[g]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function bhe(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 fbt={borderRadius:4};function Nj(e,n){return n?Fd(e,n,{clone:!1}):e}const zR={xs:0,sm:600,md:900,lg:1200,xl:1536},whe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zR[e]}px)`},xbt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:zR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function h4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||whe;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||whe;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[,g,f]=h,x=Number.isNaN(+g)?g||0:+g;return u.containerQueries(f).up(x)}(i.containerQueries?i:xbt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||zR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Che(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function yi(e){if(typeof e!="string")throw new Error(p4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function OR(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 sz(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:OR(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=OR(c.theme,i)||{};return h4(c,d,p=>{let h=sz(u,a,p);return p===h&&typeof p=="string"&&(h=sz(u,a,`${n}${p==="default"?"":yi(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const ybt={m:"margin",p:"padding"},bbt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vhe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wbt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!vhe[e])return[e];e=vhe[e]}const[n,o]=e.split(""),i=ybt[n],a=bbt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),zKe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OKe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function TI(e,n,o,i){const a=OR(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 Ile(e){return TI(e,"spacing",8)}function DI(e,n){return typeof n=="string"||n==null?n:e(n)}function Cbt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=DI(c,d),u),{})}(wbt(o),i);return h4(e,e[o],a)}function FKe(e,n){const o=Ile(e.theme);return Object.keys(e).map(i=>Cbt(e,n,i,o)).reduce(Nj,{})}function Al(e){return FKe(e,zKe)}function jl(e){return FKe(e,OKe)}function RKe(e=8,n=Ile({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 FR(...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]?Nj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Ph(e){return typeof e!="number"?e:`${e}px solid`}function m0(e,n){return ql({prop:e,themeKey:"borders",transform:n})}Al.propTypes={},Al.filterProps=zKe,jl.propTypes={},jl.filterProps=OKe;const vbt=m0("border",Ph),Sbt=m0("borderTop",Ph),kbt=m0("borderRight",Ph),$bt=m0("borderBottom",Ph),Abt=m0("borderLeft",Ph),jbt=m0("borderColor"),Ebt=m0("borderTopColor"),Ibt=m0("borderRightColor"),Lbt=m0("borderBottomColor"),Tbt=m0("borderLeftColor"),Dbt=m0("outline",Ph),Pbt=m0("outlineColor"),qM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=TI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:DI(n,i)});return h4(e,e.borderRadius,o)}return null};qM.propTypes={},qM.filterProps=["borderRadius"],FR(vbt,Sbt,kbt,$bt,Abt,jbt,Ebt,Ibt,Lbt,Tbt,qM,Dbt,Pbt);const cz=e=>{if(e.gap!==void 0&&e.gap!==null){const n=TI(e.theme,"spacing",8),o=i=>({gap:DI(n,i)});return h4(e,e.gap,o)}return null};cz.propTypes={},cz.filterProps=["gap"];const dz=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=TI(e.theme,"spacing",8),o=i=>({columnGap:DI(n,i)});return h4(e,e.columnGap,o)}return null};dz.propTypes={},dz.filterProps=["columnGap"];const uz=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=TI(e.theme,"spacing",8),o=i=>({rowGap:DI(n,i)});return h4(e,e.rowGap,o)}return null};uz.propTypes={},uz.filterProps=["rowGap"];function vv(e,n){return n==="grey"?n:e}FR(cz,dz,uz,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 $p(e){return e<=1&&e!==0?100*e+"%":e}FR(ql({prop:"color",themeKey:"palette",transform:vv}),ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vv}),ql({prop:"backgroundColor",themeKey:"palette",transform:vv}));const Bbt=ql({prop:"width",transform:$p}),Lle=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||zR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:$p(o)}};return h4(e,e.maxWidth,n)}return null};Lle.filterProps=["maxWidth"];const Mbt=ql({prop:"minWidth",transform:$p}),_bt=ql({prop:"height",transform:$p}),zbt=ql({prop:"maxHeight",transform:$p}),Obt=ql({prop:"minHeight",transform:$p});ql({prop:"size",cssProperty:"width",transform:$p}),ql({prop:"size",cssProperty:"height",transform:$p});FR(Bbt,Lle,Mbt,_bt,zbt,Obt,ql({prop:"boxSizing"}));const RR={border:{themeKey:"borders",transform:Ph},borderTop:{themeKey:"borders",transform:Ph},borderRight:{themeKey:"borders",transform:Ph},borderBottom:{themeKey:"borders",transform:Ph},borderLeft:{themeKey:"borders",transform:Ph},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ph},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qM},color:{themeKey:"palette",transform:vv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vv},backgroundColor:{themeKey:"palette",transform:vv},p:{style:jl},pt:{style:jl},pr:{style:jl},pb:{style:jl},pl:{style:jl},px:{style:jl},py:{style:jl},padding:{style:jl},paddingTop:{style:jl},paddingRight:{style:jl},paddingBottom:{style:jl},paddingLeft:{style:jl},paddingX:{style:jl},paddingY:{style:jl},paddingInline:{style:jl},paddingInlineStart:{style:jl},paddingInlineEnd:{style:jl},paddingBlock:{style:jl},paddingBlockStart:{style:jl},paddingBlockEnd:{style:jl},m:{style:Al},mt:{style:Al},mr:{style:Al},mb:{style:Al},ml:{style:Al},mx:{style:Al},my:{style:Al},margin:{style:Al},marginTop:{style:Al},marginRight:{style:Al},marginBottom:{style:Al},marginLeft:{style:Al},marginX:{style:Al},marginY:{style:Al},marginInline:{style:Al},marginInlineStart:{style:Al},marginInlineEnd:{style:Al},marginBlock:{style:Al},marginBlockStart:{style:Al},marginBlockEnd:{style:Al},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:cz},rowGap:{style:uz},columnGap:{style:dz},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$p},maxWidth:{style:Lle},minWidth:{transform:$p},height:{transform:$p},maxHeight:{transform:$p},minHeight:{transform:$p},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"}},hy=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 g=OR(i,u)||{};return h?h(s):h4(s,o,f=>{let x=sz(g,p,f);return f===x&&typeof f=="string"&&(x=sz(g,p,`${n}${f==="default"?"":yi(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??RR;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),g=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=Nj(f,e(x,y,a,c));else{const b=h4({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce((k,$)=>k.concat(Object.keys($)),[]),v=new Set(C);return w.every(k=>v.size===Object.keys(k).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=Nj(f,b)}else f=Nj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":bhe(a,Che(g,f))}:bhe(a,Che(g,f))}return Array.isArray(i)?i.map(d):d(i)}}();function Fbt(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 Tle(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Fd({breakpoints:gbt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:RKe(a),shape:{...fbt,...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 g={},f=x=>(h(g,x),g);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=Fbt,d=n.reduce((u,p)=>Fd(u,p),d),d.unstable_sxConfig={...RR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return hy({sx:u,theme:this})},d}function gne(e=null){const n=m.useContext(yKe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}hy.filterProps=["sx"];const Rbt=Tle();function NKe(e=Rbt){return gne(e)}function She(e){const n=A7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function VKe({styles:e,themeId:n,defaultTheme:o={}}){const i=NKe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>She(typeof c=="function"?c(a):c)):She(s)),t.jsx(BKe,{styles:s})}const khe=e=>e,Nbt=(()=>{let e=khe;return{configure(n){e=n},generate:n=>e(n),reset(){e=khe}}})();function HKe(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=HKe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function bi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=HKe(e))&&(i&&(i+=" "),i+=n);return i}const Vbt={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 Nr(e,n,o="Mui"){const i=Vbt[n];return i?`${o}-${i}`:`${Nbt.generate(e)}-${n}`}function yr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Nr(e,a,o)}),i}function UKe(e){const{variants:n,...o}=e,i={variants:n,style:A7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=A7(a.style))}),i}const Hbt=Tle();function mW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ux(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Ubt(e){return e?(n,o)=>o[e]:null}function KM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>KM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?ux(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?ux(A7(c),o):c}return WKe(e,i.variants,[a],o)}return i?.isProcessed?o?ux(A7(i.style),o):i.style:o?ux(A7(i),o):i}function WKe(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?ux(A7(c.style(a)),i):c.style(a))):o.push(i?ux(A7(c.style),i):c.style)}return o}function Wbt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function fne(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]=fne(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=bi(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 t0=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Dle(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 V7(e){if(e.type)return e;if(e.charAt(0)==="#")return V7(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(p4(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(p4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const cj=(e,n)=>{try{return(o=>{const i=V7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function NR(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 QKe(e){e=V7(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])),NR({type:d,values:u})}function xne(e){let n=(e=V7(e)).type==="hsl"||e.type==="hsla"?V7(QKe(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 pz(e,n){return e=V7(e),n=Dle(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,NR(e)}function k9(e,n,o){try{return pz(e,n)}catch{return e}}function VR(e,n){if(e=V7(e),n=Dle(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 NR(e)}function Jr(e,n,o){try{return VR(e,n)}catch{return e}}function HR(e,n){if(e=V7(e),n=Dle(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 NR(e)}function Xr(e,n,o){try{return HR(e,n)}catch{return e}}function qL(e,n,o){try{return function(i,a=.15){return xne(i)>.5?VR(i,a):HR(i,a)}(e,n)}catch{return e}}const GKe=m.createContext(null);function Ple(){return m.useContext(GKe)}const Qbt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gbt(e){const{children:n,theme:o}=e,i=Ple(),a=m.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[Qbt]=i!==null),s},[o,i]);return t.jsx(GKe.Provider,{value:a,children:n})}const YKe=m.createContext();function Ybt({value:e,...n}){return t.jsx(YKe.Provider,{value:e??!0,...n})}const UR=()=>m.useContext(YKe)??!1,qKe=m.createContext(void 0);function qbt({value:e,children:n}){return t.jsx(qKe.Provider,{value:e,children:n})}function Kbt({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?fne(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:fne(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:m.useContext(qKe)}})}let $he=0;const Ahe={...u9t}.useId;function WR(e){if(Ahe!==void 0){const n=Ahe();return e??n}return function(n){const[o,i]=m.useState(n),a=n||o;return m.useEffect(()=>{o==null&&($he+=1,i(`mui-${$he}`))},[o]),a}(e)}const jhe={};function Ehe(e,n,o,i=!1){return m.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 KKe(e){const{children:n,theme:o,themeId:i}=e,a=gne(jhe),s=Ple()||jhe,c=Ehe(i,a,o),d=Ehe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const g=gne(),f=WR()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&g===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",t0(()=>{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(VKe,{styles:y}):null}(c);return t.jsx(Gbt,{theme:d,children:t.jsx(yKe.Provider,{value:c,children:t.jsx(Ybt,{value:u,children:t.jsxs(qbt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Ihe={theme:void 0},yne="mode",bne="color-scheme",Zbt="data-color-scheme";function Jbt(){}const Xbt=({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 Jbt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function gW(){}function Lhe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function The(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 ewt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=yne,colorSchemeStorageKey:c=bne,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=Xbt,noSsr:p=!1}=e,h=a.join(","),g=a.length>1,f=m.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=m.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=m.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=m.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,_=y?.get(i)||i;return{mode:L,systemMode:Lhe(L),lightColorScheme:I,darkColorScheme:_}}),[C,v]=m.useState(p||!g);m.useEffect(()=>{v(!0)},[]);const k=function(L){return The(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),$=m.useCallback(L=>{w(I=>{if(L===I.mode)return I;const _=L??n;return f?.set(_),{...I,mode:_,systemMode:Lhe(_)}})},[f,n]),j=m.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const _={...I};return The(I,z=>{z==="light"&&(x?.set(L),_.lightColorScheme=L),z==="dark"&&(y?.set(L),_.darkColorScheme=L)}),_}):w(I=>{const _={...I},z=L.light===null?o:L.light,B=L.dark===null?i:L.dark;return z&&(h.includes(z)?(_.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),B&&(h.includes(B)?(_.darkColorScheme=B,y?.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),_}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=m.useCallback(L=>{b.mode==="system"&&w(I=>{const _=L?.matches?"dark":"light";return I.systemMode===_?I:{...I,systemMode:_}})},[b.mode]),E=m.useRef(A);return E.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const L=(..._)=>E.current(..._),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[g]),m.useEffect(()=>{if(g){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&$(z||n)})||gW,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||gW,_=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||gW;return()=>{L(),I(),_()}}},[j,$,h,n,d,g,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?k:void 0,setMode:$,setColorScheme:j}}function twt(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 Dhe=(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 fW(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(g,f=[],x=[]){Object.entries(g).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("-")}`,g=((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]:g}),Dhe(s,d,`var(${h})`,p),Dhe(c,d,`var(${h}, ${g})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Vr(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 xW(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const IE={black:"#000",white:"#fff"},nwt={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"},owt="#f3e5f5",iwt="#ce93d8",rwt="#ba68c8",awt="#ab47bc",lwt="#9c27b0",swt="#7b1fa2",cwt="#e57373",dwt="#ef5350",uwt="#f44336",Phe="#d32f2f",pwt="#c62828",hwt="#ffb74d",mwt="#ffa726",gwt="#ff9800",fwt="#f57c00",xwt="#e65100",ywt="#e3f2fd",bwt="#90caf9",Bhe="#42a5f5",wwt="#1976d2",Cwt="#1565c0",vwt="#4fc3f7",Swt="#29b6f6",kwt="#03a9f4",Mhe="#0288d1",$wt="#01579b",Awt="#81c784",jwt="#66bb6a",Ewt="#4caf50",Iwt="#388e3c",Lwt="#2e7d32",Twt="#1b5e20";function ZKe(){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:IE.white,default:IE.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 JKe=ZKe();function XKe(){return{text:{primary:IE.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:IE.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 wne=XKe();function _he(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=HR(e.main,a):n==="dark"&&(e.dark=VR(e.main,s)))}function zhe(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 Ble(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:bwt,light:ywt,dark:Bhe}:{main:wwt,light:Bhe,dark:Cwt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:iwt,light:owt,dark:awt}:{main:lwt,light:rwt,dark:swt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:uwt,light:cwt,dark:Phe}:{main:Phe,light:dwt,dark:pwt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:Swt,light:vwt,dark:Mhe}:{main:Mhe,light:kwt,dark:$wt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:jwt,light:Awt,dark:Iwt}:{main:Lwt,light:Ewt,dark:Twt}}(n),g=e.warning||function(b="light"){return b==="dark"?{main:mwt,light:hwt,dark:fwt}:{main:"#ed6c02",light:gwt,dark:xwt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const k=xne(C),$=xne(v);return(Math.max(k,$)+.05)/(Math.min(k,$)+.05)}(b,wne.text.primary)>=o?wne.text.primary:JKe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:k=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(p4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(p4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(zhe(a,b,"light",v,i),zhe(a,b,"dark",k,i)):(_he(b,"light",v,i),_he(b,"dark",k,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=ZKe():n==="dark"&&(y=XKe()),Fd({common:{...IE},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:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:nwt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Dwt(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 Pwt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function Bwt(e){return Math.round(1e5*e)/1e5}const Ohe={textTransform:"uppercase"},Fhe='"Roboto", "Helvetica", "Arial", sans-serif';function eZe(e,n){const{fontFamily:o=Fhe,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...g}=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===Fhe?{letterSpacing:`${Bwt(k/C)}em`}:{},...$,...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,Ohe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Ohe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fd({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function Xa(...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 Mwt=["none",Xa(0,2,1,-1,0,1,1,0,0,1,3,0),Xa(0,3,1,-2,0,2,2,0,0,1,5,0),Xa(0,3,3,-2,0,3,4,0,0,1,8,0),Xa(0,2,4,-1,0,4,5,0,0,1,10,0),Xa(0,3,5,-1,0,5,8,0,0,1,14,0),Xa(0,3,5,-1,0,6,10,0,0,1,18,0),Xa(0,4,5,-2,0,7,10,1,0,2,16,1),Xa(0,5,5,-3,0,8,10,1,0,3,14,2),Xa(0,5,6,-3,0,9,12,1,0,3,16,2),Xa(0,6,6,-3,0,10,14,1,0,4,18,3),Xa(0,6,7,-4,0,11,15,1,0,4,20,3),Xa(0,7,8,-4,0,12,17,2,0,5,22,4),Xa(0,7,8,-4,0,13,19,2,0,5,24,4),Xa(0,7,9,-4,0,14,21,2,0,5,26,4),Xa(0,8,9,-5,0,15,22,2,0,6,28,5),Xa(0,8,10,-5,0,16,24,2,0,6,30,5),Xa(0,8,11,-5,0,17,26,2,0,6,32,5),Xa(0,9,11,-5,0,18,28,2,0,7,34,6),Xa(0,9,12,-6,0,19,29,2,0,7,36,6),Xa(0,10,13,-6,0,20,31,3,0,8,38,7),Xa(0,10,13,-6,0,21,33,3,0,8,40,7),Xa(0,10,14,-6,0,22,35,3,0,8,42,7),Xa(0,11,14,-7,0,23,36,3,0,9,44,8),Xa(0,11,15,-7,0,24,38,3,0,9,46,8)],_wt={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)"},tZe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rhe(e){return`${Math.round(e)}ms`}function zwt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Owt(e){const n={..._wt,...e.easing},o={...tZe,...e.duration};return{getAutoHeightDuration:zwt,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:Rhe(s)} ${c} ${typeof d=="string"?d:Rhe(d)}`).join(",")},...e,easing:n,duration:o}}const Fwt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Rwt(e){return Pf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function nZe(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];!Rwt(d)||c.startsWith("unstable_")?delete i[c]:Pf(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-BLvcbIPk.js","assets/sentry-Bhr8KU--.js","assets/core-B86WF2Ww.js","assets/index-vzrF8p0m.js","assets/DefaultTenantHome-DOFkLxHn.js","assets/mui-DZd7XaFW.js","assets/getLocaleForTenant-DNhjRuKy.js","assets/analytics-CFOBCmx3.js","assets/utils-Mvk27uIx.js","assets/ScreenRoutes-CSJKItCB.js","assets/analyticsHelper-Bx8A0vf3.js","assets/ConnectionAuthScreen-BgsvoVoV.js","assets/QBOConnectionScreen-QfAoc6ay.js","assets/empty-CRbjQ82E.js","assets/index-CcACvObI.js","assets/url-CgMNpbBl.js","assets/index-BHE-07hU.js","assets/decodeURIComponentSafe-C-DNZuqb.js","assets/SignInScreen-BI2QJmsm.js","assets/useDeviceId-rK1IEgER.js","assets/MagicLinkSignInScreen-BSQuMqe_.js","assets/NotFoundScreen--NgVTkpE.js","assets/MagicLinkRoutes-Dlg_sv3w.js","assets/WiseConfirmationScreen-BTbWpX1H.js","assets/HubSpotOAuthCallbackScreen-Dnafv1F_.js","assets/CustomerOnboardingAuthScreen-q2OxHMS0.js","assets/SignOutScreen-DWdPOV-f.js","assets/OAuthConsentScreen-KmZzxwuS.js"])))=>i.map(i=>d[i]);
2
+ import{a as m,b as T,c as rne,R as u9t,p as cW,r as Nu,g as vqe,e as Ipe,f as p9t,s as Lpe,i as h9t,w as m9t,j as g9t,S as f9t,k as x9t,l as y9t,m as b9t,n as w9t,o as C9t}from"./sentry-Bhr8KU--.js";import{L as v9t,C as Tpe,_ as Vp,a as AI,b as S9t,c as CR,d as jI,u as Sqe,T as k9t,e as $9t,f as A9t,g as j9t,h as kqe,i as E9t,k as I9t,j as Tt,l as L9t}from"./liveblocks-D41N0IlG.js";import{f as $qe,r as Tr,R as dx,P as ul,u as e0,m as ale,g as fi,h as i3,O as T9t,N as Aqe,i as lj,j as vR,k as D9t,l as P9t,n as B9t,o as Z1,p as M9t,B as _9t}from"./core-B86WF2Ww.js";import{L as Dpe,bl as z9t,bm as O9t,bn as S4,bo as jqe,bp as F9t,bq as Rt,br as NS,bs as N2,bt as R9t,bu as k4,bv as Va,bw as Fa,bx as N9t,by as V9t,bz as H9t,bA as u4,bB as r3,bC as SR,bD as nn,bE as Eqe,bF as Iqe,bG as lle,bH as _p,bI as a3,bJ as Jc,bK as Wf,bL as U9t,bM as _l,bN as W9t,bO as VS,bP as Q9t,bQ as G9t,bR as Y9t,bS as sy,bT as q9t,bU as Ppe,bV as K9t,bW as Z9t,bX as J9t,bY as X9t,bZ as e8t,b_ as t8t,b$ as n8t,c0 as o8t,c1 as $7,c2 as kR,c3 as i8t,c4 as $R,c5 as AR,c6 as jR,c7 as sle,c8 as ER,c9 as eS,ca as tS,cb as IR,cc as r8t,cd as a8t,ce as Bpe,cf as ane,cg as l8t,ch as s8t,ci as zd,cj as Lqe,ck as cle,cl as c8t,cm as S9,cn as Mpe,co as d8t,cp as u8t,cq as p8t,cr as Ry,cs as Ny,ct as Tqe,cu as Dqe,cv as dle,cw as h8t,cx as m8t,cy as iz,cz as Pqe,cA as g8t,cB as Bqe,cC as f8t,cD as sj,cE as _pe,cF as x8t,cG as Mqe,cH as _qe,cI as zqe,cJ as y8t,cK as HS,cL as zpe,cM as b8t,cN as w8t,cO as Oqe,cP as C8t,cQ as Ope,cR as bc,cS as ml,cT as v8t,cU as nS,cV as Ld,cW as Fqe,cX as S8t,cY as $E,cZ as Fx,c_ as ya,c$ as k8t,d0 as $8t,d1 as A8t,d2 as WL,d3 as Dh,d4 as j8t,d5 as E8t,d6 as I8t,d7 as L8t,d8 as QL,d9 as cy,da as LR,db as T8t,dc as D8t,dd as Vy,de as Od,df as Rqe,dg as Nqe,dh as P8t,di as lne,dj as B8t,dk as S1,dl as dy,dm as ule,dn as Vqe,dp as Hqe,dq as Uqe,dr as Wqe,ds as Qqe,dt as Gqe,du as M8t,dv as Fpe,dw as _8t,_ as rd,dx as ple,dy as Yqe,dz as z8t,dA as Rpe,dB as Ju,dC as Qf,dD as O8t,dE as F8t,dF as qqe,dG as sne,dH as WM,dI as R8t,dJ as N8t,dK as V8t,dL as H8t,dM as U8t,dN as W8t,dO as Q8t,dP as G8t,dQ as Y8t,dR as q8t,dS as Oj,dT as Fj,dU as Kqe,dV as YC,dW as hle,dX as mle,dY as US,dZ as gle,d_ as fle,d$ as xle,e0 as yle,e1 as Zqe,e2 as ble,e3 as K8t,e4 as Z8t,e5 as Jqe,e6 as Npe,e7 as J8t,e8 as wle,e9 as X8t,ea as ext,eb as Xqe,ec as txt,ed as nxt,ee as eKe,ef as oxt,eg as tKe,eh as nKe,ei as ixt,ej as rxt,ek as axt,el as lxt,em as sxt,en as cxt,eo as dxt,ep as uxt,eq as pxt,er as Vpe,es as TR,et as hxt,eu as mxt,ev as gxt,ew as fxt,ex as xxt,ey as yxt,ez as bxt,eA as wxt,eB as Hpe,eC as oKe,eD as iKe,eE as rKe,eF as aKe,eG as lKe,eH as sKe,eI as Cxt,eJ as vxt,eK as Sxt,v as kxt,eL as $xt,eM as Axt,eN as Cle,eO as Vu,eP as cKe,eQ as EI,eR as jxt,eS as dKe,eT as Ext,eU as uKe,eV as Ixt,eW as pKe,eX as Lxt,eY as Txt,eZ as Dxt,e_ as Pxt,e$ as Bxt,f0 as Upe,f1 as hKe,f2 as Bb,f3 as DR,f4 as Wpe,f5 as Mxt,f6 as Qpe,f7 as _xt,f8 as zxt,f9 as mKe,fa as gKe,fb as Oxt,fc as Fxt,fd as Rxt,fe as Nxt,ff as Vxt,fg as Hxt,fh as rz,fi as vle,fj as fKe,fk as Uxt,fl as Rj,fm as Wxt,fn as Qxt,fo as Gxt,fp as Yxt,fq as qxt,fr as Kxt,fs as Zxt,ft as Jxt,fu as Xxt,fv as eyt,fw as tyt,fx as xKe,fy as nyt,fz as oyt,fA as iyt,fB as Gpe,fC as ryt,fD as ayt,fE as lyt,fF as syt,fG as cyt,fH as cne,fI as dyt,fJ as uyt,fK as pyt,fL as hyt,fM as myt,fN as gyt,fO as fyt,fP as xyt,fQ as Ype,fR as yyt,fS as byt}from"./zeni-epic-state-BLvcbIPk.js";import{n as l,T as yKe,G as II,j as qo,c as De,k as On,C as bKe,u as Sle,a as dne,A as wyt,b as Cyt,I as vyt,d as Syt,D as az,S as wKe}from"./mui-DZd7XaFW.js";import{r as kyt,m as vh}from"./analytics-CFOBCmx3.js";import{u as Hp}from"./plaid-CZm5yErz.js";import{g as $yt,O as Ayt,H as jyt,S as Eyt,T as Iyt,a as Lyt,u as Tyt,b as Dyt}from"./dnd-DrUSXn8k.js";import{l as Pyt}from"./stripe-DMRn4zHo.js";import{L as bv}from"./lottie-BHETr187.js";import{r as As}from"./lexical-COpm991f.js";import{D as une,P as pne,_ as CKe,a as vKe}from"./pdf-BdWka_4Q.js";import{R as AE,G as uy,X as es,Y as zl,H as py,I as nd,J as zp,K as Hy,L as Up,M as Byt,N as WS,O as SKe,P as Myt,Q as PR,S as wv,U as _yt,V as kle,W as zyt,Z as Oyt,_ as Fyt}from"./recharts-BHLF4b4u.js";import{r as Ryt}from"./utils-Mvk27uIx.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]="a679cf64-b7f5-4fd0-a3f8-d89c9bf63b09",e._sentryDebugIdIdentifier="sentry-dbid-a679cf64-b7f5-4fd0-a3f8-d89c9bf63b09")}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 qpe,GL={},Nyt=function(){if(qpe)return GL;qpe=1;var e=$qe();return GL.createRoot=e.createRoot,GL.hydrateRoot=e.hydrateRoot,GL}(),Au=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof rne<"u"?rne:typeof self<"u"?self:{};function Ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kpe,Zpe,Jpe={exports:{}},Rk={};function kKe(){return Zpe||(Zpe=1,Jpe.exports=function(){if(Kpe)return Rk;Kpe=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,g={},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)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:a.current}}return Rk.Fragment=o,Rk.jsx=c,Rk.jsxs=c,Rk}()),Jpe.exports}var t=kKe();const Vyt=m.createContext(null),dW={didCatch:!1,error:null};let Hyt=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=dW}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(dW)}}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(dW))}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=m.createElement(o,d);else{if(i===void 0)throw s;c=i}}return m.createElement(Vyt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var Xpe,uW={exports:{}},ehe,the,pW,Uyt=(Xpe||(Xpe=1,the=uW.exports,pW=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(g,f){this._input=g,this._value=f}return e=function(g){var f,x,y,b;if(e.isNumeral(g))f=g.value();else if(g===0||typeof g>"u")f=0;else if(g===null||n.isNaN(g))f=null;else if(typeof g=="string")if(p.zeroFormat&&g===p.zeroFormat)f=0;else if(p.nullFormat&&g===p.nullFormat||!g.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)&&g.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(g)}else f=Number(g)||null;return new h(g,f)},e.version="2.0.6",e.isNumeral=function(g){return g instanceof h},e._=n={numberToFormat:function(g,f,x){var y,b,w,C,v,k,$,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",_=1e12,z=1e9,B=1e6,R="",N=!1;if(g=g||0,w=Math.abs(g),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&(k=e._.includes(f,"+")?f.indexOf("+"):g<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>=_&&!b||b==="t"?(I+=A.abbreviations.trillion,g/=_):w<_&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,g/=z):w<z&&w>=B&&!b||b==="m"?(I+=A.abbreviations.million,g/=B):(w<B&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,g/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=g.toString().split(".")[0],v=f.split(".")[1],$=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),R=e._.toFixed(g,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(g,v.length,x),C=R.split(".")[0],R=e._.includes(R,".")?A.delimiters.decimal+R.split(".")[1]:"",L&&Number(R.slice(1))===0&&(R="")):C=e._.toFixed(g,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),N=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return $>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+R+(I||""),E?j=(E&&N?"(":"")+j+(E&&N?")":""):k>=0?j=k===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(j="-"+j),j},stringToNumber:function(g){var f,x,y,b=d[p.currentLocale],w=g,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&g===p.zeroFormat)x=0;else if(p.nullFormat&&g===p.nullFormat||!g.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(g=g.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*=(g.split("-").length+Math.min(g.split("(").length-1,g.split(")").length-1))%2?1:-1,g=g.replace(/[^0-9\.]+/g,""),x*=Number(g)}return x},isNaN:function(g){return typeof g=="number"&&isNaN(g)},includes:function(g,f){return g.indexOf(f)!==-1},insert:function(g,f,x){return g.slice(0,x)+f+g.slice(x)},reduce:function(g,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(g),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(g){var f=g.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(g,f){var x=n.multiplier(f);return g>x?g:x},1)},toFixed:function(g,f,x,y){var b,w,C,v,k=g.toString().split("."),$=f-(y||0);return b=k.length===2?Math.min(Math.max(k[1].length,$),f):$,C=Math.pow(10,b),v=(x(g+"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(g){return g&&(p.currentLocale=g.toLowerCase()),p.currentLocale},e.localeData=function(g){if(!g)return d[p.currentLocale];if(g=g.toLowerCase(),!d[g])throw new Error("Unknown locale : "+g);return d[g]},e.reset=function(){for(var g in u)p[g]=u[g]},e.zeroFormat=function(g){p.zeroFormat=typeof g=="string"?g:null},e.nullFormat=function(g){p.nullFormat=typeof g=="string"?g:null},e.defaultFormat=function(g){p.defaultFormat=typeof g=="string"?g:"0.0"},e.register=function(g,f,x){if(f=f.toLowerCase(),this[g+"s"][f])throw new TypeError(f+" "+g+" already registered.");return this[g+"s"][f]=x,x},e.validate=function(g,f){var x,y,b,w,C,v,k,$;if(typeof g!="string"&&(g+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",g)),(g=g.trim()).match(/^\d+$/))return!0;if(g==="")return!1;try{k=e.localeData(f)}catch{k=e.localeData(e.locale())}return b=k.currency.symbol,C=k.abbreviations,x=k.delimiters.decimal,y=k.delimiters.thousands==="."?"\\.":k.delimiters.thousands,!(($=g.match(/^[^\d]+/))!==null&&(g=g.substr(1),$[0]!==b)||($=g.match(/[^\d]+$/))!==null&&(g=g.slice(0,-1),$[0]!==C.thousand&&$[0]!==C.million&&$[0]!==C.billion&&$[0]!==C.trillion)||(v=new RegExp(y+"{2}"),g.match(/[^\d.,]/g)||(w=g.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(g,f){var x,y,b,w=this._value,C=g||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(g){return this._value=Number(g),this},add:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([this._value,g],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(g){var f=n.correctionFactor.call(null,this._value,g);return this._value=n.reduce([g],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(g){return this._value=n.reduce([this._value,g],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(g){return this._value=n.reduce([this._value,g],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(g){return Math.abs(e(this._value).subtract(g).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(g){var f=g%10;return~~(g%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(g,f,x){var y,b=e._.includes(f," BPS")?" ":"";return g*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(g){return+(1e-4*e._.stringToNumber(g)).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(g){return o.suffixes.indexOf(g)<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(g,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),g===null||g===0||g>=b&&g<w){v+=C.suffixes[y],b>0&&(g/=b);break}return e._.numberToFormat(g,f,x)+v},unformat:function(g){var f,x,y=e._.stringToNumber(g);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(g,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(g,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(g,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(g,f,x),g>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):g<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(g,f,x){var y=(typeof g!="number"||e._.isNaN(g)?"0e+0":g.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(g){var f=e._.includes(g,"e+")?g.split("e+"):g.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(g,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var k=e._.correctionFactor(b,w);return b*k*(w*k)/(k*k)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(g,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(g),e._.numberToFormat(g,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(g,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(g*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(g,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(g){var f=e._.stringToNumber(g);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(g,f,x){var y=Math.floor(g/60/60),b=Math.floor((g-60*y*60)/60),w=Math.round(g-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(g){var f=g.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},(ehe=uW).exports?ehe.exports=pW():the.numeral=pW()),uW.exports);const Xf=Ei(Uyt);function p4(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 e4="$$material";var Wyt={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 Qyt(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var Gyt=/[A-Z]|^ms/g,Yyt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$Ke=function(e){return e.charCodeAt(1)===45},nhe=function(e){return e!=null&&typeof e!="boolean"},hW=Qyt(function(e){return $Ke(e)?e:e.replace(Gyt,"-$&").toLowerCase()}),ohe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yyt,function(o,i,a){return l7={name:i,styles:a,next:l7},i})}return Wyt[e]===1||$Ke(e)||typeof n!="number"||n===0?n:n+"px"};function lz(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 l7={name:a.name,styles:a.styles,next:l7},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)l7={name:c.name,styles:c.styles,next:l7},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var g=0;g<p.length;g++)h+=lz(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;nhe(y)&&(h+=hW(f)+":"+ohe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)nhe(x[b])&&(h+=hW(f)+":"+ohe(f,x[b])+";");else{var w=lz(d,u,x);switch(f){case"animation":case"animationName":h+=hW(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var l7,ihe=/label:\s*([^\s;{]+)\s*(;|$)/g,rhe,ahe,lhe,she,che,dhe={exports:{}};function qyt(){return ahe?rhe:(ahe=1,rhe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Kyt(){if(she)return lhe;she=1;var e=qyt();function n(){}function o(){}return o.resetWarningCache=n,lhe=function(){function i(c,d,u,p,h,g){if(g!==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 $le(){return che||(che=1,dhe.exports=Kyt()()),dhe.exports}const xn=Ei($le());var Zyt=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}(),Sd="-ms-",uhe="-moz-",_r="-webkit-",AKe="comm",Ale="rule",jle="decl",jKe="@keyframes",Jyt=Math.abs,BR=String.fromCharCode,Xyt=Object.assign;function EKe(e){return e.trim()}function zr(e,n,o){return e.replace(n,o)}function hne(e,n){return e.indexOf(n)}function Wc(e,n){return 0|e.charCodeAt(n)}function jE(e,n,o){return e.slice(n,o)}function xg(e){return e.length}function Ele(e){return e.length}function YL(e,n){return n.push(e),e}var MR=1,oS=1,IKe=0,Mu=0,vs=0,QS="";function _R(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:MR,column:oS,length:c,return:""}}function Nk(e,n){return Xyt(_R("",null,null,"",null,null,0),e,{length:-e.length},n)}function Dp(){return vs=Mu<IKe?Wc(QS,Mu++):0,oS++,vs===10&&(oS=1,MR++),vs}function Gg(){return Wc(QS,Mu)}function QM(){return Mu}function LI(e,n){return jE(QS,e,n)}function EE(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 LKe(e){return MR=oS=1,IKe=xg(QS=e),Mu=0,[]}function TKe(e){return QS="",e}function GM(e){return EKe(LI(Mu-1,mne(e===91?e+2:e===40?e+1:e)))}function ebt(e){for(;(vs=Gg())&&vs<33;)Dp();return EE(e)>2||EE(vs)>3?"":" "}function tbt(e,n){for(;--n&&Dp()&&!(vs<48||vs>102||vs>57&&vs<65||vs>70&&vs<97););return LI(e,QM()+(n<6&&Gg()==32&&Dp()==32))}function mne(e){for(;Dp();)switch(vs){case e:return Mu;case 34:case 39:e!==34&&e!==39&&mne(vs);break;case 40:e===41&&mne(e);break;case 92:Dp()}return Mu}function nbt(e,n){for(;Dp()&&e+vs!==57&&(e+vs!==84||Gg()!==47););return"/*"+LI(n,Mu-1)+"*"+BR(e===47?e:Dp())}function obt(e){for(;!EE(Gg());)Dp();return LI(e,Mu)}function ibt(e){return TKe(YM("",null,null,null,[""],e=LKe(e),0,[0],e))}function YM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,g=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,k="",$=a,j=s,A=i,E=k;w;)switch(y=v,v=Dp()){case 40:if(y!=108&&Wc(E,g-1)==58){hne(E+=zr(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+=ebt(y);break;case 92:E+=tbt(QM()-1,7);continue;case 47:switch(Gg()){case 42:case 47:YL(rbt(nbt(Dp(),QM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=xg(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=zr(E,/\f/g,"")),x>0&&xg(E)-g&&YL(x>32?hhe(E+";",i,o,g-1):hhe(zr(E," ","")+";",i,o,g-2),u);break;case 59:E+=";";default:if(YL(A=phe(E,n,o,p,h,a,d,k,$=[],j=[],g),s),v===123)if(h===0)YM(E,n,A,A,$,s,g,d,j);else switch(f===99&&Wc(E,3)===110?100:f){case 100:case 108:case 109:case 115:YM(e,A,A,i&&YL(phe(e,A,A,0,0,a,d,k,a,$=[],g),j),a,j,g,d,i?$:j);break;default:YM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,k=E="",g=c;break;case 58:g=1+xg(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(vs=Mu>0?Wc(QS,--Mu):0,oS--,vs===10&&(oS=1,MR--),vs==125))continue}switch(E+=BR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(xg(E)-1)*C,C=1;break;case 64:Gg()===45&&(E+=GM(Dp())),f=Gg(),h=g=xg(k=E+=obt(QM())),v++;break;case 45:y===45&&xg(E)==2&&(b=0)}}return s}function phe(e,n,o,i,a,s,c,d,u,p,h){for(var g=a-1,f=a===0?s:[""],x=Ele(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=jE(e,g+1,g=Jyt(b=c[y])),k=e;C<x;++C)(k=EKe(b>0?f[C]+" "+v:zr(v,/&\f/g,f[C])))&&(u[w++]=k);return _R(e,n,o,a===0?Ale:d,u,p,h)}function rbt(e,n,o){return _R(e,n,o,AKe,BR(vs),jE(e,2,-2),0)}function hhe(e,n,o,i){return _R(e,n,o,jle,jE(e,0,i),jE(e,i+1,-1),i)}function Cv(e,n){for(var o="",i=Ele(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function abt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case jle:return e.return=e.return||e.value;case AKe:return"";case jKe:return e.return=e.value+"{"+Cv(e.children,i)+"}";case Ale:e.value=e.props.join(",")}return xg(o=Cv(e.children,i))?e.return=e.value+"{"+o+"}":""}function lbt(e){return function(n){n.root||(n=n.return)&&e(n)}}var sbt=function(e,n,o){for(var i=0,a=0;i=a,a=Gg(),i===38&&a===12&&(n[o]=1),!EE(a);)Dp();return LI(e,Mu)},cbt=function(e,n){return TKe(function(o,i){var a=-1,s=44;do switch(EE(s)){case 0:s===38&&Gg()===12&&(i[a]=1),o[a]+=sbt(Mu-1,i,a);break;case 2:o[a]+=GM(s);break;case 4:if(s===44){o[++a]=Gg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=BR(s)}while(s=Dp());return o}(LKe(e),n))},mhe=new WeakMap,dbt=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||mhe.get(o))&&!i){mhe.set(e,!0);for(var a=[],s=cbt(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]}}},ubt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function DKe(e,n){switch(function(o,i){return 45^Wc(o,0)?(((i<<2^Wc(o,0))<<2^Wc(o,1))<<2^Wc(o,2))<<2^Wc(o,3):0}(e,n)){case 5103:return _r+"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 _r+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _r+e+uhe+e+Sd+e+e;case 6828:case 4268:return _r+e+Sd+e+e;case 6165:return _r+e+Sd+"flex-"+e+e;case 5187:return _r+e+zr(e,/(\w+).+(:[^]+)/,_r+"box-$1$2"+Sd+"flex-$1$2")+e;case 5443:return _r+e+Sd+"flex-item-"+zr(e,/flex-|-self/,"")+e;case 4675:return _r+e+Sd+"flex-line-pack"+zr(e,/align-content|flex-|-self/,"")+e;case 5548:return _r+e+Sd+zr(e,"shrink","negative")+e;case 5292:return _r+e+Sd+zr(e,"basis","preferred-size")+e;case 6060:return _r+"box-"+zr(e,"-grow","")+_r+e+Sd+zr(e,"grow","positive")+e;case 4554:return _r+zr(e,/([^-])(transform)/g,"$1"+_r+"$2")+e;case 6187:return zr(zr(zr(e,/(zoom-|grab)/,_r+"$1"),/(image-set)/,_r+"$1"),e,"")+e;case 5495:case 3959:return zr(e,/(image-set\([^]*)/,_r+"$1$`$1");case 4968:return zr(zr(e,/(.+:)(flex-)?(.*)/,_r+"box-pack:$3"+Sd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_r+e+e;case 4095:case 3583:case 4068:case 2532:return zr(e,/(.+)-inline(.+)/,_r+"$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(xg(e)-1-n>6)switch(Wc(e,n+1)){case 109:if(Wc(e,n+4)!==45)break;case 102:return zr(e,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+uhe+(Wc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~hne(e,"stretch")?DKe(zr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Wc(e,n+1)!==115)break;case 6444:switch(Wc(e,xg(e)-3-(~hne(e,"!important")&&10))){case 107:return zr(e,":",":"+_r)+e;case 101:return zr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_r+(Wc(e,14)===45?"inline-":"")+"box$3$1"+_r+"$2$3$1"+Sd+"$2box$3")+e}break;case 5936:switch(Wc(e,n+11)){case 114:return _r+e+Sd+zr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _r+e+Sd+zr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _r+e+Sd+zr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _r+e+Sd+e+e}return e}var pbt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case jle:e.return=DKe(e.value,e.length);break;case jKe:return Cv([Nk(e,{value:zr(e.value,"@","@"+_r)})],i);case Ale: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 Cv([Nk(e,{props:[zr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return Cv([Nk(e,{props:[zr(a,/:(plac\w+)/,":"+_r+"input-$1")]}),Nk(e,{props:[zr(a,/:(plac\w+)/,":-moz-$1")]}),Nk(e,{props:[zr(a,/:(plac\w+)/,Sd+"input-$1")]})],i)}return""})}}],PKe=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||pbt,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=[dbt,ubt],h=[abt,lbt(function(x){u.insert(x)})],g=function(x){var y=Ele(x);return function(b,w,C,v){for(var k="",$=0;$<y;$++)k+=x[$](b,w,C,v)||"";return k}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){Cv(ibt(C),g)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Zyt({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};function BKe(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(II,{styles:i})}const ghe=[];function A7(e){return ghe[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="";l7=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=lz(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=lz(i,o,n[d]),a&&(s+=c[d]);ihe.lastIndex=0;for(var u,p="";(u=ihe.exec(s))!==null;)p+="-"+u[1];var h=function(g){for(var f,x=0,y=0,b=g.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.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&g.charCodeAt(y+2))<<16;case 2:x^=(255&g.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&g.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:l7}}(ghe)}var fhe,xhe,yhe={exports:{}},aa={};function hbt(){if(fhe)return aa;fhe=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"),g=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 g:case h:case s:return b;default:return w}}case n:return w}}}return aa.ContextConsumer=s,aa.ContextProvider=c,aa.Element=e,aa.ForwardRef=d,aa.Fragment=o,aa.Lazy=g,aa.Memo=h,aa.Portal=n,aa.Profiler=a,aa.StrictMode=i,aa.Suspense=u,aa.SuspenseList=p,aa.isContextConsumer=function(b){return y(b)===s},aa.isContextProvider=function(b){return y(b)===c},aa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},aa.isForwardRef=function(b){return y(b)===d},aa.isFragment=function(b){return y(b)===o},aa.isLazy=function(b){return y(b)===g},aa.isMemo=function(b){return y(b)===h},aa.isPortal=function(b){return y(b)===n},aa.isProfiler=function(b){return y(b)===a},aa.isStrictMode=function(b){return y(b)===i},aa.isSuspense=function(b){return y(b)===u},aa.isSuspenseList=function(b){return y(b)===p},aa.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===g||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},aa.typeOf=y,aa}function mbt(){return xhe||(xhe=1,yhe.exports=hbt()),yhe.exports}var MKe=mbt();function Pf(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 _Ke(e){if(m.isValidElement(e)||MKe.isValidElementType(e)||!Pf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=_Ke(e[o])}),n}function Fd(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return Pf(e)&&Pf(n)&&Object.keys(n).forEach(a=>{m.isValidElement(n[a])||MKe.isValidElementType(n[a])?i[a]=n[a]:Pf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&Pf(e[a])?i[a]=Fd(e[a],n[a],o):o.clone?i[a]=Pf(n[a])?_Ke(n[a]):n[a]:i[a]=n[a]}),i}function gbt(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 g=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return g.sort((f,x)=>f.val-x.val),g.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,g){const f=c.indexOf(g);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]]:g)-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 g=c.indexOf(h);return g===0?d(c[1]):g===c.length-1?u(c[g]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function bhe(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 fbt={borderRadius:4};function Nj(e,n){return n?Fd(e,n,{clone:!1}):e}const zR={xs:0,sm:600,md:900,lg:1200,xl:1536},whe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${zR[e]}px)`},xbt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:zR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function h4(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||whe;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||whe;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[,g,f]=h,x=Number.isNaN(+g)?g||0:+g;return u.containerQueries(f).up(x)}(i.containerQueries?i:xbt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||zR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Che(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function yi(e){if(typeof e!="string")throw new Error(p4(7));return e.charAt(0).toUpperCase()+e.slice(1)}function OR(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 sz(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:OR(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=OR(c.theme,i)||{};return h4(c,d,p=>{let h=sz(u,a,p);return p===h&&typeof p=="string"&&(h=sz(u,a,`${n}${p==="default"?"":yi(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const ybt={m:"margin",p:"padding"},bbt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vhe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wbt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!vhe[e])return[e];e=vhe[e]}const[n,o]=e.split(""),i=ybt[n],a=bbt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),zKe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],OKe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function TI(e,n,o,i){const a=OR(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 Ile(e){return TI(e,"spacing",8)}function DI(e,n){return typeof n=="string"||n==null?n:e(n)}function Cbt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=DI(c,d),u),{})}(wbt(o),i);return h4(e,e[o],a)}function FKe(e,n){const o=Ile(e.theme);return Object.keys(e).map(i=>Cbt(e,n,i,o)).reduce(Nj,{})}function Al(e){return FKe(e,zKe)}function jl(e){return FKe(e,OKe)}function RKe(e=8,n=Ile({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 FR(...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]?Nj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Ph(e){return typeof e!="number"?e:`${e}px solid`}function m0(e,n){return ql({prop:e,themeKey:"borders",transform:n})}Al.propTypes={},Al.filterProps=zKe,jl.propTypes={},jl.filterProps=OKe;const vbt=m0("border",Ph),Sbt=m0("borderTop",Ph),kbt=m0("borderRight",Ph),$bt=m0("borderBottom",Ph),Abt=m0("borderLeft",Ph),jbt=m0("borderColor"),Ebt=m0("borderTopColor"),Ibt=m0("borderRightColor"),Lbt=m0("borderBottomColor"),Tbt=m0("borderLeftColor"),Dbt=m0("outline",Ph),Pbt=m0("outlineColor"),qM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=TI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:DI(n,i)});return h4(e,e.borderRadius,o)}return null};qM.propTypes={},qM.filterProps=["borderRadius"],FR(vbt,Sbt,kbt,$bt,Abt,jbt,Ebt,Ibt,Lbt,Tbt,qM,Dbt,Pbt);const cz=e=>{if(e.gap!==void 0&&e.gap!==null){const n=TI(e.theme,"spacing",8),o=i=>({gap:DI(n,i)});return h4(e,e.gap,o)}return null};cz.propTypes={},cz.filterProps=["gap"];const dz=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=TI(e.theme,"spacing",8),o=i=>({columnGap:DI(n,i)});return h4(e,e.columnGap,o)}return null};dz.propTypes={},dz.filterProps=["columnGap"];const uz=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=TI(e.theme,"spacing",8),o=i=>({rowGap:DI(n,i)});return h4(e,e.rowGap,o)}return null};uz.propTypes={},uz.filterProps=["rowGap"];function vv(e,n){return n==="grey"?n:e}FR(cz,dz,uz,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 $p(e){return e<=1&&e!==0?100*e+"%":e}FR(ql({prop:"color",themeKey:"palette",transform:vv}),ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vv}),ql({prop:"backgroundColor",themeKey:"palette",transform:vv}));const Bbt=ql({prop:"width",transform:$p}),Lle=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||zR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:$p(o)}};return h4(e,e.maxWidth,n)}return null};Lle.filterProps=["maxWidth"];const Mbt=ql({prop:"minWidth",transform:$p}),_bt=ql({prop:"height",transform:$p}),zbt=ql({prop:"maxHeight",transform:$p}),Obt=ql({prop:"minHeight",transform:$p});ql({prop:"size",cssProperty:"width",transform:$p}),ql({prop:"size",cssProperty:"height",transform:$p});FR(Bbt,Lle,Mbt,_bt,zbt,Obt,ql({prop:"boxSizing"}));const RR={border:{themeKey:"borders",transform:Ph},borderTop:{themeKey:"borders",transform:Ph},borderRight:{themeKey:"borders",transform:Ph},borderBottom:{themeKey:"borders",transform:Ph},borderLeft:{themeKey:"borders",transform:Ph},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ph},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qM},color:{themeKey:"palette",transform:vv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vv},backgroundColor:{themeKey:"palette",transform:vv},p:{style:jl},pt:{style:jl},pr:{style:jl},pb:{style:jl},pl:{style:jl},px:{style:jl},py:{style:jl},padding:{style:jl},paddingTop:{style:jl},paddingRight:{style:jl},paddingBottom:{style:jl},paddingLeft:{style:jl},paddingX:{style:jl},paddingY:{style:jl},paddingInline:{style:jl},paddingInlineStart:{style:jl},paddingInlineEnd:{style:jl},paddingBlock:{style:jl},paddingBlockStart:{style:jl},paddingBlockEnd:{style:jl},m:{style:Al},mt:{style:Al},mr:{style:Al},mb:{style:Al},ml:{style:Al},mx:{style:Al},my:{style:Al},margin:{style:Al},marginTop:{style:Al},marginRight:{style:Al},marginBottom:{style:Al},marginLeft:{style:Al},marginX:{style:Al},marginY:{style:Al},marginInline:{style:Al},marginInlineStart:{style:Al},marginInlineEnd:{style:Al},marginBlock:{style:Al},marginBlockStart:{style:Al},marginBlockEnd:{style:Al},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:cz},rowGap:{style:uz},columnGap:{style:dz},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$p},maxWidth:{style:Lle},minWidth:{transform:$p},height:{transform:$p},maxHeight:{transform:$p},minHeight:{transform:$p},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"}},hy=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 g=OR(i,u)||{};return h?h(s):h4(s,o,f=>{let x=sz(g,p,f);return f===x&&typeof f=="string"&&(x=sz(g,p,`${n}${f==="default"?"":yi(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??RR;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),g=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=Nj(f,e(x,y,a,c));else{const b=h4({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce((k,$)=>k.concat(Object.keys($)),[]),v=new Set(C);return w.every(k=>v.size===Object.keys(k).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=Nj(f,b)}else f=Nj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":bhe(a,Che(g,f))}:bhe(a,Che(g,f))}return Array.isArray(i)?i.map(d):d(i)}}();function Fbt(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 Tle(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Fd({breakpoints:gbt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:RKe(a),shape:{...fbt,...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 g={},f=x=>(h(g,x),g);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=Fbt,d=n.reduce((u,p)=>Fd(u,p),d),d.unstable_sxConfig={...RR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return hy({sx:u,theme:this})},d}function gne(e=null){const n=m.useContext(yKe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}hy.filterProps=["sx"];const Rbt=Tle();function NKe(e=Rbt){return gne(e)}function She(e){const n=A7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function VKe({styles:e,themeId:n,defaultTheme:o={}}){const i=NKe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>She(typeof c=="function"?c(a):c)):She(s)),t.jsx(BKe,{styles:s})}const khe=e=>e,Nbt=(()=>{let e=khe;return{configure(n){e=n},generate:n=>e(n),reset(){e=khe}}})();function HKe(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=HKe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function bi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=HKe(e))&&(i&&(i+=" "),i+=n);return i}const Vbt={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 Nr(e,n,o="Mui"){const i=Vbt[n];return i?`${o}-${i}`:`${Nbt.generate(e)}-${n}`}function yr(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Nr(e,a,o)}),i}function UKe(e){const{variants:n,...o}=e,i={variants:n,style:A7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=A7(a.style))}),i}const Hbt=Tle();function mW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ux(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Ubt(e){return e?(n,o)=>o[e]:null}function KM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>KM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?ux(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?ux(A7(c),o):c}return WKe(e,i.variants,[a],o)}return i?.isProcessed?o?ux(A7(i.style),o):i.style:o?ux(A7(i),o):i}function WKe(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?ux(A7(c.style(a)),i):c.style(a))):o.push(i?ux(A7(c.style),i):c.style)}return o}function Wbt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function fne(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]=fne(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=bi(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 t0=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Dle(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 V7(e){if(e.type)return e;if(e.charAt(0)==="#")return V7(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(p4(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(p4(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const cj=(e,n)=>{try{return(o=>{const i=V7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function NR(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 QKe(e){e=V7(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])),NR({type:d,values:u})}function xne(e){let n=(e=V7(e)).type==="hsl"||e.type==="hsla"?V7(QKe(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 pz(e,n){return e=V7(e),n=Dle(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,NR(e)}function k9(e,n,o){try{return pz(e,n)}catch{return e}}function VR(e,n){if(e=V7(e),n=Dle(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 NR(e)}function Jr(e,n,o){try{return VR(e,n)}catch{return e}}function HR(e,n){if(e=V7(e),n=Dle(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 NR(e)}function Xr(e,n,o){try{return HR(e,n)}catch{return e}}function qL(e,n,o){try{return function(i,a=.15){return xne(i)>.5?VR(i,a):HR(i,a)}(e,n)}catch{return e}}const GKe=m.createContext(null);function Ple(){return m.useContext(GKe)}const Qbt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Gbt(e){const{children:n,theme:o}=e,i=Ple(),a=m.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[Qbt]=i!==null),s},[o,i]);return t.jsx(GKe.Provider,{value:a,children:n})}const YKe=m.createContext();function Ybt({value:e,...n}){return t.jsx(YKe.Provider,{value:e??!0,...n})}const UR=()=>m.useContext(YKe)??!1,qKe=m.createContext(void 0);function qbt({value:e,children:n}){return t.jsx(qKe.Provider,{value:e,children:n})}function Kbt({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?fne(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:fne(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:m.useContext(qKe)}})}let $he=0;const Ahe={...u9t}.useId;function WR(e){if(Ahe!==void 0){const n=Ahe();return e??n}return function(n){const[o,i]=m.useState(n),a=n||o;return m.useEffect(()=>{o==null&&($he+=1,i(`mui-${$he}`))},[o]),a}(e)}const jhe={};function Ehe(e,n,o,i=!1){return m.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 KKe(e){const{children:n,theme:o,themeId:i}=e,a=gne(jhe),s=Ple()||jhe,c=Ehe(i,a,o),d=Ehe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const g=gne(),f=WR()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&g===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",t0(()=>{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(VKe,{styles:y}):null}(c);return t.jsx(Gbt,{theme:d,children:t.jsx(yKe.Provider,{value:c,children:t.jsx(Ybt,{value:u,children:t.jsxs(qbt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Ihe={theme:void 0},yne="mode",bne="color-scheme",Zbt="data-color-scheme";function Jbt(){}const Xbt=({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 Jbt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function gW(){}function Lhe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function The(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 ewt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=yne,colorSchemeStorageKey:c=bne,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=Xbt,noSsr:p=!1}=e,h=a.join(","),g=a.length>1,f=m.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=m.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=m.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=m.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,_=y?.get(i)||i;return{mode:L,systemMode:Lhe(L),lightColorScheme:I,darkColorScheme:_}}),[C,v]=m.useState(p||!g);m.useEffect(()=>{v(!0)},[]);const k=function(L){return The(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),$=m.useCallback(L=>{w(I=>{if(L===I.mode)return I;const _=L??n;return f?.set(_),{...I,mode:_,systemMode:Lhe(_)}})},[f,n]),j=m.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const _={...I};return The(I,z=>{z==="light"&&(x?.set(L),_.lightColorScheme=L),z==="dark"&&(y?.set(L),_.darkColorScheme=L)}),_}):w(I=>{const _={...I},z=L.light===null?o:L.light,B=L.dark===null?i:L.dark;return z&&(h.includes(z)?(_.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),B&&(h.includes(B)?(_.darkColorScheme=B,y?.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),_}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=m.useCallback(L=>{b.mode==="system"&&w(I=>{const _=L?.matches?"dark":"light";return I.systemMode===_?I:{...I,systemMode:_}})},[b.mode]),E=m.useRef(A);return E.current=A,m.useEffect(()=>{if(typeof window.matchMedia!="function"||!g)return;const L=(..._)=>E.current(..._),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[g]),m.useEffect(()=>{if(g){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&$(z||n)})||gW,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||gW,_=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||gW;return()=>{L(),I(),_()}}},[j,$,h,n,d,g,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?k:void 0,setMode:$,setColorScheme:j}}function twt(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 Dhe=(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 fW(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(g,f=[],x=[]){Object.entries(g).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("-")}`,g=((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]:g}),Dhe(s,d,`var(${h})`,p),Dhe(c,d,`var(${h}, ${g})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function Vr(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 xW(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const IE={black:"#000",white:"#fff"},nwt={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"},owt="#f3e5f5",iwt="#ce93d8",rwt="#ba68c8",awt="#ab47bc",lwt="#9c27b0",swt="#7b1fa2",cwt="#e57373",dwt="#ef5350",uwt="#f44336",Phe="#d32f2f",pwt="#c62828",hwt="#ffb74d",mwt="#ffa726",gwt="#ff9800",fwt="#f57c00",xwt="#e65100",ywt="#e3f2fd",bwt="#90caf9",Bhe="#42a5f5",wwt="#1976d2",Cwt="#1565c0",vwt="#4fc3f7",Swt="#29b6f6",kwt="#03a9f4",Mhe="#0288d1",$wt="#01579b",Awt="#81c784",jwt="#66bb6a",Ewt="#4caf50",Iwt="#388e3c",Lwt="#2e7d32",Twt="#1b5e20";function ZKe(){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:IE.white,default:IE.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 JKe=ZKe();function XKe(){return{text:{primary:IE.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:IE.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 wne=XKe();function _he(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=HR(e.main,a):n==="dark"&&(e.dark=VR(e.main,s)))}function zhe(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 Ble(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:bwt,light:ywt,dark:Bhe}:{main:wwt,light:Bhe,dark:Cwt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:iwt,light:owt,dark:awt}:{main:lwt,light:rwt,dark:swt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:uwt,light:cwt,dark:Phe}:{main:Phe,light:dwt,dark:pwt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:Swt,light:vwt,dark:Mhe}:{main:Mhe,light:kwt,dark:$wt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:jwt,light:Awt,dark:Iwt}:{main:Lwt,light:Ewt,dark:Twt}}(n),g=e.warning||function(b="light"){return b==="dark"?{main:mwt,light:hwt,dark:fwt}:{main:"#ed6c02",light:gwt,dark:xwt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const k=xne(C),$=xne(v);return(Math.max(k,$)+.05)/(Math.min(k,$)+.05)}(b,wne.text.primary)>=o?wne.text.primary:JKe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:k=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(p4(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(p4(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(zhe(a,b,"light",v,i),zhe(a,b,"dark",k,i)):(_he(b,"light",v,i),_he(b,"dark",k,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=ZKe():n==="dark"&&(y=XKe()),Fd({common:{...IE},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:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:nwt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Dwt(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 Pwt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function Bwt(e){return Math.round(1e5*e)/1e5}const Ohe={textTransform:"uppercase"},Fhe='"Roboto", "Helvetica", "Arial", sans-serif';function eZe(e,n){const{fontFamily:o=Fhe,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...g}=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===Fhe?{letterSpacing:`${Bwt(k/C)}em`}:{},...$,...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,Ohe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Ohe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fd({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function Xa(...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 Mwt=["none",Xa(0,2,1,-1,0,1,1,0,0,1,3,0),Xa(0,3,1,-2,0,2,2,0,0,1,5,0),Xa(0,3,3,-2,0,3,4,0,0,1,8,0),Xa(0,2,4,-1,0,4,5,0,0,1,10,0),Xa(0,3,5,-1,0,5,8,0,0,1,14,0),Xa(0,3,5,-1,0,6,10,0,0,1,18,0),Xa(0,4,5,-2,0,7,10,1,0,2,16,1),Xa(0,5,5,-3,0,8,10,1,0,3,14,2),Xa(0,5,6,-3,0,9,12,1,0,3,16,2),Xa(0,6,6,-3,0,10,14,1,0,4,18,3),Xa(0,6,7,-4,0,11,15,1,0,4,20,3),Xa(0,7,8,-4,0,12,17,2,0,5,22,4),Xa(0,7,8,-4,0,13,19,2,0,5,24,4),Xa(0,7,9,-4,0,14,21,2,0,5,26,4),Xa(0,8,9,-5,0,15,22,2,0,6,28,5),Xa(0,8,10,-5,0,16,24,2,0,6,30,5),Xa(0,8,11,-5,0,17,26,2,0,6,32,5),Xa(0,9,11,-5,0,18,28,2,0,7,34,6),Xa(0,9,12,-6,0,19,29,2,0,7,36,6),Xa(0,10,13,-6,0,20,31,3,0,8,38,7),Xa(0,10,13,-6,0,21,33,3,0,8,40,7),Xa(0,10,14,-6,0,22,35,3,0,8,42,7),Xa(0,11,14,-7,0,23,36,3,0,9,44,8),Xa(0,11,15,-7,0,24,38,3,0,9,46,8)],_wt={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)"},tZe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rhe(e){return`${Math.round(e)}ms`}function zwt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Owt(e){const n={..._wt,...e.easing},o={...tZe,...e.duration};return{getAutoHeightDuration:zwt,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:Rhe(s)} ${c} ${typeof d=="string"?d:Rhe(d)}`).join(",")},...e,easing:n,duration:o}}const Fwt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Rwt(e){return Pf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function nZe(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];!Rwt(d)||c.startsWith("unstable_")?delete i[c]:Pf(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
 
@@ -73724,7 +73724,7 @@ ${va.beneficiaryAddress} ${ne}`,d(fe),I(!0)})(o),"data-testid":K("title-text-cop
73724
73724
  padding: ${r.sp3} ${r.sp0};
73725
73725
  `,YYe=l(_t)`
73726
73726
  min-width: 140px;
73727
- `,tle=m.createContext(void 0);function nW(){const e=m.useContext(tle);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const ope=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],ipe=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],x6t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],y6t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],b6t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],w6t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],C6t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],v6t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],S6t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function k6t(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 $6t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],A6t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],j6t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Q6r=[...x6t,...ope,...ipe,"/: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",...$6t,...A6t,...j6t,...y6t,...b6t,...w6t,...C6t,...v6t,...S6t];function rpe(){const{pathname:e}=e0(),n=e??"";return Q6r.some(o=>ale(o,n)!=null)||k6t(e)}function pc(e){const{pathname:n}=e0(),o=n??"";return e.some(i=>ale(i,o)!=null)}const SE=vqe(Ryt()),G6r=["sandbox","production"],Y6r=["development","staging","production"],Jv=()=>yc==="DEV"||yc==="QA"||yc==="PUNE"||yc==="SUNNYVALE"||yc==="DELHI"||yc==="MOHALI",ape="https://zeni-webapp-dev.uc.r.appspot.com",yc=k4("DEV",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),ewr=(e=>k4(e,G6r))((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)),qYe=(e=>k4(e,Y6r))((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)),lpe=yc==="DEV"||yc==="QA"?.2:.8,E6t=lpe,ka={sentryDsn:"",sentryTraceSamplingRate:lpe,sentryProfileSamplingRate:E6t,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let RS,kI;function q6r(e){ka.sentryDsn=e.keys.SENTRY_DSN,ka.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):lpe,ka.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):E6t,ka.googleClientId=e.keys.GOOGLE_CLIENT_ID,ka.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ka.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ka.mixpanelToken=e.keys.MIXPANEL_TOKEN,ka.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ka.pusherCluster=e.keys.PUSHER_CLUSTER,ka.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ka.appUrl=e.keys.WEB_ENDPOINT,ka.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ka.cardVaultId=e.keys.UNIT_VAULT_ID,ka.stripeKey=e.keys.STRIPE_KEY,ka.qboRedirectionUrl=e.keys.QBO_URL,ka.mixpanelUrl=e.keys.MIXPANEL_URL,ka.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,kI=e.externalEndPoints,RS=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)}}(RS,kI)}let KYe=!1;function QC(){KYe||(vh.init("63d3a2406505a5737a2b4debdb513f20",{api_host:kI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),KYe=!0)}const K6r=new Set(Array.from(ao.EVENTS_WITHOUT_SUPER_PROPERTIES));let ZYe=!1,JYe=!1;function nle(){if(ZYe)return;ZYe=!0,QC();const e=ao.extractUtmParamsFromUrl();Object.keys(e).length>0&&vh.register(e),Jv()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Z6r=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function J6r(){const e=function(){return vh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||Z6r.has(o));for(const o of n)vh.unregister(o);Jv()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function XYe(){JYe||(JYe=!0,J6r())}class yv{identify(n,o){if(QC(),this.#t=n,n!=null&&o!=null&&(yv.#e==null||!kxt({userId:n,traits:o},yv.#e))){const{$email:i,...a}={...o};vh.identify(n),i&&i!=null&&vh.people.set_once({$email:i}),vh.people.set(a),yv.#e={userId:n,traits:o},Jv()&&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){QC();const i=K6r.has(n);if(this.#t!=null||i){if(nle(),this.#t!=null){const a={distinct_id:this.#t,...o};vh.track(n,a)}else vh.track(n,o);if(XYe(),Jv()){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){QC(),nle(),vh.track(n,o),XYe(),Jv()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){QC(),vh.alias(n,o)}reset(){QC(),vh.identify(void 0),this.#t=void 0,yv.#e=void 0}static#e;#t}const ole=new yv,I6t=new ao.Analytics(ole);I6t.trackWithoutUserId=ole.trackWithoutUserId.bind(ole);const _d=I6t,L6t=m.createContext(null),spe={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function X6r({children:e}){const[n,o]=m.useState(()=>new Set([])),i=n.size>0,a=m.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=m.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:m.useCallback(()=>{o(new Set)},[])};return Tt.jsx(L6t.Provider,{value:c,children:e})}function oW(){const e=m.useContext(L6t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const T6t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",wR="zeni-ai-cfo-upload-promo-storage-changed",Si=new class{_isZeniUserCache;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}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}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:nn(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{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(i))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const o=JSON.parse(n);return o!==null&&typeof o=="object"&&o[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(wR)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const o=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let i={};if(o!=null)try{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(i)),window.dispatchEvent(new CustomEvent(wR))}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:nn(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 SE.AES.encrypt(e,n).toString()}decrypt(e,n){return SE.AES.decrypt(e,n).toString(SE.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";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=T6t;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_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]};function e9r(e){return fi(n=>function(o,i){if(i==null||i==="")return;const a=$xt(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const D6t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],P6t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],t9r=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],n9r=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],o9r=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],i9r=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],r9r=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],B6t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],M6t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],a9r=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function cpe(e){const n=$u(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":a9r.includes(i)?i:null}const l9r=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),s9r=new Set(["setup","verification","promo","approval-rules"]);function $u(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function dpe(e){const n=$u(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 _6t(e,n,o){const i=$u(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function z6t(e,n,o){return _6t(e,n,i=>!o.has(i))}function O6t(e){return z6t(e,"bills",l9r)}function F6t(e){return z6t(e,"reimbursements",s9r)}function R6t(e){return _6t(e,"tasks",n=>n==="group")}const c9r=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),d9r=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function upe(e){const n=$u(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return c9r.has(o)?"checking":"checking_details"}function ppe(e){const n=$u(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return d9r.has(o)?"cards":"cards_detail"}function N6t(e){const n=$u(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function V6t(e){return $u(e)[1]==="performance"?"performance":void 0}function H6t(e){const n=$u(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function U6t(e){const n=$u(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function W0(e,n){return n.some(o=>ale(o,e)!=null)}function u9r(e){return W0(e,ope)?"reports":W0(e,D6t)?"ap_aging":W0(e,P6t)?"ar_aging":dpe(e)!=null?"vendors_tab":W0(e,ipe)?"forecast":cpe(e)!=null?"month_end_close_review":W0(e,B6t)?"cash_balance":W0(e,M6t)?"card_balance":R6t(e)?"task_checklist":N6t(e)!=null?"transaction_detail":V6t(e)!=null?"performance":H6t(e)!=null?"bills_detail":U6t(e)!=null?"reimbursement_detail":O6t(e)?"bills_list":F6t(e)?"reimbursement_list":W0(e,t9r)?"cash_in_cash_out":W0(e,n9r)?"operating_expenses":W0(e,o9r)?"revenue":W0(e,i9r)?"net_burn_or_income":W0(e,r9r)?"cash_position":function(n){const o=$u(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":upe(e)!=null?"checking":function(n){return $u(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":ppe(e)!=null?"cards":function(n){return $u(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return $u(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return $u(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function W6t(e,n){switch(u9r(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 dpe(e);case"forecast":return"forecast";case"month_end_close_review":{const o=cpe(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"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return upe(e);case"treasury":return"treasury";case"cards":return ppe(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function p9r(){const{pathname:e}=e0(),n=e??"",o=fi(i=>i.financeStatementState?.selectedReportId);return m.useMemo(()=>W6t(n,{selectedReportId:o}),[n,o])}function h9r({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=m.useCallback(()=>e===!0&&n!=null&&!Si.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=m.useState(o);return m.useEffect(()=>{a(o())},[o]),m.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(wR,s);const c=d=>{d.key===T6t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(wR,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:m.useCallback(()=>{n!=null&&Si.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const Q6t=m.createContext(void 0),hpe=()=>m.useContext(Q6t),m9r=e=>{const n=Si.isSignedIn(),o=Si.getSignedInUser(),[i,a]=m.useState(void 0),s=m.useMemo(()=>i,[i]),c=fi(p=>Vu(p)),d=c.companyId,u=c.userRoleId;return m.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 g=o.userId,f=c.tenantId,x=o.zeniSessionId,y=async()=>{if(h)return;let w;try{w=await jxt(ka.pusherClientSecret,{cluster:ka.pusherCluster},{userId:g,tenantId:f,sessionId:x},!0)}catch(C){return void console.warn("Failed to initialize Pusher",C)}h?w?.disconnect():(a(w),w!=null&&(d!=null&&kE(w,d),g!=null&&kE(w,g),u!=null&&kE(w,u)))},b=()=>{const w=EI();return w.tenantId===f&&w.userId===g&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),cKe(g,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(g=>i?.unsubscribe(g.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Tt.jsx(Q6t.Provider,{value:s,children:e.children})};function kE(e,n){const o=`private-encrypted-${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 mpe=e=>n=>{const o=hpe(),i=m.useRef(n.eventCallback),a=m.useRef({});m.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=m.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return m.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),g=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(g?.subscribed===!0)x=g,x.bind(h,f),d.push(()=>{g.unbind(h,f)});else{x=g??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]),Tt.jsx(e,{...n})},Uf=(e,n)=>{const o=[...e??[]];return o.push(n),o},twr=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},nwr=({state:e})=>Si.isSignedIn()===!0?Tt.jsx(T9t,{}):Tt.jsx(Aqe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),g9r=({children:e})=>{const n=dne("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});m.useEffect(()=>{const d=Si.getTheme()==null?n:Si.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?hz({palette:{mode:"dark"},...Y$e},q$e,JNn,eVn):hz({palette:{mode:"light"},...Y$e},q$e,ZNn,XNn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Tt.jsx(tkn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;Si.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},G6t=m.createContext(!1),f9r=G6t.Provider;function x9r(){return m.useContext(G6t)}const y9r=()=>fi(e=>Vu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=L9t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function Y6t(){const{useFeatureGate:e}=os(),{isFeatureEnabled:n}=e(qi.isAiCfoEnabled),o=fi(a=>Vu(a)),i=Si.getSignedInUser();if(i==null||i.userId==null||o==null||o.companyId==null)return!1;if(!S4(i)){const a=o.userRole??[];return jqe(a)&&n}return n}const ile=e=>Afn.includes(e),oz=e=>lct.includes(e),eqe=e=>ile(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":GO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:oz(e)?`ai-cfo/${e}`:e,b9r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],tqe=(e,n)=>e.includes(n),rle=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(tqe(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&&GO(a)?act(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of lct)if(tqe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function nqe(e){let n=rle(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=rle(o[i])}return n??"home"}function w9r(e){return e.pathname.includes("settings")}function C9r(e){return e.pathname.includes("ai-cfo")}const v9r=()=>{const e=S9r();return lj("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},S9r=()=>e0().state?.message==="expenseAutomation";function k9r(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const $9r=(e,n,o)=>{const i=dKe(e),a=Ext(e),s=uKe(o,e);return n||o||a||i||s},SC="AppDrawer",x2={root:`${SC}-root`,drawer:`${SC}-drawer`,appBar:`${SC}-appBar`,menuButton:`${SC}-menuButton`,appBarZenilogo:`${SC}-appBarZenilogo`,drawerZenilogo:`${SC}-drawerZenilogo`},$I=210,A9r=Bn("div",{slot:"Root"})(({theme:e})=>({[`&.${x2.root}`]:{display:"flex"},[`& .${x2.drawer}`]:{[e.breakpoints.up("md")]:{width:$I,flexShrink:0,backgroundColor:e.colors.background}},[`& .${x2.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${x2.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${x2.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${x2.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),j9r=mpe(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=nW(),[i,a]=T.useState(!1),[s,c]=m.useState(!1),d=e0(),u=vR(),p=EI(),h=tde(),g=i3(),[f,x]=m.useState(!1),y=Te(),{useFeatureGate:b}=os(),{isFeatureEnabled:w}=b(qi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(qi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(qi.isExpenseAutomationEnabledV2),[k,$]=m.useState(()=>Si.getSignedInUser());m.useEffect(()=>{const Ut=()=>{const cn=Si.getSignedInUser();$(cn)};return window.addEventListener("completeProfileDone",Ut),()=>{window.removeEventListener("completeProfileDone",Ut)}},[]);const j=fi(Ut=>Vu(Ut)),A=rpe(),E=j.masterTOSInfo?.isMasterTOSAccepted??!1,{setLoading:L}=oW(),I=Y6t(),_=S4(k),z=v||C&&_,B=x9r(),[R,N]=m.useState(void 0),{isFeatureEnabled:O}=b(qi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:F}=b(qi.isChargeCardFeatureEnabled),P=$9r(j,F,w),{isFeatureEnabled:H}=b(qi.isSettingsFeatureEnabled),{isFeatureEnabled:V}=b(qi.isReferralFeatureEnabled),{isFeatureEnabled:Q}=b(qi.isTreasuryEnabled),{isFeatureEnabled:U}=b(qi.isTaskManagerCustomerUserAccessEnabled),G=_||!_&&U,q=fi(Ut=>Lxt(Ut));m.useEffect(()=>{const Ut=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Ut),()=>{window.removeEventListener("scroll",Ut)}},[]);const Y=fi(Ut=>Txt(Ut)),ne=fi(Ut=>Ut.expenseAutomationViewState.selectedPeriodByTenantId),oe=fi(Ut=>Dxt(Ut)),{monthEndCloseChecksView:ee}=oe,te=lj("/signout")!==null,ie=lj("/:tenantEmailDomain/dashboard")!==null,re=lj("/:tenantEmailDomain/reports")!==null,le=lj("/:tenantEmailDomain/onboarding/*")!==null,fe=v9r();m.useEffect(()=>{B&&V&&!le&&Y.fetchState==="Not-Started"&&g(Pxt(!0))},[B,V,Y.fetchState,le]),m.useEffect(()=>{if(fe){const Ut=d.state?.origin;if(Ut!=null){const cn=Bxt(Ut);g(Upe(cn))}}},[fe,d.state]);const se=te||le,de=fi(Ut=>Ut.tenantState),he=fi(Ut=>de.fetchState==="Completed"?hKe(Ut):[]),{isFeatureEnabled:pe}=b(qi.isApAgingFeatureEnabled),{isFeatureEnabled:ce}=b(qi.isArAgingFeatureEnabled),{isFeatureEnabled:xe}=b(qi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ge}=b(qi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:we}=b(qi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:ye}=b(qi.isDashboardSidebarNewYearAnimationEnabled),ve=fi(Ut=>Bb(Ut).totalUnreadCount),Ae=fi(Ut=>Bb(Ut).notificationDetailsByTab.tasks.uiState.unreadCount),Ee=fi(Ut=>Bb(Ut).notificationDetailsByTab.comments.uiState.unreadCount),Le=fi(Ut=>Bb(Ut).reducedFetchCountState),Ie=fi(Ut=>Bb(Ut).notificationDetailsByTab.tasks.fetchCountState),Oe=fi(Ut=>DR(Ut)),[We,je]=m.useState(void 0),Ce=Oe.uiState.currentChatSessionId,ke=We!=null?Oe.deleteChatSessionStateByChatSessionId[We]?.fetchState:void 0,ze=jt(ke),{inboxNotifications:Ve,isLoading:Qe,isFetchingMore:Ct,hasFetchedAll:mt,fetchMore:Ke}=y9r(),xt=fi(Ut=>Bb(Ut).notificationDetailsByTab.comments.fetchCountState);m.useEffect(()=>{const Ut=setTimeout(()=>Ke?.(),0);return()=>clearTimeout(Ut)}),m.useEffect(()=>{if(We!=null)return ze==="In-Progress"&&ke==="Completed"?(g(Wpe({chatSessionId:We})),je(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(ke==="Error"&&(g(Wpe({chatSessionId:We})),je(void 0)))},[g,d.state,u,ke,We,ze,e]),m.useEffect(()=>{if(Qe===!1&&Ct===!1&&mt===!0&&j?.companyId!=null&&Ve!=null){const Ut=`dashboard_${j.companyId}`;N(Ve.filter(cn=>cn.roomId===Ut&&cn.readAt==null).length)}},[Qe,Ct,mt,j?.companyId,Ve]),m.useEffect(()=>{B&&_&&!le&&Ie.fetchState==="Not-Started"&&p.tenantId!=null&&g(Mxt("task_manager","dashboard"))},[B,p.tenantId]),m.useEffect(()=>{le||xt.fetchState!=="Not-Started"||g(Qpe({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),m.useEffect(()=>{if(R!=null){const{fetchState:Ut}=xt;Ut!=="In-Progress"&&Ut!=="Completed"||(Ut==="In-Progress"&&g(Qpe({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),g(pKe({unreadCount:R},"comments")))}},[R,xt.fetchState]);const ft={fetchStatus:Le,count:ve},lt=[];pe===!1&&lt.push("accounts_payable_aging"),ce===!1&&lt.push("accounts_receivable_aging"),O===!1&&lt.push("zeni_accounts_promo_card"),V===!1&&lt.push("rewards_card"),z===!1&&lt.push("expense_automation_card");const He=hn(),Mt=fi(Ut=>_xt(Ut,lt,k,v,C,Q).fetchState),At=fi(Ut=>zxt(Ut).fetchState),Yt=e!=null?Si.getSignedInUserTenant(e):null,Nt=fi(Ut=>Yt?.tenantId!=null?mKe(Ut,Yt.tenantId):void 0),Xe=ie&&(Mt==="Completed"||Mt==="Error")||re&&(At==="Completed"||At==="Error")||!ie&&!re?void 0:"disabled",rn=m.useMemo(()=>gKe(j.userRole),[j.userRole]),an=zqe(rn),Vt=Ut=>{a(Ut)},Qt=j.company!=null&&Oxt(j.company),ln=Q&&Qt,It=Oqe(He?.loggedInUserRoleMap),qt=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,gn=fi(Ut=>Ut.treasurySetupViewState.treasuryFundsDetails),pn=m.useCallback(()=>ln&&It&&gn?.fetchStatus.fetchState==="Completed"&&!Si.getTreasuryPopupSeen(e??"")&&j.isTreasuryVideoViewed!==!0&&qt===!1&&rle(d.pathname)!=="treasury",[ln,It,qt,d.pathname,e,gn?.fetchStatus,j.isTreasuryVideoViewed]),[Ot,Rn]=m.useState(pn);m.useEffect(()=>{B&&ln&&gn?.fetchStatus.fetchState==="Not-Started"&&g(Fxt())},[B,ln,gn?.fetchStatus.fetchState]),m.useEffect(()=>{Rn(pn())},[pn]);const lo=k9r(gn.fundsDetails),zn=j?.rewardsLastViewedTime==null,Uo=k?.userEmail!=null&&q.fetchState==="Completed"&&Rxt(q.notificationSettings,k.userEmail,w,j),Wo=m.useCallback(Ut=>{const cn=d.state?.referrer;if(ee.monthEndCloseChecks?.auditSummary!=null&&_d.trackMonthCloseAuditPage(Ut.month,Ut.year,ee.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",ee.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,cn??null),g(Nxt(j.tenantId,Ut)),ne[j.tenantId]!=null){const $n=Uf(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${oe.currentSelectedView}/${Ut.month}-${Ut.year}`,{state:{pathnameStackToGoBack:$n,referrer:oe.currentSelectedView}})}g(Upe(oe.currentSelectedView)),oe.reconciliation.selectedAccountId!=null&&g(Vxt({selectedAccountId:void 0}))},[oe.reconciliation.selectedAccountId,oe.currentSelectedView,j.tenantId,ee.monthEndCloseChecks?.auditSummary,ee.monthEndCloseChecks?.reportEmailSentDate,ne,e,d.state,d.pathname]),po=m.useMemo(()=>({zIndex:s||Ot?12:S[2]}),[s,Ot]),En=I&&C9r(d),mo=Tt.jsx(Ieo,{signedInUser:k,currentTenantId:de.currentTenantId??"",tenants:de.fetchState==="Completed"?he:Nt!=null?[Nt]:[],rewardsConfiguration:{isRewardsTabVisible:V,isRewardsAnimated:zn,rewardsPlan:Y.rewardsPlan},selectedMenu:n===!0?act("ai_cfo"):nqe(d),isTenantDropdownDisabled:Xe,isSettings:w9r(d),isSettingsFeatureEnabled:H,currentTenant:j,isVendorsTabVisible:an,isZeniAccountEnabled:O,isChargeCardEnabled:P,isTreasuryEnabled:ln,isTreasuryPopupVisible:Ot,treasuryYieldPercentage:lo,isNotificationsTabVisible:Uo,notificationCountDetails:ft,isExpenseAutomationEnabledForUser:z&&Va(j.userRole)===!1,isAiCfoAccessEnabled:I,onNotificationIconClick:()=>{Vt(!1);const Ut=_?Ae===0&&Ee>0?"notifications/comments":"notifications/tasks":"notifications/comments",cn=Uf(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Ut}`,{state:{pathnameStackToGoBack:cn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Ut=>{L(spe.TENANT_SWITCHING),Vt(!1);const cn=Ut.tenantEmailDomain,$n=nqe(d),sn=$n;let In="";const go=GO(sn);$n==="home"?In+="dashboard":$n==="users_and_roles"?In+="people":ile($n)?In+="settings/my_profile":oz($n)?In+=`ai-cfo/${$n}`:In+=sn==="task_checklist"?"tasks":go?"month_end_close_checks/review":encodeURIComponent($n);const Hn=`/${encodeURIComponent(cn)}/${In}`;u(Hn,{replace:!0}),k!=null&&(g(vle(Ut.tenantId)),g(fKe(k.userId,Ut.tenantId,k.zeniSessionId)));const wo=Ut;_d.trackCompanySwitch(wo.companyId,wo.companyName,wo.userRole)},handleMenuChange:(Ut,cn)=>{if(k!=null&&_d.trackSidePanelClicked(Ut.type,Ut.group),Vt(!1),e==null)return;if(n&&(Hn=>{if(ile(Hn)||oz(Hn))return!0;const wo=eqe(Hn).split("/")[0];return!b9r.includes(wo)})(Ut.type)&&o(!1),Ut.type==="ai_cfo"){_d.trackAICFOChatScreenStateChanged("viewed","left_menu",Ce??null,null);const Hn=Uf(d.state?.pathnameStackToGoBack,d.pathname);return E?void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Hn,referrer:"Sidebar"}}):void(A?o(!0):u(`/${e}/dashboard`,{state:{pathnameStackToGoBack:Hn,referrer:"Sidebar",message:"open_ai_cfo_drawer"}}))}const $n=Uf(d.state?.pathnameStackToGoBack,d.pathname),sn=Ut.type,In=GO(sn)&&sn!=="command_center";if(sn!=="command_center"&&!In||ne[j.tenantId]==null||_d.trackMonthEndCloseClicked(ne[j.tenantId].month,ne[j.tenantId].year,"Sidebar"),In&&ne[j.tenantId]!=null){const Hn=ne[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Ut.type}/${Hn.month}-${Hn.year}`,{state:{pathnameStackToGoBack:$n,message:cn,referrer:"Sidebar"}})}const go=eqe(Ut.type);oz(Ut.type)?(Ce!=null&&g(rz()),u(`/${e}/ai-cfo/${Ut.type}`,{state:{pathnameStackToGoBack:$n.slice(0,-1),message:cn,referrer:"Sidebar"}})):u(`../${e}/${go}`,{state:{pathnameStackToGoBack:$n,message:cn,referrer:"Sidebar"}})},onDeleteChatSession:Ut=>{g(Hxt(Ut)),Ce===Ut&&je(Ut)},handleLogOutClick:()=>{Vt(!1);const Ut=Uf(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Ut,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{Si.saveTreasuryPopupSeen(e??"",!0),Rn(!1)},monthEndCloseChecksView:ee,onPeriodChange:Wo,onCalendarOpen:c,aiCfoView:Oe,isAiCfo:En,isOnDashboard:ie,isTaskManagerAccessEnabled:G,updateCurrentChatSessionId:Ut=>{g(Cle({sessionId:Ut,agentId:"controller"})),u(`../${e}/ai-cfo/${Ut}`,{state:{...d.state}})},halloweenAnimationEnabled:xe,thanksGivingAnimationEnabled:ge,christmasAnimationEnabled:we,newYearAnimationEnabled:ye}),bo=Tt.jsx(wyt,{position:"fixed",className:x2.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Tt.jsxs(Cyt,{style:{minHeight:nct},children:[Tt.jsx(vyt,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>Vt(!0),className:x2.menuButton,size:"large",children:Tt.jsx(E9r,{})}),Tt.jsx(I9r,{className:x2.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),ti=dne(Ut=>Ut.breakpoints.up("md")),io=dne(Ut=>Ut.breakpoints.down("md"));return e==null?null:Tt.jsxs(A9r,{className:x2.root,children:[Tt.jsx(Syt,{}),se===!1?Tt.jsxs(Tt.Fragment,{children:[ti||!ie?null:bo,Tt.jsxs("nav",{className:x2.drawer,children:[ti?null:Tt.jsx(az,{container:window.document.body,variant:"temporary",open:i,onClose:()=>Vt(!1),PaperProps:{sx:{width:$I,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:mo}),io?null:Tt.jsx(az,{PaperProps:{sx:{width:$I,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...po}},variant:"permanent",open:!0,children:mo})]})]}):null]})});function oqe(e){return e?.data.unread!=null&&e?.mode!=null}const E9r=Bn(e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},m.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"})))`
73727
+ `,tle=m.createContext(void 0);function nW(){const e=m.useContext(tle);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const ope=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],ipe=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],x6t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],y6t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],b6t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],w6t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],C6t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],v6t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],S6t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function k6t(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 $6t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],A6t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],j6t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],Q6r=[...x6t,...ope,...ipe,"/: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",...$6t,...A6t,...j6t,...y6t,...b6t,...w6t,...C6t,...v6t,...S6t];function rpe(){const{pathname:e}=e0(),n=e??"";return Q6r.some(o=>ale(o,n)!=null)||k6t(e)}function pc(e){const{pathname:n}=e0(),o=n??"";return e.some(i=>ale(i,o)!=null)}const SE=vqe(Ryt()),G6r=["sandbox","production"],Y6r=["development","staging","production"],Jv=()=>yc==="DEV"||yc==="QA"||yc==="PUNE"||yc==="SUNNYVALE"||yc==="DELHI"||yc==="MOHALI",ape="https://zeni-webapp-qa.uc.r.appspot.com",yc=k4("QA",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),ewr=(e=>k4(e,G6r))((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)),qYe=(e=>k4(e,Y6r))((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)),lpe=yc==="DEV"||yc==="QA"?.2:.8,E6t=lpe,ka={sentryDsn:"",sentryTraceSamplingRate:lpe,sentryProfileSamplingRate:E6t,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let RS,kI;function q6r(e){ka.sentryDsn=e.keys.SENTRY_DSN,ka.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):lpe,ka.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):E6t,ka.googleClientId=e.keys.GOOGLE_CLIENT_ID,ka.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,ka.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,ka.mixpanelToken=e.keys.MIXPANEL_TOKEN,ka.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,ka.pusherCluster=e.keys.PUSHER_CLUSTER,ka.quickbooksKey=e.keys.QUICKBOOK_TOKEN,ka.appUrl=e.keys.WEB_ENDPOINT,ka.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,ka.cardVaultId=e.keys.UNIT_VAULT_ID,ka.stripeKey=e.keys.STRIPE_KEY,ka.qboRedirectionUrl=e.keys.QBO_URL,ka.mixpanelUrl=e.keys.MIXPANEL_URL,ka.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,kI=e.externalEndPoints,RS=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)}}(RS,kI)}let KYe=!1;function QC(){KYe||(vh.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:kI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),KYe=!0)}const K6r=new Set(Array.from(ao.EVENTS_WITHOUT_SUPER_PROPERTIES));let ZYe=!1,JYe=!1;function nle(){if(ZYe)return;ZYe=!0,QC();const e=ao.extractUtmParamsFromUrl();Object.keys(e).length>0&&vh.register(e),Jv()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Z6r=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function J6r(){const e=function(){return vh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||Z6r.has(o));for(const o of n)vh.unregister(o);Jv()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function XYe(){JYe||(JYe=!0,J6r())}class yv{identify(n,o){if(QC(),this.#t=n,n!=null&&o!=null&&(yv.#e==null||!kxt({userId:n,traits:o},yv.#e))){const{$email:i,...a}={...o};vh.identify(n),i&&i!=null&&vh.people.set_once({$email:i}),vh.people.set(a),yv.#e={userId:n,traits:o},Jv()&&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){QC();const i=K6r.has(n);if(this.#t!=null||i){if(nle(),this.#t!=null){const a={distinct_id:this.#t,...o};vh.track(n,a)}else vh.track(n,o);if(XYe(),Jv()){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){QC(),nle(),vh.track(n,o),XYe(),Jv()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){QC(),vh.alias(n,o)}reset(){QC(),vh.identify(void 0),this.#t=void 0,yv.#e=void 0}static#e;#t}const ole=new yv,I6t=new ao.Analytics(ole);I6t.trackWithoutUserId=ole.trackWithoutUserId.bind(ole);const _d=I6t,L6t=m.createContext(null),spe={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function X6r({children:e}){const[n,o]=m.useState(()=>new Set([])),i=n.size>0,a=m.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=m.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:m.useCallback(()=>{o(new Set)},[])};return Tt.jsx(L6t.Provider,{value:c,children:e})}function oW(){const e=m.useContext(L6t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const T6t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",wR="zeni-ai-cfo-upload-promo-storage-changed",Si=new class{_isZeniUserCache;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}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}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:nn(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{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(i))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const o=JSON.parse(n);return o!==null&&typeof o=="object"&&o[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(wR)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const o=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let i={};if(o!=null)try{const a=JSON.parse(o);i=a!==null&&typeof a=="object"?a:{}}catch{i={}}i[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(i)),window.dispatchEvent(new CustomEvent(wR))}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:nn(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 SE.AES.encrypt(e,n).toString()}decrypt(e,n){return SE.AES.decrypt(e,n).toString(SE.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";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=T6t;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_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]};function e9r(e){return fi(n=>function(o,i){if(i==null||i==="")return;const a=$xt(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const D6t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],P6t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],t9r=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],n9r=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],o9r=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],i9r=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],r9r=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],B6t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],M6t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],a9r=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function cpe(e){const n=$u(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":a9r.includes(i)?i:null}const l9r=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),s9r=new Set(["setup","verification","promo","approval-rules"]);function $u(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function dpe(e){const n=$u(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 _6t(e,n,o){const i=$u(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function z6t(e,n,o){return _6t(e,n,i=>!o.has(i))}function O6t(e){return z6t(e,"bills",l9r)}function F6t(e){return z6t(e,"reimbursements",s9r)}function R6t(e){return _6t(e,"tasks",n=>n==="group")}const c9r=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),d9r=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function upe(e){const n=$u(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return c9r.has(o)?"checking":"checking_details"}function ppe(e){const n=$u(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return d9r.has(o)?"cards":"cards_detail"}function N6t(e){const n=$u(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function V6t(e){return $u(e)[1]==="performance"?"performance":void 0}function H6t(e){const n=$u(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function U6t(e){const n=$u(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function W0(e,n){return n.some(o=>ale(o,e)!=null)}function u9r(e){return W0(e,ope)?"reports":W0(e,D6t)?"ap_aging":W0(e,P6t)?"ar_aging":dpe(e)!=null?"vendors_tab":W0(e,ipe)?"forecast":cpe(e)!=null?"month_end_close_review":W0(e,B6t)?"cash_balance":W0(e,M6t)?"card_balance":R6t(e)?"task_checklist":N6t(e)!=null?"transaction_detail":V6t(e)!=null?"performance":H6t(e)!=null?"bills_detail":U6t(e)!=null?"reimbursement_detail":O6t(e)?"bills_list":F6t(e)?"reimbursement_list":W0(e,t9r)?"cash_in_cash_out":W0(e,n9r)?"operating_expenses":W0(e,o9r)?"revenue":W0(e,i9r)?"net_burn_or_income":W0(e,r9r)?"cash_position":function(n){const o=$u(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":upe(e)!=null?"checking":function(n){return $u(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":ppe(e)!=null?"cards":function(n){return $u(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return $u(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return $u(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function W6t(e,n){switch(u9r(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 dpe(e);case"forecast":return"forecast";case"month_end_close_review":{const o=cpe(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"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return upe(e);case"treasury":return"treasury";case"cards":return ppe(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function p9r(){const{pathname:e}=e0(),n=e??"",o=fi(i=>i.financeStatementState?.selectedReportId);return m.useMemo(()=>W6t(n,{selectedReportId:o}),[n,o])}function h9r({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=m.useCallback(()=>e===!0&&n!=null&&!Si.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=m.useState(o);return m.useEffect(()=>{a(o())},[o]),m.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(wR,s);const c=d=>{d.key===T6t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(wR,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:m.useCallback(()=>{n!=null&&Si.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const Q6t=m.createContext(void 0),hpe=()=>m.useContext(Q6t),m9r=e=>{const n=Si.isSignedIn(),o=Si.getSignedInUser(),[i,a]=m.useState(void 0),s=m.useMemo(()=>i,[i]),c=fi(p=>Vu(p)),d=c.companyId,u=c.userRoleId;return m.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 g=o.userId,f=c.tenantId,x=o.zeniSessionId,y=async()=>{if(h)return;let w;try{w=await jxt(ka.pusherClientSecret,{cluster:ka.pusherCluster},{userId:g,tenantId:f,sessionId:x},!0)}catch(C){return void console.warn("Failed to initialize Pusher",C)}h?w?.disconnect():(a(w),w!=null&&(d!=null&&kE(w,d),g!=null&&kE(w,g),u!=null&&kE(w,u)))},b=()=>{const w=EI();return w.tenantId===f&&w.userId===g&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),cKe(g,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(g=>i?.unsubscribe(g.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Tt.jsx(Q6t.Provider,{value:s,children:e.children})};function kE(e,n){const o=`private-encrypted-${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 mpe=e=>n=>{const o=hpe(),i=m.useRef(n.eventCallback),a=m.useRef({});m.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=m.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return m.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),g=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(g?.subscribed===!0)x=g,x.bind(h,f),d.push(()=>{g.unbind(h,f)});else{x=g??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]),Tt.jsx(e,{...n})},Uf=(e,n)=>{const o=[...e??[]];return o.push(n),o},twr=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},nwr=({state:e})=>Si.isSignedIn()===!0?Tt.jsx(T9t,{}):Tt.jsx(Aqe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),g9r=({children:e})=>{const n=dne("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});m.useEffect(()=>{const d=Si.getTheme()==null?n:Si.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?hz({palette:{mode:"dark"},...Y$e},q$e,JNn,eVn):hz({palette:{mode:"light"},...Y$e},q$e,ZNn,XNn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Tt.jsx(tkn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;Si.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},G6t=m.createContext(!1),f9r=G6t.Provider;function x9r(){return m.useContext(G6t)}const y9r=()=>fi(e=>Vu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=L9t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function Y6t(){const{useFeatureGate:e}=os(),{isFeatureEnabled:n}=e(qi.isAiCfoEnabled),o=fi(a=>Vu(a)),i=Si.getSignedInUser();if(i==null||i.userId==null||o==null||o.companyId==null)return!1;if(!S4(i)){const a=o.userRole??[];return jqe(a)&&n}return n}const ile=e=>Afn.includes(e),oz=e=>lct.includes(e),eqe=e=>ile(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":GO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:oz(e)?`ai-cfo/${e}`:e,b9r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],tqe=(e,n)=>e.includes(n),rle=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(tqe(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&&GO(a)?act(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of lct)if(tqe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function nqe(e){let n=rle(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=rle(o[i])}return n??"home"}function w9r(e){return e.pathname.includes("settings")}function C9r(e){return e.pathname.includes("ai-cfo")}const v9r=()=>{const e=S9r();return lj("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},S9r=()=>e0().state?.message==="expenseAutomation";function k9r(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const $9r=(e,n,o)=>{const i=dKe(e),a=Ext(e),s=uKe(o,e);return n||o||a||i||s},SC="AppDrawer",x2={root:`${SC}-root`,drawer:`${SC}-drawer`,appBar:`${SC}-appBar`,menuButton:`${SC}-menuButton`,appBarZenilogo:`${SC}-appBarZenilogo`,drawerZenilogo:`${SC}-drawerZenilogo`},$I=210,A9r=Bn("div",{slot:"Root"})(({theme:e})=>({[`&.${x2.root}`]:{display:"flex"},[`& .${x2.drawer}`]:{[e.breakpoints.up("md")]:{width:$I,flexShrink:0,backgroundColor:e.colors.background}},[`& .${x2.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${x2.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${x2.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${x2.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),j9r=mpe(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=nW(),[i,a]=T.useState(!1),[s,c]=m.useState(!1),d=e0(),u=vR(),p=EI(),h=tde(),g=i3(),[f,x]=m.useState(!1),y=Te(),{useFeatureGate:b}=os(),{isFeatureEnabled:w}=b(qi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(qi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(qi.isExpenseAutomationEnabledV2),[k,$]=m.useState(()=>Si.getSignedInUser());m.useEffect(()=>{const Ut=()=>{const cn=Si.getSignedInUser();$(cn)};return window.addEventListener("completeProfileDone",Ut),()=>{window.removeEventListener("completeProfileDone",Ut)}},[]);const j=fi(Ut=>Vu(Ut)),A=rpe(),E=j.masterTOSInfo?.isMasterTOSAccepted??!1,{setLoading:L}=oW(),I=Y6t(),_=S4(k),z=v||C&&_,B=x9r(),[R,N]=m.useState(void 0),{isFeatureEnabled:O}=b(qi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:F}=b(qi.isChargeCardFeatureEnabled),P=$9r(j,F,w),{isFeatureEnabled:H}=b(qi.isSettingsFeatureEnabled),{isFeatureEnabled:V}=b(qi.isReferralFeatureEnabled),{isFeatureEnabled:Q}=b(qi.isTreasuryEnabled),{isFeatureEnabled:U}=b(qi.isTaskManagerCustomerUserAccessEnabled),G=_||!_&&U,q=fi(Ut=>Lxt(Ut));m.useEffect(()=>{const Ut=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Ut),()=>{window.removeEventListener("scroll",Ut)}},[]);const Y=fi(Ut=>Txt(Ut)),ne=fi(Ut=>Ut.expenseAutomationViewState.selectedPeriodByTenantId),oe=fi(Ut=>Dxt(Ut)),{monthEndCloseChecksView:ee}=oe,te=lj("/signout")!==null,ie=lj("/:tenantEmailDomain/dashboard")!==null,re=lj("/:tenantEmailDomain/reports")!==null,le=lj("/:tenantEmailDomain/onboarding/*")!==null,fe=v9r();m.useEffect(()=>{B&&V&&!le&&Y.fetchState==="Not-Started"&&g(Pxt(!0))},[B,V,Y.fetchState,le]),m.useEffect(()=>{if(fe){const Ut=d.state?.origin;if(Ut!=null){const cn=Bxt(Ut);g(Upe(cn))}}},[fe,d.state]);const se=te||le,de=fi(Ut=>Ut.tenantState),he=fi(Ut=>de.fetchState==="Completed"?hKe(Ut):[]),{isFeatureEnabled:pe}=b(qi.isApAgingFeatureEnabled),{isFeatureEnabled:ce}=b(qi.isArAgingFeatureEnabled),{isFeatureEnabled:xe}=b(qi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ge}=b(qi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:we}=b(qi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:ye}=b(qi.isDashboardSidebarNewYearAnimationEnabled),ve=fi(Ut=>Bb(Ut).totalUnreadCount),Ae=fi(Ut=>Bb(Ut).notificationDetailsByTab.tasks.uiState.unreadCount),Ee=fi(Ut=>Bb(Ut).notificationDetailsByTab.comments.uiState.unreadCount),Le=fi(Ut=>Bb(Ut).reducedFetchCountState),Ie=fi(Ut=>Bb(Ut).notificationDetailsByTab.tasks.fetchCountState),Oe=fi(Ut=>DR(Ut)),[We,je]=m.useState(void 0),Ce=Oe.uiState.currentChatSessionId,ke=We!=null?Oe.deleteChatSessionStateByChatSessionId[We]?.fetchState:void 0,ze=jt(ke),{inboxNotifications:Ve,isLoading:Qe,isFetchingMore:Ct,hasFetchedAll:mt,fetchMore:Ke}=y9r(),xt=fi(Ut=>Bb(Ut).notificationDetailsByTab.comments.fetchCountState);m.useEffect(()=>{const Ut=setTimeout(()=>Ke?.(),0);return()=>clearTimeout(Ut)}),m.useEffect(()=>{if(We!=null)return ze==="In-Progress"&&ke==="Completed"?(g(Wpe({chatSessionId:We})),je(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(ke==="Error"&&(g(Wpe({chatSessionId:We})),je(void 0)))},[g,d.state,u,ke,We,ze,e]),m.useEffect(()=>{if(Qe===!1&&Ct===!1&&mt===!0&&j?.companyId!=null&&Ve!=null){const Ut=`dashboard_${j.companyId}`;N(Ve.filter(cn=>cn.roomId===Ut&&cn.readAt==null).length)}},[Qe,Ct,mt,j?.companyId,Ve]),m.useEffect(()=>{B&&_&&!le&&Ie.fetchState==="Not-Started"&&p.tenantId!=null&&g(Mxt("task_manager","dashboard"))},[B,p.tenantId]),m.useEffect(()=>{le||xt.fetchState!=="Not-Started"||g(Qpe({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),m.useEffect(()=>{if(R!=null){const{fetchState:Ut}=xt;Ut!=="In-Progress"&&Ut!=="Completed"||(Ut==="In-Progress"&&g(Qpe({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),g(pKe({unreadCount:R},"comments")))}},[R,xt.fetchState]);const ft={fetchStatus:Le,count:ve},lt=[];pe===!1&&lt.push("accounts_payable_aging"),ce===!1&&lt.push("accounts_receivable_aging"),O===!1&&lt.push("zeni_accounts_promo_card"),V===!1&&lt.push("rewards_card"),z===!1&&lt.push("expense_automation_card");const He=hn(),Mt=fi(Ut=>_xt(Ut,lt,k,v,C,Q).fetchState),At=fi(Ut=>zxt(Ut).fetchState),Yt=e!=null?Si.getSignedInUserTenant(e):null,Nt=fi(Ut=>Yt?.tenantId!=null?mKe(Ut,Yt.tenantId):void 0),Xe=ie&&(Mt==="Completed"||Mt==="Error")||re&&(At==="Completed"||At==="Error")||!ie&&!re?void 0:"disabled",rn=m.useMemo(()=>gKe(j.userRole),[j.userRole]),an=zqe(rn),Vt=Ut=>{a(Ut)},Qt=j.company!=null&&Oxt(j.company),ln=Q&&Qt,It=Oqe(He?.loggedInUserRoleMap),qt=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,gn=fi(Ut=>Ut.treasurySetupViewState.treasuryFundsDetails),pn=m.useCallback(()=>ln&&It&&gn?.fetchStatus.fetchState==="Completed"&&!Si.getTreasuryPopupSeen(e??"")&&j.isTreasuryVideoViewed!==!0&&qt===!1&&rle(d.pathname)!=="treasury",[ln,It,qt,d.pathname,e,gn?.fetchStatus,j.isTreasuryVideoViewed]),[Ot,Rn]=m.useState(pn);m.useEffect(()=>{B&&ln&&gn?.fetchStatus.fetchState==="Not-Started"&&g(Fxt())},[B,ln,gn?.fetchStatus.fetchState]),m.useEffect(()=>{Rn(pn())},[pn]);const lo=k9r(gn.fundsDetails),zn=j?.rewardsLastViewedTime==null,Uo=k?.userEmail!=null&&q.fetchState==="Completed"&&Rxt(q.notificationSettings,k.userEmail,w,j),Wo=m.useCallback(Ut=>{const cn=d.state?.referrer;if(ee.monthEndCloseChecks?.auditSummary!=null&&_d.trackMonthCloseAuditPage(Ut.month,Ut.year,ee.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",ee.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,cn??null),g(Nxt(j.tenantId,Ut)),ne[j.tenantId]!=null){const $n=Uf(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${oe.currentSelectedView}/${Ut.month}-${Ut.year}`,{state:{pathnameStackToGoBack:$n,referrer:oe.currentSelectedView}})}g(Upe(oe.currentSelectedView)),oe.reconciliation.selectedAccountId!=null&&g(Vxt({selectedAccountId:void 0}))},[oe.reconciliation.selectedAccountId,oe.currentSelectedView,j.tenantId,ee.monthEndCloseChecks?.auditSummary,ee.monthEndCloseChecks?.reportEmailSentDate,ne,e,d.state,d.pathname]),po=m.useMemo(()=>({zIndex:s||Ot?12:S[2]}),[s,Ot]),En=I&&C9r(d),mo=Tt.jsx(Ieo,{signedInUser:k,currentTenantId:de.currentTenantId??"",tenants:de.fetchState==="Completed"?he:Nt!=null?[Nt]:[],rewardsConfiguration:{isRewardsTabVisible:V,isRewardsAnimated:zn,rewardsPlan:Y.rewardsPlan},selectedMenu:n===!0?act("ai_cfo"):nqe(d),isTenantDropdownDisabled:Xe,isSettings:w9r(d),isSettingsFeatureEnabled:H,currentTenant:j,isVendorsTabVisible:an,isZeniAccountEnabled:O,isChargeCardEnabled:P,isTreasuryEnabled:ln,isTreasuryPopupVisible:Ot,treasuryYieldPercentage:lo,isNotificationsTabVisible:Uo,notificationCountDetails:ft,isExpenseAutomationEnabledForUser:z&&Va(j.userRole)===!1,isAiCfoAccessEnabled:I,onNotificationIconClick:()=>{Vt(!1);const Ut=_?Ae===0&&Ee>0?"notifications/comments":"notifications/tasks":"notifications/comments",cn=Uf(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Ut}`,{state:{pathnameStackToGoBack:cn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Ut=>{L(spe.TENANT_SWITCHING),Vt(!1);const cn=Ut.tenantEmailDomain,$n=nqe(d),sn=$n;let In="";const go=GO(sn);$n==="home"?In+="dashboard":$n==="users_and_roles"?In+="people":ile($n)?In+="settings/my_profile":oz($n)?In+=`ai-cfo/${$n}`:In+=sn==="task_checklist"?"tasks":go?"month_end_close_checks/review":encodeURIComponent($n);const Hn=`/${encodeURIComponent(cn)}/${In}`;u(Hn,{replace:!0}),k!=null&&(g(vle(Ut.tenantId)),g(fKe(k.userId,Ut.tenantId,k.zeniSessionId)));const wo=Ut;_d.trackCompanySwitch(wo.companyId,wo.companyName,wo.userRole)},handleMenuChange:(Ut,cn)=>{if(k!=null&&_d.trackSidePanelClicked(Ut.type,Ut.group),Vt(!1),e==null)return;if(n&&(Hn=>{if(ile(Hn)||oz(Hn))return!0;const wo=eqe(Hn).split("/")[0];return!b9r.includes(wo)})(Ut.type)&&o(!1),Ut.type==="ai_cfo"){_d.trackAICFOChatScreenStateChanged("viewed","left_menu",Ce??null,null);const Hn=Uf(d.state?.pathnameStackToGoBack,d.pathname);return E?void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Hn,referrer:"Sidebar"}}):void(A?o(!0):u(`/${e}/dashboard`,{state:{pathnameStackToGoBack:Hn,referrer:"Sidebar",message:"open_ai_cfo_drawer"}}))}const $n=Uf(d.state?.pathnameStackToGoBack,d.pathname),sn=Ut.type,In=GO(sn)&&sn!=="command_center";if(sn!=="command_center"&&!In||ne[j.tenantId]==null||_d.trackMonthEndCloseClicked(ne[j.tenantId].month,ne[j.tenantId].year,"Sidebar"),In&&ne[j.tenantId]!=null){const Hn=ne[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Ut.type}/${Hn.month}-${Hn.year}`,{state:{pathnameStackToGoBack:$n,message:cn,referrer:"Sidebar"}})}const go=eqe(Ut.type);oz(Ut.type)?(Ce!=null&&g(rz()),u(`/${e}/ai-cfo/${Ut.type}`,{state:{pathnameStackToGoBack:$n.slice(0,-1),message:cn,referrer:"Sidebar"}})):u(`../${e}/${go}`,{state:{pathnameStackToGoBack:$n,message:cn,referrer:"Sidebar"}})},onDeleteChatSession:Ut=>{g(Hxt(Ut)),Ce===Ut&&je(Ut)},handleLogOutClick:()=>{Vt(!1);const Ut=Uf(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Ut,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{Si.saveTreasuryPopupSeen(e??"",!0),Rn(!1)},monthEndCloseChecksView:ee,onPeriodChange:Wo,onCalendarOpen:c,aiCfoView:Oe,isAiCfo:En,isOnDashboard:ie,isTaskManagerAccessEnabled:G,updateCurrentChatSessionId:Ut=>{g(Cle({sessionId:Ut,agentId:"controller"})),u(`../${e}/ai-cfo/${Ut}`,{state:{...d.state}})},halloweenAnimationEnabled:xe,thanksGivingAnimationEnabled:ge,christmasAnimationEnabled:we,newYearAnimationEnabled:ye}),bo=Tt.jsx(wyt,{position:"fixed",className:x2.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Tt.jsxs(Cyt,{style:{minHeight:nct},children:[Tt.jsx(vyt,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>Vt(!0),className:x2.menuButton,size:"large",children:Tt.jsx(E9r,{})}),Tt.jsx(I9r,{className:x2.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),ti=dne(Ut=>Ut.breakpoints.up("md")),io=dne(Ut=>Ut.breakpoints.down("md"));return e==null?null:Tt.jsxs(A9r,{className:x2.root,children:[Tt.jsx(Syt,{}),se===!1?Tt.jsxs(Tt.Fragment,{children:[ti||!ie?null:bo,Tt.jsxs("nav",{className:x2.drawer,children:[ti?null:Tt.jsx(az,{container:window.document.body,variant:"temporary",open:i,onClose:()=>Vt(!1),PaperProps:{sx:{width:$I,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:mo}),io?null:Tt.jsx(az,{PaperProps:{sx:{width:$I,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...po}},variant:"permanent",open:!0,children:mo})]})]}):null]})});function oqe(e){return e?.data.unread!=null&&e?.mode!=null}const E9r=Bn(e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},m.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"})))`
73728
73728
  height: 20px;
73729
73729
  width: 20px;
73730
73730
  color: ${e=>e.theme.colors.primary};
@@ -73821,7 +73821,7 @@ ${va.beneficiaryAddress} ${ne}`,d(fe),I(!0)})(o),"data-testid":K("title-text-cop
73821
73821
  display: flex;
73822
73822
  min-height: 100%;
73823
73823
  flex-direction: column;
73824
- `,X9r=()=>{const[e,n]=m.useState(()=>Si.getSignedInUser()),o=i3(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),d=fi(g=>xKe(g).fetchState),u=fi(g=>Vu(g));m.useEffect(()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(g)},[e]);const p=m.useCallback(()=>{const g=Si.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(g)?g:f)},[]);m.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),m.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(ryt(u.companyId))},[d,u.companyId,o]);const h=m.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Tt.jsxs(m.Fragment,{children:[s&&Tt.jsx(kde,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Tt.jsx(Z9r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},iqe="init-enter",e8r=m.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return m.useLayoutEffect(()=>{const i=n.get(o||iqe);t8r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||iqe,c=n8r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),t8r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),n8r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},J6t=m.createContext(void 0),o8r=({children:e})=>{const{tenantEmailDomain:n}=P9t(),o=n!=null?Si.getSignedInUserTenant(n):void 0,i=fi(u=>Vu(u)),a=EI().tenantId,s=o?.tenantId,c=i?.tenantId,d=m.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Tt.jsx(J6t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},iwr=()=>{const e=m.useContext(J6t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},Kp=e=>m.lazy(async()=>{const n=e.toString(),o=Si.getForceRefreshedComponents(),i=new Set(o),a=Si.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&Si.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&Si.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),X6t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),e9t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),t9t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),n9t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Gl(...e){const n=yc==="DEV"||yc==="QA";if(X6t||e9t||t9t||n9t)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 Xv(...e){const n=yc==="DEV"||yc==="QA";if(X6t||e9t||t9t||n9t)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 kC=null,aj=!1;const Yl=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function rqe(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:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const i8r={dashboard:function(e){return[...rqe()]},reports:rqe,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:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Yl}/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:`${Yl}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Yl}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Yl}/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:`${Yl}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Yl}/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:`${Yl}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Yl}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Yl}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Yl}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function aqe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,i8r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Gl(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Gl(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Gl(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Gl(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function lqe(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,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(Gl("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(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 Xv("[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,g)=>p[h.priority]-p[g.priority])}(e);Gl("[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)=>{Gl(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Gl(` URL: ${u.url}`)});const c=EI(),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}}),Gl("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){Xv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Xv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function r8r({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:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=e0(),k=Si.getSignedInUser(),{useFeatureGate:$}=os(),{isFeatureEnabled:j}=$(qi.isReferralFeatureEnabled),A=hn(),E=$7(A?.loggedInUserRole??[]),L=fi(R=>Vu(R)),{isFeatureEnabled:I}=$(qi.isDebitCardFeatureEnabled),_=uKe(I,L),z=dKe(L),B=_===!1&&z===!1;return m.useEffect(()=>{if(!c||x||!k||!o)return;const R=aqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L?.companyId??"",isPageIndependent:g}),N=g?"dashboard":n;if(R.length===0)return void Gl(`[Prefetch Provider - ${N}${g?" (base)":""}] No URLs to prefetch`);Gl(`[Prefetch Provider - ${N}${g?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{lqe(R,i,a).catch(F=>{Xv(`[Prefetch Provider - ${N}${g?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,k,o,n,u,p,j,E,B,L?.companyId,g,i,a,s,v.pathname]),m.useEffect(()=>{y(!1)},[o,v.pathname]),m.useEffect(()=>{g||(y(!1),w(!1))},[v.pathname,g]),m.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&k&&o)||b)return;Gl(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const R=function(N){const{timeout:O=2e3,onIdle:F}=N;Gl(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const P=()=>{aj&&(Gl("[Idle Detection - Service Worker] 🏃 User became active again"),aj=!1),kC&&clearTimeout(kC),kC=setTimeout(()=>{aj||(Gl("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),aj=!0,F())},O)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach(V=>{document.addEventListener(V,P,!0)}),P(),()=>{Gl("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),kC&&(clearTimeout(kC),kC=null),H.forEach(V=>{document.removeEventListener(V,P,!0)}),aj=!1}}({timeout:h,onIdle:()=>{if(b)return;Gl("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=aqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),O=g?"dashboard":n;N.length!==0?(Gl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),lqe(N,i,a).catch(F=>{Xv(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Gl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,k,o,b,n,u,p,j,E,B,L.companyId,g,i,a]),m.useEffect(()=>{w(!1)},[o]),m.useEffect(()=>{(function(){const R=performance.getEntriesByType("navigation");if(R.length>0)return R[0].type==="reload";const N=performance.navigation;return!(!N||typeof N.type!="number")&&N.type===1})()&&f&&(Gl("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const R=await navigator.serviceWorker.ready,N=navigator.serviceWorker.controller||R.active;if(!N)return;Gl("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(R){Xv("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Tt.jsx(Tt.Fragment,{children:e})}function a8r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=e0(),u=fi(y=>Vu(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 g=u.tenantId,{useFeatureGate:f}=os(),{isFeatureEnabled:x}=f(qi.isServiceWorkerPrefetchingEnabled);return g&&p?Tt.jsx(r8r,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Tt.jsx(Tt.Fragment,{children:e})}function l8r(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 s8r=Kp(()=>rd(()=>import("./DefaultTenantHome-BZpowVvC.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),sqe=Kp(()=>rd(()=>Promise.resolve().then(()=>L9r),void 0)),cqe=Kp(()=>rd(()=>import("./ScreenRoutes-C_esjW3S.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),c8r=Kp(()=>rd(()=>import("./ConnectionAuthScreen-Cb9jSvP9.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),d8r=Kp(()=>rd(()=>import("./SignInScreen-0ZDiC6ii.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),u8r=Kp(()=>rd(()=>import("./MagicLinkSignInScreen-CQSnWkbc.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),dqe=Kp(()=>rd(()=>import("./NotFoundScreen-gdNFrdCn.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),p8r=Kp(()=>rd(()=>import("./MagicLinkRoutes-CE-gub2V.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),h8r=Kp(()=>rd(()=>import("./WiseConfirmationScreen-QWHy02om.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),m8r=Kp(()=>rd(()=>import("./HubSpotOAuthCallbackScreen-BQBDXWqr.js"),__vite__mapDeps([24,1,2,0,5,7,8]))),g8r=Kp(()=>rd(()=>import("./CustomerOnboardingAuthScreen-C59aPPyy.js"),__vite__mapDeps([25,1,2,0,12,8,13,14,15,16,5,17,7]))),f8r=Kp(()=>rd(()=>import("./SignOutScreen-BBFPJdbD.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),x8r=Kp(()=>rd(()=>import("./OAuthConsentScreen-D0N2LAnp.js"),__vite__mapDeps([27,1,2,0,5,7,8]))),y8r=()=>{const e=e0(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=l8r("/",n);return Tt.jsx(Aqe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function uqe(){const{isOpen:e}=pb(),n=Q4n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=nW(),a=m.useRef(!1),s=m.useRef(o),c=m.useRef(!1);return m.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),m.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),m.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const b8r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=Si.isSignedIn(),i=fi(B=>Vu(B)),a=Si.getSignedInUser(),s=o&&S4(a),c=fi(B=>ayt(B)).tenantsBaseInOrder.map(B=>({companyId:B.companyId,tenantId:B.tenantId,companyName:B.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=i3(),p=pc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=rpe(),g=Y6t(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo(()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b}),[f,y,x,b]),{useFeatureGate:C}=os(),{isFeatureEnabled:v}=C(qi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=C(qi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=C(qi.isReimbursementCommentingEnabled),{isFeatureEnabled:j}=C(qi.isExpenseAutomationEnabled),{isFeatureEnabled:A}=C(qi.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(qi.isTreasuryCommentingEnabled),{isFeatureEnabled:L}=C(qi.isCheckingCommentingEnabled),{isFeatureEnabled:I}=C(qi.isTransactionCommentingEnabled),{isFeatureEnabled:_}=C(qi.isCardsCommentingEnabled),z=k||$||s&&j||!s&&A||E||L||I||_;return m.useEffect(()=>{!h&&f&&x(!1)},[h,f]),m.useEffect(()=>{h||u(lyt())},[u,h]),Tt.jsx(W4n,{children:i.tenantId!=null?Tt.jsx(ZHi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${RS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${RS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:s,autoConnect:s||I||_,loggedInUser:a,withRoomProvider:!0,withThreadsProvider:z,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:i.companyId},children:Tt.jsxs(tle.Provider,{value:w,children:[Tt.jsx(uqe,{}),Tt.jsxs(mqe,{children:[Tt.jsx(sqe,{tenantEmailDomain:e}),Tt.jsx(hqe,{children:Tt.jsx(pqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})}):Tt.jsx(XHi,{children:Tt.jsxs(tle.Provider,{value:w,children:[Tt.jsx(uqe,{}),Tt.jsxs(mqe,{children:[Tt.jsx(sqe,{tenantEmailDomain:e}),Tt.jsx(hqe,{children:Tt.jsx(pqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})})})},pqe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=fi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=os(),{configValue:c}=s(Tm.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}=oW(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=nW();return m.useEffect(()=>{h(spe.APP_INITIALIZATION)},[h]),Tt.jsx(m.Suspense,{fallback:null,children:Tt.jsx(a8r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Tt.jsxs(B9t,{children:[Tt.jsx(Z1,{path:"/magic_links/*",element:Tt.jsx(p8r,{})}),Tt.jsx(Z1,{path:"/wise/callback/link-account/*",element:Tt.jsx(h8r,{})}),Tt.jsx(Z1,{path:"/page-not-found",element:Tt.jsx(dqe,{})}),Tt.jsx(Z1,{path:"/",element:Tt.jsx(s8r,{})}),Tt.jsx(Z1,{path:"/aicfo",element:Tt.jsx(y8r,{})}),Tt.jsx(Z1,{path:"/onboarding/auth",element:Tt.jsx(g8r,{})}),Tt.jsx(Z1,{path:"/:tenantEmailDomain/*",element:Tt.jsxs(v8r,{children:[Tt.jsx(S8r,{children:Tt.jsxs(o8r,{children:[a!=null?Tt.jsx(X9r,{}):null,n?Tt.jsx(cqe,{setTenantEmailDomain:e}):Tt.jsx(one,{children:Tt.jsx(cqe,{setTenantEmailDomain:e})})]})}),o?Tt.jsx(k8r,{isOpen:g,children:Tt.jsx(H9r,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Tt.jsx(Z1,{path:"/signin/auth",element:Tt.jsx(one,{children:Tt.jsx(d8r,{setTenantEmailDomain:e})})}),Tt.jsx(Z1,{path:"/signin/magic-link",element:Tt.jsx(one,{children:Tt.jsx(u8r,{})})}),Tt.jsx(Z1,{path:"/signout",element:Tt.jsx(f8r,{})}),Tt.jsx(Z1,{path:"/connection/auth",element:Tt.jsx(c8r,{})}),Tt.jsx(Z1,{path:"/oauth/hubspot/callback",element:Tt.jsx(m8r,{})}),Tt.jsx(Z1,{path:"/oauth/authorize",element:Tt.jsx(x8r,{})}),Tt.jsx(Z1,{path:"*",element:Tt.jsx(dqe,{})})]})})})},hqe=({children:e})=>{const{isOpen:n,width:o}=pb();return Tt.jsx(C8r,{commentsDrawerWidth:n?o:0,children:e})},w8r=Bn("div")`
73824
+ `,X9r=()=>{const[e,n]=m.useState(()=>Si.getSignedInUser()),o=i3(),[i,a]=m.useState(!1),[s,c]=m.useState(!1),d=fi(g=>xKe(g).fetchState),u=fi(g=>Vu(g));m.useEffect(()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(g)},[e]);const p=m.useCallback(()=>{const g=Si.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(g)?g:f)},[]);m.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),m.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(ryt(u.companyId))},[d,u.companyId,o]);const h=m.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Tt.jsxs(m.Fragment,{children:[s&&Tt.jsx(kde,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Tt.jsx(Z9r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},iqe="init-enter",e8r=m.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return m.useLayoutEffect(()=>{const i=n.get(o||iqe);t8r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||iqe,c=n8r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),t8r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),n8r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},J6t=m.createContext(void 0),o8r=({children:e})=>{const{tenantEmailDomain:n}=P9t(),o=n!=null?Si.getSignedInUserTenant(n):void 0,i=fi(u=>Vu(u)),a=EI().tenantId,s=o?.tenantId,c=i?.tenantId,d=m.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Tt.jsx(J6t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},iwr=()=>{const e=m.useContext(J6t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},Kp=e=>m.lazy(async()=>{const n=e.toString(),o=Si.getForceRefreshedComponents(),i=new Set(o),a=Si.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&Si.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&Si.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),X6t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),e9t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),t9t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),n9t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Gl(...e){const n=yc==="DEV"||yc==="QA";if(X6t||e9t||t9t||n9t)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 Xv(...e){const n=yc==="DEV"||yc==="QA";if(X6t||e9t||t9t||n9t)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 kC=null,aj=!1;const Yl=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function rqe(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:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Yl}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const i8r={dashboard:function(e){return[...rqe()]},reports:rqe,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:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Yl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Yl}/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:`${Yl}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Yl}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Yl}/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:`${Yl}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Yl}/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:`${Yl}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Yl}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Yl}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Yl}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function aqe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,i8r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Gl(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Gl(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Gl(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Gl(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function lqe(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,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(Gl("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(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 Xv("[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,g)=>p[h.priority]-p[g.priority])}(e);Gl("[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)=>{Gl(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Gl(` URL: ${u.url}`)});const c=EI(),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}}),Gl("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){Xv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Xv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function r8r({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:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=e0(),k=Si.getSignedInUser(),{useFeatureGate:$}=os(),{isFeatureEnabled:j}=$(qi.isReferralFeatureEnabled),A=hn(),E=$7(A?.loggedInUserRole??[]),L=fi(R=>Vu(R)),{isFeatureEnabled:I}=$(qi.isDebitCardFeatureEnabled),_=uKe(I,L),z=dKe(L),B=_===!1&&z===!1;return m.useEffect(()=>{if(!c||x||!k||!o)return;const R=aqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L?.companyId??"",isPageIndependent:g}),N=g?"dashboard":n;if(R.length===0)return void Gl(`[Prefetch Provider - ${N}${g?" (base)":""}] No URLs to prefetch`);Gl(`[Prefetch Provider - ${N}${g?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{lqe(R,i,a).catch(F=>{Xv(`[Prefetch Provider - ${N}${g?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,k,o,n,u,p,j,E,B,L?.companyId,g,i,a,s,v.pathname]),m.useEffect(()=>{y(!1)},[o,v.pathname]),m.useEffect(()=>{g||(y(!1),w(!1))},[v.pathname,g]),m.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&k&&o)||b)return;Gl(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const R=function(N){const{timeout:O=2e3,onIdle:F}=N;Gl(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const P=()=>{aj&&(Gl("[Idle Detection - Service Worker] 🏃 User became active again"),aj=!1),kC&&clearTimeout(kC),kC=setTimeout(()=>{aj||(Gl("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),aj=!0,F())},O)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach(V=>{document.addEventListener(V,P,!0)}),P(),()=>{Gl("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),kC&&(clearTimeout(kC),kC=null),H.forEach(V=>{document.removeEventListener(V,P,!0)}),aj=!1}}({timeout:h,onIdle:()=>{if(b)return;Gl("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=aqe({currentPage:n,userId:k.userId,tenantId:o,sessionId:k.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),O=g?"dashboard":n;N.length!==0?(Gl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),lqe(N,i,a).catch(F=>{Xv(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Gl(`[Prefetch Provider - Idle - ${O}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,k,o,b,n,u,p,j,E,B,L.companyId,g,i,a]),m.useEffect(()=>{w(!1)},[o]),m.useEffect(()=>{(function(){const R=performance.getEntriesByType("navigation");if(R.length>0)return R[0].type==="reload";const N=performance.navigation;return!(!N||typeof N.type!="number")&&N.type===1})()&&f&&(Gl("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const R=await navigator.serviceWorker.ready,N=navigator.serviceWorker.controller||R.active;if(!N)return;Gl("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(R){Xv("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Tt.jsx(Tt.Fragment,{children:e})}function a8r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=e0(),u=fi(y=>Vu(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 g=u.tenantId,{useFeatureGate:f}=os(),{isFeatureEnabled:x}=f(qi.isServiceWorkerPrefetchingEnabled);return g&&p?Tt.jsx(r8r,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Tt.jsx(Tt.Fragment,{children:e})}function l8r(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 s8r=Kp(()=>rd(()=>import("./DefaultTenantHome-DOFkLxHn.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),sqe=Kp(()=>rd(()=>Promise.resolve().then(()=>L9r),void 0)),cqe=Kp(()=>rd(()=>import("./ScreenRoutes-CSJKItCB.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),c8r=Kp(()=>rd(()=>import("./ConnectionAuthScreen-BgsvoVoV.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),d8r=Kp(()=>rd(()=>import("./SignInScreen-BI2QJmsm.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),u8r=Kp(()=>rd(()=>import("./MagicLinkSignInScreen-BSQuMqe_.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),dqe=Kp(()=>rd(()=>import("./NotFoundScreen--NgVTkpE.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),p8r=Kp(()=>rd(()=>import("./MagicLinkRoutes-Dlg_sv3w.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),h8r=Kp(()=>rd(()=>import("./WiseConfirmationScreen-BTbWpX1H.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),m8r=Kp(()=>rd(()=>import("./HubSpotOAuthCallbackScreen-Dnafv1F_.js"),__vite__mapDeps([24,1,2,0,5,7,8]))),g8r=Kp(()=>rd(()=>import("./CustomerOnboardingAuthScreen-q2OxHMS0.js"),__vite__mapDeps([25,1,2,0,12,8,13,14,15,16,5,17,7]))),f8r=Kp(()=>rd(()=>import("./SignOutScreen-DWdPOV-f.js"),__vite__mapDeps([26,1,2,0,5,7,8]))),x8r=Kp(()=>rd(()=>import("./OAuthConsentScreen-KmZzxwuS.js"),__vite__mapDeps([27,1,2,0,5,7,8]))),y8r=()=>{const e=e0(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=l8r("/",n);return Tt.jsx(Aqe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function uqe(){const{isOpen:e}=pb(),n=Q4n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=nW(),a=m.useRef(!1),s=m.useRef(o),c=m.useRef(!1);return m.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),m.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),m.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const b8r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=Si.isSignedIn(),i=fi(B=>Vu(B)),a=Si.getSignedInUser(),s=o&&S4(a),c=fi(B=>ayt(B)).tenantsBaseInOrder.map(B=>({companyId:B.companyId,tenantId:B.tenantId,companyName:B.companyName})),d={userId:a?.userId??"",sessionId:a?.zeniSessionId??"",tenantId:i.tenantId??""},u=i3(),p=pc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=rpe(),g=Y6t(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo(()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b}),[f,y,x,b]),{useFeatureGate:C}=os(),{isFeatureEnabled:v}=C(qi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=C(qi.isBillPayCommentingEnabled),{isFeatureEnabled:$}=C(qi.isReimbursementCommentingEnabled),{isFeatureEnabled:j}=C(qi.isExpenseAutomationEnabled),{isFeatureEnabled:A}=C(qi.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(qi.isTreasuryCommentingEnabled),{isFeatureEnabled:L}=C(qi.isCheckingCommentingEnabled),{isFeatureEnabled:I}=C(qi.isTransactionCommentingEnabled),{isFeatureEnabled:_}=C(qi.isCardsCommentingEnabled),z=k||$||s&&j||!s&&A||E||L||I||_;return m.useEffect(()=>{!h&&f&&x(!1)},[h,f]),m.useEffect(()=>{h||u(lyt())},[u,h]),Tt.jsx(W4n,{children:i.tenantId!=null?Tt.jsx(ZHi,{roomId:`dashboard_${i.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${RS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${RS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:s,autoConnect:s||I||_,loggedInUser:a,withRoomProvider:!0,withThreadsProvider:z,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:i.companyId},children:Tt.jsxs(tle.Provider,{value:w,children:[Tt.jsx(uqe,{}),Tt.jsxs(mqe,{children:[Tt.jsx(sqe,{tenantEmailDomain:e}),Tt.jsx(hqe,{children:Tt.jsx(pqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})}):Tt.jsx(XHi,{children:Tt.jsxs(tle.Provider,{value:w,children:[Tt.jsx(uqe,{}),Tt.jsxs(mqe,{children:[Tt.jsx(sqe,{tenantEmailDomain:e}),Tt.jsx(hqe,{children:Tt.jsx(pqe,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v})})]})]})})})},pqe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=fi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=os(),{configValue:c}=s(Tm.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}=oW(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=nW();return m.useEffect(()=>{h(spe.APP_INITIALIZATION)},[h]),Tt.jsx(m.Suspense,{fallback:null,children:Tt.jsx(a8r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Tt.jsxs(B9t,{children:[Tt.jsx(Z1,{path:"/magic_links/*",element:Tt.jsx(p8r,{})}),Tt.jsx(Z1,{path:"/wise/callback/link-account/*",element:Tt.jsx(h8r,{})}),Tt.jsx(Z1,{path:"/page-not-found",element:Tt.jsx(dqe,{})}),Tt.jsx(Z1,{path:"/",element:Tt.jsx(s8r,{})}),Tt.jsx(Z1,{path:"/aicfo",element:Tt.jsx(y8r,{})}),Tt.jsx(Z1,{path:"/onboarding/auth",element:Tt.jsx(g8r,{})}),Tt.jsx(Z1,{path:"/:tenantEmailDomain/*",element:Tt.jsxs(v8r,{children:[Tt.jsx(S8r,{children:Tt.jsxs(o8r,{children:[a!=null?Tt.jsx(X9r,{}):null,n?Tt.jsx(cqe,{setTenantEmailDomain:e}):Tt.jsx(one,{children:Tt.jsx(cqe,{setTenantEmailDomain:e})})]})}),o?Tt.jsx(k8r,{isOpen:g,children:Tt.jsx(H9r,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Tt.jsx(Z1,{path:"/signin/auth",element:Tt.jsx(one,{children:Tt.jsx(d8r,{setTenantEmailDomain:e})})}),Tt.jsx(Z1,{path:"/signin/magic-link",element:Tt.jsx(one,{children:Tt.jsx(u8r,{})})}),Tt.jsx(Z1,{path:"/signout",element:Tt.jsx(f8r,{})}),Tt.jsx(Z1,{path:"/connection/auth",element:Tt.jsx(c8r,{})}),Tt.jsx(Z1,{path:"/oauth/hubspot/callback",element:Tt.jsx(m8r,{})}),Tt.jsx(Z1,{path:"/oauth/authorize",element:Tt.jsx(x8r,{})}),Tt.jsx(Z1,{path:"*",element:Tt.jsx(dqe,{})})]})})})},hqe=({children:e})=>{const{isOpen:n,width:o}=pb();return Tt.jsx(C8r,{commentsDrawerWidth:n?o:0,children:e})},w8r=Bn("div")`
73825
73825
  display:flex;
73826
73826
  `,mqe=Bn("div")`
73827
73827
  display: flex;
@@ -73943,4 +73943,4 @@ ${va.beneficiaryAddress} ${ne}`,d(fe),I(!0)})(o),"data-testid":K("title-text-cop
73943
73943
  }
73944
73944
  `,D8r=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?Tt.jsxs(j8r,{style:n,children:[Tt.jsxs(E8r,{children:[Tt.jsx(HM,{children:Tt.jsx(hh,{width:96,height:20})}),Tt.jsxs(HM,{children:[Tt.jsx(hh,{width:55,height:12}),Tt.jsx(hh,{width:78,height:16}),Tt.jsx(hh,{width:46,height:16})]}),Tt.jsxs(HM,{children:[Tt.jsx(hh,{width:55,height:12}),Tt.jsx(hh,{width:110,height:16}),Tt.jsx(hh,{width:84,height:16})]}),Tt.jsxs(HM,{children:[Tt.jsx(hh,{width:55,height:12}),Tt.jsx(hh,{width:84,height:16}),Tt.jsx(hh,{width:64,height:16})]})]}),Tt.jsxs(I8r,{children:[Tt.jsxs(L8r,{children:[Tt.jsx(hh,{width:106,height:27}),Tt.jsx(hh,{width:111,height:32})]}),Tt.jsx(T8r,{children:Tt.jsx(A8r,{width:96,height:96})})]})]}):null;function P8r({minDisplayTime:e=0}){const{isLoading:n}=oW(),[o,i]=m.useState(!1),a=m.useRef(),s=m.useRef(null);return m.useLayoutEffect(()=>{if(a.current&&clearTimeout(a.current),Si.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]),m.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),!n&&o||!o?null:Tt.jsx(D8r,{fetchState:"In-Progress"})}const gqe="missing-receipts-batch-completed",Q8=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 GC=null;function B8r(){return GC===null&&(GC=function(){console.warn(`initializing epic state with url ${JSON.stringify(RS)}`);const e=Si.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=Si.getSignedInUserTenant(a);if(d?.tenantId!=null)return d.tenantId}return Si.getActiveTenantForUser()?.tenantId}():void 0,o=uyt(RS,e?.userId,e?.zeniSessionId,n,Jv(),O8r);cne();const i=EI();return i.userId!=null&&_d.identify(i.userId,{tenant_id:i.tenantId}),o}(),cne().then(()=>{GC!=null&&(Q8.reset(),z8r(GC))}).catch(e=>{console.error("Failed to load feature epics:",e),g9t(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
73945
73945
 
73946
- Please refresh the page to try again.`)})),GC}function awr(){return GC}const UM=new cyt,fqe=()=>{const e=i3(),n=Si.getSignedInUser(),o=fi(w=>Vu(w)),[i,a]=m.useState(null),s=x7i(n?.userId),c=m.useCallback(()=>{a(null),UM.stop(),e(myt()),e(gyt(!1)),Si.clearAll(),window.location.href="/signin/auth"},[e,a]);m.useEffect(()=>{if(n?.zeniSessionId!=null)return UM.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(fyt()),onWarningStart:w=>{_d.trackSessionTimeoutPopupShown(w),a(w)},onWarningTick:a,onAutoLogout:()=>{_d.trackSessionTimeoutAutoLogout(),c()},onSessionExtended:()=>a(null)}),()=>UM.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=fi(w=>xyt(w,o.companyId)),u=pc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];m.useEffect(()=>()=>{e(Ype())},[]);const h=fi(w=>yyt(w));(()=>{const w=hpe(),C=i3(),{useFeatureGate:v}=os(),{isFeatureEnabled:k}=v(qi.isMissingReceiptsBulkUploadEnabled);m.useEffect(()=>{if(k!==!0||w==null)return;const $=Si.getSignedInUser()?.userId;if($==null)return;const j=kE(w,$),A=E=>{C(syt({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(gqe,A),()=>{j.unbind(gqe,A)}},[w,C,k])})();const g=o?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo(()=>gKe(o.userRole),[o.userRole]),x={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(w,C)=>{var v;v=C,v?.data!=null&&e(byt(C))}},y=m.useMemo(()=>Si.getSignedInUser(),[]),b=m.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return Tt.jsxs(Ddn,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:g,controllersList:d},children:[Tt.jsx(kdn,{toolkit:{analytics:_d,sentry:f9t,authParams:b},children:Tt.jsxs(Hcn,{endPoint:{url:ape},children:[Tt.jsx(XXo,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Ype())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),Tt.jsx($8r,{...x})]})}),i!=null&&n!=null?Tt.jsx(B6r,{secondsRemaining:i,onContinueSession:()=>{_d.trackSessionTimeoutClicked("continue",i),UM.continueSession()},onSignOut:()=>{_d.trackSessionTimeoutClicked("sign_out",i),c()}}):null]})},M8r=()=>{const e=Si.isSignedIn(),n=fi(s=>Vu(s)).companyId,o=fi(s=>dyt(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=m.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=m.useMemo(()=>({currentFeatureEnv:qYe,featureClientSecret:ka.featureClientSecret,providerEndPoint:kI.statsigBaseUrl}),[qYe,ka.featureClientSecret,kI.statsigBaseUrl]);return n?Tt.jsx(Upn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Tt.jsx(fqe,{})}):Tt.jsx(fqe,{})},_8r=m9t(function(){const e=m.useMemo(()=>B8r(),[]),[n,o]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{cne().then(()=>o(!0)).catch(()=>{})},[]);const s=m.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return m.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Tt.jsx(g9r,{children:Tt.jsx(M9t,{store:e,children:Tt.jsx(f9r,{value:n,children:Tt.jsxs(X6r,{children:[Tt.jsx(P8r,{}),Tt.jsx(WFt,{children:Tt.jsx(m9r,{children:Tt.jsxs(vdn,{children:[i?Tt.jsx(Kfn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Tt.jsx(M8r,{})]})})})]})})})})});function z8r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:Si.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=Vu(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=Si.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=Si.getSignedInUserTenant(a)?.tenantId;c!=null&&(cKe(i.userId,i.zeniSessionId,c),e.dispatch(vle(c)),a!=null&&Si.saveActiveTenantDomainForUser(a),Q8.shouldFetchActiveTenant(c)&&(Q8.markActiveTenantFetchStarted(c),e.dispatch(fKe(i.userId,c,i.zeniSessionId))),Q8.shouldFetchExcludedResources(c)&&(Q8.markExcludedResourcesFetchStarted(c),e.dispatch(pyt(i.userId,c))),Q8.shouldFetchConnections(c)&&(Q8.markConnectionsFetchStarted(c),e.dispatch(hyt(i.userId,c))))}function O8r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const F8r=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),xqe=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function yqe(e,n){navigator.serviceWorker.register(e).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)})}let ine=!1,bqe=null;const wqe="//js.hs-scripts.com/5991084.js",Cqe="hs-script-loader",R8r=Si.getSignedInUser(),N8r=R8r?.zeniSessionId;var I8;(async function(){try{const o=await async function(){const a={environment:yc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${ape}/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,SE.AES.decrypt(e,n).toString(SE.enc.Utf8));q6r(JSON.parse(i)),Nyt.createRoot(document.getElementById("root")).render(Tt.jsx(T.StrictMode,{children:Tt.jsx(_9t,{children:Tt.jsx(_8r,{})})})),function(){const a=()=>{const s=ka.sentryDsn?.trim();if(!s)return;const c=ka.sentryProfileSamplingRate>0;x9t({dsn:s,tracesSampleRate:ka.sentryTraceSamplingRate,profilesSampleRate:c?ka.sentryProfileSamplingRate:0,integrations:[y9t(),...c?[b9t()]:[],w9t({maskAllText:!0,blockAllMedia:!0})],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction:d=>(d.breadcrumbs&&(d.breadcrumbs=d.breadcrumbs.filter(u=>u.category!=="console"||!((u.message??"").toLowerCase().includes("called people set")||Array.isArray(u.data?.arguments)&&u.data.arguments.some(p=>typeof p=="string"&&p.toLowerCase().includes("called people set"))||(Array.isArray(u.data?.arguments)&&(u.data.arguments=u.data.arguments.map(p=>{if(typeof p=="string"&&p.includes("user_roles"))try{const h=p.match(/\{.*\}/s);if(h!==null){const g=JSON.parse(h[0]);if(g.user_roles!=null)return delete g.user_roles,p.replace(h[0],JSON.stringify(g))}}catch{}return p})),0)))),d)}),C9t("session-id",N8r)};"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):bqe!==null||(bqe=new Promise(e=>{if(ine)return void e(!0);const n=()=>{ine?e(!0):(ine=!0,new Promise((i,a)=>{if(document.getElementById(Cqe))return void i();const s=document.createElement("script");s.id=Cqe,s.src=wqe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${wqe}`)),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){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{var e;F8r?(e=xqe,fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const o=n.headers.get("content-type");n.status===404||o!=null&&!o.includes("javascript")?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>window.location.reload())}):yqe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):yqe(xqe)})}}(),(I8=console.log)&&I8 instanceof Function&&rd(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(I8),n(I8),o(I8),i(I8),a(I8)});export{Ixr as $,A8r as A,Y9r as B,HGo as C,X as D,D as E,Oyr as F,M as G,oxr as H,t8o as I,ewr as J,Pxr as K,spe as L,u9r as M,Fyr as N,_yr as O,nwr as P,nW as Q,iwr as R,qi as S,yn as T,jxr as U,yy as V,ape as W,rle as X,_br as Y,ue as Z,Myr as _,Y6t as a,Exr as a$,act as a0,p9r as a1,Lbr as a2,mpe as a3,oqe as a4,rpe as a5,$9r as a6,y9r as a7,C9r as a8,k9r as a9,bxr as aA,Uyr as aB,myr as aC,xyr as aD,X1e as aE,Gyr as aF,Qyr as aG,fyr as aH,gyr as aI,yxr as aJ,Tm as aK,Eyr as aL,v9r as aM,M9o as aN,Dxr as aO,iOn as aP,Sto as aQ,Vyr as aR,Nyr as aS,Hyr as aT,kxr as aU,vn as aV,Kr as aW,e9r as aX,owr as aY,O9r as aZ,Axr as a_,Ieo as aa,nqe as ab,w9r as ac,ile as ad,oz as ae,GO as af,eqe as ag,Ho as ah,uyr as ai,dyr as aj,dbo as ak,Txr as al,Tyr as am,jt as an,Iyr as ao,$I as ap,RS as aq,A3 as ar,Lyr as as,cbr as at,cct as au,abr as av,sbr as aw,lbr as ax,dbr as ay,ubr as az,l8r as b,jyr as b$,Cxr as b0,RHn as b1,Nlt as b2,Bxr as b3,Bbr as b4,Dbr as b5,nyr as b6,sxr as b7,hxr as b8,Lce as b9,ryr as bA,lyr as bB,Pyr as bC,Qxr as bD,Gxr as bE,Dyr as bF,Byr as bG,Kxr as bH,Zxr as bI,Jxr as bJ,ayr as bK,xxr as bL,syr as bM,cyr as bN,Obr as bO,eyr as bP,Jbr as bQ,Ubr as bR,wyr as bS,Syr as bT,Cyr as bU,rxr as bV,yyr as bW,byr as bX,Ayr as bY,kde as bZ,kyr as b_,cxr as ba,zbr as bb,hyr as bc,uxr as bd,pxr as be,dxr as bf,Jv as bg,Wyr as bh,Nxr as bi,Hxr as bj,Vxr as bk,Oxr as bl,zxr as bm,Uxr as bn,Ryr as bo,Fxr as bp,Rxr as bq,Wxr as br,sa as bs,hbr as bt,tyr as bu,Xxr as bv,Ybr as bw,$yr as bx,Hbr as by,iyr as bz,_d as c,i2r as c0,pgr as c1,Tte as c2,qbr as c3,Kbr as c4,Zbr as c5,Gbr as c6,$xr as c7,Abr as c8,fbr as c9,pyr as cA,Nbr as cB,oyr as cC,Q4n as cD,pb as cE,Xbr as cF,Pbr as cG,Ibr as cH,Yxr as cI,Ebr as cJ,F9r as cK,h9r as cL,T9r as cM,R9r as cN,gpe as cO,rwr as cP,spn as cQ,axr as cR,q6t as cS,bbr as ca,mxr as cb,vyr as cc,zi as cd,hIi as ce,ybr as cf,mbr as cg,Cbr as ch,gbr as ci,wbr as cj,$br as ck,gxr as cl,fxr as cm,jbr as cn,S as co,Sbr as cp,vbr as cq,xbr as cr,kbr as cs,pbr as ct,Tbr as cu,Mbr as cv,Rbr as cw,Fbr as cx,Vbr as cy,lxr as cz,z8r as d,ao as e,ka as f,awr as g,$wn as h,zyr as i,oJn as j,hn as k,Kp as l,Te as m,Uf as n,r as o,twr as p,tde as q,wxr as r,x9r as s,Q8 as t,oW as u,Lxr as v,N1t as w,nxr as x,os as y,Si as z};
73946
+ Please refresh the page to try again.`)})),GC}function awr(){return GC}const UM=new cyt,fqe=()=>{const e=i3(),n=Si.getSignedInUser(),o=fi(w=>Vu(w)),[i,a]=m.useState(null),s=x7i(n?.userId),c=m.useCallback(()=>{a(null),UM.stop(),e(myt()),e(gyt(!1)),Si.clearAll(),window.location.href="/signin/auth"},[e,a]);m.useEffect(()=>{if(n?.zeniSessionId!=null)return UM.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(fyt()),onWarningStart:w=>{_d.trackSessionTimeoutPopupShown(w),a(w)},onWarningTick:a,onAutoLogout:()=>{_d.trackSessionTimeoutAutoLogout(),c()},onSessionExtended:()=>a(null)}),()=>UM.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=fi(w=>xyt(w,o.companyId)),u=pc(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];m.useEffect(()=>()=>{e(Ype())},[]);const h=fi(w=>yyt(w));(()=>{const w=hpe(),C=i3(),{useFeatureGate:v}=os(),{isFeatureEnabled:k}=v(qi.isMissingReceiptsBulkUploadEnabled);m.useEffect(()=>{if(k!==!0||w==null)return;const $=Si.getSignedInUser()?.userId;if($==null)return;const j=kE(w,$),A=E=>{C(syt({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(gqe,A),()=>{j.unbind(gqe,A)}},[w,C,k])})();const g=o?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo(()=>gKe(o.userRole),[o.userRole]),x={events:o.userRoleId!=null?[`private-encrypted-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(w,C)=>{var v;v=C,v?.data!=null&&e(byt(C))}},y=m.useMemo(()=>Si.getSignedInUser(),[]),b=m.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return Tt.jsxs(Ddn,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:g,controllersList:d},children:[Tt.jsx(kdn,{toolkit:{analytics:_d,sentry:f9t,authParams:b},children:Tt.jsxs(Hcn,{endPoint:{url:ape},children:[Tt.jsx(XXo,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(Ype())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),Tt.jsx($8r,{...x})]})}),i!=null&&n!=null?Tt.jsx(B6r,{secondsRemaining:i,onContinueSession:()=>{_d.trackSessionTimeoutClicked("continue",i),UM.continueSession()},onSignOut:()=>{_d.trackSessionTimeoutClicked("sign_out",i),c()}}):null]})},M8r=()=>{const e=Si.isSignedIn(),n=fi(s=>Vu(s)).companyId,o=fi(s=>dyt(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=m.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=m.useMemo(()=>({currentFeatureEnv:qYe,featureClientSecret:ka.featureClientSecret,providerEndPoint:kI.statsigBaseUrl}),[qYe,ka.featureClientSecret,kI.statsigBaseUrl]);return n?Tt.jsx(Upn,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Tt.jsx(fqe,{})}):Tt.jsx(fqe,{})},_8r=m9t(function(){const e=m.useMemo(()=>B8r(),[]),[n,o]=m.useState(!1),[i,a]=m.useState(!1);m.useEffect(()=>{cne().then(()=>o(!0)).catch(()=>{})},[]);const s=m.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return m.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Tt.jsx(g9r,{children:Tt.jsx(M9t,{store:e,children:Tt.jsx(f9r,{value:n,children:Tt.jsxs(X6r,{children:[Tt.jsx(P8r,{}),Tt.jsx(WFt,{children:Tt.jsx(m9r,{children:Tt.jsxs(vdn,{children:[i?Tt.jsx(Kfn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Tt.jsx(M8r,{})]})})})]})})})})});function z8r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:Si.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=Vu(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=Si.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=Si.getSignedInUserTenant(a)?.tenantId;c!=null&&(cKe(i.userId,i.zeniSessionId,c),e.dispatch(vle(c)),a!=null&&Si.saveActiveTenantDomainForUser(a),Q8.shouldFetchActiveTenant(c)&&(Q8.markActiveTenantFetchStarted(c),e.dispatch(fKe(i.userId,c,i.zeniSessionId))),Q8.shouldFetchExcludedResources(c)&&(Q8.markExcludedResourcesFetchStarted(c),e.dispatch(pyt(i.userId,c))),Q8.shouldFetchConnections(c)&&(Q8.markConnectionsFetchStarted(c),e.dispatch(hyt(i.userId,c))))}function O8r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const F8r=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),xqe=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function yqe(e,n){navigator.serviceWorker.register(e).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)})}let ine=!1,bqe=null;const wqe="//js.hs-scripts.com/5991084.js",Cqe="hs-script-loader",R8r=Si.getSignedInUser(),N8r=R8r?.zeniSessionId;var I8;(async function(){try{const o=await async function(){const a={environment:yc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${ape}/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,SE.AES.decrypt(e,n).toString(SE.enc.Utf8));q6r(JSON.parse(i)),Nyt.createRoot(document.getElementById("root")).render(Tt.jsx(T.StrictMode,{children:Tt.jsx(_9t,{children:Tt.jsx(_8r,{})})})),function(){const a=()=>{const s=ka.sentryDsn?.trim();if(!s)return;const c=ka.sentryProfileSamplingRate>0;x9t({dsn:s,tracesSampleRate:ka.sentryTraceSamplingRate,profilesSampleRate:c?ka.sentryProfileSamplingRate:0,integrations:[y9t(),...c?[b9t()]:[],w9t({maskAllText:!0,blockAllMedia:!0})],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction:d=>(d.breadcrumbs&&(d.breadcrumbs=d.breadcrumbs.filter(u=>u.category!=="console"||!((u.message??"").toLowerCase().includes("called people set")||Array.isArray(u.data?.arguments)&&u.data.arguments.some(p=>typeof p=="string"&&p.toLowerCase().includes("called people set"))||(Array.isArray(u.data?.arguments)&&(u.data.arguments=u.data.arguments.map(p=>{if(typeof p=="string"&&p.includes("user_roles"))try{const h=p.match(/\{.*\}/s);if(h!==null){const g=JSON.parse(h[0]);if(g.user_roles!=null)return delete g.user_roles,p.replace(h[0],JSON.stringify(g))}}catch{}return p})),0)))),d)}),C9t("session-id",N8r)};"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):bqe!==null||(bqe=new Promise(e=>{if(ine)return void e(!0);const n=()=>{ine?e(!0):(ine=!0,new Promise((i,a)=>{if(document.getElementById(Cqe))return void i();const s=document.createElement("script");s.id=Cqe,s.src=wqe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${wqe}`)),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){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{var e;F8r?(e=xqe,fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const o=n.headers.get("content-type");n.status===404||o!=null&&!o.includes("javascript")?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>window.location.reload())}):yqe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):yqe(xqe)})}}(),(I8=console.log)&&I8 instanceof Function&&rd(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(I8),n(I8),o(I8),i(I8),a(I8)});export{Ixr as $,A8r as A,Y9r as B,HGo as C,X as D,D as E,Oyr as F,M as G,oxr as H,t8o as I,ewr as J,Pxr as K,spe as L,u9r as M,Fyr as N,_yr as O,nwr as P,nW as Q,iwr as R,qi as S,yn as T,jxr as U,yy as V,ape as W,rle as X,_br as Y,ue as Z,Myr as _,Y6t as a,Exr as a$,act as a0,p9r as a1,Lbr as a2,mpe as a3,oqe as a4,rpe as a5,$9r as a6,y9r as a7,C9r as a8,k9r as a9,bxr as aA,Uyr as aB,myr as aC,xyr as aD,X1e as aE,Gyr as aF,Qyr as aG,fyr as aH,gyr as aI,yxr as aJ,Tm as aK,Eyr as aL,v9r as aM,M9o as aN,Dxr as aO,iOn as aP,Sto as aQ,Vyr as aR,Nyr as aS,Hyr as aT,kxr as aU,vn as aV,Kr as aW,e9r as aX,owr as aY,O9r as aZ,Axr as a_,Ieo as aa,nqe as ab,w9r as ac,ile as ad,oz as ae,GO as af,eqe as ag,Ho as ah,uyr as ai,dyr as aj,dbo as ak,Txr as al,Tyr as am,jt as an,Iyr as ao,$I as ap,RS as aq,A3 as ar,Lyr as as,cbr as at,cct as au,abr as av,sbr as aw,lbr as ax,dbr as ay,ubr as az,l8r as b,jyr as b$,Cxr as b0,RHn as b1,Nlt as b2,Bxr as b3,Bbr as b4,Dbr as b5,nyr as b6,sxr as b7,hxr as b8,Lce as b9,ryr as bA,lyr as bB,Pyr as bC,Qxr as bD,Gxr as bE,Dyr as bF,Byr as bG,Kxr as bH,Zxr as bI,Jxr as bJ,ayr as bK,xxr as bL,syr as bM,cyr as bN,Obr as bO,eyr as bP,Jbr as bQ,Ubr as bR,wyr as bS,Syr as bT,Cyr as bU,rxr as bV,yyr as bW,byr as bX,Ayr as bY,kde as bZ,kyr as b_,cxr as ba,zbr as bb,hyr as bc,uxr as bd,pxr as be,dxr as bf,Jv as bg,Wyr as bh,Nxr as bi,Hxr as bj,Vxr as bk,Oxr as bl,zxr as bm,Uxr as bn,Ryr as bo,Fxr as bp,Rxr as bq,Wxr as br,sa as bs,hbr as bt,tyr as bu,Xxr as bv,Ybr as bw,$yr as bx,Hbr as by,iyr as bz,_d as c,i2r as c0,pgr as c1,Tte as c2,qbr as c3,Kbr as c4,Zbr as c5,Gbr as c6,$xr as c7,Abr as c8,fbr as c9,pyr as cA,Nbr as cB,oyr as cC,Q4n as cD,pb as cE,Xbr as cF,Pbr as cG,Ibr as cH,Yxr as cI,Ebr as cJ,F9r as cK,h9r as cL,T9r as cM,R9r as cN,gpe as cO,rwr as cP,spn as cQ,axr as cR,q6t as cS,bbr as ca,mxr as cb,vyr as cc,zi as cd,hIi as ce,ybr as cf,mbr as cg,Cbr as ch,gbr as ci,wbr as cj,$br as ck,gxr as cl,fxr as cm,jbr as cn,S as co,Sbr as cp,vbr as cq,xbr as cr,kbr as cs,pbr as ct,Tbr as cu,Mbr as cv,Rbr as cw,Fbr as cx,Vbr as cy,lxr as cz,z8r as d,ao as e,ka as f,awr as g,$wn as h,zyr as i,oJn as j,hn as k,Kp as l,Te as m,Uf as n,r as o,twr as p,tde as q,wxr as r,x9r as s,Q8 as t,oW as u,Lxr as v,N1t as w,nxr as x,os as y,Si as z};