nsthorat commited on
Commit
53747e4
1 Parent(s): d8bf2ab
Files changed (36) hide show
  1. data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl +0 -0
  2. data/.cache/lilac/concept/lilac/non-english/gte-small.pkl +0 -0
  3. data/.cache/lilac/concept/lilac/source-code/gte-small.pkl +0 -0
  4. lilac/env.py +3 -2
  5. lilac/web/_app/immutable/chunks/ChevronUp.efe9cbe8.js +6 -0
  6. lilac/web/_app/immutable/chunks/ComboBox.09dac6a6.js +1 -0
  7. lilac/web/_app/immutable/chunks/Commands.543935b9.js +0 -0
  8. lilac/web/_app/immutable/chunks/ConceptView.a39bdbf2.js +1 -0
  9. lilac/web/_app/immutable/chunks/Page.3051bdc4.js +5 -0
  10. lilac/web/_app/immutable/chunks/RowItemMetadata.56f7680d.js +1 -0
  11. lilac/web/_app/immutable/chunks/StringSpanHighlight.0900fe94.js +3 -0
  12. lilac/web/_app/immutable/chunks/ToastNotification.b080933f.js +1 -0
  13. lilac/web/_app/immutable/chunks/navigation.52bd9048.js +1 -0
  14. lilac/web/_app/immutable/chunks/notificationsStore.46809e81.js +2 -0
  15. lilac/web/_app/immutable/chunks/singletons.72823763.js +1 -0
  16. lilac/web/_app/immutable/chunks/stores.2a862464.js +1 -0
  17. lilac/web/_app/immutable/chunks/utils.2fa1092a.js +1 -0
  18. lilac/web/_app/immutable/entry/app.7c394acf.js +1 -0
  19. lilac/web/_app/immutable/entry/start.222476e8.js +3 -0
  20. lilac/web/_app/immutable/nodes/0.63438c74.js +43 -0
  21. lilac/web/_app/immutable/nodes/1.347feca2.js +1 -0
  22. lilac/web/_app/immutable/nodes/2.f84a7216.js +1 -0
  23. lilac/web/_app/immutable/nodes/3.f518ce2a.js +1 -0
  24. lilac/web/_app/immutable/nodes/4.ded2f795.js +0 -0
  25. lilac/web/_app/immutable/nodes/5.de5aac14.js +1 -0
  26. lilac/web/_app/immutable/nodes/6.8e128871.js +1 -0
  27. lilac/web/_app/immutable/nodes/7.587ad43b.js +3 -0
  28. lilac/web/_app/immutable/nodes/8.7f297acf.js +1 -0
  29. lilac/web/_app/version.json +1 -1
  30. lilac/web/concepts.html +6 -6
  31. lilac/web/datasets.html +6 -6
  32. lilac/web/datasets/loading.html +6 -6
  33. lilac/web/datasets/new.html +6 -6
  34. lilac/web/index.html +6 -6
  35. lilac/web/settings.html +6 -6
  36. lilac/web/signals.html +6 -6
data/.cache/lilac/concept/lilac/negative-sentiment/gte-small.pkl DELETED
Binary file (202 kB)
 
data/.cache/lilac/concept/lilac/non-english/gte-small.pkl DELETED
Binary file (331 kB)
 
data/.cache/lilac/concept/lilac/source-code/gte-small.pkl DELETED
Binary file (126 kB)
 
lilac/env.py CHANGED
@@ -31,7 +31,8 @@ def _init_env() -> None:
31
  load_dotenv('.env.demo')
32
  load_dotenv('.env')
33
 
34
- if bool(os.environ.get('LILAC_AUTH_ENABLED', None)):
 
35
  if not os.environ.get('GOOGLE_CLIENT_ID', None) or not os.environ.get(
36
  'GOOGLE_CLIENT_SECRET', None):
37
  raise ValueError(
@@ -39,7 +40,7 @@ def _init_env() -> None:
39
  SECRET_KEY = os.environ.get('LILAC_OAUTH_SECRET_KEY', None)
40
  if not SECRET_KEY:
41
  raise ValueError('Missing `LILAC_OAUTH_SECRET_KEY` when `LILAC_AUTH_ENABLED=true`')
42
- if os.environ.get('LILAC_AUTH_ENABLED', None):
43
  if not os.environ.get('GOOGLE_CLIENT_ID', None) or not os.environ.get(
44
  'GOOGLE_CLIENT_SECRET', None):
45
  raise ValueError(
 
31
  load_dotenv('.env.demo')
32
  load_dotenv('.env')
33
 
34
+ auth_enabled = os.environ.get('LILAC_AUTH_ENABLED', False) == 'true'
35
+ if auth_enabled:
36
  if not os.environ.get('GOOGLE_CLIENT_ID', None) or not os.environ.get(
37
  'GOOGLE_CLIENT_SECRET', None):
38
  raise ValueError(
 
40
  SECRET_KEY = os.environ.get('LILAC_OAUTH_SECRET_KEY', None)
41
  if not SECRET_KEY:
42
  raise ValueError('Missing `LILAC_OAUTH_SECRET_KEY` when `LILAC_AUTH_ENABLED=true`')
43
+ if auth_enabled:
44
  if not os.environ.get('GOOGLE_CLIENT_ID', None) or not os.environ.get(
45
  'GOOGLE_CLIENT_SECRET', None):
46
  raise ValueError(
lilac/web/_app/immutable/chunks/ChevronUp.efe9cbe8.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import{S as Me,i as ze,s as De,D as Be,E as U,k as N,a as j,l as V,m as T,c as G,h as m,n as b,G as g,F as Te,b as O,a0 as L,H as P,g as v,v as le,d as z,f as te,I as ye,J as Ce,K as Ee,L as Oe,M as sl,N as ie,C as fl,O as ul,j as dl,Q as ne,a8 as cl,y as ue,z as de,A as ce,B as me,q as w,r as p,u as x,R as fe,w as ge,e as Le,a4 as ml,Z as ae,_ as oe,$ as ke,a1 as ve}from"./index.b333a928.js";import{aB as bl,aC as je,B as Se}from"./Commands.543935b9.js";import{w as hl}from"./index.2b0dd2f8.js";function Ae(i,e,l){const t=i.slice();return t[55]=e[l],t}const _l=i=>({}),Fe=i=>({}),gl=i=>({}),He=i=>({});function Pe(i){let e,l,t,a,f;return l=new je({props:{size:20,class:"bx--modal-close__icon","aria-hidden":"true"}}),{c(){e=N("button"),ue(l.$$.fragment),this.h()},l(n){e=V(n,"BUTTON",{type:!0,"aria-label":!0});var o=T(e);de(l.$$.fragment,o),o.forEach(m),this.h()},h(){b(e,"type","button"),b(e,"aria-label",i[8]),g(e,"bx--modal-close",!0)},m(n,o){O(n,e,o),ce(l,e,null),i[37](e),t=!0,a||(f=P(e,"click",i[38]),a=!0)},p(n,o){(!t||o[0]&256)&&b(e,"aria-label",n[8])},i(n){t||(v(l.$$.fragment,n),t=!0)},o(n){z(l.$$.fragment,n),t=!1},d(n){n&&m(e),me(l),i[37](null),a=!1,f()}}}function Re(i){let e,l;const t=i[31].label,a=Be(t,i,i[50],He),f=a||kl(i);return{c(){e=N("h2"),f&&f.c(),this.h()},l(n){e=V(n,"H2",{id:!0});var o=T(e);f&&f.l(o),o.forEach(m),this.h()},h(){b(e,"id",i[25]),g(e,"bx--modal-header__label",!0)},m(n,o){O(n,e,o),f&&f.m(e,null),l=!0},p(n,o){a?a.p&&(!l||o[1]&524288)&&ye(a,t,n,n[50],l?Ee(t,n[50],o,gl):Ce(n[50]),He):f&&f.p&&(!l||o[0]&128)&&f.p(n,l?o:[-1,-1]),(!l||o[0]&33554432)&&b(e,"id",n[25])},i(n){l||(v(f,n),l=!0)},o(n){z(f,n),l=!1},d(n){n&&m(e),f&&f.d(n)}}}function kl(i){let e;return{c(){e=w(i[7])},l(l){e=p(l,i[7])},m(l,t){O(l,e,t)},p(l,t){t[0]&128&&x(e,l[7])},d(l){l&&m(e)}}}function vl(i){let e;return{c(){e=w(i[6])},l(l){e=p(l,i[6])},m(l,t){O(l,e,t)},p(l,t){t[0]&64&&x(e,l[6])},d(l){l&&m(e)}}}function Ne(i){let e,l,t,a,f;return l=new je({props:{size:20,class:"bx--modal-close__icon","aria-hidden":"true"}}),{c(){e=N("button"),ue(l.$$.fragment),this.h()},l(n){e=V(n,"BUTTON",{type:!0,"aria-label":!0});var o=T(e);de(l.$$.fragment,o),o.forEach(m),this.h()},h(){b(e,"type","button"),b(e,"aria-label",i[8]),g(e,"bx--modal-close",!0)},m(n,o){O(n,e,o),ce(l,e,null),i[39](e),t=!0,a||(f=P(e,"click",i[40]),a=!0)},p(n,o){(!t||o[0]&256)&&b(e,"aria-label",n[8])},i(n){t||(v(l.$$.fragment,n),t=!0)},o(n){z(l.$$.fragment,n),t=!1},d(n){n&&m(e),me(l),i[39](null),a=!1,f()}}}function Ve(i){let e;return{c(){e=N("div"),this.h()},l(l){e=V(l,"DIV",{}),T(e).forEach(m),this.h()},h(){g(e,"bx--modal-content--overflow-indicator",!0)},m(l,t){O(l,e,t)},d(l){l&&m(e)}}}function qe(i){let e,l,t,a,f,n;const o=[yl,Bl],u=[];function d(h,k){return h[16].length>0?0:h[15]?1:-1}return~(l=d(i))&&(t=u[l]=o[l](i)),f=new Se({props:{kind:i[3]?"danger":"primary",disabled:i[12],icon:i[13],$$slots:{default:[Ml]},$$scope:{ctx:i}}}),f.$on("click",i[43]),{c(){e=N("div"),t&&t.c(),a=j(),ue(f.$$.fragment),this.h()},l(h){e=V(h,"DIV",{});var k=T(e);t&&t.l(k),a=G(k),de(f.$$.fragment,k),k.forEach(m),this.h()},h(){g(e,"bx--modal-footer",!0),g(e,"bx--modal-footer--three-button",i[16].length===2)},m(h,k){O(h,e,k),~l&&u[l].m(e,null),L(e,a),ce(f,e,null),n=!0},p(h,k){let H=l;l=d(h),l===H?~l&&u[l].p(h,k):(t&&(le(),z(u[H],1,1,()=>{u[H]=null}),te()),~l?(t=u[l],t?t.p(h,k):(t=u[l]=o[l](h),t.c()),v(t,1),t.m(e,a)):t=null);const C={};k[0]&8&&(C.kind=h[3]?"danger":"primary"),k[0]&4096&&(C.disabled=h[12]),k[0]&8192&&(C.icon=h[13]),k[0]&2048|k[1]&524288&&(C.$$scope={dirty:k,ctx:h}),f.$set(C),(!n||k[0]&65536)&&g(e,"bx--modal-footer--three-button",h[16].length===2)},i(h){n||(v(t),v(f.$$.fragment,h),n=!0)},o(h){z(t),z(f.$$.fragment,h),n=!1},d(h){h&&m(e),~l&&u[l].d(),me(f)}}}function Bl(i){let e,l;return e=new Se({props:{kind:"secondary",$$slots:{default:[Cl]},$$scope:{ctx:i}}}),e.$on("click",i[42]),{c(){ue(e.$$.fragment)},l(t){de(e.$$.fragment,t)},m(t,a){ce(e,t,a),l=!0},p(t,a){const f={};a[0]&32768|a[1]&524288&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){z(e.$$.fragment,t),l=!1},d(t){me(e,t)}}}function yl(i){let e,l,t=i[16],a=[];for(let n=0;n<t.length;n+=1)a[n]=Ue(Ae(i,t,n));const f=n=>z(a[n],1,1,()=>{a[n]=null});return{c(){for(let n=0;n<a.length;n+=1)a[n].c();e=Le()},l(n){for(let o=0;o<a.length;o+=1)a[o].l(n);e=Le()},m(n,o){for(let u=0;u<a.length;u+=1)a[u]&&a[u].m(n,o);O(n,e,o),l=!0},p(n,o){if(o[0]&67174400){t=n[16];let u;for(u=0;u<t.length;u+=1){const d=Ae(n,t,u);a[u]?(a[u].p(d,o),v(a[u],1)):(a[u]=Ue(d),a[u].c(),v(a[u],1),a[u].m(e.parentNode,e))}for(le(),u=t.length;u<a.length;u+=1)f(u);te()}},i(n){if(!l){for(let o=0;o<t.length;o+=1)v(a[o]);l=!0}},o(n){a=a.filter(Boolean);for(let o=0;o<a.length;o+=1)z(a[o]);l=!1},d(n){ml(a,n),n&&m(e)}}}function Cl(i){let e;return{c(){e=w(i[15])},l(l){e=p(l,i[15])},m(l,t){O(l,e,t)},p(l,t){t[0]&32768&&x(e,l[15])},d(l){l&&m(e)}}}function El(i){let e=i[55].text+"",l,t;return{c(){l=w(e),t=j()},l(a){l=p(a,e),t=G(a)},m(a,f){O(a,l,f),O(a,t,f)},p(a,f){f[0]&65536&&e!==(e=a[55].text+"")&&x(l,e)},d(a){a&&m(l),a&&m(t)}}}function Ue(i){let e,l;function t(){return i[41](i[55])}return e=new Se({props:{kind:"secondary",$$slots:{default:[El]},$$scope:{ctx:i}}}),e.$on("click",t),{c(){ue(e.$$.fragment)},l(a){de(e.$$.fragment,a)},m(a,f){ce(e,a,f),l=!0},p(a,f){i=a;const n={};f[0]&65536|f[1]&524288&&(n.$$scope={dirty:f,ctx:i}),e.$set(n)},i(a){l||(v(e.$$.fragment,a),l=!0)},o(a){z(e.$$.fragment,a),l=!1},d(a){me(e,a)}}}function Ml(i){let e;return{c(){e=w(i[11])},l(l){e=p(l,i[11])},m(l,t){O(l,e,t)},p(l,t){t[0]&2048&&x(e,l[11])},d(l){l&&m(e)}}}function zl(i){let e,l,t,a,f,n,o,u,d,h,k,H,C,$,J,Q,Y,_,Z,re,E=i[5]&&Pe(i),M=i[7]&&Re(i);const ee=i[31].heading,K=Be(ee,i,i[50],Fe),S=K||vl(i);let B=!i[5]&&Ne(i);const W=i[31].default,I=Be(W,i,i[50],null);let D=i[10]&&Ve(),y=!i[5]&&qe(i),q=[{role:"presentation"},{id:i[18]},i[28]],R={};for(let s=0;s<q.length;s+=1)R=U(R,q[s]);return{c(){e=N("div"),l=N("div"),t=N("div"),E&&E.c(),a=j(),M&&M.c(),f=j(),n=N("h3"),S&&S.c(),o=j(),B&&B.c(),u=j(),d=N("div"),I&&I.c(),$=j(),D&&D.c(),J=j(),y&&y.c(),this.h()},l(s){e=V(s,"DIV",{role:!0,id:!0});var c=T(e);l=V(c,"DIV",{tabindex:!0,role:!0,"aria-describedby":!0,"aria-modal":!0,"aria-label":!0});var A=T(l);t=V(A,"DIV",{});var F=T(t);E&&E.l(F),a=G(F),M&&M.l(F),f=G(F),n=V(F,"H3",{id:!0});var X=T(n);S&&S.l(X),X.forEach(m),o=G(F),B&&B.l(F),F.forEach(m),u=G(A),d=V(A,"DIV",{id:!0,tabindex:!0,role:!0,"aria-label":!0,"aria-labelledby":!0});var be=T(d);I&&I.l(be),be.forEach(m),$=G(A),D&&D.l(A),J=G(A),y&&y.l(A),A.forEach(m),c.forEach(m),this.h()},h(){b(n,"id",i[24]),g(n,"bx--modal-header__heading",!0),g(t,"bx--modal-header",!0),b(d,"id",i[23]),b(d,"tabindex",h=i[10]?"0":void 0),b(d,"role",k=i[10]?"region":void 0),b(d,"aria-label",H=i[10]?i[22]:void 0),b(d,"aria-labelledby",C=i[7]?i[25]:i[24]),g(d,"bx--modal-content",!0),g(d,"bx--modal-content--with-form",i[9]),g(d,"bx--modal-scroll-content",i[10]),b(l,"tabindex","-1"),b(l,"role",Q=i[4]?i[5]?"alert":"alertdialog":"dialog"),b(l,"aria-describedby",Y=i[4]&&!i[5]?i[23]:void 0),b(l,"aria-modal","true"),b(l,"aria-label",i[22]),g(l,"bx--modal-container",!0),g(l,"bx--modal-container--xs",i[2]==="xs"),g(l,"bx--modal-container--sm",i[2]==="sm"),g(l,"bx--modal-container--lg",i[2]==="lg"),Te(e,R),g(e,"bx--modal",!0),g(e,"bx--modal-tall",!i[5]),g(e,"is-visible",i[0]),g(e,"bx--modal--danger",i[3])},m(s,c){O(s,e,c),L(e,l),L(l,t),E&&E.m(t,null),L(t,a),M&&M.m(t,null),L(t,f),L(t,n),S&&S.m(n,null),L(t,o),B&&B.m(t,null),L(l,u),L(l,d),I&&I.m(d,null),L(l,$),D&&D.m(l,null),L(l,J),y&&y.m(l,null),i[44](l),i[46](e),_=!0,Z||(re=[P(l,"click",i[45]),P(e,"keydown",i[32]),P(e,"keydown",i[47]),P(e,"click",i[33]),P(e,"click",i[48]),P(e,"mouseover",i[34]),P(e,"mouseenter",i[35]),P(e,"mouseleave",i[36]),P(e,"transitionend",i[49])],Z=!0)},p(s,c){s[5]?E?(E.p(s,c),c[0]&32&&v(E,1)):(E=Pe(s),E.c(),v(E,1),E.m(t,a)):E&&(le(),z(E,1,1,()=>{E=null}),te()),s[7]?M?(M.p(s,c),c[0]&128&&v(M,1)):(M=Re(s),M.c(),v(M,1),M.m(t,f)):M&&(le(),z(M,1,1,()=>{M=null}),te()),K?K.p&&(!_||c[1]&524288)&&ye(K,ee,s,s[50],_?Ee(ee,s[50],c,_l):Ce(s[50]),Fe):S&&S.p&&(!_||c[0]&64)&&S.p(s,_?c:[-1,-1]),(!_||c[0]&16777216)&&b(n,"id",s[24]),s[5]?B&&(le(),z(B,1,1,()=>{B=null}),te()):B?(B.p(s,c),c[0]&32&&v(B,1)):(B=Ne(s),B.c(),v(B,1),B.m(t,null)),I&&I.p&&(!_||c[1]&524288)&&ye(I,W,s,s[50],_?Ee(W,s[50],c,null):Ce(s[50]),null),(!_||c[0]&8388608)&&b(d,"id",s[23]),(!_||c[0]&1024&&h!==(h=s[10]?"0":void 0))&&b(d,"tabindex",h),(!_||c[0]&1024&&k!==(k=s[10]?"region":void 0))&&b(d,"role",k),(!_||c[0]&4195328&&H!==(H=s[10]?s[22]:void 0))&&b(d,"aria-label",H),(!_||c[0]&50331776&&C!==(C=s[7]?s[25]:s[24]))&&b(d,"aria-labelledby",C),(!_||c[0]&512)&&g(d,"bx--modal-content--with-form",s[9]),(!_||c[0]&1024)&&g(d,"bx--modal-scroll-content",s[10]),s[10]?D||(D=Ve(),D.c(),D.m(l,J)):D&&(D.d(1),D=null),s[5]?y&&(le(),z(y,1,1,()=>{y=null}),te()):y?(y.p(s,c),c[0]&32&&v(y,1)):(y=qe(s),y.c(),v(y,1),y.m(l,null)),(!_||c[0]&48&&Q!==(Q=s[4]?s[5]?"alert":"alertdialog":"dialog"))&&b(l,"role",Q),(!_||c[0]&8388656&&Y!==(Y=s[4]&&!s[5]?s[23]:void 0))&&b(l,"aria-describedby",Y),(!_||c[0]&4194304)&&b(l,"aria-label",s[22]),(!_||c[0]&4)&&g(l,"bx--modal-container--xs",s[2]==="xs"),(!_||c[0]&4)&&g(l,"bx--modal-container--sm",s[2]==="sm"),(!_||c[0]&4)&&g(l,"bx--modal-container--lg",s[2]==="lg"),Te(e,R=Oe(q,[{role:"presentation"},(!_||c[0]&262144)&&{id:s[18]},c[0]&268435456&&s[28]])),g(e,"bx--modal",!0),g(e,"bx--modal-tall",!s[5]),g(e,"is-visible",s[0]),g(e,"bx--modal--danger",s[3])},i(s){_||(v(E),v(M),v(S,s),v(B),v(I,s),v(y),_=!0)},o(s){z(E),z(M),z(S,s),z(B),z(I,s),z(y),_=!1},d(s){s&&m(e),E&&E.d(),M&&M.d(),S&&S.d(s),B&&B.d(),I&&I.d(s),D&&D.d(),y&&y.d(),i[44](null),i[46](null),Z=!1,sl(re)}}}function Dl(i,e,l){let t,a,f,n;const o=["size","open","danger","alert","passiveModal","modalHeading","modalLabel","modalAriaLabel","iconDescription","hasForm","hasScrollingContent","primaryButtonText","primaryButtonDisabled","primaryButtonIcon","shouldSubmitOnEnter","secondaryButtonText","secondaryButtons","selectorPrimaryFocus","preventCloseOnClickOutside","id","ref"];let u=ie(e,o),d,{$$slots:h={},$$scope:k}=e,{size:H=void 0}=e,{open:C=!1}=e,{danger:$=!1}=e,{alert:J=!1}=e,{passiveModal:Q=!1}=e,{modalHeading:Y=void 0}=e,{modalLabel:_=void 0}=e,{modalAriaLabel:Z=void 0}=e,{iconDescription:re="Close the modal"}=e,{hasForm:E=!1}=e,{hasScrollingContent:M=!1}=e,{primaryButtonText:ee=""}=e,{primaryButtonDisabled:K=!1}=e,{primaryButtonIcon:S=void 0}=e,{shouldSubmitOnEnter:B=!0}=e,{secondaryButtonText:W=""}=e,{secondaryButtons:I=[]}=e,{selectorPrimaryFocus:D="[data-modal-primary-focus]"}=e,{preventCloseOnClickOutside:y=!1}=e,{id:q="ccs-"+Math.random().toString(36)}=e,{ref:R=null}=e;const s=fl();let c=null,A=null,F=!1,X=!1;function be(r){((r||A).querySelector(D)||c).focus()}const he=hl(C);ul(i,he,r=>l(52,d=r)),bl(he),dl(()=>{F?C||(F=!1,s("close")):C&&(F=!0,be(),s("open"))});function Ge(r){fe.call(this,i,r)}function Je(r){fe.call(this,i,r)}function Qe(r){fe.call(this,i,r)}function Ze(r){fe.call(this,i,r)}function We(r){fe.call(this,i,r)}function Xe(r){ge[r?"unshift":"push"](()=>{c=r,l(19,c)})}const we=()=>{l(0,C=!1)};function pe(r){ge[r?"unshift":"push"](()=>{c=r,l(19,c)})}const xe=()=>{l(0,C=!1)},$e=r=>{s("click:button--secondary",{text:r.text})},el=()=>{s("click:button--secondary",{text:W})},ll=()=>{s("submit"),s("click:button--primary")};function tl(r){ge[r?"unshift":"push"](()=>{A=r,l(20,A)})}const il=()=>{l(21,X=!0)};function nl(r){ge[r?"unshift":"push"](()=>{R=r,l(1,R)})}const al=r=>{if(C)if(r.key==="Escape")l(0,C=!1);else if(r.key==="Tab"){const Ie=`
2
+ a[href], area[href], input:not([disabled]):not([tabindex='-1']),
3
+ button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),
4
+ textarea:not([disabled]):not([tabindex='-1']),
5
+ iframe, object, embed, *[tabindex]:not([tabindex='-1']):not([disabled]), *[contenteditable=true]
6
+ `,_e=Array.from(R.querySelectorAll(Ie));let se=_e.indexOf(document.activeElement);se===-1&&r.shiftKey&&(se=0),se+=_e.length+(r.shiftKey?-1:1),se%=_e.length,_e[se].focus(),r.preventDefault()}else B&&r.key==="Enter"&&!K&&(s("submit"),s("click:button--primary"))},ol=()=>{!X&&!y&&l(0,C=!1),l(21,X=!1)},rl=r=>{r.propertyName==="transform"&&s("transitionend",{open:C})};return i.$$set=r=>{l(54,e=U(U({},e),ne(r))),l(28,u=ie(e,o)),"size"in r&&l(2,H=r.size),"open"in r&&l(0,C=r.open),"danger"in r&&l(3,$=r.danger),"alert"in r&&l(4,J=r.alert),"passiveModal"in r&&l(5,Q=r.passiveModal),"modalHeading"in r&&l(6,Y=r.modalHeading),"modalLabel"in r&&l(7,_=r.modalLabel),"modalAriaLabel"in r&&l(29,Z=r.modalAriaLabel),"iconDescription"in r&&l(8,re=r.iconDescription),"hasForm"in r&&l(9,E=r.hasForm),"hasScrollingContent"in r&&l(10,M=r.hasScrollingContent),"primaryButtonText"in r&&l(11,ee=r.primaryButtonText),"primaryButtonDisabled"in r&&l(12,K=r.primaryButtonDisabled),"primaryButtonIcon"in r&&l(13,S=r.primaryButtonIcon),"shouldSubmitOnEnter"in r&&l(14,B=r.shouldSubmitOnEnter),"secondaryButtonText"in r&&l(15,W=r.secondaryButtonText),"secondaryButtons"in r&&l(16,I=r.secondaryButtons),"selectorPrimaryFocus"in r&&l(30,D=r.selectorPrimaryFocus),"preventCloseOnClickOutside"in r&&l(17,y=r.preventCloseOnClickOutside),"id"in r&&l(18,q=r.id),"ref"in r&&l(1,R=r.ref),"$$scope"in r&&l(50,k=r.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&1&&cl(he,d=C,d),i.$$.dirty[0]&262144&&l(25,t=`bx--modal-header__label--modal-${q}`),i.$$.dirty[0]&262144&&l(24,a=`bx--modal-header__heading--modal-${q}`),i.$$.dirty[0]&262144&&l(23,f=`bx--modal-body--${q}`),l(22,n=_||e["aria-label"]||Z||Y)},e=ne(e),[C,R,H,$,J,Q,Y,_,re,E,M,ee,K,S,B,W,I,y,q,c,A,X,n,f,a,t,s,he,u,Z,D,h,Ge,Je,Qe,Ze,We,Xe,we,pe,xe,$e,el,ll,tl,il,nl,al,ol,rl,k]}class Ol extends Me{constructor(e){super(),ze(this,e,Dl,zl,De,{size:2,open:0,danger:3,alert:4,passiveModal:5,modalHeading:6,modalLabel:7,modalAriaLabel:29,iconDescription:8,hasForm:9,hasScrollingContent:10,primaryButtonText:11,primaryButtonDisabled:12,primaryButtonIcon:13,shouldSubmitOnEnter:14,secondaryButtonText:15,secondaryButtons:16,selectorPrimaryFocus:30,preventCloseOnClickOutside:17,id:18,ref:1},null,[-1,-1])}}const Pl=Ol;function Ye(i){let e,l;return{c(){e=ae("title"),l=w(i[1])},l(t){e=oe(t,"title",{});var a=T(e);l=p(a,i[1]),a.forEach(m)},m(t,a){O(t,e,a),L(e,l)},p(t,a){a&2&&x(l,t[1])},d(t){t&&m(e)}}}function Sl(i){let e,l,t=i[1]&&Ye(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let n=0;n<a.length;n+=1)f=U(f,a[n]);return{c(){e=ae("svg"),t&&t.c(),l=ae("path"),this.h()},l(n){e=oe(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=T(e);t&&t.l(o),l=oe(o,"path",{d:!0}),T(l).forEach(m),o.forEach(m),this.h()},h(){b(l,"d","M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"),ke(e,f)},m(n,o){O(n,e,o),t&&t.m(e,null),L(e,l)},p(n,[o]){n[1]?t?t.p(n,o):(t=Ye(n),t.c(),t.m(e,l)):t&&(t.d(1),t=null),ke(e,f=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:n[0]},o&1&&{height:n[0]},o&4&&n[2],o&8&&n[3]]))},i:ve,o:ve,d(n){n&&m(e),t&&t.d()}}}function Il(i,e,l){let t,a;const f=["size","title"];let n=ie(e,f),{size:o=16}=e,{title:u=void 0}=e;return i.$$set=d=>{l(5,e=U(U({},e),ne(d))),l(3,n=ie(e,f)),"size"in d&&l(0,o=d.size),"title"in d&&l(1,u=d.title)},i.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||u),l(2,a={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ne(e),[o,u,a,n,t]}class Rl extends Me{constructor(e){super(),ze(this,e,Il,Sl,De,{size:0,title:1})}}function Ke(i){let e,l;return{c(){e=ae("title"),l=w(i[1])},l(t){e=oe(t,"title",{});var a=T(e);l=p(a,i[1]),a.forEach(m)},m(t,a){O(t,e,a),L(e,l)},p(t,a){a&2&&x(l,t[1])},d(t){t&&m(e)}}}function Tl(i){let e,l,t=i[1]&&Ke(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let n=0;n<a.length;n+=1)f=U(f,a[n]);return{c(){e=ae("svg"),t&&t.c(),l=ae("path"),this.h()},l(n){e=oe(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=T(e);t&&t.l(o),l=oe(o,"path",{d:!0}),T(l).forEach(m),o.forEach(m),this.h()},h(){b(l,"d","M16 10L26 20 24.6 21.4 16 12.8 7.4 21.4 6 20z"),ke(e,f)},m(n,o){O(n,e,o),t&&t.m(e,null),L(e,l)},p(n,[o]){n[1]?t?t.p(n,o):(t=Ke(n),t.c(),t.m(e,l)):t&&(t.d(1),t=null),ke(e,f=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:n[0]},o&1&&{height:n[0]},o&4&&n[2],o&8&&n[3]]))},i:ve,o:ve,d(n){n&&m(e),t&&t.d()}}}function Ll(i,e,l){let t,a;const f=["size","title"];let n=ie(e,f),{size:o=16}=e,{title:u=void 0}=e;return i.$$set=d=>{l(5,e=U(U({},e),ne(d))),l(3,n=ie(e,f)),"size"in d&&l(0,o=d.size),"title"in d&&l(1,u=d.title)},i.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||u),l(2,a={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ne(e),[o,u,a,n,t]}class Nl extends Me{constructor(e){super(),ze(this,e,Ll,Tl,De,{size:0,title:1})}}export{Rl as C,Pl as M,Nl as a};
lilac/web/_app/immutable/chunks/ComboBox.09dac6a6.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as p,i as $,s as ee,E as B,Z as Ae,_ as ze,m as N,h as v,n as U,$ as Pe,b as S,a0 as q,L as le,a1 as Ve,N as F,Q as Z,q as ie,r as te,u as ne,D as he,k as V,a as K,e as y,l as R,c as O,F as j,G as I,H as A,al as Se,I as me,J as ce,K as _e,g as W,d as L,M as re,R as M,ae as oe,aj as ye,w as se,y as G,z as H,A as J,B as Q,v as ae,f as fe,C as xe,j as kl,t as Il,am as Re,T as vl,U as Tl,W as El,X as Wl}from"./index.b333a928.js";import{aK as Cl,aC as pe,aL as Sl,aM as Ll}from"./Commands.543935b9.js";function Fe(l){let e,i;return{c(){e=Ae("title"),i=ie(l[1])},l(t){e=ze(t,"title",{});var s=N(e);i=te(s,l[1]),s.forEach(v)},m(t,s){S(t,e,s),q(e,i)},p(t,s){s&2&&ne(i,t[1])},d(t){t&&v(e)}}}function Al(l){let e,i,t=l[1]&&Fe(l),s=[{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 f=0;f<s.length;f+=1)o=B(o,s[f]);return{c(){e=Ae("svg"),t&&t.c(),i=Ae("path"),this.h()},l(f){e=ze(f,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=N(e);t&&t.l(a),i=ze(a,"path",{d:!0}),N(i).forEach(v),a.forEach(v),this.h()},h(){U(i,"d","M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"),Pe(e,o)},m(f,a){S(f,e,a),t&&t.m(e,null),q(e,i)},p(f,[a]){f[1]?t?t.p(f,a):(t=Fe(f),t.c(),t.m(e,i)):t&&(t.d(1),t=null),Pe(e,o=le(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},a&1&&{width:f[0]},a&1&&{height:f[0]},a&4&&f[2],a&8&&f[3]]))},i:Ve,o:Ve,d(f){f&&v(e),t&&t.d()}}}function zl(l,e,i){let t,s;const o=["size","title"];let f=F(e,o),{size:a=16}=e,{title:n=void 0}=e;return l.$$set=r=>{i(5,e=B(B({},e),Z(r))),i(3,f=F(e,o)),"size"in r&&i(0,a=r.size),"title"in r&&i(1,n=r.title)},l.$$.update=()=>{i(4,t=e["aria-label"]||e["aria-labelledby"]||n),i(2,s={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Z(e),[a,n,s,f,t]}class Bl extends p{constructor(e){super(),$(this,e,zl,Al,ee,{size:0,title:1})}}const Dl=Bl;function Ue(l){let e,i;return{c(){e=V("div"),i=ie(l[6]),this.h()},l(t){e=R(t,"DIV",{});var s=N(e);i=te(s,l[6]),s.forEach(v),this.h()},h(){I(e,"bx--form-requirement",!0)},m(t,s){S(t,e,s),q(e,i)},p(t,s){s&64&&ne(i,t[6])},d(t){t&&v(e)}}}function qe(l){let e,i;return{c(){e=V("div"),i=ie(l[8]),this.h()},l(t){e=R(t,"DIV",{});var s=N(e);i=te(s,l[8]),s.forEach(v),this.h()},h(){I(e,"bx--form-requirement",!0)},m(t,s){S(t,e,s),q(e,i)},p(t,s){s&256&&ne(i,t[8])},d(t){t&&v(e)}}}function Ml(l){let e,i,t,s,o,f,a,n;const r=l[11].default,d=he(r,l,l[10],null);let u=[{role:"listbox"},{tabindex:"-1"},{"data-invalid":i=l[5]||void 0},l[9]],b={};for(let m=0;m<u.length;m+=1)b=B(b,u[m]);let g=l[5]&&Ue(l),_=!l[5]&&l[7]&&qe(l);return{c(){e=V("div"),d&&d.c(),t=K(),g&&g.c(),s=K(),_&&_.c(),o=y(),this.h()},l(m){e=R(m,"DIV",{role:!0,tabindex:!0,"data-invalid":!0});var T=N(e);d&&d.l(T),T.forEach(v),t=O(m),g&&g.l(m),s=O(m),_&&_.l(m),o=y(),this.h()},h(){j(e,b),I(e,"bx--list-box",!0),I(e,"bx--list-box--sm",l[0]==="sm"),I(e,"bx--list-box--xl",l[0]==="xl"),I(e,"bx--list-box--inline",l[1]==="inline"),I(e,"bx--list-box--disabled",l[4]),I(e,"bx--list-box--expanded",l[2]),I(e,"bx--list-box--light",l[3]),I(e,"bx--list-box--warning",!l[5]&&l[7])},m(m,T){S(m,e,T),d&&d.m(e,null),S(m,t,T),g&&g.m(m,T),S(m,s,T),_&&_.m(m,T),S(m,o,T),f=!0,a||(n=[A(e,"keydown",l[12]),A(e,"keydown",Nl),A(e,"click",Se(l[13]))],a=!0)},p(m,[T]){d&&d.p&&(!f||T&1024)&&me(d,r,m,m[10],f?_e(r,m[10],T,null):ce(m[10]),null),j(e,b=le(u,[{role:"listbox"},{tabindex:"-1"},(!f||T&32&&i!==(i=m[5]||void 0))&&{"data-invalid":i},T&512&&m[9]])),I(e,"bx--list-box",!0),I(e,"bx--list-box--sm",m[0]==="sm"),I(e,"bx--list-box--xl",m[0]==="xl"),I(e,"bx--list-box--inline",m[1]==="inline"),I(e,"bx--list-box--disabled",m[4]),I(e,"bx--list-box--expanded",m[2]),I(e,"bx--list-box--light",m[3]),I(e,"bx--list-box--warning",!m[5]&&m[7]),m[5]?g?g.p(m,T):(g=Ue(m),g.c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null),!m[5]&&m[7]?_?_.p(m,T):(_=qe(m),_.c(),_.m(o.parentNode,o)):_&&(_.d(1),_=null)},i(m){f||(W(d,m),f=!0)},o(m){L(d,m),f=!1},d(m){m&&v(e),d&&d.d(m),m&&v(t),g&&g.d(m),m&&v(s),_&&_.d(m),m&&v(o),a=!1,re(n)}}}const Nl=l=>{l.key==="Escape"&&l.stopPropagation()};function Pl(l,e,i){const t=["size","type","open","light","disabled","invalid","invalidText","warn","warnText"];let s=F(e,t),{$$slots:o={},$$scope:f}=e,{size:a=void 0}=e,{type:n="default"}=e,{open:r=!1}=e,{light:d=!1}=e,{disabled:u=!1}=e,{invalid:b=!1}=e,{invalidText:g=""}=e,{warn:_=!1}=e,{warnText:m=""}=e;function T(k){M.call(this,l,k)}function c(k){M.call(this,l,k)}return l.$$set=k=>{e=B(B({},e),Z(k)),i(9,s=F(e,t)),"size"in k&&i(0,a=k.size),"type"in k&&i(1,n=k.type),"open"in k&&i(2,r=k.open),"light"in k&&i(3,d=k.light),"disabled"in k&&i(4,u=k.disabled),"invalid"in k&&i(5,b=k.invalid),"invalidText"in k&&i(6,g=k.invalidText),"warn"in k&&i(7,_=k.warn),"warnText"in k&&i(8,m=k.warnText),"$$scope"in k&&i(10,f=k.$$scope)},[a,n,r,d,u,b,g,_,m,s,f,o,T,c]}class Vl extends p{constructor(e){super(),$(this,e,Pl,Ml,ee,{size:0,type:1,open:2,light:3,disabled:4,invalid:5,invalidText:6,warn:7,warnText:8})}}const Rl=Vl;function Fl(l){let e,i,t,s,o,f,a,n;const r=l[11].default,d=he(r,l,l[10],null);let u=[{role:l[2]},{"aria-expanded":l[6]},{"aria-owns":i=l[6]&&l[5]||void 0},{"aria-controls":t=l[6]&&l[5]||void 0},{"aria-disabled":l[1]},{"aria-label":s=l[6]?l[4]("close"):l[4]("open")},{tabindex:o=l[1]?"-1":l[3]},l[7]],b={};for(let g=0;g<u.length;g+=1)b=B(b,u[g]);return{c(){e=V("div"),d&&d.c(),this.h()},l(g){e=R(g,"DIV",{role:!0,"aria-expanded":!0,"aria-owns":!0,"aria-controls":!0,"aria-disabled":!0,"aria-label":!0,tabindex:!0});var _=N(e);d&&d.l(_),_.forEach(v),this.h()},h(){j(e,b),I(e,"bx--list-box__field",!0)},m(g,_){S(g,e,_),d&&d.m(e,null),l[19](e),f=!0,a||(n=[A(e,"click",l[12]),A(e,"mouseover",l[13]),A(e,"mouseenter",l[14]),A(e,"mouseleave",l[15]),A(e,"keydown",oe(l[16])),A(e,"focus",l[17]),A(e,"blur",l[18])],a=!0)},p(g,[_]){d&&d.p&&(!f||_&1024)&&me(d,r,g,g[10],f?_e(r,g[10],_,null):ce(g[10]),null),j(e,b=le(u,[(!f||_&4)&&{role:g[2]},(!f||_&64)&&{"aria-expanded":g[6]},(!f||_&96&&i!==(i=g[6]&&g[5]||void 0))&&{"aria-owns":i},(!f||_&96&&t!==(t=g[6]&&g[5]||void 0))&&{"aria-controls":t},(!f||_&2)&&{"aria-disabled":g[1]},(!f||_&80&&s!==(s=g[6]?g[4]("close"):g[4]("open")))&&{"aria-label":s},(!f||_&10&&o!==(o=g[1]?"-1":g[3]))&&{tabindex:o},_&128&&g[7]])),I(e,"bx--list-box__field",!0)},i(g){f||(W(d,g),f=!0)},o(g){L(d,g),f=!1},d(g){g&&v(e),d&&d.d(g),l[19](null),a=!1,re(n)}}}function Ul(l,e,i){let t,s;const o=["disabled","role","tabindex","translationIds","translateWithId","id","ref"];let f=F(e,o),{$$slots:a={},$$scope:n}=e,{disabled:r=!1}=e,{role:d="combobox"}=e,{tabindex:u="-1"}=e;const b={close:"close",open:"open"};let{translateWithId:g=E=>T[E]}=e,{id:_="ccs-"+Math.random().toString(36)}=e,{ref:m=null}=e;const T={[b.close]:"Close menu",[b.open]:"Open menu"},c=ye("MultiSelect");function k(E){M.call(this,l,E)}function w(E){M.call(this,l,E)}function ue(E){M.call(this,l,E)}function C(E){M.call(this,l,E)}function ge(E){M.call(this,l,E)}function ke(E){M.call(this,l,E)}function Ie(E){M.call(this,l,E)}function ve(E){se[E?"unshift":"push"](()=>{m=E,i(0,m)})}return l.$$set=E=>{i(22,e=B(B({},e),Z(E))),i(7,f=F(e,o)),"disabled"in E&&i(1,r=E.disabled),"role"in E&&i(2,d=E.role),"tabindex"in E&&i(3,u=E.tabindex),"translateWithId"in E&&i(4,g=E.translateWithId),"id"in E&&i(9,_=E.id),"ref"in E&&i(0,m=E.ref),"$$scope"in E&&i(10,n=E.$$scope)},l.$$.update=()=>{l.$$.dirty&1&&c&&m&&c.declareRef({key:"field",ref:m}),i(6,t=e["aria-expanded"]),l.$$.dirty&512&&i(5,s=`menu-${_}`)},e=Z(e),[m,r,d,u,g,s,t,f,b,_,n,a,k,w,ue,C,ge,ke,Ie,ve]}class ql extends p{constructor(e){super(),$(this,e,Ul,Fl,ee,{disabled:1,role:2,tabindex:3,translationIds:8,translateWithId:4,id:9,ref:0})}get translationIds(){return this.$$.ctx[8]}}const jl=ql;function Kl(l){let e,i,t,s,o;const f=l[4].default,a=he(f,l,l[3],null);let n=[{role:"listbox"},{id:i="menu-"+l[1]},l[2]],r={};for(let d=0;d<n.length;d+=1)r=B(r,n[d]);return{c(){e=V("div"),a&&a.c(),this.h()},l(d){e=R(d,"DIV",{role:!0,id:!0});var u=N(e);a&&a.l(u),u.forEach(v),this.h()},h(){j(e,r),I(e,"bx--list-box__menu",!0)},m(d,u){S(d,e,u),a&&a.m(e,null),l[6](e),t=!0,s||(o=A(e,"scroll",l[5]),s=!0)},p(d,[u]){a&&a.p&&(!t||u&8)&&me(a,f,d,d[3],t?_e(f,d[3],u,null):ce(d[3]),null),j(e,r=le(n,[{role:"listbox"},(!t||u&2&&i!==(i="menu-"+d[1]))&&{id:i},u&4&&d[2]])),I(e,"bx--list-box__menu",!0)},i(d){t||(W(a,d),t=!0)},o(d){L(a,d),t=!1},d(d){d&&v(e),a&&a.d(d),l[6](null),s=!1,o()}}}function Ol(l,e,i){const t=["id","ref"];let s=F(e,t),{$$slots:o={},$$scope:f}=e,{id:a="ccs-"+Math.random().toString(36)}=e,{ref:n=null}=e;function r(u){M.call(this,l,u)}function d(u){se[u?"unshift":"push"](()=>{n=u,i(0,n)})}return l.$$set=u=>{e=B(B({},e),Z(u)),i(2,s=F(e,t)),"id"in u&&i(1,a=u.id),"ref"in u&&i(0,n=u.ref),"$$scope"in u&&i(3,f=u.$$scope)},[n,a,s,f,o,r,d]}class Xl extends p{constructor(e){super(),$(this,e,Ol,Kl,ee,{id:1,ref:0})}}const Yl=Xl;function Gl(l){let e,i,t,s,o;i=new Cl({props:{"aria-label":l[1],title:l[1]}});let f=[l[2]],a={};for(let n=0;n<f.length;n+=1)a=B(a,f[n]);return{c(){e=V("div"),G(i.$$.fragment),this.h()},l(n){e=R(n,"DIV",{});var r=N(e);H(i.$$.fragment,r),r.forEach(v),this.h()},h(){j(e,a),I(e,"bx--list-box__menu-icon",!0),I(e,"bx--list-box__menu-icon--open",l[0])},m(n,r){S(n,e,r),J(i,e,null),t=!0,s||(o=A(e,"click",Se(l[6])),s=!0)},p(n,[r]){const d={};r&2&&(d["aria-label"]=n[1]),r&2&&(d.title=n[1]),i.$set(d),j(e,a=le(f,[r&4&&n[2]])),I(e,"bx--list-box__menu-icon",!0),I(e,"bx--list-box__menu-icon--open",n[0])},i(n){t||(W(i.$$.fragment,n),t=!0)},o(n){L(i.$$.fragment,n),t=!1},d(n){n&&v(e),Q(i),s=!1,o()}}}function Hl(l,e,i){let t,s;const o=["open","translationIds","translateWithId"];let f=F(e,o),{open:a=!1}=e;const n={close:"close",open:"open"};let{translateWithId:r=b=>d[b]}=e;const d={[n.close]:"Close menu",[n.open]:"Open menu"};function u(b){M.call(this,l,b)}return l.$$set=b=>{e=B(B({},e),Z(b)),i(2,f=F(e,o)),"open"in b&&i(0,a=b.open),"translateWithId"in b&&i(4,r=b.translateWithId)},l.$$.update=()=>{l.$$.dirty&1&&i(5,t=a?n.close:n.open),l.$$.dirty&48&&i(1,s=(r==null?void 0:r(t))??d[t])},[a,s,f,n,r,t,u]}class Jl extends p{constructor(e){super(),$(this,e,Hl,Gl,ee,{open:0,translationIds:3,translateWithId:4})}get translationIds(){return this.$$.ctx[3]}}const Ql=Jl;function Zl(l){let e,i,t,s,o,f;const a=l[8].default,n=he(a,l,l[7],null);let r=[{role:"option"},{tabindex:"-1"},{"aria-selected":l[0]},{disabled:t=l[2]?!0:void 0},l[5]],d={};for(let u=0;u<r.length;u+=1)d=B(d,r[u]);return{c(){e=V("div"),i=V("div"),n&&n.c(),this.h()},l(u){e=R(u,"DIV",{role:!0,tabindex:!0,"aria-selected":!0,disabled:!0});var b=N(e);i=R(b,"DIV",{title:!0});var g=N(i);n&&n.l(g),g.forEach(v),b.forEach(v),this.h()},h(){U(i,"title",l[4]),I(i,"bx--list-box__menu-item__option",!0),j(e,d),I(e,"bx--list-box__menu-item",!0),I(e,"bx--list-box__menu-item--active",l[0]),I(e,"bx--list-box__menu-item--highlighted",l[1]||l[0])},m(u,b){S(u,e,b),q(e,i),n&&n.m(i,null),l[12](i),s=!0,o||(f=[A(e,"click",l[9]),A(e,"mouseenter",l[10]),A(e,"mouseleave",l[11])],o=!0)},p(u,[b]){n&&n.p&&(!s||b&128)&&me(n,a,u,u[7],s?_e(a,u[7],b,null):ce(u[7]),null),(!s||b&16)&&U(i,"title",u[4]),j(e,d=le(r,[{role:"option"},{tabindex:"-1"},(!s||b&1)&&{"aria-selected":u[0]},(!s||b&4&&t!==(t=u[2]?!0:void 0))&&{disabled:t},b&32&&u[5]])),I(e,"bx--list-box__menu-item",!0),I(e,"bx--list-box__menu-item--active",u[0]),I(e,"bx--list-box__menu-item--highlighted",u[1]||u[0])},i(u){s||(W(n,u),s=!0)},o(u){L(n,u),s=!1},d(u){u&&v(e),n&&n.d(u),l[12](null),o=!1,re(f)}}}function wl(l,e,i){let t,s;const o=["active","highlighted","disabled"];let f=F(e,o),{$$slots:a={},$$scope:n}=e,{active:r=!1}=e,{highlighted:d=!1}=e,{disabled:u=!1}=e,b=null;function g(c){M.call(this,l,c)}function _(c){M.call(this,l,c)}function m(c){M.call(this,l,c)}function T(c){se[c?"unshift":"push"](()=>{b=c,i(3,b)})}return l.$$set=c=>{e=B(B({},e),Z(c)),i(5,f=F(e,o)),"active"in c&&i(0,r=c.active),"highlighted"in c&&i(1,d=c.highlighted),"disabled"in c&&i(2,u=c.disabled),"$$scope"in c&&i(7,n=c.$$scope)},l.$$.update=()=>{l.$$.dirty&8&&i(6,t=(b==null?void 0:b.offsetWidth)<(b==null?void 0:b.scrollWidth)),l.$$.dirty&72&&i(4,s=t?b==null?void 0:b.innerText:void 0),l.$$.dirty&10&&d&&b&&!b.matches(":hover")&&b.scrollIntoView({block:"nearest"})},[r,d,u,b,s,f,t,n,a,g,_,m,T]}class yl extends p{constructor(e){super(),$(this,e,wl,Zl,ee,{active:0,highlighted:1,disabled:2})}}const xl=yl;function pl(l){let e,i,t,s,o,f,a,n=l[1]!==void 0&&je(l);t=new pe({});let r=[{role:"button"},{"aria-label":l[4]},{title:l[4]},{tabindex:s=l[2]?"-1":"0"},l[6]],d={};for(let u=0;u<r.length;u+=1)d=B(d,r[u]);return{c(){e=V("div"),n&&n.c(),i=K(),G(t.$$.fragment),this.h()},l(u){e=R(u,"DIV",{role:!0,"aria-label":!0,title:!0,tabindex:!0});var b=N(e);n&&n.l(b),i=O(b),H(t.$$.fragment,b),b.forEach(v),this.h()},h(){j(e,d),I(e,"bx--list-box__selection",!0),I(e,"bx--tag--filter",l[1]),I(e,"bx--list-box__selection--multi",l[1])},m(u,b){S(u,e,b),n&&n.m(e,null),q(e,i),J(t,e,null),l[12](e),o=!0,f||(a=[A(e,"click",oe(Se(l[13]))),A(e,"keydown",oe(l[14]))],f=!0)},p(u,b){u[1]!==void 0?n?n.p(u,b):(n=je(u),n.c(),n.m(e,i)):n&&(n.d(1),n=null),j(e,d=le(r,[{role:"button"},(!o||b&16)&&{"aria-label":u[4]},(!o||b&16)&&{title:u[4]},(!o||b&4&&s!==(s=u[2]?"-1":"0"))&&{tabindex:s},b&64&&u[6]])),I(e,"bx--list-box__selection",!0),I(e,"bx--tag--filter",u[1]),I(e,"bx--list-box__selection--multi",u[1])},i(u){o||(W(t.$$.fragment,u),o=!0)},o(u){L(t.$$.fragment,u),o=!1},d(u){u&&v(e),n&&n.d(),Q(t),l[12](null),f=!1,re(a)}}}function $l(l){let e,i,t,s,o,f,a,n,r,d;return f=new pe({}),{c(){e=V("div"),i=V("span"),t=ie(l[1]),s=K(),o=V("div"),G(f.$$.fragment),this.h()},l(u){e=R(u,"DIV",{});var b=N(e);i=R(b,"SPAN",{title:!0});var g=N(i);t=te(g,l[1]),g.forEach(v),s=O(b),o=R(b,"DIV",{role:!0,tabindex:!0,disabled:!0,"aria-label":!0,title:!0});var _=N(o);H(f.$$.fragment,_),_.forEach(v),b.forEach(v),this.h()},h(){U(i,"title",l[1]),I(i,"bx--tag__label",!0),U(o,"role","button"),U(o,"tabindex",a=l[2]?-1:0),U(o,"disabled",l[2]),U(o,"aria-label",l[3].clearAll),U(o,"title",l[4]),I(o,"bx--tag__close-icon",!0),I(e,"bx--tag",!0),I(e,"bx--tag--filter",!0),I(e,"bx--tag--high-contrast",!0),I(e,"bx--tag--disabled",l[2])},m(u,b){S(u,e,b),q(e,i),q(i,t),q(e,s),q(e,o),J(f,o,null),l[9](o),n=!0,r||(d=[A(o,"click",oe(Se(l[10]))),A(o,"keydown",oe(l[11]))],r=!0)},p(u,b){(!n||b&2)&&ne(t,u[1]),(!n||b&2)&&U(i,"title",u[1]),(!n||b&4&&a!==(a=u[2]?-1:0))&&U(o,"tabindex",a),(!n||b&4)&&U(o,"disabled",u[2]),(!n||b&16)&&U(o,"title",u[4]),(!n||b&4)&&I(e,"bx--tag--disabled",u[2])},i(u){n||(W(f.$$.fragment,u),n=!0)},o(u){L(f.$$.fragment,u),n=!1},d(u){u&&v(e),Q(f),l[9](null),r=!1,re(d)}}}function je(l){let e;return{c(){e=ie(l[1])},l(i){e=te(i,l[1])},m(i,t){S(i,e,t)},p(i,t){t&2&&ne(e,i[1])},d(i){i&&v(e)}}}function ei(l){let e,i,t,s;const o=[$l,pl],f=[];function a(n,r){return n[1]!==void 0?0:1}return e=a(l),i=f[e]=o[e](l),{c(){i.c(),t=y()},l(n){i.l(n),t=y()},m(n,r){f[e].m(n,r),S(n,t,r),s=!0},p(n,[r]){let d=e;e=a(n),e===d?f[e].p(n,r):(ae(),L(f[d],1,1,()=>{f[d]=null}),fe(),i=f[e],i?i.p(n,r):(i=f[e]=o[e](n),i.c()),W(i,1),i.m(t.parentNode,t))},i(n){s||(W(i),s=!0)},o(n){L(i),s=!1},d(n){f[e].d(n),n&&v(t)}}}function li(l,e,i){let t,s;const o=["selectionCount","disabled","translationIds","translateWithId","ref"];let f=F(e,o),{selectionCount:a=void 0}=e,{disabled:n=!1}=e;const r={clearAll:"clearAll",clearSelection:"clearSelection"};let{translateWithId:d=C=>b[C]}=e,{ref:u=null}=e;const b={[r.clearAll]:"Clear all selected items",[r.clearSelection]:"Clear selected item"},g=xe(),_=ye("MultiSelect");function m(C){se[C?"unshift":"push"](()=>{u=C,i(0,u)})}const T=C=>{n||g("clear",C)},c=C=>{!n&&C.key==="Enter"&&g("clear",C)};function k(C){se[C?"unshift":"push"](()=>{u=C,i(0,u)})}const w=C=>{n||g("clear",C)},ue=C=>{!n&&C.key==="Enter"&&g("clear",C)};return l.$$set=C=>{e=B(B({},e),Z(C)),i(6,f=F(e,o)),"selectionCount"in C&&i(1,a=C.selectionCount),"disabled"in C&&i(2,n=C.disabled),"translateWithId"in C&&i(7,d=C.translateWithId),"ref"in C&&i(0,u=C.ref)},l.$$.update=()=>{l.$$.dirty&1&&_&&u&&_.declareRef({key:"selection",ref:u}),l.$$.dirty&2&&i(8,t=a?r.clearAll:r.clearSelection),l.$$.dirty&384&&i(4,s=(d==null?void 0:d(t))??b[t])},[u,a,n,r,s,g,f,d,t,m,T,c,k,w,ue]}class ii extends p{constructor(e){super(),$(this,e,li,ei,ee,{selectionCount:1,disabled:2,translationIds:3,translateWithId:7,ref:0})}get translationIds(){return this.$$.ctx[3]}}const ti=ii;function Ke(l,e,i){const t=l.slice();return t[56]=e[i],t[58]=i,t}const ni=l=>({item:l[0]&16777216,index:l[0]&16777216}),Oe=l=>({item:l[56],index:l[58]});function Xe(l){let e,i;return{c(){e=V("label"),i=ie(l[9]),this.h()},l(t){e=R(t,"LABEL",{for:!0});var s=N(e);i=te(s,l[9]),s.forEach(v),this.h()},h(){U(e,"for",l[19]),I(e,"bx--label",!0),I(e,"bx--label--disabled",l[8])},m(t,s){S(t,e,s),q(e,i)},p(t,s){s[0]&512&&ne(i,t[9]),s[0]&524288&&U(e,"for",t[19]),s[0]&256&&I(e,"bx--label--disabled",t[8])},d(t){t&&v(e)}}}function Ye(l){let e,i;return e=new Sl({props:{class:"bx--list-box__invalid-icon"}}),{c(){G(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,s){J(e,t,s),i=!0},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){L(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function Ge(l){let e,i;return e=new Ll({props:{class:"bx--list-box__invalid-icon bx--list-box__invalid-icon--warning"}}),{c(){G(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,s){J(e,t,s),i=!0},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){L(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function He(l){let e,i;return e=new ti({props:{translateWithId:l[18],disabled:l[8],open:l[2]}}),e.$on("clear",l[46]),e.$on("clear",l[21]),{c(){G(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,s){J(e,t,s),i=!0},p(t,s){const o={};s[0]&262144&&(o.translateWithId=t[18]),s[0]&256&&(o.disabled=t[8]),s[0]&4&&(o.open=t[2]),e.$set(o)},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){L(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function ai(l){let e,i,t,s,o,f,a,n,r,d,u,b=[{tabindex:"0"},{autocomplete:"off"},{"aria-autocomplete":"list"},{"aria-expanded":l[2]},{"aria-activedescendant":l[25]},{"aria-labelledby":l[26]},{"aria-disabled":l[8]},{"aria-controls":i=l[2]?l[27]:void 0},{"aria-owns":t=l[2]?l[27]:void 0},{disabled:l[8]},{placeholder:l[10]},{id:l[19]},{name:l[20]},l[30]],g={};for(let c=0;c<b.length;c+=1)g=B(g,b[c]);let _=l[13]&&Ye(),m=!l[13]&&l[14]&&Ge(),T=l[1]&&He(l);return n=new Ql({props:{translateWithId:l[17],open:l[2]}}),n.$on("click",l[47]),{c(){e=V("input"),s=K(),_&&_.c(),o=K(),m&&m.c(),f=K(),T&&T.c(),a=K(),G(n.$$.fragment),this.h()},l(c){e=R(c,"INPUT",{tabindex:!0,autocomplete:!0,"aria-autocomplete":!0,"aria-expanded":!0,"aria-activedescendant":!0,"aria-labelledby":!0,"aria-disabled":!0,"aria-controls":!0,"aria-owns":!0,placeholder:!0,id:!0,name:!0}),s=O(c),_&&_.l(c),o=O(c),m&&m.l(c),f=O(c),T&&T.l(c),a=O(c),H(n.$$.fragment,c),this.h()},h(){j(e,g),I(e,"bx--text-input",!0),I(e,"bx--text-input--light",l[16]),I(e,"bx--text-input--empty",l[1]==="")},m(c,k){S(c,e,k),e.autofocus&&e.focus(),l[41](e),Re(e,l[1]),S(c,s,k),_&&_.m(c,k),S(c,o,k),m&&m.m(c,k),S(c,f,k),T&&T.m(c,k),S(c,a,k),J(n,c,k),r=!0,d||(u=[A(e,"input",l[42]),A(e,"input",l[43]),A(e,"keydown",l[35]),A(e,"keydown",oe(l[44])),A(e,"keyup",l[36]),A(e,"focus",l[37]),A(e,"blur",l[38]),A(e,"blur",l[45]),A(e,"paste",l[39])],d=!0)},p(c,k){j(e,g=le(b,[{tabindex:"0"},{autocomplete:"off"},{"aria-autocomplete":"list"},(!r||k[0]&4)&&{"aria-expanded":c[2]},(!r||k[0]&33554432)&&{"aria-activedescendant":c[25]},(!r||k[0]&67108864)&&{"aria-labelledby":c[26]},(!r||k[0]&256)&&{"aria-disabled":c[8]},(!r||k[0]&134217732&&i!==(i=c[2]?c[27]:void 0))&&{"aria-controls":i},(!r||k[0]&134217732&&t!==(t=c[2]?c[27]:void 0))&&{"aria-owns":t},(!r||k[0]&256)&&{disabled:c[8]},(!r||k[0]&1024)&&{placeholder:c[10]},(!r||k[0]&524288)&&{id:c[19]},(!r||k[0]&1048576)&&{name:c[20]},k[0]&1073741824&&c[30]])),k[0]&2&&e.value!==c[1]&&Re(e,c[1]),I(e,"bx--text-input",!0),I(e,"bx--text-input--light",c[16]),I(e,"bx--text-input--empty",c[1]===""),c[13]?_?k[0]&8192&&W(_,1):(_=Ye(),_.c(),W(_,1),_.m(o.parentNode,o)):_&&(ae(),L(_,1,1,()=>{_=null}),fe()),!c[13]&&c[14]?m?k[0]&24576&&W(m,1):(m=Ge(),m.c(),W(m,1),m.m(f.parentNode,f)):m&&(ae(),L(m,1,1,()=>{m=null}),fe()),c[1]?T?(T.p(c,k),k[0]&2&&W(T,1)):(T=He(c),T.c(),W(T,1),T.m(a.parentNode,a)):T&&(ae(),L(T,1,1,()=>{T=null}),fe());const w={};k[0]&131072&&(w.translateWithId=c[17]),k[0]&4&&(w.open=c[2]),n.$set(w)},i(c){r||(W(_),W(m),W(T),W(n.$$.fragment,c),r=!0)},o(c){L(_),L(m),L(T),L(n.$$.fragment,c),r=!1},d(c){c&&v(e),l[41](null),c&&v(s),_&&_.d(c),c&&v(o),m&&m.d(c),c&&v(f),T&&T.d(c),c&&v(a),Q(n,c),d=!1,re(u)}}}function Je(l){let e,i,t;function s(f){l[51](f)}let o={"aria-label":l[28],id:l[19],$$slots:{default:[ui]},$$scope:{ctx:l}};return l[4]!==void 0&&(o.ref=l[4]),e=new Yl({props:o}),se.push(()=>vl(e,"ref",s)),e.$on("scroll",l[52]),{c(){G(e.$$.fragment)},l(f){H(e.$$.fragment,f)},m(f,a){J(e,f,a),t=!0},p(f,a){const n={};a[0]&268435456&&(n["aria-label"]=f[28]),a[0]&524288&&(n.id=f[19]),a[0]&29360167|a[1]&4194304&&(n.$$scope={dirty:a,ctx:f}),!i&&a[0]&16&&(i=!0,n.ref=f[4],Tl(()=>i=!1)),e.$set(n)},i(f){t||(W(e.$$.fragment,f),t=!0)},o(f){L(e.$$.fragment,f),t=!1},d(f){Q(e,f)}}}function fi(l){let e=l[5](l[56])+"",i;return{c(){i=ie(e)},l(t){i=te(t,e)},m(t,s){S(t,i,s)},p(t,s){s[0]&16777248&&e!==(e=t[5](t[56])+"")&&ne(i,e)},d(t){t&&v(i)}}}function Qe(l){let e,i;return e=new Dl({props:{class:"bx--list-box__menu-item__selected-icon"}}),{c(){G(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,s){J(e,t,s),i=!0},i(t){i||(W(e.$$.fragment,t),i=!0)},o(t){L(e.$$.fragment,t),i=!1},d(t){Q(e,t)}}}function si(l){let e,i,t;const s=l[34].default,o=he(s,l,l[53],Oe),f=o||fi(l);let a=l[22]&&l[22].id===l[56].id&&Qe();return{c(){f&&f.c(),e=K(),a&&a.c(),i=K()},l(n){f&&f.l(n),e=O(n),a&&a.l(n),i=O(n)},m(n,r){f&&f.m(n,r),S(n,e,r),a&&a.m(n,r),S(n,i,r),t=!0},p(n,r){o?o.p&&(!t||r[0]&16777216|r[1]&4194304)&&me(o,s,n,n[53],t?_e(s,n[53],r,ni):ce(n[53]),Oe):f&&f.p&&(!t||r[0]&16777248)&&f.p(n,t?r:[-1,-1]),n[22]&&n[22].id===n[56].id?a?r[0]&20971520&&W(a,1):(a=Qe(),a.c(),W(a,1),a.m(i.parentNode,i)):a&&(ae(),L(a,1,1,()=>{a=null}),fe())},i(n){t||(W(f,n),W(a),t=!0)},o(n){L(f,n),L(a),t=!1},d(n){f&&f.d(n),n&&v(e),a&&a.d(n),n&&v(i)}}}function Ze(l,e){let i,t,s;function o(...a){return e[49](e[56],e[58],...a)}function f(){return e[50](e[56],e[58])}return t=new xl({props:{id:e[56].id,active:e[0]===e[56].id,highlighted:e[23]===e[58],disabled:e[56].disabled,$$slots:{default:[si]},$$scope:{ctx:e}}}),t.$on("click",o),t.$on("mouseenter",f),{key:l,first:null,c(){i=y(),G(t.$$.fragment),this.h()},l(a){i=y(),H(t.$$.fragment,a),this.h()},h(){this.first=i},m(a,n){S(a,i,n),J(t,a,n),s=!0},p(a,n){e=a;const r={};n[0]&16777216&&(r.id=e[56].id),n[0]&16777217&&(r.active=e[0]===e[56].id),n[0]&25165824&&(r.highlighted=e[23]===e[58]),n[0]&16777216&&(r.disabled=e[56].disabled),n[0]&20971552|n[1]&4194304&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(a){s||(W(t.$$.fragment,a),s=!0)},o(a){L(t.$$.fragment,a),s=!1},d(a){a&&v(i),Q(t,a)}}}function ui(l){let e=[],i=new Map,t,s,o=l[24];const f=a=>a[56].id;for(let a=0;a<o.length;a+=1){let n=Ke(l,o,a),r=f(n);i.set(r,e[a]=Ze(r,n))}return{c(){for(let a=0;a<e.length;a+=1)e[a].c();t=y()},l(a){for(let n=0;n<e.length;n+=1)e[n].l(a);t=y()},m(a,n){for(let r=0;r<e.length;r+=1)e[r]&&e[r].m(a,n);S(a,t,n),s=!0},p(a,n){n[0]&29360167|n[1]&4194304&&(o=a[24],ae(),e=El(e,n,f,1,a,o,i,t.parentNode,Wl,Ze,t,Ke),fe())},i(a){if(!s){for(let n=0;n<o.length;n+=1)W(e[n]);s=!0}},o(a){for(let n=0;n<e.length;n+=1)L(e[n]);s=!1},d(a){for(let n=0;n<e.length;n+=1)e[n].d(a);a&&v(t)}}}function oi(l){let e,i,t,s;e=new jl({props:{role:"button","aria-expanded":l[2],id:l[19],disabled:l[8],translateWithId:l[17],$$slots:{default:[ai]},$$scope:{ctx:l}}}),e.$on("click",l[48]);let o=l[2]&&Je(l);return{c(){G(e.$$.fragment),i=K(),o&&o.c(),t=y()},l(f){H(e.$$.fragment,f),i=O(f),o&&o.l(f),t=y()},m(f,a){J(e,f,a),S(f,i,a),o&&o.m(f,a),S(f,t,a),s=!0},p(f,a){const n={};a[0]&4&&(n["aria-expanded"]=f[2]),a[0]&524288&&(n.id=f[19]),a[0]&256&&(n.disabled=f[8]),a[0]&131072&&(n.translateWithId=f[17]),a[0]&1340040495|a[1]&4194304&&(n.$$scope={dirty:a,ctx:f}),e.$set(n),f[2]?o?(o.p(f,a),a[0]&4&&W(o,1)):(o=Je(f),o.c(),W(o,1),o.m(t.parentNode,t)):o&&(ae(),L(o,1,1,()=>{o=null}),fe())},i(f){s||(W(e.$$.fragment,f),W(o),s=!0)},o(f){L(e.$$.fragment,f),L(o),s=!1},d(f){Q(e,f),f&&v(i),o&&o.d(f),f&&v(t)}}}function we(l){let e,i;return{c(){e=V("div"),i=ie(l[11]),this.h()},l(t){e=R(t,"DIV",{});var s=N(e);i=te(s,l[11]),s.forEach(v),this.h()},h(){I(e,"bx--form__helper-text",!0),I(e,"bx--form__helper-text--disabled",l[8])},m(t,s){S(t,e,s),q(e,i)},p(t,s){s[0]&2048&&ne(i,t[11]),s[0]&256&&I(e,"bx--form__helper-text--disabled",t[8])},d(t){t&&v(e)}}}function ri(l){let e,i,t,s,o,f,a,n=l[9]&&Xe(l);t=new Rl({props:{class:"bx--combo-box "+(l[6]==="top"&&"bx--list-box--up")+" "+(!l[13]&&l[14]&&"bx--combo-box--warning"),id:l[26],"aria-label":l[28],disabled:l[8],invalid:l[13],invalidText:l[12],open:l[2],light:l[16],size:l[7],warn:l[14],warnText:l[15],$$slots:{default:[oi]},$$scope:{ctx:l}}});let r=!l[13]&&l[11]&&!l[14]&&we(l);return{c(){e=V("div"),n&&n.c(),i=K(),G(t.$$.fragment),s=K(),r&&r.c(),this.h()},l(d){e=R(d,"DIV",{});var u=N(e);n&&n.l(u),i=O(u),H(t.$$.fragment,u),s=O(u),r&&r.l(u),u.forEach(v),this.h()},h(){I(e,"bx--list-box__wrapper",!0)},m(d,u){S(d,e,u),n&&n.m(e,null),q(e,i),J(t,e,null),q(e,s),r&&r.m(e,null),o=!0,f||(a=A(window,"click",l[40]),f=!0)},p(d,u){d[9]?n?n.p(d,u):(n=Xe(d),n.c(),n.m(e,i)):n&&(n.d(1),n=null);const b={};u[0]&24640&&(b.class="bx--combo-box "+(d[6]==="top"&&"bx--list-box--up")+" "+(!d[13]&&d[14]&&"bx--combo-box--warning")),u[0]&67108864&&(b.id=d[26]),u[0]&268435456&&(b["aria-label"]=d[28]),u[0]&256&&(b.disabled=d[8]),u[0]&8192&&(b.invalid=d[13]),u[0]&4096&&(b.invalidText=d[12]),u[0]&4&&(b.open=d[2]),u[0]&65536&&(b.light=d[16]),u[0]&128&&(b.size=d[7]),u[0]&16384&&(b.warn=d[14]),u[0]&32768&&(b.warnText=d[15]),u[0]&1608475967|u[1]&4194304&&(b.$$scope={dirty:u,ctx:d}),t.$set(b),!d[13]&&d[11]&&!d[14]?r?r.p(d,u):(r=we(d),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(d){o||(W(t.$$.fragment,d),o=!0)},o(d){L(t.$$.fragment,d),o=!1},d(d){d&&v(e),n&&n.d(),Q(t),r&&r.d(),f=!1,a()}}}function di(l,e,i){let t,s,o,f,a;const n=["items","itemToString","selectedId","value","direction","size","disabled","titleText","placeholder","helperText","invalidText","invalid","warn","warnText","light","open","shouldFilterItem","translateWithId","translateWithIdSelection","id","name","ref","listRef","clear"];let r=F(e,n),{$$slots:d={},$$scope:u}=e,{items:b=[]}=e,{itemToString:g=h=>h.text||h.id}=e,{selectedId:_=void 0}=e,{value:m=""}=e,{direction:T="bottom"}=e,{size:c=void 0}=e,{disabled:k=!1}=e,{titleText:w=""}=e,{placeholder:ue=""}=e,{helperText:C=""}=e,{invalidText:ge=""}=e,{invalid:ke=!1}=e,{warn:Ie=!1}=e,{warnText:ve=""}=e,{light:E=!1}=e,{open:D=!1}=e,{shouldFilterItem:Te=()=>!0}=e,{translateWithId:Be=void 0}=e,{translateWithIdSelection:De=void 0}=e,{id:Ee="ccs-"+Math.random().toString(36)}=e,{name:Me=void 0}=e,{ref:X=null}=e,{listRef:We=null}=e;const $e=xe();let Y,de=null,P=-1;function Le(h){let z=P+h,x=a!=null&&a.length?a:b;if(x.length===0)return;z<0?z=x.length-1:z>=x.length&&(z=0);let be=b[z].disabled;for(;be;)z=z+h,z<0?z=b.length-1:z>=b.length&&(z=0),be=b[z].disabled;i(23,P=z)}function Ne(h={}){i(33,de=null),i(23,P=-1),i(25,f=void 0),i(0,_=void 0),i(22,Y=void 0),i(2,D=!1),i(1,m=""),(h==null?void 0:h.focus)!==!1&&(X==null||X.focus())}kl(()=>{D?(X.focus(),i(24,a=b.filter(h=>Te(h,m)))):(i(23,P=-1),i(24,a=[]),Y?i(1,m=g(Y)):(i(0,_=void 0),i(1,m=""),i(23,P=-1),i(25,f=void 0)))});function el(h){M.call(this,l,h)}function ll(h){M.call(this,l,h)}function il(h){M.call(this,l,h)}function tl(h){M.call(this,l,h)}function nl(h){M.call(this,l,h)}const al=({target:h})=>{D&&X&&!X.contains(h)&&i(2,D=!1)};function fl(h){se[h?"unshift":"push"](()=>{X=h,i(3,X)})}function sl(){m=this.value,i(1,m)}const ul=({target:h})=>{!D&&h.value.length>0&&i(2,D=!0),m.length||(Ne(),i(2,D=!0))},ol=h=>{var x;const{key:z}=h;if(["Enter","ArrowDown","ArrowUp"].includes(z)&&h.preventDefault(),z==="Enter"){if(i(2,D=!D),P>-1&&((x=a[P])==null?void 0:x.id)!==_)i(2,D=!1),a[P]&&(i(1,m=g(a[P])),i(22,Y=a[P]),i(0,_=a[P].id));else{const be=a.find(Ce=>Ce.text.toLowerCase()===(m==null?void 0:m.toLowerCase())&&!Ce.disabled)??a.find(Ce=>!Ce.disabled);be&&(i(2,D=!1),i(22,Y=be),i(1,m=g(Y)),i(0,_=Y.id))}i(23,P=-1)}else z==="Tab"?i(2,D=!1):z==="ArrowDown"?Le(1):z==="ArrowUp"?Le(-1):z==="Escape"&&i(2,D=!1)},rl=({relatedTarget:h})=>{!D||!h||h&&!["INPUT","SELECT","TEXTAREA"].includes(h.tagName)&&h.getAttribute("role")!=="button"&&h.getAttribute("role")!=="searchbox"&&X.focus()};function dl(h){M.call(this,l,h)}const bl=h=>{k||(h.stopPropagation(),i(2,D=!D))},hl=async()=>{k||(i(2,D=!0),await Il(),X.focus())},ml=(h,z,x)=>{if(h.disabled){x.stopPropagation();return}i(0,_=h.id),i(2,D=!1),a[z]&&i(1,m=g(a[z]))},cl=(h,z)=>{h.disabled||i(23,P=z)};function _l(h){We=h,i(4,We)}function gl(h){M.call(this,l,h)}return l.$$set=h=>{i(55,e=B(B({},e),Z(h))),i(30,r=F(e,n)),"items"in h&&i(31,b=h.items),"itemToString"in h&&i(5,g=h.itemToString),"selectedId"in h&&i(0,_=h.selectedId),"value"in h&&i(1,m=h.value),"direction"in h&&i(6,T=h.direction),"size"in h&&i(7,c=h.size),"disabled"in h&&i(8,k=h.disabled),"titleText"in h&&i(9,w=h.titleText),"placeholder"in h&&i(10,ue=h.placeholder),"helperText"in h&&i(11,C=h.helperText),"invalidText"in h&&i(12,ge=h.invalidText),"invalid"in h&&i(13,ke=h.invalid),"warn"in h&&i(14,Ie=h.warn),"warnText"in h&&i(15,ve=h.warnText),"light"in h&&i(16,E=h.light),"open"in h&&i(2,D=h.open),"shouldFilterItem"in h&&i(32,Te=h.shouldFilterItem),"translateWithId"in h&&i(17,Be=h.translateWithId),"translateWithIdSelection"in h&&i(18,De=h.translateWithIdSelection),"id"in h&&i(19,Ee=h.id),"name"in h&&i(20,Me=h.name),"ref"in h&&i(3,X=h.ref),"listRef"in h&&i(4,We=h.listRef),"$$scope"in h&&i(53,u=h.$$scope)},l.$$.update=()=>{l.$$.dirty[0]&2|l.$$.dirty[1]&3&&i(24,a=b.filter(h=>Te(h,m))),l.$$.dirty[0]&20971525|l.$$.dirty[1]&5&&(_!==void 0?de!==_&&(i(33,de=_),(a==null?void 0:a.length)===1&&D?(i(0,_=a[0].id),i(22,Y=a[0]),i(23,P=-1),i(25,f=void 0)):i(22,Y=b.find(h=>h.id===_)),$e("select",{selectedId:_,selectedItem:Y})):(i(33,de=_),i(22,Y=void 0))),i(28,t=e["aria-label"]||"Choose an item"),l.$$.dirty[0]&524288&&i(27,s=`menu-${Ee}`),l.$$.dirty[0]&524288&&i(26,o=`combo-${Ee}`),l.$$.dirty[0]&8388608|l.$$.dirty[1]&1&&i(25,f=b[P]?b[P].id:0)},e=Z(e),[_,m,D,X,We,g,T,c,k,w,ue,C,ge,ke,Ie,ve,E,Be,De,Ee,Me,Ne,Y,P,a,f,o,s,t,Le,r,b,Te,de,d,el,ll,il,tl,nl,al,fl,sl,ul,ol,rl,dl,bl,hl,ml,cl,_l,gl,u]}class bi extends p{constructor(e){super(),$(this,e,di,ri,ee,{items:31,itemToString:5,selectedId:0,value:1,direction:6,size:7,disabled:8,titleText:9,placeholder:10,helperText:11,invalidText:12,invalid:13,warn:14,warnText:15,light:16,open:2,shouldFilterItem:32,translateWithId:17,translateWithIdSelection:18,id:19,name:20,ref:3,listRef:4,clear:21},null,[-1,-1])}get clear(){return this.$$.ctx[21]}}const ci=bi;export{ci as C};
lilac/web/_app/immutable/chunks/Commands.543935b9.js ADDED
The diff for this file is too large to render. See raw diff
 
lilac/web/_app/immutable/chunks/ConceptView.a39bdbf2.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as ce,i as fe,s as ue,E as _e,Z as ae,_ as ie,m as D,h as g,n as S,$ as Se,b as L,a0 as b,L as qe,a1 as X,N as Ce,Q as Te,q as Z,r as j,u as ne,D as At,k as T,a as G,l as z,c as W,H as Le,I as Pt,J as Rt,K as Bt,v as te,d as V,f as le,g as k,y as N,z as H,A as O,B as F,w as Ee,T as Ve,U as De,a4 as Ae,C as xt,a6 as xe,O as Ie,ac as ye,a7 as Nt,ab as el,G as Pe,o as tl,e as we,M as ll}from"./index.b333a928.js";import{g as Ht}from"./navigation.52bd9048.js";import{ae as nl,x as $e,ar as rl,as as sl,B as Ye,P as Ge,h as Ot,S as Ze,U as Ft,at as al,au as il,av as ol,aw as cl,c as Lt,a as He,e as fl,ax as Ut,a4 as Re,X as ul,z as Me,ay as dl,y as ml,O as Qt,af as qt,L as Be,az as Ne,a9 as Oe,aA as Yt,ag as et,ak as Zt,b as _l}from"./Commands.543935b9.js";import{f as jt}from"./utils.2fa1092a.js";import{T as hl,S as gl,a as Gt,b as Wt}from"./StringSpanHighlight.0900fe94.js";import{C as pl,a as bl}from"./ChevronUp.efe9cbe8.js";import{g as Kt}from"./settingsStore.6e7d5078.js";import{i as vl,r as $l}from"./notificationsStore.46809e81.js";import{A as wl}from"./ArrowUpRight.e306cdcd.js";import{T as Jt}from"./ToastNotification.b080933f.js";function tt(r){let e,l;return{c(){e=ae("title"),l=Z(r[1])},l(t){e=ie(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(g)},m(t,n){L(t,e,n),b(e,l)},p(t,n){n&2&&ne(l,t[1])},d(t){t&&g(e)}}}function kl(r){let e,l,t,n=r[1]&&tt(r),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let a=0;a<o.length;a+=1)s=_e(s,o[a]);return{c(){e=ae("svg"),n&&n.c(),l=ae("path"),t=ae("path"),this.h()},l(a){e=ie(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var i=D(e);n&&n.l(i),l=ie(i,"path",{d:!0}),D(l).forEach(g),t=ie(i,"path",{d:!0}),D(t).forEach(g),i.forEach(g),this.h()},h(){S(l,"d","M11,11V21H21V11Zm8,8H13V13h6Z"),S(t,"d","M30,13V11H26V8a2,2,0,0,0-2-2H21V2H19V6H13V2H11V6H8A2,2,0,0,0,6,8v3H2v2H6v6H2v2H6v3a2,2,0,0,0,2,2h3v4h2V26h6v4h2V26h3a2,2,0,0,0,2-2V21h4V19H26V13ZM24,24H8V8H24Z"),Se(e,s)},m(a,i){L(a,e,i),n&&n.m(e,null),b(e,l),b(e,t)},p(a,[i]){a[1]?n?n.p(a,i):(n=tt(a),n.c(),n.m(e,l)):n&&(n.d(1),n=null),Se(e,s=qe(o,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},i&1&&{width:a[0]},i&1&&{height:a[0]},i&4&&a[2],i&8&&a[3]]))},i:X,o:X,d(a){a&&g(e),n&&n.d()}}}function El(r,e,l){let t,n;const o=["size","title"];let s=Ce(e,o),{size:a=16}=e,{title:i=void 0}=e;return r.$$set=c=>{l(5,e=_e(_e({},e),Te(c))),l(3,s=Ce(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[a,i,n,s,t]}class lt extends ce{constructor(e){super(),fe(this,e,El,kl,ue,{size:0,title:1})}}function nt(r){let e,l;return{c(){e=ae("title"),l=Z(r[1])},l(t){e=ie(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(g)},m(t,n){L(t,e,n),b(e,l)},p(t,n){n&2&&ne(l,t[1])},d(t){t&&g(e)}}}function Vl(r){let e,l,t=r[1]&&nt(r),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],o={};for(let s=0;s<n.length;s+=1)o=_e(o,n[s]);return{c(){e=ae("svg"),t&&t.c(),l=ae("path"),this.h()},l(s){e=ie(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=D(e);t&&t.l(a),l=ie(a,"path",{d:!0}),D(l).forEach(g),a.forEach(g),this.h()},h(){S(l,"d","M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"),Se(e,o)},m(s,a){L(s,e,a),t&&t.m(e,null),b(e,l)},p(s,[a]){s[1]?t?t.p(s,a):(t=nt(s),t.c(),t.m(e,l)):t&&(t.d(1),t=null),Se(e,o=qe(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},a&1&&{width:s[0]},a&1&&{height:s[0]},a&4&&s[2],a&8&&s[3]]))},i:X,o:X,d(s){s&&g(e),t&&t.d()}}}function Dl(r,e,l){let t,n;const o=["size","title"];let s=Ce(e,o),{size:a=16}=e,{title:i=void 0}=e;return r.$$set=c=>{l(5,e=_e(_e({},e),Te(c))),l(3,s=Ce(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[a,i,n,s,t]}class Kn extends ce{constructor(e){super(),fe(this,e,Dl,Vl,ue,{size:0,title:1})}}function rt(r){let e,l;return{c(){e=ae("title"),l=Z(r[1])},l(t){e=ie(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(g)},m(t,n){L(t,e,n),b(e,l)},p(t,n){n&2&&ne(l,t[1])},d(t){t&&g(e)}}}function Il(r){let e,l,t,n=r[1]&&rt(r),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let a=0;a<o.length;a+=1)s=_e(s,o[a]);return{c(){e=ae("svg"),n&&n.c(),l=ae("path"),t=ae("path"),this.h()},l(a){e=ie(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var i=D(e);n&&n.l(i),l=ie(i,"path",{d:!0}),D(l).forEach(g),t=ie(i,"path",{d:!0}),D(t).forEach(g),i.forEach(g),this.h()},h(){S(l,"d","M12 12H14V24H12zM18 12H20V24H18z"),S(t,"d","M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"),Se(e,s)},m(a,i){L(a,e,i),n&&n.m(e,null),b(e,l),b(e,t)},p(a,[i]){a[1]?n?n.p(a,i):(n=rt(a),n.c(),n.m(e,l)):n&&(n.d(1),n=null),Se(e,s=qe(o,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},i&1&&{width:a[0]},i&1&&{height:a[0]},i&4&&a[2],i&8&&a[3]]))},i:X,o:X,d(a){a&&g(e),n&&n.d()}}}function yl(r,e,l){let t,n;const o=["size","title"];let s=Ce(e,o),{size:a=16}=e,{title:i=void 0}=e;return r.$$set=c=>{l(5,e=_e(_e({},e),Te(c))),l(3,s=Ce(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[a,i,n,s,t]}class Sl extends ce{constructor(e){super(),fe(this,e,yl,Il,ue,{size:0,title:1})}}function st(r){let e,l;return{c(){e=ae("title"),l=Z(r[1])},l(t){e=ie(t,"title",{});var n=D(e);l=j(n,r[1]),n.forEach(g)},m(t,n){L(t,e,n),b(e,l)},p(t,n){n&2&&ne(l,t[1])},d(t){t&&g(e)}}}function Cl(r){let e,l,t,n=r[1]&&st(r),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let a=0;a<o.length;a+=1)s=_e(s,o[a]);return{c(){e=ae("svg"),n&&n.c(),l=ae("path"),t=ae("path"),this.h()},l(a){e=ie(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var i=D(e);n&&n.l(i),l=ie(i,"path",{d:!0}),D(l).forEach(g),t=ie(i,"path",{d:!0}),D(t).forEach(g),i.forEach(g),this.h()},h(){S(l,"d","M5.24,22.51l1.43-1.42A14.06,14.06,0,0,1,3.07,16C5.1,10.93,10.7,7,16,7a12.38,12.38,0,0,1,4,.72l1.55-1.56A14.72,14.72,0,0,0,16,5,16.69,16.69,0,0,0,1.06,15.66a1,1,0,0,0,0,.68A16,16,0,0,0,5.24,22.51Z"),S(t,"d","M12 15.73a4 4 0 013.7-3.7l1.81-1.82a6 6 0 00-7.33 7.33zM30.94 15.66A16.4 16.4 0 0025.2 8.22L30 3.41 28.59 2 2 28.59 3.41 30l5.1-5.1A15.29 15.29 0 0016 27 16.69 16.69 0 0030.94 16.34 1 1 0 0030.94 15.66zM20 16a4 4 0 01-6 3.44L19.44 14A4 4 0 0120 16zm-4 9a13.05 13.05 0 01-6-1.58l2.54-2.54a6 6 0 008.35-8.35l2.87-2.87A14.54 14.54 0 0128.93 16C26.9 21.07 21.3 25 16 25z"),Se(e,s)},m(a,i){L(a,e,i),n&&n.m(e,null),b(e,l),b(e,t)},p(a,[i]){a[1]?n?n.p(a,i):(n=st(a),n.c(),n.m(e,l)):n&&(n.d(1),n=null),Se(e,s=qe(o,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},i&1&&{width:a[0]},i&1&&{height:a[0]},i&4&&a[2],i&8&&a[3]]))},i:X,o:X,d(a){a&&g(e),n&&n.d()}}}function Tl(r,e,l){let t,n;const o=["size","title"];let s=Ce(e,o),{size:a=16}=e,{title:i=void 0}=e;return r.$$set=c=>{l(5,e=_e(_e({},e),Te(c))),l(3,s=Ce(e,o)),"size"in c&&l(0,a=c.size),"title"in c&&l(1,i=c.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||i),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=Te(e),[a,i,n,s,t]}class zl extends ce{constructor(e){super(),fe(this,e,Tl,Cl,ue,{size:0,title:1})}}const Ml=r=>({}),at=r=>({}),Al=r=>({}),it=r=>({});function Pl(r){let e,l;return e=new pl({}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Rl(r){let e,l;return e=new bl({}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function ot(r){let e,l;const t=r[2].below,n=At(t,r,r[1],at);return{c(){e=T("div"),n&&n.c(),this.h()},l(o){e=z(o,"DIV",{class:!0});var s=D(e);n&&n.l(s),s.forEach(g),this.h()},h(){S(e,"class","p-4")},m(o,s){L(o,e,s),n&&n.m(e,null),l=!0},p(o,s){n&&n.p&&(!l||s&2)&&Pt(n,t,o,o[1],l?Bt(t,o[1],s,Ml):Rt(o[1]),at)},i(o){l||(k(n,o),l=!0)},o(o){V(n,o),l=!1},d(o){o&&g(e),n&&n.d(o)}}}function Bl(r){let e,l,t,n,o,s,a,i,c,f;const E=r[2].above,m=At(E,r,r[1],it),h=[Rl,Pl],u=[];function $(d,_){return d[0]?0:1}o=$(r),s=u[o]=h[o](r);let p=r[0]&&ot(r);return{c(){e=T("div"),l=T("button"),t=T("div"),m&&m.c(),n=G(),s.c(),a=G(),p&&p.c(),this.h()},l(d){e=z(d,"DIV",{class:!0});var _=D(e);l=z(_,"BUTTON",{class:!0});var v=D(l);t=z(v,"DIV",{class:!0});var w=D(t);m&&m.l(w),n=W(w),s.l(w),w.forEach(g),v.forEach(g),a=W(_),p&&p.l(_),_.forEach(g),this.h()},h(){S(t,"class","flex items-center justify-between"),S(l,"class","w-full p-4 text-left hover:bg-gray-200"),S(e,"class","rounded-xl border border-gray-200")},m(d,_){L(d,e,_),b(e,l),b(l,t),m&&m.m(t,null),b(t,n),u[o].m(t,null),b(e,a),p&&p.m(e,null),i=!0,c||(f=Le(l,"click",r[3]),c=!0)},p(d,[_]){m&&m.p&&(!i||_&2)&&Pt(m,E,d,d[1],i?Bt(E,d[1],_,Al):Rt(d[1]),it);let v=o;o=$(d),o!==v&&(te(),V(u[v],1,1,()=>{u[v]=null}),le(),s=u[o],s||(s=u[o]=h[o](d),s.c()),k(s,1),s.m(t,null)),d[0]?p?(p.p(d,_),_&1&&k(p,1)):(p=ot(d),p.c(),k(p,1),p.m(e,null)):p&&(te(),V(p,1,1,()=>{p=null}),le())},i(d){i||(k(m,d),k(s),k(p),i=!0)},o(d){V(m,d),V(s),V(p),i=!1},d(d){d&&g(e),m&&m.d(d),u[o].d(),p&&p.d(),c=!1,f()}}}function Nl(r,e,l){let{$$slots:t={},$$scope:n}=e,{expanded:o=!1}=e;const s=()=>l(0,o=!o);return r.$$set=a=>{"expanded"in a&&l(0,o=a.expanded),"$$scope"in a&&l(1,n=a.$$scope)},[o,n,t,s]}class Fe extends ce{constructor(e){super(),fe(this,e,Nl,Bl,ue,{expanded:0})}}function ct(r,e,l){const t=r.slice();return t[6]=e[l],t}function ft(r){let e,l,t=r[6].text+"",n,o,s,a,i,c,f,E;a=new Sl({props:{size:16}});function m(){return r[5](r[6])}return{c(){e=T("div"),l=T("span"),n=Z(t),o=G(),s=T("button"),N(a.$$.fragment),i=G(),this.h()},l(h){e=z(h,"DIV",{class:!0});var u=D(e);l=z(u,"SPAN",{class:!0});var $=D(l);n=j($,t),$.forEach(g),o=W(u),s=z(u,"BUTTON",{title:!0,class:!0});var p=D(s);H(a.$$.fragment,p),p.forEach(g),i=W(u),u.forEach(g),this.h()},h(){S(l,"class","shrink"),S(s,"title","Remove sample"),S(s,"class","shrink-0 opacity-50 hover:text-red-400 hover:opacity-100"),S(e,"class","flex w-full justify-between gap-x-2 border-b border-gray-200 p-2 hover:bg-gray-50")},m(h,u){L(h,e,u),b(e,l),b(l,n),b(e,o),b(e,s),O(a,s,null),b(e,i),c=!0,f||(E=Le(s,"click",m),f=!0)},p(h,u){r=h,(!c||u&1)&&t!==(t=r[6].text+"")&&ne(n,t)},i(h){c||(k(a.$$.fragment,h),c=!0)},o(h){V(a.$$.fragment,h),c=!1},d(h){h&&g(e),F(a),f=!1,E()}}}function Hl(r){let e,l,t,n,o,s;function a(m){r[3](m)}let i={labelText:"Add example"};r[1]!==void 0&&(i.value=r[1]),l=new nl({props:i}),Ee.push(()=>Ve(l,"value",a)),l.$on("keydown",r[4]);let c=[...r[0]].reverse(),f=[];for(let m=0;m<c.length;m+=1)f[m]=ft(ct(r,c,m));const E=m=>V(f[m],1,1,()=>{f[m]=null});return{c(){e=T("div"),N(l.$$.fragment),n=G(),o=T("div");for(let m=0;m<f.length;m+=1)f[m].c();this.h()},l(m){e=z(m,"DIV",{class:!0});var h=D(e);H(l.$$.fragment,h),h.forEach(g),n=W(m),o=z(m,"DIV",{class:!0});var u=D(o);for(let $=0;$<f.length;$+=1)f[$].l(u);u.forEach(g),this.h()},h(){S(e,"class",""),S(o,"class","flex h-full w-full flex-col overflow-y-auto overflow-x-clip border border-gray-200")},m(m,h){L(m,e,h),O(l,e,null),L(m,n,h),L(m,o,h);for(let u=0;u<f.length;u+=1)f[u]&&f[u].m(o,null);s=!0},p(m,[h]){const u={};if(!t&&h&2&&(t=!0,u.value=m[1],De(()=>t=!1)),l.$set(u),h&5){c=[...m[0]].reverse();let $;for($=0;$<c.length;$+=1){const p=ct(m,c,$);f[$]?(f[$].p(p,h),k(f[$],1)):(f[$]=ft(p),f[$].c(),k(f[$],1),f[$].m(o,null))}for(te(),$=c.length;$<f.length;$+=1)E($);le()}},i(m){if(!s){k(l.$$.fragment,m);for(let h=0;h<c.length;h+=1)k(f[h]);s=!0}},o(m){V(l.$$.fragment,m),f=f.filter(Boolean);for(let h=0;h<f.length;h+=1)V(f[h]);s=!1},d(m){m&&g(e),F(l),m&&g(n),m&&g(o),Ae(f,m)}}}function Ol(r,e,l){let{data:t}=e,n;const o=xt();function s(c){n=c,l(1,n)}const a=c=>{c.key==="Enter"&&(o("add",n),l(1,n=""))},i=c=>o("remove",c.id);return r.$$set=c=>{"data"in c&&l(0,t=c.data)},[t,n,o,s,a,i]}class ut extends ce{constructor(e){super(),fe(this,e,Ol,Hl,ue,{data:0})}}const Ue={not_good:"text-red-600",ok:"text-yellow-600",good:"text-green-600",very_good:"text-blue-600",great:"text-purple-600"},Qe={not_good:"Not good",ok:"OK",good:"Good",very_good:"Very good",great:"Great"};function Fl(r){let e,l,t,n,o,s=Qe[r[0].overall]+"",a,i,c,f,E,m,h,u=$e(r[0].f1)+"",$,p,d,_,v,w,I=$e(r[0].recall)+"",y,P,q,C,B,A,M=$e(r[0].precision)+"",U,re,ee,R,de,oe,se=$e(r[0].roc_auc)+"",me;return{c(){e=T("table"),l=T("tr"),t=T("td"),n=Z("Overall score"),o=T("td"),a=Z(s),c=G(),f=T("tr"),E=T("td"),m=Z("F1"),h=T("td"),$=Z(u),p=G(),d=T("tr"),_=T("td"),v=Z("Recall"),w=T("td"),y=Z(I),P=G(),q=T("tr"),C=T("td"),B=Z("Precision"),A=T("td"),U=Z(M),re=G(),ee=T("tr"),R=T("td"),de=Z("Area under ROC"),oe=T("td"),me=Z(se),this.h()},l(J){e=z(J,"TABLE",{class:!0});var Y=D(e);l=z(Y,"TR",{});var x=D(l);t=z(x,"TD",{class:!0});var Q=D(t);n=j(Q,"Overall score"),Q.forEach(g),o=z(x,"TD",{class:!0});var K=D(o);a=j(K,s),K.forEach(g),x.forEach(g),c=W(Y),f=z(Y,"TR",{});var he=D(f);E=z(he,"TD",{class:!0});var be=D(E);m=j(be,"F1"),be.forEach(g),h=z(he,"TD",{class:!0});var ve=D(h);$=j(ve,u),ve.forEach(g),he.forEach(g),p=W(Y),d=z(Y,"TR",{});var ge=D(d);_=z(ge,"TD",{class:!0});var pe=D(_);v=j(pe,"Recall"),pe.forEach(g),w=z(ge,"TD",{class:!0});var ze=D(w);y=j(ze,I),ze.forEach(g),ge.forEach(g),P=W(Y),q=z(Y,"TR",{});var ke=D(q);C=z(ke,"TD",{class:!0});var We=D(C);B=j(We,"Precision"),We.forEach(g),A=z(ke,"TD",{class:!0});var Ke=D(A);U=j(Ke,M),Ke.forEach(g),ke.forEach(g),re=W(Y),ee=z(Y,"TR",{});var je=D(ee);R=z(je,"TD",{class:!0});var Je=D(R);de=j(Je,"Area under ROC"),Je.forEach(g),oe=z(je,"TD",{class:!0});var Xe=D(oe);me=j(Xe,se),Xe.forEach(g),je.forEach(g),Y.forEach(g),this.h()},h(){S(t,"class","svelte-zc5pc5"),S(o,"class",i=xe(Ue[r[0].overall])+" svelte-zc5pc5"),S(E,"class","svelte-zc5pc5"),S(h,"class","svelte-zc5pc5"),S(_,"class","svelte-zc5pc5"),S(w,"class","svelte-zc5pc5"),S(C,"class","svelte-zc5pc5"),S(A,"class","svelte-zc5pc5"),S(R,"class","svelte-zc5pc5"),S(oe,"class","svelte-zc5pc5"),S(e,"class","svelte-zc5pc5")},m(J,Y){L(J,e,Y),b(e,l),b(l,t),b(t,n),b(l,o),b(o,a),b(e,c),b(e,f),b(f,E),b(E,m),b(f,h),b(h,$),b(e,p),b(e,d),b(d,_),b(_,v),b(d,w),b(w,y),b(e,P),b(e,q),b(q,C),b(C,B),b(q,A),b(A,U),b(e,re),b(e,ee),b(ee,R),b(R,de),b(ee,oe),b(oe,me)},p(J,[Y]){Y&1&&s!==(s=Qe[J[0].overall]+"")&&ne(a,s),Y&1&&i!==(i=xe(Ue[J[0].overall])+" svelte-zc5pc5")&&S(o,"class",i),Y&1&&u!==(u=$e(J[0].f1)+"")&&ne($,u),Y&1&&I!==(I=$e(J[0].recall)+"")&&ne(y,I),Y&1&&M!==(M=$e(J[0].precision)+"")&&ne(U,M),Y&1&&se!==(se=$e(J[0].roc_auc)+"")&&ne(me,se)},i:X,o:X,d(J){J&&g(e)}}}function Ll(r,e,l){let{metrics:t}=e;return r.$$set=n=>{"metrics"in n&&l(0,t=n.metrics)},[t]}class dt extends ce{constructor(e){super(),fe(this,e,Ll,Fl,ue,{metrics:0})}}function Ul(r){const e=r.slice(),l=!0;return e[7]=l,e}function Ql(r){let e,l;function t(){return r[6](r[7])}return e=new Ye({props:{icon:r[4].isLoading?Ge:lt,class:"w-28 text-3xl",$$slots:{default:[Zl]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){N(e.$$.fragment)},l(n){H(e.$$.fragment,n)},m(n,o){O(e,n,o),l=!0},p(n,o){r=n;const s={};o&16&&(s.icon=r[4].isLoading?Ge:lt),o&256&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(k(e.$$.fragment,n),l=!0)},o(n){V(e.$$.fragment,n),l=!1},d(n){F(e,n)}}}function ql(r){let e,l=Qe[r[3].data.metrics.overall]+"",t,n,o,s,a;return{c(){e=T("div"),t=Z(l),this.h()},l(i){e=z(i,"DIV",{class:!0});var c=D(e);t=j(c,l),c.forEach(g),this.h()},h(){S(e,"class",n="concept-score-pill cursor-default text-2xl font-light "+Ue[r[3].data.metrics.overall])},m(i,c){L(i,e,c),b(e,t),s||(a=Nt(o=Ot.call(null,e,{component:dt,props:{metrics:r[3].data.metrics}})),s=!0)},p(i,c){c&8&&l!==(l=Qe[i[3].data.metrics.overall]+"")&&ne(t,l),c&8&&n!==(n="concept-score-pill cursor-default text-2xl font-light "+Ue[i[3].data.metrics.overall])&&S(e,"class",n),o&&el(o.update)&&c&8&&o.update.call(null,{component:dt,props:{metrics:i[3].data.metrics}})},i:X,o:X,d(i){i&&g(e),s=!1,a()}}}function Yl(r){let e,l,t;return l=new Ge({}),{c(){e=T("div"),N(l.$$.fragment),this.h()},l(n){e=z(n,"DIV",{class:!0});var o=D(e);H(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"class","flex flex-col items-center")},m(n,o){L(n,e,o),O(l,e,null),t=!0},p:X,i(n){t||(k(l.$$.fragment,n),t=!0)},o(n){V(l.$$.fragment,n),t=!1},d(n){n&&g(e),F(l)}}}function Zl(r){let e;return{c(){e=Z("Compute")},l(l){e=j(l,"Compute")},m(l,t){L(l,e,t)},d(l){l&&g(e)}}}function jl(r){let e,l,t,n,o,s,a;const i=[Yl,ql,Ql],c=[];function f(m,h){var u,$;return m[3].isFetching?0:($=(u=m[3])==null?void 0:u.data)!=null&&$.metrics?1:2}function E(m,h){return h===2?Ul(m):m}return o=f(r),s=c[o]=i[o](E(r,o)),{c(){e=T("div"),l=T("div"),t=Z(r[1]),n=G(),s.c(),this.h()},l(m){e=z(m,"DIV",{class:!0});var h=D(e);l=z(h,"DIV",{class:!0});var u=D(l);t=j(u,r[1]),u.forEach(g),n=W(h),s.l(h),h.forEach(g),this.h()},h(){S(l,"class","text-gray-500"),S(e,"class","flex w-36 flex-col items-center gap-y-2 rounded-md border border-b-0 border-gray-200 p-4 shadow-md")},m(m,h){L(m,e,h),b(e,l),b(l,t),b(e,n),c[o].m(e,null),a=!0},p(m,[h]){(!a||h&2)&&ne(t,m[1]);let u=o;o=f(m),o===u?c[o].p(E(m,o),h):(te(),V(c[u],1,1,()=>{c[u]=null}),le(),s=c[o],s?s.p(E(m,o),h):(s=c[o]=i[o](E(m,o)),s.c()),k(s,1),s.m(e,null))},i(m){a||(k(s),a=!0)},o(m){V(s),a=!1},d(m){m&&g(e),c[o].d()}}}function Gl(r,e,l){let t,n,o=X,s=()=>(o(),o=ye(t,m=>l(3,n=m)),t),a;r.$$.on_destroy.push(()=>o());let{concept:i}=e,{embedding:c}=e;const f=rl();Ie(r,f,m=>l(4,a=m));const E=m=>a.mutate([i.namespace,i.concept_name,c,m]);return r.$$set=m=>{"concept"in m&&l(0,i=m.concept),"embedding"in m&&l(1,c=m.embedding)},r.$$.update=()=>{r.$$.dirty&3&&s(l(2,t=sl(i.namespace,i.concept_name,c)))},[i,c,t,n,a,f,E]}class Wl extends ce{constructor(e){super(),fe(this,e,Gl,jl,ue,{concept:0,embedding:1})}}function mt(r,e,l){const t=r.slice();return t[21]=e[l],t}function Kl(r){let e;return{c(){e=Z("Compute")},l(l){e=j(l,"Compute")},m(l,t){L(l,e,t)},d(l){l&&g(e)}}}function _t(r){let e,l;return e=new He({props:{value:r[21].name}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&512&&(o.value=t[21].name),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Jl(r){var s;let e,l,t=((s=r[9])==null?void 0:s.data)||[],n=[];for(let a=0;a<t.length;a+=1)n[a]=_t(mt(r,t,a));const o=a=>V(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;a<n.length;a+=1)n[a].c();e=we()},l(a){for(let i=0;i<n.length;i+=1)n[i].l(a);e=we()},m(a,i){for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(a,i);L(a,e,i),l=!0},p(a,i){var c;if(i&512){t=((c=a[9])==null?void 0:c.data)||[];let f;for(f=0;f<t.length;f+=1){const E=mt(a,t,f);n[f]?(n[f].p(E,i),k(n[f],1)):(n[f]=_t(E),n[f].c(),k(n[f],1),n[f].m(e.parentNode,e))}for(te(),f=t.length;f<n.length;f+=1)o(f);le()}},i(a){if(!l){for(let i=0;i<t.length;i+=1)k(n[i]);l=!0}},o(a){n=n.filter(Boolean);for(let i=0;i<n.length;i+=1)V(n[i]);l=!1},d(a){Ae(n,a),a&&g(e)}}}function Xl(r){let e,l;return e=new gl({props:{text:r[0],row:r[4],spanPaths:r[6],valuePaths:r[5],embeddings:r[1]?[r[1]]:[]}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.text=t[0]),n&16&&(o.row=t[4]),n&64&&(o.spanPaths=t[6]),n&32&&(o.valuePaths=t[5]),n&2&&(o.embeddings=t[1]?[t[1]]:[]),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function xl(r){let e,l;return e=new Lt({}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p:X,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function en(r){let e,l,t,n,o,s,a,i,c,f,E,m,h,u,$,p;t=new hl({props:{value:r[3],cols:50,placeholder:"Paste text to try the concept.",rows:6,class:"mb-2"}}),t.$on("input",r[12]),a=new Ye({props:{$$slots:{default:[Kl]},$$scope:{ctx:r}}}),a.$on("click",r[18]);function d(y){r[19](y)}let _={labelText:"Embedding",$$slots:{default:[Jl]},$$scope:{ctx:r}};r[1]!==void 0&&(_.selected=r[1]),f=new Ze({props:_}),Ee.push(()=>Ve(f,"selected",d));const v=[xl,Xl],w=[];function I(y,P){var q;return y[7]&&((q=y[2])!=null&&q.isFetching)?0:y[4]!=null&&y[0]!=null?1:-1}return~(u=I(r))&&($=w[u]=v[u](r)),{c(){e=T("div"),l=T("div"),N(t.$$.fragment),n=G(),o=T("div"),s=T("div"),N(a.$$.fragment),i=G(),c=T("div"),N(f.$$.fragment),m=G(),h=T("div"),$&&$.c(),this.h()},l(y){e=z(y,"DIV",{class:!0});var P=D(e);l=z(P,"DIV",{});var q=D(l);H(t.$$.fragment,q),n=W(q),o=z(q,"DIV",{class:!0});var C=D(o);s=z(C,"DIV",{class:!0});var B=D(s);H(a.$$.fragment,B),B.forEach(g),i=W(C),c=z(C,"DIV",{class:!0});var A=D(c);H(f.$$.fragment,A),A.forEach(g),C.forEach(g),q.forEach(g),m=W(P),h=z(P,"DIV",{class:!0});var M=D(h);$&&$.l(M),M.forEach(g),P.forEach(g),this.h()},h(){S(s,"class","pt-4"),S(c,"class","mb-2 w-32"),S(o,"class","flex flex-row justify-between"),S(h,"class","mt-4 border-gray-200"),Pe(h,"border-t",r[0]!=null),S(e,"class","flex flex-col gap-x-8")},m(y,P){L(y,e,P),b(e,l),O(t,l,null),b(l,n),b(l,o),b(o,s),O(a,s,null),b(o,i),b(o,c),O(f,c,null),b(e,m),b(e,h),~u&&w[u].m(h,null),p=!0},p(y,[P]){const q={};P&8&&(q.value=y[3]),t.$set(q);const C={};P&16777216&&(C.$$scope={dirty:P,ctx:y}),a.$set(C);const B={};P&16777728&&(B.$$scope={dirty:P,ctx:y}),!E&&P&2&&(E=!0,B.selected=y[1],De(()=>E=!1)),f.$set(B);let A=u;u=I(y),u===A?~u&&w[u].p(y,P):($&&(te(),V(w[A],1,1,()=>{w[A]=null}),le()),~u?($=w[u],$?$.p(y,P):($=w[u]=v[u](y),$.c()),k($,1),$.m(h,null)):$=null),(!p||P&1)&&Pe(h,"border-t",y[0]!=null)},i(y){p||(k(t.$$.fragment,y),k(a.$$.fragment,y),k(f.$$.fragment,y),k($),p=!0)},o(y){V(t.$$.fragment,y),V(a.$$.fragment,y),V(f.$$.fragment,y),V($),p=!1},d(y){y&&g(e),F(t),F(a),F(f),~u&&w[u].d()}}}function tn(r,e,l){var M;let t,n,o,s,a=X,i=()=>(a(),a=ye(o,U=>l(2,s=U)),o),c,f=X,E=()=>(f(),f=ye(n,U=>l(17,c=U)),n),m,h;r.$$.on_destroy.push(()=>a()),r.$$.on_destroy.push(()=>f());let{concept:u}=e,{example:$}=e;const p=Ft();Ie(r,p,U=>l(9,h=U));const d=Kt();Ie(r,d,U=>l(20,m=U));let _=(M=$.text)==null?void 0:M.trim();tl(()=>{y()});function v(U){l(3,_=U.target.value),l(0,w=void 0)}let w,I=m.embedding;function y(){l(0,w=_)}let P,q,C;const B=()=>y();function A(U){I=U,l(1,I)}return r.$$set=U=>{"concept"in U&&l(14,u=U.concept),"example"in U&&l(15,$=U.example)},r.$$.update=()=>{var U;if(r.$$.dirty&32768&&$.text&&(l(3,_=$.text.trim()),l(0,w=void 0)),r.$$.dirty&16386&&l(16,t={signal_name:"concept_score",concept_name:u.concept_name,namespace:u.namespace,embedding:I}),r.$$.dirty&65536&&E(l(8,n=t.embedding?al({signal:t}):void 0)),r.$$.dirty&16387&&i(l(7,o=I!=null&&w!=null?il(u.namespace,u.concept_name,I,{examples:[{text:w}]}):null)),r.$$.dirty&196614&&(s==null?void 0:s.data)!=null&&I!=null&&((U=c==null?void 0:c.data)==null?void 0:U.fields)!=null){const re=ol(c.data.fields);re.signal=t,l(4,P=cl(s.data[0],re));const ee=vl(re);l(6,C=ee.spanPaths),l(5,q=ee.valuePaths)}},[w,I,s,_,P,q,C,o,n,h,p,d,v,y,u,$,t,c,B,A]}class ln extends ce{constructor(e){super(),fe(this,e,tn,en,ue,{concept:14,example:15})}}function ht(r,e,l){const t=r.slice();return t[20]=e[l],t}function gt(r,e,l){const t=r.slice();return t[23]=e[l],t}function pt(r,e,l){const t=r.slice();return t[1]=e[l],t}function nn(r){let e,l;return e=new Ze({props:{labelText:"Dataset",selected:r[7],$$slots:{default:[an]},$$scope:{ctx:r}}}),e.$on("change",r[11]),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&128&&(o.selected=t[7]),n&268435472&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function rn(r){let e,l;return e=new Qt({props:{kind:"error",title:"Error",subtitle:r[4].error.message,hideCloseButton:!0}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&16&&(o.subtitle=t[4].error.message),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function sn(r){let e,l;return e=new qt({}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p:X,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function bt(r){let e,l;return e=new He({props:{value:`${r[1].namespace}/${r[1].dataset_name}`}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&16&&(o.value=`${t[1].namespace}/${t[1].dataset_name}`),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function an(r){let e,l,t,n;e=new He({props:{value:"",text:"none"}});let o=r[4].data,s=[];for(let i=0;i<o.length;i+=1)s[i]=bt(pt(r,o,i));const a=i=>V(s[i],1,1,()=>{s[i]=null});return{c(){N(e.$$.fragment),l=G();for(let i=0;i<s.length;i+=1)s[i].c();t=we()},l(i){H(e.$$.fragment,i),l=W(i);for(let c=0;c<s.length;c+=1)s[c].l(i);t=we()},m(i,c){O(e,i,c),L(i,l,c);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(i,c);L(i,t,c),n=!0},p(i,c){if(c&16){o=i[4].data;let f;for(f=0;f<o.length;f+=1){const E=pt(i,o,f);s[f]?(s[f].p(E,c),k(s[f],1)):(s[f]=bt(E),s[f].c(),k(s[f],1),s[f].m(t.parentNode,t))}for(te(),f=o.length;f<s.length;f+=1)a(f);le()}},i(i){if(!n){k(e.$$.fragment,i);for(let c=0;c<o.length;c+=1)k(s[c]);n=!0}},o(i){V(e.$$.fragment,i),s=s.filter(Boolean);for(let c=0;c<s.length;c+=1)V(s[c]);n=!1},d(i){F(e,i),i&&g(l),Ae(s,i),i&&g(t)}}}function on(r){let e,l;return e=new Ze({props:{labelText:"Field with embeddings",selected:r[6],$$slots:{default:[un]},$$scope:{ctx:r}}}),e.$on("change",r[12]),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&64&&(o.selected=t[6]),n&268435460&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function cn(r){let e,l;return e=new Qt({props:{kind:"error",title:"Error",subtitle:r[3].error.message,hideCloseButton:!0}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&8&&(o.subtitle=t[3].error.message),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function fn(r){let e,l;return e=new qt({}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p:X,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function vt(r){let e,l;return e=new He({props:{value:Me(r[23].path)}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.value=Me(t[23].path)),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function un(r){let e,l,t=r[2],n=[];for(let s=0;s<t.length;s+=1)n[s]=vt(gt(r,t,s));const o=s=>V(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=we()},l(s){for(let a=0;a<n.length;a+=1)n[a].l(s);e=we()},m(s,a){for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(s,a);L(s,e,a),l=!0},p(s,a){if(a&4){t=s[2];let i;for(i=0;i<t.length;i+=1){const c=gt(s,t,i);n[i]?(n[i].p(c,a),k(n[i],1)):(n[i]=vt(c),n[i].c(),k(n[i],1),n[i].m(e.parentNode,e))}for(te(),i=t.length;i<n.length;i+=1)o(i);le()}},i(s){if(!l){for(let a=0;a<t.length;a+=1)k(n[a]);l=!0}},o(s){n=n.filter(Boolean);for(let a=0;a<n.length;a+=1)V(n[a]);l=!1},d(s){Ae(n,s),s&&g(e)}}}function $t(r){let e,l,t;function n(s){r[19](s)}let o={labelText:"Embedding",$$slots:{default:[dn]},$$scope:{ctx:r}};return r[0]!==void 0&&(o.selected=r[0]),e=new Ze({props:o}),Ee.push(()=>Ve(e,"selected",n)),{c(){N(e.$$.fragment)},l(s){H(e.$$.fragment,s)},m(s,a){O(e,s,a),t=!0},p(s,a){const i={};a&268435488&&(i.$$scope={dirty:a,ctx:s}),!l&&a&1&&(l=!0,i.selected=s[0],De(()=>l=!1)),e.$set(i)},i(s){t||(k(e.$$.fragment,s),t=!0)},o(s){V(e.$$.fragment,s),t=!1},d(s){F(e,s)}}}function wt(r){let e,l;return e=new He({props:{value:r[20]}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.value=t[20]),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function dn(r){let e,l,t=r[5],n=[];for(let s=0;s<t.length;s+=1)n[s]=wt(ht(r,t,s));const o=s=>V(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=we()},l(s){for(let a=0;a<n.length;a+=1)n[a].l(s);e=we()},m(s,a){for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(s,a);L(s,e,a),l=!0},p(s,a){if(a&32){t=s[5];let i;for(i=0;i<t.length;i+=1){const c=ht(s,t,i);n[i]?(n[i].p(c,a),k(n[i],1)):(n[i]=wt(c),n[i].c(),k(n[i],1),n[i].m(e.parentNode,e))}for(te(),i=t.length;i<n.length;i+=1)o(i);le()}},i(s){if(!l){for(let a=0;a<t.length;a+=1)k(n[a]);l=!0}},o(s){n=n.filter(Boolean);for(let a=0;a<n.length;a+=1)V(n[a]);l=!1},d(s){Ae(n,s),s&&g(e)}}}function mn(r){let e,l,t,n,o,s,a,i,c,f,E;const m=[sn,rn,nn],h=[];function u(v,w){return v[4].isLoading?0:v[4].isError?1:v[4].data.length>0?2:-1}~(t=u(r))&&(n=h[t]=m[t](r));const $=[fn,cn,on],p=[];function d(v,w){return v[3].isLoading?0:v[3].isError?1:v[2].length>0?2:-1}~(a=d(r))&&(i=p[a]=$[a](r));let _=r[5].length>0&&$t(r);return{c(){e=T("div"),l=T("div"),n&&n.c(),o=G(),s=T("div"),i&&i.c(),c=G(),f=T("div"),_&&_.c(),this.h()},l(v){e=z(v,"DIV",{class:!0});var w=D(e);l=z(w,"DIV",{class:!0});var I=D(l);n&&n.l(I),I.forEach(g),o=W(w),s=z(w,"DIV",{class:!0});var y=D(s);i&&i.l(y),y.forEach(g),c=W(w),f=z(w,"DIV",{class:!0});var P=D(f);_&&_.l(P),P.forEach(g),w.forEach(g),this.h()},h(){S(l,"class","w-1/3"),S(s,"class","w-1/3"),S(f,"class","w-1/3"),S(e,"class","flex w-full flex-row gap-x-4")},m(v,w){L(v,e,w),b(e,l),~t&&h[t].m(l,null),b(e,o),b(e,s),~a&&p[a].m(s,null),b(e,c),b(e,f),_&&_.m(f,null),E=!0},p(v,[w]){let I=t;t=u(v),t===I?~t&&h[t].p(v,w):(n&&(te(),V(h[I],1,1,()=>{h[I]=null}),le()),~t?(n=h[t],n?n.p(v,w):(n=h[t]=m[t](v),n.c()),k(n,1),n.m(l,null)):n=null);let y=a;a=d(v),a===y?~a&&p[a].p(v,w):(i&&(te(),V(p[y],1,1,()=>{p[y]=null}),le()),~a?(i=p[a],i?i.p(v,w):(i=p[a]=$[a](v),i.c()),k(i,1),i.m(s,null)):i=null),v[5].length>0?_?(_.p(v,w),w&32&&k(_,1)):(_=$t(v),_.c(),k(_,1),_.m(f,null)):_&&(te(),V(_,1,1,()=>{_=null}),le())},i(v){E||(k(n),k(i),k(_),E=!0)},o(v){V(n),V(i),V(_),E=!1},d(v){v&&g(e),~t&&h[t].d(),~a&&p[a].d(),_&&_.d()}}}function _n(r,e,l){let t,n,o,s,a,i,c,f,E,m=X,h=()=>(m(),m=ye(n,C=>l(3,E=C)),n),u,$;r.$$.on_destroy.push(()=>m());let{dataset:p=void 0}=e,{path:d}=e,{embedding:_=void 0}=e;const v=Kt();Ie(r,v,C=>l(18,$=C));let w;const I=fl();Ie(r,I,C=>l(4,u=C));function y(C){const B=C.target.value;if(B==="")l(1,p=null);else{const[A,M]=B.split("/");l(1,p={namespace:A,name:M})}}function P(C){const B=C.target.value;l(13,d=ml(B))}function q(C){_=C,l(0,_),l(15,c),l(13,d),l(14,w),l(2,i),l(3,E),l(17,a)}return r.$$set=C=>{"dataset"in C&&l(1,p=C.dataset),"path"in C&&l(13,d=C.path),"embedding"in C&&l(0,_=C.embedding)},r.$$.update=()=>{if(r.$$.dirty&262144&&l(16,t=[$.embedding,"gte-small","gte-base","openai","sbert"]),r.$$.dirty&18&&u.data&&u.data.length>0&&p===void 0&&l(1,p={namespace:u.data[0].namespace,name:u.data[0].dataset_name}),r.$$.dirty&2&&h(l(8,n=Ut(p==null?void 0:p.namespace,p==null?void 0:p.name))),r.$$.dirty&2&&l(7,o=p?`${p.namespace}/${p.name}`:""),r.$$.dirty&8&&l(14,w=E.data),r.$$.dirty&16384&&l(17,a=w?Re(w).filter(C=>!ul(C,w)&&C.dtype!=null):[]),r.$$.dirty&131072&&l(2,i=a.filter(C=>Re(C).some(B=>B.signal!=null&&Re(B).some(A=>A.dtype==="embedding")))),r.$$.dirty&8196&&d!=null){const C=Me(d);i.some(A=>Me(A.path)===C)||l(13,d=void 0)}r.$$.dirty&8196&&i.length>0&&d==null&&l(13,d=i[0].path),r.$$.dirty&8192&&l(6,s=d?Me(d):void 0),r.$$.dirty&24576&&l(15,c=d&&w?Re(dl(w,d)).filter(C=>C.signal!=null&&Re(C).some(B=>B.dtype==="embedding")):[]),r.$$.dirty&98304&&l(5,f=c.map(C=>C.signal.signal_name).sort((C,B)=>{let A=t.indexOf(C),M=t.indexOf(B);return A===-1&&(A=t.length),M===-1&&(M=t.length),A-M})),r.$$.dirty&32769&&_!=null&&(c.some(B=>B.path.at(-1)===_)||l(0,_=void 0))},[_,p,i,E,u,f,s,o,n,v,I,y,P,d,w,c,t,a,$,q]}class Xt extends ce{constructor(e){super(),fe(this,e,_n,mn,ue,{dataset:1,path:13,embedding:0})}}function hn(r,e,l,t,n,o){const s={...r};if(e==null||l==null)return s;const a=[...e,...l],i=new Set,c=[];for(const u of a){const $=Be.value(Ne(u,[Oe]),"string");if($==null||i.has($))continue;i.add($);const p=Ne(u,n);if(p==null)continue;const d=Be.value(p,"string");if(d==null)continue;const _=`${t.namespace}/${t.concept_name}`,v=Ne(p,[`${_}/${o}`]);if(v==null)continue;const w=Ne(p,[`${_}/labels`]),I=[];if(w!=null)for(const y of w){const P=Be.value(y,"string_span");P!=null&&I.push(P)}for(const y of v){const P=Be.value(y,"string_span");if(P==null||!I.every(A=>A.start>P.end||A.end<P.start))continue;const C=Ne(y,["score"]);if(C==null)continue;const B=Be.value(C,"float32");B!=null&&c.push({rowid:$,text:d,span:P,score:B})}}function f(u){return{rowid:u.rowid,text:$l(u.text,u.span.start,u.span.end),score:u.score}}c.sort((u,$)=>$.score-u.score);const E=c[0],m=c.slice().reverse().find(u=>u!=E);c.sort((u,$)=>Math.abs(u.score-.5)-Math.abs($.score-.5));const h=c.find(u=>u!=E&&u!=m);return E!=null&&s.positive==null&&(s.positive=f(E)),h!=null&&s.neutral==null&&(s.neutral=f(h)),m!=null&&s.negative==null&&(s.negative=f(m)),s}function kt(r,e,l){const t=r.slice();return t[21]=e[l],t}function gn(r){const e=r.slice(),l=$n(e[21].score);e[24]=l;const t=wn(e[21].score);return e[25]=t,e}function pn(r){let e,l,t,n,o,s,a,i,c,f=r[21].text+"",E,m,h,u=r[25]+"",$,p,d=$e(r[21].score,2)+"",_,v,w,I,y,P;n=new Gt({});function q(){return r[18](r[21])}a=new Wt({});function C(){return r[19](r[21])}return{c(){e=T("div"),l=T("div"),t=T("button"),N(n.$$.fragment),o=G(),s=T("button"),N(a.$$.fragment),i=G(),c=T("div"),E=Z(f),m=G(),h=T("div"),$=Z(u),p=G(),_=Z(d),v=G(),this.h()},l(B){e=z(B,"DIV",{class:!0});var A=D(e);l=z(A,"DIV",{class:!0});var M=D(l);t=z(M,"BUTTON",{class:!0});var U=D(t);H(n.$$.fragment,U),U.forEach(g),o=W(M),s=z(M,"BUTTON",{class:!0});var re=D(s);H(a.$$.fragment,re),re.forEach(g),M.forEach(g),i=W(A),c=z(A,"DIV",{class:!0});var ee=D(c);E=j(ee,f),ee.forEach(g),m=W(A),h=z(A,"DIV",{class:!0});var R=D(h);$=j(R,u),p=W(R),_=j(R,d),R.forEach(g),v=W(A),A.forEach(g),this.h()},h(){S(t,"class","p-2 hover:bg-gray-200"),Pe(t,"text-blue-500",r[21].label===!0),S(s,"class","p-2 hover:bg-gray-200"),Pe(s,"text-red-500",r[21].label===!1),S(l,"class","mr-2 flex flex-shrink-0 gap-x-1"),S(c,"class","flex-grow"),S(h,"class","w-40 flex-shrink-0 text-right"),S(e,"class",w=`flex flex-grow items-center whitespace-break-spaces rounded-md border border-gray-300 p-4 pl-2 ${r[24]}`)},m(B,A){L(B,e,A),b(e,l),b(l,t),O(n,t,null),b(l,o),b(l,s),O(a,s,null),b(e,i),b(e,c),b(c,E),b(e,m),b(e,h),b(h,$),b(h,p),b(h,_),b(e,v),I=!0,y||(P=[Le(t,"click",q),Le(s,"click",C)],y=!0)},p(B,A){r=B,(!I||A&2)&&Pe(t,"text-blue-500",r[21].label===!0),(!I||A&2)&&Pe(s,"text-red-500",r[21].label===!1),(!I||A&2)&&f!==(f=r[21].text+"")&&ne(E,f),(!I||A&2)&&u!==(u=r[25]+"")&&ne($,u),(!I||A&2)&&d!==(d=$e(r[21].score,2)+"")&&ne(_,d),(!I||A&2&&w!==(w=`flex flex-grow items-center whitespace-break-spaces rounded-md border border-gray-300 p-4 pl-2 ${r[24]}`))&&S(e,"class",w)},i(B){I||(k(n.$$.fragment,B),k(a.$$.fragment,B),I=!0)},o(B){V(n.$$.fragment,B),V(a.$$.fragment,B),I=!1},d(B){B&&g(e),F(n),F(a),y=!1,ll(P)}}}function bn(r){let e,l;return e=new Lt({props:{paragraph:!0,lines:2}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p:X,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Et(r){let e,l,t,n,o;const s=[bn,pn],a=[];function i(f,E){return E&3&&(e=null),e==null&&(e=!!(f[21]==null||f[0].includes(f[21].rowid))),e?0:1}function c(f,E){return E===1?gn(f):f}return l=i(r,-1),t=a[l]=s[l](c(r,l)),{c(){t.c(),n=we()},l(f){t.l(f),n=we()},m(f,E){a[l].m(f,E),L(f,n,E),o=!0},p(f,E){let m=l;l=i(f,E),l===m?a[l].p(c(f,l),E):(te(),V(a[m],1,1,()=>{a[m]=null}),le(),t=a[l],t?t.p(c(f,l),E):(t=a[l]=s[l](c(f,l)),t.c()),k(t,1),t.m(n.parentNode,n))},i(f){o||(k(t),o=!0)},o(f){V(t),o=!1},d(f){a[l].d(f),f&&g(n)}}}function vn(r){let e,l,t=r[1],n=[];for(let s=0;s<t.length;s+=1)n[s]=Et(kt(r,t,s));const o=s=>V(n[s],1,1,()=>{n[s]=null});return{c(){e=T("div");for(let s=0;s<n.length;s+=1)n[s].c();this.h()},l(s){e=z(s,"DIV",{class:!0});var a=D(e);for(let i=0;i<n.length;i+=1)n[i].l(a);a.forEach(g),this.h()},h(){S(e,"class","flex flex-col gap-y-4")},m(s,a){L(s,e,a);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(e,null);l=!0},p(s,[a]){if(a&35){t=s[1];let i;for(i=0;i<t.length;i+=1){const c=kt(s,t,i);n[i]?(n[i].p(c,a),k(n[i],1)):(n[i]=Et(c),n[i].c(),k(n[i],1),n[i].m(e,null))}for(te(),i=t.length;i<n.length;i+=1)o(i);le()}},i(s){if(!l){for(let a=0;a<t.length;a+=1)k(n[a]);l=!0}},o(s){n=n.filter(Boolean);for(let a=0;a<n.length;a+=1)V(n[a]);l=!1},d(s){s&&g(e),Ae(n,s)}}}const Vt=100;function $n(r){return r<.2?"bg-red-500/10":r<.8?"bg-yellow-500/10":"bg-blue-500/10"}function wn(r){return r<.2?"Likely not in concept":r<.8?"Uncertain":"Likely in concept"}function kn(r,e,l){let t,n,o,s,a,i,c,f,E=X,m=()=>(E(),E=ye(a,M=>l(16,f=M)),a),h,u=X,$=()=>(u(),u=ye(n,M=>l(17,h=M)),n);r.$$.on_destroy.push(()=>E()),r.$$.on_destroy.push(()=>u());let{dataset:p}=e,{concept:d}=e,{fieldPath:_}=e,{schema:v}=e,{embedding:w}=e;const I=Yt();Ie(r,I,M=>l(20,c=M));let y={},P={},q=[];function C(M,U){if(M==null)return;const re={text:M.text,label:U},ee=Object.keys(P).find(R=>P[R]===M);l(11,y={...P}),l(0,q=[M.rowid,...q]),c.mutate([d.namespace,d.concept_name,{insert:[re]}],{onSuccess:()=>{l(11,y={...y,[ee]:void 0})},onSettled:()=>{l(0,q=q.filter(R=>R!==M.rowid))}})}const B=M=>C(M,!0),A=M=>C(M,!1);return r.$$set=M=>{"dataset"in M&&l(6,p=M.dataset),"concept"in M&&l(7,d=M.concept),"fieldPath"in M&&l(8,_=M.fieldPath),"schema"in M&&l(9,v=M.schema),"embedding"in M&&l(10,w=M.embedding)},r.$$.update=()=>{var M,U;r.$$.dirty&1408&&l(15,t={path:_,type:"concept",concept_namespace:d.namespace,concept_name:d.concept_name,embedding:w}),r.$$.dirty&33600&&$(l(3,n=et(p.namespace,p.name,{columns:[Oe,_],limit:Vt,combine_columns:!0,searches:[t]},v))),r.$$.dirty&1152&&l(14,o={signal_name:"concept_score",namespace:d.namespace,concept_name:d.concept_name,embedding:w}),r.$$.dirty&128&&l(13,s={signal_name:"concept_labels",namespace:d.namespace,concept_name:d.concept_name}),r.$$.dirty&25408&&m(l(2,a=et(p.namespace,p.name,{columns:[Oe,_,{path:_,signal_udf:o},{path:_,signal_udf:s}],limit:Vt,combine_columns:!0,sort_by:[Oe]},v))),r.$$.dirty&200064&&l(12,P=hn(y,h.isFetching||(M=h.data)==null?void 0:M.rows,f.isFetching||(U=f.data)==null?void 0:U.rows,d,_,w)),r.$$.dirty&4096&&l(1,i=[P.positive,P.neutral,P.negative])},[q,i,a,n,I,C,p,d,_,v,w,y,P,s,o,t,f,h,B,A]}class En extends ce{constructor(e){super(),fe(this,e,kn,vn,ue,{dataset:6,concept:7,fieldPath:8,schema:9,embedding:10})}}function Dt(r){let e,l;return e=new Ye({props:{class:"dataset-link top-7 h-8",icon:wl,iconDescription:"Open dataset and apply concept."}}),e.$on("click",r[8]),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p:X,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function It(r){let e,l,t;return l=new En({props:{concept:r[0],dataset:r[1],fieldPath:r[2],schema:r[4],embedding:r[3]}}),{c(){e=T("div"),N(l.$$.fragment)},l(n){e=z(n,"DIV",{});var o=D(e);H(l.$$.fragment,o),o.forEach(g)},m(n,o){L(n,e,o),O(l,e,null),t=!0},p(n,o){const s={};o&1&&(s.concept=n[0]),o&2&&(s.dataset=n[1]),o&4&&(s.fieldPath=n[2]),o&16&&(s.schema=n[4]),o&8&&(s.embedding=n[3]),l.$set(s)},i(n){t||(k(l.$$.fragment,n),t=!0)},o(n){V(l.$$.fragment,n),t=!1},d(n){n&&g(e),F(l)}}}function yt(r){let e,l;return e=new Jt({props:{hideCloseButton:!0,kind:"warning",fullWidth:!0,lowContrast:!0,title:"No embeddings",caption:"Dataset has no fields with computed embeddings. Please compute an embedding index before using the labeler on this dataset."}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Vn(r){let e,l,t,n,o,s,a,i,c,f,E;function m(v){r[10](v)}function h(v){r[11](v)}function u(v){r[12](v)}let $={};r[1]!==void 0&&($.dataset=r[1]),r[2]!==void 0&&($.path=r[2]),r[3]!==void 0&&($.embedding=r[3]),n=new Xt({props:$}),Ee.push(()=>Ve(n,"dataset",m)),Ee.push(()=>Ve(n,"path",h)),Ee.push(()=>Ve(n,"embedding",u));let p=r[5]!=null&&r[3]!=null&&Dt(r),d=r[1]!=null&&r[2]!=null&&r[4]!=null&&r[3]!=null&&It(r),_=r[3]==null&&yt();return{c(){e=T("div"),l=T("div"),t=T("div"),N(n.$$.fragment),i=G(),p&&p.c(),c=G(),d&&d.c(),f=G(),_&&_.c(),this.h()},l(v){e=z(v,"DIV",{class:!0});var w=D(e);l=z(w,"DIV",{class:!0});var I=D(l);t=z(I,"DIV",{class:!0});var y=D(t);H(n.$$.fragment,y),y.forEach(g),i=W(I),p&&p.l(I),I.forEach(g),c=W(w),d&&d.l(w),f=W(w),_&&_.l(w),w.forEach(g),this.h()},h(){S(t,"class","flex-grow"),S(l,"class","flex flex-row gap-x-4"),S(e,"class","flex flex-col gap-y-4")},m(v,w){L(v,e,w),b(e,l),b(l,t),O(n,t,null),b(l,i),p&&p.m(l,null),b(e,c),d&&d.m(e,null),b(e,f),_&&_.m(e,null),E=!0},p(v,[w]){const I={};!o&&w&2&&(o=!0,I.dataset=v[1],De(()=>o=!1)),!s&&w&4&&(s=!0,I.path=v[2],De(()=>s=!1)),!a&&w&8&&(a=!0,I.embedding=v[3],De(()=>a=!1)),n.$set(I),v[5]!=null&&v[3]!=null?p?(p.p(v,w),w&40&&k(p,1)):(p=Dt(v),p.c(),k(p,1),p.m(l,null)):p&&(te(),V(p,1,1,()=>{p=null}),le()),v[1]!=null&&v[2]!=null&&v[4]!=null&&v[3]!=null?d?(d.p(v,w),w&30&&k(d,1)):(d=It(v),d.c(),k(d,1),d.m(e,f)):d&&(te(),V(d,1,1,()=>{d=null}),le()),v[3]==null?_?w&8&&k(_,1):(_=yt(),_.c(),k(_,1),_.m(e,null)):_&&(te(),V(_,1,1,()=>{_=null}),le())},i(v){E||(k(n.$$.fragment,v),k(p),k(d),k(_),E=!0)},o(v){V(n.$$.fragment,v),V(p),V(d),V(_),E=!1},d(v){v&&g(e),F(n),p&&p.d(),d&&d.d(),_&&_.d()}}}function Dn(r,e,l){let t,n,o,s,a=X,i=()=>(a(),a=ye(o,I=>l(13,s=I)),o),c,f=X,E=()=>(f(),f=ye(t,I=>l(9,c=I)),t);r.$$.on_destroy.push(()=>a()),r.$$.on_destroy.push(()=>f());let{concept:m}=e,h,u,$,p;function d(){n==null||p==null||h==null||o==null||s==null||(o.addSearch({path:[n],type:"concept",concept_namespace:m.namespace,concept_name:m.concept_name,embedding:p}),Ht(jt(h.namespace,h.name,s)))}function _(I){h=I,l(1,h)}function v(I){$=I,l(2,$)}function w(I){p=I,l(3,p)}return r.$$set=I=>{"concept"in I&&l(0,m=I.concept)},r.$$.update=()=>{r.$$.dirty&2&&E(l(7,t=Ut(h==null?void 0:h.namespace,h==null?void 0:h.name))),r.$$.dirty&512&&l(4,u=c.data),r.$$.dirty&4&&l(5,n=$?Me($):void 0),r.$$.dirty&14&&i(l(6,o=h!=null&&$!=null&&p!=null?Zt(h.namespace,h.name):null))},[m,h,$,p,u,n,o,t,d,c,_,v,w]}class In extends ce{constructor(e){super(),fe(this,e,Dn,Vn,ue,{concept:0})}}function St(r,e,l){const t=r.slice();return t[27]=e[l],t}function Ct(r){let e,l,t,n,o;return l=new zl({props:{class:"ml-2"}}),{c(){e=T("div"),N(l.$$.fragment)},l(s){e=z(s,"DIV",{});var a=D(e);H(l.$$.fragment,a),a.forEach(g)},m(s,a){L(s,e,a),O(l,e,null),t=!0,n||(o=Nt(Ot.call(null,e,{text:"Your concepts are only visible to you when logged in with Google."})),n=!0)},i(s){t||(k(l.$$.fragment,s),t=!0)},o(s){V(l.$$.fragment,s),t=!1},d(s){s&&g(e),F(l),n=!1,o()}}}function Tt(r){let e,l=r[0].description+"",t;return{c(){e=T("div"),t=Z(l),this.h()},l(n){e=z(n,"DIV",{class:!0});var o=D(e);t=j(o,l),o.forEach(g),this.h()},h(){S(e,"class","text text-base text-gray-600")},m(n,o){L(n,e,o),b(e,t)},p(n,o){o&1&&l!==(l=n[0].description+"")&&ne(t,l)},d(n){n&&g(e)}}}function yn(r){let e,l;return{c(){e=T("div"),l=Z("Try it"),this.h()},l(t){e=z(t,"DIV",{slot:!0,class:!0});var n=D(e);l=j(n,"Try it"),n.forEach(g),this.h()},h(){S(e,"slot","above"),S(e,"class","text-md font-semibold")},m(t,n){L(t,e,n),b(e,l)},p:X,d(t){t&&g(e)}}}function Sn(r){let e,l;return e=new ln({props:{example:r[6],concept:r[0],slot:"below"}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&64&&(o.example=t[6]),n&1&&(o.concept=t[0]),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Cn(r){let e,l;return{c(){e=T("div"),l=Z("Apply to a dataset"),this.h()},l(t){e=z(t,"DIV",{slot:!0,class:!0});var n=D(e);l=j(n,"Apply to a dataset"),n.forEach(g),this.h()},h(){S(e,"slot","above"),S(e,"class","text-md font-semibold")},m(t,n){L(t,e,n),b(e,l)},p:X,d(t){t&&g(e)}}}function Tn(r){let e,l;return e=new Jt({props:{hideCloseButton:!0,kind:"warning",fullWidth:!0,lowContrast:!0,title:"Choose a dataset with a computed embedding",caption:"Dataset has no fields with computed embeddings. Please compute an embedding index before you can search by concept."}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p:X,i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function zn(r){let e,l,t;return l=new Ye({props:{class:"",iconDescription:"Open dataset and apply concept.",$$slots:{default:[Mn]},$$scope:{ctx:r}}}),l.$on("click",r[20]),{c(){e=T("div"),N(l.$$.fragment),this.h()},l(n){e=z(n,"DIV",{class:!0});var o=D(e);H(l.$$.fragment,o),o.forEach(g),this.h()},h(){S(e,"class","mt-4")},m(n,o){L(n,e,o),O(l,e,null),t=!0},p(n,o){const s={};o&1073741824&&(s.$$scope={dirty:o,ctx:n}),l.$set(s)},i(n){t||(k(l.$$.fragment,n),t=!0)},o(n){V(l.$$.fragment,n),t=!1},d(n){n&&g(e),F(l)}}}function Mn(r){let e;return{c(){e=Z("Search by concept")},l(l){e=j(l,"Search by concept")},m(l,t){L(l,e,t)},d(l){l&&g(e)}}}function An(r){let e,l,t,n,o,s,a,i,c;function f(d){r[17](d)}function E(d){r[18](d)}function m(d){r[19](d)}let h={};r[1]!==void 0&&(h.dataset=r[1]),r[2]!==void 0&&(h.path=r[2]),r[3]!==void 0&&(h.embedding=r[3]),l=new Xt({props:h}),Ee.push(()=>Ve(l,"dataset",f)),Ee.push(()=>Ve(l,"path",E)),Ee.push(()=>Ve(l,"embedding",m));const u=[zn,Tn],$=[];function p(d,_){return d[1]!=null&&d[2]!=null&&d[3]!=null?0:1}return a=p(r),i=$[a]=u[a](r),{c(){e=T("div"),N(l.$$.fragment),s=G(),i.c(),this.h()},l(d){e=z(d,"DIV",{slot:!0});var _=D(e);H(l.$$.fragment,_),s=W(_),i.l(_),_.forEach(g),this.h()},h(){S(e,"slot","below")},m(d,_){L(d,e,_),O(l,e,null),b(e,s),$[a].m(e,null),c=!0},p(d,_){const v={};!t&&_&2&&(t=!0,v.dataset=d[1],De(()=>t=!1)),!n&&_&4&&(n=!0,v.path=d[2],De(()=>n=!1)),!o&&_&8&&(o=!0,v.embedding=d[3],De(()=>o=!1)),l.$set(v);let w=a;a=p(d),a===w?$[a].p(d,_):(te(),V($[w],1,1,()=>{$[w]=null}),le(),i=$[a],i?i.p(d,_):(i=$[a]=u[a](d),i.c()),k(i,1),i.m(e,null))},i(d){c||(k(l.$$.fragment,d),k(i),c=!0)},o(d){V(l.$$.fragment,d),V(i),c=!1},d(d){d&&g(e),F(l),$[a].d()}}}function zt(r){let e,l;return e=new Fe({props:{expanded:!0,$$slots:{below:[Rn],above:[Pn]},$$scope:{ctx:r}}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&1073742337&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Pn(r){let e,l;return{c(){e=T("div"),l=Z("Metrics"),this.h()},l(t){e=z(t,"DIV",{slot:!0,class:!0});var n=D(e);l=j(n,"Metrics"),n.forEach(g),this.h()},h(){S(e,"slot","above"),S(e,"class","text-md font-semibold")},m(t,n){L(t,e,n),b(e,l)},p:X,d(t){t&&g(e)}}}function Mt(r){let e,l;return e=new Wl({props:{concept:r[0],embedding:r[27].name}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.concept=t[0]),n&512&&(o.embedding=t[27].name),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Rn(r){let e,l,t=r[9].data,n=[];for(let s=0;s<t.length;s+=1)n[s]=Mt(St(r,t,s));const o=s=>V(n[s],1,1,()=>{n[s]=null});return{c(){e=T("div");for(let s=0;s<n.length;s+=1)n[s].c();this.h()},l(s){e=z(s,"DIV",{slot:!0,class:!0});var a=D(e);for(let i=0;i<n.length;i+=1)n[i].l(a);a.forEach(g),this.h()},h(){S(e,"slot","below"),S(e,"class","model-metrics flex gap-x-4")},m(s,a){L(s,e,a);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(e,null);l=!0},p(s,a){if(a&513){t=s[9].data;let i;for(i=0;i<t.length;i+=1){const c=St(s,t,i);n[i]?(n[i].p(c,a),k(n[i],1)):(n[i]=Mt(c),n[i].c(),k(n[i],1),n[i].m(e,null))}for(te(),i=t.length;i<n.length;i+=1)o(i);le()}},i(s){if(!l){for(let a=0;a<t.length;a+=1)k(n[a]);l=!0}},o(s){n=n.filter(Boolean);for(let a=0;a<n.length;a+=1)V(n[a]);l=!1},d(s){s&&g(e),Ae(n,s)}}}function Bn(r){let e,l;return{c(){e=T("div"),l=Z("Collect labels"),this.h()},l(t){e=z(t,"DIV",{slot:!0,class:!0});var n=D(e);l=j(n,"Collect labels"),n.forEach(g),this.h()},h(){S(e,"slot","above"),S(e,"class","text-md font-semibold")},m(t,n){L(t,e,n),b(e,l)},p:X,d(t){t&&g(e)}}}function Nn(r){let e,l;return e=new In({props:{slot:"below",concept:r[0]}}),{c(){N(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.concept=t[0]),e.$set(o)},i(t){l||(k(e.$$.fragment,t),l=!0)},o(t){V(e.$$.fragment,t),l=!1},d(t){F(e,t)}}}function Hn(r){let e,l,t,n=r[0].concept_name+"",o,s,a,i,c,f,E,m,h,u,$,p,d,_,v,w,I=r[4].length+"",y,P,q,C,B,A,M,U,re,ee=r[7].length+"",R,de,oe,se,me,J=r[8]==r[0].namespace&&Ct(),Y=r[0].description&&Tt(r);c=new Fe({props:{expanded:!0,$$slots:{below:[Sn],above:[yn]},$$scope:{ctx:r}}}),E=new Fe({props:{$$slots:{below:[An],above:[Cn]},$$scope:{ctx:r}}});let x=r[9].data&&zt(r);return u=new Fe({props:{$$slots:{below:[Nn],above:[Bn]},$$scope:{ctx:r}}}),v=new Gt({}),C=new ut({props:{data:r[4]}}),C.$on("remove",r[21]),C.$on("add",r[22]),U=new Wt({}),se=new ut({props:{data:r[7]}}),se.$on("remove",r[23]),se.$on("add",r[24]),{c(){e=T("div"),l=T("div"),t=T("div"),o=Z(n),s=G(),J&&J.c(),a=G(),Y&&Y.c(),i=G(),N(c.$$.fragment),f=G(),N(E.$$.fragment),m=G(),x&&x.c(),h=G(),N(u.$$.fragment),$=G(),p=T("div"),d=T("div"),_=T("span"),N(v.$$.fragment),w=Z(" In concept ("),y=Z(I),P=Z(" examples)"),q=G(),N(C.$$.fragment),B=G(),A=T("div"),M=T("span"),N(U.$$.fragment),re=Z("Not in concept ("),R=Z(ee),de=Z(" examples)"),oe=G(),N(se.$$.fragment),this.h()},l(Q){e=z(Q,"DIV",{class:!0});var K=D(e);l=z(K,"DIV",{});var he=D(l);t=z(he,"DIV",{class:!0});var be=D(t);o=j(be,n),s=W(be),J&&J.l(be),be.forEach(g),a=W(he),Y&&Y.l(he),he.forEach(g),i=W(K),H(c.$$.fragment,K),f=W(K),H(E.$$.fragment,K),m=W(K),x&&x.l(K),h=W(K),H(u.$$.fragment,K),$=W(K),p=z(K,"DIV",{class:!0});var ve=D(p);d=z(ve,"DIV",{class:!0});var ge=D(d);_=z(ge,"SPAN",{class:!0});var pe=D(_);H(v.$$.fragment,pe),w=j(pe," In concept ("),y=j(pe,I),P=j(pe," examples)"),pe.forEach(g),q=W(ge),H(C.$$.fragment,ge),ge.forEach(g),B=W(ve),A=z(ve,"DIV",{class:!0});var ze=D(A);M=z(ze,"SPAN",{class:!0});var ke=D(M);H(U.$$.fragment,ke),re=j(ke,"Not in concept ("),R=j(ke,ee),de=j(ke," examples)"),ke.forEach(g),oe=W(ze),H(se.$$.fragment,ze),ze.forEach(g),ve.forEach(g),K.forEach(g),this.h()},h(){S(t,"class","flex flex-row items-center text-2xl font-semibold"),S(_,"class","flex items-center gap-x-2 text-lg"),S(d,"class","flex w-0 flex-grow flex-col gap-y-4"),S(M,"class","flex items-center gap-x-2 text-lg"),S(A,"class","flex w-0 flex-grow flex-col gap-y-4"),S(p,"class","flex gap-x-4"),S(e,"class","flex h-full w-full flex-col gap-y-8 px-10")},m(Q,K){L(Q,e,K),b(e,l),b(l,t),b(t,o),b(t,s),J&&J.m(t,null),b(l,a),Y&&Y.m(l,null),b(e,i),O(c,e,null),b(e,f),O(E,e,null),b(e,m),x&&x.m(e,null),b(e,h),O(u,e,null),b(e,$),b(e,p),b(p,d),b(d,_),O(v,_,null),b(_,w),b(_,y),b(_,P),b(d,q),O(C,d,null),b(p,B),b(p,A),b(A,M),O(U,M,null),b(M,re),b(M,R),b(M,de),b(A,oe),O(se,A,null),me=!0},p(Q,[K]){(!me||K&1)&&n!==(n=Q[0].concept_name+"")&&ne(o,n),Q[8]==Q[0].namespace?J?K&257&&k(J,1):(J=Ct(),J.c(),k(J,1),J.m(t,null)):J&&(te(),V(J,1,1,()=>{J=null}),le()),Q[0].description?Y?Y.p(Q,K):(Y=Tt(Q),Y.c(),Y.m(l,null)):Y&&(Y.d(1),Y=null);const he={};K&1073741889&&(he.$$scope={dirty:K,ctx:Q}),c.$set(he);const be={};K&1073741838&&(be.$$scope={dirty:K,ctx:Q}),E.$set(be),Q[9].data?x?(x.p(Q,K),K&512&&k(x,1)):(x=zt(Q),x.c(),k(x,1),x.m(e,h)):x&&(te(),V(x,1,1,()=>{x=null}),le());const ve={};K&1073741825&&(ve.$$scope={dirty:K,ctx:Q}),u.$set(ve),(!me||K&16)&&I!==(I=Q[4].length+"")&&ne(y,I);const ge={};K&16&&(ge.data=Q[4]),C.$set(ge),(!me||K&128)&&ee!==(ee=Q[7].length+"")&&ne(R,ee);const pe={};K&128&&(pe.data=Q[7]),se.$set(pe)},i(Q){me||(k(J),k(c.$$.fragment,Q),k(E.$$.fragment,Q),k(x),k(u.$$.fragment,Q),k(v.$$.fragment,Q),k(C.$$.fragment,Q),k(U.$$.fragment,Q),k(se.$$.fragment,Q),me=!0)},o(Q){V(J),V(c.$$.fragment,Q),V(E.$$.fragment,Q),V(x),V(u.$$.fragment,Q),V(v.$$.fragment,Q),V(C.$$.fragment,Q),V(U.$$.fragment,Q),V(se.$$.fragment,Q),me=!1},d(Q){Q&&g(e),J&&J.d(),Y&&Y.d(),F(c),F(E),x&&x.d(),F(u),F(v),F(C),F(U),F(se)}}}function On(r,e,l){let t,n,o,s,a,i,c,f=X,E=()=>(f(),f=ye(a,R=>l(26,c=R)),a),m,h;r.$$.on_destroy.push(()=>f());let{concept:u}=e;const $=_l();Ie(r,$,R=>l(16,m=R));const p=Yt();Ie(r,p,R=>l(25,i=R));const d=Ft();Ie(r,d,R=>l(9,h=R));let _,v,w;function I(){const R=v?Me(v):void 0;R==null||w==null||_==null||a==null||c==null||(a.addSearch({path:[R],type:"concept",concept_namespace:u.namespace,concept_name:u.concept_name,embedding:w}),Ht(jt(_.namespace,_.name,c)))}function y(R){!u.namespace||!u.concept_name||i.mutate([u.namespace,u.concept_name,{remove:[R]}])}function P(R,de){!u.namespace||!u.concept_name||i.mutate([u.namespace,u.concept_name,{insert:[{text:R,label:de}]}])}function q(R){_=R,l(1,_)}function C(R){v=R,l(2,v)}function B(R){w=R,l(3,w)}const A=()=>I(),M=R=>y(R.detail),U=R=>P(R.detail,!0),re=R=>y(R.detail),ee=R=>P(R.detail,!1);return r.$$set=R=>{"concept"in R&&l(0,u=R.concept)},r.$$.update=()=>{var R,de;r.$$.dirty&65536&&l(8,t=(de=(R=m.data)==null?void 0:R.user)==null?void 0:de.id),r.$$.dirty&1&&l(4,n=Object.values(u.data).filter(oe=>oe.label==!0)),r.$$.dirty&1&&l(7,o=Object.values(u.data).filter(oe=>oe.label==!1)),r.$$.dirty&16&&l(6,s=n[Math.floor(Math.random()*n.length)]),r.$$.dirty&14&&E(l(5,a=_!=null&&v!=null&&w!=null?Zt(_.namespace,_.name):null))},[u,_,v,w,n,a,s,o,t,h,$,p,d,I,y,P,m,q,C,B,A,M,U,re,ee]}class Jn extends ce{constructor(e){super(),fe(this,e,On,Hn,ue,{concept:0})}}export{Jn as C,Kn as I,Sl as T,lt as a};
lilac/web/_app/immutable/chunks/Page.3051bdc4.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import{S as ae,i as fe,s as ue,E as q,Z as Y,_ as G,m as D,h,n as E,$ as ke,b as L,a0 as I,L as de,a1 as le,N as ee,Q as re,q as X,r as W,u as ne,D as _e,aq as _t,e as we,a as Q,k as P,a9 as gt,ar as vt,c as Z,l as S,F as se,G as c,H as F,I as ge,J as ve,K as pe,g as V,v as Ee,d as B,f as Te,M as Ve,aj as ut,C as dt,O as Ce,P as pt,j as ct,x as qe,y as K,z as te,A as x,B as $,R as De,w as Ae,ai as kt,p as ye,ae as wt,a7 as je,ab as ht,W as Et,X as Tt,ac as It,a8 as Dt}from"./index.b333a928.js";import{aV as Mt,aW as zt,aX as Ue,aY as Ye,aZ as Ct,j as Ge,a_ as Ot,a$ as At,b0 as Vt,q as Rt,b as mt,h as Fe,b1 as Bt,b2 as Lt,g as Pt,B as St}from"./Commands.543935b9.js";import{w as Se}from"./index.2b0dd2f8.js";function Qe(l){let e,t;return{c(){e=Y("title"),t=X(l[1])},l(i){e=G(i,"title",{});var r=D(e);t=W(r,l[1]),r.forEach(h)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function Nt(l){let e,t,i,r,s=l[1]&&Qe(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 o=0;o<n.length;o+=1)a=q(a,n[o]);return{c(){e=Y("svg"),s&&s.c(),t=Y("circle"),i=Y("circle"),r=Y("circle"),this.h()},l(o){e=G(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var f=D(e);s&&s.l(f),t=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(t).forEach(h),i=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(i).forEach(h),r=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(r).forEach(h),f.forEach(h),this.h()},h(){E(t,"cx","16"),E(t,"cy","8"),E(t,"r","2"),E(i,"cx","16"),E(i,"cy","16"),E(i,"r","2"),E(r,"cx","16"),E(r,"cy","24"),E(r,"r","2"),ke(e,a)},m(o,f){L(o,e,f),s&&s.m(e,null),I(e,t),I(e,i),I(e,r)},p(o,[f]){o[1]?s?s.p(o,f):(s=Qe(o),s.c(),s.m(e,t)):s&&(s.d(1),s=null),ke(e,a=de(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},f&1&&{width:o[0]},f&1&&{height:o[0]},f&4&&o[2],f&8&&o[3]]))},i:le,o:le,d(o){o&&h(e),s&&s.d()}}}function qt(l,e,t){let i,r;const s=["size","title"];let n=ee(e,s),{size:a=16}=e,{title:o=void 0}=e;return l.$$set=f=>{t(5,e=q(q({},e),re(f))),t(3,n=ee(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,o=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||o),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=re(e),[a,o,r,n,i]}class yt extends ae{constructor(e){super(),fe(this,e,qt,Nt,ue,{size:0,title:1})}}const Ht=yt;function Ze(l){let e,t;return{c(){e=Y("title"),t=X(l[1])},l(i){e=G(i,"title",{});var r=D(e);t=W(r,l[1]),r.forEach(h)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function Ut(l){let e,t,i,r,s=l[1]&&Ze(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 o=0;o<n.length;o+=1)a=q(a,n[o]);return{c(){e=Y("svg"),s&&s.c(),t=Y("circle"),i=Y("circle"),r=Y("circle"),this.h()},l(o){e=G(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var f=D(e);s&&s.l(f),t=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(t).forEach(h),i=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(i).forEach(h),r=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(r).forEach(h),f.forEach(h),this.h()},h(){E(t,"cx","8"),E(t,"cy","16"),E(t,"r","2"),E(i,"cx","16"),E(i,"cy","16"),E(i,"r","2"),E(r,"cx","24"),E(r,"cy","16"),E(r,"r","2"),ke(e,a)},m(o,f){L(o,e,f),s&&s.m(e,null),I(e,t),I(e,i),I(e,r)},p(o,[f]){o[1]?s?s.p(o,f):(s=Ze(o),s.c(),s.m(e,t)):s&&(s.d(1),s=null),ke(e,a=de(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},f&1&&{width:o[0]},f&1&&{height:o[0]},f&4&&o[2],f&8&&o[3]]))},i:le,o:le,d(o){o&&h(e),s&&s.d()}}}function Yt(l,e,t){let i,r;const s=["size","title"];let n=ee(e,s),{size:a=16}=e,{title:o=void 0}=e;return l.$$set=f=>{t(5,e=q(q({},e),re(f))),t(3,n=ee(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,o=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||o),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=re(e),[a,o,r,n,i]}class Gt extends ae{constructor(e){super(),fe(this,e,Yt,Ut,ue,{size:0,title:1})}}const jt=Gt,Ft=l=>({}),Xe=l=>({});function Qt(l){let e,t,i;var r=l[1];function s(n){return{props:{"aria-label":n[10],title:n[10],class:"bx--overflow-menu__icon "+n[9]}}}return r&&(e=qe(r,s(l))),{c(){e&&K(e.$$.fragment),t=we()},l(n){e&&te(e.$$.fragment,n),t=we()},m(n,a){e&&x(e,n,a),L(n,t,a),i=!0},p(n,a){const o={};if(a[0]&1024&&(o["aria-label"]=n[10]),a[0]&1024&&(o.title=n[10]),a[0]&512&&(o.class="bx--overflow-menu__icon "+n[9]),a[0]&2&&r!==(r=n[1])){if(e){Ee();const f=e;B(f.$$.fragment,1,0,()=>{$(f,1)}),Te()}r?(e=qe(r,s(n)),K(e.$$.fragment),V(e.$$.fragment,1),x(e,t.parentNode,t)):e=null}else r&&e.$set(o)},i(n){i||(e&&V(e.$$.fragment,n),i=!0)},o(n){e&&B(e.$$.fragment,n),i=!1},d(n){n&&h(t),e&&$(e,n)}}}function We(l){let e,t;const i=l[24].default,r=_e(i,l,l[23],null);return{c(){e=P("ul"),r&&r.c(),this.h()},l(s){e=S(s,"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(h),this.h()},h(){E(e,"role","menu"),E(e,"tabindex","-1"),E(e,"aria-label",l[13]),E(e,"data-floating-menu-direction",l[5]),E(e,"class",l[8]),c(e,"bx--overflow-menu-options",!0),c(e,"bx--overflow-menu--flip",l[7]),c(e,"bx--overflow-menu-options--open",l[0]),c(e,"bx--overflow-menu-options--light",l[6]),c(e,"bx--overflow-menu-options--sm",l[4]==="sm"),c(e,"bx--overflow-menu-options--xl",l[4]==="xl"),c(e,"bx--breadcrumb-menu-options",!!l[14])},m(s,n){L(s,e,n),r&&r.m(e,null),l[31](e),t=!0},p(s,n){r&&r.p&&(!t||n[0]&8388608)&&ge(r,i,s,s[23],t?pe(i,s[23],n,null):ve(s[23]),null),(!t||n[0]&8192)&&E(e,"aria-label",s[13]),(!t||n[0]&32)&&E(e,"data-floating-menu-direction",s[5]),(!t||n[0]&256)&&E(e,"class",s[8]),(!t||n[0]&256)&&c(e,"bx--overflow-menu-options",!0),(!t||n[0]&384)&&c(e,"bx--overflow-menu--flip",s[7]),(!t||n[0]&257)&&c(e,"bx--overflow-menu-options--open",s[0]),(!t||n[0]&320)&&c(e,"bx--overflow-menu-options--light",s[6]),(!t||n[0]&272)&&c(e,"bx--overflow-menu-options--sm",s[4]==="sm"),(!t||n[0]&272)&&c(e,"bx--overflow-menu-options--xl",s[4]==="xl"),(!t||n[0]&16640)&&c(e,"bx--breadcrumb-menu-options",!!s[14])},i(s){t||(V(r,s),t=!0)},o(s){B(r,s),t=!1},d(s){s&&h(e),r&&r.d(s),l[31](null)}}}function Zt(l){let e,t,i,r,s,n,a,o;const f=l[24].menu,d=_e(f,l,l[23],Xe),u=d||Qt(l);let b=l[0]&&We(l),g=[{type:"button"},{"aria-haspopup":""},{"aria-expanded":l[0]},{"aria-label":l[13]},{id:l[11]},l[19]],T={};for(let _=0;_<g.length;_+=1)T=q(T,g[_]);return{c(){e=new _t(!1),t=we(),i=Q(),r=P("button"),u&&u.c(),s=Q(),b&&b.c(),this.h()},l(_){const k=gt("svelte-7ztmff",document.head);e=vt(k,!1),t=we(),k.forEach(h),i=Z(_),r=S(_,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-expanded":!0,"aria-label":!0,id:!0});var p=D(r);u&&u.l(p),s=Z(p),b&&b.l(p),p.forEach(h),this.h()},h(){e.a=t,se(r,T),c(r,"bx--overflow-menu",!0),c(r,"bx--overflow-menu--open",l[0]),c(r,"bx--overflow-menu--light",l[6]),c(r,"bx--overflow-menu--sm",l[4]==="sm"),c(r,"bx--overflow-menu--xl",l[4]==="xl")},m(_,k){e.m(l[12],document.head),I(document.head,t),L(_,i,k),L(_,r,k),u&&u.m(r,null),I(r,s),b&&b.m(r,null),r.autofocus&&r.focus(),l[32](r),n=!0,a||(o=[F(window,"click",l[30]),F(r,"click",l[25]),F(r,"click",l[33]),F(r,"mouseover",l[26]),F(r,"mouseenter",l[27]),F(r,"mouseleave",l[28]),F(r,"keydown",l[29]),F(r,"keydown",l[34]),F(r,"focusout",l[35])],a=!0)},p(_,k){(!n||k[0]&4096)&&e.p(_[12]),d?d.p&&(!n||k[0]&8388608)&&ge(d,f,_,_[23],n?pe(f,_[23],k,Ft):ve(_[23]),Xe):u&&u.p&&(!n||k[0]&1538)&&u.p(_,n?k:[-1,-1]),_[0]?b?(b.p(_,k),k[0]&1&&V(b,1)):(b=We(_),b.c(),V(b,1),b.m(r,null)):b&&(Ee(),B(b,1,1,()=>{b=null}),Te()),se(r,T=de(g,[{type:"button"},{"aria-haspopup":""},(!n||k[0]&1)&&{"aria-expanded":_[0]},(!n||k[0]&8192)&&{"aria-label":_[13]},(!n||k[0]&2048)&&{id:_[11]},k[0]&524288&&_[19]])),c(r,"bx--overflow-menu",!0),c(r,"bx--overflow-menu--open",_[0]),c(r,"bx--overflow-menu--light",_[6]),c(r,"bx--overflow-menu--sm",_[4]==="sm"),c(r,"bx--overflow-menu--xl",_[4]==="xl")},i(_){n||(V(u,_),V(b),n=!0)},o(_){B(u,_),B(b),n=!1},d(_){h(t),_&&e.d(),_&&h(i),_&&h(r),u&&u.d(_),b&&b.d(),l[32](null),a=!1,Ve(o)}}}function Xt(l,e,t){let i,r;const s=["size","direction","open","light","flipped","menuOptionsClass","icon","iconClass","iconDescription","id","buttonRef","menuRef"];let n=ee(e,s),a,o,f,{$$slots:d={},$$scope:u}=e,{size:b=void 0}=e,{direction:g="bottom"}=e,{open:T=!1}=e,{light:_=!1}=e,{flipped:k=!1}=e,{menuOptionsClass:p=void 0}=e,{icon:m=Ht}=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:R=null}=e;const oe=ut("BreadcrumbItem"),ce=dt(),he=Se([]);Ce(l,he,v=>t(22,o=v));const j=Se(void 0);Ce(l,j,v=>t(37,f=v));const Me=Se(void 0),U=Se(-1);Ce(l,U,v=>t(21,a=v));let me,J=!0;pt("OverflowMenu",{focusedId:Me,add:({id:v,text:N,primaryFocus:be,disabled:Pe})=>{he.update(He=>(be&&U.set(He.length),[...He,{id:v,text:N,primaryFocus:be,disabled:Pe,index:He.length}]))},update:v=>{j.set(v)},change:v=>{let N=a+v;N<0?N=o.length-1:N>=o.length&&(N=0);let be=o[N].disabled;for(;be;)N=N+v,N<0?N=o.length-1:N>=o.length&&(N=0),be=o[N].disabled;U.set(N)}}),ct(()=>{if(f){const{index:v,text:N}=o.filter(be=>be.id===f)[0];ce("close",{index:v,text:N}),t(0,T=!1)}if(T){const{width:v,height:N}=C.getBoundingClientRect();t(20,me=v),!J&&a<0&&R.focus(),k&&(t(3,R.style.left="auto",R),t(3,R.style.right=0,R)),g==="top"?(t(3,R.style.top="auto",R),t(3,R.style.bottom=N+"px",R)):g==="bottom"&&t(3,R.style.top=N+"px",R),oe&&(t(3,R.style.top=N+10+"px",R),t(3,R.style.left="-11px",R))}T||(he.set([]),j.set(void 0),U.set(0)),J=!1});function y(v){De.call(this,l,v)}function A(v){De.call(this,l,v)}function ie(v){De.call(this,l,v)}function Re(v){De.call(this,l,v)}function z(v){De.call(this,l,v)}const H=({target:v})=>{C&&C.contains(v)||R&&!R.contains(v)&&t(0,T=!1)};function Ie(v){Ae[v?"unshift":"push"](()=>{R=v,t(3,R)})}function Oe(v){Ae[v?"unshift":"push"](()=>{C=v,t(2,C)})}const ze=({target:v})=>{R&&R.contains(v)||(t(0,T=!T),T||ce("close"))},Be=v=>{T&&(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp"].includes(v.key)?v.preventDefault():v.key==="Escape"&&(v.stopPropagation(),ce("close"),t(0,T=!1),C.focus()))},Le=v=>{T&&(C.contains(v.relatedTarget)||(ce("close"),t(0,T=!1)))};return l.$$set=v=>{t(39,e=q(q({},e),re(v))),t(19,n=ee(e,s)),"size"in v&&t(4,b=v.size),"direction"in v&&t(5,g=v.direction),"open"in v&&t(0,T=v.open),"light"in v&&t(6,_=v.light),"flipped"in v&&t(7,k=v.flipped),"menuOptionsClass"in v&&t(8,p=v.menuOptionsClass),"icon"in v&&t(1,m=v.icon),"iconClass"in v&&t(9,O=v.iconClass),"iconDescription"in v&&t(10,M=v.iconDescription),"id"in v&&t(11,w=v.id),"buttonRef"in v&&t(2,C=v.buttonRef),"menuRef"in v&&t(3,R=v.menuRef),"$$scope"in v&&t(23,u=v.$$scope)},l.$$.update=()=>{t(13,i=e["aria-label"]||"menu"),l.$$.dirty[0]&6291456&&o[a]&&Me.set(o[a].id),l.$$.dirty[0]&1050624&&t(12,r=`<style>
2
+ #${w} .bx--overflow-menu-options.bx--overflow-menu-options:after {
3
+ width: ${me?me+"px":"2rem"};
4
+ }
5
+ </style>`)},oe&&t(1,m=jt),e=re(e),[T,m,C,R,b,g,_,k,p,O,M,w,r,i,oe,ce,he,j,U,n,me,a,o,u,d,y,A,ie,Re,z,H,Ie,Oe,ze,Be,Le]}class Wt extends ae{constructor(e){super(),fe(this,e,Xt,Zt,ue,{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 bt=Wt;function Jt(l){let e,t,i,r;const s=l[16].default,n=_e(s,l,l[15],null),a=n||xt(l);let o=[l[7]],f={};for(let d=0;d<o.length;d+=1)f=q(f,o[d]);return{c(){e=P("button"),a&&a.c(),this.h()},l(d){e=S(d,"BUTTON",{});var u=D(e);a&&a.l(u),u.forEach(h),this.h()},h(){se(e,f)},m(d,u){L(d,e,u),a&&a.m(e,null),e.autofocus&&e.focus(),l[24](e),t=!0,i||(r=[F(e,"click",l[19]),F(e,"click",l[25]),F(e,"keydown",l[20]),F(e,"keydown",l[26])],i=!0)},p(d,u){n?n.p&&(!t||u&32768)&&ge(n,s,d,d[15],t?pe(s,d[15],u,null):ve(d[15]),null):a&&a.p&&(!t||u&2)&&a.p(d,t?u:-1),se(e,f=de(o,[u&128&&d[7]]))},i(d){t||(V(a,d),t=!0)},o(d){B(a,d),t=!1},d(d){d&&h(e),a&&a.d(d),l[24](null),i=!1,Ve(r)}}}function Kt(l){let e,t,i,r;const s=l[16].default,n=_e(s,l,l[15],null),a=n||$t(l);let o=[l[7]],f={};for(let d=0;d<o.length;d+=1)f=q(f,o[d]);return{c(){e=P("a"),a&&a.c(),this.h()},l(d){e=S(d,"A",{});var u=D(e);a&&a.l(u),u.forEach(h),this.h()},h(){se(e,f)},m(d,u){L(d,e,u),a&&a.m(e,null),l[21](e),t=!0,i||(r=[F(e,"click",l[17]),F(e,"click",l[22]),F(e,"keydown",l[18]),F(e,"keydown",l[23])],i=!0)},p(d,u){n?n.p&&(!t||u&32768)&&ge(n,s,d,d[15],t?pe(s,d[15],u,null):ve(d[15]),null):a&&a.p&&(!t||u&2)&&a.p(d,t?u:-1),se(e,f=de(o,[u&128&&d[7]]))},i(d){t||(V(a,d),t=!0)},o(d){B(a,d),t=!1},d(d){d&&h(e),a&&a.d(d),l[21](null),i=!1,Ve(r)}}}function xt(l){let e,t;return{c(){e=P("div"),t=X(l[1]),this.h()},l(i){e=S(i,"DIV",{});var r=D(e);t=W(r,l[1]),r.forEach(h),this.h()},h(){c(e,"bx--overflow-menu-options__option-content",!0)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function $t(l){let e,t;return{c(){e=P("div"),t=X(l[1]),this.h()},l(i){e=S(i,"DIV",{});var r=D(e);t=W(r,l[1]),r.forEach(h),this.h()},h(){c(e,"bx--overflow-menu-options__option-content",!0)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function el(l){let e,t,i,r;const s=[Kt,Jt],n=[];function a(d,u){return d[2]?0:1}t=a(l),i=n[t]=s[t](l);let o=[{role:"none"},{id:l[6]},l[11]],f={};for(let d=0;d<o.length;d+=1)f=q(f,o[d]);return{c(){e=P("li"),i.c(),this.h()},l(d){e=S(d,"LI",{role:!0,id:!0});var u=D(e);i.l(u),u.forEach(h),this.h()},h(){se(e,f),c(e,"bx--overflow-menu-options__option",!0),c(e,"bx--overflow-menu--divider",l[4]),c(e,"bx--overflow-menu-options__option--danger",l[5]),c(e,"bx--overflow-menu-options__option--disabled",l[3])},m(d,u){L(d,e,u),n[t].m(e,null),r=!0},p(d,[u]){let b=t;t=a(d),t===b?n[t].p(d,u):(Ee(),B(n[b],1,1,()=>{n[b]=null}),Te(),i=n[t],i?i.p(d,u):(i=n[t]=s[t](d),i.c()),V(i,1),i.m(e,null)),se(e,f=de(o,[{role:"none"},(!r||u&64)&&{id:d[6]},u&2048&&d[11]])),c(e,"bx--overflow-menu-options__option",!0),c(e,"bx--overflow-menu--divider",d[4]),c(e,"bx--overflow-menu-options__option--danger",d[5]),c(e,"bx--overflow-menu-options__option--disabled",d[3])},i(d){r||(V(i),r=!0)},o(d){B(i),r=!1},d(d){d&&h(e),n[t].d()}}}function tl(l,e,t){let i;const r=["text","href","primaryFocus","disabled","hasDivider","danger","requireTitle","id","ref"];let s=ee(e,r),n,{$$slots:a={},$$scope:o}=e;const f=kt(a);let{text:d="Provide text"}=e,{href:u=""}=e,{primaryFocus:b=!1}=e,{disabled:g=!1}=e,{hasDivider:T=!1}=e,{danger:_=!1}=e,{requireTitle:k=!0}=e,{id:p="ccs-"+Math.random().toString(36)}=e,{ref:m=null}=e;const{focusedId:O,add:M,update:w,change:C}=ut("OverflowMenu");Ce(l,O,A=>t(14,n=A)),M({id:p,text:d,primaryFocus:b,disabled:g}),ct(()=>{m&&b&&m.focus()});function R(A){De.call(this,l,A)}function oe(A){De.call(this,l,A)}function ce(A){De.call(this,l,A)}function he(A){De.call(this,l,A)}function j(A){Ae[A?"unshift":"push"](()=>{m=A,t(0,m)})}const Me=()=>{w(p)},U=({key:A})=>{A==="ArrowDown"?C(1):A==="ArrowUp"&&C(-1)};function me(A){Ae[A?"unshift":"push"](()=>{m=A,t(0,m)})}const J=()=>{w(p)},y=({key:A})=>{A==="ArrowDown"?C(1):A==="ArrowUp"&&C(-1)};return l.$$set=A=>{e=q(q({},e),re(A)),t(11,s=ee(e,r)),"text"in A&&t(1,d=A.text),"href"in A&&t(2,u=A.href),"primaryFocus"in A&&t(12,b=A.primaryFocus),"disabled"in A&&t(3,g=A.disabled),"hasDivider"in A&&t(4,T=A.hasDivider),"danger"in A&&t(5,_=A.danger),"requireTitle"in A&&t(13,k=A.requireTitle),"id"in A&&t(6,p=A.id),"ref"in A&&t(0,m=A.ref),"$$scope"in A&&t(15,o=A.$$scope)},l.$$.update=()=>{l.$$.dirty&16448&&t(12,b=n===p),l.$$.dirty&8206&&t(7,i={role:"menuitem",tabindex:"-1",class:"bx--overflow-menu-options__btn",disabled:u?void 0:g,href:u||void 0,title:k?f.default?void 0:d:void 0})},[m,d,u,g,T,_,p,i,O,w,C,s,b,k,n,o,a,R,oe,ce,he,j,Me,U,me,J,y]}class ll extends ae{constructor(e){super(),fe(this,e,tl,el,ue,{text:1,href:2,primaryFocus:12,disabled:3,hasDivider:4,danger:5,requireTitle:13,id:6,ref:0})}}const Ne=ll;function il(l){let e,t,i,r,s,n;const a=l[11].default,o=_e(a,l,l[10],null);let f=[l[9],{style:i=l[9].style+"; "+(l[6]&&"position: relative")}],d={};for(let u=0;u<f.length;u+=1)d=q(d,f[u]);return{c(){e=P("div"),t=P("div"),o&&o.c(),this.h()},l(u){e=S(u,"DIV",{style:!0});var b=D(e);t=S(b,"DIV",{});var g=D(t);o&&o.l(g),g.forEach(h),b.forEach(h),this.h()},h(){c(t,"bx--popover-contents",!0),se(e,d),c(e,"bx--popover",!0),c(e,"bx--popover--caret",l[2]),c(e,"bx--popover--light",l[4]),c(e,"bx--popover--high-contrast",l[5]),c(e,"bx--popover--top",l[3]==="top"),c(e,"bx--popover--top-left",l[3]==="top-left"),c(e,"bx--popover--top-right",l[3]==="top-right"),c(e,"bx--popover--bottom",l[3]==="bottom"),c(e,"bx--popover--bottom-left",l[3]==="bottom-left"),c(e,"bx--popover--bottom-right",l[3]==="bottom-right"),c(e,"bx--popover--left",l[3]==="left"),c(e,"bx--popover--left-bottom",l[3]==="left-bottom"),c(e,"bx--popover--left-top",l[3]==="left-top"),c(e,"bx--popover--right",l[3]==="right"),c(e,"bx--popover--right-bottom",l[3]==="right-bottom"),c(e,"bx--popover--right-top",l[3]==="right-top"),c(e,"bx--popover--open",l[0]),c(e,"bx--popover--relative",l[6])},m(u,b){L(u,e,b),I(e,t),o&&o.m(t,null),l[13](e),r=!0,s||(n=F(window,"click",l[12]),s=!0)},p(u,[b]){o&&o.p&&(!r||b&1024)&&ge(o,a,u,u[10],r?pe(a,u[10],b,null):ve(u[10]),null),se(e,d=de(f,[b&512&&u[9],(!r||b&576&&i!==(i=u[9].style+"; "+(u[6]&&"position: relative")))&&{style:i}])),c(e,"bx--popover",!0),c(e,"bx--popover--caret",u[2]),c(e,"bx--popover--light",u[4]),c(e,"bx--popover--high-contrast",u[5]),c(e,"bx--popover--top",u[3]==="top"),c(e,"bx--popover--top-left",u[3]==="top-left"),c(e,"bx--popover--top-right",u[3]==="top-right"),c(e,"bx--popover--bottom",u[3]==="bottom"),c(e,"bx--popover--bottom-left",u[3]==="bottom-left"),c(e,"bx--popover--bottom-right",u[3]==="bottom-right"),c(e,"bx--popover--left",u[3]==="left"),c(e,"bx--popover--left-bottom",u[3]==="left-bottom"),c(e,"bx--popover--left-top",u[3]==="left-top"),c(e,"bx--popover--right",u[3]==="right"),c(e,"bx--popover--right-bottom",u[3]==="right-bottom"),c(e,"bx--popover--right-top",u[3]==="right-top"),c(e,"bx--popover--open",u[0]),c(e,"bx--popover--relative",u[6])},i(u){r||(V(o,u),r=!0)},o(u){B(o,u),r=!1},d(u){u&&h(e),o&&o.d(u),l[13](null),s=!1,n()}}}function rl(l,e,t){const i=["open","closeOnOutsideClick","caret","align","light","highContrast","relative"];let r=ee(e,i),{$$slots:s={},$$scope:n}=e,{open:a=!1}=e,{closeOnOutsideClick:o=!1}=e,{caret:f=!1}=e,{align:d="top"}=e,{light:u=!1}=e,{highContrast:b=!1}=e,{relative:g=!1}=e;const T=dt();let _=null;const k=m=>{a&&(_.contains(m.target)||(T("click:outside",{target:m.target}),o&&t(0,a=!1)))};function p(m){Ae[m?"unshift":"push"](()=>{_=m,t(7,_)})}return l.$$set=m=>{e=q(q({},e),re(m)),t(9,r=ee(e,i)),"open"in m&&t(0,a=m.open),"closeOnOutsideClick"in m&&t(1,o=m.closeOnOutsideClick),"caret"in m&&t(2,f=m.caret),"align"in m&&t(3,d=m.align),"light"in m&&t(4,u=m.light),"highContrast"in m&&t(5,b=m.highContrast),"relative"in m&&t(6,g=m.relative),"$$scope"in m&&t(10,n=m.$$scope)},[a,o,f,d,u,b,g,_,T,r,n,s,k,p]}class nl extends ae{constructor(e){super(),fe(this,e,rl,il,ue,{open:0,closeOnOutsideClick:1,caret:2,align:3,light:4,highContrast:5,relative:6})}}const ol=nl,sl=l=>({}),Je=l=>({});function al(l){let e;return{c(){e=X(l[4])},l(t){e=W(t,l[4])},m(t,i){L(t,e,i)},p(t,i){i&16&&ne(e,t[4])},d(t){t&&h(e)}}}function Ke(l){let e,t,i;var r=l[10][l[2]];function s(n){return{props:{class:"bx--progress-bar__status-icon"}}}return r&&(e=qe(r,s())),{c(){e&&K(e.$$.fragment),t=we()},l(n){e&&te(e.$$.fragment,n),t=we()},m(n,a){e&&x(e,n,a),L(n,t,a),i=!0},p(n,a){if(a&4&&r!==(r=n[10][n[2]])){if(e){Ee();const o=e;B(o.$$.fragment,1,0,()=>{$(o,1)}),Te()}r?(e=qe(r,s()),K(e.$$.fragment),V(e.$$.fragment,1),x(e,t.parentNode,t)):e=null}},i(n){i||(e&&V(e.$$.fragment,n),i=!0)},o(n){e&&B(e.$$.fragment,n),i=!1},d(n){n&&h(t),e&&$(e,n)}}}function xe(l){let e,t;return{c(){e=P("div"),t=X(l[6]),this.h()},l(i){e=S(i,"DIV",{id:!0});var r=D(e);t=W(r,l[6]),r.forEach(h),this.h()},h(){E(e,"id",l[11]),c(e,"bx--progress-bar__helper-text",!0)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&64&&ne(t,i[6])},d(i){i&&h(e)}}}function fl(l){let e,t,i,r,s,n,a,o,f,d,u,b,g;const T=l[15].labelText,_=_e(T,l,l[14],Je),k=_||al(l);let p=(l[2]==="error"||l[2]==="finished")&&Ke(l),m=l[6]&&xe(l),O=[l[12]],M={};for(let w=0;w<O.length;w+=1)M=q(M,O[w]);return{c(){e=P("div"),t=P("label"),k&&k.c(),i=Q(),p&&p.c(),r=Q(),s=P("div"),n=P("div"),b=Q(),m&&m.c(),this.h()},l(w){e=S(w,"DIV",{});var C=D(e);t=S(C,"LABEL",{for:!0});var R=D(t);k&&k.l(R),i=Z(R),p&&p.l(R),R.forEach(h),r=Z(C),s=S(C,"DIV",{role:!0,id:!0,"aria-busy":!0,"aria-valuemin":!0,"aria-valuemax":!0,"aria-valuenow":!0,"aria-describedby":!0});var oe=D(s);n=S(oe,"DIV",{}),D(n).forEach(h),oe.forEach(h),b=Z(C),m&&m.l(C),C.forEach(h),this.h()},h(){E(t,"for",l[7]),c(t,"bx--progress-bar__label",!0),c(t,"bx--visually-hidden",l[5]),c(n,"bx--progress-bar__bar",!0),ye(n,"transform",l[2]==="active"&&`scaleX(${l[8]/l[0]})`),E(s,"role","progressbar"),E(s,"id",l[7]),E(s,"aria-busy",a=l[2]==="active"),E(s,"aria-valuemin",o=l[9]?void 0:0),E(s,"aria-valuemax",f=l[9]?void 0:l[0]),E(s,"aria-valuenow",d=l[9]?void 0:l[8]),E(s,"aria-describedby",u=l[6]?l[11]:null),c(s,"bx--progress-bar__track",!0),se(e,M),c(e,"bx--progress-bar",!0),c(e,"bx--progress-bar--indeterminate",l[9]),c(e,"bx--progress-bar--big",l[3]==="md"),c(e,"bx--progress-bar--small",l[3]==="sm"),c(e,"bx--progress-bar--inline",l[1]==="inline"),c(e,"bx--progress-bar--indented",l[1]==="indented"),c(e,"bx--progress-bar--error",l[2]==="error"),c(e,"bx--progress-bar--finished",l[2]==="finished")},m(w,C){L(w,e,C),I(e,t),k&&k.m(t,null),I(t,i),p&&p.m(t,null),I(e,r),I(e,s),I(s,n),I(e,b),m&&m.m(e,null),g=!0},p(w,[C]){_?_.p&&(!g||C&16384)&&ge(_,T,w,w[14],g?pe(T,w[14],C,sl):ve(w[14]),Je):k&&k.p&&(!g||C&16)&&k.p(w,g?C:-1),w[2]==="error"||w[2]==="finished"?p?(p.p(w,C),C&4&&V(p,1)):(p=Ke(w),p.c(),V(p,1),p.m(t,null)):p&&(Ee(),B(p,1,1,()=>{p=null}),Te()),(!g||C&128)&&E(t,"for",w[7]),(!g||C&32)&&c(t,"bx--visually-hidden",w[5]),C&261&&ye(n,"transform",w[2]==="active"&&`scaleX(${w[8]/w[0]})`),(!g||C&128)&&E(s,"id",w[7]),(!g||C&4&&a!==(a=w[2]==="active"))&&E(s,"aria-busy",a),(!g||C&512&&o!==(o=w[9]?void 0:0))&&E(s,"aria-valuemin",o),(!g||C&513&&f!==(f=w[9]?void 0:w[0]))&&E(s,"aria-valuemax",f),(!g||C&768&&d!==(d=w[9]?void 0:w[8]))&&E(s,"aria-valuenow",d),(!g||C&64&&u!==(u=w[6]?w[11]:null))&&E(s,"aria-describedby",u),w[6]?m?m.p(w,C):(m=xe(w),m.c(),m.m(e,null)):m&&(m.d(1),m=null),se(e,M=de(O,[C&4096&&w[12]])),c(e,"bx--progress-bar",!0),c(e,"bx--progress-bar--indeterminate",w[9]),c(e,"bx--progress-bar--big",w[3]==="md"),c(e,"bx--progress-bar--small",w[3]==="sm"),c(e,"bx--progress-bar--inline",w[1]==="inline"),c(e,"bx--progress-bar--indented",w[1]==="indented"),c(e,"bx--progress-bar--error",w[2]==="error"),c(e,"bx--progress-bar--finished",w[2]==="finished")},i(w){g||(V(k,w),V(p),g=!0)},o(w){B(k,w),B(p),g=!1},d(w){w&&h(e),k&&k.d(w),p&&p.d(),m&&m.d()}}}function ul(l,e,t){let i;const r=["value","max","kind","status","size","labelText","hideLabel","helperText","id"];let s=ee(e,r),{$$slots:n={},$$scope:a}=e,{value:o=void 0}=e,{max:f=100}=e,{kind:d="default"}=e,{status:u="active"}=e,{size:b="md"}=e,{labelText:g=""}=e,{hideLabel:T=!1}=e,{helperText:_=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e;const p={error:Mt,finished:zt};let m="ccs-"+Math.random().toString(36),O;return l.$$set=M=>{e=q(q({},e),re(M)),t(12,s=ee(e,r)),"value"in M&&t(13,o=M.value),"max"in M&&t(0,f=M.max),"kind"in M&&t(1,d=M.kind),"status"in M&&t(2,u=M.status),"size"in M&&t(3,b=M.size),"labelText"in M&&t(4,g=M.labelText),"hideLabel"in M&&t(5,T=M.hideLabel),"helperText"in M&&t(6,_=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=o===void 0&&u==="active"),l.$$.dirty&8197&&(u==="error"||o<0?t(8,O=0):o>f?t(8,O=f):t(8,O=o))},[f,d,u,b,g,T,_,k,O,i,p,m,s,o,a,n]}class dl extends ae{constructor(e){super(),fe(this,e,ul,fl,ue,{value:13,max:0,kind:1,status:2,size:3,labelText:4,hideLabel:5,helperText:6,id:7})}}const cl=dl;class hl{static login(e){return Ue(Ye,{method:"GET",url:"/google/login",query:{origin_url:e},errors:{422:"Validation Error"}})}static auth(){return Ue(Ye,{method:"GET",url:"/google/auth"})}static logout(){return Ue(Ye,{method:"GET",url:"/google/logout"})}}function $e(l){let e,t;return{c(){e=Y("title"),t=X(l[1])},l(i){e=G(i,"title",{});var r=D(e);t=W(r,l[1]),r.forEach(h)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function ml(l){let e,t,i=l[1]&&$e(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]],s={};for(let n=0;n<r.length;n+=1)s=q(s,r[n]);return{c(){e=Y("svg"),i&&i.c(),t=Y("path"),this.h()},l(n){e=G(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=D(e);i&&i.l(a),t=G(a,"path",{d:!0}),D(t).forEach(h),a.forEach(h),this.h()},h(){E(t,"d","M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"),ke(e,s)},m(n,a){L(n,e,a),i&&i.m(e,null),I(e,t)},p(n,[a]){n[1]?i?i.p(n,a):(i=$e(n),i.c(),i.m(e,t)):i&&(i.d(1),i=null),ke(e,s=de(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:le,o:le,d(n){n&&h(e),i&&i.d()}}}function bl(l,e,t){let i,r;const s=["size","title"];let n=ee(e,s),{size:a=16}=e,{title:o=void 0}=e;return l.$$set=f=>{t(5,e=q(q({},e),re(f))),t(3,n=ee(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,o=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||o),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=re(e),[a,o,r,n,i]}class _l extends ae{constructor(e){super(),fe(this,e,bl,ml,ue,{size:0,title:1})}}function et(l){let e,t;return{c(){e=Y("title"),t=X(l[1])},l(i){e=G(i,"title",{});var r=D(e);t=W(r,l[1]),r.forEach(h)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function gl(l){let e,t,i,r,s=l[1]&&et(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 o=0;o<n.length;o+=1)a=q(a,n[o]);return{c(){e=Y("svg"),s&&s.c(),t=Y("path"),i=Y("circle"),r=Y("path"),this.h()},l(o){e=G(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var f=D(e);s&&s.l(f),t=G(f,"path",{d:!0}),D(t).forEach(h),i=G(f,"circle",{cx:!0,cy:!0,r:!0}),D(i).forEach(h),r=G(f,"path",{d:!0}),D(r).forEach(h),f.forEach(h),this.h()},h(){E(t,"d","M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"),E(i,"cx","16"),E(i,"cy","23.5"),E(i,"r","1.5"),E(r,"d","M17,8H15.5A4.49,4.49,0,0,0,11,12.5V13h2v-.5A2.5,2.5,0,0,1,15.5,10H17a2.5,2.5,0,0,1,0,5H15v4.5h2V17a4.5,4.5,0,0,0,0-9Z"),ke(e,a)},m(o,f){L(o,e,f),s&&s.m(e,null),I(e,t),I(e,i),I(e,r)},p(o,[f]){o[1]?s?s.p(o,f):(s=et(o),s.c(),s.m(e,t)):s&&(s.d(1),s=null),ke(e,a=de(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},f&1&&{width:o[0]},f&1&&{height:o[0]},f&4&&o[2],f&8&&o[3]]))},i:le,o:le,d(o){o&&h(e),s&&s.d()}}}function vl(l,e,t){let i,r;const s=["size","title"];let n=ee(e,s),{size:a=16}=e,{title:o=void 0}=e;return l.$$set=f=>{t(5,e=q(q({},e),re(f))),t(3,n=ee(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,o=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||o),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=re(e),[a,o,r,n,i]}class pl extends ae{constructor(e){super(),fe(this,e,vl,gl,ue,{size:0,title:1})}}function tt(l){let e,t;return{c(){e=Y("title"),t=X(l[1])},l(i){e=G(i,"title",{});var r=D(e);t=W(r,l[1]),r.forEach(h)},m(i,r){L(i,e,r),I(e,t)},p(i,r){r&2&&ne(t,i[1])},d(i){i&&h(e)}}}function kl(l){let e,t,i=l[1]&&tt(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]],s={};for(let n=0;n<r.length;n+=1)s=q(s,r[n]);return{c(){e=Y("svg"),i&&i.c(),t=Y("path"),this.h()},l(n){e=G(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=D(e);i&&i.l(a),t=G(a,"path",{d:!0}),D(t).forEach(h),a.forEach(h),this.h()},h(){E(t,"d","M28,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h24c1.1,0,2-0.9,2-2V6C30,4.9,29.1,4,28,4z M10,26H4V6h6V26z M28,26H12v-9h10.2 l-3.6,3.6L20,22l6-6l-6-6l-1.4,1.4l3.6,3.6H12V6h16V26z"),ke(e,s)},m(n,a){L(n,e,a),i&&i.m(e,null),I(e,t)},p(n,[a]){n[1]?i?i.p(n,a):(i=tt(n),i.c(),i.m(e,t)):i&&(i.d(1),i=null),ke(e,s=de(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:le,o:le,d(n){n&&h(e),i&&i.d()}}}function wl(l,e,t){let i,r;const s=["size","title"];let n=ee(e,s),{size:a=16}=e,{title:o=void 0}=e;return l.$$set=f=>{t(5,e=q(q({},e),re(f))),t(3,n=ee(e,s)),"size"in f&&t(0,a=f.size),"title"in f&&t(1,o=f.title)},l.$$.update=()=>{t(4,i=e["aria-label"]||e["aria-labelledby"]||o),t(2,r={"aria-hidden":i?void 0:!0,role:i?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=re(e),[a,o,r,n,i]}class El extends ae{constructor(e){super(),fe(this,e,wl,kl,ue,{size:0,title:1})}}const Tl=Ct(hl.logout,{onSuccess:()=>{Ge.invalidateQueries([Ot]),Ge.invalidateQueries([At]),Ge.invalidateQueries([Vt])}});function lt(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 it(l){let e,t,i,r,s,n,a,o,f,d,u,b,g;const T=[Ml,Dl,Il],_=[];function k(m,O){return m[5].length?0:m[4].length?1:2}r=k(l),s=_[r]=T[r](l);let p=l[5].length===1&&rt(l);return o=new ol({props:{align:"bottom-right",caret:!0,closeOnOutsideClick:!0,open:l[1],$$slots:{default:[zl]},$$scope:{ctx:l}}}),o.$on("click:outside",l[11]),{c(){e=P("div"),t=P("button"),i=P("div"),s.c(),n=Q(),p&&p.c(),a=Q(),K(o.$$.fragment),this.h()},l(m){e=S(m,"DIV",{});var O=D(e);t=S(O,"BUTTON",{class:!0});var M=D(t);i=S(M,"DIV",{class:!0});var w=D(i);s.l(w),w.forEach(h),n=Z(M),p&&p.l(M),a=Z(M),te(o.$$.fragment,M),M.forEach(h),O.forEach(h),this.h()},h(){E(i,"class","relative z-10 flex gap-x-2"),t.disabled=f=!l[2],E(t,"class","task-button relative h-8 rounded border p-2 transition"),c(t,"opacity-40",!l[2]),c(t,"bg-white",!l[5].length),c(t,"bg-blue-200",l[5].length),c(t,"border-blue-400",l[5].length)},m(m,O){L(m,e,O),I(e,t),I(t,i),_[r].m(i,null),I(t,n),p&&p.m(t,null),I(t,a),x(o,t,null),u=!0,b||(g=[F(t,"click",wt(l[12])),je(d=Fe.call(null,e,{text:l[2]?"":"User does not have access to run tasks."}))],b=!0)},p(m,O){let M=r;r=k(m),r===M?_[r].p(m,O):(Ee(),B(_[M],1,1,()=>{_[M]=null}),Te(),s=_[r],s?s.p(m,O):(s=_[r]=T[r](m),s.c()),V(s,1),s.m(i,null)),m[5].length===1?p?p.p(m,O):(p=rt(m),p.c(),p.m(t,a)):p&&(p.d(1),p=null);const w={};O&2&&(w.open=m[1]),O&262145&&(w.$$scope={dirty:O,ctx:m}),o.$set(w),(!u||O&4&&f!==(f=!m[2]))&&(t.disabled=f),(!u||O&4)&&c(t,"opacity-40",!m[2]),(!u||O&32)&&c(t,"bg-white",!m[5].length),(!u||O&32)&&c(t,"bg-blue-200",m[5].length),(!u||O&32)&&c(t,"border-blue-400",m[5].length),d&&ht(d.update)&&O&4&&d.update.call(null,{text:m[2]?"":"User does not have access to run tasks."})},i(m){u||(V(s),V(o.$$.fragment,m),u=!0)},o(m){B(s),B(o.$$.fragment,m),u=!1},d(m){m&&h(e),_[r].d(),p&&p.d(),$(o),b=!1,Ve(g)}}}function Il(l){let e,t,i;return t=new _l({}),{c(){e=X("Tasks "),K(t.$$.fragment)},l(r){e=W(r,"Tasks "),te(t.$$.fragment,r)},m(r,s){L(r,e,s),x(t,r,s),i=!0},p:le,i(r){i||(V(t.$$.fragment,r),i=!0)},o(r){B(t.$$.fragment,r),i=!1},d(r){r&&h(e),$(t,r)}}}function Dl(l){let e=l[4].length+"",t,i,r=l[4].length>1?"s":"",s;return{c(){t=X(e),i=X(" failed task"),s=X(r)},l(n){t=W(n,e),i=W(n," failed task"),s=W(n,r)},m(n,a){L(n,t,a),L(n,i,a),L(n,s,a)},p(n,a){a&16&&e!==(e=n[4].length+"")&&ne(t,e),a&16&&r!==(r=n[4].length>1?"s":"")&&ne(s,r)},i:le,o:le,d(n){n&&h(t),n&&h(i),n&&h(s)}}}function Ml(l){let e=l[5].length+"",t,i,r=l[5].length>1?"s":"",s,n,a,o;return a=new Bt({props:{withOverlay:!1,small:!0}}),{c(){t=X(e),i=X(" running task"),s=X(r),n=X("... "),K(a.$$.fragment)},l(f){t=W(f,e),i=W(f," running task"),s=W(f,r),n=W(f,"... "),te(a.$$.fragment,f)},m(f,d){L(f,t,d),L(f,i,d),L(f,s,d),L(f,n,d),x(a,f,d),o=!0},p(f,d){(!o||d&32)&&e!==(e=f[5].length+"")&&ne(t,e),(!o||d&32)&&r!==(r=f[5].length>1?"s":"")&&ne(s,r)},i(f){o||(V(a.$$.fragment,f),o=!0)},o(f){B(a.$$.fragment,f),o=!1},d(f){f&&h(t),f&&h(i),f&&h(s),f&&h(n),$(a,f)}}}function rt(l){let e,t=`${l[3]*100}%`;return{c(){e=P("div"),this.h()},l(i){e=S(i,"DIV",{class:!0}),D(e).forEach(h),this.h()},h(){E(e,"class","absolute left-0 top-0 z-0 h-full bg-blue-400 transition"),ye(e,"width",t)},m(i,r){L(i,e,r)},p(i,r){r&8&&t!==(t=`${i[3]*100}%`)&&ye(e,"width",t)},d(i){i&&h(e)}}}function nt(l,e){let t,i,r,s=e[14].name+"",n,a,o,f,d,u;return f=new cl({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=P("div"),i=P("div"),r=P("div"),n=X(s),a=Q(),o=P("div"),K(f.$$.fragment),d=Q(),this.h()},l(b){t=S(b,"DIV",{class:!0});var g=D(t);i=S(g,"DIV",{class:!0});var T=D(i);r=S(T,"DIV",{class:!0});var _=D(r);n=W(_,s),_.forEach(h),T.forEach(h),a=Z(g),o=S(g,"DIV",{class:!0});var k=D(o);te(f.$$.fragment,k),k.forEach(h),d=Z(g),g.forEach(h),this.h()},h(){E(r,"class","mr-2"),E(i,"class","text-s flex flex-row"),E(o,"class","progress-container mt-3"),E(t,"class","relative border-b-2 border-slate-200 p-4 text-left last:border-b-0"),this.first=t},m(b,g){L(b,t,g),I(t,i),I(i,r),I(r,n),I(t,a),I(t,o),x(f,o,null),I(t,d),u=!0},p(b,g){e=b,(!u||g&1)&&s!==(s=e[14].name+"")&&ne(n,s);const T={};g&1&&(T.labelText=e[14].message||""),g&1&&(T.helperText=e[14].status!="completed"?e[14].details:""),g&1&&(T.value=e[14].status==="completed"?1:e[15]),g&1&&(T.status=e[7][e[14].status]),f.$set(T)},i(b){u||(V(f.$$.fragment,b),u=!0)},o(b){B(f.$$.fragment,b),u=!1},d(b){b&&h(t),$(f)}}}function zl(l){let e,t=[],i=new Map,r,s=l[0];const n=a=>a[13];for(let a=0;a<s.length;a+=1){let o=lt(l,s,a),f=n(o);i.set(f,t[a]=nt(f,o))}return{c(){e=P("div");for(let a=0;a<t.length;a+=1)t[a].c();this.h()},l(a){e=S(a,"DIV",{class:!0});var o=D(e);for(let f=0;f<t.length;f+=1)t[f].l(o);o.forEach(h),this.h()},h(){E(e,"class","flex flex-col")},m(a,o){L(a,e,o);for(let f=0;f<t.length;f+=1)t[f]&&t[f].m(e,null);r=!0},p(a,o){o&129&&(s=a[0],Ee(),t=Et(t,o,n,1,a,s,i,e,Tt,nt,null,lt),Te())},i(a){if(!r){for(let o=0;o<s.length;o+=1)V(t[o]);r=!0}},o(a){for(let o=0;o<t.length;o+=1)B(t[o]);r=!1},d(a){a&&h(e);for(let o=0;o<t.length;o+=1)t[o].d()}}}function Cl(l){let e,t,i=l[2]&&it(l);return{c(){i&&i.c(),e=we()},l(r){i&&i.l(r),e=we()},m(r,s){i&&i.m(r,s),L(r,e,s),t=!0},p(r,[s]){r[2]?i?(i.p(r,s),s&4&&V(i,1)):(i=it(r),i.c(),V(i,1),i.m(e.parentNode,e)):i&&(Ee(),B(i,1,1,()=>{i=null}),Te())},i(r){t||(V(i),t=!0)},o(r){B(i),t=!1},d(r){i&&i.d(r),r&&h(e)}}}function Ol(l,e,t){let i,r,s,n,a,o,f;const d=Rt();Ce(l,d,k=>t(10,f=k));let u=!1;const b={pending:"active",completed:"finished",error:"error"},g=mt();Ce(l,g,k=>t(9,o=k));const T=()=>{u&&t(1,u=!1)},_=()=>t(1,u=!u);return l.$$.update=()=>{var k,p,m,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,s=i.filter(([,M])=>M.status==="error")),l.$$.dirty&1024&&t(3,n=((p=f.data)==null?void 0:p.progress)||0),l.$$.dirty&512&&t(2,a=((m=o.data)==null?void 0:m.access.dataset.compute_signals)||((O=o.data)==null?void 0:O.access.create_dataset))},[i,u,a,n,s,r,d,b,g,o,f,T,_]}class Al extends ae{constructor(e){super(),fe(this,e,Ol,Cl,ue,{})}}const Vl=l=>({}),ot=l=>({}),Rl=l=>({}),st=l=>({}),Bl=l=>({}),at=l=>({});function Ll(l){let e,t,i,r,s,n;return e=new Ne({props:{href:"https://lilacml.com",text:"Documentation"}}),i=new Ne({props:{href:"https://discord.gg/YpGxQMyk",text:"Discord"}}),s=new Ne({props:{href:"https://github.com/lilacai/lilac/issues/new",text:"File a bug"}}),{c(){K(e.$$.fragment),t=Q(),K(i.$$.fragment),r=Q(),K(s.$$.fragment)},l(a){te(e.$$.fragment,a),t=Z(a),te(i.$$.fragment,a),r=Z(a),te(s.$$.fragment,a)},m(a,o){x(e,a,o),L(a,t,o),x(i,a,o),L(a,r,o),x(s,a,o),n=!0},p:le,i(a){n||(V(e.$$.fragment,a),V(i.$$.fragment,a),V(s.$$.fragment,a),n=!0)},o(a){B(e.$$.fragment,a),B(i.$$.fragment,a),B(s.$$.fragment,a),n=!1},d(a){$(e,a),a&&h(t),$(i,a),a&&h(r),$(s,a)}}}function ft(l){let e,t,i,r;const s=[Sl,Pl],n=[];function a(o,f){var d;return((d=o[2].data)==null?void 0:d.user)!=null?0:1}return e=a(l),t=n[e]=s[e](l),{c(){t.c(),i=we()},l(o){t.l(o),i=we()},m(o,f){n[e].m(o,f),L(o,i,f),r=!0},p(o,f){let d=e;e=a(o),e===d?n[e].p(o,f):(Ee(),B(n[d],1,1,()=>{n[d]=null}),Te(),t=n[e],t?t.p(o,f):(t=n[e]=s[e](o),t.c()),V(t,1),t.m(i.parentNode,i))},i(o){r||(V(t),r=!0)},o(o){B(t),r=!1},d(o){n[e].d(o),o&&h(i)}}}function Pl(l){let e,t;return e=new St({props:{size:"small",href:l[4],target:l[7],$$slots:{default:[Nl]},$$scope:{ctx:l}}}),{c(){K(e.$$.fragment)},l(i){te(e.$$.fragment,i)},m(i,r){x(e,i,r),t=!0},p(i,r){const s={};r&1024&&(s.$$scope={dirty:r,ctx:i}),e.$set(s)},i(i){t||(V(e.$$.fragment,i),t=!0)},o(i){B(e.$$.fragment,i),t=!1},d(i){$(e,i)}}}function Sl(l){var b;let e,t,i=((b=l[2].data)==null?void 0:b.user.given_name)+"",r,s,n,a,o,f,d,u;return o=new bt({props:{flipped:!0,$$slots:{default:[ql]},$$scope:{ctx:l}}}),{c(){e=P("div"),t=P("div"),r=X(i),n=Q(),a=P("div"),K(o.$$.fragment),this.h()},l(g){e=S(g,"DIV",{class:!0});var T=D(e);t=S(T,"DIV",{class:!0});var _=D(t);r=W(_,i),_.forEach(h),n=Z(T),a=S(T,"DIV",{});var k=D(a);te(o.$$.fragment,k),k.forEach(h),T.forEach(h),this.h()},h(){E(t,"class","ml-2 mr-1 flex"),E(e,"class","flex h-9 flex-row items-center rounded border border-neutral-200")},m(g,T){var _,k;L(g,e,T),I(e,t),I(t,r),I(e,n),I(e,a),x(o,a,null),f=!0,d||(u=je(s=Fe.call(null,t,{text:`Logged into Google as ${(_=l[2].data)==null?void 0:_.user.name} with email ${(k=l[2].data)==null?void 0:k.user.email}`})),d=!0)},p(g,T){var k,p,m;(!f||T&4)&&i!==(i=((k=g[2].data)==null?void 0:k.user.given_name)+"")&&ne(r,i),s&&ht(s.update)&&T&4&&s.update.call(null,{text:`Logged into Google as ${(p=g[2].data)==null?void 0:p.user.name} with email ${(m=g[2].data)==null?void 0:m.user.email}`});const _={};T&1024&&(_.$$scope={dirty:T,ctx:g}),o.$set(_)},i(g){f||(V(o.$$.fragment,g),f=!0)},o(g){B(o.$$.fragment,g),f=!1},d(g){g&&h(e),$(o),d=!1,u()}}}function Nl(l){let e;return{c(){e=X("Login")},l(t){e=W(t,"Login")},m(t,i){L(t,e,i)},d(t){t&&h(e)}}}function ql(l){let e,t;return e=new Ne({props:{class:"optionOne",text:"Logout"}}),e.$on("click",l[6]),{c(){K(e.$$.fragment)},l(i){te(e.$$.fragment,i)},m(i,r){x(e,i,r),t=!0},p:le,i(i){t||(V(e.$$.fragment,i),t=!0)},o(i){B(e.$$.fragment,i),t=!1},d(i){$(e,i)}}}function yl(l){var Re;let e,t,i,r,s,n,a,o,f,d,u,b,g,T,_,k,p,m,O,M,w,C,R,oe,ce;r=new El({});const he=l[8]["header-subtext"],j=_e(he,l,l[10],at),Me=l[8]["header-center"],U=_e(Me,l,l[10],st),me=l[8]["header-right"],J=_e(me,l,l[10],ot);_=new bt({props:{flipped:!0,icon:pl,$$slots:{default:[Ll]},$$scope:{ctx:l}}}),p=new Al({});let y=((Re=l[2].data)==null?void 0:Re.auth_enabled)&&ft(l);const A=l[8].default,ie=_e(A,l,l[10],null);return C=new Lt({}),{c(){e=P("div"),t=P("div"),i=P("button"),K(r.$$.fragment),s=Q(),n=P("div"),a=P("div"),o=P("div"),j&&j.c(),f=Q(),d=P("div"),U&&U.c(),u=Q(),b=P("div"),J&&J.c(),g=Q(),T=P("div"),K(_.$$.fragment),k=Q(),K(p.$$.fragment),m=Q(),y&&y.c(),O=Q(),M=P("div"),ie&&ie.c(),w=Q(),K(C.$$.fragment),this.h()},l(z){e=S(z,"DIV",{class:!0});var H=D(e);t=S(H,"DIV",{class:!0});var Ie=D(t);i=S(Ie,"BUTTON",{class:!0});var Oe=D(i);te(r.$$.fragment,Oe),Oe.forEach(h),s=Z(Ie),n=S(Ie,"DIV",{class:!0});var ze=D(n);a=S(ze,"DIV",{class:!0});var Be=D(a);o=S(Be,"DIV",{});var Le=D(o);j&&j.l(Le),Le.forEach(h),Be.forEach(h),f=Z(ze),d=S(ze,"DIV",{class:!0});var v=D(d);U&&U.l(v),v.forEach(h),u=Z(ze),b=S(ze,"DIV",{class:!0});var N=D(b);J&&J.l(N),g=Z(N),T=S(N,"DIV",{});var be=D(T);te(_.$$.fragment,be),be.forEach(h),k=Z(N),te(p.$$.fragment,N),m=Z(N),y&&y.l(N),N.forEach(h),ze.forEach(h),Ie.forEach(h),O=Z(H),M=S(H,"DIV",{class:!0});var Pe=D(M);ie&&ie.l(Pe),Pe.forEach(h),w=Z(H),te(C.$$.fragment,H),H.forEach(h),this.h()},h(){E(i,"class","opacity-60 hover:bg-gray-200"),c(i,"invisible",l[1].open),E(a,"class","flex flex-row items-center"),E(d,"class","flex-grow flex-row items-center justify-center"),E(b,"class","flex flex-row items-center gap-x-2"),E(n,"class","flex flex-grow flex-row items-center justify-between justify-items-center gap-x-4 py-2 pr-4"),E(t,"class","header flex w-full flex-initial flex-row items-center justify-between justify-items-center border-b border-gray-200"),E(M,"class","relative flex h-full w-full overflow-hidden"),E(e,"class","flex h-full w-full flex-col")},m(z,H){L(z,e,H),I(e,t),I(t,i),x(r,i,null),I(t,s),I(t,n),I(n,a),I(a,o),j&&j.m(o,null),I(n,f),I(n,d),U&&U.m(d,null),I(n,u),I(n,b),J&&J.m(b,null),I(b,g),I(b,T),x(_,T,null),I(b,k),x(p,b,null),I(b,m),y&&y.m(b,null),I(e,O),I(e,M),ie&&ie.m(M,null),I(e,w),x(C,e,null),R=!0,oe||(ce=[je(Fe.call(null,i,{text:"Open sidebar"})),F(i,"click",l[9])],oe=!0)},p(z,[H]){var Oe;(!R||H&2)&&c(i,"invisible",z[1].open),j&&j.p&&(!R||H&1024)&&ge(j,he,z,z[10],R?pe(he,z[10],H,Bl):ve(z[10]),at),U&&U.p&&(!R||H&1024)&&ge(U,Me,z,z[10],R?pe(Me,z[10],H,Rl):ve(z[10]),st),J&&J.p&&(!R||H&1024)&&ge(J,me,z,z[10],R?pe(me,z[10],H,Vl):ve(z[10]),ot);const Ie={};H&1024&&(Ie.$$scope={dirty:H,ctx:z}),_.$set(Ie),(Oe=z[2].data)!=null&&Oe.auth_enabled?y?(y.p(z,H),H&4&&V(y,1)):(y=ft(z),y.c(),V(y,1),y.m(b,null)):y&&(Ee(),B(y,1,1,()=>{y=null}),Te()),ie&&ie.p&&(!R||H&1024)&&ge(ie,A,z,z[10],R?pe(A,z[10],H,null):ve(z[10]),null)},i(z){R||(V(r.$$.fragment,z),V(j,z),V(U,z),V(J,z),V(_.$$.fragment,z),V(p.$$.fragment,z),V(y),V(ie,z),V(C.$$.fragment,z),R=!0)},o(z){B(r.$$.fragment,z),B(j,z),B(U,z),B(J,z),B(_.$$.fragment,z),B(p.$$.fragment,z),B(y),B(ie,z),B(C.$$.fragment,z),R=!1},d(z){z&&h(e),$(r),j&&j.d(z),U&&U.d(z),J&&J.d(z),$(_),$(p),y&&y.d(),ie&&ie.d(z),$(C),oe=!1,Ve(ce)}}}function Hl(l,e,t){let i,r,s,n=le,a=()=>(n(),n=It(i,O=>t(1,s=O)),i),o;l.$$.on_destroy.push(()=>n());let{$$slots:f={},$$scope:d}=e;const u=mt();Ce(l,u,O=>t(2,o=O));const b=location.origin,g=`${b}/google/login?origin_url=${b}`,T=Tl();Ce(l,T,O=>t(11,r=O));function _(){r.mutate([])}const p=window.self!==window.top?"_blank":"",m=()=>Dt(i,s.open=!0,s);return l.$$set=O=>{"$$scope"in O&&t(10,d=O.$$scope)},a(t(0,i=Pt())),[i,s,o,u,g,T,_,p,f,m,d]}class jl extends ae{constructor(e){super(),fe(this,e,Hl,yl,ue,{})}}export{_l as C,bt as O,jl as P,Ne as a,cl as b};
lilac/web/_app/immutable/chunks/RowItemMetadata.56f7680d.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as O,i as Q,s as X,D as de,E as R,k as B,a as te,y as me,l as V,m as p,h as k,c as le,z as ge,n as A,G as D,F as ie,b as W,a0 as P,A as ve,H as q,al as ue,ae as Ze,I as fe,J as ce,K as he,L as re,g as N,d as H,B as ke,M as Re,N as F,C as qe,O as j,P as je,t as Ue,j as Ge,Q as U,q as ae,r as ne,u as se,R as ee,w as Be,aj as Ve,Z as K,_ as J,$ as _e,a1 as be,a7 as Ke,V as Je,e as ze,v as we,f as Ee,W as Oe,X as Qe,p as Me}from"./index.b333a928.js";import{d as Se,w as oe}from"./index.2b0dd2f8.js";import{aK as Xe,d as xe,h as $e,U as et,aT as tt,L as $,aS as lt,Y as it,x as at,z as nt}from"./Commands.543935b9.js";import{t as st,o as rt}from"./notificationsStore.46809e81.js";import{E as ot}from"./StringSpanHighlight.0900fe94.js";const dt=i=>({}),pe=i=>({});function Te(i){let e=i[3].label+"",t;return{c(){t=ae(e)},l(l){t=ne(l,e)},m(l,a){W(l,t,a)},p(l,a){a[0]&8&&e!==(e=l[3].label+"")&&se(t,e)},d(l){l&&k(t)}}}function ut(i){let e,t,l,a,o,d,f,s,n,r,g,M,u=i[3]&&Te(i);o=new Xe({props:{"aria-hidden":"true",title:i[1]}});const c=i[20].default,m=de(c,i,i[19],null);let C=[{role:"navigation"},i[10]],y={};for(let h=0;h<C.length;h+=1)y=R(y,C[h]);const E=i[20].content,v=de(E,i,i[19],pe);return{c(){e=B("div"),t=B("div"),l=B("a"),u&&u.c(),a=te(),me(o.$$.fragment),f=te(),s=B("ul"),m&&m.c(),n=te(),v&&v.c(),this.h()},l(h){e=V(h,"DIV",{role:!0});var w=p(e);t=V(w,"DIV",{role:!0,tabindex:!0,"aria-label":!0});var I=p(t);l=V(I,"A",{tabindex:!0,href:!0});var T=p(l);u&&u.l(T),T.forEach(k),a=le(I),ge(o.$$.fragment,I),I.forEach(k),f=le(w),s=V(w,"UL",{role:!0});var z=p(s);m&&m.l(z),z.forEach(k),w.forEach(k),n=le(h),v&&v.l(h),this.h()},h(){A(l,"tabindex","-1"),A(l,"href",i[2]),D(l,"bx--tabs-trigger-text",!0),A(t,"role","listbox"),A(t,"tabindex","0"),A(t,"aria-label",d=i[11]["aria-label"]||"listbox"),D(t,"bx--tabs-trigger",!0),A(s,"role","tablist"),D(s,"bx--tabs__nav",!0),D(s,"bx--tabs__nav--hidden",i[5]),ie(e,y),D(e,"bx--tabs",!0),D(e,"bx--tabs--container",i[0]==="container")},m(h,w){W(h,e,w),P(e,t),P(t,l),u&&u.m(l,null),P(t,a),ve(o,t,null),P(e,f),P(e,s),m&&m.m(s,null),i[26](s),W(h,n,w),v&&v.m(h,w),r=!0,g||(M=[q(l,"click",ue(i[22])),q(l,"click",Ze(ue(i[23]))),q(t,"click",i[24]),q(t,"keypress",i[21]),q(t,"keypress",i[25])],g=!0)},p(h,w){h[3]?u?u.p(h,w):(u=Te(h),u.c(),u.m(l,null)):u&&(u.d(1),u=null),(!r||w[0]&4)&&A(l,"href",h[2]);const I={};w[0]&2&&(I.title=h[1]),o.$set(I),(!r||w[0]&2048&&d!==(d=h[11]["aria-label"]||"listbox"))&&A(t,"aria-label",d),m&&m.p&&(!r||w[0]&524288)&&fe(m,c,h,h[19],r?he(c,h[19],w,null):ce(h[19]),null),(!r||w[0]&32)&&D(s,"bx--tabs__nav--hidden",h[5]),ie(e,y=re(C,[{role:"navigation"},w[0]&1024&&h[10]])),D(e,"bx--tabs",!0),D(e,"bx--tabs--container",h[0]==="container"),v&&v.p&&(!r||w[0]&524288)&&fe(v,E,h,h[19],r?he(E,h[19],w,dt):ce(h[19]),pe)},i(h){r||(N(o.$$.fragment,h),N(m,h),N(v,h),r=!0)},o(h){H(o.$$.fragment,h),H(m,h),H(v,h),r=!1},d(h){h&&k(e),u&&u.d(),ke(o),m&&m.d(h),i[26](null),h&&k(n),v&&v.d(h),g=!1,Re(M)}}}function ft(i,e,t){let l,a;const o=["selected","type","autoWidth","iconDescription","triggerHref"];let d=F(e,o),f,s,n,r,{$$slots:g={},$$scope:M}=e,{selected:u=0}=e,{type:c="default"}=e,{autoWidth:m=!1}=e,{iconDescription:C="Show menu options"}=e,{triggerHref:y="#"}=e;const E=qe(),v=oe([]);j(i,v,b=>t(18,n=b));const h=Se(v,b=>b.reduce((S,G)=>({...S,[G.id]:G}),{}));j(i,h,b=>t(28,r=b));const w=oe(m),I=oe(void 0);j(i,I,b=>t(16,f=b));const T=oe([]);j(i,T,b=>t(17,s=b));const z=Se(T,b=>b.reduce((S,G)=>({...S,[G.id]:G}),{})),Y=oe(void 0);let Z=null;je("Tabs",{tabs:v,contentById:z,selectedTab:I,selectedContent:Y,useAutoWidth:w,add:b=>{v.update(S=>[...S,{...b,index:S.length}])},addContent:b=>{T.update(S=>[...S,{...b,index:S.length}])},update:b=>{t(14,_=r[b].index)},change:async b=>{let S=_+b;S<0?S=n.length-1:S>=n.length&&(S=0);let G=n[S].disabled;for(;G;)S=S+b,S<0?S=n.length-1:S>=n.length&&(S=0),G=n[S].disabled;t(14,_=S),await Ue();const Ae=Z==null?void 0:Z.querySelectorAll("[role='tab']")[_];Ae==null||Ae.focus()}}),Ge(()=>{t(12,u=_),x>-1&&x!==_&&E("change",_),x=_});let L=!0,_=u,x=-1;function Ne(b){ee.call(this,i,b)}function We(b){ee.call(this,i,b)}const Le=()=>{t(5,L=!L)},He=()=>{t(5,L=!L)},Fe=()=>{t(5,L=!L)};function Ye(b){Be[b?"unshift":"push"](()=>{Z=b,t(4,Z)})}return i.$$set=b=>{t(11,e=R(R({},e),U(b))),t(10,d=F(e,o)),"selected"in b&&t(12,u=b.selected),"type"in b&&t(0,c=b.type),"autoWidth"in b&&t(13,m=b.autoWidth),"iconDescription"in b&&t(1,C=b.iconDescription),"triggerHref"in b&&t(2,y=b.triggerHref),"$$scope"in b&&t(19,M=b.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&4096&&t(14,_=u),i.$$.dirty[0]&278528&&t(3,l=n[_]||void 0),i.$$.dirty[0]&147456&&t(15,a=s[_]||void 0),i.$$.dirty[0]&32776&&(l&&I.set(l.id),a&&Y.set(a.id)),i.$$.dirty[0]&65536&&f&&t(5,L=!0),i.$$.dirty[0]&8192&&w.set(m)},e=U(e),[c,C,y,l,Z,L,v,h,I,T,d,e,u,m,_,a,f,s,n,M,g,Ne,We,Le,He,Fe,Ye]}class ct extends O{constructor(e){super(),Q(this,e,ft,ut,X,{selected:12,type:0,autoWidth:13,iconDescription:1,triggerHref:2},null,[-1,-1])}}const Lt=ct;function ht(i){let e;return{c(){e=ae(i[1])},l(t){e=ne(t,i[1])},m(t,l){W(t,e,l)},p(t,l){l&2&&se(e,t[1])},d(t){t&&k(e)}}}function _t(i){let e,t,l,a,o,d,f;const s=i[15].default,n=de(s,i,i[14],null),r=n||ht(i);let g=[{tabindex:"-1"},{role:"presentation"},i[12]],M={};for(let u=0;u<g.length;u+=1)M=R(M,g[u]);return{c(){e=B("li"),t=B("a"),r&&r.c(),this.h()},l(u){e=V(u,"LI",{tabindex:!0,role:!0});var c=p(e);t=V(c,"A",{role:!0,tabindex:!0,"aria-selected":!0,"aria-disabled":!0,id:!0,href:!0,style:!0});var m=p(t);r&&r.l(m),m.forEach(k),c.forEach(k),this.h()},h(){A(t,"role","tab"),A(t,"tabindex",l=i[3]?"-1":i[4]),A(t,"aria-selected",i[6]),A(t,"aria-disabled",i[3]),A(t,"id",i[5]),A(t,"href",i[2]),A(t,"style",a=i[7]?"width: auto":void 0),D(t,"bx--tabs__nav-link",!0),ie(e,M),D(e,"bx--tabs__nav-item",!0),D(e,"bx--tabs__nav-item--disabled",i[3]),D(e,"bx--tabs__nav-item--selected",i[6])},m(u,c){W(u,e,c),P(e,t),r&&r.m(t,null),i[20](t),o=!0,d||(f=[q(e,"click",ue(i[16])),q(e,"click",ue(i[21])),q(e,"mouseover",i[17]),q(e,"mouseenter",i[18]),q(e,"mouseleave",i[19]),q(e,"keydown",i[22])],d=!0)},p(u,[c]){n?n.p&&(!o||c&16384)&&fe(n,s,u,u[14],o?he(s,u[14],c,null):ce(u[14]),null):r&&r.p&&(!o||c&2)&&r.p(u,o?c:-1),(!o||c&24&&l!==(l=u[3]?"-1":u[4]))&&A(t,"tabindex",l),(!o||c&64)&&A(t,"aria-selected",u[6]),(!o||c&8)&&A(t,"aria-disabled",u[3]),(!o||c&32)&&A(t,"id",u[5]),(!o||c&4)&&A(t,"href",u[2]),(!o||c&128&&a!==(a=u[7]?"width: auto":void 0))&&A(t,"style",a),ie(e,M=re(g,[{tabindex:"-1"},{role:"presentation"},c&4096&&u[12]])),D(e,"bx--tabs__nav-item",!0),D(e,"bx--tabs__nav-item--disabled",u[3]),D(e,"bx--tabs__nav-item--selected",u[6])},i(u){o||(N(r,u),o=!0)},o(u){H(r,u),o=!1},d(u){u&&k(e),r&&r.d(u),i[20](null),d=!1,Re(f)}}}function bt(i,e,t){let l;const a=["label","href","disabled","tabindex","id","ref"];let o=F(e,a),d,f,{$$slots:s={},$$scope:n}=e,{label:r=""}=e,{href:g="#"}=e,{disabled:M=!1}=e,{tabindex:u="0"}=e,{id:c="ccs-"+Math.random().toString(36)}=e,{ref:m=null}=e;const{selectedTab:C,useAutoWidth:y,add:E,update:v,change:h}=Ve("Tabs");j(i,C,_=>t(13,d=_)),j(i,y,_=>t(7,f=_)),E({id:c,label:r,disabled:M});function w(_){ee.call(this,i,_)}function I(_){ee.call(this,i,_)}function T(_){ee.call(this,i,_)}function z(_){ee.call(this,i,_)}function Y(_){Be[_?"unshift":"push"](()=>{m=_,t(0,m)})}const Z=()=>{M||v(c)},L=({key:_})=>{M||(_==="ArrowRight"?h(1):_==="ArrowLeft"?h(-1):(_===" "||_==="Enter")&&v(c))};return i.$$set=_=>{e=R(R({},e),U(_)),t(12,o=F(e,a)),"label"in _&&t(1,r=_.label),"href"in _&&t(2,g=_.href),"disabled"in _&&t(3,M=_.disabled),"tabindex"in _&&t(4,u=_.tabindex),"id"in _&&t(5,c=_.id),"ref"in _&&t(0,m=_.ref),"$$scope"in _&&t(14,n=_.$$scope)},i.$$.update=()=>{i.$$.dirty&8224&&t(6,l=d===c)},[m,r,g,M,u,c,l,f,C,y,v,h,o,d,n,s,w,I,T,z,Y,Z,L]}class mt extends O{constructor(e){super(),Q(this,e,bt,_t,X,{label:1,href:2,disabled:3,tabindex:4,id:5,ref:0})}}const Ht=mt;function gt(i){let e,t,l,a;const o=i[12].default,d=de(o,i,i[11],null);let f=[{role:"tabpanel"},{"aria-labelledby":i[1]},{"aria-hidden":t=!i[2]},{hidden:l=i[2]?void 0:""},{id:i[0]},i[6]],s={};for(let n=0;n<f.length;n+=1)s=R(s,f[n]);return{c(){e=B("div"),d&&d.c(),this.h()},l(n){e=V(n,"DIV",{role:!0,"aria-labelledby":!0,"aria-hidden":!0,id:!0});var r=p(e);d&&d.l(r),r.forEach(k),this.h()},h(){ie(e,s),D(e,"bx--tab-content",!0)},m(n,r){W(n,e,r),d&&d.m(e,null),a=!0},p(n,[r]){d&&d.p&&(!a||r&2048)&&fe(d,o,n,n[11],a?he(o,n[11],r,null):ce(n[11]),null),ie(e,s=re(f,[{role:"tabpanel"},(!a||r&2)&&{"aria-labelledby":n[1]},(!a||r&4&&t!==(t=!n[2]))&&{"aria-hidden":t},(!a||r&4&&l!==(l=n[2]?void 0:""))&&{hidden:l},(!a||r&1)&&{id:n[0]},r&64&&n[6]])),D(e,"bx--tab-content",!0)},i(n){a||(N(d,n),a=!0)},o(n){H(d,n),a=!1},d(n){n&&k(e),d&&d.d(n)}}}function vt(i,e,t){let l,a,o;const d=["id"];let f=F(e,d),s,n,r,{$$slots:g={},$$scope:M}=e,{id:u="ccs-"+Math.random().toString(36)}=e;const{selectedContent:c,addContent:m,tabs:C,contentById:y}=Ve("Tabs");return j(i,c,E=>t(10,r=E)),j(i,C,E=>t(8,s=E)),j(i,y,E=>t(9,n=E)),m({id:u}),i.$$set=E=>{e=R(R({},e),U(E)),t(6,f=F(e,d)),"id"in E&&t(0,u=E.id),"$$scope"in E&&t(11,M=E.$$scope)},i.$$.update=()=>{i.$$.dirty&1025&&t(2,l=r===u),i.$$.dirty&513&&t(7,a=n[u].index),i.$$.dirty&384&&t(1,o=s[a].id)},[u,o,l,c,C,y,f,a,s,n,r,M,g]}class kt extends O{constructor(e){super(),Q(this,e,vt,gt,X,{id:0})}}const Ft=kt;function Pe(i){let e,t;return{c(){e=K("title"),t=ae(i[1])},l(l){e=J(l,"title",{});var a=p(e);t=ne(a,i[1]),a.forEach(k)},m(l,a){W(l,e,a),P(e,t)},p(l,a){a&2&&se(t,l[1])},d(l){l&&k(e)}}}function At(i){let e,t,l=i[1]&&Pe(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],o={};for(let d=0;d<a.length;d+=1)o=R(o,a[d]);return{c(){e=K("svg"),l&&l.c(),t=K("path"),this.h()},l(d){e=J(d,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var f=p(e);l&&l.l(f),t=J(f,"path",{d:!0}),p(t).forEach(k),f.forEach(k),this.h()},h(){A(t,"d","M16 7a3 3 0 113-3A3.0033 3.0033 0 0116 7zm0-4a1 1 0 101 1A1.001 1.001 0 0016 3zM11 30a3 3 0 113-3A3.0033 3.0033 0 0111 30zm0-4a1 1 0 101 1A1.001 1.001 0 0011 26zM7 11a3 3 0 113-3A3.0033 3.0033 0 017 11zM7 7A1 1 0 108 8 1.001 1.001 0 007 7zM21 30a3 3 0 113-3A3.0033 3.0033 0 0121 30zm0-4a1 1 0 101 1A1.001 1.001 0 0021 26zM25 11a3 3 0 113-3A3.0033 3.0033 0 0125 11zm0-4a1 1 0 101 1A1.001 1.001 0 0025 7zM4 21a3 3 0 113-3A3.0033 3.0033 0 014 21zm0-4a1 1 0 101 1A1.001 1.001 0 004 17zM28 21a3 3 0 113-3A3.0033 3.0033 0 0128 21zm0-4a1 1 0 101 1A1.001 1.001 0 0028 17zM16 22a6 6 0 116-6A6.0069 6.0069 0 0116 22zm0-10a4 4 0 104 4A4.0045 4.0045 0 0016 12z"),_e(e,o)},m(d,f){W(d,e,f),l&&l.m(e,null),P(e,t)},p(d,[f]){d[1]?l?l.p(d,f):(l=Pe(d),l.c(),l.m(e,t)):l&&(l.d(1),l=null),_e(e,o=re(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},f&1&&{width:d[0]},f&1&&{height:d[0]},f&4&&d[2],f&8&&d[3]]))},i:be,o:be,d(d){d&&k(e),l&&l.d()}}}function wt(i,e,t){let l,a;const o=["size","title"];let d=F(e,o),{size:f=16}=e,{title:s=void 0}=e;return i.$$set=n=>{t(5,e=R(R({},e),U(n))),t(3,d=F(e,o)),"size"in n&&t(0,f=n.size),"title"in n&&t(1,s=n.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||s),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=U(e),[f,s,a,d,l]}class Et extends O{constructor(e){super(),Q(this,e,wt,At,X,{size:0,title:1})}}function Ce(i){let e,t;return{c(){e=K("title"),t=ae(i[1])},l(l){e=J(l,"title",{});var a=p(e);t=ne(a,i[1]),a.forEach(k)},m(l,a){W(l,e,a),P(e,t)},p(l,a){a&2&&se(t,l[1])},d(l){l&&k(e)}}}function zt(i){let e,t,l,a=i[1]&&Ce(i),o=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],d={};for(let f=0;f<o.length;f+=1)d=R(d,o[f]);return{c(){e=K("svg"),a&&a.c(),t=K("path"),l=K("path"),this.h()},l(f){e=J(f,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=p(e);a&&a.l(s),t=J(s,"path",{d:!0}),p(t).forEach(k),l=J(s,"path",{d:!0}),p(l).forEach(k),s.forEach(k),this.h()},h(){A(t,"d","M30.94,15.66A16.69,16.69,0,0,0,16,5,16.69,16.69,0,0,0,1.06,15.66a1,1,0,0,0,0,.68A16.69,16.69,0,0,0,16,27,16.69,16.69,0,0,0,30.94,16.34,1,1,0,0,0,30.94,15.66ZM16,25c-5.3,0-10.9-3.93-12.93-9C5.1,10.93,10.7,7,16,7s10.9,3.93,12.93,9C26.9,21.07,21.3,25,16,25Z"),A(l,"d","M16,10a6,6,0,1,0,6,6A6,6,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z"),_e(e,d)},m(f,s){W(f,e,s),a&&a.m(e,null),P(e,t),P(e,l)},p(f,[s]){f[1]?a?a.p(f,s):(a=Ce(f),a.c(),a.m(e,t)):a&&(a.d(1),a=null),_e(e,d=re(o,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:f[0]},s&1&&{height:f[0]},s&4&&f[2],s&8&&f[3]]))},i:be,o:be,d(f){f&&k(e),a&&a.d()}}}function Mt(i,e,t){let l,a;const o=["size","title"];let d=F(e,o),{size:f=16}=e,{title:s=void 0}=e;return i.$$set=n=>{t(5,e=R(R({},e),U(n))),t(3,d=F(e,o)),"size"in n&&t(0,f=n.size),"title"in n&&t(1,s=n.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||s),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=U(e),[f,s,a,d,l]}class St extends O{constructor(e){super(),Q(this,e,Mt,zt,X,{size:0,title:1})}}function pt(i){let e,t,l,a,o;const d=[i[3],{type:i[0]?"green":"blue"},{icon:i[2]}];let f={};for(let s=0;s<d.length;s+=1)f=R(f,d[s]);return t=new xe({props:f}),{c(){e=B("div"),me(t.$$.fragment),this.h()},l(s){e=V(s,"DIV",{class:!0});var n=p(e);ge(t.$$.fragment,n),n.forEach(k),this.h()},h(){A(e,"class","signal-badge")},m(s,n){W(s,e,n),ve(t,e,null),l=!0,a||(o=Ke($e.call(null,e,{text:i[1]})),a=!0)},p(s,[n]){const r=n&13?re(d,[n&8&&Je(s[3]),n&1&&{type:s[0]?"green":"blue"},n&4&&{icon:s[2]}]):{};t.$set(r)},i(s){l||(N(t.$$.fragment,s),l=!0)},o(s){H(t.$$.fragment,s),l=!1},d(s){s&&k(e),ke(t),a=!1,o()}}}function Tt(i,e,t){const l=["isPreview"];let a=F(e,l),{isPreview:o=!1}=e;const d=o?"Signal is in preview mode and has not been computed for the whole dataset.":"Generated by a signal.",f=o?St:Et;return i.$$set=s=>{e=R(R({},e),U(s)),t(3,a=F(e,l)),"isPreview"in s&&t(0,o=s.isPreview)},[o,d,f,a]}class Pt extends O{constructor(e){super(),Q(this,e,Tt,pt,X,{isPreview:0})}}function ye(i,e,t){const l=i.slice();return l[0]=e[t],l}function Ie(i){let e,t,l=[],a=new Map,o,d=i[1];const f=s=>nt(s[0].path);for(let s=0;s<d.length;s+=1){let n=ye(i,d,s),r=f(n);a.set(r,l[s]=De(r,n))}return{c(){e=B("div"),t=B("table");for(let s=0;s<l.length;s+=1)l[s].c();this.h()},l(s){e=V(s,"DIV",{class:!0});var n=p(e);t=V(n,"TABLE",{class:!0});var r=p(t);for(let g=0;g<l.length;g+=1)l[g].l(r);r.forEach(k),n.forEach(k),this.h()},h(){A(t,"class","table w-full table-fixed border-collapse px-2 pt-1"),A(e,"class","border-t border-neutral-200 px-2 py-4")},m(s,n){W(s,e,n),P(e,t);for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(t,null);o=!0},p(s,n){n&2&&(d=s[1],we(),l=Oe(l,n,f,1,s,d,a,t,Qe,De,null,ye),Ee())},i(s){if(!o){for(let n=0;n<d.length;n+=1)N(l[n]);o=!0}},o(s){for(let n=0;n<l.length;n+=1)H(l[n]);o=!1},d(s){s&&k(e);for(let n=0;n<l.length;n+=1)l[n].d()}}}function Ct(i){let e,t;return e=new Pt({props:{isPreview:i[0].isPreviewSignal}}),{c(){me(e.$$.fragment)},l(l){ge(e.$$.fragment,l)},m(l,a){ve(e,l,a),t=!0},p(l,a){const o={};a&2&&(o.isPreview=l[0].isPreviewSignal),e.$set(o)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){ke(e,l)}}}function yt(i){var l;let e,t;return e=new ot({props:{hideEmbeddingName:!0,embedding:(l=i[0].field.signal)==null?void 0:l.signal_name}}),{c(){me(e.$$.fragment)},l(a){ge(e.$$.fragment,a)},m(a,o){ve(e,a,o),t=!0},p(a,o){var f;const d={};o&2&&(d.embedding=(f=a[0].field.signal)==null?void 0:f.signal_name),e.$set(d)},i(a){t||(N(e.$$.fragment,a),t=!0)},o(a){H(e.$$.fragment,a),t=!1},d(a){ke(e,a)}}}function De(i,e){let t,l,a,o=e[0].fieldName+"",d,f,s,n,r,g,M,u,c,m=e[0].formattedValue+"",C,y,E,v;const h=[yt,Ct],w=[];function I(T,z){return T[0].isEmbeddingSignal?0:T[0].isSignal?1:-1}return~(r=I(e))&&(g=w[r]=h[r](e)),{key:i,first:null,c(){t=B("tr"),l=B("td"),a=B("span"),d=ae(o),s=te(),n=B("td"),g&&g.c(),M=te(),u=B("td"),c=B("div"),C=ae(m),E=te(),this.h()},l(T){t=V(T,"TR",{class:!0});var z=p(t);l=V(z,"TD",{class:!0});var Y=p(l);a=V(Y,"SPAN",{title:!0});var Z=p(a);d=ne(Z,o),Z.forEach(k),Y.forEach(k),s=le(z),n=V(z,"TD",{class:!0});var L=p(n);g&&g.l(L),L.forEach(k),M=le(z),u=V(z,"TD",{class:!0});var _=p(u);c=V(_,"DIV",{title:!0,class:!0});var x=p(c);C=ne(x,m),x.forEach(k),_.forEach(k),E=le(z),z.forEach(k),this.h()},h(){A(a,"title",f=e[0].fieldName),Me(a,"padding-left",`${e[0].indentLevel*12}px`),A(l,"class","truncate p-2 font-mono text-xs font-medium text-neutral-500"),A(n,"class","w-10"),A(c,"title",y=`${e[0].value}`),A(c,"class","truncate pr-2 text-xs"),D(c,"italic",e[0].formattedValue===null),A(u,"class","p-2"),A(t,"class","border-gray-300"),this.first=t},m(T,z){W(T,t,z),P(t,l),P(l,a),P(a,d),P(t,s),P(t,n),~r&&w[r].m(n,null),P(t,M),P(t,u),P(u,c),P(c,C),P(t,E),v=!0},p(T,z){e=T,(!v||z&2)&&o!==(o=e[0].fieldName+"")&&se(d,o),(!v||z&2&&f!==(f=e[0].fieldName))&&A(a,"title",f),z&2&&Me(a,"padding-left",`${e[0].indentLevel*12}px`);let Y=r;r=I(e),r===Y?~r&&w[r].p(e,z):(g&&(we(),H(w[Y],1,1,()=>{w[Y]=null}),Ee()),~r?(g=w[r],g?g.p(e,z):(g=w[r]=h[r](e),g.c()),N(g,1),g.m(n,null)):g=null),(!v||z&2)&&m!==(m=e[0].formattedValue+"")&&se(C,m),(!v||z&2&&y!==(y=`${e[0].value}`))&&A(c,"title",y),(!v||z&2)&&D(c,"italic",e[0].formattedValue===null)},i(T){v||(N(g),v=!0)},o(T){H(g),v=!1},d(T){T&&k(t),~r&&w[r].d()}}}function It(i){let e,t,l=i[1].length>0&&Ie(i);return{c(){l&&l.c(),e=ze()},l(a){l&&l.l(a),e=ze()},m(a,o){l&&l.m(a,o),W(a,e,o),t=!0},p(a,[o]){a[1].length>0?l?(l.p(a,o),o&2&&N(l,1)):(l=Ie(a),l.c(),N(l,1),l.m(e.parentNode,e)):l&&(we(),H(l,1,1,()=>{l=null}),Ee())},i(a){t||(N(l),t=!0)},o(a){H(l),t=!1},d(a){l&&l.d(a),a&&k(e)}}}function Dt(i,e,t){let l,a,{row:o}=e,{visibleFields:d}=e,{selectRowsSchema:f=void 0}=e;const s=et();j(i,s,r=>t(5,a=r));function n(r){const g=tt(r).filter(u=>st(u,d)),M=g.filter(u=>{var c;return((c=$.field(u))==null?void 0:c.dtype)==="string_span"}).map(u=>$.path(u));return g.filter(u=>!M.some(c=>lt($.path(u),c))).map(u=>{var h;const c=$.field(u),m=$.path(u);let C=$.value(u);if(c.dtype==="string_span")return null;const y=((h=a.data)==null?void 0:h.some(w=>{var I;return w.name===((I=c.signal)==null?void 0:I.signal_name)}))||!1,E=it(c);let v;return y||E&&c.dtype==null||c.dtype==="embedding"||c.repeated_field!=null?v="":C==null?v=null:v=at(C),{indentLevel:m.length-1,fieldName:m[m.length-1],field:c,path:m,isSignal:E,isPreviewSignal:f!=null?rt(f,m):!1,isEmbeddingSignal:y,value:C,formattedValue:v}}).filter(u=>u!=null)}return i.$$set=r=>{"row"in r&&t(0,o=r.row),"visibleFields"in r&&t(3,d=r.visibleFields),"selectRowsSchema"in r&&t(4,f=r.selectRowsSchema)},i.$$.update=()=>{i.$$.dirty&1&&t(1,l=n(o))},[o,l,s,d,f]}class Yt extends O{constructor(e){super(),Q(this,e,Dt,It,X,{row:0,visibleFields:3,selectRowsSchema:4})}}export{Yt as R,Pt as S,Lt as T,Ht as a,Ft as b};
lilac/web/_app/immutable/chunks/StringSpanHighlight.0900fe94.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{S as le,i as ie,s as ne,E as R,k as B,a as U,l as L,m as w,c as X,h as c,F as De,G as C,n as V,b as P,a0 as S,am as Oe,H as O,g as N,v as x,d as A,f as $,L as he,M as ze,N as G,ai as wt,Q as ee,D as Et,I as yt,J as Tt,K as Nt,q as z,r as M,u as Y,y as ae,z as se,A as oe,B as re,R as Q,w as Ct,Z as K,_ as J,$ as fe,a1 as j,a7 as pe,V as Vt,a2 as bt,a3 as Fe,C as Pt,W as gt,X as Ht,p as te,af as Bt,ao as Lt,a4 as At,O as Ye,aj as It,e as Ee,ac as zt,ab as je}from"./index.b333a928.js";import{aL as Mt,d as Rt,h as vt,a0 as Le,y as pt,I as kt,az as Dt,L as Se,z as we,aA as Ot,H as Ft,B as St,aO as Yt}from"./Commands.543935b9.js";import{A as Ue,p as Xe,I as jt,u as Ut,v as Xt,f as Wt}from"./notificationsStore.46809e81.js";import{d as qt}from"./utils.2fa1092a.js";const Gt=i=>({}),We=i=>({});function qe(i){let e,t,l,a;const f=i[20].labelText,o=Et(f,i,i[19],We),n=o||Kt(i);let r=i[5]&&Ge(i);return{c(){e=B("div"),t=B("label"),n&&n.c(),l=U(),r&&r.c(),this.h()},l(s){e=L(s,"DIV",{});var u=w(e);t=L(u,"LABEL",{for:!0});var d=w(t);n&&n.l(d),d.forEach(c),l=X(u),r&&r.l(u),u.forEach(c),this.h()},h(){V(t,"for",i[14]),C(t,"bx--label",!0),C(t,"bx--visually-hidden",i[11]),C(t,"bx--label--disabled",i[7]),C(e,"bx--text-area__label-wrapper",!0)},m(s,u){P(s,e,u),S(e,t),n&&n.m(t,null),S(e,l),r&&r.m(e,null),a=!0},p(s,u){o?o.p&&(!a||u[0]&524288)&&yt(o,f,s,s[19],a?Nt(f,s[19],u,Gt):Tt(s[19]),We):n&&n.p&&(!a||u[0]&1024)&&n.p(s,a?u:[-1,-1]),(!a||u[0]&16384)&&V(t,"for",s[14]),(!a||u[0]&2048)&&C(t,"bx--visually-hidden",s[11]),(!a||u[0]&128)&&C(t,"bx--label--disabled",s[7]),s[5]?r?r.p(s,u):(r=Ge(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(s){a||(N(n,s),a=!0)},o(s){A(n,s),a=!1},d(s){s&&c(e),n&&n.d(s),r&&r.d()}}}function Kt(i){let e;return{c(){e=z(i[10])},l(t){e=M(t,i[10])},m(t,l){P(t,e,l)},p(t,l){l[0]&1024&&Y(e,t[10])},d(t){t&&c(e)}}}function Ge(i){let e,t=i[0].length+"",l,a,f;return{c(){e=B("div"),l=z(t),a=z("/"),f=z(i[5]),this.h()},l(o){e=L(o,"DIV",{});var n=w(e);l=M(n,t),a=M(n,"/"),f=M(n,i[5]),n.forEach(c),this.h()},h(){C(e,"bx--label",!0),C(e,"bx--label--disabled",i[7])},m(o,n){P(o,e,n),S(e,l),S(e,a),S(e,f)},p(o,n){n[0]&1&&t!==(t=o[0].length+"")&&Y(l,t),n[0]&32&&Y(f,o[5]),n[0]&128&&C(e,"bx--label--disabled",o[7])},d(o){o&&c(e)}}}function Ke(i){let e,t;return e=new Mt({props:{class:"bx--text-area__invalid-icon"}}),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function Je(i){let e,t;return{c(){e=B("div"),t=z(i[9]),this.h()},l(l){e=L(l,"DIV",{});var a=w(e);t=M(a,i[9]),a.forEach(c),this.h()},h(){C(e,"bx--form__helper-text",!0),C(e,"bx--form__helper-text--disabled",i[7])},m(l,a){P(l,e,a),S(e,t)},p(l,a){a[0]&512&&Y(t,l[9]),a[0]&128&&C(e,"bx--form__helper-text--disabled",l[7])},d(l){l&&c(e)}}}function Qe(i){let e,t;return{c(){e=B("div"),t=z(i[13]),this.h()},l(l){e=L(l,"DIV",{id:!0});var a=w(e);t=M(a,i[13]),a.forEach(c),this.h()},h(){V(e,"id",i[16]),C(e,"bx--form-requirement",!0)},m(l,a){P(l,e,a),S(e,t)},p(l,a){a[0]&8192&&Y(t,l[13]),a[0]&65536&&V(e,"id",l[16])},d(l){l&&c(e)}}}function Jt(i){let e,t,l,a,f,o,n,r,s,u,d,m,g,y,h=(i[10]||i[17].labelText)&&!i[11]&&qe(i),v=i[12]&&Ke(),T=[{"aria-invalid":o=i[12]||void 0},{"aria-describedby":n=i[12]?i[16]:void 0},{disabled:i[7]},{id:i[14]},{name:i[15]},{cols:i[3]},{rows:i[4]},{placeholder:i[2]},{readOnly:i[8]},{maxlength:r=i[5]??void 0},i[18]],I={};for(let _=0;_<T.length;_+=1)I=R(I,T[_]);let E=!i[12]&&i[9]&&Je(i),H=i[12]&&Qe(i);return{c(){e=B("div"),h&&h.c(),t=U(),l=B("div"),v&&v.c(),a=U(),f=B("textarea"),u=U(),E&&E.c(),d=U(),H&&H.c(),this.h()},l(_){e=L(_,"DIV",{});var k=w(e);h&&h.l(k),t=X(k),l=L(k,"DIV",{"data-invalid":!0});var F=w(l);v&&v.l(F),a=X(F),f=L(F,"TEXTAREA",{"aria-invalid":!0,"aria-describedby":!0,id:!0,name:!0,cols:!0,rows:!0,placeholder:!0,maxlength:!0}),w(f).forEach(c),F.forEach(c),u=X(k),E&&E.l(k),d=X(k),H&&H.l(k),k.forEach(c),this.h()},h(){De(f,I),C(f,"bx--text-area",!0),C(f,"bx--text-area--light",i[6]),C(f,"bx--text-area--invalid",i[12]),V(l,"data-invalid",s=i[12]||void 0),C(l,"bx--text-area__wrapper",!0),C(e,"bx--form-item",!0)},m(_,k){P(_,e,k),h&&h.m(e,null),S(e,t),S(e,l),v&&v.m(l,null),S(l,a),S(l,f),f.autofocus&&f.focus(),i[32](f),Oe(f,i[0]),S(e,u),E&&E.m(e,null),S(e,d),H&&H.m(e,null),m=!0,g||(y=[O(f,"input",i[33]),O(f,"change",i[25]),O(f,"input",i[26]),O(f,"keydown",i[27]),O(f,"keyup",i[28]),O(f,"focus",i[29]),O(f,"blur",i[30]),O(f,"paste",i[31]),O(e,"click",i[21]),O(e,"mouseover",i[22]),O(e,"mouseenter",i[23]),O(e,"mouseleave",i[24])],g=!0)},p(_,k){(_[10]||_[17].labelText)&&!_[11]?h?(h.p(_,k),k[0]&134144&&N(h,1)):(h=qe(_),h.c(),N(h,1),h.m(e,t)):h&&(x(),A(h,1,1,()=>{h=null}),$()),_[12]?v?k[0]&4096&&N(v,1):(v=Ke(),v.c(),N(v,1),v.m(l,a)):v&&(x(),A(v,1,1,()=>{v=null}),$()),De(f,I=he(T,[(!m||k[0]&4096&&o!==(o=_[12]||void 0))&&{"aria-invalid":o},(!m||k[0]&69632&&n!==(n=_[12]?_[16]:void 0))&&{"aria-describedby":n},(!m||k[0]&128)&&{disabled:_[7]},(!m||k[0]&16384)&&{id:_[14]},(!m||k[0]&32768)&&{name:_[15]},(!m||k[0]&8)&&{cols:_[3]},(!m||k[0]&16)&&{rows:_[4]},(!m||k[0]&4)&&{placeholder:_[2]},(!m||k[0]&256)&&{readOnly:_[8]},(!m||k[0]&32&&r!==(r=_[5]??void 0))&&{maxlength:r},k[0]&262144&&_[18]])),k[0]&1&&Oe(f,_[0]),C(f,"bx--text-area",!0),C(f,"bx--text-area--light",_[6]),C(f,"bx--text-area--invalid",_[12]),(!m||k[0]&4096&&s!==(s=_[12]||void 0))&&V(l,"data-invalid",s),!_[12]&&_[9]?E?E.p(_,k):(E=Je(_),E.c(),E.m(e,d)):E&&(E.d(1),E=null),_[12]?H?H.p(_,k):(H=Qe(_),H.c(),H.m(e,null)):H&&(H.d(1),H=null)},i(_){m||(N(h),N(v),m=!0)},o(_){A(h),A(v),m=!1},d(_){_&&c(e),h&&h.d(),v&&v.d(),i[32](null),E&&E.d(),H&&H.d(),g=!1,ze(y)}}}function Qt(i,e,t){let l;const a=["value","placeholder","cols","rows","maxCount","light","disabled","readonly","helperText","labelText","hideLabel","invalid","invalidText","id","name","ref"];let f=G(e,a),{$$slots:o={},$$scope:n}=e;const r=wt(o);let{value:s=""}=e,{placeholder:u=""}=e,{cols:d=50}=e,{rows:m=4}=e,{maxCount:g=void 0}=e,{light:y=!1}=e,{disabled:h=!1}=e,{readonly:v=!1}=e,{helperText:T=""}=e,{labelText:I=""}=e,{hideLabel:E=!1}=e,{invalid:H=!1}=e,{invalidText:_=""}=e,{id:k="ccs-"+Math.random().toString(36)}=e,{name:F=void 0}=e,{ref:W=null}=e;function q(b){Q.call(this,i,b)}function ue(b){Q.call(this,i,b)}function de(b){Q.call(this,i,b)}function ce(b){Q.call(this,i,b)}function Z(b){Q.call(this,i,b)}function ke(b){Q.call(this,i,b)}function me(b){Q.call(this,i,b)}function ye(b){Q.call(this,i,b)}function Te(b){Q.call(this,i,b)}function Ne(b){Q.call(this,i,b)}function Ce(b){Q.call(this,i,b)}function Ve(b){Ct[b?"unshift":"push"](()=>{W=b,t(1,W)})}function Pe(){s=this.value,t(0,s)}return i.$$set=b=>{e=R(R({},e),ee(b)),t(18,f=G(e,a)),"value"in b&&t(0,s=b.value),"placeholder"in b&&t(2,u=b.placeholder),"cols"in b&&t(3,d=b.cols),"rows"in b&&t(4,m=b.rows),"maxCount"in b&&t(5,g=b.maxCount),"light"in b&&t(6,y=b.light),"disabled"in b&&t(7,h=b.disabled),"readonly"in b&&t(8,v=b.readonly),"helperText"in b&&t(9,T=b.helperText),"labelText"in b&&t(10,I=b.labelText),"hideLabel"in b&&t(11,E=b.hideLabel),"invalid"in b&&t(12,H=b.invalid),"invalidText"in b&&t(13,_=b.invalidText),"id"in b&&t(14,k=b.id),"name"in b&&t(15,F=b.name),"ref"in b&&t(1,W=b.ref),"$$scope"in b&&t(19,n=b.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&16384&&t(16,l=`error-${k}`)},[s,W,u,d,m,g,y,h,v,T,I,E,H,_,k,F,l,r,f,n,o,q,ue,de,ce,Z,ke,me,ye,Te,Ne,Ce,Ve,Pe]}class Zt extends le{constructor(e){super(),ie(this,e,Qt,Jt,ne,{value:0,placeholder:2,cols:3,rows:4,maxCount:5,light:6,disabled:7,readonly:8,helperText:9,labelText:10,hideLabel:11,invalid:12,invalidText:13,id:14,name:15,ref:1},null,[-1,-1])}}const Yl=Zt;function Ze(i){let e,t;return{c(){e=K("title"),t=z(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=M(a,i[1]),a.forEach(c)},m(l,a){P(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function xt(i){let e,t,l=i[1]&&Ze(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o<a.length;o+=1)f=R(f,a[o]);return{c(){e=K("svg"),l&&l.c(),t=K("path"),this.h()},l(o){e=J(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var n=w(e);l&&l.l(n),t=J(n,"path",{d:!0}),w(t).forEach(c),n.forEach(c),this.h()},h(){V(t,"d","M24.59 16.59L17 24.17 17 4 15 4 15 24.17 7.41 16.59 6 18 16 28 26 18 24.59 16.59z"),fe(e,f)},m(o,n){P(o,e,n),l&&l.m(e,null),S(e,t)},p(o,[n]){o[1]?l?l.p(o,n):(l=Ze(o),l.c(),l.m(e,t)):l&&(l.d(1),l=null),fe(e,f=he(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},n&1&&{width:o[0]},n&1&&{height:o[0]},n&4&&o[2],n&8&&o[3]]))},i:j,o:j,d(o){o&&c(e),l&&l.d()}}}function $t(i,e,t){let l,a;const f=["size","title"];let o=G(e,f),{size:n=16}=e,{title:r=void 0}=e;return i.$$set=s=>{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class el extends le{constructor(e){super(),ie(this,e,$t,xt,ne,{size:0,title:1})}}function xe(i){let e,t;return{c(){e=K("title"),t=z(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=M(a,i[1]),a.forEach(c)},m(l,a){P(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function tl(i){let e,t,l=i[1]&&xe(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o<a.length;o+=1)f=R(f,a[o]);return{c(){e=K("svg"),l&&l.c(),t=K("path"),this.h()},l(o){e=J(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var n=w(e);l&&l.l(n),t=J(n,"path",{d:!0}),w(t).forEach(c),n.forEach(c),this.h()},h(){V(t,"d","M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"),fe(e,f)},m(o,n){P(o,e,n),l&&l.m(e,null),S(e,t)},p(o,[n]){o[1]?l?l.p(o,n):(l=xe(o),l.c(),l.m(e,t)):l&&(l.d(1),l=null),fe(e,f=he(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},n&1&&{width:o[0]},n&1&&{height:o[0]},n&4&&o[2],n&8&&o[3]]))},i:j,o:j,d(o){o&&c(e),l&&l.d()}}}function ll(i,e,t){let l,a;const f=["size","title"];let o=G(e,f),{size:n=16}=e,{title:r=void 0}=e;return i.$$set=s=>{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class il extends le{constructor(e){super(),ie(this,e,ll,tl,ne,{size:0,title:1})}}function $e(i){let e,t;return{c(){e=K("title"),t=z(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=M(a,i[1]),a.forEach(c)},m(l,a){P(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function nl(i){let e,t,l=i[1]&&$e(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o<a.length;o+=1)f=R(f,a[o]);return{c(){e=K("svg"),l&&l.c(),t=K("path"),this.h()},l(o){e=J(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var n=w(e);l&&l.l(n),t=J(n,"path",{d:!0}),w(t).forEach(c),n.forEach(c),this.h()},h(){V(t,"d","M2 2H7V16H2zM23 2H9V16.8027l3.0422 4.5635.8453 5.9165A2.0094 2.0094 0 0014.8672 29H15a3.0033 3.0033 0 003-3V20h8a4.0045 4.0045 0 004-4V9A7.0078 7.0078 0 0023 2z"),fe(e,f)},m(o,n){P(o,e,n),l&&l.m(e,null),S(e,t)},p(o,[n]){o[1]?l?l.p(o,n):(l=$e(o),l.c(),l.m(e,t)):l&&(l.d(1),l=null),fe(e,f=he(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},n&1&&{width:o[0]},n&1&&{height:o[0]},n&4&&o[2],n&8&&o[3]]))},i:j,o:j,d(o){o&&c(e),l&&l.d()}}}function al(i,e,t){let l,a;const f=["size","title"];let o=G(e,f),{size:n=16}=e,{title:r=void 0}=e;return i.$$set=s=>{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class sl extends le{constructor(e){super(),ie(this,e,al,nl,ne,{size:0,title:1})}}function et(i){let e,t;return{c(){e=K("title"),t=z(i[1])},l(l){e=J(l,"title",{});var a=w(e);t=M(a,i[1]),a.forEach(c)},m(l,a){P(l,e,a),S(e,t)},p(l,a){a&2&&Y(t,l[1])},d(l){l&&c(e)}}}function ol(i){let e,t,l=i[1]&&et(i),a=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],f={};for(let o=0;o<a.length;o+=1)f=R(f,a[o]);return{c(){e=K("svg"),l&&l.c(),t=K("path"),this.h()},l(o){e=J(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var n=w(e);l&&l.l(n),t=J(n,"path",{d:!0}),w(t).forEach(c),n.forEach(c),this.h()},h(){V(t,"d","M2 16H7V30H2zM23 30H9V15.1973l3.0422-4.5635.8453-5.9165A2.0094 2.0094 0 0114.8672 3H15a3.0033 3.0033 0 013 3v6h8a4.0045 4.0045 0 014 4v7A7.0078 7.0078 0 0123 30z"),fe(e,f)},m(o,n){P(o,e,n),l&&l.m(e,null),S(e,t)},p(o,[n]){o[1]?l?l.p(o,n):(l=et(o),l.c(),l.m(e,t)):l&&(l.d(1),l=null),fe(e,f=he(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},n&1&&{width:o[0]},n&1&&{height:o[0]},n&4&&o[2],n&8&&o[3]]))},i:j,o:j,d(o){o&&c(e),l&&l.d()}}}function rl(i,e,t){let l,a;const f=["size","title"];let o=G(e,f),{size:n=16}=e,{title:r=void 0}=e;return i.$$set=s=>{t(5,e=R(R({},e),ee(s))),t(3,o=G(e,f)),"size"in s&&t(0,n=s.size),"title"in s&&t(1,r=s.title)},i.$$.update=()=>{t(4,l=e["aria-label"]||e["aria-labelledby"]||r),t(2,a={"aria-hidden":l?void 0:!0,role:l?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=ee(e),[n,r,a,o,l]}class fl extends le{constructor(e){super(),ie(this,e,rl,ol,ne,{size:0,title:1})}}function ul(i,e){const t=l=>i&&!i.contains(l.target)&&!l.defaultPrevented&&e();return document.addEventListener("click",t,!0),{destroy(){document.removeEventListener("click",t,!0)}}}function dl(i){let e=(i[1]?"":i[0])+"",t;return{c(){t=z(e)},l(l){t=M(l,e)},m(l,a){P(l,t,a)},p(l,a){a&3&&e!==(e=(l[1]?"":l[0])+"")&&Y(t,e)},d(l){l&&c(t)}}}function cl(i){let e,t,l,a,f;const o=[i[2],{type:"purple"},{icon:Ue}];let n={$$slots:{default:[dl]},$$scope:{ctx:i}};for(let r=0;r<o.length;r+=1)n=R(n,o[r]);return t=new Rt({props:n}),{c(){e=B("div"),ae(t.$$.fragment),this.h()},l(r){e=L(r,"DIV",{class:!0});var s=w(e);se(t.$$.fragment,s),s.forEach(c),this.h()},h(){V(e,"class","embedding-badge truncate"),C(e,"embedding-badge-nolabel",i[1])},m(r,s){P(r,e,s),oe(t,e,null),l=!0,a||(f=pe(vt.call(null,e,{text:"Embedding index"})),a=!0)},p(r,[s]){const u=s&4?he(o,[s&4&&Vt(r[2]),o[1],s&0&&{icon:Ue}]):{};s&11&&(u.$$scope={dirty:s,ctx:r}),t.$set(u),(!l||s&2)&&C(e,"embedding-badge-nolabel",r[1])},i(r){l||(N(t.$$.fragment,r),l=!0)},o(r){A(t.$$.fragment,r),l=!1},d(r){r&&c(e),re(t),a=!1,f()}}}function hl(i,e,t){const l=["embedding","hideEmbeddingName"];let a=G(e,l),{embedding:f}=e,{hideEmbeddingName:o=!1}=e;return i.$$set=n=>{e=R(R({},e),ee(n)),t(2,a=G(e,l)),"embedding"in n&&t(0,f=n.embedding),"hideEmbeddingName"in n&&t(1,o=n.hideEmbeddingName)},[f,o,a]}class ml extends le{constructor(e){super(),ie(this,e,hl,cl,ne,{embedding:0,hideEmbeddingName:1})}}function tt(i,e,t){const l=i.slice();return l[12]=e[t],l}function lt(i){let e,t,l=i[0].conceptNamespace+"",a,f,o=i[0].conceptName+"",n,r,s,u,d,m,g,y,h,v,T;return d=new fl({}),y=new sl({}),{c(){e=B("div"),t=B("div"),a=z(l),f=z(" / "),n=z(o),r=U(),s=B("div"),u=B("button"),ae(d.$$.fragment),m=U(),g=B("button"),ae(y.$$.fragment),this.h()},l(I){e=L(I,"DIV",{class:!0});var E=w(e);t=L(E,"DIV",{class:!0});var H=w(t);a=M(H,l),f=M(H," / "),n=M(H,o),H.forEach(c),r=X(E),s=L(E,"DIV",{class:!0});var _=w(s);u=L(_,"BUTTON",{class:!0});var k=w(u);se(d.$$.fragment,k),k.forEach(c),m=X(_),g=L(_,"BUTTON",{class:!0});var F=w(g);se(y.$$.fragment,F),F.forEach(c),_.forEach(c),E.forEach(c),this.h()},h(){V(t,"class","flex-grow"),V(u,"class","p-1"),V(g,"class","p-1"),V(s,"class","shrink-0"),V(e,"class","flex flex-row items-center justify-between gap-x-4 p-2")},m(I,E){P(I,e,E),S(e,t),S(t,a),S(t,f),S(t,n),S(e,r),S(e,s),S(s,u),oe(d,u,null),S(s,m),S(s,g),oe(y,g,null),h=!0,v||(T=[O(u,"click",i[8]),O(g,"click",i[9])],v=!0)},p(I,E){(!h||E&1)&&l!==(l=I[0].conceptNamespace+"")&&Y(a,l),(!h||E&1)&&o!==(o=I[0].conceptName+"")&&Y(n,o)},i(I){h||(N(d.$$.fragment,I),N(y.$$.fragment,I),h=!0)},o(I){A(d.$$.fragment,I),A(y.$$.fragment,I),h=!1},d(I){I&&c(e),re(d),re(y),v=!1,ze(T)}}}function it(i){let e,t=[],l=new Map,a,f=i[2];const o=n=>n[12];for(let n=0;n<f.length;n+=1){let r=tt(i,f,n),s=o(r);l.set(s,t[n]=nt(s,r))}return{c(){e=B("div");for(let n=0;n<t.length;n+=1)t[n].c();this.h()},l(n){e=L(n,"DIV",{class:!0});var r=w(e);for(let s=0;s<t.length;s+=1)t[s].l(r);r.forEach(c),this.h()},h(){V(e,"class","more-button flex flex-col")},m(n,r){P(n,e,r);for(let s=0;s<t.length;s+=1)t[s]&&t[s].m(e,null);a=!0},p(n,r){r&29&&(f=n[2],x(),t=gt(t,r,o,1,n,f,l,e,Ht,nt,null,tt),$())},i(n){if(!a){for(let r=0;r<f.length;r+=1)N(t[r]);a=!0}},o(n){for(let r=0;r<t.length;r+=1)A(t[r]);a=!1},d(n){n&&c(e);for(let r=0;r<t.length;r+=1)t[r].d()}}}function nt(i,e){let t,l,a,f,o,n,r,s,u;o=new ml({props:{class:"hover:cursor-pointer",embedding:e[12]}});function d(){return e[10](e[12])}return{key:i,first:null,c(){t=B("button"),l=B("div"),a=z("Find similar"),f=U(),ae(o.$$.fragment),n=U(),this.h()},l(m){t=L(m,"BUTTON",{class:!0});var g=w(t);l=L(g,"DIV",{});var y=w(l);a=M(y,"Find similar"),y.forEach(c),f=X(g),se(o.$$.fragment,g),n=X(g),g.forEach(c),this.h()},h(){V(t,"class","flex w-full items-center justify-between"),this.first=t},m(m,g){P(m,t,g),S(t,l),S(l,a),S(t,f),oe(o,t,null),S(t,n),r=!0,s||(u=O(t,"click",d),s=!0)},p(m,g){e=m;const y={};g&4&&(y.embedding=e[12]),o.$set(y)},i(m){r||(N(o.$$.fragment,m),r=!0)},o(m){A(o.$$.fragment,m),r=!1},d(m){m&&c(t),re(o),s=!1,u()}}}function _l(i){let e,t,l,a,f,o,n,r=i[0].conceptName!=null&&i[0].conceptNamespace!=null&&lt(i),s=i[3]!=null&&it(i);return{c(){e=B("div"),r&&r.c(),t=U(),s&&s.c(),this.h()},l(u){e=L(u,"DIV",{style:!0,class:!0});var d=w(e);r&&r.l(d),t=X(d),s&&s.l(d),d.forEach(c),this.h()},h(){V(e,"style",l=i[1]!=null?`left: ${i[1].x}px; top: ${i[1].y}px`:""),V(e,"class","absolute z-10 inline-flex -translate-x-1/2 translate-y-6 flex-col divide-y divide-gray-200 rounded border border-gray-200 bg-white shadow")},m(u,d){P(u,e,d),r&&r.m(e,null),S(e,t),s&&s.m(e,null),f=!0,o||(n=pe(ul.call(null,e,i[11])),o=!0)},p(u,[d]){u[0].conceptName!=null&&u[0].conceptNamespace!=null?r?(r.p(u,d),d&1&&N(r,1)):(r=lt(u),r.c(),N(r,1),r.m(e,t)):r&&(x(),A(r,1,1,()=>{r=null}),$()),u[3]!=null?s?(s.p(u,d),d&8&&N(s,1)):(s=it(u),s.c(),N(s,1),s.m(e,null)):s&&(x(),A(s,1,1,()=>{s=null}),$()),(!f||d&2&&l!==(l=u[1]!=null?`left: ${u[1].x}px; top: ${u[1].y}px`:""))&&V(e,"style",l)},i(u){f||(N(r),N(s),bt(()=>{f&&(a||(a=Fe(e,Xe,{duration:60},!0)),a.run(1))}),f=!0)},o(u){A(r),A(s),a||(a=Fe(e,Xe,{duration:60},!1)),a.run(0),f=!1},d(u){u&&c(e),r&&r.d(),s&&s.d(),u&&a&&a.end(),o=!1,n()}}}function bl(i,e,t){let{details:l}=e,{clickPosition:a}=e,{embeddings:f}=e,{addConceptLabel:o}=e,{findSimilar:n}=e,{addNotification:r}=e;const s=Pt();function u(h){if(!l.conceptName||!l.conceptNamespace)throw Error("Label could not be added, no active concept.");o(l.conceptNamespace,l.conceptName,l.text,h),r({kind:"success",title:`[${h===!0?"Positive":"Negative"}] Concept label added`,subtitle:qt(l.conceptNamespace,l.conceptName),message:l.text}),s("click")}const d=()=>u(!0),m=()=>u(!1),g=h=>{n&&n(h,l.text),s("click")},y=()=>s("close");return i.$$set=h=>{"details"in h&&t(0,l=h.details),"clickPosition"in h&&t(1,a=h.clickPosition),"embeddings"in h&&t(2,f=h.embeddings),"addConceptLabel"in h&&t(6,o=h.addConceptLabel),"findSimilar"in h&&t(3,n=h.findSimilar),"addNotification"in h&&t(7,r=h.addNotification)},[l,a,f,n,s,u,o,r,d,m,g,y]}class gl extends le{constructor(e){super(),ie(this,e,bl,_l,ne,{details:0,clickPosition:1,embeddings:2,addConceptLabel:6,findSimilar:3,addNotification:7})}}function vl(i,e){let t,l=e;i.addEventListener("click",o=>a(o));function a(o){l.disabled||(t=new gl({props:{details:l.details(),clickPosition:{x:o.clientX,y:o.clientY},embeddings:l.embeddings,addConceptLabel:l.addConceptLabel,addNotification:l.addNotification,findSimilar:l.findSimilar},target:document.body}),t.$on("close",f),t.$on("click",f))}function f(){t==null||t.$destroy(),t=void 0}return{update(o){l=o,t==null||t.$set({details:l.details()})},destroy(){f()}}}const Be=.5,at=.3,pl=.8,st="#3366cc";function Ae(i){return`rgba(180,215,255,${i})`}function Ie(i){let e=0;if(i>Be){const t=(i-Be)/(1-Be);e=at+t*(pl-at)}return Ae(e)}function ot(i,e,t){const l=i.slice();return l[7]=e[t],l}function rt(i,e){let t,l,a=e[7].info.name+"",f,o,n,r,s=ft(e[7])+"",u,d;return{key:i,first:null,c(){t=B("div"),l=B("div"),f=z(a),o=U(),n=B("div"),r=B("span"),u=z(s),d=U(),this.h()},l(m){t=L(m,"DIV",{class:!0});var g=w(t);l=L(g,"DIV",{class:!0});var y=w(l);f=M(y,a),y.forEach(c),o=X(g),n=L(g,"DIV",{class:!0});var h=w(n);r=L(h,"SPAN",{class:!0});var v=w(r);u=M(v,s),v.forEach(c),h.forEach(c),d=X(g),g.forEach(c),this.h()},h(){V(l,"class","named-value-name table-cell max-w-xs truncate pr-2 svelte-1689hje"),V(r,"class","px-1"),C(r,"font-bold",e[7].info.type==="keyword"||e[7].info.type==="metadata"&&!Le(e[7].info.dtype)),te(r,"background-color",(e[7].info.type==="concept_score"||e[7].info.type==="semantic_similarity")&&typeof e[7].value=="number"?Ie(e[7].value):""),V(n,"class","table-cell rounded text-right"),V(t,"class","table-row"),this.first=t},m(m,g){P(m,t,g),S(t,l),S(l,f),S(t,o),S(t,n),S(n,r),S(r,u),S(t,d)},p(m,g){e=m,g&1&&a!==(a=e[7].info.name+"")&&Y(f,a),g&1&&s!==(s=ft(e[7])+"")&&Y(u,s),g&1&&C(r,"font-bold",e[7].info.type==="keyword"||e[7].info.type==="metadata"&&!Le(e[7].info.dtype)),g&1&&te(r,"background-color",(e[7].info.type==="concept_score"||e[7].info.type==="semantic_similarity")&&typeof e[7].value=="number"?Ie(e[7].value):"")},d(m){m&&c(t)}}}function kl(i){let e,t,l=[],a=new Map,f,o=`${i[4]}px`,n=`${Math.min(i[1],i[3]-i[2]-20)}px`,r=i[0];const s=u=>u[7];for(let u=0;u<r.length;u+=1){let d=ot(i,r,u),m=s(d);a.set(m,l[u]=rt(m,d))}return{c(){e=B("div"),t=B("div");for(let u=0;u<l.length;u+=1)l[u].c();this.h()},l(u){e=L(u,"DIV",{role:!0,class:!0});var d=w(e);t=L(d,"DIV",{class:!0});var m=w(t);for(let g=0;g<l.length;g+=1)l[g].l(m);m.forEach(c),d.forEach(c),this.h()},h(){V(t,"class","table border-spacing-y-2"),V(e,"role","tooltip"),V(e,"class","absolute max-w-fit -translate-y-full break-words border border-gray-300 bg-white px-2 shadow-md"),bt(()=>i[6].call(e)),C(e,"hidden",i[0].length===0),te(e,"top",o),te(e,"left",n)},m(u,d){P(u,e,d),S(e,t);for(let m=0;m<l.length;m+=1)l[m]&&l[m].m(t,null);f=Bt(e,i[6].bind(e))},p(u,[d]){d&1&&(r=u[0],l=gt(l,d,s,1,u,r,a,t,Lt,rt,null,ot)),d&1&&C(e,"hidden",u[0].length===0),d&6&&n!==(n=`${Math.min(u[1],u[3]-u[2]-20)}px`)&&te(e,"left",n)},i:j,o:j,d(u){u&&c(e);for(let d=0;d<l.length;d+=1)l[d].d();f()}}}function ft(i){return typeof i.value=="number"?i.value.toFixed(3):i.info.dtype==="string_span"?"true":i.value}function Sl(i,e,t){let{namedValues:l}=e,{x:a}=e,{y:f}=e;const o=window.innerWidth;let n=0;const r=f-1;function s(){n=this.clientWidth,t(2,n)}return i.$$set=u=>{"namedValues"in u&&t(0,l=u.namedValues),"x"in u&&t(1,a=u.x),"y"in u&&t(5,f=u.y)},[l,a,n,o,r,f,s]}class wl extends le{constructor(e){super(),ie(this,e,Sl,kl,ne,{namedValues:0,x:1,y:5})}}function El(i,e){let t,l=e;const a=()=>o();l.isHovered&&f();function f(){const n=l.namedValues.filter(m=>Array.from(l.spansHovered).some(g=>{const y=pt(g);return kt(m.specificPath.slice(0,y.length),y)}));l.itemScrollContainer!=null&&l.itemScrollContainer.addEventListener("scroll",a);const r=i.getBoundingClientRect(),s=window.getComputedStyle(i),u=parseInt(s.getPropertyValue("line-height")),d=r.height>u?r.x+i.offsetLeft||i.clientLeft:r.x;t=new wl({props:{namedValues:n,x:d,y:r.top},target:document.body})}function o(){var n;t==null||t.$destroy(),(n=l.itemScrollContainer)==null||n.removeEventListener("scroll",a)}return{update(n){o(),l=n,l.isHovered&&f()},destroy(){o()}}}const yl=500,ve=100;function Tl(i,e,t){const l=[],a=new Set;for(const f of i){let o=!1;const n=[];for(const T of f.paths)a.has(T)||(n.push(T),a.add(T));const r=[],s=[];let u=-1/0;for(const[T,I]of Object.entries(f.originalSpans)){const E=e[T],H=pt(T);if(!(E==null||E.length===0))for(const _ of I)for(const k of E){const F=k.path.slice(H.length),W=Dt(_,F);if(W==null)continue;const q=Se.value(W);if(q==null)continue;if(k.dtype==="float32"){const Z=Se.value(W);Z!=null&&(u=Math.max(u,Z))}const ue=we(Se.path(_)),de=!n.includes(ue),ce={value:q,info:k,specificPath:Se.path(W)};de||r.push(ce),s.push(ce),k.type==="concept_score"||k.type==="semantic_similarity"?q>.5&&(o=!0):o=!0}}const d=s.some(T=>T.info.type==="label"),m=s.some(T=>T.info.type==="leaf_span"),g=s.some(T=>T.info.type==="keyword"),y=s.some(T=>T.info.type==="metadata"&&!Le(T.info.dtype)),h=f.paths.some(T=>t.has(T)),v=h&&n.length>0&&Array.from(t).some(T=>n.includes(T));l.push({backgroundColor:Ie(u),isBlackBolded:g||y||m,isHighlightBolded:d,isShownSnippet:o,snippetScore:u,namedValues:r,paths:f.paths,text:f.text,snippetText:f.text,originalSpans:f.originalSpans,isHovered:h,isFirstHover:v})}return l}function Nl(i,e){var o,n,r;if(i=i.map(s=>{if(s.isShownSnippet&&s.text.length>ve){const u={...s,text:s.text.slice(0,ve),snippetText:s.snippetText.slice(0,ve)},d={...s,text:s.text.slice(ve),snippetText:s.snippetText.slice(ve),isShownSnippet:!1,namedValues:[]};return[u,d]}else return[s]}).flat(),e)return{snippetSpans:i.map(s=>({renderSpan:s,isShown:!0})),someSnippetsHidden:!1};const t=[];let l=0;for(const s of i)s.isShownSnippet&&(l+=s.text.length);const a=i.filter(s=>!s.isShownSnippet).sort((s,u)=>u.snippetScore-s.snippetScore);for(const s of a)if(s.isShownSnippet=!0,l+=s.text.length,l>yl)break;let f=!1;for(const[s,u]of i.entries())if(u.isShownSnippet)t.push({renderSpan:u,isShown:!0});else{const d=((o=i[s+1])==null?void 0:o.isShownSnippet)===!0,m=((n=i[s-1])==null?void 0:n.isShownSnippet)===!0,g=((r=t[t.length-1])==null?void 0:r.isShown)===!0;t.push({renderSpan:u,isShown:!1,isEllipsis:(d||m)&&g,hasNewline:u.text.includes(`
2
+ `)}),f=!0}return{snippetSpans:t,someSnippetsHidden:f}}function ut(i,e,t){const l=i.slice();l[34]=e[t];const a=l[34].renderSpan;return l[35]=a,l}function Cl(i){let e,t,l,a,f,o=i[34].hasNewline&&dt();return{c(){e=B("span"),t=z("..."),o&&o.c(),l=Ee(),this.h()},l(n){e=L(n,"SPAN",{class:!0});var r=w(e);t=M(r,"..."),r.forEach(c),o&&o.l(n),l=Ee(),this.h()},h(){V(e,"class","highlight-span text-sm leading-5 svelte-8ox5pu")},m(n,r){P(n,e,r),S(e,t),o&&o.m(n,r),P(n,l,r),a||(f=pe(vt.call(null,e,{text:`Some text was hidden to improve readability.
3
+ Click "Show all" to show the entire document.`})),a=!0)},p(n,r){n[34].hasNewline?o||(o=dt(),o.c(),o.m(l.parentNode,l)):o&&(o.d(1),o=null)},i:j,o:j,d(n){n&&c(e),o&&o.d(n),n&&c(l),a=!1,f()}}}function Vl(i){let e,t,l,a,f,o,n,r;const s=[Hl,Pl],u=[];function d(h,v){return h[1]?0:1}t=d(i),l=u[t]=s[t](i);function m(){return i[27](i[35])}function g(){return i[28](i[35])}function y(){return i[29](i[35])}return{c(){e=B("span"),l.c(),this.h()},l(h){e=L(h,"SPAN",{class:!0});var v=w(e);l.l(v),v.forEach(c),this.h()},h(){V(e,"class","hover:cursor-poiner highlight-span break-words text-sm leading-5 svelte-8ox5pu"),C(e,"hover:cursor-pointer",i[0].length>0),C(e,"font-bold",i[35].isBlackBolded),C(e,"font-medium",i[35].isHighlightBolded&&!i[35].isBlackBolded),te(e,"color",i[35].isHighlightBolded&&!i[35].isBlackBolded?st:""),te(e,"background-color",i[35].isHovered?Ae(mt):i[35].backgroundColor)},m(h,v){P(h,e,v),u[t].m(e,null),o=!0,n||(r=[pe(a=El.call(null,e,{namedValues:i[35].namedValues,isHovered:i[35].isFirstHover,spansHovered:i[5],itemScrollContainer:i[9]})),pe(f=vl.call(null,e,{details:m,findSimilar:i[4]!=null?i[16]:null,embeddings:i[2],addConceptLabel:i[14],addNotification:i[17]!=null?i[17].addNotification:_t,disabled:i[35].paths.length===0||i[2].length===0})),O(e,"mouseenter",g),O(e,"mouseleave",y)],n=!0)},p(h,v){i=h;let T=t;t=d(i),t===T?u[t].p(i,v):(x(),A(u[T],1,1,()=>{u[T]=null}),$(),l=u[t],l?l.p(i,v):(l=u[t]=s[t](i),l.c()),N(l,1),l.m(e,null)),a&&je(a.update)&&v[0]&800&&a.update.call(null,{namedValues:i[35].namedValues,isHovered:i[35].isFirstHover,spansHovered:i[5],itemScrollContainer:i[9]}),f&&je(f.update)&&v[0]&276&&f.update.call(null,{details:m,findSimilar:i[4]!=null?i[16]:null,embeddings:i[2],addConceptLabel:i[14],addNotification:i[17]!=null?i[17].addNotification:_t,disabled:i[35].paths.length===0||i[2].length===0}),(!o||v[0]&1)&&C(e,"hover:cursor-pointer",i[0].length>0),(!o||v[0]&256)&&C(e,"font-bold",i[35].isBlackBolded),(!o||v[0]&256)&&C(e,"font-medium",i[35].isHighlightBolded&&!i[35].isBlackBolded),v[0]&256&&te(e,"color",i[35].isHighlightBolded&&!i[35].isBlackBolded?st:""),v[0]&256&&te(e,"background-color",i[35].isHovered?Ae(mt):i[35].backgroundColor)},i(h){o||(N(l),o=!0)},o(h){A(l),o=!1},d(h){h&&c(e),u[t].d(),n=!1,ze(r)}}}function dt(i){let e,t;return{c(){e=B("span"),t=B("br")},l(l){e=L(l,"SPAN",{});var a=w(e);t=L(a,"BR",{}),a.forEach(c)},m(l,a){P(l,e,a),S(e,t)},d(l){l&&c(e)}}}function Pl(i){let e=i[35].snippetText+"",t;return{c(){t=z(e)},l(l){t=M(l,e)},m(l,a){P(l,t,a)},p(l,a){a[0]&256&&e!==(e=l[35].snippetText+"")&&Y(t,e)},i:j,o:j,d(l){l&&c(t)}}}function Hl(i){let e,t;return e=new Yt({props:{source:i[35].snippetText}}),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},p(l,a){const f={};a[0]&256&&(f.source=l[35].snippetText),e.$set(f)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function ct(i){let e,t,l,a;const f=[Vl,Cl],o=[];function n(r,s){return r[34].isShown?0:r[34].isEllipsis?1:-1}return~(e=n(i))&&(t=o[e]=f[e](i)),{c(){t&&t.c(),l=Ee()},l(r){t&&t.l(r),l=Ee()},m(r,s){~e&&o[e].m(r,s),P(r,l,s),a=!0},p(r,s){let u=e;e=n(r),e===u?~e&&o[e].p(r,s):(t&&(x(),A(o[u],1,1,()=>{o[u]=null}),$()),~e?(t=o[e],t?t.p(r,s):(t=o[e]=f[e](r),t.c()),N(t,1),t.m(l.parentNode,l)):t=null)},i(r){a||(N(t),a=!0)},o(r){A(t),a=!1},d(r){~e&&o[e].d(r),r&&c(l)}}}function ht(i){let e,t,l,a,f;const o=[Ll,Bl],n=[];function r(s,u){return s[6]?1:0}return l=r(i),a=n[l]=o[l](i),{c(){e=B("div"),t=B("div"),a.c(),this.h()},l(s){e=L(s,"DIV",{class:!0});var u=w(e);t=L(u,"DIV",{class:!0});var d=w(t);a.l(d),d.forEach(c),u.forEach(c),this.h()},h(){V(t,"class","w-30 mt-2 rounded border border-neutral-300 text-center"),V(e,"class","flex flex-row justify-center")},m(s,u){P(s,e,u),S(e,t),n[l].m(t,null),f=!0},p(s,u){let d=l;l=r(s),l===d?n[l].p(s,u):(x(),A(n[d],1,1,()=>{n[d]=null}),$(),a=n[l],a?a.p(s,u):(a=n[l]=o[l](s),a.c()),N(a,1),a.m(t,null))},i(s){f||(N(a),f=!0)},o(s){A(a),f=!1},d(s){s&&c(e),n[l].d()}}}function Bl(i){let e,t;return e=new St({props:{size:"small",class:"w-full",kind:"ghost",icon:il,$$slots:{default:[Al]},$$scope:{ctx:i}}}),e.$on("click",i[31]),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},p(l,a){const f={};a[1]&128&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function Ll(i){let e,t;return e=new St({props:{size:"small",class:"w-full",kind:"ghost",icon:el,$$slots:{default:[Il]},$$scope:{ctx:i}}}),e.$on("click",i[30]),{c(){ae(e.$$.fragment)},l(l){se(e.$$.fragment,l)},m(l,a){oe(e,l,a),t=!0},p(l,a){const f={};a[1]&128&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){t||(N(e.$$.fragment,l),t=!0)},o(l){A(e.$$.fragment,l),t=!1},d(l){re(e,l)}}}function Al(i){let e;return{c(){e=z("Hide excess")},l(t){e=M(t,"Hide excess")},m(t,l){P(t,e,l)},d(t){t&&c(e)}}}function Il(i){let e;return{c(){e=z("Show all")},l(t){e=M(t,"Show all")},m(t,l){P(t,e,l)},d(t){t&&c(e)}}}function zl(i){let e,t,l,a=i[8],f=[];for(let r=0;r<a.length;r+=1)f[r]=ct(ut(i,a,r));const o=r=>A(f[r],1,1,()=>{f[r]=null});let n=(i[7]||i[6])&&ht(i);return{c(){e=B("div");for(let r=0;r<f.length;r+=1)f[r].c();t=U(),n&&n.c(),this.h()},l(r){e=L(r,"DIV",{class:!0});var s=w(e);for(let u=0;u<f.length;u+=1)f[u].l(s);t=X(s),n&&n.l(s),s.forEach(c),this.h()},h(){V(e,"class","relative overflow-x-hidden text-ellipsis whitespace-break-spaces py-4")},m(r,s){P(r,e,s);for(let u=0;u<f.length;u+=1)f[u]&&f[u].m(e,null);S(e,t),n&&n.m(e,null),l=!0},p(r,s){if(s[0]&220983){a=r[8];let u;for(u=0;u<a.length;u+=1){const d=ut(r,a,u);f[u]?(f[u].p(d,s),N(f[u],1)):(f[u]=ct(d),f[u].c(),N(f[u],1),f[u].m(e,t))}for(x(),u=a.length;u<f.length;u+=1)o(u);$()}r[7]||r[6]?n?(n.p(r,s),s[0]&192&&N(n,1)):(n=ht(r),n.c(),N(n,1),n.m(e,null)):n&&(x(),A(n,1,1,()=>{n=null}),$())},i(r){if(!l){for(let s=0;s<a.length;s+=1)N(f[s]);N(n),l=!0}},o(r){f=f.filter(Boolean);for(let s=0;s<f.length;s+=1)A(f[s]);A(n),l=!1},d(r){r&&c(e),At(f,r),n&&n.d()}}}const mt=.9,_t=()=>null;function Ml(i,e,t){let l,a,f,o,n,r,s=j,u=()=>(s(),s=zt(E,p=>t(26,r=p)),E),d,m;i.$$.on_destroy.push(()=>s());let{text:g}=e,{row:y}=e,{spanPaths:h}=e,{valuePaths:v}=e,{markdown:T=!1}=e,{embeddings:I}=e,{datasetViewStore:E=void 0}=e;u();let{datasetStore:H=void 0}=e,_={},k=new Set;const F=p=>{p.paths.forEach(D=>k.add(D)),t(5,k)},W=p=>{p.paths.forEach(D=>k.delete(D)),t(5,k)};let q={};const ue=p=>{const _e={conceptName:null,conceptNamespace:null,text:f.filter(be=>be.paths.some(He=>((p==null?void 0:p.paths)||[]).some(ge=>kt(ge,He)))).map(be=>be.text).join("")};for(const be of Object.keys(p.originalSpans)){const He=(_[be]||[]).filter(ge=>ge.type==="concept_score");for(const ge of He){const Re=ge.signal;_e.conceptName=Re.concept_name,_e.conceptNamespace=Re.namespace;break}}return _e},de=Ot();Ye(i,de,p=>t(33,d=p));const ce=(p,D,Me,_e)=>{if(!D||!p)throw Error("Label could not be added, no active concept.");d.mutate([p,D,{insert:[{text:Me,label:_e}]}])};let Z=!1,ke=It(jt);Ye(i,ke,p=>t(9,m=p));let me;const ye=(p,D)=>{E==null||me==null||E.addSearch({path:[we(me)],type:"semantic",query:D,embedding:p})},Te=Ut(),Ne=p=>ue(p),Ce=p=>F(p),Ve=p=>W(p),Pe=()=>t(6,Z=!0),b=()=>t(6,Z=!1);return i.$$set=p=>{"text"in p&&t(18,g=p.text),"row"in p&&t(19,y=p.row),"spanPaths"in p&&t(0,h=p.spanPaths),"valuePaths"in p&&t(20,v=p.valuePaths),"markdown"in p&&t(1,T=p.markdown),"embeddings"in p&&t(2,I=p.embeddings),"datasetViewStore"in p&&u(t(3,E=p.datasetViewStore)),"datasetStore"in p&&t(4,H=p.datasetStore)},i.$$.update=()=>{if(i.$$.dirty[0]&524289&&t(25,l=Object.fromEntries(h.map(p=>[we(p),Ft(y,p)]))),i.$$.dirty[0]&3145728){t(21,_={});for(const p of v){const D=we(p.spanPath);_[D]==null&&t(21,_[D]=[],_),_[D].push(p)}}if(i.$$.dirty[0]&33816576&&t(24,a=Xt(g,l)),i.$$.dirty[0]&18874400&&t(23,f=Tl(a,_,k)),i.$$.dirty[0]&20971520){t(22,q={});for(const p of a)for(const D of p.paths)t(22,q[D]=q[D]||[],q),q[D].push(p)}i.$$.dirty[0]&8388672&&t(8,{snippetSpans:o,someSnippetsHidden:n}=Nl(f,Z),o,(t(7,n),t(23,f),t(6,Z),t(24,a),t(21,_),t(5,k),t(18,g),t(25,l),t(20,v),t(0,h),t(19,y))),i.$$.dirty[0]&67108880&&r!=null&&H!=null&&(me=Wt(r,H))},[h,T,I,E,H,k,Z,n,o,m,F,W,ue,de,ce,ke,ye,Te,g,y,v,_,q,f,a,l,r,Ne,Ce,Ve,Pe,b]}class jl extends le{constructor(e){super(),ie(this,e,Ml,zl,ne,{text:18,row:19,spanPaths:0,valuePaths:20,markdown:1,embeddings:2,datasetViewStore:3,datasetStore:4},null,[-1,-1])}}export{ml as E,jl as S,Yl as T,fl as a,sl as b};
lilac/web/_app/immutable/chunks/ToastNotification.b080933f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as gt,i as kt,s as Dt,e as ot,b as P,g as h,v as rt,d as D,f as _t,h as v,N as nt,C as vt,o as Ct,E as w,Q as Bt,D as R,k as F,y as mt,a as G,l as J,m as K,z as bt,c as L,G as c,F as st,A as dt,a0 as C,H as j,I as O,J as U,K as X,L as It,B as ht,M as pt,R as Y,q as y,r as x,u as $}from"./index.b333a928.js";import{aD as Et,aE as qt}from"./Commands.543935b9.js";const Nt=i=>({}),lt=i=>({}),Tt=i=>({}),at=i=>({}),Wt=i=>({}),ft=i=>({});function ut(i){let t,o,n,l,r,E,k,q,g,N,T,B,f,W,S;o=new Et({props:{kind:i[0],iconDescription:i[6]}});const V=i[15].title,I=R(V,i,i[14],ft),m=I||Vt(i),H=i[15].subtitle,p=R(H,i,i[14],at),_=p||Ht(i),z=i[15].caption,M=R(z,i,i[14],lt),b=M||Mt(i),A=i[15].default,s=R(A,i,i[14],null);let u=!i[8]&&ct(i),Z=[{role:i[2]},{kind:i[0]},i[12],{style:B=""+((i[9]&&"width: 100%;")+i[12].style)}],Q={};for(let e=0;e<Z.length;e+=1)Q=w(Q,Z[e]);return{c(){t=F("div"),mt(o.$$.fragment),n=G(),l=F("div"),r=F("h3"),m&&m.c(),E=G(),k=F("div"),_&&_.c(),q=G(),g=F("div"),b&&b.c(),N=G(),s&&s.c(),T=G(),u&&u.c(),this.h()},l(e){t=J(e,"DIV",{role:!0,kind:!0,style:!0});var a=K(t);bt(o.$$.fragment,a),n=L(a),l=J(a,"DIV",{});var d=K(l);r=J(d,"H3",{});var tt=K(r);m&&m.l(tt),tt.forEach(v),E=L(d),k=J(d,"DIV",{});var it=K(k);_&&_.l(it),it.forEach(v),q=L(d),g=J(d,"DIV",{});var et=K(g);b&&b.l(et),et.forEach(v),N=L(d),s&&s.l(d),d.forEach(v),T=L(a),u&&u.l(a),a.forEach(v),this.h()},h(){c(r,"bx--toast-notification__title",!0),c(k,"bx--toast-notification__subtitle",!0),c(g,"bx--toast-notification__caption",!0),c(l,"bx--toast-notification__details",!0),st(t,Q),c(t,"bx--toast-notification",!0),c(t,"bx--toast-notification--low-contrast",i[1]),c(t,"bx--toast-notification--error",i[0]==="error"),c(t,"bx--toast-notification--info",i[0]==="info"),c(t,"bx--toast-notification--info-square",i[0]==="info-square"),c(t,"bx--toast-notification--success",i[0]==="success"),c(t,"bx--toast-notification--warning",i[0]==="warning"),c(t,"bx--toast-notification--warning-alt",i[0]==="warning-alt")},m(e,a){P(e,t,a),dt(o,t,null),C(t,n),C(t,l),C(l,r),m&&m.m(r,null),C(l,E),C(l,k),_&&_.m(k,null),C(l,q),C(l,g),b&&b.m(g,null),C(l,N),s&&s.m(l,null),C(t,T),u&&u.m(t,null),f=!0,W||(S=[j(t,"click",i[16]),j(t,"mouseover",i[17]),j(t,"mouseenter",i[18]),j(t,"mouseleave",i[19])],W=!0)},p(e,a){const d={};a&1&&(d.kind=e[0]),a&64&&(d.iconDescription=e[6]),o.$set(d),I?I.p&&(!f||a&16384)&&O(I,V,e,e[14],f?X(V,e[14],a,Wt):U(e[14]),ft):m&&m.p&&(!f||a&8)&&m.p(e,f?a:-1),p?p.p&&(!f||a&16384)&&O(p,H,e,e[14],f?X(H,e[14],a,Tt):U(e[14]),at):_&&_.p&&(!f||a&16)&&_.p(e,f?a:-1),M?M.p&&(!f||a&16384)&&O(M,z,e,e[14],f?X(z,e[14],a,Nt):U(e[14]),lt):b&&b.p&&(!f||a&32)&&b.p(e,f?a:-1),s&&s.p&&(!f||a&16384)&&O(s,A,e,e[14],f?X(A,e[14],a,null):U(e[14]),null),e[8]?u&&(rt(),D(u,1,1,()=>{u=null}),_t()):u?(u.p(e,a),a&256&&h(u,1)):(u=ct(e),u.c(),h(u,1),u.m(t,null)),st(t,Q=It(Z,[(!f||a&4)&&{role:e[2]},(!f||a&1)&&{kind:e[0]},a&4096&&e[12],(!f||a&4608&&B!==(B=""+((e[9]&&"width: 100%;")+e[12].style)))&&{style:B}])),c(t,"bx--toast-notification",!0),c(t,"bx--toast-notification--low-contrast",e[1]),c(t,"bx--toast-notification--error",e[0]==="error"),c(t,"bx--toast-notification--info",e[0]==="info"),c(t,"bx--toast-notification--info-square",e[0]==="info-square"),c(t,"bx--toast-notification--success",e[0]==="success"),c(t,"bx--toast-notification--warning",e[0]==="warning"),c(t,"bx--toast-notification--warning-alt",e[0]==="warning-alt")},i(e){f||(h(o.$$.fragment,e),h(m,e),h(_,e),h(b,e),h(s,e),h(u),f=!0)},o(e){D(o.$$.fragment,e),D(m,e),D(_,e),D(b,e),D(s,e),D(u),f=!1},d(e){e&&v(t),ht(o),m&&m.d(e),_&&_.d(e),b&&b.d(e),s&&s.d(e),u&&u.d(),W=!1,pt(S)}}}function Vt(i){let t;return{c(){t=y(i[3])},l(o){t=x(o,i[3])},m(o,n){P(o,t,n)},p(o,n){n&8&&$(t,o[3])},d(o){o&&v(t)}}}function Ht(i){let t;return{c(){t=y(i[4])},l(o){t=x(o,i[4])},m(o,n){P(o,t,n)},p(o,n){n&16&&$(t,o[4])},d(o){o&&v(t)}}}function Mt(i){let t;return{c(){t=y(i[5])},l(o){t=x(o,i[5])},m(o,n){P(o,t,n)},p(o,n){n&32&&$(t,o[5])},d(o){o&&v(t)}}}function ct(i){let t,o;return t=new qt({props:{iconDescription:i[7]}}),t.$on("click",i[11]),{c(){mt(t.$$.fragment)},l(n){bt(t.$$.fragment,n)},m(n,l){dt(t,n,l),o=!0},p(n,l){const r={};l&128&&(r.iconDescription=n[7]),t.$set(r)},i(n){o||(h(t.$$.fragment,n),o=!0)},o(n){D(t.$$.fragment,n),o=!1},d(n){ht(t,n)}}}function St(i){let t,o,n=i[10]&&ut(i);return{c(){n&&n.c(),t=ot()},l(l){n&&n.l(l),t=ot()},m(l,r){n&&n.m(l,r),P(l,t,r),o=!0},p(l,[r]){l[10]?n?(n.p(l,r),r&1024&&h(n,1)):(n=ut(l),n.c(),h(n,1),n.m(t.parentNode,t)):n&&(rt(),D(n,1,1,()=>{n=null}),_t())},i(l){o||(h(n),o=!0)},o(l){D(n),o=!1},d(l){n&&n.d(l),l&&v(t)}}}function zt(i,t,o){const n=["kind","lowContrast","timeout","role","title","subtitle","caption","statusIconDescription","closeButtonDescription","hideCloseButton","fullWidth"];let l=nt(t,n),{$$slots:r={},$$scope:E}=t,{kind:k="error"}=t,{lowContrast:q=!1}=t,{timeout:g=0}=t,{role:N="alert"}=t,{title:T=""}=t,{subtitle:B=""}=t,{caption:f=""}=t,{statusIconDescription:W=k+" icon"}=t,{closeButtonDescription:S="Close notification"}=t,{hideCloseButton:V=!1}=t,{fullWidth:I=!1}=t;const m=vt();let H=!0,p;function _(s){m("close",{timeout:s===!0},{cancelable:!0})&&o(10,H=!1)}Ct(()=>(g&&(p=setTimeout(()=>_(!0),g)),()=>{clearTimeout(p)}));function z(s){Y.call(this,i,s)}function M(s){Y.call(this,i,s)}function b(s){Y.call(this,i,s)}function A(s){Y.call(this,i,s)}return i.$$set=s=>{t=w(w({},t),Bt(s)),o(12,l=nt(t,n)),"kind"in s&&o(0,k=s.kind),"lowContrast"in s&&o(1,q=s.lowContrast),"timeout"in s&&o(13,g=s.timeout),"role"in s&&o(2,N=s.role),"title"in s&&o(3,T=s.title),"subtitle"in s&&o(4,B=s.subtitle),"caption"in s&&o(5,f=s.caption),"statusIconDescription"in s&&o(6,W=s.statusIconDescription),"closeButtonDescription"in s&&o(7,S=s.closeButtonDescription),"hideCloseButton"in s&&o(8,V=s.hideCloseButton),"fullWidth"in s&&o(9,I=s.fullWidth),"$$scope"in s&&o(14,E=s.$$scope)},[k,q,N,T,B,f,W,S,V,I,H,_,l,g,E,r,z,M,b,A]}class At extends gt{constructor(t){super(),kt(this,t,zt,St,Dt,{kind:0,lowContrast:1,timeout:13,role:2,title:3,subtitle:4,caption:5,statusIconDescription:6,closeButtonDescription:7,hideCloseButton:8,fullWidth:9})}}const Jt=At;export{Jt as T};
lilac/web/_app/immutable/chunks/navigation.52bd9048.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{j as o}from"./singletons.72823763.js";const e=o("goto");export{e as g};
lilac/web/_app/immutable/chunks/notificationsStore.46809e81.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import{ap as ue,S as B,i as N,s as P,E as b,Z as c,_ as g,m,h,n as V,$ as y,b as H,a0 as w,L as R,a1 as E,N as C,Q as A,q as j,r as x,u as S,P as fe,an as he,aj as de}from"./index.b333a928.js";import{a4 as L,am as ce,z as F,y as le,aU as ge,I,aS as q,ay as se,a5 as T,L as ae}from"./Commands.543935b9.js";import{f as me,c as pe}from"./utils.2fa1092a.js";import{w as be}from"./index.2b0dd2f8.js";function ve(l){const e=l-1;return e*e*e+1}function Ue(l,{delay:e=0,duration:n=400,easing:t=ue}={}){const i=+getComputedStyle(l).opacity;return{delay:e,duration:n,easing:t,css:r=>`opacity: ${r*i}`}}function Xe(l,{delay:e=0,duration:n=400,easing:t=ve,axis:i="y"}={}){const r=getComputedStyle(l),a=+r.opacity,s=i==="y"?"height":"width",o=parseFloat(r[s]),u=i==="y"?["top","bottom"]:["left","right"],f=u.map(O=>`${O[0].toUpperCase()}${O.slice(1)}`),_=parseFloat(r[`padding${f[0]}`]),p=parseFloat(r[`padding${f[1]}`]),z=parseFloat(r[`margin${f[0]}`]),v=parseFloat(r[`margin${f[1]}`]),d=parseFloat(r[`border${f[0]}Width`]),Y=parseFloat(r[`border${f[1]}Width`]);return{delay:e,duration:n,easing:t,css:O=>`overflow: hidden;opacity: ${Math.min(O*20,1)*a};${s}: ${O*o}px;padding-${u[0]}: ${O*_}px;padding-${u[1]}: ${O*p}px;margin-${u[0]}: ${O*z}px;margin-${u[1]}: ${O*v}px;border-${u[0]}-width: ${O*d}px;border-${u[1]}-width: ${O*Y}px;`}}function X(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function _e(l){let e,n,t=l[1]&&X(l),i=[{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]],r={};for(let a=0;a<i.length;a+=1)r=b(r,i[a]);return{c(){e=c("svg"),t&&t.c(),n=c("path"),this.h()},l(a){e=g(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=m(e);t&&t.l(s),n=g(s,"path",{d:!0}),m(n).forEach(h),s.forEach(h),this.h()},h(){V(n,"d","M21.3 4.9l-4.5-2.7C16.5 2.1 16.3 2 16 2s-.5.1-.7.2l-4.5 2.7C10.3 5.2 10 5.7 10 6.2v5.6c0 .5.3 1 .7 1.3l4.5 2.7c.2.1.5.2.7.2s.5-.1.7-.2l4.5-2.7c.4-.3.7-.7.7-1.3V6.2C22 5.7 21.7 5.2 21.3 4.9zM20 11.5l-4 2.4-4-2.4v-5l4-2.4 4 2.4V11.5zM29.3 18.9l-4.5-2.7C24.5 16.1 24.3 16 24 16s-.5.1-.7.2l-4.5 2.7c-.4.3-.7.7-.7 1.3v5.6c0 .5.3 1 .7 1.3l4.5 2.7c.2.1.5.2.7.2s.5-.1.7-.2l4.5-2.7c.4-.3.7-.7.7-1.3v-5.6C30 19.7 29.7 19.2 29.3 18.9zM28 25.5l-4 2.4-4-2.4v-5l4-2.4 4 2.4V25.5zM13.3 18.9l-4.5-2.7C8.5 16.1 8.3 16 8 16s-.5.1-.7.2l-4.5 2.7C2.3 19.2 2 19.7 2 20.2v5.6c0 .5.3 1 .7 1.3l4.5 2.7C7.5 29.9 7.7 30 8 30s.5-.1.7-.2l4.5-2.7c.4-.3.7-.7.7-1.3v-5.6C14 19.7 13.7 19.2 13.3 18.9zM12 25.5l-4 2.4-4-2.4v-5l4-2.4 4 2.4V25.5z"),y(e,r)},m(a,s){H(a,e,s),t&&t.m(e,null),w(e,n)},p(a,[s]){a[1]?t?t.p(a,s):(t=X(a),t.c(),t.m(e,n)):t&&(t.d(1),t=null),y(e,r=R(i,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:a[0]},s&1&&{height:a[0]},s&4&&a[2],s&8&&a[3]]))},i:E,o:E,d(a){a&&h(e),t&&t.d()}}}function we(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class ze extends B{constructor(e){super(),N(this,e,we,_e,P,{size:0,title:1})}}function G(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function Me(l){let e,n,t,i=l[1]&&G(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]],a={};for(let s=0;s<r.length;s+=1)a=b(a,r[s]);return{c(){e=c("svg"),i&&i.c(),n=c("path"),t=c("circle"),this.h()},l(s){e=g(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=m(e);i&&i.l(o),n=g(o,"path",{d:!0}),m(n).forEach(h),t=g(o,"circle",{cx:!0,cy:!0,r:!0}),m(t).forEach(h),o.forEach(h),this.h()},h(){V(n,"d","M23,23a7,7,0,1,1,7-7A7.0078,7.0078,0,0,1,23,23Zm0-12a5,5,0,1,0,5,5A5.0055,5.0055,0,0,0,23,11Z"),V(t,"cx","9"),V(t,"cy","16"),V(t,"r","7"),y(e,a)},m(s,o){H(s,e,o),i&&i.m(e,null),w(e,n),w(e,t)},p(s,[o]){s[1]?i?i.p(s,o):(i=G(s),i.c(),i.m(e,n)):i&&(i.d(1),i=null),y(e,a=R(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:E,o:E,d(s){s&&h(e),i&&i.d()}}}function Ve(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class ye extends B{constructor(e){super(),N(this,e,Ve,Me,P,{size:0,title:1})}}function Q(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function Ee(l){let e,n,t,i,r=l[1]&&Q(l),a=[{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]],s={};for(let o=0;o<a.length;o+=1)s=b(s,a[o]);return{c(){e=c("svg"),r&&r.c(),n=c("path"),t=c("path"),i=c("path"),this.h()},l(o){e=g(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var u=m(e);r&&r.l(u),n=g(u,"path",{d:!0}),m(n).forEach(h),t=g(u,"path",{d:!0}),m(t).forEach(h),i=g(u,"path",{d:!0}),m(i).forEach(h),u.forEach(h),this.h()},h(){V(n,"d","M21 15H23V17H21z"),V(t,"d","M24 23H20a2.0023 2.0023 0 01-2-2V11a2.002 2.002 0 012-2h4a2.0023 2.0023 0 012 2V21A2.0027 2.0027 0 0124 23zM20 11h0V21h4V11zM11 15H13V17H11z"),V(i,"d","M14 23H10a2.0023 2.0023 0 01-2-2V11a2.002 2.002 0 012-2h4a2.0023 2.0023 0 012 2V21A2.0027 2.0027 0 0114 23zM10 11h0V21h4V11zM4 21H6V23H4z"),y(e,s)},m(o,u){H(o,e,u),r&&r.m(e,null),w(e,n),w(e,t),w(e,i)},p(o,[u]){o[1]?r?r.p(o,u):(r=Q(o),r.c(),r.m(e,n)):r&&(r.d(1),r=null),y(e,s=R(a,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},u&1&&{width:o[0]},u&1&&{height:o[0]},u&4&&o[2],u&8&&o[3]]))},i:E,o:E,d(o){o&&h(e),r&&r.d()}}}function Ce(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class D extends B{constructor(e){super(),N(this,e,Ce,Ee,P,{size:0,title:1})}}function J(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function Ae(l){let e,n,t,i=l[1]&&J(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]],a={};for(let s=0;s<r.length;s+=1)a=b(a,r[s]);return{c(){e=c("svg"),i&&i.c(),n=c("path"),t=c("path"),this.h()},l(s){e=g(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=m(e);i&&i.l(o),n=g(o,"path",{d:!0}),m(n).forEach(h),t=g(o,"path",{d:!0}),m(t).forEach(h),o.forEach(h),this.h()},h(){V(n,"d","M28 9H22v2h6v4H24v2h4v4H22v2h6a2.0027 2.0027 0 002-2V11A2.0023 2.0023 0 0028 9zM20 23H12V17a2.002 2.002 0 012-2h4V11H12V9h6a2.0023 2.0023 0 012 2v4a2.0023 2.0023 0 01-2 2H14v4h6zM2.5 22.5L2.5 21.5 5.5 21.5 5.5 10.5 2.5 10.5 2.5 9.5 6.5 9.5 6.5 21.5 9.5 21.5 9.5 22.5 2.5 22.5z"),V(t,"d","M6,10V22H6V10M7,9H2v2H5V21H2v2h8V21H7V9Z"),y(e,a)},m(s,o){H(s,e,o),i&&i.m(e,null),w(e,n),w(e,t)},p(s,[o]){s[1]?i?i.p(s,o):(i=J(s),i.c(),i.m(e,n)):i&&(i.d(1),i=null),y(e,a=R(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:E,o:E,d(s){s&&h(e),i&&i.d()}}}function He(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class k extends B{constructor(e){super(),N(this,e,He,Ae,P,{size:0,title:1})}}function $(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function Oe(l){let e,n,t,i=l[1]&&$(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]],a={};for(let s=0;s<r.length;s+=1)a=b(a,r[s]);return{c(){e=c("svg"),i&&i.c(),n=c("path"),t=c("path"),this.h()},l(s){e=g(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=m(e);i&&i.l(o),n=g(o,"path",{d:!0}),m(n).forEach(h),t=g(o,"path",{d:!0}),m(t).forEach(h),o.forEach(h),this.h()},h(){V(n,"d","M28,30H4a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,4,2H28a2.0021,2.0021,0,0,1,2,2V28A2.0021,2.0021,0,0,1,28,30ZM4,4V28H28V4Z"),V(t,"d","M13 7H15V14H13zM8 7H10V14H8zM22 14H20a2.0021 2.0021 0 01-2-2V9a2.0021 2.0021 0 012-2h2a2.0021 2.0021 0 012 2v3A2.0021 2.0021 0 0122 14zM20 9v3h2V9zM22 18H24V25H22zM8 18H10V25H8zM17 25H15a2.0021 2.0021 0 01-2-2V20a2.0021 2.0021 0 012-2h2a2.0021 2.0021 0 012 2v3A2.0021 2.0021 0 0117 25zm-2-5v3h2V20z"),y(e,a)},m(s,o){H(s,e,o),i&&i.m(e,null),w(e,n),w(e,t)},p(s,[o]){s[1]?i?i.p(s,o):(i=$(s),i.c(),i.m(e,n)):i&&(i.d(1),i=null),y(e,a=R(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:E,o:E,d(s){s&&h(e),i&&i.d()}}}function ke(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class Be extends B{constructor(e){super(),N(this,e,ke,Oe,P,{size:0,title:1})}}function ee(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function Ne(l){let e,n,t=l[1]&&ee(l),i=[{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]],r={};for(let a=0;a<i.length;a+=1)r=b(r,i[a]);return{c(){e=c("svg"),t&&t.c(),n=c("path"),this.h()},l(a){e=g(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=m(e);t&&t.l(s),n=g(s,"path",{d:!0}),m(n).forEach(h),s.forEach(h),this.h()},h(){V(n,"d","M4 15H14V17H4zM18 15H28V17H18z"),y(e,r)},m(a,s){H(a,e,s),t&&t.m(e,null),w(e,n)},p(a,[s]){a[1]?t?t.p(a,s):(t=ee(a),t.c(),t.m(e,n)):t&&(t.d(1),t=null),y(e,r=R(i,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:a[0]},s&1&&{height:a[0]},s&4&&a[2],s&8&&a[3]]))},i:E,o:E,d(a){a&&h(e),t&&t.d()}}}function Pe(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class Re extends B{constructor(e){super(),N(this,e,Pe,Ne,P,{size:0,title:1})}}function te(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function je(l){let e,n,t=l[1]&&te(l),i=[{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]],r={};for(let a=0;a<i.length;a+=1)r=b(r,i[a]);return{c(){e=c("svg"),t&&t.c(),n=c("path"),this.h()},l(a){e=g(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=m(e);t&&t.l(s),n=g(s,"path",{d:!0}),m(n).forEach(h),s.forEach(h),this.h()},h(){V(n,"d","M29 22H24a2.0027 2.0027 0 01-2-2V14a2.0023 2.0023 0 012-2h5v2H24v6h5zM18 12H14V8H12V22h6a2.0027 2.0027 0 002-2V14A2.0023 2.0023 0 0018 12zm-4 8V14h4v6zM8 12H3v2H8v2H4a2 2 0 00-2 2v2a2 2 0 002 2h6V14A2.0023 2.0023 0 008 12zm0 8H4V18H8z"),y(e,r)},m(a,s){H(a,e,s),t&&t.m(e,null),w(e,n)},p(a,[s]){a[1]?t?t.p(a,s):(t=te(a),t.c(),t.m(e,n)):t&&(t.d(1),t=null),y(e,r=R(i,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:a[0]},s&1&&{height:a[0]},s&4&&a[2],s&8&&a[3]]))},i:E,o:E,d(a){a&&h(e),t&&t.d()}}}function xe(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class ie extends B{constructor(e){super(),N(this,e,xe,je,P,{size:0,title:1})}}function ne(l){let e,n;return{c(){e=c("title"),n=j(l[1])},l(t){e=g(t,"title",{});var i=m(e);n=x(i,l[1]),i.forEach(h)},m(t,i){H(t,e,i),w(e,n)},p(t,i){i&2&&S(n,t[1])},d(t){t&&h(e)}}}function Se(l){let e,n,t,i=l[1]&&ne(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]],a={};for(let s=0;s<r.length;s+=1)a=b(a,r[s]);return{c(){e=c("svg"),i&&i.c(),n=c("path"),t=c("path"),this.h()},l(s){e=g(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=m(e);i&&i.l(o),n=g(o,"path",{d:!0}),m(n).forEach(h),t=g(o,"path",{d:!0}),m(t).forEach(h),o.forEach(h),this.h()},h(){V(n,"d","M16,30A14,14,0,1,1,30,16,14,14,0,0,1,16,30ZM16,4A12,12,0,1,0,28,16,12,12,0,0,0,16,4Z"),V(t,"d","M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"),y(e,a)},m(s,o){H(s,e,o),i&&i.m(e,null),w(e,n),w(e,t)},p(s,[o]){s[1]?i?i.p(s,o):(i=ne(s),i.c(),i.m(e,n)):i&&(i.d(1),i=null),y(e,a=R(r,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:E,o:E,d(s){s&&h(e),i&&i.d()}}}function Te(l,e,n){let t,i;const r=["size","title"];let a=C(e,r),{size:s=16}=e,{title:o=void 0}=e;return l.$$set=u=>{n(5,e=b(b({},e),A(u))),n(3,a=C(e,r)),"size"in u&&n(0,s=u.size),"title"in u&&n(1,o=u.title)},l.$$.update=()=>{n(4,t=e["aria-label"]||e["aria-labelledby"]||o),n(2,i={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=A(e),[s,o,i,a,t]}class Z extends B{constructor(e){super(),N(this,e,Te,Se,P,{size:0,title:1})}}const Ge="itemScrollContainer",Qe={string:ie,string_span:ie,uint8:k,uint16:k,uint32:k,uint64:k,int8:k,int16:k,int32:k,int64:k,boolean:ye,float16:D,float32:D,float64:D,time:Z,date:Z,timestamp:Z,interval:Z,embedding:ze,binary:Be,null:Re};function Je(l,e,n,t){if(e==null)return[];let i=[];return t==null?i=L(n||e):i=ce(t,n||e),i.filter(r=>re(l,r.path))}function Ye(l,e){return e.some(n=>I(n.path,l.path))}function $e(l,e){const n=ae.field(l);return n==null?!1:Ye(n,e)}function Le(l,e){const n={};let t;if(l.fields!=null){for(const[r,a]of Object.entries(l.fields))if(e.some(s=>I(s.path,a.path))){const s=Le(a,e);s!=null&&(n[r]=s)}}else l.repeated_field!=null&&(e.some(r=>{var a;return I(r.path,(a=l.repeated_field)==null?void 0:a.path)})?t=l.repeated_field:t=void 0);return t==null&&Object.keys(n).length===0?{...l,fields:void 0,repeated_field:void 0}:l.path.length===0||e.some(r=>I(r.path,l.path))?{...l,fields:n,repeated_field:t}:null}function et(l,e){var n;return l==null?[]:e==null?[]:(((n=e==null?void 0:e.ui)==null?void 0:n.media_paths)||[]).map(t=>se(l,t))}function re(l,e){if(l==null)return!1;if(typeof e!="string"&&(e=F(e)),l[e]!=null)return l[e];const n=le(e);return n.length>1?re(l,F(n.slice(0,n.length-1))):!0}function tt(l,e){return l.searchPath!=null&&l.selectedColumns[l.searchPath]!=!1?le(l.searchPath):Ie(e)}function it(l,e,n,t,i,r){if(n.searchEmbedding!=null)return n.searchEmbedding;if(e!=null&&e.preferred_embedding!=null)return e.preferred_embedding;if(l.embedding!=null)return l.embedding;if(i==null)return null;const a=oe(t,i);return(a!=null?[...r||[]].sort((o,u)=>{const f=a.includes(o),_=a.includes(u);return f&&_?0:f?-1:_?1:0}):[])[0]}function oe(l,e){if(l.schema==null||e==null)return[];const n=new Set,t=L(se(l.schema,e)).filter(i=>i.signal!=null&&L(i).some(r=>r.dtype==="embedding"));for(const i of t)i.signal!=null&&n.add(i.signal.signal_name);return Array.from(n)}function nt(l,e){return e==null||l==null?!1:(l.udfs||[]).some(n=>q(e,n.path))}function lt(l,e){return e==null?l.query.searches||[]:(l.query.searches||[]).filter(n=>I(n.path,e))}function Ie(l){if(l.stats==null||l.stats.length===0)return null;const e=(l.visibleFields||[]).filter(t=>t.dtype==="string").map(t=>F(t.path));let n=l.stats.map(t=>({path:t.path,embeddings:oe(l,t.path),avgTextLength:t.avg_text_length,isVisible:e.indexOf(F(t.path))>=0}));return n=n.sort((t,i)=>!t.isVisible&&i.isVisible?1:t.isVisible&&!i.isVisible||t.embeddings.length>0&&i.embeddings.length===0?-1:t.embeddings.length===0&&i.embeddings.length>0?1:t.avgTextLength!=null&&i.avgTextLength!=null?i.avgTextLength-t.avgTextLength:i.embeddings.length-t.embeddings.length),n[0].path}function st(l,e){const n={};for(const r of e){let a=[""];r.tags!=null&&r.tags.length>0&&(a=r.tags);for(const s of a)n[s]==null&&(n[s]={}),n[s][r.namespace]==null&&(n[s][r.namespace]=[]),n[s][r.namespace].push(r)}const t=["lilac"],i=[];for(const r of Object.keys(n).sort()){const a=Object.keys(n[r]).sort((s,o)=>t.indexOf(s)-t.indexOf(o)||s.localeCompare(o)).map(s=>({group:s,items:n[r][s].sort((o,u)=>o.dataset_name.localeCompare(u.dataset_name)).map(o=>({name:o.dataset_name,link:me(o.namespace,o.dataset_name),isSelected:(l==null?void 0:l.namespace)===o.namespace&&(l==null?void 0:l.datasetName)===o.dataset_name}))}));i.push({tag:r,groups:a})}return i}function at(l,e,n,t){const i={};for(const s of e){let o=[""];s.tags!=null&&s.tags.length>0&&(o=s.tags);for(const u of o)i[u]==null&&(i[u]={}),i[u][s.namespace]==null&&(i[u][s.namespace]=[]),i[u][s.namespace].push(s)}const r=["lilac"],a=[];for(const s of Object.keys(i).sort()){const o=Object.keys(i[s]).sort((u,f)=>r.indexOf(u)-r.indexOf(f)||u.localeCompare(f)).map(u=>({group:u===n?`${t}'s concepts`:u,items:i[s][u].sort((f,_)=>f.name.localeCompare(_.name)).map(f=>({name:f.name,link:pe(f.namespace,f.name),isSelected:(l==null?void 0:l.namespace)===f.namespace&&(l==null?void 0:l.name)===f.name}))}));a.push({tag:s,groups:o})}return a}function rt(l,e){const n={};for(const i of l)n[i.namespace]==null&&(n[i.namespace]=[]),n[i.namespace].push(i);const t=[e,"lilac"];return Object.keys(n).sort((i,r)=>t.indexOf(i)-t.indexOf(r)||i.localeCompare(r)).map(i=>({namespace:i,concepts:n[i].sort((r,a)=>r.name.localeCompare(a.name))}))}function ot(l,e,n){var t;return n!=null&&n.auth_enabled&&((t=n.user)==null?void 0:t.id)===l?e:`${l}/${e}`}function ut(l){var e,n;return(((n=(e=l.selectRowsSchema)==null?void 0:e.data)==null?void 0:n.sorts)||[])[0]||null}function ft(l,e){const n=[l,...L(l)],t=n.filter(f=>ge(f.signal)),i=n.filter(f=>{var _;return((_=f.signal)==null?void 0:_.signal_name)==="concept_labels"}),r=n.filter(f=>{var _;return((_=f.signal)==null?void 0:_.signal_name)==="semantic_similarity"}),a=n.filter(f=>{var _;return((_=f.signal)==null?void 0:_.signal_name)==="substring_search"}),s=n.filter(f=>f.dtype==="string_span").filter(f=>!L(f).some(_=>_.dtype==="embedding")),o=s.map(f=>f.path),u=[];for(const f of s){const p=L(f).filter(d=>d.dtype!="string_span").filter(d=>e==null||(e==null?void 0:e.some(Y=>I(Y.path,d.path)))).filter(d=>d.dtype!=null&&d.dtype!="embedding"),z=f.path,v=a.find(d=>q(f.path,d.path));if(v!=null){const d=v.signal;u.push({path:f.path,spanPath:z,type:"keyword",name:d.query,dtype:f.dtype,signal:d})}else p.length===0&&u.push({path:f.path,spanPath:z,type:"leaf_span",name:F(f.path.slice(0,-1)),dtype:f.dtype});for(const d of p){const Y=t.find(M=>q(d.path,M.path)),O=i.find(M=>q(d.path,M.path)),U=r.find(M=>q(d.path,M.path));if(Y!=null){const M=Y.signal;u.push({path:d.path,spanPath:z,type:"concept_score",name:`${M.namespace}/${M.concept_name}`,dtype:d.dtype,signal:M})}else if(O!=null){const M=O.signal;u.push({path:d.path,spanPath:z,type:"label",name:`${M.namespace}/${M.concept_name} label`,dtype:d.dtype,signal:M})}else if(U!=null){const M=U.signal;u.push({path:d.path,spanPath:z,type:"semantic_similarity",name:`similarity: ${M.query}`,dtype:d.dtype,signal:M})}else u.push({path:d.path,spanPath:z,type:"metadata",name:d.path[d.path.length-1],dtype:d.dtype})}}return{spanPaths:o,valuePaths:u}}function Fe(l){const e=`
2
+ `,n=l.split(e),t=[];let i=0;for(let r=0;r<n.length;r++){const a=n[r]+(r<n.length-1?e:""),s=i+qe(a),o={start:i,end:s};t.push({text:a,span:o,originalSpans:{},paths:[]}),i=s}return t}function ht(l,e){e=Object.fromEntries(Object.entries(e).filter(([,u])=>u.length>0));const n=Object.keys(e);if(n.length===0)return Fe(l);const t=K(l),i=t.length,r=Object.fromEntries(Object.keys(e).map(u=>[u,0]));for(const u of n)e[u].sort((f,_)=>{var v,d;const p=((v=f[T])==null?void 0:v.start)||0,z=((d=_[T])==null?void 0:d.start)||0;return p-z});let a=0;const s=[];let o=Object.fromEntries(Object.entries(r).map(([u,f])=>[u,[e[u][f],e[u][f+1]]]));for(;a<i;){let u=i;for(const p of Object.values(o))for(const z of p){const v=(z||{})[T];v!=null&&(v.start<u&&v.start>a&&(u=v.start),v.end<u&&v.end>a&&(u=v.end))}const f=Object.fromEntries(Object.entries(o).map(([p,z])=>[p,z.filter(v=>v!=null&&v[T]!=null&&v[T].start<u&&v[T].end>a)]));for(const p of Object.keys(f))f[p].length===0&&delete f[p];const _=Object.values(f).flat().map(p=>ae.path(p)).map(p=>F(p));s.push({text:t.slice(a,u).join(""),span:{start:a,end:u},originalSpans:f,paths:_});for(const p of Object.keys(r)){const z=r[p],v=(o[p][0]||{})[T];if(!(v==null||z==null)&&v.end<=u){if(z>e[p].length){delete r[p];continue}r[p]++}}a=u,o=Object.fromEntries(Object.entries(r).map(([p,z])=>[p,[e[p][z],e[p][z+1]]]))}return a<i&&s.push({text:t.slice(a).join(""),span:{start:a,end:i},originalSpans:{},paths:[]}),s}function dt(l,e,n){return K(l).slice(e,n).join("")}function K(l){return[...l]}function qe(l){return K(l).length}const W="NOTIFICATIONS_CONTEXT";function ct(){const{subscribe:l,set:e,update:n}=be({notifications:[]});return{subscribe:l,set:e,update:n,reset(){e({notifications:[]})},addNotification(t){n(i=>(i.notifications.push(t),i))},removeNotification(t){n(i=>(i.notifications=i.notifications.filter(r=>r!==t),i))}}}function gt(l){fe(W,l)}function mt(){if(!he(W))throw new Error("NotificationContext not found");return de(W)}export{ze as A,Qe as D,Ge as I,at as a,gt as b,ct as c,lt as d,ut as e,tt as f,st as g,oe as h,ft as i,Le as j,et as k,it as l,rt as m,ot as n,nt as o,Ue as p,Je as q,dt as r,Xe as s,$e as t,mt as u,ht as v};
lilac/web/_app/immutable/chunks/singletons.72823763.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{w as u}from"./index.2b0dd2f8.js";var _;const k=((_=globalThis.__sveltekit_1hdzqpm)==null?void 0:_.base)??"";var h;const m=((h=globalThis.__sveltekit_1hdzqpm)==null?void 0:h.assets)??k,w="1692640691960",T="sveltekit:snapshot",y="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function x(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function U(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||A(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=g(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function E(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function A(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let b;function N(e){b=e.client}function P(e){return(...t)=>b[e](...t)}const V={url:p({}),page:p({}),navigating:u(null),updated:E()};export{I,f as P,y as S,T as a,U as b,L as c,x as d,k as e,O as f,S as g,N as h,A as i,P as j,V as s};
lilac/web/_app/immutable/chunks/stores.2a862464.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{s as e}from"./singletons.72823763.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
lilac/web/_app/immutable/chunks/utils.2fa1092a.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{aq as p}from"./Commands.543935b9.js";import{P as h,an as d,aj as y}from"./index.b333a928.js";import{w as S}from"./index.2b0dd2f8.js";function u(n){return!!(n&&typeof n=="object"&&!Array.isArray(n))}function a(n,...t){if(!t.length)return n;const o=t.shift();if(u(n)&&u(o))for(const s in o){const e=n[s],i=o[s];u(i)&&u(e)?(e||Object.assign(n,{[s]:{}}),a(e,i)):e||Object.assign(n,{[s]:i})}return a(n,...t)}const c="URL_HASH_CONTEXT";function k(){const{subscribe:n,update:t}=S({hash:"",page:null,identifier:null,hashState:null});return{subscribe:n,setHash(o,s){t(e=>{const[i,...r]=s.slice(1).split("&");return e.page=o,e.hash=s,e.identifier=i,e.hashState=r.join("&"),e})}}}function b(n,t){const o=`#${n}`+(t!=""?`&${t}`:"");o!=location.hash&&history.pushState(null,"",o)}function J(n){h(c,n)}function N(){if(!d(c))throw new Error("UrlHashStoreContext not found");return y(c)}function l(n,t){const o=Object.keys(n);for(const s of o){const e=n[s],i=t[s],r=JSON.stringify(e),f=JSON.stringify(i);r==f&&delete n[s],typeof e=="object"&&i!=null&&e!=null&&l(e,i)}}function O(n,t){n=JSON.parse(JSON.stringify(n)),l(n,t);const o=[];for(const s of Object.keys(n)){const e=JSON.stringify(n[s]);o.push([s,e])}return o.map(([s,e])=>`${s}=${encodeURIComponent(e)}`).join("&")}function U(n,t){if(t=JSON.parse(JSON.stringify(t)),n==null||n=="")return t;const o={},s=(decodeURIComponent(n)||"").split("&");for(const e of s){if(e==null)continue;const[i,r]=e.split("=");o[i]=JSON.parse(r)}return a(t,o)}function H(n,t,o,s,e,i){let r=!1;s.subscribe(f=>{f.page===n&&f.identifier===t&&(r=!0,o.set(e(f.hashState)))}),o.subscribe(f=>{f!=null&&(r||b(t,i(f)),r=!1)})}function x(n){return n!=null}function $(n,t){return`${n}/${t}`}function V(n,t){return`/concepts#${$(n,t)}`}function j(n,t){return`${n}/${t}`}function L(n,t,o){let s=null;if(o!=null){const e=p(n,t);s=O(o,e)}return`/datasets#${j(n,t)}${s!=null?`&${s}`:""}`}function w(n){return`/signals#${n}`}export{J as a,k as b,V as c,$ as d,j as e,L as f,N as g,O as h,U as i,x as n,H as p,w as s};
lilac/web/_app/immutable/entry/app.7c394acf.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as C,i as q,s as U,a as j,e as d,c as z,b as E,d as h,f as P,g,h as w,j as W,o as F,k as G,l as H,m as J,n as D,p as m,q as K,r as M,u as Q,v as A,w as I,x as k,y as v,z as O,A as R,B as L}from"../chunks/index.b333a928.js";const X="modulepreload",Y=function(a,e){return new URL(a,e).href},T={},p=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Y(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let l=s.length-1;l>=0;l--){const u=s[l];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const o=document.createElement("link");if(o.rel=t?"stylesheet":X,t||(o.as="script",o.crossOrigin=""),o.href=f,document.head.appendChild(o),t)return new Promise((l,u)=>{o.addEventListener("load",l),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e())},ie={};function Z(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,f(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){const _={};if(r&8&&(_.data=t[3]),r&4&&(_.form=t[2]),r&2&&s!==(s=t[1][0])){if(e){A();const o=e;h(o.$$.fragment,1,0,()=>{L(o,1)}),P()}s?(e=k(s,f(t)),t[12](e),v(e.$$.fragment),g(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else s&&e.$set(_)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[12](null),t&&w(n),e&&L(e,t)}}}function $(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],$$slots:{default:[x]},$$scope:{ctx:t}}}}return s&&(e=k(s,f(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){const _={};if(r&8&&(_.data=t[3]),r&8215&&(_.$$scope={dirty:r,ctx:t}),r&2&&s!==(s=t[1][0])){if(e){A();const o=e;h(o.$$.fragment,1,0,()=>{L(o,1)}),P()}s?(e=k(s,f(t)),t[11](e),v(e.$$.fragment),g(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else s&&e.$set(_)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[11](null),t&&w(n),e&&L(e,t)}}}function x(a){let e,n,i;var s=a[1][1];function f(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,f(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),E(t,n,r),i=!0},p(t,r){const _={};if(r&16&&(_.data=t[4]),r&4&&(_.form=t[2]),r&2&&s!==(s=t[1][1])){if(e){A();const o=e;h(o.$$.fragment,1,0,()=>{L(o,1)}),P()}s?(e=k(s,f(t)),t[10](e),v(e.$$.fragment),g(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else s&&e.$set(_)},i(t){i||(e&&g(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){a[10](null),t&&w(n),e&&L(e,t)}}}function V(a){let e,n=a[6]&&y(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(w),this.h()},h(){D(e,"id","svelte-announcer"),D(e,"aria-live","assertive"),D(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){E(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=y(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&w(e),n&&n.d()}}}function y(a){let e;return{c(){e=K(a[7])},l(n){e=M(n,a[7])},m(n,i){E(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&w(e)}}}function ee(a){let e,n,i,s,f;const t=[$,Z],r=[];function _(l,u){return l[1][1]?0:1}e=_(a),n=r[e]=t[e](a);let o=a[5]&&V(a);return{c(){n.c(),i=j(),o&&o.c(),s=d()},l(l){n.l(l),i=z(l),o&&o.l(l),s=d()},m(l,u){r[e].m(l,u),E(l,i,u),o&&o.m(l,u),E(l,s,u),f=!0},p(l,[u]){let b=e;e=_(l),e===b?r[e].p(l,u):(A(),h(r[b],1,1,()=>{r[b]=null}),P(),n=r[e],n?n.p(l,u):(n=r[e]=t[e](l),n.c()),g(n,1),n.m(i.parentNode,i)),l[5]?o?o.p(l,u):(o=V(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i(l){f||(g(n),f=!0)},o(l){h(n),f=!1},d(l){r[e].d(l),l&&w(i),o&&o.d(l),l&&w(s)}}}function te(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:_=null}=e,{data_1:o=null}=e;W(i.page.notify);let l=!1,u=!1,b=null;F(()=>{const c=i.page.subscribe(()=>{l&&(n(6,u=!0),n(7,b=document.title||"untitled page"))});return n(5,l=!0),c});function N(c){I[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function S(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function B(c){I[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,f=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,_=c.data_0),"data_1"in c&&n(4,o=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,f,r,_,o,l,u,b,i,s,N,S,B]}class se extends C{constructor(e){super(),q(this,e,te,ee,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>p(()=>import("../nodes/0.63438c74.js"),["../nodes/0.63438c74.js","../chunks/index.b333a928.js","../chunks/ChevronUp.efe9cbe8.js","../chunks/Commands.543935b9.js","../chunks/index.2b0dd2f8.js","../assets/Commands.319d3f89.css","../chunks/utils.2fa1092a.js","../chunks/stores.2a862464.js","../chunks/singletons.72823763.js","../chunks/navigation.52bd9048.js","../chunks/notificationsStore.46809e81.js","../chunks/Settings.e24cc1d1.js","../chunks/settingsStore.6e7d5078.js","../chunks/ToastNotification.b080933f.js","../assets/0.f5aaacd6.css"],import.meta.url),()=>p(()=>import("../nodes/1.347feca2.js"),["../nodes/1.347feca2.js","../chunks/index.b333a928.js","../chunks/stores.2a862464.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js"],import.meta.url),()=>p(()=>import("../nodes/2.f84a7216.js"),["../nodes/2.f84a7216.js","../chunks/index.b333a928.js","../chunks/navigation.52bd9048.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js","../chunks/Commands.543935b9.js","../assets/Commands.319d3f89.css","../chunks/Page.3051bdc4.js","../assets/Page.61b340b0.css"],import.meta.url),()=>p(()=>import("../nodes/3.f518ce2a.js"),["../nodes/3.f518ce2a.js","../chunks/index.b333a928.js","../chunks/navigation.52bd9048.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js","../chunks/Page.3051bdc4.js","../chunks/Commands.543935b9.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/ConceptView.a39bdbf2.js","../chunks/utils.2fa1092a.js","../chunks/StringSpanHighlight.0900fe94.js","../chunks/notificationsStore.46809e81.js","../assets/StringSpanHighlight.c928b3d5.css","../chunks/ChevronUp.efe9cbe8.js","../chunks/settingsStore.6e7d5078.js","../chunks/ArrowUpRight.e306cdcd.js","../chunks/ToastNotification.b080933f.js","../assets/ConceptView.91d1847f.css"],import.meta.url),()=>p(()=>import("../nodes/4.ded2f795.js"),["../nodes/4.ded2f795.js","../chunks/index.b333a928.js","../chunks/navigation.52bd9048.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js","../chunks/Page.3051bdc4.js","../chunks/Commands.543935b9.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/notificationsStore.46809e81.js","../chunks/utils.2fa1092a.js","../chunks/ConceptView.a39bdbf2.js","../chunks/StringSpanHighlight.0900fe94.js","../assets/StringSpanHighlight.c928b3d5.css","../chunks/ChevronUp.efe9cbe8.js","../chunks/settingsStore.6e7d5078.js","../chunks/ArrowUpRight.e306cdcd.js","../chunks/ToastNotification.b080933f.js","../assets/ConceptView.91d1847f.css","../chunks/RowItemMetadata.56f7680d.js","../assets/RowItemMetadata.0f74c501.css","../chunks/ComboBox.09dac6a6.js","../chunks/Settings.e24cc1d1.js","../assets/4.1e49baa5.css"],import.meta.url),()=>p(()=>import("../nodes/5.de5aac14.js"),["../nodes/5.de5aac14.js","../chunks/index.b333a928.js","../chunks/navigation.52bd9048.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js","../chunks/Page.3051bdc4.js","../chunks/Commands.543935b9.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/utils.2fa1092a.js","../chunks/ArrowUpRight.e306cdcd.js","../chunks/ToastNotification.b080933f.js","../assets/5.cd1a9257.css"],import.meta.url),()=>p(()=>import("../nodes/6.8e128871.js"),["../nodes/6.8e128871.js","../chunks/index.b333a928.js","../chunks/navigation.52bd9048.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js","../chunks/Commands.543935b9.js","../assets/Commands.319d3f89.css","../chunks/Page.3051bdc4.js","../assets/Page.61b340b0.css","../chunks/ComboBox.09dac6a6.js","../chunks/utils.2fa1092a.js","../assets/6.8302e01e.css"],import.meta.url),()=>p(()=>import("../nodes/7.587ad43b.js"),["../nodes/7.587ad43b.js","../chunks/index.b333a928.js","../chunks/Page.3051bdc4.js","../chunks/Commands.543935b9.js","../chunks/index.2b0dd2f8.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/settingsStore.6e7d5078.js"],import.meta.url),()=>p(()=>import("../nodes/8.7f297acf.js"),["../nodes/8.7f297acf.js","../chunks/index.b333a928.js","../chunks/navigation.52bd9048.js","../chunks/singletons.72823763.js","../chunks/index.2b0dd2f8.js","../chunks/Page.3051bdc4.js","../chunks/Commands.543935b9.js","../assets/Commands.319d3f89.css","../assets/Page.61b340b0.css","../chunks/notificationsStore.46809e81.js","../chunks/utils.2fa1092a.js","../chunks/RowItemMetadata.56f7680d.js","../chunks/StringSpanHighlight.0900fe94.js","../assets/StringSpanHighlight.c928b3d5.css","../assets/RowItemMetadata.0f74c501.css","../assets/8.483966d0.css"],import.meta.url)],oe=[],ae={"/":[2],"/concepts":[3],"/datasets":[4],"/datasets/loading":[5],"/datasets/new":[6],"/settings":[7],"/signals":[8]},le={handleError:({error:a})=>{console.error(a)}};export{ae as dictionary,le as hooks,ie as matchers,re as nodes,se as root,oe as server_loads};
lilac/web/_app/immutable/entry/start.222476e8.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{o as De,t as ye}from"../chunks/index.b333a928.js";import{S as He,a as Je,I as V,g as Ce,f as Ve,b as we,c as le,s as M,d as Q,i as _e,e as J,P as qe,h as We}from"../chunks/singletons.72823763.js";function Xe(t,o){return t==="/"||o==="ignore"?t:o==="never"?t.endsWith("/")?t.slice(0,-1):t:o==="always"&&!t.endsWith("/")?t+"/":t}function Ze(t){return t.split("%25").map(decodeURI).join("%25")}function Qe(t){for(const o in t)t[o]=decodeURIComponent(t[o]);return t}const et=["href","pathname","search","searchParams","toString","toJSON"];function tt(t,o){const u=new URL(t);for(const i of et)Object.defineProperty(u,i,{get(){return o(),t[i]},enumerable:!0,configurable:!0});return nt(u),u}function nt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const at="/__data.json";function rt(t){return t.replace(/\/$/,"")+at}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Fe(t,o){const u=JSON.stringify(o);try{sessionStorage[t]=u}catch{}}function ot(...t){let o=5381;for(const u of t)if(typeof u=="string"){let i=u.length;for(;i;)o=o*33^u.charCodeAt(--i)}else if(ArrayBuffer.isView(u)){const i=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=i.length;for(;d;)o=o*33^i[--d]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,o)=>((t instanceof Request?t.method:(o==null?void 0:o.method)||"GET")!=="GET"&&te.delete(Se(t)),fe(t,o));const te=new Map;function it(t,o){const u=Se(t,o),i=document.querySelector(u);if(i!=null&&i.textContent){const{body:d,...f}=JSON.parse(i.textContent),S=i.getAttribute("data-ttl");return S&&te.set(u,{body:d,init:f,ttl:1e3*Number(S)}),Promise.resolve(new Response(d,f))}return fe(t,o)}function st(t,o,u){if(te.size>0){const i=Se(t,u),d=te.get(i);if(d){if(performance.now()<d.ttl&&["default","force-cache","only-if-cached",void 0].includes(u==null?void 0:u.cache))return new Response(d.body,d.init);te.delete(i)}}return fe(o,u)}function Se(t,o){let i=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(o!=null&&o.headers||o!=null&&o.body){const d=[];o.headers&&d.push([...new Headers(o.headers)].join(",")),o.body&&(typeof o.body=="string"||ArrayBuffer.isView(o.body))&&d.push(o.body),i+=`[data-hash="${ot(...d)}"]`}return i}const ct=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function lt(t){const o=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${ut(t).map(i=>{const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(d)return o.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(f)return o.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const S=i.split(/\[(.+?)\](?!\])/);return"/"+S.map((b,w)=>{if(w%2){if(b.startsWith("x+"))return be(String.fromCharCode(parseInt(b.slice(2),16)));if(b.startsWith("u+"))return be(String.fromCharCode(...b.slice(2).split("-").map(P=>parseInt(P,16))));const p=ct.exec(b);if(!p)throw new Error(`Invalid param: ${b}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,D,x,k,N]=p;return o.push({name:k,matcher:N,optional:!!D,rest:!!x,chained:x?w===1&&S[0]==="":!1}),x?"(.*?)":D?"([^/]*)?":"([^/]+?)"}return be(b)}).join("")}).join("")}/?$`),params:o}}function ft(t){return!/^\([^)]+\)$/.test(t)}function ut(t){return t.slice(1).split("/").filter(ft)}function dt(t,o,u){const i={},d=t.slice(1);let f=0;for(let S=0;S<o.length;S+=1){const l=o[S],b=d[S-f];if(l.chained&&l.rest&&f){i[l.name]=d.slice(S-f,S+1).filter(w=>w).join("/"),f=0;continue}if(b===void 0){l.rest&&(i[l.name]="");continue}if(!l.matcher||u[l.matcher](b)){i[l.name]=b;const w=o[S+1],p=d[S+1];w&&!w.rest&&w.optional&&p&&l.chained&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return i}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function pt({nodes:t,server_loads:o,dictionary:u,matchers:i}){const d=new Set(o);return Object.entries(u).map(([l,[b,w,p]])=>{const{pattern:D,params:x}=lt(l),k={id:l,exec:N=>{const P=D.exec(N);if(P)return dt(P,x,i)},errors:[1,...p||[]].map(N=>t[N]),layouts:[0,...w||[]].map(S),leaf:f(b)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const b=l<0;return b&&(l=~l),[b,t[l]]}function S(l){return l===void 0?l:[d.has(l),t[l]]}}class ee{constructor(o,u){this.status=o,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${o}`}}toString(){return JSON.stringify(this.body)}}class Me{constructor(o,u){this.status=o,this.location=u}}async function ht(t){var o;for(const u in t)if(typeof((o=t[u])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,d])=>[i,await d])));return t}const gt=-1,mt=-2,yt=-3,wt=-4,_t=-5,bt=-6;function vt(t,o){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,i=Array(u.length);function d(f,S=!1){if(f===gt)return;if(f===yt)return NaN;if(f===wt)return 1/0;if(f===_t)return-1/0;if(f===bt)return-0;if(S)throw new Error("Invalid input");if(f in i)return i[f];const l=u[f];if(!l||typeof l!="object")i[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const b=l[0],w=o==null?void 0:o[b];if(w)return i[f]=w(d(l[1]));switch(b){case"Date":i[f]=new Date(l[1]);break;case"Set":const p=new Set;i[f]=p;for(let k=1;k<l.length;k+=1)p.add(d(l[k]));break;case"Map":const D=new Map;i[f]=D;for(let k=1;k<l.length;k+=2)D.set(d(l[k]),d(l[k+1]));break;case"RegExp":i[f]=new RegExp(l[1],l[2]);break;case"Object":i[f]=Object(l[1]);break;case"BigInt":i[f]=BigInt(l[1]);break;case"null":const x=Object.create(null);i[f]=x;for(let k=1;k<l.length;k+=2)x[l[k]]=d(l[k+1]);break;default:throw new Error(`Unknown type ${b}`)}}else{const b=new Array(l.length);i[f]=b;for(let w=0;w<l.length;w+=1){const p=l[w];p!==mt&&(b[w]=d(p))}}else{const b={};i[f]=b;for(const w in l){const p=l[w];b[w]=d(p)}}return i[f]}return d(0)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const Et=new Set([...ze]);[...Et];function St(t){return t.filter(o=>o!=null)}const kt="x-sveltekit-invalidated",K=Ke(He)??{},Z=Ke(Je)??{};function ve(t){K[t]=Q()}function Rt(t,o){var $e;const u=pt(t),i=t.nodes[0],d=t.nodes[1];i(),d();const f=document.documentElement,S=[],l=[];let b=null;const w={before_navigate:[],after_navigate:[]};let p={branch:[],error:null,url:null},D=!1,x=!1,k=!0,N=!1,P=!1,z=!1,B=!1,q,j=($e=history.state)==null?void 0:$e[V];j||(j=Date.now(),history.replaceState({...history.state,[V]:j},"",location.href));const ue=K[j];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let F,ne,ae;async function ke(){ae=ae||Promise.resolve(),await ae,ae=null;const e=new URL(location.href),n=W(e,!0);b=null;const r=ne={},a=n&&await he(n);if(r===ne&&a){if(a.type==="redirect")return re(new URL(a.location,e).href,{},[e.pathname],r);a.props.page!==void 0&&(F=a.props.page),q.$set(a.props)}}function Re(e){l.some(n=>n==null?void 0:n.snapshot)&&(Z[e]=l.map(n=>{var r;return(r=n==null?void 0:n.snapshot)==null?void 0:r.capture()}))}function Ae(e){var n;(n=Z[e])==null||n.forEach((r,a)=>{var s,c;(c=(s=l[a])==null?void 0:s.snapshot)==null||c.restore(r)})}function Ie(){ve(j),Fe(He,K),Re(j),Fe(Je,Z)}async function re(e,{noScroll:n=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:c=!1},g,m){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:n?Q():null,keepfocus:a,redirect_chain:g,details:{state:s,replaceState:r},nav_token:m,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return b={id:e.id,promise:he(e).then(n=>(n.type==="loaded"&&n.state.error&&(b=null),n))},b.promise}async function oe(...e){const r=u.filter(a=>e.some(s=>a.exec(s))).map(a=>Promise.all([...a.layouts,a.leaf].map(s=>s==null?void 0:s[1]())));await Promise.all(r)}function Oe(e){var a;p=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),F=e.props.page,q=new t.root({target:o,props:{...e.props,stores:M,components:l},hydrate:!0}),Ae(j);const r={from:null,to:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};w.after_navigate.forEach(s=>s(r)),x=!0}async function Y({url:e,params:n,branch:r,status:a,error:s,route:c,form:g}){let m="never";for(const _ of r)(_==null?void 0:_.slash)!==void 0&&(m=_.slash);e.pathname=Xe(e.pathname,m),e.search=e.search;const v={type:"loaded",state:{url:e,params:n,branch:r,error:s,route:c},props:{constructors:St(r).map(_=>_.node.component)}};g!==void 0&&(v.props.form=g);let y={},R=!F,A=0;for(let _=0;_<Math.max(r.length,p.branch.length);_+=1){const h=r[_],U=p.branch[_];(h==null?void 0:h.data)!==(U==null?void 0:U.data)&&(R=!0),h&&(y={...y,...h.data},R&&(v.props[`data_${A}`]=y),A+=1)}return(!p.url||e.href!==p.url.href||p.error!==s||g!==void 0&&g!==F.form||R)&&(v.props.page={error:s,params:n,route:{id:(c==null?void 0:c.id)??null},status:a,url:new URL(e),form:g??null,data:R?y:F.data}),v}async function de({loader:e,parent:n,url:r,params:a,route:s,server_data_node:c}){var y,R,A;let g=null;const m={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1},v=await e();if((y=v.universal)!=null&&y.load){let O=function(...h){for(const U of h){const{href:$}=new URL(U,r);m.dependencies.add($)}};const _={route:{get id(){return m.route=!0,s.id}},params:new Proxy(a,{get:(h,U)=>(m.params.add(U),h[U])}),data:(c==null?void 0:c.data)??null,url:tt(r,()=>{m.url=!0}),async fetch(h,U){let $;h instanceof Request?($=h.url,U={body:h.method==="GET"||h.method==="HEAD"?void 0:await h.blob(),cache:h.cache,credentials:h.credentials,headers:h.headers,integrity:h.integrity,keepalive:h.keepalive,method:h.method,mode:h.mode,redirect:h.redirect,referrer:h.referrer,referrerPolicy:h.referrerPolicy,signal:h.signal,...U}):$=h;const C=new URL($,r);return O(C.href),C.origin===r.origin&&($=C.href.slice(r.origin.length)),x?st($,C.href,U):it($,U)},setHeaders:()=>{},depends:O,parent(){return m.parent=!0,n()}};g=await v.universal.load.call(null,_)??null,g=g?await ht(g):null}return{node:v,loader:e,server:c,universal:(R=v.universal)!=null&&R.load?{type:"data",data:g,uses:m}:null,data:g??(c==null?void 0:c.data)??null,slash:((A=v.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Pe(e,n,r,a,s){if(B)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&r)return!0;for(const c of a.params)if(s[c]!==p.params[c])return!0;for(const c of a.dependencies)if(S.some(g=>g(new URL(c))))return!0;return!1}function pe(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}async function he({id:e,invalidating:n,url:r,params:a,route:s}){if((b==null?void 0:b.id)===e)return b.promise;const{errors:c,layouts:g,leaf:m}=s,v=[...g,m];c.forEach(E=>E==null?void 0:E().catch(()=>{})),v.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let y=null;const R=p.url?e!==p.url.pathname+p.url.search:!1,A=p.route?s.id!==p.route.id:!1;let O=!1;const _=v.map((E,L)=>{var H;const I=p.branch[L],T=!!(E!=null&&E[0])&&((I==null?void 0:I.loader)!==E[1]||Pe(O,A,R,(H=I.server)==null?void 0:H.uses,a));return T&&(O=!0),T});if(_.some(Boolean)){try{y=await Be(r,_)}catch(E){return ie({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(y.type==="redirect")return y}const h=y==null?void 0:y.nodes;let U=!1;const $=v.map(async(E,L)=>{var ge;if(!E)return;const I=p.branch[L],T=h==null?void 0:h[L];if((!T||T.type==="skip")&&E[1]===(I==null?void 0:I.loader)&&!Pe(U,A,R,(ge=I.universal)==null?void 0:ge.uses,a))return I;if(U=!0,(T==null?void 0:T.type)==="error")throw T;return de({loader:E[1],url:r,params:a,route:s,parent:async()=>{var Te;const je={};for(let me=0;me<L;me+=1)Object.assign(je,(Te=await $[me])==null?void 0:Te.data);return je},server_data_node:pe(T===void 0&&E[0]?{type:"skip"}:T??null,E[0]?I==null?void 0:I.server:void 0)})});for(const E of $)E.catch(()=>{});const C=[];for(let E=0;E<v.length;E+=1)if(v[E])try{C.push(await $[E])}catch(L){if(L instanceof Me)return{type:"redirect",location:L.location};let I=500,T;if(h!=null&&h.includes(L))I=L.status??I,T=L.error;else if(L instanceof ee)I=L.status,T=L.body;else{if(await M.updated.check())return await G(r);T=await X(L,{params:a,url:r,route:{id:s.id}})}const H=await Ue(E,C,c);return H?await Y({url:r,params:a,branch:C.slice(0,H.idx).concat(H.node),status:I,error:T,route:s}):await Ne(r,{id:s.id},T,I)}else C.push(void 0);return await Y({url:r,params:a,branch:C,status:200,error:null,route:s,form:n?void 0:null})}async function Ue(e,n,r){for(;e--;)if(r[e]){let a=e;for(;!n[a];)a-=1;try{return{idx:a+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ie({status:e,error:n,url:r,route:a}){const s={};let c=null;if(t.server_loads[0]===0)try{const y=await Be(r,[!0]);if(y.type!=="data"||y.nodes[0]&&y.nodes[0].type!=="data")throw 0;c=y.nodes[0]??null}catch{(r.origin!==location.origin||r.pathname!==location.pathname||D)&&await G(r)}const m=await de({loader:i,url:r,params:s,route:a,parent:()=>Promise.resolve({}),server_data_node:pe(c)}),v={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:r,params:s,branch:[m,v],status:e,error:n,route:null})}function W(e,n){if(_e(e,J))return;const r=se(e);for(const a of u){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:n,route:a,params:Qe(s),url:e}}}function se(e){return Ze(e.pathname.slice(J.length)||"/")}function xe({url:e,type:n,intent:r,delta:a}){var m,v;let s=!1;const c={from:{params:p.params,route:{id:((m=p.route)==null?void 0:m.id)??null},url:p.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((v=r==null?void 0:r.route)==null?void 0:v.id)??null},url:e},willUnload:!r,type:n};a!==void 0&&(c.delta=a);const g={...c,cancel:()=>{s=!0}};return P||w.before_navigate.forEach(y=>y(g)),s?null:c}async function ce({url:e,scroll:n,keepfocus:r,redirect_chain:a,details:s,type:c,delta:g,nav_token:m={},accepted:v,blocked:y}){var $,C,E;const R=W(e,!1),A=xe({url:e,type:c,delta:g,intent:R});if(!A){y();return}const O=j;v(),P=!0,x&&M.navigating.set(A),ne=m;let _=R&&await he(R);if(!_){if(_e(e,J))return await G(e);_=await Ne(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(R==null?void 0:R.url)||e,ne!==m)return!1;if(_.type==="redirect")if(a.length>10||a.includes(e.pathname))_=await ie({status:500,error:await X(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},[...a,e.pathname],m),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await M.updated.check()&&await G(e);if(S.length=0,B=!1,N=!0,ve(O),Re(O),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(E=_.props.page)==null?void 0:E.url.pathname),s){const L=s.replaceState?0:1;if(s.state[V]=j+=L,history[s.replaceState?"replaceState":"pushState"](s.state,"",e),!s.replaceState){let I=j+1;for(;Z[I]||K[I];)delete Z[I],delete K[I],I+=1}}b=null,x?(p=_.state,_.props.page&&(_.props.page.url=e),q.$set(_.props)):Oe(_);const{activeElement:h}=document;if(await ye(),k){const L=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));n?scrollTo(n.x,n.y):L?L.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==h&&document.activeElement!==document.body;!r&&!U&&Ee(),k=!0,_.props.page&&(F=_.props.page),P=!1,c==="popstate"&&Ae(j),w.after_navigate.forEach(L=>L(A)),M.navigating.set(null),N=!1}async function Ne(e,n,r,a){return e.origin===location.origin&&e.pathname===location.pathname&&!D?await ie({status:a,error:r,url:e,route:n}):await G(e)}function G(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const g=c.target;clearTimeout(e),e=setTimeout(()=>{a(g,2)},20)});function n(c){a(c.composedPath()[0],1)}f.addEventListener("mousedown",n),f.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(c=>{for(const g of c)g.isIntersecting&&(oe(se(new URL(g.target.href))),r.unobserve(g.target))},{threshold:0});function a(c,g){const m=Ve(c,f);if(!m)return;const{url:v,external:y,download:R}=we(m,J);if(y||R)return;const A=le(m);if(!A.reload)if(g<=A.preload_data){const O=W(v,!1);O&&Le(O)}else g<=A.preload_code&&oe(se(v))}function s(){r.disconnect();for(const c of f.querySelectorAll("a")){const{url:g,external:m,download:v}=we(c,J);if(m||v)continue;const y=le(c);y.reload||(y.preload_code===qe.viewport&&r.observe(c),y.preload_code===qe.eager&&oe(se(g)))}}w.after_navigate.push(s),s()}function X(e,n){return e instanceof ee?e.body:t.hooks.handleError({error:e,event:n})??{message:n.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{De(()=>(w.after_navigate.push(e),()=>{const n=w.after_navigate.indexOf(e);w.after_navigate.splice(n,1)}))},before_navigate:e=>{De(()=>(w.before_navigate.push(e),()=>{const n=w.before_navigate.indexOf(e);w.before_navigate.splice(n,1)}))},disable_scroll_handling:()=>{(N||!x)&&(k=!1)},goto:(e,n={})=>re(e,n,[]),invalidate:e=>{if(typeof e=="function")S.push(e);else{const{href:n}=new URL(e,location.href);S.push(r=>r.href===n)}return ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const n=new URL(e,Ce(document)),r=W(n,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${n}`);await Le(r)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const n=new URL(location.href),{branch:r,route:a}=p;if(!a)return;const s=await Ue(p.branch.length,r,a.errors);if(s){const c=await Y({url:n,params:p.params,branch:r.slice(0,s.idx).concat(s.node),status:e.status??500,error:e.error,route:a});p=c.state,q.$set(c.props),ye().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(q.$set({form:null,page:{...F,form:e.data,status:e.status}}),await ye(),q.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{var a;let r=!1;if(Ie(),!P){const s={from:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:p.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};w.before_navigate.forEach(c=>c(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(e=navigator.connection)!=null&&e.saveData||Ye(),f.addEventListener("click",n=>{var A;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Ve(n.composedPath()[0],f);if(!r)return;const{url:a,external:s,target:c,download:g}=we(r,J);if(!a)return;if(c==="_parent"||c==="_top"){if(window.parent!==window)return}else if(c&&c!=="_self")return;const m=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||g)return;if(s||m.reload){xe({url:a,type:"link"})?P=!0:n.preventDefault();return}const[y,R]=a.href.split("#");if(R!==void 0&&y===location.href.split("#")[0]){if(p.url.hash===a.hash){n.preventDefault(),(A=r.ownerDocument.getElementById(R))==null||A.scrollIntoView();return}if(z=!0,ve(j),p.url=a,M.page.set({...F,url:a}),M.page.notify(),!m.replace_state)return;z=!1,n.preventDefault()}ce({url:a,scroll:m.noscroll?Q():null,keepfocus:m.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:m.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const c=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(_e(c,J))return;const g=n.target,{keep_focus:m,noscroll:v,reload:y,replace_state:R}=le(g);if(y)return;n.preventDefault(),n.stopPropagation();const A=new FormData(g),O=a==null?void 0:a.getAttribute("name");O&&A.append(O,(a==null?void 0:a.getAttribute("value"))??""),c.search=new URLSearchParams(A).toString(),ce({url:c,scroll:v?Q():null,keepfocus:m??!1,redirect_chain:[],details:{state:{},replaceState:R??c.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[V]){if(n.state[V]===j)return;const a=K[n.state[V]];if(p.url.href.split("#")[0]===location.href.split("#")[0]){K[j]=Q(),j=n.state[V],scrollTo(a.x,a.y);return}const s=n.state[V]-j;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=n.state[V]},blocked:()=>{history.go(-s)},type:"popstate",delta:s})}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[V]:++j},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&M.navigating.set(null)})},_hydrate:async({status:e=200,error:n,node_ids:r,params:a,route:s,data:c,form:g})=>{D=!0;const m=new URL(location.href);({params:a={},route:s={id:null}}=W(m,!1)||{});let v;try{const y=r.map(async(O,_)=>{const h=c[_];return h!=null&&h.uses&&(h.uses=Ge(h.uses)),de({loader:t.nodes[O],url:m,params:a,route:s,parent:async()=>{const U={};for(let $=0;$<_;$+=1)Object.assign(U,(await y[$]).data);return U},server_data_node:pe(h)})}),R=await Promise.all(y),A=u.find(({id:O})=>O===s.id);if(A){const O=A.layouts;for(let _=0;_<O.length;_++)O[_]||R.splice(_,0,void 0)}v=await Y({url:m,params:a,branch:R,status:e,error:n,form:g,route:A??null})}catch(y){if(y instanceof Me){await G(new URL(y.location,location.href));return}v=await ie({status:y instanceof ee?y.status:500,error:await X(y,{url:m,params:a,route:s}),url:m,route:s})}Oe(v)}}}async function Be(t,o){const u=new URL(t);u.pathname=rt(t.pathname),u.searchParams.append(kt,o.map(d=>d?"1":"0").join(""));const i=await fe(u.href);if(!i.ok)throw new ee(i.status,await i.json());return new Promise(async d=>{var p;const f=new Map,S=i.body.getReader(),l=new TextDecoder;function b(D){return vt(D,{Promise:x=>new Promise((k,N)=>{f.set(x,{fulfil:k,reject:N})})})}let w="";for(;;){const{done:D,value:x}=await S.read();if(D&&!w)break;for(w+=!x&&w?`
2
+ `:l.decode(x);;){const k=w.indexOf(`
3
+ `);if(k===-1)break;const N=JSON.parse(w.slice(0,k));if(w=w.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(p=N.nodes)==null||p.forEach(P=>{(P==null?void 0:P.type)==="data"&&(P.uses=Ge(P.uses),P.data=b(P.data))}),d(N);else if(N.type==="chunk"){const{id:P,data:z,error:B}=N,q=f.get(P);f.delete(P),B?q.reject(b(B)):q.fulfil(b(z))}}}})}function Ge(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Ee(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const o=document.body,u=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),u!==null?o.setAttribute("tabindex",u):o.removeAttribute("tabindex");const i=getSelection();if(i&&i.type!=="None"){const d=[];for(let f=0;f<i.rangeCount;f+=1)d.push(i.getRangeAt(f));setTimeout(()=>{if(i.rangeCount===d.length){for(let f=0;f<i.rangeCount;f+=1){const S=d[f],l=i.getRangeAt(f);if(S.commonAncestorContainer!==l.commonAncestorContainer||S.startContainer!==l.startContainer||S.endContainer!==l.endContainer||S.startOffset!==l.startOffset||S.endOffset!==l.endOffset)return}i.removeAllRanges()}})}}}async function Lt(t,o,u){const i=Rt(t,o);We({client:i}),u?await i._hydrate(u):i.goto(location.href,{replaceState:!0}),i._start_router()}export{Lt as start};
lilac/web/_app/immutable/nodes/0.63438c74.js ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{S as te,i as le,s as se,C as ze,o as Ve,j as $t,D as de,E as W,k as j,l as z,m as y,h as _,F as ce,G as O,b as k,H as q,I as me,J as _e,K as he,L as ge,g as p,d as b,M as ke,N as ie,O as ne,P as vt,Q as be,R as J,e as ae,v as Z,f as x,a as M,c as B,w as ut,T as ft,y as V,z as A,A as N,U as ct,B as L,V as dt,W as wt,X as kt,q as H,r as P,u as ee,Y as St,Z as $e,_ as ve,n as T,$ as Ae,a0 as C,a1 as we,a2 as mt,a3 as Ne,a4 as Ce,a5 as Et,a6 as Be,a7 as It,a8 as _t,a9 as Ct,aa as yt}from"../chunks/index.b333a928.js";import{M as Dt,C as Tt,a as Vt}from"../chunks/ChevronUp.efe9cbe8.js";import{w as At}from"../chunks/index.2b0dd2f8.js";import{S as Nt,T as Lt,a as jt,Q as zt,s as Ft,q as Mt,b as ht,o as Bt,c as Gt,d as Ot,h as qt,g as Ut,e as Kt,f as Ht,i as Pt,t as Rt,C as Jt,j as Wt,k as Yt,l as Xt,m as Ge}from"../chunks/Commands.543935b9.js";import{g as Qt,s as Zt,c as xt,a as el,b as tl}from"../chunks/utils.2fa1092a.js";import{p as ll}from"../chunks/stores.2a862464.js";import{g as Te}from"../chunks/navigation.52bd9048.js";import{s as Le,g as sl,a as nl,b as rl,c as il}from"../chunks/notificationsStore.46809e81.js";import{S as al}from"../chunks/Settings.e24cc1d1.js";import{c as ol,s as ul}from"../chunks/settingsStore.6e7d5078.js";import{T as gt}from"../chunks/ToastNotification.b080933f.js";const fl=!1,cl=!0,Ys=Object.freeze(Object.defineProperty({__proto__:null,prerender:cl,ssr:fl},Symbol.toStringTag,{value:"Module"}));function pt(){localStorage.clear()}function dl(r,e,l){let{key:t="local-storage-key"}=e,{value:n=""}=e;function s(){localStorage.removeItem(t)}const i=ze();let a=n;function o(){typeof n=="object"?localStorage.setItem(t,JSON.stringify(n)):localStorage.setItem(t,n)}return Ve(()=>{const u=localStorage.getItem(t);if(u!=null)try{l(0,n=JSON.parse(u))}catch{l(0,n=u)}else o(),i("save")}),$t(()=>{a!==n&&(o(),i("update",{prevValue:a,value:n})),a=n}),r.$$set=u=>{"key"in u&&l(1,t=u.key),"value"in u&&l(0,n=u.value)},[n,t,s,pt]}class ml extends te{constructor(e){super(),le(this,e,dl,null,se,{key:1,value:0,clearItem:2,clearAll:3})}get clearItem(){return this.$$.ctx[2]}get clearAll(){return pt}}const _l=ml;function hl(r){let e,l,t,n;const s=r[8].default,i=de(s,r,r[7],null);let a=[{role:"table"},r[4]],o={};for(let u=0;u<a.length;u+=1)o=W(o,a[u]);return{c(){e=j("div"),i&&i.c(),this.h()},l(u){e=z(u,"DIV",{role:!0});var f=y(e);i&&i.l(f),f.forEach(_),this.h()},h(){ce(e,o),O(e,"bx--structured-list",!0),O(e,"bx--structured-list--selection",r[2]),O(e,"bx--structured-list--condensed",r[0]),O(e,"bx--structured-list--flush",r[1])},m(u,f){k(u,e,f),i&&i.m(e,null),l=!0,t||(n=[q(e,"click",r[9]),q(e,"mouseover",r[10]),q(e,"mouseenter",r[11]),q(e,"mouseleave",r[12])],t=!0)},p(u,[f]){i&&i.p&&(!l||f&128)&&me(i,s,u,u[7],l?he(s,u[7],f,null):_e(u[7]),null),ce(e,o=ge(a,[{role:"table"},f&16&&u[4]])),O(e,"bx--structured-list",!0),O(e,"bx--structured-list--selection",u[2]),O(e,"bx--structured-list--condensed",u[0]),O(e,"bx--structured-list--flush",u[1])},i(u){l||(p(i,u),l=!0)},o(u){b(i,u),l=!1},d(u){u&&_(e),i&&i.d(u),t=!1,ke(n)}}}function gl(r,e,l){const t=["selected","condensed","flush","selection"];let n=ie(e,t),s,{$$slots:i={},$$scope:a}=e,{selected:o=void 0}=e,{condensed:u=!1}=e,{flush:f=!1}=e,{selection:c=!1}=e;const m=ze(),d=At(o);ne(r,d,h=>l(6,s=h)),vt("StructuredListWrapper",{selectedValue:d,update:h=>{d.set(h)}});function w(h){J.call(this,r,h)}function F(h){J.call(this,r,h)}function I(h){J.call(this,r,h)}function R(h){J.call(this,r,h)}return r.$$set=h=>{e=W(W({},e),be(h)),l(4,n=ie(e,t)),"selected"in h&&l(5,o=h.selected),"condensed"in h&&l(0,u=h.condensed),"flush"in h&&l(1,f=h.flush),"selection"in h&&l(2,c=h.selection),"$$scope"in h&&l(7,a=h.$$scope)},r.$$.update=()=>{r.$$.dirty&64&&l(5,o=s),r.$$.dirty&64&&m("change",s)},[u,f,c,d,n,o,s,a,i,w,F,I,R]}class pl extends te{constructor(e){super(),le(this,e,gl,hl,se,{selected:5,condensed:0,flush:1,selection:2})}}const bl=pl;function $l(r){let e,l,t,n;const s=r[2].default,i=de(s,r,r[1],null);let a=[{role:"rowgroup"},r[0]],o={};for(let u=0;u<a.length;u+=1)o=W(o,a[u]);return{c(){e=j("div"),i&&i.c(),this.h()},l(u){e=z(u,"DIV",{role:!0});var f=y(e);i&&i.l(f),f.forEach(_),this.h()},h(){ce(e,o),O(e,"bx--structured-list-tbody",!0)},m(u,f){k(u,e,f),i&&i.m(e,null),l=!0,t||(n=[q(e,"click",r[3]),q(e,"mouseover",r[4]),q(e,"mouseenter",r[5]),q(e,"mouseleave",r[6])],t=!0)},p(u,[f]){i&&i.p&&(!l||f&2)&&me(i,s,u,u[1],l?he(s,u[1],f,null):_e(u[1]),null),ce(e,o=ge(a,[{role:"rowgroup"},f&1&&u[0]])),O(e,"bx--structured-list-tbody",!0)},i(u){l||(p(i,u),l=!0)},o(u){b(i,u),l=!1},d(u){u&&_(e),i&&i.d(u),t=!1,ke(n)}}}function vl(r,e,l){const t=[];let n=ie(e,t),{$$slots:s={},$$scope:i}=e;function a(c){J.call(this,r,c)}function o(c){J.call(this,r,c)}function u(c){J.call(this,r,c)}function f(c){J.call(this,r,c)}return r.$$set=c=>{e=W(W({},e),be(c)),l(0,n=ie(e,t)),"$$scope"in c&&l(1,i=c.$$scope)},[n,i,s,a,o,u,f]}class wl extends te{constructor(e){super(),le(this,e,vl,$l,se,{})}}const kl=wl;function Sl(r){let e,l,t,n,s;const i=r[4].default,a=de(i,r,r[3],null);let o=[{role:l=r[0]?"columnheader":"cell"},r[2]],u={};for(let f=0;f<o.length;f+=1)u=W(u,o[f]);return{c(){e=j("div"),a&&a.c(),this.h()},l(f){e=z(f,"DIV",{role:!0});var c=y(e);a&&a.l(c),c.forEach(_),this.h()},h(){ce(e,u),O(e,"bx--structured-list-th",r[0]),O(e,"bx--structured-list-td",!r[0]),O(e,"bx--structured-list-content--nowrap",r[1])},m(f,c){k(f,e,c),a&&a.m(e,null),t=!0,n||(s=[q(e,"click",r[5]),q(e,"mouseover",r[6]),q(e,"mouseenter",r[7]),q(e,"mouseleave",r[8])],n=!0)},p(f,[c]){a&&a.p&&(!t||c&8)&&me(a,i,f,f[3],t?he(i,f[3],c,null):_e(f[3]),null),ce(e,u=ge(o,[(!t||c&1&&l!==(l=f[0]?"columnheader":"cell"))&&{role:l},c&4&&f[2]])),O(e,"bx--structured-list-th",f[0]),O(e,"bx--structured-list-td",!f[0]),O(e,"bx--structured-list-content--nowrap",f[1])},i(f){t||(p(a,f),t=!0)},o(f){b(a,f),t=!1},d(f){f&&_(e),a&&a.d(f),n=!1,ke(s)}}}function El(r,e,l){const t=["head","noWrap"];let n=ie(e,t),{$$slots:s={},$$scope:i}=e,{head:a=!1}=e,{noWrap:o=!1}=e;function u(d){J.call(this,r,d)}function f(d){J.call(this,r,d)}function c(d){J.call(this,r,d)}function m(d){J.call(this,r,d)}return r.$$set=d=>{e=W(W({},e),be(d)),l(2,n=ie(e,t)),"head"in d&&l(0,a=d.head),"noWrap"in d&&l(1,o=d.noWrap),"$$scope"in d&&l(3,i=d.$$scope)},[a,o,n,i,s,u,f,c,m]}class Il extends te{constructor(e){super(),le(this,e,El,Sl,se,{head:0,noWrap:1})}}const oe=Il;function Cl(r){let e,l,t,n;const s=r[5].default,i=de(s,r,r[4],null);let a=[{role:"row"},r[3]],o={};for(let u=0;u<a.length;u+=1)o=W(o,a[u]);return{c(){e=j("div"),i&&i.c(),this.h()},l(u){e=z(u,"DIV",{role:!0});var f=y(e);i&&i.l(f),f.forEach(_),this.h()},h(){ce(e,o),O(e,"bx--structured-list-row",!0),O(e,"bx--structured-list-row--header-row",r[0])},m(u,f){k(u,e,f),i&&i.m(e,null),l=!0,t||(n=[q(e,"click",r[11]),q(e,"mouseover",r[12]),q(e,"mouseenter",r[13]),q(e,"mouseleave",r[14])],t=!0)},p(u,f){i&&i.p&&(!l||f&16)&&me(i,s,u,u[4],l?he(s,u[4],f,null):_e(u[4]),null),ce(e,o=ge(a,[{role:"row"},f&8&&u[3]])),O(e,"bx--structured-list-row",!0),O(e,"bx--structured-list-row--header-row",u[0])},i(u){l||(p(i,u),l=!0)},o(u){b(i,u),l=!1},d(u){u&&_(e),i&&i.d(u),t=!1,ke(n)}}}function yl(r){let e,l,t,n;const s=r[5].default,i=de(s,r,r[4],null);let a=[{tabindex:r[2]},r[3]],o={};for(let u=0;u<a.length;u+=1)o=W(o,a[u]);return{c(){e=j("label"),i&&i.c(),this.h()},l(u){e=z(u,"LABEL",{tabindex:!0});var f=y(e);i&&i.l(f),f.forEach(_),this.h()},h(){ce(e,o),O(e,"bx--structured-list-row",!0),O(e,"bx--structured-list-row--header-row",r[0])},m(u,f){k(u,e,f),i&&i.m(e,null),l=!0,t||(n=[q(e,"click",r[6]),q(e,"mouseover",r[7]),q(e,"mouseenter",r[8]),q(e,"mouseleave",r[9]),q(e,"keydown",r[10])],t=!0)},p(u,f){i&&i.p&&(!l||f&16)&&me(i,s,u,u[4],l?he(s,u[4],f,null):_e(u[4]),null),ce(e,o=ge(a,[(!l||f&4)&&{tabindex:u[2]},f&8&&u[3]])),O(e,"bx--structured-list-row",!0),O(e,"bx--structured-list-row--header-row",u[0])},i(u){l||(p(i,u),l=!0)},o(u){b(i,u),l=!1},d(u){u&&_(e),i&&i.d(u),t=!1,ke(n)}}}function Dl(r){let e,l,t,n;const s=[yl,Cl],i=[];function a(o,u){return o[1]?0:1}return e=a(r),l=i[e]=s[e](r),{c(){l.c(),t=ae()},l(o){l.l(o),t=ae()},m(o,u){i[e].m(o,u),k(o,t,u),n=!0},p(o,[u]){let f=e;e=a(o),e===f?i[e].p(o,u):(Z(),b(i[f],1,1,()=>{i[f]=null}),x(),l=i[e],l?l.p(o,u):(l=i[e]=s[e](o),l.c()),p(l,1),l.m(t.parentNode,t))},i(o){n||(p(l),n=!0)},o(o){b(l),n=!1},d(o){i[e].d(o),o&&_(t)}}}function Tl(r,e,l){const t=["head","label","tabindex"];let n=ie(e,t),{$$slots:s={},$$scope:i}=e,{head:a=!1}=e,{label:o=!1}=e,{tabindex:u="0"}=e;function f($){J.call(this,r,$)}function c($){J.call(this,r,$)}function m($){J.call(this,r,$)}function d($){J.call(this,r,$)}function w($){J.call(this,r,$)}function F($){J.call(this,r,$)}function I($){J.call(this,r,$)}function R($){J.call(this,r,$)}function h($){J.call(this,r,$)}return r.$$set=$=>{e=W(W({},e),be($)),l(3,n=ie(e,t)),"head"in $&&l(0,a=$.head),"label"in $&&l(1,o=$.label),"tabindex"in $&&l(2,u=$.tabindex),"$$scope"in $&&l(4,i=$.$$scope)},[a,o,u,n,i,s,f,c,m,d,w,F,I,R,h]}class Vl extends te{constructor(e){super(),le(this,e,Tl,Dl,se,{head:0,label:1,tabindex:2})}}const Se=Vl,Al=r=>({theme:r&1}),Oe=r=>({theme:r[0]});function qe(r,e,l){const t=r.slice();return t[0]=e[l],t}function Ue(r){let e,l,t;function n(i){r[9](i)}let s={key:r[2]};return r[0]!==void 0&&(s.value=r[0]),e=new _l({props:s}),ut.push(()=>ft(e,"value",n)),{c(){V(e.$$.fragment)},l(i){A(e.$$.fragment,i)},m(i,a){N(e,i,a),t=!0},p(i,a){const o={};a&4&&(o.key=i[2]),!l&&a&1&&(l=!0,o.value=i[0],ct(()=>l=!1)),e.$set(o)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){b(e.$$.fragment,i),t=!1},d(i){L(e,i)}}}function Nl(r){let e,l,t;const n=[r[5]];function s(a){r[11](a)}let i={$$slots:{default:[jl]},$$scope:{ctx:r}};for(let a=0;a<n.length;a+=1)i=W(i,n[a]);return r[0]!==void 0&&(i.selected=r[0]),e=new Nt({props:i}),ut.push(()=>ft(e,"selected",s)),{c(){V(e.$$.fragment)},l(a){A(e.$$.fragment,a)},m(a,o){N(e,a,o),t=!0},p(a,o){const u=o&32?ge(n,[dt(a[5])]):{};o&4128&&(u.$$scope={dirty:o,ctx:a}),!l&&o&1&&(l=!0,u.selected=a[0],ct(()=>l=!1)),e.$set(u)},i(a){t||(p(e.$$.fragment,a),t=!0)},o(a){b(e.$$.fragment,a),t=!1},d(a){L(e,a)}}}function Ll(r){let e,l;const t=[r[4],{toggled:r[0]===r[4].themes[1]}];let n={};for(let s=0;s<t.length;s+=1)n=W(n,t[s]);return e=new Lt({props:n}),e.$on("toggle",r[10]),{c(){V(e.$$.fragment)},l(s){A(e.$$.fragment,s)},m(s,i){N(e,s,i),l=!0},p(s,i){const a=i&17?ge(t,[i&16&&dt(s[4]),{toggled:s[0]===s[4].themes[1]}]):{};e.$set(a)},i(s){l||(p(e.$$.fragment,s),l=!0)},o(s){b(e.$$.fragment,s),l=!1},d(s){L(e,s)}}}function Ke(r,e){let l,t,n;return t=new jt({props:{value:e[0],text:e[6][e[0]]}}),{key:r,first:null,c(){l=ae(),V(t.$$.fragment),this.h()},l(s){l=ae(),A(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,i){k(s,l,i),N(t,s,i),n=!0},p(s,i){e=s;const a={};i&32&&(a.value=e[0]),i&32&&(a.text=e[6][e[0]]),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){b(t.$$.fragment,s),n=!1},d(s){s&&_(l),L(t,s)}}}function jl(r){let e=[],l=new Map,t,n,s=r[5].themes;const i=a=>a[0];for(let a=0;a<s.length;a+=1){let o=qe(r,s,a),u=i(o);l.set(u,e[a]=Ke(u,o))}return{c(){for(let a=0;a<e.length;a+=1)e[a].c();t=ae()},l(a){for(let o=0;o<e.length;o+=1)e[o].l(a);t=ae()},m(a,o){for(let u=0;u<e.length;u+=1)e[u]&&e[u].m(a,o);k(a,t,o),n=!0},p(a,o){o&96&&(s=a[5].themes,Z(),e=wt(e,o,i,1,a,s,l,t.parentNode,kt,Ke,t,qe),x())},i(a){if(!n){for(let o=0;o<s.length;o+=1)p(e[o]);n=!0}},o(a){for(let o=0;o<e.length;o+=1)b(e[o]);n=!1},d(a){for(let o=0;o<e.length;o+=1)e[o].d(a);a&&_(t)}}}function zl(r){let e,l,t,n,s,i=r[1]&&Ue(r);const a=[Ll,Nl],o=[];function u(m,d){return m[3]==="toggle"?0:m[3]==="select"?1:-1}~(l=u(r))&&(t=o[l]=a[l](r));const f=r[8].default,c=de(f,r,r[12],Oe);return{c(){i&&i.c(),e=M(),t&&t.c(),n=M(),c&&c.c()},l(m){i&&i.l(m),e=B(m),t&&t.l(m),n=B(m),c&&c.l(m)},m(m,d){i&&i.m(m,d),k(m,e,d),~l&&o[l].m(m,d),k(m,n,d),c&&c.m(m,d),s=!0},p(m,[d]){m[1]?i?(i.p(m,d),d&2&&p(i,1)):(i=Ue(m),i.c(),p(i,1),i.m(e.parentNode,e)):i&&(Z(),b(i,1,1,()=>{i=null}),x());let w=l;l=u(m),l===w?~l&&o[l].p(m,d):(t&&(Z(),b(o[w],1,1,()=>{o[w]=null}),x()),~l?(t=o[l],t?t.p(m,d):(t=o[l]=a[l](m),t.c()),p(t,1),t.m(n.parentNode,n)):t=null),c&&c.p&&(!s||d&4097)&&me(c,f,m,m[12],s?he(f,m[12],d,Al):_e(m[12]),Oe)},i(m){s||(p(i),p(t),p(c,m),s=!0)},o(m){b(i),b(t),b(c,m),s=!1},d(m){i&&i.d(m),m&&_(e),~l&&o[l].d(m),m&&_(n),c&&c.d(m)}}}function Fl(r,e,l){let{$$slots:t={},$$scope:n}=e,{theme:s="white"}=e,{tokens:i={}}=e,{persist:a=!1}=e,{persistKey:o="theme"}=e,{render:u=void 0}=e,{toggle:f={themes:["white","g100"],labelA:"",labelB:"",labelText:"Dark mode",hideLabel:!1}}=e;const c={white:"White",g10:"Gray 10",g80:"Gray 80",g90:"Gray 90",g100:"Gray 100"},m=Object.keys(c);let{select:d={themes:m,labelText:"Themes",hideLabel:!1}}=e;const w=ze();function F(h){s=h,l(0,s)}const I=({detail:h})=>{l(0,s=h.toggled?f.themes[1]:f.themes[0])};function R(h){s=h,l(0,s)}return r.$$set=h=>{"theme"in h&&l(0,s=h.theme),"tokens"in h&&l(7,i=h.tokens),"persist"in h&&l(1,a=h.persist),"persistKey"in h&&l(2,o=h.persistKey),"render"in h&&l(3,u=h.render),"toggle"in h&&l(4,f=h.toggle),"select"in h&&l(5,d=h.select),"$$scope"in h&&l(12,n=h.$$scope)},r.$$.update=()=>{r.$$.dirty&129&&typeof window<"u"&&(Object.entries(i).forEach(([h,$])=>{document.documentElement.style.setProperty(`--cds-${h}`,$)}),s in c?(document.documentElement.setAttribute("theme",s),w("update",{theme:s})):console.warn(`[Theme.svelte] invalid theme "${s}". Value must be one of: ${JSON.stringify(Object.keys(c))}`))},[s,a,o,u,f,d,c,i,t,F,I,R,n]}class Ml extends te{constructor(e){super(),le(this,e,Fl,zl,se,{theme:0,tokens:7,persist:1,persistKey:2,render:3,toggle:4,select:5})}}const Bl=Ml;function Gl(r){let e;return{c(){e=H("message")},l(l){e=P(l,"message")},m(l,t){k(l,e,t)},d(l){l&&_(e)}}}function Ol(r){let e=r[0].message+"",l;return{c(){l=H(e)},l(t){l=P(t,e)},m(t,n){k(t,l,n)},p(t,n){n&1&&e!==(e=t[0].message+"")&&ee(l,e)},d(t){t&&_(l)}}}function ql(r){let e,l,t,n;return e=new oe({props:{$$slots:{default:[Gl]},$$scope:{ctx:r}}}),t=new oe({props:{$$slots:{default:[Ol]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment)},l(s){A(e.$$.fragment,s),l=B(s),A(t.$$.fragment,s)},m(s,i){N(e,s,i),k(s,l,i),N(t,s,i),n=!0},p(s,i){const a={};i&2&&(a.$$scope={dirty:i,ctx:s}),e.$set(a);const o={};i&3&&(o.$$scope={dirty:i,ctx:s}),t.$set(o)},i(s){n||(p(e.$$.fragment,s),p(t.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),n=!1},d(s){L(e,s),s&&_(l),L(t,s)}}}function Ul(r){let e;return{c(){e=H("url")},l(l){e=P(l,"url")},m(l,t){k(l,e,t)},d(l){l&&_(e)}}}function Kl(r){let e=r[0].request.method+"",l,t,n=r[0].request.url+"",s;return{c(){l=H(e),t=M(),s=H(n)},l(i){l=P(i,e),t=B(i),s=P(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,s,a)},p(i,a){a&1&&e!==(e=i[0].request.method+"")&&ee(l,e),a&1&&n!==(n=i[0].request.url+"")&&ee(s,n)},d(i){i&&_(l),i&&_(t),i&&_(s)}}}function Hl(r){let e,l,t,n;return e=new oe({props:{$$slots:{default:[Ul]},$$scope:{ctx:r}}}),t=new oe({props:{$$slots:{default:[Kl]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment)},l(s){A(e.$$.fragment,s),l=B(s),A(t.$$.fragment,s)},m(s,i){N(e,s,i),k(s,l,i),N(t,s,i),n=!0},p(s,i){const a={};i&2&&(a.$$scope={dirty:i,ctx:s}),e.$set(a);const o={};i&3&&(o.$$scope={dirty:i,ctx:s}),t.$set(o)},i(s){n||(p(e.$$.fragment,s),p(t.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),n=!1},d(s){L(e,s),s&&_(l),L(t,s)}}}function Pl(r){let e;return{c(){e=H("status")},l(l){e=P(l,"status")},m(l,t){k(l,e,t)},d(l){l&&_(e)}}}function Rl(r){let e=r[0].status+"",l,t,n=r[0].statusText+"",s;return{c(){l=H(e),t=M(),s=H(n)},l(i){l=P(i,e),t=B(i),s=P(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,s,a)},p(i,a){a&1&&e!==(e=i[0].status+"")&&ee(l,e),a&1&&n!==(n=i[0].statusText+"")&&ee(s,n)},d(i){i&&_(l),i&&_(t),i&&_(s)}}}function Jl(r){let e,l,t,n;return e=new oe({props:{$$slots:{default:[Pl]},$$scope:{ctx:r}}}),t=new oe({props:{$$slots:{default:[Rl]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment)},l(s){A(e.$$.fragment,s),l=B(s),A(t.$$.fragment,s)},m(s,i){N(e,s,i),k(s,l,i),N(t,s,i),n=!0},p(s,i){const a={};i&2&&(a.$$scope={dirty:i,ctx:s}),e.$set(a);const o={};i&3&&(o.$$scope={dirty:i,ctx:s}),t.$set(o)},i(s){n||(p(e.$$.fragment,s),p(t.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),n=!1},d(s){L(e,s),s&&_(l),L(t,s)}}}function Wl(r){let e;return{c(){e=H("path")},l(l){e=P(l,"path")},m(l,t){k(l,e,t)},d(l){l&&_(e)}}}function Yl(r){let e=JSON.stringify(r[0].request.path,null,2)+"",l;return{c(){l=H(e)},l(t){l=P(t,e)},m(t,n){k(t,l,n)},p(t,n){n&1&&e!==(e=JSON.stringify(t[0].request.path,null,2)+"")&&ee(l,e)},d(t){t&&_(l)}}}function Xl(r){let e,l,t,n;return e=new oe({props:{$$slots:{default:[Wl]},$$scope:{ctx:r}}}),t=new oe({props:{class:"whitespace-pre",$$slots:{default:[Yl]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment)},l(s){A(e.$$.fragment,s),l=B(s),A(t.$$.fragment,s)},m(s,i){N(e,s,i),k(s,l,i),N(t,s,i),n=!0},p(s,i){const a={};i&2&&(a.$$scope={dirty:i,ctx:s}),e.$set(a);const o={};i&3&&(o.$$scope={dirty:i,ctx:s}),t.$set(o)},i(s){n||(p(e.$$.fragment,s),p(t.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),n=!1},d(s){L(e,s),s&&_(l),L(t,s)}}}function Ql(r){let e;return{c(){e=H("body")},l(l){e=P(l,"body")},m(l,t){k(l,e,t)},d(l){l&&_(e)}}}function Zl(r){let e=JSON.stringify(r[0].request.body,null,2)+"",l;return{c(){l=H(e)},l(t){l=P(t,e)},m(t,n){k(t,l,n)},p(t,n){n&1&&e!==(e=JSON.stringify(t[0].request.body,null,2)+"")&&ee(l,e)},d(t){t&&_(l)}}}function xl(r){let e,l,t,n;return e=new oe({props:{$$slots:{default:[Ql]},$$scope:{ctx:r}}}),t=new oe({props:{class:"whitespace-pre",$$slots:{default:[Zl]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment)},l(s){A(e.$$.fragment,s),l=B(s),A(t.$$.fragment,s)},m(s,i){N(e,s,i),k(s,l,i),N(t,s,i),n=!0},p(s,i){const a={};i&2&&(a.$$scope={dirty:i,ctx:s}),e.$set(a);const o={};i&3&&(o.$$scope={dirty:i,ctx:s}),t.$set(o)},i(s){n||(p(e.$$.fragment,s),p(t.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),n=!1},d(s){L(e,s),s&&_(l),L(t,s)}}}function es(r){let e;return{c(){e=H("details")},l(l){e=P(l,"details")},m(l,t){k(l,e,t)},d(l){l&&_(e)}}}function ts(r){let e=r[0].body.detail+"",l;return{c(){l=H(e)},l(t){l=P(t,e)},m(t,n){k(t,l,n)},p(t,n){n&1&&e!==(e=t[0].body.detail+"")&&ee(l,e)},d(t){t&&_(l)}}}function ls(r){let e,l,t,n;return e=new oe({props:{$$slots:{default:[es]},$$scope:{ctx:r}}}),t=new oe({props:{class:"whitespace-break-spaces",$$slots:{default:[ts]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment)},l(s){A(e.$$.fragment,s),l=B(s),A(t.$$.fragment,s)},m(s,i){N(e,s,i),k(s,l,i),N(t,s,i),n=!0},p(s,i){const a={};i&2&&(a.$$scope={dirty:i,ctx:s}),e.$set(a);const o={};i&3&&(o.$$scope={dirty:i,ctx:s}),t.$set(o)},i(s){n||(p(e.$$.fragment,s),p(t.$$.fragment,s),n=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),n=!1},d(s){L(e,s),s&&_(l),L(t,s)}}}function ss(r){let e,l,t,n,s,i,a,o,u,f,c,m;return e=new Se({props:{$$slots:{default:[ql]},$$scope:{ctx:r}}}),t=new Se({props:{$$slots:{default:[Hl]},$$scope:{ctx:r}}}),s=new Se({props:{$$slots:{default:[Jl]},$$scope:{ctx:r}}}),a=new Se({props:{$$slots:{default:[Xl]},$$scope:{ctx:r}}}),u=new Se({props:{$$slots:{default:[xl]},$$scope:{ctx:r}}}),c=new Se({props:{$$slots:{default:[ls]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment),l=M(),V(t.$$.fragment),n=M(),V(s.$$.fragment),i=M(),V(a.$$.fragment),o=M(),V(u.$$.fragment),f=M(),V(c.$$.fragment)},l(d){A(e.$$.fragment,d),l=B(d),A(t.$$.fragment,d),n=B(d),A(s.$$.fragment,d),i=B(d),A(a.$$.fragment,d),o=B(d),A(u.$$.fragment,d),f=B(d),A(c.$$.fragment,d)},m(d,w){N(e,d,w),k(d,l,w),N(t,d,w),k(d,n,w),N(s,d,w),k(d,i,w),N(a,d,w),k(d,o,w),N(u,d,w),k(d,f,w),N(c,d,w),m=!0},p(d,w){const F={};w&3&&(F.$$scope={dirty:w,ctx:d}),e.$set(F);const I={};w&3&&(I.$$scope={dirty:w,ctx:d}),t.$set(I);const R={};w&3&&(R.$$scope={dirty:w,ctx:d}),s.$set(R);const h={};w&3&&(h.$$scope={dirty:w,ctx:d}),a.$set(h);const $={};w&3&&($.$$scope={dirty:w,ctx:d}),u.$set($);const G={};w&3&&(G.$$scope={dirty:w,ctx:d}),c.$set(G)},i(d){m||(p(e.$$.fragment,d),p(t.$$.fragment,d),p(s.$$.fragment,d),p(a.$$.fragment,d),p(u.$$.fragment,d),p(c.$$.fragment,d),m=!0)},o(d){b(e.$$.fragment,d),b(t.$$.fragment,d),b(s.$$.fragment,d),b(a.$$.fragment,d),b(u.$$.fragment,d),b(c.$$.fragment,d),m=!1},d(d){L(e,d),d&&_(l),L(t,d),d&&_(n),L(s,d),d&&_(i),L(a,d),d&&_(o),L(u,d),d&&_(f),L(c,d)}}}function ns(r){let e,l;return e=new kl({props:{$$slots:{default:[ss]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},p(t,n){const s={};n&3&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function rs(r){let e,l;return e=new bl({props:{$$slots:{default:[ns]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},p(t,n){const s={};n&3&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function is(r){let e,l;return e=new Dt({props:{passiveModal:!0,open:!!r[0],modalHeading:r[0].name,$$slots:{default:[rs]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},p(t,[n]){const s={};n&1&&(s.open=!!t[0]),n&1&&(s.modalHeading=t[0].name),n&3&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function as(r,e,l){let{error:t}=e;return r.$$set=n=>{"error"in n&&l(0,t=n.error)},[t]}class os extends te{constructor(e){super(),le(this,e,as,is,se,{error:0})}}function us(r){let e;const l=r[2].default,t=de(l,r,r[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,s){t&&t.m(n,s),e=!0},p(n,[s]){t&&t.p&&(!e||s&2)&&me(t,l,n,n[1],e?he(l,n[1],s,null):_e(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){b(t,n),e=!1},d(n){t&&t.d(n)}}}function fs(r,e,l){let{$$slots:t={},$$scope:n}=e,{client:s=new zt}=e;return Ve(()=>{s.mount()}),Ft(s),St(()=>{s.unmount()}),r.$$set=i=>{"client"in i&&l(0,s=i.client),"$$scope"in i&&l(1,n=i.$$scope)},[s,n,t]}class cs extends te{constructor(e){super(),le(this,e,fs,us,se,{client:0})}}function ds(r,e,l){let t,n,s;const i=Mt();ne(r,i,o=>l(3,n=o));const a=ht();return ne(r,a,o=>l(4,s=o)),r.$$.update=()=>{var o,u;r.$$.dirty&16&&l(2,t=((o=s.data)==null?void 0:o.access.dataset.compute_signals)||((u=s.data)==null?void 0:u.access.create_dataset)),r.$$.dirty&12&&n.isSuccess&&t&&Bt(n.data)},[i,a,t,n,s]}class ms extends te{constructor(e){super(),le(this,e,ds,null,se,{})}}const _s=""+new URL("../assets/logo_50x50.e6d62a62.png",import.meta.url).href;function He(r){let e,l;return{c(){e=$e("title"),l=H(r[1])},l(t){e=ve(t,"title",{});var n=y(e);l=P(n,r[1]),n.forEach(_)},m(t,n){k(t,e,n),C(e,l)},p(t,n){n&2&&ee(l,t[1])},d(t){t&&_(e)}}}function hs(r){let e,l,t,n=r[1]&&He(r),s=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],i={};for(let a=0;a<s.length;a+=1)i=W(i,s[a]);return{c(){e=$e("svg"),n&&n.c(),l=$e("path"),t=$e("path"),this.h()},l(a){e=ve(a,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=y(e);n&&n.l(o),l=ve(o,"path",{d:!0}),y(l).forEach(_),t=ve(o,"path",{d:!0}),y(t).forEach(_),o.forEach(_),this.h()},h(){T(l,"d","M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14 S23.7,2,16,2z"),T(t,"d","M24 15L17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17z"),Ae(e,i)},m(a,o){k(a,e,o),n&&n.m(e,null),C(e,l),C(e,t)},p(a,[o]){a[1]?n?n.p(a,o):(n=He(a),n.c(),n.m(e,l)):n&&(n.d(1),n=null),Ae(e,i=ge(s,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:a[0]},o&1&&{height:a[0]},o&4&&a[2],o&8&&a[3]]))},i:we,o:we,d(a){a&&_(e),n&&n.d()}}}function gs(r,e,l){let t,n;const s=["size","title"];let i=ie(e,s),{size:a=16}=e,{title:o=void 0}=e;return r.$$set=u=>{l(5,e=W(W({},e),be(u))),l(3,i=ie(e,s)),"size"in u&&l(0,a=u.size),"title"in u&&l(1,o=u.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||o),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=be(e),[a,o,n,i,t]}class bt extends te{constructor(e){super(),le(this,e,gs,hs,se,{size:0,title:1})}}function Pe(r){let e,l;return{c(){e=$e("title"),l=H(r[1])},l(t){e=ve(t,"title",{});var n=y(e);l=P(n,r[1]),n.forEach(_)},m(t,n){k(t,e,n),C(e,l)},p(t,n){n&2&&ee(l,t[1])},d(t){t&&_(e)}}}function ps(r){let e,l,t=r[1]&&Pe(r),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:r[0]},{height:r[0]},r[2],r[3]],s={};for(let i=0;i<n.length;i+=1)s=W(s,n[i]);return{c(){e=$e("svg"),t&&t.c(),l=$e("path"),this.h()},l(i){e=ve(i,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var a=y(e);t&&t.l(a),l=ve(a,"path",{d:!0}),y(l).forEach(_),a.forEach(_),this.h()},h(){T(l,"d","M28,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h24c1.1,0,2-0.9,2-2V6C30,4.9,29.1,4,28,4z M10,26H4V6h6V26z M28,15H17.8 l3.6-3.6L20,10l-6,6l6,6l1.4-1.4L17.8,17H28v9H12V6h16V15z"),Ae(e,s)},m(i,a){k(i,e,a),t&&t.m(e,null),C(e,l)},p(i,[a]){i[1]?t?t.p(i,a):(t=Pe(i),t.c(),t.m(e,l)):t&&(t.d(1),t=null),Ae(e,s=ge(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},a&1&&{width:i[0]},a&1&&{height:i[0]},a&4&&i[2],a&8&&i[3]]))},i:we,o:we,d(i){i&&_(e),t&&t.d()}}}function bs(r,e,l){let t,n;const s=["size","title"];let i=ie(e,s),{size:a=16}=e,{title:o=void 0}=e;return r.$$set=u=>{l(5,e=W(W({},e),be(u))),l(3,i=ie(e,s)),"size"in u&&l(0,a=u.size),"title"in u&&l(1,o=u.title)},r.$$.update=()=>{l(4,t=e["aria-label"]||e["aria-labelledby"]||o),l(2,n={"aria-hidden":t?void 0:!0,role:t?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=be(e),[a,o,n,i,t]}class $s extends te{constructor(e){super(),le(this,e,bs,ps,se,{size:0,title:1})}}const vs=r=>({}),Re=r=>({});function Je(r,e,l){const t=r.slice();return t[8]=e[l].tag,t[9]=e[l].groups,t}function We(r,e,l){const t=r.slice();return t[12]=e[l].group,t[13]=e[l].items,t}function Ye(r,e,l){const t=r.slice();return t[16]=e[l],t}function ws(r){let e,l;return e=new Tt({}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function ks(r){let e,l;return e=new Vt({}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Xe(r){let e,l,t,n,s;const i=[Es,Ss],a=[];function o(u,f){return u[2]?0:1}return l=o(r),t=a[l]=i[l](r),{c(){e=j("div"),t.c()},l(u){e=z(u,"DIV",{});var f=y(e);t.l(f),f.forEach(_)},m(u,f){k(u,e,f),a[l].m(e,null),s=!0},p(u,f){let c=l;l=o(u),l===c?a[l].p(u,f):(Z(),b(a[c],1,1,()=>{a[c]=null}),x(),t=a[l],t?t.p(u,f):(t=a[l]=i[l](u),t.c()),p(t,1),t.m(e,null))},i(u){s||(p(t),mt(()=>{s&&(n||(n=Ne(e,Le,{},!0)),n.run(1))}),s=!0)},o(u){b(t),n||(n=Ne(e,Le,{},!1)),n.run(0),s=!1},d(u){u&&_(e),a[l].d(),u&&n&&n.end()}}}function Ss(r){let e,l,t=r[3],n=[];for(let i=0;i<t.length;i+=1)n[i]=et(Je(r,t,i));const s=i=>b(n[i],1,1,()=>{n[i]=null});return{c(){e=j("div");for(let i=0;i<n.length;i+=1)n[i].c();this.h()},l(i){e=z(i,"DIV",{class:!0});var a=y(e);for(let o=0;o<n.length;o+=1)n[o].l(a);a.forEach(_),this.h()},h(){T(e,"class","mt-1")},m(i,a){k(i,e,a);for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(e,null);l=!0},p(i,a){if(a&8){t=i[3];let o;for(o=0;o<t.length;o+=1){const u=Je(i,t,o);n[o]?(n[o].p(u,a),p(n[o],1)):(n[o]=et(u),n[o].c(),p(n[o],1),n[o].m(e,null))}for(Z(),o=t.length;o<n.length;o+=1)s(o);x()}},i(i){if(!l){for(let a=0;a<t.length;a+=1)p(n[a]);l=!0}},o(i){n=n.filter(Boolean);for(let a=0;a<n.length;a+=1)b(n[a]);l=!1},d(i){i&&_(e),Ce(n,i)}}}function Es(r){let e,l;return e=new Gt({}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},p:we,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Qe(r){let e,l,t,n;return t=new Ot({props:{type:"purple",size:"sm",$$slots:{default:[Is]},$$scope:{ctx:r}}}),{c(){e=j("div"),l=j("div"),V(t.$$.fragment),this.h()},l(s){e=z(s,"DIV",{class:!0});var i=y(e);l=z(i,"DIV",{class:!0});var a=y(l);A(t.$$.fragment,a),a.forEach(_),i.forEach(_),this.h()},h(){T(l,"class","py-1 text-xs"),T(e,"class","flex flex-row justify-between pl-3 text-sm opacity-80")},m(s,i){k(s,e,i),C(e,l),N(t,l,null),n=!0},p(s,i){const a={};i&136&&(a.$$scope={dirty:i,ctx:s}),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){b(t.$$.fragment,s),n=!1},d(s){s&&_(e),L(t)}}}function Is(r){let e=r[8]+"",l;return{c(){l=H(e)},l(t){l=P(t,e)},m(t,n){k(t,l,n)},p(t,n){n&8&&e!==(e=t[8]+"")&&ee(l,e)},d(t){t&&_(l)}}}function Ze(r){let e,l,t=r[16].name+"",n,s,i,a,o,u;function f(){return r[6](r[16])}return{c(){e=j("div"),l=j("a"),n=H(t),i=M(),this.h()},l(c){e=z(c,"DIV",{class:!0});var m=y(e);l=z(m,"A",{href:!0,class:!0});var d=y(l);n=P(d,t),d.forEach(_),i=B(m),m.forEach(_),this.h()},h(){T(l,"href",s=r[16].link),T(l,"class","w-full truncate py-1 pl-9 text-xs text-black"),O(l,"text-black",r[16].isSelected),O(l,"font-semibold",r[16].isSelected),T(e,"class",a=`flex w-full ${r[16].isSelected?"":"hover:bg-gray-100"}`),O(e,"bg-neutral-100",r[16].isSelected)},m(c,m){k(c,e,m),C(e,l),C(l,n),C(e,i),o||(u=q(l,"click",f),o=!0)},p(c,m){r=c,m&8&&t!==(t=r[16].name+"")&&ee(n,t),m&8&&s!==(s=r[16].link)&&T(l,"href",s),m&8&&O(l,"text-black",r[16].isSelected),m&8&&O(l,"font-semibold",r[16].isSelected),m&8&&a!==(a=`flex w-full ${r[16].isSelected?"":"hover:bg-gray-100"}`)&&T(e,"class",a),m&8&&O(e,"bg-neutral-100",r[16].isSelected)},d(c){c&&_(e),o=!1,u()}}}function xe(r){let e,l,t=r[12]+"",n,s,i,a=r[13],o=[];for(let u=0;u<a.length;u+=1)o[u]=Ze(Ye(r,a,u));return{c(){e=j("div"),l=j("div"),n=H(t),s=M();for(let u=0;u<o.length;u+=1)o[u].c();i=ae(),this.h()},l(u){e=z(u,"DIV",{class:!0});var f=y(e);l=z(f,"DIV",{class:!0});var c=y(l);n=P(c,t),c.forEach(_),f.forEach(_),s=B(u);for(let m=0;m<o.length;m+=1)o[m].l(u);i=ae(),this.h()},h(){T(l,"class","py-1 text-xs"),T(e,"class","flex flex-row justify-between pl-7 text-sm opacity-80")},m(u,f){k(u,e,f),C(e,l),C(l,n),k(u,s,f);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(u,f);k(u,i,f)},p(u,f){if(f&8&&t!==(t=u[12]+"")&&ee(n,t),f&8){a=u[13];let c;for(c=0;c<a.length;c+=1){const m=Ye(u,a,c);o[c]?o[c].p(m,f):(o[c]=Ze(m),o[c].c(),o[c].m(i.parentNode,i))}for(;c<o.length;c+=1)o[c].d(1);o.length=a.length}},d(u){u&&_(e),u&&_(s),Ce(o,u),u&&_(i)}}}function et(r){let e,l,t,n=r[8]!=""&&Qe(r),s=r[9],i=[];for(let a=0;a<s.length;a+=1)i[a]=xe(We(r,s,a));return{c(){n&&n.c(),e=M();for(let a=0;a<i.length;a+=1)i[a].c();l=ae()},l(a){n&&n.l(a),e=B(a);for(let o=0;o<i.length;o+=1)i[o].l(a);l=ae()},m(a,o){n&&n.m(a,o),k(a,e,o);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(a,o);k(a,l,o),t=!0},p(a,o){if(a[8]!=""?n?(n.p(a,o),o&8&&p(n,1)):(n=Qe(a),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(Z(),b(n,1,1,()=>{n=null}),x()),o&8){s=a[9];let u;for(u=0;u<s.length;u+=1){const f=We(a,s,u);i[u]?i[u].p(f,o):(i[u]=xe(f),i[u].c(),i[u].m(l.parentNode,l))}for(;u<i.length;u+=1)i[u].d(1);i.length=s.length}},i(a){t||(p(n),t=!0)},o(a){b(n),t=!1},d(a){n&&n.d(a),a&&_(e),Ce(i,a),a&&_(l)}}}function Cs(r){let e,l,t,n,s,i,a,o,u,f,c,m,d,w;const F=[ks,ws],I=[];function R(E,g){return E[0]?0:1}a=R(r),o=I[a]=F[a](r);let h=r[0]&&Xe(r);const $=r[4].add,G=de($,r,r[7],Re);return{c(){e=j("div"),l=j("button"),t=j("div"),n=j("div"),s=H(r[1]),i=M(),o.c(),u=M(),h&&h.c(),f=M(),c=j("div"),G&&G.c(),this.h()},l(E){e=z(E,"DIV",{class:!0});var g=y(e);l=z(g,"BUTTON",{class:!0});var v=y(l);t=z(v,"DIV",{class:!0});var S=y(t);n=z(S,"DIV",{class:!0});var K=y(n);s=P(K,r[1]),K.forEach(_),i=B(S),o.l(S),S.forEach(_),v.forEach(_),u=B(g),h&&h.l(g),f=B(g),c=z(g,"DIV",{class:!0});var X=y(c);G&&G.l(X),X.forEach(_),g.forEach(_),this.h()},h(){T(n,"class","text-sm font-medium"),T(t,"class","flex items-center justify-between"),T(l,"class","w-full py-2 pl-4 pr-2 text-left hover:bg-gray-200"),T(c,"class","flex w-full flex-row items-center whitespace-pre py-1 pl-2 text-xs text-black"),T(e,"class","my-1 w-full px-1")},m(E,g){k(E,e,g),C(e,l),C(l,t),C(t,n),C(n,s),C(t,i),I[a].m(t,null),C(e,u),h&&h.m(e,null),C(e,f),C(e,c),G&&G.m(c,null),m=!0,d||(w=q(l,"click",r[5]),d=!0)},p(E,[g]){(!m||g&2)&&ee(s,E[1]);let v=a;a=R(E),a!==v&&(Z(),b(I[v],1,1,()=>{I[v]=null}),x(),o=I[a],o||(o=I[a]=F[a](E),o.c()),p(o,1),o.m(t,null)),E[0]?h?(h.p(E,g),g&1&&p(h,1)):(h=Xe(E),h.c(),p(h,1),h.m(e,f)):h&&(Z(),b(h,1,1,()=>{h=null}),x()),G&&G.p&&(!m||g&128)&&me(G,$,E,E[7],m?he($,E[7],g,vs):_e(E[7]),Re)},i(E){m||(p(o),p(h),p(G,E),m=!0)},o(E){b(o),b(h),b(G,E),m=!1},d(E){E&&_(e),I[a].d(),h&&h.d(),G&&G.d(E),d=!1,w()}}}function ys(r,e,l){let{$$slots:t={},$$scope:n}=e,{title:s}=e,{isFetching:i}=e,{tagGroups:a}=e,{expanded:o=!0}=e;const u=()=>l(0,o=!o),f=c=>Te(c.link);return r.$$set=c=>{"title"in c&&l(1,s=c.title),"isFetching"in c&&l(2,i=c.isFetching),"tagGroups"in c&&l(3,a=c.tagGroups),"expanded"in c&&l(0,o=c.expanded),"$$scope"in c&&l(7,n=c.$$scope)},[o,s,i,a,t,u,f,n]}class je extends te{constructor(e){super(),le(this,e,ys,Cs,se,{title:1,isFetching:2,tagGroups:3,expanded:0})}}function tt(r){let e,l,t,n,s,i;return l=new bt({props:{class:"mr-1"}}),{c(){e=j("button"),V(l.$$.fragment),t=H("Add dataset"),this.h()},l(a){e=z(a,"BUTTON",{class:!0});var o=y(e);A(l.$$.fragment,o),t=P(o,"Add dataset"),o.forEach(_),this.h()},h(){T(e,"class","mr-1 flex w-full flex-row px-1 py-1 text-black hover:bg-gray-200")},m(a,o){k(a,e,o),N(l,e,null),C(e,t),n=!0,s||(i=q(e,"click",r[23]),s=!0)},p:we,i(a){n||(p(l.$$.fragment,a),n=!0)},o(a){b(l.$$.fragment,a),n=!1},d(a){a&&_(e),L(l),s=!1,i()}}}function Ds(r){let e,l,t=r[7]&&tt(r);return{c(){e=j("div"),t&&t.c(),this.h()},l(n){e=z(n,"DIV",{slot:!0,class:!0});var s=y(e);t&&t.l(s),s.forEach(_),this.h()},h(){T(e,"slot","add"),T(e,"class","w-full")},m(n,s){k(n,e,s),t&&t.m(e,null),l=!0},p(n,s){n[7]?t?(t.p(n,s),s&128&&p(t,1)):(t=tt(n),t.c(),p(t,1),t.m(e,null)):t&&(Z(),b(t,1,1,()=>{t=null}),x())},i(n){l||(p(t),l=!0)},o(n){b(t),l=!1},d(n){n&&_(e),t&&t.d()}}}function Ts(r){let e,l,t,n,s,i,a;return t=new bt({props:{class:"mr-1"}}),{c(){e=j("div"),l=j("button"),V(t.$$.fragment),n=H("Add concept"),this.h()},l(o){e=z(o,"DIV",{slot:!0,class:!0});var u=y(e);l=z(u,"BUTTON",{class:!0});var f=y(l);A(t.$$.fragment,f),n=P(f,"Add concept"),f.forEach(_),u.forEach(_),this.h()},h(){T(l,"class","mr-1 flex w-full flex-row px-1 py-1 text-black hover:bg-gray-200"),T(e,"slot","add"),T(e,"class","w-full")},m(o,u){k(o,e,u),C(e,l),N(t,l,null),C(l,n),s=!0,i||(a=q(l,"click",r[24]),i=!0)},p:we,i(o){s||(p(t.$$.fragment,o),s=!0)},o(o){b(t.$$.fragment,o),s=!1},d(o){o&&_(e),L(t),i=!1,a()}}}function Vs(r){let e,l,t,n,s,i,a,o,u,f,c,m,d,w,F,I,R,h,$,G,E,g,v,S,K,X,Y,Ee,ye;return f=new $s({}),m=new je({props:{title:"Datasets",tagGroups:r[6],isFetching:r[2].isFetching,$$slots:{add:[Ds]},$$scope:{ctx:r}}}),w=new je({props:{title:"Concepts",tagGroups:r[5],isFetching:r[1].isFetching,$$slots:{add:[Ts]},$$scope:{ctx:r}}}),I=new je({props:{title:"Signals",tagGroups:r[4],isFetching:r[0].isFetching}}),K=new al({}),{c(){e=j("div"),l=j("div"),t=j("div"),n=j("a"),s=j("img"),a=H(`
2
+ Lilac`),o=M(),u=j("button"),V(f.$$.fragment),c=M(),V(m.$$.fragment),d=M(),V(w.$$.fragment),F=M(),V(I.$$.fragment),R=M(),h=j("div"),$=j("button"),G=j("div"),E=j("div"),g=H("Settings"),v=M(),S=j("div"),V(K.$$.fragment),this.h()},l(D){e=z(D,"DIV",{class:!0});var U=y(e);l=z(U,"DIV",{class:!0});var ue=y(l);t=z(ue,"DIV",{class:!0});var re=y(t);n=z(re,"A",{class:!0,href:!0});var fe=y(n);s=z(fe,"IMG",{class:!0,src:!0,alt:!0}),a=P(fe,`
3
+ Lilac`),fe.forEach(_),o=B(re),u=z(re,"BUTTON",{class:!0});var Ie=y(u);A(f.$$.fragment,Ie),Ie.forEach(_),re.forEach(_),ue.forEach(_),c=B(U),A(m.$$.fragment,U),d=B(U),A(w.$$.fragment,U),F=B(U),A(I.$$.fragment,U),R=B(U),h=z(U,"DIV",{class:!0});var Q=y(h);$=z(Q,"BUTTON",{class:!0});var pe=y($);G=z(pe,"DIV",{class:!0});var De=y(G);E=z(De,"DIV",{class:!0});var Fe=y(E);g=P(Fe,"Settings"),Fe.forEach(_),v=B(De),S=z(De,"DIV",{});var Me=y(S);A(K.$$.fragment,Me),Me.forEach(_),De.forEach(_),pe.forEach(_),Q.forEach(_),U.forEach(_),this.h()},h(){T(s,"class","logo-img mr-2 rounded opacity-90 svelte-2fy31z"),Et(s.src,i=_s)||T(s,"src",i),T(s,"alt","Logo"),T(n,"class","flex flex-row items-center text-xl normal-case"),T(n,"href","/"),T(u,"class","mr-1 opacity-60 hover:bg-gray-200"),T(t,"class","header flex flex-row items-center justify-between px-1 pl-4"),T(l,"class","w-full border-b border-gray-200"),T(E,"class","text-sm font-medium"),T(G,"class","flex items-center justify-between"),T($,"class",X=Be(`w-full px-4 py-2 text-left ${r[3]?"":"hover:bg-gray-100"}`)+" svelte-2fy31z"),O($,"bg-neutral-200",r[3]),T(h,"class","w-full px-1"),T(e,"class","nav-container flex h-full w-56 flex-col items-center overflow-y-scroll pb-2")},m(D,U){k(D,e,U),C(e,l),C(l,t),C(t,n),C(n,s),C(n,a),C(t,o),C(t,u),N(f,u,null),C(e,c),N(m,e,null),C(e,d),N(w,e,null),C(e,F),N(I,e,null),C(e,R),C(e,h),C(h,$),C($,G),C(G,E),C(E,g),C(G,v),C(G,S),N(K,S,null),Y=!0,Ee||(ye=[It(qt.call(null,u,{text:"Close sidebar"})),q(u,"click",r[22]),q($,"click",r[25])],Ee=!0)},p(D,[U]){const ue={};U&64&&(ue.tagGroups=D[6]),U&4&&(ue.isFetching=D[2].isFetching),U&134217856&&(ue.$$scope={dirty:U,ctx:D}),m.$set(ue);const re={};U&32&&(re.tagGroups=D[5]),U&2&&(re.isFetching=D[1].isFetching),U&134217728&&(re.$$scope={dirty:U,ctx:D}),w.$set(re);const fe={};U&16&&(fe.tagGroups=D[4]),U&1&&(fe.isFetching=D[0].isFetching),I.$set(fe),(!Y||U&8&&X!==(X=Be(`w-full px-4 py-2 text-left ${D[3]?"":"hover:bg-gray-100"}`)+" svelte-2fy31z"))&&T($,"class",X),(!Y||U&8)&&O($,"bg-neutral-200",D[3])},i(D){Y||(p(f.$$.fragment,D),p(m.$$.fragment,D),p(w.$$.fragment,D),p(I.$$.fragment,D),p(K.$$.fragment,D),Y=!0)},o(D){b(f.$$.fragment,D),b(m.$$.fragment,D),b(w.$$.fragment,D),b(I.$$.fragment,D),b(K.$$.fragment,D),Y=!1},d(D){D&&_(e),L(f),L(m),L(w),L(I),L(K),Ee=!1,ke(ye)}}}function As(r,e,l){let t,n,s,i,a,o,u,f,c,m,d,w,F,I;const R=ht();ne(r,R,D=>l(21,F=D));const h=Qt();ne(r,h,D=>l(20,c=D));const $=Ut();ne(r,$,D=>l(8,I=D));const G=Kt();ne(r,G,D=>l(2,w=D));let E=null;const g=Ht();ne(r,g,D=>l(1,d=D));let v=null;const S=Pt();ne(r,S,D=>l(0,m=D));const K=["concept_labels","concept_score","near_dup"],X=()=>_t($,I.open=!1,I),Y=()=>Te("/datasets/new"),Ee=()=>Rt({command:Jt.CreateConcept,onCreate:D=>Te(xt(D.detail.namespace,D.detail.name))}),ye=()=>Te("/settings");return r.$$.update=()=>{var D,U,ue,re,fe,Ie;if(r.$$.dirty&2097152&&l(19,t=(U=(D=F.data)==null?void 0:D.user)==null?void 0:U.id),r.$$.dirty&2097152&&l(18,n=(re=(ue=F.data)==null?void 0:ue.user)==null?void 0:re.given_name),r.$$.dirty&2097152&&l(7,s=(fe=F.data)==null?void 0:fe.access.create_dataset),r.$$.dirty&1048576)if(c.page==="datasets"&&c.identifier!=null){const[Q,pe]=c.identifier.split("/");l(15,E={namespace:Q,datasetName:pe})}else l(15,E=null);if(r.$$.dirty&32772&&l(6,i=sl(E,w.data||[])),r.$$.dirty&1048576)if(c.page==="concepts"&&c.identifier!=null){const[Q,pe]=c.identifier.split("/");l(16,v={namespace:Q,name:pe})}else l(16,v=null);r.$$.dirty&851970&&l(5,a=nl(v,d.data||[],t,n)),r.$$.dirty&1&&l(17,o=(Ie=m.data)==null?void 0:Ie.filter(Q=>!K.includes(Q.name)).sort((Q,pe)=>Q.name.localeCompare(pe.name))),r.$$.dirty&1179648&&l(4,u=[{tag:"",groups:[{group:"lilac",items:(o||[]).map(Q=>({name:Q.name,link:Zt(Q.name),isSelected:c.page==="signals"&&c.identifier===Q.name}))}]}]),r.$$.dirty&1048576&&l(3,f=c.page==="settings")},[m,d,w,f,u,a,i,s,I,R,h,$,G,g,S,E,v,o,n,t,c,F,X,Y,Ee,ye]}class Ns extends te{constructor(e){super(),le(this,e,As,Vs,se,{})}}const{window:lt}=yt;function st(r,e,l){const t=r.slice();return t[20]=e[l],t}function nt(r,e,l){const t=r.slice();return t[23]=e[l],t}function Ls(r){let e,l;return{c(){e=j("script"),l=H(`// Import the functions you need from the SDKs you need
4
+ import {initializeApp} from 'https://www.gstatic.com/firebasejs/10.1.0/firebase-app.js';
5
+ import {getAnalytics} from 'https://www.gstatic.com/firebasejs/10.1.0/firebase-analytics.js';
6
+ // TODO: Add SDKs for Firebase products that you want to use
7
+ // https://firebase.google.com/docs/web/setup#available-libraries
8
+
9
+ // Your web app's Firebase configuration
10
+ // For Firebase JS SDK v7.20.0 and later, measurementId is optional
11
+ const firebaseConfig = {
12
+ apiKey: 'AIzaSyC_1E688jeyJ2wXdCIEPEulG3a4jrzKej8',
13
+ authDomain: 'lilac-386213.firebaseapp.com',
14
+ projectId: 'lilac-386213',
15
+ storageBucket: 'lilac-386213.appspot.com',
16
+ messagingSenderId: '279475920249',
17
+ appId: '1:279475920249:web:4680f6f21f8baf900c63a8',
18
+ measurementId: 'G-LX8JBKFTT3'
19
+ };
20
+
21
+ // Initialize Firebase
22
+ const app = initializeApp(firebaseConfig);
23
+ const analytics = getAnalytics(app);`),this.h()},l(t){e=z(t,"SCRIPT",{type:!0});var n=y(e);l=P(n,`// Import the functions you need from the SDKs you need
24
+ import {initializeApp} from 'https://www.gstatic.com/firebasejs/10.1.0/firebase-app.js';
25
+ import {getAnalytics} from 'https://www.gstatic.com/firebasejs/10.1.0/firebase-analytics.js';
26
+ // TODO: Add SDKs for Firebase products that you want to use
27
+ // https://firebase.google.com/docs/web/setup#available-libraries
28
+
29
+ // Your web app's Firebase configuration
30
+ // For Firebase JS SDK v7.20.0 and later, measurementId is optional
31
+ const firebaseConfig = {
32
+ apiKey: 'AIzaSyC_1E688jeyJ2wXdCIEPEulG3a4jrzKej8',
33
+ authDomain: 'lilac-386213.firebaseapp.com',
34
+ projectId: 'lilac-386213',
35
+ storageBucket: 'lilac-386213.appspot.com',
36
+ messagingSenderId: '279475920249',
37
+ appId: '1:279475920249:web:4680f6f21f8baf900c63a8',
38
+ measurementId: 'G-LX8JBKFTT3'
39
+ };
40
+
41
+ // Initialize Firebase
42
+ const app = initializeApp(firebaseConfig);
43
+ const analytics = getAnalytics(app);`),n.forEach(_),this.h()},h(){T(e,"type","module")},m(t,n){k(t,e,n),C(e,l)},d(t){t&&_(e)}}}function rt(r){let e,l,t,n;return l=new Ns({}),{c(){e=j("div"),V(l.$$.fragment),this.h()},l(s){e=z(s,"DIV",{class:!0});var i=y(e);A(l.$$.fragment,i),i.forEach(_),this.h()},h(){T(e,"class","flex-shrink-0")},m(s,i){k(s,e,i),N(l,e,null),n=!0},i(s){n||(p(l.$$.fragment,s),mt(()=>{n&&(t||(t=Ne(e,Le,{axis:"x"},!0)),t.run(1))}),n=!0)},o(s){b(l.$$.fragment,s),t||(t=Ne(e,Le,{axis:"x"},!1)),t.run(0),n=!1},d(s){s&&_(e),L(l),s&&t&&t.end()}}}function it(r){let e,l;function t(){return r[12](r[23])}return e=new gt({props:{lowContrast:!0,fullWidth:!0,title:r[23].title,subtitle:r[23].subtitle||"",caption:r[23].message,kind:r[23].kind,timeout:5e3}}),e.$on("close",t),{c(){V(e.$$.fragment)},l(n){A(e.$$.fragment,n)},m(n,s){N(e,n,s),l=!0},p(n,s){r=n;const i={};s&2&&(i.title=r[23].title),s&2&&(i.subtitle=r[23].subtitle||""),s&2&&(i.caption=r[23].message),s&2&&(i.kind=r[23].kind),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){b(e.$$.fragment,n),l=!1},d(n){L(e,n)}}}function js(r){let e,l,t,n,s;function i(){return r[13](r[20])}return{c(){e=j("div"),l=j("button"),t=H("Show error"),this.h()},l(a){e=z(a,"DIV",{slot:!0});var o=y(e);l=z(o,"BUTTON",{class:!0});var u=y(l);t=P(u,"Show error"),u.forEach(_),o.forEach(_),this.h()},h(){T(l,"class","underline"),T(e,"slot","caption")},m(a,o){k(a,e,o),C(e,l),C(l,t),n||(s=q(l,"click",i),n=!0)},p(a,o){r=a},d(a){a&&_(e),n=!1,s()}}}function at(r){let e,l;function t(){return r[14](r[20])}return e=new gt({props:{lowContrast:!0,title:r[20].name||"Error",subtitle:r[20].message,$$slots:{caption:[js]},$$scope:{ctx:r}}}),e.$on("close",t),{c(){V(e.$$.fragment)},l(n){A(e.$$.fragment,n)},m(n,s){N(e,n,s),l=!0},p(n,s){r=n;const i={};s&8&&(i.title=r[20].name||"Error"),s&8&&(i.subtitle=r[20].message),s&32777&&(i.$$scope={dirty:s,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){b(e.$$.fragment,n),l=!1},d(n){L(e,n)}}}function ot(r){let e,l;return e=new os({props:{error:r[0]}}),{c(){V(e.$$.fragment)},l(t){A(e.$$.fragment,t)},m(t,n){N(e,t,n),l=!0},p(t,n){const s={};n&1&&(s.error=t[0]),e.$set(s)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function zs(r){let e,l,t,n,s,i,a,o,u,f,c,m=r[2].open&&rt();const d=r[9].default,w=de(d,r,r[15],null);let F=r[1],I=[];for(let g=0;g<F.length;g+=1)I[g]=it(nt(r,F,g));const R=g=>b(I[g],1,1,()=>{I[g]=null});let h=r[3],$=[];for(let g=0;g<h.length;g+=1)$[g]=at(st(r,h,g));const G=g=>b($[g],1,1,()=>{$[g]=null});let E=r[0]&&ot(r);return f=new ms({}),{c(){e=j("main"),m&&m.c(),l=M(),t=j("div"),w&&w.c(),n=M(),s=j("div");for(let g=0;g<I.length;g+=1)I[g].c();i=M(),a=j("div");for(let g=0;g<$.length;g+=1)$[g].c();o=M(),E&&E.c(),u=M(),V(f.$$.fragment),this.h()},l(g){e=z(g,"MAIN",{class:!0});var v=y(e);m&&m.l(v),l=B(v),t=z(v,"DIV",{class:!0});var S=y(t);w&&w.l(S),S.forEach(_),v.forEach(_),n=B(g),s=z(g,"DIV",{class:!0});var K=y(s);for(let Y=0;Y<I.length;Y+=1)I[Y].l(K);K.forEach(_),i=B(g),a=z(g,"DIV",{class:!0});var X=y(a);for(let Y=0;Y<$.length;Y+=1)$[Y].l(X);o=B(X),E&&E.l(X),X.forEach(_),u=B(g),A(f.$$.fragment,g),this.h()},h(){T(t,"class","h-full w-full overflow-hidden"),T(e,"class","flex h-screen w-full flex-row"),T(s,"class","absolute right-2 top-0 z-10 w-96"),T(a,"class","absolute bottom-4 right-4")},m(g,v){k(g,e,v),m&&m.m(e,null),C(e,l),C(e,t),w&&w.m(t,null),k(g,n,v),k(g,s,v);for(let S=0;S<I.length;S+=1)I[S]&&I[S].m(s,null);k(g,i,v),k(g,a,v);for(let S=0;S<$.length;S+=1)$[S]&&$[S].m(a,null);C(a,o),E&&E.m(a,null),k(g,u,v),N(f,g,v),c=!0},p(g,v){if(g[2].open?m?v&4&&p(m,1):(m=rt(),m.c(),p(m,1),m.m(e,l)):m&&(Z(),b(m,1,1,()=>{m=null}),x()),w&&w.p&&(!c||v&32768)&&me(w,d,g,g[15],c?he(d,g[15],v,null):_e(g[15]),null),v&18){F=g[1];let S;for(S=0;S<F.length;S+=1){const K=nt(g,F,S);I[S]?(I[S].p(K,v),p(I[S],1)):(I[S]=it(K),I[S].c(),p(I[S],1),I[S].m(s,null))}for(Z(),S=F.length;S<I.length;S+=1)R(S);x()}if(v&9){h=g[3];let S;for(S=0;S<h.length;S+=1){const K=st(g,h,S);$[S]?($[S].p(K,v),p($[S],1)):($[S]=at(K),$[S].c(),p($[S],1),$[S].m(a,o))}for(Z(),S=h.length;S<$.length;S+=1)G(S);x()}g[0]?E?(E.p(g,v),v&1&&p(E,1)):(E=ot(g),E.c(),p(E,1),E.m(a,null)):E&&(Z(),b(E,1,1,()=>{E=null}),x())},i(g){if(!c){p(m),p(w,g);for(let v=0;v<F.length;v+=1)p(I[v]);for(let v=0;v<h.length;v+=1)p($[v]);p(E),p(f.$$.fragment,g),c=!0}},o(g){b(m),b(w,g),I=I.filter(Boolean);for(let v=0;v<I.length;v+=1)b(I[v]);$=$.filter(Boolean);for(let v=0;v<$.length;v+=1)b($[v]);b(E),b(f.$$.fragment,g),c=!1},d(g){g&&_(e),m&&m.d(),w&&w.d(g),g&&_(n),g&&_(s),Ce(I,g),g&&_(i),g&&_(a),Ce($,g),E&&E.d(),g&&_(u),L(f,g)}}}function Fs(r){let e,l,t,n,s,i,a,o,u=Ls();return t=new Bl({props:{theme:"white",tokens:{"border-strong":"transparent","label-01-letter-spacing":"var(--cds-productive-heading-01-letter-spacing)","helper-text-01-letter-spacing":"var(--cds-productive-heading-01-letter-spacing)","productive-heading-01-font-weight":600}}}),s=new cs({props:{client:Wt,$$slots:{default:[zs]},$$scope:{ctx:r}}}),{c(){u&&u.c(),e=ae(),l=M(),V(t.$$.fragment),n=M(),V(s.$$.fragment)},l(f){const c=Ct("svelte-j3jx17",document.head);u&&u.l(c),e=ae(),c.forEach(_),l=B(f),A(t.$$.fragment,f),n=B(f),A(s.$$.fragment,f)},m(f,c){u&&u.m(document.head,null),C(document.head,e),k(f,l,c),N(t,f,c),k(f,n,c),N(s,f,c),i=!0,a||(o=[q(lt,"hashchange",r[10]),q(lt,"popstate",r[11])],a=!0)},p(f,[c]){const m={};c&32783&&(m.$$scope={dirty:c,ctx:f}),s.$set(m)},i(f){i||(p(t.$$.fragment,f),p(s.$$.fragment,f),i=!0)},o(f){b(t.$$.fragment,f),b(s.$$.fragment,f),i=!1},d(f){u&&u.d(f),_(e),f&&_(l),L(t,f),f&&_(n),L(s,f),a=!1,ke(o)}}}function Ms(r,e,l){let t,n,s,i,a,o;ne(r,ll,v=>l(7,s=v)),ne(r,Ge,v=>l(3,o=v));let{$$slots:u={},$$scope:f}=e,c;const m={"/":"home","/datasets":"datasets","/datasets/loading":"datasets/loading","/concepts":"concepts","/signals":"signals","/settings":"settings"};let d=tl();el(d);const w=il();ne(r,w,v=>l(8,i=v)),rl(w),Ve(()=>{d.setHash(t,s.url.hash)});function F(v){const S=new URL(v),K=m[S.pathname];d.setHash(K,S.hash)}Ve(()=>{window.parent=window,history.pushState=function(v,S,K){return K instanceof URL&&F(K),History.prototype.pushState.apply(history,arguments)}});const I=ol();ul(I);const R=Xt();ne(r,R,v=>l(2,a=v)),Yt(R);const h=v=>F(v.newURL),$=()=>F(location.href),G=v=>{w.removeNotification(v)},E=v=>l(0,c=v),g=v=>{_t(Ge,o=o.filter(S=>S!==v),o)};return r.$$set=v=>{"$$scope"in v&&l(15,f=v.$$scope)},r.$$.update=()=>{r.$$.dirty&128&&(t=s.route.id!=null?m[s.route.id]:"home"),r.$$.dirty&256&&l(1,n=(i==null?void 0:i.notifications)||[])},[c,n,a,o,w,F,R,s,i,u,h,$,G,E,g,f]}class Xs extends te{constructor(e){super(),le(this,e,Ms,Fs,se,{})}}export{Xs as component,Ys as universal};
lilac/web/_app/immutable/nodes/1.347feca2.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as x,i as S,s as g,k as u,q as h,a as k,l as d,m as v,r as b,h as m,c as y,b as _,a0 as E,u as $,a1 as q,O as C}from"../chunks/index.b333a928.js";import{p as H}from"../chunks/stores.2a862464.js";function O(l){var f;let a,t=l[0].status+"",r,o,n,p=((f=l[0].error)==null?void 0:f.message)+"",c;return{c(){a=u("h1"),r=h(t),o=k(),n=u("p"),c=h(p)},l(e){a=d(e,"H1",{});var s=v(a);r=b(s,t),s.forEach(m),o=y(e),n=d(e,"P",{});var i=v(n);c=b(i,p),i.forEach(m)},m(e,s){_(e,a,s),E(a,r),_(e,o,s),_(e,n,s),E(n,c)},p(e,[s]){var i;s&1&&t!==(t=e[0].status+"")&&$(r,t),s&1&&p!==(p=((i=e[0].error)==null?void 0:i.message)+"")&&$(c,p)},i:q,o:q,d(e){e&&m(a),e&&m(o),e&&m(n)}}}function P(l,a,t){let r;return C(l,H,o=>t(0,r=o)),[r]}class z extends x{constructor(a){super(),S(this,a,P,O,g,{})}}export{z as component};
lilac/web/_app/immutable/nodes/2.f84a7216.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as U,i as Y,s as J,D as j,k as b,q as w,a as k,l as E,m as I,r as y,h as u,c as C,n as N,b as q,a0 as i,u as T,I as M,J as Q,K as W,g as z,d as x,y as L,z as P,A as B,B as H,O as X,e as O}from"../chunks/index.b333a928.js";import{g as Z}from"../chunks/navigation.52bd9048.js";import{b as tt,B as et}from"../chunks/Commands.543935b9.js";import{P as at}from"../chunks/Page.3051bdc4.js";function st(o){let t,e,a,l,d,n,s,r,f,p,v,D,g;const A=o[4].default,_=j(A,o,o[3],null);return{c(){t=b("div"),e=b("div"),a=w(o[0]),l=w("."),d=k(),n=b("div"),s=b("div"),r=w(o[1]),f=k(),p=b("div"),v=w(o[2]),D=k(),_&&_.c(),this.h()},l(c){t=E(c,"DIV",{class:!0});var $=I(t);e=E($,"DIV",{class:!0});var m=I(e);a=y(m,o[0]),l=y(m,"."),m.forEach(u),d=C($),n=E($,"DIV",{class:!0});var h=I(n);s=E(h,"DIV",{class:!0});var V=I(s);r=y(V,o[1]),V.forEach(u),f=C(h),p=E(h,"DIV",{});var F=I(p);v=y(F,o[2]),F.forEach(u),D=C(h),_&&_.l(h),h.forEach(u),$.forEach(u),this.h()},h(){N(e,"class","font-bold"),N(s,"class","font-bold"),N(n,"class","flex flex-col gap-y-2"),N(t,"class","flex gap-x-1")},m(c,$){q(c,t,$),i(t,e),i(e,a),i(e,l),i(t,d),i(t,n),i(n,s),i(s,r),i(n,f),i(n,p),i(p,v),i(n,D),_&&_.m(n,null),g=!0},p(c,[$]){(!g||$&1)&&T(a,c[0]),(!g||$&2)&&T(r,c[1]),(!g||$&4)&&T(v,c[2]),_&&_.p&&(!g||$&8)&&M(_,A,c,c[3],g?W(A,c[3],$,null):Q(c[3]),null)},i(c){g||(z(_,c),g=!0)},o(c){x(_,c),g=!1},d(c){c&&u(t),_&&_.d(c)}}}function nt(o,t,e){let{$$slots:a={},$$scope:l}=t,{stepNumber:d}=t,{title:n}=t,{description:s}=t;return o.$$set=r=>{"stepNumber"in r&&e(0,d=r.stepNumber),"title"in r&&e(1,n=r.title),"description"in r&&e(2,s=r.description),"$$scope"in r&&e(3,l=r.$$scope)},[d,n,s,l,a]}class G extends U{constructor(t){super(),Y(this,t,nt,st,J,{stepNumber:0,title:1,description:2})}}function rt(o){let t;return{c(){t=w("+ Add dataset")},l(e){t=y(e,"+ Add dataset")},m(e,a){q(e,t,a)},d(e){e&&u(t)}}}function R(o){let t,e,a,l,d,n,s,r,f;return{c(){t=b("div"),e=b("span"),a=w("You do not have authorization to create a dataset."),l=k(),d=b("span"),n=w("For HuggingFace spaces, duplicate lilacai/lilac and set "),s=b("span"),r=w("LILAC_AUTH_ENABLED"),f=w(" environment flag to 'false' from settings."),this.h()},l(p){t=E(p,"DIV",{class:!0});var v=I(t);e=E(v,"SPAN",{class:!0});var D=I(e);a=y(D,"You do not have authorization to create a dataset."),D.forEach(u),l=C(v),d=E(v,"SPAN",{});var g=I(d);n=y(g,"For HuggingFace spaces, duplicate lilacai/lilac and set "),s=E(g,"SPAN",{class:!0});var A=I(s);r=y(A,"LILAC_AUTH_ENABLED"),A.forEach(u),f=y(g," environment flag to 'false' from settings."),g.forEach(u),v.forEach(u),this.h()},h(){N(e,"class","mb-2"),N(s,"class","font-mono"),N(t,"class","flex flex-col border border-neutral-100 bg-red-100 p-2")},m(p,v){q(p,t,v),i(t,e),i(e,a),i(t,l),i(t,d),i(d,n),i(d,s),i(s,r),i(d,f)},d(p){p&&u(t)}}}function lt(o){let t,e,a,l,d;e=new et({props:{disabled:!o[0],size:"small",$$slots:{default:[rt]},$$scope:{ctx:o}}}),e.$on("click",o[3]);let n=!o[0]&&R();return{c(){t=b("div"),L(e.$$.fragment),a=k(),n&&n.c(),l=O(),this.h()},l(s){t=E(s,"DIV",{class:!0});var r=I(t);P(e.$$.fragment,r),r.forEach(u),a=C(s),n&&n.l(s),l=O(),this.h()},h(){N(t,"class","mt-4")},m(s,r){q(s,t,r),B(e,t,null),q(s,a,r),n&&n.m(s,r),q(s,l,r),d=!0},p(s,r){const f={};r&1&&(f.disabled=!s[0]),r&16&&(f.$$scope={dirty:r,ctx:s}),e.$set(f),s[0]?n&&(n.d(1),n=null):n||(n=R(),n.c(),n.m(l.parentNode,l))},i(s){d||(z(e.$$.fragment,s),d=!0)},o(s){x(e.$$.fragment,s),d=!1},d(s){s&&u(t),H(e),s&&u(a),n&&n.d(s),s&&u(l)}}}function ot(o){let t,e,a,l,d,n,s,r,f,p,v,D,g,A,_,c,$;return p=new G({props:{stepNumber:1,title:"Import your dataset",description:"Click 'Add dataset' to add a new dataset.",$$slots:{default:[lt]},$$scope:{ctx:o}}}),D=new G({props:{stepNumber:2,title:"Configure and index the dataset",description:"Choose metadata fields to visualize and media fields to index and query."}}),A=new G({props:{stepNumber:3,title:"Enrich and explore your dataset",description:"Run signals and concepts over the data to produce additional metadata."}}),c=new G({props:{stepNumber:4,title:"Download the new data",description:"Click the Download button in the top-right corner to get the annotated dataset."}}),{c(){t=b("div"),e=b("div"),a=b("h3"),l=w("Getting started"),d=k(),n=b("div"),s=w("Import, analyze and enrich your dataset"),r=k(),f=b("div"),L(p.$$.fragment),v=k(),L(D.$$.fragment),g=k(),L(A.$$.fragment),_=k(),L(c.$$.fragment),this.h()},l(m){t=E(m,"DIV",{class:!0});var h=I(t);e=E(h,"DIV",{class:!0});var V=I(e);a=E(V,"H3",{});var F=I(a);l=y(F,"Getting started"),F.forEach(u),d=C(V),n=E(V,"DIV",{class:!0});var K=I(n);s=y(K,"Import, analyze and enrich your dataset"),K.forEach(u),V.forEach(u),r=C(h),f=E(h,"DIV",{class:!0});var S=I(f);P(p.$$.fragment,S),v=C(S),P(D.$$.fragment,S),g=C(S),P(A.$$.fragment,S),_=C(S),P(c.$$.fragment,S),S.forEach(u),h.forEach(u),this.h()},h(){N(n,"class","mt-2 text-gray-700"),N(e,"class","text-center"),N(f,"class","flex flex-col gap-y-8 rounded-lg border border-gray-200 p-9"),N(t,"class","flex w-full flex-col items-center gap-y-6 px-8 pt-20")},m(m,h){q(m,t,h),i(t,e),i(e,a),i(a,l),i(e,d),i(e,n),i(n,s),i(t,r),i(t,f),B(p,f,null),i(f,v),B(D,f,null),i(f,g),B(A,f,null),i(f,_),B(c,f,null),$=!0},p(m,[h]){const V={};h&17&&(V.$$scope={dirty:h,ctx:m}),p.$set(V)},i(m){$||(z(p.$$.fragment,m),z(D.$$.fragment,m),z(A.$$.fragment,m),z(c.$$.fragment,m),$=!0)},o(m){x(p.$$.fragment,m),x(D.$$.fragment,m),x(A.$$.fragment,m),x(c.$$.fragment,m),$=!1},d(m){m&&u(t),H(p),H(D),H(A),H(c)}}}function it(o,t,e){let a,l;const d=tt();X(o,d,s=>e(2,l=s));const n=()=>Z("/datasets/new");return o.$$.update=()=>{var s;o.$$.dirty&4&&e(0,a=(s=l.data)==null?void 0:s.access.create_dataset)},[a,d,l,n]}class dt extends U{constructor(t){super(),Y(this,t,it,ot,J,{})}}function ct(o){let t,e;return t=new dt({}),{c(){L(t.$$.fragment)},l(a){P(t.$$.fragment,a)},m(a,l){B(t,a,l),e=!0},i(a){e||(z(t.$$.fragment,a),e=!0)},o(a){x(t.$$.fragment,a),e=!1},d(a){H(t,a)}}}function ft(o){let t,e;return t=new at({props:{$$slots:{default:[ct]},$$scope:{ctx:o}}}),{c(){L(t.$$.fragment)},l(a){P(t.$$.fragment,a)},m(a,l){B(t,a,l),e=!0},p(a,[l]){const d={};l&1&&(d.$$scope={dirty:l,ctx:a}),t.$set(d)},i(a){e||(z(t.$$.fragment,a),e=!0)},o(a){x(t.$$.fragment,a),e=!1},d(a){H(t,a)}}}class _t extends U{constructor(t){super(),Y(this,t,null,ft,J,{})}}export{_t as component};
lilac/web/_app/immutable/nodes/3.f518ce2a.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as ae,i as ce,s as ie,y as P,z as V,A as B,g as _,d as g,B as N,O,k as v,a as X,e as q,l as k,m as C,h as d,c as Y,n as w,b as y,a0 as $,v as U,f as R,G,H as Z,a7 as fe,ab as ue,M as pe,a1 as L,ac as de,q as S,r as I,u as M,ad as me}from"../chunks/index.b333a928.js";import{g as K}from"../chunks/navigation.52bd9048.js";import{P as _e}from"../chunks/Page.3051bdc4.js";import{f as he,n as $e,d as ge,h as be,p as ve,r as ke,c as Ce,u as we}from"../chunks/Commands.543935b9.js";import{T as ye,I as F,C as Ee}from"../chunks/ConceptView.a39bdbf2.js";import{g as Te,c as Se,d as J}from"../chunks/utils.2fa1092a.js";import{M as Ie}from"../chunks/ChevronUp.efe9cbe8.js";function Q(l){let e,n,t,o;const a=[Ve,Pe,De],s=[];function c(r,i){var f,p,b;return(f=r[7])!=null&&f.isLoading?0:(p=r[7])!=null&&p.isError?1:(b=r[7])!=null&&b.isSuccess?2:-1}return~(e=c(l))&&(n=s[e]=a[e](l)),{c(){n&&n.c(),t=q()},l(r){n&&n.l(r),t=q()},m(r,i){~e&&s[e].m(r,i),y(r,t,i),o=!0},p(r,i){let f=e;e=c(r),e===f?~e&&s[e].p(r,i):(n&&(U(),g(s[f],1,1,()=>{s[f]=null}),R()),~e?(n=s[e],n?n.p(r,i):(n=s[e]=a[e](r),n.c()),_(n,1),n.m(t.parentNode,t)):n=null)},i(r){o||(_(n),o=!0)},o(r){g(n),o=!1},d(r){~e&&s[e].d(r),r&&d(t)}}}function De(l){let e,n;return e=new Ee({props:{concept:l[7].data}}),{c(){P(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p(t,o){const a={};o&128&&(a.concept=t[7].data),e.$set(a)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){N(e,t)}}}function Pe(l){let e,n=l[7].error+"",t;return{c(){e=v("p"),t=S(n)},l(o){e=k(o,"P",{});var a=C(e);t=I(a,n),a.forEach(d)},m(o,a){y(o,e,a),$(e,t)},p(o,a){a&128&&n!==(n=o[7].error+"")&&M(t,n)},i:L,o:L,d(o){o&&d(e)}}}function Ve(l){let e,n;return e=new Ce({}),{c(){P(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p:L,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){N(e,t)}}}function W(l){let e,n;return e=new Ie({props:{danger:!0,open:!0,modalHeading:"Delete concept",primaryButtonText:"Delete",primaryButtonIcon:l[6].isLoading?F:void 0,secondaryButtonText:"Cancel",$$slots:{default:[Be]},$$scope:{ctx:l}}}),e.$on("click:button--secondary",l[17]),e.$on("close",l[18]),e.$on("submit",l[19]),{c(){P(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p(t,o){const a={};o&64&&(a.primaryButtonIcon=t[6].isLoading?F:void 0),o&1048580&&(a.$$scope={dirty:o,ctx:t}),e.$set(a)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){N(e,t)}}}function Be(l){let e,n,t,o=l[2].namespace+"",a,s,c=l[2].name+"",r,i,f,p,b;return{c(){e=v("p"),n=S("Confirm deleting "),t=v("code"),a=S(o),s=S("/"),r=S(c),i=S(" ?"),f=X(),p=v("p"),b=S("This is a permanent action and cannot be undone."),this.h()},l(u){e=k(u,"P",{class:!0});var m=C(e);n=I(m,"Confirm deleting "),t=k(m,"CODE",{});var D=C(t);a=I(D,o),s=I(D,"/"),r=I(D,c),D.forEach(d),i=I(m," ?"),m.forEach(d),f=Y(u),p=k(u,"P",{class:!0});var E=C(p);b=I(E,"This is a permanent action and cannot be undone."),E.forEach(d),this.h()},h(){w(e,"class","!text-lg"),w(p,"class","mt-2")},m(u,m){y(u,e,m),$(e,n),$(e,t),$(t,a),$(t,s),$(t,r),$(e,i),y(u,f,m),y(u,p,m),$(p,b)},p(u,m){m&4&&o!==(o=u[2].namespace+"")&&M(a,o),m&4&&c!==(c=u[2].name+"")&&M(r,c)},d(u){u&&d(e),u&&d(f),u&&d(p)}}}function Ne(l){let e,n,t,o,a,s=l[0]!=null&&l[1]!=null&&Q(l),c=l[2]&&W(l);return{c(){e=v("div"),n=v("div"),s&&s.c(),t=X(),c&&c.c(),o=q(),this.h()},l(r){e=k(r,"DIV",{class:!0});var i=C(e);n=k(i,"DIV",{class:!0});var f=C(n);s&&s.l(f),f.forEach(d),i.forEach(d),t=Y(r),c&&c.l(r),o=q(),this.h()},h(){w(n,"class","lilac-page flex w-full"),w(e,"class","flex h-full w-full overflow-x-hidden overflow-y-scroll")},m(r,i){y(r,e,i),$(e,n),s&&s.m(n,null),y(r,t,i),c&&c.m(r,i),y(r,o,i),a=!0},p(r,i){r[0]!=null&&r[1]!=null?s?(s.p(r,i),i&3&&_(s,1)):(s=Q(r),s.c(),_(s,1),s.m(n,null)):s&&(U(),g(s,1,1,()=>{s=null}),R()),r[2]?c?(c.p(r,i),i&4&&_(c,1)):(c=W(r),c.c(),_(c,1),c.m(o.parentNode,o)):c&&(U(),g(c,1,1,()=>{c=null}),R())},i(r){a||(_(s),_(c),a=!0)},o(r){g(s),g(c),a=!1},d(r){r&&d(e),s&&s.d(),r&&d(t),c&&c.d(r),r&&d(o)}}}function He(l){let e,n=J(l[0],l[1])+"",t,o,a;return{c(){e=v("a"),t=S(n),this.h()},l(s){e=k(s,"A",{class:!0,href:!0});var c=C(e);t=I(c,n),c.forEach(d),this.h()},h(){w(e,"class","font-semibold text-black"),w(e,"href",l[3])},m(s,c){y(s,e,c),$(e,t),o||(a=Z(e,"click",l[16]),o=!0)},p(s,c){c&3&&n!==(n=J(s[0],s[1])+"")&&M(t,n),c&8&&w(e,"href",s[3])},d(s){s&&d(e),o=!1,a()}}}function qe(l){let e,n,t;return n=new ge({props:{type:"green",$$slots:{default:[He]},$$scope:{ctx:l}}}),{c(){e=v("div"),P(n.$$.fragment),this.h()},l(o){e=k(o,"DIV",{slot:!0});var a=C(e);V(n.$$.fragment,a),a.forEach(d),this.h()},h(){w(e,"slot","header-subtext")},m(o,a){y(o,e,a),B(n,e,null),t=!0},p(o,a){const s={};a&1048587&&(s.$$scope={dirty:a,ctx:o}),n.$set(s)},i(o){t||(_(n.$$.fragment,o),t=!0)},o(o){g(n.$$.fragment,o),t=!1},d(o){o&&d(e),N(n)}}}function Le(l){let e,n,t,o,a,s,c,r,i;return o=new ye({props:{size:16}}),{c(){e=v("div"),n=v("div"),t=v("button"),P(o.$$.fragment),this.h()},l(f){e=k(f,"DIV",{slot:!0});var p=C(e);n=k(p,"DIV",{});var b=C(n);t=k(b,"BUTTON",{title:!0,class:!0});var u=C(t);V(o.$$.fragment,u),u.forEach(d),b.forEach(d),p.forEach(d),this.h()},h(){w(t,"title","Remove concept"),t.disabled=a=!l[4],w(t,"class","p-3 hover:text-red-400 hover:opacity-100"),G(n,"opacity-40",!l[4]),w(e,"slot","header-right")},m(f,p){y(f,e,p),$(e,n),$(n,t),B(o,t,null),c=!0,r||(i=[Z(t,"click",l[15]),fe(s=be.call(null,n,{text:l[4]?"":"User does not have access to delete this concept."}))],r=!0)},p(f,p){(!c||p&16&&a!==(a=!f[4]))&&(t.disabled=a),s&&ue(s.update)&&p&16&&s.update.call(null,{text:f[4]?"":"User does not have access to delete this concept."}),(!c||p&16)&&G(n,"opacity-40",!f[4])},i(f){c||(_(o.$$.fragment,f),c=!0)},o(f){g(o.$$.fragment,f),c=!1},d(f){f&&d(e),N(o),r=!1,pe(i)}}}function Me(l){let e,n;return e=new _e({props:{$$slots:{"header-right":[Le],"header-subtext":[qe],default:[Ne]},$$scope:{ctx:l}}}),{c(){P(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,o){B(e,t,o),n=!0},p(t,[o]){const a={};o&1048799&&(a.$$scope={dirty:o,ctx:t}),e.$set(a)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){N(e,t)}}}function Oe(l,e,n){let t,o,a,s,c,r,i,f,p=L,b=()=>(p(),p=de(t,h=>n(7,f=h)),t);l.$$.on_destroy.push(()=>p());let u,m;const D=Te();O(l,D,h=>n(14,i=h));let E=null;const z=he();O(l,z,h=>n(13,r=h));const A=$e();O(l,A,h=>n(6,c=h));function j(){if(E==null)return;const{namespace:h,name:T}=E;c.mutate([h,T],{onSuccess:()=>{var H;for(const[se,re]of Object.entries(ve)){const le=(H=me(we[se]).selectRowsSchema)==null?void 0:H.data;re.deleteConcept(h,T,le)}n(2,E=null),K("/")}})}const x=()=>n(2,E={namespace:u,name:m}),ee=()=>K(s),te=()=>n(2,E=null),ne=()=>n(2,E=null),oe=()=>j();return l.$$.update=()=>{var h;if(l.$$.dirty&16387&&i.page==="concepts"&&i.identifier!=null){const[T,H]=i.identifier.split("/");(u!=T||m!=H)&&(n(0,u=T),n(1,m=H))}l.$$.dirty&3&&b(n(5,t=u&&m?ke(u,m):void 0)),l.$$.dirty&8195&&n(12,o=(h=r.data)==null?void 0:h.find(T=>T.namespace===u&&T.name===m)),l.$$.dirty&4096&&n(4,a=o==null?void 0:o.acls.write),l.$$.dirty&3&&n(3,s=Se(u,m))},[u,m,E,s,a,t,c,f,D,z,A,j,o,r,i,x,ee,te,ne,oe]}class Fe extends ae{constructor(e){super(),ce(this,e,Oe,Me,ie,{})}}export{Fe as component};
lilac/web/_app/immutable/nodes/4.ded2f795.js ADDED
The diff for this file is too large to render. See raw diff
 
lilac/web/_app/immutable/nodes/5.de5aac14.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as R,i as j,s as F,y as T,z as E,A as S,g as _,d as k,B,O as A,k as q,a as O,l as H,m as I,c as V,h as a,n as y,b as p,a0 as G,v as D,f as P,e as L,q as d,r as $,u as w}from"../chunks/index.b333a928.js";import{g as J}from"../chunks/navigation.52bd9048.js";import{P as K,b as Q}from"../chunks/Page.3051bdc4.js";import{q as X,B as Y}from"../chunks/Commands.543935b9.js";import{g as Z,f as x}from"../chunks/utils.2fa1092a.js";import{A as ee}from"../chunks/ArrowUpRight.e306cdcd.js";import{T as M}from"../chunks/ToastNotification.b080933f.js";function U(o){let l,r;return l=new M({props:{hideCloseButton:!0,kind:"warning",fullWidth:!0,lowContrast:!0,title:"Unknown task",caption:"This could be from a stale link, or a new server instance."}}),{c(){T(l.$$.fragment)},l(s){E(l.$$.fragment,s)},m(s,t){S(l,s,t),r=!0},i(s){r||(_(l.$$.fragment,s),r=!0)},o(s){k(l.$$.fragment,s),r=!1},d(s){B(l,s)}}}function z(o){let l,r,s,t,e,i,n;function h(f,m){if(f[0].status=="pending")return se;if(f[0].status==="completed")return le;if(f[0].status==="error")return te}let b=h(o),c=b&&b(o),u=o[0].status!="error"&&W(o);const C=[ie,re],g=[];function v(f,m){return f[0].status=="completed"?0:f[0].status==="error"?1:-1}return~(t=v(o))&&(e=g[t]=C[t](o)),{c(){l=q("h3"),c&&c.c(),r=O(),u&&u.c(),s=O(),e&&e.c(),i=L()},l(f){l=H(f,"H3",{});var m=I(l);c&&c.l(m),m.forEach(a),r=V(f),u&&u.l(f),s=V(f),e&&e.l(f),i=L()},m(f,m){p(f,l,m),c&&c.m(l,null),p(f,r,m),u&&u.m(f,m),p(f,s,m),~t&&g[t].m(f,m),p(f,i,m),n=!0},p(f,m){b===(b=h(f))&&c?c.p(f,m):(c&&c.d(1),c=b&&b(f),c&&(c.c(),c.m(l,null))),f[0].status!="error"?u?(u.p(f,m),m&1&&_(u,1)):(u=W(f),u.c(),_(u,1),u.m(s.parentNode,s)):u&&(D(),k(u,1,1,()=>{u=null}),P());let N=t;t=v(f),t===N?~t&&g[t].p(f,m):(e&&(D(),k(g[N],1,1,()=>{g[N]=null}),P()),~t?(e=g[t],e?e.p(f,m):(e=g[t]=C[t](f),e.c()),_(e,1),e.m(i.parentNode,i)):e=null)},i(f){n||(_(u),_(e),n=!0)},o(f){k(u),k(e),n=!1},d(f){f&&a(l),c&&c.d(),f&&a(r),u&&u.d(f),f&&a(s),~t&&g[t].d(f),f&&a(i)}}}function te(o){let l,r,s,t;return{c(){l=d("Error loading "),r=d(o[2]),s=d("/"),t=d(o[3])},l(e){l=$(e,"Error loading "),r=$(e,o[2]),s=$(e,"/"),t=$(e,o[3])},m(e,i){p(e,l,i),p(e,r,i),p(e,s,i),p(e,t,i)},p(e,i){i&4&&w(r,e[2]),i&8&&w(t,e[3])},d(e){e&&a(l),e&&a(r),e&&a(s),e&&a(t)}}}function le(o){let l,r,s,t;return{c(){l=d("Done loading "),r=d(o[2]),s=d("/"),t=d(o[3])},l(e){l=$(e,"Done loading "),r=$(e,o[2]),s=$(e,"/"),t=$(e,o[3])},m(e,i){p(e,l,i),p(e,r,i),p(e,s,i),p(e,t,i)},p(e,i){i&4&&w(r,e[2]),i&8&&w(t,e[3])},d(e){e&&a(l),e&&a(r),e&&a(s),e&&a(t)}}}function se(o){let l,r,s,t,e;return{c(){l=d("Loading "),r=d(o[2]),s=d("/"),t=d(o[3]),e=d("...")},l(i){l=$(i,"Loading "),r=$(i,o[2]),s=$(i,"/"),t=$(i,o[3]),e=$(i,"...")},m(i,n){p(i,l,n),p(i,r,n),p(i,s,n),p(i,t,n),p(i,e,n)},p(i,n){n&4&&w(r,i[2]),n&8&&w(t,i[3])},d(i){i&&a(l),i&&a(r),i&&a(s),i&&a(t),i&&a(e)}}}function W(o){let l,r,s;return r=new Q({props:{labelText:o[0].message||"",helperText:o[0].status!="completed"?o[0].details:"",value:o[0].status==="completed"?1:o[4],max:1,status:o[7][o[0].status]}}),{c(){l=q("div"),T(r.$$.fragment),this.h()},l(t){l=H(t,"DIV",{class:!0});var e=I(l);E(r.$$.fragment,e),e.forEach(a),this.h()},h(){y(l,"class","mt-6")},m(t,e){p(t,l,e),S(r,l,null),s=!0},p(t,e){const i={};e&1&&(i.labelText=t[0].message||""),e&1&&(i.helperText=t[0].status!="completed"?t[0].details:""),e&17&&(i.value=t[0].status==="completed"?1:t[4]),e&1&&(i.status=t[7][t[0].status]),r.$set(i)},i(t){s||(_(r.$$.fragment,t),s=!0)},o(t){k(r.$$.fragment,t),s=!1},d(t){t&&a(l),B(r)}}}function re(o){let l,r;return l=new M({props:{hideCloseButton:!0,kind:"error",fullWidth:!0,lowContrast:!0,title:"Error loading dataset",caption:o[0].error}}),{c(){T(l.$$.fragment)},l(s){E(l.$$.fragment,s)},m(s,t){S(l,s,t),r=!0},p(s,t){const e={};t&1&&(e.caption=s[0].error),l.$set(e)},i(s){r||(_(l.$$.fragment,s),r=!0)},o(s){k(l.$$.fragment,s),r=!1},d(s){B(l,s)}}}function ie(o){let l,r,s;return r=new Y({props:{size:"xl",icon:ee,iconDescription:"Open dataset",$$slots:{default:[oe]},$$scope:{ctx:o}}}),r.$on("click",o[10]),{c(){l=q("div"),T(r.$$.fragment),this.h()},l(t){l=H(t,"DIV",{class:!0});var e=I(l);E(r.$$.fragment,e),e.forEach(a),this.h()},h(){y(l,"class","dataset-link mt-8")},m(t,e){p(t,l,e),S(r,l,null),s=!0},p(t,e){const i={};e&2048&&(i.$$scope={dirty:e,ctx:t}),r.$set(i)},i(t){s||(_(r.$$.fragment,t),s=!0)},o(t){k(r.$$.fragment,t),s=!1},d(t){t&&a(l),B(r)}}}function oe(o){let l;return{c(){l=d("Open dataset")},l(r){l=$(r,"Open dataset")},m(r,s){p(r,l,s)},d(r){r&&a(l)}}}function fe(o){let l,r,s,t=o[1].isSuccess&&o[0]==null&&U(),e=o[0]&&z(o);return{c(){l=q("div"),t&&t.c(),r=O(),e&&e.c(),this.h()},l(i){l=H(i,"DIV",{class:!0});var n=I(l);t&&t.l(n),r=V(n),e&&e.l(n),n.forEach(a),this.h()},h(){y(l,"class","w-full p-8")},m(i,n){p(i,l,n),t&&t.m(l,null),G(l,r),e&&e.m(l,null),s=!0},p(i,n){i[1].isSuccess&&i[0]==null?t?n&3&&_(t,1):(t=U(),t.c(),_(t,1),t.m(l,r)):t&&(D(),k(t,1,1,()=>{t=null}),P()),i[0]?e?(e.p(i,n),n&1&&_(e,1)):(e=z(i),e.c(),_(e,1),e.m(l,null)):e&&(D(),k(e,1,1,()=>{e=null}),P())},i(i){s||(_(t),_(e),s=!0)},o(i){k(t),k(e),s=!1},d(i){i&&a(l),t&&t.d(),e&&e.d()}}}function ne(o){let l,r;return l=new K({props:{$$slots:{default:[fe]},$$scope:{ctx:o}}}),{c(){T(l.$$.fragment)},l(s){E(l.$$.fragment,s)},m(s,t){S(l,s,t),r=!0},p(s,[t]){const e={};t&2079&&(e.$$scope={dirty:t,ctx:s}),l.$set(e)},i(s){r||(_(l.$$.fragment,s),r=!0)},o(s){k(l.$$.fragment,s),r=!1},d(s){B(l,s)}}}function ae(o,l,r){let s,t,e,i,n,h,b;const c=Z();A(o,c,v=>r(9,i=v));const u=X();A(o,u,v=>r(1,e=v));const C={pending:"active",completed:"finished",error:"error"},g=()=>J(x(n,h));return o.$$.update=()=>{o.$$.dirty&512&&i.page==="datasets/loading"&&i.identifier!=null&&r(2,[n,h,b]=i.identifier.split("/"),n,(r(3,h),r(9,i)),(r(8,b),r(9,i))),o.$$.dirty&258&&r(0,s=b!=null&&e.data!=null?e.data.tasks[b]:null),o.$$.dirty&1&&r(4,t=(s==null?void 0:s.step_progress)==null?void 0:s.step_progress)},[s,e,n,h,t,c,u,C,b,i,g]}class ke extends R{constructor(l){super(),j(this,l,ae,ne,F,{})}}export{ke as component};
lilac/web/_app/immutable/nodes/6.8e128871.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as te,i as le,s as x,E as j,k as D,a as U,l as N,m as P,c as z,h as p,n as H,G as E,F as W,b as V,a0 as S,H as A,g as k,v as $,d as T,f as ee,L as oe,M as ue,N as X,ai as Fe,aj as ze,O as se,Q as fe,D as ce,I as de,J as _e,K as me,R as F,w as Z,q as K,r as Y,u as be,a1 as R,C as Oe,P as Je,o as Ke,a8 as ve,ak as Ye,e as w,ac as ae,T as ne,y as q,z as B,A as Q,U as ie,B as C,a4 as We}from"../chunks/index.b333a928.js";import{g as Xe}from"../chunks/navigation.52bd9048.js";import{aF as qe,ae as re,aG as Ze,aH as we,b as xe,aI as $e,B as et,O as Be,c as tt,aJ as lt}from"../chunks/Commands.543935b9.js";import{P as nt}from"../chunks/Page.3051bdc4.js";import{C as Qe}from"../chunks/ComboBox.09dac6a6.js";import{e as it}from"../chunks/utils.2fa1092a.js";import{w as Ce}from"../chunks/index.2b0dd2f8.js";const at=l=>({}),pe=l=>({});function ke(l){let e,t;const n=l[16].labelText,i=ce(n,l,l[15],pe),s=i||st(l);return{c(){e=D("span"),s&&s.c(),this.h()},l(a){e=N(a,"SPAN",{});var o=P(e);s&&s.l(o),o.forEach(p),this.h()},h(){E(e,"bx--visually-hidden",l[7])},m(a,o){V(a,e,o),s&&s.m(e,null),t=!0},p(a,o){i?i.p&&(!t||o&32768)&&de(i,n,a,a[15],t?me(n,a[15],o,at):_e(a[15]),pe):s&&s.p&&(!t||o&64)&&s.p(a,t?o:-1),(!t||o&128)&&E(e,"bx--visually-hidden",a[7])},i(a){t||(k(s,a),t=!0)},o(a){T(s,a),t=!1},d(a){a&&p(e),s&&s.d(a)}}}function st(l){let e;return{c(){e=K(l[6])},l(t){e=Y(t,l[6])},m(t,n){V(t,e,n)},p(t,n){n&64&&be(e,t[6])},d(t){t&&p(e)}}}function rt(l){let e,t,n,i,s,a,o,r,u,d=(l[6]||l[13].labelText)&&ke(l),g=[l[12]],c={};for(let _=0;_<g.length;_+=1)c=j(c,g[_]);return{c(){e=D("div"),t=D("input"),n=U(),i=D("label"),s=D("span"),a=U(),d&&d.c(),this.h()},l(_){e=N(_,"DIV",{});var h=P(e);t=N(h,"INPUT",{type:!0,id:!0,name:!0}),n=z(h),i=N(h,"LABEL",{for:!0});var f=P(i);s=N(f,"SPAN",{}),P(s).forEach(p),a=z(f),d&&d.l(f),f.forEach(p),h.forEach(p),this.h()},h(){H(t,"type","radio"),H(t,"id",l[8]),H(t,"name",l[9]),t.checked=l[0],t.disabled=l[3],t.required=l[4],t.value=l[2],E(t,"bx--radio-button",!0),E(s,"bx--radio-button__appearance",!0),H(i,"for",l[8]),E(i,"bx--radio-button__label",!0),W(e,c),E(e,"bx--radio-button-wrapper",!0),E(e,"bx--radio-button-wrapper--label-left",l[5]==="left")},m(_,h){V(_,e,h),S(e,t),l[18](t),S(e,n),S(e,i),S(i,s),S(i,a),d&&d.m(i,null),o=!0,r||(u=[A(t,"change",l[17]),A(t,"change",l[19])],r=!0)},p(_,[h]){(!o||h&256)&&H(t,"id",_[8]),(!o||h&512)&&H(t,"name",_[9]),(!o||h&1)&&(t.checked=_[0]),(!o||h&8)&&(t.disabled=_[3]),(!o||h&16)&&(t.required=_[4]),(!o||h&4)&&(t.value=_[2]),_[6]||_[13].labelText?d?(d.p(_,h),h&8256&&k(d,1)):(d=ke(_),d.c(),k(d,1),d.m(i,null)):d&&($(),T(d,1,1,()=>{d=null}),ee()),(!o||h&256)&&H(i,"for",_[8]),W(e,c=oe(g,[h&4096&&_[12]])),E(e,"bx--radio-button-wrapper",!0),E(e,"bx--radio-button-wrapper--label-left",_[5]==="left")},i(_){o||(k(d),o=!0)},o(_){T(d),o=!1},d(_){_&&p(e),l[18](null),d&&d.d(),r=!1,ue(u)}}}function ot(l,e,t){const n=["value","checked","disabled","required","labelPosition","labelText","hideLabel","id","name","ref"];let i=X(e,n),s,{$$slots:a={},$$scope:o}=e;const r=Fe(a);let{value:u=""}=e,{checked:d=!1}=e,{disabled:g=!1}=e,{required:c=!1}=e,{labelPosition:_="right"}=e,{labelText:h=""}=e,{hideLabel:f=!1}=e,{id:b="ccs-"+Math.random().toString(36)}=e,{name:v=""}=e,{ref:y=null}=e;const G=ze("RadioButtonGroup"),O=G?G.selectedValue:Ce(d?u:void 0);se(l,O,I=>t(14,s=I)),G&&G.add({id:b,checked:d,disabled:g,value:u});function M(I){F.call(this,l,I)}function m(I){Z[I?"unshift":"push"](()=>{y=I,t(1,y)})}const J=()=>{G&&G.update(u)};return l.$$set=I=>{e=j(j({},e),fe(I)),t(12,i=X(e,n)),"value"in I&&t(2,u=I.value),"checked"in I&&t(0,d=I.checked),"disabled"in I&&t(3,g=I.disabled),"required"in I&&t(4,c=I.required),"labelPosition"in I&&t(5,_=I.labelPosition),"labelText"in I&&t(6,h=I.labelText),"hideLabel"in I&&t(7,f=I.hideLabel),"id"in I&&t(8,b=I.id),"name"in I&&t(9,v=I.name),"ref"in I&&t(1,y=I.ref),"$$scope"in I&&t(15,o=I.$$scope)},l.$$.update=()=>{l.$$.dirty&16388&&t(0,d=s===u)},[d,y,u,g,c,_,h,f,b,v,G,O,i,r,s,o,a,M,m,J]}class ut extends te{constructor(e){super(),le(this,e,ot,rt,x,{value:2,checked:0,disabled:3,required:4,labelPosition:5,labelText:6,hideLabel:7,id:8,name:9,ref:1})}}const ft=ut;function ct(l){let e,t,n,i;const s=l[3].default,a=ce(s,l,l[2],null);let o=[l[1]],r={};for(let u=0;u<o.length;u+=1)r=j(r,o[u]);return{c(){e=D("form"),a&&a.c(),this.h()},l(u){e=N(u,"FORM",{});var d=P(e);a&&a.l(d),d.forEach(p),this.h()},h(){W(e,r),E(e,"bx--form",!0)},m(u,d){V(u,e,d),a&&a.m(e,null),l[10](e),t=!0,n||(i=[A(e,"click",l[4]),A(e,"keydown",l[5]),A(e,"mouseover",l[6]),A(e,"mouseenter",l[7]),A(e,"mouseleave",l[8]),A(e,"submit",l[9])],n=!0)},p(u,[d]){a&&a.p&&(!t||d&4)&&de(a,s,u,u[2],t?me(s,u[2],d,null):_e(u[2]),null),W(e,r=oe(o,[d&2&&u[1]])),E(e,"bx--form",!0)},i(u){t||(k(a,u),t=!0)},o(u){T(a,u),t=!1},d(u){u&&p(e),a&&a.d(u),l[10](null),n=!1,ue(i)}}}function dt(l,e,t){const n=["ref"];let i=X(e,n),{$$slots:s={},$$scope:a}=e,{ref:o=null}=e;function r(f){F.call(this,l,f)}function u(f){F.call(this,l,f)}function d(f){F.call(this,l,f)}function g(f){F.call(this,l,f)}function c(f){F.call(this,l,f)}function _(f){F.call(this,l,f)}function h(f){Z[f?"unshift":"push"](()=>{o=f,t(0,o)})}return l.$$set=f=>{e=j(j({},e),fe(f)),t(1,i=X(e,n)),"ref"in f&&t(0,o=f.ref),"$$scope"in f&&t(2,a=f.$$scope)},[o,i,a,s,r,u,d,g,c,_,h]}class _t extends te{constructor(e){super(),le(this,e,dt,ct,x,{ref:0})}}const mt=_t;function Te(l){let e,t,n;return{c(){e=D("legend"),t=K(l[4]),this.h()},l(i){e=N(i,"LEGEND",{id:!0});var s=P(e);t=Y(s,l[4]),s.forEach(p),this.h()},h(){H(e,"id",n=l[5]||l[6]["aria-labelledby"]),E(e,"bx--label",!0)},m(i,s){V(i,e,s),S(e,t)},p(i,s){s&16&&be(t,i[4]),s&96&&n!==(n=i[5]||i[6]["aria-labelledby"])&&H(e,"id",n)},d(i){i&&p(e)}}}function Ee(l){let e,t;return{c(){e=D("div"),t=K(l[3]),this.h()},l(n){e=N(n,"DIV",{});var i=P(e);t=Y(i,l[3]),i.forEach(p),this.h()},h(){E(e,"bx--form__requirement",!0)},m(n,i){V(n,e,i),S(e,t)},p(n,i){i&8&&be(t,n[3])},d(n){n&&p(e)}}}function bt(l){let e,t,n,i,s,a,o,r,u=l[4]&&Te(l);const d=l[8].default,g=ce(d,l,l[7],null);let c=l[2]&&Ee(l),_=[{"data-invalid":i=l[1]||void 0},{"aria-labelledby":s=l[6]["aria-labelledby"]||l[5]},l[6]],h={};for(let f=0;f<_.length;f+=1)h=j(h,_[f]);return{c(){e=D("fieldset"),u&&u.c(),t=U(),g&&g.c(),n=U(),c&&c.c(),this.h()},l(f){e=N(f,"FIELDSET",{"data-invalid":!0,"aria-labelledby":!0});var b=P(e);u&&u.l(b),t=z(b),g&&g.l(b),n=z(b),c&&c.l(b),b.forEach(p),this.h()},h(){W(e,h),E(e,"bx--fieldset",!0),E(e,"bx--fieldset--no-margin",l[0])},m(f,b){V(f,e,b),u&&u.m(e,null),S(e,t),g&&g.m(e,null),S(e,n),c&&c.m(e,null),a=!0,o||(r=[A(e,"click",l[9]),A(e,"mouseover",l[10]),A(e,"mouseenter",l[11]),A(e,"mouseleave",l[12])],o=!0)},p(f,[b]){f[4]?u?u.p(f,b):(u=Te(f),u.c(),u.m(e,t)):u&&(u.d(1),u=null),g&&g.p&&(!a||b&128)&&de(g,d,f,f[7],a?me(d,f[7],b,null):_e(f[7]),null),f[2]?c?c.p(f,b):(c=Ee(f),c.c(),c.m(e,null)):c&&(c.d(1),c=null),W(e,h=oe(_,[(!a||b&2&&i!==(i=f[1]||void 0))&&{"data-invalid":i},(!a||b&96&&s!==(s=f[6]["aria-labelledby"]||f[5]))&&{"aria-labelledby":s},b&64&&f[6]])),E(e,"bx--fieldset",!0),E(e,"bx--fieldset--no-margin",f[0])},i(f){a||(k(g,f),a=!0)},o(f){T(g,f),a=!1},d(f){f&&p(e),u&&u.d(),g&&g.d(f),c&&c.d(),o=!1,ue(r)}}}function ht(l,e,t){const n=["noMargin","invalid","message","messageText","legendText","legendId"];let i=X(e,n),{$$slots:s={},$$scope:a}=e,{noMargin:o=!1}=e,{invalid:r=!1}=e,{message:u=!1}=e,{messageText:d=""}=e,{legendText:g=""}=e,{legendId:c=""}=e;function _(v){F.call(this,l,v)}function h(v){F.call(this,l,v)}function f(v){F.call(this,l,v)}function b(v){F.call(this,l,v)}return l.$$set=v=>{e=j(j({},e),fe(v)),t(6,i=X(e,n)),"noMargin"in v&&t(0,o=v.noMargin),"invalid"in v&&t(1,r=v.invalid),"message"in v&&t(2,u=v.message),"messageText"in v&&t(3,d=v.messageText),"legendText"in v&&t(4,g=v.legendText),"legendId"in v&&t(5,c=v.legendId),"$$scope"in v&&t(7,a=v.$$scope)},[o,r,u,d,g,c,i,a,s,_,h,f,b]}class gt extends te{constructor(e){super(),le(this,e,ht,bt,x,{noMargin:0,invalid:1,message:2,messageText:3,legendText:4,legendId:5})}}const Se=gt;function vt(l){let e,t,n,i,s,a,o=[l[0]],r={};for(let u=0;u<o.length;u+=1)r=j(r,o[u]);return{c(){e=D("div"),t=D("div"),n=U(),i=D("span"),this.h()},l(u){e=N(u,"DIV",{});var d=P(e);t=N(d,"DIV",{}),P(t).forEach(p),n=z(d),i=N(d,"SPAN",{}),P(i).forEach(p),d.forEach(p),this.h()},h(){E(t,"bx--radio-button",!0),E(t,"bx--skeleton",!0),E(i,"bx--radio-button__label",!0),E(i,"bx--skeleton",!0),W(e,r),E(e,"bx--radio-button-wrapper",!0)},m(u,d){V(u,e,d),S(e,t),S(e,n),S(e,i),s||(a=[A(e,"click",l[1]),A(e,"mouseover",l[2]),A(e,"mouseenter",l[3]),A(e,"mouseleave",l[4])],s=!0)},p(u,[d]){W(e,r=oe(o,[d&1&&u[0]])),E(e,"bx--radio-button-wrapper",!0)},i:R,o:R,d(u){u&&p(e),s=!1,ue(a)}}}function pt(l,e,t){const n=[];let i=X(e,n);function s(u){F.call(this,l,u)}function a(u){F.call(this,l,u)}function o(u){F.call(this,l,u)}function r(u){F.call(this,l,u)}return l.$$set=u=>{e=j(j({},e),fe(u)),t(0,i=X(e,n))},[i,s,a,o,r]}class kt extends te{constructor(e){super(),le(this,e,pt,vt,x,{})}}const Tt=kt,Et=l=>({}),Ie=l=>({});function ye(l){let e,t;const n=l[11].legendText,i=ce(n,l,l[10],Ie),s=i||St(l);return{c(){e=D("legend"),s&&s.c(),this.h()},l(a){e=N(a,"LEGEND",{});var o=P(e);s&&s.l(o),o.forEach(p),this.h()},h(){E(e,"bx--label",!0),E(e,"bx--visually-hidden",l[2])},m(a,o){V(a,e,o),s&&s.m(e,null),t=!0},p(a,o){i?i.p&&(!t||o&1024)&&de(i,n,a,a[10],t?me(n,a[10],o,Et):_e(a[10]),Ie):s&&s.p&&(!t||o&2)&&s.p(a,t?o:-1),(!t||o&4)&&E(e,"bx--visually-hidden",a[2])},i(a){t||(k(s,a),t=!0)},o(a){T(s,a),t=!1},d(a){a&&p(e),s&&s.d(a)}}}function St(l){let e;return{c(){e=K(l[1])},l(t){e=Y(t,l[1])},m(t,n){V(t,e,n)},p(t,n){n&2&&be(e,t[1])},d(t){t&&p(e)}}}function It(l){let e,t,n,i,s,a,o=(l[1]||l[8].legendText)&&ye(l);const r=l[11].default,u=ce(r,l,l[10],null);let d=[{id:l[5]},l[7]],g={};for(let c=0;c<d.length;c+=1)g=j(g,d[c]);return{c(){e=D("div"),t=D("fieldset"),o&&o.c(),n=U(),u&&u.c(),this.h()},l(c){e=N(c,"DIV",{id:!0});var _=P(e);t=N(_,"FIELDSET",{});var h=P(t);o&&o.l(h),n=z(h),u&&u.l(h),h.forEach(p),_.forEach(p),this.h()},h(){t.disabled=l[0],E(t,"bx--radio-button-group",!0),E(t,"bx--radio-button-group--vertical",l[4]==="vertical"),E(t,"bx--radio-button-group--label-left",l[3]==="left"),E(t,"bx--radio-button-group--label-right",l[3]==="right"),W(e,g),E(e,"bx--form-item",!0)},m(c,_){V(c,e,_),S(e,t),o&&o.m(t,null),S(t,n),u&&u.m(t,null),i=!0,s||(a=[A(e,"click",l[12]),A(e,"mouseover",l[13]),A(e,"mouseenter",l[14]),A(e,"mouseleave",l[15])],s=!0)},p(c,[_]){c[1]||c[8].legendText?o?(o.p(c,_),_&258&&k(o,1)):(o=ye(c),o.c(),k(o,1),o.m(t,n)):o&&($(),T(o,1,1,()=>{o=null}),ee()),u&&u.p&&(!i||_&1024)&&de(u,r,c,c[10],i?me(r,c[10],_,null):_e(c[10]),null),(!i||_&1)&&(t.disabled=c[0]),(!i||_&16)&&E(t,"bx--radio-button-group--vertical",c[4]==="vertical"),(!i||_&8)&&E(t,"bx--radio-button-group--label-left",c[3]==="left"),(!i||_&8)&&E(t,"bx--radio-button-group--label-right",c[3]==="right"),W(e,g=oe(d,[(!i||_&32)&&{id:c[5]},_&128&&c[7]])),E(e,"bx--form-item",!0)},i(c){i||(k(o),k(u,c),i=!0)},o(c){T(o),T(u,c),i=!1},d(c){c&&p(e),o&&o.d(),u&&u.d(c),s=!1,ue(a)}}}function yt(l,e,t){const n=["selected","disabled","legendText","hideLegend","labelPosition","orientation","id"];let i=X(e,n),s,{$$slots:a={},$$scope:o}=e;const r=Fe(a);let{selected:u=void 0}=e,{disabled:d=!1}=e,{legendText:g=""}=e,{hideLegend:c=!1}=e,{labelPosition:_="right"}=e,{orientation:h="horizontal"}=e,{id:f=void 0}=e;const b=Oe(),v=Ce(u);se(l,v,m=>t(16,s=m)),Je("RadioButtonGroup",{selectedValue:v,add:({checked:m,value:J})=>{m&&v.set(J)},update:m=>{t(9,u=m)}}),Ke(()=>{ve(v,s=u,s)}),Ye(()=>{ve(v,s=u,s)}),v.subscribe(m=>{t(9,u=m),b("change",m)});function y(m){F.call(this,l,m)}function G(m){F.call(this,l,m)}function O(m){F.call(this,l,m)}function M(m){F.call(this,l,m)}return l.$$set=m=>{e=j(j({},e),fe(m)),t(7,i=X(e,n)),"selected"in m&&t(9,u=m.selected),"disabled"in m&&t(0,d=m.disabled),"legendText"in m&&t(1,g=m.legendText),"hideLegend"in m&&t(2,c=m.hideLegend),"labelPosition"in m&&t(3,_=m.labelPosition),"orientation"in m&&t(4,h=m.orientation),"id"in m&&t(5,f=m.id),"$$scope"in m&&t(10,o=m.$$scope)},[d,g,c,_,h,f,v,i,r,u,o,a,y,G,O,M]}class Dt extends te{constructor(e){super(),le(this,e,yt,It,x,{selected:9,disabled:0,legendText:1,hideLegend:2,labelPosition:3,orientation:4,id:5})}}const Nt=Dt,Ge="huggingface",he=l=>qe({queryFn:()=>fetch(`https://datasets-server.huggingface.co/is-valid?dataset=${l}`).then(e=>e.status===200),queryKey:[Ge,"isValid",l]}),He=(l,e)=>qe({queryFn:()=>fetch(`https://datasets-server.huggingface.co/splits?dataset=${l}&config=${e||""}`).then(t=>t.json()),queryKey:[Ge,"getSplits",l,e],select:t=>t.splits});function Pt(l){let e,t,n;function i(a){l[14](a)}let s={invalid:l[1],invalidText:l[2],labelText:"Config",placeholder:"(optional)"};return l[0]!==void 0&&(s.value=l[0]),e=new re({props:s}),Z.push(()=>ne(e,"value",i)),{c(){q(e.$$.fragment)},l(a){B(e.$$.fragment,a)},m(a,o){Q(e,a,o),n=!0},p(a,o){const r={};o&2&&(r.invalid=a[1]),o&4&&(r.invalidText=a[2]),!t&&o&1&&(t=!0,r.value=a[0],ie(()=>t=!1)),e.$set(r)},i(a){n||(k(e.$$.fragment,a),n=!0)},o(a){T(e.$$.fragment,a),n=!1},d(a){C(e,a)}}}function Vt(l){let e,t;return e=new Qe({props:{value:l[0]||"",invalid:l[1],invalidText:l[2],warn:!l[3],warnText:"Dataset doesn't exist",titleText:"Config",placeholder:"(optional)",items:l[4]}}),e.$on("select",l[12]),e.$on("clear",l[13]),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&1&&(s.value=n[0]||""),i&2&&(s.invalid=n[1]),i&4&&(s.invalidText=n[2]),i&8&&(s.warn=!n[3]),i&16&&(s.items=n[4]),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Lt(l){let e,t,n,i;const s=[Vt,Pt],a=[];function o(r,u){return r[4]&&r[3]?0:1}return e=o(l),t=a[e]=s[e](l),{c(){t.c(),n=w()},l(r){t.l(r),n=w()},m(r,u){a[e].m(r,u),V(r,n,u),i=!0},p(r,[u]){let d=e;e=o(r),e===d?a[e].p(r,u):($(),T(a[d],1,1,()=>{a[d]=null}),ee(),t=a[e],t?t.p(r,u):(t=a[e]=s[e](r),t.c()),k(t,1),t.m(n.parentNode,n))},i(r){i||(k(t),i=!0)},o(r){T(t),i=!1},d(r){a[e].d(r),r&&p(n)}}}function At(l,e,t){let n,i,s,a,o,r,u,d=R,g=()=>(d(),d=ae(a,m=>t(10,u=m)),a),c,_=R,h=()=>(_(),_=ae(i,m=>t(11,c=m)),i);l.$$.on_destroy.push(()=>d()),l.$$.on_destroy.push(()=>_());let{value:f}=e,{invalid:b}=e,{invalidText:v}=e,{rootValue:y}=e;const G=m=>{var J;return t(0,f=(J=m.detail.selectedItem)==null?void 0:J.id)},O=()=>t(0,f=void 0);function M(m){f=m,t(0,f)}return l.$$set=m=>{"value"in m&&t(0,f=m.value),"invalid"in m&&t(1,b=m.invalid),"invalidText"in m&&t(2,v=m.invalidText),"rootValue"in m&&t(7,y=m.rootValue)},l.$$.update=()=>{l.$$.dirty&128&&t(9,n=y.dataset_name),l.$$.dirty&512&&h(t(6,i=he(n))),l.$$.dirty&2048&&t(3,s=c.data===!0),l.$$.dirty&520&&g(t(5,a=s?He(n):void 0)),l.$$.dirty&1024&&t(8,o=u!=null&&u.data?new Set(u.data.map(m=>m.config)):void 0),l.$$.dirty&256&&t(4,r=o?[...o].map(m=>({id:m,text:m})):void 0)},[f,b,v,s,r,a,i,y,o,n,u,c,G,O,M]}class De extends te{constructor(e){super(),le(this,e,At,Lt,x,{value:0,invalid:1,invalidText:2,rootValue:7})}}function Ft(l){let e,t,n;function i(a){l[6](a)}let s={invalid:l[1],invalidText:l[2],warn:!l[3],warnText:"Dataset doesn't exist"};return l[0]!==void 0&&(s.value=l[0]),e=new re({props:s}),Z.push(()=>ne(e,"value",i)),{c(){q(e.$$.fragment)},l(a){B(e.$$.fragment,a)},m(a,o){Q(e,a,o),n=!0},p(a,[o]){const r={};o&2&&(r.invalid=a[1]),o&4&&(r.invalidText=a[2]),o&8&&(r.warn=!a[3]),!t&&o&1&&(t=!0,r.value=a[0],ie(()=>t=!1)),e.$set(r)},i(a){n||(k(e.$$.fragment,a),n=!0)},o(a){T(e.$$.fragment,a),n=!1},d(a){C(e,a)}}}function qt(l,e,t){let n,i,s,a=R,o=()=>(a(),a=ae(n,c=>t(5,s=c)),n);l.$$.on_destroy.push(()=>a());let{value:r}=e,{invalid:u}=e,{invalidText:d}=e;function g(c){r=c,t(0,r)}return l.$$set=c=>{"value"in c&&t(0,r=c.value),"invalid"in c&&t(1,u=c.invalid),"invalidText"in c&&t(2,d=c.invalidText)},l.$$.update=()=>{l.$$.dirty&1&&o(t(4,n=he(r))),l.$$.dirty&32&&t(3,i=s.data===!0)},[r,u,d,i,n,s,g]}class Ne extends te{constructor(e){super(),le(this,e,qt,Ft,x,{value:0,invalid:1,invalidText:2})}}function Bt(l){let e,t,n;function i(a){l[14](a)}let s={invalid:l[1],invalidText:l[2],labelText:"Split",placeholder:"(optional)"};return l[0]!==void 0&&(s.value=l[0]),e=new re({props:s}),Z.push(()=>ne(e,"value",i)),{c(){q(e.$$.fragment)},l(a){B(e.$$.fragment,a)},m(a,o){Q(e,a,o),n=!0},p(a,o){const r={};o&2&&(r.invalid=a[1]),o&4&&(r.invalidText=a[2]),!t&&o&1&&(t=!0,r.value=a[0],ie(()=>t=!1)),e.$set(r)},i(a){n||(k(e.$$.fragment,a),n=!0)},o(a){T(e.$$.fragment,a),n=!1},d(a){C(e,a)}}}function Qt(l){let e,t;return e=new Qe({props:{invalid:l[1],invalidText:l[2],warn:!l[3],warnText:"Dataset doesn't exist",titleText:"Split",placeholder:"(optional)",items:l[4]}}),e.$on("select",l[12]),e.$on("clear",l[13]),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&2&&(s.invalid=n[1]),i&4&&(s.invalidText=n[2]),i&8&&(s.warn=!n[3]),i&16&&(s.items=n[4]),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Ct(l){let e,t,n,i;const s=[Qt,Bt],a=[];function o(r,u){return r[4]&&r[3]?0:1}return e=o(l),t=a[e]=s[e](l),{c(){t.c(),n=w()},l(r){t.l(r),n=w()},m(r,u){a[e].m(r,u),V(r,n,u),i=!0},p(r,[u]){let d=e;e=o(r),e===d?a[e].p(r,u):($(),T(a[d],1,1,()=>{a[d]=null}),ee(),t=a[e],t?t.p(r,u):(t=a[e]=s[e](r),t.c()),k(t,1),t.m(n.parentNode,n))},i(r){i||(k(t),i=!0)},o(r){T(t),i=!1},d(r){a[e].d(r),r&&p(n)}}}function Gt(l,e,t){let n,i,s,a,o,r,u,d=R,g=()=>(d(),d=ae(o,m=>t(10,u=m)),o),c,_=R,h=()=>(_(),_=ae(s,m=>t(11,c=m)),s);l.$$.on_destroy.push(()=>d()),l.$$.on_destroy.push(()=>_());let{value:f}=e,{invalid:b}=e,{invalidText:v}=e,{rootValue:y}=e;const G=m=>t(0,f=m.detail.selectedId.split("/")[1]),O=()=>t(0,f=void 0);function M(m){f=m,t(0,f)}return l.$$set=m=>{"value"in m&&t(0,f=m.value),"invalid"in m&&t(1,b=m.invalid),"invalidText"in m&&t(2,v=m.invalidText),"rootValue"in m&&t(7,y=m.rootValue)},l.$$.update=()=>{var m;l.$$.dirty&128&&t(9,n=y.dataset_name),l.$$.dirty&128&&t(8,i=y.config_name),l.$$.dirty&512&&h(t(6,s=he(n))),l.$$.dirty&2048&&t(3,a=c.data===!0),l.$$.dirty&776&&g(t(5,o=a?He(n,i):void 0)),l.$$.dirty&1024&&t(4,r=(m=u==null?void 0:u.data)==null?void 0:m.map(J=>({id:`${J.config}/${J.split}`,text:`${J.config}/${J.split}`})))},[f,b,v,a,r,o,s,y,i,n,u,c,G,O,M]}class Pe extends te{constructor(e){super(),le(this,e,Gt,Ct,x,{value:0,invalid:1,invalidText:2,rootValue:7})}}function Ht(l){const e=l.slice(),t=e[11].data;return e[23]=t,e}function Ve(l,e,t){const n=l.slice();return n[24]=e[t],n}function jt(l){let e,t,n,i,s,a,o,r,u;return{c(){e=D("div"),t=D("span"),n=K("You do not have authorization to create a dataset."),i=U(),s=D("span"),a=K("For HuggingFace spaces, fork this space and set "),o=D("span"),r=K("LILAC_AUTH_ENABLED"),u=K(" environment flag to 'false' from settings."),this.h()},l(d){e=N(d,"DIV",{class:!0});var g=P(e);t=N(g,"SPAN",{class:!0});var c=P(t);n=Y(c,"You do not have authorization to create a dataset."),c.forEach(p),i=z(g),s=N(g,"SPAN",{});var _=P(s);a=Y(_,"For HuggingFace spaces, fork this space and set "),o=N(_,"SPAN",{class:!0});var h=P(o);r=Y(h,"LILAC_AUTH_ENABLED"),h.forEach(p),u=Y(_," environment flag to 'false' from settings."),_.forEach(p),g.forEach(p),this.h()},h(){H(t,"class","mb-2"),H(o,"class","font-mono"),H(e,"class","mt-4 flex flex-col border border-neutral-100 bg-red-100 p-2")},m(d,g){V(d,e,g),S(e,t),S(t,n),S(e,i),S(e,s),S(s,a),S(s,o),S(o,r),S(s,u)},p:R,i:R,o:R,d(d){d&&p(e)}}}function Mt(l){let e,t;return e=new mt({props:{class:"py-8",$$slots:{default:[wt]},$$scope:{ctx:l}}}),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&134221055&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Rt(l){let e,t,n,i,s,a,o,r,u,d;function g(f){l[17](f)}let c={labelText:"namespace",invalid:l[5]!=null,invalidText:l[5]};l[0]!==void 0&&(c.value=l[0]),t=new re({props:c}),Z.push(()=>ne(t,"value",g));function _(f){l[18](f)}let h={labelText:"name",invalid:l[6]!=null,invalidText:l[6]};return l[1]!==void 0&&(h.value=l[1]),r=new re({props:h}),Z.push(()=>ne(r,"value",_)),{c(){e=D("div"),q(t.$$.fragment),i=U(),s=D("span"),a=K("/"),o=U(),q(r.$$.fragment),this.h()},l(f){e=N(f,"DIV",{class:!0});var b=P(e);B(t.$$.fragment,b),i=z(b),s=N(b,"SPAN",{class:!0});var v=P(s);a=Y(v,"/"),v.forEach(p),o=z(b),B(r.$$.fragment,b),b.forEach(p),this.h()},h(){H(s,"class","mx-4 mt-6 text-lg"),H(e,"class","flex flex-row content-start")},m(f,b){V(f,e,b),Q(t,e,null),S(e,i),S(e,s),S(s,a),S(e,o),Q(r,e,null),d=!0},p(f,b){const v={};b&32&&(v.invalid=f[5]!=null),b&32&&(v.invalidText=f[5]),!n&&b&1&&(n=!0,v.value=f[0],ie(()=>n=!1)),t.$set(v);const y={};b&64&&(y.invalid=f[6]!=null),b&64&&(y.invalidText=f[6]),!u&&b&2&&(u=!0,y.value=f[1],ie(()=>u=!1)),r.$set(y)},i(f){d||(k(t.$$.fragment,f),k(r.$$.fragment,f),d=!0)},o(f){T(t.$$.fragment,f),T(r.$$.fragment,f),d=!1},d(f){f&&p(e),C(t),C(r)}}}function Ut(l){let e,t;return e=new Be({props:{kind:"error",title:"Error",subtitle:l[3].error.message,hideCloseButton:!0}}),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&8&&(s.subtitle=n[3].error.message),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function zt(l){let e,t,n,i;function s(o){l[19](o)}let a={$$slots:{default:[Jt]},$$scope:{ctx:l}};return l[2]!==void 0&&(a.selected=l[2]),t=new Nt({props:a}),Z.push(()=>ne(t,"selected",s)),{c(){e=D("div"),q(t.$$.fragment)},l(o){e=N(o,"DIV",{});var r=P(e);B(t.$$.fragment,r),r.forEach(p)},m(o,r){V(o,e,r),Q(t,e,null),i=!0},p(o,r){const u={};r&134218752&&(u.$$scope={dirty:r,ctx:o}),!n&&r&4&&(n=!0,u.selected=o[2],ie(()=>n=!1)),t.$set(u)},i(o){i||(k(t.$$.fragment,o),i=!0)},o(o){T(t.$$.fragment,o),i=!1},d(o){o&&p(e),C(t)}}}function Ot(l){let e,t;return e=new Tt({}),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p:R,i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Le(l){let e,t;return e=new ft({props:{labelText:l[24],value:l[24]}}),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&1024&&(s.labelText=n[24]),i&1024&&(s.value=n[24]),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Jt(l){let e,t,n=l[10],i=[];for(let a=0;a<n.length;a+=1)i[a]=Le(Ve(l,n,a));const s=a=>T(i[a],1,1,()=>{i[a]=null});return{c(){for(let a=0;a<i.length;a+=1)i[a].c();e=w()},l(a){for(let o=0;o<i.length;o+=1)i[o].l(a);e=w()},m(a,o){for(let r=0;r<i.length;r+=1)i[r]&&i[r].m(a,o);V(a,e,o),t=!0},p(a,o){if(o&1024){n=a[10];let r;for(r=0;r<n.length;r+=1){const u=Ve(a,n,r);i[r]?(i[r].p(u,o),k(i[r],1)):(i[r]=Le(u),i[r].c(),k(i[r],1),i[r].m(e.parentNode,e))}for($(),r=n.length;r<i.length;r+=1)s(r);ee()}},i(a){if(!t){for(let o=0;o<n.length;o+=1)k(i[o]);t=!0}},o(a){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)T(i[o]);t=!1},d(a){We(i,a),a&&p(e)}}}function Kt(l){let e,t,n,i,s,a;return s=new tt({}),{c(){e=D("div"),t=D("h3"),n=K("Schema"),i=U(),q(s.$$.fragment),this.h()},l(o){e=N(o,"DIV",{class:!0});var r=P(e);t=N(r,"H3",{class:!0});var u=P(t);n=Y(u,"Schema"),u.forEach(p),i=z(r),B(s.$$.fragment,r),r.forEach(p),this.h()},h(){H(t,"class","text-lg"),H(e,"class","mt-4")},m(o,r){V(o,e,r),S(e,t),S(t,n),S(e,i),Q(s,e,null),a=!0},p:R,i(o){a||(k(s.$$.fragment,o),a=!0)},o(o){T(s.$$.fragment,o),a=!1},d(o){o&&p(e),C(s)}}}function Yt(l){let e,t;return e=new Be({props:{kind:"error",title:"Error",hideCloseButton:!0,subtitle:l[11].error.message}}),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,i){const s={};i&2048&&(s.subtitle=n[11].error.message),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function Wt(l){let e=l[2],t,n,i=Ae(l);return{c(){i.c(),t=w()},l(s){i.l(s),t=w()},m(s,a){i.m(s,a),V(s,t,a),n=!0},p(s,a){a&4&&x(e,e=s[2])?($(),T(i,1,1,R),ee(),i=Ae(s),i.c(),k(i,1),i.m(t.parentNode,t)):i.p(s,a)},i(s){n||(k(i),n=!0)},o(s){T(i),n=!1},d(s){s&&p(t),i.d(s)}}}function Ae(l){let e,t,n,i;function s(r){l[20](r)}function a(r){l[21](r)}let o={schema:l[23],hiddenProperties:["/source_name"],customComponents:l[2]==="huggingface"?{"/dataset_name":Ne,"/split":Pe,"/config_name":De}:{}};return l[7]!==void 0&&(o.value=l[7]),l[4]!==void 0&&(o.validationErrors=l[4]),e=new lt({props:o}),Z.push(()=>ne(e,"value",s)),Z.push(()=>ne(e,"validationErrors",a)),{c(){q(e.$$.fragment)},l(r){B(e.$$.fragment,r)},m(r,u){Q(e,r,u),i=!0},p(r,u){const d={};u&2048&&(d.schema=r[23]),u&4&&(d.customComponents=r[2]==="huggingface"?{"/dataset_name":Ne,"/split":Pe,"/config_name":De}:{}),!t&&u&128&&(t=!0,d.value=r[7],ie(()=>t=!1)),!n&&u&16&&(n=!0,d.validationErrors=r[4],ie(()=>n=!1)),e.$set(d)},i(r){i||(k(e.$$.fragment,r),i=!0)},o(r){T(e.$$.fragment,r),i=!1},d(r){C(e,r)}}}function Xt(l){let e,t,n,i,s,a,o;const r=[Ot,zt,Ut],u=[];function d(f,b){return f[3].isFetching?0:f[10]!=null?1:f[3].isError?2:-1}~(e=d(l))&&(t=u[e]=r[e](l));const g=[Wt,Yt,Kt],c=[];function _(f,b){return f[11].isSuccess?0:f[11].isError?1:f[11].isLoading?2:-1}function h(f,b){return b===0?Ht(f):f}return~(i=_(l))&&(s=c[i]=g[i](h(l,i))),{c(){t&&t.c(),n=U(),s&&s.c(),a=w()},l(f){t&&t.l(f),n=z(f),s&&s.l(f),a=w()},m(f,b){~e&&u[e].m(f,b),V(f,n,b),~i&&c[i].m(f,b),V(f,a,b),o=!0},p(f,b){let v=e;e=d(f),e===v?~e&&u[e].p(f,b):(t&&($(),T(u[v],1,1,()=>{u[v]=null}),ee()),~e?(t=u[e],t?t.p(f,b):(t=u[e]=r[e](f),t.c()),k(t,1),t.m(n.parentNode,n)):t=null);let y=i;i=_(f),i===y?~i&&c[i].p(h(f,i),b):(s&&($(),T(c[y],1,1,()=>{c[y]=null}),ee()),~i?(s=c[i],s?s.p(h(f,i),b):(s=c[i]=g[i](h(f,i)),s.c()),k(s,1),s.m(a.parentNode,a)):s=null)},i(f){o||(k(t),k(s),o=!0)},o(f){T(t),T(s),o=!1},d(f){~e&&u[e].d(f),f&&p(n),~i&&c[i].d(f),f&&p(a)}}}function Zt(l){let e;return{c(){e=K("Add")},l(t){e=Y(t,"Add")},m(t,n){V(t,e,n)},d(t){t&&p(e)}}}function wt(l){var o;let e,t,n,i,s,a;return e=new Se({props:{legendText:"Name",$$slots:{default:[Rt]},$$scope:{ctx:l}}}),n=new Se({props:{legendText:"Data Loader",$$slots:{default:[Xt]},$$scope:{ctx:l}}}),s=new et({props:{disabled:((o=l[4])==null?void 0:o.length)>0||l[6]!=null||l[5]!=null,$$slots:{default:[Zt]},$$scope:{ctx:l}}}),s.$on("click",l[15]),{c(){q(e.$$.fragment),t=U(),q(n.$$.fragment),i=U(),q(s.$$.fragment)},l(r){B(e.$$.fragment,r),t=z(r),B(n.$$.fragment,r),i=z(r),B(s.$$.fragment,r)},m(r,u){Q(e,r,u),V(r,t,u),Q(n,r,u),V(r,i,u),Q(s,r,u),a=!0},p(r,u){var _;const d={};u&134217827&&(d.$$scope={dirty:u,ctx:r}),e.$set(d);const g={};u&134220956&&(g.$$scope={dirty:u,ctx:r}),n.$set(g);const c={};u&112&&(c.disabled=((_=r[4])==null?void 0:_.length)>0||r[6]!=null||r[5]!=null),u&134217728&&(c.$$scope={dirty:u,ctx:r}),s.$set(c)},i(r){a||(k(e.$$.fragment,r),k(n.$$.fragment,r),k(s.$$.fragment,r),a=!0)},o(r){T(e.$$.fragment,r),T(n.$$.fragment,r),T(s.$$.fragment,r),a=!1},d(r){C(e,r),r&&p(t),C(n,r),r&&p(i),C(s,r)}}}function xt(l){let e,t,n,i,s,a,o,r;const u=[Mt,jt],d=[];function g(c,_){return c[9]?0:1}return a=g(l),o=d[a]=u[a](l),{c(){e=D("div"),t=D("div"),n=D("h2"),i=K("Add dataset"),s=U(),o.c(),this.h()},l(c){e=N(c,"DIV",{class:!0});var _=P(e);t=N(_,"DIV",{class:!0});var h=P(t);n=N(h,"H2",{});var f=P(n);i=Y(f,"Add dataset"),f.forEach(p),s=z(h),o.l(h),h.forEach(p),_.forEach(p),this.h()},h(){H(t,"class","new-form mx-auto flex h-full max-w-xl flex-col"),H(e,"class","flex h-full w-full gap-y-4 overflow-y-scroll p-4")},m(c,_){V(c,e,_),S(e,t),S(t,n),S(n,i),S(t,s),d[a].m(t,null),r=!0},p(c,_){let h=a;a=g(c),a===h?d[a].p(c,_):($(),T(d[h],1,1,()=>{d[h]=null}),ee(),o=d[a],o?o.p(c,_):(o=d[a]=u[a](c),o.c()),k(o,1),o.m(t,null))},i(c){r||(k(o),r=!0)},o(c){T(o),r=!1},d(c){c&&p(e),d[a].d()}}}function $t(l){let e,t;return e=new nt({props:{$$slots:{default:[xt]},$$scope:{ctx:l}}}),{c(){q(e.$$.fragment)},l(n){B(e.$$.fragment,n)},m(n,i){Q(e,n,i),t=!0},p(n,[i]){const s={};i&134221567&&(s.$$scope={dirty:i,ctx:n}),e.$set(s)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){C(e,n)}}}function el(l,e,t){let n,i,s,a,o,r,u,d=R,g=()=>(d(),d=ae(s,L=>t(11,u=L)),s);l.$$.on_destroy.push(()=>d());const c=Ze();se(l,c,L=>t(3,r=L));const _=we();se(l,_,L=>t(22,a=L));const h=xe();se(l,h,L=>t(16,o=L));let f="local",b="",v="huggingface",y=[],G,O,M={};function m(){y.length||a.mutate([v,{namespace:f,dataset_name:b,config:M}],{onSuccess:L=>{Xe(`/datasets/loading#${it(f,b)}/${L.task_id}`)}})}function J(L){f=L,t(0,f)}function I(L){b=L,t(1,b)}function je(L){v=L,t(2,v)}function Me(L){M=L,t(7,M),t(2,v)}function Re(L){y=L,t(4,y)}return l.$$.update=()=>{var L,ge;l.$$.dirty&8&&t(10,n=(L=r.data)==null?void 0:L.sources.filter(Ue=>Ue!=="pandas")),l.$$.dirty&65536&&t(9,i=(ge=o.data)==null?void 0:ge.access.create_dataset),l.$$.dirty&1&&(f==null||f==""?t(5,G="Enter a namespace"):f.includes("/")?t(5,G='Namespace cannot contain "/"'):t(5,G=void 0)),l.$$.dirty&2&&(b==null||b==""?t(6,O="Enter a name"):b.includes("/")?t(6,O='Name cannot contain "/"'):t(6,O=void 0)),l.$$.dirty&4&&g(t(8,s=$e(v))),l.$$.dirty&4&&t(7,M.source_name=v,M)},[f,b,v,r,y,G,O,M,s,i,n,u,c,_,h,m,o,J,I,je,Me,Re]}class ol extends te{constructor(e){super(),le(this,e,el,$t,x,{})}}export{ol as component};
lilac/web/_app/immutable/nodes/7.587ad43b.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import{S as Q,i as R,s as W,y as I,z as C,A as D,g as _,d as b,B as V,k as x,q as A,a as F,l as S,m as E,r as O,h,c as U,n as w,b as K,a0 as m,v as L,f as M,a1 as P,ac as j,e as G,a4 as X}from"../chunks/index.b333a928.js";import{P as Y}from"../chunks/Page.3051bdc4.js";import{U as Z,S as ee,af as te,a as se}from"../chunks/Commands.543935b9.js";import{g as ne}from"../chunks/settingsStore.6e7d5078.js";function H(o,t,n){const e=o.slice();return e[5]=t[n],e}function ae(o){let t,n;return t=new ee({props:{labelText:"Preferred embedding",selected:o[3].embedding,$$slots:{default:[re]},$$scope:{ctx:o}}}),t.$on("change",o[4]),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p(e,s){const c={};s&8&&(c.selected=e[3].embedding),s&260&&(c.$$scope={dirty:s,ctx:e}),t.$set(c)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function le(o){let t,n;return t=new te({}),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p:P,i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function J(o){let t,n;return t=new se({props:{value:o[5].name}}),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p(e,s){const c={};s&4&&(c.value=e[5].name),t.$set(c)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function re(o){let t,n,e=o[2].data||[],s=[];for(let a=0;a<e.length;a+=1)s[a]=J(H(o,e,a));const c=a=>b(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a<s.length;a+=1)s[a].c();t=G()},l(a){for(let r=0;r<s.length;r+=1)s[r].l(a);t=G()},m(a,r){for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(a,r);K(a,t,r),n=!0},p(a,r){if(r&4){e=a[2].data||[];let l;for(l=0;l<e.length;l+=1){const d=H(a,e,l);s[l]?(s[l].p(d,r),_(s[l],1)):(s[l]=J(d),s[l].c(),_(s[l],1),s[l].m(t.parentNode,t))}for(L(),l=e.length;l<s.length;l+=1)c(l);M()}},i(a){if(!n){for(let r=0;r<e.length;r+=1)_(s[r]);n=!0}},o(a){s=s.filter(Boolean);for(let r=0;r<s.length;r+=1)b(s[r]);n=!1},d(a){X(s,a),a&&h(t)}}}function oe(o){let t,n,e,s,c,a,r,l,d,g,f,i,v;const T=[le,ae],p=[];function q(u,$){return u[2].isFetching?0:1}return f=q(o),i=p[f]=T[f](o),{c(){t=x("div"),n=x("div"),e=x("section"),s=x("div"),c=A("Settings"),a=F(),r=x("div"),l=A(`Changes will apply to all datasets for your session. These settings are not saved
2
+ server-side.`),d=F(),g=x("div"),i.c(),this.h()},l(u){t=S(u,"DIV",{class:!0});var $=E(t);n=S($,"DIV",{class:!0});var y=E(n);e=S(y,"SECTION",{class:!0});var k=E(e);s=S(k,"DIV",{class:!0});var B=E(s);c=O(B,"Settings"),B.forEach(h),a=U(k),r=S(k,"DIV",{class:!0});var N=E(r);l=O(N,`Changes will apply to all datasets for your session. These settings are not saved
3
+ server-side.`),N.forEach(h),d=U(k),g=S(k,"DIV",{class:!0});var z=E(g);i.l(z),z.forEach(h),k.forEach(h),y.forEach(h),$.forEach(h),this.h()},h(){w(s,"class","text-lg text-gray-700"),w(r,"class","mb-4 text-sm text-gray-500"),w(g,"class","w-60"),w(e,"class","flex flex-col gap-y-1"),w(n,"class","flex flex-col gap-y-6"),w(t,"class","lilac-page flex p-8")},m(u,$){K(u,t,$),m(t,n),m(n,e),m(e,s),m(s,c),m(e,a),m(e,r),m(r,l),m(e,d),m(e,g),p[f].m(g,null),v=!0},p(u,$){let y=f;f=q(u),f===y?p[f].p(u,$):(L(),b(p[y],1,1,()=>{p[y]=null}),M(),i=p[f],i?i.p(u,$):(i=p[f]=T[f](u),i.c()),_(i,1),i.m(g,null))},i(u){v||(_(i),v=!0)},o(u){b(i),v=!1},d(u){u&&h(t),p[f].d()}}}function ce(o){let t,n;return t=new Y({props:{$$slots:{default:[oe]},$$scope:{ctx:o}}}),{c(){I(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,s){D(t,e,s),n=!0},p(e,[s]){const c={};s&268&&(c.$$scope={dirty:s,ctx:e}),t.$set(c)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){b(t.$$.fragment,e),n=!1},d(e){V(t,e)}}}function ie(o,t,n){let e,s,c,a=P,r=()=>(a(),a=j(e,i=>n(2,c=i)),e),l,d=P,g=()=>(d(),d=j(s,i=>n(3,l=i)),s);o.$$.on_destroy.push(()=>a()),o.$$.on_destroy.push(()=>d());function f(i){const v=i.target.value;s.setEmbedding(v)}return r(n(1,e=Z())),g(n(0,s=ne())),[s,e,c,l,f]}class me extends Q{constructor(t){super(),R(this,t,ie,ce,W,{})}}export{me as component};
lilac/web/_app/immutable/nodes/8.7f297acf.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{S as ke,i as we,s as re,k as V,q as Y,a as J,y as P,l as D,m as j,r as Z,h as d,c as z,z as y,n as F,G as ae,b as N,a0 as b,A as C,u as le,g as u,v as Q,d as _,f as K,B as T,o as Ie,w as ie,T as oe,U as fe,a1 as U,ac as ue,O as ce,e as me,H as Ve}from"../chunks/index.b333a928.js";import{g as De}from"../chunks/navigation.52bd9048.js";import{P as je}from"../chunks/Page.3051bdc4.js";import{B as Pe,aN as ye,at as Ce,aO as Te,aJ as Fe,aP as Oe,aQ as He,aR as Ne,av as Re,aw as qe,D as Ae,aS as Je,c as se,i as ze,d as Be}from"../chunks/Commands.543935b9.js";import{i as Me}from"../chunks/notificationsStore.46809e81.js";import{T as Ue,a as _e,b as pe,R as Ge}from"../chunks/RowItemMetadata.56f7680d.js";import{T as Se,S as Le}from"../chunks/StringSpanHighlight.0900fe94.js";import{g as Qe,s as Ke}from"../chunks/utils.2fa1092a.js";function de(s){let t,n,e;return n=new Te({props:{source:s[0].json_schema.description}}),{c(){t=V("div"),P(n.$$.fragment),this.h()},l(r){t=D(r,"DIV",{class:!0});var l=j(t);y(n.$$.fragment,l),l.forEach(d),this.h()},h(){F(t,"class","text text-base text-gray-600")},m(r,l){N(r,t,l),C(n,t,null),e=!0},p(r,l){const a={};l&1&&(a.source=r[0].json_schema.description),n.$set(a)},i(r){e||(u(n.$$.fragment,r),e=!0)},o(r){_(n.$$.fragment,r),e=!1},d(r){r&&d(t),T(n)}}}function We(s){let t;return{c(){t=Y("Compute")},l(n){t=Z(n,"Compute")},m(n,e){N(n,t,e)},d(n){n&&d(t)}}}function Xe(s){let t,n;return t=new Ue({props:{$$slots:{content:[tt],default:[Ze]},$$scope:{ctx:s}}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&8389594&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ye(s){let t,n;return t=new se({}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p:U,i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ze(s){let t,n,e,r;return t=new _e({props:{label:"Preview"}}),e=new _e({props:{label:"Raw response"}}),{c(){P(t.$$.fragment),n=J(),P(e.$$.fragment)},l(l){y(t.$$.fragment,l),n=z(l),y(e.$$.fragment,l)},m(l,a){C(t,l,a),N(l,n,a),C(e,l,a),r=!0},p:U,i(l){r||(u(t.$$.fragment,l),u(e.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),_(e.$$.fragment,l),r=!1},d(l){T(t,l),l&&d(n),T(e,l)}}}function ge(s){let t,n;return t=new Le({props:{text:s[1],row:s[6],spanPaths:s[3],valuePaths:s[7],embeddings:[]}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&2&&(l.text=e[1]),r&64&&(l.row=e[6]),r&8&&(l.spanPaths=e[3]),r&128&&(l.valuePaths=e[7]),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function $e(s){let t,n;return t=new Ge({props:{row:s[6],visibleFields:s[8]}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&64&&(l.row=e[6]),r&256&&(l.visibleFields=e[8]),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function he(s){let t,n,e;return{c(){t=V("div"),n=V("div"),e=Y(s[9]),this.h()},l(r){t=D(r,"DIV",{class:!0});var l=j(t);n=D(l,"DIV",{class:!0});var a=j(n);e=Z(a,s[9]),a.forEach(d),l.forEach(d),this.h()},h(){F(n,"class","text text-base"),F(t,"class","flex flex-row items-center")},m(r,l){N(r,t,l),b(t,n),b(n,e)},p(r,l){l&512&&le(e,r[9])},d(r){r&&d(t)}}}function xe(s){let t,n,e,r,l=s[7].length>0&&ge(s),a=s[8].length>0&&$e(s),f=s[9]!=null&&he(s);return{c(){t=V("div"),l&&l.c(),n=J(),a&&a.c(),e=J(),f&&f.c(),this.h()},l(o){t=D(o,"DIV",{class:!0});var i=j(t);l&&l.l(i),n=z(i),a&&a.l(i),e=z(i),f&&f.l(i),i.forEach(d),this.h()},h(){F(t,"class","mt-2")},m(o,i){N(o,t,i),l&&l.m(t,null),b(t,n),a&&a.m(t,null),b(t,e),f&&f.m(t,null),r=!0},p(o,i){o[7].length>0?l?(l.p(o,i),i&128&&u(l,1)):(l=ge(o),l.c(),u(l,1),l.m(t,n)):l&&(Q(),_(l,1,1,()=>{l=null}),K()),o[8].length>0?a?(a.p(o,i),i&256&&u(a,1)):(a=$e(o),a.c(),u(a,1),a.m(t,e)):a&&(Q(),_(a,1,1,()=>{a=null}),K()),o[9]!=null?f?f.p(o,i):(f=he(o),f.c(),f.m(t,null)):f&&(f.d(1),f=null)},i(o){r||(u(l),u(a),r=!0)},o(o){_(l),_(a),r=!1},d(o){o&&d(t),l&&l.d(),a&&a.d(),f&&f.d()}}}function et(s){let t,n;return t=new Se({props:{value:JSON.stringify(s[4].data.items[0],null,2),readonly:!0,rows:10,class:"mb-2 font-mono"}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&16&&(l.value=JSON.stringify(e[4].data.items[0],null,2)),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function tt(s){let t,n,e,r;return t=new pe({props:{$$slots:{default:[xe]},$$scope:{ctx:s}}}),e=new pe({props:{$$slots:{default:[et]},$$scope:{ctx:s}}}),{c(){P(t.$$.fragment),n=J(),P(e.$$.fragment)},l(l){y(t.$$.fragment,l),n=z(l),y(e.$$.fragment,l)},m(l,a){C(t,l,a),N(l,n,a),C(e,l,a),r=!0},p(l,a){const f={};a&8389578&&(f.$$scope={dirty:a,ctx:l}),t.$set(f);const o={};a&8388624&&(o.$$scope={dirty:a,ctx:l}),e.$set(o)},i(l){r||(u(t.$$.fragment,l),u(e.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),_(e.$$.fragment,l),r=!1},d(l){T(t,l),l&&d(n),T(e,l)}}}function ve(s){var H;let t,n,e,r,l,a,f,o;function i(c){s[21](c)}function g(c){s[22](c)}let m={schema:s[0].json_schema,showDescription:!1,hiddenProperties:["/signal_name"],customComponents:s[16][(H=s[0])==null?void 0:H.name]};return s[2]!==void 0&&(m.value=s[2]),s[10]!==void 0&&(m.validationErrors=s[10]),l=new Fe({props:m}),ie.push(()=>oe(l,"value",i)),ie.push(()=>oe(l,"validationErrors",g)),{c(){t=V("div"),n=V("h4"),e=Y("Signal options"),r=J(),P(l.$$.fragment)},l(c){t=D(c,"DIV",{});var $=j(t);n=D($,"H4",{});var k=j(n);e=Z(k,"Signal options"),k.forEach(d),r=z($),y(l.$$.fragment,$),$.forEach(d)},m(c,$){N(c,t,$),b(t,n),b(n,e),b(t,r),C(l,t,null),o=!0},p(c,$){var G;const k={};$&1&&(k.schema=c[0].json_schema),$&1&&(k.customComponents=c[16][(G=c[0])==null?void 0:G.name]),!a&&$&4&&(a=!0,k.value=c[2],fe(()=>a=!1)),!f&&$&1024&&(f=!0,k.validationErrors=c[10],fe(()=>f=!1)),l.$set(k)},i(c){o||(u(l.$$.fragment,c),o=!0)},o(c){_(l.$$.fragment,c),o=!1},d(c){c&&d(t),T(l)}}}function nt(s){let t,n,e,r=s[0].json_schema.title+"",l,a,f,o,i,g,m,H,c,$,k,G,O,S,I,W,B,v=s[0].json_schema.description&&de(s);m=new Se({props:{value:s[5],cols:50,placeholder:"Paste text to try the signal.",rows:6,class:"mb-2"}}),m.$on("input",s[14]),k=new Pe({props:{$$slots:{default:[We]},$$scope:{ctx:s}}}),k.$on("click",s[20]);const x=[Ye,Xe],R=[];function X(p,E){var q,h;return(q=p[4])!=null&&q.isFetching?0:p[6]!=null&&p[1]!=null&&((h=p[4])==null?void 0:h.data)!=null?1:-1}~(S=X(s))&&(I=R[S]=x[S](s));let w=s[11]&&ve(s);return{c(){t=V("div"),n=V("div"),e=V("div"),l=Y(r),a=J(),v&&v.c(),f=J(),o=V("div"),i=V("div"),g=V("div"),P(m.$$.fragment),H=J(),c=V("div"),$=V("div"),P(k.$$.fragment),G=J(),O=V("div"),I&&I.c(),W=J(),w&&w.c(),this.h()},l(p){t=D(p,"DIV",{class:!0});var E=j(t);n=D(E,"DIV",{});var q=j(n);e=D(q,"DIV",{class:!0});var h=j(e);l=Z(h,r),h.forEach(d),a=z(q),v&&v.l(q),q.forEach(d),f=z(E),o=D(E,"DIV",{class:!0});var M=j(o);i=D(M,"DIV",{class:!0});var A=j(i);g=D(A,"DIV",{});var L=j(g);y(m.$$.fragment,L),H=z(L),c=D(L,"DIV",{class:!0});var ee=j(c);$=D(ee,"DIV",{class:!0});var te=j($);y(k.$$.fragment,te),te.forEach(d),ee.forEach(d),L.forEach(d),G=z(A),O=D(A,"DIV",{class:!0});var ne=j(O);I&&I.l(ne),ne.forEach(d),W=z(A),w&&w.l(A),A.forEach(d),M.forEach(d),E.forEach(d),this.h()},h(){F(e,"class","mb-4 flex flex-row items-center text-2xl font-semibold"),F($,"class","pt-4"),F(c,"class","flex flex-row justify-between"),F(O,"class","mb-8 mt-4 border-gray-200 pt-4"),ae(O,"border-t",s[1]!=null),F(i,"class","flex w-full flex-col gap-x-8"),F(o,"class","w-full"),F(t,"class","flex h-full w-full flex-col gap-y-8 px-10")},m(p,E){N(p,t,E),b(t,n),b(n,e),b(e,l),b(n,a),v&&v.m(n,null),b(t,f),b(t,o),b(o,i),b(i,g),C(m,g,null),b(g,H),b(g,c),b(c,$),C(k,$,null),b(i,G),b(i,O),~S&&R[S].m(O,null),b(i,W),w&&w.m(i,null),B=!0},p(p,[E]){(!B||E&1)&&r!==(r=p[0].json_schema.title+"")&&le(l,r),p[0].json_schema.description?v?(v.p(p,E),E&1&&u(v,1)):(v=de(p),v.c(),u(v,1),v.m(n,null)):v&&(Q(),_(v,1,1,()=>{v=null}),K());const q={};E&32&&(q.value=p[5]),m.$set(q);const h={};E&8388608&&(h.$$scope={dirty:E,ctx:p}),k.$set(h);let M=S;S=X(p),S===M?~S&&R[S].p(p,E):(I&&(Q(),_(R[M],1,1,()=>{R[M]=null}),K()),~S?(I=R[S],I?I.p(p,E):(I=R[S]=x[S](p),I.c()),u(I,1),I.m(O,null)):I=null),(!B||E&2)&&ae(O,"border-t",p[1]!=null),p[11]?w?(w.p(p,E),E&2048&&u(w,1)):(w=ve(p),w.c(),u(w,1),w.m(i,null)):w&&(Q(),_(w,1,1,()=>{w=null}),K())},i(p){B||(u(v),u(m.$$.fragment,p),u(k.$$.fragment,p),u(I),u(w),B=!0)},o(p){_(v),_(m.$$.fragment,p),_(k.$$.fragment,p),_(I),_(w),B=!1},d(p){p&&d(t),v&&v.d(),T(m),T(k),~S&&R[S].d(),w&&w.d()}}}function lt(s,t,n){let e,r,l,a,f,o=U,i=()=>(o(),o=ue(l,h=>n(19,f=h)),l),g,m=U,H=()=>(m(),m=ue(r,h=>n(4,g=h)),r);s.$$.on_destroy.push(()=>o()),s.$$.on_destroy.push(()=>m());let{signalInfo:c}=t,{text:$=void 0}=t,k=($==null?void 0:$.trim())||"";Ie(()=>{$!=null&&I()});function G(h){n(5,k=h.target.value),n(1,O=void 0)}let O,S={};function I(){n(1,O=k)}let W,B,v,x,R,X=[];const w={concept_score:{"/namespace":Oe,"/concept_name":He,"/embedding":Ne}},p=()=>I();function E(h){S=h,n(2,S)}function q(h){X=h,n(10,X)}return s.$$set=h=>{"signalInfo"in h&&n(0,c=h.signalInfo),"text"in h&&n(17,$=h.text)},s.$$.update=()=>{var h,M;if(s.$$.dirty&131072&&$!=null&&(n(5,k=$.trim()),n(1,O=void 0)),s.$$.dirty&5&&n(18,e={...S,signal_name:c.name}),s.$$.dirty&262146&&H(n(13,r=O!=null?ye({signal:e,inputs:[O]}):null)),s.$$.dirty&262144&&i(n(12,l=Ce({signal:e}))),s.$$.dirty&524312&&(g==null?void 0:g.data)!=null&&((h=f.data)==null?void 0:h.fields)!=null){n(9,R=null);const A=g.data.items[0],L=Re(f.data.fields);n(6,W=qe(A,L));const ee=Me(L);n(3,v=ee.spanPaths),n(7,B=ee.valuePaths);const te=Ae(L);n(8,x=te.filter(ne=>!v.some(Ee=>Je(ne.path,Ee)))),te.length===0&&n(9,R=A)}s.$$.dirty&1&&n(11,a=Object.keys(((M=c==null?void 0:c.json_schema)==null?void 0:M.properties)||{}).filter(A=>A!="signal_name").length>0)},[c,O,S,v,g,k,W,B,x,R,X,a,l,r,G,I,w,$,e,f,p,E,q]}class rt extends ke{constructor(t){super(),we(this,t,lt,nt,re,{signalInfo:0,text:17})}}function st(s){let t=s[3],n,e,r=be(s);return{c(){r.c(),n=me()},l(l){r.l(l),n=me()},m(l,a){r.m(l,a),N(l,n,a),e=!0},p(l,a){a&8&&re(t,t=l[3])?(Q(),_(r,1,1,U),K(),r=be(l),r.c(),u(r,1),r.m(n.parentNode,n)):r.p(l,a)},i(l){e||(u(r),e=!0)},o(l){_(r),e=!1},d(l){l&&d(n),r.d(l)}}}function at(s){let t,n=s[1].error+"",e;return{c(){t=V("p"),e=Y(n)},l(r){t=D(r,"P",{});var l=j(t);e=Z(l,n),l.forEach(d)},m(r,l){N(r,t,l),b(t,e)},p(r,l){l&2&&n!==(n=r[1].error+"")&&le(e,n)},i:U,o:U,d(r){r&&d(t)}}}function it(s){let t,n;return t=new se({}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p:U,i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function be(s){let t,n;return t=new rt({props:{signalInfo:s[3]}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&8&&(l.signalInfo=e[3]),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function ot(s){let t,n,e,r,l;const a=[it,at,st],f=[];function o(i,g){var m,H,c;return(m=i[1])!=null&&m.isFetching?0:(H=i[1])!=null&&H.isError?1:(c=i[1])!=null&&c.isSuccess&&i[3]?2:-1}return~(e=o(s))&&(r=f[e]=a[e](s)),{c(){t=V("div"),n=V("div"),r&&r.c(),this.h()},l(i){t=D(i,"DIV",{class:!0});var g=j(t);n=D(g,"DIV",{class:!0});var m=j(n);r&&r.l(m),m.forEach(d),g.forEach(d),this.h()},h(){F(n,"class","lilac-page flex w-full"),F(t,"class","flex h-full w-full overflow-x-hidden overflow-y-scroll")},m(i,g){N(i,t,g),b(t,n),~e&&f[e].m(n,null),l=!0},p(i,g){let m=e;e=o(i),e===m?~e&&f[e].p(i,g):(r&&(Q(),_(f[m],1,1,()=>{f[m]=null}),K()),~e?(r=f[e],r?r.p(i,g):(r=f[e]=a[e](i),r.c()),u(r,1),r.m(n,null)):r=null)},i(i){l||(u(r),l=!0)},o(i){_(r),l=!1},d(i){i&&d(t),~e&&f[e].d()}}}function ft(s){let t,n;return t=new Be({props:{type:"blue",$$slots:{default:[ct]},$$scope:{ctx:s}}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,r){const l={};r&261&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function ut(s){let t,n;return t=new se({}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p:U,i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function ct(s){let t,n,e,r;return{c(){t=V("a"),n=Y(s[0]),this.h()},l(l){t=D(l,"A",{class:!0,href:!0});var a=j(t);n=Z(a,s[0]),a.forEach(d),this.h()},h(){F(t,"class","font-semibold text-black"),F(t,"href",s[2])},m(l,a){N(l,t,a),b(t,n),e||(r=Ve(t,"click",s[7]),e=!0)},p(l,a){a&1&&le(n,l[0]),a&4&&F(t,"href",l[2])},d(l){l&&d(t),e=!1,r()}}}function mt(s){let t,n,e,r;const l=[ut,ft],a=[];function f(o,i){return o[1].isFetching?0:1}return n=f(s),e=a[n]=l[n](s),{c(){t=V("div"),e.c(),this.h()},l(o){t=D(o,"DIV",{slot:!0});var i=j(t);e.l(i),i.forEach(d),this.h()},h(){F(t,"slot","header-subtext")},m(o,i){N(o,t,i),a[n].m(t,null),r=!0},p(o,i){let g=n;n=f(o),n===g?a[n].p(o,i):(Q(),_(a[g],1,1,()=>{a[g]=null}),K(),e=a[n],e?e.p(o,i):(e=a[n]=l[n](o),e.c()),u(e,1),e.m(t,null))},i(o){r||(u(e),r=!0)},o(o){_(e),r=!1},d(o){o&&d(t),a[n].d()}}}function _t(s){let t,n;return t=new je({props:{$$slots:{"header-subtext":[mt],default:[ot]},$$scope:{ctx:s}}}),{c(){P(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){C(t,e,r),n=!0},p(e,[r]){const l={};r&271&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){n||(u(t.$$.fragment,e),n=!0)},o(e){_(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function pt(s,t,n){let e,r,l,a,f;const o=Qe();ce(s,o,m=>n(6,a=m));const i=ze();ce(s,i,m=>n(1,l=m));const g=()=>De(r);return s.$$.update=()=>{var m;s.$$.dirty&65&&a.page==="signals"&&a.identifier!=null&&f!=a.identifier&&n(0,f=a.identifier),s.$$.dirty&3&&n(3,e=(m=l.data)==null?void 0:m.find(H=>H.name===f)),s.$$.dirty&1&&n(2,r=f!=null?Ke(f):"")},[f,l,r,e,o,i,a,g]}class St extends ke{constructor(t){super(),we(this,t,pt,_t,re,{})}}export{St as component};
lilac/web/_app/version.json CHANGED
@@ -1 +1 @@
1
- {"version":"1692640103907"}
 
1
+ {"version":"1692640691960"}
lilac/web/concepts.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="./_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("./_app/immutable/entry/start.6844d81c.js"),
27
- import("./_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="./_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("./_app/immutable/entry/start.222476e8.js"),
27
+ import("./_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
lilac/web/datasets.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="./_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("./_app/immutable/entry/start.6844d81c.js"),
27
- import("./_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="./_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("./_app/immutable/entry/start.222476e8.js"),
27
+ import("./_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
lilac/web/datasets/loading.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="../favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="../_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="../_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="../_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="../_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="../_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL("..", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("../_app/immutable/entry/start.6844d81c.js"),
27
- import("../_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="../favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="../_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="../_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="../_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="../_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="../_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL("..", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("../_app/immutable/entry/start.222476e8.js"),
27
+ import("../_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
lilac/web/datasets/new.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="../favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="../_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="../_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="../_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="../_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="../_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL("..", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("../_app/immutable/entry/start.6844d81c.js"),
27
- import("../_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="../favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="../_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="../_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="../_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="../_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="../_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL("..", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("../_app/immutable/entry/start.222476e8.js"),
27
+ import("../_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
lilac/web/index.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="./_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("./_app/immutable/entry/start.6844d81c.js"),
27
- import("./_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="./_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("./_app/immutable/entry/start.222476e8.js"),
27
+ import("./_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
lilac/web/settings.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="./_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("./_app/immutable/entry/start.6844d81c.js"),
27
- import("./_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="./_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("./_app/immutable/entry/start.222476e8.js"),
27
+ import("./_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
lilac/web/signals.html CHANGED
@@ -5,17 +5,17 @@
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
- <link rel="modulepreload" href="./_app/immutable/entry/start.6844d81c.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
- <link rel="modulepreload" href="./_app/immutable/chunks/singletons.6c1e5288.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
- <link rel="modulepreload" href="./_app/immutable/entry/app.573dcc56.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
- __sveltekit_rrqtp3 = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
@@ -23,8 +23,8 @@
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
- import("./_app/immutable/entry/start.6844d81c.js"),
27
- import("./_app/immutable/entry/app.573dcc56.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });
 
5
  <link rel="icon" href="./favicon.ico" />
6
  <meta name="viewport" content="width=device-width" />
7
 
8
+ <link rel="modulepreload" href="./_app/immutable/entry/start.222476e8.js">
9
  <link rel="modulepreload" href="./_app/immutable/chunks/index.b333a928.js">
10
+ <link rel="modulepreload" href="./_app/immutable/chunks/singletons.72823763.js">
11
  <link rel="modulepreload" href="./_app/immutable/chunks/index.2b0dd2f8.js">
12
+ <link rel="modulepreload" href="./_app/immutable/entry/app.7c394acf.js">
13
  </head>
14
  <body data-sveltekit-preload-data="hover" class="overflow-y-hidden">
15
  <div class="contents">
16
  <script>
17
  {
18
+ __sveltekit_1hdzqpm = {
19
  base: new URL(".", location).pathname.slice(0, -1),
20
  env: {"PUBLIC_HF_ANALYTICS":"1"}
21
  };
 
23
  const element = document.currentScript.parentElement;
24
 
25
  Promise.all([
26
+ import("./_app/immutable/entry/start.222476e8.js"),
27
+ import("./_app/immutable/entry/app.7c394acf.js")
28
  ]).then(([kit, app]) => {
29
  kit.start(app, element);
30
  });