1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6478],{14890:(e,t,n)=>{n.d(t,{G:()=>r,a:()=>c});var a=n(54568);function r(e){switch(e){case"eu_de":case"eu":return{flag:"\uD83C\uDDE9\uD83C\uDDEA"};case"eu_ie":case"uk":return{flag:"\uD83C\uDDEE\uD83C\uDDEA"};case"california":return{flag:"california"};case"local_extension":return{icon:"local"};default:return{icon:"cloud"}}}function l(e){let{className:t="h-4 w-4"}=e;return(0,a.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"8.25",stroke:"currentColor",strokeWidth:"1.8"}),(0,a.jsx)("path",{d:"M4 12h16M12 3.75c2.1 2.2 3.15 4.95 3.15 8.25S14.1 18.05 12 20.25C9.9 18.05 8.85 15.3 8.85 12S9.9 5.95 12 3.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8"})]})}function s(e){let{className:t="h-4 w-4"}=e;return(0,a.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M5.5 8.5h13a2 2 0 0 1 2 2v5.75a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2V10.5a2 2 0 0 1 2-2Z",stroke:"currentColor",strokeWidth:"1.8"}),(0,a.jsx)("path",{d:"M8 8.5V7.25A4 4 0 0 1 12 3.25a4 4 0 0 1 4 4V8.5M8.5 13.5h.01M12 13.5h.01M15.5 13.5h.01",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8"}),(0,a.jsx)("path",{d:"M12 16.25v-2.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8"})]})}function i(e){let{className:t="h-4 w-4"}=e;return(0,a.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M7.8 18.2h9.1a4.1 4.1 0 0 0 .9-8.1 6 6 0 0 0-11.4-1.9A5 5 0 0 0 7.8 18.2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.8"})})}function o(e){let{className:t="h-4 w-5"}=e;return(0,a.jsxs)("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 28 20",children:[(0,a.jsx)("rect",{fill:"#fff8ea",height:"20",rx:"2.5",width:"28"}),(0,a.jsx)("path",{d:"M0 15h28v5H0z",fill:"#c9282d"}),(0,a.jsx)("path",{d:"m5.8 3.1.48 1.15 1.25.1-.95.82.29 1.22-1.07-.65-1.07.65.29-1.22-.95-.82 1.25-.1.48-1.15Z",fill:"#188553"}),(0,a.jsx)("path",{d:"M9.2 10.8h8.7c1.8 0 3.1-1.15 3.1-2.68 0-1.42-1.1-2.43-2.72-2.43h-4.5c-2.7 0-4.58 1.86-4.58 4.2v.91Z",fill:"#8b5b3e"}),(0,a.jsx)("path",{d:"M9.1 11.1h12.2",stroke:"#2f2f2f",strokeLinecap:"round",strokeWidth:"1"})]})}function c(e){let{flag:t,icon:n,selected:r}=e;return"cloud"===n?(0,a.jsx)(i,{className:r?"h-4 w-4 text-sky-600":"h-4 w-4 text-slate-500"}):"local"===n?(0,a.jsx)(s,{className:r?"h-4 w-4 text-sky-600":"h-4 w-4 text-slate-500"}):"california"===t?(0,a.jsx)(o,{className:"h-4 w-5 drop-shadow-[0_1px_1px_rgba(15,23,42,0.18)]"}):t?(0,a.jsx)("span",{className:"text-base leading-none",children:t}):(0,a.jsx)(l,{className:r?"h-4 w-4 text-sky-600":"h-4 w-4 text-slate-400"})}n(7620)},32200:(e,t,n)=>{n.d(t,{Em:()=>o,qG:()=>s});var a=n(15271),r=n(74737);let l={evidence:0x4000000},s="Fresh visit, no consent action.";r.YO(r.Ik({stage:r.k5(["robots","sitemap","discovery"]),path:r.Yj().max(256).nullable(),status:r.ai().int().min(100).max(599).nullable(),reason:r.k5(["redirect_not_followed","http_error","rate_limited","network_guard","timeout","byte_limit","fetch_failed","invalid_sitemap","invalid_robots","crawl_delay_exceeds_budget","internal_error"])})).max(32);class i extends Error{constructor(e,t,n="fullSite"){super(e),this.status=t,this.field=n}}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(t,n,a,r){let l=e["CERTSCORE_FULL_SITE_".concat(t)];if(void 0===l||""===l)return n;let s=Number(l);if(!Number.isSafeInteger(s)||s<a||s>r)throw Error("Invalid CERTSCORE_FULL_SITE_".concat(t));return s}let n=t("MAX_PAGES",500,10,2e3),a=t("MAX_CONCURRENCY",12,4,12),r=t("MIN_WAIT_SECONDS",3,1,60);return{maxPages:{min:1,max:n,default:t("DEFAULT_PAGES",10,1,n)},concurrency:{min:1,max:a,default:4},waitSeconds:{min:r,max:300,default:Math.max(3,r)},discoveredUrls:t("MAX_DISCOVERED_URLS",5e3,n,2e4),wallClockSeconds:t("MAX_SECONDS",14400,300,86400),pageSeconds:20,leaseSeconds:30,maxRetries:t("MAX_RETRIES",1,0,2),sitemapDocuments:25,discoveryBytes:2097152,maxQueryVariants:50,maxSectionPages:50,maxBackoffSeconds:900}}();if((void 0!==e.fullSite&&!1!==e.fullSite||void 0!==e.crawlOptions)&&!t)throw new i("This scan option is unavailable.",403);if(void 0!==e.fullSite&&"boolean"!=typeof e.fullSite)throw new i("Invalid scan option.",400);if(!0!==e.fullSite)return{fullSite:!1};let a=void 0===e.crawlOptions?{}:e.crawlOptions;if(!a||"object"!=typeof a||Array.isArray(a))throw new i("Invalid crawl options.",400,"crawlOptions");
1if(Object.keys(a).some(e=>!["maxPages","concurrency","waitSeconds"].includes(e)))throw new i("Unknown crawl option.",400,"crawlOptions");let r={};for(let e of["maxPages","concurrency","waitSeconds"]){let t=a[e],l=void 0===t?n[e].default:t,s=n[e];if("number"!=typeof l||!Number.isFinite(l)||l<s.min||l>s.max||"waitSeconds"!==e&&!Number.isSafeInteger(l))throw new i("".concat(e," must be ").concat("waitSeconds"===e?"a number":"an integer"," between ").concat(s.min," and ").concat(s.max,"."),400,e);r[e]=l}return{fullSite:!0,crawlOptions:r}}let c=r.Yj().max(2e3),u=r.Ik({id:c,identity:c,kind:r.k5(["service","cookie","request","embed","storage","script"]),label:c,vendor:c.nullable(),domain:c.nullable(),serviceId:c.nullable(),purpose:c,resourceType:c,relationship:c,confidence:c,assessment:c,eventCount:r.ai().int().positive().default(1),firstSeenMs:r.ai().finite().nonnegative().nullable(),evidenceRefs:r.YO(c).max(20),graphNodeRefs:r.YO(c).max(20).optional(),networkDestinations:r.YO(a.Q5d).max(20).optional(),networkDestinationMissingCount:r.ai().int().nonnegative().optional(),networkDestinationsTruncated:r.zM().optional(),details:r.g1(r.KC([c,r.ai().finite(),r.zM(),r.ch()]))}).strict();r.Ik({contractVersion:r.eu("certscore.full-site-inventory.v1"),parentScanId:r.Yj().uuid(),pageJobId:r.Yj().uuid(),attemptId:r.Yj().uuid(),executionProfile:r.k5(["homepage_baseline","inventory_only"]),condition:r.eu(s),configurationHash:r.Yj().regex(/^[a-f0-9]{64}$/),requestedUrl:c,finalUrl:c.nullable(),startedAt:r.Yj().datetime(),completedAt:r.Yj().datetime(),status:r.k5(["completed","partial","blocked","failed"]),limitations:r.YO(c).max(50),sourceHash:r.Yj().regex(/^[a-f0-9]{64}$/),runtimeGraph:r.Ik({sourceSizeBytes:r.ai().int().positive().max(l.evidence),sha256:r.Yj().regex(/^[a-f0-9]{64}$/),nodeCount:r.ai().int().nonnegative().max(1e3),edgeCount:r.ai().int().nonnegative().max(2e3)}).strict().optional(),collectionSurfaces:r.Ik({inventory:a.xDw,sourceSizeBytes:r.ai().int().positive().max(l.evidence).optional(),snapshots:r.YO(a.CRF).max(a.UaS)}).strict().optional(),occurrences:r.YO(u).max(3e4),links:r.YO(c).max(5e3),redirects:r.YO(c).max(20),httpStatus:r.ai().int().nullable(),retryAfterSeconds:r.ai().nonnegative().nullable(),failureKind:r.k5(["rate_limit","challenge","http_error","navigation_timeout","collection_failure"]).nullable()}).strict()},51405:(e,t,n)=>{n.d(t,{M$:()=>m,UI:()=>i,ch:()=>o,fC:()=>x});var a=n(54568),r=n(7620),l=n(93010);let s=[[249,115,22],[250,204,21],[125,211,252],[34,197,94]];function i(e){let{className:t="text-white"}=e;return(0,a.jsxs)("span",{"aria-hidden":"true",className:"relative inline-flex h-4 w-4 shrink-0 items-center justify-center ".concat(t),children:[(0,a.jsx)("span",{className:"absolute inset-0 rounded-full border border-current/30 motion-reduce:animate-none"}),(0,a.jsx)("span",{className:"absolute inset-[2px] animate-spin rounded-full border-2 border-current/25 border-t-current motion-reduce:animate-none"}),(0,a.jsx)("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-current motion-reduce:animate-none"})]})}function o(e){let{compact:t=!1,onProgressValueChange:n,profileValue:r="standard",targetLabel:l=""}=e,{nowMs:s,startedAtMs:i}=p(!0);return(0,a.jsx)(c,{active:!0,compact:t,nowMs:s,onProgressValueChange:n,profileValue:r,startedAtMs:i,targetLabel:l})}function c(e){let{active:t,compact:n=!1,dense:o=!1,initialProgressValue:c,nowMs:p,onProgressValueChange:m,progressEstimate:x,profileValue:h="standard",progressStage:f,reportReady:g=!1,scanStatus:v,startedAtMs:b,targetLabel:w=""}=e,[j,y]=(0,r.useState)(()=>"hosted");(0,r.useEffect)(()=>{y((0,l.LO)(window.location.hostname))},[]);let k=(0,r.useMemo)(()=>(function(e){var t;let n=e.profileValue;return{estimatedDurationMs:"local"===(null!=(t=e.runtime)?t:"hosted")?"tiny"===n?8e3:"standard"===n?13500:"policy"===n?18e3:"consent"===n?2e4:22e3:"tiny"===n?12e3:"standard"===n?24e3:"policy"===n?3e4:"consent"===n?34e3:36e3,modeLabel:"".concat(n," scan")}})({profileValue:h,runtime:j}),[h,j]),[S,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{if(!w)return void N(null);try{N((0,l.jX)({profileValue:h,runtime:j,storage:window.localStorage,target:w}))}catch(e){N(null)}},[h,j,w]);let M=null!=x?x:null===S?k:{estimatedDurationMs:S,modeLabel:"".concat(h," scan")},C=null!==b?Math.max(0,p-b):0,_=Math.floor(C/1e3),E=function(e){let t=Math.max(0,e.elapsedMs)/Math.max(6e3,e.estimatedDurationMs);return t<.34?"preparing scanner":t<.7?"capturing page evidence":t<.88?"checking policies":"processing retained evidence"}({elapsedMs:C,estimatedDurationMs:M.estimatedDurationMs}),L=function(e){let t=e.scanStatus,n="string"==typeof t,a=e.delayed&&!n,r="prepare"===e.progressStage?0:"scan"===e.progressStage?1:"review"===e.progressStage?2:"report"===e.progressStage||"complete"===e.progressStage?3:null,l=null!=r?r:"queued"===t?0:"running"===t?1:"processing"===t?2:e.reportReady?3:null,s=null!=l?l:"preparing scanner"===e.phase?0:"capturing page evidence"===e.phase?1:"checking policies"===e.phase?2:3,i=e.reportReady,o=i?"Completing scanâ¦":a?"Still working through the scan":n?["Queued for scan","Scanning website","Reviewing scan signals","Preparing your report"][s]:["Getting things ready","Capturing page evidence","Checking policies and trackers","Building your report"][s],c=i?"Opening your reportâ¦":a?"Progress will continue while the remaining evidence is processed.":n?["Waiting for a scanner to start.","Capturing page evidence and website signals.","Processing the retained scan evidence.","Preparing the report for review."][s]:"Step ".concat(s+1," of ").concat(u.length),d=i?u.length-1:s;return{ariaLabel:i?"Scan complete, opening report":a?"Scan is taking longer than usual":"Scan progress: step ".concat(d+1," of ").concat(u.length),ariaValueText:"".concat(c),detail:c,label:o,steps:u.map((e,t)=>
1({complete:t<=d,current:t===d,colorClass:t<d?"bg-sky-400":t===d?"bg-sky-500":e.colorClass,label:e.label})),currentStep:d}}({delayed:C>1.35*M.estimatedDurationMs,phase:E,progressStage:f,reportReady:g,scanStatus:v}),R=function(e){if(e.reportReady)return 100;let t=Math.max(0,e.elapsedMs),n=t/Math.max(2e3,e.estimatedDurationMs);return Math.round(10*Math.min(98.5,Math.max(0,Math.max(n<=1?96*n:96+2.5*(1-Math.exp(-(1.5*(n-1)))),(e.progressStage?d[e.progressStage]:0)*Math.min(1,t/750)))))/10}({elapsedMs:C,estimatedDurationMs:M.estimatedDurationMs,progressStage:f,reportReady:g}),O=null!=c?c:0,[I,D]=(0,r.useState)(()=>Math.max(O,R));return((0,r.useEffect)(()=>{t&&D(e=>Math.max(e,O,R))},[t,R,O]),(0,r.useEffect)(()=>{null==m||m(I)},[I,m]),t)?(0,a.jsxs)("div",{"aria-live":"polite",className:n?"rounded-xl border border-slate-200 bg-white px-3 py-2 shadow-sm":o?"rounded-xl border border-slate-200 bg-slate-50 px-3 py-2":"rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3",children:[(0,a.jsxs)("div",{className:n||o?"flex items-center justify-between gap-3 text-xs font-medium text-slate-600":"flex items-center justify-between gap-3 text-sm font-medium text-slate-700",children:[(0,a.jsx)("span",{className:"min-w-0 truncate",children:L.label}),(0,a.jsxs)("span",{className:"inline-flex shrink-0 items-center gap-1.5",children:[(0,a.jsx)(i,{className:"text-sky-500"}),(0,a.jsxs)("span",{children:[_,"s elapsed"]})]})]}),n?null:(0,a.jsx)("p",{className:o?"mt-0.5 text-[11px] text-slate-500":"mt-1 text-xs text-slate-500",children:L.detail}),(0,a.jsx)("div",{"aria-label":L.ariaLabel,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":I,"aria-valuetext":L.ariaValueText,className:n||o?"mt-2 h-2 overflow-hidden rounded-full bg-slate-200":"mt-3 h-2.5 overflow-hidden rounded-full bg-slate-200",role:"progressbar",children:(0,a.jsx)("div",{className:"h-full rounded-full transition-[width,background-color]",style:{backgroundColor:function(e){let t=Math.min(Math.max(e,0),100)/100,n=s.length-1,a=t*n,r=Math.min(Math.floor(a),n-1),l=a-r,i=s[r],o=s[r+1],c=i.map((e,t)=>Math.round(e+(o[t]-e)*l));return"rgb(".concat(c.join(", "),")")}(I),transitionDuration:"".concat(g?180:300,"ms"),transitionTimingFunction:"linear",width:"".concat(I,"%")}})}),(0,a.jsx)("div",{className:n||o?"mt-2 flex items-center justify-between gap-2":"mt-3 flex items-center justify-between gap-3","aria-hidden":"true",children:L.steps.map(e=>(0,a.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 truncate text-[10px] ".concat(e.current?"font-semibold text-sky-700":"text-slate-400"),children:[(0,a.jsx)("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full transition-colors duration-300 ".concat(e.colorClass)}),n?null:e.label]},e.label))})]}):null}let u=[{colorClass:"bg-slate-200",label:"Prepare",value:18},{colorClass:"bg-slate-200",label:"Scan",value:52},{colorClass:"bg-slate-200",label:"Review",value:76},{colorClass:"bg-slate-200",label:"Report",value:92}],d={prepare:0,scan:4,review:78,report:92,complete:96};function p(e){let[t,n]=(0,r.useState)(null),[a,l]=(0,r.useState)(0);return(0,r.useEffect)(()=>{if(!e)return void n(null);n(e=>null!=e?e:Date.now()),l(Date.now());let t=window.setInterval(()=>{l(Date.now())},250);return()=>{window.clearInterval(t)}},[e]),{nowMs:a,startedAtMs:t}}function m(e){let{createdAt:t,initialProgressValue:n,profileValue:l="standard",progressStage:s,reportReady:i=!1,revealProgress:o=!0,scanStatus:u,startedAt:d,startedAtMs:m,targetLabel:x=""}=e,{nowMs:h,startedAtMs:f}=p(!0),g=(0,r.useMemo)(()=>{if(null!=m&&Number.isFinite(m))return m;let e=d?Date.parse(d):NaN;if(Number.isFinite(e))return e;let n=t?Date.parse(t):NaN;return Number.isFinite(n)?n:f},[t,m,f,d]);return(0,a.jsxs)("section",{"aria-live":"polite",className:"rounded-2xl border border-sky-200 bg-white p-3 shadow-[0_14px_44px_-30px_rgba(14,165,233,0.4)] transition-opacity duration-300 ".concat(o?"opacity-100":"opacity-0"),"data-density":"compact",children:[(0,a.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("div",{className:"min-w-0 space-y-1",children:(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.18em] text-sky-600",children:"Scan in progress"})}),(0,a.jsx)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-sky-200 bg-sky-50 px-2.5 py-0.5 text-[11px] font-semibold text-sky-800",children:"review"===s?"Reviewing...":"report"===s||"complete"===s?"Preparing report...":"prepare"===s?"Preparing...":"Scanning..."})]}),(0,a.jsx)(c,{active:!0,dense:!0,initialProgressValue:n,nowMs:h,profileValue:l,progressStage:s,reportReady:i,scanStatus:u,startedAtMs:g,targetLabel:x})]})}function x(e){return"tiny"===e?"tiny":"standard"}}
1,84012:(e,t,n)=>{n.d(t,{M:()=>m});var a=n(54568),r=n(7620),l=n(27541),s=n(32200);let i=[["maxPages","Max pages"],["concurrency","Concurrency"],["waitSeconds","Scan lag (sec)"]];function o(e){let{onChange:t,active:n=!1}=e,l=(0,r.useId)(),[o,c]=(0,r.useState)(null),[u,d]=(0,r.useState)("loading"),[p,m]=(0,r.useState)(0),[x,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)({maxPages:"10",concurrency:"4",waitSeconds:"3"}),[v,b]=(0,r.useState)({});function w(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;if(h(e),g(n),!e||!o){b({}),null==t||t(void 0);return}let a=Object.fromEntries(i.map(e=>{let[t]=e;return[t,n[t].trim()?Number(n[t]):NaN]}));try{let e=(0,s.Em)({fullSite:!0,crawlOptions:a},!0,o);b({}),e.fullSite&&(null==t||t(e))}catch(e){var r;null==t||t({fullSite:!0,crawlOptions:a}),b({[null!=(r=e.field)?r:"fullSite"]:e.message})}}return((0,r.useEffect)(()=>{if(o)return;let e=!1,t=new AbortController;d("loading");let n=setTimeout(()=>t.abort(),1e4);return fetch("/api/full-scan/options",{cache:"no-store",signal:t.signal}).then(e=>{if(!e.ok)throw Error("Options unavailable");return e.json()}).then(t=>{e||((null==t?void 0:t.allowed)?(c(t.policy),g(Object.fromEntries(i.map(e=>{let[n]=e;return[n,String(t.policy[n].default)]})))):d("denied"))}).catch(()=>{e||d("error")}).finally(()=>clearTimeout(n)),()=>{e=!0,clearTimeout(n),t.abort()}},[p,n,o]),o)?(0,a.jsxs)("fieldset",{className:"border-b border-slate-100 bg-white px-3 py-2 text-left text-slate-900",children:[(0,a.jsxs)("label",{className:"flex cursor-pointer items-center justify-between gap-3 text-sm font-semibold text-slate-700",htmlFor:"".concat(l,"-enabled"),children:["Full site",(0,a.jsxs)("span",{className:"relative inline-flex",children:[(0,a.jsx)("input",{id:"".concat(l,"-enabled"),className:"peer sr-only",type:"checkbox",role:"switch",value:"true",checked:x,onChange:e=>w(e.target.checked)}),(0,a.jsx)("span",{"aria-hidden":"true",className:"h-5 w-9 rounded-full transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-sky-500 peer-focus-visible:ring-offset-2 ".concat(x?"bg-sky-500":"bg-slate-200")}),(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute left-0.5 top-0.5 h-4 w-4 rounded-full bg-white shadow-sm transition-transform ".concat(x?"translate-x-4":"translate-x-0")})]})]}),x?(0,a.jsx)("div",{className:"mt-3 grid gap-2 pl-3",children:i.map(e=>{let[t,n]=e;return(0,a.jsxs)("div",{className:"grid grid-cols-[1fr_5rem] items-center gap-x-3 gap-y-1",children:[(0,a.jsx)("label",{className:"block text-sm font-medium",htmlFor:"".concat(l,"-").concat(t),children:n}),(0,a.jsx)("input",{className:"w-full rounded-lg border border-slate-300 px-2 py-1 text-sm",id:"".concat(l,"-").concat(t),type:"number",min:o[t].min,max:o[t].max,step:"waitSeconds"===t?"any":1,required:!0,value:f[t],"aria-invalid":!!v[t],"aria-describedby":v[t]?"".concat(l,"-").concat(t,"-error"):void 0,onChange:e=>w(!0,{...f,[t]:e.target.value}),onInvalid:e=>b(n=>({...n,[t]:e.currentTarget.validationMessage}))}),v[t]?(0,a.jsx)("p",{id:"".concat(l,"-").concat(t,"-error"),role:"alert",className:"col-span-full text-xs text-red-700",children:v[t]}):null]},t)})}):null]}):"denied"===u?null:(0,a.jsxs)("div",{className:"px-3 py-2 text-sm text-slate-600",role:"status",children:[(0,a.jsx)("span",{className:"text-sm font-semibold text-slate-700",children:"Full site"}),"loading"===u?(0,a.jsx)("span",{className:"ml-2",children:"Loadingâ¦"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"ml-2",children:"Could not load."}),(0,a.jsx)("button",{type:"button",className:"ml-2 text-sky-700 underline",onClick:()=>m(e=>e+1),children:"Retry"})]})]})}var c=n(97509),u=n(14890);let d=[{description:"Run from CertScore.ai's Dublin Lambda scanner.",flag:"\uD83C\uDDEE\uD83C\uDDEA",label:"EU-IR",value:"eu_ie"},{description:"Run from CertScore.ai's Frankfurt Lambda scanner.",flag:"\uD83C\uDDE9\uD83C\uDDEA",label:"EU-DE",value:"eu_de"},{description:"Run from CertScore.ai's US-West Lambda scanner.",flag:"california",label:"California",value:"california"},{description:"Run from this browser using CertScore.ai Browser Evidence.",icon:"local",label:"Chrome browser",value:"local_extension"}];function p(e){let{option:t}=e;return(0,a.jsx)(u.a,{flag:"flag"in t?t.flag:void 0,icon:"icon"in t?t.icon:void 0,selected:!0})}function m(e){var t,n,s,i,m,x,h;let{allowRestrictedScanOptions:f=!1,includeFullSiteOption:g=!1,onFullSiteChange:v,compact:b=!1,freshRescanName:w="forceNewScan",freshRescanValue:j,id:y="scanFrom",includeLocalV2ScanProfileOption:k=!1,includeFreshRescanOption:S=!1,includeLocalExtension:N=!1,includeScanFromOptions:M=!0,localV2ScanProfileName:C="localV2ScanProfile",localV2RunViaLambdaName:_="localV2RunViaLambda",name:E="scanFrom",onChange:L,onFreshRescanChange:R,variant:O="field",value:I="eu_ie"}=e,D=(0,l.usePathname)(),[F,A]=(0,r.useState)(),P=g&&("/app"===D||(null==D?void 0:D.startsWith("/app/")))&&"local_extension"!==I,[Y,T]=(0,r.useState)(!1),[V,B]=(0,r.useState)(!1),[U,W]=(0,r.useState)(null),[z,X]=(0,r.useState)(!0),G=(0,r.useRef)(null),H=(0,r.useRef)(null),q=(0,r.useRef)(null),Z=(0,r.useRef)(null),$=d.filter(e=>!!N&&!!f||"local_extension"!==e.value),J=null!=(s=null!=(n=null!=(t=$.find(e=>e.value===I))?t:$.find(e=>"eu_ie"===e.value))?n:$[0])?s:d[0],Q=J.value,K=null!=j?j:z,ee=M||S||P;return(0,r.useEffect)(()=>{!P&&F&&(A(void 0),null==v||v(void 0))},[P,F,v]),(0,r.useEffect)(()=>{B(!0)},[]),(0,r.useEffect)(()=>{function e(e){var t,n;let a=e.target;(null==(t=Z.current)?void 0:t.contains(a))||(null==(n=H.current)?void 0:n.contains(a))||T(!1)}return document.addEventListener("pointerdown",e),()=>document.removeEventListener("pointerdown",e)},[]),(0,r.useLayoutEffect)(()=>
1{if(!Y)return;function e(){var e,t,n,a,r,l;let s=null==(e=G.current)?void 0:e.getBoundingClientRect();if(!s)return;let i="icon"===O?null==(a=Z.current)||null==(n=a.parentElement)||null==(t=n.parentElement)?void 0:t.getBoundingClientRect():null,o=null!=(r=null==i?void 0:i.top)?r:s.top,c=null!=(l=null==i?void 0:i.bottom)?l:s.bottom,u=window.innerWidth,d=window.innerHeight,p="icon"===O?Math.min(320,u-32):Math.min(288,u-32),m=Math.min(Math.max(16,"icon"===O?s.right-p+96:s.left),Math.max(16,u-p-16)),x=q.current?q.current.getBoundingClientRect().height+12:0,h=x&&x>0?x:S?440:260,f=d-c-0-16,g=o-0-16,v=f<Math.min(h,300)&&g>f,b=Math.max(180,Math.min(h,v?g:f)),w=v?Math.max(16,o-0-b):Math.min(c+0,d-16-b);W({left:m,maxHeight:b,top:w,width:p})}e();let t=new ResizeObserver(e);return q.current&&t.observe(q.current),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{t.disconnect(),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[S,M,Y,O,!!F]),(0,a.jsxs)("div",{ref:Z,className:"icon"===O?"relative":b?"relative inline-flex items-center gap-2 text-xs font-medium text-slate-600":"relative block space-y-1.5",children:[(0,a.jsx)("input",{id:y,name:E,type:"hidden",value:Q}),k?(0,a.jsx)("input",{name:C,type:"hidden",value:"standard"}):null,k?(0,a.jsx)("input",{name:_,type:"hidden",value:"true"}):null,S&&K?(0,a.jsx)("input",{name:w,type:"hidden",value:"true"}):null,"field"===O?(0,a.jsx)("span",{className:b?"shrink-0":"block text-xs font-semibold uppercase tracking-[0.18em] text-slate-500",children:M?"Scan from":"Scan options"}):null,ee?(0,a.jsxs)("button",{"aria-expanded":Y,"aria-haspopup":"listbox","aria-label":M?"Scan from: ".concat(J.label):"Scan options",className:"icon"===O?"scan-report-button inline-flex h-9 w-9 items-center justify-center rounded-full text-slate-400 hover:text-slate-700":b?"scan-report-button inline-flex h-9 items-center gap-2 rounded-full px-3 text-xs font-semibold text-slate-700 hover:text-slate-950":"scan-report-button inline-flex h-10 items-center gap-2 rounded-xl px-3 text-sm font-semibold text-slate-700 hover:text-slate-950",onClick:()=>T(e=>!e),ref:G,title:M?"Scan from: ".concat(J.label):"Scan options",type:"button",children:[(0,a.jsx)(p,{option:J}),"field"===O?(0,a.jsx)("span",{children:J.label}):null]}):null,P&&F?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"hidden",name:"fullSite",value:"true"}),Object.entries(F.crawlOptions).map(e=>{let[t,n]=e;return(0,a.jsx)("input",{type:"hidden",name:t,value:String(n)},t)})]}):null,V?(0,c.createPortal)((0,a.jsx)("div",{className:"fixed z-[1000] isolate overflow-y-auto rounded-2xl border border-slate-200 bg-white py-1.5 shadow-[0_18px_46px_rgba(15,23,42,0.16)]",ref:H,style:{display:Y?void 0:"none",left:null!=(i=null==U?void 0:U.left)?i:16,maxHeight:null!=(m=null==U?void 0:U.maxHeight)?m:320,top:null!=(x=null==U?void 0:U.top)?x:16,width:null!=(h=null==U?void 0:U.width)?h:"icon"===O?320:288},children:(0,a.jsxs)("div",{ref:q,children:[M?(0,a.jsxs)("div",{className:"pb-1",children:[(0,a.jsx)("div",{className:"px-3 pb-1.5 pt-1 text-[0.65rem] font-semibold uppercase tracking-[0.18em] text-slate-400",children:"Scan from"}),(0,a.jsx)("div",{role:"listbox","aria-label":"Scan from",children:$.map(e=>{let t=e.value===Q;return(0,a.jsxs)("button",{"aria-selected":t,className:"flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition-colors hover:bg-slate-50 hover:text-slate-950",onClick:()=>{var t;return t=e.value,void(null==L||L(t),T(!1))},role:"option",title:e.description,type:"button",children:[(0,a.jsx)("span",{className:"inline-flex h-5 w-5 shrink-0 items-center justify-center text-base leading-none",children:(0,a.jsx)(u.a,{flag:"flag"in e?e.flag:void 0,icon:"icon"in e?e.icon:void 0,selected:t})}),(0,a.jsx)("span",{className:"min-w-0 flex-1",children:(0,a.jsx)("span",{className:t?"block text-sm font-semibold text-slate-950":"block text-sm font-semibold text-slate-700",children:e.label})}),t?(0,a.jsx)("svg",{"aria-hidden":"true",className:"h-4 w-4 text-sky-600",fill:"none",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{d:"m4.5 10.5 3.25 3.25 7.75-8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.1"})}):null]},e.value)})})]}):null,S||P?(0,a.jsxs)("div",{className:M?"border-t border-slate-200/70 pt-1":"pb-1",children:[(0,a.jsx)("div",{className:"px-3 pb-1.5 pt-1 text-[0.65rem] font-semibold uppercase tracking-[0.18em] text-slate-400",children:"Options"}),P?(0,a.jsx)(o,{active:Y,onChange:e=>{A(e),null==v||v(e)}}):null,S?(0,a.jsxs)("label",{className:"flex w-full cursor-pointer items-center justify-between gap-4 px-3 py-2.5 text-left transition hover:bg-slate-50",title:"By
1pass the 24-hour recent-scan reuse check.",children:[(0,a.jsx)("span",{className:"min-w-0",children:(0,a.jsx)("span",{className:"block text-sm font-semibold text-slate-700",children:"Fresh re-scan"})}),(0,a.jsx)("input",{checked:K,className:"sr-only",onChange:e=>{var t;return t=e.target.checked,void(void 0===j&&X(t),null==R||R(t))},type:"checkbox"}),(0,a.jsx)("span",{className:K?"relative inline-flex h-5 w-9 shrink-0 items-center rounded-full bg-sky-500 transition":"relative inline-flex h-5 w-9 shrink-0 items-center rounded-full bg-slate-200 transition",children:(0,a.jsx)("span",{className:K?"h-4 w-4 translate-x-4 rounded-full bg-white shadow-sm transition":"h-4 w-4 translate-x-0.5 rounded-full bg-white shadow-sm transition"})})]}):null]}):null]})}),document.body):null]})}},93010:(e,t,n)=>{n.d(t,{LO:()=>s,jX:()=>i,tk:()=>o});let a="certscore.scan-progress-timing.v1";function r(e){return"".concat(e.runtime,":").concat(e.profileValue,":").concat(function(e){let t=e.trim().toLowerCase();if(!t)return"unknown";try{return new URL(/^https?:\/\//i.test(t)?t:"https://".concat(t)).hostname.replace(/^www\./,"")||"unknown"}catch(e){var n;return(null==(n=t.replace(/^https?:\/\//,"").split("/")[0])?void 0:n.replace(/^www\./,""))||"unknown"}}(e.target))}function l(e){if(!e)return{samples:{},version:1};try{let t=JSON.parse(e);if(1!==t.version||!t.samples||"object"!=typeof t.samples)return{samples:{},version:1};return{samples:t.samples,version:1}}catch(e){return{samples:{},version:1}}}function s(e){let t=null==e?void 0:e.trim().toLowerCase();return"localhost"===t||"127.0.0.1"===t||"::1"===t?"local":"hosted"}function i(e){var t,n;let s=null!=(n=null==(t=l(e.storage.getItem(a)).samples[r(e)])?void 0:t.filter(e=>Number.isFinite(e)&&e>=2e3&&e<=3e5))?n:[];return s.length>0?function(e){let t=[...e].sort((e,t)=>e-t),n=Math.floor(t.length/2);return t.length%2==0?(t[n-1]+t[n])/2:t[n]}(s):null}function o(e){var t;if(!Number.isFinite(e.durationMs)||e.durationMs<2e3||e.durationMs>3e5)return;let n=l(e.storage.getItem(a)),s=r(e),i=null!=(t=n.samples[s])?t:[];n.samples[s]=[...i,Math.round(e.durationMs)].slice(-5),e.storage.setItem(a,JSON.stringify(n))}}}]);
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.