PageSourceSearch

https://static.growkudos.com/magazine-view/4aacb102573c97fa6ae39b4…/_app/immutable/nodes/8.DSzGwTy9.js

js growkudos.com collected 2026-09-24 08:31:27 UTC 44,385 bytes, 13 lines download raw bytes

1import{e as Ke}from"../chunks/Bq-rPRmx.js";import{C as J,b as _e}from"../chunks/LKyze9GD.js";import{g as Ot,b as Yt,c as Mt}from"../chunks/B7fph2b5.js";import"../chunks/gJTzsVrq.js";import"../chunks/B0XwC4Ot.js";import{b as We,S as Xt,a as mt,r as Kt}from"../chunks/HuBQyJdP.js";import{g as Wt,h as Ht,j as He,e as ie,i as Ne}from"../chunks/UpcuHWsf.js";import{b as Ue}from"../chunks/DFhX39dV.js";import{R as Qe,g as Jt}from"../chunks/BubnZ1_o.js";import"../chunks/DsnmJJEf.js";import{v as K,x as Qt,L as o,D as Re,y as Zt,ar as i,at as a,F as yt,K as R,i as f,B as W,I as Vt,j as y,an as _t,as as c,au as Te,aW as S,ap as bt,A as ae,n as ke,z as Ze,J as Ce,aZ as $t,G as me,ag as er}from"../chunks/Ndri3sLk.js";import{s as N,e as tr,r as rr}from"../chunks/NBiqQv3d.js";import{i as p}from"../chunks/CQN3pcvY.js";import{s as T,a as $,b as wt,d as pe,c as ar}from"../chunks/BrbxFX-R.js";import{p as Q,s as Je}from"../chunks/DXIylsJt.js";import{s as vt,F as fe,g as je,I as V,c as or,d as ir,e as nr,h as sr,i as kt,j as cr,k as lr,l as dr,m as vr,n as ur,o as gr,p as hr,q as fr,r as mr,t as Ee,u as ut,v as gt,w as yr,x as _r,y as br,z as wr,A as kr,B as pr,C as Pr,D as Ir,E as xr,G as Sr,H as Lr,J as Rr,K as Cr,L as Ur,M as Br,N as Er,O as Tr,P as Dr,Q as Nr}from"../chunks/RG4J2JtF.js";import"../chunks/DOoDc4tg.js";import{p as ee}from"../chunks/BQ2bxPQE.js";import{B as ve}from"../chunks/CE3Iden7.js";import{B as jr}from"../chunks/DI7USPam.js";import{B as Ar}from"../chunks/C6om_Nn4.js";import{S as le,E as Fr,a as qr,o as ht}from"../chunks/CloIvfqd.js";import{g as ue,b as ge,J as zr}from"../chunks/CaARzLEF.js";import{g as Gr}from"../chunks/62224jjd.js";import{P as Or}from"../chunks/BA9L_wav.js";import{e as pt}from"../chunks/_bSEifyz.js";import{s as Yr}from"../chunks/DIM5csVA.js";import{b as Mr}from"../chunks/KpSxVJtE.js";import{i as Pt}from"../chunks/DpZMeqx-.js";var Xr=y("<span><!></span>");function Kr(s,e){K(e,!1);let t=Q(e,"class",24,()=>{}),r=Q(e,"id",24,()=>{}),n=Q(e,"style",24,()=>{}),l=Q(e,"size",24,()=>{}),h=Q(e,"pull",24,()=>{}),g=Vt();Qt(()=>(o(g),Re(l()),vt),()=>{o(g)&&l()&&vt(o(g),l())}),Zt(),Pt();var d=Xr();let P;var m=i(d);Yr(m,e,"default",{}),a(d),Mr(d,x=>yt(g,x),()=>o(g)),R(()=>{T(d,"id",r()),P=$(d,1,`svelte-fa-layers svelte-fa-base svelte-fa-fw ${t()??""}`,"svelte-8k2jhq",P,{"svelte-fa-pull-left":h()==="left","svelte-fa-pull-right":h()==="right","svelte-fa-size-lg":l()==="lg","svelte-fa-size-sm":l()==="sm","svelte-fa-size-xs":l()==="xs"}),wt(d,n())}),f(s,d),W()}const de={press:"press",policy:"policy",industry:"industry",educator:"educator",practitioner:"practitioner",other:"other"},Wr={press:"Press",policy:"Policy",industry:"Industry",educator:"Educator",practitioner:"Practitioner",other:"Other"},Hr=new Set(Object.values(de));function Jr(s){return Hr.has(s)}function Qr(s){return Wr[s]}function It(s){return class extends s{hasExternalURL(t){if(!this.url)return!1;try{return new URL(this.url,t).hostname!==t.hostname}catch{return!1}}}}const Zr=/\n{2,}/;function he(s){const e=crypto.randomUUID(),t=s.split(Zr),r=[];for(const[n,l]of t.entries()){const h=`${e}-${n}`,g=$r(h,l);if(g){r.push(g);continue}r.push({id:h,type:"paragraph",data:{text:l}})}return r}const Vr=/^\s*(?<marker>([•—–-]|(?<orderedMarker>\d+[.)])))\s+(?<text>.+)$/;function $r(s,e){const t=e.trim().split(`
2`),r=[];let n=null;for(const l of t){const h=l.match(Vr);if(!h?.groups?.marker)return null;const g=h.groups.orderedMarker?"ordered":"unordered";if(n===null)n=g;else if(g!==n)return null;if(g==="ordered"&&Number.parseInt(h.groups.orderedMarker)!==r.length+1)return null;r.push(h.groups.text)}return r.length<2?null:{id:s,type:"nestedlist",data:{style:n??"unordered",items:r.map(l=>({content:l,items:[]}))}}}class De{id;doi;title;type;container;whatsItAbout;whysItImportant;contactInfo;perspectives;resources;featuredResources;resourcesInfoBody;logo=null;heroImage=null;primaryParentShowcase;contributors;importantInfo=null;editURL;userCanEdit;isPublic;partners;briefings;constructor(e){const t=new Qe;this.id=e.id,this.doi=e.doi,this.title=e.title,this.type=e.type,this.container={id:e.researchGroup.id,name:e.researchGroup.name,logo:e.researchGroup.logoURL?t.buildFromURL(e.researchGroup.logoURL):null},this.whatsItAbout=e.whatsItAbout?{text:e.whatsItAbout,blocks:he(e.whatsItAbout)}:null,this.whysItImportant=e.whysItImportant?{text:e.whysItImportant,blocks:he(e.whysItImportant)}:null,this.contactInfo=e.contactInfo,this.perspectives=e.perspectives,this.resources=e.resources,this.featuredResources=e.resources.filter(r=>r.feature),this.resourcesInfoBody=e.resourcesInfoBody,e.logoURL&&(this.logo=t.buildFromURL(e.logoURL)),e.heroImage&&(this.heroImage={image:t.buildFromURL(e.heroImage.url),creditName:e.heroImage.creditName,creditURL:e.heroImage.creditURL}),this.primaryParentShowcase=e.primaryParentShowcase,this.contributors=e.hideContributors?[]:e.contributors,this.importantInfo=e.importantInfo?e.importantInfo:null,this.editURL=`/projects/${encodeURIComponent(e.id)}/manage`,this.userCanEdit=e.userCanEdit,this.isPublic=e.isPublic,this.partners=e.partners,this.briefings=e.briefings}}class ea{title;ctaPrefix;bodyIntro;bodyRemainder;links;ctaLinks;footer;constructor(e){this.title=e.title,this.ctaPrefix=e.ctaPrefix,this.bodyIntro={text:e.bodyIntro,blocks:he(e.bodyIntro)},this.bodyRemainder={text:e.bodyRemainder,blocks:he(e.bodyRemainder)},this.links=e.links,this.ctaLinks=e.ctaLinks,this.footer={text:e.footer,blocks:he(e.footer)}}}class ta{id;title;link;trackableLink;description;type;image;feature;constructor(e){this.id=e.id,this.title=e.title,this.link=e.link,this.trackableLink=e.trackableLink,this.description=e.description,this.type=e.type;const t=new Qe;this.image=e.imageURL?t.buildFromURL(e.imageURL):null,this.feature=e.featured?{title:e.featureTitle,body:e.featureBody?{text:e.featureBody,blocks:he(e.featureBody)}:null}:null}}class ra{id;type;title;overview;constructor(e){this.id=e.url,this.type=e.type,this.title=e.title,this.overview={text:e.overview,blocks:he(e.overview)}}}class aa{id;body;author;constructor(e){this.id=e.author.id,this.body={text:e.body,blocks:he(e.body)},this.author=e.author}}class oa{id;prefix;givenName;familyName;institutionName;profilePageURL;profilePictureFilename;constructor(e){this.id=e.id,this.prefix=e.prefix,this.givenName=e.givenName,this.familyName=e.familyName,this.institutionName=e.institutionName,this.profilePageURL=e.profilePageURL,this.profilePictureFilename=e.profilePictureFilename}}const ia=It(class{email;url;constructor(s){this.email=s.email,this.url=s.weblink}}),na=It(class{id;name;url;image;constructor(s){this.id=s.id.toString(),this.name=s.name,this.url=s.url,this.image=s.imageURL?new Qe().buildFromURL(s.imageURL):null}});class sa{constructor(e){this.fetch=e}async getForProject(e){const t=Ue(Wt,"projects",e,"briefings",""),r=await this.fetch(t.href,{credentials:"include"});if(r.status!==200)throw new J("unknown",{cause:new Error(`Got ${r.status} from briefings API`)});return(await r.json()).map(l=>this.buildBriefing(l))}buildBriefing(e){return new ra({url:e.url,type:Jr(e.type)?e.type:de.other,title:e.title,overview:e.overview})}}const E={publication:"publication",slides:"slides",data:"data",poster:"poster",video:"video",image:"image",presentation:"presentation",preprint:"preprint",conferencePaper:"conference_paper",code:"code",interview:"interview",project:"project",thesis:"thesis",dissertation:"dissertation",other:"other",clinicalTr
2ialRegistry:"clinical_trial_registry",infographic:"infographic",patientInformationLeaflet:"patient_information_leaflet",plainLanguageSummary:"plain_language_summary",pressRelease:"press_release",mediaCoverage:"media_coverage",patent:"patent",caseStudy:"case_study",award:"award",prescribingInformation:"prescribing_information",importantSafetyInformation:"important_safety_information"},ca={publication:"Publication",slides:"Slides",data:"Data",poster:"Poster",video:"Video",image:"Image",presentation:"Presentation",preprint:"Preprint",conference_paper:"Conference paper",code:"Code",interview:"Interview",project:"Project",thesis:"Thesis",dissertation:"Dissertation",other:"Other",clinical_trial_registry:"Clinical trial registry",infographic:"Infographic",patient_information_leaflet:"Patient information leaflet",plain_language_summary:"Plain language summary",press_release:"Press release",media_coverage:"Media coverage",patent:"Patent",case_study:"Case study",award:"Award",prescribing_information:"Prescribing information",important_safety_information:"Important safety information"},la=new Set(Object.values(E));function da(s){return la.has(s)}function va(s){return ca[s]}class ua{constructor(e){this.fetch=e}async getForProject(e){const t=Ue(Ht,"project",e,"public","outputs"),r=await this.fetch(t.href,{credentials:"include"});if(r.status!==200)throw new J("unknown",{cause:new Error(`Got ${r.status} from outputs API`)});return(await r.json()).map(l=>this.buildResource(l))}buildResource(e){return new ta({id:e.id,title:e.title,link:e.link,trackableLink:e.trackable_link,description:e.description,type:da(e.type)?e.type:E.other,imageURL:e.image_url,featured:e.featured,featureTitle:e.feature_title,featureBody:e.feature_body})}}class ga{constructor(e,t,r){this.fetch=e,this.outputsClient=t,this.briefingsClient=r}async getBySlug(e){const t=Ue(He,"projects-by-slug",e),r=await this.fetchWithCredentials(t.href,{headers:{"X-Growkudos-Do-Not-Record-Page-View":"1"}});switch(r.status){case 200:break;case 404:throw new J(_e.notFound);case 401:throw new J(_e.unauthorized);case 403:throw new J(_e.forbidden);default:throw new J(_e.unknown,{cause:new Error(`Got ${r.status} from project API`)})}const n=await r.json(),l=n.showcase_key?We.fromShowcaseKey(n.showcase_key):new We(Xt.ResearchGroup,n.rg_id),h=Promise.all([this.getSecondaryData(n.id,"perspectives"),this.getSecondaryData(n.id,"partners"),this.outputsClient.getForProject(n.id),this.briefingsClient.getForProject(n.id)]).then(([g,d,P,m])=>this.buildStory(n,{apiPerspectives:g,apiPartners:d,resources:P,primaryParentShowcase:l,briefings:m}));return{projectID:n.id,primaryParentShowcase:l,story:h}}async getSecondaryData(e,t){const r=Ue(He,"projects",e,t),n=await this.fetchWithCredentials(r.href);if(n.status!==200)throw new J("unknown",{cause:new Error(`Got ${n.status} from project ${t} API`)});return n.json()}buildStory(e,{apiPerspectives:t,apiPartners:r,resources:n,primaryParentShowcase:l,briefings:h}){return new De({id:e.id,doi:e.doi,title:e.project_name,type:this.getType(e.label),researchGroup:{id:e.rg_id,name:e.rg_name,logoURL:e.rg_logo_url},whatsItAbout:e.whats_it_about,whysItImportant:e.whys_it_important,contactInfo:this.buildContactInfo(e.contact_email,e.contact_weblink),perspectives:t.map(g=>this.buildPerspective(g)),resources:n,resourcesInfoBody:e.outputs_info_body,logoURL:e.logo_url,heroImage:e.banner?{url:e.banner.full,creditName:e.banner.credit_user_name,creditURL:e.banner.credit_user_link}:null,primaryParentShowcase:l,partners:r.map(g=>this.buildPartner(g)),contributors:e.collaborators.map(g=>this.buildAuthor(g)),hideContributors:e.hide_collaborators_publicly,userCanEdit:e.requested_by_collaborator,isPublic:e.is_public,importantInfo:e.important_info?this.buildImportantInfo(e.important_info):null,briefings:h})}getType(e){switch(e){case"clinical-trial":case"event":case"publication-extender":return e;default:return"project"}}buildPerspective(e){return new aa({body:e.body,author:this.buildAuthor(e.collaborator)})}buildPartner(e){return new na({id:e.id,name:e.name,url:e.web_link,imageURL:e.image_url})}buildContactInfo(e,t){return new ia({email:e,weblink:t})}buildAuthor(e){return new oa({id:e.id,prefix:e.title,givenName:[e.name,e.middlename].filter(t=>t).join(" "),familyName:e.surname,institutionName:e.institutionName,profilePageURL:e.profilePageLink,profilePictureFilename:e.avatar})}fetchWithCredentials(e,t){return this.fetch(e,{...t,credentials:"include"})}buildImportantInfo(e){return new ea({title:e.title,ctaPrefix:e.cta_prefix,bodyIntro:e.body_intro,bodyRemainder:e.body_remainder,links:e.links,ctaLinks:e.cta_links,footer:e.footer})}}class Ve{constructor(e,t,r){this.fetch=e,this.projectClient=t,this.showcaseService=r}static withDefaultDependencies(e,t){return new Ve(t,new ga(t,new ua(t),new sa(t)),mt.withDefaultDependencies(e,t))}async getBySlug(e){const{projectID:t,primaryParentShowcase:r,story:n}=await this.projectClient.getBySlug(e),l=this.getComplianceDisclaimer(t),h=this.showcaseService.getBranding(r.type,r.id).catch(m=>{throw m instanceof J&&m.reason==="not_found"?new J("unknown",{cause:m}):m}),[g,d,P]=await Promise.all([n,h,l]);return{story:g,primaryParentShowcaseBranding:d,complianceDisclaimer:P}}async getComplianceDisclaimer(e){const t=Kt("/magazine-view-api/compliance-disclaimers/projects/[id]",{id:encodeURIComponent(e)}),r=await this.fetch(t);if(!r.ok)throw new Error(`Got ${r.status} from ${t}`);return r.json()}}const ha=async({fetch:s,params:e,route:t,url:r})=>{const n=Ot(r,t).child({slug:e.slug}),l=fa(n,s),g=Ve.withDefaultDependencies(n,s).getBySlug(e.slug);let d,P,m,x,C;try{[{story:d,primaryParentShowcaseBranding:P,complianceDisclaimer:m},[x,C]]=await Promise.all([g,l])}catch(b){if(b instanceof J)switch(b.reason){case _e.notFound:n.info("Story not found by slug"),Ke(404);case _e.unauthorized:n.info("User not authenticated to view Story"),Ke(401);case _e.forbidden:n.info("User forbidden to view Story"),Ke(403);default:throw b}else throw b}let w;return(d.heroImage?.creditName||d.heroImage?.creditURL)&&(w={linkText:d.heroImage.creditName||"Source",linkHref:d.heroImage.creditURL}),{story:d,primaryParentShowcaseBranding:P,globalShowcaseRef:x,globalShowcaseBranding:C,transparentNavBar:!0,showReadingProgress:!0,metadata:ma(d),photoAttribution:w,complianceDisclaimer:m,pageviewProps:{project_id:d.id,rg_id:d.container.id}}};async function fa(s,e){const t=mt.withDefaultDependencies(s,e),r=We.forGlobalShowcase();let n;try{n=await t.getBranding(r.type,r.id)}catch(l){throw l instanceof J&&l.reason==="not_found"?new Error("Could not fetch global showcase branding for Story page",{cause:l}):l}return[r,n]}
2function ma(s){return{title:s.title,description:s.whatsItAbout?.text,image:s.heroImage?.image,doi:s.doi,dcType:"text",contributorNames:s.contributors.map(e=>[e.prefix,e.givenName,e.familyName].filter(t=>t).join(" ")),creatorNames:s instanceof De?[s.container.name]:[]}}const gi=Object.freeze(Object.defineProperty({__proto__:null,load:ha},Symbol.toStringTag,{value:"Module"})),ye=(s,e=Te,t=Te,r=Te)=>{var n=ya(),l=i(n);{let h=S(()=>je(e()));fe(l,{class:"disable-pointer-events",get icon(){return o(h)}})}a(n),R(h=>{$(n,1,h,"svelte-vesb9k"),T(n,"href",r().href),T(n,"title",t()),T(n,"aria-label",`Share via ${t()??""}`)},[()=>pe(["share-item",t().toLowerCase(),...ue("Share Click",{share_channel:t(),...ge(ee.data.story)})])]),f(s,n)};var ya=y("<a><!></a>"),_a=y('<div class="share svelte-vesb9k"><div class="share-items svelte-vesb9k"><!> <!> <!> <!> <!> <!> <!></div></div>');function ba(s,e){K(e,!0);const t=()=>bt(l,"$logger",r),[r,n]=_t(),l=Yt();let h=S(()=>{const k=new le(e.url);return k.search="",k.hash="",k});const g=1500;let d=S(()=>{let k=`Check out this research Story on Kudos:
3
4${e.title}
5${o(h).href}
6`;return k.length>g&&(k=`Check out this research Story on Kudos:
7
8${o(h).href}`),k.length>g&&(k=o(h).href),k.length>g&&t().warn({message:k,length:k.length},"Generated overlong share message -- share URLs may be too long to work reliably"),k}),P=S(()=>{const k=new le("mailto:"),re=`${e.title} on Kudos`;return k.search=`subject=${encodeURIComponent(re)}&body=${encodeURIComponent(o(d))}`,k}),m=S(()=>{const k=new le("https://bsky.app/intent/compose");return k.search=new URLSearchParams({text:o(d)}).toString(),k}),x=S(()=>{const k=new le("https://www.facebook.com/dialog/share");return k.search=new URLSearchParams({app_id:"382090738578650",display:"page",href:o(h).href}).toString(),k}),C=S(()=>{const k=new le("https://www.linkedin.com/shareArticle");return k.search=new URLSearchParams({url:o(h).href}).toString(),k}),w=S(()=>{const k=new le("/tootpick/",o(h));return k.hash=`text=${encodeURIComponent(o(d))}`,k}),b=S(()=>{const k=new le("https://wa.me/");return k.search=new URLSearchParams({text:o(d)}).toString(),k}),L=S(()=>{const k=new le("https://x.com/intent/post");return k.search=new URLSearchParams({url:o(h).href}).toString(),k});var _=_a(),B=i(_),j=i(B);ye(j,()=>V.ShareByEmail,()=>"Email",()=>o(P));var G=c(j,2);ye(G,()=>V.Bluesky,()=>"Bluesky",()=>o(m));var F=c(G,2);ye(F,()=>V.Facebook,()=>"Facebook",()=>o(x));var te=c(F,2);ye(te,()=>V.LinkedIn,()=>"LinkedIn",()=>o(C));var ne=c(te,2);ye(ne,()=>V.Mastodon,()=>"Mastodon",()=>o(w));var A=c(ne,2);ye(A,()=>V.WhatsApp,()=>"WhatsApp",()=>o(b));var q=c(A,2);ye(q,()=>V.Twitter,()=>"X",()=>o(L)),a(B),a(_),f(s,_),W(),n()}var wa=y('<a rel="ugc nofollow">Email</a>'),ka=y('<!> <span class="sr-only">(External link)</span>',1),pa=y('<a rel="ugc nofollow">Website<!></a>'),Pa=y('<div class="contact-links svelte-wt4tt0"><!> <!></div>');function Ia(s,e){K(e,!0);var t=Pa(),r=i(t);{var n=g=>{var d=wa();R((P,m)=>{$(d,1,P,"svelte-wt4tt0"),T(d,"href",`mailto:${m??""}`)},[()=>pe(["contact-link-item",...ue("Contact Click",{contact_method:"email",...ge(ee.data.story)})]),()=>encodeURI(e.email)]),f(g,d)};p(r,g=>{e.email&&g(n)})}var l=c(r,2);{var h=g=>{var d=pa(),P=c(i(d));{var m=x=>{var C=ka(),w=ae(C);{let b=S(()=>ue("Contact Click",{contact_method:"url",...ge(ee.data.story)})),L=S(()=>je(V.ExternalLink));fe(w,{get class(){return`external-link-icon
9					${o(b)??""}`},get icon(){return o(L)}})}ke(2),f(x,C)};p(P,x=>{e.web.external&&x(m)})}a(d),R(x=>{T(d,"href",e.web.url),$(d,1,x,"svelte-wt4tt0")},[()=>pe(["contact-link-item","weblink",...ue("Contact Click",{contact_method:"weblink",...ge(ee.data.story)})])]),f(g,d)};p(l,g=>{e.web&&g(h)})}a(t),f(s,t),W()}var xa=y('<h2 class="svelte-ig7dwl">Contact</h2> <!>',1),Sa=y('<div class="engagement svelte-ig7dwl"><!> <h2 class="share-heading svelte-ig7dwl">Share</h2> <!></div>');function La(s,e){K(e,!0);var t=Sa(),r=i(t);{var n=h=>{var g=xa(),d=c(ae(g),2);{let P=S(()=>e.contact.web.url?{url:e.contact.web.url,external:e.contact.web.external}:null);Ia(d,{get email(){return e.contact.email},get web(){return o(P)}})}f(h,g)};p(r,h=>{(e.contact?.email||e.contact?.web.url)&&h(n)})}var l=c(r,4);ba(l,{get title(){return e.storyTitle},get url(){return e.pageURL}}),a(t),f(s,t),W()}var Ra=y('<!> <a rel="ugc nofollow"> </a><!><!>',1),Ca=y("Read <!>",1),Ua=y('<span> <!> Read the <a href="#important-info"> </a>.</span>'),Ba=y("<p><!> <!></p>");function Ea(s,e){K(e,!0);const t=S(()=>e.info?.ctaLinks.length??0);var r=Ze(),n=ae(r);{var l=h=>{var g=Ba(),d=i(g);{var P=C=>{var w=Ce();R(()=>N(w,e.inPageStatement)),f(C,w)};p(d,C=>{e.inPageStatement&&C(P)})}var m=c(d,2);{var x=C=>{var w=Ua(),b=i(w),L=c(b);{var _=G=>{var F=Ca(),te=c(ae(F));ie(te,17,()=>e.info.ctaLinks,Ne,(ne,A,q)=>{var k=Ra(),re=ae(k);{var Pe=z=>{var se=Ce(" and");f(z,se)};p(re,z=>{o(t)>1&&q===o(t)-1&&z(Pe)})}var be=c(re,2),Ae=i(be,!0);a(be);var Ie=c(be);{var Fe=z=>{var se=Ce(".");f(z,se)};p(Ie,z=>{q==o(t)-1&&z(Fe)})}var Be=c(Ie);{var qe=z=>{var se=Ce(",");f(z,se)};p(Be,z=>{o(t)>2&&q<o(t)-1&&z(qe)})}R(()=>{T(be,"href",o(A).url),N(Ae,o(A).text)}),f(ne,k)}),f(G,F)};p(L,G=>{o(t)>0&&G(_)})}var B=c(L,2),j=i(B,!0);a(B),ke(),a(w),R(()=>{N(b,`${e.info.ctaPrefix??""} `),N(j,e.info.title)}),f(C,w)};p(m,C=>{e.info&&C(x)})}a(g),f(h,g)};p(n,h=>{(e.inPageStatement||e.info)&&h(l)})}f(s,r),W()}class Ta{constructor(e){this.fetchFn=e}async recordPageView(e){const t=Ue(He,"projects",e,"page-views"),r=await this.fetchFn(t.href,{method:"POST",credentials:"include"});if(r.status>299)throw new J("unknown",{cause:new Error(`Got ${r.status} from project page view creation API`)})}}class $e{constructor(e,t){this.logger=e,this.projectPageViewClient=t}lastStoryID=null;static withDefaultDependencies(e){const t=Mt.child({service:"PageViewService"});return new $e(t,new Ta(e))}async recordPageView(e){if(!(e instanceof De))throw new TypeError(`Page view recording is not implemented for ${e.constructor.name}`);const t=this.getStoryID(e);if(this.lastStoryID===t){this.logger.error({currentStoryID:t,lastStoryID:this.lastStoryID},"Detected duplicate page view (this is likely a reactivity bug in your page component)");return}const r=this.lastStoryID;this.lastStoryID=t;
9try{await this.projectPageViewClient.recordPageView(e.id)}catch(n){this.lastStoryID=r,this.logger.error({err:n,projectID:e.id},"Could not record project page view");return}}getStoryID(e){if(!(e instanceof De))throw new TypeError(`Cannot construct Story ID for ${e.constructor.name}`);return`project-${e.id}`}}var Da=y('<p class="institution svelte-u35inm"> </p>'),Na=y('<div class="author clickable-link-area svelte-u35inm"><div class="profile-picture svelte-u35inm"><!></div> <div><a class="name clickable-link-area-anchor svelte-u35inm"> </a> <!></div></div>');function xt(s,e){var t=Na(),r=i(t),n=i(r);{let m=S(()=>({id:e.id,givenName:e.givenName,familyName:e.familyName,profilePictureFilename:e.profilePictureFilename}));Or(n,{decorative:!0,get user(){return o(m)}})}a(r);var l=c(r,2),h=i(l),g=i(h);a(h);var d=c(h,2);{var P=m=>{var x=Da(),C=i(x,!0);a(x),R(()=>N(C,e.institutionName)),f(m,x)};p(d,m=>{e.institutionName&&m(P)})}a(l),a(t),R(()=>{T(h,"href",e.profilePageURL||null),N(g,`${e.prefix??""}
10			${e.givenName??""}
11			${e.familyName??""}`)}),f(s,t)}function ja(s){return Aa[s]}const Aa=Object.freeze({[de.press]:{icon:kt,palette:"motivation-green"},[de.policy]:{icon:sr,palette:"passion-pink"},[de.educator]:{icon:nr,palette:"creativity-orange"},[de.industry]:{icon:ir,palette:"innovation-blue"},[de.practitioner]:{icon:or,palette:"wisdom-blue"},[de.other]:void 0});var Fa=y('<p class="type svelte-1s4bwyb" dir="ltr"><!> </p>'),qa=y('<article class="briefing clickable-link-area svelte-1s4bwyb"><hgroup><!> <h3 class="svelte-1s4bwyb"> </h3></hgroup> <div class="overview svelte-1s4bwyb"><!></div></article>');function za(s,e){K(e,!0);let t=S(()=>ja(e.briefing.type)),r=S(()=>Qr(e.briefing.type));var n=qa(),l=i(n),h=i(l);{var g=C=>{var w=Fa(),b=i(w);fe(b,{get icon(){return o(t).icon},class:"icon"});var L=c(b);a(w),R(()=>{N(L,` ${o(r)??""} briefing`),w.dir=w.dir}),f(C,w)};p(h,C=>{o(t)&&C(g)})}var d=c(h,2),P=i(d,!0);a(d),a(l);var m=c(l,2),x=i(m);ve(x,{get content(){return e.briefing.overview}}),a(m),a(n),R(()=>{T(n,"data-color-palette",o(t)?o(t).palette:!1),N(P,e.briefing.title)}),f(s,n),W()}function Ga(s){return Oa[s]}const Oa=Object.freeze({[E.publication]:{iconLayers:[{icon:Ee}],iconPalette:"motivation-green"},[E.slides]:{iconLayers:[{icon:Tr}],iconPalette:"wisdom-blue"},[E.data]:{iconLayers:[{icon:Er}],iconPalette:"innovation-blue"},[E.poster]:{iconLayers:[{icon:Br}],iconPalette:"passion-pink"},[E.video]:{iconLayers:[{icon:Ur}],iconPalette:"wisdom-blue"},[E.image]:{iconLayers:[{icon:Cr}],iconPalette:"motivation-green"},[E.presentation]:{iconLayers:[{icon:Rr}],iconPalette:"passion-pink"},[E.infographic]:{iconLayers:[{icon:Lr}],iconPalette:"innovation-blue"},[E.mediaCoverage]:{iconLayers:[{icon:Sr}],iconPalette:"creativity-orange"},[E.interview]:{iconLayers:[{icon:xr}],iconPalette:"passion-pink"},[E.pressRelease]:{iconLayers:[{icon:kt}],iconPalette:"motivation-green"},[E.preprint]:{iconLayers:[{icon:Ir}],iconPalette:"motivation-green"},[E.conferencePaper]:{iconLayers:[{icon:Ee,translateX:.1},{icon:pr,size:"0.5x",translateX:-.6,translateY:.1,useBackgroundColor:!0},{icon:Pr,size:"0.5x",translateX:-.6,translateY:.1,knockoutOutline:!0}],iconPalette:"wisdom-blue"},[E.patent]:{iconLayers:[{icon:kr}],iconPalette:"passion-pink"},[E.caseStudy]:{iconLayers:[{icon:wr}],iconPalette:"motivation-green"},[E.award]:{iconLayers:[{icon:br}],iconPalette:"innovation-blue"},[E.code]:{iconLayers:[{icon:_r}],iconPalette:"innovation-blue"},[E.project]:{iconLayers:[{icon:yr}],iconPalette:"wisdom-blue"},[E.thesis]:{iconLayers:[{icon:Ee,translateX:.1},{icon:ut,size:"0.5x",translateX:-.5,translateY:.2,useBackgroundColor:!0},{icon:gt,size:"0.5x",translateX:-.5,translateY:.2,knockoutOutline:!0}],iconPalette:"creativity-orange"},[E.dissertation]:{iconLayers:[{icon:Ee,translateX:.1},{icon:ut,size:"0.5x",translateX:-.5,translateY:.2,useBackgroundColor:!0},{icon:gt,size:"0.5x",translateX:-.5,translateY:.2,knockoutOutline:!0}],iconPalette:"creativity-orange"},[E.plainLanguageSummary]:{iconLayers:[{icon:mr}],iconPalette:"creativity-orange"},[E.clinicalTrialRegistry]:{iconLayers:[{icon:gr,translateX:-.1}
11,{icon:hr,size:"0.7x",translateX:.4,translateY:.51,useBackgroundColor:!0},{icon:fr,size:"0.7x",translateX:.4,translateY:.51,knockoutOutline:!0}],iconPalette:"wisdom-blue"},[E.patientInformationLeaflet]:{iconLayers:[{icon:ur}],iconPalette:"passion-pink"},[E.prescribingInformation]:{iconLayers:[{icon:vr}],iconPalette:"wisdom-blue"},[E.importantSafetyInformation]:{iconLayers:[{icon:dr}],iconPalette:"creativity-orange"},[E.other]:{iconLayers:[{icon:cr},{icon:lr,size:"0.5x"}],iconPalette:"grey"}});var Ya=y('<div class="placeholder-image svelte-7s1n15"><!></div>');function Ma(s,e){K(e,!0);let t=S(()=>Ga(e.type));var r=Ya(),n=i(r);Kr(n,{children:(l,h)=>{var g=Ze(),d=ae(g);ie(d,17,()=>o(t).iconLayers,Ne,(P,m)=>{{let x=S(()=>o(m).size??"1x"),C=S(()=>o(m).translateX??0),w=S(()=>o(m).translateY??0),b=S(()=>o(m).useBackgroundColor?"var(--color-palette-bg)":void 0),L=S(()=>o(m).knockoutOutline?"stroke: var(--color-palette-bg); stroke-width: 20%; paint-order: stroke;":void 0);fe(P,{get icon(){return o(m).icon},get size(){return o(x)},get translateX(){return o(C)},get translateY(){return o(w)},get color(){return o(b)},get style(){return o(L)}})}}),f(l,g)},$$slots:{default:!0}}),a(r),R(()=>T(r,"data-color-palette",o(t).iconPalette)),f(s,r),W()}var Xa=y('<source media="(width &lt; 480px)"/>'),Ka=y('<source media="(width &lt; 640px)"/>'),Wa=y('<source media="(width &lt; 768px)"/>'),Ha=y('<source media="(width &lt; 1024px)"/>'),Ja=y('<source media="(width &lt; 1280px)"/>'),Qa=y('<source media="(width &lt; 1440px)"/>'),Za=y("<picture><!> <!> <!> <!> <!> <!> <img/></picture>");function et(s,e){K(e,!0);var t=Za(),r=i(t);{var n=_=>{var B=Xa();R(j=>T(B,"srcset",j),[()=>e.image.getSrcset({width:e.widths.xs,quality:e.quality})]),f(_,B)};p(r,_=>{e.widths.xs&&_(n)})}var l=c(r,2);{var h=_=>{var B=Ka();R(j=>T(B,"srcset",j),[()=>e.image.getSrcset({width:e.widths.sm,quality:e.quality})]),f(_,B)};p(l,_=>{e.widths.sm&&_(h)})}var g=c(l,2);{var d=_=>{var B=Wa();R(j=>T(B,"srcset",j),[()=>e.image.getSrcset({width:e.widths.md,quality:e.quality})]),f(_,B)};p(g,_=>{e.widths.md&&_(d)})}var P=c(g,2);{var m=_=>{var B=Ha();R(j=>T(B,"srcset",j),[()=>e.image.getSrcset({width:e.widths.lg,quality:e.quality})]),f(_,B)};p(P,_=>{e.widths.lg&&_(m)})}var x=c(P,2);{var C=_=>{var B=Ja();R(j=>T(B,"srcset",j),[()=>e.image.getSrcset({width:e.widths.xl,quality:e.quality})]),f(_,B)};p(x,_=>{e.widths.xl&&_(C)})}var w=c(x,2);{var b=_=>{var B=Qa();R(j=>T(B,"srcset",j),[()=>e.image.getSrcset({width:e.widths.xxl,quality:e.quality})]),f(_,B)};p(w,_=>{e.widths.xxl&&_(b)})}var L=c(w,2);a(t),R(_=>{$(t,1,pe(e.elementClass)),T(L,"srcset",_),T(L,"alt",e.alt),T(L,"loading",e.loading)},[()=>e.image.getSrcset({width:e.widths.default,quality:e.quality})]),tr("error",L,function(..._){e.onerror?.apply(this,_)}),rr(L),f(s,t),W()}var Va=y('<div class="play-icon translucent-floating-appearance svelte-1ekia47"><!></div>'),$a=y('<a rel="ugc nofollow"> </a>'),eo=y('<article><div class="contents svelte-1ekia47"><div class="image-container svelte-1ekia47"><!> <div class="floating-type-pill translucent-floating-appearance" dir="ltr"> </div> <!></div> <div class="text"><!> <p class="description svelte-1ekia47"> </p></div></div></article>');function St(s,e){K(e,!0);let t=Q(e,"headingLevel",3,3),r=Q(e,"style",3,"normal"),n=Q(e,"enablePlayIcon",3,!1),l=Q(e,"additionalAnalyticsProps",19,()=>({})),h=S(()=>n()&&e.resource.type===E.video),g=$t(!1);var d=eo();let P;var m=i(d),x=i(m),C=i(x);{var w=A=>{et(A,{get image(){return e.resource.image},alt:"",widths:{xs:395,sm:419,md:325,lg:437,xl:345,xxl:389,default:432},loading:"lazy",onerror:()=>{yt(g,!0)}})},b=A=>{Ma(A,{get type(){return e.resource.type}})};p(C,A=>{e.resource.image&&!o(g)?A(w):A(b,-1)})}var L=c(C,2),_=i(L,!0);a(L);var B=c(L,2);{var j=A=>{var q=Va(),k=i(q);{let re=S(()=>je(V.Play));fe(k,{get icon(){return o(re)}})}a(q),f(A,q)};p(B,A=>{o(h)&&A(j)})}a(x);var G=c(x,2),F=i(G);pt(F,()=>t()===3?"h3":"h4",!1,(A,q)=>{$(A,0,"title svelte-1ekia47");var k=$a(),re=i(k,!0);a(k),R(Pe=>{$(k,1,Pe,"svelte-1ekia47"),T(k,"href",e.resource.trackableLink),N(re,e.resource.title)},[()=>pe(["clickable-link-area-anchor",ue("Resource Click",{...l(),resource_type:e.resource.type,resource_id:e.resource.id,resource_featured:(!!e.resource.feature).toString(),...ge(ee.data.story)})])]),f(q,k)});var te=c(F,2),ne=i(te,!0);a(te),a(G),a(m),a(d),R(A=>{P=$(d,1,"resource clickable-link-area svelte-1ekia47",null,P,{compact:r()==="compact"}),N(_,A),L.dir=L.dir,N(ne,e.resource.description)},[()=>va(e.resource.type)]),f(s,d),W()}const to=(s,e=Te)=>{const t=S(()=>!!e().feature?.title||!!e().feature?.body);var r=oo(),n=i(r);{var l=d=>{var P=ao(),m=i(P);{var x=b=>{var L=ro(),_=i(L,!0);a(L),R(()=>N(_,e().feature.title)),f(b,L)};p(m,b=>{e().feature?.title&&b(x)})}var C=c(m,2);{var w=b=>{ve(b,{get content(){return e().feature.body}})};p(C,b=>{e().feature?.body&&b(w)})}a(P),f(d,P)};p(n,d=>{o(t)&&d(l)})}var h=c(n,2),g=i(h);{let d=S(()=>e().feature?.title?4:3),P=S(()=>o(t)?"compact":"normal");St(g,{get headingLevel(){return o(d)},get style(){return o(P)},enablePlayIcon:!0,additionalAnalyticsProps:{resource_in_section:"featured"},get resource(){return e()}})}a(h),a(r),f(s,r)};var ro=y('<h3 class="svelte-e0gj64"> </h3>'),ao=y('<div class="feature-text trim-child-margin-block-end svelte-e0gj64"><!> <!></div>'),oo=y('<div class="featured-resource svelte-e0gj64"><!> <div class="resource-wrapper svelte-e0gj64"><!></div></div>'),io=y('<aside class="featured-resources section-spacing svelte-e0gj64" aria-labelledby="featured-resources"><h2 class="connected-pill svelte-e0gj64" id="featured-resources"> </h2> <div class="grid internal-section-spacing svelte-e0gj64"></div></aside>');function no(s,e){K(e,!0);var t=io(),r=i(t),n=i(r);a(r);var l=c(r,2);ie(l,21,()=>e.resources,h=>
11h.id,(h,g)=>{to(h,()=>o(g))}),a(l),a(t),R(()=>N(n,`Featured ${e.resources.length===1?"resource":"resources"}`)),f(s,t),W()}var so=y('<img class="svelte-gkhzzh"/>'),co=y('<div class="no-logo svelte-gkhzzh"><div class="text-wrapper svelte-gkhzzh"> </div></div>'),lo=y('<!> <span class="sr-only">(External link)</span>',1),vo=y("<!> <!>",1);function ft(s,e){K(e,!0);let t=Q(e,"userGeneratedContent",3,!1);var r=Ze(),n=ae(r);pt(n,()=>e.href?"a":"div",!1,(l,h)=>{ar(l,w=>({class:w,title:`${e.name??""}${e.external?" (external link)":""}`,href:e.href||null,rel:t()?"ugc nofollow":null}),[()=>["org",...ue("Org Click",{org_id:e.id,...ge(ee.data.story)})]],void 0,void 0,"svelte-gkhzzh");var g=vo(),d=ae(g);{var P=w=>{var b=so();R((L,_)=>{T(b,"src",L),T(b,"srcset",_),T(b,"alt",e.name)},[()=>e.logo.getURL({height:64}).href,()=>e.logo.getSrcset({height:64})]),f(w,b)},m=w=>{var b=co(),L=i(b),_=i(L,!0);a(L),a(b),R(()=>N(_,e.name)),f(w,b)};p(d,w=>{e.logo?w(P):w(m,-1)})}var x=c(d,2);{var C=w=>{var b=lo(),L=ae(b);{let _=S(()=>je(V.ExternalLink));fe(L,{get icon(){return o(_)},class:"external-link-icon"})}ke(2),f(w,b)};p(x,w=>{e.external&&w(C)})}f(h,g)}),f(s,r),W()}var uo=y('<figure class="perspective svelte-1b510up"><blockquote class="trim-child-margin-block-start svelte-1b510up"><!></blockquote> <figcaption class="svelte-1b510up"><!></figcaption></figure>');function go(s,e){var t=uo(),r=i(t),n=i(r);ve(n,{get content(){return e.body}}),a(r);var l=c(r,2),h=i(l);xt(h,Je(()=>e.author)),a(l),a(t),f(s,t)}var ho=y('<li class="clickable-link-area svelte-11w4q3q"><!> <div class="text svelte-11w4q3q"><h3 class="svelte-11w4q3q"><a> </a></h3> <p class="svelte-11w4q3q"> </p></div></li>'),fo=y('<aside aria-labelledby="explore-more"><div class="contents svelte-11w4q3q"><div class="intro svelte-11w4q3q"><h2 id="explore-more" class="svelte-11w4q3q">Explore more on Kudos</h2></div> <ul class="svelte-11w4q3q"></ul></div></aside>');function mo(s,e){K(e,!1);let t=Q(e,"items",8),r=Q(e,"theme",24,()=>({textColor:"dark",color:"var(--color-grey-200)"}));Pt();var n=fo();let l,h;var g=i(n),d=c(i(g),2);ie(d,5,t,Ne,(P,m)=>{var x=ho(),C=i(x);{var w=F=>{et(F,{get image(){return o(m),me(()=>o(m).image)},alt:"",loading:"lazy",widths:{xs:430,default:192},quality:80})};p(C,F=>{o(m),me(()=>o(m).image)&&F(w)})}var b=c(C,2),L=i(b),_=i(L),B=i(_,!0);a(_),a(L);var j=c(L,2),G=i(j,!0);a(j),a(b),a(x),R(F=>{$(_,1,F,"svelte-11w4q3q"),T(_,"href",(o(m),me(()=>o(m).url))),N(B,(o(m),me(()=>o(m).title))),N(G,(o(m),me(()=>o(m).description)))},[()=>pe((Re(ue),o(m),Re(ge),Re(ee),me(()=>["clickable-link-area-anchor",...ue("Explore More Click",{related_item_showcase_key:o(m).showcaseKey,...ge(ee.data.story)})])))]),f(P,x)}),a(d),a(g),a(n),R(()=>{l=$(n,1,"fake-subgrid section-spacing block-with-bg svelte-11w4q3q",null,l,{"darker-bg":r()?.textColor==="light","has-bg-color":r()?.color}),h=wt(n,"",h,{"--theme-color":(Re(r()),me(()=>r()?.color))})}),f(s,n),W()}var yo=y('<img class="logo svelte-gygcht" alt=""/>'),_o=y('<div class="hero-image-container svelte-gygcht"><!> <!></div>'),bo=y("<a> </a>"),wo=y('<div class="edit-button svelte-gygcht"><!></div>'),ko=y(`<aside class="info-banner author-notice darker-bg full-bleed central-column section-spacing-vars svelte-gygcht" aria-label="Page not live"><div class="info-banner-contents hanging-icon-container svelte-gygcht"><span class="hanging-icon svelte-gygcht"><!></span> <p>This page is not live yet. It can only be viewed by project
12				collaborators.</p></div></aside>`),po=y('<aside class="info-banner full-bleed important-info-cta central-column section-spacing-vars svelte-gygcht" dir="auto" aria-label="Important information about this Story"><div class="info-banner-contents hanging-icon-container svelte-gygcht"><span class="hanging-icon svelte-gygcht"><!></span> <!></div></aside>'),Po=y('<section class="central-column section-spacing svelte-gygcht" dir="auto" aria-labelledby="wia"><h2 id="wia" dir="ltr" class="svelte-gygcht">What is it about?</h2> <div class="wia main-text trim-child-margin-block svelte-gygcht"><!></div></section>'),Io=y('<section class="central-column section-spacing svelte-gygcht" dir="auto" aria-labelledby="wii"><h2 dir="ltr" id="wii" class="svelte-gygcht">Why is it important?</h2> <div class="main-text trim-child-margin-block svelte-gygcht"><!></div></section>'),xo=y('<section class="central-column section-spacing svelte-gygcht" dir="auto" aria-labelledby="perspectives"><h2 dir="ltr" id="perspectives" class="svelte-gygcht">Perspectives</h2> <div class="perspectives-wrapper svelte-gygcht"></div></section>'),So=y('<section class="central-column section-spacing ruled-block svelte-gygcht" dir="auto" aria-labelledby="briefings"><div class="ruled-block-inset-rule svelte-gygcht"><h2 dir="ltr" id="briefings" class="svelte-gygcht">Audience briefings<sup class="count svelte-gygcht"> <span class="sr-only">total</span></sup></h2> <!></div></section>'),Lo=y('<p class="resources-info-body svelte-gygcht"> </p>'),Ro=y("<p>This Story has no resources</p>"),Co=y(`<section class="ruled-block resources section-spacing
13		 svelte-gygcht" dir="auto" aria-labelledby="resources"><h2 dir="ltr" id="resources" class="svelte-gygcht">Resources<sup class="count svelte-gygcht"> <span class="sr-only">total</span></sup></h2> <!> <!></section>`),Uo=y('<li class="svelte-gygcht"><!></li>'),Bo=y('<ul class="author-list svelte-gygcht"></ul>'),Eo=y("<li><!></li>"),To=y('<li class="svelte-gygcht"><a rel="ugc nofollow"> </a></li>'),Do=y('<div class="trim-child-margin-block-end"><!> <ul class="important-info-links svelte-gygcht"></ul> <!></div>'),No=y('<section class="important-info central-column section-spacing svelte-gygcht" aria-labelledby="important-info" dir="auto"><div class="section-content main-text svelte-gygcht"><h2 id="important-info" class="svelte-gygcht"> </h2> <!></div></section>'),jo=y('<header class="darker-bg full-bleed svelte-gygcht" dir="auto"><div><div class="title svelte-gygcht"><div class="type svelte-gygcht" dir="ltr"> </div> <hgroup class="svelte-gygcht"><h1 class="svelte-gygcht"> </h1> <p class="svelte-gygcht"> </p></hgroup></div> <!> <div class="metadata svelte-gygcht"><p class="doi svelte-gygcht">DOI: <!></p> <!></div></div></header> <!> <!> <div class="central-column breadcrumbs-positioning svelte-gygcht"><div class="breadcrumbs-wrapper svelte-gygcht"><!></div></div> <div class="central-column svelte-gygcht"><div class="svelte-gygcht"><!></div></div> <!> <!> <!> <!> <!> <!> <section class="contact darker-bg full-bleed central-column section-spacing block-with-bg svelte-gygcht" dir="auto" aria-label="Author information and sharing"><div class="section-content svelte-gygcht"><h2 dir="ltr" class="svelte-gygcht">Who is involved?</h2> <!> <ul class="org-list svelte-gygcht"><li><!></li> <!></ul> <hr class="asterisks svelte-gygcht"/> <!></div></section> <!> <!>',1);function hi(s,e){K(e,!0);const t=()=>bt(h,"$session",r),[r,n]=_t(),l=Object.freeze({default:{rows:2,columns:1},sm:{rows:2,columns:2},lg:{rows:2,columns:3}}),h=Gr(),g=S(()=>!!e.data.story.heroImage||!!e.data.story.logo),d=$e.withDefaultDependencies(fetch);er(()=>{d.recordPageView(e.data.story)});var P=jo(),m=ae(P),x=i(m);let C;var w=i(x),b=i(w),L=i(b,!0);a(b);var _=c(b,2),B=i(_),j=i(B,!0);a(B);var G=c(B,2),F=i(G,!0);a(G),a(_),a(w);var te=c(w,2);{var ne=v=>{var u=_o(),I=i(u);{var U=Y=>{et(Y,{get image(){return e.data.story.heroImage.image},elementClass:"hero-image",alt:"",widths:{xs:431,sm:575,md:690,lg:387,xl:483,xxl:544,default:605},quality:80})};p(I,Y=>{e.data.story.heroImage&&Y(U)})}var D=c(I,2);{var O=Y=>{var H=yo();R(M=>T(H,"src",M),[()=>e.data.story.logo.getURL({width:224}).href]),f(Y,H)};p(D,Y=>{e.data.story.logo&&Y(O)})}a(u),f(v,u)};p(te,v=>{o(g)&&v(ne)})}var A=c(te,2),q=i(A),k=c(i(q));{var re=v=>{var u=bo(),I=i(u,!0);a(u),R(()=>{T(u,"href",`https://dx.doi.org/${e.data.story.doi??""}`),N(I,e.data.story.doi)}),f(v,u)},Pe=v=>{var u=Ce("—");f(v,u)};p(k,v=>{e.data.story.doi?v(re):v(Pe,-1)})}a(q);var be=c(q,2);{var Ae=v=>{var u=wo(),I=i(u);Ar(I,{get href(){return e.data.story.editURL},text:"Edit Story",get icon(){return V.Pencil},wrap:!1,role:"edit"}),a(u),f(v,u)};p(be,v=>{e.data.story.userCanEdit&&v(Ae)})}a(A),a(x),a(m);var Ie=c(m,2);{var Fe=v=>{var u=ko(),I=i(u),U=i(I),D=i(U);fe(D,{get icon(){return Dr}}),a(U),ke(2),a(I),a(u),f(v,u)};p(Ie,v=>{e.data.story.isPublic||v(Fe)})}var Be=c(Ie,2);{var qe=v=>{var u=po(),I=i(u),U=i(I),D=i(U);fe(D,{get icon(){return Nr},class:"hanging-icon"}),a(U);var O=c(U,2);{let Y=S(()=>e.data.complianceDisclaimer?.inPageStatement??null);
13Ea(O,{get inPageStatement(){return o(Y)},get info(){return e.data.story.importantInfo}})}a(I),a(u),R(()=>u.dir=u.dir),f(v,u)};p(Be,v=>{(e.data.story.importantInfo||e.data.complianceDisclaimer?.inPageStatement)&&v(qe)})}var z=c(Be,2),se=i(z),Lt=i(se);{let v=S(()=>[{label:"Home",href:"/"},{label:e.data.primaryParentShowcaseBranding.listingTitle,href:e.data.story.primaryParentShowcase.toURL(),shrinkable:!0},{label:"Story"}]);jr(Lt,{get breadcrumbs(){return o(v)}})}a(se),a(z);var ze=c(z,2),tt=i(ze),Rt=i(tt);{let v=S(()=>t().user?.isLoggedIn);zr(Rt,{get loggedIn(){return o(v)}})}a(tt),a(ze);var rt=c(ze,2);{var Ct=v=>{var u=Po(),I=i(u),U=c(I,2),D=i(U);ve(D,{get content(){return e.data.story.whatsItAbout}}),a(U),a(u),R(()=>{I.dir=I.dir,u.dir=u.dir}),f(v,u)};p(rt,v=>{e.data.story.whatsItAbout&&v(Ct)})}var at=c(rt,2);{var Ut=v=>{no(v,{get resources(){return e.data.story.featuredResources}})};p(at,v=>{e.data.story.featuredResources.length&&v(Ut)})}var ot=c(at,2);{var Bt=v=>{var u=Io(),I=i(u),U=c(I,2),D=i(U);ve(D,{get content(){return e.data.story.whysItImportant}}),a(U),a(u),R(()=>{I.dir=I.dir,u.dir=u.dir}),f(v,u)};p(ot,v=>{e.data.story.whysItImportant&&v(Bt)})}var it=c(ot,2);{var Et=v=>{var u=xo(),I=i(u),U=c(I,2);ie(U,21,()=>e.data.story.perspectives,D=>D.id,(D,O)=>{go(D,Je(()=>o(O)))}),a(U),a(u),R(()=>{I.dir=I.dir,u.dir=u.dir}),f(v,u)};p(it,v=>{e.data.story.perspectives.length&&v(Et)})}var nt=c(it,2);{var Tt=v=>{var u=So(),I=i(u),U=i(I),D=c(i(U)),O=i(D);ke(),a(D),a(U);var Y=c(U,2);ie(Y,17,()=>e.data.story.briefings,H=>H.id,(H,M)=>{za(H,{get briefing(){return o(M)}})}),a(I),a(u),R(()=>{N(O,`${e.data.story.briefings.length??""} `),U.dir=U.dir,u.dir=u.dir}),f(v,u)};p(nt,v=>{e.data.story.briefings.length&&v(Tt)})}var st=c(nt,2);{var Dt=v=>{var u=Co(),I=i(u),U=c(i(I)),D=i(U);ke(),a(U),a(I);var O=c(I,2);{var Y=M=>{var ce=Lo(),Se=i(ce,!0);a(ce),R(()=>N(Se,e.data.story.resourcesInfoBody)),f(M,ce)};p(O,M=>{e.data.story.resourcesInfoBody&&M(Y)})}var H=c(O,2);{const M=Z=>{var oe=Ro();f(Z,oe)},ce=(Z,oe)=>{let X=()=>(oe?.()).item;St(Z,{get resource(){return X()}})};let Se=S(()=>ht(Object.entries(l).map(([Z,{rows:oe,columns:X}])=>[Z,oe*X]))),Le=S(()=>({name:"grid",columns:ht(Object.entries(l).map(([Z,{columns:oe}])=>[Z,oe]))}));Fr(H,{id:"resources",get items(){return e.data.story.resources},getKey:Z=>Z.id,get initialCount(){return o(Se)},get layout(){return o(Le)},itemName:{singular:"resource",plural:"resources"},empty:M,item:ce,$$slots:{empty:!0,item:!0}})}a(u),R(()=>{N(D,`${e.data.story.resources.length??""} `),I.dir=I.dir,u.dir=u.dir}),f(v,u)};p(st,v=>{e.data.story.resources.length&&v(Dt)})}var xe=c(st,2),ct=i(xe),Ge=i(ct),lt=c(Ge,2);{var Nt=v=>{var u=Bo();ie(u,21,()=>e.data.story.contributors,I=>I.id,(I,U)=>{var D=Uo(),O=i(D);xt(O,Je(()=>o(U))),a(D),f(I,D)}),a(u),f(v,u)};p(lt,v=>{e.data.story.contributors.length&&v(Nt)})}var Oe=c(lt,2),Ye=i(Oe),jt=i(Ye);{let v=S(()=>e.data.story.primaryParentShowcase.toURL());ft(jt,{get id(){return e.data.story.container.id},get name(){return e.data.story.container.name},get href(){return o(v)},get logo(){return e.data.story.container.logo}})}a(Ye);var At=c(Ye,2);ie(At,17,()=>e.data.story.partners,v=>v.id,(v,u)=>{var I=Eo(),U=i(I);{let D=S(()=>o(u).hasExternalURL(ee.url));ft(U,{get id(){return o(u).id},get name(){return o(u).name},get href(){return o(u).url},get logo(){return o(u).image},get external(){return o(D)},userGeneratedContent:!0})}a(I),f(v,I)}),a(Oe);var Ft=c(Oe,4);{let v=S(()=>({email:e.data.story.contactInfo.email,web:{url:e.data.story.contactInfo.url,external:e.data.story.contactInfo.hasExternalURL(ee.url)}}));La(Ft,{storyTitle:"data.story.title,",get pageURL(){return ee.url},get contact(){return o(v)}})}a(ct),a(xe);var dt=c(xe,2);{var qt=v=>{var u=No(),I=i(u),U=i(I),D=i(U,!0);a(U);var O=c(U,2);qr(O,{id:"important-info-cta",additionalContent:H=>{var M=Do(),ce=i(M);{var Se=X=>{{let we=S(()=>e.data.story.importantInfo?.bodyRemainder);ve(X,{get content(){return o(we)}})}};p(ce,X=>{e.data.story.importantInfo?.bodyRemainder&&X(Se)})}var Le=c(ce,2);ie(Le,21,()=>e.data.story.importantInfo?.links,Ne,(X,we)=>{var Me=To(),Xe=i(Me),Gt=i(Xe,!0);a(Xe),a(Me),R(()=>{T(Xe,"href",o(we).url),N(Gt,o(we).text)}),f(X,Me)}),a(Le);var Z=c(Le,2);{var oe=X=>{{let we=S(()=>e.data.story.importantInfo?.footer);ve(X,{get content(){return o(we)}})}};p(Z,X=>{e.data.story.importantInfo?.footer&&X(oe)})}a(M),f(H,M)},children:(H,M)=>{ve(H,{get content(){return e.data.story.importantInfo.bodyIntro}})},$$slots:{additionalContent:!0,default:!0}}),a(I),a(u),R(()=>{N(D,e.data.story.importantInfo.title),u.dir=u.dir}),f(v,u)};p(dt,v=>{e.data.story.importantInfo&&v(qt)})}var zt=c(dt,2);{let v=S(()=>[{showcaseKey:e.data.story.primaryParentShowcase.toShowcaseKey(),title:e.data.primaryParentShowcaseBranding.listingTitle,description:e.data.primaryParentShowcaseBranding.bannerText,url:e.data.story.primaryParentShowcase.toURL(),image:e.data.primaryParentShowcaseBranding.bannerImage},{showcaseKey:e.data.globalShowcaseRef.toShowcaseKey(),title:e.data.globalShowcaseBranding.listingTitle,description:e.data.globalShowcaseBranding.bannerText,url:e.data.globalShowcaseRef.toURL(),image:e.data.globalShowcaseBranding.bannerImage}]);mo(zt,{get items(){return o(v)},theme:{textColor:"dark",color:"var(--color-darken-xxs)"}})}
13R(v=>{C=$(x,1,"header-content svelte-gygcht",null,C,{"with-image":o(g)}),N(L,v),b.dir=b.dir,N(j,e.data.story.title),N(F,e.data.story.container.name),m.dir=m.dir,Ge.dir=Ge.dir,xe.dir=xe.dir},[()=>Jt(e.data.story.type)]),f(s,P),W(),n()}export{hi as component,gi as universal};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.