1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6168],{36168:(e,t,i)=>{i.d(t,{generateAssessmentBriefing:()=>a});var s=i(64059);let a=async e=>(0,s.c)(e,(0,s.m)(e.title,e.id,"results"))},64059:(e,t,i)=>{i.d(t,{c:()=>C,m:()=>c});let s=83/32*28,a=[21,38,46],o=[116,119,119],h=[222,224,226],l=[213,0,14],r={green:[0,74,26],red:l,charcoal:a},c=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"briefing",s=(e||t||"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return s?`${s}-${i}.pdf`:`${i}.pdf`};class n{ensureRoom(e){this.y+e>801.89&&(this.doc.addPage(),this.y=40)}advance(e){this.y+=e}text(e,t,i){this.doc.setFont("helvetica",i.bold?"bold":"normal"),this.doc.setFontSize(i.size);let[s,o,h]=i.color??a;this.doc.setTextColor(s,o,h),this.doc.text(e,t,this.y,i.charSpace?{charSpace:i.charSpace}:{})}paragraph(e,t){this.doc.setFont("helvetica","normal"),this.doc.setFontSize(t.size);let[i,s,o]=t.color??a;this.doc.setTextColor(i,s,o),this.doc.splitTextToSize(e,515.28).forEach(e=>{this.ensureRoom(t.lineHeight),this.doc.text(e,40,this.y),this.advance(t.lineHeight)})}rule(){let[e,t,i]=h;this.doc.setDrawColor(e,t,i),this.doc.setLineWidth(.75),this.doc.line(40,this.y,555.28,this.y)}sectionTitle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ensureRoom(54),this.advance(24),this.text(e,40,{size:12.5,bold:!0}),t.rule?(this.advance(6),this.rule(),this.advance(12)):this.advance(8)}row(e){this.doc.setFont("helvetica","normal"),this.doc.setFontSize(10);let t=this.doc.splitTextToSize(e.label,234),i=Math.max(13*Math.max(t.length,1),13+12*!!e.caption)+8;this.ensureRoom(i);let s=this.y,[a,l,c]=h;this.doc.setDrawColor(a,l,c),this.doc.setLineWidth(.75),this.doc.rect(40,s,515.28,i),this.doc.line(290,s,290,s+i);let n=s+4+8.5;this.y=n,t.forEach((e,i)=>{this.text(e,48,{size:10,color:o}),i<t.length-1&&this.advance(13)}),this.y=n,this.text(e.value,298,{size:10,bold:!0,color:r[e.valueTone??"charcoal"]}),e.caption&&(this.advance(12),this.text(e.caption,298,{size:9,color:r[e.captionTone??"green"]})),this.y=s+i}article(e){this.ensureRoom(56),this.advance(16),this.text(e.title,40,{size:11,bold:!0}),e.tag&&(this.advance(12),this.text(e.tag.toUpperCase(),40,{size:8.5,bold:!0,color:l,charSpace:.5})),e.body&&(this.advance(14),this.paragraph(e.body,{size:10,lineHeight:13.5}))}section(e){var t,i,s;let a=!!(null==(t=e.rows)?void 0:t.length);e.title?this.sectionTitle(e.title,{rule:!a}):this.advance(16),e.body&&this.paragraph(e.body,{size:10,lineHeight:13.5}),null==(i=e.rows)||i.forEach(e=>this.row(e)),null==(s=e.articles)||s.forEach(e=>this.article(e))}header(e,t){t&&(this.doc.addImage(t,"PNG",40,this.y,s,28),this.advance(56)),e.eyebrow&&(this.text(e.eyebrow.toUpperCase(),40,{size:9,bold:!0,color:l,charSpace:.6}),this.advance(27)),e.title&&(this.doc.setFont("helvetica","bold"),this.doc.setFontSize(18),this.doc.splitTextToSize(e.title,515.28).forEach(e=>{this.advance(3),this.text(e,40,{size:18,bold:!0}),this.advance(17)})),this.text(e.generatedAt,40,{size:9,color:o}),this.advance(6)}summary(e){this.sectionTitle(e.title,{rule:!0}),this.paragraph(e.text,{size:10,lineHeight:13.5})}disclaimer(e){this.ensureRoom(40),this.advance(20),this.paragraph(e,{size:9,lineHeight:12,color:o})}constructor(e){this.doc=e,this.y=40}}let d=async()=>{try{let e=new Image,t=`data:image/svg+xml;charset=utf-8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 83 32" fill="#ed0c0c"><path fill-rule="evenodd" clip-rule="evenodd" d="M54.5106 11.0775C60.6635 11.0775 65.5878 15.1796 65.5878 21.5388C65.5878 27.8977 60.6635 32 54.5106 32C48.3556 32 43.4328 27.8977 43.4328 21.5388C43.4328 15.1796 48.3556 11.0775 54.5106 11.0775ZM54.5106 26.5852C57.5873 26.5852 59.4341 24.5334 59.4341 21.5388C59.4341 18.5435 57.5873 16.4927 54.5106 16.4927C51.4323 16.4927 49.5876 18.5435 49.5876 21.5388C49.5876 24.5334 51.4323 26.5852 54.5106 26.5852Z"/><path d="M0 11.5695H6.15408V31.5086H0V11.5695Z"/><path d="M9.43881 11.5693H15.3467V13.401C15.3467 13.401 16.3728 11.0776 21.2545 11.077C27.4902 11.0765 28.6394 15.1793 28.6394 20.5136V31.5081H22.486V21.7439C22.486 19.4461 22.4447 16.4927 19.2853 16.4927C16.0849 16.4927 15.5929 18.9951 15.5929 21.58V31.5081H9.43881V11.5693Z"/><path d="M39.7191 0C33.0319 0 31.9245 3.69176 31.9245 8.04105L31.9244 31.5079H38.0785V16.4927H42.632V11.5691H38.0785V8.41038C38.0785 5.78476 39.0628 5.16906 41.0318 5.16906C41.7705 5.16906 42.3443 5.33281 43.0422 5.57933L43.3298 0.369326C42.1815 0.0815736 40.9495 0 39.7191 0Z"/><path d="M74.1523 11.5693H67.9987V31.5081H74.1523V23.3985C74.1523 19.4199 74.7274 16.0548 79.4043 16.0548C80.3066 16.0548 81.1679 16.2186 82.03 16.4648V11.0629C75.7579 10.7934 74.1523 13.312 74.1523 13.312V11.5693Z"/><path d="M5.49145e-05 4.99841L6.15399 0.781971V8.285H5.49145e-05V4.99841Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M76.4786 29.278L76.4567 30.7389L76.7517 30.7434L76.7593 30.2396L77.0544 30.244L77.2987 30.7516L77.6298 30.7565L77.3077 30.1542C77.3897 30.1267 77.4552 30.0773 77.5042 30.006C77.5534 29.93 77.5786 29.8488 77.5799 29.7624C77.5825 29.5897 77.5291 29.4689 77.4197 29.4001C77.3105 29.3265 77.1791 29.2885 77.0255 29.2862L76.4786 29.278ZM76.9499 30.0121L76.7627 30.0093L76.77 29.5271L76.9715 29.5301C77.0818 29.5318 77.1583 29.5545 77.2008 29.5984C77.2433 29.6422 77.2641 29.7001 77.263 29.772C77.2606 29.9352 77.1562 30.0152 76.9499 30.0121Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M76.2905 31.2619C76.495 31.385 76.7196 31.4483 76.9643 31.452C77.2138 31.4557 77.4426 31.3992 77.6507 31.2823C77.8588 31.1655 78.0244 31.0024 78.1475 30.7931C78.2755 30.5791 78.3416 30.3329 78.3457 30.0546C78.35 29.7715 78.2913 29.5235 78.1697 29.3105C78.053 29.0976 77.8923 28.9297 77.6878 28.8066C77.4833 28.6836 77.2563 28.6202 77.0068 28.6165C76.7621 28.6128 76.5357 28.6694 76.3276 28.7862C76.1195 28.9031 75.9514 29.0661 75.8235 29.2754C75.7004 29.4847 75.6367 29.7309 75.6325 30.0139C75.6283 30.2922 75.6846 30.5402 75.8013 30.7579C75.9229 30.9709 76.0859 31.1389 76.2905 31.2619ZM77.5102 31.0499C77.3504 31.1435 77.1698 31.1887 76.9683 31.1857C76.7667 31.1827 76.5851 31.132 76.4234 31.0336C76.2666 30.9352 76.1414 30.799 76.048 30.6248C75.9596 30.446 75.917 30.2438 75.9204 30.0183C75.9238 29.7928 75.9723 29.5943 76.0661 29.423C76.1647 29.2469 76.2939 29.1121 76.4537 29.0185C76.6183 28.9202 76.8014 28.8725 77.0029 28.8755C77.2044 28.8786 77.3836 28.9316 77.5404 29.0348C77.7021 29.1332 77.8296 29.2719 77.9229 29.4508C78.0163 29.625 78.0612 29.8248 78.0579 30.0503C78.0545 30.2758 78.0035 30.4766 77.9049 30.6527C77.8063 30.824 77.6748 30.9564 77.5102 31.0499Z"/></svg>')}`;await new Promise((i,s)=>{e.onload=()=>i(),e.onerror=()=>s(Error("logo svg failed to load")),e.src=t});let i=document.createElement("canvas");i.width=498,i.height=192;let s=i.getContext("2d");if(!s)return null;return s.drawImage(e,0,0,i.width,i.height),i.toDataURL("image/png")}catch{return null}},C=async(e,t)=>{try{let[{jsPDF:s},a]=await Promise.all([Promise.all([i.e(5033),i.e(3930),i.e(4233)]).then(i.bind(i,18831)),d()]),o=new s({unit:"pt",format:"a4",orientation:"portrait"}),h=new n(o);
1return h.header(e,a),e.sections.forEach(e=>h.section(e)),e.summary&&h.summary(e.summary),e.disclaimer&&h.disclaimer(e.disclaimer),o.save(t),"downloaded"}catch{return window.print(),"print-fallback"}}}}]);
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.