@budibase/server 2.5.6-alpha.41 → 2.5.6-alpha.42

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.
@@ -953,7 +953,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
953
953
  `),i=U("div"),L(a.$$.fragment),o=P(),L(l.$$.fragment),s=P(),L(u.$$.fragment),c=P(),f=U("div"),d=U("div"),L(p.$$.fragment),m=P(),L(g.$$.fragment),S(i,"class","side-panel-icons svelte-paxh3j"),S(t,"class","side-panel-header svelte-paxh3j"),S(d,"class","copy-icon svelte-paxh3j"),S(f,"class","side-panel-body svelte-paxh3j"),S(e,"id","side-panel"),S(e,"class","svelte-paxh3j"),ve(e,"wide",n[10]),ve(e,"visible",n[9])},m(T,O){w(T,e,O),H(e,t),H(t,r),H(t,i),C(a,i,null),H(i,o),C(l,i,null),H(e,s),C(u,e,null),H(e,c),H(e,f),H(f,d),C(p,d,null),H(f,m),C(g,f,null),y=!0,k||(M=[at(d,"click",n[41]),pa(v=a0.call(null,e,n[42]))],k=!0)},p(T,O){const I={};O[0]&1024&&(I.name=T[10]?"Minimize":"Maximize"),a.$set(I);const B={};O[0]&256&&(B.value=JSON.stringify(T[23](T[8]),null,2)),g.$set(B),v&&xt(v.update)&&O[0]&512&&v.update.call(null,T[42]),(!y||O[0]&1024)&&ve(e,"wide",T[10]),(!y||O[0]&512)&&ve(e,"visible",T[9])},i(T){y||(h(a.$$.fragment,T),h(l.$$.fragment,T),h(u.$$.fragment,T),h(p.$$.fragment,T),h(g.$$.fragment,T),y=!0)},o(T){_(a.$$.fragment,T),_(l.$$.fragment,T),_(u.$$.fragment,T),_(p.$$.fragment,T),_(g.$$.fragment,T),y=!1},d(T){T&&$(e),E(a),E(l),E(u),E(p),E(g),k=!1,gr(M)}}}function sMt(n){let e,t,r,i;e=new nue({props:{title:"Audit Logs",planType:"Business plan",description:"View all events that have occurred in your Budibase installation",enabled:n[14].auditLogsEnabled,upgradeButtonClick:n[38],$$slots:{default:[lMt]},$$scope:{ctx:n}}});let a=n[8]&&rZ(n);return{c(){L(e.$$.fragment),t=P(),a&&a.c(),r=lt()},m(o,l){C(e,o,l),w(o,t,l),a&&a.m(o,l),w(o,r,l),i=!0},p(o,l){const s={};l[0]&16384&&(s.enabled=o[14].auditLogsEnabled),l[0]&16384&&(s.upgradeButtonClick=o[38]),l[0]&14591|l[1]&1048576&&(s.$$scope={dirty:l,ctx:o}),e.$set(s),o[8]?a?(a.p(o,l),l[0]&256&&h(a,1)):(a=rZ(o),a.c(),h(a,1),a.m(r.parentNode,r)):a&&(de(),_(a,1,1,()=>{a=null}),pe())},i(o){i||(h(e.$$.fragment,o),h(a),i=!0)},o(o){_(e.$$.fragment,o),_(a),i=!1},d(o){E(e,o),o&&$(t),a&&a.d(o),o&&$(r)}}}const uMt=n=>n._id,cMt=n=>n.email,fMt=n=>n.instance._id,dMt=n=>n.name,pMt=n=>n.id,mMt=n=>n.label;function hMt(n,e,t){let r,i,a,o,l,s,u,c,f,d,p;me(n,a_,Ye=>t(6,s=Ye)),me(n,Ma,Ye=>t(27,c=Ye)),me(n,bi,Ye=>t(29,d=Ye)),me(n,Pr,Ye=>t(14,p=Ye));const m={date:{width:"0.8fr"},user:{width:"0.5fr"},name:{width:"2fr",displayName:"Event"},app:{width:"1.5fr"},view:{width:"0.1fr",borderLeft:!0,displayName:""}},g=[{column:"view",component:Jzt},{column:"user",component:xzt},{column:"date",component:nMt},{column:"app",component:aMt}];let v="",y="",k=t7();me(n,k,Ye=>t(28,f=Ye));let M=t7();me(n,M,Ye=>t(7,u=Ye));let T,O,I=[],B=[],N=[],F,Y=!1,te=!1,x,ee=new Date;ee.setDate(ee.getDate()-30);let W=new Date;const G=Ye=>{clearTimeout(x),x=setTimeout(()=>{t(24,y=Ye)},400)},Q=async(Ye,Pe)=>{if(!f.loading){Pe&&!T&&(k.reset(),Ye=void 0),T=Pe;try{k.loading(),await Ma.search({userPage:Ye,email:Pe}),k.fetched(c.hasNextPage,c.nextPage)}catch{ut.error("Error getting user list")}}},ne=async({logsPage:Ye,logSearchTerm:Pe,startDate:tt,endDate:Mt,selectedUsers:$t,selectedApps:jt,selectedEvents:Qe})=>{if(!u.loading){Pe&&!O&&(M.reset(),Ye=void 0),O=Pe;try{M.loading(),await a_.search({bookmark:Ye,startDate:tt,endDate:Mt,fullSearch:Pe,userIds:$t,appIds:jt,events:Qe}),M.fetched(s.logs.hasNextPage,s.logs.bookmark)}catch(vt){ut.error(`Error getting audit logs - ${vt}`)}}},oe=(Ye,Pe,tt)=>Ye.map(Mt=>({...Mt,selected:Pe.find($t=>$t===Mt[tt]||$t.includes(Mt[tt]))!=null})),ce=(Ye,Pe)=>{let tt=Ye.slice();return tt==null||tt.sort((Mt,$t)=>Mt.selected===$t.selected?Mt[Pe]<$t[Pe]?-1:1:Mt.selected?-1:$t.selected?1:0),tt},ie=Ye=>{if(Ye)return Object.entries(Ye).map(([Pe,tt])=>({id:Pe,label:tt}))},se=Ye=>{t(8,F=Ye),t(9,Y=!0)},fe=async()=>{try{window.location=a_.getDownloadUrl({startDate:ee,endDate:W,fullSearch:y,userIds:I,appIds:B,events:N})}catch(Ye){ut.error("Error downloading logs: "+Ye.message)}};Au("auditLogs",{viewDetails:se});const re=async Ye=>{await u7(Ye),ut.success("Copied")};function ke(Ye){const Pe=k4.exports.cloneDeep(Ye);return Pe.userId=Pe.user._id,Pe.app&&(Pe.appId=Pe.app.appId),delete Pe._id,delete Pe._rev,delete Pe.app,delete Pe.user,Pe}vn(async()=>{await a_.getEventDefinitions(),await Pr.init()});function He(Ye){v=Ye,t(0,v)}function ge(Ye){I=Ye,t(1,I)}function Re(Ye){B=Ye,t(2,B)}function he(Ye){N=Ye,t(3,N)}const De=Ye=>{var Pe,tt;((Pe=Ye.detail[0])==null?void 0:Pe.length)===1?(t(4,ee=Ye.detail[0][0].toISOString()),t(5,W="")):((tt=Ye.detail[0])==null?void 0:tt.length)>1?(t(4,ee=Ye.detail[0][0].toISOString()),t(5,W=Ye.detail[0][1].toISOString())):(t(4,ee=""),t(5,W=""))},ht=Ye=>G(Ye.detail),Se=()=>fe(),ct=({detail:Ye})=>se(Ye),_t=async()=>{p.goToUpgradePage()},gt=()=>{t(10,te=!te)},Ue=()=>{t(9,Y=!1)},mt=()=>re(JSON.stringify(F.metadata)),Ot=()=>{t(9,Y=!1)};return n.$$.update=()=>{n.$$.dirty[0]&268435456&&t(26,r=f.page),n.$$.dirty[0]&67108865&&Q(r,v),n.$$.dirty[0]&128&&t(25,i=u.page),n.$$.dirty[0]&50331710&&ne({logsPage:i,logSearchTerm:y,startDate:ee,endDate:W,selectedUsers:I,selectedApps:B,selectedEvents:N}),n.$$.dirty[0]&134217730&&t(13,a=ce(oe(c.data||[],I,"_id"),"email")),n.$$.dirty[0]&72&&t(12,o=ce(oe(ie(s.events),N,"id"),"id")),n.$$.dirty[0]&536870916&&t(11,l=ce(oe(d,B,"appId"),"name"))},[v,I,B,N,ee,W,s,u,F,Y,te,l,o,a,p,m,g,k,M,G,se,fe,re,ke,y,i,r,c,f,d,He,ge,Re,he,De,ht,Se,ct,_t,gt,Ue,mt,Ot]}class gMt extends ze{constructor(e){super(),Ae(this,e,hMt,sMt,$e,{},null,[-1,-1])}}function _Mt(n,e,t){let r;return me(n,Ai,i=>t(0,r=i)),r("./usage"),[]}class vMt extends ze{constructor(e){super(),Ae(this,e,_Mt,null,$e,{})}}function bMt(n){let e;return{c(){e=J("Are you sure you want to delete this license key?")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function yMt(n){let e;return{c(){e=J("This license key cannot be re-activated.")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function $Mt(n){let e,t,r,i;return e=new It({props:{size:"S",$$slots:{default:[bMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"S",$$slots:{default:[yMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&32&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&32&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function wMt(n){let e,t;return e=new tr({props:{title:"Confirm deletion",size:"S",showCancelButton:!0,confirmText:"Confirm",onConfirm:n[0],$$slots:{default:[$Mt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.onConfirm=r[0]),i&32&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function kMt(n){let e,t,r={$$slots:{default:[wMt]},$$scope:{ctx:n}};return e=new Pn({props:r}),n[4](e),e.$on("hide",function(){xt(n[1])&&n[1].apply(this,arguments)}),{c(){L(e.$$.fragment)},m(i,a){C(e,i,a),t=!0},p(i,[a]){n=i;const o={};a&33&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(h(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){n[4](null),E(e,i)}}}function AMt(n,e,t){let r,{onConfirm:i}=e;function a(){r.show()}function o(){r.hide()}function l(s){Me[s?"unshift":"push"](()=>{r=s,t(1,r)})}return n.$$set=s=>{"onConfirm"in s&&t(0,i=s.onConfirm)},[i,r,a,o,l]}class zMt extends ze{constructor(e){super(),Ae(this,e,AMt,kMt,$e,{onConfirm:0,show:2,hide:3})}get show(){return this.$$.ctx[2]}get hide(){return this.$$.ctx[3]}}function iZ(n){let e,t,r,i,a={onConfirm:n[10]};return e=new zMt({props:a}),n[14](e),r=new Ct({props:{noPadding:!0,$$slots:{default:[YMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(o,l){C(e,o,l),w(o,t,l),C(r,o,l),i=!0},p(o,l){const s={};e.$set(s);const u={};l&262647&&(u.$$scope={dirty:l,ctx:o}),r.$set(u)},i(o){i||(h(e.$$.fragment,o),h(r.$$.fragment,o),i=!0)},o(o){_(e.$$.fragment,o),_(r.$$.fragment,o),i=!1},d(o){n[14](null),E(e,o),o&&$(t),E(r,o)}}}function MMt(n){let e;return{c(){e=J("Upgrade")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function SMt(n){let e,t,r;return t=new V0({props:{size:"L",href:n[7],$$slots:{default:[EMt]},$$scope:{ctx:n}}}),{c(){e=J(`To manage your plan visit your
954
954
  `),L(t.$$.fragment)},m(i,a){w(i,e,a),C(t,i,a),r=!0},p(i,a){const o={};a&128&&(o.href=i[7]),a&262144&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t,i)}}}function CMt(n){let e,t,r,i;return t=new V0({props:{size:"L",href:n[7],$$slots:{default:[LMt]},$$scope:{ctx:n}}}),{c(){e=J(`Upgrade your Budibase installation to unlock additional features. To
955
955
  subscribe to a plan visit your
