1"use strict";(("undefined"==typeof window?self:window).webpackChunkdebugbear_gae=("undefined"==typeof window?self:window).webpackChunkdebugbear_gae||[]).push([[3720],{5369(e,l,t){t.d(l,["Y",0,{pass:"#018642",warn:"#d16900",fail:"#e01d10",unknown:"#333"}])},36891(e,l,t){t.d(l,{NX:()=>a,ay:()=>u,iN:()=>d,oW:()=>c,rp:()=>h,u9:()=>s}),t(96906),t(63227);var n=t(2543),i=t(55722);function r(e,l){return function(e){if(Array.isArray(e))return e}(e)||function(e,l){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,r,o,s=[],a=!0,d=!1;try{if(r=(t=t.call(e)).next,0===l){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=r.call(t)).done)&&(s.push(n.value),s.length!==l);a=!0);}catch(e){d=!0,i=e}finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw i}}return s}}(e,l)||function(e,l){if(e){if("string"==typeof e)return o(e,l);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,l):void 0}}(e,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,l){(null==l||l>e.length)&&(l=e.length);for(var t=0,n=Array(l);t<l;t++)n[t]=e[t];return n}function s(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?i.D4[e]:i.Jq[e]}function a(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?i.D4:i.Jq}function d(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e=/^#[0-9a-f]{3}$/i.test(e)?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e;let t=parseInt(e.replace(/^#/,""),16);return[t>>16&255,t>>8&255,255&t,l]}function c(e){const l=r(d(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),4),t=l[0],n=l[1],i=l[2],o=l[3],s=t/255,a=n/255,c=i/255,u=Math.max(s,a,c),h=Math.min(s,a,c),p=(u+h)/2;let m=0,x=0;if(u==h)m=x=0;else{const e=u-h;switch(x=p>.5?e/(2-u-h):e/(u+h),u){case s:m=(a-c)/e+(a<c?6:0);break;case a:m=(c-s)/e+2;break;case c:m=(s-a)/e+4}m/=6}return[m,Math.round(100*x),Math.round(100*p),o]}function u(e,l,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=l/100,r=t/100,o=(1-Math.abs(2*r-1))*i,s=o*(1-Math.abs(6*e%2-1)),a=r-o/2,d=6*e;let c=0,u=0,h=0;return d<1?(c=o,u=s,h=0):d<2?(c=s,u=o,h=0):d<3?(c=0,u=o,h=s):d<4?(c=0,u=s,h=o):d<5?(c=s,u=0,h=o):(c=o,u=0,h=s),[Math.round(255*(c+a)),Math.round(255*(u+a)),Math.round(255*(h+a)),n]}function h(e,l){const t=r(c(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1),4),i=t[0],o=t[1],s=t[2],a=t[3];return[i,o,(0,n.clamp)(s+l,0,100),a]}},55722(e,l,t){t.d(l,{Uf:()=>i});const n=["#0b84a5","#9cd865","#ca472f","#8dddd1","#ffa056","#4e7c65","#f6c85e","#2f5dca","#7B2B0B","#231F8C","#F313FF","#FF1331","#647D6D","#2280ca","#00ffeb","#e1ff00"];function i(e){return n[e%n.length]}Object.fromEntries(["blue1","blue2","blue3","teal1","green1","green2","green2-01","green3","purple1","purple2","yellow1","yellow2","yellow2-01","orange1","grey1","grey2","grey3","grey4","grey5","grey6","blueGrey","coldGrey1","coldGrey2","white1","red1","red2","red3","ratingColorPass","ratingColorWarn","ratingColorFail","ratingColorUnknown","darkBg1","darkBg2","darkBg3","lightBlue2","hoverBlue","linkBlue"].map(e=>[e,`var(--${e})`])),t.d(l,["D4",0,{pass:"#2e7a55",warn:"#e8dd42",fail:"#f39bb1",unknown:"#aaa"},"E9",0,"#3e8fe5","H9",0,{pass:"#279945",warn:"#dd9103",fail:"#e54b83",unknown:"#ccc"},"Jq",0,{pass:"#82de9b",warn:"#fdc762",fail:"#f39bb1",unknown:"#aaa"}])},3841(e,l,t){function n(e){var l,t,n;const i=[null==e||null===(l=e.lcp)||void 0===l?void 0:l.good,null==e||null===(t=e.inp)||void 0===t?void 0:t.good,null==e||null===(n=e.cls)||void 0===n?void 0:n.good].filter(e=>"number"==typeof e);return i.length>0?Math.min(...i):void 0}t.d(l,{L:()=>n}),t(63227),t(2543)},87746(e,l,t){t.d(l,{P:()=>n});let n=function(e){return e[e.origin=1]="origin",e[e.url=2]="url",e}({})},43299(e,l,t){t.d(l,{OB:()=>v,a5:()=>x,pV:()=>m});var n=t(73005),i=t(78324),r=t(11178),o=t(27083),s=t(3841),a=t(87746),d=t(41802),c=t(2543),u=(t(96540),t(76213)),h=t(5369),p=t(74848);function m(e){let l=e.perfSummary,t=e.webVitalsUrl,i=e.lighthouseUrl,r=e.showAiScore,o=e.aiScoreUrl;const s=(0,n.F)({type:"analysis.lhr",id:null==l?void 0:l.analysisId}),a=l.scores.performance;let m=h.Y.unknown;"number"==typeof a&&(m=a>=.9?h.Y.pass:a>=.5?h.Y.warn:h.Y.fail);const j=["first-contentful-paint","speed-index","largest-contentful-paint","interactive","total-blocking-time","cumulative-layout-shift"].map(e=>{var l,t,n;const i=null!=s&&null!==(l=s.lhr)&&void 0!==l&&l.audits?null==s||null===(t=s.lhr)||void 0===t?void 0:t.audits[e]:null,r=null==s||null===(n=s.lhr)||void 0===n||null===(n=n.categories)||void 0===n||null===(n=n.performance)||void 0===n||null===(n=n.auditRefs)||void 0===n?void 0:n.find(l=>l.id===e);return{audit:i,category:r,key:e}}),b=(0,c.sortBy)(j,["category.weight"]).reverse(),w=r?"col-4":"col-6";return(0,p.jsxs)("div",{className:"row h-100",children:[r&&(0,p.jsx)(u.N_,{to:o||i,className:`${w} px-2 d-flex link-no-underline cursor-pointer`,children:(0,p.jsx)(f,{lhr:null==s?void 0:s.lhr})}),(0,p.jsx)(u.N_,{to:t,className:`${w} px-2 d-flex link-no-underline cursor-pointer`,children:(0,p.jsx)(x,{perfSummary:l})}),(0,p.jsx)(u.N_,{to:i,className:`${w} px-2 d-flex link-no-underline cursor-pointer`,children:(0,p.jsxs)(g,{applicable:"number"==typeof a,color:m,title:"Lab Score",icon:(0,p.jsx)("img",{src:"/public/icons/lighthouse
1-logo.svg",alt:"Lighthouse logo",width:16,height:16}),tooltip:()=>(0,p.jsxs)("div",{style:{maxWidth:330},children:[(0,p.jsxs)("div",{className:"pb-2 pt-2 d-flex align-items-center",children:[(0,p.jsx)("img",{src:"/public/icons/lighthouse-logo.svg",alt:"Lighthouse logo",width:24,height:24,className:"mr-3 ml-3"}),(0,p.jsxs)("div",{children:["Lab data is collected by DebugBear in a"," ",(0,p.jsx)("strong",{children:"controlled test environment"}),"."]})]}),(0,p.jsxs)("div",{className:"mt-2",children:[b.filter(e=>e.category&&e.category.weight>0).map(e=>{let l=e.audit,t=e.category,n=e.key,i=h.Y.unknown,r=null;return l&&(i=l.score>.9?h.Y.pass:l.score>.5?h.Y.warn:h.Y.fail),l&&t&&(r=Math.round(100*l.score*(t.weight/100))),(0,p.jsxs)("div",{className:"d-flex align-items-center",children:[(0,p.jsx)(v,{color:i}),(0,p.jsxs)("div",{style:{flexGrow:1},children:[(null==l?void 0:l.title)||function(e){return{"first-contentful-paint":"First Contentful Paint","speed-index":"Speed Index","largest-contentful-paint":"Largest Contentful Paint",interactive:"Time to Interactive","total-blocking-time":"Total Blocking Time","cumulative-layout-shift":"Cumulative Layout Shift"}[e]||""}(n)," ",(0,p.jsx)(y,{style:{marginLeft:0},children:null==l?void 0:l.displayValue})]}),l?(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,p.jsxs)("div",{style:{minWidth:50,textAlign:"right",marginRight:"0.5rem"},children:[Math.round(100*l.score),"%"]}),null!==r?(0,p.jsxs)(y,{style:{minWidth:50,textAlign:"right"},children:[r,"/",null==t?void 0:t.weight,"%"]}):null]}):(0,p.jsx)("div",{style:{minWidth:50,textAlign:"right"},children:(0,p.jsx)("span",{style:{opacity:.5},children:"N/A"})})]},n)}),s?(0,p.jsxs)("div",{className:"d-flex align-items-center",style:{borderTop:"1px solid #e9e9e9",paddingTop:"4px",marginTop:"4px"},children:[(0,p.jsx)(v,{color:m}),(0,p.jsx)("div",{style:{minWidth:200},children:"Lab Score"}),(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center",marginLeft:"auto"},children:[(0,p.jsx)("div",{style:{minWidth:50,textAlign:"right",marginRight:"0.5rem"}}),(0,p.jsxs)(y,{style:{minWidth:50,textAlign:"right"},children:[(0,d.Fl)(100*a,"score"),"/100%"]})]})]}):null]})]}),children:[(0,d.Fl)(100*a,"score"),"%"]})})]})}function x(e){var l,t,n,i,r,o;let c=e.perfSummary,u=e.size,m=void 0===u?"normal":u;const x=null==c?void 0:c.crux,f=(null==x?void 0:x.g)===a.P.origin,y=null==x||null===(l=x.lcp)||void 0===l?void 0:l.good,j=null==x||null===(t=x.inp)||void 0===t?void 0:t.good,b=null==x||null===(n=x.cls)||void 0===n?void 0:n.good,w=null==x||null===(i=x.lcp)||void 0===i?void 0:i.p75,N=null==x||null===(r=x.inp)||void 0===r?void 0:r.p75,k=null==x||null===(o=x.cls)||void 0===o?void 0:o.p75,S=(0,s.L)(x);let T=h.Y.unknown;return!f&&S&&(T=S>=.75?h.Y.pass:h.Y.fail),(0,p.jsxs)(g,{applicable:"number"==typeof S,color:T,title:"CrUX Score",icon:(0,p.jsx)("img",{src:"/public/icons/crux.png",alt:"CrUX logo",width:16,height:16}),size:m,tooltip:()=>(0,p.jsxs)("div",{style:{maxWidth:335},children:[(0,p.jsxs)("div",{className:"pt-2 pb-3 d-flex align-items-center",children:[(0,p.jsx)("img",{src:"/public/icons/crux.png",alt:"CrUX logo",width:24,height:24,className:"mr-3 ml-3"}),(0,p.jsxs)("div",{children:["This data comes from ",(0,p.jsx)("strong",{children:"real Chrome users"})," and is published in Google's CrUX dataset."]})]}),(0,p.jsx)("div",{className:"color-coldGrey1 scale-small-1",children:"At least 75% of visits need to be good across all Core Web Vitals to get the maximum ranking boost."}),f?(0,p.jsx)("div",{className:"mt-2",style:{fontWeight:500},children:"Google doesn't have enough page-level data for this URL, so metrics for the entire website are shown."}):null,"number"!=typeof S?(0,p.jsx)("div",{className:"mt-2",children:"â ï¸ No real user data is available for this page. It may not get enough traffic."}):null,(0,p.jsx)("div",{className:"mt-2",children:[{name:"Largest Contentful Paint",good:y,p75:(0,d.Fl)(w,"ms")},{name:"Interaction to Next Paint",good:j,p75:(0,d.Fl)(N,"ms")},{name:"Cumulative Layout Shift",good:b,p75:(0,d.Fl)(k,"float")}].map(e=>{if("number"!=typeof e.good)return null;let l=e.good>.75?"pass":"fail";const t=h.Y[l];return(0,p.jsxs)("div",{className:"d-flex align-items-center",children:[(0,p.jsx)(v,{c
1olor:t}),(0,p.jsx)("div",{style:{minWidth:150},children:e.name}),(0,p.jsx)("div",{style:{minWidth:70,textAlign:"right"},className:"color-coldGrey1",children:e.p75}),(0,p.jsxs)("div",{style:{minWidth:80,textAlign:"right",marginLeft:"auto"},children:[Math.round(100*e.good),"% Good"]})]},e.name)})}),"number"==typeof S&&(0,p.jsxs)("div",{className:"d-flex",style:{borderTop:"1px solid #e9e9e9",paddingTop:"4px",marginTop:"4px"},children:[(0,p.jsx)("div",{className:"color-coldGrey1",children:"Lowest Score:"}),(0,p.jsxs)("div",{className:"ml-auto",children:[Math.round(100*S),"% Good"]})]})]}),children:[Math.round(100*S),"%"]})}function f(e){var l,t,n;let r=e.size,o=void 0===r?"normal":r,s=e.lhr;const a=null==s||null===(l=s.categories)||void 0===l?void 0:l["agentic-browsing"],d=null!==(t=null==a||null===(n=a.auditRefs)||void 0===n?void 0:n.map(e=>{var l;const t=null==s||null===(l=s.audits)||void 0===l?void 0:l[e.id],n=null==t?void 0:t.scoreDisplayMode;let i="na";return("binary"===n||"numeric"===n||"metricSavings"===n)&&"number"==typeof(null==t?void 0:t.score)&&(i=t.score>=.9?"pass":"fail"),{id:e.id,title:(null==t?void 0:t.title)||e.id,state:i}}))&&void 0!==t?t:[],c=d.filter(e=>"na"!==e.state),u=c.filter(e=>"pass"===e.state).length,m=c.length,x=m>0,f=x?u/m:null;let y=h.Y.unknown;return null!==f&&(y=f>=.9?h.Y.pass:f>=.5?h.Y.warn:h.Y.fail),(0,p.jsxs)(g,{applicable:x,color:y,title:"AI Score",icon:(0,p.jsx)(i.u,{size:16}),size:o,tooltip:()=>(0,p.jsxs)("div",{style:{maxWidth:330},children:[(0,p.jsxs)("div",{className:"pb-2 pt-2 d-flex align-items-center",children:[(0,p.jsx)("div",{className:"mr-3 ml-3 d-flex",children:(0,p.jsx)(i.u,{size:24})}),(0,p.jsxs)("div",{children:["Checks how well the page exposes itself to"," ",(0,p.jsx)("strong",{children:"AI agents"}),", including ",(0,p.jsx)("code",{children:"llms.txt"}),", WebMCP tools, and the accessibility tree."]})]}),(0,p.jsx)("div",{className:"mt-2",children:d.map(e=>{let l=e.id,t=e.title,n=e.state;const i="pass"===n?h.Y.pass:"fail"===n?h.Y.fail:h.Y.unknown,r="pass"===n?"Pass":"fail"===n?"Fail":"N/A";return(0,p.jsxs)("div",{className:"d-flex align-items-center",children:[(0,p.jsx)(v,{color:i}),(0,p.jsx)("div",{style:{flexGrow:1},children:t}),(0,p.jsx)("div",{style:{minWidth:50,textAlign:"right",opacity:"na"===n?.5:1},children:r})]},l)})}),x&&(0,p.jsxs)("div",{className:"d-flex",style:{borderTop:"1px solid #e9e9e9",paddingTop:"4px",marginTop:"4px"},children:[(0,p.jsx)("div",{className:"color-coldGrey1",children:"Passing:"}),(0,p.jsxs)("div",{className:"ml-auto",children:[u,"/",m]})]})]}),children:[u,"/",m]})}function g(e){const l=e.applicable,t=e.children,n=e.color,i=e.title,s=e.tooltip,a=e.size,d=e.icon;return(0,p.jsx)(r.U5,{className:"d-flex flex-grow-1 flex-column justify-content-center text-center",style:{borderBottom:`2px solid ${n}`,padding:"small"===a?8:void 0},children:(0,p.jsx)(o.m,{overlay:s,placement:"top",children:(0,p.jsxs)("div",{children:[l?(0,p.jsx)("div",{style:{color:n},className:("small"===a?"scale-4":"scale-3")+" font-weight-500",children:t}):(0,p.jsx)("div",{className:"scale-3 color-coldGrey1",children:"N/A"}),"small"!==a&&(0,p.jsxs)("div",{className:"d-flex align-items-center justify-content-center",children:[(0,p.jsx)("div",{style:{marginRight:6,display:"flex"},children:d}),(0,p.jsx)("div",{className:"scale-small-2 text-uppercase color-coldGrey1 font-weight-500",children:i})]})]})})})}function v(e){const l=e.color;return(0,p.jsx)("div",{style:{background:l,width:10,height:10,borderRadius:20,marginRight:8,flexShrink:0}})}function y(e){const l=e.style,t=e.children,n={opacity:.5,fontSize:"12px",...l||{}};return(0,p.jsx)("span",{style:n,children:t})}},83720(e,l,t){t.d(l,{pq:()=>w}),t(25440),t(62953);var n=t(20191),i=t(51932),r=t(43299),o=t(2747),s=t(36891),a=t(41802),d=t(96540),c=t(77370),u=t(32304),h=t(28985),p=t(27083),m=t(74848);const x=["animate","title","subtitle","context","tooltipBottomItems","components","comparison","valueDisplay","valueLabel","titleColumnHeading","showSomeTitles","tooltipWidth","componentTitleMinWidth","allowExpansion","hrefWhenExpandedIcon","detailColumnWidthWhenExpanded","ExpansionItemDetailsRenderer","testId","startExpanded","negativeMarginForBox","variant","showTooltip","marginBottomWhenExpanded","forceHideText","height","inUnpaddedContext"];function f(e,l){return function(e){if(Array.isArray(e))return e}(e)||function(e,l){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,r,o,s=[],a=!0,d=!1;try{if(r=(t=t.call(e)).next,0===l){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=r.call(t)).done)&&(s.push(n.value),s.length!==l);a=!0);}catch(e){d=!0,i=e}
1finally{try{if(!a&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(d)throw i}}return s}}(e,l)||function(e,l){if(e){if("string"==typeof e)return g(e,l);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?g(e,l):void 0}}(e,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,l){(null==l||l>e.length)&&(l=e.length);for(var t=0,n=Array(l);t<l;t++)n[t]=e[t];return n}const v="#9aa0a6",y=d.memo(function(e){var l,t,n,i,s;let g=e.animate,y=e.title,b=e.subtitle,w=e.context,N=e.tooltipBottomItems,k=e.components,S=e.comparison,T=e.valueDisplay,C=void 0===T?"percentage":T,W=e.valueLabel,I=e.titleColumnHeading,$=void 0===I?"Title":I,A=e.showSomeTitles,L=e.tooltipWidth,B=e.componentTitleMinWidth,M=e.allowExpansion,O=e.hrefWhenExpandedIcon,G=e.detailColumnWidthWhenExpanded,R=e.ExpansionItemDetailsRenderer,P=e.testId,V=e.startExpanded,Y=e.negativeMarginForBox,D=void 0===Y||Y,F=e.variant,E=e.showTooltip,U=e.marginBottomWhenExpanded,H=e.forceHideText,z=e.height,q=e.inUnpaddedContext,X=function(e,l){if(null==e)return{};var t,n,i=function(e,l){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==l.indexOf(n))continue;t[n]=e[n]}return t}(e,l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t=r[n],-1===l.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,x);const _=f(d.useState(V),2),J=_[0],K=_[1],Z=void 0!==S,Q="value"===C;z=z||(q?50-(Z?10:0):30);const ee=(e,l)=>{var t,n;const i=null!==(t=null==l?void 0:l.bottomItems)&&void 0!==t?t:N,o=(0,m.jsx)("div",{onClick:()=>{M&&K(!J)},style:{cursor:M?"pointer":void 0},children:(0,m.jsx)(j,{animate:g,components:e,showSomeTitles:A,testId:P,showValues:Q,forceHideText:H,height:z,inUnpaddedContext:q,totalScale:null!==(n=null==l?void 0:l.totalScale)&&void 0!==n?n:1,differenceText:null==l?void 0:l.differenceText})});return!1===E?o:(0,m.jsx)(p.m,{placement:"top",maxWidth:L,noPadding:!0,overlay:()=>{var t;return(0,m.jsxs)("div",{style:{minWidth:L},children:[(0,m.jsx)("div",{style:{fontWeight:500,padding:"4px 8px"},children:y}),w?(0,m.jsx)("p",{className:"ml-2 mb-2 scale-small-2 color-grey3",children:w}):null,b&&(0,m.jsx)("p",{className:"px-2 pb-2 mb-0 scale-small-1 color-coldGrey1",children:b}),e.map((e,l)=>(0,m.jsxs)("div",{className:"d-flex align-items-center",style:{padding:"4px 8px",borderTop:"1px solid #eee"},children:[(0,m.jsx)("div",{style:{flexShrink:0},children:(0,m.jsx)(r.OB,{color:e.color})}),(0,m.jsx)("div",{className:"nowrap-ellipsis",style:{display:"inline-block",minWidth:B},children:e.title}),e.detailText&&(0,m.jsx)("span",{className:"color-grey3 scale-small-1 ml-1 nowrap-ellipsis",style:{flexShrink:1},children:e.detailText}),(0,m.jsx)("span",{style:{display:"inline-block",width:50,textAlign:"right",flexGrow:"1",flexShrink:0},children:Q&&e.valueText?e.valueText:Math.round(e.percentage)+"%"})]},l)),(null!==(t=null==l?void 0:l.totalScale)&&void 0!==t?t:1)<1&&null!=(null==l?void 0:l.differenceText)&&(0,m.jsxs)("div",{className:"d-flex align-items-center",style:{padding:"4px 8px",borderTop:"1px solid #eee"},children:[(0,m.jsx)("div",{style:{flexShrink:0},children:(0,m.jsx)(r.OB,{color:v})}),(0,m.jsx)("div",{className:"nowrap-ellipsis",style:{display:"inline-block",minWidth:B},children:"Difference"}),(0,m.jsx)("span",{style:{display:"inline-block",width:50,textAlign:"right",flexGrow:"1",flexShrink:0},children:l.differenceText})]}),i&&i.map((e,l)=>(0,m.jsx)(d.Fragment,{children:(0,m.jsxs)("div",{className:"d-flex justify-content-between scale-small-1 color-coldGrey1",style:{borderTop:"1px solid #eee",padding:"4px 8px"},children:[(0,m.jsx)("span",{children:e.left}),(0,m.jsx)("span",{children:e.right})]})},l))]})},children:o})},le={heading:{title:$},render(e){var l,t,n,i;const o=(0,m.jsxs)("div",{className:"d-flex align-items-center",style:{minWidth:0},children:[(0,m.jsx)("div",{style:{flexShrink:0},children:e.icon?(0,m.jsx)("div",{style:{marginRight:8,display:"flex"},children:e.icon}):(0,m.jsx)(r.OB,{color:e.color})}),(0,m.jsxs)("div",{className:"d-flex",style:{minWidth:10},children:[(0,m.jsx)("div",{className:"nowrap-ellipsis",children:e.title}),(null===(l=e.expansion)||void 0===l||null===(l=l.moreInfoHover)||void 0===l?void 0:l.content)&&(0,m.jsx)("span",{className:"ml-1",children:(0,m.jsx)(u.c,{content:null===(t=e.expansion)||void 0===t||null===(t=t.moreInfoHover)||void 0===t?void 0:t.content,href:null===(n=e.expansion)||void 0===n||null===(n=n.moreInfoHover)||void 0===n?void 0:n.href})})]})]});if(null!==(i=e.expansion)&&void 0!==i&&i.link){const l=(0,m.jsx)(h.A,{to:e.expansion.link.href,className:"color-coldGrey1 blue-on-hover opacity-0.5 hover:opacity-1",style:e=>({paddingLeft:2,lineHeight:"1em",display:e.isActive?"none":"block"}),children:O||(0,m.jsx)(c.G,{})});return(0,m.jsxs)("div",{className:"d-flex",children:[o,(0,m.jsx)("div",{className:"ml-auto d-flex align-items-center",children:e.expansion.link.tooltip?(0,m.jsx)(p.m,{overlay:e.expansion.link.tooltip,children:l}):l})]})}return o}},te=new Map((null!==(l=null==S?void 0:S.components)&&void 0!==l?l:[]).map(e=>[e.title,e])),ne=new Set(k.map(e=>e.title)),ie=(null!==(t=null==S?void 0:S.components)&&void 0!==t?t:[]).filter(e=>!ne.has(e.title)),re=[...k,...ie].filter(e=>!e.hideInList),oe=e=>e?Math.round(e.percentage):0,se=e=>e?oe(e)+"%":"â",ae=e=>{var l;return(null!==(l=null==e?void 0:e.valueText)&&void 0!==l?l:null==e?void 0:e.detailText)||"â"},de=Q?ae:se,ce=e=>({before:te.get(e.title),after:ne.has(e.title)?e:void 0}),ue=(e,l,t)=>{const n=e=>{const n=e?l(e):t;return"number"==typeof n?n:void 0},i=ce(e),r=i.before,o=i.after,s=n(r),a=n(o);return void 0!==s&&void 0!==a?a-s:null},he=(e,l,t)=>{if(null===e)return"â";const n=t&&0!==e?e>0?o.e6:o.wT:o.IT;return(0,m.jsxs)("span",{className:"nowrap",style:{color:n},children:[e>0?"+":"",l(e)]})},pe=[...k,...null!==(n=null==S?void 0:S.components)&&void 0!==n?n:[]].some(e=>"number"==typeof e.viewCount),me=[...k,...null!==(i=null==S?void 0:S.components)&&void 0!==i?i:[]].some(e=>{var l;return null!=(null!==(l=e.valueText)&&void 0!==l?l:e.detailText)}),xe=e=>Z?`${oe(e)}%`:se(e),fe=e=>e?"number"==typeof e.viewCount?(0,a.Ke)(e.viewCount):"â":"0",ge=e=>!e&&Q&&null!=S&&S.formatValue?S.formatValue(0):ae(e),ve=(e,l,t)=>({heading:{title:e,alignRight:!0,style:{width:l}},render:e=>!1===E?t(e):(0,m.jsx)(p.m,{placement:"top",noPadding:!0,overlay:()=>(e=>{var l;const t=ce(e),n=t.before,i=t.after,o=l=>Z?(0,m.jsxs)(m.Fragment,{children:[l(n)," â ",l(i)]}):l(e),s=[...pe?[{label:"Page Views",text:o(fe)}]:[],{label:"Share",text:o(xe)},...me?[{label:W,text:o(ge)}]:[]];return(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{style:{fontWeight:500,padding:"4px 8px"},children:y}),(0,m.jsxs)("div",{className:"d-flex align-items-center",style:{padding:"4px 8px",borderTop:"1px solid #eee"},children:[(0,m.jsx)("div",{style:{flexShrink:0,display:"flex",marginRight:8},children:null!==(l=e.icon)&&void 0!==l?l:(0,m.jsx)(r.OB,{color:e.color})}),(0,m.jsx)("div",{className:"nowrap-ellipsis",children:e.title})]}),s.map((e,l)=>(0,m.jsxs)("div",{className:"d-flex justify-content-between scale-small-1 color-coldGrey1",style:{borderTop:"1px solid #eee",padding:"4px 8px"},children:[(0,m.jsx)("span",{children:e.label}),(0,m.jsx)("span",{className:"nowrap ml-3",children:e.text})]},l))]})})(e),children:(0,m.jsx)("span",{children:t(e)})})}),ye=ve("Share Change",115,e=>{const l=ce(e),t=l.before,n=l.after;return he(oe(n)-oe(t),e=>`${e}%`,!1)}),je=ve("Value",90,e=>null!=S&&S.formatValue?he(ue(e,e=>e.value,Q?0:void 0),S.formatValue,!0):"â"),be=ve("Views",90,e=>he(ue(e,e=>e.viewCount,0),a.Ke,!1)),we=Z?{title:le,supportingChange:Q?ye:je,...pe?{viewCountChange:be}:{}
1,mainChange:Q?je:ye}:{title:le,detail:ve(Q?"PCT":"Detail",G||75,e=>(0,m.jsx)("span",{className:"scale-small-2 color-coldGrey1",children:Q?se(e):e.detailText})),value:ve(Q?"Value":"PCT",Q?90:60,e=>de(e))},Ne=e=>e.reduce((e,l)=>e+("number"==typeof l.value?l.value:0),0),ke=S?Ne(S.components):0,Se=S?Ne(k):0,Te=Math.max(ke,Se),Ce=Q&&!(null==S||!S.formatValue)&&ke>0&&Se>0,We=e=>Ce?{totalScale:e/Te,differenceText:e<Te?S.formatValue(Te-e):void 0}:void 0;return(0,m.jsxs)("div",{"data-testid":`breakdown-bar-${y.replace(/\W/g,"-").toLowerCase()}`,...X,children:[S?(0,m.jsxs)(m.Fragment,{children:[void 0!==S.beforeLabel&&(0,m.jsx)("div",{className:"px-3 pt-2 pb-1",children:S.beforeLabel}),ee(S.components,{...We(ke),bottomItems:null!==(s=S.tooltipBottomItems)&&void 0!==s?s:N}),void 0!==S.afterLabel&&(0,m.jsx)("div",{className:"px-3 pt-2 pb-1",children:S.afterLabel}),ee(k,We(Se))]}):ee(k),J&&(0,m.jsx)("div",{children:(0,m.jsx)("div",{style:q?{margin:0}:D?{marginTop:16,marginLeft:-16,marginRight:-16,marginBottom:"number"==typeof U?U:-16}:{marginTop:8,marginLeft:0,marginRight:0,marginBottom:null!=U?U:0},children:(0,m.jsx)(o.mY,{testName:"breakdown-bar-result-table",variant:F,hideTableHeader:!Z,columns:we,ItemDetailsRenderer:R,items:re})})})]})});function j(e){let l=e.animate,t=e.components,r=e.showSomeTitles,o=e.testId,a=e.showValues,c=e.forceHideText,u=e.height,h=e.inUnpaddedContext,p=e.totalScale,x=void 0===p?1:p,g=e.differenceText;const y=d.useRef(null),j=f(d.useState(null),2),b=j[0],w=j[1],N=(0,n.D)(),k=(0,i.a)();d.useEffect(()=>{y.current&&w(y.current.clientWidth)},[y.current,k]);const S=t.map(e=>{const l=e.percentage,t=e.valueText,n=e.detailText;return{color:e.color,title:e.title,percentage:l*x,content:a&&(null!=t?t:n)||`${Math.round(l)}%`,isDifference:!1}}).filter(e=>"number"==typeof e.percentage&&0!==e.percentage&&!isNaN(e.percentage));return x<1&&null!=g&&S.push({color:v,title:"Difference",percentage:100*(1-x),content:g,isDifference:!0}),(0,m.jsxs)("div",{style:{lineHeight:"1em",display:"flex"},...o?{"data-testid":o}:{},ref:y,children:[0===S.length?(0,m.jsx)("div",{className:h?"p-3":"",children:"â"}):null,S.map((e,t)=>{const n=e.color,i=e.percentage,o=e.content;let a={};0===t&&(a={borderBottomLeftRadius:h?3:4},h||(a={...a,borderTopLeftRadius:4}));const d=t===S.length-1;d&&(a={...a,borderBottomRightRadius:h?3:4},h||(a={...a,borderTopRightRadius:4}));const p=b?b*i/100:null,x=c||(p?p<50:i<5),g=r&&(p?p>100:i>20);let v=i>=15?8:i>=10?2:4;p&&p>50&&(v=8),h&&0===t&&(v=16);const y=f((0,s.oW)(n),3),j=y[0],w=y[1],k=y[2],T=`hsla(${360*j}, ${w}%, ${k}%, 0.15)`,C=`hsla(${360*j}, ${w}%, ${Math.max(0,k+(N?10:-25))}%, 0.95)`,W=`hsla(${360*j}, ${w}%, ${k}%, 0.1)`,I=`hsla(${360*j}, ${w}%, ${k}%, 0.22)`,$=`repeating-linear-gradient(45deg, ${W}, ${W} 8px, ${I} 8px, ${I} 16px)`;return(0,m.jsxs)("div",{style:{background:e.isDifference?$:c?n:T,height:u,lineHeight:"1em",alignItems:"center",color:C,fontSize:13,transitionDuration:l?"0.25s":void 0,paddingLeft:v,fontWeight:500,display:"flex",width:`${i}%`,minWidth:x?0:25,...a,flexGrow:0===t?1:void 0},children:[g&&(0,m.jsx)("div",{className:"mr-auto nowrap-ellipsis flex-shrink-1",children:e.title}),(0,m.jsx)("div",{style:{flexShrink:0},className:g?"mr-2":d?"ml-auto mr-2":"",children:x?"":o})]},t)})]})}const b=["#f16529","#4fab73","#d329f1","#69a5b1","#667abe","#49c14d","#2992f1","#f19229","#d53566","#d5c135","#35d5c2"];function w(e){return b[e%b.length]}t.d(l,["rl",0,y,"zR",0,b])},78324(e,l,t){t.d(l,{u:()=>r});var n=t(74848);const i=["size","style"];function r(e){let l=e.size,t=void 0===l?16:l,r=e.style,o=function(e,l){if(null==e)return{};var t,n,i=function(e,l){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==l.indexOf(n))continue;t[n]=e[n]}return t}(e,l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t=r[n],-1===l.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,i);return(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14",id:"Ai-Spark-Starlight--Streamline-Core",height:t,width:t,style:{strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor",...r},...o,children:[(0,n.jsx)("desc",{children:"Ai Spark Starlight Streamline Icon: https://streamlinehq.com"}),(0,n.jsxs)("g",{id:"ai-spark-starlight--ai-spark-starlight-generating-creation-automate",children:[(0,n.jsx)("path",{id:"Vector 2137",stroke:"currentColor",d:"M1.4976 7.60161c-0.663465 -0.11737 -0.663466 -1.08585 0 -1.20322 2.4036 -0.42521 4.31534 -2.28685 4.83705 -4.7103l0.03999 -0.18577C6.51818 0.835551 7.45183 0.831402 7.6011 1.49687l0.04856 0.21649c0.54102 2.41201 2.45324 4.25793 4.85024 4.68196 0.6668 0.11
1797 0.6668 1.09139 0 1.20936 -2.397 0.42403 -4.30922 2.26995 -4.85024 4.68192l-0.04856 0.2165c-0.14927 0.6655 -1.08292 0.6613 -1.22646 -0.0054l-0.03999 -0.1858C5.81294 9.88846 3.9012 8.02682 1.4976 7.60161Z",strokeWidth:"1"}),(0,n.jsx)("path",{id:"Vector 5065",stroke:"currentColor",d:"m1 1 2 2"}),(0,n.jsx)("path",{id:"Vector 5066",stroke:"currentColor",d:"m13 1 -2 2"}),(0,n.jsx)("path",{id:"Vector 5067",stroke:"currentColor",d:"m1 13 2 -2"}),(0,n.jsx)("path",{id:"Vector 5068",stroke:"currentColor",d:"m13 13 -2 -2"})]})]})}}}]);
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.