import{S as ue,i as ce,s as de,E as N,_ as H,$ as Y,m as D,h as m,n as p,a0 as De,b as V,J as I,O as fe,a1 as ee,D as Z,F as ae,q as S,r as U,u as X,G as be,ao as mt,e as x,a as J,k as B,aq as bt,ap as gt,c as K,l as R,I as $,H as h,K as W,L as ge,M as ve,N as pe,g as L,v as oe,d as P,f as ne,P as Re,ac as rt,C as ot,R as Te,T as vt,j as nt,x as Oe,y as te,z as he,A as le,B as ie,Q as ke,w as ye,aj as pt,p as Ee,ad as kt,ae as wt,W as Et,aa as Tt,a6 as st,a7 as at,X as It,Y as Dt}from"./index.5fd689e7.js";import{E as Ot,C as Mt,r as Ne,O as qe,e as yt,b as zt,A as Lt,q as Ct,a as ft,B as Vt}from"./taskQueries.ab6be53f.js";import{j as At}from"./singletons.0362c30c.js";import{w as Ae}from"./index.08894c4d.js";function Se(l){let e,t;return{c(){e=H("title"),t=S(l[1])},l(i){e=Y(i,"title",{});var r=D(e);t=U(r,l[1]),r.forEach(m)},m(i,r){V(i,e,r),I(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&m(e)}}}function Bt(l){let e,t,i,r,o=l[1]&&Se(l),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let s=0;s{t(5,e=N(N({},e),ae(f))),t(3,n=Z(e,o)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,s=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||s),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,s,r,n,i]}class Pt extends ue{constructor(e){super(),ce(this,e,Rt,Bt,de,{size:0,title:1})}}const Nt=Pt;function Ue(l){let e,t;return{c(){e=H("title"),t=S(l[1])},l(i){e=Y(i,"title",{});var r=D(e);t=U(r,l[1]),r.forEach(m)},m(i,r){V(i,e,r),I(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&m(e)}}}function qt(l){let e,t,i,r,o=l[1]&&Ue(l),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],a={};for(let s=0;s{t(5,e=N(N({},e),ae(f))),t(3,n=Z(e,o)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,s=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||s),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,s,r,n,i]}class Ut extends ue{constructor(e){super(),ce(this,e,St,qt,de,{size:0,title:1})}}const jt=Ut,Ft=l=>({}),je=l=>({});function Gt(l){let e,t,i;var r=l[1];function o(n){return{props:{"aria-label":n[10],title:n[10],class:"bx--overflow-menu__icon "+n[9]}}}return r&&(e=Oe(r,o(l))),{c(){e&&te(e.$$.fragment),t=x()},l(n){e&&he(e.$$.fragment,n),t=x()},m(n,a){e&&le(e,n,a),V(n,t,a),i=!0},p(n,a){const s={};if(a[0]&1024&&(s["aria-label"]=n[10]),a[0]&1024&&(s.title=n[10]),a[0]&512&&(s.class="bx--overflow-menu__icon "+n[9]),a[0]&2&&r!==(r=n[1])){if(e){oe();const f=e;P(f.$$.fragment,1,0,()=>{ie(f,1)}),ne()}r?(e=Oe(r,o(n)),te(e.$$.fragment),L(e.$$.fragment,1),le(e,t.parentNode,t)):e=null}else r&&e.$set(s)},i(n){i||(e&&L(e.$$.fragment,n),i=!0)},o(n){e&&P(e.$$.fragment,n),i=!1},d(n){n&&m(t),e&&ie(e,n)}}}function Fe(l){let e,t;const i=l[24].default,r=be(i,l,l[23],null);return{c(){e=B("ul"),r&&r.c(),this.h()},l(o){e=R(o,"UL",{role:!0,tabindex:!0,"aria-label":!0,"data-floating-menu-direction":!0,class:!0});var n=D(e);r&&r.l(n),n.forEach(m),this.h()},h(){p(e,"role","menu"),p(e,"tabindex","-1"),p(e,"aria-label",l[13]),p(e,"data-floating-menu-direction",l[5]),p(e,"class",l[8]),h(e,"bx--overflow-menu-options",!0),h(e,"bx--overflow-menu--flip",l[7]),h(e,"bx--overflow-menu-options--open",l[0]),h(e,"bx--overflow-menu-options--light",l[6]),h(e,"bx--overflow-menu-options--sm",l[4]==="sm"),h(e,"bx--overflow-menu-options--xl",l[4]==="xl"),h(e,"bx--breadcrumb-menu-options",!!l[14])},m(o,n){V(o,e,n),r&&r.m(e,null),l[31](e),t=!0},p(o,n){r&&r.p&&(!t||n[0]&8388608)&&ge(r,i,o,o[23],t?pe(i,o[23],n,null):ve(o[23]),null),(!t||n[0]&8192)&&p(e,"aria-label",o[13]),(!t||n[0]&32)&&p(e,"data-floating-menu-direction",o[5]),(!t||n[0]&256)&&p(e,"class",o[8]),(!t||n[0]&256)&&h(e,"bx--overflow-menu-options",!0),(!t||n[0]&384)&&h(e,"bx--overflow-menu--flip",o[7]),(!t||n[0]&257)&&h(e,"bx--overflow-menu-options--open",o[0]),(!t||n[0]&320)&&h(e,"bx--overflow-menu-options--light",o[6]),(!t||n[0]&272)&&h(e,"bx--overflow-menu-options--sm",o[4]==="sm"),(!t||n[0]&272)&&h(e,"bx--overflow-menu-options--xl",o[4]==="xl"),(!t||n[0]&16640)&&h(e,"bx--breadcrumb-menu-options",!!o[14])},i(o){t||(L(r,o),t=!0)},o(o){P(r,o),t=!1},d(o){o&&m(e),r&&r.d(o),l[31](null)}}}function Ht(l){let e,t,i,r,o,n,a,s;const f=l[24].menu,c=be(f,l,l[23],je),u=c||Gt(l);let _=l[0]&&Fe(l),d=[{type:"button"},{"aria-haspopup":""},{"aria-expanded":l[0]},{"aria-label":l[13]},{id:l[11]},l[19]],b={};for(let g=0;g{_=null}),ne()),$(r,b=fe(d,[{type:"button"},{"aria-haspopup":""},(!n||k[0]&1)&&{"aria-expanded":g[0]},(!n||k[0]&8192)&&{"aria-label":g[13]},(!n||k[0]&2048)&&{id:g[11]},k[0]&524288&&g[19]])),h(r,"bx--overflow-menu",!0),h(r,"bx--overflow-menu--open",g[0]),h(r,"bx--overflow-menu--light",g[6]),h(r,"bx--overflow-menu--sm",g[4]==="sm"),h(r,"bx--overflow-menu--xl",g[4]==="xl")},i(g){n||(L(u,g),L(_),n=!0)},o(g){P(u,g),P(_),n=!1},d(g){m(t),g&&e.d(),g&&m(i),g&&m(r),u&&u.d(g),_&&_.d(),l[32](null),a=!1,Re(s)}}}function Yt(l,e,t){let i,r;const o=["size","direction","open","light","flipped","menuOptionsClass","icon","iconClass","iconDescription","id","buttonRef","menuRef"];let n=Z(e,o),a,s,f,{$$slots:c={},$$scope:u}=e,{size:_=void 0}=e,{direction:d="bottom"}=e,{open:b=!1}=e,{light:g=!1}=e,{flipped:k=!1}=e,{menuOptionsClass:E=void 0}=e,{icon:v=Nt}=e,{iconClass:O=void 0}=e,{iconDescription:M="Open and close list of options"}=e,{id:w="ccs-"+Math.random().toString(36)}=e,{buttonRef:C=null}=e,{menuRef:A=null}=e;const se=rt("BreadcrumbItem"),F=ot(),q=Ae([]);Te(l,q,T=>t(22,s=T));const _e=Ae(void 0);Te(l,_e,T=>t(37,f=T));const Q=Ae(void 0),me=Ae(-1);Te(l,me,T=>t(21,a=T));let z,j=!0;vt("OverflowMenu",{focusedId:Q,add:({id:T,text:G,primaryFocus:Ie,disabled:_t})=>{q.update(Pe=>(Ie&&me.set(Pe.length),[...Pe,{id:T,text:G,primaryFocus:Ie,disabled:_t,index:Pe.length}]))},update:T=>{_e.set(T)},change:T=>{let G=a+T;G<0?G=s.length-1:G>=s.length&&(G=0);let Ie=s[G].disabled;for(;Ie;)G=G+T,G<0?G=s.length-1:G>=s.length&&(G=0),Ie=s[G].disabled;me.set(G)}}),nt(()=>{if(f){const{index:T,text:G}=s.filter(Ie=>Ie.id===f)[0];F("close",{index:T,text:G}),t(0,b=!1)}if(b){const{width:T,height:G}=C.getBoundingClientRect();t(20,z=T),!j&&a<0&&A.focus(),k&&(t(3,A.style.left="auto",A),t(3,A.style.right=0,A)),d==="top"?(t(3,A.style.top="auto",A),t(3,A.style.bottom=G+"px",A)):d==="bottom"&&t(3,A.style.top=G+"px",A),se&&(t(3,A.style.top=G+10+"px",A),t(3,A.style.left="-11px",A))}b||(q.set([]),_e.set(void 0),me.set(0)),j=!1});function re(T){ke.call(this,l,T)}function y(T){ke.call(this,l,T)}function Me(T){ke.call(this,l,T)}function ze(T){ke.call(this,l,T)}function Le(T){ke.call(this,l,T)}const Ce=({target:T})=>{C&&C.contains(T)||A&&!A.contains(T)&&t(0,b=!1)};function we(T){ye[T?"unshift":"push"](()=>{A=T,t(3,A)})}function Ve(T){ye[T?"unshift":"push"](()=>{C=T,t(2,C)})}const ct=({target:T})=>{A&&A.contains(T)||(t(0,b=!b),b||F("close"))},dt=T=>{b&&(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp"].includes(T.key)?T.preventDefault():T.key==="Escape"&&(T.stopPropagation(),F("close"),t(0,b=!1),C.focus()))},ht=T=>{b&&(C.contains(T.relatedTarget)||(F("close"),t(0,b=!1)))};return l.$$set=T=>{t(39,e=N(N({},e),ae(T))),t(19,n=Z(e,o)),"size"in T&&t(4,_=T.size),"direction"in T&&t(5,d=T.direction),"open"in T&&t(0,b=T.open),"light"in T&&t(6,g=T.light),"flipped"in T&&t(7,k=T.flipped),"menuOptionsClass"in T&&t(8,E=T.menuOptionsClass),"icon"in T&&t(1,v=T.icon),"iconClass"in T&&t(9,O=T.iconClass),"iconDescription"in T&&t(10,M=T.iconDescription),"id"in T&&t(11,w=T.id),"buttonRef"in T&&t(2,C=T.buttonRef),"menuRef"in T&&t(3,A=T.menuRef),"$$scope"in T&&t(23,u=T.$$scope)},l.$$.update=()=>{t(13,i=e["aria-label"]||"menu"),l.$$.dirty[0]&6291456&&s[a]&&Q.set(s[a].id),l.$$.dirty[0]&1050624&&t(12,r=``)},se&&t(1,v=jt),e=ae(e),[b,v,C,A,_,d,g,k,E,O,M,w,r,i,se,F,q,_e,me,n,z,a,s,u,c,re,y,Me,ze,Le,Ce,we,Ve,ct,dt,ht]}class Wt extends ue{constructor(e){super(),ce(this,e,Yt,Ht,de,{size:4,direction:5,open:0,light:6,flipped:7,menuOptionsClass:8,icon:1,iconClass:9,iconDescription:10,id:11,buttonRef:2,menuRef:3},null,[-1,-1])}}const Xt=Wt;function Qt(l){let e,t,i,r;const o=l[16].default,n=be(o,l,l[15],null),a=n||Kt(l);let s=[l[7]],f={};for(let c=0;c{n[_]=null}),ne(),i=n[t],i?i.p(c,u):(i=n[t]=o[t](c),i.c()),L(i,1),i.m(e,null)),$(e,f=fe(s,[{role:"none"},(!r||u&64)&&{id:c[6]},u&2048&&c[11]])),h(e,"bx--overflow-menu-options__option",!0),h(e,"bx--overflow-menu--divider",c[4]),h(e,"bx--overflow-menu-options__option--danger",c[5]),h(e,"bx--overflow-menu-options__option--disabled",c[3])},i(c){r||(L(i),r=!0)},o(c){P(i),r=!1},d(c){c&&m(e),n[t].d()}}}function $t(l,e,t){let i;const r=["text","href","primaryFocus","disabled","hasDivider","danger","requireTitle","id","ref"];let o=Z(e,r),n,{$$slots:a={},$$scope:s}=e;const f=pt(a);let{text:c="Provide text"}=e,{href:u=""}=e,{primaryFocus:_=!1}=e,{disabled:d=!1}=e,{hasDivider:b=!1}=e,{danger:g=!1}=e,{requireTitle:k=!0}=e,{id:E="ccs-"+Math.random().toString(36)}=e,{ref:v=null}=e;const{focusedId:O,add:M,update:w,change:C}=rt("OverflowMenu");Te(l,O,y=>t(14,n=y)),M({id:E,text:c,primaryFocus:_,disabled:d}),nt(()=>{v&&_&&v.focus()});function A(y){ke.call(this,l,y)}function se(y){ke.call(this,l,y)}function F(y){ke.call(this,l,y)}function q(y){ke.call(this,l,y)}function _e(y){ye[y?"unshift":"push"](()=>{v=y,t(0,v)})}const Q=()=>{w(E)},me=({key:y})=>{y==="ArrowDown"?C(1):y==="ArrowUp"&&C(-1)};function z(y){ye[y?"unshift":"push"](()=>{v=y,t(0,v)})}const j=()=>{w(E)},re=({key:y})=>{y==="ArrowDown"?C(1):y==="ArrowUp"&&C(-1)};return l.$$set=y=>{e=N(N({},e),ae(y)),t(11,o=Z(e,r)),"text"in y&&t(1,c=y.text),"href"in y&&t(2,u=y.href),"primaryFocus"in y&&t(12,_=y.primaryFocus),"disabled"in y&&t(3,d=y.disabled),"hasDivider"in y&&t(4,b=y.hasDivider),"danger"in y&&t(5,g=y.danger),"requireTitle"in y&&t(13,k=y.requireTitle),"id"in y&&t(6,E=y.id),"ref"in y&&t(0,v=y.ref),"$$scope"in y&&t(15,s=y.$$scope)},l.$$.update=()=>{l.$$.dirty&16448&&t(12,_=n===E),l.$$.dirty&8206&&t(7,i={role:"menuitem",tabindex:"-1",class:"bx--overflow-menu-options__btn",disabled:u?void 0:d,href:u||void 0,title:k?f.default?void 0:c:void 0})},[v,c,u,d,b,g,E,i,O,w,C,o,_,k,n,s,a,A,se,F,q,_e,Q,me,z,j,re]}class el extends ue{constructor(e){super(),ce(this,e,$t,xt,de,{text:1,href:2,primaryFocus:12,disabled:3,hasDivider:4,danger:5,requireTitle:13,id:6,ref:0})}}const tl=el;function ll(l){let e,t,i,r,o,n,a,s,f,c=l[0]&&Ge(l),u=[{"aria-atomic":"true"},{"aria-labelledby":l[4]},{"aria-live":f=l[1]?"assertive":"off"},l[6]],_={};for(let d=0;d{e=N(N({},e),ae(u)),t(6,o=Z(e,r)),"small"in u&&t(0,n=u.small),"active"in u&&t(1,a=u.active),"withOverlay"in u&&t(2,s=u.withOverlay),"description"in u&&t(3,f=u.description),"id"in u&&t(4,c=u.id)},l.$$.update=()=>{l.$$.dirty&1&&t(5,i=n?"42":"44")},[n,a,s,f,c,i,o]}class nl extends ue{constructor(e){super(),ce(this,e,ol,rl,de,{small:0,active:1,withOverlay:2,description:3,id:4})}}const sl=nl;function al(l){let e,t,i,r,o,n;const a=l[11].default,s=be(a,l,l[10],null);let f=[l[9],{style:i=l[9].style+"; "+(l[6]&&"position: relative")}],c={};for(let u=0;u{a&&(g.contains(v.target)||(b("click:outside",{target:v.target}),s&&t(0,a=!1)))};function E(v){ye[v?"unshift":"push"](()=>{g=v,t(7,g)})}return l.$$set=v=>{e=N(N({},e),ae(v)),t(9,r=Z(e,i)),"open"in v&&t(0,a=v.open),"closeOnOutsideClick"in v&&t(1,s=v.closeOnOutsideClick),"caret"in v&&t(2,f=v.caret),"align"in v&&t(3,c=v.align),"light"in v&&t(4,u=v.light),"highContrast"in v&&t(5,_=v.highContrast),"relative"in v&&t(6,d=v.relative),"$$scope"in v&&t(10,n=v.$$scope)},[a,s,f,c,u,_,d,g,b,r,n,o,k,E]}class ul extends ue{constructor(e){super(),ce(this,e,fl,al,de,{open:0,closeOnOutsideClick:1,caret:2,align:3,light:4,highContrast:5,relative:6})}}const cl=ul,dl=l=>({}),Ye=l=>({});function hl(l){let e;return{c(){e=S(l[4])},l(t){e=U(t,l[4])},m(t,i){V(t,e,i)},p(t,i){i&16&&X(e,t[4])},d(t){t&&m(e)}}}function We(l){let e,t,i;var r=l[10][l[2]];function o(n){return{props:{class:"bx--progress-bar__status-icon"}}}return r&&(e=Oe(r,o())),{c(){e&&te(e.$$.fragment),t=x()},l(n){e&&he(e.$$.fragment,n),t=x()},m(n,a){e&&le(e,n,a),V(n,t,a),i=!0},p(n,a){if(a&4&&r!==(r=n[10][n[2]])){if(e){oe();const s=e;P(s.$$.fragment,1,0,()=>{ie(s,1)}),ne()}r?(e=Oe(r,o()),te(e.$$.fragment),L(e.$$.fragment,1),le(e,t.parentNode,t)):e=null}},i(n){i||(e&&L(e.$$.fragment,n),i=!0)},o(n){e&&P(e.$$.fragment,n),i=!1},d(n){n&&m(t),e&&ie(e,n)}}}function Xe(l){let e,t;return{c(){e=B("div"),t=S(l[6]),this.h()},l(i){e=R(i,"DIV",{id:!0});var r=D(e);t=U(r,l[6]),r.forEach(m),this.h()},h(){p(e,"id",l[11]),h(e,"bx--progress-bar__helper-text",!0)},m(i,r){V(i,e,r),I(e,t)},p(i,r){r&64&&X(t,i[6])},d(i){i&&m(e)}}}function _l(l){let e,t,i,r,o,n,a,s,f,c,u,_,d;const b=l[15].labelText,g=be(b,l,l[14],Ye),k=g||hl(l);let E=(l[2]==="error"||l[2]==="finished")&&We(l),v=l[6]&&Xe(l),O=[l[12]],M={};for(let w=0;w{E=null}),ne()),(!d||C&128)&&p(t,"for",w[7]),(!d||C&32)&&h(t,"bx--visually-hidden",w[5]),C&261&&Ee(n,"transform",w[2]==="active"&&`scaleX(${w[8]/w[0]})`),(!d||C&128)&&p(o,"id",w[7]),(!d||C&4&&a!==(a=w[2]==="active"))&&p(o,"aria-busy",a),(!d||C&512&&s!==(s=w[9]?void 0:0))&&p(o,"aria-valuemin",s),(!d||C&513&&f!==(f=w[9]?void 0:w[0]))&&p(o,"aria-valuemax",f),(!d||C&768&&c!==(c=w[9]?void 0:w[8]))&&p(o,"aria-valuenow",c),(!d||C&64&&u!==(u=w[6]?w[11]:null))&&p(o,"aria-describedby",u),w[6]?v?v.p(w,C):(v=Xe(w),v.c(),v.m(e,null)):v&&(v.d(1),v=null),$(e,M=fe(O,[C&4096&&w[12]])),h(e,"bx--progress-bar",!0),h(e,"bx--progress-bar--indeterminate",w[9]),h(e,"bx--progress-bar--big",w[3]==="md"),h(e,"bx--progress-bar--small",w[3]==="sm"),h(e,"bx--progress-bar--inline",w[1]==="inline"),h(e,"bx--progress-bar--indented",w[1]==="indented"),h(e,"bx--progress-bar--error",w[2]==="error"),h(e,"bx--progress-bar--finished",w[2]==="finished")},i(w){d||(L(k,w),L(E),d=!0)},o(w){P(k,w),P(E),d=!1},d(w){w&&m(e),k&&k.d(w),E&&E.d(),v&&v.d()}}}function ml(l,e,t){let i;const r=["value","max","kind","status","size","labelText","hideLabel","helperText","id"];let o=Z(e,r),{$$slots:n={},$$scope:a}=e,{value:s=void 0}=e,{max:f=100}=e,{kind:c="default"}=e,{status:u="active"}=e,{size:_="md"}=e,{labelText:d=""}=e,{hideLabel:b=!1}=e,{helperText:g=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e;const E={error:Ot,finished:Mt};let v="ccs-"+Math.random().toString(36),O;return l.$$set=M=>{e=N(N({},e),ae(M)),t(12,o=Z(e,r)),"value"in M&&t(13,s=M.value),"max"in M&&t(0,f=M.max),"kind"in M&&t(1,c=M.kind),"status"in M&&t(2,u=M.status),"size"in M&&t(3,_=M.size),"labelText"in M&&t(4,d=M.labelText),"hideLabel"in M&&t(5,b=M.hideLabel),"helperText"in M&&t(6,g=M.helperText),"id"in M&&t(7,k=M.id),"$$scope"in M&&t(14,a=M.$$scope)},l.$$.update=()=>{l.$$.dirty&8196&&t(9,i=s===void 0&&u==="active"),l.$$.dirty&8197&&(u==="error"||s<0?t(8,O=0):s>f?t(8,O=f):t(8,O=s))},[f,c,u,_,d,b,g,k,O,i,E,v,o,s,a,n]}class bl extends ue{constructor(e){super(),ce(this,e,ml,_l,de,{value:13,max:0,kind:1,status:2,size:3,labelText:4,hideLabel:5,helperText:6,id:7})}}const gl=bl;class vl{static login(e){return Ne(qe,{method:"GET",url:"/google/login",query:{origin_url:e},errors:{422:"Validation Error"}})}static auth(){return Ne(qe,{method:"GET",url:"/google/auth"})}static logout(){return Ne(qe,{method:"GET",url:"/google/logout"})}}function Qe(l){let e,t;return{c(){e=H("title"),t=S(l[1])},l(i){e=Y(i,"title",{});var r=D(e);t=U(r,l[1]),r.forEach(m)},m(i,r){V(i,e,r),I(e,t)},p(i,r){r&2&&X(t,i[1])},d(i){i&&m(e)}}}function pl(l){let e,t,i=l[1]&&Qe(l),r=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:l[0]},{height:l[0]},l[2],l[3]],o={};for(let n=0;n{t(5,e=N(N({},e),ae(f))),t(3,n=Z(e,o)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,s=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||s),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ae(e),[a,s,r,n,i]}class wl extends ue{constructor(e){super(),ce(this,e,kl,pl,de,{size:0,title:1})}}const El=At("goto"),Tl=yt(vl.logout,{onSuccess:()=>zt.invalidateQueries([Lt])});function Je(l){let e,t,i,r,o,n=`${l[2]}px`,a=`${Math.max(l[5]/2+Be,Math.min(l[1],l[6]-l[5]/2-Be))}px`,s;const f=[Dl,Il],c=[];function u(_,d){return _[0]?0:_[3]?1:-1}return~(i=u(l))&&(r=c[i]=f[i](l)),{c(){e=B("div"),t=B("div"),r&&r.c(),this.h()},l(_){e=R(_,"DIV",{role:!0,class:!0});var d=D(e);t=R(d,"DIV",{class:!0});var b=D(t);r&&r.l(b),b.forEach(m),d.forEach(m),this.h()},h(){p(t,"class","min-w-xl text-container svelte-80e402"),p(e,"role","tooltip"),p(e,"class","hover-tooltip absolute mt-2 -translate-x-1/2 break-words border border-gray-300 bg-white p-2 shadow-md svelte-80e402"),kt(()=>l[7].call(e)),Ee(e,"top",n),Ee(e,"left",a)},m(_,d){V(_,e,d),I(e,t),~i&&c[i].m(t,null),o=wt(e,l[7].bind(e)),s=!0},p(_,d){let b=i;i=u(_),i===b?~i&&c[i].p(_,d):(r&&(oe(),P(c[b],1,1,()=>{c[b]=null}),ne()),~i?(r=c[i],r?r.p(_,d):(r=c[i]=f[i](_),r.c()),L(r,1),r.m(t,null)):r=null),d&4&&n!==(n=`${_[2]}px`)&&Ee(e,"top",n),d&34&&a!==(a=`${Math.max(_[5]/2+Be,Math.min(_[1],_[6]-_[5]/2-Be))}px`)&&Ee(e,"left",a)},i(_){s||(L(r),s=!0)},o(_){P(r),s=!1},d(_){_&&m(e),~i&&c[i].d(),o()}}}function Il(l){let e,t,i;const r=[l[4]];var o=l[3];function n(a){let s={};for(let f=0;f{ie(c,1)}),ne()}o?(e=Oe(o,n()),te(e.$$.fragment),L(e.$$.fragment,1),le(e,t.parentNode,t)):e=null}else o&&e.$set(f)},i(a){i||(e&&L(e.$$.fragment,a),i=!0)},o(a){e&&P(e.$$.fragment,a),i=!1},d(a){a&&m(t),e&&ie(e,a)}}}function Dl(l){let e,t;return{c(){e=B("span"),t=S(l[0]),this.h()},l(i){e=R(i,"SPAN",{class:!0});var r=D(e);t=U(r,l[0]),r.forEach(m),this.h()},h(){p(e,"class","whitespace-pre-wrap")},m(i,r){V(i,e,r),I(e,t)},p(i,r){r&1&&X(t,i[0])},i:ee,o:ee,d(i){i&&m(e)}}}function Ol(l){let e,t,i=l[0]!=""&&Je(l);return{c(){i&&i.c(),e=x()},l(r){i&&i.l(r),e=x()},m(r,o){i&&i.m(r,o),V(r,e,o),t=!0},p(r,[o]){r[0]!=""?i?(i.p(r,o),o&1&&L(i,1)):(i=Je(r),i.c(),L(i,1),i.m(e.parentNode,e)):i&&(oe(),P(i,1,1,()=>{i=null}),ne())},i(r){t||(L(i),t=!0)},o(r){P(i),t=!1},d(r){i&&i.d(r),r&&m(e)}}}const Be=10;function Ml(l,e,t){let{text:i}=e,{x:r}=e,{y:o}=e,{component:n}=e,{props:a}=e;const s=window.innerWidth;let f=0;function c(){f=this.clientWidth,t(5,f)}return l.$$set=u=>{"text"in u&&t(0,i=u.text),"x"in u&&t(1,r=u.x),"y"in u&&t(2,o=u.y),"component"in u&&t(3,n=u.component),"props"in u&&t(4,a=u.props)},[i,r,o,n,a,f,s,c]}class yl extends ue{constructor(e){super(),ce(this,e,Ml,Ol,de,{text:0,x:1,y:2,component:3,props:4})}}function ut(l,{text:e,component:t,props:i}){if(t==null&&e==null)return;let r,o=e,n=t,a=i;function s(){if(r!=null)return;const c=l.getBoundingClientRect();r=new yl({props:{text:o,component:n,props:a,x:c.left+c.width/2,y:c.bottom},target:document.body})}function f(){r==null||r.$destroy(),r=void 0}return l.addEventListener("mouseover",s),l.addEventListener("mouseleave",f),l.addEventListener("click",f),{update({text:c,component:u,props:_}){o=c,n=u,a=_,r==null||r.$set({tooltipText:c})},destroy(){f(),l.removeEventListener("mouseover",s),l.removeEventListener("mouseleave",f),l.removeEventListener("click",f)}}}function Ke(l,e,t){const i=l.slice();i[13]=e[t][0],i[14]=e[t][1];const r=i[14].step_progress==null?void 0:i[14].step_progress;return i[15]=r,i}function Ze(l){let e,t,i,r,o,n,a,s,f,c,u,_,d;const b=[Cl,Ll,zl],g=[];function k(v,O){return v[5].length?0:v[4].length?1:2}r=k(l),o=g[r]=b[r](l);let E=l[5].length===1&&xe(l);return s=new cl({props:{align:"bottom-right",caret:!0,closeOnOutsideClick:!0,open:l[1],$$slots:{default:[Vl]},$$scope:{ctx:l}}}),s.$on("click:outside",l[11]),{c(){e=B("div"),t=B("button"),i=B("div"),o.c(),n=J(),E&&E.c(),a=J(),te(s.$$.fragment),this.h()},l(v){e=R(v,"DIV",{});var O=D(e);t=R(O,"BUTTON",{class:!0});var M=D(t);i=R(M,"DIV",{class:!0});var w=D(i);o.l(w),w.forEach(m),n=K(M),E&&E.l(M),a=K(M),he(s.$$.fragment,M),M.forEach(m),O.forEach(m),this.h()},h(){p(i,"class","relative z-10 flex gap-x-2"),t.disabled=f=!l[2],p(t,"class","task-button relative h-8 rounded border p-2 transition"),h(t,"opacity-40",!l[2]),h(t,"bg-white",!l[5].length),h(t,"bg-blue-200",l[5].length),h(t,"border-blue-400",l[5].length)},m(v,O){V(v,e,O),I(e,t),I(t,i),g[r].m(i,null),I(t,n),E&&E.m(t,null),I(t,a),le(s,t,null),u=!0,_||(d=[W(t,"click",Tt(l[12])),st(c=ut.call(null,e,{text:l[2]?"":"User does not have access to run tasks."}))],_=!0)},p(v,O){let M=r;r=k(v),r===M?g[r].p(v,O):(oe(),P(g[M],1,1,()=>{g[M]=null}),ne(),o=g[r],o?o.p(v,O):(o=g[r]=b[r](v),o.c()),L(o,1),o.m(i,null)),v[5].length===1?E?E.p(v,O):(E=xe(v),E.c(),E.m(t,a)):E&&(E.d(1),E=null);const w={};O&2&&(w.open=v[1]),O&262145&&(w.$$scope={dirty:O,ctx:v}),s.$set(w),(!u||O&4&&f!==(f=!v[2]))&&(t.disabled=f),(!u||O&4)&&h(t,"opacity-40",!v[2]),(!u||O&32)&&h(t,"bg-white",!v[5].length),(!u||O&32)&&h(t,"bg-blue-200",v[5].length),(!u||O&32)&&h(t,"border-blue-400",v[5].length),c&&at(c.update)&&O&4&&c.update.call(null,{text:v[2]?"":"User does not have access to run tasks."})},i(v){u||(L(o),L(s.$$.fragment,v),u=!0)},o(v){P(o),P(s.$$.fragment,v),u=!1},d(v){v&&m(e),g[r].d(),E&&E.d(),ie(s),_=!1,Re(d)}}}function zl(l){let e,t,i;return t=new wl({}),{c(){e=S("Tasks "),te(t.$$.fragment)},l(r){e=U(r,"Tasks "),he(t.$$.fragment,r)},m(r,o){V(r,e,o),le(t,r,o),i=!0},p:ee,i(r){i||(L(t.$$.fragment,r),i=!0)},o(r){P(t.$$.fragment,r),i=!1},d(r){r&&m(e),ie(t,r)}}}function Ll(l){let e=l[4].length+"",t,i,r=l[4].length>1?"s":"",o;return{c(){t=S(e),i=S(" failed task"),o=S(r)},l(n){t=U(n,e),i=U(n," failed task"),o=U(n,r)},m(n,a){V(n,t,a),V(n,i,a),V(n,o,a)},p(n,a){a&16&&e!==(e=n[4].length+"")&&X(t,e),a&16&&r!==(r=n[4].length>1?"s":"")&&X(o,r)},i:ee,o:ee,d(n){n&&m(t),n&&m(i),n&&m(o)}}}function Cl(l){let e=l[5].length+"",t,i,r=l[5].length>1?"s":"",o,n,a,s;return a=new sl({props:{withOverlay:!1,small:!0}}),{c(){t=S(e),i=S(" running task"),o=S(r),n=S("... "),te(a.$$.fragment)},l(f){t=U(f,e),i=U(f," running task"),o=U(f,r),n=U(f,"... "),he(a.$$.fragment,f)},m(f,c){V(f,t,c),V(f,i,c),V(f,o,c),V(f,n,c),le(a,f,c),s=!0},p(f,c){(!s||c&32)&&e!==(e=f[5].length+"")&&X(t,e),(!s||c&32)&&r!==(r=f[5].length>1?"s":"")&&X(o,r)},i(f){s||(L(a.$$.fragment,f),s=!0)},o(f){P(a.$$.fragment,f),s=!1},d(f){f&&m(t),f&&m(i),f&&m(o),f&&m(n),ie(a,f)}}}function xe(l){let e,t=`${l[3]*100}%`;return{c(){e=B("div"),this.h()},l(i){e=R(i,"DIV",{class:!0}),D(e).forEach(m),this.h()},h(){p(e,"class","absolute left-0 top-0 z-0 h-full bg-blue-400 transition"),Ee(e,"width",t)},m(i,r){V(i,e,r)},p(i,r){r&8&&t!==(t=`${i[3]*100}%`)&&Ee(e,"width",t)},d(i){i&&m(e)}}}function $e(l,e){let t,i,r,o=e[14].name+"",n,a,s,f,c,u;return f=new gl({props:{labelText:e[14].message||"",helperText:e[14].status!="completed"?e[14].details:"",value:e[14].status==="completed"?1:e[15],max:1,size:"sm",status:e[7][e[14].status]}}),{key:l,first:null,c(){t=B("div"),i=B("div"),r=B("div"),n=S(o),a=J(),s=B("div"),te(f.$$.fragment),c=J(),this.h()},l(_){t=R(_,"DIV",{class:!0});var d=D(t);i=R(d,"DIV",{class:!0});var b=D(i);r=R(b,"DIV",{class:!0});var g=D(r);n=U(g,o),g.forEach(m),b.forEach(m),a=K(d),s=R(d,"DIV",{class:!0});var k=D(s);he(f.$$.fragment,k),k.forEach(m),c=K(d),d.forEach(m),this.h()},h(){p(r,"class","mr-2"),p(i,"class","text-s flex flex-row"),p(s,"class","progress-container mt-3"),p(t,"class","relative border-b-2 border-slate-200 p-4 text-left last:border-b-0"),this.first=t},m(_,d){V(_,t,d),I(t,i),I(i,r),I(r,n),I(t,a),I(t,s),le(f,s,null),I(t,c),u=!0},p(_,d){e=_,(!u||d&1)&&o!==(o=e[14].name+"")&&X(n,o);const b={};d&1&&(b.labelText=e[14].message||""),d&1&&(b.helperText=e[14].status!="completed"?e[14].details:""),d&1&&(b.value=e[14].status==="completed"?1:e[15]),d&1&&(b.status=e[7][e[14].status]),f.$set(b)},i(_){u||(L(f.$$.fragment,_),u=!0)},o(_){P(f.$$.fragment,_),u=!1},d(_){_&&m(t),ie(f)}}}function Vl(l){let e,t=[],i=new Map,r,o=l[0];const n=a=>a[13];for(let a=0;a{i=null}),ne())},i(r){t||(L(i),t=!0)},o(r){P(i),t=!1},d(r){i&&i.d(r),r&&m(e)}}}function Bl(l,e,t){let i,r,o,n,a,s,f;const c=Ct();Te(l,c,k=>t(10,f=k));let u=!1;const _={pending:"active",completed:"finished",error:"error"},d=ft();Te(l,d,k=>t(9,s=k));const b=()=>{u&&t(1,u=!1)},g=()=>t(1,u=!u);return l.$$.update=()=>{var k,E,v,O;l.$$.dirty&1024&&t(0,i=Object.entries(((k=f.data)==null?void 0:k.tasks)||{}).sort(([,M],[,w])=>Date.parse(w.start_timestamp)-Date.parse(M.start_timestamp))),l.$$.dirty&1&&t(5,r=i.filter(([,M])=>M.status==="pending")),l.$$.dirty&1&&t(4,o=i.filter(([,M])=>M.status==="error")),l.$$.dirty&1024&&t(3,n=((E=f.data)==null?void 0:E.progress)||0),l.$$.dirty&512&&t(2,a=((v=s.data)==null?void 0:v.access.dataset.compute_signals)||((O=s.data)==null?void 0:O.access.create_dataset))},[i,u,a,n,o,r,c,_,d,s,f,b,g]}class Rl extends ue{constructor(e){super(),ce(this,e,Bl,Al,de,{})}}const Pl=l=>({}),et=l=>({}),Nl=l=>({}),tt=l=>({}),ql=l=>({}),lt=l=>({});function it(l){let e,t,i,r;const o=[Ul,Sl],n=[];function a(s,f){var c;return((c=s[1].data)==null?void 0:c.user)!=null?0:1}return e=a(l),t=n[e]=o[e](l),{c(){t.c(),i=x()},l(s){t.l(s),i=x()},m(s,f){n[e].m(s,f),V(s,i,f),r=!0},p(s,f){let c=e;e=a(s),e===c?n[e].p(s,f):(oe(),P(n[c],1,1,()=>{n[c]=null}),ne(),t=n[e],t?t.p(s,f):(t=n[e]=o[e](s),t.c()),L(t,1),t.m(i.parentNode,i))},i(s){r||(L(t),r=!0)},o(s){P(t),r=!1},d(s){n[e].d(s),s&&m(i)}}}function Sl(l){let e,t;return e=new Vt({props:{size:"small",$$slots:{default:[jl]},$$scope:{ctx:l}}}),e.$on("click",l[7]),{c(){te(e.$$.fragment)},l(i){he(e.$$.fragment,i)},m(i,r){le(e,i,r),t=!0},p(i,r){const o={};r&256&&(o.$$scope={dirty:r,ctx:i}),e.$set(o)},i(i){t||(L(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){ie(e,i)}}}function Ul(l){var _;let e,t,i=((_=l[1].data)==null?void 0:_.user.given_name)+"",r,o,n,a,s,f,c,u;return s=new Xt({props:{flipped:!0,$$slots:{default:[Fl]},$$scope:{ctx:l}}}),{c(){e=B("div"),t=B("div"),r=S(i),n=J(),a=B("div"),te(s.$$.fragment),this.h()},l(d){e=R(d,"DIV",{class:!0});var b=D(e);t=R(b,"DIV",{class:!0});var g=D(t);r=U(g,i),g.forEach(m),n=K(b),a=R(b,"DIV",{});var k=D(a);he(s.$$.fragment,k),k.forEach(m),b.forEach(m),this.h()},h(){p(t,"class","ml-2 mr-1 flex"),p(e,"class","flex h-9 flex-row items-center rounded border border-neutral-200")},m(d,b){var g,k;V(d,e,b),I(e,t),I(t,r),I(e,n),I(e,a),le(s,a,null),f=!0,c||(u=st(o=ut.call(null,t,{text:`Logged into Google as ${(g=l[1].data)==null?void 0:g.user.name} with email ${(k=l[1].data)==null?void 0:k.user.email}`})),c=!0)},p(d,b){var k,E,v;(!f||b&2)&&i!==(i=((k=d[1].data)==null?void 0:k.user.given_name)+"")&&X(r,i),o&&at(o.update)&&b&2&&o.update.call(null,{text:`Logged into Google as ${(E=d[1].data)==null?void 0:E.user.name} with email ${(v=d[1].data)==null?void 0:v.user.email}`});const g={};b&256&&(g.$$scope={dirty:b,ctx:d}),s.$set(g)},i(d){f||(L(s.$$.fragment,d),f=!0)},o(d){P(s.$$.fragment,d),f=!1},d(d){d&&m(e),ie(s),c=!1,u()}}}function jl(l){let e;return{c(){e=S("Login")},l(t){e=U(t,"Login")},m(t,i){V(t,e,i)},d(t){t&&m(e)}}}function Fl(l){let e,t;return e=new tl({props:{class:"optionOne",text:"Logout"}}),e.$on("click",l[5]),{c(){te(e.$$.fragment)},l(i){he(e.$$.fragment,i)},m(i,r){le(e,i,r),t=!0},p:ee,i(i){t||(L(e.$$.fragment,i),t=!0)},o(i){P(e.$$.fragment,i),t=!1},d(i){ie(e,i)}}}function Gl(l){var me;let e,t,i,r,o,n,a,s,f,c,u,_,d,b,g,k,E,v,O;const M=l[6]["header-subtext"],w=be(M,l,l[8],lt),C=l[6]["header-center"],A=be(C,l,l[8],tt),se=l[6]["header-right"],F=be(se,l,l[8],et);g=new Rl({});let q=((me=l[1].data)==null?void 0:me.auth_enabled)&&it(l);const _e=l[6].default,Q=be(_e,l,l[8],null);return{c(){e=B("div"),t=B("div"),i=B("div"),r=B("a"),o=S(`Lilac `),n=B("span"),a=S(l[0]),s=J(),f=B("div"),w&&w.c(),c=J(),u=B("div"),A&&A.c(),_=J(),d=B("div"),F&&F.c(),b=J(),te(g.$$.fragment),k=J(),q&&q.c(),E=J(),v=B("div"),Q&&Q.c(),this.h()},l(z){e=R(z,"DIV",{class:!0});var j=D(e);t=R(j,"DIV",{class:!0});var re=D(t);i=R(re,"DIV",{class:!0});var y=D(i);r=R(y,"A",{class:!0,href:!0});var Me=D(r);o=U(Me,`Lilac `),n=R(Me,"SPAN",{});var ze=D(n);a=U(ze,l[0]),ze.forEach(m),Me.forEach(m),s=K(y),f=R(y,"DIV",{class:!0});var Le=D(f);w&&w.l(Le),Le.forEach(m),y.forEach(m),c=K(re),u=R(re,"DIV",{class:!0});var Ce=D(u);A&&A.l(Ce),Ce.forEach(m),_=K(re),d=R(re,"DIV",{class:!0});var we=D(d);F&&F.l(we),b=K(we),he(g.$$.fragment,we),k=K(we),q&&q.l(we),we.forEach(m),re.forEach(m),E=K(j),v=R(j,"DIV",{class:!0});var Ve=D(v);Q&&Q.l(Ve),Ve.forEach(m),j.forEach(m),this.h()},h(){p(r,"class","text-xl normal-case"),p(r,"href","/"),p(f,"class","mt-1 pl-4"),p(i,"class","mr-4 flex flex-row items-center"),p(u,"class","flex-grow flex-row items-center justify-center"),p(d,"class","flex flex-row items-center gap-x-2"),p(t,"class","flex flex-row items-center justify-between justify-items-center gap-x-12 border-b border-gray-200 px-4 py-2"),p(v,"class","flex h-full w-full overflow-hidden"),p(e,"class","flex h-full w-full flex-col")},m(z,j){V(z,e,j),I(e,t),I(t,i),I(i,r),I(r,o),I(r,n),I(n,a),I(i,s),I(i,f),w&&w.m(f,null),I(t,c),I(t,u),A&&A.m(u,null),I(t,_),I(t,d),F&&F.m(d,null),I(d,b),le(g,d,null),I(d,k),q&&q.m(d,null),I(e,E),I(e,v),Q&&Q.m(v,null),O=!0},p(z,[j]){var re;(!O||j&1)&&X(a,z[0]),w&&w.p&&(!O||j&256)&&ge(w,M,z,z[8],O?pe(M,z[8],j,ql):ve(z[8]),lt),A&&A.p&&(!O||j&256)&&ge(A,C,z,z[8],O?pe(C,z[8],j,Nl):ve(z[8]),tt),F&&F.p&&(!O||j&256)&&ge(F,se,z,z[8],O?pe(se,z[8],j,Pl):ve(z[8]),et),(re=z[1].data)!=null&&re.auth_enabled?q?(q.p(z,j),j&2&&L(q,1)):(q=it(z),q.c(),L(q,1),q.m(d,null)):q&&(oe(),P(q,1,1,()=>{q=null}),ne()),Q&&Q.p&&(!O||j&256)&&ge(Q,_e,z,z[8],O?pe(_e,z[8],j,null):ve(z[8]),null)},i(z){O||(L(w,z),L(A,z),L(F,z),L(g.$$.fragment,z),L(q),L(Q,z),O=!0)},o(z){P(w,z),P(A,z),P(F,z),P(g.$$.fragment,z),P(q),P(Q,z),O=!1},d(z){z&&m(e),w&&w.d(z),A&&A.d(z),F&&F.d(z),ie(g),q&&q.d(),Q&&Q.d(z)}}}function Hl(l,e,t){let i,r,{$$slots:o={},$$scope:n}=e,{title:a}=e;const s=ft();Te(l,s,d=>t(1,r=d));const f=`/google/login?origin_url=${location.origin}`,c=Tl();Te(l,c,d=>t(9,i=d));function u(){i.mutate([])}const _=()=>El(f);return l.$$set=d=>{"title"in d&&t(0,a=d.title),"$$scope"in d&&t(8,n=d.$$scope)},[a,r,s,f,c,u,o,_,n]}class Jl extends ue{constructor(e){super(),ce(this,e,Hl,Gl,de,{title:0})}}export{wl as C,sl as L,Xt as O,Jl as P,tl as a,El as g,ut as h};