@zeniai/web-app-ui 5.0.41-prod → 5.0.41-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.
- package/dist/assets/AddressRoutes-COTgEcx5.js +1 -0
- package/dist/assets/{AddressScreen-BrfFyetC.js → AddressScreen-Dy3gt824.js} +1 -1
- package/dist/assets/{AiCfoScreen-C9sm5OxA.js → AiCfoScreen-Cws4f0L2.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-DbztvzT7.js → BillPayApprovalRoutes-DF52n6Id.js} +1 -1
- package/dist/assets/{BillPayRoutes-BrVMCMi7.js → BillPayRoutes-DqV_MtKO.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-DN6geBag.js → BusinessVerificationPageScreen-B_DAGr59.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-CMQlXy5S.js → ChargeCardRoutes-aibswbwW.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-D1Y6vTvV.js → CompanyPassportScreen-C7ncZDQG.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-oP9xYeAW.js → ConnectionAuthScreen-C-v9-LAq.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-IpaehusK.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-B2tn_gBJ.js → CustomerOnboardingRoutes-CIUHaEVj.js} +1 -1
- package/dist/assets/{DashboardRoutes-CnboKW67.js → DashboardRoutes-XEbf085D.js} +1 -1
- package/dist/assets/{DefaultTenantHome-Bfoqfe2S.js → DefaultTenantHome-BaZh27Bx.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Dgbr04ri.js → DomesticWireDetailScreen-CaPV2QQf.js} +1 -1
- package/dist/assets/{DrawerScreen-C40FoTo_.js → DrawerScreen-PUPEL7PH.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-BvGTwUMZ.js → EntityDetailRoutes-RWeEC5Gj.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-BiOpplpZ.js → ExpenseAutomationRoutes-BA9ss4rA.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DCbArq7g.js → FeaturePreviewScreen-BCjPMjM6.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-B2TR_7-P.js → MagicLinkRoutes-Gg2h_9D5.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-BKDPSViV.js → MagicLinkSignInScreen-BTQ6r2pp.js} +1 -1
- package/dist/assets/{MobileAppDrawer-BTAsbKky.js → MobileAppDrawer-p5nvfVTL.js} +1 -1
- package/dist/assets/NotFoundScreen-Cvae_Z2x.js +1 -0
- package/dist/assets/{NotificationRoutes-T5_zO-61.js → NotificationRoutes-DfIpLN9o.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-DFiz_-xI.js → PandLWithForecastRoutes-xpXLILbM.js} +1 -1
- package/dist/assets/{PeopleRoutes-DCN1l22i.js → PeopleRoutes-DH17tTFo.js} +1 -1
- package/dist/assets/{PerformanceRoutes-C_ha968L.js → PerformanceRoutes-yk0U9oCI.js} +1 -1
- package/dist/assets/{Preview-DweXNh1C.js → Preview-B2QPemYK.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DHy-ZzMw.js → QBOConnectionScreen-mD2mPEis.js} +1 -1
- package/dist/assets/{ReferralListScreen-C1q4qSU6.js → ReferralListScreen-CjfvqkPR.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-8lEqBYSl.js → ReimbursementApprovalRoutes-CcVme8sH.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Csj5AGEF.js → ReimbursementApprovalRuleDetailScreen-DN_HFaM8.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-DUInI1RK.js → ReimbursementRoutes-CfHr_hmV.js} +1 -1
- package/dist/assets/{ReportsRoutes-HHZzgDL6.js → ReportsRoutes-BsGK1X50.js} +1 -1
- package/dist/assets/{RewardsRoutes-H_NoitU-.js → RewardsRoutes-CTafnPxv.js} +1 -1
- package/dist/assets/{ScreenRoutes-DLSt4tdf.js → ScreenRoutes-R2vFklcz.js} +2 -2
- package/dist/assets/{SettingsRoutes-DbYeinpr.js → SettingsRoutes-BBDHnXJq.js} +1 -1
- package/dist/assets/{SetupPagesScreen-J81TG8ZY.js → SetupPagesScreen-CHkiqKKV.js} +1 -1
- package/dist/assets/{SignInScreen-BFLcQpya.js → SignInScreen-r_ANC4Ef.js} +1 -1
- package/dist/assets/{SignOutScreen-tPc6pjFA.js → SignOutScreen-9XjeY0Ws.js} +1 -1
- package/dist/assets/{TaskListScreen-DEKKFmtP.js → TaskListScreen-CNewdjLa.js} +1 -1
- package/dist/assets/{TaskRoutes-Ch3l6LAN.js → TaskRoutes-XgUh1eE5.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-DjNNud4b.js +1 -0
- package/dist/assets/{TransactionDetailScreen-C6KM-aDB.js → TransactionDetailScreen-DF77p-T5.js} +1 -1
- package/dist/assets/{TransactionListRoutes-moJ9RJZf.js → TransactionListRoutes-5nd0wZ03.js} +1 -1
- package/dist/assets/{TreasuryRoutes-CVS2PO_Q.js → TreasuryRoutes-DCaezent.js} +1 -1
- package/dist/assets/{VendorsRoutes-CxLZXFHv.js → VendorsRoutes-DmP0IGgz.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-DpDNGqTl.js → WiseConfirmationScreen-CtDtoecw.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-OsHd2NcH.js → ZeniAccountRoutes-Yd5wzi0J.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-BiFXjzc5.js → ZeniAccountStatementScreen-6ZIJXn0a.js} +1 -1
- package/dist/assets/{accountMappingHelper-C4AZTHdI.js → accountMappingHelper-Dy6pMfT2.js} +1 -1
- package/dist/assets/{analytics-BcPUmMcN.js → analytics-DE2d9aNC.js} +1 -1
- package/dist/assets/{analyticsHelper-g_HqSgE2.js → analyticsHelper-qNHR5-zx.js} +1 -1
- package/dist/assets/{core-DlY-FwpL.js → core-CoiynoRK.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-ClJzemIi.js → decodeURIComponentSafe-TwB1SnrO.js} +1 -1
- package/dist/assets/{dnd-Bn2pdcIL.js → dnd-BHdOG6wK.js} +1 -1
- package/dist/assets/{empty-CjDnp_4a.js → empty-CCRyeqit.js} +1 -1
- package/dist/assets/{empty-CKy2scUS.js → empty-CZmWO_-u.js} +1 -1
- package/dist/assets/{emptyVideoElement-q5y-j_hM.js → emptyVideoElement-yM79-wtC.js} +1 -1
- package/dist/assets/{epic-CSsj0ALh.js → epic-BU3PCdeX.js} +1 -1
- package/dist/assets/{getLocaleForTenant-DYUKdYlZ.js → getLocaleForTenant-BLpsiOLr.js} +1 -1
- package/dist/assets/{index-iq-MEhIw.js → index-1a4OVesc.js} +1 -1
- package/dist/assets/{index-BleP6zfn.js → index-BO_hfNkL.js} +7 -7
- package/dist/assets/{index-CryHyWUB.js → index-C_GjQzUH.js} +2 -2
- package/dist/assets/{index-Cih2k_ks.js → index-Cd1ydVKX.js} +1 -1
- package/dist/assets/{index-CZ2FAMV8.js → index-CigUrPYA.js} +1 -1
- package/dist/assets/{index-C-CdkgaG.js → index-D-AxYilG.js} +1 -1
- package/dist/assets/{index-Bxeqj1da.js → index-XpxATun4.js} +1 -1
- package/dist/assets/{lexical-BrtN2ES1.js → lexical-BiaQ_hiA.js} +1 -1
- package/dist/assets/{liveblocks-D8-SEGhz.js → liveblocks-DrgCyD6E.js} +1 -1
- package/dist/assets/{lottie-C6NwNJpD.js → lottie-vtl_VZ6t.js} +1 -1
- package/dist/assets/{mui-ChjOqzZS.js → mui-C1Dt84np.js} +1 -1
- package/dist/assets/{pathToGoBack-C9wc5cwR.js → pathToGoBack-drwkcV4d.js} +1 -1
- package/dist/assets/{pdf-_fTv6KM3.js → pdf-B3BwxqhZ.js} +3 -3
- package/dist/assets/{pdf-lib-DtLu3esy.js → pdf-lib-CN7VF28q.js} +1 -1
- package/dist/assets/{plaid-_8bbD7Fe.js → plaid-OdoQRw_Q.js} +1 -1
- package/dist/assets/{pusher-Ddd-NrDV.js → pusher-BKlwZ7u7.js} +1 -1
- package/dist/assets/{react-DOID9wUh.js → react-BDYYCKWx.js} +1 -1
- package/dist/assets/{react-D6WEM3Ol.js → react-BS0ShLrm.js} +1 -1
- package/dist/assets/{react-dxTFX7yO.js → react-BpZC5dMn.js} +1 -1
- package/dist/assets/{react-CWT80O4y.js → react-CKrmSDDh.js} +1 -1
- package/dist/assets/{react-DIfT12DH.js → react-DtFji4i6.js} +1 -1
- package/dist/assets/{react-C5J80Tf_.js → react-DyNmRMdd.js} +1 -1
- package/dist/assets/{recharts-7vdih3fb.js → recharts-CFe4o5mZ.js} +1 -1
- package/dist/assets/{routePaths-DIc9ADM3.js → routePaths-C8qy-2v4.js} +1 -1
- package/dist/assets/{sentry-CcvkAz7l.js → sentry-COJR98K6.js} +1 -1
- package/dist/assets/{url-9QtiSwPB.js → url-CKlz-N4O.js} +1 -1
- package/dist/assets/{url-2KthxbLv.js → url-CjWnAiLX.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-CG2QKALJ.js → useAskAiCfoHostNavButtonProps-DGcHJDW1.js} +1 -1
- package/dist/assets/{useDeviceId-B-rn78Am.js → useDeviceId-DHSnLejY.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-DjEux3wJ.js → useFetchSuggestedQuestionsWhenReady-DPxf73eg.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-D5dgUmxM.js → useInitialThreadRequest-CuDquq1q.js} +1 -1
- package/dist/assets/{utils-C1e-0O7X.js → utils-BSFKNs4t.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-D6XJXfC3.js → withTransactionSidePanel-Bxrj3iDV.js} +1 -1
- package/dist/assets/{zeni-epic-state-8kAo3TVw.js → zeni-epic-state-D-ABrdnx.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/AddressRoutes-LsIv1F6m.js +0 -1
- package/dist/assets/CustomerOnboardingAuthScreen-9NDu8OT9.js +0 -1
- package/dist/assets/NotFoundScreen-r3nGyW4H.js +0 -1
- package/dist/assets/TransactionDetailRoutes-ijYzKI3A.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-
|
|
2
|
-
import{a as g,b as T,c as bte,R as h7t,p as BU,e as Gue,r as Iu,g as ZGe,f as m7t,s as Yue,i as g7t,w as f7t,j as x7t,S as y7t,k as b7t,l as w7t,m as C7t,n as v7t,o as S7t}from"./sentry-CcvkAz7l.js";import{L as $7t,C as que,_ as Lp,a as lI,b as k7t,c as ZF,d as sI,u as JGe,T as A7t,e as j7t,f as E7t,g as I7t,h as XGe,i as L7t,k as T7t,j as Pt,l as D7t}from"./liveblocks-D8-SEGhz.js";import{f as eYe,r as Br,R as Q8,P as cl,u as bp,m as tYe,g as hi,h as Wg,O as P7t,N as nYe,i as _A,j as JF,k as B7t,l as M7t,n as _7t,o as Up,p as z7t,B as O7t}from"./core-DlY-FwpL.js";import{L as Kue,bl as F7t,bm as R7t,bn as H7,bo as N7t,bp as V7t,bq as Nt,br as $S,bs as jm,bt as H7t,bu as a4,bv as Na,bw as Oa,bx as U7t,by as W7t,bz as by,bA as U7,bB as $ae,bC as on,bD as oYe,bE as iYe,bF as kae,bG as $p,bH as Qg,bI as Wc,bJ as If,bK as Q7t,bL as Dl,bM as G7t,bN as kS,bO as Y7t,bP as q7t,bQ as K7t,bR as Hx,bS as Z7t,bT as Zue,bU as J7t,bV as X7t,bW as e6t,bX as t6t,bY as n6t,bZ as o6t,b_ as i6t,b$ as r6t,c0 as a7,c1 as XF,c2 as a6t,c3 as eR,c4 as tR,c5 as nR,c6 as Aae,c7 as oR,c8 as Ov,c9 as Fv,ca as iR,cb as l6t,cc as s6t,cd as Jue,ce as wte,cf as c6t,cg as d6t,ch as jd,ci as rYe,cj as jae,ck as u6t,cl as i9,cm as Xue,cn as p6t,co as h6t,cp as m6t,cq as wy,cr as Cy,cs as aYe,ct as lYe,cu as Eae,cv as g6t,cw as f6t,cx as N_,cy as sYe,cz as x6t,cA as cYe,cB as y6t,cC as zA,cD as epe,cE as b6t,cF as dYe,cG as uYe,cH as pYe,cI as w6t,cJ as AS,cK as tpe,cL as C6t,cM as v6t,cN as hYe,cO as S6t,cP as npe,cQ as Gc,cR as pl,cS as $6t,cT as Rv,cU as Cd,cV as mYe,cW as k6t,cX as tE,cY as vx,cZ as la,c_ as A6t,c$ as j6t,d0 as E6t,d1 as AL,d2 as vh,d3 as I6t,d4 as L6t,d5 as T6t,d6 as D6t,d7 as jL,d8 as Ux,d9 as rR,da as P6t,db as B6t,dc as vy,dd as Ed,de as gYe,df as fYe,dg as M6t,dh as Cte,di as _6t,dj as m1,dk as Wx,dl as Iae,dm as xYe,dn as yYe,dp as bYe,dq as wYe,dr as CYe,ds as vYe,dt as z6t,du as ope,dv as O6t,_ as $1,dw as Lae,dx as SYe,dy as F6t,dz as ipe,dA as Ou,dB as Lf,dC as R6t,dD as N6t,dE as $Ye,dF as vte,dG as EM,dH as V6t,dI as H6t,dJ as U6t,dK as W6t,dL as Q6t,dM as G6t,dN as Y6t,dO as q6t,dP as K6t,dQ as Z6t,dR as hj,dS as mj,dT as kYe,dU as TC,dV as Tae,dW as Dae,dX as jS,dY as Pae,dZ as Bae,d_ as Mae,d$ as _ae,e0 as AYe,e1 as zae,e2 as J6t,e3 as X6t,e4 as jYe,e5 as rpe,e6 as e9t,e7 as Oae,e8 as t9t,e9 as n9t,ea as EYe,eb as o9t,ec as i9t,ed as IYe,ee as r9t,ef as LYe,eg as TYe,eh as a9t,ei as l9t,ej as s9t,ek as c9t,el as d9t,em as u9t,en as p9t,eo as h9t,ep as m9t,eq as ape,er as aR,es as g9t,et as f9t,eu as x9t,ev as y9t,ew as b9t,ex as w9t,ey as C9t,ez as v9t,eA as lpe,eB as DYe,eC as PYe,eD as BYe,eE as MYe,eF as _Ye,eG as zYe,eH as S9t,eI as $9t,eJ as k9t,v as A9t,eK as j9t,eL as E9t,eM as Fae,eN as Lu,eO as OYe,eP as cI,eQ as I9t,eR as FYe,eS as L9t,eT as RYe,eU as T9t,eV as NYe,eW as D9t,eX as P9t,eY as B9t,eZ as M9t,e_ as _9t,e$ as spe,f0 as z9t,f1 as VYe,f2 as gb,f3 as lR,f4 as cpe,f5 as O9t,f6 as dpe,f7 as F9t,f8 as R9t,f9 as HYe,fa as UYe,fb as N9t,fc as V9t,fd as H9t,fe as U9t,ff as W9t,fg as Q9t,fh as V_,fi as Rae,fj as WYe,fk as G9t,fl as gj,fm as Y9t,fn as q9t,fo as K9t,fp as Z9t,fq as J9t,fr as X9t,fs as e8t,ft as t8t,fu as n8t,fv as o8t,fw as i8t,fx as QYe,fy as r8t,fz as a8t,fA as l8t,fB as upe,fC as s8t,fD as c8t,fE as d8t,fF as u8t,fG as p8t,fH as Ste,fI as h8t,fJ as m8t,fK as g8t,fL as f8t,fM as x8t,fN as y8t,fO as b8t,fP as w8t,fQ as ppe,fR as C8t,fS as v8t}from"./zeni-epic-state-8kAo3TVw.js";import{n as l,T as GYe,G as dI,j as Uo,c as Pe,k as zn,C as YYe,u as Nae,a as $te,A as S8t,b as $8t,I as k8t,d as A8t,D as H_,S as qYe}from"./mui-ChjOqzZS.js";import{r as j8t,m as ph}from"./analytics-BcPUmMcN.js";import{u as Tp}from"./plaid-_8bbD7Fe.js";import{g as E8t,O as I8t,H as L8t,S as T8t,T as D8t,a as P8t,u as B8t,b as M8t}from"./dnd-Bn2pdcIL.js";import{l as _8t}from"./stripe-DMRn4zHo.js";import{L as nv}from"./lottie-C6NwNJpD.js";import{r as $s}from"./lexical-BrtN2ES1.js";import{D as kte,P as Ate,_ as KYe,a as ZYe}from"./pdf-_fTv6KM3.js";import{R as nE,G as Qx,X as Zl,Y as Pl,H as Gx,I as Kc,J as kp,K as Sy,L as Dp,M as z8t,N as ES,O as JYe,P as O8t,Q as sR,S as ov,U as F8t,V as Vae,W as R8t,Z as N8t,_ as V8t}from"./recharts-7vdih3fb.js";import{r as H8t}from"./utils-C1e-0O7X.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]="ae97e2a1-ca2e-47fb-aec6-7bb388cfd03e",e._sentryDebugIdIdentifier="sentry-dbid-ae97e2a1-ca2e-47fb-aec6-7bb388cfd03e")}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 hpe,EL={},U8t=function(){if(hpe)return EL;hpe=1;var e=eYe();return EL.createRoot=e.createRoot,EL.hydrateRoot=e.hydrateRoot,EL}(),gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof bte<"u"?bte:typeof self<"u"?self:{};function $i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mpe,gpe,fpe={exports:{}},w$={};function XYe(){return gpe||(gpe=1,fpe.exports=function(){if(mpe)return w$;mpe=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,m={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return w$.Fragment=o,w$.jsx=c,w$.jsxs=c,w$}()),fpe.exports}var t=XYe();const W8t=g.createContext(null),MU={didCatch:!1,error:null};let Q8t=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=MU}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(MU)}}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(MU))}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const d={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(o)c=g.createElement(o,d);else{if(i===void 0)throw s;c=i}}return g.createElement(W8t.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var xpe,_U={exports:{}},ype,bpe,zU,G8t=(xpe||(xpe=1,bpe=_U.exports,zU=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",D=1e12,z=1e9,_=1e6,R="",N=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=D&&!b||b==="t"?(I+=A.abbreviations.trillion,m/=D):w<D&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,m/=z):w<z&&w>=_&&!b||b==="m"?(I+=A.abbreviations.million,m/=_):(w<_&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,m/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=m.toString().split(".")[0],v=f.split(".")[1],k=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),R=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(m,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(m,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),N=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return k>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+R+(I||""),E?j=(E&&N?"(":"")+j+(E&&N?")":""):$>=0?j=$===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(m),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(m,f){var x,y,b,w=this._value,C=m||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(m){return o.suffixes.indexOf(m)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(m,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(ype=_U).exports?ype.exports=zU():bpe.numeral=zU()),_U.exports);const Of=$i(G8t);function Kf(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 Ff="$$material";var Y8t={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 q8t(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var K8t=/[A-Z]|^ms/g,Z8t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eqe=function(e){return e.charCodeAt(1)===45},wpe=function(e){return e!=null&&typeof e!="boolean"},OU=q8t(function(e){return eqe(e)?e:e.replace(K8t,"-$&").toLowerCase()}),Cpe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Z8t,function(o,i,a){return V5={name:i,styles:a,next:V5},i})}return Y8t[e]===1||eqe(e)||typeof n!="number"||n===0?n:n+"px"};function U_(e,n,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":var a=o;if(a.anim===1)return V5={name:a.name,styles:a.styles,next:V5},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)V5={name:c.name,styles:c.styles,next:V5},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var m=0;m<p.length;m++)h+=U_(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;wpe(y)&&(h+=OU(f)+":"+Cpe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)wpe(x[b])&&(h+=OU(f)+":"+Cpe(f,x[b])+";");else{var w=U_(d,u,x);switch(f){case"animation":case"animationName":h+=OU(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var V5,vpe=/label:\s*([^\s;{]+)\s*(;|$)/g,Spe,$pe,kpe,Ape,jpe,Epe={exports:{}};function J8t(){return $pe?Spe:($pe=1,Spe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function X8t(){if(Ape)return kpe;Ape=1;var e=J8t();function n(){}function o(){}return o.resetWarningCache=n,kpe=function(){function i(c,d,u,p,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function a(){return i}i.isRequired=i;var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return s.PropTypes=s,s}}function Hae(){return jpe||(jpe=1,Epe.exports=X8t()()),Epe.exports}const yn=$i(Hae());var ext=function(){function e(o){var i=this;this._insertTag=function(a){var s;s=i.tags.length===0?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,s),i.tags.push(a)},this.isSpeedy=o.speedy===void 0||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(s){var c=document.createElement("style");return c.setAttribute("data-emotion",s.key),s.nonce!==void 0&&c.setAttribute("nonce",s.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(s){if(s.sheet)return s.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===s)return document.styleSheets[c]}(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),md="-ms-",Ipe="-moz-",Tr="-webkit-",tqe="comm",Uae="rule",Wae="decl",nqe="@keyframes",txt=Math.abs,cR=String.fromCharCode,nxt=Object.assign;function oqe(e){return e.trim()}function Dr(e,n,o){return e.replace(n,o)}function jte(e,n){return e.indexOf(n)}function Oc(e,n){return 0|e.charCodeAt(n)}function oE(e,n,o){return e.slice(n,o)}function og(e){return e.length}function Qae(e){return e.length}function IL(e,n){return n.push(e),e}var dR=1,Nv=1,iqe=0,Cu=0,Cs=0,IS="";function uR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:dR,column:Nv,length:c,return:""}}function C$(e,n){return nxt(uR("",null,null,"",null,null,0),e,{length:-e.length},n)}function wp(){return Cs=Cu<iqe?Oc(IS,Cu++):0,Nv++,Cs===10&&(Nv=1,dR++),Cs}function Pg(){return Oc(IS,Cu)}function IM(){return Cu}function uI(e,n){return oE(IS,e,n)}function iE(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 rqe(e){return dR=Nv=1,iqe=og(IS=e),Cu=0,[]}function aqe(e){return IS="",e}function LM(e){return oqe(uI(Cu-1,Ete(e===91?e+2:e===40?e+1:e)))}function oxt(e){for(;(Cs=Pg())&&Cs<33;)wp();return iE(e)>2||iE(Cs)>3?"":" "}function ixt(e,n){for(;--n&&wp()&&!(Cs<48||Cs>102||Cs>57&&Cs<65||Cs>70&&Cs<97););return uI(e,IM()+(n<6&&Pg()==32&&wp()==32))}function Ete(e){for(;wp();)switch(Cs){case e:return Cu;case 34:case 39:e!==34&&e!==39&&Ete(Cs);break;case 40:e===41&&Ete(e);break;case 92:wp()}return Cu}function rxt(e,n){for(;wp()&&e+Cs!==57&&(e+Cs!==84||Pg()!==47););return"/*"+uI(n,Cu-1)+"*"+cR(e===47?e:wp())}function axt(e){for(;!iE(Pg());)wp();return uI(e,Cu)}function lxt(e){return aqe(TM("",null,null,null,[""],e=rqe(e),0,[0],e))}function TM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,$="",k=a,j=s,A=i,E=$;w;)switch(y=v,v=wp()){case 40:if(y!=108&&Oc(E,m-1)==58){jte(E+=Dr(LM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=LM(v);break;case 9:case 10:case 13:case 32:E+=oxt(y);break;case 92:E+=ixt(IM()-1,7);continue;case 47:switch(Pg()){case 42:case 47:IL(sxt(rxt(wp(),IM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=og(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Dr(E,/\f/g,"")),x>0&&og(E)-m&&IL(x>32?Tpe(E+";",i,o,m-1):Tpe(Dr(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(IL(A=Lpe(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)TM(E,n,A,A,k,s,m,d,j);else switch(f===99&&Oc(E,3)===110?100:f){case 100:case 108:case 109:case 115:TM(e,A,A,i&&IL(Lpe(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:TM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+og(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Cs=Cu>0?Oc(IS,--Cu):0,Nv--,Cs===10&&(Nv=1,dR--),Cs==125))continue}switch(E+=cR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(og(E)-1)*C,C=1;break;case 64:Pg()===45&&(E+=LM(wp())),f=Pg(),h=m=og($=E+=axt(IM())),v++;break;case 45:y===45&&og(E)==2&&(b=0)}}return s}function Lpe(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=Qae(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=oE(e,m+1,m=txt(b=c[y])),$=e;C<x;++C)($=oqe(b>0?f[C]+" "+v:Dr(v,/&\f/g,f[C])))&&(u[w++]=$);return uR(e,n,o,a===0?Uae:d,u,p,h)}function sxt(e,n,o){return uR(e,n,o,tqe,cR(Cs),oE(e,2,-2),0)}function Tpe(e,n,o,i){return uR(e,n,o,Wae,oE(e,0,i),oE(e,i+1,-1),i)}function iv(e,n){for(var o="",i=Qae(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function cxt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Wae:return e.return=e.return||e.value;case tqe:return"";case nqe:return e.return=e.value+"{"+iv(e.children,i)+"}";case Uae:e.value=e.props.join(",")}return og(o=iv(e.children,i))?e.return=e.value+"{"+o+"}":""}function dxt(e){return function(n){n.root||(n=n.return)&&e(n)}}var uxt=function(e,n,o){for(var i=0,a=0;i=a,a=Pg(),i===38&&a===12&&(n[o]=1),!iE(a);)wp();return uI(e,Cu)},pxt=function(e,n){return aqe(function(o,i){var a=-1,s=44;do switch(iE(s)){case 0:s===38&&Pg()===12&&(i[a]=1),o[a]+=uxt(Cu-1,i,a);break;case 2:o[a]+=LM(s);break;case 4:if(s===44){o[++a]=Pg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=cR(s)}while(s=wp());return o}(rqe(e),n))},Dpe=new WeakMap,hxt=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||Dpe.get(o))&&!i){Dpe.set(e,!0);for(var a=[],s=pxt(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]}}},mxt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function lqe(e,n){switch(function(o,i){return 45^Oc(o,0)?(((i<<2^Oc(o,0))<<2^Oc(o,1))<<2^Oc(o,2))<<2^Oc(o,3):0}(e,n)){case 5103:return Tr+"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 Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Ipe+e+md+e+e;case 6828:case 4268:return Tr+e+md+e+e;case 6165:return Tr+e+md+"flex-"+e+e;case 5187:return Tr+e+Dr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+md+"flex-$1$2")+e;case 5443:return Tr+e+md+"flex-item-"+Dr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+md+"flex-line-pack"+Dr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+md+Dr(e,"shrink","negative")+e;case 5292:return Tr+e+md+Dr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Dr(e,"-grow","")+Tr+e+md+Dr(e,"grow","positive")+e;case 4554:return Tr+Dr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Dr(Dr(Dr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Dr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Dr(Dr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+md+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Dr(e,/(.+)-inline(.+)/,Tr+"$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(og(e)-1-n>6)switch(Oc(e,n+1)){case 109:if(Oc(e,n+4)!==45)break;case 102:return Dr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Ipe+(Oc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~jte(e,"stretch")?lqe(Dr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Oc(e,n+1)!==115)break;case 6444:switch(Oc(e,og(e)-3-(~jte(e,"!important")&&10))){case 107:return Dr(e,":",":"+Tr)+e;case 101:return Dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(Oc(e,14)===45?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+md+"$2box$3")+e}break;case 5936:switch(Oc(e,n+11)){case 114:return Tr+e+md+Dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+md+Dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+md+Dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+md+e+e}return e}var gxt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Wae:e.return=lqe(e.value,e.length);break;case nqe:return iv([C$(e,{value:Dr(e.value,"@","@"+Tr)})],i);case Uae: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 iv([C$(e,{props:[Dr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return iv([C$(e,{props:[Dr(a,/:(plac\w+)/,":"+Tr+"input-$1")]}),C$(e,{props:[Dr(a,/:(plac\w+)/,":-moz-$1")]}),C$(e,{props:[Dr(a,/:(plac\w+)/,md+"input-$1")]})],i)}return""})}}],sqe=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||gxt,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=[hxt,mxt],h=[cxt,dxt(function(x){u.insert(x)})],m=function(x){var y=Qae(x);return function(b,w,C,v){for(var $="",k=0;k<y;k++)$+=x[k](b,w,C,v)||"";return $}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){iv(lxt(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new ext({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 cqe(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(dI,{styles:i})}const Ppe=[];function l7(e){return Ppe[0]=e,function(n,o,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var a=!0,s="";V5=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=U_(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=U_(i,o,n[d]),a&&(s+=c[d]);vpe.lastIndex=0;for(var u,p="";(u=vpe.exec(s))!==null;)p+="-"+u[1];var h=function(m){for(var f,x=0,y=0,b=m.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&m.charCodeAt(y)|(255&m.charCodeAt(++y))<<8|(255&m.charCodeAt(++y))<<16|(255&m.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&m.charCodeAt(y+2))<<16;case 2:x^=(255&m.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&m.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)}(s)+p;return{name:h,styles:s,next:V5}}(Ppe)}var Bpe,Mpe,_pe={exports:{}},ia={};function fxt(){if(Bpe)return ia;Bpe=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case o:case a:case i:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case m:case h:case s:return b;default:return w}}case n:return w}}}return ia.ContextConsumer=s,ia.ContextProvider=c,ia.Element=e,ia.ForwardRef=d,ia.Fragment=o,ia.Lazy=m,ia.Memo=h,ia.Portal=n,ia.Profiler=a,ia.StrictMode=i,ia.Suspense=u,ia.SuspenseList=p,ia.isContextConsumer=function(b){return y(b)===s},ia.isContextProvider=function(b){return y(b)===c},ia.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ia.isForwardRef=function(b){return y(b)===d},ia.isFragment=function(b){return y(b)===o},ia.isLazy=function(b){return y(b)===m},ia.isMemo=function(b){return y(b)===h},ia.isPortal=function(b){return y(b)===n},ia.isProfiler=function(b){return y(b)===a},ia.isStrictMode=function(b){return y(b)===i},ia.isSuspense=function(b){return y(b)===u},ia.isSuspenseList=function(b){return y(b)===p},ia.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===i||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},ia.typeOf=y,ia}function xxt(){return Mpe||(Mpe=1,_pe.exports=fxt()),_pe.exports}var dqe=xxt();function yf(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 uqe(e){if(g.isValidElement(e)||dqe.isValidElementType(e)||!yf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=uqe(e[o])}),n}function Id(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return yf(e)&&yf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||dqe.isValidElementType(n[a])?i[a]=n[a]:yf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&yf(e[a])?i[a]=Id(e[a],n[a],o):o.clone?i[a]=yf(n[a])?uqe(n[a]):n[a]:i[a]=n[a]}),i}function yxt(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,s=(h=>{const m=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return m.sort((f,x)=>f.val-x.val),m.reduce((f,x)=>({...f,[x.key]:x.val}),{})})(n),c=Object.keys(s);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-i/100}${o})`}function p(h,m){const f=c.indexOf(m);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:m)-i/100}${o})`}return{keys:c,values:s,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const m=c.indexOf(h);return m===0?d(c[1]):m===c.length-1?u(c[m]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function zpe(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 bxt={borderRadius:4};function fj(e,n){return n?Id(e,n,{clone:!1}):e}const pR={xs:0,sm:600,md:900,lg:1200,xl:1536},Ope={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pR[e]}px)`},wxt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:pR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Zf(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||Ope;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||Ope;return Object.keys(n).reduce((s,c)=>{if(function(d,u){return u==="@"||u.startsWith("@")&&(d.some(p=>u.startsWith(`@${p}`))||!!u.match(/^@\d/))}(a.keys,c)){const d=function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,m,f]=h,x=Number.isNaN(+m)?m||0:+m;return u.containerQueries(f).up(x)}(i.containerQueries?i:wxt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||pR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Fpe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function ji(e){if(typeof e!="string")throw new Error(Kf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hR(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 W_(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:hR(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=hR(c.theme,i)||{};return Zf(c,d,p=>{let h=W_(u,a,p);return p===h&&typeof p=="string"&&(h=W_(u,a,`${n}${p==="default"?"":ji(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const Cxt={m:"margin",p:"padding"},vxt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rpe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sxt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!Rpe[e])return[e];e=Rpe[e]}const[n,o]=e.split(""),i=Cxt[n],a=vxt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),pqe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hqe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function pI(e,n,o,i){const a=hR(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 Gae(e){return pI(e,"spacing",8)}function hI(e,n){return typeof n=="string"||n==null?n:e(n)}function $xt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=hI(c,d),u),{})}(Sxt(o),i);return Zf(e,e[o],a)}function mqe(e,n){const o=Gae(e.theme);return Object.keys(e).map(i=>$xt(e,n,i,o)).reduce(fj,{})}function vl(e){return mqe(e,pqe)}function Sl(e){return mqe(e,hqe)}function gqe(e=8,n=Gae({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 mR(...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]?fj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Sh(e){return typeof e!="number"?e:`${e}px solid`}function r0(e,n){return Ql({prop:e,themeKey:"borders",transform:n})}vl.propTypes={},vl.filterProps=pqe,Sl.propTypes={},Sl.filterProps=hqe;const kxt=r0("border",Sh),Axt=r0("borderTop",Sh),jxt=r0("borderRight",Sh),Ext=r0("borderBottom",Sh),Ixt=r0("borderLeft",Sh),Lxt=r0("borderColor"),Txt=r0("borderTopColor"),Dxt=r0("borderRightColor"),Pxt=r0("borderBottomColor"),Bxt=r0("borderLeftColor"),Mxt=r0("outline",Sh),_xt=r0("outlineColor"),DM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=pI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:hI(n,i)});return Zf(e,e.borderRadius,o)}return null};DM.propTypes={},DM.filterProps=["borderRadius"],mR(kxt,Axt,jxt,Ext,Ixt,Lxt,Txt,Dxt,Pxt,Bxt,DM,Mxt,_xt);const Q_=e=>{if(e.gap!==void 0&&e.gap!==null){const n=pI(e.theme,"spacing",8),o=i=>({gap:hI(n,i)});return Zf(e,e.gap,o)}return null};Q_.propTypes={},Q_.filterProps=["gap"];const G_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=pI(e.theme,"spacing",8),o=i=>({columnGap:hI(n,i)});return Zf(e,e.columnGap,o)}return null};G_.propTypes={},G_.filterProps=["columnGap"];const Y_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=pI(e.theme,"spacing",8),o=i=>({rowGap:hI(n,i)});return Zf(e,e.rowGap,o)}return null};Y_.propTypes={},Y_.filterProps=["rowGap"];function rv(e,n){return n==="grey"?n:e}mR(Q_,G_,Y_,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 pp(e){return e<=1&&e!==0?100*e+"%":e}mR(Ql({prop:"color",themeKey:"palette",transform:rv}),Ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rv}),Ql({prop:"backgroundColor",themeKey:"palette",transform:rv}));const zxt=Ql({prop:"width",transform:pp}),Yae=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||pR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:pp(o)}};return Zf(e,e.maxWidth,n)}return null};Yae.filterProps=["maxWidth"];const Oxt=Ql({prop:"minWidth",transform:pp}),Fxt=Ql({prop:"height",transform:pp}),Rxt=Ql({prop:"maxHeight",transform:pp}),Nxt=Ql({prop:"minHeight",transform:pp});Ql({prop:"size",cssProperty:"width",transform:pp}),Ql({prop:"size",cssProperty:"height",transform:pp});mR(zxt,Yae,Oxt,Fxt,Rxt,Nxt,Ql({prop:"boxSizing"}));const gR={border:{themeKey:"borders",transform:Sh},borderTop:{themeKey:"borders",transform:Sh},borderRight:{themeKey:"borders",transform:Sh},borderBottom:{themeKey:"borders",transform:Sh},borderLeft:{themeKey:"borders",transform:Sh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:DM},color:{themeKey:"palette",transform:rv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rv},backgroundColor:{themeKey:"palette",transform:rv},p:{style:Sl},pt:{style:Sl},pr:{style:Sl},pb:{style:Sl},pl:{style:Sl},px:{style:Sl},py:{style:Sl},padding:{style:Sl},paddingTop:{style:Sl},paddingRight:{style:Sl},paddingBottom:{style:Sl},paddingLeft:{style:Sl},paddingX:{style:Sl},paddingY:{style:Sl},paddingInline:{style:Sl},paddingInlineStart:{style:Sl},paddingInlineEnd:{style:Sl},paddingBlock:{style:Sl},paddingBlockStart:{style:Sl},paddingBlockEnd:{style:Sl},m:{style:vl},mt:{style:vl},mr:{style:vl},mb:{style:vl},ml:{style:vl},mx:{style:vl},my:{style:vl},margin:{style:vl},marginTop:{style:vl},marginRight:{style:vl},marginBottom:{style:vl},marginLeft:{style:vl},marginX:{style:vl},marginY:{style:vl},marginInline:{style:vl},marginInlineStart:{style:vl},marginInlineEnd:{style:vl},marginBlock:{style:vl},marginBlockStart:{style:vl},marginBlockEnd:{style:vl},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:Q_},rowGap:{style:Y_},columnGap:{style:G_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pp},maxWidth:{style:Yae},minWidth:{transform:pp},height:{transform:pp},maxHeight:{transform:pp},minHeight:{transform:pp},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"}},Yx=function(){function e(n,o,i,a){const s={[n]:o,theme:i},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const m=hR(i,u)||{};return h?h(s):Zf(s,o,f=>{let x=W_(m,p,f);return f===x&&typeof f=="string"&&(x=W_(m,p,`${n}${f==="default"?"":ji(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??gR;function d(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=function(x={}){return x.keys?.reduce((y,b)=>(y[x.up(b)]={},y),{})||{}}(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=function(b,w){return typeof b=="function"?b(w):b}(p[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=fj(f,e(x,y,a,c));else{const b=Zf({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce(($,k)=>$.concat(Object.keys(k)),[]),v=new Set(C);return w.every($=>v.size===Object.keys($).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=fj(f,b)}else f=fj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":zpe(a,Fpe(m,f))}:zpe(a,Fpe(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function Vxt(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 qae(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Id({breakpoints:yxt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:gqe(a),shape:{...bxt,...s}},c);return d=function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const m={},f=x=>(h(m,x),m);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=Vxt,d=n.reduce((u,p)=>Id(u,p),d),d.unstable_sxConfig={...gR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return Yx({sx:u,theme:this})},d}function Ite(e=null){const n=g.useContext(GYe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}Yx.filterProps=["sx"];const Hxt=qae();function fqe(e=Hxt){return Ite(e)}function Npe(e){const n=l7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function xqe({styles:e,themeId:n,defaultTheme:o={}}){const i=fqe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Npe(typeof c=="function"?c(a):c)):Npe(s)),t.jsx(cqe,{styles:s})}const Vpe=e=>e,Uxt=(()=>{let e=Vpe;return{configure(n){e=n},generate:n=>e(n),reset(){e=Vpe}}})();function yqe(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=yqe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function vi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=yqe(e))&&(i&&(i+=" "),i+=n);return i}const Wxt={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 ta(e,n,o="Mui"){const i=Wxt[n];return i?`${o}-${i}`:`${Uxt.generate(e)}-${n}`}function Ar(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=ta(e,a,o)}),i}function bqe(e){const{variants:n,...o}=e,i={variants:n,style:l7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=l7(a.style))}),i}const Qxt=qae();function FU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function G8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Gxt(e){return e?(n,o)=>o[e]:null}function PM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>PM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?G8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?G8(l7(c),o):c}return wqe(e,i.variants,[a],o)}return i?.isProcessed?o?G8(l7(i.style),o):i.style:o?G8(l7(i),o):i}function wqe(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?G8(l7(c.style(a)),i):c.style(a))):o.push(i?G8(l7(c.style),i):c.style)}return o}function Yxt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Lte(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]=Lte(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=vi(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 Wh=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Kae(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 S7(e){if(e.type)return e;if(e.charAt(0)==="#")return S7(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(Kf(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(Kf(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const OA=(e,n)=>{try{return(o=>{const i=S7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function fR(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 Cqe(e){e=S7(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])),fR({type:d,values:u})}function Tte(e){let n=(e=S7(e)).type==="hsl"||e.type==="hsla"?S7(Cqe(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 q_(e,n){return e=S7(e),n=Kae(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,fR(e)}function r9(e,n,o){try{return q_(e,n)}catch{return e}}function xR(e,n){if(e=S7(e),n=Kae(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 fR(e)}function qr(e,n,o){try{return xR(e,n)}catch{return e}}function yR(e,n){if(e=S7(e),n=Kae(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 fR(e)}function Kr(e,n,o){try{return yR(e,n)}catch{return e}}function LL(e,n,o){try{return function(i,a=.15){return Tte(i)>.5?xR(i,a):yR(i,a)}(e,n)}catch{return e}}const vqe=g.createContext(null);function Zae(){return g.useContext(vqe)}const qxt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kxt(e){const{children:n,theme:o}=e,i=Zae(),a=g.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[qxt]=i!==null),s},[o,i]);return t.jsx(vqe.Provider,{value:a,children:n})}const Sqe=g.createContext();function Zxt({value:e,...n}){return t.jsx(Sqe.Provider,{value:e??!0,...n})}const bR=()=>g.useContext(Sqe)??!1,$qe=g.createContext(void 0);function Jxt({value:e,children:n}){return t.jsx($qe.Provider,{value:e,children:n})}function Xxt({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?Lte(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:Lte(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext($qe)}})}let Hpe=0;const Upe={...h7t}.useId;function wR(e){if(Upe!==void 0){const n=Upe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(Hpe+=1,i(`mui-${Hpe}`))},[o]),a}(e)}const Wpe={};function Qpe(e,n,o,i=!1){return g.useMemo(()=>{const a=e&&n[e]||n;if(typeof o=="function"){const s=o(a),c=e?{...n,[e]:s}:s;return i?()=>c:c}return e?{...n,[e]:o}:{...n,...o}},[e,n,o,i])}function kqe(e){const{children:n,theme:o,themeId:i}=e,a=Ite(Wpe),s=Zae()||Wpe,c=Qpe(i,a,o),d=Qpe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=Ite(),f=wR()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&m===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",Wh(()=>{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(xqe,{styles:y}):null}(c);return t.jsx(Kxt,{theme:d,children:t.jsx(GYe.Provider,{value:c,children:t.jsx(Zxt,{value:u,children:t.jsxs(Jxt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Gpe={theme:void 0},Dte="mode",Pte="color-scheme",eyt="data-color-scheme";function tyt(){}const nyt=({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 tyt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function RU(){}function Ype(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function qpe(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 oyt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=Dte,colorSchemeStorageKey:c=Pte,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=nyt,noSsr:p=!1}=e,h=a.join(","),m=a.length>1,f=g.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=g.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=g.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=g.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,D=y?.get(i)||i;return{mode:L,systemMode:Ype(L),lightColorScheme:I,darkColorScheme:D}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return qpe(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),k=g.useCallback(L=>{w(I=>{if(L===I.mode)return I;const D=L??n;return f?.set(D),{...I,mode:D,systemMode:Ype(D)}})},[f,n]),j=g.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const D={...I};return qpe(I,z=>{z==="light"&&(x?.set(L),D.lightColorScheme=L),z==="dark"&&(y?.set(L),D.darkColorScheme=L)}),D}):w(I=>{const D={...I},z=L.light===null?o:L.light,_=L.dark===null?i:L.dark;return z&&(h.includes(z)?(D.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),_&&(h.includes(_)?(D.darkColorScheme=_,y?.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),D}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=g.useCallback(L=>{b.mode==="system"&&w(I=>{const D=L?.matches?"dark":"light";return I.systemMode===D?I:{...I,systemMode:D}})},[b.mode]),E=g.useRef(A);return E.current=A,g.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const L=(...D)=>E.current(...D),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[m]),g.useEffect(()=>{if(m){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)})||RU,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||RU,D=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||RU;return()=>{L(),I(),D()}}},[j,k,h,n,d,m,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?$:void 0,setMode:k,setColorScheme:j}}function iyt(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 Kpe=(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 NU(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(m,f=[],x=[]){Object.entries(m).forEach(([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))})})(d)})(e,(d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||i&&i(d,u))){const h=`--${o?`${o}-`:""}${d.join("-")}`,m=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>f.includes(y))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(a,{[h]:m}),Kpe(s,d,`var(${h})`,p),Kpe(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function na(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 VU(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const rE={black:"#000",white:"#fff"},ryt={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"},ayt="#f3e5f5",lyt="#ce93d8",syt="#ba68c8",cyt="#ab47bc",dyt="#9c27b0",uyt="#7b1fa2",pyt="#e57373",hyt="#ef5350",myt="#f44336",Zpe="#d32f2f",gyt="#c62828",fyt="#ffb74d",xyt="#ffa726",yyt="#ff9800",byt="#f57c00",wyt="#e65100",Cyt="#e3f2fd",vyt="#90caf9",Jpe="#42a5f5",Syt="#1976d2",$yt="#1565c0",kyt="#4fc3f7",Ayt="#29b6f6",jyt="#03a9f4",Xpe="#0288d1",Eyt="#01579b",Iyt="#81c784",Lyt="#66bb6a",Tyt="#4caf50",Dyt="#388e3c",Pyt="#2e7d32",Byt="#1b5e20";function Aqe(){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:rE.white,default:rE.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 jqe=Aqe();function Eqe(){return{text:{primary:rE.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:rE.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 Bte=Eqe();function ehe(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=yR(e.main,a):n==="dark"&&(e.dark=xR(e.main,s)))}function the(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 Jae(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:vyt,light:Cyt,dark:Jpe}:{main:Syt,light:Jpe,dark:$yt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:lyt,light:ayt,dark:cyt}:{main:dyt,light:syt,dark:uyt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:myt,light:pyt,dark:Zpe}:{main:Zpe,light:hyt,dark:gyt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:Ayt,light:kyt,dark:Xpe}:{main:Xpe,light:jyt,dark:Eyt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Lyt,light:Iyt,dark:Dyt}:{main:Pyt,light:Tyt,dark:Byt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:xyt,light:fyt,dark:byt}:{main:"#ed6c02",light:yyt,dark:wyt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=Tte(C),k=Tte(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,Bte.text.primary)>=o?Bte.text.primary:jqe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:$=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(Kf(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Kf(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(the(a,b,"light",v,i),the(a,b,"dark",$,i)):(ehe(b,"light",v,i),ehe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=Aqe():n==="dark"&&(y=Eqe()),Id({common:{...rE},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:m,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:ryt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Myt(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 _yt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function zyt(e){return Math.round(1e5*e)/1e5}const nhe={textTransform:"uppercase"},ohe='"Roboto", "Helvetica", "Arial", sans-serif';function Iqe(e,n){const{fontFamily:o=ohe,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...m}=typeof n=="function"?n(e):n,f=i/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,$,k)=>({fontFamily:o,fontWeight:w,fontSize:x(C),lineHeight:v,...o===ohe?{letterSpacing:`${zyt($/C)}em`}:{},...k,...p}),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(c,14,1.75,.4,nhe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,nhe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Id({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function qa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Oyt=["none",qa(0,2,1,-1,0,1,1,0,0,1,3,0),qa(0,3,1,-2,0,2,2,0,0,1,5,0),qa(0,3,3,-2,0,3,4,0,0,1,8,0),qa(0,2,4,-1,0,4,5,0,0,1,10,0),qa(0,3,5,-1,0,5,8,0,0,1,14,0),qa(0,3,5,-1,0,6,10,0,0,1,18,0),qa(0,4,5,-2,0,7,10,1,0,2,16,1),qa(0,5,5,-3,0,8,10,1,0,3,14,2),qa(0,5,6,-3,0,9,12,1,0,3,16,2),qa(0,6,6,-3,0,10,14,1,0,4,18,3),qa(0,6,7,-4,0,11,15,1,0,4,20,3),qa(0,7,8,-4,0,12,17,2,0,5,22,4),qa(0,7,8,-4,0,13,19,2,0,5,24,4),qa(0,7,9,-4,0,14,21,2,0,5,26,4),qa(0,8,9,-5,0,15,22,2,0,6,28,5),qa(0,8,10,-5,0,16,24,2,0,6,30,5),qa(0,8,11,-5,0,17,26,2,0,6,32,5),qa(0,9,11,-5,0,18,28,2,0,7,34,6),qa(0,9,12,-6,0,19,29,2,0,7,36,6),qa(0,10,13,-6,0,20,31,3,0,8,38,7),qa(0,10,13,-6,0,21,33,3,0,8,40,7),qa(0,10,14,-6,0,22,35,3,0,8,42,7),qa(0,11,14,-7,0,23,36,3,0,9,44,8),qa(0,11,15,-7,0,24,38,3,0,9,46,8)],Fyt={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)"},Lqe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ihe(e){return`${Math.round(e)}ms`}function Ryt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Nyt(e){const n={...Fyt,...e.easing},o={...Lqe,...e.duration};return{getAutoHeightDuration:Ryt,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:ihe(s)} ${c} ${typeof d=="string"?d:ihe(d)}`).join(",")},...e,easing:n,duration:o}}const Vyt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hyt(e){return yf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Tqe(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];!Hyt(d)||c.startsWith("unstable_")?delete i[c]:yf(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-D-ABrdnx.js","assets/sentry-COJR98K6.js","assets/core-CoiynoRK.js","assets/index-C_GjQzUH.js","assets/DefaultTenantHome-BaZh27Bx.js","assets/mui-C1Dt84np.js","assets/getLocaleForTenant-BLpsiOLr.js","assets/analytics-DE2d9aNC.js","assets/utils-BSFKNs4t.js","assets/ScreenRoutes-R2vFklcz.js","assets/analyticsHelper-qNHR5-zx.js","assets/ConnectionAuthScreen-C-v9-LAq.js","assets/QBOConnectionScreen-mD2mPEis.js","assets/empty-CZmWO_-u.js","assets/index-D-AxYilG.js","assets/url-CjWnAiLX.js","assets/index-CigUrPYA.js","assets/decodeURIComponentSafe-TwB1SnrO.js","assets/SignInScreen-r_ANC4Ef.js","assets/useDeviceId-DHSnLejY.js","assets/MagicLinkSignInScreen-BTQ6r2pp.js","assets/NotFoundScreen-Cvae_Z2x.js","assets/MagicLinkRoutes-Gg2h_9D5.js","assets/WiseConfirmationScreen-CtDtoecw.js","assets/CustomerOnboardingAuthScreen-IpaehusK.js","assets/SignOutScreen-9XjeY0Ws.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as g,b as T,c as bte,R as h7t,p as BU,e as Gue,r as Iu,g as ZGe,f as m7t,s as Yue,i as g7t,w as f7t,j as x7t,S as y7t,k as b7t,l as w7t,m as C7t,n as v7t,o as S7t}from"./sentry-COJR98K6.js";import{L as $7t,C as que,_ as Lp,a as lI,b as k7t,c as ZF,d as sI,u as JGe,T as A7t,e as j7t,f as E7t,g as I7t,h as XGe,i as L7t,k as T7t,j as Pt,l as D7t}from"./liveblocks-DrgCyD6E.js";import{f as eYe,r as Br,R as Q8,P as cl,u as bp,m as tYe,g as hi,h as Wg,O as P7t,N as nYe,i as _A,j as JF,k as B7t,l as M7t,n as _7t,o as Up,p as z7t,B as O7t}from"./core-CoiynoRK.js";import{L as Kue,bl as F7t,bm as R7t,bn as H7,bo as N7t,bp as V7t,bq as Nt,br as $S,bs as jm,bt as H7t,bu as a4,bv as Na,bw as Oa,bx as U7t,by as W7t,bz as by,bA as U7,bB as $ae,bC as on,bD as oYe,bE as iYe,bF as kae,bG as $p,bH as Qg,bI as Wc,bJ as If,bK as Q7t,bL as Dl,bM as G7t,bN as kS,bO as Y7t,bP as q7t,bQ as K7t,bR as Hx,bS as Z7t,bT as Zue,bU as J7t,bV as X7t,bW as e6t,bX as t6t,bY as n6t,bZ as o6t,b_ as i6t,b$ as r6t,c0 as a7,c1 as XF,c2 as a6t,c3 as eR,c4 as tR,c5 as nR,c6 as Aae,c7 as oR,c8 as Ov,c9 as Fv,ca as iR,cb as l6t,cc as s6t,cd as Jue,ce as wte,cf as c6t,cg as d6t,ch as jd,ci as rYe,cj as jae,ck as u6t,cl as i9,cm as Xue,cn as p6t,co as h6t,cp as m6t,cq as wy,cr as Cy,cs as aYe,ct as lYe,cu as Eae,cv as g6t,cw as f6t,cx as N_,cy as sYe,cz as x6t,cA as cYe,cB as y6t,cC as zA,cD as epe,cE as b6t,cF as dYe,cG as uYe,cH as pYe,cI as w6t,cJ as AS,cK as tpe,cL as C6t,cM as v6t,cN as hYe,cO as S6t,cP as npe,cQ as Gc,cR as pl,cS as $6t,cT as Rv,cU as Cd,cV as mYe,cW as k6t,cX as tE,cY as vx,cZ as la,c_ as A6t,c$ as j6t,d0 as E6t,d1 as AL,d2 as vh,d3 as I6t,d4 as L6t,d5 as T6t,d6 as D6t,d7 as jL,d8 as Ux,d9 as rR,da as P6t,db as B6t,dc as vy,dd as Ed,de as gYe,df as fYe,dg as M6t,dh as Cte,di as _6t,dj as m1,dk as Wx,dl as Iae,dm as xYe,dn as yYe,dp as bYe,dq as wYe,dr as CYe,ds as vYe,dt as z6t,du as ope,dv as O6t,_ as $1,dw as Lae,dx as SYe,dy as F6t,dz as ipe,dA as Ou,dB as Lf,dC as R6t,dD as N6t,dE as $Ye,dF as vte,dG as EM,dH as V6t,dI as H6t,dJ as U6t,dK as W6t,dL as Q6t,dM as G6t,dN as Y6t,dO as q6t,dP as K6t,dQ as Z6t,dR as hj,dS as mj,dT as kYe,dU as TC,dV as Tae,dW as Dae,dX as jS,dY as Pae,dZ as Bae,d_ as Mae,d$ as _ae,e0 as AYe,e1 as zae,e2 as J6t,e3 as X6t,e4 as jYe,e5 as rpe,e6 as e9t,e7 as Oae,e8 as t9t,e9 as n9t,ea as EYe,eb as o9t,ec as i9t,ed as IYe,ee as r9t,ef as LYe,eg as TYe,eh as a9t,ei as l9t,ej as s9t,ek as c9t,el as d9t,em as u9t,en as p9t,eo as h9t,ep as m9t,eq as ape,er as aR,es as g9t,et as f9t,eu as x9t,ev as y9t,ew as b9t,ex as w9t,ey as C9t,ez as v9t,eA as lpe,eB as DYe,eC as PYe,eD as BYe,eE as MYe,eF as _Ye,eG as zYe,eH as S9t,eI as $9t,eJ as k9t,v as A9t,eK as j9t,eL as E9t,eM as Fae,eN as Lu,eO as OYe,eP as cI,eQ as I9t,eR as FYe,eS as L9t,eT as RYe,eU as T9t,eV as NYe,eW as D9t,eX as P9t,eY as B9t,eZ as M9t,e_ as _9t,e$ as spe,f0 as z9t,f1 as VYe,f2 as gb,f3 as lR,f4 as cpe,f5 as O9t,f6 as dpe,f7 as F9t,f8 as R9t,f9 as HYe,fa as UYe,fb as N9t,fc as V9t,fd as H9t,fe as U9t,ff as W9t,fg as Q9t,fh as V_,fi as Rae,fj as WYe,fk as G9t,fl as gj,fm as Y9t,fn as q9t,fo as K9t,fp as Z9t,fq as J9t,fr as X9t,fs as e8t,ft as t8t,fu as n8t,fv as o8t,fw as i8t,fx as QYe,fy as r8t,fz as a8t,fA as l8t,fB as upe,fC as s8t,fD as c8t,fE as d8t,fF as u8t,fG as p8t,fH as Ste,fI as h8t,fJ as m8t,fK as g8t,fL as f8t,fM as x8t,fN as y8t,fO as b8t,fP as w8t,fQ as ppe,fR as C8t,fS as v8t}from"./zeni-epic-state-D-ABrdnx.js";import{n as l,T as GYe,G as dI,j as Uo,c as Pe,k as zn,C as YYe,u as Nae,a as $te,A as S8t,b as $8t,I as k8t,d as A8t,D as H_,S as qYe}from"./mui-C1Dt84np.js";import{r as j8t,m as ph}from"./analytics-DE2d9aNC.js";import{u as Tp}from"./plaid-OdoQRw_Q.js";import{g as E8t,O as I8t,H as L8t,S as T8t,T as D8t,a as P8t,u as B8t,b as M8t}from"./dnd-BHdOG6wK.js";import{l as _8t}from"./stripe-DMRn4zHo.js";import{L as nv}from"./lottie-vtl_VZ6t.js";import{r as $s}from"./lexical-BiaQ_hiA.js";import{D as kte,P as Ate,_ as KYe,a as ZYe}from"./pdf-B3BwxqhZ.js";import{R as nE,G as Qx,X as Zl,Y as Pl,H as Gx,I as Kc,J as kp,K as Sy,L as Dp,M as z8t,N as ES,O as JYe,P as O8t,Q as sR,S as ov,U as F8t,V as Vae,W as R8t,Z as N8t,_ as V8t}from"./recharts-CFe4o5mZ.js";import{r as H8t}from"./utils-BSFKNs4t.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]="849fcc40-539d-480e-a725-6e3831dcd714",e._sentryDebugIdIdentifier="sentry-dbid-849fcc40-539d-480e-a725-6e3831dcd714")}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 hpe,EL={},U8t=function(){if(hpe)return EL;hpe=1;var e=eYe();return EL.createRoot=e.createRoot,EL.hydrateRoot=e.hydrateRoot,EL}(),gu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof bte<"u"?bte:typeof self<"u"?self:{};function $i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mpe,gpe,fpe={exports:{}},w$={};function XYe(){return gpe||(gpe=1,fpe.exports=function(){if(mpe)return w$;mpe=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,m={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return w$.Fragment=o,w$.jsx=c,w$.jsxs=c,w$}()),fpe.exports}var t=XYe();const W8t=g.createContext(null),MU={didCatch:!1,error:null};let Q8t=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=MU}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(MU)}}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(MU))}render(){const{children:e,fallbackRender:n,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:s}=this.state;let c=e;if(a){const d={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(o)c=g.createElement(o,d);else{if(i===void 0)throw s;c=i}}return g.createElement(W8t.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var xpe,_U={exports:{}},ype,bpe,zU,G8t=(xpe||(xpe=1,bpe=_U.exports,zU=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",D=1e12,z=1e9,_=1e6,R="",N=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=D&&!b||b==="t"?(I+=A.abbreviations.trillion,m/=D):w<D&&w>=z&&!b||b==="b"?(I+=A.abbreviations.billion,m/=z):w<z&&w>=_&&!b||b==="m"?(I+=A.abbreviations.million,m/=_):(w<_&&w>=1e3&&!b||b==="k")&&(I+=A.abbreviations.thousand,m/=1e3)),e._.includes(f,"[.]")&&(L=!0,f=f.replace("[.]",".")),C=m.toString().split(".")[0],v=f.split(".")[1],k=f.indexOf(","),y=(f.split(".")[0].split(",")[0].match(/0/g)||[]).length,v?(e._.includes(v,"[")?(v=(v=v.replace("]","")).split("["),R=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):R=e._.toFixed(m,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(m,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),N=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return k>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+R+(I||""),E?j=(E&&N?"(":"")+j+(E&&N?")":""):$>=0?j=$===0?(N?"-":"+")+j:j+(N?"-":"+"):N&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(m),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(m,f){var x,y,b,w=this._value,C=m||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(m){return o.suffixes.indexOf(m)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(m,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(ype=_U).exports?ype.exports=zU():bpe.numeral=zU()),_U.exports);const Of=$i(G8t);function Kf(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 Ff="$$material";var Y8t={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 q8t(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var K8t=/[A-Z]|^ms/g,Z8t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eqe=function(e){return e.charCodeAt(1)===45},wpe=function(e){return e!=null&&typeof e!="boolean"},OU=q8t(function(e){return eqe(e)?e:e.replace(K8t,"-$&").toLowerCase()}),Cpe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Z8t,function(o,i,a){return V5={name:i,styles:a,next:V5},i})}return Y8t[e]===1||eqe(e)||typeof n!="number"||n===0?n:n+"px"};function U_(e,n,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":var a=o;if(a.anim===1)return V5={name:a.name,styles:a.styles,next:V5},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)V5={name:c.name,styles:c.styles,next:V5},c=c.next;return s.styles+";"}return function(d,u,p){var h="";if(Array.isArray(p))for(var m=0;m<p.length;m++)h+=U_(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;wpe(y)&&(h+=OU(f)+":"+Cpe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)wpe(x[b])&&(h+=OU(f)+":"+Cpe(f,x[b])+";");else{var w=U_(d,u,x);switch(f){case"animation":case"animationName":h+=OU(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var V5,vpe=/label:\s*([^\s;{]+)\s*(;|$)/g,Spe,$pe,kpe,Ape,jpe,Epe={exports:{}};function J8t(){return $pe?Spe:($pe=1,Spe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function X8t(){if(Ape)return kpe;Ape=1;var e=J8t();function n(){}function o(){}return o.resetWarningCache=n,kpe=function(){function i(c,d,u,p,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function a(){return i}i.isRequired=i;var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:n};return s.PropTypes=s,s}}function Hae(){return jpe||(jpe=1,Epe.exports=X8t()()),Epe.exports}const yn=$i(Hae());var ext=function(){function e(o){var i=this;this._insertTag=function(a){var s;s=i.tags.length===0?i.insertionPoint?i.insertionPoint.nextSibling:i.prepend?i.container.firstChild:i.before:i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,s),i.tags.push(a)},this.isSpeedy=o.speedy===void 0||o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(o){o.forEach(this._insertTag)},n.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(s){var c=document.createElement("style");return c.setAttribute("data-emotion",s.key),s.nonce!==void 0&&c.setAttribute("nonce",s.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c}(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(s){if(s.sheet)return s.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===s)return document.styleSheets[c]}(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},n.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),md="-ms-",Ipe="-moz-",Tr="-webkit-",tqe="comm",Uae="rule",Wae="decl",nqe="@keyframes",txt=Math.abs,cR=String.fromCharCode,nxt=Object.assign;function oqe(e){return e.trim()}function Dr(e,n,o){return e.replace(n,o)}function jte(e,n){return e.indexOf(n)}function Oc(e,n){return 0|e.charCodeAt(n)}function oE(e,n,o){return e.slice(n,o)}function og(e){return e.length}function Qae(e){return e.length}function IL(e,n){return n.push(e),e}var dR=1,Nv=1,iqe=0,Cu=0,Cs=0,IS="";function uR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:dR,column:Nv,length:c,return:""}}function C$(e,n){return nxt(uR("",null,null,"",null,null,0),e,{length:-e.length},n)}function wp(){return Cs=Cu<iqe?Oc(IS,Cu++):0,Nv++,Cs===10&&(Nv=1,dR++),Cs}function Pg(){return Oc(IS,Cu)}function IM(){return Cu}function uI(e,n){return oE(IS,e,n)}function iE(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 rqe(e){return dR=Nv=1,iqe=og(IS=e),Cu=0,[]}function aqe(e){return IS="",e}function LM(e){return oqe(uI(Cu-1,Ete(e===91?e+2:e===40?e+1:e)))}function oxt(e){for(;(Cs=Pg())&&Cs<33;)wp();return iE(e)>2||iE(Cs)>3?"":" "}function ixt(e,n){for(;--n&&wp()&&!(Cs<48||Cs>102||Cs>57&&Cs<65||Cs>70&&Cs<97););return uI(e,IM()+(n<6&&Pg()==32&&wp()==32))}function Ete(e){for(;wp();)switch(Cs){case e:return Cu;case 34:case 39:e!==34&&e!==39&&Ete(Cs);break;case 40:e===41&&Ete(e);break;case 92:wp()}return Cu}function rxt(e,n){for(;wp()&&e+Cs!==57&&(e+Cs!==84||Pg()!==47););return"/*"+uI(n,Cu-1)+"*"+cR(e===47?e:wp())}function axt(e){for(;!iE(Pg());)wp();return uI(e,Cu)}function lxt(e){return aqe(TM("",null,null,null,[""],e=rqe(e),0,[0],e))}function TM(e,n,o,i,a,s,c,d,u){for(var p=0,h=0,m=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,$="",k=a,j=s,A=i,E=$;w;)switch(y=v,v=wp()){case 40:if(y!=108&&Oc(E,m-1)==58){jte(E+=Dr(LM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=LM(v);break;case 9:case 10:case 13:case 32:E+=oxt(y);break;case 92:E+=ixt(IM()-1,7);continue;case 47:switch(Pg()){case 42:case 47:IL(sxt(rxt(wp(),IM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=og(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Dr(E,/\f/g,"")),x>0&&og(E)-m&&IL(x>32?Tpe(E+";",i,o,m-1):Tpe(Dr(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(IL(A=Lpe(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)TM(E,n,A,A,k,s,m,d,j);else switch(f===99&&Oc(E,3)===110?100:f){case 100:case 108:case 109:case 115:TM(e,A,A,i&&IL(Lpe(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:TM(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+og(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Cs=Cu>0?Oc(IS,--Cu):0,Nv--,Cs===10&&(Nv=1,dR--),Cs==125))continue}switch(E+=cR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(og(E)-1)*C,C=1;break;case 64:Pg()===45&&(E+=LM(wp())),f=Pg(),h=m=og($=E+=axt(IM())),v++;break;case 45:y===45&&og(E)==2&&(b=0)}}return s}function Lpe(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=Qae(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=oE(e,m+1,m=txt(b=c[y])),$=e;C<x;++C)($=oqe(b>0?f[C]+" "+v:Dr(v,/&\f/g,f[C])))&&(u[w++]=$);return uR(e,n,o,a===0?Uae:d,u,p,h)}function sxt(e,n,o){return uR(e,n,o,tqe,cR(Cs),oE(e,2,-2),0)}function Tpe(e,n,o,i){return uR(e,n,o,Wae,oE(e,0,i),oE(e,i+1,-1),i)}function iv(e,n){for(var o="",i=Qae(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function cxt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Wae:return e.return=e.return||e.value;case tqe:return"";case nqe:return e.return=e.value+"{"+iv(e.children,i)+"}";case Uae:e.value=e.props.join(",")}return og(o=iv(e.children,i))?e.return=e.value+"{"+o+"}":""}function dxt(e){return function(n){n.root||(n=n.return)&&e(n)}}var uxt=function(e,n,o){for(var i=0,a=0;i=a,a=Pg(),i===38&&a===12&&(n[o]=1),!iE(a);)wp();return uI(e,Cu)},pxt=function(e,n){return aqe(function(o,i){var a=-1,s=44;do switch(iE(s)){case 0:s===38&&Pg()===12&&(i[a]=1),o[a]+=uxt(Cu-1,i,a);break;case 2:o[a]+=LM(s);break;case 4:if(s===44){o[++a]=Pg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=cR(s)}while(s=wp());return o}(rqe(e),n))},Dpe=new WeakMap,hxt=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||Dpe.get(o))&&!i){Dpe.set(e,!0);for(var a=[],s=pxt(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]}}},mxt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function lqe(e,n){switch(function(o,i){return 45^Oc(o,0)?(((i<<2^Oc(o,0))<<2^Oc(o,1))<<2^Oc(o,2))<<2^Oc(o,3):0}(e,n)){case 5103:return Tr+"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 Tr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tr+e+Ipe+e+md+e+e;case 6828:case 4268:return Tr+e+md+e+e;case 6165:return Tr+e+md+"flex-"+e+e;case 5187:return Tr+e+Dr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+md+"flex-$1$2")+e;case 5443:return Tr+e+md+"flex-item-"+Dr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+md+"flex-line-pack"+Dr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+md+Dr(e,"shrink","negative")+e;case 5292:return Tr+e+md+Dr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Dr(e,"-grow","")+Tr+e+md+Dr(e,"grow","positive")+e;case 4554:return Tr+Dr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Dr(Dr(Dr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Dr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Dr(Dr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+md+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Dr(e,/(.+)-inline(.+)/,Tr+"$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(og(e)-1-n>6)switch(Oc(e,n+1)){case 109:if(Oc(e,n+4)!==45)break;case 102:return Dr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+Ipe+(Oc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~jte(e,"stretch")?lqe(Dr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Oc(e,n+1)!==115)break;case 6444:switch(Oc(e,og(e)-3-(~jte(e,"!important")&&10))){case 107:return Dr(e,":",":"+Tr)+e;case 101:return Dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(Oc(e,14)===45?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+md+"$2box$3")+e}break;case 5936:switch(Oc(e,n+11)){case 114:return Tr+e+md+Dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+md+Dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+md+Dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+md+e+e}return e}var gxt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Wae:e.return=lqe(e.value,e.length);break;case nqe:return iv([C$(e,{value:Dr(e.value,"@","@"+Tr)})],i);case Uae: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 iv([C$(e,{props:[Dr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return iv([C$(e,{props:[Dr(a,/:(plac\w+)/,":"+Tr+"input-$1")]}),C$(e,{props:[Dr(a,/:(plac\w+)/,":-moz-$1")]}),C$(e,{props:[Dr(a,/:(plac\w+)/,md+"input-$1")]})],i)}return""})}}],sqe=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||gxt,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=[hxt,mxt],h=[cxt,dxt(function(x){u.insert(x)})],m=function(x){var y=Qae(x);return function(b,w,C,v){for(var $="",k=0;k<y;k++)$+=x[k](b,w,C,v)||"";return $}}(p.concat(a,h));d=function(x,y,b,w){u=b,function(C){iv(lxt(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new ext({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 cqe(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(dI,{styles:i})}const Ppe=[];function l7(e){return Ppe[0]=e,function(n,o,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var a=!0,s="";V5=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=U_(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=U_(i,o,n[d]),a&&(s+=c[d]);vpe.lastIndex=0;for(var u,p="";(u=vpe.exec(s))!==null;)p+="-"+u[1];var h=function(m){for(var f,x=0,y=0,b=m.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&m.charCodeAt(y)|(255&m.charCodeAt(++y))<<8|(255&m.charCodeAt(++y))<<16|(255&m.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&m.charCodeAt(y+2))<<16;case 2:x^=(255&m.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&m.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)}(s)+p;return{name:h,styles:s,next:V5}}(Ppe)}var Bpe,Mpe,_pe={exports:{}},ia={};function fxt(){if(Bpe)return ia;Bpe=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case o:case a:case i:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case m:case h:case s:return b;default:return w}}case n:return w}}}return ia.ContextConsumer=s,ia.ContextProvider=c,ia.Element=e,ia.ForwardRef=d,ia.Fragment=o,ia.Lazy=m,ia.Memo=h,ia.Portal=n,ia.Profiler=a,ia.StrictMode=i,ia.Suspense=u,ia.SuspenseList=p,ia.isContextConsumer=function(b){return y(b)===s},ia.isContextProvider=function(b){return y(b)===c},ia.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ia.isForwardRef=function(b){return y(b)===d},ia.isFragment=function(b){return y(b)===o},ia.isLazy=function(b){return y(b)===m},ia.isMemo=function(b){return y(b)===h},ia.isPortal=function(b){return y(b)===n},ia.isProfiler=function(b){return y(b)===a},ia.isStrictMode=function(b){return y(b)===i},ia.isSuspense=function(b){return y(b)===u},ia.isSuspenseList=function(b){return y(b)===p},ia.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===i||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===h||b.$$typeof===c||b.$$typeof===s||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},ia.typeOf=y,ia}function xxt(){return Mpe||(Mpe=1,_pe.exports=fxt()),_pe.exports}var dqe=xxt();function yf(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 uqe(e){if(g.isValidElement(e)||dqe.isValidElementType(e)||!yf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=uqe(e[o])}),n}function Id(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return yf(e)&&yf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||dqe.isValidElementType(n[a])?i[a]=n[a]:yf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&yf(e[a])?i[a]=Id(e[a],n[a],o):o.clone?i[a]=yf(n[a])?uqe(n[a]):n[a]:i[a]=n[a]}),i}function yxt(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,s=(h=>{const m=Object.keys(h).map(f=>({key:f,val:h[f]}))||[];return m.sort((f,x)=>f.val-x.val),m.reduce((f,x)=>({...f,[x.key]:x.val}),{})})(n),c=Object.keys(s);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-i/100}${o})`}function p(h,m){const f=c.indexOf(m);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${o}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:m)-i/100}${o})`}return{keys:c,values:s,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const m=c.indexOf(h);return m===0?d(c[1]):m===c.length-1?u(c[m]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:o,...a}}function zpe(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 bxt={borderRadius:4};function fj(e,n){return n?Id(e,n,{clone:!1}):e}const pR={xs:0,sm:600,md:900,lg:1200,xl:1536},Ope={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pR[e]}px)`},wxt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:pR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Zf(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||Ope;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||Ope;return Object.keys(n).reduce((s,c)=>{if(function(d,u){return u==="@"||u.startsWith("@")&&(d.some(p=>u.startsWith(`@${p}`))||!!u.match(/^@\d/))}(a.keys,c)){const d=function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,m,f]=h,x=Number.isNaN(+m)?m||0:+m;return u.containerQueries(f).up(x)}(i.containerQueries?i:wxt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||pR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Fpe(e,n){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},n)}function ji(e){if(typeof e!="string")throw new Error(Kf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hR(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 W_(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:hR(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=hR(c.theme,i)||{};return Zf(c,d,p=>{let h=W_(u,a,p);return p===h&&typeof p=="string"&&(h=W_(u,a,`${n}${p==="default"?"":ji(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const Cxt={m:"margin",p:"padding"},vxt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rpe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sxt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!Rpe[e])return[e];e=Rpe[e]}const[n,o]=e.split(""),i=Cxt[n],a=vxt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),pqe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hqe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function pI(e,n,o,i){const a=hR(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 Gae(e){return pI(e,"spacing",8)}function hI(e,n){return typeof n=="string"||n==null?n:e(n)}function $xt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=hI(c,d),u),{})}(Sxt(o),i);return Zf(e,e[o],a)}function mqe(e,n){const o=Gae(e.theme);return Object.keys(e).map(i=>$xt(e,n,i,o)).reduce(fj,{})}function vl(e){return mqe(e,pqe)}function Sl(e){return mqe(e,hqe)}function gqe(e=8,n=Gae({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 mR(...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]?fj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Sh(e){return typeof e!="number"?e:`${e}px solid`}function r0(e,n){return Ql({prop:e,themeKey:"borders",transform:n})}vl.propTypes={},vl.filterProps=pqe,Sl.propTypes={},Sl.filterProps=hqe;const kxt=r0("border",Sh),Axt=r0("borderTop",Sh),jxt=r0("borderRight",Sh),Ext=r0("borderBottom",Sh),Ixt=r0("borderLeft",Sh),Lxt=r0("borderColor"),Txt=r0("borderTopColor"),Dxt=r0("borderRightColor"),Pxt=r0("borderBottomColor"),Bxt=r0("borderLeftColor"),Mxt=r0("outline",Sh),_xt=r0("outlineColor"),DM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=pI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:hI(n,i)});return Zf(e,e.borderRadius,o)}return null};DM.propTypes={},DM.filterProps=["borderRadius"],mR(kxt,Axt,jxt,Ext,Ixt,Lxt,Txt,Dxt,Pxt,Bxt,DM,Mxt,_xt);const Q_=e=>{if(e.gap!==void 0&&e.gap!==null){const n=pI(e.theme,"spacing",8),o=i=>({gap:hI(n,i)});return Zf(e,e.gap,o)}return null};Q_.propTypes={},Q_.filterProps=["gap"];const G_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=pI(e.theme,"spacing",8),o=i=>({columnGap:hI(n,i)});return Zf(e,e.columnGap,o)}return null};G_.propTypes={},G_.filterProps=["columnGap"];const Y_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=pI(e.theme,"spacing",8),o=i=>({rowGap:hI(n,i)});return Zf(e,e.rowGap,o)}return null};Y_.propTypes={},Y_.filterProps=["rowGap"];function rv(e,n){return n==="grey"?n:e}mR(Q_,G_,Y_,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 pp(e){return e<=1&&e!==0?100*e+"%":e}mR(Ql({prop:"color",themeKey:"palette",transform:rv}),Ql({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rv}),Ql({prop:"backgroundColor",themeKey:"palette",transform:rv}));const zxt=Ql({prop:"width",transform:pp}),Yae=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||pR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:pp(o)}};return Zf(e,e.maxWidth,n)}return null};Yae.filterProps=["maxWidth"];const Oxt=Ql({prop:"minWidth",transform:pp}),Fxt=Ql({prop:"height",transform:pp}),Rxt=Ql({prop:"maxHeight",transform:pp}),Nxt=Ql({prop:"minHeight",transform:pp});Ql({prop:"size",cssProperty:"width",transform:pp}),Ql({prop:"size",cssProperty:"height",transform:pp});mR(zxt,Yae,Oxt,Fxt,Rxt,Nxt,Ql({prop:"boxSizing"}));const gR={border:{themeKey:"borders",transform:Sh},borderTop:{themeKey:"borders",transform:Sh},borderRight:{themeKey:"borders",transform:Sh},borderBottom:{themeKey:"borders",transform:Sh},borderLeft:{themeKey:"borders",transform:Sh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:DM},color:{themeKey:"palette",transform:rv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rv},backgroundColor:{themeKey:"palette",transform:rv},p:{style:Sl},pt:{style:Sl},pr:{style:Sl},pb:{style:Sl},pl:{style:Sl},px:{style:Sl},py:{style:Sl},padding:{style:Sl},paddingTop:{style:Sl},paddingRight:{style:Sl},paddingBottom:{style:Sl},paddingLeft:{style:Sl},paddingX:{style:Sl},paddingY:{style:Sl},paddingInline:{style:Sl},paddingInlineStart:{style:Sl},paddingInlineEnd:{style:Sl},paddingBlock:{style:Sl},paddingBlockStart:{style:Sl},paddingBlockEnd:{style:Sl},m:{style:vl},mt:{style:vl},mr:{style:vl},mb:{style:vl},ml:{style:vl},mx:{style:vl},my:{style:vl},margin:{style:vl},marginTop:{style:vl},marginRight:{style:vl},marginBottom:{style:vl},marginLeft:{style:vl},marginX:{style:vl},marginY:{style:vl},marginInline:{style:vl},marginInlineStart:{style:vl},marginInlineEnd:{style:vl},marginBlock:{style:vl},marginBlockStart:{style:vl},marginBlockEnd:{style:vl},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:Q_},rowGap:{style:Y_},columnGap:{style:G_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pp},maxWidth:{style:Yae},minWidth:{transform:pp},height:{transform:pp},maxHeight:{transform:pp},minHeight:{transform:pp},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"}},Yx=function(){function e(n,o,i,a){const s={[n]:o,theme:i},c=a[n];if(!c)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const m=hR(i,u)||{};return h?h(s):Zf(s,o,f=>{let x=W_(m,p,f);return f===x&&typeof f=="string"&&(x=W_(m,p,`${n}${f==="default"?"":ji(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??gR;function d(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=function(x={}){return x.keys?.reduce((y,b)=>(y[x.up(b)]={},y),{})||{}}(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=function(b,w){return typeof b=="function"?b(w):b}(p[x],a);if(y!=null)if(typeof y=="object")if(c[x])f=fj(f,e(x,y,a,c));else{const b=Zf({theme:a},y,w=>({[x]:w}));(function(...w){const C=w.reduce(($,k)=>$.concat(Object.keys(k)),[]),v=new Set(C);return w.every($=>v.size===Object.keys($).length)})(b,y)?f[x]=n({sx:y,theme:a,nested:!0}):f=fj(f,b)}else f=fj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":zpe(a,Fpe(m,f))}:zpe(a,Fpe(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function Vxt(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 qae(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Id({breakpoints:yxt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:gqe(a),shape:{...bxt,...s}},c);return d=function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const m={},f=x=>(h(m,x),m);return h(f),{...u,containerQueries:f}}(d),d.applyStyles=Vxt,d=n.reduce((u,p)=>Id(u,p),d),d.unstable_sxConfig={...gR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return Yx({sx:u,theme:this})},d}function Ite(e=null){const n=g.useContext(GYe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}Yx.filterProps=["sx"];const Hxt=qae();function fqe(e=Hxt){return Ite(e)}function Npe(e){const n=l7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function xqe({styles:e,themeId:n,defaultTheme:o={}}){const i=fqe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Npe(typeof c=="function"?c(a):c)):Npe(s)),t.jsx(cqe,{styles:s})}const Vpe=e=>e,Uxt=(()=>{let e=Vpe;return{configure(n){e=n},generate:n=>e(n),reset(){e=Vpe}}})();function yqe(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=yqe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function vi(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=yqe(e))&&(i&&(i+=" "),i+=n);return i}const Wxt={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 ta(e,n,o="Mui"){const i=Wxt[n];return i?`${o}-${i}`:`${Uxt.generate(e)}-${n}`}function Ar(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=ta(e,a,o)}),i}function bqe(e){const{variants:n,...o}=e,i={variants:n,style:l7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=l7(a.style))}),i}const Qxt=qae();function FU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function G8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Gxt(e){return e?(n,o)=>o[e]:null}function PM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>PM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?G8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?G8(l7(c),o):c}return wqe(e,i.variants,[a],o)}return i?.isProcessed?o?G8(l7(i.style),o):i.style:o?G8(l7(i),o):i}function wqe(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?G8(l7(c.style(a)),i):c.style(a))):o.push(i?G8(l7(c.style),i):c.style)}return o}function Yxt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Lte(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]=Lte(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=vi(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 Wh=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Kae(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 S7(e){if(e.type)return e;if(e.charAt(0)==="#")return S7(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(Kf(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(Kf(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const OA=(e,n)=>{try{return(o=>{const i=S7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function fR(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 Cqe(e){e=S7(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])),fR({type:d,values:u})}function Tte(e){let n=(e=S7(e)).type==="hsl"||e.type==="hsla"?S7(Cqe(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 q_(e,n){return e=S7(e),n=Kae(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,fR(e)}function r9(e,n,o){try{return q_(e,n)}catch{return e}}function xR(e,n){if(e=S7(e),n=Kae(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 fR(e)}function qr(e,n,o){try{return xR(e,n)}catch{return e}}function yR(e,n){if(e=S7(e),n=Kae(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 fR(e)}function Kr(e,n,o){try{return yR(e,n)}catch{return e}}function LL(e,n,o){try{return function(i,a=.15){return Tte(i)>.5?xR(i,a):yR(i,a)}(e,n)}catch{return e}}const vqe=g.createContext(null);function Zae(){return g.useContext(vqe)}const qxt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kxt(e){const{children:n,theme:o}=e,i=Zae(),a=g.useMemo(()=>{const s=i===null?{...o}:function(c,d){return typeof d=="function"?d(c):{...c,...d}}(i,o);return s!=null&&(s[qxt]=i!==null),s},[o,i]);return t.jsx(vqe.Provider,{value:a,children:n})}const Sqe=g.createContext();function Zxt({value:e,...n}){return t.jsx(Sqe.Provider,{value:e??!0,...n})}const bR=()=>g.useContext(Sqe)??!1,$qe=g.createContext(void 0);function Jxt({value:e,children:n}){return t.jsx($qe.Provider,{value:e,children:n})}function Xxt({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?Lte(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:Lte(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext($qe)}})}let Hpe=0;const Upe={...h7t}.useId;function wR(e){if(Upe!==void 0){const n=Upe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(Hpe+=1,i(`mui-${Hpe}`))},[o]),a}(e)}const Wpe={};function Qpe(e,n,o,i=!1){return g.useMemo(()=>{const a=e&&n[e]||n;if(typeof o=="function"){const s=o(a),c=e?{...n,[e]:s}:s;return i?()=>c:c}return e?{...n,[e]:o}:{...n,...o}},[e,n,o,i])}function kqe(e){const{children:n,theme:o,themeId:i}=e,a=Ite(Wpe),s=Zae()||Wpe,c=Qpe(i,a,o),d=Qpe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=Ite(),f=wR()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&m===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",Wh(()=>{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(xqe,{styles:y}):null}(c);return t.jsx(Kxt,{theme:d,children:t.jsx(GYe.Provider,{value:c,children:t.jsx(Zxt,{value:u,children:t.jsxs(Jxt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Gpe={theme:void 0},Dte="mode",Pte="color-scheme",eyt="data-color-scheme";function tyt(){}const nyt=({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 tyt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function RU(){}function Ype(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function qpe(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 oyt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=Dte,colorSchemeStorageKey:c=Pte,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=nyt,noSsr:p=!1}=e,h=a.join(","),m=a.length>1,f=g.useMemo(()=>u?.({key:s,storageWindow:d}),[u,s,d]),x=g.useMemo(()=>u?.({key:`${c}-light`,storageWindow:d}),[u,c,d]),y=g.useMemo(()=>u?.({key:`${c}-dark`,storageWindow:d}),[u,c,d]),[b,w]=g.useState(()=>{const L=f?.get(n)||n,I=x?.get(o)||o,D=y?.get(i)||i;return{mode:L,systemMode:Ype(L),lightColorScheme:I,darkColorScheme:D}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return qpe(L,I=>I==="light"?L.lightColorScheme:I==="dark"?L.darkColorScheme:void 0)}(b),k=g.useCallback(L=>{w(I=>{if(L===I.mode)return I;const D=L??n;return f?.set(D),{...I,mode:D,systemMode:Ype(D)}})},[f,n]),j=g.useCallback(L=>{L?typeof L=="string"?L&&!h.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):w(I=>{const D={...I};return qpe(I,z=>{z==="light"&&(x?.set(L),D.lightColorScheme=L),z==="dark"&&(y?.set(L),D.darkColorScheme=L)}),D}):w(I=>{const D={...I},z=L.light===null?o:L.light,_=L.dark===null?i:L.dark;return z&&(h.includes(z)?(D.lightColorScheme=z,x?.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),_&&(h.includes(_)?(D.darkColorScheme=_,y?.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),D}):w(I=>(x?.set(o),y?.set(i),{...I,lightColorScheme:o,darkColorScheme:i}))},[h,x,y,o,i]),A=g.useCallback(L=>{b.mode==="system"&&w(I=>{const D=L?.matches?"dark":"light";return I.systemMode===D?I:{...I,systemMode:D}})},[b.mode]),E=g.useRef(A);return E.current=A,g.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const L=(...D)=>E.current(...D),I=window.matchMedia("(prefers-color-scheme: dark)");return I.addListener(L),L(I),()=>{I.removeListener(L)}},[m]),g.useEffect(()=>{if(m){const L=f?.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)})||RU,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||RU,D=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||RU;return()=>{L(),I(),D()}}},[j,k,h,n,d,m,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?$:void 0,setMode:k,setColorScheme:j}}function iyt(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 Kpe=(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 NU(e,n){const{prefix:o,shouldSkipGeneratingVar:i}=n||{},a={},s={},c={};return((d,u,p)=>{(function h(m,f=[],x=[]){Object.entries(m).forEach(([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))})})(d)})(e,(d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||i&&i(d,u))){const h=`--${o?`${o}-`:""}${d.join("-")}`,m=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>f.includes(y))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(a,{[h]:m}),Kpe(s,d,`var(${h})`,p),Kpe(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function na(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 VU(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const rE={black:"#000",white:"#fff"},ryt={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"},ayt="#f3e5f5",lyt="#ce93d8",syt="#ba68c8",cyt="#ab47bc",dyt="#9c27b0",uyt="#7b1fa2",pyt="#e57373",hyt="#ef5350",myt="#f44336",Zpe="#d32f2f",gyt="#c62828",fyt="#ffb74d",xyt="#ffa726",yyt="#ff9800",byt="#f57c00",wyt="#e65100",Cyt="#e3f2fd",vyt="#90caf9",Jpe="#42a5f5",Syt="#1976d2",$yt="#1565c0",kyt="#4fc3f7",Ayt="#29b6f6",jyt="#03a9f4",Xpe="#0288d1",Eyt="#01579b",Iyt="#81c784",Lyt="#66bb6a",Tyt="#4caf50",Dyt="#388e3c",Pyt="#2e7d32",Byt="#1b5e20";function Aqe(){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:rE.white,default:rE.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 jqe=Aqe();function Eqe(){return{text:{primary:rE.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:rE.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 Bte=Eqe();function ehe(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=yR(e.main,a):n==="dark"&&(e.dark=xR(e.main,s)))}function the(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 Jae(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:vyt,light:Cyt,dark:Jpe}:{main:Syt,light:Jpe,dark:$yt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:lyt,light:ayt,dark:cyt}:{main:dyt,light:syt,dark:uyt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:myt,light:pyt,dark:Zpe}:{main:Zpe,light:hyt,dark:gyt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:Ayt,light:kyt,dark:Xpe}:{main:Xpe,light:jyt,dark:Eyt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Lyt,light:Iyt,dark:Dyt}:{main:Pyt,light:Tyt,dark:Byt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:xyt,light:fyt,dark:byt}:{main:"#ed6c02",light:yyt,dark:wyt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=Tte(C),k=Tte(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,Bte.text.primary)>=o?Bte.text.primary:jqe.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:$=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(Kf(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Kf(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(the(a,b,"light",v,i),the(a,b,"dark",$,i)):(ehe(b,"light",v,i),ehe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=Aqe():n==="dark"&&(y=Eqe()),Id({common:{...rE},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:m,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:ryt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function Myt(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 _yt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function zyt(e){return Math.round(1e5*e)/1e5}const nhe={textTransform:"uppercase"},ohe='"Roboto", "Helvetica", "Arial", sans-serif';function Iqe(e,n){const{fontFamily:o=ohe,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...m}=typeof n=="function"?n(e):n,f=i/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,$,k)=>({fontFamily:o,fontWeight:w,fontSize:x(C),lineHeight:v,...o===ohe?{letterSpacing:`${zyt($/C)}em`}:{},...k,...p}),b={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(c,14,1.75,.4,nhe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,nhe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Id({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function qa(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Oyt=["none",qa(0,2,1,-1,0,1,1,0,0,1,3,0),qa(0,3,1,-2,0,2,2,0,0,1,5,0),qa(0,3,3,-2,0,3,4,0,0,1,8,0),qa(0,2,4,-1,0,4,5,0,0,1,10,0),qa(0,3,5,-1,0,5,8,0,0,1,14,0),qa(0,3,5,-1,0,6,10,0,0,1,18,0),qa(0,4,5,-2,0,7,10,1,0,2,16,1),qa(0,5,5,-3,0,8,10,1,0,3,14,2),qa(0,5,6,-3,0,9,12,1,0,3,16,2),qa(0,6,6,-3,0,10,14,1,0,4,18,3),qa(0,6,7,-4,0,11,15,1,0,4,20,3),qa(0,7,8,-4,0,12,17,2,0,5,22,4),qa(0,7,8,-4,0,13,19,2,0,5,24,4),qa(0,7,9,-4,0,14,21,2,0,5,26,4),qa(0,8,9,-5,0,15,22,2,0,6,28,5),qa(0,8,10,-5,0,16,24,2,0,6,30,5),qa(0,8,11,-5,0,17,26,2,0,6,32,5),qa(0,9,11,-5,0,18,28,2,0,7,34,6),qa(0,9,12,-6,0,19,29,2,0,7,36,6),qa(0,10,13,-6,0,20,31,3,0,8,38,7),qa(0,10,13,-6,0,21,33,3,0,8,40,7),qa(0,10,14,-6,0,22,35,3,0,8,42,7),qa(0,11,14,-7,0,23,36,3,0,9,44,8),qa(0,11,15,-7,0,24,38,3,0,9,46,8)],Fyt={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)"},Lqe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ihe(e){return`${Math.round(e)}ms`}function Ryt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Nyt(e){const n={...Fyt,...e.easing},o={...Lqe,...e.duration};return{getAutoHeightDuration:Ryt,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:ihe(s)} ${c} ${typeof d=="string"?d:ihe(d)}`).join(",")},...e,easing:n,duration:o}}const Vyt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hyt(e){return yf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Tqe(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];!Hyt(d)||c.startsWith("unstable_")?delete i[c]:yf(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
|
|
|
@@ -6564,7 +6564,7 @@ Initiate your first transfer to start earning yield.`,insuredFundsTooltip:"Secur
|
|
|
6564
6564
|
padding-top: ${e=>Au.ButtonContainerPaddingTop.valuePx(e.windowSize)};
|
|
6565
6565
|
`,W6n=l.div``,Q6n=l(e=>g.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),g.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),g.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"})))`
|
|
6566
6566
|
transform: scale(1, 0.9);
|
|
6567
|
-
`,G6n=l(fl)``,hve="application/pdf",xst=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],Y6n={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function q6n(e,n,o){const i=e.getViewport({scale:n}),a=document.createElement("canvas");a.width=Math.floor(i.width),a.height=Math.floor(i.height);const s=a.getContext("2d");if(s==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:s,viewport:i}).promise,(await function(c,d){return new Promise((u,p)=>{c.toBlob(h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))},"image/jpeg",d)})}(a,o)).arrayBuffer()}async function K6n(e,n){const o=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===hve){const a=await async function(s,c){const[{PDFDocument:d},u]=await Promise.all([$1(()=>import("./pdf-lib-
|
|
6567
|
+
`,G6n=l(fl)``,hve="application/pdf",xst=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],Y6n={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function q6n(e,n,o){const i=e.getViewport({scale:n}),a=document.createElement("canvas");a.width=Math.floor(i.width),a.height=Math.floor(i.height);const s=a.getContext("2d");if(s==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:s,viewport:i}).promise,(await function(c,d){return new Promise((u,p)=>{c.toBlob(h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))},"image/jpeg",d)})}(a,o)).arrayBuffer()}async function K6n(e,n){const o=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===hve){const a=await async function(s,c){const[{PDFDocument:d},u]=await Promise.all([$1(()=>import("./pdf-lib-CN7VF28q.js").then(b=>b.i),__vite__mapDeps([0,1,2])),$1(()=>import("./pdf-B3BwxqhZ.js").then(b=>b.i),__vite__mapDeps([0,1,2])).then(b=>b.pdfjs)]),p=await s.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,m=h.numPages,f=await d.create();for(let b=1;b<=m;b++){const w=await h.getPage(b),C=await q6n(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),$=v.scale(1);f.addPage([$.width,$.height]).drawImage(v,{x:0,y:0,width:$.width,height:$.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:hve,lastModified:s.lastModified})}(o,n);return a.size<o.size?{blob:a,name:a.name}:{blob:e,name:n}}const i=await(async(a,s)=>{if(xst.includes(a.type)===!1)return a;const c=await zc(a,Y6n),d=c.type.split("/")[1],u=`${s.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:a.lastModified,type:c.type})})(o,n);return{blob:i,name:i.name}}const Z6n=({fileType:e="file",fileRef:n,name:o,value:i="",multiple:a=!1,acceptableTypes:s,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:o,value:i,size:1e3,"data-testid":q("input-file-element-mobile",o),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(s??"image/jpg, image/jpeg").toString()}`,multiple:a,capture:!0}),VI=({shouldDisplay:e,width:n=30,height:o=30,styles:i,animationInLoop:a=!1})=>{const[,s]=Ese(nat),[c]=vr("MoneyTransferSuccess");return T.useEffect(()=>{e&&s(!0)},[e,s]),e&&c!=null?t.jsx(Ta,{style:{width:n,height:o,...i},play:!0,animationData:c,loop:a,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null};l.div`
|
|
6568
6568
|
display: flex;
|
|
6569
6569
|
overflow: hidden;
|
|
6570
6570
|
width: 100%;
|
|
@@ -20336,7 +20336,7 @@ to {
|
|
|
20336
20336
|
justify-content: center;
|
|
20337
20337
|
align-items: center;
|
|
20338
20338
|
margin-right: ${e=>WYn.approvalCountMarginRight.valuePx(e.windowSize)};
|
|
20339
|
-
`,j1t=({card:e,data:n,actions:o,isExpenseAutomationEnabledForUser:i,analytics:a,dndProps:s})=>{const{isUncategorizedExpensesTransactionsExist:c,isUncategorizedIncomeTransactionsExist:d,isUncategorizedExpenseAccountIdentified:u,isUncategorizedIncomeAccountIdentified:p,numOfBillsPendingApproval:h,numOfReimbursementsPendingApproval:m}=n.tasks,f=u===!1||p===!1,x=ce();return t.jsx(bl,{isDragging:s?.draggedCardType!=null,isDragOver:s?.dragOverCard===e.cardType,draggable:!0,onDragStart:y=>s?.onDragStart(e.cardType,y),onDragOver:y=>s?.onDragOver(y,e.cardType),onDragLeave:y=>s?.onDragLeave(y),onDrop:y=>s?.onDrop(y,e.cardType),dimension:e.dimension,children:t.jsx(_u,{card:e,actions:{onCardClick:()=>{},onReloadData:o.onReloadData},children:t.jsx(yl,{dimension:e.dimension,style:{cursor:"default"},children:t.jsxs(QYn,{windowSize:x,children:[t.jsx(GYn,{children:t.jsx(qYn,{children:X.getLocalizedStrings().taskCard.title})}),t.jsxs(YYn,{children:[m>0&&t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("remi-awaiting-approval"),onClick:()=>{a?.trackReimbursementTaskCard(m),o.onCategoryClick?.("reimbursement","pending_approval","awaitingMyApproval")},"data-testid":q("dashboard-tasks-card-remi-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.reimbursementsAwaitingApproval,t.jsxs(MAe,{children:[t.jsx(_Ae,{windowSize:x,textColor:k9("remi-awaiting-approval"),children:m}),t.jsx(Ck,{})]})]})}),h>0&&t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("bills-awaiting-approval"),onClick:()=>{a?.trackBillPayTaskCard(h),o.onCategoryClick?.("bill-pay","pending_approval","awaiting_my_approval")},"data-testid":q("dashboard-tasks-card-bills-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.billsAwaitingApproval,t.jsxs(MAe,{children:[t.jsx(_Ae,{windowSize:x,textColor:k9("bills-awaiting-approval"),children:h}),t.jsx(Ck,{})]})]})}),f===!0?t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("uncategorized-account-mapping"),onClick:()=>o.onCategoryClick?.("uncategorized-account-mapping"),"data-testid":q("dashboard-tasks-card-uncategorized-account-mapping",e.cardType),children:[X.getLocalizedStrings().taskCard.uncategorizedAccountMappingText,t.jsx(Ck,{})]})}):null,!i&&c?t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("uncategorized-expense"),onClick:()=>o.onCategoryClick?.("uncategorized-expense"),"data-testid":q("dashboard-tasks-card-uncategorized-expense",e.cardType),children:[X.getLocalizedStrings().taskCard.expensesText,t.jsx(Ck,{})]})}):null,!i&&d?t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("uncategorized-income"),onClick:()=>o.onCategoryClick?.("uncategorized-income"),"data-testid":q("dashboard-tasks-card-uncategorized-income",e.cardType),children:[X.getLocalizedStrings().taskCard.incomeText,t.jsx(Ck,{})]})}):null]})]})})})},e.cardIndex)},k9=e=>{switch(e){case"uncategorized-income":return new Gt(am.graphColor33);case"uncategorized-expense":return new Gt(am.graphColor17);case"bills-awaiting-approval":return new Gt(am.graphColor09);case"remi-awaiting-approval":return new Gt(am.graphColor05);case"uncategorized-account-mapping":return new Gt(am.graphColor34);default:return new Gt(Ro.brandColorJadeDark)}};T.memo(j1t);const qce=e=>g.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{filter:"url(#filter0_f_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),g.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),g.createElement("g",{filter:"url(#filter1_d_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),g.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),g.createElement("g",{clipPath:"url(#clip0_251_38441)"},g.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),g.createElement("defs",null,g.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),g.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),g.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g.createElement("feOffset",{dy:4}),g.createElement("feGaussianBlur",{stdDeviation:2}),g.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),g.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),g.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),g.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("clipPath",{id:"clip0_251_38441"},g.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),zAe=g.lazy(()=>$1(()=>import("./index-
|
|
20339
|
+
`,j1t=({card:e,data:n,actions:o,isExpenseAutomationEnabledForUser:i,analytics:a,dndProps:s})=>{const{isUncategorizedExpensesTransactionsExist:c,isUncategorizedIncomeTransactionsExist:d,isUncategorizedExpenseAccountIdentified:u,isUncategorizedIncomeAccountIdentified:p,numOfBillsPendingApproval:h,numOfReimbursementsPendingApproval:m}=n.tasks,f=u===!1||p===!1,x=ce();return t.jsx(bl,{isDragging:s?.draggedCardType!=null,isDragOver:s?.dragOverCard===e.cardType,draggable:!0,onDragStart:y=>s?.onDragStart(e.cardType,y),onDragOver:y=>s?.onDragOver(y,e.cardType),onDragLeave:y=>s?.onDragLeave(y),onDrop:y=>s?.onDrop(y,e.cardType),dimension:e.dimension,children:t.jsx(_u,{card:e,actions:{onCardClick:()=>{},onReloadData:o.onReloadData},children:t.jsx(yl,{dimension:e.dimension,style:{cursor:"default"},children:t.jsxs(QYn,{windowSize:x,children:[t.jsx(GYn,{children:t.jsx(qYn,{children:X.getLocalizedStrings().taskCard.title})}),t.jsxs(YYn,{children:[m>0&&t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("remi-awaiting-approval"),onClick:()=>{a?.trackReimbursementTaskCard(m),o.onCategoryClick?.("reimbursement","pending_approval","awaitingMyApproval")},"data-testid":q("dashboard-tasks-card-remi-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.reimbursementsAwaitingApproval,t.jsxs(MAe,{children:[t.jsx(_Ae,{windowSize:x,textColor:k9("remi-awaiting-approval"),children:m}),t.jsx(Ck,{})]})]})}),h>0&&t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("bills-awaiting-approval"),onClick:()=>{a?.trackBillPayTaskCard(h),o.onCategoryClick?.("bill-pay","pending_approval","awaiting_my_approval")},"data-testid":q("dashboard-tasks-card-bills-awaiting-approval",e.cardType),children:[X.getLocalizedStrings().taskCard.billsAwaitingApproval,t.jsxs(MAe,{children:[t.jsx(_Ae,{windowSize:x,textColor:k9("bills-awaiting-approval"),children:h}),t.jsx(Ck,{})]})]})}),f===!0?t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("uncategorized-account-mapping"),onClick:()=>o.onCategoryClick?.("uncategorized-account-mapping"),"data-testid":q("dashboard-tasks-card-uncategorized-account-mapping",e.cardType),children:[X.getLocalizedStrings().taskCard.uncategorizedAccountMappingText,t.jsx(Ck,{})]})}):null,!i&&c?t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("uncategorized-expense"),onClick:()=>o.onCategoryClick?.("uncategorized-expense"),"data-testid":q("dashboard-tasks-card-uncategorized-expense",e.cardType),children:[X.getLocalizedStrings().taskCard.expensesText,t.jsx(Ck,{})]})}):null,!i&&d?t.jsx(bk,{children:t.jsxs(wk,{textColor:k9("uncategorized-income"),onClick:()=>o.onCategoryClick?.("uncategorized-income"),"data-testid":q("dashboard-tasks-card-uncategorized-income",e.cardType),children:[X.getLocalizedStrings().taskCard.incomeText,t.jsx(Ck,{})]})}):null]})]})})})},e.cardIndex)},k9=e=>{switch(e){case"uncategorized-income":return new Gt(am.graphColor33);case"uncategorized-expense":return new Gt(am.graphColor17);case"bills-awaiting-approval":return new Gt(am.graphColor09);case"remi-awaiting-approval":return new Gt(am.graphColor05);case"uncategorized-account-mapping":return new Gt(am.graphColor34);default:return new Gt(Ro.brandColorJadeDark)}};T.memo(j1t);const qce=e=>g.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{filter:"url(#filter0_f_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),g.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),g.createElement("g",{filter:"url(#filter1_d_251_38441)"},g.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),g.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),g.createElement("g",{clipPath:"url(#clip0_251_38441)"},g.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),g.createElement("defs",null,g.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),g.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),g.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},g.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),g.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),g.createElement("feOffset",{dy:4}),g.createElement("feGaussianBlur",{stdDeviation:2}),g.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),g.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),g.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),g.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),g.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},g.createElement("stop",{stopColor:"#7135FF"}),g.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),g.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),g.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),g.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),g.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),g.createElement("stop",{offset:1,stopColor:"#EE609C"})),g.createElement("clipPath",{id:"clip0_251_38441"},g.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),zAe=g.lazy(()=>$1(()=>import("./index-C_GjQzUH.js"),__vite__mapDeps([3,0,1,2])));function Kce({src:e,autoPlay:n=!0,config:o,controls:i=!0,height:a="100%",isModalOpen:s,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:m="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=ce(),[w,C]=g.useState(!1);g.useEffect(()=>{s===!0&&n?C(!0):s===!1&&C(!1)},[s,n]);const v={};o?.youtube&&(v.youtube=o.youtube);const $=()=>{C(!1),f?.(),s!=null&&x?.()},k=()=>{C(!0),y?.()};return s!=null?s?Br.createPortal(t.jsx(eqn,{windowSize:b,role:"presentation",children:t.jsx(qn,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(tqn,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(nqn,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(XYn,{src:h,alt:"Video thumbnail"}),t.jsx(ZYn,{onClick:()=>{C(!0),y?.()},children:t.jsx(JYn,{windowSize:b})})]}),(!u||w)&&t.jsx(g.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(zAe,{src:e,playing:w,controls:i,muted:d,loop:c,width:"100%",height:"100%",onEnded:$,onPlay:k,config:v})})]})})})}),document.body):null:t.jsx(g.Suspense,{fallback:t.jsx("div",{style:{width:m,height:a,...p}}),children:t.jsx(zAe,{src:e,playing:w,controls:i,muted:d,loop:c,width:m,height:a,style:p,light:!(!u||w)&&(h??!0),onEnded:$,onPlay:k,config:v})})}const KYn=zn`
|
|
20340
20340
|
0% {
|
|
20341
20341
|
transform: rotate(0deg);
|
|
20342
20342
|
}
|
|
@@ -71649,7 +71649,7 @@ ${ba.beneficiaryAddress} ${ne}`,d(ye),I(!0)})(o),"data-testid":q("title-text-cop
|
|
|
71649
71649
|
padding: ${r.sp3} ${r.sp0};
|
|
71650
71650
|
`,SGe=l(Ht)`
|
|
71651
71651
|
min-width: 140px;
|
|
71652
|
-
`,yae=g.createContext(void 0);function jU(){const e=g.useContext(yae);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const vue=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],Sue=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],b5t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],w5t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],C5t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],v5t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],S5t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],$5t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],k5t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function bae(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 A5t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],j5t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],E5t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],I5t=[...b5t,...vue,...Sue,"/: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",...A5t,...j5t,...E5t,...w5t,...C5t,...v5t,...S5t,...$5t,...k5t];function us(e){const{pathname:n}=bp(),o=n??"";return e.some(i=>tYe(i,o)!=null)}const Xj=ZGe(H8t()),bgr=["sandbox","production"],wgr=["development","staging","production"],_v=()=>mc==="DEV"||mc==="QA"||mc==="PUNE"||mc==="SUNNYVALE"||mc==="DELHI"||mc==="MOHALI",$ue="https://zeni-webapp.uc.r.appspot.com",mc=a4("PROD",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),w7r=(e=>a4(e,bgr))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(mc)),$Ge=(e=>a4(e,wgr))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(mc)),kue=mc==="DEV"||mc==="QA"?.2:.8,L5t=kue,Ca={sentryDsn:"",sentryTraceSamplingRate:kue,sentryProfileSamplingRate:L5t,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let SS,rI;function Cgr(e){Ca.sentryDsn=e.keys.SENTRY_DSN,Ca.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):kue,Ca.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):L5t,Ca.googleClientId=e.keys.GOOGLE_CLIENT_ID,Ca.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Ca.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Ca.mixpanelToken=e.keys.MIXPANEL_TOKEN,Ca.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Ca.pusherCluster=e.keys.PUSHER_CLUSTER,Ca.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Ca.appUrl=e.keys.WEB_ENDPOINT,Ca.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Ca.cardVaultId=e.keys.UNIT_VAULT_ID,Ca.stripeKey=e.keys.STRIPE_KEY,Ca.qboRedirectionUrl=e.keys.QBO_URL,Ca.mixpanelUrl=e.keys.MIXPANEL_URL,Ca.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,rI=e.externalEndPoints,SS=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)}}(SS,rI)}let kGe=!1;function IC(){kGe||(ph.init("a9cfa638c9c62aa82fb38cd66d7f717e",{api_host:rI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),kGe=!0)}const vgr=new Set(Array.from(oo.EVENTS_WITHOUT_SUPER_PROPERTIES));let AGe=!1,jGe=!1;function wae(){if(AGe)return;AGe=!0,IC();const e=oo.extractUtmParamsFromUrl();Object.keys(e).length>0&&ph.register(e),_v()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Sgr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function $gr(){const e=function(){return ph?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||Sgr.has(o));for(const o of n)ph.unregister(o);_v()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function EGe(){jGe||(jGe=!0,$gr())}class tv{identify(n,o){if(IC(),this.#t=n,n!=null&&o!=null&&(tv.#e==null||!A9t({userId:n,traits:o},tv.#e))){const{$email:i,...a}={...o};ph.identify(n),i&&i!=null&&ph.people.set_once({$email:i}),ph.people.set(a),tv.#e={userId:n,traits:o},_v()&&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){IC();const i=vgr.has(n);if(this.#t!=null||i){if(wae(),this.#t!=null){const a={distinct_id:this.#t,...o};ph.track(n,a)}else ph.track(n,o);if(EGe(),_v()){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){IC(),wae(),ph.track(n,o),EGe(),_v()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){IC(),ph.alias(n,o)}reset(){IC(),ph.identify(void 0),this.#t=void 0,tv.#e=void 0}static#e;#t}const Cae=new tv,T5t=new oo.Analytics(Cae);T5t.trackWithoutUserId=Cae.trackWithoutUserId.bind(Cae);const Mh=T5t,D5t=g.createContext(null),Aue={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function kgr({children:e}){const[n,o]=g.useState(()=>new Set([])),i=n.size>0,a=g.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=g.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:g.useCallback(()=>{o(new Set)},[])};return Pt.jsx(D5t.Provider,{value:c,children:e})}function EU(){const e=g.useContext(D5t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const P5t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",KF="zeni-ai-cfo-upload-promo-storage-changed",Si=new class{getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);return n!=null&&e!=null?JSON.parse(this.decrypt(n,e)):void 0}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!1}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!0}getSignedInUserTenant(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantEmailDomain===e)}getSignedInUserTenantWithId(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantId===e)}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_ACTIVE_TENANT_DOMAIN);if(!(n==null||e==null)){const o=this.decrypt(n,e),i=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS);if(i!=null)return JSON.parse(this.decrypt(i,e)).find(a=>a.tenantEmailDomain===o)}}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(n&&e!=null){const o=this.decrypt(n,e);return o?JSON.parse(o):[]}return[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),o)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(e=>window.localStorage.getItem(e)!=null).reduce((e,n)=>e&&n)}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN]);this.ALL_IDs.filter(n=>!e.has(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n)).forEach(n=>window.localStorage.removeItem(n))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){const e=window.localStorage.getItem(this.ZENI_OTP_TOKEN),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null){let o=JSON.parse(this.decrypt(e,n));return o={...o,expiry:on(o.expiry.toString())},o}}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const o=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let i={};if(o!=null)try{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(KF)),!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(KF))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:on(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return Xj.AES.encrypt(e,n).toString()}decrypt(e,n){return Xj.AES.decrypt(e,n).toString(Xj.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=P5t;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 Agr(e){return hi(n=>function(o,i){if(i==null||i==="")return;const a=j9t(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const B5t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],M5t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],jgr=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],Egr=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Igr=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Lgr=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Tgr=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],_5t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],z5t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],Dgr=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function jue(e){const n=mu(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":Dgr.includes(i)?i:null}const Pgr=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Bgr=new Set(["setup","verification","promo","approval-rules"]);function mu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Eue(e){const n=mu(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 O5t(e,n,o){const i=mu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function F5t(e,n,o){return O5t(e,n,i=>!o.has(i))}function R5t(e){return F5t(e,"bills",Pgr)}function N5t(e){return F5t(e,"reimbursements",Bgr)}function V5t(e){return O5t(e,"tasks",n=>n==="group")}const Mgr=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),_gr=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Iue(e){const n=mu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return Mgr.has(o)?"checking":"checking_details"}function Lue(e){const n=mu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return _gr.has(o)?"cards":"cards_detail"}function H5t(e){const n=mu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function U5t(e){return mu(e)[1]==="performance"?"performance":void 0}function W5t(e){const n=mu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Q5t(e){const n=mu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function M0(e,n){return n.some(o=>tYe(o,e)!=null)}function zgr(e){return M0(e,vue)?"reports":M0(e,B5t)?"ap_aging":M0(e,M5t)?"ar_aging":Eue(e)!=null?"vendors_tab":M0(e,Sue)?"forecast":jue(e)!=null?"month_end_close_review":M0(e,_5t)?"cash_balance":M0(e,z5t)?"card_balance":V5t(e)?"task_checklist":H5t(e)!=null?"transaction_detail":U5t(e)!=null?"performance":W5t(e)!=null?"bills_detail":Q5t(e)!=null?"reimbursement_detail":R5t(e)?"bills_list":N5t(e)?"reimbursement_list":M0(e,jgr)?"cash_in_cash_out":M0(e,Egr)?"operating_expenses":M0(e,Igr)?"revenue":M0(e,Lgr)?"net_burn_or_income":M0(e,Tgr)?"cash_position":function(n){const o=mu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":Iue(e)!=null?"checking":function(n){return mu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":Lue(e)!=null?"cards":function(n){return mu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return mu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return mu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function G5t(e,n){switch(zgr(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 Eue(e);case"forecast":return"forecast";case"month_end_close_review":{const o=jue(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 Iue(e);case"treasury":return"treasury";case"cards":return Lue(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Ogr(){const{pathname:e}=bp(),n=e??"",o=hi(i=>i.financeStatementState?.selectedReportId);return g.useMemo(()=>G5t(n,{selectedReportId:o}),[n,o])}function Fgr({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=g.useCallback(()=>e===!0&&n!=null&&!Si.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=g.useState(o);return g.useEffect(()=>{a(o())},[o]),g.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(KF,s);const c=d=>{d.key===P5t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(KF,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:g.useCallback(()=>{n!=null&&Si.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const Y5t=g.createContext(void 0),Tue=()=>g.useContext(Y5t),Rgr=e=>{const n=Si.isSignedIn(),o=Si.getSignedInUser(),[i,a]=g.useState(void 0),s=g.useMemo(()=>i,[i]),c=hi(p=>Lu(p)),d=c.companyId,u=c.userRoleId;return g.useEffect(()=>{let p,h=!1;if(n&&c.tenantId!=null&&o?.userId!=null&&o.zeniSessionId!=null){i!=null&&(i.channels.all().forEach(w=>{i.unsubscribe(w.name)}),i.disconnect()),a(void 0);const m=o.userId,f=c.tenantId,x=o.zeniSessionId,y=()=>{if(h)return;const w=I9t(Ca.pusherClientSecret,{cluster:Ca.pusherCluster},{userId:m,tenantId:f,sessionId:x},!0);a(w),w!=null&&(d!=null&&eE(w,d),m!=null&&eE(w,m),u!=null&&eE(w,u))},b=()=>{const w=cI();return w.tenantId===f&&w.userId===m&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),OYe(m,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(m=>i?.unsubscribe(m.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Pt.jsx(Y5t.Provider,{value:s,children:e.children})};function eE(e,n){const o=`private-${n}`,i=e.channel(o);if(i?.subscribed===!0)return i;const a=e.subscribe(o);return a.bind("pusher:subscription_error",s=>{console.warn("Pusher Channel Connection Subscription Error",s)}),a}const Due=e=>n=>{const o=Tue(),i=g.useRef(n.eventCallback),a=g.useRef({});g.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=g.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return g.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),m=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(m?.subscribed===!0)x=m,x.bind(h,f),d.push(()=>{m.unbind(h,f)});else{x=m??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Pt.jsx(e,{...n})},Ef=(e,n)=>{const o=[...e??[]];return o.push(n),o},C7r=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},v7r=({state:e})=>Si.isSignedIn()===!0?Pt.jsx(P7t,{}):Pt.jsx(nYe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Ngr=({children:e})=>{const n=$te("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});g.useEffect(()=>{const d=Si.getTheme()==null?n:Si.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?K_({palette:{mode:"dark"},...pke},hke,QFn,YFn):K_({palette:{mode:"light"},...pke},hke,WFn,GFn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Pt.jsx(ZCn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;Si.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},q5t=g.createContext(!1),Vgr=q5t.Provider;function Hgr(){return g.useContext(q5t)}const Ugr=()=>hi(e=>Lu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=D7t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function K5t(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Yi.isAiCfoEnabled),o=hi(a=>Lu(a)),i=Si.getSignedInUser();return i!=null&&i.userId!=null&&o!=null&&o.companyId!=null&&n}const vae=e=>Sgn.includes(e),R_=e=>Llt.includes(e),IGe=e=>vae(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":TO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:R_(e)?`ai-cfo/${e}`:e,Wgr=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],LGe=(e,n)=>e.includes(n),Sae=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(LGe(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&&TO(a)?Ilt(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Llt)if(LGe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function TGe(e){let n=Sae(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=Sae(o[i])}return n??"home"}function Qgr(e){return e.pathname.includes("settings")}function Ggr(e){return e.pathname.includes("ai-cfo")}const Ygr=()=>{const e=qgr();return _A("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},qgr=()=>bp().state?.message==="expenseAutomation";function Kgr(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const Zgr=(e,n,o)=>{const i=FYe(e),a=L9t(e),s=RYe(o,e);return n||o||a||i||s},lC="AppDrawer",rm={root:`${lC}-root`,drawer:`${lC}-drawer`,appBar:`${lC}-appBar`,menuButton:`${lC}-menuButton`,appBarZenilogo:`${lC}-appBarZenilogo`,drawerZenilogo:`${lC}-drawerZenilogo`},aI=210,Jgr=Nn("div",{slot:"Root"})(({theme:e})=>({[`&.${rm.root}`]:{display:"flex"},[`& .${rm.drawer}`]:{[e.breakpoints.up("md")]:{width:aI,flexShrink:0,backgroundColor:e.colors.background}},[`& .${rm.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${rm.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${rm.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${rm.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),Xgr=Due(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=jU(),[i,a]=T.useState(!1),[s,c]=g.useState(!1),d=bp(),u=JF(),p=cI(),h=yce(),m=Wg(),[f,x]=g.useState(!1),y=Te(),{useFeatureGate:b}=es(),{isFeatureEnabled:w}=b(Yi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Yi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Yi.isExpenseAutomationEnabledV2),[$,k]=g.useState(()=>Si.getSignedInUser());g.useEffect(()=>{const Vt=()=>{const Pn=Si.getSignedInUser();k(Pn)};return window.addEventListener("completeProfileDone",Vt),()=>{window.removeEventListener("completeProfileDone",Vt)}},[]);const j=hi(Vt=>Lu(Vt)),{setLoading:A}=EU(),E=K5t(),L=H7($),I=v||C&&L,D=Hgr(),[z,_]=g.useState(void 0),{isFeatureEnabled:R}=b(Yi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:N}=b(Yi.isChargeCardFeatureEnabled),O=Zgr(j,N,w),{isFeatureEnabled:F}=b(Yi.isSettingsFeatureEnabled),{isFeatureEnabled:M}=b(Yi.isReferralFeatureEnabled),{isFeatureEnabled:V}=b(Yi.isTreasuryEnabled),{isFeatureEnabled:H}=b(Yi.isTaskManagerCustomerUserAccessEnabled),G=L||!L&&H,U=hi(Vt=>D9t(Vt));g.useEffect(()=>{const Vt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Vt),()=>{window.removeEventListener("scroll",Vt)}},[]);const Q=hi(Vt=>P9t(Vt)),Z=hi(Vt=>Vt.expenseAutomationViewState.selectedPeriodByTenantId),Y=hi(Vt=>B9t(Vt)),{monthEndCloseChecksView:ne}=Y,oe=_A("/signout")!==null,te=_A("/:tenantEmailDomain/dashboard")!==null,J=_A("/:tenantEmailDomain/reports")!==null,re=_A("/:tenantEmailDomain/onboarding/*")!==null,ie=Ygr();g.useEffect(()=>{D&&M&&!re&&Q.fetchState==="Not-Started"&&m(M9t(!0))},[D,M,Q.fetchState,re]),g.useEffect(()=>{if(ie){const Vt=d.state?.origin;if(Vt!=null){const Pn=_9t(Vt);m(spe(Pn))}}},[ie,d.state]),g.useEffect(()=>{const Vt=Z[j.tenantId];Vt!=null&&ne.fetchState!=="In-Progress"&&ne.fetchState!=="Completed"&&m(z9t({tenantId:j.tenantId,period:Vt,refreshViewInBackground:!1}))},[Z,ne.fetchState,j.tenantId]);const de=oe||re,ye=hi(Vt=>Vt.tenantState),me=hi(Vt=>ye.fetchState==="Completed"?VYe(Vt):[]),{isFeatureEnabled:he}=b(Yi.isApAgingFeatureEnabled),{isFeatureEnabled:se}=b(Yi.isArAgingFeatureEnabled),{isFeatureEnabled:le}=b(Yi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ue}=b(Yi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ge}=b(Yi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:fe}=b(Yi.isDashboardSidebarNewYearAnimationEnabled),we=hi(Vt=>gb(Vt).totalUnreadCount),xe=hi(Vt=>gb(Vt).notificationDetailsByTab.tasks.uiState.unreadCount),Ce=hi(Vt=>gb(Vt).notificationDetailsByTab.comments.uiState.unreadCount),Se=hi(Vt=>gb(Vt).reducedFetchCountState),$e=hi(Vt=>gb(Vt).notificationDetailsByTab.tasks.fetchCountState),Le=hi(Vt=>lR(Vt)),[je,ze]=g.useState(void 0),He=Le.uiState.currentChatSessionId,Ie=je!=null?Le.deleteChatSessionStateByChatSessionId[je]?.fetchState:void 0,ke=jt(Ie),{inboxNotifications:Ae,isLoading:Re,isFetchingMore:Ue,hasFetchedAll:Ye,fetchMore:$t}=Ugr(),gt=hi(Vt=>gb(Vt).notificationDetailsByTab.comments.fetchCountState);g.useEffect(()=>{const Vt=setTimeout(()=>$t?.(),0);return()=>clearTimeout(Vt)}),g.useEffect(()=>{if(je!=null)return ke==="In-Progress"&&Ie==="Completed"?(m(cpe({chatSessionId:je})),ze(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(Ie==="Error"&&(m(cpe({chatSessionId:je})),ze(void 0)))},[m,d.state,u,Ie,je,ke,e]),g.useEffect(()=>{if(Re===!1&&Ue===!1&&Ye===!0&&j?.companyId!=null&&Ae!=null){const Vt=`dashboard_${j.companyId}`;_(Ae.filter(Pn=>Pn.roomId===Vt&&Pn.readAt==null).length)}},[Re,Ue,Ye,j?.companyId,Ae]),g.useEffect(()=>{D&&L&&!re&&$e.fetchState==="Not-Started"&&p.tenantId!=null&&m(O9t("task_manager","dashboard"))},[D,p.tenantId]),g.useEffect(()=>{re||gt.fetchState!=="Not-Started"||m(dpe({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),g.useEffect(()=>{if(z!=null){const{fetchState:Vt}=gt;Vt!=="In-Progress"&&Vt!=="Completed"||(Vt==="In-Progress"&&m(dpe({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(NYe({unreadCount:z},"comments")))}},[z,gt.fetchState]);const rt={fetchStatus:Se,count:we},xt=[];he===!1&&xt.push("accounts_payable_aging"),se===!1&&xt.push("accounts_receivable_aging"),R===!1&&xt.push("zeni_accounts_promo_card"),M===!1&&xt.push("rewards_card"),I===!1&&xt.push("expense_automation_card");const St=pn(),Yt=hi(Vt=>F9t(Vt,xt,$,v,C,V).fetchState),et=hi(Vt=>R9t(Vt).fetchState),Ot=e!=null?Si.getSignedInUserTenant(e):null,Lt=hi(Vt=>Ot?.tenantId!=null?HYe(Vt,Ot.tenantId):void 0),nn=te&&(Yt==="Completed"||Yt==="Error")||J&&(et==="Completed"||et==="Error")||!te&&!J?void 0:"disabled",Kt=g.useMemo(()=>UYe(j.userRole),[j.userRole]),ot=pYe(Kt),dn=Vt=>{a(Vt)},sn=j.company!=null&&N9t(j.company),zt=V&&sn,Ut=hYe(St?.loggedInUserRoleMap),un=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,Et=hi(Vt=>Vt.treasurySetupViewState.treasuryFundsDetails),Wt=g.useCallback(()=>zt&&Ut&&Et?.fetchStatus.fetchState==="Completed"&&!Si.getTreasuryPopupSeen(e??"")&&un===!1&&Sae(d.pathname)!=="treasury",[zt,Ut,un,d.pathname,e,Et?.fetchStatus]),[fn,cn]=g.useState(Wt);g.useEffect(()=>{D&&zt&&Et?.fetchStatus.fetchState==="Not-Started"&&m(V9t())},[D,zt,Et?.fetchStatus.fetchState]),g.useEffect(()=>{cn(Wt())},[Wt]);const Mt=Kgr(Et.fundsDetails),_n=j?.rewardsLastViewedTime==null,io=$?.userEmail!=null&&U.fetchState==="Completed"&&H9t(U.notificationSettings,$.userEmail,w,j),Fn=g.useCallback(Vt=>{const Pn=d.state?.referrer;if(ne.monthEndCloseChecks?.auditSummary!=null&&Mh.trackMonthCloseAuditPage(Vt.month,Vt.year,ne.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",ne.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,Pn??null),m(U9t(j.tenantId,Vt)),Z[j.tenantId]!=null){const an=Ef(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${Y.currentSelectedView}/${Vt.month}-${Vt.year}`,{state:{pathnameStackToGoBack:an,referrer:Y.currentSelectedView}})}m(spe(Y.currentSelectedView)),Y.reconciliation.selectedAccountId!=null&&m(W9t({selectedAccountId:void 0}))},[Y.reconciliation.selectedAccountId,Y.currentSelectedView,j.tenantId,ne.monthEndCloseChecks?.auditSummary,ne.monthEndCloseChecks?.reportEmailSentDate,Z,e,d.state,d.pathname]),Zo=g.useMemo(()=>({zIndex:s||fn?12:S[2]}),[s,fn]),Go=E&&Ggr(d),so=Pt.jsx(tJn,{signedInUser:$,currentTenantId:ye.currentTenantId??"",tenants:ye.fetchState==="Completed"?me:Lt!=null?[Lt]:[],rewardsConfiguration:{isRewardsTabVisible:M,isRewardsAnimated:_n,rewardsPlan:Q.rewardsPlan},selectedMenu:n===!0?Ilt("ai_cfo"):TGe(d),isTenantDropdownDisabled:nn,isSettings:Qgr(d),isSettingsFeatureEnabled:F,currentTenant:j,isVendorsTabVisible:ot,isZeniAccountEnabled:R,isChargeCardEnabled:O,isTreasuryEnabled:zt,isTreasuryPopupVisible:fn,treasuryYieldPercentage:Mt,isNotificationsTabVisible:io,notificationCountDetails:rt,isExpenseAutomationEnabledForUser:I&&Na(j.userRole)===!1,isAiCfoAccessEnabled:E,onNotificationIconClick:()=>{dn(!1);const Vt=L?xe===0&&Ce>0?"notifications/comments":"notifications/tasks":"notifications/comments",Pn=Ef(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Vt}`,{state:{pathnameStackToGoBack:Pn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Vt=>{A(Aue.TENANT_SWITCHING),dn(!1);const Pn=Vt.tenantEmailDomain,an=TGe(d),en=an;let xn="";const uo=TO(en);an==="home"?xn+="dashboard":an==="users_and_roles"?xn+="people":vae(an)?xn+="settings/my_profile":R_(an)?xn+=`ai-cfo/${an}`:xn+=en==="task_checklist"?"tasks":uo?"month_end_close_checks/review":encodeURIComponent(an);const Kn=`/${encodeURIComponent(Pn)}/${xn}`;u(Kn,{replace:!0}),$!=null&&(m(Rae(Vt.tenantId)),m(WYe($.userId,Vt.tenantId,$.zeniSessionId)));const Bo=Vt;Mh.trackCompanySwitch(Bo.companyId,Bo.companyName,Bo.userRole)},handleMenuChange:(Vt,Pn)=>{if($!=null&&Mh.trackSidePanelClicked(Vt.type,Vt.group),dn(!1),n&&(Kn=>{if(vae(Kn)||R_(Kn))return!0;const Bo=IGe(Kn).split("/")[0];return!Wgr.includes(Bo)})(Vt.type)&&o(!1),Vt.type==="ai_cfo"){Mh.trackAICFOChatScreenStateChanged("viewed","left_menu",He??null,null);const Kn=Ef(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Kn,referrer:"Sidebar"}})}const an=Ef(d.state?.pathnameStackToGoBack,d.pathname),en=Vt.type,xn=TO(en)&&en!=="command_center";if(en!=="command_center"&&!xn||Z[j.tenantId]==null||Mh.trackMonthEndCloseClicked(Z[j.tenantId].month,Z[j.tenantId].year,"Sidebar"),xn&&Z[j.tenantId]!=null){const Kn=Z[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Vt.type}/${Kn.month}-${Kn.year}`,{state:{pathnameStackToGoBack:an,message:Pn,referrer:"Sidebar"}})}const uo=IGe(Vt.type);R_(Vt.type)?(He!=null&&m(V_()),u(`/${e}/ai-cfo/${Vt.type}`,{state:{pathnameStackToGoBack:an.slice(0,-1),message:Pn,referrer:"Sidebar"}})):u(`../${e}/${uo}`,{state:{pathnameStackToGoBack:an,message:Pn,referrer:"Sidebar"}})},onDeleteChatSession:Vt=>{m(Q9t(Vt)),He===Vt&&ze(Vt)},handleLogOutClick:()=>{dn(!1);const Vt=Ef(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Vt,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),cn(!1)},monthEndCloseChecksView:ne,onPeriodChange:Fn,onCalendarOpen:c,aiCfoView:Le,isAiCfo:Go,isOnDashboard:te,isTaskManagerAccessEnabled:G,updateCurrentChatSessionId:Vt=>{m(Fae({sessionId:Vt,agentId:"controller"})),u(`../${e}/ai-cfo/${Vt}`,{state:{...d.state}})},halloweenAnimationEnabled:le,thanksGivingAnimationEnabled:ue,christmasAnimationEnabled:ge,newYearAnimationEnabled:fe}),En=Pt.jsx(S8t,{position:"fixed",className:rm.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Pt.jsxs($8t,{style:{minHeight:klt},children:[Pt.jsx(k8t,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>dn(!0),className:rm.menuButton,size:"large",children:Pt.jsx(e3r,{})}),Pt.jsx(t3r,{className:rm.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),go=$te(Vt=>Vt.breakpoints.up("md")),Co=$te(Vt=>Vt.breakpoints.down("md"));return e==null?null:Pt.jsxs(Jgr,{className:rm.root,children:[Pt.jsx(A8t,{}),de===!1?Pt.jsxs(Pt.Fragment,{children:[go||!te?null:En,Pt.jsxs("nav",{className:rm.drawer,children:[go?null:Pt.jsx(H_,{container:window.document.body,variant:"temporary",open:i,onClose:()=>dn(!1),PaperProps:{sx:{width:aI,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:so}),Co?null:Pt.jsx(H_,{PaperProps:{sx:{width:aI,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...Zo}},variant:"permanent",open:!0,children:so})]})]}):null]})});function DGe(e){return e?.data.unread!=null&&e?.mode!=null}const e3r=Nn(e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.604839 4.51889C0.333157 4.57797 0.0879194 4.8318 0.0182541 5.12602C-0.00534674 5.22569 -0.00534674 5.4412 0.0182541 5.54086C0.0523791 5.685 0.117181 5.80198 0.22956 5.92229C0.346814 6.04782 0.459133 6.11627 0.600351 6.14826C0.726193 6.17676 23.2738 6.17676 23.3997 6.14826C23.5409 6.11627 23.6532 6.04782 23.7704 5.92229C23.9348 5.74632 24 5.57908 24 5.33344C24 5.1793 23.9797 5.08352 23.9199 4.95575C23.8455 4.79698 23.6879 4.63709 23.5343 4.56468C23.3857 4.49468 24.2116 4.49926 11.9899 4.50058C2.66632 4.50157 0.669677 4.50479 0.604839 4.51889ZM0.669895 11.1732C0.365117 11.2113 0.0889356 11.4752 0.0182179 11.7958C-0.00468131 11.8996 -0.00469357 12.0996 0.0181935 12.2034C0.0806855 12.4867 0.305734 12.7294 0.581516 12.8108C0.65573 12.8327 1.1761 12.8337 12 12.8337C22.8591 12.8337 23.3441 12.8327 23.4192 12.8106C23.6933 12.7297 23.9196 12.4855 23.9818 12.2034C24.0047 12.0996 24.0047 11.8997 23.9818 11.7959C23.9201 11.516 23.7014 11.2776 23.425 11.1888C23.3558 11.1665 22.8817 11.1655 12.0544 11.164C5.84032 11.1631 0.717278 11.1672 0.669895 11.1732ZM0.594774 17.8516C0.458952 17.8831 0.344939 17.9535 0.22956 18.077C0.0652015 18.253 0 18.4202 0 18.6659C0 18.82 0.0203225 18.9158 0.0801289 19.0435C0.154452 19.2023 0.312097 19.3622 0.465726 19.4346C0.614214 19.5046 -0.209758 19.4999 12 19.4999C21.8294 19.4999 23.3082 19.4975 23.3881 19.4811C23.6596 19.4256 23.9122 19.1669 23.9817 18.8733C24.0053 18.7736 24.0053 18.5581 23.9817 18.4584C23.9476 18.3143 23.8828 18.1973 23.7704 18.077C23.6532 17.9515 23.5409 17.883 23.3997 17.851C23.2779 17.8235 0.713601 17.824 0.594774 17.8516Z",fill:"currentColor"})))`
|
|
71652
|
+
`,yae=g.createContext(void 0);function jU(){const e=g.useContext(yae);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const vue=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],Sue=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],b5t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],w5t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],C5t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],v5t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],S5t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],$5t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],k5t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function bae(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 A5t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],j5t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],E5t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],I5t=[...b5t,...vue,...Sue,"/: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",...A5t,...j5t,...E5t,...w5t,...C5t,...v5t,...S5t,...$5t,...k5t];function us(e){const{pathname:n}=bp(),o=n??"";return e.some(i=>tYe(i,o)!=null)}const Xj=ZGe(H8t()),bgr=["sandbox","production"],wgr=["development","staging","production"],_v=()=>mc==="DEV"||mc==="QA"||mc==="PUNE"||mc==="SUNNYVALE"||mc==="DELHI"||mc==="MOHALI",$ue="https://zeni-webapp-qa.uc.r.appspot.com",mc=a4("QA",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),w7r=(e=>a4(e,bgr))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(mc)),$Ge=(e=>a4(e,wgr))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(mc)),kue=mc==="DEV"||mc==="QA"?.2:.8,L5t=kue,Ca={sentryDsn:"",sentryTraceSamplingRate:kue,sentryProfileSamplingRate:L5t,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let SS,rI;function Cgr(e){Ca.sentryDsn=e.keys.SENTRY_DSN,Ca.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):kue,Ca.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):L5t,Ca.googleClientId=e.keys.GOOGLE_CLIENT_ID,Ca.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Ca.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Ca.mixpanelToken=e.keys.MIXPANEL_TOKEN,Ca.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Ca.pusherCluster=e.keys.PUSHER_CLUSTER,Ca.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Ca.appUrl=e.keys.WEB_ENDPOINT,Ca.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Ca.cardVaultId=e.keys.UNIT_VAULT_ID,Ca.stripeKey=e.keys.STRIPE_KEY,Ca.qboRedirectionUrl=e.keys.QBO_URL,Ca.mixpanelUrl=e.keys.MIXPANEL_URL,Ca.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,rI=e.externalEndPoints,SS=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)}}(SS,rI)}let kGe=!1;function IC(){kGe||(ph.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:rI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),kGe=!0)}const vgr=new Set(Array.from(oo.EVENTS_WITHOUT_SUPER_PROPERTIES));let AGe=!1,jGe=!1;function wae(){if(AGe)return;AGe=!0,IC();const e=oo.extractUtmParamsFromUrl();Object.keys(e).length>0&&ph.register(e),_v()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const Sgr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function $gr(){const e=function(){return ph?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||Sgr.has(o));for(const o of n)ph.unregister(o);_v()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function EGe(){jGe||(jGe=!0,$gr())}class tv{identify(n,o){if(IC(),this.#t=n,n!=null&&o!=null&&(tv.#e==null||!A9t({userId:n,traits:o},tv.#e))){const{$email:i,...a}={...o};ph.identify(n),i&&i!=null&&ph.people.set_once({$email:i}),ph.people.set(a),tv.#e={userId:n,traits:o},_v()&&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){IC();const i=vgr.has(n);if(this.#t!=null||i){if(wae(),this.#t!=null){const a={distinct_id:this.#t,...o};ph.track(n,a)}else ph.track(n,o);if(EGe(),_v()){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){IC(),wae(),ph.track(n,o),EGe(),_v()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){IC(),ph.alias(n,o)}reset(){IC(),ph.identify(void 0),this.#t=void 0,tv.#e=void 0}static#e;#t}const Cae=new tv,T5t=new oo.Analytics(Cae);T5t.trackWithoutUserId=Cae.trackWithoutUserId.bind(Cae);const Mh=T5t,D5t=g.createContext(null),Aue={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function kgr({children:e}){const[n,o]=g.useState(()=>new Set([])),i=n.size>0,a=g.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=g.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:g.useCallback(()=>{o(new Set)},[])};return Pt.jsx(D5t.Provider,{value:c,children:e})}function EU(){const e=g.useContext(D5t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const P5t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",KF="zeni-ai-cfo-upload-promo-storage-changed",Si=new class{getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);return n!=null&&e!=null?JSON.parse(this.decrypt(n,e)):void 0}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!1}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),n=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&n!=null?JSON.parse(this.decrypt(e,n)):!0}getSignedInUserTenant(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantEmailDomain===e)}getSignedInUserTenantWithId(e){const n=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)return JSON.parse(this.decrypt(n,o)).find(i=>i.tenantId===e)}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_ACTIVE_TENANT_DOMAIN);if(!(n==null||e==null)){const o=this.decrypt(n,e),i=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS);if(i!=null)return JSON.parse(this.decrypt(i,e)).find(a=>a.tenantEmailDomain===o)}}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID),n=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(n&&e!=null){const o=this.decrypt(n,e);return o?JSON.parse(o):[]}return[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),o)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(e=>window.localStorage.getItem(e)!=null).reduce((e,n)=>e&&n)}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN]);this.ALL_IDs.filter(n=>!e.has(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n)).forEach(n=>window.localStorage.removeItem(n)),Object.keys(window.localStorage).filter(n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n)).forEach(n=>window.localStorage.removeItem(n))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){const e=window.localStorage.getItem(this.ZENI_OTP_TOKEN),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null){let o=JSON.parse(this.decrypt(e,n));return o={...o,expiry:on(o.expiry.toString())},o}}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const o=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let i={};if(o!=null)try{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(KF)),!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(KF))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:on(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return Xj.AES.encrypt(e,n).toString()}decrypt(e,n){return Xj.AES.decrypt(e,n).toString(Xj.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=P5t;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 Agr(e){return hi(n=>function(o,i){if(i==null||i==="")return;const a=j9t(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const B5t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],M5t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],jgr=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],Egr=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],Igr=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],Lgr=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],Tgr=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],_5t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],z5t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],Dgr=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function jue(e){const n=mu(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":Dgr.includes(i)?i:null}const Pgr=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),Bgr=new Set(["setup","verification","promo","approval-rules"]);function mu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Eue(e){const n=mu(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 O5t(e,n,o){const i=mu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function F5t(e,n,o){return O5t(e,n,i=>!o.has(i))}function R5t(e){return F5t(e,"bills",Pgr)}function N5t(e){return F5t(e,"reimbursements",Bgr)}function V5t(e){return O5t(e,"tasks",n=>n==="group")}const Mgr=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),_gr=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Iue(e){const n=mu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return Mgr.has(o)?"checking":"checking_details"}function Lue(e){const n=mu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return _gr.has(o)?"cards":"cards_detail"}function H5t(e){const n=mu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function U5t(e){return mu(e)[1]==="performance"?"performance":void 0}function W5t(e){const n=mu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Q5t(e){const n=mu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function M0(e,n){return n.some(o=>tYe(o,e)!=null)}function zgr(e){return M0(e,vue)?"reports":M0(e,B5t)?"ap_aging":M0(e,M5t)?"ar_aging":Eue(e)!=null?"vendors_tab":M0(e,Sue)?"forecast":jue(e)!=null?"month_end_close_review":M0(e,_5t)?"cash_balance":M0(e,z5t)?"card_balance":V5t(e)?"task_checklist":H5t(e)!=null?"transaction_detail":U5t(e)!=null?"performance":W5t(e)!=null?"bills_detail":Q5t(e)!=null?"reimbursement_detail":R5t(e)?"bills_list":N5t(e)?"reimbursement_list":M0(e,jgr)?"cash_in_cash_out":M0(e,Egr)?"operating_expenses":M0(e,Igr)?"revenue":M0(e,Lgr)?"net_burn_or_income":M0(e,Tgr)?"cash_position":function(n){const o=mu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":Iue(e)!=null?"checking":function(n){return mu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":Lue(e)!=null?"cards":function(n){return mu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return mu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return mu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function G5t(e,n){switch(zgr(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 Eue(e);case"forecast":return"forecast";case"month_end_close_review":{const o=jue(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 Iue(e);case"treasury":return"treasury";case"cards":return Lue(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Ogr(){const{pathname:e}=bp(),n=e??"",o=hi(i=>i.financeStatementState?.selectedReportId);return g.useMemo(()=>G5t(n,{selectedReportId:o}),[n,o])}function Fgr({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=g.useCallback(()=>e===!0&&n!=null&&!Si.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=g.useState(o);return g.useEffect(()=>{a(o())},[o]),g.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(KF,s);const c=d=>{d.key===P5t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(KF,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:g.useCallback(()=>{n!=null&&Si.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const Y5t=g.createContext(void 0),Tue=()=>g.useContext(Y5t),Rgr=e=>{const n=Si.isSignedIn(),o=Si.getSignedInUser(),[i,a]=g.useState(void 0),s=g.useMemo(()=>i,[i]),c=hi(p=>Lu(p)),d=c.companyId,u=c.userRoleId;return g.useEffect(()=>{let p,h=!1;if(n&&c.tenantId!=null&&o?.userId!=null&&o.zeniSessionId!=null){i!=null&&(i.channels.all().forEach(w=>{i.unsubscribe(w.name)}),i.disconnect()),a(void 0);const m=o.userId,f=c.tenantId,x=o.zeniSessionId,y=()=>{if(h)return;const w=I9t(Ca.pusherClientSecret,{cluster:Ca.pusherCluster},{userId:m,tenantId:f,sessionId:x},!0);a(w),w!=null&&(d!=null&&eE(w,d),m!=null&&eE(w,m),u!=null&&eE(w,u))},b=()=>{const w=cI();return w.tenantId===f&&w.userId===m&&w.sessionId===x};if(b())y();else{let w=0;p=setInterval(()=>{h||(w++,b()?(clearInterval(p),y()):w>=30&&(clearInterval(p),OYe(m,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(m=>i?.unsubscribe(m.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Pt.jsx(Y5t.Provider,{value:s,children:e.children})};function eE(e,n){const o=`private-${n}`,i=e.channel(o);if(i?.subscribed===!0)return i;const a=e.subscribe(o);return a.bind("pusher:subscription_error",s=>{console.warn("Pusher Channel Connection Subscription Error",s)}),a}const Due=e=>n=>{const o=Tue(),i=g.useRef(n.eventCallback),a=g.useRef({});g.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=g.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return g.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),m=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(m?.subscribed===!0)x=m,x.bind(h,f),d.push(()=>{m.unbind(h,f)});else{x=m??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Pt.jsx(e,{...n})},Ef=(e,n)=>{const o=[...e??[]];return o.push(n),o},C7r=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},v7r=({state:e})=>Si.isSignedIn()===!0?Pt.jsx(P7t,{}):Pt.jsx(nYe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),Ngr=({children:e})=>{const n=$te("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});g.useEffect(()=>{const d=Si.getTheme()==null?n:Si.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?K_({palette:{mode:"dark"},...pke},hke,QFn,YFn):K_({palette:{mode:"light"},...pke},hke,WFn,GFn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Pt.jsx(ZCn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;Si.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},q5t=g.createContext(!1),Vgr=q5t.Provider;function Hgr(){return g.useContext(q5t)}const Ugr=()=>hi(e=>Lu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=D7t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function K5t(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Yi.isAiCfoEnabled),o=hi(a=>Lu(a)),i=Si.getSignedInUser();return i!=null&&i.userId!=null&&o!=null&&o.companyId!=null&&n}const vae=e=>Sgn.includes(e),R_=e=>Llt.includes(e),IGe=e=>vae(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":TO(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:R_(e)?`ai-cfo/${e}`:e,Wgr=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],LGe=(e,n)=>e.includes(n),Sae=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(LGe(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&&TO(a)?Ilt(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Llt)if(LGe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function TGe(e){let n=Sae(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=Sae(o[i])}return n??"home"}function Qgr(e){return e.pathname.includes("settings")}function Ggr(e){return e.pathname.includes("ai-cfo")}const Ygr=()=>{const e=qgr();return _A("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},qgr=()=>bp().state?.message==="expenseAutomation";function Kgr(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const Zgr=(e,n,o)=>{const i=FYe(e),a=L9t(e),s=RYe(o,e);return n||o||a||i||s},lC="AppDrawer",rm={root:`${lC}-root`,drawer:`${lC}-drawer`,appBar:`${lC}-appBar`,menuButton:`${lC}-menuButton`,appBarZenilogo:`${lC}-appBarZenilogo`,drawerZenilogo:`${lC}-drawerZenilogo`},aI=210,Jgr=Nn("div",{slot:"Root"})(({theme:e})=>({[`&.${rm.root}`]:{display:"flex"},[`& .${rm.drawer}`]:{[e.breakpoints.up("md")]:{width:aI,flexShrink:0,backgroundColor:e.colors.background}},[`& .${rm.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${rm.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${rm.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${rm.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),Xgr=Due(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=jU(),[i,a]=T.useState(!1),[s,c]=g.useState(!1),d=bp(),u=JF(),p=cI(),h=yce(),m=Wg(),[f,x]=g.useState(!1),y=Te(),{useFeatureGate:b}=es(),{isFeatureEnabled:w}=b(Yi.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Yi.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Yi.isExpenseAutomationEnabledV2),[$,k]=g.useState(()=>Si.getSignedInUser());g.useEffect(()=>{const Vt=()=>{const Pn=Si.getSignedInUser();k(Pn)};return window.addEventListener("completeProfileDone",Vt),()=>{window.removeEventListener("completeProfileDone",Vt)}},[]);const j=hi(Vt=>Lu(Vt)),{setLoading:A}=EU(),E=K5t(),L=H7($),I=v||C&&L,D=Hgr(),[z,_]=g.useState(void 0),{isFeatureEnabled:R}=b(Yi.isDepositAccountsFeatureEnabled),{isFeatureEnabled:N}=b(Yi.isChargeCardFeatureEnabled),O=Zgr(j,N,w),{isFeatureEnabled:F}=b(Yi.isSettingsFeatureEnabled),{isFeatureEnabled:M}=b(Yi.isReferralFeatureEnabled),{isFeatureEnabled:V}=b(Yi.isTreasuryEnabled),{isFeatureEnabled:H}=b(Yi.isTaskManagerCustomerUserAccessEnabled),G=L||!L&&H,U=hi(Vt=>D9t(Vt));g.useEffect(()=>{const Vt=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",Vt),()=>{window.removeEventListener("scroll",Vt)}},[]);const Q=hi(Vt=>P9t(Vt)),Z=hi(Vt=>Vt.expenseAutomationViewState.selectedPeriodByTenantId),Y=hi(Vt=>B9t(Vt)),{monthEndCloseChecksView:ne}=Y,oe=_A("/signout")!==null,te=_A("/:tenantEmailDomain/dashboard")!==null,J=_A("/:tenantEmailDomain/reports")!==null,re=_A("/:tenantEmailDomain/onboarding/*")!==null,ie=Ygr();g.useEffect(()=>{D&&M&&!re&&Q.fetchState==="Not-Started"&&m(M9t(!0))},[D,M,Q.fetchState,re]),g.useEffect(()=>{if(ie){const Vt=d.state?.origin;if(Vt!=null){const Pn=_9t(Vt);m(spe(Pn))}}},[ie,d.state]),g.useEffect(()=>{const Vt=Z[j.tenantId];Vt!=null&&ne.fetchState!=="In-Progress"&&ne.fetchState!=="Completed"&&m(z9t({tenantId:j.tenantId,period:Vt,refreshViewInBackground:!1}))},[Z,ne.fetchState,j.tenantId]);const de=oe||re,ye=hi(Vt=>Vt.tenantState),me=hi(Vt=>ye.fetchState==="Completed"?VYe(Vt):[]),{isFeatureEnabled:he}=b(Yi.isApAgingFeatureEnabled),{isFeatureEnabled:se}=b(Yi.isArAgingFeatureEnabled),{isFeatureEnabled:le}=b(Yi.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:ue}=b(Yi.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:ge}=b(Yi.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:fe}=b(Yi.isDashboardSidebarNewYearAnimationEnabled),we=hi(Vt=>gb(Vt).totalUnreadCount),xe=hi(Vt=>gb(Vt).notificationDetailsByTab.tasks.uiState.unreadCount),Ce=hi(Vt=>gb(Vt).notificationDetailsByTab.comments.uiState.unreadCount),Se=hi(Vt=>gb(Vt).reducedFetchCountState),$e=hi(Vt=>gb(Vt).notificationDetailsByTab.tasks.fetchCountState),Le=hi(Vt=>lR(Vt)),[je,ze]=g.useState(void 0),He=Le.uiState.currentChatSessionId,Ie=je!=null?Le.deleteChatSessionStateByChatSessionId[je]?.fetchState:void 0,ke=jt(Ie),{inboxNotifications:Ae,isLoading:Re,isFetchingMore:Ue,hasFetchedAll:Ye,fetchMore:$t}=Ugr(),gt=hi(Vt=>gb(Vt).notificationDetailsByTab.comments.fetchCountState);g.useEffect(()=>{const Vt=setTimeout(()=>$t?.(),0);return()=>clearTimeout(Vt)}),g.useEffect(()=>{if(je!=null)return ke==="In-Progress"&&Ie==="Completed"?(m(cpe({chatSessionId:je})),ze(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(Ie==="Error"&&(m(cpe({chatSessionId:je})),ze(void 0)))},[m,d.state,u,Ie,je,ke,e]),g.useEffect(()=>{if(Re===!1&&Ue===!1&&Ye===!0&&j?.companyId!=null&&Ae!=null){const Vt=`dashboard_${j.companyId}`;_(Ae.filter(Pn=>Pn.roomId===Vt&&Pn.readAt==null).length)}},[Re,Ue,Ye,j?.companyId,Ae]),g.useEffect(()=>{D&&L&&!re&&$e.fetchState==="Not-Started"&&p.tenantId!=null&&m(O9t("task_manager","dashboard"))},[D,p.tenantId]),g.useEffect(()=>{re||gt.fetchState!=="Not-Started"||m(dpe({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),g.useEffect(()=>{if(z!=null){const{fetchState:Vt}=gt;Vt!=="In-Progress"&&Vt!=="Completed"||(Vt==="In-Progress"&&m(dpe({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(NYe({unreadCount:z},"comments")))}},[z,gt.fetchState]);const rt={fetchStatus:Se,count:we},xt=[];he===!1&&xt.push("accounts_payable_aging"),se===!1&&xt.push("accounts_receivable_aging"),R===!1&&xt.push("zeni_accounts_promo_card"),M===!1&&xt.push("rewards_card"),I===!1&&xt.push("expense_automation_card");const St=pn(),Yt=hi(Vt=>F9t(Vt,xt,$,v,C,V).fetchState),et=hi(Vt=>R9t(Vt).fetchState),Ot=e!=null?Si.getSignedInUserTenant(e):null,Lt=hi(Vt=>Ot?.tenantId!=null?HYe(Vt,Ot.tenantId):void 0),nn=te&&(Yt==="Completed"||Yt==="Error")||J&&(et==="Completed"||et==="Error")||!te&&!J?void 0:"disabled",Kt=g.useMemo(()=>UYe(j.userRole),[j.userRole]),ot=pYe(Kt),dn=Vt=>{a(Vt)},sn=j.company!=null&&N9t(j.company),zt=V&&sn,Ut=hYe(St?.loggedInUserRoleMap),un=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,Et=hi(Vt=>Vt.treasurySetupViewState.treasuryFundsDetails),Wt=g.useCallback(()=>zt&&Ut&&Et?.fetchStatus.fetchState==="Completed"&&!Si.getTreasuryPopupSeen(e??"")&&un===!1&&Sae(d.pathname)!=="treasury",[zt,Ut,un,d.pathname,e,Et?.fetchStatus]),[fn,cn]=g.useState(Wt);g.useEffect(()=>{D&&zt&&Et?.fetchStatus.fetchState==="Not-Started"&&m(V9t())},[D,zt,Et?.fetchStatus.fetchState]),g.useEffect(()=>{cn(Wt())},[Wt]);const Mt=Kgr(Et.fundsDetails),_n=j?.rewardsLastViewedTime==null,io=$?.userEmail!=null&&U.fetchState==="Completed"&&H9t(U.notificationSettings,$.userEmail,w,j),Fn=g.useCallback(Vt=>{const Pn=d.state?.referrer;if(ne.monthEndCloseChecks?.auditSummary!=null&&Mh.trackMonthCloseAuditPage(Vt.month,Vt.year,ne.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",ne.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,Pn??null),m(U9t(j.tenantId,Vt)),Z[j.tenantId]!=null){const an=Ef(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${Y.currentSelectedView}/${Vt.month}-${Vt.year}`,{state:{pathnameStackToGoBack:an,referrer:Y.currentSelectedView}})}m(spe(Y.currentSelectedView)),Y.reconciliation.selectedAccountId!=null&&m(W9t({selectedAccountId:void 0}))},[Y.reconciliation.selectedAccountId,Y.currentSelectedView,j.tenantId,ne.monthEndCloseChecks?.auditSummary,ne.monthEndCloseChecks?.reportEmailSentDate,Z,e,d.state,d.pathname]),Zo=g.useMemo(()=>({zIndex:s||fn?12:S[2]}),[s,fn]),Go=E&&Ggr(d),so=Pt.jsx(tJn,{signedInUser:$,currentTenantId:ye.currentTenantId??"",tenants:ye.fetchState==="Completed"?me:Lt!=null?[Lt]:[],rewardsConfiguration:{isRewardsTabVisible:M,isRewardsAnimated:_n,rewardsPlan:Q.rewardsPlan},selectedMenu:n===!0?Ilt("ai_cfo"):TGe(d),isTenantDropdownDisabled:nn,isSettings:Qgr(d),isSettingsFeatureEnabled:F,currentTenant:j,isVendorsTabVisible:ot,isZeniAccountEnabled:R,isChargeCardEnabled:O,isTreasuryEnabled:zt,isTreasuryPopupVisible:fn,treasuryYieldPercentage:Mt,isNotificationsTabVisible:io,notificationCountDetails:rt,isExpenseAutomationEnabledForUser:I&&Na(j.userRole)===!1,isAiCfoAccessEnabled:E,onNotificationIconClick:()=>{dn(!1);const Vt=L?xe===0&&Ce>0?"notifications/comments":"notifications/tasks":"notifications/comments",Pn=Ef(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${Vt}`,{state:{pathnameStackToGoBack:Pn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:Vt=>{A(Aue.TENANT_SWITCHING),dn(!1);const Pn=Vt.tenantEmailDomain,an=TGe(d),en=an;let xn="";const uo=TO(en);an==="home"?xn+="dashboard":an==="users_and_roles"?xn+="people":vae(an)?xn+="settings/my_profile":R_(an)?xn+=`ai-cfo/${an}`:xn+=en==="task_checklist"?"tasks":uo?"month_end_close_checks/review":encodeURIComponent(an);const Kn=`/${encodeURIComponent(Pn)}/${xn}`;u(Kn,{replace:!0}),$!=null&&(m(Rae(Vt.tenantId)),m(WYe($.userId,Vt.tenantId,$.zeniSessionId)));const Bo=Vt;Mh.trackCompanySwitch(Bo.companyId,Bo.companyName,Bo.userRole)},handleMenuChange:(Vt,Pn)=>{if($!=null&&Mh.trackSidePanelClicked(Vt.type,Vt.group),dn(!1),n&&(Kn=>{if(vae(Kn)||R_(Kn))return!0;const Bo=IGe(Kn).split("/")[0];return!Wgr.includes(Bo)})(Vt.type)&&o(!1),Vt.type==="ai_cfo"){Mh.trackAICFOChatScreenStateChanged("viewed","left_menu",He??null,null);const Kn=Ef(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Kn,referrer:"Sidebar"}})}const an=Ef(d.state?.pathnameStackToGoBack,d.pathname),en=Vt.type,xn=TO(en)&&en!=="command_center";if(en!=="command_center"&&!xn||Z[j.tenantId]==null||Mh.trackMonthEndCloseClicked(Z[j.tenantId].month,Z[j.tenantId].year,"Sidebar"),xn&&Z[j.tenantId]!=null){const Kn=Z[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${Vt.type}/${Kn.month}-${Kn.year}`,{state:{pathnameStackToGoBack:an,message:Pn,referrer:"Sidebar"}})}const uo=IGe(Vt.type);R_(Vt.type)?(He!=null&&m(V_()),u(`/${e}/ai-cfo/${Vt.type}`,{state:{pathnameStackToGoBack:an.slice(0,-1),message:Pn,referrer:"Sidebar"}})):u(`../${e}/${uo}`,{state:{pathnameStackToGoBack:an,message:Pn,referrer:"Sidebar"}})},onDeleteChatSession:Vt=>{m(Q9t(Vt)),He===Vt&&ze(Vt)},handleLogOutClick:()=>{dn(!1);const Vt=Ef(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:Vt,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),cn(!1)},monthEndCloseChecksView:ne,onPeriodChange:Fn,onCalendarOpen:c,aiCfoView:Le,isAiCfo:Go,isOnDashboard:te,isTaskManagerAccessEnabled:G,updateCurrentChatSessionId:Vt=>{m(Fae({sessionId:Vt,agentId:"controller"})),u(`../${e}/ai-cfo/${Vt}`,{state:{...d.state}})},halloweenAnimationEnabled:le,thanksGivingAnimationEnabled:ue,christmasAnimationEnabled:ge,newYearAnimationEnabled:fe}),En=Pt.jsx(S8t,{position:"fixed",className:rm.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Pt.jsxs($8t,{style:{minHeight:klt},children:[Pt.jsx(k8t,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>dn(!0),className:rm.menuButton,size:"large",children:Pt.jsx(e3r,{})}),Pt.jsx(t3r,{className:rm.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),go=$te(Vt=>Vt.breakpoints.up("md")),Co=$te(Vt=>Vt.breakpoints.down("md"));return e==null?null:Pt.jsxs(Jgr,{className:rm.root,children:[Pt.jsx(A8t,{}),de===!1?Pt.jsxs(Pt.Fragment,{children:[go||!te?null:En,Pt.jsxs("nav",{className:rm.drawer,children:[go?null:Pt.jsx(H_,{container:window.document.body,variant:"temporary",open:i,onClose:()=>dn(!1),PaperProps:{sx:{width:aI,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:so}),Co?null:Pt.jsx(H_,{PaperProps:{sx:{width:aI,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...Zo}},variant:"permanent",open:!0,children:so})]})]}):null]})});function DGe(e){return e?.data.unread!=null&&e?.mode!=null}const e3r=Nn(e=>g.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",...e},g.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.604839 4.51889C0.333157 4.57797 0.0879194 4.8318 0.0182541 5.12602C-0.00534674 5.22569 -0.00534674 5.4412 0.0182541 5.54086C0.0523791 5.685 0.117181 5.80198 0.22956 5.92229C0.346814 6.04782 0.459133 6.11627 0.600351 6.14826C0.726193 6.17676 23.2738 6.17676 23.3997 6.14826C23.5409 6.11627 23.6532 6.04782 23.7704 5.92229C23.9348 5.74632 24 5.57908 24 5.33344C24 5.1793 23.9797 5.08352 23.9199 4.95575C23.8455 4.79698 23.6879 4.63709 23.5343 4.56468C23.3857 4.49468 24.2116 4.49926 11.9899 4.50058C2.66632 4.50157 0.669677 4.50479 0.604839 4.51889ZM0.669895 11.1732C0.365117 11.2113 0.0889356 11.4752 0.0182179 11.7958C-0.00468131 11.8996 -0.00469357 12.0996 0.0181935 12.2034C0.0806855 12.4867 0.305734 12.7294 0.581516 12.8108C0.65573 12.8327 1.1761 12.8337 12 12.8337C22.8591 12.8337 23.3441 12.8327 23.4192 12.8106C23.6933 12.7297 23.9196 12.4855 23.9818 12.2034C24.0047 12.0996 24.0047 11.8997 23.9818 11.7959C23.9201 11.516 23.7014 11.2776 23.425 11.1888C23.3558 11.1665 22.8817 11.1655 12.0544 11.164C5.84032 11.1631 0.717278 11.1672 0.669895 11.1732ZM0.594774 17.8516C0.458952 17.8831 0.344939 17.9535 0.22956 18.077C0.0652015 18.253 0 18.4202 0 18.6659C0 18.82 0.0203225 18.9158 0.0801289 19.0435C0.154452 19.2023 0.312097 19.3622 0.465726 19.4346C0.614214 19.5046 -0.209758 19.4999 12 19.4999C21.8294 19.4999 23.3082 19.4975 23.3881 19.4811C23.6596 19.4256 23.9122 19.1669 23.9817 18.8733C24.0053 18.7736 24.0053 18.5581 23.9817 18.4584C23.9476 18.3143 23.8828 18.1973 23.7704 18.077C23.6532 17.9515 23.5409 17.883 23.3997 17.851C23.2779 17.8235 0.713601 17.824 0.594774 17.8516Z",fill:"currentColor"})))`
|
|
71653
71653
|
height: 20px;
|
|
71654
71654
|
width: 20px;
|
|
71655
71655
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -71746,7 +71746,7 @@ ${ba.beneficiaryAddress} ${ne}`,d(ye),I(!0)})(o),"data-testid":q("title-text-cop
|
|
|
71746
71746
|
display: flex;
|
|
71747
71747
|
min-height: 100%;
|
|
71748
71748
|
flex-direction: column;
|
|
71749
|
-
`,k3r=()=>{const[e,n]=g.useState(()=>Si.getSignedInUser()),o=Wg(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=hi(m=>QYe(m).fetchState),u=hi(m=>Lu(m));g.useEffect(()=>{const m=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(m)},[e]);const p=g.useCallback(()=>{const m=Si.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(m)?m:f)},[]);g.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),g.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(s8t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Pt.jsxs(g.Fragment,{children:[s&&Pt.jsx(Nce,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Pt.jsx(S3r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},PGe="init-enter",A3r=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||PGe);j3r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||PGe,c=E3r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),j3r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),E3r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},e7t=g.createContext(void 0),I3r=({children:e})=>{const{tenantEmailDomain:n}=M7t(),o=n!=null?Si.getSignedInUserTenant(n):void 0,i=hi(u=>Lu(u)),a=cI().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Pt.jsx(e7t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},$7r=()=>{const e=g.useContext(e7t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},k2=e=>g.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}}),t7t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),n7t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),o7t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),i7t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Ul(...e){const n=mc==="DEV"||mc==="QA";if(t7t||n7t||o7t||i7t)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 zv(...e){const n=mc==="DEV"||mc==="QA";if(t7t||n7t||o7t||i7t)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 sC=null,MA=!1;const Wl=mc==="PROD"?"https://api.zeni.ai":mc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function BGe(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:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const L3r={dashboard:function(e){return[...BGe()]},reports:BGe,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:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Wl}/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:`${Wl}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Wl}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Wl}/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:`${Wl}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Wl}/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:`${Wl}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Wl}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Wl}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Wl}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function MGe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,L3r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Ul(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Ul(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Ul(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Ul(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function _Ge(e,n=0,o){if("serviceWorker"in navigator)try{const i=await async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise((h,m)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(Ul("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):m(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)})}(1e4),a=navigator.serviceWorker.controller||i.active;if(!a)return void zv("[Prefetch Manager - Service Worker] No active Service Worker available");const s=function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort((h,m)=>p[h.priority]-p[m.priority])}(e);Ul("[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)=>{Ul(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Ul(` URL: ${u.url}`)});const c=cI(),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}}),Ul("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){zv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else zv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function T3r({children:e,currentPage:n,tenantId:o,batchCalls:i=0,expirationTime:a,delay:s=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:m=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=g.useState(!1),[b,w]=g.useState(!1),C=g.useRef(null),v=bp(),$=Si.getSignedInUser(),{useFeatureGate:k}=es(),{isFeatureEnabled:j}=k(Yi.isReferralFeatureEnabled),A=pn(),E=a7(A?.loggedInUserRole??[]),L=hi(R=>Lu(R)),{isFeatureEnabled:I}=k(Yi.isDebitCardFeatureEnabled),D=RYe(I,L),z=FYe(L),_=D===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const R=MGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L?.companyId??"",isPageIndependent:m}),N=m?"dashboard":n;if(R.length===0)return void Ul(`[Prefetch Provider - ${N}${m?" (base)":""}] No URLs to prefetch`);Ul(`[Prefetch Provider - ${N}${m?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{_Ge(R,i,a).catch(F=>{zv(`[Prefetch Provider - ${N}${m?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,_,L?.companyId,m,i,a,s,v.pathname]),g.useEffect(()=>{y(!1)},[o,v.pathname]),g.useEffect(()=>{m||(y(!1),w(!1))},[v.pathname,m]),g.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&$&&o)||b)return;Ul(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const R=function(N){const{timeout:O=2e3,onIdle:F}=N;Ul(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const M=()=>{MA&&(Ul("[Idle Detection - Service Worker] 🏃 User became active again"),MA=!1),sC&&clearTimeout(sC),sC=setTimeout(()=>{MA||(Ul("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),MA=!0,F())},O)},V=["mousedown","mousemove","keypress","scroll","touchstart","click"];return V.forEach(H=>{document.addEventListener(H,M,!0)}),M(),()=>{Ul("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),sC&&(clearTimeout(sC),sC=null),V.forEach(H=>{document.removeEventListener(H,M,!0)}),MA=!1}}({timeout:h,onIdle:()=>{if(b)return;Ul("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=MGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;N.length!==0?(Ul(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),_Ge(N,i,a).catch(F=>{zv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Ul(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,_,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.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&&(Ul("[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;Ul("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(R){zv("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Pt.jsx(Pt.Fragment,{children:e})}function D3r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=bp(),u=hi(y=>Lu(y)),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const m=u.tenantId,{useFeatureGate:f}=es(),{isFeatureEnabled:x}=f(Yi.isServiceWorkerPrefetchingEnabled);return m&&p?Pt.jsx(T3r,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Pt.jsx(Pt.Fragment,{children:e})}function P3r(e,n){const o=oo.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const B3r=k2(()=>$1(()=>import("./DefaultTenantHome-Bfoqfe2S.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),zGe=k2(()=>$1(()=>Promise.resolve().then(()=>n3r),void 0)),OGe=k2(()=>$1(()=>import("./ScreenRoutes-DLSt4tdf.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),M3r=k2(()=>$1(()=>import("./ConnectionAuthScreen-oP9xYeAW.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),_3r=k2(()=>$1(()=>import("./SignInScreen-BFLcQpya.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),z3r=k2(()=>$1(()=>import("./MagicLinkSignInScreen-BKDPSViV.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),FGe=k2(()=>$1(()=>import("./NotFoundScreen-r3nGyW4H.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),O3r=k2(()=>$1(()=>import("./MagicLinkRoutes-B2TR_7-P.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),F3r=k2(()=>$1(()=>import("./WiseConfirmationScreen-DpDNGqTl.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),R3r=k2(()=>$1(()=>import("./CustomerOnboardingAuthScreen-9NDu8OT9.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),N3r=k2(()=>$1(()=>import("./SignOutScreen-tPc6pjFA.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),V3r=()=>{const e=bp(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=P3r("/",n);return Pt.jsx(nYe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function RGe(){const{isOpen:e}=Gy(),n=V3n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=jU(),a=g.useRef(!1),s=g.useRef(o),c=g.useRef(!1);return g.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),g.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),g.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const H3r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=bp(),i=Si.isSignedIn(),a=hi(R=>Lu(R)),s=Si.getSignedInUser(),c=i&&H7(s),d=hi(R=>c8t(R)).tenantsBaseInOrder.map(R=>({companyId:R.companyId,tenantId:R.tenantId,companyName:R.companyName})),u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:a.tenantId??""},p=Wg(),h=us(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),m=us(I5t)||bae(o.pathname),f=K5t(),[x,y]=g.useState(!1),[b,w]=g.useState(null),C=g.useMemo(()=>({isAiCfoOpen:x,setIsAiCfoOpen:y,aiCfoSidePanelQuestionToSubmit:b,setAiCfoSidePanelQuestionToSubmit:w}),[x,b,y,w]),{useFeatureGate:v}=es(),{isFeatureEnabled:$}=v(Yi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=v(Yi.isBillPayCommentingEnabled),{isFeatureEnabled:j}=v(Yi.isReimbursementCommentingEnabled),{isFeatureEnabled:A}=v(Yi.isExpenseAutomationEnabled),{isFeatureEnabled:E}=v(Yi.isExpenseAutomationEnabledV2),{isFeatureEnabled:L}=v(Yi.isTreasuryCommentingEnabled),{isFeatureEnabled:I}=v(Yi.isCheckingCommentingEnabled),{isFeatureEnabled:D}=v(Yi.isTransactionCommentingEnabled),{isFeatureEnabled:z}=v(Yi.isCardsCommentingEnabled),_=k||j||c&&A||!c&&E||L||I||D||z;return g.useEffect(()=>{!m&&x&&y(!1)},[m,x]),g.useEffect(()=>{m||p(d8t())},[p,m]),Pt.jsx(N3n,{children:a.tenantId!=null?Pt.jsx(jzi,{roomId:`dashboard_${a.companyId}`,authParams:u,users:[],companies:d,authUrlEndPoint:`${SS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${SS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:c,autoConnect:c||D||z,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:_,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:a.companyId},children:Pt.jsxs(yae.Provider,{value:C,children:[Pt.jsx(RGe,{}),Pt.jsxs(HGe,{children:[Pt.jsx(zGe,{tenantEmailDomain:e}),Pt.jsx(VGe,{children:Pt.jsx(NGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})}):Pt.jsx(Izi,{children:Pt.jsxs(yae.Provider,{value:C,children:[Pt.jsx(RGe,{}),Pt.jsxs(HGe,{children:[Pt.jsx(zGe,{tenantEmailDomain:e}),Pt.jsx(VGe,{children:Pt.jsx(NGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})})})},NGe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=hi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=es(),{configValue:c}=s(b2.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}=EU(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=jU();return g.useEffect(()=>{h(Aue.APP_INITIALIZATION)},[h]),Pt.jsx(g.Suspense,{fallback:null,children:Pt.jsx(D3r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Pt.jsxs(_7t,{children:[Pt.jsx(Up,{path:"/magic_links/*",element:Pt.jsx(O3r,{})}),Pt.jsx(Up,{path:"/wise/callback/link-account/*",element:Pt.jsx(F3r,{})}),Pt.jsx(Up,{path:"/page-not-found",element:Pt.jsx(FGe,{})}),Pt.jsx(Up,{path:"/",element:Pt.jsx(B3r,{})}),Pt.jsx(Up,{path:"/aicfo",element:Pt.jsx(V3r,{})}),Pt.jsx(Up,{path:"/onboarding/auth",element:Pt.jsx(R3r,{})}),Pt.jsx(Up,{path:"/:tenantEmailDomain/*",element:Pt.jsxs(Q3r,{children:[Pt.jsx(G3r,{children:Pt.jsxs(I3r,{children:[a!=null?Pt.jsx(k3r,{}):null,n?Pt.jsx(OGe,{setTenantEmailDomain:e}):Pt.jsx(xte,{children:Pt.jsx(OGe,{setTenantEmailDomain:e})})]})}),o?Pt.jsx(Y3r,{isOpen:m,children:Pt.jsx(g3r,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Pt.jsx(Up,{path:"/signin/auth",element:Pt.jsx(xte,{children:Pt.jsx(_3r,{setTenantEmailDomain:e})})}),Pt.jsx(Up,{path:"/signin/magic-link",element:Pt.jsx(xte,{children:Pt.jsx(z3r,{})})}),Pt.jsx(Up,{path:"/signout",element:Pt.jsx(N3r,{})}),Pt.jsx(Up,{path:"/connection/auth",element:Pt.jsx(M3r,{})}),Pt.jsx(Up,{path:"*",element:Pt.jsx(FGe,{})})]})})})},VGe=({children:e})=>{const{isOpen:n,width:o}=Gy();return Pt.jsx(W3r,{commentsDrawerWidth:n?o:0,children:e})},U3r=Nn("div")`
|
|
71749
|
+
`,k3r=()=>{const[e,n]=g.useState(()=>Si.getSignedInUser()),o=Wg(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=hi(m=>QYe(m).fetchState),u=hi(m=>Lu(m));g.useEffect(()=>{const m=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);a(m)},[e]);const p=g.useCallback(()=>{const m=Si.getSignedInUser();n(f=>JSON.stringify(f)!==JSON.stringify(m)?m:f)},[]);g.useEffect(()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)}),[]),g.useEffect(()=>{d!=="In-Progress"&&d!=="Completed"&&o(s8t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Pt.jsxs(g.Fragment,{children:[s&&Pt.jsx(Nce,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Pt.jsx(S3r,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},PGe="init-enter",A3r=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||PGe);j3r(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||PGe,c=E3r();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),j3r=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),E3r=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},e7t=g.createContext(void 0),I3r=({children:e})=>{const{tenantEmailDomain:n}=M7t(),o=n!=null?Si.getSignedInUserTenant(n):void 0,i=hi(u=>Lu(u)),a=cI().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Pt.jsx(e7t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},$7r=()=>{const e=g.useContext(e7t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},k2=e=>g.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}}),t7t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),n7t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),o7t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),i7t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Ul(...e){const n=mc==="DEV"||mc==="QA";if(t7t||n7t||o7t||i7t)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 zv(...e){const n=mc==="DEV"||mc==="QA";if(t7t||n7t||o7t||i7t)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 sC=null,MA=!1;const Wl=mc==="PROD"?"https://api.zeni.ai":mc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function BGe(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:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Wl}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const L3r={dashboard:function(e){return[...BGe()]},reports:BGe,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:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Wl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Wl}/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:`${Wl}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Wl}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Wl}/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:`${Wl}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Wl}/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:`${Wl}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Wl}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Wl}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Wl}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function MGe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,L3r[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Ul(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Ul(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Ul(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Ul(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function _Ge(e,n=0,o){if("serviceWorker"in navigator)try{const i=await async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise((h,m)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(Ul("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):m(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)})}(1e4),a=navigator.serviceWorker.controller||i.active;if(!a)return void zv("[Prefetch Manager - Service Worker] No active Service Worker available");const s=function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort((h,m)=>p[h.priority]-p[m.priority])}(e);Ul("[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)=>{Ul(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Ul(` URL: ${u.url}`)});const c=cI(),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}}),Ul("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){zv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else zv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function T3r({children:e,currentPage:n,tenantId:o,batchCalls:i=0,expirationTime:a,delay:s=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:m=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=g.useState(!1),[b,w]=g.useState(!1),C=g.useRef(null),v=bp(),$=Si.getSignedInUser(),{useFeatureGate:k}=es(),{isFeatureEnabled:j}=k(Yi.isReferralFeatureEnabled),A=pn(),E=a7(A?.loggedInUserRole??[]),L=hi(R=>Lu(R)),{isFeatureEnabled:I}=k(Yi.isDebitCardFeatureEnabled),D=RYe(I,L),z=FYe(L),_=D===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const R=MGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L?.companyId??"",isPageIndependent:m}),N=m?"dashboard":n;if(R.length===0)return void Ul(`[Prefetch Provider - ${N}${m?" (base)":""}] No URLs to prefetch`);Ul(`[Prefetch Provider - ${N}${m?" (base)":""}] 📦 Generated ${R.length} URLs to prefetch`);const O=setTimeout(()=>{_Ge(R,i,a).catch(F=>{zv(`[Prefetch Provider - ${N}${m?" (base)":""}] Prefetch failed:`,F)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,_,L?.companyId,m,i,a,s,v.pathname]),g.useEffect(()=>{y(!1)},[o,v.pathname]),g.useEffect(()=>{m||(y(!1),w(!1))},[v.pathname,m]),g.useEffect(()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&$&&o)||b)return;Ul(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const R=function(N){const{timeout:O=2e3,onIdle:F}=N;Ul(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const M=()=>{MA&&(Ul("[Idle Detection - Service Worker] 🏃 User became active again"),MA=!1),sC&&clearTimeout(sC),sC=setTimeout(()=>{MA||(Ul("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),MA=!0,F())},O)},V=["mousedown","mousemove","keypress","scroll","touchstart","click"];return V.forEach(H=>{document.addEventListener(H,M,!0)}),M(),()=>{Ul("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),sC&&(clearTimeout(sC),sC=null),V.forEach(H=>{document.removeEventListener(H,M,!0)}),MA=!1}}({timeout:h,onIdle:()=>{if(b)return;Ul("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=MGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:_,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;N.length!==0?(Ul(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),_Ge(N,i,a).catch(F=>{zv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,F)}),w(!0)):Ul(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=R,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,_,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.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&&(Ul("[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;Ul("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(R){zv("[Prefetch Provider] Failed to notify service worker of refresh:",R)}}())},[]),Pt.jsx(Pt.Fragment,{children:e})}function D3r({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=bp(),u=hi(y=>Lu(y)),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const m=u.tenantId,{useFeatureGate:f}=es(),{isFeatureEnabled:x}=f(Yi.isServiceWorkerPrefetchingEnabled);return m&&p?Pt.jsx(T3r,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Pt.jsx(Pt.Fragment,{children:e})}function P3r(e,n){const o=oo.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const B3r=k2(()=>$1(()=>import("./DefaultTenantHome-BaZh27Bx.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),zGe=k2(()=>$1(()=>Promise.resolve().then(()=>n3r),void 0)),OGe=k2(()=>$1(()=>import("./ScreenRoutes-R2vFklcz.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),M3r=k2(()=>$1(()=>import("./ConnectionAuthScreen-C-v9-LAq.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),_3r=k2(()=>$1(()=>import("./SignInScreen-r_ANC4Ef.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),z3r=k2(()=>$1(()=>import("./MagicLinkSignInScreen-BTQ6r2pp.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),FGe=k2(()=>$1(()=>import("./NotFoundScreen-Cvae_Z2x.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),O3r=k2(()=>$1(()=>import("./MagicLinkRoutes-Gg2h_9D5.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),F3r=k2(()=>$1(()=>import("./WiseConfirmationScreen-CtDtoecw.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),R3r=k2(()=>$1(()=>import("./CustomerOnboardingAuthScreen-IpaehusK.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),N3r=k2(()=>$1(()=>import("./SignOutScreen-9XjeY0Ws.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),V3r=()=>{const e=bp(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=P3r("/",n);return Pt.jsx(nYe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function RGe(){const{isOpen:e}=Gy(),n=V3n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=jU(),a=g.useRef(!1),s=g.useRef(o),c=g.useRef(!1);return g.useLayoutEffect(()=>{const d=o&&!s.current;s.current=o,d&&e&&(i(!1),n(),c.current=!0)},[o,e,i,n]),g.useEffect(()=>{e&&!a.current&&(c.current=!1,o&&i(!1)),a.current=e},[e,o,i]),g.useEffect(()=>{!e&&c.current&&(c.current=!1,i(!0))},[e,i]),null}const H3r=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=bp(),i=Si.isSignedIn(),a=hi(R=>Lu(R)),s=Si.getSignedInUser(),c=i&&H7(s),d=hi(R=>c8t(R)).tenantsBaseInOrder.map(R=>({companyId:R.companyId,tenantId:R.tenantId,companyName:R.companyName})),u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:a.tenantId??""},p=Wg(),h=us(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),m=us(I5t)||bae(o.pathname),f=K5t(),[x,y]=g.useState(!1),[b,w]=g.useState(null),C=g.useMemo(()=>({isAiCfoOpen:x,setIsAiCfoOpen:y,aiCfoSidePanelQuestionToSubmit:b,setAiCfoSidePanelQuestionToSubmit:w}),[x,b,y,w]),{useFeatureGate:v}=es(),{isFeatureEnabled:$}=v(Yi.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=v(Yi.isBillPayCommentingEnabled),{isFeatureEnabled:j}=v(Yi.isReimbursementCommentingEnabled),{isFeatureEnabled:A}=v(Yi.isExpenseAutomationEnabled),{isFeatureEnabled:E}=v(Yi.isExpenseAutomationEnabledV2),{isFeatureEnabled:L}=v(Yi.isTreasuryCommentingEnabled),{isFeatureEnabled:I}=v(Yi.isCheckingCommentingEnabled),{isFeatureEnabled:D}=v(Yi.isTransactionCommentingEnabled),{isFeatureEnabled:z}=v(Yi.isCardsCommentingEnabled),_=k||j||c&&A||!c&&E||L||I||D||z;return g.useEffect(()=>{!m&&x&&y(!1)},[m,x]),g.useEffect(()=>{m||p(d8t())},[p,m]),Pt.jsx(N3n,{children:a.tenantId!=null?Pt.jsx(jzi,{roomId:`dashboard_${a.companyId}`,authParams:u,users:[],companies:d,authUrlEndPoint:`${SS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${SS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:c,autoConnect:c||D||z,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:_,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:a.companyId},children:Pt.jsxs(yae.Provider,{value:C,children:[Pt.jsx(RGe,{}),Pt.jsxs(HGe,{children:[Pt.jsx(zGe,{tenantEmailDomain:e}),Pt.jsx(VGe,{children:Pt.jsx(NGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})}):Pt.jsx(Izi,{children:Pt.jsxs(yae.Provider,{value:C,children:[Pt.jsx(RGe,{}),Pt.jsxs(HGe,{children:[Pt.jsx(zGe,{tenantEmailDomain:e}),Pt.jsx(VGe,{children:Pt.jsx(NGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})})})},NGe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=hi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=es(),{configValue:c}=s(b2.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}=EU(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=jU();return g.useEffect(()=>{h(Aue.APP_INITIALIZATION)},[h]),Pt.jsx(g.Suspense,{fallback:null,children:Pt.jsx(D3r,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Pt.jsxs(_7t,{children:[Pt.jsx(Up,{path:"/magic_links/*",element:Pt.jsx(O3r,{})}),Pt.jsx(Up,{path:"/wise/callback/link-account/*",element:Pt.jsx(F3r,{})}),Pt.jsx(Up,{path:"/page-not-found",element:Pt.jsx(FGe,{})}),Pt.jsx(Up,{path:"/",element:Pt.jsx(B3r,{})}),Pt.jsx(Up,{path:"/aicfo",element:Pt.jsx(V3r,{})}),Pt.jsx(Up,{path:"/onboarding/auth",element:Pt.jsx(R3r,{})}),Pt.jsx(Up,{path:"/:tenantEmailDomain/*",element:Pt.jsxs(Q3r,{children:[Pt.jsx(G3r,{children:Pt.jsxs(I3r,{children:[a!=null?Pt.jsx(k3r,{}):null,n?Pt.jsx(OGe,{setTenantEmailDomain:e}):Pt.jsx(xte,{children:Pt.jsx(OGe,{setTenantEmailDomain:e})})]})}),o?Pt.jsx(Y3r,{isOpen:m,children:Pt.jsx(g3r,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Pt.jsx(Up,{path:"/signin/auth",element:Pt.jsx(xte,{children:Pt.jsx(_3r,{setTenantEmailDomain:e})})}),Pt.jsx(Up,{path:"/signin/magic-link",element:Pt.jsx(xte,{children:Pt.jsx(z3r,{})})}),Pt.jsx(Up,{path:"/signout",element:Pt.jsx(N3r,{})}),Pt.jsx(Up,{path:"/connection/auth",element:Pt.jsx(M3r,{})}),Pt.jsx(Up,{path:"*",element:Pt.jsx(FGe,{})})]})})})},VGe=({children:e})=>{const{isOpen:n,width:o}=Gy();return Pt.jsx(W3r,{commentsDrawerWidth:n?o:0,children:e})},U3r=Nn("div")`
|
|
71750
71750
|
display:flex;
|
|
71751
71751
|
`,HGe=Nn("div")`
|
|
71752
71752
|
display: flex;
|
|
@@ -71868,4 +71868,4 @@ ${ba.beneficiaryAddress} ${ne}`,d(ye),I(!0)})(o),"data-testid":q("title-text-cop
|
|
|
71868
71868
|
}
|
|
71869
71869
|
`,nfr=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?Pt.jsxs(Z3r,{style:n,children:[Pt.jsxs(J3r,{children:[Pt.jsx(AM,{children:Pt.jsx(nh,{width:96,height:20})}),Pt.jsxs(AM,{children:[Pt.jsx(nh,{width:55,height:12}),Pt.jsx(nh,{width:78,height:16}),Pt.jsx(nh,{width:46,height:16})]}),Pt.jsxs(AM,{children:[Pt.jsx(nh,{width:55,height:12}),Pt.jsx(nh,{width:110,height:16}),Pt.jsx(nh,{width:84,height:16})]}),Pt.jsxs(AM,{children:[Pt.jsx(nh,{width:55,height:12}),Pt.jsx(nh,{width:84,height:16}),Pt.jsx(nh,{width:64,height:16})]})]}),Pt.jsxs(X3r,{children:[Pt.jsxs(efr,{children:[Pt.jsx(nh,{width:106,height:27}),Pt.jsx(nh,{width:111,height:32})]}),Pt.jsx(tfr,{children:Pt.jsx(K3r,{width:96,height:96})})]})]}):null;function ofr({minDisplayTime:e=0}){const{isLoading:n}=EU(),[o,i]=g.useState(!1),a=g.useRef(),s=g.useRef(null);return g.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]),g.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),!n&&o||!o?null:Pt.jsx(nfr,{fetchState:"In-Progress"})}const UGe="missing-receipts-batch-completed",E8=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 LC=null;function ifr(){return LC===null&&(LC=function(){console.warn(`initializing epic state with url ${JSON.stringify(SS)}`);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=m8t(SS,e?.userId,e?.zeniSessionId,n,_v(),sfr);Ste();const i=cI();return i.userId!=null&&Mh.identify(i.userId,{tenant_id:i.tenantId}),o}(),Ste().then(()=>{LC!=null&&(E8.reset(),lfr(LC))}).catch(e=>{console.error("Failed to load feature epics:",e),x7t(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
71870
71870
|
|
|
71871
|
-
Please refresh the page to try again.`)})),LC}function A7r(){return LC}const jM=new p8t,WGe=()=>{const e=Wg(),n=Si.getSignedInUser(),o=hi(w=>Lu(w)),[i,a]=g.useState(null),s=xgi(n?.userId),c=g.useCallback(()=>{a(null),jM.stop(),e(x8t()),e(y8t(!1)),Si.clearAll(),window.location.href="/signin/auth"},[e,a]);g.useEffect(()=>{if(n?.zeniSessionId!=null)return jM.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(b8t()),onWarningStart:a,onWarningTick:a,onAutoLogout:c,onSessionExtended:()=>a(null)}),()=>jM.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=hi(w=>w8t(w,o.companyId)),u=us(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];g.useEffect(()=>()=>{e(ppe())},[]);const h=hi(w=>C8t(w));(()=>{const w=Tue(),C=Wg(),{useFeatureGate:v}=es(),{isFeatureEnabled:$}=v(Yi.isMissingReceiptsBulkUploadEnabled);g.useEffect(()=>{if($!==!0||w==null)return;const k=Si.getSignedInUser()?.userId;if(k==null)return;const j=eE(w,k),A=E=>{C(u8t({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(UGe,A),()=>{j.unbind(UGe,A)}},[w,C,$])})();const m=o?.externalConnections?.accounting[0]?.connectionName,f=g.useMemo(()=>UYe(o.userRole),[o.userRole]),x={events:o.userRoleId!=null?[`private-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(w,C)=>{var v;v=C,v?.data!=null&&e(v8t(C))}},y=g.useMemo(()=>Si.getSignedInUser(),[]),b=g.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return Pt.jsxs(jsn,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:m,controllersList:d},children:[Pt.jsx(bsn,{toolkit:{analytics:Mh,sentry:y7t,authParams:b},children:Pt.jsxs(Oln,{endPoint:{url:$ue},children:[Pt.jsx(KZo,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(ppe())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),Pt.jsx(q3r,{...x})]})}),i!=null&&n!=null?Pt.jsx(lgr,{secondsRemaining:i,onContinueSession:()=>jM.continueSession(),onSignOut:c}):null]})},rfr=()=>{const e=Si.isSignedIn(),n=hi(s=>Lu(s)).companyId,o=hi(s=>h8t(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=g.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=g.useMemo(()=>({currentFeatureEnv:$Ge,featureClientSecret:Ca.featureClientSecret,providerEndPoint:rI.statsigBaseUrl}),[$Ge,Ca.featureClientSecret,rI.statsigBaseUrl]);return n?Pt.jsx(F1n,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Pt.jsx(WGe,{})}):Pt.jsx(WGe,{})},afr=f7t(function(){const e=g.useMemo(()=>ifr(),[]),[n,o]=g.useState(!1),[i,a]=g.useState(!1);g.useEffect(()=>{Ste().then(()=>o(!0)).catch(()=>{})},[]);const s=g.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Pt.jsx(Ngr,{children:Pt.jsx(z7t,{store:e,children:Pt.jsx(Vgr,{value:n,children:Pt.jsxs(kgr,{children:[Pt.jsx(ofr,{}),Pt.jsx(Fzt,{children:Pt.jsx(Rgr,{children:Pt.jsxs(xsn,{children:[i?Pt.jsx(Qgn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Pt.jsx(rfr,{})]})})})]})})})})});function lfr(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=Lu(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&&(OYe(i.userId,i.zeniSessionId,c),e.dispatch(Rae(c)),a!=null&&Si.saveActiveTenantDomainForUser(a),E8.shouldFetchActiveTenant(c)&&(E8.markActiveTenantFetchStarted(c),e.dispatch(WYe(i.userId,c,i.zeniSessionId))),E8.shouldFetchExcludedResources(c)&&(E8.markExcludedResourcesFetchStarted(c),e.dispatch(g8t(i.userId,c))),E8.shouldFetchConnections(c)&&(E8.markConnectionsFetchStarted(c),e.dispatch(f8t(i.userId,c))))}function sfr(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const cfr=!!(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}$/)),QGe=`/service-worker.js?v=${Date.now()}&env=PROD&endpoint=${encodeURIComponent("https://zeni-webapp.uc.r.appspot.com")}`;function GGe(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 yte=!1,YGe=null;const qGe="//js.hs-scripts.com/5991084.js",KGe="hs-script-loader",dfr=Si.getSignedInUser(),ufr=dfr?.zeniSessionId;var u8;(async function(){try{const o=await async function(){const a={environment:mc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${$ue}/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-"+mc,Xj.AES.decrypt(e,n).toString(Xj.enc.Utf8));Cgr(JSON.parse(i)),U8t.createRoot(document.getElementById("root")).render(Pt.jsx(T.StrictMode,{children:Pt.jsx(O7t,{children:Pt.jsx(afr,{})})})),function(){const a=()=>{const s=Ca.sentryDsn?.trim();if(!s)return;const c=Ca.sentryProfileSamplingRate>0;b7t({dsn:s,tracesSampleRate:Ca.sentryTraceSamplingRate,profilesSampleRate:c?Ca.sentryProfileSamplingRate:0,integrations:[w7t(),...c?[C7t()]:[],v7t({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 m=JSON.parse(h[0]);if(m.user_roles!=null)return delete m.user_roles,p.replace(h[0],JSON.stringify(m))}}catch{}return p})),0)))),d)}),S7t("session-id",ufr)};"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):YGe!==null||(YGe=new Promise(e=>{if(yte)return void e(!0);const n=()=>{yte?e(!0):(yte=!0,new Promise((i,a)=>{if(document.getElementById(KGe))return void i();const s=document.createElement("script");s.id=KGe,s.src=qGe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${qGe}`)),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://app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{var e;cfr?(e=QGe,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())}):GGe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):GGe(QGe)})}}(),(u8=console.log)&&u8 instanceof Function&&$1(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(u8),n(u8),o(u8),i(u8),a(u8)});export{Ogr as $,s5r as A,w3r as B,yce as C,X as D,B as E,zgr as F,e4r as G,jU as H,$7r as I,Nz as J,$ue as K,Aue as L,v7o as M,Afr as N,w7r as O,v7r as P,o4r as Q,RWo as R,K3r as S,Zqn as T,Xfr as U,Zfr as V,jfr as W,Sae as X,n7r as Y,ce as Z,Ilt as _,es as a,BNn as a$,K5r as a0,Due as a1,DGe as a2,Hgr as a3,Zgr as a4,Ugr as a5,Ggr as a6,Kgr as a7,tJn as a8,TGe as a9,O4r as aA,N4r as aB,w1e as aC,f5r as aD,g5r as aE,R4r as aF,F4r as aG,Vfr as aH,b2 as aI,J4r as aJ,Ygr as aK,n7o as aL,n4r as aM,JMn as aN,qJn as aO,u5r as aP,d5r as aQ,p5r as aR,Yfr as aS,Sn as aT,Plt as aU,Agr as aV,S7r as aW,d3r as aX,Kfr as aY,Jfr as aZ,Wfr as a_,Qgr as aa,vae as ab,R_ as ac,TO as ad,IGe as ae,No as af,M4r as ag,B4r as ah,T8o as ai,t4r as aj,t5r as ak,jt as al,X4r as am,aI as an,SS as ao,d3 as ap,e5r as aq,D5r as ar,Dlt as as,I5r as at,T5r as au,L5r as av,P5r as aw,B5r as ax,Hfr as ay,h5r as az,P3r as b,R1r as b$,uat as b0,i4r as b1,e7r as b2,J5r as b3,A4r as b4,Dfr as b5,zfr as b6,Qse as b7,Pfr as b8,o7r as b9,o5r as bA,f4r as bB,x4r as bC,n5r as bD,i5r as bE,w4r as bF,C4r as bG,v4r as bH,L4r as bI,Nfr as bJ,D4r as bK,P4r as bL,i7r as bM,$4r as bN,y7r as bO,d7r as bP,U4r as bQ,G4r as bR,W4r as bS,Ifr as bT,V4r as bU,H4r as bV,K4r as bW,Nce as bX,Y4r as bY,Z4r as bZ,Dcr as b_,z4r as ba,Mfr as bb,_fr as bc,Bfr as bd,_v as be,m5r as bf,u4r as bg,h4r as bh,p4r as bi,s4r as bj,l4r as bk,m4r as bl,c5r as bm,c4r as bn,d4r as bo,g4r as bp,aa as bq,_5r as br,k4r as bs,S4r as bt,m7r as bu,q4r as bv,c7r as bw,E4r as bx,I4r as by,T4r as bz,K5t as c,Qee as c0,g7r as c1,f7r as c2,x7r as c3,h7r as c4,qfr as c5,G5r as c6,F5r as c7,V5r as c8,Ofr as c9,Gy as cA,b7r as cB,X5r as cC,y4r as cD,q5r as cE,u3r as cF,Fgr as cG,o3r as cH,p3r as cI,Pue as cJ,k7r as cK,o1n as cL,Lfr as cM,Z5t as cN,Q4r as ca,Wi as cb,u$i as cc,N5r as cd,z5r as ce,U5r as cf,O5r as cg,H5r as ch,Ffr as ci,Rfr as cj,Y5r as ck,S as cl,Q5r as cm,W5r as cn,R5r as co,M5r as cp,Z5r as cq,t7r as cr,a7r as cs,r7r as ct,s7r as cu,Tfr as cv,_4r as cw,l7r as cx,j4r as cy,V3n as cz,Yi as d,Mh as e,lfr as f,oo as g,Te as h,A7r as i,Ufr as j,pn as k,k2 as l,Ca as m,Cn as n,r as o,r5r as p,Cyn as q,C7r as r,a5r as s,E8 as t,EU as u,Ef as v,l5r as w,ddt as x,P as y,Si as z};
|
|
71871
|
+
Please refresh the page to try again.`)})),LC}function A7r(){return LC}const jM=new p8t,WGe=()=>{const e=Wg(),n=Si.getSignedInUser(),o=hi(w=>Lu(w)),[i,a]=g.useState(null),s=xgi(n?.userId),c=g.useCallback(()=>{a(null),jM.stop(),e(x8t()),e(y8t(!1)),Si.clearAll(),window.location.href="/signin/auth"},[e,a]);g.useEffect(()=>{if(n?.zeniSessionId!=null)return jM.start({idleTimeoutMinutes:s.idleTimeoutMinutes,warningDurationSeconds:s.warningDurationSeconds,heartbeatIntervalMinutes:s.heartbeatIntervalMinutes,isAutoLogoutEnabled:s.isAutoLogoutEnabled},{onHeartbeat:()=>e(b8t()),onWarningStart:a,onWarningTick:a,onAutoLogout:c,onSessionExtended:()=>a(null)}),()=>jM.stop()},[n?.zeniSessionId,s.isAutoLogoutEnabled,s.idleTimeoutMinutes,s.warningDurationSeconds,s.heartbeatIntervalMinutes,e,c,a]);const d=hi(w=>w8t(w,o.companyId)),u=us(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];g.useEffect(()=>()=>{e(ppe())},[]);const h=hi(w=>C8t(w));(()=>{const w=Tue(),C=Wg(),{useFeatureGate:v}=es(),{isFeatureEnabled:$}=v(Yi.isMissingReceiptsBulkUploadEnabled);g.useEffect(()=>{if($!==!0||w==null)return;const k=Si.getSignedInUser()?.userId;if(k==null)return;const j=eE(w,k),A=E=>{C(u8t({batchId:E.batch_id,progress:E.progress,status:E.status.toLowerCase()}))};return j.bind(UGe,A),()=>{j.unbind(UGe,A)}},[w,C,$])})();const m=o?.externalConnections?.accounting[0]?.connectionName,f=g.useMemo(()=>UYe(o.userRole),[o.userRole]),x={events:o.userRoleId!=null?[`private-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(w,C)=>{var v;v=C,v?.data!=null&&e(v8t(C))}},y=g.useMemo(()=>Si.getSignedInUser(),[]),b=g.useMemo(()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:o.tenantId??""}),[y,o.tenantId]);return Pt.jsxs(jsn,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:o,connectionName:m,controllersList:d},children:[Pt.jsx(bsn,{toolkit:{analytics:Mh,sentry:y7t,authParams:b},children:Pt.jsxs(Oln,{endPoint:{url:$ue},children:[Pt.jsx(KZo,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(ppe())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),Pt.jsx(q3r,{...x})]})}),i!=null&&n!=null?Pt.jsx(lgr,{secondsRemaining:i,onContinueSession:()=>jM.continueSession(),onSignOut:c}):null]})},rfr=()=>{const e=Si.isSignedIn(),n=hi(s=>Lu(s)).companyId,o=hi(s=>h8t(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=g.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=g.useMemo(()=>({currentFeatureEnv:$Ge,featureClientSecret:Ca.featureClientSecret,providerEndPoint:rI.statsigBaseUrl}),[$Ge,Ca.featureClientSecret,rI.statsigBaseUrl]);return n?Pt.jsx(F1n,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Pt.jsx(WGe,{})}):Pt.jsx(WGe,{})},afr=f7t(function(){const e=g.useMemo(()=>ifr(),[]),[n,o]=g.useState(!1),[i,a]=g.useState(!1);g.useEffect(()=>{Ste().then(()=>o(!0)).catch(()=>{})},[]);const s=g.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Pt.jsx(Ngr,{children:Pt.jsx(z7t,{store:e,children:Pt.jsx(Vgr,{value:n,children:Pt.jsxs(kgr,{children:[Pt.jsx(ofr,{}),Pt.jsx(Fzt,{children:Pt.jsx(Rgr,{children:Pt.jsxs(xsn,{children:[i?Pt.jsx(Qgn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Pt.jsx(rfr,{})]})})})]})})})})});function lfr(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=Lu(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&&(OYe(i.userId,i.zeniSessionId,c),e.dispatch(Rae(c)),a!=null&&Si.saveActiveTenantDomainForUser(a),E8.shouldFetchActiveTenant(c)&&(E8.markActiveTenantFetchStarted(c),e.dispatch(WYe(i.userId,c,i.zeniSessionId))),E8.shouldFetchExcludedResources(c)&&(E8.markExcludedResourcesFetchStarted(c),e.dispatch(g8t(i.userId,c))),E8.shouldFetchConnections(c)&&(E8.markConnectionsFetchStarted(c),e.dispatch(f8t(i.userId,c))))}function sfr(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const cfr=!!(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}$/)),QGe=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function GGe(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 yte=!1,YGe=null;const qGe="//js.hs-scripts.com/5991084.js",KGe="hs-script-loader",dfr=Si.getSignedInUser(),ufr=dfr?.zeniSessionId;var u8;(async function(){try{const o=await async function(){const a={environment:mc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${$ue}/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-"+mc,Xj.AES.decrypt(e,n).toString(Xj.enc.Utf8));Cgr(JSON.parse(i)),U8t.createRoot(document.getElementById("root")).render(Pt.jsx(T.StrictMode,{children:Pt.jsx(O7t,{children:Pt.jsx(afr,{})})})),function(){const a=()=>{const s=Ca.sentryDsn?.trim();if(!s)return;const c=Ca.sentryProfileSamplingRate>0;b7t({dsn:s,tracesSampleRate:Ca.sentryTraceSamplingRate,profilesSampleRate:c?Ca.sentryProfileSamplingRate:0,integrations:[w7t(),...c?[C7t()]:[],v7t({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 m=JSON.parse(h[0]);if(m.user_roles!=null)return delete m.user_roles,p.replace(h[0],JSON.stringify(m))}}catch{}return p})),0)))),d)}),S7t("session-id",ufr)};"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):YGe!==null||(YGe=new Promise(e=>{if(yte)return void e(!0);const n=()=>{yte?e(!0):(yte=!0,new Promise((i,a)=>{if(document.getElementById(KGe))return void i();const s=document.createElement("script");s.id=KGe,s.src=qGe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${qGe}`)),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;cfr?(e=QGe,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())}):GGe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})):GGe(QGe)})}}(),(u8=console.log)&&u8 instanceof Function&&$1(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(u8),n(u8),o(u8),i(u8),a(u8)});export{Ogr as $,s5r as A,w3r as B,yce as C,X as D,B as E,zgr as F,e4r as G,jU as H,$7r as I,Nz as J,$ue as K,Aue as L,v7o as M,Afr as N,w7r as O,v7r as P,o4r as Q,RWo as R,K3r as S,Zqn as T,Xfr as U,Zfr as V,jfr as W,Sae as X,n7r as Y,ce as Z,Ilt as _,es as a,BNn as a$,K5r as a0,Due as a1,DGe as a2,Hgr as a3,Zgr as a4,Ugr as a5,Ggr as a6,Kgr as a7,tJn as a8,TGe as a9,O4r as aA,N4r as aB,w1e as aC,f5r as aD,g5r as aE,R4r as aF,F4r as aG,Vfr as aH,b2 as aI,J4r as aJ,Ygr as aK,n7o as aL,n4r as aM,JMn as aN,qJn as aO,u5r as aP,d5r as aQ,p5r as aR,Yfr as aS,Sn as aT,Plt as aU,Agr as aV,S7r as aW,d3r as aX,Kfr as aY,Jfr as aZ,Wfr as a_,Qgr as aa,vae as ab,R_ as ac,TO as ad,IGe as ae,No as af,M4r as ag,B4r as ah,T8o as ai,t4r as aj,t5r as ak,jt as al,X4r as am,aI as an,SS as ao,d3 as ap,e5r as aq,D5r as ar,Dlt as as,I5r as at,T5r as au,L5r as av,P5r as aw,B5r as ax,Hfr as ay,h5r as az,P3r as b,R1r as b$,uat as b0,i4r as b1,e7r as b2,J5r as b3,A4r as b4,Dfr as b5,zfr as b6,Qse as b7,Pfr as b8,o7r as b9,o5r as bA,f4r as bB,x4r as bC,n5r as bD,i5r as bE,w4r as bF,C4r as bG,v4r as bH,L4r as bI,Nfr as bJ,D4r as bK,P4r as bL,i7r as bM,$4r as bN,y7r as bO,d7r as bP,U4r as bQ,G4r as bR,W4r as bS,Ifr as bT,V4r as bU,H4r as bV,K4r as bW,Nce as bX,Y4r as bY,Z4r as bZ,Dcr as b_,z4r as ba,Mfr as bb,_fr as bc,Bfr as bd,_v as be,m5r as bf,u4r as bg,h4r as bh,p4r as bi,s4r as bj,l4r as bk,m4r as bl,c5r as bm,c4r as bn,d4r as bo,g4r as bp,aa as bq,_5r as br,k4r as bs,S4r as bt,m7r as bu,q4r as bv,c7r as bw,E4r as bx,I4r as by,T4r as bz,K5t as c,Qee as c0,g7r as c1,f7r as c2,x7r as c3,h7r as c4,qfr as c5,G5r as c6,F5r as c7,V5r as c8,Ofr as c9,Gy as cA,b7r as cB,X5r as cC,y4r as cD,q5r as cE,u3r as cF,Fgr as cG,o3r as cH,p3r as cI,Pue as cJ,k7r as cK,o1n as cL,Lfr as cM,Z5t as cN,Q4r as ca,Wi as cb,u$i as cc,N5r as cd,z5r as ce,U5r as cf,O5r as cg,H5r as ch,Ffr as ci,Rfr as cj,Y5r as ck,S as cl,Q5r as cm,W5r as cn,R5r as co,M5r as cp,Z5r as cq,t7r as cr,a7r as cs,r7r as ct,s7r as cu,Tfr as cv,_4r as cw,l7r as cx,j4r as cy,V3n as cz,Yi as d,Mh as e,lfr as f,oo as g,Te as h,A7r as i,Ufr as j,pn as k,k2 as l,Ca as m,Cn as n,r as o,r5r as p,Cyn as q,C7r as r,a5r as s,E8 as t,EU as u,Ef as v,l5r as w,ddt as x,P as y,Si as z};
|