@zeniai/web-app-ui 5.3.54-dev → 5.3.55-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/assets/{AccountMappingScreen-BJ_GCmL6.js → AccountMappingScreen-DdQz2lM1.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-D8tZOiP1.js → ActualMatchingMatchDetailScreen-CGBN-Q-7.js} +1 -1
  3. package/dist/assets/AddressRoutes-CynmpoQu.js +1 -0
  4. package/dist/assets/{AddressScreen-BIubmwIP.js → AddressScreen-DqZYCoSs.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-D0uGIPWe.js → AiCfoScreen-CtsJ7cDT.js} +1 -1
  6. package/dist/assets/{AppDrawer-Dyu7Kj7A.js → AppDrawer-CKP6jrbF.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-Cu6HjrcE.js → BillPayApprovalRoutes-BpoA_nrV.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-DZcxw7F9.js → BillPayRoutes-B9NE4VxB.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-KgJ3Z7Lz.js → BusinessVerificationPageScreen-BldrMJdh.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-D4XYcc0x.js → CardsAiCfoScreen-oYxLbDwZ.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-DgTbdUe2.js → ChargeCardRoutes-ljOxkkUf.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-Dgt-2F5D.js → CompanyPassportScreen-CamQRzbi.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-lP9BaYPL.js → ConnectionAuthScreen-BoP4m4L6.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-CDb5FCfJ.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-SntDIwld.js → CustomerOnboardingRoutes-UN9_koR-.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-ChSsFVnC.js → DashboardRoutes-B00G02__.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-B_-3-BWP.js → DefaultTenantHome-BvquDIuf.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-uEOhWiZJ.js → DomesticWireDetailScreen-BBhvylGY.js} +1 -1
  19. package/dist/assets/{DrawerScreen-D2fUiyyG.js → DrawerScreen-2p7xfq2O.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-CDL9F5R0.js → EntityDetailRoutes-CLBqzGEu.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-p6anUTiX.js → ExpenseAutomationRoutes-CsO9a4nX.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-ClEO1jVO.js → FeaturePreviewScreen-8gjXA436.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-Be8h7JlS.js → HubSpotOAuthCallbackScreen-CdBNaEnB.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-B8qyHdbE.js → InboxNotificationsProvider-CvLL3Xda.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-CUoOqcWW.js → InvoicingRoutes-BXUW-5w1.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-AdtcTQV8.js → MagicLinkRoutes-BxAzMNve.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-BineRgOo.js → MagicLinkSignInScreen-CBQx4xWX.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-CrvGsfgI.js → MobileAppDrawer-fNaMEqpG.js} +1 -1
  29. package/dist/assets/NotFoundScreen-BeP62Nz9.js +1 -0
  30. package/dist/assets/{NotificationRoutes-3wgt8Kbi.js → NotificationRoutes-GCk-IahK.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-DgdT7x6v.js → OAuthConsentScreen-DECI8j0I.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-ws3OHddo.js → PandLWithForecastRoutes-Ca12AKcd.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-tKLL3f9h.js → PaymentLinkScreen-0thjtbfK.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-Dfq2m-jU.js → PeopleRoutes-DYtmtMXx.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-D1dXkym3.js → PerformanceRoutes-DP4OW2qD.js} +1 -1
  36. package/dist/assets/{Preview-BBxDhQ0O.js → Preview-CudBKEb3.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-C7ZuCwNV.js → QBOConnectionScreen-a_jxuJVg.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-BEPpa8LQ.js → ReimbursementApprovalRoutes-DHL_6iez.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C78enppv.js → ReimbursementApprovalRuleDetailScreen-j72H8n28.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-Ch8YptRc.js → ReimbursementRoutes-Cyrl2qi_.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-CqMWss5n.js → ReportsRoutes-DSY4nYh6.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-Dv8b4Fg6.js → RewardsRoutes-DvJjiZGU.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-YOxc6f2g.js → ScheduleDetailsPrepaidExpensesScreen-C4z4GiyE.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-DfCL2gIc.js → ScreenRoutes-C7oLHktw.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-DnuHZUVl.js → SettingsRoutes-DfnQIw3N.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-BXd3fJXi.js → SetupPagesScreen-Zigm3cB1.js} +1 -1
  47. package/dist/assets/{SignInScreen-Cktnr6wX.js → SignInScreen-BRoXT-HL.js} +1 -1
  48. package/dist/assets/{SignOutScreen-BwPpNX5k.js → SignOutScreen-DkRfW28z.js} +1 -1
  49. package/dist/assets/{TaskListScreen-Co7yPEl4.js → TaskListScreen-WGfeq9_a.js} +1 -1
  50. package/dist/assets/{TaskRoutes-b_9EH8N1.js → TaskRoutes-C5PxGl6p.js} +1 -1
  51. package/dist/assets/TransactionDetailRoutes-BBdrsyNq.js +1 -0
  52. package/dist/assets/{TransactionDetailScreen-DsKolbVR.js → TransactionDetailScreen-BDWEHK1J.js} +1 -1
  53. package/dist/assets/{TransactionListRoutes-CW6X1kEN.js → TransactionListRoutes-COxnLE0l.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-DKqLrSIy.js → TreasuryRoutes-DmSouKJP.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-_VHqmNHq.js → VendorsRoutes-OsvLnOdY.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-D4dLeJ3W.js → WiseConfirmationScreen-taiB3VxF.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-luRZFrPJ.js → ZeniAccountRoutes-O9BxDbbv.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-CX_-BJtA.js → ZeniAccountStatementScreen-DzQsPHni.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-y0E9h6aC.js → accountMappingHelper-DTr2dybD.js} +1 -1
  60. package/dist/assets/{analytics-BDCkEq_I.js → analytics-BLHCH9ZW.js} +1 -1
  61. package/dist/assets/{analyticsHelper-DjqyEcxU.js → analyticsHelper-DhzoozKy.js} +1 -1
  62. package/dist/assets/{core-B2JcUSRu.js → core-_lmxLuL7.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CIM8Yd6k.js → decodeURIComponentSafe-CNj7wDd5.js} +1 -1
  64. package/dist/assets/{dnd-BAPMa4RJ.js → dnd-4_dRT_p_.js} +1 -1
  65. package/dist/assets/{empty-M8CZcWYb.js → empty-B3p_skJy.js} +1 -1
  66. package/dist/assets/{empty-D7vR8z68.js → empty-Bz6Du369.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-nUJqd2nB.js → emptyVideoElement-DVls5c-N.js} +1 -1
  68. package/dist/assets/{epic-IH41xxG2.js → epic-Dg8E5zC1.js} +1 -1
  69. package/dist/assets/{expenseAutomationHelper-Dd7fQN5z.js → expenseAutomationHelper-C8o4PBoS.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-BXUF9msR.js → getLocaleForTenant-DiPOVD9Y.js} +1 -1
  71. package/dist/assets/{index-DKVU_IvY.js → index-BXkbHEmr.js} +2 -2
  72. package/dist/assets/{index-DanGKFMl.js → index-BqEaHxIT.js} +9 -9
  73. package/dist/assets/{index-PCu_2P3b.js → index-Cg11XXLq.js} +1 -1
  74. package/dist/assets/{index-P1XHqiT-.js → index-DLV1sgpa.js} +1 -1
  75. package/dist/assets/{index-DKZ4YAZy.js → index-DMJTTbIe.js} +1 -1
  76. package/dist/assets/{index-dmkrZYpO.js → index-DYybIBq-.js} +1 -1
  77. package/dist/assets/{index-BTTj-4b5.js → index-hIpaHuHG.js} +1 -1
  78. package/dist/assets/{index-gjFAkOOB.js → index-sGFH656b.js} +1 -1
  79. package/dist/assets/{lexical-DGZ06Yv6.js → lexical-BibO8P7-.js} +1 -1
  80. package/dist/assets/{liveblocks-DXYs6rwe.js → liveblocks-C_txwMxP.js} +1 -1
  81. package/dist/assets/{lottie-C9Rxpkwh.js → lottie-CyJj6i4R.js} +1 -1
  82. package/dist/assets/{mui-BLmtkCLd.js → mui-DbFwPEO7.js} +1 -1
  83. package/dist/assets/{pathToGoBack-DqGGHSwL.js → pathToGoBack-W4B39XGQ.js} +1 -1
  84. package/dist/assets/{pdf-DMCYUxGc.js → pdf-BfgO0ZZE.js} +3 -3
  85. package/dist/assets/{pdf-lib-D7-8SdHl.js → pdf-lib-B5AjOY9Z.js} +1 -1
  86. package/dist/assets/{plaid-DHQC2tsw.js → plaid-DHbQ1Fnc.js} +1 -1
  87. package/dist/assets/{pusher-C76wt9sK.js → pusher--5P9Uwc_.js} +1 -1
  88. package/dist/assets/{react-BX0k_7jA.js → react-BKa7fZpZ.js} +1 -1
  89. package/dist/assets/{react-DzK6xFD8.js → react-BmknZowZ.js} +1 -1
  90. package/dist/assets/{react-D7gGxl9M.js → react-CUz7FHyX.js} +1 -1
  91. package/dist/assets/{react-Y6cTJufT.js → react-DrxoeICl.js} +1 -1
  92. package/dist/assets/{react-Dvat3Ckm.js → react-IBoMtt1b.js} +1 -1
  93. package/dist/assets/{react-B2hEGyNu.js → react-h8fTHwLe.js} +1 -1
  94. package/dist/assets/{recharts-UN7cJOXN.js → recharts-B43pV0TY.js} +1 -1
  95. package/dist/assets/{routePaths-CV4JB8t3.js → routePaths-C1I3AVBw.js} +1 -1
  96. package/dist/assets/{sentry-BmkYxd02.js → sentry-D_60LtUS.js} +1 -1
  97. package/dist/assets/{stripSplatSuffix-DXBpTroJ.js → stripSplatSuffix-BWXYYZxG.js} +1 -1
  98. package/dist/assets/{url-Cjk2PJJX.js → url-BryZycM8.js} +1 -1
  99. package/dist/assets/{url-DgDGkycQ.js → url-CvufulZn.js} +1 -1
  100. package/dist/assets/{useActualMatchingMatchDetail-Ba3Lb9B6.js → useActualMatchingMatchDetail-BOc11rCC.js} +1 -1
  101. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-B20EbGXf.js → useAiCfoDashboardSuggestedQuestionsChips-DfcdcxeV.js} +1 -1
  102. package/dist/assets/{useAskAiCfoHostNavButtonProps-BDyrdULc.js → useAskAiCfoHostNavButtonProps-Biynu986.js} +1 -1
  103. package/dist/assets/{useChargeCardPusherEvents--bgooXaj.js → useChargeCardPusherEvents-N9Kbq9gN.js} +1 -1
  104. package/dist/assets/{useDeviceId-IlYBwHEv.js → useDeviceId-Dks2onQn.js} +1 -1
  105. package/dist/assets/{useEmailConnectResultRefresh-B5AEi8xu.js → useEmailConnectResultRefresh-BtvKv8-C.js} +1 -1
  106. package/dist/assets/{useInitialThreadRequest-D-aSm_7m.js → useInitialThreadRequest-CyHRajCC.js} +1 -1
  107. package/dist/assets/{useTaskManagerAccess-DEEmjDWA.js → useTaskManagerAccess-Cs4MVKyS.js} +1 -1
  108. package/dist/assets/{useTaskManagerPusherEvents-D18AziPj.js → useTaskManagerPusherEvents-BPWIyNie.js} +1 -1
  109. package/dist/assets/{utils-BGWE7tXK.js → utils-CPbtTTqo.js} +1 -1
  110. package/dist/assets/{withTransactionSidePanel-BzroedBl.js → withTransactionSidePanel-Dxu14DPo.js} +1 -1
  111. package/dist/assets/{zeni-epic-state-DpjvBN7b.js → zeni-epic-state-CtlpRqoe.js} +3 -3
  112. package/dist/index.html +1 -1
  113. package/package.json +3 -3
  114. package/dist/assets/AddressRoutes-CPqal9vX.js +0 -1
  115. package/dist/assets/CustomerOnboardingAuthScreen-86giaeRs.js +0 -1
  116. package/dist/assets/NotFoundScreen-DJ-T97HU.js +0 -1
  117. package/dist/assets/TransactionDetailRoutes-B9A0XpAo.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-DpjvBN7b.js","assets/sentry-BmkYxd02.js","assets/core-B2JcUSRu.js","assets/index-DKVU_IvY.js","assets/DefaultTenantHome-B_-3-BWP.js","assets/mui-BLmtkCLd.js","assets/getLocaleForTenant-BXUF9msR.js","assets/analytics-BDCkEq_I.js","assets/utils-BGWE7tXK.js","assets/AppDrawer-Dyu7Kj7A.js","assets/InboxNotificationsProvider-B8qyHdbE.js","assets/useTaskManagerAccess-DEEmjDWA.js","assets/expenseAutomationHelper-Dd7fQN5z.js","assets/ScreenRoutes-DfCL2gIc.js","assets/analyticsHelper-DjqyEcxU.js","assets/ConnectionAuthScreen-lP9BaYPL.js","assets/AccountMappingScreen-BJ_GCmL6.js","assets/MobileAppDrawer-CrvGsfgI.js","assets/QBOConnectionScreen-C7ZuCwNV.js","assets/empty-M8CZcWYb.js","assets/index-gjFAkOOB.js","assets/url-Cjk2PJJX.js","assets/index-PCu_2P3b.js","assets/decodeURIComponentSafe-CIM8Yd6k.js","assets/accountMappingHelper-y0E9h6aC.js","assets/SignInScreen-Cktnr6wX.js","assets/useDeviceId-IlYBwHEv.js","assets/MagicLinkSignInScreen-BineRgOo.js","assets/NotFoundScreen-DJ-T97HU.js","assets/MagicLinkRoutes-AdtcTQV8.js","assets/PaymentLinkScreen-tKLL3f9h.js","assets/WiseConfirmationScreen-D4dLeJ3W.js","assets/HubSpotOAuthCallbackScreen-Be8h7JlS.js","assets/CustomerOnboardingAuthScreen-86giaeRs.js","assets/SignOutScreen-BwPpNX5k.js","assets/OAuthConsentScreen-DgdT7x6v.js"])))=>i.map(i=>d[i]);
