File size: 45,334 Bytes
df815f7
2bdcb14
 
 
 
 
 
1
2
3
4
5
6
7
8
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<n.length;s+=1)a=N(a,n[s]);return{c(){e=H("svg"),o&&o.c(),t=H("circle"),i=H("circle"),r=H("circle"),this.h()},l(s){e=Y(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var f=D(e);o&&o.l(f),t=Y(f,"circle",{cx:!0,cy:!0,r:!0}),D(t).forEach(m),i=Y(f,"circle",{cx:!0,cy:!0,r:!0}),D(i).forEach(m),r=Y(f,"circle",{cx:!0,cy:!0,r:!0}),D(r).forEach(m),f.forEach(m),this.h()},h(){p(t,"cx","16"),p(t,"cy","8"),p(t,"r","2"),p(i,"cx","16"),p(i,"cy","16"),p(i,"r","2"),p(r,"cx","16"),p(r,"cy","24"),p(r,"r","2"),De(e,a)},m(s,f){V(s,e,f),o&&o.m(e,null),I(e,t),I(e,i),I(e,r)},p(s,[f]){s[1]?o?o.p(s,f):(o=Se(s),o.c(),o.m(e,t)):o&&(o.d(1),o=null),De(e,a=fe(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},f&1&&{width:s[0]},f&1&&{height:s[0]},f&4&&s[2],f&8&&s[3]]))},i:ee,o:ee,d(s){s&&m(e),o&&o.d()}}}function Rt(l,e,t){let i,r;const o=["size","title"];let n=Z(e,o),{size:a=16}=e,{title:s=void 0}=e;return l.$$set=f=>{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<n.length;s+=1)a=N(a,n[s]);return{c(){e=H("svg"),o&&o.c(),t=H("circle"),i=H("circle"),r=H("circle"),this.h()},l(s){e=Y(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var f=D(e);o&&o.l(f),t=Y(f,"circle",{cx:!0,cy:!0,r:!0}),D(t).forEach(m),i=Y(f,"circle",{cx:!0,cy:!0,r:!0}),D(i).forEach(m),r=Y(f,"circle",{cx:!0,cy:!0,r:!0}),D(r).forEach(m),f.forEach(m),this.h()},h(){p(t,"cx","8"),p(t,"cy","16"),p(t,"r","2"),p(i,"cx","16"),p(i,"cy","16"),p(i,"r","2"),p(r,"cx","24"),p(r,"cy","16"),p(r,"r","2"),De(e,a)},m(s,f){V(s,e,f),o&&o.m(e,null),I(e,t),I(e,i),I(e,r)},p(s,[f]){s[1]?o?o.p(s,f):(o=Ue(s),o.c(),o.m(e,t)):o&&(o.d(1),o=null),De(e,a=fe(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},f&1&&{width:s[0]},f&1&&{height:s[0]},f&4&&s[2],f&8&&s[3]]))},i:ee,o:ee,d(s){s&&m(e),o&&o.d()}}}function St(l,e,t){let i,r;const o=["size","title"];let n=Z(e,o),{size:a=16}=e,{title:s=void 0}=e;return l.$$set=f=>{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<d.length;g+=1)b=N(b,d[g]);return{c(){e=new mt(!1),t=x(),i=J(),r=B("button"),u&&u.c(),o=J(),_&&_.c(),this.h()},l(g){const k=bt("svelte-7ztmff",document.head);e=gt(k,!1),t=x(),k.forEach(m),i=K(g),r=R(g,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-expanded":!0,"aria-label":!0,id:!0});var E=D(r);u&&u.l(E),o=K(E),_&&_.l(E),E.forEach(m),this.h()},h(){e.a=t,$(r,b),h(r,"bx--overflow-menu",!0),h(r,"bx--overflow-menu--open",l[0]),h(r,"bx--overflow-menu--light",l[6]),h(r,"bx--overflow-menu--sm",l[4]==="sm"),h(r,"bx--overflow-menu--xl",l[4]==="xl")},m(g,k){e.m(l[12],document.head),I(document.head,t),V(g,i,k),V(g,r,k),u&&u.m(r,null),I(r,o),_&&_.m(r,null),r.autofocus&&r.focus(),l[32](r),n=!0,a||(s=[W(window,"click",l[30]),W(r,"click",l[25]),W(r,"click",l[33]),W(r,"mouseover",l[26]),W(r,"mouseenter",l[27]),W(r,"mouseleave",l[28]),W(r,"keydown",l[29]),W(r,"keydown",l[34]),W(r,"focusout",l[35])],a=!0)},p(g,k){(!n||k[0]&4096)&&e.p(g[12]),c?c.p&&(!n||k[0]&8388608)&&ge(c,f,g,g[23],n?pe(f,g[23],k,Ft):ve(g[23]),je):u&&u.p&&(!n||k[0]&1538)&&u.p(g,n?k:[-1,-1]),g[0]?_?(_.p(g,k),k[0]&1&&L(_,1)):(_=Fe(g),_.c(),L(_,1),_.m(r,null)):_&&(oe(),P(_,1,1,()=>{_=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=`<style>
    #${w} .bx--overflow-menu-options.bx--overflow-menu-options:after {
      width: ${z?z+"px":"2rem"};
    }
  </style>`)},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<s.length;c+=1)f=N(f,s[c]);return{c(){e=B("button"),a&&a.c(),this.h()},l(c){e=R(c,"BUTTON",{});var u=D(e);a&&a.l(u),u.forEach(m),this.h()},h(){$(e,f)},m(c,u){V(c,e,u),a&&a.m(e,null),e.autofocus&&e.focus(),l[24](e),t=!0,i||(r=[W(e,"click",l[19]),W(e,"click",l[25]),W(e,"keydown",l[20]),W(e,"keydown",l[26])],i=!0)},p(c,u){n?n.p&&(!t||u&32768)&&ge(n,o,c,c[15],t?pe(o,c[15],u,null):ve(c[15]),null):a&&a.p&&(!t||u&2)&&a.p(c,t?u:-1),$(e,f=fe(s,[u&128&&c[7]]))},i(c){t||(L(a,c),t=!0)},o(c){P(a,c),t=!1},d(c){c&&m(e),a&&a.d(c),l[24](null),i=!1,Re(r)}}}function Jt(l){let e,t,i,r;const o=l[16].default,n=be(o,l,l[15],null),a=n||Zt(l);let s=[l[7]],f={};for(let c=0;c<s.length;c+=1)f=N(f,s[c]);return{c(){e=B("a"),a&&a.c(),this.h()},l(c){e=R(c,"A",{});var u=D(e);a&&a.l(u),u.forEach(m),this.h()},h(){$(e,f)},m(c,u){V(c,e,u),a&&a.m(e,null),l[21](e),t=!0,i||(r=[W(e,"click",l[17]),W(e,"click",l[22]),W(e,"keydown",l[18]),W(e,"keydown",l[23])],i=!0)},p(c,u){n?n.p&&(!t||u&32768)&&ge(n,o,c,c[15],t?pe(o,c[15],u,null):ve(c[15]),null):a&&a.p&&(!t||u&2)&&a.p(c,t?u:-1),$(e,f=fe(s,[u&128&&c[7]]))},i(c){t||(L(a,c),t=!0)},o(c){P(a,c),t=!1},d(c){c&&m(e),a&&a.d(c),l[21](null),i=!1,Re(r)}}}function Kt(l){let e,t;return{c(){e=B("div"),t=S(l[1]),this.h()},l(i){e=R(i,"DIV",{});var r=D(e);t=U(r,l[1]),r.forEach(m),this.h()},h(){h(e,"bx--overflow-menu-options__option-content",!0)},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 Zt(l){let e,t;return{c(){e=B("div"),t=S(l[1]),this.h()},l(i){e=R(i,"DIV",{});var r=D(e);t=U(r,l[1]),r.forEach(m),this.h()},h(){h(e,"bx--overflow-menu-options__option-content",!0)},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 xt(l){let e,t,i,r;const o=[Jt,Qt],n=[];function a(c,u){return c[2]?0:1}t=a(l),i=n[t]=o[t](l);let s=[{role:"none"},{id:l[6]},l[11]],f={};for(let c=0;c<s.length;c+=1)f=N(f,s[c]);return{c(){e=B("li"),i.c(),this.h()},l(c){e=R(c,"LI",{role:!0,id:!0});var u=D(e);i.l(u),u.forEach(m),this.h()},h(){$(e,f),h(e,"bx--overflow-menu-options__option",!0),h(e,"bx--overflow-menu--divider",l[4]),h(e,"bx--overflow-menu-options__option--danger",l[5]),h(e,"bx--overflow-menu-options__option--disabled",l[3])},m(c,u){V(c,e,u),n[t].m(e,null),r=!0},p(c,[u]){let _=t;t=a(c),t===_?n[t].p(c,u):(oe(),P(n[_],1,1,()=>{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<u.length;d+=1)_=N(_,u[d]);return{c(){e=B("div"),t=B("label"),i=S(l[3]),r=J(),o=H("svg"),n=H("title"),a=S(l[3]),c&&c.c(),s=H("circle"),this.h()},l(d){e=R(d,"DIV",{"aria-atomic":!0,"aria-labelledby":!0,"aria-live":!0});var b=D(e);t=R(b,"LABEL",{id:!0});var g=D(t);i=U(g,l[3]),g.forEach(m),r=K(b),o=Y(b,"svg",{viewBox:!0});var k=D(o);n=Y(k,"title",{});var E=D(n);a=U(E,l[3]),E.forEach(m),c&&c.l(k),s=Y(k,"circle",{cx:!0,cy:!0,r:!0}),D(s).forEach(m),k.forEach(m),b.forEach(m),this.h()},h(){p(t,"id",l[4]),h(t,"bx--visually-hidden",!0),p(s,"cx","50%"),p(s,"cy","50%"),p(s,"r",l[5]),h(s,"bx--loading__stroke",!0),p(o,"viewBox","0 0 100 100"),h(o,"bx--loading__svg",!0),$(e,_),h(e,"bx--loading",!0),h(e,"bx--loading--small",l[0]),h(e,"bx--loading--stop",!l[1])},m(d,b){V(d,e,b),I(e,t),I(t,i),I(e,r),I(e,o),I(o,n),I(n,a),c&&c.m(o,null),I(o,s)},p(d,b){b&8&&X(i,d[3]),b&16&&p(t,"id",d[4]),b&8&&X(a,d[3]),d[0]?c?c.p(d,b):(c=Ge(d),c.c(),c.m(o,s)):c&&(c.d(1),c=null),b&32&&p(s,"r",d[5]),$(e,_=fe(u,[{"aria-atomic":"true"},b&16&&{"aria-labelledby":d[4]},b&2&&f!==(f=d[1]?"assertive":"off")&&{"aria-live":f},b&64&&d[6]])),h(e,"bx--loading",!0),h(e,"bx--loading--small",d[0]),h(e,"bx--loading--stop",!d[1])},d(d){d&&m(e),c&&c.d()}}}function il(l){let e,t,i,r,o,n,a,s,f,c,u=l[0]&&He(l),_=[l[6]],d={};for(let b=0;b<_.length;b+=1)d=N(d,_[b]);return{c(){e=B("div"),t=B("div"),i=B("label"),r=S(l[3]),o=J(),n=H("svg"),a=H("title"),s=S(l[3]),u&&u.c(),f=H("circle"),this.h()},l(b){e=R(b,"DIV",{});var g=D(e);t=R(g,"DIV",{"aria-atomic":!0,"aria-labelledby":!0,"aria-live":!0});var k=D(t);i=R(k,"LABEL",{id:!0});var E=D(i);r=U(E,l[3]),E.forEach(m),o=K(k),n=Y(k,"svg",{viewBox:!0});var v=D(n);a=Y(v,"title",{});var O=D(a);s=U(O,l[3]),O.forEach(m),u&&u.l(v),f=Y(v,"circle",{cx:!0,cy:!0,r:!0}),D(f).forEach(m),v.forEach(m),k.forEach(m),g.forEach(m),this.h()},h(){p(i,"id",l[4]),h(i,"bx--visually-hidden",!0),p(f,"cx","50%"),p(f,"cy","50%"),p(f,"r",l[5]),h(f,"bx--loading__stroke",!0),p(n,"viewBox","0 0 100 100"),h(n,"bx--loading__svg",!0),p(t,"aria-atomic","true"),p(t,"aria-labelledby",l[4]),p(t,"aria-live",c=l[1]?"assertive":"off"),h(t,"bx--loading",!0),h(t,"bx--loading--small",l[0]),h(t,"bx--loading--stop",!l[1]),$(e,d),h(e,"bx--loading-overlay",!0),h(e,"bx--loading-overlay--stop",!l[1])},m(b,g){V(b,e,g),I(e,t),I(t,i),I(i,r),I(t,o),I(t,n),I(n,a),I(a,s),u&&u.m(n,null),I(n,f)},p(b,g){g&8&&X(r,b[3]),g&16&&p(i,"id",b[4]),g&8&&X(s,b[3]),b[0]?u?u.p(b,g):(u=He(b),u.c(),u.m(n,f)):u&&(u.d(1),u=null),g&32&&p(f,"r",b[5]),g&16&&p(t,"aria-labelledby",b[4]),g&2&&c!==(c=b[1]?"assertive":"off")&&p(t,"aria-live",c),g&1&&h(t,"bx--loading--small",b[0]),g&2&&h(t,"bx--loading--stop",!b[1]),$(e,d=fe(_,[g&64&&b[6]])),h(e,"bx--loading-overlay",!0),h(e,"bx--loading-overlay--stop",!b[1])},d(b){b&&m(e),u&&u.d()}}}function Ge(l){let e;return{c(){e=H("circle"),this.h()},l(t){e=Y(t,"circle",{cx:!0,cy:!0,r:!0}),D(e).forEach(m),this.h()},h(){p(e,"cx","50%"),p(e,"cy","50%"),p(e,"r",l[5]),h(e,"bx--loading__background",!0)},m(t,i){V(t,e,i)},p(t,i){i&32&&p(e,"r",t[5])},d(t){t&&m(e)}}}function He(l){let e;return{c(){e=H("circle"),this.h()},l(t){e=Y(t,"circle",{cx:!0,cy:!0,r:!0}),D(e).forEach(m),this.h()},h(){p(e,"cx","50%"),p(e,"cy","50%"),p(e,"r",l[5]),h(e,"bx--loading__background",!0)},m(t,i){V(t,e,i)},p(t,i){i&32&&p(e,"r",t[5])},d(t){t&&m(e)}}}function rl(l){let e;function t(o,n){return o[2]?il:ll}let i=t(l),r=i(l);return{c(){r.c(),e=x()},l(o){r.l(o),e=x()},m(o,n){r.m(o,n),V(o,e,n)},p(o,[n]){i===(i=t(o))&&r?r.p(o,n):(r.d(1),r=i(o),r&&(r.c(),r.m(e.parentNode,e)))},i:ee,o:ee,d(o){r.d(o),o&&m(e)}}}function ol(l,e,t){let i;const r=["small","active","withOverlay","description","id"];let o=Z(e,r),{small:n=!1}=e,{active:a=!0}=e,{withOverlay:s=!0}=e,{description:f="Active loading indicator"}=e,{id:c="ccs-"+Math.random().toString(36)}=e;return l.$$set=u=>{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<f.length;u+=1)c=N(c,f[u]);return{c(){e=B("div"),t=B("div"),s&&s.c(),this.h()},l(u){e=R(u,"DIV",{style:!0});var _=D(e);t=R(_,"DIV",{});var d=D(t);s&&s.l(d),d.forEach(m),_.forEach(m),this.h()},h(){h(t,"bx--popover-contents",!0),$(e,c),h(e,"bx--popover",!0),h(e,"bx--popover--caret",l[2]),h(e,"bx--popover--light",l[4]),h(e,"bx--popover--high-contrast",l[5]),h(e,"bx--popover--top",l[3]==="top"),h(e,"bx--popover--top-left",l[3]==="top-left"),h(e,"bx--popover--top-right",l[3]==="top-right"),h(e,"bx--popover--bottom",l[3]==="bottom"),h(e,"bx--popover--bottom-left",l[3]==="bottom-left"),h(e,"bx--popover--bottom-right",l[3]==="bottom-right"),h(e,"bx--popover--left",l[3]==="left"),h(e,"bx--popover--left-bottom",l[3]==="left-bottom"),h(e,"bx--popover--left-top",l[3]==="left-top"),h(e,"bx--popover--right",l[3]==="right"),h(e,"bx--popover--right-bottom",l[3]==="right-bottom"),h(e,"bx--popover--right-top",l[3]==="right-top"),h(e,"bx--popover--open",l[0]),h(e,"bx--popover--relative",l[6])},m(u,_){V(u,e,_),I(e,t),s&&s.m(t,null),l[13](e),r=!0,o||(n=W(window,"click",l[12]),o=!0)},p(u,[_]){s&&s.p&&(!r||_&1024)&&ge(s,a,u,u[10],r?pe(a,u[10],_,null):ve(u[10]),null),$(e,c=fe(f,[_&512&&u[9],(!r||_&576&&i!==(i=u[9].style+"; "+(u[6]&&"position: relative")))&&{style:i}])),h(e,"bx--popover",!0),h(e,"bx--popover--caret",u[2]),h(e,"bx--popover--light",u[4]),h(e,"bx--popover--high-contrast",u[5]),h(e,"bx--popover--top",u[3]==="top"),h(e,"bx--popover--top-left",u[3]==="top-left"),h(e,"bx--popover--top-right",u[3]==="top-right"),h(e,"bx--popover--bottom",u[3]==="bottom"),h(e,"bx--popover--bottom-left",u[3]==="bottom-left"),h(e,"bx--popover--bottom-right",u[3]==="bottom-right"),h(e,"bx--popover--left",u[3]==="left"),h(e,"bx--popover--left-bottom",u[3]==="left-bottom"),h(e,"bx--popover--left-top",u[3]==="left-top"),h(e,"bx--popover--right",u[3]==="right"),h(e,"bx--popover--right-bottom",u[3]==="right-bottom"),h(e,"bx--popover--right-top",u[3]==="right-top"),h(e,"bx--popover--open",u[0]),h(e,"bx--popover--relative",u[6])},i(u){r||(L(s,u),r=!0)},o(u){P(s,u),r=!1},d(u){u&&m(e),s&&s.d(u),l[13](null),o=!1,n()}}}function fl(l,e,t){const i=["open","closeOnOutsideClick","caret","align","light","highContrast","relative"];let r=Z(e,i),{$$slots:o={},$$scope:n}=e,{open:a=!1}=e,{closeOnOutsideClick:s=!1}=e,{caret:f=!1}=e,{align:c="top"}=e,{light:u=!1}=e,{highContrast:_=!1}=e,{relative:d=!1}=e;const b=ot();let g=null;const k=v=>{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<O.length;w+=1)M=N(M,O[w]);return{c(){e=B("div"),t=B("label"),k&&k.c(),i=J(),E&&E.c(),r=J(),o=B("div"),n=B("div"),_=J(),v&&v.c(),this.h()},l(w){e=R(w,"DIV",{});var C=D(e);t=R(C,"LABEL",{for:!0});var A=D(t);k&&k.l(A),i=K(A),E&&E.l(A),A.forEach(m),r=K(C),o=R(C,"DIV",{role:!0,id:!0,"aria-busy":!0,"aria-valuemin":!0,"aria-valuemax":!0,"aria-valuenow":!0,"aria-describedby":!0});var se=D(o);n=R(se,"DIV",{}),D(n).forEach(m),se.forEach(m),_=K(C),v&&v.l(C),C.forEach(m),this.h()},h(){p(t,"for",l[7]),h(t,"bx--progress-bar__label",!0),h(t,"bx--visually-hidden",l[5]),h(n,"bx--progress-bar__bar",!0),Ee(n,"transform",l[2]==="active"&&`scaleX(${l[8]/l[0]})`),p(o,"role","progressbar"),p(o,"id",l[7]),p(o,"aria-busy",a=l[2]==="active"),p(o,"aria-valuemin",s=l[9]?void 0:0),p(o,"aria-valuemax",f=l[9]?void 0:l[0]),p(o,"aria-valuenow",c=l[9]?void 0:l[8]),p(o,"aria-describedby",u=l[6]?l[11]:null),h(o,"bx--progress-bar__track",!0),$(e,M),h(e,"bx--progress-bar",!0),h(e,"bx--progress-bar--indeterminate",l[9]),h(e,"bx--progress-bar--big",l[3]==="md"),h(e,"bx--progress-bar--small",l[3]==="sm"),h(e,"bx--progress-bar--inline",l[1]==="inline"),h(e,"bx--progress-bar--indented",l[1]==="indented"),h(e,"bx--progress-bar--error",l[2]==="error"),h(e,"bx--progress-bar--finished",l[2]==="finished")},m(w,C){V(w,e,C),I(e,t),k&&k.m(t,null),I(t,i),E&&E.m(t,null),I(e,r),I(e,o),I(o,n),I(e,_),v&&v.m(e,null),d=!0},p(w,[C]){g?g.p&&(!d||C&16384)&&ge(g,b,w,w[14],d?pe(b,w[14],C,dl):ve(w[14]),Ye):k&&k.p&&(!d||C&16)&&k.p(w,d?C:-1),w[2]==="error"||w[2]==="finished"?E?(E.p(w,C),C&4&&L(E,1)):(E=We(w),E.c(),L(E,1),E.m(t,null)):E&&(oe(),P(E,1,1,()=>{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<r.length;n+=1)o=N(o,r[n]);return{c(){e=H("svg"),i&&i.c(),t=H("path"),this.h()},l(n){e=Y(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=D(e);i&&i.l(a),t=Y(a,"path",{d:!0}),D(t).forEach(m),a.forEach(m),this.h()},h(){p(t,"d","M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"),De(e,o)},m(n,a){V(n,e,a),i&&i.m(e,null),I(e,t)},p(n,[a]){n[1]?i?i.p(n,a):(i=Qe(n),i.c(),i.m(e,t)):i&&(i.d(1),i=null),De(e,o=fe(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},a&1&&{width:n[0]},a&1&&{height:n[0]},a&4&&n[2],a&8&&n[3]]))},i:ee,o:ee,d(n){n&&m(e),i&&i.d()}}}function kl(l,e,t){let i,r;const o=["size","title"];let n=Z(e,o),{size:a=16}=e,{title:s=void 0}=e;return l.$$set=f=>{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<r.length;f+=1)s=N(s,r[f]);return{props:s}}return o&&(e=Oe(o,n())),{c(){e&&te(e.$$.fragment),t=x()},l(a){e&&he(e.$$.fragment,a),t=x()},m(a,s){e&&le(e,a,s),V(a,t,s),i=!0},p(a,s){const f=s&16?fe(r,[Et(a[4])]):{};if(s&8&&o!==(o=a[3])){if(e){oe();const c=e;P(c.$$.fragment,1,0,()=>{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<o.length;a+=1){let s=Ke(l,o,a),f=n(s);i.set(f,t[a]=$e(f,s))}return{c(){e=B("div");for(let a=0;a<t.length;a+=1)t[a].c();this.h()},l(a){e=R(a,"DIV",{class:!0});var s=D(e);for(let f=0;f<t.length;f+=1)t[f].l(s);s.forEach(m),this.h()},h(){p(e,"class","flex flex-col")},m(a,s){V(a,e,s);for(let f=0;f<t.length;f+=1)t[f]&&t[f].m(e,null);r=!0},p(a,s){s&129&&(o=a[0],oe(),t=It(t,s,n,1,a,o,i,e,Dt,$e,null,Ke),ne())},i(a){if(!r){for(let s=0;s<o.length;s+=1)L(t[s]);r=!0}},o(a){for(let s=0;s<t.length;s+=1)P(t[s]);r=!1},d(a){a&&m(e);for(let s=0;s<t.length;s+=1)t[s].d()}}}function Al(l){let e,t,i=l[2]&&Ze(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[2]?i?(i.p(r,o),o&4&&L(i,1)):(i=Ze(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)}}}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};