@glycanage/web-components 1.47.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- import{c as J,S as Q,i as _,f as V,s as ee,a as le,e as w,b,d as E,g as T,t as A,h as S,j as L,k as q,o as te,l as D,m as G,n as x,p as r,q as n,r as B,u as N,v as M,w as C,x as H,y as k}from"./index2.js";import{g as se,A as R}from"./Arrow.js";function ie(f){le(f,"svelte-1285zfm",".summaryMain.svelte-1285zfm.svelte-1285zfm{padding:0 48px;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryMain.svelte-1285zfm hr.svelte-1285zfm{border:2px solid rgba(201, 219, 210, 1);border-radius:2px;margin:18px 0}.summaryMain.svelte-1285zfm h5.svelte-1285zfm{font-size:16px;margin:0}.summaryMain.svelte-1285zfm ul.svelte-1285zfm{margin-top:4px;margin-bottom:24px;font-size:14px;padding-left:20px}.summaryMain.svelte-1285zfm ul li.svelte-1285zfm:not(:first-child){margin-top:4px}.summaryHeader.svelte-1285zfm.svelte-1285zfm{width:100%;font-size:16px;line-height:115%;padding-top:32px;display:flex;align-items:center;transform:translateX(-48px)}.summaryBody.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;margin:auto}.summaryBody.svelte-1285zfm a.svelte-1285zfm{display:block;color:#E66439;font-weight:bold;font-size:12px;margin-top:12px}.summaryBody.svelte-1285zfm p.svelte-1285zfm{color:rgba(9, 52, 31, 0.80);font-size:10px;margin-top:6px}.main.svelte-1285zfm.svelte-1285zfm{height:100%;width:100%;display:flex}.label.svelte-1285zfm.svelte-1285zfm{width:30%;display:flex;align-items:center}.header.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;display:flex;align-items:center}")}function ne(f){let e,l,t,m,v,z,i=f[1]==="mature"&&j(f),p=f[1]==="median"&&O(f),u=f[1]==="youth"&&U(f),d=f[1]==="shield"&&K(f),c=f[1]==="lifestyle"&&W(f);return{c(){i&&i.c(),e=b(),p&&p.c(),l=b(),u&&u.c(),t=b(),d&&d.c(),m=b(),c&&c.c(),v=E()},m(a,s){i&&i.m(a,s),T(a,e,s),p&&p.m(a,s),T(a,l,s),u&&u.m(a,s),T(a,t,s),d&&d.m(a,s),T(a,m,s),c&&c.m(a,s),T(a,v,s),z=!0},p(a,s){a[1]==="mature"?i?(i.p(a,s),s&2&&L(i,1)):(i=j(a),i.c(),L(i,1),i.m(e.parentNode,e)):i&&(D(),A(i,1,1,()=>{i=null}),S()),a[1]==="median"?p?(p.p(a,s),s&2&&L(p,1)):(p=O(a),p.c(),L(p,1),p.m(l.parentNode,l)):p&&(D(),A(p,1,1,()=>{p=null}),S()),a[1]==="youth"?u?(u.p(a,s),s&2&&L(u,1)):(u=U(a),u.c(),L(u,1),u.m(t.parentNode,t)):u&&(D(),A(u,1,1,()=>{u=null}),S()),a[1]==="shield"?d?(d.p(a,s),s&2&&L(d,1)):(d=K(a),d.c(),L(d,1),d.m(m.parentNode,m)):d&&(D(),A(d,1,1,()=>{d=null}),S()),a[1]==="lifestyle"?c?(c.p(a,s),s&2&&L(c,1)):(c=W(a),c.c(),L(c,1),c.m(v.parentNode,v)):c&&(D(),A(c,1,1,()=>{c=null}),S())},i(a){z||(L(i),L(p),L(u),L(d),L(c),z=!0)},o(a){A(i),A(p),A(u),A(d),A(c),z=!1},d(a){a&&(q(e),q(l),q(t),q(m),q(v)),i&&i.d(a),p&&p.d(a),u&&u.d(a),d&&d.d(a),c&&c.d(a)}}}function re(f){let e,l,t,m,v,z,i=f[2]?"Major overlap":f[3]?"Some overlap":"No significant overlap",p,u,d,c,a,s;function h(g,$){return g[2]||g[3]?me:oe}let y=h(f),o=y(f);return{c(){e=w("div"),l=w("div"),t=w("div"),o.c(),m=b(),v=w("div"),z=w("b"),p=G(i),u=G(" of glycan indexes between your patient and this condition."),d=b(),c=w("hr"),a=b(),s=w("div"),s.innerHTML='<h5 class="svelte-1285zfm">Signs and symptoms</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Usually asymptomatic</li> <li class="svelte-1285zfm">Signs of coronary artery disease (e.g., self-resolving chest pain, bearthlessness)</li> <li class="svelte-1285zfm">Signs of peripheral artery disease (e.g., leg pain during activity)</li></ul> <h5 class="svelte-1285zfm">Possible follow-up</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c</li> <li class="svelte-1285zfm">BP check</li> <li class="svelte-1285zfm">ECG</li> <li class="svelte-1285zfm">Cardiology referral for other tests (e.g., coronary artery calcium score)</li></ul> <h5 class="svelte-1285zfm">Related research papers</h5> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5970566/pdf/res-122-1555.pdf" class="svelte-1285zfm">Glycosylation Profile of Immunoglobulin G Is Cross-Sectionally Associated With Cardiovascular Disease Risk Score and Subclinical Atherosclerosis in Two Independent Cohorts</a> <p class="svelte-1285zfm">In a study involving 2970 women aged 40\u201379 from the TwinsUK cohort, IgG glycosylation was examined in relation to the estimated 10-year risk of atherosclerotic cardiovascular disease and the presence of carotid and femoral plaque. A decrease in G1, G2 and S was observed, alongside an increase in G0 and B. These findings were replicated in 967 women from the ORCADES cohort (Orkney Complex Disease Study). Additionally, some of these glycan changes were also associated with 845 men in the study.</p>',x(t,"transform","translate(-50%)"),x(z,"color",f[2]||f[3]?"#F2590D":"#12A195"),r(l,"class","summaryHeader svelte-1285zfm"),r(c,"class","svelte-1285zfm"),r(s,"class","summaryBody svelte-1285zfm"),r(e,"class","summaryMain svelte-1285zfm")},m(g,$){T(g,e,$),n(e,l),n(l,t),o.m(t,null),n(l,m),n(l,v),n(v,z),n(z,p),n(v,u),n(e,d),n(e,c),n(e,a),n(e,s)},p(g,$){y!==(y=h(g))&&(o.d(1),o=y(g),o&&(o.c(),o.m(t,null))),$&12&&i!==(i=g[2]?"Major overlap":g[3]?"Some overlap":"No significant overlap")&&B(p,i),$&12&&x(z,"color",g[2]||g[3]?"#F2590D":"#12A195")},i:N,o:N,d(g){g&&q(e),o.d()}}}function ae(f){let e,l,t,m,v,z,i,p=f[2]?"Some overlap":f[3]?"Minor overlap":"No significant overlap",u;function d(s,h){return s[2]||s[3]?pe:de}let c=d(f),a=c(f);return{c(){e=w("div"),l=w("div"),t=w("b"),m=G(f[8]),v=G("/5"),z=b(),a.c(),i=G(`
1
+ import{c as J,S as Q,i as _,f as V,s as ee,a as le,e as w,b,d as E,g as T,t as A,h as S,j as L,k as q,o as te,l as D,m as G,n as x,p as r,q as n,r as B,u as N,v as M,w as C,x as H,y as k}from"./index2.js";import{g as se,A as R}from"./Arrow.js";function ie(f){le(f,"svelte-1285zfm",".summaryMain.svelte-1285zfm.svelte-1285zfm{padding:0 48px;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryMain.svelte-1285zfm hr.svelte-1285zfm{border:2px solid rgba(201, 219, 210, 1);border-radius:2px;margin:18px 0}.summaryMain.svelte-1285zfm h5.svelte-1285zfm{font-size:16px;margin:0}.summaryMain.svelte-1285zfm ul.svelte-1285zfm{margin-top:4px;margin-bottom:24px;font-size:14px;padding-left:20px}.summaryMain.svelte-1285zfm ul li.svelte-1285zfm:not(:first-child){margin-top:4px}.summaryHeader.svelte-1285zfm.svelte-1285zfm{width:100%;font-size:16px;line-height:115%;padding-top:32px;display:flex;align-items:center;transform:translateX(-48px)}.summaryBody.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;margin:auto}.summaryBody.svelte-1285zfm a.svelte-1285zfm{display:block;color:#E66439;font-weight:bold;font-size:12px;margin-top:12px}.summaryBody.svelte-1285zfm p.svelte-1285zfm{color:rgba(9, 52, 31, 0.80);font-size:10px;margin-top:6px}.main.svelte-1285zfm.svelte-1285zfm{height:100%;width:100%;display:flex}.label.svelte-1285zfm.svelte-1285zfm{width:30%;display:flex;align-items:center}.header.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;display:flex;align-items:center}")}function ne(f){let e,l,t,m,v,z,i=f[1]==="mature"&&j(f),p=f[1]==="median"&&O(f),u=f[1]==="youth"&&U(f),d=f[1]==="shield"&&K(f),c=f[1]==="lifestyle"&&W(f);return{c(){i&&i.c(),e=b(),p&&p.c(),l=b(),u&&u.c(),t=b(),d&&d.c(),m=b(),c&&c.c(),v=E()},m(a,s){i&&i.m(a,s),T(a,e,s),p&&p.m(a,s),T(a,l,s),u&&u.m(a,s),T(a,t,s),d&&d.m(a,s),T(a,m,s),c&&c.m(a,s),T(a,v,s),z=!0},p(a,s){a[1]==="mature"?i?(i.p(a,s),s&2&&L(i,1)):(i=j(a),i.c(),L(i,1),i.m(e.parentNode,e)):i&&(D(),A(i,1,1,()=>{i=null}),S()),a[1]==="median"?p?(p.p(a,s),s&2&&L(p,1)):(p=O(a),p.c(),L(p,1),p.m(l.parentNode,l)):p&&(D(),A(p,1,1,()=>{p=null}),S()),a[1]==="youth"?u?(u.p(a,s),s&2&&L(u,1)):(u=U(a),u.c(),L(u,1),u.m(t.parentNode,t)):u&&(D(),A(u,1,1,()=>{u=null}),S()),a[1]==="shield"?d?(d.p(a,s),s&2&&L(d,1)):(d=K(a),d.c(),L(d,1),d.m(m.parentNode,m)):d&&(D(),A(d,1,1,()=>{d=null}),S()),a[1]==="lifestyle"?c?(c.p(a,s),s&2&&L(c,1)):(c=W(a),c.c(),L(c,1),c.m(v.parentNode,v)):c&&(D(),A(c,1,1,()=>{c=null}),S())},i(a){z||(L(i),L(p),L(u),L(d),L(c),z=!0)},o(a){A(i),A(p),A(u),A(d),A(c),z=!1},d(a){a&&(q(e),q(l),q(t),q(m),q(v)),i&&i.d(a),p&&p.d(a),u&&u.d(a),d&&d.d(a),c&&c.d(a)}}}function re(f){let e,l,t,m,v,z,i=f[2]?"Major overlap":f[3]?"Some overlap":"No significant overlap",p,u,d,c,a,s;function h(g,$){return g[2]||g[3]?me:oe}let y=h(f),o=y(f);return{c(){e=w("div"),l=w("div"),t=w("div"),o.c(),m=b(),v=w("div"),z=w("b"),p=G(i),u=G(" of glycan indexes between your patient and this condition."),d=b(),c=w("hr"),a=b(),s=w("div"),s.innerHTML='<h5 class="svelte-1285zfm">Signs and symptoms</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Usually asymptomatic</li> <li class="svelte-1285zfm">Signs of coronary artery disease (e.g., self-resolving chest pain, breathlessness)</li> <li class="svelte-1285zfm">Signs of peripheral artery disease (e.g., leg pain during activity)</li></ul> <h5 class="svelte-1285zfm">Possible follow-up</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c</li> <li class="svelte-1285zfm">BP check</li> <li class="svelte-1285zfm">ECG</li> <li class="svelte-1285zfm">Cardiology referral for other tests (e.g., coronary artery calcium score)</li></ul> <h5 class="svelte-1285zfm">Related research papers</h5> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5970566/pdf/res-122-1555.pdf" class="svelte-1285zfm">Glycosylation Profile of Immunoglobulin G Is Cross-Sectionally Associated With Cardiovascular Disease Risk Score and Subclinical Atherosclerosis in Two Independent Cohorts</a> <p class="svelte-1285zfm">In a study involving 2970 women aged 40\u201379 from the TwinsUK cohort, IgG glycosylation was examined in relation to the estimated 10-year risk of atherosclerotic cardiovascular disease and the presence of carotid and femoral plaque. A decrease in G1, G2 and S was observed, alongside an increase in G0 and B. These findings were replicated in 967 women from the ORCADES cohort (Orkney Complex Disease Study). Additionally, some of these glycan changes were also associated with 845 men in the study.</p>',x(t,"transform","translate(-50%)"),x(z,"color",f[2]||f[3]?"#F2590D":"#12A195"),r(l,"class","summaryHeader svelte-1285zfm"),r(c,"class","svelte-1285zfm"),r(s,"class","summaryBody svelte-1285zfm"),r(e,"class","summaryMain svelte-1285zfm")},m(g,$){T(g,e,$),n(e,l),n(l,t),o.m(t,null),n(l,m),n(l,v),n(v,z),n(z,p),n(v,u),n(e,d),n(e,c),n(e,a),n(e,s)},p(g,$){y!==(y=h(g))&&(o.d(1),o=y(g),o&&(o.c(),o.m(t,null))),$&12&&i!==(i=g[2]?"Major overlap":g[3]?"Some overlap":"No significant overlap")&&B(p,i),$&12&&x(z,"color",g[2]||g[3]?"#F2590D":"#12A195")},i:N,o:N,d(g){g&&q(e),o.d()}}}function ae(f){let e,l,t,m,v,z,i,p=f[2]?"Some overlap":f[3]?"Minor overlap":"No significant overlap",u;function d(s,h){return s[2]||s[3]?pe:de}let c=d(f),a=c(f);return{c(){e=w("div"),l=w("div"),t=w("b"),m=G(f[8]),v=G("/5"),z=b(),a.c(),i=G(`
2
2
  \xA0\xA0`),u=G(p),x(l,"padding-right","10px"),r(e,"class","header svelte-1285zfm")},m(s,h){T(s,e,h),n(e,l),n(l,t),n(t,m),n(t,v),n(e,z),a.m(e,null),n(e,i),n(e,u)},p(s,h){h&256&&B(m,s[8]),c===(c=d(s))&&a?a.p(s,h):(a.d(1),a=c(s),a&&(a.c(),a.m(e,i))),h&12&&p!==(p=s[2]?"Some overlap":s[3]?"Minor overlap":"No significant overlap")&&B(u,p)},i:N,o:N,d(s){s&&q(e),a.d()}}}function j(f){let e,l,t,m,v,z,i,p,u,d,c,a,s,h,y;return h=new R({props:{type:"right",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),m=M("path"),z=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Mature (G0)</b>",u=b(),d=w("div"),c=G(f[6]),a=b(),s=w("div"),C(h.$$.fragment),r(m,"fill",v=f[7]<=68?"#12A195":"#F2590D"),r(m,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),n(e,l),n(l,t),n(t,m),n(l,z),n(l,i),n(i,p),n(i,u),n(i,d),n(d,c),n(e,a),n(e,s),H(h,s,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]<=68?"#12A195":"#F2590D"))&&r(m,"fill",v),(!y||g&64)&&B(c,o[6]);const $={};g&128&&($.percentile=o[7]),h.$set($)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){A(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function O(f){let e,l,t,m,v,z,i,p,u,d,c,a,s,h,y;return h=new R({props:{type:"left",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),m=M("path"),z=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Median (G1)</b>",u=b(),d=w("div"),c=G(f[6]),a=b(),s=w("div"),C(h.$$.fragment),r(m,"fill",v=f[7]>=32?"#12A195":"#F2590D"),r(m,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),n(e,l),n(l,t),n(t,m),n(l,z),n(l,i),n(i,p),n(i,u),n(i,d),n(d,c),n(e,a),n(e,s),H(h,s,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]>=32?"#12A195":"#F2590D"))&&r(m,"fill",v),(!y||g&64)&&B(c,o[6]);const $={};g&128&&($.percentile=o[7]),h.$set($)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){A(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function U(f){let e,l,t,m,v,z,i,p,u,d,c,a,s,h,y;return h=new R({props:{type:"left",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),m=M("path"),z=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Youth (G2)</b>",u=b(),d=w("div"),c=G(f[6]),a=b(),s=w("div"),C(h.$$.fragment),r(m,"fill",v=f[7]>=32?"#12A195":"#F2590D"),r(m,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),n(e,l),n(l,t),n(t,m),n(l,z),n(l,i),n(i,p),n(i,u),n(i,d),n(d,c),n(e,a),n(e,s),H(h,s,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]>=32?"#12A195":"#F2590D"))&&r(m,"fill",v),(!y||g&64)&&B(c,o[6]);const $={};g&128&&($.percentile=o[7]),h.$set($)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){A(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function K(f){let e,l,t,m,v,z,i,p,u,d,c,a,s,h,y;return h=new R({props:{type:"left",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),m=M("path"),z=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Shield (S)</b>",u=b(),d=w("div"),c=G(f[6]),a=b(),s=w("div"),C(h.$$.fragment),r(m,"fill",v=f[7]>=32?"#12A195":"#F2590D"),r(m,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),n(e,l),n(l,t),n(t,m),n(l,z),n(l,i),n(i,p),n(i,u),n(i,d),n(d,c),n(e,a),n(e,s),H(h,s,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]>=32?"#12A195":"#F2590D"))&&r(m,"fill",v),(!y||g&64)&&B(c,o[6]);const $={};g&128&&($.percentile=o[7]),h.$set($)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){A(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function W(f){let e,l,t,m,v,z,i,p,u,d,c,a,s,h,y;return h=new R({props:{type:"right",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),m=M("path"),z=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Lifestyle (B)</b>",u=b(),d=w("div"),c=G(f[6]),a=b(),s=w("div"),C(h.$$.fragment),r(m,"fill",v=f[7]<=68?"#12A195":"#F2590D"),r(m,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),n(e,l),n(l,t),n(t,m),n(l,z),n(l,i),n(i,p),n(i,u),n(i,d),n(d,c),n(e,a),n(e,s),H(h,s,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]<=68?"#12A195":"#F2590D"))&&r(m,"fill",v),(!y||g&64)&&B(c,o[6]);const $={};g&128&&($.percentile=o[7]),h.$set($)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){A(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function oe(f){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,m){T(t,e,m),n(e,l)},d(t){t&&q(e)}}}function me(f){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#F2590D"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,m){T(t,e,m),n(e,l)},d(t){t&&q(e)}}}function de(f){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(t,m){T(t,e,m),n(e,l)},p:N,d(t){t&&q(e)}}}function pe(f){let e,l,t;return{c(){e=M("svg"),l=M("path"),r(l,"fill",t=f[3]?"#FFAA00":"#F2590D"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(m,v){T(m,e,v),n(e,l)},p(m,v){v&8&&t!==(t=m[3]?"#FFAA00":"#F2590D")&&r(l,"fill",t)},d(m){m&&q(e)}}}function ce(f){let e,l,t,m,v,z;const i=[ae,re,ne],p=[];function u(d,c){return d[0]==="header"&&d[5]?0:d[0]==="summary"&&d[4]?1:2}return t=u(f),m=p[t]=i[t](f),{c(){e=w("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',l=b(),m.c(),v=E()},m(d,c){T(d,e,c),T(d,l,c),p[t].m(d,c),T(d,v,c),z=!0},p(d,[c]){let a=t;t=u(d),t===a?p[t].p(d,c):(D(),A(p[a],1,1,()=>{p[a]=null}),S(),m=p[t],m?m.p(d,c):(m=p[t]=i[t](d),m.c()),L(m,1),m.m(v.parentNode,v))},i(d){z||(L(m),z=!0)},o(d){A(m),z=!1},d(d){d&&(q(e),q(l),q(v)),p[t].d(d)}}}function fe(f,e,l){let{report:t}=e,{type:m}=e,{subtype:v}=e,{service:z=window.GaReportService}=e,i=[{name:"mature",csvName:"G0percentile"},{name:"median",csvName:"G1percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],p,u=!1,d=!1,c=!1,a=!1,s="",h=0,y=0,o=0,g=0,$=0,I=0,Z=0;function Y(){h>68&&l(8,Z++,Z),y<32&&l(8,Z++,Z),o<32&&l(8,Z++,Z),g<32&&l(8,Z++,Z),$>68&&l(8,Z++,Z)}const P=i.find(F=>F.name===v);return te(async()=>{p=await z.getReport(t),P&&(l(7,I=Number(p[P.csvName])),l(6,s=se(I))),h=Number(p.G0percentile),y=Number(p.G1percentile),o=Number(p.G2percentile),g=Number(p.Spercentile),$=Number(p.Bpercentile),Y(),Z===5&&l(2,u=!0),Z>2&&Z<5&&l(3,d=!0),l(5,a=!0),l(4,c=!0)}),f.$$set=F=>{"report"in F&&l(9,t=F.report),"type"in F&&l(0,m=F.type),"subtype"in F&&l(1,v=F.subtype),"service"in F&&l(10,z=F.service)},[m,v,u,d,c,a,s,I,Z,t,z]}class X extends Q{constructor(e){super(),_(this,e,fe,ce,ee,{report:9,type:0,subtype:1,service:10},ie)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),V()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),V()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),V()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),V()}}customElements.define("ga-atherosclerosis",J(X,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{X as default};
@@ -0,0 +1,2 @@
1
+ import{c as Q,S as U,i as W,f as V,s as ee,a as le,e as w,b,d as j,g as T,t as G,h as D,j as L,k as q,o as te,l as A,m as Z,n as z,p as a,q as n,r as B,u as C,v as M,w as S,x as I,y as H}from"./index2.js";import{g as se,A as R}from"./Arrow.js";function ie(h){le(h,"svelte-1285zfm",".summaryMain.svelte-1285zfm.svelte-1285zfm{padding:0 48px;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryMain.svelte-1285zfm hr.svelte-1285zfm{border:2px solid rgba(201, 219, 210, 1);border-radius:2px;margin:18px 0}.summaryMain.svelte-1285zfm h5.svelte-1285zfm{font-size:16px;margin:0}.summaryMain.svelte-1285zfm ul.svelte-1285zfm{margin-top:4px;margin-bottom:24px;font-size:14px;padding-left:20px}.summaryMain.svelte-1285zfm ul li.svelte-1285zfm:not(:first-child){margin-top:4px}.summaryHeader.svelte-1285zfm.svelte-1285zfm{width:100%;font-size:16px;line-height:115%;padding-top:32px;display:flex;align-items:center;transform:translateX(-48px)}.summaryBody.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;margin:auto}.summaryBody.svelte-1285zfm a.svelte-1285zfm{display:block;color:#E66439;font-weight:bold;font-size:12px;margin-top:12px}.summaryBody.svelte-1285zfm p.svelte-1285zfm{color:rgba(9, 52, 31, 0.80);font-size:10px;margin-top:6px}.main.svelte-1285zfm.svelte-1285zfm{height:100%;width:100%;display:flex}.label.svelte-1285zfm.svelte-1285zfm{width:30%;display:flex;align-items:center}.header.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;display:flex;align-items:center}")}function ne(h){let e,l,t,o,d,x,i=h[1]==="mature"&&E(h),p=h[1]==="median"&&P(h),u=h[1]==="youth"&&O(h),c=h[1]==="shield"&&X(h),f=h[1]==="lifestyle"&&Y(h);return{c(){i&&i.c(),e=b(),p&&p.c(),l=b(),u&&u.c(),t=b(),c&&c.c(),o=b(),f&&f.c(),d=j()},m(r,s){i&&i.m(r,s),T(r,e,s),p&&p.m(r,s),T(r,l,s),u&&u.m(r,s),T(r,t,s),c&&c.m(r,s),T(r,o,s),f&&f.m(r,s),T(r,d,s),x=!0},p(r,s){r[1]==="mature"?i?(i.p(r,s),s&2&&L(i,1)):(i=E(r),i.c(),L(i,1),i.m(e.parentNode,e)):i&&(A(),G(i,1,1,()=>{i=null}),D()),r[1]==="median"?p?(p.p(r,s),s&2&&L(p,1)):(p=P(r),p.c(),L(p,1),p.m(l.parentNode,l)):p&&(A(),G(p,1,1,()=>{p=null}),D()),r[1]==="youth"?u?(u.p(r,s),s&2&&L(u,1)):(u=O(r),u.c(),L(u,1),u.m(t.parentNode,t)):u&&(A(),G(u,1,1,()=>{u=null}),D()),r[1]==="shield"?c?(c.p(r,s),s&2&&L(c,1)):(c=X(r),c.c(),L(c,1),c.m(o.parentNode,o)):c&&(A(),G(c,1,1,()=>{c=null}),D()),r[1]==="lifestyle"?f?(f.p(r,s),s&2&&L(f,1)):(f=Y(r),f.c(),L(f,1),f.m(d.parentNode,d)):f&&(A(),G(f,1,1,()=>{f=null}),D())},i(r){x||(L(i),L(p),L(u),L(c),L(f),x=!0)},o(r){G(i),G(p),G(u),G(c),G(f),x=!1},d(r){r&&(q(e),q(l),q(t),q(o),q(d)),i&&i.d(r),p&&p.d(r),u&&u.d(r),c&&c.d(r),f&&f.d(r)}}}function ae(h){let e,l,t,o,d,x,i=h[2]?"Major overlap":h[3]?"Some overlap":"No significant overlap",p,u,c,f,r,s;function v(g,$){return g[2]||g[3]?oe:me}let y=v(h),m=y(h);return{c(){e=w("div"),l=w("div"),t=w("div"),m.c(),o=b(),d=w("div"),x=w("b"),p=Z(i),u=Z(" of glycan indexes between your patient and this condition."),c=b(),f=w("hr"),r=b(),s=w("div"),s.innerHTML='<h5 class="svelte-1285zfm">Signs and symptoms</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Abdominal discomfort</li> <li class="svelte-1285zfm">Rectal bleeding or blood in stool</li> <li class="svelte-1285zfm">Changes in bowel habits</li></ul> <h5 class="svelte-1285zfm">Possible follow-up</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Stool-based tests: these tests can detect blood or certain DNA mutations in the stool that may indicate cancer</li> <li class="svelte-1285zfm">Colonoscopy</li> <li class="svelte-1285zfm">CT colonography</li></ul> <h5 class="svelte-1285zfm">Related research papers</h5> <a href="https://pubmed.ncbi.nlm.nih.gov/33599092/" class="svelte-1285zfm">Revealing the changes of IgG subclass-specific N-glycosylation in colorectal cancer progression by high-throughput assay</a> <p class="svelte-1285zfm">Through the simple and high-throughput procedures, this study revealed the important role of IgG glycopeptides in the premature pathology of CRC.</p> <a href="https://pubmed.ncbi.nlm.nih.gov/31846768/" class="svelte-1285zfm">Comprehensive analysis of human IgG Fc N-glycopeptides and construction of a screening model for colorectal cancer</a> <p class="svelte-1285zfm">By using the IgG N-glycopeptide enrichment method and screening model designed in this study, early large-scale colorectal cancer screening can be implemented easily and fast.</p> <a href="https://pubmed.ncbi.nlm.nih.gov/27302279/" class="svelte-1285zfm">Glycosylation of plasma IgG in colorectal cancer prognosis</a> <p class="svelte-1285zfm">This study demonstrates the potential value of Immunoglobulin G (IgG) glycosylation as a novel prognostic biomarker of colorectal cancer (CRC).</p> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5860729/" class="svelte-1285zfm">Immunoglobulin G glycome in colorectal cancer</a> <p class="svelte-1285zfm">This study compares IgG glycosylation in 760 patients with colorectal cancer (CRC) with that in 538 age and sex matched healthy controls.</p>',z(t,"transform","translate(-50%)"),z(x,"color",h[2]||h[3]?"#F2590D":"#12A195"),a(l,"class","summaryHeader svelte-1285zfm"),a(f,"class","svelte-1285zfm"),a(s,"class","summaryBody svelte-1285zfm"),a(e,"class","summaryMain svelte-1285zfm")},m(g,$){T(g,e,$),n(e,l),n(l,t),m.m(t,null),n(l,o),n(l,d),n(d,x),n(x,p),n(d,u),n(e,c),n(e,f),n(e,r),n(e,s)},p(g,$){y!==(y=v(g))&&(m.d(1),m=y(g),m&&(m.c(),m.m(t,null))),$&12&&i!==(i=g[2]?"Major overlap":g[3]?"Some overlap":"No significant overlap")&&B(p,i),$&12&&z(x,"color",g[2]||g[3]?"#F2590D":"#12A195")},i:C,o:C,d(g){g&&q(e),m.d()}}}function re(h){let e,l,t,o,d,x,i,p=h[2]?"Some overlap":h[3]?"Minor overlap":"No significant overlap",u;function c(s,v){return s[2]||s[3]?pe:ce}let f=c(h),r=f(h);return{c(){e=w("div"),l=w("div"),t=w("b"),o=Z(h[8]),d=Z("/5"),x=b(),r.c(),i=Z(`
2
+ \xA0\xA0`),u=Z(p),z(l,"padding-right","10px"),a(e,"class","header svelte-1285zfm")},m(s,v){T(s,e,v),n(e,l),n(l,t),n(t,o),n(t,d),n(e,x),r.m(e,null),n(e,i),n(e,u)},p(s,v){v&256&&B(o,s[8]),f===(f=c(s))&&r?r.p(s,v):(r.d(1),r=f(s),r&&(r.c(),r.m(e,i))),v&12&&p!==(p=s[2]?"Some overlap":s[3]?"Minor overlap":"No significant overlap")&&B(u,p)},i:C,o:C,d(s){s&&q(e),r.d()}}}function E(h){let e,l,t,o,d,x,i,p,u,c,f,r,s,v,y;return v=new R({props:{type:"right",percentile:h[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),x=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Mature (G0)</b>",u=b(),c=w("div"),f=Z(h[6]),r=b(),s=w("div"),S(v.$$.fragment),a(o,"fill",d=h[7]<=68?"#12A195":"#F2590D"),a(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),z(i,"display","flex"),z(i,"flex-direction","column"),z(i,"padding-left","0.3rem"),a(l,"class","label svelte-1285zfm"),z(l,"font-size","0.8rem"),z(s,"width","70%"),z(s,"display","flex"),z(s,"align-items","center"),a(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,x),n(l,i),n(i,p),n(i,u),n(i,c),n(c,f),n(e,r),n(e,s),I(v,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]<=68?"#12A195":"#F2590D"))&&a(o,"fill",d),(!y||g&64)&&B(f,m[6]);const $={};g&128&&($.percentile=m[7]),v.$set($)},i(m){y||(L(v.$$.fragment,m),y=!0)},o(m){G(v.$$.fragment,m),y=!1},d(m){m&&q(e),H(v)}}}function P(h){let e,l,t,o,d,x,i,p,u,c,f,r,s,v,y;return v=new R({props:{type:"left",percentile:h[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),x=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Median (G1)</b>",u=b(),c=w("div"),f=Z(h[6]),r=b(),s=w("div"),S(v.$$.fragment),a(o,"fill",d=h[7]>=32?"#12A195":"#F2590D"),a(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),z(i,"display","flex"),z(i,"flex-direction","column"),z(i,"padding-left","0.3rem"),a(l,"class","label svelte-1285zfm"),z(l,"font-size","0.8rem"),z(s,"width","70%"),z(s,"display","flex"),z(s,"align-items","center"),a(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,x),n(l,i),n(i,p),n(i,u),n(i,c),n(c,f),n(e,r),n(e,s),I(v,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]>=32?"#12A195":"#F2590D"))&&a(o,"fill",d),(!y||g&64)&&B(f,m[6]);const $={};g&128&&($.percentile=m[7]),v.$set($)},i(m){y||(L(v.$$.fragment,m),y=!0)},o(m){G(v.$$.fragment,m),y=!1},d(m){m&&q(e),H(v)}}}function O(h){let e,l,t,o,d,x,i,p,u,c,f,r,s,v,y;return v=new R({props:{type:"left",percentile:h[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),x=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Youth (G2)</b>",u=b(),c=w("div"),f=Z(h[6]),r=b(),s=w("div"),S(v.$$.fragment),a(o,"fill",d=h[7]>=32?"#12A195":"#F2590D"),a(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),z(i,"display","flex"),z(i,"flex-direction","column"),z(i,"padding-left","0.3rem"),a(l,"class","label svelte-1285zfm"),z(l,"font-size","0.8rem"),z(s,"width","70%"),z(s,"display","flex"),z(s,"align-items","center"),a(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,x),n(l,i),n(i,p),n(i,u),n(i,c),n(c,f),n(e,r),n(e,s),I(v,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]>=32?"#12A195":"#F2590D"))&&a(o,"fill",d),(!y||g&64)&&B(f,m[6]);const $={};g&128&&($.percentile=m[7]),v.$set($)},i(m){y||(L(v.$$.fragment,m),y=!0)},o(m){G(v.$$.fragment,m),y=!1},d(m){m&&q(e),H(v)}}}function X(h){let e,l,t,o,d,x,i,p,u,c,f,r,s,v,y;return v=new R({props:{type:"left",percentile:h[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),x=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Shield (S)</b>",u=b(),c=w("div"),f=Z(h[6]),r=b(),s=w("div"),S(v.$$.fragment),a(o,"fill",d=h[7]>=32?"#12A195":"#F2590D"),a(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),z(i,"display","flex"),z(i,"flex-direction","column"),z(i,"padding-left","0.3rem"),a(l,"class","label svelte-1285zfm"),z(l,"font-size","0.8rem"),z(s,"width","70%"),z(s,"display","flex"),z(s,"align-items","center"),a(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,x),n(l,i),n(i,p),n(i,u),n(i,c),n(c,f),n(e,r),n(e,s),I(v,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]>=32?"#12A195":"#F2590D"))&&a(o,"fill",d),(!y||g&64)&&B(f,m[6]);const $={};g&128&&($.percentile=m[7]),v.$set($)},i(m){y||(L(v.$$.fragment,m),y=!0)},o(m){G(v.$$.fragment,m),y=!1},d(m){m&&q(e),H(v)}}}function Y(h){let e,l,t,o,d,x,i,p,u,c,f,r,s,v,y;return v=new R({props:{type:"right",percentile:h[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),x=b(),i=w("div"),p=w("div"),p.innerHTML="Glycan <b>Lifestyle (B)</b>",u=b(),c=w("div"),f=Z(h[6]),r=b(),s=w("div"),S(v.$$.fragment),a(o,"fill",d=h[7]<=68?"#12A195":"#F2590D"),a(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"width","24"),a(t,"height","24"),a(t,"viewBox","0 0 24 24"),z(i,"display","flex"),z(i,"flex-direction","column"),z(i,"padding-left","0.3rem"),a(l,"class","label svelte-1285zfm"),z(l,"font-size","0.8rem"),z(s,"width","70%"),z(s,"display","flex"),z(s,"align-items","center"),a(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,x),n(l,i),n(i,p),n(i,u),n(i,c),n(c,f),n(e,r),n(e,s),I(v,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]<=68?"#12A195":"#F2590D"))&&a(o,"fill",d),(!y||g&64)&&B(f,m[6]);const $={};g&128&&($.percentile=m[7]),v.$set($)},i(m){y||(L(v.$$.fragment,m),y=!0)},o(m){G(v.$$.fragment,m),y=!1},d(m){m&&q(e),H(v)}}}function me(h){let e,l;return{c(){e=M("svg"),l=M("path"),a(l,"fill","#12A195"),a(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","50"),a(e,"height","50"),a(e,"viewBox","0 0 24 24")},m(t,o){T(t,e,o),n(e,l)},d(t){t&&q(e)}}}function oe(h){let e,l;return{c(){e=M("svg"),l=M("path"),a(l,"fill","#F2590D"),a(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","50"),a(e,"height","50"),a(e,"viewBox","0 0 24 24")},m(t,o){T(t,e,o),n(e,l)},d(t){t&&q(e)}}}function ce(h){let e,l;return{c(){e=M("svg"),l=M("path"),a(l,"fill","#12A195"),a(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","24"),a(e,"height","24"),a(e,"viewBox","0 0 24 24")},m(t,o){T(t,e,o),n(e,l)},p:C,d(t){t&&q(e)}}}function pe(h){let e,l,t;return{c(){e=M("svg"),l=M("path"),a(l,"fill",t=h[3]?"#FFAA00":"#F2590D"),a(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","24"),a(e,"height","24"),a(e,"viewBox","0 0 24 24")},m(o,d){T(o,e,d),n(e,l)},p(o,d){d&8&&t!==(t=o[3]?"#FFAA00":"#F2590D")&&a(l,"fill",t)},d(o){o&&q(e)}}}function fe(h){let e,l,t,o,d,x;const i=[re,ae,ne],p=[];function u(c,f){return c[0]==="header"&&c[5]?0:c[0]==="summary"&&c[4]?1:2}return t=u(h),o=p[t]=i[t](h),{c(){e=w("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',l=b(),o.c(),d=j()},m(c,f){T(c,e,f),T(c,l,f),p[t].m(c,f),T(c,d,f),x=!0},p(c,[f]){let r=t;t=u(c),t===r?p[t].p(c,f):(A(),G(p[r],1,1,()=>{p[r]=null}),D(),o=p[t],o?o.p(c,f):(o=p[t]=i[t](c),o.c()),L(o,1),o.m(d.parentNode,d))},i(c){x||(L(o),x=!0)},o(c){G(o),x=!1},d(c){c&&(q(e),q(l),q(d)),p[t].d(c)}}}function he(h,e,l){let{report:t}=e,{type:o}=e,{subtype:d}=e,{service:x=window.GaReportService}=e,i=[{name:"mature",csvName:"G0percentile"},{name:"median",csvName:"G1percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],p,u=!1,c=!1,f=!1,r=!1,s="",v=0,y=0,m=0,g=0,$=0,_=0,N=0;function K(){v>68&&l(8,N++,N),y<32&&l(8,N++,N),m<32&&l(8,N++,N),g<32&&l(8,N++,N),$>68&&l(8,N++,N)}const k=i.find(F=>F.name===d);return te(async()=>{p=await x.getReport(t),k&&(l(7,_=Number(p[k.csvName])),l(6,s=se(_))),v=Number(p.G0percentile),y=Number(p.G1percentile),m=Number(p.G2percentile),g=Number(p.Spercentile),$=Number(p.Bpercentile),K(),N===5&&l(2,u=!0),N>2&&N<5&&l(3,c=!0),l(5,r=!0),l(4,f=!0)}),h.$$set=F=>{"report"in F&&l(9,t=F.report),"type"in F&&l(0,o=F.type),"subtype"in F&&l(1,d=F.subtype),"service"in F&&l(10,x=F.service)},[o,d,u,c,f,r,s,_,N,t,x]}class J extends U{constructor(e){super(),W(this,e,he,fe,ee,{report:9,type:0,subtype:1,service:10},ie)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),V()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),V()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),V()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),V()}}customElements.define("ga-colorectal",Q(J,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{J as default};
@@ -0,0 +1,2 @@
1
+ import{c as K,S as Q,i as W,f as E,s as ee,a as le,e as w,b as $,d as R,g as T,t as Z,h as D,j as L,k as q,o as te,l as S,m as A,n as x,p as r,q as n,r as B,u as F,v as M,w as H,x as C,y as V}from"./index2.js";import{g as se,A as _}from"./Arrow.js";function ie(v){le(v,"svelte-1285zfm",".summaryMain.svelte-1285zfm.svelte-1285zfm{padding:0 48px;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryMain.svelte-1285zfm hr.svelte-1285zfm{border:2px solid rgba(201, 219, 210, 1);border-radius:2px;margin:18px 0}.summaryMain.svelte-1285zfm h5.svelte-1285zfm{font-size:16px;margin:0}.summaryMain.svelte-1285zfm ul.svelte-1285zfm{margin-top:4px;margin-bottom:24px;font-size:14px;padding-left:20px}.summaryMain.svelte-1285zfm ul li.svelte-1285zfm:not(:first-child){margin-top:4px}.summaryHeader.svelte-1285zfm.svelte-1285zfm{width:100%;font-size:16px;line-height:115%;padding-top:32px;display:flex;align-items:center;transform:translateX(-48px)}.summaryBody.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;margin:auto}.summaryBody.svelte-1285zfm a.svelte-1285zfm{display:block;color:#E66439;font-weight:bold;font-size:12px;margin-top:12px}.summaryBody.svelte-1285zfm p.svelte-1285zfm{color:rgba(9, 52, 31, 0.80);font-size:10px;margin-top:6px}.main.svelte-1285zfm.svelte-1285zfm{height:100%;width:100%;display:flex}.label.svelte-1285zfm.svelte-1285zfm{width:30%;display:flex;align-items:center}.header.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;display:flex;align-items:center}")}function ne(v){let e,l,t,o,d,z,i=v[1]==="mature"&&j(v),c=v[1]==="median"&&I(v),u=v[1]==="youth"&&U(v),p=v[1]==="shield"&&O(v),f=v[1]==="lifestyle"&&X(v);return{c(){i&&i.c(),e=$(),c&&c.c(),l=$(),u&&u.c(),t=$(),p&&p.c(),o=$(),f&&f.c(),d=R()},m(a,s){i&&i.m(a,s),T(a,e,s),c&&c.m(a,s),T(a,l,s),u&&u.m(a,s),T(a,t,s),p&&p.m(a,s),T(a,o,s),f&&f.m(a,s),T(a,d,s),z=!0},p(a,s){a[1]==="mature"?i?(i.p(a,s),s&2&&L(i,1)):(i=j(a),i.c(),L(i,1),i.m(e.parentNode,e)):i&&(S(),Z(i,1,1,()=>{i=null}),D()),a[1]==="median"?c?(c.p(a,s),s&2&&L(c,1)):(c=I(a),c.c(),L(c,1),c.m(l.parentNode,l)):c&&(S(),Z(c,1,1,()=>{c=null}),D()),a[1]==="youth"?u?(u.p(a,s),s&2&&L(u,1)):(u=U(a),u.c(),L(u,1),u.m(t.parentNode,t)):u&&(S(),Z(u,1,1,()=>{u=null}),D()),a[1]==="shield"?p?(p.p(a,s),s&2&&L(p,1)):(p=O(a),p.c(),L(p,1),p.m(o.parentNode,o)):p&&(S(),Z(p,1,1,()=>{p=null}),D()),a[1]==="lifestyle"?f?(f.p(a,s),s&2&&L(f,1)):(f=X(a),f.c(),L(f,1),f.m(d.parentNode,d)):f&&(S(),Z(f,1,1,()=>{f=null}),D())},i(a){z||(L(i),L(c),L(u),L(p),L(f),z=!0)},o(a){Z(i),Z(c),Z(u),Z(p),Z(f),z=!1},d(a){a&&(q(e),q(l),q(t),q(o),q(d)),i&&i.d(a),c&&c.d(a),u&&u.d(a),p&&p.d(a),f&&f.d(a)}}}function re(v){let e,l,t,o,d,z,i=v[2]?"Major overlap":v[3]?"Some overlap":"No significant overlap",c,u,p,f,a,s;function h(g,b){return g[2]||g[3]?oe:me}let y=h(v),m=y(v);return{c(){e=w("div"),l=w("div"),t=w("div"),m.c(),o=$(),d=w("div"),z=w("b"),c=A(i),u=A(" of glycan indexes between your patient and this condition."),p=$(),f=w("hr"),a=$(),s=w("div"),s.innerHTML='<h5 class="svelte-1285zfm">Signs and symptoms</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Abnormal vaginal bleeding</li> <li class="svelte-1285zfm">Pelvic pain</li> <li class="svelte-1285zfm">Unintended weight loss</li></ul> <h5 class="svelte-1285zfm">Possible follow-up</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Transvaginal ultrasound</li> <li class="svelte-1285zfm">Endometrial biopsy</li> <li class="svelte-1285zfm">Computed tomography (CT) scan</li></ul> <h5 class="svelte-1285zfm">Related research papers</h5> <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7333120/" class="svelte-1285zfm">Serum immunoglobulin G N-glycome: a potential biomarker in endometrial cancer</a> <p class="svelte-1285zfm">A total of 94 EC patients and 112 healthy females were recruited and sorted into an EC cohort and a control cohort. Serum samples were obtained from every participant, and IgG N-glycome profiling was conducted using ultra-performance liquid chromatography (UPLC).</p>',x(t,"transform","translate(-50%)"),x(z,"color",v[2]||v[3]?"#F2590D":"#12A195"),r(l,"class","summaryHeader svelte-1285zfm"),r(f,"class","svelte-1285zfm"),r(s,"class","summaryBody svelte-1285zfm"),r(e,"class","summaryMain svelte-1285zfm")},m(g,b){T(g,e,b),n(e,l),n(l,t),m.m(t,null),n(l,o),n(l,d),n(d,z),n(z,c),n(d,u),n(e,p),n(e,f),n(e,a),n(e,s)},p(g,b){y!==(y=h(g))&&(m.d(1),m=y(g),m&&(m.c(),m.m(t,null))),b&12&&i!==(i=g[2]?"Major overlap":g[3]?"Some overlap":"No significant overlap")&&B(c,i),b&12&&x(z,"color",g[2]||g[3]?"#F2590D":"#12A195")},i:F,o:F,d(g){g&&q(e),m.d()}}}function ae(v){let e,l,t,o,d,z,i,c=v[2]?"Some overlap":v[3]?"Minor overlap":"No significant overlap",u;function p(s,h){return s[2]||s[3]?ce:pe}let f=p(v),a=f(v);return{c(){e=w("div"),l=w("div"),t=w("b"),o=A(v[8]),d=A("/5"),z=$(),a.c(),i=A(`
2
+ \xA0\xA0`),u=A(c),x(l,"padding-right","10px"),r(e,"class","header svelte-1285zfm")},m(s,h){T(s,e,h),n(e,l),n(l,t),n(t,o),n(t,d),n(e,z),a.m(e,null),n(e,i),n(e,u)},p(s,h){h&256&&B(o,s[8]),f===(f=p(s))&&a?a.p(s,h):(a.d(1),a=f(s),a&&(a.c(),a.m(e,i))),h&12&&c!==(c=s[2]?"Some overlap":s[3]?"Minor overlap":"No significant overlap")&&B(u,c)},i:F,o:F,d(s){s&&q(e),a.d()}}}function j(v){let e,l,t,o,d,z,i,c,u,p,f,a,s,h,y;return h=new _({props:{type:"right",percentile:v[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),z=$(),i=w("div"),c=w("div"),c.innerHTML="Glycan <b>Mature (G0)</b>",u=$(),p=w("div"),f=A(v[6]),a=$(),s=w("div"),H(h.$$.fragment),r(o,"fill",d=v[7]<=68?"#12A195":"#F2590D"),r(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,z),n(l,i),n(i,c),n(i,u),n(i,p),n(p,f),n(e,a),n(e,s),C(h,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]<=68?"#12A195":"#F2590D"))&&r(o,"fill",d),(!y||g&64)&&B(f,m[6]);const b={};g&128&&(b.percentile=m[7]),h.$set(b)},i(m){y||(L(h.$$.fragment,m),y=!0)},o(m){Z(h.$$.fragment,m),y=!1},d(m){m&&q(e),V(h)}}}function I(v){let e,l,t,o,d,z,i,c,u,p,f,a,s,h,y;return h=new _({props:{type:"left",percentile:v[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),z=$(),i=w("div"),c=w("div"),c.innerHTML="Glycan <b>Median (G1)</b>",u=$(),p=w("div"),f=A(v[6]),a=$(),s=w("div"),H(h.$$.fragment),r(o,"fill",d=v[7]>=32?"#12A195":"#F2590D"),r(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,z),n(l,i),n(i,c),n(i,u),n(i,p),n(p,f),n(e,a),n(e,s),C(h,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]>=32?"#12A195":"#F2590D"))&&r(o,"fill",d),(!y||g&64)&&B(f,m[6]);const b={};g&128&&(b.percentile=m[7]),h.$set(b)},i(m){y||(L(h.$$.fragment,m),y=!0)},o(m){Z(h.$$.fragment,m),y=!1},d(m){m&&q(e),V(h)}}}function U(v){let e,l,t,o,d,z,i,c,u,p,f,a,s,h,y;return h=new _({props:{type:"left",percentile:v[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),z=$(),i=w("div"),c=w("div"),c.innerHTML="Glycan <b>Youth (G2)</b>",u=$(),p=w("div"),f=A(v[6]),a=$(),s=w("div"),H(h.$$.fragment),r(o,"fill",d=v[7]>=32?"#12A195":"#F2590D"),r(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,z),n(l,i),n(i,c),n(i,u),n(i,p),n(p,f),n(e,a),n(e,s),C(h,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]>=32?"#12A195":"#F2590D"))&&r(o,"fill",d),(!y||g&64)&&B(f,m[6]);const b={};g&128&&(b.percentile=m[7]),h.$set(b)},i(m){y||(L(h.$$.fragment,m),y=!0)},o(m){Z(h.$$.fragment,m),y=!1},d(m){m&&q(e),V(h)}}}function O(v){let e,l,t,o,d,z,i,c,u,p,f,a,s,h,y;return h=new _({props:{type:"left",percentile:v[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),z=$(),i=w("div"),c=w("div"),c.innerHTML="Glycan <b>Shield (S)</b>",u=$(),p=w("div"),f=A(v[6]),a=$(),s=w("div"),H(h.$$.fragment),r(o,"fill",d=v[7]>=32?"#12A195":"#F2590D"),r(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,z),n(l,i),n(i,c),n(i,u),n(i,p),n(p,f),n(e,a),n(e,s),C(h,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]>=32?"#12A195":"#F2590D"))&&r(o,"fill",d),(!y||g&64)&&B(f,m[6]);const b={};g&128&&(b.percentile=m[7]),h.$set(b)},i(m){y||(L(h.$$.fragment,m),y=!0)},o(m){Z(h.$$.fragment,m),y=!1},d(m){m&&q(e),V(h)}}}function X(v){let e,l,t,o,d,z,i,c,u,p,f,a,s,h,y;return h=new _({props:{type:"right",percentile:v[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),o=M("path"),z=$(),i=w("div"),c=w("div"),c.innerHTML="Glycan <b>Lifestyle (B)</b>",u=$(),p=w("div"),f=A(v[6]),a=$(),s=w("div"),H(h.$$.fragment),r(o,"fill",d=v[7]<=68?"#12A195":"#F2590D"),r(o,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(t,"xmlns","http://www.w3.org/2000/svg"),r(t,"width","24"),r(t,"height","24"),r(t,"viewBox","0 0 24 24"),x(i,"display","flex"),x(i,"flex-direction","column"),x(i,"padding-left","0.3rem"),r(l,"class","label svelte-1285zfm"),x(l,"font-size","0.8rem"),x(s,"width","70%"),x(s,"display","flex"),x(s,"align-items","center"),r(e,"class","main svelte-1285zfm")},m(m,g){T(m,e,g),n(e,l),n(l,t),n(t,o),n(l,z),n(l,i),n(i,c),n(i,u),n(i,p),n(p,f),n(e,a),n(e,s),C(h,s,null),y=!0},p(m,g){(!y||g&128&&d!==(d=m[7]<=68?"#12A195":"#F2590D"))&&r(o,"fill",d),(!y||g&64)&&B(f,m[6]);const b={};g&128&&(b.percentile=m[7]),h.$set(b)},i(m){y||(L(h.$$.fragment,m),y=!0)},o(m){Z(h.$$.fragment,m),y=!1},d(m){m&&q(e),V(h)}}}function me(v){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,o){T(t,e,o),n(e,l)},d(t){t&&q(e)}}}function oe(v){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#F2590D"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","50"),r(e,"height","50"),r(e,"viewBox","0 0 24 24")},m(t,o){T(t,e,o),n(e,l)},d(t){t&&q(e)}}}function pe(v){let e,l;return{c(){e=M("svg"),l=M("path"),r(l,"fill","#12A195"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(t,o){T(t,e,o),n(e,l)},p:F,d(t){t&&q(e)}}}function ce(v){let e,l,t;return{c(){e=M("svg"),l=M("path"),r(l,"fill",t=v[3]?"#FFAA00":"#F2590D"),r(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),r(e,"xmlns","http://www.w3.org/2000/svg"),r(e,"width","24"),r(e,"height","24"),r(e,"viewBox","0 0 24 24")},m(o,d){T(o,e,d),n(e,l)},p(o,d){d&8&&t!==(t=o[3]?"#FFAA00":"#F2590D")&&r(l,"fill",t)},d(o){o&&q(e)}}}function fe(v){let e,l,t,o,d,z;const i=[ae,re,ne],c=[];function u(p,f){return p[0]==="header"&&p[5]?0:p[0]==="summary"&&p[4]?1:2}return t=u(v),o=c[t]=i[t](v),{c(){e=w("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',l=$(),o.c(),d=R()},m(p,f){T(p,e,f),T(p,l,f),c[t].m(p,f),T(p,d,f),z=!0},p(p,[f]){let a=t;t=u(p),t===a?c[t].p(p,f):(S(),Z(c[a],1,1,()=>{c[a]=null}),D(),o=c[t],o?o.p(p,f):(o=c[t]=i[t](p),o.c()),L(o,1),o.m(d.parentNode,d))},i(p){z||(L(o),z=!0)},o(p){Z(o),z=!1},d(p){p&&(q(e),q(l),q(d)),c[t].d(p)}}}function ve(v,e,l){let{report:t}=e,{type:o}=e,{subtype:d}=e,{service:z=window.GaReportService}=e,i=[{name:"mature",csvName:"G0percentile"},{name:"median",csvName:"G1percentile"},{name:"youth",csvName:"G2percentile"},{name:"shield",csvName:"Spercentile"},{name:"lifestyle",csvName:"Bpercentile"}],c,u=!1,p=!1,f=!1,a=!1,s="",h=0,y=0,m=0,g=0,b=0,k=0,N=0;function J(){h>68&&l(8,N++,N),y<32&&l(8,N++,N),m<32&&l(8,N++,N),g<32&&l(8,N++,N),b>68&&l(8,N++,N)}const P=i.find(G=>G.name===d);return te(async()=>{c=await z.getReport(t),P&&(l(7,k=Number(c[P.csvName])),l(6,s=se(k))),h=Number(c.G0percentile),y=Number(c.G1percentile),m=Number(c.G2percentile),g=Number(c.Spercentile),b=Number(c.Bpercentile),J(),N===5&&l(2,u=!0),N>2&&N<5&&l(3,p=!0),l(5,a=!0),l(4,f=!0)}),v.$$set=G=>{"report"in G&&l(9,t=G.report),"type"in G&&l(0,o=G.type),"subtype"in G&&l(1,d=G.subtype),"service"in G&&l(10,z=G.service)},[o,d,u,p,f,a,s,k,N,t,z]}class Y extends Q{constructor(e){super(),W(this,e,ve,fe,ee,{report:9,type:0,subtype:1,service:10},ie)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),E()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),E()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),E()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),E()}}customElements.define("ga-endometrial",K(Y,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{Y as default};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./crohn.wc.js"),import("./lupus.wc.js"),import("./diabetes.wc.js"),import("./myocardial.wc.js"),import("./menopause.wc.js"),import("./hypertension.wc.js"),import("./chronic.wc.js"),import("./dyslipidemia.wc.js"),import("./atherosclerosis.wc.js"),import("./coronary.wc.js"),import("./copd.wc.js"),import("./hypertension-risk.wc.js"),import("./pre-hypertension.wc.js"),import("./language.interface.js")};export{t as default};
1
+ const t=()=>{import("./arthritis.wc.js"),import("./colitis.wc.js"),import("./crohn.wc.js"),import("./lupus.wc.js"),import("./diabetes.wc.js"),import("./myocardial.wc.js"),import("./menopause.wc.js"),import("./hypertension.wc.js"),import("./chronic.wc.js"),import("./dyslipidemia.wc.js"),import("./atherosclerosis.wc.js"),import("./coronary.wc.js"),import("./copd.wc.js"),import("./hypertension-risk.wc.js"),import("./pre-hypertension.wc.js"),import("./language.interface.js"),import("./colorectal.wc.js"),import("./endometrial.wc.js"),import("./ovarian.wc.js")};export{t as default};
@@ -0,0 +1,2 @@
1
+ import{c as X,S as Y,i as J,f as H,s as K,a as U,e as w,b as $,d as O,g as T,t as Z,h as D,j as L,k as q,o as ee,l as G,m as N,n as b,p as n,q as a,r as B,u as S,v as M,w as C,x as V,y as k}from"./index2.js";import{g as le,A as E}from"./Arrow.js";function te(f){U(f,"svelte-1285zfm",".summaryMain.svelte-1285zfm.svelte-1285zfm{padding:0 48px;height:100%;display:flex;flex-direction:column;color:#09341FCC}.summaryMain.svelte-1285zfm hr.svelte-1285zfm{border:2px solid rgba(201, 219, 210, 1);border-radius:2px;margin:18px 0}.summaryMain.svelte-1285zfm h5.svelte-1285zfm{font-size:16px;margin:0}.summaryMain.svelte-1285zfm ul.svelte-1285zfm{margin-top:4px;margin-bottom:24px;font-size:14px;padding-left:20px}.summaryMain.svelte-1285zfm ul li.svelte-1285zfm:not(:first-child){margin-top:4px}.summaryHeader.svelte-1285zfm.svelte-1285zfm{width:100%;font-size:16px;line-height:115%;padding-top:32px;display:flex;align-items:center;transform:translateX(-48px)}.summaryBody.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;margin:auto}.summaryBody.svelte-1285zfm a.svelte-1285zfm{display:block;color:#E66439;font-weight:bold;font-size:12px;margin-top:12px}.summaryBody.svelte-1285zfm p.svelte-1285zfm{color:rgba(9, 52, 31, 0.80);font-size:10px;margin-top:6px}.main.svelte-1285zfm.svelte-1285zfm{height:100%;width:100%;display:flex}.label.svelte-1285zfm.svelte-1285zfm{width:30%;display:flex;align-items:center}.header.svelte-1285zfm.svelte-1285zfm{width:100%;height:100%;display:flex;align-items:center}")}function se(f){let e,l,t,r,v,p=f[1]==="mature"&&_(f),i=f[1]==="median"&&j(f),m=f[1]==="youth"&&R(f),u=f[1]==="lifestyle"&&P(f);return{c(){p&&p.c(),e=$(),i&&i.c(),l=$(),m&&m.c(),t=$(),u&&u.c(),r=O()},m(s,c){p&&p.m(s,c),T(s,e,c),i&&i.m(s,c),T(s,l,c),m&&m.m(s,c),T(s,t,c),u&&u.m(s,c),T(s,r,c),v=!0},p(s,c){s[1]==="mature"?p?(p.p(s,c),c&2&&L(p,1)):(p=_(s),p.c(),L(p,1),p.m(e.parentNode,e)):p&&(G(),Z(p,1,1,()=>{p=null}),D()),s[1]==="median"?i?(i.p(s,c),c&2&&L(i,1)):(i=j(s),i.c(),L(i,1),i.m(l.parentNode,l)):i&&(G(),Z(i,1,1,()=>{i=null}),D()),s[1]==="youth"?m?(m.p(s,c),c&2&&L(m,1)):(m=R(s),m.c(),L(m,1),m.m(t.parentNode,t)):m&&(G(),Z(m,1,1,()=>{m=null}),D()),s[1]==="lifestyle"?u?(u.p(s,c),c&2&&L(u,1)):(u=P(s),u.c(),L(u,1),u.m(r.parentNode,r)):u&&(G(),Z(u,1,1,()=>{u=null}),D())},i(s){v||(L(p),L(i),L(m),L(u),v=!0)},o(s){Z(p),Z(i),Z(m),Z(u),v=!1},d(s){s&&(q(e),q(l),q(t),q(r)),p&&p.d(s),i&&i.d(s),m&&m.d(s),u&&u.d(s)}}}function ie(f){let e,l,t,r,v,p,i=f[2]?"Major overlap":f[3]?"Some overlap":"No significant overlap",m,u,s,c,z,d;function h(g,x){return g[2]||g[3]?re:ae}let y=h(f),o=y(f);return{c(){e=w("div"),l=w("div"),t=w("div"),o.c(),r=$(),v=w("div"),p=w("b"),m=N(i),u=N(" of glycan indexes between your patient and this condition."),s=$(),c=w("hr"),z=$(),d=w("div"),d.innerHTML='<h5 class="svelte-1285zfm">Signs and symptoms</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Abdominal bloating or swelling</li> <li class="svelte-1285zfm">Quickly feeling full when eating</li> <li class="svelte-1285zfm">Pelvic or abdominal pain</li></ul> <h5 class="svelte-1285zfm">Possible follow-up</h5> <ul class="svelte-1285zfm"><li class="svelte-1285zfm">Transvaginal ultrasound</li> <li class="svelte-1285zfm">CA-125 blood test</li> <li class="svelte-1285zfm">Biopsy</li></ul> <h5 class="svelte-1285zfm">Related research papers</h5> <a href="https://pubmed.ncbi.nlm.nih.gov/17884841/" class="svelte-1285zfm">Ovarian cancer is associated with changes in glycosylation in both acute-phase proteins and IgG</a> <p class="svelte-1285zfm">Ovarian cancer is the fourth most common cancer in women in the Western world. This pilot scale study highlights changes in the total serum glycome of patients with advanced ovarian cancer that might shed insight into disease pathogenesis.</p> <a href="https://pubmed.ncbi.nlm.nih.gov/32477323/" class="svelte-1285zfm">Immunoglobulin G Subclass-Specific Glycosylation Changes in Primary Epithelial Ovarian Cancer</a> <p class="svelte-1285zfm">Epithelial ovarian cancer (EOC) was previously shown to be associated with glycosylation changes of total serum and total IgG proteins. However, as a majority of previous studies analyzed released glycan profiles, still little is known about IgG subclass-specific alterations in ovarian cancer.</p>',b(t,"transform","translate(-50%)"),b(p,"color",f[2]||f[3]?"#F2590D":"#12A195"),n(l,"class","summaryHeader svelte-1285zfm"),n(c,"class","svelte-1285zfm"),n(d,"class","summaryBody svelte-1285zfm"),n(e,"class","summaryMain svelte-1285zfm")},m(g,x){T(g,e,x),a(e,l),a(l,t),o.m(t,null),a(l,r),a(l,v),a(v,p),a(p,m),a(v,u),a(e,s),a(e,c),a(e,z),a(e,d)},p(g,x){y!==(y=h(g))&&(o.d(1),o=y(g),o&&(o.c(),o.m(t,null))),x&12&&i!==(i=g[2]?"Major overlap":g[3]?"Some overlap":"No significant overlap")&&B(m,i),x&12&&b(p,"color",g[2]||g[3]?"#F2590D":"#12A195")},i:S,o:S,d(g){g&&q(e),o.d()}}}function ne(f){let e,l,t,r,v,p,i,m=f[2]?"Some overlap":f[3]?"Minor overlap":"No significant overlap",u;function s(d,h){return d[2]||d[3]?oe:me}let c=s(f),z=c(f);return{c(){e=w("div"),l=w("div"),t=w("b"),r=N(f[8]),v=N("/4"),p=$(),z.c(),i=N(`
2
+ \xA0\xA0`),u=N(m),b(l,"padding-right","10px"),n(e,"class","header svelte-1285zfm")},m(d,h){T(d,e,h),a(e,l),a(l,t),a(t,r),a(t,v),a(e,p),z.m(e,null),a(e,i),a(e,u)},p(d,h){h&256&&B(r,d[8]),c===(c=s(d))&&z?z.p(d,h):(z.d(1),z=c(d),z&&(z.c(),z.m(e,i))),h&12&&m!==(m=d[2]?"Some overlap":d[3]?"Minor overlap":"No significant overlap")&&B(u,m)},i:S,o:S,d(d){d&&q(e),z.d()}}}function _(f){let e,l,t,r,v,p,i,m,u,s,c,z,d,h,y;return h=new E({props:{type:"right",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),r=M("path"),p=$(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Mature (G0)</b>",u=$(),s=w("div"),c=N(f[6]),z=$(),d=w("div"),C(h.$$.fragment),n(r,"fill",v=f[7]<=68?"#12A195":"#F2590D"),n(r,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),n(t,"xmlns","http://www.w3.org/2000/svg"),n(t,"width","24"),n(t,"height","24"),n(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),n(l,"class","label svelte-1285zfm"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),n(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),a(e,l),a(l,t),a(t,r),a(l,p),a(l,i),a(i,m),a(i,u),a(i,s),a(s,c),a(e,z),a(e,d),V(h,d,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]<=68?"#12A195":"#F2590D"))&&n(r,"fill",v),(!y||g&64)&&B(c,o[6]);const x={};g&128&&(x.percentile=o[7]),h.$set(x)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){Z(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function j(f){let e,l,t,r,v,p,i,m,u,s,c,z,d,h,y;return h=new E({props:{type:"left",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),r=M("path"),p=$(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Median (G1)</b>",u=$(),s=w("div"),c=N(f[6]),z=$(),d=w("div"),C(h.$$.fragment),n(r,"fill",v=f[7]>=32?"#12A195":"#F2590D"),n(r,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),n(t,"xmlns","http://www.w3.org/2000/svg"),n(t,"width","24"),n(t,"height","24"),n(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),n(l,"class","label svelte-1285zfm"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),n(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),a(e,l),a(l,t),a(t,r),a(l,p),a(l,i),a(i,m),a(i,u),a(i,s),a(s,c),a(e,z),a(e,d),V(h,d,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]>=32?"#12A195":"#F2590D"))&&n(r,"fill",v),(!y||g&64)&&B(c,o[6]);const x={};g&128&&(x.percentile=o[7]),h.$set(x)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){Z(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function R(f){let e,l,t,r,v,p,i,m,u,s,c,z,d,h,y;return h=new E({props:{type:"left",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),r=M("path"),p=$(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Youth (G2)</b>",u=$(),s=w("div"),c=N(f[6]),z=$(),d=w("div"),C(h.$$.fragment),n(r,"fill",v=f[7]>=32?"#12A195":"#F2590D"),n(r,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),n(t,"xmlns","http://www.w3.org/2000/svg"),n(t,"width","24"),n(t,"height","24"),n(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),n(l,"class","label svelte-1285zfm"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),n(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),a(e,l),a(l,t),a(t,r),a(l,p),a(l,i),a(i,m),a(i,u),a(i,s),a(s,c),a(e,z),a(e,d),V(h,d,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]>=32?"#12A195":"#F2590D"))&&n(r,"fill",v),(!y||g&64)&&B(c,o[6]);const x={};g&128&&(x.percentile=o[7]),h.$set(x)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){Z(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function P(f){let e,l,t,r,v,p,i,m,u,s,c,z,d,h,y;return h=new E({props:{type:"left",percentile:f[7]}}),{c(){e=w("div"),l=w("div"),t=M("svg"),r=M("path"),p=$(),i=w("div"),m=w("div"),m.innerHTML="Glycan <b>Lifestyle (B)</b>",u=$(),s=w("div"),c=N(f[6]),z=$(),d=w("div"),C(h.$$.fragment),n(r,"fill",v=f[7]>=32?"#12A195":"#F2590D"),n(r,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),n(t,"xmlns","http://www.w3.org/2000/svg"),n(t,"width","24"),n(t,"height","24"),n(t,"viewBox","0 0 24 24"),b(i,"display","flex"),b(i,"flex-direction","column"),b(i,"padding-left","0.3rem"),n(l,"class","label svelte-1285zfm"),b(l,"font-size","0.8rem"),b(d,"width","70%"),b(d,"display","flex"),b(d,"align-items","center"),n(e,"class","main svelte-1285zfm")},m(o,g){T(o,e,g),a(e,l),a(l,t),a(t,r),a(l,p),a(l,i),a(i,m),a(i,u),a(i,s),a(s,c),a(e,z),a(e,d),V(h,d,null),y=!0},p(o,g){(!y||g&128&&v!==(v=o[7]>=32?"#12A195":"#F2590D"))&&n(r,"fill",v),(!y||g&64)&&B(c,o[6]);const x={};g&128&&(x.percentile=o[7]),h.$set(x)},i(o){y||(L(h.$$.fragment,o),y=!0)},o(o){Z(h.$$.fragment,o),y=!1},d(o){o&&q(e),k(h)}}}function ae(f){let e,l;return{c(){e=M("svg"),l=M("path"),n(l,"fill","#12A195"),n(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","50"),n(e,"height","50"),n(e,"viewBox","0 0 24 24")},m(t,r){T(t,e,r),a(e,l)},d(t){t&&q(e)}}}function re(f){let e,l;return{c(){e=M("svg"),l=M("path"),n(l,"fill","#F2590D"),n(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","50"),n(e,"height","50"),n(e,"viewBox","0 0 24 24")},m(t,r){T(t,e,r),a(e,l)},d(t){t&&q(e)}}}function me(f){let e,l;return{c(){e=M("svg"),l=M("path"),n(l,"fill","#12A195"),n(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45Zm2.35-6.95L16.6 9.9l-1.4-1.45l-4.25 4.25l-2.15-2.1L7.4 12l3.55 3.55Z"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","24"),n(e,"height","24"),n(e,"viewBox","0 0 24 24")},m(t,r){T(t,e,r),a(e,l)},p:S,d(t){t&&q(e)}}}function oe(f){let e,l,t;return{c(){e=M("svg"),l=M("path"),n(l,"fill",t=f[3]?"#FFAA00":"#F2590D"),n(l,"d","m8.6 22.5l-1.9-3.2l-3.6-.8l.35-3.7L1 12l2.45-2.8l-.35-3.7l3.6-.8l1.9-3.2L12 2.95l3.4-1.45l1.9 3.2l3.6.8l-.35 3.7L23 12l-2.45 2.8l.35 3.7l-3.6.8l-1.9 3.2l-3.4-1.45l-3.4 1.45ZM12 17q.425 0 .713-.288T13 16q0-.425-.288-.713T12 15q-.425 0-.713.288T11 16q0 .425.288.713T12 17Zm-1-4h2V7h-2v6Z"),n(e,"xmlns","http://www.w3.org/2000/svg"),n(e,"width","24"),n(e,"height","24"),n(e,"viewBox","0 0 24 24")},m(r,v){T(r,e,v),a(e,l)},p(r,v){v&8&&t!==(t=r[3]?"#FFAA00":"#F2590D")&&n(l,"fill",t)},d(r){r&&q(e)}}}function ce(f){let e,l,t,r,v,p;const i=[ne,ie,se],m=[];function u(s,c){return s[0]==="header"&&s[5]?0:s[0]==="summary"&&s[4]?1:2}return t=u(f),r=m[t]=i[t](f),{c(){e=w("head"),e.innerHTML='<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,300,1,0"/>',l=$(),r.c(),v=O()},m(s,c){T(s,e,c),T(s,l,c),m[t].m(s,c),T(s,v,c),p=!0},p(s,[c]){let z=t;t=u(s),t===z?m[t].p(s,c):(G(),Z(m[z],1,1,()=>{m[z]=null}),D(),r=m[t],r?r.p(s,c):(r=m[t]=i[t](s),r.c()),L(r,1),r.m(v.parentNode,v))},i(s){p||(L(r),p=!0)},o(s){Z(r),p=!1},d(s){s&&(q(e),q(l),q(v)),m[t].d(s)}}}function fe(f,e,l){let{report:t}=e,{type:r}=e,{subtype:v}=e,{service:p=window.GaReportService}=e,i=[{name:"mature",csvName:"G0percentile"},{name:"median",csvName:"G1percentile"},{name:"youth",csvName:"G2percentile"},{name:"lifestyle",csvName:"Bpercentile"}],m,u=!1,s=!1,c=!1,z=!1,d="",h=0,y=0,o=0,g=0,x=0,A=0;function W(){h>68&&l(8,A++,A),y<32&&l(8,A++,A),o<32&&l(8,A++,A),g<32&&l(8,A++,A)}const I=i.find(F=>F.name===v);return ee(async()=>{m=await p.getReport(t),I&&(l(7,x=Number(m[I.csvName])),l(6,d=le(x))),h=Number(m.G0percentile),y=Number(m.G1percentile),o=Number(m.G2percentile),g=Number(m.Bpercentile),W(),A===4&&l(2,u=!0),A===3&&l(3,s=!0),l(5,z=!0),l(4,c=!0)}),f.$$set=F=>{"report"in F&&l(9,t=F.report),"type"in F&&l(0,r=F.type),"subtype"in F&&l(1,v=F.subtype),"service"in F&&l(10,p=F.service)},[r,v,u,s,c,z,d,x,A,t,p]}class Q extends Y{constructor(e){super(),J(this,e,fe,ce,K,{report:9,type:0,subtype:1,service:10},te)}get report(){return this.$$.ctx[9]}set report(e){this.$$set({report:e}),H()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),H()}get subtype(){return this.$$.ctx[1]}set subtype(e){this.$$set({subtype:e}),H()}get service(){return this.$$.ctx[10]}set service(e){this.$$set({service:e}),H()}}customElements.define("ga-ovarian",X(Q,{report:{},type:{},subtype:{},service:{}},[],[],!0));export{Q as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@glycanage/web-components",
3
3
  "description": "A collection of web-components",
4
- "version": "1.47.0",
4
+ "version": "1.49.0",
5
5
  "type": "module",
6
6
  "main": "dist/lib/@glycanage/web-components.js",
7
7
  "scripts": {