2
- import{a as m,R as M,b as H5e,e as bsn,p as Sse,r as Am,g as TAt,d as Gje,f as wsn,s as qje,i as Csn,w as vsn,j as Asn,S as Ssn,k as ksn,l as jsn,m as $sn,n as Esn,o as Isn}from"./sentry-BmkYxd02.js";import{L as Dsn,C as Kje,_ as ah,a as Tsn,b as _N,c as Lsn,d as nne,e as VN,u as LAt,T as Bsn,f as Psn,g as Msn,h as Osn,i as Fsn,k as BAt,l as Rsn,m as zsn,j as Zt}from"./liveblocks-DXYs6rwe.js";import{f as PAt,r as Sa,R as xA,P as Vl,O as Nsn,N as MAt,u as qp,g as u2,h as ine,i as OAt,j as Gr,m as T8e,s as qZ,k as FAt,l as _sn,n as Vsn,o as lp,p as Hsn,B as Usn}from"./core-B2JcUSRu.js";import{L as Zje,bl as Wsn,bm as Qsn,bn as HN,bo as Ysn,bp as Gsn,bq as zs,br as Wt,bs as lL,bt as c3,bu as qsn,bv as K7,bw as Os,bx as Ksn,by as Zsn,bz as Jsn,bA as d1,bB as tp,bC as vz,bD as l8,bE as pn,bF as RAt,bG as Q1,bH as Aa,bI as rT,bJ as zAt,bK as NAt,bL as L8e,bM as dx,bN as n1,bO as d7,bP as Xsn,bQ as Rc,bR as eln,bS as cL,bT as tln,bU as nln,bV as KZ,bW as iln,bX as oln,bY as ZZ,bZ as rln,b_ as aln,b$ as c8,c0 as Jje,c1 as sln,c2 as lln,c3 as cln,c4 as dln,c5 as uln,c6 as pln,c7 as hln,c8 as u7,c9 as one,ca as mln,cb as rne,cc as ane,cd as sne,ce as B8e,cf as UN,cg as kS,ch as WN,ci as aT,cj as sT,ck as jS,cl as lne,cm as KA,cn as gln,co as Xje,cp as fln,cq as xln,cr as yln,cs as bln,ct as _At,cu as wln,cv as Cln,cw as Zw,cx as e$e,cy as vln,cz as Aln,cA as Sln,cB as dk,cC as uk,cD as VAt,cE as HAt,cF as P8e,cG as kln,cH as UAt,cI as jln,cJ as JZ,cK as WAt,cL as $ln,cM as QAt,cN as Eln,cO as qO,cP as Iln,cQ as Dln,cR as t$e,cS as Tln,cT as M8e,cU as O8e,cV as Lln,cW as Bln,cX as Pln,cY as Mln,cZ as FV,c_ as Az,c$ as RV,d0 as Oln,d1 as Fln,d2 as YAt,d3 as Rln,d4 as zln,d5 as Nln,d6 as _ln,d7 as Vln,d8 as GAt,d9 as n$e,da as Hln,db as F8e,dc as Uln,dd as Wln,de as Qln,df as qAt,dg as mu,dh as Wl,di as cne,dj as Yln,dk as Gln,dl as R1,dm as KAt,dn as qln,dp as Sz,dq as ZA,dr as Qs,ds as i$e,dt as Kln,du as Zln,dv as Jln,dw as ZAt,dx as R8e,dy as zV,dz as JAt,dA as Og,dB as Xln,dC as ecn,dD as tcn,dE as ncn,dF as icn,dG as ocn,dH as rcn,dI as acn,dJ as NV,dK as $S,dL as dne,dM as scn,dN as lcn,dO as pk,dP as Y1,dQ as XAt,dR as eSt,dS as ccn,dT as tSt,dU as dcn,dV as ucn,dW as pcn,dX as hcn,dY as dL,dZ as z8e,d_ as N8e,d$ as mcn,e0 as _8e,e1 as nSt,e2 as iSt,e3 as oSt,e4 as rSt,e5 as aSt,e6 as sSt,e7 as gcn,_ as Pd,e8 as uL,e9 as fcn,ea as o$e,eb as une,ec as xcn,ed as ycn,ee as lSt,ef as bcn,eg as XF,eh as Mm,ei as p7,ej as cSt,ek as dSt,el as wcn,em as uSt,en as U5e,eo as Ccn,ep as cK,eq as vcn,er as Acn,es as Scn,et as kcn,eu as jcn,ev as pSt,ew as hSt,ex as $cn,ey as Ecn,ez as mSt,eA as eR,eB as tR,eC as gSt,eD as Icn,eE as Dcn,eF as Tcn,eG as Lcn,eH as V8e,eI as fSt,eJ as xSt,eK as H8e,eL as pL,eM as pne,eN as U8e,eO as W8e,eP as Q8e,eQ as Y8e,eR as Bcn,eS as Pcn,eT as ySt,eU as r$e,eV as Mcn,eW as G8e,eX as Ocn,eY as Fcn,eZ as _1,e_ as Rcn,e$ as hne,f0 as bSt,f1 as wSt,f2 as zcn,f3 as q8e,f4 as K8e,f5 as Ncn,f6 as _cn,f7 as Vcn,f8 as Hcn,f9 as Ucn,fa as Jg,fb as a$e,fc as CSt,fd as Wcn,fe as Qcn,ff as Ycn,fg as vSt,fh as ASt,fi as SSt,fj as kSt,fk as jSt,fl as $St,fm as Gcn,fn as lT,fo as qcn,fp as Kcn,fq as Zcn,fr as Jcn,fs as ESt,ft as ISt,fu as s$e,fv as l$e,fw as Xcn,fx as edn,fy as c$e,fz as d$e,fA as tdn,fB as ndn,fC as W5e,fD as idn,v as odn,fE as mne,fF as xm,fG as DSt,fH as TSt,fI as rdn,fJ as adn,fK as u$e,fL as sdn,fM as ldn,fN as cdn,fO as ddn,fP as udn,fQ as pdn,fR as hdn,fS as mdn,fT as gdn,fU as fdn,fV as xdn,fW as ydn,fX as bdn,fY as wdn,fZ as Cdn,f_ as vdn,f$ as Adn,g0 as Sdn,g1 as kdn,g2 as p$e,g3 as jdn,g4 as $dn,g5 as Edn,g6 as Idn,g7 as Ddn,g8 as LSt,g9 as gne,ga as Z8e,gb as BSt,gc as Tdn,gd as Ldn,ge as Bdn,gf as PSt,gg as h$e,gh as MSt,gi as OSt,gj as Pdn,gk as FSt,gl as RSt,gm as Mdn,gn as Odn,go as Q5e,gp as Fdn,gq as nR,gr as Rdn,gs as zdn,gt as Ndn,gu as _dn,gv as Vdn,gw as Hdn,gx as Udn,gy as Wdn,gz as Qdn,gA as Ydn,gB as Gdn,gC as qdn,gD as zSt,gE as Kdn,gF as Zdn,gG as Jdn,gH as m$e,gI as Xdn,gJ as eun,gK as tun,gL as nun,gM as iun,gN as oun,gO as NSt,gP as _St,gQ as run,gR as VSt,gS as aun,gT as sun,gU as Y5e,gV as lun,gW as cun,gX as dun,gY as uun,gZ as pun,g_ as hun,g$ as g$e,h0 as mun,h1 as gun,h2 as fun}from"./zeni-epic-state-DpjvBN7b.js";import{n as a,T as HSt,G as QN,j as Io,c as Ie,k as ni,C as USt,u as xun,D as WSt,S as QSt,a as yun}from"./mui-BLmtkCLd.js";import{r as bun,m as $g}from"./analytics-BDCkEq_I.js";import{u as ip}from"./plaid-DHQC2tsw.js";import{D as J8e,H as fne,g as wun,O as Cun,S as vun,T as Aun,u as X8e,a as ewe,b as Sun}from"./dnd-BAPMa4RJ.js";import{l as twe}from"./stripe-cKAAJElX.js";import{L as yD}from"./lottie-C9Rxpkwh.js";import{r as sd}from"./lexical-DGZ06Yv6.js";import{D as G5e,P as q5e,_ as YSt,a as GSt}from"./pdf-DMCYUxGc.js";import{R as ES,G as d8,H as eh,X as ql,Y as Ll,I as Dd,J as u8,K as z8,L as JA,M as X1,N as hL,O as qSt,P as kun,Q as jun,S as xne,U as $un,V as nwe,W as Eun,Z as Iun,_ as Dun,d as Tun}from"./recharts-UN7cJOXN.js";import{r as Lun,n as f$e}from"./utils-BGWE7tXK.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]="f33e922d-fcdc-4e96-aa83-e03f2535521c",e._sentryDebugIdIdentifier="sentry-dbid-f33e922d-fcdc-4e96-aa83-e03f2535521c")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver((i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)})).observe(document,{childList:!0,subtree:!0})}function n(i){if(i.ep)return;i.ep=!0;const r=(function(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l})(i);fetch(i.href,r)}})();var x$e,_V={},Bun=(function(){if(x$e)return _V;x$e=1;var e=PAt();return _V.createRoot=e.createRoot,_V.hydrateRoot=e.hydrateRoot,_V})(),cm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof H5e<"u"?H5e:typeof self<"u"?self:{};function xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y$e,b$e,w$e={exports:{}},yB={};function KSt(){return b$e||(b$e=1,w$e.exports=(function(){if(y$e)return yB;y$e=1;var e=M,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return yB.Fragment=i,yB.jsx=c,yB.jsxs=c,yB})()),w$e.exports}var t=KSt();const Pun=m.createContext(null),kse={didCatch:!1,error:null};let Mun=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=kse}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(kse)}}componentDidCatch(e,n){var i,r;(i=(r=this.props).onError)===null||i===void 0||i.call(r,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:r}=this.props;var s,l;i&&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,r)&&((s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(kse))}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:r}=this.props,{didCatch:s,error:l}=this.state;let c=e;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=m.createElement(i,d);else{if(r===void 0)throw l;c=r}}return m.createElement(Pun.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var C$e,jse={exports:{}},$se,Oun=(C$e||(C$e=1,$se=jse,(function(e,n){$se.exports?$se.exports=n():e.numeral=n()})(jse.exports,(function(){var e,n,i,r,s,l={},c={},d={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:d.currentLocale,zeroFormat:d.zeroFormat,nullFormat:d.nullFormat,defaultFormat:d.defaultFormat,scalePercentBy100:d.scalePercentBy100};function p(h,g){this._input=h,this._value=g}return e=function(h){var g,f,x,y;if(e.isNumeral(h))g=h.value();else if(h===0||typeof h>"u")g=0;else if(h===null||n.isNaN(h))g=null;else if(typeof h=="string")if(u.zeroFormat&&h===u.zeroFormat)g=0;else if(u.nullFormat&&h===u.nullFormat||!h.replace(/[^0-9]+/g,"").length)g=null;else{for(f in l)if((y=typeof l[f].regexps.unformat=="function"?l[f].regexps.unformat():l[f].regexps.unformat)&&h.match(y)){x=l[f].unformat;break}g=(x=x||e._.stringToNumber)(h)}else g=Number(h)||null;return new p(h,g)},e.version="2.0.6",e.isNumeral=function(h){return h instanceof p},e._=n={numberToFormat:function(h,g,f){var x,y,b,w,C,v,A,S,$=c[e.options.currentLocale],j=!1,E=!1,I="",D=1e12,B=1e9,F=1e6,R="",_=!1;if(h=h||0,b=Math.abs(h),e._.includes(g,"(")?(j=!0,g=g.replace(/[\(|\)]/g,"")):(e._.includes(g,"+")||e._.includes(g,"-"))&&(v=e._.includes(g,"+")?g.indexOf("+"):h<0?g.indexOf("-"):-1,g=g.replace(/[\+|\-]/g,"")),e._.includes(g,"a")&&(y=!!(y=g.match(/a(k|m|b|t)?/))&&y[1],e._.includes(g," a")&&(I=" "),g=g.replace(new RegExp(I+"a[kmbt]?"),""),b>=D&&!y||y==="t"?(I+=$.abbreviations.trillion,h/=D):b<D&&b>=B&&!y||y==="b"?(I+=$.abbreviations.billion,h/=B):b<B&&b>=F&&!y||y==="m"?(I+=$.abbreviations.million,h/=F):(b<F&&b>=1e3&&!y||y==="k")&&(I+=$.abbreviations.thousand,h/=1e3)),e._.includes(g,"[.]")&&(E=!0,g=g.replace("[.]",".")),w=h.toString().split(".")[0],C=g.split(".")[1],A=g.indexOf(","),x=(g.split(".")[0].split(",")[0].match(/0/g)||[]).length,C?(e._.includes(C,"[")?(C=(C=C.replace("]","")).split("["),R=e._.toFixed(h,C[0].length+C[1].length,f,C[1].length)):R=e._.toFixed(h,C.length,f),w=R.split(".")[0],R=e._.includes(R,".")?$.delimiters.decimal+R.split(".")[1]:"",E&&Number(R.slice(1))===0&&(R="")):w=e._.toFixed(h,0,f),I&&!y&&Number(w)>=1e3&&I!==$.abbreviations.trillion)switch(w=String(Number(w)/1e3),I){case $.abbreviations.thousand:I=$.abbreviations.million;break;case $.abbreviations.million:I=$.abbreviations.billion;break;case $.abbreviations.billion:I=$.abbreviations.trillion}if(e._.includes(w,"-")&&(w=w.slice(1),_=!0),w.length<x)for(var N=x-w.length;N>0;N--)w="0"+w;return A>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+$.delimiters.thousands)),g.indexOf(".")===0&&(w=""),S=w+R+(I||""),j?S=(j&&_?"(":"")+S+(j&&_?")":""):v>=0?S=v===0?(_?"-":"+")+S:S+(_?"-":"+"):_&&(S="-"+S),S},stringToNumber:function(h){var g,f,x,y=c[u.currentLocale],b=h,w={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&h===u.zeroFormat)f=0;else if(u.nullFormat&&h===u.nullFormat||!h.replace(/[^0-9]+/g,"").length)f=null;else{for(g in f=1,y.delimiters.decimal!=="."&&(h=h.replace(/\./g,"").replace(y.delimiters.decimal,".")),w)if(x=new RegExp("[^a-zA-Z]"+y.abbreviations[g]+"(?:\\)|(\\"+y.currency.symbol+")?(?:\\))?)?$"),b.match(x)){f*=Math.pow(10,w[g]);break}f*=(h.split("-").length+Math.min(h.split("(").length-1,h.split(")").length-1))%2?1:-1,h=h.replace(/[^0-9\.]+/g,""),f*=Number(h)}return f},isNaN:function(h){return typeof h=="number"&&isNaN(h)},includes:function(h,g){return h.indexOf(g)!==-1},insert:function(h,g,f){return h.slice(0,f)+g+h.slice(f)},reduce:function(h,g){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof g!="function")throw new TypeError(g+" is not a function");var f,x=Object(h),y=x.length>>>0,b=0;if(arguments.length===3)f=arguments[2];else{for(;b<y&&!(b in x);)b++;if(b>=y)throw new TypeError("Reduce of empty array with no initial value");f=x[b++]}for(;b<y;b++)b in x&&(f=g(f,x[b],b,x));return f},multiplier:function(h){var g=h.toString().split(".");return g.length<2?1:Math.pow(10,g[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(h,g){var f=n.multiplier(g);return h>f?h:f}),1)},toFixed:function(h,g,f,x){var y,b,w,C,v=h.toString().split("."),A=g-(x||0);return y=v.length===2?Math.min(Math.max(v[1].length,A),g):A,w=Math.pow(10,y),C=(f(h+"e+"+y)/w).toFixed(y),x>g-y&&(b=new RegExp("\\.?0{1,"+(x-(g-y))+"}$"),C=C.replace(b,"")),C}},e.options=u,e.formats=l,e.locales=c,e.locale=function(h){return h&&(u.currentLocale=h.toLowerCase()),u.currentLocale},e.localeData=function(h){if(!h)return c[u.currentLocale];if(h=h.toLowerCase(),!c[h])throw new Error("Unknown locale : "+h);return c[h]},e.reset=function(){for(var h in d)u[h]=d[h]},e.zeroFormat=function(h){u.zeroFormat=typeof h=="string"?h:null},e.nullFormat=function(h){u.nullFormat=typeof h=="string"?h:null},e.defaultFormat=function(h){u.defaultFormat=typeof h=="string"?h:"0.0"},e.register=function(h,g,f){if(g=g.toLowerCase(),this[h+"s"][g])throw new TypeError(g+" "+h+" already registered.");return this[h+"s"][g]=f,f},e.validate=function(h,g){var f,x,y,b,w,C,v,A;if(typeof h!="string"&&(h+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",h)),(h=h.trim()).match(/^\d+$/))return!0;if(h==="")return!1;try{v=e.localeData(g)}catch{v=e.localeData(e.locale())}return y=v.currency.symbol,w=v.abbreviations,f=v.delimiters.decimal,x=v.delimiters.thousands==="."?"\\.":v.delimiters.thousands,!((A=h.match(/^[^\d]+/))!==null&&(h=h.substr(1),A[0]!==y)||(A=h.match(/[^\d]+$/))!==null&&(h=h.slice(0,-1),A[0]!==w.thousand&&A[0]!==w.million&&A[0]!==w.billion&&A[0]!==w.trillion)||(C=new RegExp(x+"{2}"),h.match(/[^\d.,]/g)||(b=h.split(f)).length>2||(b.length<2?!b[0].match(/^\d+.*\d$/)||b[0].match(C):b[0].length===1?!b[0].match(/^\d+$/)||b[0].match(C)||!b[1].match(/^\d+$/):!b[0].match(/^\d+.*\d$/)||b[0].match(C)||!b[1].match(/^\d+$/))))},e.fn=p.prototype={clone:function(){return e(this)},format:function(h,g){var f,x,y,b=this._value,w=h||u.defaultFormat;if(g=g||Math.round,b===0&&u.zeroFormat!==null)x=u.zeroFormat;else if(b===null&&u.nullFormat!==null)x=u.nullFormat;else{for(f in l)if(w.match(l[f].regexps.format)){y=l[f].format;break}x=(y=y||e._.numberToFormat)(b,w,g)}return x},value:function(){return this._value},input:function(){return this._input},set:function(h){return this._value=Number(h),this},add:function(h){var g=n.correctionFactor.call(null,this._value,h);return this._value=n.reduce([this._value,h],(function(f,x,y,b){return f+Math.round(g*x)}),0)/g,this},subtract:function(h){var g=n.correctionFactor.call(null,this._value,h);return this._value=n.reduce([h],(function(f,x,y,b){return f-Math.round(g*x)}),Math.round(this._value*g))/g,this},multiply:function(h){return this._value=n.reduce([this._value,h],(function(g,f,x,y){var b=n.correctionFactor(g,f);return Math.round(g*b)*Math.round(f*b)/Math.round(b*b)}),1),this},divide:function(h){return this._value=n.reduce([this._value,h],(function(g,f,x,y){var b=n.correctionFactor(g,f);return Math.round(g*b)/Math.round(f*b)})),this},difference:function(h){return Math.abs(e(this._value).subtract(h).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(h){var g=h%10;return~~(h%100/10)==1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(h,g,f){var x,y=e._.includes(g," BPS")?" ":"";return h*=1e4,g=g.replace(/\s?BPS/,""),x=e._.numberToFormat(h,g,f),e._.includes(x,")")?((x=x.split("")).splice(-1,0,y+"BPS"),x=x.join("")):x=x+y+"BPS",x},unformat:function(h){return+(1e-4*e._.stringToNumber(h)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},s="("+(s=(i={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(h){return i.suffixes.indexOf(h)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(h,g,f){var x,y,b,w=e._.includes(g,"ib")?r:i,C=e._.includes(g," b")||e._.includes(g," ib")?" ":"";for(g=g.replace(/\s?i?b/,""),x=0;x<=w.suffixes.length;x++)if(y=Math.pow(w.base,x),b=Math.pow(w.base,x+1),h===null||h===0||h>=y&&h<b){C+=w.suffixes[x],y>0&&(h/=y);break}return e._.numberToFormat(h,g,f)+C},unformat:function(h){var g,f,x=e._.stringToNumber(h);if(x){for(g=i.suffixes.length-1;g>=0;g--){if(e._.includes(h,i.suffixes[g])){f=Math.pow(i.base,g);break}if(e._.includes(h,r.suffixes[g])){f=Math.pow(r.base,g);break}}x*=f||1}return x}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(h,g,f){var x,y,b,w=e.locales[e.options.currentLocale],C={before:g.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:g.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(g=g.replace(/\s?\$\s?/,""),x=e._.numberToFormat(h,g,f),h>=0?(C.before=C.before.replace(/[\-\(]/,""),C.after=C.after.replace(/[\-\)]/,"")):h<0&&!e._.includes(C.before,"-")&&!e._.includes(C.before,"(")&&(C.before="-"+C.before),b=0;b<C.before.length;b++)switch(y=C.before[b],y){case"$":x=e._.insert(x,w.currency.symbol,b);break;case" ":x=e._.insert(x," ",b+w.currency.symbol.length-1)}for(b=C.after.length-1;b>=0;b--)switch(y=C.after[b],y){case"$":x=b===C.after.length-1?x+w.currency.symbol:e._.insert(x,w.currency.symbol,-(C.after.length-(1+b)));break;case" ":x=b===C.after.length-1?x+" ":e._.insert(x," ",-(C.after.length-(1+b)+w.currency.symbol.length-1))}return x}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(h,g,f){var x=(typeof h!="number"||e._.isNaN(h)?"0e+0":h.toExponential()).split("e");return g=g.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(x[0]),g,f)+"e"+x[1]},unformat:function(h){var g=e._.includes(h,"e+")?h.split("e+"):h.split("e-"),f=Number(g[0]),x=Number(g[1]);return x=e._.includes(h,"e-")?x*=-1:x,e._.reduce([f,Math.pow(10,x)],(function(y,b,w,C){var v=e._.correctionFactor(y,b);return y*v*(b*v)/(v*v)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(h,g,f){var x=e.locales[e.options.currentLocale],y=e._.includes(g," o")?" ":"";return g=g.replace(/\s?o/,""),y+=x.ordinal(h),e._.numberToFormat(h,g,f)+y}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(h,g,f){var x,y=e._.includes(g," %")?" ":"";return e.options.scalePercentBy100&&(h*=100),g=g.replace(/\s?\%/,""),x=e._.numberToFormat(h,g,f),e._.includes(x,")")?((x=x.split("")).splice(-1,0,y+"%"),x=x.join("")):x=x+y+"%",x},unformat:function(h){var g=e._.stringToNumber(h);return e.options.scalePercentBy100?.01*g:g}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(h,g,f){var x=Math.floor(h/60/60),y=Math.floor((h-60*x*60)/60),b=Math.round(h-60*x*60-60*y);return x+":"+(y<10?"0"+y:y)+":"+(b<10?"0"+b:b)},unformat:function(h){var g=h.split(":"),f=0;return g.length===3?(f+=60*Number(g[0])*60,f+=60*Number(g[1]),f+=Number(g[2])):g.length===2&&(f+=60*Number(g[0]),f+=Number(g[1])),Number(f)}}),e}))),jse.exports);const Nf=xr(Oun);function M7(e,...n){const i=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach((r=>i.searchParams.append("args[]",r))),`Minified MUI error #${e}; visit ${i} for the full message.`}const k7="$$material";var Fun={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 Run(e){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=e(i)),n[i]}}var zun=/[A-Z]|^ms/g,Nun=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZSt=function(e){return e.charCodeAt(1)===45},v$e=function(e){return e!=null&&typeof e!="boolean"},Ese=Run((function(e){return ZSt(e)?e:e.replace(zun,"-$&").toLowerCase()})),A$e=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nun,(function(i,r,s){return T9={name:r,styles:s,next:T9},r}))}return Fun[e]===1||ZSt(e)||typeof n!="number"||n===0?n:n+"px"};function XZ(e,n,i){if(i==null)return"";var r=i;if(r.__emotion_styles!==void 0)return r;switch(typeof i){case"boolean":return"";case"object":var s=i;if(s.anim===1)return T9={name:s.name,styles:s.styles,next:T9},s.name;var l=i;if(l.styles!==void 0){var c=l.next;if(c!==void 0)for(;c!==void 0;)T9={name:c.name,styles:c.styles,next:T9},c=c.next;return l.styles+";"}return(function(d,u,p){var h="";if(Array.isArray(p))for(var g=0;g<p.length;g++)h+=XZ(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;v$e(y)&&(h+=Ese(f)+":"+A$e(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)v$e(x[b])&&(h+=Ese(f)+":"+A$e(f,x[b])+";");else{var w=XZ(d,u,x);switch(f){case"animation":case"animationName":h+=Ese(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h})(e,n,i)}return i}var T9,S$e=/label:\s*([^\s;{]+)\s*(;|$)/g,k$e,j$e,$$e,E$e,I$e,D$e={exports:{}};function _un(){return j$e?k$e:(j$e=1,k$e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Vun(){if(E$e)return $$e;E$e=1;var e=_un();function n(){}function i(){}return i.resetWarningCache=n,$$e=function(){function r(c,d,u,p,h,g){if(g!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function s(){return r}r.isRequired=r;var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:i,resetWarningCache:n};return l.PropTypes=l,l}}function iwe(){return I$e||(I$e=1,D$e.exports=Vun()()),D$e.exports}const _n=xr(iwe());var Hun=(function(){function e(i){var r=this;this._insertTag=function(s){var l;l=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,l),r.tags.push(s)},this.isSpeedy=i.speedy===void 0||i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(i){i.forEach(this._insertTag)},n.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag((function(l){var c=document.createElement("style");return c.setAttribute("data-emotion",l.key),l.nonce!==void 0&&c.setAttribute("nonce",l.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c})(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=(function(l){if(l.sheet)return l.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===l)return document.styleSheets[c]})(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},n.flush=function(){this.tags.forEach((function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)})),this.tags=[],this.ctr=0},e})(),E1="-ms-",T$e="-moz-",Ja="-webkit-",JSt="comm",owe="rule",rwe="decl",XSt="@keyframes",Uun=Math.abs,yne=String.fromCharCode,Wun=Object.assign;function ekt(e){return e.trim()}function es(e,n,i){return e.replace(n,i)}function K5e(e,n){return e.indexOf(n)}function Gu(e,n){return 0|e.charCodeAt(n)}function kz(e,n,i){return e.slice(n,i)}function p5(e){return e.length}function awe(e){return e.length}function VV(e,n){return n.push(e),e}var bne=1,cT=1,tkt=0,ym=0,Xc=0,mL="";function wne(e,n,i,r,s,l,c){return{value:e,root:n,parent:i,type:r,props:s,children:l,line:bne,column:cT,length:c,return:""}}function bB(e,n){return Wun(wne("",null,null,"",null,null,0),e,{length:-e.length},n)}function S0(){return Xc=ym<tkt?Gu(mL,ym++):0,cT++,Xc===10&&(cT=1,bne++),Xc}function X5(){return Gu(mL,ym)}function dK(){return ym}function YN(e,n){return kz(mL,e,n)}function jz(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 nkt(e){return bne=cT=1,tkt=p5(mL=e),ym=0,[]}function ikt(e){return mL="",e}function uK(e){return ekt(YN(ym-1,Z5e(e===91?e+2:e===40?e+1:e)))}function Qun(e){for(;(Xc=X5())&&Xc<33;)S0();return jz(e)>2||jz(Xc)>3?"":" "}function Yun(e,n){for(;--n&&S0()&&!(Xc<48||Xc>102||Xc>57&&Xc<65||Xc>70&&Xc<97););return YN(e,dK()+(n<6&&X5()==32&&S0()==32))}function Z5e(e){for(;S0();)switch(Xc){case e:return ym;case 34:case 39:e!==34&&e!==39&&Z5e(Xc);break;case 40:e===41&&Z5e(e);break;case 92:S0()}return ym}function Gun(e,n){for(;S0()&&e+Xc!==57&&(e+Xc!==84||X5()!==47););return"/*"+YN(n,ym-1)+"*"+yne(e===47?e:S0())}function qun(e){for(;!jz(X5());)S0();return YN(e,ym)}function Kun(e){return ikt(pK("",null,null,null,[""],e=nkt(e),0,[0],e))}function pK(e,n,i,r,s,l,c,d,u){for(var p=0,h=0,g=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,A="",S=s,$=l,j=r,E=A;w;)switch(y=v,v=S0()){case 40:if(y!=108&&Gu(E,g-1)==58){K5e(E+=es(uK(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=uK(v);break;case 9:case 10:case 13:case 32:E+=Qun(y);break;case 92:E+=Yun(dK()-1,7);continue;case 47:switch(X5()){case 42:case 47:VV(Zun(Gun(S0(),dK()),n,i),u);break;default:E+="/"}break;case 123*b:d[p++]=p5(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=es(E,/\f/g,"")),x>0&&p5(E)-g&&VV(x>32?B$e(E+";",r,i,g-1):B$e(es(E," ","")+";",r,i,g-2),u);break;case 59:E+=";";default:if(VV(j=L$e(E,n,i,p,h,s,d,A,S=[],$=[],g),l),v===123)if(h===0)pK(E,n,j,j,S,l,g,d,$);else switch(f===99&&Gu(E,3)===110?100:f){case 100:case 108:case 109:case 115:pK(e,j,j,r&&VV(L$e(e,j,j,0,0,s,d,A,s,S=[],g),$),s,$,g,d,r?S:$);break;default:pK(E,j,j,j,[""],$,0,d,$)}}p=h=x=0,b=C=1,A=E="",g=c;break;case 58:g=1+p5(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Xc=ym>0?Gu(mL,--ym):0,cT--,Xc===10&&(cT=1,bne--),Xc==125))continue}switch(E+=yne(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(p5(E)-1)*C,C=1;break;case 64:X5()===45&&(E+=uK(S0())),f=X5(),h=g=p5(A=E+=qun(dK())),v++;break;case 45:y===45&&p5(E)==2&&(b=0)}}return l}function L$e(e,n,i,r,s,l,c,d,u,p,h){for(var g=s-1,f=s===0?l:[""],x=awe(f),y=0,b=0,w=0;y<r;++y)for(var C=0,v=kz(e,g+1,g=Uun(b=c[y])),A=e;C<x;++C)(A=ekt(b>0?f[C]+" "+v:es(v,/&\f/g,f[C])))&&(u[w++]=A);return wne(e,n,i,s===0?owe:d,u,p,h)}function Zun(e,n,i){return wne(e,n,i,JSt,yne(Xc),kz(e,2,-2),0)}function B$e(e,n,i,r){return wne(e,n,i,rwe,kz(e,0,r),kz(e,r+1,-1),r)}function bD(e,n){for(var i="",r=awe(e),s=0;s<r;s++)i+=n(e[s],s,e,n)||"";return i}function Jun(e,n,i,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case rwe:return e.return=e.return||e.value;case JSt:return"";case XSt:return e.return=e.value+"{"+bD(e.children,r)+"}";case owe:e.value=e.props.join(",")}return p5(i=bD(e.children,r))?e.return=e.value+"{"+i+"}":""}function Xun(e){return function(n){n.root||(n=n.return)&&e(n)}}var e1n=function(e,n,i){for(var r=0,s=0;r=s,s=X5(),r===38&&s===12&&(n[i]=1),!jz(s);)S0();return YN(e,ym)},t1n=function(e,n){return ikt((function(i,r){var s=-1,l=44;do switch(jz(l)){case 0:l===38&&X5()===12&&(r[s]=1),i[s]+=e1n(ym-1,r,s);break;case 2:i[s]+=uK(l);break;case 4:if(l===44){i[++s]=X5()===58?"&\f":"",r[s]=i[s].length;break}default:i[s]+=yne(l)}while(l=S0());return i})(nkt(e),n))},P$e=new WeakMap,n1n=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(!(i=i.parent))return;if((e.props.length!==1||n.charCodeAt(0)===58||P$e.get(i))&&!r){P$e.set(e,!0);for(var s=[],l=t1n(n,s),c=i.props,d=0,u=0;d<l.length;d++)for(var p=0;p<c.length;p++,u++)e.props[u]=s[d]?l[d].replace(/&\f/g,c[p]):c[p]+" "+l[d]}}},i1n=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function okt(e,n){switch((function(i,r){return 45^Gu(i,0)?(((r<<2^Gu(i,0))<<2^Gu(i,1))<<2^Gu(i,2))<<2^Gu(i,3):0})(e,n)){case 5103:return Ja+"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 Ja+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ja+e+T$e+e+E1+e+e;case 6828:case 4268:return Ja+e+E1+e+e;case 6165:return Ja+e+E1+"flex-"+e+e;case 5187:return Ja+e+es(e,/(\w+).+(:[^]+)/,Ja+"box-$1$2"+E1+"flex-$1$2")+e;case 5443:return Ja+e+E1+"flex-item-"+es(e,/flex-|-self/,"")+e;case 4675:return Ja+e+E1+"flex-line-pack"+es(e,/align-content|flex-|-self/,"")+e;case 5548:return Ja+e+E1+es(e,"shrink","negative")+e;case 5292:return Ja+e+E1+es(e,"basis","preferred-size")+e;case 6060:return Ja+"box-"+es(e,"-grow","")+Ja+e+E1+es(e,"grow","positive")+e;case 4554:return Ja+es(e,/([^-])(transform)/g,"$1"+Ja+"$2")+e;case 6187:return es(es(es(e,/(zoom-|grab)/,Ja+"$1"),/(image-set)/,Ja+"$1"),e,"")+e;case 5495:case 3959:return es(e,/(image-set\([^]*)/,Ja+"$1$`$1");case 4968:return es(es(e,/(.+:)(flex-)?(.*)/,Ja+"box-pack:$3"+E1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ja+e+e;case 4095:case 3583:case 4068:case 2532:return es(e,/(.+)-inline(.+)/,Ja+"$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(p5(e)-1-n>6)switch(Gu(e,n+1)){case 109:if(Gu(e,n+4)!==45)break;case 102:return es(e,/(.+:)(.+)-([^]+)/,"$1"+Ja+"$2-$3$1"+T$e+(Gu(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~K5e(e,"stretch")?okt(es(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Gu(e,n+1)!==115)break;case 6444:switch(Gu(e,p5(e)-3-(~K5e(e,"!important")&&10))){case 107:return es(e,":",":"+Ja)+e;case 101:return es(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ja+(Gu(e,14)===45?"inline-":"")+"box$3$1"+Ja+"$2$3$1"+E1+"$2box$3")+e}break;case 5936:switch(Gu(e,n+11)){case 114:return Ja+e+E1+es(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ja+e+E1+es(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ja+e+E1+es(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ja+e+E1+e+e}return e}var o1n=[function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case rwe:e.return=okt(e.value,e.length);break;case XSt:return bD([bB(e,{value:es(e.value,"@","@"+Ja)})],r);case owe:if(e.length)return(function(s,l){return s.map(l).join("")})(e.props,(function(s){switch((function(l,c){return(l=c.exec(l))?l[0]:l})(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bD([bB(e,{props:[es(s,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bD([bB(e,{props:[es(s,/:(plac\w+)/,":"+Ja+"input-$1")]}),bB(e,{props:[es(s,/:(plac\w+)/,":-moz-$1")]}),bB(e,{props:[es(s,/:(plac\w+)/,E1+"input-$1")]})],r)}return""}))}}],rkt=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,(function(x){x.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))}))}var r,s=e.stylisPlugins||o1n,l={},c=[];r=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++)l[y[b]]=!0;c.push(x)}));var d,u,p=[n1n,i1n],h=[Jun,Xun((function(x){u.insert(x)}))],g=(function(x){var y=awe(x);return function(b,w,C,v){for(var A="",S=0;S<y;S++)A+=x[S](b,w,C,v)||"";return A}})(p.concat(s,h));d=function(x,y,b,w){u=b,(function(C){bD(Kun(C),g)})(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Hun({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:d};return f.sheet.hydrate(c),f};function akt(e){const{styles:n,defaultTheme:i={}}=e,r=typeof n=="function"?s=>n((function(l){return l==null||Object.keys(l).length===0})(s)?i:s):n;return t.jsx(QN,{styles:r})}const M$e=[];function G9(e){return M$e[0]=e,(function(n,i,r){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,l="";T9=void 0;var c=n[0];c==null||c.raw===void 0?(s=!1,l+=XZ(r,i,c)):l+=c[0];for(var d=1;d<n.length;d++)l+=XZ(r,i,n[d]),s&&(l+=c[d]);S$e.lastIndex=0;for(var u,p="";(u=S$e.exec(l))!==null;)p+="-"+u[1];var h=(function(g){for(var f,x=0,y=0,b=g.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&g.charCodeAt(y+2))<<16;case 2:x^=(255&g.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&g.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)})(l)+p;return{name:h,styles:l,next:T9}})(M$e)}var O$e,F$e,R$e={exports:{}},Ds={};function r1n(){if(O$e)return Ds;O$e=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case i:case s:case r:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case g:case h:case l:return b;default:return w}}case n:return w}}}return Ds.ContextConsumer=l,Ds.ContextProvider=c,Ds.Element=e,Ds.ForwardRef=d,Ds.Fragment=i,Ds.Lazy=g,Ds.Memo=h,Ds.Portal=n,Ds.Profiler=s,Ds.StrictMode=r,Ds.Suspense=u,Ds.SuspenseList=p,Ds.isContextConsumer=function(b){return y(b)===l},Ds.isContextProvider=function(b){return y(b)===c},Ds.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ds.isForwardRef=function(b){return y(b)===d},Ds.isFragment=function(b){return y(b)===i},Ds.isLazy=function(b){return y(b)===g},Ds.isMemo=function(b){return y(b)===h},Ds.isPortal=function(b){return y(b)===n},Ds.isProfiler=function(b){return y(b)===s},Ds.isStrictMode=function(b){return y(b)===r},Ds.isSuspense=function(b){return y(b)===u},Ds.isSuspenseList=function(b){return y(b)===p},Ds.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===i||b===s||b===r||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===c||b.$$typeof===l||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},Ds.typeOf=y,Ds}function a1n(){return F$e||(F$e=1,R$e.exports=r1n()),R$e.exports}var skt=a1n();function Xy(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 lkt(e){if(m.isValidElement(e)||skt.isValidElementType(e)||!Xy(e))return e;const n={};return Object.keys(e).forEach((i=>{n[i]=lkt(e[i])})),n}function G1(e,n,i={clone:!0}){const r=i.clone?{...e}:e;return Xy(e)&&Xy(n)&&Object.keys(n).forEach((s=>{m.isValidElement(n[s])||skt.isValidElementType(n[s])?r[s]=n[s]:Xy(n[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Xy(e[s])?r[s]=G1(e[s],n[s],i):i.clone?r[s]=Xy(n[s])?lkt(n[s]):n[s]:r[s]=n[s]})),r}function s1n(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:r=5,...s}=e,l=(h=>{const g=Object.keys(h).map((f=>({key:f,val:h[f]})))||[];return g.sort(((f,x)=>f.val-x.val)),g.reduce(((f,x)=>({...f,[x.key]:x.val})),{})})(n),c=Object.keys(l);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${i})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-r/100}${i})`}function p(h,g){const f=c.indexOf(g);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${i}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:g)-r/100}${i})`}return{keys:c,values:l,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const g=c.indexOf(h);return g===0?d(c[1]):g===c.length-1?u(c[g]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:i,...s}}function z$e(e,n){if(!e.containerQueries)return n;const i=Object.keys(n).filter((r=>r.startsWith("@container"))).sort(((r,s)=>{const l=/min-width:\s*([0-9.]+)/;return+(r.match(l)?.[1]||0)-+(s.match(l)?.[1]||0)}));return i.length?i.reduce(((r,s)=>{const l=n[s];return delete r[s],r[s]=l,r}),{...n}):n}const l1n={borderRadius:4};function iR(e,n){return n?G1(e,n,{clone:!1}):e}const Cne={xs:0,sm:600,md:900,lg:1200,xl:1536},N$e={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cne[e]}px)`},c1n={containerQueries:e=>({up:n=>{let i=typeof n=="number"?n:Cne[n]||n;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function O7(e,n,i){const r=e.theme||{};if(Array.isArray(n)){const s=r.breakpoints||N$e;return n.reduce(((l,c,d)=>(l[s.up(s.keys[d])]=i(n[d]),l)),{})}if(typeof n=="object"){const s=r.breakpoints||N$e;return Object.keys(n).reduce(((l,c)=>{if((function(d,u){return u==="@"||u.startsWith("@")&&(d.some((p=>u.startsWith(`@${p}`)))||!!u.match(/^@\d/))})(s.keys,c)){const d=(function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,f]=h,x=Number.isNaN(+g)?g||0:+g;return u.containerQueries(f).up(x)})(r.containerQueries?r:c1n,c);d&&(l[d]=i(n[c],c))}else if(Object.keys(s.values||Cne).includes(c))l[s.up(c)]=i(n[c],c);else{const d=c;l[d]=n[d]}return l}),{})}return i(n)}function _$e(e,n){return e.reduce(((i,r)=>{const s=i[r];return(!s||Object.keys(s).length===0)&&delete i[r],i}),n)}function tr(e){if(typeof e!="string")throw new Error(M7(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vne(e,n,i=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&i){const r=`vars.${n}`.split(".").reduce(((s,l)=>s&&s[l]?s[l]:null),e);if(r!=null)return r}return n.split(".").reduce(((r,s)=>r&&r[s]!=null?r[s]:null),e)}function eJ(e,n,i,r=i){let s;return s=typeof e=="function"?e(i):Array.isArray(e)?e[i]||r:vne(e,i)||r,n&&(s=n(s,r,e)),s}function Bc(e){const{prop:n,cssProperty:i=e.prop,themeKey:r,transform:s}=e,l=c=>{if(c[n]==null)return null;const d=c[n],u=vne(c.theme,r)||{};return O7(c,d,(p=>{let h=eJ(u,s,p);return p===h&&typeof p=="string"&&(h=eJ(u,s,`${n}${p==="default"?"":tr(p)}`,p)),i===!1?h:{[i]:h}}))};return l.propTypes={},l.filterProps=[n],l}const d1n={m:"margin",p:"padding"},u1n={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},V$e={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p1n=(function(e){const n={};return i=>(n[i]===void 0&&(n[i]=e(i)),n[i])})((e=>{if(e.length>2){if(!V$e[e])return[e];e=V$e[e]}const[n,i]=e.split(""),r=d1n[n],s=u1n[i]||"";return Array.isArray(s)?s.map((l=>r+l)):[r+s]})),ckt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dkt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function GN(e,n,i,r){const s=vne(e,n,!0)??i;return typeof s=="number"||typeof s=="string"?l=>typeof l=="string"?l:typeof s=="string"?s.startsWith("var(")&&l===0?0:s.startsWith("var(")&&l===1?s:`calc(${l} * ${s})`:s*l:Array.isArray(s)?l=>{if(typeof l=="string")return l;const c=Math.abs(l),d=s[c];return l>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof s=="function"?s:()=>{}}function swe(e){return GN(e,"spacing",8)}function qN(e,n){return typeof n=="string"||n==null?n:e(n)}function h1n(e,n,i,r){if(!n.includes(i))return null;const s=(function(l,c){return d=>l.reduce(((u,p)=>(u[p]=qN(c,d),u)),{})})(p1n(i),r);return O7(e,e[i],s)}function ukt(e,n){const i=swe(e.theme);return Object.keys(e).map((r=>h1n(e,n,r,i))).reduce(iR,{})}function rc(e){return ukt(e,ckt)}function ac(e){return ukt(e,dkt)}function pkt(e=8,n=swe({spacing:e})){if(e.mui)return e;const i=(...r)=>(r.length===0?[1]:r).map((s=>{const l=n(s);return typeof l=="number"?`${l}px`:l})).join(" ");return i.mui=!0,i}function Ane(...e){const n=e.reduce(((r,s)=>(s.filterProps.forEach((l=>{r[l]=s})),r)),{}),i=r=>Object.keys(r).reduce(((s,l)=>n[l]?iR(s,n[l](r)):s),{});return i.propTypes={},i.filterProps=e.reduce(((r,s)=>r.concat(s.filterProps)),[]),i}function Fg(e){return typeof e!="number"?e:`${e}px solid`}function b2(e,n){return Bc({prop:e,themeKey:"borders",transform:n})}rc.propTypes={},rc.filterProps=ckt,ac.propTypes={},ac.filterProps=dkt;const m1n=b2("border",Fg),g1n=b2("borderTop",Fg),f1n=b2("borderRight",Fg),x1n=b2("borderBottom",Fg),y1n=b2("borderLeft",Fg),b1n=b2("borderColor"),w1n=b2("borderTopColor"),C1n=b2("borderRightColor"),v1n=b2("borderBottomColor"),A1n=b2("borderLeftColor"),S1n=b2("outline",Fg),k1n=b2("outlineColor"),hK=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=GN(e.theme,"shape.borderRadius",4),i=r=>({borderRadius:qN(n,r)});return O7(e,e.borderRadius,i)}return null};hK.propTypes={},hK.filterProps=["borderRadius"],Ane(m1n,g1n,f1n,x1n,y1n,b1n,w1n,C1n,v1n,A1n,hK,S1n,k1n);const tJ=e=>{if(e.gap!==void 0&&e.gap!==null){const n=GN(e.theme,"spacing",8),i=r=>({gap:qN(n,r)});return O7(e,e.gap,i)}return null};tJ.propTypes={},tJ.filterProps=["gap"];const nJ=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=GN(e.theme,"spacing",8),i=r=>({columnGap:qN(n,r)});return O7(e,e.columnGap,i)}return null};nJ.propTypes={},nJ.filterProps=["columnGap"];const iJ=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=GN(e.theme,"spacing",8),i=r=>({rowGap:qN(n,r)});return O7(e,e.rowGap,i)}return null};iJ.propTypes={},iJ.filterProps=["rowGap"];function wD(e,n){return n==="grey"?n:e}Ane(tJ,nJ,iJ,Bc({prop:"gridColumn"}),Bc({prop:"gridRow"}),Bc({prop:"gridAutoFlow"}),Bc({prop:"gridAutoColumns"}),Bc({prop:"gridAutoRows"}),Bc({prop:"gridTemplateColumns"}),Bc({prop:"gridTemplateRows"}),Bc({prop:"gridTemplateAreas"}),Bc({prop:"gridArea"}));function p0(e){return e<=1&&e!==0?100*e+"%":e}Ane(Bc({prop:"color",themeKey:"palette",transform:wD}),Bc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wD}),Bc({prop:"backgroundColor",themeKey:"palette",transform:wD}));const j1n=Bc({prop:"width",transform:p0}),lwe=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=i=>{const r=e.theme?.breakpoints?.values?.[i]||Cne[i];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:p0(i)}};return O7(e,e.maxWidth,n)}return null};lwe.filterProps=["maxWidth"];const $1n=Bc({prop:"minWidth",transform:p0}),E1n=Bc({prop:"height",transform:p0}),I1n=Bc({prop:"maxHeight",transform:p0}),D1n=Bc({prop:"minHeight",transform:p0});Bc({prop:"size",cssProperty:"width",transform:p0}),Bc({prop:"size",cssProperty:"height",transform:p0});Ane(j1n,lwe,$1n,E1n,I1n,D1n,Bc({prop:"boxSizing"}));const Sne={border:{themeKey:"borders",transform:Fg},borderTop:{themeKey:"borders",transform:Fg},borderRight:{themeKey:"borders",transform:Fg},borderBottom:{themeKey:"borders",transform:Fg},borderLeft:{themeKey:"borders",transform:Fg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fg},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hK},color:{themeKey:"palette",transform:wD},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wD},backgroundColor:{themeKey:"palette",transform:wD},p:{style:ac},pt:{style:ac},pr:{style:ac},pb:{style:ac},pl:{style:ac},px:{style:ac},py:{style:ac},padding:{style:ac},paddingTop:{style:ac},paddingRight:{style:ac},paddingBottom:{style:ac},paddingLeft:{style:ac},paddingX:{style:ac},paddingY:{style:ac},paddingInline:{style:ac},paddingInlineStart:{style:ac},paddingInlineEnd:{style:ac},paddingBlock:{style:ac},paddingBlockStart:{style:ac},paddingBlockEnd:{style:ac},m:{style:rc},mt:{style:rc},mr:{style:rc},mb:{style:rc},ml:{style:rc},mx:{style:rc},my:{style:rc},margin:{style:rc},marginTop:{style:rc},marginRight:{style:rc},marginBottom:{style:rc},marginLeft:{style:rc},marginX:{style:rc},marginY:{style:rc},marginInline:{style:rc},marginInlineStart:{style:rc},marginInlineEnd:{style:rc},marginBlock:{style:rc},marginBlockStart:{style:rc},marginBlockEnd:{style:rc},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:tJ},rowGap:{style:iJ},columnGap:{style:nJ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:p0},maxWidth:{style:lwe},minWidth:{transform:p0},height:{transform:p0},maxHeight:{transform:p0},minHeight:{transform:p0},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"}},IS=(function(){function e(n,i,r,s){const l={[n]:i,theme:r},c=s[n];if(!c)return{[n]:i};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[n]:i};const g=vne(r,u)||{};return h?h(l):O7(l,i,(f=>{let x=eJ(g,p,f);return f===x&&typeof f=="string"&&(x=eJ(g,p,`${n}${f==="default"?"":tr(f)}`,f)),d===!1?x:{[d]:x}}))}return function n(i){const{sx:r,theme:s={},nested:l}=i||{};if(!r)return null;const c=s.unstable_sxConfig??Sne;function d(u){let p=u;if(typeof u=="function")p=u(s);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)),{})||{}})(s.breakpoints),g=Object.keys(h);let f=h;return Object.keys(p).forEach((x=>{const y=(function(b,w){return typeof b=="function"?b(w):b})(p[x],s);if(y!=null)if(typeof y=="object")if(c[x])f=iR(f,e(x,y,s,c));else{const b=O7({theme:s},y,(w=>({[x]:w})));(function(...w){const C=w.reduce(((A,S)=>A.concat(Object.keys(S))),[]),v=new Set(C);return w.every((A=>v.size===Object.keys(A).length))})(b,y)?f[x]=n({sx:y,theme:s,nested:!0}):f=iR(f,b)}else f=iR(f,e(x,y,s,c))})),!l&&s.modularCssLayers?{"@layer sx":z$e(s,_$e(g,f))}:z$e(s,_$e(g,f))}return Array.isArray(r)?r.map(d):d(r)}})();function T1n(e,n){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||typeof i.getColorSchemeSelector!="function")return{};let r=i.getColorSchemeSelector(e);return r==="&"?n:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:n})}return i.palette.mode===e?n:{}}function cwe(e={},...n){const{breakpoints:i={},palette:r={},spacing:s,shape:l={},...c}=e;let d=G1({breakpoints:s1n(i),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:pkt(s),shape:{...l1n,...l}},c);return d=(function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const g={},f=x=>(h(g,x),g);return h(f),{...u,containerQueries:f}})(d),d.applyStyles=T1n,d=n.reduce(((u,p)=>G1(u,p)),d),d.unstable_sxConfig={...Sne,...c?.unstable_sxConfig},d.unstable_sx=function(u){return IS({sx:u,theme:this})},d}function J5e(e=null){const n=m.useContext(HSt);return!n||(function(i){return Object.keys(i).length===0})(n)?e:n}IS.filterProps=["sx"];const L1n=cwe();function hkt(e=L1n){return J5e(e)}function H$e(e){const n=G9(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function mkt({styles:e,themeId:n,defaultTheme:i={}}){const r=hkt(i),s=n&&r[n]||r;let l=typeof e=="function"?e(s):e;return s.modularCssLayers&&(l=Array.isArray(l)?l.map((c=>H$e(typeof c=="function"?c(s):c))):H$e(l)),t.jsx(akt,{styles:l})}const U$e=e=>e,B1n=(()=>{let e=U$e;return{configure(n){e=n},generate:n=>e(n),reset(){e=U$e}}})();function gkt(e){var n,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(i=gkt(e[n]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function ir(){for(var e,n,i=0,r="",s=arguments.length;i<s;i++)(e=arguments[i])&&(n=gkt(e))&&(r&&(r+=" "),r+=n);return r}const P1n={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 ns(e,n,i="Mui"){const r=P1n[n];return r?`${i}-${r}`:`${B1n.generate(e)}-${n}`}function La(e,n,i="Mui"){const r={};return n.forEach((s=>{r[s]=ns(e,s,i)})),r}function fkt(e){const{variants:n,...i}=e,r={variants:n,style:G9(i),isProcessed:!0};return r.style===i||n&&n.forEach((s=>{typeof s.style!="function"&&(s.style=G9(s.style))})),r}const M1n=cwe();function Ise(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yA(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function O1n(e){return e?(n,i)=>i[e]:null}function mK(e,n,i){const r=typeof n=="function"?n(e):n;if(Array.isArray(r))return r.flatMap((s=>mK(e,s,i)));if(Array.isArray(r?.variants)){let s;if(r.isProcessed)s=i?yA(r.style,i):r.style;else{const{variants:l,...c}=r;s=i?yA(G9(c),i):c}return xkt(e,r.variants,[s],i)}return r?.isProcessed?i?yA(G9(r.style),i):r.style:i?yA(G9(r),i):r}function xkt(e,n,i=[],r=void 0){let s;e:for(let l=0;l<n.length;l+=1){const c=n[l];if(typeof c.props=="function"){if(s??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(s))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"?(s??={...e,...e.ownerState,ownerState:e.ownerState},i.push(r?yA(G9(c.style(s)),r):c.style(s))):i.push(r?yA(G9(c.style),r):c.style)}return i}function F1n(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function X5e(e,n,i=!1){const r={...n};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const l=s;if(l==="components"||l==="slots")r[l]={...e[l],...r[l]};else if(l==="componentsProps"||l==="slotProps"){const c=e[l],d=n[l];if(d)if(c){r[l]={...d};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const p=u;r[l][p]=X5e(c[p],d[p],i)}}else r[l]=d;else r[l]=c||{}}else l==="className"&&i&&n.className?r.className=ir(e?.className,n?.className):l==="style"&&i&&n.style?r.style={...e?.style,...n?.style}:r[l]===void 0&&(r[l]=e[l])}return r}const D0=typeof window<"u"?m.useLayoutEffect:m.useEffect;function dwe(e,n=0,i=1){return(function(r,s=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(s,Math.min(r,l))})(e,n,i)}function p8(e){if(e.type)return e;if(e.charAt(0)==="#")return p8((function(l){l=l.slice(1);const c=new RegExp(`.{1,${l.length>=6?2:1}}`,"g");let d=l.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("("),i=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(M7(9,e));let r,s=e.substring(n+1,e.length-1);if(i==="color"){if(s=s.split(" "),r=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(M7(10,r))}else s=s.split(",");return s=s.map((l=>parseFloat(l))),{type:i,values:s,colorSpace:r}}const KO=(e,n)=>{try{return(i=>{const r=p8(i);return r.values.slice(0,3).map(((s,l)=>r.type.includes("hsl")&&l!==0?`${s}%`:s)).join(" ")})(e)}catch{return e}};function kne(e){const{type:n,colorSpace:i}=e;let{values:r}=e;return n.includes("rgb")?r=r.map(((s,l)=>l<3?parseInt(s,10):s)):n.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=n.includes("color")?`${i} ${r.join(" ")}`:`${r.join(", ")}`,`${n}(${r})`}function ykt(e){e=p8(e);const{values:n}=e,i=n[0],r=n[1]/100,s=n[2]/100,l=r*Math.min(s,1-s),c=(p,h=(p+i/30)%12)=>s-l*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])),kne({type:d,values:u})}function exe(e){let n=(e=p8(e)).type==="hsl"||e.type==="hsla"?p8(ykt(e)).values:e.values;return n=n.map((i=>(e.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4))),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function oJ(e,n){return e=p8(e),n=dwe(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,kne(e)}function Jw(e,n,i){try{return oJ(e,n)}catch{return e}}function jne(e,n){if(e=p8(e),n=dwe(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]*=1-n;return kne(e)}function xs(e,n,i){try{return jne(e,n)}catch{return e}}function $ne(e,n){if(e=p8(e),n=dwe(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let i=0;i<3;i+=1)e.values[i]+=(255-e.values[i])*n;else if(e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*n;return kne(e)}function ys(e,n,i){try{return $ne(e,n)}catch{return e}}function HV(e,n,i){try{return(function(r,s=.15){return exe(r)>.5?jne(r,s):$ne(r,s)})(e,n)}catch{return e}}const bkt=m.createContext(null);function uwe(){return m.useContext(bkt)}const R1n=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function z1n(e){const{children:n,theme:i}=e,r=uwe(),s=m.useMemo((()=>{const l=r===null?{...i}:(function(c,d){return typeof d=="function"?d(c):{...c,...d}})(r,i);return l!=null&&(l[R1n]=r!==null),l}),[i,r]);return t.jsx(bkt.Provider,{value:s,children:n})}const wkt=m.createContext();function N1n({value:e,...n}){return t.jsx(wkt.Provider,{value:e??!0,...n})}const Ene=()=>m.useContext(wkt)??!1,Ckt=m.createContext(void 0);function _1n({value:e,children:n}){return t.jsx(Ckt.Provider,{value:e,children:n})}function V1n({props:e,name:n}){return(function(i){const{theme:r,name:s,props:l}=i;if(!r||!r.components||!r.components[s])return l;const c=r.components[s];return c.defaultProps?X5e(c.defaultProps,l,r.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?l:X5e(c,l,r.components.mergeClassNameAndStyle)})({props:e,name:n,theme:{components:m.useContext(Ckt)}})}let W$e=0;const Q$e={...bsn}.useId;function Ine(e){if(Q$e!==void 0){const n=Q$e();return e??n}return(function(n){const[i,r]=m.useState(n),s=n||i;return m.useEffect((()=>{i==null&&(W$e+=1,r(`mui-${W$e}`))}),[i]),s})(e)}const Y$e={};function G$e(e,n,i,r=!1){return m.useMemo((()=>{const s=e&&n[e]||n;if(typeof i=="function"){const l=i(s),c=e?{...n,[e]:l}:l;return r?()=>c:c}return e?{...n,[e]:i}:{...n,...i}}),[e,n,i,r])}function vkt(e){const{children:n,theme:i,themeId:r}=e,s=J5e(Y$e),l=uwe()||Y$e,c=G$e(r,s,i),d=G$e(r,l,i,!0),u=(r?c[r]:c).direction==="rtl",p=(function(h){const g=J5e(),f=Ine()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&g===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",D0((()=>{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(mkt,{styles:y}):null})(c);return t.jsx(z1n,{theme:d,children:t.jsx(HSt.Provider,{value:c,children:t.jsx(N1n,{value:u,children:t.jsxs(_1n,{value:r?c[r].components:c.components,children:[p,n]})})})})}const q$e={theme:void 0},txe="mode",nxe="color-scheme",H1n="data-color-scheme";function U1n(){}const W1n=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(i){if(typeof window>"u")return;if(!n)return i;let r;try{r=n.localStorage.getItem(e)}catch{}return r||i},set:i=>{if(n)try{n.localStorage.setItem(e,i)}catch{}},subscribe:i=>{if(!n)return U1n;const r=s=>{const l=s.newValue;s.key===e&&i(l)};return n.addEventListener("storage",r),()=>{n.removeEventListener("storage",r)}}});function Dse(){}function K$e(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Z$e(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 Q1n(e){const{defaultMode:n="light",defaultLightColorScheme:i,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:l=txe,colorSchemeStorageKey:c=nxe,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=W1n,noSsr:p=!1}=e,h=s.join(","),g=s.length>1,f=m.useMemo((()=>u?.({key:l,storageWindow:d})),[u,l,d]),x=m.useMemo((()=>u?.({key:`${c}-light`,storageWindow:d})),[u,c,d]),y=m.useMemo((()=>u?.({key:`${c}-dark`,storageWindow:d})),[u,c,d]),[b,w]=m.useState((()=>{const I=f?.get(n)||n,D=x?.get(i)||i,B=y?.get(r)||r;return{mode:I,systemMode:K$e(I),lightColorScheme:D,darkColorScheme:B}})),[C,v]=m.useState(p||!g);m.useEffect((()=>{v(!0)}),[]);const A=(function(I){return Z$e(I,(D=>D==="light"?I.lightColorScheme:D==="dark"?I.darkColorScheme:void 0))})(b),S=m.useCallback((I=>{w((D=>{if(I===D.mode)return D;const B=I??n;return f?.set(B),{...D,mode:B,systemMode:K$e(B)}}))}),[f,n]),$=m.useCallback((I=>{I?typeof I=="string"?I&&!h.includes(I)?console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`):w((D=>{const B={...D};return Z$e(D,(F=>{F==="light"&&(x?.set(I),B.lightColorScheme=I),F==="dark"&&(y?.set(I),B.darkColorScheme=I)})),B})):w((D=>{const B={...D},F=I.light===null?i:I.light,R=I.dark===null?r:I.dark;return F&&(h.includes(F)?(B.lightColorScheme=F,x?.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),R&&(h.includes(R)?(B.darkColorScheme=R,y?.set(R)):console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`)),B})):w((D=>(x?.set(i),y?.set(r),{...D,lightColorScheme:i,darkColorScheme:r})))}),[h,x,y,i,r]),j=m.useCallback((I=>{b.mode==="system"&&w((D=>{const B=I?.matches?"dark":"light";return D.systemMode===B?D:{...D,systemMode:B}}))}),[b.mode]),E=m.useRef(j);return E.current=j,m.useEffect((()=>{if(typeof window.matchMedia!="function"||!g)return;const I=(...B)=>E.current(...B),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(I),I(D),()=>{D.removeListener(I)}}),[g]),m.useEffect((()=>{if(g){const I=f?.subscribe((F=>{(!F||["light","dark","system"].includes(F))&&S(F||n)}))||Dse,D=x?.subscribe((F=>{(!F||h.match(F))&&$({light:F})}))||Dse,B=y?.subscribe((F=>{(!F||h.match(F))&&$({dark:F})}))||Dse;return()=>{I(),D(),B()}}}),[$,S,h,n,d,g,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?A:void 0,setMode:S,setColorScheme:$}}function Y1n(e=""){function n(...i){if(!i.length)return"";const r=i[0];return typeof r!="string"||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${n(...i.slice(1))})`}return(i,...r)=>`var(--${e?`${e}-`:""}${i}${n(...r)})`}const J$e=(e,n,i,r=[])=>{let s=e;n.forEach(((l,c)=>{c===n.length-1?Array.isArray(s)?s[Number(l)]=i:s&&typeof s=="object"&&(s[l]=i):s&&typeof s=="object"&&(s[l]||(s[l]=r.includes(l)?[]:{}),s=s[l])}))};function Tse(e,n){const{prefix:i,shouldSkipGeneratingVar:r}=n||{},s={},l={},c={};return((d,u,p)=>{(function h(g,f=[],x=[]){Object.entries(g).forEach((([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))}))})(d)})(e,((d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||r&&r(d,u))){const h=`--${i?`${i}-`:""}${d.join("-")}`,g=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some((y=>f.includes(y)))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(s,{[h]:g}),J$e(l,d,`var(${h})`,p),J$e(c,d,`var(${h}, ${g})`,p)}}),(d=>d[0]==="vars")),{css:s,vars:l,varsWithDefaults:c}}function is(e,n,i=void 0){const r={};for(const s in e){const l=e[s];let c="",d=!0;for(let u=0;u<l.length;u+=1){const p=l[u];p&&(c+=(d===!0?"":" ")+n(p),d=!1,i&&i[p]&&(c+=" "+i[p]))}r[s]=c}return r}function Lse(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const $z={black:"#000",white:"#fff"},G1n={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"},q1n="#f3e5f5",K1n="#ce93d8",Z1n="#ba68c8",J1n="#ab47bc",X1n="#9c27b0",epn="#7b1fa2",tpn="#e57373",npn="#ef5350",ipn="#f44336",X$e="#d32f2f",opn="#c62828",rpn="#ffb74d",apn="#ffa726",spn="#ff9800",lpn="#f57c00",cpn="#e65100",dpn="#e3f2fd",upn="#90caf9",eEe="#42a5f5",ppn="#1976d2",hpn="#1565c0",mpn="#4fc3f7",gpn="#29b6f6",fpn="#03a9f4",tEe="#0288d1",xpn="#01579b",ypn="#81c784",bpn="#66bb6a",wpn="#4caf50",Cpn="#388e3c",vpn="#2e7d32",Apn="#1b5e20";function Akt(){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:$z.white,default:$z.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 Skt=Akt();function kkt(){return{text:{primary:$z.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:$z.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 ixe=kkt();function nEe(e,n,i,r){const s=r.light||r,l=r.dark||1.5*r;e[n]||(e.hasOwnProperty(i)?e[n]=e[i]:n==="light"?e.light=$ne(e.main,s):n==="dark"&&(e.dark=jne(e.main,l)))}function iEe(e,n,i,r,s){const l=s.light||s,c=s.dark||1.5*s;n[i]||(n.hasOwnProperty(r)?n[i]=n[r]:i==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(100*l).toFixed(0)}%)`:i==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(100*c).toFixed(0)}%)`))}function pwe(e){const{mode:n="light",contrastThreshold:i=3,tonalOffset:r=.2,colorSpace:s,...l}=e,c=e.primary||(function(b="light"){return b==="dark"?{main:upn,light:dpn,dark:eEe}:{main:ppn,light:eEe,dark:hpn}})(n),d=e.secondary||(function(b="light"){return b==="dark"?{main:K1n,light:q1n,dark:J1n}:{main:X1n,light:Z1n,dark:epn}})(n),u=e.error||(function(b="light"){return b==="dark"?{main:ipn,light:tpn,dark:X$e}:{main:X$e,light:npn,dark:opn}})(n),p=e.info||(function(b="light"){return b==="dark"?{main:gpn,light:mpn,dark:tEe}:{main:tEe,light:fpn,dark:xpn}})(n),h=e.success||(function(b="light"){return b==="dark"?{main:bpn,light:ypn,dark:Cpn}:{main:vpn,light:wpn,dark:Apn}})(n),g=e.warning||(function(b="light"){return b==="dark"?{main:apn,light:rpn,dark:lpn}:{main:"#ed6c02",light:spn,dark:cpn}})(n);function f(b){return s?(function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`})(b):(function(C,v){const A=exe(C),S=exe(v);return(Math.max(A,S)+.05)/(Math.min(A,S)+.05)})(b,ixe.text.primary)>=i?ixe.text.primary:Skt.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:A=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(M7(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(M7(12,w?` (${w})`:"",JSON.stringify(b.main)));return s?(iEe(s,b,"light",v,r),iEe(s,b,"dark",A,r)):(nEe(b,"light",v,r),nEe(b,"dark",A,r)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=Akt():n==="dark"&&(y=kkt()),G1({common:{...$z},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:G1n,contrastThreshold:i,getContrastText:f,augmentColor:x,tonalOffset:r,...y},l)}function Spn(e){const n={};return Object.entries(e).forEach((i=>{const[r,s]=i;typeof s=="object"&&(n[r]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)})),n}function kpn(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function jpn(e){return Math.round(1e5*e)/1e5}const oEe={textTransform:"uppercase"},rEe='"Roboto", "Helvetica", "Arial", sans-serif';function jkt(e,n){const{fontFamily:i=rEe,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...g}=typeof n=="function"?n(e):n,f=r/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,A,S)=>({fontFamily:i,fontWeight:w,fontSize:x(C),lineHeight:v,...i===rEe?{letterSpacing:`${jpn(A/C)}em`}:{},...S,...p}),b={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(c,14,1.75,.4,oEe),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,oEe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return G1({htmlFontSize:u,pxToRem:x,fontFamily:i,fontSize:r,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function Sl(...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 $pn=["none",Sl(0,2,1,-1,0,1,1,0,0,1,3,0),Sl(0,3,1,-2,0,2,2,0,0,1,5,0),Sl(0,3,3,-2,0,3,4,0,0,1,8,0),Sl(0,2,4,-1,0,4,5,0,0,1,10,0),Sl(0,3,5,-1,0,5,8,0,0,1,14,0),Sl(0,3,5,-1,0,6,10,0,0,1,18,0),Sl(0,4,5,-2,0,7,10,1,0,2,16,1),Sl(0,5,5,-3,0,8,10,1,0,3,14,2),Sl(0,5,6,-3,0,9,12,1,0,3,16,2),Sl(0,6,6,-3,0,10,14,1,0,4,18,3),Sl(0,6,7,-4,0,11,15,1,0,4,20,3),Sl(0,7,8,-4,0,12,17,2,0,5,22,4),Sl(0,7,8,-4,0,13,19,2,0,5,24,4),Sl(0,7,9,-4,0,14,21,2,0,5,26,4),Sl(0,8,9,-5,0,15,22,2,0,6,28,5),Sl(0,8,10,-5,0,16,24,2,0,6,30,5),Sl(0,8,11,-5,0,17,26,2,0,6,32,5),Sl(0,9,11,-5,0,18,28,2,0,7,34,6),Sl(0,9,12,-6,0,19,29,2,0,7,36,6),Sl(0,10,13,-6,0,20,31,3,0,8,38,7),Sl(0,10,13,-6,0,21,33,3,0,8,40,7),Sl(0,10,14,-6,0,22,35,3,0,8,42,7),Sl(0,11,14,-7,0,23,36,3,0,9,44,8),Sl(0,11,15,-7,0,24,38,3,0,9,46,8)],Epn={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)"},$kt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function aEe(e){return`${Math.round(e)}ms`}function Ipn(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Dpn(e){const n={...Epn,...e.easing},i={...$kt,...e.duration};return{getAutoHeightDuration:Ipn,create:(r=["all"],s={})=>{const{duration:l=i.standard,easing:c=n.easeInOut,delay:d=0,...u}=s;return(Array.isArray(r)?r:[r]).map((p=>`${p} ${typeof l=="string"?l:aEe(l)} ${c} ${typeof d=="string"?d:aEe(d)}`)).join(",")},...e,easing:n,duration:i}}const Tpn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Lpn(e){return Xy(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ekt(e={}){const n={...e};return(function i(r){const s=Object.entries(r);for(let l=0;l<s.length;l++){const[c,d]=s[l];!Lpn(d)||c.startsWith("unstable_")?delete r[c]:Xy(d)&&(r[c]={...d},i(r[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-CtlpRqoe.js","assets/sentry-D_60LtUS.js","assets/core-_lmxLuL7.js","assets/index-BXkbHEmr.js","assets/DefaultTenantHome-BvquDIuf.js","assets/mui-DbFwPEO7.js","assets/getLocaleForTenant-DiPOVD9Y.js","assets/analytics-BLHCH9ZW.js","assets/utils-CPbtTTqo.js","assets/AppDrawer-CKP6jrbF.js","assets/InboxNotificationsProvider-CvLL3Xda.js","assets/useTaskManagerAccess-Cs4MVKyS.js","assets/expenseAutomationHelper-C8o4PBoS.js","assets/ScreenRoutes-C7oLHktw.js","assets/analyticsHelper-DhzoozKy.js","assets/ConnectionAuthScreen-BoP4m4L6.js","assets/AccountMappingScreen-DdQz2lM1.js","assets/MobileAppDrawer-fNaMEqpG.js","assets/QBOConnectionScreen-a_jxuJVg.js","assets/empty-B3p_skJy.js","assets/index-sGFH656b.js","assets/url-BryZycM8.js","assets/index-Cg11XXLq.js","assets/decodeURIComponentSafe-CNj7wDd5.js","assets/accountMappingHelper-DTr2dybD.js","assets/SignInScreen-BRoXT-HL.js","assets/useDeviceId-Dks2onQn.js","assets/MagicLinkSignInScreen-CBQx4xWX.js","assets/NotFoundScreen-BeP62Nz9.js","assets/MagicLinkRoutes-BxAzMNve.js","assets/PaymentLinkScreen-0thjtbfK.js","assets/WiseConfirmationScreen-taiB3VxF.js","assets/HubSpotOAuthCallbackScreen-CdBNaEnB.js","assets/CustomerOnboardingAuthScreen-CDb5FCfJ.js","assets/SignOutScreen-DkRfW28z.js","assets/OAuthConsentScreen-DECI8j0I.js"])))=>i.map(i=>d[i]);
2
+ import{a as m,R as M,b as H5e,e as bsn,p as Sse,r as Am,g as TAt,d as Gje,f as wsn,s as qje,i as Csn,w as vsn,j as Asn,S as Ssn,k as ksn,l as jsn,m as $sn,n as Esn,o as Isn}from"./sentry-D_60LtUS.js";import{L as Dsn,C as Kje,_ as ah,a as Tsn,b as _N,c as Lsn,d as nne,e as VN,u as LAt,T as Bsn,f as Psn,g as Msn,h as Osn,i as Fsn,k as BAt,l as Rsn,m as zsn,j as Zt}from"./liveblocks-C_txwMxP.js";import{f as PAt,r as Sa,R as xA,P as Vl,O as Nsn,N as MAt,u as qp,g as u2,h as ine,i as OAt,j as Gr,m as T8e,s as qZ,k as FAt,l as _sn,n as Vsn,o as lp,p as Hsn,B as Usn}from"./core-_lmxLuL7.js";import{L as Zje,bl as Wsn,bm as Qsn,bn as HN,bo as Ysn,bp as Gsn,bq as zs,br as Wt,bs as lL,bt as c3,bu as qsn,bv as K7,bw as Os,bx as Ksn,by as Zsn,bz as Jsn,bA as d1,bB as tp,bC as vz,bD as l8,bE as pn,bF as RAt,bG as Q1,bH as Aa,bI as rT,bJ as zAt,bK as NAt,bL as L8e,bM as dx,bN as n1,bO as d7,bP as Xsn,bQ as Rc,bR as eln,bS as cL,bT as tln,bU as nln,bV as KZ,bW as iln,bX as oln,bY as ZZ,bZ as rln,b_ as aln,b$ as c8,c0 as Jje,c1 as sln,c2 as lln,c3 as cln,c4 as dln,c5 as uln,c6 as pln,c7 as hln,c8 as u7,c9 as one,ca as mln,cb as rne,cc as ane,cd as sne,ce as B8e,cf as UN,cg as kS,ch as WN,ci as aT,cj as sT,ck as jS,cl as lne,cm as KA,cn as gln,co as Xje,cp as fln,cq as xln,cr as yln,cs as bln,ct as _At,cu as wln,cv as Cln,cw as Zw,cx as e$e,cy as vln,cz as Aln,cA as Sln,cB as dk,cC as uk,cD as VAt,cE as HAt,cF as P8e,cG as kln,cH as UAt,cI as jln,cJ as JZ,cK as WAt,cL as $ln,cM as QAt,cN as Eln,cO as qO,cP as Iln,cQ as Dln,cR as t$e,cS as Tln,cT as M8e,cU as O8e,cV as Lln,cW as Bln,cX as Pln,cY as Mln,cZ as FV,c_ as Az,c$ as RV,d0 as Oln,d1 as Fln,d2 as YAt,d3 as Rln,d4 as zln,d5 as Nln,d6 as _ln,d7 as Vln,d8 as GAt,d9 as n$e,da as Hln,db as F8e,dc as Uln,dd as Wln,de as Qln,df as qAt,dg as mu,dh as Wl,di as cne,dj as Yln,dk as Gln,dl as R1,dm as KAt,dn as qln,dp as Sz,dq as ZA,dr as Qs,ds as i$e,dt as Kln,du as Zln,dv as Jln,dw as ZAt,dx as R8e,dy as zV,dz as JAt,dA as Og,dB as Xln,dC as ecn,dD as tcn,dE as ncn,dF as icn,dG as ocn,dH as rcn,dI as acn,dJ as NV,dK as $S,dL as dne,dM as scn,dN as lcn,dO as pk,dP as Y1,dQ as XAt,dR as eSt,dS as ccn,dT as tSt,dU as dcn,dV as ucn,dW as pcn,dX as hcn,dY as dL,dZ as z8e,d_ as N8e,d$ as mcn,e0 as _8e,e1 as nSt,e2 as iSt,e3 as oSt,e4 as rSt,e5 as aSt,e6 as sSt,e7 as gcn,_ as Pd,e8 as uL,e9 as fcn,ea as o$e,eb as une,ec as xcn,ed as ycn,ee as lSt,ef as bcn,eg as XF,eh as Mm,ei as p7,ej as cSt,ek as dSt,el as wcn,em as uSt,en as U5e,eo as Ccn,ep as cK,eq as vcn,er as Acn,es as Scn,et as kcn,eu as jcn,ev as pSt,ew as hSt,ex as $cn,ey as Ecn,ez as mSt,eA as eR,eB as tR,eC as gSt,eD as Icn,eE as Dcn,eF as Tcn,eG as Lcn,eH as V8e,eI as fSt,eJ as xSt,eK as H8e,eL as pL,eM as pne,eN as U8e,eO as W8e,eP as Q8e,eQ as Y8e,eR as Bcn,eS as Pcn,eT as ySt,eU as r$e,eV as Mcn,eW as G8e,eX as Ocn,eY as Fcn,eZ as _1,e_ as Rcn,e$ as hne,f0 as bSt,f1 as wSt,f2 as zcn,f3 as q8e,f4 as K8e,f5 as Ncn,f6 as _cn,f7 as Vcn,f8 as Hcn,f9 as Ucn,fa as Jg,fb as a$e,fc as CSt,fd as Wcn,fe as Qcn,ff as Ycn,fg as vSt,fh as ASt,fi as SSt,fj as kSt,fk as jSt,fl as $St,fm as Gcn,fn as lT,fo as qcn,fp as Kcn,fq as Zcn,fr as Jcn,fs as ESt,ft as ISt,fu as s$e,fv as l$e,fw as Xcn,fx as edn,fy as c$e,fz as d$e,fA as tdn,fB as ndn,fC as W5e,fD as idn,v as odn,fE as mne,fF as xm,fG as DSt,fH as TSt,fI as rdn,fJ as adn,fK as u$e,fL as sdn,fM as ldn,fN as cdn,fO as ddn,fP as udn,fQ as pdn,fR as hdn,fS as mdn,fT as gdn,fU as fdn,fV as xdn,fW as ydn,fX as bdn,fY as wdn,fZ as Cdn,f_ as vdn,f$ as Adn,g0 as Sdn,g1 as kdn,g2 as p$e,g3 as jdn,g4 as $dn,g5 as Edn,g6 as Idn,g7 as Ddn,g8 as LSt,g9 as gne,ga as Z8e,gb as BSt,gc as Tdn,gd as Ldn,ge as Bdn,gf as PSt,gg as h$e,gh as MSt,gi as OSt,gj as Pdn,gk as FSt,gl as RSt,gm as Mdn,gn as Odn,go as Q5e,gp as Fdn,gq as nR,gr as Rdn,gs as zdn,gt as Ndn,gu as _dn,gv as Vdn,gw as Hdn,gx as Udn,gy as Wdn,gz as Qdn,gA as Ydn,gB as Gdn,gC as qdn,gD as zSt,gE as Kdn,gF as Zdn,gG as Jdn,gH as m$e,gI as Xdn,gJ as eun,gK as tun,gL as nun,gM as iun,gN as oun,gO as NSt,gP as _St,gQ as run,gR as VSt,gS as aun,gT as sun,gU as Y5e,gV as lun,gW as cun,gX as dun,gY as uun,gZ as pun,g_ as hun,g$ as g$e,h0 as mun,h1 as gun,h2 as fun}from"./zeni-epic-state-CtlpRqoe.js";import{n as a,T as HSt,G as QN,j as Io,c as Ie,k as ni,C as USt,u as xun,D as WSt,S as QSt,a as yun}from"./mui-DbFwPEO7.js";import{r as bun,m as $g}from"./analytics-BLHCH9ZW.js";import{u as ip}from"./plaid-DHbQ1Fnc.js";import{D as J8e,H as fne,g as wun,O as Cun,S as vun,T as Aun,u as X8e,a as ewe,b as Sun}from"./dnd-4_dRT_p_.js";import{l as twe}from"./stripe-cKAAJElX.js";import{L as yD}from"./lottie-CyJj6i4R.js";import{r as sd}from"./lexical-BibO8P7-.js";import{D as G5e,P as q5e,_ as YSt,a as GSt}from"./pdf-BfgO0ZZE.js";import{R as ES,G as d8,H as eh,X as ql,Y as Ll,I as Dd,J as u8,K as z8,L as JA,M as X1,N as hL,O as qSt,P as kun,Q as jun,S as xne,U as $un,V as nwe,W as Eun,Z as Iun,_ as Dun,d as Tun}from"./recharts-B43pV0TY.js";import{r as Lun,n as f$e}from"./utils-CPbtTTqo.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]="e624bca5-58d7-4d12-9948-d63e541d7e9c",e._sentryDebugIdIdentifier="sentry-dbid-e624bca5-58d7-4d12-9948-d63e541d7e9c")}catch{}})();(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver((i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)})).observe(document,{childList:!0,subtree:!0})}function n(i){if(i.ep)return;i.ep=!0;const r=(function(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l})(i);fetch(i.href,r)}})();var x$e,_V={},Bun=(function(){if(x$e)return _V;x$e=1;var e=PAt();return _V.createRoot=e.createRoot,_V.hydrateRoot=e.hydrateRoot,_V})(),cm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof H5e<"u"?H5e:typeof self<"u"?self:{};function xr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y$e,b$e,w$e={exports:{}},yB={};function KSt(){return b$e||(b$e=1,w$e.exports=(function(){if(y$e)return yB;y$e=1;var e=M,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,u,p){var h,g={},f=null,x=null;for(h in p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref),u)r.call(u,h)&&!l.hasOwnProperty(h)&&(g[h]=u[h]);if(d&&d.defaultProps)for(h in u=d.defaultProps)g[h]===void 0&&(g[h]=u[h]);return{$$typeof:n,type:d,key:f,ref:x,props:g,_owner:s.current}}return yB.Fragment=i,yB.jsx=c,yB.jsxs=c,yB})()),w$e.exports}var t=KSt();const Pun=m.createContext(null),kse={didCatch:!1,error:null};let Mun=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=kse}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,i,r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];(n=(i=this.props).onReset)===null||n===void 0||n.call(i,{args:s,reason:"imperative-api"}),this.setState(kse)}}componentDidCatch(e,n){var i,r;(i=(r=this.props).onError)===null||i===void 0||i.call(r,e,n)}componentDidUpdate(e,n){const{didCatch:i}=this.state,{resetKeys:r}=this.props;var s,l;i&&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,r)&&((s=(l=this.props).onReset)===null||s===void 0||s.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(kse))}render(){const{children:e,fallbackRender:n,FallbackComponent:i,fallback:r}=this.props,{didCatch:s,error:l}=this.state;let c=e;if(s){const d={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(i)c=m.createElement(i,d);else{if(r===void 0)throw l;c=r}}return m.createElement(Pun.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var C$e,jse={exports:{}},$se,Oun=(C$e||(C$e=1,$se=jse,(function(e,n){$se.exports?$se.exports=n():e.numeral=n()})(jse.exports,(function(){var e,n,i,r,s,l={},c={},d={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},u={currentLocale:d.currentLocale,zeroFormat:d.zeroFormat,nullFormat:d.nullFormat,defaultFormat:d.defaultFormat,scalePercentBy100:d.scalePercentBy100};function p(h,g){this._input=h,this._value=g}return e=function(h){var g,f,x,y;if(e.isNumeral(h))g=h.value();else if(h===0||typeof h>"u")g=0;else if(h===null||n.isNaN(h))g=null;else if(typeof h=="string")if(u.zeroFormat&&h===u.zeroFormat)g=0;else if(u.nullFormat&&h===u.nullFormat||!h.replace(/[^0-9]+/g,"").length)g=null;else{for(f in l)if((y=typeof l[f].regexps.unformat=="function"?l[f].regexps.unformat():l[f].regexps.unformat)&&h.match(y)){x=l[f].unformat;break}g=(x=x||e._.stringToNumber)(h)}else g=Number(h)||null;return new p(h,g)},e.version="2.0.6",e.isNumeral=function(h){return h instanceof p},e._=n={numberToFormat:function(h,g,f){var x,y,b,w,C,v,A,S,$=c[e.options.currentLocale],j=!1,E=!1,I="",D=1e12,B=1e9,F=1e6,R="",_=!1;if(h=h||0,b=Math.abs(h),e._.includes(g,"(")?(j=!0,g=g.replace(/[\(|\)]/g,"")):(e._.includes(g,"+")||e._.includes(g,"-"))&&(v=e._.includes(g,"+")?g.indexOf("+"):h<0?g.indexOf("-"):-1,g=g.replace(/[\+|\-]/g,"")),e._.includes(g,"a")&&(y=!!(y=g.match(/a(k|m|b|t)?/))&&y[1],e._.includes(g," a")&&(I=" "),g=g.replace(new RegExp(I+"a[kmbt]?"),""),b>=D&&!y||y==="t"?(I+=$.abbreviations.trillion,h/=D):b<D&&b>=B&&!y||y==="b"?(I+=$.abbreviations.billion,h/=B):b<B&&b>=F&&!y||y==="m"?(I+=$.abbreviations.million,h/=F):(b<F&&b>=1e3&&!y||y==="k")&&(I+=$.abbreviations.thousand,h/=1e3)),e._.includes(g,"[.]")&&(E=!0,g=g.replace("[.]",".")),w=h.toString().split(".")[0],C=g.split(".")[1],A=g.indexOf(","),x=(g.split(".")[0].split(",")[0].match(/0/g)||[]).length,C?(e._.includes(C,"[")?(C=(C=C.replace("]","")).split("["),R=e._.toFixed(h,C[0].length+C[1].length,f,C[1].length)):R=e._.toFixed(h,C.length,f),w=R.split(".")[0],R=e._.includes(R,".")?$.delimiters.decimal+R.split(".")[1]:"",E&&Number(R.slice(1))===0&&(R="")):w=e._.toFixed(h,0,f),I&&!y&&Number(w)>=1e3&&I!==$.abbreviations.trillion)switch(w=String(Number(w)/1e3),I){case $.abbreviations.thousand:I=$.abbreviations.million;break;case $.abbreviations.million:I=$.abbreviations.billion;break;case $.abbreviations.billion:I=$.abbreviations.trillion}if(e._.includes(w,"-")&&(w=w.slice(1),_=!0),w.length<x)for(var N=x-w.length;N>0;N--)w="0"+w;return A>-1&&(w=w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+$.delimiters.thousands)),g.indexOf(".")===0&&(w=""),S=w+R+(I||""),j?S=(j&&_?"(":"")+S+(j&&_?")":""):v>=0?S=v===0?(_?"-":"+")+S:S+(_?"-":"+"):_&&(S="-"+S),S},stringToNumber:function(h){var g,f,x,y=c[u.currentLocale],b=h,w={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&h===u.zeroFormat)f=0;else if(u.nullFormat&&h===u.nullFormat||!h.replace(/[^0-9]+/g,"").length)f=null;else{for(g in f=1,y.delimiters.decimal!=="."&&(h=h.replace(/\./g,"").replace(y.delimiters.decimal,".")),w)if(x=new RegExp("[^a-zA-Z]"+y.abbreviations[g]+"(?:\\)|(\\"+y.currency.symbol+")?(?:\\))?)?$"),b.match(x)){f*=Math.pow(10,w[g]);break}f*=(h.split("-").length+Math.min(h.split("(").length-1,h.split(")").length-1))%2?1:-1,h=h.replace(/[^0-9\.]+/g,""),f*=Number(h)}return f},isNaN:function(h){return typeof h=="number"&&isNaN(h)},includes:function(h,g){return h.indexOf(g)!==-1},insert:function(h,g,f){return h.slice(0,f)+g+h.slice(f)},reduce:function(h,g){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof g!="function")throw new TypeError(g+" is not a function");var f,x=Object(h),y=x.length>>>0,b=0;if(arguments.length===3)f=arguments[2];else{for(;b<y&&!(b in x);)b++;if(b>=y)throw new TypeError("Reduce of empty array with no initial value");f=x[b++]}for(;b<y;b++)b in x&&(f=g(f,x[b],b,x));return f},multiplier:function(h){var g=h.toString().split(".");return g.length<2?1:Math.pow(10,g[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(h,g){var f=n.multiplier(g);return h>f?h:f}),1)},toFixed:function(h,g,f,x){var y,b,w,C,v=h.toString().split("."),A=g-(x||0);return y=v.length===2?Math.min(Math.max(v[1].length,A),g):A,w=Math.pow(10,y),C=(f(h+"e+"+y)/w).toFixed(y),x>g-y&&(b=new RegExp("\\.?0{1,"+(x-(g-y))+"}$"),C=C.replace(b,"")),C}},e.options=u,e.formats=l,e.locales=c,e.locale=function(h){return h&&(u.currentLocale=h.toLowerCase()),u.currentLocale},e.localeData=function(h){if(!h)return c[u.currentLocale];if(h=h.toLowerCase(),!c[h])throw new Error("Unknown locale : "+h);return c[h]},e.reset=function(){for(var h in d)u[h]=d[h]},e.zeroFormat=function(h){u.zeroFormat=typeof h=="string"?h:null},e.nullFormat=function(h){u.nullFormat=typeof h=="string"?h:null},e.defaultFormat=function(h){u.defaultFormat=typeof h=="string"?h:"0.0"},e.register=function(h,g,f){if(g=g.toLowerCase(),this[h+"s"][g])throw new TypeError(g+" "+h+" already registered.");return this[h+"s"][g]=f,f},e.validate=function(h,g){var f,x,y,b,w,C,v,A;if(typeof h!="string"&&(h+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",h)),(h=h.trim()).match(/^\d+$/))return!0;if(h==="")return!1;try{v=e.localeData(g)}catch{v=e.localeData(e.locale())}return y=v.currency.symbol,w=v.abbreviations,f=v.delimiters.decimal,x=v.delimiters.thousands==="."?"\\.":v.delimiters.thousands,!((A=h.match(/^[^\d]+/))!==null&&(h=h.substr(1),A[0]!==y)||(A=h.match(/[^\d]+$/))!==null&&(h=h.slice(0,-1),A[0]!==w.thousand&&A[0]!==w.million&&A[0]!==w.billion&&A[0]!==w.trillion)||(C=new RegExp(x+"{2}"),h.match(/[^\d.,]/g)||(b=h.split(f)).length>2||(b.length<2?!b[0].match(/^\d+.*\d$/)||b[0].match(C):b[0].length===1?!b[0].match(/^\d+$/)||b[0].match(C)||!b[1].match(/^\d+$/):!b[0].match(/^\d+.*\d$/)||b[0].match(C)||!b[1].match(/^\d+$/))))},e.fn=p.prototype={clone:function(){return e(this)},format:function(h,g){var f,x,y,b=this._value,w=h||u.defaultFormat;if(g=g||Math.round,b===0&&u.zeroFormat!==null)x=u.zeroFormat;else if(b===null&&u.nullFormat!==null)x=u.nullFormat;else{for(f in l)if(w.match(l[f].regexps.format)){y=l[f].format;break}x=(y=y||e._.numberToFormat)(b,w,g)}return x},value:function(){return this._value},input:function(){return this._input},set:function(h){return this._value=Number(h),this},add:function(h){var g=n.correctionFactor.call(null,this._value,h);return this._value=n.reduce([this._value,h],(function(f,x,y,b){return f+Math.round(g*x)}),0)/g,this},subtract:function(h){var g=n.correctionFactor.call(null,this._value,h);return this._value=n.reduce([h],(function(f,x,y,b){return f-Math.round(g*x)}),Math.round(this._value*g))/g,this},multiply:function(h){return this._value=n.reduce([this._value,h],(function(g,f,x,y){var b=n.correctionFactor(g,f);return Math.round(g*b)*Math.round(f*b)/Math.round(b*b)}),1),this},divide:function(h){return this._value=n.reduce([this._value,h],(function(g,f,x,y){var b=n.correctionFactor(g,f);return Math.round(g*b)/Math.round(f*b)})),this},difference:function(h){return Math.abs(e(this._value).subtract(h).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(h){var g=h%10;return~~(h%100/10)==1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(h,g,f){var x,y=e._.includes(g," BPS")?" ":"";return h*=1e4,g=g.replace(/\s?BPS/,""),x=e._.numberToFormat(h,g,f),e._.includes(x,")")?((x=x.split("")).splice(-1,0,y+"BPS"),x=x.join("")):x=x+y+"BPS",x},unformat:function(h){return+(1e-4*e._.stringToNumber(h)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},s="("+(s=(i={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(h){return i.suffixes.indexOf(h)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(s)},format:function(h,g,f){var x,y,b,w=e._.includes(g,"ib")?r:i,C=e._.includes(g," b")||e._.includes(g," ib")?" ":"";for(g=g.replace(/\s?i?b/,""),x=0;x<=w.suffixes.length;x++)if(y=Math.pow(w.base,x),b=Math.pow(w.base,x+1),h===null||h===0||h>=y&&h<b){C+=w.suffixes[x],y>0&&(h/=y);break}return e._.numberToFormat(h,g,f)+C},unformat:function(h){var g,f,x=e._.stringToNumber(h);if(x){for(g=i.suffixes.length-1;g>=0;g--){if(e._.includes(h,i.suffixes[g])){f=Math.pow(i.base,g);break}if(e._.includes(h,r.suffixes[g])){f=Math.pow(r.base,g);break}}x*=f||1}return x}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(h,g,f){var x,y,b,w=e.locales[e.options.currentLocale],C={before:g.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:g.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(g=g.replace(/\s?\$\s?/,""),x=e._.numberToFormat(h,g,f),h>=0?(C.before=C.before.replace(/[\-\(]/,""),C.after=C.after.replace(/[\-\)]/,"")):h<0&&!e._.includes(C.before,"-")&&!e._.includes(C.before,"(")&&(C.before="-"+C.before),b=0;b<C.before.length;b++)switch(y=C.before[b],y){case"$":x=e._.insert(x,w.currency.symbol,b);break;case" ":x=e._.insert(x," ",b+w.currency.symbol.length-1)}for(b=C.after.length-1;b>=0;b--)switch(y=C.after[b],y){case"$":x=b===C.after.length-1?x+w.currency.symbol:e._.insert(x,w.currency.symbol,-(C.after.length-(1+b)));break;case" ":x=b===C.after.length-1?x+" ":e._.insert(x," ",-(C.after.length-(1+b)+w.currency.symbol.length-1))}return x}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(h,g,f){var x=(typeof h!="number"||e._.isNaN(h)?"0e+0":h.toExponential()).split("e");return g=g.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(x[0]),g,f)+"e"+x[1]},unformat:function(h){var g=e._.includes(h,"e+")?h.split("e+"):h.split("e-"),f=Number(g[0]),x=Number(g[1]);return x=e._.includes(h,"e-")?x*=-1:x,e._.reduce([f,Math.pow(10,x)],(function(y,b,w,C){var v=e._.correctionFactor(y,b);return y*v*(b*v)/(v*v)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(h,g,f){var x=e.locales[e.options.currentLocale],y=e._.includes(g," o")?" ":"";return g=g.replace(/\s?o/,""),y+=x.ordinal(h),e._.numberToFormat(h,g,f)+y}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(h,g,f){var x,y=e._.includes(g," %")?" ":"";return e.options.scalePercentBy100&&(h*=100),g=g.replace(/\s?\%/,""),x=e._.numberToFormat(h,g,f),e._.includes(x,")")?((x=x.split("")).splice(-1,0,y+"%"),x=x.join("")):x=x+y+"%",x},unformat:function(h){var g=e._.stringToNumber(h);return e.options.scalePercentBy100?.01*g:g}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(h,g,f){var x=Math.floor(h/60/60),y=Math.floor((h-60*x*60)/60),b=Math.round(h-60*x*60-60*y);return x+":"+(y<10?"0"+y:y)+":"+(b<10?"0"+b:b)},unformat:function(h){var g=h.split(":"),f=0;return g.length===3?(f+=60*Number(g[0])*60,f+=60*Number(g[1]),f+=Number(g[2])):g.length===2&&(f+=60*Number(g[0]),f+=Number(g[1])),Number(f)}}),e}))),jse.exports);const Nf=xr(Oun);function M7(e,...n){const i=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach((r=>i.searchParams.append("args[]",r))),`Minified MUI error #${e}; visit ${i} for the full message.`}const k7="$$material";var Fun={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 Run(e){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=e(i)),n[i]}}var zun=/[A-Z]|^ms/g,Nun=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZSt=function(e){return e.charCodeAt(1)===45},v$e=function(e){return e!=null&&typeof e!="boolean"},Ese=Run((function(e){return ZSt(e)?e:e.replace(zun,"-$&").toLowerCase()})),A$e=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nun,(function(i,r,s){return T9={name:r,styles:s,next:T9},r}))}return Fun[e]===1||ZSt(e)||typeof n!="number"||n===0?n:n+"px"};function XZ(e,n,i){if(i==null)return"";var r=i;if(r.__emotion_styles!==void 0)return r;switch(typeof i){case"boolean":return"";case"object":var s=i;if(s.anim===1)return T9={name:s.name,styles:s.styles,next:T9},s.name;var l=i;if(l.styles!==void 0){var c=l.next;if(c!==void 0)for(;c!==void 0;)T9={name:c.name,styles:c.styles,next:T9},c=c.next;return l.styles+";"}return(function(d,u,p){var h="";if(Array.isArray(p))for(var g=0;g<p.length;g++)h+=XZ(d,u,p[g])+";";else for(var f in p){var x=p[f];if(typeof x!="object"){var y=x;v$e(y)&&(h+=Ese(f)+":"+A$e(f,y)+";")}else if(Array.isArray(x)&&typeof x[0]=="string"&&u==null)for(var b=0;b<x.length;b++)v$e(x[b])&&(h+=Ese(f)+":"+A$e(f,x[b])+";");else{var w=XZ(d,u,x);switch(f){case"animation":case"animationName":h+=Ese(f)+":"+w+";";break;default:h+=f+"{"+w+"}"}}}return h})(e,n,i)}return i}var T9,S$e=/label:\s*([^\s;{]+)\s*(;|$)/g,k$e,j$e,$$e,E$e,I$e,D$e={exports:{}};function _un(){return j$e?k$e:(j$e=1,k$e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Vun(){if(E$e)return $$e;E$e=1;var e=_un();function n(){}function i(){}return i.resetWarningCache=n,$$e=function(){function r(c,d,u,p,h,g){if(g!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}function s(){return r}r.isRequired=r;var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:i,resetWarningCache:n};return l.PropTypes=l,l}}function iwe(){return I$e||(I$e=1,D$e.exports=Vun()()),D$e.exports}const _n=xr(iwe());var Hun=(function(){function e(i){var r=this;this._insertTag=function(s){var l;l=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,l),r.tags.push(s)},this.isSpeedy=i.speedy===void 0||i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(i){i.forEach(this._insertTag)},n.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag((function(l){var c=document.createElement("style");return c.setAttribute("data-emotion",l.key),l.nonce!==void 0&&c.setAttribute("nonce",l.nonce),c.appendChild(document.createTextNode("")),c.setAttribute("data-s",""),c})(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=(function(l){if(l.sheet)return l.sheet;for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].ownerNode===l)return document.styleSheets[c]})(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},n.flush=function(){this.tags.forEach((function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)})),this.tags=[],this.ctr=0},e})(),E1="-ms-",T$e="-moz-",Ja="-webkit-",JSt="comm",owe="rule",rwe="decl",XSt="@keyframes",Uun=Math.abs,yne=String.fromCharCode,Wun=Object.assign;function ekt(e){return e.trim()}function es(e,n,i){return e.replace(n,i)}function K5e(e,n){return e.indexOf(n)}function Gu(e,n){return 0|e.charCodeAt(n)}function kz(e,n,i){return e.slice(n,i)}function p5(e){return e.length}function awe(e){return e.length}function VV(e,n){return n.push(e),e}var bne=1,cT=1,tkt=0,ym=0,Xc=0,mL="";function wne(e,n,i,r,s,l,c){return{value:e,root:n,parent:i,type:r,props:s,children:l,line:bne,column:cT,length:c,return:""}}function bB(e,n){return Wun(wne("",null,null,"",null,null,0),e,{length:-e.length},n)}function S0(){return Xc=ym<tkt?Gu(mL,ym++):0,cT++,Xc===10&&(cT=1,bne++),Xc}function X5(){return Gu(mL,ym)}function dK(){return ym}function YN(e,n){return kz(mL,e,n)}function jz(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 nkt(e){return bne=cT=1,tkt=p5(mL=e),ym=0,[]}function ikt(e){return mL="",e}function uK(e){return ekt(YN(ym-1,Z5e(e===91?e+2:e===40?e+1:e)))}function Qun(e){for(;(Xc=X5())&&Xc<33;)S0();return jz(e)>2||jz(Xc)>3?"":" "}function Yun(e,n){for(;--n&&S0()&&!(Xc<48||Xc>102||Xc>57&&Xc<65||Xc>70&&Xc<97););return YN(e,dK()+(n<6&&X5()==32&&S0()==32))}function Z5e(e){for(;S0();)switch(Xc){case e:return ym;case 34:case 39:e!==34&&e!==39&&Z5e(Xc);break;case 40:e===41&&Z5e(e);break;case 92:S0()}return ym}function Gun(e,n){for(;S0()&&e+Xc!==57&&(e+Xc!==84||X5()!==47););return"/*"+YN(n,ym-1)+"*"+yne(e===47?e:S0())}function qun(e){for(;!jz(X5());)S0();return YN(e,ym)}function Kun(e){return ikt(pK("",null,null,null,[""],e=nkt(e),0,[0],e))}function pK(e,n,i,r,s,l,c,d,u){for(var p=0,h=0,g=c,f=0,x=0,y=0,b=1,w=1,C=1,v=0,A="",S=s,$=l,j=r,E=A;w;)switch(y=v,v=S0()){case 40:if(y!=108&&Gu(E,g-1)==58){K5e(E+=es(uK(v),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=uK(v);break;case 9:case 10:case 13:case 32:E+=Qun(y);break;case 92:E+=Yun(dK()-1,7);continue;case 47:switch(X5()){case 42:case 47:VV(Zun(Gun(S0(),dK()),n,i),u);break;default:E+="/"}break;case 123*b:d[p++]=p5(E)*C;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+h:C==-1&&(E=es(E,/\f/g,"")),x>0&&p5(E)-g&&VV(x>32?B$e(E+";",r,i,g-1):B$e(es(E," ","")+";",r,i,g-2),u);break;case 59:E+=";";default:if(VV(j=L$e(E,n,i,p,h,s,d,A,S=[],$=[],g),l),v===123)if(h===0)pK(E,n,j,j,S,l,g,d,$);else switch(f===99&&Gu(E,3)===110?100:f){case 100:case 108:case 109:case 115:pK(e,j,j,r&&VV(L$e(e,j,j,0,0,s,d,A,s,S=[],g),$),s,$,g,d,r?S:$);break;default:pK(E,j,j,j,[""],$,0,d,$)}}p=h=x=0,b=C=1,A=E="",g=c;break;case 58:g=1+p5(E),x=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&(Xc=ym>0?Gu(mL,--ym):0,cT--,Xc===10&&(cT=1,bne--),Xc==125))continue}switch(E+=yne(v),v*b){case 38:C=h>0?1:(E+="\f",-1);break;case 44:d[p++]=(p5(E)-1)*C,C=1;break;case 64:X5()===45&&(E+=uK(S0())),f=X5(),h=g=p5(A=E+=qun(dK())),v++;break;case 45:y===45&&p5(E)==2&&(b=0)}}return l}function L$e(e,n,i,r,s,l,c,d,u,p,h){for(var g=s-1,f=s===0?l:[""],x=awe(f),y=0,b=0,w=0;y<r;++y)for(var C=0,v=kz(e,g+1,g=Uun(b=c[y])),A=e;C<x;++C)(A=ekt(b>0?f[C]+" "+v:es(v,/&\f/g,f[C])))&&(u[w++]=A);return wne(e,n,i,s===0?owe:d,u,p,h)}function Zun(e,n,i){return wne(e,n,i,JSt,yne(Xc),kz(e,2,-2),0)}function B$e(e,n,i,r){return wne(e,n,i,rwe,kz(e,0,r),kz(e,r+1,-1),r)}function bD(e,n){for(var i="",r=awe(e),s=0;s<r;s++)i+=n(e[s],s,e,n)||"";return i}function Jun(e,n,i,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case rwe:return e.return=e.return||e.value;case JSt:return"";case XSt:return e.return=e.value+"{"+bD(e.children,r)+"}";case owe:e.value=e.props.join(",")}return p5(i=bD(e.children,r))?e.return=e.value+"{"+i+"}":""}function Xun(e){return function(n){n.root||(n=n.return)&&e(n)}}var e1n=function(e,n,i){for(var r=0,s=0;r=s,s=X5(),r===38&&s===12&&(n[i]=1),!jz(s);)S0();return YN(e,ym)},t1n=function(e,n){return ikt((function(i,r){var s=-1,l=44;do switch(jz(l)){case 0:l===38&&X5()===12&&(r[s]=1),i[s]+=e1n(ym-1,r,s);break;case 2:i[s]+=uK(l);break;case 4:if(l===44){i[++s]=X5()===58?"&\f":"",r[s]=i[s].length;break}default:i[s]+=yne(l)}while(l=S0());return i})(nkt(e),n))},P$e=new WeakMap,n1n=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(!(i=i.parent))return;if((e.props.length!==1||n.charCodeAt(0)===58||P$e.get(i))&&!r){P$e.set(e,!0);for(var s=[],l=t1n(n,s),c=i.props,d=0,u=0;d<l.length;d++)for(var p=0;p<c.length;p++,u++)e.props[u]=s[d]?l[d].replace(/&\f/g,c[p]):c[p]+" "+l[d]}}},i1n=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function okt(e,n){switch((function(i,r){return 45^Gu(i,0)?(((r<<2^Gu(i,0))<<2^Gu(i,1))<<2^Gu(i,2))<<2^Gu(i,3):0})(e,n)){case 5103:return Ja+"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 Ja+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ja+e+T$e+e+E1+e+e;case 6828:case 4268:return Ja+e+E1+e+e;case 6165:return Ja+e+E1+"flex-"+e+e;case 5187:return Ja+e+es(e,/(\w+).+(:[^]+)/,Ja+"box-$1$2"+E1+"flex-$1$2")+e;case 5443:return Ja+e+E1+"flex-item-"+es(e,/flex-|-self/,"")+e;case 4675:return Ja+e+E1+"flex-line-pack"+es(e,/align-content|flex-|-self/,"")+e;case 5548:return Ja+e+E1+es(e,"shrink","negative")+e;case 5292:return Ja+e+E1+es(e,"basis","preferred-size")+e;case 6060:return Ja+"box-"+es(e,"-grow","")+Ja+e+E1+es(e,"grow","positive")+e;case 4554:return Ja+es(e,/([^-])(transform)/g,"$1"+Ja+"$2")+e;case 6187:return es(es(es(e,/(zoom-|grab)/,Ja+"$1"),/(image-set)/,Ja+"$1"),e,"")+e;case 5495:case 3959:return es(e,/(image-set\([^]*)/,Ja+"$1$`$1");case 4968:return es(es(e,/(.+:)(flex-)?(.*)/,Ja+"box-pack:$3"+E1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ja+e+e;case 4095:case 3583:case 4068:case 2532:return es(e,/(.+)-inline(.+)/,Ja+"$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(p5(e)-1-n>6)switch(Gu(e,n+1)){case 109:if(Gu(e,n+4)!==45)break;case 102:return es(e,/(.+:)(.+)-([^]+)/,"$1"+Ja+"$2-$3$1"+T$e+(Gu(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~K5e(e,"stretch")?okt(es(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(Gu(e,n+1)!==115)break;case 6444:switch(Gu(e,p5(e)-3-(~K5e(e,"!important")&&10))){case 107:return es(e,":",":"+Ja)+e;case 101:return es(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ja+(Gu(e,14)===45?"inline-":"")+"box$3$1"+Ja+"$2$3$1"+E1+"$2box$3")+e}break;case 5936:switch(Gu(e,n+11)){case 114:return Ja+e+E1+es(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ja+e+E1+es(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ja+e+E1+es(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ja+e+E1+e+e}return e}var o1n=[function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case rwe:e.return=okt(e.value,e.length);break;case XSt:return bD([bB(e,{value:es(e.value,"@","@"+Ja)})],r);case owe:if(e.length)return(function(s,l){return s.map(l).join("")})(e.props,(function(s){switch((function(l,c){return(l=c.exec(l))?l[0]:l})(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bD([bB(e,{props:[es(s,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return bD([bB(e,{props:[es(s,/:(plac\w+)/,":"+Ja+"input-$1")]}),bB(e,{props:[es(s,/:(plac\w+)/,":-moz-$1")]}),bB(e,{props:[es(s,/:(plac\w+)/,E1+"input-$1")]})],r)}return""}))}}],rkt=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,(function(x){x.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))}))}var r,s=e.stylisPlugins||o1n,l={},c=[];r=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++)l[y[b]]=!0;c.push(x)}));var d,u,p=[n1n,i1n],h=[Jun,Xun((function(x){u.insert(x)}))],g=(function(x){var y=awe(x);return function(b,w,C,v){for(var A="",S=0;S<y;S++)A+=x[S](b,w,C,v)||"";return A}})(p.concat(s,h));d=function(x,y,b,w){u=b,(function(C){bD(Kun(C),g)})(x?x+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)};var f={key:n,sheet:new Hun({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:d};return f.sheet.hydrate(c),f};function akt(e){const{styles:n,defaultTheme:i={}}=e,r=typeof n=="function"?s=>n((function(l){return l==null||Object.keys(l).length===0})(s)?i:s):n;return t.jsx(QN,{styles:r})}const M$e=[];function G9(e){return M$e[0]=e,(function(n,i,r){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,l="";T9=void 0;var c=n[0];c==null||c.raw===void 0?(s=!1,l+=XZ(r,i,c)):l+=c[0];for(var d=1;d<n.length;d++)l+=XZ(r,i,n[d]),s&&(l+=c[d]);S$e.lastIndex=0;for(var u,p="";(u=S$e.exec(l))!==null;)p+="-"+u[1];var h=(function(g){for(var f,x=0,y=0,b=g.length;b>=4;++y,b-=4)f=1540483477*(65535&(f=255&g.charCodeAt(y)|(255&g.charCodeAt(++y))<<8|(255&g.charCodeAt(++y))<<16|(255&g.charCodeAt(++y))<<24))+(59797*(f>>>16)<<16),x=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&x)+(59797*(x>>>16)<<16);switch(b){case 3:x^=(255&g.charCodeAt(y+2))<<16;case 2:x^=(255&g.charCodeAt(y+1))<<8;case 1:x=1540483477*(65535&(x^=255&g.charCodeAt(y)))+(59797*(x>>>16)<<16)}return(((x=1540483477*(65535&(x^=x>>>13))+(59797*(x>>>16)<<16))^x>>>15)>>>0).toString(36)})(l)+p;return{name:h,styles:l,next:T9}})(M$e)}var O$e,F$e,R$e={exports:{}},Ds={};function r1n(){if(O$e)return Ds;O$e=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type){case i:case s:case r:case u:case p:case f:return b;default:switch(b=b&&b.$$typeof){case c:case d:case g:case h:case l:return b;default:return w}}case n:return w}}}return Ds.ContextConsumer=l,Ds.ContextProvider=c,Ds.Element=e,Ds.ForwardRef=d,Ds.Fragment=i,Ds.Lazy=g,Ds.Memo=h,Ds.Portal=n,Ds.Profiler=s,Ds.StrictMode=r,Ds.Suspense=u,Ds.SuspenseList=p,Ds.isContextConsumer=function(b){return y(b)===l},Ds.isContextProvider=function(b){return y(b)===c},Ds.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ds.isForwardRef=function(b){return y(b)===d},Ds.isFragment=function(b){return y(b)===i},Ds.isLazy=function(b){return y(b)===g},Ds.isMemo=function(b){return y(b)===h},Ds.isPortal=function(b){return y(b)===n},Ds.isProfiler=function(b){return y(b)===s},Ds.isStrictMode=function(b){return y(b)===r},Ds.isSuspense=function(b){return y(b)===u},Ds.isSuspenseList=function(b){return y(b)===p},Ds.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===i||b===s||b===r||b===u||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===h||b.$$typeof===c||b.$$typeof===l||b.$$typeof===d||b.$$typeof===x||b.getModuleId!==void 0)},Ds.typeOf=y,Ds}function a1n(){return F$e||(F$e=1,R$e.exports=r1n()),R$e.exports}var skt=a1n();function Xy(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 lkt(e){if(m.isValidElement(e)||skt.isValidElementType(e)||!Xy(e))return e;const n={};return Object.keys(e).forEach((i=>{n[i]=lkt(e[i])})),n}function G1(e,n,i={clone:!0}){const r=i.clone?{...e}:e;return Xy(e)&&Xy(n)&&Object.keys(n).forEach((s=>{m.isValidElement(n[s])||skt.isValidElementType(n[s])?r[s]=n[s]:Xy(n[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Xy(e[s])?r[s]=G1(e[s],n[s],i):i.clone?r[s]=Xy(n[s])?lkt(n[s]):n[s]:r[s]=n[s]})),r}function s1n(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:r=5,...s}=e,l=(h=>{const g=Object.keys(h).map((f=>({key:f,val:h[f]})))||[];return g.sort(((f,x)=>f.val-x.val)),g.reduce(((f,x)=>({...f,[x.key]:x.val})),{})})(n),c=Object.keys(l);function d(h){return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${i})`}function u(h){return`@media (max-width:${(typeof n[h]=="number"?n[h]:h)-r/100}${i})`}function p(h,g){const f=c.indexOf(g);return`@media (min-width:${typeof n[h]=="number"?n[h]:h}${i}) and (max-width:${(f!==-1&&typeof n[c[f]]=="number"?n[c[f]]:g)-r/100}${i})`}return{keys:c,values:l,up:d,down:u,between:p,only:function(h){return c.indexOf(h)+1<c.length?p(h,c[c.indexOf(h)+1]):d(h)},not:function(h){const g=c.indexOf(h);return g===0?d(c[1]):g===c.length-1?u(c[g]):p(h,c[c.indexOf(h)+1]).replace("@media","@media not all and")},unit:i,...s}}function z$e(e,n){if(!e.containerQueries)return n;const i=Object.keys(n).filter((r=>r.startsWith("@container"))).sort(((r,s)=>{const l=/min-width:\s*([0-9.]+)/;return+(r.match(l)?.[1]||0)-+(s.match(l)?.[1]||0)}));return i.length?i.reduce(((r,s)=>{const l=n[s];return delete r[s],r[s]=l,r}),{...n}):n}const l1n={borderRadius:4};function iR(e,n){return n?G1(e,n,{clone:!1}):e}const Cne={xs:0,sm:600,md:900,lg:1200,xl:1536},N$e={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cne[e]}px)`},c1n={containerQueries:e=>({up:n=>{let i=typeof n=="number"?n:Cne[n]||n;return typeof i=="number"&&(i=`${i}px`),e?`@container ${e} (min-width:${i})`:`@container (min-width:${i})`}})};function O7(e,n,i){const r=e.theme||{};if(Array.isArray(n)){const s=r.breakpoints||N$e;return n.reduce(((l,c,d)=>(l[s.up(s.keys[d])]=i(n[d]),l)),{})}if(typeof n=="object"){const s=r.breakpoints||N$e;return Object.keys(n).reduce(((l,c)=>{if((function(d,u){return u==="@"||u.startsWith("@")&&(d.some((p=>u.startsWith(`@${p}`)))||!!u.match(/^@\d/))})(s.keys,c)){const d=(function(u,p){const h=p.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,f]=h,x=Number.isNaN(+g)?g||0:+g;return u.containerQueries(f).up(x)})(r.containerQueries?r:c1n,c);d&&(l[d]=i(n[c],c))}else if(Object.keys(s.values||Cne).includes(c))l[s.up(c)]=i(n[c],c);else{const d=c;l[d]=n[d]}return l}),{})}return i(n)}function _$e(e,n){return e.reduce(((i,r)=>{const s=i[r];return(!s||Object.keys(s).length===0)&&delete i[r],i}),n)}function tr(e){if(typeof e!="string")throw new Error(M7(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vne(e,n,i=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&i){const r=`vars.${n}`.split(".").reduce(((s,l)=>s&&s[l]?s[l]:null),e);if(r!=null)return r}return n.split(".").reduce(((r,s)=>r&&r[s]!=null?r[s]:null),e)}function eJ(e,n,i,r=i){let s;return s=typeof e=="function"?e(i):Array.isArray(e)?e[i]||r:vne(e,i)||r,n&&(s=n(s,r,e)),s}function Bc(e){const{prop:n,cssProperty:i=e.prop,themeKey:r,transform:s}=e,l=c=>{if(c[n]==null)return null;const d=c[n],u=vne(c.theme,r)||{};return O7(c,d,(p=>{let h=eJ(u,s,p);return p===h&&typeof p=="string"&&(h=eJ(u,s,`${n}${p==="default"?"":tr(p)}`,p)),i===!1?h:{[i]:h}}))};return l.propTypes={},l.filterProps=[n],l}const d1n={m:"margin",p:"padding"},u1n={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},V$e={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p1n=(function(e){const n={};return i=>(n[i]===void 0&&(n[i]=e(i)),n[i])})((e=>{if(e.length>2){if(!V$e[e])return[e];e=V$e[e]}const[n,i]=e.split(""),r=d1n[n],s=u1n[i]||"";return Array.isArray(s)?s.map((l=>r+l)):[r+s]})),ckt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dkt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function GN(e,n,i,r){const s=vne(e,n,!0)??i;return typeof s=="number"||typeof s=="string"?l=>typeof l=="string"?l:typeof s=="string"?s.startsWith("var(")&&l===0?0:s.startsWith("var(")&&l===1?s:`calc(${l} * ${s})`:s*l:Array.isArray(s)?l=>{if(typeof l=="string")return l;const c=Math.abs(l),d=s[c];return l>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof s=="function"?s:()=>{}}function swe(e){return GN(e,"spacing",8)}function qN(e,n){return typeof n=="string"||n==null?n:e(n)}function h1n(e,n,i,r){if(!n.includes(i))return null;const s=(function(l,c){return d=>l.reduce(((u,p)=>(u[p]=qN(c,d),u)),{})})(p1n(i),r);return O7(e,e[i],s)}function ukt(e,n){const i=swe(e.theme);return Object.keys(e).map((r=>h1n(e,n,r,i))).reduce(iR,{})}function rc(e){return ukt(e,ckt)}function ac(e){return ukt(e,dkt)}function pkt(e=8,n=swe({spacing:e})){if(e.mui)return e;const i=(...r)=>(r.length===0?[1]:r).map((s=>{const l=n(s);return typeof l=="number"?`${l}px`:l})).join(" ");return i.mui=!0,i}function Ane(...e){const n=e.reduce(((r,s)=>(s.filterProps.forEach((l=>{r[l]=s})),r)),{}),i=r=>Object.keys(r).reduce(((s,l)=>n[l]?iR(s,n[l](r)):s),{});return i.propTypes={},i.filterProps=e.reduce(((r,s)=>r.concat(s.filterProps)),[]),i}function Fg(e){return typeof e!="number"?e:`${e}px solid`}function b2(e,n){return Bc({prop:e,themeKey:"borders",transform:n})}rc.propTypes={},rc.filterProps=ckt,ac.propTypes={},ac.filterProps=dkt;const m1n=b2("border",Fg),g1n=b2("borderTop",Fg),f1n=b2("borderRight",Fg),x1n=b2("borderBottom",Fg),y1n=b2("borderLeft",Fg),b1n=b2("borderColor"),w1n=b2("borderTopColor"),C1n=b2("borderRightColor"),v1n=b2("borderBottomColor"),A1n=b2("borderLeftColor"),S1n=b2("outline",Fg),k1n=b2("outlineColor"),hK=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=GN(e.theme,"shape.borderRadius",4),i=r=>({borderRadius:qN(n,r)});return O7(e,e.borderRadius,i)}return null};hK.propTypes={},hK.filterProps=["borderRadius"],Ane(m1n,g1n,f1n,x1n,y1n,b1n,w1n,C1n,v1n,A1n,hK,S1n,k1n);const tJ=e=>{if(e.gap!==void 0&&e.gap!==null){const n=GN(e.theme,"spacing",8),i=r=>({gap:qN(n,r)});return O7(e,e.gap,i)}return null};tJ.propTypes={},tJ.filterProps=["gap"];const nJ=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=GN(e.theme,"spacing",8),i=r=>({columnGap:qN(n,r)});return O7(e,e.columnGap,i)}return null};nJ.propTypes={},nJ.filterProps=["columnGap"];const iJ=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=GN(e.theme,"spacing",8),i=r=>({rowGap:qN(n,r)});return O7(e,e.rowGap,i)}return null};iJ.propTypes={},iJ.filterProps=["rowGap"];function wD(e,n){return n==="grey"?n:e}Ane(tJ,nJ,iJ,Bc({prop:"gridColumn"}),Bc({prop:"gridRow"}),Bc({prop:"gridAutoFlow"}),Bc({prop:"gridAutoColumns"}),Bc({prop:"gridAutoRows"}),Bc({prop:"gridTemplateColumns"}),Bc({prop:"gridTemplateRows"}),Bc({prop:"gridTemplateAreas"}),Bc({prop:"gridArea"}));function p0(e){return e<=1&&e!==0?100*e+"%":e}Ane(Bc({prop:"color",themeKey:"palette",transform:wD}),Bc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wD}),Bc({prop:"backgroundColor",themeKey:"palette",transform:wD}));const j1n=Bc({prop:"width",transform:p0}),lwe=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=i=>{const r=e.theme?.breakpoints?.values?.[i]||Cne[i];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:p0(i)}};return O7(e,e.maxWidth,n)}return null};lwe.filterProps=["maxWidth"];const $1n=Bc({prop:"minWidth",transform:p0}),E1n=Bc({prop:"height",transform:p0}),I1n=Bc({prop:"maxHeight",transform:p0}),D1n=Bc({prop:"minHeight",transform:p0});Bc({prop:"size",cssProperty:"width",transform:p0}),Bc({prop:"size",cssProperty:"height",transform:p0});Ane(j1n,lwe,$1n,E1n,I1n,D1n,Bc({prop:"boxSizing"}));const Sne={border:{themeKey:"borders",transform:Fg},borderTop:{themeKey:"borders",transform:Fg},borderRight:{themeKey:"borders",transform:Fg},borderBottom:{themeKey:"borders",transform:Fg},borderLeft:{themeKey:"borders",transform:Fg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fg},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hK},color:{themeKey:"palette",transform:wD},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wD},backgroundColor:{themeKey:"palette",transform:wD},p:{style:ac},pt:{style:ac},pr:{style:ac},pb:{style:ac},pl:{style:ac},px:{style:ac},py:{style:ac},padding:{style:ac},paddingTop:{style:ac},paddingRight:{style:ac},paddingBottom:{style:ac},paddingLeft:{style:ac},paddingX:{style:ac},paddingY:{style:ac},paddingInline:{style:ac},paddingInlineStart:{style:ac},paddingInlineEnd:{style:ac},paddingBlock:{style:ac},paddingBlockStart:{style:ac},paddingBlockEnd:{style:ac},m:{style:rc},mt:{style:rc},mr:{style:rc},mb:{style:rc},ml:{style:rc},mx:{style:rc},my:{style:rc},margin:{style:rc},marginTop:{style:rc},marginRight:{style:rc},marginBottom:{style:rc},marginLeft:{style:rc},marginX:{style:rc},marginY:{style:rc},marginInline:{style:rc},marginInlineStart:{style:rc},marginInlineEnd:{style:rc},marginBlock:{style:rc},marginBlockStart:{style:rc},marginBlockEnd:{style:rc},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:tJ},rowGap:{style:iJ},columnGap:{style:nJ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:p0},maxWidth:{style:lwe},minWidth:{transform:p0},height:{transform:p0},maxHeight:{transform:p0},minHeight:{transform:p0},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"}},IS=(function(){function e(n,i,r,s){const l={[n]:i,theme:r},c=s[n];if(!c)return{[n]:i};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[n]:i};const g=vne(r,u)||{};return h?h(l):O7(l,i,(f=>{let x=eJ(g,p,f);return f===x&&typeof f=="string"&&(x=eJ(g,p,`${n}${f==="default"?"":tr(f)}`,f)),d===!1?x:{[d]:x}}))}return function n(i){const{sx:r,theme:s={},nested:l}=i||{};if(!r)return null;const c=s.unstable_sxConfig??Sne;function d(u){let p=u;if(typeof u=="function")p=u(s);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)),{})||{}})(s.breakpoints),g=Object.keys(h);let f=h;return Object.keys(p).forEach((x=>{const y=(function(b,w){return typeof b=="function"?b(w):b})(p[x],s);if(y!=null)if(typeof y=="object")if(c[x])f=iR(f,e(x,y,s,c));else{const b=O7({theme:s},y,(w=>({[x]:w})));(function(...w){const C=w.reduce(((A,S)=>A.concat(Object.keys(S))),[]),v=new Set(C);return w.every((A=>v.size===Object.keys(A).length))})(b,y)?f[x]=n({sx:y,theme:s,nested:!0}):f=iR(f,b)}else f=iR(f,e(x,y,s,c))})),!l&&s.modularCssLayers?{"@layer sx":z$e(s,_$e(g,f))}:z$e(s,_$e(g,f))}return Array.isArray(r)?r.map(d):d(r)}})();function T1n(e,n){const i=this;if(i.vars){if(!i.colorSchemes?.[e]||typeof i.getColorSchemeSelector!="function")return{};let r=i.getColorSchemeSelector(e);return r==="&"?n:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:n})}return i.palette.mode===e?n:{}}function cwe(e={},...n){const{breakpoints:i={},palette:r={},spacing:s,shape:l={},...c}=e;let d=G1({breakpoints:s1n(i),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:pkt(s),shape:{...l1n,...l}},c);return d=(function(u){const p=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...b)=>p(u.breakpoints.up(...b),y),x.down=(...b)=>p(u.breakpoints.down(...b),y),x.between=(...b)=>p(u.breakpoints.between(...b),y),x.only=(...b)=>p(u.breakpoints.only(...b),y),x.not=(...b)=>{const w=p(u.breakpoints.not(...b),y);return w.includes("not all and")?w.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):w}}const g={},f=x=>(h(g,x),g);return h(f),{...u,containerQueries:f}})(d),d.applyStyles=T1n,d=n.reduce(((u,p)=>G1(u,p)),d),d.unstable_sxConfig={...Sne,...c?.unstable_sxConfig},d.unstable_sx=function(u){return IS({sx:u,theme:this})},d}function J5e(e=null){const n=m.useContext(HSt);return!n||(function(i){return Object.keys(i).length===0})(n)?e:n}IS.filterProps=["sx"];const L1n=cwe();function hkt(e=L1n){return J5e(e)}function H$e(e){const n=G9(e);return e!==n&&n.styles?(n.styles.match(/^@layer\s+[^{]*$/)||(n.styles=`@layer global{${n.styles}}`),n):e}function mkt({styles:e,themeId:n,defaultTheme:i={}}){const r=hkt(i),s=n&&r[n]||r;let l=typeof e=="function"?e(s):e;return s.modularCssLayers&&(l=Array.isArray(l)?l.map((c=>H$e(typeof c=="function"?c(s):c))):H$e(l)),t.jsx(akt,{styles:l})}const U$e=e=>e,B1n=(()=>{let e=U$e;return{configure(n){e=n},generate:n=>e(n),reset(){e=U$e}}})();function gkt(e){var n,i,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(i=gkt(e[n]))&&(r&&(r+=" "),r+=i)}else for(i in e)e[i]&&(r&&(r+=" "),r+=i);return r}function ir(){for(var e,n,i=0,r="",s=arguments.length;i<s;i++)(e=arguments[i])&&(n=gkt(e))&&(r&&(r+=" "),r+=n);return r}const P1n={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 ns(e,n,i="Mui"){const r=P1n[n];return r?`${i}-${r}`:`${B1n.generate(e)}-${n}`}function La(e,n,i="Mui"){const r={};return n.forEach((s=>{r[s]=ns(e,s,i)})),r}function fkt(e){const{variants:n,...i}=e,r={variants:n,style:G9(i),isProcessed:!0};return r.style===i||n&&n.forEach((s=>{typeof s.style!="function"&&(s.style=G9(s.style))})),r}const M1n=cwe();function Ise(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yA(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function O1n(e){return e?(n,i)=>i[e]:null}function mK(e,n,i){const r=typeof n=="function"?n(e):n;if(Array.isArray(r))return r.flatMap((s=>mK(e,s,i)));if(Array.isArray(r?.variants)){let s;if(r.isProcessed)s=i?yA(r.style,i):r.style;else{const{variants:l,...c}=r;s=i?yA(G9(c),i):c}return xkt(e,r.variants,[s],i)}return r?.isProcessed?i?yA(G9(r.style),i):r.style:i?yA(G9(r),i):r}function xkt(e,n,i=[],r=void 0){let s;e:for(let l=0;l<n.length;l+=1){const c=n[l];if(typeof c.props=="function"){if(s??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(s))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"?(s??={...e,...e.ownerState,ownerState:e.ownerState},i.push(r?yA(G9(c.style(s)),r):c.style(s))):i.push(r?yA(G9(c.style),r):c.style)}return i}function F1n(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function X5e(e,n,i=!1){const r={...n};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const l=s;if(l==="components"||l==="slots")r[l]={...e[l],...r[l]};else if(l==="componentsProps"||l==="slotProps"){const c=e[l],d=n[l];if(d)if(c){r[l]={...d};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const p=u;r[l][p]=X5e(c[p],d[p],i)}}else r[l]=d;else r[l]=c||{}}else l==="className"&&i&&n.className?r.className=ir(e?.className,n?.className):l==="style"&&i&&n.style?r.style={...e?.style,...n?.style}:r[l]===void 0&&(r[l]=e[l])}return r}const D0=typeof window<"u"?m.useLayoutEffect:m.useEffect;function dwe(e,n=0,i=1){return(function(r,s=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(s,Math.min(r,l))})(e,n,i)}function p8(e){if(e.type)return e;if(e.charAt(0)==="#")return p8((function(l){l=l.slice(1);const c=new RegExp(`.{1,${l.length>=6?2:1}}`,"g");let d=l.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("("),i=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(M7(9,e));let r,s=e.substring(n+1,e.length-1);if(i==="color"){if(s=s.split(" "),r=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(M7(10,r))}else s=s.split(",");return s=s.map((l=>parseFloat(l))),{type:i,values:s,colorSpace:r}}const KO=(e,n)=>{try{return(i=>{const r=p8(i);return r.values.slice(0,3).map(((s,l)=>r.type.includes("hsl")&&l!==0?`${s}%`:s)).join(" ")})(e)}catch{return e}};function kne(e){const{type:n,colorSpace:i}=e;let{values:r}=e;return n.includes("rgb")?r=r.map(((s,l)=>l<3?parseInt(s,10):s)):n.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=n.includes("color")?`${i} ${r.join(" ")}`:`${r.join(", ")}`,`${n}(${r})`}function ykt(e){e=p8(e);const{values:n}=e,i=n[0],r=n[1]/100,s=n[2]/100,l=r*Math.min(s,1-s),c=(p,h=(p+i/30)%12)=>s-l*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])),kne({type:d,values:u})}function exe(e){let n=(e=p8(e)).type==="hsl"||e.type==="hsla"?p8(ykt(e)).values:e.values;return n=n.map((i=>(e.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4))),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function oJ(e,n){return e=p8(e),n=dwe(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,kne(e)}function Jw(e,n,i){try{return oJ(e,n)}catch{return e}}function jne(e,n){if(e=p8(e),n=dwe(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]*=1-n;return kne(e)}function xs(e,n,i){try{return jne(e,n)}catch{return e}}function $ne(e,n){if(e=p8(e),n=dwe(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let i=0;i<3;i+=1)e.values[i]+=(255-e.values[i])*n;else if(e.type.includes("color"))for(let i=0;i<3;i+=1)e.values[i]+=(1-e.values[i])*n;return kne(e)}function ys(e,n,i){try{return $ne(e,n)}catch{return e}}function HV(e,n,i){try{return(function(r,s=.15){return exe(r)>.5?jne(r,s):$ne(r,s)})(e,n)}catch{return e}}const bkt=m.createContext(null);function uwe(){return m.useContext(bkt)}const R1n=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function z1n(e){const{children:n,theme:i}=e,r=uwe(),s=m.useMemo((()=>{const l=r===null?{...i}:(function(c,d){return typeof d=="function"?d(c):{...c,...d}})(r,i);return l!=null&&(l[R1n]=r!==null),l}),[i,r]);return t.jsx(bkt.Provider,{value:s,children:n})}const wkt=m.createContext();function N1n({value:e,...n}){return t.jsx(wkt.Provider,{value:e??!0,...n})}const Ene=()=>m.useContext(wkt)??!1,Ckt=m.createContext(void 0);function _1n({value:e,children:n}){return t.jsx(Ckt.Provider,{value:e,children:n})}function V1n({props:e,name:n}){return(function(i){const{theme:r,name:s,props:l}=i;if(!r||!r.components||!r.components[s])return l;const c=r.components[s];return c.defaultProps?X5e(c.defaultProps,l,r.components.mergeClassNameAndStyle):c.styleOverrides||c.variants?l:X5e(c,l,r.components.mergeClassNameAndStyle)})({props:e,name:n,theme:{components:m.useContext(Ckt)}})}let W$e=0;const Q$e={...bsn}.useId;function Ine(e){if(Q$e!==void 0){const n=Q$e();return e??n}return(function(n){const[i,r]=m.useState(n),s=n||i;return m.useEffect((()=>{i==null&&(W$e+=1,r(`mui-${W$e}`))}),[i]),s})(e)}const Y$e={};function G$e(e,n,i,r=!1){return m.useMemo((()=>{const s=e&&n[e]||n;if(typeof i=="function"){const l=i(s),c=e?{...n,[e]:l}:l;return r?()=>c:c}return e?{...n,[e]:i}:{...n,...i}}),[e,n,i,r])}function vkt(e){const{children:n,theme:i,themeId:r}=e,s=J5e(Y$e),l=uwe()||Y$e,c=G$e(r,s,i),d=G$e(r,l,i,!0),u=(r?c[r]:c).direction==="rtl",p=(function(h){const g=J5e(),f=Ine()||"",{modularCssLayers:x}=h;let y="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return y=x&&g===null?typeof x=="string"?x.replace(/mui(?!\.)/g,y):`@layer ${y};`:"",D0((()=>{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(mkt,{styles:y}):null})(c);return t.jsx(z1n,{theme:d,children:t.jsx(HSt.Provider,{value:c,children:t.jsx(N1n,{value:u,children:t.jsxs(_1n,{value:r?c[r].components:c.components,children:[p,n]})})})})}const q$e={theme:void 0},txe="mode",nxe="color-scheme",H1n="data-color-scheme";function U1n(){}const W1n=({key:e,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(i){if(typeof window>"u")return;if(!n)return i;let r;try{r=n.localStorage.getItem(e)}catch{}return r||i},set:i=>{if(n)try{n.localStorage.setItem(e,i)}catch{}},subscribe:i=>{if(!n)return U1n;const r=s=>{const l=s.newValue;s.key===e&&i(l)};return n.addEventListener("storage",r),()=>{n.removeEventListener("storage",r)}}});function Dse(){}function K$e(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Z$e(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 Q1n(e){const{defaultMode:n="light",defaultLightColorScheme:i,defaultDarkColorScheme:r,supportedColorSchemes:s=[],modeStorageKey:l=txe,colorSchemeStorageKey:c=nxe,storageWindow:d=typeof window>"u"?void 0:window,storageManager:u=W1n,noSsr:p=!1}=e,h=s.join(","),g=s.length>1,f=m.useMemo((()=>u?.({key:l,storageWindow:d})),[u,l,d]),x=m.useMemo((()=>u?.({key:`${c}-light`,storageWindow:d})),[u,c,d]),y=m.useMemo((()=>u?.({key:`${c}-dark`,storageWindow:d})),[u,c,d]),[b,w]=m.useState((()=>{const I=f?.get(n)||n,D=x?.get(i)||i,B=y?.get(r)||r;return{mode:I,systemMode:K$e(I),lightColorScheme:D,darkColorScheme:B}})),[C,v]=m.useState(p||!g);m.useEffect((()=>{v(!0)}),[]);const A=(function(I){return Z$e(I,(D=>D==="light"?I.lightColorScheme:D==="dark"?I.darkColorScheme:void 0))})(b),S=m.useCallback((I=>{w((D=>{if(I===D.mode)return D;const B=I??n;return f?.set(B),{...D,mode:B,systemMode:K$e(B)}}))}),[f,n]),$=m.useCallback((I=>{I?typeof I=="string"?I&&!h.includes(I)?console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`):w((D=>{const B={...D};return Z$e(D,(F=>{F==="light"&&(x?.set(I),B.lightColorScheme=I),F==="dark"&&(y?.set(I),B.darkColorScheme=I)})),B})):w((D=>{const B={...D},F=I.light===null?i:I.light,R=I.dark===null?r:I.dark;return F&&(h.includes(F)?(B.lightColorScheme=F,x?.set(F)):console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`)),R&&(h.includes(R)?(B.darkColorScheme=R,y?.set(R)):console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`)),B})):w((D=>(x?.set(i),y?.set(r),{...D,lightColorScheme:i,darkColorScheme:r})))}),[h,x,y,i,r]),j=m.useCallback((I=>{b.mode==="system"&&w((D=>{const B=I?.matches?"dark":"light";return D.systemMode===B?D:{...D,systemMode:B}}))}),[b.mode]),E=m.useRef(j);return E.current=j,m.useEffect((()=>{if(typeof window.matchMedia!="function"||!g)return;const I=(...B)=>E.current(...B),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(I),I(D),()=>{D.removeListener(I)}}),[g]),m.useEffect((()=>{if(g){const I=f?.subscribe((F=>{(!F||["light","dark","system"].includes(F))&&S(F||n)}))||Dse,D=x?.subscribe((F=>{(!F||h.match(F))&&$({light:F})}))||Dse,B=y?.subscribe((F=>{(!F||h.match(F))&&$({dark:F})}))||Dse;return()=>{I(),D(),B()}}}),[$,S,h,n,d,g,f,x,y]),{...b,mode:C?b.mode:void 0,systemMode:C?b.systemMode:void 0,colorScheme:C?A:void 0,setMode:S,setColorScheme:$}}function Y1n(e=""){function n(...i){if(!i.length)return"";const r=i[0];return typeof r!="string"||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${n(...i.slice(1))})`}return(i,...r)=>`var(--${e?`${e}-`:""}${i}${n(...r)})`}const J$e=(e,n,i,r=[])=>{let s=e;n.forEach(((l,c)=>{c===n.length-1?Array.isArray(s)?s[Number(l)]=i:s&&typeof s=="object"&&(s[l]=i):s&&typeof s=="object"&&(s[l]||(s[l]=r.includes(l)?[]:{}),s=s[l])}))};function Tse(e,n){const{prefix:i,shouldSkipGeneratingVar:r}=n||{},s={},l={},c={};return((d,u,p)=>{(function h(g,f=[],x=[]){Object.entries(g).forEach((([y,b])=>{(!p||p&&!p([...f,y]))&&b!=null&&(typeof b=="object"&&Object.keys(b).length>0?h(b,[...f,y],Array.isArray(b)?[...x,y]:x):u([...f,y],b,x))}))})(d)})(e,((d,u,p)=>{if(!(typeof u!="string"&&typeof u!="number"||r&&r(d,u))){const h=`--${i?`${i}-`:""}${d.join("-")}`,g=((f,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some((y=>f.includes(y)))||f[f.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(d,u);Object.assign(s,{[h]:g}),J$e(l,d,`var(${h})`,p),J$e(c,d,`var(${h}, ${g})`,p)}}),(d=>d[0]==="vars")),{css:s,vars:l,varsWithDefaults:c}}function is(e,n,i=void 0){const r={};for(const s in e){const l=e[s];let c="",d=!0;for(let u=0;u<l.length;u+=1){const p=l[u];p&&(c+=(d===!0?"":" ")+n(p),d=!1,i&&i[p]&&(c+=" "+i[p]))}r[s]=c}return r}function Lse(e,n){return m.isValidElement(e)&&n.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}const $z={black:"#000",white:"#fff"},G1n={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"},q1n="#f3e5f5",K1n="#ce93d8",Z1n="#ba68c8",J1n="#ab47bc",X1n="#9c27b0",epn="#7b1fa2",tpn="#e57373",npn="#ef5350",ipn="#f44336",X$e="#d32f2f",opn="#c62828",rpn="#ffb74d",apn="#ffa726",spn="#ff9800",lpn="#f57c00",cpn="#e65100",dpn="#e3f2fd",upn="#90caf9",eEe="#42a5f5",ppn="#1976d2",hpn="#1565c0",mpn="#4fc3f7",gpn="#29b6f6",fpn="#03a9f4",tEe="#0288d1",xpn="#01579b",ypn="#81c784",bpn="#66bb6a",wpn="#4caf50",Cpn="#388e3c",vpn="#2e7d32",Apn="#1b5e20";function Akt(){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:$z.white,default:$z.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 Skt=Akt();function kkt(){return{text:{primary:$z.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:$z.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 ixe=kkt();function nEe(e,n,i,r){const s=r.light||r,l=r.dark||1.5*r;e[n]||(e.hasOwnProperty(i)?e[n]=e[i]:n==="light"?e.light=$ne(e.main,s):n==="dark"&&(e.dark=jne(e.main,l)))}function iEe(e,n,i,r,s){const l=s.light||s,c=s.dark||1.5*s;n[i]||(n.hasOwnProperty(r)?n[i]=n[r]:i==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(100*l).toFixed(0)}%)`:i==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(100*c).toFixed(0)}%)`))}function pwe(e){const{mode:n="light",contrastThreshold:i=3,tonalOffset:r=.2,colorSpace:s,...l}=e,c=e.primary||(function(b="light"){return b==="dark"?{main:upn,light:dpn,dark:eEe}:{main:ppn,light:eEe,dark:hpn}})(n),d=e.secondary||(function(b="light"){return b==="dark"?{main:K1n,light:q1n,dark:J1n}:{main:X1n,light:Z1n,dark:epn}})(n),u=e.error||(function(b="light"){return b==="dark"?{main:ipn,light:tpn,dark:X$e}:{main:X$e,light:npn,dark:opn}})(n),p=e.info||(function(b="light"){return b==="dark"?{main:gpn,light:mpn,dark:tEe}:{main:tEe,light:fpn,dark:xpn}})(n),h=e.success||(function(b="light"){return b==="dark"?{main:bpn,light:ypn,dark:Cpn}:{main:vpn,light:wpn,dark:Apn}})(n),g=e.warning||(function(b="light"){return b==="dark"?{main:apn,light:rpn,dark:lpn}:{main:"#ed6c02",light:spn,dark:cpn}})(n);function f(b){return s?(function(C){return`oklch(from ${C} var(--__l) 0 h / var(--__a))`})(b):(function(C,v){const A=exe(C),S=exe(v);return(Math.max(A,S)+.05)/(Math.min(A,S)+.05)})(b,ixe.text.primary)>=i?ixe.text.primary:Skt.text.primary}const x=({color:b,name:w,mainShade:C=500,lightShade:v=300,darkShade:A=700})=>{if(!(b={...b}).main&&b[C]&&(b.main=b[C]),!b.hasOwnProperty("main"))throw new Error(M7(11,w?` (${w})`:"",C));if(typeof b.main!="string")throw new Error(M7(12,w?` (${w})`:"",JSON.stringify(b.main)));return s?(iEe(s,b,"light",v,r),iEe(s,b,"dark",A,r)):(nEe(b,"light",v,r),nEe(b,"dark",A,r)),b.contrastText||(b.contrastText=f(b.main)),b};let y;return n==="light"?y=Akt():n==="dark"&&(y=kkt()),G1({common:{...$z},mode:n,primary:x({color:c,name:"primary"}),secondary:x({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:u,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:p,name:"info"}),success:x({color:h,name:"success"}),grey:G1n,contrastThreshold:i,getContrastText:f,augmentColor:x,tonalOffset:r,...y},l)}function Spn(e){const n={};return Object.entries(e).forEach((i=>{const[r,s]=i;typeof s=="object"&&(n[r]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)})),n}function kpn(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function jpn(e){return Math.round(1e5*e)/1e5}const oEe={textTransform:"uppercase"},rEe='"Roboto", "Helvetica", "Arial", sans-serif';function jkt(e,n){const{fontFamily:i=rEe,fontSize:r=14,fontWeightLight:s=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:h,...g}=typeof n=="function"?n(e):n,f=r/14,x=h||(w=>w/u*f+"rem"),y=(w,C,v,A,S)=>({fontFamily:i,fontWeight:w,fontSize:x(C),lineHeight:v,...i===rEe?{letterSpacing:`${jpn(A/C)}em`}:{},...S,...p}),b={h1:y(s,96,1.167,-1.5),h2:y(s,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(c,14,1.75,.4,oEe),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,oEe),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return G1({htmlFontSize:u,pxToRem:x,fontFamily:i,fontSize:r,fontWeightLight:s,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:d,...b},g,{clone:!1})}function Sl(...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 $pn=["none",Sl(0,2,1,-1,0,1,1,0,0,1,3,0),Sl(0,3,1,-2,0,2,2,0,0,1,5,0),Sl(0,3,3,-2,0,3,4,0,0,1,8,0),Sl(0,2,4,-1,0,4,5,0,0,1,10,0),Sl(0,3,5,-1,0,5,8,0,0,1,14,0),Sl(0,3,5,-1,0,6,10,0,0,1,18,0),Sl(0,4,5,-2,0,7,10,1,0,2,16,1),Sl(0,5,5,-3,0,8,10,1,0,3,14,2),Sl(0,5,6,-3,0,9,12,1,0,3,16,2),Sl(0,6,6,-3,0,10,14,1,0,4,18,3),Sl(0,6,7,-4,0,11,15,1,0,4,20,3),Sl(0,7,8,-4,0,12,17,2,0,5,22,4),Sl(0,7,8,-4,0,13,19,2,0,5,24,4),Sl(0,7,9,-4,0,14,21,2,0,5,26,4),Sl(0,8,9,-5,0,15,22,2,0,6,28,5),Sl(0,8,10,-5,0,16,24,2,0,6,30,5),Sl(0,8,11,-5,0,17,26,2,0,6,32,5),Sl(0,9,11,-5,0,18,28,2,0,7,34,6),Sl(0,9,12,-6,0,19,29,2,0,7,36,6),Sl(0,10,13,-6,0,20,31,3,0,8,38,7),Sl(0,10,13,-6,0,21,33,3,0,8,40,7),Sl(0,10,14,-6,0,22,35,3,0,8,42,7),Sl(0,11,14,-7,0,23,36,3,0,9,44,8),Sl(0,11,15,-7,0,24,38,3,0,9,46,8)],Epn={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)"},$kt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function aEe(e){return`${Math.round(e)}ms`}function Ipn(e){if(!e)return 0;const n=e/36;return Math.min(Math.round(10*(4+15*n**.25+n/5)),3e3)}function Dpn(e){const n={...Epn,...e.easing},i={...$kt,...e.duration};return{getAutoHeightDuration:Ipn,create:(r=["all"],s={})=>{const{duration:l=i.standard,easing:c=n.easeInOut,delay:d=0,...u}=s;return(Array.isArray(r)?r:[r]).map((p=>`${p} ${typeof l=="string"?l:aEe(l)} ${c} ${typeof d=="string"?d:aEe(d)}`)).join(",")},...e,easing:n,duration:i}}const Tpn={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Lpn(e){return Xy(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ekt(e={}){const n={...e};return(function i(r){const s=Object.entries(r);for(let l=0;l<s.length;l++){const[c,d]=s[l];!Lpn(d)||c.startsWith("unstable_")?delete r[c]:Xy(d)&&(r[c]={...d},i(r[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
 
@@ -10588,7 +10588,7 @@ To reactivate your account, please settle the outstanding balance. Contact suppo
10588
10588
  padding-top: ${e=>Cm.ButtonContainerPaddingTop.valuePx(e.windowSize)};
10589
10589
  `,oxi=a.div``,rxi=a((e=>m.createElement("svg",{width:598,height:361,viewBox:"0 0 598 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M3 42V10C3 5.58172 6.58172 2 11 2H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 42V10C595 5.58172 591.418 2 587 2H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M3 319V351C3 355.418 6.58172 359 11 359H43",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M595 319V351C595 355.418 591.418 359 587 359H555",stroke:"#FEFEFE",strokeWidth:3,strokeLinejoin:"round"}),m.createElement("path",{d:"M160 164.999C160 163.344 161.05 162 162.344 162L232.656 162C233.95 162 235 163.344 235 164.999C235 166.655 233.95 167.999 232.656 167.999L162.344 167.999C161.05 167.999 160 166.655 160 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M337.544 164.999C337.544 163.344 338.944 162 340.669 162L434.419 162C436.144 162 437.544 163.344 437.544 164.999C437.544 166.655 436.144 167.999 434.419 167.999L340.669 167.999C338.944 167.999 337.544 166.655 337.544 164.999Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M261.544 165C261.544 163.344 262.594 162 263.888 162L309.2 162C310.494 162 311.544 163.344 311.544 165C311.544 166.656 310.494 168 309.2 168L263.888 168C262.594 168 261.544 166.656 261.544 165Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 202C138 200.344 140.924 199 144.527 199L453.473 199C457.076 199 460 200.344 460 202C460 203.656 457.076 205 453.473 205L144.527 205C140.924 205 138 203.656 138 202Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M138 276C138 274.344 140.924 273 144.527 273L453.473 273C457.076 273 460 274.344 460 276C460 277.656 457.076 279 453.473 279L144.527 279C140.924 279 138 277.656 138 276Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M207 239C207 237.344 209.29 236 212.111 236L385.889 236C388.71 236 391 237.344 391 239C391 240.656 388.71 242 385.889 242L212.111 242C209.29 242 207 240.656 207 239Z",fill:"#FEFEFE"}),m.createElement("path",{d:"M3 113C234.19 51.6667 363.81 51.6667 595 113",stroke:"#FAFAFA",strokeWidth:5,strokeLinecap:"round"}))))`
10590
10590
  transform: scale(1, 0.9);
10591
- `,axi=a(dl)``,mqe="application/pdf",eNt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],sxi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function lxi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).promise,(await(function(c,d){return new Promise(((u,p)=>{c.toBlob((h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))}),"image/jpeg",d)}))})(s,i)).arrayBuffer()}async function cxi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===mqe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([Pd((()=>import("./pdf-lib-D7-8SdHl.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),Pd((()=>import("./pdf-DMCYUxGc.js").then((b=>b.i))),__vite__mapDeps([0,1,2])).then((b=>b.pdfjs))]),p=await l.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await lxi(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),A=v.scale(1);f.addPage([A.width,A.height]).drawImage(v,{x:0,y:0,width:A.width,height:A.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:mqe,lastModified:l.lastModified})})(i,n);return s.size<i.size?{blob:s,name:s.name}:{blob:e,name:n}}const r=await(async(s,l)=>{if(eNt.includes(s.type)===!1)return s;const c=await Hu(s,sxi),d=c.type.split("/")[1],u=`${l.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:s.lastModified,type:c.type})})(i,n);return{blob:r,name:r.name}}const dxi=({fileType:e="file",fileRef:n,name:i,value:r="",multiple:s=!1,acceptableTypes:l,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:i,value:r,size:1e3,"data-testid":Y("input-file-element-mobile",i),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(l??"image/jpg, image/jpeg").toString()}`,multiple:s,capture:!0}),S_=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=ZCe(TOt),[c]=oa("MoneyTransferSuccess");return M.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(qs,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},Yve=e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));GSt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${YSt}/pdf.worker.mjs`;const{common:gqe}=se.getLocalizedStrings(),fqe=(e,n,i)=>e.variant==="deleted"?"deleted":e.variant==="excluded"?"excluded":n!=null&&e.statementTransactionId===n||i!=null&&e.statementTransactionId===i?"hovered":e.variant??"default",xqe=(e,n,i)=>{const r=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const s of r){if(s.dataset.citationVariant==="excluded")continue;const l=s.getBoundingClientRect();if(n>=l.left&&n<=l.right&&i>=l.top&&i<=l.bottom)return s.dataset.statementTransactionId}},yqe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,uxi=(e,n,i="smooth")=>{const r=n??(d=>{let u=d.parentElement;for(;u!=null;){const{overflowY:p}=window.getComputedStyle(u);if((p==="auto"||p==="scroll")&&u.scrollHeight>u.clientHeight)return u;u=u.parentElement}return null})(e);if(r==null)return void e.scrollIntoView({behavior:i,block:"center"});const s=e.getBoundingClientRect(),l=r.getBoundingClientRect(),c=r.scrollTop+(s.top-l.top)-(r.clientHeight-s.height)/2;r.scrollTo({top:Math.max(0,c),behavior:i})};function bqe(e,n,i){const{minX:r,maxX:s,minY:l,maxY:c}=(function(d){const u=d.map((h=>h.x)),p=d.map((h=>h.y));return{maxX:Math.max(...u),maxY:Math.max(...p),minX:Math.min(...u),minY:Math.min(...p)}})(e);return{height:(c-l)/i*100,left:r/n*100,top:l/i*100,width:(s-r)/n*100}}function Kz(e){const[n,i]=m.useState(0),[r,s]=m.useState(void 0),[l,c]=m.useState(null),[d,u]=m.useState(void 0),p=fe(),h=m.useRef(null),g=m.useRef(null),f=m.useRef(void 0),x=e.highlightedCitations!=null&&e.highlightedCitations.length>0;m.useLayoutEffect((()=>{if(e.isFullScreen)return void s(void 0);const $=g.current;if($==null)return;const j=()=>{const I=Math.floor($.clientWidth);I>0&&s((D=>D===I?D:I))};j();const E=new ResizeObserver(j);return E.observe($),()=>{E.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(xqe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(xqe($.currentTarget,$.clientX,$.clientY))},v=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=yqe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const E=g.current,I=E!=null&&E.scrollHeight>E.clientHeight?E:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((B,F)=>{const R=B.getBoundingClientRect(),_=F!=null?F.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return R.bottom>_.top&&R.top<_.bottom&&R.right>_.left&&R.left<_.right})(D,I))return;uxi(D,I)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;v();const $=requestAnimationFrame(v),j=window.setTimeout(v,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,v]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const A=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((E=>E.page===$));return j.length===0?null:t.jsx(wqe,{children:j.flatMap(((E,I)=>{const D=bqe(E.polygon,E.pageWidth,E.pageHeight),B=fqe(E,e.selectedStatementTransactionId,d);return t.jsx(Cqe,{"data-citation-variant":B,"data-statement-transaction-id":E.statementTransactionId,$variant:B,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${I}`)}))})},S=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(nh,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:sS,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(pxi,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||S()},onDoubleClick:()=>{x&&S()},windowSize:p,"data-testid":Y("attachment-container",e.pdfTitle),children:t.jsxs(hxi,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(mxi,{children:[t.jsx(gxi,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(fxi,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(Ge,{enterDelay:600,display:"flex",title:gqe.texts.replace,placement:"top-end",children:t.jsx(xxi,{"data-testid":Y("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(bxi,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Y("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(Ge,{enterDelay:600,display:"flex",title:gqe.delete,placement:"top",children:t.jsx(yxi,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Y("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(Sxi,{children:t.jsxs(kxi,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(jxi,{src:e.fileUrl,alt:e.pdfTitle,onLoad:$=>{const j=$.currentTarget;c({width:j.naturalWidth,height:j.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||l==null)return null;const $=e.highlightedCitations.filter((j=>j.page===1));return $.length===0?null:t.jsx(wqe,{children:$.flatMap(((j,E)=>{const I=bqe(j.polygon,j.pageWidth,j.pageHeight),D=fqe(j,e.selectedStatementTransactionId,d);return t.jsx(Cqe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${I.height}%`,left:`${I.left}%`,top:`${I.top}%`,width:`${I.width}%`}},`${E}`)}))})})()]})}):t.jsxs(G5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(vxi,{children:t.jsx(Yn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(ai,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(wxi,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(Axi,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(q5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?yqe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&v()}},`page_${j+1}`),A(j+1)]}),n!=j+1?t.jsx(Cxi,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const pxi=a.div`
10591
+ `,axi=a(dl)``,mqe="application/pdf",eNt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],sxi={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function lxi(e,n,i){const r=e.getViewport({scale:n}),s=document.createElement("canvas");s.width=Math.floor(r.width),s.height=Math.floor(r.height);const l=s.getContext("2d");if(l==null)throw new Error("Could not get canvas 2d context");return await e.render({canvasContext:l,viewport:r}).promise,(await(function(c,d){return new Promise(((u,p)=>{c.toBlob((h=>{h!=null?u(h):p(new Error("canvas.toBlob returned null"))}),"image/jpeg",d)}))})(s,i)).arrayBuffer()}async function cxi(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===mqe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([Pd((()=>import("./pdf-lib-B5AjOY9Z.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),Pd((()=>import("./pdf-BfgO0ZZE.js").then((b=>b.i))),__vite__mapDeps([0,1,2])).then((b=>b.pdfjs))]),p=await l.arrayBuffer(),h=await u.getDocument({data:new Uint8Array(p)}).promise,g=h.numPages,f=await d.create();for(let b=1;b<=g;b++){const w=await h.getPage(b),C=await lxi(w,1.5,.7),v=await f.embedJpg(new Uint8Array(C)),A=v.scale(1);f.addPage([A.width,A.height]).drawImage(v,{x:0,y:0,width:A.width,height:A.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:mqe,lastModified:l.lastModified})})(i,n);return s.size<i.size?{blob:s,name:s.name}:{blob:e,name:n}}const r=await(async(s,l)=>{if(eNt.includes(s.type)===!1)return s;const c=await Hu(s,sxi),d=c.type.split("/")[1],u=`${l.replace(/\.[^.]+$/,"")||"image"}.${d}`;return new File([c],u,{lastModified:s.lastModified,type:c.type})})(i,n);return{blob:r,name:r.name}}const dxi=({fileType:e="file",fileRef:n,name:i,value:r="",multiple:s=!1,acceptableTypes:l,onFileSizeError:c,onImageChange:d})=>t.jsx("input",{type:e,ref:n,name:i,value:r,size:1e3,"data-testid":Y("input-file-element-mobile",i),onChange:async u=>{const p=u.target.files?.[0],h=p?.size;p!=null&&h!=null?(c?.(!1),d(p),u.target.value=""):(c?.(!0),u.target.value="")},style:{display:"none"},accept:`${(l??"image/jpg, image/jpeg").toString()}`,multiple:s,capture:!0}),S_=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=ZCe(TOt),[c]=oa("MoneyTransferSuccess");return M.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(qs,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},Yve=e=>m.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("path",{d:"M7.5055 4L1.5 9.54354L22.5 9.5435",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),m.createElement("path",{d:"M16.4945 19.7067L22.5 14.1632H1.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));GSt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${YSt}/pdf.worker.mjs`;const{common:gqe}=se.getLocalizedStrings(),fqe=(e,n,i)=>e.variant==="deleted"?"deleted":e.variant==="excluded"?"excluded":n!=null&&e.statementTransactionId===n||i!=null&&e.statementTransactionId===i?"hovered":e.variant??"default",xqe=(e,n,i)=>{const r=Array.from(e.querySelectorAll("[data-statement-transaction-id]"));for(const s of r){if(s.dataset.citationVariant==="excluded")continue;const l=s.getBoundingClientRect();if(n>=l.left&&n<=l.right&&i>=l.top&&i<=l.bottom)return s.dataset.statementTransactionId}},yqe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,uxi=(e,n,i="smooth")=>{const r=n??(d=>{let u=d.parentElement;for(;u!=null;){const{overflowY:p}=window.getComputedStyle(u);if((p==="auto"||p==="scroll")&&u.scrollHeight>u.clientHeight)return u;u=u.parentElement}return null})(e);if(r==null)return void e.scrollIntoView({behavior:i,block:"center"});const s=e.getBoundingClientRect(),l=r.getBoundingClientRect(),c=r.scrollTop+(s.top-l.top)-(r.clientHeight-s.height)/2;r.scrollTo({top:Math.max(0,c),behavior:i})};function bqe(e,n,i){const{minX:r,maxX:s,minY:l,maxY:c}=(function(d){const u=d.map((h=>h.x)),p=d.map((h=>h.y));return{maxX:Math.max(...u),maxY:Math.max(...p),minX:Math.min(...u),minY:Math.min(...p)}})(e);return{height:(c-l)/i*100,left:r/n*100,top:l/i*100,width:(s-r)/n*100}}function Kz(e){const[n,i]=m.useState(0),[r,s]=m.useState(void 0),[l,c]=m.useState(null),[d,u]=m.useState(void 0),p=fe(),h=m.useRef(null),g=m.useRef(null),f=m.useRef(void 0),x=e.highlightedCitations!=null&&e.highlightedCitations.length>0;m.useLayoutEffect((()=>{if(e.isFullScreen)return void s(void 0);const $=g.current;if($==null)return;const j=()=>{const I=Math.floor($.clientWidth);I>0&&s((D=>D===I?D:I))};j();const E=new ResizeObserver(j);return E.observe($),()=>{E.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(xqe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(xqe($.currentTarget,$.clientX,$.clientY))},v=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=yqe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const E=g.current,I=E!=null&&E.scrollHeight>E.clientHeight?E:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((B,F)=>{const R=B.getBoundingClientRect(),_=F!=null?F.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return R.bottom>_.top&&R.top<_.bottom&&R.right>_.left&&R.left<_.right})(D,I))return;uxi(D,I)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;v();const $=requestAnimationFrame(v),j=window.setTimeout(v,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,v]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const A=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((E=>E.page===$));return j.length===0?null:t.jsx(wqe,{children:j.flatMap(((E,I)=>{const D=bqe(E.polygon,E.pageWidth,E.pageHeight),B=fqe(E,e.selectedStatementTransactionId,d);return t.jsx(Cqe,{"data-citation-variant":B,"data-statement-transaction-id":E.statementTransactionId,$variant:B,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${I}`)}))})},S=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(nh,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:sS,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(pxi,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||S()},onDoubleClick:()=>{x&&S()},windowSize:p,"data-testid":Y("attachment-container",e.pdfTitle),children:t.jsxs(hxi,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(mxi,{children:[t.jsx(gxi,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(fxi,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(Ge,{enterDelay:600,display:"flex",title:gqe.texts.replace,placement:"top-end",children:t.jsx(xxi,{"data-testid":Y("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(bxi,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Y("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(Ge,{enterDelay:600,display:"flex",title:gqe.delete,placement:"top",children:t.jsx(yxi,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Y("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(Sxi,{children:t.jsxs(kxi,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(jxi,{src:e.fileUrl,alt:e.pdfTitle,onLoad:$=>{const j=$.currentTarget;c({width:j.naturalWidth,height:j.naturalHeight})}},e.fileUrl),(()=>{if(!e.highlightedCitations||l==null)return null;const $=e.highlightedCitations.filter((j=>j.page===1));return $.length===0?null:t.jsx(wqe,{children:$.flatMap(((j,E)=>{const I=bqe(j.polygon,j.pageWidth,j.pageHeight),D=fqe(j,e.selectedStatementTransactionId,d);return t.jsx(Cqe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${I.height}%`,left:`${I.left}%`,top:`${I.top}%`,width:`${I.width}%`}},`${E}`)}))})})()]})}):t.jsxs(G5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(vxi,{children:t.jsx(Yn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(ai,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(wxi,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(Axi,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(q5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?yqe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&v()}},`page_${j+1}`),A(j+1)]}),n!=j+1?t.jsx(Cxi,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const pxi=a.div`
10592
10592
  max-height: ${e=>e.maxHeight===!0?"650px":"auto"};
10593
10593
  display: flex;
10594
10594
  flex-direction: column;
@@ -23913,7 +23913,7 @@ to {
23913
23913
  ${({isMenuVisible:e})=>e===!1?Ie`
23914
23914
  display: none;
23915
23915
  `:null};
23916
- `,UAe=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),Wet=m.lazy((()=>Pd((()=>import("./index-DKVU_IvY.js")),__vite__mapDeps([3,0,1,2]))));function WAe({src:e,autoPlay:n=!0,config:i,controls:r=!0,height:s="100%",isModalOpen:l,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=fe(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const v={};i?.youtube&&(v.youtube=i.youtube);const A=()=>{C(!1),f?.(),l!=null&&x?.()},S=()=>{C(!0),y?.()};return l!=null?l?Sa.createPortal(t.jsx(RZi,{windowSize:b,role:"presentation",children:t.jsx(ai,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(zZi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(NZi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(FZi,{src:h,alt:"Video thumbnail"}),t.jsx(MZi,{onClick:()=>{C(!0),y?.()},children:t.jsx(OZi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(Wet,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:A,onPlay:S,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(Wet,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:A,onPlay:S,config:v})})}const PZi=ni`
23916
+ `,UAe=e=>m.createElement("svg",{width:208,height:208,viewBox:"0 0 208 208",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m.createElement("g",{filter:"url(#filter0_f_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:44,fill:"url(#paint0_linear_251_38441)"}),m.createElement("circle",{cx:104,cy:104,r:50,stroke:"url(#paint1_linear_251_38441)",strokeWidth:12})),m.createElement("g",{filter:"url(#filter1_d_251_38441)"},m.createElement("circle",{cx:104,cy:104,r:41.1429,fill:"#FAFAFA"}),m.createElement("circle",{cx:104,cy:104,r:43.1429,stroke:"url(#paint2_linear_251_38441)",strokeWidth:4})),m.createElement("g",{clipPath:"url(#clip0_251_38441)"},m.createElement("path",{d:"M120.16 102.411L96.2853 90.4684C96.0134 90.3343 95.7118 90.2718 95.409 90.2867C95.1062 90.3016 94.8122 90.3935 94.5548 90.5536C94.2974 90.7138 94.0851 90.9369 93.938 91.202C93.7908 91.467 93.7137 91.7652 93.7139 92.0684V115.931C93.7137 116.234 93.7908 116.533 93.938 116.798C94.0851 117.063 94.2974 117.286 94.5548 117.446C94.8122 117.606 95.1062 117.698 95.409 117.713C95.7118 117.728 96.0134 117.665 96.2853 117.531L120.16 105.588C120.456 105.442 120.706 105.216 120.88 104.935C121.055 104.654 121.147 104.33 121.147 104C121.147 103.669 121.055 103.345 120.88 103.065C120.706 102.784 120.456 102.558 120.16 102.411Z",fill:"black"})),m.createElement("defs",null,m.createElement("filter",{id:"filter0_f_251_38441",x:0,y:0,width:208,height:208,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),m.createElement("feGaussianBlur",{stdDeviation:24,result:"effect1_foregroundBlur_251_38441"})),m.createElement("filter",{id:"filter1_d_251_38441",x:54.8569,y:58.8571,width:98.2856,height:98.2857,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},m.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),m.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),m.createElement("feOffset",{dy:4}),m.createElement("feGaussianBlur",{stdDeviation:2}),m.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),m.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),m.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_251_38441"}),m.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_251_38441",result:"shape"})),m.createElement("linearGradient",{id:"paint0_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint1_linear_251_38441",x1:119.671,y1:119.671,x2:87.9755,y2:87.9758,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("linearGradient",{id:"paint2_linear_251_38441",x1:118.653,y1:118.653,x2:89.0159,y2:89.0164,gradientUnits:"userSpaceOnUse"},m.createElement("stop",{stopColor:"#7135FF"}),m.createElement("stop",{offset:.27204,stopColor:"#A050E4"}),m.createElement("stop",{offset:.364594,stopColor:"#B85ED7"}),m.createElement("stop",{offset:.546546,stopColor:"#CF6CC9"}),m.createElement("stop",{offset:.732127,stopColor:"#EE609C"}),m.createElement("stop",{offset:.85586,stopColor:"#EB61A0"}),m.createElement("stop",{offset:1,stopColor:"#EE609C"})),m.createElement("clipPath",{id:"clip0_251_38441"},m.createElement("rect",{width:27.4286,height:27.4286,fill:"white",transform:"translate(93.7139 90.2849)"})))),Wet=m.lazy((()=>Pd((()=>import("./index-BXkbHEmr.js")),__vite__mapDeps([3,0,1,2]))));function WAe({src:e,autoPlay:n=!0,config:i,controls:r=!0,height:s="100%",isModalOpen:l,loop:c=!1,muted:d=!1,showPlayButton:u=!1,style:p,thumbnail:h,width:g="100%",onEnded:f,onModalClose:x,onPlay:y}){const b=fe(),[w,C]=m.useState(!1);m.useEffect((()=>{l===!0&&n?C(!0):l===!1&&C(!1)}),[l,n]);const v={};i?.youtube&&(v.youtube=i.youtube);const A=()=>{C(!1),f?.(),l!=null&&x?.()},S=()=>{C(!0),y?.()};return l!=null?l?Sa.createPortal(t.jsx(RZi,{windowSize:b,role:"presentation",children:t.jsx(ai,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(zZi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(NZi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(FZi,{src:h,alt:"Video thumbnail"}),t.jsx(MZi,{onClick:()=>{C(!0),y?.()},children:t.jsx(OZi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(Wet,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:A,onPlay:S,config:v})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(Wet,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:A,onPlay:S,config:v})})}const PZi=ni`
23917
23917
  0% {
23918
23918
  transform: rotate(0deg);
23919
23919
  }
@@ -75861,7 +75861,7 @@ ${Wd.beneficiaryAddress} ${J}`,d(he),D(!0)})(i),"data-testid":Y("title-text-copy
75861
75861
  width: 100%;
75862
75862
  `,xIa=a(_e)`
75863
75863
  color: ${e=>e.theme.colors.hero};
75864
- `;function yIa(e){switch(e){case"adjusted":case"refunded":return"success";case"refund_due":return"warning";case"open":case"partially_used":return"info";default:return"default"}}const bIa={credit_note:{header:FF.creditNumber,minWidth:140,widthPercent:14,getSortValue:e=>e.creditNoteNumber??e.id,renderContent:e=>t.jsx(c4,{children:e.creditNoteNumber??e.id})},customer:{header:pIa,minWidth:140,widthPercent:15,getSortValue:e=>e.customerName,renderContent:e=>t.jsx(Tr,{children:e.customerName??_fe})},date:{header:FF.dateIssued,minWidth:110,widthPercent:11,getSortValue:e=>e.date,renderContent:e=>t.jsx(Tr,{children:Xi(e.date)})},type:{header:mIa,minWidth:100,widthPercent:11,getSortValue:e=>e.type,renderContent:e=>t.jsx(wn,{label:Ei(e.type),type:"default"})},status:{header:hIa,minWidth:120,widthPercent:12,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:yIa(e.status)})},reference_invoice:{header:FF.creditedAgainst,minWidth:130,widthPercent:13,getSortValue:e=>e.referenceInvoiceNumber,renderContent:e=>t.jsx(Tr,{children:e.referenceInvoiceNumber??_fe})},utilization:{align:"end",header:gIa,minWidth:110,widthPercent:12,getSortValue:e=>e.amountAllocated?.amount,renderContent:function(e){const n=e.amountAllocated;if(n==null||n.amount===0)return t.jsx(P7,{children:_fe});const i=e.total?.amount,r=i!=null&&i>0?Math.round(n.amount/i*100):null;return t.jsxs(fIa,{children:[t.jsx(P7,{children:ei(n)}),r!=null?t.jsx(xIa,{children:`${r}${dIa}`}):null]})}},total:{align:"end",header:FF.totalCredits,minWidth:110,widthPercent:12,getSortValue:e=>e.total?.amount,renderContent:e=>t.jsx(P7,{children:ei(e.total)})}};function ojs({activeStatus:e,columns:n,counts:i,countsLoading:r,creditNotes:s,hasMore:l,isLoading:c,isLoadingMore:d,searchValue:u,sortState:p,tabIds:h,onCreateCreditNote:g,onCreditNoteClick:f,onImportCsv:x,onLoadMore:y,onSearchChange:b,onSortChange:w,onStatusChange:C}){Wi({componentName:"invoicing.credit.list",enabled:!c});const v=m.useMemo((()=>n.map(($=>{const j=bIa[$.key];return{align:j.align,getSortValue:$.sortable?j.getSortValue:void 0,header:j.header,key:$.key,minWidth:j.minWidth,sortable:$.sortable,widthPercent:j.widthPercent,renderCell:({row:E})=>ls((()=>f(E.id)),j.renderContent(E))}}))),[n,f]),A=m.useMemo((()=>h.map(($=>({count:i[$]??0,id:$,label:$==="all"?cIa:Ei($)})))),[i,h]),S=m.useCallback(($=>$.id),[]);return t.jsx(y6,{activeTab:e,columns:v,data:s,emptyMessage:u.trim()!==""?pE.noCreditNotesMatchSearch:pE.noCreditNotesYet,emptyState:t.jsx(Hw,{actions:[...g!=null?[{label:pE.createCreditNoteButton,onClick:g}]:[],...x!=null?[{label:FF.importCsvFile,onClick:x,variant:"primary"}]:[]],description:pE.emptyStateDescription,illustration:"credits",title:pE.emptyStateTitle}),getRowId:S,hasMore:l,isLoading:c,isLoadingMore:d,countsLoading:r,searchPlaceholder:pE.searchPlaceholder,searchValue:u,sortState:p,tabs:A,title:uIa,onLoadMore:y,onSearchChange:b,onSortChange:w,onTabChange:C})}function Cnn(e,n,i){const r=i?.disabled===!0,s=[],l=(i?.lifecycleActionOptions??[]).filter((c=>(function(d,u){const p=u??"active";return(d.allowedFromStatuses??[]).includes(p)})(c,e.status)));for(const c of l){if(n.onLifecycleAction==null)continue;const d=c.code==="delete";s.push({danger:d,disabled:r,key:c.code,label:c.name,onClick:()=>n.onLifecycleAction?.(c.code),separatorBefore:d&&s.length>0})}return s}const{common:{all:wIa,strings:{emDash:vnn,percentage:CIa},texts:{created:vIa,discount:AIa,name:SIa,status:kIa}},invoicingCommon:Y5,invoicingDiscountList:hE}=se.getLocalizedStrings();function jIa(e){switch(e){case"active":return"success";case"expired":return"warning";default:return"default"}}function $Ia(e){switch(e.discountType){case"percentage":return`${e.discountPercentage??0}${CIa}`;case"fixed_amount":return ei(e.discountAmount,e.currencyCode);case"offer_quantity":return`${e.discountQuantity??0}${Y5.free}`;default:return vnn}}function EIa(e){return e.maxRedemptions!=null?`${e.redemptions??0}${Y5.slashSeparator}${e.maxRedemptions}`:na(e.redemptions)}const IIa={code:{header:Y5.couponId,minWidth:140,widthPercent:12,getSortValue:e=>e.couponCode??e.id,renderContent:e=>t.jsx(c4,{children:e.couponCode??e.id})},coupon:{header:SIa,minWidth:150,widthPercent:14,getSortValue:e=>e.name,renderContent:e=>t.jsx(Tr,{children:e.name??vnn})},discount:{header:AIa,minWidth:110,widthPercent:11,renderContent:e=>t.jsx(Tr,{children:$Ia(e)})},duration:{header:Y5.duration,minWidth:110,widthPercent:11,getSortValue:e=>e.durationType,renderContent:e=>t.jsx(Tr,{children:Ei(e.durationType)})},created:{header:vIa,minWidth:100,widthPercent:10,getSortValue:e=>e.createdAt,renderContent:e=>t.jsx(Tr,{children:Xi(e.createdAt)})},valid_till:{header:Y5.validTill,minWidth:100,widthPercent:10,getSortValue:e=>e.validTill,renderContent:e=>t.jsx(Tr,{children:Xi(e.validTill)})},apply_on:{header:Y5.applyOn,minWidth:110,widthPercent:11,getSortValue:e=>e.applyOn,renderContent:e=>t.jsx(wn,{label:Ei(e.applyOn),type:"default"})},status:{header:kIa,minWidth:100,widthPercent:10,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:jIa(e.status)})},redemptions:{header:Y5.redemptions,minWidth:100,widthPercent:11,getSortValue:e=>e.redemptions??0,renderContent:e=>t.jsx(Tr,{children:EIa(e)})}};function rjs({activeStatus:e,columns:n,counts:i,coupons:r,hasMore:s,isLoading:l,isLoadingMore:c,countsLoading:d,searchValue:u,sortState:p,tabIds:h,onCouponClick:g,onCreateCoupon:f,onImportCsv:x,onLoadMore:y,discountLifecycleActionOptions:b,onDiscountLifecycleAction:w,runningDiscountActionId:C,onSearchChange:v,onSortChange:A,onStatusChange:S}){Wi({componentName:"invoicing.discount.list",enabled:!l});const $=m.useMemo((()=>n.map((D=>{const B=IIa[D.key];return{align:B.align,getSortValue:D.sortable?B.getSortValue:void 0,header:B.header,key:D.key,minWidth:B.minWidth,sortable:D.sortable,widthPercent:B.widthPercent,renderCell:({row:F})=>ls((()=>g(F.id)),B.renderContent(F))}}))),[n,g]),j=m.useMemo((()=>h.map((D=>({count:i[D]??0,id:D,label:D==="all"?wIa:Ei(D)})))),[i,h]),E=m.useCallback((D=>D.id),[]),I=m.useCallback((D=>{const B=C===D.id,F=Cnn(D,{onLifecycleAction:w!=null?R=>w(D.id,R):void 0},{disabled:B,lifecycleActionOptions:b});return t.jsx(yV,{items:F})}),[b,w,C]);return t.jsx(y6,{activeTab:e,columns:$,data:r,renderRowMenu:I,emptyMessage:u.trim()!==""?hE.noDiscountsMatchSearch:hE.noDiscountsYet,emptyState:t.jsx(Hw,{actions:[...f!=null?[{label:Y5.createCoupon,onClick:f}]:[],...x!=null?[{label:Y5.importCsvFile,onClick:x,variant:"primary"}]:[]],description:hE.importDiscountsDescription,illustration:"discounts",title:hE.noDiscountCouponsYet}),getRowId:E,hasMore:s,isLoading:l,isLoadingMore:c,countsLoading:d,primaryActionLabel:f!=null?Y5.createCoupon:void 0,searchPlaceholder:hE.searchByNameOrCode,searchValue:u,sortState:p,tabs:j,title:hE.discounts,onLoadMore:y,onPrimaryAction:f,onSearchChange:v,onSortChange:A,onTabChange:S})}const{common:{all:DIa,strings:{emDash:DZ},texts:{amount:TIa,cancelCase:LIa,customer:BIa,dunning:PIa,failureReason:MIa,invoice:OIa,resolveCase:FIa,resumeDunning:RIa,retryNow:zIa,status:NIa}},invoicingCommon:aD,invoicingDunningList:XM}=se.getLocalizedStrings();function _Ia(e){switch(e){case"Resolved":return"success";case"Retrying":return"info";case"Manual Review":case"Paused":return"warning";case"Cancelled":return"attention";default:return"default"}}const VIa=a.div`
75864
+ `;function yIa(e){switch(e){case"adjusted":case"refunded":return"success";case"refund_due":return"warning";case"open":case"partially_used":return"info";default:return"default"}}const bIa={credit_note:{header:FF.creditNumber,minWidth:140,widthPercent:14,getSortValue:e=>e.creditNoteNumber??e.id,renderContent:e=>t.jsx(c4,{children:e.creditNoteNumber??e.id})},customer:{header:pIa,minWidth:140,widthPercent:15,getSortValue:e=>e.customerName,renderContent:e=>t.jsx(Tr,{children:e.customerName??_fe})},date:{header:FF.dateIssued,minWidth:110,widthPercent:11,getSortValue:e=>e.date,renderContent:e=>t.jsx(Tr,{children:Xi(e.date)})},type:{header:mIa,minWidth:100,widthPercent:11,getSortValue:e=>e.type,renderContent:e=>t.jsx(wn,{label:Ei(e.type),type:"default"})},status:{header:hIa,minWidth:120,widthPercent:12,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:yIa(e.status)})},reference_invoice:{header:FF.creditedAgainst,minWidth:130,widthPercent:13,getSortValue:e=>e.referenceInvoiceNumber,renderContent:e=>t.jsx(Tr,{children:e.referenceInvoiceNumber??_fe})},utilization:{align:"end",header:gIa,minWidth:110,widthPercent:12,getSortValue:e=>e.amountAllocated?.amount,renderContent:function(e){const n=e.amountAllocated;if(n==null||n.amount===0)return t.jsx(P7,{children:_fe});const i=e.total?.amount,r=i!=null&&i>0?Math.round(n.amount/i*100):null;return t.jsxs(fIa,{children:[t.jsx(P7,{children:ei(n)}),r!=null?t.jsx(xIa,{children:`${r}${dIa}`}):null]})}},total:{align:"end",header:FF.totalCredits,minWidth:110,widthPercent:12,getSortValue:e=>e.total?.amount,renderContent:e=>t.jsx(P7,{children:ei(e.total)})}};function ojs({activeStatus:e,columns:n,counts:i,countsLoading:r,creditNotes:s,hasMore:l,isLoading:c,isLoadingMore:d,searchValue:u,sortState:p,tabIds:h,onCreateCreditNote:g,onCreditNoteClick:f,onImportCsv:x,onLoadMore:y,onSearchChange:b,onSortChange:w,onStatusChange:C}){Wi({componentName:"invoicing.credit.list",enabled:!c});const v=m.useMemo((()=>n.map(($=>{const j=bIa[$.key];return{align:j.align,getSortValue:$.sortable?j.getSortValue:void 0,header:j.header,key:$.key,minWidth:j.minWidth,sortable:$.sortable,widthPercent:j.widthPercent,renderCell:({row:E})=>ls((()=>f(E.id)),j.renderContent(E))}}))),[n,f]),A=m.useMemo((()=>h.map(($=>({count:i[$]??0,id:$,label:$==="all"?cIa:Ei($)})))),[i,h]),S=m.useCallback(($=>$.id),[]);return t.jsx(y6,{activeTab:e,columns:v,data:s,emptyMessage:u.trim()!==""?pE.noCreditNotesMatchSearch:pE.noCreditNotesYet,emptyState:t.jsx(Hw,{actions:[...g!=null?[{label:pE.createCreditNoteButton,onClick:g}]:[],...x!=null?[{label:FF.importCsvFile,onClick:x,variant:"primary"}]:[]],description:pE.emptyStateDescription,illustration:"credits",title:pE.emptyStateTitle}),getRowId:S,hasMore:l,isLoading:c,isLoadingMore:d,countsLoading:r,searchPlaceholder:pE.searchPlaceholder,searchValue:u,sortState:p,tabs:A,title:uIa,onLoadMore:y,onSearchChange:b,onSortChange:w,onTabChange:C})}function Cnn(e,n,i){const r=i?.disabled===!0,s=[],l=(i?.lifecycleActionOptions??[]).filter((c=>(function(d,u){const p=u??"active";return(d.allowedFromStatuses??[]).includes(p)})(c,e.status)));for(const c of l){if(n.onLifecycleAction==null)continue;const d=c.code==="delete";s.push({danger:d,disabled:r,key:c.code,label:c.name,onClick:()=>n.onLifecycleAction?.(c.code),separatorBefore:d&&s.length>0})}return s}const{common:{all:wIa,strings:{emDash:vnn,percentage:CIa},texts:{created:vIa,discount:AIa,name:SIa,status:kIa}},invoicingCommon:Y5,invoicingDiscountList:hE}=se.getLocalizedStrings();function jIa(e){switch(e){case"active":return"success";case"expired":return"warning";default:return"default"}}function $Ia(e){switch(e.discountType){case"percentage":return`${e.discountPercentage??0}${CIa}`;case"fixed_amount":return ei(e.discountAmount,e.currencyCode);case"offer_quantity":return`${e.discountQuantity??0}${Y5.free}`;default:return vnn}}function EIa(e){return e.maxRedemptions!=null?`${e.redemptions??0}${Y5.slashSeparator}${e.maxRedemptions}`:na(e.redemptions)}const IIa={code:{header:Y5.couponId,minWidth:140,widthPercent:12,getSortValue:e=>e.couponCode??e.id,renderContent:e=>t.jsx(c4,{children:e.couponCode??e.id})},coupon:{header:SIa,minWidth:150,widthPercent:14,getSortValue:e=>e.name,renderContent:e=>t.jsx(Tr,{children:e.name??vnn})},discount:{header:AIa,minWidth:110,widthPercent:11,renderContent:e=>t.jsx(Tr,{children:$Ia(e)})},duration:{header:Y5.duration,minWidth:110,widthPercent:11,getSortValue:e=>e.durationType,renderContent:e=>t.jsx(Tr,{children:Ei(e.durationType)})},created:{header:vIa,minWidth:100,widthPercent:10,getSortValue:e=>e.createdAt,renderContent:e=>t.jsx(Tr,{children:Xi(e.createdAt)})},valid_till:{header:Y5.validTill,minWidth:100,widthPercent:10,getSortValue:e=>e.validTill,renderContent:e=>t.jsx(Tr,{children:Xi(e.validTill)})},apply_on:{header:Y5.applyOn,minWidth:110,widthPercent:11,getSortValue:e=>e.applyOn,renderContent:e=>t.jsx(wn,{label:Ei(e.applyOn),type:"default"})},status:{header:kIa,minWidth:100,widthPercent:10,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:jIa(e.status)})},redemptions:{header:Y5.redemptions,minWidth:100,widthPercent:11,getSortValue:e=>e.redemptions??0,renderContent:e=>t.jsx(Tr,{children:EIa(e)})}};function rjs({activeStatus:e,columns:n,counts:i,coupons:r,hasMore:s,isLoading:l,isLoadingMore:c,countsLoading:d,searchValue:u,sortState:p,tabIds:h,onCouponClick:g,onCreateCoupon:f,onImportCsv:x,onLoadMore:y,discountLifecycleActionOptions:b,onDiscountLifecycleAction:w,runningDiscountActionId:C,onSearchChange:v,onSortChange:A,onStatusChange:S}){Wi({componentName:"invoicing.discount.list",enabled:!l});const $=m.useMemo((()=>n.map((D=>{const B=IIa[D.key];return{align:B.align,getSortValue:D.sortable?B.getSortValue:void 0,header:B.header,key:D.key,minWidth:B.minWidth,sortable:D.sortable,widthPercent:B.widthPercent,renderCell:({row:F})=>ls((()=>g(F.id)),B.renderContent(F))}}))),[n,g]),j=m.useMemo((()=>h.map((D=>({count:i[D]??0,id:D,label:D==="all"?wIa:Ei(D)})))),[i,h]),E=m.useCallback((D=>D.id),[]),I=m.useCallback((D=>{const B=C===D.id,F=Cnn(D,{onLifecycleAction:w!=null?R=>w(D.id,R):void 0},{disabled:B,lifecycleActionOptions:b});return t.jsx(yV,{items:F})}),[b,w,C]);return t.jsx(y6,{activeTab:e,columns:$,data:r,renderRowMenu:I,emptyMessage:u.trim()!==""?hE.noDiscountsMatchSearch:hE.noDiscountsYet,emptyState:t.jsx(Hw,{actions:[...f!=null?[{label:Y5.createCoupon,onClick:f}]:[],...x!=null?[{label:Y5.importCsvFile,onClick:x,variant:"primary"}]:[]],description:hE.importDiscountsDescription,illustration:"discounts",title:hE.noDiscountCouponsYet}),getRowId:E,hasMore:s,isLoading:l,isLoadingMore:c,countsLoading:d,primaryActionLabel:f!=null?Y5.createCoupon:void 0,searchPlaceholder:hE.searchByNameOrCode,searchValue:u,sortState:p,tabs:j,title:hE.discounts,onLoadMore:y,onPrimaryAction:f,onSearchChange:v,onSortChange:A,onTabChange:S})}const{common:{all:DIa,strings:{emDash:DZ},texts:{amount:TIa,cancelCase:LIa,customer:BIa,dunning:PIa,failureReason:MIa,invoice:OIa,resolveCase:FIa,resumeDunning:RIa,retryNow:zIa,status:NIa}},invoicingCommon:aD,invoicingDunningList:XM}=se.getLocalizedStrings();function _Ia(e){switch(e){case"resolved":return"success";case"retrying":return"info";case"manual_review":case"paused":return"warning";case"cancelled":return"attention";default:return"default"}}const VIa=a.div`
75865
75865
  display: flex;
75866
75866
  flex-direction: column;
75867
75867
  overflow: hidden;
@@ -75889,7 +75889,7 @@ ${Wd.beneficiaryAddress} ${J}`,d(he),D(!0)})(i),"data-testid":Y("title-text-copy
75889
75889
  gap: ${o.sp1};
75890
75890
  `,GIa=a(Su)`
75891
75891
  background-color: ${({$variant:e,theme:n})=>e==="warning"?O.tagWarningColorLight:e==="success"?O.success:e==="attention"?O.tagAttentionColorLight:n.colors.grey1};
75892
- `;function qIa(e){return e.maxAttempts!=null?`${e.attempts??0}${aD.slashSeparator}${e.maxAttempts}`:na(e.attempts)}function Dte(e){const n=e?.trim();return n!=null&&n!==""?n:void 0}function Cyt(e){return Dte(e.customer)??Dte(e.customerEmail)??DZ}const KIa={customer:{header:BIa,minWidth:150,widthPercent:16,getSortValue:Cyt,renderContent:function(e){const n=(function(i){return Dte(i.customer)!=null?Dte(i.customerEmail):void 0})(e);return t.jsxs(VIa,{children:[t.jsx(c4,{children:Cyt(e)}),n!=null?t.jsx(HIa,{children:n}):null]})}},invoice:{header:OIa,minWidth:120,widthPercent:12,getSortValue:e=>e.invoiceNumber,renderContent:e=>t.jsx(Tr,{children:e.invoiceNumber??DZ})},attempts:{header:aD.attempts,minWidth:130,widthPercent:12,getSortValue:e=>e.attempts??0,renderContent:e=>{const n=(function(i){const r=i.attempts??0,s=i.maxAttempts??r;return Array.from({length:s},((l,c)=>c<r?wyt[(function(d){let u=0;for(let p=0;p<d.length;p++)u=31*u+d.charCodeAt(p)>>>0;return u})(`${i.id}-${c}`)%wyt.length]:"grey1"))})(e);return t.jsxs(QIa,{children:[n.length>0?t.jsx(YIa,{children:n.map(((i,r)=>t.jsx(GIa,{$variant:i},`${e.id}-${r}`)))}):null,t.jsx(Tr,{children:qIa(e)})]})}},next_retry:{header:aD.nextRetry,minWidth:110,widthPercent:12,getSortValue:e=>e.nextRetry,renderContent:e=>e.nextRetry!=null?t.jsxs(UIa,{children:[t.jsx(WIa,{}),t.jsx(Tr,{children:Xi(e.nextRetry)})]}):t.jsx(Tr,{children:DZ})},days_past_due:{header:aD.daysPastDue,minWidth:110,widthPercent:11,getSortValue:e=>e.daysPastDue,renderContent:e=>t.jsx(Tr,{children:e.daysPastDue!=null&&e.daysPastDue>0?`${e.daysPastDue}${aD.daySuffix}`:na(e.daysPastDue)})},failureReason:{header:MIa,minWidth:140,widthPercent:15,renderContent:e=>e.failureReason!=null?t.jsx(wn,{label:Ei(e.failureReason),type:"default"}):t.jsx(Tr,{children:DZ})},status:{header:NIa,minWidth:120,widthPercent:12,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:_Ia(e.status)})},amount:{align:"end",header:TIa,minWidth:110,widthPercent:12,getSortValue:e=>e.amount,renderContent:e=>t.jsx(P7,{children:ei(e.amount,e.currencyCode)})}};function ajs({activeStatus:e,columns:n,counts:i,countsLoading:r,dunningCases:s,hasMore:l,isLoading:c,isLoadingMore:d,searchValue:u,sortState:p,tabIds:h,onDunningCaseClick:g,onImportCsv:f,onLoadMore:x,onRowAction:y,onSearchChange:b,onSortChange:w,onStatusChange:C}){Wi({componentName:"invoicing.dunning.list",enabled:!c});const v=m.useMemo((()=>n.map((j=>{const E=KIa[j.key];return{align:E.align,getSortValue:j.sortable?E.getSortValue:void 0,header:E.header,key:j.key,minWidth:E.minWidth,sortable:j.sortable,widthPercent:E.widthPercent,renderCell:({row:I})=>ls((()=>g(I.id)),E.renderContent(I))}}))),[n,g]),A=m.useMemo((()=>h.map((j=>({count:i[j]??0,id:j,label:j==="all"?DIa:Ei(j)})))),[i,h]),S=m.useCallback((j=>j.id),[]),$=m.useCallback((j=>{const E=[];if(y!=null){const I=j.status==="Resolved"||j.status==="Cancelled",D=j.status==="Paused";!I&&!D&&E.push({key:"retry",label:zIa,onClick:()=>y(j.id,"retry"),separatorBefore:!0}),D&&E.push({key:"resume",label:RIa,onClick:()=>y(j.id,"resume"),separatorBefore:!0}),I||E.push({key:"resolve",label:FIa,onClick:()=>y(j.id,"resolve")},{danger:!0,key:"cancel",label:LIa,onClick:()=>y(j.id,"cancel"),separatorBefore:!0})}return t.jsx(yV,{items:E})}),[y]);return t.jsx(y6,{activeTab:e,renderRowMenu:$,columns:v,countsLoading:r,data:s,emptyMessage:u.trim()!==""?XM.noDunningCasesMatchSearch:XM.noDunningCasesYet,emptyState:t.jsx(Hw,{actions:f!=null?[{label:aD.importCsvFile,onClick:f,variant:"primary"}]:[],description:XM.importDunningDescription,illustration:"dunning",title:XM.noDunningYet}),getRowId:S,hasMore:l,isLoading:c,isLoadingMore:d,searchPlaceholder:XM.searchByCustomerOrInvoice,searchValue:u,sortState:p,tabs:A,title:PIa,onLoadMore:x,onSearchChange:b,onSortChange:w,onTabChange:C})}function Ann(e,n,i){const r=i?.disabled===!0,s=[],l=(i?.lifecycleActionOptions??[]).filter((c=>(function(d,u){const p=u??"active";return(d.allowedFromStatuses??[]).includes(p)})(c,e.status)));for(const c of l){if(n.onLifecycleAction==null)continue;const d=c.code==="delete";s.push({danger:d,disabled:r,key:c.code,label:c.name,onClick:()=>n.onLifecycleAction?.(c.code),separatorBefore:d&&s.length>0})}return s}const{common:{all:ZIa,updated:JIa,strings:{emDash:Snn},settings:{bankConnectionHeader:XIa},texts:{addPlan:eDa,productName:tDa,transactionType:nDa,status:knn,plan:iDa,externalId:oDa,plans:rDa}},invoicingCommon:E9,invoicingCatalog:am}=se.getLocalizedStrings(),aDa=e=>(e.itemType??e.type)==="addon",sDa={all:am.itemsNoun,addons:am.addOnsNoun,charges:am.oneTimeChargesNoun,plans:am.plansNoun},lDa={all:am.addItem,addons:am.addAddOn,charges:am.addOneTimeCharge,plans:eDa};function jnn(e){switch(e){case"active":return"success";case"archived":return"warning";default:return"default"}}function cDa(e,n){if(e==null||n==null||n==="")return Snn;const i=Ei(n).toLowerCase();return e===1?am.periodSingular.replace("${label}",i):am.periodPlural.replace("${period}",String(e)).replace("${label}",i)}const L9e=e=>e!=null&&e!==""?e:Snn,sD=e=>e.subFamilies?.[0],dDa={all:["usage"],addons:["type","usage"],charges:["type","usage"],plans:[]},uDa={product_name:{header:tDa,minWidth:160,widthPercent:24,getSortValue:e=>e.name??e.id,renderContent:e=>t.jsx(c4,{children:e.name??e.id})},product_code:{header:E9.productCode,minWidth:140,widthPercent:16,getSortValue:e=>e.productCode,renderContent:e=>t.jsx(Tr,{children:L9e(e.productCode)})},type:{header:nDa,minWidth:120,widthPercent:16,getSortValue:e=>e.itemType??e.type,renderContent:e=>t.jsx(wn,{label:Ei(e.itemType??e.type),type:"default"})},pricing:{header:E9.pricing,minWidth:130,widthPercent:16,getSortValue:e=>sD(e)?.pricingModel,renderContent:e=>t.jsx(Tr,{children:Ei(sD(e)?.pricingModel)})},usage:{header:E9.usage,minWidth:120,widthPercent:16,getSortValue:e=>sD(e)?.usageCalculation,renderContent:e=>t.jsx(Tr,{children:Ei(sD(e)?.usageCalculation)})},updated:{header:JIa,minWidth:110,widthPercent:14,getSortValue:e=>e.updatedAt,renderContent:e=>t.jsx(Tr,{children:Xi(e.updatedAt)})},status:{header:knn,minWidth:110,widthPercent:14,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:jnn(e.status)})}};function sjs({activeTab:e,counts:n,hasMore:i,isLoading:r,isLoadingMore:s,countsLoading:l,plans:c,productColumns:d,products:u,searchValue:p,sortState:h,onAddItem:g,onImportCsv:f,onItemClick:x,onLoadMore:y,catalogItemLifecycleActionOptions:b,onCatalogItemLifecycleAction:w,runningCatalogItemActionId:C,onSearchChange:v,onSortChange:A,onTabChange:S}){Wi({componentName:"invoicing.catalog.list",enabled:!r});const $=m.useMemo((()=>[{header:iDa,key:"plan",minWidth:160,widthPercent:26,getSortValue:P=>P.name??P.id,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(c4,{children:P.name??P.id}))},{header:E9.productCode,key:"product_code",minWidth:140,widthPercent:19,getSortValue:P=>P.productCode,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(Tr,{children:L9e(P.productCode)}))},{header:oDa,key:"external_id",minWidth:140,widthPercent:19,getSortValue:P=>P.externalId,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(Tr,{children:L9e(P.externalId)}))},{header:E9.labelBillingPeriod,key:"period",minWidth:130,widthPercent:14,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(Tr,{children:cDa(sD(P)?.period??P.period,sD(P)?.periodUnit??P.periodUnit)}))},{header:knn,key:"status",minWidth:110,widthPercent:10,getSortValue:P=>P.status,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(wn,{label:Ei(P.status),type:jnn(P.status)}))}]),[x]),j=m.useMemo((()=>d.filter((P=>!dDa[e].includes(P.key))).map((P=>{const L=uDa[P.key];return{align:L.align,getSortValue:P.sortable?V=>L.getSortValue?.(V):void 0,header:L.header,key:P.key,minWidth:L.minWidth,sortable:P.sortable,widthPercent:L.widthPercent,renderCell:({row:V})=>ls((()=>x(e,V.id)),L.renderContent(V))}}))),[e,x,d]),E=m.useMemo((()=>u.filter(aDa)),[u]),I=m.useMemo((()=>u.filter((P=>(L=>(L.itemType??L.type)==="charge")(P)))),[u]),D=m.useMemo((()=>[{count:n.all??c.length+u.length,id:"all",label:ZIa},{count:n.plan??n.plans,id:"plans",label:rDa},{count:n.addon??n.addons??E.length,id:"addons",label:E9.addOns},{count:n.charge??n.charges??I.length,id:"charges",label:E9.oneTimeChargesTab}]),[E.length,I.length,n,c.length,u.length]),B=m.useCallback((P=>P.id),[]),F=m.useCallback((P=>{const L=C===P.id,V=Ann(P,{onLifecycleAction:w!=null?H=>w(P.id,H):void 0},{disabled:L,lifecycleActionOptions:b});return t.jsx(yV,{items:V})}),[b,w,C]),R=e==="plans",_=sDa[e],N=lDa[e],T=R?c:e==="all"?[...c,...u]:e==="charges"?I:E;return t.jsx(y6,{activeTab:e,columns:R?$:j,data:T,renderRowMenu:F,emptyMessage:p.trim()!==""?am.noMatchSearch.replace("${tabNoun}",_):am.noItemsYet.replace("${tabNoun}",_),emptyState:t.jsx(Hw,{actions:[{label:N,onClick:g},...f!=null?[{label:E9.importCsvFile,onClick:f,variant:"primary"}]:[]],description:am.emptyStateDescription,illustration:"catalog",title:am.emptyStateTitle}),getRowId:B,hasMore:i,isLoading:r,isLoadingMore:s,countsLoading:l,primaryActionLabel:N,searchPlaceholder:am.searchPlaceholder.replace("${tabNoun}",_),searchValue:p,sortState:h,tabs:D,title:XIa.productType,onLoadMore:y,onPrimaryAction:g,onSearchChange:v,onSortChange:A,onTabChange:P=>S(P)})}const{invoicingSettings:dv,common:$nn}=se.getLocalizedStrings(),pDa=$nn.copyToClipBoard;function Enn({webhookUrl:e,showInstructions:n=!0}){return t.jsxs(mDa,{children:[n?t.jsxs(t.Fragment,{children:[t.jsx(gDa,{children:dv.stripeWebhookSetupDescription}),t.jsxs(fDa,{children:[t.jsx(eO,{children:dv.stripeWebhookAccountInstruction}),t.jsx(eO,{children:dv.stripeWebhookPayloadInstruction}),t.jsx(eO,{children:dv.stripeWebhookEventsInstruction}),t.jsx(eO,{children:dv.stripeWebhookUrlInstruction}),t.jsx(eO,{children:dv.stripeWebhookSecretInstruction})]})]}):null,t.jsx(xDa,{children:dv.stripeWebhookUrlLabel}),t.jsx(yDa,{children:t.jsx(Inn,{webhookUrl:e})})]})}function Inn({webhookUrl:e}){const[,n]=jm(),[i,r]=m.useState(!1);return m.useEffect((()=>{if(!i)return;const s=window.setTimeout((()=>r(!1)),2e3);return()=>window.clearTimeout(s)}),[i]),t.jsxs(hDa,{children:[t.jsx(wDa,{"aria-label":i?pDa.copied:$nn.copy,"data-testid":"stripe-webhook-url-copy",onClick:async()=>{await n(e)&&r(!0)},type:"button",children:i?t.jsx(vDa,{}):t.jsx(CDa,{})}),t.jsx(bDa,{title:e,children:e})]})}const hDa=a.div`
75892
+ `;function qIa(e){return e.maxAttempts!=null?`${e.attempts??0}${aD.slashSeparator}${e.maxAttempts}`:na(e.attempts)}function Dte(e){const n=e?.trim();return n!=null&&n!==""?n:void 0}function Cyt(e){return Dte(e.customer)??Dte(e.customerEmail)??DZ}const KIa={customer:{header:BIa,minWidth:150,widthPercent:16,getSortValue:Cyt,renderContent:function(e){const n=(function(i){return Dte(i.customer)!=null?Dte(i.customerEmail):void 0})(e);return t.jsxs(VIa,{children:[t.jsx(c4,{children:Cyt(e)}),n!=null?t.jsx(HIa,{children:n}):null]})}},invoice:{header:OIa,minWidth:120,widthPercent:12,getSortValue:e=>e.invoiceNumber,renderContent:e=>t.jsx(Tr,{children:e.invoiceNumber??DZ})},attempts:{header:aD.attempts,minWidth:130,widthPercent:12,getSortValue:e=>e.attempts??0,renderContent:e=>{const n=(function(i){const r=i.attempts??0,s=i.maxAttempts??r;return Array.from({length:s},((l,c)=>c<r?wyt[(function(d){let u=0;for(let p=0;p<d.length;p++)u=31*u+d.charCodeAt(p)>>>0;return u})(`${i.id}-${c}`)%wyt.length]:"grey1"))})(e);return t.jsxs(QIa,{children:[n.length>0?t.jsx(YIa,{children:n.map(((i,r)=>t.jsx(GIa,{$variant:i},`${e.id}-${r}`)))}):null,t.jsx(Tr,{children:qIa(e)})]})}},next_retry:{header:aD.nextRetry,minWidth:110,widthPercent:12,getSortValue:e=>e.nextRetry,renderContent:e=>e.nextRetry!=null?t.jsxs(UIa,{children:[t.jsx(WIa,{}),t.jsx(Tr,{children:Xi(e.nextRetry)})]}):t.jsx(Tr,{children:DZ})},days_past_due:{header:aD.daysPastDue,minWidth:110,widthPercent:11,getSortValue:e=>e.daysPastDue,renderContent:e=>t.jsx(Tr,{children:e.daysPastDue!=null&&e.daysPastDue>0?`${e.daysPastDue}${aD.daySuffix}`:na(e.daysPastDue)})},failureReason:{header:MIa,minWidth:140,widthPercent:15,renderContent:e=>e.failureReason!=null?t.jsx(wn,{label:Ei(e.failureReason),type:"default"}):t.jsx(Tr,{children:DZ})},status:{header:NIa,minWidth:120,widthPercent:12,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:_Ia(e.status)})},amount:{align:"end",header:TIa,minWidth:110,widthPercent:12,getSortValue:e=>e.amount,renderContent:e=>t.jsx(P7,{children:ei(e.amount,e.currencyCode)})}};function ajs({activeStatus:e,columns:n,counts:i,countsLoading:r,dunningCases:s,hasMore:l,isLoading:c,isLoadingMore:d,searchValue:u,sortState:p,tabIds:h,onDunningCaseClick:g,onImportCsv:f,onLoadMore:x,onRowAction:y,onSearchChange:b,onSortChange:w,onStatusChange:C}){Wi({componentName:"invoicing.dunning.list",enabled:!c});const v=m.useMemo((()=>n.map((j=>{const E=KIa[j.key];return{align:E.align,getSortValue:j.sortable?E.getSortValue:void 0,header:E.header,key:j.key,minWidth:E.minWidth,sortable:j.sortable,widthPercent:E.widthPercent,renderCell:({row:I})=>ls((()=>g(I.id)),E.renderContent(I))}}))),[n,g]),A=m.useMemo((()=>h.map((j=>({count:i[j]??0,id:j,label:j==="all"?DIa:Ei(j)})))),[i,h]),S=m.useCallback((j=>j.id),[]),$=m.useCallback((j=>{const E=[];if(y!=null){const I=j.status==="resolved"||j.status==="cancelled",D=j.status==="paused";!I&&!D&&E.push({key:"retry",label:zIa,onClick:()=>y(j.id,"retry"),separatorBefore:!0}),D&&E.push({key:"resume",label:RIa,onClick:()=>y(j.id,"resume"),separatorBefore:!0}),I||E.push({key:"resolve",label:FIa,onClick:()=>y(j.id,"resolve")},{danger:!0,key:"cancel",label:LIa,onClick:()=>y(j.id,"cancel"),separatorBefore:!0})}return t.jsx(yV,{items:E})}),[y]);return t.jsx(y6,{activeTab:e,renderRowMenu:$,columns:v,countsLoading:r,data:s,emptyMessage:u.trim()!==""?XM.noDunningCasesMatchSearch:XM.noDunningCasesYet,emptyState:t.jsx(Hw,{actions:f!=null?[{label:aD.importCsvFile,onClick:f,variant:"primary"}]:[],description:XM.importDunningDescription,illustration:"dunning",title:XM.noDunningYet}),getRowId:S,hasMore:l,isLoading:c,isLoadingMore:d,searchPlaceholder:XM.searchByCustomerOrInvoice,searchValue:u,sortState:p,tabs:A,title:PIa,onLoadMore:x,onSearchChange:b,onSortChange:w,onTabChange:C})}function Ann(e,n,i){const r=i?.disabled===!0,s=[],l=(i?.lifecycleActionOptions??[]).filter((c=>(function(d,u){const p=u??"active";return(d.allowedFromStatuses??[]).includes(p)})(c,e.status)));for(const c of l){if(n.onLifecycleAction==null)continue;const d=c.code==="delete";s.push({danger:d,disabled:r,key:c.code,label:c.name,onClick:()=>n.onLifecycleAction?.(c.code),separatorBefore:d&&s.length>0})}return s}const{common:{all:ZIa,updated:JIa,strings:{emDash:Snn},settings:{bankConnectionHeader:XIa},texts:{addPlan:eDa,productName:tDa,transactionType:nDa,status:knn,plan:iDa,externalId:oDa,plans:rDa}},invoicingCommon:E9,invoicingCatalog:am}=se.getLocalizedStrings(),aDa=e=>(e.itemType??e.type)==="addon",sDa={all:am.itemsNoun,addons:am.addOnsNoun,charges:am.oneTimeChargesNoun,plans:am.plansNoun},lDa={all:am.addItem,addons:am.addAddOn,charges:am.addOneTimeCharge,plans:eDa};function jnn(e){switch(e){case"active":return"success";case"archived":return"warning";default:return"default"}}function cDa(e,n){if(e==null||n==null||n==="")return Snn;const i=Ei(n).toLowerCase();return e===1?am.periodSingular.replace("${label}",i):am.periodPlural.replace("${period}",String(e)).replace("${label}",i)}const L9e=e=>e!=null&&e!==""?e:Snn,sD=e=>e.subFamilies?.[0],dDa={all:["usage"],addons:["type","usage"],charges:["type","usage"],plans:[]},uDa={product_name:{header:tDa,minWidth:160,widthPercent:24,getSortValue:e=>e.name??e.id,renderContent:e=>t.jsx(c4,{children:e.name??e.id})},product_code:{header:E9.productCode,minWidth:140,widthPercent:16,getSortValue:e=>e.productCode,renderContent:e=>t.jsx(Tr,{children:L9e(e.productCode)})},type:{header:nDa,minWidth:120,widthPercent:16,getSortValue:e=>e.itemType??e.type,renderContent:e=>t.jsx(wn,{label:Ei(e.itemType??e.type),type:"default"})},pricing:{header:E9.pricing,minWidth:130,widthPercent:16,getSortValue:e=>sD(e)?.pricingModel,renderContent:e=>t.jsx(Tr,{children:Ei(sD(e)?.pricingModel)})},usage:{header:E9.usage,minWidth:120,widthPercent:16,getSortValue:e=>sD(e)?.usageCalculation,renderContent:e=>t.jsx(Tr,{children:Ei(sD(e)?.usageCalculation)})},updated:{header:JIa,minWidth:110,widthPercent:14,getSortValue:e=>e.updatedAt,renderContent:e=>t.jsx(Tr,{children:Xi(e.updatedAt)})},status:{header:knn,minWidth:110,widthPercent:14,getSortValue:e=>e.status,renderContent:e=>t.jsx(wn,{label:Ei(e.status),type:jnn(e.status)})}};function sjs({activeTab:e,counts:n,hasMore:i,isLoading:r,isLoadingMore:s,countsLoading:l,plans:c,productColumns:d,products:u,searchValue:p,sortState:h,onAddItem:g,onImportCsv:f,onItemClick:x,onLoadMore:y,catalogItemLifecycleActionOptions:b,onCatalogItemLifecycleAction:w,runningCatalogItemActionId:C,onSearchChange:v,onSortChange:A,onTabChange:S}){Wi({componentName:"invoicing.catalog.list",enabled:!r});const $=m.useMemo((()=>[{header:iDa,key:"plan",minWidth:160,widthPercent:26,getSortValue:P=>P.name??P.id,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(c4,{children:P.name??P.id}))},{header:E9.productCode,key:"product_code",minWidth:140,widthPercent:19,getSortValue:P=>P.productCode,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(Tr,{children:L9e(P.productCode)}))},{header:oDa,key:"external_id",minWidth:140,widthPercent:19,getSortValue:P=>P.externalId,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(Tr,{children:L9e(P.externalId)}))},{header:E9.labelBillingPeriod,key:"period",minWidth:130,widthPercent:14,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(Tr,{children:cDa(sD(P)?.period??P.period,sD(P)?.periodUnit??P.periodUnit)}))},{header:knn,key:"status",minWidth:110,widthPercent:10,getSortValue:P=>P.status,renderCell:({row:P})=>ls((()=>x("plans",P.id)),t.jsx(wn,{label:Ei(P.status),type:jnn(P.status)}))}]),[x]),j=m.useMemo((()=>d.filter((P=>!dDa[e].includes(P.key))).map((P=>{const L=uDa[P.key];return{align:L.align,getSortValue:P.sortable?V=>L.getSortValue?.(V):void 0,header:L.header,key:P.key,minWidth:L.minWidth,sortable:P.sortable,widthPercent:L.widthPercent,renderCell:({row:V})=>ls((()=>x(e,V.id)),L.renderContent(V))}}))),[e,x,d]),E=m.useMemo((()=>u.filter(aDa)),[u]),I=m.useMemo((()=>u.filter((P=>(L=>(L.itemType??L.type)==="charge")(P)))),[u]),D=m.useMemo((()=>[{count:n.all??c.length+u.length,id:"all",label:ZIa},{count:n.plan??n.plans,id:"plans",label:rDa},{count:n.addon??n.addons??E.length,id:"addons",label:E9.addOns},{count:n.charge??n.charges??I.length,id:"charges",label:E9.oneTimeChargesTab}]),[E.length,I.length,n,c.length,u.length]),B=m.useCallback((P=>P.id),[]),F=m.useCallback((P=>{const L=C===P.id,V=Ann(P,{onLifecycleAction:w!=null?H=>w(P.id,H):void 0},{disabled:L,lifecycleActionOptions:b});return t.jsx(yV,{items:V})}),[b,w,C]),R=e==="plans",_=sDa[e],N=lDa[e],T=R?c:e==="all"?[...c,...u]:e==="charges"?I:E;return t.jsx(y6,{activeTab:e,columns:R?$:j,data:T,renderRowMenu:F,emptyMessage:p.trim()!==""?am.noMatchSearch.replace("${tabNoun}",_):am.noItemsYet.replace("${tabNoun}",_),emptyState:t.jsx(Hw,{actions:[{label:N,onClick:g},...f!=null?[{label:E9.importCsvFile,onClick:f,variant:"primary"}]:[]],description:am.emptyStateDescription,illustration:"catalog",title:am.emptyStateTitle}),getRowId:B,hasMore:i,isLoading:r,isLoadingMore:s,countsLoading:l,primaryActionLabel:N,searchPlaceholder:am.searchPlaceholder.replace("${tabNoun}",_),searchValue:p,sortState:h,tabs:D,title:XIa.productType,onLoadMore:y,onPrimaryAction:g,onSearchChange:v,onSortChange:A,onTabChange:P=>S(P)})}const{invoicingSettings:dv,common:$nn}=se.getLocalizedStrings(),pDa=$nn.copyToClipBoard;function Enn({webhookUrl:e,showInstructions:n=!0}){return t.jsxs(mDa,{children:[n?t.jsxs(t.Fragment,{children:[t.jsx(gDa,{children:dv.stripeWebhookSetupDescription}),t.jsxs(fDa,{children:[t.jsx(eO,{children:dv.stripeWebhookAccountInstruction}),t.jsx(eO,{children:dv.stripeWebhookPayloadInstruction}),t.jsx(eO,{children:dv.stripeWebhookEventsInstruction}),t.jsx(eO,{children:dv.stripeWebhookUrlInstruction}),t.jsx(eO,{children:dv.stripeWebhookSecretInstruction})]})]}):null,t.jsx(xDa,{children:dv.stripeWebhookUrlLabel}),t.jsx(yDa,{children:t.jsx(Inn,{webhookUrl:e})})]})}function Inn({webhookUrl:e}){const[,n]=jm(),[i,r]=m.useState(!1);return m.useEffect((()=>{if(!i)return;const s=window.setTimeout((()=>r(!1)),2e3);return()=>window.clearTimeout(s)}),[i]),t.jsxs(hDa,{children:[t.jsx(wDa,{"aria-label":i?pDa.copied:$nn.copy,"data-testid":"stripe-webhook-url-copy",onClick:async()=>{await n(e)&&r(!0)},type:"button",children:i?t.jsx(vDa,{}):t.jsx(CDa,{})}),t.jsx(bDa,{title:e,children:e})]})}const hDa=a.div`
75893
75893
  display: flex;
75894
75894
  align-items: center;
75895
75895
  gap: ${o.sp2};
@@ -77107,7 +77107,7 @@ ${Wd.beneficiaryAddress} ${J}`,d(he),D(!0)})(i),"data-testid":Y("title-text-copy
77107
77107
  display: block;
77108
77108
  padding: ${o.sp4} ${o.sp5};
77109
77109
  color: ${e=>e.theme.colors.champion};
77110
- `;function x7t(e){switch(e){case"Resolved":return"success";case"Retrying":case"Scheduled":return"info";case"Manual Review":case"Paused":return"attention";case"Cancelled":return"warning";default:return"default"}}function Ejs({caseId:e,fieldHelp:n,dunningAttempts:i,dunningCase:r,isLoading:s,isRunningAction:l,onBack:c,onCancel:d,onInvoiceClick:u,onResolve:p,onResume:h,onRetry:g,onSendEmail:f}){Wi({componentName:"invoicing.dunning.detail",enabled:!s});const x=r?.currencyCode,y=r?.status==="Paused",b=r?.invoiceNumber,w=m.useMemo((()=>{if(r==null)return[];const S=[];return r.status!=="Resolved"&&r.status!=="Cancelled"&&f!=null&&S.push({disabled:l===!0,key:"send-email",label:KMa,onClick:f}),!y&&g!=null&&S.push({disabled:l===!0,key:"retry",label:qMa,onClick:g}),y&&h!=null&&S.push({disabled:l===!0,key:"resume",label:GMa,onClick:h}),p!=null&&S.push({disabled:l===!0,key:"resolve",label:YMa,onClick:p,separatorBefore:S.length>0}),d!=null&&S.push({danger:!0,disabled:l===!0,key:"cancel",label:HMa,onClick:d,separatorBefore:S.length>0&&p==null}),S}),[r,y,l,d,p,h,g,f]),C=r==null?void 0:t.jsx(l4,{borderless:!0,items:w}),v=m.useMemo((()=>r==null?[]:[{label:UMa,value:r.customer??r.customerEmail??$G},{label:VMa,value:ei(r.amount,x)},{label:fE.daysPastDue,value:`${na(r.daysPastDue)}${Ym.daysSuffix}`}]),[r,x]),A=m.useMemo((()=>i==null||i.length===0?[]:[...i].sort(((S,$)=>{const j=S.createdAt!=null?S.createdAt.toDate().getTime():0;return($.createdAt!=null?$.createdAt.toDate().getTime():0)-j}))),[i]);return t.jsx(y1,{fieldHelp:n,children:t.jsxs(Lm,{actions:C,headerMeta:v,isLoading:s,notFound:r==null,notFoundMessage:Ym.dunningCaseNotFound,onBack:c,statusLabel:r!=null?Ei(r.status):void 0,statusType:x7t(r?.status),title:`${Ym.dunningTitlePrefix}${r?.id??e}`,children:[t.jsxs(co,{title:Ym.caseDetails,children:[t.jsx(Mn,{label:Ym.caseId,value:r?.id??e}),t.jsx(Mn,{label:ZMa,value:t.jsx(wn,{label:r?.status==="Paused"&&r.pausedUntil!=null?`${Ym.pausedUntil}${Xi(r.pausedUntil)}`:Ei(r?.status),type:x7t(r?.status)})}),t.jsx(Mn,{fieldCode:"invoice_id",label:QMa,value:r?.invoiceID!=null&&b!=null&&u!=null?t.jsx(O8,{ariaLabel:fE.openInvoiceInNewTab,dataTestId:"invoicing-dunning-invoice-link",label:b,onOpen:()=>{r.invoiceID!=null&&u(r.invoiceID)}}):b??$G}),t.jsx(Mn,{fieldCode:"failure_reason",label:WMa,value:r?.failureReason??$G,valueTone:r?.failureReason!=null?"alert":"muted"}),t.jsx(Mn,{fieldCode:"next_retry",label:fE.nextRetry,value:Xi(r?.nextRetry)}),t.jsx(Mn,{fieldCode:"attempts",label:fE.attempts,value:r?.maxAttempts!=null?`${r.attempts??0}${fE.of}${r.maxAttempts}`:na(r?.attempts)}),t.jsx(Mn,{fieldCode:"days_past_due",label:fE.daysPastDue,value:`${na(r?.daysPastDue)}${Ym.daysSuffix}`}),t.jsx(Mn,{fieldCode:"last_attempt",label:Ym.lastAttempt,value:Xi(r?.lastAttempt)}),r?.status==="Paused"&&r.pausedReason!=null?t.jsx(Mn,{fieldCode:"paused_reason",label:Ym.pauseReason,value:r.pausedReason,valueTone:"muted"}):null]}),t.jsx(co,{title:Ym.timeline,children:A.length===0?t.jsx(oOa,{children:Ym.noDunningAttempts}):t.jsx(JMa,{children:A.map(((S,$)=>t.jsxs(XMa,{children:[t.jsx(eOa,{$tone:"alert"}),t.jsxs(tOa,{children:[t.jsx(nOa,{children:Xi(S.createdAt)}),t.jsx(Ss,{children:`${Ym.retryAttemptPrefix}${S.attempt}${Ym.failedSuffix}`}),t.jsx(iOa,{children:[S.dunningType!=null?Ei(S.dunningType):void 0,S.transactionID].filter((j=>j!=null)).join(_Ma)||$G})]})]},`${S.attempt}-${$}`)))})})]})})}const{common:EG,invoicingDunningDetail:Ph}=se.getLocalizedStrings(),y7t={body:"",cc:"",subject:"",to:""};function Ijs({initialDraft:e,isPreviewLoading:n=!1,isSending:i=!1,onClose:r,onSend:s,open:l,preview:c,previewErrorMessage:d,sendErrorMessage:u}){const[p,h]=m.useState(y7t),[g,f]=m.useState(!1);m.useEffect((()=>{if(!l)return h(y7t),void f(!1);!g&&e!=null&&(h(e),f(!0))}),[e,g,l]);const x=n&&!g,y=b7t(p.to),b=(function(I){const D=I.trim();return D===""||D.split(",").every((B=>b7t(B)))})(p.cc),w=g&&!y,C=g&&!b,v=g&&p.subject.trim()==="",A=g&&p.body.trim()==="",S=!(y&&b&&p.subject.trim()!==""&&p.body.trim()!=="")||x||n||i||d!=null||c==null,$=m.useMemo((()=>g?(function(I,D){return Vnn(I,D)})(c,p):void 0),[p,g,c]);function j(I,D){const B={...p,[I]:D};h(B),f(!0)}function E(){i||r()}return t.jsx(Nd,{open:l,onClose:E,children:t.jsxs(rOa,{"data-testid":"invoicing-dunning-email-composer",children:[t.jsxs(aOa,{children:[t.jsx(sOa,{id:"modal-title",children:Ph.emailComposerTitle}),t.jsx(lOa,{id:"modal-description",children:Ph.emailComposerDescription})]}),u!=null?t.jsx(s3,{role:"alert",children:u}):null,t.jsxs(cOa,{children:[t.jsxs(dOa,{id:"dunning-email-composer-form",onSubmit:function(I){I.preventDefault(),!S&&s({body:p.body.trim(),cc:p.cc.trim(),subject:p.subject.trim(),to:p.to.trim()})},children:[t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-to",children:EG.texts.to}),t.jsx(KD,{id:"dunning-email-to",autoComplete:"email","aria-describedby":w?"dunning-email-to-error":void 0,"aria-invalid":w,"data-testid":Y("invoicing-dunning-email-to"),disabled:x||i,maxLength:320,type:"email",value:p.to,onChange:I=>j("to",I.target.value)}),w?t.jsx(TG,{id:"dunning-email-to-error",children:Ph.emailRecipientRequired}):null]}),t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-cc",children:Ph.emailCc}),t.jsx(KD,{id:"dunning-email-cc","aria-describedby":C?"dunning-email-cc-hint dunning-email-cc-error":"dunning-email-cc-hint","aria-invalid":C,"data-testid":Y("invoicing-dunning-email-cc"),disabled:x||i,maxLength:2e3,value:p.cc,onChange:I=>j("cc",I.target.value)}),t.jsx(uOa,{id:"dunning-email-cc-hint",children:Ph.emailCcHint}),C?t.jsx(TG,{id:"dunning-email-cc-error",children:Ph.emailCcInvalid}):null]}),t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-subject",children:EG.texts.subject}),t.jsx(KD,{id:"dunning-email-subject","aria-describedby":v?"dunning-email-subject-error":void 0,"aria-invalid":v,"data-testid":Y("invoicing-dunning-email-subject"),disabled:x||i,maxLength:998,value:p.subject,onChange:I=>j("subject",I.target.value)}),v?t.jsx(TG,{id:"dunning-email-subject-error",children:Ph.emailSubjectRequired}):null]}),t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-body",children:Ph.emailBody}),t.jsx(pOa,{id:"dunning-email-body","aria-describedby":A?"dunning-email-body-error":void 0,"aria-invalid":A,"data-testid":Y("invoicing-dunning-email-body"),disabled:x||i,maxLength:1e4,value:p.body,onChange:I=>j("body",I.target.value)}),A?t.jsx(TG,{id:"dunning-email-body-error",children:Ph.emailBodyRequired}):null]})]}),t.jsxs(hOa,{children:[t.jsxs(mOa,{children:[t.jsx(gOa,{children:Ph.emailPreview}),n?t.jsx(fOa,{role:"status",children:Ph.emailPreviewUpdating}):null]}),d!=null?t.jsx(s3,{role:"alert",children:d}):null,t.jsx(xOa,{children:$!=null?t.jsx(yOa,{"data-testid":"invoicing-dunning-email-preview",referrerPolicy:"no-referrer",sandbox:"allow-same-origin",srcDoc:$,title:Ph.emailPreviewFrameTitle}):t.jsx(bOa,{children:n?Ph.emailPreviewLoading:Ph.emailPreviewUnavailable})})]})]}),t.jsxs(wOa,{children:[t.jsx(ct,{disabled:i,label:EG.cancel,onClick:E,variant:"secondary"}),t.jsx(ct,{disabled:S,form:"dunning-email-composer-form",label:EG.texts.sendEmail,loading:i,type:"submit",variant:"primary"})]})]})})}const rOa=a.div`
77110
+ `;function x7t(e){switch(e){case"resolved":return"success";case"retrying":case"scheduled":return"info";case"manual_review":case"paused":return"attention";case"cancelled":return"warning";default:return"default"}}function Ejs({caseId:e,fieldHelp:n,dunningAttempts:i,dunningCase:r,isLoading:s,isRunningAction:l,onBack:c,onCancel:d,onInvoiceClick:u,onResolve:p,onResume:h,onRetry:g,onSendEmail:f}){Wi({componentName:"invoicing.dunning.detail",enabled:!s});const x=r?.currencyCode,y=r?.status==="paused",b=r?.invoiceNumber,w=m.useMemo((()=>{if(r==null)return[];const S=[];return r.status!=="resolved"&&r.status!=="cancelled"&&f!=null&&S.push({disabled:l===!0,key:"send-email",label:KMa,onClick:f}),!y&&g!=null&&S.push({disabled:l===!0,key:"retry",label:qMa,onClick:g}),y&&h!=null&&S.push({disabled:l===!0,key:"resume",label:GMa,onClick:h}),p!=null&&S.push({disabled:l===!0,key:"resolve",label:YMa,onClick:p,separatorBefore:S.length>0}),d!=null&&S.push({danger:!0,disabled:l===!0,key:"cancel",label:HMa,onClick:d,separatorBefore:S.length>0&&p==null}),S}),[r,y,l,d,p,h,g,f]),C=r==null?void 0:t.jsx(l4,{borderless:!0,items:w}),v=m.useMemo((()=>r==null?[]:[{label:UMa,value:r.customer??r.customerEmail??$G},{label:VMa,value:ei(r.amount,x)},{label:fE.daysPastDue,value:`${na(r.daysPastDue)}${Ym.daysSuffix}`}]),[r,x]),A=m.useMemo((()=>i==null||i.length===0?[]:[...i].sort(((S,$)=>{const j=S.createdAt!=null?S.createdAt.toDate().getTime():0;return($.createdAt!=null?$.createdAt.toDate().getTime():0)-j}))),[i]);return t.jsx(y1,{fieldHelp:n,children:t.jsxs(Lm,{actions:C,headerMeta:v,isLoading:s,notFound:r==null,notFoundMessage:Ym.dunningCaseNotFound,onBack:c,statusLabel:r!=null?Ei(r.status):void 0,statusType:x7t(r?.status),title:`${Ym.dunningTitlePrefix}${r?.id??e}`,children:[t.jsxs(co,{title:Ym.caseDetails,children:[t.jsx(Mn,{label:Ym.caseId,value:r?.id??e}),t.jsx(Mn,{label:ZMa,value:t.jsx(wn,{label:r?.status==="paused"&&r.pausedUntil!=null?`${Ym.pausedUntil}${Xi(r.pausedUntil)}`:Ei(r?.status),type:x7t(r?.status)})}),t.jsx(Mn,{fieldCode:"invoice_id",label:QMa,value:r?.invoiceID!=null&&b!=null&&u!=null?t.jsx(O8,{ariaLabel:fE.openInvoiceInNewTab,dataTestId:"invoicing-dunning-invoice-link",label:b,onOpen:()=>{r.invoiceID!=null&&u(r.invoiceID)}}):b??$G}),t.jsx(Mn,{fieldCode:"failure_reason",label:WMa,value:r?.failureReason??$G,valueTone:r?.failureReason!=null?"alert":"muted"}),t.jsx(Mn,{fieldCode:"next_retry",label:fE.nextRetry,value:Xi(r?.nextRetry)}),t.jsx(Mn,{fieldCode:"attempts",label:fE.attempts,value:r?.maxAttempts!=null?`${r.attempts??0}${fE.of}${r.maxAttempts}`:na(r?.attempts)}),t.jsx(Mn,{fieldCode:"days_past_due",label:fE.daysPastDue,value:`${na(r?.daysPastDue)}${Ym.daysSuffix}`}),t.jsx(Mn,{fieldCode:"last_attempt",label:Ym.lastAttempt,value:Xi(r?.lastAttempt)}),r?.status==="paused"&&r.pausedReason!=null?t.jsx(Mn,{fieldCode:"paused_reason",label:Ym.pauseReason,value:r.pausedReason,valueTone:"muted"}):null]}),t.jsx(co,{title:Ym.timeline,children:A.length===0?t.jsx(oOa,{children:Ym.noDunningAttempts}):t.jsx(JMa,{children:A.map(((S,$)=>t.jsxs(XMa,{children:[t.jsx(eOa,{$tone:"alert"}),t.jsxs(tOa,{children:[t.jsx(nOa,{children:Xi(S.createdAt)}),t.jsx(Ss,{children:`${Ym.retryAttemptPrefix}${S.attempt}${Ym.failedSuffix}`}),t.jsx(iOa,{children:[S.dunningType!=null?Ei(S.dunningType):void 0,S.transactionID].filter((j=>j!=null)).join(_Ma)||$G})]})]},`${S.attempt}-${$}`)))})})]})})}const{common:EG,invoicingDunningDetail:Ph}=se.getLocalizedStrings(),y7t={body:"",cc:"",subject:"",to:""};function Ijs({initialDraft:e,isPreviewLoading:n=!1,isSending:i=!1,onClose:r,onSend:s,open:l,preview:c,previewErrorMessage:d,sendErrorMessage:u}){const[p,h]=m.useState(y7t),[g,f]=m.useState(!1);m.useEffect((()=>{if(!l)return h(y7t),void f(!1);!g&&e!=null&&(h(e),f(!0))}),[e,g,l]);const x=n&&!g,y=b7t(p.to),b=(function(I){const D=I.trim();return D===""||D.split(",").every((B=>b7t(B)))})(p.cc),w=g&&!y,C=g&&!b,v=g&&p.subject.trim()==="",A=g&&p.body.trim()==="",S=!(y&&b&&p.subject.trim()!==""&&p.body.trim()!=="")||x||n||i||d!=null||c==null,$=m.useMemo((()=>g?(function(I,D){return Vnn(I,D)})(c,p):void 0),[p,g,c]);function j(I,D){const B={...p,[I]:D};h(B),f(!0)}function E(){i||r()}return t.jsx(Nd,{open:l,onClose:E,children:t.jsxs(rOa,{"data-testid":"invoicing-dunning-email-composer",children:[t.jsxs(aOa,{children:[t.jsx(sOa,{id:"modal-title",children:Ph.emailComposerTitle}),t.jsx(lOa,{id:"modal-description",children:Ph.emailComposerDescription})]}),u!=null?t.jsx(s3,{role:"alert",children:u}):null,t.jsxs(cOa,{children:[t.jsxs(dOa,{id:"dunning-email-composer-form",onSubmit:function(I){I.preventDefault(),!S&&s({body:p.body.trim(),cc:p.cc.trim(),subject:p.subject.trim(),to:p.to.trim()})},children:[t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-to",children:EG.texts.to}),t.jsx(KD,{id:"dunning-email-to",autoComplete:"email","aria-describedby":w?"dunning-email-to-error":void 0,"aria-invalid":w,"data-testid":Y("invoicing-dunning-email-to"),disabled:x||i,maxLength:320,type:"email",value:p.to,onChange:I=>j("to",I.target.value)}),w?t.jsx(TG,{id:"dunning-email-to-error",children:Ph.emailRecipientRequired}):null]}),t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-cc",children:Ph.emailCc}),t.jsx(KD,{id:"dunning-email-cc","aria-describedby":C?"dunning-email-cc-hint dunning-email-cc-error":"dunning-email-cc-hint","aria-invalid":C,"data-testid":Y("invoicing-dunning-email-cc"),disabled:x||i,maxLength:2e3,value:p.cc,onChange:I=>j("cc",I.target.value)}),t.jsx(uOa,{id:"dunning-email-cc-hint",children:Ph.emailCcHint}),C?t.jsx(TG,{id:"dunning-email-cc-error",children:Ph.emailCcInvalid}):null]}),t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-subject",children:EG.texts.subject}),t.jsx(KD,{id:"dunning-email-subject","aria-describedby":v?"dunning-email-subject-error":void 0,"aria-invalid":v,"data-testid":Y("invoicing-dunning-email-subject"),disabled:x||i,maxLength:998,value:p.subject,onChange:I=>j("subject",I.target.value)}),v?t.jsx(TG,{id:"dunning-email-subject-error",children:Ph.emailSubjectRequired}):null]}),t.jsxs(IG,{children:[t.jsx(DG,{htmlFor:"dunning-email-body",children:Ph.emailBody}),t.jsx(pOa,{id:"dunning-email-body","aria-describedby":A?"dunning-email-body-error":void 0,"aria-invalid":A,"data-testid":Y("invoicing-dunning-email-body"),disabled:x||i,maxLength:1e4,value:p.body,onChange:I=>j("body",I.target.value)}),A?t.jsx(TG,{id:"dunning-email-body-error",children:Ph.emailBodyRequired}):null]})]}),t.jsxs(hOa,{children:[t.jsxs(mOa,{children:[t.jsx(gOa,{children:Ph.emailPreview}),n?t.jsx(fOa,{role:"status",children:Ph.emailPreviewUpdating}):null]}),d!=null?t.jsx(s3,{role:"alert",children:d}):null,t.jsx(xOa,{children:$!=null?t.jsx(yOa,{"data-testid":"invoicing-dunning-email-preview",referrerPolicy:"no-referrer",sandbox:"allow-same-origin",srcDoc:$,title:Ph.emailPreviewFrameTitle}):t.jsx(bOa,{children:n?Ph.emailPreviewLoading:Ph.emailPreviewUnavailable})})]})]}),t.jsxs(wOa,{children:[t.jsx(ct,{disabled:i,label:EG.cancel,onClick:E,variant:"secondary"}),t.jsx(ct,{disabled:S,form:"dunning-email-composer-form",label:EG.texts.sendEmail,loading:i,type:"submit",variant:"primary"})]})]})})}const rOa=a.div`
77111
77111
  box-sizing: border-box;
77112
77112
  width: 1200px;
77113
77113
  max-width: calc(100vw - ${o.sp5});
@@ -86056,7 +86056,7 @@ ${MO.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx($i
86056
86056
  color: ${O.tagWarningColorLight};
86057
86057
  `,dps=a(wt)`
86058
86058
  color: ${O.tagWarningColorLight};
86059
- `,{expenseAutomation:{accountRecon:{statementProcessing:Zm}},common:Bq}=se.getLocalizedStrings(),yy="statement-processing-page";function ups(){const[e]=oa("AiStar");return t.jsx(t2,{$slotSize:o.sp4,children:e!=null?t.jsx(kL,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(bps,{})})}function pps({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=Zm.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[A,S]=m.useState(!1),$=m.useCallback(((ue,re)=>{v(ue),S(re)}),[]),[j,E]=m.useState((()=>h===0?0:(n??0)/h*100)),I=l?.signedUrl?.trim()??"",[D,B]=m.useState(i),[F,R]=m.useState(i!=null),[_,N]=m.useState(null),[T,P]=m.useState(0),L=m.useRef(null),V=m.useRef(!1),H=m.useRef(null),Q=m.useRef(!1);m.useEffect((()=>{if(i!=null)return B(i),void R(!0);if(I==="")return B(void 0),void R(!1);let ue=!1;return R(!1),(async function(re){if(re==null)return;if(jrn(re))return 1;if(!(function(ce){return ce.contentType?.toLowerCase()==="application/pdf"||ce.extension?.toLowerCase()===".pdf"})(re))return;const le=re.signedUrl.trim();if(le!=="")try{const ce=await fetch(le);return ce.ok?(await(await Pd((()=>import("./pdf-DMCYUxGc.js").then((ge=>ge.i))),__vite__mapDeps([0,1,2])).then((ge=>ge.pdfjs))).getDocument({data:new Uint8Array(await ce.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:I,contentType:l?.contentType,extension:l?.extension}).then((re=>{ue||(B(re),R(!0))})),()=>{ue=!0}}),[i,I,l?.contentType,l?.extension]),m.useEffect((()=>{N(null)}),[I]),m.useEffect((()=>{!F||_!=null||N((function(ue){return ue==null||ue<=0?125:ue<=2?65:ue<=4?120:ue<=8?160:ue<=12?190:200})(D))}),[F,_,D]);const U=_??125,W=u8e(h),q=1e3*U,K=Math.floor(q/Math.max(W,1));m.useEffect((()=>{if(!e)return L.current=null,V.current=!1,P(0),void N(null);if(!V.current){const le=(function(ce,ge,me){const xe=u8e(me);return ge*(Math.max(0,Math.min(ce,me)-1)/xe)})(Math.max(n??0,b,1),U,h);L.current=Date.now()-1e3*le,V.current=!0}const ue=()=>{L.current!=null&&P(Math.floor((Date.now()-L.current)/1e3))};ue();const re=setInterval(ue,5e3);return()=>clearInterval(re)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,te=_!=null?(function(ue,re,le){return re?null:ue<=0?{label:le.takingLongerThanExpected,showClock:!1}:ue<60?{label:le.timeRemainingSeconds(ue),showClock:!0}:{label:le.timeRemainingMinutes(Math.ceil(ue/60)),showClock:!0}})(J,b>=h,Zm):null;m.useEffect((()=>{p?.(b)}),[b,p]),m.useEffect((()=>{n!=null&&n>b&&w(n)}),[n,b]),m.useEffect((()=>{e&&b===0&&w(1)}),[e,b]);const ne=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const ue=setTimeout((()=>{w((re=>re+1))}),ne?300:K);return()=>clearTimeout(ue)}),[b,s,f,g,ne,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const ue=setTimeout(u,1e3);return()=>clearTimeout(ue)}),[b,f,u,h]);const X=f===!0&&b>=g,ie=m.useCallback((()=>{const ue=L.current??Date.now();d({completedSteps:b,startedAtMs:ue,totalDurationSeconds:U,accountMappings:X===!0?C:void 0})}),[b,X,C,d,U]);m.useEffect((()=>{if(X!==!0)return void(Q.current=!1);if(Q.current===!0)return;Q.current=!0;const ue=requestAnimationFrame((()=>{const re=H.current;re?.scrollTo({top:re.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(ue)}),[X]),m.useEffect((()=>{if(h===0)return void E(0);const ue=b/h*100;if(b===0)return void E(0);if(b>=h)return void E(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void E(ue);const re=(b+1)/h*100,le=ne?300:K,ce=performance.now();let ge=0;const me=xe=>{const be=Math.min((xe-ce)/le,1);E(ue+(re-ue)*be),be<1&&(ge=requestAnimationFrame(me))};return ge=requestAnimationFrame(me),()=>cancelAnimationFrame(ge)}),[b,s,f,g,ne,K,h]);const oe=Math.min(100,Math.round(j)),ae=b>=h?h-1:Math.min(b,Zm.stepSubtitles.length-1),he=r?.accounts.length??0,de=X===!0&&he>0?r?.accountType==="bank"?Zm.accountMapping.headerSubtitleAccounts(he):Zm.accountMapping.headerSubtitle(he):Zm.stepSubtitles[ae];return t.jsxs(t.Fragment,{children:[t.jsxs(hps,{ref:H,"data-testid":Y(yy,"container"),children:[t.jsxs(gps,{"data-testid":Y(yy,"header"),children:[t.jsxs(fps,{children:[t.jsxs(xps,{children:[t.jsxs(yps,{children:[t.jsx(ups,{}),t.jsx(wps,{children:Zm.headerTitle})]}),X===!0?t.jsxs(Swt,{"data-testid":Y(yy,"action-needed"),children:[t.jsx(Sps,{}),t.jsx(kps,{children:Zm.actionNeeded})]}):te!=null?t.jsxs(Swt,{"data-testid":Y(yy,"time-remaining"),children:[te.showClock?t.jsx(vps,{}):null,t.jsx(Aps,{children:te.label})]}):null]}),t.jsx(Cps,{children:de})]}),t.jsxs(jps,{children:[t.jsxs($ps,{children:[t.jsx(Eps,{children:Zm.stepProgressLabel(b,h)}),t.jsx(Ips,{children:`${oe}%`})]}),t.jsx(Dps,{children:t.jsx(Tps,{style:{width:`${j}%`}})})]})]}),t.jsx(mps,{"data-testid":Y(yy,"steps"),children:Zm.steps.map(((ue,re)=>{const le=re+1,ce=re===Zm.steps.length-1,ge=X===!0&&y!==!0&&ce===!0,me=f===!0&&y===!0&&ce===!0&&b>=g,xe=ge!==!0&&me!==!0&&le<=b,be=me===!0||ge!==!0&&le===b+1;return t.jsxs(Lps,{"data-testid":Y(yy,`step-${le}`),children:[t.jsxs(Bps,{children:[t.jsx(Mps,{$isDone:xe,$isInProgress:be,children:le}),ce?null:t.jsx(Pps,{$isDone:xe})]}),t.jsx(Vps,{children:ue}),t.jsx(Hps,{children:ge===!0?t.jsx(zps,{"data-testid":Y(yy,"action-required"),children:t.jsx(Nps,{children:Bq.texts.actionRequired})}):xe?t.jsx(Ops,{}):be?t.jsxs(Fps,{children:[t.jsx(_ps,{}),t.jsx(Rps,{children:Bq.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},le)}))}),X===!0&&r!=null?t.jsx(V1s,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),X===!0&&r!=null?t.jsx(Kn,{formId:yy,showCancel:!0,cancelBtn:{label:Zm.continueInBackground,onClick:ie,style:{width:"195px"}},primaryBtn:{label:Bq.confirm,isDisabled:A!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(Kn,{formId:yy,showCancel:!0,cancelBtn:{label:Bq.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:Zm.continueInBackground,onClick:ie,variant:"secondary",style:{width:"195px"}}})]})}const hps=a.div`
86059
+ `,{expenseAutomation:{accountRecon:{statementProcessing:Zm}},common:Bq}=se.getLocalizedStrings(),yy="statement-processing-page";function ups(){const[e]=oa("AiStar");return t.jsx(t2,{$slotSize:o.sp4,children:e!=null?t.jsx(kL,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(bps,{})})}function pps({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=Zm.steps.length,g=Math.max(h-1,0),f=r!=null&&r.accounts.length>0,x=r?.isConfirmLoading===!0,y=r?.isConfirmCompleted===!0,[b,w]=m.useState(n??0),[C,v]=m.useState([]),[A,S]=m.useState(!1),$=m.useCallback(((ue,re)=>{v(ue),S(re)}),[]),[j,E]=m.useState((()=>h===0?0:(n??0)/h*100)),I=l?.signedUrl?.trim()??"",[D,B]=m.useState(i),[F,R]=m.useState(i!=null),[_,N]=m.useState(null),[T,P]=m.useState(0),L=m.useRef(null),V=m.useRef(!1),H=m.useRef(null),Q=m.useRef(!1);m.useEffect((()=>{if(i!=null)return B(i),void R(!0);if(I==="")return B(void 0),void R(!1);let ue=!1;return R(!1),(async function(re){if(re==null)return;if(jrn(re))return 1;if(!(function(ce){return ce.contentType?.toLowerCase()==="application/pdf"||ce.extension?.toLowerCase()===".pdf"})(re))return;const le=re.signedUrl.trim();if(le!=="")try{const ce=await fetch(le);return ce.ok?(await(await Pd((()=>import("./pdf-BfgO0ZZE.js").then((ge=>ge.i))),__vite__mapDeps([0,1,2])).then((ge=>ge.pdfjs))).getDocument({data:new Uint8Array(await ce.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:I,contentType:l?.contentType,extension:l?.extension}).then((re=>{ue||(B(re),R(!0))})),()=>{ue=!0}}),[i,I,l?.contentType,l?.extension]),m.useEffect((()=>{N(null)}),[I]),m.useEffect((()=>{!F||_!=null||N((function(ue){return ue==null||ue<=0?125:ue<=2?65:ue<=4?120:ue<=8?160:ue<=12?190:200})(D))}),[F,_,D]);const U=_??125,W=u8e(h),q=1e3*U,K=Math.floor(q/Math.max(W,1));m.useEffect((()=>{if(!e)return L.current=null,V.current=!1,P(0),void N(null);if(!V.current){const le=(function(ce,ge,me){const xe=u8e(me);return ge*(Math.max(0,Math.min(ce,me)-1)/xe)})(Math.max(n??0,b,1),U,h);L.current=Date.now()-1e3*le,V.current=!0}const ue=()=>{L.current!=null&&P(Math.floor((Date.now()-L.current)/1e3))};ue();const re=setInterval(ue,5e3);return()=>clearInterval(re)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,te=_!=null?(function(ue,re,le){return re?null:ue<=0?{label:le.takingLongerThanExpected,showClock:!1}:ue<60?{label:le.timeRemainingSeconds(ue),showClock:!0}:{label:le.timeRemainingMinutes(Math.ceil(ue/60)),showClock:!0}})(J,b>=h,Zm):null;m.useEffect((()=>{p?.(b)}),[b,p]),m.useEffect((()=>{n!=null&&n>b&&w(n)}),[n,b]),m.useEffect((()=>{e&&b===0&&w(1)}),[e,b]);const ne=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const ue=setTimeout((()=>{w((re=>re+1))}),ne?300:K);return()=>clearTimeout(ue)}),[b,s,f,g,ne,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const ue=setTimeout(u,1e3);return()=>clearTimeout(ue)}),[b,f,u,h]);const X=f===!0&&b>=g,ie=m.useCallback((()=>{const ue=L.current??Date.now();d({completedSteps:b,startedAtMs:ue,totalDurationSeconds:U,accountMappings:X===!0?C:void 0})}),[b,X,C,d,U]);m.useEffect((()=>{if(X!==!0)return void(Q.current=!1);if(Q.current===!0)return;Q.current=!0;const ue=requestAnimationFrame((()=>{const re=H.current;re?.scrollTo({top:re.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(ue)}),[X]),m.useEffect((()=>{if(h===0)return void E(0);const ue=b/h*100;if(b===0)return void E(0);if(b>=h)return void E(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void E(ue);const re=(b+1)/h*100,le=ne?300:K,ce=performance.now();let ge=0;const me=xe=>{const be=Math.min((xe-ce)/le,1);E(ue+(re-ue)*be),be<1&&(ge=requestAnimationFrame(me))};return ge=requestAnimationFrame(me),()=>cancelAnimationFrame(ge)}),[b,s,f,g,ne,K,h]);const oe=Math.min(100,Math.round(j)),ae=b>=h?h-1:Math.min(b,Zm.stepSubtitles.length-1),he=r?.accounts.length??0,de=X===!0&&he>0?r?.accountType==="bank"?Zm.accountMapping.headerSubtitleAccounts(he):Zm.accountMapping.headerSubtitle(he):Zm.stepSubtitles[ae];return t.jsxs(t.Fragment,{children:[t.jsxs(hps,{ref:H,"data-testid":Y(yy,"container"),children:[t.jsxs(gps,{"data-testid":Y(yy,"header"),children:[t.jsxs(fps,{children:[t.jsxs(xps,{children:[t.jsxs(yps,{children:[t.jsx(ups,{}),t.jsx(wps,{children:Zm.headerTitle})]}),X===!0?t.jsxs(Swt,{"data-testid":Y(yy,"action-needed"),children:[t.jsx(Sps,{}),t.jsx(kps,{children:Zm.actionNeeded})]}):te!=null?t.jsxs(Swt,{"data-testid":Y(yy,"time-remaining"),children:[te.showClock?t.jsx(vps,{}):null,t.jsx(Aps,{children:te.label})]}):null]}),t.jsx(Cps,{children:de})]}),t.jsxs(jps,{children:[t.jsxs($ps,{children:[t.jsx(Eps,{children:Zm.stepProgressLabel(b,h)}),t.jsx(Ips,{children:`${oe}%`})]}),t.jsx(Dps,{children:t.jsx(Tps,{style:{width:`${j}%`}})})]})]}),t.jsx(mps,{"data-testid":Y(yy,"steps"),children:Zm.steps.map(((ue,re)=>{const le=re+1,ce=re===Zm.steps.length-1,ge=X===!0&&y!==!0&&ce===!0,me=f===!0&&y===!0&&ce===!0&&b>=g,xe=ge!==!0&&me!==!0&&le<=b,be=me===!0||ge!==!0&&le===b+1;return t.jsxs(Lps,{"data-testid":Y(yy,`step-${le}`),children:[t.jsxs(Bps,{children:[t.jsx(Mps,{$isDone:xe,$isInProgress:be,children:le}),ce?null:t.jsx(Pps,{$isDone:xe})]}),t.jsx(Vps,{children:ue}),t.jsx(Hps,{children:ge===!0?t.jsx(zps,{"data-testid":Y(yy,"action-required"),children:t.jsx(Nps,{children:Bq.texts.actionRequired})}):xe?t.jsx(Ops,{}):be?t.jsxs(Fps,{children:[t.jsx(_ps,{}),t.jsx(Rps,{children:Bq.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},le)}))}),X===!0&&r!=null?t.jsx(V1s,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),X===!0&&r!=null?t.jsx(Kn,{formId:yy,showCancel:!0,cancelBtn:{label:Zm.continueInBackground,onClick:ie,style:{width:"195px"}},primaryBtn:{label:Bq.confirm,isDisabled:A!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(Kn,{formId:yy,showCancel:!0,cancelBtn:{label:Bq.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:Zm.continueInBackground,onClick:ie,variant:"secondary",style:{width:"195px"}}})]})}const hps=a.div`
86060
86060
  flex: 1;
86061
86061
  display: flex;
86062
86062
  flex-direction: column;
@@ -90976,7 +90976,7 @@ ${MO.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx($i
90976
90976
  display: flex;
90977
90977
  min-height: 100%;
90978
90978
  flex-direction: column;
90979
- `,W9s=()=>{const[e,n]=m.useState((()=>Lr.getSignedInUser())),i=qp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Gr((g=>zSt(g).fetchState)),u=Gr((g=>xm(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Lr.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(Xdn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return Zt.jsxs(m.Fragment,{children:[l&&Zt.jsx(LAe,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Zt.jsx(H9s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},uAt="init-enter",Q9s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||uAt);Y9s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||uAt,c=G9s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),Y9s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),G9s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},Bm=e=>m.lazy((async()=>{const n=e.toString(),i=Lr.getForceRefreshedComponents(),r=new Set(i),s=Lr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),x$s=(e,n,i)=>{const r=z8e(e),s=cne(e),l=N8e(i,e);return(n||i||s||r||l)&&F8e(e.company)},usn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),psn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),hsn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),msn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Dc(...e){const n=Pc==="DEV"||Pc==="QA";if(usn||psn||hsn||msn)return void console.log(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.log(...e)}function oT(...e){const n=Pc==="DEV"||Pc==="QA";if(usn||psn||hsn||msn)return void console.warn(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.warn(...e)}let WE=null,GO=!1;const Tc=Pc==="PROD"?"https://api.zeni.ai":Pc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function pAt(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=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:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const q9s={dashboard:function(e){return[...pAt()]},reports:pAt,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})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${r}`,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:`${Tc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Tc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Tc}/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:`${Tc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Tc}/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:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${Tc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Tc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Tc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Tc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function hAt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,q9s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(Dc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(Dc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(Dc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return Dc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function mAt(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(Dc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void oT("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);Dc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{Dc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Dc(` URL: ${u.url}`)}));const c=gne(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),Dc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){oT("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else oT("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function K9s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=u2(),A=Lr.getSignedInUser(),{useFeatureGate:S}=ds(),{isFeatureEnabled:$}=S(Yr.isReferralFeatureEnabled),j=Dn(),E=u7(j?.loggedInUserRole??[]),I=Gr((_=>xm(_))),{isFeatureEnabled:D}=S(Yr.isDebitCardFeatureEnabled),B=N8e(D,I),F=z8e(I),R=B===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!A||!i)return;const _=hAt({currentPage:n,userId:A.userId,tenantId:i,sessionId:A.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:E,isReportsPageVisible:R,companyId:I?.companyId??"",isPageIndependent:g}),N=g?"dashboard":n;if(_.length===0)return void Dc(`[Prefetch Provider - ${N}${g?" (base)":""}] No URLs to prefetch`);Dc(`[Prefetch Provider - ${N}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{mAt(_,r,s).catch((P=>{oT(`[Prefetch Provider - ${N}${g?" (base)":""}] Prefetch failed:`,P)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,A,i,n,u,p,$,E,R,I?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&A&&i)||b)return;Dc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(N){const{timeout:T=2e3,onIdle:P}=N;Dc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const L=()=>{GO&&(Dc("[Idle Detection - Service Worker] 🏃 User became active again"),GO=!1),WE&&clearTimeout(WE),WE=setTimeout((()=>{GO||(Dc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),GO=!0,P())}),T)},V=["mousedown","mousemove","keypress","scroll","touchstart","click"];return V.forEach((H=>{document.addEventListener(H,L,!0)})),L(),()=>{Dc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),WE&&(clearTimeout(WE),WE=null),V.forEach((H=>{document.removeEventListener(H,L,!0)})),GO=!1}})({timeout:h,onIdle:()=>{if(b)return;Dc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=hAt({currentPage:n,userId:A.userId,tenantId:i,sessionId:A.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:E,isReportsPageVisible:R,companyId:I.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;N.length!==0?(Dc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),mAt(N,r,s).catch((P=>{oT(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,P)})),w(!0)):Dc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=_,()=>{C.current&&(C.current(),C.current=null)}}),[c,d,h,A,i,b,n,u,p,$,E,R,I.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const N=performance.navigation;return!(!N||typeof N.type!="number")&&N.type===1})()&&f&&(Dc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,N=navigator.serviceWorker.controller||_.active;if(!N)return;Dc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){oT("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),Zt.jsx(Zt.Fragment,{children:e})}function Z9s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=u2(),u=Gr((y=>xm(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=ds(),{isFeatureEnabled:x}=f(Yr.isServiceWorkerPrefetchingEnabled);return g&&p?Zt.jsx(K9s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Zt.jsx(Zt.Fragment,{children:e})}function J9s(e,n){const i=Bi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const X9s=Bm((()=>Pd((()=>import("./DefaultTenantHome-B_-3-BWP.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),e8s=Bm((()=>Pd((()=>import("./AppDrawer-Dyu7Kj7A.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),gAt=Bm((()=>Pd((()=>import("./ScreenRoutes-DfCL2gIc.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),t8s=Bm((()=>Pd((()=>import("./ConnectionAuthScreen-lP9BaYPL.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),n8s=Bm((()=>Pd((()=>import("./SignInScreen-Cktnr6wX.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),i8s=Bm((()=>Pd((()=>import("./MagicLinkSignInScreen-BineRgOo.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),fAt=Bm((()=>Pd((()=>import("./NotFoundScreen-DJ-T97HU.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),o8s=Bm((()=>Pd((()=>import("./MagicLinkRoutes-AdtcTQV8.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),r8s=Bm((()=>Pd((()=>import("./PaymentLinkScreen-tKLL3f9h.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),a8s=Bm((()=>Pd((()=>import("./WiseConfirmationScreen-D4dLeJ3W.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),s8s=Bm((()=>Pd((()=>import("./HubSpotOAuthCallbackScreen-Be8h7JlS.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),l8s=Bm((()=>Pd((()=>import("./CustomerOnboardingAuthScreen-86giaeRs.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),c8s=Bm((()=>Pd((()=>import("./SignOutScreen-BwPpNX5k.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),d8s=Bm((()=>Pd((()=>import("./OAuthConsentScreen-DgdT7x6v.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),u8s=()=>{const e=u2(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=J9s("/",n);return Zt.jsx(MAt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function p8s(){const{isOpen:e}=zk(),n=$gi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Oje(),s=m.useRef(!1),l=m.useRef(i),c=m.useRef(!1);return m.useLayoutEffect((()=>{const d=i&&!l.current;l.current=i,d&&e&&(r(!1),n(),c.current=!0)}),[i,e,r,n]),m.useEffect((()=>{e&&!s.current&&(c.current=!1,i&&r(!1)),s.current=e}),[e,i,r]),m.useEffect((()=>{!e&&c.current&&(c.current=!1,r(!0))}),[e,r]),null}const h8s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Lr.isSignedIn(),r=Gr((T=>xm(T))),s=Lr.getSignedInUser(),l=i&&HN(s),c=Gr((T=>eun(T))).tenantsBaseInOrder.map((T=>({companyId:T.companyId,tenantId:T.tenantId,companyName:T.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=qp(),p=iu(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Ran(),g=Uje(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=ds(),{isFeatureEnabled:v}=C(Yr.isAiCfoFileUploadEnabled),{isFeatureEnabled:A}=C(Yr.isBillPayCommentingEnabled),{isFeatureEnabled:S}=C(Yr.isReimbursementCommentingEnabled),{isFeatureEnabled:$}=C(Yr.isExpenseAutomationEnabled),{isFeatureEnabled:j}=C(Yr.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(Yr.isTreasuryCommentingEnabled),{isFeatureEnabled:I}=C(Yr.isCheckingCommentingEnabled),{isFeatureEnabled:D}=C(Yr.isTransactionCommentingEnabled),{isFeatureEnabled:B}=C(Yr.isCardsCommentingEnabled),F=A||S||l&&$||!l&&j||E||I||D||B;m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(tun())}),[u,h]);const R=u2().pathname.includes("/collect-payment/"),_=Zt.jsx(m8s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(R)return Zt.jsx(DGe,{children:Zt.jsx(p5t,{children:Zt.jsx($8e.Provider,{value:w,children:_})})});const N=Zt.jsxs($8e.Provider,{value:w,children:[Zt.jsx(p8s,{}),Zt.jsxs(x8s,{children:[Zt.jsx(e8s,{tenantEmailDomain:e}),Zt.jsx(g8s,{children:_})]})]});return Zt.jsx(DGe,{children:r.tenantId!=null?Zt.jsx(U4a,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${R8.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${R8.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:l||D||B,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:F,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:N},r.tenantId):Zt.jsx(p5t,{children:N})})},m8s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Gr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=ds(),{configValue:c}=l(n6.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}=zje(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Oje();return m.useEffect((()=>{h(Nan.APP_INITIALIZATION)}),[h]),Zt.jsx(m.Suspense,{fallback:null,children:Zt.jsx(Z9s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Zt.jsxs(Vsn,{children:[Zt.jsx(lp,{path:"/magic_links/*",element:Zt.jsx(o8s,{})}),Zt.jsx(lp,{path:"/collect-payment/:namespace/:token",element:Zt.jsx(r8s,{})}),Zt.jsx(lp,{path:"/wise/callback/link-account/*",element:Zt.jsx(a8s,{})}),Zt.jsx(lp,{path:"/page-not-found",element:Zt.jsx(fAt,{})}),Zt.jsx(lp,{path:"/",element:Zt.jsx(X9s,{})}),Zt.jsx(lp,{path:"/aicfo",element:Zt.jsx(u8s,{})}),Zt.jsx(lp,{path:"/onboarding/auth",element:Zt.jsx(l8s,{})}),Zt.jsx(lp,{path:"/:tenantEmailDomain/*",element:Zt.jsx(b8s,{children:Zt.jsxs(c9s,{children:[Zt.jsxs(w8s,{children:[s!=null?Zt.jsx(W9s,{}):null,n?Zt.jsx(gAt,{setTenantEmailDomain:e}):Zt.jsx(_5e,{children:Zt.jsx(gAt,{setTenantEmailDomain:e})})]}),i?Zt.jsxs(Zt.Fragment,{children:[Zt.jsx(_bs,{}),Zt.jsx(C8s,{isOpen:g,children:Zt.jsx(M9s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),Zt.jsx(lp,{path:"/signin/auth",element:Zt.jsx(_5e,{children:Zt.jsx(n8s,{setTenantEmailDomain:e})})}),Zt.jsx(lp,{path:"/signin/magic-link",element:Zt.jsx(_5e,{children:Zt.jsx(i8s,{})})}),Zt.jsx(lp,{path:"/signout",element:Zt.jsx(c8s,{})}),Zt.jsx(lp,{path:"/connection/auth",element:Zt.jsx(t8s,{})}),Zt.jsx(lp,{path:"/oauth/hubspot/callback",element:Zt.jsx(s8s,{})}),Zt.jsx(lp,{path:"/oauth/authorize",element:Zt.jsx(d8s,{})}),Zt.jsx(lp,{path:"*",element:Zt.jsx(fAt,{})})]})})})},g8s=({children:e})=>{const{isOpen:n,width:i}=zk();return Zt.jsx(y8s,{commentsDrawerWidth:n?i:0,children:e})},f8s=ci("div")`
90979
+ `,W9s=()=>{const[e,n]=m.useState((()=>Lr.getSignedInUser())),i=qp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Gr((g=>zSt(g).fetchState)),u=Gr((g=>xm(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=Lr.getSignedInUser();n((f=>JSON.stringify(f)!==JSON.stringify(g)?g:f))}),[]);m.useEffect((()=>(window.addEventListener("completeProfileDone",p),()=>{window.removeEventListener("completeProfileDone",p)})),[]),m.useEffect((()=>{u?.companyId!=null&&d==="Not-Started"&&i(Xdn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return Zt.jsxs(m.Fragment,{children:[l&&Zt.jsx(LAe,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?Zt.jsx(H9s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},uAt="init-enter",Q9s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||uAt);Y9s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||uAt,c=G9s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),Y9s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),G9s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},Bm=e=>m.lazy((async()=>{const n=e.toString(),i=Lr.getForceRefreshedComponents(),r=new Set(i),s=Lr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Lr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),x$s=(e,n,i)=>{const r=z8e(e),s=cne(e),l=N8e(i,e);return(n||i||s||r||l)&&F8e(e.company)},usn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),psn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),hsn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),msn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function Dc(...e){const n=Pc==="DEV"||Pc==="QA";if(usn||psn||hsn||msn)return void console.log(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.log(...e)}function oT(...e){const n=Pc==="DEV"||Pc==="QA";if(usn||psn||hsn||msn)return void console.warn(...e);const i=globalThis.window!==void 0&&(globalThis.window.location.hostname==="localhost"||globalThis.window.location.hostname==="127.0.0.1")&&globalThis.window.location.port==="3000";n&&i&&console.warn(...e)}let WE=null,GO=!1;const Tc=Pc==="PROD"?"https://api.zeni.ai":Pc==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function pAt(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=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:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Tc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const q9s={dashboard:function(e){return[...pAt()]},reports:pAt,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})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Tc}/accounting/2.0/reports/profit_and_loss?query=${r}`,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:`${Tc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Tc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Tc}/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:`${Tc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Tc}/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:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${Tc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Tc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Tc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Tc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function hAt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,q9s[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(Dc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(Dc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(Dc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return Dc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function mAt(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(Dc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void oT("[Prefetch Manager - Service Worker] No active Service Worker available");const l=(function(u){const p={HIGH:0,MEDIUM:1,LOW:2};return u.sort(((h,g)=>p[h.priority]-p[g.priority]))})(e);Dc("[Prefetch Manager - Service Worker] 📋 Sending prefetch list to SW:",{total:l.length,high:l.filter((u=>u.priority==="HIGH")).length,medium:l.filter((u=>u.priority==="MEDIUM")).length,low:l.filter((u=>u.priority==="LOW")).length,batchSize:n>0?n:"disabled",expirationTime:i??"20 minutes",viaController:!!navigator.serviceWorker.controller}),l.forEach(((u,p)=>{Dc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),Dc(` URL: ${u.url}`)}));const c=gne(),d={"zeni-session-id":c.sessionId,"zeni-user-id":c.userId,"zeni-tenant-id":c.tenantId};s.postMessage({type:"PREFETCH_URLS",payload:{urls:l.map((u=>({url:u.url,priority:u.priority,apiType:u.apiType}))),authHeaders:d,batchSize:n,expirationTime:i}}),Dc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){oT("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else oT("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function K9s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=u2(),A=Lr.getSignedInUser(),{useFeatureGate:S}=ds(),{isFeatureEnabled:$}=S(Yr.isReferralFeatureEnabled),j=Dn(),E=u7(j?.loggedInUserRole??[]),I=Gr((_=>xm(_))),{isFeatureEnabled:D}=S(Yr.isDebitCardFeatureEnabled),B=N8e(D,I),F=z8e(I),R=B===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!A||!i)return;const _=hAt({currentPage:n,userId:A.userId,tenantId:i,sessionId:A.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:E,isReportsPageVisible:R,companyId:I?.companyId??"",isPageIndependent:g}),N=g?"dashboard":n;if(_.length===0)return void Dc(`[Prefetch Provider - ${N}${g?" (base)":""}] No URLs to prefetch`);Dc(`[Prefetch Provider - ${N}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{mAt(_,r,s).catch((P=>{oT(`[Prefetch Provider - ${N}${g?" (base)":""}] Prefetch failed:`,P)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,A,i,n,u,p,$,E,R,I?.companyId,g,r,s,l,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&A&&i)||b)return;Dc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(N){const{timeout:T=2e3,onIdle:P}=N;Dc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const L=()=>{GO&&(Dc("[Idle Detection - Service Worker] 🏃 User became active again"),GO=!1),WE&&clearTimeout(WE),WE=setTimeout((()=>{GO||(Dc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),GO=!0,P())}),T)},V=["mousedown","mousemove","keypress","scroll","touchstart","click"];return V.forEach((H=>{document.addEventListener(H,L,!0)})),L(),()=>{Dc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),WE&&(clearTimeout(WE),WE=null),V.forEach((H=>{document.removeEventListener(H,L,!0)})),GO=!1}})({timeout:h,onIdle:()=>{if(b)return;Dc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const N=hAt({currentPage:n,userId:A.userId,tenantId:i,sessionId:A.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:E,isReportsPageVisible:R,companyId:I.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;N.length!==0?(Dc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${N.length} URLs to prefetch on idle`),mAt(N,r,s).catch((P=>{oT(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,P)})),w(!0)):Dc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] No URLs to prefetch on idle`)}});return C.current=_,()=>{C.current&&(C.current(),C.current=null)}}),[c,d,h,A,i,b,n,u,p,$,E,R,I.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const N=performance.navigation;return!(!N||typeof N.type!="number")&&N.type===1})()&&f&&(Dc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,N=navigator.serviceWorker.controller||_.active;if(!N)return;Dc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),N.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){oT("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),Zt.jsx(Zt.Fragment,{children:e})}function Z9s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=u2(),u=Gr((y=>xm(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=ds(),{isFeatureEnabled:x}=f(Yr.isServiceWorkerPrefetchingEnabled);return g&&p?Zt.jsx(K9s,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):Zt.jsx(Zt.Fragment,{children:e})}function J9s(e,n){const i=Bi.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const X9s=Bm((()=>Pd((()=>import("./DefaultTenantHome-BvquDIuf.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),e8s=Bm((()=>Pd((()=>import("./AppDrawer-CKP6jrbF.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),gAt=Bm((()=>Pd((()=>import("./ScreenRoutes-C7oLHktw.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),t8s=Bm((()=>Pd((()=>import("./ConnectionAuthScreen-BoP4m4L6.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),n8s=Bm((()=>Pd((()=>import("./SignInScreen-BRoXT-HL.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),i8s=Bm((()=>Pd((()=>import("./MagicLinkSignInScreen-CBQx4xWX.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),fAt=Bm((()=>Pd((()=>import("./NotFoundScreen-BeP62Nz9.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),o8s=Bm((()=>Pd((()=>import("./MagicLinkRoutes-BxAzMNve.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),r8s=Bm((()=>Pd((()=>import("./PaymentLinkScreen-0thjtbfK.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),a8s=Bm((()=>Pd((()=>import("./WiseConfirmationScreen-taiB3VxF.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),s8s=Bm((()=>Pd((()=>import("./HubSpotOAuthCallbackScreen-CdBNaEnB.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),l8s=Bm((()=>Pd((()=>import("./CustomerOnboardingAuthScreen-CDb5FCfJ.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),c8s=Bm((()=>Pd((()=>import("./SignOutScreen-DkRfW28z.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),d8s=Bm((()=>Pd((()=>import("./OAuthConsentScreen-DECI8j0I.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),u8s=()=>{const e=u2(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=J9s("/",n);return Zt.jsx(MAt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function p8s(){const{isOpen:e}=zk(),n=$gi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Oje(),s=m.useRef(!1),l=m.useRef(i),c=m.useRef(!1);return m.useLayoutEffect((()=>{const d=i&&!l.current;l.current=i,d&&e&&(r(!1),n(),c.current=!0)}),[i,e,r,n]),m.useEffect((()=>{e&&!s.current&&(c.current=!1,i&&r(!1)),s.current=e}),[e,i,r]),m.useEffect((()=>{!e&&c.current&&(c.current=!1,r(!0))}),[e,r]),null}const h8s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Lr.isSignedIn(),r=Gr((T=>xm(T))),s=Lr.getSignedInUser(),l=i&&HN(s),c=Gr((T=>eun(T))).tenantsBaseInOrder.map((T=>({companyId:T.companyId,tenantId:T.tenantId,companyName:T.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=qp(),p=iu(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Ran(),g=Uje(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=ds(),{isFeatureEnabled:v}=C(Yr.isAiCfoFileUploadEnabled),{isFeatureEnabled:A}=C(Yr.isBillPayCommentingEnabled),{isFeatureEnabled:S}=C(Yr.isReimbursementCommentingEnabled),{isFeatureEnabled:$}=C(Yr.isExpenseAutomationEnabled),{isFeatureEnabled:j}=C(Yr.isExpenseAutomationEnabledV2),{isFeatureEnabled:E}=C(Yr.isTreasuryCommentingEnabled),{isFeatureEnabled:I}=C(Yr.isCheckingCommentingEnabled),{isFeatureEnabled:D}=C(Yr.isTransactionCommentingEnabled),{isFeatureEnabled:B}=C(Yr.isCardsCommentingEnabled),F=A||S||l&&$||!l&&j||E||I||D||B;m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(tun())}),[u,h]);const R=u2().pathname.includes("/collect-payment/"),_=Zt.jsx(m8s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(R)return Zt.jsx(DGe,{children:Zt.jsx(p5t,{children:Zt.jsx($8e.Provider,{value:w,children:_})})});const N=Zt.jsxs($8e.Provider,{value:w,children:[Zt.jsx(p8s,{}),Zt.jsxs(x8s,{children:[Zt.jsx(e8s,{tenantEmailDomain:e}),Zt.jsx(g8s,{children:_})]})]});return Zt.jsx(DGe,{children:r.tenantId!=null?Zt.jsx(U4a,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${R8.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${R8.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:l||D||B,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:F,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:N},r.tenantId):Zt.jsx(p5t,{children:N})})},m8s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Gr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=ds(),{configValue:c}=l(n6.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}=zje(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Oje();return m.useEffect((()=>{h(Nan.APP_INITIALIZATION)}),[h]),Zt.jsx(m.Suspense,{fallback:null,children:Zt.jsx(Z9s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:Zt.jsxs(Vsn,{children:[Zt.jsx(lp,{path:"/magic_links/*",element:Zt.jsx(o8s,{})}),Zt.jsx(lp,{path:"/collect-payment/:namespace/:token",element:Zt.jsx(r8s,{})}),Zt.jsx(lp,{path:"/wise/callback/link-account/*",element:Zt.jsx(a8s,{})}),Zt.jsx(lp,{path:"/page-not-found",element:Zt.jsx(fAt,{})}),Zt.jsx(lp,{path:"/",element:Zt.jsx(X9s,{})}),Zt.jsx(lp,{path:"/aicfo",element:Zt.jsx(u8s,{})}),Zt.jsx(lp,{path:"/onboarding/auth",element:Zt.jsx(l8s,{})}),Zt.jsx(lp,{path:"/:tenantEmailDomain/*",element:Zt.jsx(b8s,{children:Zt.jsxs(c9s,{children:[Zt.jsxs(w8s,{children:[s!=null?Zt.jsx(W9s,{}):null,n?Zt.jsx(gAt,{setTenantEmailDomain:e}):Zt.jsx(_5e,{children:Zt.jsx(gAt,{setTenantEmailDomain:e})})]}),i?Zt.jsxs(Zt.Fragment,{children:[Zt.jsx(_bs,{}),Zt.jsx(C8s,{isOpen:g,children:Zt.jsx(M9s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),Zt.jsx(lp,{path:"/signin/auth",element:Zt.jsx(_5e,{children:Zt.jsx(n8s,{setTenantEmailDomain:e})})}),Zt.jsx(lp,{path:"/signin/magic-link",element:Zt.jsx(_5e,{children:Zt.jsx(i8s,{})})}),Zt.jsx(lp,{path:"/signout",element:Zt.jsx(c8s,{})}),Zt.jsx(lp,{path:"/connection/auth",element:Zt.jsx(t8s,{})}),Zt.jsx(lp,{path:"/oauth/hubspot/callback",element:Zt.jsx(s8s,{})}),Zt.jsx(lp,{path:"/oauth/authorize",element:Zt.jsx(d8s,{})}),Zt.jsx(lp,{path:"*",element:Zt.jsx(fAt,{})})]})})})},g8s=({children:e})=>{const{isOpen:n,width:i}=zk();return Zt.jsx(y8s,{commentsDrawerWidth:n?i:0,children:e})},f8s=ci("div")`
90980
90980
  display:flex;
90981
90981
  `,x8s=ci("div")`
90982
90982
  display: flex;