@zeniai/web-app-ui 5.4.7-dev → 5.4.7-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-D6HgzjWo.js → AccountMappingScreen-CL3fetXA.js} +1 -1
- package/dist/assets/{ActualMatchingMatchDetailScreen-DrT4wLj3.js → ActualMatchingMatchDetailScreen-LtkwBgoi.js} +1 -1
- package/dist/assets/{AddressRoutes-D7_KsY7f.js → AddressRoutes-BLWe8vSW.js} +1 -1
- package/dist/assets/{AddressScreen-yLBHCU8H.js → AddressScreen-B4KCPZ9-.js} +1 -1
- package/dist/assets/{AiCfoScreen-C95CmuT8.js → AiCfoScreen-BOvRjous.js} +1 -1
- package/dist/assets/{AppDrawer-wuSLq_GC.js → AppDrawer-BhSl8rV2.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-Cz4FnR8k.js → BillPayApprovalRoutes-BAqA1YZU.js} +1 -1
- package/dist/assets/{BillPayRoutes-lBcH3kG4.js → BillPayRoutes-Bz8DqQdE.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CNBsygLT.js → BusinessVerificationPageScreen-CaSHW9Ki.js} +1 -1
- package/dist/assets/{CardsAiCfoScreen-Dnj7L-Aq.js → CardsAiCfoScreen-C3VFs4U9.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-BebvufWC.js → ChargeCardRoutes-Biiw-2qs.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-CWQymYC0.js → CompanyPassportScreen-DFK56R6q.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-CTDny4hz.js → ConnectionAuthScreen-CQNQ7ew_.js} +1 -1
- package/dist/assets/{CustomerOnboardingAuthScreen-CIry93lh.js → CustomerOnboardingAuthScreen-CozKN4Dq.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-07XvuYSy.js → CustomerOnboardingRoutes-BHzocQW3.js} +1 -1
- package/dist/assets/{DashboardRoutes-DtOF4t57.js → DashboardRoutes-ZyDFhTFr.js} +1 -1
- package/dist/assets/{DefaultTenantHome-CweSG_GQ.js → DefaultTenantHome-CgcNc4cC.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-jf25UFiV.js → DomesticWireDetailScreen-Cdtjf4O3.js} +1 -1
- package/dist/assets/{DrawerScreen-5p-VaDVX.js → DrawerScreen-2O6C0q7t.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-CacM-JPm.js → EntityDetailRoutes-CUtCxwR8.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-Byqo8eZZ.js → ExpenseAutomationRoutes-vwwAql85.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-CCuIxuhc.js → FeaturePreviewScreen-BN3Utv8l.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-BLlIOZQ7.js → HubSpotOAuthCallbackScreen-DFmMK3N-.js} +1 -1
- package/dist/assets/{InvoicingRoutes-D2PWzI_4.js → InvoicingRoutes-BqVSxQZF.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-CaOpn3qT.js → MagicLinkRoutes-BBXT-8iZ.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-DiZU5_QE.js → MagicLinkSignInScreen-B019I8to.js} +1 -1
- package/dist/assets/{MobileAppDrawer-BixbLTmv.js → MobileAppDrawer-Bnn0AzP6.js} +1 -1
- package/dist/assets/{NotFoundScreen-BkN7W6JR.js → NotFoundScreen-o4k1oZs0.js} +1 -1
- package/dist/assets/{NotificationRoutes-BdD13Onr.js → NotificationRoutes-MW-AfAsG.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-NFsa-sgn.js → OAuthConsentScreen-D4oumjOA.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-Bm0J5IMo.js → PandLWithForecastRoutes-BBUaqqPN.js} +1 -1
- package/dist/assets/{PaymentLinkScreen-CVV3tuZg.js → PaymentLinkScreen-B1FuqiqS.js} +1 -1
- package/dist/assets/{PeopleRoutes-I7YtZIOQ.js → PeopleRoutes-BxNpp29N.js} +1 -1
- package/dist/assets/{PerformanceRoutes-Bh2GJMgS.js → PerformanceRoutes-Bxls-7nG.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-CMu1wr6r.js → QBOConnectionScreen-BcOfN44x.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-DPr_Xw2e.js → ReimbursementApprovalRoutes-nKkO8sDG.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-B-Gs9TwE.js → ReimbursementApprovalRuleDetailScreen-C8spW0I4.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-C5mKxHY0.js → ReimbursementRoutes-CbWWiC7R.js} +1 -1
- package/dist/assets/{ReportsRoutes-rLspO2bh.js → ReportsRoutes-D3z0M6Uh.js} +1 -1
- package/dist/assets/{RewardsRoutes-BAg5LFP3.js → RewardsRoutes-CxC7HLU2.js} +1 -1
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-CUlxxOT4.js → ScheduleDetailsPrepaidExpensesScreen-Bg6pEi23.js} +1 -1
- package/dist/assets/{ScreenRoutes-B27hAn5a.js → ScreenRoutes-BrcD1XL7.js} +2 -2
- package/dist/assets/{SettingsRoutes-BafV6BMK.js → SettingsRoutes-BkRV9bZk.js} +1 -1
- package/dist/assets/{SetupPagesScreen-CYo2TZ1p.js → SetupPagesScreen-CHmt8z0M.js} +1 -1
- package/dist/assets/{SignInScreen-CT-WoxFu.js → SignInScreen-C3SF8g1v.js} +1 -1
- package/dist/assets/{SignOutScreen-CUkfHzEK.js → SignOutScreen-BvBM0MiM.js} +1 -1
- package/dist/assets/{TaskListScreen-CNDqJnu1.js → TaskListScreen-DZOQifu0.js} +1 -1
- package/dist/assets/{TaskRoutes-BeXt3gMh.js → TaskRoutes-CKUKBff5.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-CSoIoyzR.js → TransactionDetailRoutes-mDSWWXnC.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-D3daFCwt.js → TransactionDetailScreen-BffoTiv1.js} +1 -1
- package/dist/assets/{TransactionListRoutes-Cp-cSB8W.js → TransactionListRoutes-BrSs0Qb8.js} +1 -1
- package/dist/assets/{TreasuryRoutes-DnPKaz7R.js → TreasuryRoutes-BnbLPEPo.js} +1 -1
- package/dist/assets/{VendorsRoutes-CY-uooJs.js → VendorsRoutes-ERyzYzp_.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-CdXrY5Nn.js → WiseConfirmationScreen-4XYLlDr6.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-CaWZaYnh.js → ZeniAccountRoutes-DWPnEswh.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-C3LaZbC9.js → ZeniAccountStatementScreen-CC738Wts.js} +1 -1
- package/dist/assets/{analyticsHelper-BNh1_jfv.js → analyticsHelper-IE74B_VH.js} +1 -1
- package/dist/assets/{getLocaleForTenant-D-baUPRb.js → getLocaleForTenant-D_p3Rwku.js} +1 -1
- package/dist/assets/{index-CtE8HnsY.js → index-CUowGd6j.js} +5 -5
- package/dist/assets/{routePaths-Dv28cYw1.js → routePaths-USkRO4rX.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-CZpCt66v.js → useActualMatchingMatchDetail-DMoInbsc.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-C7G9HKEb.js → useAiCfoDashboardSuggestedQuestionsChips-CpP4wg6i.js} +1 -1
- package/dist/assets/{useAskAiCfoHostNavButtonProps-JRFYPtx4.js → useAskAiCfoHostNavButtonProps-BOgkZ7Me.js} +1 -1
- package/dist/assets/{useChargeCardPusherEvents-D_qYIckD.js → useChargeCardPusherEvents-DBMEFK9o.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-aPg3qWb4.js → useEmailConnectResultRefresh-CgsUvyd8.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-gQdpW0fv.js → useInitialThreadRequest-DsCX_K0Z.js} +1 -1
- package/dist/assets/{useTaskManagerAccess-94Xv3cKO.js → useTaskManagerAccess-BqAgTSrE.js} +1 -1
- package/dist/assets/{useTaskManagerPusherEvents-CdVgZy4d.js → useTaskManagerPusherEvents-BUfOqW2k.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-DDzMeSLR.js → withTransactionSidePanel-B6C9XIXK.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-VmxO3Mnv.js","assets/sentry-BrSPpZKf.js","assets/core-Bc2mnalE.js","assets/index-DLaXtkBa.js","assets/DefaultTenantHome-
|
|
2
|
-
import{R as B,b as v5e,a as m,r as nm,g as RCt,p as oae,d as u$e,f as jrn,s as p$e,i as $rn,w as Ern,j as Irn,S as Drn,k as Trn,l as Lrn,m as Brn,n as Prn,o as Mrn,q as Orn}from"./sentry-BrSPpZKf.js";import{L as Frn,C as h$e,_ as Qp,a as Rrn,b as Wz,c as zrn,d as ete,e as Qz,u as zCt,T as Nrn,f as _rn,g as Vrn,h as Hrn,i as Urn,k as NCt,l as Wrn,m as Qrn,j as on}from"./liveblocks-CevUFagi.js";import{f as _Ct,r as $a,P as Fl,R as Yrn,O as Grn,N as VCt,u as Mp,g as Wg,h as tte,i as HCt,j as Nr,m as ewe,s as HK,k as UCt,l as qrn,n as Krn,o as q1,p as Zrn,B as Jrn}from"./core-Bc2mnalE.js";import{L as m$e,bl as Xrn,bm as ean,bn as Yz,bo as tan,bp as nan,bq as ws,br as qt,bs as kT,bt as WCt,bu as Q3,bv as ian,bw as y7,bx as Bs,by as oan,bz as ran,bA as nte,bB as aan,bC as _1,bD as Np,bE as TR,bF as M9,bG as hn,bH as QCt,bI as P1,bJ as ka,bK as AD,bL as YCt,bM as GCt,bN as twe,bO as Px,bP as Vu,bQ as Fy,bR as san,bS as jc,bT as lan,bU as jT,bV as can,bW as dan,bX as UK,bY as uan,bZ as pan,b_ as WK,b$ as han,c0 as man,c1 as O9,c2 as g$e,c3 as gan,c4 as fan,c5 as xan,c6 as yan,c7 as ban,c8 as wan,c9 as Can,ca as Ry,cb as ite,cc as Aan,cd as ote,ce as rte,cf as ate,cg as nwe,ch as Qv,ci as Yv,cj as Gz,ck as vD,cl as SD,cm as Gv,cn as ste,co as wv,cp as van,cq as f$e,cr as San,cs as kan,ct as jan,cu as $an,cv as qCt,cw as Ean,cx as Ian,cy as Aw,cz as x$e,cA as Dan,cB as Tan,cC as Lan,cD as ES,cE as IS,cF as KCt,cG as ZCt,cH as iwe,cI as Ban,cJ as JCt,cK as Pan,cL as QK,cM as XCt,cN as Man,cO as eAt,cP as Oan,cQ as lO,cR as Fan,cS as Ran,cT as y$e,cU as zan,cV as owe,cW as rwe,cX as Nan,cY as _an,cZ as Van,c_ as Han,c$ as z_,d0 as kD,d1 as N_,d2 as Uan,d3 as Wan,d4 as tAt,d5 as Qan,d6 as Yan,d7 as Gan,d8 as qan,d9 as Kan,da as nAt,db as b$e,dc as Zan,dd as awe,de as Jan,df as Xan,dg as esn,dh as iAt,di as nu,dj as Nl,dk as lte,dl as tsn,dm as nsn,dn as j1,dp as oAt,dq as isn,dr as LR,ds as Cv,dt as cs,du as w$e,dv as osn,dw as rsn,dx as asn,dy as rAt,dz as swe,dA as __,dB as aAt,dC as ssn,dD as lsn,dE as csn,dF as dsn,dG as usn,dH as xg,dI as psn,dJ as hsn,dK as msn,dL as gsn,dM as V_,dN as qv,dO as cte,dP as fsn,dQ as xsn,dR as DS,dS as M1,dT as sAt,dU as lAt,dV as ysn,dW as cAt,dX as bsn,dY as wsn,dZ as Csn,d_ as Asn,d$ as $T,e0 as lwe,e1 as cwe,e2 as vsn,e3 as dAt,e4 as uAt,e5 as pAt,e6 as hAt,e7 as mAt,e8 as gAt,e9 as Ssn,_ as jd,ea as ET,eb as ksn,ec as C$e,ed as dte,ee as jsn,ef as $sn,eg as fAt,eh as Esn,ei as cF,ej as um,ek as zy,el as xAt,em as yAt,en as Isn,eo as bAt,ep as S5e,eq as Dsn,er as dq,es as Tsn,et as Lsn,eu as Bsn,ev as Psn,ew as Msn,ex as wAt,ey as CAt,ez as Osn,eA as Fsn,eB as AAt,eC as dF,eD as uF,eE as vAt,eF as Rsn,eG as zsn,eH as dwe,eI as Nsn,eJ as _sn,eK as Vsn,eL as uwe,eM as SAt,eN as kAt,eO as pwe,eP as IT,eQ as ute,eR as hwe,eS as mwe,eT as gwe,eU as fwe,eV as Hsn,eW as Usn,eX as jAt,eY as A$e,eZ as Wsn,e_ as Qsn,e$ as O1,f0 as Ysn,f1 as pte,f2 as $At,f3 as EAt,f4 as Gsn,f5 as xwe,f6 as ywe,f7 as qsn,f8 as Ksn,f9 as Zsn,fa as Jsn,fb as Xsn,fc as eln,fd as Lg,fe as v$e,ff as IAt,fg as tln,fh as nln,fi as iln,fj as DAt,fk as TAt,fl as LAt,fm as BAt,fn as PAt,fo as MAt,fp as oln,fq as jD,fr as rln,fs as aln,ft as sln,fu as lln,fv as OAt,fw as FAt,fx as S$e,fy as k$e,fz as cln,fA as dln,fB as j$e,fC as $$e,fD as uln,fE as pln,fF as k5e,fG as hln,v as mln,fH as hte,fI as _p,fJ as RAt,fK as zAt,fL as gln,fM as fln,fN as E$e,fO as xln,fP as yln,fQ as bln,fR as wln,fS as Cln,fT as Aln,fU as vln,fV as Sln,fW as kln,fX as jln,fY as $ln,fZ as Eln,f_ as Iln,f$ as Dln,g0 as Tln,g1 as Lln,g2 as Bln,g3 as Pln,g4 as Mln,g5 as I$e,g6 as Oln,g7 as Fln,g8 as Rln,g9 as zln,ga as Nln,gb as NAt,gc as mte,gd as bwe,ge as _At,gf as _ln,gg as Vln,gh as Hln,gi as VAt,gj as D$e,gk as HAt,gl as UAt,gm as Uln,gn as WAt,go as QAt,gp as Wln,gq as Qln,gr as j5e,gs as Yln,gt as pF,gu as Gln,gv as qln,gw as Kln,gx as Zln,gy as Jln,gz as Xln,gA as ecn,gB as tcn,gC as ncn,gD as icn,gE as ocn,gF as rcn,gG as YAt,gH as acn,gI as scn,gJ as lcn,gK as T$e,gL as ccn,gM as dcn,gN as ucn,gO as pcn,gP as hcn,gQ as mcn,gR as gcn,gS as GAt,gT as qAt,gU as fcn,gV as KAt,gW as xcn,gX as ycn,gY as $5e,gZ as bcn,g_ as wcn,g$ as Ccn,h0 as Acn,h1 as vcn,h2 as Scn,h3 as L$e,h4 as kcn,h5 as jcn,h6 as $cn}from"./zeni-epic-state-VmxO3Mnv.js";import{j as Mo,c as Ie,k as mi,a as B$e,b as ZAt,C as JAt,T as Ecn,M as Icn,n as a,u as Be,d as li,e as XAt,G as gte,A as P$e,R as Dcn,D as Zc,F as Tcn,f as YK,g as E5e,P as Y3,h as Lcn,S as fte,i as Bcn,l as Pcn,m as BR,o as Mcn,s as TS,p as Ocn}from"./mui-CUsYvTMG.js";import{r as Fcn,m as cg}from"./analytics-D7SbUCRL.js";import{u as U1}from"./plaid-Dxz6lSJz.js";import{D as wwe,H as xte,g as Rcn,O as zcn,S as Ncn,T as _cn,u as Cwe,a as Awe,b as Vcn}from"./dnd-B0zyAl0s.js";import{l as vwe}from"./stripe-cKAAJElX.js";import{L as MI}from"./lottie-Dhd_0CJG.js";import{r as Jc}from"./lexical-CCch0Fzo.js";import{D as I5e,P as D5e,_ as evt,a as tvt}from"./pdf-CuegwamZ.js";import{R as Kv,G as F9,H as ml,X as Ra,Y as ja,I as jl,J as R9,K as zg,L as Av,M as Wc,N as Ng,O as nvt,P as Hcn,Q as Ucn,S as yte,U as Wcn,V as Swe,W as Qcn,Z as Ycn,_ as Gcn,d as qcn}from"./recharts-BjkXpBn6.js";import{r as Kcn,n as M$e}from"./utils-BKSIhN7N.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]="38ebc574-fa7a-4476-ba71-e98323cb74a3",e._sentryDebugIdIdentifier="sentry-dbid-38ebc574-fa7a-4476-ba71-e98323cb74a3")}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 O$e,H_={},Zcn=(function(){if(O$e)return H_;O$e=1;var e=_Ct();return H_.createRoot=e.createRoot,H_.hydrateRoot=e.hydrateRoot,H_})(),Uh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof v5e<"u"?v5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F$e,R$e,z$e={exports:{}},FL={};function ivt(){return R$e||(R$e=1,z$e.exports=(function(){if(F$e)return FL;F$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 FL.Fragment=i,FL.jsx=c,FL.jsxs=c,FL})()),z$e.exports}var t=ivt();const Jcn=m.createContext(null),rae={didCatch:!1,error:null};let Xcn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=rae}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(rae)}}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(rae))}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(Jcn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var N$e,_$e,V$e,aae,H$e,U$e,W$e,Q$e,Y$e,sae={exports:{}};function edn(){return N$e||(N$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(sae.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,Ae=G.length;for(pe=0;pe<Ae;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 Ae,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ae);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):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,A="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(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 A+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ae,Ee,Re,Qe,Ye,Rt,Jt;switch(Ye=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,Ae=Jt,Ee=Ye;break;case 1:xe=Rt,Ae=pe,Ee=Ye;break;case 2:xe=Ye,Ae=pe,Ee=Jt;break;case 3:xe=Ye,Ae=Rt,Ee=pe;break;case 4:xe=Jt,Ae=Ye,Ee=pe;break;case 5:xe=pe,Ae=Ye,Ee=Rt}return[xe,Ae,Ee]}function W(G,X,pe){var xe,Ae=Math.max(G,X,pe),Ee=Math.min(G,X,pe),Re=Ae-Ee,Qe=Ae===0?0:Re/Ae,Ye=Ae/255;switch(Ae){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,Ye]}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){A=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=[],Ae={onmessage:function(){},postMessage:function(pt){G({data:pt})}},Ee={postMessage:function(pt){Ae.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var At=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(At);return new Worker(Tt)}return G=pt,Ae}function Qe(){X||(X=Re((function(pt){function At(){function Kt(Vt,xn){var xt,dt,ze,ht,wt,xi,Zo=Vt.length;for(dt=0;dt<Zo;dt+=1)if("ks"in(xt=Vt[dt])&&!xt.completed){if(xt.completed=!0,xt.hasMask){var Po=xt.masksProperties;for(ht=Po.length,ze=0;ze<ht;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(xi=Po[ze].pt.k.length,wt=0;wt<xi;wt+=1)Po[ze].pt.k[wt].s&&qe(Po[ze].pt.k[wt].s[0]),Po[ze].pt.k[wt].e&&qe(Po[ze].pt.k[wt].e[0])}xt.ty===0?(xt.layers=We(xt.refId,xn),Kt(xt.layers,xn)):xt.ty===4?Ne(xt.shapes):xt.ty===5&&Ko(xt)}}function en(Vt,xn){if(Vt){var xt=0,dt=Vt.length;for(xt=0;xt<dt;xt+=1)Vt[xt].t===1&&(Vt[xt].data.layers=We(Vt[xt].data.refId,xn),Kt(Vt[xt].data.layers,xn))}}function Xe(Vt,xn){for(var xt=0,dt=xn.length;xt<dt;){if(xn[xt].id===Vt)return xn[xt];xt+=1}return null}function We(Vt,xn){var xt=Xe(Vt,xn);return xt?xt.layers.__used?JSON.parse(JSON.stringify(xt.layers)):(xt.layers.__used=!0,xt.layers):null}function Ne(Vt){var xn,xt,dt;for(xn=Vt.length-1;xn>=0;xn-=1)if(Vt[xn].ty==="sh")if(Vt[xn].ks.k.i)qe(Vt[xn].ks.k);else for(dt=Vt[xn].ks.k.length,xt=0;xt<dt;xt+=1)Vt[xn].ks.k[xt].s&&qe(Vt[xn].ks.k[xt].s[0]),Vt[xn].ks.k[xt].e&&qe(Vt[xn].ks.k[xt].e[0]);else Vt[xn].ty==="gr"&&Ne(Vt[xn].it)}function qe(Vt){var xn,xt=Vt.i.length;for(xn=0;xn<xt;xn+=1)Vt.i[xn][0]+=Vt.v[xn][0],Vt.i[xn][1]+=Vt.v[xn][1],Vt.o[xn][0]+=Vt.v[xn][0],Vt.o[xn][1]+=Vt.v[xn][1]}function ft(Vt,xn){var xt=xn?xn.split("."):[100,100,100];return Vt[0]>xt[0]||!(xt[0]>Vt[0])&&(Vt[1]>xt[1]||!(xt[1]>Vt[1])&&(Vt[2]>xt[2]||!(xt[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function xn(dt){var ze=dt.t.d;dt.t.d={k:[{s:ze,t:0}]}}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(xn){if(xn.chars&&!ft(Vt,xn.v)){var xt,dt=xn.chars.length;for(xt=0;xt<dt;xt+=1){var ze=xn.chars[xt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[xt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),zt=(function(){var Vt=[5,7,15];function xn(dt){var ze=dt.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function xn(dt){var ze,ht,wt,xi=dt.length;for(ze=0;ze<xi;ze+=1)if(dt[ze].ty==="gr")xn(dt[ze].it);else if(dt[ze].ty==="fl"||dt[ze].ty==="st")if(dt[ze].c.k&&dt[ze].c.k[0].i)for(wt=dt[ze].c.k.length,ht=0;ht<wt;ht+=1)dt[ze].c.k[ht].s&&(dt[ze].c.k[ht].s[0]/=255,dt[ze].c.k[ht].s[1]/=255,dt[ze].c.k[ht].s[2]/=255,dt[ze].c.k[ht].s[3]/=255),dt[ze].c.k[ht].e&&(dt[ze].c.k[ht].e[0]/=255,dt[ze].c.k[ht].e[1]/=255,dt[ze].c.k[ht].e[2]/=255,dt[ze].c.k[ht].e[3]/=255);else dt[ze].c.k[0]/=255,dt[ze].c.k[1]/=255,dt[ze].c.k[2]/=255,dt[ze].c.k[3]/=255}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===4&&xn(dt[ze].shapes)}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function xn(dt){var ze,ht,wt;for(ze=dt.length-1;ze>=0;ze-=1)if(dt[ze].ty==="sh")if(dt[ze].ks.k.i)dt[ze].ks.k.c=dt[ze].closed;else for(wt=dt[ze].ks.k.length,ht=0;ht<wt;ht+=1)dt[ze].ks.k[ht].s&&(dt[ze].ks.k[ht].s[0].c=dt[ze].closed),dt[ze].ks.k[ht].e&&(dt[ze].ks.k[ht].e[0].c=dt[ze].closed);else dt[ze].ty==="gr"&&xn(dt[ze].it)}function xt(dt){var ze,ht,wt,xi,Zo,Po,Ca=dt.length;for(ht=0;ht<Ca;ht+=1){if((ze=dt[ht]).hasMask){var Jo=ze.masksProperties;for(xi=Jo.length,wt=0;wt<xi;wt+=1)if(Jo[wt].pt.k.i)Jo[wt].pt.k.c=Jo[wt].cl;else for(Po=Jo[wt].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[wt].pt.k[Zo].s&&(Jo[wt].pt.k[Zo].s[0].c=Jo[wt].cl),Jo[wt].pt.k[Zo].e&&(Jo[wt].pt.k[Zo].e[0].c=Jo[wt].cl)}ze.ty===4&&xn(ze.shapes)}}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})();function ci(Vt){Vt.__complete||(po(Vt),rn(Vt),sn(Vt),zt(Vt),Eo(Vt),Kt(Vt.layers,Vt.assets),en(Vt.chars,Vt.assets),Vt.__complete=!0)}function Ko(Vt){Vt.t.a.length===0&&Vt.t.p}var lo={};return lo.completeData=ci,lo.checkColors=po,lo.checkChars=sn,lo.checkPathProperties=zt,lo.checkShapes=Eo,lo.completeLayers=Kt,lo}if(Ee.dataManager||(Ee.dataManager=At()),Ee.assetLoader||(Ee.assetLoader=(function(){function Kt(Xe){var We=Xe.getResponseHeader("content-type");return We&&Xe.responseType==="json"&&We.indexOf("json")!==-1||Xe.response&&ge(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function en(Xe,We,Ne,qe){var ft,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)ft=Kt(rn),Ne(ft);else try{ft=Kt(rn),Ne(ft)}catch(sn){qe&&qe(sn)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),We+"/"+Xe,!0)}rn.send()}return{load:en}})()),pt.data.type==="loadAnimation")Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.dataManager.completeData(Kt),Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}));else if(pt.data.type==="complete"){var Tt=pt.data.animation;Ee.dataManager.completeData(Tt),Ee.postMessage({id:pt.data.id,payload:Tt,status:"success"})}else pt.data.type==="loadData"&&Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}))})),X.onmessage=function(pt){var At=pt.data,Tt=At.id,Kt=xe[Tt];xe[Tt]=null,At.status==="success"?Kt.onComplete(At.payload):Kt.onError&&Kt.onError()})}function Ye(pt,At){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:At},Tt}function Rt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:Rt,loadData:Jt,completeAnimation:et}})(),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 ft=Xe.p;ft.indexOf("images/")!==-1&&(ft=ft.split("/")[1]),qe=We+ft}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ae(Xe){var We=0,Ne=setInterval((function(){(Xe.getBBox().width||We>500)&&(this._imageLoaded(),clearInterval(Ne)),We+=1}).bind(this),50)}function Ee(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=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 Ye(Xe,We){this.imagesLoadedCb=We;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Rt(Xe){this.path=Xe||""}function Jt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var We=0,Ne=this.images.length;We<Ne;){if(this.images[We].assetData===Xe)return this.images[We].img;We+=1}return null}function pt(){this.imagesLoadedCb=null,this.images.length=0}function At(){return this.totalImages===this.loadedAssets}function Tt(){return this.totalFootages===this.loadedFootagesCount}function Kt(Xe,We){Xe==="svg"?(this._elementHelper=We,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function en(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return en.prototype={loadAssets:Ye,setAssetsPath:Jt,setPath:Rt,loadedImages:At,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(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-VmxO3Mnv.js","assets/sentry-BrSPpZKf.js","assets/core-Bc2mnalE.js","assets/index-DLaXtkBa.js","assets/DefaultTenantHome-CgcNc4cC.js","assets/mui-CUsYvTMG.js","assets/getLocaleForTenant-D_p3Rwku.js","assets/analytics-D7SbUCRL.js","assets/utils-BKSIhN7N.js","assets/AppDrawer-BhSl8rV2.js","assets/InboxNotificationsProvider-yzTJ7wEQ.js","assets/useTaskManagerAccess-BqAgTSrE.js","assets/expenseAutomationHelper-6llqwO2d.js","assets/ScreenRoutes-BrcD1XL7.js","assets/analyticsHelper-IE74B_VH.js","assets/ConnectionAuthScreen-CQNQ7ew_.js","assets/AccountMappingScreen-CL3fetXA.js","assets/MobileAppDrawer-Bnn0AzP6.js","assets/QBOConnectionScreen-BcOfN44x.js","assets/empty-Nco5SaTV.js","assets/index-CyFWesiE.js","assets/url-2Ybk2sxg.js","assets/index-Dv6pUA2Y.js","assets/decodeURIComponentSafe-addd21BI.js","assets/accountMappingHelper-HDztJioo.js","assets/SignInScreen-C3SF8g1v.js","assets/useDeviceId-7gkngZ73.js","assets/MagicLinkSignInScreen-B019I8to.js","assets/NotFoundScreen-o4k1oZs0.js","assets/MagicLinkRoutes-BBXT-8iZ.js","assets/PaymentLinkScreen-B1FuqiqS.js","assets/WiseConfirmationScreen-4XYLlDr6.js","assets/HubSpotOAuthCallbackScreen-DFmMK3N-.js","assets/CustomerOnboardingAuthScreen-CozKN4Dq.js","assets/SignOutScreen-BvBM0MiM.js","assets/OAuthConsentScreen-D4oumjOA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as B,b as v5e,a as m,r as nm,g as RCt,p as oae,d as u$e,f as jrn,s as p$e,i as $rn,w as Ern,j as Irn,S as Drn,k as Trn,l as Lrn,m as Brn,n as Prn,o as Mrn,q as Orn}from"./sentry-BrSPpZKf.js";import{L as Frn,C as h$e,_ as Qp,a as Rrn,b as Wz,c as zrn,d as ete,e as Qz,u as zCt,T as Nrn,f as _rn,g as Vrn,h as Hrn,i as Urn,k as NCt,l as Wrn,m as Qrn,j as on}from"./liveblocks-CevUFagi.js";import{f as _Ct,r as $a,P as Fl,R as Yrn,O as Grn,N as VCt,u as Mp,g as Wg,h as tte,i as HCt,j as Nr,m as ewe,s as HK,k as UCt,l as qrn,n as Krn,o as q1,p as Zrn,B as Jrn}from"./core-Bc2mnalE.js";import{L as m$e,bl as Xrn,bm as ean,bn as Yz,bo as tan,bp as nan,bq as ws,br as qt,bs as kT,bt as WCt,bu as Q3,bv as ian,bw as y7,bx as Bs,by as oan,bz as ran,bA as nte,bB as aan,bC as _1,bD as Np,bE as TR,bF as M9,bG as hn,bH as QCt,bI as P1,bJ as ka,bK as AD,bL as YCt,bM as GCt,bN as twe,bO as Px,bP as Vu,bQ as Fy,bR as san,bS as jc,bT as lan,bU as jT,bV as can,bW as dan,bX as UK,bY as uan,bZ as pan,b_ as WK,b$ as han,c0 as man,c1 as O9,c2 as g$e,c3 as gan,c4 as fan,c5 as xan,c6 as yan,c7 as ban,c8 as wan,c9 as Can,ca as Ry,cb as ite,cc as Aan,cd as ote,ce as rte,cf as ate,cg as nwe,ch as Qv,ci as Yv,cj as Gz,ck as vD,cl as SD,cm as Gv,cn as ste,co as wv,cp as van,cq as f$e,cr as San,cs as kan,ct as jan,cu as $an,cv as qCt,cw as Ean,cx as Ian,cy as Aw,cz as x$e,cA as Dan,cB as Tan,cC as Lan,cD as ES,cE as IS,cF as KCt,cG as ZCt,cH as iwe,cI as Ban,cJ as JCt,cK as Pan,cL as QK,cM as XCt,cN as Man,cO as eAt,cP as Oan,cQ as lO,cR as Fan,cS as Ran,cT as y$e,cU as zan,cV as owe,cW as rwe,cX as Nan,cY as _an,cZ as Van,c_ as Han,c$ as z_,d0 as kD,d1 as N_,d2 as Uan,d3 as Wan,d4 as tAt,d5 as Qan,d6 as Yan,d7 as Gan,d8 as qan,d9 as Kan,da as nAt,db as b$e,dc as Zan,dd as awe,de as Jan,df as Xan,dg as esn,dh as iAt,di as nu,dj as Nl,dk as lte,dl as tsn,dm as nsn,dn as j1,dp as oAt,dq as isn,dr as LR,ds as Cv,dt as cs,du as w$e,dv as osn,dw as rsn,dx as asn,dy as rAt,dz as swe,dA as __,dB as aAt,dC as ssn,dD as lsn,dE as csn,dF as dsn,dG as usn,dH as xg,dI as psn,dJ as hsn,dK as msn,dL as gsn,dM as V_,dN as qv,dO as cte,dP as fsn,dQ as xsn,dR as DS,dS as M1,dT as sAt,dU as lAt,dV as ysn,dW as cAt,dX as bsn,dY as wsn,dZ as Csn,d_ as Asn,d$ as $T,e0 as lwe,e1 as cwe,e2 as vsn,e3 as dAt,e4 as uAt,e5 as pAt,e6 as hAt,e7 as mAt,e8 as gAt,e9 as Ssn,_ as jd,ea as ET,eb as ksn,ec as C$e,ed as dte,ee as jsn,ef as $sn,eg as fAt,eh as Esn,ei as cF,ej as um,ek as zy,el as xAt,em as yAt,en as Isn,eo as bAt,ep as S5e,eq as Dsn,er as dq,es as Tsn,et as Lsn,eu as Bsn,ev as Psn,ew as Msn,ex as wAt,ey as CAt,ez as Osn,eA as Fsn,eB as AAt,eC as dF,eD as uF,eE as vAt,eF as Rsn,eG as zsn,eH as dwe,eI as Nsn,eJ as _sn,eK as Vsn,eL as uwe,eM as SAt,eN as kAt,eO as pwe,eP as IT,eQ as ute,eR as hwe,eS as mwe,eT as gwe,eU as fwe,eV as Hsn,eW as Usn,eX as jAt,eY as A$e,eZ as Wsn,e_ as Qsn,e$ as O1,f0 as Ysn,f1 as pte,f2 as $At,f3 as EAt,f4 as Gsn,f5 as xwe,f6 as ywe,f7 as qsn,f8 as Ksn,f9 as Zsn,fa as Jsn,fb as Xsn,fc as eln,fd as Lg,fe as v$e,ff as IAt,fg as tln,fh as nln,fi as iln,fj as DAt,fk as TAt,fl as LAt,fm as BAt,fn as PAt,fo as MAt,fp as oln,fq as jD,fr as rln,fs as aln,ft as sln,fu as lln,fv as OAt,fw as FAt,fx as S$e,fy as k$e,fz as cln,fA as dln,fB as j$e,fC as $$e,fD as uln,fE as pln,fF as k5e,fG as hln,v as mln,fH as hte,fI as _p,fJ as RAt,fK as zAt,fL as gln,fM as fln,fN as E$e,fO as xln,fP as yln,fQ as bln,fR as wln,fS as Cln,fT as Aln,fU as vln,fV as Sln,fW as kln,fX as jln,fY as $ln,fZ as Eln,f_ as Iln,f$ as Dln,g0 as Tln,g1 as Lln,g2 as Bln,g3 as Pln,g4 as Mln,g5 as I$e,g6 as Oln,g7 as Fln,g8 as Rln,g9 as zln,ga as Nln,gb as NAt,gc as mte,gd as bwe,ge as _At,gf as _ln,gg as Vln,gh as Hln,gi as VAt,gj as D$e,gk as HAt,gl as UAt,gm as Uln,gn as WAt,go as QAt,gp as Wln,gq as Qln,gr as j5e,gs as Yln,gt as pF,gu as Gln,gv as qln,gw as Kln,gx as Zln,gy as Jln,gz as Xln,gA as ecn,gB as tcn,gC as ncn,gD as icn,gE as ocn,gF as rcn,gG as YAt,gH as acn,gI as scn,gJ as lcn,gK as T$e,gL as ccn,gM as dcn,gN as ucn,gO as pcn,gP as hcn,gQ as mcn,gR as gcn,gS as GAt,gT as qAt,gU as fcn,gV as KAt,gW as xcn,gX as ycn,gY as $5e,gZ as bcn,g_ as wcn,g$ as Ccn,h0 as Acn,h1 as vcn,h2 as Scn,h3 as L$e,h4 as kcn,h5 as jcn,h6 as $cn}from"./zeni-epic-state-VmxO3Mnv.js";import{j as Mo,c as Ie,k as mi,a as B$e,b as ZAt,C as JAt,T as Ecn,M as Icn,n as a,u as Be,d as li,e as XAt,G as gte,A as P$e,R as Dcn,D as Zc,F as Tcn,f as YK,g as E5e,P as Y3,h as Lcn,S as fte,i as Bcn,l as Pcn,m as BR,o as Mcn,s as TS,p as Ocn}from"./mui-CUsYvTMG.js";import{r as Fcn,m as cg}from"./analytics-D7SbUCRL.js";import{u as U1}from"./plaid-Dxz6lSJz.js";import{D as wwe,H as xte,g as Rcn,O as zcn,S as Ncn,T as _cn,u as Cwe,a as Awe,b as Vcn}from"./dnd-B0zyAl0s.js";import{l as vwe}from"./stripe-cKAAJElX.js";import{L as MI}from"./lottie-Dhd_0CJG.js";import{r as Jc}from"./lexical-CCch0Fzo.js";import{D as I5e,P as D5e,_ as evt,a as tvt}from"./pdf-CuegwamZ.js";import{R as Kv,G as F9,H as ml,X as Ra,Y as ja,I as jl,J as R9,K as zg,L as Av,M as Wc,N as Ng,O as nvt,P as Hcn,Q as Ucn,S as yte,U as Wcn,V as Swe,W as Qcn,Z as Ycn,_ as Gcn,d as qcn}from"./recharts-BjkXpBn6.js";import{r as Kcn,n as M$e}from"./utils-BKSIhN7N.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]="8abfa17e-c348-4046-bd46-0796e4308a03",e._sentryDebugIdIdentifier="sentry-dbid-8abfa17e-c348-4046-bd46-0796e4308a03")}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 O$e,H_={},Zcn=(function(){if(O$e)return H_;O$e=1;var e=_Ct();return H_.createRoot=e.createRoot,H_.hydrateRoot=e.hydrateRoot,H_})(),Uh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof v5e<"u"?v5e:typeof self<"u"?self:{};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F$e,R$e,z$e={exports:{}},FL={};function ivt(){return R$e||(R$e=1,z$e.exports=(function(){if(F$e)return FL;F$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 FL.Fragment=i,FL.jsx=c,FL.jsxs=c,FL})()),z$e.exports}var t=ivt();const Jcn=m.createContext(null),rae={didCatch:!1,error:null};let Xcn=class extends m.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=rae}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(rae)}}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(rae))}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(Jcn.Provider,{value:{didCatch:s,error:l,resetErrorBoundary:this.resetErrorBoundary}},c)}};var N$e,_$e,V$e,aae,H$e,U$e,W$e,Q$e,Y$e,sae={exports:{}};function edn(){return N$e||(N$e=1,(function(e,n){typeof document<"u"&&typeof navigator<"u"&&(sae.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,Ae=G.length;for(pe=0;pe<Ae;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 Ae,Ee=0,Re=[];switch(pe){case"int16":case"uint8c":Ae=1;break;default:Ae=1.1}for(Ee=0;Ee<xe;Ee+=1)Re.push(Ae);return Re}function X(pe,xe){return pe==="float32"?new Float32Array(xe):pe==="int16"?new Int16Array(xe):pe==="uint8c"?new Uint8ClampedArray(xe):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,A="",S=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k=Math.pow,$=Math.sqrt,j=Math.floor,I=Math.min,E=150,D=Math.PI/180,L=.5519;function F(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 A+"__lottie_element_"+(G+=1)}})();function V(G,X,pe){var xe,Ae,Ee,Re,Qe,Ye,Rt,Jt;switch(Ye=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,Ae=Jt,Ee=Ye;break;case 1:xe=Rt,Ae=pe,Ee=Ye;break;case 2:xe=Ye,Ae=pe,Ee=Jt;break;case 3:xe=Ye,Ae=Rt,Ee=pe;break;case 4:xe=Jt,Ae=Ye,Ee=pe;break;case 5:xe=pe,Ae=Ye,Ee=Rt}return[xe,Ae,Ee]}function W(G,X,pe){var xe,Ae=Math.max(G,X,pe),Ee=Math.min(G,X,pe),Re=Ae-Ee,Qe=Ae===0?0:Re/Ae,Ye=Ae/255;switch(Ae){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,Ye]}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){A=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=[],Ae={onmessage:function(){},postMessage:function(pt){G({data:pt})}},Ee={postMessage:function(pt){Ae.onmessage({data:pt})}};function Re(pt){if(window.Worker&&window.Blob&&d()){var At=new Blob(["var _workerSelf = self; self.onmessage = ",pt.toString()],{type:"text/javascript"}),Tt=URL.createObjectURL(At);return new Worker(Tt)}return G=pt,Ae}function Qe(){X||(X=Re((function(pt){function At(){function Kt(Vt,xn){var xt,dt,ze,ht,wt,xi,Zo=Vt.length;for(dt=0;dt<Zo;dt+=1)if("ks"in(xt=Vt[dt])&&!xt.completed){if(xt.completed=!0,xt.hasMask){var Po=xt.masksProperties;for(ht=Po.length,ze=0;ze<ht;ze+=1)if(Po[ze].pt.k.i)qe(Po[ze].pt.k);else for(xi=Po[ze].pt.k.length,wt=0;wt<xi;wt+=1)Po[ze].pt.k[wt].s&&qe(Po[ze].pt.k[wt].s[0]),Po[ze].pt.k[wt].e&&qe(Po[ze].pt.k[wt].e[0])}xt.ty===0?(xt.layers=We(xt.refId,xn),Kt(xt.layers,xn)):xt.ty===4?Ne(xt.shapes):xt.ty===5&&Ko(xt)}}function en(Vt,xn){if(Vt){var xt=0,dt=Vt.length;for(xt=0;xt<dt;xt+=1)Vt[xt].t===1&&(Vt[xt].data.layers=We(Vt[xt].data.refId,xn),Kt(Vt[xt].data.layers,xn))}}function Xe(Vt,xn){for(var xt=0,dt=xn.length;xt<dt;){if(xn[xt].id===Vt)return xn[xt];xt+=1}return null}function We(Vt,xn){var xt=Xe(Vt,xn);return xt?xt.layers.__used?JSON.parse(JSON.stringify(xt.layers)):(xt.layers.__used=!0,xt.layers):null}function Ne(Vt){var xn,xt,dt;for(xn=Vt.length-1;xn>=0;xn-=1)if(Vt[xn].ty==="sh")if(Vt[xn].ks.k.i)qe(Vt[xn].ks.k);else for(dt=Vt[xn].ks.k.length,xt=0;xt<dt;xt+=1)Vt[xn].ks.k[xt].s&&qe(Vt[xn].ks.k[xt].s[0]),Vt[xn].ks.k[xt].e&&qe(Vt[xn].ks.k[xt].e[0]);else Vt[xn].ty==="gr"&&Ne(Vt[xn].it)}function qe(Vt){var xn,xt=Vt.i.length;for(xn=0;xn<xt;xn+=1)Vt.i[xn][0]+=Vt.v[xn][0],Vt.i[xn][1]+=Vt.v[xn][1],Vt.o[xn][0]+=Vt.v[xn][0],Vt.o[xn][1]+=Vt.v[xn][1]}function ft(Vt,xn){var xt=xn?xn.split("."):[100,100,100];return Vt[0]>xt[0]||!(xt[0]>Vt[0])&&(Vt[1]>xt[1]||!(xt[1]>Vt[1])&&(Vt[2]>xt[2]||!(xt[2]>Vt[2])&&null))}var rn=(function(){var Vt=[4,4,14];function xn(dt){var ze=dt.t.d;dt.t.d={k:[{s:ze,t:0}]}}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),sn=(function(){var Vt=[4,7,99];return function(xn){if(xn.chars&&!ft(Vt,xn.v)){var xt,dt=xn.chars.length;for(xt=0;xt<dt;xt+=1){var ze=xn.chars[xt];ze.data&&ze.data.shapes&&(Ne(ze.data.shapes),ze.data.ip=0,ze.data.op=99999,ze.data.st=0,ze.data.sr=1,ze.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xn.chars[xt].t||(ze.data.shapes.push({ty:"no"}),ze.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),zt=(function(){var Vt=[5,7,15];function xn(dt){var ze=dt.t.p;typeof ze.a=="number"&&(ze.a={a:0,k:ze.a}),typeof ze.p=="number"&&(ze.p={a:0,k:ze.p}),typeof ze.r=="number"&&(ze.r={a:0,k:ze.r})}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===5&&xn(dt[ze])}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),po=(function(){var Vt=[4,1,9];function xn(dt){var ze,ht,wt,xi=dt.length;for(ze=0;ze<xi;ze+=1)if(dt[ze].ty==="gr")xn(dt[ze].it);else if(dt[ze].ty==="fl"||dt[ze].ty==="st")if(dt[ze].c.k&&dt[ze].c.k[0].i)for(wt=dt[ze].c.k.length,ht=0;ht<wt;ht+=1)dt[ze].c.k[ht].s&&(dt[ze].c.k[ht].s[0]/=255,dt[ze].c.k[ht].s[1]/=255,dt[ze].c.k[ht].s[2]/=255,dt[ze].c.k[ht].s[3]/=255),dt[ze].c.k[ht].e&&(dt[ze].c.k[ht].e[0]/=255,dt[ze].c.k[ht].e[1]/=255,dt[ze].c.k[ht].e[2]/=255,dt[ze].c.k[ht].e[3]/=255);else dt[ze].c.k[0]/=255,dt[ze].c.k[1]/=255,dt[ze].c.k[2]/=255,dt[ze].c.k[3]/=255}function xt(dt){var ze,ht=dt.length;for(ze=0;ze<ht;ze+=1)dt[ze].ty===4&&xn(dt[ze].shapes)}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})(),Eo=(function(){var Vt=[4,4,18];function xn(dt){var ze,ht,wt;for(ze=dt.length-1;ze>=0;ze-=1)if(dt[ze].ty==="sh")if(dt[ze].ks.k.i)dt[ze].ks.k.c=dt[ze].closed;else for(wt=dt[ze].ks.k.length,ht=0;ht<wt;ht+=1)dt[ze].ks.k[ht].s&&(dt[ze].ks.k[ht].s[0].c=dt[ze].closed),dt[ze].ks.k[ht].e&&(dt[ze].ks.k[ht].e[0].c=dt[ze].closed);else dt[ze].ty==="gr"&&xn(dt[ze].it)}function xt(dt){var ze,ht,wt,xi,Zo,Po,Ca=dt.length;for(ht=0;ht<Ca;ht+=1){if((ze=dt[ht]).hasMask){var Jo=ze.masksProperties;for(xi=Jo.length,wt=0;wt<xi;wt+=1)if(Jo[wt].pt.k.i)Jo[wt].pt.k.c=Jo[wt].cl;else for(Po=Jo[wt].pt.k.length,Zo=0;Zo<Po;Zo+=1)Jo[wt].pt.k[Zo].s&&(Jo[wt].pt.k[Zo].s[0].c=Jo[wt].cl),Jo[wt].pt.k[Zo].e&&(Jo[wt].pt.k[Zo].e[0].c=Jo[wt].cl)}ze.ty===4&&xn(ze.shapes)}}return function(dt){if(ft(Vt,dt.v)&&(xt(dt.layers),dt.assets)){var ze,ht=dt.assets.length;for(ze=0;ze<ht;ze+=1)dt.assets[ze].layers&&xt(dt.assets[ze].layers)}}})();function ci(Vt){Vt.__complete||(po(Vt),rn(Vt),sn(Vt),zt(Vt),Eo(Vt),Kt(Vt.layers,Vt.assets),en(Vt.chars,Vt.assets),Vt.__complete=!0)}function Ko(Vt){Vt.t.a.length===0&&Vt.t.p}var lo={};return lo.completeData=ci,lo.checkColors=po,lo.checkChars=sn,lo.checkPathProperties=zt,lo.checkShapes=Eo,lo.completeLayers=Kt,lo}if(Ee.dataManager||(Ee.dataManager=At()),Ee.assetLoader||(Ee.assetLoader=(function(){function Kt(Xe){var We=Xe.getResponseHeader("content-type");return We&&Xe.responseType==="json"&&We.indexOf("json")!==-1||Xe.response&&ge(Xe.response)==="object"?Xe.response:Xe.response&&typeof Xe.response=="string"?JSON.parse(Xe.response):Xe.responseText?JSON.parse(Xe.responseText):null}function en(Xe,We,Ne,qe){var ft,rn=new XMLHttpRequest;try{rn.responseType="json"}catch{}rn.onreadystatechange=function(){if(rn.readyState===4)if(rn.status===200)ft=Kt(rn),Ne(ft);else try{ft=Kt(rn),Ne(ft)}catch(sn){qe&&qe(sn)}};try{rn.open(["G","E","T"].join(""),Xe,!0)}catch{rn.open(["G","E","T"].join(""),We+"/"+Xe,!0)}rn.send()}return{load:en}})()),pt.data.type==="loadAnimation")Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.dataManager.completeData(Kt),Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}));else if(pt.data.type==="complete"){var Tt=pt.data.animation;Ee.dataManager.completeData(Tt),Ee.postMessage({id:pt.data.id,payload:Tt,status:"success"})}else pt.data.type==="loadData"&&Ee.assetLoader.load(pt.data.path,pt.data.fullPath,(function(Kt){Ee.postMessage({id:pt.data.id,payload:Kt,status:"success"})}),(function(){Ee.postMessage({id:pt.data.id,status:"error"})}))})),X.onmessage=function(pt){var At=pt.data,Tt=At.id,Kt=xe[Tt];xe[Tt]=null,At.status==="success"?Kt.onComplete(At.payload):Kt.onError&&Kt.onError()})}function Ye(pt,At){var Tt="processId_"+(pe+=1);return xe[Tt]={onComplete:pt,onError:At},Tt}function Rt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadAnimation",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function Jt(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"loadData",path:pt,fullPath:window.location.origin+window.location.pathname,id:Kt})}function et(pt,At,Tt){Qe();var Kt=Ye(At,Tt);X.postMessage({type:"complete",animation:pt,id:Kt})}return{loadAnimation:Rt,loadData:Jt,completeAnimation:et}})(),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 ft=Xe.p;ft.indexOf("images/")!==-1&&(ft=ft.split("/")[1]),qe=We+ft}else qe=Ne,qe+=Xe.u?Xe.u:"",qe+=Xe.p;return qe}function Ae(Xe){var We=0,Ne=setInterval((function(){(Xe.getBBox().width||We>500)&&(this._imageLoaded(),clearInterval(Ne)),We+=1}).bind(this),50)}function Ee(Xe){var We=xe(Xe,this.assetsPath,this.path),Ne=le("image");S?this.testImageLoaded(Ne):Ne.addEventListener("load",this._imageLoaded,!1),Ne.addEventListener("error",(function(){qe.img=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 Ye(Xe,We){this.imagesLoadedCb=We;var Ne,qe=Xe.length;for(Ne=0;Ne<qe;Ne+=1)Xe[Ne].layers||(Xe[Ne].t&&Xe[Ne].t!=="seq"?Xe[Ne].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Xe[Ne]))):(this.totalImages+=1,this.images.push(this._createImageData(Xe[Ne]))))}function Rt(Xe){this.path=Xe||""}function Jt(Xe){this.assetsPath=Xe||""}function et(Xe){for(var We=0,Ne=this.images.length;We<Ne;){if(this.images[We].assetData===Xe)return this.images[We].img;We+=1}return null}function pt(){this.imagesLoadedCb=null,this.images.length=0}function At(){return this.totalImages===this.loadedAssets}function Tt(){return this.totalFootages===this.loadedFootagesCount}function Kt(Xe,We){Xe==="svg"?(this._elementHelper=We,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function en(){this._imageLoaded=X.bind(this),this._footageLoaded=pe.bind(this),this.testImageLoaded=Ae.bind(this),this.createFootageData=Qe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return en.prototype={loadAssets:Ye,setAssetsPath:Jt,setPath:Rt,loadedImages:At,loadedFootages:Tt,destroy:pt,getAsset:et,createImgData:Re,createImageData:Ee,imageLoaded:X,footageLoaded:pe,setCacheType:Kt},en})();function ie(){}ie.prototype={triggerEvent:function(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
|
`),Ae={},Ee=0,Re=0;Re<xe.length;Re+=1)(pe=xe[Re].split(":")).length===2&&(Ae[pe[0]]=pe[1].trim(),Ee+=1);if(Ee===0)throw new Error;return Ae}return function(X){for(var pe=[],xe=0;xe<X.length;xe+=1){var Ae=X[xe],Ee={time:Ae.tm,duration:Ae.dr};try{Ee.payload=JSON.parse(X[xe].cm)}catch{try{Ee.payload=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,Ae=this.compositions.length;xe<Ae;){if(this.compositions[xe].data&&this.compositions[xe].data.nm===pe)return this.compositions[xe].prepareFrame&&this.compositions[xe].data.xt&&this.compositions[xe].prepareFrame(this.currentFrame),this.compositions[xe].compInterface;xe+=1}return null}return X.compositions=[],X.currentFrame=0,X.registerComposition=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 ve=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],ve),ve.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))},ve.prototype.onSetupError=function(){this.trigger("data_failed")},ve.prototype.setupAnimation=function(G){ue.completeAnimation(G,this.configAnimation)},ve.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 Ae=xe.getNamedItem("data-anim-loop")?xe.getNamedItem("data-anim-loop").value:xe.getNamedItem("data-bm-loop")?xe.getNamedItem("data-bm-loop").value:xe.getNamedItem("bm-loop")?xe.getNamedItem("bm-loop").value:"";Ae==="false"?pe.loop=!1:Ae==="true"?pe.loop=!0:Ae!==""&&(pe.loop=parseInt(Ae,10));var Ee=xe.getNamedItem("data-anim-autoplay")?xe.getNamedItem("data-anim-autoplay").value:xe.getNamedItem("data-bm-autoplay")?xe.getNamedItem("data-bm-autoplay").value:!xe.getNamedItem("bm-autoplay")||xe.getNamedItem("bm-autoplay").value;pe.autoplay=Ee!=="false",pe.name=xe.getNamedItem("data-name")?xe.getNamedItem("data-name").value:xe.getNamedItem("data-bm-name")?xe.getNamedItem("data-bm-name").value:xe.getNamedItem("bm-name")?xe.getNamedItem("bm-name").value:"",(xe.getNamedItem("data-anim-prerender")?xe.getNamedItem("data-anim-prerender").value:xe.getNamedItem("data-bm-prerender")?xe.getNamedItem("data-bm-prerender").value:xe.getNamedItem("bm-prerender")?xe.getNamedItem("bm-prerender").value:"")==="false"&&(pe.prerender=!1),pe.path?this.setParams(pe):this.trigger("destroy")},ve.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,Ae=xe.length,Ee=G.layers,Re=Ee.length;for(pe=0;pe<Re;pe+=1)for(X=0;X<Ae;){if(xe[X].id===Ee[pe].id){xe[X]=Ee[pe];break}X+=1}if((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(Ae=G.assets.length,X=0;X<Ae;X+=1)this.animationData.assets.push(G.assets[X]);this.animationData.__complete=!1,ue.completeAnimation(this.animationData,this.onSegmentComplete)},ve.prototype.onSegmentComplete=function(G){this.animationData=G;var X=te();X&&X.initExpressions(this),this.loadNextSegment()},ve.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))},ve.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},ve.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},ve.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},ve.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)}},ve.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},ve.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()}},ve.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)},ve.prototype.setSubframe=function(G){this.isSubframeEnabled=!!G},ve.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")},ve.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)}},ve.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")))},ve.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())},ve.prototype.togglePause=function(G){G&&this.name!==G||(this.isPaused===!0?this.play():this.pause())},ve.prototype.stop=function(G){G&&this.name!==G||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ve.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},ve.prototype.goToAndStop=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ae=this.getMarkerData(G);Ae&&this.goToAndStop(Ae.time,!0)}else X?this.setCurrentRawFrameValue(G):this.setCurrentRawFrameValue(G*this.frameModifier);this.pause()}},ve.prototype.goToAndPlay=function(G,X,pe){if(!pe||this.name===pe){var xe=Number(G);if(isNaN(xe)){var Ae=this.getMarkerData(G);Ae&&(Ae.duration?this.playSegments([Ae.time,Ae.time+Ae.duration],!0):this.goToAndStop(Ae.time,!0))}else this.goToAndStop(xe,X,pe);this.play()}},ve.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"))}},ve.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")},ve.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)},ve.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()},ve.prototype.resetSegments=function(G){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),G&&this.checkSegments(0)},ve.prototype.checkSegments=function(G){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),G),!0)},ve.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)},ve.prototype.setCurrentRawFrameValue=function(G){this.currentRawFrame=G,this.gotoFrame()},ve.prototype.setSpeed=function(G){this.playSpeed=G,this.updaFrameModifier()},ve.prototype.setDirection=function(G){this.playDirection=G<0?-1:1,this.updaFrameModifier()},ve.prototype.setLoop=function(G){this.loop=G},ve.prototype.setVolume=function(G,X){X&&this.name!==X||this.audioController.setVolume(G)},ve.prototype.getVolume=function(){return this.audioController.getVolume()},ve.prototype.mute=function(G){G&&this.name!==G||this.audioController.mute()},ve.prototype.unmute=function(G){G&&this.name!==G||this.audioController.unmute()},ve.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},ve.prototype.getPath=function(){return this.path},ve.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},ve.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},ve.prototype.hide=function(){this.renderer.hide()},ve.prototype.show=function(){this.renderer.show()},ve.prototype.getDuration=function(G){return G?this.totalFrames:this.totalFrames/this.frameRate},ve.prototype.updateDocumentData=function(G,X,pe){try{this.renderer.getElementByPath(G).updateDocumentData(X,pe)}catch{}},ve.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))},ve.prototype.triggerRenderFrameError=function(G){var X=new M(G,this.currentFrame);this.triggerEvent("error",X),this.onError&&this.onError.call(this,X)},ve.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,Ae=0,Ee=!0,Re=!1;function Qe(xt){for(var dt=0,ze=xt.target;dt<xe;)X[dt].animation===ze&&(X.splice(dt,1),dt-=1,xe-=1,ze.isPaused||et()),dt+=1}function Ye(xt,dt){if(!xt)return null;for(var ze=0;ze<xe;){if(X[ze].elem===xt&&X[ze].elem!==null)return X[ze].animation;ze+=1}var ht=new ve;return pt(ht,xt),ht.setData(xt,dt),ht}function Rt(){var xt,dt=X.length,ze=[];for(xt=0;xt<dt;xt+=1)ze.push(X[xt].animation);return ze}function Jt(){Ae+=1,Eo()}function et(){Ae-=1}function pt(xt,dt){xt.addEventListener("destroy",Qe),xt.addEventListener("_active",Jt),xt.addEventListener("_idle",et),X.push({elem:dt,animation:xt}),xe+=1}function At(xt){var dt=new ve;return pt(dt,null),dt.setParams(xt),dt}function Tt(xt,dt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setSpeed(xt,dt)}function Kt(xt,dt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setDirection(xt,dt)}function en(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.play(xt)}function Xe(xt){var dt,ze=xt-pe;for(dt=0;dt<xe;dt+=1)X[dt].animation.advanceTime(ze);pe=xt,Ae&&!Re?window.requestAnimationFrame(Xe):Ee=!0}function We(xt){pe=xt,window.requestAnimationFrame(Xe)}function Ne(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.pause(xt)}function qe(xt,dt,ze){var ht;for(ht=0;ht<xe;ht+=1)X[ht].animation.goToAndStop(xt,dt,ze)}function ft(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.stop(xt)}function rn(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.togglePause(xt)}function sn(xt){var dt;for(dt=xe-1;dt>=0;dt-=1)X[dt].animation.destroy(xt)}function zt(xt,dt,ze){var ht,wt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),xi=wt.length;for(ht=0;ht<xi;ht+=1)ze&&wt[ht].setAttribute("data-bm-type",ze),Ye(wt[ht],xt);if(dt&&xi===0){ze||(ze="svg");var Zo=document.getElementsByTagName("body")[0];Zo.innerText="";var Po=h("div");Po.style.width="100%",Po.style.height="100%",Po.setAttribute("data-bm-type",ze),Zo.appendChild(Po),Ye(Po,xt)}}function po(){var xt;for(xt=0;xt<xe;xt+=1)X[xt].animation.resize()}function Eo(){!Re&&Ae&&Ee&&(window.requestAnimationFrame(We),Ee=!1)}function ci(){Re=!0}function Ko(){Re=!1,Eo()}function lo(xt,dt){var ze;for(ze=0;ze<xe;ze+=1)X[ze].animation.setVolume(xt,dt)}function Vt(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.mute(xt)}function xn(xt){var dt;for(dt=0;dt<xe;dt+=1)X[dt].animation.unmute(xt)}return G.registerAnimation=Ye,G.loadAnimation=At,G.setSpeed=Tt,G.setDirection=Kt,G.play=en,G.pause=Ne,G.stop=ft,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=xn,G.getRegisteredAnimations=Rt,G})(),Le=(function(){var G={};G.getBezierEasing=pe;var X={};function pe(We,Ne,qe,ft,rn){var sn=rn||("bez_"+We+"_"+Ne+"_"+qe+"_"+ft).replace(/\./g,"p");if(X[sn])return X[sn];var zt=new Xe([We,Ne,qe,ft]);return X[sn]=zt,zt}var xe=4,Ae=.001,Ee=1e-7,Re=10,Qe=11,Ye=1/(Qe-1),Rt=typeof Float32Array=="function";function Jt(We,Ne){return 1-3*Ne+3*We}function et(We,Ne){return 3*Ne-6*We}function pt(We){return 3*We}function At(We,Ne,qe){return((Jt(Ne,qe)*We+et(Ne,qe))*We+pt(Ne))*We}function Tt(We,Ne,qe){return 3*Jt(Ne,qe)*We*We+2*et(Ne,qe)*We+pt(Ne)}function Kt(We,Ne,qe,ft,rn){var sn,zt,po=0;do(sn=At(zt=Ne+(qe-Ne)/2,ft,rn)-We)>0?qe=zt:Ne=zt;while(Math.abs(sn)>Ee&&++po<Re);return zt}function en(We,Ne,qe,ft){for(var rn=0;rn<xe;++rn){var sn=Tt(Ne,qe,ft);if(sn===0)return Ne;Ne-=(At(Ne,qe,ft)-We)/sn}return Ne}function Xe(We){this._p=We,this._mSampleValues=Rt?new Float32Array(Qe):new Array(Qe),this._precomputed=!1,this.get=this.get.bind(this)}return Xe.prototype={get:function(We){var Ne=this._p[0],qe=this._p[1],ft=this._p[2],rn=this._p[3];return this._precomputed||this._precompute(),Ne===qe&&ft===rn?We:We===0?0:We===1?1:At(this._getTForX(We),qe,rn)},_precompute:function(){var We=this._p[0],Ne=this._p[1],qe=this._p[2],ft=this._p[3];this._precomputed=!0,(We!==Ne||qe!==ft)&&this._calcSampleValues()},_calcSampleValues:function(){for(var We=this._p[0],Ne=this._p[2],qe=0;qe<Qe;++qe)this._mSampleValues[qe]=At(qe*Ye,We,Ne)},_getTForX:function(We){for(var Ne=this._p[0],qe=this._p[2],ft=this._mSampleValues,rn=0,sn=1,zt=Qe-1;sn!==zt&&ft[sn]<=We;++sn)rn+=Ye;var po=rn+(We-ft[--sn])/(ft[sn+1]-ft[sn])*Ye,Eo=Tt(po,Ne,qe);return Eo>=Ae?en(We,po,Ne,qe):Eo===0?po:Kt(We,rn,rn+Ye,Ne,qe)}},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,Ae=G,Ee=b(Ae);function Re(){return xe?Ee[xe-=1]:X()}function Qe(Ye){xe===Ae&&(Ee=Te.double(Ee),Ae*=2),pe&&pe(Ye),Ee[xe]=Ye,xe+=1}return{newElement:Re,release:Qe}}})(),Me=(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,Ae=pe.lengths.length;for(xe=0;xe<Ae;xe+=1)Me.release(pe.lengths[xe]);pe.lengths.length=0}return Fe(8,G,X)})();function Ce(){var G=Math;function X(pt,At,Tt,Kt,en,Xe){var We=pt*Kt+At*en+Tt*Xe-en*Kt-Xe*pt-Tt*At;return We>-.001&&We<.001}function pe(pt,At,Tt,Kt,en,Xe,We,Ne,qe){if(Tt===0&&Xe===0&&qe===0)return X(pt,At,Kt,en,We,Ne);var ft,rn=G.sqrt(G.pow(Kt-pt,2)+G.pow(en-At,2)+G.pow(Xe-Tt,2)),sn=G.sqrt(G.pow(We-pt,2)+G.pow(Ne-At,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(ft=rn>sn?rn>zt?rn-sn-zt:zt-sn-rn:zt>sn?zt-sn-rn:sn-rn-zt)>-1e-4&&ft<1e-4}var xe=(function(){return function(pt,At,Tt,Kt){var en,Xe,We,Ne,qe,ft,rn=ae(),sn=0,zt=[],po=[],Eo=Me.newElement();for(We=Tt.length,en=0;en<rn;en+=1){for(qe=en/(rn-1),ft=0,Xe=0;Xe<We;Xe+=1)Ne=k(1-qe,3)*pt[Xe]+3*k(1-qe,2)*qe*Tt[Xe]+3*(1-qe)*k(qe,2)*Kt[Xe]+k(qe,3)*At[Xe],zt[Xe]=Ne,po[Xe]!==null&&(ft+=k(zt[Xe]-po[Xe],2)),po[Xe]=zt[Xe];ft&&(sn+=ft=$(ft)),Eo.percents[en]=qe,Eo.lengths[en]=sn}return Eo.addedLength=sn,Eo}})();function Ae(pt){var At,Tt=ke.newElement(),Kt=pt.c,en=pt.v,Xe=pt.o,We=pt.i,Ne=pt._length,qe=Tt.lengths,ft=0;for(At=0;At<Ne-1;At+=1)qe[At]=xe(en[At],en[At+1],Xe[At],We[At+1]),ft+=qe[At].addedLength;return Kt&&Ne&&(qe[At]=xe(en[At],en[0],Xe[At],We[0]),ft+=qe[At].addedLength),Tt.totalLength=ft,Tt}function Ee(pt){this.segmentLength=0,this.points=new Array(pt)}function Re(pt,At){this.partialLength=pt,this.point=At}var Qe=(function(){var pt={};return function(At,Tt,Kt,en){var Xe=(At[0]+"_"+At[1]+"_"+Tt[0]+"_"+Tt[1]+"_"+Kt[0]+"_"+Kt[1]+"_"+en[0]+"_"+en[1]).replace(/\./g,"p");if(!pt[Xe]){var We,Ne,qe,ft,rn,sn,zt,po=ae(),Eo=0,ci=null;At.length===2&&(At[0]!==Tt[0]||At[1]!==Tt[1])&&X(At[0],At[1],Tt[0],Tt[1],At[0]+Kt[0],At[1]+Kt[1])&&X(At[0],At[1],Tt[0],Tt[1],Tt[0]+en[0],Tt[1]+en[1])&&(po=2);var Ko=new Ee(po);for(qe=Kt.length,We=0;We<po;We+=1){for(zt=b(qe),rn=We/(po-1),sn=0,Ne=0;Ne<qe;Ne+=1)ft=k(1-rn,3)*At[Ne]+3*k(1-rn,2)*rn*(At[Ne]+Kt[Ne])+3*(1-rn)*k(rn,2)*(Tt[Ne]+en[Ne])+k(rn,3)*Tt[Ne],zt[Ne]=ft,ci!==null&&(sn+=k(zt[Ne]-ci[Ne],2));Eo+=sn=$(sn),Ko.points[We]=new Re(sn,zt),ci=zt}Ko.segmentLength=Eo,pt[Xe]=Ko}return pt[Xe]}})();function Ye(pt,At){var Tt=At.percents,Kt=At.lengths,en=Tt.length,Xe=j((en-1)*pt),We=pt*At.addedLength,Ne=0;if(Xe===en-1||Xe===0||We===Kt[Xe])return Tt[Xe];for(var qe=Kt[Xe]>We?-1:1,ft=!0;ft;)if(Kt[Xe]<=We&&Kt[Xe+1]>We?(Ne=(We-Kt[Xe])/(Kt[Xe+1]-Kt[Xe]),ft=!1):Xe+=qe,Xe<0||Xe>=en-1){if(Xe===en-1)return Tt[Xe];ft=!1}return Tt[Xe]+(Tt[Xe+1]-Tt[Xe])*Ne}function Rt(pt,At,Tt,Kt,en,Xe){var We=Ye(en,Xe),Ne=1-We;return[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*At[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*At[1]))/1e3]}var Jt=y("float32",8);function et(pt,At,Tt,Kt,en,Xe,We){en<0?en=0:en>1&&(en=1);var Ne,qe=Ye(en,We),ft=Ye(Xe=Xe>1?1:Xe,We),rn=pt.length,sn=1-qe,zt=1-ft,po=sn*sn*sn,Eo=qe*sn*sn*3,ci=qe*qe*sn*3,Ko=qe*qe*qe,lo=sn*sn*zt,Vt=qe*sn*zt+sn*qe*zt+sn*sn*ft,xn=qe*qe*zt+sn*qe*ft+qe*sn*ft,xt=qe*qe*ft,dt=sn*zt*zt,ze=qe*zt*zt+sn*ft*zt+sn*zt*ft,ht=qe*ft*zt+sn*ft*ft+qe*zt*ft,wt=qe*ft*ft,xi=zt*zt*zt,Zo=ft*zt*zt+zt*ft*zt+zt*zt*ft,Po=ft*ft*zt+zt*ft*ft+ft*zt*ft,Ca=ft*ft*ft;for(Ne=0;Ne<rn;Ne+=1)Jt[4*Ne]=G.round(1e3*(po*pt[Ne]+Eo*Tt[Ne]+ci*Kt[Ne]+Ko*At[Ne]))/1e3,Jt[4*Ne+1]=G.round(1e3*(lo*pt[Ne]+Vt*Tt[Ne]+xn*Kt[Ne]+xt*At[Ne]))/1e3,Jt[4*Ne+2]=G.round(1e3*(dt*pt[Ne]+ze*Tt[Ne]+ht*Kt[Ne]+wt*At[Ne]))/1e3,Jt[4*Ne+3]=G.round(1e3*(xi*pt[Ne]+Zo*Tt[Ne]+Po*Kt[Ne]+Ca*At[Ne]))/1e3;return Jt}return{getSegmentsLength:Ae,getNewSegment:et,getPointInSegment:Rt,buildBezierData:Qe,pointOnLine2D:X,pointOnLine3D:pe}}var De=Ce(),$e=l,Oe=Math.abs;function Ke(G,X){var pe,xe=this.offsetTime;this.propType==="multidimensional"&&(pe=y("float32",this.pv.length));for(var Ae,Ee,Re,Qe=X.lastIndex,Ye=Qe,Rt=this.keyframes.length-1,Jt=!0;Jt;){if(Ae=this.keyframes[Ye],Ee=this.keyframes[Ye+1],Ye===Rt-1&&G>=Ee.t-xe){Ae.h&&(Ae=Ee),Qe=0;break}if(Ee.t-xe>G){Qe=Ye;break}Ye<Rt-1?Ye+=1:(Qe=0,Jt=!1)}Re=this.keyframesMetadata[Ye]||{};var et,pt,At,Tt,Kt,en,Xe,We=Ee.t-xe,Ne=Ae.t-xe;if(Ae.to){Re.bezierData||(Re.bezierData=De.buildBezierData(Ae.s,Ee.s||Ae.e,Ae.to,Ae.ti));var qe=Re.bezierData;if(G>=We||G<Ne){var ft=G>=We?qe.points.length-1:0;for(pt=qe.points[ft].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[ft].point[et]}else{Re.__fnct?en=Re.__fnct:(en=Le.getBezierEasing(Ae.o.x,Ae.o.y,Ae.i.x,Ae.i.y,Ae.n).get,Re.__fnct=en),At=en((G-Ne)/(We-Ne));var rn,sn=qe.segmentLength*At,zt=X.lastFrame<G&&X._lastKeyframeIndex===Ye?X._lastAddedLength:0;for(Kt=X.lastFrame<G&&X._lastKeyframeIndex===Ye?X._lastPoint:0,Jt=!0,Tt=qe.points.length;Jt;){if(zt+=qe.points[Kt].partialLength,sn===0||At===0||Kt===qe.points.length-1){for(pt=qe.points[Kt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[Kt].point[et];break}if(sn>=zt&&sn<zt+qe.points[Kt+1].partialLength){for(rn=(sn-zt)/qe.points[Kt+1].partialLength,pt=qe.points[Kt].point.length,et=0;et<pt;et+=1)pe[et]=qe.points[Kt].point[et]+(qe.points[Kt+1].point[et]-qe.points[Kt].point[et])*rn;break}Kt<Tt-1?Kt+=1:Jt=!1}X._lastPoint=Kt,X._lastAddedLength=zt-qe.points[Kt].partialLength,X._lastKeyframeIndex=Ye}}else{var po,Eo,ci,Ko,lo;if(Rt=Ae.s.length,Xe=Ee.s||Ae.e,this.sh&&Ae.h!==1)G>=We?(pe[0]=Xe[0],pe[1]=Xe[1],pe[2]=Xe[2]):G<=Ne?(pe[0]=Ae.s[0],pe[1]=Ae.s[1],pe[2]=Ae.s[2]):Ge(pe,Ue(ct(Ae.s),ct(Xe),(G-Ne)/(We-Ne)));else for(Ye=0;Ye<Rt;Ye+=1)Ae.h!==1&&(G>=We?At=1:G<Ne?At=0:(Ae.o.x.constructor===Array?(Re.__fnct||(Re.__fnct=[]),Re.__fnct[Ye]?en=Re.__fnct[Ye]:(po=Ae.o.x[Ye]===void 0?Ae.o.x[0]:Ae.o.x[Ye],Eo=Ae.o.y[Ye]===void 0?Ae.o.y[0]:Ae.o.y[Ye],ci=Ae.i.x[Ye]===void 0?Ae.i.x[0]:Ae.i.x[Ye],Ko=Ae.i.y[Ye]===void 0?Ae.i.y[0]:Ae.i.y[Ye],en=Le.getBezierEasing(po,Eo,ci,Ko).get,Re.__fnct[Ye]=en)):Re.__fnct?en=Re.__fnct:(po=Ae.o.x,Eo=Ae.o.y,ci=Ae.i.x,Ko=Ae.i.y,en=Le.getBezierEasing(po,Eo,ci,Ko).get,Ae.keyframeMetadata=en),At=en((G-Ne)/(We-Ne)))),Xe=Ee.s||Ae.e,lo=Ae.h===1?Ae.s[Ye]:Ae.s[Ye]+(Xe[Ye]-Ae.s[Ye])*At,this.propType==="multidimensional"?pe[Ye]=lo:pe=lo}return X.lastIndex=Qe,pe}function Ue(G,X,pe){var xe,Ae,Ee,Re,Qe,Ye=[],Rt=G[0],Jt=G[1],et=G[2],pt=G[3],At=X[0],Tt=X[1],Kt=X[2],en=X[3];return(Ae=Rt*At+Jt*Tt+et*Kt+pt*en)<0&&(Ae=-Ae,At=-At,Tt=-Tt,Kt=-Kt,en=-en),1-Ae>1e-6?(xe=Math.acos(Ae),Ee=Math.sin(xe),Re=Math.sin((1-pe)*xe)/Ee,Qe=Math.sin(pe*xe)/Ee):(Re=1-pe,Qe=pe),Ye[0]=Re*Rt+Qe*At,Ye[1]=Re*Jt+Qe*Tt,Ye[2]=Re*et+Qe*Kt,Ye[3]=Re*pt+Qe*en,Ye}function Ge(G,X){var pe=X[0],xe=X[1],Ae=X[2],Ee=X[3],Re=Math.atan2(2*xe*Ee-2*pe*Ae,1-2*xe*xe-2*Ae*Ae),Qe=Math.asin(2*pe*xe+2*Ae*Ee),Ye=Math.atan2(2*pe*Ee-2*xe*Ae,1-2*pe*pe-2*Ae*Ae);G[0]=Re/D,G[1]=Qe/D,G[2]=Ye/D}function ct(G){var X=G[0]*D,pe=G[1]*D,xe=G[2]*D,Ae=Math.cos(X/2),Ee=Math.cos(pe/2),Re=Math.cos(xe/2),Qe=Math.sin(X/2),Ye=Math.sin(pe/2),Rt=Math.sin(xe/2);return[Qe*Ye*Re+Ae*Ee*Rt,Qe*Ee*Re+Ae*Ye*Rt,Ae*Ye*Re-Qe*Ee*Rt,Ae*Ee*Re-Qe*Ye*Rt]}function St(){var 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 rt(G){var X;if(this.propType==="unidimensional")X=G*this.mult,Oe(this.v-X)>1e-5&&(this.v=X,this._mdf=!0);else for(var pe=0,xe=this.v.length;pe<xe;)X=G[pe]*this.mult,Oe(this.v[pe]-X)>1e-5&&(this.v[pe]=X,this._mdf=!0),pe+=1}function Ct(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var 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 tt(G){this.effectsSequence.push(G),this.container.addDynamicProperty(this)}function _e(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=Ct,this.setVValue=rt,this.addEffect=tt}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 Ae,Ee=X.k.length;for(this.v=y("float32",Ee),this.pv=y("float32",Ee),this.vel=y("float32",Ee),Ae=0;Ae<Ee;Ae+=1)this.v[Ae]=X.k[Ae]*this.mult,this.pv[Ae]=X.k[Ae];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=Ct,this.setVValue=rt,this.addEffect=tt}function vt(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=Ct,this.setVValue=rt,this.interpolateValue=Ke,this.effectsSequence=[St.bind(this)],this.addEffect=tt}function gt(G,X,pe,xe){this.propType="multidimensional";var Ae,Ee,Re,Qe,Ye,Rt=X.k.length;for(Ae=0;Ae<Rt-1;Ae+=1)X.k[Ae].to&&X.k[Ae].s&&X.k[Ae+1]&&X.k[Ae+1].s&&(Ee=X.k[Ae].s,Re=X.k[Ae+1].s,Qe=X.k[Ae].to,Ye=X.k[Ae].ti,(Ee.length===2&&!(Ee[0]===Re[0]&&Ee[1]===Re[1])&&De.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Ee[0]+Qe[0],Ee[1]+Qe[1])&&De.pointOnLine2D(Ee[0],Ee[1],Re[0],Re[1],Re[0]+Ye[0],Re[1]+Ye[1])||Ee.length===3&&!(Ee[0]===Re[0]&&Ee[1]===Re[1]&&Ee[2]===Re[2])&&De.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Ee[0]+Qe[0],Ee[1]+Qe[1],Ee[2]+Qe[2])&&De.pointOnLine3D(Ee[0],Ee[1],Ee[2],Re[0],Re[1],Re[2],Re[0]+Ye[0],Re[1]+Ye[1],Re[2]+Ye[2]))&&(X.k[Ae].to=null,X.k[Ae].ti=null),Ee[0]===Re[0]&&Ee[1]===Re[1]&&Qe[0]===0&&Qe[1]===0&&Ye[0]===0&&Ye[1]===0&&(Ee.length===2||Ee[2]===Re[2]&&Qe[2]===0&&Ye[2]===0)&&(X.k[Ae].to=null,X.k[Ae].ti=null));this.effectsSequence=[St.bind(this)],this.data=X,this.keyframes=X.k,this.keyframesMetadata=[],this.offsetTime=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=Ct,this.setVValue=rt,this.interpolateValue=Ke,this.frameId=-1;var Jt=X.k[0].s.length;for(this.v=y("float32",Jt),this.pv=y("float32",Jt),Ae=0;Ae<Jt;Ae+=1)this.v[Ae]=$e,this.pv[Ae]=$e;this._caching={lastFrame:$e,lastIndex:0,value:y("float32",Jt)},this.addEffect=tt}var Ze=(function(){function G(X,pe,xe,Ae,Ee){var Re;if(pe.sid&&(pe=X.globalData.slotManager.getProp(pe)),pe.k.length)if(typeof pe.k[0]=="number")Re=new kt(X,pe,Ae,Ee);else switch(xe){case 0:Re=new vt(X,pe,Ae,Ee);break;case 1:Re=new gt(X,pe,Ae,Ee)}else Re=new _e(X,pe,Ae,Ee);return Re.effectsSequence.length&&Ee.addDynamicProperty(Re),Re}return{getProp: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,Ae){var Ee;switch(this._length=Math.max(this._length,xe+1),this._length>=this._maxLength&&this.doubleArrayLength(),pe){case"v":Ee=this.v;break;case"i":Ee=this.i;break;case"o":Ee=this.o;break;default:Ee=[]}(!Ee[xe]||Ee[xe]&&!Ae)&&(Ee[xe]=Qt.newElement()),Ee[xe][0]=G,Ee[xe][1]=X},bt.prototype.setTripleAt=function(G,X,pe,xe,Ae,Ee,Re,Qe){this.setXYAt(G,X,"v",Re,Qe),this.setXYAt(pe,xe,"o",Re,Qe),this.setXYAt(Ae,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,Ae=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),Ae=1);var Ee,Re=this._length-1,Qe=this._length;for(Ee=Ae;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(Ae){var Ee,Re=Ae._length;for(Ee=0;Ee<Re;Ee+=1)Qt.release(Ae.v[Ee]),Qt.release(Ae.i[Ee]),Qt.release(Ae.o[Ee]),Ae.v[Ee]=null,Ae.i[Ee]=null,Ae.o[Ee]=null;Ae._length=0,Ae.c=!1}function pe(Ae){var Ee,Re=xe.newElement(),Qe=Ae._length===void 0?Ae.v.length:Ae._length;for(Re.setLength(Qe),Re.c=Ae.c,Ee=0;Ee<Qe;Ee+=1)Re.setTripleAt(Ae.v[Ee][0],Ae.v[Ee][1],Ae.o[Ee][0],Ae.o[Ee][1],Ae.i[Ee][0],Ae.i[Ee][1],Ee);return Re}var xe=Fe(4,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:Ae,release:Ee},X=0,pe=4,xe=b(pe);function Ae(){return X?xe[X-=1]:new cn}function Ee(Re){var Qe,Ye=Re._length;for(Qe=0;Qe<Ye;Qe+=1)Mt.release(Re.shapes[Qe]);Re._length=0,X===pe&&(xe=Te.double(xe),pe*=2),xe[X]=Re,X+=1}return G})(),at=(function(){var G=-999999;function X(Xe,We,Ne){var qe,ft,rn,sn,zt,po,Eo,ci,Ko,lo=Ne.lastIndex,Vt=this.keyframes;if(Xe<Vt[0].t-this.offsetTime)qe=Vt[0].s[0],rn=!0,lo=0;else if(Xe>=Vt[Vt.length-1].t-this.offsetTime)qe=Vt[Vt.length-1].s?Vt[Vt.length-1].s[0]:Vt[Vt.length-2].e[0],rn=!0;else{for(var xn,xt,dt,ze=lo,ht=Vt.length-1,wt=!0;wt&&(xn=Vt[ze],!((xt=Vt[ze+1]).t-this.offsetTime>Xe));)ze<ht-1?ze+=1:wt=!1;if(dt=this.keyframesMetadata[ze]||{},lo=ze,!(rn=xn.h===1)){if(Xe>=xt.t-this.offsetTime)ci=1;else if(Xe<xn.t-this.offsetTime)ci=0;else{var xi;dt.__fnct?xi=dt.__fnct:(xi=Le.getBezierEasing(xn.o.x,xn.o.y,xn.i.x,xn.i.y).get,dt.__fnct=xi),ci=xi((Xe-(xn.t-this.offsetTime))/(xt.t-this.offsetTime-(xn.t-this.offsetTime)))}ft=xt.s?xt.s[0]:xn.e[0]}qe=xn.s[0]}for(po=We._length,Eo=qe.i[0].length,Ne.lastIndex=lo,sn=0;sn<po;sn+=1)for(zt=0;zt<Eo;zt+=1)Ko=rn?qe.i[sn][zt]:qe.i[sn][zt]+(ft.i[sn][zt]-qe.i[sn][zt])*ci,We.i[sn][zt]=Ko,Ko=rn?qe.o[sn][zt]:qe.o[sn][zt]+(ft.o[sn][zt]-qe.o[sn][zt])*ci,We.o[sn][zt]=Ko,Ko=rn?qe.v[sn][zt]:qe.v[sn][zt]+(ft.v[sn][zt]-qe.v[sn][zt])*ci,We.v[sn][zt]=Ko}function pe(){var Xe=this.comp.renderedFrame-this.offsetTime,We=this.keyframes[0].t-this.offsetTime,Ne=this.keyframes[this.keyframes.length-1].t-this.offsetTime,qe=this._caching.lastFrame;return qe!==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 Ae(Xe,We){if(Xe._length!==We._length||Xe.c!==We.c)return!1;var Ne,qe=Xe._length;for(Ne=0;Ne<qe;Ne+=1)if(Xe.v[Ne][0]!==We.v[Ne][0]||Xe.v[Ne][1]!==We.v[Ne][1]||Xe.o[Ne][0]!==We.o[Ne][0]||Xe.o[Ne][1]!==We.o[Ne][1]||Xe.i[Ne][0]!==We.i[Ne][0]||Xe.i[Ne][1]!==We.i[Ne][1])return!1;return!0}function Ee(Xe){Ae(this.v,Xe)||(this.v=Mt.clone(Xe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function Re(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var Xe;this.lock=!0,this._mdf=!1,Xe=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var We,Ne=this.effectsSequence.length;for(We=0;We<Ne;We+=1)Xe=this.effectsSequence[We](Xe);this.setVValue(Xe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function Qe(Xe,We,Ne){this.propType="shape",this.comp=Xe.comp,this.container=Xe,this.elem=Xe,this.data=We,this.k=!1,this.kf=!1,this._mdf=!1;var qe=Ne===3?We.pt.k:We.ks.k;this.v=Mt.clone(qe),this.pv=Mt.clone(this.v),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=xe,this.effectsSequence=[]}function Ye(Xe){this.effectsSequence.push(Xe),this.container.addDynamicProperty(this)}function Rt(Xe,We,Ne){this.propType="shape",this.comp=Xe.comp,this.elem=Xe,this.container=Xe,this.offsetTime=Xe.data.st,this.keyframes=Ne===3?We.pt.k:We.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var qe=this.keyframes[0].s[0].i.length;this.v=Mt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,qe),this.pv=Mt.clone(this.v),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=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=Ye,Rt.prototype.getValue=Re,Rt.prototype.interpolateShape=X,Rt.prototype.setVValue=Ee,Rt.prototype.addEffect=Ye;var Jt=(function(){var Xe=L;function We(Ne,qe){this.v=Mt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=gn.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=qe.d,this.elem=Ne,this.comp=Ne.comp,this.frameId=-1,this.initDynamicPropertyContainer(Ne),this.p=Ze.getProp(Ne,qe.p,1,0,this),this.s=Ze.getProp(Ne,qe.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return We.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Ne=this.p.v[0],qe=this.p.v[1],ft=this.s.v[0]/2,rn=this.s.v[1]/2,sn=this.d!==3,zt=this.v;zt.v[0][0]=Ne,zt.v[0][1]=qe-rn,zt.v[1][0]=sn?Ne+ft:Ne-ft,zt.v[1][1]=qe,zt.v[2][0]=Ne,zt.v[2][1]=qe+rn,zt.v[3][0]=sn?Ne-ft:Ne+ft,zt.v[3][1]=qe,zt.i[0][0]=sn?Ne-ft*Xe:Ne+ft*Xe,zt.i[0][1]=qe-rn,zt.i[1][0]=sn?Ne+ft:Ne-ft,zt.i[1][1]=qe-rn*Xe,zt.i[2][0]=sn?Ne+ft*Xe:Ne-ft*Xe,zt.i[2][1]=qe+rn,zt.i[3][0]=sn?Ne-ft:Ne+ft,zt.i[3][1]=qe+rn*Xe,zt.o[0][0]=sn?Ne+ft*Xe:Ne-ft*Xe,zt.o[0][1]=qe-rn,zt.o[1][0]=sn?Ne+ft:Ne-ft,zt.o[1][1]=qe+rn*Xe,zt.o[2][0]=sn?Ne-ft*Xe:Ne+ft*Xe,zt.o[2][1]=qe+rn,zt.o[3][0]=sn?Ne-ft:Ne+ft,zt.o[3][1]=qe-rn*Xe}},g([Ot],We),We})(),et=(function(){function Xe(We,Ne){this.v=Mt.newElement(),this.v.setPathData(!0,0),this.elem=We,this.comp=We.comp,this.data=Ne,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(We),Ne.sy===1?(this.ir=Ze.getProp(We,Ne.ir,0,0,this),this.is=Ze.getProp(We,Ne.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Ze.getProp(We,Ne.pt,0,0,this),this.p=Ze.getProp(We,Ne.p,1,0,this),this.r=Ze.getProp(We,Ne.r,0,D,this),this.or=Ze.getProp(We,Ne.or,0,0,this),this.os=Ze.getProp(We,Ne.os,0,.01,this),this.localShapeCollection=gn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Xe.prototype={reset:xe,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var We,Ne,qe,ft,rn=2*Math.floor(this.pt.v),sn=2*Math.PI/rn,zt=!0,po=this.or.v,Eo=this.ir.v,ci=this.os.v,Ko=this.is.v,lo=2*Math.PI*po/(2*rn),Vt=2*Math.PI*Eo/(2*rn),xn=-Math.PI/2;xn+=this.r.v;var xt=this.data.d===3?-1:1;for(this.v._length=0,We=0;We<rn;We+=1){qe=zt?ci:Ko,ft=zt?lo:Vt;var dt=(Ne=zt?po:Eo)*Math.cos(xn),ze=Ne*Math.sin(xn),ht=dt===0&&ze===0?0:ze/Math.sqrt(dt*dt+ze*ze),wt=dt===0&&ze===0?0:-dt/Math.sqrt(dt*dt+ze*ze);dt+=+this.p.v[0],ze+=+this.p.v[1],this.v.setTripleAt(dt,ze,dt-ht*ft*qe*xt,ze-wt*ft*qe*xt,dt+ht*ft*qe*xt,ze+wt*ft*qe*xt,We,!0),zt=!zt,xn+=sn*xt}},convertPolygonToPath:function(){var We,Ne=Math.floor(this.pt.v),qe=2*Math.PI/Ne,ft=this.or.v,rn=this.os.v,sn=2*Math.PI*ft/(4*Ne),zt=.5*-Math.PI,po=this.data.d===3?-1:1;for(zt+=this.r.v,this.v._length=0,We=0;We<Ne;We+=1){var Eo=ft*Math.cos(zt),ci=ft*Math.sin(zt),Ko=Eo===0&&ci===0?0:ci/Math.sqrt(Eo*Eo+ci*ci),lo=Eo===0&&ci===0?0:-Eo/Math.sqrt(Eo*Eo+ci*ci);Eo+=+this.p.v[0],ci+=+this.p.v[1],this.v.setTripleAt(Eo,ci,Eo-Ko*sn*rn*po,ci-lo*sn*rn*po,Eo+Ko*sn*rn*po,ci+lo*sn*rn*po,We,!0),zt+=qe*po}this.paths.length=0,this.paths[0]=this.v}},g([Ot],Xe),Xe})(),pt=(function(){function Xe(We,Ne){this.v=Mt.newElement(),this.v.c=!0,this.localShapeCollection=gn.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=We,this.comp=We.comp,this.frameId=-1,this.d=Ne.d,this.initDynamicPropertyContainer(We),this.p=Ze.getProp(We,Ne.p,1,0,this),this.s=Ze.getProp(We,Ne.s,1,0,this),this.r=Ze.getProp(We,Ne.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Xe.prototype={convertRectToPath:function(){var We=this.p.v[0],Ne=this.p.v[1],qe=this.s.v[0]/2,ft=this.s.v[1]/2,rn=I(qe,ft,this.r.v),sn=rn*(1-L);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(We+qe,Ne-ft+rn,We+qe,Ne-ft+rn,We+qe,Ne-ft+sn,0,!0),this.v.setTripleAt(We+qe,Ne+ft-rn,We+qe,Ne+ft-sn,We+qe,Ne+ft-rn,1,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne+ft,We+qe-rn,Ne+ft,We+qe-sn,Ne+ft,2,!0),this.v.setTripleAt(We-qe+rn,Ne+ft,We-qe+sn,Ne+ft,We-qe+rn,Ne+ft,3,!0),this.v.setTripleAt(We-qe,Ne+ft-rn,We-qe,Ne+ft-rn,We-qe,Ne+ft-sn,4,!0),this.v.setTripleAt(We-qe,Ne-ft+rn,We-qe,Ne-ft+sn,We-qe,Ne-ft+rn,5,!0),this.v.setTripleAt(We-qe+rn,Ne-ft,We-qe+rn,Ne-ft,We-qe+sn,Ne-ft,6,!0),this.v.setTripleAt(We+qe-rn,Ne-ft,We+qe-sn,Ne-ft,We+qe-rn,Ne-ft,7,!0)):(this.v.setTripleAt(We-qe,Ne+ft,We-qe+sn,Ne+ft,We-qe,Ne+ft,2),this.v.setTripleAt(We-qe,Ne-ft,We-qe,Ne-ft+sn,We-qe,Ne-ft,3))):(this.v.setTripleAt(We+qe,Ne-ft+rn,We+qe,Ne-ft+sn,We+qe,Ne-ft+rn,0,!0),rn!==0?(this.v.setTripleAt(We+qe-rn,Ne-ft,We+qe-rn,Ne-ft,We+qe-sn,Ne-ft,1,!0),this.v.setTripleAt(We-qe+rn,Ne-ft,We-qe+sn,Ne-ft,We-qe+rn,Ne-ft,2,!0),this.v.setTripleAt(We-qe,Ne-ft+rn,We-qe,Ne-ft+rn,We-qe,Ne-ft+sn,3,!0),this.v.setTripleAt(We-qe,Ne+ft-rn,We-qe,Ne+ft-sn,We-qe,Ne+ft-rn,4,!0),this.v.setTripleAt(We-qe+rn,Ne+ft,We-qe+rn,Ne+ft,We-qe+sn,Ne+ft,5,!0),this.v.setTripleAt(We+qe-rn,Ne+ft,We+qe-sn,Ne+ft,We+qe-rn,Ne+ft,6,!0),this.v.setTripleAt(We+qe,Ne+ft-rn,We+qe,Ne+ft-rn,We+qe,Ne+ft-sn,7,!0)):(this.v.setTripleAt(We-qe,Ne-ft,We-qe+sn,Ne-ft,We-qe,Ne-ft,1,!0),this.v.setTripleAt(We-qe,Ne+ft,We-qe,Ne+ft-sn,We-qe,Ne+ft,2,!0),this.v.setTripleAt(We+qe,Ne+ft,We+qe-sn,Ne+ft,We+qe,Ne+ft,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:xe},g([Ot],Xe),Xe})();function At(Xe,We,Ne){var qe;return Ne===3||Ne===4?qe=(Ne===3?We.pt:We.ks).k.length?new Rt(Xe,We,Ne):new Qe(Xe,We,Ne):Ne===5?qe=new pt(Xe,We):Ne===6?qe=new Jt(Xe,We):Ne===7&&(qe=new et(Xe,We)),qe.k&&Xe.addDynamicProperty(qe),qe}function Tt(){return Qe}function Kt(){return Rt}var en={};return en.getShapeProp=At,en.getConstructorFunction=Tt,en.getKeyframedConstructorFunction=Kt,en})(),jt=(function(){var G=Math.cos,X=Math.sin,pe=Math.tan,xe=Math.round;function Ae(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function Ee(ze){if(ze===0)return this;var ht=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 Ye(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 At(ze,ht,wt,xi,Zo,Po,Ca,Jo,fl,ga,Ja,E0,C2,I0,D0,nh){return this.props[0]=ze,this.props[1]=ht,this.props[2]=wt,this.props[3]=xi,this.props[4]=Zo,this.props[5]=Po,this.props[6]=Ca,this.props[7]=Jo,this.props[8]=fl,this.props[9]=ga,this.props[10]=Ja,this.props[11]=E0,this.props[12]=C2,this.props[13]=I0,this.props[14]=D0,this.props[15]=nh,this}function Tt(ze,ht,wt){return wt=wt||0,ze!==0||ht!==0||wt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ze,ht,wt,1):this}function Kt(ze,ht,wt,xi,Zo,Po,Ca,Jo,fl,ga,Ja,E0,C2,I0,D0,nh){var dr=this.props;if(ze===1&&ht===0&&wt===0&&xi===0&&Zo===0&&Po===1&&Ca===0&&Jo===0&&fl===0&&ga===0&&Ja===1&&E0===0)return dr[12]=dr[12]*ze+dr[15]*C2,dr[13]=dr[13]*Po+dr[15]*I0,dr[14]=dr[14]*Ja+dr[15]*D0,dr[15]*=nh,this._identityCalculated=!1,this;var jk=dr[0],$k=dr[1],ww=dr[2],Wf=dr[3],x5=dr[4],ih=dr[5],U7=dr[6],W7=dr[7],A2=dr[8],Q7=dr[9],v2=dr[10],Cw=dr[11],M_=dr[12],O_=dr[13],F_=dr[14],R_=dr[15];return dr[0]=jk*ze+$k*Zo+ww*fl+Wf*C2,dr[1]=jk*ht+$k*Po+ww*ga+Wf*I0,dr[2]=jk*wt+$k*Ca+ww*Ja+Wf*D0,dr[3]=jk*xi+$k*Jo+ww*E0+Wf*nh,dr[4]=x5*ze+ih*Zo+U7*fl+W7*C2,dr[5]=x5*ht+ih*Po+U7*ga+W7*I0,dr[6]=x5*wt+ih*Ca+U7*Ja+W7*D0,dr[7]=x5*xi+ih*Jo+U7*E0+W7*nh,dr[8]=A2*ze+Q7*Zo+v2*fl+Cw*C2,dr[9]=A2*ht+Q7*Po+v2*ga+Cw*I0,dr[10]=A2*wt+Q7*Ca+v2*Ja+Cw*D0,dr[11]=A2*xi+Q7*Jo+v2*E0+Cw*nh,dr[12]=M_*ze+O_*Zo+F_*fl+R_*C2,dr[13]=M_*ht+O_*Po+F_*ga+R_*I0,dr[14]=M_*wt+O_*Ca+F_*Ja+R_*D0,dr[15]=M_*xi+O_*Jo+F_*E0+R_*nh,this._identityCalculated=!1,this}function en(ze){var ht=ze.props;return this.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15])}function Xe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function We(ze){for(var ht=0;ht<16;){if(ze.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function Ne(ze){var ht;for(ht=0;ht<16;ht+=1)ze.props[ht]=this.props[ht];return ze}function qe(ze){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=ze[ht]}function ft(ze,ht,wt){return{x:ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12],y:ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13],z:ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]}}function rn(ze,ht,wt){return ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12]}function sn(ze,ht,wt){return ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13]}function zt(ze,ht,wt){return ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]}function po(){var ze=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/ze,wt=-this.props[1]/ze,xi=-this.props[4]/ze,Zo=this.props[0]/ze,Po=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ze,Ca=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ze,Jo=new jt;return Jo.props[0]=ht,Jo.props[1]=wt,Jo.props[4]=xi,Jo.props[5]=Zo,Jo.props[12]=Po,Jo.props[13]=Ca,Jo}function Eo(ze){return this.getInverseMatrix().applyToPointArray(ze[0],ze[1],ze[2]||0)}function ci(ze){var ht,wt=ze.length,xi=[];for(ht=0;ht<wt;ht+=1)xi[ht]=Eo(ze[ht]);return xi}function Ko(ze,ht,wt){var xi=y("float32",6);if(this.isIdentity())xi[0]=ze[0],xi[1]=ze[1],xi[2]=ht[0],xi[3]=ht[1],xi[4]=wt[0],xi[5]=wt[1];else{var Zo=this.props[0],Po=this.props[1],Ca=this.props[4],Jo=this.props[5],fl=this.props[12],ga=this.props[13];xi[0]=ze[0]*Zo+ze[1]*Ca+fl,xi[1]=ze[0]*Po+ze[1]*Jo+ga,xi[2]=ht[0]*Zo+ht[1]*Ca+fl,xi[3]=ht[0]*Po+ht[1]*Jo+ga,xi[4]=wt[0]*Zo+wt[1]*Ca+fl,xi[5]=wt[0]*Po+wt[1]*Jo+ga}return xi}function lo(ze,ht,wt){return this.isIdentity()?[ze,ht,wt]:[ze*this.props[0]+ht*this.props[4]+wt*this.props[8]+this.props[12],ze*this.props[1]+ht*this.props[5]+wt*this.props[9]+this.props[13],ze*this.props[2]+ht*this.props[6]+wt*this.props[10]+this.props[14]]}function Vt(ze,ht){if(this.isIdentity())return ze+","+ht;var wt=this.props;return Math.round(100*(ze*wt[0]+ht*wt[4]+wt[12]))/100+","+Math.round(100*(ze*wt[1]+ht*wt[5]+wt[13]))/100}function xn(){for(var ze=0,ht=this.props,wt="matrix3d(",xi=1e4;ze<16;)wt+=xe(ht[ze]*xi)/xi,wt+=ze===15?")":",",ze+=1;return wt}function xt(ze){var ht=1e4;return ze<1e-6&&ze>0||ze>-1e-6&&ze<0?xe(ze*ht)/ht:ze}function dt(){var ze=this.props;return"matrix("+xt(ze[0])+","+xt(ze[1])+","+xt(ze[4])+","+xt(ze[5])+","+xt(ze[12])+","+xt(ze[13])+")"}return function(){this.reset=Ae,this.rotate=Ee,this.rotateX=Re,this.rotateY=Qe,this.rotateZ=Ye,this.skew=Jt,this.skewFromAxis=et,this.shear=Rt,this.scale=pt,this.setTransform=At,this.translate=Tt,this.transform=Kt,this.multiply=en,this.applyToPoint=ft,this.applyToX=rn,this.applyToY=sn,this.applyToZ=zt,this.applyToPointArray=lo,this.applyToTriplePoints=Ko,this.applyToPointStringified=Vt,this.toCSS=xn,this.to2dCSS=dt,this.clone=Ne,this.cloneFromProps=qe,this.equals=We,this.inversePoints=ci,this.inversePoint=Eo,this.getInverseMatrix=po,this._t=this.transform,this.isIdentity=Xe,this._identity=!0,this._identityCalculated=!1,this.props=y("float32",16),this.reset()}})();function bn(G){return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},bn(G)}var Yt={};function an(G){u(G)}function Zt(){Pe.searchAnimations()}function nt(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 at;case"matrix":return jt;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=nt,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,vn=ei[pi]||{src:""};Gn=vn.src?vn.src.replace(/^[^\?]+\??/,""):"",Yn("renderer");var Xn=setInterval(Rn,100);try{bn(n)!=="object"&&(window.bodymovin=Yt)}catch{}var un=(function(){var G={},X={};function pe(Ae,Ee){X[Ae]||(X[Ae]=Ee)}function xe(Ae,Ee,Re){return new X[Ae](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,Ae){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,Ye=[],Rt=Ee.length;for(Re=0;Re<Rt;Re+=1)if(!((Qe=Ee[Re]).e*Ae<xe||Qe.s*Ae>xe+pe)){var Jt,et;Jt=Qe.s*Ae<=xe?0:(Qe.s*Ae-xe)/pe,et=Qe.e*Ae>=xe+pe?1:(Qe.e*Ae-xe)/pe,Ye.push([Jt,et])}return Ye.length||Ye.push([0,0]),Ye},It.prototype.releasePathsData=function(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 Ae=X;X=pe,pe=Ae}X=1e-4*Math.round(1e4*X),pe=1e-4*Math.round(1e4*pe),this.sValue=X,this.eValue=pe}else X=this.sValue,pe=this.eValue;var Ee,Re,Qe,Ye,Rt,Jt,et,pt=this.shapes.length,At=0;if(pe===X)for(Re=0;Re<pt;Re+=1)this.shapes[Re].localShapeCollection.releaseShapes(),this.shapes[Re].shape._mdf=!0,this.shapes[Re].shape.paths=this.shapes[Re].localShapeCollection,this._mdf&&(this.shapes[Re].pathsData.length=0);else if(pe===1&&X===0||pe===0&&X===1){if(this._mdf)for(Re=0;Re<pt;Re+=1)this.shapes[Re].pathsData.length=0,this.shapes[Re].shape._mdf=!0}else{var Tt,Kt,en=[];for(Re=0;Re<pt;Re+=1)if((Tt=this.shapes[Re]).shape._mdf||this._mdf||G||this.m===2){if(Ye=(Ee=Tt.shape.paths)._length,et=0,!Tt.shape._mdf&&Tt.pathsData.length)et=Tt.totalShapeLength;else{for(Rt=this.releasePathsData(Tt.pathsData),Qe=0;Qe<Ye;Qe+=1)Jt=De.getSegmentsLength(Ee.shapes[Qe]),Rt.push(Jt),et+=Jt.totalLength;Tt.totalShapeLength=et,Tt.pathsData=Rt}At+=et,Tt.shape._mdf=!0}else Tt.shape.paths=Tt.localShapeCollection;var Xe,We=X,Ne=pe,qe=0;for(Re=pt-1;Re>=0;Re-=1)if((Tt=this.shapes[Re]).shape._mdf){for((Kt=Tt.localShapeCollection).releaseShapes(),this.m===2&&pt>1?(Xe=this.calculateShapeEdges(X,pe,Tt.totalShapeLength,qe,At),qe+=Tt.totalShapeLength):Xe=[[We,Ne]],Ye=Xe.length,Qe=0;Qe<Ye;Qe+=1){We=Xe[Qe][0],Ne=Xe[Qe][1],en.length=0,Ne<=1?en.push({s:Tt.totalShapeLength*We,e:Tt.totalShapeLength*Ne}):We>=1?en.push({s:Tt.totalShapeLength*(We-1),e:Tt.totalShapeLength*(Ne-1)}):(en.push({s:Tt.totalShapeLength*We,e:Tt.totalShapeLength}),en.push({s:0,e:Tt.totalShapeLength*(Ne-1)}));var ft=this.addShapes(Tt,en[0]);if(en[0].s!==en[0].e){if(en.length>1)if(Tt.shape.paths.shapes[Tt.shape.paths._length-1].c){var rn=ft.pop();this.addPaths(ft,Kt),ft=this.addShapes(Tt,en[1],rn)}else this.addPaths(ft,Kt),ft=this.addShapes(Tt,en[1]);this.addPaths(ft,Kt)}}Tt.shape.paths=Kt}}},It.prototype.addPaths=function(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,Ae,Ee,Re){Ae.setXYAt(X[0],X[1],"o",Ee),Ae.setXYAt(pe[0],pe[1],"i",Ee+1),Re&&Ae.setXYAt(G[0],G[1],"v",Ee),Ae.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,Ae,Ee,Re,Qe,Ye,Rt,Jt,et=G.pathsData,pt=G.shape.paths.shapes,At=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<At;xe+=1){for(Ye=et[xe].lengths,pe.c=pt[xe].c,Ee=pt[xe].c?Ye.length:Ye.length+1,Ae=1;Ae<Ee;Ae+=1)if(Tt+(Re=Ye[Ae-1]).addedLength<X.s)Tt+=Re.addedLength,pe.c=!1;else{if(Tt>X.e){pe.c=!1;break}X.s<=Tt&&X.e>=Tt+Re.addedLength?(this.addSegment(pt[xe].v[Ae-1],pt[xe].o[Ae-1],pt[xe].i[Ae],pt[xe].v[Ae],pe,Qe,en),en=!1):(Rt=De.getNewSegment(pt[xe].v[Ae-1],pt[xe].v[Ae],pt[xe].o[Ae-1],pt[xe].i[Ae],(X.s-Tt)/Re.addedLength,(X.e-Tt)/Re.addedLength,Ye[Ae-1]),this.addSegmentFromArray(Rt,pe,Qe,en),en=!1,pe.c=!1),Tt+=Re.addedLength,Qe+=1}if(pt[xe].c&&Ye.length){if(Re=Ye[Ae-1],Tt<=X.e){var Xe=Ye[Ae-1].addedLength;X.s<=Tt&&X.e>=Tt+Xe?(this.addSegment(pt[xe].v[Ae-1],pt[xe].o[Ae-1],pt[xe].i[0],pt[xe].v[0],pe,Qe,en),en=!1):(Rt=De.getNewSegment(pt[xe].v[Ae-1],pt[xe].v[0],pt[xe].o[Ae-1],pt[xe].i[0],(X.s-Tt)/Xe,(X.e-Tt)/Xe,Ye[Ae-1]),this.addSegmentFromArray(Rt,pe,Qe,en),en=!1,pe.c=!1)}else pe.c=!1;Tt+=Re.addedLength,Qe+=1}if(pe._length&&(pe.setXYAt(pe.v[Jt][0],pe.v[Jt][1],"i",Jt),pe.setXYAt(pe.v[pe._length-1][0],pe.v[pe._length-1][1],"o",pe._length-1)),Tt>X.e)break;xe<At-1&&(pe=Mt.newElement(),en=!0,Kt.push(pe),Qe=0)}return Kt},g([Tn],Ft),Ft.prototype.initModifierProperties=function(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],Ae=G._length,Ee=0;for(Ee=0;Ee<Ae;Ee+=1)xe[0]+=G.v[Ee][0],xe[1]+=G.v[Ee][1];xe[0]/=Ae,xe[1]/=Ae;var Re,Qe,Ye,Rt,Jt,et,pt=Mt.newElement();for(pt.c=G.c,Ee=0;Ee<Ae;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,Ye=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,Ye,Rt,Jt,et,Ee);return pt},Ft.prototype.processShapes=function(G){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Bt=(function(){var G=[0,0];function X(Ye){var Rt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||Rt,this.a&&Ye.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&Ye.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&Ye.skewFromAxis(-this.sk.v,this.sa.v),this.r?Ye.rotate(-this.r.v):Ye.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?Ye.translate(this.px.v,this.py.v,-this.pz.v):Ye.translate(this.px.v,this.py.v,0):Ye.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function pe(Ye){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||Ye){var Rt;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var Jt,et;if(Rt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(Jt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/Rt,0),et=this.p.getValueAtTime(this.p.keyframes[0].t/Rt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(Jt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/Rt,0),et=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/Rt,0)):(Jt=this.p.pv,et=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/Rt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){Jt=[],et=[];var pt=this.px,At=this.py;pt._caching.lastFrame+pt.offsetTime<=pt.keyframes[0].t?(Jt[0]=pt.getValueAtTime((pt.keyframes[0].t+.01)/Rt,0),Jt[1]=At.getValueAtTime((At.keyframes[0].t+.01)/Rt,0),et[0]=pt.getValueAtTime(pt.keyframes[0].t/Rt,0),et[1]=At.getValueAtTime(At.keyframes[0].t/Rt,0)):pt._caching.lastFrame+pt.offsetTime>=pt.keyframes[pt.keyframes.length-1].t?(Jt[0]=pt.getValueAtTime(pt.keyframes[pt.keyframes.length-1].t/Rt,0),Jt[1]=At.getValueAtTime(At.keyframes[At.keyframes.length-1].t/Rt,0),et[0]=pt.getValueAtTime((pt.keyframes[pt.keyframes.length-1].t-.01)/Rt,0),et[1]=At.getValueAtTime((At.keyframes[At.keyframes.length-1].t-.01)/Rt,0)):(Jt=[pt.pv,At.pv],et[0]=pt.getValueAtTime((pt._caching.lastFrame+pt.offsetTime-.01)/Rt,pt.offsetTime),et[1]=At.getValueAtTime((At._caching.lastFrame+At.offsetTime-.01)/Rt,At.offsetTime))}else Jt=et=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 Ae(){}function Ee(Ye){this._addDynamicProperty(Ye),this.elem.addDynamicProperty(Ye),this._isDirty=!0}function Re(Ye,Rt,Jt){if(this.elem=Ye,this.frameId=-1,this.propType="transform",this.data=Rt,this.v=new jt,this.pre=new jt,this.appliedTransformations=0,this.initDynamicPropertyContainer(Jt||Ye),Rt.p&&Rt.p.s?(this.px=Ze.getProp(Ye,Rt.p.x,0,0,this),this.py=Ze.getProp(Ye,Rt.p.y,0,0,this),Rt.p.z&&(this.pz=Ze.getProp(Ye,Rt.p.z,0,0,this))):this.p=Ze.getProp(Ye,Rt.p||{k:[0,0,0]},1,0,this),Rt.rx){if(this.rx=Ze.getProp(Ye,Rt.rx,0,D,this),this.ry=Ze.getProp(Ye,Rt.ry,0,D,this),this.rz=Ze.getProp(Ye,Rt.rz,0,D,this),Rt.or.k[0].ti){var et,pt=Rt.or.k.length;for(et=0;et<pt;et+=1)Rt.or.k[et].to=null,Rt.or.k[et].ti=null}this.or=Ze.getProp(Ye,Rt.or,1,D,this),this.or.sh=!0}else this.r=Ze.getProp(Ye,Rt.r||{k:0},0,D,this);Rt.sk&&(this.sk=Ze.getProp(Ye,Rt.sk,0,D,this),this.sa=Ze.getProp(Ye,Rt.sa,0,D,this)),this.a=Ze.getProp(Ye,Rt.a||{k:[0,0,0]},1,0,this),this.s=Ze.getProp(Ye,Rt.s||{k:[100,100,100]},1,.01,this),Rt.o?this.o=Ze.getProp(Ye,Rt.o,0,.01,Ye):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function Qe(Ye,Rt,Jt){return new Re(Ye,Rt,Jt)}return Re.prototype={applyToMatrix:X,getValue:pe,precalculateMatrix:xe,autoOrient:Ae},g([Ot],Re),Re.prototype.addDynamicProperty=Ee,Re.prototype._addDynamicProperty=Ot.prototype.addDynamicProperty,{getTransformProperty:Qe}})();function Fn(){}function _n(){}function Ut(G,X){return 1e5*Math.abs(G-X)<=Math.min(Math.abs(G),Math.abs(X))}function Li(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 Ae=-X/(2*G);if(xe===0)return[Ae];var Ee=Math.sqrt(xe)/(2*G);return[Ae-Ee,Ae+Ee]}function Ci(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,Ae){Ae&&so(G,X)&&(X=$o(G,xe,1/3)),Ae&&so(pe,xe)&&(pe=$o(G,xe,2/3));var Ee=Ci(G[0],X[0],pe[0],xe[0]),Re=Ci(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 Ae=xe;xe=pe,pe=Ae}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 Cn(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[Cn(X[0],G.t1,G.t),Cn(X[1],G.t,G.t2)]}function fn(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 Ht(G,X,pe,xe,Ae,Ee){if(fn(G,X)){if(pe>=Ee||G.width<=xe&&G.height<=xe&&X.width<=xe&&X.height<=xe)return void Ae.push([G.t,X.t]);var Re=Vn(G),Qe=Vn(X);Ht(Re[0],Qe[0],pe+1,xe,Ae,Ee),Ht(Re[0],Qe[1],pe+1,xe,Ae,Ee),Ht(Re[1],Qe[0],pe+1,xe,Ae,Ee),Ht(Re[1],Qe[1],pe+1,xe,Ae,Ee)}}function Pn(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 Ae=[G[0],G[1],1],Ee=[X[0],X[1],1],Re=[pe[0],pe[1],1],Qe=[xe[0],xe[1],1],Ye=Pn(Pn(Ae,Ee),Pn(Re,Qe));return Li(Ye[2])?null:[Ye[0]/Ye[2],Ye[1]/Ye[2]]}function Zi(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 Ut(G[0],X[0])&&Ut(G[1],X[1])}function ha(){}function yr(G,X,pe,xe,Ae,Ee,Re){var Qe=pe-Math.PI/2,Ye=pe+Math.PI/2,Rt=X[0]+Math.cos(pe)*xe*Ae,Jt=X[1]-Math.sin(pe)*xe*Ae;G.setTripleAt(Rt,Jt,Rt+Math.cos(Qe)*Ee,Jt-Math.sin(Qe)*Ee,Rt+Math.cos(Ye)*Re,Jt-Math.sin(Ye)*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(),Ae=Da(G.v[pe],G.v[xe]);return Math.atan2(0,1)-Math.atan2(Ae[1],Ae[0])}function Dt(G,X,pe,xe,Ae,Ee,Re){var Qe=En(X,pe),Ye=X.v[pe%X._length],Rt=X.v[pe===0?X._length-1:pe-1],Jt=X.v[(pe+1)%X._length],et=Ee===2?Math.sqrt(Math.pow(Ye[0]-Rt[0],2)+Math.pow(Ye[1]-Rt[1],2)):0,pt=Ee===2?Math.sqrt(Math.pow(Ye[0]-Jt[0],2)+Math.pow(Ye[1]-Jt[1],2)):0;yr(G,X.v[pe%X._length],Qe,Re,xe,pt/(2*(Ae+1)),et/(2*(Ae+1)))}function Mn(G,X,pe,xe,Ae,Ee){for(var Re=0;Re<xe;Re+=1){var Qe=(Re+1)/(xe+1),Ye=Ae===2?Math.sqrt(Math.pow(X.points[3][0]-X.points[0][0],2)+Math.pow(X.points[3][1]-X.points[0][1],2)):0,Rt=X.normalAngle(Qe);yr(G,X.point(Qe),Rt,Ee,pe,Ye/(2*(xe+1)),Ye/(2*(xe+1))),Ee=-Ee}return Ee}function wi(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 $i(G,X){var pe,xe,Ae,Ee,Re,Qe,Ye;pe=(Ye=wi(G.points[0],G.points[1],X))[0],xe=Ye[1],Ae=(Ye=wi(G.points[1],G.points[2],X))[0],Ee=Ye[1],Re=(Ye=wi(G.points[2],G.points[3],X))[0],Qe=Ye[1];var Rt=Ki(pe,xe,Ae,Ee);Rt===null&&(Rt=xe);var Jt=Ki(Re,Qe,Ae,Ee);return Jt===null&&(Jt=Re),new pn(pe,Rt,Jt,Qe)}function Qi(G,X,pe,xe,Ae){var Ee=X.points[3],Re=pe.points[0];if(xe===3||so(Ee,Re))return Ee;if(xe===2){var Qe=-X.tangentAngle(1),Ye=-pe.tangentAngle(0)+Math.PI,Rt=Ki(Ee,Zi(Ee,Qe+Math.PI/2,100),Re,Zi(Re,Qe+Math.PI/2,100)),Jt=Rt?Qo(Rt,Ee):Qo(Ee,Re)/2,et=Zi(Ee,Qe,2*Jt*L);return G.setXYAt(et[0],et[1],"o",G.length()-1),et=Zi(Re,Ye,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)<Ae?(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&&Ut(pe[0][0],1)&&pe.shift(),pe.length?pe[0]:null}function Ho(G,X){var pe=G.slice(),xe=X.slice(),Ae=vi(G[G.length-1],X[0]);return Ae&&(pe[G.length-1]=G[G.length-1].split(Ae[0])[0],xe[0]=X[0].split(Ae[1])[1]),G.length>1&&X.length>1&&(Ae=vi(G[0],X[X.length-1]))?[[G[0].split(Ae[0])[0]],[X[X.length-1].split(Ae[1])[1]]]:[pe,xe]}function fi(G){for(var X,pe=1;pe<G.length;pe+=1)X=Ho(G[pe-1],G[pe]),G[pe-1]=X[0],G[pe]=X[1];return G.length>1&&(X=Ho(G[G.length-1],G[0]),G[G.length-1]=X[0],G[0]=X[1]),G}function fo(G,X){var pe,xe,Ae,Ee,Re=G.inflectionPoints();if(Re.length===0)return[$i(G,X)];if(Re.length===1||Ut(Re[1],1))return pe=(Ae=G.split(Re[0]))[0],xe=Ae[1],[$i(pe,X),$i(xe,X)];pe=(Ae=G.split(Re[0]))[0];var Qe=(Re[1]-Re[0])/(1-Re[0]);return Ee=(Ae=Ae[1].split(Qe))[0],xe=Ae[1],[$i(pe,X),$i(Ee,X),$i(xe,X)]}function br(){}function _t(G){for(var X,pe=G.fStyle?G.fStyle.split(" "):[],xe="normal",Ae="normal",Ee=pe.length,Re=0;Re<Ee;Re+=1)switch(X=pe[Re].toLowerCase(),X){case"italic":Ae="italic";break;case"bold":xe="700";break;case"black":xe="900";break;case"medium":xe="500";break;case"regular":case"normal":xe="400";break;case"light":case"thin":xe="200"}return{style:Ae,weight:G.fWeight||xe}}g([Tn],Fn),Fn.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 jt,this.rMatrix=new jt,this.sMatrix=new jt,this.tMatrix=new jt,this.matrix=new jt},Fn.prototype.applyTransforms=function(G,X,pe,xe,Ae,Ee){var Re=Ee?-1:1,Qe=xe.s.v[0]+(1-xe.s.v[0])*(1-Ae),Ye=xe.s.v[1]+(1-xe.s.v[1])*(1-Ae);G.translate(xe.p.v[0]*Re*Ae,xe.p.v[1]*Re*Ae,xe.p.v[2]),X.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),X.rotate(-xe.r.v*Re*Ae),X.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2]),pe.translate(-xe.a.v[0],-xe.a.v[1],xe.a.v[2]),pe.scale(Ee?1/Qe:Qe,Ee?1/Ye:Ye),pe.translate(xe.a.v[0],xe.a.v[1],xe.a.v[2])},Fn.prototype.init=function(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)},Fn.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)},Fn.prototype.cloneElements=function(G){var X=JSON.parse(JSON.stringify(G));return this.resetElements(X),X},Fn.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)},Fn.prototype.processShapes=function(G){var X,pe,xe,Ae,Ee,Re=!1;if(this._mdf||G){var Qe,Ye=Math.ceil(this.c.v);if(this._groups.length<Ye){for(;this._groups.length<Ye;){var Rt={it:this.cloneElements(this._elements),ty:"gr"};Rt.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,Rt),this._groups.splice(0,0,Rt),this._currentCopies+=1}this.elem.reloadShapes(),Re=!0}for(Ee=0,xe=0;xe<=this._groups.length-1;xe+=1){if(Qe=Ee<Ye,this._groups[xe]._render=Qe,this.changeGroupRender(this._groups[xe].it,Qe),!Qe){var Jt=this.elemsData[xe].it,et=Jt[Jt.length-1];et.transform.op.v!==0?(et.transform.op._mdf=!0,et.transform.op.v=0):et.transform.op._mdf=!1}Ee+=1}this._currentCopies=Ye;var pt=this.o.v,At=pt%1,Tt=pt>0?Math.floor(pt):Math.ceil(pt),Kt=this.pMatrix.props,en=this.rMatrix.props,Xe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var We,Ne,qe=0;if(pt>0){for(;qe<Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),qe+=1;At&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,At,!1),qe+=At)}else if(pt<0){for(;qe>Tt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),qe-=1;At&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-At,!0),qe-=At)}for(xe=this.data.m===1?0:this._currentCopies-1,Ae=this.data.m===1?1:-1,Ee=this._currentCopies;Ee;){if(Ne=(pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props).length,X[X.length-1].transform.mProps._mdf=!0,X[X.length-1].transform.op._mdf=!0,X[X.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(xe/(this._currentCopies-1)),qe!==0){for((xe!==0&&Ae===1||xe!==this._currentCopies-1&&Ae===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(en[0],en[1],en[2],en[3],en[4],en[5],en[6],en[7],en[8],en[9],en[10],en[11],en[12],en[13],en[14],en[15]),this.matrix.transform(Xe[0],Xe[1],Xe[2],Xe[3],Xe[4],Xe[5],Xe[6],Xe[7],Xe[8],Xe[9],Xe[10],Xe[11],Xe[12],Xe[13],Xe[14],Xe[15]),this.matrix.transform(Kt[0],Kt[1],Kt[2],Kt[3],Kt[4],Kt[5],Kt[6],Kt[7],Kt[8],Kt[9],Kt[10],Kt[11],Kt[12],Kt[13],Kt[14],Kt[15]),We=0;We<Ne;We+=1)pe[We]=this.matrix.props[We];this.matrix.reset()}else for(this.matrix.reset(),We=0;We<Ne;We+=1)pe[We]=this.matrix.props[We];qe+=1,Ee-=1,xe+=Ae}}else for(Ee=this._currentCopies,xe=0,Ae=1;Ee;)pe=(X=this.elemsData[xe].it)[X.length-1].transform.mProps.v.props,X[X.length-1].transform.mProps._mdf=!1,X[X.length-1].transform.op._mdf=!1,Ee-=1,xe+=Ae;return Re},Fn.prototype.addShape=function(){},g([Tn],_n),_n.prototype.initModifierProperties=function(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,Ae,Ee,Re,Qe,Ye,Rt,Jt,et,pt,At,Tt,Kt,en=G._length,Xe=0;for(xe=0;xe<en;xe+=1)Ae=G.v[xe],Re=G.o[xe],Ee=G.i[xe],Ae[0]===Re[0]&&Ae[1]===Re[1]&&Ae[0]===Ee[0]&&Ae[1]===Ee[1]?xe!==0&&xe!==en-1||G.c?(Qe=xe===0?G.v[en-1]:G.v[xe-1],Rt=(Ye=Math.sqrt(Math.pow(Ae[0]-Qe[0],2)+Math.pow(Ae[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Jt=Tt=Ae[0]+(Qe[0]-Ae[0])*Rt,et=Kt=Ae[1]-(Ae[1]-Qe[1])*Rt,pt=Jt-(Jt-Ae[0])*L,At=et-(et-Ae[1])*L,pe.setTripleAt(Jt,et,pt,At,Tt,Kt,Xe),Xe+=1,Qe=xe===en-1?G.v[0]:G.v[xe+1],Rt=(Ye=Math.sqrt(Math.pow(Ae[0]-Qe[0],2)+Math.pow(Ae[1]-Qe[1],2)))?Math.min(Ye/2,X)/Ye:0,Jt=pt=Ae[0]+(Qe[0]-Ae[0])*Rt,et=At=Ae[1]+(Qe[1]-Ae[1])*Rt,Tt=Jt-(Jt-Ae[0])*L,Kt=et-(et-Ae[1])*L,pe.setTripleAt(Jt,et,pt,At,Tt,Kt,Xe),Xe+=1):(pe.setTripleAt(Ae[0],Ae[1],Re[0],Re[1],Ee[0],Ee[1],Xe),Xe+=1):(pe.setTripleAt(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,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.rd.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},pn.prototype.point=function(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(Li(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 Li(xe)?xe>0&&xe<1?[X]:[]:[X-xe,X+xe].filter((function(Ae){return Ae>0&&Ae<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),Ae=$o(X,pe,G),Ee=$o(pe,xe,G),Re=$o(Ae,Ee,G);return[new pn(this.points[0],X,Ae,Re,!0),new pn(Re,Ee,xe,this.points[3],!0)]},pn.prototype.bounds=function(){return{x:Gt(this,0),y:Gt(this,1)}},pn.prototype.boundingBox=function(){var 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 Ht(Cn(this,0,1),Cn(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 Ae=G._length,Ee=Mt.newElement();if(Ee.c=G.c,G.c||(Ae-=1),Ae===0)return Ee;var Re=-1,Qe=pn.shapeSegment(G,0);Dt(Ee,G,0,X,pe,xe,Re);for(var Ye=0;Ye<Ae;Ye+=1)Re=Mn(Ee,Qe,X,pe,xe,-Re),Qe=Ye!==Ae-1||G.c?pn.shapeSegment(G,(Ye+1)%Ae):null,Dt(Ee,G,Ye+1,X,pe,xe,Re);return Ee},ha.prototype.processShapes=function(G){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amplitude.v,Rt=Math.max(0,Math.round(this.frequency.v)),Jt=this.pointsType.v;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Rt,Jt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},g([Tn],br),br.prototype.initModifierProperties=function(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},br.prototype.processPath=function(G,X,pe,xe){var Ae=Mt.newElement();Ae.c=G.c;var Ee=G.length();G.c||(Ee-=1);var Re,Qe,Ye,Rt=[];for(Re=0;Re<Ee;Re+=1)Ye=pn.shapeSegment(G,Re),Rt.push(fo(Ye,X));if(!G.c)for(Re=Ee-1;Re>=0;Re-=1)Ye=pn.shapeSegmentInverted(G,Re),Rt.push(fo(Ye,X));Rt=fi(Rt);var Jt=null,et=null;for(Re=0;Re<Rt.length;Re+=1){var pt=Rt[Re];for(et&&(Jt=Qi(Ae,et,pt[0],pe,xe)),et=pt[pt.length-1],Qe=0;Qe<pt.length;Qe+=1)Ye=pt[Qe],Jt&&so(Ye.points[0],Jt)?Ae.setXYAt(Ye.points[1][0],Ye.points[1][1],"o",Ae.length()-1):Ae.setTripleAt(Ye.points[0][0],Ye.points[0][1],Ye.points[1][0],Ye.points[1][1],Ye.points[0][0],Ye.points[0][1],Ae.length()),Ae.setTripleAt(Ye.points[3][0],Ye.points[3][1],Ye.points[3][0],Ye.points[3][1],Ye.points[2][0],Ye.points[2][1],Ae.length()),Jt=Ye.points[3]}return Rt.length&&Qi(Ae,et,Rt[0][0],pe,xe),Ae},br.prototype.processShapes=function(G){var X,pe,xe,Ae,Ee,Re,Qe=this.shapes.length,Ye=this.amount.v,Rt=this.miterLimit.v,Jt=this.lineJoin;if(Ye!==0)for(pe=0;pe<Qe;pe+=1){if(Re=(Ee=this.shapes[pe]).localShapeCollection,Ee.shape._mdf||this._mdf||G)for(Re.releaseShapes(),Ee.shape._mdf=!0,X=Ee.shape.paths.shapes,Ae=Ee.shape.paths._length,xe=0;xe<Ae;xe+=1)Re.addShape(this.processPath(X[xe],Ye,Jt,Rt));Ee.shape.paths=Ee.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ln=(function(){var 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,Ae=917631,Ee=917601,Re=917626,Qe=65039,Ye=8205,Rt=127462,Jt=127487,et=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function pt(xt){var dt,ze=xt.split(","),ht=ze.length,wt=[];for(dt=0;dt<ht;dt+=1)ze[dt]!=="sans-serif"&&ze[dt]!=="monospace"&&wt.push(ze[dt]);return wt.join(",")}function At(xt,dt){var ze=h("span");ze.setAttribute("aria-hidden",!0),ze.style.fontFamily=dt;var ht=h("span");ht.innerText="giItT1WQy@!-/#",ze.style.position="absolute",ze.style.left="-10000px",ze.style.top="-10000px",ze.style.fontSize="300px",ze.style.fontVariant="normal",ze.style.fontStyle="normal",ze.style.fontWeight="normal",ze.style.letterSpacing="0",ze.appendChild(ht),document.body.appendChild(ze);var wt=ht.offsetWidth;return ht.style.fontFamily=pt(xt)+", "+dt,{node:ht,w:wt,parent:ze}}function Tt(){var xt,dt,ze,ht=this.fonts.length,wt=ht;for(xt=0;xt<ht;xt+=1)this.fonts[xt].loaded?wt-=1:this.fonts[xt].fOrigin==="n"||this.fonts[xt].origin===0?this.fonts[xt].loaded=!0:(dt=this.fonts[xt].monoCase.node,ze=this.fonts[xt].monoCase.w,dt.offsetWidth!==ze?(wt-=1,this.fonts[xt].loaded=!0):(dt=this.fonts[xt].sansCase.node,ze=this.fonts[xt].sansCase.w,dt.offsetWidth!==ze&&(wt-=1,this.fonts[xt].loaded=!0)),this.fonts[xt].loaded&&(this.fonts[xt].sansCase.parent.parentNode.removeChild(this.fonts[xt].sansCase.parent),this.fonts[xt].monoCase.parent.parentNode.removeChild(this.fonts[xt].monoCase.parent)));wt!==0&&Date.now()-this.initTime<G?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function Kt(xt,dt){var ze,ht=document.body&&dt?"svg":"canvas",wt=_t(xt);if(ht==="svg"){var xi=le("text");xi.style.fontSize="100px",xi.setAttribute("font-family",xt.fFamily),xi.setAttribute("font-style",wt.style),xi.setAttribute("font-weight",wt.weight),xi.textContent="1",xt.fClass?(xi.style.fontFamily="inherit",xi.setAttribute("class",xt.fClass)):xi.style.fontFamily=xt.fFamily,dt.appendChild(xi),ze=xi}else{var Zo=new OffscreenCanvas(500,500).getContext("2d");Zo.font=wt.style+" "+wt.weight+" 100px "+xt.fFamily,ze=Zo}function Po(Ca){return ht==="svg"?(ze.textContent=Ca,ze.getComputedTextLength()):ze.measureText(Ca).width}return{measureText:Po}}function en(xt,dt){if(xt){if(this.chars)return this.isLoaded=!0,void(this.fonts=xt.list);if(!document.body)return this.isLoaded=!0,xt.list.forEach((function(Ja){Ja.helper=Kt(Ja),Ja.cache={}})),void(this.fonts=xt.list);var ze,ht=xt.list,wt=ht.length,xi=wt;for(ze=0;ze<wt;ze+=1){var Zo,Po,Ca=!0;if(ht[ze].loaded=!1,ht[ze].monoCase=At(ht[ze].fFamily,"monospace"),ht[ze].sansCase=At(ht[ze].fFamily,"sans-serif"),ht[ze].fPath){if(ht[ze].fOrigin==="p"||ht[ze].origin===3){if((Zo=document.querySelectorAll('style[f-forigin="p"][f-family="'+ht[ze].fFamily+'"], style[f-origin="3"][f-family="'+ht[ze].fFamily+'"]')).length>0&&(Ca=!1),Ca){var Jo=h("style");Jo.setAttribute("f-forigin",ht[ze].fOrigin),Jo.setAttribute("f-origin",ht[ze].origin),Jo.setAttribute("f-family",ht[ze].fFamily),Jo.type="text/css",Jo.innerText="@font-face {font-family: "+ht[ze].fFamily+"; font-style: normal; src: url('"+ht[ze].fPath+"');}",dt.appendChild(Jo)}}else if(ht[ze].fOrigin==="g"||ht[ze].origin===1){for(Zo=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Po=0;Po<Zo.length;Po+=1)Zo[Po].href.indexOf(ht[ze].fPath)!==-1&&(Ca=!1);if(Ca){var fl=h("link");fl.setAttribute("f-forigin",ht[ze].fOrigin),fl.setAttribute("f-origin",ht[ze].origin),fl.type="text/css",fl.rel="stylesheet",fl.href=ht[ze].fPath,document.body.appendChild(fl)}}else if(ht[ze].fOrigin==="t"||ht[ze].origin===2){for(Zo=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Po=0;Po<Zo.length;Po+=1)ht[ze].fPath===Zo[Po].src&&(Ca=!1);if(Ca){var ga=h("link");ga.setAttribute("f-forigin",ht[ze].fOrigin),ga.setAttribute("f-origin",ht[ze].origin),ga.setAttribute("rel","stylesheet"),ga.setAttribute("href",ht[ze].fPath),dt.appendChild(ga)}}}else ht[ze].loaded=!0,xi-=1;ht[ze].helper=Kt(ht[ze],dt),ht[ze].cache={},this.fonts.push(ht[ze])}xi===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function Xe(xt){if(xt){this.chars||(this.chars=[]);var dt,ze,ht,wt=xt.length,xi=this.chars.length;for(dt=0;dt<wt;dt+=1){for(ze=0,ht=!1;ze<xi;)this.chars[ze].style===xt[dt].style&&this.chars[ze].fFamily===xt[dt].fFamily&&this.chars[ze].ch===xt[dt].ch&&(ht=!0),ze+=1;ht||(this.chars.push(xt[dt]),xi+=1)}}}function We(xt,dt,ze){for(var ht=0,wt=this.chars.length;ht<wt;){if(this.chars[ht].ch===xt&&this.chars[ht].style===dt&&this.chars[ht].fFamily===ze)return this.chars[ht];ht+=1}return(typeof xt=="string"&&xt.charCodeAt(0)!==13||!xt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",xt,dt,ze)),X}function Ne(xt,dt,ze){var ht=this.getFontByName(dt),wt=xt;if(!ht.cache[wt]){var xi=ht.helper;if(xt===" "){var Zo=xi.measureText("|"+xt+"|"),Po=xi.measureText("||");ht.cache[wt]=(Zo-Po)/100}else ht.cache[wt]=xi.measureText(xt)/100}return ht.cache[wt]*ze}function qe(xt){for(var dt=0,ze=this.fonts.length;dt<ze;){if(this.fonts[dt].fName===xt)return this.fonts[dt];dt+=1}return this.fonts[0]}function ft(xt){var dt=0,ze=xt.charCodeAt(0);if(ze>=55296&&ze<=56319){var ht=xt.charCodeAt(1);ht>=56320&&ht<=57343&&(dt=1024*(ze-55296)+ht-56320+65536)}return dt}function rn(xt,dt){var ze=xt.toString(16)+dt.toString(16);return et.indexOf(ze)!==-1}function sn(xt){return xt===Ye}function zt(xt){return xt===Qe}function po(xt){var dt=ft(xt);return dt>=Rt&&dt<=Jt}function Eo(xt){return po(xt.substr(0,2))&&po(xt.substr(2,2))}function ci(xt){return pe.indexOf(xt)!==-1}function Ko(xt,dt){var ze=ft(xt.substr(dt,2));if(ze!==xe)return!1;var ht=0;for(dt+=2;ht<5;){if((ze=ft(xt.substr(dt,2)))<Ee||ze>Re)return!1;ht+=1,dt+=2}return ft(xt.substr(dt,2))===Ae}function lo(){this.isLoaded=!0}var Vt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Vt.isModifier=rn,Vt.isZeroWidthJoiner=sn,Vt.isFlagEmoji=Eo,Vt.isRegionalCode=po,Vt.isCombinedCharacter=ci,Vt.isRegionalFlag=Ko,Vt.isVariationSelector=zt,Vt.BLACK_FLAG_CODE_POINT=xe;var xn={addChars:Xe,addFonts:en,getCharData:We,getFontByName:qe,measureText:Ne,checkLoadedFonts:Tt,setIsLoaded:lo};return Vt.prototype=xn,Vt})();function nn(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 Pi(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 ro(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 wr(G,X){var pe=G.ef||[];this.effectElements=[];var xe,Ae,Ee=pe.length;for(xe=0;xe<Ee;xe+=1)Ae=new Cr(pe[xe],X),this.effectElements.push(Ae)}function Cr(G,X){this.init(G,X)}function Nn(){}function Ai(){}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 al(){}g([Ot],Cr),Cr.prototype.getValue=Cr.prototype.iterateDynamicProperties,Cr.prototype.init=function(G,X){this.data=G,this.effectElements=[],this.initDynamicPropertyContainer(X);var pe,xe,Ae=this.data.ef.length,Ee=this.data.ef;for(pe=0;pe<Ae;pe+=1){switch(xe=null,Ee[pe].ty){case 0:xe=new Pi(Ee[pe],X,this);break;case 1:xe=new bo(Ee[pe],X,this);break;case 2:xe=new Gi(Ee[pe],X,this);break;case 3:xe=new ro(Ee[pe],X,this);break;case 4:case 7:xe=new xo(Ee[pe],X,this);break;case 10:xe=new Pt(Ee[pe],X,this);break;case 11:xe=new yi(Ee[pe],X,this);break;case 5:xe=new wr(Ee[pe],X);break;default:xe=new Hr(Ee[pe])}xe&&this.effectElements.push(xe)}},Nn.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var 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 wr(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ai.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(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,Ai],rr),rr.prototype.getBaseElement=function(){return null},rr.prototype.renderFrame=function(){},rr.prototype.destroy=function(){},rr.prototype.initExpressions=function(){},rr.prototype.getFootageData=function(){return this.footageData},ma.prototype.prepareFrame=function(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,Ai],ma),ma.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ma.prototype.show=function(){},ma.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ma.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ma.prototype.resume=function(){this._canPlay=!0},ma.prototype.setRate=function(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(){},al.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()},al.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)}},al.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},al.prototype.createAudio=function(G){return new ma(G,this.globalData,this)},al.prototype.createFootage=function(G){return new rr(G,this.globalData,this)},al.prototype.buildAllItems=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.buildItem(G);this.checkPendingElements()},al.prototype.includeLayers=function(G){this.completeLayers=!1;var X,pe,xe=G.length,Ae=this.layers.length;for(X=0;X<xe;X+=1)for(pe=0;pe<Ae;){if(this.layers[pe].id===G[X].id){this.layers[pe]=G[X];break}pe+=1}},al.prototype.setProjectInterface=function(G){this.globalData.projectInterface=G},al.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},al.prototype.buildElementParenting=function(G,X,pe){for(var xe=this.elements,Ae=this.layers,Ee=0,Re=Ae.length;Ee<Re;)Ae[Ee].ind==X&&(xe[Ee]&&xe[Ee]!==!0?(pe.push(xe[Ee]),xe[Ee].setAsParent(),Ae[Ee].parent!==void 0?this.buildElementParenting(G,Ae[Ee].parent,pe):G.setHierarchy(pe)):(this.buildItem(Ee),this.addPendingElement(G))),Ee+=1},al.prototype.addPendingElement=function(G){this.pendingElements.push(G)},al.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)}},al.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},al.prototype.getElementByPath=function(G){var X,pe=G.shift();if(typeof pe=="number")X=this.elements[pe];else{var xe,Ae=this.elements.length;for(xe=0;xe<Ae;xe+=1)if(this.elements[xe].data.nm===pe){X=this.elements[xe];break}}return G.length===0?X:X.getElementByPath(G)},al.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 BL={TRANSFORM_EFFECT:"transformEFfect"};function b2(){}function k0(G,X,pe){this.data=G,this.element=X,this.globalData=pe,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var xe,Ae=this.globalData.defs,Ee=this.masksProperties?this.masksProperties.length:0;this.viewData=b(Ee),this.solidPath="";var Re,Qe,Ye,Rt,Jt,et,pt,At=this.masksProperties,Tt=0,Kt=[],en=H(),Xe="clipPath",We="clip-path";for(xe=0;xe<Ee;xe+=1)if((At[xe].mode!=="a"&&At[xe].mode!=="n"||At[xe].inv||At[xe].o.k!==100||At[xe].o.x)&&(Xe="mask",We="mask"),At[xe].mode!=="s"&&At[xe].mode!=="i"||Tt!==0?Rt=null:((Rt=le("rect")).setAttribute("fill","#ffffff"),Rt.setAttribute("width",this.element.comp.data.w||0),Rt.setAttribute("height",this.element.comp.data.h||0),Kt.push(Rt)),Re=le("path"),At[xe].mode==="n")this.viewData[xe]={op:Ze.getProp(this.element,At[xe].o,0,.01,this.element),prop:at.getShapeProp(this.element,At[xe],3),elem:Re,lastPath:""},Ae.appendChild(Re);else{var Ne;if(Tt+=1,Re.setAttribute("fill",At[xe].mode==="s"?"#000000":"#ffffff"),Re.setAttribute("clip-rule","nonzero"),At[xe].x.k!==0?(Xe="mask",We="mask",pt=Ze.getProp(this.element,At[xe].x,0,null,this.element),Ne=H(),(Jt=le("filter")).setAttribute("id",Ne),(et=le("feMorphology")).setAttribute("operator","erode"),et.setAttribute("in","SourceGraphic"),et.setAttribute("radius","0"),Jt.appendChild(et),Ae.appendChild(Jt),Re.setAttribute("stroke",At[xe].mode==="s"?"#000000":"#ffffff")):(et=null,pt=null),this.storedData[xe]={elem:Re,x:pt,expan:et,lastPath:"",lastOperator:"",filterId:Ne,lastRadius:0},At[xe].mode==="i"){Ye=Kt.length;var qe=le("g");for(Qe=0;Qe<Ye;Qe+=1)qe.appendChild(Kt[Qe]);var ft=le("mask");ft.setAttribute("mask-type","alpha"),ft.setAttribute("id",en+"_"+Tt),ft.appendChild(Re),Ae.appendChild(ft),qe.setAttribute("mask","url("+p()+"#"+en+"_"+Tt+")"),Kt.length=0,Kt.push(qe)}else Kt.push(Re);At[xe].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[xe]={elem:Re,lastPath:"",op:Ze.getProp(this.element,At[xe].o,0,.01,this.element),prop:at.getShapeProp(this.element,At[xe],3),invRect:Rt},this.viewData[xe].prop.k||this.drawPath(At[xe],this.viewData[xe].prop.v,this.viewData[xe])}for(this.maskElement=le(Xe),Ee=Kt.length,xe=0;xe<Ee;xe+=1)this.maskElement.appendChild(Kt[xe]);Tt>0&&(this.maskElement.setAttribute("id",en),this.element.maskedElement.setAttribute(We,"url("+p()+"#"+en+")"),Ae.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}b2.prototype={initTransform:function(){var G=new jt;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 Ae=this.finalTransform.localOpacity;for(G=0;G<X;G+=1)Ae*=.01*this.localTransforms[G].opacity;this.finalTransform.localOpacity=Ae}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var G=this.renderableEffectsManager.getEffects(BL.TRANSFORM_EFFECT);if(G.length){this.localTransforms=[],this.finalTransform.localMat=new jt;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 Ae,Ee,Re=X.length;for(Ae=0;Ae<Re;Ae+=1)Ee=X[Ae].mat.applyToPointArray(0,0,0),G=[G[0]-Ee[0],G[1]-Ee[1],0];return G},mHelper:new jt},k0.prototype.getMaskProperty=function(G){return this.viewData[G].prop},k0.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 Ae=this.storedData[X].expan;this.storedData[X].x.v<0?(this.storedData[X].lastOperator!=="erode"&&(this.storedData[X].lastOperator="erode",this.storedData[X].elem.setAttribute("filter","url("+p()+"#"+this.storedData[X].filterId+")")),Ae.setAttribute("radius",-this.storedData[X].x.v)):(this.storedData[X].lastOperator!=="dilate"&&(this.storedData[X].lastOperator="dilate",this.storedData[X].elem.setAttribute("filter",null)),this.storedData[X].elem.setAttribute("stroke-width",2*this.storedData[X].x.v))}},k0.prototype.getMaskelement=function(){return this.maskElement},k0.prototype.createLayerSolidPath=function(){var 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+" "},k0.prototype.drawPath=function(G,X,pe){var xe,Ae,Ee=" M"+X.v[0][0]+","+X.v[0][1];for(Ae=X._length,xe=1;xe<Ae;xe+=1)Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[xe][0]+","+X.i[xe][1]+" "+X.v[xe][0]+","+X.v[xe][1];if(X.c&&Ae>1&&(Ee+=" C"+X.o[xe-1][0]+","+X.o[xe-1][1]+" "+X.i[0][0]+","+X.i[0][1]+" "+X.v[0][0]+","+X.v[0][1]),pe.lastPath!==Ee){var Re="";pe.elem&&(X.c&&(Re=G.inv?this.solidPath+Ee:Ee),pe.elem.setAttribute("d",Re)),pe.lastPath=Ee}},k0.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _7=(function(){var G={};function X(xe,Ae){var Ee=le("filter");return Ee.setAttribute("id",xe),Ae!==!0&&(Ee.setAttribute("filterUnits","objectBoundingBox"),Ee.setAttribute("x","0%"),Ee.setAttribute("y","0%"),Ee.setAttribute("width","100%"),Ee.setAttribute("height","100%")),Ee}function pe(){var xe=le("feColorMatrix");return xe.setAttribute("type","matrix"),xe.setAttribute("color-interpolation-filters","sRGB"),xe.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),xe}return G.createFilter=X,G.createAlphaToLuminanceFilter=pe,G})(),PL=(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})(),ML={},k_="filter_result_";function Sk(G){var X,pe,xe="SourceGraphic",Ae=G.data.ef?G.data.ef.length:0,Ee=H(),Re=_7.createFilter(Ee,!0),Qe=0;for(this.filters=[],X=0;X<Ae;X+=1){pe=null;var Ye=G.data.ef[X].ty;ML[Ye]&&(pe=new ML[Ye].effect(Re,G.effectsManager.effectElements[X],G,k_+Qe,xe),xe=k_+Qe,ML[Ye].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 fw(){}function V7(){}function m5(){}function xw(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 Jre(G,X){this.elem=G,this.pos=X}function j_(){}Sk.prototype.renderFrame=function(G){var X,pe=this.filters.length;for(X=0;X<pe;X+=1)this.filters[X].renderFrame(G)},Sk.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},fw.prototype={initRendererElement:function(){this.layerElement=le("g")},createContainerElements:function(){this.matteElement=le("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var 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 Ae=H();if(pe.setAttribute("id",Ae),pe.appendChild(xe),this.globalData.defs.appendChild(pe),this.checkMasks()){var Ee=le("g");Ee.setAttribute("clip-path","url("+p()+"#"+Ae+")"),Ee.appendChild(this.layerElement),this.transformedElement=Ee,G?G.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ae+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new k0(this.data,this,this.globalData),this.renderableEffectsManager=new Sk(this),this.searchEffectTransforms()},getMatte:function(G){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[G]){var X,pe,xe,Ae,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),!PL.maskType&&G===1&&(Re.setAttribute("mask-type","luminance"),X=H(),pe=_7.createFilter(X),this.globalData.defs.appendChild(pe),pe.appendChild(_7.createAlphaToLuminanceFilter()),(Ae=le("g")).appendChild(xe),Re.appendChild(Ae),Ae.setAttribute("filter","url("+p()+"#"+X+")"))}else if(G===2){var Qe=le("mask");Qe.setAttribute("id",Ee),Qe.setAttribute("mask-type","alpha");var Ye=le("g");Qe.appendChild(Ye),X=H(),pe=_7.createFilter(X);var Rt=le("feComponentTransfer");Rt.setAttribute("in","SourceGraphic"),pe.appendChild(Rt);var Jt=le("feFuncA");Jt.setAttribute("type","table"),Jt.setAttribute("tableValues","1.0 0.0"),Rt.appendChild(Jt),this.globalData.defs.appendChild(pe);var et=le("rect");et.setAttribute("width",this.comp.data.w),et.setAttribute("height",this.comp.data.h),et.setAttribute("x","0"),et.setAttribute("y","0"),et.setAttribute("fill","#ffffff"),et.setAttribute("opacity","0"),Ye.setAttribute("filter","url("+p()+"#"+X+")"),Ye.appendChild(et),(xe=le("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),Ye.appendChild(xe),PL.maskType||(Qe.setAttribute("mask-type","luminance"),pe.appendChild(_7.createAlphaToLuminanceFilter()),Ae=le("g"),Ye.appendChild(et),Ae.appendChild(this.layerElement),Ye.appendChild(Ae)),this.globalData.defs.appendChild(Qe)}this.matteMasks[G]=Ee}return this.matteMasks[G]},setMatte:function(G){this.matteElement&&this.matteElement.setAttribute("mask","url("+p()+"#"+G+")")}},V7.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)],m5)})(),g([Nn,b2,fw,V7,Ai,m5],xw),xw.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)},xw.prototype.sourceRectAtTime=function(){return this.sourceRect},j_.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 Jre(G,X))},prepareFrame:function(G){this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)}};var $_={1:"butt",2:"round",3:"square"},E_={1:"miter",2:"round",3:"bevel"};function I_(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,Ae=G.length;xe<Ae;){if(G[xe].mProps.dynamicProperties.length){this._isAnimated=!0;break}xe+=1}}function D_(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 kk(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 Ae,Ee,Re=X.length||0;for(Ae=0;Ae<Re;Ae+=1)Ee=Ze.getProp(G,X[Ae].v,0,0,this),this.k=Ee.k||this.k,this.dataProps[Ae]={n:X[Ae].n,p:Ee};this.k||this.getValue(!0),this._isAnimated=this.k}function T_(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 kk(G,X.d||{},"svg",this),this.c=Ze.getProp(G,X.c,1,255,this),this.style=pe,this._isAnimated=!!this._isAnimated}function L_(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 B_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.style=pe}function yw(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 j0(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.initGradientData(G,X,pe)}function P_(G,X,pe){this.initDynamicPropertyContainer(G),this.getValue=this.iterateDynamicProperties,this.w=Ze.getProp(G,X.w,0,null,this),this.d=new kk(G,X.d||{},"svg",this),this.initGradientData(G,X,pe),this._isAnimated=!!this._isAnimated}function Xre(){this.it=[],this.prevViewData=[],this.gr=le("g")}function eae(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}I_.prototype.setAsAnimated=function(){this._isAnimated=!0},D_.prototype.reset=function(){this.d="",this._mdf=!1},kk.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],kk),g([Ot],T_),g([Ot],L_),g([Ot],B_),yw.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},yw.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},yw.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,Ae=4*this.data.p;for(X=0;X<Ae;X+=1)pe=X%4==0?100:255,xe=Math.round(this.prop.v[X]*pe),this.c[X]!==xe&&(this.c[X]=xe,this._cmdf=!G);if(this.o.length)for(Ae=this.prop.v.length,X=4*this.data.p;X<Ae;X+=1)pe=X%2==0?100:1,xe=X%2==0?Math.round(100*this.prop.v[X]):this.prop.v[X],this.o[X-4*this.data.p]!==xe&&(this.o[X-4*this.data.p]=xe,this._omdf=!G);this._mdf=!G}},g([Ot],yw),j0.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 yw(G,X.g,this),this.style=pe,this.stops=[],this.setGradientData(pe.pElem,X),this.setGradientOpacity(X,pe),this._isAnimated=!!this._isAnimated},j0.prototype.setGradientData=function(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 Ae,Ee,Re,Qe=[];for(Re=4*X.g.p,Ee=0;Ee<Re;Ee+=4)Ae=le("stop"),xe.appendChild(Ae),Qe.push(Ae);G.setAttribute(X.ty==="gf"?"fill":"stroke","url("+p()+"#"+pe+")"),this.gf=xe,this.cst=Qe},j0.prototype.setGradientOpacity=function(G,X){if(this.g._hasOpacity&&!this.g._collapsable){var pe,xe,Ae,Ee=le("mask"),Re=le("path");Ee.appendChild(Re);var Qe=H(),Ye=H();Ee.setAttribute("id",Ye);var Rt=le(G.t===1?"linearGradient":"radialGradient");Rt.setAttribute("id",Qe),Rt.setAttribute("spreadMethod","pad"),Rt.setAttribute("gradientUnits","userSpaceOnUse"),Ae=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<Ae;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",$_[G.lc||2]),Re.setAttribute("stroke-linejoin",E_[G.lj||2]),G.lj===1&&Re.setAttribute("stroke-miterlimit",G.ml)),this.of=Rt,this.ms=Ee,this.ost=Jt,this.maskId=Ye,X.msElem=Re}},g([Ot],j0),g([j0,Ot],P_);var Zn=function(G,X,pe,xe){if(X===0)return"";var Ae,Ee=G.o,Re=G.i,Qe=G.v,Ye=" M"+xe.applyToPointStringified(Qe[0][0],Qe[0][1]);for(Ae=1;Ae<X;Ae+=1)Ye+=" C"+xe.applyToPointStringified(Ee[Ae-1][0],Ee[Ae-1][1])+" "+xe.applyToPointStringified(Re[Ae][0],Re[Ae][1])+" "+xe.applyToPointStringified(Qe[Ae][0],Qe[Ae][1]);return pe&&X&&(Ye+=" C"+xe.applyToPointStringified(Ee[Ae-1][0],Ee[Ae-1][1])+" "+xe.applyToPointStringified(Re[0][0],Re[0][1])+" "+xe.applyToPointStringified(Qe[0][0],Qe[0][1]),Ye+="z"),Ye},Sr=(function(){var G=new jt,X=new jt;function pe(Jt){switch(Jt.ty){case"fl":return Re;case"gf":return Ye;case"gs":return Qe;case"st":return Rt;case"sh":case"el":case"rc":case"sr":return Ee;case"tr":return xe;case"no":return Ae;default:return null}}function xe(Jt,et,pt){(pt||et.transform.op._mdf)&&et.transform.container.setAttribute("opacity",et.transform.op.v),(pt||et.transform.mProps._mdf)&&et.transform.container.setAttribute("transform",et.transform.mProps.v.to2dCSS())}function Ae(){}function Ee(Jt,et,pt){var At,Tt,Kt,en,Xe,We,Ne,qe,ft,rn,sn=et.styles.length,zt=et.lvl;for(We=0;We<sn;We+=1){if(en=et.sh._mdf||pt,et.styles[We].lvl<zt){for(qe=X.reset(),ft=zt-et.styles[We].lvl,rn=et.transformers.length-1;!en&&ft>0;)en=et.transformers[rn].mProps._mdf||en,ft-=1,rn-=1;if(en)for(ft=zt-et.styles[We].lvl,rn=et.transformers.length-1;ft>0;)qe.multiply(et.transformers[rn].mProps.v),ft-=1,rn-=1}else qe=G;if(Tt=(Ne=et.sh.paths)._length,en){for(Kt="",At=0;At<Tt;At+=1)(Xe=Ne.shapes[At])&&Xe._length&&(Kt+=Zn(Xe,Xe._length,Xe.c,qe));et.caches[We]=Kt}else Kt=et.caches[We];et.styles[We].d+=Jt.hd===!0?"":Kt,et.styles[We]._mdf=en||et.styles[We]._mdf}}function Re(Jt,et,pt){var At=et.style;(et.c._mdf||pt)&&At.pElem.setAttribute("fill","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&At.pElem.setAttribute("fill-opacity",et.o.v)}function Qe(Jt,et,pt){Ye(Jt,et,pt),Rt(Jt,et,pt)}function Ye(Jt,et,pt){var At,Tt,Kt,en,Xe,We=et.gf,Ne=et.g._hasOpacity,qe=et.s.v,ft=et.e.v;if(et.o._mdf||pt){var rn=Jt.ty==="gf"?"fill-opacity":"stroke-opacity";et.style.pElem.setAttribute(rn,et.o.v)}if(et.s._mdf||pt){var sn=Jt.t===1?"x1":"cx",zt=sn==="x1"?"y1":"cy";We.setAttribute(sn,qe[0]),We.setAttribute(zt,qe[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute(sn,qe[0]),et.of.setAttribute(zt,qe[1]))}if(et.g._cmdf||pt){At=et.cst;var po=et.g.c;for(Kt=At.length,Tt=0;Tt<Kt;Tt+=1)(en=At[Tt]).setAttribute("offset",po[4*Tt]+"%"),en.setAttribute("stop-color","rgb("+po[4*Tt+1]+","+po[4*Tt+2]+","+po[4*Tt+3]+")")}if(Ne&&(et.g._omdf||pt)){var Eo=et.g.o;for(Kt=(At=et.g._collapsable?et.cst:et.ost).length,Tt=0;Tt<Kt;Tt+=1)en=At[Tt],et.g._collapsable||en.setAttribute("offset",Eo[2*Tt]+"%"),en.setAttribute("stop-opacity",Eo[2*Tt+1])}if(Jt.t===1)(et.e._mdf||pt)&&(We.setAttribute("x2",ft[0]),We.setAttribute("y2",ft[1]),Ne&&!et.g._collapsable&&(et.of.setAttribute("x2",ft[0]),et.of.setAttribute("y2",ft[1])));else if((et.s._mdf||et.e._mdf||pt)&&(Xe=Math.sqrt(Math.pow(qe[0]-ft[0],2)+Math.pow(qe[1]-ft[1],2)),We.setAttribute("r",Xe),Ne&&!et.g._collapsable&&et.of.setAttribute("r",Xe)),et.s._mdf||et.e._mdf||et.h._mdf||et.a._mdf||pt){Xe||(Xe=Math.sqrt(Math.pow(qe[0]-ft[0],2)+Math.pow(qe[1]-ft[1],2)));var ci=Math.atan2(ft[1]-qe[1],ft[0]-qe[0]),Ko=et.h.v;Ko>=1?Ko=.99:Ko<=-1&&(Ko=-.99);var lo=Xe*Ko,Vt=Math.cos(ci+et.a.v)*lo+qe[0],xn=Math.sin(ci+et.a.v)*lo+qe[1];We.setAttribute("fx",Vt),We.setAttribute("fy",xn),Ne&&!et.g._collapsable&&(et.of.setAttribute("fx",Vt),et.of.setAttribute("fy",xn))}}function Rt(Jt,et,pt){var At=et.style,Tt=et.d;Tt&&(Tt._mdf||pt)&&Tt.dashStr&&(At.pElem.setAttribute("stroke-dasharray",Tt.dashStr),At.pElem.setAttribute("stroke-dashoffset",Tt.dashoffset[0])),et.c&&(et.c._mdf||pt)&&At.pElem.setAttribute("stroke","rgb("+j(et.c.v[0])+","+j(et.c.v[1])+","+j(et.c.v[2])+")"),(et.o._mdf||pt)&&At.pElem.setAttribute("stroke-opacity",et.o.v),(et.w._mdf||pt)&&(At.pElem.setAttribute("stroke-width",et.w.v),At.msElem&&At.msElem.setAttribute("stroke-width",et.w.v))}return{createRenderFunction:pe}})();function tr(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 th(G,X,pe,xe,Ae,Ee){this.o=G,this.sw=X,this.sc=pe,this.fc=xe,this.m=Ae,this.p=Ee,this._mdf={o:!0,sw:!!X,sc:!!pe,fc:!!xe,m:!0,p:!0}}function td(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,b2,fw,j_,V7,Ai,m5],tr),tr.prototype.initSecondaryElement=function(){},tr.prototype.identityMatrix=new jt,tr.prototype.buildExpressionInterface=function(){},tr.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},tr.prototype.filterUniqueShapes=function(){var G,X,pe,xe,Ae=this.shapes.length,Ee=this.stylesList.length,Re=[],Qe=!1;for(pe=0;pe<Ee;pe+=1){for(xe=this.stylesList[pe],Qe=!1,Re.length=0,G=0;G<Ae;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 D_(G,X),Ae=xe.pElem;return G.ty==="st"?pe=new T_(this,G,xe):G.ty==="fl"?pe=new L_(this,G,xe):G.ty==="gf"||G.ty==="gs"?(pe=new(G.ty==="gf"?j0:P_)(this,G,xe),this.globalData.defs.appendChild(pe.gf),pe.maskId&&(this.globalData.defs.appendChild(pe.ms),this.globalData.defs.appendChild(pe.of),Ae.setAttribute("mask","url("+p()+"#"+pe.maskId+")"))):G.ty==="no"&&(pe=new B_(this,G,xe)),(G.ty==="st"||G.ty==="gs")&&(Ae.setAttribute("stroke-linecap",$_[G.lc||2]),Ae.setAttribute("stroke-linejoin",E_[G.lj||2]),Ae.setAttribute("fill-opacity","0"),G.lj===1&&Ae.setAttribute("stroke-miterlimit",G.ml)),G.r===2&&Ae.setAttribute("fill-rule","evenodd"),G.ln&&Ae.setAttribute("id",G.ln),G.cl&&Ae.setAttribute("class",G.cl),G.bm&&(Ae.style["mix-blend-mode"]=ii(G.bm)),this.stylesList.push(xe),this.addToAnimatedContents(G,pe),pe},tr.prototype.createGroupElement=function(G){var X=new Xre;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 eae(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 Ae=new I_(X,pe,at.getShapeProp(this,G,xe,this));return this.shapes.push(Ae),this.addShapeToModifiers(Ae),this.addToAnimatedContents(G,Ae),Ae},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:Sr.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,Ae,Ee,Re){var Qe,Ye,Rt,Jt,et,pt,At=[].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],Ae),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,Ye=0;Ye<Rt;Ye+=1)X[Qe].prevViewData[Ye]=X[Qe].it[Ye];else X[Qe]=this.createGroupElement(G[Qe]);this.searchShapes(G[Qe].it,X[Qe].it,X[Qe].prevViewData,X[Qe].gr,Ae+1,At,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,At.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],At,Ae)),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},th.prototype.update=function(G,X,pe,xe,Ae,Ee){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var Re=!1;return this.o!==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!==Ae&&(this.m=Ae,this._mdf.m=!0,Re=!0),Ee.length&&(this.p[0]!==Ee[0]||this.p[1]!==Ee[1]||this.p[4]!==Ee[4]||this.p[5]!==Ee[5]||this.p[12]!==Ee[12]||this.p[13]!==Ee[13])&&(this.p=Ee,this._mdf.p=!0,Re=!0),Re},td.prototype.defaultBoxWidth=[0,0],td.prototype.copyData=function(G,X){for(var pe in X)Object.prototype.hasOwnProperty.call(X,pe)&&(G[pe]=X[pe]);return G},td.prototype.setCurrentData=function(G){G.__complete||this.completeTextData(G),this.currentData=G,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},td.prototype.searchProperty=function(){return this.searchKeyframes()},td.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},td.prototype.addEffect=function(G){this.effectsSequence.push(G),this.elem.addDynamicProperty(this)},td.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,Ae=this.effectsSequence.length,Ee=G||this.data.d.k[this.keysIndex].s;for(xe=0;xe<Ae;xe+=1)Ee=pe!==this.keysIndex?this.effectsSequence[xe](Ee,Ee.t):this.effectsSequence[xe](this.currentData,Ee.t);X!==Ee&&this.setCurrentData(Ee),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},td.prototype.getKeyframeValue=function(){for(var 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},td.prototype.buildFinalText=function(G){for(var X,pe,xe=[],Ae=0,Ee=G.length,Re=!1,Qe=!1,Ye="";Ae<Ee;)Re=Qe,Qe=!1,X=G.charCodeAt(Ae),Ye=G.charAt(Ae),ln.isCombinedCharacter(X)?Re=!0:X>=55296&&X<=56319?ln.isRegionalFlag(G,Ae)?Ye=G.substr(Ae,14):(pe=G.charCodeAt(Ae+1))>=56320&&pe<=57343&&(ln.isModifier(X,pe)?(Ye=G.substr(Ae,2),Re=!0):Ye=ln.isFlagEmoji(G.substr(Ae,4))?G.substr(Ae,4):G.substr(Ae,2)):X>56319?(pe=G.charCodeAt(Ae+1),ln.isVariationSelector(X)&&(Re=!0)):ln.isZeroWidthJoiner(X)&&(Re=!0,Qe=!0),Re?(xe[xe.length-1]+=Ye,Re=!1):xe.push(Ye),Ae+=Ye.length;return xe},td.prototype.completeTextData=function(G){G.__complete=!0;var X,pe,xe,Ae,Ee,Re,Qe,Ye=this.elem.globalData.fontManager,Rt=this.data,Jt=[],et=0,pt=Rt.m.g,At=0,Tt=0,Kt=0,en=[],Xe=0,We=0,Ne=Ye.getFontByName(G.f),qe=0,ft=_t(Ne);G.fWeight=ft.weight,G.fStyle=ft.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),Ye.chars?(Qe=Ye.getCharData(po[X],Ne.fStyle,Ne.fFamily),qe=xe?0:Qe.w*G.finalSize/100):qe=Ye.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,xn=0;for(X=0;X<pe;X+=1)if(xe=!1,(rn=(Vt=G.finalText[X]).charCodeAt(0))===13||rn===3?(xn=0,en.push(Xe),We=Xe>We?Xe:We,Xe=-2*sn,Ae="",xe=!0,Kt+=1):Ae=Vt,Ye.chars?(Qe=Ye.getCharData(Vt,Ne.fStyle,Ye.getFontByName(G.f).fFamily),qe=xe?0:Qe.w*G.finalSize/100):qe=Ye.measureText(Ae,G.f,G.finalSize),Vt===" "?xn+=qe+sn:(Xe+=qe+sn+xn,xn=0),Jt.push({l:qe,an:qe,add:At,n:xe,anIndexes:[],val:Ae,line:Kt,animatorJustifyOffset:0}),pt==2){if(At+=qe,Ae===""||Ae===" "||X===pe-1){for((Ae===""||Ae===" ")&&(At-=qe);Tt<=X;)Jt[Tt].an=At,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;et+=1,At=0}}else if(pt==3){if(At+=qe,Ae===""||X===pe-1){for(Ae===""&&(At-=qe);Tt<=X;)Jt[Tt].an=At,Jt[Tt].ind=et,Jt[Tt].extra=qe,Tt+=1;At=0,et+=1}}else Jt[et].ind=et,Jt[et].extra=0,et+=1;if(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 xt,dt,ze=Rt.a;Re=ze.length;var ht,wt,xi=[];for(Ee=0;Ee<Re;Ee+=1){for((xt=ze[Ee]).a.sc&&(G.strokeColorAnim=!0),xt.a.sw&&(G.strokeWidthAnim=!0),(xt.a.fc||xt.a.fh||xt.a.fs||xt.a.fb)&&(G.fillColorAnim=!0),wt=0,ht=xt.s.b,X=0;X<pe;X+=1)(dt=Jt[X]).anIndexes[Ee]=wt,(ht==1&&dt.val!==""||ht==2&&dt.val!==""&&dt.val!==" "||ht==3&&(dt.n||dt.val==" "||X==pe-1)||ht==4&&(dt.n||X==pe-1))&&(xt.s.rn===1&&xi.push(wt),wt+=1);Rt.a[Ee].s.totalChars=wt;var Zo,Po=-1;if(xt.s.rn===1)for(X=0;X<pe;X+=1)Po!=(dt=Jt[X]).anIndexes[Ee]&&(Po=dt.anIndexes[Ee],Zo=xi.splice(Math.floor(Math.random()*xi.length),1)[0]),dt.anIndexes[Ee]=Zo}G.yOffset=G.finalLineHeight||1.2*G.finalSize,G.ls=G.ls||0,G.ascent=Ne.ascent*G.finalSize/100},td.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)},td.prototype.recalculate=function(G){var X=this.data.d.k[G].s;X.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(X)},td.prototype.canResizeFont=function(G){this.canResize=G,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},td.prototype.setMinimumFontSize=function(G){this.minimumFontSize=Math.floor(G)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var bw=(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 Ae(Ee,Re,Qe){return new xe(Ee,Re)}return xe.prototype={getMult:function(Ee){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var Re=0,Qe=0,Ye=1,Rt=1;this.ne.v>0?Re=this.ne.v/100:Qe=-this.ne.v/100,this.xe.v>0?Ye=1-this.xe.v/100:Rt=1+this.xe.v/100;var Jt=Le.getBezierEasing(Re,Qe,Ye,Rt).get,et=0,pt=this.finalS,At=this.finalE,Tt=this.data.sh;if(Tt===2)et=Jt(et=At===pt?Ee>=At?1:0:G(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)));else if(Tt===3)et=Jt(et=At===pt?Ee>=At?0:1:1-G(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)));else if(Tt===4)At===pt?et=0:(et=G(0,X(.5/(At-pt)+(Ee-pt)/(At-pt),1)))<.5?et*=2:et=1-2*(et-.5),et=Jt(et);else if(Tt===5){if(At===pt)et=0;else{var Kt=At-pt,en=-Kt/2+(Ee=X(G(0,Ee+.5-pt),At-pt)),Xe=Kt/2;et=Math.sqrt(1-en*en/(Xe*Xe))}et=Jt(et)}else Tt===6?(At===pt?et=0:(Ee=X(G(0,Ee+.5-pt),At-pt),et=(1+Math.cos(Math.PI+2*Math.PI*Ee/(At-pt)))/2),et=Jt(et)):(Ee>=pe(pt)&&(et=G(0,X(Ee-pt<0?X(At,1)-(pt-Ee):At-Ee,1))),et=Jt(et));if(this.sm.v!==100){var We=.01*this.sm.v;We===0&&(We=1e-8);var Ne=.5-.5*We;et<Ne?et=0:(et=(et-Ne)/We)>1&&(et=1)}return et*this.a.v},getValue:function(Ee){this.iterateDynamicProperties(),this._mdf=Ee||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,Ee&&this.data.r===2&&(this.e.v=this._currentTextLength);var Re=this.data.r===2?1:100/this.data.totalChars,Qe=this.o.v/Re,Ye=this.s.v/Re+Qe,Rt=this.e.v/Re+Qe;if(Ye>Rt){var Jt=Ye;Ye=Rt,Rt=Jt}this.finalS=Ye,this.finalE=Rt}},g([Ot],xe),{getTextSelectorProp:Ae}})();function tae(G,X,pe){var xe={propType:!1},Ae=Ze.getProp,Ee=X.a;this.a={r:Ee.r?Ae(G,Ee.r,0,D,pe):xe,rx:Ee.rx?Ae(G,Ee.rx,0,D,pe):xe,ry:Ee.ry?Ae(G,Ee.ry,0,D,pe):xe,sk:Ee.sk?Ae(G,Ee.sk,0,D,pe):xe,sa:Ee.sa?Ae(G,Ee.sa,0,D,pe):xe,s:Ee.s?Ae(G,Ee.s,1,.01,pe):xe,a:Ee.a?Ae(G,Ee.a,1,0,pe):xe,o:Ee.o?Ae(G,Ee.o,0,.01,pe):xe,p:Ee.p?Ae(G,Ee.p,1,0,pe):xe,sw:Ee.sw?Ae(G,Ee.sw,0,0,pe):xe,sc:Ee.sc?Ae(G,Ee.sc,1,0,pe):xe,fc:Ee.fc?Ae(G,Ee.fc,1,0,pe):xe,fh:Ee.fh?Ae(G,Ee.fh,0,0,pe):xe,fs:Ee.fs?Ae(G,Ee.fs,0,.01,pe):xe,fb:Ee.fb?Ae(G,Ee.fb,0,.01,pe):xe,t:Ee.t?Ae(G,Ee.t,0,0,pe):xe},this.s=bw.getTextSelectorProp(G,X.s,pe),this.s.t=X.s.t}function w2(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 $0(){}w2.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 tae(this._elem,X,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:xe(this._elem,this._textData.p.a,0,0,this),f:xe(this._elem,this._textData.p.f,0,0,this),l:xe(this._elem,this._textData.p.l,0,0,this),r:xe(this._elem,this._textData.p.r,0,0,this),p:xe(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=xe(this._elem,this._textData.m.a,1,0,this)},w2.prototype.getMeasures=function(G,X){if(this.lettersChangedFlag=X,this._mdf||this._isFirstFrame||X||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var pe,xe,Ae,Ee,Re,Qe,Ye,Rt,Jt,et,pt,At,Tt,Kt,en,Xe,We,Ne,qe,ft=this._moreOptions.alignment.v,rn=this._animatorsData,sn=this._textData,zt=this.mHelper,po=this._renderType,Eo=this.renderedLetters.length,ci=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,Ae=0;Ae<Ee;Ae+=1)Ko=De.buildBezierData(lo.v[Ae],lo.v[Ae+1],[lo.o[Ae][0]-lo.v[Ae][0],lo.o[Ae][1]-lo.v[Ae][1]],[lo.i[Ae+1][0]-lo.v[Ae+1][0],lo.i[Ae+1][1]-lo.v[Ae+1][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength;Ae=Ee,qe.v.c&&(Ko=De.buildBezierData(lo.v[Ae],lo.v[0],[lo.o[Ae][0]-lo.v[Ae][0],lo.o[Ae][1]-lo.v[Ae][1]],[lo.i[0][0]-lo.v[0][0],lo.i[0][1]-lo.v[0][1]]),Re.tLength+=Ko.segmentLength,Re.segments.push(Ko),Xe+=Ko.segmentLength),this._pathData.pi=Re}if(Re=this._pathData.pi,Qe=this._pathData.f.v,pt=0,et=1,Rt=0,Jt=!0,Kt=Re.segments,Qe<0&&qe.v.c)for(Re.tLength<Math.abs(Qe)&&(Qe=-Math.abs(Qe)%Re.tLength),et=(Tt=Kt[pt=Kt.length-1].points).length-1;Qe<0;)Qe+=Tt[et].partialLength,(et-=1)<0&&(et=(Tt=Kt[pt-=1].points).length-1);At=(Tt=Kt[pt].points)[et-1],en=(Ye=Tt[et]).partialLength}Ee=ci.length,pe=0,xe=0;var Vt,xn,xt,dt,ze=1.2*G.finalSize*.714,ht=!0;xt=rn.length;var wt,xi,Zo,Po,Ca,Jo,fl,ga,Ja,E0,C2,I0,D0,nh=-1,dr=Qe,jk=pt,$k=et,ww=-1,Wf="",x5=this.defaultPropsArray;if(G.j===2||G.j===1){var ih=0,U7=0,W7=G.j===2?-.5:-1,A2=0,Q7=!0;for(Ae=0;Ae<Ee;Ae+=1)if(ci[Ae].n){for(ih&&(ih+=U7);A2<Ae;)ci[A2].animatorJustifyOffset=ih,A2+=1;ih=0,Q7=!0}else{for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).t.propType&&(Q7&&G.j===2&&(U7+=Vt.t.v*W7),(wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?ih+=Vt.t.v*wt[0]*W7:ih+=Vt.t.v*wt*W7);Q7=!1}for(ih&&(ih+=U7);A2<Ae;)ci[A2].animatorJustifyOffset=ih,A2+=1}for(Ae=0;Ae<Ee;Ae+=1){if(zt.reset(),Ca=1,ci[Ae].n)pe=0,xe+=G.yOffset,xe+=ht?1:0,Qe=dr,ht=!1,this._hasMaskedPath&&(et=$k,At=(Tt=Kt[pt=jk].points)[et-1],en=(Ye=Tt[et]).partialLength,Rt=0),Wf="",I0="",E0="",D0="",x5=this.defaultPropsArray;else{if(this._hasMaskedPath){if(ww!==ci[Ae].line){switch(G.j){case 1:Qe+=Xe-G.lineWidths[ci[Ae].line];break;case 2:Qe+=(Xe-G.lineWidths[ci[Ae].line])/2}ww=ci[Ae].line}nh!==ci[Ae].ind&&(ci[nh]&&(Qe+=ci[nh].extra),Qe+=ci[Ae].an/2,nh=ci[Ae].ind),Qe+=ft[0]*ci[Ae].an*.005;var v2=0;for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).p.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?v2+=Vt.p.v[0]*wt[0]:v2+=Vt.p.v[0]*wt),Vt.a.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?v2+=Vt.a.v[0]*wt[0]:v2+=Vt.a.v[0]*wt);for(Jt=!0,this._pathData.a.v&&(Qe=.5*ci[0].an+(Xe-this._pathData.f.v-.5*ci[0].an-.5*ci[ci.length-1].an)*nh/(Ee-1),Qe+=this._pathData.f.v);Jt;)Rt+en>=Qe+v2||!Tt?(We=(Qe+v2-Rt)/Ye.partialLength,Zo=At.point[0]+(Ye.point[0]-At.point[0])*We,Po=At.point[1]+(Ye.point[1]-At.point[1])*We,zt.translate(-ft[0]*ci[Ae].an*.005,-ft[1]*ze*.01),Jt=!1):Tt&&(Rt+=Ye.partialLength,(et+=1)>=Tt.length&&(et=0,Kt[pt+=1]?Tt=Kt[pt].points:qe.v.c?(et=0,Tt=Kt[pt=0].points):(Rt-=Ye.partialLength,Tt=null)),Tt&&(At=Ye,en=(Ye=Tt[et]).partialLength));xi=ci[Ae].an/2-ci[Ae].add,zt.translate(-xi,0,0)}else xi=ci[Ae].an/2-ci[Ae].add,zt.translate(-xi,0,0),zt.translate(-ft[0]*ci[Ae].an*.005,-ft[1]*ze*.01,0);for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).t.propType&&(wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars),(pe!==0||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]]),xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).a.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?zt.translate(-Vt.a.v[0]*wt[0],-Vt.a.v[1]*wt[1],Vt.a.v[2]*wt[2]):zt.translate(-Vt.a.v[0]*wt,-Vt.a.v[1]*wt,Vt.a.v[2]*wt));for(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).s.propType&&((wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars)).length?zt.scale(1+(Vt.s.v[0]-1)*wt[0],1+(Vt.s.v[1]-1)*wt[1],1):zt.scale(1+(Vt.s.v[0]-1)*wt,1+(Vt.s.v[1]-1)*wt,1));for(xn=0;xn<xt;xn+=1){if(Vt=rn[xn].a,wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars),Vt.sk.propType&&(wt.length?zt.skewFromAxis(-Vt.sk.v*wt[0],Vt.sa.v*wt[1]):zt.skewFromAxis(-Vt.sk.v*wt,Vt.sa.v*wt)),Vt.r.propType&&(wt.length?zt.rotateZ(-Vt.r.v*wt[2]):zt.rotateZ(-Vt.r.v*wt)),Vt.ry.propType&&(wt.length?zt.rotateY(Vt.ry.v*wt[1]):zt.rotateY(Vt.ry.v*wt)),Vt.rx.propType&&(wt.length?zt.rotateX(Vt.rx.v*wt[0]):zt.rotateX(Vt.rx.v*wt)),Vt.o.propType&&(wt.length?Ca+=(Vt.o.v*wt[0]-Ca)*wt[0]:Ca+=(Vt.o.v*wt-Ca)*wt),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(xn=0;xn<xt;xn+=1)(Vt=rn[xn].a).p.propType&&(wt=rn[xn].s.getMult(ci[Ae].anIndexes[xn],sn.a[xn].s.totalChars),this._hasMaskedPath?wt.length?zt.translate(0,Vt.p.v[1]*wt[0],-Vt.p.v[2]*wt[1]):zt.translate(0,Vt.p.v[1]*wt,-Vt.p.v[2]*wt):wt.length?zt.translate(Vt.p.v[0]*wt[0],Vt.p.v[1]*wt[1],-Vt.p.v[2]*wt[2]):zt.translate(Vt.p.v[0]*wt,Vt.p.v[1]*wt,-Vt.p.v[2]*wt));if(G.strokeWidthAnim&&(E0=fl<0?0:fl),G.strokeColorAnim&&(C2="rgb("+Math.round(255*Jo[0])+","+Math.round(255*Jo[1])+","+Math.round(255*Jo[2])+")"),G.fillColorAnim&&G.fc&&(I0="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,ft[1]*ze*.01+xe,0),this._pathData.p.v){Ne=(Ye.point[1]-At.point[1])/(Ye.point[0]-At.point[0]);var Cw=180*Math.atan(Ne)/Math.PI;Ye.point[0]<At.point[0]&&(Cw+=180),zt.rotate(-Cw*Math.PI/180)}zt.translate(Zo,Po,0),Qe-=ft[0]*ci[Ae].an*.005,ci[Ae+1]&&nh!==ci[Ae+1].ind&&(Qe+=ci[Ae].an/2,Qe+=.001*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[Ae].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ci[Ae].line]),0,0);break;case 2:zt.translate(ci[Ae].animatorJustifyOffset+G.justifyOffset+(G.boxWidth-G.lineWidths[ci[Ae].line])/2,0,0)}zt.translate(0,-G.ls),zt.translate(xi,0,0),zt.translate(ft[0]*ci[Ae].an*.005,ft[1]*ze*.01,0),pe+=ci[Ae].l+.001*G.tr*G.finalSize}po==="html"?Wf=zt.toCSS():po==="svg"?Wf=zt.to2dCSS():x5=[zt.props[0],zt.props[1],zt.props[2],zt.props[3],zt.props[4],zt.props[5],zt.props[6],zt.props[7],zt.props[8],zt.props[9],zt.props[10],zt.props[11],zt.props[12],zt.props[13],zt.props[14],zt.props[15]],D0=Ca}Eo<=Ae?(dt=new th(D0,E0,C2,I0,Wf,x5),this.renderedLetters.push(dt),Eo+=1,this.lettersChangedFlag=!0):(dt=this.renderedLetters[Ae],this.lettersChangedFlag=dt.update(D0,E0,C2,I0,Wf,x5)||this.lettersChangedFlag)}}},w2.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},w2.prototype.mHelper=new jt,w2.prototype.defaultPropsArray=[],g([Ot],w2),$0.prototype.initElement=function(G,X,pe){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(G,X,pe),this.textProperty=new td(this,G.t,this.dynamicProperties),this.textAnimator=new w2(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)},$0.prototype.prepareFrame=function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange)},$0.prototype.createPathShape=function(G,X){var pe,xe,Ae=X.length,Ee="";for(pe=0;pe<Ae;pe+=1)X[pe].ty==="sh"&&(xe=X[pe].ks.k,Ee+=Zn(xe,xe.i.length,!0,G));return Ee},$0.prototype.updateDocumentData=function(G,X){this.textProperty.updateDocumentData(G,X)},$0.prototype.canResizeFont=function(G){this.textProperty.canResizeFont(G)},$0.prototype.setMinimumFontSize=function(G){this.textProperty.setMinimumFontSize(G)},$0.prototype.applyTextPropertiesToMatrix=function(G,X,pe,xe,Ae){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,Ae,0)},$0.prototype.buildColor=function(G){return"rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"},$0.prototype.emptyProp=new th,$0.prototype.destroy=function(){},$0.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var krn={shapes:[]};function g5(G,X,pe){this.textSpans=[],this.renderType="svg",this.initElement(G,X,pe)}function nae(G,X,pe){this.initElement(G,X,pe)}function H7(G,X,pe){this.initFrame(),this.initBaseData(G,X,pe),this.initFrame(),this.initTransform(G,X,pe),this.initHierarchy()}function Pd(){}function f5(){}function OL(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 iae(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"),Ae=H();xe.setAttribute("id",Ae),xe.textContent=X.title,this.svgElement.appendChild(xe),pe+=Ae}if(X&&X.description){var Ee=le("desc"),Re=H();Ee.setAttribute("id",Re),Ee.textContent=X.description,this.svgElement.appendChild(Ee),pe+=" "+Re}pe&&this.svgElement.setAttribute("aria-labelledby",pe);var Qe=le("defs");this.svgElement.appendChild(Qe);var Ye=le("g");this.svgElement.appendChild(Ye),this.layerElement=Ye,this.renderConfig={preserveAspectRatio:X&&X.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:X&&X.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:X&&X.contentVisibility||"visible",progressiveLoad:X&&X.progressiveLoad||!1,hideOnTransparent:!(X&&X.hideOnTransparent===!1),viewBoxOnly:X&&X.viewBoxOnly||!1,viewBoxSize:X&&X.viewBoxSize||!1,className:X&&X.className||"",id:X&&X.id||"",focusable:X&&X.focusable,filterSize:{width:X&&X.filterSize&&X.filterSize.width||"100%",height:X&&X.filterSize&&X.filterSize.height||"100%",x:X&&X.filterSize&&X.filterSize.x||"0%",y:X&&X.filterSize&&X.filterSize.y||"0%"},width:X&&X.width,height:X&&X.height,runExpressions:!X||X.runExpressions===void 0||X.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:Qe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return g([Nn,b2,fw,V7,Ai,m5,$0],g5),g5.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=le("text"))},g5.prototype.buildTextContents=function(G){for(var X=0,pe=G.length,xe=[],Ae="";X<pe;)G[X]==="\r"||G[X]===""?(xe.push(Ae),Ae=""):Ae+=G[X],X+=1;return xe.push(Ae),xe},g5.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},g5.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 Ae=pe.fWeight,Ee=pe.fStyle;this.layerElement.setAttribute("font-style",Ee),this.layerElement.setAttribute("font-weight",Ae)}this.layerElement.setAttribute("aria-label",pe.t);var Re=pe.l||[],Qe=!!this.globalData.fontManager.chars;X=Re.length;var Ye,Rt=this.mHelper,Jt="",et=this.data.singleShape,pt=0,At=0,Tt=!0,Kt=.001*pe.tr*pe.finalSize;if(!et||Qe||pe.sz){var en,Xe=this.textSpans.length;for(G=0;G<X;G+=1){if(this.textSpans[G]||(this.textSpans[G]={span:null,childSpan:null,glyph:null}),!Qe||!et||G===0){if(Ye=Xe>G?this.textSpans[G].span:le(Qe?"g":"text"),Xe<=G){if(Ye.setAttribute("stroke-linecap","butt"),Ye.setAttribute("stroke-linejoin","round"),Ye.setAttribute("stroke-miterlimit","4"),this.textSpans[G].span=Ye,Qe){var We=le("g");Ye.appendChild(We),this.textSpans[G].childSpan=We}this.textSpans[G].span=Ye,this.layerElement.appendChild(Ye)}Ye.style.display="inherit"}if(Rt.reset(),et&&(Re[G].n&&(pt=-Kt,At+=pe.yOffset,At+=Tt?1:0,Tt=!1),this.applyTextPropertiesToMatrix(pe,Rt,Re[G].line,pt,At),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 OL(en.data,this.globalData,this);else{var qe=krn;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 ft=this.textSpans[G].glyph;this.textSpans[G].childSpan.removeChild(ft.layerElement),ft.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&&Ye.setAttribute("transform","translate("+Rt.props[12]+","+Rt.props[13]+")"),Ye.textContent=Re[G].val,Ye.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}et&&Ye&&Ye.setAttribute("d",Jt)}else{var rn=this.textContainer,sn="start";switch(pe.j){case 1:sn="end";break;case 2:sn="middle";break;default:sn="start"}rn.setAttribute("text-anchor",sn),rn.setAttribute("letter-spacing",Kt);var zt=this.buildTextContents(pe.finalText);for(X=zt.length,At=pe.ps?pe.ps[1]+pe.ascent:0,G=0;G<X;G+=1)(Ye=this.textSpans[G].span||le("tspan")).textContent=zt[G],Ye.setAttribute("x",0),Ye.setAttribute("y",At),Ye.style.display="inherit",rn.appendChild(Ye),this.textSpans[G]||(this.textSpans[G]={span:null,glyph:null}),this.textSpans[G].span=Ye,At+=pe.finalLineHeight;this.layerElement.appendChild(rn)}for(;G<this.textSpans.length;)this.textSpans[G].span.style.display="none",G+=1;this._sizeChanged=!0},g5.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var G=this.layerElement.getBBox();this.bbox={top:G.y,left:G.x,width:G.width,height:G.height}}return this.bbox},g5.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))},g5.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var G,X,pe,xe,Ae,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,(Ae=this.textSpans[G].glyph)&&Ae.renderFrame(),pe._mdf.m&&xe.setAttribute("transform",pe.m),pe._mdf.o&&xe.setAttribute("opacity",pe.o),pe._mdf.sw&&xe.setAttribute("stroke-width",pe.sw),pe._mdf.sc&&xe.setAttribute("stroke",pe.sc),pe._mdf.fc&&xe.setAttribute("fill",pe.fc))}},g([xw],nae),nae.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)},H7.prototype.prepareFrame=function(G){this.prepareProperties(G,!0)},H7.prototype.renderFrame=function(){},H7.prototype.getBaseElement=function(){return null},H7.prototype.destroy=function(){},H7.prototype.sourceRectAtTime=function(){},H7.prototype.hide=function(){},g([Nn,b2,V7,Ai],H7),g([al],Pd),Pd.prototype.createNull=function(G){return new H7(G,this.globalData,this)},Pd.prototype.createShape=function(G){return new tr(G,this.globalData,this)},Pd.prototype.createText=function(G){return new g5(G,this.globalData,this)},Pd.prototype.createImage=function(G){return new xw(G,this.globalData,this)},Pd.prototype.createSolid=function(G){return new nae(G,this.globalData,this)},Pd.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 Ae=H();pe.setAttribute("id",Ae),pe.appendChild(xe),this.layerElement.setAttribute("clip-path","url("+p()+"#"+Ae+")"),X.appendChild(pe),this.layers=G.layers,this.elements=b(G.layers.length)},Pd.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},Pd.prototype.updateContainerSize=function(){},Pd.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},Pd.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 Ae=X[xe].getMatte(this.layers[G].tt);pe.setMatte(Ae)}else this.buildItem(xe),this.addPendingElement(pe)}}},Pd.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,Ae=this.elements[xe].getMatte(this.layers[X].tt);G.setMatte(Ae);break}X+=1}}},Pd.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()}},Pd.prototype.appendElementInPos=function(G,X){var pe=G.getBaseElement();if(pe){for(var xe,Ae=0;Ae<X;)this.elements[Ae]&&this.elements[Ae]!==!0&&this.elements[Ae].getBaseElement()&&(xe=this.elements[Ae].getBaseElement()),Ae+=1;xe?this.layerElement.insertBefore(pe,xe):this.layerElement.appendChild(pe)}},Pd.prototype.hide=function(){this.layerElement.style.display="none"},Pd.prototype.show=function(){this.layerElement.style.display="block"},g([Nn,b2,V7,Ai,m5],f5),f5.prototype.initElement=function(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()},f5.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))}},f5.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()},f5.prototype.setElements=function(G){this.elements=G},f5.prototype.getElements=function(){return this.elements},f5.prototype.destroyElements=function(){var G,X=this.layers.length;for(G=0;G<X;G+=1)this.elements[G]&&this.elements[G].destroy()},f5.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},g([Pd,f5,fw],OL),OL.prototype.createComp=function(G){return new OL(G,this.globalData,this)},g([Pd],iae),iae.prototype.createComp=function(G){return new OL(G,this.globalData,this)},me("svg",iae),un.registerModifier("tm",It),un.registerModifier("pb",Ft),un.registerModifier("rp",Fn),un.registerModifier("rd",_n),un.registerModifier("zz",ha),un.registerModifier("op",br),Yt})())})(0,sae.exports)),sae.exports}function tdn(){if(H$e)return aae;function e(n){return n instanceof m$e?m$e.from(n):new n.constructor(n.buffer.slice(),n.byteOffset,n.length)}return H$e=1,aae=function(n){if(n=n||{},n.circles)return(function(l){const c=[],d=[],u=new Map;if(u.set(Date,(x=>new Date(x))),u.set(Map,((x,y)=>new Map(h(Array.from(x),y)))),u.set(Set,((x,y)=>new Set(h(Array.from(x),y)))),l.constructorHandlers)for(const x of l.constructorHandlers)u.set(x[0],x[1]);let p=null;return l.proto?f:g;function h(x,y){const b=Object.keys(x),w=new Array(b.length);for(let C=0;C<b.length;C++){const A=b[C],S=x[A];if(typeof S!="object"||S===null)w[A]=S;else if(S.constructor!==Object&&(p=u.get(S.constructor)))w[A]=p(S,y);else if(ArrayBuffer.isView(S))w[A]=e(S);else{const k=c.indexOf(S);w[A]=k!==-1?d[k]:y(S)}}return w}function g(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,g);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,g);const y={};c.push(x),d.push(y);for(const b in x){if(Object.hasOwnProperty.call(x,b)===!1)continue;const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,g);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:g(w)}}return c.pop(),d.pop(),y}function f(x){if(typeof x!="object"||x===null)return x;if(Array.isArray(x))return h(x,f);if(x.constructor!==Object&&(p=u.get(x.constructor)))return p(x,f);const y={};c.push(x),d.push(y);for(const b in x){const w=x[b];if(typeof w!="object"||w===null)y[b]=w;else if(w.constructor!==Object&&(p=u.get(w.constructor)))y[b]=p(w,f);else if(ArrayBuffer.isView(w))y[b]=e(w);else{const C=c.indexOf(w);y[b]=C!==-1?d[C]:f(w)}}return c.pop(),d.pop(),y}})(n);const i=new Map;if(i.set(Date,(l=>new Date(l))),i.set(Map,((l,c)=>new Map(s(Array.from(l),c)))),i.set(Set,((l,c)=>new Set(s(Array.from(l),c)))),n.constructorHandlers)for(const l of n.constructorHandlers)i.set(l[0],l[1]);let r=null;return n.proto?function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d}:function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return s(c,l);if(c.constructor!==Object&&(r=i.get(c.constructor)))return r(c,l);const d={};for(const u in c){if(Object.hasOwnProperty.call(c,u)===!1)continue;const p=c[u];typeof p!="object"||p===null?d[u]=p:p.constructor!==Object&&(r=i.get(p.constructor))?d[u]=r(p,l):ArrayBuffer.isView(p)?d[u]=e(p):d[u]=l(p)}return d};function s(l,c){const d=Object.keys(l),u=new Array(d.length);for(let p=0;p<d.length;p++){const h=d[p],g=l[h];typeof g!="object"||g===null?u[h]=g:g.constructor!==Object&&(r=i.get(g.constructor))?u[h]=r(g,c):ArrayBuffer.isView(g)?u[h]=e(g):u[h]=c(g)}return u}},aae}var ndn=(function(){if(Y$e)return Q$e;function e(g){return g&&typeof g=="object"&&"default"in g?g.default:g}Y$e=1;var n=e(edn()),i=B,r=e(i),s=e((V$e||(V$e=1,_$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)),l=e((W$e||(W$e=1,U$e=tdn()()),U$e));function c(){return c=Object.assign?Object.assign.bind():function(g){for(var f=1;f<arguments.length;f++){var x=arguments[f];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},c.apply(this,arguments)}function d(g,f){if(g==null)return{};var x,y,b={},w=Object.keys(g);for(y=0;y<w.length;y++)x=w[y],!(f.indexOf(x)>=0)&&(b[x]=g[x]);return b}var u={},p=function(){},h=(function(g){var f=g.loadAnimation,x=i.memo(i.forwardRef((function(y,b){var w,C,A=y.play,S=A===void 0?null:A,k=y.speed,$=k===void 0?1:k,j=y.direction,I=j===void 0?1:j,E=y.segments,D=E===void 0?null:E,L=y.goTo,F=L===void 0?null:L,N=y.useSubframes,_=N===void 0||N,z=y.renderer,T=z===void 0?"svg":z,M=y.loop,O=M===void 0||M,H=y.rendererSettings,V=H===void 0?u:H,W=y.audioFactory,U=y.onLoad,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],ve=we[1];i.useEffect((function(){s(be,D)||ve(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 Ce=function(){return ye(!0)};return de().addEventListener("DOMLoaded",Ce),function(){de().removeEventListener("DOMLoaded",Ce),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 Me=i.useRef(!1);return i.useEffect((function(){if(me)if(S===!0){var ke=!0;be?(de().playSegments(be,ke),Me.current=!0,I===-1&&Ce(typeof be[1]=="number"?be[1]:be[1][1])):(Me.current&&de().resetSegments(ke),Me.current=!1,I===-1?Ce(de().getDuration(!0)):de().play())}else S===!1&&de().pause();function Ce(De){de().goToAndPlay(De,!0),de().setDirection(I)}}),[S,be,me,I,de]),i.useEffect((function(){me&&(Number.isNaN($)||de().setSpeed($))}),[$,me,de]),i.useEffect((function(){me&&de().setDirection(I)}),[I,de,me]),i.useEffect((function(){if(me&&F!=null){var ke=!0;S?de().goToAndPlay(F,ke):de().goToAndStop(F,ke)}}),[de,F,S,me]),i.useEffect((function(){de().setSubframe&&de().setSubframe(_)}),[de,_]),r.createElement("div",c({},ge,{ref:ie}))})));return x})(n);return Q$e=h})();const _s=pr(ndn);var G$e,q$e,lae,K$e,cae,Z$e,dae,J$e,uae,X$e,pae,eEe,hae,tEe,nEe,iEe,oEe,rEe,aEe,sEe,lEe,cEe,dEe,uEe,pEe,hEe,mEe,gEe,fEe,xEe,mae,yEe,gae,bEe,fae,wEe,xae,CEe,yae,AEe,vEe,SEe,bae,kEe,wae,jEe,Cae,$Ee,EEe,IEe,Aae,DEe,TEe,LEe,BEe,PEe,MEe,OEe,FEe,REe,vae,zEe,Sae,NEe,kae,_Ee,VEe,HEe,UEe,WEe,QEe,YEe,jae,GEe,$ae,qEe,Eae,KEe,Iae,ZEe,Dae,JEe,XEe,eIe,Tae,tIe,nIe,iIe,oIe,rIe,aIe,sIe,lIe,cIe,dIe,uIe,Lae,pIe,Bae,hIe,mIe,gIe,fIe,xIe,Pae,yIe,Mae,bIe,Oae,wIe,CIe,AIe,Fae,vIe,Rae,SIe,kIe,jIe,$Ie,EIe,zae,IIe,Nae,DIe,_ae,TIe,LIe,BIe;function bte(){return K$e||(K$e=1,lae=function(e,n){return e===n||e!=e&&n!=n}),lae}function U_(){if(Z$e)return cae;Z$e=1;var e=bte();return cae=function(n,i){for(var r=n.length;r--;)if(e(n[r][0],i))return r;return-1},cae}function uq(){if(iEe)return nEe;iEe=1;var e=q$e?G$e:(q$e=1,G$e=function(){this.__data__=[],this.size=0}),n=(function(){if(J$e)return dae;J$e=1;var c=U_(),d=Array.prototype.splice;return dae=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))},dae})(),i=(function(){if(X$e)return uae;X$e=1;var c=U_();return uae=function(d){var u=this.__data__,p=c(u,d);return p<0?void 0:u[p][1]},uae})(),r=(function(){if(eEe)return pae;eEe=1;var c=U_();return pae=function(d){return c(this.__data__,d)>-1},pae})(),s=(function(){if(tEe)return hae;tEe=1;var c=U_();return hae=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},hae})();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 ovt(){if(hEe)return pEe;hEe=1;var e=typeof Uh=="object"&&Uh&&Uh.Object===Object&&Uh;return pEe=e}function D3(){if(gEe)return mEe;gEe=1;var e=ovt(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return mEe=i}function $D(){if(xEe)return fEe;xEe=1;var e=D3().Symbol;return fEe=e}function DT(){if(wEe)return fae;wEe=1;var e=$D(),n=(function(){if(yEe)return mae;yEe=1;var s=$D(),l=Object.prototype,c=l.hasOwnProperty,d=l.toString,u=s?s.toStringTag:void 0;return mae=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},mae})(),i=(function(){if(bEe)return gae;bEe=1;var s=Object.prototype.toString;return gae=function(l){return s.call(l)},gae})(),r=e?e.toStringTag:void 0;return fae=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":r&&r in Object(s)?n(s):i(s)},fae}function G3(){return CEe||(CEe=1,xae=function(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}),xae}function rvt(){if(AEe)return yae;AEe=1;var e=DT(),n=G3();return yae=function(i){if(!n(i))return!1;var r=e(i);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"},yae}function idn(){if(kEe)return bae;kEe=1;var e=(function(){if(SEe)return vEe;SEe=1;var i=D3()["__core-js_shared__"];return vEe=i})(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();return bae=function(i){return!!n&&n in i},bae}function avt(){if(jEe)return wae;jEe=1;var e=Function.prototype.toString;return wae=function(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""},wae}function vv(){if(DEe)return Aae;DEe=1;var e=(function(){if($Ee)return Cae;$Ee=1;var i=rvt(),r=idn(),s=G3(),l=avt(),c=/^\[object .+?Constructor\]$/,d=Function.prototype,u=Object.prototype,p=d.toString,h=u.hasOwnProperty,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Cae=function(f){return!(!s(f)||r(f))&&(i(f)?g:c).test(l(f))},Cae})(),n=(IEe||(IEe=1,EEe=function(i,r){return i?.[r]}),EEe);return Aae=function(i,r){var s=n(i,r);return e(s)?s:void 0},Aae}function kwe(){if(LEe)return TEe;LEe=1;var e=vv()(D3(),"Map");return TEe=e}function W_(){if(PEe)return BEe;PEe=1;var e=vv()(Object,"create");return BEe=e}function odn(){if(HEe)return VEe;HEe=1;var e=(function(){if(OEe)return MEe;OEe=1;var c=W_();return MEe=function(){this.__data__=c?c(null):{},this.size=0}})(),n=(REe||(REe=1,FEe=function(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}),FEe),i=(function(){if(zEe)return vae;zEe=1;var c=W_(),d=Object.prototype.hasOwnProperty;return vae=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},vae})(),r=(function(){if(NEe)return Sae;NEe=1;var c=W_(),d=Object.prototype.hasOwnProperty;return Sae=function(u){var p=this.__data__;return c?p[u]!==void 0:d.call(p,u)},Sae})(),s=(function(){if(_Ee)return kae;_Ee=1;var c=W_();return kae=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},kae})();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,VEe=l}function Q_(){if(GEe)return jae;GEe=1;var e=(YEe||(YEe=1,QEe=function(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}),QEe);return jae=function(n,i){var r=n.__data__;return e(i)?r[typeof i=="string"?"string":"hash"]:r.map},jae}function jwe(){if(eIe)return XEe;eIe=1;var e=(function(){if(WEe)return UEe;WEe=1;var c=odn(),d=uq(),u=kwe();return UEe=function(){this.size=0,this.__data__={hash:new c,map:new(u||d),string:new c}}})(),n=(function(){if(qEe)return $ae;qEe=1;var c=Q_();return $ae=function(d){var u=c(this,d).delete(d);return this.size-=u?1:0,u},$ae})(),i=(function(){if(KEe)return Eae;KEe=1;var c=Q_();return Eae=function(d){return c(this,d).get(d)},Eae})(),r=(function(){if(ZEe)return Iae;ZEe=1;var c=Q_();return Iae=function(d){return c(this,d).has(d)},Iae})(),s=(function(){if(JEe)return Dae;JEe=1;var c=Q_();return Dae=function(d,u){var p=c(this,d),h=p.size;return p.set(d,u),this.size+=p.size==h?0:1,this},Dae})();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,XEe=l}function $we(){if(iIe)return nIe;iIe=1;var e=uq(),n=(function(){if(rEe)return oEe;rEe=1;var d=uq();return oEe=function(){this.__data__=new d,this.size=0}})(),i=(sEe||(sEe=1,aEe=function(d){var u=this.__data__,p=u.delete(d);return this.size=u.size,p}),aEe),r=(cEe||(cEe=1,lEe=function(d){return this.__data__.get(d)}),lEe),s=(uEe||(uEe=1,dEe=function(d){return this.__data__.has(d)}),dEe),l=(function(){if(tIe)return Tae;tIe=1;var d=uq(),u=kwe(),p=jwe();return Tae=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},Tae})();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,nIe=c}function svt(){if(cIe)return lIe;cIe=1;var e=jwe(),n=(rIe||(rIe=1,oIe=function(s){return this.__data__.set(s,"__lodash_hash_undefined__"),this}),oIe),i=(sIe||(sIe=1,aIe=function(s){return this.__data__.has(s)}),aIe);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,lIe=r}function lvt(){return pIe||(pIe=1,Lae=function(e,n){return e.has(n)}),Lae}function cvt(){if(hIe)return Bae;hIe=1;var e=svt(),n=(uIe||(uIe=1,dIe=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}),dIe),i=lvt();return Bae=function(r,s,l,c,d,u){var p=1&l,h=r.length,g=s.length;if(h!=g&&!(p&&g>h))return!1;var f=u.get(r),x=u.get(s);if(f&&x)return f==s&&x==r;var y=-1,b=!0,w=2&l?new e:void 0;for(u.set(r,s),u.set(s,r);++y<h;){var C=r[y],A=s[y];if(c)var S=p?c(A,C,y,s,r,u):c(C,A,y,r,s,u);if(S!==void 0){if(S)continue;b=!1;break}if(w){if(!n(s,(function(k,$){if(!i(w,$)&&(C===k||d(C,k,l,c,u)))return w.push($)}))){b=!1;break}}else if(C!==A&&!d(C,A,l,c,u)){b=!1;break}}return u.delete(r),u.delete(s),b},Bae}function dvt(){if(gIe)return mIe;gIe=1;var e=D3().Uint8Array;return mIe=e}function T5e(){return yIe||(yIe=1,Pae=function(e){var n=-1,i=Array(e.size);return e.forEach((function(r){i[++n]=r})),i}),Pae}function rdn(){if(bIe)return Mae;bIe=1;var e=$D(),n=dvt(),i=bte(),r=cvt(),s=(xIe||(xIe=1,fIe=function(u){var p=-1,h=Array(u.size);return u.forEach((function(g,f){h[++p]=[f,g]})),h}),fIe),l=T5e(),c=e?e.prototype:void 0,d=c?c.valueOf:void 0;return Mae=function(u,p,h,g,f,x,y){switch(h){case"[object DataView]":if(u.byteLength!=p.byteLength||u.byteOffset!=p.byteOffset)return!1;u=u.buffer,p=p.buffer;case"[object ArrayBuffer]":return!(u.byteLength!=p.byteLength||!x(new n(u),new n(p)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+u,+p);case"[object Error]":return u.name==p.name&&u.message==p.message;case"[object RegExp]":case"[object String]":return u==p+"";case"[object Map]":var b=s;case"[object Set]":var w=1&g;if(b||(b=l),u.size!=p.size&&!w)return!1;var C=y.get(u);if(C)return C==p;g|=2,y.set(u,p);var A=r(b(u),b(p),g,f,x,y);return y.delete(u),A;case"[object Symbol]":if(d)return d.call(u)==d.call(p)}return!1},Mae}function Ewe(){return wIe||(wIe=1,Oae=function(e,n){for(var i=-1,r=n.length,s=e.length;++i<r;)e[s+i]=n[i];return e}),Oae}function Ju(){if(AIe)return CIe;AIe=1;var e=Array.isArray;return CIe=e}function uvt(){if(vIe)return Fae;vIe=1;var e=Ewe(),n=Ju();return Fae=function(i,r,s){var l=r(i);return n(i)?l:e(l,s(i))},Fae}function Iwe(){return SIe||(SIe=1,Rae=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}),Rae}function pvt(){return jIe?kIe:(jIe=1,kIe=function(){return[]})}function Dwe(){if(EIe)return $Ie;EIe=1;var e=Iwe(),n=pvt(),i=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(l){return l==null?[]:(l=Object(l),e(r(l),(function(c){return i.call(l,c)})))}:n;return $Ie=s}function hvt(){return IIe||(IIe=1,zae=function(e,n){for(var i=-1,r=Array(e);++i<e;)r[i]=n(i);return r}),zae}function l7(){return DIe||(DIe=1,Nae=function(e){return e!=null&&typeof e=="object"}),Nae}function Twe(){if(BIe)return LIe;BIe=1;var e=(function(){if(TIe)return _ae;TIe=1;var c=DT(),d=l7();return _ae=function(u){return d(u)&&c(u)=="[object Arguments]"},_ae})(),n=l7(),i=Object.prototype,r=i.hasOwnProperty,s=i.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(c){return n(c)&&r.call(c,"callee")&&!s.call(c,"callee")};return LIe=l}var PIe,MIe,OIe,Vae,FIe,Hae,RIe,Uae,zIe,Wae,NIe,Qae={exports:{}};function Lwe(){return OIe||(OIe=1,(function(e,n){var i=D3(),r=MIe?PIe:(MIe=1,PIe=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})(Qae,Qae.exports)),Qae.exports}function qz(){if(FIe)return Vae;FIe=1;var e=/^(?:0|[1-9]\d*)$/;return Vae=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},Vae}function Bwe(){return RIe?Hae:(RIe=1,Hae=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Hae)}function wte(){return NIe||(NIe=1,Wae=function(e){return function(n){return e(n)}}),Wae}var _Ie,VIe,HIe,Yae,UIe,Gae,WIe,qae,QIe,YIe,GIe,Kae,qIe,Zae,KIe,Jae,ZIe,Xae,JIe,ese,XIe,eDe,tDe,nDe,iDe,oDe,rDe,aDe,sDe,lDe,cDe,tse,dDe,nse,uDe,ise,pDe,ose={exports:{}};function Pwe(){return _Ie||(_Ie=1,(function(e,n){var i=ovt(),r=n&&!n.nodeType&&n,s=r&&e&&!e.nodeType&&e,l=s&&s.exports===r&&i.process,c=(function(){try{return s&&s.require&&s.require("util").types||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(ose,ose.exports)),ose.exports}function mvt(){if(HIe)return VIe;HIe=1;var e=(function(){if(zIe)return Uae;zIe=1;var l=DT(),c=Bwe(),d=l7(),u={};return u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,Uae=function(p){return d(p)&&c(p.length)&&!!u[l(p)]},Uae})(),n=wte(),i=Pwe(),r=i&&i.isTypedArray,s=r?n(r):e;return VIe=s}function gvt(){if(UIe)return Yae;UIe=1;var e=hvt(),n=Twe(),i=Ju(),r=Lwe(),s=qz(),l=mvt(),c=Object.prototype.hasOwnProperty;return Yae=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},Yae}function Mwe(){if(WIe)return Gae;WIe=1;var e=Object.prototype;return Gae=function(n){var i=n&&n.constructor;return n===(typeof i=="function"&&i.prototype||e)},Gae}function fvt(){return QIe||(QIe=1,qae=function(e,n){return function(i){return e(n(i))}}),qae}function adn(){if(qIe)return Kae;qIe=1;var e=Mwe(),n=(function(){if(GIe)return YIe;GIe=1;var r=fvt()(Object.keys,Object);return YIe=r})(),i=Object.prototype.hasOwnProperty;return Kae=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},Kae}function TT(){if(KIe)return Zae;KIe=1;var e=rvt(),n=Bwe();return Zae=function(i){return i!=null&&n(i.length)&&!e(i)},Zae}function PR(){if(ZIe)return Jae;ZIe=1;var e=gvt(),n=adn(),i=TT();return Jae=function(r){return i(r)?e(r):n(r)},Jae}function xvt(){if(JIe)return Xae;JIe=1;var e=uvt(),n=Dwe(),i=PR();return Xae=function(r){return e(r,i,n)},Xae}function yvt(){if(rDe)return oDe;rDe=1;var e=vv()(D3(),"Set");return oDe=e}function Cte(){if(cDe)return lDe;cDe=1;var e=(function(){if(tDe)return eDe;tDe=1;var A=vv()(D3(),"DataView");return eDe=A})(),n=kwe(),i=(function(){if(iDe)return nDe;iDe=1;var A=vv()(D3(),"Promise");return nDe=A})(),r=yvt(),s=(function(){if(sDe)return aDe;sDe=1;var A=vv()(D3(),"WeakMap");return aDe=A})(),l=DT(),c=avt(),d="[object Map]",u="[object Promise]",p="[object Set]",h="[object WeakMap]",g="[object DataView]",f=c(e),x=c(n),y=c(i),b=c(r),w=c(s),C=l;return(e&&C(new e(new ArrayBuffer(1)))!=g||n&&C(new n)!=d||i&&C(i.resolve())!=u||r&&C(new r)!=p||s&&C(new s)!=h)&&(C=function(A){var S=l(A),k=S=="[object Object]"?A.constructor:void 0,$=k?c(k):"";if($)switch($){case f:return g;case x:return d;case y:return u;case b:return p;case w:return h}return S}),lDe=C}function sdn(){if(dDe)return tse;dDe=1;var e=$we(),n=cvt(),i=rdn(),r=(function(){if(XIe)return ese;XIe=1;var f=xvt(),x=Object.prototype.hasOwnProperty;return ese=function(y,b,w,C,A,S){var k=1&w,$=f(y),j=$.length;if(j!=f(b).length&&!k)return!1;for(var I=j;I--;){var E=$[I];if(!(k?E in b:x.call(b,E)))return!1}var D=S.get(y),L=S.get(b);if(D&&L)return D==b&&L==y;var F=!0;S.set(y,b),S.set(b,y);for(var N=k;++I<j;){var _=y[E=$[I]],z=b[E];if(C)var T=k?C(z,_,E,b,y,S):C(_,z,E,y,b,S);if(!(T===void 0?_===z||A(_,z,w,C,S):T)){F=!1;break}N||(N=E=="constructor")}if(F&&!N){var M=y.constructor,O=b.constructor;M!=O&&"constructor"in y&&"constructor"in b&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&(F=!1)}return S.delete(y),S.delete(b),F},ese})(),s=Cte(),l=Ju(),c=Lwe(),d=mvt(),u="[object Arguments]",p="[object Array]",h="[object Object]",g=Object.prototype.hasOwnProperty;return tse=function(f,x,y,b,w,C){var A=l(f),S=l(x),k=A?p:s(f),$=S?p:s(x),j=(k=k==u?h:k)==h,I=($=$==u?h:$)==h,E=k==$;if(E&&c(f)){if(!c(x))return!1;A=!0,j=!1}if(E&&!j)return C||(C=new e),A||d(f)?n(f,x,y,b,w,C):i(f,x,k,y,b,w,C);if(!(1&y)){var D=j&&g.call(f,"__wrapped__"),L=I&&g.call(x,"__wrapped__");if(D||L){var F=D?f.value():f,N=L?x.value():x;return C||(C=new e),w(F,N,y,b,C)}}return!!E&&(C||(C=new e),r(f,x,y,b,w,C))},tse}function Owe(){if(uDe)return nse;uDe=1;var e=sdn(),n=l7();return nse=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))},nse}var ldn=(function(){if(pDe)return ise;pDe=1;var e=Owe();return ise=function(n,i){return e(n,i)},ise})();const oo=pr(ldn);var hDe,mDe,rse,gDe,ase,fDe,sse,xDe,lse,yDe,cse,bDe;function cdn(){if(fDe)return ase;fDe=1;var e=(function(){if(gDe)return rse;gDe=1;var i=/\s/;return rse=function(r){for(var s=r.length;s--&&i.test(r.charAt(s)););return s},rse})(),n=/^\s+/;return ase=function(i){return i&&i.slice(0,e(i)+1).replace(n,"")},ase}function Kz(){if(xDe)return sse;xDe=1;var e=DT(),n=l7();return sse=function(i){return typeof i=="symbol"||n(i)&&e(i)=="[object Symbol]"},sse}function bvt(){if(yDe)return lse;yDe=1;var e=cdn(),n=G3(),i=Kz(),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;return lse=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},lse}function wvt(){if(bDe)return cse;bDe=1;var e=G3(),n=(function(){if(mDe)return hDe;mDe=1;var l=D3();return hDe=function(){return l.Date.now()}})(),i=bvt(),r=Math.max,s=Math.min;return cse=function(l,c,d){var u,p,h,g,f,x,y=0,b=!1,w=!1,C=!0;if(typeof l!="function")throw new TypeError("Expected a function");function A(I){var E=u,D=p;return u=p=void 0,y=I,g=l.apply(D,E)}function S(I){var E=I-x;return x===void 0||E>=c||E<0||w&&I-y>=h}function k(){var I=n();if(S(I))return $(I);f=setTimeout(k,(function(E){var D=c-(E-x);return w?s(D,h-(E-y)):D})(I))}function $(I){return f=void 0,C&&u?A(I):(u=p=void 0,g)}function j(){var I=n(),E=S(I);if(u=arguments,p=this,x=I,E){if(f===void 0)return(function(D){return y=D,f=setTimeout(k,c),b?A(D):g})(x);if(w)return clearTimeout(f),f=setTimeout(k,c),A(x)}return f===void 0&&(f=setTimeout(k,c)),g}return c=i(c)||0,e(d)&&(b=!!d.leading,h=(w="maxWait"in d)?r(i(d.maxWait)||0,c):h,C="trailing"in d?!!d.trailing:C),j.cancel=function(){f!==void 0&&clearTimeout(f),y=0,u=x=p=f=void 0},j.flush=function(){return f===void 0?g:$(n())},j},cse}const As=pr(wvt());var wDe,CDe;function Cvt(){return CDe?wDe:(CDe=1,wDe=function(){})}const Fwe=pr(Cvt());var dse,ADe,vDe,SDe,use,kDe,pse,jDe,hse,$De,mse,EDe,IDe,DDe,gse,TDe,fse,LDe,xse,BDe;function Avt(){return ADe||(ADe=1,dse=function(e,n){for(var i=-1,r=e==null?0:e.length;++i<r&&n(e[i],i,e)!==!1;);return e}),dse}function vvt(){if(SDe)return vDe;SDe=1;var e=vv(),n=(function(){try{var i=e(Object,"defineProperty");return i({},"",{}),i}catch{}})();return vDe=n}function Rwe(){if(kDe)return use;kDe=1;var e=vvt();return use=function(n,i,r){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[i]=r},use}function zwe(){if(jDe)return pse;jDe=1;var e=Rwe(),n=bte(),i=Object.prototype.hasOwnProperty;return pse=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)},pse}function cO(){if($De)return hse;$De=1;var e=zwe(),n=Rwe();return hse=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},hse}function ddn(){if(TDe)return gse;TDe=1;var e=G3(),n=Mwe(),i=(DDe||(DDe=1,IDe=function(s){var l=[];if(s!=null)for(var c in Object(s))l.push(c);return l}),IDe),r=Object.prototype.hasOwnProperty;return gse=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},gse}function L5e(){if(LDe)return fse;LDe=1;var e=gvt(),n=ddn(),i=TT();return fse=function(r){return i(r)?e(r,!0):n(r)},fse}var PDe,MDe,ODe,yse,FDe,RDe,zDe,NDe,_De,bse,VDe,wse,HDe,Cse,UDe,Ase,WDe,vse,QDe,Sse,YDe,kse,GDe,jse,qDe,$se,KDe,ZDe,JDe,Ese,XDe,Ise,eTe,tTe,nTe,Dse,iTe,oTe,rTe,Tse,aTe,Lse,sTe,Bse={exports:{}};function Nwe(){if(zDe)return RDe;zDe=1;var e=fvt()(Object.getPrototypeOf,Object);return RDe=e}function Svt(){if(_De)return NDe;_De=1;var e=Ewe(),n=Nwe(),i=Dwe(),r=pvt(),s=Object.getOwnPropertySymbols?function(l){for(var c=[];l;)e(c,i(l)),l=n(l);return c}:r;return NDe=s}function _we(){if(HDe)return wse;HDe=1;var e=uvt(),n=Svt(),i=L5e();return wse=function(r){return e(r,i,n)},wse}function Pse(){if(WDe)return Ase;WDe=1;var e=dvt();return Ase=function(n){var i=new n.constructor(n.byteLength);return new e(i).set(new e(n)),i},Ase}function udn(){if(KDe)return $se;KDe=1;var e=Pse(),n=(function(){if(QDe)return vse;QDe=1;var l=Pse();return vse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.byteLength)},vse})(),i=(function(){if(YDe)return Sse;YDe=1;var l=/\w*$/;return Sse=function(c){var d=new c.constructor(c.source,l.exec(c));return d.lastIndex=c.lastIndex,d},Sse})(),r=(function(){if(GDe)return kse;GDe=1;var l=$D(),c=l?l.prototype:void 0,d=c?c.valueOf:void 0;return kse=function(u){return d?Object(d.call(u)):{}},kse})(),s=(function(){if(qDe)return jse;qDe=1;var l=Pse();return jse=function(c,d){var u=d?l(c.buffer):c.buffer;return new c.constructor(u,c.byteOffset,c.length)},jse})();return $se=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)}},$se}function pdn(){if(XDe)return Ese;XDe=1;var e=(function(){if(JDe)return ZDe;JDe=1;var r=G3(),s=Object.create,l=(function(){function c(){}return function(d){if(!r(d))return{};if(s)return s(d);c.prototype=d;var u=new c;return c.prototype=void 0,u}})();return ZDe=l})(),n=Nwe(),i=Mwe();return Ese=function(r){return typeof r.constructor!="function"||i(r)?{}:e(n(r))},Ese}function hdn(){if(nTe)return tTe;nTe=1;var e=(function(){if(eTe)return Ise;eTe=1;var l=Cte(),c=l7();return Ise=function(d){return c(d)&&l(d)=="[object Map]"},Ise})(),n=wte(),i=Pwe(),r=i&&i.isMap,s=r?n(r):e;return tTe=s}function mdn(){if(rTe)return oTe;rTe=1;var e=(function(){if(iTe)return Dse;iTe=1;var l=Cte(),c=l7();return Dse=function(d){return c(d)&&l(d)=="[object Set]"},Dse})(),n=wte(),i=Pwe(),r=i&&i.isSet,s=r?n(r):e;return oTe=s}function kvt(){if(aTe)return Tse;aTe=1;var e=$we(),n=Avt(),i=zwe(),r=(function(){if(EDe)return mse;EDe=1;var L=cO(),F=PR();return mse=function(N,_){return N&&L(_,F(_),N)},mse})(),s=(function(){if(BDe)return xse;BDe=1;var L=cO(),F=L5e();return xse=function(N,_){return N&&L(_,F(_),N)},xse})(),l=(PDe||(PDe=1,(function(L,F){var N=D3(),_=F&&!F.nodeType&&F,z=_&&L&&!L.nodeType&&L,T=z&&z.exports===_?N.Buffer:void 0,M=T?T.allocUnsafe:void 0;L.exports=function(O,H){if(H)return O.slice();var V=O.length,W=M?M(V):new O.constructor(V);return O.copy(W),W}})(Bse,Bse.exports)),Bse.exports),c=(ODe||(ODe=1,MDe=function(L,F){var N=-1,_=L.length;for(F||(F=Array(_));++N<_;)F[N]=L[N];return F}),MDe),d=(function(){if(FDe)return yse;FDe=1;var L=cO(),F=Dwe();return yse=function(N,_){return L(N,F(N),_)},yse})(),u=(function(){if(VDe)return bse;VDe=1;var L=cO(),F=Svt();return bse=function(N,_){return L(N,F(N),_)},bse})(),p=xvt(),h=_we(),g=Cte(),f=(function(){if(UDe)return Cse;UDe=1;var L=Object.prototype.hasOwnProperty;return Cse=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),_},Cse})(),x=udn(),y=pdn(),b=Ju(),w=Lwe(),C=hdn(),A=G3(),S=mdn(),k=PR(),$=L5e(),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,Tse=function L(F,N,_,z,T,M){var O,H=1&N,V=2&N,W=4&N;if(_&&(O=T?_(F,z,T,M):_(F)),O!==void 0)return O;if(!A(F))return F;var U=b(F);if(U){if(O=f(F),!H)return c(F,O)}else{var 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},Tse}var gdn=(function(){if(sTe)return Lse;sTe=1;var e=kvt();return Lse=function(n){return e(n,5)},Lse})();const ds=pr(gdn);var Mse,lTe,Ose,cTe,dTe,uTe,Fse,pTe,hTe,mTe,Rse,gTe,zse,fTe,Nse,xTe,_se,yTe,Vse,bTe,Hse,wTe,Use,CTe;function Vwe(){if(cTe)return Ose;cTe=1;var e=Ju(),n=Kz(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return Ose=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)},Ose}function fdn(){if(pTe)return Fse;pTe=1;var e=(function(){if(uTe)return dTe;uTe=1;var n=jwe();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,dTe=i})();return Fse=function(n){var i=e(n,(function(s){return r.size===500&&r.clear(),s})),r=i.cache;return i},Fse}function LS(){return gTe||(gTe=1,Rse=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}),Rse}function jvt(){if(fTe)return zse;fTe=1;var e=$D(),n=LS(),i=Ju(),r=Kz(),s=e?e.prototype:void 0,l=s?s.toString:void 0;return zse=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},zse}function $vt(){if(xTe)return Nse;xTe=1;var e=jvt();return Nse=function(n){return n==null?"":e(n)},Nse}function ED(){if(yTe)return _se;yTe=1;var e=Ju(),n=Vwe(),i=(function(){if(mTe)return hTe;mTe=1;var s=fdn(),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 hTe=d})(),r=$vt();return _se=function(s,l){return e(s)?s:n(s,l)?[s]:i(r(s))},_se}function LT(){if(bTe)return Vse;bTe=1;var e=Kz();return Vse=function(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i},Vse}function Evt(){if(wTe)return Hse;wTe=1;var e=ED(),n=Twe(),i=Ju(),r=qz(),s=Bwe(),l=LT();return Hse=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))},Hse}var xdn=(function(){if(CTe)return Use;CTe=1;var e=(function(){if(lTe)return Mse;lTe=1;var i=Object.prototype.hasOwnProperty;return Mse=function(r,s){return r!=null&&i.call(r,s)},Mse})(),n=Evt();return Use=function(i,r){return i!=null&&n(i,r,e)},Use})();const mn=pr(xdn);var ATe,vTe,Wse,STe,Qse,kTe,Yse,jTe,$Te,ETe,ITe,DTe,Gse,TTe,LTe,BTe,qse,PTe,MTe,OTe;function BT(){return STe||(STe=1,Wse=function(e){return e}),Wse}function Ivt(){return kTe||(kTe=1,Qse=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)}),Qse}function Dvt(){if(jTe)return Yse;jTe=1;var e=Ivt(),n=Math.max;return Yse=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)}},Yse}function ydn(){if(DTe)return ITe;DTe=1;var e=(ETe||(ETe=1,$Te=function(s){return function(){return s}}),$Te),n=vvt(),i=BT(),r=n?function(s,l){return n(s,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:i;return ITe=r}function Tvt(){if(BTe)return LTe;BTe=1;var e=ydn(),n=(function(){if(TTe)return Gse;TTe=1;var r=Date.now;return Gse=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)}},Gse})(),i=n(e);return LTe=i}function Lvt(){if(PTe)return qse;PTe=1;var e=BT(),n=Dvt(),i=Tvt();return qse=function(r,s){return i(n(r,s,e),r+"")},qse}var bdn=(function(){if(OTe)return MTe;OTe=1;var e=(vTe||(vTe=1,ATe=function(i,r,s){if(typeof i!="function")throw new TypeError("Expected a function");return setTimeout((function(){i.apply(void 0,s)}),r)}),ATe),n=Lvt()((function(i,r){return e(i,1,r)}));return MTe=n})();const Yi=pr(bdn);var Kse,FTe,Zse,RTe;function Zz(){if(FTe)return Kse;FTe=1;var e=ED(),n=LT();return Kse=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},Kse}function Bvt(){if(RTe)return Zse;RTe=1;var e=Zz();return Zse=function(n,i,r){var s=n==null?void 0:e(n,i);return s===void 0?r:s},Zse}const F3=pr(Bvt());var Jse,zTe,Xse,NTe,ele,_Te,tle,VTe;function Pvt(){if(zTe)return Jse;zTe=1;var e=$we(),n=Owe();return Jse=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},Jse}function Mvt(){if(NTe)return Xse;NTe=1;var e=G3();return Xse=function(n){return n==n&&!e(n)},Xse}function Ovt(){if(_Te)return ele;_Te=1;var e=Mvt(),n=PR();return ele=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},ele}var wdn=(function(){if(VTe)return tle;VTe=1;var e=Pvt(),n=Ovt();return tle=function(i,r,s){return s=typeof s=="function"?s:void 0,e(i,r,n(r),s)},tle})();const Cdn=pr(wdn);var HTe,UTe,Adn=(UTe||(UTe=1,HTe=function(e){return e==null}),HTe);const WTe=pr(Adn);var QTe,YTe,nle,GTe,vdn=(function(){if(GTe)return nle;GTe=1;var e=(YTe||(YTe=1,QTe=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}),QTe),n=BT();return nle=function(i){return i&&i.length?e(i,n):0},nle})();const Sdn=pr(vdn);var ile,qTe,ole,KTe,rle,ZTe,ale,JTe,sle,XTe;function Hwe(){return qTe||(qTe=1,ile=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}),ile}function Fvt(){if(KTe)return ole;KTe=1;var e=bte(),n=TT(),i=qz(),r=G3();return ole=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)},ole}function Ate(){if(JTe)return ale;JTe=1;var e=(function(){if(ZTe)return rle;ZTe=1;var n=bvt(),i=1/0;return rle=function(r){return r?(r=n(r))===i||r===-i?17976931348623157e292*(r<0?-1:1):r==r?r:0:r===0?r:0},rle})();return ale=function(n){var i=e(n),r=i%1;return i==i?r?i-r:i:0},ale}var kdn=(function(){if(XTe)return sle;XTe=1;var e=Hwe(),n=Fvt(),i=Ate(),r=Math.ceil,s=Math.max;return sle=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},sle})();const jdn=pr(kdn);var eLe,tLe,$dn=(tLe||(tLe=1,eLe=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}),eLe);const Edn=pr($dn);var nLe,iLe,oLe,rLe,lle,aLe,cle,sLe,lLe,cLe,dle,dLe,ule,uLe,pLe,hLe;function Idn(){if(rLe)return oLe;rLe=1;var e=(iLe||(iLe=1,nLe=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}}),nLe),n=e();return oLe=n}function Rvt(){if(aLe)return lle;aLe=1;var e=Idn(),n=PR();return lle=function(i,r){return i&&e(i,r,n)},lle}function Jz(){if(cLe)return lLe;cLe=1;var e=Rvt(),n=(function(){if(sLe)return cle;sLe=1;var r=TT();return cle=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}},cle})(),i=n(e);return lLe=i}function zvt(){if(dLe)return dle;dLe=1;var e=BT();return dle=function(n){return typeof n=="function"?n:e},dle}var Ddn=(hLe||(hLe=1,pLe=(function(){if(uLe)return ule;uLe=1;var e=Avt(),n=Jz(),i=zvt(),r=Ju();return ule=function(s,l){return(r(s)?e:n)(s,i(l))},ule})()),pLe);const Tdn=pr(Ddn);var mLe,gLe,ple,fLe,hle,xLe,yLe,bLe,mle,wLe,gle,CLe,fle,ALe,xle,vLe,yle,SLe,ble,kLe,jLe,$Le,wle,ELe;function ILe(){return fLe||(fLe=1,ple=function(e,n){return function(i){return i!=null&&i[e]===n&&(n!==void 0||e in Object(i))}}),ple}function Ldn(){if(wLe)return mle;wLe=1;var e=(bLe||(bLe=1,yLe=function(i,r){return i!=null&&r in Object(i)}),yLe),n=Evt();return mle=function(i,r){return i!=null&&n(i,r,e)},mle}function Uwe(){return ALe||(ALe=1,fle=function(e){return function(n){return n?.[e]}}),fle}function Bdn(){if(SLe)return yle;SLe=1;var e=Uwe(),n=(function(){if(vLe)return xle;vLe=1;var s=Zz();return xle=function(l){return function(c){return s(c,l)}},xle})(),i=Vwe(),r=LT();return yle=function(s){return i(s)?e(r(s)):n(s)},yle}function d8(){if(kLe)return ble;kLe=1;var e=(function(){if(xLe)return hle;xLe=1;var l=Pvt(),c=Ovt(),d=ILe();return hle=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)}},hle})(),n=(function(){if(CLe)return gle;CLe=1;var l=Owe(),c=Bvt(),d=Ldn(),u=Vwe(),p=Mvt(),h=ILe(),g=LT();return gle=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)}},gle})(),i=BT(),r=Ju(),s=Bdn();return ble=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?r(l)?n(l[0],l[1]):e(l):s(l)},ble}var Pdn=(function(){if(ELe)return wle;ELe=1;var e=(gLe||(gLe=1,mLe=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}),mLe),n=Jz(),i=d8(),r=($Le||($Le=1,jLe=function(l,c,d,u,p){return p(l,(function(h,g,f){d=u?(u=!1,h):c(d,h,g,f)})),d}),jLe),s=Ju();return wle=function(l,c,d){var u=s(l)?e:r,p=arguments.length<3;return u(l,i(c,4),d,p,n)},wle})();const B5e=pr(Pdn);var Cle,DLe,Ale,TLe,vle,LLe,BLe,PLe;function Mdn(){if(TLe)return Ale;TLe=1;var e=Iwe(),n=LS(),i=Uwe(),r=hvt(),s=(function(){if(DLe)return Cle;DLe=1;var c=TT(),d=l7();return Cle=function(u){return d(u)&&c(u)},Cle})(),l=Math.max;return Ale=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))}))},Ale}var Odn=(function(){if(PLe)return BLe;PLe=1;var e=Lvt(),n=(function(){if(LLe)return vle;LLe=1;var r=Ivt(),s=LS(),l=Mdn();return vle=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)}))},vle})(),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 BLe=i})();const Fdn=pr(Odn);var Sle,MLe,Rdn=(function(){if(MLe)return Sle;MLe=1;var e=Rvt(),n=zvt();return Sle=function(i,r){return i&&e(i,n(r))},Sle})();const Nvt=pr(Rdn);var kle,OLe,jle,FLe;function _vt(){if(OLe)return kle;OLe=1;var e=Jz(),n=TT();return kle=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},kle}function Vvt(){if(FLe)return jle;FLe=1;var e=LS(),n=d8(),i=_vt(),r=Ju();return jle=function(s,l){return(r(s)?e:i)(s,n(l,3))},jle}const vte=pr(Vvt());var $le,RLe,Ele,zLe,Ile,NLe;function zdn(){if(zLe)return Ele;zLe=1;var e=Zz(),n=(function(){if(RLe)return $le;RLe=1;var r=zwe(),s=ED(),l=qz(),c=G3(),d=LT();return $le=function(u,p,h,g){if(!c(u))return u;for(var f=-1,x=(p=s(p,u)).length,y=x-1,b=u;b!=null&&++f<x;){var w=d(p[f]),C=h;if(w==="__proto__"||w==="constructor"||w==="prototype")return u;if(f!=y){var A=b[w];(C=g?g(A,w,b):void 0)===void 0&&(C=c(A)?A:l(p[f+1])?[]:{})}r(b,w,C),b=b[w]}return u},$le})(),i=ED();return Ele=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},Ele}var Ndn=(function(){if(NLe)return Ile;NLe=1;var e=LS(),n=d8(),i=zdn(),r=_we();return Ile=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])}))},Ile})();const GK=pr(Ndn);var Dle,_Le,_dn=(function(){if(_Le)return Dle;_Le=1;var e=wvt(),n=G3();return Dle=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})},Dle})();const Vdn=pr(_dn);var Tle,VLe,Lle,HLe,Hdn=(function(){if(HLe)return Lle;HLe=1;var e=Iwe(),n=(function(){if(VLe)return Tle;VLe=1;var s=Jz();return Tle=function(l,c){var d=[];return s(l,(function(u,p,h){c(u,p,h)&&d.push(u)})),d},Tle})(),i=d8(),r=Ju();return Lle=function(s,l){return(r(s)?e:n)(s,i(l,3))},Lle})();const Udn=pr(Hdn);var ULe,WLe,Ble,QLe,Ple,YLe,GLe,qLe;function Wdn(){if(YLe)return Ple;YLe=1;var e=(WLe||(WLe=1,ULe=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}),ULe),n=(function(){if(QLe)return Ble;QLe=1;var s=Jz();return Ble=function(l,c,d,u){return s(l,(function(p,h,g){c(u,p,d(p),g)})),u},Ble})(),i=d8(),r=Ju();return Ple=function(s,l){return function(c,d){var u=r(c)?e:n,p=l?l():{};return u(c,s,i(d,2),p)}},Ple}var Qdn=(function(){if(qLe)return GLe;qLe=1;var e=Rwe(),n=Wdn(),i=Object.prototype.hasOwnProperty,r=n((function(s,l,c){i.call(s,c)?s[c].push(l):e(s,c,[l])}));return GLe=r})();const Ydn=pr(Qdn);var KLe,ZLe,Mle,JLe,Ole,XLe,Fle,eBe,Rle,tBe;function Gdn(){if(XLe)return Ole;XLe=1;var e=(function(){if(JLe)return Mle;JLe=1;var n=Kz();return Mle=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},Mle})();return Ole=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},Ole}function qdn(){if(eBe)return Fle;eBe=1;var e=LS(),n=Zz(),i=d8(),r=_vt(),s=(ZLe||(ZLe=1,KLe=function(p,h){var g=p.length;for(p.sort(h);g--;)p[g]=p[g].value;return p}),KLe),l=wte(),c=Gdn(),d=BT(),u=Ju();return Fle=function(p,h,g){h=h.length?e(h,(function(y){return u(y)?function(b){return n(b,y.length===1?y[0]:y)}:y})):[d];var f=-1;h=e(h,l(i));var x=r(p,(function(y,b,w){var C=e(h,(function(A){return A(y)}));return{criteria:C,index:++f,value:y}}));return s(x,(function(y,b){return c(y,b,g)}))},Fle}var Kdn=(function(){if(tBe)return Rle;tBe=1;var e=qdn(),n=Ju();return Rle=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))},Rle})();const Ste=pr(Kdn);var nBe,iBe,zle,oBe,Nle,rBe,_le,aBe;function Zdn(){if(oBe)return zle;oBe=1;var e=(iBe||(iBe=1,nBe=function(i,r,s){return i==i&&(s!==void 0&&(i=i<=s?i:s),r!==void 0&&(i=i>=r?i:r)),i}),nBe),n=Ate();return zle=function(i){return i?e(n(i),0,4294967295):0},zle}var Jdn=(function(){if(aBe)return _le;aBe=1;var e=(function(){if(rBe)return Nle;rBe=1;var i=Ate(),r=Zdn();return Nle=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},Nle})(),n=Fvt();return _le=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)):[]},_le})();const Hvt=pr(Jdn);var sBe,lBe,Vle,cBe,Hle,dBe,Ule,uBe,Wle,pBe;function Uvt(){if(dBe)return Hle;dBe=1;var e=ED(),n=(lBe||(lBe=1,sBe=function(l){var c=l==null?0:l.length;return c?l[c-1]:void 0}),sBe),i=(function(){if(cBe)return Vle;cBe=1;var l=Zz(),c=Hwe();return Vle=function(d,u){return u.length<2?d:l(d,c(u,0,-1))},Vle})(),r=LT(),s=Object.prototype.hasOwnProperty;return Hle=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))]},Hle}var Xdn=(function(){if(pBe)return Wle;pBe=1;var e=d8(),n=(function(){if(uBe)return Ule;uBe=1;var i=Uvt(),r=qz(),s=Array.prototype.splice;return Ule=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},Ule})();return Wle=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},Wle})();const qK=pr(Xdn);var Qle,hBe,Yle,mBe,Gle,gBe,qle,fBe,Kle,xBe,Zle,yBe,bBe,wBe;function eun(){if(mBe)return Yle;mBe=1;var e=(function(){if(hBe)return Qle;hBe=1;var n=DT(),i=Nwe(),r=l7(),s=Function.prototype,l=Object.prototype,c=s.toString,d=l.hasOwnProperty,u=c.call(Object);return Qle=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},Qle})();return Yle=function(n){return e(n)?void 0:n},Yle}function Wvt(){if(fBe)return qle;fBe=1;var e=Ewe(),n=(function(){if(gBe)return Gle;gBe=1;var i=$D(),r=Twe(),s=Ju(),l=i?i.isConcatSpreadable:void 0;return Gle=function(c){return s(c)||r(c)||!!(l&&c&&c[l])},Gle})();return qle=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},qle}function Qvt(){if(xBe)return Kle;xBe=1;var e=Wvt();return Kle=function(n){return n!=null&&n.length?e(n,1):[]},Kle}var tun=(function(){if(wBe)return bBe;wBe=1;var e=LS(),n=kvt(),i=Uvt(),r=ED(),s=cO(),l=eun(),c=(function(){if(yBe)return Zle;yBe=1;var p=Qvt(),h=Dvt(),g=Tvt();return Zle=function(f){return g(h(f,void 0,p),f+"")},Zle})(),d=_we(),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 bBe=u})();const Wwe=pr(tun);var Jle,CBe,nun=(function(){if(CBe)return Jle;CBe=1;var e=Wvt(),n=Vvt();return Jle=function(i,r){return e(n(i,r),1)},Jle})();const Yvt=pr(nun);var ABe,vBe,SBe,kBe,jBe,$Be,Xle,EBe,ece,IBe,DBe,TBe,LBe,BBe,tce,PBe,nce,MBe;function iun(){if(EBe)return Xle;EBe=1;var e=(vBe||(vBe=1,ABe=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}),ABe),n=(kBe||(kBe=1,SBe=function(r){return r!=r}),SBe),i=($Be||($Be=1,jBe=function(r,s,l){for(var c=l-1,d=r.length;++c<d;)if(r[c]===s)return c;return-1}),jBe);return Xle=function(r,s,l){return s==s?i(r,s,l):e(r,n,l)},Xle}function Gvt(){if(PBe)return tce;PBe=1;var e=svt(),n=(function(){if(IBe)return ece;IBe=1;var c=iun();return ece=function(d,u){return!(d==null||!d.length)&&c(d,u,0)>-1},ece})(),i=(TBe||(TBe=1,DBe=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}),DBe),r=lvt(),s=(function(){if(BBe)return LBe;BBe=1;var c=yvt(),d=Cvt(),u=T5e(),p=c&&1/u(new c([,-0]))[1]==1/0?function(h){return new c(h)}:d;return LBe=p})(),l=T5e();return tce=function(c,d,u){var p=-1,h=n,g=c.length,f=!0,x=[],y=x;if(u)f=!1,h=i;else if(g>=200){var b=d?null:s(c);if(b)return l(b);f=!1,h=r,y=new e}else y=d?[]:x;e:for(;++p<g;){var w=c[p],C=d?d(w):w;if(w=u||w!==0?w:0,f&&C==C){for(var A=y.length;A--;)if(y[A]===C)continue e;d&&y.push(C),x.push(w)}else h(y,C,u)||(y!==x&&y.push(C),x.push(w))}return x},tce}var oun=(function(){if(MBe)return nce;MBe=1;var e=d8(),n=Gvt();return nce=function(i,r){return i&&i.length?n(i,e(r,2)):[]},nce})();const run=pr(oun),aun=pr(Qvt());var ice,OBe,sun=(function(){if(OBe)return ice;OBe=1;var e=Gvt();return ice=function(n){return n&&n.length?e(n):[]},ice})();const lun=pr(sun);var oce,FBe,rce,RBe,ace,zBe,NBe,_Be,sce,VBe,lce,HBe,UBe,WBe,cce,QBe,dce,YBe,uce,GBe,qBe,KBe;function Qwe(){if(zBe)return ace;zBe=1;var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return ace=function(n){return e.test(n)},ace}function qvt(){if(HBe)return lce;HBe=1;var e=(function(){if(_Be)return NBe;_Be=1;var r=Uwe()("length");return NBe=r})(),n=Qwe(),i=(function(){if(VBe)return sce;VBe=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 sce=function(b){for(var w=y.lastIndex=0;y.test(b);)++w;return w},sce})();return lce=function(r){return n(r)?i(r):e(r)},lce}function cun(){if(YBe)return dce;YBe=1;var e=(WBe||(WBe=1,UBe=function(r){return r.split("")}),UBe),n=Qwe(),i=(function(){if(QBe)return cce;QBe=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 cce=function(b){return b.match(y)||[]},cce})();return dce=function(r){return n(r)?i(r):e(r)},dce}function dun(){if(GBe)return uce;GBe=1;var e=(function(){if(FBe)return oce;FBe=1;var d=Math.floor;return oce=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},oce})(),n=jvt(),i=(function(){if(RBe)return rce;RBe=1;var d=Hwe();return rce=function(u,p,h){var g=u.length;return h=h===void 0?g:h,!p&&h>=g?u:d(u,p,h)},rce})(),r=Qwe(),s=qvt(),l=cun(),c=Math.ceil;return uce=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)},uce}(function(){if(KBe)return qBe;KBe=1;var e=dun(),n=qvt(),i=Ate(),r=$vt();qBe=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 MR=e=>e.type==="checkbox",YE=e=>e instanceof Date,jp=e=>e==null;const Kvt=e=>typeof e=="object";var $d=e=>!jp(e)&&!Array.isArray(e)&&Kvt(e)&&!YE(e),Zvt=e=>$d(e)&&e.target?MR(e.target)?e.target.checked:e.target.value:e,Jvt=(e,n)=>e.has((i=>i.substring(0,i.search(/\.\d+(\.|$)/))||i)(n)),Ywe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Fh(e){let n;const i=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else{if(Ywe&&(e instanceof Blob||e instanceof FileList)||!i&&!$d(e))return e;if(n=i?[]:{},Array.isArray(e)||(r=>{const s=r.constructor&&r.constructor.prototype;return $d(s)&&s.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)n[r]=Fh(e[r]);else n=e}return n}var ID=e=>Array.isArray(e)?e.filter(Boolean):[],hl=e=>e===void 0,Ei=(e,n,i)=>{if(!n||!$d(e))return i;const r=ID(n.split(/[,[\].]+?/)).reduce(((s,l)=>jp(s)?s:s[l]),e);return hl(r)||r===e?hl(e[n])?i:e[n]:r};const Xvt="blur",uun="focusout",pun="change",hun="onBlur",eSt="onChange",tSt="onSubmit",mun="onTouched",DD="all",gun="max",fun="min",xun="maxLength",yun="minLength",ZBe="pattern",JBe="required",bun="validate",nSt=B.createContext(null),$t=()=>B.useContext(nSt),Dn=e=>{const{children:n,...i}=e;return B.createElement(nSt.Provider,{value:i},n)};var iSt=(e,n,i,r=!0)=>{const s={defaultValues:n._defaultValues};for(const l in e)Object.defineProperty(s,l,{get:()=>{const c=l;return n._proxyFormState[c]!==DD&&(n._proxyFormState[c]=!r||DD),i&&(i[c]=!0),e[c]}});return s},zm=e=>$d(e)&&!Object.keys(e).length,oSt=(e,n,i,r)=>{i(e);const{name:s,...l}=e;return zm(l)||Object.keys(l).length>=Object.keys(n).length||Object.keys(l).find((c=>n[c]===(!r||DD)))},qm=e=>Array.isArray(e)?e:[e],rSt=(e,n,i)=>i&&n?e===n:!e||!n||e===n||qm(e).some((r=>r&&(r.startsWith(n)||n.startsWith(r))));function kte(e){const n=B.useRef(e);n.current=e,B.useEffect((()=>{const i=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{i&&i.unsubscribe()}}),[e.disabled])}var bx=e=>typeof e=="string",aSt=(e,n,i,r,s)=>bx(e)?(r&&n.watch.add(e),Ei(i,e,s)):Array.isArray(e)?e.map((l=>(r&&n.watch.add(l),Ei(i,l)))):(r&&(n.watchAll=!0),i);function Ya(e){const n=$t(),{control:i=n.control,name:r,defaultValue:s,disabled:l,exact:c}=e||{},d=B.useRef(r);d.current=r,kte({disabled:l,subject:i._subjects.values,next:h=>{rSt(d.current,h.name,c)&&p(Fh(aSt(d.current,i._names,h.values||i._formValues,!1,s)))}});const[u,p]=B.useState(i._getWatch(r,s));return B.useEffect((()=>i._removeUnmounted())),u}var Gwe=e=>/^\w*$/.test(e),sSt=e=>ID(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Fs(e,n,i){let r=-1;const s=Gwe(n)?[n]:sSt(n),l=s.length,c=l-1;for(;++r<l;){const d=s[r];let u=i;if(r!==c){const p=e[d];u=$d(p)||Array.isArray(p)?p:isNaN(+s[r+1])?{}:[]}e[d]=u,e=e[d]}return e}function wun(e){const n=$t(),{name:i,control:r=n.control,shouldUnregister:s}=e,l=Jvt(r._names.array,i),c=Ya({control:r,name:i,defaultValue:Ei(r._formValues,i,Ei(r._defaultValues,i,e.defaultValue)),exact:!0}),d=(function(p){const h=$t(),{control:g=h.control,disabled:f,name:x,exact:y}=p||{},[b,w]=B.useState(g._formState),C=B.useRef(!0),A=B.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),S=B.useRef(x);return S.current=x,kte({disabled:f,next:k=>C.current&&rSt(S.current,k.name,y)&&oSt(k,A.current,g._updateFormState)&&w({...g._formState,...k}),subject:g._subjects.state}),B.useEffect((()=>(C.current=!0,A.current.isValid&&g._updateValid(!0),()=>{C.current=!1})),[g]),iSt(b,g,A.current,!1)})({control:r,name:i}),u=B.useRef(r.register(i,{...e.rules,value:c}));return B.useEffect((()=>{const p=r._options.shouldUnregister||s,h=(g,f)=>{const x=Ei(r._fields,g);x&&(x._f.mount=f)};if(h(i,!0),p){const g=Fh(Ei(r._options.defaultValues,i));Fs(r._defaultValues,i,g),hl(Ei(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:Zvt(p),name:i},type:pun})),[i]),onBlur:B.useCallback((()=>u.current.onBlur({target:{value:Ei(r._formValues,i),name:i},type:Xvt})),[i,r]),ref:p=>{const h=Ei(r._fields,i);h&&p&&(h._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})}},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ei(d.errors,i)},isDirty:{enumerable:!0,get:()=>!!Ei(d.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!Ei(d.touchedFields,i)},error:{enumerable:!0,get:()=>Ei(d.errors,i)}})}}const _i=e=>e.render(wun(e));var Cun=(e,n,i,r,s)=>n?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[r]:s||!0}}:{};const KK=(e,n,i)=>{for(const r of i||Object.keys(e)){const s=Ei(e,r);if(s){const{_f:l,...c}=s;if(l&&n(l.name)){if(l.ref.focus){l.ref.focus();break}if(l.refs&&l.refs[0].focus){l.refs[0].focus();break}}else $d(c)&&KK(c,n)}}};var Y7=()=>{const e=typeof performance>"u"?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(n=>{const i=(16*Math.random()+e)%16|0;return(n=="x"?i:3&i|8).toString(16)}))},pce=(e,n,i={})=>i.shouldFocus||hl(i.shouldFocus)?i.focusName||`${e}.${hl(i.focusIndex)?n:i.focusIndex}.`:"",P5e=e=>({isOnSubmit:!e||e===tSt,isOnBlur:e===hun,isOnChange:e===eSt,isOnAll:e===DD,isOnTouch:e===mun}),M5e=(e,n,i)=>!i&&(n.watchAll||n.watch.has(e)||[...n.watch].some((r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))))),lSt=(e,n,i)=>{const r=ID(Ei(e,i));return Fs(r,"root",n[i]),Fs(e,i,r),e},OI=e=>typeof e=="boolean",qwe=e=>e.type==="file",r9=e=>typeof e=="function",ZK=e=>{if(!Ywe)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},pq=e=>bx(e),Kwe=e=>e.type==="radio",JK=e=>e instanceof RegExp;const XBe={value:!1,isValid:!1},ePe={value:!0,isValid:!0};var cSt=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter((i=>i&&i.checked&&!i.disabled)).map((i=>i.value));return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!hl(e[0].attributes.value)?hl(e[0].value)||e[0].value===""?ePe:{value:e[0].value,isValid:!0}:ePe:XBe}return XBe};const tPe={isValid:!1,value:null};var dSt=e=>Array.isArray(e)?e.reduce(((n,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:n),tPe):tPe;function nPe(e,n,i="validate"){if(pq(e)||Array.isArray(e)&&e.every(pq)||OI(e)&&!e)return{type:i,message:pq(e)?e:"",ref:n}}var Ek=e=>$d(e)&&!JK(e)?e:{value:e,message:""},O5e=async(e,n,i,r,s)=>{const{ref:l,refs:c,required:d,maxLength:u,minLength:p,min:h,max:g,pattern:f,validate:x,name:y,valueAsNumber:b,mount:w,disabled:C}=e._f,A=Ei(n,y);if(!w||C)return{};const S=c?c[0]:l,k=N=>{r&&S.reportValidity&&(S.setCustomValidity(OI(N)?"":N||""),S.reportValidity())},$={},j=Kwe(l),I=MR(l),E=j||I,D=(b||qwe(l))&&hl(l.value)&&hl(A)||ZK(l)&&l.value===""||A===""||Array.isArray(A)&&!A.length,L=Cun.bind(null,y,i,$),F=(N,_,z,T=xun,M=yun)=>{const O=N?_:z;$[y]={type:N?T:M,message:O,ref:l,...L(N?T:M,O)}};if(s?!Array.isArray(A)||!A.length:d&&(!E&&(D||jp(A))||OI(A)&&!A||I&&!cSt(c).isValid||j&&!dSt(c).isValid)){const{value:N,message:_}=pq(d)?{value:!!d,message:d}:Ek(d);if(N&&($[y]={type:JBe,message:_,ref:S,...L(JBe,_)},!i))return k(_),$}if(!(D||jp(h)&&jp(g))){let N,_;const z=Ek(g),T=Ek(h);if(jp(A)||isNaN(A)){const M=l.valueAsDate||new Date(A),O=W=>new Date(new Date().toDateString()+" "+W),H=l.type=="time",V=l.type=="week";bx(z.value)&&A&&(N=H?O(A)>O(z.value):V?A>z.value:M>new Date(z.value)),bx(T.value)&&A&&(_=H?O(A)<O(T.value):V?A<T.value:M<new Date(T.value))}else{const M=l.valueAsNumber||A&&+A;jp(z.value)||(N=M>z.value),jp(T.value)||(_=M<T.value)}if((N||_)&&(F(!!N,z.message,T.message,gun,fun),!i))return k($[y].message),$}if((u||p)&&!D&&(bx(A)||s&&Array.isArray(A))){const N=Ek(u),_=Ek(p),z=!jp(N.value)&&A.length>+N.value,T=!jp(_.value)&&A.length<+_.value;if((z||T)&&(F(z,N.message,_.message),!i))return k($[y].message),$}if(f&&!D&&bx(A)){const{value:N,message:_}=Ek(f);if(JK(N)&&!A.match(N)&&($[y]={type:ZBe,message:_,ref:l,...L(ZBe,_)},!i))return k(_),$}if(x){if(r9(x)){const N=nPe(await x(A,n),S);if(N&&($[y]={...N,...L(bun,N.message)},!i))return k(N.message),$}else if($d(x)){let N={};for(const _ in x){if(!zm(N)&&!i)break;const z=nPe(await x[_](A,n),S,_);z&&(N={...z,...L(_,z.message)},k(z.message),i&&($[y]=N))}if(!zm(N)&&($[y]={ref:S,...N},!i))return $}}return k(!0),$};function hce(e,n){return[...e,...qm(n)]}var mce=e=>Array.isArray(e)?e.map((()=>{})):void 0;function gce(e,n,i){return[...e.slice(0,n),...qm(i),...e.slice(n)]}var fce=(e,n,i)=>Array.isArray(e)?(hl(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(n,1)[0]),e):[];function xce(e,n){return[...qm(n),...qm(e)]}var yce=(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 ID(l).length?l:[]})(e,qm(n).sort(((i,r)=>i-r))),bce=(e,n,i)=>{e[n]=[e[i],e[i]=e[n]][0]};function Hd(e,n){const i=Array.isArray(n)?n:Gwe(n)?[n]:sSt(n),r=i.length===1?e:(function(c,d){const u=d.slice(0,-1).length;let p=0;for(;p<u;)c=hl(c)?p++:c[d[p++]];return c})(e,i),s=i.length-1,l=i[s];return r&&delete r[l],s!==0&&($d(r)&&zm(r)||Array.isArray(r)&&(function(c){for(const d in c)if(!hl(c[d]))return!1;return!0})(r))&&Hd(e,i.slice(0,-1)),e}var iPe=(e,n,i)=>(e[n]=i,e);function $l(e){const n=$t(),{control:i=n.control,name:r,keyName:s="id",shouldUnregister:l}=e,[c,d]=B.useState(i._getFieldArray(r)),u=B.useRef(i._getFieldArray(r).map(Y7)),p=B.useRef(c),h=B.useRef(r),g=B.useRef(!1);h.current=r,p.current=c,i._names.array.add(r),e.rules&&i.register(r,e.rules),kte({next:({values:x,name:y})=>{if(y===h.current||!y){const b=Ei(x,h.current);Array.isArray(b)&&(d(b),u.current=b.map(Y7))}},subject:i._subjects.array});const f=B.useCallback((x=>{g.current=!0,i._updateFieldArray(r,x)}),[i,r]);return B.useEffect((()=>{if(i._state.action=!1,M5e(r,i._names)&&i._subjects.state.next({...i._formState}),g.current&&(!P5e(i._options.mode).isOnSubmit||i._formState.isSubmitted))if(i._options.resolver)i._executeSchema([r]).then((x=>{const y=Ei(x.errors,r),b=Ei(i._formState.errors,r);(b?!y&&b.type:y&&y.type)&&(y?Fs(i._formState.errors,r,y):Hd(i._formState.errors,r),i._subjects.state.next({errors:i._formState.errors}))}));else{const x=Ei(i._fields,r);x&&x._f&&O5e(x,i._formValues,i._options.criteriaMode===DD,i._options.shouldUseNativeValidation,!0).then((y=>!zm(y)&&i._subjects.state.next({errors:lSt(i._formState.errors,y,r)})))}i._subjects.values.next({name:r,values:{...i._formValues}}),i._names.focus&&KK(i._fields,(x=>!!x&&x.startsWith(i._names.focus||""))),i._names.focus="",i._updateValid()}),[c,r,i]),B.useEffect((()=>(!Ei(i._formValues,r)&&i._updateFieldArray(r),()=>{(i._options.shouldUnregister||l)&&i.unregister(r)})),[r,i,s,l]),{swap:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);bce(b,x,y),bce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,bce,{argA:x,argB:y},!1)}),[f,r,i]),move:B.useCallback(((x,y)=>{const b=i._getFieldArray(r);fce(b,x,y),fce(u.current,x,y),f(b),d(b),i._updateFieldArray(r,b,fce,{argA:x,argB:y},!1)}),[f,r,i]),prepend:B.useCallback(((x,y)=>{const b=qm(Fh(x)),w=xce(i._getFieldArray(r),b);i._names.focus=pce(r,0,y),u.current=xce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,xce,{argA:mce(x)})}),[f,r,i]),append:B.useCallback(((x,y)=>{const b=qm(Fh(x)),w=hce(i._getFieldArray(r),b);i._names.focus=pce(r,w.length-1,y),u.current=hce(u.current,b.map(Y7)),f(w),d(w),i._updateFieldArray(r,w,hce,{argA:mce(x)})}),[f,r,i]),remove:B.useCallback((x=>{const y=yce(i._getFieldArray(r),x);u.current=yce(u.current,x),f(y),d(y),i._updateFieldArray(r,y,yce,{argA:x})}),[f,r,i]),insert:B.useCallback(((x,y,b)=>{const w=qm(Fh(y)),C=gce(i._getFieldArray(r),x,w);i._names.focus=pce(r,x,b),u.current=gce(u.current,x,w.map(Y7)),f(C),d(C),i._updateFieldArray(r,C,gce,{argA:x,argB:mce(y)})}),[f,r,i]),update:B.useCallback(((x,y)=>{const b=Fh(y),w=iPe(i._getFieldArray(r),x,b);u.current=[...w].map(((C,A)=>C&&A!==x?u.current[A]:Y7())),f(w),d([...w]),i._updateFieldArray(r,w,iPe,{argA:x,argB:b},!0,!1)}),[f,r,i]),replace:B.useCallback((x=>{const y=qm(Fh(x));u.current=y.map(Y7),f([...y]),d([...y]),i._updateFieldArray(r,[...y],(b=>b),{},!0,!1)}),[f,r,i]),fields:B.useMemo((()=>c.map(((x,y)=>({...x,[s]:u.current[y]||Y7()})))),[c,s])}}function wce(){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 XK=e=>jp(e)||!Kvt(e);function VA(e,n){if(XK(e)||XK(n))return e===n;if(YE(e)&&YE(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(YE(l)&&YE(c)||$d(l)&&$d(c)||Array.isArray(l)&&Array.isArray(c)?!VA(l,c):l!==c)return!1}}return!0}var uSt=e=>e.type==="select-multiple",Cce=e=>ZK(e)&&e.isConnected,pSt=e=>{for(const n in e)if(r9(e[n]))return!0;return!1};function eZ(e,n={}){const i=Array.isArray(e);if($d(e)||i)for(const r in e)Array.isArray(e[r])||$d(e[r])&&!pSt(e[r])?(n[r]=Array.isArray(e[r])?[]:{},eZ(e[r],n[r])):jp(e[r])||(n[r]=!0);return n}function hSt(e,n,i){const r=Array.isArray(e);if($d(e)||r)for(const s in e)Array.isArray(e[s])||$d(e[s])&&!pSt(e[s])?hl(n)||XK(i[s])?i[s]=Array.isArray(e[s])?eZ(e[s],[]):{...eZ(e[s])}:hSt(e[s],jp(n)?{}:n[s],i[s]):i[s]=!VA(e[s],n[s]);return i}var Ace=(e,n)=>hSt(e,n,eZ(n)),mSt=(e,{valueAsNumber:n,valueAsDate:i,setValueAs:r})=>hl(e)?e:n?e===""?NaN:e&&+e:i&&bx(e)?new Date(e):r?r(e):e;function vce(e){const n=e.ref;if(!(e.refs?e.refs.every((i=>i.disabled)):n.disabled))return qwe(n)?n.files:Kwe(n)?dSt(e.refs).value:uSt(n)?[...n.selectedOptions].map((({value:i})=>i)):MR(n)?cSt(e.refs).value:mSt(hl(n.value)?e.ref.value:n.value,e)}var RL=e=>hl(e)?e:JK(e)?e.source:$d(e)?JK(e.value)?e.value.source:e.value:e;function oPe(e,n,i){const r=Ei(e,i);if(r||Gwe(i))return{error:r,name:i};const s=i.split(".");for(;s.length;){const l=s.join("."),c=Ei(n,l),d=Ei(e,l);if(c&&!Array.isArray(c)&&i!==l)return{name:i};if(d&&d.type)return{name:l,error:d};s.pop()}return{name:i}}const Aun={mode:tSt,reValidateMode:eSt,shouldFocusError:!0};function vun(e={},n){let i,r={...Aun,...e},s={submitCount:0,isDirty:!1,isLoading:r9(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},l={},c=($d(r.defaultValues)||$d(r.values))&&Fh(r.defaultValues||r.values)||{},d=r.shouldUnregister?{}:Fh(c),u={action:!1,mount:!1,watch:!1},p={mount:new Set,unMount:new Set,array:new Set,watch:new Set},h=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:wce(),array:wce(),state:wce()},x=e.resetOptions&&e.resetOptions.keepDirtyValues,y=P5e(r.mode),b=P5e(r.reValidateMode),w=r.criteriaMode===DD,C=async Y=>{if(g.isValid||Y){const q=r.resolver?zm((await j()).errors):await I(l,!0);q!==s.isValid&&f.state.next({isValid:q})}},A=Y=>g.isValidating&&f.state.next({isValidating:Y}),S=(Y,q,K,J)=>{const ee=Ei(l,Y);if(ee){const te=Ei(d,Y,hl(K)?Ei(c,Y):K);hl(te)||J&&J.defaultChecked||q?Fs(d,Y,q?te:vce(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=VA(Ei(c,Y),q);ne=Ei(s.dirtyFields,Y),re?Hd(s.dirtyFields,Y):Fs(s.dirtyFields,Y,!0),ae.dirtyFields=s.dirtyFields,te=te||g.dirtyFields&&ne!==!re}if(K){const re=Ei(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=Ei(s.errors,Y),te=g.isValid&&OI(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):Hd(s.errors,Y)),(K?!VA(ee,K):ee)||!zm(J)||te){const ne={...J,...te&&OI(q)?{isValid:q}:{},errors:s.errors,name:Y};s={...s,...ne},f.state.next(ne)}A(!1)},j=async Y=>r.resolver(d,r.context,((q,K,J,ee)=>{const te={};for(const ne of q){const ae=Ei(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 O5e(ee,d,w,r.shouldUseNativeValidation&&!q,ae);if(re[te.name]&&(K.valid=!1,q))break;!q&&(Ei(re,te.name)?ae?lSt(s.errors,re,te.name):Fs(s.errors,te.name,re[te.name]):Hd(s.errors,te.name))}ne&&await I(ne,q,K)}}return K.valid},E=(Y,q)=>(Y&&q&&Fs(d,Y,q),!VA(T(),c)),D=(Y,q,K)=>aSt(Y,p,{...u.mount?d:hl(q)?c:bx(Y)?{[Y]:q}:q},K,q),L=(Y,q,K={})=>{const J=Ei(l,Y);let ee=q;if(J){const te=J._f;te&&(!te.disabled&&Fs(d,Y,mSt(q,te)),ee=ZK(te.ref)&&jp(q)?"":q,uSt(te.ref)?[...te.ref.options].forEach((ne=>ne.selected=ee.includes(ne.value))):te.refs?MR(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)):qwe(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=Ei(l,te);!p.array.has(Y)&&XK(ee)&&(!ne||ne._f)||YE(ee)?L(te,ee,K):F(te,ee,K)}},N=(Y,q,K={})=>{const J=Ei(l,Y),ee=p.array.has(Y),te=Fh(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:Ace(c,d),isDirty:E(Y,te)})):!J||J._f||jp(te)?L(Y,te,K):F(Y,te,K),M5e(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=Ei(l,K);if(ee){let te,ne;const ae=q.type?vce(ee._f):Zvt(Y),re=Y.type===Xvt||Y.type===uun,le=!(ie=>ie.mount&&(ie.required||ie.min||ie.max||ie.maxLength||ie.minLength||ie.pattern||ie.validate))(ee._f)&&!r.resolver&&!Ei(s.errors,K)&&!ee._f.deps||((ie,ce,de,he,me)=>!me.isOnAll&&(!de&&me.isOnTouch?!(ce||ie):(de?he.isOnBlur:me.isOnBlur)?!ie:!(de?he.isOnChange:me.isOnChange)||ie))(re,Ei(s.touchedFields,K),s.isSubmitted,b,y),ge=M5e(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=!zm(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}),A(!0),r.resolver){const{errors:ie}=await j([K]),ce=oPe(s.errors,l,K),de=oPe(ie,l,ce.name||K);te=de.error,K=de.name,ne=zm(ie)}else te=(await O5e(ee,d,w,r.shouldUseNativeValidation))[K],J=isNaN(ae)||ae===Ei(d,K,ae),J&&(te?ne=!1:g.isValid&&(ne=await I(l,!0)));J&&(ee._f.deps&&z(ee._f.deps),$(K,ne,te,ue))}},z=async(Y,q={})=>{let K,J;const ee=qm(Y);if(A(!0),r.resolver){const te=await(async ne=>{const{errors:ae}=await j();if(ne)for(const re of ne){const le=Ei(ae,re);le?Fs(s.errors,re,le):Hd(s.errors,re)}else s.errors=ae;return ae})(hl(Y)?Y:ee);K=zm(te),J=Y?!ee.some((ne=>Ei(te,ne))):K}else Y?(J=(await Promise.all(ee.map((async te=>{const ne=Ei(l,te);return await I(ne&&ne._f?{[te]:ne}:ne)})))).every(Boolean),(J||s.isValid)&&C()):J=K=await I(l);return f.state.next({...!bx(Y)||g.isValid&&K!==s.isValid?{}:{name:Y},...r.resolver||!Y?{isValid:K}:{},errors:s.errors,isValidating:!1}),q.shouldFocus&&!J&&KK(l,(te=>te&&Ei(s.errors,te)),Y?ee:p.mount),J},T=Y=>{const q={...c,...u.mount?d:{}};return hl(Y)?q:bx(Y)?Ei(q,Y):Y.map((K=>Ei(q,K)))},M=(Y,q)=>({invalid:!!Ei((q||s).errors,Y),isDirty:!!Ei((q||s).dirtyFields,Y),isTouched:!!Ei((q||s).touchedFields,Y),error:Ei((q||s).errors,Y)}),O=(Y,q={})=>{for(const K of Y?qm(Y):p.mount)p.mount.delete(K),p.array.delete(K),q.keepValue||(Hd(l,K),Hd(d,K)),!q.keepError&&Hd(s.errors,K),!q.keepDirty&&Hd(s.dirtyFields,K),!q.keepTouched&&Hd(s.touchedFields,K),!r.shouldUnregister&&!q.keepDefaultValue&&Hd(c,K);f.values.next({values:{...d}}),f.state.next({...s,...q.keepDirty?{isDirty:E()}:{}}),!q.keepIsValid&&C()},H=(Y,q={})=>{let K=Ei(l,Y);const J=OI(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:Ei(d,Y,vce(K._f))):S(Y,!0,q.value),{...J?{disabled:q.disabled}:{},...r.shouldUseNativeValidation?{required:!!q.required,min:RL(q.min),max:RL(q.max),minLength:RL(q.minLength),maxLength:RL(q.maxLength),pattern:RL(q.pattern)}:{},name:Y,onChange:_,onBlur:_,ref:ee=>{if(ee){H(Y,q),K=Ei(l,Y);const te=hl(ee.value)&&ee.querySelectorAll&&ee.querySelectorAll("input,select,textarea")[0]||ee,ne=(re=>Kwe(re)||MR(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(Cce),te,...Array.isArray(Ei(c,Y))?[{}]:[]],ref:{type:te.type,name:Y}}:{ref:te}}}),S(Y,!1,void 0,te)}else K=Ei(l,Y,{}),K._f&&(K._f.mount=!1),(r.shouldUnregister||q.shouldUnregister)&&(!Jvt(p.array,Y)||!u.action)&&p.unMount.add(Y)}}},V=()=>r.shouldFocusError&&KK(l,(Y=>Y&&Ei(s.errors,Y)),p.mount),W=(Y,q={})=>{const K=Y||c,J=Fh(K),ee=Y&&!zm(Y)?J:c;if(q.keepDefaultValues||(c=K),!q.keepValues){if(q.keepDirtyValues||x)for(const te of p.mount)Ei(s.dirtyFields,te)?Fs(ee,te,Ei(d,te)):N(te,Ei(ee,te));else{if(Ywe&&hl(Y))for(const te of p.mount){const ne=Ei(l,te);if(ne&&ne._f){const ae=Array.isArray(ne._f.refs)?ne._f.refs[0]:ne._f.ref;if(ZK(ae)){const re=ae.closest("form");if(re){re.reset();break}}}}l={}}d=e.shouldUnregister?q.keepDefaultValues?Fh(c):{}:J,f.array.next({values:{...ee}}),f.values.next({values:{...ee}})}p={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!u.mount&&n(),u.mount=!g.isValid||!!q.keepIsValid,u.watch=!!e.shouldUnregister,f.state.next({submitCount:q.keepSubmitCount?s.submitCount:0,isDirty:q.keepDirty?s.isDirty:!(!q.keepDefaultValues||VA(Y,c)),isSubmitted:!!q.keepIsSubmitted&&s.isSubmitted,dirtyFields:q.keepDirtyValues?s.dirtyFields:q.keepDefaultValues&&Y?Ace(c,Y):{},touchedFields:q.keepTouched?s.touchedFields:{},errors:q.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},U=(Y,q)=>W(r9(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=Ei(l,Y);q&&(q._f.refs?q._f.refs.every((K=>!Cce(K))):!Cce(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(Ei(l,Y))){const ne=K(Ei(l,Y),J.argA,J.argB);ee&&Fs(l,Y,ne)}if(te&&Array.isArray(Ei(s.errors,Y))){const ne=K(Ei(s.errors,Y),J.argA,J.argB);ee&&Fs(s.errors,Y,ne),((ae,re)=>{!ID(Ei(ae,re)).length&&Hd(ae,re)})(s.errors,Y)}if(g.touchedFields&&te&&Array.isArray(Ei(s.touchedFields,Y))){const ne=K(Ei(s.touchedFields,Y),J.argA,J.argB);ee&&Fs(s.touchedFields,Y,ne)}g.dirtyFields&&(s.dirtyFields=Ace(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=>ID(Ei(u.mount?d:c,Y,e.shouldUnregister?Ei(c,Y,[]):[])),_reset:W,_resetDefaultValues:()=>r9(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=Fh(d);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:te}=await j();s.errors=ee,J=te}else await I(l);Hd(s.errors,"root"),zm(s.errors)?(f.state.next({errors:{}}),await Y(J,K)):(q&&await q({...s.errors},K),V(),setTimeout(V)),f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:zm(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(Y,q)=>r9(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={})=>{Ei(l,Y)&&(hl(q.defaultValue)?N(Y,Ei(c,Y)):(N(Y,q.defaultValue),Fs(c,Y,q.defaultValue)),q.keepTouched||Hd(s.touchedFields,Y),q.keepDirty||(Hd(s.dirtyFields,Y),s.isDirty=q.defaultValue?E(Y,Ei(c,Y)):E()),q.keepError||(Hd(s.errors,Y),g.isValid&&C()),f.state.next({...s}))},clearErrors:Y=>{Y&&qm(Y).forEach((q=>Hd(s.errors,q))),f.state.next({errors:Y?s.errors:{}})},unregister:O,setError:(Y,q,K)=>{const J=(Ei(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=Ei(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:r9(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:r9(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...vun(e,(()=>r((l=>({...l}))))),formState:i});const s=n.current.control;return s._options=e,kte({subject:s._subjects.state,next:l=>{oSt(l,s._proxyFormState,s._updateFormState,!0)&&r({...s._formState})}}),B.useEffect((()=>{e.values&&!VA(e.values,s._defaultValues)?s._reset(e.values,s._options.resetOptions):s._resetDefaultValues()}),[e.values,s]),B.useEffect((()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()})),n.current.formState=iSt(i,s),n.current}let kx;kx=typeof window<"u"?window:typeof self<"u"?self:v5e;let F5e=null,R5e=null;const Sce=kx.clearTimeout,rPe=kx.setTimeout,kce=kx.cancelAnimationFrame||kx.mozCancelAnimationFrame||kx.webkitCancelAnimationFrame,aPe=kx.requestAnimationFrame||kx.mozRequestAnimationFrame||kx.webkitRequestAnimationFrame;function Sun(e){let n,i,r,s,l,c,d;const u=typeof document<"u"&&document.attachEvent;if(!u){c=function(y){const b=y.__resizeTriggers__,w=b.firstElementChild,C=b.lastElementChild,A=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,A.style.width=w.offsetWidth+1+"px",A.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},l=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},d=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const b=this;c(this),this.__resizeRAF__&&F5e(this.__resizeRAF__),this.__resizeRAF__=R5e((function(){l(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach((function(w){w.call(b,y)})))}))};let p=!1,h="";r="animationstart";const g="Webkit Moz O ms".split(" ");let f="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),x="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b<g.length;b++)if(y.style[g[b]+"AnimationName"]!==void 0){x=g[b],h="-"+x.toLowerCase()+"-",r=f[b],p=!0;break}}}i="resizeanim",n="@"+h+"keyframes "+i+" { from { opacity: 0; } to { opacity: 0; } } ",s=h+"animation: 1ms "+i+"; "}return{addResizeListener:function(p,h){if(u)p.attachEvent("onresize",h);else{if(!p.__resizeTriggers__){const g=p.ownerDocument,f=kx.getComputedStyle(p);f&&f.position==="static"&&(p.style.position="relative"),(function(b){if(!b.getElementById("detectElementResize")){const w=(n||"")+".resize-triggers { "+(s||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',C=b.head||b.getElementsByTagName("head")[0],A=b.createElement("style");A.id="detectElementResize",A.type="text/css",e!=null&&A.setAttribute("nonce",e),A.styleSheet?A.styleSheet.cssText=w:A.appendChild(b.createTextNode(w)),C.appendChild(A)}})(g),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=g.createElement("div")).className="resize-triggers";const x=g.createElement("div");x.className="expand-trigger",x.appendChild(g.createElement("div"));const y=g.createElement("div");y.className="contract-trigger",p.__resizeTriggers__.appendChild(x),p.__resizeTriggers__.appendChild(y),p.appendChild(p.__resizeTriggers__),c(p),p.addEventListener("scroll",d,!0),r&&(p.__resizeTriggers__.__animationListener__=function(b){b.animationName===i&&c(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(h)}},removeResizeListener:function(p,h){if(u)p.detachEvent("onresize",h);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(h),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",d,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}kce==null||aPe==null?(F5e=Sce,R5e=function(e){return rPe(e,20)}):(F5e=function([e,n]){kce(e),Sce(n)},R5e=function(e){const n=aPe((function(){Sce(i),e()})),i=rPe((function(){kce(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=Sun(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:i,disableHeight:r=!1,disableWidth:s=!1,doNotBailOutOnEmptyChildren:l=!1,nonce:c,onResize:d,style:u={},tagName:p="div",...h}=this.props,{height:g,width:f}=this.state,x={overflow:"visible"},y={};let b=!1;return r||(g===0&&(b=!0),x.height=0,y.height=g,y.scaledHeight=g),s||(f===0&&(b=!0),x.width=0,y.width=f,y.scaledWidth=f),l&&(b=!1),m.createElement(p,{ref:this._setRef,style:{...x,...u},...h},!b&&e(y))}};function n0(e){return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},n0(e)}function z5e(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 Zwe(e,n){if(e){if(typeof e=="string")return z5e(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)?z5e(e,n):void 0}}function sPe(e,n){var i=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Zwe(e))||n){i&&(e=i);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,c=!0,d=!1;return{s:function(){i=i.call(e)},n:function(){var u=i.next();return c=u.done,u},e:function(u){d=!0,l=u},f:function(){try{c||i.return==null||i.return()}finally{if(d)throw l}}}}function Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tZ(e,n){return tZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},tZ(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&&tZ(e,n)}function nZ(e){return nZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nZ(e)}function gSt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(gSt=function(){return!!e})()}function Ia(e){var n=gSt();return function(){var i,r=nZ(e);if(n){var s=nZ(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return(function(l,c){if(c&&(n0(c)=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bi(l)})(this,i)}}function da(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function fSt(e){var n=(function(i,r){if(n0(i)!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,r);if(n0(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)})(e,"string");return n0(n)=="symbol"?n:n+""}function lPe(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fSt(r.key),r)}}function ua(e,n,i){return n&&lPe(e.prototype,n),i&&lPe(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Si(e,n,i){return(n=fSt(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function cPe(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?cPe(Object(i),!0).forEach((function(r){Si(e,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):cPe(Object(i)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))}))}return e}function Xd(e,n){return(function(i){if(Array.isArray(i))return i})(e)||(function(i,r){var s=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(s!=null){var l,c,d,u,p=[],h=!0,g=!1;try{if(d=(s=s.call(i)).next,r===0){if(Object(s)!==s)return;h=!1}else for(;!(h=(l=d.call(s)).done)&&(p.push(l.value),p.length!==r);h=!0);}catch(f){g=!0,c=f}finally{try{if(!h&&s.return!=null&&(u=s.return(),Object(u)!==u))return}finally{if(g)throw c}}return p}})(e,n)||Zwe(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 iZ(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=iZ(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 FI(e){return(function(n){if(Array.isArray(n))return z5e(n)})(e)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(e)||Zwe(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -92465,7 +92465,7 @@ ${GM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
92465
92465
|
padding: ${o.sp3} ${o.sp0};
|
|
92466
92466
|
`,iCt=a(ut)`
|
|
92467
92467
|
min-width: 140px;
|
|
92468
|
-
`,DR=RCt(Kcn()),z7s=["sandbox","production"],N7s=["development","staging","production"],_7s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],bD=()=>Ul==="DEV"||Ul==="QA"||Ul==="PUNE"||Ul==="SUNNYVALE"||Ul==="DELHI"||Ul==="MOHALI",qje="https://zeni-webapp-dev.uc.r.appspot.com",Ul=(e=>y7(e,_7s))("DEV"),Eks=(e=>y7(e,z7s))((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)),oCt=(e=>y7(e,N7s))((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)),V7s=(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 von(e,n){return DR.AES.decrypt(e,n).toString(DR.enc.Utf8)}const Son="ZENI-WEB-APP-",Kje=Ul==="DEV"||Ul==="QA"?.2:.8,kon=Kje,Zs={sentryDsn:"",sentryTraceSamplingRate:Kje,sentryProfileSamplingRate:kon,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let Kx,Uz;function H7s(){return Kx?.aiCfoMicroServiceBaseUrl!=null?`${Kx.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function jon(e){Zs.sentryDsn=e.keys.SENTRY_DSN,Zs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Kje,Zs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):kon,Zs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Zs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Zs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Zs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Zs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Zs.pusherCluster=e.keys.PUSHER_CLUSTER,Zs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Zs.appUrl=e.keys.WEB_ENDPOINT,Zs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Zs.cardVaultId=e.keys.UNIT_VAULT_ID,Zs.stripeKey=e.keys.STRIPE_KEY,Zs.qboRedirectionUrl=e.keys.QBO_URL,Zs.mixpanelUrl=e.keys.MIXPANEL_URL,Zs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Uz=e.externalEndPoints,Kx=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)}})(Kx,Uz)}async function rCt(){const e={environment:Ul},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${qje}/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 aCt=!1;function QE(){aCt||(cg.init("63d3a2406505a5737a2b4debdb513f20",{api_host:Uz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),aCt=!0)}const U7s=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let sCt=!1,lCt=!1;function Q8e(){if(sCt)return;sCt=!0,QE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&cg.register(e),bD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const W7s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function Q7s(){const e=(function(){return cg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||W7s.has(i)));for(const i of n)cg.unregister(i);bD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function cCt(){lCt||(lCt=!0,Q7s())}class PI{identify(n,i){if(QE(),this.#t=n,n!=null&&i!=null&&(PI.#e==null||!mln({userId:n,traits:i},PI.#e))){const{$email:r,...s}={...i};cg.identify(n),r&&r!=null&&cg.people.set_once({$email:r}),cg.people.set(s),PI.#e={userId:n,traits:i},bD()&&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){QE();const r=U7s.has(n);if(this.#t!=null||r){if(Q8e(),this.#t!=null){const s={distinct_id:this.#t,...i};cg.track(n,s)}else cg.track(n,i);if(cCt(),bD()){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){QE(),Q8e(),cg.track(n,i),cCt(),bD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){QE(),cg.alias(n,i)}reset(){QE(),cg.identify(void 0),this.#t=void 0,PI.#e=void 0}static#e;#t}const Y8e=new PI,$on=new Ni.Analytics(Y8e);$on.trackWithoutUserId=Y8e.trackWithoutUserId.bind(Y8e);const Gm=$on,Y7s="openAiCfoScope",G8e="openAiCfoScopeOnDashboard";function Iks(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[G8e]:!0,...r}})}function Dks(e){const n=hte(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 Zje(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 Eon(e,n){return(e||n?.chatSessionSummary)??null}const Ion="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",Zee="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(Zee)),!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(Zee))}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 DR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=DR.AES.decrypt(e,n).toString(DR.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=Ion;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]},Tks=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},ST=(e,n)=>{const i=[...e??[]];return i.push(n),i},Lks=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Bks=({state:e})=>Tr.isSignedIn()===!0?on.jsx(Grn,{}):on.jsx(VCt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),G7s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function Don(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of G7s)delete n[i];return n}function q7s(){const e=Mp(),n=Wg(),i=tte(),{tenantEmailDomain:r}=HCt(),[s,l]=m.useState(!1),c=Nr((A=>A.tenantState.fetchState==="Completed"||A.tenantState.activeTenantFetchState.fetchState==="Completed"?_p(A):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Nr((A=>hte(A))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const A=n.state;if(A?.[G8e]!==!0)return;const S=A.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof A.aiCfoInitialSubmissionSource=="string"?A.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof A.aiCfoSuggestionIndex=="number"?A.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...Don(A),[G8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const A=p.current;if(A==null||r==null)return!1;p.current=null;const S=n.state,k=ST(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:A.question,aiCfoShouldSubmit:!0,...A.submissionSource!=null?{aiCfoInitialSubmissionSource:A.submissionSource}:{},...A.suggestionIndex!=null?{aiCfoSuggestionIndex:A.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Wt(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const A=ST(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:A,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(RAt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(eon,{open:s,onClose:w,children:on.jsxs(Xin,{children:[s&&!h?on.jsx(Ive,{analytics:Gm,onLoad:A=>h?null:A.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(Zye,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const q8e=m.createContext(void 0);function Jje(){const e=m.useContext(q8e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Xje=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],e$e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Ton=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],Lon=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],Bon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],Pon=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],Mon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Oon=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Fon=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Ron(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 zon=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Non=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],_on=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],K7s=[...Ton,...Xje,...e$e,"/: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",...zon,...Non,..._on,...Lon,...Bon,...Pon,...Mon,...Oon,...Fon];function Von(){const{pathname:e}=Wg(),n=e??"";return K7s.some((i=>ewe(i,n)!=null))||Ron(e)}function Yd(e){const{pathname:n}=Wg(),i=n??"";return e.some((r=>ewe(r,i)!=null))}const Pks=27.22,Hon=m.createContext(null),Uon={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Z7s({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(Hon.Provider,{value:c,children:e})}function t$e(){const e=m.useContext(Hon);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function J7s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Cln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=yln(c);u.length!==0&&(e(bln(u)),e(wln({sourceChatSessionId:n})),n!=null&&e(E$e({chatSessionId:n,id:M$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(xln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Kra(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const A=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return A==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...qra(A)}}const y=oee(p.vendorPolicy,"allow"),b=oee(p.vendorPolicy,"block"),w=ree(p.categoryPolicy,"allow"),C=ree(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((A=>A.isChecked)).map((A=>A.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:aee(p.limits,Hke),spendLimits:{transaction:aee(p.limits,Vke)}}})({values:c});e(fln({templates:[u],sourceChatSessionId:n})),n!=null&&e(E$e({chatSessionId:n,id:M$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(gln(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(zAt())}:void 0}}const X7s=e=>Tln(e,!1),e6s=e=>Dln(e.name,!1);function t6s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Aln(r),l=vln(r),c=Sln(r),{creditAccount:d}=kln(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(X7s),cardPolicyVendorSearchOptions:l.map(e6s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:Iln(r),cardPolicyUploadedFileName:Eln(r),cardPolicyFormDraft:$ln(e.createCardPolicyState),cardsCreationFormDraft:jln(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const n6s=e=>{const n=se.currencyFormatter(0);return i=>{const r=Bln(e.chargeCardState,i);if(r==null)return;const s=Pln(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}}},i6s=e=>n=>{const i=Lln(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 o6s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(vl.isAiCfoAnswerExportEnabled);return n&&Kx?.aiCfoMicroServiceBaseUrl!=null?`${Kx.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function r6s({isHydrationEnabled:e=!0}={}){const n=Mp(),{useFeatureGate:i}=es(),{isFeatureEnabled:r}=i(vl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(vl.isCardPolicyEnabled),l=Nr((x=>_p(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Nr((x=>{const y=_p(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),HK),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(Mln()),n(I$e()),n(Oln("cardHolderCandidate",!1)),n(Fln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(Rln())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(zAt())}),[n,l]);const h=m.useMemo((()=>qcn((x=>{n(I$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Nr((x=>zln(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),HK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const Won=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Qon=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],a6s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],s6s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],l6s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],c6s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],d6s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Yon=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Gon=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],u6s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function n$e(e){const n=Hh(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":u6s.includes(r)?r:null}const p6s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),h6s=new Set(["setup","verification","promo","approval-rules"]);function Hh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function i$e(e){const n=Hh(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 qon(e,n,i){const r=Hh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Kon(e,n,i){return qon(e,n,(r=>!i.has(r)))}function Zon(e){return Kon(e,"bills",p6s)}function Jon(e){return Kon(e,"reimbursements",h6s)}function o$e(e){return qon(e,"tasks",(n=>n==="group"))}const m6s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),g6s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function r$e(e){const n=Hh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return m6s.has(i)?"checking":"checking_details"}function a$e(e){const n=Hh(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 g6s.has(i)?"cards":"cards_detail"}function Xon(e){const n=Hh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function ern(e){return Hh(e)[1]==="performance"?"performance":void 0}function trn(e){const n=Hh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function nrn(e){const n=Hh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function H2(e,n){return n.some((i=>ewe(i,e)!=null))}function f6s(e){return H2(e,Xje)?"reports":H2(e,Won)?"ap_aging":H2(e,Qon)?"ar_aging":i$e(e)!=null?"vendors_tab":H2(e,e$e)?"forecast":n$e(e)!=null?"month_end_close_review":H2(e,Yon)?"cash_balance":H2(e,Gon)?"card_balance":o$e(e)?"task_checklist":Xon(e)!=null?"transaction_detail":ern(e)!=null?"performance":trn(e)!=null?"bills_detail":nrn(e)!=null?"reimbursement_detail":Zon(e)?"bills_list":Jon(e)?"reimbursement_list":H2(e,a6s)?"cash_in_cash_out":H2(e,s6s)?"operating_expenses":H2(e,l6s)?"revenue":H2(e,c6s)?"net_burn_or_income":H2(e,d6s)?"cash_position":(function(n){const i=Hh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":r$e(e)!=null?"checking":(function(n){return Hh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":a$e(e)!=null?"cards":(function(n){return Hh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Hh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Hh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function irn(e,n){switch(f6s(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 i$e(e);case"forecast":return"forecast";case"month_end_close_review":{const i=n$e(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 r$e(e);case"treasury":return"treasury";case"cards":return a$e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function orn(){const{pathname:e}=Wg(),n=e??"",i=Nr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>irn(n,{selectedReportId:i})),[n,i])}function s$e(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(vl.isAiCfoEnabled),i=Nr((s=>_p(s))),r=Tr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function x6s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(vl.isAiCfoNavButtonEnabled),i=s$e();return n&&i}const rrn=m.createContext(void 0),y6s=({children:e})=>{const{tenantEmailDomain:n}=HCt(),i=n!=null?Tr.getSignedInUserTenant(n):void 0,r=Nr((u=>_p(u))),s=mte().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(rrn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},b6s=()=>{const e=m.useContext(rrn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function arn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function srn(e){const{areTenantIdsInSync:n}=b6s(),i=s$e(),r=x6s();return n&&e&&r&&i}function Mks(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Mp(),s=UCt(),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=bwe(s.getState(),d)?.fetchState;arn(u,c)&&r(_At({pageContext:d}))}}),[i,r,n,s])}function lrn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Mp(),c=UCt(),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=bwe(c.getState(),i)?.fetchState;arn(g,p||h)&&l(_At({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:srn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Oks(e){lrn({pageContext:orn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:w6s,sampleQuestion2:C6s,sampleQuestion3:A6s}}=se.getLocalizedStrings().aiCfo,v6s=[w6s,C6s,A6s];function S6s(e,n=!1){lrn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=srn(!0),r=Nr((g=>e!=null&&e!==""?bwe(g,e):void 0)),{useDynamicConfig:s}=es(),{configValue:l}=s(e5.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:[...v6s]),[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 k6s({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(Zee,l);const c=d=>{d.key===Ion&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(Zee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Tr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const crn=m.createContext(void 0),Jee=()=>m.useContext(crn),dCt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},j6s=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=>_p(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){dCt(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 Uln(Zs.pusherClientSecret,{cluster:Zs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(A){return void console.warn("Failed to initialize Pusher",A)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&wD(C,u),f!=null&&wD(C,f),p!=null&&wD(C,p)))},w=()=>{const C=mte();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),UAt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),dCt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(crn.Provider,{value:c,children:e.children})};function wD(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 $6s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},drn=e=>n=>{const i=Jee(),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]=$6s(f);if(y==="")return;const b=i.channel(x),w=A=>{r.current(y,A,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 A=()=>{g()};C.bind("pusher:subscription_succeeded",A),p.push((()=>{C.unbind("pusher:subscription_succeeded",A)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},Fks=210;function Rks(e){return e?.data.unread!=null&&e?.mode!=null}const l$e=e=>Aci.includes(e),c$e=e=>pOt.includes(e),d$e=e=>vci.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"},I6s=e=>{if(d$e(e)){const n=E6s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return l$e(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Wve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:c$e(e)?`ai-cfo/${e}`:e},D6s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],zks=e=>{if(l$e(e)||c$e(e)||d$e(e))return!0;const n=I6s(e).split("/")[0];return!D6s.includes(n)},uCt=(e,n)=>e.includes(n),pCt=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(uCt(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&&Wve(s)?Cci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of pOt)if(uCt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function T6s(e){let n=pCt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=pCt(i[r])}return n??"home"}function Nks(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function _ks(e){return e.pathname.split("/")[2]==="invoicing"}function Vks(e){return e.pathname.includes("ai-cfo")}function Hks(e,n){const i=T6s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":d$e(i)?`invoicing/${i.replace("invoicing_","")}`:l$e(i)?"settings/my_profile":c$e(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Wve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function L6s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(WAt(r.tenantId)),e(QAt(s.userId,r.tenantId,s.zeniSessionId))),Gm.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function B6s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Mp(),u=tte(),p=Wg(),{setLoading:h}=t$e(),g=Tr.getSignedInUser(),f=Yz(g),{useDynamicConfig:x}=es(),{configValue:y}=x(e5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),A=Nr((O=>O.tenantState)),S=Nr((O=>A.fetchState==="Completed"?Wln(O):[])),k=Nr((O=>e?.tenantId!=null?Qln(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(j5e());const H=ST(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(j5e()),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(NAt({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=ST(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(Uon.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;L6s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Zc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(P6s,{children:[on.jsxs(M6s,{children:[on.jsx(DNt,{}),on.jsx(WNt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:A.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(O6s,{children:on.jsx(BNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(F6s,{children:[g!=null&&on.jsx(MN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(R6s,{onClick:z,children:on.jsx(z6s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const P6s=a.div`
|
|
92468
|
+
`,DR=RCt(Kcn()),z7s=["sandbox","production"],N7s=["development","staging","production"],_7s=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],bD=()=>Ul==="DEV"||Ul==="QA"||Ul==="PUNE"||Ul==="SUNNYVALE"||Ul==="DELHI"||Ul==="MOHALI",qje="https://zeni-webapp-qa.uc.r.appspot.com",Ul=(e=>y7(e,_7s))("QA"),Eks=(e=>y7(e,z7s))((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)),oCt=(e=>y7(e,N7s))((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)),V7s=(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 von(e,n){return DR.AES.decrypt(e,n).toString(DR.enc.Utf8)}const Son="ZENI-WEB-APP-",Kje=Ul==="DEV"||Ul==="QA"?.2:.8,kon=Kje,Zs={sentryDsn:"",sentryTraceSamplingRate:Kje,sentryProfileSamplingRate:kon,webV2MicroServiceEndpoint:"",googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",currentQBOEnv:"",quickbooksKey:"",appUrl:"",currentFeatureEnv:"",featureClientSecret:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let Kx,Uz;function H7s(){return Kx?.aiCfoMicroServiceBaseUrl!=null?`${Kx.aiCfoMicroServiceBaseUrl}/1.0/exports`:void 0}function jon(e){Zs.sentryDsn=e.keys.SENTRY_DSN,Zs.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):Kje,Zs.sentryProfileSamplingRate=e.keys.SENTRY_PROFILES_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_PROFILES_SAMPLE_RATES):kon,Zs.googleClientId=e.keys.GOOGLE_CLIENT_ID,Zs.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Zs.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Zs.mixpanelToken=e.keys.MIXPANEL_TOKEN,Zs.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Zs.pusherCluster=e.keys.PUSHER_CLUSTER,Zs.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Zs.appUrl=e.keys.WEB_ENDPOINT,Zs.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Zs.cardVaultId=e.keys.UNIT_VAULT_ID,Zs.stripeKey=e.keys.STRIPE_KEY,Zs.qboRedirectionUrl=e.keys.QBO_URL,Zs.mixpanelUrl=e.keys.MIXPANEL_URL,Zs.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,Uz=e.externalEndPoints,Kx=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)}})(Kx,Uz)}async function rCt(){const e={environment:Ul},n=encodeURIComponent(JSON.stringify(e));try{const i=await fetch(`${qje}/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 aCt=!1;function QE(){aCt||(cg.init("ed1936cb971f6aad4104ddbe708f812c",{api_host:Uz.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),aCt=!0)}const U7s=new Set(Array.from(Ni.EVENTS_WITHOUT_SUPER_PROPERTIES));let sCt=!1,lCt=!1;function Q8e(){if(sCt)return;sCt=!0,QE();const e=Ni.extractUtmParamsFromUrl();Object.keys(e).length>0&&cg.register(e),bD()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}const W7s=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function Q7s(){const e=(function(){return cg?.persistence?.props??null})();if(e==null)return;const n=Object.keys(e).filter((i=>i.startsWith("utm_")||W7s.has(i)));for(const i of n)cg.unregister(i);bD()&&n.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(n)}`)}function cCt(){lCt||(lCt=!0,Q7s())}class PI{identify(n,i){if(QE(),this.#t=n,n!=null&&i!=null&&(PI.#e==null||!mln({userId:n,traits:i},PI.#e))){const{$email:r,...s}={...i};cg.identify(n),r&&r!=null&&cg.people.set_once({$email:r}),cg.people.set(s),PI.#e={userId:n,traits:i},bD()&&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){QE();const r=U7s.has(n);if(this.#t!=null||r){if(Q8e(),this.#t!=null){const s={distinct_id:this.#t,...i};cg.track(n,s)}else cg.track(n,i);if(cCt(),bD()){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){QE(),Q8e(),cg.track(n,i),cCt(),bD()&&console.log(`*** firing ${n} (unidentified user) with props ${JSON.stringify(i)}`)}alias(n,i){QE(),cg.alias(n,i)}reset(){QE(),cg.identify(void 0),this.#t=void 0,PI.#e=void 0}static#e;#t}const Y8e=new PI,$on=new Ni.Analytics(Y8e);$on.trackWithoutUserId=Y8e.trackWithoutUserId.bind(Y8e);const Gm=$on,Y7s="openAiCfoScope",G8e="openAiCfoScopeOnDashboard";function Iks(e){const{location:n,navigate:i,mergeState:r}=e;i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...n.state,[G8e]:!0,...r}})}function Dks(e){const n=hte(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 Zje(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 Eon(e,n){return(e||n?.chatSessionSummary)??null}const Ion="ZENI_AI_CFO_UPLOAD_PROMO_SEEN",Zee="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(Zee)),!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(Zee))}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 DR.AES.encrypt(e,n).toString()}decrypt(e,n){try{const i=DR.AES.decrypt(e,n).toString(DR.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=Ion;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]},Tks=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},ST=(e,n)=>{const i=[...e??[]];return i.push(n),i},Lks=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Bks=({state:e})=>Tr.isSignedIn()===!0?on.jsx(Grn,{}):on.jsx(VCt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}}),G7s=["aiCfoInitialQuestion","aiCfoShouldSubmit","aiCfoInitialSubmissionSource","aiCfoSuggestionIndex"];function Don(e){if(e==null)return{message:"",origin:""};const n={...e};for(const i of G7s)delete n[i];return n}function q7s(){const e=Mp(),n=Wg(),i=tte(),{tenantEmailDomain:r}=HCt(),[s,l]=m.useState(!1),c=Nr((A=>A.tenantState.fetchState==="Completed"||A.tenantState.activeTenantFetchState.fetchState==="Completed"?_p(A):void 0)),d=c?.masterTOSInfo?.isMasterTOSAccepted??!1,u=Nr((A=>hte(A))),p=m.useRef(null),[h,g]=m.useState(!1);m.useEffect((()=>{const A=n.state;if(A?.[G8e]!==!0)return;const S=A.aiCfoInitialQuestion;!d&&typeof S=="string"&&S.length>0&&(p.current={question:S,submissionSource:typeof A.aiCfoInitialSubmissionSource=="string"?A.aiCfoInitialSubmissionSource:void 0,suggestionIndex:typeof A.aiCfoSuggestionIndex=="number"?A.aiCfoSuggestionIndex:void 0}),g(d),l(!0),i({pathname:n.pathname,search:n.search,hash:n.hash},{replace:!0,state:{...Don(A),[G8e]:void 0}})}),[n.state,n.pathname,n.search,n.hash,d]);const f=m.useCallback((()=>{const A=p.current;if(A==null||r==null)return!1;p.current=null;const S=n.state,k=ST(S?.pathnameStackToGoBack,n.pathname);return i(`/${r}/ai-cfo/explore`,{state:{message:"",origin:"",pathnameStackToGoBack:k,referrer:S?.referrer??"Dashboard",aiCfoInitialQuestion:A.question,aiCfoShouldSubmit:!0,...A.submissionSource!=null?{aiCfoInitialSubmissionSource:A.submissionSource}:{},...A.suggestionIndex!=null?{aiCfoSuggestionIndex:A.suggestionIndex}:{}}}),!0}),[n.pathname,n.state,i,r]),x=Wt(d);m.useEffect((()=>{s&&d&&x===!1&&(l(!1),f())}),[s,d,x,f]);const y=m.useCallback((()=>{if(f()||r==null)return;const A=ST(n.state?.pathnameStackToGoBack,n.pathname);i(`/${r}/ai-cfo/explore`,{state:{pathnameStackToGoBack:A,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(RAt(c.userRoleId))}),[e,d,c?.userRoleId,f]);return on.jsx(eon,{open:s,onClose:w,children:on.jsxs(Xin,{children:[s&&!h?on.jsx(Ive,{analytics:Gm,onLoad:A=>h?null:A.trackAICFOOnboardingScreenStateChanged("open","first_visit")}):null,on.jsx(Zye,{acceptMasterTOSState:u.masterTOSAcceptanceState,isTOSAccepted:h,showHeader:!1,togglePageView:h?b:void 0,onCloseClick:w,onCompleteClick:C})]})})}const q8e=m.createContext(void 0);function Jje(){const e=m.useContext(q8e);if(e===void 0)throw new Error("useAiCfoPanelOpen must be used within AiCfoPanelOpenContext.Provider");return e}const Xje=["/:tenantEmailDomain/reports/*","/:tenantEmailDomain/reports"],e$e=["/:tenantEmailDomain/forecast/*","/:tenantEmailDomain/forecast"],Ton=["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"],Lon=["/:tenantEmailDomain/checking/*","/:tenantEmailDomain/checking"],Bon=["/:tenantEmailDomain/treasury/*","/:tenantEmailDomain/treasury"],Pon=["/:tenantEmailDomain/cards/*","/:tenantEmailDomain/cards"],Mon=["/:tenantEmailDomain/people/*","/:tenantEmailDomain/people"],Oon=["/:tenantEmailDomain/rewards/*","/:tenantEmailDomain/rewards"],Fon=["/:tenantEmailDomain/notifications/*","/:tenantEmailDomain/notifications"];function Ron(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 zon=["/:tenantEmailDomain/performance/*","/:tenantEmailDomain/performance"],Non=["/:tenantEmailDomain/bill/*","/:tenantEmailDomain/bill"],_on=["/:tenantEmailDomain/reimbursement/*","/:tenantEmailDomain/reimbursement"],K7s=[...Ton,...Xje,...e$e,"/: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",...zon,...Non,..._on,...Lon,...Bon,...Pon,...Mon,...Oon,...Fon];function Von(){const{pathname:e}=Wg(),n=e??"";return K7s.some((i=>ewe(i,n)!=null))||Ron(e)}function Yd(e){const{pathname:n}=Wg(),i=n??"";return e.some((r=>ewe(r,i)!=null))}const Pks=27.22,Hon=m.createContext(null),Uon={APP_INITIALIZATION:"app-init",TENANT_SWITCHING:"tenant-switch",TENANT_FETCHING:"tenant-fetch",CONNECTION_AUTH:"connection-auth"};function Z7s({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(Hon.Provider,{value:c,children:e})}function t$e(){const e=m.useContext(Hon);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}function J7s(e,{currentChatSessionId:n,isAiCardCreationEnabled:i,isCardPolicyEnabled:r,onAfterCardPolicySubmit:s,onAfterCardsCreationSubmit:l}){return{onCardsCreationFormChange:i?c=>{e(Cln(c))}:void 0,onCardsCreationFormSubmit:i?(c,d)=>{const u=yln(c);u.length!==0&&(e(bln(u)),e(wln({sourceChatSessionId:n})),n!=null&&e(E$e({chatSessionId:n,id:M$e(),kind:"creating_cards",createdAt:hn(""),sourceQuestionAnswerId:d})),l?.())}:void 0,onCardPolicyFormChange:r?c=>{e(xln(c))}:void 0,onCardPolicyFormSubmit:r?(c,d)=>{const u=(({values:p,mode:h="strict",description:g=""})=>{const f=Kra(p),x={description:g.trim(),mode:h,name:f.trim()};if(p.policyKind==="auto"||p.policyKind==="upload"){const A=p.policiesReview.find((S=>S.isChecked))??p.policiesReview[0];return A==null?{...x,allowedEntity:{categoryCodes:[],merchantNames:[]},applyToCards:[],blockedEntity:{categoryCodes:[],merchantNames:[]},requiredReceiptThreshold:null,spendLimits:{transaction:null}}:{...x,...qra(A)}}const y=oee(p.vendorPolicy,"allow"),b=oee(p.vendorPolicy,"block"),w=ree(p.categoryPolicy,"allow"),C=ree(p.categoryPolicy,"block");return{...x,allowedEntity:{categoryCodes:w,merchantNames:y},applyToCards:p.cardSelections.filter((A=>A.isChecked)).map((A=>A.id)),blockedEntity:{categoryCodes:C,merchantNames:b},requiredReceiptThreshold:aee(p.limits,Hke),spendLimits:{transaction:aee(p.limits,Vke)}}})({values:c});e(fln({templates:[u],sourceChatSessionId:n})),n!=null&&e(E$e({chatSessionId:n,id:M$e(),kind:"creating_policy",createdAt:hn(""),sourceQuestionAnswerId:d})),s?.()}:void 0,onCardPolicyUploadDocument:r?(c,d,u)=>{c.length!==0&&e(gln(c,d,u))}:void 0,onCardPolicyRemoveDocument:r?()=>{e(zAt())}:void 0}}const X7s=e=>Tln(e,!1),e6s=e=>Dln(e.name,!1);function t6s(e,{allUsers:n,onCardPolicyVendorSearchTextChange:i}){const r=e.cardPolicyState,s=Aln(r),l=vln(r),c=Sln(r),{creditAccount:d}=kln(e,!1,!1,!1),u=d.fetchState==="Completed"&&d.limit.amount>0?d.limit.amount:void 0;return{allUsers:n,cardPolicyCategorySearchOptions:s.map(X7s),cardPolicyVendorSearchOptions:l.map(e6s),cardPolicyIsVendorSearchLoading:c==="In-Progress",cardPolicyDocumentUploadState:Iln(r),cardPolicyUploadedFileName:Eln(r),cardPolicyFormDraft:$ln(e.createCardPolicyState),cardsCreationFormDraft:jln(e),cardsCreationMaxLimitAmount:u,onCardPolicyVendorSearchTextChange:i}}const n6s=e=>{const n=se.currencyFormatter(0);return i=>{const r=Bln(e.chargeCardState,i);if(r==null)return;const s=Pln(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}}},i6s=e=>n=>{const i=Lln(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 o6s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(vl.isAiCfoAnswerExportEnabled);return n&&Kx?.aiCfoMicroServiceBaseUrl!=null?`${Kx.aiCfoMicroServiceBaseUrl}/1.0/answers/export`:void 0}function r6s({isHydrationEnabled:e=!0}={}){const n=Mp(),{useFeatureGate:i}=es(),{isFeatureEnabled:r}=i(vl.isAiCardCreationEnabled),{isFeatureEnabled:s}=i(vl.isCardPolicyEnabled),l=Nr((x=>_p(x).tenantId)),{isCardsEnabledOnCompany:c,isChargeCardEnabledOnCompany:d}=Nr((x=>{const y=_p(x).company;return{isCardsEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled||!!y?.companyDebitCardInfo?.isDebitCardEnabled,isChargeCardEnabledOnCompany:!!y?.companyChargeCardInfo?.isChargeCardEnabled}}),HK),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(Mln()),n(I$e()),n(Oln("cardHolderCandidate",!1)),n(Fln(!1,!1,!1))),d&&!p.current&&(p.current=!0,n(Rln())))}),[n,l,e,c,d]),m.useEffect((()=>()=>{n(zAt())}),[n,l]);const h=m.useMemo((()=>qcn((x=>{n(I$e(x))}),250)),[n]);m.useEffect((()=>()=>{h.cancel()}),[h]);const g=m.useCallback((x=>{h(x)}),[h]),f=Nr((x=>zln(x.userState,x.userRoleState,x.userListViewState,"cardHolderCandidate").users),HK);return{allUsers:m.useMemo((()=>f.map((x=>x.user)).filter((x=>x!=null))),[f]),isAiCardCreationEnabled:r,isCardPolicyEnabled:s,onCardPolicyVendorSearchTextChange:g}}const Won=["/:tenantEmailDomain/dashboard/accounts_payable_aging/*","/:tenantEmailDomain/dashboard/accounts_payable_aging"],Qon=["/:tenantEmailDomain/dashboard/accounts_receivable_aging/*","/:tenantEmailDomain/dashboard/accounts_receivable_aging"],a6s=["/:tenantEmailDomain/dashboard/cash_in_cash_out/*","/:tenantEmailDomain/dashboard/cash_in_cash_out"],s6s=["/:tenantEmailDomain/dashboard/operating_expenses/*","/:tenantEmailDomain/dashboard/operating_expenses"],l6s=["/:tenantEmailDomain/dashboard/revenue/*","/:tenantEmailDomain/dashboard/revenue"],c6s=["/:tenantEmailDomain/dashboard/net_burn_or_income/*","/:tenantEmailDomain/dashboard/net_burn_or_income"],d6s=["/:tenantEmailDomain/dashboard/cash_position/*","/:tenantEmailDomain/dashboard/cash_position"],Yon=["/:tenantEmailDomain/dashboard/cash_balance/*","/:tenantEmailDomain/dashboard/cash_balance"],Gon=["/:tenantEmailDomain/dashboard/card_balance/*","/:tenantEmailDomain/dashboard/card_balance"],u6s=["transaction_categorization","je_schedules","reconciliation","missing_receipts","flux_analysis","month_end_insights"];function n$e(e){const n=Hh(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":u6s.includes(r)?r:null}const p6s=new Set(["approval-rules",...new Set(["setup","verification","promo","international-wire"])]),h6s=new Set(["setup","verification","promo","approval-rules"]);function Hh(e){return e.replace(/\/$/,"").split("/").filter(Boolean)}function i$e(e){const n=Hh(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 qon(e,n,i){const r=Hh(e);return!(r.length<2||r[1]!==n)&&(r.length===2||i(r[2]))}function Kon(e,n,i){return qon(e,n,(r=>!i.has(r)))}function Zon(e){return Kon(e,"bills",p6s)}function Jon(e){return Kon(e,"reimbursements",h6s)}function o$e(e){return qon(e,"tasks",(n=>n==="group"))}const m6s=new Set(["setup","verification","promo","transfer","check-deposit","express-pay"]),g6s=new Set(["setup","verification","promo","payment","payment-history","onboard","activate","new"]);function r$e(e){const n=Hh(e);if(n[1]!=="checking")return;if(n.length<=2)return"checking";const i=n[2];return m6s.has(i)?"checking":"checking_details"}function a$e(e){const n=Hh(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 g6s.has(i)?"cards":"cards_detail"}function Xon(e){const n=Hh(e),i=n.indexOf("transaction");if(!(i<1||n.length<i+3))return"transaction_details"}function ern(e){return Hh(e)[1]==="performance"?"performance":void 0}function trn(e){const n=Hh(e);if(!(n[1]!=="bill"||n.length<3)&&n[2]!=="new")return"bills_details"}function nrn(e){const n=Hh(e);if(!(n[1]!=="reimbursement"||n.length<3)&&n[2]!=="new")return"reimbursement_details"}function H2(e,n){return n.some((i=>ewe(i,e)!=null))}function f6s(e){return H2(e,Xje)?"reports":H2(e,Won)?"ap_aging":H2(e,Qon)?"ar_aging":i$e(e)!=null?"vendors_tab":H2(e,e$e)?"forecast":n$e(e)!=null?"month_end_close_review":H2(e,Yon)?"cash_balance":H2(e,Gon)?"card_balance":o$e(e)?"task_checklist":Xon(e)!=null?"transaction_detail":ern(e)!=null?"performance":trn(e)!=null?"bills_detail":nrn(e)!=null?"reimbursement_detail":Zon(e)?"bills_list":Jon(e)?"reimbursement_list":H2(e,a6s)?"cash_in_cash_out":H2(e,s6s)?"operating_expenses":H2(e,l6s)?"revenue":H2(e,c6s)?"net_burn_or_income":H2(e,d6s)?"cash_position":(function(n){const i=Hh(n);return i.length===2&&i[1]==="dashboard"})(e)?"dashboard":r$e(e)!=null?"checking":(function(n){return Hh(n)[1]==="treasury"?"treasury":void 0})(e)!=null?"treasury":a$e(e)!=null?"cards":(function(n){return Hh(n)[1]==="people"?"people":void 0})(e)!=null?"people":(function(n){return Hh(n)[1]==="rewards"?"rewards":void 0})(e)!=null?"rewards":(function(n){return Hh(n)[1]==="notifications"?"notifications":void 0})(e)!=null?"notifications":"none"}function irn(e,n){switch(f6s(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 i$e(e);case"forecast":return"forecast";case"month_end_close_review":{const i=n$e(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 r$e(e);case"treasury":return"treasury";case"cards":return a$e(e);case"people":return"people";case"rewards":return"rewards";case"notifications":return"notifications";default:return}}function orn(){const{pathname:e}=Wg(),n=e??"",i=Nr((r=>r.financeStatementState?.selectedReportId));return m.useMemo((()=>irn(n,{selectedReportId:i})),[n,i])}function s$e(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(vl.isAiCfoEnabled),i=Nr((s=>_p(s))),r=Tr.getSignedInUser();return r!=null&&r.userId!=null&&i!=null&&i.companyId!=null&&n}function x6s(){const{useFeatureGate:e}=es(),{isFeatureEnabled:n}=e(vl.isAiCfoNavButtonEnabled),i=s$e();return n&&i}const rrn=m.createContext(void 0),y6s=({children:e})=>{const{tenantEmailDomain:n}=HCt(),i=n!=null?Tr.getSignedInUserTenant(n):void 0,r=Nr((u=>_p(u))),s=mte().tenantId,l=i?.tenantId,c=r?.tenantId,d=m.useMemo((()=>l!=null&&l===c&&c===s),[l,c,s]);return on.jsx(rrn.Provider,{value:{areTenantIdsInSync:d,tenantIdFromEmailDomain:l,currentTenantId:c,tenantIdFromConfig:s},children:e})},b6s=()=>{const e=m.useContext(rrn);if(!e)throw new Error("useTenantSync must be used within a TenantSyncProvider");return e};function arn(e,n){return e!=="In-Progress"&&!(e==="Completed"&&!n)&&!(e==="Error"&&!n)}function srn(e){const{areTenantIdsInSync:n}=b6s(),i=s$e(),r=x6s();return n&&e&&r&&i}function Mks(e){const{pageContexts:n,canFetchSuggestedQuestions:i}=e,r=Mp(),s=UCt(),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=bwe(s.getState(),d)?.fetchState;arn(u,c)&&r(_At({pageContext:d}))}}),[i,r,n,s])}function lrn(e){(function(n){const{pageContext:i,canFetchSuggestedQuestions:r,noCardCreated:s}=n,l=Mp(),c=UCt(),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=bwe(c.getState(),i)?.fetchState;arn(g,p||h)&&l(_At({pageContext:i,noCardCreated:s}))}),[r,l,s,i,c])})({canFetchSuggestedQuestions:srn(e.isDataReady),pageContext:e.pageContext,noCardCreated:e.noCardCreated})}function Oks(e){lrn({pageContext:orn(),isDataReady:e.isDataReady,noCardCreated:e.noCardCreated})}const{questionTemplates:{sampleQuestion1:w6s,sampleQuestion2:C6s,sampleQuestion3:A6s}}=se.getLocalizedStrings().aiCfo,v6s=[w6s,C6s,A6s];function S6s(e,n=!1){lrn({isDataReady:!0,pageContext:e!=null&&e!==""?e:void 0});const i=srn(!0),r=Nr((g=>e!=null&&e!==""?bwe(g,e):void 0)),{useDynamicConfig:s}=es(),{configValue:l}=s(e5.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:[...v6s]),[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 k6s({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(Zee,l);const c=d=>{d.key===Ion&&l()};return window.addEventListener("storage",c),()=>{window.removeEventListener(Zee,l),window.removeEventListener("storage",c)}}),[i]),{isUploadPromoVisible:r,handleUploadPromoClose:m.useCallback((()=>{n!=null&&Tr.saveAiCfoUploadPromoSeen(n,!0),s(!1)}),[n])}}const crn=m.createContext(void 0),Jee=()=>m.useContext(crn),dCt=e=>{e!=null&&(e.channels.all().forEach((n=>{e.unsubscribe(n.name)})),e.disconnect())},j6s=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=>_p(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){dCt(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 Uln(Zs.pusherClientSecret,{cluster:Zs.pusherCluster},{userId:f,tenantId:x,sessionId:y},!0)}catch(A){return void console.warn("Failed to initialize Pusher",A)}g?C?.disconnect():(l.current=C,s(C),C!=null&&(u!=null&&wD(C,u),f!=null&&wD(C,f),p!=null&&wD(C,p)))},w=()=>{const C=mte();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),UAt(f,y,x),b()))}),100)}}return()=>{g=!0,h!=null&&clearInterval(h),dCt(l.current),l.current=void 0}}),[n,d.tenantId,i?.userId,i?.zeniSessionId]),on.jsx(crn.Provider,{value:c,children:e.children})};function wD(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 $6s=e=>{const n=e.indexOf(".");return n===-1?[e,""]:[e.slice(0,n),e.slice(n+1)]},drn=e=>n=>{const i=Jee(),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]=$6s(f);if(y==="")return;const b=i.channel(x),w=A=>{r.current(y,A,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 A=()=>{g()};C.bind("pusher:subscription_succeeded",A),p.push((()=>{C.unbind("pusher:subscription_succeeded",A)}))}p.push((()=>{C.unbind(y,w)}))}})),()=>{p.forEach((f=>f()))}}}),[i,d]),on.jsx(e,{...n})},Fks=210;function Rks(e){return e?.data.unread!=null&&e?.mode!=null}const l$e=e=>Aci.includes(e),c$e=e=>pOt.includes(e),d$e=e=>vci.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"},I6s=e=>{if(d$e(e)){const n=E6s[e];return n??`invoicing/${e.replace("invoicing_","")}`}return l$e(e)?`settings/${e}`:e==="home"?"dashboard":e==="users_and_roles"?"people":e==="task_checklist"?"tasks":e==="company_settings"?"settings/company_details":Wve(e)?e==="command_center"?"month_end_close_checks/review":`month_end_close_checks/review/${e}`:c$e(e)?`ai-cfo/${e}`:e},D6s=["dashboard","reports","forecast","vendors","bills","bill","reimbursements","reimbursement","tasks","month_end_close_checks","transaction","performance","checking","treasury","cards","people","rewards","notifications"],zks=e=>{if(l$e(e)||c$e(e)||d$e(e))return!0;const n=I6s(e).split("/")[0];return!D6s.includes(n)},uCt=(e,n)=>e.includes(n),pCt=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(uCt(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&&Wve(s)?Cci(s):"command_center"})(e);case"ai-cfo":return(function(n){if(n!=null){for(const i of pOt)if(uCt(n,i))switch(i){case"new_chat":return"new_chat";case"explore":return"explore"}}})(e);case"treasury":return"treasury";default:return}};function T6s(e){let n=pCt(e.pathname);if(n==null){const i=[...e.state?.pathnameStackToGoBack??[]].reverse();for(let r=0;r<i.length&&n==null;++r)n=pCt(i[r])}return n??"home"}function Nks(e){return e.pathname.includes("settings")&&!e.pathname.includes("invoicing")}function _ks(e){return e.pathname.split("/")[2]==="invoicing"}function Vks(e){return e.pathname.includes("ai-cfo")}function Hks(e,n){const i=T6s(n);let r;return r=i==="home"?"dashboard":i==="users_and_roles"?"people":d$e(i)?`invoicing/${i.replace("invoicing_","")}`:l$e(i)?"settings/my_profile":c$e(i)?`ai-cfo/${i}`:i==="task_checklist"?"tasks":Wve(i)?"month_end_close_checks/review":encodeURIComponent(i),`/${encodeURIComponent(e)}/${r}`}function L6s({dispatch:e,navigate:n,pathToNavigate:i,selectedTenant:r,signedInUser:s}){n(i,{replace:!0}),s!=null&&(e(WAt(r.tenantId)),e(QAt(s.userId,r.tenantId,s.zeniSessionId))),Gm.trackCompanySwitch(r.companyId,r.companyName,r.userRole)}function B6s({currentTenant:e,currentChatSessionId:n,aiCfoView:i,skillsEnabled:r,onBeforeNavigate:s,onCloseSkills:l,onOpenSkills:c}){const d=Mp(),u=tte(),p=Wg(),{setLoading:h}=t$e(),g=Tr.getSignedInUser(),f=Yz(g),{useDynamicConfig:x}=es(),{configValue:y}=x(e5.expenseAutomationEnablementZeniUsers),b=Array.isArray(y?.expenseAutomationEnabledCompanies)?y.expenseAutomationEnabledCompanies:[],[w,C]=m.useState(!1),A=Nr((O=>O.tenantState)),S=Nr((O=>A.fetchState==="Completed"?Wln(O):[])),k=Nr((O=>e?.tenantId!=null?Qln(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(j5e());const H=ST(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(j5e()),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(NAt({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=ST(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(Uon.TENANT_SWITCHING),I();const H=O.tenantEmailDomain;L6s({dispatch:d,navigate:u,pathToNavigate:`/${encodeURIComponent(H)}/ai-cfo/explore`,selectedTenant:O,signedInUser:g})}),[I,d,g,u,h]),M=on.jsx(Zc,{anchor:"left",open:w,onClose:j,PaperProps:{sx:{width:210,backgroundColor:"transparent",borderRight:"none",backgroundImage:"none"}},ModalProps:{keepMounted:!0},children:on.jsxs(P6s,{children:[on.jsxs(M6s,{children:[on.jsx(DNt,{}),on.jsx(WNt,{expenseAutomationEnabledCompanies:b,isZeniUser:f,currentTenantId:e?.tenantId??"",tenants:A.fetchState==="Completed"?S:k!=null?[k]:[],onTenantSelect:T})]}),on.jsx(O6s,{children:on.jsx(BNt,{selectedMenu:L(),aiCfoView:i,isMobile:!0,skillsEnabled:r,onClick:E,updateCurrentChatSessionId:D})}),on.jsxs(F6s,{children:[g!=null&&on.jsx(MN,{signedInUser:g,currentTenant:e,isSettingsFeatureEnabled:!0,onLogOutClick:F,onMyProfileClick:N,onCockpitClick:_}),on.jsx(R6s,{onClick:z,children:on.jsx(z6s,{})})]})]})});return{isOpen:w,open:$,close:j,drawerElement:M}}const P6s=a.div`
|
|
92469
92469
|
display: flex;
|
|
92470
92470
|
flex: 1 1 auto;
|
|
92471
92471
|
flex-direction: column;
|
|
@@ -92553,7 +92553,7 @@ ${GM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
92553
92553
|
display: flex;
|
|
92554
92554
|
min-height: 100%;
|
|
92555
92555
|
flex-direction: column;
|
|
92556
|
-
`,ebs=()=>{const[e,n]=m.useState((()=>Tr.getSignedInUser())),i=Mp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Nr((g=>YAt(g).fetchState)),u=Nr((g=>_p(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=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(ccn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(Dve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(J6s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},mCt="init-enter",tbs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||mCt);nbs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||mCt,c=ibs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),nbs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),ibs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},dm=e=>m.lazy((async()=>{const n=e.toString(),i=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}})),Uks=(e,n,i)=>{const r=lwe(e),s=lte(e),l=cwe(i,e);return(n||i||s||r||l)&&awe(e.company)},mrn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),grn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),frn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),xrn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(mrn||grn||frn||xrn)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 CD(...e){const n=Ul==="DEV"||Ul==="QA";if(mrn||grn||frn||xrn)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 pE=null,sO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function gCt(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const obs={dashboard:function(e){return[...gCt()]},reports:gCt,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${Cc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Cc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Cc}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${Cc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Cc}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${Cc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Cc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function fCt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,obs[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return wc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function xCt(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(wc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void CD("[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=mte(),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){CD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else CD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function rbs({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),A=Wg(),S=Tr.getSignedInUser(),{useFeatureGate:k}=es(),{isFeatureEnabled:$}=k(vl.isReferralFeatureEnabled),j=Ln(),I=Ry(j?.loggedInUserRole??[]),E=Nr((_=>_p(_))),{isFeatureEnabled:D}=k(vl.isDebitCardFeatureEnabled),L=cwe(D,E),F=lwe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void wc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);wc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{xCt(_,r,s).catch((M=>{CD(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,A.pathname]),m.useEffect((()=>{y(!1)}),[i,A.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[A.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;wc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;wc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{sO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),sO=!1),pE&&clearTimeout(pE),pE=setTimeout((()=>{sO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),sO=!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"),pE&&(clearTimeout(pE),pE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),sO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(wc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),xCt(z,r,s).catch((M=>{CD(`[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(_){CD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function abs({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Wg(),u=Nr((y=>_p(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=es(),{isFeatureEnabled:x}=f(vl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(rbs,{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 sbs(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 lbs=dm((()=>jd((()=>import("./DefaultTenantHome-CweSG_GQ.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),cbs=dm((()=>jd((()=>import("./AppDrawer-wuSLq_GC.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),yCt=dm((()=>jd((()=>import("./ScreenRoutes-B27hAn5a.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),dbs=dm((()=>jd((()=>import("./ConnectionAuthScreen-CTDny4hz.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),ubs=dm((()=>jd((()=>import("./SignInScreen-CT-WoxFu.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),pbs=dm((()=>jd((()=>import("./MagicLinkSignInScreen-DiZU5_QE.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),bCt=dm((()=>jd((()=>import("./NotFoundScreen-BkN7W6JR.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),hbs=dm((()=>jd((()=>import("./MagicLinkRoutes-CaOpn3qT.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),mbs=dm((()=>jd((()=>import("./PaymentLinkScreen-CVV3tuZg.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),gbs=dm((()=>jd((()=>import("./WiseConfirmationScreen-CdXrY5Nn.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),fbs=dm((()=>jd((()=>import("./HubSpotOAuthCallbackScreen-BLlIOZQ7.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),xbs=dm((()=>jd((()=>import("./CustomerOnboardingAuthScreen-CIry93lh.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),ybs=dm((()=>jd((()=>import("./SignOutScreen-CUkfHzEK.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),bbs=dm((()=>jd((()=>import("./OAuthConsentScreen-NFsa-sgn.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),wbs=()=>{const e=Wg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=sbs("/",n);return on.jsx(VCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function Cbs(){const{isOpen:e}=nk(),n=Ndi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Jje(),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 Abs=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Tr.isSignedIn(),r=Nr((j=>_p(j))),s=Tr.getSignedInUser(),l=i&&Yz(s),c=Nr((j=>dcn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Mp(),p=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Von(),g=s$e(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=es(),{isFeatureEnabled:A}=C(vl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(ucn())}),[u,h]);const S=Wg().pathname.includes("/collect-payment/"),k=on.jsx(vbs,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(_We,{children:on.jsx(M3t,{children:on.jsx(q8e.Provider,{value:w,children:k})})});const $=on.jsxs(q8e.Provider,{value:w,children:[on.jsx(Cbs,{}),on.jsxs(jbs,{children:[on.jsx(cbs,{tenantEmailDomain:e}),on.jsx(Sbs,{children:k})]})]});return on.jsx(_We,{children:r.tenantId!=null?on.jsx(gga,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(M3t,{children:$})})},vbs=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Nr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=es(),{configValue:c}=l(e5.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=t$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Jje();return m.useEffect((()=>{h(Uon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(abs,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(Krn,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(hbs,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(mbs,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx(gbs,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(bCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(lbs,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(wbs,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(xbs,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(Ebs,{children:on.jsxs(y6s,{children:[on.jsxs(Ibs,{children:[s!=null?on.jsx(ebs,{}):null,n?on.jsx(yCt,{setTenantEmailDomain:e}):on.jsx(b5e,{children:on.jsx(yCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(q7s,{}),on.jsx(Dbs,{isOpen:g,children:on.jsx(U6s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(b5e,{children:on.jsx(ubs,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(b5e,{children:on.jsx(pbs,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(ybs,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(dbs,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(fbs,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(bbs,{})}),on.jsx(q1,{path:"*",element:on.jsx(bCt,{})})]})})})},Sbs=({children:e})=>{const{isOpen:n,width:i}=nk();return on.jsx($bs,{commentsDrawerWidth:n?i:0,children:e})},kbs=TS("div")`
|
|
92556
|
+
`,ebs=()=>{const[e,n]=m.useState((()=>Tr.getSignedInUser())),i=Mp(),[r,s]=m.useState(!1),[l,c]=m.useState(!1),d=Nr((g=>YAt(g).fetchState)),u=Nr((g=>_p(g)));m.useEffect((()=>{const g=e!=null&&e.authProvider==="email"&&(!e?.firstName||!e?.lastName||!e.phoneNumber);s(g)}),[e]);const p=m.useCallback((()=>{const g=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(ccn(u.companyId))}),[d,u.companyId,i]);const h=m.useMemo((()=>!!e?.firstName&&!e?.phoneNumber),[e]);return on.jsxs(m.Fragment,{children:[l&&on.jsx(Dve,{showConfetti:!0}),e?.userEmail!=null&&e.authProvider==="email"?on.jsx(J6s,{userEmail:e.userEmail,isCompleteProfileOpen:r,closeDrawerHandler:()=>{s(!1),c(!0)},hasUserEnteredBasicDetails:h}):null]})},mCt="init-enter",tbs=m.memo((function({location:e,visitedUrl:n}){const{pathname:i}=e;return m.useLayoutEffect((()=>{const r=n.get(i||mCt);nbs(r!==void 0?r:0)})),null}),((e,n)=>{const{location:i,visitedUrl:r}=e,{location:s}=n,l=i.pathname||mCt,c=ibs();return r.set(l,c),!((s.pathname!==i.pathname||s.search!==i.search)&&s.hash==="")})),nbs=(e=0)=>window.requestAnimationFrame((()=>{window.scrollTo(0,e)})),ibs=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},dm=e=>m.lazy((async()=>{const n=e.toString(),i=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}})),Uks=(e,n,i)=>{const r=lwe(e),s=lte(e),l=cwe(i,e);return(n||i||s||r||l)&&awe(e.company)},mrn=globalThis.window?.location.href.startsWith("https://delhi-dot-zeni"),grn=globalThis.window?.location.href.startsWith("https://pune-dot-zeni"),frn=globalThis.window?.location.href.startsWith("https://sunnyvale-dot-zeni"),xrn=globalThis.window?.location.href.startsWith("https://dev.app.zeni.ai");function wc(...e){const n=Ul==="DEV"||Ul==="QA";if(mrn||grn||frn||xrn)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 CD(...e){const n=Ul==="DEV"||Ul==="QA";if(mrn||grn||frn||xrn)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 pE=null,sO=!1;const Cc=Ul==="PROD"?"https://api.zeni.ai":Ul==="DEV"?"https://dev.api.zeni.ai":"https://qa.api.zeni.ai";function gCt(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),s=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),l=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),c=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]})),d=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"]})),u=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"]})),p=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"]}));return[{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Reports - Profit & Loss by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Reports - Profit & Loss by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Reports - Profit & Loss by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${s}`,priority:"HIGH",reason:"Reports - Balance Sheet by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${l}`,priority:"HIGH",reason:"Reports - Balance Sheet by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/balance_sheet?query=${c}`,priority:"HIGH",reason:"Reports - Balance Sheet by Years (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${d}`,priority:"HIGH",reason:"Reports - Cash Flow by Months (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${u}`,priority:"HIGH",reason:"Reports - Cash Flow by Quarters (first load)",apiType:"reports"},{url:`${Cc}/accounting/2.0/reports/cash_flow?query=${p}`,priority:"HIGH",reason:"Reports - Cash Flow by Years (first load)",apiType:"reports"}]}const obs={dashboard:function(e){return[...gCt()]},reports:gCt,aging:function(e){return[]},transactions:function(e){return[]},forecast:function(e){const n=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["months"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),i=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["quarters"],forecast_id:e.forecastId,is_forecast_vs_actual:!0})),r=encodeURIComponent(JSON.stringify({is_full_response:!0,time_series_groups:["years"],forecast_id:e.forecastId,is_forecast_vs_actual:!0}));return[{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${n}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Months (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${i}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Quarters (first load)",apiType:"forecast"},{url:`${Cc}/accounting/2.0/reports/profit_and_loss?query=${r}`,priority:"HIGH",reason:"Forecast - Profit & Loss by Years (first load)",apiType:"forecast"}]},checking:function(e){const n=encodeURIComponent(JSON.stringify({is_include_deposit_accounts_summary:!0}));return[{url:`${Cc}/banking/1.0/deposit-accounts?query=${n}`,priority:"HIGH",reason:"Checking - Deposit Accounts (first load)",apiType:"checking"},{url:`${Cc}/pay/1.0/payment-accounts`,priority:"HIGH",reason:"Checking - Payment Accounts (first load)",apiType:"checking"},{url:`${Cc}/banking/1.0/baas/config`,priority:"HIGH",reason:"Checking - BAAS Config (first load)",apiType:"checking"}]},rewards:function(e){const n=encodeURIComponent(JSON.stringify({is_primary_refer_reward_plan:!0}));return[{url:`${Cc}/tenant/1.0/company-refer-reward-plan?query=${n}`,priority:"HIGH",reason:"Rewards Page - Rewards Plan (first load)",apiType:"rewards"},{url:`${Cc}/tenant/1.0/company-referrals`,priority:"HIGH",reason:"Rewards Page - Referrals (first load)",apiType:"rewards"}]},people:function(e){const n=encodeURIComponent(JSON.stringify({is_manager_candidate:!0})),{companyId:i}=e,r=encodeURIComponent(JSON.stringify({view:"passport"}));return[{url:`${Cc}/tenant/1.0/user-roles`,priority:"HIGH",reason:"People Page - User Roles (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/users?query=${n}`,priority:"HIGH",reason:"People Page - Users (first load)",apiType:"people"},{url:`${Cc}/accounting/1.0/classes`,priority:"HIGH",reason:"People Page - Classes (first load)",apiType:"people"},{url:`${Cc}/tenant/1.0/companies/${i}?query=${r}`,priority:"HIGH",reason:"People Page - Company Passport (first load)",apiType:"people"}]}};function fCt(e){const{currentPage:n,isRewardsFeatureEnabled:i,isPeopleTabVisible:r,isReportsPageVisible:s,isPageIndependent:l=!1}=e,c=(0,obs[l?"dashboard":n])(e),d=c.filter((u=>i===!1&&u.reason.includes("Rewards")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping rewards URL (feature disabled): ${u.url}`),!1):r===!1&&u.reason.includes("People")?(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping people URL (feature disabled): ${u.url}`),!1):s!==!1||!u.reason.includes("Reports")||(wc(`[Prefetch Manager - Service Worker] ⚠️ Skipping reports URL (feature disabled): ${u.url}`),!1)));return wc(`[Prefetch Manager - Service Worker] 📋 Prefetch list: ${c.length} total, ${d.length} after filtering`),d}async function xCt(e,n=0,i){if("serviceWorker"in navigator)try{const r=await(async function(u=1e4){if(!("serviceWorker"in navigator))throw new Error("Service Worker not supported");if(navigator.serviceWorker.controller)return navigator.serviceWorker.ready;const p=await navigator.serviceWorker.ready;return navigator.serviceWorker.controller!=null?p:new Promise(((h,g)=>{const f=Date.now();let x=100;const y=()=>navigator.serviceWorker.controller?(C(),void h(p)):Date.now()-f>=u?(C(),void(p.active?(wc("[Prefetch Manager - Service Worker] ⚠️ No controller but SW is active, proceeding anyway"),h(p)):g(new Error("Service Worker controller timeout")))):(x=Math.min(1.5*x,1e3),void(b=setTimeout(y,x)));let b;const w=()=>{navigator.serviceWorker.controller&&(C(),h(p))},C=()=>{clearTimeout(b),navigator.serviceWorker.removeEventListener("controllerchange",w)};navigator.serviceWorker.addEventListener("controllerchange",w),b=setTimeout(y,x)}))})(1e4),s=navigator.serviceWorker.controller||r.active;if(!s)return void CD("[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=mte(),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){CD("[Prefetch Manager - Service Worker] Failed to send prefetch request:",r instanceof Error?r.message:"Unknown error")}else CD("[Prefetch Manager - Service Worker] Service Worker not supported in this browser")}function rbs({children:e,currentPage:n,tenantId:i,batchCalls:r=0,expirationTime:s,delay:l=1e3,enabled:c=!0,enableIdlePrefetch:d=!1,features:u,forecastId:p,idleTimeout:h=2e3,isPageIndependent:g=!1,isRefreshTriggerEnabled:f=!1}){const[x,y]=m.useState(!1),[b,w]=m.useState(!1),C=m.useRef(null),A=Wg(),S=Tr.getSignedInUser(),{useFeatureGate:k}=es(),{isFeatureEnabled:$}=k(vl.isReferralFeatureEnabled),j=Ln(),I=Ry(j?.loggedInUserRole??[]),E=Nr((_=>_p(_))),{isFeatureEnabled:D}=k(vl.isDebitCardFeatureEnabled),L=cwe(D,E),F=lwe(E),N=L===!1&&F===!1;return m.useEffect((()=>{if(!c||x||!S||!i)return;const _=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E?.companyId??"",isPageIndependent:g}),z=g?"dashboard":n;if(_.length===0)return void wc(`[Prefetch Provider - ${z}${g?" (base)":""}] No URLs to prefetch`);wc(`[Prefetch Provider - ${z}${g?" (base)":""}] 📦 Generated ${_.length} URLs to prefetch`);const T=setTimeout((()=>{xCt(_,r,s).catch((M=>{CD(`[Prefetch Provider - ${z}${g?" (base)":""}] Prefetch failed:`,M)})),y(!0)}),l);return()=>clearTimeout(T)}),[c,x,S,i,n,u,p,$,I,N,E?.companyId,g,r,s,l,A.pathname]),m.useEffect((()=>{y(!1)}),[i,A.pathname]),m.useEffect((()=>{g||(y(!1),w(!1))}),[A.pathname,g]),m.useEffect((()=>{if(C.current&&(C.current(),C.current=null),!(c&&d&&S&&i)||b)return;wc(`[Prefetch Provider - Idle] 👀 Setting up idle prefetch detection (timeout: ${h}ms)`);const _=(function(z){const{timeout:T=2e3,onIdle:M}=z;wc(`[Idle Detection - Service Worker] 👀 Starting Idle Detection - Service Worker (timeout: ${T}ms)`);const O=()=>{sO&&(wc("[Idle Detection - Service Worker] 🏃 User became active again"),sO=!1),pE&&clearTimeout(pE),pE=setTimeout((()=>{sO||(wc("[Idle Detection - Service Worker] ⏱️ Browser is now IDLE"),sO=!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"),pE&&(clearTimeout(pE),pE=null),H.forEach((V=>{document.removeEventListener(V,O,!0)})),sO=!1}})({timeout:h,onIdle:()=>{if(b)return;wc("[Prefetch Provider - Idle] ⏱️ Browser is idle, fetching prefetch list with isIdleCallEnabled=true");const z=fCt({currentPage:n,userId:S.userId,tenantId:i,sessionId:S.zeniSessionId??"",features:u,forecastId:p,isRewardsFeatureEnabled:$,isPeopleTabVisible:I,isReportsPageVisible:N,companyId:E.companyId,isPageIndependent:g,isIdleCallEnabled:!0}),T=g?"dashboard":n;z.length!==0?(wc(`[Prefetch Provider - Idle - ${T}${g?" (base)":""}] 📦 Generated ${z.length} URLs to prefetch on idle`),xCt(z,r,s).catch((M=>{CD(`[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(_){CD("[Prefetch Provider] Failed to notify service worker of refresh:",_)}})())}),[]),on.jsx(on.Fragment,{children:e})}function abs({children:e,isPageIndependent:n=!1,batchCalls:i=0,enableIdlePrefetch:r=!1,expirationTime:s,idleTimeout:l=2e3,isRefreshTriggerEnabled:c=!1}){const d=Wg(),u=Nr((y=>_p(y))),p=(h=d.pathname).includes("/dashboard")?"dashboard":h.includes("/reports")||h.includes("/financials")?"reports":h.includes("/aging")?"aging":h.includes("/transactions")?"transactions":h.includes("/forecast")?"forecast":h.includes("/checking")||h.includes("/bank-accounts")?"checking":h.includes("/rewards")?"rewards":null;var h;const g=u.tenantId,{useFeatureGate:f}=es(),{isFeatureEnabled:x}=f(vl.isServiceWorkerPrefetchingEnabled);return g&&p?on.jsx(rbs,{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 sbs(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 lbs=dm((()=>jd((()=>import("./DefaultTenantHome-CgcNc4cC.js")),__vite__mapDeps([4,1,2,0,5,6,7,8])))),cbs=dm((()=>jd((()=>import("./AppDrawer-BhSl8rV2.js")),__vite__mapDeps([9,1,2,0,5,10,11,12,7,8])))),yCt=dm((()=>jd((()=>import("./ScreenRoutes-BrcD1XL7.js").then((e=>e.S))),__vite__mapDeps([13,0,1,2,5,14,6])))),dbs=dm((()=>jd((()=>import("./ConnectionAuthScreen-CQNQ7ew_.js")),__vite__mapDeps([15,1,2,0,5,16,17,10,11,18,8,19,20,21,22,23,24,6,7])))),ubs=dm((()=>jd((()=>import("./SignInScreen-C3SF8g1v.js")),__vite__mapDeps([25,1,2,0,5,26,14,6,7,8])))),pbs=dm((()=>jd((()=>import("./MagicLinkSignInScreen-B019I8to.js")),__vite__mapDeps([27,1,2,0,5,26,14,6,7,8])))),bCt=dm((()=>jd((()=>import("./NotFoundScreen-o4k1oZs0.js")),__vite__mapDeps([28,1,2,0,5,7,8])))),hbs=dm((()=>jd((()=>import("./MagicLinkRoutes-BBXT-8iZ.js")),__vite__mapDeps([29,1,2,0,5,28,7,8])))),mbs=dm((()=>jd((()=>import("./PaymentLinkScreen-B1FuqiqS.js")),__vite__mapDeps([30,1,2,0,5,7,8])))),gbs=dm((()=>jd((()=>import("./WiseConfirmationScreen-4XYLlDr6.js")),__vite__mapDeps([31,1,2,0,5,7,8])))),fbs=dm((()=>jd((()=>import("./HubSpotOAuthCallbackScreen-DFmMK3N-.js")),__vite__mapDeps([32,1,2,0,5,7,8])))),xbs=dm((()=>jd((()=>import("./CustomerOnboardingAuthScreen-CozKN4Dq.js")),__vite__mapDeps([33,1,2,0,18,8,19,20,21,22,5,23,7])))),ybs=dm((()=>jd((()=>import("./SignOutScreen-BvBM0MiM.js")),__vite__mapDeps([34,1,2,0,5,7,8])))),bbs=dm((()=>jd((()=>import("./OAuthConsentScreen-D4oumjOA.js")),__vite__mapDeps([35,1,2,0,5,7,8])))),wbs=()=>{const e=Wg(),n=new URLSearchParams(e.search),i=n.get("question"),r=i?.replace(/^["']|["']$/g,"")??null,s=n.get("should_submit")==="true",l=sbs("/",n);return on.jsx(VCt,{to:l,replace:!0,state:{origin:"/aicfo",message:"",queryParams:{aiCfoQuestion:r,aiCfoShouldSubmit:s?"true":"false"}}})};function Cbs(){const{isOpen:e}=nk(),n=Ndi(),{isAiCfoOpen:i,setIsAiCfoOpen:r}=Jje(),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 Abs=({tenantEmailDomain:e,setTenantEmailDomain:n})=>{const i=Tr.isSignedIn(),r=Nr((j=>_p(j))),s=Tr.getSignedInUser(),l=i&&Yz(s),c=Nr((j=>dcn(j))).tenantsBaseInOrder.map((j=>({companyId:j.companyId,tenantId:j.tenantId,companyName:j.companyName}))),d={userId:s?.userId??"",sessionId:s?.zeniSessionId??"",tenantId:r.tenantId??""},u=Mp(),p=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),h=Von(),g=s$e(),[f,x]=m.useState(!1),[y,b]=m.useState(null),w=m.useMemo((()=>({isAiCfoOpen:f,setIsAiCfoOpen:x,aiCfoSidePanelQuestionToSubmit:y,setAiCfoSidePanelQuestionToSubmit:b})),[f,y,x,b]),{useFeatureGate:C}=es(),{isFeatureEnabled:A}=C(vl.isAiCfoFileUploadEnabled);m.useEffect((()=>{!h&&f&&x(!1)}),[h,f]),m.useEffect((()=>{h||u(ucn())}),[u,h]);const S=Wg().pathname.includes("/collect-payment/"),k=on.jsx(vbs,{setTenantEmailDomain:n,isOnDashboard:p,userHasZeniAiCfoAccess:g,isAiCfoFileUploadEnabled:A});if(S)return on.jsx(_We,{children:on.jsx(M3t,{children:on.jsx(q8e.Provider,{value:w,children:k})})});const $=on.jsxs(q8e.Provider,{value:w,children:[on.jsx(Cbs,{}),on.jsxs(jbs,{children:[on.jsx(cbs,{tenantEmailDomain:e}),on.jsx(Sbs,{children:k})]})]});return on.jsx(_We,{children:r.tenantId!=null?on.jsx(gga,{roomId:`dashboard_${r.companyId}`,authParams:d,users:[],companies:c,authUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!0,commentingUsersUrlEndPoint:`${Kx.tenantMicroServiceBaseUrl}/1.0/users/commenting-users`,isZeniUser:l,autoConnect:!0,loggedInUser:s,withRoomProvider:!0,withThreadsProvider:!0,threadsIndexStrategy:"roomThreads",filter:{application:"dashboard",companyId:r.companyId},children:$},r.tenantId):on.jsx(M3t,{children:$})})},vbs=({setTenantEmailDomain:e,isOnDashboard:n,userHasZeniAiCfoAccess:i,isAiCfoFileUploadEnabled:r})=>{const s=Nr((x=>x.tenantState.loggedInUser)),{useDynamicConfig:l}=es(),{configValue:c}=l(e5.webappPrefetchConfig),d=typeof c.SERVICE_WORKER_BATCH_CALLS=="number"?c.SERVICE_WORKER_BATCH_CALLS:15,u=typeof c.SERVICE_WORKER_IDLE_TIMEOUT=="number"?c.SERVICE_WORKER_IDLE_TIMEOUT:3e3,p=typeof c.EXPIRATION_TIME=="number"&&c.EXPIRATION_TIME>0?c.EXPIRATION_TIME:12e5,{clearLoading:h}=t$e(),{isAiCfoOpen:g,setIsAiCfoOpen:f}=Jje();return m.useEffect((()=>{h(Uon.APP_INITIALIZATION)}),[h]),on.jsx(m.Suspense,{fallback:null,children:on.jsx(abs,{isPageIndependent:!0,batchCalls:d,isRefreshTriggerEnabled:!1,enableIdlePrefetch:!1,idleTimeout:u,expirationTime:p,children:on.jsxs(Krn,{children:[on.jsx(q1,{path:"/magic_links/*",element:on.jsx(hbs,{})}),on.jsx(q1,{path:"/collect-payment/:namespace/:token",element:on.jsx(mbs,{})}),on.jsx(q1,{path:"/wise/callback/link-account/*",element:on.jsx(gbs,{})}),on.jsx(q1,{path:"/page-not-found",element:on.jsx(bCt,{})}),on.jsx(q1,{path:"/",element:on.jsx(lbs,{})}),on.jsx(q1,{path:"/aicfo",element:on.jsx(wbs,{})}),on.jsx(q1,{path:"/onboarding/auth",element:on.jsx(xbs,{})}),on.jsx(q1,{path:"/:tenantEmailDomain/*",element:on.jsx(Ebs,{children:on.jsxs(y6s,{children:[on.jsxs(Ibs,{children:[s!=null?on.jsx(ebs,{}):null,n?on.jsx(yCt,{setTenantEmailDomain:e}):on.jsx(b5e,{children:on.jsx(yCt,{setTenantEmailDomain:e})})]}),i?on.jsxs(on.Fragment,{children:[on.jsx(q7s,{}),on.jsx(Dbs,{isOpen:g,children:on.jsx(U6s,{isOpen:g,onClose:()=>f(!1),isFileUploadEnabled:r})})]}):null]})})}),on.jsx(q1,{path:"/signin/auth",element:on.jsx(b5e,{children:on.jsx(ubs,{setTenantEmailDomain:e})})}),on.jsx(q1,{path:"/signin/magic-link",element:on.jsx(b5e,{children:on.jsx(pbs,{})})}),on.jsx(q1,{path:"/signout",element:on.jsx(ybs,{})}),on.jsx(q1,{path:"/connection/auth",element:on.jsx(dbs,{})}),on.jsx(q1,{path:"/oauth/hubspot/callback",element:on.jsx(fbs,{})}),on.jsx(q1,{path:"/oauth/authorize",element:on.jsx(bbs,{})}),on.jsx(q1,{path:"*",element:on.jsx(bCt,{})})]})})})},Sbs=({children:e})=>{const{isOpen:n,width:i}=nk();return on.jsx($bs,{commentsDrawerWidth:n?i:0,children:e})},kbs=TS("div")`
|
|
92557
92557
|
display:flex;
|
|
92558
92558
|
`,jbs=TS("div")`
|
|
92559
92559
|
display: flex;
|
|
@@ -92675,4 +92675,4 @@ ${GM.gap.expectedStartDate(u)}.`:f.description,y=p===!0||d!=null;return t.jsx(Di
|
|
|
92675
92675
|
}
|
|
92676
92676
|
`,qbs=({fetchState:e,style:n})=>e==="In-Progress"||e==="Not-Started"?on.jsxs(Ubs,{style:n,children:[on.jsxs(Wbs,{children:[on.jsx(lq,{children:on.jsx(U0,{width:96,height:20})}),on.jsxs(lq,{children:[on.jsx(U0,{width:55,height:12}),on.jsx(U0,{width:78,height:16}),on.jsx(U0,{width:46,height:16})]}),on.jsxs(lq,{children:[on.jsx(U0,{width:55,height:12}),on.jsx(U0,{width:110,height:16}),on.jsx(U0,{width:84,height:16})]}),on.jsxs(lq,{children:[on.jsx(U0,{width:55,height:12}),on.jsx(U0,{width:84,height:16}),on.jsx(U0,{width:64,height:16})]})]}),on.jsxs(Qbs,{children:[on.jsxs(Ybs,{children:[on.jsx(U0,{width:106,height:27}),on.jsx(U0,{width:111,height:32})]}),on.jsx(Gbs,{children:on.jsx(Hbs,{width:96,height:96})})]})]}):null;function Kbs({minDisplayTime:e=0}){const{isLoading:n}=t$e(),[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(qbs,{fetchState:"In-Progress"})}const Zbs=()=>{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},ACt="missing-receipts-batch-completed";let Z8e=null,J8e=!1;function Qks(e,n){if(!n)return Z8e=null,void(J8e=!1);Z8e=e,J8e=!0}const Jbs=()=>{const e=Mp(),{useFeatureGate:n}=es(),{isFeatureEnabled:i}=n(vl.isReconV3Enabled),r=Nr((l=>GAt(l)?.reconciliation?.accountReconciliationsByAccountID)),s=m.useRef({});m.useEffect((()=>{i===!0&&r!=null&&Object.entries(r).forEach((([l,c])=>{const d=c.statementParseStatus.fetchState,u=s.current[l]??"Not-Started";c.statementProcessingDismissedToBackground!==!0||(function(p){return J8e&&Z8e===p})(l)||u!=="In-Progress"||d!=="Completed"||e(HAt({messageSection:"statement_parsing_complete",messageText:"success",type:"info",showStatusIcon:!0,variables:[{variableName:"_account_name_",variableValue:rls(c)},{variableName:"_transaction_count_",variableValue:String(als(c))}]})),s.current[l]=d}))}),[r,e,i])},vCt="reconciliation-status-updated",SCt="statement-status-updated",kCt="combined-statement-group-updated";function Xbs(e){return e.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.statementMeta?.combinedStatementGroupId??e.parsedStatementData?.statementUpload?.combinedStatementDetails?.combinedStatementGroupId??""}function e9s(e,n,i,r,s,l){const c=i.account_id;if(c==null||c==="")return;const d=i.new_statement_data_status?.code;if(d==="deleting"||(e(qAt(n,c,!0,!0)),r!==!0))return;const u=i.statement_upload_id,p=u!=null&&u!=="",h=d==="parsed_awaiting_mapping"&&s===!0&&p===!0,g=d==="processed"&&p===!0&&(s!==!0||(function(f,x,y){return f!=null&&Object.values(f.accountReconciliationsByAccountID).some((b=>{const w=b.confirmedCombinedStatementUploads;if((w?.length??0)===0)return!1;const C=y!=null&&y!==""&&w?.some((S=>S.statementUploadId===y))===!0,A=w?.some((S=>S.accountId===x))===!0;return C===!0||A===!0}))})(l,c,u)!==!0);h!==!0&&g!==!0||e(fcn({accountId:c,selectedPeriod:n,statementUploadId:u})),d!=="validation_failed"&&d!=="parsing_failed"&&d!=="processing_failed"||e(KAt({accountId:c,selectedPeriod:n,statementProcessingFailed:!0}))}function t9s(e,n,i,r,s,l){if(r!==!0||s!==!0)return;const c=i.group_status;if(c!=="processed"&&c!=="processing_failed")return;const d=(function(u,p){const h=p.combined_statement_group_id?.trim();if(u==null||h==null||h==="")return;const g=p.statement_upload_id?.trim()??"",f=Object.entries(u.accountReconciliationsByAccountID),x=(y,b)=>{const w=(function(C,A){return A!==""?A:C.confirmedCombinedStatementUploads?.find((S=>S.isCombinedStatementAnchor===!0))?.statementUploadId??C.confirmedCombinedStatementUploads?.[0]?.statementUploadId??C.accountReconEntity.statementMetaData?.statementUploadId??C.parsedStatementData?.statementUpload?.statementMeta?.statementUploadId??""})(b,g);if(w!=="")return{accountId:y,combinedStatementGroupId:h,statementUploadId:w}};for(const[y,b]of f){if(Xbs(b)!==h)continue;const w=x(y,b);if(w!=null)return w}for(const[y,b]of f){const w=(b.confirmedCombinedStatementUploads?.length??0)>0,C=b.localData?.statementAccountScope==="multi_account";if(w!==!0&&C!==!0)continue;const A=x(y,b);if(A!=null)return A}})(l,i);d!=null&&(e(qAt(n,d.accountId,!0,!0)),e(c!=="processing_failed"?xcn({accountId:d.accountId,selectedPeriod:n,statementUploadId:d.statementUploadId,combinedStatementGroupId:d.combinedStatementGroupId}):KAt({accountId:d.accountId,selectedPeriod:n,statementProcessingFailed:!0})))}function n9s(){let e=CCt();return e===null&&(e=(function(){console.warn(`initializing epic state with url ${JSON.stringify(Kx)}`);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=wcn(Kx,n?.userId,n?.zeniSessionId,i,bD(),r9s);$5e();const s=mte();return s.userId!=null&&Gm.identify(s.userId,{tenant_id:s.tenantId}),r})(),brn=e,$5e().then((()=>{const n=CCt();n!=null&&(yb.reset(),_bs(n))})).catch((n=>{console.error("Failed to load feature epics:",n),Irn(n,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
|
|
92677
92677
|
|
|
92678
|
-
Please refresh the page to try again.`)}))),e}se.updateAppLocaleID("en");const cq=new ycn,jCt=()=>{const e=Mp(),n=Tr.getSignedInUser(),i=Nr((L=>_p(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=es(),{configValue:N,isDynamicConfigLoading:_}=F(nAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return dQ;const T=dpt(N.users_disabled_for_auto_logout),M=dpt(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:D2e(N.heartbeat_interval_minutes,dQ.heartbeatIntervalMinutes),idleTimeoutMinutes:D2e(N.idle_timeout_minutes,dQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:D2e(N.warning_duration_seconds,dQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(Lve,"auto-logout"),sessionStorage.setItem(Bve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(Pve,String(Date.now())),zF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(dzt(),zF=void 0),s(null),cq.stop(),e(Ccn()),e(Acn(!1)),Tr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return cq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(vcn()),onWarningStart:L=>{Gm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Gm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>cq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Nr((L=>Scn(L,i.companyId))),u=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(L$e())}),[]);const h=Nr((L=>kcn(L)));(()=>{const L=Jee(),F=Mp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(vl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Tr.getSignedInUser()?.userId;if(z==null)return;const T=wD(L,z),M=O=>{F(gcn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(ACt,M),()=>{T.unbind(ACt,M)}}),[L,F,_])})(),(()=>{const L=Jee(),F=Mp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(vl.isReconV3Enabled),{isFeatureEnabled:z}=N(vl.isReconciliationCombinedStatementEnabled),T=Nr((Y=>_p(Y)?.companyId)),M=Nr((Y=>GAt(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=wD(L,T),K=ee=>{e9s(F,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{t9s(F,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(vCt,K),q.bind(SCt,K),q.bind(kCt,J),()=>{q.unbind(vCt,K),q.unbind(SCt,K),q.unbind(kCt,J)}}),[L,F,_,z,T,V,W])})(),Jbs();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>jcn(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($cn(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(vl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(vl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(vl.isInvoicingFeatureEnabled),k=R3a(),$=i?.userRole!=null&&ws(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&iAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>Nbs(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Gm,sentry:Drn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(eVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(Q_n,{toolkit:D,children:on.jsxs(n_n,{endPoint:{url:qje},children:[on.jsx(fsr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(L$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(Tbs,{...x})]})}),r!=null&&n!=null?on.jsx($7s,{secondsRemaining:r,onContinueSession:()=>{Gm.trackSessionTimeoutClicked("continue",r),cq.continueSession()},onSignOut:()=>{Gm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},i9s=()=>{const e=Tr.isSignedIn(),n=Nr((c=>_p(c))).companyId,i=Nr((c=>bcn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=Zbs(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:oCt,featureClientSecret:Zs.featureClientSecret,providerEndPoint:Uz.statsigBaseUrl})),[oCt,Zs.featureClientSecret,Uz.statsigBaseUrl]);return n?on.jsx(BWn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:on.jsx(jCt,{})}):on.jsx(jCt,{})},o9s=Ern((function(){const e=m.useMemo((()=>n9s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{$5e().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(Lbs,{children:on.jsx(Zrn,{store:e,children:on.jsx(Vbs,{value:n,children:on.jsxs(Z7s,{children:[on.jsx(Kbs,{}),on.jsx(pbn,{children:on.jsx(j6s,{children:on.jsxs(U_n,{children:[r?on.jsx(_ci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(i9s,{})]})})})]})})})})}));function r9s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const a9s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$Ct=`/service-worker.js?v=${Date.now()}&env=DEV&endpoint=${encodeURIComponent("https://zeni-webapp-dev.uc.r.appspot.com")}`;function ECt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Crn="zeni:env-keys:",Xee=`${Crn}${Ul}:5.4.7-dev-8bf0aff37`,ICt="zeni.ai";function s9s(e){return Arn(e)}function DCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(s9s)}const w5e="o4504609050525696",l9s={SENTRY_DSN:[`${w5e}.ingest.sentry.io`,`${w5e}.ingest.us.sentry.io`,`${w5e}.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"]},c9s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,d9s=["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===ICt||n.hostname.endsWith(`.${ICt}`))}const u9s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],p9s=/^[A-Za-z0-9_-]+$/,h9s=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}),m9s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),g9s=/^pk_(live|test)_[A-Za-z0-9]+$/,f9s=/^[A-Za-z0-9_.-]+$/,x9s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function y9s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!DCt(n.apiEndPoints)||!DCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(h9s.some((h=>i[h]==null))||m9s.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(l9s).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=u9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&p9s.test(g)})),u=d9s.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:"&&c9s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&g9s.test(l.STRIPE_KEY))&&x9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&f9s.test(g)}));return c&&d&&u&&p}function C5e(){try{window.localStorage.removeItem(Xee)}catch{}}function b9s(e){try{window.localStorage.setItem(Xee,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(Crn)&&r!==Xee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function vrn(e){if(e==null||e==="")return null;try{const n=JSON.parse(von(e,Son+Ul));return y9s(n)?n:null}catch{return null}}function TCt(e){return vrn(e)!=null&&(b9s(e),!0)}const LCt="zeni-chunk-reload-at",w9s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function BCt(e){try{const n=Number(sessionStorage.getItem(LCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(LCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let A5e=!1,PCt=null;const MCt="//js.hs-scripts.com/5991084.js",OCt="hs-script-loader",C9s=Tr.getSignedInUser(),A9s=C9s?.zeniSessionId;function v9s(){const e=()=>{const n=Zs.sentryDsn?.trim();if(!n)return;const i=Zs.sentryProfileSamplingRate>0,r=Ul==="PROD";Trn({dsn:n,environment:V7s,tracesSampleRate:Zs.sentryTraceSamplingRate,profilesSampleRate:i?Zs.sentryProfileSamplingRate:0,integrations:[Lrn(),...i?[Brn()]:[],...r?[Prn({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)}),Mrn("session-id",A9s),(function(){if(VK==null)return;const s=VK;VK=void 0;try{if(window.sessionStorage.getItem(FCt)!=null)return;window.sessionStorage.setItem(FCt,s)}catch{}Orn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.7-dev-8bf0aff37"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function Srn(){Zcn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Jrn,{children:on.jsx(o9s,{})})})),v9s()}let VK;function X8e(e){VK=e}const FCt="zeni:env-keys-rejection-reported";function S9s(){const e=(function(){try{const i=window.localStorage.getItem(Xee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return C5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(C5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=vrn(e);return n==null?(X8e("untrusted-or-unreadable"),C5e(),!1):(jon(n),Srn(),!0)}var eA;window.addEventListener("vite:preloadError",(e=>{const n=e;BCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return w9s.some((r=>i.includes(r)))})(e.reason)&&BCt(e.reason)})),(async function(){try{if(S9s())return void(async function(){const i=await rCt();typeof i=="string"&&i.length>0&&!TCt(i)&&X8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await rCt(),n=von(e,Son+Ul);jon(JSON.parse(n)),TCt(e)||X8e("network-untrusted-payload"),Srn()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):PCt!==null||(PCt=new Promise((e=>{if(A5e)return void e(!0);const n=()=>{A5e?e(!0):(A5e=!0,new Promise(((r,s)=>{if(document.getElementById(OCt))return void r();const l=document.createElement("script");l.id=OCt,l.src=MCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${MCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;a9s?(e=$Ct,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):ECt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):ECt($Ct)}))}})(),(eA=console.log)&&eA instanceof Function&&jd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(eA),n(eA),i(eA),r(eA),s(eA)}));export{fe as $,I6s as A,c$e as B,L6s as C,Hks as D,o as E,W9s as F,se as G,dm as H,mYi as I,Ln as J,R3a as K,Uon as L,Ul as M,_bs as N,U9s as O,Bks as P,M8s as Q,Ni as R,ows as S,CCt as T,T8s as U,Wve as V,Zs as W,rws as X,Kn as Y,z9s as Z,Cci as _,Jje as a,UAs as a$,yAs as a0,Efi as a1,Lks as a2,bAs as a3,wAs as a4,q6s as a5,Ive as a6,Hbs as a7,sqo as a8,R as a9,Fko as aA,aws as aB,ZCs as aC,KCs as aD,r5 as aE,EGt as aF,JCs as aG,_9s as aH,Jee as aI,$6s as aJ,YAs as aK,GAs as aL,D8s as aM,$As as aN,MCs as aO,RCs as aP,oke as aQ,DAs as aR,IAs as aS,FCs as aT,OCs as aU,I8s as aV,hOt as aW,pks as aX,QAs as aY,HAs as aZ,WAs as a_,CAs as aa,lks as ab,Kx as ac,P as ad,N9s as ae,iAs as af,z8s as ag,eAs as ah,iws as ai,Eks as aj,lws as ak,f6s as al,srn as am,Mks as an,b6s as ao,x6s as ap,Oks as aq,Y8s as ar,Bp as as,qje as at,pCt as au,uSs as av,Svs as aw,Di as ax,LCs as ay,TCs as az,sbs as b,dCs as b$,nws as b0,Tks as b1,tws as b2,ECs as b3,qCs as b4,Vi as b5,Q_n as b6,tAs as b7,_8o as b8,sws as b9,Z9s as bA,pSs as bB,PCs as bC,X9s as bD,e8s as bE,J9s as bF,bD as bG,EAs as bH,Gws as bI,Kws as bJ,qws as bK,Wws as bL,Uws as bM,Zws as bN,AAs as bO,Qws as bP,Yws as bQ,Xws as bR,Ps as bS,KAs as bT,vAs as bU,sCs as bV,rCs as bW,Aks as bX,YCs as bY,fks as bZ,uCs as b_,zEi as ba,qNt as bb,kAs as bc,SAs as bd,jAs as be,O8s as bf,In as bg,ba as bh,orn as bi,e5 as bj,Dks as bk,N6s as bl,Q8s as bm,G8s as bn,JAs as bo,Zje as bp,Y7s as bq,L8s as br,HMi as bs,zBt as bt,cws as bu,S6s as bv,lCs as bw,K9s as bx,t8s as by,zAe as bz,NFt as c,UCs as c$,vCs as c0,ACs as c1,$Cs as c2,jCs as c3,eCs as c4,tCs as c5,XCs as c6,nAs as c7,nCs as c8,iCs as c9,xSs as cA,sks as cB,ASs as cC,nks as cD,ESs as cE,lt as cF,CSs as cG,zi as cH,qSs as cI,vSs as cJ,$Ss as cK,KSs as cL,zSs as cM,NSs as cN,_Ss as cO,RSs as cP,VSs as cQ,FSs as cR,qbs as cS,r8s as cT,ICs as cU,DCs as cV,hSs as cW,aCs as cX,jks as cY,xks as cZ,_Cs as c_,oCs as ca,kCs as cb,SCs as cc,iks as cd,tks as ce,SSs as cf,LSs as cg,kSs as ch,fSs as ci,bSs as cj,ZSs as ck,ISs as cl,WSs as cm,QSs as cn,USs as co,wSs as cp,jSs as cq,aks as cr,oks as cs,rks as ct,JSs as cu,DSs as cv,eks as cw,XSs as cx,TSs as cy,HSs as cz,vl as d,$ks as d$,VCs as d0,H9s as d1,zCs as d2,NCs as d3,Dve as d4,WCs as d5,GCs as d6,E0s as d7,N2s as d8,Wxe as d9,XAs as dA,ovs as dB,fvs as dC,i8s as dD,o8s as dE,yvs as dF,mvs as dG,hvs as dH,tvs as dI,gvs as dJ,qAs as dK,hga as dL,sSs as dM,dSs as dN,gSs as dO,mSs as dP,cks as dQ,rls as dR,Y9s as dS,mks as dT,hks as dU,Qks as dV,yKi as dW,BCs as dX,Ndi as dY,nk as dZ,Men as d_,vks as da,Sks as db,kks as dc,Cks as dd,F8s as de,Rqt as df,uvs as dg,dvs as dh,lvs as di,pvs as dj,cvs as dk,yks as dl,svs as dm,avs as dn,xvs as dp,evs as dq,ivs as dr,n8s as ds,HCs as dt,cr as du,xGr as dv,nvs as dw,lrn as dx,ZAs as dy,rvs as dz,Zbs as e,Bxo as e0,uks as e1,cCs as e2,gks as e3,ols as e4,oSs as e5,vvs as e6,Avs as e7,Cvs as e8,o6s as e9,r6s as ea,XR as eb,k6s as ec,B6s as ed,Don as ee,_6s as ef,Zye as eg,eon as eh,Xin as ei,Q9s as ej,t6s as ek,i6s as el,n6s as em,H7s as en,J7s as eo,Eon as ep,Pks as eq,s$e as f,Wks as g,Uks as h,Rks as i,Wt as j,Gm as k,ST as l,v as m,Vks as n,_ks as o,es as p,Nks as q,T6s as r,PBi as s,yb as t,t$e as u,Fks as v,drn as w,Iks as x,zks as y,Tr as z};
|
|
92678
|
+
Please refresh the page to try again.`)}))),e}se.updateAppLocaleID("en");const cq=new ycn,jCt=()=>{const e=Mp(),n=Tr.getSignedInUser(),i=Nr((L=>_p(L))),[r,s]=m.useState(null),l=(function(L){const{useDynamicConfig:F}=es(),{configValue:N,isDynamicConfigLoading:_}=F(nAe.sessionAutoLogoutConfig),z=N!=null&&Object.keys(N).length>0;if(_||L==null||!z)return dQ;const T=dpt(N.users_disabled_for_auto_logout),M=dpt(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:D2e(N.heartbeat_interval_minutes,dQ.heartbeatIntervalMinutes),idleTimeoutMinutes:D2e(N.idle_timeout_minutes,dQ.idleTimeoutMinutes),isAutoLogoutEnabled:!H&&(V||O),warningDurationSeconds:D2e(N.warning_duration_seconds,dQ.warningDurationSeconds)}})(n?.userId),c=m.useCallback(((L="manual")=>{L==="auto-logout"?(function(F){try{sessionStorage.setItem(Lve,"auto-logout"),sessionStorage.setItem(Bve,String(F.idleTimeoutMinutes)),sessionStorage.setItem(Pve,String(Date.now())),zF=void 0}catch{}})({idleTimeoutMinutes:l.idleTimeoutMinutes}):(dzt(),zF=void 0),s(null),cq.stop(),e(Ccn()),e(Acn(!1)),Tr.clearAll(),window.location.replace("/signin/auth")}),[e,s,l.idleTimeoutMinutes]);m.useEffect((()=>{if(n?.zeniSessionId!=null)return cq.start({idleTimeoutMinutes:l.idleTimeoutMinutes,warningDurationSeconds:l.warningDurationSeconds,heartbeatIntervalMinutes:l.heartbeatIntervalMinutes,isAutoLogoutEnabled:l.isAutoLogoutEnabled},{onHeartbeat:()=>e(vcn()),onWarningStart:L=>{Gm.trackSessionTimeoutPopupShown(L),s(L)},onWarningTick:s,onAutoLogout:()=>{Gm.trackSessionTimeoutAutoLogout(),c("auto-logout")},onSessionExtended:()=>s(null)}),()=>cq.stop()}),[n?.zeniSessionId,l.isAutoLogoutEnabled,l.idleTimeoutMinutes,l.warningDurationSeconds,l.heartbeatIntervalMinutes,e,c,s]);const d=Nr((L=>Scn(L,i.companyId))),u=Yd(["/:tenantEmailDomain/dashboard/*","/:tenantEmailDomain/dashboard"]),p=i?.excludedResources?.fetchState==="Completed"?i.excludedResources.resources:[];m.useEffect((()=>()=>{e(L$e())}),[]);const h=Nr((L=>kcn(L)));(()=>{const L=Jee(),F=Mp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(vl.isMissingReceiptsBulkUploadEnabled);m.useEffect((()=>{if(_!==!0||L==null)return;const z=Tr.getSignedInUser()?.userId;if(z==null)return;const T=wD(L,z),M=O=>{F(gcn({batchId:O.batch_id,progress:O.progress,status:O.status.toLowerCase()}))};return T.bind(ACt,M),()=>{T.unbind(ACt,M)}}),[L,F,_])})(),(()=>{const L=Jee(),F=Mp(),{useFeatureGate:N}=es(),{isFeatureEnabled:_}=N(vl.isReconV3Enabled),{isFeatureEnabled:z}=N(vl.isReconciliationCombinedStatementEnabled),T=Nr((Y=>_p(Y)?.companyId)),M=Nr((Y=>GAt(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=wD(L,T),K=ee=>{e9s(F,Y,ee??{},_===!0,z===!0,U.current)},J=ee=>{t9s(F,Y,ee??{},_===!0,z===!0,U.current)};return q.bind(vCt,K),q.bind(SCt,K),q.bind(kCt,J),()=>{q.unbind(vCt,K),q.unbind(SCt,K),q.unbind(kCt,J)}}),[L,F,_,z,T,V,W])})(),Jbs();const g=i?.externalConnections?.accounting[0]?.connectionName,f=m.useMemo((()=>jcn(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($cn(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(vl.isApAgingFeatureEnabled),{isFeatureEnabled:A}=w(vl.isArAgingFeatureEnabled),{isFeatureEnabled:S}=w(vl.isInvoicingFeatureEnabled),k=R3a(),$=i?.userRole!=null&&ws(i.userRole),j=p.find((L=>L.resource==="/reports/top_expenses"))==null,I=m.useMemo((()=>({canSeeApAging:C,canSeeArAging:A,canSeeInvoicing:S||Ul==="DEV",canSeeMonthEndClose:k&&!$,canSeeReports:i?.userRole!=null&&iAt(i.userRole),canSeeTopExpenses:j})),[C,A,S,k,$,i?.userRole,j]),E=m.useCallback((L=>Nbs(L,{access:I,tenantEmailDomain:i?.tenantEmailDomain??""})),[I,i?.tenantEmailDomain]),D=m.useMemo((()=>({analytics:Gm,sentry:Drn,authParams:b,resolveDeepLink:E})),[b,E]);return on.jsxs(eVn,{globalInfo:{loggedInUser:n,loggedInUserRole:i?.userRole,excludedResources:p,loggedInUserRoleMap:f,currentTenant:i,connectionName:g,controllersList:d},children:[on.jsx(Q_n,{toolkit:D,children:on.jsxs(n_n,{endPoint:{url:qje},children:[on.jsx(fsr,{showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:()=>{e(L$e())},showStatusIcon:h.showStatusIcon},isOnDashboard:u}),on.jsx(Tbs,{...x})]})}),r!=null&&n!=null?on.jsx($7s,{secondsRemaining:r,onContinueSession:()=>{Gm.trackSessionTimeoutClicked("continue",r),cq.continueSession()},onSignOut:()=>{Gm.trackSessionTimeoutClicked("sign_out",r),c()}}):null]})},i9s=()=>{const e=Tr.isSignedIn(),n=Nr((c=>_p(c))).companyId,i=Nr((c=>bcn(c.companyState,n)?.company.featuresActivationInfo.connectedAccountProvider)),r=Zbs(),s=m.useMemo((()=>({companyId:n,connectedAccountProvider:i,userId:r?.userId})),[n,i,r?.userId]),l=m.useMemo((()=>({currentFeatureEnv:oCt,featureClientSecret:Zs.featureClientSecret,providerEndPoint:Uz.statsigBaseUrl})),[oCt,Zs.featureClientSecret,Uz.statsigBaseUrl]);return n?on.jsx(BWn,{isUserSignedIn:e,featureGateCustomFields:s,zeniFeatureConfig:l,children:on.jsx(jCt,{})}):on.jsx(jCt,{})},o9s=Ern((function(){const e=m.useMemo((()=>n9s()),[]),[n,i]=m.useState(!1),[r,s]=m.useState(!1);m.useEffect((()=>{$5e().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(Lbs,{children:on.jsx(Zrn,{store:e,children:on.jsx(Vbs,{value:n,children:on.jsxs(Z7s,{children:[on.jsx(Kbs,{}),on.jsx(pbn,{children:on.jsx(j6s,{children:on.jsxs(U_n,{children:[r?on.jsx(_ci,{onPrimaryClick:()=>{s(!1),window.location.reload()}}):null,on.jsx(i9s,{})]})})})]})})})})}));function r9s(){console.warn("Session invalidated - forcing logout"),window.location.href="/signout"}const a9s=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$Ct=`/service-worker.js?v=${Date.now()}&env=QA&endpoint=${encodeURIComponent("https://zeni-webapp-qa.uc.r.appspot.com")}`;function ECt(e,n){navigator.serviceWorker.register(e).then((i=>{i.onupdatefound=()=>{const r=i.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),i.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},i.waiting&&i.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",(()=>{console.log("New service worker activated."),i.active?.postMessage({type:"CLIENTS_CLAIM"})}))})).catch((i=>{console.error("Error during service worker registration:",i)}))}const Crn="zeni:env-keys:",Xee=`${Crn}${Ul}:5.4.7-qa-8bf0aff37`,ICt="zeni.ai";function s9s(e){return Arn(e)}function DCt(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.values(e).every(s9s)}const w5e="o4504609050525696",l9s={SENTRY_DSN:[`${w5e}.ingest.sentry.io`,`${w5e}.ingest.us.sentry.io`,`${w5e}.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"]},c9s=/^(?:[a-z0-9-]+-dot-)?zeni-webapp(?:-dev|-qa)?\.uc\.r\.appspot\.com$/,d9s=["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===ICt||n.hostname.endsWith(`.${ICt}`))}const u9s=["PUSHER_CLUSTER","UNIT_VAULT_ID"],p9s=/^[A-Za-z0-9_-]+$/,h9s=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}),m9s=Object.keys({mixpanelBaseUrl:!0,statsigBaseUrl:!0}),g9s=/^pk_(live|test)_[A-Za-z0-9]+$/,f9s=/^[A-Za-z0-9_.-]+$/,x9s=["GOOGLE_CLIENT_ID","MICROSOFT_CLIENT_ID","MIXPANEL_TOKEN","PUSHER_CLIENT_SECRET","STATSIG_CLIENT_SECRET","QUICKBOOK_TOKEN","GOOGLE_MAP_KEY"];function y9s(e){if(typeof e!="object"||e==null||Array.isArray(e))return!1;const n=e;if(!DCt(n.apiEndPoints)||!DCt(n.externalEndPoints))return!1;const i=n.apiEndPoints,r=n.externalEndPoints;if(h9s.some((h=>i[h]==null))||m9s.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(l9s).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=u9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&p9s.test(g)})),u=d9s.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:"&&c9s.test(x.hostname)}catch{return!1}})(g)})),p=(l.STRIPE_KEY==null||typeof l.STRIPE_KEY=="string"&&g9s.test(l.STRIPE_KEY))&&x9s.every((h=>{const g=l[h];return g==null||typeof g=="string"&&f9s.test(g)}));return c&&d&&u&&p}function C5e(){try{window.localStorage.removeItem(Xee)}catch{}}function b9s(e){try{window.localStorage.setItem(Xee,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(Crn)&&r!==Xee&&n.push(r)}n.forEach((i=>window.localStorage.removeItem(i)))}catch{}})()}catch{}}function vrn(e){if(e==null||e==="")return null;try{const n=JSON.parse(von(e,Son+Ul));return y9s(n)?n:null}catch{return null}}function TCt(e){return vrn(e)!=null&&(b9s(e),!0)}const LCt="zeni-chunk-reload-at",w9s=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function BCt(e){try{const n=Number(sessionStorage.getItem(LCt))||0;if(Date.now()-n<6e4)return!1;sessionStorage.setItem(LCt,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}let A5e=!1,PCt=null;const MCt="//js.hs-scripts.com/5991084.js",OCt="hs-script-loader",C9s=Tr.getSignedInUser(),A9s=C9s?.zeniSessionId;function v9s(){const e=()=>{const n=Zs.sentryDsn?.trim();if(!n)return;const i=Zs.sentryProfileSamplingRate>0,r=Ul==="PROD";Trn({dsn:n,environment:V7s,tracesSampleRate:Zs.sentryTraceSamplingRate,profilesSampleRate:i?Zs.sentryProfileSamplingRate:0,integrations:[Lrn(),...i?[Brn()]:[],...r?[Prn({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)}),Mrn("session-id",A9s),(function(){if(VK==null)return;const s=VK;VK=void 0;try{if(window.sessionStorage.getItem(FCt)!=null)return;window.sessionStorage.setItem(FCt,s)}catch{}Orn("cached env keys rejected",{level:"warning",tags:{"env-keys-cache":"rejected","env-keys-cache.reason":s,"env-keys-cache.build":"5.4.7-qa-8bf0aff37"}})})()};"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0)}function Srn(){Zcn.createRoot(document.getElementById("root")).render(on.jsx(B.StrictMode,{children:on.jsx(Jrn,{children:on.jsx(o9s,{})})})),v9s()}let VK;function X8e(e){VK=e}const FCt="zeni:env-keys-rejection-reported";function S9s(){const e=(function(){try{const i=window.localStorage.getItem(Xee);if(i==null)return null;const r=JSON.parse(i);if(typeof r?.payload!="string")return C5e(),null;const s=Date.now()-r.storedAt;return typeof r.storedAt!="number"||!Number.isFinite(s)||s<0||s>864e5?(C5e(),null):r.payload}catch{return null}})();if(e==null)return!1;const n=vrn(e);return n==null?(X8e("untrusted-or-unreadable"),C5e(),!1):(jon(n),Srn(),!0)}var eA;window.addEventListener("vite:preloadError",(e=>{const n=e;BCt(n.payload)&&n.preventDefault()})),window.addEventListener("unhandledrejection",(e=>{(function(n){const i=String(n?.message??n??"");return w9s.some((r=>i.includes(r)))})(e.reason)&&BCt(e.reason)})),(async function(){try{if(S9s())return void(async function(){const i=await rCt();typeof i=="string"&&i.length>0&&!TCt(i)&&X8e("refresh-untrusted-payload")})().catch((()=>{}));const e=await rCt(),n=von(e,Son+Ul);jon(JSON.parse(n)),TCt(e)||X8e("network-untrusted-payload"),Srn()}catch(e){console.error("Error initializing app:",e)}})(),typeof window>"u"?Promise.resolve(!1):PCt!==null||(PCt=new Promise((e=>{if(A5e)return void e(!0);const n=()=>{A5e?e(!0):(A5e=!0,new Promise(((r,s)=>{if(document.getElementById(OCt))return void r();const l=document.createElement("script");l.id=OCt,l.src=MCt,l.async=!0,l.onload=()=>r(),l.onerror=()=>s(new Error(`Failed to load HubSpot script: ${MCt}`)),document.body.appendChild(l)})).then((()=>{e(!0)})).catch((r=>{console.error("Error loading third-party scripts:",r),e(!0)})))},i=()=>{var r,s;r=()=>{setTimeout(n,7e3)},s=3e3,"requestIdleCallback"in window?window.requestIdleCallback(r,{timeout:s}):setTimeout(r,50)};document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}))),(function(){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",(()=>{var e;a9s?(e=$Ct,fetch(e,{headers:{"Service-Worker":"script"}}).then((n=>{const i=n.headers.get("content-type");n.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then((r=>{r.unregister().then((()=>window.location.reload()))})):ECt(e)})).catch((()=>{console.log("No internet connection found. App is running in offline mode.")}))):ECt($Ct)}))}})(),(eA=console.log)&&eA instanceof Function&&jd((async()=>{const{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}=await import("./web-vitals-BX1IdLuJ.js");return{onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s}}),[]).then((({onCLS:e,onINP:n,onFCP:i,onLCP:r,onTTFB:s})=>{e(eA),n(eA),i(eA),r(eA),s(eA)}));export{fe as $,I6s as A,c$e as B,L6s as C,Hks as D,o as E,W9s as F,se as G,dm as H,mYi as I,Ln as J,R3a as K,Uon as L,Ul as M,_bs as N,U9s as O,Bks as P,M8s as Q,Ni as R,ows as S,CCt as T,T8s as U,Wve as V,Zs as W,rws as X,Kn as Y,z9s as Z,Cci as _,Jje as a,UAs as a$,yAs as a0,Efi as a1,Lks as a2,bAs as a3,wAs as a4,q6s as a5,Ive as a6,Hbs as a7,sqo as a8,R as a9,Fko as aA,aws as aB,ZCs as aC,KCs as aD,r5 as aE,EGt as aF,JCs as aG,_9s as aH,Jee as aI,$6s as aJ,YAs as aK,GAs as aL,D8s as aM,$As as aN,MCs as aO,RCs as aP,oke as aQ,DAs as aR,IAs as aS,FCs as aT,OCs as aU,I8s as aV,hOt as aW,pks as aX,QAs as aY,HAs as aZ,WAs as a_,CAs as aa,lks as ab,Kx as ac,P as ad,N9s as ae,iAs as af,z8s as ag,eAs as ah,iws as ai,Eks as aj,lws as ak,f6s as al,srn as am,Mks as an,b6s as ao,x6s as ap,Oks as aq,Y8s as ar,Bp as as,qje as at,pCt as au,uSs as av,Svs as aw,Di as ax,LCs as ay,TCs as az,sbs as b,dCs as b$,nws as b0,Tks as b1,tws as b2,ECs as b3,qCs as b4,Vi as b5,Q_n as b6,tAs as b7,_8o as b8,sws as b9,Z9s as bA,pSs as bB,PCs as bC,X9s as bD,e8s as bE,J9s as bF,bD as bG,EAs as bH,Gws as bI,Kws as bJ,qws as bK,Wws as bL,Uws as bM,Zws as bN,AAs as bO,Qws as bP,Yws as bQ,Xws as bR,Ps as bS,KAs as bT,vAs as bU,sCs as bV,rCs as bW,Aks as bX,YCs as bY,fks as bZ,uCs as b_,zEi as ba,qNt as bb,kAs as bc,SAs as bd,jAs as be,O8s as bf,In as bg,ba as bh,orn as bi,e5 as bj,Dks as bk,N6s as bl,Q8s as bm,G8s as bn,JAs as bo,Zje as bp,Y7s as bq,L8s as br,HMi as bs,zBt as bt,cws as bu,S6s as bv,lCs as bw,K9s as bx,t8s as by,zAe as bz,NFt as c,UCs as c$,vCs as c0,ACs as c1,$Cs as c2,jCs as c3,eCs as c4,tCs as c5,XCs as c6,nAs as c7,nCs as c8,iCs as c9,xSs as cA,sks as cB,ASs as cC,nks as cD,ESs as cE,lt as cF,CSs as cG,zi as cH,qSs as cI,vSs as cJ,$Ss as cK,KSs as cL,zSs as cM,NSs as cN,_Ss as cO,RSs as cP,VSs as cQ,FSs as cR,qbs as cS,r8s as cT,ICs as cU,DCs as cV,hSs as cW,aCs as cX,jks as cY,xks as cZ,_Cs as c_,oCs as ca,kCs as cb,SCs as cc,iks as cd,tks as ce,SSs as cf,LSs as cg,kSs as ch,fSs as ci,bSs as cj,ZSs as ck,ISs as cl,WSs as cm,QSs as cn,USs as co,wSs as cp,jSs as cq,aks as cr,oks as cs,rks as ct,JSs as cu,DSs as cv,eks as cw,XSs as cx,TSs as cy,HSs as cz,vl as d,$ks as d$,VCs as d0,H9s as d1,zCs as d2,NCs as d3,Dve as d4,WCs as d5,GCs as d6,E0s as d7,N2s as d8,Wxe as d9,XAs as dA,ovs as dB,fvs as dC,i8s as dD,o8s as dE,yvs as dF,mvs as dG,hvs as dH,tvs as dI,gvs as dJ,qAs as dK,hga as dL,sSs as dM,dSs as dN,gSs as dO,mSs as dP,cks as dQ,rls as dR,Y9s as dS,mks as dT,hks as dU,Qks as dV,yKi as dW,BCs as dX,Ndi as dY,nk as dZ,Men as d_,vks as da,Sks as db,kks as dc,Cks as dd,F8s as de,Rqt as df,uvs as dg,dvs as dh,lvs as di,pvs as dj,cvs as dk,yks as dl,svs as dm,avs as dn,xvs as dp,evs as dq,ivs as dr,n8s as ds,HCs as dt,cr as du,xGr as dv,nvs as dw,lrn as dx,ZAs as dy,rvs as dz,Zbs as e,Bxo as e0,uks as e1,cCs as e2,gks as e3,ols as e4,oSs as e5,vvs as e6,Avs as e7,Cvs as e8,o6s as e9,r6s as ea,XR as eb,k6s as ec,B6s as ed,Don as ee,_6s as ef,Zye as eg,eon as eh,Xin as ei,Q9s as ej,t6s as ek,i6s as el,n6s as em,H7s as en,J7s as eo,Eon as ep,Pks as eq,s$e as f,Wks as g,Uks as h,Rks as i,Wt as j,Gm as k,ST as l,v as m,Vks as n,_ks as o,es as p,Nks as q,T6s as r,PBi as s,yb as t,t$e as u,Fks as v,drn as w,Iks as x,zks as y,Tr as z};
|