@zeniai/web-cockpit-ui 2.0.60-dev → 2.0.60-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.
@@ -1,4 +1,4 @@
1
- import{j as s}from"./liveblocks-DZkCH2xN.js";import{u as j,P as v}from"./ScreenRoutes-BNe9KhJx.js";import{a as f}from"./sentry-DPjqAmgS.js";import{i as P,n as U,g as m,h as k,k as A,l as C,N as R}from"./core-jCXGTQvA.js";import{Ib as T,Ic as N,jL as E,Id as M,kg as L,kj as _,k2 as $,Ie as F,If as O,kd as B,k9 as q}from"./zeni-epic-state-C-CH5wAG.js";import{z as Q,_ as V,D as J,e as Z,a0 as G,F as H,Q as K,b as W,g as X,h as Y}from"./index-DStLthID.js";import{n as ee}from"./mui-Dplz67jq.js";import"./recharts-DADINQF-.js";import"./analyticsHelper-DJTBo0IK.js";import"./utils-BSshncBl.js";import"./empty-tmoYB8lV.js";import"./index-DgTg_FC9.js";import"./url-C3rUOUId.js";import"./index-D6plUv8O.js";import"./analytics-bLGoMt_1.js";import"./lottie-DUyJu0pd.js";import"./lexical-LPziZn5A.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="8eb96a01-5a80-4714-bd8d-727f6ee74ac1",a._sentryDebugIdIdentifier="sentry-dbid-8eb96a01-5a80-4714-bd8d-727f6ee74ac1")}catch{}})();function te(a,t){return{headerData:{allTabOptions:H,selectedTabOption:K("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(O())},onUIStateChange:n=>{a(F(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=k(te,ne)(G),oe=ee.div`
1
+ import{j as s}from"./liveblocks-DZkCH2xN.js";import{u as j,P as v}from"./ScreenRoutes-DJbaAuJs.js";import{a as f}from"./sentry-DPjqAmgS.js";import{i as P,n as U,g as m,h as k,k as A,l as C,N as R}from"./core-jCXGTQvA.js";import{Ib as T,Ic as N,jL as E,Id as M,kg as L,kj as _,k2 as $,Ie as F,If as O,kd as B,k9 as q}from"./zeni-epic-state-C-CH5wAG.js";import{z as Q,_ as V,D as J,e as Z,a0 as G,F as H,Q as K,b as W,g as X,h as Y}from"./index-2QktT_hq.js";import{n as ee}from"./mui-Dplz67jq.js";import"./recharts-DADINQF-.js";import"./analyticsHelper-CnH4hQBr.js";import"./utils-BSshncBl.js";import"./empty-tmoYB8lV.js";import"./index-DgTg_FC9.js";import"./url-C3rUOUId.js";import"./index-D6plUv8O.js";import"./analytics-bLGoMt_1.js";import"./lottie-DUyJu0pd.js";import"./lexical-LPziZn5A.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="8eb96a01-5a80-4714-bd8d-727f6ee74ac1",a._sentryDebugIdIdentifier="sentry-dbid-8eb96a01-5a80-4714-bd8d-727f6ee74ac1")}catch{}})();function te(a,t){return{headerData:{allTabOptions:H,selectedTabOption:K("creditAgent")},creditAgentPageData:{macroData:{data:t.macroCombined.data,fetchState:t.macroCombined.fetchStatus.fetchState,updateState:t.macroCombined.updateStatus.fetchState},cardProfilesData:t.cardProfilesData}}}function ne(a,t){return{headerActions:{onTabChange:n=>{const g=Y(n),c=X(n);W.trackCockpitTabClicked(c),t.navigate(`../../${g}`,{replace:!0})}},creditAgentPageActions:{onFetchMacro:()=>{a(q())},onSaveMacro:n=>{a(B(n))},onResetSaveMacro:()=>{a(O())},onUIStateChange:n=>{a(F(n))},cardProfilesActions:t.cardProfilesActions}}}const ae=k(te,ne)(G),oe=ee.div`
2
2
  padding: ${Z.sp5};
3
3
  text-align: center;
4
4
  `;function re(){const a=P(),t=U(),n=m(T),g=m(N),[c,h]=f.useState(new Set),p=f.useRef(new Set),b=m(e=>e.tenantState.currentTenantId),y=m(e=>e.companyViewState.zeniUsers.fetchState);f.useEffect(()=>{y==="Not-Started"&&t(E())},[t,y]);const d=Q.getSignedInUser(),I=d!=null&&[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,w=f.useMemo(()=>({onFetch:()=>{t($())},onUpdateProfile:(e,o,r)=>{const i=r.updatedByName??I;t(_({tenantId:o,tenantEmailDomain:e,update:{...r,updatedByName:i}}))},onAnalyse:e=>{h(o=>new Set(o).add(e)),t(L(e))},onDownloadReport:()=>{const e=M(n.rows),o=d?.userId??"",r=d?.zeniSessionId??"",i=b??"";if(!o||!r||!i)return;const x=encodeURIComponent(JSON.stringify(e)),D=`${V}/tableDownload?query=${x}`;fetch(D,{headers:{"zeni-user-id":o,"zeni-session-id":r,"zeni-tenant-id":i}}).then(async l=>{if(!l.ok){const u=await l.text();throw new Error(`Download failed: ${l.status} ${u}`)}return l.blob()}).then(l=>{const u=URL.createObjectURL(l),S=document.createElement("a");S.href=u,S.download=`${e.file_name}.xlsx`,S.click(),URL.revokeObjectURL(u)}).catch(()=>{})}}),[t,I,d,b,n.rows]);f.useEffect(()=>{if(c.size===0)return;const e=new Set;for(const o of c){const r=n.rows.find(i=>i.tenantId===o);r!=null&&r.isAnalyzing?p.current.add(o):r!=null&&!r.isAnalyzing&&p.current.has(o)&&(e.add(o),p.current.delete(o))}e.size>0&&h(o=>{const r=new Set(o);for(const i of e)r.delete(i);return r})},[n.rows,c]);const z=f.useMemo(()=>({fetchState:n.fetchStatus.fetchState,rows:n.rows.map(e=>e.isAnalyzing||e.tenantId!=null&&c.has(e.tenantId)?{...e,isAnalyzing:!0}:e),uiState:n.uiState}),[n,c]);return d==null?s.jsx(oe,{children:J.getLocalizedStrings().cockpit.creditAgent.notSignedIn}):s.jsx(ae,{macroCombined:g,navigate:a,cardProfilesActions:w,cardProfilesData:z})}function we(){const{isAllowed:a,isLoading:t}=j();return t?null:a?s.jsx(A,{children:s.jsx(C,{path:"/*",element:s.jsx(v,{element:s.jsx(re,{})})})}):s.jsx(A,{children:s.jsx(C,{path:"/*",element:s.jsx(R,{to:"/management",replace:!0})})})}export{we as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-OU2cQ56o.js","assets/liveblocks-DZkCH2xN.js","assets/sentry-DPjqAmgS.js","assets/core-jCXGTQvA.js","assets/recharts-DADINQF-.js","assets/zeni-epic-state-C-CH5wAG.js","assets/index-DStLthID.js","assets/mui-Dplz67jq.js","assets/analytics-bLGoMt_1.js","assets/lottie-DUyJu0pd.js","assets/lexical-LPziZn5A.js","assets/utils-BSshncBl.js","assets/index-xQ8260uf.css","assets/analyticsHelper-DJTBo0IK.js","assets/empty-tmoYB8lV.js","assets/index-DgTg_FC9.js","assets/url-C3rUOUId.js","assets/index-D6plUv8O.js"])))=>i.map(i=>d[i]);
2
- import{Hm as Lf,Hn as qf,jJ as It,ex as vs,Ho as Dt,eG as nn,ev as Df,Hp as Jt,eC as on,Hq as sd,Hr as ud,Hs as ur,Ht as cd,il as Nf,jL as Ct,ii as ld,iq as Mf,Hu as ys,is as fd,it as hd,Hv as wr,Hw as cr,hP as dd,Hx as hn,Hy as Vo,d3 as pd,fP as $o,fM as sn,fU as Mt,fS as md,Hz as Ff,HA as Bf,iH as gd,iE as vd,HB as yd,iS as _d,iN as _s,iK as bd,iz as wd,HC as Ed,ed as Sd,da as Rd,jX as Uf,HD as Od,be as an,iw as bs,iB as Td,rc as Vf,jK as dn,HE as pt,j5 as Go,HF as xd,k1 as Ad,H as et,bk as zo,HG as Id,hM as Cd,HH as Pd,HI as $f,HJ as kd,pM as ws,ph as jd,HK as Ld,pn as xn,HL as qd,pp as Dd,HM as Tt,pe as Nd,cT as Md,jO as Gf,jP as zf,jN as Ho,jM as Zo,jQ as Fd,HN as Bd,pP as Ud,HO as Vd,pw as $d,pJ as Gd,HP as zd,pA as Hd,HQ as Zd,HR as Kt,HS as Yo,HT as Yd,HU as Wd,oi as Jd,oo as Hf,HV as Zf,hh as Kd,Go as Yf,HW as Xd,Gi as Qd,HX as ep,HY as tp,or as rp,HZ as np,Gt as ip,Gh as ap,sY as Wf,H_ as An,H$ as Jf,D7 as Wo,CV as op,Da as Kf,CY as sp,I0 as up,D1 as cp,CP as lp,CS as fp,I1 as hp,De as dp,D4 as pp,bn as mp,bd as gp,I2 as vp,I3 as Gt,I4 as yp,I5 as _p,I6 as bp,iW as Mo,j0 as wp,ba as Xf}from"./zeni-epic-state-C-CH5wAG.js";import{j as U}from"./liveblocks-DZkCH2xN.js";import{a as fe,p as ye,e as Qf,d as eh,g as Ep}from"./sentry-DPjqAmgS.js";import{n as wt,$ as xt,z as He,F as Sp,t as Rp,J as lr,m as Ft,X as Op,Q as Et,a as th,w as at,b as Ve,h as Pt,g as Bt,o as Tp,u as xp,c as Ap,K as Ip,d as pn,H as Cp,D as fr,M as mn,e as Nt,r as Pp,G as kp,f as gn,i as jp,j as Lp,k as In,R as qp,V as rh,s as Dp,l as nh,P as ih,p as Fo,q as Np,v as Mp,x as Fp,y as ah,A as Bp,B as Up,L as Vp,C as $p,E as Gp,I as zp,Z as Hp,N as Zp,O as Yp,Y as Wp,S as Jp,U as Kp,T as oh}from"./index-DStLthID.js";import{f as Xp}from"./analyticsHelper-DJTBo0IK.js";import{i as Fe,n as Ye,g as Se,o as ot,N as ir,k as gt,l as Te,p as sh,h as Ge,u as Jo,j as Bo}from"./core-jCXGTQvA.js";import{D as hr,n as tt,S as Ht}from"./mui-Dplz67jq.js";import{a as Ze,b as Qp,c as em,d as tm,e as Ko,f as rm,g as nm,h as im,i as Zt,j as am,k as or,l as vn,m as om,n as dr,o as sm}from"./utils-BSshncBl.js";import{r as Xo}from"./empty-tmoYB8lV.js";import{r as pr,a as um}from"./index-DgTg_FC9.js";import{r as cm}from"./index-D6plUv8O.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]="d6128187-dad6-4640-9f16-536be3863ec7",e._sentryDebugIdIdentifier="sentry-dbid-d6128187-dad6-4640-9f16-536be3863ec7")}catch{}})();var Cn={},Es;function yn(){return Es||(Es=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var h in s)o(s,h)&&(t[h]=s[h])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,h,f){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+h),f);return}for(var l=0;l<h;l++)t[f+l]=r[s+l]},flattenChunks:function(t){var r,s,h,f,l,d;for(h=0,r=0,s=t.length;r<s;r++)h+=t[r].length;for(d=new Uint8Array(h),f=0,r=0,s=t.length;r<s;r++)l=t[r],d.set(l,f),f+=l.length;return d}},a={arraySet:function(t,r,s,h,f){for(var l=0;l<h;l++)t[f+l]=r[s+l]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(Cn)),Cn}var ut={},kt={},Ss;function lm(){if(Ss)return kt;Ss=1;var e=yn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,h=2,f=3,l=258,d=29,c=256,b=c+1+d,m=30,y=19,g=2*b+1,u=15,_=16,E=7,v=256,w=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],N=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var q=new Array(S);t(q);var G=new Array(l-f+1);t(G);var P=new Array(d);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Z,this.has_stree=I&&I.length}var B,Y,H;function V(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function D(I){return I<256?q[I]:q[256+(I>>>7)]}function F(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function $(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,F(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){$(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(F(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,z,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,z=0,te>=oe&&(z=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+z),ie&&(I.static_len+=ee*(Z[te*2+1]+z)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Z,ie=new Array(u+1);for(se=0,le=0;le<d-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)G[se++]=le;for(G[se-1]=le,Z=0,le=0;le<16;le++)for(j[le]=Z,I=0;I<1<<N[le];I++)q[Z++]=le;for(Z>>=7;le<m;le++)for(j[le]=Z<<7,I=0;I<1<<N[le]-7;I++)q[256+Z++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,b+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);B=new k(R,C,c+1,b,u),Y=new k(L,N,0,m,u),H=new k(new Array(0),W,0,y,E)}function we(I){var ne;for(ne=0;ne<b;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?F(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),F(I,se),F(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,le,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Z,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Z,ne):(T=G[Z],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],$(I,Z,oe)),le--,T=D(le),X(I,T,se),oe=N[T],oe!==0&&(le-=j[T],$(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function $e(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[w*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(I,ie,I.bl_tree),oe--),X(I,w,I.bl_tree),$(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),$(I,oe-3,3)):(X(I,O,I.bl_tree),$(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function Ne(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),$e(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[M[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function We(I,ne,se,le){var Z;for($(I,ne-257,5),$(I,se-1,5),$(I,le-4,4),Z=0;Z<le;Z++)$(I,I.bl_tree[M[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new V(I.dyn_ltree,B),I.d_desc=new V(I.dyn_dtree,Y),I.bl_desc=new V(I.bl_tree,H),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){$(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){$(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Z,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),$e(I,I.l_desc),$e(I,I.d_desc),T=Ne(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Z?($(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):($(I,(h<<1)+(le?1:0),3),We(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(G[se]+c+1)*2]++,I.dyn_dtree[D(ne)*2]++),I.last_lit===I.lit_bufsize-1}return kt._tr_init=ce,kt._tr_stored_block=ge,kt._tr_flush_block=Re,kt._tr_tally=Oe,kt._tr_align=he,kt}var Pn,Rs;function uh(){if(Rs)return Pn;Rs=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Pn=e,Pn}var kn,Os;function ch(){if(Os)return kn;Os=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,h=r+t;i^=-1;for(var f=r;f<h;f++)i=i>>>8^s[(i^a[f])&255];return i^-1}return kn=o,kn}var jn,Ts;function fm(){return Ts||(Ts=1,jn={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),jn}var xs;function hm(){if(xs)return ut;xs=1;var e=yn(),n=lm(),o=uh(),i=ch(),a=fm(),t=0,r=1,s=3,h=4,f=5,l=0,d=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,w=2,x=8,O=9,C=15,N=8,W=29,M=256,S=M+1+W,R=30,L=19,q=2*S+1,G=15,P=3,j=258,k=j+P+1,B=32,Y=42,H=69,V=73,D=91,F=103,$=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var z=p.avail_in;return z>A&&(z=A),z===0?0:(p.avail_in-=z,e.arraySet(te,p.input,p.next_in,z,re),p.state.wrap===1?p.adler=o(p.adler,te,z,re):p.state.wrap===2&&(p.adler=i(p.adler,te,z,re)),p.next_in+=z,p.total_in+=z,z)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,z,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],Je=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(z=te,!(xe[z+_e]!==Je||xe[z+_e-1]!==Be||xe[z]!==xe[A]||xe[++z]!==xe[A+1])){A+=2,z++;do;while(xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],Je=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function Ne(p){var te=p.w_size,re,A,z,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do z=p.head[--re],p.head[re]=z>=te?z-te:0;while(--A);A=te,re=A;do z=p.prev[--re],p.prev[re]=z>=te?z-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function We(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Ne(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(Ne(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,z;;){if(p.lookahead<k){if(Ne(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){z=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=z&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,z,ee,_e=p.window;;){if(p.lookahead<=j){if(Ne(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(z=p.strstart-1,A=_e[z],A===_e[++z]&&A===_e[++z]&&A===_e[++z])){ee=p.strstart+j;do;while(A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&z<ee);p.match_length=j-(ee-z),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,z){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=z}var Re;Re=[new he(0,0,0,0,We),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(q*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(G+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=w,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?Y:$,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),l)}function se(p){var te=ne(p);return te===l&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,l)}function Z(p,te,re,A,z,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),z<1||z>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=z+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<z+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,N,v)}function T(p,te){var re,A,z,ee;if(!p||!p.state||te>f||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==h)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===Y)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=H):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=$);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=B),_e+=31-_e%31,A.status=$,$e(A,_e),A.strstart!==0&&($e(A,p.adler>>>16),$e(A,p.adler&65535)),p.adler=1}if(A.status===H)if(A.gzhead.extra){for(z=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),je(p),z=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=V)}else A.status=V;if(A.status===V)if(A.gzhead.name){z=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),je(p),z=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),ee===0&&(A.gzindex=0,A.status=D)}else A.status=D;if(A.status===D)if(A.gzhead.comment){z=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),je(p),z=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),ee===0&&(A.status=F)}else A.status=F;if(A.status===F&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=$)):A.status=$),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,l}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==h)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),l;if(pe===ae&&(te===r?n._tr_align(A):te!==f&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,l}return te!==h?l:A.wrap<=0?d:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):($e(A,p.adler>>>16),$e(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?l:d)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==Y&&te!==H&&te!==V&&te!==D&&te!==F&&te!==$&&te!==X?we(p,c):(p.state=null,te===$?we(p,b):l))}function be(p,te){var re=te.length,A,z,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==Y||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(A);A.lookahead>=P;){z=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[z+P-1])&A.hash_mask,A.prev[z&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=z,z++;while(--ee);A.strstart=z,A.lookahead=P-1,Ne(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,l}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var Ln,As;function dm(){if(As)return Ln;As=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Ln=e,Ln}var it={},qn,Is;function pm(){if(Is)return qn;Is=1;var e=30,n=12;return qn=function(i,a){var t,r,s,h,f,l,d,c,b,m,y,g,u,_,E,v,w,x,O,C,N,W,M,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),h=i.next_out,R=i.output,f=h-(a-i.avail_out),l=h+(i.avail_out-257),d=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,w=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[h++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=E[g&w];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(N=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),N+=g&(1<<O)-1,N>d){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=h-f,N>O){if(O=N-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(W=0,M=y,m===0){if(W+=c-O,O<C){C-=O;do R[h++]=y[W++];while(--O);W=h-N,M=R}}else if(m<O){if(W+=c+m-O,O-=m,O<C){C-=O;do R[h++]=y[W++];while(--O);if(W=0,m<C){O=m,C-=O;do R[h++]=y[W++];while(--O);W=h-N,M=R}}}else if(W+=m-O,O<C){C-=O;do R[h++]=y[W++];while(--O);W=h-N,M=R}for(;C>2;)R[h++]=M[W++],R[h++]=M[W++],R[h++]=M[W++],C-=3;C&&(R[h++]=M[W++],C>1&&(R[h++]=M[W++]))}else{W=h-N;do R[h++]=R[W++],R[h++]=R[W++],R[h++]=R[W++],C-=3;while(C>2);C&&(R[h++]=R[W++],C>1&&(R[h++]=R[W++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&h<l);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=h,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=h<l?257+(l-h):257-(h-l),t.hold=g,t.bits=u},qn}var Dn,Cs;function mm(){if(Cs)return Dn;Cs=1;var e=yn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Dn=function(c,b,m,y,g,u,_,E){var v=E.bits,w=0,x=0,O=0,C=0,N=0,W=0,M=0,S=0,R=0,L=0,q,G,P,j,k,B=null,Y=0,H,V=new e.Buf16(n+1),D=new e.Buf16(n+1),F=null,$=0,X,K,ae;for(w=0;w<=n;w++)V[w]=0;for(x=0;x<y;x++)V[b[m+x]]++;for(N=v,C=n;C>=1&&V[C]===0;C--);if(N>C&&(N=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&V[O]===0;O++);for(N<O&&(N=O),S=1,w=1;w<=n;w++)if(S<<=1,S-=V[w],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(D[1]=0,w=1;w<n;w++)D[w+1]=D[w]+V[w];for(x=0;x<y;x++)b[m+x]!==0&&(_[D[b[m+x]]++]=x);if(c===a?(B=F=_,H=19):c===t?(B=s,Y-=257,F=h,$-=257,H=256):(B=f,F=l,H=-1),L=0,x=0,w=O,k=u,W=N,M=0,P=-1,R=1<<N,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=w-M,_[x]<H?(K=0,ae=_[x]):_[x]>H?(K=F[$+_[x]],ae=B[Y+_[x]]):(K=96,ae=0),q=1<<w-M,G=1<<W,O=G;do G-=q,g[k+(L>>M)+G]=X<<24|K<<16|ae|0;while(G!==0);for(q=1<<w-1;L&q;)q>>=1;if(q!==0?(L&=q-1,L+=q):L=0,x++,--V[w]===0){if(w===C)break;w=b[m+_[x]]}if(w>N&&(L&j)!==P){for(M===0&&(M=N),k+=O,W=w-M,S=1<<W;W+M<C&&(S-=V[W+M],!(S<=0));)W++,S<<=1;if(R+=1<<W,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=N<<24|W<<16|k-u|0}}return L!==0&&(g[k+L]=w-M<<24|64<<16|0),E.bits=N,0},Dn}var Ps;function gm(){if(Ps)return it;Ps=1;var e=yn(),n=uh(),o=ch(),i=pm(),a=mm(),t=0,r=1,s=2,h=4,f=5,l=6,d=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,w=3,x=4,O=5,C=6,N=7,W=8,M=9,S=10,R=11,L=12,q=13,G=14,P=15,j=16,k=17,B=18,Y=19,H=20,V=21,D=22,F=23,$=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,d)}function Ne(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function We(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,Ne(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=We(Z,ie),T!==d&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var ce=!0,ge,he;function Re(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,z,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,Je,Xe,_r,br,Me,nt,ze=new e.Buf8(4),yt,ht,gs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=q),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,z=T.hold,ee=T.bits,_e=re,de=A,nt=d;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=q;break}for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&z===35615){T.check=0,ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0),z=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((z&255)<<8)+(z>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if((z&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if(z>>>=4,ee-=4,Me=(z&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=z&512?S:L,z=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(T.flags=z,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=z>>8&1),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0)),z=0,ee=0,T.mode=w;case w:for(;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=z),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,ze[2]=z>>>16&255,ze[3]=z>>>24&255,T.check=o(T.check,ze,4,0)),z=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=z&255,T.head.os=z>>8),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0)),z=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.length=z,T.head&&(T.head.extra_len=z),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0)),z=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=N;case N:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=W;case W:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=M;case M:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(z!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}z=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}Z.adler=T.check=$e(z),z=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=z,T.bits=ee,b;Z.adler=T.check=1,T.mode=L;case L:if(ie===f||ie===l)break e;case q:if(T.last){z>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}switch(T.last=z&1,z>>>=1,ee-=1,z&3){case 0:T.mode=G;break;case 1:if(Re(T),T.mode=H,ie===l){z>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}z>>>=2,ee-=2;break;case G:for(z>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if((z&65535)!==(z>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=z&65535,z=0,ee=0,T.mode=P,ie===l)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(T.nlen=(z&31)+257,z>>>=5,ee-=5,T.ndist=(z&31)+1,z>>>=5,ee-=5,T.ncode=(z&15)+4,z>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=B;case B:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.lens[gs[T.have++]]=z&7,z>>>=3,ee-=3}for(;T.have<19;)T.lens[gs[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=Y;case Y:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[z&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(Je<16)z>>>=Ie,ee-=Ie,T.lens[T.have++]=Je;else{if(Je===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(z>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(z&3),z>>>=2,ee-=2}else if(Je===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Ie,ee-=Ie,Me=0,pe=3+(z&7),z>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Ie,ee-=Ie,Me=0,pe=11+(z&127),z>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=H,ie===l)break e;case H:T.mode=V;case V:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=z,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,z=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[z&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,_r=Be,br=Je;Le=T.lencode[br+((z&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Xe,ee-=Xe,T.back+=Xe}if(z>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Je,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=D;case D:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.length+=z&(1<<T.extra)-1,z>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=F;case F:for(;Le=T.distcode[z&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,_r=Be,br=Je;Le=T.distcode[br+((z&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Xe,ee-=Xe,T.back+=Xe}if(z>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Je,T.extra=Be&15,T.mode=$;case $:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.offset+=z&(1<<T.extra)-1,z>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=V);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=V;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,z|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?z:$e(z))!==T.check){Z.msg="incorrect data check",T.mode=me;break}z=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(z!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}z=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=z,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==h))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===H||T.mode===P?256:0),(_e===0&&de===0||ie===h)&&nt===d&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,d}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,d)}function le(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,d))}return it.inflateReset=Ne,it.inflateReset2=We,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Nn,ks;function vm(){return ks||(ks=1,Nn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Nn}function ym(){const{useDynamicConfig:e}=wt(),{configValue:n,isDynamicConfigLoading:o}=e(xt.creditAgentEnablement),i=He.getSignedInUser()?.userEmail;return{isAllowed:fe.useMemo(()=>{const t=Array.isArray(n?.allowedUserEmails)?n.allowedUserEmails:[];return i!=null&&t.includes(i)},[n,i]),isLoading:o}}function St(){const{isAllowed:e}=ym();return e?Sp:Rp}const _m={overlayWidth:new at(100,100,50)};function js(){const e=Fe(),n=Ye(),o=lr(),i=Ft(),a=St(),t=Se(M=>Lf(M)),r=t.uiState.selectedCustomerTenantId,s=fe.useMemo(()=>r?t.customers.find(M=>M.tenantId===r):void 0,[t.customers,r]),h=Se(M=>r?qf(M.aiAccountantCustomerState,M.userState,r):[]),f=t.customerViewStateByTenantId[r],l=f?.jobsFetchStatus??{fetchState:"Not-Started"},d=f?.jobsPageToken!=null;fe.useEffect(()=>{t.fetchState==="Completed"?n(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&n(vs())},[t.fetchState]);const c=M=>{const S=Pt(M),R=Bt(M);Ve.trackCockpitTabClicked(R),e(`../../${S}`,{replace:!0})},b=(M,S,R,L)=>{n(Dt([M.tenantId])),n(nn(S,R,L))},m=(M,S,R)=>{n(nn(M,S,R))},y=(M,S)=>{n(Dt(t.unonboardedTenantIds)),n(nn("retrain",M,S))},g=M=>{const S=t.selectedTenantIds,R=S.includes(M)?S.filter(L=>L!==M):[...S,M];n(Dt(R))},u=M=>{if(M.length===0)return;const S=t.selectedTenantIds,R=new Set(S);if(M.every(q=>R.has(q))){const q=new Set(M);n(Dt(S.filter(G=>!q.has(G))))}else{const q=Array.from(new Set([...S,...M]));n(Dt(q))}},_=()=>{n(Dt([]))},E=M=>{n(Df(M.companyId,M.tenantId))},v=M=>{M==="aiAccountant"&&n(vs())},w=(M,S)=>{n(Jt({sortKey:M,sortOrder:S}))},x=M=>{n(Jt({selectedCustomerTenantId:M.tenantId})),n(on(M.tenantId))},O=()=>{n(Jt({selectedCustomerTenantId:""}))},C=M=>{n(Jt({filterText:M}))},N=(M,S)=>{n(Jt({filters:S}))},W=()=>{r&&n(on(r,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(Op,{headerData:{allTabOptions:a,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:t},aiAccountantPageActions:{onAction:b,onBulkAction:m,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:v,onColumnSortConfigChanged:w,onCustomerSelected:x,onEvaluateAll:y,onFilterTextChanged:C,onFiltersChange:N,onToggleAllVisible:u,onToggleTenantSelection:g}}),U.jsx(hr,{anchor:"right",open:s!=null,PaperProps:{style:{width:_m.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:s!=null&&U.jsx(th,{customer:s,hasMoreJobs:d,jobs:h,jobsFetchStatus:l,onAction:b,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:W})})]})}function bm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ye(),i=Se(c=>sd(c.aiAccountantCustomerState,c.userState)),a=Se(c=>Lf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>qf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(on(e))},[e,o]),t==null)return null;const h=(c,b,m,y)=>{o(Dt([c.tenantId])),o(nn(b,m,y))},f=c=>{o(Df(c.companyId,c.tenantId))},l=()=>{n("../")},d=()=>{o(on(e,!0))};return U.jsx(th,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:h,onCancelOnboarding:f,onClose:l,onLoadMoreJobs:d})}const lh=(e,n)=>{const o=[...e??[]];return o.push(n),o},wm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Em=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>He.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Sm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(js,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(bm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(js,{})})})]})}const Ut=()=>{const[e,n]=sh(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Tp(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},Rm={overlayWidth:new at(100,100,50)},{common:{strings:Ls}}=fr.getLocalizedStrings();function Om(e,n){return{headerActions:{onTabChange:o=>{const i=Pt(o),a=Bt(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(wr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ve.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Ls.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Ls.comma)}}),e(wr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Mf(o))},onColumnSortConfigChanged:(o,i)=>{e(wr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(wr({uiState:{filters:o}}))}}}}function Tm(e,n){return{healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const xm=Ge(Tm,Om)(Cp);function Mn({isDrawerOpen:e}){const n=Fe(),o=Ye(),i=Ft(),a=lr(),{companyId:t}=ot(),[r,s]=sh(),[h,f]=fe.useState(!1),l=Ut(),d=St(),c=Se(w=>ud(w)),b=Se(w=>ur(w)),{additionalChurnFactors:m}=Se(w=>cd(w)),{selectedCompanyDetail:y,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(w=>w.companyViewState.zeniUsers.fetchState),E=Se(w=>w.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const w=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?o(It(!1)):w(c.fetchState)&&(o(Nf()),w(_)&&o(Ct()),w(E.fetchState)&&o(ld()))},[c.fetchState,E.fetchState]),fe.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Mf(t)),y!=null&&(xp(),Ve.trackCockpitHealthMonitorNotificationAlertClicked({companyId:y.companyInfo.companyId,companyName:y.companyInfo.name,churnProbability:y.companyHealthMetric.churnProbabilityPercentage??null}),f(!0),r.delete("utm_source"),s(r)))},[c.fetchState,y?.companyInfo.companyId,y?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||g!=null&&y!=null?U.jsx(hr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Rm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ys()),children:U.jsx(Ap,{roomId:`cockpit_${g}`,autoConnect:!0,children:U.jsx(Ip,{onSaveClick:()=>{g!=null&&o(hd(g))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&o(fd({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>o(ys()),analytics:Ve,urlSource:h,additionalChurnFactorsOptions:m})})}):null,U.jsx(xm,{headerData:{allTabOptions:d,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:l??void 0,healthView:c,managementView:b,navigate:n,mixpanelHMUrl:pn.mixpanelHMUrl})]})}function Am(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Mn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Mn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Mn,{})})})]})}const Im={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=lr(),r=o?.valuePx(t)??Im.drawerLeftMargin.valuePx(t),s=Ft();return U.jsx(hr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Cm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Pm,{children:U.jsx(mn,{size:"ExtraLarge",start:!0})}):null,Pm=tt.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CreditAgentRoutes-C-R4PrV2.js","assets/liveblocks-DZkCH2xN.js","assets/sentry-DPjqAmgS.js","assets/core-jCXGTQvA.js","assets/recharts-DADINQF-.js","assets/zeni-epic-state-C-CH5wAG.js","assets/index-2QktT_hq.js","assets/mui-Dplz67jq.js","assets/analytics-bLGoMt_1.js","assets/lottie-DUyJu0pd.js","assets/lexical-LPziZn5A.js","assets/utils-BSshncBl.js","assets/index-xQ8260uf.css","assets/analyticsHelper-CnH4hQBr.js","assets/empty-tmoYB8lV.js","assets/index-DgTg_FC9.js","assets/url-C3rUOUId.js","assets/index-D6plUv8O.js"])))=>i.map(i=>d[i]);
2
+ import{Hm as Lf,Hn as qf,jJ as It,ex as vs,Ho as Dt,eG as nn,ev as Df,Hp as Jt,eC as on,Hq as sd,Hr as ud,Hs as ur,Ht as cd,il as Nf,jL as Ct,ii as ld,iq as Mf,Hu as ys,is as fd,it as hd,Hv as wr,Hw as cr,hP as dd,Hx as hn,Hy as Vo,d3 as pd,fP as $o,fM as sn,fU as Mt,fS as md,Hz as Ff,HA as Bf,iH as gd,iE as vd,HB as yd,iS as _d,iN as _s,iK as bd,iz as wd,HC as Ed,ed as Sd,da as Rd,jX as Uf,HD as Od,be as an,iw as bs,iB as Td,rc as Vf,jK as dn,HE as pt,j5 as Go,HF as xd,k1 as Ad,H as et,bk as zo,HG as Id,hM as Cd,HH as Pd,HI as $f,HJ as kd,pM as ws,ph as jd,HK as Ld,pn as xn,HL as qd,pp as Dd,HM as Tt,pe as Nd,cT as Md,jO as Gf,jP as zf,jN as Ho,jM as Zo,jQ as Fd,HN as Bd,pP as Ud,HO as Vd,pw as $d,pJ as Gd,HP as zd,pA as Hd,HQ as Zd,HR as Kt,HS as Yo,HT as Yd,HU as Wd,oi as Jd,oo as Hf,HV as Zf,hh as Kd,Go as Yf,HW as Xd,Gi as Qd,HX as ep,HY as tp,or as rp,HZ as np,Gt as ip,Gh as ap,sY as Wf,H_ as An,H$ as Jf,D7 as Wo,CV as op,Da as Kf,CY as sp,I0 as up,D1 as cp,CP as lp,CS as fp,I1 as hp,De as dp,D4 as pp,bn as mp,bd as gp,I2 as vp,I3 as Gt,I4 as yp,I5 as _p,I6 as bp,iW as Mo,j0 as wp,ba as Xf}from"./zeni-epic-state-C-CH5wAG.js";import{j as U}from"./liveblocks-DZkCH2xN.js";import{a as fe,p as ye,e as Qf,d as eh,g as Ep}from"./sentry-DPjqAmgS.js";import{n as wt,$ as xt,z as He,F as Sp,t as Rp,J as lr,m as Ft,X as Op,Q as Et,a as th,w as at,b as Ve,h as Pt,g as Bt,o as Tp,u as xp,c as Ap,K as Ip,d as pn,H as Cp,D as fr,M as mn,e as Nt,r as Pp,G as kp,f as gn,i as jp,j as Lp,k as In,R as qp,V as rh,s as Dp,l as nh,P as ih,p as Fo,q as Np,v as Mp,x as Fp,y as ah,A as Bp,B as Up,L as Vp,C as $p,E as Gp,I as zp,Z as Hp,N as Zp,O as Yp,Y as Wp,S as Jp,U as Kp,T as oh}from"./index-2QktT_hq.js";import{f as Xp}from"./analyticsHelper-CnH4hQBr.js";import{i as Fe,n as Ye,g as Se,o as ot,N as ir,k as gt,l as Te,p as sh,h as Ge,u as Jo,j as Bo}from"./core-jCXGTQvA.js";import{D as hr,n as tt,S as Ht}from"./mui-Dplz67jq.js";import{a as Ze,b as Qp,c as em,d as tm,e as Ko,f as rm,g as nm,h as im,i as Zt,j as am,k as or,l as vn,m as om,n as dr,o as sm}from"./utils-BSshncBl.js";import{r as Xo}from"./empty-tmoYB8lV.js";import{r as pr,a as um}from"./index-DgTg_FC9.js";import{r as cm}from"./index-D6plUv8O.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]="d6128187-dad6-4640-9f16-536be3863ec7",e._sentryDebugIdIdentifier="sentry-dbid-d6128187-dad6-4640-9f16-536be3863ec7")}catch{}})();var Cn={},Es;function yn(){return Es||(Es=1,function(e){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}e.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var s=r.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var h in s)o(s,h)&&(t[h]=s[h])}}return t},e.shrinkBuf=function(t,r){return t.length===r?t:t.subarray?t.subarray(0,r):(t.length=r,t)};var i={arraySet:function(t,r,s,h,f){if(r.subarray&&t.subarray){t.set(r.subarray(s,s+h),f);return}for(var l=0;l<h;l++)t[f+l]=r[s+l]},flattenChunks:function(t){var r,s,h,f,l,d;for(h=0,r=0,s=t.length;r<s;r++)h+=t[r].length;for(d=new Uint8Array(h),f=0,r=0,s=t.length;r<s;r++)l=t[r],d.set(l,f),f+=l.length;return d}},a={arraySet:function(t,r,s,h,f){for(var l=0;l<h;l++)t[f+l]=r[s+l]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(n)}(Cn)),Cn}var ut={},kt={},Ss;function lm(){if(Ss)return kt;Ss=1;var e=yn(),n=4,o=0,i=1,a=2;function t(I){for(var ne=I.length;--ne>=0;)I[ne]=0}var r=0,s=1,h=2,f=3,l=258,d=29,c=256,b=c+1+d,m=30,y=19,g=2*b+1,u=15,_=16,E=7,v=256,w=16,x=17,O=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],N=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=512,R=new Array((b+2)*2);t(R);var L=new Array(m*2);t(L);var q=new Array(S);t(q);var G=new Array(l-f+1);t(G);var P=new Array(d);t(P);var j=new Array(m);t(j);function k(I,ne,se,le,Z){this.static_tree=I,this.extra_bits=ne,this.extra_base=se,this.elems=le,this.max_length=Z,this.has_stree=I&&I.length}var B,Y,H;function V(I,ne){this.dyn_tree=I,this.max_code=0,this.stat_desc=ne}function D(I){return I<256?q[I]:q[256+(I>>>7)]}function F(I,ne){I.pending_buf[I.pending++]=ne&255,I.pending_buf[I.pending++]=ne>>>8&255}function $(I,ne,se){I.bi_valid>_-se?(I.bi_buf|=ne<<I.bi_valid&65535,F(I,I.bi_buf),I.bi_buf=ne>>_-I.bi_valid,I.bi_valid+=se-_):(I.bi_buf|=ne<<I.bi_valid&65535,I.bi_valid+=se)}function X(I,ne,se){$(I,se[ne*2],se[ne*2+1])}function K(I,ne){var se=0;do se|=I&1,I>>>=1,se<<=1;while(--ne>0);return se>>>1}function ae(I){I.bi_valid===16?(F(I,I.bi_buf),I.bi_buf=0,I.bi_valid=0):I.bi_valid>=8&&(I.pending_buf[I.pending++]=I.bi_buf&255,I.bi_buf>>=8,I.bi_valid-=8)}function ue(I,ne){var se=ne.dyn_tree,le=ne.max_code,Z=ne.stat_desc.static_tree,ie=ne.stat_desc.has_stree,T=ne.stat_desc.extra_bits,oe=ne.stat_desc.extra_base,be=ne.stat_desc.max_length,p,te,re,A,z,ee,_e=0;for(A=0;A<=u;A++)I.bl_count[A]=0;for(se[I.heap[I.heap_max]*2+1]=0,p=I.heap_max+1;p<g;p++)te=I.heap[p],A=se[se[te*2+1]*2+1]+1,A>be&&(A=be,_e++),se[te*2+1]=A,!(te>le)&&(I.bl_count[A]++,z=0,te>=oe&&(z=T[te-oe]),ee=se[te*2],I.opt_len+=ee*(A+z),ie&&(I.static_len+=ee*(Z[te*2+1]+z)));if(_e!==0){do{for(A=be-1;I.bl_count[A]===0;)A--;I.bl_count[A]--,I.bl_count[A+1]+=2,I.bl_count[be]--,_e-=2}while(_e>0);for(A=be;A!==0;A--)for(te=I.bl_count[A];te!==0;)re=I.heap[--p],!(re>le)&&(se[re*2+1]!==A&&(I.opt_len+=(A-se[re*2+1])*se[re*2],se[re*2+1]=A),te--)}}function ve(I,ne,se){var le=new Array(u+1),Z=0,ie,T;for(ie=1;ie<=u;ie++)le[ie]=Z=Z+se[ie-1]<<1;for(T=0;T<=ne;T++){var oe=I[T*2+1];oe!==0&&(I[T*2]=K(le[oe]++,oe))}}function me(){var I,ne,se,le,Z,ie=new Array(u+1);for(se=0,le=0;le<d-1;le++)for(P[le]=se,I=0;I<1<<C[le];I++)G[se++]=le;for(G[se-1]=le,Z=0,le=0;le<16;le++)for(j[le]=Z,I=0;I<1<<N[le];I++)q[Z++]=le;for(Z>>=7;le<m;le++)for(j[le]=Z<<7,I=0;I<1<<N[le]-7;I++)q[256+Z++]=le;for(ne=0;ne<=u;ne++)ie[ne]=0;for(I=0;I<=143;)R[I*2+1]=8,I++,ie[8]++;for(;I<=255;)R[I*2+1]=9,I++,ie[9]++;for(;I<=279;)R[I*2+1]=7,I++,ie[7]++;for(;I<=287;)R[I*2+1]=8,I++,ie[8]++;for(ve(R,b+1,ie),I=0;I<m;I++)L[I*2+1]=5,L[I*2]=K(I,5);B=new k(R,C,c+1,b,u),Y=new k(L,N,0,m,u),H=new k(new Array(0),W,0,y,E)}function we(I){var ne;for(ne=0;ne<b;ne++)I.dyn_ltree[ne*2]=0;for(ne=0;ne<m;ne++)I.dyn_dtree[ne*2]=0;for(ne=0;ne<y;ne++)I.bl_tree[ne*2]=0;I.dyn_ltree[v*2]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ce(I){I.bi_valid>8?F(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function ke(I,ne,se,le){Ce(I),F(I,se),F(I,~se),e.arraySet(I.pending_buf,I.window,ne,se,I.pending),I.pending+=se}function je(I,ne,se,le){var Z=ne*2,ie=se*2;return I[Z]<I[ie]||I[Z]===I[ie]&&le[ne]<=le[se]}function Ae(I,ne,se){for(var le=I.heap[se],Z=se<<1;Z<=I.heap_len&&(Z<I.heap_len&&je(ne,I.heap[Z+1],I.heap[Z],I.depth)&&Z++,!je(ne,le,I.heap[Z],I.depth));)I.heap[se]=I.heap[Z],se=Z,Z<<=1;I.heap[se]=le}function Ee(I,ne,se){var le,Z,ie=0,T,oe;if(I.last_lit!==0)do le=I.pending_buf[I.d_buf+ie*2]<<8|I.pending_buf[I.d_buf+ie*2+1],Z=I.pending_buf[I.l_buf+ie],ie++,le===0?X(I,Z,ne):(T=G[Z],X(I,T+c+1,ne),oe=C[T],oe!==0&&(Z-=P[T],$(I,Z,oe)),le--,T=D(le),X(I,T,se),oe=N[T],oe!==0&&(le-=j[T],$(I,le,oe)));while(ie<I.last_lit);X(I,v,ne)}function $e(I,ne){var se=ne.dyn_tree,le=ne.stat_desc.static_tree,Z=ne.stat_desc.has_stree,ie=ne.stat_desc.elems,T,oe,be=-1,p;for(I.heap_len=0,I.heap_max=g,T=0;T<ie;T++)se[T*2]!==0?(I.heap[++I.heap_len]=be=T,I.depth[T]=0):se[T*2+1]=0;for(;I.heap_len<2;)p=I.heap[++I.heap_len]=be<2?++be:0,se[p*2]=1,I.depth[p]=0,I.opt_len--,Z&&(I.static_len-=le[p*2+1]);for(ne.max_code=be,T=I.heap_len>>1;T>=1;T--)Ae(I,se,T);p=ie;do T=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ae(I,se,1),oe=I.heap[1],I.heap[--I.heap_max]=T,I.heap[--I.heap_max]=oe,se[p*2]=se[T*2]+se[oe*2],I.depth[p]=(I.depth[T]>=I.depth[oe]?I.depth[T]:I.depth[oe])+1,se[T*2+1]=se[oe*2+1]=p,I.heap[1]=p++,Ae(I,se,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1],ue(I,ne),ve(se,be,I.bl_count)}function st(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),ne[(se+1)*2+1]=65535,le=0;le<=se;le++)ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)&&(oe<p?I.bl_tree[ie*2]+=oe:ie!==0?(ie!==Z&&I.bl_tree[ie*2]++,I.bl_tree[w*2]++):oe<=10?I.bl_tree[x*2]++:I.bl_tree[O*2]++,oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4))}function qe(I,ne,se){var le,Z=-1,ie,T=ne[0*2+1],oe=0,be=7,p=4;for(T===0&&(be=138,p=3),le=0;le<=se;le++)if(ie=T,T=ne[(le+1)*2+1],!(++oe<be&&ie===T)){if(oe<p)do X(I,ie,I.bl_tree);while(--oe!==0);else ie!==0?(ie!==Z&&(X(I,ie,I.bl_tree),oe--),X(I,w,I.bl_tree),$(I,oe-3,2)):oe<=10?(X(I,x,I.bl_tree),$(I,oe-3,3)):(X(I,O,I.bl_tree),$(I,oe-11,7));oe=0,Z=ie,T===0?(be=138,p=3):ie===T?(be=6,p=3):(be=7,p=4)}}function Ne(I){var ne;for(st(I,I.dyn_ltree,I.l_desc.max_code),st(I,I.dyn_dtree,I.d_desc.max_code),$e(I,I.bl_desc),ne=y-1;ne>=3&&I.bl_tree[M[ne]*2+1]===0;ne--);return I.opt_len+=3*(ne+1)+5+5+4,ne}function We(I,ne,se,le){var Z;for($(I,ne-257,5),$(I,se-1,5),$(I,le-4,4),Z=0;Z<le;Z++)$(I,I.bl_tree[M[Z]*2+1],3);qe(I,I.dyn_ltree,ne-1),qe(I,I.dyn_dtree,se-1)}function J(I){var ne=4093624447,se;for(se=0;se<=31;se++,ne>>>=1)if(ne&1&&I.dyn_ltree[se*2]!==0)return o;if(I.dyn_ltree[9*2]!==0||I.dyn_ltree[10*2]!==0||I.dyn_ltree[13*2]!==0)return i;for(se=32;se<c;se++)if(I.dyn_ltree[se*2]!==0)return i;return o}var Q=!1;function ce(I){Q||(me(),Q=!0),I.l_desc=new V(I.dyn_ltree,B),I.d_desc=new V(I.dyn_dtree,Y),I.bl_desc=new V(I.bl_tree,H),I.bi_buf=0,I.bi_valid=0,we(I)}function ge(I,ne,se,le){$(I,(r<<1)+(le?1:0),3),ke(I,ne,se)}function he(I){$(I,s<<1,3),X(I,v,R),ae(I)}function Re(I,ne,se,le){var Z,ie,T=0;I.level>0?(I.strm.data_type===a&&(I.strm.data_type=J(I)),$e(I,I.l_desc),$e(I,I.d_desc),T=Ne(I),Z=I.opt_len+3+7>>>3,ie=I.static_len+3+7>>>3,ie<=Z&&(Z=ie)):Z=ie=se+5,se+4<=Z&&ne!==-1?ge(I,ne,se,le):I.strategy===n||ie===Z?($(I,(s<<1)+(le?1:0),3),Ee(I,R,L)):($(I,(h<<1)+(le?1:0),3),We(I,I.l_desc.max_code+1,I.d_desc.max_code+1,T+1),Ee(I,I.dyn_ltree,I.dyn_dtree)),we(I),le&&Ce(I)}function Oe(I,ne,se){return I.pending_buf[I.d_buf+I.last_lit*2]=ne>>>8&255,I.pending_buf[I.d_buf+I.last_lit*2+1]=ne&255,I.pending_buf[I.l_buf+I.last_lit]=se&255,I.last_lit++,ne===0?I.dyn_ltree[se*2]++:(I.matches++,ne--,I.dyn_ltree[(G[se]+c+1)*2]++,I.dyn_dtree[D(ne)*2]++),I.last_lit===I.lit_bufsize-1}return kt._tr_init=ce,kt._tr_stored_block=ge,kt._tr_flush_block=Re,kt._tr_tally=Oe,kt._tr_align=he,kt}var Pn,Rs;function uh(){if(Rs)return Pn;Rs=1;function e(n,o,i,a){for(var t=n&65535|0,r=n>>>16&65535|0,s=0;i!==0;){s=i>2e3?2e3:i,i-=s;do t=t+o[a++]|0,r=r+t|0;while(--s);t%=65521,r%=65521}return t|r<<16|0}return Pn=e,Pn}var kn,Os;function ch(){if(Os)return kn;Os=1;function e(){for(var i,a=[],t=0;t<256;t++){i=t;for(var r=0;r<8;r++)i=i&1?3988292384^i>>>1:i>>>1;a[t]=i}return a}var n=e();function o(i,a,t,r){var s=n,h=r+t;i^=-1;for(var f=r;f<h;f++)i=i>>>8^s[(i^a[f])&255];return i^-1}return kn=o,kn}var jn,Ts;function fm(){return Ts||(Ts=1,jn={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),jn}var xs;function hm(){if(xs)return ut;xs=1;var e=yn(),n=lm(),o=uh(),i=ch(),a=fm(),t=0,r=1,s=3,h=4,f=5,l=0,d=1,c=-2,b=-3,m=-5,y=-1,g=1,u=2,_=3,E=4,v=0,w=2,x=8,O=9,C=15,N=8,W=29,M=256,S=M+1+W,R=30,L=19,q=2*S+1,G=15,P=3,j=258,k=j+P+1,B=32,Y=42,H=69,V=73,D=91,F=103,$=113,X=666,K=1,ae=2,ue=3,ve=4,me=3;function we(p,te){return p.msg=a[te],te}function Ce(p){return(p<<1)-(p>4?9:0)}function ke(p){for(var te=p.length;--te>=0;)p[te]=0}function je(p){var te=p.state,re=te.pending;re>p.avail_out&&(re=p.avail_out),re!==0&&(e.arraySet(p.output,te.pending_buf,te.pending_out,re,p.next_out),p.next_out+=re,te.pending_out+=re,p.total_out+=re,p.avail_out-=re,te.pending-=re,te.pending===0&&(te.pending_out=0))}function Ae(p,te){n._tr_flush_block(p,p.block_start>=0?p.block_start:-1,p.strstart-p.block_start,te),p.block_start=p.strstart,je(p.strm)}function Ee(p,te){p.pending_buf[p.pending++]=te}function $e(p,te){p.pending_buf[p.pending++]=te>>>8&255,p.pending_buf[p.pending++]=te&255}function st(p,te,re,A){var z=p.avail_in;return z>A&&(z=A),z===0?0:(p.avail_in-=z,e.arraySet(te,p.input,p.next_in,z,re),p.state.wrap===1?p.adler=o(p.adler,te,z,re):p.state.wrap===2&&(p.adler=i(p.adler,te,z,re)),p.next_in+=z,p.total_in+=z,z)}function qe(p,te){var re=p.max_chain_length,A=p.strstart,z,ee,_e=p.prev_length,de=p.nice_match,pe=p.strstart>p.w_size-k?p.strstart-(p.w_size-k):0,xe=p.window,vt=p.w_mask,Le=p.prev,Ie=p.strstart+j,Be=xe[A+_e-1],Je=xe[A+_e];p.prev_length>=p.good_match&&(re>>=2),de>p.lookahead&&(de=p.lookahead);do if(z=te,!(xe[z+_e]!==Je||xe[z+_e-1]!==Be||xe[z]!==xe[A]||xe[++z]!==xe[A+1])){A+=2,z++;do;while(xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&xe[++A]===xe[++z]&&A<Ie);if(ee=j-(Ie-A),A=Ie-j,ee>_e){if(p.match_start=te,_e=ee,ee>=de)break;Be=xe[A+_e-1],Je=xe[A+_e]}}while((te=Le[te&vt])>pe&&--re!==0);return _e<=p.lookahead?_e:p.lookahead}function Ne(p){var te=p.w_size,re,A,z,ee,_e;do{if(ee=p.window_size-p.lookahead-p.strstart,p.strstart>=te+(te-k)){e.arraySet(p.window,p.window,te,te,0),p.match_start-=te,p.strstart-=te,p.block_start-=te,A=p.hash_size,re=A;do z=p.head[--re],p.head[re]=z>=te?z-te:0;while(--A);A=te,re=A;do z=p.prev[--re],p.prev[re]=z>=te?z-te:0;while(--A);ee+=te}if(p.strm.avail_in===0)break;if(A=st(p.strm,p.window,p.strstart+p.lookahead,ee),p.lookahead+=A,p.lookahead+p.insert>=P)for(_e=p.strstart-p.insert,p.ins_h=p.window[_e],p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[_e+P-1])&p.hash_mask,p.prev[_e&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=_e,_e++,p.insert--,!(p.lookahead+p.insert<P)););}while(p.lookahead<k&&p.strm.avail_in!==0)}function We(p,te){var re=65535;for(re>p.pending_buf_size-5&&(re=p.pending_buf_size-5);;){if(p.lookahead<=1){if(Ne(p),p.lookahead===0&&te===t)return K;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var A=p.block_start+re;if((p.strstart===0||p.strstart>=A)&&(p.lookahead=p.strstart-A,p.strstart=A,Ae(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-k&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):(p.strstart>p.block_start&&(Ae(p,!1),p.strm.avail_out===0),K)}function J(p,te){for(var re,A;;){if(p.lookahead<k){if(Ne(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),re!==0&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re)),p.match_length>=P)if(A=n._tr_tally(p,p.strstart-p.match_start,p.match_length-P),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=P){p.match_length--;do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else A=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(A&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=p.strstart<P-1?p.strstart:P-1,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function Q(p,te){for(var re,A,z;;){if(p.lookahead<k){if(Ne(p),p.lookahead<k&&te===t)return K;if(p.lookahead===0)break}if(re=0,p.lookahead>=P&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=P-1,re!==0&&p.prev_length<p.max_lazy_match&&p.strstart-re<=p.w_size-k&&(p.match_length=qe(p,re),p.match_length<=5&&(p.strategy===g||p.match_length===P&&p.strstart-p.match_start>4096)&&(p.match_length=P-1)),p.prev_length>=P&&p.match_length<=p.prev_length){z=p.strstart+p.lookahead-P,A=n._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-P),p.lookahead-=p.prev_length-1,p.prev_length-=2;do++p.strstart<=z&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+P-1])&p.hash_mask,re=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);if(p.match_available=0,p.match_length=P-1,p.strstart++,A&&(Ae(p,!1),p.strm.avail_out===0))return K}else if(p.match_available){if(A=n._tr_tally(p,0,p.window[p.strstart-1]),A&&Ae(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return K}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(A=n._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<P-1?p.strstart:P-1,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ce(p,te){for(var re,A,z,ee,_e=p.window;;){if(p.lookahead<=j){if(Ne(p),p.lookahead<=j&&te===t)return K;if(p.lookahead===0)break}if(p.match_length=0,p.lookahead>=P&&p.strstart>0&&(z=p.strstart-1,A=_e[z],A===_e[++z]&&A===_e[++z]&&A===_e[++z])){ee=p.strstart+j;do;while(A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&A===_e[++z]&&z<ee);p.match_length=j-(ee-z),p.match_length>p.lookahead&&(p.match_length=p.lookahead)}if(p.match_length>=P?(re=n._tr_tally(p,1,p.match_length-P),p.lookahead-=p.match_length,p.strstart+=p.match_length,p.match_length=0):(re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++),re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function ge(p,te){for(var re;;){if(p.lookahead===0&&(Ne(p),p.lookahead===0)){if(te===t)return K;break}if(p.match_length=0,re=n._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++,re&&(Ae(p,!1),p.strm.avail_out===0))return K}return p.insert=0,te===h?(Ae(p,!0),p.strm.avail_out===0?ue:ve):p.last_lit&&(Ae(p,!1),p.strm.avail_out===0)?K:ae}function he(p,te,re,A,z){this.good_length=p,this.max_lazy=te,this.nice_length=re,this.max_chain=A,this.func=z}var Re;Re=[new he(0,0,0,0,We),new he(4,4,8,4,J),new he(4,5,16,8,J),new he(4,6,32,32,J),new he(4,4,16,16,Q),new he(8,16,32,32,Q),new he(8,16,128,128,Q),new he(8,32,128,256,Q),new he(32,128,258,1024,Q),new he(32,258,258,4096,Q)];function Oe(p){p.window_size=2*p.w_size,ke(p.head),p.max_lazy_match=Re[p.level].max_lazy,p.good_match=Re[p.level].good_length,p.nice_match=Re[p.level].nice_length,p.max_chain_length=Re[p.level].max_chain,p.strstart=0,p.block_start=0,p.lookahead=0,p.insert=0,p.match_length=p.prev_length=P-1,p.match_available=0,p.ins_h=0}function I(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(q*2),this.dyn_dtree=new e.Buf16((2*R+1)*2),this.bl_tree=new e.Buf16((2*L+1)*2),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(G+1),this.heap=new e.Buf16(2*S+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*S+1),ke(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ne(p){var te;return!p||!p.state?we(p,c):(p.total_in=p.total_out=0,p.data_type=w,te=p.state,te.pending=0,te.pending_out=0,te.wrap<0&&(te.wrap=-te.wrap),te.status=te.wrap?Y:$,p.adler=te.wrap===2?0:1,te.last_flush=t,n._tr_init(te),l)}function se(p){var te=ne(p);return te===l&&Oe(p.state),te}function le(p,te){return!p||!p.state||p.state.wrap!==2?c:(p.state.gzhead=te,l)}function Z(p,te,re,A,z,ee){if(!p)return c;var _e=1;if(te===y&&(te=6),A<0?(_e=0,A=-A):A>15&&(_e=2,A-=16),z<1||z>O||re!==x||A<8||A>15||te<0||te>9||ee<0||ee>E)return we(p,c);A===8&&(A=9);var de=new I;return p.state=de,de.strm=p,de.wrap=_e,de.gzhead=null,de.w_bits=A,de.w_size=1<<de.w_bits,de.w_mask=de.w_size-1,de.hash_bits=z+7,de.hash_size=1<<de.hash_bits,de.hash_mask=de.hash_size-1,de.hash_shift=~~((de.hash_bits+P-1)/P),de.window=new e.Buf8(de.w_size*2),de.head=new e.Buf16(de.hash_size),de.prev=new e.Buf16(de.w_size),de.lit_bufsize=1<<z+6,de.pending_buf_size=de.lit_bufsize*4,de.pending_buf=new e.Buf8(de.pending_buf_size),de.d_buf=1*de.lit_bufsize,de.l_buf=3*de.lit_bufsize,de.level=te,de.strategy=ee,de.method=re,se(p)}function ie(p,te){return Z(p,te,x,C,N,v)}function T(p,te){var re,A,z,ee;if(!p||!p.state||te>f||te<0)return p?we(p,c):c;if(A=p.state,!p.output||!p.input&&p.avail_in!==0||A.status===X&&te!==h)return we(p,p.avail_out===0?m:c);if(A.strm=p,re=A.last_flush,A.last_flush=te,A.status===Y)if(A.wrap===2)p.adler=0,Ee(A,31),Ee(A,139),Ee(A,8),A.gzhead?(Ee(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),Ee(A,A.gzhead.time&255),Ee(A,A.gzhead.time>>8&255),Ee(A,A.gzhead.time>>16&255),Ee(A,A.gzhead.time>>24&255),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(Ee(A,A.gzhead.extra.length&255),Ee(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(p.adler=i(p.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=H):(Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,0),Ee(A,A.level===9?2:A.strategy>=u||A.level<2?4:0),Ee(A,me),A.status=$);else{var _e=x+(A.w_bits-8<<4)<<8,de=-1;A.strategy>=u||A.level<2?de=0:A.level<6?de=1:A.level===6?de=2:de=3,_e|=de<<6,A.strstart!==0&&(_e|=B),_e+=31-_e%31,A.status=$,$e(A,_e),A.strstart!==0&&($e(A,p.adler>>>16),$e(A,p.adler&65535)),p.adler=1}if(A.status===H)if(A.gzhead.extra){for(z=A.pending;A.gzindex<(A.gzhead.extra.length&65535)&&!(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),je(p),z=A.pending,A.pending===A.pending_buf_size));)Ee(A,A.gzhead.extra[A.gzindex]&255),A.gzindex++;A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=V)}else A.status=V;if(A.status===V)if(A.gzhead.name){z=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),je(p),z=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.name.length?ee=A.gzhead.name.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),ee===0&&(A.gzindex=0,A.status=D)}else A.status=D;if(A.status===D)if(A.gzhead.comment){z=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),je(p),z=A.pending,A.pending===A.pending_buf_size)){ee=1;break}A.gzindex<A.gzhead.comment.length?ee=A.gzhead.comment.charCodeAt(A.gzindex++)&255:ee=0,Ee(A,ee)}while(ee!==0);A.gzhead.hcrc&&A.pending>z&&(p.adler=i(p.adler,A.pending_buf,A.pending-z,z)),ee===0&&(A.status=F)}else A.status=F;if(A.status===F&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&je(p),A.pending+2<=A.pending_buf_size&&(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),p.adler=0,A.status=$)):A.status=$),A.pending!==0){if(je(p),p.avail_out===0)return A.last_flush=-1,l}else if(p.avail_in===0&&Ce(te)<=Ce(re)&&te!==h)return we(p,m);if(A.status===X&&p.avail_in!==0)return we(p,m);if(p.avail_in!==0||A.lookahead!==0||te!==t&&A.status!==X){var pe=A.strategy===u?ge(A,te):A.strategy===_?ce(A,te):Re[A.level].func(A,te);if((pe===ue||pe===ve)&&(A.status=X),pe===K||pe===ue)return p.avail_out===0&&(A.last_flush=-1),l;if(pe===ae&&(te===r?n._tr_align(A):te!==f&&(n._tr_stored_block(A,0,0,!1),te===s&&(ke(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),je(p),p.avail_out===0))return A.last_flush=-1,l}return te!==h?l:A.wrap<=0?d:(A.wrap===2?(Ee(A,p.adler&255),Ee(A,p.adler>>8&255),Ee(A,p.adler>>16&255),Ee(A,p.adler>>24&255),Ee(A,p.total_in&255),Ee(A,p.total_in>>8&255),Ee(A,p.total_in>>16&255),Ee(A,p.total_in>>24&255)):($e(A,p.adler>>>16),$e(A,p.adler&65535)),je(p),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?l:d)}function oe(p){var te;return!p||!p.state?c:(te=p.state.status,te!==Y&&te!==H&&te!==V&&te!==D&&te!==F&&te!==$&&te!==X?we(p,c):(p.state=null,te===$?we(p,b):l))}function be(p,te){var re=te.length,A,z,ee,_e,de,pe,xe,vt;if(!p||!p.state||(A=p.state,_e=A.wrap,_e===2||_e===1&&A.status!==Y||A.lookahead))return c;for(_e===1&&(p.adler=o(p.adler,te,re,0)),A.wrap=0,re>=A.w_size&&(_e===0&&(ke(A.head),A.strstart=0,A.block_start=0,A.insert=0),vt=new e.Buf8(A.w_size),e.arraySet(vt,te,re-A.w_size,A.w_size,0),te=vt,re=A.w_size),de=p.avail_in,pe=p.next_in,xe=p.input,p.avail_in=re,p.next_in=0,p.input=te,Ne(A);A.lookahead>=P;){z=A.strstart,ee=A.lookahead-(P-1);do A.ins_h=(A.ins_h<<A.hash_shift^A.window[z+P-1])&A.hash_mask,A.prev[z&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=z,z++;while(--ee);A.strstart=z,A.lookahead=P-1,Ne(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=P-1,A.match_available=0,p.next_in=pe,p.input=xe,p.avail_in=de,A.wrap=_e,l}return ut.deflateInit=ie,ut.deflateInit2=Z,ut.deflateReset=se,ut.deflateResetKeep=ne,ut.deflateSetHeader=le,ut.deflate=T,ut.deflateEnd=oe,ut.deflateSetDictionary=be,ut.deflateInfo="pako deflate (from Nodeca project)",ut}var Ln,As;function dm(){if(As)return Ln;As=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return Ln=e,Ln}var it={},qn,Is;function pm(){if(Is)return qn;Is=1;var e=30,n=12;return qn=function(i,a){var t,r,s,h,f,l,d,c,b,m,y,g,u,_,E,v,w,x,O,C,N,W,M,S,R;t=i.state,r=i.next_in,S=i.input,s=r+(i.avail_in-5),h=i.next_out,R=i.output,f=h-(a-i.avail_out),l=h+(i.avail_out-257),d=t.dmax,c=t.wsize,b=t.whave,m=t.wnext,y=t.window,g=t.hold,u=t.bits,_=t.lencode,E=t.distcode,v=(1<<t.lenbits)-1,w=(1<<t.distbits)-1;e:do{u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=_[g&v];t:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O===0)R[h++]=x&65535;else if(O&16){C=x&65535,O&=15,O&&(u<O&&(g+=S[r++]<<u,u+=8),C+=g&(1<<O)-1,g>>>=O,u-=O),u<15&&(g+=S[r++]<<u,u+=8,g+=S[r++]<<u,u+=8),x=E[g&w];r:for(;;){if(O=x>>>24,g>>>=O,u-=O,O=x>>>16&255,O&16){if(N=x&65535,O&=15,u<O&&(g+=S[r++]<<u,u+=8,u<O&&(g+=S[r++]<<u,u+=8)),N+=g&(1<<O)-1,N>d){i.msg="invalid distance too far back",t.mode=e;break e}if(g>>>=O,u-=O,O=h-f,N>O){if(O=N-O,O>b&&t.sane){i.msg="invalid distance too far back",t.mode=e;break e}if(W=0,M=y,m===0){if(W+=c-O,O<C){C-=O;do R[h++]=y[W++];while(--O);W=h-N,M=R}}else if(m<O){if(W+=c+m-O,O-=m,O<C){C-=O;do R[h++]=y[W++];while(--O);if(W=0,m<C){O=m,C-=O;do R[h++]=y[W++];while(--O);W=h-N,M=R}}}else if(W+=m-O,O<C){C-=O;do R[h++]=y[W++];while(--O);W=h-N,M=R}for(;C>2;)R[h++]=M[W++],R[h++]=M[W++],R[h++]=M[W++],C-=3;C&&(R[h++]=M[W++],C>1&&(R[h++]=M[W++]))}else{W=h-N;do R[h++]=R[W++],R[h++]=R[W++],R[h++]=R[W++],C-=3;while(C>2);C&&(R[h++]=R[W++],C>1&&(R[h++]=R[W++]))}}else if((O&64)===0){x=E[(x&65535)+(g&(1<<O)-1)];continue r}else{i.msg="invalid distance code",t.mode=e;break e}break}}else if((O&64)===0){x=_[(x&65535)+(g&(1<<O)-1)];continue t}else if(O&32){t.mode=n;break e}else{i.msg="invalid literal/length code",t.mode=e;break e}break}}while(r<s&&h<l);C=u>>3,r-=C,u-=C<<3,g&=(1<<u)-1,i.next_in=r,i.next_out=h,i.avail_in=r<s?5+(s-r):5-(r-s),i.avail_out=h<l?257+(l-h):257-(h-l),t.hold=g,t.bits=u},qn}var Dn,Cs;function mm(){if(Cs)return Dn;Cs=1;var e=yn(),n=15,o=852,i=592,a=0,t=1,r=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return Dn=function(c,b,m,y,g,u,_,E){var v=E.bits,w=0,x=0,O=0,C=0,N=0,W=0,M=0,S=0,R=0,L=0,q,G,P,j,k,B=null,Y=0,H,V=new e.Buf16(n+1),D=new e.Buf16(n+1),F=null,$=0,X,K,ae;for(w=0;w<=n;w++)V[w]=0;for(x=0;x<y;x++)V[b[m+x]]++;for(N=v,C=n;C>=1&&V[C]===0;C--);if(N>C&&(N=C),C===0)return g[u++]=1<<24|64<<16|0,g[u++]=1<<24|64<<16|0,E.bits=1,0;for(O=1;O<C&&V[O]===0;O++);for(N<O&&(N=O),S=1,w=1;w<=n;w++)if(S<<=1,S-=V[w],S<0)return-1;if(S>0&&(c===a||C!==1))return-1;for(D[1]=0,w=1;w<n;w++)D[w+1]=D[w]+V[w];for(x=0;x<y;x++)b[m+x]!==0&&(_[D[b[m+x]]++]=x);if(c===a?(B=F=_,H=19):c===t?(B=s,Y-=257,F=h,$-=257,H=256):(B=f,F=l,H=-1),L=0,x=0,w=O,k=u,W=N,M=0,P=-1,R=1<<N,j=R-1,c===t&&R>o||c===r&&R>i)return 1;for(;;){X=w-M,_[x]<H?(K=0,ae=_[x]):_[x]>H?(K=F[$+_[x]],ae=B[Y+_[x]]):(K=96,ae=0),q=1<<w-M,G=1<<W,O=G;do G-=q,g[k+(L>>M)+G]=X<<24|K<<16|ae|0;while(G!==0);for(q=1<<w-1;L&q;)q>>=1;if(q!==0?(L&=q-1,L+=q):L=0,x++,--V[w]===0){if(w===C)break;w=b[m+_[x]]}if(w>N&&(L&j)!==P){for(M===0&&(M=N),k+=O,W=w-M,S=1<<W;W+M<C&&(S-=V[W+M],!(S<=0));)W++,S<<=1;if(R+=1<<W,c===t&&R>o||c===r&&R>i)return 1;P=L&j,g[P]=N<<24|W<<16|k-u|0}}return L!==0&&(g[k+L]=w-M<<24|64<<16|0),E.bits=N,0},Dn}var Ps;function gm(){if(Ps)return it;Ps=1;var e=yn(),n=uh(),o=ch(),i=pm(),a=mm(),t=0,r=1,s=2,h=4,f=5,l=6,d=0,c=1,b=2,m=-2,y=-3,g=-4,u=-5,_=8,E=1,v=2,w=3,x=4,O=5,C=6,N=7,W=8,M=9,S=10,R=11,L=12,q=13,G=14,P=15,j=16,k=17,B=18,Y=19,H=20,V=21,D=22,F=23,$=24,X=25,K=26,ae=27,ue=28,ve=29,me=30,we=31,Ce=32,ke=852,je=592,Ae=15,Ee=Ae;function $e(Z){return(Z>>>24&255)+(Z>>>8&65280)+((Z&65280)<<8)+((Z&255)<<24)}function st(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function qe(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,Z.total_in=Z.total_out=ie.total=0,Z.msg="",ie.wrap&&(Z.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new e.Buf32(ke),ie.distcode=ie.distdyn=new e.Buf32(je),ie.sane=1,ie.back=-1,d)}function Ne(Z){var ie;return!Z||!Z.state?m:(ie=Z.state,ie.wsize=0,ie.whave=0,ie.wnext=0,qe(Z))}function We(Z,ie){var T,oe;return!Z||!Z.state||(oe=Z.state,ie<0?(T=0,ie=-ie):(T=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15))?m:(oe.window!==null&&oe.wbits!==ie&&(oe.window=null),oe.wrap=T,oe.wbits=ie,Ne(Z))}function J(Z,ie){var T,oe;return Z?(oe=new st,Z.state=oe,oe.window=null,T=We(Z,ie),T!==d&&(Z.state=null),T):m}function Q(Z){return J(Z,Ee)}var ce=!0,ge,he;function Re(Z){if(ce){var ie;for(ge=new e.Buf32(512),he=new e.Buf32(32),ie=0;ie<144;)Z.lens[ie++]=8;for(;ie<256;)Z.lens[ie++]=9;for(;ie<280;)Z.lens[ie++]=7;for(;ie<288;)Z.lens[ie++]=8;for(a(r,Z.lens,0,288,ge,0,Z.work,{bits:9}),ie=0;ie<32;)Z.lens[ie++]=5;a(s,Z.lens,0,32,he,0,Z.work,{bits:5}),ce=!1}Z.lencode=ge,Z.lenbits=9,Z.distcode=he,Z.distbits=5}function Oe(Z,ie,T,oe){var be,p=Z.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new e.Buf8(p.wsize)),oe>=p.wsize?(e.arraySet(p.window,ie,T-p.wsize,p.wsize,0),p.wnext=0,p.whave=p.wsize):(be=p.wsize-p.wnext,be>oe&&(be=oe),e.arraySet(p.window,ie,T-oe,be,p.wnext),oe-=be,oe?(e.arraySet(p.window,ie,T-oe,oe,0),p.wnext=oe,p.whave=p.wsize):(p.wnext+=be,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=be))),0}function I(Z,ie){var T,oe,be,p,te,re,A,z,ee,_e,de,pe,xe,vt,Le=0,Ie,Be,Je,Xe,_r,br,Me,nt,ze=new e.Buf8(4),yt,ht,gs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Z||!Z.state||!Z.output||!Z.input&&Z.avail_in!==0)return m;T=Z.state,T.mode===L&&(T.mode=q),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,z=T.hold,ee=T.bits,_e=re,de=A,nt=d;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=q;break}for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(T.wrap&2&&z===35615){T.check=0,ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0),z=0,ee=0,T.mode=v;break}if(T.flags=0,T.head&&(T.head.done=!1),!(T.wrap&1)||(((z&255)<<8)+(z>>8))%31){Z.msg="incorrect header check",T.mode=me;break}if((z&15)!==_){Z.msg="unknown compression method",T.mode=me;break}if(z>>>=4,ee-=4,Me=(z&15)+8,T.wbits===0)T.wbits=Me;else if(Me>T.wbits){Z.msg="invalid window size",T.mode=me;break}T.dmax=1<<Me,Z.adler=T.check=1,T.mode=z&512?S:L,z=0,ee=0;break;case v:for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(T.flags=z,(T.flags&255)!==_){Z.msg="unknown compression method",T.mode=me;break}if(T.flags&57344){Z.msg="unknown header flags set",T.mode=me;break}T.head&&(T.head.text=z>>8&1),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0)),z=0,ee=0,T.mode=w;case w:for(;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.head&&(T.head.time=z),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,ze[2]=z>>>16&255,ze[3]=z>>>24&255,T.check=o(T.check,ze,4,0)),z=0,ee=0,T.mode=x;case x:for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.head&&(T.head.xflags=z&255,T.head.os=z>>8),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0)),z=0,ee=0,T.mode=O;case O:if(T.flags&1024){for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.length=z,T.head&&(T.head.extra_len=z),T.flags&512&&(ze[0]=z&255,ze[1]=z>>>8&255,T.check=o(T.check,ze,2,0)),z=0,ee=0}else T.head&&(T.head.extra=null);T.mode=C;case C:if(T.flags&1024&&(pe=T.length,pe>re&&(pe=re),pe&&(T.head&&(Me=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),e.arraySet(T.head.extra,oe,p,pe,Me)),T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,T.length-=pe),T.length))break e;T.length=0,T.mode=N;case N:if(T.flags&2048){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.name+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=W;case W:if(T.flags&4096){if(re===0)break e;pe=0;do Me=oe[p+pe++],T.head&&Me&&T.length<65536&&(T.head.comment+=String.fromCharCode(Me));while(Me&&pe<re);if(T.flags&512&&(T.check=o(T.check,oe,pe,p)),re-=pe,p+=pe,Me)break e}else T.head&&(T.head.comment=null);T.mode=M;case M:if(T.flags&512){for(;ee<16;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(z!==(T.check&65535)){Z.msg="header crc mismatch",T.mode=me;break}z=0,ee=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),Z.adler=T.check=0,T.mode=L;break;case S:for(;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}Z.adler=T.check=$e(z),z=0,ee=0,T.mode=R;case R:if(T.havedict===0)return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=z,T.bits=ee,b;Z.adler=T.check=1,T.mode=L;case L:if(ie===f||ie===l)break e;case q:if(T.last){z>>>=ee&7,ee-=ee&7,T.mode=ae;break}for(;ee<3;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}switch(T.last=z&1,z>>>=1,ee-=1,z&3){case 0:T.mode=G;break;case 1:if(Re(T),T.mode=H,ie===l){z>>>=2,ee-=2;break e}break;case 2:T.mode=k;break;case 3:Z.msg="invalid block type",T.mode=me}z>>>=2,ee-=2;break;case G:for(z>>>=ee&7,ee-=ee&7;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if((z&65535)!==(z>>>16^65535)){Z.msg="invalid stored block lengths",T.mode=me;break}if(T.length=z&65535,z=0,ee=0,T.mode=P,ie===l)break e;case P:T.mode=j;case j:if(pe=T.length,pe){if(pe>re&&(pe=re),pe>A&&(pe=A),pe===0)break e;e.arraySet(be,oe,p,pe,te),re-=pe,p+=pe,A-=pe,te+=pe,T.length-=pe;break}T.mode=L;break;case k:for(;ee<14;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(T.nlen=(z&31)+257,z>>>=5,ee-=5,T.ndist=(z&31)+1,z>>>=5,ee-=5,T.ncode=(z&15)+4,z>>>=4,ee-=4,T.nlen>286||T.ndist>30){Z.msg="too many length or distance symbols",T.mode=me;break}T.have=0,T.mode=B;case B:for(;T.have<T.ncode;){for(;ee<3;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.lens[gs[T.have++]]=z&7,z>>>=3,ee-=3}for(;T.have<19;)T.lens[gs[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,yt={bits:T.lenbits},nt=a(t,T.lens,0,19,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid code lengths set",T.mode=me;break}T.have=0,T.mode=Y;case Y:for(;T.have<T.nlen+T.ndist;){for(;Le=T.lencode[z&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(Je<16)z>>>=Ie,ee-=Ie,T.lens[T.have++]=Je;else{if(Je===16){for(ht=Ie+2;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(z>>>=Ie,ee-=Ie,T.have===0){Z.msg="invalid bit length repeat",T.mode=me;break}Me=T.lens[T.have-1],pe=3+(z&3),z>>>=2,ee-=2}else if(Je===17){for(ht=Ie+3;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Ie,ee-=Ie,Me=0,pe=3+(z&7),z>>>=3,ee-=3}else{for(ht=Ie+7;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Ie,ee-=Ie,Me=0,pe=11+(z&127),z>>>=7,ee-=7}if(T.have+pe>T.nlen+T.ndist){Z.msg="invalid bit length repeat",T.mode=me;break}for(;pe--;)T.lens[T.have++]=Me}}if(T.mode===me)break;if(T.lens[256]===0){Z.msg="invalid code -- missing end-of-block",T.mode=me;break}if(T.lenbits=9,yt={bits:T.lenbits},nt=a(r,T.lens,0,T.nlen,T.lencode,0,T.work,yt),T.lenbits=yt.bits,nt){Z.msg="invalid literal/lengths set",T.mode=me;break}if(T.distbits=6,T.distcode=T.distdyn,yt={bits:T.distbits},nt=a(s,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,yt),T.distbits=yt.bits,nt){Z.msg="invalid distances set",T.mode=me;break}if(T.mode=H,ie===l)break e;case H:T.mode=V;case V:if(re>=6&&A>=258){Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=z,T.bits=ee,i(Z,de),te=Z.next_out,be=Z.output,A=Z.avail_out,p=Z.next_in,oe=Z.input,re=Z.avail_in,z=T.hold,ee=T.bits,T.mode===L&&(T.back=-1);break}for(T.back=0;Le=T.lencode[z&(1<<T.lenbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(Be&&(Be&240)===0){for(Xe=Ie,_r=Be,br=Je;Le=T.lencode[br+((z&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Xe,ee-=Xe,T.back+=Xe}if(z>>>=Ie,ee-=Ie,T.back+=Ie,T.length=Je,Be===0){T.mode=K;break}if(Be&32){T.back=-1,T.mode=L;break}if(Be&64){Z.msg="invalid literal/length code",T.mode=me;break}T.extra=Be&15,T.mode=D;case D:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.length+=z&(1<<T.extra)-1,z>>>=T.extra,ee-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=F;case F:for(;Le=T.distcode[z&(1<<T.distbits)-1],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if((Be&240)===0){for(Xe=Ie,_r=Be,br=Je;Le=T.distcode[br+((z&(1<<Xe+_r)-1)>>Xe)],Ie=Le>>>24,Be=Le>>>16&255,Je=Le&65535,!(Xe+Ie<=ee);){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}z>>>=Xe,ee-=Xe,T.back+=Xe}if(z>>>=Ie,ee-=Ie,T.back+=Ie,Be&64){Z.msg="invalid distance code",T.mode=me;break}T.offset=Je,T.extra=Be&15,T.mode=$;case $:if(T.extra){for(ht=T.extra;ee<ht;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}T.offset+=z&(1<<T.extra)-1,z>>>=T.extra,ee-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){Z.msg="invalid distance too far back",T.mode=me;break}T.mode=X;case X:if(A===0)break e;if(pe=de-A,T.offset>pe){if(pe=T.offset-pe,pe>T.whave&&T.sane){Z.msg="invalid distance too far back",T.mode=me;break}pe>T.wnext?(pe-=T.wnext,xe=T.wsize-pe):xe=T.wnext-pe,pe>T.length&&(pe=T.length),vt=T.window}else vt=be,xe=te-T.offset,pe=T.length;pe>A&&(pe=A),A-=pe,T.length-=pe;do be[te++]=vt[xe++];while(--pe);T.length===0&&(T.mode=V);break;case K:if(A===0)break e;be[te++]=T.length,A--,T.mode=V;break;case ae:if(T.wrap){for(;ee<32;){if(re===0)break e;re--,z|=oe[p++]<<ee,ee+=8}if(de-=A,Z.total_out+=de,T.total+=de,de&&(Z.adler=T.check=T.flags?o(T.check,be,de,te-de):n(T.check,be,de,te-de)),de=A,(T.flags?z:$e(z))!==T.check){Z.msg="incorrect data check",T.mode=me;break}z=0,ee=0}T.mode=ue;case ue:if(T.wrap&&T.flags){for(;ee<32;){if(re===0)break e;re--,z+=oe[p++]<<ee,ee+=8}if(z!==(T.total&4294967295)){Z.msg="incorrect length check",T.mode=me;break}z=0,ee=0}T.mode=ve;case ve:nt=c;break e;case me:nt=y;break e;case we:return g;case Ce:default:return m}return Z.next_out=te,Z.avail_out=A,Z.next_in=p,Z.avail_in=re,T.hold=z,T.bits=ee,(T.wsize||de!==Z.avail_out&&T.mode<me&&(T.mode<ae||ie!==h))&&Oe(Z,Z.output,Z.next_out,de-Z.avail_out),_e-=Z.avail_in,de-=Z.avail_out,Z.total_in+=_e,Z.total_out+=de,T.total+=de,T.wrap&&de&&(Z.adler=T.check=T.flags?o(T.check,be,de,Z.next_out-de):n(T.check,be,de,Z.next_out-de)),Z.data_type=T.bits+(T.last?64:0)+(T.mode===L?128:0)+(T.mode===H||T.mode===P?256:0),(_e===0&&de===0||ie===h)&&nt===d&&(nt=u),nt}function ne(Z){if(!Z||!Z.state)return m;var ie=Z.state;return ie.window&&(ie.window=null),Z.state=null,d}function se(Z,ie){var T;return!Z||!Z.state||(T=Z.state,(T.wrap&2)===0)?m:(T.head=ie,ie.done=!1,d)}function le(Z,ie){var T=ie.length,oe,be,p;return!Z||!Z.state||(oe=Z.state,oe.wrap!==0&&oe.mode!==R)?m:oe.mode===R&&(be=1,be=n(be,ie,T,0),be!==oe.check)?y:(p=Oe(Z,ie,T,T),p?(oe.mode=we,g):(oe.havedict=1,d))}return it.inflateReset=Ne,it.inflateReset2=We,it.inflateResetKeep=qe,it.inflateInit=Q,it.inflateInit2=J,it.inflate=I,it.inflateEnd=ne,it.inflateGetHeader=se,it.inflateSetDictionary=le,it.inflateInfo="pako inflate (from Nodeca project)",it}var Nn,ks;function vm(){return ks||(ks=1,Nn={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),Nn}function ym(){const{useDynamicConfig:e}=wt(),{configValue:n,isDynamicConfigLoading:o}=e(xt.creditAgentEnablement),i=He.getSignedInUser()?.userEmail;return{isAllowed:fe.useMemo(()=>{const t=Array.isArray(n?.allowedUserEmails)?n.allowedUserEmails:[];return i!=null&&t.includes(i)},[n,i]),isLoading:o}}function St(){const{isAllowed:e}=ym();return e?Sp:Rp}const _m={overlayWidth:new at(100,100,50)};function js(){const e=Fe(),n=Ye(),o=lr(),i=Ft(),a=St(),t=Se(M=>Lf(M)),r=t.uiState.selectedCustomerTenantId,s=fe.useMemo(()=>r?t.customers.find(M=>M.tenantId===r):void 0,[t.customers,r]),h=Se(M=>r?qf(M.aiAccountantCustomerState,M.userState,r):[]),f=t.customerViewStateByTenantId[r],l=f?.jobsFetchStatus??{fetchState:"Not-Started"},d=f?.jobsPageToken!=null;fe.useEffect(()=>{t.fetchState==="Completed"?n(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&n(vs())},[t.fetchState]);const c=M=>{const S=Pt(M),R=Bt(M);Ve.trackCockpitTabClicked(R),e(`../../${S}`,{replace:!0})},b=(M,S,R,L)=>{n(Dt([M.tenantId])),n(nn(S,R,L))},m=(M,S,R)=>{n(nn(M,S,R))},y=(M,S)=>{n(Dt(t.unonboardedTenantIds)),n(nn("retrain",M,S))},g=M=>{const S=t.selectedTenantIds,R=S.includes(M)?S.filter(L=>L!==M):[...S,M];n(Dt(R))},u=M=>{if(M.length===0)return;const S=t.selectedTenantIds,R=new Set(S);if(M.every(q=>R.has(q))){const q=new Set(M);n(Dt(S.filter(G=>!q.has(G))))}else{const q=Array.from(new Set([...S,...M]));n(Dt(q))}},_=()=>{n(Dt([]))},E=M=>{n(Df(M.companyId,M.tenantId))},v=M=>{M==="aiAccountant"&&n(vs())},w=(M,S)=>{n(Jt({sortKey:M,sortOrder:S}))},x=M=>{n(Jt({selectedCustomerTenantId:M.tenantId})),n(on(M.tenantId))},O=()=>{n(Jt({selectedCustomerTenantId:""}))},C=M=>{n(Jt({filterText:M}))},N=(M,S)=>{n(Jt({filters:S}))},W=()=>{r&&n(on(r,!0))};return U.jsxs(U.Fragment,{children:[U.jsx(Op,{headerData:{allTabOptions:a,selectedTabOption:Et("aiAccountant")},headerActions:{onTabChange:c},aiAccountantPageData:{aiAccountantView:t},aiAccountantPageActions:{onAction:b,onBulkAction:m,onCancelOnboarding:E,onClearSelection:_,onCockpitReloadData:v,onColumnSortConfigChanged:w,onCustomerSelected:x,onEvaluateAll:y,onFilterTextChanged:C,onFiltersChange:N,onToggleAllVisible:u,onToggleTenantSelection:g}}),U.jsx(hr,{anchor:"right",open:s!=null,PaperProps:{style:{width:_m.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:O,children:s!=null&&U.jsx(th,{customer:s,hasMoreJobs:d,jobs:h,jobsFetchStatus:l,onAction:b,onCancelOnboarding:E,onClose:O,onLoadMoreJobs:W})})]})}function bm(){const{tenantId:e=""}=ot(),n=Fe(),o=Ye(),i=Se(c=>sd(c.aiAccountantCustomerState,c.userState)),a=Se(c=>Lf(c)),t=i.find(c=>c.tenantId===e),r=a.customerViewStateByTenantId[e],s=Se(c=>qf(c.aiAccountantCustomerState,c.userState,e));if(fe.useEffect(()=>{o(on(e))},[e,o]),t==null)return null;const h=(c,b,m,y)=>{o(Dt([c.tenantId])),o(nn(b,m,y))},f=c=>{o(Df(c.companyId,c.tenantId))},l=()=>{n("../")},d=()=>{o(on(e,!0))};return U.jsx(th,{customer:t,hasMoreJobs:r?.jobsPageToken!=null,jobs:s,jobsFetchStatus:r?.jobsFetchStatus??{fetchState:"Not-Started"},onAction:h,onCancelOnboarding:f,onClose:l,onLoadMoreJobs:d})}const lh=(e,n)=>{const o=[...e??[]];return o.push(n),o},wm=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},Em=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},Pe=({state:e,element:n})=>He.isSignedIn()===!0?U.jsx(U.Fragment,{children:n}):U.jsx(ir,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function Sm(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(js,{})})}),U.jsx(Te,{path:"/detail/:tenantId",element:U.jsx(Pe,{element:U.jsx(bm,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(js,{})})})]})}const Ut=()=>{const[e,n]=sh(),[o,i]=fe.useState(),a=fe.useRef(!1);return fe.useEffect(()=>{if(a.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=Tp(e);r!=null&&i(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),a.current=!0},[e,n]),o},Rm={overlayWidth:new at(100,100,50)},{common:{strings:Ls}}=fr.getLocalizedStrings();function Om(e,n){return{headerActions:{onTabChange:o=>{const i=Pt(o),a=Bt(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(wr({uiState:{filterText:i}}))},onFiltersChange:(o,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ve.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(a=>a.matchingOperator).join(Ls.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(a=>a.field).join(Ls.comma)}}),e(wr({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:o=>{e(Mf(o))},onColumnSortConfigChanged:(o,i)=>{e(wr({uiState:{sortKey:o,sortOrder:i}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(Nf())},onFiltersChange:o=>{e(wr({uiState:{filters:o}}))}}}}function Tm(e,n){return{healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const xm=Ge(Tm,Om)(Cp);function Mn({isDrawerOpen:e}){const n=Fe(),o=Ye(),i=Ft(),a=lr(),{companyId:t}=ot(),[r,s]=sh(),[h,f]=fe.useState(!1),l=Ut(),d=St(),c=Se(w=>ud(w)),b=Se(w=>ur(w)),{additionalChurnFactors:m}=Se(w=>cd(w)),{selectedCompanyDetail:y,selectedCompanyId:g,localFormDataAndStatusByCompanyId:u}=c,_=Se(w=>w.companyViewState.zeniUsers.fetchState),E=Se(w=>w.companyHealthMetricConfigViewState);if(fe.useEffect(()=>{const w=x=>x==="Not-Started"||x==="Error";c.fetchState==="Completed"?o(It(!1)):w(c.fetchState)&&(o(Nf()),w(_)&&o(Ct()),w(E.fetchState)&&o(ld()))},[c.fetchState,E.fetchState]),fe.useEffect(()=>{t!=null&&c.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(Mf(t)),y!=null&&(xp(),Ve.trackCockpitHealthMonitorNotificationAlertClicked({companyId:y.companyInfo.companyId,companyName:y.companyInfo.name,churnProbability:y.companyHealthMetric.churnProbabilityPercentage??null}),f(!0),r.delete("utm_source"),s(r)))},[c.fetchState,y?.companyInfo.companyId,y?.companyInfo.name]),He.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return U.jsxs(U.Fragment,{children:[e===!0||g!=null&&y!=null?U.jsx(hr,{anchor:"right",open:g!=null,PaperProps:{style:{width:Rm.overlayWidth.valuePercentage(a),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(ys()),children:U.jsx(Ap,{roomId:`cockpit_${g}`,autoConnect:!0,children:U.jsx(Ip,{onSaveClick:()=>{g!=null&&o(hd(g))},onSaveChangesToLocalStore:w=>{c.selectedCompanyId!=null&&o(fd({companyId:c.selectedCompanyId,updatedLocalData:w}))},localData:u?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:c,onCloseDrawer:()=>o(ys()),analytics:Ve,urlSource:h,additionalChurnFactorsOptions:m})})}):null,U.jsx(xm,{headerData:{allTabOptions:d,selectedTabOption:Et("healthMonitor")},initialOpenThreadRequest:l??void 0,healthView:c,managementView:b,navigate:n,mixpanelHMUrl:pn.mixpanelHMUrl})]})}function Am(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(Mn,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(Mn,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Mn,{})})})]})}const Im={drawerLeftMargin:new at(0,0,240)};function mr(e){const{isOpen:n,drawerLeftMargin:o,children:i,onClose:a}=e,t=lr(),r=o?.valuePx(t)??Im.drawerLeftMargin.valuePx(t),s=Ft();return U.jsx(hr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:a,children:i})}const Cm=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?U.jsx(Pm,{children:U.jsx(mn,{size:"ExtraLarge",start:!0})}):null,Pm=tt.div`
3
3
  display: flex;
4
4
  width: 100%;
5
5
  height: 100%;
@@ -177,4 +177,4 @@ Found: ${o.toString().split(`
177
177
  `;function C_(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/report/:companyId",element:U.jsx(Pe,{element:U.jsx(Do,{})})}),U.jsx(Te,{path:"/warnings/:companyId",element:U.jsx(Pe,{element:U.jsx(Do,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(Do,{})})})]})}function P_(e,n){const o=Jf(e,n.tenantId),i=o.estimateStatus?.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function k_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{addPlan:s,invoiceOption:h}=r,{subscriptionPlan:f,recurringAddOns:l,coupon:d}=s,c={subscriptionPlanId:f.selectedOption??"",subscriptionAddOnIds:l.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:d.selectedOption!=null?[d.selectedOption]:[],invoiceImmediately:h.invoicingOption!=null};s.planStartDate!=null&&(c.startDate=an(s.planStartDate.toString())),e(Kf({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=lh(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(op(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:()=>{e(Wo(o))}}}const j_=Ge(P_,k_)(Hp),L_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return U.jsx(j_,{tenantId:n,companyId:o,location:i,navigate:a})};function q_(e,n){const{companyId:o,tenantId:i}=n,a=up(e,o,i),t=a.fetchState!=="In-Progress";return{subscriptionDetailView:a,canUpdate:t}}function D_(e,n){const{tenantId:o,location:i,navigate:a}=n;return{onUpdateOrAddPlanClick:t=>{e(Wo(o,t)),e(cp()),e(lp()),e(fp()),t!=null?a(`${i.pathname}/update`):a(`${i.pathname}/add`)},onCloseClick:()=>{a("../")}}}const N_=Ge(q_,D_)(Zp),M_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e,t=Ye(),[r,s]=fe.useState(!1),h=Se(f=>f.subscriptionViewState.subscriptionDetailsByCompanyId[o]?.fetchStatus);return fe.useEffect(()=>{!r&&(h==null||h?.fetchState==="Not-Started")&&(s(!0),t(sp(o)))},[r,h,o,t]),fe.useEffect(()=>{r&&h!=null&&h?.fetchState==="Error"&&a("../subscription")},[r,h]),U.jsx(N_,{tenantId:n,companyId:o,location:i,navigate:a})};function F_(e,n){return{subscriptionEstimateData:hp(e,n.tenantId)}}function B_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n,r=()=>{const s=wm(a.state?.pathnameStackToGoBack),h=s.poppedPathname??Em(1);t(h,{state:{pathnameStackToGoBack:s.newStack}})};return{onBackClick:()=>{r()},onCancelClick:()=>{r()},onConfirmClick:()=>{e(dp(o))},onConfirmSuccess:()=>{t(`../tenants/${o}/companies/${i}`)}}}const U_=Ge(F_,B_)(Yp),V_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return U.jsx(U_,{companyId:o,tenantId:n,location:i,navigate:a})};function $_(e,n){const o=Jf(e,n.tenantId),i=o.estimateStatus.fetchState!=="In-Progress"?void 0:"readonly";return{localData:o,isDisabled:i}}function G_(e,n){const{tenantId:o,companyId:i,location:a,navigate:t}=n;return{onSubscriptionDetailsChanged:r=>{const{updatePlan:s,applyChanges:h}=r,{subscriptionPlan:f,recurringAddOns:l,coupon:d}=s,c={subscriptionPlanId:f.selectedOption??"",subscriptionAddOnIds:l.filter(b=>b.selectedOption!=null).map(b=>b.selectedOption),subscriptionCouponIds:d.selectedOption!=null?[d.selectedOption]:[],invoiceImmediately:!0,applyEndOfTerm:h.changeType==="applyEndOfTerm",shouldProrate:h.shouldProrate};e(Kf({tenantId:o,subscriptionData:c}))},onEstimateSuccess:()=>{const r=lh(a.state?.pathnameStackToGoBack,a.pathname);t(`../tenants/${o}/companies/${i}/summary`,{state:{pathnameStackToGoBack:r}})},onReviewClick:()=>{e(pp(o))},onBackClick:()=>{t(`../tenants/${o}/companies/${i}`)},onResetClick:r=>{e(Wo(o,r.subscription.subscription.subscriptionId))}}}const z_=Ge($_,G_)(Wp),H_=e=>{const{tenantId:n,companyId:o,location:i,navigate:a}=e;return U.jsx(z_,{tenantId:n,companyId:o,location:i,navigate:a})},od=["add","update","summary"],Z_=e=>gp(e,od),Y_=e=>mp(e,od),W_=()=>{const[e,n]=fe.useState(!0),{tenantId:o,companyId:i,updatePageType:a}=ot(),t=Fe(),r=Se(h=>o!=null?h.subscriptionViewState.subscriptionUpdateViewDataByTenantId[o]:null);if(He.getSignedInUser()==null)throw Error("Can't access subscription details drawer without signing in...");return fe.useEffect(()=>{(r==null&&a!=null||Y_(a??"")==null)&&t(`../tenants/${o}/companies/${i}`)},[r]),U.jsx(mr,{isOpen:e,onClose:()=>{n(!1),t("../subscription")},children:U.jsx(K_,{children:U.jsx(J_,{tenantId:o,companyId:i,updatePageType:a!=null?Z_(a):void 0})})})},J_=({tenantId:e,companyId:n,updatePageType:o})=>{const i=Fe(),a=Jo(),t={tenantId:e,companyId:n,navigate:i,location:a};if(o==null)return U.jsx(M_,{...t});switch(o){case"update":return U.jsx(H_,{...t});case"add":return U.jsx(L_,{...t});case"summary":return U.jsx(V_,{...t});default:return console.error("Subscription Update Page - Invalid Url"),U.jsx(ir,{to:"/",replace:!0})}},K_=tt(Ht)`
178
178
  display: flex;
179
179
  min-height: 100%;
180
- `;function X_(e,n){return{headerActions:{onTabChange:o=>{const i=Pt(o),a=Bt(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(Gt({filterText:i}))},onFiltersChange:(o,i)=>{e(Gt({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,i)=>{e(Gt({sortKey:o,sortOrder:i}))},onCollapseToggled:(o,i)=>{e(Gt({isRowCollapseToggled:{companyId:o,isCollapsed:i}}))},onScroll:o=>{e(Gt({scrollYOffset:o}))},changeHandlers:(o,i)=>{const a=tb(i);Object.keys(a).length>0&&e(Go(o,a))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,i)=>{e(yp({tenantId:i})),n.navigate(`../tenants/${i}/companies/${o}`)},onFiltersChange:(o,i)=>{e(Gt({filters:i}))},onCockpitReloadData:o=>{o==="subscription"&&e(Zo())}}}}function Q_(e,n){return{subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const eb=Ge(Q_,X_)(Jp);function No({isDrawerOpen:e}){const n=Fe(),o=Ye(),i=Ut(),a=St(),t=Se(h=>vp(h)),r=Se(h=>h.companyViewState.zeniUsers.fetchState);fe.useEffect(()=>{t.fetchState==="Completed"?o(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&(o(Zo()),(r==="Not-Started"||r==="Error")&&o(Ct()))},[t.fetchState]);const s=He.getSignedInUser();return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(W_,{}):null,U.jsx(eb,{headerData:{allTabOptions:a,selectedTabOption:Et("subscription")},initialOpenThreadRequest:i??void 0,signedInUser:s,subscriptionView:t,navigate:n})]})}const tb=e=>{const{users:n}=e;return n?{users:n}:{}};function rb(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(No,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:U.jsx(Pe,{element:U.jsx(No,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(No,{})})})]})}function nb(e,n){const{navigate:o}=n;return{headerActions:{onTabChange:i=>{const a=Pt(i);o(`../../${a}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(i,a)=>{window.open(`/${i}/tasks/${a}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(Mo(null,"dueDate","descending",!1))},onFetchTaskManagerView:(i,a,t,r,s)=>{e(Mo(i,a,t,r,s))}}}}function ib(e,n){return{isBirdsEyeViewEnabled:n.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const ab=Ge(ib,nb)(Kp);function kf(){const e=Fe(),n=Ye(),o=Ut(),i=St(),{useFeatureGate:a}=wt(),{isFeatureEnabled:t}=a(gn.isBirdsEyeViewEnabled),r=Se(l=>_p(l)),s=Se(l=>bp(l)),h=Se(l=>l.companyViewState.zeniUsers.fetchState);if(fe.useEffect(()=>{r.fetchState==="Completed"?n(It(!1)):(r.fetchState==="Not-Started"||r.fetchState==="Error")&&(n(Mo(null,"dueDate","descending",!1)),(h==="Not-Started"||h==="Error")&&n(Ct()))},[r.fetchState]),fe.useEffect(()=>{t&&(r.metricsFetchState==="Not-Started"||r.metricsFetchState==="Error")&&n(wp())},[t,r.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return U.jsx(ab,{headerData:{allTabOptions:i,selectedTabOption:Et("taskManager")},companyTaskManagerView:r,isBirdsEyeViewEnabled:t,initialOpenThreadRequest:o,navigate:e,reviewCount:s})}function ob(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(kf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(kf,{})})})]})}const sb=oh(()=>Xf(()=>import("./CreditAgentRoutes-OU2cQ56o.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])));let jf=!1;const ub=oh(()=>Xf(()=>Promise.resolve().then(()=>Ym),void 0));function cb(){const e=He.getSignedInUser(),n=Ft().mode;return fe.useEffect(()=>{He.isSignedIn()&&!jf&&e!=null&&(Xp(e,n),jf=!0)},[e]),U.jsxs(gt,{children:[U.jsx(Te,{path:"/ai-accountant/*",element:U.jsx(Sm,{})}),U.jsx(Te,{path:"/management/*",element:U.jsx(tg,{})}),U.jsx(Te,{path:"/subscription/*",element:U.jsx(rb,{})}),U.jsx(Te,{path:"/onboarding/*",element:U.jsx(o_,{})}),U.jsx(Te,{path:"/portfolio/*",element:U.jsx(l_,{})}),U.jsx(Te,{path:"/audit/*",element:U.jsx(C_,{})}),U.jsx(Te,{path:"/reconciliation/*",element:U.jsx(b_,{})}),U.jsx(Te,{path:"/health-monitor/*",element:U.jsx(Am,{})}),U.jsx(Te,{path:"/task-manager/*",element:U.jsx(ob,{})}),U.jsx(Te,{path:"/credit-agent/*",element:U.jsx(sb,{})}),U.jsx(Te,{path:"/*",element:U.jsx(ub,{})})]})}const wb=Object.freeze(Object.defineProperty({__proto__:null,default:cb},Symbol.toStringTag,{value:"Module"}));export{Pe as P,wb as S,ym as u};
180
+ `;function X_(e,n){return{headerActions:{onTabChange:o=>{const i=Pt(o),a=Bt(o);Ve.trackCockpitTabClicked(a),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,i)=>{e(Gt({filterText:i}))},onFiltersChange:(o,i)=>{e(Gt({filters:i}))}}},subscriptionPageActions:{onColumnSortConfigChanged:(o,i)=>{e(Gt({sortKey:o,sortOrder:i}))},onCollapseToggled:(o,i)=>{e(Gt({isRowCollapseToggled:{companyId:o,isCollapsed:i}}))},onScroll:o=>{e(Gt({scrollYOffset:o}))},changeHandlers:(o,i)=>{const a=tb(i);Object.keys(a).length>0&&e(Go(o,a))},onCompanyNameClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard`),onPassportIconClicked:o=>window.open(`/${o.company.company.companyInfo.primaryEmailDomain}/dashboard/company_details`),onPlanOrAddOnClicked:(o,i)=>{e(yp({tenantId:i})),n.navigate(`../tenants/${i}/companies/${o}`)},onFiltersChange:(o,i)=>{e(Gt({filters:i}))},onCockpitReloadData:o=>{o==="subscription"&&e(Zo())}}}}function Q_(e,n){return{subscriptionPageData:{loggedInUser:n.signedInUser,subscriptionView:n.subscriptionView}}}const eb=Ge(Q_,X_)(Jp);function No({isDrawerOpen:e}){const n=Fe(),o=Ye(),i=Ut(),a=St(),t=Se(h=>vp(h)),r=Se(h=>h.companyViewState.zeniUsers.fetchState);fe.useEffect(()=>{t.fetchState==="Completed"?o(It(!1)):(t.fetchState==="Not-Started"||t.fetchState==="Error")&&(o(Zo()),(r==="Not-Started"||r==="Error")&&o(Ct()))},[t.fetchState]);const s=He.getSignedInUser();return U.jsxs(U.Fragment,{children:[e===!0?U.jsx(W_,{}):null,U.jsx(eb,{headerData:{allTabOptions:a,selectedTabOption:Et("subscription")},initialOpenThreadRequest:i??void 0,signedInUser:s,subscriptionView:t,navigate:n})]})}const tb=e=>{const{users:n}=e;return n?{users:n}:{}};function rb(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId",element:U.jsx(Pe,{element:U.jsx(No,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/tenants/:tenantId/companies/:companyId/:updatePageType",element:U.jsx(Pe,{element:U.jsx(No,{isDrawerOpen:!0})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(No,{})})})]})}function nb(e,n){const{navigate:o}=n;return{headerActions:{onTabChange:i=>{const a=Pt(i);o(`../../${a}`,{replace:!0})}},taskManagerPageActions:{onRowClick:(i,a)=>{window.open(`/${i}/tasks/${a}`)},onCockpitReloadData:i=>{i==="taskManager"&&e(Mo(null,"dueDate","descending",!1))},onFetchTaskManagerView:(i,a,t,r,s)=>{e(Mo(i,a,t,r,s))}}}}function ib(e,n){return{isBirdsEyeViewEnabled:n.isBirdsEyeViewEnabled,taskManagerPageData:{companyTaskManagerView:n.companyTaskManagerView}}}const ab=Ge(ib,nb)(Kp);function kf(){const e=Fe(),n=Ye(),o=Ut(),i=St(),{useFeatureGate:a}=wt(),{isFeatureEnabled:t}=a(gn.isBirdsEyeViewEnabled),r=Se(l=>_p(l)),s=Se(l=>bp(l)),h=Se(l=>l.companyViewState.zeniUsers.fetchState);if(fe.useEffect(()=>{r.fetchState==="Completed"?n(It(!1)):(r.fetchState==="Not-Started"||r.fetchState==="Error")&&(n(Mo(null,"dueDate","descending",!1)),(h==="Not-Started"||h==="Error")&&n(Ct()))},[r.fetchState]),fe.useEffect(()=>{t&&(r.metricsFetchState==="Not-Started"||r.metricsFetchState==="Error")&&n(wp())},[t,r.metricsFetchState]),He.getSignedInUser()==null)throw Error("Can't access task manager page without signing in...");return U.jsx(ab,{headerData:{allTabOptions:i,selectedTabOption:Et("taskManager")},companyTaskManagerView:r,isBirdsEyeViewEnabled:t,initialOpenThreadRequest:o,navigate:e,reviewCount:s})}function ob(){return U.jsxs(gt,{children:[U.jsx(Te,{path:"/",element:U.jsx(Pe,{element:U.jsx(kf,{})})}),U.jsx(Te,{path:"/*",element:U.jsx(Pe,{element:U.jsx(kf,{})})})]})}const sb=oh(()=>Xf(()=>import("./CreditAgentRoutes-C-R4PrV2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])));let jf=!1;const ub=oh(()=>Xf(()=>Promise.resolve().then(()=>Ym),void 0));function cb(){const e=He.getSignedInUser(),n=Ft().mode;return fe.useEffect(()=>{He.isSignedIn()&&!jf&&e!=null&&(Xp(e,n),jf=!0)},[e]),U.jsxs(gt,{children:[U.jsx(Te,{path:"/ai-accountant/*",element:U.jsx(Sm,{})}),U.jsx(Te,{path:"/management/*",element:U.jsx(tg,{})}),U.jsx(Te,{path:"/subscription/*",element:U.jsx(rb,{})}),U.jsx(Te,{path:"/onboarding/*",element:U.jsx(o_,{})}),U.jsx(Te,{path:"/portfolio/*",element:U.jsx(l_,{})}),U.jsx(Te,{path:"/audit/*",element:U.jsx(C_,{})}),U.jsx(Te,{path:"/reconciliation/*",element:U.jsx(b_,{})}),U.jsx(Te,{path:"/health-monitor/*",element:U.jsx(Am,{})}),U.jsx(Te,{path:"/task-manager/*",element:U.jsx(ob,{})}),U.jsx(Te,{path:"/credit-agent/*",element:U.jsx(sb,{})}),U.jsx(Te,{path:"/*",element:U.jsx(ub,{})})]})}const wb=Object.freeze(Object.defineProperty({__proto__:null,default:cb},Symbol.toStringTag,{value:"Module"}));export{Pe as P,wb as S,ym as u};
@@ -1 +1 @@
1
- import{j as d}from"./liveblocks-DZkCH2xN.js";import{a as f,b as S,n as I}from"./sentry-DPjqAmgS.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-jCXGTQvA.js";import{z as l,m as C,D as v,b as E,p as U,W as T,d as p}from"./index-DStLthID.js";import{I7 as x,I8 as z,I9 as D,Ia as L,bk as u}from"./zeni-epic-state-C-CH5wAG.js";import{f as k}from"./analyticsHelper-DJTBo0IK.js";import"./recharts-DADINQF-.js";import"./mui-Dplz67jq.js";import"./analytics-bLGoMt_1.js";import"./lottie-DUyJu0pd.js";import"./lexical-LPziZn5A.js";import"./utils-BSshncBl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4ac4aee4-0c33-45f6-a5b7-31f19d2881a4",e._sentryDebugIdIdentifier="sentry-dbid-4ac4aee4-0c33-45f6-a5b7-31f19d2881a4")}catch{}})();function A(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function N(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(L({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(D())}}}const P=y(A,N)(T),_=S.memo(P);function G(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(z("Completed")),v.updateAppLocaleID("en"),k(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{G as default};
1
+ import{j as d}from"./liveblocks-DZkCH2xN.js";import{a as f,b as S,n as I}from"./sentry-DPjqAmgS.js";import{n as m,i as w,g,u as h,N as b,h as y}from"./core-jCXGTQvA.js";import{z as l,m as C,D as v,b as E,p as U,W as T,d as p}from"./index-2QktT_hq.js";import{I7 as x,I8 as z,I9 as D,Ia as L,bk as u}from"./zeni-epic-state-C-CH5wAG.js";import{f as k}from"./analyticsHelper-CnH4hQBr.js";import"./recharts-DADINQF-.js";import"./mui-Dplz67jq.js";import"./analytics-bLGoMt_1.js";import"./lottie-DUyJu0pd.js";import"./lexical-LPziZn5A.js";import"./utils-BSshncBl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4ac4aee4-0c33-45f6-a5b7-31f19d2881a4",e._sentryDebugIdIdentifier="sentry-dbid-4ac4aee4-0c33-45f6-a5b7-31f19d2881a4")}catch{}})();function A(e){const o=e.tenantState.fetchState,i=e.tenantState.sendEmailMagicLinkFetchState;return{googleClientId:p.googleClientId,microsoftClientId:p.microsoftClientId,signInError:e.tenantState.error?.error,fetchState:o,sendMagicLinkStatus:i,showEmailLogin:!1}}function N(e,o){const{location:i,navigate:r}=o;return console.warn(JSON.stringify(window.location)),{onOAuthError:(n,t)=>{I({message:`OAuth error from provider ${t} with error ${n}`,level:"error",tags:{authProvider:t,errorType:"zeni.login.error"},extra:{error:n,windowLocation:window.location.href}})},onOAuthSuccess:(n,t)=>{const s=t==="google"?window.location.origin:window.location.origin+window.location.pathname;e(L({authCode:n,oauthProvider:t,appType:"web",redirectUri:u(s),sourceUri:u(i.state!=null?i.state.origin:"")}))},getSignedInUser:()=>l.getSignedInUser(),onSignedInCallback:()=>{const n=i.state?.origin;n&&n!=="/"?r(n,{replace:!0}):window.open(window.location.origin,"_self")},clearSignInError:()=>{e(D())}}}const P=y(A,N)(T),_=S.memo(P);function G(){const e=m(),o=w(),i=l.getSignedInUser(),r=g(a=>a.tenantState.fetchState),n=g(a=>a.tenantState.signInState),t=g(a=>a.tenantState.loggedInUser),s=C().mode,c=h();if(f.useEffect(()=>{n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null&&(l.saveSignedInUserWithSession(t,t.zeniSessionId),x(t.userId,t.zeniSessionId),e(z("Completed")),v.updateAppLocaleID("en"),k(t,s),setTimeout(()=>{E.trackLogin(U.Event.loginSuccess,t.authProvider??"google")},2e3))},[]),n==="In-Progress"&&r==="Completed"&&t?.zeniSessionId!=null||i!=null){const a=c.state?.origin??"/";return d.jsx(b,{to:a,state:{...c.state,origin:""}})}else return d.jsx(_,{navigate:o,location:c})}export{G as default};
@@ -1 +1 @@
1
- import{b as n}from"./index-DStLthID.js";import"./sentry-DPjqAmgS.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="f169a9a5-fc15-4fb3-85ae-a05a26e356dd",a._sentryDebugIdIdentifier="sentry-dbid-f169a9a5-fc15-4fb3-85ae-a05a26e356dd")}catch{}})();const t=(a,i,e,d)=>{n.identify(a.userId,{tenant_id:e?.tenantId,tenant_email_domain:e?.tenantEmailDomain,company_id:e?.companyId,company_name:e?.companyName,user_role:e?.userRole,$email:a.userEmail,user_email_domain:a.userEmailDomain,$first_name:a.firstName,$last_name:a.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{t as f};
1
+ import{b as n}from"./index-2QktT_hq.js";import"./sentry-DPjqAmgS.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="f169a9a5-fc15-4fb3-85ae-a05a26e356dd",a._sentryDebugIdIdentifier="sentry-dbid-f169a9a5-fc15-4fb3-85ae-a05a26e356dd")}catch{}})();const t=(a,i,e,d)=>{n.identify(a.userId,{tenant_id:e?.tenantId,tenant_email_domain:e?.tenantEmailDomain,company_id:e?.companyId,company_name:e?.companyName,user_role:e?.userRole,$email:a.userEmail,user_email_domain:a.userEmailDomain,$first_name:a.firstName,$last_name:a.lastName,company_ids:void 0,company_names:void 0,user_roles:void 0,app_type:"web",appearance:i})};export{t as f};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-D46MeKDT.js","assets/sentry-DPjqAmgS.js","assets/empty-tmoYB8lV.js","assets/index-C3pBETIi.js","assets/index-DgTg_FC9.js","assets/zeni-epic-state-C-CH5wAG.js","assets/core-jCXGTQvA.js","assets/utils-BSshncBl.js","assets/recharts-DADINQF-.js","assets/url-C3rUOUId.js","assets/index-CRFInH1K.js","assets/index-D6plUv8O.js","assets/url-DcdgW2qn.js","assets/index-BXyZw3lo.js","assets/ScreenRoutes-BNe9KhJx.js","assets/liveblocks-DZkCH2xN.js","assets/analyticsHelper-DJTBo0IK.js","assets/mui-Dplz67jq.js","assets/SignInScreen-c67kIMz5.js","assets/analytics-bLGoMt_1.js","assets/lottie-DUyJu0pd.js","assets/lexical-LPziZn5A.js"])))=>i.map(i=>d[i]);
2
- import{a as g,b as $,R as w_e,c as $3,p as dh,r as _l,g as OV,e as NK,f as b_e,s as HK,w as v_e,i as C_e,S as $_e,j as k_e,k as S_e,l as A_e,m as E_e}from"./sentry-DPjqAmgS.js";import{j as co,_ as f5e,a as fd,u as x5e,T as L_e,C as j_e,b as I_e,c as HS,d as VS,e as M_e,f as y5e,g as P_e,h as T_e,L as B_e,i as VK,k as D_e,l as __e,P as z_e,m as R_e,n as F_e,o as w5e,p as O_e,q as N_e,I as WK,r as H_e,s as V_e,t as W_e,v as U_e,w as Q_e,x as G_e,y as b5e,z as Y_e,A as K_e,B as q_e}from"./liveblocks-DZkCH2xN.js";import{f as v5e,R as Yg,r as zn,P as Xi,u as WS,g as Zu,h as Z_e,i as NV,j as J_e,k as X_e,l as $I,N as eze,m as tze,n as oze,B as rze}from"./core-jCXGTQvA.js";import{H as l$,ba as Kg,bb as ize,bc as UK,bd as N3,be as Nr,bf as C5e,bg as US,bh as kr,bi as nze,bj as aze,bk as O5,bl as E2,bm as HV,bn as $5e,bo as sze,bp as k5e,bq as lze,br as S5e,bs as dze,bt as Ei,bu as N5,bv as Lu,bw as cze,bx as uze,by as pze,bz as hze,bA as QK,bB as mze,bC as gze,bD as fze,bE as xze,bF as VV,bG as A5e,bH as L2,bI as yze,bJ as E5e,bK as XF,bL as GK,bM as YK,bN as KK,bO as Vs,bP as WV,bQ as UV,bR as v7,bS as QV,bT as GV,bU as YV,bV as KV,bW as wze,bX as d$,bY as bze,bZ as L5e,b_ as qV,b$ as vze,c0 as Lh,c1 as iy,c2 as ny,c3 as Cze,c4 as $ze,c5 as kze,c6 as Sze,c7 as Aze,c8 as Eze,c9 as Lze,ca as jze,cb as Ize,cc as Mze,cd as Pze,ce as Tze,cf as Bze,cg as Dze,ch as _ze,ci as zze,cj as Rze,ck as Fze,cl as Oze,cm as Nze,cn as Hze,co as j5e,cp as Vze,cq as qK,cr as Wze,cs as Uze,ct as Qze,cu as sx,cv as I5e,cw as M5e,cx as Gze,cy as ZK,cz as P5e,cA as Yze,cB as JK,cC as T5e,cD as B5e,cE as D5e,cF as _5e,cG as z5e,cH as Kze,cI as R5e,cJ as qze,cK as Zze,cL as Jze,cM as F5e,cN as eO,cO as Xze,cP as O5e,cQ as N5e,cR as eRe,cS as tRe,cT as oRe,cU as rRe,cV as iRe,cW as nRe,cX as aRe,cY as sRe,v as lRe,cZ as QS,c_ as tO,c$ as oO,d0 as dRe,d1 as cRe,d2 as uRe,d3 as pRe,d4 as hRe,d5 as mRe,d6 as gRe,d7 as fRe,d8 as xRe,d9 as yRe,da as XK,db as wRe,dc as bRe,dd as vRe,de as CRe,df as $Re}from"./zeni-epic-state-C-CH5wAG.js";import{T as H5e,j as Eo,n,c as me,k as Nt,G as ay,C as V5e,u as W5e,a as kRe}from"./mui-Dplz67jq.js";import{r as SRe,m as ju}from"./analytics-bLGoMt_1.js";import{L as rO}from"./lottie-DUyJu0pd.js";import{r as Xn}from"./lexical-LPziZn5A.js";import{E as wi,c as GS,P as ARe,R as iO,F as c$,X as cd,Y as ud,G as qh,H as u$,I as YS,J as Zh,K as U5e,L as ERe,M as LRe,N as H3,O as ZV,Q as JV,S as sy,U as jRe}from"./recharts-DADINQF-.js";import{r as IRe}from"./utils-BSshncBl.js";(function(){try{var e=typeof window<"u"?window:typeof $3<"u"?$3:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ec8d9aae-4768-4ac9-8e1b-64cf7ff73077",e._sentryDebugIdIdentifier="sentry-dbid-ec8d9aae-4768-4ac9-8e1b-64cf7ff73077")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=o(a);fetch(a.href,l)}})();var zw={},eq;function MRe(){if(eq)return zw;eq=1;var e=v5e();return zw.createRoot=e.createRoot,zw.hydrateRoot=e.hydrateRoot,zw}var PRe=MRe(),yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof $3<"u"?$3:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tq={exports:{}},g6={},oq;function TRe(){if(oq)return g6;oq=1;var e=$,t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(c,u,p){var h,m={},f=null,x=null;p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref);for(h in u)i.call(u,h)&&!l.hasOwnProperty(h)&&(m[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:t,type:c,key:f,ref:x,props:m,_owner:a.current}}return g6.Fragment=o,g6.jsx=d,g6.jsxs=d,g6}var rq;function Q5e(){return rq||(rq=1,tq.exports=TRe()),tq.exports}var s=Q5e();const BRe=g.createContext(null),kI={didCatch:!1,error:null};let DRe=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=kI}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var t,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];(t=(o=this.props).onReset)===null||t===void 0||t.call(o,{args:a,reason:"imperative-api"}),this.setState(kI)}}componentDidCatch(e,t){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:o}=this.state,{resetKeys:i}=this.props;if(o&&t.error!==null&&_Re(e.resetKeys,i)){var a,l;(a=(l=this.props).onReset)===null||a===void 0||a.call(l,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(kI)}}render(){const{children:e,fallbackRender:t,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:l}=this.state;let d=e;if(a){const c={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof t=="function")d=t(c);else if(o)d=g.createElement(o,c);else if(i!==void 0)d=i;else throw l}return g.createElement(BRe.Provider,{value:{didCatch:a,error:l,resetErrorBoundary:this.resetErrorBoundary}},d)}};function _Re(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((o,i)=>!Object.is(o,t[i]))}var nO={exports:{}},zRe=nO.exports,iq;function RRe(){return iq||(iq=1,function(e){(function(t,o){e.exports?e.exports=o():t.numeral=o()})(zRe,function(){var t,o,i="2.0.6",a={},l={},d={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:d.currentLocale,zeroFormat:d.zeroFormat,nullFormat:d.nullFormat,defaultFormat:d.defaultFormat,scalePercentBy100:d.scalePercentBy100};function u(p,h){this._input=p,this._value=h}return t=function(p){var h,m,f,x;if(t.isNumeral(p))h=p.value();else if(p===0||typeof p>"u")h=0;else if(p===null||o.isNaN(p))h=null;else if(typeof p=="string")if(c.zeroFormat&&p===c.zeroFormat)h=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)h=null;else{for(m in a)if(x=typeof a[m].regexps.unformat=="function"?a[m].regexps.unformat():a[m].regexps.unformat,x&&p.match(x)){f=a[m].unformat;break}f=f||t._.stringToNumber,h=f(p)}else h=Number(p)||null;return new u(p,h)},t.version=i,t.isNumeral=function(p){return p instanceof u},t._=o={numberToFormat:function(p,h,m){var f=l[t.options.currentLocale],x=!1,y=!1,w=0,b="",C=1e12,k=1e9,A=1e6,E=1e3,I="",L=!1,P,T,B,D,z,_,q;if(p=p||0,T=Math.abs(p),t._.includes(h,"(")?(x=!0,h=h.replace(/[\(|\)]/g,"")):(t._.includes(h,"+")||t._.includes(h,"-"))&&(z=t._.includes(h,"+")?h.indexOf("+"):p<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),t._.includes(h,"a")&&(P=h.match(/a(k|m|b|t)?/),P=P?P[1]:!1,t._.includes(h," a")&&(b=" "),h=h.replace(new RegExp(b+"a[kmbt]?"),""),T>=C&&!P||P==="t"?(b+=f.abbreviations.trillion,p=p/C):T<C&&T>=k&&!P||P==="b"?(b+=f.abbreviations.billion,p=p/k):T<k&&T>=A&&!P||P==="m"?(b+=f.abbreviations.million,p=p/A):(T<A&&T>=E&&!P||P==="k")&&(b+=f.abbreviations.thousand,p=p/E)),t._.includes(h,"[.]")&&(y=!0,h=h.replace("[.]",".")),B=p.toString().split(".")[0],D=h.split(".")[1],_=h.indexOf(","),w=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,D?(t._.includes(D,"[")?(D=D.replace("]",""),D=D.split("["),I=t._.toFixed(p,D[0].length+D[1].length,m,D[1].length)):I=t._.toFixed(p,D.length,m),B=I.split(".")[0],t._.includes(I,".")?I=f.delimiters.decimal+I.split(".")[1]:I="",y&&Number(I.slice(1))===0&&(I="")):B=t._.toFixed(p,0,m),b&&!P&&Number(B)>=1e3&&b!==f.abbreviations.trillion)switch(B=String(Number(B)/1e3),b){case f.abbreviations.thousand:b=f.abbreviations.million;break;case f.abbreviations.million:b=f.abbreviations.billion;break;case f.abbreviations.billion:b=f.abbreviations.trillion;break}if(t._.includes(B,"-")&&(B=B.slice(1),L=!0),B.length<w)for(var Z=w-B.length;Z>0;Z--)B="0"+B;return _>-1&&(B=B.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),h.indexOf(".")===0&&(B=""),q=B+I+(b||""),x?q=(x&&L?"(":"")+q+(x&&L?")":""):z>=0?q=z===0?(L?"-":"+")+q:q+(L?"-":"+"):L&&(q="-"+q),q},stringToNumber:function(p){var h=l[c.currentLocale],m=p,f={thousand:3,million:6,billion:9,trillion:12},x,y,w;if(c.zeroFormat&&p===c.zeroFormat)y=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)y=null;else{y=1,h.delimiters.decimal!=="."&&(p=p.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(x in f)if(w=new RegExp("[^a-zA-Z]"+h.abbreviations[x]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),m.match(w)){y*=Math.pow(10,f[x]);break}y*=(p.split("-").length+Math.min(p.split("(").length-1,p.split(")").length-1))%2?1:-1,p=p.replace(/[^0-9\.]+/g,""),y*=Number(p)}return y},isNaN:function(p){return typeof p=="number"&&isNaN(p)},includes:function(p,h){return p.indexOf(h)!==-1},insert:function(p,h,m){return p.slice(0,m)+h+p.slice(m)},reduce:function(p,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var m=Object(p),f=m.length>>>0,x=0,y;if(arguments.length===3)y=arguments[2];else{for(;x<f&&!(x in m);)x++;if(x>=f)throw new TypeError("Reduce of empty array with no initial value");y=m[x++]}for(;x<f;x++)x in m&&(y=h(y,m[x],x,m));return y},multiplier:function(p){var h=p.toString().split(".");return h.length<2?1:Math.pow(10,h[1].length)},correctionFactor:function(){var p=Array.prototype.slice.call(arguments);return p.reduce(function(h,m){var f=o.multiplier(m);return h>f?h:f},1)},toFixed:function(p,h,m,f){var x=p.toString().split("."),y=h-(f||0),w,b,C,k;return x.length===2?w=Math.min(Math.max(x[1].length,y),h):w=y,C=Math.pow(10,w),k=(m(p+"e+"+w)/C).toFixed(w),f>h-w&&(b=new RegExp("\\.?0{1,"+(f-(h-w))+"}$"),k=k.replace(b,"")),k}},t.options=c,t.formats=a,t.locales=l,t.locale=function(p){return p&&(c.currentLocale=p.toLowerCase()),c.currentLocale},t.localeData=function(p){if(!p)return l[c.currentLocale];if(p=p.toLowerCase(),!l[p])throw new Error("Unknown locale : "+p);return l[p]},t.reset=function(){for(var p in d)c[p]=d[p]},t.zeroFormat=function(p){c.zeroFormat=typeof p=="string"?p:null},t.nullFormat=function(p){c.nullFormat=typeof p=="string"?p:null},t.defaultFormat=function(p){c.defaultFormat=typeof p=="string"?p:"0.0"},t.register=function(p,h,m){if(h=h.toLowerCase(),this[p+"s"][h])throw new TypeError(h+" "+p+" already registered.");return this[p+"s"][h]=m,m},t.validate=function(p,h){var m,f,x,y,w,b,C,k;if(typeof p!="string"&&(p+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",p)),p=p.trim(),p.match(/^\d+$/))return!0;if(p==="")return!1;try{C=t.localeData(h)}catch{C=t.localeData(t.locale())}return x=C.currency.symbol,w=C.abbreviations,m=C.delimiters.decimal,C.delimiters.thousands==="."?f="\\.":f=C.delimiters.thousands,k=p.match(/^[^\d]+/),k!==null&&(p=p.substr(1),k[0]!==x)||(k=p.match(/[^\d]+$/),k!==null&&(p=p.slice(0,-1),k[0]!==w.thousand&&k[0]!==w.million&&k[0]!==w.billion&&k[0]!==w.trillion))?!1:(b=new RegExp(f+"{2}"),p.match(/[^\d.,]/g)?!1:(y=p.split(m),y.length>2?!1:y.length<2?!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b):y[0].length===1?!!y[0].match(/^\d+$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/):!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(p,h){var m=this._value,f=p||c.defaultFormat,x,y,w;if(h=h||Math.round,m===0&&c.zeroFormat!==null)y=c.zeroFormat;else if(m===null&&c.nullFormat!==null)y=c.nullFormat;else{for(x in a)if(f.match(a[x].regexps.format)){w=a[x].format;break}w=w||t._.numberToFormat,y=w(m,f,h)}return y},value:function(){return this._value},input:function(){return this._input},set:function(p){return this._value=Number(p),this},add:function(p){var h=o.correctionFactor.call(null,this._value,p);function m(f,x,y,w){return f+Math.round(h*x)}return this._value=o.reduce([this._value,p],m,0)/h,this},subtract:function(p){var h=o.correctionFactor.call(null,this._value,p);function m(f,x,y,w){return f-Math.round(h*x)}return this._value=o.reduce([p],m,Math.round(this._value*h))/h,this},multiply:function(p){function h(m,f,x,y){var w=o.correctionFactor(m,f);return Math.round(m*w)*Math.round(f*w)/Math.round(w*w)}return this._value=o.reduce([this._value,p],h,1),this},divide:function(p){function h(m,f,x,y){var w=o.correctionFactor(m,f);return Math.round(m*w)/Math.round(f*w)}return this._value=o.reduce([this._value,p],h),this},difference:function(p){return Math.abs(t(this._value).subtract(p).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(p){var h=p%10;return~~(p%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(p,h,m){var f=t._.includes(h," BPS")?" ":"",x;return p=p*1e4,h=h.replace(/\s?BPS/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"BPS"),x=x.join("")):x=x+f+"BPS",x},unformat:function(p){return+(t._.stringToNumber(p)*1e-4).toFixed(15)}})}(),function(){var p={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=p.suffixes.concat(h.suffixes.filter(function(x){return p.suffixes.indexOf(x)<0})),f=m.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(x,y,w){var b,C=t._.includes(y,"ib")?h:p,k=t._.includes(y," b")||t._.includes(y," ib")?" ":"",A,E,I;for(y=y.replace(/\s?i?b/,""),A=0;A<=C.suffixes.length;A++)if(E=Math.pow(C.base,A),I=Math.pow(C.base,A+1),x===null||x===0||x>=E&&x<I){k+=C.suffixes[A],E>0&&(x=x/E);break}return b=t._.numberToFormat(x,y,w),b+k},unformat:function(x){var y=t._.stringToNumber(x),w,b;if(y){for(w=p.suffixes.length-1;w>=0;w--){if(t._.includes(x,p.suffixes[w])){b=Math.pow(p.base,w);break}if(t._.includes(x,h.suffixes[w])){b=Math.pow(h.base,w);break}}y*=b||1}return y}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(p,h,m){var f=t.locales[t.options.currentLocale],x={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},y,w,b;for(h=h.replace(/\s?\$\s?/,""),y=t._.numberToFormat(p,h,m),p>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):p<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),b=0;b<x.before.length;b++)switch(w=x.before[b],w){case"$":y=t._.insert(y,f.currency.symbol,b);break;case" ":y=t._.insert(y," ",b+f.currency.symbol.length-1);break}for(b=x.after.length-1;b>=0;b--)switch(w=x.after[b],w){case"$":y=b===x.after.length-1?y+f.currency.symbol:t._.insert(y,f.currency.symbol,-(x.after.length-(1+b)));break;case" ":y=b===x.after.length-1?y+" ":t._.insert(y," ",-(x.after.length-(1+b)+f.currency.symbol.length-1));break}return y}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(p,h,m){var f,x=typeof p=="number"&&!t._.isNaN(p)?p.toExponential():"0e+0",y=x.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(y[0]),h,m),f+"e"+y[1]},unformat:function(p){var h=t._.includes(p,"e+")?p.split("e+"):p.split("e-"),m=Number(h[0]),f=Number(h[1]);f=t._.includes(p,"e-")?f*=-1:f;function x(y,w,b,C){var k=t._.correctionFactor(y,w),A=y*k*(w*k)/(k*k);return A}return t._.reduce([m,Math.pow(10,f)],x,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(p,h,m){var f=t.locales[t.options.currentLocale],x,y=t._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),y+=f.ordinal(p),x=t._.numberToFormat(p,h,m),x+y}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(p,h,m){var f=t._.includes(h," %")?" ":"",x;return t.options.scalePercentBy100&&(p=p*100),h=h.replace(/\s?\%/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"%"),x=x.join("")):x=x+f+"%",x},unformat:function(p){var h=t._.stringToNumber(p);return t.options.scalePercentBy100?h*.01:h}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(p,h,m){var f=Math.floor(p/60/60),x=Math.floor((p-f*60*60)/60),y=Math.round(p-f*60*60-x*60);return f+":"+(x<10?"0"+x:x)+":"+(y<10?"0"+y:y)},unformat:function(p){var h=p.split(":"),m=0;return h.length===3?(m=m+Number(h[0])*60*60,m=m+Number(h[1])*60,m=m+Number(h[2])):h.length===2&&(m=m+Number(h[0])*60,m=m+Number(h[1])),Number(m)}})}(),t})}(nO)),nO.exports}var FRe=RRe();const Th=wr(FRe);function Fh(e,...t){const o=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}const Bh="$$material";function ORe(e){for(var t=0,o,i=0,a=e.length;a>=4;++i,a-=4)o=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var NRe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function HRe(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var VRe=/[A-Z]|^ms/g,WRe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G5e=function(e){return e.charCodeAt(1)===45},nq=function(e){return e!=null&&typeof e!="boolean"},SI=HRe(function(e){return G5e(e)?e:e.replace(VRe,"-$&").toLowerCase()}),aq=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(WRe,function(o,i,a){return r2={name:i,styles:a,next:r2},i})}return NRe[e]!==1&&!G5e(e)&&typeof t=="number"&&t!==0?t+"px":t};function p$(e,t,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":{var a=o;if(a.anim===1)return r2={name:a.name,styles:a.styles,next:r2},a.name;var l=o;if(l.styles!==void 0){var d=l.next;if(d!==void 0)for(;d!==void 0;)r2={name:d.name,styles:d.styles,next:r2},d=d.next;var c=l.styles+";";return c}return URe(e,t,o)}}var u=o;return u}function URe(e,t,o){var i="";if(Array.isArray(o))for(var a=0;a<o.length;a++)i+=p$(e,t,o[a])+";";else for(var l in o){var d=o[l];if(typeof d!="object"){var c=d;nq(c)&&(i+=SI(l)+":"+aq(l,c)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&t==null)for(var u=0;u<d.length;u++)nq(d[u])&&(i+=SI(l)+":"+aq(l,d[u])+";");else{var p=p$(e,t,d);switch(l){case"animation":case"animationName":{i+=SI(l)+":"+p+";";break}default:i+=l+"{"+p+"}"}}}return i}var sq=/label:\s*([^\s;{]+)\s*(;|$)/g,r2;function QRe(e,t,o){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";r2=void 0;var l=e[0];if(l==null||l.raw===void 0)i=!1,a+=p$(o,t,l);else{var d=l;a+=d[0]}for(var c=1;c<e.length;c++)if(a+=p$(o,t,e[c]),i){var u=l;a+=u[c]}sq.lastIndex=0;for(var p="",h;(h=sq.exec(a))!==null;)p+="-"+h[1];var m=ORe(a)+p;return{name:m,styles:a,next:r2}}var AI={exports:{}},EI,lq;function GRe(){if(lq)return EI;lq=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return EI=e,EI}var LI,dq;function YRe(){if(dq)return LI;dq=1;var e=GRe();function t(){}function o(){}return o.resetWarningCache=t,LI=function(){function i(d,c,u,p,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}i.isRequired=i;function a(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:t};return l.PropTypes=l,l},LI}var cq;function XV(){return cq||(cq=1,AI.exports=YRe()()),AI.exports}var KRe=XV();const Tt=wr(KRe);function qRe(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ZRe(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var JRe=function(){function e(o){var i=this;this._insertTag=function(a){var l;i.tags.length===0?i.insertionPoint?l=i.insertionPoint.nextSibling:i.prepend?l=i.container.firstChild:l=i.before:l=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,l),i.tags.push(a)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ZRe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=qRe(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),ps="-ms-",h$="-moz-",Gr="-webkit-",Y5e="comm",eW="rule",tW="decl",XRe="@import",K5e="@keyframes",eFe="@layer",tFe=Math.abs,KS=String.fromCharCode,oFe=Object.assign;function rFe(e,t){return qa(e,0)^45?(((t<<2^qa(e,0))<<2^qa(e,1))<<2^qa(e,2))<<2^qa(e,3):0}function q5e(e){return e.trim()}function iFe(e,t){return(e=t.exec(e))?e[0]:e}function Yr(e,t,o){return e.replace(t,o)}function aO(e,t){return e.indexOf(t)}function qa(e,t){return e.charCodeAt(t)|0}function lx(e,t,o){return e.slice(t,o)}function Iu(e){return e.length}function oW(e){return e.length}function Rw(e,t){return t.push(e),e}function nFe(e,t){return e.map(t).join("")}var qS=1,H5=1,Z5e=0,Il=0,Kn=0,C7="";function ZS(e,t,o,i,a,l,d){return{value:e,root:t,parent:o,type:i,props:a,children:l,line:qS,column:H5,length:d,return:""}}function f6(e,t){return oFe(ZS("",null,null,"",null,null,0),e,{length:-e.length},t)}function aFe(){return Kn}function sFe(){return Kn=Il>0?qa(C7,--Il):0,H5--,Kn===10&&(H5=1,qS--),Kn}function sd(){return Kn=Il<Z5e?qa(C7,Il++):0,H5++,Kn===10&&(H5=1,qS++),Kn}function np(){return qa(C7,Il)}function IC(){return Il}function ly(e,t){return lx(C7,e,t)}function dx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J5e(e){return qS=H5=1,Z5e=Iu(C7=e),Il=0,[]}function X5e(e){return C7="",e}function MC(e){return q5e(ly(Il-1,sO(e===91?e+2:e===40?e+1:e)))}function lFe(e){for(;(Kn=np())&&Kn<33;)sd();return dx(e)>2||dx(Kn)>3?"":" "}function dFe(e,t){for(;--t&&sd()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return ly(e,IC()+(t<6&&np()==32&&sd()==32))}function sO(e){for(;sd();)switch(Kn){case e:return Il;case 34:case 39:e!==34&&e!==39&&sO(Kn);break;case 40:e===41&&sO(e);break;case 92:sd();break}return Il}function cFe(e,t){for(;sd()&&e+Kn!==57&&!(e+Kn===84&&np()===47););return"/*"+ly(t,Il-1)+"*"+KS(e===47?e:sd())}function uFe(e){for(;!dx(np());)sd();return ly(e,Il)}function pFe(e){return X5e(PC("",null,null,null,[""],e=J5e(e),0,[0],e))}function PC(e,t,o,i,a,l,d,c,u){for(var p=0,h=0,m=d,f=0,x=0,y=0,w=1,b=1,C=1,k=0,A="",E=a,I=l,L=i,P=A;b;)switch(y=k,k=sd()){case 40:if(y!=108&&qa(P,m-1)==58){aO(P+=Yr(MC(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:P+=MC(k);break;case 9:case 10:case 13:case 32:P+=lFe(y);break;case 92:P+=dFe(IC()-1,7);continue;case 47:switch(np()){case 42:case 47:Rw(hFe(cFe(sd(),IC()),t,o),u);break;default:P+="/"}break;case 123*w:c[p++]=Iu(P)*C;case 125*w:case 59:case 0:switch(k){case 0:case 125:b=0;case 59+h:C==-1&&(P=Yr(P,/\f/g,"")),x>0&&Iu(P)-m&&Rw(x>32?pq(P+";",i,o,m-1):pq(Yr(P," ","")+";",i,o,m-2),u);break;case 59:P+=";";default:if(Rw(L=uq(P,t,o,p,h,a,c,A,E=[],I=[],m),l),k===123)if(h===0)PC(P,t,L,L,E,l,m,c,I);else switch(f===99&&qa(P,3)===110?100:f){case 100:case 108:case 109:case 115:PC(e,L,L,i&&Rw(uq(e,L,L,0,0,a,c,A,a,E=[],m),I),a,I,m,c,i?E:I);break;default:PC(P,L,L,L,[""],I,0,c,I)}}p=h=x=0,w=C=1,A=P="",m=d;break;case 58:m=1+Iu(P),x=y;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&sFe()==125)continue}switch(P+=KS(k),k*w){case 38:C=h>0?1:(P+="\f",-1);break;case 44:c[p++]=(Iu(P)-1)*C,C=1;break;case 64:np()===45&&(P+=MC(sd())),f=np(),h=m=Iu(A=P+=uFe(IC())),k++;break;case 45:y===45&&Iu(P)==2&&(w=0)}}return l}function uq(e,t,o,i,a,l,d,c,u,p,h){for(var m=a-1,f=a===0?l:[""],x=oW(f),y=0,w=0,b=0;y<i;++y)for(var C=0,k=lx(e,m+1,m=tFe(w=d[y])),A=e;C<x;++C)(A=q5e(w>0?f[C]+" "+k:Yr(k,/&\f/g,f[C])))&&(u[b++]=A);return ZS(e,t,o,a===0?eW:c,u,p,h)}function hFe(e,t,o){return ZS(e,t,o,Y5e,KS(aFe()),lx(e,2,-2),0)}function pq(e,t,o,i){return ZS(e,t,o,tW,lx(e,0,i),lx(e,i+1,-1),i)}function y5(e,t){for(var o="",i=oW(e),a=0;a<i;a++)o+=t(e[a],a,e,t)||"";return o}function mFe(e,t,o,i){switch(e.type){case eFe:if(e.children.length)break;case XRe:case tW:return e.return=e.return||e.value;case Y5e:return"";case K5e:return e.return=e.value+"{"+y5(e.children,i)+"}";case eW:e.value=e.props.join(",")}return Iu(o=y5(e.children,i))?e.return=e.value+"{"+o+"}":""}function gFe(e){var t=oW(e);return function(o,i,a,l){for(var d="",c=0;c<t;c++)d+=e[c](o,i,a,l)||"";return d}}function fFe(e){return function(t){t.root||(t=t.return)&&e(t)}}var xFe=function(e,t,o){for(var i=0,a=0;i=a,a=np(),i===38&&a===12&&(t[o]=1),!dx(a);)sd();return ly(e,Il)},yFe=function(e,t){var o=-1,i=44;do switch(dx(i)){case 0:i===38&&np()===12&&(t[o]=1),e[o]+=xFe(Il-1,t,o);break;case 2:e[o]+=MC(i);break;case 4:if(i===44){e[++o]=np()===58?"&\f":"",t[o]=e[o].length;break}default:e[o]+=KS(i)}while(i=sd());return e},wFe=function(e,t){return X5e(yFe(J5e(e),t))},hq=new WeakMap,bFe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,o=e.parent,i=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!hq.get(o))&&!i){hq.set(e,!0);for(var a=[],l=wFe(t,a),d=o.props,c=0,u=0;c<l.length;c++)for(var p=0;p<d.length;p++,u++)e.props[u]=a[c]?l[c].replace(/&\f/g,d[p]):d[p]+" "+l[c]}}},vFe=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function e7e(e,t){switch(rFe(e,t)){case 5103:return Gr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Gr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gr+e+h$+e+ps+e+e;case 6828:case 4268:return Gr+e+ps+e+e;case 6165:return Gr+e+ps+"flex-"+e+e;case 5187:return Gr+e+Yr(e,/(\w+).+(:[^]+)/,Gr+"box-$1$2"+ps+"flex-$1$2")+e;case 5443:return Gr+e+ps+"flex-item-"+Yr(e,/flex-|-self/,"")+e;case 4675:return Gr+e+ps+"flex-line-pack"+Yr(e,/align-content|flex-|-self/,"")+e;case 5548:return Gr+e+ps+Yr(e,"shrink","negative")+e;case 5292:return Gr+e+ps+Yr(e,"basis","preferred-size")+e;case 6060:return Gr+"box-"+Yr(e,"-grow","")+Gr+e+ps+Yr(e,"grow","positive")+e;case 4554:return Gr+Yr(e,/([^-])(transform)/g,"$1"+Gr+"$2")+e;case 6187:return Yr(Yr(Yr(e,/(zoom-|grab)/,Gr+"$1"),/(image-set)/,Gr+"$1"),e,"")+e;case 5495:case 3959:return Yr(e,/(image-set\([^]*)/,Gr+"$1$`$1");case 4968:return Yr(Yr(e,/(.+:)(flex-)?(.*)/,Gr+"box-pack:$3"+ps+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gr+e+e;case 4095:case 3583:case 4068:case 2532:return Yr(e,/(.+)-inline(.+)/,Gr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Iu(e)-1-t>6)switch(qa(e,t+1)){case 109:if(qa(e,t+4)!==45)break;case 102:return Yr(e,/(.+:)(.+)-([^]+)/,"$1"+Gr+"$2-$3$1"+h$+(qa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~aO(e,"stretch")?e7e(Yr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qa(e,t+1)!==115)break;case 6444:switch(qa(e,Iu(e)-3-(~aO(e,"!important")&&10))){case 107:return Yr(e,":",":"+Gr)+e;case 101:return Yr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gr+(qa(e,14)===45?"inline-":"")+"box$3$1"+Gr+"$2$3$1"+ps+"$2box$3")+e}break;case 5936:switch(qa(e,t+11)){case 114:return Gr+e+ps+Yr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gr+e+ps+Yr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gr+e+ps+Yr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gr+e+ps+e+e}return e}var CFe=function(e,t,o,i){if(e.length>-1&&!e.return)switch(e.type){case tW:e.return=e7e(e.value,e.length);break;case K5e:return y5([f6(e,{value:Yr(e.value,"@","@"+Gr)})],i);case eW:if(e.length)return nFe(e.props,function(a){switch(iFe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return y5([f6(e,{props:[Yr(a,/:(read-\w+)/,":"+h$+"$1")]})],i);case"::placeholder":return y5([f6(e,{props:[Yr(a,/:(plac\w+)/,":"+Gr+"input-$1")]}),f6(e,{props:[Yr(a,/:(plac\w+)/,":"+h$+"$1")]}),f6(e,{props:[Yr(a,/:(plac\w+)/,ps+"input-$1")]})],i)}return""})}},$Fe=[CFe],t7e=function(e){var t=e.key;if(t==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||$Fe,a={},l,d=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)a[w[b]]=!0;d.push(y)});var c,u=[bFe,vFe];{var p,h=[mFe,fFe(function(y){p.insert(y)})],m=gFe(u.concat(i,h)),f=function(y){return y5(pFe(y),m)};c=function(y,w,b,C){p=b,f(y?y+"{"+w.styles+"}":w.styles),C&&(x.inserted[w.name]=!0)}}var x={key:t,sheet:new JRe({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:c};return x.sheet.hydrate(d),x};function kFe(e){return e==null||Object.keys(e).length===0}function o7e(e){const{styles:t,defaultTheme:o={}}=e,i=typeof t=="function"?a=>t(kFe(a)?o:a):t;return s.jsx(ay,{styles:i})}function SFe(e,t){return n(e,t)}function AFe(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mq=[];function g2(e){return mq[0]=e,QRe(mq)}var gq={exports:{}},mi={},fq;function EFe(){if(fq)return mi;fq=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(w){if(typeof w=="object"&&w!==null){var b=w.$$typeof;switch(b){case e:switch(w=w.type,w){case o:case a:case i:case u:case p:case f:return w;default:switch(w=w&&w.$$typeof,w){case d:case c:case m:case h:return w;case l:return w;default:return b}}case t:return b}}}return mi.ContextConsumer=l,mi.ContextProvider=d,mi.Element=e,mi.ForwardRef=c,mi.Fragment=o,mi.Lazy=m,mi.Memo=h,mi.Portal=t,mi.Profiler=a,mi.StrictMode=i,mi.Suspense=u,mi.SuspenseList=p,mi.isContextConsumer=function(w){return y(w)===l},mi.isContextProvider=function(w){return y(w)===d},mi.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},mi.isForwardRef=function(w){return y(w)===c},mi.isFragment=function(w){return y(w)===o},mi.isLazy=function(w){return y(w)===m},mi.isMemo=function(w){return y(w)===h},mi.isPortal=function(w){return y(w)===t},mi.isProfiler=function(w){return y(w)===a},mi.isStrictMode=function(w){return y(w)===i},mi.isSuspense=function(w){return y(w)===u},mi.isSuspenseList=function(w){return y(w)===p},mi.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===a||w===i||w===u||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===d||w.$$typeof===l||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},mi.typeOf=y,mi}var xq;function LFe(){return xq||(xq=1,gq.exports=EFe()),gq.exports}var r7e=LFe();function xh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i7e(e){if(g.isValidElement(e)||r7e.isValidElementType(e)||!xh(e))return e;const t={};return Object.keys(e).forEach(o=>{t[o]=i7e(e[o])}),t}function $s(e,t,o={clone:!0}){const i=o.clone?{...e}:e;return xh(e)&&xh(t)&&Object.keys(t).forEach(a=>{g.isValidElement(t[a])||r7e.isValidElementType(t[a])?i[a]=t[a]:xh(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&xh(e[a])?i[a]=$s(e[a],t[a],o):o.clone?i[a]=xh(t[a])?i7e(t[a]):t[a]:i[a]=t[a]}),i}const jFe=e=>{const t=Object.keys(e).map(o=>({key:o,val:e[o]}))||[];return t.sort((o,i)=>o.val-i.val),t.reduce((o,i)=>({...o,[i.key]:i.val}),{})};function IFe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,l=jFe(t),d=Object.keys(l);function c(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${o})`}function u(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-i/100}${o})`}function p(f,x){const y=d.indexOf(x);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${o}) and (max-width:${(y!==-1&&typeof t[d[y]]=="number"?t[d[y]]:x)-i/100}${o})`}function h(f){return d.indexOf(f)+1<d.length?p(f,d[d.indexOf(f)+1]):c(f)}function m(f){const x=d.indexOf(f);return x===0?c(d[1]):x===d.length-1?u(d[x]):p(f,d[d.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:d,values:l,up:c,down:u,between:p,only:h,not:m,unit:o,...a}}function yq(e,t){if(!e.containerQueries)return t;const o=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,a)=>{const l=/min-width:\s*([0-9.]+)/;return+(i.match(l)?.[1]||0)-+(a.match(l)?.[1]||0)});return o.length?o.reduce((i,a)=>{const l=t[a];return delete i[a],i[a]=l,i},{...t}):t}function MFe(e,t){return t==="@"||t.startsWith("@")&&(e.some(o=>t.startsWith(`@${o}`))||!!t.match(/^@\d/))}function PFe(e,t){const o=t.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,i,a]=o,l=Number.isNaN(+i)?i||0:+i;return e.containerQueries(a).up(l)}function TFe(e){const t=(l,d)=>l.replace("@media",d?`@container ${d}`:"@container");function o(l,d){l.up=(...c)=>t(e.breakpoints.up(...c),d),l.down=(...c)=>t(e.breakpoints.down(...c),d),l.between=(...c)=>t(e.breakpoints.between(...c),d),l.only=(...c)=>t(e.breakpoints.only(...c),d),l.not=(...c)=>{const u=t(e.breakpoints.not(...c),d);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},a=l=>(o(i,l),i);return o(a),{...e,containerQueries:a}}const BFe={borderRadius:4};function B8(e,t){return t?$s(e,t,{clone:!1}):e}const JS={xs:0,sm:600,md:900,lg:1200,xl:1536},wq={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${JS[e]}px)`},DFe={containerQueries:e=>({up:t=>{let o=typeof t=="number"?t:JS[t]||t;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Oh(e,t,o){const i=e.theme||{};if(Array.isArray(t)){const a=i.breakpoints||wq;return t.reduce((l,d,c)=>(l[a.up(a.keys[c])]=o(t[c]),l),{})}if(typeof t=="object"){const a=i.breakpoints||wq;return Object.keys(t).reduce((l,d)=>{if(MFe(a.keys,d)){const c=PFe(i.containerQueries?i:DFe,d);c&&(l[c]=o(t[d],d))}else if(Object.keys(a.values||JS).includes(d)){const c=a.up(d);l[c]=o(t[d],d)}else{const c=d;l[c]=t[c]}return l},{})}return o(t)}function _Fe(e={}){return e.keys?.reduce((t,o)=>{const i=e.up(o);return t[i]={},t},{})||{}}function bq(e,t){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},t)}function Vo(e){if(typeof e!="string")throw new Error(Fh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function XS(e,t,o=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&o){const i=`vars.${t}`.split(".").reduce((a,l)=>a&&a[l]?a[l]:null,e);if(i!=null)return i}return t.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function m$(e,t,o,i=o){let a;return typeof e=="function"?a=e(o):Array.isArray(e)?a=e[o]||i:a=XS(e,o)||i,t&&(a=t(a,i,e)),a}function Rn(e){const{prop:t,cssProperty:o=e.prop,themeKey:i,transform:a}=e,l=d=>{if(d[t]==null)return null;const c=d[t],u=d.theme,p=XS(u,i)||{};return Oh(d,c,h=>{let m=m$(p,a,h);return h===m&&typeof h=="string"&&(m=m$(p,a,`${t}${h==="default"?"":Vo(h)}`,h)),o===!1?m:{[o]:m}})};return l.propTypes={},l.filterProps=[t],l}function zFe(e){const t={};return o=>(t[o]===void 0&&(t[o]=e(o)),t[o])}const RFe={m:"margin",p:"padding"},FFe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vq={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OFe=zFe(e=>{if(e.length>2)if(vq[e])e=vq[e];else return[e];const[t,o]=e.split(""),i=RFe[t],a=FFe[o]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]}),rW=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iW=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rW,...iW];function dy(e,t,o,i){const a=XS(e,t,!0)??o;return typeof a=="number"||typeof a=="string"?l=>typeof l=="string"?l:typeof a=="string"?a.startsWith("var(")&&l===0?0:a.startsWith("var(")&&l===1?a:`calc(${l} * ${a})`:a*l:Array.isArray(a)?l=>{if(typeof l=="string")return l;const d=Math.abs(l),c=a[d];return l>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function nW(e){return dy(e,"spacing",8)}function cy(e,t){return typeof t=="string"||t==null?t:e(t)}function NFe(e,t){return o=>e.reduce((i,a)=>(i[a]=cy(t,o),i),{})}function HFe(e,t,o,i){if(!t.includes(o))return null;const a=OFe(o),l=NFe(a,i),d=e[o];return Oh(e,d,l)}function n7e(e,t){const o=nW(e.theme);return Object.keys(e).map(i=>HFe(e,t,i,o)).reduce(B8,{})}function ln(e){return n7e(e,rW)}ln.propTypes={};ln.filterProps=rW;function dn(e){return n7e(e,iW)}dn.propTypes={};dn.filterProps=iW;function a7e(e=8,t=nW({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return o.mui=!0,o}function eA(...e){const t=e.reduce((i,a)=>(a.filterProps.forEach(l=>{i[l]=a}),i),{}),o=i=>Object.keys(i).reduce((a,l)=>t[l]?B8(a,t[l](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Vd(e){return typeof e!="number"?e:`${e}px solid`}function uc(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const VFe=uc("border",Vd),WFe=uc("borderTop",Vd),UFe=uc("borderRight",Vd),QFe=uc("borderBottom",Vd),GFe=uc("borderLeft",Vd),YFe=uc("borderColor"),KFe=uc("borderTopColor"),qFe=uc("borderRightColor"),ZFe=uc("borderBottomColor"),JFe=uc("borderLeftColor"),XFe=uc("outline",Vd),eOe=uc("outlineColor"),tA=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dy(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:cy(t,i)});return Oh(e,e.borderRadius,o)}return null};tA.propTypes={};tA.filterProps=["borderRadius"];eA(VFe,WFe,UFe,QFe,GFe,YFe,KFe,qFe,ZFe,JFe,tA,XFe,eOe);const oA=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dy(e.theme,"spacing",8),o=i=>({gap:cy(t,i)});return Oh(e,e.gap,o)}return null};oA.propTypes={};oA.filterProps=["gap"];const rA=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dy(e.theme,"spacing",8),o=i=>({columnGap:cy(t,i)});return Oh(e,e.columnGap,o)}return null};rA.propTypes={};rA.filterProps=["columnGap"];const iA=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dy(e.theme,"spacing",8),o=i=>({rowGap:cy(t,i)});return Oh(e,e.rowGap,o)}return null};iA.propTypes={};iA.filterProps=["rowGap"];const tOe=Rn({prop:"gridColumn"}),oOe=Rn({prop:"gridRow"}),rOe=Rn({prop:"gridAutoFlow"}),iOe=Rn({prop:"gridAutoColumns"}),nOe=Rn({prop:"gridAutoRows"}),aOe=Rn({prop:"gridTemplateColumns"}),sOe=Rn({prop:"gridTemplateRows"}),lOe=Rn({prop:"gridTemplateAreas"}),dOe=Rn({prop:"gridArea"});eA(oA,rA,iA,tOe,oOe,rOe,iOe,nOe,aOe,sOe,lOe,dOe);function w5(e,t){return t==="grey"?t:e}const cOe=Rn({prop:"color",themeKey:"palette",transform:w5}),uOe=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w5}),pOe=Rn({prop:"backgroundColor",themeKey:"palette",transform:w5});eA(cOe,uOe,pOe);function td(e){return e<=1&&e!==0?`${e*100}%`:e}const hOe=Rn({prop:"width",transform:td}),aW=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=o=>{const i=e.theme?.breakpoints?.values?.[o]||JS[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:td(o)}};return Oh(e,e.maxWidth,t)}return null};aW.filterProps=["maxWidth"];const mOe=Rn({prop:"minWidth",transform:td}),gOe=Rn({prop:"height",transform:td}),fOe=Rn({prop:"maxHeight",transform:td}),xOe=Rn({prop:"minHeight",transform:td});Rn({prop:"size",cssProperty:"width",transform:td});Rn({prop:"size",cssProperty:"height",transform:td});const yOe=Rn({prop:"boxSizing"});eA(hOe,aW,mOe,gOe,fOe,xOe,yOe);const nA={border:{themeKey:"borders",transform:Vd},borderTop:{themeKey:"borders",transform:Vd},borderRight:{themeKey:"borders",transform:Vd},borderBottom:{themeKey:"borders",transform:Vd},borderLeft:{themeKey:"borders",transform:Vd},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vd},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tA},color:{themeKey:"palette",transform:w5},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w5},backgroundColor:{themeKey:"palette",transform:w5},p:{style:dn},pt:{style:dn},pr:{style:dn},pb:{style:dn},pl:{style:dn},px:{style:dn},py:{style:dn},padding:{style:dn},paddingTop:{style:dn},paddingRight:{style:dn},paddingBottom:{style:dn},paddingLeft:{style:dn},paddingX:{style:dn},paddingY:{style:dn},paddingInline:{style:dn},paddingInlineStart:{style:dn},paddingInlineEnd:{style:dn},paddingBlock:{style:dn},paddingBlockStart:{style:dn},paddingBlockEnd:{style:dn},m:{style:ln},mt:{style:ln},mr:{style:ln},mb:{style:ln},ml:{style:ln},mx:{style:ln},my:{style:ln},margin:{style:ln},marginTop:{style:ln},marginRight:{style:ln},marginBottom:{style:ln},marginLeft:{style:ln},marginX:{style:ln},marginY:{style:ln},marginInline:{style:ln},marginInlineStart:{style:ln},marginInlineEnd:{style:ln},marginBlock:{style:ln},marginBlockStart:{style:ln},marginBlockEnd:{style:ln},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oA},rowGap:{style:iA},columnGap:{style:rA},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:td},maxWidth:{style:aW},minWidth:{transform:td},height:{transform:td},maxHeight:{transform:td},minHeight:{transform:td},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wOe(...e){const t=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),o=new Set(t);return e.every(i=>o.size===Object.keys(i).length)}function bOe(e,t){return typeof e=="function"?e(t):e}function vOe(){function e(o,i,a,l){const d={[o]:i,theme:a},c=l[o];if(!c)return{[o]:i};const{cssProperty:u=o,themeKey:p,transform:h,style:m}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[o]:i};const f=XS(a,p)||{};return m?m(d):Oh(d,i,x=>{let y=m$(f,h,x);return x===y&&typeof x=="string"&&(y=m$(f,h,`${o}${x==="default"?"":Vo(x)}`,x)),u===!1?y:{[u]:y}})}function t(o){const{sx:i,theme:a={},nested:l}=o||{};if(!i)return null;const d=a.unstable_sxConfig??nA;function c(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=_Fe(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=bOe(p[x],a);if(y!=null)if(typeof y=="object")if(d[x])f=B8(f,e(x,y,a,d));else{const w=Oh({theme:a},y,b=>({[x]:b}));wOe(w,y)?f[x]=t({sx:y,theme:a,nested:!0}):f=B8(f,w)}else f=B8(f,e(x,y,a,d))}),!l&&a.modularCssLayers?{"@layer sx":yq(a,bq(m,f))}:yq(a,bq(m,f))}return Array.isArray(i)?i.map(c):c(i)}return t}const k3=vOe();k3.filterProps=["sx"];function COe(e,t){const o=this;if(o.vars){if(!o.colorSchemes?.[e]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return o.palette.mode===e?t:{}}function sW(e={},...t){const{breakpoints:o={},palette:i={},spacing:a,shape:l={},...d}=e,c=IFe(o),u=a7e(a);let p=$s({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...BFe,...l}},d);return p=TFe(p),p.applyStyles=COe,p=t.reduce((h,m)=>$s(h,m),p),p.unstable_sxConfig={...nA,...d?.unstable_sxConfig},p.unstable_sx=function(h){return k3({sx:h,theme:this})},p}function $Oe(e){return Object.keys(e).length===0}function lW(e=null){const t=g.useContext(H5e);return!t||$Oe(t)?e:t}const kOe=sW();function s7e(e=kOe){return lW(e)}function Cq(e){const t=g2(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function l7e({styles:e,themeId:t,defaultTheme:o={}}){const i=s7e(o),a=t&&i[t]||i;let l=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(l)?l=l.map(d=>Cq(typeof d=="function"?d(a):d)):l=Cq(l)),s.jsx(o7e,{styles:l})}const $q=e=>e,SOe=()=>{let e=$q;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$q}}},AOe=SOe();function d7e(e){var t,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=d7e(e[t]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function jo(){for(var e,t,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=d7e(e))&&(i&&(i+=" "),i+=t);return i}const EOe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ur(e,t,o="Mui"){const i=EOe[t];return i?`${o}-${i}`:`${AOe.generate(e)}-${t}`}function Tr(e,t,o="Mui"){const i={};return t.forEach(a=>{i[a]=Ur(e,a,o)}),i}function c7e(e){const{variants:t,...o}=e,i={variants:t,style:g2(o),isProcessed:!0};return i.style===o||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=g2(a.style))}),i}const LOe=sW();function jI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function qg(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function jOe(e){return e?(t,o)=>o[e]:null}function IOe(e,t,o){e.theme=TOe(e.theme)?o:e.theme[t]||e.theme}function TC(e,t,o){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(a=>TC(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?qg(i.style,o):i.style;else{const{variants:l,...d}=i;a=o?qg(g2(d),o):d}return u7e(e,i.variants,[a],o)}return i?.isProcessed?o?qg(g2(i.style),o):i.style:o?qg(g2(i),o):i}function u7e(e,t,o=[],i=void 0){let a;e:for(let l=0;l<t.length;l+=1){const d=t[l];if(typeof d.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!d.props(a))continue}else for(const c in d.props)if(e[c]!==d.props[c]&&e.ownerState?.[c]!==d.props[c])continue e;typeof d.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?qg(g2(d.style(a)),i):d.style(a))):o.push(i?qg(g2(d.style),i):d.style)}return o}function MOe(e={}){const{themeId:t,defaultTheme:o=LOe,rootShouldForwardProp:i=jI,slotShouldForwardProp:a=jI}=e;function l(d){IOe(d,t,o)}return(d,c={})=>{AFe(d,I=>I.filter(L=>L!==k3));const{name:u,slot:p,skipVariantsResolver:h,skipSx:m,overridesResolver:f=jOe(DOe(p)),...x}=c,y=u&&u.startsWith("Mui")||p?"components":"custom",w=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,b=m||!1;let C=jI;p==="Root"||p==="root"?C=i:p?C=a:BOe(d)&&(C=void 0);const k=SFe(d,{shouldForwardProp:C,label:POe(),...x}),A=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(L){return TC(L,I,L.theme.modularCssLayers?y:void 0)};if(xh(I)){const L=c7e(I);return function(P){return L.variants?TC(P,L,P.theme.modularCssLayers?y:void 0):P.theme.modularCssLayers?qg(L.style,y):L.style}}return I},E=(...I)=>{const L=[],P=I.map(A),T=[];if(L.push(l),u&&f&&T.push(function(z){const _=z.theme.components?.[u]?.styleOverrides;if(!_)return null;const q={};for(const Z in _)q[Z]=TC(z,_[Z],z.theme.modularCssLayers?"theme":void 0);return f(z,q)}),u&&!w&&T.push(function(z){const _=z.theme?.components?.[u]?.variants;return _?u7e(z,_,[],z.theme.modularCssLayers?"theme":void 0):null}),b||T.push(k3),Array.isArray(P[0])){const z=P.shift(),_=new Array(L.length).fill(""),q=new Array(T.length).fill("");let Z;Z=[..._,...z,...q],Z.raw=[..._,...z.raw,...q],L.unshift(Z)}const B=[...L,...P,...T],D=k(...B);return d.muiName&&(D.muiName=d.muiName),D};return k.withConfig&&(E.withConfig=k.withConfig),E}}function POe(e,t){return void 0}function TOe(e){for(const t in e)return!1;return!0}function BOe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function DOe(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function lO(e,t,o=!1){const i={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if(l==="components"||l==="slots")i[l]={...e[l],...i[l]};else if(l==="componentsProps"||l==="slotProps"){const d=e[l],c=t[l];if(!c)i[l]=d||{};else if(!d)i[l]=c;else{i[l]={...c};for(const u in d)if(Object.prototype.hasOwnProperty.call(d,u)){const p=u;i[l][p]=lO(d[p],c[p],o)}}}else l==="className"&&o&&t.className?i.className=jo(e?.className,t?.className):l==="style"&&o&&t.style?i.style={...e?.style,...t?.style}:i[l]===void 0&&(i[l]=e[l])}return i}const pd=typeof window<"u"?g.useLayoutEffect:g.useEffect;function _Oe(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}function dW(e,t=0,o=1){return _Oe(e,t,o)}function zOe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&o[0].length===1&&(o=o.map(i=>i+i)),o?`rgb${o.length===4?"a":""}(${o.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function j2(e){if(e.type)return e;if(e.charAt(0)==="#")return j2(zOe(e));const t=e.indexOf("("),o=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Fh(9,e));let i=e.substring(t+1,e.length-1),a;if(o==="color"){if(i=i.split(" "),a=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Fh(10,a))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:o,values:i,colorSpace:a}}const ROe=e=>{const t=j2(e);return t.values.slice(0,3).map((o,i)=>t.type.includes("hsl")&&i!==0?`${o}%`:o).join(" ")},i8=(e,t)=>{try{return ROe(e)}catch{return e}};function aA(e){const{type:t,colorSpace:o}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((a,l)=>l<3?parseInt(a,10):a):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${o} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function p7e(e){e=j2(e);const{values:t}=e,o=t[0],i=t[1]/100,a=t[2]/100,l=i*Math.min(a,1-a),d=(p,h=(p+o/30)%12)=>a-l*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),aA({type:c,values:u})}function dO(e){e=j2(e);let t=e.type==="hsl"||e.type==="hsla"?j2(p7e(e)).values:e.values;return t=t.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FOe(e,t){const o=dO(e),i=dO(t);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}function g$(e,t){return e=j2(e),t=dW(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,aA(e)}function Km(e,t,o){try{return g$(e,t)}catch{return e}}function sA(e,t){if(e=j2(e),t=dW(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-t;return aA(e)}function oi(e,t,o){try{return sA(e,t)}catch{return e}}function lA(e,t){if(e=j2(e),t=dW(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return aA(e)}function ri(e,t,o){try{return lA(e,t)}catch{return e}}function OOe(e,t=.15){return dO(e)>.5?sA(e,t):lA(e,t)}function Fw(e,t,o){try{return OOe(e,t)}catch{return e}}const h7e=g.createContext(null);function cW(){return g.useContext(h7e)}const NOe=typeof Symbol=="function"&&Symbol.for,HOe=NOe?Symbol.for("mui.nested"):"__THEME_NESTED__";function VOe(e,t){return typeof t=="function"?t(e):{...e,...t}}function WOe(e){const{children:t,theme:o}=e,i=cW(),a=g.useMemo(()=>{const l=i===null?{...o}:VOe(i,o);return l!=null&&(l[HOe]=i!==null),l},[o,i]);return s.jsx(h7e.Provider,{value:a,children:t})}const m7e=g.createContext();function UOe({value:e,...t}){return s.jsx(m7e.Provider,{value:e??!0,...t})}const $7=()=>g.useContext(m7e)??!1,g7e=g.createContext(void 0);function QOe({value:e,children:t}){return s.jsx(g7e.Provider,{value:e,children:t})}function GOe(e){const{theme:t,name:o,props:i}=e;if(!t||!t.components||!t.components[o])return i;const a=t.components[o];return a.defaultProps?lO(a.defaultProps,i,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?lO(a,i,t.components.mergeClassNameAndStyle):i}function YOe({props:e,name:t}){const o=g.useContext(g7e);return GOe({props:e,name:t,theme:{components:o}})}let kq=0;function KOe(e){const[t,o]=g.useState(e),i=e||t;return g.useEffect(()=>{t==null&&(kq+=1,o(`mui-${kq}`))},[t]),i}const qOe={...w_e},Sq=qOe.useId;function dA(e){if(Sq!==void 0){const t=Sq();return e??t}return KOe(e)}function ZOe(e){const t=lW(),o=dA()||"",{modularCssLayers:i}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||t!==null?a="":typeof i=="string"?a=i.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,pd(()=>{const l=document.querySelector("head");if(!l)return;const d=l.firstChild;if(a){if(d&&d.hasAttribute?.("data-mui-layer-order")&&d.getAttribute("data-mui-layer-order")===o)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",o),c.textContent=a,l.prepend(c)}else l.querySelector(`style[data-mui-layer-order="${o}"]`)?.remove()},[a,o]),a?s.jsx(l7e,{styles:a}):null}const Aq={};function Eq(e,t,o,i=!1){return g.useMemo(()=>{const a=e&&t[e]||t;if(typeof o=="function"){const l=o(a),d=e?{...t,[e]:l}:l;return i?()=>d:d}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,i])}function f7e(e){const{children:t,theme:o,themeId:i}=e,a=lW(Aq),l=cW()||Aq,d=Eq(i,a,o),c=Eq(i,l,o,!0),u=(i?d[i]:d).direction==="rtl",p=ZOe(d);return s.jsx(WOe,{theme:c,children:s.jsx(H5e.Provider,{value:d,children:s.jsx(UOe,{value:u,children:s.jsxs(QOe,{value:i?d[i].components:d.components,children:[p,t]})})})})}const Lq={theme:void 0};function JOe(e){let t,o;return function(i){let a=t;return(a===void 0||i.theme!==o)&&(Lq.theme=i.theme,a=c7e(e(Lq)),t=a,o=i.theme),a}}const uW="mode",pW="color-scheme",XOe="data-color-scheme";function eNe(e){const{defaultMode:t="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:i="dark",modeStorageKey:a=uW,colorSchemeStorageKey:l=pW,attribute:d=XOe,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let p="",h=d;if(d==="class"&&(h=".%s"),d==="data"&&(h="[data-%s]"),h.startsWith(".")){const f=h.substring(1);p+=`${c}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/empty-D46MeKDT.js","assets/sentry-DPjqAmgS.js","assets/empty-tmoYB8lV.js","assets/index-C3pBETIi.js","assets/index-DgTg_FC9.js","assets/zeni-epic-state-C-CH5wAG.js","assets/core-jCXGTQvA.js","assets/utils-BSshncBl.js","assets/recharts-DADINQF-.js","assets/url-C3rUOUId.js","assets/index-CRFInH1K.js","assets/index-D6plUv8O.js","assets/url-DcdgW2qn.js","assets/index-BXyZw3lo.js","assets/ScreenRoutes-DJbaAuJs.js","assets/liveblocks-DZkCH2xN.js","assets/analyticsHelper-CnH4hQBr.js","assets/mui-Dplz67jq.js","assets/SignInScreen-zP9a_Vt5.js","assets/analytics-bLGoMt_1.js","assets/lottie-DUyJu0pd.js","assets/lexical-LPziZn5A.js"])))=>i.map(i=>d[i]);
2
+ import{a as g,b as $,R as w_e,c as $3,p as dh,r as _l,g as OV,e as NK,f as b_e,s as HK,w as v_e,i as C_e,S as $_e,j as k_e,k as S_e,l as A_e,m as E_e}from"./sentry-DPjqAmgS.js";import{j as co,_ as f5e,a as fd,u as x5e,T as L_e,C as j_e,b as I_e,c as HS,d as VS,e as M_e,f as y5e,g as P_e,h as T_e,L as B_e,i as VK,k as D_e,l as __e,P as z_e,m as R_e,n as F_e,o as w5e,p as O_e,q as N_e,I as WK,r as H_e,s as V_e,t as W_e,v as U_e,w as Q_e,x as G_e,y as b5e,z as Y_e,A as K_e,B as q_e}from"./liveblocks-DZkCH2xN.js";import{f as v5e,R as Yg,r as zn,P as Xi,u as WS,g as Zu,h as Z_e,i as NV,j as J_e,k as X_e,l as $I,N as eze,m as tze,n as oze,B as rze}from"./core-jCXGTQvA.js";import{H as l$,ba as Kg,bb as ize,bc as UK,bd as N3,be as Nr,bf as C5e,bg as US,bh as kr,bi as nze,bj as aze,bk as O5,bl as E2,bm as HV,bn as $5e,bo as sze,bp as k5e,bq as lze,br as S5e,bs as dze,bt as Ei,bu as N5,bv as Lu,bw as cze,bx as uze,by as pze,bz as hze,bA as QK,bB as mze,bC as gze,bD as fze,bE as xze,bF as VV,bG as A5e,bH as L2,bI as yze,bJ as E5e,bK as XF,bL as GK,bM as YK,bN as KK,bO as Vs,bP as WV,bQ as UV,bR as v7,bS as QV,bT as GV,bU as YV,bV as KV,bW as wze,bX as d$,bY as bze,bZ as L5e,b_ as qV,b$ as vze,c0 as Lh,c1 as iy,c2 as ny,c3 as Cze,c4 as $ze,c5 as kze,c6 as Sze,c7 as Aze,c8 as Eze,c9 as Lze,ca as jze,cb as Ize,cc as Mze,cd as Pze,ce as Tze,cf as Bze,cg as Dze,ch as _ze,ci as zze,cj as Rze,ck as Fze,cl as Oze,cm as Nze,cn as Hze,co as j5e,cp as Vze,cq as qK,cr as Wze,cs as Uze,ct as Qze,cu as sx,cv as I5e,cw as M5e,cx as Gze,cy as ZK,cz as P5e,cA as Yze,cB as JK,cC as T5e,cD as B5e,cE as D5e,cF as _5e,cG as z5e,cH as Kze,cI as R5e,cJ as qze,cK as Zze,cL as Jze,cM as F5e,cN as eO,cO as Xze,cP as O5e,cQ as N5e,cR as eRe,cS as tRe,cT as oRe,cU as rRe,cV as iRe,cW as nRe,cX as aRe,cY as sRe,v as lRe,cZ as QS,c_ as tO,c$ as oO,d0 as dRe,d1 as cRe,d2 as uRe,d3 as pRe,d4 as hRe,d5 as mRe,d6 as gRe,d7 as fRe,d8 as xRe,d9 as yRe,da as XK,db as wRe,dc as bRe,dd as vRe,de as CRe,df as $Re}from"./zeni-epic-state-C-CH5wAG.js";import{T as H5e,j as Eo,n,c as me,k as Nt,G as ay,C as V5e,u as W5e,a as kRe}from"./mui-Dplz67jq.js";import{r as SRe,m as ju}from"./analytics-bLGoMt_1.js";import{L as rO}from"./lottie-DUyJu0pd.js";import{r as Xn}from"./lexical-LPziZn5A.js";import{E as wi,c as GS,P as ARe,R as iO,F as c$,X as cd,Y as ud,G as qh,H as u$,I as YS,J as Zh,K as U5e,L as ERe,M as LRe,N as H3,O as ZV,Q as JV,S as sy,U as jRe}from"./recharts-DADINQF-.js";import{r as IRe}from"./utils-BSshncBl.js";(function(){try{var e=typeof window<"u"?window:typeof $3<"u"?$3:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4f2fa5a4-51c6-4827-82a8-239685bb0913",e._sentryDebugIdIdentifier="sentry-dbid-4f2fa5a4-51c6-4827-82a8-239685bb0913")}catch{}})();(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function o(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(a){if(a.ep)return;a.ep=!0;const l=o(a);fetch(a.href,l)}})();var zw={},eq;function MRe(){if(eq)return zw;eq=1;var e=v5e();return zw.createRoot=e.createRoot,zw.hydrateRoot=e.hydrateRoot,zw}var PRe=MRe(),yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof $3<"u"?$3:typeof self<"u"?self:{};function wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tq={exports:{}},g6={},oq;function TRe(){if(oq)return g6;oq=1;var e=$,t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(c,u,p){var h,m={},f=null,x=null;p!==void 0&&(f=""+p),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(x=u.ref);for(h in u)i.call(u,h)&&!l.hasOwnProperty(h)&&(m[h]=u[h]);if(c&&c.defaultProps)for(h in u=c.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:t,type:c,key:f,ref:x,props:m,_owner:a.current}}return g6.Fragment=o,g6.jsx=d,g6.jsxs=d,g6}var rq;function Q5e(){return rq||(rq=1,tq.exports=TRe()),tq.exports}var s=Q5e();const BRe=g.createContext(null),kI={didCatch:!1,error:null};let DRe=class extends g.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=kI}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var t,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];(t=(o=this.props).onReset)===null||t===void 0||t.call(o,{args:a,reason:"imperative-api"}),this.setState(kI)}}componentDidCatch(e,t){var o,i;(o=(i=this.props).onError)===null||o===void 0||o.call(i,e,t)}componentDidUpdate(e,t){const{didCatch:o}=this.state,{resetKeys:i}=this.props;if(o&&t.error!==null&&_Re(e.resetKeys,i)){var a,l;(a=(l=this.props).onReset)===null||a===void 0||a.call(l,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(kI)}}render(){const{children:e,fallbackRender:t,FallbackComponent:o,fallback:i}=this.props,{didCatch:a,error:l}=this.state;let d=e;if(a){const c={error:l,resetErrorBoundary:this.resetErrorBoundary};if(typeof t=="function")d=t(c);else if(o)d=g.createElement(o,c);else if(i!==void 0)d=i;else throw l}return g.createElement(BRe.Provider,{value:{didCatch:a,error:l,resetErrorBoundary:this.resetErrorBoundary}},d)}};function _Re(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((o,i)=>!Object.is(o,t[i]))}var nO={exports:{}},zRe=nO.exports,iq;function RRe(){return iq||(iq=1,function(e){(function(t,o){e.exports?e.exports=o():t.numeral=o()})(zRe,function(){var t,o,i="2.0.6",a={},l={},d={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:d.currentLocale,zeroFormat:d.zeroFormat,nullFormat:d.nullFormat,defaultFormat:d.defaultFormat,scalePercentBy100:d.scalePercentBy100};function u(p,h){this._input=p,this._value=h}return t=function(p){var h,m,f,x;if(t.isNumeral(p))h=p.value();else if(p===0||typeof p>"u")h=0;else if(p===null||o.isNaN(p))h=null;else if(typeof p=="string")if(c.zeroFormat&&p===c.zeroFormat)h=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)h=null;else{for(m in a)if(x=typeof a[m].regexps.unformat=="function"?a[m].regexps.unformat():a[m].regexps.unformat,x&&p.match(x)){f=a[m].unformat;break}f=f||t._.stringToNumber,h=f(p)}else h=Number(p)||null;return new u(p,h)},t.version=i,t.isNumeral=function(p){return p instanceof u},t._=o={numberToFormat:function(p,h,m){var f=l[t.options.currentLocale],x=!1,y=!1,w=0,b="",C=1e12,k=1e9,A=1e6,E=1e3,I="",L=!1,P,T,B,D,z,_,q;if(p=p||0,T=Math.abs(p),t._.includes(h,"(")?(x=!0,h=h.replace(/[\(|\)]/g,"")):(t._.includes(h,"+")||t._.includes(h,"-"))&&(z=t._.includes(h,"+")?h.indexOf("+"):p<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),t._.includes(h,"a")&&(P=h.match(/a(k|m|b|t)?/),P=P?P[1]:!1,t._.includes(h," a")&&(b=" "),h=h.replace(new RegExp(b+"a[kmbt]?"),""),T>=C&&!P||P==="t"?(b+=f.abbreviations.trillion,p=p/C):T<C&&T>=k&&!P||P==="b"?(b+=f.abbreviations.billion,p=p/k):T<k&&T>=A&&!P||P==="m"?(b+=f.abbreviations.million,p=p/A):(T<A&&T>=E&&!P||P==="k")&&(b+=f.abbreviations.thousand,p=p/E)),t._.includes(h,"[.]")&&(y=!0,h=h.replace("[.]",".")),B=p.toString().split(".")[0],D=h.split(".")[1],_=h.indexOf(","),w=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,D?(t._.includes(D,"[")?(D=D.replace("]",""),D=D.split("["),I=t._.toFixed(p,D[0].length+D[1].length,m,D[1].length)):I=t._.toFixed(p,D.length,m),B=I.split(".")[0],t._.includes(I,".")?I=f.delimiters.decimal+I.split(".")[1]:I="",y&&Number(I.slice(1))===0&&(I="")):B=t._.toFixed(p,0,m),b&&!P&&Number(B)>=1e3&&b!==f.abbreviations.trillion)switch(B=String(Number(B)/1e3),b){case f.abbreviations.thousand:b=f.abbreviations.million;break;case f.abbreviations.million:b=f.abbreviations.billion;break;case f.abbreviations.billion:b=f.abbreviations.trillion;break}if(t._.includes(B,"-")&&(B=B.slice(1),L=!0),B.length<w)for(var Z=w-B.length;Z>0;Z--)B="0"+B;return _>-1&&(B=B.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),h.indexOf(".")===0&&(B=""),q=B+I+(b||""),x?q=(x&&L?"(":"")+q+(x&&L?")":""):z>=0?q=z===0?(L?"-":"+")+q:q+(L?"-":"+"):L&&(q="-"+q),q},stringToNumber:function(p){var h=l[c.currentLocale],m=p,f={thousand:3,million:6,billion:9,trillion:12},x,y,w;if(c.zeroFormat&&p===c.zeroFormat)y=0;else if(c.nullFormat&&p===c.nullFormat||!p.replace(/[^0-9]+/g,"").length)y=null;else{y=1,h.delimiters.decimal!=="."&&(p=p.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(x in f)if(w=new RegExp("[^a-zA-Z]"+h.abbreviations[x]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),m.match(w)){y*=Math.pow(10,f[x]);break}y*=(p.split("-").length+Math.min(p.split("(").length-1,p.split(")").length-1))%2?1:-1,p=p.replace(/[^0-9\.]+/g,""),y*=Number(p)}return y},isNaN:function(p){return typeof p=="number"&&isNaN(p)},includes:function(p,h){return p.indexOf(h)!==-1},insert:function(p,h,m){return p.slice(0,m)+h+p.slice(m)},reduce:function(p,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var m=Object(p),f=m.length>>>0,x=0,y;if(arguments.length===3)y=arguments[2];else{for(;x<f&&!(x in m);)x++;if(x>=f)throw new TypeError("Reduce of empty array with no initial value");y=m[x++]}for(;x<f;x++)x in m&&(y=h(y,m[x],x,m));return y},multiplier:function(p){var h=p.toString().split(".");return h.length<2?1:Math.pow(10,h[1].length)},correctionFactor:function(){var p=Array.prototype.slice.call(arguments);return p.reduce(function(h,m){var f=o.multiplier(m);return h>f?h:f},1)},toFixed:function(p,h,m,f){var x=p.toString().split("."),y=h-(f||0),w,b,C,k;return x.length===2?w=Math.min(Math.max(x[1].length,y),h):w=y,C=Math.pow(10,w),k=(m(p+"e+"+w)/C).toFixed(w),f>h-w&&(b=new RegExp("\\.?0{1,"+(f-(h-w))+"}$"),k=k.replace(b,"")),k}},t.options=c,t.formats=a,t.locales=l,t.locale=function(p){return p&&(c.currentLocale=p.toLowerCase()),c.currentLocale},t.localeData=function(p){if(!p)return l[c.currentLocale];if(p=p.toLowerCase(),!l[p])throw new Error("Unknown locale : "+p);return l[p]},t.reset=function(){for(var p in d)c[p]=d[p]},t.zeroFormat=function(p){c.zeroFormat=typeof p=="string"?p:null},t.nullFormat=function(p){c.nullFormat=typeof p=="string"?p:null},t.defaultFormat=function(p){c.defaultFormat=typeof p=="string"?p:"0.0"},t.register=function(p,h,m){if(h=h.toLowerCase(),this[p+"s"][h])throw new TypeError(h+" "+p+" already registered.");return this[p+"s"][h]=m,m},t.validate=function(p,h){var m,f,x,y,w,b,C,k;if(typeof p!="string"&&(p+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",p)),p=p.trim(),p.match(/^\d+$/))return!0;if(p==="")return!1;try{C=t.localeData(h)}catch{C=t.localeData(t.locale())}return x=C.currency.symbol,w=C.abbreviations,m=C.delimiters.decimal,C.delimiters.thousands==="."?f="\\.":f=C.delimiters.thousands,k=p.match(/^[^\d]+/),k!==null&&(p=p.substr(1),k[0]!==x)||(k=p.match(/[^\d]+$/),k!==null&&(p=p.slice(0,-1),k[0]!==w.thousand&&k[0]!==w.million&&k[0]!==w.billion&&k[0]!==w.trillion))?!1:(b=new RegExp(f+"{2}"),p.match(/[^\d.,]/g)?!1:(y=p.split(m),y.length>2?!1:y.length<2?!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b):y[0].length===1?!!y[0].match(/^\d+$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/):!!y[0].match(/^\d+.*\d$/)&&!y[0].match(b)&&!!y[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(p,h){var m=this._value,f=p||c.defaultFormat,x,y,w;if(h=h||Math.round,m===0&&c.zeroFormat!==null)y=c.zeroFormat;else if(m===null&&c.nullFormat!==null)y=c.nullFormat;else{for(x in a)if(f.match(a[x].regexps.format)){w=a[x].format;break}w=w||t._.numberToFormat,y=w(m,f,h)}return y},value:function(){return this._value},input:function(){return this._input},set:function(p){return this._value=Number(p),this},add:function(p){var h=o.correctionFactor.call(null,this._value,p);function m(f,x,y,w){return f+Math.round(h*x)}return this._value=o.reduce([this._value,p],m,0)/h,this},subtract:function(p){var h=o.correctionFactor.call(null,this._value,p);function m(f,x,y,w){return f-Math.round(h*x)}return this._value=o.reduce([p],m,Math.round(this._value*h))/h,this},multiply:function(p){function h(m,f,x,y){var w=o.correctionFactor(m,f);return Math.round(m*w)*Math.round(f*w)/Math.round(w*w)}return this._value=o.reduce([this._value,p],h,1),this},divide:function(p){function h(m,f,x,y){var w=o.correctionFactor(m,f);return Math.round(m*w)/Math.round(f*w)}return this._value=o.reduce([this._value,p],h),this},difference:function(p){return Math.abs(t(this._value).subtract(p).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(p){var h=p%10;return~~(p%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(p,h,m){var f=t._.includes(h," BPS")?" ":"",x;return p=p*1e4,h=h.replace(/\s?BPS/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"BPS"),x=x.join("")):x=x+f+"BPS",x},unformat:function(p){return+(t._.stringToNumber(p)*1e-4).toFixed(15)}})}(),function(){var p={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},m=p.suffixes.concat(h.suffixes.filter(function(x){return p.suffixes.indexOf(x)<0})),f=m.join("|");f="("+f.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(x,y,w){var b,C=t._.includes(y,"ib")?h:p,k=t._.includes(y," b")||t._.includes(y," ib")?" ":"",A,E,I;for(y=y.replace(/\s?i?b/,""),A=0;A<=C.suffixes.length;A++)if(E=Math.pow(C.base,A),I=Math.pow(C.base,A+1),x===null||x===0||x>=E&&x<I){k+=C.suffixes[A],E>0&&(x=x/E);break}return b=t._.numberToFormat(x,y,w),b+k},unformat:function(x){var y=t._.stringToNumber(x),w,b;if(y){for(w=p.suffixes.length-1;w>=0;w--){if(t._.includes(x,p.suffixes[w])){b=Math.pow(p.base,w);break}if(t._.includes(x,h.suffixes[w])){b=Math.pow(h.base,w);break}}y*=b||1}return y}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(p,h,m){var f=t.locales[t.options.currentLocale],x={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},y,w,b;for(h=h.replace(/\s?\$\s?/,""),y=t._.numberToFormat(p,h,m),p>=0?(x.before=x.before.replace(/[\-\(]/,""),x.after=x.after.replace(/[\-\)]/,"")):p<0&&!t._.includes(x.before,"-")&&!t._.includes(x.before,"(")&&(x.before="-"+x.before),b=0;b<x.before.length;b++)switch(w=x.before[b],w){case"$":y=t._.insert(y,f.currency.symbol,b);break;case" ":y=t._.insert(y," ",b+f.currency.symbol.length-1);break}for(b=x.after.length-1;b>=0;b--)switch(w=x.after[b],w){case"$":y=b===x.after.length-1?y+f.currency.symbol:t._.insert(y,f.currency.symbol,-(x.after.length-(1+b)));break;case" ":y=b===x.after.length-1?y+" ":t._.insert(y," ",-(x.after.length-(1+b)+f.currency.symbol.length-1));break}return y}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(p,h,m){var f,x=typeof p=="number"&&!t._.isNaN(p)?p.toExponential():"0e+0",y=x.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),f=t._.numberToFormat(Number(y[0]),h,m),f+"e"+y[1]},unformat:function(p){var h=t._.includes(p,"e+")?p.split("e+"):p.split("e-"),m=Number(h[0]),f=Number(h[1]);f=t._.includes(p,"e-")?f*=-1:f;function x(y,w,b,C){var k=t._.correctionFactor(y,w),A=y*k*(w*k)/(k*k);return A}return t._.reduce([m,Math.pow(10,f)],x,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(p,h,m){var f=t.locales[t.options.currentLocale],x,y=t._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),y+=f.ordinal(p),x=t._.numberToFormat(p,h,m),x+y}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(p,h,m){var f=t._.includes(h," %")?" ":"",x;return t.options.scalePercentBy100&&(p=p*100),h=h.replace(/\s?\%/,""),x=t._.numberToFormat(p,h,m),t._.includes(x,")")?(x=x.split(""),x.splice(-1,0,f+"%"),x=x.join("")):x=x+f+"%",x},unformat:function(p){var h=t._.stringToNumber(p);return t.options.scalePercentBy100?h*.01:h}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(p,h,m){var f=Math.floor(p/60/60),x=Math.floor((p-f*60*60)/60),y=Math.round(p-f*60*60-x*60);return f+":"+(x<10?"0"+x:x)+":"+(y<10?"0"+y:y)},unformat:function(p){var h=p.split(":"),m=0;return h.length===3?(m=m+Number(h[0])*60*60,m=m+Number(h[1])*60,m=m+Number(h[2])):h.length===2&&(m=m+Number(h[0])*60,m=m+Number(h[1])),Number(m)}})}(),t})}(nO)),nO.exports}var FRe=RRe();const Th=wr(FRe);function Fh(e,...t){const o=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${o} for the full message.`}const Bh="$$material";function ORe(e){for(var t=0,o,i=0,a=e.length;a>=4;++i,a-=4)o=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var NRe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function HRe(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var VRe=/[A-Z]|^ms/g,WRe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G5e=function(e){return e.charCodeAt(1)===45},nq=function(e){return e!=null&&typeof e!="boolean"},SI=HRe(function(e){return G5e(e)?e:e.replace(VRe,"-$&").toLowerCase()}),aq=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(WRe,function(o,i,a){return r2={name:i,styles:a,next:r2},i})}return NRe[e]!==1&&!G5e(e)&&typeof t=="number"&&t!==0?t+"px":t};function p$(e,t,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":{var a=o;if(a.anim===1)return r2={name:a.name,styles:a.styles,next:r2},a.name;var l=o;if(l.styles!==void 0){var d=l.next;if(d!==void 0)for(;d!==void 0;)r2={name:d.name,styles:d.styles,next:r2},d=d.next;var c=l.styles+";";return c}return URe(e,t,o)}}var u=o;return u}function URe(e,t,o){var i="";if(Array.isArray(o))for(var a=0;a<o.length;a++)i+=p$(e,t,o[a])+";";else for(var l in o){var d=o[l];if(typeof d!="object"){var c=d;nq(c)&&(i+=SI(l)+":"+aq(l,c)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&t==null)for(var u=0;u<d.length;u++)nq(d[u])&&(i+=SI(l)+":"+aq(l,d[u])+";");else{var p=p$(e,t,d);switch(l){case"animation":case"animationName":{i+=SI(l)+":"+p+";";break}default:i+=l+"{"+p+"}"}}}return i}var sq=/label:\s*([^\s;{]+)\s*(;|$)/g,r2;function QRe(e,t,o){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";r2=void 0;var l=e[0];if(l==null||l.raw===void 0)i=!1,a+=p$(o,t,l);else{var d=l;a+=d[0]}for(var c=1;c<e.length;c++)if(a+=p$(o,t,e[c]),i){var u=l;a+=u[c]}sq.lastIndex=0;for(var p="",h;(h=sq.exec(a))!==null;)p+="-"+h[1];var m=ORe(a)+p;return{name:m,styles:a,next:r2}}var AI={exports:{}},EI,lq;function GRe(){if(lq)return EI;lq=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return EI=e,EI}var LI,dq;function YRe(){if(dq)return LI;dq=1;var e=GRe();function t(){}function o(){}return o.resetWarningCache=t,LI=function(){function i(d,c,u,p,h,m){if(m!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}i.isRequired=i;function a(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:t};return l.PropTypes=l,l},LI}var cq;function XV(){return cq||(cq=1,AI.exports=YRe()()),AI.exports}var KRe=XV();const Tt=wr(KRe);function qRe(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ZRe(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var JRe=function(){function e(o){var i=this;this._insertTag=function(a){var l;i.tags.length===0?i.insertionPoint?l=i.insertionPoint.nextSibling:i.prepend?l=i.container.firstChild:l=i.before:l=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(a,l),i.tags.push(a)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ZRe(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=qRe(i);try{a.insertRule(o,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},e}(),ps="-ms-",h$="-moz-",Gr="-webkit-",Y5e="comm",eW="rule",tW="decl",XRe="@import",K5e="@keyframes",eFe="@layer",tFe=Math.abs,KS=String.fromCharCode,oFe=Object.assign;function rFe(e,t){return qa(e,0)^45?(((t<<2^qa(e,0))<<2^qa(e,1))<<2^qa(e,2))<<2^qa(e,3):0}function q5e(e){return e.trim()}function iFe(e,t){return(e=t.exec(e))?e[0]:e}function Yr(e,t,o){return e.replace(t,o)}function aO(e,t){return e.indexOf(t)}function qa(e,t){return e.charCodeAt(t)|0}function lx(e,t,o){return e.slice(t,o)}function Iu(e){return e.length}function oW(e){return e.length}function Rw(e,t){return t.push(e),e}function nFe(e,t){return e.map(t).join("")}var qS=1,H5=1,Z5e=0,Il=0,Kn=0,C7="";function ZS(e,t,o,i,a,l,d){return{value:e,root:t,parent:o,type:i,props:a,children:l,line:qS,column:H5,length:d,return:""}}function f6(e,t){return oFe(ZS("",null,null,"",null,null,0),e,{length:-e.length},t)}function aFe(){return Kn}function sFe(){return Kn=Il>0?qa(C7,--Il):0,H5--,Kn===10&&(H5=1,qS--),Kn}function sd(){return Kn=Il<Z5e?qa(C7,Il++):0,H5++,Kn===10&&(H5=1,qS++),Kn}function np(){return qa(C7,Il)}function IC(){return Il}function ly(e,t){return lx(C7,e,t)}function dx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J5e(e){return qS=H5=1,Z5e=Iu(C7=e),Il=0,[]}function X5e(e){return C7="",e}function MC(e){return q5e(ly(Il-1,sO(e===91?e+2:e===40?e+1:e)))}function lFe(e){for(;(Kn=np())&&Kn<33;)sd();return dx(e)>2||dx(Kn)>3?"":" "}function dFe(e,t){for(;--t&&sd()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return ly(e,IC()+(t<6&&np()==32&&sd()==32))}function sO(e){for(;sd();)switch(Kn){case e:return Il;case 34:case 39:e!==34&&e!==39&&sO(Kn);break;case 40:e===41&&sO(e);break;case 92:sd();break}return Il}function cFe(e,t){for(;sd()&&e+Kn!==57&&!(e+Kn===84&&np()===47););return"/*"+ly(t,Il-1)+"*"+KS(e===47?e:sd())}function uFe(e){for(;!dx(np());)sd();return ly(e,Il)}function pFe(e){return X5e(PC("",null,null,null,[""],e=J5e(e),0,[0],e))}function PC(e,t,o,i,a,l,d,c,u){for(var p=0,h=0,m=d,f=0,x=0,y=0,w=1,b=1,C=1,k=0,A="",E=a,I=l,L=i,P=A;b;)switch(y=k,k=sd()){case 40:if(y!=108&&qa(P,m-1)==58){aO(P+=Yr(MC(k),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:P+=MC(k);break;case 9:case 10:case 13:case 32:P+=lFe(y);break;case 92:P+=dFe(IC()-1,7);continue;case 47:switch(np()){case 42:case 47:Rw(hFe(cFe(sd(),IC()),t,o),u);break;default:P+="/"}break;case 123*w:c[p++]=Iu(P)*C;case 125*w:case 59:case 0:switch(k){case 0:case 125:b=0;case 59+h:C==-1&&(P=Yr(P,/\f/g,"")),x>0&&Iu(P)-m&&Rw(x>32?pq(P+";",i,o,m-1):pq(Yr(P," ","")+";",i,o,m-2),u);break;case 59:P+=";";default:if(Rw(L=uq(P,t,o,p,h,a,c,A,E=[],I=[],m),l),k===123)if(h===0)PC(P,t,L,L,E,l,m,c,I);else switch(f===99&&qa(P,3)===110?100:f){case 100:case 108:case 109:case 115:PC(e,L,L,i&&Rw(uq(e,L,L,0,0,a,c,A,a,E=[],m),I),a,I,m,c,i?E:I);break;default:PC(P,L,L,L,[""],I,0,c,I)}}p=h=x=0,w=C=1,A=P="",m=d;break;case 58:m=1+Iu(P),x=y;default:if(w<1){if(k==123)--w;else if(k==125&&w++==0&&sFe()==125)continue}switch(P+=KS(k),k*w){case 38:C=h>0?1:(P+="\f",-1);break;case 44:c[p++]=(Iu(P)-1)*C,C=1;break;case 64:np()===45&&(P+=MC(sd())),f=np(),h=m=Iu(A=P+=uFe(IC())),k++;break;case 45:y===45&&Iu(P)==2&&(w=0)}}return l}function uq(e,t,o,i,a,l,d,c,u,p,h){for(var m=a-1,f=a===0?l:[""],x=oW(f),y=0,w=0,b=0;y<i;++y)for(var C=0,k=lx(e,m+1,m=tFe(w=d[y])),A=e;C<x;++C)(A=q5e(w>0?f[C]+" "+k:Yr(k,/&\f/g,f[C])))&&(u[b++]=A);return ZS(e,t,o,a===0?eW:c,u,p,h)}function hFe(e,t,o){return ZS(e,t,o,Y5e,KS(aFe()),lx(e,2,-2),0)}function pq(e,t,o,i){return ZS(e,t,o,tW,lx(e,0,i),lx(e,i+1,-1),i)}function y5(e,t){for(var o="",i=oW(e),a=0;a<i;a++)o+=t(e[a],a,e,t)||"";return o}function mFe(e,t,o,i){switch(e.type){case eFe:if(e.children.length)break;case XRe:case tW:return e.return=e.return||e.value;case Y5e:return"";case K5e:return e.return=e.value+"{"+y5(e.children,i)+"}";case eW:e.value=e.props.join(",")}return Iu(o=y5(e.children,i))?e.return=e.value+"{"+o+"}":""}function gFe(e){var t=oW(e);return function(o,i,a,l){for(var d="",c=0;c<t;c++)d+=e[c](o,i,a,l)||"";return d}}function fFe(e){return function(t){t.root||(t=t.return)&&e(t)}}var xFe=function(e,t,o){for(var i=0,a=0;i=a,a=np(),i===38&&a===12&&(t[o]=1),!dx(a);)sd();return ly(e,Il)},yFe=function(e,t){var o=-1,i=44;do switch(dx(i)){case 0:i===38&&np()===12&&(t[o]=1),e[o]+=xFe(Il-1,t,o);break;case 2:e[o]+=MC(i);break;case 4:if(i===44){e[++o]=np()===58?"&\f":"",t[o]=e[o].length;break}default:e[o]+=KS(i)}while(i=sd());return e},wFe=function(e,t){return X5e(yFe(J5e(e),t))},hq=new WeakMap,bFe=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,o=e.parent,i=e.column===o.column&&e.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!hq.get(o))&&!i){hq.set(e,!0);for(var a=[],l=wFe(t,a),d=o.props,c=0,u=0;c<l.length;c++)for(var p=0;p<d.length;p++,u++)e.props[u]=a[c]?l[c].replace(/&\f/g,d[p]):d[p]+" "+l[c]}}},vFe=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function e7e(e,t){switch(rFe(e,t)){case 5103:return Gr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Gr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gr+e+h$+e+ps+e+e;case 6828:case 4268:return Gr+e+ps+e+e;case 6165:return Gr+e+ps+"flex-"+e+e;case 5187:return Gr+e+Yr(e,/(\w+).+(:[^]+)/,Gr+"box-$1$2"+ps+"flex-$1$2")+e;case 5443:return Gr+e+ps+"flex-item-"+Yr(e,/flex-|-self/,"")+e;case 4675:return Gr+e+ps+"flex-line-pack"+Yr(e,/align-content|flex-|-self/,"")+e;case 5548:return Gr+e+ps+Yr(e,"shrink","negative")+e;case 5292:return Gr+e+ps+Yr(e,"basis","preferred-size")+e;case 6060:return Gr+"box-"+Yr(e,"-grow","")+Gr+e+ps+Yr(e,"grow","positive")+e;case 4554:return Gr+Yr(e,/([^-])(transform)/g,"$1"+Gr+"$2")+e;case 6187:return Yr(Yr(Yr(e,/(zoom-|grab)/,Gr+"$1"),/(image-set)/,Gr+"$1"),e,"")+e;case 5495:case 3959:return Yr(e,/(image-set\([^]*)/,Gr+"$1$`$1");case 4968:return Yr(Yr(e,/(.+:)(flex-)?(.*)/,Gr+"box-pack:$3"+ps+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gr+e+e;case 4095:case 3583:case 4068:case 2532:return Yr(e,/(.+)-inline(.+)/,Gr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Iu(e)-1-t>6)switch(qa(e,t+1)){case 109:if(qa(e,t+4)!==45)break;case 102:return Yr(e,/(.+:)(.+)-([^]+)/,"$1"+Gr+"$2-$3$1"+h$+(qa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~aO(e,"stretch")?e7e(Yr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qa(e,t+1)!==115)break;case 6444:switch(qa(e,Iu(e)-3-(~aO(e,"!important")&&10))){case 107:return Yr(e,":",":"+Gr)+e;case 101:return Yr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gr+(qa(e,14)===45?"inline-":"")+"box$3$1"+Gr+"$2$3$1"+ps+"$2box$3")+e}break;case 5936:switch(qa(e,t+11)){case 114:return Gr+e+ps+Yr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gr+e+ps+Yr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gr+e+ps+Yr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gr+e+ps+e+e}return e}var CFe=function(e,t,o,i){if(e.length>-1&&!e.return)switch(e.type){case tW:e.return=e7e(e.value,e.length);break;case K5e:return y5([f6(e,{value:Yr(e.value,"@","@"+Gr)})],i);case eW:if(e.length)return nFe(e.props,function(a){switch(iFe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return y5([f6(e,{props:[Yr(a,/:(read-\w+)/,":"+h$+"$1")]})],i);case"::placeholder":return y5([f6(e,{props:[Yr(a,/:(plac\w+)/,":"+Gr+"input-$1")]}),f6(e,{props:[Yr(a,/:(plac\w+)/,":"+h$+"$1")]}),f6(e,{props:[Yr(a,/:(plac\w+)/,ps+"input-$1")]})],i)}return""})}},$Fe=[CFe],t7e=function(e){var t=e.key;if(t==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=e.stylisPlugins||$Fe,a={},l,d=[];l=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)a[w[b]]=!0;d.push(y)});var c,u=[bFe,vFe];{var p,h=[mFe,fFe(function(y){p.insert(y)})],m=gFe(u.concat(i,h)),f=function(y){return y5(pFe(y),m)};c=function(y,w,b,C){p=b,f(y?y+"{"+w.styles+"}":w.styles),C&&(x.inserted[w.name]=!0)}}var x={key:t,sheet:new JRe({key:t,container:l,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:c};return x.sheet.hydrate(d),x};function kFe(e){return e==null||Object.keys(e).length===0}function o7e(e){const{styles:t,defaultTheme:o={}}=e,i=typeof t=="function"?a=>t(kFe(a)?o:a):t;return s.jsx(ay,{styles:i})}function SFe(e,t){return n(e,t)}function AFe(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const mq=[];function g2(e){return mq[0]=e,QRe(mq)}var gq={exports:{}},mi={},fq;function EFe(){if(fq)return mi;fq=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");function y(w){if(typeof w=="object"&&w!==null){var b=w.$$typeof;switch(b){case e:switch(w=w.type,w){case o:case a:case i:case u:case p:case f:return w;default:switch(w=w&&w.$$typeof,w){case d:case c:case m:case h:return w;case l:return w;default:return b}}case t:return b}}}return mi.ContextConsumer=l,mi.ContextProvider=d,mi.Element=e,mi.ForwardRef=c,mi.Fragment=o,mi.Lazy=m,mi.Memo=h,mi.Portal=t,mi.Profiler=a,mi.StrictMode=i,mi.Suspense=u,mi.SuspenseList=p,mi.isContextConsumer=function(w){return y(w)===l},mi.isContextProvider=function(w){return y(w)===d},mi.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},mi.isForwardRef=function(w){return y(w)===c},mi.isFragment=function(w){return y(w)===o},mi.isLazy=function(w){return y(w)===m},mi.isMemo=function(w){return y(w)===h},mi.isPortal=function(w){return y(w)===t},mi.isProfiler=function(w){return y(w)===a},mi.isStrictMode=function(w){return y(w)===i},mi.isSuspense=function(w){return y(w)===u},mi.isSuspenseList=function(w){return y(w)===p},mi.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===a||w===i||w===u||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===h||w.$$typeof===d||w.$$typeof===l||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},mi.typeOf=y,mi}var xq;function LFe(){return xq||(xq=1,gq.exports=EFe()),gq.exports}var r7e=LFe();function xh(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i7e(e){if(g.isValidElement(e)||r7e.isValidElementType(e)||!xh(e))return e;const t={};return Object.keys(e).forEach(o=>{t[o]=i7e(e[o])}),t}function $s(e,t,o={clone:!0}){const i=o.clone?{...e}:e;return xh(e)&&xh(t)&&Object.keys(t).forEach(a=>{g.isValidElement(t[a])||r7e.isValidElementType(t[a])?i[a]=t[a]:xh(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&xh(e[a])?i[a]=$s(e[a],t[a],o):o.clone?i[a]=xh(t[a])?i7e(t[a]):t[a]:i[a]=t[a]}),i}const jFe=e=>{const t=Object.keys(e).map(o=>({key:o,val:e[o]}))||[];return t.sort((o,i)=>o.val-i.val),t.reduce((o,i)=>({...o,[i.key]:i.val}),{})};function IFe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...a}=e,l=jFe(t),d=Object.keys(l);function c(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${o})`}function u(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-i/100}${o})`}function p(f,x){const y=d.indexOf(x);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${o}) and (max-width:${(y!==-1&&typeof t[d[y]]=="number"?t[d[y]]:x)-i/100}${o})`}function h(f){return d.indexOf(f)+1<d.length?p(f,d[d.indexOf(f)+1]):c(f)}function m(f){const x=d.indexOf(f);return x===0?c(d[1]):x===d.length-1?u(d[x]):p(f,d[d.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:d,values:l,up:c,down:u,between:p,only:h,not:m,unit:o,...a}}function yq(e,t){if(!e.containerQueries)return t;const o=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,a)=>{const l=/min-width:\s*([0-9.]+)/;return+(i.match(l)?.[1]||0)-+(a.match(l)?.[1]||0)});return o.length?o.reduce((i,a)=>{const l=t[a];return delete i[a],i[a]=l,i},{...t}):t}function MFe(e,t){return t==="@"||t.startsWith("@")&&(e.some(o=>t.startsWith(`@${o}`))||!!t.match(/^@\d/))}function PFe(e,t){const o=t.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,i,a]=o,l=Number.isNaN(+i)?i||0:+i;return e.containerQueries(a).up(l)}function TFe(e){const t=(l,d)=>l.replace("@media",d?`@container ${d}`:"@container");function o(l,d){l.up=(...c)=>t(e.breakpoints.up(...c),d),l.down=(...c)=>t(e.breakpoints.down(...c),d),l.between=(...c)=>t(e.breakpoints.between(...c),d),l.only=(...c)=>t(e.breakpoints.only(...c),d),l.not=(...c)=>{const u=t(e.breakpoints.not(...c),d);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const i={},a=l=>(o(i,l),i);return o(a),{...e,containerQueries:a}}const BFe={borderRadius:4};function B8(e,t){return t?$s(e,t,{clone:!1}):e}const JS={xs:0,sm:600,md:900,lg:1200,xl:1536},wq={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${JS[e]}px)`},DFe={containerQueries:e=>({up:t=>{let o=typeof t=="number"?t:JS[t]||t;return typeof o=="number"&&(o=`${o}px`),e?`@container ${e} (min-width:${o})`:`@container (min-width:${o})`}})};function Oh(e,t,o){const i=e.theme||{};if(Array.isArray(t)){const a=i.breakpoints||wq;return t.reduce((l,d,c)=>(l[a.up(a.keys[c])]=o(t[c]),l),{})}if(typeof t=="object"){const a=i.breakpoints||wq;return Object.keys(t).reduce((l,d)=>{if(MFe(a.keys,d)){const c=PFe(i.containerQueries?i:DFe,d);c&&(l[c]=o(t[d],d))}else if(Object.keys(a.values||JS).includes(d)){const c=a.up(d);l[c]=o(t[d],d)}else{const c=d;l[c]=t[c]}return l},{})}return o(t)}function _Fe(e={}){return e.keys?.reduce((t,o)=>{const i=e.up(o);return t[i]={},t},{})||{}}function bq(e,t){return e.reduce((o,i)=>{const a=o[i];return(!a||Object.keys(a).length===0)&&delete o[i],o},t)}function Vo(e){if(typeof e!="string")throw new Error(Fh(7));return e.charAt(0).toUpperCase()+e.slice(1)}function XS(e,t,o=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&o){const i=`vars.${t}`.split(".").reduce((a,l)=>a&&a[l]?a[l]:null,e);if(i!=null)return i}return t.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function m$(e,t,o,i=o){let a;return typeof e=="function"?a=e(o):Array.isArray(e)?a=e[o]||i:a=XS(e,o)||i,t&&(a=t(a,i,e)),a}function Rn(e){const{prop:t,cssProperty:o=e.prop,themeKey:i,transform:a}=e,l=d=>{if(d[t]==null)return null;const c=d[t],u=d.theme,p=XS(u,i)||{};return Oh(d,c,h=>{let m=m$(p,a,h);return h===m&&typeof h=="string"&&(m=m$(p,a,`${t}${h==="default"?"":Vo(h)}`,h)),o===!1?m:{[o]:m}})};return l.propTypes={},l.filterProps=[t],l}function zFe(e){const t={};return o=>(t[o]===void 0&&(t[o]=e(o)),t[o])}const RFe={m:"margin",p:"padding"},FFe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vq={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},OFe=zFe(e=>{if(e.length>2)if(vq[e])e=vq[e];else return[e];const[t,o]=e.split(""),i=RFe[t],a=FFe[o]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]}),rW=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iW=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rW,...iW];function dy(e,t,o,i){const a=XS(e,t,!0)??o;return typeof a=="number"||typeof a=="string"?l=>typeof l=="string"?l:typeof a=="string"?a.startsWith("var(")&&l===0?0:a.startsWith("var(")&&l===1?a:`calc(${l} * ${a})`:a*l:Array.isArray(a)?l=>{if(typeof l=="string")return l;const d=Math.abs(l),c=a[d];return l>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof a=="function"?a:()=>{}}function nW(e){return dy(e,"spacing",8)}function cy(e,t){return typeof t=="string"||t==null?t:e(t)}function NFe(e,t){return o=>e.reduce((i,a)=>(i[a]=cy(t,o),i),{})}function HFe(e,t,o,i){if(!t.includes(o))return null;const a=OFe(o),l=NFe(a,i),d=e[o];return Oh(e,d,l)}function n7e(e,t){const o=nW(e.theme);return Object.keys(e).map(i=>HFe(e,t,i,o)).reduce(B8,{})}function ln(e){return n7e(e,rW)}ln.propTypes={};ln.filterProps=rW;function dn(e){return n7e(e,iW)}dn.propTypes={};dn.filterProps=iW;function a7e(e=8,t=nW({spacing:e})){if(e.mui)return e;const o=(...i)=>(i.length===0?[1]:i).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return o.mui=!0,o}function eA(...e){const t=e.reduce((i,a)=>(a.filterProps.forEach(l=>{i[l]=a}),i),{}),o=i=>Object.keys(i).reduce((a,l)=>t[l]?B8(a,t[l](i)):a,{});return o.propTypes={},o.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),o}function Vd(e){return typeof e!="number"?e:`${e}px solid`}function uc(e,t){return Rn({prop:e,themeKey:"borders",transform:t})}const VFe=uc("border",Vd),WFe=uc("borderTop",Vd),UFe=uc("borderRight",Vd),QFe=uc("borderBottom",Vd),GFe=uc("borderLeft",Vd),YFe=uc("borderColor"),KFe=uc("borderTopColor"),qFe=uc("borderRightColor"),ZFe=uc("borderBottomColor"),JFe=uc("borderLeftColor"),XFe=uc("outline",Vd),eOe=uc("outlineColor"),tA=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=dy(e.theme,"shape.borderRadius",4),o=i=>({borderRadius:cy(t,i)});return Oh(e,e.borderRadius,o)}return null};tA.propTypes={};tA.filterProps=["borderRadius"];eA(VFe,WFe,UFe,QFe,GFe,YFe,KFe,qFe,ZFe,JFe,tA,XFe,eOe);const oA=e=>{if(e.gap!==void 0&&e.gap!==null){const t=dy(e.theme,"spacing",8),o=i=>({gap:cy(t,i)});return Oh(e,e.gap,o)}return null};oA.propTypes={};oA.filterProps=["gap"];const rA=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=dy(e.theme,"spacing",8),o=i=>({columnGap:cy(t,i)});return Oh(e,e.columnGap,o)}return null};rA.propTypes={};rA.filterProps=["columnGap"];const iA=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=dy(e.theme,"spacing",8),o=i=>({rowGap:cy(t,i)});return Oh(e,e.rowGap,o)}return null};iA.propTypes={};iA.filterProps=["rowGap"];const tOe=Rn({prop:"gridColumn"}),oOe=Rn({prop:"gridRow"}),rOe=Rn({prop:"gridAutoFlow"}),iOe=Rn({prop:"gridAutoColumns"}),nOe=Rn({prop:"gridAutoRows"}),aOe=Rn({prop:"gridTemplateColumns"}),sOe=Rn({prop:"gridTemplateRows"}),lOe=Rn({prop:"gridTemplateAreas"}),dOe=Rn({prop:"gridArea"});eA(oA,rA,iA,tOe,oOe,rOe,iOe,nOe,aOe,sOe,lOe,dOe);function w5(e,t){return t==="grey"?t:e}const cOe=Rn({prop:"color",themeKey:"palette",transform:w5}),uOe=Rn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w5}),pOe=Rn({prop:"backgroundColor",themeKey:"palette",transform:w5});eA(cOe,uOe,pOe);function td(e){return e<=1&&e!==0?`${e*100}%`:e}const hOe=Rn({prop:"width",transform:td}),aW=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=o=>{const i=e.theme?.breakpoints?.values?.[o]||JS[o];return i?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:td(o)}};return Oh(e,e.maxWidth,t)}return null};aW.filterProps=["maxWidth"];const mOe=Rn({prop:"minWidth",transform:td}),gOe=Rn({prop:"height",transform:td}),fOe=Rn({prop:"maxHeight",transform:td}),xOe=Rn({prop:"minHeight",transform:td});Rn({prop:"size",cssProperty:"width",transform:td});Rn({prop:"size",cssProperty:"height",transform:td});const yOe=Rn({prop:"boxSizing"});eA(hOe,aW,mOe,gOe,fOe,xOe,yOe);const nA={border:{themeKey:"borders",transform:Vd},borderTop:{themeKey:"borders",transform:Vd},borderRight:{themeKey:"borders",transform:Vd},borderBottom:{themeKey:"borders",transform:Vd},borderLeft:{themeKey:"borders",transform:Vd},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vd},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tA},color:{themeKey:"palette",transform:w5},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w5},backgroundColor:{themeKey:"palette",transform:w5},p:{style:dn},pt:{style:dn},pr:{style:dn},pb:{style:dn},pl:{style:dn},px:{style:dn},py:{style:dn},padding:{style:dn},paddingTop:{style:dn},paddingRight:{style:dn},paddingBottom:{style:dn},paddingLeft:{style:dn},paddingX:{style:dn},paddingY:{style:dn},paddingInline:{style:dn},paddingInlineStart:{style:dn},paddingInlineEnd:{style:dn},paddingBlock:{style:dn},paddingBlockStart:{style:dn},paddingBlockEnd:{style:dn},m:{style:ln},mt:{style:ln},mr:{style:ln},mb:{style:ln},ml:{style:ln},mx:{style:ln},my:{style:ln},margin:{style:ln},marginTop:{style:ln},marginRight:{style:ln},marginBottom:{style:ln},marginLeft:{style:ln},marginX:{style:ln},marginY:{style:ln},marginInline:{style:ln},marginInlineStart:{style:ln},marginInlineEnd:{style:ln},marginBlock:{style:ln},marginBlockStart:{style:ln},marginBlockEnd:{style:ln},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oA},rowGap:{style:iA},columnGap:{style:rA},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:td},maxWidth:{style:aW},minWidth:{transform:td},height:{transform:td},maxHeight:{transform:td},minHeight:{transform:td},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wOe(...e){const t=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),o=new Set(t);return e.every(i=>o.size===Object.keys(i).length)}function bOe(e,t){return typeof e=="function"?e(t):e}function vOe(){function e(o,i,a,l){const d={[o]:i,theme:a},c=l[o];if(!c)return{[o]:i};const{cssProperty:u=o,themeKey:p,transform:h,style:m}=c;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[o]:i};const f=XS(a,p)||{};return m?m(d):Oh(d,i,x=>{let y=m$(f,h,x);return x===y&&typeof x=="string"&&(y=m$(f,h,`${o}${x==="default"?"":Vo(x)}`,x)),u===!1?y:{[u]:y}})}function t(o){const{sx:i,theme:a={},nested:l}=o||{};if(!i)return null;const d=a.unstable_sxConfig??nA;function c(u){let p=u;if(typeof u=="function")p=u(a);else if(typeof u!="object")return u;if(!p)return null;const h=_Fe(a.breakpoints),m=Object.keys(h);let f=h;return Object.keys(p).forEach(x=>{const y=bOe(p[x],a);if(y!=null)if(typeof y=="object")if(d[x])f=B8(f,e(x,y,a,d));else{const w=Oh({theme:a},y,b=>({[x]:b}));wOe(w,y)?f[x]=t({sx:y,theme:a,nested:!0}):f=B8(f,w)}else f=B8(f,e(x,y,a,d))}),!l&&a.modularCssLayers?{"@layer sx":yq(a,bq(m,f))}:yq(a,bq(m,f))}return Array.isArray(i)?i.map(c):c(i)}return t}const k3=vOe();k3.filterProps=["sx"];function COe(e,t){const o=this;if(o.vars){if(!o.colorSchemes?.[e]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return o.palette.mode===e?t:{}}function sW(e={},...t){const{breakpoints:o={},palette:i={},spacing:a,shape:l={},...d}=e,c=IFe(o),u=a7e(a);let p=$s({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:u,shape:{...BFe,...l}},d);return p=TFe(p),p.applyStyles=COe,p=t.reduce((h,m)=>$s(h,m),p),p.unstable_sxConfig={...nA,...d?.unstable_sxConfig},p.unstable_sx=function(h){return k3({sx:h,theme:this})},p}function $Oe(e){return Object.keys(e).length===0}function lW(e=null){const t=g.useContext(H5e);return!t||$Oe(t)?e:t}const kOe=sW();function s7e(e=kOe){return lW(e)}function Cq(e){const t=g2(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function l7e({styles:e,themeId:t,defaultTheme:o={}}){const i=s7e(o),a=t&&i[t]||i;let l=typeof e=="function"?e(a):e;return a.modularCssLayers&&(Array.isArray(l)?l=l.map(d=>Cq(typeof d=="function"?d(a):d)):l=Cq(l)),s.jsx(o7e,{styles:l})}const $q=e=>e,SOe=()=>{let e=$q;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$q}}},AOe=SOe();function d7e(e){var t,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=d7e(e[t]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function jo(){for(var e,t,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=d7e(e))&&(i&&(i+=" "),i+=t);return i}const EOe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ur(e,t,o="Mui"){const i=EOe[t];return i?`${o}-${i}`:`${AOe.generate(e)}-${t}`}function Tr(e,t,o="Mui"){const i={};return t.forEach(a=>{i[a]=Ur(e,a,o)}),i}function c7e(e){const{variants:t,...o}=e,i={variants:t,style:g2(o),isProcessed:!0};return i.style===o||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=g2(a.style))}),i}const LOe=sW();function jI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function qg(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function jOe(e){return e?(t,o)=>o[e]:null}function IOe(e,t,o){e.theme=TOe(e.theme)?o:e.theme[t]||e.theme}function TC(e,t,o){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(a=>TC(e,a,o));if(Array.isArray(i?.variants)){let a;if(i.isProcessed)a=o?qg(i.style,o):i.style;else{const{variants:l,...d}=i;a=o?qg(g2(d),o):d}return u7e(e,i.variants,[a],o)}return i?.isProcessed?o?qg(g2(i.style),o):i.style:o?qg(g2(i),o):i}function u7e(e,t,o=[],i=void 0){let a;e:for(let l=0;l<t.length;l+=1){const d=t[l];if(typeof d.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!d.props(a))continue}else for(const c in d.props)if(e[c]!==d.props[c]&&e.ownerState?.[c]!==d.props[c])continue e;typeof d.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},o.push(i?qg(g2(d.style(a)),i):d.style(a))):o.push(i?qg(g2(d.style),i):d.style)}return o}function MOe(e={}){const{themeId:t,defaultTheme:o=LOe,rootShouldForwardProp:i=jI,slotShouldForwardProp:a=jI}=e;function l(d){IOe(d,t,o)}return(d,c={})=>{AFe(d,I=>I.filter(L=>L!==k3));const{name:u,slot:p,skipVariantsResolver:h,skipSx:m,overridesResolver:f=jOe(DOe(p)),...x}=c,y=u&&u.startsWith("Mui")||p?"components":"custom",w=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,b=m||!1;let C=jI;p==="Root"||p==="root"?C=i:p?C=a:BOe(d)&&(C=void 0);const k=SFe(d,{shouldForwardProp:C,label:POe(),...x}),A=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(L){return TC(L,I,L.theme.modularCssLayers?y:void 0)};if(xh(I)){const L=c7e(I);return function(P){return L.variants?TC(P,L,P.theme.modularCssLayers?y:void 0):P.theme.modularCssLayers?qg(L.style,y):L.style}}return I},E=(...I)=>{const L=[],P=I.map(A),T=[];if(L.push(l),u&&f&&T.push(function(z){const _=z.theme.components?.[u]?.styleOverrides;if(!_)return null;const q={};for(const Z in _)q[Z]=TC(z,_[Z],z.theme.modularCssLayers?"theme":void 0);return f(z,q)}),u&&!w&&T.push(function(z){const _=z.theme?.components?.[u]?.variants;return _?u7e(z,_,[],z.theme.modularCssLayers?"theme":void 0):null}),b||T.push(k3),Array.isArray(P[0])){const z=P.shift(),_=new Array(L.length).fill(""),q=new Array(T.length).fill("");let Z;Z=[..._,...z,...q],Z.raw=[..._,...z.raw,...q],L.unshift(Z)}const B=[...L,...P,...T],D=k(...B);return d.muiName&&(D.muiName=d.muiName),D};return k.withConfig&&(E.withConfig=k.withConfig),E}}function POe(e,t){return void 0}function TOe(e){for(const t in e)return!1;return!0}function BOe(e){return typeof e=="string"&&e.charCodeAt(0)>96}function DOe(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function lO(e,t,o=!1){const i={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const l=a;if(l==="components"||l==="slots")i[l]={...e[l],...i[l]};else if(l==="componentsProps"||l==="slotProps"){const d=e[l],c=t[l];if(!c)i[l]=d||{};else if(!d)i[l]=c;else{i[l]={...c};for(const u in d)if(Object.prototype.hasOwnProperty.call(d,u)){const p=u;i[l][p]=lO(d[p],c[p],o)}}}else l==="className"&&o&&t.className?i.className=jo(e?.className,t?.className):l==="style"&&o&&t.style?i.style={...e?.style,...t?.style}:i[l]===void 0&&(i[l]=e[l])}return i}const pd=typeof window<"u"?g.useLayoutEffect:g.useEffect;function _Oe(e,t=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,o))}function dW(e,t=0,o=1){return _Oe(e,t,o)}function zOe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let o=e.match(t);return o&&o[0].length===1&&(o=o.map(i=>i+i)),o?`rgb${o.length===4?"a":""}(${o.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function j2(e){if(e.type)return e;if(e.charAt(0)==="#")return j2(zOe(e));const t=e.indexOf("("),o=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Fh(9,e));let i=e.substring(t+1,e.length-1),a;if(o==="color"){if(i=i.split(" "),a=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Fh(10,a))}else i=i.split(",");return i=i.map(l=>parseFloat(l)),{type:o,values:i,colorSpace:a}}const ROe=e=>{const t=j2(e);return t.values.slice(0,3).map((o,i)=>t.type.includes("hsl")&&i!==0?`${o}%`:o).join(" ")},i8=(e,t)=>{try{return ROe(e)}catch{return e}};function aA(e){const{type:t,colorSpace:o}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((a,l)=>l<3?parseInt(a,10):a):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${o} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function p7e(e){e=j2(e);const{values:t}=e,o=t[0],i=t[1]/100,a=t[2]/100,l=i*Math.min(a,1-a),d=(p,h=(p+o/30)%12)=>a-l*Math.max(Math.min(h-3,9-h,1),-1);let c="rgb";const u=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),aA({type:c,values:u})}function dO(e){e=j2(e);let t=e.type==="hsl"||e.type==="hsla"?j2(p7e(e)).values:e.values;return t=t.map(o=>(e.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FOe(e,t){const o=dO(e),i=dO(t);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}function g$(e,t){return e=j2(e),t=dW(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,aA(e)}function Km(e,t,o){try{return g$(e,t)}catch{return e}}function sA(e,t){if(e=j2(e),t=dW(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]*=1-t;return aA(e)}function oi(e,t,o){try{return sA(e,t)}catch{return e}}function lA(e,t){if(e=j2(e),t=dW(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let o=0;o<3;o+=1)e.values[o]+=(255-e.values[o])*t;else if(e.type.includes("color"))for(let o=0;o<3;o+=1)e.values[o]+=(1-e.values[o])*t;return aA(e)}function ri(e,t,o){try{return lA(e,t)}catch{return e}}function OOe(e,t=.15){return dO(e)>.5?sA(e,t):lA(e,t)}function Fw(e,t,o){try{return OOe(e,t)}catch{return e}}const h7e=g.createContext(null);function cW(){return g.useContext(h7e)}const NOe=typeof Symbol=="function"&&Symbol.for,HOe=NOe?Symbol.for("mui.nested"):"__THEME_NESTED__";function VOe(e,t){return typeof t=="function"?t(e):{...e,...t}}function WOe(e){const{children:t,theme:o}=e,i=cW(),a=g.useMemo(()=>{const l=i===null?{...o}:VOe(i,o);return l!=null&&(l[HOe]=i!==null),l},[o,i]);return s.jsx(h7e.Provider,{value:a,children:t})}const m7e=g.createContext();function UOe({value:e,...t}){return s.jsx(m7e.Provider,{value:e??!0,...t})}const $7=()=>g.useContext(m7e)??!1,g7e=g.createContext(void 0);function QOe({value:e,children:t}){return s.jsx(g7e.Provider,{value:e,children:t})}function GOe(e){const{theme:t,name:o,props:i}=e;if(!t||!t.components||!t.components[o])return i;const a=t.components[o];return a.defaultProps?lO(a.defaultProps,i,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?lO(a,i,t.components.mergeClassNameAndStyle):i}function YOe({props:e,name:t}){const o=g.useContext(g7e);return GOe({props:e,name:t,theme:{components:o}})}let kq=0;function KOe(e){const[t,o]=g.useState(e),i=e||t;return g.useEffect(()=>{t==null&&(kq+=1,o(`mui-${kq}`))},[t]),i}const qOe={...w_e},Sq=qOe.useId;function dA(e){if(Sq!==void 0){const t=Sq();return e??t}return KOe(e)}function ZOe(e){const t=lW(),o=dA()||"",{modularCssLayers:i}=e;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||t!==null?a="":typeof i=="string"?a=i.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,pd(()=>{const l=document.querySelector("head");if(!l)return;const d=l.firstChild;if(a){if(d&&d.hasAttribute?.("data-mui-layer-order")&&d.getAttribute("data-mui-layer-order")===o)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",o),c.textContent=a,l.prepend(c)}else l.querySelector(`style[data-mui-layer-order="${o}"]`)?.remove()},[a,o]),a?s.jsx(l7e,{styles:a}):null}const Aq={};function Eq(e,t,o,i=!1){return g.useMemo(()=>{const a=e&&t[e]||t;if(typeof o=="function"){const l=o(a),d=e?{...t,[e]:l}:l;return i?()=>d:d}return e?{...t,[e]:o}:{...t,...o}},[e,t,o,i])}function f7e(e){const{children:t,theme:o,themeId:i}=e,a=lW(Aq),l=cW()||Aq,d=Eq(i,a,o),c=Eq(i,l,o,!0),u=(i?d[i]:d).direction==="rtl",p=ZOe(d);return s.jsx(WOe,{theme:c,children:s.jsx(H5e.Provider,{value:d,children:s.jsx(UOe,{value:u,children:s.jsxs(QOe,{value:i?d[i].components:d.components,children:[p,t]})})})})}const Lq={theme:void 0};function JOe(e){let t,o;return function(i){let a=t;return(a===void 0||i.theme!==o)&&(Lq.theme=i.theme,a=c7e(e(Lq)),t=a,o=i.theme),a}}const uW="mode",pW="color-scheme",XOe="data-color-scheme";function eNe(e){const{defaultMode:t="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:i="dark",modeStorageKey:a=uW,colorSchemeStorageKey:l=pW,attribute:d=XOe,colorSchemeNode:c="document.documentElement",nonce:u}=e||{};let p="",h=d;if(d==="class"&&(h=".%s"),d==="data"&&(h="[data-%s]"),h.startsWith(".")){const f=h.substring(1);p+=`${c}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark));
3
3
  ${c}.classList.add('${f}'.replace('%s', colorScheme));`}const m=h.match(/\[([^[\]]+)\]/);if(m){const[f,x]=m[1].split("=");x||(p+=`${c}.removeAttribute('${f}'.replace('%s', light));
