@zeniai/web-app-ui 5.4.2-dev → 5.4.2-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AccountMappingScreen-DfowxAc-.js → AccountMappingScreen-5_pL8p1J.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-DpqBi3lD.js → ActualMatchingMatchDetailScreen-BIkDxDCx.js} +1 -1
- package/dist/assets/{AddressRoutes-DAUco87Q.js → AddressRoutes-Dc4-aHUD.js} +1 -1
- package/dist/assets/{AddressScreen-Diwm_C2C.js → AddressScreen-DKEFDilQ.js} +1 -1
- package/dist/assets/{AiCfoScreen-k4JvYL5q.js → AiCfoScreen-BXMcrMvW.js} +1 -1
- package/dist/assets/{AppDrawer-DBMNE-tW.js → AppDrawer-Rk7OEIXc.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-D9G2_YOz.js → BillPayApprovalRoutes-DK1bUhta.js} +1 -1
- package/dist/assets/{BillPayRoutes-P8ok7ngf.js → BillPayRoutes-yIHDhdd1.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-B4wIaSZ_.js → BusinessVerificationPageScreen-ZMcth61u.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-csdwe-Dr.js → CardsAiCfoScreen-BfM49ZFs.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-D1ZdbX_z.js → ChargeCardRoutes-C3eO8JK1.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-d28meAXB.js → CompanyPassportScreen-1TFOHn2A.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CIc-7q2q.js → ConnectionAuthScreen-Bm1mms_J.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-BCLoKVKx.js → CustomerOnboardingAuthScreen-CZ-vITy9.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-DcNGx8td.js → CustomerOnboardingRoutes-DDHwk1Gd.js} +1 -1
- package/dist/assets/{DashboardRoutes-Cn2JvSx_.js → DashboardRoutes-Jf6yegQQ.js} +1 -1
- package/dist/assets/{DefaultTenantHome-CsXVfKlZ.js → DefaultTenantHome-V7zkwBIA.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Cxel_MVr.js → DomesticWireDetailScreen-DkC0UQKc.js} +1 -1
- package/dist/assets/{DrawerScreen-C2EkheMn.js → DrawerScreen-QeGRaR5D.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-DYnrDK2H.js → EntityDetailRoutes-liAVKnfl.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-CFonPv_D.js → ExpenseAutomationRoutes-C3OiOopZ.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-DDYtwmUp.js → FeaturePreviewScreen-CVuyjUhB.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-DrQG17NC.js → HubSpotOAuthCallbackScreen-4-3ujMEC.js} +1 -1
- package/dist/assets/{InvoicingRoutes-aLT5Oywn.js → InvoicingRoutes-mC5AR174.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-B98z2_te.js → MagicLinkRoutes-BuuyVcBe.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-CUSvf6DA.js → MagicLinkSignInScreen-BfF3-SZ8.js} +1 -1
- package/dist/assets/{MobileAppDrawer-CYOS7P1p.js → MobileAppDrawer-BIT6vyIm.js} +1 -1
- package/dist/assets/{NotFoundScreen-Cg7JNFkQ.js → NotFoundScreen-CBzOeZpR.js} +1 -1
- package/dist/assets/{NotificationRoutes-Cw3UPZ5H.js → NotificationRoutes-CkbvZ8J5.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-DvsId_K6.js → OAuthConsentScreen-DBDbw5t9.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-BtveWrPc.js → PandLWithForecastRoutes-DXWy1YPP.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-CyUO-4Wu.js → PaymentLinkScreen-B5Gb6bt2.js} +1 -1
- package/dist/assets/{PeopleRoutes-DVMl8LKW.js → PeopleRoutes-BczQctlX.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DDDEYaGA.js → PerformanceRoutes-DDGVbYEg.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-BZaN5thA.js → QBOConnectionScreen-GPCS5Izm.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-D7E_M16q.js → ReimbursementApprovalRoutes-WRJ18u0b.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CXyB0PcY.js → ReimbursementApprovalRuleDetailScreen-HH1KS4wW.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CRRoqag9.js → ReimbursementRoutes-DrykXPse.js} +1 -1
- package/dist/assets/{ReportsRoutes-Cgg5QVAq.js → ReportsRoutes-3f9ST_VX.js} +1 -1
- package/dist/assets/{RewardsRoutes-phMlkhIl.js → RewardsRoutes-BgrELWaw.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-y_RWHH2C.js → ScheduleDetailsPrepaidExpensesScreen-BdonlQkz.js} +1 -1
- package/dist/assets/{ScreenRoutes-BfdhNdv6.js → ScreenRoutes-Dd_oQ5Gq.js} +2 -2
- package/dist/assets/{SettingsRoutes-C030Wm5E.js → SettingsRoutes-D_0-024q.js} +1 -1
- package/dist/assets/{SetupPagesScreen-BhmiBe4o.js → SetupPagesScreen-HQk7RdED.js} +1 -1
- package/dist/assets/{SignInScreen-uxgoeqdj.js → SignInScreen-BLjiHMp8.js} +1 -1
- package/dist/assets/{SignOutScreen-DlEh7dhK.js → SignOutScreen-n_PIGeF0.js} +1 -1
- package/dist/assets/{TaskListScreen-BAeSb59G.js → TaskListScreen-5TAQAgVe.js} +1 -1
- package/dist/assets/{TaskRoutes-B0DNH_tz.js → TaskRoutes-CjxbASsk.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-CvRMjyJd.js → TransactionDetailRoutes-Bvfde0rc.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-wMG_3E3j.js → TransactionDetailScreen-Dg2ryZMO.js} +1 -1
- package/dist/assets/{TransactionListRoutes-BP3KJlde.js → TransactionListRoutes-DedveH1S.js} +1 -1
- package/dist/assets/{TreasuryRoutes-18cBgc_x.js → TreasuryRoutes-mMVOYrHE.js} +1 -1
- package/dist/assets/{VendorsRoutes-DLFjUFun.js → VendorsRoutes-DU1jOPiy.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-Tt2rFi3i.js → WiseConfirmationScreen-Xg9F8ns0.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-wVFrAQ-3.js → ZeniAccountRoutes-BeZHZXhk.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-ku-97h_n.js → ZeniAccountStatementScreen-BowCXW4r.js} +1 -1
- package/dist/assets/{analyticsHelper-CsTjLa_U.js → analyticsHelper-D283acnh.js} +1 -1
- package/dist/assets/{getLocaleForTenant-UyMudcKz.js → getLocaleForTenant-D1LK5Ma1.js} +1 -1
- package/dist/assets/{index-C8t0n_dK.js → index-BS0ziwo3.js} +5 -5
- package/dist/assets/{routePaths-CXiI4qT4.js → routePaths-Nt-fN6-I.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-D7oh67gX.js → useActualMatchingMatchDetail-B2wN8c3X.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-C_YRnGmr.js → useAiCfoDashboardSuggestedQuestionsChips-CYCAPC5Y.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-DYip9Dx9.js → useAskAiCfoHostNavButtonProps-C4eW2GGz.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-DoonLDx8.js → useChargeCardPusherEvents-BapnP402.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-Bp56oLLy.js → useEmailConnectResultRefresh-DSTsMqJU.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-BLzbdgeM.js → useInitialThreadRequest-CfncK70W.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-D2-4N0AP.js → useTaskManagerAccess-DmPaHdfO.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-DiIvQwiL.js → useTaskManagerPusherEvents-BPEsN8Xv.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-By5bvka9.js → withTransactionSidePanel-BUue_KHK.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/zeni-epic-state-BgQvRRQh.js","assets/sentry-w92aQEbS.js","assets/core-DRRkK-nh.js","assets/index-4rD-Inub.js","assets/DefaultTenantHome-
|
|
2
|
-
import{R as B,b as y5e,a as m,r as tm,g as CCt,p as eae,d as Jje,f as drn,s as Xje,i as urn,w as prn,j as hrn,S as mrn,k as grn,l as frn,m as xrn,n as yrn,o as brn,q as wrn}from"./sentry-w92aQEbS.js";import{L as Crn,C as e$e,_ as Up,a as vrn,b as Hz,c as Arn,d as Kee,e as Uz,u as vCt,T as Srn,f as krn,g as jrn,h as $rn,i as Ern,k as ACt,l as Irn,m as Drn,j as on}from"./liveblocks-BMZsanry.js";import{f as SCt,r as $a,P as Fl,R as Trn,O as Lrn,N as kCt,u as Bp,g as Vg,h as Zee,i as jCt,j as Nr,m as W8e,s as _K,k as $Ct,l as Brn,n as Prn,o as Y1,p as Mrn,B as Orn}from"./core-DRRkK-nh.js";import{L as t$e,bl as Frn,bm as Rrn,bn as Wz,bo as zrn,bp as Nrn,bq as ws,br as qt,bs as vT,bt as ECt,bu as W3,bv as _rn,bw as f7,bx as Bs,by as Vrn,bz as Hrn,bA as Jee,bB as Urn,bC as R1,bD as Rp,bE as IR,bF as L9,bG as hn,bH as ICt,bI as T1,bJ as ka,bK as yD,bL as DCt,bM as TCt,bN as Q8e,bO as Lx,bP as _u,bQ as My,bR as Wrn,bS as jc,bT as Qrn,bU as AT,bV as Yrn,bW as Grn,bX as VK,bY as qrn,bZ as Krn,b_ as HK,b$ as Zrn,c0 as Jrn,c1 as B9,c2 as n$e,c3 as Xrn,c4 as ean,c5 as tan,c6 as nan,c7 as ian,c8 as oan,c9 as ran,ca as Oy,cb as Xee,cc as aan,cd as ete,ce as tte,cf as nte,cg as Y8e,ch as HA,ci as UA,cj as Qz,ck as bD,cl as wD,cm as WA,cn as ite,co as fA,cp as san,cq as i$e,cr as lan,cs as can,ct as dan,cu as uan,cv as LCt,cw as pan,cx as han,cy as bw,cz as o$e,cA as man,cB as gan,cC as fan,cD as SS,cE as kS,cF as BCt,cG as PCt,cH as G8e,cI as xan,cJ as MCt,cK as yan,cL as UK,cM as OCt,cN as ban,cO as FCt,cP as wan,cQ as oO,cR as Can,cS as van,cT as r$e,cU as Aan,cV as q8e,cW as K8e,cX as San,cY as kan,cZ as jan,c_ as $an,c$ as O_,d0 as CD,d1 as F_,d2 as Ean,d3 as Ian,d4 as RCt,d5 as Dan,d6 as Tan,d7 as Lan,d8 as Ban,d9 as Pan,da as zCt,db as a$e,dc as Man,dd as Z8e,de as Oan,df as Fan,dg as Ran,dh as NCt,di as tu,dj as Nl,dk as ote,dl as zan,dm as Nan,dn as A1,dp as _Ct,dq as _an,dr as DR,ds as xA,dt as cs,du as s$e,dv as Van,dw as Han,dx as Uan,dy as VCt,dz as J8e,dA as R_,dB as HCt,dC as Wan,dD as Qan,dE as Yan,dF as Gan,dG as qan,dH as gg,dI as Kan,dJ as Zan,dK as Jan,dL as Xan,dM as z_,dN as QA,dO as rte,dP as esn,dQ as tsn,dR as jS,dS as L1,dT as UCt,dU as WCt,dV as nsn,dW as QCt,dX as isn,dY as osn,dZ as rsn,d_ as asn,d$ as ST,e0 as X8e,e1 as ewe,e2 as ssn,e3 as YCt,e4 as GCt,e5 as qCt,e6 as KCt,e7 as ZCt,e8 as JCt,e9 as lsn,_ as kd,ea as kT,eb as csn,ec as l$e,ed as ate,ee as dsn,ef as usn,eg as XCt,eh as psn,ei as sF,ej as dm,ek as Fy,el as evt,em as tvt,en as hsn,eo as nvt,ep as b5e,eq as msn,er as lq,es as gsn,et as fsn,eu as xsn,ev as ysn,ew as bsn,ex as ivt,ey as ovt,ez as wsn,eA as Csn,eB as rvt,eC as lF,eD as cF,eE as avt,eF as vsn,eG as Asn,eH as twe,eI as Ssn,eJ as ksn,eK as jsn,eL as nwe,eM as svt,eN as lvt,eO as iwe,eP as jT,eQ as ste,eR as owe,eS as rwe,eT as awe,eU as swe,eV as $sn,eW as Esn,eX as cvt,eY as c$e,eZ as Isn,e_ as Dsn,e$ as B1,f0 as Tsn,f1 as lte,f2 as dvt,f3 as uvt,f4 as Lsn,f5 as lwe,f6 as cwe,f7 as Bsn,f8 as Psn,f9 as Msn,fa as Osn,fb as Fsn,fc as Rsn,fd as Ig,fe as d$e,ff as pvt,fg as zsn,fh as Nsn,fi as _sn,fj as hvt,fk as mvt,fl as gvt,fm as fvt,fn as xvt,fo as yvt,fp as Vsn,fq as vD,fr as Hsn,fs as Usn,ft as Wsn,fu as Qsn,fv as bvt,fw as wvt,fx as u$e,fy as p$e,fz as Ysn,fA as Gsn,fB as h$e,fC as m$e,fD as qsn,fE as Ksn,fF as w5e,fG as Zsn,v as Jsn,fH as cte,fI as zp,fJ as Cvt,fK as vvt,fL as Xsn,fM as eln,fN as g$e,fO as tln,fP as nln,fQ as iln,fR as oln,fS as rln,fT as aln,fU as sln,fV as lln,fW as cln,fX as dln,fY as uln,fZ as pln,f_ as hln,f$ as mln,g0 as gln,g1 as fln,g2 as xln,g3 as yln,g4 as bln,g5 as f$e,g6 as wln,g7 as Cln,g8 as vln,g9 as Aln,ga as Sln,gb as Avt,gc as dte,gd as dwe,ge as Svt,gf as kln,gg as jln,gh as $ln,gi as kvt,gj as x$e,gk as jvt,gl as $vt,gm as Eln,gn as Evt,go as Ivt,gp as Iln,gq as Dln,gr as C5e,gs as Tln,gt as dF,gu as Lln,gv as Bln,gw as Pln,gx as Mln,gy as Oln,gz as Fln,gA as Rln,gB as zln,gC as Nln,gD as _ln,gE as Vln,gF as Hln,gG as Dvt,gH as Uln,gI as Wln,gJ as Qln,gK as y$e,gL as Yln,gM as Gln,gN as qln,gO as Kln,gP as Zln,gQ as Jln,gR as Xln,gS as Tvt,gT as Lvt,gU as ecn,gV as Bvt,gW as tcn,gX as ncn,gY as v5e,gZ as icn,g_ as ocn,g$ as rcn,h0 as acn,h1 as scn,h2 as lcn,h3 as b$e,h4 as ccn,h5 as dcn,h6 as ucn}from"./zeni-epic-state-BgQvRRQh.js";import{j as Mo,c as De,k as mi,a as w$e,b as Pvt,C as Mvt,T as pcn,M as hcn,n as a,u as Be,d as li,e as Ovt,G as ute,A as C$e,R as mcn,D as Kc,F as gcn,f as WK,g as A5e,P as Q3,h as fcn,S as pte,i as xcn,l as ycn,m as TR,o as bcn,s as $S,p as wcn}from"./mui-Cs4dDAVi.js";import{r as Ccn,m as sg}from"./analytics-C4h9uwWs.js";import{u as _1}from"./plaid-3Z5MZAow.js";import{D as uwe,H as hte,g as vcn,O as Acn,S as Scn,T as kcn,u as pwe,a as hwe,b as jcn}from"./dnd-_2sJc_42.js";import{l as mwe}from"./stripe-cKAAJElX.js";import{L as LI}from"./lottie-C0cdlMyO.js";import{r as Zc}from"./lexical-DcIe1jg7.js";import{D as S5e,P as k5e,_ as Fvt,a as Rvt}from"./pdf-DTtYOrE_.js";import{R as YA,G as P9,H as ml,X as Ra,Y as ja,I as jl,J as M9,K as Og,L as yA,M as Uc,N as Fg,O as zvt,P as $cn,Q as Ecn,S as mte,U as Icn,V as gwe,W as Dcn,Z as Tcn,_ as Lcn,d as Bcn}from"./recharts-Dv_Zobiy.js";import{r as Pcn,n as v$e}from"./utils-BKjdMjTj.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]="9f2c56f2-e957-48c8-b6a6-cdc2421a3548",e._sentryDebugIdIdentifier="sentry-dbid-9f2c56f2-e957-48c8-b6a6-cdc2421a3548")}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 A$e,N_={},Mcn=(function(){if(A$e)return N_;A$e=1;var e=SCt();return N_.createRoot=e.createRoot,N_.hydrateRoot=e.hydrateRoot,N_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof y5e<"u"?y5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S$e,k$e,j$e={exports:{}},PL={};function Nvt(){return k$e||(k$e=1,j$e.exports=(function(){if(S$e)return PL;S$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 PL.Fragment=i,PL.jsx=c,PL.jsxs=c,PL})()),j$e.exports}var t=Nvt();const Ocn=m.createContext(null),tae={didCatch:!1,error:null};let Fcn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=tae}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(tae)}}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(tae))}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(Ocn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var $$e,E$e,I$e,nae,D$e,T$e,L$e,B$e,P$e,iae={exports:{}};function Rcn(){return $$e||($$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(iae.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,Ce=G.length;for(pe=0;pe<Ce;pe+=1)for(var Ee in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.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 G}})(),y=(function(){function G(pe,xe){var Ce,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ce=1;break;default:Ce=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ce);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",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(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function _(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ce,Ee,Re,Qe,Ge,Rt,Jt;switch(Ge=pe*(1-X),Rt=pe*(1-(Qe=6*G-(Re=Math.floor(6*G)))*X),Jt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ce=Jt,Ee=Ge;break;case 1:xe=Rt,Ce=pe,Ee=Ge;break;case 2:xe=Ge,Ce=pe,Ee=Jt;break;case 3:xe=Ge,Ce=Rt,Ee=pe;break;case 4:xe=Jt,Ce=Ge,Ee=pe;break;case 5:xe=pe,Ce=Ge,Ee=Rt}return[xe,Ce,Ee]}function W(G,X,pe){var xe,Ce=Math.max(G,X,pe),Ee=Math.min(G,X,pe),Re=Ce-Ee,Qe=Ce===0?0:Re/Ce,Ge=Ce/255;switch(Ce){case Ee:xe=0;break;case G:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-G+2*Re,xe/=6*Re;break;case pe:xe=G-X+4*Re,xe/=6*Re}return[xe,Qe,Ge]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[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 Y(G,X){var pe=W(255*G[0],255*G[1],255*G[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(G,X){var pe=W(255*G[0],255*G[1],255*G[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 G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},ae=function(){return E},re=function(G){v=G};function le(G){return document.createElementNS(i,G)}function ge(G){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(G)}var ue=(function(){var G,X,pe=1,xe=[],Ce={onmessage:function(){},postMessage:function(pt){G({data:pt})}},Ee={postMessage:function(pt){Ce.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(Ct);return new Worker(Tt)}return G=pt,Ce}function Qe(){X||(X=Re((function(pt){function Ct(){function Kt(Vt,fn){var ft,ct,ze,ht,wt,xi,Zo=Vt.length;for(ct=0;ct<Zo;ct+=1)if("ks"in(ft=Vt[ct])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var Po=ft.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])}ft.ty===0?(ft.layers=We(ft.refId,fn),Kt(ft.layers,fn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Ko(ft)}}function en(Vt,fn){if(Vt){var ft=0,ct=Vt.length;for(ft=0;ft<ct;ft+=1)Vt[ft].t===1&&(Vt[ft].data.layers=We(Vt[ft].data.refId,fn),Kt(Vt[ft].data.layers,fn))}}function Xe(Vt,fn){for(var ft=0,ct=fn.length;ft<ct;){if(fn[ft].id===Vt)return fn[ft];ft+=1}return null}function We(Vt,fn){var ft=Xe(Vt,fn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Vt){var fn,ft,ct;for(fn=Vt.length-1;fn>=0;fn-=1)if(Vt[fn].ty==="sh")if(Vt[fn].ks.k.i)qe(Vt[fn].ks.k);else for(ct=Vt[fn].ks.k.length,ft=0;ft<ct;ft+=1)Vt[fn].ks.k[ft].s&&qe(Vt[fn].ks.k[ft].s[0]),Vt[fn].ks.k[ft].e&&qe(Vt[fn].ks.k[ft].e[0]);else Vt[fn].ty==="gr"&&Ne(Vt[fn].it)}function qe(Vt){var fn,ft=Vt.i.length;for(fn=0;fn<ft;fn+=1)Vt.i[fn][0]+=Vt.v[fn][0],Vt.i[fn][1]+=Vt.v[fn][1],Vt.o[fn][0]+=Vt.v[fn][0],Vt.o[fn][1]+=Vt.v[fn][1]}function gt(Vt,fn){var ft=fn?fn.split("."):[100,100,100];return Vt[0]>ft[0]||!(ft[0]>Vt[0])&&(Vt[1]>ft[1]||!(ft[1]>Vt[1])&&(Vt[2]>ft[2]||!(ft[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function fn(ct){var ze=ct.t.d;ct.t.d={k:[{s:ze,t:0}]}}function ft(ct){var ze,ht=ct.length;for(ze=0;ze<ht;ze+=1)ct[ze].ty===5&&fn(ct[ze])}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(fn){if(fn.chars&&!gt(Vt,fn.v)){var ft,ct=fn.chars.length;for(ft=0;ft<ct;ft+=1){var ze=fn.chars[ft];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}},fn.chars[ft].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 fn(ct){var ze=ct.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 ft(ct){var ze,ht=ct.length;for(ze=0;ze<ht;ze+=1)ct[ze].ty===5&&fn(ct[ze])}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function fn(ct){var ze,ht,wt,xi=ct.length;for(ze=0;ze<xi;ze+=1)if(ct[ze].ty==="gr")fn(ct[ze].it);else if(ct[ze].ty==="fl"||ct[ze].ty==="st")if(ct[ze].c.k&&ct[ze].c.k[0].i)for(wt=ct[ze].c.k.length,ht=0;ht<wt;ht+=1)ct[ze].c.k[ht].s&&(ct[ze].c.k[ht].s[0]/=255,ct[ze].c.k[ht].s[1]/=255,ct[ze].c.k[ht].s[2]/=255,ct[ze].c.k[ht].s[3]/=255),ct[ze].c.k[ht].e&&(ct[ze].c.k[ht].e[0]/=255,ct[ze].c.k[ht].e[1]/=255,ct[ze].c.k[ht].e[2]/=255,ct[ze].c.k[ht].e[3]/=255);else ct[ze].c.k[0]/=255,ct[ze].c.k[1]/=255,ct[ze].c.k[2]/=255,ct[ze].c.k[3]/=255}function ft(ct){var ze,ht=ct.length;for(ze=0;ze<ht;ze+=1)ct[ze].ty===4&&fn(ct[ze].shapes)}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function fn(ct){var ze,ht,wt;for(ze=ct.length-1;ze>=0;ze-=1)if(ct[ze].ty==="sh")if(ct[ze].ks.k.i)ct[ze].ks.k.c=ct[ze].closed;else for(wt=ct[ze].ks.k.length,ht=0;ht<wt;ht+=1)ct[ze].ks.k[ht].s&&(ct[ze].ks.k[ht].s[0].c=ct[ze].closed),ct[ze].ks.k[ht].e&&(ct[ze].ks.k[ht].e[0].c=ct[ze].closed);else ct[ze].ty==="gr"&&fn(ct[ze].it)}function ft(ct){var ze,ht,wt,xi,Zo,Po,Ca=ct.length;for(ht=0;ht<Ca;ht+=1){if((ze=ct[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&&fn(ze.shapes)}}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.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=Ct()),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 gt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)gt=Kt(rn),Ne(gt);else try{gt=Kt(rn),Ne(gt)}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 Ct=pt.data,Tt=Ct.id,Kt=xe[Tt];xe[Tt]=null,Ct.status==="success"?Kt.onComplete(Ct.payload):Kt.onError&&Kt.onError()})}function Ge(pt,Ct){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:Ct},Tt}function Rt(pt,Ct,Tt){Qe();var Kt=Ge(Ct,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,Ct,Tt){Qe();var Kt=Ge(Ct,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,Ct,Tt){Qe();var Kt=Ge(Ct,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:Rt,loadData:Jt,completeAnimation:et}})(),oe=(function(){var G=(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 gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=We+gt}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ce(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=G,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=G,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 Ge(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 Ct(){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=Ce.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:Ge,setAssetsPath:Jt,setPath:Rt,loadedImages:Ct,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(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-BgQvRRQh.js","assets/sentry-w92aQEbS.js","assets/core-DRRkK-nh.js","assets/index-4rD-Inub.js","assets/DefaultTenantHome-V7zkwBIA.js","assets/mui-Cs4dDAVi.js","assets/getLocaleForTenant-D1LK5Ma1.js","assets/analytics-C4h9uwWs.js","assets/utils-BKjdMjTj.js","assets/AppDrawer-Rk7OEIXc.js","assets/InboxNotificationsProvider-Bh2XZMjj.js","assets/useTaskManagerAccess-DmPaHdfO.js","assets/expenseAutomationHelper-BC0QbU5f.js","assets/ScreenRoutes-Dd_oQ5Gq.js","assets/analyticsHelper-D283acnh.js","assets/ConnectionAuthScreen-Bm1mms_J.js","assets/AccountMappingScreen-5_pL8p1J.js","assets/MobileAppDrawer-BIT6vyIm.js","assets/QBOConnectionScreen-GPCS5Izm.js","assets/empty-CTTtTEUb.js","assets/index-DV4hjrJB.js","assets/url-CfBqFLaf.js","assets/index-tDitJ4zF.js","assets/decodeURIComponentSafe-DZs4O12l.js","assets/accountMappingHelper-CHry1WVR.js","assets/SignInScreen-BLjiHMp8.js","assets/useDeviceId-BCt1yivX.js","assets/MagicLinkSignInScreen-BfF3-SZ8.js","assets/NotFoundScreen-CBzOeZpR.js","assets/MagicLinkRoutes-BuuyVcBe.js","assets/PaymentLinkScreen-B5Gb6bt2.js","assets/WiseConfirmationScreen-Xg9F8ns0.js","assets/HubSpotOAuthCallbackScreen-4-3ujMEC.js","assets/CustomerOnboardingAuthScreen-CZ-vITy9.js","assets/SignOutScreen-n_PIGeF0.js","assets/OAuthConsentScreen-DBDbw5t9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as B,b as y5e,a as m,r as tm,g as CCt,p as eae,d as Jje,f as drn,s as Xje,i as urn,w as prn,j as hrn,S as mrn,k as grn,l as frn,m as xrn,n as yrn,o as brn,q as wrn}from"./sentry-w92aQEbS.js";import{L as Crn,C as e$e,_ as Up,a as vrn,b as Hz,c as Arn,d as Kee,e as Uz,u as vCt,T as Srn,f as krn,g as jrn,h as $rn,i as Ern,k as ACt,l as Irn,m as Drn,j as on}from"./liveblocks-BMZsanry.js";import{f as SCt,r as $a,P as Fl,R as Trn,O as Lrn,N as kCt,u as Bp,g as Vg,h as Zee,i as jCt,j as Nr,m as W8e,s as _K,k as $Ct,l as Brn,n as Prn,o as Y1,p as Mrn,B as Orn}from"./core-DRRkK-nh.js";import{L as t$e,bl as Frn,bm as Rrn,bn as Wz,bo as zrn,bp as Nrn,bq as ws,br as qt,bs as vT,bt as ECt,bu as W3,bv as _rn,bw as f7,bx as Bs,by as Vrn,bz as Hrn,bA as Jee,bB as Urn,bC as R1,bD as Rp,bE as IR,bF as L9,bG as hn,bH as ICt,bI as T1,bJ as ka,bK as yD,bL as DCt,bM as TCt,bN as Q8e,bO as Lx,bP as _u,bQ as My,bR as Wrn,bS as jc,bT as Qrn,bU as AT,bV as Yrn,bW as Grn,bX as VK,bY as qrn,bZ as Krn,b_ as HK,b$ as Zrn,c0 as Jrn,c1 as B9,c2 as n$e,c3 as Xrn,c4 as ean,c5 as tan,c6 as nan,c7 as ian,c8 as oan,c9 as ran,ca as Oy,cb as Xee,cc as aan,cd as ete,ce as tte,cf as nte,cg as Y8e,ch as HA,ci as UA,cj as Qz,ck as bD,cl as wD,cm as WA,cn as ite,co as fA,cp as san,cq as i$e,cr as lan,cs as can,ct as dan,cu as uan,cv as LCt,cw as pan,cx as han,cy as bw,cz as o$e,cA as man,cB as gan,cC as fan,cD as SS,cE as kS,cF as BCt,cG as PCt,cH as G8e,cI as xan,cJ as MCt,cK as yan,cL as UK,cM as OCt,cN as ban,cO as FCt,cP as wan,cQ as oO,cR as Can,cS as van,cT as r$e,cU as Aan,cV as q8e,cW as K8e,cX as San,cY as kan,cZ as jan,c_ as $an,c$ as O_,d0 as CD,d1 as F_,d2 as Ean,d3 as Ian,d4 as RCt,d5 as Dan,d6 as Tan,d7 as Lan,d8 as Ban,d9 as Pan,da as zCt,db as a$e,dc as Man,dd as Z8e,de as Oan,df as Fan,dg as Ran,dh as NCt,di as tu,dj as Nl,dk as ote,dl as zan,dm as Nan,dn as A1,dp as _Ct,dq as _an,dr as DR,ds as xA,dt as cs,du as s$e,dv as Van,dw as Han,dx as Uan,dy as VCt,dz as J8e,dA as R_,dB as HCt,dC as Wan,dD as Qan,dE as Yan,dF as Gan,dG as qan,dH as gg,dI as Kan,dJ as Zan,dK as Jan,dL as Xan,dM as z_,dN as QA,dO as rte,dP as esn,dQ as tsn,dR as jS,dS as L1,dT as UCt,dU as WCt,dV as nsn,dW as QCt,dX as isn,dY as osn,dZ as rsn,d_ as asn,d$ as ST,e0 as X8e,e1 as ewe,e2 as ssn,e3 as YCt,e4 as GCt,e5 as qCt,e6 as KCt,e7 as ZCt,e8 as JCt,e9 as lsn,_ as kd,ea as kT,eb as csn,ec as l$e,ed as ate,ee as dsn,ef as usn,eg as XCt,eh as psn,ei as sF,ej as dm,ek as Fy,el as evt,em as tvt,en as hsn,eo as nvt,ep as b5e,eq as msn,er as lq,es as gsn,et as fsn,eu as xsn,ev as ysn,ew as bsn,ex as ivt,ey as ovt,ez as wsn,eA as Csn,eB as rvt,eC as lF,eD as cF,eE as avt,eF as vsn,eG as Asn,eH as twe,eI as Ssn,eJ as ksn,eK as jsn,eL as nwe,eM as svt,eN as lvt,eO as iwe,eP as jT,eQ as ste,eR as owe,eS as rwe,eT as awe,eU as swe,eV as $sn,eW as Esn,eX as cvt,eY as c$e,eZ as Isn,e_ as Dsn,e$ as B1,f0 as Tsn,f1 as lte,f2 as dvt,f3 as uvt,f4 as Lsn,f5 as lwe,f6 as cwe,f7 as Bsn,f8 as Psn,f9 as Msn,fa as Osn,fb as Fsn,fc as Rsn,fd as Ig,fe as d$e,ff as pvt,fg as zsn,fh as Nsn,fi as _sn,fj as hvt,fk as mvt,fl as gvt,fm as fvt,fn as xvt,fo as yvt,fp as Vsn,fq as vD,fr as Hsn,fs as Usn,ft as Wsn,fu as Qsn,fv as bvt,fw as wvt,fx as u$e,fy as p$e,fz as Ysn,fA as Gsn,fB as h$e,fC as m$e,fD as qsn,fE as Ksn,fF as w5e,fG as Zsn,v as Jsn,fH as cte,fI as zp,fJ as Cvt,fK as vvt,fL as Xsn,fM as eln,fN as g$e,fO as tln,fP as nln,fQ as iln,fR as oln,fS as rln,fT as aln,fU as sln,fV as lln,fW as cln,fX as dln,fY as uln,fZ as pln,f_ as hln,f$ as mln,g0 as gln,g1 as fln,g2 as xln,g3 as yln,g4 as bln,g5 as f$e,g6 as wln,g7 as Cln,g8 as vln,g9 as Aln,ga as Sln,gb as Avt,gc as dte,gd as dwe,ge as Svt,gf as kln,gg as jln,gh as $ln,gi as kvt,gj as x$e,gk as jvt,gl as $vt,gm as Eln,gn as Evt,go as Ivt,gp as Iln,gq as Dln,gr as C5e,gs as Tln,gt as dF,gu as Lln,gv as Bln,gw as Pln,gx as Mln,gy as Oln,gz as Fln,gA as Rln,gB as zln,gC as Nln,gD as _ln,gE as Vln,gF as Hln,gG as Dvt,gH as Uln,gI as Wln,gJ as Qln,gK as y$e,gL as Yln,gM as Gln,gN as qln,gO as Kln,gP as Zln,gQ as Jln,gR as Xln,gS as Tvt,gT as Lvt,gU as ecn,gV as Bvt,gW as tcn,gX as ncn,gY as v5e,gZ as icn,g_ as ocn,g$ as rcn,h0 as acn,h1 as scn,h2 as lcn,h3 as b$e,h4 as ccn,h5 as dcn,h6 as ucn}from"./zeni-epic-state-BgQvRRQh.js";import{j as Mo,c as De,k as mi,a as w$e,b as Pvt,C as Mvt,T as pcn,M as hcn,n as a,u as Be,d as li,e as Ovt,G as ute,A as C$e,R as mcn,D as Kc,F as gcn,f as WK,g as A5e,P as Q3,h as fcn,S as pte,i as xcn,l as ycn,m as TR,o as bcn,s as $S,p as wcn}from"./mui-Cs4dDAVi.js";import{r as Ccn,m as sg}from"./analytics-C4h9uwWs.js";import{u as _1}from"./plaid-3Z5MZAow.js";import{D as uwe,H as hte,g as vcn,O as Acn,S as Scn,T as kcn,u as pwe,a as hwe,b as jcn}from"./dnd-_2sJc_42.js";import{l as mwe}from"./stripe-cKAAJElX.js";import{L as LI}from"./lottie-C0cdlMyO.js";import{r as Zc}from"./lexical-DcIe1jg7.js";import{D as S5e,P as k5e,_ as Fvt,a as Rvt}from"./pdf-DTtYOrE_.js";import{R as YA,G as P9,H as ml,X as Ra,Y as ja,I as jl,J as M9,K as Og,L as yA,M as Uc,N as Fg,O as zvt,P as $cn,Q as Ecn,S as mte,U as Icn,V as gwe,W as Dcn,Z as Tcn,_ as Lcn,d as Bcn}from"./recharts-Dv_Zobiy.js";import{r as Pcn,n as v$e}from"./utils-BKjdMjTj.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]="ae34160b-7b08-42ef-acca-7885392cfdc2",e._sentryDebugIdIdentifier="sentry-dbid-ae34160b-7b08-42ef-acca-7885392cfdc2")}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 A$e,N_={},Mcn=(function(){if(A$e)return N_;A$e=1;var e=SCt();return N_.createRoot=e.createRoot,N_.hydrateRoot=e.hydrateRoot,N_})(),Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof y5e<"u"?y5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S$e,k$e,j$e={exports:{}},PL={};function Nvt(){return k$e||(k$e=1,j$e.exports=(function(){if(S$e)return PL;S$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 PL.Fragment=i,PL.jsx=c,PL.jsxs=c,PL})()),j$e.exports}var t=Nvt();const Ocn=m.createContext(null),tae={didCatch:!1,error:null};let Fcn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=tae}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(tae)}}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(tae))}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(Ocn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var $$e,E$e,I$e,nae,D$e,T$e,L$e,B$e,P$e,iae={exports:{}};function Rcn(){return $$e||($$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(iae.exports=(function(){var i="http://www.w3.org/2000/svg",r="",s=!1,l=-999999,c=function(G){s=!!G},d=function(){return s},u=function(G){r=G},p=function(){return r};function h(G){return document.createElement(G)}function g(G,X){var pe,xe,Ce=G.length;for(pe=0;pe<Ce;pe+=1)for(var Ee in xe=G[pe].prototype)Object.prototype.hasOwnProperty.call(xe,Ee)&&(X.prototype[Ee]=xe[Ee])}function f(G){function X(){}return X.prototype=G,X}var x=(function(){function G(X){this.audios=[],this.audioFactory=X,this._volume=1,this._isMuted=!1}return G.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 G}})(),y=(function(){function G(pe,xe){var Ce,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ce=1;break;default:Ce=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ce);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):G(pe,xe)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?X:G})();function b(G){return Array.apply(null,{length:G})}var w=!0,C=null,v="",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(G,X,pe,xe){this.type=G,this.currentTime=X,this.totalTime=pe,this.direction=xe<0?-1:1}function N(G,X){this.type=G,this.direction=X<0?-1:1}function _(G,X,pe,xe){this.type=G,this.currentLoop=pe,this.totalLoops=X,this.direction=xe<0?-1:1}function z(G,X,pe){this.type=G,this.firstFrame=X,this.totalFrames=pe}function T(G,X){this.type=G,this.target=X}function M(G,X){this.type="renderFrameError",this.nativeError=G,this.currentTime=X}function O(G){this.type="configError",this.nativeError=G}var H=(function(){var G=0;return function(){return v+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ce,Ee,Re,Qe,Ge,Rt,Jt;switch(Ge=pe*(1-X),Rt=pe*(1-(Qe=6*G-(Re=Math.floor(6*G)))*X),Jt=pe*(1-(1-Qe)*X),Re%6){case 0:xe=pe,Ce=Jt,Ee=Ge;break;case 1:xe=Rt,Ce=pe,Ee=Ge;break;case 2:xe=Ge,Ce=pe,Ee=Jt;break;case 3:xe=Ge,Ce=Rt,Ee=pe;break;case 4:xe=Jt,Ce=Ge,Ee=pe;break;case 5:xe=pe,Ce=Ge,Ee=Rt}return[xe,Ce,Ee]}function W(G,X,pe){var xe,Ce=Math.max(G,X,pe),Ee=Math.min(G,X,pe),Re=Ce-Ee,Qe=Ce===0?0:Re/Ce,Ge=Ce/255;switch(Ce){case Ee:xe=0;break;case G:xe=X-pe+Re*(X<pe?6:0),xe/=6*Re;break;case X:xe=pe-G+2*Re,xe/=6*Re;break;case pe:xe=G-X+4*Re,xe/=6*Re}return[xe,Qe,Ge]}function U(G,X){var pe=W(255*G[0],255*G[1],255*G[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 Y(G,X){var pe=W(255*G[0],255*G[1],255*G[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(G,X){var pe=W(255*G[0],255*G[1],255*G[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 G,X,pe=[];for(G=0;G<256;G+=1)X=G.toString(16),pe[G]=X.length===1?"0"+X:X})();var K=function(G){w=!!G},J=function(){return w},ee=function(G){C=G},te=function(){return C},ne=function(G){E=G},ae=function(){return E},re=function(G){v=G};function le(G){return document.createElementNS(i,G)}function ge(G){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(G)}var ue=(function(){var G,X,pe=1,xe=[],Ce={onmessage:function(){},postMessage:function(pt){G({data:pt})}},Ee={postMessage:function(pt){Ce.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var Ct=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(Ct);return new Worker(Tt)}return G=pt,Ce}function Qe(){X||(X=Re((function(pt){function Ct(){function Kt(Vt,fn){var ft,ct,ze,ht,wt,xi,Zo=Vt.length;for(ct=0;ct<Zo;ct+=1)if("ks"in(ft=Vt[ct])&&!ft.completed){if(ft.completed=!0,ft.hasMask){var Po=ft.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])}ft.ty===0?(ft.layers=We(ft.refId,fn),Kt(ft.layers,fn)):ft.ty===4?Ne(ft.shapes):ft.ty===5&&Ko(ft)}}function en(Vt,fn){if(Vt){var ft=0,ct=Vt.length;for(ft=0;ft<ct;ft+=1)Vt[ft].t===1&&(Vt[ft].data.layers=We(Vt[ft].data.refId,fn),Kt(Vt[ft].data.layers,fn))}}function Xe(Vt,fn){for(var ft=0,ct=fn.length;ft<ct;){if(fn[ft].id===Vt)return fn[ft];ft+=1}return null}function We(Vt,fn){var ft=Xe(Vt,fn);return ft?ft.layers.__used?JSON.parse(JSON.stringify(ft.layers)):(ft.layers.__used=!0,ft.layers):null}function Ne(Vt){var fn,ft,ct;for(fn=Vt.length-1;fn>=0;fn-=1)if(Vt[fn].ty==="sh")if(Vt[fn].ks.k.i)qe(Vt[fn].ks.k);else for(ct=Vt[fn].ks.k.length,ft=0;ft<ct;ft+=1)Vt[fn].ks.k[ft].s&&qe(Vt[fn].ks.k[ft].s[0]),Vt[fn].ks.k[ft].e&&qe(Vt[fn].ks.k[ft].e[0]);else Vt[fn].ty==="gr"&&Ne(Vt[fn].it)}function qe(Vt){var fn,ft=Vt.i.length;for(fn=0;fn<ft;fn+=1)Vt.i[fn][0]+=Vt.v[fn][0],Vt.i[fn][1]+=Vt.v[fn][1],Vt.o[fn][0]+=Vt.v[fn][0],Vt.o[fn][1]+=Vt.v[fn][1]}function gt(Vt,fn){var ft=fn?fn.split("."):[100,100,100];return Vt[0]>ft[0]||!(ft[0]>Vt[0])&&(Vt[1]>ft[1]||!(ft[1]>Vt[1])&&(Vt[2]>ft[2]||!(ft[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function fn(ct){var ze=ct.t.d;ct.t.d={k:[{s:ze,t:0}]}}function ft(ct){var ze,ht=ct.length;for(ze=0;ze<ht;ze+=1)ct[ze].ty===5&&fn(ct[ze])}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(fn){if(fn.chars&&!gt(Vt,fn.v)){var ft,ct=fn.chars.length;for(ft=0;ft<ct;ft+=1){var ze=fn.chars[ft];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}},fn.chars[ft].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 fn(ct){var ze=ct.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 ft(ct){var ze,ht=ct.length;for(ze=0;ze<ht;ze+=1)ct[ze].ty===5&&fn(ct[ze])}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function fn(ct){var ze,ht,wt,xi=ct.length;for(ze=0;ze<xi;ze+=1)if(ct[ze].ty==="gr")fn(ct[ze].it);else if(ct[ze].ty==="fl"||ct[ze].ty==="st")if(ct[ze].c.k&&ct[ze].c.k[0].i)for(wt=ct[ze].c.k.length,ht=0;ht<wt;ht+=1)ct[ze].c.k[ht].s&&(ct[ze].c.k[ht].s[0]/=255,ct[ze].c.k[ht].s[1]/=255,ct[ze].c.k[ht].s[2]/=255,ct[ze].c.k[ht].s[3]/=255),ct[ze].c.k[ht].e&&(ct[ze].c.k[ht].e[0]/=255,ct[ze].c.k[ht].e[1]/=255,ct[ze].c.k[ht].e[2]/=255,ct[ze].c.k[ht].e[3]/=255);else ct[ze].c.k[0]/=255,ct[ze].c.k[1]/=255,ct[ze].c.k[2]/=255,ct[ze].c.k[3]/=255}function ft(ct){var ze,ht=ct.length;for(ze=0;ze<ht;ze+=1)ct[ze].ty===4&&fn(ct[ze].shapes)}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function fn(ct){var ze,ht,wt;for(ze=ct.length-1;ze>=0;ze-=1)if(ct[ze].ty==="sh")if(ct[ze].ks.k.i)ct[ze].ks.k.c=ct[ze].closed;else for(wt=ct[ze].ks.k.length,ht=0;ht<wt;ht+=1)ct[ze].ks.k[ht].s&&(ct[ze].ks.k[ht].s[0].c=ct[ze].closed),ct[ze].ks.k[ht].e&&(ct[ze].ks.k[ht].e[0].c=ct[ze].closed);else ct[ze].ty==="gr"&&fn(ct[ze].it)}function ft(ct){var ze,ht,wt,xi,Zo,Po,Ca=ct.length;for(ht=0;ht<Ca;ht+=1){if((ze=ct[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&&fn(ze.shapes)}}return function(ct){if(gt(Vt,ct.v)&&(ft(ct.layers),ct.assets)){var ze,ht=ct.assets.length;for(ze=0;ze<ht;ze+=1)ct.assets[ze].layers&&ft(ct.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=Ct()),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 gt,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)gt=Kt(rn),Ne(gt);else try{gt=Kt(rn),Ne(gt)}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 Ct=pt.data,Tt=Ct.id,Kt=xe[Tt];xe[Tt]=null,Ct.status==="success"?Kt.onComplete(Ct.payload):Kt.onError&&Kt.onError()})}function Ge(pt,Ct){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:Ct},Tt}function Rt(pt,Ct,Tt){Qe();var Kt=Ge(Ct,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,Ct,Tt){Qe();var Kt=Ge(Ct,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,Ct,Tt){Qe();var Kt=Ge(Ct,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:Rt,loadData:Jt,completeAnimation:et}})(),oe=(function(){var G=(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 gt=Xe.p;gt.indexOf("images/")!==-1&&(gt=gt.split("/")[1]),qe=We+gt}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ce(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=G,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=G,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 Ge(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 Ct(){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=Ce.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:Ge,setAssetsPath:Jt,setPath:Rt,loadedImages:Ct,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(G,X){if(this._cbs[G])for(var pe=this._cbs[G],xe=0;xe<pe.length;xe+=1)pe[xe](X)},addEventListener:function(G,X){return this._cbs[G]||(this._cbs[G]=[]),this._cbs[G].push(X),(function(){this.removeEventListener(G,X)}).bind(this)},removeEventListener:function(G,X){if(X){if(this._cbs[G]){for(var pe=0,xe=this._cbs[G].length;pe<xe;)this._cbs[G][pe]===X&&(this._cbs[G].splice(pe,1),pe-=1,xe-=1),pe+=1;this._cbs[G].length||(this._cbs[G]=null)}}else this._cbs[G]=null}};var ce=(function(){function G(X){for(var pe,xe=X.split(`\r
|
|
3
3
|
`),Ce={},Ee=0,Re=0;Re<xe.length;Re+=1)(pe=xe[Re].split(":")).length===2&&(Ce[pe[0]]=pe[1].trim(),Ee+=1);if(Ee===0)throw new Error;return Ce}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ce=X[xe],Ee={time:Ce.tm,duration:Ce.dr};try{Ee.payload=JSON.parse(X[xe].cm)}catch{try{Ee.payload=G(X[xe].cm)}catch{Ee.payload={name:X[xe].cm}}}pe.push(Ee)}return pe}})(),de=(function(){function G(X){this.compositions.push(X)}return function(){function X(pe){for(var xe=0,Ce=this.compositions.length;xe<Ce;){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=G,X}})(),he={},me=function(G,X){he[G]=X};function ye(G){return he[G]}function we(){if(he.canvas)return"canvas";for(var G in he)if(he[G])return G;return""}function be(G){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(G)}var Ae=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 oe,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],Ae),Ae.prototype.setParams=function(G){(G.wrapper||G.container)&&(this.wrapper=G.wrapper||G.container);var X="svg";G.animType?X=G.animType:G.renderer&&(X=G.renderer);var pe=ye(X);this.renderer=new pe(this,G.rendererSettings),this.imagePreloader.setCacheType(X,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=X,G.loop===""||G.loop===null||G.loop===void 0||G.loop===!0?this.loop=!0:G.loop===!1?this.loop=!1:this.loop=parseInt(G.loop,10),this.autoplay=!("autoplay"in G)||G.autoplay,this.name=G.name?G.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(G,"autoloadSegments")||G.autoloadSegments,this.assetsPath=G.assetsPath,this.initialSegment=G.initialSegment,G.audioFactory&&this.audioController.setAudioFactory(G.audioFactory),G.animationData?this.setupAnimation(G.animationData):G.path&&(G.path.lastIndexOf("\\")!==-1?this.path=G.path.substr(0,G.path.lastIndexOf("\\")+1):this.path=G.path.substr(0,G.path.lastIndexOf("/")+1),this.fileName=G.path.substr(G.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),ue.loadAnimation(G.path,this.configAnimation,this.onSetupError))},Ae.prototype.onSetupError=function(){this.trigger("data_failed")},Ae.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},Ae.prototype.setData=function(G,X){X&&be(X)!=="object"&&(X=JSON.parse(X));var pe={wrapper:G,animationData:X},xe=G.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 Ce=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:"";Ce==="false"?pe.loop=!1:Ce==="true"?pe.loop=!0:Ce!==""&&(pe.loop=parseInt(Ce,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")},Ae.prototype.includeLayers=function(G){G.op>this.animationData.op&&(this.animationData.op=G.op,this.totalFrames=Math.floor(G.op-this.animationData.ip));var X,pe,xe=this.animationData.layers,Ce=xe.length,Ee=G.layers,Re=Ee.length;for(pe=0;pe<Re;pe+=1)for(X=0;X<Ce;){if(xe[X].id===Ee[pe].id){xe[X]=Ee[pe];break}X+=1}if((G.chars||G.fonts)&&(this.renderer.globalData.fontManager.addChars(G.chars),this.renderer.globalData.fontManager.addFonts(G.fonts,this.renderer.globalData.defs)),G.assets)for(Ce=G.assets.length,X=0;X<Ce;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},Ae.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},Ae.prototype.loadNextSegment=function(){var G=this.animationData.segments;if(!G||G.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var X=G.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))},Ae.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Ae.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Ae.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Ae.prototype.configAnimation=function(G){if(this.renderer)try{this.animationData=G,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(G),G.assets||(G.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(G.assets),this.markers=ce(G.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(X){this.triggerConfigError(X)}},Ae.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Ae.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 G=te();G&&G.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Ae.prototype.resize=function(G,X){var pe=typeof G=="number"?G:void 0,xe=typeof X=="number"?X:void 0;this.renderer.updateContainerSize(pe,xe)},Ae.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},Ae.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")},Ae.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(G){this.triggerRenderFrameError(G)}},Ae.prototype.play=function(G){G&&this.name!==G||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Ae.prototype.pause=function(G){G&&this.name!==G||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Ae.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},Ae.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Ae.prototype.getMarkerData=function(G){for(var X,pe=0;pe<this.markers.length;pe+=1)if((X=this.markers[pe]).payload&&X.payload.name===G)return X;return null},Ae.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ce=this.getMarkerData(G);Ce&&this.goToAndStop(Ce.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},Ae.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ce=this.getMarkerData(G);Ce&&(Ce.duration?this.playSegments([Ce.time,Ce.time+Ce.duration],!0):this.goToAndStop(Ce.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},Ae.prototype.advanceTime=function(G){if(this.isPaused!==!0&&this.isLoaded!==!1){var X=this.currentRawFrame+G*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"))}},Ae.prototype.adjustSegment=function(G,X){this.playCount=0,G[1]<G[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=G[0]-G[1],this.timeCompleted=this.totalFrames,this.firstFrame=G[1],this.setCurrentRawFrameValue(this.totalFrames-.001-X)):G[1]>G[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=G[1]-G[0],this.timeCompleted=this.totalFrames,this.firstFrame=G[0],this.setCurrentRawFrameValue(.001+X)),this.trigger("segmentStart")},Ae.prototype.setSegment=function(G,X){var pe=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<G?pe=G:this.currentRawFrame+this.firstFrame>X&&(pe=X-G)),this.firstFrame=G,this.totalFrames=X-G,this.timeCompleted=this.totalFrames,pe!==-1&&this.goToAndStop(pe,!0)},Ae.prototype.playSegments=function(G,X){if(X&&(this.segments.length=0),be(G[0])==="object"){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)this.segments.push(G[pe])}else this.segments.push(G);this.segments.length&&X&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Ae.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},Ae.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},Ae.prototype.destroy=function(G){G&&this.name!==G||!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)},Ae.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},Ae.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},Ae.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},Ae.prototype.setLoop=function(G){this.loop=G},Ae.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},Ae.prototype.getVolume=function(){return this.audioController.getVolume()},Ae.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},Ae.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},Ae.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Ae.prototype.getPath=function(){return this.path},Ae.prototype.getAssetsPath=function(G){var X="";if(G.e)X=G.p;else if(this.assetsPath){var pe=G.p;pe.indexOf("images/")!==-1&&(pe=pe.split("/")[1]),X=this.assetsPath+pe}else X=this.path,X+=G.u?G.u:"",X+=G.p;return X},Ae.prototype.getAssetData=function(G){for(var X=0,pe=this.assets.length;X<pe;){if(G===this.assets[X].id)return this.assets[X];X+=1}return null},Ae.prototype.hide=function(){this.renderer.hide()},Ae.prototype.show=function(){this.renderer.show()},Ae.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},Ae.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},Ae.prototype.trigger=function(G){if(this._cbs&&this._cbs[G])switch(G){case"enterFrame":this.triggerEvent(G,new F(G,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(G,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(G,new _(G,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(G,new N(G,this.frameMult));break;case"segmentStart":this.triggerEvent(G,new z(G,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(G,new T(G,this));break;default:this.triggerEvent(G)}G==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new F(G,this.currentFrame,this.totalFrames,this.frameMult)),G==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new _(G,this.loop,this.playCount,this.frameMult)),G==="complete"&&this.onComplete&&this.onComplete.call(this,new N(G,this.frameMult)),G==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new z(G,this.firstFrame,this.totalFrames)),G==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new T(G,this))},Ae.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},Ae.prototype.triggerConfigError=function(G){var X=new O(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)};var Pe=(function(){var G={},X=[],pe=0,xe=0,Ce=0,Ee=!0,Re=!1;function Qe(ft){for(var ct=0,ze=ft.target;ct<xe;)X[ct].animation===ze&&(X.splice(ct,1),ct-=1,xe-=1,ze.isPaused||et()),ct+=1}function Ge(ft,ct){if(!ft)return null;for(var ze=0;ze<xe;){if(X[ze].elem===ft&&X[ze].elem!==null)return X[ze].animation;ze+=1}var ht=new Ae;return pt(ht,ft),ht.setData(ft,ct),ht}function Rt(){var ft,ct=X.length,ze=[];for(ft=0;ft<ct;ft+=1)ze.push(X[ft].animation);return ze}function Jt(){Ce+=1,Eo()}function et(){Ce-=1}function pt(ft,ct){ft.addEventListener("destroy",Qe),ft.addEventListener("_active",Jt),ft.addEventListener("_idle",et),X.push({elem:ct,animation:ft}),xe+=1}function Ct(ft){var ct=new Ae;return pt(ct,null),ct.setParams(ft),ct}function Tt(ft,ct){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setSpeed(ft,ct)}function Kt(ft,ct){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setDirection(ft,ct)}function en(ft){var ct;for(ct=0;ct<xe;ct+=1)X[ct].animation.play(ft)}function Xe(ft){var ct,ze=ft-pe;for(ct=0;ct<xe;ct+=1)X[ct].animation.advanceTime(ze);pe=ft,Ce&&!Re?window.requestAnimationFrame(Xe):Ee=!0}function We(ft){pe=ft,window.requestAnimationFrame(Xe)}function Ne(ft){var ct;for(ct=0;ct<xe;ct+=1)X[ct].animation.pause(ft)}function qe(ft,ct,ze){var ht;for(ht=0;ht<xe;ht+=1)X[ht].animation.goToAndStop(ft,ct,ze)}function gt(ft){var ct;for(ct=0;ct<xe;ct+=1)X[ct].animation.stop(ft)}function rn(ft){var ct;for(ct=0;ct<xe;ct+=1)X[ct].animation.togglePause(ft)}function sn(ft){var ct;for(ct=xe-1;ct>=0;ct-=1)X[ct].animation.destroy(ft)}function zt(ft,ct,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),Ge(wt[ht],ft);if(ct&&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),Ge(Po,ft)}}function po(){var ft;for(ft=0;ft<xe;ft+=1)X[ft].animation.resize()}function Eo(){!Re&&Ce&&Ee&&(window.requestAnimationFrame(We),Ee=!1)}function ci(){Re=!0}function Ko(){Re=!1,Eo()}function lo(ft,ct){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setVolume(ft,ct)}function Vt(ft){var ct;for(ct=0;ct<xe;ct+=1)X[ct].animation.mute(ft)}function fn(ft){var ct;for(ct=0;ct<xe;ct+=1)X[ct].animation.unmute(ft)}return G.registerAnimation=Ge,G.loadAnimation=Ct,G.setSpeed=Tt,G.setDirection=Kt,G.play=en,G.pause=Ne,G.stop=gt,G.togglePause=rn,G.searchAnimations=zt,G.resize=po,G.goToAndStop=qe,G.destroy=sn,G.freeze=ci,G.unfreeze=Ko,G.setVolume=lo,G.mute=Vt,G.unmute=fn,G.getRegisteredAnimations=Rt,G})(),Le=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(We,Ne,qe,gt,rn){var sn=rn||("bez_"+We+"_"+Ne+"_"+qe+"_"+gt).replace(/\./g,"p");if(X[sn])return X[sn];var zt=new Xe([We,Ne,qe,gt]);return X[sn]=zt,zt}var xe=4,Ce=.001,Ee=1e-7,Re=10,Qe=11,Ge=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 Ct(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,gt,rn){var sn,zt,po=0;do(sn=Ct(zt=Ne+(qe-Ne)/2,gt,rn)-We)>0?qe=zt:Ne=zt;while(Math.abs(sn)>Ee&&++po<Re);return zt}function en(We,Ne,qe,gt){for(var rn=0;rn<xe;++rn){var sn=Tt(Ne,qe,gt);if(sn===0)return Ne;Ne-=(Ct(Ne,qe,gt)-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],gt=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&>===rn?We:We===0?0:We===1?1:Ct(this._getTForX(We),qe,rn)},_precompute:function(){var We=this._p[0],Ne=this._p[1],qe=this._p[2],gt=this._p[3];this._precomputed=!0,(We!==Ne||qe!==gt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var We=this._p[0],Ne=this._p[2],qe=0;qe<Qe;++qe)this._mSampleValues[qe]=Ct(qe*Ge,We,Ne)},_getTForX:function(We){for(var Ne=this._p[0],qe=this._p[2],gt=this._mSampleValues,rn=0,sn=1,zt=Qe-1;sn!==zt&>[sn]<=We;++sn)rn+=Ge;var po=rn+(We-gt[--sn])/(gt[sn+1]-gt[sn])*Ge,Eo=Tt(po,Ne,qe);return Eo>=Ce?en(We,po,Ne,qe):Eo===0?po:Kt(We,rn,rn+Ge,Ne,qe)}},G})(),Te=(function(){function G(X){return X.concat(b(X.length))}return{double:G}})(),Fe=(function(){return function(G,X,pe){var xe=0,Ce=G,Ee=b(Ce);function Re(){return xe?Ee[xe-=1]:X()}function Qe(Ge){xe===Ce&&(Ee=Te.double(Ee),Ce*=2),pe&&pe(Ge),Ee[xe]=Ge,xe+=1}return{newElement:Re,release:Qe}}})(),Oe=(function(){function G(){return{addedLength:0,percents:y("float32",ae()),lengths:y("float32",ae())}}return Fe(8,G)})(),ke=(function(){function G(){return{lengths:[],totalLength:0}}function X(pe){var xe,Ce=pe.lengths.length;for(xe=0;xe<Ce;xe+=1)Oe.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function ve(){var G=Math;function X(pt,Ct,Tt,Kt,en,Xe){var We=pt*Kt+Ct*en+Tt*Xe-en*Kt-Xe*pt-Tt*Ct;return We>-.001&&We<.001}function pe(pt,Ct,Tt,Kt,en,Xe,We,Ne,qe){if(Tt===0&&Xe===0&&qe===0)return X(pt,Ct,Kt,en,We,Ne);var gt,rn=G.sqrt(G.pow(Kt-pt,2)+G.pow(en-Ct,2)+G.pow(Xe-Tt,2)),sn=G.sqrt(G.pow(We-pt,2)+G.pow(Ne-Ct,2)+G.pow(qe-Tt,2)),zt=G.sqrt(G.pow(We-Kt,2)+G.pow(Ne-en,2)+G.pow(qe-Xe,2));return(gt=rn>sn?rn>zt?rn-sn-zt:zt-sn-rn:zt>sn?zt-sn-rn:sn-rn-zt)>-1e-4&><1e-4}var xe=(function(){return function(pt,Ct,Tt,Kt){var en,Xe,We,Ne,qe,gt,rn=ae(),sn=0,zt=[],po=[],Eo=Oe.newElement();for(We=Tt.length,en=0;en<rn;en+=1){for(qe=en/(rn-1),gt=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)*Ct[Xe],zt[Xe]=Ne,po[Xe]!==null&&(gt+=k(zt[Xe]-po[Xe],2)),po[Xe]=zt[Xe];gt&&(sn+=gt=$(gt)),Eo.percents[en]=qe,Eo.lengths[en]=sn}return Eo.addedLength=sn,Eo}})();function Ce(pt){var Ct,Tt=ke.newElement(),Kt=pt.c,en=pt.v,Xe=pt.o,We=pt.i,Ne=pt._length,qe=Tt.lengths,gt=0;for(Ct=0;Ct<Ne-1;Ct+=1)qe[Ct]=xe(en[Ct],en[Ct+1],Xe[Ct],We[Ct+1]),gt+=qe[Ct].addedLength;return Kt&&Ne&&(qe[Ct]=xe(en[Ct],en[0],Xe[Ct],We[0]),gt+=qe[Ct].addedLength),Tt.totalLength=gt,Tt}function Ee(pt){this.segmentLength=0,this.points=new Array(pt)}function Re(pt,Ct){this.partialLength=pt,this.point=Ct}var Qe=(function(){var pt={};return function(Ct,Tt,Kt,en){var Xe=(Ct[0]+"_"+Ct[1]+"_"+Tt[0]+"_"+Tt[1]+"_"+Kt[0]+"_"+Kt[1]+"_"+en[0]+"_"+en[1]).replace(/\./g,"p");if(!pt[Xe]){var We,Ne,qe,gt,rn,sn,zt,po=ae(),Eo=0,ci=null;Ct.length===2&&(Ct[0]!==Tt[0]||Ct[1]!==Tt[1])&&X(Ct[0],Ct[1],Tt[0],Tt[1],Ct[0]+Kt[0],Ct[1]+Kt[1])&&X(Ct[0],Ct[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)gt=k(1-rn,3)*Ct[Ne]+3*k(1-rn,2)*rn*(Ct[Ne]+Kt[Ne])+3*(1-rn)*k(rn,2)*(Tt[Ne]+en[Ne])+k(rn,3)*Tt[Ne],zt[Ne]=gt,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 Ge(pt,Ct){var Tt=Ct.percents,Kt=Ct.lengths,en=Tt.length,Xe=j((en-1)*pt),We=pt*Ct.addedLength,Ne=0;if(Xe===en-1||Xe===0||We===Kt[Xe])return Tt[Xe];for(var qe=Kt[Xe]>We?-1:1,gt=!0;gt;)if(Kt[Xe]<=We&&Kt[Xe+1]>We?(Ne=(We-Kt[Xe])/(Kt[Xe+1]-Kt[Xe]),gt=!1):Xe+=qe,Xe<0||Xe>=en-1){if(Xe===en-1)return Tt[Xe];gt=!1}return Tt[Xe]+(Tt[Xe+1]-Tt[Xe])*Ne}function Rt(pt,Ct,Tt,Kt,en,Xe){var We=Ge(en,Xe),Ne=1-We;return[G.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*Ct[0]))/1e3,G.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*Ct[1]))/1e3]}var Jt=y("float32",8);function et(pt,Ct,Tt,Kt,en,Xe,We){en<0?en=0:en>1&&(en=1);var Ne,qe=Ge(en,We),gt=Ge(Xe=Xe>1?1:Xe,We),rn=pt.length,sn=1-qe,zt=1-gt,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*gt,fn=qe*qe*zt+sn*qe*gt+qe*sn*gt,ft=qe*qe*gt,ct=sn*zt*zt,ze=qe*zt*zt+sn*gt*zt+sn*zt*gt,ht=qe*gt*zt+sn*gt*gt+qe*zt*gt,wt=qe*gt*gt,xi=zt*zt*zt,Zo=gt*zt*zt+zt*gt*zt+zt*zt*gt,Po=gt*gt*zt+zt*gt*gt+gt*zt*gt,Ca=gt*gt*gt;for(Ne=0;Ne<rn;Ne+=1)Jt[4*Ne]=G.round(1e3*(po*pt[Ne]+Eo*Tt[Ne]+ci*Kt[Ne]+Ko*Ct[Ne]))/1e3,Jt[4*Ne+1]=G.round(1e3*(lo*pt[Ne]+Vt*Tt[Ne]+fn*Kt[Ne]+ft*Ct[Ne]))/1e3,Jt[4*Ne+2]=G.round(1e3*(ct*pt[Ne]+ze*Tt[Ne]+ht*Kt[Ne]+wt*Ct[Ne]))/1e3,Jt[4*Ne+3]=G.round(1e3*(xi*pt[Ne]+Zo*Tt[Ne]+Po*Kt[Ne]+Ca*Ct[Ne]))/1e3;return Jt}return{getSegmentsLength:Ce,getNewSegment:et,getPointInSegment:Rt,buildBezierData:Qe,pointOnLine2D:X,pointOnLine3D:pe}}var Ie=ve(),$e=l,Me=Math.abs;function Ke(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ce,Ee,Re,Qe=X.lastIndex,Ge=Qe,Rt=this.keyframes.length-1,Jt=!0;Jt;){if(Ce=this.keyframes[Ge],Ee=this.keyframes[Ge+1],Ge===Rt-1&&G>=Ee.t-xe){Ce.h&&(Ce=Ee),Qe=0;break}if(Ee.t-xe>G){Qe=Ge;break}Ge<Rt-1?Ge+=1:(Qe=0,Jt=!1)}Re=this.keyframesMetadata[Ge]||{};var et,pt,Ct,Tt,Kt,en,Xe,We=Ee.t-xe,Ne=Ce.t-xe;if(Ce.to){Re.bezierData||(Re.bezierData=Ie.buildBezierData(Ce.s,Ee.s||Ce.e,Ce.to,Ce.ti));var qe=Re.bezierData;if(G>=We||G<Ne){var gt=G>=We?qe.points.length-1:0;for(pt=qe.points[gt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[gt].point[et]}else{Re.__fnct?en=Re.__fnct:(en=Le.getBezierEasing(Ce.o.x,Ce.o.y,Ce.i.x,Ce.i.y,Ce.n).get,Re.__fnct=en),Ct=en((G-Ne)/(We-Ne));var rn,sn=qe.segmentLength*Ct,zt=X.lastFrame<G&&X._lastKeyframeIndex===Ge?X._lastAddedLength:0;for(Kt=X.lastFrame<G&&X._lastKeyframeIndex===Ge?X._lastPoint:0,Jt=!0,Tt=qe.points.length;Jt;){if(zt+=qe.points[Kt].partialLength,sn===0||Ct===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=Ge}}else{var po,Eo,ci,Ko,lo;if(Rt=Ce.s.length,Xe=Ee.s||Ce.e,this.sh&&Ce.h!==1)G>=We?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):G<=Ne?(pe[0]=Ce.s[0],pe[1]=Ce.s[1],pe[2]=Ce.s[2]):Ye(pe,He(it(Ce.s),it(Xe),(G-Ne)/(We-Ne)));else for(Ge=0;Ge<Rt;Ge+=1)Ce.h!==1&&(G>=We?Ct=1:G<Ne?Ct=0:(Ce.o.x.constructor===Array?(Re.__fnct||(Re.__fnct=[]),Re.__fnct[Ge]?en=Re.__fnct[Ge]:(po=Ce.o.x[Ge]===void 0?Ce.o.x[0]:Ce.o.x[Ge],Eo=Ce.o.y[Ge]===void 0?Ce.o.y[0]:Ce.o.y[Ge],ci=Ce.i.x[Ge]===void 0?Ce.i.x[0]:Ce.i.x[Ge],Ko=Ce.i.y[Ge]===void 0?Ce.i.y[0]:Ce.i.y[Ge],en=Le.getBezierEasing(po,Eo,ci,Ko).get,Re.__fnct[Ge]=en)):Re.__fnct?en=Re.__fnct:(po=Ce.o.x,Eo=Ce.o.y,ci=Ce.i.x,Ko=Ce.i.y,en=Le.getBezierEasing(po,Eo,ci,Ko).get,Ce.keyframeMetadata=en),Ct=en((G-Ne)/(We-Ne)))),Xe=Ee.s||Ce.e,lo=Ce.h===1?Ce.s[Ge]:Ce.s[Ge]+(Xe[Ge]-Ce.s[Ge])*Ct,this.propType==="multidimensional"?pe[Ge]=lo:pe=lo}return X.lastIndex=Qe,pe}function He(G,X,pe){var xe,Ce,Ee,Re,Qe,Ge=[],Rt=G[0],Jt=G[1],et=G[2],pt=G[3],Ct=X[0],Tt=X[1],Kt=X[2],en=X[3];return(Ce=Rt*Ct+Jt*Tt+et*Kt+pt*en)<0&&(Ce=-Ce,Ct=-Ct,Tt=-Tt,Kt=-Kt,en=-en),1-Ce>1e-6?(xe=Math.acos(Ce),Ee=Math.sin(xe),Re=Math.sin((1-pe)*xe)/Ee,Qe=Math.sin(pe*xe)/Ee):(Re=1-pe,Qe=pe),Ge[0]=Re*Rt+Qe*Ct,Ge[1]=Re*Jt+Qe*Tt,Ge[2]=Re*et+Qe*Kt,Ge[3]=Re*pt+Qe*en,Ge}function Ye(G,X){var pe=X[0],xe=X[1],Ce=X[2],Ee=X[3],Re=Math.atan2(2*xe*Ee-2*pe*Ce,1-2*xe*xe-2*Ce*Ce),Qe=Math.asin(2*pe*xe+2*Ce*Ee),Ge=Math.atan2(2*pe*Ee-2*xe*Ce,1-2*pe*pe-2*Ce*Ce);G[0]=Re/D,G[1]=Qe/D,G[2]=Ge/D}function it(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,Ce=Math.cos(X/2),Ee=Math.cos(pe/2),Re=Math.cos(xe/2),Qe=Math.sin(X/2),Ge=Math.sin(pe/2),Rt=Math.sin(xe/2);return[Qe*Ge*Re+Ce*Ee*Rt,Qe*Ee*Re+Ce*Ge*Rt,Ce*Ge*Re-Qe*Ee*Rt,Ce*Ee*Re-Qe*Ge*Rt]}function $t(){var G=this.comp.renderedFrame-this.offsetTime,X=this.keyframes[0].t-this.offsetTime,pe=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(G===this._caching.lastFrame||this._caching.lastFrame!==$e&&(this._caching.lastFrame>=pe&&G>=pe||this._caching.lastFrame<X&&G<X))){this._caching.lastFrame>=G&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var xe=this.interpolateValue(G,this._caching);this.pv=xe}return this._caching.lastFrame=G,this.pv}function lt(G){var X;if(this.propType==="unidimensional")X=G*this.mult,Me(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=G[pe]*this.mult,Me(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function Et(){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 G,X=this.effectsSequence.length,pe=this.kf?this.pv:this.data.k;for(G=0;G<X;G+=1)pe=this.effectsSequence[G](pe);this.setVValue(pe),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ut(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function Ve(G,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=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=Et,this.setVValue=lt,this.addEffect=ut}function kt(G,X,pe,xe){this.propType="multidimensional",this.mult=pe||1,this.data=X,this._mdf=!1,this.elem=G,this.container=xe,this.comp=G.comp,this.k=!1,this.kf=!1,this.frameId=-1;var Ce,Ee=X.k.length;for(this.v=y("float32",Ee),this.pv=y("float32",Ee),this.vel=y("float32",Ee),Ce=0;Ce<Ee;Ce+=1)this.v[Ce]=X.k[Ce]*this.mult,this.pv[Ce]=X.k[Ce];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Et,this.setVValue=lt,this.addEffect=ut}function vt(G,X,pe,xe){this.propType="unidimensional",this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.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=G,this.container=xe,this.comp=G.comp,this.v=$e,this.pv=$e,this._isFirstFrame=!0,this.getValue=Et,this.setVValue=lt,this.interpolateValue=Ke,this.effectsSequence=[$t.bind(this)],this.addEffect=ut}function xt(G,X,pe,xe){this.propType="multidimensional";var Ce,Ee,Re,Qe,Ge,Rt=X.k.length;for(Ce=0;Ce<Rt-1;Ce+=1)X.k[Ce].to&&X.k[Ce].s&&X.k[Ce+1]&&X.k[Ce+1].s&&(Ee=X.k[Ce].s,Re=X.k[Ce+1].s,Qe=X.k[Ce].to,Ge=X.k[Ce].ti,(Ee.length===2&&!(Ee[0]===Re[0]&&Ee[1]===Re[1])&&Ie.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Ee[0]+Qe[0],Ee[1]+Qe[1])&&Ie.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Re[0]+Ge[0],Re[1]+Ge[1])||Ee.length===3&&!(Ee[0]===Re[0]&&Ee[1]===Re[1]&&Ee[2]===Re[2])&&Ie.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])&&Ie.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Re[0]+Ge[0],Re[1]+Ge[1],Re[2]+Ge[2]))&&(X.k[Ce].to=null,X.k[Ce].ti=null),Ee[0]===Re[0]&&Ee[1]===Re[1]&&Qe[0]===0&&Qe[1]===0&&Ge[0]===0&&Ge[1]===0&&(Ee.length===2||Ee[2]===Re[2]&&Qe[2]===0&&Ge[2]===0)&&(X.k[Ce].to=null,X.k[Ce].ti=null));this.effectsSequence=[$t.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=G.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=pe||1,this.elem=G,this.container=xe,this.comp=G.comp,this.getValue=Et,this.setVValue=lt,this.interpolateValue=Ke,this.frameId=-1;var Jt=X.k[0].s.length;for(this.v=y("float32",Jt),this.pv=y("float32",Jt),Ce=0;Ce<Jt;Ce+=1)this.v[Ce]=$e,this.pv[Ce]=$e;this._caching={lastFrame:$e,lastIndex:0,value:y("float32",Jt)},this.addEffect=ut}var Ze=(function(){function G(X,pe,xe,Ce,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,Ce,Ee);else switch(xe){case 0:Re=new vt(X,pe,Ce,Ee);break;case 1:Re=new xt(X,pe,Ce,Ee)}else Re=new Ve(X,pe,Ce,Ee);return Re.effectsSequence.length&&Ee.addDynamicProperty(Re),Re}return{getProp:G}})();function Ot(){}Ot.prototype={addDynamicProperty:function(G){this.dynamicProperties.indexOf(G)===-1&&(this.dynamicProperties.push(G),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var G,X=this.dynamicProperties.length;for(G=0;G<X;G+=1)this.dynamicProperties[G].getValue(),this.dynamicProperties[G]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(G){this.container=G,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qt=(function(){function G(){return y("float32",2)}return Fe(8,G)})();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(G,X){this.c=G,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(G){for(;this._maxLength<G;)this.doubleArrayLength();this._length=G},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(G,X,pe,xe,Ce){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]&&!Ce)&&(Ee[xe]=Qt.newElement()),Ee[xe][0]=G,Ee[xe][1]=X},bt.prototype.setTripleAt=function(G,X,pe,xe,Ce,Ee,Re,Qe){this.setXYAt(G,X,"v",Re,Qe),this.setXYAt(pe,xe,"o",Re,Qe),this.setXYAt(Ce,Ee,"i",Re,Qe)},bt.prototype.reverse=function(){var G=new bt;G.setPathData(this.c,this._length);var X=this.v,pe=this.o,xe=this.i,Ce=0;this.c&&(G.setTripleAt(X[0][0],X[0][1],xe[0][0],xe[0][1],pe[0][0],pe[0][1],0,!1),Ce=1);var Ee,Re=this._length-1,Qe=this._length;for(Ee=Ce;Ee<Qe;Ee+=1)G.setTripleAt(X[Re][0],X[Re][1],xe[Re][0],xe[Re][1],pe[Re][0],pe[Re][1],Ee,!1),Re-=1;return G},bt.prototype.length=function(){return this._length};var Mt=(function(){function G(){return new bt}function X(Ce){var Ee,Re=Ce._length;for(Ee=0;Ee<Re;Ee+=1)Qt.release(Ce.v[Ee]),Qt.release(Ce.i[Ee]),Qt.release(Ce.o[Ee]),Ce.v[Ee]=null,Ce.i[Ee]=null,Ce.o[Ee]=null;Ce._length=0,Ce.c=!1}function pe(Ce){var Ee,Re=xe.newElement(),Qe=Ce._length===void 0?Ce.v.length:Ce._length;for(Re.setLength(Qe),Re.c=Ce.c,Ee=0;Ee<Qe;Ee+=1)Re.setTripleAt(Ce.v[Ee][0],Ce.v[Ee][1],Ce.o[Ee][0],Ce.o[Ee][1],Ce.i[Ee][0],Ce.i[Ee][1],Ee);return Re}var xe=Fe(4,G,X);return xe.clone=pe,xe})();function cn(){this._length=0,this._maxLength=4,this.shapes=b(this._maxLength)}cn.prototype.addShape=function(G){this._length===this._maxLength&&(this.shapes=this.shapes.concat(b(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=G,this._length+=1},cn.prototype.releaseShapes=function(){var G;for(G=0;G<this._length;G+=1)Mt.release(this.shapes[G]);this._length=0};var gn=(function(){var G={newShapeCollection:Ce,release:Ee},X=0,pe=4,xe=b(pe);function Ce(){return X?xe[X-=1]:new cn}function Ee(Re){var Qe,Ge=Re._length;for(Qe=0;Qe<Ge;Qe+=1)Mt.release(Re.shapes[Qe]);Re._length=0,X===pe&&(xe=Te.double(xe),pe*=2),xe[X]=Re,X+=1}return G})(),rt=(function(){var G=-999999;function X(Xe,We,Ne){var qe,gt,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 fn,ft,ct,ze=lo,ht=Vt.length-1,wt=!0;wt&&(fn=Vt[ze],!((ft=Vt[ze+1]).t-this.offsetTime>Xe));)ze<ht-1?ze+=1:wt=!1;if(ct=this.keyframesMetadata[ze]||{},lo=ze,!(rn=fn.h===1)){if(Xe>=ft.t-this.offsetTime)ci=1;else if(Xe<fn.t-this.offsetTime)ci=0;else{var xi;ct.__fnct?xi=ct.__fnct:(xi=Le.getBezierEasing(fn.o.x,fn.o.y,fn.i.x,fn.i.y).get,ct.__fnct=xi),ci=xi((Xe-(fn.t-this.offsetTime))/(ft.t-this.offsetTime-(fn.t-this.offsetTime)))}gt=ft.s?ft.s[0]:fn.e[0]}qe=fn.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]+(gt.i[sn][zt]-qe.i[sn][zt])*ci,We.i[sn][zt]=Ko,Ko=rn?qe.o[sn][zt]:qe.o[sn][zt]+(gt.o[sn][zt]-qe.o[sn][zt])*ci,We.o[sn][zt]=Ko,Ko=rn?qe.v[sn][zt]:qe.v[sn][zt]+(gt.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!==G&&(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 Ce(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){Ce(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 Ge(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=G,this.reset=xe,this._caching={lastFrame:G,lastIndex:0},this.effectsSequence=[pe.bind(this)]}Qe.prototype.interpolateShape=X,Qe.prototype.getValue=Re,Qe.prototype.setVValue=Ee,Qe.prototype.addEffect=Ge,Rt.prototype.getValue=Re,Rt.prototype.interpolateShape=X,Rt.prototype.setVValue=Ee,Rt.prototype.addEffect=Ge;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],gt=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+gt:Ne-gt,zt.v[1][1]=qe,zt.v[2][0]=Ne,zt.v[2][1]=qe+rn,zt.v[3][0]=sn?Ne-gt:Ne+gt,zt.v[3][1]=qe,zt.i[0][0]=sn?Ne-gt*Xe:Ne+gt*Xe,zt.i[0][1]=qe-rn,zt.i[1][0]=sn?Ne+gt:Ne-gt,zt.i[1][1]=qe-rn*Xe,zt.i[2][0]=sn?Ne+gt*Xe:Ne-gt*Xe,zt.i[2][1]=qe+rn,zt.i[3][0]=sn?Ne-gt:Ne+gt,zt.i[3][1]=qe+rn*Xe,zt.o[0][0]=sn?Ne+gt*Xe:Ne-gt*Xe,zt.o[0][1]=qe-rn,zt.o[1][0]=sn?Ne+gt:Ne-gt,zt.o[1][1]=qe+rn*Xe,zt.o[2][0]=sn?Ne-gt*Xe:Ne+gt*Xe,zt.o[2][1]=qe+rn,zt.o[3][0]=sn?Ne-gt:Ne+gt,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,gt,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),fn=-Math.PI/2;fn+=this.r.v;var ft=this.data.d===3?-1:1;for(this.v._length=0,We=0;We<rn;We+=1){qe=zt?ci:Ko,gt=zt?lo:Vt;var ct=(Ne=zt?po:Eo)*Math.cos(fn),ze=Ne*Math.sin(fn),ht=ct===0&&ze===0?0:ze/Math.sqrt(ct*ct+ze*ze),wt=ct===0&&ze===0?0:-ct/Math.sqrt(ct*ct+ze*ze);ct+=+this.p.v[0],ze+=+this.p.v[1],this.v.setTripleAt(ct,ze,ct-ht*gt*qe*ft,ze-wt*gt*qe*ft,ct+ht*gt*qe*ft,ze+wt*gt*qe*ft,We,!0),zt=!zt,fn+=sn*ft}},convertPolygonToPath:function(){var We,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,gt=this.or.v,rn=this.os.v,sn=2*Math.PI*gt/(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=gt*Math.cos(zt),ci=gt*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,gt=this.s.v[1]/2,rn=I(qe,gt,this.r.v),sn=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(We+qe,Ne-gt+rn,We+qe,Ne-gt+rn,We+qe,Ne-gt+sn,0,!0),this.v.setTripleAt(We+qe,Ne+gt-rn,We+qe,Ne+gt-sn,We+qe,Ne+gt-rn,1,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne+gt,We+qe-rn,Ne+gt,We+qe-sn,Ne+gt,2,!0),this.v.setTripleAt(We-qe+rn,Ne+gt,We-qe+sn,Ne+gt,We-qe+rn,Ne+gt,3,!0),this.v.setTripleAt(We-qe,Ne+gt-rn,We-qe,Ne+gt-rn,We-qe,Ne+gt-sn,4,!0),this.v.setTripleAt(We-qe,Ne-gt+rn,We-qe,Ne-gt+sn,We-qe,Ne-gt+rn,5,!0),this.v.setTripleAt(We-qe+rn,Ne-gt,We-qe+rn,Ne-gt,We-qe+sn,Ne-gt,6,!0),this.v.setTripleAt(We+qe-rn,Ne-gt,We+qe-sn,Ne-gt,We+qe-rn,Ne-gt,7,!0)):(this.v.setTripleAt(We-qe,Ne+gt,We-qe+sn,Ne+gt,We-qe,Ne+gt,2),this.v.setTripleAt(We-qe,Ne-gt,We-qe,Ne-gt+sn,We-qe,Ne-gt,3))):(this.v.setTripleAt(We+qe,Ne-gt+rn,We+qe,Ne-gt+sn,We+qe,Ne-gt+rn,0,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne-gt,We+qe-rn,Ne-gt,We+qe-sn,Ne-gt,1,!0),this.v.setTripleAt(We-qe+rn,Ne-gt,We-qe+sn,Ne-gt,We-qe+rn,Ne-gt,2,!0),this.v.setTripleAt(We-qe,Ne-gt+rn,We-qe,Ne-gt+rn,We-qe,Ne-gt+sn,3,!0),this.v.setTripleAt(We-qe,Ne+gt-rn,We-qe,Ne+gt-sn,We-qe,Ne+gt-rn,4,!0),this.v.setTripleAt(We-qe+rn,Ne+gt,We-qe+rn,Ne+gt,We-qe+sn,Ne+gt,5,!0),this.v.setTripleAt(We+qe-rn,Ne+gt,We+qe-sn,Ne+gt,We+qe-rn,Ne+gt,6,!0),this.v.setTripleAt(We+qe,Ne+gt-rn,We+qe,Ne+gt-rn,We+qe,Ne+gt-sn,7,!0)):(this.v.setTripleAt(We-qe,Ne-gt,We-qe+sn,Ne-gt,We-qe,Ne-gt,1,!0),this.v.setTripleAt(We-qe,Ne+gt,We-qe,Ne+gt-sn,We-qe,Ne+gt,2,!0),this.v.setTripleAt(We+qe,Ne+gt,We+qe-sn,Ne+gt,We+qe,Ne+gt,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 Ct(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=Ct,en.getConstructorFunction=Tt,en.getKeyframedConstructorFunction=Kt,en})(),At=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function Ce(){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=G(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=G(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=G(ze),wt=X(ze);return this._t(ht,0,wt,0,0,1,0,0,-wt,0,ht,0,0,0,0,1)}function Ge(ze){if(ze===0)return this;var ht=G(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=G(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 Ct(ze,ht,wt,xi,Zo,Po,Ca,Jo,fl,ga,Ja,j0,y2,$0,E0,eh){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]=Ja,this.props[11]=j0,this.props[12]=y2,this.props[13]=$0,this.props[14]=E0,this.props[15]=eh,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,Ja,j0,y2,$0,E0,eh){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&&Ja===1&&j0===0)return dr[12]=dr[12]*ze+dr[15]*y2,dr[13]=dr[13]*Po+dr[15]*$0,dr[14]=dr[14]*Ja+dr[15]*E0,dr[15]*=eh,this._identityCalculated=!1,this;var Ak=dr[0],Sk=dr[1],xw=dr[2],Uf=dr[3],g5=dr[4],th=dr[5],V7=dr[6],H7=dr[7],b2=dr[8],U7=dr[9],w2=dr[10],yw=dr[11],L_=dr[12],B_=dr[13],P_=dr[14],M_=dr[15];return dr[0]=Ak*ze+Sk*Zo+xw*fl+Uf*y2,dr[1]=Ak*ht+Sk*Po+xw*ga+Uf*$0,dr[2]=Ak*wt+Sk*Ca+xw*Ja+Uf*E0,dr[3]=Ak*xi+Sk*Jo+xw*j0+Uf*eh,dr[4]=g5*ze+th*Zo+V7*fl+H7*y2,dr[5]=g5*ht+th*Po+V7*ga+H7*$0,dr[6]=g5*wt+th*Ca+V7*Ja+H7*E0,dr[7]=g5*xi+th*Jo+V7*j0+H7*eh,dr[8]=b2*ze+U7*Zo+w2*fl+yw*y2,dr[9]=b2*ht+U7*Po+w2*ga+yw*$0,dr[10]=b2*wt+U7*Ca+w2*Ja+yw*E0,dr[11]=b2*xi+U7*Jo+w2*j0+yw*eh,dr[12]=L_*ze+B_*Zo+P_*fl+M_*y2,dr[13]=L_*ht+B_*Po+P_*ga+M_*$0,dr[14]=L_*wt+B_*Ca+P_*Ja+M_*E0,dr[15]=L_*xi+B_*Jo+P_*j0+M_*eh,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 gt(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 At;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 fn(){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 ft(ze){var ht=1e4;return ze<1e-6&&ze>0||ze>-1e-6&&ze<0?xe(ze*ht)/ht:ze}function ct(){var ze=this.props;return"matrix("+ft(ze[0])+","+ft(ze[1])+","+ft(ze[4])+","+ft(ze[5])+","+ft(ze[12])+","+ft(ze[13])+")"}return function(){this.reset=Ce,this.rotate=Ee,this.rotateX=Re,this.rotateY=Qe,this.rotateZ=Ge,this.skew=Jt,this.skewFromAxis=et,this.shear=Rt,this.scale=pt,this.setTransform=Ct,this.translate=Tt,this.transform=Kt,this.multiply=en,this.applyToPoint=gt,this.applyToX=rn,this.applyToY=sn,this.applyToZ=zt,this.applyToPointArray=lo,this.applyToTriplePoints=Ko,this.applyToPointStringified=Vt,this.toCSS=fn,this.to2dCSS=ct,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 yn(G){return yn=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},yn(G)}var Yt={};function an(G){u(G)}function Zt(){Pe.searchAnimations()}function tt(G){K(G)}function kn(G){re(G)}function Bn(G){return Pe.loadAnimation(G)}function gi(G){if(typeof G=="string")switch(G){case"high":ne(200);break;default:case"medium":ne(50);break;case"low":ne(10)}else!isNaN(G)&&G>1&&ne(G)}function to(){return typeof navigator<"u"}function ui(G,X){G==="expressions"&&ee(X)}function Xt(G){switch(G){case"propertyFactory":return Ze;case"shapePropertyFactory":return rt;case"matrix":return At;default:return null}}function Rn(){document.readyState==="complete"&&(clearInterval(Xn),Zt())}function Yn(G){for(var X=Gn.split("&"),pe=0;pe<X.length;pe+=1){var xe=X[pe].split("=");if(decodeURIComponent(xe[0])==G)return decodeURIComponent(xe[1])}return null}Yt.play=Pe.play,Yt.pause=Pe.pause,Yt.setLocationHref=an,Yt.togglePause=Pe.togglePause,Yt.setSpeed=Pe.setSpeed,Yt.setDirection=Pe.setDirection,Yt.stop=Pe.stop,Yt.searchAnimations=Zt,Yt.registerAnimation=Pe.registerAnimation,Yt.loadAnimation=Bn,Yt.setSubframeRendering=tt,Yt.resize=Pe.resize,Yt.goToAndStop=Pe.goToAndStop,Yt.destroy=Pe.destroy,Yt.setQuality=gi,Yt.inBrowser=to,Yt.installPlugin=ui,Yt.freeze=Pe.freeze,Yt.unfreeze=Pe.unfreeze,Yt.setVolume=Pe.setVolume,Yt.mute=Pe.mute,Yt.unmute=Pe.unmute,Yt.getRegisteredAnimations=Pe.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,An=ei[pi]||{src:""};Gn=An.src?An.src.replace(/^[^\?]+\??/,""):"",Yn("renderer");var Xn=setInterval(Rn,100);try{yn(n)!=="object"&&(window.bodymovin=Yt)}catch{}var un=(function(){var G={},X={};function pe(Ce,Ee){X[Ce]||(X[Ce]=Ee)}function xe(Ce,Ee,Re){return new X[Ce](Ee,Re)}return G.registerModifier=pe,G.getModifier=xe,G})();function Tn(){}function It(){}function Ft(){}Tn.prototype.initModifierProperties=function(){},Tn.prototype.addShapeToModifier=function(){},Tn.prototype.addShape=function(G){if(!this.closed){G.sh.container.addDynamicProperty(G.sh);var X={shape:G.sh,data:G,localShapeCollection:gn.newShapeCollection()};this.shapes.push(X),this.addShapeToModifier(X),this._isAnimated&&G.setAsAnimated()}},Tn.prototype.init=function(G,X){this.shapes=[],this.elem=G,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,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(G,X){this.s=Ze.getProp(G,X.s,0,.01,this),this.e=Ze.getProp(G,X.e,0,.01,this),this.o=Ze.getProp(G,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(G){G.pathsData=[]},It.prototype.calculateShapeEdges=function(G,X,pe,xe,Ce){var Ee=[];X<=1?Ee.push({s:G,e:X}):G>=1?Ee.push({s:G-1,e:X-1}):(Ee.push({s:G,e:1}),Ee.push({s:0,e:X-1}));var Re,Qe,Ge=[],Rt=Ee.length;for(Re=0;Re<Rt;Re+=1)if(!((Qe=Ee[Re]).e*Ce<xe||Qe.s*Ce>xe+pe)){var Jt,et;Jt=Qe.s*Ce<=xe?0:(Qe.s*Ce-xe)/pe,et=Qe.e*Ce>=xe+pe?1:(Qe.e*Ce-xe)/pe,Ge.push([Jt,et])}return Ge.length||Ge.push([0,0]),Ge},It.prototype.releasePathsData=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)ke.release(G[X]);return G.length=0,G},It.prototype.processShapes=function(G){var X,pe;if(this._mdf||G){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 Ce=X;X=pe,pe=Ce}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,Ge,Rt,Jt,et,pt=this.shapes.length,Ct=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||G||this.m===2){if(Ge=(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<Ge;Qe+=1)Jt=Ie.getSegmentsLength(Ee.shapes[Qe]),Rt.push(Jt),et+=Jt.totalLength;Tt.totalShapeLength=et,Tt.pathsData=Rt}Ct+=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,Ct),qe+=Tt.totalShapeLength):Xe=[[We,Ne]],Ge=Xe.length,Qe=0;Qe<Ge;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 gt=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=gt.pop();this.addPaths(gt,Kt),gt=this.addShapes(Tt,en[1],rn)}else this.addPaths(gt,Kt),gt=this.addShapes(Tt,en[1]);this.addPaths(gt,Kt)}}Tt.shape.paths=Kt}}},It.prototype.addPaths=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)X.addShape(G[pe])},It.prototype.addSegment=function(G,X,pe,xe,Ce,Ee,Re){Ce.setXYAt(X[0],X[1],"o",Ee),Ce.setXYAt(pe[0],pe[1],"i",Ee+1),Re&&Ce.setXYAt(G[0],G[1],"v",Ee),Ce.setXYAt(xe[0],xe[1],"v",Ee+1)},It.prototype.addSegmentFromArray=function(G,X,pe,xe){X.setXYAt(G[1],G[5],"o",pe),X.setXYAt(G[2],G[6],"i",pe+1),xe&&X.setXYAt(G[0],G[4],"v",pe),X.setXYAt(G[3],G[7],"v",pe+1)},It.prototype.addShapes=function(G,X,pe){var xe,Ce,Ee,Re,Qe,Ge,Rt,Jt,et=G.pathsData,pt=G.shape.paths.shapes,Ct=G.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<Ct;xe+=1){for(Ge=et[xe].lengths,pe.c=pt[xe].c,Ee=pt[xe].c?Ge.length:Ge.length+1,Ce=1;Ce<Ee;Ce+=1)if(Tt+(Re=Ge[Ce-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[Ce-1],pt[xe].o[Ce-1],pt[xe].i[Ce],pt[xe].v[Ce],pe,Qe,en),en=!1):(Rt=Ie.getNewSegment(pt[xe].v[Ce-1],pt[xe].v[Ce],pt[xe].o[Ce-1],pt[xe].i[Ce],(X.s-Tt)/Re.addedLength,(X.e-Tt)/Re.addedLength,Ge[Ce-1]),this.addSegmentFromArray(Rt,pe,Qe,en),en=!1,pe.c=!1),Tt+=Re.addedLength,Qe+=1}if(pt[xe].c&&Ge.length){if(Re=Ge[Ce-1],Tt<=X.e){var Xe=Ge[Ce-1].addedLength;X.s<=Tt&&X.e>=Tt+Xe?(this.addSegment(pt[xe].v[Ce-1],pt[xe].o[Ce-1],pt[xe].i[0],pt[xe].v[0],pe,Qe,en),en=!1):(Rt=Ie.getNewSegment(pt[xe].v[Ce-1],pt[xe].v[0],pt[xe].o[Ce-1],pt[xe].i[0],(X.s-Tt)/Xe,(X.e-Tt)/Xe,Ge[Ce-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<Ct-1&&(pe=Mt.newElement(),en=!0,Kt.push(pe),Qe=0)}return Kt},g([Tn],Ft),Ft.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ze.getProp(G,X.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ft.prototype.processPath=function(G,X){var pe=X/100,xe=[0,0],Ce=G._length,Ee=0;for(Ee=0;Ee<Ce;Ee+=1)xe[0]+=G.v[Ee][0],xe[1]+=G.v[Ee][1];xe[0]/=Ce,xe[1]/=Ce;var Re,Qe,Ge,Rt,Jt,et,pt=Mt.newElement();for(pt.c=G.c,Ee=0;Ee<Ce;Ee+=1)Re=G.v[Ee][0]+(xe[0]-G.v[Ee][0])*pe,Qe=G.v[Ee][1]+(xe[1]-G.v[Ee][1])*pe,Ge=G.o[Ee][0]+(xe[0]-G.o[Ee][0])*-pe,Rt=G.o[Ee][1]+(xe[1]-G.o[Ee][1])*-pe,Jt=G.i[Ee][0]+(xe[0]-G.i[Ee][0])*-pe,et=G.i[Ee][1]+(xe[1]-G.i[Ee][1])*-pe,pt.setTripleAt(Re,Qe,Ge,Rt,Jt,et,Ee);return pt},Ft.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ge=this.amount.v;if(Ge!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ge));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Bt=(function(){var G=[0,0];function X(Ge){var Rt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Rt,this.a&&Ge.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Ge.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Ge.skewFromAxis(-this.sk.v,this.sa.v),this.r?Ge.rotate(-this.r.v):Ge.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?Ge.translate(this.px.v,this.py.v,-this.pz.v):Ge.translate(this.px.v,this.py.v,0):Ge.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Ge){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Ge){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,Ct=this.py;pt._caching.lastFrame+pt.offsetTime<=pt.keyframes[0].t?(Jt[0]=pt.getValueAtTime((pt.keyframes[0].t+.01)/Rt,0),Jt[1]=Ct.getValueAtTime((Ct.keyframes[0].t+.01)/Rt,0),et[0]=pt.getValueAtTime(pt.keyframes[0].t/Rt,0),et[1]=Ct.getValueAtTime(Ct.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]=Ct.getValueAtTime(Ct.keyframes[Ct.keyframes.length-1].t/Rt,0),et[0]=pt.getValueAtTime((pt.keyframes[pt.keyframes.length-1].t-.01)/Rt,0),et[1]=Ct.getValueAtTime((Ct.keyframes[Ct.keyframes.length-1].t-.01)/Rt,0)):(Jt=[pt.pv,Ct.pv],et[0]=pt.getValueAtTime((pt._caching.lastFrame+pt.offsetTime-.01)/Rt,pt.offsetTime),et[1]=Ct.getValueAtTime((Ct._caching.lastFrame+Ct.offsetTime-.01)/Rt,Ct.offsetTime))}else Jt=et=G;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 Ce(){}function Ee(Ge){this._addDynamicProperty(Ge),this.elem.addDynamicProperty(Ge),this._isDirty=!0}function Re(Ge,Rt,Jt){if(this.elem=Ge,this.frameId=-1,this.propType="transform",this.data=Rt,this.v=new At,this.pre=new At,this.appliedTransformations=0,this.initDynamicPropertyContainer(Jt||Ge),Rt.p&&Rt.p.s?(this.px=Ze.getProp(Ge,Rt.p.x,0,0,this),this.py=Ze.getProp(Ge,Rt.p.y,0,0,this),Rt.p.z&&(this.pz=Ze.getProp(Ge,Rt.p.z,0,0,this))):this.p=Ze.getProp(Ge,Rt.p||{k:[0,0,0]},1,0,this),Rt.rx){if(this.rx=Ze.getProp(Ge,Rt.rx,0,D,this),this.ry=Ze.getProp(Ge,Rt.ry,0,D,this),this.rz=Ze.getProp(Ge,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(Ge,Rt.or,1,D,this),this.or.sh=!0}else this.r=Ze.getProp(Ge,Rt.r||{k:0},0,D,this);Rt.sk&&(this.sk=Ze.getProp(Ge,Rt.sk,0,D,this),this.sa=Ze.getProp(Ge,Rt.sa,0,D,this)),this.a=Ze.getProp(Ge,Rt.a||{k:[0,0,0]},1,0,this),this.s=Ze.getProp(Ge,Rt.s||{k:[100,100,100]},1,.01,this),Rt.o?this.o=Ze.getProp(Ge,Rt.o,0,.01,Ge):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Qe(Ge,Rt,Jt){return new Re(Ge,Rt,Jt)}return Re.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ce},g([Ot],Re),Re.prototype.addDynamicProperty=Ee,Re.prototype._addDynamicProperty=Ot.prototype.addDynamicProperty,{getTransformProperty:Qe}})();function On(){}function _n(){}function Ht(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Di(G){return Math.abs(G)<=1e-5}function si(G,X,pe){return G*(1-pe)+X*pe}function $o(G,X,pe){return[si(G[0],X[0],pe),si(G[1],X[1],pe)]}function qi(G,X,pe){if(G===0)return[];var xe=X*X-4*G*pe;if(xe<0)return[];var Ce=-X/(2*G);if(xe===0)return[Ce];var Ee=Math.sqrt(xe)/(2*G);return[Ce-Ee,Ce+Ee]}function wi(G,X,pe,xe){return[3*X-G-3*pe+xe,3*G-6*X+3*pe,-3*G+3*X,G]}function Un(G){return new pn(G,G,G,G,!1)}function pn(G,X,pe,xe,Ce){Ce&&so(G,X)&&(X=$o(G,xe,1/3)),Ce&&so(pe,xe)&&(pe=$o(G,xe,2/3));var Ee=wi(G[0],X[0],pe[0],xe[0]),Re=wi(G[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=[G,X,pe,xe]}function Gt(G,X){var pe=G.points[0][X],xe=G.points[G.points.length-1][X];if(pe>xe){var Ce=xe;xe=pe,pe=Ce}for(var Ee=qi(3*G.a[X],2*G.b[X],G.c[X]),Re=0;Re<Ee.length;Re+=1)if(Ee[Re]>0&&Ee[Re]<1){var Qe=G.point(Ee[Re])[X];Qe<pe?pe=Qe:Qe>xe&&(xe=Qe)}return{min:pe,max:xe}}function bn(G,X,pe){var xe=G.boundingBox();return{cx:xe.cx,cy:xe.cy,width:xe.width,height:xe.height,bez:G,t:(X+pe)/2,t1:X,t2:pe}}function Vn(G){var X=G.bez.split(.5);return[bn(X[0],G.t1,G.t),bn(X[1],G.t,G.t2)]}function Cn(G,X){return 2*Math.abs(G.cx-X.cx)<G.width+X.width&&2*Math.abs(G.cy-X.cy)<G.height+X.height}function Wt(G,X,pe,xe,Ce,Ee){if(Cn(G,X)){if(pe>=Ee||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void Ce.push([G.t,X.t]);var Re=Vn(G),Qe=Vn(X);Wt(Re[0],Qe[0],pe+1,xe,Ce,Ee),Wt(Re[0],Qe[1],pe+1,xe,Ce,Ee),Wt(Re[1],Qe[0],pe+1,xe,Ce,Ee),Wt(Re[1],Qe[1],pe+1,xe,Ce,Ee)}}function Pn(G,X){return[G[1]*X[2]-G[2]*X[1],G[2]*X[0]-G[0]*X[2],G[0]*X[1]-G[1]*X[0]]}function Ki(G,X,pe,xe){var Ce=[G[0],G[1],1],Ee=[X[0],X[1],1],Re=[pe[0],pe[1],1],Qe=[xe[0],xe[1],1],Ge=Pn(Pn(Ce,Ee),Pn(Re,Qe));return Di(Ge[2])?null:[Ge[0]/Ge[2],Ge[1]/Ge[2]]}function Zi(G,X,pe){return[G[0]+Math.cos(X)*pe,G[1]-Math.sin(X)*pe]}function Qo(G,X){return Math.hypot(G[0]-X[0],G[1]-X[1])}function so(G,X){return Ht(G[0],X[0])&&Ht(G[1],X[1])}function ha(){}function xr(G,X,pe,xe,Ce,Ee,Re){var Qe=pe-Math.PI/2,Ge=pe+Math.PI/2,Rt=X[0]+Math.cos(pe)*xe*Ce,Jt=X[1]-Math.sin(pe)*xe*Ce;G.setTripleAt(Rt,Jt,Rt+Math.cos(Qe)*Ee,Jt-Math.sin(Qe)*Ee,Rt+Math.cos(Ge)*Re,Jt-Math.sin(Ge)*Re,G.length())}function Da(G,X){var pe=[X[0]-G[0],X[1]-G[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(G,X){var pe=X===0?G.length()-1:X-1,xe=(X+1)%G.length(),Ce=Da(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(Ce[1],Ce[0])}function Dt(G,X,pe,xe,Ce,Ee,Re){var Qe=En(X,pe),Ge=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(Ge[0]-Rt[0],2)+Math.pow(Ge[1]-Rt[1],2)):0,pt=Ee===2?Math.sqrt(Math.pow(Ge[0]-Jt[0],2)+Math.pow(Ge[1]-Jt[1],2)):0;xr(G,X.v[pe%X._length],Qe,Re,xe,pt/(2*(Ce+1)),et/(2*(Ce+1)))}function Mn(G,X,pe,xe,Ce,Ee){for(var Re=0;Re<xe;Re+=1){var Qe=(Re+1)/(xe+1),Ge=Ce===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);xr(G,X.point(Qe),Rt,Ee,pe,Ge/(2*(xe+1)),Ge/(2*(xe+1))),Ee=-Ee}return Ee}function Bi(G,X,pe){var xe=Math.atan2(X[0]-G[0],X[1]-G[1]);return[Zi(G,xe,pe),Zi(X,xe,pe)]}function Pi(G,X){var pe,xe,Ce,Ee,Re,Qe,Ge;pe=(Ge=Bi(G.points[0],G.points[1],X))[0],xe=Ge[1],Ce=(Ge=Bi(G.points[1],G.points[2],X))[0],Ee=Ge[1],Re=(Ge=Bi(G.points[2],G.points[3],X))[0],Qe=Ge[1];var Rt=Ki(pe,xe,Ce,Ee);Rt===null&&(Rt=xe);var Jt=Ki(Re,Qe,Ce,Ee);return Jt===null&&(Jt=Re),new pn(pe,Rt,Jt,Qe)}function Wi(G,X,pe,xe,Ce){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),Ge=-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 G.setXYAt(et[0],et[1],"o",G.length()-1),et=Zi(Re,Ge,2*Jt*L),G.setTripleAt(Re[0],Re[1],Re[0],Re[1],et[0],et[1],G.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)<Ce?(G.setTripleAt(pt[0],pt[1],pt[0],pt[1],pt[0],pt[1],G.length()),pt):Ee}function vi(G,X){var pe=G.intersections(X);return pe.length&&Ht(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Vo(G,X){var pe=G.slice(),xe=X.slice(),Ce=vi(G[G.length-1],X[0]);return Ce&&(pe[G.length-1]=G[G.length-1].split(Ce[0])[0],xe[0]=X[0].split(Ce[1])[1]),G.length>1&&X.length>1&&(Ce=vi(G[0],X[X.length-1]))?[[G[0].split(Ce[0])[0]],[X[X.length-1].split(Ce[1])[1]]]:[pe,xe]}function fi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Vo(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Vo(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function fo(G,X){var pe,xe,Ce,Ee,Re=G.inflectionPoints();if(Re.length===0)return[Pi(G,X)];if(Re.length===1||Ht(Re[1],1))return pe=(Ce=G.split(Re[0]))[0],xe=Ce[1],[Pi(pe,X),Pi(xe,X)];pe=(Ce=G.split(Re[0]))[0];var Qe=(Re[1]-Re[0])/(1-Re[0]);return Ee=(Ce=Ce[1].split(Qe))[0],xe=Ce[1],[Pi(pe,X),Pi(Ee,X),Pi(xe,X)]}function yr(){}function _t(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",Ce="normal",Ee=pe.length,Re=0;Re<Ee;Re+=1)switch(X=pe[Re].toLowerCase(),X){case"italic":Ce="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:Ce,weight:G.fWeight||xe}}g([Tn],On),On.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.c=Ze.getProp(G,X.c,0,null,this),this.o=Ze.getProp(G,X.o,0,null,this),this.tr=Bt.getTransformProperty(G,X.tr,this),this.so=Ze.getProp(G,X.tr.so,0,.01,this),this.eo=Ze.getProp(G,X.tr.eo,0,.01,this),this.data=X,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new At,this.rMatrix=new At,this.sMatrix=new At,this.tMatrix=new At,this.matrix=new At},On.prototype.applyTransforms=function(G,X,pe,xe,Ce,Ee){var Re=Ee?-1:1,Qe=xe.s.v[0]+(1-xe.s.v[0])*(1-Ce),Ge=xe.s.v[1]+(1-xe.s.v[1])*(1-Ce);G.translate(xe.p.v[0]*Re*Ce,xe.p.v[1]*Re*Ce,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Re*Ce),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/Ge:Ge),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},On.prototype.init=function(G,X,pe,xe){for(this.elem=G,this.arr=X,this.pos=pe,this.elemsData=xe,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(G),this.initModifierProperties(G,X[pe]);pe>0;)pe-=1,this._elements.unshift(X[pe]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},On.prototype.resetElements=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X]._processed=!1,G[X].ty==="gr"&&this.resetElements(G[X].it)},On.prototype.cloneElements=function(G){var X=JSON.parse(JSON.stringify(G));return this.resetElements(X),X},On.prototype.changeGroupRender=function(G,X){var pe,xe=G.length;for(pe=0;pe<xe;pe+=1)G[pe]._render=X,G[pe].ty==="gr"&&this.changeGroupRender(G[pe].it,X)},On.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re=!1;if(this._mdf||G){var Qe,Ge=Math.ceil(this.c.v);if(this._groups.length<Ge){for(;this._groups.length<Ge;){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<Ge,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=Ge;var pt=this.o.v,Ct=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;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Ct,!1),qe+=Ct)}else if(pt<0){for(;qe>Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;Ct&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Ct,!0),qe-=Ct)}for(xe=this.data.m===1?0:this._currentCopies-1,Ce=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&&Ce===1||xe!==this._currentCopies-1&&Ce===-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+=Ce}}else for(Ee=this._currentCopies,xe=0,Ce=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+=Ce;return Re},On.prototype.addShape=function(){},g([Tn],_n),_n.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.rd=Ze.getProp(G,X.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},_n.prototype.processPath=function(G,X){var pe=Mt.newElement();pe.c=G.c;var xe,Ce,Ee,Re,Qe,Ge,Rt,Jt,et,pt,Ct,Tt,Kt,en=G._length,Xe=0;for(xe=0;xe<en;xe+=1)Ce=G.v[xe],Re=G.o[xe],Ee=G.i[xe],Ce[0]===Re[0]&&Ce[1]===Re[1]&&Ce[0]===Ee[0]&&Ce[1]===Ee[1]?xe!==0&&xe!==en-1||G.c?(Qe=xe===0?G.v[en-1]:G.v[xe-1],Rt=(Ge=Math.sqrt(Math.pow(Ce[0]-Qe[0],2)+Math.pow(Ce[1]-Qe[1],2)))?Math.min(Ge/2,X)/Ge:0,Jt=Tt=Ce[0]+(Qe[0]-Ce[0])*Rt,et=Kt=Ce[1]-(Ce[1]-Qe[1])*Rt,pt=Jt-(Jt-Ce[0])*L,Ct=et-(et-Ce[1])*L,pe.setTripleAt(Jt,et,pt,Ct,Tt,Kt,Xe),Xe+=1,Qe=xe===en-1?G.v[0]:G.v[xe+1],Rt=(Ge=Math.sqrt(Math.pow(Ce[0]-Qe[0],2)+Math.pow(Ce[1]-Qe[1],2)))?Math.min(Ge/2,X)/Ge:0,Jt=pt=Ce[0]+(Qe[0]-Ce[0])*Rt,et=Ct=Ce[1]+(Qe[1]-Ce[1])*Rt,Tt=Jt-(Jt-Ce[0])*L,Kt=et-(et-Ce[1])*L,pe.setTripleAt(Jt,et,pt,Ct,Tt,Kt,Xe),Xe+=1):(pe.setTripleAt(Ce[0],Ce[1],Re[0],Re[1],Ee[0],Ee[1],Xe),Xe+=1):(pe.setTripleAt(G.v[xe][0],G.v[xe][1],G.o[xe][0],G.o[xe][1],G.i[xe][0],G.i[xe][1],Xe),Xe+=1);return pe},_n.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ge=this.rd.v;if(Ge!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ge));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},pn.prototype.point=function(G){return[((this.a[0]*G+this.b[0])*G+this.c[0])*G+this.d[0],((this.a[1]*G+this.b[1])*G+this.c[1])*G+this.d[1]]},pn.prototype.derivative=function(G){return[(3*G*this.a[0]+2*this.b[0])*G+this.c[0],(3*G*this.a[1]+2*this.b[1])*G+this.c[1]]},pn.prototype.tangentAngle=function(G){var X=this.derivative(G);return Math.atan2(X[1],X[0])},pn.prototype.normalAngle=function(G){var X=this.derivative(G);return Math.atan2(X[0],X[1])},pn.prototype.inflectionPoints=function(){var G=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Di(G))return[];var X=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/G,pe=X*X-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/G;if(pe<0)return[];var xe=Math.sqrt(pe);return Di(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ce){return Ce>0&&Ce<1}))},pn.prototype.split=function(G){if(G<=0)return[Un(this.points[0]),this];if(G>=1)return[this,Un(this.points[this.points.length-1])];var X=$o(this.points[0],this.points[1],G),pe=$o(this.points[1],this.points[2],G),xe=$o(this.points[2],this.points[3],G),Ce=$o(X,pe,G),Ee=$o(pe,xe,G),Re=$o(Ce,Ee,G);return[new pn(this.points[0],X,Ce,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 G=this.bounds();return{left:G.x.min,right:G.x.max,top:G.y.min,bottom:G.y.max,width:G.x.max-G.x.min,height:G.y.max-G.y.min,cx:(G.x.max+G.x.min)/2,cy:(G.y.max+G.y.min)/2}},pn.prototype.intersections=function(G,X,pe){X===void 0&&(X=2),pe===void 0&&(pe=7);var xe=[];return Wt(bn(this,0,1),bn(G,0,1),0,X,xe,pe),xe},pn.shapeSegment=function(G,X){var pe=(X+1)%G.length();return new pn(G.v[X],G.o[X],G.i[pe],G.v[pe],!0)},pn.shapeSegmentInverted=function(G,X){var pe=(X+1)%G.length();return new pn(G.v[pe],G.i[pe],G.o[X],G.v[X],!0)},g([Tn],ha),ha.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amplitude=Ze.getProp(G,X.s,0,null,this),this.frequency=Ze.getProp(G,X.r,0,null,this),this.pointsType=Ze.getProp(G,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(G,X,pe,xe){var Ce=G._length,Ee=Mt.newElement();if(Ee.c=G.c,G.c||(Ce-=1),Ce===0)return Ee;var Re=-1,Qe=pn.shapeSegment(G,0);Dt(Ee,G,0,X,pe,xe,Re);for(var Ge=0;Ge<Ce;Ge+=1)Re=Mn(Ee,Qe,X,pe,xe,-Re),Qe=Ge!==Ce-1||G.c?pn.shapeSegment(G,(Ge+1)%Ce):null,Dt(Ee,G,Ge+1,X,pe,xe,Re);return Ee},ha.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ge=this.amplitude.v,Rt=Math.max(0,Math.round(this.frequency.v)),Jt=this.pointsType.v;if(Ge!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ge,Rt,Jt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([Tn],yr),yr.prototype.initModifierProperties=function(G,X){this.getValue=this.processKeys,this.amount=Ze.getProp(G,X.a,0,null,this),this.miterLimit=Ze.getProp(G,X.ml,0,null,this),this.lineJoin=X.lj,this._isAnimated=this.amount.effectsSequence.length!==0},yr.prototype.processPath=function(G,X,pe,xe){var Ce=Mt.newElement();Ce.c=G.c;var Ee=G.length();G.c||(Ee-=1);var Re,Qe,Ge,Rt=[];for(Re=0;Re<Ee;Re+=1)Ge=pn.shapeSegment(G,Re),Rt.push(fo(Ge,X));if(!G.c)for(Re=Ee-1;Re>=0;Re-=1)Ge=pn.shapeSegmentInverted(G,Re),Rt.push(fo(Ge,X));Rt=fi(Rt);var Jt=null,et=null;for(Re=0;Re<Rt.length;Re+=1){var pt=Rt[Re];for(et&&(Jt=Wi(Ce,et,pt[0],pe,xe)),et=pt[pt.length-1],Qe=0;Qe<pt.length;Qe+=1)Ge=pt[Qe],Jt&&so(Ge.points[0],Jt)?Ce.setXYAt(Ge.points[1][0],Ge.points[1][1],"o",Ce.length()-1):Ce.setTripleAt(Ge.points[0][0],Ge.points[0][1],Ge.points[1][0],Ge.points[1][1],Ge.points[0][0],Ge.points[0][1],Ce.length()),Ce.setTripleAt(Ge.points[3][0],Ge.points[3][1],Ge.points[3][0],Ge.points[3][1],Ge.points[2][0],Ge.points[2][1],Ce.length()),Jt=Ge.points[3]}return Rt.length&&Wi(Ce,et,Rt[0][0],pe,xe),Ce},yr.prototype.processShapes=function(G){var X,pe,xe,Ce,Ee,Re,Qe=this.shapes.length,Ge=this.amount.v,Rt=this.miterLimit.v,Jt=this.lineJoin;if(Ge!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ce=Ee.shape.paths._length,xe=0;xe<Ce;xe+=1)Re.addShape(this.processPath(X[xe],Ge,Jt,Rt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ln=(function(){var G=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,Ce=917631,Ee=917601,Re=917626,Qe=65039,Ge=8205,Rt=127462,Jt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function pt(ft){var ct,ze=ft.split(","),ht=ze.length,wt=[];for(ct=0;ct<ht;ct+=1)ze[ct]!=="sans-serif"&&ze[ct]!=="monospace"&&wt.push(ze[ct]);return wt.join(",")}function Ct(ft,ct){var ze=h("span");ze.setAttribute("aria-hidden",!0),ze.style.fontFamily=ct;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(ft)+", "+ct,{node:ht,w:wt,parent:ze}}function Tt(){var ft,ct,ze,ht=this.fonts.length,wt=ht;for(ft=0;ft<ht;ft+=1)this.fonts[ft].loaded?wt-=1:this.fonts[ft].fOrigin==="n"||this.fonts[ft].origin===0?this.fonts[ft].loaded=!0:(ct=this.fonts[ft].monoCase.node,ze=this.fonts[ft].monoCase.w,ct.offsetWidth!==ze?(wt-=1,this.fonts[ft].loaded=!0):(ct=this.fonts[ft].sansCase.node,ze=this.fonts[ft].sansCase.w,ct.offsetWidth!==ze&&(wt-=1,this.fonts[ft].loaded=!0)),this.fonts[ft].loaded&&(this.fonts[ft].sansCase.parent.parentNode.removeChild(this.fonts[ft].sansCase.parent),this.fonts[ft].monoCase.parent.parentNode.removeChild(this.fonts[ft].monoCase.parent)));wt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Kt(ft,ct){var ze,ht=document.body&&ct?"svg":"canvas",wt=_t(ft);if(ht==="svg"){var xi=le("text");xi.style.fontSize="100px",xi.setAttribute("font-family",ft.fFamily),xi.setAttribute("font-style",wt.style),xi.setAttribute("font-weight",wt.weight),xi.textContent="1",ft.fClass?(xi.style.fontFamily="inherit",xi.setAttribute("class",ft.fClass)):xi.style.fontFamily=ft.fFamily,ct.appendChild(xi),ze=xi}else{var Zo=new OffscreenCanvas(500,500).getContext("2d");Zo.font=wt.style+" "+wt.weight+" 100px "+ft.fFamily,ze=Zo}function Po(Ca){return ht==="svg"?(ze.textContent=Ca,ze.getComputedTextLength()):ze.measureText(Ca).width}return{measureText:Po}}function en(ft,ct){if(ft){if(this.chars)return this.isLoaded=!0,void(this.fonts=ft.list);if(!document.body)return this.isLoaded=!0,ft.list.forEach((function(Ja){Ja.helper=Kt(Ja),Ja.cache={}})),void(this.fonts=ft.list);var ze,ht=ft.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=Ct(ht[ze].fFamily,"monospace"),ht[ze].sansCase=Ct(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+"');}",ct.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),ct.appendChild(ga)}}}else ht[ze].loaded=!0,xi-=1;ht[ze].helper=Kt(ht[ze],ct),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(ft){if(ft){this.chars||(this.chars=[]);var ct,ze,ht,wt=ft.length,xi=this.chars.length;for(ct=0;ct<wt;ct+=1){for(ze=0,ht=!1;ze<xi;)this.chars[ze].style===ft[ct].style&&this.chars[ze].fFamily===ft[ct].fFamily&&this.chars[ze].ch===ft[ct].ch&&(ht=!0),ze+=1;ht||(this.chars.push(ft[ct]),xi+=1)}}}function We(ft,ct,ze){for(var ht=0,wt=this.chars.length;ht<wt;){if(this.chars[ht].ch===ft&&this.chars[ht].style===ct&&this.chars[ht].fFamily===ze)return this.chars[ht];ht+=1}return(typeof ft=="string"&&ft.charCodeAt(0)!==13||!ft)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ft,ct,ze)),X}function Ne(ft,ct,ze){var ht=this.getFontByName(ct),wt=ft;if(!ht.cache[wt]){var xi=ht.helper;if(ft===" "){var Zo=xi.measureText("|"+ft+"|"),Po=xi.measureText("||");ht.cache[wt]=(Zo-Po)/100}else ht.cache[wt]=xi.measureText(ft)/100}return ht.cache[wt]*ze}function qe(ft){for(var ct=0,ze=this.fonts.length;ct<ze;){if(this.fonts[ct].fName===ft)return this.fonts[ct];ct+=1}return this.fonts[0]}function gt(ft){var ct=0,ze=ft.charCodeAt(0);if(ze>=55296&&ze<=56319){var ht=ft.charCodeAt(1);ht>=56320&&ht<=57343&&(ct=1024*(ze-55296)+ht-56320+65536)}return ct}function rn(ft,ct){var ze=ft.toString(16)+ct.toString(16);return et.indexOf(ze)!==-1}function sn(ft){return ft===Ge}function zt(ft){return ft===Qe}function po(ft){var ct=gt(ft);return ct>=Rt&&ct<=Jt}function Eo(ft){return po(ft.substr(0,2))&&po(ft.substr(2,2))}function ci(ft){return pe.indexOf(ft)!==-1}function Ko(ft,ct){var ze=gt(ft.substr(ct,2));if(ze!==xe)return!1;var ht=0;for(ct+=2;ht<5;){if((ze=gt(ft.substr(ct,2)))<Ee||ze>Re)return!1;ht+=1,ct+=2}return gt(ft.substr(ct,2))===Ce}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 fn={addChars:Xe,addFonts:en,getCharData:We,getFontByName:qe,measureText:Ne,checkLoadedFonts:Tt,setIsLoaded:lo};return Vt.prototype=fn,Vt})();function nn(G){this.animationData=G}function hi(G){return new nn(G)}function jn(){}nn.prototype.getProp=function(G){return this.animationData.slots&&this.animationData.slots[G.sid]?Object.assign(G,this.animationData.slots[G.sid].p):G},jn.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(G){this.renderableComponents.indexOf(G)===-1&&this.renderableComponents.push(G)},removeRenderableComponent:function(G){this.renderableComponents.indexOf(G)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(G),1)},prepareRenderableFrame:function(G){this.checkLayerLimits(G)},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(G){this.data.ip-this.data.st<=G&&this.data.op-this.data.st>G?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 G,X=this.renderableComponents.length;for(G=0;G<X;G+=1)this.renderableComponents[G].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 G={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 G[X]||""}})();function Li(G,X,pe){this.p=Ze.getProp(X,G.v,0,0,pe)}function bo(G,X,pe){this.p=Ze.getProp(X,G.v,0,0,pe)}function Gi(G,X,pe){this.p=Ze.getProp(X,G.v,1,0,pe)}function oo(G,X,pe){this.p=Ze.getProp(X,G.v,1,0,pe)}function Pt(G,X,pe){this.p=Ze.getProp(X,G.v,0,0,pe)}function yi(G,X,pe){this.p=Ze.getProp(X,G.v,0,0,pe)}function xo(G,X,pe){this.p=Ze.getProp(X,G.v,0,0,pe)}function Hr(){this.p={}}function br(G,X){var pe=G.ef||[];this.effectElements=[];var xe,Ce,Ee=pe.length;for(xe=0;xe<Ee;xe+=1)Ce=new wr(pe[xe],X),this.effectElements.push(Ce)}function wr(G,X){this.init(G,X)}function Nn(){}function Ci(){}function rr(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.footageData=X.imageLoader.getAsset(this.assetData),this.initBaseData(G,X,pe)}function ma(G,X,pe){this.initFrame(),this.initRenderable(),this.assetData=X.getAssetData(G.refId),this.initBaseData(G,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=G.tm?Ze.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0},this.lv=Ze.getProp(this,G.au&&G.au.lv?G.au.lv:{k:[100]},1,.01,this)}function rl(){}g([Ot],wr),wr.prototype.getValue=wr.prototype.iterateDynamicProperties,wr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ce=this.data.ef.length,Ee=this.data.ef;for(pe=0;pe<Ce;pe+=1){switch(xe=null,Ee[pe].ty){case 0:xe=new Li(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 oo(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 br(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 G=0,X=this.data.masksProperties.length;G<X;){if(this.data.masksProperties[G].mode!=="n"&&this.data.masksProperties[G].cl!==!1)return!0;G+=1}return!1},initExpressions:function(){},setBlendMode:function(){var G=ii(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=G},initBaseData:function(G,X,pe){this.globalData=X,this.comp=pe,this.data=G,this.layerId=H(),this.data.sr||(this.data.sr=1),this.effectsManager=new br(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ci.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(G,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(G){this.dynamicProperties.indexOf(G)===-1&&this.dynamicProperties.push(G)}},rr.prototype.prepareFrame=function(){},g([jn,Nn,Ci],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(G){if(this.prepareRenderableFrame(G,!0),this.prepareProperties(G,!0),this.tm._placeholder)this._currentTime=G/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,Ci],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(G){this.audio.rate(G)},ma.prototype.volume=function(G){this._volumeMultiplier=G,this._previousVolume=G*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(){},rl.prototype.checkLayers=function(G){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<=G-this.layers[X].st&&pe.op-pe.st>G-this.layers[X].st&&this.buildItem(X),this.completeLayers=!!this.elements[X]&&this.completeLayers;this.checkPendingElements()},rl.prototype.createItem=function(G){switch(G.ty){case 2:return this.createImage(G);case 0:return this.createComp(G);case 1:return this.createSolid(G);case 3:default:return this.createNull(G);case 4:return this.createShape(G);case 5:return this.createText(G);case 6:return this.createAudio(G);case 13:return this.createCamera(G);case 15:return this.createFootage(G)}},rl.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},rl.prototype.createAudio=function(G){return new ma(G,this.globalData,this)},rl.prototype.createFootage=function(G){return new rr(G,this.globalData,this)},rl.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},rl.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,Ce=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ce;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},rl.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},rl.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},rl.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,Ce=this.layers,Ee=0,Re=Ce.length;Ee<Re;)Ce[Ee].ind==X&&(xe[Ee]&&xe[Ee]!==!0?(pe.push(xe[Ee]),xe[Ee].setAsParent(),Ce[Ee].parent!==void 0?this.buildElementParenting(G,Ce[Ee].parent,pe):G.setHierarchy(pe)):(this.buildItem(Ee),this.addPendingElement(G))),Ee+=1},rl.prototype.addPendingElement=function(G){this.pendingElements.push(G)},rl.prototype.searchExtraCompositions=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)if(G[X].xt){var xe=this.createComp(G[X]);xe.initExpressions(),this.globalData.projectInterface.registerComposition(xe)}},rl.prototype.getElementById=function(G){var X,pe=this.elements.length;for(X=0;X<pe;X+=1)if(this.elements[X].data.ind===G)return this.elements[X];return null},rl.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,Ce=this.elements.length;for(xe=0;xe<Ce;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},rl.prototype.setupGlobalData=function(G,X){this.globalData.fontManager=new ln,this.globalData.slotManager=hi(G),this.globalData.fontManager.addChars(G.chars),this.globalData.fontManager.addFonts(G.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=G.fr,this.globalData.nm=G.nm,this.globalData.compSize={w:G.w,h:G.h}};var DL={TRANSFORM_EFFECT:"transformEFfect"};function f2(){}function A0(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ce=this.globalData.defs,Ee=this.masksProperties?this.masksProperties.length:0;this.viewData=b(Ee),this.solidPath="";var Re,Qe,Ge,Rt,Jt,et,pt,Ct=this.masksProperties,Tt=0,Kt=[],en=H(),Xe="clipPath",We="clip-path";for(xe=0;xe<Ee;xe+=1)if((Ct[xe].mode!=="a"&&Ct[xe].mode!=="n"||Ct[xe].inv||Ct[xe].o.k!==100||Ct[xe].o.x)&&(Xe="mask",We="mask"),Ct[xe].mode!=="s"&&Ct[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"),Ct[xe].mode==="n")this.viewData[xe]={op:Ze.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:rt.getShapeProp(this.element,Ct[xe],3),elem:Re,lastPath:""},Ce.appendChild(Re);else{var Ne;if(Tt+=1,Re.setAttribute("fill",Ct[xe].mode==="s"?"#000000":"#ffffff"),Re.setAttribute("clip-rule","nonzero"),Ct[xe].x.k!==0?(Xe="mask",We="mask",pt=Ze.getProp(this.element,Ct[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),Ce.appendChild(Jt),Re.setAttribute("stroke",Ct[xe].mode==="s"?"#000000":"#ffffff")):(et=null,pt=null),this.storedData[xe]={elem:Re,x:pt,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},Ct[xe].mode==="i"){Ge=Kt.length;var qe=le("g");for(Qe=0;Qe<Ge;Qe+=1)qe.appendChild(Kt[Qe]);var gt=le("mask");gt.setAttribute("mask-type","alpha"),gt.setAttribute("id",en+"_"+Tt),gt.appendChild(Re),Ce.appendChild(gt),qe.setAttribute("mask","url("+p()+"#"+en+"_"+Tt+")"),Kt.length=0,Kt.push(qe)}else Kt.push(Re);Ct[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Re,lastPath:"",op:Ze.getProp(this.element,Ct[xe].o,0,.01,this.element),prop:rt.getShapeProp(this.element,Ct[xe],3),invRect:Rt},this.viewData[xe].prop.k||this.drawPath(Ct[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+")"),Ce.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}f2.prototype={initTransform:function(){var G=new At;this.finalTransform={mProp:this.data.ks?Bt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:G,localMat:G,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 G,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(G=this.finalTransform.mProp.v.props,X.cloneFromProps(G),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 G=0,X=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;G<X;)this.localTransforms[G]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[G]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),G+=1;if(this.finalTransform._localMatMdf){var pe=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(pe),G=1;G<X;G+=1){var xe=this.localTransforms[G].matrix;pe.multiply(xe)}pe.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var Ce=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)Ce*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=Ce}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(DL.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new At;var X=0,pe=G.length;for(X=0;X<pe;X+=1)this.localTransforms.push(G[X])}}},globalToLocal:function(G){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 Ce,Ee,Re=X.length;for(Ce=0;Ce<Re;Ce+=1)Ee=X[Ce].mat.applyToPointArray(0,0,0),G=[G[0]-Ee[0],G[1]-Ee[1],0];return G},mHelper:new At},A0.prototype.getMaskProperty=function(G){return this.viewData[G].prop},A0.prototype.renderFrame=function(G){var X,pe=this.element.finalTransform.mat,xe=this.masksProperties.length;for(X=0;X<xe;X+=1)if((this.viewData[X].prop._mdf||G)&&this.drawPath(this.masksProperties[X],this.viewData[X].prop.v,this.viewData[X]),(this.viewData[X].op._mdf||G)&&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||G)&&this.viewData[X].invRect.setAttribute("transform",pe.getInverseMatrix().to2dCSS()),this.storedData[X].x&&(this.storedData[X].x._mdf||G))){var Ce=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+")")),Ce.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))}},A0.prototype.getMaskelement=function(){return this.maskElement},A0.prototype.createLayerSolidPath=function(){var G="M0,0 ";return G+=" h"+this.globalData.compSize.w,G+=" v"+this.globalData.compSize.h,G+=" h-"+this.globalData.compSize.w,G+=" v-"+this.globalData.compSize.h+" "},A0.prototype.drawPath=function(G,X,pe){var xe,Ce,Ee=" M"+X.v[0][0]+","+X.v[0][1];for(Ce=X._length,xe=1;xe<Ce;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&&Ce>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=G.inv?this.solidPath+Ee:Ee),pe.elem.setAttribute("d",Re)),pe.lastPath=Ee}},A0.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var z7=(function(){var G={};function X(xe,Ce){var Ee=le("filter");return Ee.setAttribute("id",xe),Ce!==!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 G.createFilter=X,G.createAlphaToLuminanceFilter=pe,G})(),TL=(function(){var G={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))&&(G.maskType=!1),/firefox/i.test(navigator.userAgent)&&(G.svgLumaHidden=!1),G})(),LL={},v_="filter_result_";function Ck(G){var X,pe,xe="SourceGraphic",Ce=G.data.ef?G.data.ef.length:0,Ee=H(),Re=z7.createFilter(Ee,!0),Qe=0;for(this.filters=[],X=0;X<Ce;X+=1){pe=null;var Ge=G.data.ef[X].ty;LL[Ge]&&(pe=new LL[Ge].effect(Re,G.effectsManager.effectElements[X],G,v_+Qe,xe),xe=v_+Qe,LL[Ge].countsAsEffect&&(Qe+=1)),pe&&this.filters.push(pe)}Qe&&(G.globalData.defs.appendChild(Re),G.layerElement.setAttribute("filter","url("+p()+"#"+Ee+")")),this.filters.length&&G.addRenderableComponent(this)}function hw(){}function N7(){}function p5(){}function mw(G,X,pe){this.assetData=X.getAssetData(G.refId),this.assetData&&this.assetData.sid&&(this.assetData=X.slotManager.getProp(this.assetData)),this.initElement(G,X,pe),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Gre(G,X){this.elem=G,this.pos=X}function A_(){}Ck.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},Ck.prototype.getEffects=function(G){var X,pe=this.filters.length,xe=[];for(X=0;X<pe;X+=1)this.filters[X].type===G&&xe.push(this.filters[X]);return xe},hw.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 G=null;if(this.data.td){this.matteMasks={};var X=le("g");X.setAttribute("id",this.layerId),X.appendChild(this.layerElement),G=X,this.globalData.defs.appendChild(X)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),G=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 Ce=H();if(pe.setAttribute("id",Ce),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var Ee=le("g");Ee.setAttribute("clip-path","url("+p()+"#"+Ce+")"),Ee.appendChild(this.layerElement),this.transformedElement=Ee,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ce+")")}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 A0(this.data,this,this.globalData),this.renderableEffectsManager=new Ck(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,Ce,Ee=this.layerId+"_"+G;if(G===1||G===3){var Re=le("mask");Re.setAttribute("id",Ee),Re.setAttribute("mask-type",G===3?"luminance":"alpha"),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Re.appendChild(xe),this.globalData.defs.appendChild(Re),!TL.maskType&&G===1&&(Re.setAttribute("mask-type","luminance"),X=H(),pe=z7.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(z7.createAlphaToLuminanceFilter()),(Ce=le("g")).appendChild(xe),Re.appendChild(Ce),Ce.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var Qe=le("mask");Qe.setAttribute("id",Ee),Qe.setAttribute("mask-type","alpha");var Ge=le("g");Qe.appendChild(Ge),X=H(),pe=z7.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"),Ge.setAttribute("filter","url("+p()+"#"+X+")"),Ge.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Ge.appendChild(xe),TL.maskType||(Qe.setAttribute("mask-type","luminance"),pe.appendChild(z7.createAlphaToLuminanceFilter()),Ce=le("g"),Ge.appendChild(et),Ce.appendChild(this.layerElement),Ge.appendChild(Ce)),this.globalData.defs.appendChild(Qe)}this.matteMasks[G]=Ee}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},N7.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(G){this.hierarchy=G},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},(function(){var G={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(G)],p5)})(),g([Nn,f2,hw,N7,Ci,p5],mw),mw.prototype.createContent=function(){var G=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",G),this.layerElement.appendChild(this.innerElem)},mw.prototype.sourceRectAtTime=function(){return this.sourceRect},A_.prototype={addShapeToModifiers:function(G){var X,pe=this.shapeModifiers.length;for(X=0;X<pe;X+=1)this.shapeModifiers[X].addShape(G)},isShapeInAnimatedModifiers:function(G){for(var X=0,pe=this.shapeModifiers.length;X<pe;)if(this.shapeModifiers[X].isAnimatedWithShape(G))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var G,X=this.shapes.length;for(G=0;G<X;G+=1)this.shapes[G].sh.reset();for(G=(X=this.shapeModifiers.length)-1;G>=0&&!this.shapeModifiers[G].processShapes(this._isFirstFrame);G-=1);}},searchProcessedElement:function(G){for(var X=this.processedElements,pe=0,xe=X.length;pe<xe;){if(X[pe].elem===G)return X[pe].pos;pe+=1}return 0},addProcessedElement:function(G,X){for(var pe=this.processedElements,xe=pe.length;xe;)if(pe[xe-=1].elem===G)return void(pe[xe].pos=X);pe.push(new Gre(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var S_={1:"butt",2:"round",3:"square"},k_={1:"miter",2:"round",3:"bevel"};function j_(G,X,pe){this.caches=[],this.styles=[],this.transformers=G,this.lStr="",this.sh=pe,this.lvl=X,this._isAnimated=!!pe.k;for(var xe=0,Ce=G.length;xe<Ce;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function $_(G,X){this.data=G,this.type=G.ty,this.d="",this.lvl=X,this._mdf=!1,this.closed=G.hd===!0,this.pElem=le("path"),this.msElem=null}function vk(G,X,pe,xe){this.elem=G,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 Ce,Ee,Re=X.length||0;for(Ce=0;Ce<Re;Ce+=1)Ee=Ze.getProp(G,X[Ce].v,0,0,this),this.k=Ee.k||this.k,this.dataProps[Ce]={n:X[Ce].n,p:Ee};this.k||this.getValue(!0),this._isAnimated=this.k}function E_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ze.getProp(G,X.o,0,.01,this),this.w=Ze.getProp(G,X.w,0,null,this),this.d=new vk(G,X.d||{},"svg",this),this.c=Ze.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function I_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.o=Ze.getProp(G,X.o,0,.01,this),this.c=Ze.getProp(G,X.c,1,255,this),this.style=pe}function D_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function gw(G,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(G,X.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function S0(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function T_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ze.getProp(G,X.w,0,null,this),this.d=new vk(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function qre(){this.it=[],this.prevViewData=[],this.gr=le("g")}function Kre(G,X,pe){this.transform={mProps:G,op:X,container:pe},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}j_.prototype.setAsAnimated=function(){this._isAnimated=!0},$_.prototype.reset=function(){this.d="",this._mdf=!1},vk.prototype.getValue=function(G){if((this.elem.globalData.frameId!==this.frameId||G)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||G,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],vk),g([Ot],E_),g([Ot],I_),g([Ot],D_),gw.prototype.comparePoints=function(G,X){for(var pe=0,xe=this.o.length/2;pe<xe;){if(Math.abs(G[4*pe]-G[4*X+2*pe])>.01)return!1;pe+=1}return!0},gw.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var G=0,X=this.data.k.k.length;G<X;){if(!this.comparePoints(this.data.k.k[G].s,this.data.p))return!1;G+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},gw.prototype.getValue=function(G){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||G){var X,pe,xe,Ce=4*this.data.p;for(X=0;X<Ce;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=!G);if(this.o.length)for(Ce=this.prop.v.length,X=4*this.data.p;X<Ce;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=!G);this._mdf=!G}},g([Ot],gw),S0.prototype.initGradientData=function(G,X,pe){this.o=Ze.getProp(G,X.o,0,.01,this),this.s=Ze.getProp(G,X.s,1,null,this),this.e=Ze.getProp(G,X.e,1,null,this),this.h=Ze.getProp(G,X.h||{k:0},0,.01,this),this.a=Ze.getProp(G,X.a||{k:0},0,D,this),this.g=new gw(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},S0.prototype.setGradientData=function(G,X){var pe=H(),xe=le(X.t===1?"linearGradient":"radialGradient");xe.setAttribute("id",pe),xe.setAttribute("spreadMethod","pad"),xe.setAttribute("gradientUnits","userSpaceOnUse");var Ce,Ee,Re,Qe=[];for(Re=4*X.g.p,Ee=0;Ee<Re;Ee+=4)Ce=le("stop"),xe.appendChild(Ce),Qe.push(Ce);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Qe},S0.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ce,Ee=le("mask"),Re=le("path");Ee.appendChild(Re);var Qe=H(),Ge=H();Ee.setAttribute("id",Ge);var Rt=le(G.t===1?"linearGradient":"radialGradient");Rt.setAttribute("id",Qe),Rt.setAttribute("spreadMethod","pad"),Rt.setAttribute("gradientUnits","userSpaceOnUse"),Ce=G.g.k.k[0].s?G.g.k.k[0].s.length:G.g.k.k.length;var Jt=this.stops;for(xe=4*G.g.p;xe<Ce;xe+=2)(pe=le("stop")).setAttribute("stop-color","rgb(255,255,255)"),Rt.appendChild(pe),Jt.push(pe);Re.setAttribute(G.ty==="gf"?"fill":"stroke","url("+p()+"#"+Qe+")"),G.ty==="gs"&&(Re.setAttribute("stroke-linecap",S_[G.lc||2]),Re.setAttribute("stroke-linejoin",k_[G.lj||2]),G.lj===1&&Re.setAttribute("stroke-miterlimit",G.ml)),this.of=Rt,this.ms=Ee,this.ost=Jt,this.maskId=Ge,X.msElem=Re}},g([Ot],S0),g([S0,Ot],T_);var Zn=function(G,X,pe,xe){if(X===0)return"";var Ce,Ee=G.o,Re=G.i,Qe=G.v,Ge=" M"+xe.applyToPointStringified(Qe[0][0],Qe[0][1]);for(Ce=1;Ce<X;Ce+=1)Ge+=" C"+xe.applyToPointStringified(Ee[Ce-1][0],Ee[Ce-1][1])+" "+xe.applyToPointStringified(Re[Ce][0],Re[Ce][1])+" "+xe.applyToPointStringified(Qe[Ce][0],Qe[Ce][1]);return pe&&X&&(Ge+=" C"+xe.applyToPointStringified(Ee[Ce-1][0],Ee[Ce-1][1])+" "+xe.applyToPointStringified(Re[0][0],Re[0][1])+" "+xe.applyToPointStringified(Qe[0][0],Qe[0][1]),Ge+="z"),Ge},Ar=(function(){var G=new At,X=new At;function pe(Jt){switch(Jt.ty){case"fl":return Re;case"gf":return Ge;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 Ce;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 Ce(){}function Ee(Jt,et,pt){var Ct,Tt,Kt,en,Xe,We,Ne,qe,gt,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(),gt=zt-et.styles[We].lvl,rn=et.transformers.length-1;!en&>>0;)en=et.transformers[rn].mProps._mdf||en,gt-=1,rn-=1;if(en)for(gt=zt-et.styles[We].lvl,rn=et.transformers.length-1;gt>0;)qe.multiply(et.transformers[rn].mProps.v),gt-=1,rn-=1}else qe=G;if(Tt=(Ne=et.sh.paths)._length,en){for(Kt="",Ct=0;Ct<Tt;Ct+=1)(Xe=Ne.shapes[Ct])&&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 Ct=et.style;(et.c._mdf||pt)&&Ct.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&Ct.pElem.setAttribute("fill-opacity",et.o.v)}function Qe(Jt,et,pt){Ge(Jt,et,pt),Rt(Jt,et,pt)}function Ge(Jt,et,pt){var Ct,Tt,Kt,en,Xe,We=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,gt=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){Ct=et.cst;var po=et.g.c;for(Kt=Ct.length,Tt=0;Tt<Kt;Tt+=1)(en=Ct[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=(Ct=et.g._collapsable?et.cst:et.ost).length,Tt=0;Tt<Kt;Tt+=1)en=Ct[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",gt[0]),We.setAttribute("y2",gt[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",gt[0]),et.of.setAttribute("y2",gt[1])));else if((et.s._mdf||et.e._mdf||pt)&&(Xe=Math.sqrt(Math.pow(qe[0]-gt[0],2)+Math.pow(qe[1]-gt[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]-gt[0],2)+Math.pow(qe[1]-gt[1],2)));var ci=Math.atan2(gt[1]-qe[1],gt[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],fn=Math.sin(ci+et.a.v)*lo+qe[1];We.setAttribute("fx",Vt),We.setAttribute("fy",fn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Vt),et.of.setAttribute("fy",fn))}}function Rt(Jt,et,pt){var Ct=et.style,Tt=et.d;Tt&&(Tt._mdf||pt)&&Tt.dashStr&&(Ct.pElem.setAttribute("stroke-dasharray",Tt.dashStr),Ct.pElem.setAttribute("stroke-dashoffset",Tt.dashoffset[0])),et.c&&(et.c._mdf||pt)&&Ct.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&Ct.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||pt)&&(Ct.pElem.setAttribute("stroke-width",et.w.v),Ct.msElem&&Ct.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function tr(G,X,pe){this.shapes=[],this.shapesData=G.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(G,X,pe),this.prevViewData=[]}function Xp(G,X,pe,xe,Ce,Ee){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ce,this.p=Ee,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function ed(G,X){this._frameId=l,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,X.d&&X.d.sid&&(X.d=G.globalData.slotManager.getProp(X.d)),this.data=X,this.elem=G,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,f2,hw,A_,N7,Ci,p5],tr),tr.prototype.initSecondaryElement=function(){},tr.prototype.identityMatrix=new At,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 G,X,pe,xe,Ce=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,G=0;G<Ce;G+=1)(X=this.shapes[G]).styles.indexOf(xe)!==-1&&(Re.push(X),Qe=X._isAnimated||Qe);Re.length>1&&Qe&&this.setShapesAsAnimated(Re)}},tr.prototype.setShapesAsAnimated=function(G){var X,pe=G.length;for(X=0;X<pe;X+=1)G[X].setAsAnimated()},tr.prototype.createStyleElement=function(G,X){var pe,xe=new $_(G,X),Ce=xe.pElem;return G.ty==="st"?pe=new E_(this,G,xe):G.ty==="fl"?pe=new I_(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?S0:T_)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),Ce.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new D_(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(Ce.setAttribute("stroke-linecap",S_[G.lc||2]),Ce.setAttribute("stroke-linejoin",k_[G.lj||2]),Ce.setAttribute("fill-opacity","0"),G.lj===1&&Ce.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&Ce.setAttribute("fill-rule","evenodd"),G.ln&&Ce.setAttribute("id",G.ln),G.cl&&Ce.setAttribute("class",G.cl),G.bm&&(Ce.style["mix-blend-mode"]=ii(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},tr.prototype.createGroupElement=function(G){var X=new qre;return G.ln&&X.gr.setAttribute("id",G.ln),G.cl&&X.gr.setAttribute("class",G.cl),G.bm&&(X.gr.style["mix-blend-mode"]=ii(G.bm)),X},tr.prototype.createTransformElement=function(G,X){var pe=Bt.getTransformProperty(this,G,this),xe=new Kre(pe,pe.o,X);return this.addToAnimatedContents(G,xe),xe},tr.prototype.createShapeElement=function(G,X,pe){var xe=4;G.ty==="rc"?xe=5:G.ty==="el"?xe=6:G.ty==="sr"&&(xe=7);var Ce=new j_(X,pe,rt.getShapeProp(this,G,xe,this));return this.shapes.push(Ce),this.addShapeToModifiers(Ce),this.addToAnimatedContents(G,Ce),Ce},tr.prototype.addToAnimatedContents=function(G,X){for(var pe=0,xe=this.animatedContents.length;pe<xe;){if(this.animatedContents[pe].element===X)return;pe+=1}this.animatedContents.push({fn:Ar.createRenderFunction(G),element:X,data:G})},tr.prototype.setElementStyles=function(G){var X,pe=G.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 G,X=this.itemsData.length;for(G=0;G<X;G+=1)this.prevViewData[G]=this.itemsData[G];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),X=this.dynamicProperties.length,G=0;G<X;G+=1)this.dynamicProperties[G].getValue();this.renderModifiers()},tr.prototype.searchShapes=function(G,X,pe,xe,Ce,Ee,Re){var Qe,Ge,Rt,Jt,et,pt,Ct=[].concat(Ee),Tt=G.length-1,Kt=[],en=[];for(Qe=Tt;Qe>=0;Qe-=1){if((pt=this.searchProcessedElement(G[Qe]))?X[Qe]=pe[pt-1]:G[Qe]._render=Re,G[Qe].ty==="fl"||G[Qe].ty==="st"||G[Qe].ty==="gf"||G[Qe].ty==="gs"||G[Qe].ty==="no")pt?X[Qe].style.closed=G[Qe].hd:X[Qe]=this.createStyleElement(G[Qe],Ce),G[Qe]._render&&X[Qe].style.pElem.parentNode!==xe&&xe.appendChild(X[Qe].style.pElem),Kt.push(X[Qe].style);else if(G[Qe].ty==="gr"){if(pt)for(Rt=X[Qe].it.length,Ge=0;Ge<Rt;Ge+=1)X[Qe].prevViewData[Ge]=X[Qe].it[Ge];else X[Qe]=this.createGroupElement(G[Qe]);this.searchShapes(G[Qe].it,X[Qe].it,X[Qe].prevViewData,X[Qe].gr,Ce+1,Ct,Re),G[Qe]._render&&X[Qe].gr.parentNode!==xe&&xe.appendChild(X[Qe].gr)}else G[Qe].ty==="tr"?(pt||(X[Qe]=this.createTransformElement(G[Qe],xe)),Jt=X[Qe].transform,Ct.push(Jt)):G[Qe].ty==="sh"||G[Qe].ty==="rc"||G[Qe].ty==="el"||G[Qe].ty==="sr"?(pt||(X[Qe]=this.createShapeElement(G[Qe],Ct,Ce)),this.setElementStyles(X[Qe])):G[Qe].ty==="tm"||G[Qe].ty==="rd"||G[Qe].ty==="ms"||G[Qe].ty==="pb"||G[Qe].ty==="zz"||G[Qe].ty==="op"?(pt?(et=X[Qe]).closed=!1:((et=un.getModifier(G[Qe].ty)).init(this,G[Qe]),X[Qe]=et,this.shapeModifiers.push(et)),en.push(et)):G[Qe].ty==="rp"&&(pt?(et=X[Qe]).closed=!0:(et=un.getModifier(G[Qe].ty),X[Qe]=et,et.init(this,G,Qe,X),this.shapeModifiers.push(et),Re=!1),en.push(et));this.addProcessedElement(G[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 G,X=this.stylesList.length;for(G=0;G<X;G+=1)this.stylesList[G].reset();for(this.renderShape(),G=0;G<X;G+=1)(this.stylesList[G]._mdf||this._isFirstFrame)&&(this.stylesList[G].msElem&&(this.stylesList[G].msElem.setAttribute("d",this.stylesList[G].d),this.stylesList[G].d="M0 0"+this.stylesList[G].d),this.stylesList[G].pElem.setAttribute("d",this.stylesList[G].d||"M0 0"))},tr.prototype.renderShape=function(){var G,X,pe=this.animatedContents.length;for(G=0;G<pe;G+=1)X=this.animatedContents[G],(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},Xp.prototype.update=function(G,X,pe,xe,Ce,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!==G&&(this.o=G,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!==Ce&&(this.m=Ce,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},ed.prototype.defaultBoxWidth=[0,0],ed.prototype.copyData=function(G,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(G[pe]=X[pe]);return G},ed.prototype.setCurrentData=function(G){G.__complete||this.completeTextData(G),this.currentData=G,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ed.prototype.searchProperty=function(){return this.searchKeyframes()},ed.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ed.prototype.addEffect=function(G){this.effectsSequence.push(G),this.elem.addDynamicProperty(this)},ed.prototype.getValue=function(G){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||G){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,Ce=this.effectsSequence.length,Ee=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ce;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}},ed.prototype.getKeyframeValue=function(){for(var G=this.data.d.k,X=this.elem.comp.renderedFrame,pe=0,xe=G.length;pe<=xe-1&&!(pe===xe-1||G[pe+1].t>X);)pe+=1;return this.keysIndex!==pe&&(this.keysIndex=pe),this.data.d.k[this.keysIndex].s},ed.prototype.buildFinalText=function(G){for(var X,pe,xe=[],Ce=0,Ee=G.length,Re=!1,Qe=!1,Ge="";Ce<Ee;)Re=Qe,Qe=!1,X=G.charCodeAt(Ce),Ge=G.charAt(Ce),ln.isCombinedCharacter(X)?Re=!0:X>=55296&&X<=56319?ln.isRegionalFlag(G,Ce)?Ge=G.substr(Ce,14):(pe=G.charCodeAt(Ce+1))>=56320&&pe<=57343&&(ln.isModifier(X,pe)?(Ge=G.substr(Ce,2),Re=!0):Ge=ln.isFlagEmoji(G.substr(Ce,4))?G.substr(Ce,4):G.substr(Ce,2)):X>56319?(pe=G.charCodeAt(Ce+1),ln.isVariationSelector(X)&&(Re=!0)):ln.isZeroWidthJoiner(X)&&(Re=!0,Qe=!0),Re?(xe[xe.length-1]+=Ge,Re=!1):xe.push(Ge),Ce+=Ge.length;return xe},ed.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,Ce,Ee,Re,Qe,Ge=this.elem.globalData.fontManager,Rt=this.data,Jt=[],et=0,pt=Rt.m.g,Ct=0,Tt=0,Kt=0,en=[],Xe=0,We=0,Ne=Ge.getFontByName(G.f),qe=0,gt=_t(Ne);G.fWeight=gt.weight,G.fStyle=gt.style,G.finalSize=G.s,G.finalText=this.buildFinalText(G.t),pe=G.finalText.length,G.finalLineHeight=G.lh;var rn,sn=G.tr/1e3*G.finalSize;if(G.sz)for(var zt,po,Eo=!0,ci=G.sz[0],Ko=G.sz[1];Eo;){zt=0,Xe=0,pe=(po=this.buildFinalText(G.t)).length,sn=G.tr/1e3*G.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+=G.finalLineHeight||1.2*G.finalSize),Ge.chars?(Qe=Ge.getCharData(po[X],Ne.fStyle,Ne.fFamily),qe=xe?0:Qe.w*G.finalSize/100):qe=Ge.measureText(po[X],G.f,G.finalSize),Xe+qe>ci&&po[X]!==" "?(lo===-1?pe+=1:X=lo,zt+=G.finalLineHeight||1.2*G.finalSize,po.splice(X,lo===X?1:0,"\r"),lo=-1,Xe=0):(Xe+=qe,Xe+=sn);zt+=Ne.ascent*G.finalSize/100,this.canResize&&G.finalSize>this.minimumFontSize&&Ko<zt?(G.finalSize-=1,G.finalLineHeight=G.finalSize*G.lh/G.s):(G.finalText=po,pe=G.finalText.length,Eo=!1)}Xe=-sn,qe=0;var Vt,fn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(Vt=G.finalText[X]).charCodeAt(0))===13||rn===3?(fn=0,en.push(Xe),We=Xe>We?Xe:We,Xe=-2*sn,Ce="",xe=!0,Kt+=1):Ce=Vt,Ge.chars?(Qe=Ge.getCharData(Vt,Ne.fStyle,Ge.getFontByName(G.f).fFamily),qe=xe?0:Qe.w*G.finalSize/100):qe=Ge.measureText(Ce,G.f,G.finalSize),Vt===" "?fn+=qe+sn:(Xe+=qe+sn+fn,fn=0),Jt.push({l:qe,an:qe,add:Ct,n:xe,anIndexes:[],val:Ce,line:Kt,animatorJustifyOffset:0}),pt==2){if(Ct+=qe,Ce===""||Ce===" "||X===pe-1){for((Ce===""||Ce===" ")&&(Ct-=qe);Tt<=X;)Jt[Tt].an=Ct,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;et+=1,Ct=0}}else if(pt==3){if(Ct+=qe,Ce===""||X===pe-1){for(Ce===""&&(Ct-=qe);Tt<=X;)Jt[Tt].an=Ct,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;Ct=0,et+=1}}else Jt[et].ind=et,Jt[et].extra=0,et+=1;if(G.l=Jt,We=Xe>We?Xe:We,en.push(Xe),G.sz)G.boxWidth=G.sz[0],G.justifyOffset=0;else switch(G.boxWidth=We,G.j){case 1:G.justifyOffset=-G.boxWidth;break;case 2:G.justifyOffset=-G.boxWidth/2;break;default:G.justifyOffset=0}G.lineWidths=en;var ft,ct,ze=Rt.a;Re=ze.length;var ht,wt,xi=[];for(Ee=0;Ee<Re;Ee+=1){for((ft=ze[Ee]).a.sc&&(G.strokeColorAnim=!0),ft.a.sw&&(G.strokeWidthAnim=!0),(ft.a.fc||ft.a.fh||ft.a.fs||ft.a.fb)&&(G.fillColorAnim=!0),wt=0,ht=ft.s.b,X=0;X<pe;X+=1)(ct=Jt[X]).anIndexes[Ee]=wt,(ht==1&&ct.val!==""||ht==2&&ct.val!==""&&ct.val!==" "||ht==3&&(ct.n||ct.val==" "||X==pe-1)||ht==4&&(ct.n||X==pe-1))&&(ft.s.rn===1&&xi.push(wt),wt+=1);Rt.a[Ee].s.totalChars=wt;var Zo,Po=-1;if(ft.s.rn===1)for(X=0;X<pe;X+=1)Po!=(ct=Jt[X]).anIndexes[Ee]&&(Po=ct.anIndexes[Ee],Zo=xi.splice(Math.floor(Math.random()*xi.length),1)[0]),ct.anIndexes[Ee]=Zo}G.yOffset=G.finalLineHeight||1.2*G.finalSize,G.ls=G.ls||0,G.ascent=Ne.ascent*G.finalSize/100},ed.prototype.updateDocumentData=function(G,X){X=X===void 0?this.keysIndex:X;var pe=this.copyData({},this.data.d.k[X].s);pe=this.copyData(pe,G),this.data.d.k[X].s=pe,this.recalculate(X),this.setCurrentData(pe),this.elem.addDynamicProperty(this)},ed.prototype.recalculate=function(G){var X=this.data.d.k[G].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},ed.prototype.canResizeFont=function(G){this.canResize=G,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ed.prototype.setMinimumFontSize=function(G){this.minimumFontSize=Math.floor(G)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var fw=(function(){var G=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 Ce(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,Ge=1,Rt=1;this.ne.v>0?Re=this.ne.v/100:Qe=-this.ne.v/100,this.xe.v>0?Ge=1-this.xe.v/100:Rt=1+this.xe.v/100;var Jt=Le.getBezierEasing(Re,Qe,Ge,Rt).get,et=0,pt=this.finalS,Ct=this.finalE,Tt=this.data.sh;if(Tt===2)et=Jt(et=Ct===pt?Ee>=Ct?1:0:G(0,X(.5/(Ct-pt)+(Ee-pt)/(Ct-pt),1)));else if(Tt===3)et=Jt(et=Ct===pt?Ee>=Ct?0:1:1-G(0,X(.5/(Ct-pt)+(Ee-pt)/(Ct-pt),1)));else if(Tt===4)Ct===pt?et=0:(et=G(0,X(.5/(Ct-pt)+(Ee-pt)/(Ct-pt),1)))<.5?et*=2:et=1-2*(et-.5),et=Jt(et);else if(Tt===5){if(Ct===pt)et=0;else{var Kt=Ct-pt,en=-Kt/2+(Ee=X(G(0,Ee+.5-pt),Ct-pt)),Xe=Kt/2;et=Math.sqrt(1-en*en/(Xe*Xe))}et=Jt(et)}else Tt===6?(Ct===pt?et=0:(Ee=X(G(0,Ee+.5-pt),Ct-pt),et=(1+Math.cos(Math.PI+2*Math.PI*Ee/(Ct-pt)))/2),et=Jt(et)):(Ee>=pe(pt)&&(et=G(0,X(Ee-pt<0?X(Ct,1)-(pt-Ee):Ct-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,Ge=this.s.v/Re+Qe,Rt=this.e.v/Re+Qe;if(Ge>Rt){var Jt=Ge;Ge=Rt,Rt=Jt}this.finalS=Ge,this.finalE=Rt}},g([Ot],xe),{getTextSelectorProp:Ce}})();function Zre(G,X,pe){var xe={propType:!1},Ce=Ze.getProp,Ee=X.a;this.a={r:Ee.r?Ce(G,Ee.r,0,D,pe):xe,rx:Ee.rx?Ce(G,Ee.rx,0,D,pe):xe,ry:Ee.ry?Ce(G,Ee.ry,0,D,pe):xe,sk:Ee.sk?Ce(G,Ee.sk,0,D,pe):xe,sa:Ee.sa?Ce(G,Ee.sa,0,D,pe):xe,s:Ee.s?Ce(G,Ee.s,1,.01,pe):xe,a:Ee.a?Ce(G,Ee.a,1,0,pe):xe,o:Ee.o?Ce(G,Ee.o,0,.01,pe):xe,p:Ee.p?Ce(G,Ee.p,1,0,pe):xe,sw:Ee.sw?Ce(G,Ee.sw,0,0,pe):xe,sc:Ee.sc?Ce(G,Ee.sc,1,0,pe):xe,fc:Ee.fc?Ce(G,Ee.fc,1,0,pe):xe,fh:Ee.fh?Ce(G,Ee.fh,0,0,pe):xe,fs:Ee.fs?Ce(G,Ee.fs,0,.01,pe):xe,fb:Ee.fb?Ce(G,Ee.fb,0,.01,pe):xe,t:Ee.t?Ce(G,Ee.t,0,0,pe):xe},this.s=fw.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function x2(G,X,pe){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=G,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 k0(){}x2.prototype.searchProperties=function(){var G,X,pe=this._textData.a.length,xe=Ze.getProp;for(G=0;G<pe;G+=1)X=this._textData.a[G],this._animatorsData[G]=new Zre(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)},x2.prototype.getMeasures=function(G,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,Ce,Ee,Re,Qe,Ge,Rt,Jt,et,pt,Ct,Tt,Kt,en,Xe,We,Ne,qe,gt=this._moreOptions.alignment.v,rn=this._animatorsData,sn=this._textData,zt=this.mHelper,po=this._renderType,Eo=this.renderedLetters.length,ci=G.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,Ce=0;Ce<Ee;Ce+=1)Ko=Ie.buildBezierData(lo.v[Ce],lo.v[Ce+1],[lo.o[Ce][0]-lo.v[Ce][0],lo.o[Ce][1]-lo.v[Ce][1]],[lo.i[Ce+1][0]-lo.v[Ce+1][0],lo.i[Ce+1][1]-lo.v[Ce+1][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength;Ce=Ee,qe.v.c&&(Ko=Ie.buildBezierData(lo.v[Ce],lo.v[0],[lo.o[Ce][0]-lo.v[Ce][0],lo.o[Ce][1]-lo.v[Ce][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);Ct=(Tt=Kt[pt].points)[et-1],en=(Ge=Tt[et]).partialLength}Ee=ci.length,pe=0,xe=0;var Vt,fn,ft,ct,ze=1.2*G.finalSize*.714,ht=!0;ft=rn.length;var wt,xi,Zo,Po,Ca,Jo,fl,ga,Ja,j0,y2,$0,E0,eh=-1,dr=Qe,Ak=pt,Sk=et,xw=-1,Uf="",g5=this.defaultPropsArray;if(G.j===2||G.j===1){var th=0,V7=0,H7=G.j===2?-.5:-1,b2=0,U7=!0;for(Ce=0;Ce<Ee;Ce+=1)if(ci[Ce].n){for(th&&(th+=V7);b2<Ce;)ci[b2].animatorJustifyOffset=th,b2+=1;th=0,U7=!0}else{for(fn=0;fn<ft;fn+=1)(Vt=rn[fn].a).t.propType&&(U7&&G.j===2&&(V7+=Vt.t.v*H7),(wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].s.totalChars)).length?th+=Vt.t.v*wt[0]*H7:th+=Vt.t.v*wt*H7);U7=!1}for(th&&(th+=V7);b2<Ce;)ci[b2].animatorJustifyOffset=th,b2+=1}for(Ce=0;Ce<Ee;Ce+=1){if(zt.reset(),Ca=1,ci[Ce].n)pe=0,xe+=G.yOffset,xe+=ht?1:0,Qe=dr,ht=!1,this._hasMaskedPath&&(et=Sk,Ct=(Tt=Kt[pt=Ak].points)[et-1],en=(Ge=Tt[et]).partialLength,Rt=0),Uf="",$0="",j0="",E0="",g5=this.defaultPropsArray;else{if(this._hasMaskedPath){if(xw!==ci[Ce].line){switch(G.j){case 1:Qe+=Xe-G.lineWidths[ci[Ce].line];break;case 2:Qe+=(Xe-G.lineWidths[ci[Ce].line])/2}xw=ci[Ce].line}eh!==ci[Ce].ind&&(ci[eh]&&(Qe+=ci[eh].extra),Qe+=ci[Ce].an/2,eh=ci[Ce].ind),Qe+=gt[0]*ci[Ce].an*.005;var w2=0;for(fn=0;fn<ft;fn+=1)(Vt=rn[fn].a).p.propType&&((wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].s.totalChars)).length?w2+=Vt.p.v[0]*wt[0]:w2+=Vt.p.v[0]*wt),Vt.a.propType&&((wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].s.totalChars)).length?w2+=Vt.a.v[0]*wt[0]:w2+=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)*eh/(Ee-1),Qe+=this._pathData.f.v);Jt;)Rt+en>=Qe+w2||!Tt?(We=(Qe+w2-Rt)/Ge.partialLength,Zo=Ct.point[0]+(Ge.point[0]-Ct.point[0])*We,Po=Ct.point[1]+(Ge.point[1]-Ct.point[1])*We,zt.translate(-gt[0]*ci[Ce].an*.005,-gt[1]*ze*.01),Jt=!1):Tt&&(Rt+=Ge.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-=Ge.partialLength,Tt=null)),Tt&&(Ct=Ge,en=(Ge=Tt[et]).partialLength));xi=ci[Ce].an/2-ci[Ce].add,zt.translate(-xi,0,0)}else xi=ci[Ce].an/2-ci[Ce].add,zt.translate(-xi,0,0),zt.translate(-gt[0]*ci[Ce].an*.005,-gt[1]*ze*.01,0);for(fn=0;fn<ft;fn+=1)(Vt=rn[fn].a).t.propType&&(wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].s.totalChars),(pe!==0||G.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(G.strokeWidthAnim&&(fl=G.sw||0),G.strokeColorAnim&&(Jo=G.sc?[G.sc[0],G.sc[1],G.sc[2]]:[0,0,0]),G.fillColorAnim&&G.fc&&(ga=[G.fc[0],G.fc[1],G.fc[2]]),fn=0;fn<ft;fn+=1)(Vt=rn[fn].a).a.propType&&((wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].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(fn=0;fn<ft;fn+=1)(Vt=rn[fn].a).s.propType&&((wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].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(fn=0;fn<ft;fn+=1){if(Vt=rn[fn].a,wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].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),G.strokeWidthAnim&&Vt.sw.propType&&(wt.length?fl+=Vt.sw.v*wt[0]:fl+=Vt.sw.v*wt),G.strokeColorAnim&&Vt.sc.propType)for(Ja=0;Ja<3;Ja+=1)wt.length?Jo[Ja]+=(Vt.sc.v[Ja]-Jo[Ja])*wt[0]:Jo[Ja]+=(Vt.sc.v[Ja]-Jo[Ja])*wt;if(G.fillColorAnim&&G.fc){if(Vt.fc.propType)for(Ja=0;Ja<3;Ja+=1)wt.length?ga[Ja]+=(Vt.fc.v[Ja]-ga[Ja])*wt[0]:ga[Ja]+=(Vt.fc.v[Ja]-ga[Ja])*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?Y(ga,Vt.fb.v*wt[0]):Y(ga,Vt.fb.v*wt))}}for(fn=0;fn<ft;fn+=1)(Vt=rn[fn].a).p.propType&&(wt=rn[fn].s.getMult(ci[Ce].anIndexes[fn],sn.a[fn].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(G.strokeWidthAnim&&(j0=fl<0?0:fl),G.strokeColorAnim&&(y2="rgb("+Math.round(255*Jo[0])+","+Math.round(255*Jo[1])+","+Math.round(255*Jo[2])+")"),G.fillColorAnim&&G.fc&&($0="rgb("+Math.round(255*ga[0])+","+Math.round(255*ga[1])+","+Math.round(255*ga[2])+")"),this._hasMaskedPath){if(zt.translate(0,-G.ls),zt.translate(0,gt[1]*ze*.01+xe,0),this._pathData.p.v){Ne=(Ge.point[1]-Ct.point[1])/(Ge.point[0]-Ct.point[0]);var yw=180*Math.atan(Ne)/Math.PI;Ge.point[0]<Ct.point[0]&&(yw+=180),zt.rotate(-yw*Math.PI/180)}zt.translate(Zo,Po,0),Qe-=gt[0]*ci[Ce].an*.005,ci[Ce+1]&&eh!==ci[Ce+1].ind&&(Qe+=ci[Ce].an/2,Qe+=.001*G.tr*G.finalSize)}else{switch(zt.translate(pe,xe,0),G.ps&&zt.translate(G.ps[0],G.ps[1]+G.ascent,0),G.j){case 1:zt.translate(ci[Ce].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ci[Ce].line]),0,0);break;case 2:zt.translate(ci[Ce].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ci[Ce].line])/2,0,0)}zt.translate(0,-G.ls),zt.translate(xi,0,0),zt.translate(gt[0]*ci[Ce].an*.005,gt[1]*ze*.01,0),pe+=ci[Ce].l+.001*G.tr*G.finalSize}po==="html"?Uf=zt.toCSS():po==="svg"?Uf=zt.to2dCSS():g5=[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]],E0=Ca}Eo<=Ce?(ct=new Xp(E0,j0,y2,$0,Uf,g5),this.renderedLetters.push(ct),Eo+=1,this.lettersChangedFlag=!0):(ct=this.renderedLetters[Ce],this.lettersChangedFlag=ct.update(E0,j0,y2,$0,Uf,g5)||this.lettersChangedFlag)}}},x2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},x2.prototype.mHelper=new At,x2.prototype.defaultPropsArray=[],g([Ot],x2),k0.prototype.initElement=function(G,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(G,X,pe),this.textProperty=new ed(this,G.t,this.dynamicProperties),this.textAnimator=new x2(G.t,this.renderType,this),this.initTransform(G,X,pe),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},k0.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},k0.prototype.createPathShape=function(G,X){var pe,xe,Ce=X.length,Ee="";for(pe=0;pe<Ce;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,Ee+=Zn(xe,xe.i.length,!0,G));return Ee},k0.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},k0.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},k0.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},k0.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,Ce){switch(G.ps&&X.translate(G.ps[0],G.ps[1]+G.ascent,0),X.translate(0,-G.ls,0),G.j){case 1:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe]),0,0);break;case 2:X.translate(G.justifyOffset+(G.boxWidth-G.lineWidths[pe])/2,0,0)}X.translate(xe,Ce,0)},k0.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},k0.prototype.emptyProp=new Xp,k0.prototype.destroy=function(){},k0.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var crn={shapes:[]};function h5(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function Jre(G,X,pe){this.initElement(G,X,pe)}function _7(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function Bd(){}function m5(){}function BL(G,X,pe){this.layers=G.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?b(this.layers.length):[],this.initElement(G,X,pe),this.tm=G.tm?Ze.getProp(this,G.tm,0,X.frameRate,this):{_placeholder:!0}}function Xre(G,X){this.animationItem=G,this.layers=null,this.renderedFrame=-1,this.svgElement=le("svg");var pe="";if(X&&X.title){var xe=le("title"),Ce=H();xe.setAttribute("id",Ce),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ce}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 Ge=le("g");this.svgElement.appendChild(Ge),this.layerElement=Ge,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,f2,hw,N7,Ci,p5,k0],h5),h5.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},h5.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],Ce="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(Ce),Ce=""):Ce+=G[X],X+=1;return xe.push(Ce),xe},h5.prototype.buildShapeData=function(G,X){if(G.shapes&&G.shapes.length){var pe=G.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 G},h5.prototype.buildNewText=function(){this.addDynamicProperty(this);var G,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 Ce=pe.fWeight,Ee=pe.fStyle;this.layerElement.setAttribute("font-style",Ee),this.layerElement.setAttribute("font-weight",Ce)}this.layerElement.setAttribute("aria-label",pe.t);var Re=pe.l||[],Qe=!!this.globalData.fontManager.chars;X=Re.length;var Ge,Rt=this.mHelper,Jt="",et=this.data.singleShape,pt=0,Ct=0,Tt=!0,Kt=.001*pe.tr*pe.finalSize;if(!et||Qe||pe.sz){var en,Xe=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!Qe||!et||G===0){if(Ge=Xe>G?this.textSpans[G].span:le(Qe?"g":"text"),Xe<=G){if(Ge.setAttribute("stroke-linecap","butt"),Ge.setAttribute("stroke-linejoin","round"),Ge.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=Ge,Qe){var We=le("g");Ge.appendChild(We),this.textSpans[G].childSpan=We}this.textSpans[G].span=Ge,this.layerElement.appendChild(Ge)}Ge.style.display="inherit"}if(Rt.reset(),et&&(Re[G].n&&(pt=-Kt,Ct+=pe.yOffset,Ct+=Tt?1:0,Tt=!1),this.applyTextPropertiesToMatrix(pe,Rt,Re[G].line,pt,Ct),pt+=Re[G].l||0,pt+=Kt),Qe){var Ne;if((en=this.globalData.fontManager.getCharData(pe.finalText[G],xe.fStyle,this.globalData.fontManager.getFontByName(pe.f).fFamily)).t===1)Ne=new BL(en.data,this.globalData,this);else{var qe=crn;en.data&&en.data.shapes&&(qe=this.buildShapeData(en.data,pe.finalSize)),Ne=new tr(qe,this.globalData,this)}if(this.textSpans[G].glyph){var gt=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(gt.layerElement),gt.destroy()}this.textSpans[G].glyph=Ne,Ne._debug=!0,Ne.prepareFrame(0),Ne.renderFrame(),this.textSpans[G].childSpan.appendChild(Ne.layerElement),en.t===1&&this.textSpans[G].childSpan.setAttribute("transform","scale("+pe.finalSize/100+","+pe.finalSize/100+")")}else et&&Ge.setAttribute("transform","translate("+Rt.props[12]+","+Rt.props[13]+")"),Ge.textContent=Re[G].val,Ge.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&Ge&&Ge.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,Ct=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(Ge=this.textSpans[G].span||le("tspan")).textContent=zt[G],Ge.setAttribute("x",0),Ge.setAttribute("y",Ct),Ge.style.display="inherit",rn.appendChild(Ge),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=Ge,Ct+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},h5.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var G=this.layerElement.getBBox();this.bbox={top:G.y,left:G.x,width:G.width,height:G.height}}return this.bbox},h5.prototype.getValue=function(){var G,X,pe=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,G=0;G<pe;G+=1)(X=this.textSpans[G].glyph)&&(X.prepareFrame(this.comp.renderedFrame-this.data.st),X._mdf&&(this._mdf=!0))},h5.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 G,X,pe,xe,Ce,Ee=this.textAnimator.renderedLetters,Re=this.textProperty.currentData.l;for(X=Re.length,G=0;G<X;G+=1)Re[G].n||(pe=Ee[G],xe=this.textSpans[G].span,(Ce=this.textSpans[G].glyph)&&Ce.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([mw],Jre),Jre.prototype.createContent=function(){var G=le("rect");G.setAttribute("width",this.data.sw),G.setAttribute("height",this.data.sh),G.setAttribute("fill",this.data.sc),this.layerElement.appendChild(G)},_7.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},_7.prototype.renderFrame=function(){},_7.prototype.getBaseElement=function(){return null},_7.prototype.destroy=function(){},_7.prototype.sourceRectAtTime=function(){},_7.prototype.hide=function(){},g([Nn,f2,N7,Ci],_7),g([rl],Bd),Bd.prototype.createNull=function(G){return new _7(G,this.globalData,this)},Bd.prototype.createShape=function(G){return new tr(G,this.globalData,this)},Bd.prototype.createText=function(G){return new h5(G,this.globalData,this)},Bd.prototype.createImage=function(G){return new mw(G,this.globalData,this)},Bd.prototype.createSolid=function(G){return new Jre(G,this.globalData,this)},Bd.prototype.configAnimation=function(G){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 "+G.w+" "+G.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",G.w),this.svgElement.setAttribute("height",G.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(G,X),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=G;var pe=le("clipPath"),xe=le("rect");xe.setAttribute("width",G.w),xe.setAttribute("height",G.h),xe.setAttribute("x",0),xe.setAttribute("y",0);var Ce=H();pe.setAttribute("id",Ce),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ce+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},Bd.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var G,X=this.layers?this.layers.length:0;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy&&this.elements[G].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Bd.prototype.updateContainerSize=function(){},Bd.prototype.findIndexByInd=function(G){var X=0,pe=this.layers.length;for(X=0;X<pe;X+=1)if(this.layers[X].ind===G)return X;return-1},Bd.prototype.buildItem=function(G){var X=this.elements;if(!X[G]&&this.layers[G].ty!==99){X[G]=!0;var pe=this.createItem(this.layers[G]);if(X[G]=pe,te()&&(this.layers[G].ty===0&&this.globalData.projectInterface.registerComposition(pe),pe.initExpressions()),this.appendElementInPos(pe,G),this.layers[G].tt){var xe="tp"in this.layers[G]?this.findIndexByInd(this.layers[G].tp):G-1;if(xe===-1)return;if(this.elements[xe]&&this.elements[xe]!==!0){var Ce=X[xe].getMatte(this.layers[G].tt);pe.setMatte(Ce)}else this.buildItem(xe),this.addPendingElement(pe)}}},Bd.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var G=this.pendingElements.pop();if(G.checkParenting(),G.data.tt)for(var X=0,pe=this.elements.length;X<pe;){if(this.elements[X]===G){var xe="tp"in G.data?this.findIndexByInd(G.data.tp):X-1,Ce=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(Ce);break}X+=1}}},Bd.prototype.renderFrame=function(G){if(this.renderedFrame!==G&&!this.destroyed){G===null?G=this.renderedFrame:this.renderedFrame=G,this.globalData.frameNum=G,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=G,this.globalData._mdf=!1;var X,pe=this.layers.length;for(this.completeLayers||this.checkLayers(G),X=pe-1;X>=0;X-=1)(this.completeLayers||this.elements[X])&&this.elements[X].prepareFrame(G-this.layers[X].st);if(this.globalData._mdf)for(X=0;X<pe;X+=1)(this.completeLayers||this.elements[X])&&this.elements[X].renderFrame()}},Bd.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,Ce=0;Ce<X;)this.elements[Ce]&&this.elements[Ce]!==!0&&this.elements[Ce].getBaseElement()&&(xe=this.elements[Ce].getBaseElement()),Ce+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},Bd.prototype.hide=function(){this.layerElement.style.display="none"},Bd.prototype.show=function(){this.layerElement.style.display="block"},g([Nn,f2,N7,Ci,p5],m5),m5.prototype.initElement=function(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initTransform(G,X,pe),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!X.progressiveLoad)&&this.buildAllItems(),this.hide()},m5.prototype.prepareFrame=function(G){if(this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=G/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))}},m5.prototype.renderInnerContent=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)(this.completeLayers||this.elements[G])&&this.elements[G].renderFrame()},m5.prototype.setElements=function(G){this.elements=G},m5.prototype.getElements=function(){return this.elements},m5.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},m5.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([Bd,m5,hw],BL),BL.prototype.createComp=function(G){return new BL(G,this.globalData,this)},g([Bd],Xre),Xre.prototype.createComp=function(G){return new BL(G,this.globalData,this)},me("svg",Xre),un.registerModifier("tm",It),un.registerModifier("pb",Ft),un.registerModifier("rp",On),un.registerModifier("rd",_n),un.registerModifier("zz",ha),un.registerModifier("op",yr),Yt})())})(0,iae.exports)),iae.exports}function zcn(){if(D$e)return nae;function e(n){return n instanceof t$e?t$e.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return D$e=1,nae=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 v=b[C],S=x[v];if(typeof S!="object"||S===null)w[v]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[v]=p(S,y);else if(ArrayBuffer.isView(S))w[v]=e(S);else{const k=c.indexOf(S);w[v]=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}},nae}var Ncn=(function(){if(P$e)return B$e;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}P$e=1;var n=e(Rcn()),i=B,r=e(i),s=e((I$e||(I$e=1,E$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}),E$e)),l=e((L$e||(L$e=1,T$e=zcn()()),T$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,v=y.play,S=v===void 0?null:v,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,Y=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,re=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 oe=le;C=oe.path,ge=d(oe,["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],Ae=we[1];i.useEffect((function(){s(be,D)||Ae(D)}),[D,be]);var Pe=i.useState(V),Le=Pe[0],Te=Pe[1];i.useEffect((function(){s(Le,V)||Te(V)}),[V,Le]),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",re)}}),[de,re]),i.useEffect((function(){return function(){return de().removeEventListener("DOMLoaded",Y)}}),[de,Y]);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:Le},W?{audioFactory:W}:{}));Fe(ke);var ve=function(){return ye(!0)};return de().addEventListener("DOMLoaded",ve),function(){de().removeEventListener("DOMLoaded",ve),ye(!1),de().destroy(),Fe(void 0)}}),[O,T,Le,w,C,W,Fe,de]),i.useEffect((function(){de().addEventListener("DOMLoaded",Y)}),[de,Y]),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",re)}),[de,re]),i.useEffect((function(){me&&(de().loop=O)}),[me,O,de]);var Oe=i.useRef(!1);return i.useEffect((function(){if(me)if(S===!0){var ke=!0;be?(de().playSegments(be,ke),Oe.current=!0,I===-1&&ve(typeof be[1]=="number"?be[1]:be[1][1])):(Oe.current&&de().resetSegments(ke),Oe.current=!1,I===-1?ve(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function ve(Ie){de().goToAndPlay(Ie,!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 B$e=h})();const _s=pr(Ncn);var M$e,O$e,oae,F$e,rae,R$e,aae,z$e,sae,N$e,lae,_$e,cae,V$e,H$e,U$e,W$e,Q$e,Y$e,G$e,q$e,K$e,Z$e,J$e,X$e,eEe,tEe,nEe,iEe,oEe,dae,rEe,uae,aEe,pae,sEe,hae,lEe,mae,cEe,dEe,uEe,gae,pEe,fae,hEe,xae,mEe,gEe,fEe,yae,xEe,yEe,bEe,wEe,CEe,vEe,AEe,SEe,kEe,bae,jEe,wae,$Ee,Cae,EEe,IEe,DEe,TEe,LEe,BEe,PEe,vae,MEe,Aae,OEe,Sae,FEe,kae,REe,jae,zEe,NEe,_Ee,$ae,VEe,HEe,UEe,WEe,QEe,YEe,GEe,qEe,KEe,ZEe,JEe,Eae,XEe,Iae,eIe,tIe,nIe,iIe,oIe,Dae,rIe,Tae,aIe,Lae,sIe,lIe,cIe,Bae,dIe,Pae,uIe,pIe,hIe,mIe,gIe,Mae,fIe,Oae,xIe,Fae,yIe,bIe,wIe;function gte(){return F$e||(F$e=1,oae=function(e,n){return e===n||e!=e&&n!=n}),oae}function __(){if(R$e)return rae;R$e=1;var e=gte();return rae=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},rae}function cq(){if(U$e)return H$e;U$e=1;var e=O$e?M$e:(O$e=1,M$e=function(){this.__data__=[],this.size=0}),n=(function(){if(z$e)return aae;z$e=1;var c=__(),d=Array.prototype.splice;return aae=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))},aae})(),i=(function(){if(N$e)return sae;N$e=1;var c=__();return sae=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},sae})(),r=(function(){if(_$e)return lae;_$e=1;var c=__();return lae=function(d){return c(this.__data__,d)>-1},lae})(),s=(function(){if(V$e)return cae;V$e=1;var c=__();return cae=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},cae})();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,H$e=l}function _vt(){if(eEe)return X$e;eEe=1;var e=typeof Hh=="object"&&Hh&&Hh.Object===Object&&Hh;return X$e=e}function I3(){if(nEe)return tEe;nEe=1;var e=_vt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return tEe=i}function AD(){if(oEe)return iEe;oEe=1;var e=I3().Symbol;return iEe=e}function $T(){if(sEe)return pae;sEe=1;var e=AD(),n=(function(){if(rEe)return dae;rEe=1;var s=AD(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return dae=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},dae})(),i=(function(){if(aEe)return uae;aEe=1;var s=Object.prototype.toString;return uae=function(l){return s.call(l)},uae})(),r=e?e.toStringTag:void 0;return pae=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},pae}function Y3(){return lEe||(lEe=1,hae=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),hae}function Vvt(){if(cEe)return mae;cEe=1;var e=$T(),n=Y3();return mae=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},mae}function _cn(){if(pEe)return gae;pEe=1;var e=(function(){if(uEe)return dEe;uEe=1;var i=I3()["__core-js_shared__"];return dEe=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return gae=function(i){return!!n&&n in i},gae}function Hvt(){if(hEe)return fae;hEe=1;var e=Function.prototype.toString;return fae=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},fae}function bA(){if(xEe)return yae;xEe=1;var e=(function(){if(mEe)return xae;mEe=1;var i=Vvt(),r=_cn(),s=Y3(),l=Hvt(),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 xae=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},xae})(),n=(fEe||(fEe=1,gEe=function(i,r){return i?.[r]}),gEe);return yae=function(i,r){var s=n(i,r);return e(s)?s:void 0},yae}function fwe(){if(bEe)return yEe;bEe=1;var e=bA()(I3(),"Map");return yEe=e}function V_(){if(CEe)return wEe;CEe=1;var e=bA()(Object,"create");return wEe=e}function Vcn(){if(DEe)return IEe;DEe=1;var e=(function(){if(AEe)return vEe;AEe=1;var c=V_();return vEe=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(kEe||(kEe=1,SEe=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),SEe),i=(function(){if(jEe)return bae;jEe=1;var c=V_(),d=Object.prototype.hasOwnProperty;return bae=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},bae})(),r=(function(){if($Ee)return wae;$Ee=1;var c=V_(),d=Object.prototype.hasOwnProperty;return wae=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},wae})(),s=(function(){if(EEe)return Cae;EEe=1;var c=V_();return Cae=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},Cae})();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 H_(){if(MEe)return vae;MEe=1;var e=(PEe||(PEe=1,BEe=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),BEe);return vae=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},vae}function xwe(){if(_Ee)return NEe;_Ee=1;var e=(function(){if(LEe)return TEe;LEe=1;var c=Vcn(),d=cq(),u=fwe();return TEe=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(OEe)return Aae;OEe=1;var c=H_();return Aae=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},Aae})(),i=(function(){if(FEe)return Sae;FEe=1;var c=H_();return Sae=function(d){return c(this,d).get(d)},Sae})(),r=(function(){if(REe)return kae;REe=1;var c=H_();return kae=function(d){return c(this,d).has(d)},kae})(),s=(function(){if(zEe)return jae;zEe=1;var c=H_();return jae=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,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,NEe=l}function ywe(){if(UEe)return HEe;UEe=1;var e=cq(),n=(function(){if(Q$e)return W$e;Q$e=1;var d=cq();return W$e=function(){this.__data__=new d,this.size=0}})(),i=(G$e||(G$e=1,Y$e=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),Y$e),r=(K$e||(K$e=1,q$e=function(d){return this.__data__.get(d)}),q$e),s=(J$e||(J$e=1,Z$e=function(d){return this.__data__.has(d)}),Z$e),l=(function(){if(VEe)return $ae;VEe=1;var d=cq(),u=fwe(),p=xwe();return $ae=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},$ae})();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,HEe=c}function Uvt(){if(KEe)return qEe;KEe=1;var e=xwe(),n=(QEe||(QEe=1,WEe=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),WEe),i=(GEe||(GEe=1,YEe=function(s){return this.__data__.has(s)}),YEe);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,qEe=r}function Wvt(){return XEe||(XEe=1,Eae=function(e,n){return e.has(n)}),Eae}function Qvt(){if(eIe)return Iae;eIe=1;var e=Uvt(),n=(JEe||(JEe=1,ZEe=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}),ZEe),i=Wvt();return Iae=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],v=s[y];if(c)var S=p?c(v,C,y,s,r,u):c(C,v,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!==v&&!d(C,v,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},Iae}function Yvt(){if(nIe)return tIe;nIe=1;var e=I3().Uint8Array;return tIe=e}function j5e(){return rIe||(rIe=1,Dae=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Dae}function Hcn(){if(aIe)return Tae;aIe=1;var e=AD(),n=Yvt(),i=gte(),r=Qvt(),s=(oIe||(oIe=1,iIe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),iIe),l=j5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Tae=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 v=r(b(u),b(p),g,f,x,y);return y.delete(u),v;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Tae}function bwe(){return sIe||(sIe=1,Lae=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Lae}function Zu(){if(cIe)return lIe;cIe=1;var e=Array.isArray;return lIe=e}function Gvt(){if(dIe)return Bae;dIe=1;var e=bwe(),n=Zu();return Bae=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Bae}function wwe(){return uIe||(uIe=1,Pae=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}),Pae}function qvt(){return hIe?pIe:(hIe=1,pIe=function(){return[]})}function Cwe(){if(gIe)return mIe;gIe=1;var e=wwe(),n=qvt(),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 mIe=s}function Kvt(){return fIe||(fIe=1,Mae=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),Mae}function a7(){return xIe||(xIe=1,Oae=function(e){return e!=null&&typeof e=="object"}),Oae}function vwe(){if(wIe)return bIe;wIe=1;var e=(function(){if(yIe)return Fae;yIe=1;var c=$T(),d=a7();return Fae=function(u){return d(u)&&c(u)=="[object Arguments]"},Fae})(),n=a7(),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 CIe,vIe,AIe,Rae,SIe,zae,kIe,Nae,jIe,_ae,$Ie,Vae={exports:{}};function Awe(){return AIe||(AIe=1,(function(e,n){var i=I3(),r=vIe?CIe:(vIe=1,CIe=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})(Vae,Vae.exports)),Vae.exports}function Yz(){if(SIe)return Rae;SIe=1;var e=/^(?:0|[1-9]\d*)$/;return Rae=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},Rae}function Swe(){return kIe?zae:(kIe=1,zae=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},zae)}function fte(){return $Ie||($Ie=1,_ae=function(e){return function(n){return e(n)}}),_ae}var EIe,IIe,DIe,Hae,TIe,Uae,LIe,Wae,BIe,PIe,MIe,Qae,OIe,Yae,FIe,Gae,RIe,qae,zIe,Kae,NIe,_Ie,VIe,HIe,UIe,WIe,QIe,YIe,GIe,qIe,KIe,Zae,ZIe,Jae,JIe,Xae,XIe,ese={exports:{}};function kwe(){return EIe||(EIe=1,(function(e,n){var i=_vt(),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})(ese,ese.exports)),ese.exports}function Zvt(){if(DIe)return IIe;DIe=1;var e=(function(){if(jIe)return Nae;jIe=1;var l=$T(),c=Swe(),d=a7(),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,Nae=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Nae})(),n=fte(),i=kwe(),r=i&&i.isTypedArray,s=r?n(r):e;return IIe=s}function Jvt(){if(TIe)return Hae;TIe=1;var e=Kvt(),n=vwe(),i=Zu(),r=Awe(),s=Yz(),l=Zvt(),c=Object.prototype.hasOwnProperty;return Hae=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},Hae}function jwe(){if(LIe)return Uae;LIe=1;var e=Object.prototype;return Uae=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Uae}function Xvt(){return BIe||(BIe=1,Wae=function(e,n){return function(i){return e(n(i))}}),Wae}function Ucn(){if(OIe)return Qae;OIe=1;var e=jwe(),n=(function(){if(MIe)return PIe;MIe=1;var r=Xvt()(Object.keys,Object);return PIe=r})(),i=Object.prototype.hasOwnProperty;return Qae=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},Qae}function ET(){if(FIe)return Yae;FIe=1;var e=Vvt(),n=Swe();return Yae=function(i){return i!=null&&n(i.length)&&!e(i)},Yae}function LR(){if(RIe)return Gae;RIe=1;var e=Jvt(),n=Ucn(),i=ET();return Gae=function(r){return i(r)?e(r):n(r)},Gae}function eAt(){if(zIe)return qae;zIe=1;var e=Gvt(),n=Cwe(),i=LR();return qae=function(r){return e(r,i,n)},qae}function tAt(){if(QIe)return WIe;QIe=1;var e=bA()(I3(),"Set");return WIe=e}function xte(){if(KIe)return qIe;KIe=1;var e=(function(){if(VIe)return _Ie;VIe=1;var v=bA()(I3(),"DataView");return _Ie=v})(),n=fwe(),i=(function(){if(UIe)return HIe;UIe=1;var v=bA()(I3(),"Promise");return HIe=v})(),r=tAt(),s=(function(){if(GIe)return YIe;GIe=1;var v=bA()(I3(),"WeakMap");return YIe=v})(),l=$T(),c=Hvt(),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(v){var S=l(v),k=S=="[object Object]"?v.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}),qIe=C}function Wcn(){if(ZIe)return Zae;ZIe=1;var e=ywe(),n=Qvt(),i=Hcn(),r=(function(){if(NIe)return Kae;NIe=1;var f=eAt(),x=Object.prototype.hasOwnProperty;return Kae=function(y,b,w,C,v,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||v(_,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},Kae})(),s=xte(),l=Zu(),c=Awe(),d=Zvt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return Zae=function(f,x,y,b,w,C){var v=l(f),S=l(x),k=v?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;v=!0,j=!1}if(E&&!j)return C||(C=new e),v||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))},Zae}function $we(){if(JIe)return Jae;JIe=1;var e=Wcn(),n=a7();return Jae=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))},Jae}var Qcn=(function(){if(XIe)return Xae;XIe=1;var e=$we();return Xae=function(n,i){return e(n,i)},Xae})();const ro=pr(Qcn);var eDe,tDe,tse,nDe,nse,iDe,ise,oDe,ose,rDe,rse,aDe;function Ycn(){if(iDe)return nse;iDe=1;var e=(function(){if(nDe)return tse;nDe=1;var i=/\s/;return tse=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},tse})(),n=/^\s+/;return nse=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},nse}function Gz(){if(oDe)return ise;oDe=1;var e=$T(),n=a7();return ise=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},ise}function nAt(){if(rDe)return ose;rDe=1;var e=Ycn(),n=Y3(),i=Gz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return ose=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},ose}function iAt(){if(aDe)return rse;aDe=1;var e=Y3(),n=(function(){if(tDe)return eDe;tDe=1;var l=I3();return eDe=function(){return l.Date.now()}})(),i=nAt(),r=Math.max,s=Math.min;return rse=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 v(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?v(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?v(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),v(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},rse}const vs=pr(iAt());var sDe,lDe;function oAt(){return lDe?sDe:(lDe=1,sDe=function(){})}const Ewe=pr(oAt());var ase,cDe,dDe,uDe,sse,pDe,lse,hDe,cse,mDe,dse,gDe,fDe,xDe,use,yDe,pse,bDe,hse,wDe;function rAt(){return cDe||(cDe=1,ase=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),ase}function aAt(){if(uDe)return dDe;uDe=1;var e=bA(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return dDe=n}function Iwe(){if(pDe)return sse;pDe=1;var e=aAt();return sse=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},sse}function Dwe(){if(hDe)return lse;hDe=1;var e=Iwe(),n=gte(),i=Object.prototype.hasOwnProperty;return lse=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)},lse}function rO(){if(mDe)return cse;mDe=1;var e=Dwe(),n=Iwe();return cse=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},cse}function Gcn(){if(yDe)return use;yDe=1;var e=Y3(),n=jwe(),i=(xDe||(xDe=1,fDe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),fDe),r=Object.prototype.hasOwnProperty;return use=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},use}function $5e(){if(bDe)return pse;bDe=1;var e=Jvt(),n=Gcn(),i=ET();return pse=function(r){return i(r)?e(r,!0):n(r)},pse}var CDe,vDe,ADe,mse,SDe,kDe,jDe,$De,EDe,gse,IDe,fse,DDe,xse,TDe,yse,LDe,bse,BDe,wse,PDe,Cse,MDe,vse,ODe,Ase,FDe,RDe,zDe,Sse,NDe,kse,_De,VDe,HDe,jse,UDe,WDe,QDe,$se,YDe,Ese,GDe,Ise={exports:{}};function Twe(){if(jDe)return kDe;jDe=1;var e=Xvt()(Object.getPrototypeOf,Object);return kDe=e}function sAt(){if(EDe)return $De;EDe=1;var e=bwe(),n=Twe(),i=Cwe(),r=qvt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return $De=s}function Lwe(){if(DDe)return fse;DDe=1;var e=Gvt(),n=sAt(),i=$5e();return fse=function(r){return e(r,i,n)},fse}function Dse(){if(LDe)return yse;LDe=1;var e=Yvt();return yse=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},yse}function qcn(){if(FDe)return Ase;FDe=1;var e=Dse(),n=(function(){if(BDe)return bse;BDe=1;var l=Dse();return bse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},bse})(),i=(function(){if(PDe)return wse;PDe=1;var l=/\w*$/;return wse=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},wse})(),r=(function(){if(MDe)return Cse;MDe=1;var l=AD(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return Cse=function(u){return d?Object(d.call(u)):{}},Cse})(),s=(function(){if(ODe)return vse;ODe=1;var l=Dse();return vse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},vse})();return Ase=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)}},Ase}function Kcn(){if(NDe)return Sse;NDe=1;var e=(function(){if(zDe)return RDe;zDe=1;var r=Y3(),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 RDe=l})(),n=Twe(),i=jwe();return Sse=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Sse}function Zcn(){if(HDe)return VDe;HDe=1;var e=(function(){if(_De)return kse;_De=1;var l=xte(),c=a7();return kse=function(d){return c(d)&&l(d)=="[object Map]"},kse})(),n=fte(),i=kwe(),r=i&&i.isMap,s=r?n(r):e;return VDe=s}function Jcn(){if(QDe)return WDe;QDe=1;var e=(function(){if(UDe)return jse;UDe=1;var l=xte(),c=a7();return jse=function(d){return c(d)&&l(d)=="[object Set]"},jse})(),n=fte(),i=kwe(),r=i&&i.isSet,s=r?n(r):e;return WDe=s}function lAt(){if(YDe)return $se;YDe=1;var e=ywe(),n=rAt(),i=Dwe(),r=(function(){if(gDe)return dse;gDe=1;var L=rO(),F=LR();return dse=function(N,_){return N&&L(_,F(_),N)},dse})(),s=(function(){if(wDe)return hse;wDe=1;var L=rO(),F=$5e();return hse=function(N,_){return N&&L(_,F(_),N)},hse})(),l=(CDe||(CDe=1,(function(L,F){var N=I3(),_=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}})(Ise,Ise.exports)),Ise.exports),c=(ADe||(ADe=1,vDe=function(L,F){var N=-1,_=L.length;for(F||(F=Array(_));++N<_;)F[N]=L[N];return F}),vDe),d=(function(){if(SDe)return mse;SDe=1;var L=rO(),F=Cwe();return mse=function(N,_){return L(N,F(N),_)},mse})(),u=(function(){if(IDe)return gse;IDe=1;var L=rO(),F=sAt();return gse=function(N,_){return L(N,F(N),_)},gse})(),p=eAt(),h=Lwe(),g=xte(),f=(function(){if(TDe)return xse;TDe=1;var L=Object.prototype.hasOwnProperty;return xse=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),_},xse})(),x=qcn(),y=Kcn(),b=Zu(),w=Awe(),C=Zcn(),v=Y3(),S=Jcn(),k=LR(),$=$5e(),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,$se=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(!v(F))return F;var U=b(F);if(U){if(O=f(F),!H)return c(F,O)}else{var Y=g(F),q=Y==I||Y=="[object GeneratorFunction]";if(w(F))return l(F,H);if(Y==E||Y==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[Y])return T?F:{};O=x(F,Y,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},$se}var Xcn=(function(){if(GDe)return Ese;GDe=1;var e=lAt();return Ese=function(n){return e(n,5)},Ese})();const ds=pr(Xcn);var Tse,qDe,Lse,KDe,ZDe,JDe,Bse,XDe,eTe,tTe,Pse,nTe,Mse,iTe,Ose,oTe,Fse,rTe,Rse,aTe,zse,sTe,Nse,lTe;function Bwe(){if(KDe)return Lse;KDe=1;var e=Zu(),n=Gz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Lse=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)},Lse}function edn(){if(XDe)return Bse;XDe=1;var e=(function(){if(JDe)return ZDe;JDe=1;var n=xwe();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,ZDe=i})();return Bse=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Bse}function ES(){return nTe||(nTe=1,Pse=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}),Pse}function cAt(){if(iTe)return Mse;iTe=1;var e=AD(),n=ES(),i=Zu(),r=Gz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return Mse=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},Mse}function dAt(){if(oTe)return Ose;oTe=1;var e=cAt();return Ose=function(n){return n==null?"":e(n)},Ose}function SD(){if(rTe)return Fse;rTe=1;var e=Zu(),n=Bwe(),i=(function(){if(tTe)return eTe;tTe=1;var s=edn(),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 eTe=d})(),r=dAt();return Fse=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},Fse}function IT(){if(aTe)return Rse;aTe=1;var e=Gz();return Rse=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Rse}function uAt(){if(sTe)return zse;sTe=1;var e=SD(),n=vwe(),i=Zu(),r=Yz(),s=Swe(),l=IT();return zse=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))},zse}var tdn=(function(){if(lTe)return Nse;lTe=1;var e=(function(){if(qDe)return Tse;qDe=1;var i=Object.prototype.hasOwnProperty;return Tse=function(r,s){return r!=null&&i.call(r,s)},Tse})(),n=uAt();return Nse=function(i,r){return i!=null&&n(i,r,e)},Nse})();const mn=pr(tdn);var cTe,dTe,_se,uTe,Vse,pTe,Hse,hTe,mTe,gTe,fTe,xTe,Use,yTe,bTe,wTe,Wse,CTe,vTe,ATe;function DT(){return uTe||(uTe=1,_se=function(e){return e}),_se}function pAt(){return pTe||(pTe=1,Vse=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)}),Vse}function hAt(){if(hTe)return Hse;hTe=1;var e=pAt(),n=Math.max;return Hse=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)}},Hse}function ndn(){if(xTe)return fTe;xTe=1;var e=(gTe||(gTe=1,mTe=function(s){return function(){return s}}),mTe),n=aAt(),i=DT(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return fTe=r}function mAt(){if(wTe)return bTe;wTe=1;var e=ndn(),n=(function(){if(yTe)return Use;yTe=1;var r=Date.now;return Use=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)}},Use})(),i=n(e);return bTe=i}function gAt(){if(CTe)return Wse;CTe=1;var e=DT(),n=hAt(),i=mAt();return Wse=function(r,s){return i(n(r,s,e),r+"")},Wse}var idn=(function(){if(ATe)return vTe;ATe=1;var e=(dTe||(dTe=1,cTe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),cTe),n=gAt()((function(i,r){return e(i,1,r)}));return vTe=n})();const Qi=pr(idn);var Qse,STe,Yse,kTe;function qz(){if(STe)return Qse;STe=1;var e=SD(),n=IT();return Qse=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},Qse}function fAt(){if(kTe)return Yse;kTe=1;var e=qz();return Yse=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},Yse}const O3=pr(fAt());var Gse,jTe,qse,$Te,Kse,ETe,Zse,ITe;function xAt(){if(jTe)return Gse;jTe=1;var e=ywe(),n=$we();return Gse=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},Gse}function yAt(){if($Te)return qse;$Te=1;var e=Y3();return qse=function(n){return n==n&&!e(n)},qse}function bAt(){if(ETe)return Kse;ETe=1;var e=yAt(),n=LR();return Kse=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},Kse}var odn=(function(){if(ITe)return Zse;ITe=1;var e=xAt(),n=bAt();return Zse=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},Zse})();const rdn=pr(odn);var DTe,TTe,adn=(TTe||(TTe=1,DTe=function(e){return e==null}),DTe);const LTe=pr(adn);var BTe,PTe,Jse,MTe,sdn=(function(){if(MTe)return Jse;MTe=1;var e=(PTe||(PTe=1,BTe=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}),BTe),n=DT();return Jse=function(i){return i&&i.length?e(i,n):0},Jse})();const ldn=pr(sdn);var Xse,OTe,ele,FTe,tle,RTe,nle,zTe,ile,NTe;function Pwe(){return OTe||(OTe=1,Xse=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}),Xse}function wAt(){if(FTe)return ele;FTe=1;var e=gte(),n=ET(),i=Yz(),r=Y3();return ele=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)},ele}function yte(){if(zTe)return nle;zTe=1;var e=(function(){if(RTe)return tle;RTe=1;var n=nAt(),i=1/0;return tle=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},tle})();return nle=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},nle}var cdn=(function(){if(NTe)return ile;NTe=1;var e=Pwe(),n=wAt(),i=yte(),r=Math.ceil,s=Math.max;return ile=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},ile})();const ddn=pr(cdn);var _Te,VTe,udn=(VTe||(VTe=1,_Te=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}),_Te);const pdn=pr(udn);var HTe,UTe,WTe,QTe,ole,YTe,rle,GTe,qTe,KTe,ale,ZTe,sle,JTe,XTe,eLe;function hdn(){if(QTe)return WTe;QTe=1;var e=(UTe||(UTe=1,HTe=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}}),HTe),n=e();return WTe=n}function CAt(){if(YTe)return ole;YTe=1;var e=hdn(),n=LR();return ole=function(i,r){return i&&e(i,r,n)},ole}function Kz(){if(KTe)return qTe;KTe=1;var e=CAt(),n=(function(){if(GTe)return rle;GTe=1;var r=ET();return rle=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}},rle})(),i=n(e);return qTe=i}function vAt(){if(ZTe)return ale;ZTe=1;var e=DT();return ale=function(n){return typeof n=="function"?n:e},ale}var mdn=(eLe||(eLe=1,XTe=(function(){if(JTe)return sle;JTe=1;var e=rAt(),n=Kz(),i=vAt(),r=Zu();return sle=function(s,l){return(r(s)?e:n)(s,i(l))},sle})()),XTe);const gdn=pr(mdn);var tLe,nLe,lle,iLe,cle,oLe,rLe,aLe,dle,sLe,ule,lLe,ple,cLe,hle,dLe,mle,uLe,gle,pLe,hLe,mLe,fle,gLe;function fLe(){return iLe||(iLe=1,lle=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),lle}function fdn(){if(sLe)return dle;sLe=1;var e=(aLe||(aLe=1,rLe=function(i,r){return i!=null&&r in Object(i)}),rLe),n=uAt();return dle=function(i,r){return i!=null&&n(i,r,e)},dle}function Mwe(){return cLe||(cLe=1,ple=function(e){return function(n){return n?.[e]}}),ple}function xdn(){if(uLe)return mle;uLe=1;var e=Mwe(),n=(function(){if(dLe)return hle;dLe=1;var s=qz();return hle=function(l){return function(c){return s(c,l)}},hle})(),i=Bwe(),r=IT();return mle=function(s){return i(s)?e(r(s)):n(s)},mle}function l8(){if(pLe)return gle;pLe=1;var e=(function(){if(oLe)return cle;oLe=1;var l=xAt(),c=bAt(),d=fLe();return cle=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)}},cle})(),n=(function(){if(lLe)return ule;lLe=1;var l=$we(),c=fAt(),d=fdn(),u=Bwe(),p=yAt(),h=fLe(),g=IT();return ule=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)}},ule})(),i=DT(),r=Zu(),s=xdn();return gle=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},gle}var ydn=(function(){if(gLe)return fle;gLe=1;var e=(nLe||(nLe=1,tLe=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}),tLe),n=Kz(),i=l8(),r=(mLe||(mLe=1,hLe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),hLe),s=Zu();return fle=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},fle})();const E5e=pr(ydn);var xle,xLe,yle,yLe,ble,bLe,wLe,CLe;function bdn(){if(yLe)return yle;yLe=1;var e=wwe(),n=ES(),i=Mwe(),r=Kvt(),s=(function(){if(xLe)return xle;xLe=1;var c=ET(),d=a7();return xle=function(u){return d(u)&&c(u)},xle})(),l=Math.max;return yle=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))}))},yle}var wdn=(function(){if(CLe)return wLe;CLe=1;var e=gAt(),n=(function(){if(bLe)return ble;bLe=1;var r=pAt(),s=ES(),l=bdn();return ble=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)}))},ble})(),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 wLe=i})();const Cdn=pr(wdn);var wle,vLe,vdn=(function(){if(vLe)return wle;vLe=1;var e=CAt(),n=vAt();return wle=function(i,r){return i&&e(i,n(r))},wle})();const AAt=pr(vdn);var Cle,ALe,vle,SLe;function SAt(){if(ALe)return Cle;ALe=1;var e=Kz(),n=ET();return Cle=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},Cle}function kAt(){if(SLe)return vle;SLe=1;var e=ES(),n=l8(),i=SAt(),r=Zu();return vle=function(s,l){return(r(s)?e:i)(s,n(l,3))},vle}const bte=pr(kAt());var Ale,kLe,Sle,jLe,kle,$Le;function Adn(){if(jLe)return Sle;jLe=1;var e=qz(),n=(function(){if(kLe)return Ale;kLe=1;var r=Dwe(),s=SD(),l=Yz(),c=Y3(),d=IT();return Ale=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 v=b[w];(C=g?g(v,w,b):void 0)===void 0&&(C=c(v)?v:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},Ale})(),i=SD();return Sle=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},Sle}var Sdn=(function(){if($Le)return kle;$Le=1;var e=ES(),n=l8(),i=Adn(),r=Lwe();return kle=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])}))},kle})();const QK=pr(Sdn);var jle,ELe,kdn=(function(){if(ELe)return jle;ELe=1;var e=iAt(),n=Y3();return jle=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})},jle})();const jdn=pr(kdn);var $le,ILe,Ele,DLe,$dn=(function(){if(DLe)return Ele;DLe=1;var e=wwe(),n=(function(){if(ILe)return $le;ILe=1;var s=Kz();return $le=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},$le})(),i=l8(),r=Zu();return Ele=function(s,l){return(r(s)?e:n)(s,i(l,3))},Ele})();const Edn=pr($dn);var TLe,LLe,Ile,BLe,Dle,PLe,MLe,OLe;function Idn(){if(PLe)return Dle;PLe=1;var e=(LLe||(LLe=1,TLe=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}),TLe),n=(function(){if(BLe)return Ile;BLe=1;var s=Kz();return Ile=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Ile})(),i=l8(),r=Zu();return Dle=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Dle}var Ddn=(function(){if(OLe)return MLe;OLe=1;var e=Iwe(),n=Idn(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return MLe=r})();const Tdn=pr(Ddn);var FLe,RLe,Tle,zLe,Lle,NLe,Ble,_Le,Ple,VLe;function Ldn(){if(NLe)return Lle;NLe=1;var e=(function(){if(zLe)return Tle;zLe=1;var n=Gz();return Tle=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},Tle})();return Lle=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},Lle}function Bdn(){if(_Le)return Ble;_Le=1;var e=ES(),n=qz(),i=l8(),r=SAt(),s=(RLe||(RLe=1,FLe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),FLe),l=fte(),c=Ldn(),d=DT(),u=Zu();return Ble=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(v){return v(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Ble}var Pdn=(function(){if(VLe)return Ple;VLe=1;var e=Bdn(),n=Zu();return Ple=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))},Ple})();const wte=pr(Pdn);var HLe,ULe,Mle,WLe,Ole,QLe,Fle,YLe;function Mdn(){if(WLe)return Mle;WLe=1;var e=(ULe||(ULe=1,HLe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),HLe),n=yte();return Mle=function(i){return i?e(n(i),0,4294967295):0},Mle}var Odn=(function(){if(YLe)return Fle;YLe=1;var e=(function(){if(QLe)return Ole;QLe=1;var i=yte(),r=Mdn();return Ole=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},Ole})(),n=wAt();return Fle=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)):[]},Fle})();const jAt=pr(Odn);var GLe,qLe,Rle,KLe,zle,ZLe,Nle,JLe,_le,XLe;function $At(){if(ZLe)return zle;ZLe=1;var e=SD(),n=(qLe||(qLe=1,GLe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),GLe),i=(function(){if(KLe)return Rle;KLe=1;var l=qz(),c=Pwe();return Rle=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Rle})(),r=IT(),s=Object.prototype.hasOwnProperty;return zle=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))]},zle}var Fdn=(function(){if(XLe)return _le;XLe=1;var e=l8(),n=(function(){if(JLe)return Nle;JLe=1;var i=$At(),r=Yz(),s=Array.prototype.splice;return Nle=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},Nle})();return _le=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},_le})();const YK=pr(Fdn);var Vle,eBe,Hle,tBe,Ule,nBe,Wle,iBe,Qle,oBe,Yle,rBe,aBe,sBe;function Rdn(){if(tBe)return Hle;tBe=1;var e=(function(){if(eBe)return Vle;eBe=1;var n=$T(),i=Twe(),r=a7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Vle=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},Vle})();return Hle=function(n){return e(n)?void 0:n},Hle}function EAt(){if(iBe)return Wle;iBe=1;var e=bwe(),n=(function(){if(nBe)return Ule;nBe=1;var i=AD(),r=vwe(),s=Zu(),l=i?i.isConcatSpreadable:void 0;return Ule=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Ule})();return Wle=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},Wle}function IAt(){if(oBe)return Qle;oBe=1;var e=EAt();return Qle=function(n){return n!=null&&n.length?e(n,1):[]},Qle}var zdn=(function(){if(sBe)return aBe;sBe=1;var e=ES(),n=lAt(),i=$At(),r=SD(),s=rO(),l=Rdn(),c=(function(){if(rBe)return Yle;rBe=1;var p=IAt(),h=hAt(),g=mAt();return Yle=function(f){return g(h(f,void 0,p),f+"")},Yle})(),d=Lwe(),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 aBe=u})();const Owe=pr(zdn);var Gle,lBe,Ndn=(function(){if(lBe)return Gle;lBe=1;var e=EAt(),n=kAt();return Gle=function(i,r){return e(n(i,r),1)},Gle})();const DAt=pr(Ndn);var cBe,dBe,uBe,pBe,hBe,mBe,qle,gBe,Kle,fBe,xBe,yBe,bBe,wBe,Zle,CBe,Jle,vBe;function _dn(){if(gBe)return qle;gBe=1;var e=(dBe||(dBe=1,cBe=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}),cBe),n=(pBe||(pBe=1,uBe=function(r){return r!=r}),uBe),i=(mBe||(mBe=1,hBe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),hBe);return qle=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},qle}function TAt(){if(CBe)return Zle;CBe=1;var e=Uvt(),n=(function(){if(fBe)return Kle;fBe=1;var c=_dn();return Kle=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},Kle})(),i=(yBe||(yBe=1,xBe=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}),xBe),r=Wvt(),s=(function(){if(wBe)return bBe;wBe=1;var c=tAt(),d=oAt(),u=j5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return bBe=p})(),l=j5e();return Zle=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 v=y.length;v--;)if(y[v]===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},Zle}var Vdn=(function(){if(vBe)return Jle;vBe=1;var e=l8(),n=TAt();return Jle=function(i,r){return i&&i.length?n(i,e(r,2)):[]},Jle})();const Hdn=pr(Vdn),Udn=pr(IAt());var Xle,ABe,Wdn=(function(){if(ABe)return Xle;ABe=1;var e=TAt();return Xle=function(n){return n&&n.length?e(n):[]},Xle})();const Qdn=pr(Wdn);var ece,SBe,tce,kBe,nce,jBe,$Be,EBe,ice,IBe,oce,DBe,TBe,LBe,rce,BBe,ace,PBe,sce,MBe,OBe,FBe;function Fwe(){if(jBe)return nce;jBe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return nce=function(n){return e.test(n)},nce}function LAt(){if(DBe)return oce;DBe=1;var e=(function(){if(EBe)return $Be;EBe=1;var r=Mwe()("length");return $Be=r})(),n=Fwe(),i=(function(){if(IBe)return ice;IBe=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 ice=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},ice})();return oce=function(r){return n(r)?i(r):e(r)},oce}function Ydn(){if(PBe)return ace;PBe=1;var e=(LBe||(LBe=1,TBe=function(r){return r.split("")}),TBe),n=Fwe(),i=(function(){if(BBe)return rce;BBe=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 rce=function(b){return b.match(y)||[]},rce})();return ace=function(r){return n(r)?i(r):e(r)},ace}function Gdn(){if(MBe)return sce;MBe=1;var e=(function(){if(SBe)return ece;SBe=1;var d=Math.floor;return ece=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},ece})(),n=cAt(),i=(function(){if(kBe)return tce;kBe=1;var d=Pwe();return tce=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},tce})(),r=Fwe(),s=LAt(),l=Ydn(),c=Math.ceil;return sce=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)},sce}(function(){if(FBe)return OBe;FBe=1;var e=Gdn(),n=LAt(),i=yte(),r=dAt();OBe=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 BR=e=>e.type==="checkbox",QE=e=>e instanceof Date,Sp=e=>e==null;const BAt=e=>typeof e=="object";var jd=e=>!Sp(e)&&!Array.isArray(e)&&BAt(e)&&!QE(e),PAt=e=>jd(e)&&e.target?BR(e.target)?e.target.checked:e.target.value:e,MAt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),Rwe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Oh(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(Rwe&&(e instanceof Blob||e instanceof FileList)||!i&&!jd(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return jd(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Oh(e[r]);else n=e}return n}var kD=e=>Array.isArray(e)?e.filter(Boolean):[],hl=e=>e===void 0,ji=(e,n,i)=>{if(!n||!jd(e))return i;const r=kD(n.split(/[,[\].]+?/)).reduce(((s,l)=>Sp(s)?s:s[l]),e);return hl(r)||r===e?hl(e[n])?i:e[n]:r};const OAt="blur",qdn="focusout",Kdn="change",Zdn="onBlur",FAt="onChange",RAt="onSubmit",Jdn="onTouched",jD="all",Xdn="max",eun="min",tun="maxLength",nun="minLength",RBe="pattern",zBe="required",iun="validate",zAt=B.createContext(null),St=()=>B.useContext(zAt),Dn=e=>{const{children:n,...i}=e;return B.createElement(zAt.Provider,{value:i},n)};var NAt=(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]!==jD&&(n._proxyFormState[c]=!r||jD),i&&(i[c]=!0),e[c]}});return s},Fm=e=>jd(e)&&!Object.keys(e).length,_At=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return Fm(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||jD)))},Ym=e=>Array.isArray(e)?e:[e],VAt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||Ym(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function Cte(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 xx=e=>typeof e=="string",HAt=(e,n,i,r,s)=>xx(e)?(r&&n.watch.add(e),ji(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),ji(i,l)))):(r&&(n.watchAll=!0),i);function Ya(e){const n=St(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,Cte({disabled:l,subject:i._subjects.values,next:h=>{VAt(d.current,h.name,c)&&p(Oh(HAt(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 zwe=e=>/^\w*$/.test(e),UAt=e=>kD(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Fs(e,n,i){let r=-1;const s=zwe(n)?[n]:UAt(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=jd(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function oun(e){const n=St(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=MAt(r._names.array,i),c=Ya({control:r,name:i,defaultValue:ji(r._formValues,i,ji(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=St(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),v=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,Cte({disabled:f,next:k=>C.current&&VAt(S.current,k.name,y)&&_At(k,v.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,v.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),NAt(b,g,v.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=ji(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Oh(ji(r._options.defaultValues,i));Fs(r._defaultValues,i,g),hl(ji(r._formValues,i))&&Fs(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:PAt(p),name:i},type:Kdn})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:ji(r._formValues,i),name:i},type:OAt})),[i,r]),ref:p=>{const h=ji(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:()=>!!ji(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!ji(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!ji(d.touchedFields,i)},error:{enumerable:!0,get:()=>ji(d.errors,i)}})}}const _i=e=>e.render(oun(e));var run=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const GK=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=ji(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 jd(c)&&GK(c,n)}}};var W7=()=>{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)}))},lce=(e,n,i={})=>i.shouldFocus||hl(i.shouldFocus)?i.focusName||`${e}.${hl(i.focusIndex)?n:i.focusIndex}.`:"",I5e=e=>({isOnSubmit:!e||e===RAt,isOnBlur:e===Zdn,isOnChange:e===FAt,isOnAll:e===jD,isOnTouch:e===Jdn}),D5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),WAt=(e,n,i)=>{const r=kD(ji(e,i));return Fs(r,"root",n[i]),Fs(e,i,r),e},BI=e=>typeof e=="boolean",Nwe=e=>e.type==="file",n9=e=>typeof e=="function",qK=e=>{if(!Rwe)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},dq=e=>xx(e),_we=e=>e.type==="radio",KK=e=>e instanceof RegExp;const NBe={value:!1,isValid:!1},_Be={value:!0,isValid:!0};var QAt=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===""?_Be:{value:e[0].value,isValid:!0}:_Be:NBe}return NBe};const VBe={isValid:!1,value:null};var YAt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),VBe):VBe;function HBe(e,n,i="validate"){if(dq(e)||Array.isArray(e)&&e.every(dq)||BI(e)&&!e)return{type:i,message:dq(e)?e:"",ref:n}}var kk=e=>jd(e)&&!KK(e)?e:{value:e,message:""},T5e=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,v=ji(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(BI(N)?"":N||""),S.reportValidity())},$={},j=_we(l),I=BR(l),E=j||I,D=(b||Nwe(l))&&hl(l.value)&&hl(v)||qK(l)&&l.value===""||v===""||Array.isArray(v)&&!v.length,L=run.bind(null,y,i,$),F=(N,_,z,T=tun,M=nun)=>{const O=N?_:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(v)||!v.length:d&&(!E&&(D||Sp(v))||BI(v)&&!v||I&&!QAt(c).isValid||j&&!YAt(c).isValid)){const{value:N,message:_}=dq(d)?{value:!!d,message:d}:kk(d);if(N&&($[y]={type:zBe,message:_,ref:S,...L(zBe,_)},!i))return k(_),$}if(!(D||Sp(h)&&Sp(g))){let N,_;const z=kk(g),T=kk(h);if(Sp(v)||isNaN(v)){const M=l.valueAsDate||new Date(v),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",V=l.type=="week";xx(z.value)&&v&&(N=H?O(v)>O(z.value):V?v>z.value:M>new Date(z.value)),xx(T.value)&&v&&(_=H?O(v)<O(T.value):V?v<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||v&&+v;Sp(z.value)||(N=M>z.value),Sp(T.value)||(_=M<T.value)}if((N||_)&&(F(!!N,z.message,T.message,Xdn,eun),!i))return k($[y].message),$}if((u||p)&&!D&&(xx(v)||s&&Array.isArray(v))){const N=kk(u),_=kk(p),z=!Sp(N.value)&&v.length>+N.value,T=!Sp(_.value)&&v.length<+_.value;if((z||T)&&(F(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&xx(v)){const{value:N,message:_}=kk(f);if(KK(N)&&!v.match(N)&&($[y]={type:RBe,message:_,ref:l,...L(RBe,_)},!i))return k(_),$}if(x){if(n9(x)){const N=HBe(await x(v,n),S);if(N&&($[y]={...N,...L(iun,N.message)},!i))return k(N.message),$}else if(jd(x)){let N={};for(const _ in x){if(!Fm(N)&&!i)break;const z=HBe(await x[_](v,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!Fm(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function cce(e,n){return[...e,...Ym(n)]}var dce=e=>Array.isArray(e)?e.map((()=>{})):void 0;function uce(e,n,i){return[...e.slice(0,n),...Ym(i),...e.slice(n)]}var pce=(e,n,i)=>Array.isArray(e)?(hl(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function hce(e,n){return[...Ym(n),...Ym(e)]}var mce=(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 kD(l).length?l:[]})(e,Ym(n).sort(((i,r)=>i-r))),gce=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Vd(e,n){const i=Array.isArray(n)?n:zwe(n)?[n]:UAt(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&&(jd(r)&&Fm(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!hl(c[d]))return!1;return!0})(r))&&Vd(e,i.slice(0,-1)),e}var UBe=(e,n,i)=>(e[n]=i,e);function $l(e){const n=St(),{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(W7)),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),Cte({next:({values:x,name:y})=>{if(y===h.current||!y){const b=ji(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(W7))}},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,D5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!I5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=ji(x.errors,r),b=ji(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Fs(i._formState.errors,r,y):Vd(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=ji(i._fields,r);x&&x._f&&T5e(x,i._formValues,i._options.criteriaMode===jD,i._options.shouldUseNativeValidation,!0).then((y=>!Fm(y)&&i._subjects.state.next({errors:WAt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&GK(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!ji(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);gce(b,x,y),gce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,gce,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);pce(b,x,y),pce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,pce,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=Ym(Oh(x)),w=hce(i._getFieldArray(r),b);i._names.focus=lce(r,0,y),u.current=hce(u.current,b.map(W7)),f(w),d(w),i._updateFieldArray(r,w,hce,{argA:dce(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=Ym(Oh(x)),w=cce(i._getFieldArray(r),b);i._names.focus=lce(r,w.length-1,y),u.current=cce(u.current,b.map(W7)),f(w),d(w),i._updateFieldArray(r,w,cce,{argA:dce(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=mce(i._getFieldArray(r),x);u.current=mce(u.current,x),f(y),d(y),i._updateFieldArray(r,y,mce,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=Ym(Oh(y)),C=uce(i._getFieldArray(r),x,w);i._names.focus=lce(r,x,b),u.current=uce(u.current,x,w.map(W7)),f(C),d(C),i._updateFieldArray(r,C,uce,{argA:x,argB:dce(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Oh(y),w=UBe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,v)=>C&&v!==x?u.current[v]:W7())),f(w),d([...w]),i._updateFieldArray(r,w,UBe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=Ym(Oh(x));u.current=y.map(W7),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]||W7()})))),[c,s])}}function fce(){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 ZK=e=>Sp(e)||!BAt(e);function Rv(e,n){if(ZK(e)||ZK(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)||jd(l)&&jd(c)||Array.isArray(l)&&Array.isArray(c)?!Rv(l,c):l!==c)return!1}}return!0}var GAt=e=>e.type==="select-multiple",xce=e=>qK(e)&&e.isConnected,qAt=e=>{for(const n in e)if(n9(e[n]))return!0;return!1};function JK(e,n={}){const i=Array.isArray(e);if(jd(e)||i)for(const r in e)Array.isArray(e[r])||jd(e[r])&&!qAt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},JK(e[r],n[r])):Sp(e[r])||(n[r]=!0);return n}function KAt(e,n,i){const r=Array.isArray(e);if(jd(e)||r)for(const s in e)Array.isArray(e[s])||jd(e[s])&&!qAt(e[s])?hl(n)||ZK(i[s])?i[s]=Array.isArray(e[s])?JK(e[s],[]):{...JK(e[s])}:KAt(e[s],Sp(n)?{}:n[s],i[s]):i[s]=!Rv(e[s],n[s]);return i}var yce=(e,n)=>KAt(e,n,JK(n)),ZAt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>hl(e)?e:n?e===""?NaN:e&&+e:i&&xx(e)?new Date(e):r?r(e):e;function bce(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return Nwe(n)?n.files:_we(n)?YAt(e.refs).value:GAt(n)?[...n.selectedOptions].map((({value:i})=>i)):BR(n)?QAt(e.refs).value:ZAt(hl(n.value)?e.ref.value:n.value,e)}var ML=e=>hl(e)?e:KK(e)?e.source:jd(e)?KK(e.value)?e.value.source:e.value:e;function WBe(e,n,i){const r=ji(e,i);if(r||zwe(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=ji(n,l),d=ji(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 aun={mode:RAt,reValidateMode:FAt,shouldFocusError:!0};function sun(e={},n){let i,r={...aun,...e},s={submitCount:0,isDirty:!1,isLoading:n9(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=(jd(r.defaultValues)||jd(r.values))&&Oh(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Oh(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:fce(),array:fce(),state:fce()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=I5e(r.mode),b=I5e(r.reValidateMode),w=r.criteriaMode===jD,C=async Y=>{if(g.isValid||Y){const q=r.resolver?Fm((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},v=Y=>g.isValidating&&f.state.next({isValidating:Y}),S=(Y,q,K,J)=>{const ee=ji(l,Y);if(ee){const te=ji(d,Y,hl(K)?ji(c,Y):K);hl(te)||J&&J.defaultChecked||q?Fs(d,Y,q?te:bce(ee._f)):L(Y,te),u.mount&&C()}},k=(Y,q,K,J,ee)=>{let te=!1,ne=!1;const ae={name:Y};if(!K||J){g.isDirty&&(ne=s.isDirty,s.isDirty=ae.isDirty=E(),te=ne!==ae.isDirty);const re=Rv(ji(c,Y),q);ne=ji(s.dirtyFields,Y),re?Vd(s.dirtyFields,Y):Fs(s.dirtyFields,Y,!0),ae.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!re}if(K){const re=ji(s.touchedFields,Y);re||(Fs(s.touchedFields,Y,K),ae.touchedFields=s.touchedFields,te=te||g.touchedFields&&re!==K)}return te&&ee&&f.state.next(ae),te?ae:{}},$=(Y,q,K,J)=>{const ee=ji(s.errors,Y),te=g.isValid&&BI(q)&&s.isValid!==q;if(e.delayError&&K?(i=(ne=>ae=>{clearTimeout(h),h=setTimeout(ne,ae)})((()=>((ne,ae)=>{Fs(s.errors,ne,ae),f.state.next({errors:s.errors})})(Y,K))),i(e.delayError)):(clearTimeout(h),i=null,K?Fs(s.errors,Y,K):Vd(s.errors,Y)),(K?!Rv(ee,K):ee)||!Fm(J)||te){const ne={...J,...te&&BI(q)?{isValid:q}:{},errors:s.errors,name:Y};s={...s,...ne},f.state.next(ne)}v(!1)},j=async Y=>r.resolver(d,r.context,((q,K,J,ee)=>{const te={};for(const ne of q){const ae=ji(K,ne);ae&&Fs(te,ne,ae._f)}return{criteriaMode:J,names:[...q],fields:te,shouldUseNativeValidation:ee}})(Y||p.mount,l,r.criteriaMode,r.shouldUseNativeValidation)),I=async(Y,q,K={valid:!0})=>{for(const J in Y){const ee=Y[J];if(ee){const{_f:te,...ne}=ee;if(te){const ae=p.array.has(te.name),re=await T5e(ee,d,w,r.shouldUseNativeValidation&&!q,ae);if(re[te.name]&&(K.valid=!1,q))break;!q&&(ji(re,te.name)?ae?WAt(s.errors,re,te.name):Fs(s.errors,te.name,re[te.name]):Vd(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Fs(d,Y,q),!Rv(T(),c)),D=(Y,q,K)=>HAt(Y,p,{...u.mount?d:hl(q)?c:xx(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=ji(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Fs(d,Y,ZAt(q,te)),ee=qK(te.ref)&&Sp(q)?"":q,GAt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?BR(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)):Nwe(te.ref)?te.ref.value="":(te.ref.value=ee,te.ref.type||f.values.next({name:Y,values:{...d}})))}(K.shouldDirty||K.shouldTouch)&&k(Y,ee,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&z(Y)},F=(Y,q,K)=>{for(const J in q){const ee=q[J],te=`${Y}.${J}`,ne=ji(l,te);!p.array.has(Y)&&ZK(ee)&&(!ne||ne._f)||QE(ee)?L(te,ee,K):F(te,ee,K)}},N=(Y,q,K={})=>{const J=ji(l,Y),ee=p.array.has(Y),te=Oh(q);Fs(d,Y,te),ee?(f.array.next({name:Y,values:{...d}}),(g.isDirty||g.dirtyFields)&&K.shouldDirty&&f.state.next({name:Y,dirtyFields:yce(c,d),isDirty:E(Y,te)})):!J||J._f||Sp(te)?L(Y,te,K):F(Y,te,K),D5e(Y,p)&&f.state.next({...s}),f.values.next({name:Y,values:{...d}}),!u.mount&&n()},_=async Y=>{const q=Y.target;let K=q.name,J=!0;const ee=ji(l,K);if(ee){let te,ne;const ae=q.type?bce(ee._f):PAt(Y),re=Y.type===OAt||Y.type===qdn,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!ji(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))(re,ji(s.touchedFields,K),s.isSubmitted,b,y),ge=D5e(K,p,re);Fs(d,K,ae),re?(ee._f.onBlur&&ee._f.onBlur(Y),i&&i(0)):ee._f.onChange&&ee._f.onChange(Y);const ue=k(K,ae,re,!1),oe=!Fm(ue)||ge;if(!re&&f.values.next({name:K,type:Y.type,values:{...d}}),le)return g.isValid&&C(),oe&&f.state.next({name:K,...ge?{}:ue});if(!re&&ge&&f.state.next({...s}),v(!0),r.resolver){const{errors:ie}=await j([K]),ce=WBe(s.errors,l,K),de=WBe(ie,l,ce.name||K);te=de.error,K=de.name,ne=Fm(ie)}else te=(await T5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(ae)||ae===ji(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(Y,q={})=>{let K,J;const ee=Ym(Y);if(v(!0),r.resolver){const te=await(async ne=>{const{errors:ae}=await j();if(ne)for(const re of ne){const le=ji(ae,re);le?Fs(s.errors,re,le):Vd(s.errors,re)}else s.errors=ae;return ae})(hl(Y)?Y:ee);K=Fm(te),J=Y?!ee.some((ne=>ji(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=ji(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({...!xx(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&GK(l,(te=>te&&ji(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return hl(Y)?q:xx(Y)?ji(q,Y):Y.map((K=>ji(q,K)))},M=(Y,q)=>({invalid:!!ji((q||s).errors,Y),isDirty:!!ji((q||s).dirtyFields,Y),isTouched:!!ji((q||s).touchedFields,Y),error:ji((q||s).errors,Y)}),O=(Y,q={})=>{for(const K of Y?Ym(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Vd(l,K),Vd(d,K)),!q.keepError&&Vd(s.errors,K),!q.keepDirty&&Vd(s.dirtyFields,K),!q.keepTouched&&Vd(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Vd(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=ji(l,Y);const J=BI(q.disabled);return Fs(l,Y,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:Y}},name:Y,mount:!0,...q}}),p.mount.add(Y),K?J&&Fs(d,Y,q.disabled?void 0:ji(d,Y,bce(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:ML(q.min),max:ML(q.max),minLength:ML(q.minLength),maxLength:ML(q.maxLength),pattern:ML(q.pattern)}:{},name:Y,onChange:_,onBlur:_,ref:ee=>{if(ee){H(Y,q),K=ji(l,Y);const te=hl(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(re=>_we(re)||BR(re))(te),ae=K._f.refs||[];if(ne?ae.find((re=>re===te)):te===K._f.ref)return;Fs(l,Y,{_f:{...K._f,...ne?{refs:[...ae.filter(xce),te,...Array.isArray(ji(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=ji(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!MAt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},V=()=>r.shouldFocusError&&GK(l,(Y=>Y&&ji(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Oh(K),ee=Y&&!Fm(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)ji(s.dirtyFields,te)?Fs(ee,te,ji(d,te)):N(te,ji(ee,te));else{if(Rwe&&hl(Y))for(const te of p.mount){const ne=ji(l,te);if(ne&&ne._f){const ae=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(qK(ae)){const re=ae.closest("form");if(re){re.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Oh(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||Rv(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?yce(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(n9(Y)?Y(d):Y,q);return{control:{register:H,unregister:O,getFieldState:M,_executeSchema:j,_getWatch:D,_getDirty:E,_updateValid:C,_removeUnmounted:()=>{for(const Y of p.unMount){const q=ji(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!xce(K))):!xce(q._f.ref))&&O(Y)}p.unMount=new Set},_updateFieldArray:(Y,q=[],K,J,ee=!0,te=!0)=>{if(J&&K){if(u.action=!0,te&&Array.isArray(ji(l,Y))){const ne=K(ji(l,Y),J.argA,J.argB);ee&&Fs(l,Y,ne)}if(te&&Array.isArray(ji(s.errors,Y))){const ne=K(ji(s.errors,Y),J.argA,J.argB);ee&&Fs(s.errors,Y,ne),((ae,re)=>{!kD(ji(ae,re)).length&&Vd(ae,re)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(ji(s.touchedFields,Y))){const ne=K(ji(s.touchedFields,Y),J.argA,J.argB);ee&&Fs(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=yce(c,d)),f.state.next({name:Y,isDirty:E(Y,q),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Fs(d,Y,q)},_getFieldArray:Y=>kD(ji(u.mount?d:c,Y,e.shouldUnregister?ji(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>n9(r.defaultValues)&&r.defaultValues().then((Y=>{U(Y,r.resetOptions),f.state.next({isLoading:!1})})),_updateFormState:Y=>{s={...s,...Y}},_subjects:f,_proxyFormState:g,get _fields(){return l},get _formValues(){return d},get _state(){return u},set _state(Y){u=Y},get _defaultValues(){return c},get _names(){return p},set _names(Y){p=Y},get _formState(){return s},set _formState(Y){s=Y},get _options(){return r},set _options(Y){r={...r,...Y}}},trigger:z,register:H,handleSubmit:(Y,q)=>async K=>{K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let J=Oh(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);Vd(s.errors,"root"),Fm(s.errors)?(f.state.next({errors:{}}),await Y(J,K)):(q&&await q({...s.errors},K),V(),setTimeout(V)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Fm(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>n9(Y)?f.values.subscribe({next:K=>Y(D(void 0,q),K)}):D(Y,q,!0),setValue:N,getValues:T,reset:U,resetField:(Y,q={})=>{ji(l,Y)&&(hl(q.defaultValue)?N(Y,ji(c,Y)):(N(Y,q.defaultValue),Fs(c,Y,q.defaultValue)),q.keepTouched||Vd(s.touchedFields,Y),q.keepDirty||(Vd(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,ji(c,Y)):E()),q.keepError||(Vd(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&Ym(Y).forEach((q=>Vd(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:O,setError:(Y,q,K)=>{const J=(ji(l,Y,{_f:{}})._f||{}).ref;Fs(s.errors,Y,{...q,ref:J}),f.state.next({name:Y,errors:s.errors,isValid:!1}),K&&K.shouldFocus&&J&&J.focus&&J.focus()},setFocus:(Y,q={})=>{const K=ji(l,Y),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:n9(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:n9(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...sun(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,Cte({subject:s._subjects.state,next:l=>{_At(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!Rv(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=NAt(i,s),n.current}let Ax;Ax=typeof window<"u"?window:typeof self<"u"?self:y5e;let L5e=null,B5e=null;const wce=Ax.clearTimeout,QBe=Ax.setTimeout,Cce=Ax.cancelAnimationFrame||Ax.mozCancelAnimationFrame||Ax.webkitCancelAnimationFrame,YBe=Ax.requestAnimationFrame||Ax.mozRequestAnimationFrame||Ax.webkitRequestAnimationFrame;function lun(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,v=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,v.style.width=w.offsetWidth+1+"px",v.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__&&L5e(this.__resizeRAF__),this.__resizeRAF__=B5e((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=Ax.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],v=b.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=w:v.appendChild(b.createTextNode(w)),C.appendChild(v)}})(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{}}}}}Cce==null||YBe==null?(L5e=wce,B5e=function(e){return QBe(e,20)}):(L5e=function([e,n]){Cce(e),wce(n)},B5e=function(e){const n=YBe((function(){wce(i),e()})),i=QBe((function(){Cce(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=lun(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 e0(e){return e0=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},e0(e)}function P5e(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 Vwe(e,n){if(e){if(typeof e=="string")return P5e(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)?P5e(e,n):void 0}}function GBe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Vwe(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 Ti(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XK(e,n){return XK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},XK(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&&XK(e,n)}function eZ(e){return eZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eZ(e)}function JAt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(JAt=function(){return!!e})()}function Ia(e){var n=JAt();return function(){var i,r=eZ(e);if(n){var s=eZ(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(e0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ti(l)})(this,i)}}function da(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function XAt(e){var n=(function(i,r){if(e0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(e0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return e0(n)=="symbol"?n:n+""}function qBe(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,XAt(r.key),r)}}function ua(e,n,i){return n&&qBe(e.prototype,n),i&&qBe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ai(e,n,i){return(n=XAt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function KBe(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?KBe(Object(i),!0).forEach((function(r){Ai(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):KBe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function Jd(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)||Vwe(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 tZ(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=tZ(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 PI(e){return(function(n){if(Array.isArray(n))return P5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||Vwe(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -92358,7 +92358,7 @@ ${UM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
92358
92358
|
padding: ${o.sp3} ${o.sp0};
|
|
92359
92359
|
`,Nwt=a(dt)`
|
|
92360
92360
|
min-width: 140px;
|
|
92361
|
-
`,ER=CCt(Pcn()),u7s=["sandbox","production"],p7s=["development","staging","production"],h7s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],gD=()=>Ul==="DEV"||Ul==="QA"||Ul==="PUNE"||Ul==="SUNNYVALE"||Ul==="DELHI"||Ul==="MOHALI",Oje="https://zeni-webapp-dev.uc.r.appspot.com",Ul=(e=>f7(e,h7s))("DEV"),eks=(e=>f7(e,u7s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Ul)),_wt=(e=>f7(e,p7s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Ul)),m7s=(e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"qa";case"NEXT":return"next";case"PROD":return"production";default:return"development"}})(Ul);function son(e,n){return ER.AES.decrypt(e,n).toString(ER.enc.Utf8)}const lon="ZENI-WEB-APP-",Fje=Ul==="DEV"||Ul==="QA"?.2:.8,con=Fje,Ks={sentryDsn:"",sentryTraceSamplingRate:Fje,sentryProfileSamplingRate:con,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let Gx,Vz;function g7s(){return Gx?.aiCfoMicroServiceBaseUrl!=null?`${Gx.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function don(e){Ks.sentryDsn=e.keys.SENTRY_DSN,Ks.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Fje,Ks.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):con,Ks.googleClientId=e.keys.GOOGLE_CLIENT_ID,Ks.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Ks.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Ks.mixpanelToken=e.keys.MIXPANEL_TOKEN,Ks.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Ks.pusherCluster=e.keys.PUSHER_CLUSTER,Ks.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Ks.appUrl=e.keys.WEB_ENDPOINT,Ks.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Ks.cardVaultId=e.keys.UNIT_VAULT_ID,Ks.stripeKey=e.keys.STRIPE_KEY,Ks.qboRedirectionUrl=e.keys.QBO_URL,Ks.mixpanelUrl=e.keys.MIXPANEL_URL,Ks.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Vz=e.externalEndPoints,Gx=e.apiEndPoints,(function(n,i){const r=new Set,s=[...Object.values(n),...Object.values(i)];for(const l of s)if(typeof l=="string"&&l.length>0)try{r.add(new URL(l).origin)}catch{}for(const l of r){if(document.querySelector(`link[rel="preconnect"][href="${l}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=l,document.head.appendChild(c)}})(Gx,Vz)}async function Vwt(){const e={environment:Ul},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Oje}/api/keys?query=${n}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let Hwt=!1;function WE(){Hwt||(sg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:Vz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),Hwt=!0)}const f7s=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let Uwt=!1,Wwt=!1;function F8e(){if(Uwt)return;Uwt=!0,WE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),gD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const x7s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function y7s(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||x7s.has(i)));for(const i of n)sg.unregister(i);gD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function Qwt(){Wwt||(Wwt=!0,y7s())}class TI{identify(n,i){if(WE(),this.#t=n,n!=null&&i!=null&&(TI.#e==null||!Jsn({userId:n,traits:i},TI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),TI.#e={userId:n,traits:i},gD()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(n,i,r,s,l){throw Error("Use identify in the web-app!!")}track(n,i){WE();const r=f7s.has(n);if(this.#t!=null||r){if(F8e(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(Qwt(),gD()){const s=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(i)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(i)}`;console.log(s)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,i){WE(),F8e(),sg.track(n,i),Qwt(),gD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){WE(),sg.alias(n,i)}reset(){WE(),sg.identify(void 0),this.#t=void 0,TI.#e=void 0}static#e;#t}const R8e=new TI,uon=new Ni.Analytics(R8e);uon.trackWithoutUserId=R8e.trackWithoutUserId.bind(R8e);const Qm=uon,b7s="openAiCfoScope",z8e="openAiCfoScopeOnDashboard";function tks(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[z8e]:!0,...r}})}function nks(e){const n=cte(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const i=n.uiState?.currentChatSessionId;return i!=null&&n.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress"}function Rje(e,n){const i=n!=null?e.find((d=>d.chatSession.chatSessionId===n)):void 0,r=i?.questionAnswers??[],s=r[r.length-1],l=s?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:i?.chatSession,currentQuestionAnswer:s,currentQuestionAnswerSummary:l,currentChatSessionWithMessages:i,currentSessionQuestionAnswers:r}}function pon(e,n){return(e||n?.chatSessionSummary)??null}const hon="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",Yee="zeni-ai-cfo-upload-promo-storage-changed",Tr=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,e)}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,e)??!1)}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null||(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,e)??!0)}getSignedInUserTenant(e){return this.getSignedInUserTenants()?.find((n=>n.tenantEmailDomain===e))}getSignedInUserTenantWithId(e){return this.getSignedInUserTenants()?.find((n=>n.tenantId===e))}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e==null)return;const n=this.readEncryptedString(this.ZENI_ACTIVE_TENANT_DOMAIN,e);return n!=null?this.getSignedInUserTenants()?.find((i=>i.tenantEmailDomain===n)):void 0}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,e)??[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==n&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map((e=>window.localStorage.getItem(e)!=null)).reduce(((e,n)=>e&&n))}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter((n=>!e.has(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n))).forEach((n=>window.localStorage.removeItem(n)))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){return this.readOtpToken(this.ZENI_OTP_TOKEN)}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(r))}getCardPolicyPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_CARD_POLICY_POPUP_SEEN),!1}return!1}saveCardPolicyPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_CARD_POLICY_POPUP_SEEN,JSON.stringify(r))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const i=JSON.parse(n);return i!==null&&typeof i=="object"&&i[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(Yee)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const i=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(r)),window.dispatchEvent(new CustomEvent(Yee))}savePayNowInfoTooltip(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),i))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_PAY_NOW_INFO_TOOLTIP,e)}saveZeniOtpTokenForCardHolder(e,n){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),i))}getZeniOtpTokenForCardHolder(e){return this.readOtpToken(`${this.ZENI_OTP_TOKEN}_${e}`)}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){return this.readEncryptedString(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){return this.readEncryptedString(this.ZENI_MAGIC_LINK_EMAIL,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}encrypt(e,n){return ER.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=ER.AES.decrypt(e,n).toString(ER.enc.Utf8);return i===""?void 0:i}catch{return}}readEncryptedString(e,n){const i=window.localStorage.getItem(e);if(i==null)return;const r=this.decrypt(i,n);return r==null&&window.localStorage.removeItem(e),r}readEncryptedJSON(e,n){const i=this.readEncryptedString(e,n);if(i!=null)try{const r=JSON.parse(i);return r===null?void window.localStorage.removeItem(e):r}catch{return void window.localStorage.removeItem(e)}}getSignedInUserTenants(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,e)}readOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)return;const i=this.readEncryptedJSON(e,n);if(i!=null){if(i.expiry!=null)return{...i,expiry:hn(i.expiry.toString())};window.localStorage.removeItem(e)}}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach((e=>window.localStorage.removeItem(e))),Object.keys(window.localStorage).filter((e=>e.startsWith(`${this.ZENI_OTP_TOKEN}_`))).forEach((e=>window.localStorage.removeItem(e)))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_CARD_POLICY_POPUP_SEEN="ZENI_CARD_POLICY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=hon;SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CARD_POLICY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},iks=e=>{if(e==null||typeof e!="object")return;const n=e.pathnameStackToGoBack;return Array.isArray(n)&&n.every((i=>typeof i=="string"))?n:void 0},CT=(e,n)=>{const i=[...e??[]];return i.push(n),i},oks=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},rks=({state:e})=>Tr.isSignedIn()===!0?on.jsx(Lrn,{}):on.jsx(kCt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),w7s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function mon(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of w7s)delete n[i];return n}function C7s(){const e=Bp(),n=Vg(),i=Zee(),{tenantEmailDomain:r}=jCt(),[s,l]=m.useState(!1),c=Nr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?zp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Nr((v=>cte(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[z8e]!==!0)return;const S=v.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof v.aiCfoInitialSubmissionSource=="string"?v.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof v.aiCfoSuggestionIndex=="number"?v.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...mon(v),[z8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const v=p.current;if(v==null||r==null)return!1;p.current=null;const S=n.state,k=CT(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:v.question,aiCfoShouldSubmit:!0,...v.submissionSource!=null?{aiCfoInitialSubmissionSource:v.submissionSource}:{},...v.suggestionIndex!=null?{aiCfoSuggestionIndex:v.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=CT(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:v,referrer:n.state?.referrer??"Navigation"}})}),[n.pathname,n.state,i,f,r]),b=m.useCallback((()=>{l(!1),y()}),[y]),w=m.useCallback((()=>{p.current=null,l(!1)}),[]),C=m.useCallback((()=>{d||c?.userRoleId==null?(l(!1),f()):e(Cvt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(Rin,{open:s,onClose:w,children:on.jsxs(Fin,{children:[s&&!h?on.jsx(wAe,{analytics:Qm,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(Qye,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const N8e=m.createContext(void 0);function zje(){const e=m.useContext(N8e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Nje=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],_je=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],gon=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],fon=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],xon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],yon=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],bon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],won=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Con=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function von(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let i=1;i<n.length;i+=1)if(n[i]==="transaction")return!0;return!1}const Aon=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Son=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],kon=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],v7s=[...gon,...Nje,..._je,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...Aon,...Son,...kon,...fon,...xon,...yon,...bon,...won,...Con];function jon(){const{pathname:e}=Vg(),n=e??"";return v7s.some((i=>W8e(i,n)!=null))||von(e)}function Qd(e){const{pathname:n}=Vg(),i=n??"";return e.some((r=>W8e(r,i)!=null))}const aks=27.22,$on=m.createContext(null),Eon={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function A7s({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return on.jsx($on.Provider,{value:c,children:e})}function Vje(){const e=m.useContext($on);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function S7s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(rln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=nln(c);u.length!==0&&(e(iln(u)),e(oln({sourceChatSessionId:n})),n!=null&&e(g$e({chatSessionId:n,id:v$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(tln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Mra(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const v=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return v==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...Pra(v)}}const y=nee(p.vendorPolicy,"allow"),b=nee(p.vendorPolicy,"block"),w=iee(p.categoryPolicy,"allow"),C=iee(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((v=>v.isChecked)).map((v=>v.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:oee(p.limits,Mke),spendLimits:{transaction:oee(p.limits,Pke)}}})({values:c});e(eln({templates:[u],sourceChatSessionId:n})),n!=null&&e(g$e({chatSessionId:n,id:v$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Xsn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(vvt())}:void 0}}const k7s=e=>gln(e,!1),j7s=e=>mln(e.name,!1);function $7s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=aln(r),l=sln(r),c=lln(r),{creditAccount:d}=cln(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(k7s),cardPolicyVendorSearchOptions:l.map(j7s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:hln(r),cardPolicyUploadedFileName:pln(r),cardPolicyFormDraft:uln(e.createCardPolicyState),cardsCreationFormDraft:dln(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const E7s=e=>{const n=se.currencyFormatter(0);return i=>{const r=xln(e.chargeCardState,i);if(r==null)return;const s=yln(e.userState,r.cardHolderUserId),l=((u,p,h)=>{const g=u!=null&&u.length>0,f=p!=null&&p.length>0;return g&&f?`${u} ${p}`:g?u:f?p:h??""})(s?.firstName,s?.lastName,s?.email),c=r.limit?.amount,d=typeof c=="number"&&Number.isFinite(c)?n.format(c):"";return{cardName:r.cardName,ownerName:l,recommendedLimitFormatted:d,owner:s}}},I7s=e=>n=>{const i=fln(e.cardPolicyState,n);if(i==null)return;const r=i.cardsCount>0?i.cardsCount:i.appliedCards.length,s=i.allowedEntity.merchantNames.length+i.blockedEntity.merchantNames.length,l=i.allowedEntity.categoryCodes.length+i.blockedEntity.categoryCodes.length;return{name:i.name,description:i.description,cardsCount:r,vendorRestrictionsCount:s,categoryRestrictionsCount:l}};function D7s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Al.isAiCfoAnswerExportEnabled);return n&&Gx?.aiCfoMicroServiceBaseUrl!=null?`${Gx.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function T7s({isHydrationEnabled:e=!0}={}){const n=Bp(),{useFeatureGate:i}=es(),{isFeatureEnabled:r}=i(Al.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(Al.isCardPolicyEnabled),l=Nr((x=>zp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Nr((x=>{const y=zp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),_K),u=m.useRef(!1),p=m.useRef(!1);m.useEffect((()=>{u.current=!1,p.current=!1}),[l]),m.useEffect((()=>{e&&c&&(u.current||(u.current=!0,n(bln()),n(f$e()),n(wln("cardHolderCandidate",!1)),n(Cln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(vln())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(vvt())}),[n,l]);const h=m.useMemo((()=>Bcn((x=>{n(f$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Nr((x=>Aln(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),_K);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const Ion=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Don=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],L7s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],B7s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],P7s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],M7s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],O7s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Ton=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Lon=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],F7s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Hje(e){const n=Vh(e),i=n.indexOf("review");if(i<2||n[i-1]!=="month_end_close_checks")return null;if(i===n.length-1)return"overview";const r=n[i+1];return r==null?"overview":F7s.includes(r)?r:null}const R7s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),z7s=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Uje(e){const n=Vh(e),i=n[1]==="vendors"?1:-1;if(i<0||n.length<i+2)return;const r=n[i+1];if(r==="summary")return"vendors";if(r==="opex")return"opex_by_vendor";if(r==="schedules"){const s=n[i+2];return s==="prepaid_expenses"?"prepaid_expenses":s==="fixed_assets"?"fixed_assets":s==="accrued_expenses"?"accrued_expenses":void 0}return r==="filing_1099"?"form_1099":void 0}function Bon(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Pon(e,n,i){return Bon(e,n,(r=>!i.has(r)))}function Mon(e){return Pon(e,"bills",R7s)}function Oon(e){return Pon(e,"reimbursements",z7s)}function Wje(e){return Bon(e,"tasks",(n=>n==="group"))}const N7s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),_7s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Qje(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return N7s.has(i)?"checking":"checking_details"}function Yje(e){const n=Vh(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const i=n[2];if(i==="policy"){const r=n[3];return r==null?"card_policy":r==="new"?void 0:"card_policy_detail"}return _7s.has(i)?"cards":"cards_detail"}function Fon(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Ron(e){return Vh(e)[1]==="performance"?"performance":void 0}function zon(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Non(e){const n=Vh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function _2(e,n){return n.some((i=>W8e(i,e)!=null))}function V7s(e){return _2(e,Nje)?"reports":_2(e,Ion)?"ap_aging":_2(e,Don)?"ar_aging":Uje(e)!=null?"vendors_tab":_2(e,_je)?"forecast":Hje(e)!=null?"month_end_close_review":_2(e,Ton)?"cash_balance":_2(e,Lon)?"card_balance":Wje(e)?"task_checklist":Fon(e)!=null?"transaction_detail":Ron(e)!=null?"performance":zon(e)!=null?"bills_detail":Non(e)!=null?"reimbursement_detail":Mon(e)?"bills_list":Oon(e)?"reimbursement_list":_2(e,L7s)?"cash_in_cash_out":_2(e,B7s)?"operating_expenses":_2(e,P7s)?"revenue":_2(e,M7s)?"net_burn_or_income":_2(e,O7s)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Qje(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Yje(e)!=null?"cards":(function(n){return Vh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Vh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Vh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function _on(e,n){switch(V7s(e)){case"reports":{const i=n?.selectedReportId;return i==null?void 0:(function(r){switch(r){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}})(i)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Uje(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Hje(e);return i==null?void 0:(function(r){switch(r){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}})(i)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return Qje(e);case"treasury":return"treasury";case"cards":return Yje(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Von(){const{pathname:e}=Vg(),n=e??"",i=Nr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>_on(n,{selectedReportId:i})),[n,i])}function Gje(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Al.isAiCfoEnabled),i=Nr((s=>zp(s))),r=Tr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function H7s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Al.isAiCfoNavButtonEnabled),i=Gje();return n&&i}const Hon=m.createContext(void 0),U7s=({children:e})=>{const{tenantEmailDomain:n}=jCt(),i=n!=null?Tr.getSignedInUserTenant(n):void 0,r=Nr((u=>zp(u))),s=dte().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Hon.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},W7s=()=>{const e=m.useContext(Hon);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Uon(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Won(e){const{areTenantIdsInSync:n}=W7s(),i=Gje(),r=H7s();return n&&e&&r&&i}function sks(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Bp(),s=$Ct(),l=m.useRef(null);m.useEffect((()=>{const c=l.current===!1&&i===!0;if(l.current=i,i&&n!=null&&n.length!==0)for(const d of n){const u=dwe(s.getState(),d)?.fetchState;Uon(u,c)&&r(Svt({pageContext:d}))}}),[i,r,n,s])}function Qon(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Bp(),c=$Ct(),d=m.useRef(null),u=m.useRef(void 0);m.useEffect((()=>{const p=d.current===!1&&r===!0;d.current=r;const h=u.current!==void 0&&u.current!==s;if(u.current=s,i==null||!r)return;const g=dwe(c.getState(),i)?.fetchState;Uon(g,p||h)&&l(Svt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Won(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function lks(e){Qon({pageContext:Von(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Q7s,sampleQuestion2:Y7s,sampleQuestion3:G7s}}=se.getLocalizedStrings().aiCfo,q7s=[Q7s,Y7s,G7s];function K7s(e,n=!1){Qon({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Won(!0),r=Nr((g=>e!=null&&e!==""?dwe(g,e):void 0)),{useDynamicConfig:s}=es(),{configValue:l}=s(Jx.aiCfoMessageDynamicConfig),c=m.useMemo((()=>Array.isArray(l?.default_message_list)?[...l.default_message_list]:[]),[l?.default_message_list]),d=m.useMemo((()=>c.length>0?c:[...q7s]),[c]),u=e!=null&&e!=="",p=u&&i&&(r==null||r.fetchState!=="Completed"&&r.fetchState!=="Error"),h=m.useMemo((()=>{if(!u||!i)return d;if(p)return[];if(r?.fetchState==="Error")return d;const g=(r?.suggestedQuestions??[]).map((f=>f.trim())).filter((f=>f.length>0));return g.length===0?d:g}),[i,d,u,p,r?.fetchState,r?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo((()=>n?[]:h),[n,h])}}function Z7s({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Tr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(Yee,l);const c=d=>{d.key===hon&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(Yee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Tr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Yon=m.createContext(void 0),Gee=()=>m.useContext(Yon),Ywt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},J7s=e=>{const n=Tr.isSignedIn(),i=Tr.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=Nr((h=>zp(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){Ywt(l.current),l.current=void 0,s(void 0);const f=i.userId,x=d.tenantId,y=i.zeniSessionId,b=async()=>{if(g)return;let C;try{C=await Eln(Ks.pusherClientSecret,{cluster:Ks.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(v){return void console.warn("Failed to initialize Pusher",v)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&fD(C,u),f!=null&&fD(C,f),p!=null&&fD(C,p)))},w=()=>{const C=dte();return C.tenantId===x&&C.userId===f&&C.sessionId===y};if(w())b();else{let C=0;h=setInterval((()=>{g||(C++,w()?(clearInterval(h),b()):C>=30&&(clearInterval(h),$vt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),Ywt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(Yon.Provider,{value:c,children:e.children})};function fD(e,n){const i=`private-encrypted-${n}`,r=e.channel(i);if(r?.subscribed===!0)return r;const s=e.subscribe(i);return s.bind("pusher:subscription_error",(l=>{console.warn("Pusher Channel Connection Subscription Error",l)})),s}const X7s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Gon=e=>n=>{const i=Gee(),r=m.useRef(n.eventCallback),s=m.useRef(n.onSubscribed),l=m.useRef({}),c=m.useRef(0);m.useEffect((()=>{r.current=n.eventCallback,s.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;l.current=g}),[n]);const d=m.useMemo((()=>[...n.events].sort().join("|")),[n.events]);return m.useEffect((()=>{if(i!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(s.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,s.current(l.current))};return u.forEach((f=>{const[x,y]=X7s(f);if(y==="")return;const b=i.channel(x),w=v=>{r.current(y,v,l.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push((()=>{b.unbind(y,w)}));else{if(C=b??i.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push((()=>{C.unbind("pusher:subscription_succeeded",v)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},cks=210;function dks(e){return e?.data.unread!=null&&e?.mode!=null}const qje=e=>aci.includes(e),Kje=e=>qMt.includes(e),Zje=e=>sci.includes(e),e6s={invoicing_settings_branding:"invoicing/settings/branding",invoicing_settings_dunning:"invoicing/settings/dunning",invoicing_settings_integrations:"invoicing/settings/integrations",invoicing_settings_payment_destination:"invoicing/settings/payment-destination",invoicing_settings_quickbooks:"invoicing/settings/quickbooks"},t6s=e=>{if(Zje(e)){const n=e6s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return qje(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":OAe(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Kje(e)?`ai-cfo/${e}`:e},n6s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],uks=e=>{if(qje(e)||Kje(e)||Zje(e))return!0;const n=t6s(e).split("/")[0];return!n6s.includes(n)},Gwt=(e,n)=>e.includes(n),qwt=e=>{switch(e.split("/")[2]){case"invoicing":return(function(n){const i=n.split("/")[3];if(i==="settings")switch(n.split("/")[4]){case"payment-destination":return"invoicing_settings_payment_destination";case"branding":return"invoicing_settings_branding";case"integrations":return"invoicing_settings_integrations";case"dunning":return"invoicing_settings_dunning";case"quickbooks":return"invoicing_settings_quickbooks";default:return"invoicing_settings"}switch(i){case"customers":return"invoicing_customers";case"subscriptions":return"invoicing_subscriptions";case"invoices":return"invoicing_invoices";case"payments":return"invoicing_payments";case"credits":return"invoicing_credits";case"discounts":return"invoicing_discounts";case"dunning":return"invoicing_dunning";case"catalog":return"invoicing_catalog";case"settings":return"invoicing_settings";case"data_import":return"invoicing_data_import";case"audit_log":return"invoicing_audit_log";default:return"invoicing_overview"}})(e);case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return(function(n){if(n==null)return;const i=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const r of i)if(Gwt(n,r))switch(r){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}})(e);case"performance":return"performance";case"month_end_close_checks":return(function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const i=n.split("/"),r=i.indexOf("review"),s=r>=0?i[r+1]:void 0;return s!=null&&OAe(s)?rci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of qMt)if(Gwt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function i6s(e){let n=qwt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=qwt(i[r])}return n??"home"}function pks(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function hks(e){return e.pathname.split("/")[2]==="invoicing"}function mks(e){return e.pathname.includes("ai-cfo")}function gks(e,n){const i=i6s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Zje(i)?`invoicing/${i.replace("invoicing_","")}`:qje(i)?"settings/my_profile":Kje(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":OAe(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function o6s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Evt(r.tenantId)),e(Ivt(s.userId,r.tenantId,s.zeniSessionId))),Qm.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function r6s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Bp(),u=Zee(),p=Vg(),{setLoading:h}=Vje(),g=Tr.getSignedInUser(),f=Wz(g),{useDynamicConfig:x}=es(),{configValue:y}=x(Jx.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=Nr((O=>O.tenantState)),S=Nr((O=>v.fetchState==="Completed"?Iln(O):[])),k=Nr((O=>e?.tenantId!=null?Dln(O,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((O=>{if(I(),O.type!=="skills"&&l?.(),O.type==="new_chat"){n!=null&&d(C5e());const H=CT(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else O.type==="skills"?c?.():O.type==="explore"&&(n!=null&&d(C5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((O=>{I(),d(Avt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=CT(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:O,message:"logout"}})}),[I,p,u]),N=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/settings/my_profile`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),_=m.useCallback((()=>{I(),window.open("/cockpit")}),[I]),z=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/notifications/tasks`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),T=m.useCallback((O=>{h(Eon.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;o6s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Kc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(a6s,{children:[on.jsxs(s6s,{children:[on.jsx(hNt,{}),on.jsx(ENt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(l6s,{children:on.jsx(fNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(c6s,{children:[g!=null&&on.jsx(BN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(d6s,{onClick:z,children:on.jsx(u6s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const a6s=a.div`
|
|
92361
|
+
`,ER=CCt(Pcn()),u7s=["sandbox","production"],p7s=["development","staging","production"],h7s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],gD=()=>Ul==="DEV"||Ul==="QA"||Ul==="PUNE"||Ul==="SUNNYVALE"||Ul==="DELHI"||Ul==="MOHALI",Oje="https://zeni-webapp-qa.uc.r.appspot.com",Ul=(e=>f7(e,h7s))("QA"),eks=(e=>f7(e,u7s))((e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":default:return"sandbox";case"PROD":case"NEXT":return"production"}})(Ul)),_wt=(e=>f7(e,p7s))((e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";default:return"development"}})(Ul)),m7s=(e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"qa";case"NEXT":return"next";case"PROD":return"production";default:return"development"}})(Ul);function son(e,n){return ER.AES.decrypt(e,n).toString(ER.enc.Utf8)}const lon="ZENI-WEB-APP-",Fje=Ul==="DEV"||Ul==="QA"?.2:.8,con=Fje,Ks={sentryDsn:"",sentryTraceSamplingRate:Fje,sentryProfileSamplingRate:con,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let Gx,Vz;function g7s(){return Gx?.aiCfoMicroServiceBaseUrl!=null?`${Gx.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function don(e){Ks.sentryDsn=e.keys.SENTRY_DSN,Ks.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Fje,Ks.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):con,Ks.googleClientId=e.keys.GOOGLE_CLIENT_ID,Ks.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Ks.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Ks.mixpanelToken=e.keys.MIXPANEL_TOKEN,Ks.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Ks.pusherCluster=e.keys.PUSHER_CLUSTER,Ks.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Ks.appUrl=e.keys.WEB_ENDPOINT,Ks.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Ks.cardVaultId=e.keys.UNIT_VAULT_ID,Ks.stripeKey=e.keys.STRIPE_KEY,Ks.qboRedirectionUrl=e.keys.QBO_URL,Ks.mixpanelUrl=e.keys.MIXPANEL_URL,Ks.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Vz=e.externalEndPoints,Gx=e.apiEndPoints,(function(n,i){const r=new Set,s=[...Object.values(n),...Object.values(i)];for(const l of s)if(typeof l=="string"&&l.length>0)try{r.add(new URL(l).origin)}catch{}for(const l of r){if(document.querySelector(`link[rel="preconnect"][href="${l}"]`)!=null)continue;const c=document.createElement("link");c.rel="preconnect",c.href=l,document.head.appendChild(c)}})(Gx,Vz)}async function Vwt(){const e={environment:Ul},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${Oje}/api/keys?query=${n}`);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return await i.json()}catch(i){return console.error("Error fetching details:",i),null}}let Hwt=!1;function WE(){Hwt||(sg.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:Vz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),Hwt=!0)}const f7s=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let Uwt=!1,Wwt=!1;function F8e(){if(Uwt)return;Uwt=!0,WE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&sg.register(e),gD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const x7s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function y7s(){const e=(function(){return sg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||x7s.has(i)));for(const i of n)sg.unregister(i);gD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function Qwt(){Wwt||(Wwt=!0,y7s())}class TI{identify(n,i){if(WE(),this.#t=n,n!=null&&i!=null&&(TI.#e==null||!Jsn({userId:n,traits:i},TI.#e))){const{$email:r,...s}={...i};sg.identify(n),r&&r!=null&&sg.people.set_once({$email:r}),sg.people.set(s),TI.#e={userId:n,traits:i},gD()&&console.log(`*** Called people set with userId ${n} traits ${JSON.stringify(i)} `)}}identifyUserAndCompany(n,i,r,s,l){throw Error("Use identify in the web-app!!")}track(n,i){WE();const r=f7s.has(n);if(this.#t!=null||r){if(F8e(),this.#t!=null){const s={distinct_id:this.#t,...i};sg.track(n,s)}else sg.track(n,i);if(Qwt(),gD()){const s=this.#t!=null?`*** firing ${n} with props ${JSON.stringify(i)}`:`*** firing ${n} (unidentified user, in allowlist) with props ${JSON.stringify(i)}`;console.log(s)}}else console.error("Either User is not identified :( or this event is not in allowlist, so can not fire event.")}trackWithoutUserId(n,i){WE(),F8e(),sg.track(n,i),Qwt(),gD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){WE(),sg.alias(n,i)}reset(){WE(),sg.identify(void 0),this.#t=void 0,TI.#e=void 0}static#e;#t}const R8e=new TI,uon=new Ni.Analytics(R8e);uon.trackWithoutUserId=R8e.trackWithoutUserId.bind(R8e);const Qm=uon,b7s="openAiCfoScope",z8e="openAiCfoScopeOnDashboard";function tks(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[z8e]:!0,...r}})}function nks(e){const n=cte(e);if(n.createSessionAndSubmitState.fetchState==="In-Progress")return!0;const i=n.uiState?.currentChatSessionId;return i!=null&&n.responseStateByChatSessionId?.[i]?.answer?.fetchState==="In-Progress"}function Rje(e,n){const i=n!=null?e.find((d=>d.chatSession.chatSessionId===n)):void 0,r=i?.questionAnswers??[],s=r[r.length-1],l=s?.responses.answer?.content?.summarizedTitle??"";return{currentChatSession:i?.chatSession,currentQuestionAnswer:s,currentQuestionAnswerSummary:l,currentChatSessionWithMessages:i,currentSessionQuestionAnswers:r}}function pon(e,n){return(e||n?.chatSessionSummary)??null}const hon="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",Yee="zeni-ai-cfo-upload-promo-storage-changed",Tr=new class{_isZeniUserCache;getSignedInUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER,e)}isZeniUser(){const e=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(this._isZeniUserCache!=null&&this._isZeniUserCache.encryptedUser===e)return this._isZeniUserCache.result;const n=this.getSignedInUser()?.userEmail?.toLowerCase().endsWith("@zeni.ai")===!0;return this._isZeniUserCache={encryptedUser:e,result:n},n}getShowNegativeAmountInParenthesis(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e!=null&&(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,e)??!1)}getShowNegativeAmountInParenthesisPDF(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null||(this.readEncryptedJSON(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,e)??!0)}getSignedInUserTenant(e){return this.getSignedInUserTenants()?.find((n=>n.tenantEmailDomain===e))}getSignedInUserTenantWithId(e){return this.getSignedInUserTenants()?.find((n=>n.tenantId===e))}getActiveTenantForUser(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e==null)return;const n=this.readEncryptedString(this.ZENI_ACTIVE_TENANT_DOMAIN,e);return n!=null?this.getSignedInUserTenants()?.find((i=>i.tenantEmailDomain===n)):void 0}getForceRefreshedComponents(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);return e==null?[]:this.readEncryptedJSON(this.ZENI_FORCE_REFRESHED_COMPONENTS,e)??[]}saveForceRefreshedComponents(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(e),n)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveActiveTenantDomainForUser(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null?window.localStorage.setItem(this.ZENI_ACTIVE_TENANT_DOMAIN,this.encrypt(e,n)):console.warn("Can't update the active tenant domain when the user is logged out!")}saveSignedInUserWithSession(e,n){if(e==null||n==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.getItem(this.ZENI_SESSION_ID)!==n&&this.clearSessionKeyedEntries(),window.localStorage.setItem(this.ZENI_SESSION_ID,n),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(e),n))}saveSignedInUserTenants(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(e),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(e),n))}saveShowNegativeAmountInParenthesisPDF(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)throw new Error("Can't update the setting when the user is logged out!");window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(e),n))}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map((e=>window.localStorage.getItem(e)!=null)).reduce(((e,n)=>e&&n))}clearAll(){const e=new Set([this.ZENI_MAGIC_LINK_EMAIL,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_THEME]);this.ALL_IDs.filter((n=>!e.has(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_OTP_TOKEN}_card`).test(n))).forEach((n=>window.localStorage.removeItem(n))),Object.keys(window.localStorage).filter((n=>new RegExp(`^${this.ZENI_MAGIC_LINK_TRIGGERED}_`).test(n))).forEach((n=>window.localStorage.removeItem(n)))}setTheme(e){window.localStorage.setItem(this.ZENI_THEME,e)}getTheme(){const e=window.localStorage.getItem(this.ZENI_THEME);if(e==="light"||e==="dark")return e;e!=null&&window.localStorage.removeItem(this.ZENI_THEME)}saveZeniOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);n!=null&&window.localStorage.setItem(this.ZENI_OTP_TOKEN,this.encrypt(JSON.stringify(e),n))}getZeniOtpToken(){return this.readOtpToken(this.ZENI_OTP_TOKEN)}getTreasuryPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_TREASURY_POPUP_SEEN),!1}return!1}saveTreasuryPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_TREASURY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_TREASURY_POPUP_SEEN,JSON.stringify(r))}getCardPolicyPopupSeen(e){const n=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);if(n!=null)try{return JSON.parse(n)[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_CARD_POLICY_POPUP_SEEN),!1}return!1}saveCardPolicyPopupSeen(e,n){const i=window.localStorage.getItem(this.ZENI_CARD_POLICY_POPUP_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_CARD_POLICY_POPUP_SEEN,JSON.stringify(r))}getAiCfoUploadPromoSeen(e){const n=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);if(n!=null)try{const i=JSON.parse(n);return i!==null&&typeof i=="object"&&i[e]===!0}catch{return window.localStorage.removeItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN),window.dispatchEvent(new CustomEvent(Yee)),!1}return!1}saveAiCfoUploadPromoSeen(e,n){const i=window.localStorage.getItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN);let r={};if(i!=null)try{const s=JSON.parse(i);r=s!==null&&typeof s=="object"?s:{}}catch{r={}}r[e]=n,window.localStorage.setItem(this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,JSON.stringify(r)),window.dispatchEvent(new CustomEvent(Yee))}savePayNowInfoTooltip(e,n){const i=n??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(this.ZENI_PAY_NOW_INFO_TOOLTIP,this.encrypt(JSON.stringify(e),i))}getPayNowInfoTooltip(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_PAY_NOW_INFO_TOOLTIP,e)}saveZeniOtpTokenForCardHolder(e,n){const i=window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null&&window.localStorage.setItem(`${this.ZENI_OTP_TOKEN}_${n}`,this.encrypt(JSON.stringify(e),i))}getZeniOtpTokenForCardHolder(e){return this.readOtpToken(`${this.ZENI_OTP_TOKEN}_${e}`)}saveMagicLinkCodeVerifier(e){window.localStorage.setItem(this.ZENI_CODE_VERIFIER,e)}getMagicLinkCodeVerifier(){return window.localStorage.getItem(this.ZENI_CODE_VERIFIER)}saveMagicLinkTriggered(e){window.localStorage.setItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`,"true")}isMagicLinkTriggered(e){const n=window.localStorage.getItem(`${this.ZENI_MAGIC_LINK_TRIGGERED}_${e}`);return n!=null&&n==="true"}saveLastUsedMagicLinkToken(e){window.localStorage.setItem(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getLastUsedMagicLinkToken(){return this.readEncryptedString(this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}saveMagicLinkEmail(e){window.localStorage.setItem(this.ZENI_MAGIC_LINK_EMAIL,this.encrypt(e,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c"))}getMagicLinkEmail(){return this.readEncryptedString(this.ZENI_MAGIC_LINK_EMAIL,"7f8a2b9c4d1e6f3a8b5c2d9e4f7a1b6c")??null}encrypt(e,n){return ER.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=ER.AES.decrypt(e,n).toString(ER.enc.Utf8);return i===""?void 0:i}catch{return}}readEncryptedString(e,n){const i=window.localStorage.getItem(e);if(i==null)return;const r=this.decrypt(i,n);return r==null&&window.localStorage.removeItem(e),r}readEncryptedJSON(e,n){const i=this.readEncryptedString(e,n);if(i!=null)try{const r=JSON.parse(i);return r===null?void window.localStorage.removeItem(e):r}catch{return void window.localStorage.removeItem(e)}}getSignedInUserTenants(){const e=window.localStorage.getItem(this.ZENI_SESSION_ID);if(e!=null)return this.readEncryptedJSON(this.ZENI_SIGNED_IN_USER_TENANTS,e)}readOtpToken(e){const n=window.localStorage.getItem(this.ZENI_SESSION_ID);if(n==null)return;const i=this.readEncryptedJSON(e,n);if(i!=null){if(i.expiry!=null)return{...i,expiry:hn(i.expiry.toString())};window.localStorage.removeItem(e)}}clearSessionKeyedEntries(){this.SESSION_KEYED_IDs.forEach((e=>window.localStorage.removeItem(e))),Object.keys(window.localStorage).filter((e=>e.startsWith(`${this.ZENI_OTP_TOKEN}_`))).forEach((e=>window.localStorage.removeItem(e)))}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_ACTIVE_TENANT_DOMAIN="ZENI_ACTIVE_TENANT_DOMAIN";ZENI_THEME="ZENI_THEME";ZENI_OTP_TOKEN="ZENI_OTP_TOKEN";ZENI_PAY_NOW_INFO_TOOLTIP="ZENI_PAY_NOW_INFO_TOOLTIP";ZENI_FORCE_REFRESHED_COMPONENTS="ZENI_FORCE_REFRESHED_COMPONENTS";ZENI_CODE_VERIFIER="ZENI_CODE_VERIFIER";ZENI_MAGIC_LINK_TRIGGERED="ZENI_MAGIC_LINK_TRIGGERED";ZENI_LAST_USED_MAGIC_LINK_TOKEN="ZENI_LAST_USED_MAGIC_LINK_TOKEN";ZENI_MAGIC_LINK_EMAIL="ZENI_MAGIC_LINK_EMAIL";ZENI_TREASURY_POPUP_SEEN="ZENI_TREASURY_POPUP_SEEN";ZENI_CARD_POLICY_POPUP_SEEN="ZENI_CARD_POLICY_POPUP_SEEN";ZENI_AI_CFO_UPLOAD_PROMO_SEEN=hon;SESSION_KEYED_IDs=[this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS];ALL_IDs=[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_ACTIVE_TENANT_DOMAIN,this.ZENI_THEME,this.ZENI_OTP_TOKEN,this.ZENI_FORCE_REFRESHED_COMPONENTS,this.ZENI_PAY_NOW_INFO_TOOLTIP,this.ZENI_TREASURY_POPUP_SEEN,this.ZENI_CARD_POLICY_POPUP_SEEN,this.ZENI_AI_CFO_UPLOAD_PROMO_SEEN,this.ZENI_CODE_VERIFIER,this.ZENI_MAGIC_LINK_TRIGGERED,this.ZENI_LAST_USED_MAGIC_LINK_TOKEN,this.ZENI_MAGIC_LINK_EMAIL]},iks=e=>{if(e==null||typeof e!="object")return;const n=e.pathnameStackToGoBack;return Array.isArray(n)&&n.every((i=>typeof i=="string"))?n:void 0},CT=(e,n)=>{const i=[...e??[]];return i.push(n),i},oks=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},rks=({state:e})=>Tr.isSignedIn()===!0?on.jsx(Lrn,{}):on.jsx(kCt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),w7s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function mon(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of w7s)delete n[i];return n}function C7s(){const e=Bp(),n=Vg(),i=Zee(),{tenantEmailDomain:r}=jCt(),[s,l]=m.useState(!1),c=Nr((v=>v.tenantState.fetchState==="Completed"||v.tenantState.activeTenantFetchState.fetchState==="Completed"?zp(v):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Nr((v=>cte(v))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const v=n.state;if(v?.[z8e]!==!0)return;const S=v.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof v.aiCfoInitialSubmissionSource=="string"?v.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof v.aiCfoSuggestionIndex=="number"?v.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...mon(v),[z8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const v=p.current;if(v==null||r==null)return!1;p.current=null;const S=n.state,k=CT(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:v.question,aiCfoShouldSubmit:!0,...v.submissionSource!=null?{aiCfoInitialSubmissionSource:v.submissionSource}:{},...v.suggestionIndex!=null?{aiCfoSuggestionIndex:v.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Ut(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const v=CT(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:v,referrer:n.state?.referrer??"Navigation"}})}),[n.pathname,n.state,i,f,r]),b=m.useCallback((()=>{l(!1),y()}),[y]),w=m.useCallback((()=>{p.current=null,l(!1)}),[]),C=m.useCallback((()=>{d||c?.userRoleId==null?(l(!1),f()):e(Cvt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(Rin,{open:s,onClose:w,children:on.jsxs(Fin,{children:[s&&!h?on.jsx(wAe,{analytics:Qm,onLoad:v=>h?null:v.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(Qye,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const N8e=m.createContext(void 0);function zje(){const e=m.useContext(N8e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Nje=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],_je=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],gon=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],fon=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],xon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],yon=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],bon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],won=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Con=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function von(e){const n=(e??"").replace(/\/$/,"").split("/").filter(Boolean);if(n.length<2)return!1;for(let i=1;i<n.length;i+=1)if(n[i]==="transaction")return!0;return!1}const Aon=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Son=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],kon=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],v7s=[...gon,...Nje,..._je,"/:tenantEmailDomain/vendors/*","/:tenantEmailDomain/vendors","/:tenantEmailDomain/month_end_close_checks/*","/:tenantEmailDomain/month_end_close_checks","/:tenantEmailDomain/tasks/*","/:tenantEmailDomain/tasks","/:tenantEmailDomain/bills/*","/:tenantEmailDomain/bills","/:tenantEmailDomain/reimbursements/*","/:tenantEmailDomain/reimbursements",...Aon,...Son,...kon,...fon,...xon,...yon,...bon,...won,...Con];function jon(){const{pathname:e}=Vg(),n=e??"";return v7s.some((i=>W8e(i,n)!=null))||von(e)}function Qd(e){const{pathname:n}=Vg(),i=n??"";return e.some((r=>W8e(r,i)!=null))}const aks=27.22,$on=m.createContext(null),Eon={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function A7s({children:e}){const[n,i]=m.useState((()=>new Set([]))),r=n.size>0,s=m.useCallback((d=>{i((u=>{if(u.has(d))return u;const p=new Set(u);return p.add(d),p}))}),[]),l=m.useCallback((d=>{i((u=>{if(!u.has(d))return u;const p=new Set(u);return p.delete(d),p}))}),[]),c={isLoading:r,activeLoadingStates:n,setLoading:s,clearLoading:l,clearAllLoading:m.useCallback((()=>{i(new Set)}),[])};return on.jsx($on.Provider,{value:c,children:e})}function Vje(){const e=m.useContext($on);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function S7s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(rln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=nln(c);u.length!==0&&(e(iln(u)),e(oln({sourceChatSessionId:n})),n!=null&&e(g$e({chatSessionId:n,id:v$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(tln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Mra(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const v=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return v==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...Pra(v)}}const y=nee(p.vendorPolicy,"allow"),b=nee(p.vendorPolicy,"block"),w=iee(p.categoryPolicy,"allow"),C=iee(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((v=>v.isChecked)).map((v=>v.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:oee(p.limits,Mke),spendLimits:{transaction:oee(p.limits,Pke)}}})({values:c});e(eln({templates:[u],sourceChatSessionId:n})),n!=null&&e(g$e({chatSessionId:n,id:v$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(Xsn(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(vvt())}:void 0}}const k7s=e=>gln(e,!1),j7s=e=>mln(e.name,!1);function $7s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=aln(r),l=sln(r),c=lln(r),{creditAccount:d}=cln(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(k7s),cardPolicyVendorSearchOptions:l.map(j7s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:hln(r),cardPolicyUploadedFileName:pln(r),cardPolicyFormDraft:uln(e.createCardPolicyState),cardsCreationFormDraft:dln(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const E7s=e=>{const n=se.currencyFormatter(0);return i=>{const r=xln(e.chargeCardState,i);if(r==null)return;const s=yln(e.userState,r.cardHolderUserId),l=((u,p,h)=>{const g=u!=null&&u.length>0,f=p!=null&&p.length>0;return g&&f?`${u} ${p}`:g?u:f?p:h??""})(s?.firstName,s?.lastName,s?.email),c=r.limit?.amount,d=typeof c=="number"&&Number.isFinite(c)?n.format(c):"";return{cardName:r.cardName,ownerName:l,recommendedLimitFormatted:d,owner:s}}},I7s=e=>n=>{const i=fln(e.cardPolicyState,n);if(i==null)return;const r=i.cardsCount>0?i.cardsCount:i.appliedCards.length,s=i.allowedEntity.merchantNames.length+i.blockedEntity.merchantNames.length,l=i.allowedEntity.categoryCodes.length+i.blockedEntity.categoryCodes.length;return{name:i.name,description:i.description,cardsCount:r,vendorRestrictionsCount:s,categoryRestrictionsCount:l}};function D7s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Al.isAiCfoAnswerExportEnabled);return n&&Gx?.aiCfoMicroServiceBaseUrl!=null?`${Gx.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function T7s({isHydrationEnabled:e=!0}={}){const n=Bp(),{useFeatureGate:i}=es(),{isFeatureEnabled:r}=i(Al.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(Al.isCardPolicyEnabled),l=Nr((x=>zp(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Nr((x=>{const y=zp(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),_K),u=m.useRef(!1),p=m.useRef(!1);m.useEffect((()=>{u.current=!1,p.current=!1}),[l]),m.useEffect((()=>{e&&c&&(u.current||(u.current=!0,n(bln()),n(f$e()),n(wln("cardHolderCandidate",!1)),n(Cln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(vln())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(vvt())}),[n,l]);const h=m.useMemo((()=>Bcn((x=>{n(f$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Nr((x=>Aln(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),_K);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const Ion=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Don=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],L7s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],B7s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],P7s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],M7s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],O7s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Ton=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Lon=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],F7s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function Hje(e){const n=Vh(e),i=n.indexOf("review");if(i<2||n[i-1]!=="month_end_close_checks")return null;if(i===n.length-1)return"overview";const r=n[i+1];return r==null?"overview":F7s.includes(r)?r:null}const R7s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),z7s=new Set(["setup","verification","promo","approval-rules"]);function Vh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function Uje(e){const n=Vh(e),i=n[1]==="vendors"?1:-1;if(i<0||n.length<i+2)return;const r=n[i+1];if(r==="summary")return"vendors";if(r==="opex")return"opex_by_vendor";if(r==="schedules"){const s=n[i+2];return s==="prepaid_expenses"?"prepaid_expenses":s==="fixed_assets"?"fixed_assets":s==="accrued_expenses"?"accrued_expenses":void 0}return r==="filing_1099"?"form_1099":void 0}function Bon(e,n,i){const r=Vh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Pon(e,n,i){return Bon(e,n,(r=>!i.has(r)))}function Mon(e){return Pon(e,"bills",R7s)}function Oon(e){return Pon(e,"reimbursements",z7s)}function Wje(e){return Bon(e,"tasks",(n=>n==="group"))}const N7s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),_7s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function Qje(e){const n=Vh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return N7s.has(i)?"checking":"checking_details"}function Yje(e){const n=Vh(e);if(n[1]!=="cards")return;if(n.length<=2)return"cards";const i=n[2];if(i==="policy"){const r=n[3];return r==null?"card_policy":r==="new"?void 0:"card_policy_detail"}return _7s.has(i)?"cards":"cards_detail"}function Fon(e){const n=Vh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function Ron(e){return Vh(e)[1]==="performance"?"performance":void 0}function zon(e){const n=Vh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function Non(e){const n=Vh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function _2(e,n){return n.some((i=>W8e(i,e)!=null))}function V7s(e){return _2(e,Nje)?"reports":_2(e,Ion)?"ap_aging":_2(e,Don)?"ar_aging":Uje(e)!=null?"vendors_tab":_2(e,_je)?"forecast":Hje(e)!=null?"month_end_close_review":_2(e,Ton)?"cash_balance":_2(e,Lon)?"card_balance":Wje(e)?"task_checklist":Fon(e)!=null?"transaction_detail":Ron(e)!=null?"performance":zon(e)!=null?"bills_detail":Non(e)!=null?"reimbursement_detail":Mon(e)?"bills_list":Oon(e)?"reimbursement_list":_2(e,L7s)?"cash_in_cash_out":_2(e,B7s)?"operating_expenses":_2(e,P7s)?"revenue":_2(e,M7s)?"net_burn_or_income":_2(e,O7s)?"cash_position":(function(n){const i=Vh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":Qje(e)!=null?"checking":(function(n){return Vh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":Yje(e)!=null?"cards":(function(n){return Vh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Vh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Vh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function _on(e,n){switch(V7s(e)){case"reports":{const i=n?.selectedReportId;return i==null?void 0:(function(r){switch(r){case"balance_sheet":return"balance_sheet";case"profit_and_loss":case"profit_and_loss_by_classes":return"profit_loss";case"cash_flow":return"cash_flow";case"vendor":case"vendors_tab":return"vendors";case"accounts_payable_aging":return"accounts_payable";case"accounts_receivable_aging":return"accounts_receivable";case"transaction_detail":return"transaction_details";case"transaction_list_of_account":case"transaction_list_of_account_by_class":case"transaction_list_missing_receipt":return"transactions";default:return}})(i)}case"ap_aging":return"accounts_payable";case"ar_aging":return"accounts_receivable";case"vendors_tab":return Uje(e);case"forecast":return"forecast";case"month_end_close_review":{const i=Hje(e);return i==null?void 0:(function(r){switch(r){case"overview":return"command_centre";case"transaction_categorization":return"transactions";case"je_schedules":return"je_schedules";case"reconciliation":return"reconciliation";case"missing_receipts":return"receipts";case"flux_analysis":return"flux_analysis";case"month_end_insights":return"mei"}})(i)}case"cash_balance":return"cash_balance";case"card_balance":return"card_balance";case"task_checklist":return"task_checklist";case"transaction_detail":return"transaction_details";case"performance":return"performance";case"bills_detail":return"bills_details";case"reimbursement_detail":return"reimbursement_details";case"bills_list":return"bills_list";case"reimbursement_list":return"reimbursement_list";case"cash_in_cash_out":return"cash_in_cash_out";case"operating_expenses":return"operating_expenses";case"revenue":return"revenue";case"net_burn_or_income":return"net_burn_or_income";case"cash_position":return"cash_position";case"dashboard":return"dashboard";case"checking":return Qje(e);case"treasury":return"treasury";case"cards":return Yje(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function Von(){const{pathname:e}=Vg(),n=e??"",i=Nr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>_on(n,{selectedReportId:i})),[n,i])}function Gje(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Al.isAiCfoEnabled),i=Nr((s=>zp(s))),r=Tr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function H7s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(Al.isAiCfoNavButtonEnabled),i=Gje();return n&&i}const Hon=m.createContext(void 0),U7s=({children:e})=>{const{tenantEmailDomain:n}=jCt(),i=n!=null?Tr.getSignedInUserTenant(n):void 0,r=Nr((u=>zp(u))),s=dte().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(Hon.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},W7s=()=>{const e=m.useContext(Hon);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function Uon(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function Won(e){const{areTenantIdsInSync:n}=W7s(),i=Gje(),r=H7s();return n&&e&&r&&i}function sks(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Bp(),s=$Ct(),l=m.useRef(null);m.useEffect((()=>{const c=l.current===!1&&i===!0;if(l.current=i,i&&n!=null&&n.length!==0)for(const d of n){const u=dwe(s.getState(),d)?.fetchState;Uon(u,c)&&r(Svt({pageContext:d}))}}),[i,r,n,s])}function Qon(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Bp(),c=$Ct(),d=m.useRef(null),u=m.useRef(void 0);m.useEffect((()=>{const p=d.current===!1&&r===!0;d.current=r;const h=u.current!==void 0&&u.current!==s;if(u.current=s,i==null||!r)return;const g=dwe(c.getState(),i)?.fetchState;Uon(g,p||h)&&l(Svt({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:Won(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function lks(e){Qon({pageContext:Von(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:Q7s,sampleQuestion2:Y7s,sampleQuestion3:G7s}}=se.getLocalizedStrings().aiCfo,q7s=[Q7s,Y7s,G7s];function K7s(e,n=!1){Qon({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=Won(!0),r=Nr((g=>e!=null&&e!==""?dwe(g,e):void 0)),{useDynamicConfig:s}=es(),{configValue:l}=s(Jx.aiCfoMessageDynamicConfig),c=m.useMemo((()=>Array.isArray(l?.default_message_list)?[...l.default_message_list]:[]),[l?.default_message_list]),d=m.useMemo((()=>c.length>0?c:[...q7s]),[c]),u=e!=null&&e!=="",p=u&&i&&(r==null||r.fetchState!=="Completed"&&r.fetchState!=="Error"),h=m.useMemo((()=>{if(!u||!i)return d;if(p)return[];if(r?.fetchState==="Error")return d;const g=(r?.suggestedQuestions??[]).map((f=>f.trim())).filter((f=>f.length>0));return g.length===0?d:g}),[i,d,u,p,r?.fetchState,r?.suggestedQuestions]);return{isSuggestedQuestionsLoading:!n&&p,suggestedPromptQuestions:m.useMemo((()=>n?[]:h),[n,h])}}function Z7s({isFileUploadEnabled:e,tenantEmailDomain:n}){const i=m.useCallback((()=>e===!0&&n!=null&&!Tr.getAiCfoUploadPromoSeen(n)),[e,n]),[r,s]=m.useState(i);return m.useEffect((()=>{s(i())}),[i]),m.useEffect((()=>{const l=()=>{s(i())};window.addEventListener(Yee,l);const c=d=>{d.key===hon&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(Yee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Tr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const Yon=m.createContext(void 0),Gee=()=>m.useContext(Yon),Ywt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},J7s=e=>{const n=Tr.isSignedIn(),i=Tr.getSignedInUser(),[r,s]=m.useState(void 0),l=m.useRef(void 0),c=m.useMemo((()=>r),[r]),d=Nr((h=>zp(h))),u=d.companyId,p=d.userRoleId;return m.useEffect((()=>{let h,g=!1;if(n&&d.tenantId!=null&&i?.userId!=null&&i.zeniSessionId!=null){Ywt(l.current),l.current=void 0,s(void 0);const f=i.userId,x=d.tenantId,y=i.zeniSessionId,b=async()=>{if(g)return;let C;try{C=await Eln(Ks.pusherClientSecret,{cluster:Ks.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(v){return void console.warn("Failed to initialize Pusher",v)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&fD(C,u),f!=null&&fD(C,f),p!=null&&fD(C,p)))},w=()=>{const C=dte();return C.tenantId===x&&C.userId===f&&C.sessionId===y};if(w())b();else{let C=0;h=setInterval((()=>{g||(C++,w()?(clearInterval(h),b()):C>=30&&(clearInterval(h),$vt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),Ywt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(Yon.Provider,{value:c,children:e.children})};function fD(e,n){const i=`private-encrypted-${n}`,r=e.channel(i);if(r?.subscribed===!0)return r;const s=e.subscribe(i);return s.bind("pusher:subscription_error",(l=>{console.warn("Pusher Channel Connection Subscription Error",l)})),s}const X7s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},Gon=e=>n=>{const i=Gee(),r=m.useRef(n.eventCallback),s=m.useRef(n.onSubscribed),l=m.useRef({}),c=m.useRef(0);m.useEffect((()=>{r.current=n.eventCallback,s.current=n.onSubscribed;const{events:u,eventCallback:p,onSubscribed:h,...g}=n;l.current=g}),[n]);const d=m.useMemo((()=>[...n.events].sort().join("|")),[n.events]);return m.useEffect((()=>{if(i!=null){const{events:u}=n,p=[];if(u.length===0)return;const h=new Set,g=()=>{if(s.current==null)return;const f=Date.now();f-c.current<5e3||(c.current=f,s.current(l.current))};return u.forEach((f=>{const[x,y]=X7s(f);if(y==="")return;const b=i.channel(x),w=v=>{r.current(y,v,l.current)};let C;if(b?.subscribed===!0)C=b,C.bind(y,w),h.has(x)||(h.add(x),g()),p.push((()=>{b.unbind(y,w)}));else{if(C=b??i.subscribe(x),C.bind(y,w),!h.has(x)){h.add(x);const v=()=>{g()};C.bind("pusher:subscription_succeeded",v),p.push((()=>{C.unbind("pusher:subscription_succeeded",v)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},cks=210;function dks(e){return e?.data.unread!=null&&e?.mode!=null}const qje=e=>aci.includes(e),Kje=e=>qMt.includes(e),Zje=e=>sci.includes(e),e6s={invoicing_settings_branding:"invoicing/settings/branding",invoicing_settings_dunning:"invoicing/settings/dunning",invoicing_settings_integrations:"invoicing/settings/integrations",invoicing_settings_payment_destination:"invoicing/settings/payment-destination",invoicing_settings_quickbooks:"invoicing/settings/quickbooks"},t6s=e=>{if(Zje(e)){const n=e6s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return qje(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":OAe(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:Kje(e)?`ai-cfo/${e}`:e},n6s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],uks=e=>{if(qje(e)||Kje(e)||Zje(e))return!0;const n=t6s(e).split("/")[0];return!n6s.includes(n)},Gwt=(e,n)=>e.includes(n),qwt=e=>{switch(e.split("/")[2]){case"invoicing":return(function(n){const i=n.split("/")[3];if(i==="settings")switch(n.split("/")[4]){case"payment-destination":return"invoicing_settings_payment_destination";case"branding":return"invoicing_settings_branding";case"integrations":return"invoicing_settings_integrations";case"dunning":return"invoicing_settings_dunning";case"quickbooks":return"invoicing_settings_quickbooks";default:return"invoicing_settings"}switch(i){case"customers":return"invoicing_customers";case"subscriptions":return"invoicing_subscriptions";case"invoices":return"invoicing_invoices";case"payments":return"invoicing_payments";case"credits":return"invoicing_credits";case"discounts":return"invoicing_discounts";case"dunning":return"invoicing_dunning";case"catalog":return"invoicing_catalog";case"settings":return"invoicing_settings";case"data_import":return"invoicing_data_import";case"audit_log":return"invoicing_audit_log";default:return"invoicing_overview"}})(e);case"cards":return"cards";case"rewards":case"dashboard":case"transactions":case"transaction":case"notifications":return"home";case"checking":return"checking";case"bills":case"bill":return"bills";case"reimbursements":case"reimbursement":return"reimbursements";case"vendors":return"vendors";case"forecast":return"forecast";case"reports":return"reports";case"tasks":case"task":return"task_checklist";case"people":return"users_and_roles";case"settings":return(function(n){if(n==null)return;const i=["accounting","approval_rules","billing","my_bank_connections","bank_connections","business_verification","company_details","integrations","my_profile","notifications"];for(const r of i)if(Gwt(n,r))switch(r){case"accounting":return"accounting";case"approval_rules":return"approval_rules";case"billing":return"billing";case"my_bank_connections":return"my_bank_connections";case"bank_connections":return"bank_connections";case"business_verification":return"business_verification";case"company_details":return"company_details";case"integrations":return"integrations";case"my_profile":return"my_profile";case"notifications":return"notifications"}})(e);case"performance":return"performance";case"month_end_close_checks":return(function(n){if(!n.includes("month_end_close_checks/review"))return"command_center";const i=n.split("/"),r=i.indexOf("review"),s=r>=0?i[r+1]:void 0;return s!=null&&OAe(s)?rci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of qMt)if(Gwt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function i6s(e){let n=qwt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=qwt(i[r])}return n??"home"}function pks(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function hks(e){return e.pathname.split("/")[2]==="invoicing"}function mks(e){return e.pathname.includes("ai-cfo")}function gks(e,n){const i=i6s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":Zje(i)?`invoicing/${i.replace("invoicing_","")}`:qje(i)?"settings/my_profile":Kje(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":OAe(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function o6s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(Evt(r.tenantId)),e(Ivt(s.userId,r.tenantId,s.zeniSessionId))),Qm.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function r6s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Bp(),u=Zee(),p=Vg(),{setLoading:h}=Vje(),g=Tr.getSignedInUser(),f=Wz(g),{useDynamicConfig:x}=es(),{configValue:y}=x(Jx.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),v=Nr((O=>O.tenantState)),S=Nr((O=>v.fetchState==="Completed"?Iln(O):[])),k=Nr((O=>e?.tenantId!=null?Dln(O,e.tenantId):void 0)),$=m.useCallback((()=>C(!0)),[]),j=m.useCallback((()=>C(!1)),[]),I=m.useCallback((()=>{j(),s?.()}),[j,s]),E=m.useCallback((O=>{if(I(),O.type!=="skills"&&l?.(),O.type==="new_chat"){n!=null&&d(C5e());const H=CT(p.state?.pathnameStackToGoBack,p.pathname);u(`/${e.tenantEmailDomain}/ai-cfo/new_chat`,{state:{pathnameStackToGoBack:H.slice(0,-1),referrer:"Sidebar"}})}else O.type==="skills"?c?.():O.type==="explore"&&(n!=null&&d(C5e()),u(`/${e.tenantEmailDomain}/ai-cfo/explore`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}}))}),[I,n,e.tenantEmailDomain,d,p,u,l,c]),D=m.useCallback((O=>{I(),d(Avt({sessionId:O,agentId:"controller"})),u(`/${e.tenantEmailDomain}/ai-cfo/${O}`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,d,p,u]),L=m.useCallback((()=>n==null?"new_chat":"ai_cfo"),[n]),F=m.useCallback((()=>{I();const O=CT(p.state?.pathnameStackToGoBack,p.pathname);u("/signout",{replace:!0,state:{pathnameStackToGoBack:O,message:"logout"}})}),[I,p,u]),N=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/settings/my_profile`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),_=m.useCallback((()=>{I(),window.open("/cockpit")}),[I]),z=m.useCallback((()=>{I(),u(`/${e.tenantEmailDomain}/notifications/tasks`,{state:{pathnameStackToGoBack:p.state?.pathnameStackToGoBack}})}),[I,e.tenantEmailDomain,p,u]),T=m.useCallback((O=>{h(Eon.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;o6s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Kc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(a6s,{children:[on.jsxs(s6s,{children:[on.jsx(hNt,{}),on.jsx(ENt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:v.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(l6s,{children:on.jsx(fNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(c6s,{children:[g!=null&&on.jsx(BN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(d6s,{onClick:z,children:on.jsx(u6s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const a6s=a.div`
|
|
92362
92362
|
display: flex;
|
|
92363
92363
|
flex: 1 1 auto;
|
|
92364
92364
|
flex-direction: column;
|
|
@@ -92446,7 +92446,7 @@ ${UM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
92446
92446
|
display: flex;
|
|
92447
92447
|
min-height: 100%;
|
|
92448
92448
|
flex-direction: column;
|
|
92449
|
-
`,j6s=()=>{const[e,n]=m.useState((()=>Tr.getSignedInUser())),i=Bp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Nr((g=>Dvt(g).fetchState)),u=Nr((g=>zp(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=Tr.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(Yln(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(CAe,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(S6s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},Zwt="init-enter",$6s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||Zwt);E6s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||Zwt,c=I6s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),E6s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),I6s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},cm=e=>m.lazy((async()=>{const n=e.toString(),i=Tr.getForceRefreshedComponents(),r=new Set(i),s=Tr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Tr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Tr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),fks=(e,n,i)=>{const r=X8e(e),s=ote(e),l=ewe(i,e);return(n||i||s||r||l)&&Z8e(e.company)},Jon=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Xon=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),ern=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),trn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(Jon||Xon||ern||trn)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 xD(...e){const n=Ul==="DEV"||Ul==="QA";if(Jon||Xon||ern||trn)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 uE=null,iO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function Jwt(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 D6s={dashboard:function(e){return[...Jwt()]},reports:Jwt,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 Xwt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,D6s[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 eCt(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 xD("[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=dte(),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){xD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else xD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function T6s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Vg(),S=Tr.getSignedInUser(),{useFeatureGate:k}=es(),{isFeatureEnabled:$}=k(Al.isReferralFeatureEnabled),j=Ln(),I=Oy(j?.loggedInUserRole??[]),E=Nr((_=>zp(_))),{isFeatureEnabled:D}=k(Al.isDebitCardFeatureEnabled),L=ewe(D,E),F=X8e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=Xwt({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((()=>{eCt(_,r,s).catch((M=>{xD(`[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,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&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=()=>{iO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),iO=!1),uE&&clearTimeout(uE),uE=setTimeout((()=>{iO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),iO=!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"),uE&&(clearTimeout(uE),uE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),iO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=Xwt({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`),eCt(z,r,s).catch((M=>{xD(`[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(_){xD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function L6s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Vg(),u=Nr((y=>zp(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}=es(),{isFeatureEnabled:x}=f(Al.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(T6s,{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 B6s(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 P6s=cm((()=>kd((()=>import("./DefaultTenantHome-CsXVfKlZ.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),M6s=cm((()=>kd((()=>import("./AppDrawer-DBMNE-tW.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),tCt=cm((()=>kd((()=>import("./ScreenRoutes-BfdhNdv6.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),O6s=cm((()=>kd((()=>import("./ConnectionAuthScreen-CIc-7q2q.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),F6s=cm((()=>kd((()=>import("./SignInScreen-uxgoeqdj.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),R6s=cm((()=>kd((()=>import("./MagicLinkSignInScreen-CUSvf6DA.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),nCt=cm((()=>kd((()=>import("./NotFoundScreen-Cg7JNFkQ.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),z6s=cm((()=>kd((()=>import("./MagicLinkRoutes-B98z2_te.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),N6s=cm((()=>kd((()=>import("./PaymentLinkScreen-CyUO-4Wu.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),_6s=cm((()=>kd((()=>import("./WiseConfirmationScreen-Tt2rFi3i.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),V6s=cm((()=>kd((()=>import("./HubSpotOAuthCallbackScreen-DrQG17NC.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),H6s=cm((()=>kd((()=>import("./CustomerOnboardingAuthScreen-BCLoKVKx.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),U6s=cm((()=>kd((()=>import("./SignOutScreen-DlEh7dhK.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),W6s=cm((()=>kd((()=>import("./OAuthConsentScreen-DvsId_K6.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Q6s=()=>{const e=Vg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=B6s("/",n);return on.jsx(kCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function Y6s(){const{isOpen:e}=JS(),n=Sdi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=zje(),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 G6s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Tr.isSignedIn(),r=Nr((j=>zp(j))),s=Tr.getSignedInUser(),l=i&&Wz(s),c=Nr((j=>Gln(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Bp(),p=Qd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=jon(),g=Gje(),[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}=es(),{isFeatureEnabled:v}=C(Al.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(qln())}),[u,h]);const S=Vg().pathname.includes("/collect-payment/"),k=on.jsx(q6s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return on.jsx(EWe,{children:on.jsx(C3t,{children:on.jsx(N8e.Provider,{value:w,children:k})})});const $=on.jsxs(N8e.Provider,{value:w,children:[on.jsx(Y6s,{}),on.jsxs(J6s,{children:[on.jsx(M6s,{tenantEmailDomain:e}),on.jsx(K6s,{children:k})]})]});return on.jsx(EWe,{children:r.tenantId!=null?on.jsx(ega,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Gx.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Gx.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(C3t,{children:$})})},q6s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Nr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=es(),{configValue:c}=l(Jx.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}=Vje(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=zje();return m.useEffect((()=>{h(Eon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(L6s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(Prn,{children:[on.jsx(Y1,{path:"/magic_links/*",element:on.jsx(z6s,{})}),on.jsx(Y1,{path:"/collect-payment/:namespace/:token",element:on.jsx(N6s,{})}),on.jsx(Y1,{path:"/wise/callback/link-account/*",element:on.jsx(_6s,{})}),on.jsx(Y1,{path:"/page-not-found",element:on.jsx(nCt,{})}),on.jsx(Y1,{path:"/",element:on.jsx(P6s,{})}),on.jsx(Y1,{path:"/aicfo",element:on.jsx(Q6s,{})}),on.jsx(Y1,{path:"/onboarding/auth",element:on.jsx(H6s,{})}),on.jsx(Y1,{path:"/:tenantEmailDomain/*",element:on.jsx(ebs,{children:on.jsxs(U7s,{children:[on.jsxs(tbs,{children:[s!=null?on.jsx(j6s,{}):null,n?on.jsx(tCt,{setTenantEmailDomain:e}):on.jsx(m5e,{children:on.jsx(tCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(C7s,{}),on.jsx(nbs,{isOpen:g,children:on.jsx(f6s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(Y1,{path:"/signin/auth",element:on.jsx(m5e,{children:on.jsx(F6s,{setTenantEmailDomain:e})})}),on.jsx(Y1,{path:"/signin/magic-link",element:on.jsx(m5e,{children:on.jsx(R6s,{})})}),on.jsx(Y1,{path:"/signout",element:on.jsx(U6s,{})}),on.jsx(Y1,{path:"/connection/auth",element:on.jsx(O6s,{})}),on.jsx(Y1,{path:"/oauth/hubspot/callback",element:on.jsx(V6s,{})}),on.jsx(Y1,{path:"/oauth/authorize",element:on.jsx(W6s,{})}),on.jsx(Y1,{path:"*",element:on.jsx(nCt,{})})]})})})},K6s=({children:e})=>{const{isOpen:n,width:i}=JS();return on.jsx(X6s,{commentsDrawerWidth:n?i:0,children:e})},Z6s=$S("div")`
|
|
92449
|
+
`,j6s=()=>{const[e,n]=m.useState((()=>Tr.getSignedInUser())),i=Bp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Nr((g=>Dvt(g).fetchState)),u=Nr((g=>zp(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=Tr.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(Yln(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(CAe,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(S6s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},Zwt="init-enter",$6s=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||Zwt);E6s(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||Zwt,c=I6s();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),E6s=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),I6s=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},cm=e=>m.lazy((async()=>{const n=e.toString(),i=Tr.getForceRefreshedComponents(),r=new Set(i),s=Tr.isSignedIn(),l=r.has(n);try{const c=await e();return r.delete(n),s&&Tr.saveForceRefreshedComponents(Array.from(r)),c}catch(c){throw l||(r.add(n),s&&Tr.saveForceRefreshedComponents(Array.from(r)),location.reload()),c}})),fks=(e,n,i)=>{const r=X8e(e),s=ote(e),l=ewe(i,e);return(n||i||s||r||l)&&Z8e(e.company)},Jon=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),Xon=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),ern=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),trn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(Jon||Xon||ern||trn)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 xD(...e){const n=Ul==="DEV"||Ul==="QA";if(Jon||Xon||ern||trn)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 uE=null,iO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function Jwt(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 D6s={dashboard:function(e){return[...Jwt()]},reports:Jwt,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 Xwt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,D6s[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 eCt(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 xD("[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=dte(),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){xD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else xD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function T6s({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),v=Vg(),S=Tr.getSignedInUser(),{useFeatureGate:k}=es(),{isFeatureEnabled:$}=k(Al.isReferralFeatureEnabled),j=Ln(),I=Oy(j?.loggedInUserRole??[]),E=Nr((_=>zp(_))),{isFeatureEnabled:D}=k(Al.isDebitCardFeatureEnabled),L=ewe(D,E),F=X8e(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=Xwt({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((()=>{eCt(_,r,s).catch((M=>{xD(`[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,v.pathname]),m.useEffect((()=>{y(!1)}),[i,v.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[v.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&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=()=>{iO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),iO=!1),uE&&clearTimeout(uE),uE=setTimeout((()=>{iO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),iO=!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"),uE&&(clearTimeout(uE),uE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),iO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=Xwt({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`),eCt(z,r,s).catch((M=>{xD(`[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(_){xD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function L6s({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Vg(),u=Nr((y=>zp(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}=es(),{isFeatureEnabled:x}=f(Al.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(T6s,{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 B6s(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 P6s=cm((()=>kd((()=>import("./DefaultTenantHome-V7zkwBIA.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),M6s=cm((()=>kd((()=>import("./AppDrawer-Rk7OEIXc.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),tCt=cm((()=>kd((()=>import("./ScreenRoutes-Dd_oQ5Gq.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),O6s=cm((()=>kd((()=>import("./ConnectionAuthScreen-Bm1mms_J.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),F6s=cm((()=>kd((()=>import("./SignInScreen-BLjiHMp8.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),R6s=cm((()=>kd((()=>import("./MagicLinkSignInScreen-BfF3-SZ8.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),nCt=cm((()=>kd((()=>import("./NotFoundScreen-CBzOeZpR.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),z6s=cm((()=>kd((()=>import("./MagicLinkRoutes-BuuyVcBe.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),N6s=cm((()=>kd((()=>import("./PaymentLinkScreen-B5Gb6bt2.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),_6s=cm((()=>kd((()=>import("./WiseConfirmationScreen-Xg9F8ns0.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),V6s=cm((()=>kd((()=>import("./HubSpotOAuthCallbackScreen-4-3ujMEC.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),H6s=cm((()=>kd((()=>import("./CustomerOnboardingAuthScreen-CZ-vITy9.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),U6s=cm((()=>kd((()=>import("./SignOutScreen-n_PIGeF0.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),W6s=cm((()=>kd((()=>import("./OAuthConsentScreen-DBDbw5t9.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),Q6s=()=>{const e=Vg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=B6s("/",n);return on.jsx(kCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function Y6s(){const{isOpen:e}=JS(),n=Sdi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=zje(),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 G6s=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Tr.isSignedIn(),r=Nr((j=>zp(j))),s=Tr.getSignedInUser(),l=i&&Wz(s),c=Nr((j=>Gln(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Bp(),p=Qd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=jon(),g=Gje(),[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}=es(),{isFeatureEnabled:v}=C(Al.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(qln())}),[u,h]);const S=Vg().pathname.includes("/collect-payment/"),k=on.jsx(q6s,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:v});if(S)return on.jsx(EWe,{children:on.jsx(C3t,{children:on.jsx(N8e.Provider,{value:w,children:k})})});const $=on.jsxs(N8e.Provider,{value:w,children:[on.jsx(Y6s,{}),on.jsxs(J6s,{children:[on.jsx(M6s,{tenantEmailDomain:e}),on.jsx(K6s,{children:k})]})]});return on.jsx(EWe,{children:r.tenantId!=null?on.jsx(ega,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Gx.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Gx.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(C3t,{children:$})})},q6s=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Nr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=es(),{configValue:c}=l(Jx.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}=Vje(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=zje();return m.useEffect((()=>{h(Eon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(L6s,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(Prn,{children:[on.jsx(Y1,{path:"/magic_links/*",element:on.jsx(z6s,{})}),on.jsx(Y1,{path:"/collect-payment/:namespace/:token",element:on.jsx(N6s,{})}),on.jsx(Y1,{path:"/wise/callback/link-account/*",element:on.jsx(_6s,{})}),on.jsx(Y1,{path:"/page-not-found",element:on.jsx(nCt,{})}),on.jsx(Y1,{path:"/",element:on.jsx(P6s,{})}),on.jsx(Y1,{path:"/aicfo",element:on.jsx(Q6s,{})}),on.jsx(Y1,{path:"/onboarding/auth",element:on.jsx(H6s,{})}),on.jsx(Y1,{path:"/:tenantEmailDomain/*",element:on.jsx(ebs,{children:on.jsxs(U7s,{children:[on.jsxs(tbs,{children:[s!=null?on.jsx(j6s,{}):null,n?on.jsx(tCt,{setTenantEmailDomain:e}):on.jsx(m5e,{children:on.jsx(tCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(C7s,{}),on.jsx(nbs,{isOpen:g,children:on.jsx(f6s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(Y1,{path:"/signin/auth",element:on.jsx(m5e,{children:on.jsx(F6s,{setTenantEmailDomain:e})})}),on.jsx(Y1,{path:"/signin/magic-link",element:on.jsx(m5e,{children:on.jsx(R6s,{})})}),on.jsx(Y1,{path:"/signout",element:on.jsx(U6s,{})}),on.jsx(Y1,{path:"/connection/auth",element:on.jsx(O6s,{})}),on.jsx(Y1,{path:"/oauth/hubspot/callback",element:on.jsx(V6s,{})}),on.jsx(Y1,{path:"/oauth/authorize",element:on.jsx(W6s,{})}),on.jsx(Y1,{path:"*",element:on.jsx(nCt,{})})]})})})},K6s=({children:e})=>{const{isOpen:n,width:i}=JS();return on.jsx(X6s,{commentsDrawerWidth:n?i:0,children:e})},Z6s=$S("div")`
|
|
92450
92450
|
display:flex;
|
|
92451
92451
|
`,J6s=$S("div")`
|
|
92452
92452
|
display: flex;
|
|
@@ -92568,4 +92568,4 @@ ${UM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Ei
|
|
|
92568
92568
|
}
|
|
92569
92569
|
`,Cbs=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(fbs,{style:n,children:[on.jsxs(xbs,{children:[on.jsx(aq,{children:on.jsx(V0,{width:96,height:20})}),on.jsxs(aq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:78,height:16}),on.jsx(V0,{width:46,height:16})]}),on.jsxs(aq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:110,height:16}),on.jsx(V0,{width:84,height:16})]}),on.jsxs(aq,{children:[on.jsx(V0,{width:55,height:12}),on.jsx(V0,{width:84,height:16}),on.jsx(V0,{width:64,height:16})]})]}),on.jsxs(ybs,{children:[on.jsxs(bbs,{children:[on.jsx(V0,{width:106,height:27}),on.jsx(V0,{width:111,height:32})]}),on.jsx(wbs,{children:on.jsx(gbs,{width:96,height:96})})]})]}):null;function vbs({minDisplayTime:e=0}){const{isLoading:n}=Vje(),[i,r]=m.useState(!1),s=m.useRef(),l=m.useRef(null);return m.useLayoutEffect((()=>{if(s.current&&clearTimeout(s.current),Tr.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(Cbs,{fetchState:"In-Progress"})}const Abs=()=>{const[e,n]=m.useState((()=>Tr.getSignedInUser()));return m.useEffect((()=>{const i=()=>{n(Tr.getSignedInUser())};return window.addEventListener("completeProfileDone",i),()=>{window.removeEventListener("completeProfileDone",i)}}),[]),e},rCt="missing-receipts-batch-completed";let V8e=null,H8e=!1;function yks(e,n){if(!n)return V8e=null,void(H8e=!1);V8e=e,H8e=!0}const Sbs=()=>{const e=Bp(),{useFeatureGate:n}=es(),{isFeatureEnabled:i}=n(Al.isReconV3Enabled),r=Nr((l=>Tvt(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 H8e&&V8e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(jvt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:Tss(c)},{variableName:"_transaction_count_",variableValue:String(Lss(c))}]})),s.current[l]=d}))}),[r,e,i])},aCt="reconciliation-status-updated",sCt="statement-status-updated",lCt="combined-statement-group-updated";function kbs(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function jbs(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(Lvt(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,v=w?.some((S=>S.accountId===x))===!0;return C===!0||v===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(ecn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(Bvt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function $bs(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,v){return v!==""?v: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(kbs(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 v=x(y,b);if(v!=null)return v}})(l,i);d!=null&&(e(Lvt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?tcn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):Bvt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function Ebs(){let e=oCt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(Gx)}`);const n=Tr.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=Tr.getSignedInUserTenant(l);if(u?.tenantId!=null)return u.tenantId}return Tr.getActiveTenantForUser()?.tenantId})():void 0,r=ocn(Gx,n?.userId,n?.zeniSessionId,i,gD(),Tbs);v5e();const s=dte();return s.userId!=null&&Qm.identify(s.userId,{tenant_id:s.tenantId}),r})(),irn=e,v5e().then((()=>{const n=oCt();n!=null&&(gb.reset(),hbs(n))})).catch((n=>{console.error("Failed to load feature epics:",n),hrn(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
92570
92570
|
|
|
92571
|
-
Please refresh the page to try again.`)}))),e}se.updateAppLocaleID("en");const sq=new ncn,cCt=()=>{const e=Bp(),n=Tr.getSignedInUser(),i=Nr((L=>zp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=es(),{configValue:N,isDynamicConfigLoading:_}=F(YCe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return lQ;const T=K1t(N.users_disabled_for_auto_logout),M=K1t(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:j2e(N.heartbeat_interval_minutes,lQ.heartbeatIntervalMinutes),idleTimeoutMinutes:j2e(N.idle_timeout_minutes,lQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:j2e(N.warning_duration_seconds,lQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(AAe,"auto-logout"),sessionStorage.setItem(SAe,String(F.idleTimeoutMinutes)),sessionStorage.setItem(kAe,String(Date.now())),FF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(YRt(),FF=void 0),s(null),sq.stop(),e(rcn()),e(acn(!1)),Tr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return sq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(scn()),onWarningStart:L=>{Qm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Qm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>sq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Nr((L=>lcn(L,i.companyId))),u=Qd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(b$e())}),[]);const h=Nr((L=>ccn(L)));(()=>{const L=Gee(),F=Bp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(Al.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Tr.getSignedInUser()?.userId;if(z==null)return;const T=fD(L,z),M=O=>{F(Xln({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(rCt,M),()=>{T.unbind(rCt,M)}}),[L,F,_])})(),(()=>{const L=Gee(),F=Bp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(Al.isReconV3Enabled),{isFeatureEnabled:z}=N(Al.isReconciliationCombinedStatementEnabled),T=Nr((Y=>zp(Y)?.companyId)),M=Nr((Y=>Tvt(Y))),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 Y={month:V,year:W},q=fD(L,T),K=ee=>{jbs(F,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{$bs(F,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(aCt,K),q.bind(sCt,K),q.bind(lCt,J),()=>{q.unbind(aCt,K),q.unbind(sCt,K),q.unbind(lCt,J)}}),[L,F,_,z,T,V,W])})(),Sbs();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(ucn(F))}},y=m.useMemo((()=>Tr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=es(),{isFeatureEnabled:C}=w(Al.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(Al.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(Al.isInvoicingFeatureEnabled),k=A3a(),$=i?.userRole!=null&&ws(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&NCt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>pbs(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Qm,sentry:mrn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(R_n,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(D_n,{toolkit:D,children:on.jsxs(NNn,{endPoint:{url:Oje},children:[on.jsx(esr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(b$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(ibs,{...x})]})}),r!=null&&n!=null?on.jsx(Xys,{secondsRemaining:r,onContinueSession:()=>{Qm.trackSessionTimeoutClicked("continue",r),sq.continueSession()},onSignOut:()=>{Qm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},Ibs=()=>{const e=Tr.isSignedIn(),n=Nr((c=>zp(c))).companyId,i=Nr((c=>icn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=Abs(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:_wt,featureClientSecret:Ks.featureClientSecret,providerEndPoint:Vz.statsigBaseUrl})),[_wt,Ks.featureClientSecret,Vz.statsigBaseUrl]);return n?on.jsx(xWn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:on.jsx(cCt,{})}):on.jsx(cCt,{})},Dbs=prn((function(){const e=m.useMemo((()=>Ebs()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{v5e().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(obs,{children:on.jsx(Mrn,{store:e,children:on.jsx(mbs,{value:n,children:on.jsxs(A7s,{children:[on.jsx(vbs,{}),on.jsx(K6n,{children:on.jsx(J7s,{children:on.jsxs(E_n,{children:[r?on.jsx(kci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(Ibs,{})]})})})]})})})})}));function Tbs(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const Lbs=!!(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}$/)),dCt=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function uCt(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 rrn="zeni:env-keys:",qee=`${rrn}${Ul}:5.4.2-dev-792909115`,pCt="zeni.ai";function Bbs(e){return arn(e)}function hCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(Bbs)}const g5e="o4504609050525696",Pbs={SENTRY_DSN:[`${g5e}.ingest.sentry.io`,`${g5e}.ingest.us.sentry.io`,`${g5e}.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"]},Mbs=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,Obs=["WEB_ENDPOINT"];function arn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===pCt||n.hostname.endsWith(`.${pCt}`))}const Fbs=["PUSHER_CLUSTER","UNIT_VAULT_ID"],Rbs=/^[A-Za-z0-9_-]+$/,zbs=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}),Nbs=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),_bs=/^pk_(live|test)_[A-Za-z0-9]+$/,Vbs=/^[A-Za-z0-9_.-]+$/,Hbs=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function Ubs(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!hCt(n.apiEndPoints)||!hCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(zbs.some((h=>i[h]==null))||Nbs.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(Pbs).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=Fbs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&Rbs.test(g)})),u=Obs.every((h=>{const g=l[h];return g==null||(function(f){if(arn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&Mbs.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&_bs.test(l.STRIPE_KEY))&&Hbs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&Vbs.test(g)}));return c&&d&&u&&p}function f5e(){try{window.localStorage.removeItem(qee)}catch{}}function Wbs(e){try{window.localStorage.setItem(qee,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(rrn)&&r!==qee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function srn(e){if(e==null||e==="")return null;try{const n=JSON.parse(son(e,lon+Ul));return Ubs(n)?n:null}catch{return null}}function mCt(e){return srn(e)!=null&&(Wbs(e),!0)}const gCt="zeni-chunk-reload-at",Qbs=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function fCt(e){try{const n=Number(sessionStorage.getItem(gCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(gCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let x5e=!1,xCt=null;const yCt="//js.hs-scripts.com/5991084.js",bCt="hs-script-loader",Ybs=Tr.getSignedInUser(),Gbs=Ybs?.zeniSessionId;function qbs(){const e=()=>{const n=Ks.sentryDsn?.trim();if(!n)return;const i=Ks.sentryProfileSamplingRate>0,r=Ul==="PROD";grn({dsn:n,environment:m7s,tracesSampleRate:Ks.sentryTraceSamplingRate,profilesSampleRate:i?Ks.sentryProfileSamplingRate:0,integrations:[frn(),...i?[xrn()]:[],...r?[yrn({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)}),brn("session-id",Gbs),(function(){if(NK==null)return;const s=NK;NK=void 0;try{if(window.sessionStorage.getItem(wCt)!=null)return;window.sessionStorage.setItem(wCt,s)}catch{}wrn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.2-dev-792909115"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function lrn(){Mcn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Orn,{children:on.jsx(Dbs,{})})})),qbs()}let NK;function U8e(e){NK=e}const wCt="zeni:env-keys-rejection-reported";function Kbs(){const e=(function(){try{const i=window.localStorage.getItem(qee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return f5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(f5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=srn(e);return n==null?(U8e("untrusted-or-unreadable"),f5e(),!1):(don(n),lrn(),!0)}var KC;window.addEventListener("vite:preloadError",(e=>{const n=e;fCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return Qbs.some((r=>i.includes(r)))})(e.reason)&&fCt(e.reason)})),(async function(){try{if(Kbs())return void(async function(){const i=await Vwt();typeof i=="string"&&i.length>0&&!mCt(i)&&U8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await Vwt(),n=son(e,lon+Ul);don(JSON.parse(n)),mCt(e)||U8e("network-untrusted-payload"),lrn()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):xCt!==null||(xCt=new Promise((e=>{if(x5e)return void e(!0);const n=()=>{x5e?e(!0):(x5e=!0,new Promise(((r,s)=>{if(document.getElementById(bCt))return void r();const l=document.createElement("script");l.id=bCt,l.src=yCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${yCt}`)),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;Lbs?(e=dCt,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()))})):uCt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):uCt(dCt)}))}})(),(KC=console.log)&&KC instanceof Function&&kd((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(KC),n(KC),i(KC),r(KC),s(KC)}));export{fe as $,cks as A,tks as B,uks as C,t6s as D,Kje as E,Al as F,se as G,o6s as H,gks as I,o as J,OAe as K,Eon as L,cm as M,JQi as N,Ul as O,rks as P,hbs as Q,Ni as R,D8s as S,oCt as T,AFt as U,Ln as V,i8s as W,Ks as X,T8s as Y,Kn as Z,u9s as _,zje as a,fvs as a$,UCs as a0,pfi as a1,oks as a2,WCs as a3,QCs as a4,C6s as a5,wAe as a6,gbs as a7,WGo as a8,R as a9,Cko as aA,L8s as aB,ACs as aC,vCs as aD,i5 as aE,uGt as aF,SCs as aG,h9s as aH,Gee as aI,X7s as aJ,bvs as aK,wvs as aL,n8s as aM,XCs as aN,sCs as aO,dCs as aP,qSe as aQ,nvs as aR,tvs as aS,cCs as aT,lCs as aU,t8s as aV,KMt as aW,RSs as aX,yvs as aY,gvs as aZ,xvs as a_,YCs as aa,PSs as ab,Gx as ac,P as ad,p9s as ae,ICs as af,u8s as ag,jCs as ah,I8s as ai,eks as aj,P8s as ak,V7s as al,Won as am,sks as an,W7s as ao,H7s as ap,lks as aq,b8s as ar,Tp as as,Oje as at,qwt as au,FAs as av,Kvs as aw,Ei as ax,oCs as ay,iCs as az,B6s as b,Ows as b$,E8s as b0,iks as b1,$8s as b2,eCs as b3,CCs as b4,Vi as b5,D_n as b6,$Cs as b7,k8o as b8,B8s as b9,A9s as bA,RAs as bB,aCs as bC,k9s as bD,j9s as bE,S9s as bF,gD as bG,evs as bH,wws as bI,vws as bJ,Cws as bK,xws as bL,fws as bM,Aws as bN,GCs as bO,yws as bP,bws as bQ,kws as bR,Ps as bS,vvs as bT,qCs as bU,Bws as bV,Tws as bW,GSs as bX,bCs as bY,VSs as bZ,Fws as b_,AEi as ba,LNt as bb,ZCs as bc,KCs as bd,JCs as be,l8s as bf,In as bg,ba as bh,Von as bi,Jx as bj,nks as bk,p6s as bl,y8s as bm,w8s as bn,Svs as bo,Rje as bp,b7s as bq,o8s as br,$Mi as bs,vBt as bt,M8s as bu,K7s as bv,Pws as bw,v9s as bx,$9s as by,Dve as bz,es as c,fCs as c$,qws as c0,Gws as c1,Xws as c2,Jws as c3,jws as c4,$ws as c5,kCs as c6,ECs as c7,Ews as c8,Iws as c9,HAs as cA,BSs as cB,GAs as cC,ESs as cD,eSs as cE,st as cF,YAs as cG,zi as cH,CSs as cI,qAs as cJ,XAs as cK,vSs as cL,uSs as cM,pSs as cN,hSs as cO,dSs as cP,mSs as cQ,cSs as cR,Cbs as cS,T9s as cT,tCs as cU,nCs as cV,zAs as cW,Lws as cX,JSs as cY,HSs as cZ,hCs as c_,Dws as ca,Zws as cb,Kws as cc,ISs as cd,$Ss as ce,KAs as cf,oSs as cg,ZAs as ch,VAs as ci,WAs as cj,ASs as ck,tSs as cl,xSs as cm,ySs as cn,fSs as co,QAs as cp,JAs as cq,LSs as cr,DSs as cs,TSs as ct,SSs as cu,nSs as cv,jSs as cw,kSs as cx,iSs as cy,gSs as cz,Abs as d,XSs as d$,mCs as d0,g9s as d1,uCs as d2,pCs as d3,CAe as d4,xCs as d5,wCs as d6,e0s as d7,p2s as d8,Nxe as d9,kvs as dA,Dvs as dB,Vvs as dC,I9s as dD,D9s as dE,Uvs as dF,Nvs as dG,zvs as dH,$vs as dI,_vs as dJ,Cvs as dK,J0a as dL,BAs as dM,OAs as dN,_As as dO,NAs as dP,MSs as dQ,Tss as dR,b9s as dS,NSs as dT,zSs as dU,yks as dV,nKi as dW,rCs as dX,Sdi as dY,JS as dZ,yen as d_,qSs as da,KSs as db,ZSs as dc,YSs as dd,c8s as de,Cqt as df,Fvs as dg,Ovs as dh,Pvs as di,Rvs as dj,Mvs as dk,USs as dl,Bvs as dm,Lvs as dn,Hvs as dp,jvs as dq,Ivs as dr,E9s as ds,gCs as dt,cr as du,nGr as dv,Evs as dw,Qon as dx,Avs as dy,Tvs as dz,Gje as e,xxo as e0,FSs as e1,Mws as e2,_Ss as e3,Dss as e4,DAs as e5,qvs as e6,Gvs as e7,Yvs as e8,D7s as e9,T7s as ea,ZR as eb,Z7s as ec,r6s as ed,mon as ee,h6s as ef,Qye as eg,Rin as eh,Fin as ei,y9s as ej,$7s as ek,I7s as el,E7s as em,g7s as en,S7s as eo,pon as ep,aks as eq,A3a as f,xks as g,fks as h,dks as i,Ut as j,Qm as k,mks as l,A as m,s8s as n,hks as o,CT as p,pks as q,f9s as r,x9s as s,gb as t,Vje as u,rci as v,Gon as w,i6s as x,yBi as y,Tr as z};
|
|
92571
|
+
Please refresh the page to try again.`)}))),e}se.updateAppLocaleID("en");const sq=new ncn,cCt=()=>{const e=Bp(),n=Tr.getSignedInUser(),i=Nr((L=>zp(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=es(),{configValue:N,isDynamicConfigLoading:_}=F(YCe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return lQ;const T=K1t(N.users_disabled_for_auto_logout),M=K1t(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:j2e(N.heartbeat_interval_minutes,lQ.heartbeatIntervalMinutes),idleTimeoutMinutes:j2e(N.idle_timeout_minutes,lQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:j2e(N.warning_duration_seconds,lQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(AAe,"auto-logout"),sessionStorage.setItem(SAe,String(F.idleTimeoutMinutes)),sessionStorage.setItem(kAe,String(Date.now())),FF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(YRt(),FF=void 0),s(null),sq.stop(),e(rcn()),e(acn(!1)),Tr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return sq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(scn()),onWarningStart:L=>{Qm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Qm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>sq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Nr((L=>lcn(L,i.companyId))),u=Qd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(b$e())}),[]);const h=Nr((L=>ccn(L)));(()=>{const L=Gee(),F=Bp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(Al.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Tr.getSignedInUser()?.userId;if(z==null)return;const T=fD(L,z),M=O=>{F(Xln({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(rCt,M),()=>{T.unbind(rCt,M)}}),[L,F,_])})(),(()=>{const L=Gee(),F=Bp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(Al.isReconV3Enabled),{isFeatureEnabled:z}=N(Al.isReconciliationCombinedStatementEnabled),T=Nr((Y=>zp(Y)?.companyId)),M=Nr((Y=>Tvt(Y))),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 Y={month:V,year:W},q=fD(L,T),K=ee=>{jbs(F,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{$bs(F,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(aCt,K),q.bind(sCt,K),q.bind(lCt,J),()=>{q.unbind(aCt,K),q.unbind(sCt,K),q.unbind(lCt,J)}}),[L,F,_,z,T,V,W])})(),Sbs();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(ucn(F))}},y=m.useMemo((()=>Tr.getSignedInUser()),[]),b=m.useMemo((()=>({userId:y?.userId??"",sessionId:y?.zeniSessionId??"",tenantId:i.tenantId??""})),[y,i.tenantId]),{useFeatureGate:w}=es(),{isFeatureEnabled:C}=w(Al.isApAgingFeatureEnabled),{isFeatureEnabled:v}=w(Al.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(Al.isInvoicingFeatureEnabled),k=A3a(),$=i?.userRole!=null&&ws(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:v,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&NCt(i.userRole),canSeeTopExpenses:j})),[C,v,S,k,$,i?.userRole,j]),E=m.useCallback((L=>pbs(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Qm,sentry:mrn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(R_n,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(D_n,{toolkit:D,children:on.jsxs(NNn,{endPoint:{url:Oje},children:[on.jsx(esr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(b$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(ibs,{...x})]})}),r!=null&&n!=null?on.jsx(Xys,{secondsRemaining:r,onContinueSession:()=>{Qm.trackSessionTimeoutClicked("continue",r),sq.continueSession()},onSignOut:()=>{Qm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},Ibs=()=>{const e=Tr.isSignedIn(),n=Nr((c=>zp(c))).companyId,i=Nr((c=>icn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=Abs(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:_wt,featureClientSecret:Ks.featureClientSecret,providerEndPoint:Vz.statsigBaseUrl})),[_wt,Ks.featureClientSecret,Vz.statsigBaseUrl]);return n?on.jsx(xWn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:on.jsx(cCt,{})}):on.jsx(cCt,{})},Dbs=prn((function(){const e=m.useMemo((()=>Ebs()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{v5e().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(obs,{children:on.jsx(Mrn,{store:e,children:on.jsx(mbs,{value:n,children:on.jsxs(A7s,{children:[on.jsx(vbs,{}),on.jsx(K6n,{children:on.jsx(J7s,{children:on.jsxs(E_n,{children:[r?on.jsx(kci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(Ibs,{})]})})})]})})})})}));function Tbs(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const Lbs=!!(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}$/)),dCt=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function uCt(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 rrn="zeni:env-keys:",qee=`${rrn}${Ul}:5.4.2-qa-792909115`,pCt="zeni.ai";function Bbs(e){return arn(e)}function hCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(Bbs)}const g5e="o4504609050525696",Pbs={SENTRY_DSN:[`${g5e}.ingest.sentry.io`,`${g5e}.ingest.us.sentry.io`,`${g5e}.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"]},Mbs=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,Obs=["WEB_ENDPOINT"];function arn(e){if(typeof e!="string")return!1;let n;try{n=new URL(e)}catch{return!1}return n.protocol==="https:"&&(n.hostname===pCt||n.hostname.endsWith(`.${pCt}`))}const Fbs=["PUSHER_CLUSTER","UNIT_VAULT_ID"],Rbs=/^[A-Za-z0-9_-]+$/,zbs=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}),Nbs=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),_bs=/^pk_(live|test)_[A-Za-z0-9]+$/,Vbs=/^[A-Za-z0-9_.-]+$/,Hbs=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function Ubs(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!hCt(n.apiEndPoints)||!hCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(zbs.some((h=>i[h]==null))||Nbs.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(Pbs).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=Fbs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&Rbs.test(g)})),u=Obs.every((h=>{const g=l[h];return g==null||(function(f){if(arn(f))return!0;if(typeof f!="string")return!1;try{const x=new URL(f);return x.protocol==="https:"&&Mbs.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&_bs.test(l.STRIPE_KEY))&&Hbs.every((h=>{const g=l[h];return g==null||typeof g=="string"&&Vbs.test(g)}));return c&&d&&u&&p}function f5e(){try{window.localStorage.removeItem(qee)}catch{}}function Wbs(e){try{window.localStorage.setItem(qee,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(rrn)&&r!==qee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function srn(e){if(e==null||e==="")return null;try{const n=JSON.parse(son(e,lon+Ul));return Ubs(n)?n:null}catch{return null}}function mCt(e){return srn(e)!=null&&(Wbs(e),!0)}const gCt="zeni-chunk-reload-at",Qbs=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function fCt(e){try{const n=Number(sessionStorage.getItem(gCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(gCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let x5e=!1,xCt=null;const yCt="//js.hs-scripts.com/5991084.js",bCt="hs-script-loader",Ybs=Tr.getSignedInUser(),Gbs=Ybs?.zeniSessionId;function qbs(){const e=()=>{const n=Ks.sentryDsn?.trim();if(!n)return;const i=Ks.sentryProfileSamplingRate>0,r=Ul==="PROD";grn({dsn:n,environment:m7s,tracesSampleRate:Ks.sentryTraceSamplingRate,profilesSampleRate:i?Ks.sentryProfileSamplingRate:0,integrations:[frn(),...i?[xrn()]:[],...r?[yrn({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)}),brn("session-id",Gbs),(function(){if(NK==null)return;const s=NK;NK=void 0;try{if(window.sessionStorage.getItem(wCt)!=null)return;window.sessionStorage.setItem(wCt,s)}catch{}wrn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.2-qa-792909115"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function lrn(){Mcn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Orn,{children:on.jsx(Dbs,{})})})),qbs()}let NK;function U8e(e){NK=e}const wCt="zeni:env-keys-rejection-reported";function Kbs(){const e=(function(){try{const i=window.localStorage.getItem(qee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return f5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(f5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=srn(e);return n==null?(U8e("untrusted-or-unreadable"),f5e(),!1):(don(n),lrn(),!0)}var KC;window.addEventListener("vite:preloadError",(e=>{const n=e;fCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return Qbs.some((r=>i.includes(r)))})(e.reason)&&fCt(e.reason)})),(async function(){try{if(Kbs())return void(async function(){const i=await Vwt();typeof i=="string"&&i.length>0&&!mCt(i)&&U8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await Vwt(),n=son(e,lon+Ul);don(JSON.parse(n)),mCt(e)||U8e("network-untrusted-payload"),lrn()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):xCt!==null||(xCt=new Promise((e=>{if(x5e)return void e(!0);const n=()=>{x5e?e(!0):(x5e=!0,new Promise(((r,s)=>{if(document.getElementById(bCt))return void r();const l=document.createElement("script");l.id=bCt,l.src=yCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${yCt}`)),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://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;Lbs?(e=dCt,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()))})):uCt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):uCt(dCt)}))}})(),(KC=console.log)&&KC instanceof Function&&kd((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(KC),n(KC),i(KC),r(KC),s(KC)}));export{fe as $,cks as A,tks as B,uks as C,t6s as D,Kje as E,Al as F,se as G,o6s as H,gks as I,o as J,OAe as K,Eon as L,cm as M,JQi as N,Ul as O,rks as P,hbs as Q,Ni as R,D8s as S,oCt as T,AFt as U,Ln as V,i8s as W,Ks as X,T8s as Y,Kn as Z,u9s as _,zje as a,fvs as a$,UCs as a0,pfi as a1,oks as a2,WCs as a3,QCs as a4,C6s as a5,wAe as a6,gbs as a7,WGo as a8,R as a9,Cko as aA,L8s as aB,ACs as aC,vCs as aD,i5 as aE,uGt as aF,SCs as aG,h9s as aH,Gee as aI,X7s as aJ,bvs as aK,wvs as aL,n8s as aM,XCs as aN,sCs as aO,dCs as aP,qSe as aQ,nvs as aR,tvs as aS,cCs as aT,lCs as aU,t8s as aV,KMt as aW,RSs as aX,yvs as aY,gvs as aZ,xvs as a_,YCs as aa,PSs as ab,Gx as ac,P as ad,p9s as ae,ICs as af,u8s as ag,jCs as ah,I8s as ai,eks as aj,P8s as ak,V7s as al,Won as am,sks as an,W7s as ao,H7s as ap,lks as aq,b8s as ar,Tp as as,Oje as at,qwt as au,FAs as av,Kvs as aw,Ei as ax,oCs as ay,iCs as az,B6s as b,Ows as b$,E8s as b0,iks as b1,$8s as b2,eCs as b3,CCs as b4,Vi as b5,D_n as b6,$Cs as b7,k8o as b8,B8s as b9,A9s as bA,RAs as bB,aCs as bC,k9s as bD,j9s as bE,S9s as bF,gD as bG,evs as bH,wws as bI,vws as bJ,Cws as bK,xws as bL,fws as bM,Aws as bN,GCs as bO,yws as bP,bws as bQ,kws as bR,Ps as bS,vvs as bT,qCs as bU,Bws as bV,Tws as bW,GSs as bX,bCs as bY,VSs as bZ,Fws as b_,AEi as ba,LNt as bb,ZCs as bc,KCs as bd,JCs as be,l8s as bf,In as bg,ba as bh,Von as bi,Jx as bj,nks as bk,p6s as bl,y8s as bm,w8s as bn,Svs as bo,Rje as bp,b7s as bq,o8s as br,$Mi as bs,vBt as bt,M8s as bu,K7s as bv,Pws as bw,v9s as bx,$9s as by,Dve as bz,es as c,fCs as c$,qws as c0,Gws as c1,Xws as c2,Jws as c3,jws as c4,$ws as c5,kCs as c6,ECs as c7,Ews as c8,Iws as c9,HAs as cA,BSs as cB,GAs as cC,ESs as cD,eSs as cE,st as cF,YAs as cG,zi as cH,CSs as cI,qAs as cJ,XAs as cK,vSs as cL,uSs as cM,pSs as cN,hSs as cO,dSs as cP,mSs as cQ,cSs as cR,Cbs as cS,T9s as cT,tCs as cU,nCs as cV,zAs as cW,Lws as cX,JSs as cY,HSs as cZ,hCs as c_,Dws as ca,Zws as cb,Kws as cc,ISs as cd,$Ss as ce,KAs as cf,oSs as cg,ZAs as ch,VAs as ci,WAs as cj,ASs as ck,tSs as cl,xSs as cm,ySs as cn,fSs as co,QAs as cp,JAs as cq,LSs as cr,DSs as cs,TSs as ct,SSs as cu,nSs as cv,jSs as cw,kSs as cx,iSs as cy,gSs as cz,Abs as d,XSs as d$,mCs as d0,g9s as d1,uCs as d2,pCs as d3,CAe as d4,xCs as d5,wCs as d6,e0s as d7,p2s as d8,Nxe as d9,kvs as dA,Dvs as dB,Vvs as dC,I9s as dD,D9s as dE,Uvs as dF,Nvs as dG,zvs as dH,$vs as dI,_vs as dJ,Cvs as dK,J0a as dL,BAs as dM,OAs as dN,_As as dO,NAs as dP,MSs as dQ,Tss as dR,b9s as dS,NSs as dT,zSs as dU,yks as dV,nKi as dW,rCs as dX,Sdi as dY,JS as dZ,yen as d_,qSs as da,KSs as db,ZSs as dc,YSs as dd,c8s as de,Cqt as df,Fvs as dg,Ovs as dh,Pvs as di,Rvs as dj,Mvs as dk,USs as dl,Bvs as dm,Lvs as dn,Hvs as dp,jvs as dq,Ivs as dr,E9s as ds,gCs as dt,cr as du,nGr as dv,Evs as dw,Qon as dx,Avs as dy,Tvs as dz,Gje as e,xxo as e0,FSs as e1,Mws as e2,_Ss as e3,Dss as e4,DAs as e5,qvs as e6,Gvs as e7,Yvs as e8,D7s as e9,T7s as ea,ZR as eb,Z7s as ec,r6s as ed,mon as ee,h6s as ef,Qye as eg,Rin as eh,Fin as ei,y9s as ej,$7s as ek,I7s as el,E7s as em,g7s as en,S7s as eo,pon as ep,aks as eq,A3a as f,xks as g,fks as h,dks as i,Ut as j,Qm as k,mks as l,A as m,s8s as n,hks as o,CT as p,pks as q,f9s as r,x9s as s,gb as t,Vje as u,rci as v,Gon as w,i6s as x,yBi as y,Tr as z};
|