956
- `),L(t.$$.fragment),r=J(".")},m(a,o){w(a,e,o),C(t,a,o),w(a,r,o),i=!0},p(a,o){const l={};o&128&&(l.href=a[7]),o&262144&&(l.$$scope={dirty:o,ctx:a}),t.$set(l)},i(a){i||(h(t.$$.fragment,a),i=!0)},o(a){_(t.$$.fragment,a),i=!1},d(a){a&&$(e),E(t,a),a&&$(r)}}}function EMt(n){let e;return{c(){e=J("account")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function LMt(n){let e;return{c(){e=J("account")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function TMt(n){let e,t,r,i;const a=[CMt,SMt],o=[];function l(s,u){return s[8].plan.type==="free"?0:1}return e=l(n),t=o[e]=a[e](n),{c(){t.c(),r=lt()},m(s,u){o[e].m(s,u),w(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?o[e].p(s,u):(de(),_(o[c],1,1,()=>{o[c]=null}),pe(),t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),h(t,1),t.m(r.parentNode,r))},i(s){i||(h(t),i=!0)},o(s){_(t),i=!1},d(s){o[e].d(s),s&&$(r)}}}function OMt(n){let e,t,r,i;return e=new gn({props:{size:"M",$$slots:{default:[MMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"M",$$slots:{default:[TMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262144&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262528&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function DMt(n){let e;return{c(){e=J("Activate")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function IMt(n){let e;return{c(){e=J("Enter your license key below to activate your plan")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function BMt(n){let e,t,r,i;return e=new gn({props:{size:"S",$$slots:{default:[DMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"S",$$slots:{default:[IMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262144&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262144&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function HMt(n){let e;return{c(){e=J("License key")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function PMt(n){let e;return{c(){e=J("Activate")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function aZ(n){let e,t;return e=new en({props:{warning:!0,$$slots:{default:[RMt]},$$scope:{ctx:n}}}),e.$on("click",n[16]),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&262144&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function RMt(n){let e;return{c(){e=J("Delete")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function VMt(n){var o;let e,t,r,i;e=new en({props:{cta:!0,disabled:n[6],$$slots:{default:[PMt]},$$scope:{ctx:n}}}),e.$on("click",n[9]);let a=((o=n[0])==null?void 0:o.licenseKey)&&aZ(n);return{c(){L(e.$$.fragment),t=P(),a&&a.c(),r=lt()},m(l,s){C(e,l,s),w(l,t,s),a&&a.m(l,s),w(l,r,s),i=!0},p(l,s){var c;const u={};s&64&&(u.disabled=l[6]),s&262144&&(u.$$scope={dirty:s,ctx:l}),e.$set(u),(c=l[0])!=null&&c.licenseKey?a?(a.p(l,s),s&1&&h(a,1)):(a=aZ(l),a.c(),h(a,1),a.m(r.parentNode,r)):a&&(de(),_(a,1,1,()=>{a=null}),pe())},i(l){i||(h(e.$$.fragment,l),h(a),i=!0)},o(l){_(e.$$.fragment,l),_(a),i=!1},d(l){E(e,l),l&&$(t),a&&a.d(l),l&&$(r)}}}function NMt(n){let e,t,r,i,a,o,l,s,u;r=new qt({props:{size:"L",$$slots:{default:[HMt]},$$scope:{ctx:n}}});function c(d){n[15](d)}let f={thin:!0,type:n[4],disabled:n[1]};return n[2]!==void 0&&(f.value=n[2]),a=new hn({props:f}),Me.push(()=>je(a,"value",c)),s=new f7({props:{gap:"M",$$slots:{default:[VMt]},$$scope:{ctx:n}}}),{c(){e=U("div"),t=U("div"),L(r.$$.fragment),i=P(),L(a.$$.fragment),l=P(),L(s.$$.fragment),S(t,"class","field svelte-1a0qi5v"),S(e,"class","fields svelte-1a0qi5v")},m(d,p){w(d,e,p),H(e,t),C(r,t,null),H(t,i),C(a,t,null),w(d,l,p),C(s,d,p),u=!0},p(d,p){const m={};p&262144&&(m.$$scope={dirty:p,ctx:d}),r.$set(m);const g={};p&16&&(g.type=d[4]),p&2&&(g.disabled=d[1]),!o&&p&4&&(o=!0,g.value=d[2],qe(()=>o=!1)),a.$set(g);const v={};p&262241&&(v.$$scope={dirty:p,ctx:d}),s.$set(v)},i(d){u||(h(r.$$.fragment,d),h(a.$$.fragment,d),h(s.$$.fragment,d),u=!0)},o(d){_(r.$$.fragment,d),_(a.$$.fragment,d),_(s.$$.fragment,d),u=!1},d(d){d&&$(e),E(r),E(a),d&&$(l),E(s,d)}}}function FMt(n){let e;return{c(){e=J("Plan")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function UMt(n){let e,t=n[8].plan.type+"",r,i;return{c(){e=J("You are currently on the "),r=J(t),i=J(" plan")},m(a,o){w(a,e,o),w(a,r,o),w(a,i,o)},p(a,o){o&256&&t!==(t=a[8].plan.type+"")&&Xe(r,t)},d(a){a&&$(e),a&&$(r),a&&$(i)}}}function jMt(n){let e=H0("Updated {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(n[8].refreshedAt).getTime()})+"",t;return{c(){t=J(e)},m(r,i){w(r,t,i)},p(r,i){i&256&&e!==(e=H0("Updated {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(r[8].refreshedAt).getTime()})+"")&&Xe(t,e)},d(r){r&&$(t)}}}function qMt(n){let e,t,r,i;return e=new It({props:{size:"S",$$slots:{default:[UMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"XS",$$slots:{default:[jMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262400&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262400&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function WMt(n){let e,t,r,i;return e=new gn({props:{size:"S",$$slots:{default:[FMt]},$$scope:{ctx:n}}}),r=new Ct({props:{noPadding:!0,gap:"XXS",$$slots:{default:[qMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262144&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262400&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function GMt(n){let e;return{c(){e=J("Refresh")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function YMt(n){let e,t,r,i,a,o,l,s,u,c,f,d,p,m,g;return e=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[OMt]},$$scope:{ctx:n}}}),r=new Sr({}),a=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[BMt]},$$scope:{ctx:n}}}),l=new Ct({props:{noPadding:!0,$$slots:{default:[NMt]},$$scope:{ctx:n}}}),u=new Sr({}),f=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[WMt]},$$scope:{ctx:n}}}),m=new en({props:{secondary:!0,$$slots:{default:[GMt]},$$scope:{ctx:n}}}),m.$on("click",n[11]),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment),i=P(),L(a.$$.fragment),o=P(),L(l.$$.fragment),s=P(),L(u.$$.fragment),c=P(),L(f.$$.fragment),d=P(),p=U("div"),L(m.$$.fragment)},m(v,y){C(e,v,y),w(v,t,y),C(r,v,y),w(v,i,y),C(a,v,y),w(v,o,y),C(l,v,y),w(v,s,y),C(u,v,y),w(v,c,y),C(f,v,y),w(v,d,y),w(v,p,y),C(m,p,null),g=!0},p(v,y){const k={};y&262528&&(k.$$scope={dirty:y,ctx:v}),e.$set(k);const M={};y&262144&&(M.$$scope={dirty:y,ctx:v}),a.$set(M);const T={};y&262263&&(T.$$scope={dirty:y,ctx:v}),l.$set(T);const O={};y&262400&&(O.$$scope={dirty:y,ctx:v}),f.$set(O);const I={};y&262144&&(I.$$scope={dirty:y,ctx:v}),m.$set(I)},i(v){g||(h(e.$$.fragment,v),h(r.$$.fragment,v),h(a.$$.fragment,v),h(l.$$.fragment,v),h(u.$$.fragment,v),h(f.$$.fragment,v),h(m.$$.fragment,v),g=!0)},o(v){_(e.$$.fragment,v),_(r.$$.fragment,v),_(a.$$.fragment,v),_(l.$$.fragment,v),_(u.$$.fragment,v),_(f.$$.fragment,v),_(m.$$.fragment,v),g=!1},d(v){E(e,v),v&&$(t),E(r,v),v&&$(i),E(a,v),v&&$(o),E(l,v),v&&$(s),E(u,v),v&&$(c),E(f,v),v&&$(d),v&&$(p),E(m)}}}function KMt(n){let e,t,r=n[3].isAdmin&&iZ(n);return{c(){r&&r.c(),e=lt()},m(i,a){r&&r.m(i,a),w(i,e,a),t=!0},p(i,[a]){i[3].isAdmin?r?(r.p(i,a),a&8&&h(r,1)):(r=iZ(i),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(de(),_(r,1,1,()=>{r=null}),pe())},i(i){t||(h(r),t=!0)},o(i){_(r),t=!1},d(i){r&&r.d(i),i&&$(e)}}}function XMt(n,e,t){let r,i,a,o,l,s;me(n,Ai,O=>t(12,o=O)),me(n,ti,O=>t(13,l=O)),me(n,In,O=>t(3,s=O));let u,c=!1,f="text",d="",p;const m=async()=>{try{await Vt.activateLicenseKey({licenseKey:d}),await In.getSelf(),await y(),ut.success("Successfully activated")}catch(O){ut.error(O.message)}},g=async()=>{try{await Vt.deleteLicenseKey({licenseKey:d}),await In.getSelf(),await y(),t(2,d=""),t(1,c=!1),ut.success("Successfully deleted")}catch(O){ut.error(O.message)}},v=async()=>{try{await Vt.refreshLicense(),await In.getSelf(),ut.success("Refreshed license")}catch(O){console.error(O),ut.error("Error refreshing license")}},y=async()=>{t(0,u=await Vt.getLicenseInfo())};vn(async()=>{await y()});function k(O){Me[O?"unshift":"push"](()=>{p=O,t(5,p)})}function M(O){d=O,t(2,d),t(0,u)}const T=()=>p.show();return n.$$.update=()=>{n.$$.dirty&8&&t(8,r=s.user.license),n.$$.dirty&8192&&t(7,i=`${l.accountPortalUrl}/portal/upgrade`),n.$$.dirty&1&&u!=null&&u.licenseKey&&(t(2,d="**********************************************"),t(4,f="password"),t(1,c=!0),t(6,a=!0)),n.$$.dirty&6&&t(6,a=!d||c),n.$$.dirty&12288&&l.cloud&&o("../../portal")},[u,c,d,s,f,p,a,i,r,m,g,v,o,l,k,M,T]}class JMt extends ze{constructor(e){super(),Ae(this,e,XMt,KMt,$e,{})}}function oZ(n){let e,t;return e=new Wt({props:{name:"Alert"}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function QMt(n){let e,t=n[0].name+"",r;return{c(){e=U("span"),r=J(t),S(e,"class","nowrap svelte-nwsice")},m(i,a){w(i,e,a),H(e,r)},p(i,a){a&1&&t!==(t=i[0].name+"")&&Xe(r,t)},d(i){i&&$(e)}}}function ZMt(n){let e=n[0].used+"",t,r,i=n[0].total+"",a;return{c(){t=J(e),r=J(" / "),a=J(i)},m(o,l){w(o,t,l),w(o,r,l),w(o,a,l)},p(o,l){l&1&&e!==(e=o[0].used+"")&&Xe(t,e),l&1&&i!==(i=o[0].total+"")&&Xe(a,i)},d(o){o&&$(t),o&&$(r),o&&$(a)}}}function xMt(n){let e=n[0].used+"",t,r;return{c(){t=J(e),r=J(" / Unlimited")},m(i,a){w(i,t,a),w(i,r,a)},p(i,a){a&1&&e!==(e=i[0].used+"")&&Xe(t,e)},d(i){i&&$(t),i&&$(r)}}}function eSt(n){let e;function t(a,o){return a[2]?xMt:ZMt}let r=t(n),i=r(n);return{c(){e=U("span"),i.c(),S(e,"class","nowrap svelte-nwsice")},m(a,o){w(a,e,o),i.m(e,null)},p(a,o){r===(r=t(a))&&i?i.p(a,o):(i.d(1),i=r(a),i&&(i.c(),i.m(e,null)))},d(a){a&&$(e),i.d()}}}function tSt(n){let e,t;return e=new fre({props:{color:n[3]?"red":"green",showPercentage:!1,width:"100%",duration:1,value:n[1]}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.color=r[3]?"red":"green"),i&2&&(a.value=r[1]),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function nSt(n){let e,t;return e=new fre({props:{showPercentage:!1,width:"100%",duration:1,value:100}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p:Ge,i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function lZ(n){let e,t;return e=new It({props:{size:"S",$$slots:{default:[oSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&2065&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function rSt(n){let e;return{c(){e=J("contact your account holder")},m(t,r){w(t,e,r)},p:Ge,i:Ge,o:Ge,d(t){t&&$(e)}}}function iSt(n){let e,t;return e=new V0({props:{href:n[5],$$slots:{default:[aSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&2048&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function aSt(n){let e;return{c(){e=J("upgrade your plan")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function oSt(n){let e,t=n[0].name.toLowerCase()+"",r,i,a,o,l,s;const u=[iSt,rSt],c=[];function f(d,p){return d[4]?0:1}return a=f(n),o=c[a]=u[a](n),{c(){e=J("To get more "),r=J(t),i=P(),o.c(),l=lt()},m(d,p){w(d,e,p),w(d,r,p),w(d,i,p),c[a].m(d,p),w(d,l,p),s=!0},p(d,p){(!s||p&1)&&t!==(t=d[0].name.toLowerCase()+"")&&Xe(r,t);let m=a;a=f(d),a===m?c[a].p(d,p):(de(),_(c[m],1,1,()=>{c[m]=null}),pe(),o=c[a],o?o.p(d,p):(o=c[a]=u[a](d),o.c()),h(o,1),o.m(l.parentNode,l))},i(d){s||(h(o),s=!0)},o(d){_(o),s=!1},d(d){d&&$(e),d&&$(r),d&&$(i),c[a].d(d),d&&$(l)}}}function lSt(n){let e,t,r,i,a,o,l,s,u,c,f,d,p,m=n[3]&&oZ();a=new gn({props:{size:"XS",weight:"light",$$slots:{default:[QMt]},$$scope:{ctx:n}}}),l=new It({props:{size:"S",$$slots:{default:[eSt]},$$scope:{ctx:n}}});const g=[nSt,tSt],v=[];function y(M,T){return M[2]?0:1}c=y(n),f=v[c]=g[c](n);let k=n[3]&&lZ(n);return{c(){e=U("div"),t=U("div"),r=U("div"),m&&m.c(),i=P(),L(a.$$.fragment),o=P(),L(l.$$.fragment),s=P(),u=U("div"),f.c(),d=P(),k&&k.c(),S(r,"class","header-container svelte-nwsice"),S(t,"class","info svelte-nwsice"),S(e,"class","usage svelte-nwsice")},m(M,T){w(M,e,T),H(e,t),H(t,r),m&&m.m(r,null),H(r,i),C(a,r,null),H(t,o),C(l,t,null),H(e,s),H(e,u),v[c].m(u,null),H(u,d),k&&k.m(u,null),p=!0},p(M,[T]){M[3]?m?T&8&&h(m,1):(m=oZ(),m.c(),h(m,1),m.m(r,i)):m&&(de(),_(m,1,1,()=>{m=null}),pe());const O={};T&2049&&(O.$$scope={dirty:T,ctx:M}),a.$set(O);const I={};T&2053&&(I.$$scope={dirty:T,ctx:M}),l.$set(I);let B=c;c=y(M),c===B?v[c].p(M,T):(de(),_(v[B],1,1,()=>{v[B]=null}),pe(),f=v[c],f?f.p(M,T):(f=v[c]=g[c](M),f.c()),h(f,1),f.m(u,d)),M[3]?k?(k.p(M,T),T&8&&h(k,1)):(k=lZ(M),k.c(),h(k,1),k.m(u,null)):k&&(de(),_(k,1,1,()=>{k=null}),pe())},i(M){p||(h(m),h(a.$$.fragment,M),h(l.$$.fragment,M),h(f),h(k),p=!0)},o(M){_(m),_(a.$$.fragment,M),_(l.$$.fragment,M),_(f),_(k),p=!1},d(M){M&&$(e),m&&m.d(),E(a),E(l),v[c].d(),k&&k.d()}}}function sSt(n,e,t){let r,i,a;me(n,ti,m=>t(8,i=m)),me(n,In,m=>t(7,a=m));let{usage:o}=e,{warnWhenFull:l=!1}=e,s,u=!1,c=!1;const f=()=>o.total===-1,d=()=>o.used/o.total*100,p=`${i.accountPortalUrl}/portal/upgrade`;return vn(()=>{t(2,u=f()),t(1,s=d()),l&&s===100&&t(3,c=!0)}),n.$$set=m=>{"usage"in m&&t(0,o=m.usage),"warnWhenFull"in m&&t(6,l=m.warnWhenFull)},n.$$.update=()=>{var m;n.$$.dirty&128&&t(4,r=(m=a==null?void 0:a.user)==null?void 0:m.accountPortalAccess)},[o,s,u,c,r,p,l,a]}class aue extends ze{constructor(e){super(),Ae(this,e,sSt,lSt,$e,{usage:0,warnWhenFull:6})}}function sZ(n,e,t){const r=n.slice();return r[12]=e[t],r}function uSt(n){let e;return{c(){e=J(n[0])},m(t,r){w(t,e,r)},p(t,r){r&1&&Xe(e,t[0])},d(t){t&&$(e)}}}function cSt(n){let e;return{c(){e=J(n[1])},m(t,r){w(t,e,r)},p(t,r){r&2&&Xe(e,t[1])},d(t){t&&$(e)}}}function uZ(n){let e,t,r=n[7],i=[];for(let o=0;o<r.length;o+=1)i[o]=cZ(sZ(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){e=U("div");for(let o=0;o<i.length;o+=1)i[o].c();S(e,"class","text-rows svelte-f7l9r3")},m(o,l){w(o,e,l);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null);t=!0},p(o,l){if(l&128){r=o[7];let s;for(s=0;s<r.length;s+=1){const u=sZ(o,r,s);i[s]?(i[s].p(u,l),h(i[s],1)):(i[s]=cZ(u),i[s].c(),h(i[s],1),i[s].m(e,null))}for(de(),s=r.length;s<i.length;s+=1)a(s);pe()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)h(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)_(i[l]);t=!1},d(o){o&&$(e),rn(i,o)}}}function fSt(n){let e,t;return e=new It({props:{$$slots:{default:[pSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&2176&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function dSt(n){let e,t;return e=new sp({props:{tooltip:n[12].tooltip,$$slots:{default:[hSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&128&&(a.tooltip=r[12].tooltip),i&2176&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function pSt(n){let e=n[12].message+"",t;return{c(){t=J(e)},m(r,i){w(r,t,i)},p(r,i){i&128&&e!==(e=r[12].message+"")&&Xe(t,e)},d(r){r&&$(t)}}}function mSt(n){let e=n[12].message+"",t;return{c(){t=J(e)},m(r,i){w(r,t,i)},p(r,i){i&128&&e!==(e=r[12].message+"")&&Xe(t,e)},d(r){r&&$(t)}}}function hSt(n){let e,t,r;return e=new It({props:{$$slots:{default:[mSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P()},m(i,a){C(e,i,a),w(i,t,a),r=!0},p(i,a){const o={};a&2176&&(o.$$scope={dirty:a,ctx:i}),e.$set(o)},i(i){r||(h(e.$$.fragment,i),r=!0)},o(i){_(e.$$.fragment,i),r=!1},d(i){E(e,i),i&&$(t)}}}function cZ(n){let e,t,r,i;const a=[dSt,fSt],o=[];function l(s,u){return s[12].tooltip?0:1}return e=l(n),t=o[e]=a[e](n),{c(){t.c(),r=lt()},m(s,u){o[e].m(s,u),w(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?o[e].p(s,u):(de(),_(o[c],1,1,()=>{o[c]=null}),pe(),t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),h(t,1),t.m(r.parentNode,r))},i(s){i||(h(t),i=!0)},o(s){_(t),i=!1},d(s){o[e].d(s),s&&$(r)}}}function gSt(n){let e,t,r,i,a,o,l;t=new is({props:{size:"M",$$slots:{default:[uSt]},$$scope:{ctx:n}}}),i=new gn({props:{size:"M",$$slots:{default:[cSt]},$$scope:{ctx:n}}});let s=n[7].length&&uZ(n);return{c(){e=U("div"),L(t.$$.fragment),r=P(),L(i.$$.fragment),a=P(),s&&s.c(),o=lt(),S(e,"class","dash-card-title svelte-f7l9r3")},m(u,c){w(u,e,c),C(t,e,null),w(u,r,c),C(i,u,c),w(u,a,c),s&&s.m(u,c),w(u,o,c),l=!0},p(u,c){const f={};c&2049&&(f.$$scope={dirty:c,ctx:u}),t.$set(f);const d={};c&2050&&(d.$$scope={dirty:c,ctx:u}),i.$set(d),u[7].length?s?(s.p(u,c),c&128&&h(s,1)):(s=uZ(u),s.c(),h(s,1),s.m(o.parentNode,o)):s&&(de(),_(s,1,1,()=>{s=null}),pe())},i(u){l||(h(t.$$.fragment,u),h(i.$$.fragment,u),h(s),l=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),_(s),l=!1},d(u){u&&$(e),E(t),u&&$(r),E(i,u),u&&$(a),s&&s.d(u),u&&$(o)}}}function fZ(n){let e,t,r;return t=new en({props:{secondary:!0,$$slots:{default:[_St]},$$scope:{ctx:n}}}),t.$on("click",function(){xt(n[3])&&n[3].apply(this,arguments)}),{c(){e=U("div"),L(t.$$.fragment)},m(i,a){w(i,e,a),C(t,e,null),r=!0},p(i,a){n=i;const o={};a&2080&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function _St(n){let e;return{c(){e=J(n[5])},m(t,r){w(t,e,r)},p(t,r){r&32&&Xe(e,t[5])},d(t){t&&$(e)}}}function dZ(n){let e,t,r;return t=new en({props:{cta:n[6],$$slots:{default:[vSt]},$$scope:{ctx:n}}}),t.$on("click",function(){xt(n[2])&&n[2].apply(this,arguments)}),{c(){e=U("div"),L(t.$$.fragment),S(e,"class","primary-button")},m(i,a){w(i,e,a),C(t,e,null),r=!0},p(i,a){n=i;const o={};a&64&&(o.cta=n[6]),a&2064&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function vSt(n){let e;return{c(){e=J(n[4])},m(t,r){w(t,e,r)},p(t,r){r&16&&Xe(e,t[4])},d(t){t&&$(e)}}}function bSt(n){let e,t,r,i,a,o,l,s,u,c;i=new Ct({props:{gap:"XS",$$slots:{default:[gSt]},$$scope:{ctx:n}}});let f=n[8]&&fZ(n),d=n[9]&&dZ(n);const p=n[10].default,m=yn(p,n,n[11],null);return{c(){e=U("div"),t=U("div"),r=U("div"),L(i.$$.fragment),a=P(),o=U("div"),f&&f.c(),l=P(),d&&d.c(),s=P(),u=U("div"),m&&m.c(),S(r,"class","header-info svelte-f7l9r3"),S(o,"class","header-actions svelte-f7l9r3"),S(t,"class","dash-card-header svelte-f7l9r3"),S(u,"class","dash-card-body svelte-f7l9r3"),S(e,"class","dash-card svelte-f7l9r3")},m(g,v){w(g,e,v),H(e,t),H(t,r),C(i,r,null),H(t,a),H(t,o),f&&f.m(o,null),H(o,l),d&&d.m(o,null),H(e,s),H(e,u),m&&m.m(u,null),c=!0},p(g,[v]){const y={};v&2179&&(y.$$scope={dirty:v,ctx:g}),i.$set(y),g[8]?f?(f.p(g,v),v&256&&h(f,1)):(f=fZ(g),f.c(),h(f,1),f.m(o,l)):f&&(de(),_(f,1,1,()=>{f=null}),pe()),g[9]?d?(d.p(g,v),v&512&&h(d,1)):(d=dZ(g),d.c(),h(d,1),d.m(o,null)):d&&(de(),_(d,1,1,()=>{d=null}),pe()),m&&m.p&&(!c||v&2048)&&wn(m,p,g,g[11],c?$n(p,g[11],v,null):kn(g[11]),null)},i(g){c||(h(i.$$.fragment,g),h(f),h(d),h(m,g),c=!0)},o(g){_(i.$$.fragment,g),_(f),_(d),_(m,g),c=!1},d(g){g&&$(e),E(i),f&&f.d(),d&&d.d(),m&&m.d(g)}}}function ySt(n,e,t){let r,i,{$$slots:a={},$$scope:o}=e,{description:l=""}=e,{title:s=""}=e,{primaryAction:u}=e,{secondaryAction:c}=e,{primaryActionText:f}=e,{secondaryActionText:d}=e,{primaryCta:p=!0}=e,{textRows:m=[]}=e;return n.$$set=g=>{"description"in g&&t(0,l=g.description),"title"in g&&t(1,s=g.title),"primaryAction"in g&&t(2,u=g.primaryAction),"secondaryAction"in g&&t(3,c=g.secondaryAction),"primaryActionText"in g&&t(4,f=g.primaryActionText),"secondaryActionText"in g&&t(5,d=g.secondaryActionText),"primaryCta"in g&&t(6,p=g.primaryCta),"textRows"in g&&t(7,m=g.textRows),"$$scope"in g&&t(11,o=g.$$scope)},n.$$.update=()=>{n.$$.dirty&20&&t(9,r=u&&f),n.$$.dirty&40&&t(8,i=c&&d)},[l,s,u,c,f,d,p,m,i,r,a,o]}class $St extends ze{constructor(e){super(),Ae(this,e,ySt,bSt,$e,{description:0,title:1,primaryAction:2,secondaryAction:3,primaryActionText:4,secondaryActionText:5,primaryCta:6,textRows:7})}}function pZ(n,e,t){const r=n.slice();return r[34]=e[t],r}function mZ(n,e,t){const r=n.slice();return r[34]=e[t],r}function hZ(n){let e,t;return e=new Ct({props:{noPadding:!0,$$slots:{default:[PSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[0]&507|i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function wSt(n){let e;return{c(){e=J("Usage")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function kSt(n){let e;return{c(){e=U("div"),e.textContent="Get information about your current usage within Budibase"},m(t,r){w(t,e,r)},p:Ge,d(t){t&&$(e)}}}function ASt(n){let e,t,r,i;return e=new gn({props:{$$slots:{default:[wSt]},$$scope:{ctx:n}}}),r=new It({props:{$$slots:{default:[kSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o[1]&256&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o[1]&256&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function zSt(n){let e,t;return e=new It({props:{$$slots:{default:[SSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function MSt(n){let e,t;return e=new It({props:{$$slots:{default:[ESt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function SSt(n){let e;return{c(){e=J("Contact your account holder to upgrade your plan.")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function CSt(n){let e;return{c(){e=J("account")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function ESt(n){let e,t,r,i;return t=new V0({props:{size:"L",$$slots:{default:[CSt]},$$scope:{ctx:n}}}),t.$on("click",n[11]),{c(){e=J(`To upgrade your plan and usage limits visit your
956
+ `),L(t.$$.fragment),r=J(".")},m(a,o){w(a,e,o),C(t,a,o),w(a,r,o),i=!0},p(a,o){const l={};o&128&&(l.href=a[7]),o&262144&&(l.$$scope={dirty:o,ctx:a}),t.$set(l)},i(a){i||(h(t.$$.fragment,a),i=!0)},o(a){_(t.$$.fragment,a),i=!1},d(a){a&&$(e),E(t,a),a&&$(r)}}}function EMt(n){let e;return{c(){e=J("account")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function LMt(n){let e;return{c(){e=J("account")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function TMt(n){let e,t,r,i;const a=[CMt,SMt],o=[];function l(s,u){return s[8].plan.type==="free"?0:1}return e=l(n),t=o[e]=a[e](n),{c(){t.c(),r=lt()},m(s,u){o[e].m(s,u),w(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?o[e].p(s,u):(de(),_(o[c],1,1,()=>{o[c]=null}),pe(),t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),h(t,1),t.m(r.parentNode,r))},i(s){i||(h(t),i=!0)},o(s){_(t),i=!1},d(s){o[e].d(s),s&&$(r)}}}function OMt(n){let e,t,r,i;return e=new gn({props:{size:"M",$$slots:{default:[MMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"M",$$slots:{default:[TMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262144&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262528&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function DMt(n){let e;return{c(){e=J("Activate")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function IMt(n){let e;return{c(){e=J("Enter your license key below to activate your plan")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function BMt(n){let e,t,r,i;return e=new gn({props:{size:"S",$$slots:{default:[DMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"S",$$slots:{default:[IMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262144&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262144&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function HMt(n){let e;return{c(){e=J("License key")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function PMt(n){let e;return{c(){e=J("Activate")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function aZ(n){let e,t;return e=new en({props:{warning:!0,$$slots:{default:[RMt]},$$scope:{ctx:n}}}),e.$on("click",n[16]),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&262144&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function RMt(n){let e;return{c(){e=J("Delete")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function VMt(n){var o;let e,t,r,i;e=new en({props:{cta:!0,disabled:n[6],$$slots:{default:[PMt]},$$scope:{ctx:n}}}),e.$on("click",n[9]);let a=((o=n[0])==null?void 0:o.licenseKey)&&aZ(n);return{c(){L(e.$$.fragment),t=P(),a&&a.c(),r=lt()},m(l,s){C(e,l,s),w(l,t,s),a&&a.m(l,s),w(l,r,s),i=!0},p(l,s){var c;const u={};s&64&&(u.disabled=l[6]),s&262144&&(u.$$scope={dirty:s,ctx:l}),e.$set(u),(c=l[0])!=null&&c.licenseKey?a?(a.p(l,s),s&1&&h(a,1)):(a=aZ(l),a.c(),h(a,1),a.m(r.parentNode,r)):a&&(de(),_(a,1,1,()=>{a=null}),pe())},i(l){i||(h(e.$$.fragment,l),h(a),i=!0)},o(l){_(e.$$.fragment,l),_(a),i=!1},d(l){E(e,l),l&&$(t),a&&a.d(l),l&&$(r)}}}function NMt(n){let e,t,r,i,a,o,l,s,u;r=new qt({props:{size:"L",$$slots:{default:[HMt]},$$scope:{ctx:n}}});function c(d){n[15](d)}let f={thin:!0,type:n[4],disabled:n[1]};return n[2]!==void 0&&(f.value=n[2]),a=new hn({props:f}),Me.push(()=>je(a,"value",c)),s=new f7({props:{gap:"M",$$slots:{default:[VMt]},$$scope:{ctx:n}}}),{c(){e=U("div"),t=U("div"),L(r.$$.fragment),i=P(),L(a.$$.fragment),l=P(),L(s.$$.fragment),S(t,"class","field svelte-1a0qi5v"),S(e,"class","fields svelte-1a0qi5v")},m(d,p){w(d,e,p),H(e,t),C(r,t,null),H(t,i),C(a,t,null),w(d,l,p),C(s,d,p),u=!0},p(d,p){const m={};p&262144&&(m.$$scope={dirty:p,ctx:d}),r.$set(m);const g={};p&16&&(g.type=d[4]),p&2&&(g.disabled=d[1]),!o&&p&4&&(o=!0,g.value=d[2],qe(()=>o=!1)),a.$set(g);const v={};p&262241&&(v.$$scope={dirty:p,ctx:d}),s.$set(v)},i(d){u||(h(r.$$.fragment,d),h(a.$$.fragment,d),h(s.$$.fragment,d),u=!0)},o(d){_(r.$$.fragment,d),_(a.$$.fragment,d),_(s.$$.fragment,d),u=!1},d(d){d&&$(e),E(r),E(a),d&&$(l),E(s,d)}}}function FMt(n){let e;return{c(){e=J("Plan")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function UMt(n){let e,t=n[8].plan.type+"",r,i;return{c(){e=J("You are currently on the "),r=J(t),i=J(" plan")},m(a,o){w(a,e,o),w(a,r,o),w(a,i,o)},p(a,o){o&256&&t!==(t=a[8].plan.type+"")&&Xe(r,t)},d(a){a&&$(e),a&&$(r),a&&$(i)}}}function jMt(n){let e=H0("Updated {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(n[8].refreshedAt).getTime()})+"",t;return{c(){t=J(e)},m(r,i){w(r,t,i)},p(r,i){i&256&&e!==(e=H0("Updated {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(r[8].refreshedAt).getTime()})+"")&&Xe(t,e)},d(r){r&&$(t)}}}function qMt(n){let e,t,r,i;return e=new It({props:{size:"S",$$slots:{default:[UMt]},$$scope:{ctx:n}}}),r=new It({props:{size:"XS",$$slots:{default:[jMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262400&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262400&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function WMt(n){let e,t,r,i;return e=new gn({props:{size:"S",$$slots:{default:[FMt]},$$scope:{ctx:n}}}),r=new Ct({props:{noPadding:!0,gap:"XXS",$$slots:{default:[qMt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o&262144&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&262400&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function GMt(n){let e;return{c(){e=J("Refresh")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function YMt(n){let e,t,r,i,a,o,l,s,u,c,f,d,p,m,g;return e=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[OMt]},$$scope:{ctx:n}}}),r=new Sr({}),a=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[BMt]},$$scope:{ctx:n}}}),l=new Ct({props:{noPadding:!0,$$slots:{default:[NMt]},$$scope:{ctx:n}}}),u=new Sr({}),f=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[WMt]},$$scope:{ctx:n}}}),m=new en({props:{secondary:!0,$$slots:{default:[GMt]},$$scope:{ctx:n}}}),m.$on("click",n[11]),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment),i=P(),L(a.$$.fragment),o=P(),L(l.$$.fragment),s=P(),L(u.$$.fragment),c=P(),L(f.$$.fragment),d=P(),p=U("div"),L(m.$$.fragment)},m(v,y){C(e,v,y),w(v,t,y),C(r,v,y),w(v,i,y),C(a,v,y),w(v,o,y),C(l,v,y),w(v,s,y),C(u,v,y),w(v,c,y),C(f,v,y),w(v,d,y),w(v,p,y),C(m,p,null),g=!0},p(v,y){const k={};y&262528&&(k.$$scope={dirty:y,ctx:v}),e.$set(k);const M={};y&262144&&(M.$$scope={dirty:y,ctx:v}),a.$set(M);const T={};y&262263&&(T.$$scope={dirty:y,ctx:v}),l.$set(T);const O={};y&262400&&(O.$$scope={dirty:y,ctx:v}),f.$set(O);const I={};y&262144&&(I.$$scope={dirty:y,ctx:v}),m.$set(I)},i(v){g||(h(e.$$.fragment,v),h(r.$$.fragment,v),h(a.$$.fragment,v),h(l.$$.fragment,v),h(u.$$.fragment,v),h(f.$$.fragment,v),h(m.$$.fragment,v),g=!0)},o(v){_(e.$$.fragment,v),_(r.$$.fragment,v),_(a.$$.fragment,v),_(l.$$.fragment,v),_(u.$$.fragment,v),_(f.$$.fragment,v),_(m.$$.fragment,v),g=!1},d(v){E(e,v),v&&$(t),E(r,v),v&&$(i),E(a,v),v&&$(o),E(l,v),v&&$(s),E(u,v),v&&$(c),E(f,v),v&&$(d),v&&$(p),E(m)}}}function KMt(n){let e,t,r=n[3].isAdmin&&iZ(n);return{c(){r&&r.c(),e=lt()},m(i,a){r&&r.m(i,a),w(i,e,a),t=!0},p(i,[a]){i[3].isAdmin?r?(r.p(i,a),a&8&&h(r,1)):(r=iZ(i),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(de(),_(r,1,1,()=>{r=null}),pe())},i(i){t||(h(r),t=!0)},o(i){_(r),t=!1},d(i){r&&r.d(i),i&&$(e)}}}function XMt(n,e,t){let r,i,a,o,l,s;me(n,Ai,O=>t(12,o=O)),me(n,ti,O=>t(13,l=O)),me(n,In,O=>t(3,s=O));let u,c=!1,f="text",d="",p;const m=async()=>{try{await Vt.activateLicenseKey({licenseKey:d}),await In.getSelf(),await y(),ut.success("Successfully activated")}catch(O){ut.error(O.message)}},g=async()=>{try{await Vt.deleteLicenseKey({licenseKey:d}),await In.getSelf(),await y(),t(2,d=""),t(1,c=!1),ut.success("Successfully deleted")}catch(O){ut.error(O.message)}},v=async()=>{try{await Vt.refreshLicense(),await In.getSelf(),ut.success("Refreshed license")}catch(O){console.error(O),ut.error("Error refreshing license")}},y=async()=>{t(0,u=await Vt.getLicenseInfo())};vn(async()=>{await y()});function k(O){Me[O?"unshift":"push"](()=>{p=O,t(5,p)})}function M(O){d=O,t(2,d),t(0,u)}const T=()=>p.show();return n.$$.update=()=>{n.$$.dirty&8&&t(8,r=s.user.license),n.$$.dirty&8192&&t(7,i=`${l.accountPortalUrl}/portal/upgrade`),n.$$.dirty&1&&u!=null&&u.licenseKey&&(t(2,d="**********************************************"),t(4,f="password"),t(1,c=!0),t(6,a=!0)),n.$$.dirty&6&&t(6,a=!d||c),n.$$.dirty&12288&&l.cloud&&o("../../portal")},[u,c,d,s,f,p,a,i,r,m,g,v,o,l,k,M,T]}class JMt extends ze{constructor(e){super(),Ae(this,e,XMt,KMt,$e,{})}}function oZ(n){let e,t;return e=new Wt({props:{name:"Alert"}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function QMt(n){let e,t=n[0].name+"",r;return{c(){e=U("span"),r=J(t),S(e,"class","nowrap svelte-nwsice")},m(i,a){w(i,e,a),H(e,r)},p(i,a){a&1&&t!==(t=i[0].name+"")&&Xe(r,t)},d(i){i&&$(e)}}}function ZMt(n){let e=n[0].used+"",t,r,i=n[0].total+"",a;return{c(){t=J(e),r=J(" / "),a=J(i)},m(o,l){w(o,t,l),w(o,r,l),w(o,a,l)},p(o,l){l&1&&e!==(e=o[0].used+"")&&Xe(t,e),l&1&&i!==(i=o[0].total+"")&&Xe(a,i)},d(o){o&&$(t),o&&$(r),o&&$(a)}}}function xMt(n){let e=n[0].used+"",t,r;return{c(){t=J(e),r=J(" / Unlimited")},m(i,a){w(i,t,a),w(i,r,a)},p(i,a){a&1&&e!==(e=i[0].used+"")&&Xe(t,e)},d(i){i&&$(t),i&&$(r)}}}function eSt(n){let e;function t(a,o){return a[2]?xMt:ZMt}let r=t(n),i=r(n);return{c(){e=U("span"),i.c(),S(e,"class","nowrap svelte-nwsice")},m(a,o){w(a,e,o),i.m(e,null)},p(a,o){r===(r=t(a))&&i?i.p(a,o):(i.d(1),i=r(a),i&&(i.c(),i.m(e,null)))},d(a){a&&$(e),i.d()}}}function tSt(n){let e,t;return e=new fre({props:{color:n[3]?"red":"green",showPercentage:!1,width:"100%",duration:1,value:n[1]}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.color=r[3]?"red":"green"),i&2&&(a.value=r[1]),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function nSt(n){let e,t;return e=new fre({props:{showPercentage:!1,width:"100%",duration:1,value:100}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p:Ge,i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function lZ(n){let e,t;return e=new It({props:{size:"S",$$slots:{default:[oSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&2065&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function rSt(n){let e;return{c(){e=J("contact your account holder")},m(t,r){w(t,e,r)},p:Ge,i:Ge,o:Ge,d(t){t&&$(e)}}}function iSt(n){let e,t;return e=new V0({props:{href:n[5],$$slots:{default:[aSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&2048&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function aSt(n){let e;return{c(){e=J("upgrade your plan")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function oSt(n){let e,t=n[0].name.toLowerCase()+"",r,i,a,o,l,s;const u=[iSt,rSt],c=[];function f(d,p){return d[4]?0:1}return a=f(n),o=c[a]=u[a](n),{c(){e=J("To get more "),r=J(t),i=P(),o.c(),l=lt()},m(d,p){w(d,e,p),w(d,r,p),w(d,i,p),c[a].m(d,p),w(d,l,p),s=!0},p(d,p){(!s||p&1)&&t!==(t=d[0].name.toLowerCase()+"")&&Xe(r,t);let m=a;a=f(d),a===m?c[a].p(d,p):(de(),_(c[m],1,1,()=>{c[m]=null}),pe(),o=c[a],o?o.p(d,p):(o=c[a]=u[a](d),o.c()),h(o,1),o.m(l.parentNode,l))},i(d){s||(h(o),s=!0)},o(d){_(o),s=!1},d(d){d&&$(e),d&&$(r),d&&$(i),c[a].d(d),d&&$(l)}}}function lSt(n){let e,t,r,i,a,o,l,s,u,c,f,d,p,m=n[3]&&oZ();a=new gn({props:{size:"XS",weight:"light",$$slots:{default:[QMt]},$$scope:{ctx:n}}}),l=new It({props:{size:"S",$$slots:{default:[eSt]},$$scope:{ctx:n}}});const g=[nSt,tSt],v=[];function y(M,T){return M[2]?0:1}c=y(n),f=v[c]=g[c](n);let k=n[3]&&lZ(n);return{c(){e=U("div"),t=U("div"),r=U("div"),m&&m.c(),i=P(),L(a.$$.fragment),o=P(),L(l.$$.fragment),s=P(),u=U("div"),f.c(),d=P(),k&&k.c(),S(r,"class","header-container svelte-nwsice"),S(t,"class","info svelte-nwsice"),S(e,"class","usage svelte-nwsice")},m(M,T){w(M,e,T),H(e,t),H(t,r),m&&m.m(r,null),H(r,i),C(a,r,null),H(t,o),C(l,t,null),H(e,s),H(e,u),v[c].m(u,null),H(u,d),k&&k.m(u,null),p=!0},p(M,[T]){M[3]?m?T&8&&h(m,1):(m=oZ(),m.c(),h(m,1),m.m(r,i)):m&&(de(),_(m,1,1,()=>{m=null}),pe());const O={};T&2049&&(O.$$scope={dirty:T,ctx:M}),a.$set(O);const I={};T&2053&&(I.$$scope={dirty:T,ctx:M}),l.$set(I);let B=c;c=y(M),c===B?v[c].p(M,T):(de(),_(v[B],1,1,()=>{v[B]=null}),pe(),f=v[c],f?f.p(M,T):(f=v[c]=g[c](M),f.c()),h(f,1),f.m(u,d)),M[3]?k?(k.p(M,T),T&8&&h(k,1)):(k=lZ(M),k.c(),h(k,1),k.m(u,null)):k&&(de(),_(k,1,1,()=>{k=null}),pe())},i(M){p||(h(m),h(a.$$.fragment,M),h(l.$$.fragment,M),h(f),h(k),p=!0)},o(M){_(m),_(a.$$.fragment,M),_(l.$$.fragment,M),_(f),_(k),p=!1},d(M){M&&$(e),m&&m.d(),E(a),E(l),v[c].d(),k&&k.d()}}}function sSt(n,e,t){let r,i,a;me(n,ti,m=>t(8,i=m)),me(n,In,m=>t(7,a=m));let{usage:o}=e,{warnWhenFull:l=!1}=e,s,u=!1,c=!1;const f=()=>o.total===-1,d=()=>o.used/o.total*100,p=`${i.accountPortalUrl}/portal/upgrade`;return vn(()=>{t(2,u=f()),t(1,s=d()),l&&s>=100&&t(3,c=!0)}),n.$$set=m=>{"usage"in m&&t(0,o=m.usage),"warnWhenFull"in m&&t(6,l=m.warnWhenFull)},n.$$.update=()=>{var m;n.$$.dirty&128&&t(4,r=(m=a==null?void 0:a.user)==null?void 0:m.accountPortalAccess)},[o,s,u,c,r,p,l,a]}class aue extends ze{constructor(e){super(),Ae(this,e,sSt,lSt,$e,{usage:0,warnWhenFull:6})}}function sZ(n,e,t){const r=n.slice();return r[12]=e[t],r}function uSt(n){let e;return{c(){e=J(n[0])},m(t,r){w(t,e,r)},p(t,r){r&1&&Xe(e,t[0])},d(t){t&&$(e)}}}function cSt(n){let e;return{c(){e=J(n[1])},m(t,r){w(t,e,r)},p(t,r){r&2&&Xe(e,t[1])},d(t){t&&$(e)}}}function uZ(n){let e,t,r=n[7],i=[];for(let o=0;o<r.length;o+=1)i[o]=cZ(sZ(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){e=U("div");for(let o=0;o<i.length;o+=1)i[o].c();S(e,"class","text-rows svelte-f7l9r3")},m(o,l){w(o,e,l);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null);t=!0},p(o,l){if(l&128){r=o[7];let s;for(s=0;s<r.length;s+=1){const u=sZ(o,r,s);i[s]?(i[s].p(u,l),h(i[s],1)):(i[s]=cZ(u),i[s].c(),h(i[s],1),i[s].m(e,null))}for(de(),s=r.length;s<i.length;s+=1)a(s);pe()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)h(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)_(i[l]);t=!1},d(o){o&&$(e),rn(i,o)}}}function fSt(n){let e,t;return e=new It({props:{$$slots:{default:[pSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&2176&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function dSt(n){let e,t;return e=new sp({props:{tooltip:n[12].tooltip,$$slots:{default:[hSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&128&&(a.tooltip=r[12].tooltip),i&2176&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function pSt(n){let e=n[12].message+"",t;return{c(){t=J(e)},m(r,i){w(r,t,i)},p(r,i){i&128&&e!==(e=r[12].message+"")&&Xe(t,e)},d(r){r&&$(t)}}}function mSt(n){let e=n[12].message+"",t;return{c(){t=J(e)},m(r,i){w(r,t,i)},p(r,i){i&128&&e!==(e=r[12].message+"")&&Xe(t,e)},d(r){r&&$(t)}}}function hSt(n){let e,t,r;return e=new It({props:{$$slots:{default:[mSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P()},m(i,a){C(e,i,a),w(i,t,a),r=!0},p(i,a){const o={};a&2176&&(o.$$scope={dirty:a,ctx:i}),e.$set(o)},i(i){r||(h(e.$$.fragment,i),r=!0)},o(i){_(e.$$.fragment,i),r=!1},d(i){E(e,i),i&&$(t)}}}function cZ(n){let e,t,r,i;const a=[dSt,fSt],o=[];function l(s,u){return s[12].tooltip?0:1}return e=l(n),t=o[e]=a[e](n),{c(){t.c(),r=lt()},m(s,u){o[e].m(s,u),w(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?o[e].p(s,u):(de(),_(o[c],1,1,()=>{o[c]=null}),pe(),t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),h(t,1),t.m(r.parentNode,r))},i(s){i||(h(t),i=!0)},o(s){_(t),i=!1},d(s){o[e].d(s),s&&$(r)}}}function gSt(n){let e,t,r,i,a,o,l;t=new is({props:{size:"M",$$slots:{default:[uSt]},$$scope:{ctx:n}}}),i=new gn({props:{size:"M",$$slots:{default:[cSt]},$$scope:{ctx:n}}});let s=n[7].length&&uZ(n);return{c(){e=U("div"),L(t.$$.fragment),r=P(),L(i.$$.fragment),a=P(),s&&s.c(),o=lt(),S(e,"class","dash-card-title svelte-f7l9r3")},m(u,c){w(u,e,c),C(t,e,null),w(u,r,c),C(i,u,c),w(u,a,c),s&&s.m(u,c),w(u,o,c),l=!0},p(u,c){const f={};c&2049&&(f.$$scope={dirty:c,ctx:u}),t.$set(f);const d={};c&2050&&(d.$$scope={dirty:c,ctx:u}),i.$set(d),u[7].length?s?(s.p(u,c),c&128&&h(s,1)):(s=uZ(u),s.c(),h(s,1),s.m(o.parentNode,o)):s&&(de(),_(s,1,1,()=>{s=null}),pe())},i(u){l||(h(t.$$.fragment,u),h(i.$$.fragment,u),h(s),l=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),_(s),l=!1},d(u){u&&$(e),E(t),u&&$(r),E(i,u),u&&$(a),s&&s.d(u),u&&$(o)}}}function fZ(n){let e,t,r;return t=new en({props:{secondary:!0,$$slots:{default:[_St]},$$scope:{ctx:n}}}),t.$on("click",function(){xt(n[3])&&n[3].apply(this,arguments)}),{c(){e=U("div"),L(t.$$.fragment)},m(i,a){w(i,e,a),C(t,e,null),r=!0},p(i,a){n=i;const o={};a&2080&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function _St(n){let e;return{c(){e=J(n[5])},m(t,r){w(t,e,r)},p(t,r){r&32&&Xe(e,t[5])},d(t){t&&$(e)}}}function dZ(n){let e,t,r;return t=new en({props:{cta:n[6],$$slots:{default:[vSt]},$$scope:{ctx:n}}}),t.$on("click",function(){xt(n[2])&&n[2].apply(this,arguments)}),{c(){e=U("div"),L(t.$$.fragment),S(e,"class","primary-button")},m(i,a){w(i,e,a),C(t,e,null),r=!0},p(i,a){n=i;const o={};a&64&&(o.cta=n[6]),a&2064&&(o.$$scope={dirty:a,ctx:n}),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function vSt(n){let e;return{c(){e=J(n[4])},m(t,r){w(t,e,r)},p(t,r){r&16&&Xe(e,t[4])},d(t){t&&$(e)}}}function bSt(n){let e,t,r,i,a,o,l,s,u,c;i=new Ct({props:{gap:"XS",$$slots:{default:[gSt]},$$scope:{ctx:n}}});let f=n[8]&&fZ(n),d=n[9]&&dZ(n);const p=n[10].default,m=yn(p,n,n[11],null);return{c(){e=U("div"),t=U("div"),r=U("div"),L(i.$$.fragment),a=P(),o=U("div"),f&&f.c(),l=P(),d&&d.c(),s=P(),u=U("div"),m&&m.c(),S(r,"class","header-info svelte-f7l9r3"),S(o,"class","header-actions svelte-f7l9r3"),S(t,"class","dash-card-header svelte-f7l9r3"),S(u,"class","dash-card-body svelte-f7l9r3"),S(e,"class","dash-card svelte-f7l9r3")},m(g,v){w(g,e,v),H(e,t),H(t,r),C(i,r,null),H(t,a),H(t,o),f&&f.m(o,null),H(o,l),d&&d.m(o,null),H(e,s),H(e,u),m&&m.m(u,null),c=!0},p(g,[v]){const y={};v&2179&&(y.$$scope={dirty:v,ctx:g}),i.$set(y),g[8]?f?(f.p(g,v),v&256&&h(f,1)):(f=fZ(g),f.c(),h(f,1),f.m(o,l)):f&&(de(),_(f,1,1,()=>{f=null}),pe()),g[9]?d?(d.p(g,v),v&512&&h(d,1)):(d=dZ(g),d.c(),h(d,1),d.m(o,null)):d&&(de(),_(d,1,1,()=>{d=null}),pe()),m&&m.p&&(!c||v&2048)&&wn(m,p,g,g[11],c?$n(p,g[11],v,null):kn(g[11]),null)},i(g){c||(h(i.$$.fragment,g),h(f),h(d),h(m,g),c=!0)},o(g){_(i.$$.fragment,g),_(f),_(d),_(m,g),c=!1},d(g){g&&$(e),E(i),f&&f.d(),d&&d.d(),m&&m.d(g)}}}function ySt(n,e,t){let r,i,{$$slots:a={},$$scope:o}=e,{description:l=""}=e,{title:s=""}=e,{primaryAction:u}=e,{secondaryAction:c}=e,{primaryActionText:f}=e,{secondaryActionText:d}=e,{primaryCta:p=!0}=e,{textRows:m=[]}=e;return n.$$set=g=>{"description"in g&&t(0,l=g.description),"title"in g&&t(1,s=g.title),"primaryAction"in g&&t(2,u=g.primaryAction),"secondaryAction"in g&&t(3,c=g.secondaryAction),"primaryActionText"in g&&t(4,f=g.primaryActionText),"secondaryActionText"in g&&t(5,d=g.secondaryActionText),"primaryCta"in g&&t(6,p=g.primaryCta),"textRows"in g&&t(7,m=g.textRows),"$$scope"in g&&t(11,o=g.$$scope)},n.$$.update=()=>{n.$$.dirty&20&&t(9,r=u&&f),n.$$.dirty&40&&t(8,i=c&&d)},[l,s,u,c,f,d,p,m,i,r,a,o]}class $St extends ze{constructor(e){super(),Ae(this,e,ySt,bSt,$e,{description:0,title:1,primaryAction:2,secondaryAction:3,primaryActionText:4,secondaryActionText:5,primaryCta:6,textRows:7})}}function pZ(n,e,t){const r=n.slice();return r[34]=e[t],r}function mZ(n,e,t){const r=n.slice();return r[34]=e[t],r}function hZ(n){let e,t;return e=new Ct({props:{noPadding:!0,$$slots:{default:[PSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[0]&507|i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function wSt(n){let e;return{c(){e=J("Usage")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function kSt(n){let e;return{c(){e=U("div"),e.textContent="Get information about your current usage within Budibase"},m(t,r){w(t,e,r)},p:Ge,d(t){t&&$(e)}}}function ASt(n){let e,t,r,i;return e=new gn({props:{$$slots:{default:[wSt]},$$scope:{ctx:n}}}),r=new It({props:{$$slots:{default:[kSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment)},m(a,o){C(e,a,o),w(a,t,o),C(r,a,o),i=!0},p(a,o){const l={};o[1]&256&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o[1]&256&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(h(e.$$.fragment,a),h(r.$$.fragment,a),i=!0)},o(a){_(e.$$.fragment,a),_(r.$$.fragment,a),i=!1},d(a){E(e,a),a&&$(t),E(r,a)}}}function zSt(n){let e,t;return e=new It({props:{$$slots:{default:[SSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function MSt(n){let e,t;return e=new It({props:{$$slots:{default:[ESt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function SSt(n){let e;return{c(){e=J("Contact your account holder to upgrade your plan.")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function CSt(n){let e;return{c(){e=J("account")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function ESt(n){let e,t,r,i;return t=new V0({props:{size:"L",$$slots:{default:[CSt]},$$scope:{ctx:n}}}),t.$on("click",n[11]),{c(){e=J(`To upgrade your plan and usage limits visit your
957
957
  `),L(t.$$.fragment),r=J(".")},m(a,o){w(a,e,o),C(t,a,o),w(a,r,o),i=!0},p(a,o){const l={};o[1]&256&&(l.$$scope={dirty:o,ctx:a}),t.$set(l)},i(a){i||(h(t.$$.fragment,a),i=!0)},o(a){_(t.$$.fragment,a),i=!1},d(a){a&&$(e),E(t,a),a&&$(r)}}}function gZ(n){let e,t,r;return t=new aue({props:{usage:n[34],warnWhenFull:n[9].includes(n[34].name)}}),{c(){e=U("div"),L(t.$$.fragment),S(e,"class","usage")},m(i,a){w(i,e,a),C(t,e,null),r=!0},p(i,a){const o={};a[0]&1&&(o.usage=i[34]),a[0]&1&&(o.warnWhenFull=i[9].includes(i[34].name)),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function LSt(n){let e;return{c(){e=J("Monthly limits")},m(t,r){w(t,e,r)},d(t){t&&$(e)}}}function TSt(n){let e,t,r;return{c(){e=J("Resets in "),t=J(n[4]),r=J(" days")},m(i,a){w(i,e,a),w(i,t,a),w(i,r,a)},p(i,a){a[0]&16&&Xe(t,i[4])},d(i){i&&$(e),i&&$(t),i&&$(r)}}}function OSt(n){let e,t;return e=new is({props:{size:"M",$$slots:{default:[TSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[0]&16|i[1]&256&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function DSt(n){let e,t,r,i,a;return e=new gn({props:{size:"S",$$slots:{default:[LSt]},$$scope:{ctx:n}}}),i=new sp({props:{tooltip:new Date(n[6]),$$slots:{default:[OSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),r=U("div"),L(i.$$.fragment),S(r,"class","detail svelte-1iu0xue")},m(o,l){C(e,o,l),w(o,t,l),w(o,r,l),C(i,r,null),a=!0},p(o,l){const s={};l[1]&256&&(s.$$scope={dirty:l,ctx:o}),e.$set(s);const u={};l[0]&64&&(u.tooltip=new Date(o[6])),l[0]&16|l[1]&256&&(u.$$scope={dirty:l,ctx:o}),i.$set(u)},i(o){a||(h(e.$$.fragment,o),h(i.$$.fragment,o),a=!0)},o(o){_(e.$$.fragment,o),_(i.$$.fragment,o),a=!1},d(o){E(e,o),o&&$(t),o&&$(r),E(i)}}}function _Z(n){let e,t;return e=new aue({props:{usage:n[34],warnWhenFull:n[9].includes(n[34].name)}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i[0]&2&&(a.usage=r[34]),i[0]&2&&(a.warnWhenFull=r[9].includes(r[34].name)),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function ISt(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=_Z(pZ(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=lt()},m(o,l){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,l);w(o,e,l),t=!0},p(o,l){if(l[0]&514){r=o[1];let s;for(s=0;s<r.length;s+=1){const u=pZ(o,r,s);i[s]?(i[s].p(u,l),h(i[s],1)):(i[s]=_Z(u),i[s].c(),h(i[s],1),i[s].m(e.parentNode,e))}for(de(),s=r.length;s<i.length;s+=1)a(s);pe()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)h(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)_(i[l]);t=!1},d(o){rn(i,o),o&&$(e)}}}function BSt(n){let e,t,r,i,a,o=n[0],l=[];for(let u=0;u<o.length;u+=1)l[u]=gZ(mZ(n,o,u));const s=u=>_(l[u],1,1,()=>{l[u]=null});return t=new Ct({props:{gap:"XS",noPadding:!0,$$slots:{default:[DSt]},$$scope:{ctx:n}}}),i=new Ct({props:{noPadding:!0,gap:"M",$$slots:{default:[ISt]},$$scope:{ctx:n}}}),{c(){for(let u=0;u<l.length;u+=1)l[u].c();e=P(),L(t.$$.fragment),r=P(),L(i.$$.fragment)},m(u,c){for(let f=0;f<l.length;f+=1)l[f]&&l[f].m(u,c);w(u,e,c),C(t,u,c),w(u,r,c),C(i,u,c),a=!0},p(u,c){if(c[0]&513){o=u[0];let p;for(p=0;p<o.length;p+=1){const m=mZ(u,o,p);l[p]?(l[p].p(m,c),h(l[p],1)):(l[p]=gZ(m),l[p].c(),h(l[p],1),l[p].m(e.parentNode,e))}for(de(),p=o.length;p<l.length;p+=1)s(p);pe()}const f={};c[0]&80|c[1]&256&&(f.$$scope={dirty:c,ctx:u}),t.$set(f);const d={};c[0]&2|c[1]&256&&(d.$$scope={dirty:c,ctx:u}),i.$set(d)},i(u){if(!a){for(let c=0;c<o.length;c+=1)h(l[c]);h(t.$$.fragment,u),h(i.$$.fragment,u),a=!0}},o(u){l=l.filter(Boolean);for(let c=0;c<l.length;c+=1)_(l[c]);_(t.$$.fragment,u),_(i.$$.fragment,u),a=!1},d(u){rn(l,u),u&&$(e),E(t,u),u&&$(r),E(i,u)}}}function HSt(n){let e,t,r,i;return r=new Ct({props:{noPadding:!0,$$slots:{default:[BSt]},$$scope:{ctx:n}}}),{c(){e=U("div"),t=U("div"),L(r.$$.fragment),S(t,"class","column svelte-1iu0xue"),S(e,"class","content svelte-1iu0xue")},m(a,o){w(a,e,o),H(e,t),C(r,t,null),i=!0},p(a,o){const l={};o[0]&83|o[1]&256&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},i(a){i||(h(r.$$.fragment,a),i=!0)},o(a){_(r.$$.fragment,a),i=!1},d(a){a&&$(e),E(r)}}}function PSt(n){let e,t,r,i,a,o,l,s,u;e=new Ct({props:{noPadding:!0,gap:"XS",$$slots:{default:[ASt]},$$scope:{ctx:n}}}),r=new Sr({});const c=[MSt,zSt],f=[];function d(p,m){return p[8]?0:1}return a=d(n),o=f[a]=c[a](n),s=new $St({props:{description:"YOUR CURRENT PLAN",title:n[10](),primaryActionText:n[5],primaryAction:n[7]?n[11]:void 0,textRows:n[3],$$slots:{default:[HSt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=P(),L(r.$$.fragment),i=P(),o.c(),l=P(),L(s.$$.fragment)},m(p,m){C(e,p,m),w(p,t,m),C(r,p,m),w(p,i,m),f[a].m(p,m),w(p,l,m),C(s,p,m),u=!0},p(p,m){const g={};m[1]&256&&(g.$$scope={dirty:m,ctx:p}),e.$set(g);let v=a;a=d(p),a===v?f[a].p(p,m):(de(),_(f[v],1,1,()=>{f[v]=null}),pe(),o=f[a],o?o.p(p,m):(o=f[a]=c[a](p),o.c()),h(o,1),o.m(l.parentNode,l));const y={};m[0]&32&&(y.primaryActionText=p[5]),m[0]&128&&(y.primaryAction=p[7]?p[11]:void 0),m[0]&8&&(y.textRows=p[3]),m[0]&83|m[1]&256&&(y.$$scope={dirty:m,ctx:p}),s.$set(y)},i(p){u||(h(e.$$.fragment,p),h(r.$$.fragment,p),h(o),h(s.$$.fragment,p),u=!0)},o(p){_(e.$$.fragment,p),_(r.$$.fragment,p),_(o),_(s.$$.fragment,p),u=!1},d(p){E(e,p),p&&$(t),E(r,p),p&&$(i),f[a].d(p),p&&$(l),E(s,p)}}}function RSt(n){let e,t,r=n[2]&&hZ(n);return{c(){r&&r.c(),e=lt()},m(i,a){r&&r.m(i,a),w(i,e,a),t=!0},p(i,a){i[2]?r?(r.p(i,a),a[0]&4&&h(r,1)):(r=hZ(i),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(de(),_(r,1,1,()=>{r=null}),pe())},i(i){t||(h(r),t=!0)},o(i){_(r),t=!1},d(i){r&&r.d(i),i&&$(e)}}}function VSt(n,e,t){let r,i,a,o,l,s,u,c,f,d,p;me(n,In,se=>t(17,f=se)),me(n,ti,se=>t(18,d=se)),me(n,Pr,se=>t(19,p=se));let m=[],g=[],v,y=!1,k=[],M,T;const O=`${d.accountPortalUrl}/portal/upgrade`,I=`${d.accountPortalUrl}/portal/billing`,B=["Queries","Automations","Rows","Day Passes","Users"],N={Queries:()=>!0,Users:se=>se.plan.model!==nN.PER_USER,"Day Passes":se=>se.plan.model!==nN.DAY_PASS};function F(se){return N[se]&&N[se](i)}const Y=()=>{if(t(1,g=[]),r.monthly)for(let[se,fe]of Object.entries(i.quotas.usage.monthly)){if(F(fe.name))continue;const re=r.monthly.current[se];fe.value!==0&&g.push({name:fe.name,used:re||0,total:fe.value})}t(1,g=g.sort((se,fe)=>se.name.localeCompare(fe.name)))},te=()=>{t(0,m=[]);for(let[se,fe]of Object.entries(i.quotas.usage.static)){if(F(fe.name))continue;const re=r.usageQuota[se];fe.value!==0&&m.push({name:fe.name,used:re||0,total:fe.value})}t(0,m=m.sort((se,fe)=>se.name.localeCompare(fe.name)))},x=()=>{var se,fe;v=(fe=(se=i==null?void 0:i.billing)==null?void 0:se.subscription)==null?void 0:fe.cancelAt},ee=se=>{if(se)return se.charAt(0).toUpperCase()+se.slice(1)},W=()=>`${ee(i==null?void 0:i.plan.type)} Plan`,G=se=>{if(!se)return;const fe=new Date;fe.setHours(0),fe.setMinutes(0);const re=new Date(se);return re.setHours(0),re.setMinutes(0),((re.getTime()-fe)/(1e3*3600*24)).toFixed(0)},Q=()=>{t(3,k=[]),v&&!o&&(k.push({message:"Subscription has been cancelled"}),k.push({message:`${G(v)} days remaining`,tooltip:new Date(v)}))},ne=()=>{const se=new Date(s),fe=new Date,re=se.getTime()-fe.getTime();t(4,M=(re/(1e3*3600*24)).toFixed(0))},oe=()=>{(i==null?void 0:i.plan.type)===Af.FREE?window.location.href=O:window.location.href=I},ce=()=>{if((i==null?void 0:i.plan.type)===Af.FREE){t(5,T="Upgrade");return}v?t(5,T="Renew"):t(5,T="Manage")},ie=async()=>{try{await Pr.init()}catch(se){console.error(se),ut.error(se)}};return vn(async()=>{await ie(),t(2,y=!0)}),n.$$.update=()=>{var se,fe;n.$$.dirty[0]&524288&&t(12,r=p.quotaUsage),n.$$.dirty[0]&131072&&t(13,i=(se=f.user)==null?void 0:se.license),n.$$.dirty[0]&8192&&t(16,a=i==null?void 0:i.plan),n.$$.dirty[0]&65536&&t(14,o=a==null?void 0:a.usesInvoicing),n.$$.dirty[0]&131072&&t(15,l=(fe=f==null?void 0:f.user)==null?void 0:fe.accountPortalAccess),n.$$.dirty[0]&4096&&t(6,s=r==null?void 0:r.quotaReset),n.$$.dirty[0]&425984&&t(8,u=d.cloud&&l||!d.cloud&&f.isAdmin),n.$$.dirty[0]&49152&&t(7,c=!o&&l),n.$$.dirty[0]&12288&&i&&(ce(),x(),Q(),ne(),r&&(Y(),te()))},[m,g,y,k,M,T,s,c,u,B,W,oe,r,i,o,l,a,f,d,p]}class NSt extends ze{constructor(e){super(),Ae(this,e,VSt,RSt,$e,{},null,[-1,-1])}}function FSt(n){let e,t,r,i,a,o;return a=new Wt({props:{name:"ChevronRight"}}),{c(){e=U("div"),t=U("a"),r=J(n[1]),i=P(),L(a.$$.fragment),S(t,"href",n[0]),S(t,"class","svelte-1b5whdt"),S(e,"class","svelte-1b5whdt")},m(l,s){w(l,e,s),H(e,t),H(t,r),H(e,i),C(a,e,null),o=!0},p(l,[s]){(!o||s&2)&&Xe(r,l[1]),(!o||s&1)&&S(t,"href",l[0])},i(l){o||(h(a.$$.fragment,l),o=!0)},o(l){_(a.$$.fragment,l),o=!1},d(l){l&&$(e),E(a)}}}function USt(n,e,t){let{url:r}=e,{text:i}=e;return n.$$set=a=>{"url"in a&&t(0,r=a.url),"text"in a&&t(1,i=a.text)},[r,i]}class Lf extends ze{constructor(e){super(),Ae(this,e,USt,FSt,$e,{url:0,text:1})}}function jSt(n){let e,t;const r=n[1].default,i=yn(r,n,n[0],null);return{c(){e=U("div"),i&&i.c(),S(e,"class","svelte-1k4ck6i")},m(a,o){w(a,e,o),i&&i.m(e,null),t=!0},p(a,[o]){i&&i.p&&(!t||o&1)&&wn(i,r,a,a[0],t?$n(r,a[0],o,null):kn(a[0]),null)},i(a){t||(h(i,a),t=!0)},o(a){_(i,a),t=!1},d(a){a&&$(e),i&&i.d(a)}}}function qSt(n,e,t){let{$$slots:r={},$$scope:i}=e;return n.$$set=a=>{"$$scope"in a&&t(0,i=a.$$scope)},[i,r]}class D6 extends ze{constructor(e){super(),Ae(this,e,qSt,jSt,$e,{})}}const WSt=n=>({}),vZ=n=>({}),GSt=n=>({}),bZ=n=>({});function YSt(n){let e;return{c(){e=J(n[0])},m(t,r){w(t,e,r)},p(t,r){r&1&&Xe(e,t[0])},d(t){t&&$(e)}}}function KSt(n){let e,t,r,i,a,o;const l=n[2].icon,s=yn(l,n,n[3],bZ);r=new gn({props:{size:"L",$$slots:{default:[YSt]},$$scope:{ctx:n}}});const u=n[2].buttons,c=yn(u,n,n[3],vZ);return{c(){e=U("div"),s&&s.c(),t=P(),L(r.$$.fragment),i=P(),a=U("div"),c&&c.c(),S(a,"class","buttons svelte-jw82ro"),S(e,"class","header svelte-jw82ro"),ve(e,"wrap",n[1])},m(f,d){w(f,e,d),s&&s.m(e,null),H(e,t),C(r,e,null),H(e,i),H(e,a),c&&c.m(a,null),o=!0},p(f,[d]){s&&s.p&&(!o||d&8)&&wn(s,l,f,f[3],o?$n(l,f[3],d,GSt):kn(f[3]),bZ);const p={};d&9&&(p.$$scope={dirty:d,ctx:f}),r.$set(p),c&&c.p&&(!o||d&8)&&wn(c,u,f,f[3],o?$n(u,f[3],d,WSt):kn(f[3]),vZ),(!o||d&2)&&ve(e,"wrap",f[1])},i(f){o||(h(s,f),h(r.$$.fragment,f),h(c,f),o=!0)},o(f){_(s,f),_(r.$$.fragment,f),_(c,f),o=!1},d(f){f&&$(e),s&&s.d(f),E(r),c&&c.d(f)}}}function XSt(n,e,t){let{$$slots:r={},$$scope:i}=e,{title:a}=e,{wrap:o=!0}=e;return n.$$set=l=>{"title"in l&&t(0,a=l.title),"wrap"in l&&t(1,o=l.wrap),"$$scope"in l&&t(3,i=l.$$scope)},[a,o,r,i]}class VL extends ze{constructor(e){super(),Ae(this,e,XSt,KSt,$e,{title:0,wrap:1})}}const JSt=n=>({}),yZ=n=>({});function QSt(n){let e,t,r,i,a;const o=n[3]["side-nav"],l=yn(o,n,n[2],yZ),s=n[3].default,u=yn(s,n,n[2],null);return{c(){e=U("div"),t=U("div"),l&&l.c(),r=P(),i=U("div"),u&&u.c(),S(t,"class","side-nav svelte-h7f1it"),ve(t,"show-mobile",n[1]),S(i,"class","main svelte-h7f1it"),ve(i,"narrow",n[0]),S(e,"class","content svelte-h7f1it")},m(c,f){w(c,e,f),H(e,t),l&&l.m(t,null),H(e,r),H(e,i),u&&u.m(i,null),a=!0},p(c,[f]){l&&l.p&&(!a||f&4)&&wn(l,o,c,c[2],a?$n(o,c[2],f,JSt):kn(c[2]),yZ),(!a||f&2)&&ve(t,"show-mobile",c[1]),u&&u.p&&(!a||f&4)&&wn(u,s,c,c[2],a?$n(s,c[2],f,null):kn(c[2]),null),(!a||f&1)&&ve(i,"narrow",c[0])},i(c){a||(h(l,c),h(u,c),a=!0)},o(c){_(l,c),_(u,c),a=!1},d(c){c&&$(e),l&&l.d(c),u&&u.d(c)}}}function ZSt(n,e,t){let{$$slots:r={},$$scope:i}=e,{narrow:a=!1}=e,{showMobileNav:o=!1}=e;return n.$$set=l=>{"narrow"in l&&t(0,a=l.narrow),"showMobileNav"in l&&t(1,o=l.showMobileNav),"$$scope"in l&&t(2,i=l.$$scope)},[a,o,i,r]}class P7 extends ze{constructor(e){super(),Ae(this,e,ZSt,QSt,$e,{narrow:0,showMobileNav:1})}}function xSt(n){let e,t=(n[0]||"")+"",r,i,a;return{c(){e=U("a"),r=J(t),S(e,"href",n[1]),S(e,"class","svelte-1o5187o"),ve(e,"active",n[2])},m(o,l){w(o,e,l),H(e,r),i||(a=at(e,"click",n[3]),i=!0)},p(o,[l]){l&1&&t!==(t=(o[0]||"")+"")&&Xe(r,t),l&2&&S(e,"href",o[1]),l&4&&ve(e,"active",o[2])},i:Ge,o:Ge,d(o){o&&$(e),i=!1,a()}}}function eCt(n,e,t){let{text:r}=e,{url:i}=e,{active:a=!1}=e;function o(l){cn.call(this,n,l)}return n.$$set=l=>{"text"in l&&t(0,r=l.text),"url"in l&&t(1,i=l.url),"active"in l&&t(2,a=l.active)},[r,i,a,o]}class yc extends ze{constructor(e){super(),Ae(this,e,eCt,xSt,$e,{text:0,url:1,active:2})}}function $Z(n){let e,t;return{c(){e=U("div"),t=J(n[0]),S(e,"class","title svelte-14ilt20")},m(r,i){w(r,e,i),H(e,t)},p(r,i){i&1&&Xe(t,r[0])},d(r){r&&$(e)}}}function tCt(n){let e,t,r,i=n[0]&&$Z(n);const a=n[2].default,o=yn(a,n,n[1],null);return{c(){e=U("div"),i&&i.c(),t=P(),o&&o.c(),S(e,"class","side-nav svelte-14ilt20")},m(l,s){w(l,e,s),i&&i.m(e,null),H(e,t),o&&o.m(e,null),r=!0},p(l,[s]){l[0]?i?i.p(l,s):(i=$Z(l),i.c(),i.m(e,t)):i&&(i.d(1),i=null),o&&o.p&&(!r||s&2)&&wn(o,a,l,l[1],r?$n(a,l[1],s,null):kn(l[1]),null)},i(l){r||(h(o,l),r=!0)},o(l){_(o,l),r=!1},d(l){l&&$(e),i&&i.d(),o&&o.d(l)}}}function nCt(n,e,t){let{$$slots:r={},$$scope:i}=e,{title:a}=e;return n.$$set=o=>{"title"in o&&t(0,a=o.title),"$$scope"in o&&t(1,i=o.$$scope)},[a,i,r]}class I6 extends ze{constructor(e){super(),Ae(this,e,nCt,tCt,$e,{title:0})}}function wZ(n,e,t){const r=n.slice();return r[7]=e[t].title,r[8]=e[t].href,r}function rCt(n){let e;const t=n[5].default,r=yn(t,n,n[6],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&64)&&wn(r,t,i,i[6],e?$n(t,i[6],a,null):kn(i[6]),null)},i(i){e||(h(r,i),e=!0)},o(i){_(r,i),e=!1},d(i){r&&r.d(i)}}}function kZ(n){let e,t;return e=new yc({props:{text:n[7],url:n[8],active:n[1](n[8])}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&1&&(a.text=r[7]),i&1&&(a.url=r[8]),i&3&&(a.active=r[1](r[8])),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function iCt(n){let e,t,r=n[0],i=[];for(let o=0;o<r.length;o+=1)i[o]=kZ(wZ(n,r,o));const a=o=>_(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=lt()},m(o,l){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(o,l);w(o,e,l),t=!0},p(o,l){if(l&3){r=o[0];let s;for(s=0;s<r.length;s+=1){const u=wZ(o,r,s);i[s]?(i[s].p(u,l),h(i[s],1)):(i[s]=kZ(u),i[s].c(),h(i[s],1),i[s].m(e.parentNode,e))}for(de(),s=r.length;s<i.length;s+=1)a(s);pe()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)h(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)_(i[l]);t=!1},d(o){rn(i,o),o&&$(e)}}}function aCt(n){let e,t,r;return t=new I6({props:{$$slots:{default:[iCt]},$$scope:{ctx:n}}}),{c(){e=U("div"),L(t.$$.fragment),S(e,"slot","side-nav")},m(i,a){w(i,e,a),C(t,e,null),r=!0},p(i,a){const o={};a&67&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(h(t.$$.fragment,i),r=!0)},o(i){_(t.$$.fragment,i),r=!1},d(i){i&&$(e),E(t)}}}function oCt(n){let e,t;return e=new P7({props:{narrow:!n[2],$$slots:{"side-nav":[aCt],default:[rCt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.narrow=!r[2]),i&67&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function lCt(n){let e,t;return e=new cp({props:{$$slots:{default:[oCt]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},m(r,i){C(e,r,i),t=!0},p(r,[i]){const a={};i&71&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(h(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function sCt(n,e,t){let r,i,a,o,l;me(n,Br,c=>t(3,a=c)),me(n,$7,c=>t(4,o=c)),me(n,P0,c=>t(1,l=c));let{$$slots:s={},$$scope:u}=e;return n.$$set=c=>{"$$scope"in c&&t(6,u=c.$$scope)},n.$$.update=()=>{var c;n.$$.dirty&2&&t(2,r=l("./auditLogs")),n.$$.dirty&16&&t(0,i=((c=o.find(f=>f.title==="Account"))==null?void 0:c.subPages)||[]),n.$$.dirty&9&&!i.length&&a("../")},[i,l,r,a,o,s,u]}class uCt extends ze{constructor(e){super(),Ae(this,e,sCt,lCt,$e,{})}}var cCt={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},fCt={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},dCt={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},pCt={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24V305.9l-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31V408z"]},mCt={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},hCt={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},gCt={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},_Ct={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},vCt={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};function AZ(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function hr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?AZ(Object(t),!0).forEach(function(r){Cl(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):AZ(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function db(n){return db=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(n)}function bCt(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function zZ(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function yCt(n,e,t){return e&&zZ(n.prototype,e),t&&zZ(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function Cl(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function NL(n,e){return wCt(n)||ACt(n,e)||oue(n,e)||MCt()}function R7(n){return $Ct(n)||kCt(n)||oue(n)||zCt()}function $Ct(n){if(Array.isArray(n))return OS(n)}function wCt(n){if(Array.isArray(n))return n}function kCt(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function ACt(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,a=!1,o,l;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw l}}return r}}function oue(n,e){if(!!n){if(typeof n=="string")return OS(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OS(n,e)}}function OS(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function zCt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
958
958
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MCt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
959
959
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var MZ=function(){},FL={},lue={},sue=null,uue={mark:MZ,measure:MZ};try{typeof window<"u"&&(FL=window),typeof document<"u"&&(lue=document),typeof MutationObserver<"u"&&(sue=MutationObserver),typeof performance<"u"&&(uue=performance)}catch{}var SCt=FL.navigator||{},SZ=SCt.userAgent,CZ=SZ===void 0?"":SZ,C4=FL,M1=lue,EZ=sue,d_=uue;C4.document;var bp=!!M1.documentElement&&!!M1.head&&typeof M1.addEventListener=="function"&&typeof M1.createElement=="function",cue=~CZ.indexOf("MSIE")||~CZ.indexOf("Trident/"),p_,m_,h_,g_,__,ip="___FONT_AWESOME___",DS=16,fue="fa",due="svg-inline--fa",om="data-fa-i2svg",IS="data-fa-pseudo-element",CCt="data-fa-pseudo-element-pending",UL="data-prefix",jL="data-icon",LZ="fontawesome-i2svg",ECt="async",LCt=["HTML","HEAD","STYLE","SCRIPT"],pue=function(){try{return!0}catch{return!1}}(),A1="classic",ho="sharp",qL=[A1,ho];function V7(n){return new Proxy(n,{get:function(t,r){return r in t?t[r]:t[A1]}})}var n7=V7((p_={},Cl(p_,A1,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),Cl(p_,ho,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),p_)),r7=V7((m_={},Cl(m_,A1,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Cl(m_,ho,{solid:"fass",regular:"fasr",light:"fasl"}),m_)),i7=V7((h_={},Cl(h_,A1,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Cl(h_,ho,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),h_)),TCt=V7((g_={},Cl(g_,A1,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Cl(g_,ho,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),g_)),OCt=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,mue="fa-layers-text",DCt=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,ICt=V7((__={},Cl(__,A1,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Cl(__,ho,{900:"fass",400:"fasr",300:"fasl"}),__)),hue=[1,2,3,4,5,6,7,8,9,10],BCt=hue.concat([11,12,13,14,15,16,17,18,19,20]),HCt=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],E5={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},a7=new Set;Object.keys(r7[A1]).map(a7.add.bind(a7));Object.keys(r7[ho]).map(a7.add.bind(a7));var PCt=[].concat(qL,R7(a7),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",E5.GROUP,E5.SWAP_OPACITY,E5.PRIMARY,E5.SECONDARY]).concat(hue.map(function(n){return"".concat(n,"x")})).concat(BCt.map(function(n){return"w-".concat(n)})),hg=C4.FontAwesomeConfig||{};function RCt(n){var e=M1.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function VCt(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}if(M1&&typeof M1.querySelector=="function"){var NCt=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];NCt.forEach(function(n){var e=NL(n,2),t=e[0],r=e[1],i=VCt(RCt(t));i!=null&&(hg[r]=i)})}var gue={styleDefault:"solid",familyDefault:"classic",cssPrefix:fue,replacementClass:due,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};hg.familyPrefix&&(hg.cssPrefix=hg.familyPrefix);var a6=hr(hr({},gue),hg);a6.autoReplaceSvg||(a6.observeMutations=!1);var Mr={};Object.keys(gue).forEach(function(n){Object.defineProperty(Mr,n,{enumerable:!0,set:function(t){a6[n]=t,gg.forEach(function(r){return r(Mr)})},get:function(){return a6[n]}})});Object.defineProperty(Mr,"familyPrefix",{enumerable:!0,set:function(e){a6.cssPrefix=e,gg.forEach(function(t){return t(Mr)})},get:function(){return a6.cssPrefix}});C4.FontAwesomeConfig=Mr;var gg=[];function FCt(n){return gg.push(n),function(){gg.splice(gg.indexOf(n),1)}}var Yp=DS,Rd={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function UCt(n){if(!(!n||!bp)){var e=M1.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;for(var t=M1.head.childNodes,r=null,i=t.length-1;i>-1;i--){var a=t[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return M1.head.insertBefore(e,r),n}}var jCt="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function o7(){for(var n=12,e="";n-- >0;)e+=jCt[Math.random()*62|0];return e}function B6(n){for(var e=[],t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function WL(n){return n.classList?B6(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(e){return e})}function _ue(n){return"".concat(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qCt(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,'="').concat(_ue(n[t]),'" ')},"").trim()}function Py(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,": ").concat(n[t].trim(),";")},"")}function GL(n){return n.size!==Rd.size||n.x!==Rd.x||n.y!==Rd.y||n.rotate!==Rd.rotate||n.flipX||n.flipY}function WCt(n){var e=n.transform,t=n.containerWidth,r=n.iconWidth,i={transform:"translate(".concat(t/2," 256)")},a="translate(".concat(e.x*32,", ").concat(e.y*32,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),l="rotate(".concat(e.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:s,path:u}}function GCt(n){var e=n.transform,t=n.width,r=t===void 0?DS:t,i=n.height,a=i===void 0?DS:i,o=n.startCentered,l=o===void 0?!1:o,s="";return l&&cue?s+="translate(".concat(e.x/Yp-r/2,"em, ").concat(e.y/Yp-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(e.x/Yp,"em), calc(-50% + ").concat(e.y/Yp,"em)) "):s+="translate(".concat(e.x/Yp,"em, ").concat(e.y/Yp,"em) "),s+="scale(".concat(e.size/Yp*(e.flipX?-1:1),", ").concat(e.size/Yp*(e.flipY?-1:1),") "),s+="rotate(".concat(e.rotate,"deg) "),s}var YCt=`:root, :host {
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.05e726d8.js"></script>
11
+ <script type="module" crossorigin src="/builder/assets/index.acec32c4.js"></script>
12
12
  <link rel="stylesheet" href="/builder/assets/index.4eae16b2.css">
13
13
  </head>
14
14