4
4
  ${c}.removeAttribute('${f}'.replace('%s', dark));`),p+=`
5
5
  ${c}.setAttribute('${f}'.replace('%s', colorScheme), ${x?`${x}.replace('%s', colorScheme)`:'""'});`}else h!==".%s"&&(p+=`${c}.setAttribute('${h}', colorScheme);`);return s.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
@@ -80312,7 +80312,7 @@ ${e}`,g9r=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
80312
80312
  `,ABr=n(wQ)`
80313
80313
  color: ${e=>e.theme.colors.alert};
80314
80314
  margin-top: ${r.sp2};
80315
- `;var EBr=IRe();const ax=OV(EBr);class LBr{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),o=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(o!=null&&t!=null)return JSON.parse(this.decrypt(o,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&o!=null?JSON.parse(this.decrypt(t,o)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),o=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&o!=null?JSON.parse(this.decrypt(t,o)):!0}getSignedInUserTenant(t){const o=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null&&i!=null)return JSON.parse(this.decrypt(o,i)).find(l=>l.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const o=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null&&i!=null)return JSON.parse(this.decrypt(o,i)).find(l=>l.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),o=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(o&&t!=null){const i=this.decrypt(o,t);return i?JSON.parse(i):[]}return[]}saveForceRefreshedComponents(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),o)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,o){if(t==null||o==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,o),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),o))}saveSignedInUserTenants(t,o){const i=o??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),o));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),o));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(o=>window.localStorage.getItem(o)!=null).reduce((o,i)=>o&&i)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,o))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&o!==null)return this.decrypt(t,o)}encrypt(t,o){return ax.AES.encrypt(t,o).toString()}decrypt(t,o){return ax.AES.decrypt(t,o).toString(ax.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="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_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const Ba=new LBr,jBr=({children:e})=>{const t=kRe("(prefers-color-scheme: dark)"),[o,i]=$.useState({dark:t});g.useEffect(()=>{const u=Ba.getTheme()==null?t:Ba.getTheme()==="dark";o.dark!==u&&i({dark:u})},[o,t]);const a=()=>{const u=!o.dark;Ba.setTheme(u?"dark":"light"),i({...o,dark:u})},l=o.dark?Lgo():Ego(),d=typeof window<"u"?window.__NONCE__:void 0,c=d!=null&&d.length>0?d:void 0;return co.jsx(buo,{dark:o.dark,webAppTheme:l,toggle:a,nonce:c,children:e})},IBr=["sandbox","production"],MBr=e=>N3(e,IBr),PBr=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},TBr=["development","staging","production"],BBr=e=>N3(e,TBr),DBr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},_Br=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],zBr=e=>N3(e,_Br),Zd=zBr("DEV"),ry=()=>Zd==="DEV"||Zd==="QA"||Zd==="PUNE"||Zd==="SUNNYVALE"||Zd==="DELHI"||Zd==="MOHALI",cK="https://zeni-webapp-dev.uc.r.appspot.com",RBr="63d3a2406505a5737a2b4debdb513f20",ZKr=MBr(PBr(Zd)),FBr=BBr(DBr(Zd));function OBr(e,t){return ax.AES.decrypt(e,t).toString(ax.enc.Utf8)}const NBr="ZENI-WEB-APP-",DDe=Zd==="DEV"||Zd==="QA"?.2:.8,Wn={sentryDsn:"",sentryTraceSamplingRate:DDe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let O3,uK;function HBr(e){Wn.sentryDsn=e.keys.SENTRY_DSN,Wn.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):DDe,Wn.googleClientId=e.keys.GOOGLE_CLIENT_ID,Wn.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Wn.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Wn.mixpanelToken=e.keys.MIXPANEL_TOKEN,Wn.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Wn.pusherCluster=e.keys.PUSHER_CLUSTER,Wn.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Wn.appUrl=e.keys.WEB_ENDPOINT,Wn.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Wn.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,Wn.cardVaultId=e.keys.UNIT_VAULT_ID,Wn.stripeKey=e.keys.STRIPE_KEY,Wn.qboRedirectionUrl=e.keys.QBO_URL,Wn.mixpanelUrl=e.keys.MIXPANEL_URL,Wn.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,uK=e.externalEndPoints,O3=e.apiEndPoints,VBr()}function VBr(){try{const e=new Set;if(O3!=null){for(const t of Object.values(O3))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const o=document.createElement("link");o.rel="preconnect",o.href=t,o.crossOrigin="anonymous",document.head.appendChild(o)}}catch{}}async function WBr(){const t=encodeURIComponent(JSON.stringify({environment:Zd}));try{const o=await fetch(`${cK}/api/keys?query=${t}`);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return await o.json()}catch(o){return console.error("Error fetching details:",o),null}}let l5e=!1;function T8(){l5e||(ju.init(RBr,{api_host:uK.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),l5e=!0)}let d5e=!1,c5e=!1;function _De(){if(d5e)return;d5e=!0,T8();const e=wl.extractUtmParamsFromUrl();Object.keys(e).length>0&&ju.register(e),ry()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function UBr(){return ju?.persistence?.props??null}const QBr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function GBr(){const e=UBr();if(e==null)return;const t=Object.keys(e).filter(o=>o.startsWith("utm_")||QBr.has(o));for(const o of t)ju.unregister(o);ry()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function YBr(){c5e||(c5e=!0,GBr())}class Gg{identify(t,o){if(T8(),this.#o=t,t!=null&&o!=null&&(Gg.#t==null||lRe({userId:t,traits:o},Gg.#t)!==!0)){const{$email:i,...a}={...o};ju.identify(t),i&&i!=null&&ju.people.set_once({$email:i}),ju.people.set(a),Gg.#t={userId:t,traits:o},ry()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(o)} `)}}identifyUserAndCompany(t,o,i,a,l){throw Error("Use identify in the web-app!!")}track(t,o){if(T8(),this.#o==null){console.error("user is not identified :(, so can not fire event");return}_De();const i={distinct_id:this.#o,...o};ju.track(t,i),YBr(),ry()&&console.log(`*** firing ${t} with props ${JSON.stringify(o)}`)}alias(t,o){T8(),ju.alias(t,o)}reset(){T8(),ju.reset(),this.#o=void 0,Gg.#t=void 0}static get analytics(){return this.#e}static#e=new wl.Analytics(new Gg);static#t;#o}const o2=Gg.analytics;function KBr(){_De()}const qBr=()=>{const e=WS(),t=Zu(o=>o.companyState);if(e.pathname.includes("/management/parent/")){const o=e.pathname.split("/")[3],i=t.companiesById[o];if(i!=null)return`${i.companyInfo.name} ${Q.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const o=e.pathname.split("/")[4],i=t.companiesById[o];if(i!=null)return i.companyInfo.name}},u5e=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";case"creditAgent":return"credit-agent";default:return e}},JKr=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";case"creditAgent":return"credit agent";default:return e}};function ZBr(e,t){return{updateDownloadStateHandler:o=>{e(dRe(o))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(tO()),e(oO(!1)),Ba.clearAll();const o=t.locationHook.state?.origin??"/";t.navigate(o,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),o2?.trackOnboardingNewCustomerStarted()},onThreadClick:(o,i,a)=>{const l=o.entityType.split(".");if(l.length===2){const d=$4e(l[0]);if(d!=null){const c=u5e(d);t.navigate(`/${c}`),a(o,i)}else console.warn(`Invalid navigation target in thread: ${l[0]}`)}},onNotificationClick:(o,i,a)=>{const l=o.entityType.split(".");if(o.isGlobalComment&&l.length===2){const d=$4e(l[0]);if(d!=null){const c=u5e(d);t.navigate(`/${c}`),a(o,i)}else console.warn(`Invalid navigation target in notification: ${l[0]}`)}}}}function JBr(e,t){const{signedInUser:o,cockpitHeader:i}=t,a=e.tenantState.currentTenantId,d=QS(e)?.companyName??"",c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""};return{signedInUser:o,cockpitHeader:i,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:d,cockpitEndPoint:`${cK}/cockpitTabs`,authParams:c}}}const XBr=Z_e(JBr,ZBr)(d7r);function eDr(){const e=KAe(),t=Ba.getSignedInUser(),o=NV(),i=WS(),a=qBr(),l=Zu(u=>cRe(u)),d={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:l.filterByTabs,timezone:uRe()},c=i.pathname.split("/")[1];return co.jsx(XBr,{locationHook:i,themeState:e,signedInUser:t,cockpitHeader:a,allTabsViews:l,defaultOptions:d,analytics:o2,currentTab:c,navigate:o})}const tDr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*","/credit-agent/*"];function oDr({appContent:e}){const t=tDr.filter(o=>J_e(o)).length===0;return co.jsxs(co.Fragment,{children:[t?null:co.jsx(eDr,{}),co.jsx(co.Fragment,{children:e})]})}const rDr="cockpit",zDe="init-enter";function iDr({location:e,visitedUrl:t}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=t.get(o||zDe);p5e(i!==void 0?i:0)}),null}const nDr=g.memo(iDr,(e,t)=>{const{location:o,visitedUrl:i}=e,{location:a}=t,l=o.pathname||zDe,d=aDr();return i.set(l,d),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),p5e=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),aDr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},RDe=e=>g.lazy(async()=>{const t=e.toString(),o=Ba.getForceRefreshedComponents(),i=new Set(o),a=i.has(t);try{const l=await e();return i.delete(t),Ba.saveForceRefreshedComponents(Array.from(i)),l}catch(l){throw a||(i.add(t),Ba.saveForceRefreshedComponents(Array.from(i)),location.reload()),l}}),sDr=RDe(()=>Kg(()=>import("./ScreenRoutes-BNe9KhJx.js").then(e=>e.S),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11]))),lDr=RDe(()=>Kg(()=>import("./SignInScreen-c67kIMz5.js"),__vite__mapDeps([18,15,1,6,8,5,16,17,19,20,21,7])));function dDr(){const e=g.useRef();e.current==null&&(e.current=new Map);const t=NV(),o=WS();return g.useEffect(()=>{KBr()},[]),g.useEffect(()=>{const i="signin/auth";Ba.isSignedIn()===!1&&!o.pathname.includes(i)&&t(i,{replace:!0,state:{...o.state,message:"...",origin:o.pathname}})}),co.jsxs(pDr,{children:[co.jsx(nDr,{visitedUrl:e.current,location:o}),co.jsx(cDr,{})]})}const cDr=()=>{const e=Ba.isSignedIn(),t=Ba.getSignedInUser(),o=e&&US(t),i=Zu(u=>QS(u)),a={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:i.tenantId??""},l=Zu(u=>pRe(u)),c=Zu(u=>hRe(u)).map(u=>({companyId:u.companyId,tenantId:u.tenantId,companyName:u.name}));return co.jsx(B0r,{roomId:rDr,authParams:a,users:l,companies:c,authUrlEndPoint:`${O3.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${O3.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:o,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:co.jsx(uDr,{})})},uDr=()=>co.jsx(g.Suspense,{fallback:co.jsx(hDr,{children:co.jsx(wo,{size:"Large",start:!0})}),children:co.jsxs(X_e,{children:[co.jsx($I,{path:"/",element:co.jsx(eze,{to:"management",replace:!0})}),co.jsx($I,{path:"/signin/auth",element:co.jsx(lDr,{})}),co.jsx($I,{path:"*",element:co.jsx(oDr,{appContent:co.jsx(sDr,{})})})]})}),pDr=Vt("div")``,hDr=Vt("div")`
80315
+ `;var EBr=IRe();const ax=OV(EBr);class LBr{getSignedInUser(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),o=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(o!=null&&t!=null)return JSON.parse(this.decrypt(o,t))}getShowNegativeAmountInParenthesis(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),o=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&o!=null?JSON.parse(this.decrypt(t,o)):!1}getShowNegativeAmountInParenthesisPDF(){const t=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),o=window.localStorage.getItem(this.ZENI_SESSION_ID);return t!=null&&o!=null?JSON.parse(this.decrypt(t,o)):!0}getSignedInUserTenant(t){const o=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null&&i!=null)return JSON.parse(this.decrypt(o,i)).find(l=>l.tenantEmailDomain===t)}getSignedInUserTenantWithId(t){const o=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),i=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null&&i!=null)return JSON.parse(this.decrypt(o,i)).find(l=>l.tenantId===t)}getForceRefreshedComponents(){const t=window.localStorage.getItem(this.ZENI_SESSION_ID),o=window.localStorage.getItem(this.ZENI_FORCE_REFRESHED_COMPONENTS);if(o&&t!=null){const i=this.decrypt(o,t);return i?JSON.parse(i):[]}return[]}saveForceRefreshedComponents(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null?window.localStorage.setItem(this.ZENI_FORCE_REFRESHED_COMPONENTS,this.encrypt(JSON.stringify(t),o)):console.warn("Can't update the force refreshed components when the user is logged out!")}saveSignedInUserWithSession(t,o){if(t==null||o==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,o),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(t),o))}saveSignedInUserTenants(t,o){const i=o??window.localStorage.getItem(this.ZENI_SESSION_ID);i!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(t),i)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(t),o));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(o!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(t),o));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(o=>window.localStorage.getItem(o)!=null).reduce((o,i)=>o&&i)}clearAll(){this.ALL_IDs.forEach(t=>window.localStorage.removeItem(t))}setTheme(t){const o=window.localStorage.getItem(this.ZENI_SESSION_ID);o!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(t,o))}getTheme(){const t=window.localStorage.getItem(this.ZENI_THEME),o=window.localStorage.getItem(this.ZENI_SESSION_ID);if(t!=null&&o!==null)return this.decrypt(t,o)}encrypt(t,o){return ax.AES.encrypt(t,o).toString()}decrypt(t,o){return ax.AES.decrypt(t,o).toString(ax.enc.Utf8)}ZENI_SESSION_ID="ZENI_SESSION_ID";ZENI_SIGNED_IN_USER="ZENI_SIGNED_IN_USER";ZENI_SIGNED_IN_USER_TENANTS="ZENI_SIGNED_IN_USER_TENANTS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS";ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF="ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF";ZENI_THEME="ZENI_THEME";ZENI_FORCE_REFRESHED_COMPONENTS="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_THEME,this.ZENI_FORCE_REFRESHED_COMPONENTS]}const Ba=new LBr,jBr=({children:e})=>{const t=kRe("(prefers-color-scheme: dark)"),[o,i]=$.useState({dark:t});g.useEffect(()=>{const u=Ba.getTheme()==null?t:Ba.getTheme()==="dark";o.dark!==u&&i({dark:u})},[o,t]);const a=()=>{const u=!o.dark;Ba.setTheme(u?"dark":"light"),i({...o,dark:u})},l=o.dark?Lgo():Ego(),d=typeof window<"u"?window.__NONCE__:void 0,c=d!=null&&d.length>0?d:void 0;return co.jsx(buo,{dark:o.dark,webAppTheme:l,toggle:a,nonce:c,children:e})},IBr=["sandbox","production"],MBr=e=>N3(e,IBr),PBr=e=>{switch(e){case"DEV":case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"sandbox";case"PROD":case"NEXT":return"production";default:return"sandbox"}},TBr=["development","staging","production"],BBr=e=>N3(e,TBr),DBr=e=>{switch(e){case"QA":case"PUNE":case"SUNNYVALE":case"DELHI":case"MOHALI":return"staging";case"PROD":case"NEXT":return"production";case"DEV":default:return"development"}},_Br=["DEV","QA","PUNE","SUNNYVALE","DELHI","MOHALI","PROD","NEXT"],zBr=e=>N3(e,_Br),Zd=zBr("QA"),ry=()=>Zd==="DEV"||Zd==="QA"||Zd==="PUNE"||Zd==="SUNNYVALE"||Zd==="DELHI"||Zd==="MOHALI",cK="https://zeni-webapp-qa.uc.r.appspot.com",RBr="ed1936cb971f6aad4104ddbe708f812c",ZKr=MBr(PBr(Zd)),FBr=BBr(DBr(Zd));function OBr(e,t){return ax.AES.decrypt(e,t).toString(ax.enc.Utf8)}const NBr="ZENI-WEB-APP-",DDe=Zd==="DEV"||Zd==="QA"?.2:.8,Wn={sentryDsn:"",sentryTraceSamplingRate:DDe,googleClientId:"",googleMapsAPIKey:"",microsoftClientId:"",mixpanelToken:"",pusherClientSecret:"",pusherCluster:"",quickbooksKey:"",appUrl:"",featureClientSecret:"",featureClientSecretCockpit:"",cardVaultId:"",stripeKey:"",qboRedirectionUrl:"",mixpanelUrl:"",mixpanelHMUrl:""};let O3,uK;function HBr(e){Wn.sentryDsn=e.keys.SENTRY_DSN,Wn.sentryTraceSamplingRate=e.keys.SENTRY_TRACE_SAMPLE_RATES!=null?parseInt(e.keys.SENTRY_TRACE_SAMPLE_RATES):DDe,Wn.googleClientId=e.keys.GOOGLE_CLIENT_ID,Wn.googleMapsAPIKey=e.keys.GOOGLE_MAP_KEY,Wn.microsoftClientId=e.keys.MICROSOFT_CLIENT_ID,Wn.mixpanelToken=e.keys.MIXPANEL_TOKEN,Wn.pusherClientSecret=e.keys.PUSHER_CLIENT_SECRET,Wn.pusherCluster=e.keys.PUSHER_CLUSTER,Wn.quickbooksKey=e.keys.QUICKBOOK_TOKEN,Wn.appUrl=e.keys.WEB_ENDPOINT,Wn.featureClientSecret=e.keys.STATSIG_CLIENT_SECRET,Wn.featureClientSecretCockpit=e.keys.STATSIG_CLIENT_SECRET_COCKPIT,Wn.cardVaultId=e.keys.UNIT_VAULT_ID,Wn.stripeKey=e.keys.STRIPE_KEY,Wn.qboRedirectionUrl=e.keys.QBO_URL,Wn.mixpanelUrl=e.keys.MIXPANEL_URL,Wn.mixpanelHMUrl=e.keys.MIXPANEL_HM_URL,uK=e.externalEndPoints,O3=e.apiEndPoints,VBr()}function VBr(){try{const e=new Set;if(O3!=null){for(const t of Object.values(O3))if(typeof t=="string"&&t.startsWith("http"))try{e.add(new URL(t).origin)}catch{}}for(const t of e){const o=document.createElement("link");o.rel="preconnect",o.href=t,o.crossOrigin="anonymous",document.head.appendChild(o)}}catch{}}async function WBr(){const t=encodeURIComponent(JSON.stringify({environment:Zd}));try{const o=await fetch(`${cK}/api/keys?query=${t}`);if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);return await o.json()}catch(o){return console.error("Error fetching details:",o),null}}let l5e=!1;function T8(){l5e||(ju.init(RBr,{api_host:uK.mixpanelBaseUrl,ignore_dnt:!0,store_google:!1,track_marketing:!1}),l5e=!0)}let d5e=!1,c5e=!1;function _De(){if(d5e)return;d5e=!0,T8();const e=wl.extractUtmParamsFromUrl();Object.keys(e).length>0&&ju.register(e),ry()&&console.log(`[UTM] first-touch bootstrap: ${JSON.stringify(e)}`)}function UBr(){return ju?.persistence?.props??null}const QBr=new Set(["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"]);function GBr(){const e=UBr();if(e==null)return;const t=Object.keys(e).filter(o=>o.startsWith("utm_")||QBr.has(o));for(const o of t)ju.unregister(o);ry()&&t.length>0&&console.log(`[UTM] cleared from cookie: ${JSON.stringify(t)}`)}function YBr(){c5e||(c5e=!0,GBr())}class Gg{identify(t,o){if(T8(),this.#o=t,t!=null&&o!=null&&(Gg.#t==null||lRe({userId:t,traits:o},Gg.#t)!==!0)){const{$email:i,...a}={...o};ju.identify(t),i&&i!=null&&ju.people.set_once({$email:i}),ju.people.set(a),Gg.#t={userId:t,traits:o},ry()&&console.log(`*** Called people set with userId ${t} traits ${JSON.stringify(o)} `)}}identifyUserAndCompany(t,o,i,a,l){throw Error("Use identify in the web-app!!")}track(t,o){if(T8(),this.#o==null){console.error("user is not identified :(, so can not fire event");return}_De();const i={distinct_id:this.#o,...o};ju.track(t,i),YBr(),ry()&&console.log(`*** firing ${t} with props ${JSON.stringify(o)}`)}alias(t,o){T8(),ju.alias(t,o)}reset(){T8(),ju.reset(),this.#o=void 0,Gg.#t=void 0}static get analytics(){return this.#e}static#e=new wl.Analytics(new Gg);static#t;#o}const o2=Gg.analytics;function KBr(){_De()}const qBr=()=>{const e=WS(),t=Zu(o=>o.companyState);if(e.pathname.includes("/management/parent/")){const o=e.pathname.split("/")[3],i=t.companiesById[o];if(i!=null)return`${i.companyInfo.name} ${Q.getLocalizedStrings().cockpit.cockpitHeaderSubsidiaryText}`}if(e.pathname.includes("management/month-end-report/company/")){const o=e.pathname.split("/")[4],i=t.companiesById[o];if(i!=null)return i.companyInfo.name}},u5e=e=>{switch(e){case"healthMonitor":return"health-monitor";case"taskManager":return"task-manager";case"aiAccountant":return"ai-accountant";case"creditAgent":return"credit-agent";default:return e}},JKr=e=>{switch(e){case"healthMonitor":return"health monitor";case"taskManager":return"task manager";case"aiAccountant":return"ai accountant";case"creditAgent":return"credit agent";default:return e}};function ZBr(e,t){return{updateDownloadStateHandler:o=>{e(dRe(o))},onZeniLogoClick:()=>{t.themeState.toggle()},onLogOutClick:()=>{e(tO()),e(oO(!1)),Ba.clearAll();const o=t.locationHook.state?.origin??"/";t.navigate(o,{replace:!0})},onNewCustomerClick:()=>{t.navigate("/onboarding/new"),o2?.trackOnboardingNewCustomerStarted()},onThreadClick:(o,i,a)=>{const l=o.entityType.split(".");if(l.length===2){const d=$4e(l[0]);if(d!=null){const c=u5e(d);t.navigate(`/${c}`),a(o,i)}else console.warn(`Invalid navigation target in thread: ${l[0]}`)}},onNotificationClick:(o,i,a)=>{const l=o.entityType.split(".");if(o.isGlobalComment&&l.length===2){const d=$4e(l[0]);if(d!=null){const c=u5e(d);t.navigate(`/${c}`),a(o,i)}else console.warn(`Invalid navigation target in notification: ${l[0]}`)}}}}function JBr(e,t){const{signedInUser:o,cockpitHeader:i}=t,a=e.tenantState.currentTenantId,d=QS(e)?.companyName??"",c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:a??""};return{signedInUser:o,cockpitHeader:i,downloadState:e.companyViewState.downloadState,downloadParams:{currentTenantCompanyName:d,cockpitEndPoint:`${cK}/cockpitTabs`,authParams:c}}}const XBr=Z_e(JBr,ZBr)(d7r);function eDr(){const e=KAe(),t=Ba.getSignedInUser(),o=NV(),i=WS(),a=qBr(),l=Zu(u=>cRe(u)),d={tabsFileType:"excel",tabs:["management","subscription","portfolio","onboarding","healthMonitor"],filterByTabs:l.filterByTabs,timezone:uRe()},c=i.pathname.split("/")[1];return co.jsx(XBr,{locationHook:i,themeState:e,signedInUser:t,cockpitHeader:a,allTabsViews:l,defaultOptions:d,analytics:o2,currentTab:c,navigate:o})}const tDr=["/management/*","/subscription/*","/onboarding/*","/portfolio/*","/audit/*","/health-monitor/*","/task-manager/*","/ai-accountant/*","/credit-agent/*"];function oDr({appContent:e}){const t=tDr.filter(o=>J_e(o)).length===0;return co.jsxs(co.Fragment,{children:[t?null:co.jsx(eDr,{}),co.jsx(co.Fragment,{children:e})]})}const rDr="cockpit",zDe="init-enter";function iDr({location:e,visitedUrl:t}){const{pathname:o}=e;return g.useLayoutEffect(()=>{const i=t.get(o||zDe);p5e(i!==void 0?i:0)}),null}const nDr=g.memo(iDr,(e,t)=>{const{location:o,visitedUrl:i}=e,{location:a}=t,l=o.pathname||zDe,d=aDr();return i.set(l,d),!((a.pathname!==o.pathname||a.search!==o.search)&&a.hash==="")}),p5e=(e=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,e)}),aDr=()=>{let e=0;return document!=null&&document.documentElement!==null&&(e=document.documentElement.scrollTop),window.pageYOffset||e},RDe=e=>g.lazy(async()=>{const t=e.toString(),o=Ba.getForceRefreshedComponents(),i=new Set(o),a=i.has(t);try{const l=await e();return i.delete(t),Ba.saveForceRefreshedComponents(Array.from(i)),l}catch(l){throw a||(i.add(t),Ba.saveForceRefreshedComponents(Array.from(i)),location.reload()),l}}),sDr=RDe(()=>Kg(()=>import("./ScreenRoutes-DJbaAuJs.js").then(e=>e.S),__vite__mapDeps([14,5,1,6,15,8,16,17,7,2,4,9,11]))),lDr=RDe(()=>Kg(()=>import("./SignInScreen-zP9a_Vt5.js"),__vite__mapDeps([18,15,1,6,8,5,16,17,19,20,21,7])));function dDr(){const e=g.useRef();e.current==null&&(e.current=new Map);const t=NV(),o=WS();return g.useEffect(()=>{KBr()},[]),g.useEffect(()=>{const i="signin/auth";Ba.isSignedIn()===!1&&!o.pathname.includes(i)&&t(i,{replace:!0,state:{...o.state,message:"...",origin:o.pathname}})}),co.jsxs(pDr,{children:[co.jsx(nDr,{visitedUrl:e.current,location:o}),co.jsx(cDr,{})]})}const cDr=()=>{const e=Ba.isSignedIn(),t=Ba.getSignedInUser(),o=e&&US(t),i=Zu(u=>QS(u)),a={userId:t?.userId??"",sessionId:t?.zeniSessionId??"",tenantId:i.tenantId??""},l=Zu(u=>pRe(u)),c=Zu(u=>hRe(u)).map(u=>({companyId:u.companyId,tenantId:u.tenantId,companyName:u.name}));return co.jsx(B0r,{roomId:rDr,authParams:a,users:l,companies:c,authUrlEndPoint:`${O3.tenantMicroServiceBaseUrl}/1.0/commenting/auth`,fetchZeniUsers:!1,commentingUsersUrlEndPoint:`${O3.tenantMicroServiceBaseUrl}/1.0/users/zeni-users`,autoConnect:o,withRoomProvider:!1,loggedInUser:t,withThreadsProvider:!0,filter:{application:"cockpit"},children:co.jsx(uDr,{})})},uDr=()=>co.jsx(g.Suspense,{fallback:co.jsx(hDr,{children:co.jsx(wo,{size:"Large",start:!0})}),children:co.jsxs(X_e,{children:[co.jsx($I,{path:"/",element:co.jsx(eze,{to:"management",replace:!0})}),co.jsx($I,{path:"/signin/auth",element:co.jsx(lDr,{})}),co.jsx($I,{path:"*",element:co.jsx(oDr,{appContent:co.jsx(sDr,{})})})]})}),pDr=Vt("div")``,hDr=Vt("div")`
80316
80316
  display: flex;
80317
80317
  flex: 1 1 auto;
80318
80318
  flex-direction: row;
@@ -80323,4 +80323,4 @@ ${e}`,g9r=e=>g.createElement("svg",{width:38,height:39,viewBox:"0 0 38 39",fill:
80323
80323
  background-color: ${e=>e.theme.colors.background};
80324
80324
  `;function mDr(){Q.updateAppLocaleID("en"),yDr();const e=wDr(),[t,o]=g.useState(!1),i=g.useCallback(l=>{l.data?.type==="UPDATE_READY"?o(!0):l.data?.type==="HIDE_UPDATE_POPUP"&&o(!1)},[]);g.useEffect(()=>("serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",i),navigator.serviceWorker.addEventListener("controllerchange",()=>{o(!1)})),()=>{navigator.serviceWorker.removeEventListener("message",i)}),[i]);const a=()=>{o(!1),window.location.reload()};return co.jsx(jBr,{children:co.jsx(tze,{store:e,children:co.jsx(Dkt,{children:co.jsxs(sKt,{children:[t?co.jsx(Yto,{onPrimaryClick:a}):null,co.jsx(fDr,{})]})})})})}const r8=new mRe,gDr=()=>{const e=Ba.getSignedInUser(),t=Zu(L=>QS(L)),o=Zu(L=>yRe(L,t.companyId)),i=WS(),a=NV(),l=oze(),[d,c]=g.useState(null),u=Par(e?.userId),p=t?.excludedResources?.fetchState=="Completed"?t.excludedResources.resources:[];g.useEffect(()=>()=>{l(XK())},[]);const h=Zu(L=>wRe(L)),m=t?.externalConnections?.accounting[0]?.connectionName,f=()=>{l(XK())},x=g.useMemo(()=>bRe(t.userRole),[t.userRole]),y=Zu(L=>L.companyViewState.zeniUsers),w=g.useMemo(()=>{const L=y.fetchState==="Error"&&vRe(y.error);return L&&console.warn("Auto-logout triggered due to invalid session"),L},[y.fetchState,y.error]),b=g.useMemo(()=>{const L=y.fetchState==="Error"&&CRe(y.error)===!0;return L&&console.warn("Page is not accessible, show 404"),L},[y.fetchState,y.error]),C=g.useRef(!1);g.useEffect(()=>(w&&!C.current&&(C.current=!0,k()),()=>{C.current=!1}),[w]),g.useEffect(()=>{b&&window.open("/page-not-found","_self")},[b]);const k=g.useCallback(()=>{c(null),r8.stop(),l(tO()),l(oO(!1)),Ba.clearAll();const L=i.state?.origin??"/";a(L,{replace:!0})},[l,c,i,a]),A=g.useCallback((L="manual")=>{L==="auto-logout"?a3o({idleTimeoutMinutes:u.idleTimeoutMinutes}):d3o(),c(null),r8.stop(),l(tO()),l(oO(!1)),Ba.clearAll(),window.location.href="/signin/auth"},[l,c,u.idleTimeoutMinutes]);g.useEffect(()=>{if(e?.zeniSessionId!=null)return r8.start({idleTimeoutMinutes:u.idleTimeoutMinutes,warningDurationSeconds:u.warningDurationSeconds,heartbeatIntervalMinutes:u.heartbeatIntervalMinutes,isAutoLogoutEnabled:u.isAutoLogoutEnabled},{onHeartbeat:()=>l($Re()),onWarningStart:L=>{o2.trackSessionTimeoutPopupShown(L),c(L)},onWarningTick:c,onAutoLogout:()=>{o2.trackSessionTimeoutAutoLogout(),A("auto-logout")},onSessionExtended:()=>c(null)}),()=>r8.stop()},[e?.zeniSessionId,u.isAutoLogoutEnabled,u.idleTimeoutMinutes,u.warningDurationSeconds,u.heartbeatIntervalMinutes,l,A,c]);const E=g.useMemo(()=>Ba.getSignedInUser(),[]),I=g.useMemo(()=>({userId:E?.userId??"",sessionId:E?.zeniSessionId??"",tenantId:t.tenantId??""}),[E,t.tenantId]);return co.jsxs(bKt,{globalInfo:{loggedInUser:e,loggedInUserRole:t?.userRole,excludedResources:p,loggedInUserRoleMap:x,currentTenant:t,connectionName:m,controllersList:o},children:[co.jsx(uKt,{toolkit:{analytics:o2,sentry:$_e,authParams:I},children:co.jsxs(SYt,{endPoint:{url:cK},children:[co.jsx(bor,{isOnDashboard:!1,showSnackbar:h.isSnackbarOpen,snackbar:{message:h.message,messageType:h.messageType,onRemoveSnackbar:f,showStatusIcon:h.showStatusIcon}}),co.jsx(dDr,{})]})}),d!=null&&e!=null?co.jsx(Xfr,{secondsRemaining:d,onContinueSession:()=>{o2.trackSessionTimeoutClicked("continue",d),r8.continueSession()},onSignOut:()=>{o2.trackSessionTimeoutClicked("sign_out",d),A()}}):null]})},fDr=()=>{const e=Ba.isSignedIn(),o=Zu(i=>QS(i)).companyId;return co.jsx(rJt,{isUserSignedIn:e,featureGateCustomFields:{companyId:o},zeniFeatureConfig:{currentFeatureEnv:FBr,featureClientSecret:Wn.featureClientSecretCockpit,providerEndPoint:uK.statsigBaseUrl},children:co.jsx(gDr,{})})},xDr=v_e(mDr);function yDr(){console.log("Initialize any 3rd party libs!")}let JF=null;function wDr(){return JF===null&&(JF=bDr(),gRe().catch(e=>{console.error("Failed to load feature epics:",e),C_e(e,{tags:{critical:"true",module:"epicManager"}}),alert(`The application failed to load required modules. Some features may not work correctly.
80325
80325
 
80326
- Please refresh the page to try again.`)})),JF}function bDr(){console.warn(`initializing epic state with url ${JSON.stringify(O3)}`);const e=Ba.getSignedInUser(),t=fRe(O3,e?.userId,e?.zeniSessionId,void 0,ry()),o=xRe();return o.userId!=null&&o2.identify(o.userId,{tenant_id:o.tenantId}),t}const h5e="zeni-chunk-reload-at",vDr=6e4,CDr=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function $Dr(){window.addEventListener("vite:preloadError",e=>{const t=e;m5e(t.payload)&&t.preventDefault()}),window.addEventListener("unhandledrejection",e=>{kDr(e.reason)&&m5e(e.reason)})}function m5e(e){try{const t=Number(sessionStorage.getItem(h5e))||0;if(Date.now()-t<vDr)return!1;sessionStorage.setItem(h5e,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}function kDr(e){const t=String(e?.message??e??"");return CDr.some(o=>t.includes(o))}const SDr=!!(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}$/)),ADr="DEV",EDr="https://zeni-webapp-dev.uc.r.appspot.com",g5e=`/service-worker.js?v=${Date.now()}&env=${ADr}&endpoint=${encodeURIComponent(EDr)}`;function LDr(e){if("serviceWorker"in navigator){if(new URL("https://dev.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{SDr?jDr(g5e):FDe(g5e)})}}function FDe(e,t){navigator.serviceWorker.register(e).then(o=>{o.onupdatefound=()=>{const i=o.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})}function jDr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(o=>{const i=o.headers.get("content-type");o.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then(a=>{a.unregister().then(()=>window.location.reload())}):FDe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const IDr=Ba.getSignedInUser(),MDr=IDr?.zeniSessionId;async function PDr(){try{const e=await WBr(),t=OBr(e,NBr+Zd);HBr(JSON.parse(t)),PRe.createRoot(document.getElementById("root")).render(co.jsx($.StrictMode,{children:co.jsx(rze,{basename:"/cockpit",children:co.jsx(xDr,{})})})),TDr()}catch(e){console.error("Error initializing app:",e)}}function TDr(){const e=()=>{k_e({dsn:Wn.sentryDsn,integrations:[S_e(),A_e({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:Wn.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(o=>o.category!=="console"?!0:(o.message??"").toLowerCase().includes("called people set")||Array.isArray(o.data?.arguments)&&o.data.arguments.some(a=>typeof a=="string"&&a.toLowerCase().includes("called people set"))?!1:(Array.isArray(o.data?.arguments)&&(o.data.arguments=o.data.arguments.map(a=>{if(typeof a=="string"&&a.includes("user_roles"))try{const l=a.match(/\{.*\}/s);if(l!==null){const d=JSON.parse(l[0]);if(d.user_roles!=null)return delete d.user_roles,a.replace(l[0],JSON.stringify(d))}}catch{}return a})),!0))),t}}),E_e("session-id",MDr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}$Dr();PDr();LDr();export{qZt as $,VKr as A,OKr as B,uVr as C,Q as D,KKr as E,PKr as F,ENr as G,_Kr as H,GKr as I,Ie as J,DKr as K,cVr as L,wo as M,BFr as N,DFr as O,Cgo as P,L4 as Q,NRr as R,zKr as S,RDe as T,BKr as U,TKr as V,HRr as W,HKr as X,RKr as Y,FKr as Z,cK as _,NKr as a,qKr as a0,o2 as b,D0r as c,Wn as d,r as e,LSe as f,JKr as g,u5e as h,UKr as i,QKr as j,v as k,ZKr as l,st as m,UL as n,_Ur as o,wl as p,Czr as q,YKr as r,LFr as s,Rp as t,KBr as u,wp as v,j as w,WKr as x,XDr as y,Ba as z};
80326
+ Please refresh the page to try again.`)})),JF}function bDr(){console.warn(`initializing epic state with url ${JSON.stringify(O3)}`);const e=Ba.getSignedInUser(),t=fRe(O3,e?.userId,e?.zeniSessionId,void 0,ry()),o=xRe();return o.userId!=null&&o2.identify(o.userId,{tenant_id:o.tenantId}),t}const h5e="zeni-chunk-reload-at",vDr=6e4,CDr=["Failed to fetch dynamically imported module","error loading dynamically imported module","Importing a module script failed"];function $Dr(){window.addEventListener("vite:preloadError",e=>{const t=e;m5e(t.payload)&&t.preventDefault()}),window.addEventListener("unhandledrejection",e=>{kDr(e.reason)&&m5e(e.reason)})}function m5e(e){try{const t=Number(sessionStorage.getItem(h5e))||0;if(Date.now()-t<vDr)return!1;sessionStorage.setItem(h5e,String(Date.now()))}catch{return!1}return console.warn("[chunk-load] Stale chunk detected — hard-reloading:",e),window.location.reload(),!0}function kDr(e){const t=String(e?.message??e??"");return CDr.some(o=>t.includes(o))}const SDr=!!(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}$/)),ADr="QA",EDr="https://zeni-webapp-qa.uc.r.appspot.com",g5e=`/service-worker.js?v=${Date.now()}&env=${ADr}&endpoint=${encodeURIComponent(EDr)}`;function LDr(e){if("serviceWorker"in navigator){if(new URL("https://qa.app.zeni.ai",window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{SDr?jDr(g5e):FDe(g5e)})}}function FDe(e,t){navigator.serviceWorker.register(e).then(o=>{o.onupdatefound=()=>{const i=o.installing;i!=null&&(i.onstatechange=()=>{i.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content available; will be used when all tabs are closed."),navigator.serviceWorker.controller?.postMessage({type:"UPDATE_READY"}),o.waiting?.postMessage({type:"SKIP_WAITING"})):console.log("Content is cached for offline use."))})},o.waiting&&o.waiting.postMessage({type:"SKIP_WAITING"}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("New service worker activated."),o.active?.postMessage({type:"CLIENTS_CLAIM"})})}).catch(o=>{console.error("Error during service worker registration:",o)})}function jDr(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(o=>{const i=o.headers.get("content-type");o.status===404||i!=null&&!i.includes("javascript")?navigator.serviceWorker.ready.then(a=>{a.unregister().then(()=>window.location.reload())}):FDe(e)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const IDr=Ba.getSignedInUser(),MDr=IDr?.zeniSessionId;async function PDr(){try{const e=await WBr(),t=OBr(e,NBr+Zd);HBr(JSON.parse(t)),PRe.createRoot(document.getElementById("root")).render(co.jsx($.StrictMode,{children:co.jsx(rze,{basename:"/cockpit",children:co.jsx(xDr,{})})})),TDr()}catch(e){console.error("Error initializing app:",e)}}function TDr(){const e=()=>{k_e({dsn:Wn.sentryDsn,integrations:[S_e(),A_e({maskAllText:!0,blockAllMedia:!0})],tracesSampleRate:Wn.sentryTraceSamplingRate,replaysSessionSampleRate:0,replaysOnErrorSampleRate:1,beforeSendTransaction(t){return t.breadcrumbs&&(t.breadcrumbs=t.breadcrumbs.filter(o=>o.category!=="console"?!0:(o.message??"").toLowerCase().includes("called people set")||Array.isArray(o.data?.arguments)&&o.data.arguments.some(a=>typeof a=="string"&&a.toLowerCase().includes("called people set"))?!1:(Array.isArray(o.data?.arguments)&&(o.data.arguments=o.data.arguments.map(a=>{if(typeof a=="string"&&a.includes("user_roles"))try{const l=a.match(/\{.*\}/s);if(l!==null){const d=JSON.parse(l[0]);if(d.user_roles!=null)return delete d.user_roles,a.replace(l[0],JSON.stringify(d))}}catch{}return a})),!0))),t}}),E_e("session-id",MDr)};typeof requestIdleCallback=="function"?requestIdleCallback(e):setTimeout(e,0)}$Dr();PDr();LDr();export{qZt as $,VKr as A,OKr as B,uVr as C,Q as D,KKr as E,PKr as F,ENr as G,_Kr as H,GKr as I,Ie as J,DKr as K,cVr as L,wo as M,BFr as N,DFr as O,Cgo as P,L4 as Q,NRr as R,zKr as S,RDe as T,BKr as U,TKr as V,HRr as W,HKr as X,RKr as Y,FKr as Z,cK as _,NKr as a,qKr as a0,o2 as b,D0r as c,Wn as d,r as e,LSe as f,JKr as g,u5e as h,UKr as i,QKr as j,v as k,ZKr as l,st as m,UL as n,_Ur as o,wl as p,Czr as q,YKr as r,LFr as s,Rp as t,KBr as u,wp as v,j as w,WKr as x,XDr as y,Ba as z};
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-DStLthID.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DPjqAmgS.js"><link rel="modulepreload" crossorigin href="/assets/core-jCXGTQvA.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-C-CH5wAG.js"><link rel="modulepreload" crossorigin href="/assets/recharts-DADINQF-.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-DZkCH2xN.js"><link rel="modulepreload" crossorigin href="/assets/mui-Dplz67jq.js"><link rel="modulepreload" crossorigin href="/assets/analytics-bLGoMt_1.js"><link rel="modulepreload" crossorigin href="/assets/lottie-DUyJu0pd.js"><link rel="modulepreload" crossorigin href="/assets/lexical-LPziZn5A.js"><link rel="modulepreload" crossorigin href="/assets/utils-BSshncBl.js"><link rel="stylesheet" crossorigin href="/assets/index-xQ8260uf.css"></head><body><div id="root"></div></body></html>
1
+ <!DOCTYPE html><html lang="en"><head><meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate"><meta http-equiv="expires" content="0"><meta http-equiv="pragma" content="no-cache"><meta charset="UTF-8"><link rel="icon" type="image/svg+xml" href="/assets/favicon-D56XvgAH.ico"><meta name="ROBOTS" content="NOINDEX, NOFOLLOW"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Zeni - Modern Finance Team For Startups</title><script type="module" crossorigin src="/assets/index-2QktT_hq.js"></script><link rel="modulepreload" crossorigin href="/assets/sentry-DPjqAmgS.js"><link rel="modulepreload" crossorigin href="/assets/core-jCXGTQvA.js"><link rel="modulepreload" crossorigin href="/assets/zeni-epic-state-C-CH5wAG.js"><link rel="modulepreload" crossorigin href="/assets/recharts-DADINQF-.js"><link rel="modulepreload" crossorigin href="/assets/liveblocks-DZkCH2xN.js"><link rel="modulepreload" crossorigin href="/assets/mui-Dplz67jq.js"><link rel="modulepreload" crossorigin href="/assets/analytics-bLGoMt_1.js"><link rel="modulepreload" crossorigin href="/assets/lottie-DUyJu0pd.js"><link rel="modulepreload" crossorigin href="/assets/lexical-LPziZn5A.js"><link rel="modulepreload" crossorigin href="/assets/utils-BSshncBl.js"><link rel="stylesheet" crossorigin href="/assets/index-xQ8260uf.css"></head><body><div id="root"></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-cockpit-ui",
3
- "version": "2.0.60-dev",
3
+ "version": "2.0.60-qa",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],