@zeniai/web-app-ui 5.0.24-dev → 5.0.24-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-CWm4LI2A.js → AddressRoutes-BlwKMaxv.js} +1 -1
- package/dist/assets/{AddressScreen-BRfd-CkJ.js → AddressScreen-DmuzVSpn.js} +1 -1
- package/dist/assets/{AiCfoScreen-CSI2_D3j.js → AiCfoScreen-xOhPFfP0.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CVMR--P9.js → BillPayApprovalRoutes-M1yXHkwT.js} +1 -1
- package/dist/assets/{BillPayRoutes-CiAJiA46.js → BillPayRoutes-DIZnZzN-.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-surI_CG-.js → BusinessVerificationPageScreen-nI2MGxd-.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-DfK6AK1Y.js → ChargeCardRoutes-CdBZk3zl.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-D3MdOGSR.js → CompanyPassportScreen-euq0zzkh.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-m1ZrPmfY.js → ConnectionAuthScreen-ZhxPdXaU.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-C_ov5V1M.js → CustomerOnboardingAuthScreen-Cuf2yUew.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-igtoru6q.js → CustomerOnboardingRoutes-DJRocOcG.js} +1 -1
- package/dist/assets/{DashboardRoutes-btp07KOK.js → DashboardRoutes-CFIOs0Nt.js} +1 -1
- package/dist/assets/{DefaultTenantHome-wOBWCdoB.js → DefaultTenantHome-CnzNhAiZ.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Cq9OTpl5.js → DomesticWireDetailScreen-CacBxbO_.js} +1 -1
- package/dist/assets/{DrawerScreen-BddqtTBk.js → DrawerScreen-DQY8g3HS.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-J5KxaFpN.js → EntityDetailRoutes-CGPCXRhi.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-XSCKWGJC.js → ExpenseAutomationRoutes-CVsvgtLV.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-C7s5EUEI.js → FeaturePreviewScreen-BUE1IhYi.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-Bnt1hH7o.js → MagicLinkRoutes-DBuQgUiO.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-CiUBjUKX.js → MagicLinkSignInScreen-Cb8la_Xu.js} +1 -1
- package/dist/assets/{MobileAppDrawer-BTO_dO8H.js → MobileAppDrawer-Bgn6WvPn.js} +1 -1
- package/dist/assets/{NotFoundScreen-CQPWWkLY.js → NotFoundScreen-D1ntYwuX.js} +1 -1
- package/dist/assets/{NotificationRoutes-DfFcHUc_.js → NotificationRoutes-3cq3CSYC.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-CY2JRBex.js → PandLWithForecastRoutes-Cg8XHJAF.js} +1 -1
- package/dist/assets/{PeopleRoutes-Ah1x0pI6.js → PeopleRoutes-DwYHZ53s.js} +1 -1
- package/dist/assets/{PerformanceRoutes-D-In2h69.js → PerformanceRoutes-WeyRpahz.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-D6CMF20W.js → QBOConnectionScreen-Cw_9-l3E.js} +1 -1
- package/dist/assets/{ReferralListScreen-D4dSsS9f.js → ReferralListScreen-BUISJYbr.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CQWk5hg2.js → ReimbursementApprovalRoutes-CVL6d68J.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CLK4qljf.js → ReimbursementApprovalRuleDetailScreen-a8uFx7B0.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-Dle1xRUS.js → ReimbursementRoutes-CgNlW8Ko.js} +1 -1
- package/dist/assets/{ReportsRoutes-BVE7O3pM.js → ReportsRoutes-ow6X0mHD.js} +1 -1
- package/dist/assets/{RewardsRoutes-BUOQCgBW.js → RewardsRoutes-ByY4Dr-9.js} +1 -1
- package/dist/assets/{ScreenRoutes-CU85YNC5.js → ScreenRoutes-SJ48oAtS.js} +2 -2
- package/dist/assets/{SettingsRoutes-C1UlKVfn.js → SettingsRoutes-MS6J8y8K.js} +1 -1
- package/dist/assets/{SetupPagesScreen-D5f_S2gA.js → SetupPagesScreen-DyDXUs_E.js} +1 -1
- package/dist/assets/{SignInScreen-nIZ9894Z.js → SignInScreen-DjIBZSAO.js} +1 -1
- package/dist/assets/{SignOutScreen-BBR56tjP.js → SignOutScreen-CAS08fDR.js} +1 -1
- package/dist/assets/{TaskListScreen-vtDblzrs.js → TaskListScreen-DillWpPZ.js} +1 -1
- package/dist/assets/{TaskRoutes-6NyFYqIE.js → TaskRoutes-bEECYMwU.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-D3tlJJHj.js → TransactionDetailRoutes-DvqYP600.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-DORvf_A0.js → TransactionDetailScreen-CCL-hNKp.js} +1 -1
- package/dist/assets/{TransactionListRoutes-Dm17WsQR.js → TransactionListRoutes-DJi3xIjv.js} +1 -1
- package/dist/assets/{TreasuryRoutes-B_ttsGpb.js → TreasuryRoutes-S2wF3FW7.js} +1 -1
- package/dist/assets/{VendorsRoutes-xehzdyOP.js → VendorsRoutes-Cp3d3WhH.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-BURwrNzz.js → WiseConfirmationScreen-CvjWmLcA.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-D4VHQXPj.js → ZeniAccountRoutes-IG2z5xkD.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-DCQ_lEqk.js → ZeniAccountStatementScreen-D22w5XUI.js} +1 -1
- package/dist/assets/{analyticsHelper-ByMo5A8t.js → analyticsHelper-BLpyhiq6.js} +1 -1
- package/dist/assets/{getLocaleForTenant-BYC6p0GO.js → getLocaleForTenant-DSkWweMK.js} +1 -1
- package/dist/assets/{index-Co04ey3-.js → index-DYZnhdtQ.js} +5 -5
- package/dist/assets/{routePaths-CHVZiiJU.js → routePaths-BInZ9Oyt.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-BW2SwSZE.js → useAskAiCfoHostNavButtonProps-B1RRjyxi.js} +1 -1
- package/dist/assets/{useFetchSuggestedQuestionsWhenReady-cPo0or_6.js → useFetchSuggestedQuestionsWhenReady-Cy4jydJp.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-BV4XmA3t.js → useInitialThreadRequest-BrJWEdrN.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-ykEXkuoH.js → withTransactionSidePanel-BuR2K69z.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-eW2EQdSt.js","assets/sentry-DCGk37l1.js","assets/core-CNZua1e0.js","assets/index-rFuUBpwP.js","assets/DefaultTenantHome-
|
|
2
|
-
import{a as g,b as T,c as cte,R as b7t,p as AU,e as Bue,r as _u,g as XGe,f as w7t,s as Mue,i as C7t,w as v7t,j as S7t,S as $7t,k as k7t,l as A7t,m as j7t,n as E7t,o as I7t}from"./sentry-DCGk37l1.js";import{L as L7t,C as _ue,_ as Bp,a as iI,b as T7t,c as UF,d as rI,u as eYe,T as D7t,e as P7t,f as B7t,g as M7t,h as tYe,i as _7t,k as z7t,j as Bt,l as O7t}from"./liveblocks-CGYcZ7Lh.js";import{f as nYe,r as Mr,R as K8,P as pl,u as $p,m as oYe,g as hi,h as Ug,O as F7t,N as iYe,i as IA,j as WF,k as R7t,l as N7t,n as V7t,o as Yp,p as H7t,B as U7t}from"./core-CNZua1e0.js";import{L as zue,bl as W7t,bm as Q7,bn as Q7t,bo as G7t,bp as Nt,bq as bS,br as Pm,bs as Y7t,bt as n4,bu as Na,bv as za,bw as q7t,bx as K7t,by as wy,bz as G7,bA as hae,bB as on,bC as rYe,bD as aYe,bE as mae,bF as Lp,bG as Wg,bH as Kc,bI as kf,bJ as Z7t,bK as Ml,bL as J7t,bM as wS,bN as X7t,bO as e6t,bP as t6t,bQ as Ux,bR as n6t,bS as Oue,bT as o6t,bU as i6t,bV as r6t,bW as a6t,bX as l6t,bY as s6t,bZ as c6t,b_ as d6t,b$ as l7,c0 as QF,c1 as u6t,c2 as GF,c3 as YF,c4 as qF,c5 as gae,c6 as KF,c7 as Dv,c8 as Pv,c9 as ZF,ca as p6t,cb as h6t,cc as Fue,cd as dte,ce as m6t,cf as g6t,cg as v1,ch as lYe,ci as f6t,cj as a9,ck as Rue,cl as x6t,cm as y6t,cn as b6t,co as Cy,cp as vy,cq as sYe,cr as cYe,cs as fae,ct as w6t,cu as C6t,cv as M_,cw as dYe,cx as v6t,cy as uYe,cz as S6t,cA as LA,cB as Nue,cC as $6t,cD as pYe,cE as hYe,cF as mYe,cG as k6t,cH as CS,cI as Vue,cJ as A6t,cK as j6t,cL as gYe,cM as E6t,cN as fYe,cO as Hue,cP as Jc,cQ as gl,cR as I6t,cS as Bv,cT as kd,cU as xYe,cV as L6t,cW as Zj,cX as $x,cY as aa,cZ as T6t,c_ as D6t,c$ as P6t,d0 as SL,d1 as Ah,d2 as B6t,d3 as M6t,d4 as _6t,d5 as z6t,d6 as $L,d7 as Wx,d8 as JF,d9 as O6t,da as F6t,db as Sy,dc as Ld,dd as yYe,de as bYe,df as R6t,dg as ute,dh as N6t,di as m1,dj as k7,dk as xae,dl as wYe,dm as CYe,dn as vYe,dp as SYe,dq as $Ye,dr as kYe,ds as V6t,dt as Uue,du as H6t,_ as E1,dv as yae,dw as AYe,dx as U6t,dy as Wue,dz as Uu,dA as Af,dB as W6t,dC as Q6t,dD as jYe,dE as pte,dF as CM,dG as G6t,dH as Y6t,dI as q6t,dJ as K6t,dK as Z6t,dL as J6t,dM as X6t,dN as e9t,dO as t9t,dP as n9t,dQ as rj,dR as aj,dS as EYe,dT as AC,dU as bae,dV as wae,dW as vS,dX as Cae,dY as vae,dZ as Sae,d_ as $ae,d$ as IYe,e0 as kae,e1 as o9t,e2 as i9t,e3 as LYe,e4 as Que,e5 as r9t,e6 as Aae,e7 as a9t,e8 as l9t,e9 as TYe,ea as s9t,eb as c9t,ec as DYe,ed as d9t,ee as PYe,ef as BYe,eg as u9t,eh as p9t,ei as h9t,ej as m9t,ek as g9t,el as f9t,em as x9t,en as y9t,eo as b9t,ep as Gue,eq as XF,er as w9t,es as C9t,et as v9t,eu as S9t,ev as $9t,ew as k9t,ex as A9t,ey as j9t,ez as Yue,eA as MYe,eB as _Ye,eC as zYe,eD as OYe,eE as FYe,eF as RYe,eG as E9t,eH as I9t,eI as L9t,v as T9t,eJ as D9t,eK as P9t,eL as jae,eM as zu,eN as NYe,eO as aI,eP as B9t,eQ as VYe,eR as M9t,eS as HYe,eT as _9t,eU as UYe,eV as z9t,eW as O9t,eX as F9t,eY as R9t,eZ as N9t,e_ as que,e$ as V9t,f0 as WYe,f1 as mb,f2 as eR,f3 as Kue,f4 as H9t,f5 as Zue,f6 as U9t,f7 as W9t,f8 as QYe,f9 as GYe,fa as Q9t,fb as G9t,fc as Y9t,fd as q9t,fe as K9t,ff as Z9t,fg as __,fh as Eae,fi as YYe,fj as J9t,fk as lj,fl as X9t,fm as e8t,fn as t8t,fo as n8t,fp as o8t,fq as i8t,fr as r8t,fs as a8t,ft as l8t,fu as s8t,fv as c8t,fw as qYe,fx as d8t,fy as u8t,fz as p8t,fA as Jue,fB as h8t,fC as m8t,fD as g8t,fE as f8t,fF as hte,fG as x8t,fH as y8t,fI as b8t,fJ as w8t,fK as C8t,fL as Xue,fM as v8t,fN as S8t}from"./zeni-epic-state-eW2EQdSt.js";import{n as l,T as KYe,G as lI,j as Ho,c as Pe,k as _n,C as ZYe,u as Iae,a as mte,A as $8t,b as k8t,I as A8t,d as j8t,D as z_,S as JYe}from"./mui-DtCOffvy.js";import{r as E8t,m as xh}from"./analytics-Cm9Z6TfJ.js";import{u as Mp}from"./plaid-DpI35xEc.js";import{g as I8t,O as L8t,H as T8t,S as D8t,T as P8t,a as B8t,u as M8t,b as _8t}from"./dnd-Dmzop572.js";import{l as z8t}from"./stripe-DMRn4zHo.js";import{L as KC}from"./lottie-BoyaSool.js";import{r as As}from"./lexical-Dt1gfKRx.js";import{D as gte,P as fte,_ as XYe,a as eqe}from"./pdf-DPV5Ar9D.js";import{R as Jj,G as Qx,X as ts,Y as _l,H as Gx,I as td,J as Tp,K as $y,L as _p,M as O8t,N as SS,O as tqe,P as F8t,Q as tR,S as ZC,U as R8t,V as Lae,W as N8t,Z as V8t,_ as H8t}from"./recharts-Dq7pGiC-.js";import{r as U8t}from"./utils-DWAOcXZK.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]="6ea7aa34-d0b5-4d7c-917b-616a1d5ae299",e._sentryDebugIdIdentifier="sentry-dbid-6ea7aa34-d0b5-4d7c-917b-616a1d5ae299")}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 epe,kL={},W8t=function(){if(epe)return kL;epe=1;var e=nYe();return kL.createRoot=e.createRoot,kL.hydrateRoot=e.hydrateRoot,kL}(),vu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof cte<"u"?cte:typeof self<"u"?self:{};function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tpe,npe,ope={exports:{}},m$={};function nqe(){return npe||(npe=1,ope.exports=function(){if(tpe)return m$;tpe=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,m={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return m$.Fragment=o,m$.jsx=c,m$.jsxs=c,m$}()),ope.exports}var t=nqe();const Q8t=g.createContext(null),jU={didCatch:!1,error:null};let G8t=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=jU}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(jU)}}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(jU))}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(Q8t.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var ipe,EU={exports:{}},rpe,ape,IU,Y8t=(ipe||(ipe=1,ape=EU.exports,IU=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",D=1e12,z=1e9,B=1e6,N="",F=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=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||b==="m"?(I+=A.abbreviations.million,m/=B):(w<B&&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("["),N=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):N=e._.toFixed(m,v.length,x),C=N.split(".")[0],N=e._.includes(N,".")?A.delimiters.decimal+N.split(".")[1]:"",L&&Number(N.slice(1))===0&&(N="")):C=e._.toFixed(m,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),F=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return k>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+N+(I||""),E?j=(E&&F?"(":"")+j+(E&&F?")":""):$>=0?j=$===0?(F?"-":"+")+j:j+(F?"-":"+"):F&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(m),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(m,f){var x,y,b,w=this._value,C=m||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(m){return o.suffixes.indexOf(m)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(m,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(rpe=EU).exports?rpe.exports=IU():ape.numeral=IU()),EU.exports);const Pf=yi(Y8t);function Wf(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 Bf="$$material";var q8t={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 K8t(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var Z8t=/[A-Z]|^ms/g,J8t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oqe=function(e){return e.charCodeAt(1)===45},lpe=function(e){return e!=null&&typeof e!="boolean"},LU=K8t(function(e){return oqe(e)?e:e.replace(Z8t,"-$&").toLowerCase()}),spe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(J8t,function(o,i,a){return N5={name:i,styles:a,next:N5},i})}return q8t[e]===1||oqe(e)||typeof n!="number"||n===0?n:n+"px"};function O_(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 N5={name:a.name,styles:a.styles,next:N5},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)N5={name:c.name,styles:c.styles,next:N5},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+=O_(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;lpe(y)&&(h+=LU(f)+":"+spe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)lpe(x[b])&&(h+=LU(f)+":"+spe(f,x[b])+";");else{var w=O_(d,u,x);switch(f){case"animation":case"animationName":h+=LU(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var N5,cpe=/label:\s*([^\s;{]+)\s*(;|$)/g,dpe,upe,ppe,hpe,mpe,gpe={exports:{}};function X8t(){return upe?dpe:(upe=1,dpe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function ext(){if(hpe)return ppe;hpe=1;var e=X8t();function n(){}function o(){}return o.resetWarningCache=n,ppe=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 Tae(){return mpe||(mpe=1,gpe.exports=ext()()),gpe.exports}const bn=yi(Tae());var txt=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}(),yd="-ms-",fpe="-moz-",Tr="-webkit-",iqe="comm",Dae="rule",Pae="decl",rqe="@keyframes",nxt=Math.abs,nR=String.fromCharCode,oxt=Object.assign;function aqe(e){return e.trim()}function Pr(e,n,o){return e.replace(n,o)}function xte(e,n){return e.indexOf(n)}function Uc(e,n){return 0|e.charCodeAt(n)}function Xj(e,n,o){return e.slice(n,o)}function ig(e){return e.length}function Bae(e){return e.length}function AL(e,n){return n.push(e),e}var oR=1,Mv=1,lqe=0,ju=0,Ss=0,$S="";function iR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:oR,column:Mv,length:c,return:""}}function g$(e,n){return oxt(iR("",null,null,"",null,null,0),e,{length:-e.length},n)}function kp(){return Ss=ju<lqe?Uc($S,ju++):0,Mv++,Ss===10&&(Mv=1,oR++),Ss}function Pg(){return Uc($S,ju)}function vM(){return ju}function sI(e,n){return Xj($S,e,n)}function eE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sqe(e){return oR=Mv=1,lqe=ig($S=e),ju=0,[]}function cqe(e){return $S="",e}function SM(e){return aqe(sI(ju-1,yte(e===91?e+2:e===40?e+1:e)))}function ixt(e){for(;(Ss=Pg())&&Ss<33;)kp();return eE(e)>2||eE(Ss)>3?"":" "}function rxt(e,n){for(;--n&&kp()&&!(Ss<48||Ss>102||Ss>57&&Ss<65||Ss>70&&Ss<97););return sI(e,vM()+(n<6&&Pg()==32&&kp()==32))}function yte(e){for(;kp();)switch(Ss){case e:return ju;case 34:case 39:e!==34&&e!==39&&yte(Ss);break;case 40:e===41&&yte(e);break;case 92:kp()}return ju}function axt(e,n){for(;kp()&&e+Ss!==57&&(e+Ss!==84||Pg()!==47););return"/*"+sI(n,ju-1)+"*"+nR(e===47?e:kp())}function lxt(e){for(;!eE(Pg());)kp();return sI(e,ju)}function sxt(e){return cqe($M("",null,null,null,[""],e=sqe(e),0,[0],e))}function $M(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=kp()){case 40:if(y!=108&&Uc(E,m-1)==58){xte(E+=Pr(SM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=SM(v);break;case 9:case 10:case 13:case 32:E+=ixt(y);break;case 92:E+=rxt(vM()-1,7);continue;case 47:switch(Pg()){case 42:case 47:AL(cxt(axt(kp(),vM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=ig(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Pr(E,/\f/g,"")),x>0&&ig(E)-m&&AL(x>32?ype(E+";",i,o,m-1):ype(Pr(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(AL(A=xpe(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)$M(E,n,A,A,k,s,m,d,j);else switch(f===99&&Uc(E,3)===110?100:f){case 100:case 108:case 109:case 115:$M(e,A,A,i&&AL(xpe(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:$M(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+ig(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Ss=ju>0?Uc($S,--ju):0,Mv--,Ss===10&&(Mv=1,oR--),Ss==125))continue}switch(E+=nR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(ig(E)-1)*C,C=1;break;case 64:Pg()===45&&(E+=SM(kp())),f=Pg(),h=m=ig($=E+=lxt(vM())),v++;break;case 45:y===45&&ig(E)==2&&(b=0)}}return s}function xpe(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=Bae(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=Xj(e,m+1,m=nxt(b=c[y])),$=e;C<x;++C)($=aqe(b>0?f[C]+" "+v:Pr(v,/&\f/g,f[C])))&&(u[w++]=$);return iR(e,n,o,a===0?Dae:d,u,p,h)}function cxt(e,n,o){return iR(e,n,o,iqe,nR(Ss),Xj(e,2,-2),0)}function ype(e,n,o,i){return iR(e,n,o,Pae,Xj(e,0,i),Xj(e,i+1,-1),i)}function JC(e,n){for(var o="",i=Bae(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function dxt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Pae:return e.return=e.return||e.value;case iqe:return"";case rqe:return e.return=e.value+"{"+JC(e.children,i)+"}";case Dae:e.value=e.props.join(",")}return ig(o=JC(e.children,i))?e.return=e.value+"{"+o+"}":""}function uxt(e){return function(n){n.root||(n=n.return)&&e(n)}}var pxt=function(e,n,o){for(var i=0,a=0;i=a,a=Pg(),i===38&&a===12&&(n[o]=1),!eE(a);)kp();return sI(e,ju)},hxt=function(e,n){return cqe(function(o,i){var a=-1,s=44;do switch(eE(s)){case 0:s===38&&Pg()===12&&(i[a]=1),o[a]+=pxt(ju-1,i,a);break;case 2:o[a]+=SM(s);break;case 4:if(s===44){o[++a]=Pg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=nR(s)}while(s=kp());return o}(sqe(e),n))},bpe=new WeakMap,mxt=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||bpe.get(o))&&!i){bpe.set(e,!0);for(var a=[],s=hxt(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]}}},gxt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function dqe(e,n){switch(function(o,i){return 45^Uc(o,0)?(((i<<2^Uc(o,0))<<2^Uc(o,1))<<2^Uc(o,2))<<2^Uc(o,3):0}(e,n)){case 5103:return 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+fpe+e+yd+e+e;case 6828:case 4268:return Tr+e+yd+e+e;case 6165:return Tr+e+yd+"flex-"+e+e;case 5187:return Tr+e+Pr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+yd+"flex-$1$2")+e;case 5443:return Tr+e+yd+"flex-item-"+Pr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+yd+"flex-line-pack"+Pr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+yd+Pr(e,"shrink","negative")+e;case 5292:return Tr+e+yd+Pr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Pr(e,"-grow","")+Tr+e+yd+Pr(e,"grow","positive")+e;case 4554:return Tr+Pr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Pr(Pr(Pr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Pr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Pr(Pr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+yd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Pr(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(ig(e)-1-n>6)switch(Uc(e,n+1)){case 109:if(Uc(e,n+4)!==45)break;case 102:return Pr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+fpe+(Uc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~xte(e,"stretch")?dqe(Pr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Uc(e,n+1)!==115)break;case 6444:switch(Uc(e,ig(e)-3-(~xte(e,"!important")&&10))){case 107:return Pr(e,":",":"+Tr)+e;case 101:return Pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(Uc(e,14)===45?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+yd+"$2box$3")+e}break;case 5936:switch(Uc(e,n+11)){case 114:return Tr+e+yd+Pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+yd+Pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+yd+Pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+yd+e+e}return e}var fxt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Pae:e.return=dqe(e.value,e.length);break;case rqe:return JC([g$(e,{value:Pr(e.value,"@","@"+Tr)})],i);case Dae: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 JC([g$(e,{props:[Pr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return JC([g$(e,{props:[Pr(a,/:(plac\w+)/,":"+Tr+"input-$1")]}),g$(e,{props:[Pr(a,/:(plac\w+)/,":-moz-$1")]}),g$(e,{props:[Pr(a,/:(plac\w+)/,yd+"input-$1")]})],i)}return""})}}],uqe=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||fxt,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=[mxt,gxt],h=[dxt,uxt(function(x){u.insert(x)})],m=function(x){var y=Bae(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){JC(sxt(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new txt({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 pqe(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(lI,{styles:i})}const wpe=[];function s7(e){return wpe[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="";N5=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=O_(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=O_(i,o,n[d]),a&&(s+=c[d]);cpe.lastIndex=0;for(var u,p="";(u=cpe.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:N5}}(wpe)}var Cpe,vpe,Spe={exports:{}},oa={};function xxt(){if(Cpe)return oa;Cpe=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 oa.ContextConsumer=s,oa.ContextProvider=c,oa.Element=e,oa.ForwardRef=d,oa.Fragment=o,oa.Lazy=m,oa.Memo=h,oa.Portal=n,oa.Profiler=a,oa.StrictMode=i,oa.Suspense=u,oa.SuspenseList=p,oa.isContextConsumer=function(b){return y(b)===s},oa.isContextProvider=function(b){return y(b)===c},oa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},oa.isForwardRef=function(b){return y(b)===d},oa.isFragment=function(b){return y(b)===o},oa.isLazy=function(b){return y(b)===m},oa.isMemo=function(b){return y(b)===h},oa.isPortal=function(b){return y(b)===n},oa.isProfiler=function(b){return y(b)===a},oa.isStrictMode=function(b){return y(b)===i},oa.isSuspense=function(b){return y(b)===u},oa.isSuspenseList=function(b){return y(b)===p},oa.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)},oa.typeOf=y,oa}function yxt(){return vpe||(vpe=1,Spe.exports=xxt()),Spe.exports}var hqe=yxt();function gf(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 mqe(e){if(g.isValidElement(e)||hqe.isValidElementType(e)||!gf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=mqe(e[o])}),n}function Td(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return gf(e)&&gf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||hqe.isValidElementType(n[a])?i[a]=n[a]:gf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&gf(e[a])?i[a]=Td(e[a],n[a],o):o.clone?i[a]=gf(n[a])?mqe(n[a]):n[a]:i[a]=n[a]}),i}function bxt(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 $pe(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 wxt={borderRadius:4};function sj(e,n){return n?Td(e,n,{clone:!1}):e}const rR={xs:0,sm:600,md:900,lg:1200,xl:1536},kpe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rR[e]}px)`},Cxt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:rR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Qf(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||kpe;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||kpe;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:Cxt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||rR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Ape(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(Wf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function aR(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 F_(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:aR(e,o)||i,n&&(a=n(a,i,e)),a}function Zl(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=aR(c.theme,i)||{};return Qf(c,d,p=>{let h=F_(u,a,p);return p===h&&typeof p=="string"&&(h=F_(u,a,`${n}${p==="default"?"":ji(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const vxt={m:"margin",p:"padding"},Sxt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jpe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$xt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!jpe[e])return[e];e=jpe[e]}const[n,o]=e.split(""),i=vxt[n],a=Sxt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),gqe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fqe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function cI(e,n,o,i){const a=aR(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 Mae(e){return cI(e,"spacing",8)}function dI(e,n){return typeof n=="string"||n==null?n:e(n)}function kxt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=dI(c,d),u),{})}($xt(o),i);return Qf(e,e[o],a)}function xqe(e,n){const o=Mae(e.theme);return Object.keys(e).map(i=>kxt(e,n,i,o)).reduce(sj,{})}function $l(e){return xqe(e,gqe)}function kl(e){return xqe(e,fqe)}function yqe(e=8,n=Mae({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 lR(...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]?sj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function jh(e){return typeof e!="number"?e:`${e}px solid`}function c0(e,n){return Zl({prop:e,themeKey:"borders",transform:n})}$l.propTypes={},$l.filterProps=gqe,kl.propTypes={},kl.filterProps=fqe;const Axt=c0("border",jh),jxt=c0("borderTop",jh),Ext=c0("borderRight",jh),Ixt=c0("borderBottom",jh),Lxt=c0("borderLeft",jh),Txt=c0("borderColor"),Dxt=c0("borderTopColor"),Pxt=c0("borderRightColor"),Bxt=c0("borderBottomColor"),Mxt=c0("borderLeftColor"),_xt=c0("outline",jh),zxt=c0("outlineColor"),kM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=cI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:dI(n,i)});return Qf(e,e.borderRadius,o)}return null};kM.propTypes={},kM.filterProps=["borderRadius"],lR(Axt,jxt,Ext,Ixt,Lxt,Txt,Dxt,Pxt,Bxt,Mxt,kM,_xt,zxt);const R_=e=>{if(e.gap!==void 0&&e.gap!==null){const n=cI(e.theme,"spacing",8),o=i=>({gap:dI(n,i)});return Qf(e,e.gap,o)}return null};R_.propTypes={},R_.filterProps=["gap"];const N_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=cI(e.theme,"spacing",8),o=i=>({columnGap:dI(n,i)});return Qf(e,e.columnGap,o)}return null};N_.propTypes={},N_.filterProps=["columnGap"];const V_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=cI(e.theme,"spacing",8),o=i=>({rowGap:dI(n,i)});return Qf(e,e.rowGap,o)}return null};V_.propTypes={},V_.filterProps=["rowGap"];function XC(e,n){return n==="grey"?n:e}lR(R_,N_,V_,Zl({prop:"gridColumn"}),Zl({prop:"gridRow"}),Zl({prop:"gridAutoFlow"}),Zl({prop:"gridAutoColumns"}),Zl({prop:"gridAutoRows"}),Zl({prop:"gridTemplateColumns"}),Zl({prop:"gridTemplateRows"}),Zl({prop:"gridTemplateAreas"}),Zl({prop:"gridArea"}));function xp(e){return e<=1&&e!==0?100*e+"%":e}lR(Zl({prop:"color",themeKey:"palette",transform:XC}),Zl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:XC}),Zl({prop:"backgroundColor",themeKey:"palette",transform:XC}));const Oxt=Zl({prop:"width",transform:xp}),_ae=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||rR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:xp(o)}};return Qf(e,e.maxWidth,n)}return null};_ae.filterProps=["maxWidth"];const Fxt=Zl({prop:"minWidth",transform:xp}),Rxt=Zl({prop:"height",transform:xp}),Nxt=Zl({prop:"maxHeight",transform:xp}),Vxt=Zl({prop:"minHeight",transform:xp});Zl({prop:"size",cssProperty:"width",transform:xp}),Zl({prop:"size",cssProperty:"height",transform:xp});lR(Oxt,_ae,Fxt,Rxt,Nxt,Vxt,Zl({prop:"boxSizing"}));const sR={border:{themeKey:"borders",transform:jh},borderTop:{themeKey:"borders",transform:jh},borderRight:{themeKey:"borders",transform:jh},borderBottom:{themeKey:"borders",transform:jh},borderLeft:{themeKey:"borders",transform:jh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kM},color:{themeKey:"palette",transform:XC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:XC},backgroundColor:{themeKey:"palette",transform:XC},p:{style:kl},pt:{style:kl},pr:{style:kl},pb:{style:kl},pl:{style:kl},px:{style:kl},py:{style:kl},padding:{style:kl},paddingTop:{style:kl},paddingRight:{style:kl},paddingBottom:{style:kl},paddingLeft:{style:kl},paddingX:{style:kl},paddingY:{style:kl},paddingInline:{style:kl},paddingInlineStart:{style:kl},paddingInlineEnd:{style:kl},paddingBlock:{style:kl},paddingBlockStart:{style:kl},paddingBlockEnd:{style:kl},m:{style:$l},mt:{style:$l},mr:{style:$l},mb:{style:$l},ml:{style:$l},mx:{style:$l},my:{style:$l},margin:{style:$l},marginTop:{style:$l},marginRight:{style:$l},marginBottom:{style:$l},marginLeft:{style:$l},marginX:{style:$l},marginY:{style:$l},marginInline:{style:$l},marginInlineStart:{style:$l},marginInlineEnd:{style:$l},marginBlock:{style:$l},marginBlockStart:{style:$l},marginBlockEnd:{style:$l},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:R_},rowGap:{style:V_},columnGap:{style:N_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xp},maxWidth:{style:_ae},minWidth:{transform:xp},height:{transform:xp},maxHeight:{transform:xp},minHeight:{transform:xp},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=aR(i,u)||{};return h?h(s):Qf(s,o,f=>{let x=F_(m,p,f);return f===x&&typeof f=="string"&&(x=F_(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??sR;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=sj(f,e(x,y,a,c));else{const b=Qf({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=sj(f,b)}else f=sj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":$pe(a,Ape(m,f))}:$pe(a,Ape(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function Hxt(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 zae(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Td({breakpoints:bxt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:yqe(a),shape:{...wxt,...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=Hxt,d=n.reduce((u,p)=>Td(u,p),d),d.unstable_sxConfig={...sR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return Yx({sx:u,theme:this})},d}function bte(e=null){const n=g.useContext(KYe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}Yx.filterProps=["sx"];const Uxt=zae();function bqe(e=Uxt){return bte(e)}function Epe(e){const n=s7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function wqe({styles:e,themeId:n,defaultTheme:o={}}){const i=bqe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Epe(typeof c=="function"?c(a):c)):Epe(s)),t.jsx(pqe,{styles:s})}const Ipe=e=>e,Wxt=(()=>{let e=Ipe;return{configure(n){e=n},generate:n=>e(n),reset(){e=Ipe}}})();function Cqe(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=Cqe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function $i(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=Cqe(e))&&(i&&(i+=" "),i+=n);return i}const Qxt={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 Xr(e,n,o="Mui"){const i=Qxt[n];return i?`${o}-${i}`:`${Wxt.generate(e)}-${n}`}function Er(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Xr(e,a,o)}),i}function vqe(e){const{variants:n,...o}=e,i={variants:n,style:s7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=s7(a.style))}),i}const Gxt=zae();function TU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Z8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Yxt(e){return e?(n,o)=>o[e]:null}function AM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>AM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?Z8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?Z8(s7(c),o):c}return Sqe(e,i.variants,[a],o)}return i?.isProcessed?o?Z8(s7(i.style),o):i.style:o?Z8(s7(i),o):i}function Sqe(e,n,o=[],i=void 0){let a;e:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?Z8(s7(c.style(a)),i):c.style(a))):o.push(i?Z8(s7(c.style),i):c.style)}return o}function qxt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function wte(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]=wte(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=$i(e?.className,n?.className):s==="style"&&o&&n.style?i.style={...e?.style,...n?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Yh=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Oae(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 A7(e){if(e.type)return e;if(e.charAt(0)==="#")return A7(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(Wf(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(Wf(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const TA=(e,n)=>{try{return(o=>{const i=A7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function cR(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 $qe(e){e=A7(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])),cR({type:d,values:u})}function Cte(e){let n=(e=A7(e)).type==="hsl"||e.type==="hsla"?A7($qe(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 H_(e,n){return e=A7(e),n=Oae(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,cR(e)}function l9(e,n,o){try{return H_(e,n)}catch{return e}}function dR(e,n){if(e=A7(e),n=Oae(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 cR(e)}function Yr(e,n,o){try{return dR(e,n)}catch{return e}}function uR(e,n){if(e=A7(e),n=Oae(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 cR(e)}function qr(e,n,o){try{return uR(e,n)}catch{return e}}function jL(e,n,o){try{return function(i,a=.15){return Cte(i)>.5?dR(i,a):uR(i,a)}(e,n)}catch{return e}}const kqe=g.createContext(null);function Fae(){return g.useContext(kqe)}const Kxt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zxt(e){const{children:n,theme:o}=e,i=Fae(),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[Kxt]=i!==null),s},[o,i]);return t.jsx(kqe.Provider,{value:a,children:n})}const Aqe=g.createContext();function Jxt({value:e,...n}){return t.jsx(Aqe.Provider,{value:e??!0,...n})}const pR=()=>g.useContext(Aqe)??!1,jqe=g.createContext(void 0);function Xxt({value:e,children:n}){return t.jsx(jqe.Provider,{value:e,children:n})}function eyt({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?wte(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:wte(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext(jqe)}})}let Lpe=0;const Tpe={...b7t}.useId;function hR(e){if(Tpe!==void 0){const n=Tpe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(Lpe+=1,i(`mui-${Lpe}`))},[o]),a}(e)}const Dpe={};function Ppe(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 Eqe(e){const{children:n,theme:o,themeId:i}=e,a=bte(Dpe),s=Fae()||Dpe,c=Ppe(i,a,o),d=Ppe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=bte(),f=hR()||"",{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};`:"",Yh(()=>{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(wqe,{styles:y}):null}(c);return t.jsx(Zxt,{theme:d,children:t.jsx(KYe.Provider,{value:c,children:t.jsx(Jxt,{value:u,children:t.jsxs(Xxt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Bpe={theme:void 0},vte="mode",Ste="color-scheme",tyt="data-color-scheme";function nyt(){}const oyt=({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 nyt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function DU(){}function Mpe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _pe(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 iyt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=vte,colorSchemeStorageKey:c=Ste,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=oyt,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:Mpe(L),lightColorScheme:I,darkColorScheme:D}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return _pe(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:Mpe(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 _pe(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,B=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\`.`)),B&&(h.includes(B)?(D.darkColorScheme=B,y?.set(B)):console.error(`\`${B}\` 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)})||DU,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||DU,D=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||DU;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 ryt(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 zpe=(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 PU(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}),zpe(s,d,`var(${h})`,p),zpe(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function ea(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 BU(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const tE={black:"#000",white:"#fff"},ayt={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"},lyt="#f3e5f5",syt="#ce93d8",cyt="#ba68c8",dyt="#ab47bc",uyt="#9c27b0",pyt="#7b1fa2",hyt="#e57373",myt="#ef5350",gyt="#f44336",Ope="#d32f2f",fyt="#c62828",xyt="#ffb74d",yyt="#ffa726",byt="#ff9800",wyt="#f57c00",Cyt="#e65100",vyt="#e3f2fd",Syt="#90caf9",Fpe="#42a5f5",$yt="#1976d2",kyt="#1565c0",Ayt="#4fc3f7",jyt="#29b6f6",Eyt="#03a9f4",Rpe="#0288d1",Iyt="#01579b",Lyt="#81c784",Tyt="#66bb6a",Dyt="#4caf50",Pyt="#388e3c",Byt="#2e7d32",Myt="#1b5e20";function Iqe(){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:tE.white,default:tE.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 Lqe=Iqe();function Tqe(){return{text:{primary:tE.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:tE.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 $te=Tqe();function Npe(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=uR(e.main,a):n==="dark"&&(e.dark=dR(e.main,s)))}function Vpe(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 Rae(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:Syt,light:vyt,dark:Fpe}:{main:$yt,light:Fpe,dark:kyt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:syt,light:lyt,dark:dyt}:{main:uyt,light:cyt,dark:pyt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:gyt,light:hyt,dark:Ope}:{main:Ope,light:myt,dark:fyt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:jyt,light:Ayt,dark:Rpe}:{main:Rpe,light:Eyt,dark:Iyt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Tyt,light:Lyt,dark:Pyt}:{main:Byt,light:Dyt,dark:Myt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:yyt,light:xyt,dark:wyt}:{main:"#ed6c02",light:byt,dark:Cyt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=Cte(C),k=Cte(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,$te.text.primary)>=o?$te.text.primary:Lqe.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(Wf(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Wf(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Vpe(a,b,"light",v,i),Vpe(a,b,"dark",$,i)):(Npe(b,"light",v,i),Npe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=Iqe():n==="dark"&&(y=Tqe()),Td({common:{...tE},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:ayt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function _yt(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 zyt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function Oyt(e){return Math.round(1e5*e)/1e5}const Hpe={textTransform:"uppercase"},Upe='"Roboto", "Helvetica", "Arial", sans-serif';function Dqe(e,n){const{fontFamily:o=Upe,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===Upe?{letterSpacing:`${Oyt($/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,Hpe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Hpe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Td({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function Ka(...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 Fyt=["none",Ka(0,2,1,-1,0,1,1,0,0,1,3,0),Ka(0,3,1,-2,0,2,2,0,0,1,5,0),Ka(0,3,3,-2,0,3,4,0,0,1,8,0),Ka(0,2,4,-1,0,4,5,0,0,1,10,0),Ka(0,3,5,-1,0,5,8,0,0,1,14,0),Ka(0,3,5,-1,0,6,10,0,0,1,18,0),Ka(0,4,5,-2,0,7,10,1,0,2,16,1),Ka(0,5,5,-3,0,8,10,1,0,3,14,2),Ka(0,5,6,-3,0,9,12,1,0,3,16,2),Ka(0,6,6,-3,0,10,14,1,0,4,18,3),Ka(0,6,7,-4,0,11,15,1,0,4,20,3),Ka(0,7,8,-4,0,12,17,2,0,5,22,4),Ka(0,7,8,-4,0,13,19,2,0,5,24,4),Ka(0,7,9,-4,0,14,21,2,0,5,26,4),Ka(0,8,9,-5,0,15,22,2,0,6,28,5),Ka(0,8,10,-5,0,16,24,2,0,6,30,5),Ka(0,8,11,-5,0,17,26,2,0,6,32,5),Ka(0,9,11,-5,0,18,28,2,0,7,34,6),Ka(0,9,12,-6,0,19,29,2,0,7,36,6),Ka(0,10,13,-6,0,20,31,3,0,8,38,7),Ka(0,10,13,-6,0,21,33,3,0,8,40,7),Ka(0,10,14,-6,0,22,35,3,0,8,42,7),Ka(0,11,14,-7,0,23,36,3,0,9,44,8),Ka(0,11,15,-7,0,24,38,3,0,9,46,8)],Ryt={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)"},Pqe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wpe(e){return`${Math.round(e)}ms`}function Nyt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Vyt(e){const n={...Ryt,...e.easing},o={...Pqe,...e.duration};return{getAutoHeightDuration:Nyt,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:Wpe(s)} ${c} ${typeof d=="string"?d:Wpe(d)}`).join(",")},...e,easing:n,duration:o}}const Hyt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Uyt(e){return gf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Bqe(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];!Uyt(d)||c.startsWith("unstable_")?delete i[c]:gf(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-eW2EQdSt.js","assets/sentry-DCGk37l1.js","assets/core-CNZua1e0.js","assets/index-rFuUBpwP.js","assets/DefaultTenantHome-CnzNhAiZ.js","assets/mui-DtCOffvy.js","assets/getLocaleForTenant-DSkWweMK.js","assets/analytics-Cm9Z6TfJ.js","assets/utils-DWAOcXZK.js","assets/ScreenRoutes-SJ48oAtS.js","assets/analyticsHelper-BLpyhiq6.js","assets/ConnectionAuthScreen-ZhxPdXaU.js","assets/QBOConnectionScreen-Cw_9-l3E.js","assets/empty-BLoZtodd.js","assets/index-QWM1qpc0.js","assets/url-C3uYKzo6.js","assets/index-jE-fly2Z.js","assets/decodeURIComponentSafe-Dac6kcoy.js","assets/SignInScreen-DjIBZSAO.js","assets/useDeviceId-SQLvKnL0.js","assets/MagicLinkSignInScreen-Cb8la_Xu.js","assets/NotFoundScreen-D1ntYwuX.js","assets/MagicLinkRoutes-DBuQgUiO.js","assets/WiseConfirmationScreen-CvjWmLcA.js","assets/CustomerOnboardingAuthScreen-Cuf2yUew.js","assets/SignOutScreen-CAS08fDR.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as g,b as T,c as cte,R as b7t,p as AU,e as Bue,r as _u,g as XGe,f as w7t,s as Mue,i as C7t,w as v7t,j as S7t,S as $7t,k as k7t,l as A7t,m as j7t,n as E7t,o as I7t}from"./sentry-DCGk37l1.js";import{L as L7t,C as _ue,_ as Bp,a as iI,b as T7t,c as UF,d as rI,u as eYe,T as D7t,e as P7t,f as B7t,g as M7t,h as tYe,i as _7t,k as z7t,j as Bt,l as O7t}from"./liveblocks-CGYcZ7Lh.js";import{f as nYe,r as Mr,R as K8,P as pl,u as $p,m as oYe,g as hi,h as Ug,O as F7t,N as iYe,i as IA,j as WF,k as R7t,l as N7t,n as V7t,o as Yp,p as H7t,B as U7t}from"./core-CNZua1e0.js";import{L as zue,bl as W7t,bm as Q7,bn as Q7t,bo as G7t,bp as Nt,bq as bS,br as Pm,bs as Y7t,bt as n4,bu as Na,bv as za,bw as q7t,bx as K7t,by as wy,bz as G7,bA as hae,bB as on,bC as rYe,bD as aYe,bE as mae,bF as Lp,bG as Wg,bH as Kc,bI as kf,bJ as Z7t,bK as Ml,bL as J7t,bM as wS,bN as X7t,bO as e6t,bP as t6t,bQ as Ux,bR as n6t,bS as Oue,bT as o6t,bU as i6t,bV as r6t,bW as a6t,bX as l6t,bY as s6t,bZ as c6t,b_ as d6t,b$ as l7,c0 as QF,c1 as u6t,c2 as GF,c3 as YF,c4 as qF,c5 as gae,c6 as KF,c7 as Dv,c8 as Pv,c9 as ZF,ca as p6t,cb as h6t,cc as Fue,cd as dte,ce as m6t,cf as g6t,cg as v1,ch as lYe,ci as f6t,cj as a9,ck as Rue,cl as x6t,cm as y6t,cn as b6t,co as Cy,cp as vy,cq as sYe,cr as cYe,cs as fae,ct as w6t,cu as C6t,cv as M_,cw as dYe,cx as v6t,cy as uYe,cz as S6t,cA as LA,cB as Nue,cC as $6t,cD as pYe,cE as hYe,cF as mYe,cG as k6t,cH as CS,cI as Vue,cJ as A6t,cK as j6t,cL as gYe,cM as E6t,cN as fYe,cO as Hue,cP as Jc,cQ as gl,cR as I6t,cS as Bv,cT as kd,cU as xYe,cV as L6t,cW as Zj,cX as $x,cY as aa,cZ as T6t,c_ as D6t,c$ as P6t,d0 as SL,d1 as Ah,d2 as B6t,d3 as M6t,d4 as _6t,d5 as z6t,d6 as $L,d7 as Wx,d8 as JF,d9 as O6t,da as F6t,db as Sy,dc as Ld,dd as yYe,de as bYe,df as R6t,dg as ute,dh as N6t,di as m1,dj as k7,dk as xae,dl as wYe,dm as CYe,dn as vYe,dp as SYe,dq as $Ye,dr as kYe,ds as V6t,dt as Uue,du as H6t,_ as E1,dv as yae,dw as AYe,dx as U6t,dy as Wue,dz as Uu,dA as Af,dB as W6t,dC as Q6t,dD as jYe,dE as pte,dF as CM,dG as G6t,dH as Y6t,dI as q6t,dJ as K6t,dK as Z6t,dL as J6t,dM as X6t,dN as e9t,dO as t9t,dP as n9t,dQ as rj,dR as aj,dS as EYe,dT as AC,dU as bae,dV as wae,dW as vS,dX as Cae,dY as vae,dZ as Sae,d_ as $ae,d$ as IYe,e0 as kae,e1 as o9t,e2 as i9t,e3 as LYe,e4 as Que,e5 as r9t,e6 as Aae,e7 as a9t,e8 as l9t,e9 as TYe,ea as s9t,eb as c9t,ec as DYe,ed as d9t,ee as PYe,ef as BYe,eg as u9t,eh as p9t,ei as h9t,ej as m9t,ek as g9t,el as f9t,em as x9t,en as y9t,eo as b9t,ep as Gue,eq as XF,er as w9t,es as C9t,et as v9t,eu as S9t,ev as $9t,ew as k9t,ex as A9t,ey as j9t,ez as Yue,eA as MYe,eB as _Ye,eC as zYe,eD as OYe,eE as FYe,eF as RYe,eG as E9t,eH as I9t,eI as L9t,v as T9t,eJ as D9t,eK as P9t,eL as jae,eM as zu,eN as NYe,eO as aI,eP as B9t,eQ as VYe,eR as M9t,eS as HYe,eT as _9t,eU as UYe,eV as z9t,eW as O9t,eX as F9t,eY as R9t,eZ as N9t,e_ as que,e$ as V9t,f0 as WYe,f1 as mb,f2 as eR,f3 as Kue,f4 as H9t,f5 as Zue,f6 as U9t,f7 as W9t,f8 as QYe,f9 as GYe,fa as Q9t,fb as G9t,fc as Y9t,fd as q9t,fe as K9t,ff as Z9t,fg as __,fh as Eae,fi as YYe,fj as J9t,fk as lj,fl as X9t,fm as e8t,fn as t8t,fo as n8t,fp as o8t,fq as i8t,fr as r8t,fs as a8t,ft as l8t,fu as s8t,fv as c8t,fw as qYe,fx as d8t,fy as u8t,fz as p8t,fA as Jue,fB as h8t,fC as m8t,fD as g8t,fE as f8t,fF as hte,fG as x8t,fH as y8t,fI as b8t,fJ as w8t,fK as C8t,fL as Xue,fM as v8t,fN as S8t}from"./zeni-epic-state-eW2EQdSt.js";import{n as l,T as KYe,G as lI,j as Ho,c as Pe,k as _n,C as ZYe,u as Iae,a as mte,A as $8t,b as k8t,I as A8t,d as j8t,D as z_,S as JYe}from"./mui-DtCOffvy.js";import{r as E8t,m as xh}from"./analytics-Cm9Z6TfJ.js";import{u as Mp}from"./plaid-DpI35xEc.js";import{g as I8t,O as L8t,H as T8t,S as D8t,T as P8t,a as B8t,u as M8t,b as _8t}from"./dnd-Dmzop572.js";import{l as z8t}from"./stripe-DMRn4zHo.js";import{L as KC}from"./lottie-BoyaSool.js";import{r as As}from"./lexical-Dt1gfKRx.js";import{D as gte,P as fte,_ as XYe,a as eqe}from"./pdf-DPV5Ar9D.js";import{R as Jj,G as Qx,X as ts,Y as _l,H as Gx,I as td,J as Tp,K as $y,L as _p,M as O8t,N as SS,O as tqe,P as F8t,Q as tR,S as ZC,U as R8t,V as Lae,W as N8t,Z as V8t,_ as H8t}from"./recharts-Dq7pGiC-.js";import{r as U8t}from"./utils-DWAOcXZK.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]="fb7a5e26-b353-49a3-8927-5c4ac7075240",e._sentryDebugIdIdentifier="sentry-dbid-fb7a5e26-b353-49a3-8927-5c4ac7075240")}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 epe,kL={},W8t=function(){if(epe)return kL;epe=1;var e=nYe();return kL.createRoot=e.createRoot,kL.hydrateRoot=e.hydrateRoot,kL}(),vu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof cte<"u"?cte:typeof self<"u"?self:{};function yi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tpe,npe,ope={exports:{}},m$={};function nqe(){return npe||(npe=1,ope.exports=function(){if(tpe)return m$;tpe=1;var e=T,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,m={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)i.call(u,h)&&!s.hasOwnProperty(h)&&(m[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:m,_owner:a.current}}return m$.Fragment=o,m$.jsx=c,m$.jsxs=c,m$}()),ope.exports}var t=nqe();const Q8t=g.createContext(null),jU={didCatch:!1,error:null};let G8t=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=jU}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(jU)}}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(jU))}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(Q8t.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},c)}};var ipe,EU={exports:{}},rpe,ape,IU,Y8t=(ipe||(ipe=1,ape=EU.exports,IU=function(){var e,n,o,i,a,s,c={},d={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},p={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function h(m,f){this._input=m,this._value=f}return e=function(m){var f,x,y,b;if(e.isNumeral(m))f=m.value();else if(m===0||typeof m>"u")f=0;else if(m===null||n.isNaN(m))f=null;else if(typeof m=="string")if(p.zeroFormat&&m===p.zeroFormat)f=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)f=null;else{for(x in c)if((b=typeof c[x].regexps.unformat=="function"?c[x].regexps.unformat():c[x].regexps.unformat)&&m.match(b)){y=c[x].unformat;break}f=(y=y||e._.stringToNumber)(m)}else f=Number(m)||null;return new h(m,f)},e.version="2.0.6",e.isNumeral=function(m){return m instanceof h},e._=n={numberToFormat:function(m,f,x){var y,b,w,C,v,$,k,j,A=d[e.options.currentLocale],E=!1,L=!1,I="",D=1e12,z=1e9,B=1e6,N="",F=!1;if(m=m||0,w=Math.abs(m),e._.includes(f,"(")?(E=!0,f=f.replace(/[\(|\)]/g,"")):(e._.includes(f,"+")||e._.includes(f,"-"))&&($=e._.includes(f,"+")?f.indexOf("+"):m<0?f.indexOf("-"):-1,f=f.replace(/[\+|\-]/g,"")),e._.includes(f,"a")&&(b=!!(b=f.match(/a(k|m|b|t)?/))&&b[1],e._.includes(f," a")&&(I=" "),f=f.replace(new RegExp(I+"a[kmbt]?"),""),w>=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||b==="m"?(I+=A.abbreviations.million,m/=B):(w<B&&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("["),N=e._.toFixed(m,v[0].length+v[1].length,x,v[1].length)):N=e._.toFixed(m,v.length,x),C=N.split(".")[0],N=e._.includes(N,".")?A.delimiters.decimal+N.split(".")[1]:"",L&&Number(N.slice(1))===0&&(N="")):C=e._.toFixed(m,0,x),I&&!b&&Number(C)>=1e3&&I!==A.abbreviations.trillion)switch(C=String(Number(C)/1e3),I){case A.abbreviations.thousand:I=A.abbreviations.million;break;case A.abbreviations.million:I=A.abbreviations.billion;break;case A.abbreviations.billion:I=A.abbreviations.trillion}if(e._.includes(C,"-")&&(C=C.slice(1),F=!0),C.length<y)for(var O=y-C.length;O>0;O--)C="0"+C;return k>-1&&(C=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+A.delimiters.thousands)),f.indexOf(".")===0&&(C=""),j=C+N+(I||""),E?j=(E&&F?"(":"")+j+(E&&F?")":""):$>=0?j=$===0?(F?"-":"+")+j:j+(F?"-":"+"):F&&(j="-"+j),j},stringToNumber:function(m){var f,x,y,b=d[p.currentLocale],w=m,C={thousand:3,million:6,billion:9,trillion:12};if(p.zeroFormat&&m===p.zeroFormat)x=0;else if(p.nullFormat&&m===p.nullFormat||!m.replace(/[^0-9]+/g,"").length)x=null;else{for(f in x=1,b.delimiters.decimal!=="."&&(m=m.replace(/\./g,"").replace(b.delimiters.decimal,".")),C)if(y=new RegExp("[^a-zA-Z]"+b.abbreviations[f]+"(?:\\)|(\\"+b.currency.symbol+")?(?:\\))?)?$"),w.match(y)){x*=Math.pow(10,C[f]);break}x*=(m.split("-").length+Math.min(m.split("(").length-1,m.split(")").length-1))%2?1:-1,m=m.replace(/[^0-9\.]+/g,""),x*=Number(m)}return x},isNaN:function(m){return typeof m=="number"&&isNaN(m)},includes:function(m,f){return m.indexOf(f)!==-1},insert:function(m,f,x){return m.slice(0,x)+f+m.slice(x)},reduce:function(m,f){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof f!="function")throw new TypeError(f+" is not a function");var x,y=Object(m),b=y.length>>>0,w=0;if(arguments.length===3)x=arguments[2];else{for(;w<b&&!(w in y);)w++;if(w>=b)throw new TypeError("Reduce of empty array with no initial value");x=y[w++]}for(;w<b;w++)w in y&&(x=f(x,y[w],w,y));return x},multiplier:function(m){var f=m.toString().split(".");return f.length<2?1:Math.pow(10,f[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(m,f){var x=n.multiplier(f);return m>x?m:x},1)},toFixed:function(m,f,x,y){var b,w,C,v,$=m.toString().split("."),k=f-(y||0);return b=$.length===2?Math.min(Math.max($[1].length,k),f):k,C=Math.pow(10,b),v=(x(m+"e+"+b)/C).toFixed(b),y>f-b&&(w=new RegExp("\\.?0{1,"+(y-(f-b))+"}$"),v=v.replace(w,"")),v}},e.options=p,e.formats=c,e.locales=d,e.locale=function(m){return m&&(p.currentLocale=m.toLowerCase()),p.currentLocale},e.localeData=function(m){if(!m)return d[p.currentLocale];if(m=m.toLowerCase(),!d[m])throw new Error("Unknown locale : "+m);return d[m]},e.reset=function(){for(var m in u)p[m]=u[m]},e.zeroFormat=function(m){p.zeroFormat=typeof m=="string"?m:null},e.nullFormat=function(m){p.nullFormat=typeof m=="string"?m:null},e.defaultFormat=function(m){p.defaultFormat=typeof m=="string"?m:"0.0"},e.register=function(m,f,x){if(f=f.toLowerCase(),this[m+"s"][f])throw new TypeError(f+" "+m+" already registered.");return this[m+"s"][f]=x,x},e.validate=function(m,f){var x,y,b,w,C,v,$,k;if(typeof m!="string"&&(m+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",m)),(m=m.trim()).match(/^\d+$/))return!0;if(m==="")return!1;try{$=e.localeData(f)}catch{$=e.localeData(e.locale())}return b=$.currency.symbol,C=$.abbreviations,x=$.delimiters.decimal,y=$.delimiters.thousands==="."?"\\.":$.delimiters.thousands,!((k=m.match(/^[^\d]+/))!==null&&(m=m.substr(1),k[0]!==b)||(k=m.match(/[^\d]+$/))!==null&&(m=m.slice(0,-1),k[0]!==C.thousand&&k[0]!==C.million&&k[0]!==C.billion&&k[0]!==C.trillion)||(v=new RegExp(y+"{2}"),m.match(/[^\d.,]/g)||(w=m.split(x)).length>2||(w.length<2?!w[0].match(/^\d+.*\d$/)||w[0].match(v):w[0].length===1?!w[0].match(/^\d+$/)||w[0].match(v)||!w[1].match(/^\d+$/):!w[0].match(/^\d+.*\d$/)||w[0].match(v)||!w[1].match(/^\d+$/))))},e.fn=h.prototype={clone:function(){return e(this)},format:function(m,f){var x,y,b,w=this._value,C=m||p.defaultFormat;if(f=f||Math.round,w===0&&p.zeroFormat!==null)y=p.zeroFormat;else if(w===null&&p.nullFormat!==null)y=p.nullFormat;else{for(x in c)if(C.match(c[x].regexps.format)){b=c[x].format;break}y=(b=b||e._.numberToFormat)(w,C,f)}return y},value:function(){return this._value},input:function(){return this._input},set:function(m){return this._value=Number(m),this},add:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([this._value,m],function(x,y,b,w){return x+Math.round(f*y)},0)/f,this},subtract:function(m){var f=n.correctionFactor.call(null,this._value,m);return this._value=n.reduce([m],function(x,y,b,w){return x-Math.round(f*y)},Math.round(this._value*f))/f,this},multiply:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)*Math.round(x*w)/Math.round(w*w)},1),this},divide:function(m){return this._value=n.reduce([this._value,m],function(f,x,y,b){var w=n.correctionFactor(f,x);return Math.round(f*w)/Math.round(x*w)}),this},difference:function(m){return Math.abs(e(this._value).subtract(m).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(m){var f=m%10;return~~(m%100/10)==1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(m,f,x){var y,b=e._.includes(f," BPS")?" ":"";return m*=1e4,f=f.replace(/\s?BPS/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"BPS"),y=y.join("")):y=y+b+"BPS",y},unformat:function(m){return+(1e-4*e._.stringToNumber(m)).toFixed(15)}}),i={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},a=(o={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(i.suffixes.filter(function(m){return o.suffixes.indexOf(m)<0})),s="("+(s=a.join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(m,f,x){var y,b,w,C=e._.includes(f,"ib")?i:o,v=e._.includes(f," b")||e._.includes(f," ib")?" ":"";for(f=f.replace(/\s?i?b/,""),y=0;y<=C.suffixes.length;y++)if(b=Math.pow(C.base,y),w=Math.pow(C.base,y+1),m===null||m===0||m>=b&&m<w){v+=C.suffixes[y],b>0&&(m/=b);break}return e._.numberToFormat(m,f,x)+v},unformat:function(m){var f,x,y=e._.stringToNumber(m);if(y){for(f=o.suffixes.length-1;f>=0;f--){if(e._.includes(m,o.suffixes[f])){x=Math.pow(o.base,f);break}if(e._.includes(m,i.suffixes[f])){x=Math.pow(i.base,f);break}}y*=x||1}return y}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(m,f,x){var y,b,w,C=e.locales[e.options.currentLocale],v={before:f.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:f.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(f=f.replace(/\s?\$\s?/,""),y=e._.numberToFormat(m,f,x),m>=0?(v.before=v.before.replace(/[\-\(]/,""),v.after=v.after.replace(/[\-\)]/,"")):m<0&&!e._.includes(v.before,"-")&&!e._.includes(v.before,"(")&&(v.before="-"+v.before),w=0;w<v.before.length;w++)switch(b=v.before[w],b){case"$":y=e._.insert(y,C.currency.symbol,w);break;case" ":y=e._.insert(y," ",w+C.currency.symbol.length-1)}for(w=v.after.length-1;w>=0;w--)switch(b=v.after[w],b){case"$":y=w===v.after.length-1?y+C.currency.symbol:e._.insert(y,C.currency.symbol,-(v.after.length-(1+w)));break;case" ":y=w===v.after.length-1?y+" ":e._.insert(y," ",-(v.after.length-(1+w)+C.currency.symbol.length-1))}return y}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(m,f,x){var y=(typeof m!="number"||e._.isNaN(m)?"0e+0":m.toExponential()).split("e");return f=f.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(y[0]),f,x)+"e"+y[1]},unformat:function(m){var f=e._.includes(m,"e+")?m.split("e+"):m.split("e-"),x=Number(f[0]),y=Number(f[1]);return y=e._.includes(m,"e-")?y*=-1:y,e._.reduce([x,Math.pow(10,y)],function(b,w,C,v){var $=e._.correctionFactor(b,w);return b*$*(w*$)/($*$)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(m,f,x){var y=e.locales[e.options.currentLocale],b=e._.includes(f," o")?" ":"";return f=f.replace(/\s?o/,""),b+=y.ordinal(m),e._.numberToFormat(m,f,x)+b}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(m,f,x){var y,b=e._.includes(f," %")?" ":"";return e.options.scalePercentBy100&&(m*=100),f=f.replace(/\s?\%/,""),y=e._.numberToFormat(m,f,x),e._.includes(y,")")?((y=y.split("")).splice(-1,0,b+"%"),y=y.join("")):y=y+b+"%",y},unformat:function(m){var f=e._.stringToNumber(m);return e.options.scalePercentBy100?.01*f:f}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(m,f,x){var y=Math.floor(m/60/60),b=Math.floor((m-60*y*60)/60),w=Math.round(m-60*y*60-60*b);return y+":"+(b<10?"0"+b:b)+":"+(w<10?"0"+w:w)},unformat:function(m){var f=m.split(":"),x=0;return f.length===3?(x+=60*Number(f[0])*60,x+=60*Number(f[1]),x+=Number(f[2])):f.length===2&&(x+=60*Number(f[0]),x+=Number(f[1])),Number(x)}}),e},(rpe=EU).exports?rpe.exports=IU():ape.numeral=IU()),EU.exports);const Pf=yi(Y8t);function Wf(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 Bf="$$material";var q8t={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 K8t(e){var n=Object.create(null);return function(o){return n[o]===void 0&&(n[o]=e(o)),n[o]}}var Z8t=/[A-Z]|^ms/g,J8t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oqe=function(e){return e.charCodeAt(1)===45},lpe=function(e){return e!=null&&typeof e!="boolean"},LU=K8t(function(e){return oqe(e)?e:e.replace(Z8t,"-$&").toLowerCase()}),spe=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(J8t,function(o,i,a){return N5={name:i,styles:a,next:N5},i})}return q8t[e]===1||oqe(e)||typeof n!="number"||n===0?n:n+"px"};function O_(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 N5={name:a.name,styles:a.styles,next:N5},a.name;var s=o;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)N5={name:c.name,styles:c.styles,next:N5},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+=O_(d,u,p[m])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;lpe(y)&&(h+=LU(f)+":"+spe(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)lpe(x[b])&&(h+=LU(f)+":"+spe(f,x[b])+";");else{var w=O_(d,u,x);switch(f){case"animation":case"animationName":h+=LU(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h}(e,n,o)}return o}var N5,cpe=/label:\s*([^\s;{]+)\s*(;|$)/g,dpe,upe,ppe,hpe,mpe,gpe={exports:{}};function X8t(){return upe?dpe:(upe=1,dpe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function ext(){if(hpe)return ppe;hpe=1;var e=X8t();function n(){}function o(){}return o.resetWarningCache=n,ppe=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 Tae(){return mpe||(mpe=1,gpe.exports=ext()()),gpe.exports}const bn=yi(Tae());var txt=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}(),yd="-ms-",fpe="-moz-",Tr="-webkit-",iqe="comm",Dae="rule",Pae="decl",rqe="@keyframes",nxt=Math.abs,nR=String.fromCharCode,oxt=Object.assign;function aqe(e){return e.trim()}function Pr(e,n,o){return e.replace(n,o)}function xte(e,n){return e.indexOf(n)}function Uc(e,n){return 0|e.charCodeAt(n)}function Xj(e,n,o){return e.slice(n,o)}function ig(e){return e.length}function Bae(e){return e.length}function AL(e,n){return n.push(e),e}var oR=1,Mv=1,lqe=0,ju=0,Ss=0,$S="";function iR(e,n,o,i,a,s,c){return{value:e,root:n,parent:o,type:i,props:a,children:s,line:oR,column:Mv,length:c,return:""}}function g$(e,n){return oxt(iR("",null,null,"",null,null,0),e,{length:-e.length},n)}function kp(){return Ss=ju<lqe?Uc($S,ju++):0,Mv++,Ss===10&&(Mv=1,oR++),Ss}function Pg(){return Uc($S,ju)}function vM(){return ju}function sI(e,n){return Xj($S,e,n)}function eE(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sqe(e){return oR=Mv=1,lqe=ig($S=e),ju=0,[]}function cqe(e){return $S="",e}function SM(e){return aqe(sI(ju-1,yte(e===91?e+2:e===40?e+1:e)))}function ixt(e){for(;(Ss=Pg())&&Ss<33;)kp();return eE(e)>2||eE(Ss)>3?"":" "}function rxt(e,n){for(;--n&&kp()&&!(Ss<48||Ss>102||Ss>57&&Ss<65||Ss>70&&Ss<97););return sI(e,vM()+(n<6&&Pg()==32&&kp()==32))}function yte(e){for(;kp();)switch(Ss){case e:return ju;case 34:case 39:e!==34&&e!==39&&yte(Ss);break;case 40:e===41&&yte(e);break;case 92:kp()}return ju}function axt(e,n){for(;kp()&&e+Ss!==57&&(e+Ss!==84||Pg()!==47););return"/*"+sI(n,ju-1)+"*"+nR(e===47?e:kp())}function lxt(e){for(;!eE(Pg());)kp();return sI(e,ju)}function sxt(e){return cqe($M("",null,null,null,[""],e=sqe(e),0,[0],e))}function $M(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=kp()){case 40:if(y!=108&&Uc(E,m-1)==58){xte(E+=Pr(SM(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=SM(v);break;case 9:case 10:case 13:case 32:E+=ixt(y);break;case 92:E+=rxt(vM()-1,7);continue;case 47:switch(Pg()){case 42:case 47:AL(cxt(axt(kp(),vM()),n,o),u);break;default:E+="/"}break;case 123*b:d[p++]=ig(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=Pr(E,/\f/g,"")),x>0&&ig(E)-m&&AL(x>32?ype(E+";",i,o,m-1):ype(Pr(E," ","")+";",i,o,m-2),u);break;case 59:E+=";";default:if(AL(A=xpe(E,n,o,p,h,a,d,$,k=[],j=[],m),s),v===123)if(h===0)$M(E,n,A,A,k,s,m,d,j);else switch(f===99&&Uc(E,3)===110?100:f){case 100:case 108:case 109:case 115:$M(e,A,A,i&&AL(xpe(e,A,A,0,0,a,d,$,a,k=[],m),j),a,j,m,d,i?k:j);break;default:$M(E,A,A,A,[""],j,0,d,j)}}p=h=x=0,b=C=1,$=E="",m=c;break;case 58:m=1+ig(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Ss=ju>0?Uc($S,--ju):0,Mv--,Ss===10&&(Mv=1,oR--),Ss==125))continue}switch(E+=nR(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(ig(E)-1)*C,C=1;break;case 64:Pg()===45&&(E+=SM(kp())),f=Pg(),h=m=ig($=E+=lxt(vM())),v++;break;case 45:y===45&&ig(E)==2&&(b=0)}}return s}function xpe(e,n,o,i,a,s,c,d,u,p,h){for(var m=a-1,f=a===0?s:[""],x=Bae(f),y=0,b=0,w=0;y<i;++y)for(var C=0,v=Xj(e,m+1,m=nxt(b=c[y])),$=e;C<x;++C)($=aqe(b>0?f[C]+" "+v:Pr(v,/&\f/g,f[C])))&&(u[w++]=$);return iR(e,n,o,a===0?Dae:d,u,p,h)}function cxt(e,n,o){return iR(e,n,o,iqe,nR(Ss),Xj(e,2,-2),0)}function ype(e,n,o,i){return iR(e,n,o,Pae,Xj(e,0,i),Xj(e,i+1,-1),i)}function JC(e,n){for(var o="",i=Bae(e),a=0;a<i;a++)o+=n(e[a],a,e,n)||"";return o}function dxt(e,n,o,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Pae:return e.return=e.return||e.value;case iqe:return"";case rqe:return e.return=e.value+"{"+JC(e.children,i)+"}";case Dae:e.value=e.props.join(",")}return ig(o=JC(e.children,i))?e.return=e.value+"{"+o+"}":""}function uxt(e){return function(n){n.root||(n=n.return)&&e(n)}}var pxt=function(e,n,o){for(var i=0,a=0;i=a,a=Pg(),i===38&&a===12&&(n[o]=1),!eE(a);)kp();return sI(e,ju)},hxt=function(e,n){return cqe(function(o,i){var a=-1,s=44;do switch(eE(s)){case 0:s===38&&Pg()===12&&(i[a]=1),o[a]+=pxt(ju-1,i,a);break;case 2:o[a]+=SM(s);break;case 4:if(s===44){o[++a]=Pg()===58?"&\f":"",i[a]=o[a].length;break}default:o[a]+=nR(s)}while(s=kp());return o}(sqe(e),n))},bpe=new WeakMap,mxt=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||bpe.get(o))&&!i){bpe.set(e,!0);for(var a=[],s=hxt(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]}}},gxt=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function dqe(e,n){switch(function(o,i){return 45^Uc(o,0)?(((i<<2^Uc(o,0))<<2^Uc(o,1))<<2^Uc(o,2))<<2^Uc(o,3):0}(e,n)){case 5103:return 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+fpe+e+yd+e+e;case 6828:case 4268:return Tr+e+yd+e+e;case 6165:return Tr+e+yd+"flex-"+e+e;case 5187:return Tr+e+Pr(e,/(\w+).+(:[^]+)/,Tr+"box-$1$2"+yd+"flex-$1$2")+e;case 5443:return Tr+e+yd+"flex-item-"+Pr(e,/flex-|-self/,"")+e;case 4675:return Tr+e+yd+"flex-line-pack"+Pr(e,/align-content|flex-|-self/,"")+e;case 5548:return Tr+e+yd+Pr(e,"shrink","negative")+e;case 5292:return Tr+e+yd+Pr(e,"basis","preferred-size")+e;case 6060:return Tr+"box-"+Pr(e,"-grow","")+Tr+e+yd+Pr(e,"grow","positive")+e;case 4554:return Tr+Pr(e,/([^-])(transform)/g,"$1"+Tr+"$2")+e;case 6187:return Pr(Pr(Pr(e,/(zoom-|grab)/,Tr+"$1"),/(image-set)/,Tr+"$1"),e,"")+e;case 5495:case 3959:return Pr(e,/(image-set\([^]*)/,Tr+"$1$`$1");case 4968:return Pr(Pr(e,/(.+:)(flex-)?(.*)/,Tr+"box-pack:$3"+yd+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tr+e+e;case 4095:case 3583:case 4068:case 2532:return Pr(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(ig(e)-1-n>6)switch(Uc(e,n+1)){case 109:if(Uc(e,n+4)!==45)break;case 102:return Pr(e,/(.+:)(.+)-([^]+)/,"$1"+Tr+"$2-$3$1"+fpe+(Uc(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~xte(e,"stretch")?dqe(Pr(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Uc(e,n+1)!==115)break;case 6444:switch(Uc(e,ig(e)-3-(~xte(e,"!important")&&10))){case 107:return Pr(e,":",":"+Tr)+e;case 101:return Pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Tr+(Uc(e,14)===45?"inline-":"")+"box$3$1"+Tr+"$2$3$1"+yd+"$2box$3")+e}break;case 5936:switch(Uc(e,n+11)){case 114:return Tr+e+yd+Pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tr+e+yd+Pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tr+e+yd+Pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Tr+e+yd+e+e}return e}var fxt=[function(e,n,o,i){if(e.length>-1&&!e.return)switch(e.type){case Pae:e.return=dqe(e.value,e.length);break;case rqe:return JC([g$(e,{value:Pr(e.value,"@","@"+Tr)})],i);case Dae: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 JC([g$(e,{props:[Pr(a,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return JC([g$(e,{props:[Pr(a,/:(plac\w+)/,":"+Tr+"input-$1")]}),g$(e,{props:[Pr(a,/:(plac\w+)/,":-moz-$1")]}),g$(e,{props:[Pr(a,/:(plac\w+)/,yd+"input-$1")]})],i)}return""})}}],uqe=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||fxt,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=[mxt,gxt],h=[dxt,uxt(function(x){u.insert(x)})],m=function(x){var y=Bae(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){JC(sxt(C),m)}(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new txt({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 pqe(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(lI,{styles:i})}const wpe=[];function s7(e){return wpe[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="";N5=void 0;var c=n[0];c==null||c.raw===void 0?(a=!1,s+=O_(i,o,c)):s+=c[0];for(var d=1;d<n.length;d++)s+=O_(i,o,n[d]),a&&(s+=c[d]);cpe.lastIndex=0;for(var u,p="";(u=cpe.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:N5}}(wpe)}var Cpe,vpe,Spe={exports:{}},oa={};function xxt(){if(Cpe)return oa;Cpe=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 oa.ContextConsumer=s,oa.ContextProvider=c,oa.Element=e,oa.ForwardRef=d,oa.Fragment=o,oa.Lazy=m,oa.Memo=h,oa.Portal=n,oa.Profiler=a,oa.StrictMode=i,oa.Suspense=u,oa.SuspenseList=p,oa.isContextConsumer=function(b){return y(b)===s},oa.isContextProvider=function(b){return y(b)===c},oa.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},oa.isForwardRef=function(b){return y(b)===d},oa.isFragment=function(b){return y(b)===o},oa.isLazy=function(b){return y(b)===m},oa.isMemo=function(b){return y(b)===h},oa.isPortal=function(b){return y(b)===n},oa.isProfiler=function(b){return y(b)===a},oa.isStrictMode=function(b){return y(b)===i},oa.isSuspense=function(b){return y(b)===u},oa.isSuspenseList=function(b){return y(b)===p},oa.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)},oa.typeOf=y,oa}function yxt(){return vpe||(vpe=1,Spe.exports=xxt()),Spe.exports}var hqe=yxt();function gf(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 mqe(e){if(g.isValidElement(e)||hqe.isValidElementType(e)||!gf(e))return e;const n={};return Object.keys(e).forEach(o=>{n[o]=mqe(e[o])}),n}function Td(e,n,o={clone:!0}){const i=o.clone?{...e}:e;return gf(e)&&gf(n)&&Object.keys(n).forEach(a=>{g.isValidElement(n[a])||hqe.isValidElementType(n[a])?i[a]=n[a]:gf(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&gf(e[a])?i[a]=Td(e[a],n[a],o):o.clone?i[a]=gf(n[a])?mqe(n[a]):n[a]:i[a]=n[a]}),i}function bxt(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 $pe(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 wxt={borderRadius:4};function sj(e,n){return n?Td(e,n,{clone:!1}):e}const rR={xs:0,sm:600,md:900,lg:1200,xl:1536},kpe={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rR[e]}px)`},Cxt={containerQueries:e=>({up:n=>{let o=typeof n=="number"?n:rR[n]||n;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Qf(e,n,o){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||kpe;return n.reduce((s,c,d)=>(s[a.up(a.keys[d])]=o(n[d]),s),{})}if(typeof n=="object"){const a=i.breakpoints||kpe;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:Cxt,c);d&&(s[d]=o(n[c],c))}else if(Object.keys(a.values||rR).includes(c))s[a.up(c)]=o(n[c],c);else{const d=c;s[d]=n[d]}return s},{})}return o(n)}function Ape(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(Wf(7));return e.charAt(0).toUpperCase()+e.slice(1)}function aR(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 F_(e,n,o,i=o){let a;return a=typeof e=="function"?e(o):Array.isArray(e)?e[o]||i:aR(e,o)||i,n&&(a=n(a,i,e)),a}function Zl(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=aR(c.theme,i)||{};return Qf(c,d,p=>{let h=F_(u,a,p);return p===h&&typeof p=="string"&&(h=F_(u,a,`${n}${p==="default"?"":ji(p)}`,p)),o===!1?h:{[o]:h}})};return s.propTypes={},s.filterProps=[n],s}const vxt={m:"margin",p:"padding"},Sxt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jpe={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$xt=function(e){const n={};return o=>(n[o]===void 0&&(n[o]=e(o)),n[o])}(e=>{if(e.length>2){if(!jpe[e])return[e];e=jpe[e]}const[n,o]=e.split(""),i=vxt[n],a=Sxt[o]||"";return Array.isArray(a)?a.map(s=>i+s):[i+a]}),gqe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fqe=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function cI(e,n,o,i){const a=aR(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 Mae(e){return cI(e,"spacing",8)}function dI(e,n){return typeof n=="string"||n==null?n:e(n)}function kxt(e,n,o,i){if(!n.includes(o))return null;const a=function(s,c){return d=>s.reduce((u,p)=>(u[p]=dI(c,d),u),{})}($xt(o),i);return Qf(e,e[o],a)}function xqe(e,n){const o=Mae(e.theme);return Object.keys(e).map(i=>kxt(e,n,i,o)).reduce(sj,{})}function $l(e){return xqe(e,gqe)}function kl(e){return xqe(e,fqe)}function yqe(e=8,n=Mae({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 lR(...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]?sj(a,n[s](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function jh(e){return typeof e!="number"?e:`${e}px solid`}function c0(e,n){return Zl({prop:e,themeKey:"borders",transform:n})}$l.propTypes={},$l.filterProps=gqe,kl.propTypes={},kl.filterProps=fqe;const Axt=c0("border",jh),jxt=c0("borderTop",jh),Ext=c0("borderRight",jh),Ixt=c0("borderBottom",jh),Lxt=c0("borderLeft",jh),Txt=c0("borderColor"),Dxt=c0("borderTopColor"),Pxt=c0("borderRightColor"),Bxt=c0("borderBottomColor"),Mxt=c0("borderLeftColor"),_xt=c0("outline",jh),zxt=c0("outlineColor"),kM=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=cI(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:dI(n,i)});return Qf(e,e.borderRadius,o)}return null};kM.propTypes={},kM.filterProps=["borderRadius"],lR(Axt,jxt,Ext,Ixt,Lxt,Txt,Dxt,Pxt,Bxt,Mxt,kM,_xt,zxt);const R_=e=>{if(e.gap!==void 0&&e.gap!==null){const n=cI(e.theme,"spacing",8),o=i=>({gap:dI(n,i)});return Qf(e,e.gap,o)}return null};R_.propTypes={},R_.filterProps=["gap"];const N_=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=cI(e.theme,"spacing",8),o=i=>({columnGap:dI(n,i)});return Qf(e,e.columnGap,o)}return null};N_.propTypes={},N_.filterProps=["columnGap"];const V_=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=cI(e.theme,"spacing",8),o=i=>({rowGap:dI(n,i)});return Qf(e,e.rowGap,o)}return null};V_.propTypes={},V_.filterProps=["rowGap"];function XC(e,n){return n==="grey"?n:e}lR(R_,N_,V_,Zl({prop:"gridColumn"}),Zl({prop:"gridRow"}),Zl({prop:"gridAutoFlow"}),Zl({prop:"gridAutoColumns"}),Zl({prop:"gridAutoRows"}),Zl({prop:"gridTemplateColumns"}),Zl({prop:"gridTemplateRows"}),Zl({prop:"gridTemplateAreas"}),Zl({prop:"gridArea"}));function xp(e){return e<=1&&e!==0?100*e+"%":e}lR(Zl({prop:"color",themeKey:"palette",transform:XC}),Zl({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:XC}),Zl({prop:"backgroundColor",themeKey:"palette",transform:XC}));const Oxt=Zl({prop:"width",transform:xp}),_ae=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=o=>{const i=e.theme?.breakpoints?.values?.[o]||rR[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:xp(o)}};return Qf(e,e.maxWidth,n)}return null};_ae.filterProps=["maxWidth"];const Fxt=Zl({prop:"minWidth",transform:xp}),Rxt=Zl({prop:"height",transform:xp}),Nxt=Zl({prop:"maxHeight",transform:xp}),Vxt=Zl({prop:"minHeight",transform:xp});Zl({prop:"size",cssProperty:"width",transform:xp}),Zl({prop:"size",cssProperty:"height",transform:xp});lR(Oxt,_ae,Fxt,Rxt,Nxt,Vxt,Zl({prop:"boxSizing"}));const sR={border:{themeKey:"borders",transform:jh},borderTop:{themeKey:"borders",transform:jh},borderRight:{themeKey:"borders",transform:jh},borderBottom:{themeKey:"borders",transform:jh},borderLeft:{themeKey:"borders",transform:jh},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jh},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kM},color:{themeKey:"palette",transform:XC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:XC},backgroundColor:{themeKey:"palette",transform:XC},p:{style:kl},pt:{style:kl},pr:{style:kl},pb:{style:kl},pl:{style:kl},px:{style:kl},py:{style:kl},padding:{style:kl},paddingTop:{style:kl},paddingRight:{style:kl},paddingBottom:{style:kl},paddingLeft:{style:kl},paddingX:{style:kl},paddingY:{style:kl},paddingInline:{style:kl},paddingInlineStart:{style:kl},paddingInlineEnd:{style:kl},paddingBlock:{style:kl},paddingBlockStart:{style:kl},paddingBlockEnd:{style:kl},m:{style:$l},mt:{style:$l},mr:{style:$l},mb:{style:$l},ml:{style:$l},mx:{style:$l},my:{style:$l},margin:{style:$l},marginTop:{style:$l},marginRight:{style:$l},marginBottom:{style:$l},marginLeft:{style:$l},marginX:{style:$l},marginY:{style:$l},marginInline:{style:$l},marginInlineStart:{style:$l},marginInlineEnd:{style:$l},marginBlock:{style:$l},marginBlockStart:{style:$l},marginBlockEnd:{style:$l},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:R_},rowGap:{style:V_},columnGap:{style:N_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xp},maxWidth:{style:_ae},minWidth:{transform:xp},height:{transform:xp},maxHeight:{transform:xp},minHeight:{transform:xp},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=aR(i,u)||{};return h?h(s):Qf(s,o,f=>{let x=F_(m,p,f);return f===x&&typeof f=="string"&&(x=F_(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??sR;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=sj(f,e(x,y,a,c));else{const b=Qf({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=sj(f,b)}else f=sj(f,e(x,y,a,c))}),!s&&a.modularCssLayers?{"@layer sx":$pe(a,Ape(m,f))}:$pe(a,Ape(m,f))}return Array.isArray(i)?i.map(d):d(i)}}();function Hxt(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 zae(e={},...n){const{breakpoints:o={},palette:i={},spacing:a,shape:s={},...c}=e;let d=Td({breakpoints:bxt(o),direction:"ltr",components:{},palette:{mode:"light",...i},spacing:yqe(a),shape:{...wxt,...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=Hxt,d=n.reduce((u,p)=>Td(u,p),d),d.unstable_sxConfig={...sR,...c?.unstable_sxConfig},d.unstable_sx=function(u){return Yx({sx:u,theme:this})},d}function bte(e=null){const n=g.useContext(KYe);return!n||function(o){return Object.keys(o).length===0}(n)?e:n}Yx.filterProps=["sx"];const Uxt=zae();function bqe(e=Uxt){return bte(e)}function Epe(e){const n=s7(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function wqe({styles:e,themeId:n,defaultTheme:o={}}){const i=bqe(o),a=n&&i[n]||i;let s=typeof e=="function"?e(a):e;return a.modularCssLayers&&(s=Array.isArray(s)?s.map(c=>Epe(typeof c=="function"?c(a):c)):Epe(s)),t.jsx(pqe,{styles:s})}const Ipe=e=>e,Wxt=(()=>{let e=Ipe;return{configure(n){e=n},generate:n=>e(n),reset(){e=Ipe}}})();function Cqe(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=Cqe(e[n]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function $i(){for(var e,n,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(n=Cqe(e))&&(i&&(i+=" "),i+=n);return i}const Qxt={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 Xr(e,n,o="Mui"){const i=Qxt[n];return i?`${o}-${i}`:`${Wxt.generate(e)}-${n}`}function Er(e,n,o="Mui"){const i={};return n.forEach(a=>{i[a]=Xr(e,a,o)}),i}function vqe(e){const{variants:n,...o}=e,i={variants:n,style:s7(o),isProcessed:!0};return i.style===o||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=s7(a.style))}),i}const Gxt=zae();function TU(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Z8(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function Yxt(e){return e?(n,o)=>o[e]:null}function AM(e,n,o){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>AM(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?Z8(i.style,o):i.style;else{const{variants:s,...c}=i;a=o?Z8(s7(c),o):c}return Sqe(e,i.variants,[a],o)}return i?.isProcessed?o?Z8(s7(i.style),o):i.style:o?Z8(s7(i),o):i}function Sqe(e,n,o=[],i=void 0){let a;e:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(a))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&e.ownerState?.[d]!==c.props[d])continue e;typeof c.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?Z8(s7(c.style(a)),i):c.style(a))):o.push(i?Z8(s7(c.style),i):c.style)}return o}function qxt(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function wte(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]=wte(c[p],d[p],o)}}else i[s]=d;else i[s]=c||{}}else s==="className"&&o&&n.className?i.className=$i(e?.className,n?.className):s==="style"&&o&&n.style?i.style={...e?.style,...n?.style}:i[s]===void 0&&(i[s]=e[s])}return i}const Yh=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Oae(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 A7(e){if(e.type)return e;if(e.charAt(0)==="#")return A7(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(Wf(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(Wf(10,i))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:o,values:a,colorSpace:i}}const TA=(e,n)=>{try{return(o=>{const i=A7(o);return i.values.slice(0,3).map((a,s)=>i.type.includes("hsl")&&s!==0?`${a}%`:a).join(" ")})(e)}catch{return e}};function cR(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 $qe(e){e=A7(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])),cR({type:d,values:u})}function Cte(e){let n=(e=A7(e)).type==="hsl"||e.type==="hsla"?A7($qe(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 H_(e,n){return e=A7(e),n=Oae(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,cR(e)}function l9(e,n,o){try{return H_(e,n)}catch{return e}}function dR(e,n){if(e=A7(e),n=Oae(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 cR(e)}function Yr(e,n,o){try{return dR(e,n)}catch{return e}}function uR(e,n){if(e=A7(e),n=Oae(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 cR(e)}function qr(e,n,o){try{return uR(e,n)}catch{return e}}function jL(e,n,o){try{return function(i,a=.15){return Cte(i)>.5?dR(i,a):uR(i,a)}(e,n)}catch{return e}}const kqe=g.createContext(null);function Fae(){return g.useContext(kqe)}const Kxt=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Zxt(e){const{children:n,theme:o}=e,i=Fae(),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[Kxt]=i!==null),s},[o,i]);return t.jsx(kqe.Provider,{value:a,children:n})}const Aqe=g.createContext();function Jxt({value:e,...n}){return t.jsx(Aqe.Provider,{value:e??!0,...n})}const pR=()=>g.useContext(Aqe)??!1,jqe=g.createContext(void 0);function Xxt({value:e,children:n}){return t.jsx(jqe.Provider,{value:e,children:n})}function eyt({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?wte(c.defaultProps,s,i.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?s:wte(c,s,i.components.mergeClassNameAndStyle)}({props:e,name:n,theme:{components:g.useContext(jqe)}})}let Lpe=0;const Tpe={...b7t}.useId;function hR(e){if(Tpe!==void 0){const n=Tpe();return e??n}return function(n){const[o,i]=g.useState(n),a=n||o;return g.useEffect(()=>{o==null&&(Lpe+=1,i(`mui-${Lpe}`))},[o]),a}(e)}const Dpe={};function Ppe(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 Eqe(e){const{children:n,theme:o,themeId:i}=e,a=bte(Dpe),s=Fae()||Dpe,c=Ppe(i,a,o),d=Ppe(i,s,o,!0),u=(i?c[i]:c).direction==="rtl",p=function(h){const m=bte(),f=hR()||"",{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};`:"",Yh(()=>{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(wqe,{styles:y}):null}(c);return t.jsx(Zxt,{theme:d,children:t.jsx(KYe.Provider,{value:c,children:t.jsx(Jxt,{value:u,children:t.jsxs(Xxt,{value:i?c[i].components:c.components,children:[p,n]})})})})}const Bpe={theme:void 0},vte="mode",Ste="color-scheme",tyt="data-color-scheme";function nyt(){}const oyt=({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 nyt;const i=a=>{const s=a.newValue;a.key===e&&o(s)};return n.addEventListener("storage",i),()=>{n.removeEventListener("storage",i)}}});function DU(){}function Mpe(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function _pe(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 iyt(e){const{defaultMode:n="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:a=[],modeStorageKey:s=vte,colorSchemeStorageKey:c=Ste,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=oyt,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:Mpe(L),lightColorScheme:I,darkColorScheme:D}}),[C,v]=g.useState(p||!m);g.useEffect(()=>{v(!0)},[]);const $=function(L){return _pe(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:Mpe(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 _pe(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,B=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\`.`)),B&&(h.includes(B)?(D.darkColorScheme=B,y?.set(B)):console.error(`\`${B}\` 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)})||DU,I=x?.subscribe(z=>{(!z||h.match(z))&&j({light:z})})||DU,D=y?.subscribe(z=>{(!z||h.match(z))&&j({dark:z})})||DU;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 ryt(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 zpe=(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 PU(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}),zpe(s,d,`var(${h})`,p),zpe(c,d,`var(${h}, ${m})`,p)}},d=>d[0]==="vars"),{css:a,vars:s,varsWithDefaults:c}}function ea(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 BU(e,n){return g.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const tE={black:"#000",white:"#fff"},ayt={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"},lyt="#f3e5f5",syt="#ce93d8",cyt="#ba68c8",dyt="#ab47bc",uyt="#9c27b0",pyt="#7b1fa2",hyt="#e57373",myt="#ef5350",gyt="#f44336",Ope="#d32f2f",fyt="#c62828",xyt="#ffb74d",yyt="#ffa726",byt="#ff9800",wyt="#f57c00",Cyt="#e65100",vyt="#e3f2fd",Syt="#90caf9",Fpe="#42a5f5",$yt="#1976d2",kyt="#1565c0",Ayt="#4fc3f7",jyt="#29b6f6",Eyt="#03a9f4",Rpe="#0288d1",Iyt="#01579b",Lyt="#81c784",Tyt="#66bb6a",Dyt="#4caf50",Pyt="#388e3c",Byt="#2e7d32",Myt="#1b5e20";function Iqe(){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:tE.white,default:tE.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 Lqe=Iqe();function Tqe(){return{text:{primary:tE.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:tE.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 $te=Tqe();function Npe(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=uR(e.main,a):n==="dark"&&(e.dark=dR(e.main,s)))}function Vpe(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 Rae(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:Syt,light:vyt,dark:Fpe}:{main:$yt,light:Fpe,dark:kyt}}(n),d=e.secondary||function(b="light"){return b==="dark"?{main:syt,light:lyt,dark:dyt}:{main:uyt,light:cyt,dark:pyt}}(n),u=e.error||function(b="light"){return b==="dark"?{main:gyt,light:hyt,dark:Ope}:{main:Ope,light:myt,dark:fyt}}(n),p=e.info||function(b="light"){return b==="dark"?{main:jyt,light:Ayt,dark:Rpe}:{main:Rpe,light:Eyt,dark:Iyt}}(n),h=e.success||function(b="light"){return b==="dark"?{main:Tyt,light:Lyt,dark:Pyt}:{main:Byt,light:Dyt,dark:Myt}}(n),m=e.warning||function(b="light"){return b==="dark"?{main:yyt,light:xyt,dark:wyt}:{main:"#ed6c02",light:byt,dark:Cyt}}(n);function f(b){return a?function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`}(b):function(C,v){const $=Cte(C),k=Cte(v);return(Math.max($,k)+.05)/(Math.min($,k)+.05)}(b,$te.text.primary)>=o?$te.text.primary:Lqe.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(Wf(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(Wf(12,w?` (${w})`:"",JSON.stringify(b.main)));return a?(Vpe(a,b,"light",v,i),Vpe(a,b,"dark",$,i)):(Npe(b,"light",v,i),Npe(b,"dark",$,i)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=Iqe():n==="dark"&&(y=Tqe()),Td({common:{...tE},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:ayt,contrastThreshold:o,getContrastText:f,augmentColor:x,tonalOffset:i,...y},s)}function _yt(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 zyt(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function Oyt(e){return Math.round(1e5*e)/1e5}const Hpe={textTransform:"uppercase"},Upe='"Roboto", "Helvetica", "Arial", sans-serif';function Dqe(e,n){const{fontFamily:o=Upe,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===Upe?{letterSpacing:`${Oyt($/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,Hpe),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Hpe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Td({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...b},m,{clone:!1})}function Ka(...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 Fyt=["none",Ka(0,2,1,-1,0,1,1,0,0,1,3,0),Ka(0,3,1,-2,0,2,2,0,0,1,5,0),Ka(0,3,3,-2,0,3,4,0,0,1,8,0),Ka(0,2,4,-1,0,4,5,0,0,1,10,0),Ka(0,3,5,-1,0,5,8,0,0,1,14,0),Ka(0,3,5,-1,0,6,10,0,0,1,18,0),Ka(0,4,5,-2,0,7,10,1,0,2,16,1),Ka(0,5,5,-3,0,8,10,1,0,3,14,2),Ka(0,5,6,-3,0,9,12,1,0,3,16,2),Ka(0,6,6,-3,0,10,14,1,0,4,18,3),Ka(0,6,7,-4,0,11,15,1,0,4,20,3),Ka(0,7,8,-4,0,12,17,2,0,5,22,4),Ka(0,7,8,-4,0,13,19,2,0,5,24,4),Ka(0,7,9,-4,0,14,21,2,0,5,26,4),Ka(0,8,9,-5,0,15,22,2,0,6,28,5),Ka(0,8,10,-5,0,16,24,2,0,6,30,5),Ka(0,8,11,-5,0,17,26,2,0,6,32,5),Ka(0,9,11,-5,0,18,28,2,0,7,34,6),Ka(0,9,12,-6,0,19,29,2,0,7,36,6),Ka(0,10,13,-6,0,20,31,3,0,8,38,7),Ka(0,10,13,-6,0,21,33,3,0,8,40,7),Ka(0,10,14,-6,0,22,35,3,0,8,42,7),Ka(0,11,14,-7,0,23,36,3,0,9,44,8),Ka(0,11,15,-7,0,24,38,3,0,9,46,8)],Ryt={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)"},Pqe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wpe(e){return`${Math.round(e)}ms`}function Nyt(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Vyt(e){const n={...Ryt,...e.easing},o={...Pqe,...e.duration};return{getAutoHeightDuration:Nyt,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:Wpe(s)} ${c} ${typeof d=="string"?d:Wpe(d)}`).join(",")},...e,easing:n,duration:o}}const Hyt={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Uyt(e){return gf(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Bqe(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];!Uyt(d)||c.startsWith("unstable_")?delete i[c]:gf(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
|
|
|
@@ -71505,7 +71505,7 @@ ${ba.beneficiaryAddress} ${ne}`,d(we),I(!0)})(o),"data-testid":q("title-text-cop
|
|
|
71505
71505
|
flex-direction: column;
|
|
71506
71506
|
min-width: 0;
|
|
71507
71507
|
background: transparent;
|
|
71508
|
-
`,lae=g.createContext(void 0);function bU(){const e=g.useContext(lae);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const cue=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],due=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],k5t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],A5t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],j5t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],E5t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],I5t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],L5t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],T5t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function sae(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 D5t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],P5t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],B5t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],M5t=[...k5t,...cue,...due,"/: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",...D5t,...P5t,...B5t,...A5t,...j5t,...E5t,...I5t,...L5t,...T5t];function hs(e){const{pathname:n}=$p(),o=n??"";return e.some(i=>oYe(i,o)!=null)}const qj=XGe(U8t()),k2r=["sandbox","production"],A2r=["development","staging","production"],Lv=()=>yc==="DEV"||yc==="QA"||yc==="PUNE"||yc==="SUNNYVALE"||yc==="DELHI"||yc==="MOHALI",uue="https://zeni-webapp-dev.uc.r.appspot.com",yc=n4("DEV",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),j5r=(e=>n4(e,k2r))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(yc)),EGe=(e=>n4(e,A2r))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(yc)),pue=yc==="DEV"||yc==="QA"?.2:.8,_5t=pue,va={sentryDsn:"",sentryTraceSamplingRate:pue,sentryProfileSamplingRate:_5t,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let yS,nI;function j2r(e){va.sentryDsn=e.keys.SENTRY_DSN,va.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):pue,va.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):_5t,va.googleClientId=e.keys.GOOGLE_CLIENT_ID,va.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,va.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,va.mixpanelToken=e.keys.MIXPANEL_TOKEN,va.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,va.pusherCluster=e.keys.PUSHER_CLUSTER,va.quickbooksKey=e.keys.QUICKBOOK_TOKEN,va.appUrl=e.keys.WEB_ENDPOINT,va.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,va.cardVaultId=e.keys.UNIT_VAULT_ID,va.stripeKey=e.keys.STRIPE_KEY,va.qboRedirectionUrl=e.keys.QBO_URL,va.mixpanelUrl=e.keys.MIXPANEL_URL,va.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,nI=e.externalEndPoints,yS=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)}}(yS,nI)}let IGe=!1;function $C(){IGe||(xh.init("63d3a2406505a5737a2b4debdb513f20",{api_host:nI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),IGe=!0)}const E2r=new Set(Array.from(io.EVENTS_WITHOUT_SUPER_PROPERTIES));let LGe=!1,TGe=!1;function cae(){if(LGe)return;LGe=!0,$C();const e=io.extractUtmParamsFromUrl();Object.keys(e).length>0&&xh.register(e),Lv()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const I2r=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function L2r(){const e=function(){return xh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||I2r.has(o));for(const o of n)xh.unregister(o);Lv()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function DGe(){TGe||(TGe=!0,L2r())}class qC{identify(n,o){if($C(),this.#t=n,n!=null&&o!=null&&(qC.#e==null||!T9t({userId:n,traits:o},qC.#e))){const{$email:i,...a}={...o};xh.identify(n),i&&i!=null&&xh.people.set_once({$email:i}),xh.people.set(a),qC.#e={userId:n,traits:o},Lv()&&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){$C();const i=E2r.has(n);if(this.#t!=null||i){if(cae(),this.#t!=null){const a={distinct_id:this.#t,...o};xh.track(n,a)}else xh.track(n,o);if(DGe(),Lv()){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){$C(),cae(),xh.track(n,o),DGe(),Lv()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){$C(),xh.alias(n,o)}reset(){$C(),xh.identify(void 0),this.#t=void 0,qC.#e=void 0}static#e;#t}const dae=new qC,z5t=new io.Analytics(dae);z5t.trackWithoutUserId=dae.trackWithoutUserId.bind(dae);const Fh=z5t,O5t=g.createContext(null),hue={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function T2r({children:e}){const[n,o]=g.useState(()=>new Set([])),i=n.size>0,a=g.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=g.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:g.useCallback(()=>{o(new Set)},[])};return Bt.jsx(O5t.Provider,{value:c,children:e})}function wU(){const e=g.useContext(O5t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const F5t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",HF="zeni-ai-cfo-upload-promo-storage-changed",Ai=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(HF)),!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(HF))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:on(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return qj.AES.encrypt(e,n).toString()}decrypt(e,n){return qj.AES.decrypt(e,n).toString(qj.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=F5t;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 D2r(e){return hi(n=>function(o,i){if(i==null||i==="")return;const a=D9t(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const R5t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],N5t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],P2r=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],B2r=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],M2r=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],_2r=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],z2r=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],V5t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],H5t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],O2r=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function mue(e){const n=Cu(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":O2r.includes(i)?i:null}const F2r=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),R2r=new Set(["setup","verification","promo","approval-rules"]);function Cu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function gue(e){const n=Cu(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 U5t(e,n,o){const i=Cu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function W5t(e,n,o){return U5t(e,n,i=>!o.has(i))}function Q5t(e){return W5t(e,"bills",F2r)}function G5t(e){return W5t(e,"reimbursements",R2r)}function Y5t(e){return U5t(e,"tasks",n=>n==="group")}const N2r=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),V2r=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function fue(e){const n=Cu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return N2r.has(o)?"checking":"checking_details"}function xue(e){const n=Cu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return V2r.has(o)?"cards":"cards_detail"}function q5t(e){const n=Cu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function K5t(e){return Cu(e)[1]==="performance"?"performance":void 0}function Z5t(e){const n=Cu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function J5t(e){const n=Cu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function F0(e,n){return n.some(o=>oYe(o,e)!=null)}function H2r(e){return F0(e,cue)?"reports":F0(e,R5t)?"ap_aging":F0(e,N5t)?"ar_aging":gue(e)!=null?"vendors_tab":F0(e,due)?"forecast":mue(e)!=null?"month_end_close_review":F0(e,V5t)?"cash_balance":F0(e,H5t)?"card_balance":Y5t(e)?"task_checklist":q5t(e)!=null?"transaction_detail":K5t(e)!=null?"performance":Z5t(e)!=null?"bills_detail":J5t(e)!=null?"reimbursement_detail":Q5t(e)?"bills_list":G5t(e)?"reimbursement_list":F0(e,P2r)?"cash_in_cash_out":F0(e,B2r)?"operating_expenses":F0(e,M2r)?"revenue":F0(e,_2r)?"net_burn_or_income":F0(e,z2r)?"cash_position":function(n){const o=Cu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":fue(e)!=null?"checking":function(n){return Cu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":xue(e)!=null?"cards":function(n){return Cu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return Cu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return Cu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function X5t(e,n){switch(H2r(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 gue(e);case"forecast":return"forecast";case"month_end_close_review":{const o=mue(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 fue(e);case"treasury":return"treasury";case"cards":return xue(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function U2r(){const{pathname:e}=$p(),n=e??"",o=hi(i=>i.financeStatementState?.selectedReportId);return g.useMemo(()=>X5t(n,{selectedReportId:o}),[n,o])}function W2r({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=g.useCallback(()=>e===!0&&n!=null&&!Ai.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=g.useState(o);return g.useEffect(()=>{a(o())},[o]),g.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(HF,s);const c=d=>{d.key===F5t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(HF,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:g.useCallback(()=>{n!=null&&Ai.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const e7t=g.createContext(void 0),yue=()=>g.useContext(e7t),Q2r=e=>{const n=Ai.isSignedIn(),o=Ai.getSignedInUser(),[i,a]=g.useState(void 0),s=g.useMemo(()=>i,[i]),c=hi(p=>zu(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=B9t(va.pusherClientSecret,{cluster:va.pusherCluster},{userId:m,tenantId:f,sessionId:x},!0);a(w),w!=null&&(d!=null&&Kj(w,d),m!=null&&Kj(w,m),u!=null&&Kj(w,u))},b=()=>{const w=aI();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),NYe(m,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(m=>i?.unsubscribe(m.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Bt.jsx(e7t.Provider,{value:s,children:e.children})};function Kj(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 bue=e=>n=>{const o=yue(),i=g.useRef(n.eventCallback),a=g.useRef({});g.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=g.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return g.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),m=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(m?.subscribed===!0)x=m,x.bind(h,f),d.push(()=>{m.unbind(h,f)});else{x=m??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Bt.jsx(e,{...n})},$f=(e,n)=>{const o=[...e??[]];return o.push(n),o},E5r=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},I5r=({state:e})=>Ai.isSignedIn()===!0?Bt.jsx(F7t,{}):Bt.jsx(iYe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),G2r=({children:e})=>{const n=mte("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});g.useEffect(()=>{const d=Ai.getTheme()==null?n:Ai.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?U_({palette:{mode:"dark"},...ike},rke,nRn,iRn):U_({palette:{mode:"light"},...ike},rke,tRn,oRn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Bt.jsx(Jjn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;Ai.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},t7t=g.createContext(!1),Y2r=t7t.Provider;function q2r(){return g.useContext(t7t)}const K2r=()=>hi(e=>zu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=O7t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function n7t(){const{useFeatureGate:e}=Es(),{isFeatureEnabled:n}=e(Ui.isAiCfoEnabled),o=hi(a=>zu(a)),i=Ai.getSignedInUser();return i!=null&&i.userId!=null&&o!=null&&o.companyId!=null&&n}const uae=e=>Cgn.includes(e),B_=e=>Dlt.includes(e),PGe=e=>uae(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":$O(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:B_(e)?`ai-cfo/${e}`:e,Z2r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],BGe=(e,n)=>e.includes(n),pae=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(BGe(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&&$O(a)?Tlt(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Dlt)if(BGe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function MGe(e){let n=pae(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=pae(o[i])}return n??"home"}function J2r(e){return e.pathname.includes("settings")}function X2r(e){return e.pathname.includes("ai-cfo")}const egr=()=>{const e=tgr();return IA("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},tgr=()=>$p().state?.message==="expenseAutomation";function ngr(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const ogr=(e,n,o)=>{const i=VYe(e),a=M9t(e),s=HYe(o,e);return n||o||a||i||s},iC="AppDrawer",dm={root:`${iC}-root`,drawer:`${iC}-drawer`,appBar:`${iC}-appBar`,menuButton:`${iC}-menuButton`,appBarZenilogo:`${iC}-appBarZenilogo`,drawerZenilogo:`${iC}-drawerZenilogo`},oI=210,igr=Fn("div",{slot:"Root"})(({theme:e})=>({[`&.${dm.root}`]:{display:"flex"},[`& .${dm.drawer}`]:{[e.breakpoints.up("md")]:{width:oI,flexShrink:0,backgroundColor:e.colors.background}},[`& .${dm.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${dm.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${dm.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${dm.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),rgr=bue(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=bU(),[i,a]=T.useState(!1),[s,c]=g.useState(!1),d=$p(),u=WF(),p=aI(),h=lce(),m=Ug(),[f,x]=g.useState(!1),y=Te(),{useFeatureGate:b}=Es(),{isFeatureEnabled:w}=b(Ui.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Ui.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Ui.isExpenseAutomationEnabledV2),[$,k]=g.useState(()=>Ai.getSignedInUser());g.useEffect(()=>{const St=()=>{const kn=Ai.getSignedInUser();k(kn)};return window.addEventListener("completeProfileDone",St),()=>{window.removeEventListener("completeProfileDone",St)}},[]);const j=hi(St=>zu(St)),{setLoading:A}=wU(),E=n7t(),L=Q7($),I=v||C&&L,D=q2r(),[z,B]=g.useState(void 0),{isFeatureEnabled:N}=b(Ui.isDepositAccountsFeatureEnabled),{isFeatureEnabled:F}=b(Ui.isChargeCardFeatureEnabled),O=ogr(j,F,w),{isFeatureEnabled:V}=b(Ui.isSettingsFeatureEnabled),{isFeatureEnabled:_}=b(Ui.isReferralFeatureEnabled),{isFeatureEnabled:R}=b(Ui.isTreasuryEnabled),{isFeatureEnabled:W}=b(Ui.isTaskManagerCustomerUserAccessEnabled),Q=L||!L&&W,H=hi(St=>z9t(St));g.useEffect(()=>{const St=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",St),()=>{window.removeEventListener("scroll",St)}},[]);const G=hi(St=>O9t(St)),J=hi(St=>St.expenseAutomationViewState.selectedPeriodByTenantId),Y=hi(St=>F9t(St)),{monthEndCloseChecksView:ne}=Y,oe=IA("/signout")!==null,te=IA("/:tenantEmailDomain/dashboard")!==null,K=IA("/:tenantEmailDomain/reports")!==null,ie=IA("/:tenantEmailDomain/onboarding/*")!==null,le=egr();g.useEffect(()=>{D&&_&&!ie&&G.fetchState==="Not-Started"&&m(R9t(!0))},[D,_,G.fetchState,ie]),g.useEffect(()=>{if(le){const St=d.state?.origin;if(St!=null){const kn=N9t(St);m(que(kn))}}},[le,d.state]),g.useEffect(()=>{const St=J[j.tenantId];St!=null&&ne.fetchState!=="In-Progress"&&ne.fetchState!=="Completed"&&m(V9t({tenantId:j.tenantId,period:St,refreshViewInBackground:!1}))},[J,ne.fetchState,j.tenantId]);const pe=oe||ie,we=hi(St=>St.tenantState),he=hi(St=>we.fetchState==="Completed"?WYe(St):[]),{isFeatureEnabled:ce}=b(Ui.isApAgingFeatureEnabled),{isFeatureEnabled:ge}=b(Ui.isArAgingFeatureEnabled),{isFeatureEnabled:ae}=b(Ui.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:de}=b(Ui.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:fe}=b(Ui.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:me}=b(Ui.isDashboardSidebarNewYearAnimationEnabled),be=hi(St=>mb(St).totalUnreadCount),xe=hi(St=>mb(St).notificationDetailsByTab.tasks.uiState.unreadCount),Ce=hi(St=>mb(St).notificationDetailsByTab.comments.uiState.unreadCount),$e=hi(St=>mb(St).reducedFetchCountState),ke=hi(St=>mb(St).notificationDetailsByTab.tasks.fetchCountState),Ee=hi(St=>eR(St)),[je,ze]=g.useState(void 0),He=Ee.uiState.currentChatSessionId,ve=je!=null?Ee.deleteChatSessionStateByChatSessionId[je]?.fetchState:void 0,Ie=It(ve),{inboxNotifications:Ae,isLoading:Ne,isFetchingMore:Ye,hasFetchedAll:Ze,fetchMore:kt}=K2r(),xt=hi(St=>mb(St).notificationDetailsByTab.comments.fetchCountState);g.useEffect(()=>{const St=setTimeout(()=>kt?.(),0);return()=>clearTimeout(St)}),g.useEffect(()=>{if(je!=null)return Ie==="In-Progress"&&ve==="Completed"?(m(Kue({chatSessionId:je})),ze(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(ve==="Error"&&(m(Kue({chatSessionId:je})),ze(void 0)))},[m,d.state,u,ve,je,Ie,e]),g.useEffect(()=>{if(Ne===!1&&Ye===!1&&Ze===!0&&j?.companyId!=null&&Ae!=null){const St=`dashboard_${j.companyId}`;B(Ae.filter(kn=>kn.roomId===St&&kn.readAt==null).length)}},[Ne,Ye,Ze,j?.companyId,Ae]),g.useEffect(()=>{D&&L&&!ie&&ke.fetchState==="Not-Started"&&p.tenantId!=null&&m(H9t("task_manager","dashboard"))},[D,p.tenantId]),g.useEffect(()=>{ie||xt.fetchState!=="Not-Started"||m(Zue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),g.useEffect(()=>{if(z!=null){const{fetchState:St}=xt;St!=="In-Progress"&&St!=="Completed"||(St==="In-Progress"&&m(Zue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(UYe({unreadCount:z},"comments")))}},[z,xt.fetchState]);const ct={fetchStatus:$e,count:be},ft=[];ce===!1&&ft.push("accounts_payable_aging"),ge===!1&&ft.push("accounts_receivable_aging"),N===!1&&ft.push("zeni_accounts_promo_card"),_===!1&&ft.push("rewards_card"),I===!1&&ft.push("expense_automation_card");const $t=un(),Wt=hi(St=>U9t(St,ft,$,v,C,R).fetchState),it=hi(St=>W9t(St).fetchState),Vt=e!=null?Ai.getSignedInUserTenant(e):null,Lt=hi(St=>Vt?.tenantId!=null?QYe(St,Vt.tenantId):void 0),Mt=te&&(Wt==="Completed"||Wt==="Error")||K&&(it==="Completed"||it==="Error")||!te&&!K?void 0:"disabled",Xt=g.useMemo(()=>GYe(j.userRole),[j.userRole]),ht=mYe(Xt),tn=St=>{a(St)},sn=j.company!=null&&Q9t(j.company),Ot=R&&sn,Yt=gYe($t?.loggedInUserRoleMap),xn=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,jt=hi(St=>St.treasurySetupViewState.treasuryFundsDetails),Gt=g.useCallback(()=>Ot&&Yt&&jt?.fetchStatus.fetchState==="Completed"&&!Ai.getTreasuryPopupSeen(e??"")&&xn===!1&&pae(d.pathname)!=="treasury",[Ot,Yt,xn,d.pathname,e,jt?.fetchStatus]),[fn,rn]=g.useState(Gt);g.useEffect(()=>{D&&Ot&&jt?.fetchStatus.fetchState==="Not-Started"&&m(G9t())},[D,Ot,jt?.fetchStatus.fetchState]),g.useEffect(()=>{rn(Gt())},[Gt]);const zt=ngr(jt.fundsDetails),On=j?.rewardsLastViewedTime==null,Hn=$?.userEmail!=null&&H.fetchState==="Completed"&&Y9t(H.notificationSettings,$.userEmail,w,j),Rn=g.useCallback(St=>{const kn=d.state?.referrer;if(ne.monthEndCloseChecks?.auditSummary!=null&&Fh.trackMonthCloseAuditPage(St.month,St.year,ne.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",ne.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,kn??null),m(q9t(j.tenantId,St)),J[j.tenantId]!=null){const qn=$f(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${Y.currentSelectedView}/${St.month}-${St.year}`,{state:{pathnameStackToGoBack:qn,referrer:Y.currentSelectedView}})}m(que(Y.currentSelectedView)),Y.reconciliation.selectedAccountId!=null&&m(K9t({selectedAccountId:void 0}))},[Y.reconciliation.selectedAccountId,Y.currentSelectedView,j.tenantId,ne.monthEndCloseChecks?.auditSummary,ne.monthEndCloseChecks?.reportEmailSentDate,J,e,d.state,d.pathname]),Qo=g.useMemo(()=>({zIndex:s||fn?12:S[2]}),[s,fn]),Bo=E&&X2r(d),Un=Bt.jsx(PJn,{signedInUser:$,currentTenantId:we.currentTenantId??"",tenants:we.fetchState==="Completed"?he:Lt!=null?[Lt]:[],rewardsConfiguration:{isRewardsTabVisible:_,isRewardsAnimated:On,rewardsPlan:G.rewardsPlan},selectedMenu:n===!0?Tlt("ai_cfo"):MGe(d),isTenantDropdownDisabled:Mt,isSettings:J2r(d),isSettingsFeatureEnabled:V,currentTenant:j,isVendorsTabVisible:ht,isZeniAccountEnabled:N,isChargeCardEnabled:O,isTreasuryEnabled:Ot,isTreasuryPopupVisible:fn,treasuryYieldPercentage:zt,isNotificationsTabVisible:Hn,notificationCountDetails:ct,isExpenseAutomationEnabledForUser:I&&Na(j.userRole)===!1,isAiCfoAccessEnabled:E,onNotificationIconClick:()=>{tn(!1);const St=L?xe===0&&Ce>0?"notifications/comments":"notifications/tasks":"notifications/comments",kn=$f(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${St}`,{state:{pathnameStackToGoBack:kn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:St=>{A(hue.TENANT_SWITCHING),tn(!1);const kn=St.tenantEmailDomain,qn=MGe(d),pn=qn;let An="";const go=$O(pn);qn==="home"?An+="dashboard":qn==="users_and_roles"?An+="people":uae(qn)?An+="settings/my_profile":B_(qn)?An+=`ai-cfo/${qn}`:An+=pn==="task_checklist"?"tasks":go?"month_end_close_checks/review":encodeURIComponent(qn);const Jn=`/${encodeURIComponent(kn)}/${An}`;u(Jn,{replace:!0}),$!=null&&(m(Eae(St.tenantId)),m(YYe($.userId,St.tenantId,$.zeniSessionId)));const Mo=St;Fh.trackCompanySwitch(Mo.companyId,Mo.companyName,Mo.userRole)},handleMenuChange:(St,kn)=>{if($!=null&&Fh.trackSidePanelClicked(St.type,St.group),tn(!1),n&&(Jn=>{if(uae(Jn)||B_(Jn))return!0;const Mo=PGe(Jn).split("/")[0];return!Z2r.includes(Mo)})(St.type)&&o(!1),St.type==="ai_cfo"){Fh.trackAICFOChatScreenStateChanged("viewed","left_menu",He??null,null);const Jn=$f(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Jn,referrer:"Sidebar"}})}const qn=$f(d.state?.pathnameStackToGoBack,d.pathname),pn=St.type,An=$O(pn)&&pn!=="command_center";if(pn!=="command_center"&&!An||J[j.tenantId]==null||Fh.trackMonthEndCloseClicked(J[j.tenantId].month,J[j.tenantId].year,"Sidebar"),An&&J[j.tenantId]!=null){const Jn=J[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${St.type}/${Jn.month}-${Jn.year}`,{state:{pathnameStackToGoBack:qn,message:kn,referrer:"Sidebar"}})}const go=PGe(St.type);B_(St.type)?(He!=null&&m(__()),u(`/${e}/ai-cfo/${St.type}`,{state:{pathnameStackToGoBack:qn.slice(0,-1),message:kn,referrer:"Sidebar"}})):u(`../${e}/${go}`,{state:{pathnameStackToGoBack:qn,message:kn,referrer:"Sidebar"}})},onDeleteChatSession:St=>{m(Z9t(St)),He===St&&ze(St)},handleLogOutClick:()=>{tn(!1);const St=$f(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:St,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{Ai.saveTreasuryPopupSeen(e??"",!0),rn(!1)},monthEndCloseChecksView:ne,onPeriodChange:Rn,onCalendarOpen:c,aiCfoView:Ee,isAiCfo:Bo,isOnDashboard:te,isTaskManagerAccessEnabled:Q,updateCurrentChatSessionId:St=>{m(jae({sessionId:St,agentId:"controller"})),u(`../${e}/ai-cfo/${St}`,{state:{...d.state}})},halloweenAnimationEnabled:ae,thanksGivingAnimationEnabled:de,christmasAnimationEnabled:fe,newYearAnimationEnabled:me}),an=Bt.jsx($8t,{position:"fixed",className:dm.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Bt.jsxs(k8t,{style:{minHeight:Alt},children:[Bt.jsx(A8t,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>tn(!0),className:dm.menuButton,size:"large",children:Bt.jsx(agr,{})}),Bt.jsx(lgr,{className:dm.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),mo=mte(St=>St.breakpoints.up("md")),Co=mte(St=>St.breakpoints.down("md"));return e==null?null:Bt.jsxs(igr,{className:dm.root,children:[Bt.jsx(j8t,{}),pe===!1?Bt.jsxs(Bt.Fragment,{children:[mo||!te?null:an,Bt.jsxs("nav",{className:dm.drawer,children:[mo?null:Bt.jsx(z_,{container:window.document.body,variant:"temporary",open:i,onClose:()=>tn(!1),PaperProps:{sx:{width:oI,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:Un}),Co?null:Bt.jsx(z_,{PaperProps:{sx:{width:oI,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...Qo}},variant:"permanent",open:!0,children:Un})]})]}):null]})});function _Ge(e){return e?.data.unread!=null&&e?.mode!=null}const agr=Fn(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"})))`
|
|
71508
|
+
`,lae=g.createContext(void 0);function bU(){const e=g.useContext(lae);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const cue=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],due=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],k5t=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],A5t=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],j5t=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],E5t=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],I5t=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],L5t=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],T5t=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function sae(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 D5t=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],P5t=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],B5t=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],M5t=[...k5t,...cue,...due,"/: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",...D5t,...P5t,...B5t,...A5t,...j5t,...E5t,...I5t,...L5t,...T5t];function hs(e){const{pathname:n}=$p(),o=n??"";return e.some(i=>oYe(i,o)!=null)}const qj=XGe(U8t()),k2r=["sandbox","production"],A2r=["development","staging","production"],Lv=()=>yc==="DEV"||yc==="QA"||yc==="PUNE"||yc==="SUNNYVALE"||yc==="DELHI"||yc==="MOHALI",uue="https://zeni-webapp-qa.uc.r.appspot.com",yc=n4("QA",["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"]),j5r=(e=>n4(e,k2r))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(yc)),EGe=(e=>n4(e,A2r))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(yc)),pue=yc==="DEV"||yc==="QA"?.2:.8,_5t=pue,va={sentryDsn:"",sentryTraceSamplingRate:pue,sentryProfileSamplingRate:_5t,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let yS,nI;function j2r(e){va.sentryDsn=e.keys.SENTRY_DSN,va.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):pue,va.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):_5t,va.googleClientId=e.keys.GOOGLE_CLIENT_ID,va.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,va.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,va.mixpanelToken=e.keys.MIXPANEL_TOKEN,va.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,va.pusherCluster=e.keys.PUSHER_CLUSTER,va.quickbooksKey=e.keys.QUICKBOOK_TOKEN,va.appUrl=e.keys.WEB_ENDPOINT,va.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,va.cardVaultId=e.keys.UNIT_VAULT_ID,va.stripeKey=e.keys.STRIPE_KEY,va.qboRedirectionUrl=e.keys.QBO_URL,va.mixpanelUrl=e.keys.MIXPANEL_URL,va.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,nI=e.externalEndPoints,yS=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)}}(yS,nI)}let IGe=!1;function $C(){IGe||(xh.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:nI.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),IGe=!0)}const E2r=new Set(Array.from(io.EVENTS_WITHOUT_SUPER_PROPERTIES));let LGe=!1,TGe=!1;function cae(){if(LGe)return;LGe=!0,$C();const e=io.extractUtmParamsFromUrl();Object.keys(e).length>0&&xh.register(e),Lv()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const I2r=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function L2r(){const e=function(){return xh?.persistence?.props??null}();if(e==null)return;const n=Object.keys(e).filter(o=>o.startsWith("utm_")||I2r.has(o));for(const o of n)xh.unregister(o);Lv()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function DGe(){TGe||(TGe=!0,L2r())}class qC{identify(n,o){if($C(),this.#t=n,n!=null&&o!=null&&(qC.#e==null||!T9t({userId:n,traits:o},qC.#e))){const{$email:i,...a}={...o};xh.identify(n),i&&i!=null&&xh.people.set_once({$email:i}),xh.people.set(a),qC.#e={userId:n,traits:o},Lv()&&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){$C();const i=E2r.has(n);if(this.#t!=null||i){if(cae(),this.#t!=null){const a={distinct_id:this.#t,...o};xh.track(n,a)}else xh.track(n,o);if(DGe(),Lv()){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){$C(),cae(),xh.track(n,o),DGe(),Lv()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(o)}`)}alias(n,o){$C(),xh.alias(n,o)}reset(){$C(),xh.identify(void 0),this.#t=void 0,qC.#e=void 0}static#e;#t}const dae=new qC,z5t=new io.Analytics(dae);z5t.trackWithoutUserId=dae.trackWithoutUserId.bind(dae);const Fh=z5t,O5t=g.createContext(null),hue={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function T2r({children:e}){const[n,o]=g.useState(()=>new Set([])),i=n.size>0,a=g.useCallback(d=>{o(u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p})},[]),s=g.useCallback(d=>{o(u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p})},[]),c={isLoading:i,activeLoadingStates:n,setLoading:a,clearLoading:s,clearAllLoading:g.useCallback(()=>{o(new Set)},[])};return Bt.jsx(O5t.Provider,{value:c,children:e})}function wU(){const e=g.useContext(O5t);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}const F5t="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",HF="zeni-ai-cfo-upload-promo-storage-changed",Ai=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(HF)),!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(HF))}savePayNowInfoTooltip(e,n){const o=n??window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),o))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_PAY_NOW_INFO_TOOLTIP),n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null&&n!=null)try{const o=this.decrypt(e,n);return o===""||o==null?void 0:JSON.parse(o)}catch{return}}saveZeniOtpTokenForCardHolder(e,n){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),o))}getZeniOtpTokenForCardHolder(e){const n=window.localStorage.getItem(`${this.ZENI_OTP_TOKEN}_${e}`),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n!=null&&o!=null)try{const i=this.decrypt(n,o);if(i===""||i==null)return;let a=JSON.parse(i);return a={...a,expiry:on(a.expiry.toString())},a}catch{return}}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){const e=window.localStorage.getItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),n="7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c";if(e!=null)try{return this.decrypt(e,n)}catch{return window.localStorage.removeItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN),null}return null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){const e=window.localStorage.getItem(this.ZENI_MAGIC_LINK_EMAIL);return e!=null?this.decrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"):null}encrypt(e,n){return qj.AES.encrypt(e,n).toString()}decrypt(e,n){return qj.AES.decrypt(e,n).toString(qj.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=F5t;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 D2r(e){return hi(n=>function(o,i){if(i==null||i==="")return;const a=D9t(o,i);return a?.fetchState==="Completed"&&a.suggestedQuestions.length>0?a.suggestedQuestions:void 0}(n,e))}const R5t=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],N5t=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],P2r=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],B2r=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],M2r=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],_2r=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],z2r=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],V5t=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],H5t=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],O2r=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function mue(e){const n=Cu(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":O2r.includes(i)?i:null}const F2r=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),R2r=new Set(["setup","verification","promo","approval-rules"]);function Cu(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function gue(e){const n=Cu(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 U5t(e,n,o){const i=Cu(e);return!(i.length<2||i[1]!==n)&&(i.length===2||o(i[2]))}function W5t(e,n,o){return U5t(e,n,i=>!o.has(i))}function Q5t(e){return W5t(e,"bills",F2r)}function G5t(e){return W5t(e,"reimbursements",R2r)}function Y5t(e){return U5t(e,"tasks",n=>n==="group")}const N2r=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),V2r=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function fue(e){const n=Cu(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const o=n[2];return N2r.has(o)?"checking":"checking_details"}function xue(e){const n=Cu(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const o=n[2];return V2r.has(o)?"cards":"cards_detail"}function q5t(e){const n=Cu(e),o=n.indexOf("transaction");if(!(o<1||n.length<o+3))return"transaction_details"}function K5t(e){return Cu(e)[1]==="performance"?"performance":void 0}function Z5t(e){const n=Cu(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function J5t(e){const n=Cu(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function F0(e,n){return n.some(o=>oYe(o,e)!=null)}function H2r(e){return F0(e,cue)?"reports":F0(e,R5t)?"ap_aging":F0(e,N5t)?"ar_aging":gue(e)!=null?"vendors_tab":F0(e,due)?"forecast":mue(e)!=null?"month_end_close_review":F0(e,V5t)?"cash_balance":F0(e,H5t)?"card_balance":Y5t(e)?"task_checklist":q5t(e)!=null?"transaction_detail":K5t(e)!=null?"performance":Z5t(e)!=null?"bills_detail":J5t(e)!=null?"reimbursement_detail":Q5t(e)?"bills_list":G5t(e)?"reimbursement_list":F0(e,P2r)?"cash_in_cash_out":F0(e,B2r)?"operating_expenses":F0(e,M2r)?"revenue":F0(e,_2r)?"net_burn_or_income":F0(e,z2r)?"cash_position":function(n){const o=Cu(n);return o.length===2&&o[1]==="dashboard"}(e)?"dashboard":fue(e)!=null?"checking":function(n){return Cu(n)[1]==="treasury"?"treasury":void 0}(e)!=null?"treasury":xue(e)!=null?"cards":function(n){return Cu(n)[1]==="people"?"people":void 0}(e)!=null?"people":function(n){return Cu(n)[1]==="rewards"?"rewards":void 0}(e)!=null?"rewards":function(n){return Cu(n)[1]==="notifications"?"notifications":void 0}(e)!=null?"notifications":"none"}function X5t(e,n){switch(H2r(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 gue(e);case"forecast":return"forecast";case"month_end_close_review":{const o=mue(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 fue(e);case"treasury":return"treasury";case"cards":return xue(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function U2r(){const{pathname:e}=$p(),n=e??"",o=hi(i=>i.financeStatementState?.selectedReportId);return g.useMemo(()=>X5t(n,{selectedReportId:o}),[n,o])}function W2r({isFileUploadEnabled:e,tenantEmailDomain:n}){const o=g.useCallback(()=>e===!0&&n!=null&&!Ai.getAiCfoUploadPromoSeen(n),[e,n]),[i,a]=g.useState(o);return g.useEffect(()=>{a(o())},[o]),g.useEffect(()=>{const s=()=>{a(o())};window.addEventListener(HF,s);const c=d=>{d.key===F5t&&s()};return window.addEventListener("storage",c),()=>{window.removeEventListener(HF,s),window.removeEventListener("storage",c)}},[o]),{isUploadPromoVisible:i,handleUploadPromoClose:g.useCallback(()=>{n!=null&&Ai.saveAiCfoUploadPromoSeen(n,!0),a(!1)},[n])}}const e7t=g.createContext(void 0),yue=()=>g.useContext(e7t),Q2r=e=>{const n=Ai.isSignedIn(),o=Ai.getSignedInUser(),[i,a]=g.useState(void 0),s=g.useMemo(()=>i,[i]),c=hi(p=>zu(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=B9t(va.pusherClientSecret,{cluster:va.pusherCluster},{userId:m,tenantId:f,sessionId:x},!0);a(w),w!=null&&(d!=null&&Kj(w,d),m!=null&&Kj(w,m),u!=null&&Kj(w,u))},b=()=>{const w=aI();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),NYe(m,x,f),y()))},100)}}return()=>{h=!0,p!=null&&clearInterval(p),i?.channels.all().forEach(m=>i?.unsubscribe(m.name)),i?.disconnect()}},[n,c.tenantId,o?.userId,o?.zeniSessionId]),Bt.jsx(e7t.Provider,{value:s,children:e.children})};function Kj(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 bue=e=>n=>{const o=yue(),i=g.useRef(n.eventCallback),a=g.useRef({});g.useEffect(()=>{i.current=n.eventCallback;const{events:c,eventCallback:d,...u}=n;a.current=u},[n]);const s=g.useMemo(()=>[...n.events].sort().join("|"),[n.events]);return g.useEffect(()=>{if(o!=null){const{events:c}=n,d=[];return c.length===0?void 0:(c.forEach(u=>{const[p,h]=(y=>y.split("."))(u),m=o.channel(p),f=y=>{i.current(h,y,a.current)};let x;if(m?.subscribed===!0)x=m,x.bind(h,f),d.push(()=>{m.unbind(h,f)});else{x=m??o.subscribe(p),x.bind(h,f);const y=()=>{};x.bind("pusher:subscription_succeeded",y),x.subscribed===!0&&x.unbind("pusher:subscription_succeeded",y),d.push(()=>{x.unbind(h,f),x.unbind("pusher:subscription_succeeded",y)})}}),()=>{d.forEach(u=>u())})}},[o,s]),Bt.jsx(e,{...n})},$f=(e,n)=>{const o=[...e??[]];return o.push(n),o},E5r=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},I5r=({state:e})=>Ai.isSignedIn()===!0?Bt.jsx(F7t,{}):Bt.jsx(iYe,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),G2r=({children:e})=>{const n=mte("(prefers-color-scheme: dark)"),[o,i]=T.useState({dark:n});g.useEffect(()=>{const d=Ai.getTheme()==null?n:Ai.getTheme()==="dark";o.dark!==d&&i({dark:d})},[o,n]);const a=o.dark?U_({palette:{mode:"dark"},...ike},rke,nRn,iRn):U_({palette:{mode:"light"},...ike},rke,tRn,oRn),s=typeof window<"u"?window.__NONCE__:void 0,c=s!=null&&s.length>0?s:void 0;return Bt.jsx(Jjn,{dark:o.dark,webAppTheme:a,toggle:()=>{const d=!o.dark;Ai.setTheme(d?"dark":"light"),i({...o,dark:d})},nonce:c,children:e})},t7t=g.createContext(!1),Y2r=t7t.Provider;function q2r(){return g.useContext(t7t)}const K2r=()=>hi(e=>zu(e)).tenantId==null?{inboxNotifications:[],isLoading:!1,isFetchingMore:!1,hasFetchedAll:!0,fetchMore:()=>null}:(()=>{const{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}=O7t();return{inboxNotifications:e,isLoading:n,isFetchingMore:o,hasFetchedAll:i,fetchMore:a}})();function n7t(){const{useFeatureGate:e}=Es(),{isFeatureEnabled:n}=e(Ui.isAiCfoEnabled),o=hi(a=>zu(a)),i=Ai.getSignedInUser();return i!=null&&i.userId!=null&&o!=null&&o.companyId!=null&&n}const uae=e=>Cgn.includes(e),B_=e=>Dlt.includes(e),PGe=e=>uae(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":$O(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:B_(e)?`ai-cfo/${e}`:e,Z2r=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],BGe=(e,n)=>e.includes(n),pae=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(BGe(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&&$O(a)?Tlt(a):"command_center"}(e);case"ai-cfo":return function(n){if(n!=null){for(const o of Dlt)if(BGe(n,o))switch(o){case"new_chat":return"new_chat";case"explore":return"explore"}}}(e);case"treasury":return"treasury";default:return}};function MGe(e){let n=pae(e.pathname);if(n==null){const o=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let i=0;i<o.length&&n==null;++i)n=pae(o[i])}return n??"home"}function J2r(e){return e.pathname.includes("settings")}function X2r(e){return e.pathname.includes("ai-cfo")}const egr=()=>{const e=tgr();return IA("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},tgr=()=>$p().state?.message==="expenseAutomation";function ngr(e){return(e??[]).reduce((n,o)=>{const i=o.yield;return Math.max(n,i)},0)}const ogr=(e,n,o)=>{const i=VYe(e),a=M9t(e),s=HYe(o,e);return n||o||a||i||s},iC="AppDrawer",dm={root:`${iC}-root`,drawer:`${iC}-drawer`,appBar:`${iC}-appBar`,menuButton:`${iC}-menuButton`,appBarZenilogo:`${iC}-appBarZenilogo`,drawerZenilogo:`${iC}-drawerZenilogo`},oI=210,igr=Fn("div",{slot:"Root"})(({theme:e})=>({[`&.${dm.root}`]:{display:"flex"},[`& .${dm.drawer}`]:{[e.breakpoints.up("md")]:{width:oI,flexShrink:0,backgroundColor:e.colors.background}},[`& .${dm.appBar}`]:{color:e.colors.primary,backgroundColor:e.colors.background,boxShadow:"none"},"& .MuiToolbar-root":{backgroundColor:e.colors.background},[`& .${dm.menuButton}`]:{marginRight:e.spacing(2),[e.breakpoints.up("md")]:{display:"none"}},[`& .${dm.appBarZenilogo}`]:{fill:e.colors.primary,cursor:"pointer",width:"100%",marginLeft:e.spacing(-6)},[`& .${dm.drawerZenilogo}`]:{margin:`${e.spacing(3)} ${e.spacing(3)} ${e.spacing(0)}`,fill:e.colors.primary,cursor:"pointer"}})),rgr=bue(function({tenantEmailDomain:e}){const{isAiCfoOpen:n,setIsAiCfoOpen:o}=bU(),[i,a]=T.useState(!1),[s,c]=g.useState(!1),d=$p(),u=WF(),p=aI(),h=lce(),m=Ug(),[f,x]=g.useState(!1),y=Te(),{useFeatureGate:b}=Es(),{isFeatureEnabled:w}=b(Ui.isDebitCardFeatureEnabled),{isFeatureEnabled:C}=b(Ui.isExpenseAutomationEnabled),{isFeatureEnabled:v}=b(Ui.isExpenseAutomationEnabledV2),[$,k]=g.useState(()=>Ai.getSignedInUser());g.useEffect(()=>{const St=()=>{const kn=Ai.getSignedInUser();k(kn)};return window.addEventListener("completeProfileDone",St),()=>{window.removeEventListener("completeProfileDone",St)}},[]);const j=hi(St=>zu(St)),{setLoading:A}=wU(),E=n7t(),L=Q7($),I=v||C&&L,D=q2r(),[z,B]=g.useState(void 0),{isFeatureEnabled:N}=b(Ui.isDepositAccountsFeatureEnabled),{isFeatureEnabled:F}=b(Ui.isChargeCardFeatureEnabled),O=ogr(j,F,w),{isFeatureEnabled:V}=b(Ui.isSettingsFeatureEnabled),{isFeatureEnabled:_}=b(Ui.isReferralFeatureEnabled),{isFeatureEnabled:R}=b(Ui.isTreasuryEnabled),{isFeatureEnabled:W}=b(Ui.isTaskManagerCustomerUserAccessEnabled),Q=L||!L&&W,H=hi(St=>z9t(St));g.useEffect(()=>{const St=()=>{x(window.scrollY>10)};return window.addEventListener("scroll",St),()=>{window.removeEventListener("scroll",St)}},[]);const G=hi(St=>O9t(St)),J=hi(St=>St.expenseAutomationViewState.selectedPeriodByTenantId),Y=hi(St=>F9t(St)),{monthEndCloseChecksView:ne}=Y,oe=IA("/signout")!==null,te=IA("/:tenantEmailDomain/dashboard")!==null,K=IA("/:tenantEmailDomain/reports")!==null,ie=IA("/:tenantEmailDomain/onboarding/*")!==null,le=egr();g.useEffect(()=>{D&&_&&!ie&&G.fetchState==="Not-Started"&&m(R9t(!0))},[D,_,G.fetchState,ie]),g.useEffect(()=>{if(le){const St=d.state?.origin;if(St!=null){const kn=N9t(St);m(que(kn))}}},[le,d.state]),g.useEffect(()=>{const St=J[j.tenantId];St!=null&&ne.fetchState!=="In-Progress"&&ne.fetchState!=="Completed"&&m(V9t({tenantId:j.tenantId,period:St,refreshViewInBackground:!1}))},[J,ne.fetchState,j.tenantId]);const pe=oe||ie,we=hi(St=>St.tenantState),he=hi(St=>we.fetchState==="Completed"?WYe(St):[]),{isFeatureEnabled:ce}=b(Ui.isApAgingFeatureEnabled),{isFeatureEnabled:ge}=b(Ui.isArAgingFeatureEnabled),{isFeatureEnabled:ae}=b(Ui.isDashboardSidebarHalloweenAnimationEnabled),{isFeatureEnabled:de}=b(Ui.isDashboardSidebarThanksGivingAnimationEnabled),{isFeatureEnabled:fe}=b(Ui.isDashboardSidebarChristmasAnimationEnabled),{isFeatureEnabled:me}=b(Ui.isDashboardSidebarNewYearAnimationEnabled),be=hi(St=>mb(St).totalUnreadCount),xe=hi(St=>mb(St).notificationDetailsByTab.tasks.uiState.unreadCount),Ce=hi(St=>mb(St).notificationDetailsByTab.comments.uiState.unreadCount),$e=hi(St=>mb(St).reducedFetchCountState),ke=hi(St=>mb(St).notificationDetailsByTab.tasks.fetchCountState),Ee=hi(St=>eR(St)),[je,ze]=g.useState(void 0),He=Ee.uiState.currentChatSessionId,ve=je!=null?Ee.deleteChatSessionStateByChatSessionId[je]?.fetchState:void 0,Ie=It(ve),{inboxNotifications:Ae,isLoading:Ne,isFetchingMore:Ye,hasFetchedAll:Ze,fetchMore:kt}=K2r(),xt=hi(St=>mb(St).notificationDetailsByTab.comments.fetchCountState);g.useEffect(()=>{const St=setTimeout(()=>kt?.(),0);return()=>clearTimeout(St)}),g.useEffect(()=>{if(je!=null)return Ie==="In-Progress"&&ve==="Completed"?(m(Kue({chatSessionId:je})),ze(void 0),void u(`/${e}/ai-cfo/explore`,{state:{...d.state,referrer:"Sidebar"}})):void(ve==="Error"&&(m(Kue({chatSessionId:je})),ze(void 0)))},[m,d.state,u,ve,je,Ie,e]),g.useEffect(()=>{if(Ne===!1&&Ye===!1&&Ze===!0&&j?.companyId!=null&&Ae!=null){const St=`dashboard_${j.companyId}`;B(Ae.filter(kn=>kn.roomId===St&&kn.readAt==null).length)}},[Ne,Ye,Ze,j?.companyId,Ae]),g.useEffect(()=>{D&&L&&!ie&&ke.fetchState==="Not-Started"&&p.tenantId!=null&&m(H9t("task_manager","dashboard"))},[D,p.tenantId]),g.useEffect(()=>{ie||xt.fetchState!=="Not-Started"||m(Zue({fetchCountState:{fetchState:"In-Progress",error:void 0}},"comments"))},[]),g.useEffect(()=>{if(z!=null){const{fetchState:St}=xt;St!=="In-Progress"&&St!=="Completed"||(St==="In-Progress"&&m(Zue({fetchCountState:{fetchState:"Completed",error:void 0}},"comments")),m(UYe({unreadCount:z},"comments")))}},[z,xt.fetchState]);const ct={fetchStatus:$e,count:be},ft=[];ce===!1&&ft.push("accounts_payable_aging"),ge===!1&&ft.push("accounts_receivable_aging"),N===!1&&ft.push("zeni_accounts_promo_card"),_===!1&&ft.push("rewards_card"),I===!1&&ft.push("expense_automation_card");const $t=un(),Wt=hi(St=>U9t(St,ft,$,v,C,R).fetchState),it=hi(St=>W9t(St).fetchState),Vt=e!=null?Ai.getSignedInUserTenant(e):null,Lt=hi(St=>Vt?.tenantId!=null?QYe(St,Vt.tenantId):void 0),Mt=te&&(Wt==="Completed"||Wt==="Error")||K&&(it==="Completed"||it==="Error")||!te&&!K?void 0:"disabled",Xt=g.useMemo(()=>GYe(j.userRole),[j.userRole]),ht=mYe(Xt),tn=St=>{a(St)},sn=j.company!=null&&Q9t(j.company),Ot=R&&sn,Yt=gYe($t?.loggedInUserRoleMap),xn=j.companyTreasuryInfo?.info?.isTreasuryTOSAccepted,jt=hi(St=>St.treasurySetupViewState.treasuryFundsDetails),Gt=g.useCallback(()=>Ot&&Yt&&jt?.fetchStatus.fetchState==="Completed"&&!Ai.getTreasuryPopupSeen(e??"")&&xn===!1&&pae(d.pathname)!=="treasury",[Ot,Yt,xn,d.pathname,e,jt?.fetchStatus]),[fn,rn]=g.useState(Gt);g.useEffect(()=>{D&&Ot&&jt?.fetchStatus.fetchState==="Not-Started"&&m(G9t())},[D,Ot,jt?.fetchStatus.fetchState]),g.useEffect(()=>{rn(Gt())},[Gt]);const zt=ngr(jt.fundsDetails),On=j?.rewardsLastViewedTime==null,Hn=$?.userEmail!=null&&H.fetchState==="Completed"&&Y9t(H.notificationSettings,$.userEmail,w,j),Rn=g.useCallback(St=>{const kn=d.state?.referrer;if(ne.monthEndCloseChecks?.auditSummary!=null&&Fh.trackMonthCloseAuditPage(St.month,St.year,ne.monthEndCloseChecks.reportEmailSentDate!=null?"closed":"in-review",ne.monthEndCloseChecks.auditSummary.auditScorePercentage,!1,kn??null),m(q9t(j.tenantId,St)),J[j.tenantId]!=null){const qn=$f(d.state?.pathnameStackToGoBack,d.pathname);u(`/${e}/month_end_close_checks/review/${Y.currentSelectedView}/${St.month}-${St.year}`,{state:{pathnameStackToGoBack:qn,referrer:Y.currentSelectedView}})}m(que(Y.currentSelectedView)),Y.reconciliation.selectedAccountId!=null&&m(K9t({selectedAccountId:void 0}))},[Y.reconciliation.selectedAccountId,Y.currentSelectedView,j.tenantId,ne.monthEndCloseChecks?.auditSummary,ne.monthEndCloseChecks?.reportEmailSentDate,J,e,d.state,d.pathname]),Qo=g.useMemo(()=>({zIndex:s||fn?12:S[2]}),[s,fn]),Bo=E&&X2r(d),Un=Bt.jsx(PJn,{signedInUser:$,currentTenantId:we.currentTenantId??"",tenants:we.fetchState==="Completed"?he:Lt!=null?[Lt]:[],rewardsConfiguration:{isRewardsTabVisible:_,isRewardsAnimated:On,rewardsPlan:G.rewardsPlan},selectedMenu:n===!0?Tlt("ai_cfo"):MGe(d),isTenantDropdownDisabled:Mt,isSettings:J2r(d),isSettingsFeatureEnabled:V,currentTenant:j,isVendorsTabVisible:ht,isZeniAccountEnabled:N,isChargeCardEnabled:O,isTreasuryEnabled:Ot,isTreasuryPopupVisible:fn,treasuryYieldPercentage:zt,isNotificationsTabVisible:Hn,notificationCountDetails:ct,isExpenseAutomationEnabledForUser:I&&Na(j.userRole)===!1,isAiCfoAccessEnabled:E,onNotificationIconClick:()=>{tn(!1);const St=L?xe===0&&Ce>0?"notifications/comments":"notifications/tasks":"notifications/comments",kn=$f(d.state?.pathnameStackToGoBack,d.pathname);u(`${e}/${St}`,{state:{pathnameStackToGoBack:kn}})},onZeniLogoClick:()=>{h.toggle()},handleTenantSelect:St=>{A(hue.TENANT_SWITCHING),tn(!1);const kn=St.tenantEmailDomain,qn=MGe(d),pn=qn;let An="";const go=$O(pn);qn==="home"?An+="dashboard":qn==="users_and_roles"?An+="people":uae(qn)?An+="settings/my_profile":B_(qn)?An+=`ai-cfo/${qn}`:An+=pn==="task_checklist"?"tasks":go?"month_end_close_checks/review":encodeURIComponent(qn);const Jn=`/${encodeURIComponent(kn)}/${An}`;u(Jn,{replace:!0}),$!=null&&(m(Eae(St.tenantId)),m(YYe($.userId,St.tenantId,$.zeniSessionId)));const Mo=St;Fh.trackCompanySwitch(Mo.companyId,Mo.companyName,Mo.userRole)},handleMenuChange:(St,kn)=>{if($!=null&&Fh.trackSidePanelClicked(St.type,St.group),tn(!1),n&&(Jn=>{if(uae(Jn)||B_(Jn))return!0;const Mo=PGe(Jn).split("/")[0];return!Z2r.includes(Mo)})(St.type)&&o(!1),St.type==="ai_cfo"){Fh.trackAICFOChatScreenStateChanged("viewed","left_menu",He??null,null);const Jn=$f(d.state?.pathnameStackToGoBack,d.pathname);return void u(`/${e}/ai-cfo/explore`,{state:{pathnameStackToGoBack:Jn,referrer:"Sidebar"}})}const qn=$f(d.state?.pathnameStackToGoBack,d.pathname),pn=St.type,An=$O(pn)&&pn!=="command_center";if(pn!=="command_center"&&!An||J[j.tenantId]==null||Fh.trackMonthEndCloseClicked(J[j.tenantId].month,J[j.tenantId].year,"Sidebar"),An&&J[j.tenantId]!=null){const Jn=J[j.tenantId];return void u(`/${e}/month_end_close_checks/review/${St.type}/${Jn.month}-${Jn.year}`,{state:{pathnameStackToGoBack:qn,message:kn,referrer:"Sidebar"}})}const go=PGe(St.type);B_(St.type)?(He!=null&&m(__()),u(`/${e}/ai-cfo/${St.type}`,{state:{pathnameStackToGoBack:qn.slice(0,-1),message:kn,referrer:"Sidebar"}})):u(`../${e}/${go}`,{state:{pathnameStackToGoBack:qn,message:kn,referrer:"Sidebar"}})},onDeleteChatSession:St=>{m(Z9t(St)),He===St&&ze(St)},handleLogOutClick:()=>{tn(!1);const St=$f(d.state?.pathnameStackToGoBack,d.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:St,message:"logout"}})},handleMyProfileClick:()=>{u(`${e}/settings/my_profile`)},handleReferralsClick:()=>{u(`${e}/rewards`)},handleBackClick:()=>{u(`${e}/dashboard`)},handleCockpitClick:()=>{window.open("/cockpit")},handlePopupClose:()=>{Ai.saveTreasuryPopupSeen(e??"",!0),rn(!1)},monthEndCloseChecksView:ne,onPeriodChange:Rn,onCalendarOpen:c,aiCfoView:Ee,isAiCfo:Bo,isOnDashboard:te,isTaskManagerAccessEnabled:Q,updateCurrentChatSessionId:St=>{m(jae({sessionId:St,agentId:"controller"})),u(`../${e}/ai-cfo/${St}`,{state:{...d.state}})},halloweenAnimationEnabled:ae,thanksGivingAnimationEnabled:de,christmasAnimationEnabled:fe,newYearAnimationEnabled:me}),an=Bt.jsx($8t,{position:"fixed",className:dm.appBar,style:{borderBottom:f?`1px solid ${y.colors.grey2}`:""},children:Bt.jsxs(k8t,{style:{minHeight:Alt},children:[Bt.jsx(A8t,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:()=>tn(!0),className:dm.menuButton,size:"large",children:Bt.jsx(agr,{})}),Bt.jsx(lgr,{className:dm.appBarZenilogo,onClick:()=>{h.toggle()}})]})}),mo=mte(St=>St.breakpoints.up("md")),Co=mte(St=>St.breakpoints.down("md"));return e==null?null:Bt.jsxs(igr,{className:dm.root,children:[Bt.jsx(j8t,{}),pe===!1?Bt.jsxs(Bt.Fragment,{children:[mo||!te?null:an,Bt.jsxs("nav",{className:dm.drawer,children:[mo?null:Bt.jsx(z_,{container:window.document.body,variant:"temporary",open:i,onClose:()=>tn(!1),PaperProps:{sx:{width:oI,zIndex:S[2],borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background}},ModalProps:{keepMounted:!0},children:Un}),Co?null:Bt.jsx(z_,{PaperProps:{sx:{width:oI,borderRight:"none",backgroundImage:"none",backgroundColor:y.colors.background,...Qo}},variant:"permanent",open:!0,children:Un})]})]}):null]})});function _Ge(e){return e?.data.unread!=null&&e?.mode!=null}const agr=Fn(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"})))`
|
|
71509
71509
|
height: 20px;
|
|
71510
71510
|
width: 20px;
|
|
71511
71511
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -71602,7 +71602,7 @@ ${ba.beneficiaryAddress} ${ne}`,d(we),I(!0)})(o),"data-testid":q("title-text-cop
|
|
|
71602
71602
|
display: flex;
|
|
71603
71603
|
min-height: 100%;
|
|
71604
71604
|
flex-direction: column;
|
|
71605
|
-
`,Tgr=()=>{const[e,n]=g.useState(()=>Ai.getSignedInUser()),o=Ug(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=hi(m=>qYe(m).fetchState),u=hi(m=>zu(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=Ai.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(h8t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Bt.jsxs(g.Fragment,{children:[s&&Bt.jsx(Ace,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Bt.jsx(Igr,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},zGe="init-enter",Dgr=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||zGe);Pgr(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||zGe,c=Bgr();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),Pgr=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),Bgr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a7t=g.createContext(void 0),Mgr=({children:e})=>{const{tenantEmailDomain:n}=N7t(),o=n!=null?Ai.getSignedInUserTenant(n):void 0,i=hi(u=>zu(u)),a=aI().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Bt.jsx(a7t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},T5r=()=>{const e=g.useContext(a7t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},T2=e=>g.lazy(async()=>{const n=e.toString(),o=Ai.getForceRefreshedComponents(),i=new Set(o),a=Ai.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&Ai.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&Ai.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),l7t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),s7t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),c7t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),d7t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Il(...e){const n=yc==="DEV"||yc==="QA";if(l7t||s7t||c7t||d7t)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 Tv(...e){const n=yc==="DEV"||yc==="QA";if(l7t||s7t||c7t||d7t)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 rC=null,EA=!1;const Kl=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function OGe(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:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const _gr={dashboard:function(e){return[...OGe()]},reports:OGe,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:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Kl}/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:`${Kl}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Kl}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Kl}/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:`${Kl}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Kl}/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:`${Kl}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Kl}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Kl}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Kl}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function FGe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,_gr[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Il(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Il(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Il(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Il(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function RGe(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?(Il("[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 Tv("[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);Il("[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)=>{Il(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Il(` URL: ${u.url}`)});const c=aI(),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}}),Il("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){Tv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Tv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function zgr({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=$p(),$=Ai.getSignedInUser(),{useFeatureGate:k}=Es(),{isFeatureEnabled:j}=k(Ui.isReferralFeatureEnabled),A=un(),E=l7(A?.loggedInUserRole??[]),L=hi(N=>zu(N)),{isFeatureEnabled:I}=k(Ui.isDebitCardFeatureEnabled),D=HYe(I,L),z=VYe(L),B=D===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const N=FGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L?.companyId??"",isPageIndependent:m}),F=m?"dashboard":n;if(N.length===0)return void Il(`[Prefetch Provider - ${F}${m?" (base)":""}] No URLs to prefetch`);Il(`[Prefetch Provider - ${F}${m?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch`);const O=setTimeout(()=>{RGe(N,i,a).catch(V=>{Tv(`[Prefetch Provider - ${F}${m?" (base)":""}] Prefetch failed:`,V)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,B,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;Il(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const N=function(F){const{timeout:O=2e3,onIdle:V}=F;Il(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const _=()=>{EA&&(Il("[Idle Detection - Service Worker] 🏃 User became active again"),EA=!1),rC&&clearTimeout(rC),rC=setTimeout(()=>{EA||(Il("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),EA=!0,V())},O)},R=["mousedown","mousemove","keypress","scroll","touchstart","click"];return R.forEach(W=>{document.addEventListener(W,_,!0)}),_(),()=>{Il("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),rC&&(clearTimeout(rC),rC=null),R.forEach(W=>{document.removeEventListener(W,_,!0)}),EA=!1}}({timeout:h,onIdle:()=>{if(b)return;Il("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const F=FGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;F.length!==0?(Il(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${F.length} URLs to prefetch on idle`),RGe(F,i,a).catch(V=>{Tv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,V)}),w(!0)):Il(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=N,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,B,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.useEffect(()=>{(function(){const N=performance.getEntriesByType("navigation");if(N.length>0)return N[0].type==="reload";const F=performance.navigation;return!(!F||typeof F.type!="number")&&F.type===1})()&&f&&(Il("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const N=await navigator.serviceWorker.ready,F=navigator.serviceWorker.controller||N.active;if(!F)return;Il("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),F.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(N){Tv("[Prefetch Provider] Failed to notify service worker of refresh:",N)}}())},[]),Bt.jsx(Bt.Fragment,{children:e})}function Ogr({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=$p(),u=hi(y=>zu(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(Ui.isServiceWorkerPrefetchingEnabled);return m&&p?Bt.jsx(zgr,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Bt.jsx(Bt.Fragment,{children:e})}function Fgr(e,n){const o=io.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const Rgr=T2(()=>E1(()=>import("./DefaultTenantHome-wOBWCdoB.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),NGe=T2(()=>E1(()=>Promise.resolve().then(()=>sgr),void 0)),VGe=T2(()=>E1(()=>import("./ScreenRoutes-CU85YNC5.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),Ngr=T2(()=>E1(()=>import("./ConnectionAuthScreen-m1ZrPmfY.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),Vgr=T2(()=>E1(()=>import("./SignInScreen-nIZ9894Z.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),Hgr=T2(()=>E1(()=>import("./MagicLinkSignInScreen-CiUBjUKX.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),HGe=T2(()=>E1(()=>import("./NotFoundScreen-CQPWWkLY.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),Ugr=T2(()=>E1(()=>import("./MagicLinkRoutes-Bnt1hH7o.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),Wgr=T2(()=>E1(()=>import("./WiseConfirmationScreen-BURwrNzz.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),Qgr=T2(()=>E1(()=>import("./CustomerOnboardingAuthScreen-C_ov5V1M.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),Ggr=T2(()=>E1(()=>import("./SignOutScreen-BBR56tjP.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),Ygr=()=>{const e=$p(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=Fgr("/",n);return Bt.jsx(iYe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function UGe(){const{isOpen:e}=Mse(),n=V3n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=bU(),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 qgr=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=$p(),i=Ai.isSignedIn(),a=hi(N=>zu(N)),s=Ai.getSignedInUser(),c=i&&Q7(s),d=hi(N=>m8t(N)).tenantsBaseInOrder.map(N=>({companyId:N.companyId,tenantId:N.tenantId,companyName:N.companyName})),u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:a.tenantId??""},p=Ug(),h=hs(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),m=hs(M5t)||sae(o.pathname),f=n7t(),[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(Ui.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=v(Ui.isBillPayCommentingEnabled),{isFeatureEnabled:j}=v(Ui.isReimbursementCommentingEnabled),{isFeatureEnabled:A}=v(Ui.isExpenseAutomationEnabled),{isFeatureEnabled:E}=v(Ui.isExpenseAutomationEnabledV2),{isFeatureEnabled:L}=v(Ui.isTreasuryCommentingEnabled),{isFeatureEnabled:I}=v(Ui.isCheckingCommentingEnabled),{isFeatureEnabled:D}=v(Ui.isTransactionCommentingEnabled),{isFeatureEnabled:z}=v(Ui.isCardsCommentingEnabled),B=k||j||c&&A||!c&&E||L||I||D||z;return g.useEffect(()=>{!m&&x&&y(!1)},[m,x]),g.useEffect(()=>{m||p(g8t())},[p,m]),Bt.jsx(N3n,{children:a.tenantId!=null?Bt.jsx($zi,{roomId:`dashboard_${a.companyId}`,authParams:u,users:[],companies:d,authUrlEndPoint:`${yS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${yS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:c,autoConnect:c||D||z,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:B,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:a.companyId},children:Bt.jsxs(lae.Provider,{value:C,children:[Bt.jsx(UGe,{}),Bt.jsxs(GGe,{children:[Bt.jsx(NGe,{tenantEmailDomain:e}),Bt.jsx(QGe,{children:Bt.jsx(WGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})}):Bt.jsx(Azi,{children:Bt.jsxs(lae.Provider,{value:C,children:[Bt.jsx(UGe,{}),Bt.jsxs(GGe,{children:[Bt.jsx(NGe,{tenantEmailDomain:e}),Bt.jsx(QGe,{children:Bt.jsx(WGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})})})},WGe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=hi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=Es(),{configValue:c}=s($2.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}=wU(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=bU();return g.useEffect(()=>{h(hue.APP_INITIALIZATION)},[h]),Bt.jsx(g.Suspense,{fallback:null,children:Bt.jsx(Ogr,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Bt.jsxs(V7t,{children:[Bt.jsx(Yp,{path:"/magic_links/*",element:Bt.jsx(Ugr,{})}),Bt.jsx(Yp,{path:"/wise/callback/link-account/*",element:Bt.jsx(Wgr,{})}),Bt.jsx(Yp,{path:"/page-not-found",element:Bt.jsx(HGe,{})}),Bt.jsx(Yp,{path:"/",element:Bt.jsx(Rgr,{})}),Bt.jsx(Yp,{path:"/aicfo",element:Bt.jsx(Ygr,{})}),Bt.jsx(Yp,{path:"/onboarding/auth",element:Bt.jsx(Qgr,{})}),Bt.jsx(Yp,{path:"/:tenantEmailDomain/*",element:Bt.jsxs(Jgr,{children:[Bt.jsx(Xgr,{children:Bt.jsxs(Mgr,{children:[a!=null?Bt.jsx(Tgr,{}):null,n?Bt.jsx(VGe,{setTenantEmailDomain:e}):Bt.jsx(lte,{children:Bt.jsx(VGe,{setTenantEmailDomain:e})})]})}),o?Bt.jsx(e3r,{isOpen:m,children:Bt.jsx(Cgr,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Bt.jsx(Yp,{path:"/signin/auth",element:Bt.jsx(lte,{children:Bt.jsx(Vgr,{setTenantEmailDomain:e})})}),Bt.jsx(Yp,{path:"/signin/magic-link",element:Bt.jsx(lte,{children:Bt.jsx(Hgr,{})})}),Bt.jsx(Yp,{path:"/signout",element:Bt.jsx(Ggr,{})}),Bt.jsx(Yp,{path:"/connection/auth",element:Bt.jsx(Ngr,{})}),Bt.jsx(Yp,{path:"*",element:Bt.jsx(HGe,{})})]})})})},QGe=({children:e})=>{const{isOpen:n,width:o}=Mse();return Bt.jsx(Zgr,{commentsDrawerWidth:n?o:0,children:e})},Kgr=Fn("div")`
|
|
71605
|
+
`,Tgr=()=>{const[e,n]=g.useState(()=>Ai.getSignedInUser()),o=Ug(),[i,a]=g.useState(!1),[s,c]=g.useState(!1),d=hi(m=>qYe(m).fetchState),u=hi(m=>zu(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=Ai.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(h8t(u.companyId))},[d,u.companyId,o]);const h=g.useMemo(()=>!!e?.firstName&&!e?.phoneNumber,[e]);return Bt.jsxs(g.Fragment,{children:[s&&Bt.jsx(Ace,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Bt.jsx(Igr,{userEmail:e.userEmail,isCompleteProfileOpen:i,closeDrawerHandler:()=>{a(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},zGe="init-enter",Dgr=g.memo(function({location:e,visitedUrl:n}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=n.get(o||zGe);Pgr(i!==void 0?i:0)}),null},(e,n)=>{const{location:o,visitedUrl:i}=e,{location:a}=n,s=o.pathname||zGe,c=Bgr();return i.set(s,c),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),Pgr=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),Bgr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},a7t=g.createContext(void 0),Mgr=({children:e})=>{const{tenantEmailDomain:n}=N7t(),o=n!=null?Ai.getSignedInUserTenant(n):void 0,i=hi(u=>zu(u)),a=aI().tenantId,s=o?.tenantId,c=i?.tenantId,d=g.useMemo(()=>s!=null&&s===c&&c===a,[s,c,a]);return Bt.jsx(a7t.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:s,currentTenantId:c,tenantIdFromConfig:a},children:e})},T5r=()=>{const e=g.useContext(a7t);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e},T2=e=>g.lazy(async()=>{const n=e.toString(),o=Ai.getForceRefreshedComponents(),i=new Set(o),a=Ai.isSignedIn(),s=i.has(n);try{const c=await e();return i.delete(n),a&&Ai.saveForceRefreshedComponents(Array.from(i)),c}catch(c){throw s||(i.add(n),a&&Ai.saveForceRefreshedComponents(Array.from(i)),location.reload()),c}}),l7t=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),s7t=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),c7t=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),d7t=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Il(...e){const n=yc==="DEV"||yc==="QA";if(l7t||s7t||c7t||d7t)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 Tv(...e){const n=yc==="DEV"||yc==="QA";if(l7t||s7t||c7t||d7t)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 rC=null,EA=!1;const Kl=yc==="PROD"?"https://api.zeni.ai":yc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function OGe(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:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/balance_sheet?query=${a}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Kl}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const _gr={dashboard:function(e){return[...OGe()]},reports:OGe,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:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Kl}/accounting/2.0/reports/profit_and_loss?query=${o}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Kl}/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:`${Kl}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Kl}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Kl}/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:`${Kl}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Kl}/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:`${Kl}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Kl}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Kl}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Kl}/tenant/1.0/companies/${o}?query=${i}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function FGe(e){const{currentPage:n,isRewardsFeatureEnabled:o,isPeopleTabVisible:i,isReportsPageVisible:a,isPageIndependent:s=!1}=e,c=(0,_gr[s?"dashboard":n])(e),d=c.filter(u=>o===!1&&u.reason.includes("Rewards")?(Il(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):i===!1&&u.reason.includes("People")?(Il(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):a!==!1||!u.reason.includes("Reports")||(Il(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1));return Il(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function RGe(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?(Il("[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 Tv("[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);Il("[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)=>{Il(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Il(` URL: ${u.url}`)});const c=aI(),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}}),Il("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(i){Tv("[Prefetch Manager - Service Worker] Failed to send prefetch request:",i instanceof Error?i.message:"Unknown error")}else Tv("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function zgr({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=$p(),$=Ai.getSignedInUser(),{useFeatureGate:k}=Es(),{isFeatureEnabled:j}=k(Ui.isReferralFeatureEnabled),A=un(),E=l7(A?.loggedInUserRole??[]),L=hi(N=>zu(N)),{isFeatureEnabled:I}=k(Ui.isDebitCardFeatureEnabled),D=HYe(I,L),z=VYe(L),B=D===!1&&z===!1;return g.useEffect(()=>{if(!c||x||!$||!o)return;const N=FGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L?.companyId??"",isPageIndependent:m}),F=m?"dashboard":n;if(N.length===0)return void Il(`[Prefetch Provider - ${F}${m?" (base)":""}] No URLs to prefetch`);Il(`[Prefetch Provider - ${F}${m?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch`);const O=setTimeout(()=>{RGe(N,i,a).catch(V=>{Tv(`[Prefetch Provider - ${F}${m?" (base)":""}] Prefetch failed:`,V)}),y(!0)},s);return()=>clearTimeout(O)},[c,x,$,o,n,u,p,j,E,B,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;Il(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const N=function(F){const{timeout:O=2e3,onIdle:V}=F;Il(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${O}ms)`);const _=()=>{EA&&(Il("[Idle Detection - Service Worker] 🏃 User became active again"),EA=!1),rC&&clearTimeout(rC),rC=setTimeout(()=>{EA||(Il("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),EA=!0,V())},O)},R=["mousedown","mousemove","keypress","scroll","touchstart","click"];return R.forEach(W=>{document.addEventListener(W,_,!0)}),_(),()=>{Il("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),rC&&(clearTimeout(rC),rC=null),R.forEach(W=>{document.removeEventListener(W,_,!0)}),EA=!1}}({timeout:h,onIdle:()=>{if(b)return;Il("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const F=FGe({currentPage:n,userId:$.userId,tenantId:o,sessionId:$.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:j,isPeopleTabVisible:E,isReportsPageVisible:B,companyId:L.companyId,isPageIndependent:m,isIdleCallEnabled:!0}),O=m?"dashboard":n;F.length!==0?(Il(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] 📦 Generated ${F.length} URLs to prefetch on idle`),RGe(F,i,a).catch(V=>{Tv(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] Idle prefetch failed:`,V)}),w(!0)):Il(`[Prefetch Provider - Idle - ${O}${m?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=N,()=>{C.current&&(C.current(),C.current=null)}},[c,d,h,$,o,b,n,u,p,j,E,B,L.companyId,m,i,a]),g.useEffect(()=>{w(!1)},[o]),g.useEffect(()=>{(function(){const N=performance.getEntriesByType("navigation");if(N.length>0)return N[0].type==="reload";const F=performance.navigation;return!(!F||typeof F.type!="number")&&F.type===1})()&&f&&(Il("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),async function(){if("serviceWorker"in navigator)try{const N=await navigator.serviceWorker.ready,F=navigator.serviceWorker.controller||N.active;if(!F)return;Il("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),F.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(N){Tv("[Prefetch Provider] Failed to notify service worker of refresh:",N)}}())},[]),Bt.jsx(Bt.Fragment,{children:e})}function Ogr({children:e,isPageIndependent:n=!1,batchCalls:o=0,enableIdlePrefetch:i=!1,expirationTime:a,idleTimeout:s=2e3,isRefreshTriggerEnabled:c=!1}){const d=$p(),u=hi(y=>zu(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(Ui.isServiceWorkerPrefetchingEnabled);return m&&p?Bt.jsx(zgr,{currentPage:p,tenantId:m,delay:5e3,enabled:x,batchCalls:o,enableIdlePrefetch:i,expirationTime:a,idleTimeout:s,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Bt.jsx(Bt.Fragment,{children:e})}function Fgr(e,n){const o=io.extractUtmParamsFromUrl(n),i=new URLSearchParams(o).toString();if(!i)return e;const a=e.includes("?")?"&":"?";return`${e}${a}${i}`}const Rgr=T2(()=>E1(()=>import("./DefaultTenantHome-CnzNhAiZ.js"),__vite__mapDeps([4,1,2,0,5,6,7,8]))),NGe=T2(()=>E1(()=>Promise.resolve().then(()=>sgr),void 0)),VGe=T2(()=>E1(()=>import("./ScreenRoutes-SJ48oAtS.js"),__vite__mapDeps([9,0,1,2,5,10,6,7,8]))),Ngr=T2(()=>E1(()=>import("./ConnectionAuthScreen-ZhxPdXaU.js"),__vite__mapDeps([11,1,2,0,5,6,12,8,13,14,15,16,17,7]))),Vgr=T2(()=>E1(()=>import("./SignInScreen-DjIBZSAO.js"),__vite__mapDeps([18,1,2,0,5,19,10,6,7,8]))),Hgr=T2(()=>E1(()=>import("./MagicLinkSignInScreen-Cb8la_Xu.js"),__vite__mapDeps([20,1,2,0,5,19,10,6,7,8]))),HGe=T2(()=>E1(()=>import("./NotFoundScreen-D1ntYwuX.js"),__vite__mapDeps([21,1,2,0,5,7,8]))),Ugr=T2(()=>E1(()=>import("./MagicLinkRoutes-DBuQgUiO.js"),__vite__mapDeps([22,1,2,0,5,21,7,8]))),Wgr=T2(()=>E1(()=>import("./WiseConfirmationScreen-CvjWmLcA.js"),__vite__mapDeps([23,1,2,0,5,7,8]))),Qgr=T2(()=>E1(()=>import("./CustomerOnboardingAuthScreen-Cuf2yUew.js"),__vite__mapDeps([24,1,2,0,12,8,13,14,15,16,5,17,7]))),Ggr=T2(()=>E1(()=>import("./SignOutScreen-CAS08fDR.js"),__vite__mapDeps([25,1,2,0,5,7,8]))),Ygr=()=>{const e=$p(),n=new URLSearchParams(e.search),o=n.get("question"),i=o?.replace(/^["']|["']$/g,"")??null,a=n.get("should_submit")==="true",s=Fgr("/",n);return Bt.jsx(iYe,{to:s,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:i,aiCfoShouldSubmit:a?"true":"false"}}})};function UGe(){const{isOpen:e}=Mse(),n=V3n(),{isAiCfoOpen:o,setIsAiCfoOpen:i}=bU(),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 qgr=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const o=$p(),i=Ai.isSignedIn(),a=hi(N=>zu(N)),s=Ai.getSignedInUser(),c=i&&Q7(s),d=hi(N=>m8t(N)).tenantsBaseInOrder.map(N=>({companyId:N.companyId,tenantId:N.tenantId,companyName:N.companyName})),u={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:a.tenantId??""},p=Ug(),h=hs(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),m=hs(M5t)||sae(o.pathname),f=n7t(),[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(Ui.isAiCfoFileUploadEnabled),{isFeatureEnabled:k}=v(Ui.isBillPayCommentingEnabled),{isFeatureEnabled:j}=v(Ui.isReimbursementCommentingEnabled),{isFeatureEnabled:A}=v(Ui.isExpenseAutomationEnabled),{isFeatureEnabled:E}=v(Ui.isExpenseAutomationEnabledV2),{isFeatureEnabled:L}=v(Ui.isTreasuryCommentingEnabled),{isFeatureEnabled:I}=v(Ui.isCheckingCommentingEnabled),{isFeatureEnabled:D}=v(Ui.isTransactionCommentingEnabled),{isFeatureEnabled:z}=v(Ui.isCardsCommentingEnabled),B=k||j||c&&A||!c&&E||L||I||D||z;return g.useEffect(()=>{!m&&x&&y(!1)},[m,x]),g.useEffect(()=>{m||p(g8t())},[p,m]),Bt.jsx(N3n,{children:a.tenantId!=null?Bt.jsx($zi,{roomId:`dashboard_${a.companyId}`,authParams:u,users:[],companies:d,authUrlEndPoint:`${yS.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${yS.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:c,autoConnect:c||D||z,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:B,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:a.companyId},children:Bt.jsxs(lae.Provider,{value:C,children:[Bt.jsx(UGe,{}),Bt.jsxs(GGe,{children:[Bt.jsx(NGe,{tenantEmailDomain:e}),Bt.jsx(QGe,{children:Bt.jsx(WGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})}):Bt.jsx(Azi,{children:Bt.jsxs(lae.Provider,{value:C,children:[Bt.jsx(UGe,{}),Bt.jsxs(GGe,{children:[Bt.jsx(NGe,{tenantEmailDomain:e}),Bt.jsx(QGe,{children:Bt.jsx(WGe,{setTenantEmailDomain:n,isOnDashboard:h,userHasZeniAiCfoAccess:f,isAiCfoFileUploadEnabled:$})})]})]})})})},WGe=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:o,isAiCfoFileUploadEnabled:i})=>{const a=hi(x=>x.tenantState.loggedInUser),{useDynamicConfig:s}=Es(),{configValue:c}=s($2.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}=wU(),{isAiCfoOpen:m,setIsAiCfoOpen:f}=bU();return g.useEffect(()=>{h(hue.APP_INITIALIZATION)},[h]),Bt.jsx(g.Suspense,{fallback:null,children:Bt.jsx(Ogr,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Bt.jsxs(V7t,{children:[Bt.jsx(Yp,{path:"/magic_links/*",element:Bt.jsx(Ugr,{})}),Bt.jsx(Yp,{path:"/wise/callback/link-account/*",element:Bt.jsx(Wgr,{})}),Bt.jsx(Yp,{path:"/page-not-found",element:Bt.jsx(HGe,{})}),Bt.jsx(Yp,{path:"/",element:Bt.jsx(Rgr,{})}),Bt.jsx(Yp,{path:"/aicfo",element:Bt.jsx(Ygr,{})}),Bt.jsx(Yp,{path:"/onboarding/auth",element:Bt.jsx(Qgr,{})}),Bt.jsx(Yp,{path:"/:tenantEmailDomain/*",element:Bt.jsxs(Jgr,{children:[Bt.jsx(Xgr,{children:Bt.jsxs(Mgr,{children:[a!=null?Bt.jsx(Tgr,{}):null,n?Bt.jsx(VGe,{setTenantEmailDomain:e}):Bt.jsx(lte,{children:Bt.jsx(VGe,{setTenantEmailDomain:e})})]})}),o?Bt.jsx(e3r,{isOpen:m,children:Bt.jsx(Cgr,{isOpen:m,onClose:()=>f(!1),isFileUploadEnabled:i})}):null]})}),Bt.jsx(Yp,{path:"/signin/auth",element:Bt.jsx(lte,{children:Bt.jsx(Vgr,{setTenantEmailDomain:e})})}),Bt.jsx(Yp,{path:"/signin/magic-link",element:Bt.jsx(lte,{children:Bt.jsx(Hgr,{})})}),Bt.jsx(Yp,{path:"/signout",element:Bt.jsx(Ggr,{})}),Bt.jsx(Yp,{path:"/connection/auth",element:Bt.jsx(Ngr,{})}),Bt.jsx(Yp,{path:"*",element:Bt.jsx(HGe,{})})]})})})},QGe=({children:e})=>{const{isOpen:n,width:o}=Mse();return Bt.jsx(Zgr,{commentsDrawerWidth:n?o:0,children:e})},Kgr=Fn("div")`
|
|
71606
71606
|
display:flex;
|
|
71607
71607
|
`,GGe=Fn("div")`
|
|
71608
71608
|
display: flex;
|
|
@@ -71724,4 +71724,4 @@ ${ba.beneficiaryAddress} ${ne}`,d(we),I(!0)})(o),"data-testid":q("title-text-cop
|
|
|
71724
71724
|
}
|
|
71725
71725
|
`,s3r=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?Bt.jsxs(o3r,{style:n,children:[Bt.jsxs(i3r,{children:[Bt.jsx(wM,{children:Bt.jsx(ah,{width:96,height:20})}),Bt.jsxs(wM,{children:[Bt.jsx(ah,{width:55,height:12}),Bt.jsx(ah,{width:78,height:16}),Bt.jsx(ah,{width:46,height:16})]}),Bt.jsxs(wM,{children:[Bt.jsx(ah,{width:55,height:12}),Bt.jsx(ah,{width:110,height:16}),Bt.jsx(ah,{width:84,height:16})]}),Bt.jsxs(wM,{children:[Bt.jsx(ah,{width:55,height:12}),Bt.jsx(ah,{width:84,height:16}),Bt.jsx(ah,{width:64,height:16})]})]}),Bt.jsxs(r3r,{children:[Bt.jsxs(a3r,{children:[Bt.jsx(ah,{width:106,height:27}),Bt.jsx(ah,{width:111,height:32})]}),Bt.jsx(l3r,{children:Bt.jsx(n3r,{width:96,height:96})})]})]}):null;function c3r({minDisplayTime:e=0}){const{isLoading:n}=wU(),[o,i]=g.useState(!1),a=g.useRef(),s=g.useRef(null);return g.useLayoutEffect(()=>{if(a.current&&clearTimeout(a.current),Ai.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)o||(i(!0),s.current=Date.now());else if(!n&&o){document.querySelector("#app-shell-loader")?.remove();const c=s.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);a.current=setTimeout(()=>{i(!1),s.current=null},u)}else i(!1)}},[n,o,e]),g.useEffect(()=>()=>{a.current&&clearTimeout(a.current)},[]),!n&&o||!o?null:Bt.jsx(s3r,{fetchState:"In-Progress"})}const YGe="missing-receipts-batch-completed",D8=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)}}};ee.updateAppLocaleID("en");let kC=null;function d3r(){return kC===null&&(kC=function(){console.warn(`initializing epic state with url ${JSON.stringify(yS)}`);const e=Ai.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=Ai.getSignedInUserTenant(a);if(d?.tenantId!=null)return d.tenantId}return Ai.getActiveTenantForUser()?.tenantId}():void 0,o=y8t(yS,e?.userId,e?.zeniSessionId,n,Lv(),m3r);hte();const i=aI();return i.userId!=null&&Fh.identify(i.userId,{tenant_id:i.tenantId}),o}(),hte().then(()=>{kC!=null&&(D8.reset(),h3r(kC))}).catch(e=>{console.error("Failed to load feature epics:",e),S7t(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
71726
71726
|
|
|
71727
|
-
Please refresh the page to try again.`)})),kC}function P5r(){return kC}const qGe=()=>{const e=Ug(),n=Ai.getSignedInUser(),o=hi(f=>zu(f)),i=hi(f=>C8t(f,o.companyId)),a=hs(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),s=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];g.useEffect(()=>()=>{e(Xue())},[]);const c=hi(f=>v8t(f));(()=>{const f=yue(),x=Ug(),{useFeatureGate:y}=Es(),{isFeatureEnabled:b}=y(Ui.isMissingReceiptsBulkUploadEnabled);g.useEffect(()=>{if(b!==!0||f==null)return;const w=Ai.getSignedInUser()?.userId;if(w==null)return;const C=Kj(f,w),v=$=>{x(f8t({batchId:$.batch_id,progress:$.progress,status:$.status.toLowerCase()}))};return C.bind(YGe,v),()=>{C.unbind(YGe,v)}},[f,x,b])})();const d=o?.externalConnections?.accounting[0]?.connectionName,u=g.useMemo(()=>GYe(o.userRole),[o.userRole]),p={events:o.userRoleId!=null?[`private-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(f,x)=>{var y;y=x,y?.data!=null&&e(S8t(x))}},h=g.useMemo(()=>Ai.getSignedInUser(),[]),m=g.useMemo(()=>({userId:h?.userId??"",sessionId:h?.zeniSessionId??"",tenantId:o.tenantId??""}),[h,o.tenantId]);return Bt.jsx(Tsn,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:s,loggedInUserRoleMap:u,currentTenant:o,connectionName:d,controllersList:i},children:Bt.jsx(Ssn,{toolkit:{analytics:Fh,sentry:$7t,authParams:m},children:Bt.jsxs(Vln,{endPoint:{url:uue},children:[Bt.jsx(hJo,{showSnackbar:c.isSnackbarOpen,snackbar:{message:c.message,messageType:c.messageType,onRemoveSnackbar:()=>{e(Xue())},showStatusIcon:c.showStatusIcon},isOnDashboard:a}),Bt.jsx(t3r,{...p})]})})})},u3r=()=>{const e=Ai.isSignedIn(),n=hi(s=>zu(s)).companyId,o=hi(s=>x8t(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=g.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=g.useMemo(()=>({currentFeatureEnv:EGe,featureClientSecret:va.featureClientSecret,providerEndPoint:nI.statsigBaseUrl}),[EGe,va.featureClientSecret,nI.statsigBaseUrl]);return n?Bt.jsx(H1n,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Bt.jsx(qGe,{})}):Bt.jsx(qGe,{})},p3r=v7t(function(){const e=g.useMemo(()=>d3r(),[]),[n,o]=g.useState(!1),[i,a]=g.useState(!1);g.useEffect(()=>{hte().then(()=>o(!0)).catch(()=>{})},[]);const s=g.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Bt.jsx(G2r,{children:Bt.jsx(H7t,{store:e,children:Bt.jsx(Y2r,{value:n,children:Bt.jsxs(T2r,{children:[Bt.jsx(c3r,{}),Bt.jsx(Nzt,{children:Bt.jsx(Q2r,{children:Bt.jsxs(Csn,{children:[i?Bt.jsx(Ugn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Bt.jsx(u3r,{})]})})})]})})})})});function h3r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:Ai.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=zu(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=Ai.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=Ai.getSignedInUserTenant(a)?.tenantId;c!=null&&(NYe(i.userId,i.zeniSessionId,c),e.dispatch(Eae(c)),a!=null&&Ai.saveActiveTenantDomainForUser(a),D8.shouldFetchActiveTenant(c)&&(D8.markActiveTenantFetchStarted(c),e.dispatch(YYe(i.userId,c,i.zeniSessionId))),D8.shouldFetchExcludedResources(c)&&(D8.markExcludedResourcesFetchStarted(c),e.dispatch(b8t(i.userId,c))),D8.shouldFetchConnections(c)&&(D8.markConnectionsFetchStarted(c),e.dispatch(w8t(i.userId,c))))}function m3r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const g3r=!!(globalThis.location.hostname==="localhost"||globalThis.location.hostname==="[::1]"||globalThis.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),f3r=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;let ste=!1,KGe=null;const ZGe="//js.hs-scripts.com/5991084.js",JGe="hs-script-loader",x3r=Ai.getSignedInUser(),y3r=x3r?.zeniSessionId;var m8;(async function(){try{const o=await async function(){const a={environment:yc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${uue}/api/keys?query=${s}`);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return await c.json()}catch(c){return console.error("Error fetching details:",c),null}}(),i=(e=o,n="ZENI-WEB-APP-"+yc,qj.AES.decrypt(e,n).toString(qj.enc.Utf8));j2r(JSON.parse(i)),W8t.createRoot(document.getElementById("root")).render(Bt.jsx(T.StrictMode,{children:Bt.jsx(U7t,{children:Bt.jsx(p3r,{})})})),function(){const a=()=>{const s=va.sentryDsn?.trim();if(!s)return;const c=va.sentryProfileSamplingRate>0;k7t({dsn:s,tracesSampleRate:va.sentryTraceSamplingRate,profilesSampleRate:c?va.sentryProfileSamplingRate:0,integrations:[A7t(),...c?[j7t()]:[],E7t({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)}),I7t("session-id",y3r)};"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):KGe!==null||(KGe=new Promise(e=>{if(ste)return void e(!0);const n=()=>{ste?e(!0):(ste=!0,new Promise((i,a)=>{if(document.getElementById(JGe))return void i();const s=document.createElement("script");s.id=JGe,s.src=ZGe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${ZGe}`)),document.body.appendChild(s)}).then(()=>{e(!0)}).catch(i=>{console.error("Error loading third-party scripts:",i),e(!0)}))},o=()=>{var i,a;i=()=>{setTimeout(n,7e3)},a=3e3,"requestIdleCallback"in window?window.requestIdleCallback(i,{timeout:a}):setTimeout(i,50)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})})),function(){if("serviceWorker"in navigator){const e=new URL("https://dev.app.zeni.ai",window.location.href);if(e.origin!==window.location.origin&&!g3r)return void Il(`[Service Worker] ⚠️ Our service worker won't work if PUBLIC_URL is on a different origin: ${e.origin} !== ${window.location.origin}`);window.addEventListener("load",()=>{var n;n=f3r,navigator.serviceWorker.register(n).then(o=>{o.onupdatefound=()=>{const i=o.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})})}}(),(m8=console.log)&&m8 instanceof Function&&E1(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(m8),n(m8),o(m8),i(m8),a(m8)});export{U2r as $,n3r as A,Z3r as B,P as C,ee as D,g4r as E,M as F,H2r as G,bU as H,T5r as I,Mz as J,se as K,hue as L,uue as M,Q7o as N,lKn as O,I5r as P,B3r as Q,j5r as R,un as S,dfr as T,ifr as U,pae as V,P3r as W,c5r as X,afr as Y,Tlt as Z,NWo as _,n7t as a,UNn as a$,o5r as a0,bue as a1,_Ge as a2,q2r as a3,ogr as a4,K2r as a5,X2r as a6,ngr as a7,PJn as a8,MGe as a9,Wfr as aA,Yfr as aB,l1e as aC,S4r as aD,v4r as aE,Gfr as aF,Qfr as aG,q3r as aH,$2 as aI,r4r as aJ,egr as aK,A7o as aL,cfr as aM,s_n as aN,jXn as aO,y4r as aP,x4r as aQ,b4r as aR,tfr as aS,$n as aT,Mlt as aU,D2r as aV,L5r as aW,fgr as aX,ofr as aY,rfr as aZ,J3r as a_,J2r as aa,uae as ab,B_ as ac,$O as ad,PGe as ae,Oo as af,Vfr as ag,Nfr as ah,txo as ai,sfr as aj,s4r as ak,It as al,a4r as am,oI as an,yS as ao,a3 as ap,l4r as aq,F4r as ar,Blt as as,_4r as at,O4r as au,z4r as av,R4r as aw,N4r as ax,K3r as ay,w4r as az,Fgr as b,w1r as b$,pat as b0,ufr as b1,l5r as b2,r5r as b3,Pfr as b4,F3r as b5,U3r as b6,Dse as b7,R3r as b8,d5r as b9,d4r as bA,Sfr as bB,$fr as bC,c4r as bD,u4r as bE,jfr as bF,Efr as bG,Ifr as bH,zfr as bI,Y3r as bJ,Ffr as bK,Rfr as bL,u5r as bM,Tfr as bN,k5r as bO,x5r as bP,Zfr as bQ,e4r as bR,Jfr as bS,_3r as bT,qfr as bU,Kfr as bV,o4r as bW,Ace as bX,t4r as bY,i4r as bZ,pcr as b_,Ufr as ba,V3r as bb,H3r as bc,N3r as bd,Lv as be,C4r as bf,yfr as bg,wfr as bh,bfr as bi,gfr as bj,mfr as bk,Cfr as bl,f4r as bm,ffr as bn,xfr as bo,vfr as bp,ra as bq,H4r as br,Dfr as bs,Lfr as bt,C5r as bu,n4r as bv,f5r as bw,Mfr as bx,_fr as by,Ofr as bz,Ui as c,_ee as c0,v5r as c1,S5r as c2,$5r as c3,w5r as c4,nfr as c5,e5r as c6,Q4r as c7,q4r as c8,W3r as c9,Mse as cA,A5r as cB,a5r as cC,kfr as cD,n5r as cE,xgr as cF,W2r as cG,cgr as cH,ygr as cI,wue as cJ,D5r as cK,l1n as cL,z3r as cM,o7t as cN,Xfr as ca,Ri as cb,l$i as cc,Y4r as cd,U4r as ce,Z4r as cf,W4r as cg,K4r as ch,Q3r as ci,G3r as cj,t5r as ck,S as cl,X4r as cm,J4r as cn,G4r as co,V4r as cp,i5r as cq,s5r as cr,h5r as cs,p5r as ct,g5r as cu,O3r as cv,Hfr as cw,m5r as cx,Bfr as cy,V3n as cz,Fh as d,h3r as e,io as f,P5r as g,Te as h,Es as i,va as j,p4r as k,T2 as l,h4r as m,$f as n,r as o,E5r as p,lfr as q,m4r as r,yyn as s,D8 as t,wU as u,lce as v,gn as w,Agr as x,gdt as y,Ai as z};
|
|
71727
|
+
Please refresh the page to try again.`)})),kC}function P5r(){return kC}const qGe=()=>{const e=Ug(),n=Ai.getSignedInUser(),o=hi(f=>zu(f)),i=hi(f=>C8t(f,o.companyId)),a=hs(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),s=o?.excludedResources?.fetchState==="Completed"?o.excludedResources.resources:[];g.useEffect(()=>()=>{e(Xue())},[]);const c=hi(f=>v8t(f));(()=>{const f=yue(),x=Ug(),{useFeatureGate:y}=Es(),{isFeatureEnabled:b}=y(Ui.isMissingReceiptsBulkUploadEnabled);g.useEffect(()=>{if(b!==!0||f==null)return;const w=Ai.getSignedInUser()?.userId;if(w==null)return;const C=Kj(f,w),v=$=>{x(f8t({batchId:$.batch_id,progress:$.progress,status:$.status.toLowerCase()}))};return C.bind(YGe,v),()=>{C.unbind(YGe,v)}},[f,x,b])})();const d=o?.externalConnections?.accounting[0]?.connectionName,u=g.useMemo(()=>GYe(o.userRole),[o.userRole]),p={events:o.userRoleId!=null?[`private-${o.userRoleId}.toast-message-user-notification`]:[],eventCallback:(f,x)=>{var y;y=x,y?.data!=null&&e(S8t(x))}},h=g.useMemo(()=>Ai.getSignedInUser(),[]),m=g.useMemo(()=>({userId:h?.userId??"",sessionId:h?.zeniSessionId??"",tenantId:o.tenantId??""}),[h,o.tenantId]);return Bt.jsx(Tsn,{globalInfo:{loggedInUser:n,loggedInUserRole:o?.userRole,excludedResources:s,loggedInUserRoleMap:u,currentTenant:o,connectionName:d,controllersList:i},children:Bt.jsx(Ssn,{toolkit:{analytics:Fh,sentry:$7t,authParams:m},children:Bt.jsxs(Vln,{endPoint:{url:uue},children:[Bt.jsx(hJo,{showSnackbar:c.isSnackbarOpen,snackbar:{message:c.message,messageType:c.messageType,onRemoveSnackbar:()=>{e(Xue())},showStatusIcon:c.showStatusIcon},isOnDashboard:a}),Bt.jsx(t3r,{...p})]})})})},u3r=()=>{const e=Ai.isSignedIn(),n=hi(s=>zu(s)).companyId,o=hi(s=>x8t(s.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider),i=g.useMemo(()=>({companyId:n,connectedAccountProvider:o}),[n,o]),a=g.useMemo(()=>({currentFeatureEnv:EGe,featureClientSecret:va.featureClientSecret,providerEndPoint:nI.statsigBaseUrl}),[EGe,va.featureClientSecret,nI.statsigBaseUrl]);return n?Bt.jsx(H1n,{isUserSignedIn:e,featureGateCustomFields:i,zeniFeatureConfig:a,children:Bt.jsx(qGe,{})}):Bt.jsx(qGe,{})},p3r=v7t(function(){const e=g.useMemo(()=>d3r(),[]),[n,o]=g.useState(!1),[i,a]=g.useState(!1);g.useEffect(()=>{hte().then(()=>o(!0)).catch(()=>{})},[]);const s=g.useCallback(c=>{c.data?.type==="UPDATE_READY"?a(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&a(!1)},[]);return g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",s),navigator.serviceWorker.addEventListener("controllerchange",()=>{a(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",s)}),[s]),Bt.jsx(G2r,{children:Bt.jsx(H7t,{store:e,children:Bt.jsx(Y2r,{value:n,children:Bt.jsxs(T2r,{children:[Bt.jsx(c3r,{}),Bt.jsx(Nzt,{children:Bt.jsx(Q2r,{children:Bt.jsxs(Csn,{children:[i?Bt.jsx(Ugn,{onPrimaryClick:()=>{a(!1),window.location.reload()}}):null,Bt.jsx(u3r,{})]})})})]})})})})});function h3r(e){const n=e.getState(),o=n.tenantState.loggedInUser,i=o?.zeniSessionId!=null?o:Ai.getSignedInUser();if(i?.userId==null||i?.zeniSessionId==null)return;let a=window.location.pathname.split("/").filter(Boolean)[0];const s=zu(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=Ai.getActiveTenantForUser();if(d?.tenantEmailDomain==null||d?.tenantId==null)return;a=d.tenantEmailDomain,c=d.tenantId}else c=Ai.getSignedInUserTenant(a)?.tenantId;c!=null&&(NYe(i.userId,i.zeniSessionId,c),e.dispatch(Eae(c)),a!=null&&Ai.saveActiveTenantDomainForUser(a),D8.shouldFetchActiveTenant(c)&&(D8.markActiveTenantFetchStarted(c),e.dispatch(YYe(i.userId,c,i.zeniSessionId))),D8.shouldFetchExcludedResources(c)&&(D8.markExcludedResourcesFetchStarted(c),e.dispatch(b8t(i.userId,c))),D8.shouldFetchConnections(c)&&(D8.markConnectionsFetchStarted(c),e.dispatch(w8t(i.userId,c))))}function m3r(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const g3r=!!(globalThis.location.hostname==="localhost"||globalThis.location.hostname==="[::1]"||globalThis.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),f3r=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;let ste=!1,KGe=null;const ZGe="//js.hs-scripts.com/5991084.js",JGe="hs-script-loader",x3r=Ai.getSignedInUser(),y3r=x3r?.zeniSessionId;var m8;(async function(){try{const o=await async function(){const a={environment:yc},s=encodeURIComponent(JSON.stringify(a));try{const c=await fetch(`${uue}/api/keys?query=${s}`);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return await c.json()}catch(c){return console.error("Error fetching details:",c),null}}(),i=(e=o,n="ZENI-WEB-APP-"+yc,qj.AES.decrypt(e,n).toString(qj.enc.Utf8));j2r(JSON.parse(i)),W8t.createRoot(document.getElementById("root")).render(Bt.jsx(T.StrictMode,{children:Bt.jsx(U7t,{children:Bt.jsx(p3r,{})})})),function(){const a=()=>{const s=va.sentryDsn?.trim();if(!s)return;const c=va.sentryProfileSamplingRate>0;k7t({dsn:s,tracesSampleRate:va.sentryTraceSamplingRate,profilesSampleRate:c?va.sentryProfileSamplingRate:0,integrations:[A7t(),...c?[j7t()]:[],E7t({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)}),I7t("session-id",y3r)};"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):KGe!==null||(KGe=new Promise(e=>{if(ste)return void e(!0);const n=()=>{ste?e(!0):(ste=!0,new Promise((i,a)=>{if(document.getElementById(JGe))return void i();const s=document.createElement("script");s.id=JGe,s.src=ZGe,s.async=!0,s.onload=()=>i(),s.onerror=()=>a(new Error(`Failed to load HubSpot script: ${ZGe}`)),document.body.appendChild(s)}).then(()=>{e(!0)}).catch(i=>{console.error("Error loading third-party scripts:",i),e(!0)}))},o=()=>{var i,a;i=()=>{setTimeout(n,7e3)},a=3e3,"requestIdleCallback"in window?window.requestIdleCallback(i,{timeout:a}):setTimeout(i,50)};document.readyState==="complete"?o():window.addEventListener("load",o,{once:!0})})),function(){if("serviceWorker"in navigator){const e=new URL("https://qa.app.zeni.ai",window.location.href);if(e.origin!==window.location.origin&&!g3r)return void Il(`[Service Worker] ⚠️ Our service worker won't work if PUBLIC_URL is on a different origin: ${e.origin} !== ${window.location.origin}`);window.addEventListener("load",()=>{var n;n=f3r,navigator.serviceWorker.register(n).then(o=>{o.onupdatefound=()=>{const i=o.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})})}}(),(m8=console.log)&&m8 instanceof Function&&E1(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(m8),n(m8),o(m8),i(m8),a(m8)});export{U2r as $,n3r as A,Z3r as B,P as C,ee as D,g4r as E,M as F,H2r as G,bU as H,T5r as I,Mz as J,se as K,hue as L,uue as M,Q7o as N,lKn as O,I5r as P,B3r as Q,j5r as R,un as S,dfr as T,ifr as U,pae as V,P3r as W,c5r as X,afr as Y,Tlt as Z,NWo as _,n7t as a,UNn as a$,o5r as a0,bue as a1,_Ge as a2,q2r as a3,ogr as a4,K2r as a5,X2r as a6,ngr as a7,PJn as a8,MGe as a9,Wfr as aA,Yfr as aB,l1e as aC,S4r as aD,v4r as aE,Gfr as aF,Qfr as aG,q3r as aH,$2 as aI,r4r as aJ,egr as aK,A7o as aL,cfr as aM,s_n as aN,jXn as aO,y4r as aP,x4r as aQ,b4r as aR,tfr as aS,$n as aT,Mlt as aU,D2r as aV,L5r as aW,fgr as aX,ofr as aY,rfr as aZ,J3r as a_,J2r as aa,uae as ab,B_ as ac,$O as ad,PGe as ae,Oo as af,Vfr as ag,Nfr as ah,txo as ai,sfr as aj,s4r as ak,It as al,a4r as am,oI as an,yS as ao,a3 as ap,l4r as aq,F4r as ar,Blt as as,_4r as at,O4r as au,z4r as av,R4r as aw,N4r as ax,K3r as ay,w4r as az,Fgr as b,w1r as b$,pat as b0,ufr as b1,l5r as b2,r5r as b3,Pfr as b4,F3r as b5,U3r as b6,Dse as b7,R3r as b8,d5r as b9,d4r as bA,Sfr as bB,$fr as bC,c4r as bD,u4r as bE,jfr as bF,Efr as bG,Ifr as bH,zfr as bI,Y3r as bJ,Ffr as bK,Rfr as bL,u5r as bM,Tfr as bN,k5r as bO,x5r as bP,Zfr as bQ,e4r as bR,Jfr as bS,_3r as bT,qfr as bU,Kfr as bV,o4r as bW,Ace as bX,t4r as bY,i4r as bZ,pcr as b_,Ufr as ba,V3r as bb,H3r as bc,N3r as bd,Lv as be,C4r as bf,yfr as bg,wfr as bh,bfr as bi,gfr as bj,mfr as bk,Cfr as bl,f4r as bm,ffr as bn,xfr as bo,vfr as bp,ra as bq,H4r as br,Dfr as bs,Lfr as bt,C5r as bu,n4r as bv,f5r as bw,Mfr as bx,_fr as by,Ofr as bz,Ui as c,_ee as c0,v5r as c1,S5r as c2,$5r as c3,w5r as c4,nfr as c5,e5r as c6,Q4r as c7,q4r as c8,W3r as c9,Mse as cA,A5r as cB,a5r as cC,kfr as cD,n5r as cE,xgr as cF,W2r as cG,cgr as cH,ygr as cI,wue as cJ,D5r as cK,l1n as cL,z3r as cM,o7t as cN,Xfr as ca,Ri as cb,l$i as cc,Y4r as cd,U4r as ce,Z4r as cf,W4r as cg,K4r as ch,Q3r as ci,G3r as cj,t5r as ck,S as cl,X4r as cm,J4r as cn,G4r as co,V4r as cp,i5r as cq,s5r as cr,h5r as cs,p5r as ct,g5r as cu,O3r as cv,Hfr as cw,m5r as cx,Bfr as cy,V3n as cz,Fh as d,h3r as e,io as f,P5r as g,Te as h,Es as i,va as j,p4r as k,T2 as l,h4r as m,$f as n,r as o,E5r as p,lfr as q,m4r as r,yyn as s,D8 as t,wU as u,lce as v,gn as w,Agr as x,gdt as y,Ai as z};
|