@zeniai/web-app-ui 5.4.11-dev → 5.4.12-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 (119) hide show
  1. package/dist/assets/{AccountMappingScreen-CMj3JkGt.js → AccountMappingScreen-CtnQtVOI.js} +1 -1
  2. package/dist/assets/{ActualMatchingMatchDetailScreen-Dd_vJSSr.js → ActualMatchingMatchDetailScreen-COb45lJn.js} +1 -1
  3. package/dist/assets/AddressRoutes-CXRpuLt0.js +1 -0
  4. package/dist/assets/{AddressScreen-BbgME8aO.js → AddressScreen-CiPLLpNX.js} +1 -1
  5. package/dist/assets/{AiCfoScreen-CU1e2Oi8.js → AiCfoScreen-DPuJRDN-.js} +1 -1
  6. package/dist/assets/{AppDrawer-Dm9C8j__.js → AppDrawer-Bxmzf_KR.js} +1 -1
  7. package/dist/assets/{BillPayApprovalRoutes-GN_PKZBM.js → BillPayApprovalRoutes-Bhwrq5tr.js} +1 -1
  8. package/dist/assets/{BillPayRoutes-7abJ7Y81.js → BillPayRoutes-CQCAwPWX.js} +1 -1
  9. package/dist/assets/{BusinessVerificationPageScreen-8VbyEZWD.js → BusinessVerificationPageScreen-71JxUYXB.js} +1 -1
  10. package/dist/assets/{CardsAiCfoScreen-BcEHiZtA.js → CardsAiCfoScreen-Dze-_SQs.js} +1 -1
  11. package/dist/assets/{ChargeCardRoutes-BR5_qY8y.js → ChargeCardRoutes-CvC_JvPH.js} +1 -1
  12. package/dist/assets/{CompanyPassportScreen-L6OY8AwA.js → CompanyPassportScreen-dRN2jnGn.js} +1 -1
  13. package/dist/assets/{ConnectionAuthScreen-F-iZ536h.js → ConnectionAuthScreen-CrQ3LZFB.js} +1 -1
  14. package/dist/assets/CustomerOnboardingAuthScreen-BUiUC1A4.js +1 -0
  15. package/dist/assets/{CustomerOnboardingRoutes-3OH4ZWPk.js → CustomerOnboardingRoutes-BMrjyYZ8.js} +1 -1
  16. package/dist/assets/{DashboardRoutes-X31R7cQf.js → DashboardRoutes-DYfRGtw5.js} +1 -1
  17. package/dist/assets/{DefaultTenantHome-FpeIWNLr.js → DefaultTenantHome-DmRqFqlc.js} +1 -1
  18. package/dist/assets/{DomesticWireDetailScreen-BZbvzqXc.js → DomesticWireDetailScreen-YfGiQgSo.js} +1 -1
  19. package/dist/assets/{DrawerScreen-CmgVB1Zi.js → DrawerScreen-DH40ycW6.js} +1 -1
  20. package/dist/assets/{EntityDetailRoutes-5IMi-E-b.js → EntityDetailRoutes-BgqO6DqU.js} +1 -1
  21. package/dist/assets/{ExpenseAutomationRoutes-DH5uN2wQ.js → ExpenseAutomationRoutes-Bks-mNnn.js} +1 -1
  22. package/dist/assets/{FeaturePreviewScreen-Cnh2Fe6t.js → FeaturePreviewScreen-B9UACzAC.js} +1 -1
  23. package/dist/assets/{HubSpotOAuthCallbackScreen-C94ZBMtd.js → HubSpotOAuthCallbackScreen-BjEMURaY.js} +1 -1
  24. package/dist/assets/{InboxNotificationsProvider-CJt6vmnU.js → InboxNotificationsProvider-Cd4NxEtR.js} +1 -1
  25. package/dist/assets/{InvoicingRoutes-Q-6aUqgu.js → InvoicingRoutes-UHPes0q9.js} +1 -1
  26. package/dist/assets/{MagicLinkRoutes-CR6ShXCQ.js → MagicLinkRoutes-BQns5k2S.js} +1 -1
  27. package/dist/assets/{MagicLinkSignInScreen-CBjgwG_1.js → MagicLinkSignInScreen-IXnuvHt3.js} +1 -1
  28. package/dist/assets/{MobileAppDrawer-B4_Hh2uX.js → MobileAppDrawer-rCVKr3J3.js} +1 -1
  29. package/dist/assets/NotFoundScreen-C94S-cmy.js +1 -0
  30. package/dist/assets/{NotificationRoutes-CDa5TISi.js → NotificationRoutes-h53g4kBO.js} +1 -1
  31. package/dist/assets/{OAuthConsentScreen-D8WvwiVN.js → OAuthConsentScreen-35XPz7Vp.js} +1 -1
  32. package/dist/assets/{PandLWithForecastRoutes-CiaozOzI.js → PandLWithForecastRoutes-OnVWoGgX.js} +1 -1
  33. package/dist/assets/{PaymentLinkScreen-BN13u2tw.js → PaymentLinkScreen-BADSNyXp.js} +1 -1
  34. package/dist/assets/{PeopleRoutes-B5eZw1Xs.js → PeopleRoutes-CnmV1pW5.js} +1 -1
  35. package/dist/assets/{PerformanceRoutes-B5KqyHoS.js → PerformanceRoutes-MYTxvcMA.js} +1 -1
  36. package/dist/assets/{Preview-gj_-pUjR.js → Preview-DGZHmpgt.js} +1 -1
  37. package/dist/assets/{QBOConnectionScreen-BD6w4pxT.js → QBOConnectionScreen-C1Kn9y8q.js} +1 -1
  38. package/dist/assets/{ReimbursementApprovalRoutes-_wQ1m-SZ.js → ReimbursementApprovalRoutes-CsG7QtOs.js} +1 -1
  39. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CQJ7WhRf.js → ReimbursementApprovalRuleDetailScreen-BzhkgPjS.js} +1 -1
  40. package/dist/assets/{ReimbursementRoutes-mHGAbMEo.js → ReimbursementRoutes-BcjYsUHB.js} +1 -1
  41. package/dist/assets/{ReportsRoutes-DNdr9gVu.js → ReportsRoutes-Bcm2EvxJ.js} +1 -1
  42. package/dist/assets/{RewardsRoutes-CRQaDmuu.js → RewardsRoutes-Do7moyFI.js} +1 -1
  43. package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-Bgrqk-Br.js → ScheduleDetailsPrepaidExpensesScreen-v3zw3e0R.js} +1 -1
  44. package/dist/assets/{ScreenRoutes-Cix6ynkH.js → ScreenRoutes-vTLuTGuW.js} +2 -2
  45. package/dist/assets/{SettingsRoutes-CXzUd0P6.js → SettingsRoutes-CwW3Kcyz.js} +1 -1
  46. package/dist/assets/{SetupPagesScreen-DzLiX5R5.js → SetupPagesScreen-DPnnq4jj.js} +1 -1
  47. package/dist/assets/{SignInScreen-VX0iUVME.js → SignInScreen-ColMnPgQ.js} +1 -1
  48. package/dist/assets/{SignOutScreen-BXVxv4o-.js → SignOutScreen-DILD5ueP.js} +1 -1
  49. package/dist/assets/{TaskListScreen-Dv5TjArL.js → TaskListScreen-aizYXFWj.js} +1 -1
  50. package/dist/assets/{TaskRoutes-aDI7RZCK.js → TaskRoutes-CWWa57kf.js} +1 -1
  51. package/dist/assets/{TransactionDetailRoutes-C0gGgGik.js → TransactionDetailRoutes-DWXM95sG.js} +1 -1
  52. package/dist/assets/{TransactionDetailScreen-BsGN3Yd5.js → TransactionDetailScreen-CNMo1Iyr.js} +2 -2
  53. package/dist/assets/{TransactionListRoutes-_bc9UoMG.js → TransactionListRoutes-aYhnWH8H.js} +1 -1
  54. package/dist/assets/{TreasuryRoutes-C7ABXX2A.js → TreasuryRoutes-DnAsQTrn.js} +1 -1
  55. package/dist/assets/{VendorsRoutes-BlorNbi4.js → VendorsRoutes-QudM99vQ.js} +1 -1
  56. package/dist/assets/{WiseConfirmationScreen-DhPTIeWc.js → WiseConfirmationScreen-CkFHmO99.js} +1 -1
  57. package/dist/assets/{ZeniAccountRoutes-QObrERl4.js → ZeniAccountRoutes-DeSodvmm.js} +1 -1
  58. package/dist/assets/{ZeniAccountStatementScreen-BHlw6cTG.js → ZeniAccountStatementScreen-DKVtRt3N.js} +1 -1
  59. package/dist/assets/{accountMappingHelper-BbISzw1n.js → accountMappingHelper-7kGWRPlV.js} +1 -1
  60. package/dist/assets/{analytics-C4ICDJLl.js → analytics-BfKlFVdJ.js} +4 -4
  61. package/dist/assets/{analyticsHelper-CPHVprda.js → analyticsHelper-Cn2rORl_.js} +1 -1
  62. package/dist/assets/{core-C4Vfz6Ll.js → core-BWRpGVdr.js} +1 -1
  63. package/dist/assets/{decodeURIComponentSafe-CYsmEPcV.js → decodeURIComponentSafe-DN9u1X8y.js} +1 -1
  64. package/dist/assets/{dnd-kAQqqaX2.js → dnd-wLfPcqQ_.js} +1 -1
  65. package/dist/assets/{empty-uRyODf4S.js → empty-BxjviaN4.js} +1 -1
  66. package/dist/assets/{empty-asCy4wrm.js → empty-CKwCpajm.js} +1 -1
  67. package/dist/assets/{emptyVideoElement-79iYt27c.js → emptyVideoElement-BURd-WPn.js} +1 -1
  68. package/dist/assets/epic-Nc2-Ka61.js +2 -0
  69. package/dist/assets/{expenseAutomationHelper-hmRJBbGd.js → expenseAutomationHelper-Dr99xbt1.js} +1 -1
  70. package/dist/assets/{getLocaleForTenant-DJIJUZ-c.js → getLocaleForTenant-BNAJG7gN.js} +1 -1
  71. package/dist/assets/{index-CJ_pjNEa.js → index-9pdMsp-M.js} +7 -7
  72. package/dist/assets/{index-E3novWwq.js → index-BXpurrfG.js} +1 -1
  73. package/dist/assets/{index-B_kv_EmZ.js → index-BtcZVjM1.js} +1 -1
  74. package/dist/assets/{index-UMoTq5JU.js → index-CcNUb4uI.js} +2 -2
  75. package/dist/assets/{index-Doknm_HP.js → index-D6O1UsWW.js} +1 -1
  76. package/dist/assets/{index-BTd7WWV0.js → index-DYK9WSJX.js} +1 -1
  77. package/dist/assets/{index-Bg8f4cim.js → index-DwbDgvVM.js} +1 -1
  78. package/dist/assets/{index-pA4BduR_.js → index-mJCZBkgN.js} +1 -1
  79. package/dist/assets/{lexical-SeD-pdYj.js → lexical-ljfsYSTd.js} +1 -1
  80. package/dist/assets/{liveblocks-DZUXZ-JO.js → liveblocks-V5YQZeeY.js} +1 -1
  81. package/dist/assets/{lottie-txhqSe8x.js → lottie-ByqRhfis.js} +1 -1
  82. package/dist/assets/{mui-C0PYnbt1.js → mui-BmHHlwSU.js} +1 -1
  83. package/dist/assets/{pathToGoBack-DF1y-0ht.js → pathToGoBack-Dr_s0YFt.js} +1 -1
  84. package/dist/assets/{pdf-bOGTjHnz.js → pdf-C42gprG9.js} +3 -3
  85. package/dist/assets/{pdf-lib-BsfRp21l.js → pdf-lib-D4o6Nk27.js} +1 -1
  86. package/dist/assets/{plaid-hQES7k9Y.js → plaid-CNV6JDhi.js} +1 -1
  87. package/dist/assets/{pusher-BoH5mrch.js → pusher-DvjXiGU0.js} +1 -1
  88. package/dist/assets/{react-Boil267a.js → react-CFX1RFZH.js} +1 -1
  89. package/dist/assets/{react-BgJrrMxk.js → react-CFwPpD-1.js} +1 -1
  90. package/dist/assets/{react-ZM05SSz2.js → react-CdlDO5TG.js} +1 -1
  91. package/dist/assets/{react-BQ6jUfzX.js → react-Ct2ZzE_U.js} +1 -1
  92. package/dist/assets/{react-DXSBT-1v.js → react-DJxNpxcE.js} +1 -1
  93. package/dist/assets/{react-qLaRPrw4.js → react-s5yBxYCg.js} +1 -1
  94. package/dist/assets/{recharts-rN5v_P87.js → recharts-BXLxGQ-T.js} +1 -1
  95. package/dist/assets/{reportTimeframe-C5AD1AL2.js → reportTimeframe-tJTkNTvP.js} +1 -1
  96. package/dist/assets/{routePaths-DYebh4Li.js → routePaths--TXDBUUo.js} +1 -1
  97. package/dist/assets/{sentry-DfoGRlTp.js → sentry-bpmZUW7k.js} +1 -1
  98. package/dist/assets/{stripSplatSuffix-Db8ayksN.js → stripSplatSuffix-Bizh1-Tx.js} +1 -1
  99. package/dist/assets/{url-B-JScRaX.js → url-8ONn8gmN.js} +1 -1
  100. package/dist/assets/{url-BtS-4pap.js → url-Cc_9bwX-.js} +1 -1
  101. package/dist/assets/{useActualMatchingMatchDetail-DPtaMcdm.js → useActualMatchingMatchDetail-Mft821vz.js} +1 -1
  102. package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-D2InIpSO.js → useAiCfoDashboardSuggestedQuestionsChips-3ayut61P.js} +1 -1
  103. package/dist/assets/{useAskAiCfoHostNavButtonProps-k11tYjVi.js → useAskAiCfoHostNavButtonProps-E2UGdnp9.js} +1 -1
  104. package/dist/assets/{useChargeCardPusherEvents-Bf7Vv0PE.js → useChargeCardPusherEvents-DVeqwUB9.js} +1 -1
  105. package/dist/assets/{useDeviceId-_3Ay4Sah.js → useDeviceId-3o80RPjJ.js} +1 -1
  106. package/dist/assets/{useEmailConnectResultRefresh-BCLtP2Ad.js → useEmailConnectResultRefresh-F8OBO8EU.js} +1 -1
  107. package/dist/assets/{useEnsureVendorListLoaded-Bud-c91I.js → useEnsureVendorListLoaded-CKZrwkQQ.js} +1 -1
  108. package/dist/assets/{useInitialThreadRequest-BVMcY486.js → useInitialThreadRequest-Df-inltN.js} +1 -1
  109. package/dist/assets/{useTaskManagerAccess-Cp8R2Cu9.js → useTaskManagerAccess-Bq9TDvwr.js} +1 -1
  110. package/dist/assets/{useTaskManagerPusherEvents-p1TIydvw.js → useTaskManagerPusherEvents-Ctn5L7kn.js} +1 -1
  111. package/dist/assets/{utils-CmKqkYr5.js → utils-CXFQdt3d.js} +1 -1
  112. package/dist/assets/{withTransactionSidePanel-btBdqPWA.js → withTransactionSidePanel-DOV8YzFf.js} +1 -1
  113. package/dist/assets/{zeni-epic-state-DmXGRK_Y.js → zeni-epic-state-BlWDBO75.js} +3 -3
  114. package/dist/index.html +1 -1
  115. package/package.json +3 -3
  116. package/dist/assets/AddressRoutes-7FdlQcLM.js +0 -1
  117. package/dist/assets/CustomerOnboardingAuthScreen-Gnqx1b1N.js +0 -1
  118. package/dist/assets/NotFoundScreen-CxVO6BUm.js +0 -1
  119. package/dist/assets/epic-B2pHLhBD.js +0 -2
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-DmXGRK_Y.js","assets/sentry-DfoGRlTp.js","assets/core-C4Vfz6Ll.js","assets/index-UMoTq5JU.js","assets/DefaultTenantHome-FpeIWNLr.js","assets/mui-C0PYnbt1.js","assets/getLocaleForTenant-DJIJUZ-c.js","assets/analytics-C4ICDJLl.js","assets/utils-CmKqkYr5.js","assets/AppDrawer-Dm9C8j__.js","assets/InboxNotificationsProvider-CJt6vmnU.js","assets/useTaskManagerAccess-Cp8R2Cu9.js","assets/expenseAutomationHelper-hmRJBbGd.js","assets/ScreenRoutes-Cix6ynkH.js","assets/analyticsHelper-CPHVprda.js","assets/ConnectionAuthScreen-F-iZ536h.js","assets/AccountMappingScreen-CMj3JkGt.js","assets/MobileAppDrawer-B4_Hh2uX.js","assets/QBOConnectionScreen-BD6w4pxT.js","assets/url-BtS-4pap.js","assets/empty-uRyODf4S.js","assets/index-BTd7WWV0.js","assets/index-E3novWwq.js","assets/decodeURIComponentSafe-CYsmEPcV.js","assets/accountMappingHelper-BbISzw1n.js","assets/SignInScreen-VX0iUVME.js","assets/useDeviceId-_3Ay4Sah.js","assets/MagicLinkSignInScreen-CBjgwG_1.js","assets/NotFoundScreen-CxVO6BUm.js","assets/MagicLinkRoutes-CR6ShXCQ.js","assets/PaymentLinkScreen-BN13u2tw.js","assets/WiseConfirmationScreen-DhPTIeWc.js","assets/HubSpotOAuthCallbackScreen-C94ZBMtd.js","assets/CustomerOnboardingAuthScreen-Gnqx1b1N.js","assets/SignOutScreen-BXVxv4o-.js","assets/OAuthConsentScreen-D8WvwiVN.js"])))=>i.map(i=>d[i]);
2
- import{R as B,b as C5e,a as m,r as nm,g as RCt,p as rae,d as p$e,f as Drn,s as h$e,i as Trn,w as Lrn,j as Brn,S as Prn,k as Mrn,l as Orn,m as Frn,n as Rrn,o as zrn,q as Nrn}from"./sentry-DfoGRlTp.js";import{L as _rn,C as m$e,_ as Qp,a as Vrn,b as Gz,c as Hrn,d as nte,e as qz,u as zCt,T as Urn,f as Wrn,g as Qrn,h as Yrn,i as Grn,k as NCt,l as qrn,m as Krn,j as on}from"./liveblocks-DZUXZ-JO.js";import{f as _Ct,r as $a,P as Rl,R as Zrn,O as Jrn,N as VCt,u as Mp,g as Wg,h as ite,i as HCt,j as Nr,m as J8e,s as QK,k as UCt,l as Xrn,n as ean,o as q1,p as tan,B as nan}from"./core-C4Vfz6Ll.js";import{H as g$e,bh as ian,bi as oan,bj as Kz,bk as ran,bl as aan,bm as Cs,bn as qt,bo as ET,bp as WCt,bq as Q3,br as san,bs as y7,bt as Ps,bu as lan,bv as can,bw as ote,bx as dan,by as _1,bz as Np,bA as MR,bB as M9,bC as hn,bD as QCt,bE as P1,bF as ka,bG as SD,bH as YCt,bI as GCt,bJ as X8e,bK as Px,bL as Vu,bM as Fy,bN as uan,bO as jc,bP as pan,bQ as IT,bR as han,bS as man,bT as YK,bU as gan,bV as fan,bW as GK,bX as xan,bY as yan,bZ as O9,b_ as f$e,b$ as ban,c0 as wan,c1 as Can,c2 as Aan,c3 as van,c4 as San,c5 as kan,c6 as Ry,c7 as rte,c8 as jan,c9 as ate,ca as ste,cb as lte,cc as ewe,cd as Yv,ce as Gv,cf as Zz,cg as kD,ch as jD,ci as qv,cj as cte,ck as Cv,cl as $an,cm as x$e,cn as Ean,co as Ian,cp as Dan,cq as Tan,cr as qCt,cs as Lan,ct as Ban,cu as Aw,cv as y$e,cw as Pan,cx as Man,cy as Oan,cz as DS,cA as TS,cB as KCt,cC as ZCt,cD as twe,cE as Fan,cF as JCt,cG as Ran,cH as qK,cI as XCt,cJ as zan,cK as eAt,cL as Nan,cM as pO,cN as _an,cO as Van,cP as b$e,cQ as Han,cR as nwe,cS as iwe,cT as Uan,cU as Wan,cV as Qan,cW as Yan,cX as V_,cY as $D,cZ as H_,c_ as Gan,c$ as qan,d0 as tAt,d1 as Kan,d2 as Zan,d3 as Jan,d4 as Xan,d5 as esn,d6 as nAt,d7 as w$e,d8 as tsn,d9 as owe,da as nsn,db as isn,dc as osn,dd as iAt,de as nu,df as _l,dg as dte,dh as rsn,di as asn,dj as j1,dk as oAt,dl as ssn,dm as OR,dn as Av,dp as cs,dq as C$e,dr as lsn,ds as csn,dt as dsn,du as rAt,dv as rwe,dw as U_,dx as aAt,dy as usn,dz as psn,dA as hsn,dB as msn,dC as gsn,dD as xg,dE as fsn,dF as xsn,dG as ysn,dH as bsn,dI as W_,dJ as Kv,dK as ute,dL as wsn,dM as Csn,dN as LS,dO as M1,dP as sAt,dQ as lAt,dR as Asn,dS as cAt,dT as vsn,dU as Ssn,dV as ksn,dW as jsn,dX as DT,dY as awe,dZ as swe,d_ as $sn,d$ as dAt,e0 as uAt,e1 as pAt,e2 as hAt,e3 as mAt,e4 as gAt,e5 as Esn,_ as jd,e6 as TT,e7 as Isn,e8 as A$e,e9 as pte,ea as Dsn,eb as Tsn,ec as fAt,ed as Lsn,ee as hF,ef as um,eg as zy,eh as xAt,ei as yAt,ej as Bsn,ek as bAt,el as A5e,em as Psn,en as hq,eo as Msn,ep as Osn,eq as Fsn,er as Rsn,es as zsn,et as wAt,eu as CAt,ev as Nsn,ew as _sn,ex as AAt,ey as mF,ez as gF,eA as vAt,eB as Vsn,eC as Hsn,eD as lwe,eE as Usn,eF as Wsn,eG as Qsn,eH as cwe,eI as SAt,eJ as kAt,eK as dwe,eL as LT,eM as hte,eN as uwe,eO as pwe,eP as hwe,eQ as mwe,eR as Ysn,eS as Gsn,eT as jAt,eU as v$e,eV as qsn,eW as Ksn,eX as O1,eY as Zsn,eZ as mte,e_ as $At,e$ as EAt,f0 as Jsn,f1 as gwe,f2 as fwe,f3 as Xsn,f4 as eln,f5 as tln,f6 as nln,f7 as iln,f8 as oln,f9 as Lg,fa as S$e,fb as IAt,fc as rln,fd as aln,fe as sln,ff as DAt,fg as TAt,fh as LAt,fi as BAt,fj as PAt,fk as MAt,fl as lln,fm as ED,fn as cln,fo as dln,fp as uln,fq as pln,fr as OAt,fs as FAt,ft as k$e,fu as j$e,fv as hln,fw as mln,fx as $$e,fy as E$e,fz as gln,fA as fln,fB as v5e,fC as xln,v as yln,fD as gte,fE as _p,fF as RAt,fG as zAt,fH as bln,fI as wln,fJ as I$e,fK as Cln,fL as Aln,fM as vln,fN as Sln,fO as kln,fP as jln,fQ as $ln,fR as Eln,fS as Iln,fT as Dln,fU as Tln,fV as Lln,fW as Bln,fX as Pln,fY as Mln,fZ as Oln,f_ as Fln,f$ as Rln,g0 as zln,g1 as D$e,g2 as Nln,g3 as _ln,g4 as Vln,g5 as Hln,g6 as Uln,g7 as NAt,g8 as fte,g9 as xwe,ga as _At,gb as Wln,gc as Qln,gd as Yln,ge as VAt,gf as T$e,gg as HAt,gh as UAt,gi as Gln,gj as WAt,gk as QAt,gl as qln,gm as Kln,gn as S5e,go as Zln,gp as fF,gq as Jln,gr as Xln,gs as ecn,gt as tcn,gu as ncn,gv as icn,gw as ocn,gx as rcn,gy as acn,gz as scn,gA as lcn,gB as ccn,gC as YAt,gD as dcn,gE as ucn,gF as pcn,gG as L$e,gH as hcn,gI as mcn,gJ as gcn,gK as fcn,gL as xcn,gM as ycn,gN as bcn,gO as GAt,gP as qAt,gQ as wcn,gR as KAt,gS as Ccn,gT as Acn,gU as k5e,gV as vcn,gW as Scn,gX as kcn,gY as jcn,gZ as $cn,g_ as Ecn,g$ as B$e,h0 as Icn,h1 as Dcn,h2 as Tcn}from"./zeni-epic-state-DmXGRK_Y.js";import{j as Mo,c as Ie,k as mi,a as P$e,b as ZAt,C as JAt,T as Lcn,M as Bcn,n as a,u as Pe,d as li,e as XAt,G as xte,A as M$e,R as Pcn,D as Zc,F as Mcn,f as KK,g as j5e,P as Y3,h as Ocn,S as yte,i as Fcn,l as Rcn,m as FR,o as zcn,s as BS,p as Ncn}from"./mui-C0PYnbt1.js";import{r as _cn,m as cg}from"./analytics-C4ICDJLl.js";import{u as U1}from"./plaid-hQES7k9Y.js";import{D as ywe,H as bte,g as Vcn,O as Hcn,S as Ucn,T as Wcn,u as bwe,a as wwe,b as Qcn}from"./dnd-kAQqqaX2.js";import{l as Cwe}from"./stripe-cKAAJElX.js";import{L as FI}from"./lottie-txhqSe8x.js";import{r as Jc}from"./lexical-SeD-pdYj.js";import{D as $5e,P as E5e,_ as evt,a as tvt}from"./pdf-bOGTjHnz.js";import{R as Zv,G as F9,H as ml,X as Ra,Y as ja,I as $l,J as R9,K as zg,L as vv,M as Wc,N as Ng,O as nvt,P as Ycn,Q as Gcn,S as wte,U as qcn,V as Awe,W as Kcn,Z as Zcn,_ as Jcn,d as Xcn}from"./recharts-rN5v_P87.js";import{r as edn,n as O$e}from"./utils-CmKqkYr5.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]="daca19a6-5116-41ae-a6c0-a07518ad3efa",e._sentryDebugIdIdentifier="sentry-dbid-daca19a6-5116-41ae-a6c0-a07518ad3efa")}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 F$e,Q_={},tdn=(function(){if(F$e)return Q_;F$e=1;var e=_Ct();return Q_.createRoot=e.createRoot,Q_.hydrateRoot=e.hydrateRoot,Q_})(),Uh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof C5e<"u"?C5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R$e,z$e,N$e={exports:{}},NL={};function ivt(){return z$e||(z$e=1,N$e.exports=(function(){if(R$e)return NL;R$e=1;var e=B,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 NL.Fragment=i,NL.jsx=c,NL.jsxs=c,NL})()),N$e.exports}var t=ivt();const ndn=m.createContext(null),aae={didCatch:!1,error:null};let idn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=aae}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(aae)}}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(aae))}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(ndn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var _$e,V$e,H$e,sae,U$e,W$e,Q$e,Y$e,G$e,lae={exports:{}};function odn(){return _$e||(_$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(lae.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(Y){s=!!Y},d=function(){return s},u=function(Y){r=Y},p=function(){return r};function h(Y){return document.createElement(Y)}function g(Y,X){var pe,xe,Ae=Y.length;for(pe=0;pe<Ae;pe+=1)for(var Ee in xe=Y[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(Y){function X(){}return X.prototype=Y,X}var x=(function(){function Y(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return Y.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new Y}})(),y=(function(){function Y(pe,xe){var Ae,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ae);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):Y(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:Y})();function b(Y){return Array.apply(null,{length:Y})}var w=!0,C=null,A="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(Y,X,pe,xe){this.type=Y,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(Y,X){this.type=Y,this.direction=X<0?-1:1}function _(Y,X,pe,xe){this.type=Y,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(Y,X,pe){this.type=Y,this.firstFrame=X,this.totalFrames=pe}function T(Y,X){this.type=Y,this.target=X}function M(Y,X){this.type="renderFrameError",this.nativeError=Y,this.currentTime=X}function O(Y){this.type="configError",this.nativeError=Y}var H=(function(){var Y=0;return function(){return A+"__lottie_element_"+(Y+=1)}})();function V(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye,Rt,Jt;switch(Ye=pe*(1-X),Rt=pe*(1-(Qe=6*Y-(Re=Math.floor(6*Y)))*X),Jt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ae=Jt,Ee=Ye;break;case 1:xe=Rt,Ae=pe,Ee=Ye;break;case 2:xe=Ye,Ae=pe,Ee=Jt;break;case 3:xe=Ye,Ae=Rt,Ee=pe;break;case 4:xe=Jt,Ae=Ye,Ee=pe;break;case 5:xe=pe,Ae=Ye,Ee=Rt}return[xe,Ae,Ee]}function W(Y,X,pe){var xe,Ae=Math.max(Y,X,pe),Ee=Math.min(Y,X,pe),Re=Ae-Ee,Qe=Ae===0?0:Re/Ae,Ye=Ae/255;switch(Ae){case Ee:xe=0;break;case Y:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-Y+2*Re,xe/=6*Re;break;case pe:xe=Y-X+4*Re,xe/=6*Re}return[xe,Qe,Ye]}function U(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),V(pe[0],pe[1],pe[2])}function G(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),V(pe[0],pe[1],pe[2])}function q(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),V(pe[0],pe[1],pe[2])}(function(){var Y,X,pe=[];for(Y=0;Y<256;Y+=1)X=Y.toString(16),pe[Y]=X.length===1?"0"+X:X})();var K=function(Y){w=!!Y},J=function(){return w},ee=function(Y){C=Y},te=function(){return C},ne=function(Y){E=Y},ae=function(){return E},oe=function(Y){A=Y};function le(Y){return document.createElementNS(i,Y)}function ge(Y){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},ge(Y)}var ue=(function(){var Y,X,pe=1,xe=[],Ae={onmessage:function(){},postMessage:function(pt){Y({data:pt})}},Ee={postMessage:function(pt){Ae.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var At=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(At);return new Worker(Tt)}return Y=pt,Ae}function Qe(){X||(X=Re((function(pt){function At(){function Kt(Vt,xn){var xt,dt,ze,ht,wt,xi,Zo=Vt.length;for(dt=0;dt<Zo;dt+=1)if("ks"in(xt=Vt[dt])&&!xt.completed){if(xt.completed=!0,xt.hasMask){var Po=xt.masksProperties;for(ht=Po.length,ze=0;ze<ht;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(xi=Po[ze].pt.k.length,wt=0;wt<xi;wt+=1)Po[ze].pt.k[wt].s&&qe(Po[ze].pt.k[wt].s[0]),Po[ze].pt.k[wt].e&&qe(Po[ze].pt.k[wt].e[0])}xt.ty===0?(xt.layers=We(xt.refId,xn),Kt(xt.layers,xn)):xt.ty===4?Ne(xt.shapes):xt.ty===5&&Ko(xt)}}function en(Vt,xn){if(Vt){var xt=0,dt=Vt.length;for(xt=0;xt<dt;xt+=1)Vt[xt].t===1&&(Vt[xt].data.layers=We(Vt[xt].data.refId,xn),Kt(Vt[xt].data.layers,xn))}}function Xe(Vt,xn){for(var xt=0,dt=xn.length;xt<dt;){if(xn[xt].id===Vt)return xn[xt];xt+=1}return null}function We(Vt,xn){var xt=Xe(Vt,xn);return xt?xt.layers.__used?JSON.parse(JSON.stringify(xt.layers)):(xt.layers.__used=!0,xt.layers):null}function Ne(Vt){var xn,xt,dt;for(xn=Vt.length-1;xn>=0;xn-=1)if(Vt[xn].ty==="sh")if(Vt[xn].ks.k.i)qe(Vt[xn].ks.k);else for(dt=Vt[xn].ks.k.length,xt=0;xt<dt;xt+=1)Vt[xn].ks.k[xt].s&&qe(Vt[xn].ks.k[xt].s[0]),Vt[xn].ks.k[xt].e&&qe(Vt[xn].ks.k[xt].e[0]);else Vt[xn].ty==="gr"&&Ne(Vt[xn].it)}function qe(Vt){var xn,xt=Vt.i.length;for(xn=0;xn<xt;xn+=1)Vt.i[xn][0]+=Vt.v[xn][0],Vt.i[xn][1]+=Vt.v[xn][1],Vt.o[xn][0]+=Vt.v[xn][0],Vt.o[xn][1]+=Vt.v[xn][1]}function ft(Vt,xn){var xt=xn?xn.split("."):[100,100,100];return Vt[0]>xt[0]||!(xt[0]>Vt[0])&&(Vt[1]>xt[1]||!(xt[1]>Vt[1])&&(Vt[2]>xt[2]||!(xt[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function xn(dt){var ze=dt.t.d;dt.t.d={k:[{s:ze,t:0}]}}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(xn){if(xn.chars&&!ft(Vt,xn.v)){var xt,dt=xn.chars.length;for(xt=0;xt<dt;xt+=1){var ze=xn.chars[xt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[xt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),zt=(function(){var Vt=[5,7,15];function xn(dt){var ze=dt.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function xn(dt){var ze,ht,wt,xi=dt.length;for(ze=0;ze<xi;ze+=1)if(dt[ze].ty==="gr")xn(dt[ze].it);else if(dt[ze].ty==="fl"||dt[ze].ty==="st")if(dt[ze].c.k&&dt[ze].c.k[0].i)for(wt=dt[ze].c.k.length,ht=0;ht<wt;ht+=1)dt[ze].c.k[ht].s&&(dt[ze].c.k[ht].s[0]/=255,dt[ze].c.k[ht].s[1]/=255,dt[ze].c.k[ht].s[2]/=255,dt[ze].c.k[ht].s[3]/=255),dt[ze].c.k[ht].e&&(dt[ze].c.k[ht].e[0]/=255,dt[ze].c.k[ht].e[1]/=255,dt[ze].c.k[ht].e[2]/=255,dt[ze].c.k[ht].e[3]/=255);else dt[ze].c.k[0]/=255,dt[ze].c.k[1]/=255,dt[ze].c.k[2]/=255,dt[ze].c.k[3]/=255}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===4&&xn(dt[ze].shapes)}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function xn(dt){var ze,ht,wt;for(ze=dt.length-1;ze>=0;ze-=1)if(dt[ze].ty==="sh")if(dt[ze].ks.k.i)dt[ze].ks.k.c=dt[ze].closed;else for(wt=dt[ze].ks.k.length,ht=0;ht<wt;ht+=1)dt[ze].ks.k[ht].s&&(dt[ze].ks.k[ht].s[0].c=dt[ze].closed),dt[ze].ks.k[ht].e&&(dt[ze].ks.k[ht].e[0].c=dt[ze].closed);else dt[ze].ty==="gr"&&xn(dt[ze].it)}function xt(dt){var ze,ht,wt,xi,Zo,Po,Ca=dt.length;for(ht=0;ht<Ca;ht+=1){if((ze=dt[ht]).hasMask){var Jo=ze.masksProperties;for(xi=Jo.length,wt=0;wt<xi;wt+=1)if(Jo[wt].pt.k.i)Jo[wt].pt.k.c=Jo[wt].cl;else for(Po=Jo[wt].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[wt].pt.k[Zo].s&&(Jo[wt].pt.k[Zo].s[0].c=Jo[wt].cl),Jo[wt].pt.k[Zo].e&&(Jo[wt].pt.k[Zo].e[0].c=Jo[wt].cl)}ze.ty===4&&xn(ze.shapes)}}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})();function ci(Vt){Vt.__complete||(po(Vt),rn(Vt),sn(Vt),zt(Vt),Eo(Vt),Kt(Vt.layers,Vt.assets),en(Vt.chars,Vt.assets),Vt.__complete=!0)}function Ko(Vt){Vt.t.a.length===0&&Vt.t.p}var lo={};return lo.completeData=ci,lo.checkColors=po,lo.checkChars=sn,lo.checkPathProperties=zt,lo.checkShapes=Eo,lo.completeLayers=Kt,lo}if(Ee.dataManager||(Ee.dataManager=At()),Ee.assetLoader||(Ee.assetLoader=(function(){function Kt(Xe){var We=Xe.getResponseHeader("content-type");return We&&Xe.responseType==="json"&&We.indexOf("json")!==-1||Xe.response&&ge(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function en(Xe,We,Ne,qe){var ft,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)ft=Kt(rn),Ne(ft);else try{ft=Kt(rn),Ne(ft)}catch(sn){qe&&qe(sn)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),We+"/"+Xe,!0)}rn.send()}return{load:en}})()),pt.data.type==="loadAnimation")Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.dataManager.completeData(Kt),Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}));else if(pt.data.type==="complete"){var Tt=pt.data.animation;Ee.dataManager.completeData(Tt),Ee.postMessage({id:pt.data.id,payload:Tt,status:"success"})}else pt.data.type==="loadData"&&Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}))})),X.onmessage=function(pt){var At=pt.data,Tt=At.id,Kt=xe[Tt];xe[Tt]=null,At.status==="success"?Kt.onComplete(At.payload):Kt.onError&&Kt.onError()})}function Ye(pt,At){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:At},Tt}function Rt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:Rt,loadData:Jt,completeAnimation:et}})(),re=(function(){var Y=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var We=Xe.getContext("2d");return We.fillStyle="rgba(0,0,0,0)",We.fillRect(0,0,1,1),Xe})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Xe,We,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(We){var ft=Xe.p;ft.indexOf("images/")!==-1&&(ft=ft.split("/")[1]),qe=We+ft}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ae(Xe){var We=0,Ne=setInterval((function(){(Xe.getBBox().width||We>500)&&(this._imageLoaded(),clearInterval(Ne)),We+=1}).bind(this),50)}function Ee(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",We),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Xe};return qe}function Re(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.src=We;var qe={img:Ne,assetData:Xe};return qe}function Qe(Xe){var We={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){We.img=qe,this._footageLoaded()}).bind(this),(function(){We.img={},this._footageLoaded()}).bind(this)),We}function Ye(Xe,We){this.imagesLoadedCb=We;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Rt(Xe){this.path=Xe||""}function Jt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var We=0,Ne=this.images.length;We<Ne;){if(this.images[We].assetData===Xe)return this.images[We].img;We+=1}return null}function pt(){this.imagesLoadedCb=null,this.images.length=0}function At(){return this.totalImages===this.loadedAssets}function Tt(){return this.totalFootages===this.loadedFootagesCount}function Kt(Xe,We){Xe==="svg"?(this._elementHelper=We,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function en(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return en.prototype={loadAssets:Ye,setAssetsPath:Jt,setPath:Rt,loadedImages:At,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(Y,X){if(this._cbs[Y])for(var pe=this._cbs[Y],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(Y,X){return this._cbs[Y]||(this._cbs[Y]=[]),this._cbs[Y].push(X),(function(){this.removeEventListener(Y,X)}).bind(this)},removeEventListener:function(Y,X){if(X){if(this._cbs[Y]){for(var pe=0,xe=this._cbs[Y].length;pe<xe;)this._cbs[Y][pe]===X&&(this._cbs[Y].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[Y].length||(this._cbs[Y]=null)}}else this._cbs[Y]=null}};var ce=(function(){function Y(X){for(var pe,xe=X.split(`\r
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-BlWDBO75.js","assets/sentry-bpmZUW7k.js","assets/core-BWRpGVdr.js","assets/index-CcNUb4uI.js","assets/DefaultTenantHome-DmRqFqlc.js","assets/mui-BmHHlwSU.js","assets/getLocaleForTenant-BNAJG7gN.js","assets/analytics-BfKlFVdJ.js","assets/utils-CXFQdt3d.js","assets/AppDrawer-Bxmzf_KR.js","assets/InboxNotificationsProvider-Cd4NxEtR.js","assets/useTaskManagerAccess-Bq9TDvwr.js","assets/expenseAutomationHelper-Dr99xbt1.js","assets/ScreenRoutes-vTLuTGuW.js","assets/analyticsHelper-Cn2rORl_.js","assets/ConnectionAuthScreen-CrQ3LZFB.js","assets/AccountMappingScreen-CtnQtVOI.js","assets/MobileAppDrawer-rCVKr3J3.js","assets/QBOConnectionScreen-C1Kn9y8q.js","assets/url-Cc_9bwX-.js","assets/empty-BxjviaN4.js","assets/index-DYK9WSJX.js","assets/index-BXpurrfG.js","assets/decodeURIComponentSafe-DN9u1X8y.js","assets/accountMappingHelper-7kGWRPlV.js","assets/SignInScreen-ColMnPgQ.js","assets/useDeviceId-3o80RPjJ.js","assets/MagicLinkSignInScreen-IXnuvHt3.js","assets/NotFoundScreen-C94S-cmy.js","assets/MagicLinkRoutes-BQns5k2S.js","assets/PaymentLinkScreen-BADSNyXp.js","assets/WiseConfirmationScreen-CkFHmO99.js","assets/HubSpotOAuthCallbackScreen-BjEMURaY.js","assets/CustomerOnboardingAuthScreen-BUiUC1A4.js","assets/SignOutScreen-DILD5ueP.js","assets/OAuthConsentScreen-35XPz7Vp.js"])))=>i.map(i=>d[i]);
2
+ import{R as B,b as C5e,a as m,r as nm,g as RCt,p as rae,d as p$e,f as Drn,s as h$e,i as Trn,w as Lrn,j as Brn,S as Prn,k as Mrn,l as Orn,m as Frn,n as Rrn,o as zrn,q as Nrn}from"./sentry-bpmZUW7k.js";import{L as _rn,C as m$e,_ as Qp,a as Vrn,b as Gz,c as Hrn,d as nte,e as qz,u as zCt,T as Urn,f as Wrn,g as Qrn,h as Yrn,i as Grn,k as NCt,l as qrn,m as Krn,j as on}from"./liveblocks-V5YQZeeY.js";import{f as _Ct,r as $a,P as Rl,R as Zrn,O as Jrn,N as VCt,u as Mp,g as Wg,h as ite,i as HCt,j as Nr,m as J8e,s as QK,k as UCt,l as Xrn,n as ean,o as q1,p as tan,B as nan}from"./core-BWRpGVdr.js";import{H as g$e,bh as ian,bi as oan,bj as Kz,bk as ran,bl as aan,bm as Cs,bn as qt,bo as ET,bp as WCt,bq as Q3,br as san,bs as y7,bt as Ps,bu as lan,bv as can,bw as ote,bx as dan,by as _1,bz as Np,bA as MR,bB as M9,bC as hn,bD as QCt,bE as P1,bF as ka,bG as SD,bH as YCt,bI as GCt,bJ as X8e,bK as Px,bL as Vu,bM as Fy,bN as uan,bO as jc,bP as pan,bQ as IT,bR as han,bS as man,bT as YK,bU as gan,bV as fan,bW as GK,bX as xan,bY as yan,bZ as O9,b_ as f$e,b$ as ban,c0 as wan,c1 as Can,c2 as Aan,c3 as van,c4 as San,c5 as kan,c6 as Ry,c7 as rte,c8 as jan,c9 as ate,ca as ste,cb as lte,cc as ewe,cd as Yv,ce as Gv,cf as Zz,cg as kD,ch as jD,ci as qv,cj as cte,ck as Cv,cl as $an,cm as x$e,cn as Ean,co as Ian,cp as Dan,cq as Tan,cr as qCt,cs as Lan,ct as Ban,cu as Aw,cv as y$e,cw as Pan,cx as Man,cy as Oan,cz as DS,cA as TS,cB as KCt,cC as ZCt,cD as twe,cE as Fan,cF as JCt,cG as Ran,cH as qK,cI as XCt,cJ as zan,cK as eAt,cL as Nan,cM as pO,cN as _an,cO as Van,cP as b$e,cQ as Han,cR as nwe,cS as iwe,cT as Uan,cU as Wan,cV as Qan,cW as Yan,cX as V_,cY as $D,cZ as H_,c_ as Gan,c$ as qan,d0 as tAt,d1 as Kan,d2 as Zan,d3 as Jan,d4 as Xan,d5 as esn,d6 as nAt,d7 as w$e,d8 as tsn,d9 as owe,da as nsn,db as isn,dc as osn,dd as iAt,de as nu,df as _l,dg as dte,dh as rsn,di as asn,dj as j1,dk as oAt,dl as ssn,dm as OR,dn as Av,dp as cs,dq as C$e,dr as lsn,ds as csn,dt as dsn,du as rAt,dv as rwe,dw as U_,dx as aAt,dy as usn,dz as psn,dA as hsn,dB as msn,dC as gsn,dD as xg,dE as fsn,dF as xsn,dG as ysn,dH as bsn,dI as W_,dJ as Kv,dK as ute,dL as wsn,dM as Csn,dN as LS,dO as M1,dP as sAt,dQ as lAt,dR as Asn,dS as cAt,dT as vsn,dU as Ssn,dV as ksn,dW as jsn,dX as DT,dY as awe,dZ as swe,d_ as $sn,d$ as dAt,e0 as uAt,e1 as pAt,e2 as hAt,e3 as mAt,e4 as gAt,e5 as Esn,_ as jd,e6 as TT,e7 as Isn,e8 as A$e,e9 as pte,ea as Dsn,eb as Tsn,ec as fAt,ed as Lsn,ee as hF,ef as um,eg as zy,eh as xAt,ei as yAt,ej as Bsn,ek as bAt,el as A5e,em as Psn,en as hq,eo as Msn,ep as Osn,eq as Fsn,er as Rsn,es as zsn,et as wAt,eu as CAt,ev as Nsn,ew as _sn,ex as AAt,ey as mF,ez as gF,eA as vAt,eB as Vsn,eC as Hsn,eD as lwe,eE as Usn,eF as Wsn,eG as Qsn,eH as cwe,eI as SAt,eJ as kAt,eK as dwe,eL as LT,eM as hte,eN as uwe,eO as pwe,eP as hwe,eQ as mwe,eR as Ysn,eS as Gsn,eT as jAt,eU as v$e,eV as qsn,eW as Ksn,eX as O1,eY as Zsn,eZ as mte,e_ as $At,e$ as EAt,f0 as Jsn,f1 as gwe,f2 as fwe,f3 as Xsn,f4 as eln,f5 as tln,f6 as nln,f7 as iln,f8 as oln,f9 as Lg,fa as S$e,fb as IAt,fc as rln,fd as aln,fe as sln,ff as DAt,fg as TAt,fh as LAt,fi as BAt,fj as PAt,fk as MAt,fl as lln,fm as ED,fn as cln,fo as dln,fp as uln,fq as pln,fr as OAt,fs as FAt,ft as k$e,fu as j$e,fv as hln,fw as mln,fx as $$e,fy as E$e,fz as gln,fA as fln,fB as v5e,fC as xln,v as yln,fD as gte,fE as _p,fF as RAt,fG as zAt,fH as bln,fI as wln,fJ as I$e,fK as Cln,fL as Aln,fM as vln,fN as Sln,fO as kln,fP as jln,fQ as $ln,fR as Eln,fS as Iln,fT as Dln,fU as Tln,fV as Lln,fW as Bln,fX as Pln,fY as Mln,fZ as Oln,f_ as Fln,f$ as Rln,g0 as zln,g1 as D$e,g2 as Nln,g3 as _ln,g4 as Vln,g5 as Hln,g6 as Uln,g7 as NAt,g8 as fte,g9 as xwe,ga as _At,gb as Wln,gc as Qln,gd as Yln,ge as VAt,gf as T$e,gg as HAt,gh as UAt,gi as Gln,gj as WAt,gk as QAt,gl as qln,gm as Kln,gn as S5e,go as Zln,gp as fF,gq as Jln,gr as Xln,gs as ecn,gt as tcn,gu as ncn,gv as icn,gw as ocn,gx as rcn,gy as acn,gz as scn,gA as lcn,gB as ccn,gC as YAt,gD as dcn,gE as ucn,gF as pcn,gG as L$e,gH as hcn,gI as mcn,gJ as gcn,gK as fcn,gL as xcn,gM as ycn,gN as bcn,gO as GAt,gP as qAt,gQ as wcn,gR as KAt,gS as Ccn,gT as Acn,gU as k5e,gV as vcn,gW as Scn,gX as kcn,gY as jcn,gZ as $cn,g_ as Ecn,g$ as B$e,h0 as Icn,h1 as Dcn,h2 as Tcn}from"./zeni-epic-state-BlWDBO75.js";import{j as Mo,c as Ie,k as mi,a as P$e,b as ZAt,C as JAt,T as Lcn,M as Bcn,n as a,u as Pe,d as li,e as XAt,G as xte,A as M$e,R as Pcn,D as Zc,F as Mcn,f as KK,g as j5e,P as Y3,h as Ocn,S as yte,i as Fcn,l as Rcn,m as FR,o as zcn,s as BS,p as Ncn}from"./mui-BmHHlwSU.js";import{r as _cn,m as cg}from"./analytics-BfKlFVdJ.js";import{u as U1}from"./plaid-CNV6JDhi.js";import{D as ywe,H as bte,g as Vcn,O as Hcn,S as Ucn,T as Wcn,u as bwe,a as wwe,b as Qcn}from"./dnd-wLfPcqQ_.js";import{l as Cwe}from"./stripe-cKAAJElX.js";import{L as FI}from"./lottie-ByqRhfis.js";import{r as Jc}from"./lexical-ljfsYSTd.js";import{D as $5e,P as E5e,_ as evt,a as tvt}from"./pdf-C42gprG9.js";import{R as Zv,G as F9,H as ml,X as Ra,Y as ja,I as $l,J as R9,K as zg,L as vv,M as Wc,N as Ng,O as nvt,P as Ycn,Q as Gcn,S as wte,U as qcn,V as Awe,W as Kcn,Z as Zcn,_ as Jcn,d as Xcn}from"./recharts-BXLxGQ-T.js";import{r as edn,n as O$e}from"./utils-CXFQdt3d.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]="ef24d227-6856-4b0a-9956-b81654c3234b",e._sentryDebugIdIdentifier="sentry-dbid-ef24d227-6856-4b0a-9956-b81654c3234b")}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 F$e,Q_={},tdn=(function(){if(F$e)return Q_;F$e=1;var e=_Ct();return Q_.createRoot=e.createRoot,Q_.hydrateRoot=e.hydrateRoot,Q_})(),Uh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof C5e<"u"?C5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var R$e,z$e,N$e={exports:{}},NL={};function ivt(){return z$e||(z$e=1,N$e.exports=(function(){if(R$e)return NL;R$e=1;var e=B,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 NL.Fragment=i,NL.jsx=c,NL.jsxs=c,NL})()),N$e.exports}var t=ivt();const ndn=m.createContext(null),aae={didCatch:!1,error:null};let idn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=aae}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(aae)}}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(aae))}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(ndn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var _$e,V$e,H$e,sae,U$e,W$e,Q$e,Y$e,G$e,lae={exports:{}};function odn(){return _$e||(_$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(lae.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(Y){s=!!Y},d=function(){return s},u=function(Y){r=Y},p=function(){return r};function h(Y){return document.createElement(Y)}function g(Y,X){var pe,xe,Ae=Y.length;for(pe=0;pe<Ae;pe+=1)for(var Ee in xe=Y[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(Y){function X(){}return X.prototype=Y,X}var x=(function(){function Y(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return Y.prototype={addAudio:function(X){this.audios.push(X)},pause:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].pause()},resume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].resume()},setRate:function(X){var pe,xe=this.audios.length;for(pe=0;pe<xe;pe+=1)this.audios[pe].setRate(X)},createAudio:function(X){return this.audioFactory?this.audioFactory(X):window.Howl?new window.Howl({src:[X]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(X){this.audioFactory=X},setVolume:function(X){this._volume=X,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var X,pe=this.audios.length;for(X=0;X<pe;X+=1)this.audios[X].volume(this._volume*(this._isMuted?0:1))}},function(){return new Y}})(),y=(function(){function Y(pe,xe){var Ae,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ae);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):Y(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:Y})();function b(Y){return Array.apply(null,{length:Y})}var w=!0,C=null,A="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(Y,X,pe,xe){this.type=Y,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(Y,X){this.type=Y,this.direction=X<0?-1:1}function _(Y,X,pe,xe){this.type=Y,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(Y,X,pe){this.type=Y,this.firstFrame=X,this.totalFrames=pe}function T(Y,X){this.type=Y,this.target=X}function M(Y,X){this.type="renderFrameError",this.nativeError=Y,this.currentTime=X}function O(Y){this.type="configError",this.nativeError=Y}var H=(function(){var Y=0;return function(){return A+"__lottie_element_"+(Y+=1)}})();function V(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye,Rt,Jt;switch(Ye=pe*(1-X),Rt=pe*(1-(Qe=6*Y-(Re=Math.floor(6*Y)))*X),Jt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ae=Jt,Ee=Ye;break;case 1:xe=Rt,Ae=pe,Ee=Ye;break;case 2:xe=Ye,Ae=pe,Ee=Jt;break;case 3:xe=Ye,Ae=Rt,Ee=pe;break;case 4:xe=Jt,Ae=Ye,Ee=pe;break;case 5:xe=pe,Ae=Ye,Ee=Rt}return[xe,Ae,Ee]}function W(Y,X,pe){var xe,Ae=Math.max(Y,X,pe),Ee=Math.min(Y,X,pe),Re=Ae-Ee,Qe=Ae===0?0:Re/Ae,Ye=Ae/255;switch(Ae){case Ee:xe=0;break;case Y:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-Y+2*Re,xe/=6*Re;break;case pe:xe=Y-X+4*Re,xe/=6*Re}return[xe,Qe,Ye]}function U(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[2]);return pe[1]+=X,pe[1]>1?pe[1]=1:pe[1]<=0&&(pe[1]=0),V(pe[0],pe[1],pe[2])}function G(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[2]);return pe[2]+=X,pe[2]>1?pe[2]=1:pe[2]<0&&(pe[2]=0),V(pe[0],pe[1],pe[2])}function q(Y,X){var pe=W(255*Y[0],255*Y[1],255*Y[2]);return pe[0]+=X/360,pe[0]>1?pe[0]-=1:pe[0]<0&&(pe[0]+=1),V(pe[0],pe[1],pe[2])}(function(){var Y,X,pe=[];for(Y=0;Y<256;Y+=1)X=Y.toString(16),pe[Y]=X.length===1?"0"+X:X})();var K=function(Y){w=!!Y},J=function(){return w},ee=function(Y){C=Y},te=function(){return C},ne=function(Y){E=Y},ae=function(){return E},oe=function(Y){A=Y};function le(Y){return document.createElementNS(i,Y)}function ge(Y){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},ge(Y)}var ue=(function(){var Y,X,pe=1,xe=[],Ae={onmessage:function(){},postMessage:function(pt){Y({data:pt})}},Ee={postMessage:function(pt){Ae.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var At=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(At);return new Worker(Tt)}return Y=pt,Ae}function Qe(){X||(X=Re((function(pt){function At(){function Kt(Vt,xn){var xt,dt,ze,ht,wt,xi,Zo=Vt.length;for(dt=0;dt<Zo;dt+=1)if("ks"in(xt=Vt[dt])&&!xt.completed){if(xt.completed=!0,xt.hasMask){var Po=xt.masksProperties;for(ht=Po.length,ze=0;ze<ht;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(xi=Po[ze].pt.k.length,wt=0;wt<xi;wt+=1)Po[ze].pt.k[wt].s&&qe(Po[ze].pt.k[wt].s[0]),Po[ze].pt.k[wt].e&&qe(Po[ze].pt.k[wt].e[0])}xt.ty===0?(xt.layers=We(xt.refId,xn),Kt(xt.layers,xn)):xt.ty===4?Ne(xt.shapes):xt.ty===5&&Ko(xt)}}function en(Vt,xn){if(Vt){var xt=0,dt=Vt.length;for(xt=0;xt<dt;xt+=1)Vt[xt].t===1&&(Vt[xt].data.layers=We(Vt[xt].data.refId,xn),Kt(Vt[xt].data.layers,xn))}}function Xe(Vt,xn){for(var xt=0,dt=xn.length;xt<dt;){if(xn[xt].id===Vt)return xn[xt];xt+=1}return null}function We(Vt,xn){var xt=Xe(Vt,xn);return xt?xt.layers.__used?JSON.parse(JSON.stringify(xt.layers)):(xt.layers.__used=!0,xt.layers):null}function Ne(Vt){var xn,xt,dt;for(xn=Vt.length-1;xn>=0;xn-=1)if(Vt[xn].ty==="sh")if(Vt[xn].ks.k.i)qe(Vt[xn].ks.k);else for(dt=Vt[xn].ks.k.length,xt=0;xt<dt;xt+=1)Vt[xn].ks.k[xt].s&&qe(Vt[xn].ks.k[xt].s[0]),Vt[xn].ks.k[xt].e&&qe(Vt[xn].ks.k[xt].e[0]);else Vt[xn].ty==="gr"&&Ne(Vt[xn].it)}function qe(Vt){var xn,xt=Vt.i.length;for(xn=0;xn<xt;xn+=1)Vt.i[xn][0]+=Vt.v[xn][0],Vt.i[xn][1]+=Vt.v[xn][1],Vt.o[xn][0]+=Vt.v[xn][0],Vt.o[xn][1]+=Vt.v[xn][1]}function ft(Vt,xn){var xt=xn?xn.split("."):[100,100,100];return Vt[0]>xt[0]||!(xt[0]>Vt[0])&&(Vt[1]>xt[1]||!(xt[1]>Vt[1])&&(Vt[2]>xt[2]||!(xt[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function xn(dt){var ze=dt.t.d;dt.t.d={k:[{s:ze,t:0}]}}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(xn){if(xn.chars&&!ft(Vt,xn.v)){var xt,dt=xn.chars.length;for(xt=0;xt<dt;xt+=1){var ze=xn.chars[xt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[xt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),zt=(function(){var Vt=[5,7,15];function xn(dt){var ze=dt.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function xn(dt){var ze,ht,wt,xi=dt.length;for(ze=0;ze<xi;ze+=1)if(dt[ze].ty==="gr")xn(dt[ze].it);else if(dt[ze].ty==="fl"||dt[ze].ty==="st")if(dt[ze].c.k&&dt[ze].c.k[0].i)for(wt=dt[ze].c.k.length,ht=0;ht<wt;ht+=1)dt[ze].c.k[ht].s&&(dt[ze].c.k[ht].s[0]/=255,dt[ze].c.k[ht].s[1]/=255,dt[ze].c.k[ht].s[2]/=255,dt[ze].c.k[ht].s[3]/=255),dt[ze].c.k[ht].e&&(dt[ze].c.k[ht].e[0]/=255,dt[ze].c.k[ht].e[1]/=255,dt[ze].c.k[ht].e[2]/=255,dt[ze].c.k[ht].e[3]/=255);else dt[ze].c.k[0]/=255,dt[ze].c.k[1]/=255,dt[ze].c.k[2]/=255,dt[ze].c.k[3]/=255}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===4&&xn(dt[ze].shapes)}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function xn(dt){var ze,ht,wt;for(ze=dt.length-1;ze>=0;ze-=1)if(dt[ze].ty==="sh")if(dt[ze].ks.k.i)dt[ze].ks.k.c=dt[ze].closed;else for(wt=dt[ze].ks.k.length,ht=0;ht<wt;ht+=1)dt[ze].ks.k[ht].s&&(dt[ze].ks.k[ht].s[0].c=dt[ze].closed),dt[ze].ks.k[ht].e&&(dt[ze].ks.k[ht].e[0].c=dt[ze].closed);else dt[ze].ty==="gr"&&xn(dt[ze].it)}function xt(dt){var ze,ht,wt,xi,Zo,Po,Ca=dt.length;for(ht=0;ht<Ca;ht+=1){if((ze=dt[ht]).hasMask){var Jo=ze.masksProperties;for(xi=Jo.length,wt=0;wt<xi;wt+=1)if(Jo[wt].pt.k.i)Jo[wt].pt.k.c=Jo[wt].cl;else for(Po=Jo[wt].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[wt].pt.k[Zo].s&&(Jo[wt].pt.k[Zo].s[0].c=Jo[wt].cl),Jo[wt].pt.k[Zo].e&&(Jo[wt].pt.k[Zo].e[0].c=Jo[wt].cl)}ze.ty===4&&xn(ze.shapes)}}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})();function ci(Vt){Vt.__complete||(po(Vt),rn(Vt),sn(Vt),zt(Vt),Eo(Vt),Kt(Vt.layers,Vt.assets),en(Vt.chars,Vt.assets),Vt.__complete=!0)}function Ko(Vt){Vt.t.a.length===0&&Vt.t.p}var lo={};return lo.completeData=ci,lo.checkColors=po,lo.checkChars=sn,lo.checkPathProperties=zt,lo.checkShapes=Eo,lo.completeLayers=Kt,lo}if(Ee.dataManager||(Ee.dataManager=At()),Ee.assetLoader||(Ee.assetLoader=(function(){function Kt(Xe){var We=Xe.getResponseHeader("content-type");return We&&Xe.responseType==="json"&&We.indexOf("json")!==-1||Xe.response&&ge(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function en(Xe,We,Ne,qe){var ft,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)ft=Kt(rn),Ne(ft);else try{ft=Kt(rn),Ne(ft)}catch(sn){qe&&qe(sn)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),We+"/"+Xe,!0)}rn.send()}return{load:en}})()),pt.data.type==="loadAnimation")Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.dataManager.completeData(Kt),Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}));else if(pt.data.type==="complete"){var Tt=pt.data.animation;Ee.dataManager.completeData(Tt),Ee.postMessage({id:pt.data.id,payload:Tt,status:"success"})}else pt.data.type==="loadData"&&Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}))})),X.onmessage=function(pt){var At=pt.data,Tt=At.id,Kt=xe[Tt];xe[Tt]=null,At.status==="success"?Kt.onComplete(At.payload):Kt.onError&&Kt.onError()})}function Ye(pt,At){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:At},Tt}function Rt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:Rt,loadData:Jt,completeAnimation:et}})(),re=(function(){var Y=(function(){var Xe=h("canvas");Xe.width=1,Xe.height=1;var We=Xe.getContext("2d");return We.fillStyle="rgba(0,0,0,0)",We.fillRect(0,0,1,1),Xe})();function X(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function pe(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function xe(Xe,We,Ne){var qe="";if(Xe.e)qe=Xe.p;else if(We){var ft=Xe.p;ft.indexOf("images/")!==-1&&(ft=ft.split("/")[1]),qe=We+ft}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ae(Xe){var We=0,Ne=setInterval((function(){(Xe.getBBox().width||We>500)&&(this._imageLoaded(),clearInterval(Ne)),We+=1}).bind(this),50)}function Ee(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.setAttributeNS("http://www.w3.org/1999/xlink","href",We),this._elementHelper.append?this._elementHelper.append(Ne):this._elementHelper.appendChild(Ne);var qe={img:Ne,assetData:Xe};return qe}function Re(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=h("img");Ne.crossOrigin="anonymous",Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=Y,this._imageLoaded()}).bind(this),!1),Ne.src=We;var qe={img:Ne,assetData:Xe};return qe}function Qe(Xe){var We={assetData:Xe},Ne=xe(Xe,this.assetsPath,this.path);return ue.loadData(Ne,(function(qe){We.img=qe,this._footageLoaded()}).bind(this),(function(){We.img={},this._footageLoaded()}).bind(this)),We}function Ye(Xe,We){this.imagesLoadedCb=We;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Rt(Xe){this.path=Xe||""}function Jt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var We=0,Ne=this.images.length;We<Ne;){if(this.images[We].assetData===Xe)return this.images[We].img;We+=1}return null}function pt(){this.imagesLoadedCb=null,this.images.length=0}function At(){return this.totalImages===this.loadedAssets}function Tt(){return this.totalFootages===this.loadedFootagesCount}function Kt(Xe,We){Xe==="svg"?(this._elementHelper=We,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function en(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return en.prototype={loadAssets:Ye,setAssetsPath:Jt,setPath:Rt,loadedImages:At,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(Y,X){if(this._cbs[Y])for(var pe=this._cbs[Y],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(Y,X){return this._cbs[Y]||(this._cbs[Y]=[]),this._cbs[Y].push(X),(function(){this.removeEventListener(Y,X)}).bind(this)},removeEventListener:function(Y,X){if(X){if(this._cbs[Y]){for(var pe=0,xe=this._cbs[Y].length;pe<xe;)this._cbs[Y][pe]===X&&(this._cbs[Y].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[Y].length||(this._cbs[Y]=null)}}else this._cbs[Y]=null}};var ce=(function(){function Y(X){for(var pe,xe=X.split(`\r
3
3
  `),Ae={},Ee=0,Re=0;Re<xe.length;Re+=1)(pe=xe[Re].split(":")).length===2&&(Ae[pe[0]]=pe[1].trim(),Ee+=1);if(Ee===0)throw new Error;return Ae}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ae=X[xe],Ee={time:Ae.tm,duration:Ae.dr};try{Ee.payload=JSON.parse(X[xe].cm)}catch{try{Ee.payload=Y(X[xe].cm)}catch{Ee.payload={name:X[xe].cm}}}pe.push(Ee)}return pe}})(),de=(function(){function Y(X){this.compositions.push(X)}return function(){function X(pe){for(var xe=0,Ae=this.compositions.length;xe<Ae;){if(this.compositions[xe].data&&this.compositions[xe].data.nm===pe)return this.compositions[xe].prepareFrame&&this.compositions[xe].data.xt&&this.compositions[xe].prepareFrame(this.currentFrame),this.compositions[xe].compInterface;xe+=1}return null}return X.compositions=[],X.currentFrame=0,X.registerComposition=Y,X}})(),he={},me=function(Y,X){he[Y]=X};function ye(Y){return he[Y]}function we(){if(he.canvas)return"canvas";for(var Y in he)if(he[Y])return Y;return""}function be(Y){return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},be(Y)}var Se=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=H(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=J(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=de(),this.imagePreloader=new re,this.audioController=x(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new F("drawnFrame",0,0,0),this.expressionsPlugin=te()};g([ie],Se),Se.prototype.setParams=function(Y){(Y.wrapper||Y.container)&&(this.wrapper=Y.wrapper||Y.container);var X="svg";Y.animType?X=Y.animType:Y.renderer&&(X=Y.renderer);var pe=ye(X);this.renderer=new pe(this,Y.rendererSettings),this.imagePreloader.setCacheType(X,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=X,Y.loop===""||Y.loop===null||Y.loop===void 0||Y.loop===!0?this.loop=!0:Y.loop===!1?this.loop=!1:this.loop=parseInt(Y.loop,10),this.autoplay=!("autoplay"in Y)||Y.autoplay,this.name=Y.name?Y.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(Y,"autoloadSegments")||Y.autoloadSegments,this.assetsPath=Y.assetsPath,this.initialSegment=Y.initialSegment,Y.audioFactory&&this.audioController.setAudioFactory(Y.audioFactory),Y.animationData?this.setupAnimation(Y.animationData):Y.path&&(Y.path.lastIndexOf("\\")!==-1?this.path=Y.path.substr(0,Y.path.lastIndexOf("\\")+1):this.path=Y.path.substr(0,Y.path.lastIndexOf("/")+1),this.fileName=Y.path.substr(Y.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ue.loadAnimation(Y.path,this.configAnimation,this.onSetupError))},Se.prototype.onSetupError=function(){this.trigger("data_failed")},Se.prototype.setupAnimation=function(Y){ue.completeAnimation(Y,this.configAnimation)},Se.prototype.setData=function(Y,X){X&&be(X)!=="object"&&(X=JSON.parse(X));var pe={wrapper:Y,animationData:X},xe=Y.attributes;pe.path=xe.getNamedItem("data-animation-path")?xe.getNamedItem("data-animation-path").value:xe.getNamedItem("data-bm-path")?xe.getNamedItem("data-bm-path").value:xe.getNamedItem("bm-path")?xe.getNamedItem("bm-path").value:"",pe.animType=xe.getNamedItem("data-anim-type")?xe.getNamedItem("data-anim-type").value:xe.getNamedItem("data-bm-type")?xe.getNamedItem("data-bm-type").value:xe.getNamedItem("bm-type")?xe.getNamedItem("bm-type").value:xe.getNamedItem("data-bm-renderer")?xe.getNamedItem("data-bm-renderer").value:xe.getNamedItem("bm-renderer")?xe.getNamedItem("bm-renderer").value:we()||"canvas";var Ae=xe.getNamedItem("data-anim-loop")?xe.getNamedItem("data-anim-loop").value:xe.getNamedItem("data-bm-loop")?xe.getNamedItem("data-bm-loop").value:xe.getNamedItem("bm-loop")?xe.getNamedItem("bm-loop").value:"";Ae==="false"?pe.loop=!1:Ae==="true"?pe.loop=!0:Ae!==""&&(pe.loop=parseInt(Ae,10));var Ee=xe.getNamedItem("data-anim-autoplay")?xe.getNamedItem("data-anim-autoplay").value:xe.getNamedItem("data-bm-autoplay")?xe.getNamedItem("data-bm-autoplay").value:!xe.getNamedItem("bm-autoplay")||xe.getNamedItem("bm-autoplay").value;pe.autoplay=Ee!=="false",pe.name=xe.getNamedItem("data-name")?xe.getNamedItem("data-name").value:xe.getNamedItem("data-bm-name")?xe.getNamedItem("data-bm-name").value:xe.getNamedItem("bm-name")?xe.getNamedItem("bm-name").value:"",(xe.getNamedItem("data-anim-prerender")?xe.getNamedItem("data-anim-prerender").value:xe.getNamedItem("data-bm-prerender")?xe.getNamedItem("data-bm-prerender").value:xe.getNamedItem("bm-prerender")?xe.getNamedItem("bm-prerender").value:"")==="false"&&(pe.prerender=!1),pe.path?this.setParams(pe):this.trigger("destroy")},Se.prototype.includeLayers=function(Y){Y.op>this.animationData.op&&(this.animationData.op=Y.op,this.totalFrames=Math.floor(Y.op-this.animationData.ip));var X,pe,xe=this.animationData.layers,Ae=xe.length,Ee=Y.layers,Re=Ee.length;for(pe=0;pe<Re;pe+=1)for(X=0;X<Ae;){if(xe[X].id===Ee[pe].id){xe[X]=Ee[pe];break}X+=1}if((Y.chars||Y.fonts)&&(this.renderer.globalData.fontManager.addChars(Y.chars),this.renderer.globalData.fontManager.addFonts(Y.fonts,this.renderer.globalData.defs)),Y.assets)for(Ae=Y.assets.length,X=0;X<Ae;X+=1)this.animationData.assets.push(Y.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},Se.prototype.onSegmentComplete=function(Y){this.animationData=Y;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},Se.prototype.loadNextSegment=function(){var Y=this.animationData.segments;if(!Y||Y.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var X=Y.shift();this.timeCompleted=X.time*this.frameRate;var pe=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,ue.loadData(pe,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},Se.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Se.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Se.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Se.prototype.configAnimation=function(Y){if(this.renderer)try{this.animationData=Y,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(Y),Y.assets||(Y.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(Y.assets),this.markers=ce(Y.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},Se.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Se.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var Y=te();Y&&Y.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Se.prototype.resize=function(Y,X){var pe=typeof Y=="number"?Y:void 0,xe=typeof X=="number"?X:void 0;this.renderer.updateContainerSize(pe,xe)},Se.prototype.setSubframe=function(Y){this.isSubframeEnabled=!!Y},Se.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},Se.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(Y){this.triggerRenderFrameError(Y)}},Se.prototype.play=function(Y){Y&&this.name!==Y||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Se.prototype.pause=function(Y){Y&&this.name!==Y||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Se.prototype.togglePause=function(Y){Y&&this.name!==Y||(this.isPaused===!0?this.play():this.pause())},Se.prototype.stop=function(Y){Y&&this.name!==Y||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Se.prototype.getMarkerData=function(Y){for(var X,pe=0;pe<this.markers.length;pe+=1)if((X=this.markers[pe]).payload&&X.payload.name===Y)return X;return null},Se.prototype.goToAndStop=function(Y,X,pe){if(!pe||this.name===pe){var xe=Number(Y);if(isNaN(xe)){var Ae=this.getMarkerData(Y);Ae&&this.goToAndStop(Ae.time,!0)}else X?this.setCurrentRawFrameValue(Y):this.setCurrentRawFrameValue(Y*this.frameModifier);this.pause()}},Se.prototype.goToAndPlay=function(Y,X,pe){if(!pe||this.name===pe){var xe=Number(Y);if(isNaN(xe)){var Ae=this.getMarkerData(Y);Ae&&(Ae.duration?this.playSegments([Ae.time,Ae.time+Ae.duration],!0):this.goToAndStop(Ae.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},Se.prototype.advanceTime=function(Y){if(this.isPaused!==!0&&this.isLoaded!==!1){var X=this.currentRawFrame+Y*this.frameModifier,pe=!1;X>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?X>=this.totalFrames?(this.playCount+=1,this.checkSegments(X%this.totalFrames)||(this.setCurrentRawFrameValue(X%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(X):this.checkSegments(X>this.totalFrames?X%this.totalFrames:0)||(pe=!0,X=this.totalFrames-1):X<0?this.checkSegments(X%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(pe=!0,X=0):(this.setCurrentRawFrameValue(this.totalFrames+X%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(X),pe&&(this.setCurrentRawFrameValue(X),this.pause(),this.trigger("complete"))}},Se.prototype.adjustSegment=function(Y,X){this.playCount=0,Y[1]<Y[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=Y[0]-Y[1],this.timeCompleted=this.totalFrames,this.firstFrame=Y[1],this.setCurrentRawFrameValue(this.totalFrames-.001-X)):Y[1]>Y[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=Y[1]-Y[0],this.timeCompleted=this.totalFrames,this.firstFrame=Y[0],this.setCurrentRawFrameValue(.001+X)),this.trigger("segmentStart")},Se.prototype.setSegment=function(Y,X){var pe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<Y?pe=Y:this.currentRawFrame+this.firstFrame>X&&(pe=X-Y)),this.firstFrame=Y,this.totalFrames=X-Y,this.timeCompleted=this.totalFrames,pe!==-1&&this.goToAndStop(pe,!0)},Se.prototype.playSegments=function(Y,X){if(X&&(this.segments.length=0),be(Y[0])==="object"){var pe,xe=Y.length;for(pe=0;pe<xe;pe+=1)this.segments.push(Y[pe])}else this.segments.push(Y);this.segments.length&&X&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Se.prototype.resetSegments=function(Y){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),Y&&this.checkSegments(0)},Se.prototype.checkSegments=function(Y){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),Y),!0)},Se.prototype.destroy=function(Y){Y&&this.name!==Y||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},Se.prototype.setCurrentRawFrameValue=function(Y){this.currentRawFrame=Y,this.gotoFrame()},Se.prototype.setSpeed=function(Y){this.playSpeed=Y,this.updaFrameModifier()},Se.prototype.setDirection=function(Y){this.playDirection=Y<0?-1:1,this.updaFrameModifier()},Se.prototype.setLoop=function(Y){this.loop=Y},Se.prototype.setVolume=function(Y,X){X&&this.name!==X||this.audioController.setVolume(Y)},Se.prototype.getVolume=function(){return this.audioController.getVolume()},Se.prototype.mute=function(Y){Y&&this.name!==Y||this.audioController.mute()},Se.prototype.unmute=function(Y){Y&&this.name!==Y||this.audioController.unmute()},Se.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Se.prototype.getPath=function(){return this.path},Se.prototype.getAssetsPath=function(Y){var X="";if(Y.e)X=Y.p;else if(this.assetsPath){var pe=Y.p;pe.indexOf("images/")!==-1&&(pe=pe.split("/")[1]),X=this.assetsPath+pe}else X=this.path,X+=Y.u?Y.u:"",X+=Y.p;return X},Se.prototype.getAssetData=function(Y){for(var X=0,pe=this.assets.length;X<pe;){if(Y===this.assets[X].id)return this.assets[X];X+=1}return null},Se.prototype.hide=function(){this.renderer.hide()},Se.prototype.show=function(){this.renderer.show()},Se.prototype.getDuration=function(Y){return Y?this.totalFrames:this.totalFrames/this.frameRate},Se.prototype.updateDocumentData=function(Y,X,pe){try{this.renderer.getElementByPath(Y).updateDocumentData(X,pe)}catch{}},Se.prototype.trigger=function(Y){if(this._cbs&&this._cbs[Y])switch(Y){case"enterFrame":this.triggerEvent(Y,new F(Y,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(Y,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(Y,new _(Y,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(Y,new N(Y,this.frameMult));break;case"segmentStart":this.triggerEvent(Y,new z(Y,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(Y,new T(Y,this));break;default:this.triggerEvent(Y)}Y==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new F(Y,this.currentFrame,this.totalFrames,this.frameMult)),Y==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new _(Y,this.loop,this.playCount,this.frameMult)),Y==="complete"&&this.onComplete&&this.onComplete.call(this,new N(Y,this.frameMult)),Y==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new z(Y,this.firstFrame,this.totalFrames)),Y==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new T(Y,this))},Se.prototype.triggerRenderFrameError=function(Y){var X=new M(Y,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},Se.prototype.triggerConfigError=function(Y){var X=new O(Y,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Te=(function(){var Y={},X=[],pe=0,xe=0,Ae=0,Ee=!0,Re=!1;function Qe(xt){for(var dt=0,ze=xt.target;dt<xe;)X[dt].animation===ze&&(X.splice(dt,1),dt-=1,xe-=1,ze.isPaused||et()),dt+=1}function Ye(xt,dt){if(!xt)return null;for(var ze=0;ze<xe;){if(X[ze].elem===xt&&X[ze].elem!==null)return X[ze].animation;ze+=1}var ht=new Se;return pt(ht,xt),ht.setData(xt,dt),ht}function Rt(){var xt,dt=X.length,ze=[];for(xt=0;xt<dt;xt+=1)ze.push(X[xt].animation);return ze}function Jt(){Ae+=1,Eo()}function et(){Ae-=1}function pt(xt,dt){xt.addEventListener("destroy",Qe),xt.addEventListener("_active",Jt),xt.addEventListener("_idle",et),X.push({elem:dt,animation:xt}),xe+=1}function At(xt){var dt=new Se;return pt(dt,null),dt.setParams(xt),dt}function Tt(xt,dt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setSpeed(xt,dt)}function Kt(xt,dt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setDirection(xt,dt)}function en(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.play(xt)}function Xe(xt){var dt,ze=xt-pe;for(dt=0;dt<xe;dt+=1)X[dt].animation.advanceTime(ze);pe=xt,Ae&&!Re?window.requestAnimationFrame(Xe):Ee=!0}function We(xt){pe=xt,window.requestAnimationFrame(Xe)}function Ne(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.pause(xt)}function qe(xt,dt,ze){var ht;for(ht=0;ht<xe;ht+=1)X[ht].animation.goToAndStop(xt,dt,ze)}function ft(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.stop(xt)}function rn(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.togglePause(xt)}function sn(xt){var dt;for(dt=xe-1;dt>=0;dt-=1)X[dt].animation.destroy(xt)}function zt(xt,dt,ze){var ht,wt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),xi=wt.length;for(ht=0;ht<xi;ht+=1)ze&&wt[ht].setAttribute("data-bm-type",ze),Ye(wt[ht],xt);if(dt&&xi===0){ze||(ze="svg");var Zo=document.getElementsByTagName("body")[0];Zo.innerText="";var Po=h("div");Po.style.width="100%",Po.style.height="100%",Po.setAttribute("data-bm-type",ze),Zo.appendChild(Po),Ye(Po,xt)}}function po(){var xt;for(xt=0;xt<xe;xt+=1)X[xt].animation.resize()}function Eo(){!Re&&Ae&&Ee&&(window.requestAnimationFrame(We),Ee=!1)}function ci(){Re=!0}function Ko(){Re=!1,Eo()}function lo(xt,dt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setVolume(xt,dt)}function Vt(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.mute(xt)}function xn(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.unmute(xt)}return Y.registerAnimation=Ye,Y.loadAnimation=At,Y.setSpeed=Tt,Y.setDirection=Kt,Y.play=en,Y.pause=Ne,Y.stop=ft,Y.togglePause=rn,Y.searchAnimations=zt,Y.resize=po,Y.goToAndStop=qe,Y.destroy=sn,Y.freeze=ci,Y.unfreeze=Ko,Y.setVolume=lo,Y.mute=Vt,Y.unmute=xn,Y.getRegisteredAnimations=Rt,Y})(),Be=(function(){var Y={};Y.getBezierEasing=pe;var X={};function pe(We,Ne,qe,ft,rn){var sn=rn||("bez_"+We+"_"+Ne+"_"+qe+"_"+ft).replace(/\./g,"p");if(X[sn])return X[sn];var zt=new Xe([We,Ne,qe,ft]);return X[sn]=zt,zt}var xe=4,Ae=.001,Ee=1e-7,Re=10,Qe=11,Ye=1/(Qe-1),Rt=typeof Float32Array=="function";function Jt(We,Ne){return 1-3*Ne+3*We}function et(We,Ne){return 3*Ne-6*We}function pt(We){return 3*We}function At(We,Ne,qe){return((Jt(Ne,qe)*We+et(Ne,qe))*We+pt(Ne))*We}function Tt(We,Ne,qe){return 3*Jt(Ne,qe)*We*We+2*et(Ne,qe)*We+pt(Ne)}function Kt(We,Ne,qe,ft,rn){var sn,zt,po=0;do(sn=At(zt=Ne+(qe-Ne)/2,ft,rn)-We)>0?qe=zt:Ne=zt;while(Math.abs(sn)>Ee&&++po<Re);return zt}function en(We,Ne,qe,ft){for(var rn=0;rn<xe;++rn){var sn=Tt(Ne,qe,ft);if(sn===0)return Ne;Ne-=(At(Ne,qe,ft)-We)/sn}return Ne}function Xe(We){this._p=We,this._mSampleValues=Rt?new Float32Array(Qe):new Array(Qe),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(We){var Ne=this._p[0],qe=this._p[1],ft=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&&ft===rn?We:We===0?0:We===1?1:At(this._getTForX(We),qe,rn)},_precompute:function(){var We=this._p[0],Ne=this._p[1],qe=this._p[2],ft=this._p[3];this._precomputed=!0,(We!==Ne||qe!==ft)&&this._calcSampleValues()},_calcSampleValues:function(){for(var We=this._p[0],Ne=this._p[2],qe=0;qe<Qe;++qe)this._mSampleValues[qe]=At(qe*Ye,We,Ne)},_getTForX:function(We){for(var Ne=this._p[0],qe=this._p[2],ft=this._mSampleValues,rn=0,sn=1,zt=Qe-1;sn!==zt&&ft[sn]<=We;++sn)rn+=Ye;var po=rn+(We-ft[--sn])/(ft[sn+1]-ft[sn])*Ye,Eo=Tt(po,Ne,qe);return Eo>=Ae?en(We,po,Ne,qe):Eo===0?po:Kt(We,rn,rn+Ye,Ne,qe)}},Y})(),Le=(function(){function Y(X){return X.concat(b(X.length))}return{double:Y}})(),Fe=(function(){return function(Y,X,pe){var xe=0,Ae=Y,Ee=b(Ae);function Re(){return xe?Ee[xe-=1]:X()}function Qe(Ye){xe===Ae&&(Ee=Le.double(Ee),Ae*=2),pe&&pe(Ye),Ee[xe]=Ye,xe+=1}return{newElement:Re,release:Qe}}})(),Me=(function(){function Y(){return{addedLength:0,percents:y("float32",ae()),lengths:y("float32",ae())}}return Fe(8,Y)})(),ke=(function(){function Y(){return{lengths:[],totalLength:0}}function X(pe){var xe,Ae=pe.lengths.length;for(xe=0;xe<Ae;xe+=1)Me.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,Y,X)})();function Ce(){var Y=Math;function X(pt,At,Tt,Kt,en,Xe){var We=pt*Kt+At*en+Tt*Xe-en*Kt-Xe*pt-Tt*At;return We>-.001&&We<.001}function pe(pt,At,Tt,Kt,en,Xe,We,Ne,qe){if(Tt===0&&Xe===0&&qe===0)return X(pt,At,Kt,en,We,Ne);var ft,rn=Y.sqrt(Y.pow(Kt-pt,2)+Y.pow(en-At,2)+Y.pow(Xe-Tt,2)),sn=Y.sqrt(Y.pow(We-pt,2)+Y.pow(Ne-At,2)+Y.pow(qe-Tt,2)),zt=Y.sqrt(Y.pow(We-Kt,2)+Y.pow(Ne-en,2)+Y.pow(qe-Xe,2));return(ft=rn>sn?rn>zt?rn-sn-zt:zt-sn-rn:zt>sn?zt-sn-rn:sn-rn-zt)>-1e-4&&ft<1e-4}var xe=(function(){return function(pt,At,Tt,Kt){var en,Xe,We,Ne,qe,ft,rn=ae(),sn=0,zt=[],po=[],Eo=Me.newElement();for(We=Tt.length,en=0;en<rn;en+=1){for(qe=en/(rn-1),ft=0,Xe=0;Xe<We;Xe+=1)Ne=k(1-qe,3)*pt[Xe]+3*k(1-qe,2)*qe*Tt[Xe]+3*(1-qe)*k(qe,2)*Kt[Xe]+k(qe,3)*At[Xe],zt[Xe]=Ne,po[Xe]!==null&&(ft+=k(zt[Xe]-po[Xe],2)),po[Xe]=zt[Xe];ft&&(sn+=ft=$(ft)),Eo.percents[en]=qe,Eo.lengths[en]=sn}return Eo.addedLength=sn,Eo}})();function Ae(pt){var At,Tt=ke.newElement(),Kt=pt.c,en=pt.v,Xe=pt.o,We=pt.i,Ne=pt._length,qe=Tt.lengths,ft=0;for(At=0;At<Ne-1;At+=1)qe[At]=xe(en[At],en[At+1],Xe[At],We[At+1]),ft+=qe[At].addedLength;return Kt&&Ne&&(qe[At]=xe(en[At],en[0],Xe[At],We[0]),ft+=qe[At].addedLength),Tt.totalLength=ft,Tt}function Ee(pt){this.segmentLength=0,this.points=new Array(pt)}function Re(pt,At){this.partialLength=pt,this.point=At}var Qe=(function(){var pt={};return function(At,Tt,Kt,en){var Xe=(At[0]+"_"+At[1]+"_"+Tt[0]+"_"+Tt[1]+"_"+Kt[0]+"_"+Kt[1]+"_"+en[0]+"_"+en[1]).replace(/\./g,"p");if(!pt[Xe]){var We,Ne,qe,ft,rn,sn,zt,po=ae(),Eo=0,ci=null;At.length===2&&(At[0]!==Tt[0]||At[1]!==Tt[1])&&X(At[0],At[1],Tt[0],Tt[1],At[0]+Kt[0],At[1]+Kt[1])&&X(At[0],At[1],Tt[0],Tt[1],Tt[0]+en[0],Tt[1]+en[1])&&(po=2);var Ko=new Ee(po);for(qe=Kt.length,We=0;We<po;We+=1){for(zt=b(qe),rn=We/(po-1),sn=0,Ne=0;Ne<qe;Ne+=1)ft=k(1-rn,3)*At[Ne]+3*k(1-rn,2)*rn*(At[Ne]+Kt[Ne])+3*(1-rn)*k(rn,2)*(Tt[Ne]+en[Ne])+k(rn,3)*Tt[Ne],zt[Ne]=ft,ci!==null&&(sn+=k(zt[Ne]-ci[Ne],2));Eo+=sn=$(sn),Ko.points[We]=new Re(sn,zt),ci=zt}Ko.segmentLength=Eo,pt[Xe]=Ko}return pt[Xe]}})();function Ye(pt,At){var Tt=At.percents,Kt=At.lengths,en=Tt.length,Xe=j((en-1)*pt),We=pt*At.addedLength,Ne=0;if(Xe===en-1||Xe===0||We===Kt[Xe])return Tt[Xe];for(var qe=Kt[Xe]>We?-1:1,ft=!0;ft;)if(Kt[Xe]<=We&&Kt[Xe+1]>We?(Ne=(We-Kt[Xe])/(Kt[Xe+1]-Kt[Xe]),ft=!1):Xe+=qe,Xe<0||Xe>=en-1){if(Xe===en-1)return Tt[Xe];ft=!1}return Tt[Xe]+(Tt[Xe+1]-Tt[Xe])*Ne}function Rt(pt,At,Tt,Kt,en,Xe){var We=Ye(en,Xe),Ne=1-We;return[Y.round(1e3*(Ne*Ne*Ne*pt[0]+(We*Ne*Ne+Ne*We*Ne+Ne*Ne*We)*Tt[0]+(We*We*Ne+Ne*We*We+We*Ne*We)*Kt[0]+We*We*We*At[0]))/1e3,Y.round(1e3*(Ne*Ne*Ne*pt[1]+(We*Ne*Ne+Ne*We*Ne+Ne*Ne*We)*Tt[1]+(We*We*Ne+Ne*We*We+We*Ne*We)*Kt[1]+We*We*We*At[1]))/1e3]}var Jt=y("float32",8);function et(pt,At,Tt,Kt,en,Xe,We){en<0?en=0:en>1&&(en=1);var Ne,qe=Ye(en,We),ft=Ye(Xe=Xe>1?1:Xe,We),rn=pt.length,sn=1-qe,zt=1-ft,po=sn*sn*sn,Eo=qe*sn*sn*3,ci=qe*qe*sn*3,Ko=qe*qe*qe,lo=sn*sn*zt,Vt=qe*sn*zt+sn*qe*zt+sn*sn*ft,xn=qe*qe*zt+sn*qe*ft+qe*sn*ft,xt=qe*qe*ft,dt=sn*zt*zt,ze=qe*zt*zt+sn*ft*zt+sn*zt*ft,ht=qe*ft*zt+sn*ft*ft+qe*zt*ft,wt=qe*ft*ft,xi=zt*zt*zt,Zo=ft*zt*zt+zt*ft*zt+zt*zt*ft,Po=ft*ft*zt+zt*ft*ft+ft*zt*ft,Ca=ft*ft*ft;for(Ne=0;Ne<rn;Ne+=1)Jt[4*Ne]=Y.round(1e3*(po*pt[Ne]+Eo*Tt[Ne]+ci*Kt[Ne]+Ko*At[Ne]))/1e3,Jt[4*Ne+1]=Y.round(1e3*(lo*pt[Ne]+Vt*Tt[Ne]+xn*Kt[Ne]+xt*At[Ne]))/1e3,Jt[4*Ne+2]=Y.round(1e3*(dt*pt[Ne]+ze*Tt[Ne]+ht*Kt[Ne]+wt*At[Ne]))/1e3,Jt[4*Ne+3]=Y.round(1e3*(xi*pt[Ne]+Zo*Tt[Ne]+Po*Kt[Ne]+Ca*At[Ne]))/1e3;return Jt}return{getSegmentsLength:Ae,getNewSegment:et,getPointInSegment:Rt,buildBezierData:Qe,pointOnLine2D:X,pointOnLine3D:pe}}var De=Ce(),$e=l,Oe=Math.abs;function Ke(Y,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ae,Ee,Re,Qe=X.lastIndex,Ye=Qe,Rt=this.keyframes.length-1,Jt=!0;Jt;){if(Ae=this.keyframes[Ye],Ee=this.keyframes[Ye+1],Ye===Rt-1&&Y>=Ee.t-xe){Ae.h&&(Ae=Ee),Qe=0;break}if(Ee.t-xe>Y){Qe=Ye;break}Ye<Rt-1?Ye+=1:(Qe=0,Jt=!1)}Re=this.keyframesMetadata[Ye]||{};var et,pt,At,Tt,Kt,en,Xe,We=Ee.t-xe,Ne=Ae.t-xe;if(Ae.to){Re.bezierData||(Re.bezierData=De.buildBezierData(Ae.s,Ee.s||Ae.e,Ae.to,Ae.ti));var qe=Re.bezierData;if(Y>=We||Y<Ne){var ft=Y>=We?qe.points.length-1:0;for(pt=qe.points[ft].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[ft].point[et]}else{Re.__fnct?en=Re.__fnct:(en=Be.getBezierEasing(Ae.o.x,Ae.o.y,Ae.i.x,Ae.i.y,Ae.n).get,Re.__fnct=en),At=en((Y-Ne)/(We-Ne));var rn,sn=qe.segmentLength*At,zt=X.lastFrame<Y&&X._lastKeyframeIndex===Ye?X._lastAddedLength:0;for(Kt=X.lastFrame<Y&&X._lastKeyframeIndex===Ye?X._lastPoint:0,Jt=!0,Tt=qe.points.length;Jt;){if(zt+=qe.points[Kt].partialLength,sn===0||At===0||Kt===qe.points.length-1){for(pt=qe.points[Kt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[Kt].point[et];break}if(sn>=zt&&sn<zt+qe.points[Kt+1].partialLength){for(rn=(sn-zt)/qe.points[Kt+1].partialLength,pt=qe.points[Kt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[Kt].point[et]+(qe.points[Kt+1].point[et]-qe.points[Kt].point[et])*rn;break}Kt<Tt-1?Kt+=1:Jt=!1}X._lastPoint=Kt,X._lastAddedLength=zt-qe.points[Kt].partialLength,X._lastKeyframeIndex=Ye}}else{var po,Eo,ci,Ko,lo;if(Rt=Ae.s.length,Xe=Ee.s||Ae.e,this.sh&&Ae.h!==1)Y>=We?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):Y<=Ne?(pe[0]=Ae.s[0],pe[1]=Ae.s[1],pe[2]=Ae.s[2]):Ge(pe,Ue(ct(Ae.s),ct(Xe),(Y-Ne)/(We-Ne)));else for(Ye=0;Ye<Rt;Ye+=1)Ae.h!==1&&(Y>=We?At=1:Y<Ne?At=0:(Ae.o.x.constructor===Array?(Re.__fnct||(Re.__fnct=[]),Re.__fnct[Ye]?en=Re.__fnct[Ye]:(po=Ae.o.x[Ye]===void 0?Ae.o.x[0]:Ae.o.x[Ye],Eo=Ae.o.y[Ye]===void 0?Ae.o.y[0]:Ae.o.y[Ye],ci=Ae.i.x[Ye]===void 0?Ae.i.x[0]:Ae.i.x[Ye],Ko=Ae.i.y[Ye]===void 0?Ae.i.y[0]:Ae.i.y[Ye],en=Be.getBezierEasing(po,Eo,ci,Ko).get,Re.__fnct[Ye]=en)):Re.__fnct?en=Re.__fnct:(po=Ae.o.x,Eo=Ae.o.y,ci=Ae.i.x,Ko=Ae.i.y,en=Be.getBezierEasing(po,Eo,ci,Ko).get,Ae.keyframeMetadata=en),At=en((Y-Ne)/(We-Ne)))),Xe=Ee.s||Ae.e,lo=Ae.h===1?Ae.s[Ye]:Ae.s[Ye]+(Xe[Ye]-Ae.s[Ye])*At,this.propType==="multidimensional"?pe[Ye]=lo:pe=lo}return X.lastIndex=Qe,pe}function Ue(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye=[],Rt=Y[0],Jt=Y[1],et=Y[2],pt=Y[3],At=X[0],Tt=X[1],Kt=X[2],en=X[3];return(Ae=Rt*At+Jt*Tt+et*Kt+pt*en)<0&&(Ae=-Ae,At=-At,Tt=-Tt,Kt=-Kt,en=-en),1-Ae>1e-6?(xe=Math.acos(Ae),Ee=Math.sin(xe),Re=Math.sin((1-pe)*xe)/Ee,Qe=Math.sin(pe*xe)/Ee):(Re=1-pe,Qe=pe),Ye[0]=Re*Rt+Qe*At,Ye[1]=Re*Jt+Qe*Tt,Ye[2]=Re*et+Qe*Kt,Ye[3]=Re*pt+Qe*en,Ye}function Ge(Y,X){var pe=X[0],xe=X[1],Ae=X[2],Ee=X[3],Re=Math.atan2(2*xe*Ee-2*pe*Ae,1-2*xe*xe-2*Ae*Ae),Qe=Math.asin(2*pe*xe+2*Ae*Ee),Ye=Math.atan2(2*pe*Ee-2*xe*Ae,1-2*pe*pe-2*Ae*Ae);Y[0]=Re/D,Y[1]=Qe/D,Y[2]=Ye/D}function ct(Y){var X=Y[0]*D,pe=Y[1]*D,xe=Y[2]*D,Ae=Math.cos(X/2),Ee=Math.cos(pe/2),Re=Math.cos(xe/2),Qe=Math.sin(X/2),Ye=Math.sin(pe/2),Rt=Math.sin(xe/2);return[Qe*Ye*Re+Ae*Ee*Rt,Qe*Ee*Re+Ae*Ye*Rt,Ae*Ye*Re-Qe*Ee*Rt,Ae*Ee*Re-Qe*Ye*Rt]}function St(){var Y=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(Y===this._caching.lastFrame||this._caching.lastFrame!==$e&&(this._caching.lastFrame>=pe&&Y>=pe||this._caching.lastFrame<X&&Y<X))){this._caching.lastFrame>=Y&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var xe=this.interpolateValue(Y,this._caching);this.pv=xe}return this._caching.lastFrame=Y,this.pv}function rt(Y){var X;if(this.propType==="unidimensional")X=Y*this.mult,Oe(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=Y[pe]*this.mult,Oe(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function Ct(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var Y,X=this.effectsSequence.length,pe=this.kf?this.pv:this.data.k;for(Y=0;Y<X;Y+=1)pe=this.effectsSequence[Y](pe);this.setVValue(pe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function tt(Y){this.effectsSequence.push(Y),this.container.addDynamicProperty(this)}function _e(Y,X,pe,xe){this.propType="unidimensional",this.mult=pe||1,this.data=X,this.v=pe?X.k*pe:X.k,this.pv=X.k,this._mdf=!1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Ct,this.setVValue=rt,this.addEffect=tt}function kt(Y,X,pe,xe){this.propType="multidimensional",this.mult=pe||1,this.data=X,this._mdf=!1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.k=!1,this.kf=!1,this.frameId=-1;var Ae,Ee=X.k.length;for(this.v=y("float32",Ee),this.pv=y("float32",Ee),this.vel=y("float32",Ee),Ae=0;Ae<Ee;Ae+=1)this.v[Ae]=X.k[Ae]*this.mult,this.pv[Ae]=X.k[Ae];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Ct,this.setVValue=rt,this.addEffect=tt}function vt(Y,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=Y.data.st,this.frameId=-1,this._caching={lastFrame:$e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=X,this.mult=pe||1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.v=$e,this.pv=$e,this._isFirstFrame=!0,this.getValue=Ct,this.setVValue=rt,this.interpolateValue=Ke,this.effectsSequence=[St.bind(this)],this.addEffect=tt}function gt(Y,X,pe,xe){this.propType="multidimensional";var Ae,Ee,Re,Qe,Ye,Rt=X.k.length;for(Ae=0;Ae<Rt-1;Ae+=1)X.k[Ae].to&&X.k[Ae].s&&X.k[Ae+1]&&X.k[Ae+1].s&&(Ee=X.k[Ae].s,Re=X.k[Ae+1].s,Qe=X.k[Ae].to,Ye=X.k[Ae].ti,(Ee.length===2&&!(Ee[0]===Re[0]&&Ee[1]===Re[1])&&De.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Ee[0]+Qe[0],Ee[1]+Qe[1])&&De.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Re[0]+Ye[0],Re[1]+Ye[1])||Ee.length===3&&!(Ee[0]===Re[0]&&Ee[1]===Re[1]&&Ee[2]===Re[2])&&De.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Ee[0]+Qe[0],Ee[1]+Qe[1],Ee[2]+Qe[2])&&De.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Re[0]+Ye[0],Re[1]+Ye[1],Re[2]+Ye[2]))&&(X.k[Ae].to=null,X.k[Ae].ti=null),Ee[0]===Re[0]&&Ee[1]===Re[1]&&Qe[0]===0&&Qe[1]===0&&Ye[0]===0&&Ye[1]===0&&(Ee.length===2||Ee[2]===Re[2]&&Qe[2]===0&&Ye[2]===0)&&(X.k[Ae].to=null,X.k[Ae].ti=null));this.effectsSequence=[St.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=Y.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=pe||1,this.elem=Y,this.container=xe,this.comp=Y.comp,this.getValue=Ct,this.setVValue=rt,this.interpolateValue=Ke,this.frameId=-1;var Jt=X.k[0].s.length;for(this.v=y("float32",Jt),this.pv=y("float32",Jt),Ae=0;Ae<Jt;Ae+=1)this.v[Ae]=$e,this.pv[Ae]=$e;this._caching={lastFrame:$e,lastIndex:0,value:y("float32",Jt)},this.addEffect=tt}var Ze=(function(){function Y(X,pe,xe,Ae,Ee){var Re;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Re=new kt(X,pe,Ae,Ee);else switch(xe){case 0:Re=new vt(X,pe,Ae,Ee);break;case 1:Re=new gt(X,pe,Ae,Ee)}else Re=new _e(X,pe,Ae,Ee);return Re.effectsSequence.length&&Ee.addDynamicProperty(Re),Re}return{getProp:Y}})();function Ot(){}Ot.prototype={addDynamicProperty:function(Y){this.dynamicProperties.indexOf(Y)===-1&&(this.dynamicProperties.push(Y),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var Y,X=this.dynamicProperties.length;for(Y=0;Y<X;Y+=1)this.dynamicProperties[Y].getValue(),this.dynamicProperties[Y]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(Y){this.container=Y,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qt=(function(){function Y(){return y("float32",2)}return Fe(8,Y)})();function bt(){this.c=!1,this._length=0,this._maxLength=8,this.v=b(this._maxLength),this.o=b(this._maxLength),this.i=b(this._maxLength)}bt.prototype.setPathData=function(Y,X){this.c=Y,this.setLength(X);for(var pe=0;pe<X;)this.v[pe]=Qt.newElement(),this.o[pe]=Qt.newElement(),this.i[pe]=Qt.newElement(),pe+=1},bt.prototype.setLength=function(Y){for(;this._maxLength<Y;)this.doubleArrayLength();this._length=Y},bt.prototype.doubleArrayLength=function(){this.v=this.v.concat(b(this._maxLength)),this.i=this.i.concat(b(this._maxLength)),this.o=this.o.concat(b(this._maxLength)),this._maxLength*=2},bt.prototype.setXYAt=function(Y,X,pe,xe,Ae){var Ee;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":Ee=this.v;break;case"i":Ee=this.i;break;case"o":Ee=this.o;break;default:Ee=[]}(!Ee[xe]||Ee[xe]&&!Ae)&&(Ee[xe]=Qt.newElement()),Ee[xe][0]=Y,Ee[xe][1]=X},bt.prototype.setTripleAt=function(Y,X,pe,xe,Ae,Ee,Re,Qe){this.setXYAt(Y,X,"v",Re,Qe),this.setXYAt(pe,xe,"o",Re,Qe),this.setXYAt(Ae,Ee,"i",Re,Qe)},bt.prototype.reverse=function(){var Y=new bt;Y.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,Ae=0;this.c&&(Y.setTripleAt(X[0][0],X[0][1],xe[0][0],xe[0][1],pe[0][0],pe[0][1],0,!1),Ae=1);var Ee,Re=this._length-1,Qe=this._length;for(Ee=Ae;Ee<Qe;Ee+=1)Y.setTripleAt(X[Re][0],X[Re][1],xe[Re][0],xe[Re][1],pe[Re][0],pe[Re][1],Ee,!1),Re-=1;return Y},bt.prototype.length=function(){return this._length};var Mt=(function(){function Y(){return new bt}function X(Ae){var Ee,Re=Ae._length;for(Ee=0;Ee<Re;Ee+=1)Qt.release(Ae.v[Ee]),Qt.release(Ae.i[Ee]),Qt.release(Ae.o[Ee]),Ae.v[Ee]=null,Ae.i[Ee]=null,Ae.o[Ee]=null;Ae._length=0,Ae.c=!1}function pe(Ae){var Ee,Re=xe.newElement(),Qe=Ae._length===void 0?Ae.v.length:Ae._length;for(Re.setLength(Qe),Re.c=Ae.c,Ee=0;Ee<Qe;Ee+=1)Re.setTripleAt(Ae.v[Ee][0],Ae.v[Ee][1],Ae.o[Ee][0],Ae.o[Ee][1],Ae.i[Ee][0],Ae.i[Ee][1],Ee);return Re}var xe=Fe(4,Y,X);return xe.clone=pe,xe})();function cn(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}cn.prototype.addShape=function(Y){this._length===this._maxLength&&(this.shapes=this.shapes.concat(b(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=Y,this._length+=1},cn.prototype.releaseShapes=function(){var Y;for(Y=0;Y<this._length;Y+=1)Mt.release(this.shapes[Y]);this._length=0};var gn=(function(){var Y={newShapeCollection:Ae,release:Ee},X=0,pe=4,xe=b(pe);function Ae(){return X?xe[X-=1]:new cn}function Ee(Re){var Qe,Ye=Re._length;for(Qe=0;Qe<Ye;Qe+=1)Mt.release(Re.shapes[Qe]);Re._length=0,X===pe&&(xe=Le.double(xe),pe*=2),xe[X]=Re,X+=1}return Y})(),at=(function(){var Y=-999999;function X(Xe,We,Ne){var qe,ft,rn,sn,zt,po,Eo,ci,Ko,lo=Ne.lastIndex,Vt=this.keyframes;if(Xe<Vt[0].t-this.offsetTime)qe=Vt[0].s[0],rn=!0,lo=0;else if(Xe>=Vt[Vt.length-1].t-this.offsetTime)qe=Vt[Vt.length-1].s?Vt[Vt.length-1].s[0]:Vt[Vt.length-2].e[0],rn=!0;else{for(var xn,xt,dt,ze=lo,ht=Vt.length-1,wt=!0;wt&&(xn=Vt[ze],!((xt=Vt[ze+1]).t-this.offsetTime>Xe));)ze<ht-1?ze+=1:wt=!1;if(dt=this.keyframesMetadata[ze]||{},lo=ze,!(rn=xn.h===1)){if(Xe>=xt.t-this.offsetTime)ci=1;else if(Xe<xn.t-this.offsetTime)ci=0;else{var xi;dt.__fnct?xi=dt.__fnct:(xi=Be.getBezierEasing(xn.o.x,xn.o.y,xn.i.x,xn.i.y).get,dt.__fnct=xi),ci=xi((Xe-(xn.t-this.offsetTime))/(xt.t-this.offsetTime-(xn.t-this.offsetTime)))}ft=xt.s?xt.s[0]:xn.e[0]}qe=xn.s[0]}for(po=We._length,Eo=qe.i[0].length,Ne.lastIndex=lo,sn=0;sn<po;sn+=1)for(zt=0;zt<Eo;zt+=1)Ko=rn?qe.i[sn][zt]:qe.i[sn][zt]+(ft.i[sn][zt]-qe.i[sn][zt])*ci,We.i[sn][zt]=Ko,Ko=rn?qe.o[sn][zt]:qe.o[sn][zt]+(ft.o[sn][zt]-qe.o[sn][zt])*ci,We.o[sn][zt]=Ko,Ko=rn?qe.v[sn][zt]:qe.v[sn][zt]+(ft.v[sn][zt]-qe.v[sn][zt])*ci,We.v[sn][zt]=Ko}function pe(){var Xe=this.comp.renderedFrame-this.offsetTime,We=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,qe=this._caching.lastFrame;return qe!==Y&&(qe<We&&Xe<We||qe>Ne&&Xe>Ne)||(this._caching.lastIndex=qe<Xe?this._caching.lastIndex:0,this.interpolateShape(Xe,this.pv,this._caching)),this._caching.lastFrame=Xe,this.pv}function xe(){this.paths=this.localShapeCollection}function Ae(Xe,We){if(Xe._length!==We._length||Xe.c!==We.c)return!1;var Ne,qe=Xe._length;for(Ne=0;Ne<qe;Ne+=1)if(Xe.v[Ne][0]!==We.v[Ne][0]||Xe.v[Ne][1]!==We.v[Ne][1]||Xe.o[Ne][0]!==We.o[Ne][0]||Xe.o[Ne][1]!==We.o[Ne][1]||Xe.i[Ne][0]!==We.i[Ne][0]||Xe.i[Ne][1]!==We.i[Ne][1])return!1;return!0}function Ee(Xe){Ae(this.v,Xe)||(this.v=Mt.clone(Xe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Re(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var Xe;this.lock=!0,this._mdf=!1,Xe=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var We,Ne=this.effectsSequence.length;for(We=0;We<Ne;We+=1)Xe=this.effectsSequence[We](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Qe(Xe,We,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=We,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?We.pt.k:We.ks.k;this.v=Mt.clone(qe),this.pv=Mt.clone(this.v),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function Ye(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function Rt(Xe,We,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.data.st,this.keyframes=Ne===3?We.pt.k:We.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var qe=this.keyframes[0].s[0].i.length;this.v=Mt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=Mt.clone(this.v),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=Y,this.reset=xe,this._caching={lastFrame:Y,lastIndex:0},this.effectsSequence=[pe.bind(this)]}Qe.prototype.interpolateShape=X,Qe.prototype.getValue=Re,Qe.prototype.setVValue=Ee,Qe.prototype.addEffect=Ye,Rt.prototype.getValue=Re,Rt.prototype.interpolateShape=X,Rt.prototype.setVValue=Ee,Rt.prototype.addEffect=Ye;var Jt=(function(){var Xe=L;function We(Ne,qe){this.v=Mt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=qe.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ze.getProp(Ne,qe.p,1,0,this),this.s=Ze.getProp(Ne,qe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return We.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ne=this.p.v[0],qe=this.p.v[1],ft=this.s.v[0]/2,rn=this.s.v[1]/2,sn=this.d!==3,zt=this.v;zt.v[0][0]=Ne,zt.v[0][1]=qe-rn,zt.v[1][0]=sn?Ne+ft:Ne-ft,zt.v[1][1]=qe,zt.v[2][0]=Ne,zt.v[2][1]=qe+rn,zt.v[3][0]=sn?Ne-ft:Ne+ft,zt.v[3][1]=qe,zt.i[0][0]=sn?Ne-ft*Xe:Ne+ft*Xe,zt.i[0][1]=qe-rn,zt.i[1][0]=sn?Ne+ft:Ne-ft,zt.i[1][1]=qe-rn*Xe,zt.i[2][0]=sn?Ne+ft*Xe:Ne-ft*Xe,zt.i[2][1]=qe+rn,zt.i[3][0]=sn?Ne-ft:Ne+ft,zt.i[3][1]=qe+rn*Xe,zt.o[0][0]=sn?Ne+ft*Xe:Ne-ft*Xe,zt.o[0][1]=qe-rn,zt.o[1][0]=sn?Ne+ft:Ne-ft,zt.o[1][1]=qe+rn*Xe,zt.o[2][0]=sn?Ne-ft*Xe:Ne+ft*Xe,zt.o[2][1]=qe+rn,zt.o[3][0]=sn?Ne-ft:Ne+ft,zt.o[3][1]=qe-rn*Xe}},g([Ot],We),We})(),et=(function(){function Xe(We,Ne){this.v=Mt.newElement(),this.v.setPathData(!0,0),this.elem=We,this.comp=We.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(We),Ne.sy===1?(this.ir=Ze.getProp(We,Ne.ir,0,0,this),this.is=Ze.getProp(We,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ze.getProp(We,Ne.pt,0,0,this),this.p=Ze.getProp(We,Ne.p,1,0,this),this.r=Ze.getProp(We,Ne.r,0,D,this),this.or=Ze.getProp(We,Ne.or,0,0,this),this.os=Ze.getProp(We,Ne.os,0,.01,this),this.localShapeCollection=gn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Xe.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var We,Ne,qe,ft,rn=2*Math.floor(this.pt.v),sn=2*Math.PI/rn,zt=!0,po=this.or.v,Eo=this.ir.v,ci=this.os.v,Ko=this.is.v,lo=2*Math.PI*po/(2*rn),Vt=2*Math.PI*Eo/(2*rn),xn=-Math.PI/2;xn+=this.r.v;var xt=this.data.d===3?-1:1;for(this.v._length=0,We=0;We<rn;We+=1){qe=zt?ci:Ko,ft=zt?lo:Vt;var dt=(Ne=zt?po:Eo)*Math.cos(xn),ze=Ne*Math.sin(xn),ht=dt===0&&ze===0?0:ze/Math.sqrt(dt*dt+ze*ze),wt=dt===0&&ze===0?0:-dt/Math.sqrt(dt*dt+ze*ze);dt+=+this.p.v[0],ze+=+this.p.v[1],this.v.setTripleAt(dt,ze,dt-ht*ft*qe*xt,ze-wt*ft*qe*xt,dt+ht*ft*qe*xt,ze+wt*ft*qe*xt,We,!0),zt=!zt,xn+=sn*xt}},convertPolygonToPath:function(){var We,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,ft=this.or.v,rn=this.os.v,sn=2*Math.PI*ft/(4*Ne),zt=.5*-Math.PI,po=this.data.d===3?-1:1;for(zt+=this.r.v,this.v._length=0,We=0;We<Ne;We+=1){var Eo=ft*Math.cos(zt),ci=ft*Math.sin(zt),Ko=Eo===0&&ci===0?0:ci/Math.sqrt(Eo*Eo+ci*ci),lo=Eo===0&&ci===0?0:-Eo/Math.sqrt(Eo*Eo+ci*ci);Eo+=+this.p.v[0],ci+=+this.p.v[1],this.v.setTripleAt(Eo,ci,Eo-Ko*sn*rn*po,ci-lo*sn*rn*po,Eo+Ko*sn*rn*po,ci+lo*sn*rn*po,We,!0),zt+=qe*po}this.paths.length=0,this.paths[0]=this.v}},g([Ot],Xe),Xe})(),pt=(function(){function Xe(We,Ne){this.v=Mt.newElement(),this.v.c=!0,this.localShapeCollection=gn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=We,this.comp=We.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(We),this.p=Ze.getProp(We,Ne.p,1,0,this),this.s=Ze.getProp(We,Ne.s,1,0,this),this.r=Ze.getProp(We,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Xe.prototype={convertRectToPath:function(){var We=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,ft=this.s.v[1]/2,rn=I(qe,ft,this.r.v),sn=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(We+qe,Ne-ft+rn,We+qe,Ne-ft+rn,We+qe,Ne-ft+sn,0,!0),this.v.setTripleAt(We+qe,Ne+ft-rn,We+qe,Ne+ft-sn,We+qe,Ne+ft-rn,1,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne+ft,We+qe-rn,Ne+ft,We+qe-sn,Ne+ft,2,!0),this.v.setTripleAt(We-qe+rn,Ne+ft,We-qe+sn,Ne+ft,We-qe+rn,Ne+ft,3,!0),this.v.setTripleAt(We-qe,Ne+ft-rn,We-qe,Ne+ft-rn,We-qe,Ne+ft-sn,4,!0),this.v.setTripleAt(We-qe,Ne-ft+rn,We-qe,Ne-ft+sn,We-qe,Ne-ft+rn,5,!0),this.v.setTripleAt(We-qe+rn,Ne-ft,We-qe+rn,Ne-ft,We-qe+sn,Ne-ft,6,!0),this.v.setTripleAt(We+qe-rn,Ne-ft,We+qe-sn,Ne-ft,We+qe-rn,Ne-ft,7,!0)):(this.v.setTripleAt(We-qe,Ne+ft,We-qe+sn,Ne+ft,We-qe,Ne+ft,2),this.v.setTripleAt(We-qe,Ne-ft,We-qe,Ne-ft+sn,We-qe,Ne-ft,3))):(this.v.setTripleAt(We+qe,Ne-ft+rn,We+qe,Ne-ft+sn,We+qe,Ne-ft+rn,0,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne-ft,We+qe-rn,Ne-ft,We+qe-sn,Ne-ft,1,!0),this.v.setTripleAt(We-qe+rn,Ne-ft,We-qe+sn,Ne-ft,We-qe+rn,Ne-ft,2,!0),this.v.setTripleAt(We-qe,Ne-ft+rn,We-qe,Ne-ft+rn,We-qe,Ne-ft+sn,3,!0),this.v.setTripleAt(We-qe,Ne+ft-rn,We-qe,Ne+ft-sn,We-qe,Ne+ft-rn,4,!0),this.v.setTripleAt(We-qe+rn,Ne+ft,We-qe+rn,Ne+ft,We-qe+sn,Ne+ft,5,!0),this.v.setTripleAt(We+qe-rn,Ne+ft,We+qe-sn,Ne+ft,We+qe-rn,Ne+ft,6,!0),this.v.setTripleAt(We+qe,Ne+ft-rn,We+qe,Ne+ft-rn,We+qe,Ne+ft-sn,7,!0)):(this.v.setTripleAt(We-qe,Ne-ft,We-qe+sn,Ne-ft,We-qe,Ne-ft,1,!0),this.v.setTripleAt(We-qe,Ne+ft,We-qe,Ne+ft-sn,We-qe,Ne+ft,2,!0),this.v.setTripleAt(We+qe,Ne+ft,We+qe-sn,Ne+ft,We+qe,Ne+ft,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:xe},g([Ot],Xe),Xe})();function At(Xe,We,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?We.pt:We.ks).k.length?new Rt(Xe,We,Ne):new Qe(Xe,We,Ne):Ne===5?qe=new pt(Xe,We):Ne===6?qe=new Jt(Xe,We):Ne===7&&(qe=new et(Xe,We)),qe.k&&Xe.addDynamicProperty(qe),qe}function Tt(){return Qe}function Kt(){return Rt}var en={};return en.getShapeProp=At,en.getConstructorFunction=Tt,en.getKeyframedConstructorFunction=Kt,en})(),jt=(function(){var Y=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function Ae(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function Ee(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(ht,-wt,0,0,wt,ht,0,0,0,0,1,0,0,0,0,1)}function Re(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(1,0,0,0,0,ht,-wt,0,0,wt,ht,0,0,0,0,1)}function Qe(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(ht,0,wt,0,0,1,0,0,-wt,0,ht,0,0,0,0,1)}function Ye(ze){if(ze===0)return this;var ht=Y(ze),wt=X(ze);return this._t(ht,-wt,0,0,wt,ht,0,0,0,0,1,0,0,0,0,1)}function Rt(ze,ht){return this._t(1,ht,ze,1,0,0)}function Jt(ze,ht){return this.shear(pe(ze),pe(ht))}function et(ze,ht){var wt=Y(ht),xi=X(ht);return this._t(wt,xi,0,0,-xi,wt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,pe(ze),1,0,0,0,0,1,0,0,0,0,1)._t(wt,-xi,0,0,xi,wt,0,0,0,0,1,0,0,0,0,1)}function pt(ze,ht,wt){return!wt&&wt!==0&&(wt=1),ze===1&&ht===1&&wt===1?this:this._t(ze,0,0,0,0,ht,0,0,0,0,wt,0,0,0,0,1)}function At(ze,ht,wt,xi,Zo,Po,Ca,Jo,fl,ga,Xa,E0,C2,I0,D0,nh){return this.props[0]=ze,this.props[1]=ht,this.props[2]=wt,this.props[3]=xi,this.props[4]=Zo,this.props[5]=Po,this.props[6]=Ca,this.props[7]=Jo,this.props[8]=fl,this.props[9]=ga,this.props[10]=Xa,this.props[11]=E0,this.props[12]=C2,this.props[13]=I0,this.props[14]=D0,this.props[15]=nh,this}function Tt(ze,ht,wt){return wt=wt||0,ze!==0||ht!==0||wt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ze,ht,wt,1):this}function Kt(ze,ht,wt,xi,Zo,Po,Ca,Jo,fl,ga,Xa,E0,C2,I0,D0,nh){var dr=this.props;if(ze===1&&ht===0&&wt===0&&xi===0&&Zo===0&&Po===1&&Ca===0&&Jo===0&&fl===0&&ga===0&&Xa===1&&E0===0)return dr[12]=dr[12]*ze+dr[15]*C2,dr[13]=dr[13]*Po+dr[15]*I0,dr[14]=dr[14]*Xa+dr[15]*D0,dr[15]*=nh,this._identityCalculated=!1,this;var Ek=dr[0],Ik=dr[1],ww=dr[2],Wf=dr[3],x5=dr[4],ih=dr[5],U7=dr[6],W7=dr[7],A2=dr[8],Q7=dr[9],v2=dr[10],Cw=dr[11],R_=dr[12],z_=dr[13],N_=dr[14],__=dr[15];return dr[0]=Ek*ze+Ik*Zo+ww*fl+Wf*C2,dr[1]=Ek*ht+Ik*Po+ww*ga+Wf*I0,dr[2]=Ek*wt+Ik*Ca+ww*Xa+Wf*D0,dr[3]=Ek*xi+Ik*Jo+ww*E0+Wf*nh,dr[4]=x5*ze+ih*Zo+U7*fl+W7*C2,dr[5]=x5*ht+ih*Po+U7*ga+W7*I0,dr[6]=x5*wt+ih*Ca+U7*Xa+W7*D0,dr[7]=x5*xi+ih*Jo+U7*E0+W7*nh,dr[8]=A2*ze+Q7*Zo+v2*fl+Cw*C2,dr[9]=A2*ht+Q7*Po+v2*ga+Cw*I0,dr[10]=A2*wt+Q7*Ca+v2*Xa+Cw*D0,dr[11]=A2*xi+Q7*Jo+v2*E0+Cw*nh,dr[12]=R_*ze+z_*Zo+N_*fl+__*C2,dr[13]=R_*ht+z_*Po+N_*ga+__*I0,dr[14]=R_*wt+z_*Ca+N_*Xa+__*D0,dr[15]=R_*xi+z_*Jo+N_*E0+__*nh,this._identityCalculated=!1,this}function en(ze){var ht=ze.props;return this.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15])}function Xe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function We(ze){for(var ht=0;ht<16;){if(ze.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function Ne(ze){var ht;for(ht=0;ht<16;ht+=1)ze.props[ht]=this.props[ht];return ze}function qe(ze){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=ze[ht]}function ft(ze,ht,wt){return{x:ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12],y:ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13],z:ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]}}function rn(ze,ht,wt){return ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12]}function sn(ze,ht,wt){return ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13]}function zt(ze,ht,wt){return ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]}function po(){var ze=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/ze,wt=-this.props[1]/ze,xi=-this.props[4]/ze,Zo=this.props[0]/ze,Po=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ze,Ca=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ze,Jo=new jt;return Jo.props[0]=ht,Jo.props[1]=wt,Jo.props[4]=xi,Jo.props[5]=Zo,Jo.props[12]=Po,Jo.props[13]=Ca,Jo}function Eo(ze){return this.getInverseMatrix().applyToPointArray(ze[0],ze[1],ze[2]||0)}function ci(ze){var ht,wt=ze.length,xi=[];for(ht=0;ht<wt;ht+=1)xi[ht]=Eo(ze[ht]);return xi}function Ko(ze,ht,wt){var xi=y("float32",6);if(this.isIdentity())xi[0]=ze[0],xi[1]=ze[1],xi[2]=ht[0],xi[3]=ht[1],xi[4]=wt[0],xi[5]=wt[1];else{var Zo=this.props[0],Po=this.props[1],Ca=this.props[4],Jo=this.props[5],fl=this.props[12],ga=this.props[13];xi[0]=ze[0]*Zo+ze[1]*Ca+fl,xi[1]=ze[0]*Po+ze[1]*Jo+ga,xi[2]=ht[0]*Zo+ht[1]*Ca+fl,xi[3]=ht[0]*Po+ht[1]*Jo+ga,xi[4]=wt[0]*Zo+wt[1]*Ca+fl,xi[5]=wt[0]*Po+wt[1]*Jo+ga}return xi}function lo(ze,ht,wt){return this.isIdentity()?[ze,ht,wt]:[ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12],ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13],ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]]}function Vt(ze,ht){if(this.isIdentity())return ze+","+ht;var wt=this.props;return Math.round(100*(ze*wt[0]+ht*wt[4]+wt[12]))/100+","+Math.round(100*(ze*wt[1]+ht*wt[5]+wt[13]))/100}function xn(){for(var ze=0,ht=this.props,wt="matrix3d(",xi=1e4;ze<16;)wt+=xe(ht[ze]*xi)/xi,wt+=ze===15?")":",",ze+=1;return wt}function xt(ze){var ht=1e4;return ze<1e-6&&ze>0||ze>-1e-6&&ze<0?xe(ze*ht)/ht:ze}function dt(){var ze=this.props;return"matrix("+xt(ze[0])+","+xt(ze[1])+","+xt(ze[4])+","+xt(ze[5])+","+xt(ze[12])+","+xt(ze[13])+")"}return function(){this.reset=Ae,this.rotate=Ee,this.rotateX=Re,this.rotateY=Qe,this.rotateZ=Ye,this.skew=Jt,this.skewFromAxis=et,this.shear=Rt,this.scale=pt,this.setTransform=At,this.translate=Tt,this.transform=Kt,this.multiply=en,this.applyToPoint=ft,this.applyToX=rn,this.applyToY=sn,this.applyToZ=zt,this.applyToPointArray=lo,this.applyToTriplePoints=Ko,this.applyToPointStringified=Vt,this.toCSS=xn,this.to2dCSS=dt,this.clone=Ne,this.cloneFromProps=qe,this.equals=We,this.inversePoints=ci,this.inversePoint=Eo,this.getInverseMatrix=po,this._t=this.transform,this.isIdentity=Xe,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function bn(Y){return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},bn(Y)}var Yt={};function an(Y){u(Y)}function Zt(){Te.searchAnimations()}function nt(Y){K(Y)}function kn(Y){oe(Y)}function Bn(Y){return Te.loadAnimation(Y)}function gi(Y){if(typeof Y=="string")switch(Y){case"high":ne(200);break;default:case"medium":ne(50);break;case"low":ne(10)}else!isNaN(Y)&&Y>1&&ne(Y)}function to(){return typeof navigator<"u"}function ui(Y,X){Y==="expressions"&&ee(X)}function Xt(Y){switch(Y){case"propertyFactory":return Ze;case"shapePropertyFactory":return at;case"matrix":return jt;default:return null}}function Rn(){document.readyState==="complete"&&(clearInterval(Xn),Zt())}function Yn(Y){for(var X=Gn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==Y)return decodeURIComponent(xe[1])}return null}Yt.play=Te.play,Yt.pause=Te.pause,Yt.setLocationHref=an,Yt.togglePause=Te.togglePause,Yt.setSpeed=Te.setSpeed,Yt.setDirection=Te.setDirection,Yt.stop=Te.stop,Yt.searchAnimations=Zt,Yt.registerAnimation=Te.registerAnimation,Yt.loadAnimation=Bn,Yt.setSubframeRendering=nt,Yt.resize=Te.resize,Yt.goToAndStop=Te.goToAndStop,Yt.destroy=Te.destroy,Yt.setQuality=gi,Yt.inBrowser=to,Yt.installPlugin=ui,Yt.freeze=Te.freeze,Yt.unfreeze=Te.unfreeze,Yt.setVolume=Te.setVolume,Yt.mute=Te.mute,Yt.unmute=Te.unmute,Yt.getRegisteredAnimations=Te.getRegisteredAnimations,Yt.useWebWorker=c,Yt.setIDPrefix=kn,Yt.__getFactory=Xt,Yt.version="5.13.0";var Gn="",ei=document.getElementsByTagName("script"),pi=ei.length-1,vn=ei[pi]||{src:""};Gn=vn.src?vn.src.replace(/^[^\?]+\??/,""):"",Yn("renderer");var Xn=setInterval(Rn,100);try{bn(n)!=="object"&&(window.bodymovin=Yt)}catch{}var un=(function(){var Y={},X={};function pe(Ae,Ee){X[Ae]||(X[Ae]=Ee)}function xe(Ae,Ee,Re){return new X[Ae](Ee,Re)}return Y.registerModifier=pe,Y.getModifier=xe,Y})();function Tn(){}function It(){}function Ft(){}Tn.prototype.initModifierProperties=function(){},Tn.prototype.addShapeToModifier=function(){},Tn.prototype.addShape=function(Y){if(!this.closed){Y.sh.container.addDynamicProperty(Y.sh);var X={shape:Y.sh,data:Y,localShapeCollection:gn.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&Y.setAsAnimated()}},Tn.prototype.init=function(Y,X){this.shapes=[],this.elem=Y,this.initDynamicPropertyContainer(Y),this.initModifierProperties(Y,X),this.frameId=l,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Tn.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},g([Ot],Tn),g([Tn],It),It.prototype.initModifierProperties=function(Y,X){this.s=Ze.getProp(Y,X.s,0,.01,this),this.e=Ze.getProp(Y,X.e,0,.01,this),this.o=Ze.getProp(Y,X.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=X.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},It.prototype.addShapeToModifier=function(Y){Y.pathsData=[]},It.prototype.calculateShapeEdges=function(Y,X,pe,xe,Ae){var Ee=[];X<=1?Ee.push({s:Y,e:X}):Y>=1?Ee.push({s:Y-1,e:X-1}):(Ee.push({s:Y,e:1}),Ee.push({s:0,e:X-1}));var Re,Qe,Ye=[],Rt=Ee.length;for(Re=0;Re<Rt;Re+=1)if(!((Qe=Ee[Re]).e*Ae<xe||Qe.s*Ae>xe+pe)){var Jt,et;Jt=Qe.s*Ae<=xe?0:(Qe.s*Ae-xe)/pe,et=Qe.e*Ae>=xe+pe?1:(Qe.e*Ae-xe)/pe,Ye.push([Jt,et])}return Ye.length||Ye.push([0,0]),Ye},It.prototype.releasePathsData=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)ke.release(Y[X]);return Y.length=0,Y},It.prototype.processShapes=function(Y){var X,pe;if(this._mdf||Y){var xe=this.o.v%360/360;if(xe<0&&(xe+=1),(X=this.s.v>1?1+xe:this.s.v<0?0+xe:this.s.v+xe)>(pe=this.e.v>1?1+xe:this.e.v<0?0+xe:this.e.v+xe)){var Ae=X;X=pe,pe=Ae}X=1e-4*Math.round(1e4*X),pe=1e-4*Math.round(1e4*pe),this.sValue=X,this.eValue=pe}else X=this.sValue,pe=this.eValue;var Ee,Re,Qe,Ye,Rt,Jt,et,pt=this.shapes.length,At=0;if(pe===X)for(Re=0;Re<pt;Re+=1)this.shapes[Re].localShapeCollection.releaseShapes(),this.shapes[Re].shape._mdf=!0,this.shapes[Re].shape.paths=this.shapes[Re].localShapeCollection,this._mdf&&(this.shapes[Re].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Re=0;Re<pt;Re+=1)this.shapes[Re].pathsData.length=0,this.shapes[Re].shape._mdf=!0}else{var Tt,Kt,en=[];for(Re=0;Re<pt;Re+=1)if((Tt=this.shapes[Re]).shape._mdf||this._mdf||Y||this.m===2){if(Ye=(Ee=Tt.shape.paths)._length,et=0,!Tt.shape._mdf&&Tt.pathsData.length)et=Tt.totalShapeLength;else{for(Rt=this.releasePathsData(Tt.pathsData),Qe=0;Qe<Ye;Qe+=1)Jt=De.getSegmentsLength(Ee.shapes[Qe]),Rt.push(Jt),et+=Jt.totalLength;Tt.totalShapeLength=et,Tt.pathsData=Rt}At+=et,Tt.shape._mdf=!0}else Tt.shape.paths=Tt.localShapeCollection;var Xe,We=X,Ne=pe,qe=0;for(Re=pt-1;Re>=0;Re-=1)if((Tt=this.shapes[Re]).shape._mdf){for((Kt=Tt.localShapeCollection).releaseShapes(),this.m===2&&pt>1?(Xe=this.calculateShapeEdges(X,pe,Tt.totalShapeLength,qe,At),qe+=Tt.totalShapeLength):Xe=[[We,Ne]],Ye=Xe.length,Qe=0;Qe<Ye;Qe+=1){We=Xe[Qe][0],Ne=Xe[Qe][1],en.length=0,Ne<=1?en.push({s:Tt.totalShapeLength*We,e:Tt.totalShapeLength*Ne}):We>=1?en.push({s:Tt.totalShapeLength*(We-1),e:Tt.totalShapeLength*(Ne-1)}):(en.push({s:Tt.totalShapeLength*We,e:Tt.totalShapeLength}),en.push({s:0,e:Tt.totalShapeLength*(Ne-1)}));var ft=this.addShapes(Tt,en[0]);if(en[0].s!==en[0].e){if(en.length>1)if(Tt.shape.paths.shapes[Tt.shape.paths._length-1].c){var rn=ft.pop();this.addPaths(ft,Kt),ft=this.addShapes(Tt,en[1],rn)}else this.addPaths(ft,Kt),ft=this.addShapes(Tt,en[1]);this.addPaths(ft,Kt)}}Tt.shape.paths=Kt}}},It.prototype.addPaths=function(Y,X){var pe,xe=Y.length;for(pe=0;pe<xe;pe+=1)X.addShape(Y[pe])},It.prototype.addSegment=function(Y,X,pe,xe,Ae,Ee,Re){Ae.setXYAt(X[0],X[1],"o",Ee),Ae.setXYAt(pe[0],pe[1],"i",Ee+1),Re&&Ae.setXYAt(Y[0],Y[1],"v",Ee),Ae.setXYAt(xe[0],xe[1],"v",Ee+1)},It.prototype.addSegmentFromArray=function(Y,X,pe,xe){X.setXYAt(Y[1],Y[5],"o",pe),X.setXYAt(Y[2],Y[6],"i",pe+1),xe&&X.setXYAt(Y[0],Y[4],"v",pe),X.setXYAt(Y[3],Y[7],"v",pe+1)},It.prototype.addShapes=function(Y,X,pe){var xe,Ae,Ee,Re,Qe,Ye,Rt,Jt,et=Y.pathsData,pt=Y.shape.paths.shapes,At=Y.shape.paths._length,Tt=0,Kt=[],en=!0;for(pe?(Qe=pe._length,Jt=pe._length):(pe=Mt.newElement(),Qe=0,Jt=0),Kt.push(pe),xe=0;xe<At;xe+=1){for(Ye=et[xe].lengths,pe.c=pt[xe].c,Ee=pt[xe].c?Ye.length:Ye.length+1,Ae=1;Ae<Ee;Ae+=1)if(Tt+(Re=Ye[Ae-1]).addedLength<X.s)Tt+=Re.addedLength,pe.c=!1;else{if(Tt>X.e){pe.c=!1;break}X.s<=Tt&&X.e>=Tt+Re.addedLength?(this.addSegment(pt[xe].v[Ae-1],pt[xe].o[Ae-1],pt[xe].i[Ae],pt[xe].v[Ae],pe,Qe,en),en=!1):(Rt=De.getNewSegment(pt[xe].v[Ae-1],pt[xe].v[Ae],pt[xe].o[Ae-1],pt[xe].i[Ae],(X.s-Tt)/Re.addedLength,(X.e-Tt)/Re.addedLength,Ye[Ae-1]),this.addSegmentFromArray(Rt,pe,Qe,en),en=!1,pe.c=!1),Tt+=Re.addedLength,Qe+=1}if(pt[xe].c&&Ye.length){if(Re=Ye[Ae-1],Tt<=X.e){var Xe=Ye[Ae-1].addedLength;X.s<=Tt&&X.e>=Tt+Xe?(this.addSegment(pt[xe].v[Ae-1],pt[xe].o[Ae-1],pt[xe].i[0],pt[xe].v[0],pe,Qe,en),en=!1):(Rt=De.getNewSegment(pt[xe].v[Ae-1],pt[xe].v[0],pt[xe].o[Ae-1],pt[xe].i[0],(X.s-Tt)/Xe,(X.e-Tt)/Xe,Ye[Ae-1]),this.addSegmentFromArray(Rt,pe,Qe,en),en=!1,pe.c=!1)}else pe.c=!1;Tt+=Re.addedLength,Qe+=1}if(pe._length&&(pe.setXYAt(pe.v[Jt][0],pe.v[Jt][1],"i",Jt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),Tt>X.e)break;xe<At-1&&(pe=Mt.newElement(),en=!0,Kt.push(pe),Qe=0)}return Kt},g([Tn],Ft),Ft.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.amount=Ze.getProp(Y,X.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ft.prototype.processPath=function(Y,X){var pe=X/100,xe=[0,0],Ae=Y._length,Ee=0;for(Ee=0;Ee<Ae;Ee+=1)xe[0]+=Y.v[Ee][0],xe[1]+=Y.v[Ee][1];xe[0]/=Ae,xe[1]/=Ae;var Re,Qe,Ye,Rt,Jt,et,pt=Mt.newElement();for(pt.c=Y.c,Ee=0;Ee<Ae;Ee+=1)Re=Y.v[Ee][0]+(xe[0]-Y.v[Ee][0])*pe,Qe=Y.v[Ee][1]+(xe[1]-Y.v[Ee][1])*pe,Ye=Y.o[Ee][0]+(xe[0]-Y.o[Ee][0])*-pe,Rt=Y.o[Ee][1]+(xe[1]-Y.o[Ee][1])*-pe,Jt=Y.i[Ee][0]+(xe[0]-Y.i[Ee][0])*-pe,et=Y.i[Ee][1]+(xe[1]-Y.i[Ee][1])*-pe,pt.setTripleAt(Re,Qe,Ye,Rt,Jt,et,Ee);return pt},Ft.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Bt=(function(){var Y=[0,0];function X(Ye){var Rt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Rt,this.a&&Ye.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Ye.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Ye.skewFromAxis(-this.sk.v,this.sa.v),this.r?Ye.rotate(-this.r.v):Ye.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Ye.translate(this.px.v,this.py.v,-this.pz.v):Ye.translate(this.px.v,this.py.v,0):Ye.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Ye){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Ye){var Rt;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Jt,et;if(Rt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Jt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/Rt,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/Rt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Jt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Rt,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Rt,0)):(Jt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Rt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Jt=[],et=[];var pt=this.px,At=this.py;pt._caching.lastFrame+pt.offsetTime<=pt.keyframes[0].t?(Jt[0]=pt.getValueAtTime((pt.keyframes[0].t+.01)/Rt,0),Jt[1]=At.getValueAtTime((At.keyframes[0].t+.01)/Rt,0),et[0]=pt.getValueAtTime(pt.keyframes[0].t/Rt,0),et[1]=At.getValueAtTime(At.keyframes[0].t/Rt,0)):pt._caching.lastFrame+pt.offsetTime>=pt.keyframes[pt.keyframes.length-1].t?(Jt[0]=pt.getValueAtTime(pt.keyframes[pt.keyframes.length-1].t/Rt,0),Jt[1]=At.getValueAtTime(At.keyframes[At.keyframes.length-1].t/Rt,0),et[0]=pt.getValueAtTime((pt.keyframes[pt.keyframes.length-1].t-.01)/Rt,0),et[1]=At.getValueAtTime((At.keyframes[At.keyframes.length-1].t-.01)/Rt,0)):(Jt=[pt.pv,At.pv],et[0]=pt.getValueAtTime((pt._caching.lastFrame+pt.offsetTime-.01)/Rt,pt.offsetTime),et[1]=At.getValueAtTime((At._caching.lastFrame+At.offsetTime-.01)/Rt,At.offsetTime))}else Jt=et=Y;this.v.rotate(-Math.atan2(Jt[1]-et[1],Jt[0]-et[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function xe(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function Ae(){}function Ee(Ye){this._addDynamicProperty(Ye),this.elem.addDynamicProperty(Ye),this._isDirty=!0}function Re(Ye,Rt,Jt){if(this.elem=Ye,this.frameId=-1,this.propType="transform",this.data=Rt,this.v=new jt,this.pre=new jt,this.appliedTransformations=0,this.initDynamicPropertyContainer(Jt||Ye),Rt.p&&Rt.p.s?(this.px=Ze.getProp(Ye,Rt.p.x,0,0,this),this.py=Ze.getProp(Ye,Rt.p.y,0,0,this),Rt.p.z&&(this.pz=Ze.getProp(Ye,Rt.p.z,0,0,this))):this.p=Ze.getProp(Ye,Rt.p||{k:[0,0,0]},1,0,this),Rt.rx){if(this.rx=Ze.getProp(Ye,Rt.rx,0,D,this),this.ry=Ze.getProp(Ye,Rt.ry,0,D,this),this.rz=Ze.getProp(Ye,Rt.rz,0,D,this),Rt.or.k[0].ti){var et,pt=Rt.or.k.length;for(et=0;et<pt;et+=1)Rt.or.k[et].to=null,Rt.or.k[et].ti=null}this.or=Ze.getProp(Ye,Rt.or,1,D,this),this.or.sh=!0}else this.r=Ze.getProp(Ye,Rt.r||{k:0},0,D,this);Rt.sk&&(this.sk=Ze.getProp(Ye,Rt.sk,0,D,this),this.sa=Ze.getProp(Ye,Rt.sa,0,D,this)),this.a=Ze.getProp(Ye,Rt.a||{k:[0,0,0]},1,0,this),this.s=Ze.getProp(Ye,Rt.s||{k:[100,100,100]},1,.01,this),Rt.o?this.o=Ze.getProp(Ye,Rt.o,0,.01,Ye):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Qe(Ye,Rt,Jt){return new Re(Ye,Rt,Jt)}return Re.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ae},g([Ot],Re),Re.prototype.addDynamicProperty=Ee,Re.prototype._addDynamicProperty=Ot.prototype.addDynamicProperty,{getTransformProperty:Qe}})();function Fn(){}function _n(){}function Ut(Y,X){return 1e5*Math.abs(Y-X)<=Math.min(Math.abs(Y),Math.abs(X))}function Li(Y){return Math.abs(Y)<=1e-5}function si(Y,X,pe){return Y*(1-pe)+X*pe}function $o(Y,X,pe){return[si(Y[0],X[0],pe),si(Y[1],X[1],pe)]}function qi(Y,X,pe){if(Y===0)return[];var xe=X*X-4*Y*pe;if(xe<0)return[];var Ae=-X/(2*Y);if(xe===0)return[Ae];var Ee=Math.sqrt(xe)/(2*Y);return[Ae-Ee,Ae+Ee]}function Ci(Y,X,pe,xe){return[3*X-Y-3*pe+xe,3*Y-6*X+3*pe,-3*Y+3*X,Y]}function Un(Y){return new pn(Y,Y,Y,Y,!1)}function pn(Y,X,pe,xe,Ae){Ae&&so(Y,X)&&(X=$o(Y,xe,1/3)),Ae&&so(pe,xe)&&(pe=$o(Y,xe,2/3));var Ee=Ci(Y[0],X[0],pe[0],xe[0]),Re=Ci(Y[1],X[1],pe[1],xe[1]);this.a=[Ee[0],Re[0]],this.b=[Ee[1],Re[1]],this.c=[Ee[2],Re[2]],this.d=[Ee[3],Re[3]],this.points=[Y,X,pe,xe]}function Gt(Y,X){var pe=Y.points[0][X],xe=Y.points[Y.points.length-1][X];if(pe>xe){var Ae=xe;xe=pe,pe=Ae}for(var Ee=qi(3*Y.a[X],2*Y.b[X],Y.c[X]),Re=0;Re<Ee.length;Re+=1)if(Ee[Re]>0&&Ee[Re]<1){var Qe=Y.point(Ee[Re])[X];Qe<pe?pe=Qe:Qe>xe&&(xe=Qe)}return{min:pe,max:xe}}function Cn(Y,X,pe){var xe=Y.boundingBox();return{cx:xe.cx,cy:xe.cy,width:xe.width,height:xe.height,bez:Y,t:(X+pe)/2,t1:X,t2:pe}}function Vn(Y){var X=Y.bez.split(.5);return[Cn(X[0],Y.t1,Y.t),Cn(X[1],Y.t,Y.t2)]}function fn(Y,X){return 2*Math.abs(Y.cx-X.cx)<Y.width+X.width&&2*Math.abs(Y.cy-X.cy)<Y.height+X.height}function Ht(Y,X,pe,xe,Ae,Ee){if(fn(Y,X)){if(pe>=Ee||Y.width<=xe&&Y.height<=xe&&X.width<=xe&&X.height<=xe)return void Ae.push([Y.t,X.t]);var Re=Vn(Y),Qe=Vn(X);Ht(Re[0],Qe[0],pe+1,xe,Ae,Ee),Ht(Re[0],Qe[1],pe+1,xe,Ae,Ee),Ht(Re[1],Qe[0],pe+1,xe,Ae,Ee),Ht(Re[1],Qe[1],pe+1,xe,Ae,Ee)}}function Pn(Y,X){return[Y[1]*X[2]-Y[2]*X[1],Y[2]*X[0]-Y[0]*X[2],Y[0]*X[1]-Y[1]*X[0]]}function Ki(Y,X,pe,xe){var Ae=[Y[0],Y[1],1],Ee=[X[0],X[1],1],Re=[pe[0],pe[1],1],Qe=[xe[0],xe[1],1],Ye=Pn(Pn(Ae,Ee),Pn(Re,Qe));return Li(Ye[2])?null:[Ye[0]/Ye[2],Ye[1]/Ye[2]]}function Zi(Y,X,pe){return[Y[0]+Math.cos(X)*pe,Y[1]-Math.sin(X)*pe]}function Qo(Y,X){return Math.hypot(Y[0]-X[0],Y[1]-X[1])}function so(Y,X){return Ut(Y[0],X[0])&&Ut(Y[1],X[1])}function ha(){}function yr(Y,X,pe,xe,Ae,Ee,Re){var Qe=pe-Math.PI/2,Ye=pe+Math.PI/2,Rt=X[0]+Math.cos(pe)*xe*Ae,Jt=X[1]-Math.sin(pe)*xe*Ae;Y.setTripleAt(Rt,Jt,Rt+Math.cos(Qe)*Ee,Jt-Math.sin(Qe)*Ee,Rt+Math.cos(Ye)*Re,Jt-Math.sin(Ye)*Re,Y.length())}function Da(Y,X){var pe=[X[0]-Y[0],X[1]-Y[1]],xe=.5*-Math.PI;return[Math.cos(xe)*pe[0]-Math.sin(xe)*pe[1],Math.sin(xe)*pe[0]+Math.cos(xe)*pe[1]]}function En(Y,X){var pe=X===0?Y.length()-1:X-1,xe=(X+1)%Y.length(),Ae=Da(Y.v[pe],Y.v[xe]);return Math.atan2(0,1)-Math.atan2(Ae[1],Ae[0])}function Dt(Y,X,pe,xe,Ae,Ee,Re){var Qe=En(X,pe),Ye=X.v[pe%X._length],Rt=X.v[pe===0?X._length-1:pe-1],Jt=X.v[(pe+1)%X._length],et=Ee===2?Math.sqrt(Math.pow(Ye[0]-Rt[0],2)+Math.pow(Ye[1]-Rt[1],2)):0,pt=Ee===2?Math.sqrt(Math.pow(Ye[0]-Jt[0],2)+Math.pow(Ye[1]-Jt[1],2)):0;yr(Y,X.v[pe%X._length],Qe,Re,xe,pt/(2*(Ae+1)),et/(2*(Ae+1)))}function Mn(Y,X,pe,xe,Ae,Ee){for(var Re=0;Re<xe;Re+=1){var Qe=(Re+1)/(xe+1),Ye=Ae===2?Math.sqrt(Math.pow(X.points[3][0]-X.points[0][0],2)+Math.pow(X.points[3][1]-X.points[0][1],2)):0,Rt=X.normalAngle(Qe);yr(Y,X.point(Qe),Rt,Ee,pe,Ye/(2*(xe+1)),Ye/(2*(xe+1))),Ee=-Ee}return Ee}function wi(Y,X,pe){var xe=Math.atan2(X[0]-Y[0],X[1]-Y[1]);return[Zi(Y,xe,pe),Zi(X,xe,pe)]}function $i(Y,X){var pe,xe,Ae,Ee,Re,Qe,Ye;pe=(Ye=wi(Y.points[0],Y.points[1],X))[0],xe=Ye[1],Ae=(Ye=wi(Y.points[1],Y.points[2],X))[0],Ee=Ye[1],Re=(Ye=wi(Y.points[2],Y.points[3],X))[0],Qe=Ye[1];var Rt=Ki(pe,xe,Ae,Ee);Rt===null&&(Rt=xe);var Jt=Ki(Re,Qe,Ae,Ee);return Jt===null&&(Jt=Re),new pn(pe,Rt,Jt,Qe)}function Qi(Y,X,pe,xe,Ae){var Ee=X.points[3],Re=pe.points[0];if(xe===3||so(Ee,Re))return Ee;if(xe===2){var Qe=-X.tangentAngle(1),Ye=-pe.tangentAngle(0)+Math.PI,Rt=Ki(Ee,Zi(Ee,Qe+Math.PI/2,100),Re,Zi(Re,Qe+Math.PI/2,100)),Jt=Rt?Qo(Rt,Ee):Qo(Ee,Re)/2,et=Zi(Ee,Qe,2*Jt*L);return Y.setXYAt(et[0],et[1],"o",Y.length()-1),et=Zi(Re,Ye,2*Jt*L),Y.setTripleAt(Re[0],Re[1],Re[0],Re[1],et[0],et[1],Y.length()),Re}var pt=Ki(so(Ee,X.points[2])?X.points[0]:X.points[2],Ee,Re,so(Re,pe.points[1])?pe.points[3]:pe.points[1]);return pt&&Qo(pt,Ee)<Ae?(Y.setTripleAt(pt[0],pt[1],pt[0],pt[1],pt[0],pt[1],Y.length()),pt):Ee}function vi(Y,X){var pe=Y.intersections(X);return pe.length&&Ut(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Ho(Y,X){var pe=Y.slice(),xe=X.slice(),Ae=vi(Y[Y.length-1],X[0]);return Ae&&(pe[Y.length-1]=Y[Y.length-1].split(Ae[0])[0],xe[0]=X[0].split(Ae[1])[1]),Y.length>1&&X.length>1&&(Ae=vi(Y[0],X[X.length-1]))?[[Y[0].split(Ae[0])[0]],[X[X.length-1].split(Ae[1])[1]]]:[pe,xe]}function fi(Y){for(var X,pe=1;pe<Y.length;pe+=1)X=Ho(Y[pe-1],Y[pe]),Y[pe-1]=X[0],Y[pe]=X[1];return Y.length>1&&(X=Ho(Y[Y.length-1],Y[0]),Y[Y.length-1]=X[0],Y[0]=X[1]),Y}function fo(Y,X){var pe,xe,Ae,Ee,Re=Y.inflectionPoints();if(Re.length===0)return[$i(Y,X)];if(Re.length===1||Ut(Re[1],1))return pe=(Ae=Y.split(Re[0]))[0],xe=Ae[1],[$i(pe,X),$i(xe,X)];pe=(Ae=Y.split(Re[0]))[0];var Qe=(Re[1]-Re[0])/(1-Re[0]);return Ee=(Ae=Ae[1].split(Qe))[0],xe=Ae[1],[$i(pe,X),$i(Ee,X),$i(xe,X)]}function br(){}function _t(Y){for(var X,pe=Y.fStyle?Y.fStyle.split(" "):[],xe="normal",Ae="normal",Ee=pe.length,Re=0;Re<Ee;Re+=1)switch(X=pe[Re].toLowerCase(),X){case"italic":Ae="italic";break;case"bold":xe="700";break;case"black":xe="900";break;case"medium":xe="500";break;case"regular":case"normal":xe="400";break;case"light":case"thin":xe="200"}return{style:Ae,weight:Y.fWeight||xe}}g([Tn],Fn),Fn.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.c=Ze.getProp(Y,X.c,0,null,this),this.o=Ze.getProp(Y,X.o,0,null,this),this.tr=Bt.getTransformProperty(Y,X.tr,this),this.so=Ze.getProp(Y,X.tr.so,0,.01,this),this.eo=Ze.getProp(Y,X.tr.eo,0,.01,this),this.data=X,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new jt,this.rMatrix=new jt,this.sMatrix=new jt,this.tMatrix=new jt,this.matrix=new jt},Fn.prototype.applyTransforms=function(Y,X,pe,xe,Ae,Ee){var Re=Ee?-1:1,Qe=xe.s.v[0]+(1-xe.s.v[0])*(1-Ae),Ye=xe.s.v[1]+(1-xe.s.v[1])*(1-Ae);Y.translate(xe.p.v[0]*Re*Ae,xe.p.v[1]*Re*Ae,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Re*Ae),X.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2]),pe.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),pe.scale(Ee?1/Qe:Qe,Ee?1/Ye:Ye),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},Fn.prototype.init=function(Y,X,pe,xe){for(this.elem=Y,this.arr=X,this.pos=pe,this.elemsData=xe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(Y),this.initModifierProperties(Y,X[pe]);pe>0;)pe-=1,this._elements.unshift(X[pe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Fn.prototype.resetElements=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)Y[X]._processed=!1,Y[X].ty==="gr"&&this.resetElements(Y[X].it)},Fn.prototype.cloneElements=function(Y){var X=JSON.parse(JSON.stringify(Y));return this.resetElements(X),X},Fn.prototype.changeGroupRender=function(Y,X){var pe,xe=Y.length;for(pe=0;pe<xe;pe+=1)Y[pe]._render=X,Y[pe].ty==="gr"&&this.changeGroupRender(Y[pe].it,X)},Fn.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re=!1;if(this._mdf||Y){var Qe,Ye=Math.ceil(this.c.v);if(this._groups.length<Ye){for(;this._groups.length<Ye;){var Rt={it:this.cloneElements(this._elements),ty:"gr"};Rt.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Rt),this._groups.splice(0,0,Rt),this._currentCopies+=1}this.elem.reloadShapes(),Re=!0}for(Ee=0,xe=0;xe<=this._groups.length-1;xe+=1){if(Qe=Ee<Ye,this._groups[xe]._render=Qe,this.changeGroupRender(this._groups[xe].it,Qe),!Qe){var Jt=this.elemsData[xe].it,et=Jt[Jt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}Ee+=1}this._currentCopies=Ye;var pt=this.o.v,At=pt%1,Tt=pt>0?Math.floor(pt):Math.ceil(pt),Kt=this.pMatrix.props,en=this.rMatrix.props,Xe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var We,Ne,qe=0;if(pt>0){for(;qe<Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),qe+=1;At&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,At,!1),qe+=At)}else if(pt<0){for(;qe>Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;At&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-At,!0),qe-=At)}for(xe=this.data.m===1?0:this._currentCopies-1,Ae=this.data.m===1?1:-1,Ee=this._currentCopies;Ee;){if(Ne=(pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props).length,X[X.length-1].transform.mProps._mdf=!0,X[X.length-1].transform.op._mdf=!0,X[X.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(xe/(this._currentCopies-1)),qe!==0){for((xe!==0&&Ae===1||xe!==this._currentCopies-1&&Ae===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(en[0],en[1],en[2],en[3],en[4],en[5],en[6],en[7],en[8],en[9],en[10],en[11],en[12],en[13],en[14],en[15]),this.matrix.transform(Xe[0],Xe[1],Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],Xe[8],Xe[9],Xe[10],Xe[11],Xe[12],Xe[13],Xe[14],Xe[15]),this.matrix.transform(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],Kt[8],Kt[9],Kt[10],Kt[11],Kt[12],Kt[13],Kt[14],Kt[15]),We=0;We<Ne;We+=1)pe[We]=this.matrix.props[We];this.matrix.reset()}else for(this.matrix.reset(),We=0;We<Ne;We+=1)pe[We]=this.matrix.props[We];qe+=1,Ee-=1,xe+=Ae}}else for(Ee=this._currentCopies,xe=0,Ae=1;Ee;)pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props,X[X.length-1].transform.mProps._mdf=!1,X[X.length-1].transform.op._mdf=!1,Ee-=1,xe+=Ae;return Re},Fn.prototype.addShape=function(){},g([Tn],_n),_n.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.rd=Ze.getProp(Y,X.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_n.prototype.processPath=function(Y,X){var pe=Mt.newElement();pe.c=Y.c;var xe,Ae,Ee,Re,Qe,Ye,Rt,Jt,et,pt,At,Tt,Kt,en=Y._length,Xe=0;for(xe=0;xe<en;xe+=1)Ae=Y.v[xe],Re=Y.o[xe],Ee=Y.i[xe],Ae[0]===Re[0]&&Ae[1]===Re[1]&&Ae[0]===Ee[0]&&Ae[1]===Ee[1]?xe!==0&&xe!==en-1||Y.c?(Qe=xe===0?Y.v[en-1]:Y.v[xe-1],Rt=(Ye=Math.sqrt(Math.pow(Ae[0]-Qe[0],2)+Math.pow(Ae[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Jt=Tt=Ae[0]+(Qe[0]-Ae[0])*Rt,et=Kt=Ae[1]-(Ae[1]-Qe[1])*Rt,pt=Jt-(Jt-Ae[0])*L,At=et-(et-Ae[1])*L,pe.setTripleAt(Jt,et,pt,At,Tt,Kt,Xe),Xe+=1,Qe=xe===en-1?Y.v[0]:Y.v[xe+1],Rt=(Ye=Math.sqrt(Math.pow(Ae[0]-Qe[0],2)+Math.pow(Ae[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Jt=pt=Ae[0]+(Qe[0]-Ae[0])*Rt,et=At=Ae[1]+(Qe[1]-Ae[1])*Rt,Tt=Jt-(Jt-Ae[0])*L,Kt=et-(et-Ae[1])*L,pe.setTripleAt(Jt,et,pt,At,Tt,Kt,Xe),Xe+=1):(pe.setTripleAt(Ae[0],Ae[1],Re[0],Re[1],Ee[0],Ee[1],Xe),Xe+=1):(pe.setTripleAt(Y.v[xe][0],Y.v[xe][1],Y.o[xe][0],Y.o[xe][1],Y.i[xe][0],Y.i[xe][1],Xe),Xe+=1);return pe},_n.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.rd.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},pn.prototype.point=function(Y){return[((this.a[0]*Y+this.b[0])*Y+this.c[0])*Y+this.d[0],((this.a[1]*Y+this.b[1])*Y+this.c[1])*Y+this.d[1]]},pn.prototype.derivative=function(Y){return[(3*Y*this.a[0]+2*this.b[0])*Y+this.c[0],(3*Y*this.a[1]+2*this.b[1])*Y+this.c[1]]},pn.prototype.tangentAngle=function(Y){var X=this.derivative(Y);return Math.atan2(X[1],X[0])},pn.prototype.normalAngle=function(Y){var X=this.derivative(Y);return Math.atan2(X[0],X[1])},pn.prototype.inflectionPoints=function(){var Y=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Li(Y))return[];var X=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/Y,pe=X*X-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/Y;if(pe<0)return[];var xe=Math.sqrt(pe);return Li(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ae){return Ae>0&&Ae<1}))},pn.prototype.split=function(Y){if(Y<=0)return[Un(this.points[0]),this];if(Y>=1)return[this,Un(this.points[this.points.length-1])];var X=$o(this.points[0],this.points[1],Y),pe=$o(this.points[1],this.points[2],Y),xe=$o(this.points[2],this.points[3],Y),Ae=$o(X,pe,Y),Ee=$o(pe,xe,Y),Re=$o(Ae,Ee,Y);return[new pn(this.points[0],X,Ae,Re,!0),new pn(Re,Ee,xe,this.points[3],!0)]},pn.prototype.bounds=function(){return{x:Gt(this,0),y:Gt(this,1)}},pn.prototype.boundingBox=function(){var Y=this.bounds();return{left:Y.x.min,right:Y.x.max,top:Y.y.min,bottom:Y.y.max,width:Y.x.max-Y.x.min,height:Y.y.max-Y.y.min,cx:(Y.x.max+Y.x.min)/2,cy:(Y.y.max+Y.y.min)/2}},pn.prototype.intersections=function(Y,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Ht(Cn(this,0,1),Cn(Y,0,1),0,X,xe,pe),xe},pn.shapeSegment=function(Y,X){var pe=(X+1)%Y.length();return new pn(Y.v[X],Y.o[X],Y.i[pe],Y.v[pe],!0)},pn.shapeSegmentInverted=function(Y,X){var pe=(X+1)%Y.length();return new pn(Y.v[pe],Y.i[pe],Y.o[X],Y.v[X],!0)},g([Tn],ha),ha.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.amplitude=Ze.getProp(Y,X.s,0,null,this),this.frequency=Ze.getProp(Y,X.r,0,null,this),this.pointsType=Ze.getProp(Y,X.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ha.prototype.processPath=function(Y,X,pe,xe){var Ae=Y._length,Ee=Mt.newElement();if(Ee.c=Y.c,Y.c||(Ae-=1),Ae===0)return Ee;var Re=-1,Qe=pn.shapeSegment(Y,0);Dt(Ee,Y,0,X,pe,xe,Re);for(var Ye=0;Ye<Ae;Ye+=1)Re=Mn(Ee,Qe,X,pe,xe,-Re),Qe=Ye!==Ae-1||Y.c?pn.shapeSegment(Y,(Ye+1)%Ae):null,Dt(Ee,Y,Ye+1,X,pe,xe,Re);return Ee},ha.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amplitude.v,Rt=Math.max(0,Math.round(this.frequency.v)),Jt=this.pointsType.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Rt,Jt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([Tn],br),br.prototype.initModifierProperties=function(Y,X){this.getValue=this.processKeys,this.amount=Ze.getProp(Y,X.a,0,null,this),this.miterLimit=Ze.getProp(Y,X.ml,0,null,this),this.lineJoin=X.lj,this._isAnimated=this.amount.effectsSequence.length!==0},br.prototype.processPath=function(Y,X,pe,xe){var Ae=Mt.newElement();Ae.c=Y.c;var Ee=Y.length();Y.c||(Ee-=1);var Re,Qe,Ye,Rt=[];for(Re=0;Re<Ee;Re+=1)Ye=pn.shapeSegment(Y,Re),Rt.push(fo(Ye,X));if(!Y.c)for(Re=Ee-1;Re>=0;Re-=1)Ye=pn.shapeSegmentInverted(Y,Re),Rt.push(fo(Ye,X));Rt=fi(Rt);var Jt=null,et=null;for(Re=0;Re<Rt.length;Re+=1){var pt=Rt[Re];for(et&&(Jt=Qi(Ae,et,pt[0],pe,xe)),et=pt[pt.length-1],Qe=0;Qe<pt.length;Qe+=1)Ye=pt[Qe],Jt&&so(Ye.points[0],Jt)?Ae.setXYAt(Ye.points[1][0],Ye.points[1][1],"o",Ae.length()-1):Ae.setTripleAt(Ye.points[0][0],Ye.points[0][1],Ye.points[1][0],Ye.points[1][1],Ye.points[0][0],Ye.points[0][1],Ae.length()),Ae.setTripleAt(Ye.points[3][0],Ye.points[3][1],Ye.points[3][0],Ye.points[3][1],Ye.points[2][0],Ye.points[2][1],Ae.length()),Jt=Ye.points[3]}return Rt.length&&Qi(Ae,et,Rt[0][0],pe,xe),Ae},br.prototype.processShapes=function(Y){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v,Rt=this.miterLimit.v,Jt=this.lineJoin;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||Y)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Jt,Rt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ln=(function(){var Y=5e3,X={w:0,size:0,shapes:[],data:{shapes:[]}},pe=[];pe=pe.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var xe=127988,Ae=917631,Ee=917601,Re=917626,Qe=65039,Ye=8205,Rt=127462,Jt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function pt(xt){var dt,ze=xt.split(","),ht=ze.length,wt=[];for(dt=0;dt<ht;dt+=1)ze[dt]!=="sans-serif"&&ze[dt]!=="monospace"&&wt.push(ze[dt]);return wt.join(",")}function At(xt,dt){var ze=h("span");ze.setAttribute("aria-hidden",!0),ze.style.fontFamily=dt;var ht=h("span");ht.innerText="giItT1WQy@!-/#",ze.style.position="absolute",ze.style.left="-10000px",ze.style.top="-10000px",ze.style.fontSize="300px",ze.style.fontVariant="normal",ze.style.fontStyle="normal",ze.style.fontWeight="normal",ze.style.letterSpacing="0",ze.appendChild(ht),document.body.appendChild(ze);var wt=ht.offsetWidth;return ht.style.fontFamily=pt(xt)+", "+dt,{node:ht,w:wt,parent:ze}}function Tt(){var xt,dt,ze,ht=this.fonts.length,wt=ht;for(xt=0;xt<ht;xt+=1)this.fonts[xt].loaded?wt-=1:this.fonts[xt].fOrigin==="n"||this.fonts[xt].origin===0?this.fonts[xt].loaded=!0:(dt=this.fonts[xt].monoCase.node,ze=this.fonts[xt].monoCase.w,dt.offsetWidth!==ze?(wt-=1,this.fonts[xt].loaded=!0):(dt=this.fonts[xt].sansCase.node,ze=this.fonts[xt].sansCase.w,dt.offsetWidth!==ze&&(wt-=1,this.fonts[xt].loaded=!0)),this.fonts[xt].loaded&&(this.fonts[xt].sansCase.parent.parentNode.removeChild(this.fonts[xt].sansCase.parent),this.fonts[xt].monoCase.parent.parentNode.removeChild(this.fonts[xt].monoCase.parent)));wt!==0&&Date.now()-this.initTime<Y?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Kt(xt,dt){var ze,ht=document.body&&dt?"svg":"canvas",wt=_t(xt);if(ht==="svg"){var xi=le("text");xi.style.fontSize="100px",xi.setAttribute("font-family",xt.fFamily),xi.setAttribute("font-style",wt.style),xi.setAttribute("font-weight",wt.weight),xi.textContent="1",xt.fClass?(xi.style.fontFamily="inherit",xi.setAttribute("class",xt.fClass)):xi.style.fontFamily=xt.fFamily,dt.appendChild(xi),ze=xi}else{var Zo=new OffscreenCanvas(500,500).getContext("2d");Zo.font=wt.style+" "+wt.weight+" 100px "+xt.fFamily,ze=Zo}function Po(Ca){return ht==="svg"?(ze.textContent=Ca,ze.getComputedTextLength()):ze.measureText(Ca).width}return{measureText:Po}}function en(xt,dt){if(xt){if(this.chars)return this.isLoaded=!0,void(this.fonts=xt.list);if(!document.body)return this.isLoaded=!0,xt.list.forEach((function(Xa){Xa.helper=Kt(Xa),Xa.cache={}})),void(this.fonts=xt.list);var ze,ht=xt.list,wt=ht.length,xi=wt;for(ze=0;ze<wt;ze+=1){var Zo,Po,Ca=!0;if(ht[ze].loaded=!1,ht[ze].monoCase=At(ht[ze].fFamily,"monospace"),ht[ze].sansCase=At(ht[ze].fFamily,"sans-serif"),ht[ze].fPath){if(ht[ze].fOrigin==="p"||ht[ze].origin===3){if((Zo=document.querySelectorAll('style[f-forigin="p"][f-family="'+ht[ze].fFamily+'"], style[f-origin="3"][f-family="'+ht[ze].fFamily+'"]')).length>0&&(Ca=!1),Ca){var Jo=h("style");Jo.setAttribute("f-forigin",ht[ze].fOrigin),Jo.setAttribute("f-origin",ht[ze].origin),Jo.setAttribute("f-family",ht[ze].fFamily),Jo.type="text/css",Jo.innerText="@font-face {font-family: "+ht[ze].fFamily+"; font-style: normal; src: url('"+ht[ze].fPath+"');}",dt.appendChild(Jo)}}else if(ht[ze].fOrigin==="g"||ht[ze].origin===1){for(Zo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Po=0;Po<Zo.length;Po+=1)Zo[Po].href.indexOf(ht[ze].fPath)!==-1&&(Ca=!1);if(Ca){var fl=h("link");fl.setAttribute("f-forigin",ht[ze].fOrigin),fl.setAttribute("f-origin",ht[ze].origin),fl.type="text/css",fl.rel="stylesheet",fl.href=ht[ze].fPath,document.body.appendChild(fl)}}else if(ht[ze].fOrigin==="t"||ht[ze].origin===2){for(Zo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Po=0;Po<Zo.length;Po+=1)ht[ze].fPath===Zo[Po].src&&(Ca=!1);if(Ca){var ga=h("link");ga.setAttribute("f-forigin",ht[ze].fOrigin),ga.setAttribute("f-origin",ht[ze].origin),ga.setAttribute("rel","stylesheet"),ga.setAttribute("href",ht[ze].fPath),dt.appendChild(ga)}}}else ht[ze].loaded=!0,xi-=1;ht[ze].helper=Kt(ht[ze],dt),ht[ze].cache={},this.fonts.push(ht[ze])}xi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(xt){if(xt){this.chars||(this.chars=[]);var dt,ze,ht,wt=xt.length,xi=this.chars.length;for(dt=0;dt<wt;dt+=1){for(ze=0,ht=!1;ze<xi;)this.chars[ze].style===xt[dt].style&&this.chars[ze].fFamily===xt[dt].fFamily&&this.chars[ze].ch===xt[dt].ch&&(ht=!0),ze+=1;ht||(this.chars.push(xt[dt]),xi+=1)}}}function We(xt,dt,ze){for(var ht=0,wt=this.chars.length;ht<wt;){if(this.chars[ht].ch===xt&&this.chars[ht].style===dt&&this.chars[ht].fFamily===ze)return this.chars[ht];ht+=1}return(typeof xt=="string"&&xt.charCodeAt(0)!==13||!xt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",xt,dt,ze)),X}function Ne(xt,dt,ze){var ht=this.getFontByName(dt),wt=xt;if(!ht.cache[wt]){var xi=ht.helper;if(xt===" "){var Zo=xi.measureText("|"+xt+"|"),Po=xi.measureText("||");ht.cache[wt]=(Zo-Po)/100}else ht.cache[wt]=xi.measureText(xt)/100}return ht.cache[wt]*ze}function qe(xt){for(var dt=0,ze=this.fonts.length;dt<ze;){if(this.fonts[dt].fName===xt)return this.fonts[dt];dt+=1}return this.fonts[0]}function ft(xt){var dt=0,ze=xt.charCodeAt(0);if(ze>=55296&&ze<=56319){var ht=xt.charCodeAt(1);ht>=56320&&ht<=57343&&(dt=1024*(ze-55296)+ht-56320+65536)}return dt}function rn(xt,dt){var ze=xt.toString(16)+dt.toString(16);return et.indexOf(ze)!==-1}function sn(xt){return xt===Ye}function zt(xt){return xt===Qe}function po(xt){var dt=ft(xt);return dt>=Rt&&dt<=Jt}function Eo(xt){return po(xt.substr(0,2))&&po(xt.substr(2,2))}function ci(xt){return pe.indexOf(xt)!==-1}function Ko(xt,dt){var ze=ft(xt.substr(dt,2));if(ze!==xe)return!1;var ht=0;for(dt+=2;ht<5;){if((ze=ft(xt.substr(dt,2)))<Ee||ze>Re)return!1;ht+=1,dt+=2}return ft(xt.substr(dt,2))===Ae}function lo(){this.isLoaded=!0}var Vt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Vt.isModifier=rn,Vt.isZeroWidthJoiner=sn,Vt.isFlagEmoji=Eo,Vt.isRegionalCode=po,Vt.isCombinedCharacter=ci,Vt.isRegionalFlag=Ko,Vt.isVariationSelector=zt,Vt.BLACK_FLAG_CODE_POINT=xe;var xn={addChars:Xe,addFonts:en,getCharData:We,getFontByName:qe,measureText:Ne,checkLoadedFonts:Tt,setIsLoaded:lo};return Vt.prototype=xn,Vt})();function nn(Y){this.animationData=Y}function hi(Y){return new nn(Y)}function jn(){}nn.prototype.getProp=function(Y){return this.animationData.slots&&this.animationData.slots[Y.sid]?Object.assign(Y,this.animationData.slots[Y.sid].p):Y},jn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(Y){this.renderableComponents.indexOf(Y)===-1&&this.renderableComponents.push(Y)},removeRenderableComponent:function(Y){this.renderableComponents.indexOf(Y)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(Y),1)},prepareRenderableFrame:function(Y){this.checkLayerLimits(Y)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(Y){this.data.ip-this.data.st<=Y&&this.data.op-this.data.st>Y?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var Y,X=this.renderableComponents.length;for(Y=0;Y<X;Y+=1)this.renderableComponents[Y].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var ii=(function(){var Y={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(X){return Y[X]||""}})();function Pi(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function bo(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function Gi(Y,X,pe){this.p=Ze.getProp(X,Y.v,1,0,pe)}function ro(Y,X,pe){this.p=Ze.getProp(X,Y.v,1,0,pe)}function Pt(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function yi(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function xo(Y,X,pe){this.p=Ze.getProp(X,Y.v,0,0,pe)}function Hr(){this.p={}}function wr(Y,X){var pe=Y.ef||[];this.effectElements=[];var xe,Ae,Ee=pe.length;for(xe=0;xe<Ee;xe+=1)Ae=new Cr(pe[xe],X),this.effectElements.push(Ae)}function Cr(Y,X){this.init(Y,X)}function Nn(){}function Ai(){}function rr(Y,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(Y.refId),this.footageData=X.imageLoader.getAsset(this.assetData),this.initBaseData(Y,X,pe)}function ma(Y,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(Y.refId),this.initBaseData(Y,X,pe),this._isPlaying=!1,this._canPlay=!1;var xe=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(xe),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=Y.tm?Ze.getProp(this,Y.tm,0,X.frameRate,this):{_placeholder:!0},this.lv=Ze.getProp(this,Y.au&&Y.au.lv?Y.au.lv:{k:[100]},1,.01,this)}function al(){}g([Ot],Cr),Cr.prototype.getValue=Cr.prototype.iterateDynamicProperties,Cr.prototype.init=function(Y,X){this.data=Y,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ae=this.data.ef.length,Ee=this.data.ef;for(pe=0;pe<Ae;pe+=1){switch(xe=null,Ee[pe].ty){case 0:xe=new Pi(Ee[pe],X,this);break;case 1:xe=new bo(Ee[pe],X,this);break;case 2:xe=new Gi(Ee[pe],X,this);break;case 3:xe=new ro(Ee[pe],X,this);break;case 4:case 7:xe=new xo(Ee[pe],X,this);break;case 10:xe=new Pt(Ee[pe],X,this);break;case 11:xe=new yi(Ee[pe],X,this);break;case 5:xe=new wr(Ee[pe],X);break;default:xe=new Hr(Ee[pe])}xe&&this.effectElements.push(xe)}},Nn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var Y=0,X=this.data.masksProperties.length;Y<X;){if(this.data.masksProperties[Y].mode!=="n"&&this.data.masksProperties[Y].cl!==!1)return!0;Y+=1}return!1},initExpressions:function(){},setBlendMode:function(){var Y=ii(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=Y},initBaseData:function(Y,X,pe){this.globalData=X,this.comp=pe,this.data=Y,this.layerId=H(),this.data.sr||(this.data.sr=1),this.effectsManager=new wr(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ai.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(Y,X){var pe,xe=this.dynamicProperties.length;for(pe=0;pe<xe;pe+=1)(X||this._isParent&&this.dynamicProperties[pe].propType==="transform")&&(this.dynamicProperties[pe].getValue(),this.dynamicProperties[pe]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(Y){this.dynamicProperties.indexOf(Y)===-1&&this.dynamicProperties.push(Y)}},rr.prototype.prepareFrame=function(){},g([jn,Nn,Ai],rr),rr.prototype.getBaseElement=function(){return null},rr.prototype.renderFrame=function(){},rr.prototype.destroy=function(){},rr.prototype.initExpressions=function(){},rr.prototype.getFootageData=function(){return this.footageData},ma.prototype.prepareFrame=function(Y){if(this.prepareRenderableFrame(Y,!0),this.prepareProperties(Y,!0),this.tm._placeholder)this._currentTime=Y/this.data.sr;else{var X=this.tm.v;this._currentTime=X}this._volume=this.lv.v[0];var pe=this._volume*this._volumeMultiplier;this._previousVolume!==pe&&(this._previousVolume=pe,this.audio.volume(pe))},g([jn,Nn,Ai],ma),ma.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ma.prototype.show=function(){},ma.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ma.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ma.prototype.resume=function(){this._canPlay=!0},ma.prototype.setRate=function(Y){this.audio.rate(Y)},ma.prototype.volume=function(Y){this._volumeMultiplier=Y,this._previousVolume=Y*this._volume,this.audio.volume(this._previousVolume)},ma.prototype.getBaseElement=function(){return null},ma.prototype.destroy=function(){},ma.prototype.sourceRectAtTime=function(){},ma.prototype.initExpressions=function(){},al.prototype.checkLayers=function(Y){var X,pe,xe=this.layers.length;for(this.completeLayers=!0,X=xe-1;X>=0;X-=1)this.elements[X]||(pe=this.layers[X]).ip-pe.st<=Y-this.layers[X].st&&pe.op-pe.st>Y-this.layers[X].st&&this.buildItem(X),this.completeLayers=!!this.elements[X]&&this.completeLayers;this.checkPendingElements()},al.prototype.createItem=function(Y){switch(Y.ty){case 2:return this.createImage(Y);case 0:return this.createComp(Y);case 1:return this.createSolid(Y);case 3:default:return this.createNull(Y);case 4:return this.createShape(Y);case 5:return this.createText(Y);case 6:return this.createAudio(Y);case 13:return this.createCamera(Y);case 15:return this.createFootage(Y)}},al.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},al.prototype.createAudio=function(Y){return new ma(Y,this.globalData,this)},al.prototype.createFootage=function(Y){return new rr(Y,this.globalData,this)},al.prototype.buildAllItems=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)this.buildItem(Y);this.checkPendingElements()},al.prototype.includeLayers=function(Y){this.completeLayers=!1;var X,pe,xe=Y.length,Ae=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ae;){if(this.layers[pe].id===Y[X].id){this.layers[pe]=Y[X];break}pe+=1}},al.prototype.setProjectInterface=function(Y){this.globalData.projectInterface=Y},al.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},al.prototype.buildElementParenting=function(Y,X,pe){for(var xe=this.elements,Ae=this.layers,Ee=0,Re=Ae.length;Ee<Re;)Ae[Ee].ind==X&&(xe[Ee]&&xe[Ee]!==!0?(pe.push(xe[Ee]),xe[Ee].setAsParent(),Ae[Ee].parent!==void 0?this.buildElementParenting(Y,Ae[Ee].parent,pe):Y.setHierarchy(pe)):(this.buildItem(Ee),this.addPendingElement(Y))),Ee+=1},al.prototype.addPendingElement=function(Y){this.pendingElements.push(Y)},al.prototype.searchExtraCompositions=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)if(Y[X].xt){var xe=this.createComp(Y[X]);xe.initExpressions(),this.globalData.projectInterface.registerComposition(xe)}},al.prototype.getElementById=function(Y){var X,pe=this.elements.length;for(X=0;X<pe;X+=1)if(this.elements[X].data.ind===Y)return this.elements[X];return null},al.prototype.getElementByPath=function(Y){var X,pe=Y.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,Ae=this.elements.length;for(xe=0;xe<Ae;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return Y.length===0?X:X.getElementByPath(Y)},al.prototype.setupGlobalData=function(Y,X){this.globalData.fontManager=new ln,this.globalData.slotManager=hi(Y),this.globalData.fontManager.addChars(Y.chars),this.globalData.fontManager.addFonts(Y.fonts,X),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=Y.fr,this.globalData.nm=Y.nm,this.globalData.compSize={w:Y.w,h:Y.h}};var OL={TRANSFORM_EFFECT:"transformEFfect"};function b2(){}function k0(Y,X,pe){this.data=Y,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ae=this.globalData.defs,Ee=this.masksProperties?this.masksProperties.length:0;this.viewData=b(Ee),this.solidPath="";var Re,Qe,Ye,Rt,Jt,et,pt,At=this.masksProperties,Tt=0,Kt=[],en=H(),Xe="clipPath",We="clip-path";for(xe=0;xe<Ee;xe+=1)if((At[xe].mode!=="a"&&At[xe].mode!=="n"||At[xe].inv||At[xe].o.k!==100||At[xe].o.x)&&(Xe="mask",We="mask"),At[xe].mode!=="s"&&At[xe].mode!=="i"||Tt!==0?Rt=null:((Rt=le("rect")).setAttribute("fill","#ffffff"),Rt.setAttribute("width",this.element.comp.data.w||0),Rt.setAttribute("height",this.element.comp.data.h||0),Kt.push(Rt)),Re=le("path"),At[xe].mode==="n")this.viewData[xe]={op:Ze.getProp(this.element,At[xe].o,0,.01,this.element),prop:at.getShapeProp(this.element,At[xe],3),elem:Re,lastPath:""},Ae.appendChild(Re);else{var Ne;if(Tt+=1,Re.setAttribute("fill",At[xe].mode==="s"?"#000000":"#ffffff"),Re.setAttribute("clip-rule","nonzero"),At[xe].x.k!==0?(Xe="mask",We="mask",pt=Ze.getProp(this.element,At[xe].x,0,null,this.element),Ne=H(),(Jt=le("filter")).setAttribute("id",Ne),(et=le("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Jt.appendChild(et),Ae.appendChild(Jt),Re.setAttribute("stroke",At[xe].mode==="s"?"#000000":"#ffffff")):(et=null,pt=null),this.storedData[xe]={elem:Re,x:pt,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},At[xe].mode==="i"){Ye=Kt.length;var qe=le("g");for(Qe=0;Qe<Ye;Qe+=1)qe.appendChild(Kt[Qe]);var ft=le("mask");ft.setAttribute("mask-type","alpha"),ft.setAttribute("id",en+"_"+Tt),ft.appendChild(Re),Ae.appendChild(ft),qe.setAttribute("mask","url("+p()+"#"+en+"_"+Tt+")"),Kt.length=0,Kt.push(qe)}else Kt.push(Re);At[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Re,lastPath:"",op:Ze.getProp(this.element,At[xe].o,0,.01,this.element),prop:at.getShapeProp(this.element,At[xe],3),invRect:Rt},this.viewData[xe].prop.k||this.drawPath(At[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=le(Xe),Ee=Kt.length,xe=0;xe<Ee;xe+=1)this.maskElement.appendChild(Kt[xe]);Tt>0&&(this.maskElement.setAttribute("id",en),this.element.maskedElement.setAttribute(We,"url("+p()+"#"+en+")"),Ae.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}b2.prototype={initTransform:function(){var Y=new jt;this.finalTransform={mProp:this.data.ks?Bt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:Y,localMat:Y,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var Y,X=this.finalTransform.mat,pe=0,xe=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;pe<xe;){if(this.hierarchy[pe].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}pe+=1}if(this.finalTransform._matMdf)for(Y=this.finalTransform.mProp.v.props,X.cloneFromProps(Y),pe=0;pe<xe;pe+=1)X.multiply(this.hierarchy[pe].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var Y=0,X=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;Y<X;)this.localTransforms[Y]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[Y]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),Y+=1;if(this.finalTransform._localMatMdf){var pe=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(pe),Y=1;Y<X;Y+=1){var xe=this.localTransforms[Y].matrix;pe.multiply(xe)}pe.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var Ae=this.finalTransform.localOpacity;for(Y=0;Y<X;Y+=1)Ae*=.01*this.localTransforms[Y].opacity;this.finalTransform.localOpacity=Ae}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var Y=this.renderableEffectsManager.getEffects(OL.TRANSFORM_EFFECT);if(Y.length){this.localTransforms=[],this.finalTransform.localMat=new jt;var X=0,pe=Y.length;for(X=0;X<pe;X+=1)this.localTransforms.push(Y[X])}}},globalToLocal:function(Y){var X=[];X.push(this.finalTransform);for(var pe=!0,xe=this.comp;pe;)xe.finalTransform?(xe.data.hasMask&&X.splice(0,0,xe.finalTransform),xe=xe.comp):pe=!1;var Ae,Ee,Re=X.length;for(Ae=0;Ae<Re;Ae+=1)Ee=X[Ae].mat.applyToPointArray(0,0,0),Y=[Y[0]-Ee[0],Y[1]-Ee[1],0];return Y},mHelper:new jt},k0.prototype.getMaskProperty=function(Y){return this.viewData[Y].prop},k0.prototype.renderFrame=function(Y){var X,pe=this.element.finalTransform.mat,xe=this.masksProperties.length;for(X=0;X<xe;X+=1)if((this.viewData[X].prop._mdf||Y)&&this.drawPath(this.masksProperties[X],this.viewData[X].prop.v,this.viewData[X]),(this.viewData[X].op._mdf||Y)&&this.viewData[X].elem.setAttribute("fill-opacity",this.viewData[X].op.v),this.masksProperties[X].mode!=="n"&&(this.viewData[X].invRect&&(this.element.finalTransform.mProp._mdf||Y)&&this.viewData[X].invRect.setAttribute("transform",pe.getInverseMatrix().to2dCSS()),this.storedData[X].x&&(this.storedData[X].x._mdf||Y))){var Ae=this.storedData[X].expan;this.storedData[X].x.v<0?(this.storedData[X].lastOperator!=="erode"&&(this.storedData[X].lastOperator="erode",this.storedData[X].elem.setAttribute("filter","url("+p()+"#"+this.storedData[X].filterId+")")),Ae.setAttribute("radius",-this.storedData[X].x.v)):(this.storedData[X].lastOperator!=="dilate"&&(this.storedData[X].lastOperator="dilate",this.storedData[X].elem.setAttribute("filter",null)),this.storedData[X].elem.setAttribute("stroke-width",2*this.storedData[X].x.v))}},k0.prototype.getMaskelement=function(){return this.maskElement},k0.prototype.createLayerSolidPath=function(){var Y="M0,0 ";return Y+=" h"+this.globalData.compSize.w,Y+=" v"+this.globalData.compSize.h,Y+=" h-"+this.globalData.compSize.w,Y+=" v-"+this.globalData.compSize.h+" "},k0.prototype.drawPath=function(Y,X,pe){var xe,Ae,Ee=" M"+X.v[0][0]+","+X.v[0][1];for(Ae=X._length,xe=1;xe<Ae;xe+=1)Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[xe][0]+","+X.i[xe][1]+" "+X.v[xe][0]+","+X.v[xe][1];if(X.c&&Ae>1&&(Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[0][0]+","+X.i[0][1]+" "+X.v[0][0]+","+X.v[0][1]),pe.lastPath!==Ee){var Re="";pe.elem&&(X.c&&(Re=Y.inv?this.solidPath+Ee:Ee),pe.elem.setAttribute("d",Re)),pe.lastPath=Ee}},k0.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _7=(function(){var Y={};function X(xe,Ae){var Ee=le("filter");return Ee.setAttribute("id",xe),Ae!==!0&&(Ee.setAttribute("filterUnits","objectBoundingBox"),Ee.setAttribute("x","0%"),Ee.setAttribute("y","0%"),Ee.setAttribute("width","100%"),Ee.setAttribute("height","100%")),Ee}function pe(){var xe=le("feColorMatrix");return xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),xe}return Y.createFilter=X,Y.createAlphaToLuminanceFilter=pe,Y})(),FL=(function(){var Y={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(Y.maskType=!1),/firefox/i.test(navigator.userAgent)&&(Y.svgLumaHidden=!1),Y})(),RL={},E_="filter_result_";function jk(Y){var X,pe,xe="SourceGraphic",Ae=Y.data.ef?Y.data.ef.length:0,Ee=H(),Re=_7.createFilter(Ee,!0),Qe=0;for(this.filters=[],X=0;X<Ae;X+=1){pe=null;var Ye=Y.data.ef[X].ty;RL[Ye]&&(pe=new RL[Ye].effect(Re,Y.effectsManager.effectElements[X],Y,E_+Qe,xe),xe=E_+Qe,RL[Ye].countsAsEffect&&(Qe+=1)),pe&&this.filters.push(pe)}Qe&&(Y.globalData.defs.appendChild(Re),Y.layerElement.setAttribute("filter","url("+p()+"#"+Ee+")")),this.filters.length&&Y.addRenderableComponent(this)}function fw(){}function V7(){}function m5(){}function xw(Y,X,pe){this.assetData=X.getAssetData(Y.refId),this.assetData&&this.assetData.sid&&(this.assetData=X.slotManager.getProp(this.assetData)),this.initElement(Y,X,pe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Xre(Y,X){this.elem=Y,this.pos=X}function I_(){}jk.prototype.renderFrame=function(Y){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(Y)},jk.prototype.getEffects=function(Y){var X,pe=this.filters.length,xe=[];for(X=0;X<pe;X+=1)this.filters[X].type===Y&&xe.push(this.filters[X]);return xe},fw.prototype={initRendererElement:function(){this.layerElement=le("g")},createContainerElements:function(){this.matteElement=le("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var Y=null;if(this.data.td){this.matteMasks={};var X=le("g");X.setAttribute("id",this.layerId),X.appendChild(this.layerElement),Y=X,this.globalData.defs.appendChild(X)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),Y=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var pe=le("clipPath"),xe=le("path");xe.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var Ae=H();if(pe.setAttribute("id",Ae),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var Ee=le("g");Ee.setAttribute("clip-path","url("+p()+"#"+Ae+")"),Ee.appendChild(this.layerElement),this.transformedElement=Ee,Y?Y.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ae+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new k0(this.data,this,this.globalData),this.renderableEffectsManager=new jk(this),this.searchEffectTransforms()},getMatte:function(Y){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[Y]){var X,pe,xe,Ae,Ee=this.layerId+"_"+Y;if(Y===1||Y===3){var Re=le("mask");Re.setAttribute("id",Ee),Re.setAttribute("mask-type",Y===3?"luminance":"alpha"),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Re.appendChild(xe),this.globalData.defs.appendChild(Re),!FL.maskType&&Y===1&&(Re.setAttribute("mask-type","luminance"),X=H(),pe=_7.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(_7.createAlphaToLuminanceFilter()),(Ae=le("g")).appendChild(xe),Re.appendChild(Ae),Ae.setAttribute("filter","url("+p()+"#"+X+")"))}else if(Y===2){var Qe=le("mask");Qe.setAttribute("id",Ee),Qe.setAttribute("mask-type","alpha");var Ye=le("g");Qe.appendChild(Ye),X=H(),pe=_7.createFilter(X);var Rt=le("feComponentTransfer");Rt.setAttribute("in","SourceGraphic"),pe.appendChild(Rt);var Jt=le("feFuncA");Jt.setAttribute("type","table"),Jt.setAttribute("tableValues","1.0 0.0"),Rt.appendChild(Jt),this.globalData.defs.appendChild(pe);var et=le("rect");et.setAttribute("width",this.comp.data.w),et.setAttribute("height",this.comp.data.h),et.setAttribute("x","0"),et.setAttribute("y","0"),et.setAttribute("fill","#ffffff"),et.setAttribute("opacity","0"),Ye.setAttribute("filter","url("+p()+"#"+X+")"),Ye.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Ye.appendChild(xe),FL.maskType||(Qe.setAttribute("mask-type","luminance"),pe.appendChild(_7.createAlphaToLuminanceFilter()),Ae=le("g"),Ye.appendChild(et),Ae.appendChild(this.layerElement),Ye.appendChild(Ae)),this.globalData.defs.appendChild(Qe)}this.matteMasks[Y]=Ee}return this.matteMasks[Y]},setMatte:function(Y){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+Y+")")}},V7.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(Y){this.hierarchy=Y},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},(function(){var Y={initElement:function(X,pe,xe){this.initFrame(),this.initBaseData(X,pe,xe),this.initTransform(X,pe,xe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(X){this._mdf=!1,this.prepareRenderableFrame(X),this.prepareProperties(X,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};g([jn,f(Y)],m5)})(),g([Nn,b2,fw,V7,Ai,m5],xw),xw.prototype.createContent=function(){var Y=this.globalData.getAssetsPath(this.assetData);this.innerElem=le("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this.layerElement.appendChild(this.innerElem)},xw.prototype.sourceRectAtTime=function(){return this.sourceRect},I_.prototype={addShapeToModifiers:function(Y){var X,pe=this.shapeModifiers.length;for(X=0;X<pe;X+=1)this.shapeModifiers[X].addShape(Y)},isShapeInAnimatedModifiers:function(Y){for(var X=0,pe=this.shapeModifiers.length;X<pe;)if(this.shapeModifiers[X].isAnimatedWithShape(Y))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var Y,X=this.shapes.length;for(Y=0;Y<X;Y+=1)this.shapes[Y].sh.reset();for(Y=(X=this.shapeModifiers.length)-1;Y>=0&&!this.shapeModifiers[Y].processShapes(this._isFirstFrame);Y-=1);}},searchProcessedElement:function(Y){for(var X=this.processedElements,pe=0,xe=X.length;pe<xe;){if(X[pe].elem===Y)return X[pe].pos;pe+=1}return 0},addProcessedElement:function(Y,X){for(var pe=this.processedElements,xe=pe.length;xe;)if(pe[xe-=1].elem===Y)return void(pe[xe].pos=X);pe.push(new Xre(Y,X))},prepareFrame:function(Y){this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange)}};var D_={1:"butt",2:"round",3:"square"},T_={1:"miter",2:"round",3:"bevel"};function L_(Y,X,pe){this.caches=[],this.styles=[],this.transformers=Y,this.lStr="",this.sh=pe,this.lvl=X,this._isAnimated=!!pe.k;for(var xe=0,Ae=Y.length;xe<Ae;){if(Y[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function B_(Y,X){this.data=Y,this.type=Y.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=Y.hd===!0,this.pElem=le("path"),this.msElem=null}function $k(Y,X,pe,xe){this.elem=Y,this.frameId=-1,this.dataProps=b(X.length),this.renderer=pe,this.k=!1,this.dashStr="",this.dashArray=y("float32",X.length?X.length-1:0),this.dashoffset=y("float32",1),this.initDynamicPropertyContainer(xe);var Ae,Ee,Re=X.length||0;for(Ae=0;Ae<Re;Ae+=1)Ee=Ze.getProp(Y,X[Ae].v,0,0,this),this.k=Ee.k||this.k,this.dataProps[Ae]={n:X[Ae].n,p:Ee};this.k||this.getValue(!0),this._isAnimated=this.k}function P_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.o=Ze.getProp(Y,X.o,0,.01,this),this.w=Ze.getProp(Y,X.w,0,null,this),this.d=new $k(Y,X.d||{},"svg",this),this.c=Ze.getProp(Y,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function M_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.o=Ze.getProp(Y,X.o,0,.01,this),this.c=Ze.getProp(Y,X.c,1,255,this),this.style=pe}function O_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.style=pe}function yw(Y,X,pe){this.data=X,this.c=y("uint8c",4*X.p);var xe=X.k.k[0].s?X.k.k[0].s.length-4*X.p:X.k.k.length-4*X.p;this.o=y("float32",xe),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=xe,this.initDynamicPropertyContainer(pe),this.prop=Ze.getProp(Y,X.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function j0(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.initGradientData(Y,X,pe)}function F_(Y,X,pe){this.initDynamicPropertyContainer(Y),this.getValue=this.iterateDynamicProperties,this.w=Ze.getProp(Y,X.w,0,null,this),this.d=new $k(Y,X.d||{},"svg",this),this.initGradientData(Y,X,pe),this._isAnimated=!!this._isAnimated}function eae(){this.it=[],this.prevViewData=[],this.gr=le("g")}function tae(Y,X,pe){this.transform={mProps:Y,op:X,container:pe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}L_.prototype.setAsAnimated=function(){this._isAnimated=!0},B_.prototype.reset=function(){this.d="",this._mdf=!1},$k.prototype.getValue=function(Y){if((this.elem.globalData.frameId!==this.frameId||Y)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||Y,this._mdf)){var X=0,pe=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),X=0;X<pe;X+=1)this.dataProps[X].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[X].p.v:this.dashArray[X]=this.dataProps[X].p.v:this.dashoffset[0]=this.dataProps[X].p.v}},g([Ot],$k),g([Ot],P_),g([Ot],M_),g([Ot],O_),yw.prototype.comparePoints=function(Y,X){for(var pe=0,xe=this.o.length/2;pe<xe;){if(Math.abs(Y[4*pe]-Y[4*X+2*pe])>.01)return!1;pe+=1}return!0},yw.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var Y=0,X=this.data.k.k.length;Y<X;){if(!this.comparePoints(this.data.k.k[Y].s,this.data.p))return!1;Y+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},yw.prototype.getValue=function(Y){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||Y){var X,pe,xe,Ae=4*this.data.p;for(X=0;X<Ae;X+=1)pe=X%4==0?100:255,xe=Math.round(this.prop.v[X]*pe),this.c[X]!==xe&&(this.c[X]=xe,this._cmdf=!Y);if(this.o.length)for(Ae=this.prop.v.length,X=4*this.data.p;X<Ae;X+=1)pe=X%2==0?100:1,xe=X%2==0?Math.round(100*this.prop.v[X]):this.prop.v[X],this.o[X-4*this.data.p]!==xe&&(this.o[X-4*this.data.p]=xe,this._omdf=!Y);this._mdf=!Y}},g([Ot],yw),j0.prototype.initGradientData=function(Y,X,pe){this.o=Ze.getProp(Y,X.o,0,.01,this),this.s=Ze.getProp(Y,X.s,1,null,this),this.e=Ze.getProp(Y,X.e,1,null,this),this.h=Ze.getProp(Y,X.h||{k:0},0,.01,this),this.a=Ze.getProp(Y,X.a||{k:0},0,D,this),this.g=new yw(Y,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},j0.prototype.setGradientData=function(Y,X){var pe=H(),xe=le(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var Ae,Ee,Re,Qe=[];for(Re=4*X.g.p,Ee=0;Ee<Re;Ee+=4)Ae=le("stop"),xe.appendChild(Ae),Qe.push(Ae);Y.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Qe},j0.prototype.setGradientOpacity=function(Y,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ae,Ee=le("mask"),Re=le("path");Ee.appendChild(Re);var Qe=H(),Ye=H();Ee.setAttribute("id",Ye);var Rt=le(Y.t===1?"linearGradient":"radialGradient");Rt.setAttribute("id",Qe),Rt.setAttribute("spreadMethod","pad"),Rt.setAttribute("gradientUnits","userSpaceOnUse"),Ae=Y.g.k.k[0].s?Y.g.k.k[0].s.length:Y.g.k.k.length;var Jt=this.stops;for(xe=4*Y.g.p;xe<Ae;xe+=2)(pe=le("stop")).setAttribute("stop-color","rgb(255,255,255)"),Rt.appendChild(pe),Jt.push(pe);Re.setAttribute(Y.ty==="gf"?"fill":"stroke","url("+p()+"#"+Qe+")"),Y.ty==="gs"&&(Re.setAttribute("stroke-linecap",D_[Y.lc||2]),Re.setAttribute("stroke-linejoin",T_[Y.lj||2]),Y.lj===1&&Re.setAttribute("stroke-miterlimit",Y.ml)),this.of=Rt,this.ms=Ee,this.ost=Jt,this.maskId=Ye,X.msElem=Re}},g([Ot],j0),g([j0,Ot],F_);var Zn=function(Y,X,pe,xe){if(X===0)return"";var Ae,Ee=Y.o,Re=Y.i,Qe=Y.v,Ye=" M"+xe.applyToPointStringified(Qe[0][0],Qe[0][1]);for(Ae=1;Ae<X;Ae+=1)Ye+=" C"+xe.applyToPointStringified(Ee[Ae-1][0],Ee[Ae-1][1])+" "+xe.applyToPointStringified(Re[Ae][0],Re[Ae][1])+" "+xe.applyToPointStringified(Qe[Ae][0],Qe[Ae][1]);return pe&&X&&(Ye+=" C"+xe.applyToPointStringified(Ee[Ae-1][0],Ee[Ae-1][1])+" "+xe.applyToPointStringified(Re[0][0],Re[0][1])+" "+xe.applyToPointStringified(Qe[0][0],Qe[0][1]),Ye+="z"),Ye},kr=(function(){var Y=new jt,X=new jt;function pe(Jt){switch(Jt.ty){case"fl":return Re;case"gf":return Ye;case"gs":return Qe;case"st":return Rt;case"sh":case"el":case"rc":case"sr":return Ee;case"tr":return xe;case"no":return Ae;default:return null}}function xe(Jt,et,pt){(pt||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(pt||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function Ae(){}function Ee(Jt,et,pt){var At,Tt,Kt,en,Xe,We,Ne,qe,ft,rn,sn=et.styles.length,zt=et.lvl;for(We=0;We<sn;We+=1){if(en=et.sh._mdf||pt,et.styles[We].lvl<zt){for(qe=X.reset(),ft=zt-et.styles[We].lvl,rn=et.transformers.length-1;!en&&ft>0;)en=et.transformers[rn].mProps._mdf||en,ft-=1,rn-=1;if(en)for(ft=zt-et.styles[We].lvl,rn=et.transformers.length-1;ft>0;)qe.multiply(et.transformers[rn].mProps.v),ft-=1,rn-=1}else qe=Y;if(Tt=(Ne=et.sh.paths)._length,en){for(Kt="",At=0;At<Tt;At+=1)(Xe=Ne.shapes[At])&&Xe._length&&(Kt+=Zn(Xe,Xe._length,Xe.c,qe));et.caches[We]=Kt}else Kt=et.caches[We];et.styles[We].d+=Jt.hd===!0?"":Kt,et.styles[We]._mdf=en||et.styles[We]._mdf}}function Re(Jt,et,pt){var At=et.style;(et.c._mdf||pt)&&At.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&At.pElem.setAttribute("fill-opacity",et.o.v)}function Qe(Jt,et,pt){Ye(Jt,et,pt),Rt(Jt,et,pt)}function Ye(Jt,et,pt){var At,Tt,Kt,en,Xe,We=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,ft=et.e.v;if(et.o._mdf||pt){var rn=Jt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||pt){var sn=Jt.t===1?"x1":"cx",zt=sn==="x1"?"y1":"cy";We.setAttribute(sn,qe[0]),We.setAttribute(zt,qe[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(sn,qe[0]),et.of.setAttribute(zt,qe[1]))}if(et.g._cmdf||pt){At=et.cst;var po=et.g.c;for(Kt=At.length,Tt=0;Tt<Kt;Tt+=1)(en=At[Tt]).setAttribute("offset",po[4*Tt]+"%"),en.setAttribute("stop-color","rgb("+po[4*Tt+1]+","+po[4*Tt+2]+","+po[4*Tt+3]+")")}if(Ne&&(et.g._omdf||pt)){var Eo=et.g.o;for(Kt=(At=et.g._collapsable?et.cst:et.ost).length,Tt=0;Tt<Kt;Tt+=1)en=At[Tt],et.g._collapsable||en.setAttribute("offset",Eo[2*Tt]+"%"),en.setAttribute("stop-opacity",Eo[2*Tt+1])}if(Jt.t===1)(et.e._mdf||pt)&&(We.setAttribute("x2",ft[0]),We.setAttribute("y2",ft[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",ft[0]),et.of.setAttribute("y2",ft[1])));else if((et.s._mdf||et.e._mdf||pt)&&(Xe=Math.sqrt(Math.pow(qe[0]-ft[0],2)+Math.pow(qe[1]-ft[1],2)),We.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||pt){Xe||(Xe=Math.sqrt(Math.pow(qe[0]-ft[0],2)+Math.pow(qe[1]-ft[1],2)));var ci=Math.atan2(ft[1]-qe[1],ft[0]-qe[0]),Ko=et.h.v;Ko>=1?Ko=.99:Ko<=-1&&(Ko=-.99);var lo=Xe*Ko,Vt=Math.cos(ci+et.a.v)*lo+qe[0],xn=Math.sin(ci+et.a.v)*lo+qe[1];We.setAttribute("fx",Vt),We.setAttribute("fy",xn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Vt),et.of.setAttribute("fy",xn))}}function Rt(Jt,et,pt){var At=et.style,Tt=et.d;Tt&&(Tt._mdf||pt)&&Tt.dashStr&&(At.pElem.setAttribute("stroke-dasharray",Tt.dashStr),At.pElem.setAttribute("stroke-dashoffset",Tt.dashoffset[0])),et.c&&(et.c._mdf||pt)&&At.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&At.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||pt)&&(At.pElem.setAttribute("stroke-width",et.w.v),At.msElem&&At.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function tr(Y,X,pe){this.shapes=[],this.shapesData=Y.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(Y,X,pe),this.prevViewData=[]}function th(Y,X,pe,xe,Ae,Ee){this.o=Y,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ae,this.p=Ee,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function td(Y,X){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,X.d&&X.d.sid&&(X.d=Y.globalData.slotManager.getProp(X.d)),this.data=X,this.elem=Y,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}g([Nn,b2,fw,I_,V7,Ai,m5],tr),tr.prototype.initSecondaryElement=function(){},tr.prototype.identityMatrix=new jt,tr.prototype.buildExpressionInterface=function(){},tr.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},tr.prototype.filterUniqueShapes=function(){var Y,X,pe,xe,Ae=this.shapes.length,Ee=this.stylesList.length,Re=[],Qe=!1;for(pe=0;pe<Ee;pe+=1){for(xe=this.stylesList[pe],Qe=!1,Re.length=0,Y=0;Y<Ae;Y+=1)(X=this.shapes[Y]).styles.indexOf(xe)!==-1&&(Re.push(X),Qe=X._isAnimated||Qe);Re.length>1&&Qe&&this.setShapesAsAnimated(Re)}},tr.prototype.setShapesAsAnimated=function(Y){var X,pe=Y.length;for(X=0;X<pe;X+=1)Y[X].setAsAnimated()},tr.prototype.createStyleElement=function(Y,X){var pe,xe=new B_(Y,X),Ae=xe.pElem;return Y.ty==="st"?pe=new P_(this,Y,xe):Y.ty==="fl"?pe=new M_(this,Y,xe):Y.ty==="gf"||Y.ty==="gs"?(pe=new(Y.ty==="gf"?j0:F_)(this,Y,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),Ae.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):Y.ty==="no"&&(pe=new O_(this,Y,xe)),(Y.ty==="st"||Y.ty==="gs")&&(Ae.setAttribute("stroke-linecap",D_[Y.lc||2]),Ae.setAttribute("stroke-linejoin",T_[Y.lj||2]),Ae.setAttribute("fill-opacity","0"),Y.lj===1&&Ae.setAttribute("stroke-miterlimit",Y.ml)),Y.r===2&&Ae.setAttribute("fill-rule","evenodd"),Y.ln&&Ae.setAttribute("id",Y.ln),Y.cl&&Ae.setAttribute("class",Y.cl),Y.bm&&(Ae.style["mix-blend-mode"]=ii(Y.bm)),this.stylesList.push(xe),this.addToAnimatedContents(Y,pe),pe},tr.prototype.createGroupElement=function(Y){var X=new eae;return Y.ln&&X.gr.setAttribute("id",Y.ln),Y.cl&&X.gr.setAttribute("class",Y.cl),Y.bm&&(X.gr.style["mix-blend-mode"]=ii(Y.bm)),X},tr.prototype.createTransformElement=function(Y,X){var pe=Bt.getTransformProperty(this,Y,this),xe=new tae(pe,pe.o,X);return this.addToAnimatedContents(Y,xe),xe},tr.prototype.createShapeElement=function(Y,X,pe){var xe=4;Y.ty==="rc"?xe=5:Y.ty==="el"?xe=6:Y.ty==="sr"&&(xe=7);var Ae=new L_(X,pe,at.getShapeProp(this,Y,xe,this));return this.shapes.push(Ae),this.addShapeToModifiers(Ae),this.addToAnimatedContents(Y,Ae),Ae},tr.prototype.addToAnimatedContents=function(Y,X){for(var pe=0,xe=this.animatedContents.length;pe<xe;){if(this.animatedContents[pe].element===X)return;pe+=1}this.animatedContents.push({fn:kr.createRenderFunction(Y),element:X,data:Y})},tr.prototype.setElementStyles=function(Y){var X,pe=Y.styles,xe=this.stylesList.length;for(X=0;X<xe;X+=1)pe.indexOf(this.stylesList[X])===-1&&!this.stylesList[X].closed&&pe.push(this.stylesList[X])},tr.prototype.reloadShapes=function(){this._isFirstFrame=!0;var Y,X=this.itemsData.length;for(Y=0;Y<X;Y+=1)this.prevViewData[Y]=this.itemsData[Y];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),X=this.dynamicProperties.length,Y=0;Y<X;Y+=1)this.dynamicProperties[Y].getValue();this.renderModifiers()},tr.prototype.searchShapes=function(Y,X,pe,xe,Ae,Ee,Re){var Qe,Ye,Rt,Jt,et,pt,At=[].concat(Ee),Tt=Y.length-1,Kt=[],en=[];for(Qe=Tt;Qe>=0;Qe-=1){if((pt=this.searchProcessedElement(Y[Qe]))?X[Qe]=pe[pt-1]:Y[Qe]._render=Re,Y[Qe].ty==="fl"||Y[Qe].ty==="st"||Y[Qe].ty==="gf"||Y[Qe].ty==="gs"||Y[Qe].ty==="no")pt?X[Qe].style.closed=Y[Qe].hd:X[Qe]=this.createStyleElement(Y[Qe],Ae),Y[Qe]._render&&X[Qe].style.pElem.parentNode!==xe&&xe.appendChild(X[Qe].style.pElem),Kt.push(X[Qe].style);else if(Y[Qe].ty==="gr"){if(pt)for(Rt=X[Qe].it.length,Ye=0;Ye<Rt;Ye+=1)X[Qe].prevViewData[Ye]=X[Qe].it[Ye];else X[Qe]=this.createGroupElement(Y[Qe]);this.searchShapes(Y[Qe].it,X[Qe].it,X[Qe].prevViewData,X[Qe].gr,Ae+1,At,Re),Y[Qe]._render&&X[Qe].gr.parentNode!==xe&&xe.appendChild(X[Qe].gr)}else Y[Qe].ty==="tr"?(pt||(X[Qe]=this.createTransformElement(Y[Qe],xe)),Jt=X[Qe].transform,At.push(Jt)):Y[Qe].ty==="sh"||Y[Qe].ty==="rc"||Y[Qe].ty==="el"||Y[Qe].ty==="sr"?(pt||(X[Qe]=this.createShapeElement(Y[Qe],At,Ae)),this.setElementStyles(X[Qe])):Y[Qe].ty==="tm"||Y[Qe].ty==="rd"||Y[Qe].ty==="ms"||Y[Qe].ty==="pb"||Y[Qe].ty==="zz"||Y[Qe].ty==="op"?(pt?(et=X[Qe]).closed=!1:((et=un.getModifier(Y[Qe].ty)).init(this,Y[Qe]),X[Qe]=et,this.shapeModifiers.push(et)),en.push(et)):Y[Qe].ty==="rp"&&(pt?(et=X[Qe]).closed=!0:(et=un.getModifier(Y[Qe].ty),X[Qe]=et,et.init(this,Y,Qe,X),this.shapeModifiers.push(et),Re=!1),en.push(et));this.addProcessedElement(Y[Qe],Qe+1)}for(Tt=Kt.length,Qe=0;Qe<Tt;Qe+=1)Kt[Qe].closed=!0;for(Tt=en.length,Qe=0;Qe<Tt;Qe+=1)en[Qe].closed=!0},tr.prototype.renderInnerContent=function(){this.renderModifiers();var Y,X=this.stylesList.length;for(Y=0;Y<X;Y+=1)this.stylesList[Y].reset();for(this.renderShape(),Y=0;Y<X;Y+=1)(this.stylesList[Y]._mdf||this._isFirstFrame)&&(this.stylesList[Y].msElem&&(this.stylesList[Y].msElem.setAttribute("d",this.stylesList[Y].d),this.stylesList[Y].d="M0 0"+this.stylesList[Y].d),this.stylesList[Y].pElem.setAttribute("d",this.stylesList[Y].d||"M0 0"))},tr.prototype.renderShape=function(){var Y,X,pe=this.animatedContents.length;for(Y=0;Y<pe;Y+=1)X=this.animatedContents[Y],(this._isFirstFrame||X.element._isAnimated)&&X.data!==!0&&X.fn(X.data,X.element,this._isFirstFrame)},tr.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},th.prototype.update=function(Y,X,pe,xe,Ae,Ee){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Re=!1;return this.o!==Y&&(this.o=Y,this._mdf.o=!0,Re=!0),this.sw!==X&&(this.sw=X,this._mdf.sw=!0,Re=!0),this.sc!==pe&&(this.sc=pe,this._mdf.sc=!0,Re=!0),this.fc!==xe&&(this.fc=xe,this._mdf.fc=!0,Re=!0),this.m!==Ae&&(this.m=Ae,this._mdf.m=!0,Re=!0),Ee.length&&(this.p[0]!==Ee[0]||this.p[1]!==Ee[1]||this.p[4]!==Ee[4]||this.p[5]!==Ee[5]||this.p[12]!==Ee[12]||this.p[13]!==Ee[13])&&(this.p=Ee,this._mdf.p=!0,Re=!0),Re},td.prototype.defaultBoxWidth=[0,0],td.prototype.copyData=function(Y,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(Y[pe]=X[pe]);return Y},td.prototype.setCurrentData=function(Y){Y.__complete||this.completeTextData(Y),this.currentData=Y,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},td.prototype.searchProperty=function(){return this.searchKeyframes()},td.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},td.prototype.addEffect=function(Y){this.effectsSequence.push(Y),this.elem.addDynamicProperty(this)},td.prototype.getValue=function(Y){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||Y){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var X=this.currentData,pe=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var xe,Ae=this.effectsSequence.length,Ee=Y||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ae;xe+=1)Ee=pe!==this.keysIndex?this.effectsSequence[xe](Ee,Ee.t):this.effectsSequence[xe](this.currentData,Ee.t);X!==Ee&&this.setCurrentData(Ee),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},td.prototype.getKeyframeValue=function(){for(var Y=this.data.d.k,X=this.elem.comp.renderedFrame,pe=0,xe=Y.length;pe<=xe-1&&!(pe===xe-1||Y[pe+1].t>X);)pe+=1;return this.keysIndex!==pe&&(this.keysIndex=pe),this.data.d.k[this.keysIndex].s},td.prototype.buildFinalText=function(Y){for(var X,pe,xe=[],Ae=0,Ee=Y.length,Re=!1,Qe=!1,Ye="";Ae<Ee;)Re=Qe,Qe=!1,X=Y.charCodeAt(Ae),Ye=Y.charAt(Ae),ln.isCombinedCharacter(X)?Re=!0:X>=55296&&X<=56319?ln.isRegionalFlag(Y,Ae)?Ye=Y.substr(Ae,14):(pe=Y.charCodeAt(Ae+1))>=56320&&pe<=57343&&(ln.isModifier(X,pe)?(Ye=Y.substr(Ae,2),Re=!0):Ye=ln.isFlagEmoji(Y.substr(Ae,4))?Y.substr(Ae,4):Y.substr(Ae,2)):X>56319?(pe=Y.charCodeAt(Ae+1),ln.isVariationSelector(X)&&(Re=!0)):ln.isZeroWidthJoiner(X)&&(Re=!0,Qe=!0),Re?(xe[xe.length-1]+=Ye,Re=!1):xe.push(Ye),Ae+=Ye.length;return xe},td.prototype.completeTextData=function(Y){Y.__complete=!0;var X,pe,xe,Ae,Ee,Re,Qe,Ye=this.elem.globalData.fontManager,Rt=this.data,Jt=[],et=0,pt=Rt.m.g,At=0,Tt=0,Kt=0,en=[],Xe=0,We=0,Ne=Ye.getFontByName(Y.f),qe=0,ft=_t(Ne);Y.fWeight=ft.weight,Y.fStyle=ft.style,Y.finalSize=Y.s,Y.finalText=this.buildFinalText(Y.t),pe=Y.finalText.length,Y.finalLineHeight=Y.lh;var rn,sn=Y.tr/1e3*Y.finalSize;if(Y.sz)for(var zt,po,Eo=!0,ci=Y.sz[0],Ko=Y.sz[1];Eo;){zt=0,Xe=0,pe=(po=this.buildFinalText(Y.t)).length,sn=Y.tr/1e3*Y.finalSize;var lo=-1;for(X=0;X<pe;X+=1)rn=po[X].charCodeAt(0),xe=!1,po[X]===" "?lo=X:(rn===13||rn===3)&&(Xe=0,xe=!0,zt+=Y.finalLineHeight||1.2*Y.finalSize),Ye.chars?(Qe=Ye.getCharData(po[X],Ne.fStyle,Ne.fFamily),qe=xe?0:Qe.w*Y.finalSize/100):qe=Ye.measureText(po[X],Y.f,Y.finalSize),Xe+qe>ci&&po[X]!==" "?(lo===-1?pe+=1:X=lo,zt+=Y.finalLineHeight||1.2*Y.finalSize,po.splice(X,lo===X?1:0,"\r"),lo=-1,Xe=0):(Xe+=qe,Xe+=sn);zt+=Ne.ascent*Y.finalSize/100,this.canResize&&Y.finalSize>this.minimumFontSize&&Ko<zt?(Y.finalSize-=1,Y.finalLineHeight=Y.finalSize*Y.lh/Y.s):(Y.finalText=po,pe=Y.finalText.length,Eo=!1)}Xe=-sn,qe=0;var Vt,xn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(Vt=Y.finalText[X]).charCodeAt(0))===13||rn===3?(xn=0,en.push(Xe),We=Xe>We?Xe:We,Xe=-2*sn,Ae="",xe=!0,Kt+=1):Ae=Vt,Ye.chars?(Qe=Ye.getCharData(Vt,Ne.fStyle,Ye.getFontByName(Y.f).fFamily),qe=xe?0:Qe.w*Y.finalSize/100):qe=Ye.measureText(Ae,Y.f,Y.finalSize),Vt===" "?xn+=qe+sn:(Xe+=qe+sn+xn,xn=0),Jt.push({l:qe,an:qe,add:At,n:xe,anIndexes:[],val:Ae,line:Kt,animatorJustifyOffset:0}),pt==2){if(At+=qe,Ae===""||Ae===" "||X===pe-1){for((Ae===""||Ae===" ")&&(At-=qe);Tt<=X;)Jt[Tt].an=At,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;et+=1,At=0}}else if(pt==3){if(At+=qe,Ae===""||X===pe-1){for(Ae===""&&(At-=qe);Tt<=X;)Jt[Tt].an=At,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;At=0,et+=1}}else Jt[et].ind=et,Jt[et].extra=0,et+=1;if(Y.l=Jt,We=Xe>We?Xe:We,en.push(Xe),Y.sz)Y.boxWidth=Y.sz[0],Y.justifyOffset=0;else switch(Y.boxWidth=We,Y.j){case 1:Y.justifyOffset=-Y.boxWidth;break;case 2:Y.justifyOffset=-Y.boxWidth/2;break;default:Y.justifyOffset=0}Y.lineWidths=en;var xt,dt,ze=Rt.a;Re=ze.length;var ht,wt,xi=[];for(Ee=0;Ee<Re;Ee+=1){for((xt=ze[Ee]).a.sc&&(Y.strokeColorAnim=!0),xt.a.sw&&(Y.strokeWidthAnim=!0),(xt.a.fc||xt.a.fh||xt.a.fs||xt.a.fb)&&(Y.fillColorAnim=!0),wt=0,ht=xt.s.b,X=0;X<pe;X+=1)(dt=Jt[X]).anIndexes[Ee]=wt,(ht==1&&dt.val!==""||ht==2&&dt.val!==""&&dt.val!==" "||ht==3&&(dt.n||dt.val==" "||X==pe-1)||ht==4&&(dt.n||X==pe-1))&&(xt.s.rn===1&&xi.push(wt),wt+=1);Rt.a[Ee].s.totalChars=wt;var Zo,Po=-1;if(xt.s.rn===1)for(X=0;X<pe;X+=1)Po!=(dt=Jt[X]).anIndexes[Ee]&&(Po=dt.anIndexes[Ee],Zo=xi.splice(Math.floor(Math.random()*xi.length),1)[0]),dt.anIndexes[Ee]=Zo}Y.yOffset=Y.finalLineHeight||1.2*Y.finalSize,Y.ls=Y.ls||0,Y.ascent=Ne.ascent*Y.finalSize/100},td.prototype.updateDocumentData=function(Y,X){X=X===void 0?this.keysIndex:X;var pe=this.copyData({},this.data.d.k[X].s);pe=this.copyData(pe,Y),this.data.d.k[X].s=pe,this.recalculate(X),this.setCurrentData(pe),this.elem.addDynamicProperty(this)},td.prototype.recalculate=function(Y){var X=this.data.d.k[Y].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},td.prototype.canResizeFont=function(Y){this.canResize=Y,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},td.prototype.setMinimumFontSize=function(Y){this.minimumFontSize=Math.floor(Y)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var bw=(function(){var Y=Math.max,X=Math.min,pe=Math.floor;function xe(Ee,Re){this._currentTextLength=-1,this.k=!1,this.data=Re,this.elem=Ee,this.comp=Ee.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(Ee),this.s=Ze.getProp(Ee,Re.s||{k:0},0,0,this),this.e="e"in Re?Ze.getProp(Ee,Re.e,0,0,this):{v:100},this.o=Ze.getProp(Ee,Re.o||{k:0},0,0,this),this.xe=Ze.getProp(Ee,Re.xe||{k:0},0,0,this),this.ne=Ze.getProp(Ee,Re.ne||{k:0},0,0,this),this.sm=Ze.getProp(Ee,Re.sm||{k:100},0,0,this),this.a=Ze.getProp(Ee,Re.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function Ae(Ee,Re,Qe){return new xe(Ee,Re)}return xe.prototype={getMult:function(Ee){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Re=0,Qe=0,Ye=1,Rt=1;this.ne.v>0?Re=this.ne.v/100:Qe=-this.ne.v/100,this.xe.v>0?Ye=1-this.xe.v/100:Rt=1+this.xe.v/100;var Jt=Be.getBezierEasing(Re,Qe,Ye,Rt).get,et=0,pt=this.finalS,At=this.finalE,Tt=this.data.sh;if(Tt===2)et=Jt(et=At===pt?Ee>=At?1:0:Y(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)));else if(Tt===3)et=Jt(et=At===pt?Ee>=At?0:1:1-Y(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)));else if(Tt===4)At===pt?et=0:(et=Y(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)))<.5?et*=2:et=1-2*(et-.5),et=Jt(et);else if(Tt===5){if(At===pt)et=0;else{var Kt=At-pt,en=-Kt/2+(Ee=X(Y(0,Ee+.5-pt),At-pt)),Xe=Kt/2;et=Math.sqrt(1-en*en/(Xe*Xe))}et=Jt(et)}else Tt===6?(At===pt?et=0:(Ee=X(Y(0,Ee+.5-pt),At-pt),et=(1+Math.cos(Math.PI+2*Math.PI*Ee/(At-pt)))/2),et=Jt(et)):(Ee>=pe(pt)&&(et=Y(0,X(Ee-pt<0?X(At,1)-(pt-Ee):At-Ee,1))),et=Jt(et));if(this.sm.v!==100){var We=.01*this.sm.v;We===0&&(We=1e-8);var Ne=.5-.5*We;et<Ne?et=0:(et=(et-Ne)/We)>1&&(et=1)}return et*this.a.v},getValue:function(Ee){this.iterateDynamicProperties(),this._mdf=Ee||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,Ee&&this.data.r===2&&(this.e.v=this._currentTextLength);var Re=this.data.r===2?1:100/this.data.totalChars,Qe=this.o.v/Re,Ye=this.s.v/Re+Qe,Rt=this.e.v/Re+Qe;if(Ye>Rt){var Jt=Ye;Ye=Rt,Rt=Jt}this.finalS=Ye,this.finalE=Rt}},g([Ot],xe),{getTextSelectorProp:Ae}})();function nae(Y,X,pe){var xe={propType:!1},Ae=Ze.getProp,Ee=X.a;this.a={r:Ee.r?Ae(Y,Ee.r,0,D,pe):xe,rx:Ee.rx?Ae(Y,Ee.rx,0,D,pe):xe,ry:Ee.ry?Ae(Y,Ee.ry,0,D,pe):xe,sk:Ee.sk?Ae(Y,Ee.sk,0,D,pe):xe,sa:Ee.sa?Ae(Y,Ee.sa,0,D,pe):xe,s:Ee.s?Ae(Y,Ee.s,1,.01,pe):xe,a:Ee.a?Ae(Y,Ee.a,1,0,pe):xe,o:Ee.o?Ae(Y,Ee.o,0,.01,pe):xe,p:Ee.p?Ae(Y,Ee.p,1,0,pe):xe,sw:Ee.sw?Ae(Y,Ee.sw,0,0,pe):xe,sc:Ee.sc?Ae(Y,Ee.sc,1,0,pe):xe,fc:Ee.fc?Ae(Y,Ee.fc,1,0,pe):xe,fh:Ee.fh?Ae(Y,Ee.fh,0,0,pe):xe,fs:Ee.fs?Ae(Y,Ee.fs,0,.01,pe):xe,fb:Ee.fb?Ae(Y,Ee.fb,0,.01,pe):xe,t:Ee.t?Ae(Y,Ee.t,0,0,pe):xe},this.s=bw.getTextSelectorProp(Y,X.s,pe),this.s.t=X.s.t}function w2(Y,X,pe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=Y,this._renderType=X,this._elem=pe,this._animatorsData=b(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(pe)}function $0(){}w2.prototype.searchProperties=function(){var Y,X,pe=this._textData.a.length,xe=Ze.getProp;for(Y=0;Y<pe;Y+=1)X=this._textData.a[Y],this._animatorsData[Y]=new nae(this._elem,X,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:xe(this._elem,this._textData.p.a,0,0,this),f:xe(this._elem,this._textData.p.f,0,0,this),l:xe(this._elem,this._textData.p.l,0,0,this),r:xe(this._elem,this._textData.p.r,0,0,this),p:xe(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=xe(this._elem,this._textData.m.a,1,0,this)},w2.prototype.getMeasures=function(Y,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,Ae,Ee,Re,Qe,Ye,Rt,Jt,et,pt,At,Tt,Kt,en,Xe,We,Ne,qe,ft=this._moreOptions.alignment.v,rn=this._animatorsData,sn=this._textData,zt=this.mHelper,po=this._renderType,Eo=this.renderedLetters.length,ci=Y.l;if(this._hasMaskedPath){if(qe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ko,lo=qe.v;for(this._pathData.r.v&&(lo=lo.reverse()),Re={tLength:0,segments:[]},Ee=lo._length-1,Xe=0,Ae=0;Ae<Ee;Ae+=1)Ko=De.buildBezierData(lo.v[Ae],lo.v[Ae+1],[lo.o[Ae][0]-lo.v[Ae][0],lo.o[Ae][1]-lo.v[Ae][1]],[lo.i[Ae+1][0]-lo.v[Ae+1][0],lo.i[Ae+1][1]-lo.v[Ae+1][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength;Ae=Ee,qe.v.c&&(Ko=De.buildBezierData(lo.v[Ae],lo.v[0],[lo.o[Ae][0]-lo.v[Ae][0],lo.o[Ae][1]-lo.v[Ae][1]],[lo.i[0][0]-lo.v[0][0],lo.i[0][1]-lo.v[0][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength),this._pathData.pi=Re}if(Re=this._pathData.pi,Qe=this._pathData.f.v,pt=0,et=1,Rt=0,Jt=!0,Kt=Re.segments,Qe<0&&qe.v.c)for(Re.tLength<Math.abs(Qe)&&(Qe=-Math.abs(Qe)%Re.tLength),et=(Tt=Kt[pt=Kt.length-1].points).length-1;Qe<0;)Qe+=Tt[et].partialLength,(et-=1)<0&&(et=(Tt=Kt[pt-=1].points).length-1);At=(Tt=Kt[pt].points)[et-1],en=(Ye=Tt[et]).partialLength}Ee=ci.length,pe=0,xe=0;var Vt,xn,xt,dt,ze=1.2*Y.finalSize*.714,ht=!0;xt=rn.length;var wt,xi,Zo,Po,Ca,Jo,fl,ga,Xa,E0,C2,I0,D0,nh=-1,dr=Qe,Ek=pt,Ik=et,ww=-1,Wf="",x5=this.defaultPropsArray;if(Y.j===2||Y.j===1){var ih=0,U7=0,W7=Y.j===2?-.5:-1,A2=0,Q7=!0;for(Ae=0;Ae<Ee;Ae+=1)if(ci[Ae].n){for(ih&&(ih+=U7);A2<Ae;)ci[A2].animatorJustifyOffset=ih,A2+=1;ih=0,Q7=!0}else{for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).t.propType&&(Q7&&Y.j===2&&(U7+=Vt.t.v*W7),(wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?ih+=Vt.t.v*wt[0]*W7:ih+=Vt.t.v*wt*W7);Q7=!1}for(ih&&(ih+=U7);A2<Ae;)ci[A2].animatorJustifyOffset=ih,A2+=1}for(Ae=0;Ae<Ee;Ae+=1){if(zt.reset(),Ca=1,ci[Ae].n)pe=0,xe+=Y.yOffset,xe+=ht?1:0,Qe=dr,ht=!1,this._hasMaskedPath&&(et=Ik,At=(Tt=Kt[pt=Ek].points)[et-1],en=(Ye=Tt[et]).partialLength,Rt=0),Wf="",I0="",E0="",D0="",x5=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ww!==ci[Ae].line){switch(Y.j){case 1:Qe+=Xe-Y.lineWidths[ci[Ae].line];break;case 2:Qe+=(Xe-Y.lineWidths[ci[Ae].line])/2}ww=ci[Ae].line}nh!==ci[Ae].ind&&(ci[nh]&&(Qe+=ci[nh].extra),Qe+=ci[Ae].an/2,nh=ci[Ae].ind),Qe+=ft[0]*ci[Ae].an*.005;var v2=0;for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).p.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?v2+=Vt.p.v[0]*wt[0]:v2+=Vt.p.v[0]*wt),Vt.a.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?v2+=Vt.a.v[0]*wt[0]:v2+=Vt.a.v[0]*wt);for(Jt=!0,this._pathData.a.v&&(Qe=.5*ci[0].an+(Xe-this._pathData.f.v-.5*ci[0].an-.5*ci[ci.length-1].an)*nh/(Ee-1),Qe+=this._pathData.f.v);Jt;)Rt+en>=Qe+v2||!Tt?(We=(Qe+v2-Rt)/Ye.partialLength,Zo=At.point[0]+(Ye.point[0]-At.point[0])*We,Po=At.point[1]+(Ye.point[1]-At.point[1])*We,zt.translate(-ft[0]*ci[Ae].an*.005,-ft[1]*ze*.01),Jt=!1):Tt&&(Rt+=Ye.partialLength,(et+=1)>=Tt.length&&(et=0,Kt[pt+=1]?Tt=Kt[pt].points:qe.v.c?(et=0,Tt=Kt[pt=0].points):(Rt-=Ye.partialLength,Tt=null)),Tt&&(At=Ye,en=(Ye=Tt[et]).partialLength));xi=ci[Ae].an/2-ci[Ae].add,zt.translate(-xi,0,0)}else xi=ci[Ae].an/2-ci[Ae].add,zt.translate(-xi,0,0),zt.translate(-ft[0]*ci[Ae].an*.005,-ft[1]*ze*.01,0);for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).t.propType&&(wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars),(pe!==0||Y.j!==0)&&(this._hasMaskedPath?wt.length?Qe+=Vt.t.v*wt[0]:Qe+=Vt.t.v*wt:wt.length?pe+=Vt.t.v*wt[0]:pe+=Vt.t.v*wt));for(Y.strokeWidthAnim&&(fl=Y.sw||0),Y.strokeColorAnim&&(Jo=Y.sc?[Y.sc[0],Y.sc[1],Y.sc[2]]:[0,0,0]),Y.fillColorAnim&&Y.fc&&(ga=[Y.fc[0],Y.fc[1],Y.fc[2]]),xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).a.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?zt.translate(-Vt.a.v[0]*wt[0],-Vt.a.v[1]*wt[1],Vt.a.v[2]*wt[2]):zt.translate(-Vt.a.v[0]*wt,-Vt.a.v[1]*wt,Vt.a.v[2]*wt));for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).s.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?zt.scale(1+(Vt.s.v[0]-1)*wt[0],1+(Vt.s.v[1]-1)*wt[1],1):zt.scale(1+(Vt.s.v[0]-1)*wt,1+(Vt.s.v[1]-1)*wt,1));for(xn=0;xn<xt;xn+=1){if(Vt=rn[xn].a,wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars),Vt.sk.propType&&(wt.length?zt.skewFromAxis(-Vt.sk.v*wt[0],Vt.sa.v*wt[1]):zt.skewFromAxis(-Vt.sk.v*wt,Vt.sa.v*wt)),Vt.r.propType&&(wt.length?zt.rotateZ(-Vt.r.v*wt[2]):zt.rotateZ(-Vt.r.v*wt)),Vt.ry.propType&&(wt.length?zt.rotateY(Vt.ry.v*wt[1]):zt.rotateY(Vt.ry.v*wt)),Vt.rx.propType&&(wt.length?zt.rotateX(Vt.rx.v*wt[0]):zt.rotateX(Vt.rx.v*wt)),Vt.o.propType&&(wt.length?Ca+=(Vt.o.v*wt[0]-Ca)*wt[0]:Ca+=(Vt.o.v*wt-Ca)*wt),Y.strokeWidthAnim&&Vt.sw.propType&&(wt.length?fl+=Vt.sw.v*wt[0]:fl+=Vt.sw.v*wt),Y.strokeColorAnim&&Vt.sc.propType)for(Xa=0;Xa<3;Xa+=1)wt.length?Jo[Xa]+=(Vt.sc.v[Xa]-Jo[Xa])*wt[0]:Jo[Xa]+=(Vt.sc.v[Xa]-Jo[Xa])*wt;if(Y.fillColorAnim&&Y.fc){if(Vt.fc.propType)for(Xa=0;Xa<3;Xa+=1)wt.length?ga[Xa]+=(Vt.fc.v[Xa]-ga[Xa])*wt[0]:ga[Xa]+=(Vt.fc.v[Xa]-ga[Xa])*wt;Vt.fh.propType&&(ga=wt.length?q(ga,Vt.fh.v*wt[0]):q(ga,Vt.fh.v*wt)),Vt.fs.propType&&(ga=wt.length?U(ga,Vt.fs.v*wt[0]):U(ga,Vt.fs.v*wt)),Vt.fb.propType&&(ga=wt.length?G(ga,Vt.fb.v*wt[0]):G(ga,Vt.fb.v*wt))}}for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).p.propType&&(wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars),this._hasMaskedPath?wt.length?zt.translate(0,Vt.p.v[1]*wt[0],-Vt.p.v[2]*wt[1]):zt.translate(0,Vt.p.v[1]*wt,-Vt.p.v[2]*wt):wt.length?zt.translate(Vt.p.v[0]*wt[0],Vt.p.v[1]*wt[1],-Vt.p.v[2]*wt[2]):zt.translate(Vt.p.v[0]*wt,Vt.p.v[1]*wt,-Vt.p.v[2]*wt));if(Y.strokeWidthAnim&&(E0=fl<0?0:fl),Y.strokeColorAnim&&(C2="rgb("+Math.round(255*Jo[0])+","+Math.round(255*Jo[1])+","+Math.round(255*Jo[2])+")"),Y.fillColorAnim&&Y.fc&&(I0="rgb("+Math.round(255*ga[0])+","+Math.round(255*ga[1])+","+Math.round(255*ga[2])+")"),this._hasMaskedPath){if(zt.translate(0,-Y.ls),zt.translate(0,ft[1]*ze*.01+xe,0),this._pathData.p.v){Ne=(Ye.point[1]-At.point[1])/(Ye.point[0]-At.point[0]);var Cw=180*Math.atan(Ne)/Math.PI;Ye.point[0]<At.point[0]&&(Cw+=180),zt.rotate(-Cw*Math.PI/180)}zt.translate(Zo,Po,0),Qe-=ft[0]*ci[Ae].an*.005,ci[Ae+1]&&nh!==ci[Ae+1].ind&&(Qe+=ci[Ae].an/2,Qe+=.001*Y.tr*Y.finalSize)}else{switch(zt.translate(pe,xe,0),Y.ps&&zt.translate(Y.ps[0],Y.ps[1]+Y.ascent,0),Y.j){case 1:zt.translate(ci[Ae].animatorJustifyOffset+Y.justifyOffset+(Y.boxWidth-Y.lineWidths[ci[Ae].line]),0,0);break;case 2:zt.translate(ci[Ae].animatorJustifyOffset+Y.justifyOffset+(Y.boxWidth-Y.lineWidths[ci[Ae].line])/2,0,0)}zt.translate(0,-Y.ls),zt.translate(xi,0,0),zt.translate(ft[0]*ci[Ae].an*.005,ft[1]*ze*.01,0),pe+=ci[Ae].l+.001*Y.tr*Y.finalSize}po==="html"?Wf=zt.toCSS():po==="svg"?Wf=zt.to2dCSS():x5=[zt.props[0],zt.props[1],zt.props[2],zt.props[3],zt.props[4],zt.props[5],zt.props[6],zt.props[7],zt.props[8],zt.props[9],zt.props[10],zt.props[11],zt.props[12],zt.props[13],zt.props[14],zt.props[15]],D0=Ca}Eo<=Ae?(dt=new th(D0,E0,C2,I0,Wf,x5),this.renderedLetters.push(dt),Eo+=1,this.lettersChangedFlag=!0):(dt=this.renderedLetters[Ae],this.lettersChangedFlag=dt.update(D0,E0,C2,I0,Wf,x5)||this.lettersChangedFlag)}}},w2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},w2.prototype.mHelper=new jt,w2.prototype.defaultPropsArray=[],g([Ot],w2),$0.prototype.initElement=function(Y,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(Y,X,pe),this.textProperty=new td(this,Y.t,this.dynamicProperties),this.textAnimator=new w2(Y.t,this.renderType,this),this.initTransform(Y,X,pe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},$0.prototype.prepareFrame=function(Y){this._mdf=!1,this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange)},$0.prototype.createPathShape=function(Y,X){var pe,xe,Ae=X.length,Ee="";for(pe=0;pe<Ae;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,Ee+=Zn(xe,xe.i.length,!0,Y));return Ee},$0.prototype.updateDocumentData=function(Y,X){this.textProperty.updateDocumentData(Y,X)},$0.prototype.canResizeFont=function(Y){this.textProperty.canResizeFont(Y)},$0.prototype.setMinimumFontSize=function(Y){this.textProperty.setMinimumFontSize(Y)},$0.prototype.applyTextPropertiesToMatrix=function(Y,X,pe,xe,Ae){switch(Y.ps&&X.translate(Y.ps[0],Y.ps[1]+Y.ascent,0),X.translate(0,-Y.ls,0),Y.j){case 1:X.translate(Y.justifyOffset+(Y.boxWidth-Y.lineWidths[pe]),0,0);break;case 2:X.translate(Y.justifyOffset+(Y.boxWidth-Y.lineWidths[pe])/2,0,0)}X.translate(xe,Ae,0)},$0.prototype.buildColor=function(Y){return"rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"},$0.prototype.emptyProp=new th,$0.prototype.destroy=function(){},$0.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Irn={shapes:[]};function g5(Y,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(Y,X,pe)}function iae(Y,X,pe){this.initElement(Y,X,pe)}function H7(Y,X,pe){this.initFrame(),this.initBaseData(Y,X,pe),this.initFrame(),this.initTransform(Y,X,pe),this.initHierarchy()}function Pd(){}function f5(){}function zL(Y,X,pe){this.layers=Y.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?b(this.layers.length):[],this.initElement(Y,X,pe),this.tm=Y.tm?Ze.getProp(this,Y.tm,0,X.frameRate,this):{_placeholder:!0}}function oae(Y,X){this.animationItem=Y,this.layers=null,this.renderedFrame=-1,this.svgElement=le("svg");var pe="";if(X&&X.title){var xe=le("title"),Ae=H();xe.setAttribute("id",Ae),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ae}if(X&&X.description){var Ee=le("desc"),Re=H();Ee.setAttribute("id",Re),Ee.textContent=X.description,this.svgElement.appendChild(Ee),pe+=" "+Re}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var Qe=le("defs");this.svgElement.appendChild(Qe);var Ye=le("g");this.svgElement.appendChild(Ye),this.layerElement=Ye,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Qe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Nn,b2,fw,V7,Ai,m5,$0],g5),g5.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},g5.prototype.buildTextContents=function(Y){for(var X=0,pe=Y.length,xe=[],Ae="";X<pe;)Y[X]==="\r"||Y[X]===""?(xe.push(Ae),Ae=""):Ae+=Y[X],X+=1;return xe.push(Ae),xe},g5.prototype.buildShapeData=function(Y,X){if(Y.shapes&&Y.shapes.length){var pe=Y.shapes[0];if(pe.it){var xe=pe.it[pe.it.length-1];xe.s&&(xe.s.k[0]=X,xe.s.k[1]=X)}}return Y},g5.prototype.buildNewText=function(){this.addDynamicProperty(this);var Y,X,pe=this.textProperty.currentData;this.renderedLetters=b(pe?pe.l.length:0),pe.fc?this.layerElement.setAttribute("fill",this.buildColor(pe.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),pe.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(pe.sc)),this.layerElement.setAttribute("stroke-width",pe.sw)),this.layerElement.setAttribute("font-size",pe.finalSize);var xe=this.globalData.fontManager.getFontByName(pe.f);if(xe.fClass)this.layerElement.setAttribute("class",xe.fClass);else{this.layerElement.setAttribute("font-family",xe.fFamily);var Ae=pe.fWeight,Ee=pe.fStyle;this.layerElement.setAttribute("font-style",Ee),this.layerElement.setAttribute("font-weight",Ae)}this.layerElement.setAttribute("aria-label",pe.t);var Re=pe.l||[],Qe=!!this.globalData.fontManager.chars;X=Re.length;var Ye,Rt=this.mHelper,Jt="",et=this.data.singleShape,pt=0,At=0,Tt=!0,Kt=.001*pe.tr*pe.finalSize;if(!et||Qe||pe.sz){var en,Xe=this.textSpans.length;for(Y=0;Y<X;Y+=1){if(this.textSpans[Y]||(this.textSpans[Y]={span:null,childSpan:null,glyph:null}),!Qe||!et||Y===0){if(Ye=Xe>Y?this.textSpans[Y].span:le(Qe?"g":"text"),Xe<=Y){if(Ye.setAttribute("stroke-linecap","butt"),Ye.setAttribute("stroke-linejoin","round"),Ye.setAttribute("stroke-miterlimit","4"),this.textSpans[Y].span=Ye,Qe){var We=le("g");Ye.appendChild(We),this.textSpans[Y].childSpan=We}this.textSpans[Y].span=Ye,this.layerElement.appendChild(Ye)}Ye.style.display="inherit"}if(Rt.reset(),et&&(Re[Y].n&&(pt=-Kt,At+=pe.yOffset,At+=Tt?1:0,Tt=!1),this.applyTextPropertiesToMatrix(pe,Rt,Re[Y].line,pt,At),pt+=Re[Y].l||0,pt+=Kt),Qe){var Ne;if((en=this.globalData.fontManager.getCharData(pe.finalText[Y],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new zL(en.data,this.globalData,this);else{var qe=Irn;en.data&&en.data.shapes&&(qe=this.buildShapeData(en.data,pe.finalSize)),Ne=new tr(qe,this.globalData,this)}if(this.textSpans[Y].glyph){var ft=this.textSpans[Y].glyph;this.textSpans[Y].childSpan.removeChild(ft.layerElement),ft.destroy()}this.textSpans[Y].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[Y].childSpan.appendChild(Ne.layerElement),en.t===1&&this.textSpans[Y].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&Ye.setAttribute("transform","translate("+Rt.props[12]+","+Rt.props[13]+")"),Ye.textContent=Re[Y].val,Ye.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&Ye&&Ye.setAttribute("d",Jt)}else{var rn=this.textContainer,sn="start";switch(pe.j){case 1:sn="end";break;case 2:sn="middle";break;default:sn="start"}rn.setAttribute("text-anchor",sn),rn.setAttribute("letter-spacing",Kt);var zt=this.buildTextContents(pe.finalText);for(X=zt.length,At=pe.ps?pe.ps[1]+pe.ascent:0,Y=0;Y<X;Y+=1)(Ye=this.textSpans[Y].span||le("tspan")).textContent=zt[Y],Ye.setAttribute("x",0),Ye.setAttribute("y",At),Ye.style.display="inherit",rn.appendChild(Ye),this.textSpans[Y]||(this.textSpans[Y]={span:null,glyph:null}),this.textSpans[Y].span=Ye,At+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;Y<this.textSpans.length;)this.textSpans[Y].span.style.display="none",Y+=1;this._sizeChanged=!0},g5.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var Y=this.layerElement.getBBox();this.bbox={top:Y.y,left:Y.x,width:Y.width,height:Y.height}}return this.bbox},g5.prototype.getValue=function(){var Y,X,pe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,Y=0;Y<pe;Y+=1)(X=this.textSpans[Y].glyph)&&(X.prepareFrame(this.comp.renderedFrame-this.data.st),X._mdf&&(this._mdf=!0))},g5.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var Y,X,pe,xe,Ae,Ee=this.textAnimator.renderedLetters,Re=this.textProperty.currentData.l;for(X=Re.length,Y=0;Y<X;Y+=1)Re[Y].n||(pe=Ee[Y],xe=this.textSpans[Y].span,(Ae=this.textSpans[Y].glyph)&&Ae.renderFrame(),pe._mdf.m&&xe.setAttribute("transform",pe.m),pe._mdf.o&&xe.setAttribute("opacity",pe.o),pe._mdf.sw&&xe.setAttribute("stroke-width",pe.sw),pe._mdf.sc&&xe.setAttribute("stroke",pe.sc),pe._mdf.fc&&xe.setAttribute("fill",pe.fc))}},g([xw],iae),iae.prototype.createContent=function(){var Y=le("rect");Y.setAttribute("width",this.data.sw),Y.setAttribute("height",this.data.sh),Y.setAttribute("fill",this.data.sc),this.layerElement.appendChild(Y)},H7.prototype.prepareFrame=function(Y){this.prepareProperties(Y,!0)},H7.prototype.renderFrame=function(){},H7.prototype.getBaseElement=function(){return null},H7.prototype.destroy=function(){},H7.prototype.sourceRectAtTime=function(){},H7.prototype.hide=function(){},g([Nn,b2,V7,Ai],H7),g([al],Pd),Pd.prototype.createNull=function(Y){return new H7(Y,this.globalData,this)},Pd.prototype.createShape=function(Y){return new tr(Y,this.globalData,this)},Pd.prototype.createText=function(Y){return new g5(Y,this.globalData,this)},Pd.prototype.createImage=function(Y){return new xw(Y,this.globalData,this)},Pd.prototype.createSolid=function(Y){return new iae(Y,this.globalData,this)},Pd.prototype.configAnimation=function(Y){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+Y.w+" "+Y.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",Y.w),this.svgElement.setAttribute("height",Y.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var X=this.globalData.defs;this.setupGlobalData(Y,X),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=Y;var pe=le("clipPath"),xe=le("rect");xe.setAttribute("width",Y.w),xe.setAttribute("height",Y.h),xe.setAttribute("x",0),xe.setAttribute("y",0);var Ae=H();pe.setAttribute("id",Ae),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ae+")"),X.appendChild(pe),this.layers=Y.layers,this.elements=b(Y.layers.length)},Pd.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var Y,X=this.layers?this.layers.length:0;for(Y=0;Y<X;Y+=1)this.elements[Y]&&this.elements[Y].destroy&&this.elements[Y].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Pd.prototype.updateContainerSize=function(){},Pd.prototype.findIndexByInd=function(Y){var X=0,pe=this.layers.length;for(X=0;X<pe;X+=1)if(this.layers[X].ind===Y)return X;return-1},Pd.prototype.buildItem=function(Y){var X=this.elements;if(!X[Y]&&this.layers[Y].ty!==99){X[Y]=!0;var pe=this.createItem(this.layers[Y]);if(X[Y]=pe,te()&&(this.layers[Y].ty===0&&this.globalData.projectInterface.registerComposition(pe),pe.initExpressions()),this.appendElementInPos(pe,Y),this.layers[Y].tt){var xe="tp"in this.layers[Y]?this.findIndexByInd(this.layers[Y].tp):Y-1;if(xe===-1)return;if(this.elements[xe]&&this.elements[xe]!==!0){var Ae=X[xe].getMatte(this.layers[Y].tt);pe.setMatte(Ae)}else this.buildItem(xe),this.addPendingElement(pe)}}},Pd.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var Y=this.pendingElements.pop();if(Y.checkParenting(),Y.data.tt)for(var X=0,pe=this.elements.length;X<pe;){if(this.elements[X]===Y){var xe="tp"in Y.data?this.findIndexByInd(Y.data.tp):X-1,Ae=this.elements[xe].getMatte(this.layers[X].tt);Y.setMatte(Ae);break}X+=1}}},Pd.prototype.renderFrame=function(Y){if(this.renderedFrame!==Y&&!this.destroyed){Y===null?Y=this.renderedFrame:this.renderedFrame=Y,this.globalData.frameNum=Y,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=Y,this.globalData._mdf=!1;var X,pe=this.layers.length;for(this.completeLayers||this.checkLayers(Y),X=pe-1;X>=0;X-=1)(this.completeLayers||this.elements[X])&&this.elements[X].prepareFrame(Y-this.layers[X].st);if(this.globalData._mdf)for(X=0;X<pe;X+=1)(this.completeLayers||this.elements[X])&&this.elements[X].renderFrame()}},Pd.prototype.appendElementInPos=function(Y,X){var pe=Y.getBaseElement();if(pe){for(var xe,Ae=0;Ae<X;)this.elements[Ae]&&this.elements[Ae]!==!0&&this.elements[Ae].getBaseElement()&&(xe=this.elements[Ae].getBaseElement()),Ae+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},Pd.prototype.hide=function(){this.layerElement.style.display="none"},Pd.prototype.show=function(){this.layerElement.style.display="block"},g([Nn,b2,V7,Ai,m5],f5),f5.prototype.initElement=function(Y,X,pe){this.initFrame(),this.initBaseData(Y,X,pe),this.initTransform(Y,X,pe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!X.progressiveLoad)&&this.buildAllItems(),this.hide()},f5.prototype.prepareFrame=function(Y){if(this._mdf=!1,this.prepareRenderableFrame(Y),this.prepareProperties(Y,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=Y/this.data.sr;else{var X=this.tm.v;X===this.data.op&&(X=this.data.op-1),this.renderedFrame=X}var pe,xe=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),pe=xe-1;pe>=0;pe-=1)(this.completeLayers||this.elements[pe])&&(this.elements[pe].prepareFrame(this.renderedFrame-this.layers[pe].st),this.elements[pe]._mdf&&(this._mdf=!0))}},f5.prototype.renderInnerContent=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)(this.completeLayers||this.elements[Y])&&this.elements[Y].renderFrame()},f5.prototype.setElements=function(Y){this.elements=Y},f5.prototype.getElements=function(){return this.elements},f5.prototype.destroyElements=function(){var Y,X=this.layers.length;for(Y=0;Y<X;Y+=1)this.elements[Y]&&this.elements[Y].destroy()},f5.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([Pd,f5,fw],zL),zL.prototype.createComp=function(Y){return new zL(Y,this.globalData,this)},g([Pd],oae),oae.prototype.createComp=function(Y){return new zL(Y,this.globalData,this)},me("svg",oae),un.registerModifier("tm",It),un.registerModifier("pb",Ft),un.registerModifier("rp",Fn),un.registerModifier("rd",_n),un.registerModifier("zz",ha),un.registerModifier("op",br),Yt})())})(0,lae.exports)),lae.exports}function rdn(){if(U$e)return sae;function e(n){return n instanceof g$e?g$e.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return U$e=1,sae=function(n){if(n=n||{},n.circles)return(function(l){const c=[],d=[],u=new Map;if(u.set(Date,(x=>new Date(x))),u.set(Map,((x,y)=>new Map(h(Array.from(x),y)))),u.set(Set,((x,y)=>new Set(h(Array.from(x),y)))),l.constructorHandlers)for(const x of l.constructorHandlers)u.set(x[0],x[1]);let p=null;return l.proto?f:g;function h(x,y){const b=Object.keys(x),w=new Array(b.length);for(let C=0;C<b.length;C++){const A=b[C],S=x[A];if(typeof S!="object"||S===null)w[A]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[A]=p(S,y);else if(ArrayBuffer.isView(S))w[A]=e(S);else{const k=c.indexOf(S);w[A]=k!==-1?d[k]:y(S)}}return w}function g(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,g);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,g);const y={};c.push(x),d.push(y);for(const b in x){if(Object.hasOwnProperty.call(x,b)===!1)continue;const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,g);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:g(w)}}return c.pop(),d.pop(),y}function f(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,f);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,f);const y={};c.push(x),d.push(y);for(const b in x){const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,f);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:f(w)}}return c.pop(),d.pop(),y}})(n);const i=new Map;if(i.set(Date,(l=>new Date(l))),i.set(Map,((l,c)=>new Map(s(Array.from(l),c)))),i.set(Set,((l,c)=>new Set(s(Array.from(l),c)))),n.constructorHandlers)for(const l of n.constructorHandlers)i.set(l[0],l[1]);let r=null;return n.proto?function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d}:function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){if(Object.hasOwnProperty.call(c,u)===!1)continue;const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d};function s(l,c){const d=Object.keys(l),u=new Array(d.length);for(let p=0;p<d.length;p++){const h=d[p],g=l[h];typeof g!="object"||g===null?u[h]=g:g.constructor!==Object&&(r=i.get(g.constructor))?u[h]=r(g,c):ArrayBuffer.isView(g)?u[h]=e(g):u[h]=c(g)}return u}},sae}var adn=(function(){if(G$e)return Y$e;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}G$e=1;var n=e(odn()),i=B,r=e(i),s=e((H$e||(H$e=1,V$e=function g(f,x){if(f===x)return!0;if(f&&x&&typeof f=="object"&&typeof x=="object"){if(f.constructor!==x.constructor)return!1;var y,b,w;if(Array.isArray(f)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(!g(f[b],x[b]))return!1;return!0}if(f instanceof Map&&x instanceof Map){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;for(b of f.entries())if(!g(b[1],x.get(b[0])))return!1;return!0}if(f instanceof Set&&x instanceof Set){if(f.size!==x.size)return!1;for(b of f.entries())if(!x.has(b[0]))return!1;return!0}if(ArrayBuffer.isView(f)&&ArrayBuffer.isView(x)){if((y=f.length)!=x.length)return!1;for(b=y;b--!=0;)if(f[b]!==x[b])return!1;return!0}if(f.constructor===RegExp)return f.source===x.source&&f.flags===x.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===x.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===x.toString();if((y=(w=Object.keys(f)).length)!==Object.keys(x).length)return!1;for(b=y;b--!=0;)if(!Object.prototype.hasOwnProperty.call(x,w[b]))return!1;for(b=y;b--!=0;){var C=w[b];if(!(C==="_owner"&&f.$$typeof||g(f[C],x[C])))return!1}return!0}return f!=f&&x!=x}),V$e)),l=e((Q$e||(Q$e=1,W$e=rdn()()),W$e));function c(){return c=Object.assign?Object.assign.bind():function(g){for(var f=1;f<arguments.length;f++){var x=arguments[f];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},c.apply(this,arguments)}function d(g,f){if(g==null)return{};var x,y,b={},w=Object.keys(g);for(y=0;y<w.length;y++)x=w[y],!(f.indexOf(x)>=0)&&(b[x]=g[x]);return b}var u={},p=function(){},h=(function(g){var f=g.loadAnimation,x=i.memo(i.forwardRef((function(y,b){var w,C,A=y.play,S=A===void 0?null:A,k=y.speed,$=k===void 0?1:k,j=y.direction,I=j===void 0?1:j,E=y.segments,D=E===void 0?null:E,L=y.goTo,F=L===void 0?null:L,N=y.useSubframes,_=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,O=M===void 0||M,H=y.rendererSettings,V=H===void 0?u:H,W=y.audioFactory,U=y.onLoad,G=U===void 0?p:U,q=y.onComplete,K=q===void 0?p:q,J=y.onLoopComplete,ee=J===void 0?p:J,te=y.onEnterFrame,ne=te===void 0?p:te,ae=y.onSegmentStart,oe=ae===void 0?p:ae,le=d(y,["play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),ge=le;if("animationData"in le){var ue=le;w=ue.animationData,ge=d(ue,["animationData"])}if("path"in le){var re=le;C=re.path,ge=d(re,["path"])}var ie=i.useRef(null),ce=i.useRef(),de=i.useCallback((function(){if(ce.current==null)throw new Error("Lottie ref is not set");return ce.current}),[]),he=i.useState(!1),me=he[0],ye=he[1],we=i.useState(D),be=we[0],Se=we[1];i.useEffect((function(){s(be,D)||Se(D)}),[D,be]);var Te=i.useState(V),Be=Te[0],Le=Te[1];i.useEffect((function(){s(Be,V)||Le(V)}),[V,Be]),i.useEffect((function(){return function(){return de().removeEventListener("complete",K)}}),[de,K]),i.useEffect((function(){return function(){return de().removeEventListener("loopComplete",ee)}}),[de,ee]),i.useEffect((function(){return function(){return de().removeEventListener("enterFrame",ne)}}),[de,ne]),i.useEffect((function(){return function(){return de().removeEventListener("segmentStart",oe)}}),[de,oe]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",G)}}),[de,G]);var Fe=i.useCallback((function(ke){ce.current=ke,typeof b=="function"?b(ke):b!=null&&(b.current=ke)}),[b]);i.useEffect((function(){if(ie.current==null)throw new Error("animElementRef is not set");var ke=f(c({animationData:w==null||typeof w!="object"?w:"default"in w&&typeof w.default=="object"?l(w.default):l(w),path:C,container:ie.current,renderer:T,loop:!1,autoplay:!1,rendererSettings:Be},W?{audioFactory:W}:{}));Fe(ke);var Ce=function(){return ye(!0)};return de().addEventListener("DOMLoaded",Ce),function(){de().removeEventListener("DOMLoaded",Ce),ye(!1),de().destroy(),Fe(void 0)}}),[O,T,Be,w,C,W,Fe,de]),i.useEffect((function(){de().addEventListener("DOMLoaded",G)}),[de,G]),i.useEffect((function(){de().addEventListener("complete",K)}),[de,K]),i.useEffect((function(){de().addEventListener("loopComplete",ee)}),[de,ee]),i.useEffect((function(){de().addEventListener("enterFrame",ne)}),[de,ne]),i.useEffect((function(){de().addEventListener("segmentStart",oe)}),[de,oe]),i.useEffect((function(){me&&(de().loop=O)}),[me,O,de]);var Me=i.useRef(!1);return i.useEffect((function(){if(me)if(S===!0){var ke=!0;be?(de().playSegments(be,ke),Me.current=!0,I===-1&&Ce(typeof be[1]=="number"?be[1]:be[1][1])):(Me.current&&de().resetSegments(ke),Me.current=!1,I===-1?Ce(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function Ce(De){de().goToAndPlay(De,!0),de().setDirection(I)}}),[S,be,me,I,de]),i.useEffect((function(){me&&(Number.isNaN($)||de().setSpeed($))}),[$,me,de]),i.useEffect((function(){me&&de().setDirection(I)}),[I,de,me]),i.useEffect((function(){if(me&&F!=null){var ke=!0;S?de().goToAndPlay(F,ke):de().goToAndStop(F,ke)}}),[de,F,S,me]),i.useEffect((function(){de().setSubframe&&de().setSubframe(_)}),[de,_]),r.createElement("div",c({},ge,{ref:ie}))})));return x})(n);return Y$e=h})();const Vs=pr(adn);var q$e,K$e,cae,Z$e,dae,J$e,uae,X$e,pae,eEe,hae,tEe,mae,nEe,iEe,oEe,rEe,aEe,sEe,lEe,cEe,dEe,uEe,pEe,hEe,mEe,gEe,fEe,xEe,yEe,gae,bEe,fae,wEe,xae,CEe,yae,AEe,bae,vEe,SEe,kEe,wae,jEe,Cae,$Ee,Aae,EEe,IEe,DEe,vae,TEe,LEe,BEe,PEe,MEe,OEe,FEe,REe,zEe,Sae,NEe,kae,_Ee,jae,VEe,HEe,UEe,WEe,QEe,YEe,GEe,$ae,qEe,Eae,KEe,Iae,ZEe,Dae,JEe,Tae,XEe,eIe,tIe,Lae,nIe,iIe,oIe,rIe,aIe,sIe,lIe,cIe,dIe,uIe,pIe,Bae,hIe,Pae,mIe,gIe,fIe,xIe,yIe,Mae,bIe,Oae,wIe,Fae,CIe,AIe,vIe,Rae,SIe,zae,kIe,jIe,$Ie,EIe,IIe,Nae,DIe,_ae,TIe,Vae,LIe,BIe,PIe;function Cte(){return Z$e||(Z$e=1,cae=function(e,n){return e===n||e!=e&&n!=n}),cae}function Y_(){if(J$e)return dae;J$e=1;var e=Cte();return dae=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},dae}function mq(){if(oEe)return iEe;oEe=1;var e=K$e?q$e:(K$e=1,q$e=function(){this.__data__=[],this.size=0}),n=(function(){if(X$e)return uae;X$e=1;var c=Y_(),d=Array.prototype.splice;return uae=function(u){var p=this.__data__,h=c(p,u);return!(h<0||(h==p.length-1?p.pop():d.call(p,h,1),--this.size,0))},uae})(),i=(function(){if(eEe)return pae;eEe=1;var c=Y_();return pae=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},pae})(),r=(function(){if(tEe)return hae;tEe=1;var c=Y_();return hae=function(d){return c(this.__data__,d)>-1},hae})(),s=(function(){if(nEe)return mae;nEe=1;var c=Y_();return mae=function(d,u){var p=this.__data__,h=c(p,d);return h<0?(++this.size,p.push([d,u])):p[h][1]=u,this},mae})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,iEe=l}function ovt(){if(mEe)return hEe;mEe=1;var e=typeof Uh=="object"&&Uh&&Uh.Object===Object&&Uh;return hEe=e}function D3(){if(fEe)return gEe;fEe=1;var e=ovt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return gEe=i}function ID(){if(yEe)return xEe;yEe=1;var e=D3().Symbol;return xEe=e}function BT(){if(CEe)return xae;CEe=1;var e=ID(),n=(function(){if(bEe)return gae;bEe=1;var s=ID(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return gae=function(p){var h=c.call(p,u),g=p[u];try{p[u]=void 0;var f=!0}catch{}var x=d.call(p);return f&&(h?p[u]=g:delete p[u]),x},gae})(),i=(function(){if(wEe)return fae;wEe=1;var s=Object.prototype.toString;return fae=function(l){return s.call(l)},fae})(),r=e?e.toStringTag:void 0;return xae=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},xae}function G3(){return AEe||(AEe=1,yae=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),yae}function rvt(){if(vEe)return bae;vEe=1;var e=BT(),n=G3();return bae=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},bae}function sdn(){if(jEe)return wae;jEe=1;var e=(function(){if(kEe)return SEe;kEe=1;var i=D3()["__core-js_shared__"];return SEe=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return wae=function(i){return!!n&&n in i},wae}function avt(){if($Ee)return Cae;$Ee=1;var e=Function.prototype.toString;return Cae=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},Cae}function Sv(){if(TEe)return vae;TEe=1;var e=(function(){if(EEe)return Aae;EEe=1;var i=rvt(),r=sdn(),s=G3(),l=avt(),c=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,p=d.toString,h=u.hasOwnProperty,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Aae=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},Aae})(),n=(DEe||(DEe=1,IEe=function(i,r){return i?.[r]}),IEe);return vae=function(i,r){var s=n(i,r);return e(s)?s:void 0},vae}function vwe(){if(BEe)return LEe;BEe=1;var e=Sv()(D3(),"Map");return LEe=e}function G_(){if(MEe)return PEe;MEe=1;var e=Sv()(Object,"create");return PEe=e}function ldn(){if(UEe)return HEe;UEe=1;var e=(function(){if(FEe)return OEe;FEe=1;var c=G_();return OEe=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(zEe||(zEe=1,REe=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),REe),i=(function(){if(NEe)return Sae;NEe=1;var c=G_(),d=Object.prototype.hasOwnProperty;return Sae=function(u){var p=this.__data__;if(c){var h=p[u];return h==="__lodash_hash_undefined__"?void 0:h}return d.call(p,u)?p[u]:void 0},Sae})(),r=(function(){if(_Ee)return kae;_Ee=1;var c=G_(),d=Object.prototype.hasOwnProperty;return kae=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},kae})(),s=(function(){if(VEe)return jae;VEe=1;var c=G_();return jae=function(d,u){var p=this.__data__;return this.size+=this.has(d)?0:1,p[d]=c&&u===void 0?"__lodash_hash_undefined__":u,this},jae})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,HEe=l}function q_(){if(qEe)return $ae;qEe=1;var e=(GEe||(GEe=1,YEe=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),YEe);return $ae=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},$ae}function Swe(){if(tIe)return eIe;tIe=1;var e=(function(){if(QEe)return WEe;QEe=1;var c=ldn(),d=mq(),u=vwe();return WEe=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(KEe)return Eae;KEe=1;var c=q_();return Eae=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Eae})(),i=(function(){if(ZEe)return Iae;ZEe=1;var c=q_();return Iae=function(d){return c(this,d).get(d)},Iae})(),r=(function(){if(JEe)return Dae;JEe=1;var c=q_();return Dae=function(d){return c(this,d).has(d)},Dae})(),s=(function(){if(XEe)return Tae;XEe=1;var c=q_();return Tae=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Tae})();function l(c){var d=-1,u=c==null?0:c.length;for(this.clear();++d<u;){var p=c[d];this.set(p[0],p[1])}}return l.prototype.clear=e,l.prototype.delete=n,l.prototype.get=i,l.prototype.has=r,l.prototype.set=s,eIe=l}function kwe(){if(oIe)return iIe;oIe=1;var e=mq(),n=(function(){if(aEe)return rEe;aEe=1;var d=mq();return rEe=function(){this.__data__=new d,this.size=0}})(),i=(lEe||(lEe=1,sEe=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),sEe),r=(dEe||(dEe=1,cEe=function(d){return this.__data__.get(d)}),cEe),s=(pEe||(pEe=1,uEe=function(d){return this.__data__.has(d)}),uEe),l=(function(){if(nIe)return Lae;nIe=1;var d=mq(),u=vwe(),p=Swe();return Lae=function(h,g){var f=this.__data__;if(f instanceof d){var x=f.__data__;if(!u||x.length<199)return x.push([h,g]),this.size=++f.size,this;f=this.__data__=new p(x)}return f.set(h,g),this.size=f.size,this},Lae})();function c(d){var u=this.__data__=new e(d);this.size=u.size}return c.prototype.clear=n,c.prototype.delete=i,c.prototype.get=r,c.prototype.has=s,c.prototype.set=l,iIe=c}function svt(){if(dIe)return cIe;dIe=1;var e=Swe(),n=(aIe||(aIe=1,rIe=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),rIe),i=(lIe||(lIe=1,sIe=function(s){return this.__data__.has(s)}),sIe);function r(s){var l=-1,c=s==null?0:s.length;for(this.__data__=new e;++l<c;)this.add(s[l])}return r.prototype.add=r.prototype.push=n,r.prototype.has=i,cIe=r}function lvt(){return hIe||(hIe=1,Bae=function(e,n){return e.has(n)}),Bae}function cvt(){if(mIe)return Pae;mIe=1;var e=svt(),n=(pIe||(pIe=1,uIe=function(r,s){for(var l=-1,c=r==null?0:r.length;++l<c;)if(s(r[l],l,r))return!0;return!1}),uIe),i=lvt();return Pae=function(r,s,l,c,d,u){var p=1&l,h=r.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var f=u.get(r),x=u.get(s);if(f&&x)return f==s&&x==r;var y=-1,b=!0,w=2&l?new e:void 0;for(u.set(r,s),u.set(s,r);++y<h;){var C=r[y],A=s[y];if(c)var S=p?c(A,C,y,s,r,u):c(C,A,y,r,s,u);if(S!==void 0){if(S)continue;b=!1;break}if(w){if(!n(s,(function(k,$){if(!i(w,$)&&(C===k||d(C,k,l,c,u)))return w.push($)}))){b=!1;break}}else if(C!==A&&!d(C,A,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},Pae}function dvt(){if(fIe)return gIe;fIe=1;var e=D3().Uint8Array;return gIe=e}function I5e(){return bIe||(bIe=1,Mae=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Mae}function cdn(){if(wIe)return Oae;wIe=1;var e=ID(),n=dvt(),i=Cte(),r=cvt(),s=(yIe||(yIe=1,xIe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),xIe),l=I5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Oae=function(u,p,h,g,f,x,y){switch(h){case"[object DataView]":if(u.byteLength!=p.byteLength||u.byteOffset!=p.byteOffset)return!1;u=u.buffer,p=p.buffer;case"[object ArrayBuffer]":return!(u.byteLength!=p.byteLength||!x(new n(u),new n(p)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+u,+p);case"[object Error]":return u.name==p.name&&u.message==p.message;case"[object RegExp]":case"[object String]":return u==p+"";case"[object Map]":var b=s;case"[object Set]":var w=1&g;if(b||(b=l),u.size!=p.size&&!w)return!1;var C=y.get(u);if(C)return C==p;g|=2,y.set(u,p);var A=r(b(u),b(p),g,f,x,y);return y.delete(u),A;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Oae}function jwe(){return CIe||(CIe=1,Fae=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Fae}function Ju(){if(vIe)return AIe;vIe=1;var e=Array.isArray;return AIe=e}function uvt(){if(SIe)return Rae;SIe=1;var e=jwe(),n=Ju();return Rae=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Rae}function $we(){return kIe||(kIe=1,zae=function(e,n){for(var i=-1,r=e==null?0:e.length,s=0,l=[];++i<r;){var c=e[i];n(c,i,e)&&(l[s++]=c)}return l}),zae}function pvt(){return $Ie?jIe:($Ie=1,jIe=function(){return[]})}function Ewe(){if(IIe)return EIe;IIe=1;var e=$we(),n=pvt(),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(l){return l==null?[]:(l=Object(l),e(r(l),(function(c){return i.call(l,c)})))}:n;return EIe=s}function hvt(){return DIe||(DIe=1,Nae=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Nae}function l7(){return TIe||(TIe=1,_ae=function(e){return e!=null&&typeof e=="object"}),_ae}function Iwe(){if(PIe)return BIe;PIe=1;var e=(function(){if(LIe)return Vae;LIe=1;var c=BT(),d=l7();return Vae=function(u){return d(u)&&c(u)=="[object Arguments]"},Vae})(),n=l7(),i=Object.prototype,r=i.hasOwnProperty,s=i.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(c){return n(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return BIe=l}var MIe,OIe,FIe,Hae,RIe,Uae,zIe,Wae,NIe,Qae,_Ie,Yae={exports:{}};function Dwe(){return FIe||(FIe=1,(function(e,n){var i=D3(),r=OIe?MIe:(OIe=1,MIe=function(){return!1}),s=n&&!n.nodeType&&n,l=s&&e&&!e.nodeType&&e,c=l&&l.exports===s?i.Buffer:void 0,d=(c?c.isBuffer:void 0)||r;e.exports=d})(Yae,Yae.exports)),Yae.exports}function Jz(){if(RIe)return Hae;RIe=1;var e=/^(?:0|[1-9]\d*)$/;return Hae=function(n,i){var r=typeof n;return!!(i=i??9007199254740991)&&(r=="number"||r!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i},Hae}function Twe(){return zIe?Uae:(zIe=1,Uae=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Uae)}function Ate(){return _Ie||(_Ie=1,Qae=function(e){return function(n){return e(n)}}),Qae}var VIe,HIe,UIe,Gae,WIe,qae,QIe,Kae,YIe,GIe,qIe,Zae,KIe,Jae,ZIe,Xae,JIe,ese,XIe,tse,eDe,tDe,nDe,iDe,oDe,rDe,aDe,sDe,lDe,cDe,dDe,nse,uDe,ise,pDe,ose,hDe,rse={exports:{}};function Lwe(){return VIe||(VIe=1,(function(e,n){var i=ovt(),r=n&&!n.nodeType&&n,s=r&&e&&!e.nodeType&&e,l=s&&s.exports===r&&i.process,c=(function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(rse,rse.exports)),rse.exports}function mvt(){if(UIe)return HIe;UIe=1;var e=(function(){if(NIe)return Wae;NIe=1;var l=BT(),c=Twe(),d=l7(),u={};return u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,Wae=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Wae})(),n=Ate(),i=Lwe(),r=i&&i.isTypedArray,s=r?n(r):e;return HIe=s}function gvt(){if(WIe)return Gae;WIe=1;var e=hvt(),n=Iwe(),i=Ju(),r=Dwe(),s=Jz(),l=mvt(),c=Object.prototype.hasOwnProperty;return Gae=function(d,u){var p=i(d),h=!p&&n(d),g=!p&&!h&&r(d),f=!p&&!h&&!g&&l(d),x=p||h||g||f,y=x?e(d.length,String):[],b=y.length;for(var w in d)(u||c.call(d,w))&&(!x||!(w=="length"||g&&(w=="offset"||w=="parent")||f&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||s(w,b)))&&y.push(w);return y},Gae}function Bwe(){if(QIe)return qae;QIe=1;var e=Object.prototype;return qae=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},qae}function fvt(){return YIe||(YIe=1,Kae=function(e,n){return function(i){return e(n(i))}}),Kae}function ddn(){if(KIe)return Zae;KIe=1;var e=Bwe(),n=(function(){if(qIe)return GIe;qIe=1;var r=fvt()(Object.keys,Object);return GIe=r})(),i=Object.prototype.hasOwnProperty;return Zae=function(r){if(!e(r))return n(r);var s=[];for(var l in Object(r))i.call(r,l)&&l!="constructor"&&s.push(l);return s},Zae}function PT(){if(ZIe)return Jae;ZIe=1;var e=rvt(),n=Twe();return Jae=function(i){return i!=null&&n(i.length)&&!e(i)},Jae}function RR(){if(JIe)return Xae;JIe=1;var e=gvt(),n=ddn(),i=PT();return Xae=function(r){return i(r)?e(r):n(r)},Xae}function xvt(){if(XIe)return ese;XIe=1;var e=uvt(),n=Ewe(),i=RR();return ese=function(r){return e(r,i,n)},ese}function yvt(){if(aDe)return rDe;aDe=1;var e=Sv()(D3(),"Set");return rDe=e}function vte(){if(dDe)return cDe;dDe=1;var e=(function(){if(nDe)return tDe;nDe=1;var A=Sv()(D3(),"DataView");return tDe=A})(),n=vwe(),i=(function(){if(oDe)return iDe;oDe=1;var A=Sv()(D3(),"Promise");return iDe=A})(),r=yvt(),s=(function(){if(lDe)return sDe;lDe=1;var A=Sv()(D3(),"WeakMap");return sDe=A})(),l=BT(),c=avt(),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",g="[object DataView]",f=c(e),x=c(n),y=c(i),b=c(r),w=c(s),C=l;return(e&&C(new e(new ArrayBuffer(1)))!=g||n&&C(new n)!=d||i&&C(i.resolve())!=u||r&&C(new r)!=p||s&&C(new s)!=h)&&(C=function(A){var S=l(A),k=S=="[object Object]"?A.constructor:void 0,$=k?c(k):"";if($)switch($){case f:return g;case x:return d;case y:return u;case b:return p;case w:return h}return S}),cDe=C}function udn(){if(uDe)return nse;uDe=1;var e=kwe(),n=cvt(),i=cdn(),r=(function(){if(eDe)return tse;eDe=1;var f=xvt(),x=Object.prototype.hasOwnProperty;return tse=function(y,b,w,C,A,S){var k=1&w,$=f(y),j=$.length;if(j!=f(b).length&&!k)return!1;for(var I=j;I--;){var E=$[I];if(!(k?E in b:x.call(b,E)))return!1}var D=S.get(y),L=S.get(b);if(D&&L)return D==b&&L==y;var F=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var _=y[E=$[I]],z=b[E];if(C)var T=k?C(z,_,E,b,y,S):C(_,z,E,y,b,S);if(!(T===void 0?_===z||A(_,z,w,C,S):T)){F=!1;break}N||(N=E=="constructor")}if(F&&!N){var M=y.constructor,O=b.constructor;M!=O&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&(F=!1)}return S.delete(y),S.delete(b),F},tse})(),s=vte(),l=Ju(),c=Dwe(),d=mvt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return nse=function(f,x,y,b,w,C){var A=l(f),S=l(x),k=A?p:s(f),$=S?p:s(x),j=(k=k==u?h:k)==h,I=($=$==u?h:$)==h,E=k==$;if(E&&c(f)){if(!c(x))return!1;A=!0,j=!1}if(E&&!j)return C||(C=new e),A||d(f)?n(f,x,y,b,w,C):i(f,x,k,y,b,w,C);if(!(1&y)){var D=j&&g.call(f,"__wrapped__"),L=I&&g.call(x,"__wrapped__");if(D||L){var F=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(F,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},nse}function Pwe(){if(pDe)return ise;pDe=1;var e=udn(),n=l7();return ise=function i(r,s,l,c,d){return r===s||(r==null||s==null||!n(r)&&!n(s)?r!=r&&s!=s:e(r,s,l,c,i,d))},ise}var pdn=(function(){if(hDe)return ose;hDe=1;var e=Pwe();return ose=function(n,i){return e(n,i)},ose})();const oo=pr(pdn);var mDe,gDe,ase,fDe,sse,xDe,lse,yDe,cse,bDe,dse,wDe;function hdn(){if(xDe)return sse;xDe=1;var e=(function(){if(fDe)return ase;fDe=1;var i=/\s/;return ase=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},ase})(),n=/^\s+/;return sse=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},sse}function Xz(){if(yDe)return lse;yDe=1;var e=BT(),n=l7();return lse=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},lse}function bvt(){if(bDe)return cse;bDe=1;var e=hdn(),n=G3(),i=Xz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return cse=function(d){if(typeof d=="number")return d;if(i(d))return NaN;if(n(d)){var u=typeof d.valueOf=="function"?d.valueOf():d;d=n(u)?u+"":u}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=s.test(d);return p||l.test(d)?c(d.slice(2),p?2:8):r.test(d)?NaN:+d},cse}function wvt(){if(wDe)return dse;wDe=1;var e=G3(),n=(function(){if(gDe)return mDe;gDe=1;var l=D3();return mDe=function(){return l.Date.now()}})(),i=bvt(),r=Math.max,s=Math.min;return dse=function(l,c,d){var u,p,h,g,f,x,y=0,b=!1,w=!1,C=!0;if(typeof l!="function")throw new TypeError("Expected a function");function A(I){var E=u,D=p;return u=p=void 0,y=I,g=l.apply(D,E)}function S(I){var E=I-x;return x===void 0||E>=c||E<0||w&&I-y>=h}function k(){var I=n();if(S(I))return $(I);f=setTimeout(k,(function(E){var D=c-(E-x);return w?s(D,h-(E-y)):D})(I))}function $(I){return f=void 0,C&&u?A(I):(u=p=void 0,g)}function j(){var I=n(),E=S(I);if(u=arguments,p=this,x=I,E){if(f===void 0)return(function(D){return y=D,f=setTimeout(k,c),b?A(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),A(x)}return f===void 0&&(f=setTimeout(k,c)),g}return c=i(c)||0,e(d)&&(b=!!d.leading,h=(w="maxWait"in d)?r(i(d.maxWait)||0,c):h,C="trailing"in d?!!d.trailing:C),j.cancel=function(){f!==void 0&&clearTimeout(f),y=0,u=x=p=f=void 0},j.flush=function(){return f===void 0?g:$(n())},j},dse}const vs=pr(wvt());var CDe,ADe;function Cvt(){return ADe?CDe:(ADe=1,CDe=function(){})}const Mwe=pr(Cvt());var use,vDe,SDe,kDe,pse,jDe,hse,$De,mse,EDe,gse,IDe,DDe,TDe,fse,LDe,xse,BDe,yse,PDe;function Avt(){return vDe||(vDe=1,use=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),use}function vvt(){if(kDe)return SDe;kDe=1;var e=Sv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return SDe=n}function Owe(){if(jDe)return pse;jDe=1;var e=vvt();return pse=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},pse}function Fwe(){if($De)return hse;$De=1;var e=Owe(),n=Cte(),i=Object.prototype.hasOwnProperty;return hse=function(r,s,l){var c=r[s];(!i.call(r,s)||!n(c,l)||l===void 0&&!(s in r))&&e(r,s,l)},hse}function hO(){if(EDe)return mse;EDe=1;var e=Fwe(),n=Owe();return mse=function(i,r,s,l){var c=!s;s||(s={});for(var d=-1,u=r.length;++d<u;){var p=r[d],h=l?l(s[p],i[p],p,s,i):void 0;h===void 0&&(h=i[p]),c?n(s,p,h):e(s,p,h)}return s},mse}function mdn(){if(LDe)return fse;LDe=1;var e=G3(),n=Bwe(),i=(TDe||(TDe=1,DDe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),DDe),r=Object.prototype.hasOwnProperty;return fse=function(s){if(!e(s))return i(s);var l=n(s),c=[];for(var d in s)d=="constructor"&&(l||!r.call(s,d))||c.push(d);return c},fse}function D5e(){if(BDe)return xse;BDe=1;var e=gvt(),n=mdn(),i=PT();return xse=function(r){return i(r)?e(r,!0):n(r)},xse}var MDe,ODe,FDe,bse,RDe,zDe,NDe,_De,VDe,wse,HDe,Cse,UDe,Ase,WDe,vse,QDe,Sse,YDe,kse,GDe,jse,qDe,$se,KDe,Ese,ZDe,JDe,XDe,Ise,eTe,Dse,tTe,nTe,iTe,Tse,oTe,rTe,aTe,Lse,sTe,Bse,lTe,Pse={exports:{}};function Rwe(){if(NDe)return zDe;NDe=1;var e=fvt()(Object.getPrototypeOf,Object);return zDe=e}function Svt(){if(VDe)return _De;VDe=1;var e=jwe(),n=Rwe(),i=Ewe(),r=pvt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return _De=s}function zwe(){if(UDe)return Cse;UDe=1;var e=uvt(),n=Svt(),i=D5e();return Cse=function(r){return e(r,i,n)},Cse}function Mse(){if(QDe)return vse;QDe=1;var e=dvt();return vse=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},vse}function gdn(){if(ZDe)return Ese;ZDe=1;var e=Mse(),n=(function(){if(YDe)return Sse;YDe=1;var l=Mse();return Sse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},Sse})(),i=(function(){if(GDe)return kse;GDe=1;var l=/\w*$/;return kse=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},kse})(),r=(function(){if(qDe)return jse;qDe=1;var l=ID(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return jse=function(u){return d?Object(d.call(u)):{}},jse})(),s=(function(){if(KDe)return $se;KDe=1;var l=Mse();return $se=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},$se})();return Ese=function(l,c,d){var u=l.constructor;switch(c){case"[object ArrayBuffer]":return e(l);case"[object Boolean]":case"[object Date]":return new u(+l);case"[object DataView]":return n(l,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(l,d);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(l);case"[object RegExp]":return i(l);case"[object Symbol]":return r(l)}},Ese}function fdn(){if(eTe)return Ise;eTe=1;var e=(function(){if(XDe)return JDe;XDe=1;var r=G3(),s=Object.create,l=(function(){function c(){}return function(d){if(!r(d))return{};if(s)return s(d);c.prototype=d;var u=new c;return c.prototype=void 0,u}})();return JDe=l})(),n=Rwe(),i=Bwe();return Ise=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Ise}function xdn(){if(iTe)return nTe;iTe=1;var e=(function(){if(tTe)return Dse;tTe=1;var l=vte(),c=l7();return Dse=function(d){return c(d)&&l(d)=="[object Map]"},Dse})(),n=Ate(),i=Lwe(),r=i&&i.isMap,s=r?n(r):e;return nTe=s}function ydn(){if(aTe)return rTe;aTe=1;var e=(function(){if(oTe)return Tse;oTe=1;var l=vte(),c=l7();return Tse=function(d){return c(d)&&l(d)=="[object Set]"},Tse})(),n=Ate(),i=Lwe(),r=i&&i.isSet,s=r?n(r):e;return rTe=s}function kvt(){if(sTe)return Lse;sTe=1;var e=kwe(),n=Avt(),i=Fwe(),r=(function(){if(IDe)return gse;IDe=1;var L=hO(),F=RR();return gse=function(N,_){return N&&L(_,F(_),N)},gse})(),s=(function(){if(PDe)return yse;PDe=1;var L=hO(),F=D5e();return yse=function(N,_){return N&&L(_,F(_),N)},yse})(),l=(MDe||(MDe=1,(function(L,F){var N=D3(),_=F&&!F.nodeType&&F,z=_&&L&&!L.nodeType&&L,T=z&&z.exports===_?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(O,H){if(H)return O.slice();var V=O.length,W=M?M(V):new O.constructor(V);return O.copy(W),W}})(Pse,Pse.exports)),Pse.exports),c=(FDe||(FDe=1,ODe=function(L,F){var N=-1,_=L.length;for(F||(F=Array(_));++N<_;)F[N]=L[N];return F}),ODe),d=(function(){if(RDe)return bse;RDe=1;var L=hO(),F=Ewe();return bse=function(N,_){return L(N,F(N),_)},bse})(),u=(function(){if(HDe)return wse;HDe=1;var L=hO(),F=Svt();return wse=function(N,_){return L(N,F(N),_)},wse})(),p=xvt(),h=zwe(),g=vte(),f=(function(){if(WDe)return Ase;WDe=1;var L=Object.prototype.hasOwnProperty;return Ase=function(F){var N=F.length,_=new F.constructor(N);return N&&typeof F[0]=="string"&&L.call(F,"index")&&(_.index=F.index,_.input=F.input),_},Ase})(),x=gdn(),y=fdn(),b=Ju(),w=Dwe(),C=xdn(),A=G3(),S=ydn(),k=RR(),$=D5e(),j="[object Arguments]",I="[object Function]",E="[object Object]",D={};return D[j]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[E]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[I]=D["[object WeakMap]"]=!1,Lse=function L(F,N,_,z,T,M){var O,H=1&N,V=2&N,W=4&N;if(_&&(O=T?_(F,z,T,M):_(F)),O!==void 0)return O;if(!A(F))return F;var U=b(F);if(U){if(O=f(F),!H)return c(F,O)}else{var G=g(F),q=G==I||G=="[object GeneratorFunction]";if(w(F))return l(F,H);if(G==E||G==j||q&&!T){if(O=V||q?{}:y(F),!H)return V?u(F,s(O,F)):d(F,r(O,F))}else{if(!D[G])return T?F:{};O=x(F,G,H)}}M||(M=new e);var K=M.get(F);if(K)return K;M.set(F,O),S(F)?F.forEach((function(ee){O.add(L(ee,N,_,ee,F,M))})):C(F)&&F.forEach((function(ee,te){O.set(te,L(ee,N,_,te,F,M))}));var J=U?void 0:(W?V?h:p:V?$:k)(F);return n(J||F,(function(ee,te){J&&(ee=F[te=ee]),i(O,te,L(ee,N,_,te,F,M))})),O},Lse}var bdn=(function(){if(lTe)return Bse;lTe=1;var e=kvt();return Bse=function(n){return e(n,5)},Bse})();const ds=pr(bdn);var Ose,cTe,Fse,dTe,uTe,pTe,Rse,hTe,mTe,gTe,zse,fTe,Nse,xTe,_se,yTe,Vse,bTe,Hse,wTe,Use,CTe,Wse,ATe;function Nwe(){if(dTe)return Fse;dTe=1;var e=Ju(),n=Xz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Fse=function(s,l){if(e(s))return!1;var c=typeof s;return!(c!="number"&&c!="symbol"&&c!="boolean"&&s!=null&&!n(s))||r.test(s)||!i.test(s)||l!=null&&s in Object(l)},Fse}function wdn(){if(hTe)return Rse;hTe=1;var e=(function(){if(pTe)return uTe;pTe=1;var n=Swe();function i(r,s){if(typeof r!="function"||s!=null&&typeof s!="function")throw new TypeError("Expected a function");var l=function(){var c=arguments,d=s?s.apply(this,c):c[0],u=l.cache;if(u.has(d))return u.get(d);var p=r.apply(this,c);return l.cache=u.set(d,p)||u,p};return l.cache=new(i.Cache||n),l}return i.Cache=n,uTe=i})();return Rse=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Rse}function PS(){return fTe||(fTe=1,zse=function(e,n){for(var i=-1,r=e==null?0:e.length,s=Array(r);++i<r;)s[i]=n(e[i],i,e);return s}),zse}function jvt(){if(xTe)return Nse;xTe=1;var e=ID(),n=PS(),i=Ju(),r=Xz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Nse=function c(d){if(typeof d=="string")return d;if(i(d))return n(d,c)+"";if(r(d))return l?l.call(d):"";var u=d+"";return u=="0"&&1/d==-1/0?"-0":u},Nse}function $vt(){if(yTe)return _se;yTe=1;var e=jvt();return _se=function(n){return n==null?"":e(n)},_se}function DD(){if(bTe)return Vse;bTe=1;var e=Ju(),n=Nwe(),i=(function(){if(gTe)return mTe;gTe=1;var s=wdn(),l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,d=s((function(u){var p=[];return u.charCodeAt(0)===46&&p.push(""),u.replace(l,(function(h,g,f,x){p.push(f?x.replace(c,"$1"):g||h)})),p}));return mTe=d})(),r=$vt();return Vse=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Vse}function MT(){if(wTe)return Hse;wTe=1;var e=Xz();return Hse=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Hse}function Evt(){if(CTe)return Use;CTe=1;var e=DD(),n=Iwe(),i=Ju(),r=Jz(),s=Twe(),l=MT();return Use=function(c,d,u){for(var p=-1,h=(d=e(d,c)).length,g=!1;++p<h;){var f=l(d[p]);if(!(g=c!=null&&u(c,f)))break;c=c[f]}return g||++p!=h?g:!!(h=c==null?0:c.length)&&s(h)&&r(f,h)&&(i(c)||n(c))},Use}var Cdn=(function(){if(ATe)return Wse;ATe=1;var e=(function(){if(cTe)return Ose;cTe=1;var i=Object.prototype.hasOwnProperty;return Ose=function(r,s){return r!=null&&i.call(r,s)},Ose})(),n=Evt();return Wse=function(i,r){return i!=null&&n(i,r,e)},Wse})();const mn=pr(Cdn);var vTe,STe,Qse,kTe,Yse,jTe,Gse,$Te,ETe,ITe,DTe,TTe,qse,LTe,BTe,PTe,Kse,MTe,OTe,FTe;function OT(){return kTe||(kTe=1,Qse=function(e){return e}),Qse}function Ivt(){return jTe||(jTe=1,Yse=function(e,n,i){switch(i.length){case 0:return e.call(n);case 1:return e.call(n,i[0]);case 2:return e.call(n,i[0],i[1]);case 3:return e.call(n,i[0],i[1],i[2])}return e.apply(n,i)}),Yse}function Dvt(){if($Te)return Gse;$Te=1;var e=Ivt(),n=Math.max;return Gse=function(i,r,s){return r=n(r===void 0?i.length-1:r,0),function(){for(var l=arguments,c=-1,d=n(l.length-r,0),u=Array(d);++c<d;)u[c]=l[r+c];c=-1;for(var p=Array(r+1);++c<r;)p[c]=l[c];return p[r]=s(u),e(i,this,p)}},Gse}function Adn(){if(TTe)return DTe;TTe=1;var e=(ITe||(ITe=1,ETe=function(s){return function(){return s}}),ETe),n=vvt(),i=OT(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return DTe=r}function Tvt(){if(PTe)return BTe;PTe=1;var e=Adn(),n=(function(){if(LTe)return qse;LTe=1;var r=Date.now;return qse=function(s){var l=0,c=0;return function(){var d=r(),u=16-(d-c);if(c=d,u>0){if(++l>=800)return arguments[0]}else l=0;return s.apply(void 0,arguments)}},qse})(),i=n(e);return BTe=i}function Lvt(){if(MTe)return Kse;MTe=1;var e=OT(),n=Dvt(),i=Tvt();return Kse=function(r,s){return i(n(r,s,e),r+"")},Kse}var vdn=(function(){if(FTe)return OTe;FTe=1;var e=(STe||(STe=1,vTe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),vTe),n=Lvt()((function(i,r){return e(i,1,r)}));return OTe=n})();const Yi=pr(vdn);var Zse,RTe,Jse,zTe;function eN(){if(RTe)return Zse;RTe=1;var e=DD(),n=MT();return Zse=function(i,r){for(var s=0,l=(r=e(r,i)).length;i!=null&&s<l;)i=i[n(r[s++])];return s&&s==l?i:void 0},Zse}function Bvt(){if(zTe)return Jse;zTe=1;var e=eN();return Jse=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},Jse}const F3=pr(Bvt());var Xse,NTe,ele,_Te,tle,VTe,nle,HTe;function Pvt(){if(NTe)return Xse;NTe=1;var e=kwe(),n=Pwe();return Xse=function(i,r,s,l){var c=s.length,d=c,u=!l;if(i==null)return!d;for(i=Object(i);c--;){var p=s[c];if(u&&p[2]?p[1]!==i[p[0]]:!(p[0]in i))return!1}for(;++c<d;){var h=(p=s[c])[0],g=i[h],f=p[1];if(u&&p[2]){if(g===void 0&&!(h in i))return!1}else{var x=new e;if(l)var y=l(g,f,h,i,r,x);if(!(y===void 0?n(f,g,3,l,x):y))return!1}}return!0},Xse}function Mvt(){if(_Te)return ele;_Te=1;var e=G3();return ele=function(n){return n==n&&!e(n)},ele}function Ovt(){if(VTe)return tle;VTe=1;var e=Mvt(),n=RR();return tle=function(i){for(var r=n(i),s=r.length;s--;){var l=r[s],c=i[l];r[s]=[l,c,e(c)]}return r},tle}var Sdn=(function(){if(HTe)return nle;HTe=1;var e=Pvt(),n=Ovt();return nle=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},nle})();const kdn=pr(Sdn);var UTe,WTe,jdn=(WTe||(WTe=1,UTe=function(e){return e==null}),UTe);const QTe=pr(jdn);var YTe,GTe,ile,qTe,$dn=(function(){if(qTe)return ile;qTe=1;var e=(GTe||(GTe=1,YTe=function(i,r){for(var s,l=-1,c=i.length;++l<c;){var d=r(i[l]);d!==void 0&&(s=s===void 0?d:s+d)}return s}),YTe),n=OT();return ile=function(i){return i&&i.length?e(i,n):0},ile})();const Edn=pr($dn);var ole,KTe,rle,ZTe,ale,JTe,sle,XTe,lle,eLe;function _we(){return KTe||(KTe=1,ole=function(e,n,i){var r=-1,s=e.length;n<0&&(n=-n>s?0:s+n),(i=i>s?s:i)<0&&(i+=s),s=n>i?0:i-n>>>0,n>>>=0;for(var l=Array(s);++r<s;)l[r]=e[r+n];return l}),ole}function Fvt(){if(ZTe)return rle;ZTe=1;var e=Cte(),n=PT(),i=Jz(),r=G3();return rle=function(s,l,c){if(!r(c))return!1;var d=typeof l;return!!(d=="number"?n(c)&&i(l,c.length):d=="string"&&l in c)&&e(c[l],s)},rle}function Ste(){if(XTe)return sle;XTe=1;var e=(function(){if(JTe)return ale;JTe=1;var n=bvt(),i=1/0;return ale=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},ale})();return sle=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},sle}var Idn=(function(){if(eLe)return lle;eLe=1;var e=_we(),n=Fvt(),i=Ste(),r=Math.ceil,s=Math.max;return lle=function(l,c,d){c=(d?n(l,c,d):c===void 0)?1:s(i(c),0);var u=l==null?0:l.length;if(!u||c<1)return[];for(var p=0,h=0,g=Array(r(u/c));p<u;)g[h++]=e(l,p,p+=c);return g},lle})();const Ddn=pr(Idn);var tLe,nLe,Tdn=(nLe||(nLe=1,tLe=function(e){for(var n=-1,i=e==null?0:e.length,r=0,s=[];++n<i;){var l=e[n];l&&(s[r++]=l)}return s}),tLe);const Ldn=pr(Tdn);var iLe,oLe,rLe,aLe,cle,sLe,dle,lLe,cLe,dLe,ule,uLe,ple,pLe,hLe,mLe;function Bdn(){if(aLe)return rLe;aLe=1;var e=(oLe||(oLe=1,iLe=function(i){return function(r,s,l){for(var c=-1,d=Object(r),u=l(r),p=u.length;p--;){var h=u[i?p:++c];if(s(d[h],h,d)===!1)break}return r}}),iLe),n=e();return rLe=n}function Rvt(){if(sLe)return cle;sLe=1;var e=Bdn(),n=RR();return cle=function(i,r){return i&&e(i,r,n)},cle}function tN(){if(dLe)return cLe;dLe=1;var e=Rvt(),n=(function(){if(lLe)return dle;lLe=1;var r=PT();return dle=function(s,l){return function(c,d){if(c==null)return c;if(!r(c))return s(c,d);for(var u=c.length,p=l?u:-1,h=Object(c);(l?p--:++p<u)&&d(h[p],p,h)!==!1;);return c}},dle})(),i=n(e);return cLe=i}function zvt(){if(uLe)return ule;uLe=1;var e=OT();return ule=function(n){return typeof n=="function"?n:e},ule}var Pdn=(mLe||(mLe=1,hLe=(function(){if(pLe)return ple;pLe=1;var e=Avt(),n=tN(),i=zvt(),r=Ju();return ple=function(s,l){return(r(s)?e:n)(s,i(l))},ple})()),hLe);const Mdn=pr(Pdn);var gLe,fLe,hle,xLe,mle,yLe,bLe,wLe,gle,CLe,fle,ALe,xle,vLe,yle,SLe,ble,kLe,wle,jLe,$Le,ELe,Cle,ILe;function DLe(){return xLe||(xLe=1,hle=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),hle}function Odn(){if(CLe)return gle;CLe=1;var e=(wLe||(wLe=1,bLe=function(i,r){return i!=null&&r in Object(i)}),bLe),n=Evt();return gle=function(i,r){return i!=null&&n(i,r,e)},gle}function Vwe(){return vLe||(vLe=1,xle=function(e){return function(n){return n?.[e]}}),xle}function Fdn(){if(kLe)return ble;kLe=1;var e=Vwe(),n=(function(){if(SLe)return yle;SLe=1;var s=eN();return yle=function(l){return function(c){return s(c,l)}},yle})(),i=Nwe(),r=MT();return ble=function(s){return i(s)?e(r(s)):n(s)},ble}function d8(){if(jLe)return wle;jLe=1;var e=(function(){if(yLe)return mle;yLe=1;var l=Pvt(),c=Ovt(),d=DLe();return mle=function(u){var p=c(u);return p.length==1&&p[0][2]?d(p[0][0],p[0][1]):function(h){return h===u||l(h,u,p)}},mle})(),n=(function(){if(ALe)return fle;ALe=1;var l=Pwe(),c=Bvt(),d=Odn(),u=Nwe(),p=Mvt(),h=DLe(),g=MT();return fle=function(f,x){return u(f)&&p(x)?h(g(f),x):function(y){var b=c(y,f);return b===void 0&&b===x?d(y,f):l(x,b,3)}},fle})(),i=OT(),r=Ju(),s=Fdn();return wle=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},wle}var Rdn=(function(){if(ILe)return Cle;ILe=1;var e=(fLe||(fLe=1,gLe=function(l,c,d,u){var p=-1,h=l==null?0:l.length;for(u&&h&&(d=l[++p]);++p<h;)d=c(d,l[p],p,l);return d}),gLe),n=tN(),i=d8(),r=(ELe||(ELe=1,$Le=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),$Le),s=Ju();return Cle=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},Cle})();const T5e=pr(Rdn);var Ale,TLe,vle,LLe,Sle,BLe,PLe,MLe;function zdn(){if(LLe)return vle;LLe=1;var e=$we(),n=PS(),i=Vwe(),r=hvt(),s=(function(){if(TLe)return Ale;TLe=1;var c=PT(),d=l7();return Ale=function(u){return d(u)&&c(u)},Ale})(),l=Math.max;return vle=function(c){if(!c||!c.length)return[];var d=0;return c=e(c,(function(u){if(s(u))return d=l(u.length,d),!0})),r(d,(function(u){return n(c,i(u))}))},vle}var Ndn=(function(){if(MLe)return PLe;MLe=1;var e=Lvt(),n=(function(){if(BLe)return Sle;BLe=1;var r=Ivt(),s=PS(),l=zdn();return Sle=function(c,d){if(!c||!c.length)return[];var u=l(c);return d==null?u:s(u,(function(p){return r(d,void 0,p)}))},Sle})(),i=e((function(r){var s=r.length,l=s>1?r[s-1]:void 0;return l=typeof l=="function"?(r.pop(),l):void 0,n(r,l)}));return PLe=i})();const _dn=pr(Ndn);var kle,OLe,Vdn=(function(){if(OLe)return kle;OLe=1;var e=Rvt(),n=zvt();return kle=function(i,r){return i&&e(i,n(r))},kle})();const Nvt=pr(Vdn);var jle,FLe,$le,RLe;function _vt(){if(FLe)return jle;FLe=1;var e=tN(),n=PT();return jle=function(i,r){var s=-1,l=n(i)?Array(i.length):[];return e(i,(function(c,d,u){l[++s]=r(c,d,u)})),l},jle}function Vvt(){if(RLe)return $le;RLe=1;var e=PS(),n=d8(),i=_vt(),r=Ju();return $le=function(s,l){return(r(s)?e:i)(s,n(l,3))},$le}const kte=pr(Vvt());var Ele,zLe,Ile,NLe,Dle,_Le;function Hdn(){if(NLe)return Ile;NLe=1;var e=eN(),n=(function(){if(zLe)return Ele;zLe=1;var r=Fwe(),s=DD(),l=Jz(),c=G3(),d=MT();return Ele=function(u,p,h,g){if(!c(u))return u;for(var f=-1,x=(p=s(p,u)).length,y=x-1,b=u;b!=null&&++f<x;){var w=d(p[f]),C=h;if(w==="__proto__"||w==="constructor"||w==="prototype")return u;if(f!=y){var A=b[w];(C=g?g(A,w,b):void 0)===void 0&&(C=c(A)?A:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},Ele})(),i=DD();return Ile=function(r,s,l){for(var c=-1,d=s.length,u={};++c<d;){var p=s[c],h=e(r,p);l(h,p)&&n(u,i(p,r),h)}return u},Ile}var Udn=(function(){if(_Le)return Dle;_Le=1;var e=PS(),n=d8(),i=Hdn(),r=zwe();return Dle=function(s,l){if(s==null)return{};var c=e(r(s),(function(d){return[d]}));return l=n(l),i(s,c,(function(d,u){return l(d,u[0])}))},Dle})();const ZK=pr(Udn);var Tle,VLe,Wdn=(function(){if(VLe)return Tle;VLe=1;var e=wvt(),n=G3();return Tle=function(i,r,s){var l=!0,c=!0;if(typeof i!="function")throw new TypeError("Expected a function");return n(s)&&(l="leading"in s?!!s.leading:l,c="trailing"in s?!!s.trailing:c),e(i,r,{leading:l,maxWait:r,trailing:c})},Tle})();const Qdn=pr(Wdn);var Lle,HLe,Ble,ULe,Ydn=(function(){if(ULe)return Ble;ULe=1;var e=$we(),n=(function(){if(HLe)return Lle;HLe=1;var s=tN();return Lle=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},Lle})(),i=d8(),r=Ju();return Ble=function(s,l){return(r(s)?e:n)(s,i(l,3))},Ble})();const Gdn=pr(Ydn);var WLe,QLe,Ple,YLe,Mle,GLe,qLe,KLe;function qdn(){if(GLe)return Mle;GLe=1;var e=(QLe||(QLe=1,WLe=function(s,l,c,d){for(var u=-1,p=s==null?0:s.length;++u<p;){var h=s[u];l(d,h,c(h),s)}return d}),WLe),n=(function(){if(YLe)return Ple;YLe=1;var s=tN();return Ple=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Ple})(),i=d8(),r=Ju();return Mle=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Mle}var Kdn=(function(){if(KLe)return qLe;KLe=1;var e=Owe(),n=qdn(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return qLe=r})();const Zdn=pr(Kdn);var ZLe,JLe,Ole,XLe,Fle,eBe,Rle,tBe,zle,nBe;function Jdn(){if(eBe)return Fle;eBe=1;var e=(function(){if(XLe)return Ole;XLe=1;var n=Xz();return Ole=function(i,r){if(i!==r){var s=i!==void 0,l=i===null,c=i==i,d=n(i),u=r!==void 0,p=r===null,h=r==r,g=n(r);if(!p&&!g&&!d&&i>r||d&&u&&h&&!p&&!g||l&&u&&h||!s&&h||!c)return 1;if(!l&&!d&&!g&&i<r||g&&s&&c&&!l&&!d||p&&s&&c||!u&&c||!h)return-1}return 0},Ole})();return Fle=function(n,i,r){for(var s=-1,l=n.criteria,c=i.criteria,d=l.length,u=r.length;++s<d;){var p=e(l[s],c[s]);if(p)return s>=u?p:p*(r[s]=="desc"?-1:1)}return n.index-i.index},Fle}function Xdn(){if(tBe)return Rle;tBe=1;var e=PS(),n=eN(),i=d8(),r=_vt(),s=(JLe||(JLe=1,ZLe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),ZLe),l=Ate(),c=Jdn(),d=OT(),u=Ju();return Rle=function(p,h,g){h=h.length?e(h,(function(y){return u(y)?function(b){return n(b,y.length===1?y[0]:y)}:y})):[d];var f=-1;h=e(h,l(i));var x=r(p,(function(y,b,w){var C=e(h,(function(A){return A(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Rle}var eun=(function(){if(nBe)return zle;nBe=1;var e=Xdn(),n=Ju();return zle=function(i,r,s,l){return i==null?[]:(n(r)||(r=r==null?[]:[r]),n(s=l?void 0:s)||(s=s==null?[]:[s]),e(i,r,s))},zle})();const jte=pr(eun);var iBe,oBe,Nle,rBe,_le,aBe,Vle,sBe;function tun(){if(rBe)return Nle;rBe=1;var e=(oBe||(oBe=1,iBe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),iBe),n=Ste();return Nle=function(i){return i?e(n(i),0,4294967295):0},Nle}var nun=(function(){if(sBe)return Vle;sBe=1;var e=(function(){if(aBe)return _le;aBe=1;var i=Ste(),r=tun();return _le=function(s,l,c,d){var u=s.length;for((c=i(c))<0&&(c=-c>u?0:u+c),(d=d===void 0||d>u?u:i(d))<0&&(d+=u),d=c>d?0:r(d);c<d;)s[c++]=l;return s},_le})(),n=Fvt();return Vle=function(i,r,s,l){var c=i==null?0:i.length;return c?(s&&typeof s!="number"&&n(i,r,s)&&(s=0,l=c),e(i,r,s,l)):[]},Vle})();const Hvt=pr(nun);var lBe,cBe,Hle,dBe,Ule,uBe,Wle,pBe,Qle,hBe;function Uvt(){if(uBe)return Ule;uBe=1;var e=DD(),n=(cBe||(cBe=1,lBe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),lBe),i=(function(){if(dBe)return Hle;dBe=1;var l=eN(),c=_we();return Hle=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Hle})(),r=MT(),s=Object.prototype.hasOwnProperty;return Ule=function(l,c){var d=-1,u=(c=e(c,l)).length;if(!u)return!0;for(;++d<u;){var p=r(c[d]);if(p==="__proto__"&&!s.call(l,"__proto__")||(p==="constructor"||p==="prototype")&&d<u-1)return!1}var h=i(l,c);return h==null||delete h[r(n(c))]},Ule}var iun=(function(){if(hBe)return Qle;hBe=1;var e=d8(),n=(function(){if(pBe)return Wle;pBe=1;var i=Uvt(),r=Jz(),s=Array.prototype.splice;return Wle=function(l,c){for(var d=l?c.length:0,u=d-1;d--;){var p=c[d];if(d==u||p!==h){var h=p;r(p)?s.call(l,p,1):i(l,p)}}return l},Wle})();return Qle=function(i,r){var s=[];if(!i||!i.length)return s;var l=-1,c=[],d=i.length;for(r=e(r,3);++l<d;){var u=i[l];r(u,l,i)&&(s.push(u),c.push(l))}return n(i,c),s},Qle})();const JK=pr(iun);var Yle,mBe,Gle,gBe,qle,fBe,Kle,xBe,Zle,yBe,Jle,bBe,wBe,CBe;function oun(){if(gBe)return Gle;gBe=1;var e=(function(){if(mBe)return Yle;mBe=1;var n=BT(),i=Rwe(),r=l7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Yle=function(p){if(!r(p)||n(p)!="[object Object]")return!1;var h=i(p);if(h===null)return!0;var g=d.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&c.call(g)==u},Yle})();return Gle=function(n){return e(n)?void 0:n},Gle}function Wvt(){if(xBe)return Kle;xBe=1;var e=jwe(),n=(function(){if(fBe)return qle;fBe=1;var i=ID(),r=Iwe(),s=Ju(),l=i?i.isConcatSpreadable:void 0;return qle=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},qle})();return Kle=function i(r,s,l,c,d){var u=-1,p=r.length;for(l||(l=n),d||(d=[]);++u<p;){var h=r[u];s>0&&l(h)?s>1?i(h,s-1,l,c,d):e(d,h):c||(d[d.length]=h)}return d},Kle}function Qvt(){if(yBe)return Zle;yBe=1;var e=Wvt();return Zle=function(n){return n!=null&&n.length?e(n,1):[]},Zle}var run=(function(){if(CBe)return wBe;CBe=1;var e=PS(),n=kvt(),i=Uvt(),r=DD(),s=hO(),l=oun(),c=(function(){if(bBe)return Jle;bBe=1;var p=Qvt(),h=Dvt(),g=Tvt();return Jle=function(f){return g(h(f,void 0,p),f+"")},Jle})(),d=zwe(),u=c((function(p,h){var g={};if(p==null)return g;var f=!1;h=e(h,(function(y){return y=r(y,p),f||(f=y.length>1),y})),s(p,d(p),g),f&&(g=n(g,7,l));for(var x=h.length;x--;)i(g,h[x]);return g}));return wBe=u})();const Hwe=pr(run);var Xle,ABe,aun=(function(){if(ABe)return Xle;ABe=1;var e=Wvt(),n=Vvt();return Xle=function(i,r){return e(n(i,r),1)},Xle})();const Yvt=pr(aun);var vBe,SBe,kBe,jBe,$Be,EBe,ece,IBe,tce,DBe,TBe,LBe,BBe,PBe,nce,MBe,ice,OBe;function sun(){if(IBe)return ece;IBe=1;var e=(SBe||(SBe=1,vBe=function(r,s,l,c){for(var d=r.length,u=l+(c?1:-1);c?u--:++u<d;)if(s(r[u],u,r))return u;return-1}),vBe),n=(jBe||(jBe=1,kBe=function(r){return r!=r}),kBe),i=(EBe||(EBe=1,$Be=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),$Be);return ece=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},ece}function Gvt(){if(MBe)return nce;MBe=1;var e=svt(),n=(function(){if(DBe)return tce;DBe=1;var c=sun();return tce=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},tce})(),i=(LBe||(LBe=1,TBe=function(c,d,u){for(var p=-1,h=c==null?0:c.length;++p<h;)if(u(d,c[p]))return!0;return!1}),TBe),r=lvt(),s=(function(){if(PBe)return BBe;PBe=1;var c=yvt(),d=Cvt(),u=I5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return BBe=p})(),l=I5e();return nce=function(c,d,u){var p=-1,h=n,g=c.length,f=!0,x=[],y=x;if(u)f=!1,h=i;else if(g>=200){var b=d?null:s(c);if(b)return l(b);f=!1,h=r,y=new e}else y=d?[]:x;e:for(;++p<g;){var w=c[p],C=d?d(w):w;if(w=u||w!==0?w:0,f&&C==C){for(var A=y.length;A--;)if(y[A]===C)continue e;d&&y.push(C),x.push(w)}else h(y,C,u)||(y!==x&&y.push(C),x.push(w))}return x},nce}var lun=(function(){if(OBe)return ice;OBe=1;var e=d8(),n=Gvt();return ice=function(i,r){return i&&i.length?n(i,e(r,2)):[]},ice})();const cun=pr(lun),dun=pr(Qvt());var oce,FBe,uun=(function(){if(FBe)return oce;FBe=1;var e=Gvt();return oce=function(n){return n&&n.length?e(n):[]},oce})();const pun=pr(uun);var rce,RBe,ace,zBe,sce,NBe,_Be,VBe,lce,HBe,cce,UBe,WBe,QBe,dce,YBe,uce,GBe,pce,qBe,KBe,ZBe;function Uwe(){if(NBe)return sce;NBe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return sce=function(n){return e.test(n)},sce}function qvt(){if(UBe)return cce;UBe=1;var e=(function(){if(VBe)return _Be;VBe=1;var r=Vwe()("length");return _Be=r})(),n=Uwe(),i=(function(){if(HBe)return lce;HBe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return lce=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},lce})();return cce=function(r){return n(r)?i(r):e(r)},cce}function hun(){if(GBe)return uce;GBe=1;var e=(QBe||(QBe=1,WBe=function(r){return r.split("")}),WBe),n=Uwe(),i=(function(){if(YBe)return dce;YBe=1;var r="\\ud800-\\udfff",s="["+r+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\\ud83c[\\udffb-\\udfff]",d="[^"+r+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="(?:"+l+"|"+c+")?",g="[\\ufe0e\\ufe0f]?",f=g+h+"(?:\\u200d(?:"+[d,u,p].join("|")+")"+g+h+")*",x="(?:"+[d+l+"?",l,u,p,s].join("|")+")",y=RegExp(c+"(?="+c+")|"+x+f,"g");return dce=function(b){return b.match(y)||[]},dce})();return uce=function(r){return n(r)?i(r):e(r)},uce}function mun(){if(qBe)return pce;qBe=1;var e=(function(){if(RBe)return rce;RBe=1;var d=Math.floor;return rce=function(u,p){var h="";if(!u||p<1||p>9007199254740991)return h;do p%2&&(h+=u),(p=d(p/2))&&(u+=u);while(p);return h},rce})(),n=jvt(),i=(function(){if(zBe)return ace;zBe=1;var d=_we();return ace=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},ace})(),r=Uwe(),s=qvt(),l=hun(),c=Math.ceil;return pce=function(d,u){var p=(u=u===void 0?" ":n(u)).length;if(p<2)return p?e(u,d):u;var h=e(u,c(d/s(u)));return r(u)?i(l(h),0,d).join(""):h.slice(0,d)},pce}(function(){if(ZBe)return KBe;ZBe=1;var e=mun(),n=qvt(),i=Ste(),r=$vt();KBe=function(s,l,c){s=r(s);var d=(l=i(l))?n(s):0;return l&&d<l?e(l-d,c)+s:s}})();var zR=e=>e.type==="checkbox",qE=e=>e instanceof Date,jp=e=>e==null;const Kvt=e=>typeof e=="object";var $d=e=>!jp(e)&&!Array.isArray(e)&&Kvt(e)&&!qE(e),Zvt=e=>$d(e)&&e.target?zR(e.target)?e.target.checked:e.target.value:e,Jvt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),Wwe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Fh(e){let n;const i=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else{if(Wwe&&(e instanceof Blob||e instanceof FileList)||!i&&!$d(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return $d(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Fh(e[r]);else n=e}return n}var TD=e=>Array.isArray(e)?e.filter(Boolean):[],hl=e=>e===void 0,Ei=(e,n,i)=>{if(!n||!$d(e))return i;const r=TD(n.split(/[,[\].]+?/)).reduce(((s,l)=>jp(s)?s:s[l]),e);return hl(r)||r===e?hl(e[n])?i:e[n]:r};const Xvt="blur",gun="focusout",fun="change",xun="onBlur",eSt="onChange",tSt="onSubmit",yun="onTouched",LD="all",bun="max",wun="min",Cun="maxLength",Aun="minLength",JBe="pattern",XBe="required",vun="validate",nSt=B.createContext(null),$t=()=>B.useContext(nSt),Dn=e=>{const{children:n,...i}=e;return B.createElement(nSt.Provider,{value:i},n)};var iSt=(e,n,i,r=!0)=>{const s={defaultValues:n._defaultValues};for(const l in e)Object.defineProperty(s,l,{get:()=>{const c=l;return n._proxyFormState[c]!==LD&&(n._proxyFormState[c]=!r||LD),i&&(i[c]=!0),e[c]}});return s},zm=e=>$d(e)&&!Object.keys(e).length,oSt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return zm(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||LD)))},qm=e=>Array.isArray(e)?e:[e],rSt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||qm(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function $te(e){const n=B.useRef(e);n.current=e,B.useEffect((()=>{const i=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var bx=e=>typeof e=="string",aSt=(e,n,i,r,s)=>bx(e)?(r&&n.watch.add(e),Ei(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),Ei(i,l)))):(r&&(n.watchAll=!0),i);function Ya(e){const n=$t(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,$te({disabled:l,subject:i._subjects.values,next:h=>{rSt(d.current,h.name,c)&&p(Fh(aSt(d.current,i._names,h.values||i._formValues,!1,s)))}});const[u,p]=B.useState(i._getWatch(r,s));return B.useEffect((()=>i._removeUnmounted())),u}var Qwe=e=>/^\w*$/.test(e),sSt=e=>TD(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Rs(e,n,i){let r=-1;const s=Qwe(n)?[n]:sSt(n),l=s.length,c=l-1;for(;++r<l;){const d=s[r];let u=i;if(r!==c){const p=e[d];u=$d(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function Sun(e){const n=$t(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=Jvt(r._names.array,i),c=Ya({control:r,name:i,defaultValue:Ei(r._formValues,i,Ei(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=$t(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),A=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,$te({disabled:f,next:k=>C.current&&rSt(S.current,k.name,y)&&oSt(k,A.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,A.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),iSt(b,g,A.current,!1)})({control:r,name:i}),u=B.useRef(r.register(i,{...e.rules,value:c}));return B.useEffect((()=>{const p=r._options.shouldUnregister||s,h=(g,f)=>{const x=Ei(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Fh(Ei(r._options.defaultValues,i));Rs(r._defaultValues,i,g),hl(Ei(r._formValues,i))&&Rs(r._formValues,i,g)}return()=>{(l?p&&!r._state.action:p)?r.unregister(i):h(i,!1)}}),[i,r,l,s]),{field:{name:i,value:c,onChange:B.useCallback((p=>u.current.onChange({target:{value:Zvt(p),name:i},type:fun})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Ei(r._formValues,i),name:i},type:Xvt})),[i,r]),ref:p=>{const h=Ei(r._fields,i);h&&p&&(h._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ei(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!Ei(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!Ei(d.touchedFields,i)},error:{enumerable:!0,get:()=>Ei(d.errors,i)}})}}const _i=e=>e.render(Sun(e));var kun=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const XK=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=Ei(e,r);if(s){const{_f:l,...c}=s;if(l&&n(l.name)){if(l.ref.focus){l.ref.focus();break}if(l.refs&&l.refs[0].focus){l.refs[0].focus();break}}else $d(c)&&XK(c,n)}}};var Y7=()=>{const e=typeof performance>"u"?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(n=>{const i=(16*Math.random()+e)%16|0;return(n=="x"?i:3&i|8).toString(16)}))},hce=(e,n,i={})=>i.shouldFocus||hl(i.shouldFocus)?i.focusName||`${e}.${hl(i.focusIndex)?n:i.focusIndex}.`:"",L5e=e=>({isOnSubmit:!e||e===tSt,isOnBlur:e===xun,isOnChange:e===eSt,isOnAll:e===LD,isOnTouch:e===yun}),B5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),lSt=(e,n,i)=>{const r=TD(Ei(e,i));return Rs(r,"root",n[i]),Rs(e,i,r),e},RI=e=>typeof e=="boolean",Ywe=e=>e.type==="file",r9=e=>typeof e=="function",eZ=e=>{if(!Wwe)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},gq=e=>bx(e),Gwe=e=>e.type==="radio",tZ=e=>e instanceof RegExp;const ePe={value:!1,isValid:!1},tPe={value:!0,isValid:!0};var cSt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter((i=>i&&i.checked&&!i.disabled)).map((i=>i.value));return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!hl(e[0].attributes.value)?hl(e[0].value)||e[0].value===""?tPe:{value:e[0].value,isValid:!0}:tPe:ePe}return ePe};const nPe={isValid:!1,value:null};var dSt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),nPe):nPe;function iPe(e,n,i="validate"){if(gq(e)||Array.isArray(e)&&e.every(gq)||RI(e)&&!e)return{type:i,message:gq(e)?e:"",ref:n}}var Dk=e=>$d(e)&&!tZ(e)?e:{value:e,message:""},P5e=async(e,n,i,r,s)=>{const{ref:l,refs:c,required:d,maxLength:u,minLength:p,min:h,max:g,pattern:f,validate:x,name:y,valueAsNumber:b,mount:w,disabled:C}=e._f,A=Ei(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(RI(N)?"":N||""),S.reportValidity())},$={},j=Gwe(l),I=zR(l),E=j||I,D=(b||Ywe(l))&&hl(l.value)&&hl(A)||eZ(l)&&l.value===""||A===""||Array.isArray(A)&&!A.length,L=kun.bind(null,y,i,$),F=(N,_,z,T=Cun,M=Aun)=>{const O=N?_:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(A)||!A.length:d&&(!E&&(D||jp(A))||RI(A)&&!A||I&&!cSt(c).isValid||j&&!dSt(c).isValid)){const{value:N,message:_}=gq(d)?{value:!!d,message:d}:Dk(d);if(N&&($[y]={type:XBe,message:_,ref:S,...L(XBe,_)},!i))return k(_),$}if(!(D||jp(h)&&jp(g))){let N,_;const z=Dk(g),T=Dk(h);if(jp(A)||isNaN(A)){const M=l.valueAsDate||new Date(A),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",V=l.type=="week";bx(z.value)&&A&&(N=H?O(A)>O(z.value):V?A>z.value:M>new Date(z.value)),bx(T.value)&&A&&(_=H?O(A)<O(T.value):V?A<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||A&&+A;jp(z.value)||(N=M>z.value),jp(T.value)||(_=M<T.value)}if((N||_)&&(F(!!N,z.message,T.message,bun,wun),!i))return k($[y].message),$}if((u||p)&&!D&&(bx(A)||s&&Array.isArray(A))){const N=Dk(u),_=Dk(p),z=!jp(N.value)&&A.length>+N.value,T=!jp(_.value)&&A.length<+_.value;if((z||T)&&(F(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&bx(A)){const{value:N,message:_}=Dk(f);if(tZ(N)&&!A.match(N)&&($[y]={type:JBe,message:_,ref:l,...L(JBe,_)},!i))return k(_),$}if(x){if(r9(x)){const N=iPe(await x(A,n),S);if(N&&($[y]={...N,...L(vun,N.message)},!i))return k(N.message),$}else if($d(x)){let N={};for(const _ in x){if(!zm(N)&&!i)break;const z=iPe(await x[_](A,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!zm(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function mce(e,n){return[...e,...qm(n)]}var gce=e=>Array.isArray(e)?e.map((()=>{})):void 0;function fce(e,n,i){return[...e.slice(0,n),...qm(i),...e.slice(n)]}var xce=(e,n,i)=>Array.isArray(e)?(hl(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function yce(e,n){return[...qm(n),...qm(e)]}var bce=(e,n)=>hl(n)?[]:(function(i,r){let s=0;const l=[...i];for(const c of r)l.splice(c-s,1),s++;return TD(l).length?l:[]})(e,qm(n).sort(((i,r)=>i-r))),wce=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Hd(e,n){const i=Array.isArray(n)?n:Qwe(n)?[n]:sSt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=hl(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&($d(r)&&zm(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!hl(c[d]))return!1;return!0})(r))&&Hd(e,i.slice(0,-1)),e}var oPe=(e,n,i)=>(e[n]=i,e);function El(e){const n=$t(),{control:i=n.control,name:r,keyName:s="id",shouldUnregister:l}=e,[c,d]=B.useState(i._getFieldArray(r)),u=B.useRef(i._getFieldArray(r).map(Y7)),p=B.useRef(c),h=B.useRef(r),g=B.useRef(!1);h.current=r,p.current=c,i._names.array.add(r),e.rules&&i.register(r,e.rules),$te({next:({values:x,name:y})=>{if(y===h.current||!y){const b=Ei(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(Y7))}},subject:i._subjects.array});const f=B.useCallback((x=>{g.current=!0,i._updateFieldArray(r,x)}),[i,r]);return B.useEffect((()=>{if(i._state.action=!1,B5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!L5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=Ei(x.errors,r),b=Ei(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Rs(i._formState.errors,r,y):Hd(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=Ei(i._fields,r);x&&x._f&&P5e(x,i._formValues,i._options.criteriaMode===LD,i._options.shouldUseNativeValidation,!0).then((y=>!zm(y)&&i._subjects.state.next({errors:lSt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&XK(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!Ei(i._formValues,r)&&i._updateFieldArray(r),()=>{(i._options.shouldUnregister||l)&&i.unregister(r)})),[r,i,s,l]),{swap:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);wce(b,x,y),wce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,wce,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);xce(b,x,y),xce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,xce,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=qm(Fh(x)),w=yce(i._getFieldArray(r),b);i._names.focus=hce(r,0,y),u.current=yce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,yce,{argA:gce(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=qm(Fh(x)),w=mce(i._getFieldArray(r),b);i._names.focus=hce(r,w.length-1,y),u.current=mce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,mce,{argA:gce(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=bce(i._getFieldArray(r),x);u.current=bce(u.current,x),f(y),d(y),i._updateFieldArray(r,y,bce,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=qm(Fh(y)),C=fce(i._getFieldArray(r),x,w);i._names.focus=hce(r,x,b),u.current=fce(u.current,x,w.map(Y7)),f(C),d(C),i._updateFieldArray(r,C,fce,{argA:x,argB:gce(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Fh(y),w=oPe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,A)=>C&&A!==x?u.current[A]:Y7())),f(w),d([...w]),i._updateFieldArray(r,w,oPe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=qm(Fh(x));u.current=y.map(Y7),f([...y]),d([...y]),i._updateFieldArray(r,[...y],(b=>b),{},!0,!1)}),[f,r,i]),fields:B.useMemo((()=>c.map(((x,y)=>({...x,[s]:u.current[y]||Y7()})))),[c,s])}}function Cce(){let e=[];return{get observers(){return e},next:n=>{for(const i of e)i.next&&i.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter((i=>i!==n))}}),unsubscribe:()=>{e=[]}}}var nZ=e=>jp(e)||!Kvt(e);function VA(e,n){if(nZ(e)||nZ(n))return e===n;if(qE(e)&&qE(n))return e.getTime()===n.getTime();const i=Object.keys(e),r=Object.keys(n);if(i.length!==r.length)return!1;for(const s of i){const l=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const c=n[s];if(qE(l)&&qE(c)||$d(l)&&$d(c)||Array.isArray(l)&&Array.isArray(c)?!VA(l,c):l!==c)return!1}}return!0}var uSt=e=>e.type==="select-multiple",Ace=e=>eZ(e)&&e.isConnected,pSt=e=>{for(const n in e)if(r9(e[n]))return!0;return!1};function iZ(e,n={}){const i=Array.isArray(e);if($d(e)||i)for(const r in e)Array.isArray(e[r])||$d(e[r])&&!pSt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},iZ(e[r],n[r])):jp(e[r])||(n[r]=!0);return n}function hSt(e,n,i){const r=Array.isArray(e);if($d(e)||r)for(const s in e)Array.isArray(e[s])||$d(e[s])&&!pSt(e[s])?hl(n)||nZ(i[s])?i[s]=Array.isArray(e[s])?iZ(e[s],[]):{...iZ(e[s])}:hSt(e[s],jp(n)?{}:n[s],i[s]):i[s]=!VA(e[s],n[s]);return i}var vce=(e,n)=>hSt(e,n,iZ(n)),mSt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>hl(e)?e:n?e===""?NaN:e&&+e:i&&bx(e)?new Date(e):r?r(e):e;function Sce(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return Ywe(n)?n.files:Gwe(n)?dSt(e.refs).value:uSt(n)?[...n.selectedOptions].map((({value:i})=>i)):zR(n)?cSt(e.refs).value:mSt(hl(n.value)?e.ref.value:n.value,e)}var _L=e=>hl(e)?e:tZ(e)?e.source:$d(e)?tZ(e.value)?e.value.source:e.value:e;function rPe(e,n,i){const r=Ei(e,i);if(r||Qwe(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=Ei(n,l),d=Ei(e,l);if(c&&!Array.isArray(c)&&i!==l)return{name:i};if(d&&d.type)return{name:l,error:d};s.pop()}return{name:i}}const jun={mode:tSt,reValidateMode:eSt,shouldFocusError:!0};function $un(e={},n){let i,r={...jun,...e},s={submitCount:0,isDirty:!1,isLoading:r9(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=($d(r.defaultValues)||$d(r.values))&&Fh(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Fh(c),u={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Cce(),array:Cce(),state:Cce()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=L5e(r.mode),b=L5e(r.reValidateMode),w=r.criteriaMode===LD,C=async G=>{if(g.isValid||G){const q=r.resolver?zm((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},A=G=>g.isValidating&&f.state.next({isValidating:G}),S=(G,q,K,J)=>{const ee=Ei(l,G);if(ee){const te=Ei(d,G,hl(K)?Ei(c,G):K);hl(te)||J&&J.defaultChecked||q?Rs(d,G,q?te:Sce(ee._f)):L(G,te),u.mount&&C()}},k=(G,q,K,J,ee)=>{let te=!1,ne=!1;const ae={name:G};if(!K||J){g.isDirty&&(ne=s.isDirty,s.isDirty=ae.isDirty=E(),te=ne!==ae.isDirty);const oe=VA(Ei(c,G),q);ne=Ei(s.dirtyFields,G),oe?Hd(s.dirtyFields,G):Rs(s.dirtyFields,G,!0),ae.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!oe}if(K){const oe=Ei(s.touchedFields,G);oe||(Rs(s.touchedFields,G,K),ae.touchedFields=s.touchedFields,te=te||g.touchedFields&&oe!==K)}return te&&ee&&f.state.next(ae),te?ae:{}},$=(G,q,K,J)=>{const ee=Ei(s.errors,G),te=g.isValid&&RI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>ae=>{clearTimeout(h),h=setTimeout(ne,ae)})((()=>((ne,ae)=>{Rs(s.errors,ne,ae),f.state.next({errors:s.errors})})(G,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Rs(s.errors,G,K):Hd(s.errors,G)),(K?!VA(ee,K):ee)||!zm(J)||te){const ne={...J,...te&&RI(q)?{isValid:q}:{},errors:s.errors,name:G};s={...s,...ne},f.state.next(ne)}A(!1)},j=async G=>r.resolver(d,r.context,((q,K,J,ee)=>{const te={};for(const ne of q){const ae=Ei(K,ne);ae&&Rs(te,ne,ae._f)}return{criteriaMode:J,names:[...q],fields:te,shouldUseNativeValidation:ee}})(G||p.mount,l,r.criteriaMode,r.shouldUseNativeValidation)),I=async(G,q,K={valid:!0})=>{for(const J in G){const ee=G[J];if(ee){const{_f:te,...ne}=ee;if(te){const ae=p.array.has(te.name),oe=await P5e(ee,d,w,r.shouldUseNativeValidation&&!q,ae);if(oe[te.name]&&(K.valid=!1,q))break;!q&&(Ei(oe,te.name)?ae?lSt(s.errors,oe,te.name):Rs(s.errors,te.name,oe[te.name]):Hd(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(G,q)=>(G&&q&&Rs(d,G,q),!VA(T(),c)),D=(G,q,K)=>aSt(G,p,{...u.mount?d:hl(q)?c:bx(G)?{[G]:q}:q},K,q),L=(G,q,K={})=>{const J=Ei(l,G);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Rs(d,G,mSt(q,te)),ee=eZ(te.ref)&&jp(q)?"":q,uSt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?zR(te.ref)?te.refs.length>1?te.refs.forEach((ne=>(!ne.defaultChecked||!ne.disabled)&&(ne.checked=Array.isArray(ee)?!!ee.find((ae=>ae===ne.value)):ee===ne.value))):te.refs[0]&&(te.refs[0].checked=!!ee):te.refs.forEach((ne=>ne.checked=ne.value===ee)):Ywe(te.ref)?te.ref.value="":(te.ref.value=ee,te.ref.type||f.values.next({name:G,values:{...d}})))}(K.shouldDirty||K.shouldTouch)&&k(G,ee,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&z(G)},F=(G,q,K)=>{for(const J in q){const ee=q[J],te=`${G}.${J}`,ne=Ei(l,te);!p.array.has(G)&&nZ(ee)&&(!ne||ne._f)||qE(ee)?L(te,ee,K):F(te,ee,K)}},N=(G,q,K={})=>{const J=Ei(l,G),ee=p.array.has(G),te=Fh(q);Rs(d,G,te),ee?(f.array.next({name:G,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:G,dirtyFields:vce(c,d),isDirty:E(G,te)})):!J||J._f||jp(te)?L(G,te,K):F(G,te,K),B5e(G,p)&&f.state.next({...s}),f.values.next({name:G,values:{...d}}),!u.mount&&n()},_=async G=>{const q=G.target;let K=q.name,J=!0;const ee=Ei(l,K);if(ee){let te,ne;const ae=q.type?Sce(ee._f):Zvt(G),oe=G.type===Xvt||G.type===gun,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!Ei(s.errors,K)&&!ee._f.deps||((ie,ce,de,he,me)=>!me.isOnAll&&(!de&&me.isOnTouch?!(ce||ie):(de?he.isOnBlur:me.isOnBlur)?!ie:!(de?he.isOnChange:me.isOnChange)||ie))(oe,Ei(s.touchedFields,K),s.isSubmitted,b,y),ge=B5e(K,p,oe);Rs(d,K,ae),oe?(ee._f.onBlur&&ee._f.onBlur(G),i&&i(0)):ee._f.onChange&&ee._f.onChange(G);const ue=k(K,ae,oe,!1),re=!zm(ue)||ge;if(!oe&&f.values.next({name:K,type:G.type,values:{...d}}),le)return g.isValid&&C(),re&&f.state.next({name:K,...ge?{}:ue});if(!oe&&ge&&f.state.next({...s}),A(!0),r.resolver){const{errors:ie}=await j([K]),ce=rPe(s.errors,l,K),de=rPe(ie,l,ce.name||K);te=de.error,K=de.name,ne=zm(ie)}else te=(await P5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(ae)||ae===Ei(d,K,ae),J&&(te?ne=!1:g.isValid&&(ne=await I(l,!0)));J&&(ee._f.deps&&z(ee._f.deps),$(K,ne,te,ue))}},z=async(G,q={})=>{let K,J;const ee=qm(G);if(A(!0),r.resolver){const te=await(async ne=>{const{errors:ae}=await j();if(ne)for(const oe of ne){const le=Ei(ae,oe);le?Rs(s.errors,oe,le):Hd(s.errors,oe)}else s.errors=ae;return ae})(hl(G)?G:ee);K=zm(te),J=G?!ee.some((ne=>Ei(te,ne))):K}else G?(J=(await Promise.all(ee.map((async te=>{const ne=Ei(l,te);return await I(ne&&ne._f?{[te]:ne}:ne)})))).every(Boolean),(J||s.isValid)&&C()):J=K=await I(l);return f.state.next({...!bx(G)||g.isValid&&K!==s.isValid?{}:{name:G},...r.resolver||!G?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&XK(l,(te=>te&&Ei(s.errors,te)),G?ee:p.mount),J},T=G=>{const q={...c,...u.mount?d:{}};return hl(G)?q:bx(G)?Ei(q,G):G.map((K=>Ei(q,K)))},M=(G,q)=>({invalid:!!Ei((q||s).errors,G),isDirty:!!Ei((q||s).dirtyFields,G),isTouched:!!Ei((q||s).touchedFields,G),error:Ei((q||s).errors,G)}),O=(G,q={})=>{for(const K of G?qm(G):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Hd(l,K),Hd(d,K)),!q.keepError&&Hd(s.errors,K),!q.keepDirty&&Hd(s.dirtyFields,K),!q.keepTouched&&Hd(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Hd(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(G,q={})=>{let K=Ei(l,G);const J=RI(q.disabled);return Rs(l,G,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:G}},name:G,mount:!0,...q}}),p.mount.add(G),K?J&&Rs(d,G,q.disabled?void 0:Ei(d,G,Sce(K._f))):S(G,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:_L(q.min),max:_L(q.max),minLength:_L(q.minLength),maxLength:_L(q.maxLength),pattern:_L(q.pattern)}:{},name:G,onChange:_,onBlur:_,ref:ee=>{if(ee){H(G,q),K=Ei(l,G);const te=hl(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(oe=>Gwe(oe)||zR(oe))(te),ae=K._f.refs||[];if(ne?ae.find((oe=>oe===te)):te===K._f.ref)return;Rs(l,G,{_f:{...K._f,...ne?{refs:[...ae.filter(Ace),te,...Array.isArray(Ei(c,G))?[{}]:[]],ref:{type:te.type,name:G}}:{ref:te}}}),S(G,!1,void 0,te)}else K=Ei(l,G,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!Jvt(p.array,G)||!u.action)&&p.unMount.add(G)}}},V=()=>r.shouldFocusError&&XK(l,(G=>G&&Ei(s.errors,G)),p.mount),W=(G,q={})=>{const K=G||c,J=Fh(K),ee=G&&!zm(G)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)Ei(s.dirtyFields,te)?Rs(ee,te,Ei(d,te)):N(te,Ei(ee,te));else{if(Wwe&&hl(G))for(const te of p.mount){const ne=Ei(l,te);if(ne&&ne._f){const ae=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(eZ(ae)){const oe=ae.closest("form");if(oe){oe.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Fh(c):{}:J,f.array.next({values:{...ee}}),f.values.next({values:{...ee}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&n(),u.mount=!g.isValid||!!q.keepIsValid,u.watch=!!e.shouldUnregister,f.state.next({submitCount:q.keepSubmitCount?s.submitCount:0,isDirty:q.keepDirty?s.isDirty:!(!q.keepDefaultValues||VA(G,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&G?vce(c,G):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(G,q)=>W(r9(G)?G(d):G,q);return{control:{register:H,unregister:O,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const G of p.unMount){const q=Ei(l,G);q&&(q._f.refs?q._f.refs.every((K=>!Ace(K))):!Ace(q._f.ref))&&O(G)}p.unMount=new Set},_updateFieldArray:(G,q=[],K,J,ee=!0,te=!0)=>{if(J&&K){if(u.action=!0,te&&Array.isArray(Ei(l,G))){const ne=K(Ei(l,G),J.argA,J.argB);ee&&Rs(l,G,ne)}if(te&&Array.isArray(Ei(s.errors,G))){const ne=K(Ei(s.errors,G),J.argA,J.argB);ee&&Rs(s.errors,G,ne),((ae,oe)=>{!TD(Ei(ae,oe)).length&&Hd(ae,oe)})(s.errors,G)}if(g.touchedFields&&te&&Array.isArray(Ei(s.touchedFields,G))){const ne=K(Ei(s.touchedFields,G),J.argA,J.argB);ee&&Rs(s.touchedFields,G,ne)}g.dirtyFields&&(s.dirtyFields=vce(c,d)),f.state.next({name:G,isDirty:E(G,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Rs(d,G,q)},_getFieldArray:G=>TD(Ei(u.mount?d:c,G,e.shouldUnregister?Ei(c,G,[]):[])),_reset:W,_resetDefaultValues:()=>r9(r.defaultValues)&&r.defaultValues().then((G=>{U(G,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:G=>{s={...s,...G}},_subjects:f,_proxyFormState:g,get _fields(){return l},get _formValues(){return d},get _state(){return u},set _state(G){u=G},get _defaultValues(){return c},get _names(){return p},set _names(G){p=G},get _formState(){return s},set _formState(G){s=G},get _options(){return r},set _options(G){r={...r,...G}}},trigger:z,register:H,handleSubmit:(G,q)=>async K=>{K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let J=Fh(d);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:te}=await j();s.errors=ee,J=te}else await I(l);Hd(s.errors,"root"),zm(s.errors)?(f.state.next({errors:{}}),await G(J,K)):(q&&await q({...s.errors},K),V(),setTimeout(V)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zm(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(G,q)=>r9(G)?f.values.subscribe({next:K=>G(D(void 0,q),K)}):D(G,q,!0),setValue:N,getValues:T,reset:U,resetField:(G,q={})=>{Ei(l,G)&&(hl(q.defaultValue)?N(G,Ei(c,G)):(N(G,q.defaultValue),Rs(c,G,q.defaultValue)),q.keepTouched||Hd(s.touchedFields,G),q.keepDirty||(Hd(s.dirtyFields,G),s.isDirty=q.defaultValue?E(G,Ei(c,G)):E()),q.keepError||(Hd(s.errors,G),g.isValid&&C()),f.state.next({...s}))},clearErrors:G=>{G&&qm(G).forEach((q=>Hd(s.errors,q))),f.state.next({errors:G?s.errors:{}})},unregister:O,setError:(G,q,K)=>{const J=(Ei(l,G,{_f:{}})._f||{}).ref;Rs(s.errors,G,{...q,ref:J}),f.state.next({name:G,errors:s.errors,isValid:!1}),K&&K.shouldFocus&&J&&J.focus&&J.focus()},setFocus:(G,q={})=>{const K=Ei(l,G),J=K&&K._f;if(J){const ee=J.refs?J.refs[0]:J.ref;ee.focus&&(ee.focus(),q.shouldSelect&&ee.select())}},getFieldState:M}}function $n(e={}){const n=B.useRef(),[i,r]=B.useState({isDirty:!1,isValidating:!1,isLoading:r9(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:r9(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...$un(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,$te({subject:s._subjects.state,next:l=>{oSt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!VA(e.values,s._defaultValues)?s._reset(e.values,s._options.resetOptions):s._resetDefaultValues()}),[e.values,s]),B.useEffect((()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()})),n.current.formState=iSt(i,s),n.current}let kx;kx=typeof window<"u"?window:typeof self<"u"?self:C5e;let M5e=null,O5e=null;const kce=kx.clearTimeout,aPe=kx.setTimeout,jce=kx.cancelAnimationFrame||kx.mozCancelAnimationFrame||kx.webkitCancelAnimationFrame,sPe=kx.requestAnimationFrame||kx.mozRequestAnimationFrame||kx.webkitRequestAnimationFrame;function Eun(e){let n,i,r,s,l,c,d;const u=typeof document<"u"&&document.attachEvent;if(!u){c=function(y){const b=y.__resizeTriggers__,w=b.firstElementChild,C=b.lastElementChild,A=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,A.style.width=w.offsetWidth+1+"px",A.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},l=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},d=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const b=this;c(this),this.__resizeRAF__&&M5e(this.__resizeRAF__),this.__resizeRAF__=O5e((function(){l(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach((function(w){w.call(b,y)})))}))};let p=!1,h="";r="animationstart";const g="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b<g.length;b++)if(y.style[g[b]+"AnimationName"]!==void 0){x=g[b],h="-"+x.toLowerCase()+"-",r=f[b],p=!0;break}}}i="resizeanim",n="@"+h+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",s=h+"animation: 1ms "+i+"; "}return{addResizeListener:function(p,h){if(u)p.attachEvent("onresize",h);else{if(!p.__resizeTriggers__){const g=p.ownerDocument,f=kx.getComputedStyle(p);f&&f.position==="static"&&(p.style.position="relative"),(function(b){if(!b.getElementById("detectElementResize")){const w=(n||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=b.head||b.getElementsByTagName("head")[0],A=b.createElement("style");A.id="detectElementResize",A.type="text/css",e!=null&&A.setAttribute("nonce",e),A.styleSheet?A.styleSheet.cssText=w:A.appendChild(b.createTextNode(w)),C.appendChild(A)}})(g),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const x=g.createElement("div");x.className="expand-trigger",x.appendChild(g.createElement("div"));const y=g.createElement("div");y.className="contract-trigger",p.__resizeTriggers__.appendChild(x),p.__resizeTriggers__.appendChild(y),p.appendChild(p.__resizeTriggers__),c(p),p.addEventListener("scroll",d,!0),r&&(p.__resizeTriggers__.__animationListener__=function(b){b.animationName===i&&c(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(h)}},removeResizeListener:function(p,h){if(u)p.detachEvent("onresize",h);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(h),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",d,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}jce==null||sPe==null?(M5e=kce,O5e=function(e){return aPe(e,20)}):(M5e=function([e,n]){jce(e),kce(n)},O5e=function(e){const n=sPe((function(){kce(i),e()})),i=aPe((function(){jce(n),e()}),20);return[n,i]});let Bo=class extends m.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:i,onResize:r}=this.props;if(this._parentNode){const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(s.paddingLeft||"0"),c=parseFloat(s.paddingRight||"0"),d=parseFloat(s.paddingTop||"0"),u=parseFloat(s.paddingBottom||"0"),p=this._parentNode.getBoundingClientRect(),h=p.height-d-u,g=p.width-l-c;if(!n&&this.state.height!==h||!i&&this.state.width!==g){this.setState({height:h,width:g});const f=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof r=="function"&&r({height:h,width:g,get scaledHeight(){return f(),h},get scaledWidth(){return f(),g}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const i=n.ownerDocument.defaultView.ResizeObserver;i!=null?(this._resizeObserver=new i((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(n)):(this._detectElementResize=Eun(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:r=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:l=!1,nonce:c,onResize:d,style:u={},tagName:p="div",...h}=this.props,{height:g,width:f}=this.state,x={overflow:"visible"},y={};let b=!1;return r||(g===0&&(b=!0),x.height=0,y.height=g,y.scaledHeight=g),s||(f===0&&(b=!0),x.width=0,y.width=f,y.scaledWidth=f),l&&(b=!1),m.createElement(p,{ref:this._setRef,style:{...x,...u},...h},!b&&e(y))}};function n0(e){return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n0(e)}function F5e(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,r=Array(n);i<n;i++)r[i]=e[i];return r}function qwe(e,n){if(e){if(typeof e=="string")return F5e(e,n);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?F5e(e,n):void 0}}function lPe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=qwe(e))||n){i&&(e=i);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,c=!0,d=!1;return{s:function(){i=i.call(e)},n:function(){var u=i.next();return c=u.done,u},e:function(u){d=!0,l=u},f:function(){try{c||i.return==null||i.return()}finally{if(d)throw l}}}}function Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oZ(e,n){return oZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},oZ(e,n)}function Ea(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&oZ(e,n)}function rZ(e){return rZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rZ(e)}function gSt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(gSt=function(){return!!e})()}function Ia(e){var n=gSt();return function(){var i,r=rZ(e);if(n){var s=rZ(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(n0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bi(l)})(this,i)}}function da(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function fSt(e){var n=(function(i,r){if(n0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(n0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return n0(n)=="symbol"?n:n+""}function cPe(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fSt(r.key),r)}}function ua(e,n,i){return n&&cPe(e.prototype,n),i&&cPe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Si(e,n,i){return(n=fSt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function dPe(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable}))),i.push.apply(i,r)}return i}function yo(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?dPe(Object(i),!0).forEach((function(r){Si(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):dPe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function Xd(e,n){return(function(i){if(Array.isArray(i))return i})(e)||(function(i,r){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var l,c,d,u,p=[],h=!0,g=!1;try{if(d=(s=s.call(i)).next,r===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(l=d.call(s)).done)&&(p.push(l.value),p.length!==r);h=!0);}catch(f){g=!0,c=f}finally{try{if(!h&&s.return!=null&&(u=s.return(),Object(u)!==u))return}finally{if(g)throw c}}return p}})(e,n)||qwe(e,n)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
5
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function aZ(e,n){if(e==null)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.indexOf(r)!==-1)continue;i[r]=e[r]}return i}function k3(e,n){if(e==null)return{};var i,r,s=aZ(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)i=l[r],n.indexOf(i)===-1&&{}.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ko.apply(null,arguments)}function zI(e){return(function(n){if(Array.isArray(n))return F5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||qwe(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
@@ -10498,7 +10498,7 @@ To reactivate your account, please settle the outstanding balance. Contact suppo
10498
10498
  padding-top: ${e=>em.ButtonContainerPaddingTop.valuePx(e.windowSize)};
10499
10499
  `,S0i=a.div``,k0i=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"}))))`
10500
10500
  transform: scale(1, 0.9);
10501
- `,j0i=a(Ws)``,$Qe="application/pdf",hFt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],$0i={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function E0i(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 I0i(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===$Qe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([jd((()=>import("./pdf-lib-BsfRp21l.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),jd((()=>import("./pdf-bOGTjHnz.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 E0i(w,1.5,.7),A=await f.embedJpg(new Uint8Array(C)),S=A.scale(1);f.addPage([S.width,S.height]).drawImage(A,{x:0,y:0,width:S.width,height:S.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:$Qe,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(hFt.includes(s.type)===!1)return s;const c=await Du(s,$0i),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 D0i=({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":Q("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}),kN=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=GCe(IBt),[c]=Xr("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(Vs,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},HAe=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"}));tvt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${evt}/pdf.worker.mjs`;const{common:EQe}=se.getLocalizedStrings(),IQe=(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",DQe=(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}},TQe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,T0i=(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 LQe(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 az(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 E=Math.floor($.clientWidth);E>0&&s((D=>D===E?D:E))};j();const I=new ResizeObserver(j);return I.observe($),()=>{I.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(DQe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(DQe($.currentTarget,$.clientX,$.clientY))},A=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=TQe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const I=g.current,E=I!=null&&I.scrollHeight>I.clientHeight?I:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((L,F)=>{const N=L.getBoundingClientRect(),_=F!=null?F.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return N.bottom>_.top&&N.top<_.bottom&&N.right>_.left&&N.left<_.right})(D,E))return;T0i(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;A();const $=requestAnimationFrame(A),j=window.setTimeout(A,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,A]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const S=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((I=>I.page===$));return j.length===0?null:t.jsx(BQe,{children:j.flatMap(((I,E)=>{const D=LQe(I.polygon,I.pageWidth,I.pageHeight),L=IQe(I,e.selectedStatementTransactionId,d);return t.jsx(PQe,{"data-citation-variant":L,"data-statement-transaction-id":I.statementTransactionId,$variant:L,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${E}`)}))})},k=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(H1,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:Lv,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(L0i,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||k()},onDoubleClick:()=>{x&&k()},windowSize:p,"data-testid":Q("attachment-container",e.pdfTitle),children:t.jsxs(B0i,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(P0i,{children:[t.jsx(M0i,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(O0i,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(He,{enterDelay:600,display:"flex",title:EQe.texts.replace,placement:"top-end",children:t.jsx(F0i,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(z0i,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Q("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(He,{enterDelay:600,display:"flex",title:EQe.delete,placement:"top",children:t.jsx(R0i,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Q("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(U0i,{children:t.jsxs(W0i,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(Q0i,{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(BQe,{children:$.flatMap(((j,I)=>{const E=LQe(j.polygon,j.pageWidth,j.pageHeight),D=IQe(j,e.selectedStatementTransactionId,d);return t.jsx(PQe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${E.height}%`,left:`${E.left}%`,top:`${E.top}%`,width:`${E.width}%`}},`${I}`)}))})})()]})}):t.jsxs($5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(V0i,{children:t.jsx(Kn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(li,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(N0i,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(H0i,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(E5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?TQe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&A()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(_0i,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const L0i=a.div`
10501
+ `,j0i=a(Ws)``,$Qe="application/pdf",hFt=["image/jpg","image/jpeg","image/png","image/webp","image/bmp"],$0i={useWebWorker:!0,maxWidthOrHeight:1920,initialQuality:.92,maxSizeMB:2};async function E0i(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 I0i(e,n){const i=e instanceof File?e:new File([e],n,{type:e.type});if(e.type===$Qe){const s=await(async function(l,c){const[{PDFDocument:d},u]=await Promise.all([jd((()=>import("./pdf-lib-D4o6Nk27.js").then((b=>b.i))),__vite__mapDeps([0,1,2])),jd((()=>import("./pdf-C42gprG9.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 E0i(w,1.5,.7),A=await f.embedJpg(new Uint8Array(C)),S=A.scale(1);f.addPage([S.width,S.height]).drawImage(A,{x:0,y:0,width:S.width,height:S.height})}const x=await f.save(),y=c.toLowerCase().endsWith(".pdf")?c:`${c}.pdf`;return new File([x],y,{type:$Qe,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(hFt.includes(s.type)===!1)return s;const c=await Du(s,$0i),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 D0i=({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":Q("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}),kN=({shouldDisplay:e,width:n=30,height:i=30,styles:r,animationInLoop:s=!1})=>{const[,l]=GCe(IBt),[c]=Xr("MoneyTransferSuccess");return B.useEffect((()=>{e&&l(!0)}),[e,l]),e&&c!=null?t.jsx(Vs,{style:{width:n,height:i,...r},play:!0,animationData:c,loop:s,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},HAe=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"}));tvt.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${evt}/pdf.worker.mjs`;const{common:EQe}=se.getLocalizedStrings(),IQe=(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",DQe=(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}},TQe=(e,n)=>n==null?void 0:e.find((i=>i.statementTransactionId===n))?.page,T0i=(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 LQe(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 az(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 E=Math.floor($.clientWidth);E>0&&s((D=>D===E?D:E))};j();const I=new ResizeObserver(j);return I.observe($),()=>{I.disconnect()}}),[e.isFullScreen,e.fileUrl]);const y=$=>{f.current!==$&&(f.current=$,u($),e.onCitationHover?.($))},b=$=>{x===!0&&y(DQe($.currentTarget,$.clientX,$.clientY))},w=()=>{x===!0&&y(void 0)},C=$=>{e.onCitationClick!=null&&e.onCitationClick(DQe($.currentTarget,$.clientX,$.clientY))},A=m.useCallback((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0)return;const $=TQe(e.highlightedCitations,e.selectedStatementTransactionId);if($==null)return;const j=g.current?.querySelector(`[data-testid="pdf-page-${$}"]`);if(j!=null){const I=g.current,E=I!=null&&I.scrollHeight>I.clientHeight?I:null,D=(e.selectedStatementTransactionId!=null?j.querySelector(`[data-statement-transaction-id="${CSS.escape(String(e.selectedStatementTransactionId))}"]`):null)??j;if(((L,F)=>{const N=L.getBoundingClientRect(),_=F!=null?F.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};return N.bottom>_.top&&N.top<_.bottom&&N.right>_.left&&N.left<_.right})(D,E))return;T0i(D,E)}}),[e.highlightedCitations,e.selectedStatementTransactionId]);m.useEffect((()=>{if(e.highlightedCitations==null||e.highlightedCitations.length===0||e.selectedStatementTransactionId==null)return;A();const $=requestAnimationFrame(A),j=window.setTimeout(A,150);return()=>{cancelAnimationFrame($),window.clearTimeout(j)}}),[e.highlightedCitations,e.selectedStatementTransactionId,n,A]),m.useEffect((()=>{c(null),i(0)}),[e.fileUrl]);const S=$=>{if(!e.highlightedCitations)return null;const j=e.highlightedCitations.filter((I=>I.page===$));return j.length===0?null:t.jsx(BQe,{children:j.flatMap(((I,E)=>{const D=LQe(I.polygon,I.pageWidth,I.pageHeight),L=IQe(I,e.selectedStatementTransactionId,d);return t.jsx(PQe,{"data-citation-variant":L,"data-statement-transaction-id":I.statementTransactionId,$variant:L,style:{height:`${D.height}%`,left:`${D.left}%`,top:`${D.top}%`,width:`${D.width}%`}},`${E}`)}))})},k=()=>{e.setShowFullScreenView(!0)};return t.jsxs(t.Fragment,{children:[t.jsx(H1,{fileRef:h,name:"invoice",onFileChange:$=>{if($.target.files!=null){const j=$.target.files[0];e.onUploadAttachment?.([j],[j.name])}},multiple:e.allowMultiFiles,sizeLimit:Lv,onFileSizeError:$=>e.openSizeLimitPopup?.($)}),t.jsx(L0i,{maxHeight:e.maxHeight??!1,$allowTextSelection:x,"data-statement-pdf-surface":"",onClick:()=>{x||k()},onDoubleClick:()=>{x&&k()},windowSize:p,"data-testid":Q("attachment-container",e.pdfTitle),children:t.jsxs(B0i,{isFullScreen:e.isFullScreen,ref:g,children:[e.showTitlebar===!0?t.jsxs(P0i,{children:[t.jsx(M0i,{children:e.pdfTitle}),e.showTitlebarIcon===!0?t.jsxs(O0i,{className:"actionIcons",children:[e.showReplaceIcon!==!1?t.jsx(He,{enterDelay:600,display:"flex",title:EQe.texts.replace,placement:"top-end",children:t.jsx(F0i,{"data-testid":Q("replace-attachment",e.pdfTitle),onClick:$=>{$.stopPropagation(),h.current?.click()}})}):null,p==="small"?t.jsx(z0i,{"data-testid":e.deleteAttachmentDataTestId!=null?`${e.deleteAttachmentDataTestId}-mobile`:Q("delete-attachment-mobile",e.pdfTitle),onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()}}):t.jsx(He,{enterDelay:600,display:"flex",title:EQe.delete,placement:"top",children:t.jsx(R0i,{onClick:$=>{$.stopPropagation(),e.onDeleteClick?.()},"data-testid":e.deleteAttachmentDataTestId??Q("delete-attachment",e.pdfTitle)})})]}):null]}):null,(()=>{const $=e.fileUrl.toLowerCase();return[".jpg",".jpeg",".png",".gif",".webp",".bmp"].some((j=>$.includes(j)))})()?t.jsx(U0i,{children:t.jsxs(W0i,{onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(Q0i,{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(BQe,{children:$.flatMap(((j,I)=>{const E=LQe(j.polygon,j.pageWidth,j.pageHeight),D=IQe(j,e.selectedStatementTransactionId,d);return t.jsx(PQe,{"data-citation-variant":D,"data-statement-transaction-id":j.statementTransactionId,$variant:D,style:{height:`${E.height}%`,left:`${E.left}%`,top:`${E.top}%`,width:`${E.width}%`}},`${I}`)}))})})()]})}):t.jsxs($5e,{file:e.fileUrl,onLoadSuccess:({numPages:$})=>i($),onLoadError:()=>i(0),loading:t.jsx(V0i,{children:t.jsx(Kn,{size:"ExtraLarge",start:!0})}),className:"pdfDoc",children:[Array.from(new Array(n),(($,j)=>t.jsx(li,{onClickAway:()=>e.onCrossClick?.(),children:t.jsxs(N0i,{windowSize:p,isFullScreen:e.isFullScreen,children:[t.jsxs(H0i,{"data-testid":`pdf-page-${j+1}`,isFullScreen:e.isFullScreen,onMouseMove:b,onMouseLeave:w,onClick:C,children:[t.jsx(E5e,{pageNumber:j+1,className:"reactPdfPage",...e.isFullScreen?{scale:1.5}:r!=null?{width:r}:{scale:1},error:t.jsx("div",{}),onRenderSuccess:()=>{(e.highlightedCitations!=null?TQe(e.highlightedCitations,e.selectedStatementTransactionId):void 0)===j+1&&A()}},`page_${j+1}`),S(j+1)]}),n!=j+1?t.jsx(_0i,{}):null]})},`page_${j+1}`))),t.jsx("div",{})]},e.fileUrl)]})})]})}const L0i=a.div`
10502
10502
  max-height: ${e=>e.maxHeight===!0?"650px":"auto"};
10503
10503
  display: flex;
10504
10504
  flex-direction: column;
@@ -23823,7 +23823,7 @@ to {
23823
23823
  ${({isMenuVisible:e})=>e===!1?Ie`
23824
23824
  display: none;
23825
23825
  `:null};
23826
- `,_ve=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)"})))),nJe=m.lazy((()=>jd((()=>import("./index-UMoTq5JU.js")),__vite__mapDeps([3,0,1,2]))));function Vve({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 A={};i?.youtube&&(A.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?$a.createPortal(t.jsx(oWi,{windowSize:b,role:"presentation",children:t.jsx(li,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(rWi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(aWi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(iWi,{src:h,alt:"Video thumbnail"}),t.jsx(tWi,{onClick:()=>{C(!0),y?.()},children:t.jsx(nWi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(nJe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:A})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(nJe,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:S,onPlay:k,config:A})})}const eWi=mi`
23826
+ `,_ve=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)"})))),nJe=m.lazy((()=>jd((()=>import("./index-CcNUb4uI.js")),__vite__mapDeps([3,0,1,2]))));function Vve({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 A={};i?.youtube&&(A.youtube=i.youtube);const S=()=>{C(!1),f?.(),l!=null&&x?.()},k=()=>{C(!0),y?.()};return l!=null?l?$a.createPortal(t.jsx(oWi,{windowSize:b,role:"presentation",children:t.jsx(li,{onClickAway:()=>{C(!1),x?.()},children:t.jsx(rWi,{windowSize:b,"data-testid":"video-player-modal",children:t.jsxs(aWi,{children:[u&&!w&&t.jsxs(t.Fragment,{children:[h!=null&&h!==""&&t.jsx(iWi,{src:h,alt:"Video thumbnail"}),t.jsx(tWi,{onClick:()=>{C(!0),y?.()},children:t.jsx(nWi,{windowSize:b})})]}),(!u||w)&&t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:"100%",height:"100%"}}),children:t.jsx(nJe,{src:e,playing:w,controls:r,muted:d,loop:c,width:"100%",height:"100%",onEnded:S,onPlay:k,config:A})})]})})})}),document.body):null:t.jsx(m.Suspense,{fallback:t.jsx("div",{style:{width:g,height:s,...p}}),children:t.jsx(nJe,{src:e,playing:w,controls:r,muted:d,loop:c,width:g,height:s,style:p,light:!(!u||w)&&(h??!0),onEnded:S,onPlay:k,config:A})})}const eWi=mi`
23827
23827
  0% {
23828
23828
  transform: rotate(0deg);
23829
23829
  }
@@ -87243,7 +87243,7 @@ ${JM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
87243
87243
  color: ${P.tagWarningColorLight};
87244
87244
  `,gds=a(yt)`
87245
87245
  color: ${P.tagWarningColorLight};
87246
- `,{expenseAutomation:{accountRecon:{statementProcessing:Em}},common:MG}=se.getLocalizedStrings(),Y5="statement-processing-page";function fds(){const[e]=Xr("AiStar");return t.jsx(Mg,{$slotSize:o.sp4,children:e!=null?t.jsx(HT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Sds,{})})}function xds({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=Em.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,A]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((re,ie)=>{A(re),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[F,N]=m.useState(i!=null),[_,z]=m.useState(null),[T,M]=m.useState(0),O=m.useRef(null),H=m.useRef(!1),V=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let re=!1;return N(!1),(async function(ie){if(ie==null)return;if(jin(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const ce=ie.signedUrl.trim();if(ce!=="")try{const de=await fetch(ce);return de.ok?(await(await jd((()=>import("./pdf-bOGTjHnz.js").then((he=>he.i))),__vite__mapDeps([0,1,2])).then((he=>he.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{re||(L(ie),N(!0))})),()=>{re=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!F||_!=null||z((function(re){return re==null||re<=0?125:re<=2?65:re<=4?120:re<=8?160:re<=12?190:200})(D))}),[F,_,D]);const U=_??125,G=D8e(h),q=1e3*U,K=Math.floor(q/Math.max(G,1));m.useEffect((()=>{if(!e)return O.current=null,H.current=!1,M(0),void z(null);if(!H.current){const ce=(function(de,he,me){const ye=D8e(me);return he*(Math.max(0,Math.min(de,me)-1)/ye)})(Math.max(n??0,b,1),U,h);O.current=Date.now()-1e3*ce,H.current=!0}const re=()=>{O.current!=null&&M(Math.floor((Date.now()-O.current)/1e3))};re();const ie=setInterval(re,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,ee=_!=null?(function(re,ie,ce){return ie?null:re<=0?{label:ce.takingLongerThanExpected,showClock:!1}:re<60?{label:ce.timeRemainingSeconds(re),showClock:!0}:{label:ce.timeRemainingMinutes(Math.ceil(re/60)),showClock:!0}})(J,b>=h,Em):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 te=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const re=setTimeout((()=>{w((ie=>ie+1))}),te?300:K);return()=>clearTimeout(re)}),[b,s,f,g,te,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const re=setTimeout(u,1e3);return()=>clearTimeout(re)}),[b,f,u,h]);const ne=f===!0&&b>=g,ae=m.useCallback((()=>{const re=O.current??Date.now();d({completedSteps:b,startedAtMs:re,totalDurationSeconds:U,accountMappings:ne===!0?C:void 0})}),[b,ne,C,d,U]);m.useEffect((()=>{if(ne!==!0)return void(W.current=!1);if(W.current===!0)return;W.current=!0;const re=requestAnimationFrame((()=>{const ie=V.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(re)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const re=b/h*100;if(b===0)return void I(0);if(b>=h)return void I(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void I(re);const ie=(b+1)/h*100,ce=te?300:K,de=performance.now();let he=0;const me=ye=>{const we=Math.min((ye-de)/ce,1);I(re+(ie-re)*we),we<1&&(he=requestAnimationFrame(me))};return he=requestAnimationFrame(me),()=>cancelAnimationFrame(he)}),[b,s,f,g,te,K,h]);const oe=Math.min(100,Math.round(j)),le=b>=h?h-1:Math.min(b,Em.stepSubtitles.length-1),ge=r?.accounts.length??0,ue=ne===!0&&ge>0?r?.accountType==="bank"?Em.accountMapping.headerSubtitleAccounts(ge):Em.accountMapping.headerSubtitle(ge):Em.stepSubtitles[le];return t.jsxs(t.Fragment,{children:[t.jsxs(yds,{ref:V,"data-testid":Q(Y5,"container"),children:[t.jsxs(wds,{"data-testid":Q(Y5,"header"),children:[t.jsxs(Cds,{children:[t.jsxs(Ads,{children:[t.jsxs(vds,{children:[t.jsx(fds,{}),t.jsx(kds,{children:Em.headerTitle})]}),ne===!0?t.jsxs(f9t,{"data-testid":Q(Y5,"action-needed"),children:[t.jsx(Ids,{}),t.jsx(Dds,{children:Em.actionNeeded})]}):ee!=null?t.jsxs(f9t,{"data-testid":Q(Y5,"time-remaining"),children:[ee.showClock?t.jsx($ds,{}):null,t.jsx(Eds,{children:ee.label})]}):null]}),t.jsx(jds,{children:ue})]}),t.jsxs(Tds,{children:[t.jsxs(Lds,{children:[t.jsx(Bds,{children:Em.stepProgressLabel(b,h)}),t.jsx(Pds,{children:`${oe}%`})]}),t.jsx(Mds,{children:t.jsx(Ods,{style:{width:`${j}%`}})})]})]}),t.jsx(bds,{"data-testid":Q(Y5,"steps"),children:Em.steps.map(((re,ie)=>{const ce=ie+1,de=ie===Em.steps.length-1,he=ne===!0&&y!==!0&&de===!0,me=f===!0&&y===!0&&de===!0&&b>=g,ye=he!==!0&&me!==!0&&ce<=b,we=me===!0||he!==!0&&ce===b+1;return t.jsxs(Fds,{"data-testid":Q(Y5,`step-${ce}`),children:[t.jsxs(Rds,{children:[t.jsx(Nds,{$isDone:ye,$isInProgress:we,children:ce}),de?null:t.jsx(zds,{$isDone:ye})]}),t.jsx(Yds,{children:re}),t.jsx(Gds,{children:he===!0?t.jsx(Uds,{"data-testid":Q(Y5,"action-required"),children:t.jsx(Wds,{children:MG.texts.actionRequired})}):ye?t.jsx(_ds,{}):we?t.jsxs(Vds,{children:[t.jsx(Qds,{}),t.jsx(Hds,{children:MG.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},ce)}))}),ne===!0&&r!=null?t.jsx(Ycs,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),ne===!0&&r!=null?t.jsx(qn,{formId:Y5,showCancel:!0,cancelBtn:{label:Em.continueInBackground,onClick:ae,style:{width:"195px"}},primaryBtn:{label:MG.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(qn,{formId:Y5,showCancel:!0,cancelBtn:{label:MG.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:Em.continueInBackground,onClick:ae,variant:"secondary",style:{width:"195px"}}})]})}const yds=a.div`
87246
+ `,{expenseAutomation:{accountRecon:{statementProcessing:Em}},common:MG}=se.getLocalizedStrings(),Y5="statement-processing-page";function fds(){const[e]=Xr("AiStar");return t.jsx(Mg,{$slotSize:o.sp4,children:e!=null?t.jsx(HT,{animationData:e,play:!0,loop:!0,slotSize:o.sp4}):t.jsx(Sds,{})})}function xds({isUploadComplete:e,_storyCompletedSteps:n,_storyPageCount:i,accountMapping:r,isParsedDataReady:s,statementFile:l,onCancel:c,onContinueInBackground:d,onAllStepsComplete:u,onCompletedStepsChange:p}){const h=Em.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,A]=m.useState([]),[S,k]=m.useState(!1),$=m.useCallback(((re,ie)=>{A(re),k(ie)}),[]),[j,I]=m.useState((()=>h===0?0:(n??0)/h*100)),E=l?.signedUrl?.trim()??"",[D,L]=m.useState(i),[F,N]=m.useState(i!=null),[_,z]=m.useState(null),[T,M]=m.useState(0),O=m.useRef(null),H=m.useRef(!1),V=m.useRef(null),W=m.useRef(!1);m.useEffect((()=>{if(i!=null)return L(i),void N(!0);if(E==="")return L(void 0),void N(!1);let re=!1;return N(!1),(async function(ie){if(ie==null)return;if(jin(ie))return 1;if(!(function(de){return de.contentType?.toLowerCase()==="application/pdf"||de.extension?.toLowerCase()===".pdf"})(ie))return;const ce=ie.signedUrl.trim();if(ce!=="")try{const de=await fetch(ce);return de.ok?(await(await jd((()=>import("./pdf-C42gprG9.js").then((he=>he.i))),__vite__mapDeps([0,1,2])).then((he=>he.pdfjs))).getDocument({data:new Uint8Array(await de.arrayBuffer())}).promise).numPages:void 0}catch{return}})({signedUrl:E,contentType:l?.contentType,extension:l?.extension}).then((ie=>{re||(L(ie),N(!0))})),()=>{re=!0}}),[i,E,l?.contentType,l?.extension]),m.useEffect((()=>{z(null)}),[E]),m.useEffect((()=>{!F||_!=null||z((function(re){return re==null||re<=0?125:re<=2?65:re<=4?120:re<=8?160:re<=12?190:200})(D))}),[F,_,D]);const U=_??125,G=D8e(h),q=1e3*U,K=Math.floor(q/Math.max(G,1));m.useEffect((()=>{if(!e)return O.current=null,H.current=!1,M(0),void z(null);if(!H.current){const ce=(function(de,he,me){const ye=D8e(me);return he*(Math.max(0,Math.min(de,me)-1)/ye)})(Math.max(n??0,b,1),U,h);O.current=Date.now()-1e3*ce,H.current=!0}const re=()=>{O.current!=null&&M(Math.floor((Date.now()-O.current)/1e3))};re();const ie=setInterval(re,5e3);return()=>clearInterval(ie)}),[e,U,h,n,b]);const J=_!=null?Math.max(0,_-T):0,ee=_!=null?(function(re,ie,ce){return ie?null:re<=0?{label:ce.takingLongerThanExpected,showClock:!1}:re<60?{label:ce.timeRemainingSeconds(re),showClock:!0}:{label:ce.timeRemainingMinutes(Math.ceil(re/60)),showClock:!0}})(J,b>=h,Em):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 te=s===!0||f===!0&&b<g;m.useEffect((()=>{if(b===0||b>=h||s!==!0&&b>=g||f===!0&&b>=g)return;const re=setTimeout((()=>{w((ie=>ie+1))}),te?300:K);return()=>clearTimeout(re)}),[b,s,f,g,te,K,h]),m.useEffect((()=>{if(b!==h||u==null||f===!0)return;const re=setTimeout(u,1e3);return()=>clearTimeout(re)}),[b,f,u,h]);const ne=f===!0&&b>=g,ae=m.useCallback((()=>{const re=O.current??Date.now();d({completedSteps:b,startedAtMs:re,totalDurationSeconds:U,accountMappings:ne===!0?C:void 0})}),[b,ne,C,d,U]);m.useEffect((()=>{if(ne!==!0)return void(W.current=!1);if(W.current===!0)return;W.current=!0;const re=requestAnimationFrame((()=>{const ie=V.current;ie?.scrollTo({top:ie.scrollHeight,behavior:"smooth"})}));return()=>cancelAnimationFrame(re)}),[ne]),m.useEffect((()=>{if(h===0)return void I(0);const re=b/h*100;if(b===0)return void I(0);if(b>=h)return void I(100);if(s!==!0&&f!==!0&&b>=g||f===!0&&b>=g)return void I(re);const ie=(b+1)/h*100,ce=te?300:K,de=performance.now();let he=0;const me=ye=>{const we=Math.min((ye-de)/ce,1);I(re+(ie-re)*we),we<1&&(he=requestAnimationFrame(me))};return he=requestAnimationFrame(me),()=>cancelAnimationFrame(he)}),[b,s,f,g,te,K,h]);const oe=Math.min(100,Math.round(j)),le=b>=h?h-1:Math.min(b,Em.stepSubtitles.length-1),ge=r?.accounts.length??0,ue=ne===!0&&ge>0?r?.accountType==="bank"?Em.accountMapping.headerSubtitleAccounts(ge):Em.accountMapping.headerSubtitle(ge):Em.stepSubtitles[le];return t.jsxs(t.Fragment,{children:[t.jsxs(yds,{ref:V,"data-testid":Q(Y5,"container"),children:[t.jsxs(wds,{"data-testid":Q(Y5,"header"),children:[t.jsxs(Cds,{children:[t.jsxs(Ads,{children:[t.jsxs(vds,{children:[t.jsx(fds,{}),t.jsx(kds,{children:Em.headerTitle})]}),ne===!0?t.jsxs(f9t,{"data-testid":Q(Y5,"action-needed"),children:[t.jsx(Ids,{}),t.jsx(Dds,{children:Em.actionNeeded})]}):ee!=null?t.jsxs(f9t,{"data-testid":Q(Y5,"time-remaining"),children:[ee.showClock?t.jsx($ds,{}):null,t.jsx(Eds,{children:ee.label})]}):null]}),t.jsx(jds,{children:ue})]}),t.jsxs(Tds,{children:[t.jsxs(Lds,{children:[t.jsx(Bds,{children:Em.stepProgressLabel(b,h)}),t.jsx(Pds,{children:`${oe}%`})]}),t.jsx(Mds,{children:t.jsx(Ods,{style:{width:`${j}%`}})})]})]}),t.jsx(bds,{"data-testid":Q(Y5,"steps"),children:Em.steps.map(((re,ie)=>{const ce=ie+1,de=ie===Em.steps.length-1,he=ne===!0&&y!==!0&&de===!0,me=f===!0&&y===!0&&de===!0&&b>=g,ye=he!==!0&&me!==!0&&ce<=b,we=me===!0||he!==!0&&ce===b+1;return t.jsxs(Fds,{"data-testid":Q(Y5,`step-${ce}`),children:[t.jsxs(Rds,{children:[t.jsx(Nds,{$isDone:ye,$isInProgress:we,children:ce}),de?null:t.jsx(zds,{$isDone:ye})]}),t.jsx(Yds,{children:re}),t.jsx(Gds,{children:he===!0?t.jsx(Uds,{"data-testid":Q(Y5,"action-required"),children:t.jsx(Wds,{children:MG.texts.actionRequired})}):ye?t.jsx(_ds,{}):we?t.jsxs(Vds,{children:[t.jsx(Qds,{}),t.jsx(Hds,{children:MG.aiAgentsActivatingPage.ledgerSection.workingPillLabel})]}):null})]},ce)}))}),ne===!0&&r!=null?t.jsx(Ycs,{accounts:r.accounts,fileName:l?.fileName??"",ledgerAccounts:r.ledgerAccounts,accountType:r.accountType,initialMappings:r.initialMappings,statementOverrideWarningAccountIds:r.statementOverrideWarningAccountIds,unavailableLedgerAccountIds:r.unavailableLedgerAccountIds,onMappingsChange:$}):null]}),ne===!0&&r!=null?t.jsx(qn,{formId:Y5,showCancel:!0,cancelBtn:{label:Em.continueInBackground,onClick:ae,style:{width:"195px"}},primaryBtn:{label:MG.confirm,isDisabled:S!==!0||x===!0||y===!0,isLoading:x,onClick:()=>{y===!0||x===!0||r.onConfirmMapping(C)},style:{width:"195px"}}}):t.jsx(qn,{formId:Y5,showCancel:!0,cancelBtn:{label:MG.cancel,onClick:c,style:{width:"195px"}},primaryBtn:{label:Em.continueInBackground,onClick:ae,variant:"secondary",style:{width:"195px"}}})]})}const yds=a.div`
87247
87247
  flex: 1;
87248
87248
  display: flex;
87249
87249
  flex-direction: column;
@@ -92577,7 +92577,7 @@ ${JM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
92577
92577
  display: flex;
92578
92578
  min-height: 100%;
92579
92579
  flex-direction: column;
92580
- `,ybs=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser())),i=Mp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Nr((g=>YAt(g).fetchState)),u=Nr((g=>_p(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=vr.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(hcn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(Eve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(fbs,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},mCt="init-enter",bbs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||mCt);wbs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||mCt,c=Cbs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),wbs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),Cbs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},dm=e=>m.lazy((async()=>{const n=e.toString(),i=vr.getForceRefreshedComponents(),r=new Set(i),s=vr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),ljs=(e,n,i)=>{const r=awe(e),s=dte(e),l=swe(i,e);return(n||i||s||r||l)&&owe(e.company)},yrn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),brn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),wrn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Crn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(yrn||brn||wrn||Crn)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 vD(...e){const n=Ul==="DEV"||Ul==="QA";if(yrn||brn||wrn||Crn)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 mE=null,uO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function gCt(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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const Abs={dashboard:function(e){return[...gCt()]},reports:gCt,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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Cc}/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:`${Cc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Cc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Cc}/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:`${Cc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Cc}/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:`${Cc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Cc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function fCt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,Abs[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return wc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function xCt(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?(wc("[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 vD("[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);wc("[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)=>{wc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),wc(` URL: ${u.url}`)}));const c=fte(),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}}),wc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){vD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else vD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function vbs({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),A=Wg(),S=vr.getSignedInUser(),{useFeatureGate:k}=ts(),{isFeatureEnabled:$}=k(Sl.isReferralFeatureEnabled),j=Ln(),I=Ry(j?.loggedInUserRole??[]),E=Nr((_=>_p(_))),{isFeatureEnabled:D}=k(Sl.isDebitCardFeatureEnabled),L=swe(D,E),F=awe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void wc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);wc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{xCt(_,r,s).catch((M=>{vD(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,A.pathname]),m.useEffect((()=>{y(!1)}),[i,A.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[A.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;wc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;wc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{uO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),uO=!1),mE&&clearTimeout(mE),mE=setTimeout((()=>{uO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),uO=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{wc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),mE&&(clearTimeout(mE),mE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),uO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(wc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),xCt(z,r,s).catch((M=>{vD(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):wc(`[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,S,i,b,n,u,p,$,I,N,E.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(wc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||_.active;if(!z)return;wc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){vD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function Sbs({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Wg(),u=Nr((y=>_p(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}=ts(),{isFeatureEnabled:x}=f(Sl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(vbs,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):on.jsx(on.Fragment,{children:e})}function kbs(e,n){const i=Ni.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const jbs=dm((()=>jd((()=>import("./DefaultTenantHome-FpeIWNLr.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),$bs=dm((()=>jd((()=>import("./AppDrawer-Dm9C8j__.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),yCt=dm((()=>jd((()=>import("./ScreenRoutes-Cix6ynkH.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),Ebs=dm((()=>jd((()=>import("./ConnectionAuthScreen-F-iZ536h.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),Ibs=dm((()=>jd((()=>import("./SignInScreen-VX0iUVME.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),Dbs=dm((()=>jd((()=>import("./MagicLinkSignInScreen-CBjgwG_1.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),bCt=dm((()=>jd((()=>import("./NotFoundScreen-CxVO6BUm.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),Tbs=dm((()=>jd((()=>import("./MagicLinkRoutes-CR6ShXCQ.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),Lbs=dm((()=>jd((()=>import("./PaymentLinkScreen-BN13u2tw.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),Bbs=dm((()=>jd((()=>import("./WiseConfirmationScreen-DhPTIeWc.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),Pbs=dm((()=>jd((()=>import("./HubSpotOAuthCallbackScreen-C94ZBMtd.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),Mbs=dm((()=>jd((()=>import("./CustomerOnboardingAuthScreen-Gnqx1b1N.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),Obs=dm((()=>jd((()=>import("./SignOutScreen-BXVxv4o-.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),Fbs=dm((()=>jd((()=>import("./OAuthConsentScreen-D8WvwiVN.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Rbs=()=>{const e=Wg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=kbs("/",n);return on.jsx(VCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function zbs(){const{isOpen:e}=ok(),n=Ydi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Xje(),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 Nbs=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=vr.isSignedIn(),r=Nr((j=>_p(j))),s=vr.getSignedInUser(),l=i&&Kz(s),c=Nr((j=>mcn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Mp(),p=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Qon(),g=l$e(),[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}=ts(),{isFeatureEnabled:A}=C(Sl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(gcn())}),[u,h]);const S=Wg().pathname.includes("/collect-payment/"),k=on.jsx(_bs,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(HWe,{children:on.jsx(F3t,{children:on.jsx(Y8e.Provider,{value:w,children:k})})});const $=on.jsxs(Y8e.Provider,{value:w,children:[on.jsx(zbs,{}),on.jsxs(Ubs,{children:[on.jsx($bs,{tenantEmailDomain:e}),on.jsx(Vbs,{children:k})]})]});return on.jsx(HWe,{children:r.tenantId!=null?on.jsx(Aga,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(F3t,{children:$})})},_bs=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Nr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=ts(),{configValue:c}=l(e5.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}=n$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Xje();return m.useEffect((()=>{h(Gon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(Sbs,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(ean,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(Tbs,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(Lbs,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx(Bbs,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(bCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(jbs,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(Rbs,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(Mbs,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(Qbs,{children:on.jsxs(O6s,{children:[on.jsxs(Ybs,{children:[s!=null?on.jsx(ybs,{}):null,n?on.jsx(yCt,{setTenantEmailDomain:e}):on.jsx(x5e,{children:on.jsx(yCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(h6s,{}),on.jsx(Gbs,{isOpen:g,children:on.jsx(lbs,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(x5e,{children:on.jsx(Ibs,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(x5e,{children:on.jsx(Dbs,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(Obs,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(Ebs,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(Pbs,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(Fbs,{})}),on.jsx(q1,{path:"*",element:on.jsx(bCt,{})})]})})})},Vbs=({children:e})=>{const{isOpen:n,width:i}=ok();return on.jsx(Wbs,{commentsDrawerWidth:n?i:0,children:e})},Hbs=BS("div")`
92580
+ `,ybs=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser())),i=Mp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Nr((g=>YAt(g).fetchState)),u=Nr((g=>_p(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=vr.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(hcn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(Eve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(fbs,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},mCt="init-enter",bbs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||mCt);wbs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||mCt,c=Cbs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),wbs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),Cbs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},dm=e=>m.lazy((async()=>{const n=e.toString(),i=vr.getForceRefreshedComponents(),r=new Set(i),s=vr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&vr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),ljs=(e,n,i)=>{const r=awe(e),s=dte(e),l=swe(i,e);return(n||i||s||r||l)&&owe(e.company)},yrn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),brn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),wrn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),Crn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(yrn||brn||wrn||Crn)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 vD(...e){const n=Ul==="DEV"||Ul==="QA";if(yrn||brn||wrn||Crn)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 mE=null,uO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function gCt(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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const Abs={dashboard:function(e){return[...gCt()]},reports:gCt,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:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Cc}/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:`${Cc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Cc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Cc}/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:`${Cc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Cc}/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:`${Cc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Cc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function fCt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,Abs[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return wc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function xCt(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?(wc("[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 vD("[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);wc("[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)=>{wc(`[Prefetch Manager - Service Worker] ${p+1}. [${u.priority}] ${u.reason} - ${u.url}`),wc(` URL: ${u.url}`)}));const c=fte(),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}}),wc("[Prefetch Manager - Service Worker] ✅ Prefetch request sent to Service Worker")}catch(r){vD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else vD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function vbs({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),A=Wg(),S=vr.getSignedInUser(),{useFeatureGate:k}=ts(),{isFeatureEnabled:$}=k(Sl.isReferralFeatureEnabled),j=Ln(),I=Ry(j?.loggedInUserRole??[]),E=Nr((_=>_p(_))),{isFeatureEnabled:D}=k(Sl.isDebitCardFeatureEnabled),L=swe(D,E),F=awe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void wc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);wc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{xCt(_,r,s).catch((M=>{vD(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,A.pathname]),m.useEffect((()=>{y(!1)}),[i,A.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[A.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;wc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;wc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{uO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),uO=!1),mE&&clearTimeout(mE),mE=setTimeout((()=>{uO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),uO=!0,M())}),T)},H=["mousedown","mousemove","keypress","scroll","touchstart","click"];return H.forEach((V=>{document.addEventListener(V,O,!0)})),O(),()=>{wc("[Idle Detection - Service Worker] 🛑 Stopping Idle Detection - Service Worker"),mE&&(clearTimeout(mE),mE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),uO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(wc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),xCt(z,r,s).catch((M=>{vD(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] Idle prefetch failed:`,M)})),w(!0)):wc(`[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,S,i,b,n,u,p,$,I,N,E.companyId,g,r,s]),m.useEffect((()=>{w(!1)}),[i]),m.useEffect((()=>{(function(){const _=performance.getEntriesByType("navigation");if(_.length>0)return _[0].type==="reload";const z=performance.navigation;return!(!z||typeof z.type!="number")&&z.type===1})()&&f&&(wc("[Prefetch Provider] 🔄 Page refresh detected - will bypass cache for fresh data"),(async function(){if("serviceWorker"in navigator)try{const _=await navigator.serviceWorker.ready,z=navigator.serviceWorker.controller||_.active;if(!z)return;wc("[Prefetch Provider] 🔄 Page refresh detected, notifying service worker to bypass cache"),z.postMessage({type:"PAGE_REFRESH",payload:{timestamp:Date.now()}})}catch(_){vD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function Sbs({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Wg(),u=Nr((y=>_p(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}=ts(),{isFeatureEnabled:x}=f(Sl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(vbs,{currentPage:p,tenantId:g,delay:5e3,enabled:x,batchCalls:i,enableIdlePrefetch:r,expirationTime:s,idleTimeout:l,isRefreshTriggerEnabled:c,isPageIndependent:n,children:e}):on.jsx(on.Fragment,{children:e})}function kbs(e,n){const i=Ni.extractUtmParamsFromUrl(n),r=new URLSearchParams(i).toString();if(!r)return e;const s=e.includes("?")?"&":"?";return`${e}${s}${r}`}const jbs=dm((()=>jd((()=>import("./DefaultTenantHome-DmRqFqlc.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),$bs=dm((()=>jd((()=>import("./AppDrawer-Bxmzf_KR.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),yCt=dm((()=>jd((()=>import("./ScreenRoutes-vTLuTGuW.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),Ebs=dm((()=>jd((()=>import("./ConnectionAuthScreen-CrQ3LZFB.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),Ibs=dm((()=>jd((()=>import("./SignInScreen-ColMnPgQ.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),Dbs=dm((()=>jd((()=>import("./MagicLinkSignInScreen-IXnuvHt3.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),bCt=dm((()=>jd((()=>import("./NotFoundScreen-C94S-cmy.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),Tbs=dm((()=>jd((()=>import("./MagicLinkRoutes-BQns5k2S.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),Lbs=dm((()=>jd((()=>import("./PaymentLinkScreen-BADSNyXp.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),Bbs=dm((()=>jd((()=>import("./WiseConfirmationScreen-CkFHmO99.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),Pbs=dm((()=>jd((()=>import("./HubSpotOAuthCallbackScreen-BjEMURaY.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),Mbs=dm((()=>jd((()=>import("./CustomerOnboardingAuthScreen-BUiUC1A4.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),Obs=dm((()=>jd((()=>import("./SignOutScreen-DILD5ueP.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),Fbs=dm((()=>jd((()=>import("./OAuthConsentScreen-35XPz7Vp.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Rbs=()=>{const e=Wg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=kbs("/",n);return on.jsx(VCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function zbs(){const{isOpen:e}=ok(),n=Ydi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Xje(),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 Nbs=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=vr.isSignedIn(),r=Nr((j=>_p(j))),s=vr.getSignedInUser(),l=i&&Kz(s),c=Nr((j=>mcn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Mp(),p=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Qon(),g=l$e(),[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}=ts(),{isFeatureEnabled:A}=C(Sl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(gcn())}),[u,h]);const S=Wg().pathname.includes("/collect-payment/"),k=on.jsx(_bs,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(HWe,{children:on.jsx(F3t,{children:on.jsx(Y8e.Provider,{value:w,children:k})})});const $=on.jsxs(Y8e.Provider,{value:w,children:[on.jsx(zbs,{}),on.jsxs(Ubs,{children:[on.jsx($bs,{tenantEmailDomain:e}),on.jsx(Vbs,{children:k})]})]});return on.jsx(HWe,{children:r.tenantId!=null?on.jsx(Aga,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(F3t,{children:$})})},_bs=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Nr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=ts(),{configValue:c}=l(e5.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}=n$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Xje();return m.useEffect((()=>{h(Gon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(Sbs,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(ean,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(Tbs,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(Lbs,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx(Bbs,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(bCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(jbs,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(Rbs,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(Mbs,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(Qbs,{children:on.jsxs(O6s,{children:[on.jsxs(Ybs,{children:[s!=null?on.jsx(ybs,{}):null,n?on.jsx(yCt,{setTenantEmailDomain:e}):on.jsx(x5e,{children:on.jsx(yCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(h6s,{}),on.jsx(Gbs,{isOpen:g,children:on.jsx(lbs,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(x5e,{children:on.jsx(Ibs,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(x5e,{children:on.jsx(Dbs,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(Obs,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(Ebs,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(Pbs,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(Fbs,{})}),on.jsx(q1,{path:"*",element:on.jsx(bCt,{})})]})})})},Vbs=({children:e})=>{const{isOpen:n,width:i}=ok();return on.jsx(Wbs,{commentsDrawerWidth:n?i:0,children:e})},Hbs=BS("div")`
92581
92581
  display:flex;
92582
92582
  `,Ubs=BS("div")`
92583
92583
  display: flex;
@@ -92699,4 +92699,4 @@ ${JM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
92699
92699
  }
92700
92700
  `,h9s=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(l9s,{style:n,children:[on.jsxs(c9s,{children:[on.jsx(uq,{children:on.jsx(U0,{width:96,height:20})}),on.jsxs(uq,{children:[on.jsx(U0,{width:55,height:12}),on.jsx(U0,{width:78,height:16}),on.jsx(U0,{width:46,height:16})]}),on.jsxs(uq,{children:[on.jsx(U0,{width:55,height:12}),on.jsx(U0,{width:110,height:16}),on.jsx(U0,{width:84,height:16})]}),on.jsxs(uq,{children:[on.jsx(U0,{width:55,height:12}),on.jsx(U0,{width:84,height:16}),on.jsx(U0,{width:64,height:16})]})]}),on.jsxs(d9s,{children:[on.jsxs(u9s,{children:[on.jsx(U0,{width:106,height:27}),on.jsx(U0,{width:111,height:32})]}),on.jsx(p9s,{children:on.jsx(s9s,{width:96,height:96})})]})]}):null;function m9s({minDisplayTime:e=0}){const{isLoading:n}=n$e(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),vr.isSignedIn()===!1&&document.querySelector("#app-shell-loader")?.remove(),n)i||(r(!0),l.current=Date.now());else if(!n&&i){document.querySelector("#app-shell-loader")?.remove();const c=l.current;if(c!=null){const d=Date.now()-c,u=Math.max(0,e-d);s.current=setTimeout((()=>{r(!1),l.current=null}),u)}else r(!1)}}),[n,i,e]),m.useEffect((()=>()=>{s.current&&clearTimeout(s.current)}),[]),!n&&i||!i?null:on.jsx(h9s,{fetchState:"In-Progress"})}const g9s=()=>{const[e,n]=m.useState((()=>vr.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(vr.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},ACt="missing-receipts-batch-completed";let q8e=null,K8e=!1;function djs(e,n){if(!n)return q8e=null,void(K8e=!1);q8e=e,K8e=!0}const f9s=()=>{const e=Mp(),{useFeatureGate:n}=ts(),{isFeatureEnabled:i}=n(Sl.isReconV3Enabled),r=Nr((l=>GAt(l)?.reconciliation?.accountReconciliationsByAccountID)),s=m.useRef({});m.useEffect((()=>{i===!0&&r!=null&&Object.entries(r).forEach((([l,c])=>{const d=c.statementParseStatus.fetchState,u=s.current[l]??"Not-Started";c.statementProcessingDismissedToBackground!==!0||(function(p){return K8e&&q8e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(HAt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:vls(c)},{variableName:"_transaction_count_",variableValue:String(Sls(c))}]})),s.current[l]=d}))}),[r,e,i])},vCt="reconciliation-status-updated",SCt="statement-status-updated",kCt="combined-statement-group-updated";function x9s(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function y9s(e,n,i,r,s,l){const c=i.account_id;if(c==null||c==="")return;const d=i.new_statement_data_status?.code;if(d==="deleting"||(e(qAt(n,c,!0,!0)),r!==!0))return;const u=i.statement_upload_id,p=u!=null&&u!=="",h=d==="parsed_awaiting_mapping"&&s===!0&&p===!0,g=d==="processed"&&p===!0&&(s!==!0||(function(f,x,y){return f!=null&&Object.values(f.accountReconciliationsByAccountID).some((b=>{const w=b.confirmedCombinedStatementUploads;if((w?.length??0)===0)return!1;const C=y!=null&&y!==""&&w?.some((S=>S.statementUploadId===y))===!0,A=w?.some((S=>S.accountId===x))===!0;return C===!0||A===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(wcn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(KAt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function b9s(e,n,i,r,s,l){if(r!==!0||s!==!0)return;const c=i.group_status;if(c!=="processed"&&c!=="processing_failed")return;const d=(function(u,p){const h=p.combined_statement_group_id?.trim();if(u==null||h==null||h==="")return;const g=p.statement_upload_id?.trim()??"",f=Object.entries(u.accountReconciliationsByAccountID),x=(y,b)=>{const w=(function(C,A){return A!==""?A:C.confirmedCombinedStatementUploads?.find((S=>S.isCombinedStatementAnchor===!0))?.statementUploadId??C.confirmedCombinedStatementUploads?.[0]?.statementUploadId??C.accountReconEntity.statementMetaData?.statementUploadId??C.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??""})(b,g);if(w!=="")return{accountId:y,combinedStatementGroupId:h,statementUploadId:w}};for(const[y,b]of f){if(x9s(b)!==h)continue;const w=x(y,b);if(w!=null)return w}for(const[y,b]of f){const w=(b.confirmedCombinedStatementUploads?.length??0)>0,C=b.localData?.statementAccountScope==="multi_account";if(w!==!0&&C!==!0)continue;const A=x(y,b);if(A!=null)return A}})(l,i);d!=null&&(e(qAt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?Ccn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):KAt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function w9s(){let e=CCt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(Kx)}`);const n=vr.getSignedInUser(),i=n!=null?(function(){const l=window.location.pathname.split("/").filter(Boolean)[0],c=["signin","signout"];if(l!=null&&!c.includes(l)){const u=vr.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return vr.getActiveTenantForUser()?.tenantId})():void 0,r=Scn(Kx,n?.userId,n?.zeniSessionId,i,CD(),v9s);k5e();const s=fte();return s.userId!=null&&Gm.identify(s.userId,{tenant_id:s.tenantId}),r})(),vrn=e,k5e().then((()=>{const n=CCt();n!=null&&(yb.reset(),r9s(n))})).catch((n=>{console.error("Failed to load feature epics:",n),Brn(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
92701
92701
 
92702
- Please refresh the page to try again.`)}))),e}se.updateAppLocaleID("en");const pq=new Acn,jCt=()=>{const e=Mp(),n=vr.getSignedInUser(),i=Nr((L=>_p(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=ts(),{configValue:N,isDynamicConfigLoading:_}=F(eAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return hQ;const T=ppt(N.users_disabled_for_auto_logout),M=ppt(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),V=!H&&M.includes(L);return{heartbeatIntervalMinutes:T2e(N.heartbeat_interval_minutes,hQ.heartbeatIntervalMinutes),idleTimeoutMinutes:T2e(N.idle_timeout_minutes,hQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:T2e(N.warning_duration_seconds,hQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(Dve,"auto-logout"),sessionStorage.setItem(Tve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(Lve,String(Date.now())),HF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(gzt(),HF=void 0),s(null),pq.stop(),e(kcn()),e(jcn(!1)),vr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return pq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e($cn()),onWarningStart:L=>{Gm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Gm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>pq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Nr((L=>Ecn(L,i.companyId))),u=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(B$e())}),[]);const h=Nr((L=>Icn(L)));(()=>{const L=ete(),F=Mp(),{useFeatureGate:N}=ts(),{isFeatureEnabled:_}=N(Sl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=vr.getSignedInUser()?.userId;if(z==null)return;const T=AD(L,z),M=O=>{F(bcn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(ACt,M),()=>{T.unbind(ACt,M)}}),[L,F,_])})(),(()=>{const L=ete(),F=Mp(),{useFeatureGate:N}=ts(),{isFeatureEnabled:_}=N(Sl.isReconV3Enabled),{isFeatureEnabled:z}=N(Sl.isReconciliationCombinedStatementEnabled),T=Nr((G=>_p(G)?.companyId)),M=Nr((G=>GAt(G))),O=M?.selectedPeriod,H=M?.reconciliation,V=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||V==null||W==null)return;const G={month:V,year:W},q=AD(L,T),K=ee=>{y9s(F,G,ee??{},_===!0,z===!0,U.current)},J=ee=>{b9s(F,G,ee??{},_===!0,z===!0,U.current)};return q.bind(vCt,K),q.bind(SCt,K),q.bind(kCt,J),()=>{q.unbind(vCt,K),q.unbind(SCt,K),q.unbind(kCt,J)}}),[L,F,_,z,T,V,W])})(),f9s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Dcn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(Tcn(F))}},y=m.useMemo((()=>vr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=ts(),{isFeatureEnabled:C}=w(Sl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(Sl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(Sl.isInvoicingFeatureEnabled),k=W3a(),$=i?.userRole!=null&&Cs(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&iAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>o9s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Gm,sentry:Prn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(oVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(K_n,{toolkit:D,children:on.jsxs(a_n,{endPoint:{url:Kje},children:[on.jsx(vsr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(B$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(qbs,{...x})]})}),r!=null&&n!=null?on.jsx(W7s,{secondsRemaining:r,onContinueSession:()=>{Gm.trackSessionTimeoutClicked("continue",r),pq.continueSession()},onSignOut:()=>{Gm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},C9s=()=>{const e=vr.isSignedIn(),n=Nr((u=>_p(u))).companyId,i=Nr((u=>vcn(u.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=m.useMemo((()=>n?vr.getConnectedAccountProvider(n):void 0),[n]),s=i!==void 0?i??"":r;m.useEffect((()=>{n&&i!==void 0&&vr.saveConnectedAccountProvider(n,i??"")}),[n,i]);const l=g9s(),c=m.useMemo((()=>({companyId:n,connectedAccountProvider:s,userId:l?.userId})),[n,s,l?.userId]),d=m.useMemo((()=>({currentFeatureEnv:oCt,featureClientSecret:bs.featureClientSecret,providerEndPoint:Yz.statsigBaseUrl,nonBlockingInit:bs.statsigNonBlockingInit})),[oCt,bs.featureClientSecret,bs.statsigNonBlockingInit,Yz.statsigBaseUrl]);return n?on.jsx(NWn,{isUserSignedIn:e,featureGateCustomFields:c,zeniFeatureConfig:d,children:on.jsx(jCt,{})}):on.jsx(jCt,{})},A9s=Lrn((function(){const e=m.useMemo((()=>w9s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{k5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),on.jsx(Kbs,{children:on.jsx(tan,{store:e,children:on.jsx(a9s,{value:n,children:on.jsxs(g6s,{children:[on.jsx(m9s,{}),on.jsx(fbn,{children:on.jsx(U6s,{children:on.jsxs(G_n,{children:[r?on.jsx(Gci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(C9s,{})]})})})]})})})})}));function v9s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const S9s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$Ct=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function ECt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const krn="zeni:env-keys:",tte=`${krn}${Ul}:5.4.11-dev-53c6de4c2`,ICt="zeni.ai";function k9s(e){return jrn(e)}function DCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(k9s)}const y5e="o4504609050525696",j9s={SENTRY_DSN:[`${y5e}.ingest.sentry.io`,`${y5e}.ingest.us.sentry.io`,`${y5e}.ingest.de.sentry.io`],QBO_URL:["app.qbo.intuit.com","app.sandbox.qbo.intuit.com"],MIXPANEL_URL:["mixpanel.com","api.mixpanel.com"],MIXPANEL_HM_URL:["mixpanel.com","api.mixpanel.com"]},$9s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,E9s=["WEB_ENDPOINT"];function jrn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===ICt||n.hostname.endsWith(`.${ICt}`))}const I9s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],D9s=/^[A-Za-z0-9_-]+$/,T9s=Object.keys({accountMicroServiceBaseUrl:!0,agentPerfBaseUrl:!0,aiCfoMicroServiceBaseUrl:!0,approvalMicroServiceBaseUrl:!0,authMicroServiceBaseUrl:!0,bankingMicroServiceBaseUrl:!0,cardMicroServiceBaseUrl:!0,communicationAgentMicroServiceBaseUrl:!0,documentAIMicroServiceBaseUrl:!0,fileMicroServiceBaseUrl:!0,insightsMicroServiceBaseUrl:!0,invoicingMicroServiceBaseUrl:!0,noAuthMicroServiceBaseUrl:!0,notificationMicroServiceBaseUrl:!0,payMicroServiceBaseUrl:!0,reconciliationMicroServiceBaseUrl:!0,searchMicroServiceBaseUrl:!0,spendManagementMicroServiceBaseUrl:!0,taskMicroServiceBaseUrl:!0,tenantMicroServiceBaseUrl:!0}),L9s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),B9s=/^pk_(live|test)_[A-Za-z0-9]+$/,P9s=/^[A-Za-z0-9_.-]+$/,M9s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function O9s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!DCt(n.apiEndPoints)||!DCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(T9s.some((h=>i[h]==null))||L9s.some((h=>r[h]==null)))return!1;const s=n.keys;if(typeof s!="object"||s==null||Array.isArray(s))return!1;const l=s,c=Object.entries(j9s).every((([h,g])=>{const f=l[h];return f==null||(function(x,y){if(typeof x!="string"||x.length===0)return!1;let b;try{b=new URL(x)}catch{return!1}return b.protocol==="https:"&&y.includes(b.hostname)})(f,g)})),d=I9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&D9s.test(g)})),u=E9s.every((h=>{const g=l[h];return g==null||(function(f){if(jrn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&$9s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&B9s.test(l.STRIPE_KEY))&&M9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&P9s.test(g)}));return c&&d&&u&&p}function b5e(){try{window.localStorage.removeItem(tte)}catch{}}function F9s(e){try{window.localStorage.setItem(tte,JSON.stringify({payload:e,storedAt:Date.now()})),(function(){try{const n=[];for(let i=0;i<window.localStorage.length;i+=1){const r=window.localStorage.key(i);r!=null&&r.startsWith(krn)&&r!==tte&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function $rn(e){if(e==null||e==="")return null;try{const n=JSON.parse($on(e,Eon+Ul));return O9s(n)?n:null}catch{return null}}function TCt(e){return $rn(e)!=null&&(F9s(e),!0)}const LCt="zeni-chunk-reload-at",R9s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function BCt(e){try{const n=Number(sessionStorage.getItem(LCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(LCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let w5e=!1,PCt=null;const MCt="//js.hs-scripts.com/5991084.js",OCt="hs-script-loader",z9s=vr.getSignedInUser(),N9s=z9s?.zeniSessionId;function _9s(){const e=()=>{const n=bs.sentryDsn?.trim();if(!n)return;const i=bs.sentryProfileSamplingRate>0,r=Ul==="PROD";Mrn({dsn:n,environment:a6s,tracesSampleRate:bs.sentryTraceSamplingRate,profilesSampleRate:i?bs.sentryProfileSamplingRate:0,integrations:[Orn(),...i?[Frn()]:[],...r?[Rrn({maskAllText:!0,blockAllMedia:!0})]:[]],replaysSessionSampleRate:0,replaysOnErrorSampleRate:r?1:0,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter((l=>l.category!=="console"?!0:!(l.message??"").toLowerCase().includes("called people set")&&(!Array.isArray(l.data?.arguments)||!l.data.arguments.some((c=>typeof c=="string"&&c.toLowerCase().includes("called people set"))))&&(Array.isArray(l.data?.arguments)&&(l.data.arguments=l.data.arguments.map((c=>{if(typeof c=="string"&&c.includes("user_roles"))try{const d=c.match(/\{.*\}/s);if(d!==null){const u=JSON.parse(d[0]);if(u.user_roles!=null)return delete u.user_roles,c.replace(d[0],JSON.stringify(u))}}catch{}return c}))),!0)))),s)}),zrn("session-id",N9s),(function(){if(WK==null)return;const s=WK;WK=void 0;try{if(window.sessionStorage.getItem(FCt)!=null)return;window.sessionStorage.setItem(FCt,s)}catch{}Nrn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.11-dev-53c6de4c2"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function Ern(){tdn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(nan,{children:on.jsx(A9s,{})})})),_9s()}let WK;function Z8e(e){WK=e}const FCt="zeni:env-keys-rejection-reported";function V9s(){const e=(function(){try{const i=window.localStorage.getItem(tte);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return b5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(b5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=$rn(e);return n==null?(Z8e("untrusted-or-unreadable"),b5e(),!1):(Don(n),Ern(),!0)}var eA;window.addEventListener("vite:preloadError",(e=>{const n=e;BCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return R9s.some((r=>i.includes(r)))})(e.reason)&&BCt(e.reason)})),(async function(){try{if(V9s())return void(async function(){const i=await rCt();typeof i=="string"&&i.length>0&&!TCt(i)&&Z8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await rCt(),n=$on(e,Eon+Ul);Don(JSON.parse(n)),TCt(e)||Z8e("network-untrusted-payload"),Ern()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):PCt!==null||(PCt=new Promise((e=>{if(w5e)return void e(!0);const n=()=>{w5e?e(!0):(w5e=!0,new Promise(((r,s)=>{if(document.getElementById(OCt))return void r();const l=document.createElement("script");l.id=OCt,l.src=MCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${MCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;S9s?(e=$Ct,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):ECt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):ECt($Ct)}))}})(),(eA=console.log)&&eA instanceof Function&&jd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(eA),n(eA),i(eA),r(eA),s(eA)}));export{i8s as $,q6s as A,_Bi as B,tjs as C,Yks as D,ijs as E,Y6s as F,se as G,d$e as H,K6s as I,sjs as J,o as K,Gon as L,Hve as M,dm as N,CYi as O,Zks as P,LWn as Q,r9s as R,Ni as S,Aws as T,CCt as U,Ln as V,q8s as W,bs as X,vws as Y,h9s as Z,Kn as _,Xje as a,cvs as a$,fe as a0,OAs as a1,Mfi as a2,Kks as a3,FAs as a4,RAs as a5,hbs as a6,$ve as a7,s9s as a8,mqo as a9,qCs as aA,Uko as aB,Sws as aC,gAs as aD,mAs as aE,r5 as aF,BGt as aG,fAs as aH,r8s as aI,ete as aJ,W6s as aK,uvs as aL,pvs as aM,G8s as aN,WAs as aO,XCs as aP,nAs as aQ,nke as aR,GAs as aS,YAs as aT,tAs as aU,eAs as aV,Y8s as aW,yOt as aX,Dks as aY,dvs as aZ,svs as a_,R as aa,zAs as ab,jks as ac,Kx as ad,P as ae,o8s as af,CAs as ag,iws as ah,yAs as ai,Cws as aj,Qks as ak,jws as al,P6s as am,urn as an,Xks as ao,F6s as ap,M6s as aq,ejs as ar,uws as as,Bp as at,Kje as au,pCt as av,ISs as aw,Vvs as ax,Di as ay,KCs as az,kbs as b,ICs as b$,lvs as b0,wws as b1,qks as b2,bws as b3,QCs as b4,hAs as b5,Vi as b6,K_n as b7,bAs as b8,G8o as b9,FAe as bA,g8s as bB,DSs as bC,JCs as bD,x8s as bE,y8s as bF,f8s as bG,CD as bH,QAs as bI,pCs as bJ,mCs as bK,hCs as bL,cCs as bM,lCs as bN,gCs as bO,NAs as bP,dCs as bQ,uCs as bR,xCs as bS,Ms as bT,mvs as bU,_As as bV,kCs as bW,vCs as bX,Nks as bY,uAs as bZ,Pks as b_,kws as ba,QEi as bb,e_t as bc,HAs as bd,VAs as be,UAs as bf,ews as bg,In as bh,ba as bi,lrn as bj,e5 as bk,Gks as bl,obs as bm,dws as bn,pws as bo,fvs as bp,Jje as bq,u6s as br,K8s as bs,KMi as bt,zBt as bu,$ws as bv,V6s as bw,jCs as bx,m8s as by,b8s as bz,Sl as c,lAs as c$,ECs as c0,_Cs as c1,NCs as c2,WCs as c3,UCs as c4,yCs as c5,bCs as c6,xAs as c7,wAs as c8,wCs as c9,sks as cA,MSs as cB,kks as cC,NSs as cD,wks as cE,QSs as cF,lt as cG,zSs as cH,zi as cI,hks as cJ,_Ss as cK,WSs as cL,mks as cM,iks as cN,oks as cO,rks as cP,nks as cQ,aks as cR,tks as cS,v8s as cT,YCs as cU,GCs as cV,TSs as cW,SCs as cX,Uks as cY,Mks as cZ,rAs as c_,CCs as ca,ACs as cb,HCs as cc,VCs as cd,Cks as ce,bks as cf,VSs as cg,KSs as ch,HSs as ci,PSs as cj,FSs as ck,gks as cl,YSs as cm,cks as cn,dks as co,lks as cp,RSs as cq,USs as cr,Sks as cs,Aks as ct,vks as cu,fks as cv,GSs as cw,yks as cx,xks as cy,qSs as cz,g9s as d,Nen as d$,aAs as d0,s8s as d1,iAs as d2,oAs as d3,Eve as d4,cAs as d5,pAs as d6,Q0s as d7,o3s as d8,Hxe as d9,xvs as dA,Avs as dB,Pvs as dC,C8s as dD,A8s as dE,Ovs as dF,Lvs as dG,Tvs as dH,bvs as dI,Bvs as dJ,hvs as dK,wga as dL,kSs as dM,ESs as dN,BSs as dO,LSs as dP,$ks as dQ,vls as dR,u8s as dS,Lks as dT,Tks as dU,djs as dV,Css as dW,kKi as dX,ZCs as dY,Ydi as dZ,ok as d_,_ks as da,Vks as db,Hks as dc,zks as dd,tws as de,Hqt as df,Ivs as dg,Evs as dh,jvs as di,Dvs as dj,$vs as dk,Oks as dl,kvs as dm,Svs as dn,Mvs as dp,yvs as dq,Cvs as dr,w8s as ds,sAs as dt,cr as du,SGr as dv,wvs as dw,prn as dx,gvs as dy,vvs as dz,l$e as e,Wks as e0,Nxo as e1,Iks as e2,$Cs as e3,Bks as e4,Als as e5,ASs as e6,_vs as e7,Nvs as e8,zvs as e9,A6s as ea,v6s as eb,iz as ec,H6s as ed,Z6s as ee,Pon as ef,rbs as eg,qye as eh,oon as ei,ion as ej,d8s as ek,b6s as el,C6s as em,w6s as en,s6s as eo,f6s as ep,Lon as eq,Jks as er,W3a as f,WFt as g,cjs as h,njs as i,ljs as j,c8s as k,Wt as l,Gm as m,$T as n,l8s as o,ts as p,v as q,ajs as r,X8s as s,yb as t,n$e as u,rjs as v,mrn as w,ojs as x,Eci as y,vr as z};
92702
+ Please refresh the page to try again.`)}))),e}se.updateAppLocaleID("en");const pq=new Acn,jCt=()=>{const e=Mp(),n=vr.getSignedInUser(),i=Nr((L=>_p(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=ts(),{configValue:N,isDynamicConfigLoading:_}=F(eAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return hQ;const T=ppt(N.users_disabled_for_auto_logout),M=ppt(N.users_enabled_for_auto_logout),O=N.is_inactivity_based_logout_feature_enabled===!0,H=T.includes(L),V=!H&&M.includes(L);return{heartbeatIntervalMinutes:T2e(N.heartbeat_interval_minutes,hQ.heartbeatIntervalMinutes),idleTimeoutMinutes:T2e(N.idle_timeout_minutes,hQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:T2e(N.warning_duration_seconds,hQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(Dve,"auto-logout"),sessionStorage.setItem(Tve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(Lve,String(Date.now())),HF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(gzt(),HF=void 0),s(null),pq.stop(),e(kcn()),e(jcn(!1)),vr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return pq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e($cn()),onWarningStart:L=>{Gm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Gm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>pq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Nr((L=>Ecn(L,i.companyId))),u=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(B$e())}),[]);const h=Nr((L=>Icn(L)));(()=>{const L=ete(),F=Mp(),{useFeatureGate:N}=ts(),{isFeatureEnabled:_}=N(Sl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=vr.getSignedInUser()?.userId;if(z==null)return;const T=AD(L,z),M=O=>{F(bcn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(ACt,M),()=>{T.unbind(ACt,M)}}),[L,F,_])})(),(()=>{const L=ete(),F=Mp(),{useFeatureGate:N}=ts(),{isFeatureEnabled:_}=N(Sl.isReconV3Enabled),{isFeatureEnabled:z}=N(Sl.isReconciliationCombinedStatementEnabled),T=Nr((G=>_p(G)?.companyId)),M=Nr((G=>GAt(G))),O=M?.selectedPeriod,H=M?.reconciliation,V=O?.month,W=O?.year,U=m.useRef(H);U.current=H,m.useEffect((()=>{if(L==null||T==null||V==null||W==null)return;const G={month:V,year:W},q=AD(L,T),K=ee=>{y9s(F,G,ee??{},_===!0,z===!0,U.current)},J=ee=>{b9s(F,G,ee??{},_===!0,z===!0,U.current)};return q.bind(vCt,K),q.bind(SCt,K),q.bind(kCt,J),()=>{q.unbind(vCt,K),q.unbind(SCt,K),q.unbind(kCt,J)}}),[L,F,_,z,T,V,W])})(),f9s();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>Dcn(i.userRole)),[i.userRole]),x={events:i.userRoleId!=null?[`private-encrypted-${i.userRoleId}.toast-message-user-notification`]:[],eventCallback:(L,F)=>{var N;N=F,N?.data!=null&&e(Tcn(F))}},y=m.useMemo((()=>vr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=ts(),{isFeatureEnabled:C}=w(Sl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(Sl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(Sl.isInvoicingFeatureEnabled),k=W3a(),$=i?.userRole!=null&&Cs(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&iAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>o9s(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Gm,sentry:Prn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(oVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(K_n,{toolkit:D,children:on.jsxs(a_n,{endPoint:{url:Kje},children:[on.jsx(vsr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(B$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(qbs,{...x})]})}),r!=null&&n!=null?on.jsx(W7s,{secondsRemaining:r,onContinueSession:()=>{Gm.trackSessionTimeoutClicked("continue",r),pq.continueSession()},onSignOut:()=>{Gm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},C9s=()=>{const e=vr.isSignedIn(),n=Nr((u=>_p(u))).companyId,i=Nr((u=>vcn(u.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=m.useMemo((()=>n?vr.getConnectedAccountProvider(n):void 0),[n]),s=i!==void 0?i??"":r;m.useEffect((()=>{n&&i!==void 0&&vr.saveConnectedAccountProvider(n,i??"")}),[n,i]);const l=g9s(),c=m.useMemo((()=>({companyId:n,connectedAccountProvider:s,userId:l?.userId})),[n,s,l?.userId]),d=m.useMemo((()=>({currentFeatureEnv:oCt,featureClientSecret:bs.featureClientSecret,providerEndPoint:Yz.statsigBaseUrl,nonBlockingInit:bs.statsigNonBlockingInit})),[oCt,bs.featureClientSecret,bs.statsigNonBlockingInit,Yz.statsigBaseUrl]);return n?on.jsx(NWn,{isUserSignedIn:e,featureGateCustomFields:c,zeniFeatureConfig:d,children:on.jsx(jCt,{})}):on.jsx(jCt,{})},A9s=Lrn((function(){const e=m.useMemo((()=>w9s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{k5e().then((()=>i(!0))).catch((()=>{}))}),[]);const l=m.useCallback((c=>{c.data?.type==="UPDATE_READY"?s(!0):c.data?.type==="HIDE_UPDATE_POPUP"&&s(!1)}),[]);return m.useEffect((()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),navigator.serviceWorker.addEventListener("controllerchange",(()=>{s(!1)}))),()=>{navigator.serviceWorker.removeEventListener("message",l)})),[l]),on.jsx(Kbs,{children:on.jsx(tan,{store:e,children:on.jsx(a9s,{value:n,children:on.jsxs(g6s,{children:[on.jsx(m9s,{}),on.jsx(fbn,{children:on.jsx(U6s,{children:on.jsxs(G_n,{children:[r?on.jsx(Gci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(C9s,{})]})})})]})})})})}));function v9s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const S9s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$Ct=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function ECt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const krn="zeni:env-keys:",tte=`${krn}${Ul}:5.4.12-dev-a74eb92ab`,ICt="zeni.ai";function k9s(e){return jrn(e)}function DCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(k9s)}const y5e="o4504609050525696",j9s={SENTRY_DSN:[`${y5e}.ingest.sentry.io`,`${y5e}.ingest.us.sentry.io`,`${y5e}.ingest.de.sentry.io`],QBO_URL:["app.qbo.intuit.com","app.sandbox.qbo.intuit.com"],MIXPANEL_URL:["mixpanel.com","api.mixpanel.com"],MIXPANEL_HM_URL:["mixpanel.com","api.mixpanel.com"]},$9s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,E9s=["WEB_ENDPOINT"];function jrn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===ICt||n.hostname.endsWith(`.${ICt}`))}const I9s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],D9s=/^[A-Za-z0-9_-]+$/,T9s=Object.keys({accountMicroServiceBaseUrl:!0,agentPerfBaseUrl:!0,aiCfoMicroServiceBaseUrl:!0,approvalMicroServiceBaseUrl:!0,authMicroServiceBaseUrl:!0,bankingMicroServiceBaseUrl:!0,cardMicroServiceBaseUrl:!0,communicationAgentMicroServiceBaseUrl:!0,documentAIMicroServiceBaseUrl:!0,fileMicroServiceBaseUrl:!0,insightsMicroServiceBaseUrl:!0,invoicingMicroServiceBaseUrl:!0,noAuthMicroServiceBaseUrl:!0,notificationMicroServiceBaseUrl:!0,payMicroServiceBaseUrl:!0,reconciliationMicroServiceBaseUrl:!0,searchMicroServiceBaseUrl:!0,spendManagementMicroServiceBaseUrl:!0,taskMicroServiceBaseUrl:!0,tenantMicroServiceBaseUrl:!0}),L9s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),B9s=/^pk_(live|test)_[A-Za-z0-9]+$/,P9s=/^[A-Za-z0-9_.-]+$/,M9s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function O9s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!DCt(n.apiEndPoints)||!DCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(T9s.some((h=>i[h]==null))||L9s.some((h=>r[h]==null)))return!1;const s=n.keys;if(typeof s!="object"||s==null||Array.isArray(s))return!1;const l=s,c=Object.entries(j9s).every((([h,g])=>{const f=l[h];return f==null||(function(x,y){if(typeof x!="string"||x.length===0)return!1;let b;try{b=new URL(x)}catch{return!1}return b.protocol==="https:"&&y.includes(b.hostname)})(f,g)})),d=I9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&D9s.test(g)})),u=E9s.every((h=>{const g=l[h];return g==null||(function(f){if(jrn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&$9s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&B9s.test(l.STRIPE_KEY))&&M9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&P9s.test(g)}));return c&&d&&u&&p}function b5e(){try{window.localStorage.removeItem(tte)}catch{}}function F9s(e){try{window.localStorage.setItem(tte,JSON.stringify({payload:e,storedAt:Date.now()})),(function(){try{const n=[];for(let i=0;i<window.localStorage.length;i+=1){const r=window.localStorage.key(i);r!=null&&r.startsWith(krn)&&r!==tte&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function $rn(e){if(e==null||e==="")return null;try{const n=JSON.parse($on(e,Eon+Ul));return O9s(n)?n:null}catch{return null}}function TCt(e){return $rn(e)!=null&&(F9s(e),!0)}const LCt="zeni-chunk-reload-at",R9s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function BCt(e){try{const n=Number(sessionStorage.getItem(LCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(LCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let w5e=!1,PCt=null;const MCt="//js.hs-scripts.com/5991084.js",OCt="hs-script-loader",z9s=vr.getSignedInUser(),N9s=z9s?.zeniSessionId;function _9s(){const e=()=>{const n=bs.sentryDsn?.trim();if(!n)return;const i=bs.sentryProfileSamplingRate>0,r=Ul==="PROD";Mrn({dsn:n,environment:a6s,tracesSampleRate:bs.sentryTraceSamplingRate,profilesSampleRate:i?bs.sentryProfileSamplingRate:0,integrations:[Orn(),...i?[Frn()]:[],...r?[Rrn({maskAllText:!0,blockAllMedia:!0})]:[]],replaysSessionSampleRate:0,replaysOnErrorSampleRate:r?1:0,beforeSendTransaction:s=>(s.breadcrumbs&&(s.breadcrumbs=s.breadcrumbs.filter((l=>l.category!=="console"?!0:!(l.message??"").toLowerCase().includes("called people set")&&(!Array.isArray(l.data?.arguments)||!l.data.arguments.some((c=>typeof c=="string"&&c.toLowerCase().includes("called people set"))))&&(Array.isArray(l.data?.arguments)&&(l.data.arguments=l.data.arguments.map((c=>{if(typeof c=="string"&&c.includes("user_roles"))try{const d=c.match(/\{.*\}/s);if(d!==null){const u=JSON.parse(d[0]);if(u.user_roles!=null)return delete u.user_roles,c.replace(d[0],JSON.stringify(u))}}catch{}return c}))),!0)))),s)}),zrn("session-id",N9s),(function(){if(WK==null)return;const s=WK;WK=void 0;try{if(window.sessionStorage.getItem(FCt)!=null)return;window.sessionStorage.setItem(FCt,s)}catch{}Nrn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.12-dev-a74eb92ab"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function Ern(){tdn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(nan,{children:on.jsx(A9s,{})})})),_9s()}let WK;function Z8e(e){WK=e}const FCt="zeni:env-keys-rejection-reported";function V9s(){const e=(function(){try{const i=window.localStorage.getItem(tte);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return b5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(b5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=$rn(e);return n==null?(Z8e("untrusted-or-unreadable"),b5e(),!1):(Don(n),Ern(),!0)}var eA;window.addEventListener("vite:preloadError",(e=>{const n=e;BCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return R9s.some((r=>i.includes(r)))})(e.reason)&&BCt(e.reason)})),(async function(){try{if(V9s())return void(async function(){const i=await rCt();typeof i=="string"&&i.length>0&&!TCt(i)&&Z8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await rCt(),n=$on(e,Eon+Ul);Don(JSON.parse(n)),TCt(e)||Z8e("network-untrusted-payload"),Ern()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):PCt!==null||(PCt=new Promise((e=>{if(w5e)return void e(!0);const n=()=>{w5e?e(!0):(w5e=!0,new Promise(((r,s)=>{if(document.getElementById(OCt))return void r();const l=document.createElement("script");l.id=OCt,l.src=MCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${MCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;S9s?(e=$Ct,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):ECt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):ECt($Ct)}))}})(),(eA=console.log)&&eA instanceof Function&&jd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(eA),n(eA),i(eA),r(eA),s(eA)}));export{i8s as $,q6s as A,_Bi as B,tjs as C,Yks as D,ijs as E,Y6s as F,se as G,d$e as H,K6s as I,sjs as J,o as K,Gon as L,Hve as M,dm as N,CYi as O,Zks as P,LWn as Q,r9s as R,Ni as S,Aws as T,CCt as U,Ln as V,q8s as W,bs as X,vws as Y,h9s as Z,Kn as _,Xje as a,cvs as a$,fe as a0,OAs as a1,Mfi as a2,Kks as a3,FAs as a4,RAs as a5,hbs as a6,$ve as a7,s9s as a8,mqo as a9,qCs as aA,Uko as aB,Sws as aC,gAs as aD,mAs as aE,r5 as aF,BGt as aG,fAs as aH,r8s as aI,ete as aJ,W6s as aK,uvs as aL,pvs as aM,G8s as aN,WAs as aO,XCs as aP,nAs as aQ,nke as aR,GAs as aS,YAs as aT,tAs as aU,eAs as aV,Y8s as aW,yOt as aX,Dks as aY,dvs as aZ,svs as a_,R as aa,zAs as ab,jks as ac,Kx as ad,P as ae,o8s as af,CAs as ag,iws as ah,yAs as ai,Cws as aj,Qks as ak,jws as al,P6s as am,urn as an,Xks as ao,F6s as ap,M6s as aq,ejs as ar,uws as as,Bp as at,Kje as au,pCt as av,ISs as aw,Vvs as ax,Di as ay,KCs as az,kbs as b,ICs as b$,lvs as b0,wws as b1,qks as b2,bws as b3,QCs as b4,hAs as b5,Vi as b6,K_n as b7,bAs as b8,G8o as b9,FAe as bA,g8s as bB,DSs as bC,JCs as bD,x8s as bE,y8s as bF,f8s as bG,CD as bH,QAs as bI,pCs as bJ,mCs as bK,hCs as bL,cCs as bM,lCs as bN,gCs as bO,NAs as bP,dCs as bQ,uCs as bR,xCs as bS,Ms as bT,mvs as bU,_As as bV,kCs as bW,vCs as bX,Nks as bY,uAs as bZ,Pks as b_,kws as ba,QEi as bb,e_t as bc,HAs as bd,VAs as be,UAs as bf,ews as bg,In as bh,ba as bi,lrn as bj,e5 as bk,Gks as bl,obs as bm,dws as bn,pws as bo,fvs as bp,Jje as bq,u6s as br,K8s as bs,KMi as bt,zBt as bu,$ws as bv,V6s as bw,jCs as bx,m8s as by,b8s as bz,Sl as c,lAs as c$,ECs as c0,_Cs as c1,NCs as c2,WCs as c3,UCs as c4,yCs as c5,bCs as c6,xAs as c7,wAs as c8,wCs as c9,sks as cA,MSs as cB,kks as cC,NSs as cD,wks as cE,QSs as cF,lt as cG,zSs as cH,zi as cI,hks as cJ,_Ss as cK,WSs as cL,mks as cM,iks as cN,oks as cO,rks as cP,nks as cQ,aks as cR,tks as cS,v8s as cT,YCs as cU,GCs as cV,TSs as cW,SCs as cX,Uks as cY,Mks as cZ,rAs as c_,CCs as ca,ACs as cb,HCs as cc,VCs as cd,Cks as ce,bks as cf,VSs as cg,KSs as ch,HSs as ci,PSs as cj,FSs as ck,gks as cl,YSs as cm,cks as cn,dks as co,lks as cp,RSs as cq,USs as cr,Sks as cs,Aks as ct,vks as cu,fks as cv,GSs as cw,yks as cx,xks as cy,qSs as cz,g9s as d,Nen as d$,aAs as d0,s8s as d1,iAs as d2,oAs as d3,Eve as d4,cAs as d5,pAs as d6,Q0s as d7,o3s as d8,Hxe as d9,xvs as dA,Avs as dB,Pvs as dC,C8s as dD,A8s as dE,Ovs as dF,Lvs as dG,Tvs as dH,bvs as dI,Bvs as dJ,hvs as dK,wga as dL,kSs as dM,ESs as dN,BSs as dO,LSs as dP,$ks as dQ,vls as dR,u8s as dS,Lks as dT,Tks as dU,djs as dV,Css as dW,kKi as dX,ZCs as dY,Ydi as dZ,ok as d_,_ks as da,Vks as db,Hks as dc,zks as dd,tws as de,Hqt as df,Ivs as dg,Evs as dh,jvs as di,Dvs as dj,$vs as dk,Oks as dl,kvs as dm,Svs as dn,Mvs as dp,yvs as dq,Cvs as dr,w8s as ds,sAs as dt,cr as du,SGr as dv,wvs as dw,prn as dx,gvs as dy,vvs as dz,l$e as e,Wks as e0,Nxo as e1,Iks as e2,$Cs as e3,Bks as e4,Als as e5,ASs as e6,_vs as e7,Nvs as e8,zvs as e9,A6s as ea,v6s as eb,iz as ec,H6s as ed,Z6s as ee,Pon as ef,rbs as eg,qye as eh,oon as ei,ion as ej,d8s as ek,b6s as el,C6s as em,w6s as en,s6s as eo,f6s as ep,Lon as eq,Jks as er,W3a as f,WFt as g,cjs as h,njs as i,ljs as j,c8s as k,Wt as l,Gm as m,$T as n,l8s as o,ts as p,v as q,ajs as r,X8s as s,yb as t,n$e as u,rjs as v,mrn as w,ojs as x,Eci as y,vr as z};