@ytspar/devbar 1.18.0 → 1.18.1-canary.3450046
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/chunks/{chunk-O2HE72Z2.js → chunk-YHVC6Z5V.js} +1 -1
- package/dist/browser/devbar.auto.js +1 -1
- package/dist/browser/devbar.js +1 -1
- package/dist/modules/websocket.d.ts.map +1 -1
- package/dist/modules/websocket.js +21 -6
- package/dist/modules/websocket.js.map +1 -1
- package/package.json +2 -2
|
@@ -513,5 +513,5 @@ ${s}
|
|
|
513
513
|
`),n.ownerDocument.head.appendChild(r)}}}function Br(e,t){let o=window.innerWidth*t,n=window.innerHeight*t,r=window.scrollX*t,i=window.scrollY*t;if(e.width<=o&&e.height<=n)return e;let a=document.createElement("canvas");a.width=o,a.height=n;let s=a.getContext("2d");return s?(s.drawImage(e,r,i,o,n,0,0,o,n),a):e}async function Yo(e,t){try{await navigator.clipboard.writeText(t),e.copiedPath=!0,e.copiedPathTimeout&&clearTimeout(e.copiedPathTimeout),e.copiedPathTimeout=setTimeout(()=>{e.copiedPath=!1,e.render()},gt),e.render()}catch(o){console.error("[GlobalDevBar] Failed to copy path:",o)}}async function Jo(e,t=!1){if(e.capturing)return;let o=V(e.options.saveLocation,e.sweetlinkConnected);if(!t&&o==="local"&&!e.sweetlinkConnected)return;let n=null;try{e.capturing=!0,e.render(),n=Re(),await Le(bt);let i=await(await ie())(document.body,qo(yt,t));n(),n=null;let a=t?Br(i,yt):i;if(t)try{await _e(a),e.copiedToClipboard=!0,e.render(),e.screenshotTimeout&&clearTimeout(e.screenshotTimeout),e.screenshotTimeout=setTimeout(()=>{e.copiedToClipboard=!1,e.render()},gt)}catch(s){console.error("[GlobalDevBar] Failed to copy to clipboard:",s)}else{let s=Me(a,{format:"jpeg",quality:e.options.screenshotQuality});if(o==="local"&&e.ws?.readyState===WebSocket.OPEN){let l={};e.lcpValue!==null&&(l.lcp=Math.round(e.lcpValue)),e.clsValue>0&&(l.cls=e.clsValue),e.inpValue>0&&(l.inp=Math.round(e.inpValue));let c=performance.getEntriesByType("paint").find(m=>m.name==="first-contentful-paint");c&&(l.fcp=Math.round(c.startTime));let p=0,u=performance.getEntriesByType("navigation")[0];u&&(p+=u.transferSize||0),performance.getEntriesByType("resource").forEach(m=>{p+=m.transferSize||0}),e.ws.send(JSON.stringify({type:"save-screenshot",data:{screenshot:s,width:a.width,height:a.height,logs:e.consoleLogs,url:window.location.href,timestamp:Date.now(),webVitals:Object.keys(l).length>0?l:void 0,pageSize:p>0?p:void 0}}))}else{let l=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);Ho(`devbar-screenshot-${l}.jpg`,s),e.handleNotification("screenshot","screenshot downloaded",de)}}}catch(r){console.error("[GlobalDevBar] Screenshot failed:",r),n&&n()}finally{e.capturing=!1,e.render()}}async function Pr(e){if(e.designReviewInProgress||!e.sweetlinkConnected)return;let t=null;try{e.designReviewInProgress=!0,e.designReviewError=null,e.designReviewErrorTimeout&&(clearTimeout(e.designReviewErrorTimeout),e.designReviewErrorTimeout=null),e.render(),t=Re(),await Le(bt);let n=await(await ie())(document.body,qo(1,!1));t(),t=null;let r=Me(n,{format:"png"});e.ws?.readyState===WebSocket.OPEN&&e.ws.send(JSON.stringify({type:"design-review-screenshot",data:{screenshot:r,width:n.width,height:n.height,logs:e.consoleLogs,url:window.location.href,timestamp:Date.now()}}))}catch(o){console.error("[GlobalDevBar] Design review failed:",o),t&&t(),e.designReviewInProgress=!1,e.render()}}function Ko(e){e.sweetlinkConnected&&(e.ws?.readyState===WebSocket.OPEN&&e.ws.send(JSON.stringify({type:"check-api-key"})),O(e),e.showDesignReviewConfirm=!0,e.render())}function Qo(e){if(!e.apiKeyStatus?.pricing)return null;let t=window.innerWidth,o=window.innerHeight,n=Math.ceil(t*o/750),r=500,i=1500,a=n+r,{input:s,output:l}=e.apiKeyStatus.pricing,c=a/1e6*s,p=i/1e6*l,u=c+p;return{tokens:a+i,cost:u<.01?"<$0.01":`~$${u.toFixed(2)}`}}function Xo(e){e.showDesignReviewConfirm=!1,e.apiKeyStatus=null,e.render()}function Zo(e){e.showDesignReviewConfirm=!1,Pr(e)}function jt(e,t){let o=e[t];O(e),e[t]=!o,e.render()}function $o(e){jt(e,"showOutlineModal")}function _o(e){jt(e,"showSchemaModal")}function en(e){jt(e,"showA11yModal")}function tn(e,t){if(e.savingA11yAudit)return;let o=Ke(t);tt(e,{type:"save-a11y",data:{markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingA11yAudit",downloadFilename:"a11y-audit",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"a11y",notificationMessage:"a11y report downloaded"})}function on(e){if(e.savingOutline)return;let t=X(),o=H(t);tt(e,{type:"save-outline",data:{outline:t,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingOutline",downloadFilename:"outline",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"outline",notificationMessage:"outline downloaded"})}function zt(e){return e.length===0?"_No logs_":e.map(t=>`- **[${new Date(t.timestamp).toLocaleTimeString()}]** \`${t.level}\` ${t.message}`).join(`
|
|
514
514
|
`)}function nn(e,t){if(e.savingConsoleLogs)return;let o=zt(t);tt(e,{type:"save-console-logs",data:{logs:t,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingConsoleLogs",downloadFilename:"console-logs",downloadContent:o,downloadMimeType:"text/markdown",notificationKey:"consoleLogs",notificationMessage:"console logs downloaded"})}function rn(e){if(e.savingSchema)return;let t=Z(),o=Fe(t),n=ze(),r=$(t,{missingTags:o,favicons:n});tt(e,{type:"save-schema",data:{schema:t,markdown:r,url:window.location.href,title:document.title,timestamp:Date.now()},savingFlag:"savingSchema",downloadFilename:"schema",downloadContent:r,downloadMimeType:"text/markdown",notificationKey:"schema",notificationMessage:"schema downloaded"})}function De(e,t,o){if(Rt(o)){e.addSuccess(`${t} simulated`,o),e.addWarning(Bo());return}let n=o.endsWith("downloaded");e.addSuccess(n?`${t} downloaded!`:`${t} saved!`,n?void 0:o)}function Y(e,t,o,n){let i={error:"error",warn:"warning",info:"info"}[t],a=e.consoleFilter===t,s=document.createElement("span");return s.className="devbar-badge",Object.assign(s.style,{display:"flex",alignItems:"center",justifyContent:"center",minWidth:"18px",height:"18px",padding:"0 5px",borderRadius:"9999px",backgroundColor:n,color:"#fff",fontSize:"0.625rem",fontWeight:"600",cursor:"pointer",boxShadow:a?`0 0 8px ${f(n,80)}`:"none"}),s.textContent=o>99?"99+":String(o),R(e,s,()=>`${o} console ${i}${o===1?"":"s"} (click to view)`),s.onclick=()=>{let l=e.consoleFilter===t?null:t;O(e),e.consoleFilter=l,e.render()},s}function ot(e,t){let o=document.createElement("button");o.type="button",o.setAttribute("aria-label","Screenshot");let n=e.copiedToClipboard||e.copiedPath||e.lastScreenshot,r=e.capturing,i=V(e.options.saveLocation,e.sweetlinkConnected),a=i==="local"&&!e.sweetlinkConnected&&!n;return D(e,o,t,(s,l)=>{if(e.copiedToClipboard){l.addSuccess("Copied to clipboard!");return}if(e.copiedPath){l.addSuccess("Path copied to clipboard!");return}if(e.lastScreenshot){let c=e.lastScreenshot;if(Rt(c)){De(l,"Screenshot",c);return}if(c.endsWith("downloaded"))l.addSuccess("Screenshot downloaded!");else{l.addSuccess("Screenshot saved!",c);let u=document.createElement("div");Object.assign(u.style,{color:t,cursor:"pointer",fontSize:"0.625rem",marginTop:"6px",opacity:"0.8",transition:"opacity 150ms"}),u.textContent="copy path",u.onmouseenter=()=>{u.style.opacity="1"},u.onmouseleave=()=>{u.style.opacity="0.8"},u.onclick=async m=>{m.stopPropagation();try{await navigator.clipboard.writeText(c),u.textContent="\u2713 copied!",u.style.cursor="default",u.onclick=null}catch{u.textContent="\xD7 failed to copy",u.style.color=d.error}},s.appendChild(u)}return}if(l.addTitle("Screenshot"),l.addSectionHeader("Actions"),i==="local"&&!e.sweetlinkConnected)l.addShortcut("Shift+Click","Copy to clipboard"),l.addWarning("Sweetlink not connected. Switch save method to Auto or Download.");else{let c=i==="local"?"Save to file":"Download";l.addShortcut("Click",c),l.addShortcut("Shift+Click","Copy to clipboard"),l.addShortcut("Alt+Click","HiFi screenshot (pixel-perfect via daemon)"),l.addSectionHeader("Keyboard"),l.addShortcut("Cmd or Ctrl+Shift+S",c),l.addShortcut("Cmd or Ctrl+Shift+C","Copy")}}),Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",minWidth:"24px",minHeight:"24px",flexShrink:"0",borderRadius:"50%",border:"1px solid",borderColor:n?t:f(t,50),backgroundColor:n?f(t,20):"transparent",color:n?t:f(t,60),cursor:r?"not-allowed":"pointer",opacity:a?"0.4":"1",transition:"all 150ms"}),o.disabled=r,o.onclick=s=>{if(s.altKey){if(!e.ws||!e.sweetlinkConnected)return;e.ws.send(JSON.stringify({type:"hifi-screenshot"})),e.capturing=!0,e.render();return}e.lastScreenshot&&!s.shiftKey?Yo(e,e.lastScreenshot):e.handleScreenshot(s.shiftKey)},e.copiedToClipboard||e.copiedPath||e.lastScreenshot?(o.textContent="\u2713",o.style.fontSize="0.6rem"):e.capturing?(o.textContent="...",o.style.fontSize="0.5rem"):o.appendChild(I("M19.844 7.938H7.938v11.905m0 11.113v11.906h11.905m23.019-11.906v11.906H30.956m11.906-23.018V7.938H30.956",{viewBox:"0 0 50.8 50.8",stroke:!0,strokeWidth:"4",children:[{type:"circle",cx:"25.4",cy:"25.4",r:"8.731"}]})),o}function an(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label","AI Design Review");let o=!!e.designReviewError,n=e.designReviewInProgress||!!e.lastDesignReview||o,r=e.designReviewInProgress||!e.sweetlinkConnected,i=o?d.error:x.review;return D(e,t,i,(a,s)=>{if(e.designReviewInProgress){s.addProgress("AI Design Review in progress...");return}if(e.designReviewError){s.addError("Design review failed",e.designReviewError);return}if(e.lastDesignReview){De(s,"Design review",e.lastDesignReview);return}s.addTitle("AI Design Review"),s.addDescription("Captures screenshot and sends to Claude for design analysis."),s.addSectionHeader("Requirements"),s.addShortcut("API Key","ANTHROPIC_API_KEY"),B()&&s.addWarning("Demo mode: no Claude request will be sent."),e.sweetlinkConnected||s.addWarning("Sweetlink not connected")}),Object.assign(t.style,L(i,n,r)),e.sweetlinkConnected||(t.style.opacity="0.5"),t.disabled=r,t.onclick=()=>Ko(e),e.designReviewInProgress?(t.textContent="~",t.style.fontSize="0.5rem",t.style.animation="pulse 1s infinite"):e.designReviewError?(t.textContent="\xD7",t.style.fontSize="0.875rem",t.style.fontWeight="bold"):e.lastDesignReview?(t.textContent="v",t.style.fontSize="0.5rem"):t.appendChild(I("M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z",{fill:!0})),t}function sn(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label","Document Outline");let o=e.showOutlineModal||!!e.lastOutline;return D(e,t,x.outline,(n,r)=>{if(e.lastOutline){De(r,"Outline",e.lastOutline);return}r.addTitle("Document Outline"),r.addDescription("View page heading structure and save as markdown."),B()&&r.addWarning("Demo mode: save actions return example paths only."),e.options.saveLocation==="local"&&!e.sweetlinkConnected&&r.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),Object.assign(t.style,L(x.outline,o,!1)),t.onclick=()=>$o(e),e.lastOutline?(t.textContent="v",t.style.fontSize="0.5rem"):t.appendChild(I("M3 4h18v2H3V4zm0 7h12v2H3v-2zm0 7h18v2H3v-2z",{fill:!0})),t}function ln(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label","Page Schema");let o=e.showSchemaModal||!!e.lastSchema;return D(e,t,x.schema,(n,r)=>{if(e.lastSchema){De(r,"Schema",e.lastSchema);return}r.addTitle("Page Schema"),r.addDescription("View JSON-LD, Open Graph, and other structured data."),B()&&r.addWarning("Demo mode: save actions return example paths only."),e.options.saveLocation==="local"&&!e.sweetlinkConnected&&r.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),Object.assign(t.style,L(x.schema,o,!1)),t.onclick=()=>_o(e),e.lastSchema?(t.textContent="v",t.style.fontSize="0.5rem"):t.appendChild(I("M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z",{fill:!0})),t}function cn(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label","Accessibility Audit");let o=e.showA11yModal||!!e.lastA11yAudit;return D(e,t,x.a11y,(n,r)=>{if(e.lastA11yAudit){De(r,"A11y report",e.lastA11yAudit);return}r.addTitle("Accessibility Audit"),r.addDescription("Run axe-core audit to check WCAG compliance."),B()&&r.addWarning("Demo mode: save actions return example paths only."),e.options.saveLocation==="local"&&!e.sweetlinkConnected&&r.addWarning("Sweetlink not connected. Switch save method to Auto or Download.")}),t.addEventListener("mouseenter",()=>Tt(),{once:!0}),Object.assign(t.style,L(x.a11y,o,!1)),t.onclick=()=>en(e),e.lastA11yAudit?(t.textContent="v",t.style.fontSize="0.5rem"):t.appendChild(I("M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z",{fill:!0})),t}function dn(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label","Ruler");let o=e.rulerMode;return D(e,t,x.ruler,(n,r)=>{o?(r.addTitle("Ruler Mode Active"),r.addDescription("Click elements to pin measurements. Press Esc or click here to exit.")):(r.addTitle("Ruler"),r.addDescription("Measure element dimensions and positions on page."))}),Object.assign(t.style,L(x.ruler,o,!1)),t.onclick=()=>{e.rulerMode?(e.rulerMode=!1,e.rulerCleanup&&(e.rulerCleanup(),e.rulerCleanup=null)):(O(e),e.rulerMode=!0,e.rulerCleanup=Go(e)),e.render()},o?(t.textContent="\u2716",t.style.fontSize="0.5rem"):t.appendChild(I("M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.4 2.4 0 0 1 0-3.4l2.6-2.6a2.4 2.4 0 0 1 3.4 0zM14.5 12.5l2-2M11.5 9.5l2-2M8.5 6.5l2-2M17.5 15.5l2-2",{stroke:!0,strokeWidth:"2"})),t}function pn(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label",e.recordingActive?"Stop Recording":"Start Recording");let o=e.recordingActive;if(D(e,t,x.error,(n,r)=>{if(o){let i=e.recordingStartedAt?((Date.now()-e.recordingStartedAt)/1e3).toFixed(0):"0";r.addTitle(`Recording: ${i}s`),r.addShortcut("Click","Stop recording & open viewer")}else e.lastViewerPath?(B()?(r.addSuccess("Demo recording simulated",e.lastViewerPath),r.addWarning("Demo only: no recording file was written.")):r.addSuccess("Last session recorded"),r.addShortcut("Click","Start new recording"),r.addShortcut("Shift+Click","Open last viewer")):(r.addTitle("Session Recording"),r.addShortcut("Click","Start recording (video + actions)"),B()&&r.addWarning("Demo mode: no video or action manifest will be recorded."))}),Object.assign(t.style,{...L(g.red,o,!1),borderColor:o?g.red:f(g.red,50),backgroundColor:o?f(g.red,20):"transparent",color:o?g.red:f(g.red,60),...o&&{animation:"devbar-pulse 1.5s ease-in-out infinite"}}),t.onclick=n=>{if(n.shiftKey&&e.lastViewerPath&&!o){et(e.lastViewerPath)&&window.open(e.lastViewerPath,"_blank");return}if(!(!e.ws||!e.sweetlinkConnected))if(o){let r=window.open("about:blank","_blank");e.pendingViewerWindow=r,e.ws.send(JSON.stringify({type:"record-stop"})),e.recordingTimer&&clearInterval(e.recordingTimer),e.recordingActive=!1,e.recordingTimer=null,e.recordingStartedAt=null,e.render()}else e.ws.send(JSON.stringify({type:"record-start"})),e.recordingActive=!0,e.recordingStartedAt=Date.now(),e.recordingSessionId=null,e.recordingTimer=setInterval(()=>e.render(),1e3),e.render()},o){let n=document.createElement("span");Object.assign(n.style,{display:"block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:g.red}),t.appendChild(n)}else{let n=document.createElement("span");Object.assign(n.style,{display:"block",width:"8px",height:"8px",borderRadius:"50%",border:"2px solid currentColor"}),t.appendChild(n)}return t}function un(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label",e.demoActive?"Demo in progress":"Start Demo");let o=e.demoActive;return D(e,t,x.info,(n,r)=>{o?(r.addTitle(`Demo: "${e.demoTitle??"Untitled"}"`),r.addShortcut(`${e.demoSectionCount} sections`,""),r.addShortcut("Click","Add screenshot to demo")):(r.addTitle("Demo Document"),r.addShortcut("Click","Start demo (prompts for title)"),B()&&r.addWarning("Demo mode: no markdown document will be written."))}),Object.assign(t.style,{...L(x.info,o,!1)}),t.onclick=()=>{if(!(!e.ws||!e.sweetlinkConnected))if(o)e.ws.send(JSON.stringify({type:"demo-screenshot"})),e.demoSectionCount++,e.render();else{let n=prompt("Demo title:");if(!n)return;e.ws.send(JSON.stringify({type:"demo-init",data:{title:n}})),e.demoActive=!0,e.demoTitle=n,e.demoSectionCount=0,e.render()}},o?(t.textContent=String(e.demoSectionCount),t.style.fontSize="0.6rem"):t.appendChild(I("M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",{stroke:!0,strokeWidth:"2"})),t}function nt(e){let t=document.createElement("button");t.type="button",t.setAttribute("data-testid","devbar-settings-button"),t.setAttribute("aria-label","Settings"),D(e,t,d.textSecondary,(r,i)=>{i.addTitle("Settings"),i.addSectionHeader("Keyboard"),i.addShortcut("Cmd or Ctrl+Shift+M","Toggle compact mode")});let o=e.showSettingsPopover,n=d.textSecondary;return Object.assign(t.style,L(n,o,!1)),t.onclick=()=>{let r=e.showSettingsPopover;O(e),e.showSettingsPopover=!r,e.render()},t.appendChild(I("M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",{stroke:!0,children:[{type:"circle",cx:"12",cy:"12",r:"3"}]})),t}function mn(e){let t=document.createElement("button");t.type="button",t.setAttribute("aria-label",e.compactMode?"Switch to expanded mode":"Switch to compact mode");let o=e.compactMode,{accentColor:n}=e.options,r=d.textSecondary;Object.assign(t.style,L(r,!1,!1)),t.style.borderColor=f(n,38),R(e,t,()=>o?"Expand (Cmd or Ctrl+Shift+M)":"Compact (Cmd or Ctrl+Shift+M)",{onEnter:()=>{t.style.borderColor=n,t.style.backgroundColor=f(n,13),t.style.color=r},onLeave:()=>{t.style.borderColor=f(n,38),t.style.backgroundColor="transparent",t.style.color=f(r,60)}}),t.onclick=()=>{e.toggleCompactMode()};let i=o?"9 18 15 12 9 6":"15 18 9 12 15 6";return t.appendChild(I("",{stroke:!0,children:[{type:"polyline",points:i}]})),t}function fn(e,t=[]){if(!e.container)return;let{position:o,accentColor:n}=e.options,{errorCount:r,warningCount:i,infoCount:a}=e.getLogCounts(),s=fe[o]??fe["bottom-left"],l=e.container;t.length>0?l.dataset.devbarCustomControls="true":delete l.dataset.devbarCustomControls,e.resetPositionStyles(l),Object.assign(l.style,{position:"fixed",...s,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${n}`,borderRadius:"20px",color:n,boxShadow:`${E.shadows.dropToolbar}, 0 0 0 1px ${f(n,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",padding:"6px 10px",display:"flex",flexWrap:"wrap",alignItems:"center",gap:"8px",boxSizing:"border-box",maxWidth:o==="bottom-center"?"calc(100vw - 32px)":"calc(100vw - 96px)",minWidth:"0",fontFamily:S,fontSize:"0.6875rem"});let c=Xe(e),p=c.querySelector(".devbar-conn-dot");if(R(e,c,()=>me(e.sweetlinkConnected)),c.onclick=m=>{m.stopPropagation(),Oe(e,p),e.collapsed=!0,e.debug.state("Collapsed DevBar from compact mode"),e.render()},l.appendChild(c),r>0&&l.appendChild(Y(e,"error",r,x.error)),i>0&&l.appendChild(Y(e,"warn",i,x.warning)),a>0&&l.appendChild(Y(e,"info",a,x.info)),e.options.showScreenshot&&l.appendChild(ot(e,n)),l.appendChild(nt(e)),t.length>0)for(let m of t)l.appendChild(ke(m,n,e));let u=document.createElement("button");u.type="button",Object.assign(u.style,{display:"flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"50%",border:`1px solid ${f(n,38)}`,backgroundColor:"transparent",color:f(n,60),cursor:"pointer",fontSize:"0.5rem",transition:"all 150ms"}),u.textContent="\u27EB",R(e,u,()=>"Expand DevBar",{onEnter:()=>{u.style.backgroundColor=f(n,13),u.style.borderColor=n,u.style.color=n},onLeave:()=>{u.style.backgroundColor="transparent",u.style.borderColor=f(n,38),u.style.color=f(n,60)}}),u.onclick=()=>{e.toggleCompactMode()},l.appendChild(u)}function xe(e,t,o={}){let n=typeof window<"u"?window.location.href:"unknown",r=typeof window<"u"?`${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio||1}x`:"unknown",i=e.lastScreenshot??"not captured yet",a=o.artifactPath??"not saved yet",s=`Run pnpm sweetlink inspect --url ${n} before acting to refresh @e refs.`,l=[`# ${t}`,`- URL: ${n}`,`- Viewport: ${r}`,`- Screenshot: ${i}`,`- Artifact: ${a}`,`- Refs: ${s}`];return o.observation&&l.push(`- Observation: ${o.observation}`),{title:"Agent Context",items:[{label:"URL",value:n},{label:"Viewport",value:r},{label:"Screenshot",value:i},{label:"Artifact",value:a},{label:"Refs",value:s}],copyText:l.join(`
|
|
515
515
|
`)}}function gn(e,t){let o=e.consoleFilter;if(!o)return;let n=t.getLogs().filter(b=>b.level===o),i={error:x.error,warn:x.warning,info:x.info}[o],s={error:"Errors",warn:"Warnings",info:"Info"}[o],l=()=>{e.consoleFilter=null,e.render()},c=U(l),p=G(i,`Console ${s}`),u=N({color:i,title:`Console ${s} (${n.length})`,onClose:l,onCopyMd:async()=>{await z(zt(n))},onSave:()=>nn(e,n),onClear:()=>e.clearConsoleLogs(),sweetlinkConnected:e.sweetlinkConnected,saveLocation:e.options.saveLocation,isSaving:e.savingConsoleLogs,savedPath:e.lastConsoleLogs,evidenceContext:xe(e,`Console ${s}`,{artifactPath:e.lastConsoleLogs,observation:`${n.length} ${o} log${n.length===1?"":"s"} in the current filter.`})});p.appendChild(u);let m=W();n.length===0?m.appendChild(re(`No ${o}s recorded`)):Nr(m,n,i),p.appendChild(m),c.appendChild(p),e.overlayElement=c,document.body.appendChild(c),q(p)}function Nr(e,t,o){t.forEach((n,r)=>{let i=document.createElement("div");Object.assign(i.style,{padding:"8px 14px",borderBottom:r<t.length-1?`1px solid ${d.borderSubtle}`:"none"});let a=document.createElement("span");Object.assign(a.style,{color:d.textMuted,fontSize:"0.625rem",marginRight:"8px"}),a.textContent=new Date(n.timestamp).toLocaleTimeString(),i.appendChild(a);let s=document.createElement("span");Object.assign(s.style,{color:o,fontSize:"0.6875rem",wordBreak:"break-word",whiteSpace:"pre-wrap"}),s.textContent=n.message,i.appendChild(s),e.appendChild(i)})}function Wr(e,t,o){if(e.lastDotPosition&&!o){let i=t.endsWith("right"),a;return i?a=t.startsWith("top")?{top:"20px",right:"16px"}:{bottom:"20px",right:"16px"}:a={top:`${e.lastDotPosition.top-15}px`,left:`${e.lastDotPosition.left-19}px`},e.lastDotPosition=null,a}return fe[t]??fe["bottom-left"]}function jr(e,t,o,n,r){e.resetPositionStyles(t);let i=e.options.sizeOverrides,a="fit-content",s="auto",l=r?"calc(100vw - 32px)":"calc(100vw - 96px)";Object.assign(t.style,{position:"fixed",...o,zIndex:"9999",backgroundColor:"var(--devbar-color-bg-card)",border:`1px solid ${n}`,borderRadius:"12px",color:n,boxShadow:`${E.shadows.dropToolbar}, 0 0 0 1px ${f(n,10)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",boxSizing:"border-box",width:i?.width??a,maxWidth:i?.maxWidth??l,minWidth:i?.minWidth??s,cursor:"default"}),t.ondblclick=c=>{if(c.target?.closest("button, input, select, a"))return;let u=t.querySelector(".devbar-status span span");u&&Oe(e,u),e.collapsed=!0,e.debug.state("Collapsed DevBar (double-click)"),e.render()}}function zr(){let e=document.createElement("div");return e.className="devbar-main",Object.assign(e.style,{display:"flex",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0.5rem 0.75rem",minWidth:"0",boxSizing:"border-box",fontFamily:S,fontSize:"0.6875rem",lineHeight:"1rem"}),e}function Fr(e){let t=Xe(e);return R(e,t,()=>me(e.sweetlinkConnected,"click to minimize")),t.onclick=o=>{o.stopPropagation(),Oe(e,t),e.collapsed=!0,e.debug.state("Collapsed DevBar (connection dot click)"),e.render()},t}function Hr(e,t){let o=document.createElement("div");return o.className="devbar-info",Object.assign(o.style,{display:"flex",alignItems:"center",gap:"0.5rem",textTransform:"uppercase",letterSpacing:"0.05em",flexShrink:"1",minWidth:"0",overflow:"visible"}),t.breakpoint&&e.breakpointInfo&&Vr(e,o),e.perfStats&&Gr(e,o,t),o}function Vr(e,t){if(!e.breakpointInfo)return;let o=e.breakpointInfo.tailwindBreakpoint,n=_[o],r=document.createElement("span");r.className="devbar-item",Object.assign(r.style,{opacity:"0.9",cursor:"default"}),Io(e,r,o,e.breakpointInfo.dimensions,n?.label||"");let i=o;o!=="base"&&(i=o==="sm"?`${o} - ${e.breakpointInfo.dimensions.split("x")[0]}`:`${o} - ${e.breakpointInfo.dimensions}`),r.textContent=i,t.appendChild(r)}function Ur(e){return{fcp:{label:"FCP",value:e.fcp,title:"First Contentful Paint (FCP)",description:"Time until the first text or image renders on screen.",thresholds:{good:"<1.8s",needsWork:"1.8-3s",poor:">3s"}},lcp:{label:"LCP",value:e.lcp,title:"Largest Contentful Paint (LCP)",description:"Time until the largest visible element renders on screen.",thresholds:{good:"<2.5s",needsWork:"2.5-4s",poor:">4s"}},cls:{label:"CLS",value:e.cls,title:"Cumulative Layout Shift (CLS)",description:"Visual stability score. Higher values mean more unexpected layout shifts.",thresholds:{good:"<0.1",needsWork:"0.1-0.25",poor:">0.25"}},inp:{label:"INP",value:e.inp,title:"Interaction to Next Paint (INP)",description:"Responsiveness to user input. Measures the longest interaction delay.",thresholds:{good:"<200ms",needsWork:"200-500ms",poor:">500ms"}},pageSize:{label:"",value:e.totalSize,title:"Total Page Size",description:"Compressed/transferred size including HTML, CSS, JS, images, and other resources."}}}function Gr(e,t,o){if(!e.perfStats)return;let{visible:n,hidden:r}=Co(e),i=Ur(e.perfStats),a=()=>{let l=document.createElement("span");l.style.opacity="0.4",l.textContent="|",t.appendChild(l)};for(let l of n){if(!o[l])continue;let c=i[l];a();let p=document.createElement("span");p.className="devbar-item",Object.assign(p.style,{opacity:l==="pageSize"?"0.7":"0.85",cursor:"default"}),p.textContent=c.label?`${c.label} ${c.value}`:c.value,c.thresholds?Lo(e,p,c.title,c.description,c.thresholds):Do(e,p,c.title,c.description),t.appendChild(p)}let s=r.filter(l=>o[l]);s.length>0&&(a(),qr(e,t,s,i))}function qr(e,t,o,n){let r=document.createElement("span");r.className="devbar-item devbar-clickable",Object.assign(r.style,{opacity:"0.7",cursor:"pointer",padding:"0 2px"}),r.textContent="\xB7\xB7\xB7",Mo(e,r,i=>{ue(e,i,"More Metrics");let a=document.createElement("div");Object.assign(a.style,{display:"flex",flexDirection:"column",gap:"6px",marginTop:"8px"});for(let s of o){let l=n[s],c=document.createElement("div");Object.assign(c.style,{display:"flex",justifyContent:"space-between",gap:"12px"});let p=document.createElement("span");Object.assign(p.style,{color:d.textMuted}),p.textContent=l.title.split("(")[0].trim();let u=document.createElement("span");Object.assign(u.style,{color:d.text,fontWeight:"500"}),u.textContent=l.value,c.appendChild(p),c.appendChild(u),a.appendChild(c)}i.appendChild(a)}),t.appendChild(r)}function Yr(e,t,o,n,r,i){let a=Fr(e),s=document.createElement("div");s.className="devbar-status",Object.assign(s.style,{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"nowrap",flexShrink:"1",minWidth:"0"}),s.appendChild(a);let l=Hr(e,t);return s.appendChild(l),o&&(n>0&&s.appendChild(Y(e,"error",n,x.error)),r>0&&s.appendChild(Y(e,"warn",r,x.warning)),i>0&&s.appendChild(Y(e,"info",i,x.info))),s}function Jr(e,t,o){let n=document.createElement("div");return n.className="devbar-actions",t&&n.appendChild(ot(e,o)),n.appendChild(an(e)),n.appendChild(sn(e)),n.appendChild(ln(e)),n.appendChild(cn(e)),n.appendChild(dn(e)),n.appendChild(pn(e)),n.appendChild(un(e)),n.appendChild(nt(e)),n.appendChild(mn(e)),n}function Kr(e,t,o,n){if(t.length===0)return null;let r=document.createElement("div");r.className=e,Object.assign(r.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${f(o,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:S,fontSize:"0.6875rem"});for(let i of t)r.appendChild(ke(i,o,n));return r}function Qr(e,t,o){let n=e.filter(i=>!i.group),r=Kr("devbar-custom-controls devbar-custom-controls-inline",n,t,o);return r?(Object.assign(r.style,{padding:"0",borderTop:"0",width:"fit-content",flex:"0 1 auto",overflow:"hidden"}),r):null}function Xr(e,t,o){let n=e.filter(a=>a.group);if(n.length===0)return null;let r=document.createElement("div");r.className="devbar-custom-controls devbar-custom-controls-row",Object.assign(r.style,{display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",justifyContent:"flex-start",gap:"0.5rem",padding:"0 0.75rem 0.5rem 0.75rem",borderTop:`1px solid ${f(t,19)}`,marginTop:"0",paddingTop:"0.5rem",width:"100%",maxWidth:"100%",minWidth:"0",overflow:"visible",boxSizing:"border-box",fontFamily:S,fontSize:"0.6875rem"});let i=new Map;for(let a of n){if(!a.group)continue;let s=i.get(a.group)??[];s.push(a),i.set(a.group,s)}for(let[a,s]of i){let l=document.createElement("span");l.className="devbar-custom-group-label",Object.assign(l.style,{color:f(t,50),fontSize:"0.5625rem",textTransform:"uppercase",letterSpacing:"0.05em",flex:"0 1 auto",minWidth:"0",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginLeft:[...i.keys()].indexOf(a)>0?"0.25rem":"0"}),l.textContent=a,r.appendChild(l);for(let c of s)r.appendChild(ke(c,t,o))}return r}function hn(e,t){if(!e.container)return;let{position:o,accentColor:n,showMetrics:r,showScreenshot:i,showConsoleBadges:a}=e.options,{errorCount:s,warningCount:l,infoCount:c}=e.getLogCounts(),p=t.some(T=>T.group),u=o==="bottom-center",m=e.container;p?m.dataset.devbarCustomControls="true":delete m.dataset.devbarCustomControls;let b=Wr(e,o,u);jr(e,m,b,n,u);let y=zr(),w=Yr(e,r,a,s,l,c);y.appendChild(w);let h=Qr(t,n,e);h&&y.appendChild(h);let v=Jr(e,i,n);y.appendChild(v),m.appendChild(y);let C=Xr(t,n,e);C&&m.appendChild(C)}function xn(e){let t=X(),o=x.outline,n=()=>{e.showOutlineModal=!1,e.render()},r=U(n),i=G(o,"Document Outline"),a=N({color:o,title:"Document Outline",onClose:n,onCopyMd:async()=>{let l=H(t);await z(l)},onSave:()=>on(e),sweetlinkConnected:e.sweetlinkConnected,saveLocation:e.options.saveLocation,isSaving:e.savingOutline,savedPath:e.lastOutline,evidenceContext:xe(e,"Document Outline",{artifactPath:e.lastOutline,observation:`${t.length} top-level semantic node${t.length===1?"":"s"} found.`})});i.appendChild(a);let s=W();t.length===0?s.appendChild(re("No semantic elements found in this document")):wn(t,s,0,{lastHeadingLevel:0}),i.appendChild(s),r.appendChild(i),e.overlayElement=r,document.body.appendChild(r),q(i)}function wn(e,t,o,n){for(let r of e){let i=r.category==="heading"&&r.level>0,a=i&&r.level>n.lastHeadingLevel+1;i&&(n.lastHeadingLevel=r.level);let s=document.createElement("div");if(Object.assign(s.style,{padding:`4px 0 4px ${o*16}px`}),a){let m=document.createElement("span");Object.assign(m.style,{color:d.error,fontSize:"0.625rem",marginRight:"4px"}),m.textContent="\u26A0",m.title=`Heading level skipped (expected h${r.level-1} or higher before h${r.level})`,s.appendChild(m)}let l=document.createElement("span"),c=Ue[r.category||"other"]||Ue.other;if(Object.assign(l.style,{color:a?d.error:c,fontSize:"0.6875rem",fontWeight:"500"}),l.textContent=`<${r.tagName}>`,s.appendChild(l),r.category){let m=document.createElement("span");Object.assign(m.style,{color:d.textMuted,fontSize:"0.625rem",marginLeft:"6px"}),m.textContent=`[${r.category}]`,s.appendChild(m)}let p=document.createElement("span");Object.assign(p.style,{color:d.textSecondary,fontSize:"0.6875rem",marginLeft:"8px"});let u=r.text.length>60?`${r.text.slice(0,60)}...`:r.text;if(p.textContent=u,s.appendChild(p),r.id){let m=document.createElement("span");Object.assign(m.style,{color:d.textSecondary,fontSize:"0.625rem",marginLeft:"6px"}),m.textContent=`#${r.id}`,s.appendChild(m)}t.appendChild(s),r.children.length>0&&wn(r.children,t,o+1,n)}}function vn(e){let t=Z(),o=x.schema,n=()=>{e.showSchemaModal=!1,e.render()},r=U(n),i=G(o,"Page Schema"),a=Fe(t),s=ze(),l=N({color:o,title:"Page Schema",onClose:n,onCopyMd:async()=>{let u=$(t,{missingTags:a,favicons:s});await z(u)},onSave:()=>rn(e),sweetlinkConnected:e.sweetlinkConnected,saveLocation:e.options.saveLocation,isSaving:e.savingSchema,savedPath:e.lastSchema,evidenceContext:xe(e,"Page Schema",{artifactPath:e.lastSchema,observation:a.length?`${a.length} recommended metadata item${a.length===1?"":"s"} missing.`:"Schema evidence captured for this page."})});i.appendChild(l);let c=W();t.jsonLd.length>0||Object.keys(t.openGraph).length>0||Object.keys(t.twitter).length>0||Object.keys(t.metaTags).length>0||s.length>0||a.length>0?(a.length>0&&ri(c,a),rt(c,"Open Graph",t.openGraph,d.info),rt(c,"Twitter Cards",t.twitter,d.cyan),s.length>0&&oi(c,s),rt(c,"JSON-LD",t.jsonLd,o),rt(c,"Meta Tags",t.metaTags,d.textMuted)):c.appendChild(re("No structured data found on this page")),i.appendChild(c),r.appendChild(i),e.overlayElement=r,document.body.appendChild(r),q(i)}function Ht(e,t,o,n){let r=document.createElement("div");Object.assign(r.style,{display:"flex",alignItems:"center",gap:"8px",marginBottom:"10px",paddingBottom:"6px",borderBottom:`1px solid ${f(o,19)}`});let i=document.createElement("h3");Object.assign(i.style,{color:o,fontSize:"0.8125rem",fontWeight:"600",margin:"0"}),i.textContent=t,r.appendChild(i);let a=document.createElement("span");Object.assign(a.style,{color:f(o,80),fontSize:"0.5625rem",backgroundColor:f(o,9),padding:"1px 6px",borderRadius:"8px",letterSpacing:"0.03em"}),a.textContent=String(n),r.appendChild(a),e.appendChild(r)}function rt(e,t,o,n){let r=Array.isArray(o)?o.length:Object.keys(o).length;if(r===0)return;let i=document.createElement("div");i.style.marginBottom="20px",Ht(i,t,n,r),Array.isArray(o)?Zr(i,o,n):_r(i,o),e.appendChild(i)}function Zr(e,t,o){t.forEach((n,r)=>{let i=document.createElement("div");i.style.marginBottom="10px";let a=n,s=typeof a?.["@type"]=="string"?a["@type"]:null,l=document.createElement("div");Object.assign(l.style,{display:"flex",alignItems:"center",gap:"6px",marginBottom:"4px"});let c=document.createElement("span");if(Object.assign(c.style,{color:d.textSecondary,fontSize:"0.6875rem"}),c.textContent=`Schema ${r+1}`,l.appendChild(c),s){let u=document.createElement("span");Object.assign(u.style,{color:f(o,80),fontSize:"0.5625rem",backgroundColor:f(o,8),border:`1px solid ${f(o,15)}`,padding:"0 5px",borderRadius:"3px"}),u.textContent=s,l.appendChild(u)}i.appendChild(l);let p=document.createElement("pre");Object.assign(p.style,{backgroundColor:"rgba(0, 0, 0, 0.25)",borderRadius:"4px",borderLeft:`2px solid ${f(o,31)}`,padding:"10px 10px 10px 12px",fontSize:"0.625rem",margin:"0",whiteSpace:"pre-wrap",wordBreak:"break-word"}),$r(p,JSON.stringify(n,null,2)),i.appendChild(p),e.appendChild(i)})}function $r(e,t){let o={key:d.primary,string:d.warning,number:d.purple,boolean:d.info,nullVal:d.error,punct:d.textMuted},n=/("(?:\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")(\s*:)?|(\btrue\b|\bfalse\b)|(\bnull\b)|(-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)|([{}[\],])|(\s+)/g;for(let r of t.matchAll(n)){let[,i,a,s,l,c,p,u]=r;if(u)e.appendChild(document.createTextNode(u));else if(i!==void 0){let m=document.createElement("span");if(m.style.color=a?o.key:o.string,m.textContent=i,e.appendChild(m),a){let b=document.createElement("span");b.style.color=o.punct,b.textContent=":",e.appendChild(b)}}else if(s){let m=document.createElement("span");m.style.color=o.boolean,m.textContent=s,e.appendChild(m)}else if(l){let m=document.createElement("span");m.style.color=o.nullVal,m.textContent=l,e.appendChild(m)}else if(c){let m=document.createElement("span");m.style.color=o.number,m.textContent=c,e.appendChild(m)}else if(p){let m=document.createElement("span");m.style.color=o.punct,m.textContent=p,e.appendChild(m)}}}function _r(e,t){Object.entries(t).forEach(([n,r],i)=>{let a=Xt(n),s=document.createElement("div");Object.assign(s.style,{display:"flex",padding:a?"6px 8px":"3px 8px",alignItems:"flex-start",borderRadius:"3px",backgroundColor:i%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let l=document.createElement("span");if(Object.assign(l.style,{color:d.textSecondary,fontSize:"0.6875rem",width:"120px",minWidth:"120px",maxWidth:"120px",flexShrink:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingTop:a?"2px":"0"}),l.textContent=n,n.length>18&&(l.title=n),s.appendChild(l),a&&r){let c=document.createElement("div");Object.assign(c.style,{flex:"1",minWidth:"0"});let p=document.createElement("div");Object.assign(p.style,{display:"inline-block",padding:"4px",backgroundColor:"rgba(0, 0, 0, 0.2)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",marginBottom:"4px",minHeight:"60px",minWidth:"80px"});let u=document.createElement("img");Object.assign(u.style,{width:"200px",height:"120px",objectFit:"contain",borderRadius:"2px",display:"block"}),u.src=r,u.alt=n,u.onerror=()=>{p.style.display="none"},u.onload=()=>{u.naturalWidth&&(m.textContent=`${u.naturalWidth}\xD7${u.naturalHeight}`)},p.appendChild(u),c.appendChild(p);let m=document.createElement("div");Object.assign(m.style,{color:d.textMuted,fontSize:"0.5625rem",minHeight:"0.75rem",letterSpacing:"0.02em"}),c.appendChild(m);let b=document.createElement("div");Object.assign(b.style,{color:d.textMuted,fontSize:"0.5625rem",wordBreak:"break-all",opacity:"0.7"}),b.textContent=r,c.appendChild(b),s.appendChild(c)}else{let c=document.createElement("span");Object.assign(c.style,{color:d.text,fontSize:"0.6875rem",flex:"1",wordBreak:"break-word",whiteSpace:"pre-wrap",opacity:"0.85"}),c.textContent=String(r),s.appendChild(c)}e.appendChild(s)})}function ei(e,t){let o=parseInt(t||"",10);return e.includes("apple")?{text:"Apple home screen",color:d.info}:t==="any"||e.includes("svg")?{text:"Scalable (any)",color:d.cyan}:o>=192?{text:"Android / PWA",color:d.primary}:o>=48?{text:"Taskbar / shortcut",color:d.purple}:o>0?{text:"Browser tab",color:d.textSecondary}:{text:"General",color:d.textMuted}}function ti(e,t){let o=ei(e.label,e.size),n=document.createElement("div");Object.assign(n.style,{display:"flex",alignItems:"center",padding:"6px 8px",gap:"10px",borderRadius:"3px",backgroundColor:t%2===0?"rgba(255, 255, 255, 0.02)":"transparent"});let r=document.createElement("div");Object.assign(r.style,{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.25)",border:"1px solid rgba(255, 255, 255, 0.06)",borderRadius:"4px",flexShrink:"0"});let i=document.createElement("img");Object.assign(i.style,{width:"22px",height:"22px",objectFit:"contain"}),i.src=e.url,i.alt=e.label,i.onerror=()=>{r.style.opacity="0.3"},r.appendChild(i),n.appendChild(r);let a=document.createElement("div");Object.assign(a.style,{flex:"1",minWidth:"0",display:"flex",flexDirection:"column",gap:"2px"});let s=document.createElement("div");Object.assign(s.style,{display:"flex",alignItems:"center",gap:"6px"});let l=document.createElement("span");Object.assign(l.style,{color:d.text,fontSize:"0.6875rem",fontWeight:"500",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),l.textContent=e.label,e.label.length>24&&(l.title=e.label),s.appendChild(l);let c=document.createElement("span");Object.assign(c.style,{color:o.color,fontSize:"0.5rem",backgroundColor:f(o.color,7),padding:"1px 6px",borderRadius:"6px",letterSpacing:"0.03em",whiteSpace:"nowrap",flexShrink:"0"}),c.textContent=o.text,s.appendChild(c),a.appendChild(s);let p=document.createElement("div");if(Object.assign(p.style,{display:"flex",alignItems:"center",gap:"6px",fontSize:"0.5625rem",color:d.textMuted}),e.size){let y=document.createElement("span");y.textContent=e.size,y.style.opacity="0.8",p.appendChild(y)}let u=document.createElement("span");u.style.letterSpacing="0.02em",p.appendChild(u),i.onload=()=>{if(i.naturalWidth){let y=`${i.naturalWidth}\xD7${i.naturalHeight}`;e.size?u.textContent=`\u2192 ${y}`:u.textContent=y}};let m=document.createElement("span");m.textContent="\xB7",m.style.opacity="0.4",p.appendChild(m);let b=document.createElement("span");return Object.assign(b.style,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",opacity:"0.6"}),b.textContent=e.url,b.title=e.url,p.appendChild(b),a.appendChild(p),n.appendChild(a),n}function oi(e,t){let o=d.purple,n=document.createElement("div");n.style.marginBottom="20px",Ht(n,"Favicons",o,t.length),t.forEach((r,i)=>{n.appendChild(ti(r,i))}),e.appendChild(n)}function bn(e,t){let o=document.createElement("span");return Object.assign(o.style,{color:t,fontSize:"0.5625rem",backgroundColor:f(t,8),padding:"2px 8px",borderRadius:"8px",letterSpacing:"0.03em"}),o.textContent=e,o}function ni(e,t){let o=document.createElement("div");return Object.assign(o.style,{display:"flex",alignItems:"center",padding:"4px 8px",gap:"8px",borderRadius:"3px",backgroundColor:e%2===0?"rgba(255, 255, 255, 0.02)":"transparent",...t?{borderLeft:`2px solid ${f(t,25)}`}:{}}),o}function Ft(e,t){let o=document.createElement("span");return Object.assign(o.style,t),o.textContent=e,o}function ri(e,t){let o=document.createElement("div");o.style.marginBottom="20px";let n=t.filter(s=>s.severity==="error").length,r=t.length-n,a=n>0?d.error:d.warning;if(Ht(o,"Missing Tags",a,t.length),n>0||r>0){let s=document.createElement("div");Object.assign(s.style,{display:"flex",gap:"8px",marginBottom:"8px"}),n>0&&s.appendChild(bn(`${n} error${n>1?"s":""}`,d.error)),r>0&&s.appendChild(bn(`${r} warning${r>1?"s":""}`,d.warning)),o.appendChild(s)}t.forEach((s,l)=>{let c=s.severity==="error",p=c?d.error:d.warning,u=ni(l,p),m=Ft(c?"\u2718":"\u26A0",{fontSize:"0.625rem",flexShrink:"0",width:"14px",textAlign:"center",color:p});u.appendChild(m),u.appendChild(Ft(s.tag,{color:d.text,fontSize:"0.6875rem",width:"120px",minWidth:"120px",flexShrink:"0",fontWeight:"500"})),u.appendChild(Ft(s.hint,{color:d.textMuted,fontSize:"0.6875rem",flex:"1",opacity:"0.85"})),o.appendChild(u)}),e.appendChild(o)}function Cn(e){let t=x.a11y,o=()=>{e.showA11yModal=!1,e.render()},n=U(o),r=G(t,"Accessibility Audit");ii(r,t,o,e),n.appendChild(r),e.overlayElement=n,document.body.appendChild(n),q(r),Ce().then(i=>{if(!e.showA11yModal)return;let a=Ke(i);ge(r);let s=i.violations.length,l=s===0?"Accessibility Audit \u2014 No Issues":`Accessibility Audit \u2014 ${s} Violation${s===1?"":"s"}`,c=N({color:t,title:l,onClose:o,onCopyMd:async()=>{await z(a)},onSave:()=>tn(e,i),sweetlinkConnected:e.sweetlinkConnected,saveLocation:e.options.saveLocation,isSaving:e.savingA11yAudit,savedPath:e.lastA11yAudit,evidenceContext:xe(e,l,{artifactPath:e.lastA11yAudit,observation:s===0?`${i.passes.length} axe rule${i.passes.length===1?"":"s"} passed.`:`${s} accessibility violation${s===1?"":"s"} found.`})});r.appendChild(c);let p=W();ai(p,i,t),r.appendChild(p)}).catch(i=>{if(!e.showA11yModal)return;ge(r);let a=N({color:d.error,title:"Accessibility Audit \u2014 Error",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:e.sweetlinkConnected,saveLocation:e.options.saveLocation});r.appendChild(a);let s=W();s.appendChild(be(d.error,"Audit Failed",`${i instanceof Error?i.message:"Unknown error"}`)),r.appendChild(s)})}function ii(e,t,o,n){let r=W(),i=document.createElement("div");Object.assign(i.style,{textAlign:"center",padding:"40px",color:d.textSecondary,fontSize:"0.875rem"}),i.textContent="Running accessibility audit...",i.style.animation="pulse 1.5s ease-in-out infinite",r.appendChild(i);let a=N({color:t,title:"Accessibility Audit",onClose:o,onCopyMd:async()=>{},sweetlinkConnected:n.sweetlinkConnected,saveLocation:n.options.saveLocation});e.appendChild(a),e.appendChild(r)}function ai(e,t,o){if(si(e,t,o),t.violations.length===0){let n=document.createElement("div");if(Object.assign(n.style,{textAlign:"center",padding:"40px",color:d.primary,fontSize:"0.875rem"}),n.textContent="No accessibility violations found!",e.appendChild(n),t.passes.length>0){let r=document.createElement("div");Object.assign(r.style,{textAlign:"center",color:d.textMuted,fontSize:"0.75rem",marginTop:"8px"}),r.textContent=`${t.passes.length} rules passed`,e.appendChild(r)}}else{let n=qe(t.violations),r=document.createElement("div");Object.assign(r.style,{display:"flex",gap:"12px",marginBottom:"16px",padding:"10px 12px",backgroundColor:f(o,6),border:`1px solid ${f(o,19)}`,borderRadius:"6px",flexWrap:"wrap"});for(let a of["critical","serious","moderate","minor"]){if(n[a]===0)continue;let s=document.createElement("span"),l=Je(a);Object.assign(s.style,{display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"0.6875rem",fontWeight:"600",color:l});let c=document.createElement("span");Object.assign(c.style,{width:"6px",height:"6px",borderRadius:"50%",backgroundColor:l}),s.appendChild(c),s.appendChild(document.createTextNode(`${n[a]} ${a}`)),r.appendChild(s)}e.appendChild(r);let i=Ye(t.violations);for(let[a,s]of i)s.length!==0&&ci(e,a,s)}}function si(e,t,o){let n=[`${t.passes.length} axe rule${t.passes.length===1?"":"s"} passed`,`${t.violations.length} violation${t.violations.length===1?"":"s"} found`,"current DOM, focus semantics, names, landmarks, forms, and color contrast where browser APIs expose enough paint data"];e.appendChild(be(o,"What was checked",n.join(" \xB7 ")))}function yn(e){let t=document.createElement("div");return Object.assign(t.style,{padding:"3px 6px",marginBottom:"2px",backgroundColor:"rgba(0,0,0,0.2)",borderRadius:"3px",fontSize:"0.625rem",color:d.textSecondary,fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),t.textContent=e.html.length>100?`${e.html.slice(0,100)}...`:e.html,t.title=e.html,t}function li(e,t){let o=document.createElement("div");Object.assign(o.style,{marginBottom:"12px",padding:"10px 12px",backgroundColor:f(t,3),border:`1px solid ${f(t,13)}`,borderRadius:"6px"});let n=document.createElement("div");Object.assign(n.style,{color:t,fontSize:"0.6875rem",fontWeight:"600",marginBottom:"4px"}),n.textContent=e.id,o.appendChild(n);let r=document.createElement("div");Object.assign(r.style,{color:d.text,fontSize:"0.75rem",marginBottom:"4px"}),r.textContent=e.help,o.appendChild(r);let i=document.createElement("div");Object.assign(i.style,{color:d.textSecondary,fontSize:"0.6875rem",marginBottom:"6px"}),i.textContent=e.description,o.appendChild(i);let a=document.createElement("div");Object.assign(a.style,{color:d.textMuted,fontSize:"0.625rem",marginBottom:"4px"}),a.textContent=`${e.nodes.length} element${e.nodes.length===1?"":"s"} affected`,o.appendChild(a);let s=document.createElement("div");Object.assign(s.style,{marginTop:"6px"});let l=e.nodes.slice(0,3);for(let c of l)s.appendChild(yn(c));if(e.nodes.length>3){let c=document.createElement("button");Object.assign(c.style,{background:"none",border:"none",color:t,fontSize:"0.625rem",cursor:"pointer",padding:"2px 0",fontFamily:S}),c.textContent=`+ ${e.nodes.length-3} more`,c.onclick=()=>{c.remove();for(let p of e.nodes.slice(3))s.appendChild(yn(p))},s.appendChild(c)}return o.appendChild(s),o}function ci(e,t,o){let n=Je(t),r=document.createElement("div");r.style.marginBottom="20px";let i=document.createElement("h3");Object.assign(i.style,{color:n,fontSize:"0.8125rem",fontWeight:"600",marginBottom:"10px",borderBottom:`1px solid ${f(n,25)}`,paddingBottom:"6px",textTransform:"capitalize"}),i.textContent=`${t} (${o.length})`,r.appendChild(i);for(let a of o)r.appendChild(li(a,n));e.appendChild(r)}function Sn(e){let t=x.review,o=()=>Xo(e),n=U(o),r=G(t,"AI Design Review");r.style.maxWidth="450px",r.appendChild(N({color:t,title:"AI Design Review",onClose:o}));let i=W();if(Object.assign(i.style,{color:d.text,fontSize:"0.8125rem",lineHeight:"1.6"}),e.apiKeyStatus===null?i.appendChild(re("Checking API key configuration...")):e.apiKeyStatus.configured?i.appendChild(pi(e)):i.appendChild(di()),r.appendChild(i),e.apiKeyStatus?.configured){let a=document.createElement("div");Object.assign(a.style,{display:"flex",justifyContent:"flex-end",gap:"10px",padding:"14px 18px",borderTop:`1px solid ${d.border}`});let s=P({color:t,text:"Run Review",padding:"8px 16px"});s.style.backgroundColor=f(t,13),s.onclick=()=>Zo(e),a.appendChild(s),r.appendChild(a)}n.appendChild(r),e.overlayElement=n,document.body.appendChild(n),q(r)}function di(){let e=document.createElement("div");e.appendChild(be(d.error,"API Key Not Configured","The ANTHROPIC_API_KEY environment variable is not set."));let t=document.createElement("div");Object.assign(t.style,{marginBottom:"12px"});let o=document.createElement("div");return Object.assign(o.style,{color:d.textSecondary,fontWeight:"600",marginBottom:"8px"}),o.textContent="To configure:",t.appendChild(o),[{text:"1. Get an API key from console.anthropic.com",highlight:!1},{text:"2. Add to your .env file:",highlight:!1},{text:" ANTHROPIC_API_KEY=sk-ant-...",highlight:!0},{text:"3. Restart your dev server",highlight:!1}].forEach(({text:r,highlight:i})=>{let a=document.createElement("div");Object.assign(a.style,{color:i?d.primary:d.textMuted,fontSize:"0.75rem",marginBottom:"4px",fontFamily:S}),a.textContent=r,t.appendChild(a)}),e.appendChild(t),e}function pi(e){let t=document.createElement("div");Object.assign(t.style,{marginBottom:"16px"});let o=document.createElement("p");Object.assign(o.style,{color:d.textSecondary,marginBottom:"12px"}),o.textContent="This will capture a screenshot and send it to Claude for design analysis.",t.appendChild(o);let n=Qo(e);if(n){let r=be(d.primary,"Estimated Cost",[]);r.style.marginBottom="0",r.style.padding="12px";let i=document.createElement("div");Object.assign(i.style,{display:"flex",justifyContent:"space-between",color:d.textSecondary,fontSize:"0.75rem"});let a=document.createElement("span");a.textContent=`~${n.tokens.toLocaleString()} tokens`,i.appendChild(a);let s=document.createElement("span");Object.assign(s.style,{color:d.warning,fontWeight:"600"}),s.textContent=n.cost,i.appendChild(s),r.appendChild(i),t.appendChild(r)}if(e.apiKeyStatus?.model){let r=document.createElement("div");Object.assign(r.style,{color:d.textMuted,fontSize:"0.6875rem",marginTop:"12px"}),r.textContent=`Model: ${e.apiKeyStatus.model}`,t.appendChild(r)}return t}var ui=860;function Vt(e){return e?!0:typeof window>"u"?!1:window.innerWidth<=ui}function En(e){let t=e.settingsManager.getSettings();e.themeMode=e.forcedThemeMode??t.themeMode,e.forcedThemeMode&&t.themeMode!==e.forcedThemeMode&&e.settingsManager.saveSettingsNow({themeMode:e.forcedThemeMode}),te(ee(e.themeMode)),e.debug.state("Theme loaded",{mode:e.themeMode}),typeof window<"u"&&window.matchMedia&&(e.themeMediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),e.themeMediaHandler=()=>{e.themeMode==="system"&&(te(ee(e.themeMode)),e.debug.state("System theme changed",{effectiveTheme:pe(e.themeMode)}),window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:e.themeMode}})),e.render())},e.themeMediaQuery.addEventListener("change",e.themeMediaHandler))}function Tn(e){let t=e.settingsManager.getSettings();e.compactMode=Vt(t.compactMode),e.debug.state("Compact mode loaded",{compactMode:e.compactMode})}function it(e,t){let o=e.forcedThemeMode??t;e.themeMode=o,e.settingsManager.saveSettings({themeMode:o}),vt(o),te(ee(o)),e.debug.state("Theme mode changed",{mode:o,effectiveTheme:pe(o)}),typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o}})),e.render()}function On(e){let{position:t,accentColor:o}=e.options,n=document.createElement("div");n.setAttribute("data-devbar","true"),n.setAttribute("data-devbar-overlay","true"),Object.assign(n.style,{position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"10003"}),n.onclick=b=>{b.target===n&&(e.showSettingsPopover=!1,e.render())};let r=document.createElement("div");r.setAttribute("data-devbar","true"),r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.setAttribute("aria-label","Settings"),r.tabIndex=-1;let i=t.startsWith("top"),a=480,s=16,l;if(e.container&&window.innerWidth>640){let b=e.container.getBoundingClientRect(),y=b.left+b.width/2;l=Math.max(s,Math.min(y-a/2,window.innerWidth-a-s))}else l=Math.max(s,(window.innerWidth-a)/2);Object.assign(r.style,{position:"fixed",[i?"top":"bottom"]:"70px",left:`${l}px`,zIndex:"10003",backgroundColor:"var(--devbar-color-bg-elevated)",border:`1px solid ${o}`,borderRadius:"8px",boxShadow:`${E.shadows.dropLg}, 0 0 0 1px ${f(o,20)}`,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",width:`${a}px`,maxWidth:"calc(100vw - 32px)",maxHeight:"calc(100vh - 100px)",overflowY:"auto",fontFamily:S}),r.appendChild(mi(e));let c=document.createElement("div");c.className="devbar-settings-grid",Object.assign(c.style,{display:"grid",gridTemplateColumns:"1fr 1fr"});let p=d.textSecondary,u=document.createElement("div");Object.assign(u.style,{borderRight:`1px solid ${f(p,13)}`}),u.appendChild(fi(e)),u.appendChild(gi(e)),c.appendChild(u);let m=document.createElement("div");m.appendChild(Ci(e)),m.appendChild(Ei(e)),c.appendChild(m),r.appendChild(c),r.appendChild(Ti(e)),n.appendChild(r),e.overlayElement=n,document.body.appendChild(n),r.focus()}function mi(e){let{accentColor:t}=e.options,o=document.createElement("div");Object.assign(o.style,{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 14px",borderBottom:`1px solid ${f(t,19)}`,position:"sticky",top:"0",backgroundColor:"var(--devbar-color-bg-elevated)",zIndex:"1"});let n=document.createElement("span");return Object.assign(n.style,{color:t,fontSize:"0.75rem",fontWeight:"600"}),n.textContent="Settings",o.appendChild(n),o.appendChild(Ae(()=>{e.showSettingsPopover=!1,e.render()})),o}function fi(e){let{accentColor:t}=e.options,o=!!e.forcedThemeMode,n=at("Theme");st(n,o?`Theme is controlled by the host app: ${e.forcedThemeMode}.`:"Follow OS/browser preference, force dark, or force light while reviewing.");let r=document.createElement("div");return Object.assign(r.style,{display:"flex",gap:"6px"}),["system","dark","light"].forEach(a=>{let s=kn({label:a,isActive:e.themeMode===a,accentColor:t,disabled:o&&a!==e.forcedThemeMode,disabledTitle:"Theme controlled by host app",onClick:()=>it(e,a)});s.style.textTransform="capitalize",r.appendChild(s)}),n.appendChild(r),n}function gi(e){let t=at("Display & appearance");return st(t,"Change where DevBar lives and how evidence captures are rendered."),t.appendChild(hi(e)),t.appendChild(bi(e)),t.appendChild(yi(e)),t.appendChild(vi(e)),t}function hi(e){let{accentColor:t}=e.options,o=d.textSecondary,n=document.createElement("div");Object.assign(n.style,{marginBottom:"10px"});let r=document.createElement("div");Object.assign(r.style,{color:d.text,fontSize:"0.6875rem",marginBottom:"6px"}),r.textContent="Position",n.appendChild(r);let i=document.createElement("div");return Object.assign(i.style,{position:"relative",width:"100%",height:"70px",backgroundColor:"var(--devbar-color-bg-input)",border:`1px solid ${f(o,19)}`,borderRadius:"4px"}),[{value:"top-left",style:{top:"6px",left:"6px"},title:"Top Left"},{value:"top-right",style:{top:"6px",right:"6px"},title:"Top Right"},{value:"bottom-left",style:{bottom:"6px",left:"6px"},title:"Bottom Left"},{value:"bottom-right",style:{bottom:"6px",right:"6px"},title:"Bottom Right"},{value:"bottom-center",style:{bottom:"6px",left:"50%",transform:"translateX(-50%)"},title:"Bottom Center"}].forEach(({value:s,style:l,title:c})=>{let p=document.createElement("button");p.setAttribute("data-position",s);let u=e.options.position===s;Object.assign(p.style,{position:"absolute",width:"24px",height:"6px",backgroundColor:u?t:d.textMuted,border:`1px solid ${u?t:d.textMuted}`,borderRadius:"2px",cursor:"pointer",padding:"0",transition:"all 150ms",boxShadow:u?`0 0 8px ${f(t,38)}`:"none",opacity:u?"1":"0.5",...l}),p.title=c,p.onclick=()=>{e.options.position=s,e.settingsManager.saveSettings({position:s}),e.render()},p.onmouseenter=()=>{u||(p.style.backgroundColor=t,p.style.borderColor=t,p.style.boxShadow=`0 0 6px ${f(t,25)}`,p.style.opacity="1")},p.onmouseleave=()=>{u||(p.style.backgroundColor=d.textMuted,p.style.borderColor=d.textMuted,p.style.boxShadow="none",p.style.opacity="0.5")},i.appendChild(p)}),n.appendChild(i),n}function bi(e){let{accentColor:t}=e.options,o=document.createDocumentFragment();o.appendChild(Be("Compact Mode",e.compactMode,t,()=>{e.toggleCompactMode()}));let n=document.createElement("div");return Object.assign(n.style,{color:d.textMuted,fontSize:"0.5625rem",marginTop:"2px",marginBottom:"8px"}),n.textContent="Keyboard: Cmd or Ctrl+Shift+M",o.appendChild(n),o}function yi(e){let t=document.createElement("div");Object.assign(t.style,{marginBottom:"6px"});let o=document.createElement("div");Object.assign(o.style,{color:d.text,fontSize:"0.6875rem",marginBottom:"6px"}),o.textContent="Accent Color",t.appendChild(o);let n=document.createElement("div");Object.assign(n.style,{display:"flex",gap:"6px",flexWrap:"wrap",alignItems:"center"});let r=e.options.accentColor,i=r===d.primary,s=!$e.some(l=>l.value===r)&&!i;if($e.forEach(({name:l,value:c})=>{let p=document.createElement("button"),u=r===c||i&&l==="Emerald";Object.assign(p.style,{width:"24px",height:"24px",borderRadius:"50%",backgroundColor:c,border:u?"2px solid #fff":"2px solid transparent",cursor:"pointer",transition:"all 150ms",boxShadow:u?`0 0 8px ${c}`:"none"}),p.title=l,p.onclick=()=>{e.options.accentColor=c,e.settingsManager.saveSettings({accentColor:c}),e.render()},n.appendChild(p)}),s){let l=document.createElement("button");l.type="button",l.setAttribute("data-accent-reset","true"),l.title=`Custom color (${r}). Click to reset to theme default.`,Object.assign(l.style,{marginLeft:"4px",padding:"2px 8px",borderRadius:"10px",border:`1px dashed ${r}`,backgroundColor:"transparent",color:r,fontSize:"0.625rem",fontFamily:S,cursor:"pointer",lineHeight:"1.4"}),l.textContent="custom \xB7 reset",l.onclick=()=>{let c=he.accentColor;e.options.accentColor=c,e.settingsManager.saveSettings({accentColor:c}),e.render()},n.appendChild(l)}return t.appendChild(n),t}function xi(e,t){return[`#${e}::-webkit-slider-thumb {`," -webkit-appearance: none;"," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${t};`,` border: 2px solid ${d.bg};`,` box-shadow: 0 0 4px ${f(t,50)};`," cursor: grab;","}",`#${e}::-webkit-slider-thumb:active { cursor: grabbing; }`,`#${e}::-moz-range-thumb {`," width: 12px; height: 12px;"," border-radius: 50%;",` background: ${t};`,` border: 2px solid ${d.bg};`,` box-shadow: 0 0 4px ${f(t,50)};`," cursor: grab;","}",`#${e}::-webkit-slider-runnable-track { background: transparent; }`,`#${e}::-moz-range-track { background: transparent; }`].join(`
|
|
516
|
-
`)}function wi(e,t,o,n){e.oninput=()=>{let r=parseFloat(e.value);t.textContent=r.toFixed(2),o.style.width=`${r*100}%`,n.options.screenshotQuality=r},e.onchange=()=>{n.settingsManager.saveSettings({screenshotQuality:n.options.screenshotQuality})}}function vi(e){let{accentColor:t}=e.options,o=d.textSecondary,n=document.createElement("div");Object.assign(n.style,{marginTop:"8px"});let r=document.createElement("div");Object.assign(r.style,{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"});let i=document.createElement("span");Object.assign(i.style,{color:d.text,fontSize:"0.6875rem"}),i.textContent="Screenshot Quality",r.appendChild(i);let a=document.createElement("span");Object.assign(a.style,{color:t,fontSize:"0.6875rem",fontFamily:"monospace",minWidth:"28px",textAlign:"right"});let s=e.options.screenshotQuality;a.textContent=s.toFixed(2),r.appendChild(a),n.appendChild(r);let l=document.createElement("div");Object.assign(l.style,{position:"relative",height:"20px"});let c=document.createElement("div");Object.assign(c.style,{position:"absolute",top:"50%",left:"0",right:"0",height:"2px",transform:"translateY(-50%)",borderRadius:"1px",background:f(o,25),pointerEvents:"none"});let p=document.createElement("div");Object.assign(p.style,{height:"100%",width:`${s*100}%`,borderRadius:"1px",background:t}),c.appendChild(p),l.appendChild(c);let u=document.createElement("input");u.type="range",u.min="0",u.max="1",u.step="0.01",u.value=String(s),Object.assign(u.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",appearance:"none",WebkitAppearance:"none",background:"transparent",outline:"none",cursor:"pointer",margin:"0"});let m=`devbar-quality-${Date.now()}`;u.id=m;let b=document.createElement("style");return b.textContent=xi(m,t),l.appendChild(b),wi(u,a,p,e),l.appendChild(u),n.appendChild(l),n}function Ci(e){let{accentColor:t}=e.options,o=at("Evidence workflow");return st(o,"Choose the controls and save behavior an agent sees during inspect, verify, and handoff."),o.appendChild(Si(e)),o.appendChild(Be("Screenshot Button",e.options.showScreenshot,t,()=>{e.options.showScreenshot=!e.options.showScreenshot,e.settingsManager.saveSettings({showScreenshot:e.options.showScreenshot}),e.render()})),o.appendChild(Be("Console Badges",e.options.showConsoleBadges,t,()=>{e.options.showConsoleBadges=!e.options.showConsoleBadges,e.settingsManager.saveSettings({showConsoleBadges:e.options.showConsoleBadges}),e.render()})),o.appendChild(Be("Tooltips",e.options.showTooltips,t,()=>{e.options.showTooltips=!e.options.showTooltips,e.settingsManager.saveSettings({showTooltips:e.options.showTooltips}),e.render()})),o}function Si(e){let{accentColor:t}=e.options,o=document.createElement("div");Object.assign(o.style,{marginBottom:"10px"});let n=document.createElement("div");Object.assign(n.style,{color:d.text,fontSize:"0.6875rem",marginBottom:"6px"}),n.textContent="Save Method",o.appendChild(n);let r=document.createElement("div");Object.assign(r.style,{color:d.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",marginBottom:"8px"}),r.textContent="Auto saves artifacts through Sweetlink when connected, otherwise downloads in-browser.",o.appendChild(r);let i=document.createElement("div");return Object.assign(i.style,{display:"flex",gap:"6px",flexWrap:"wrap"}),[{value:"auto",label:"Auto"},{value:"download",label:"Download"},{value:"local",label:"Local"}].forEach(({value:s,label:l})=>{let c=s==="local"&&!e.sweetlinkConnected,p=kn({label:l,isActive:e.options.saveLocation===s,accentColor:t,disabled:c,disabledTitle:"Sweetlink not connected",onClick:()=>{e.options.saveLocation=s,e.settingsManager.saveSettings({saveLocation:s}),e.render()}});i.appendChild(p)}),o.appendChild(i),o}function Ei(e){let{accentColor:t}=e.options,o=at("Metrics");return st(o,"Keep the toolbar focused by hiding metrics that are not useful now."),[{key:"breakpoint",label:"Breakpoint"},{key:"fcp",label:"FCP"},{key:"lcp",label:"LCP"},{key:"cls",label:"CLS"},{key:"inp",label:"INP"},{key:"pageSize",label:"Page Size"}].forEach(({key:r,label:i})=>{let a=e.options.showMetrics[r]??!0;o.appendChild(Be(i,a,t,()=>{e.options.showMetrics[r]=!e.options.showMetrics[r],e.settingsManager.saveSettings({showMetrics:{breakpoint:e.options.showMetrics.breakpoint??!0,fcp:e.options.showMetrics.fcp??!0,lcp:e.options.showMetrics.lcp??!0,cls:e.options.showMetrics.cls??!0,inp:e.options.showMetrics.inp??!0,pageSize:e.options.showMetrics.pageSize??!0}}),e.render()}))}),o}function Ti(e){let t=d.textSecondary,o=document.createElement("div");Object.assign(o.style,{padding:"10px 14px",borderTop:`1px solid ${f(t,13)}`});let n=P({color:d.textMuted,text:"Reset to Defaults",padding:"6px 12px",fontSize:"0.625rem"});Object.assign(n.style,{width:"100%",justifyContent:"center",border:"1px solid transparent"});let r=d.textMuted;return n.onmouseenter=()=>{n.style.border=`1px solid ${r}`,n.style.backgroundColor=f(r,6)},n.onmouseleave=()=>{n.style.border="1px solid transparent",n.style.backgroundColor="transparent"},n.onclick=()=>{e.settingsManager.resetToDefaults();let i=he;e.applySettings(i)},o.appendChild(n),o}function at(e,t=!0){let o=d.textSecondary,n=document.createElement("div");Object.assign(n.style,{padding:"10px 14px",borderBottom:t?`1px solid ${f(o,13)}`:"none"});let r=document.createElement("div");return Object.assign(r.style,{color:o,fontSize:"0.625rem",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"8px"}),r.textContent=e,n.appendChild(r),n}function st(e,t){let o=document.createElement("div");Object.assign(o.style,{color:d.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",margin:"-2px 0 10px"}),o.textContent=t,e.appendChild(o)}function kn(e){let{label:t,isActive:o,accentColor:n,disabled:r,disabledTitle:i,onClick:a}=e,s=d.textSecondary,l=document.createElement("button");return Object.assign(l.style,{padding:"6px 10px",minHeight:"28px",backgroundColor:o?f(n,13):"transparent",border:`1px solid ${o?n:"transparent"}`,borderRadius:"4px",color:o?n:s,fontFamily:S,fontSize:"0.625rem",cursor:r?"not-allowed":"pointer",transition:"all 150ms",opacity:r?"0.5":"1"}),l.textContent=t,r?i&&(l.title=i):o||(l.onmouseenter=()=>{l.style.borderColor=`${s}`,l.style.backgroundColor=f(s,6)},l.onmouseleave=()=>{l.style.borderColor="transparent",l.style.backgroundColor="transparent"}),l.onclick=()=>{r||a()},l}function Be(e,t,o,n){let r=document.createElement("div");Object.assign(r.style,{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"28px",marginBottom:"6px",gap:"12px"});let i=document.createElement("span");Object.assign(i.style,{color:d.text,fontSize:"0.6875rem"}),i.textContent=e,r.appendChild(i);let a=document.createElement("button");Object.assign(a.style,{width:"32px",height:"18px",borderRadius:"9px",border:`1px solid ${t?o:d.border}`,backgroundColor:t?o:d.bgInput,position:"relative",cursor:"pointer",transition:"all 150ms",flexShrink:"0",boxSizing:"border-box"});let s=document.createElement("span");return Object.assign(s.style,{position:"absolute",top:"2px",left:t?"14px":"2px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:t?"#fff":d.textMuted,boxShadow:"0 1px 2px rgba(0,0,0,0.2)",transition:"left 150ms, background-color 150ms"}),a.appendChild(s),a.onclick=n,r.appendChild(a),r}function Oi(e,t){if(e.consoleFilter){let o=e.consoleFilter;O(e),e.consoleFilter=o,gn(e,t)}else e.showOutlineModal?(O(e),e.showOutlineModal=!0,xn(e)):e.showSchemaModal?(O(e),e.showSchemaModal=!0,vn(e)):e.showA11yModal?(O(e),e.showA11yModal=!0,Cn(e)):e.showDesignReviewConfirm?(O(e),e.showDesignReviewConfirm=!0,Sn(e)):e.showSettingsPopover&&(O(e),e.showSettingsPopover=!0,On(e))}function An(e,t,o){if(!e.destroyed&&!(typeof document>"u")&&!Lt){It(!0),Oo(e),e.overlayElement&&(e.overlayElement.remove(),e.overlayElement=null,document.body.style.overflow=""),e.container&&e.container.remove(),e.container=document.createElement("div"),e.container.setAttribute("data-devbar","true"),e.container.setAttribute("role","toolbar"),e.container.setAttribute("aria-label","DevBar"),document.body.appendChild(e.container);try{e.collapsed?Po(e):e.compactMode?fn(e,o):hn(e,o)}catch(n){console.error("[GlobalDevBar] Render failed:",n)}try{Oi(e,t)}catch(n){console.error("[GlobalDevBar] Overlay render failed:",n)}e.overlayElement&&(document.body.style.overflow="hidden"),It(!1)}}function Mn(e){if(e.pendingViewerWindow){try{e.pendingViewerWindow.close()}catch{}e.pendingViewerWindow=null}}function Ln(e){return`ws://localhost:${e.baseWsPort}`}function Ut(e){return e.wsUrlCandidates?.length?e.wsUrlCandidates:[Ln(e)]}function Mi(e,t){return typeof t=="string"?t:typeof t=="number"?`ws://localhost:${t}`:Ut(e)[0]??Ln(e)}function In(e){try{let t=new URL(e);if(t.protocol!=="ws:"&&t.protocol!=="wss:")return null;let o=Number(t.port);return Number.isInteger(o)&&o>0?o:null}catch{return null}}function Rn(e,t,o=100){let n=Ut(e),r=n.indexOf(t);if(r>=0&&r+1<n.length){setTimeout(()=>we(e,n[r+1]),o);return}let i=In(t);if(i!==null){let a=i+1;if(a<e.baseWsPort+10){setTimeout(()=>we(e,a),o);return}}setTimeout(()=>we(e),so)}function we(e,t){if(e.destroyed)return;let o=Mi(e,t),n=In(o);e.debug.ws("Connecting to WebSocket",{url:o,port:n??"same-origin",appPort:e.currentAppPort});let r=new WebSocket(o),i=!1;e.ws=r,e.wsVerified=!1,r.onopen=()=>{e.debug.ws("WebSocket socket opened, awaiting server-info"),r.send(JSON.stringify({type:"browser-client-ready"}))},r.onmessage=async a=>{try{let s=JSON.parse(a.data);if(s.type==="server-info"){let c=s.appPort;if(!(c===null||c===e.currentAppPort)){e.debug.ws("Server mismatch",{serverAppPort:c,currentAppPort:e.currentAppPort,targetUrl:o}),i=!0,r.close(),Rn(e,o);return}e.wsVerified=!0,e.sweetlinkConnected=!0,e.reconnectAttempts=0,e.serverProjectDir=s.projectDir??null,e.serverGitBranch=s.gitBranch??null,e.serverAppName=s.appName??null,e.debug.ws("Server verified",{appPort:c??"any",projectDir:e.serverProjectDir,gitBranch:e.serverGitBranch}),e.settingsManager.setWebSocket(r),e.settingsManager.setConnected(!0),r.send(JSON.stringify({type:"load-settings"})),e.render();return}if(!e.wsVerified){e.debug.ws("Ignoring command before verification",{type:s.type});return}if(s.type==="hifi-screenshot"){e.capturing=!1,e.render();return}if(s.type==="record-start-response"&&s.success){e.recordingActive=!0,e.recordingSessionId=s.sessionId??null,e.recordingStartedAt=Date.now(),e.recordingTimer=setInterval(()=>e.render(),1e3),e.render();return}if(s.type==="record-stop-response"||s.type==="record-stop"){if(e.recordingActive=!1,e.recordingTimer&&clearInterval(e.recordingTimer),e.recordingTimer=null,e.recordingStartedAt=null,s.success){let p=s.viewerUrl,u=p&&et(p)?p:void 0;u&&e.pendingViewerWindow?(e.pendingViewerWindow.location.href=u,e.pendingViewerWindow=null):Mn(e),u&&(e.lastViewerPath=u)}else Mn(e);e.render();return}let l=s;e.debug.ws("Received command",{type:l.type}),await ea(e,l)}catch(s){console.error("[GlobalDevBar] Error handling command:",s)}},r.onclose=()=>{if(e.wsVerified){if(e.sweetlinkConnected=!1,e.wsVerified=!1,e.serverProjectDir=null,e.settingsManager.setConnected(!1),e.recordingTimer&&(clearInterval(e.recordingTimer),e.recordingTimer=null),e.debug.ws("WebSocket disconnected"),e.render(),!e.destroyed&&e.reconnectAttempts<Ve){let a=io*2**e.reconnectAttempts;e.reconnectAttempts++,e.debug.ws("Scheduling reconnect",{attempt:e.reconnectAttempts,delayMs:a}),e.reconnectTimeout=setTimeout(()=>we(e,e.baseWsPort),Math.min(a,ao))}}else if(!e.destroyed&&!i){let a=Ut(e),s=a.indexOf(o);s>=0&&s+1<a.length&&(e.debug.ws("WebSocket closed before verification, trying next candidate"),Rn(e,o))}},r.onerror=()=>{e.debug.ws("WebSocket error")}}function lt(e,t,o=de){return(n,r)=>{Pe(n,e,r[t],o)}}function ct(e,t){return(o,n)=>{t&&(o[t]=!1),console.error(`[GlobalDevBar] ${e} failed:`,n.error),t&&o.render()}}var Ri=lt("outline","outlinePath"),Li=lt("schema","schemaPath"),Ii=lt("consoleLogs","consoleLogsPath"),Di=lt("a11y","a11yPath"),Bi=(e,t)=>{e.capturing=!1,Pe(e,"screenshot",t.path,de)},Pi=ct("Outline save"),Ni=ct("Schema save"),Wi=ct("Console logs save","savingConsoleLogs"),ji=ct("A11y save","savingA11yAudit");async function zi(e,t){let o=t.selector&&document.querySelector(t.selector)||document.body,r=await(await ie())(o,{logging:!1,useCORS:!0,allowTaint:!0});e.send(JSON.stringify({success:!0,data:{screenshot:r.toDataURL("image/png"),width:r.width,height:r.height,selector:t.selector||"body"},timestamp:Date.now()}))}function Fi(e,t,o){let n=e.consoleLogs;if(o.filter){let r=o.filter.toLowerCase();n=n.filter(i=>i.level.includes(r)||i.message.toLowerCase().includes(r))}t.send(JSON.stringify({success:!0,data:n,timestamp:Date.now()}))}function Hi(e,t,o){if(o.selector){let r=Array.from(document.querySelectorAll(o.selector)).map(i=>o.property&&e.allowRemoteExec?i[o.property]??null:{tagName:i.tagName,className:i.className,id:i.id,textContent:i.textContent?.trim().slice(0,100)});t.send(JSON.stringify({success:!0,data:{count:r.length,results:r},timestamp:Date.now()}))}}function Vi(e,t,o){if(!e.allowRemoteExec){t.send(JSON.stringify({success:!1,error:"exec-js is disabled (DEV-4521): remote code execution over the Sweetlink WebSocket is off by default. Enable with initGlobalDevBar({ sweetlink: { allowRemoteExec: true } }) only if you trust everything that can reach the WS port.",timestamp:Date.now()}));return}if(o.code&&typeof o.code=="string"&&o.code.length<=1e4)try{let r=(0,eval)(o.code);t.send(JSON.stringify({success:!0,data:r,timestamp:Date.now()}))}catch(n){t.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Execution failed",timestamp:Date.now()}))}}async function Ui(e,t){try{let o=await Ce(t.forceRefresh),n={critical:0,serious:0,moderate:0,minor:0};for(let r of o.violations)n[r.impact]=(n[r.impact]||0)+1;e.send(JSON.stringify({success:!0,data:{result:o,summary:{totalViolations:o.violations.length,totalPasses:o.passes.length,totalIncomplete:o.incomplete.length,byImpact:n},url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(o){e.send(JSON.stringify({success:!1,error:o instanceof Error?o.message:"Accessibility audit failed",timestamp:Date.now()}))}}function Gi(e){try{let t=X(),o=H(t);e.send(JSON.stringify({success:!0,data:{outline:t,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Outline extraction failed",timestamp:Date.now()}))}}function qi(e){try{let t=Z(),o=$(t);e.send(JSON.stringify({success:!0,data:{schema:t,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Schema extraction failed",timestamp:Date.now()}))}}async function Yi(e){try{let o=performance.getEntriesByType("paint").find(h=>h.name==="first-contentful-paint"),n=o?Math.round(o.startTime):null,r=h=>new Promise(v=>{try{let C=[],T=new PerformanceObserver(j=>{C.push(...j.getEntries())});T.observe({type:h,buffered:!0}),setTimeout(()=>{T.disconnect(),v(C)},0)}catch{v([])}}),[i,a,s]=await Promise.all([r("largest-contentful-paint"),r("layout-shift"),r("event")]),l=i.length>0?Math.round(i[i.length-1].startTime):null,c=null;if(a.length>0){let h=0;for(let v of a){let C=v;C.hadRecentInput||(h+=C.value)}c=Math.round(h*1e3)/1e3}let p=null;if(s.length>0){let h=0;for(let v of s){let C=v;C.duration>h&&(h=C.duration)}p=Math.round(h)}let u=null,m=performance.getEntriesByType("resource"),b=0;for(let h of m)b+=h.transferSize||0;b>0&&(u=b);let y={fcp:n,lcp:l,cls:c,inp:p,pageSize:u,url:window.location.href,title:document.title,timestamp:Date.now()},w=[];n!==null&&w.push(`FCP: ${n}ms`),l!==null&&w.push(`LCP: ${l}ms`),c!==null&&w.push(`CLS: ${c}`),p!==null&&w.push(`INP: ${p}ms`),u!==null&&w.push(`Page size: ${Math.round(u/1024)}KB`),e.send(JSON.stringify({success:!0,data:{vitals:y,summary:w.join(", ")||"No metrics available yet"},timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Vitals collection failed",timestamp:Date.now()}))}}function Ji(e){try{window.location.reload(),e.send(JSON.stringify({success:!0,timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Refresh failed",timestamp:Date.now()}))}}function Ki(e,t){e.designReviewInProgress=!1,Pe(e,"designReview",t.reviewPath,ht)}function Qi(e,t){e.designReviewInProgress=!1,e.designReviewError=t.error||"Unknown error",console.error("[GlobalDevBar] Design review failed:",t.error),e.designReviewErrorTimeout&&clearTimeout(e.designReviewErrorTimeout),e.designReviewErrorTimeout=setTimeout(()=>{e.designReviewError=null,e.render()},ht),e.render()}function Xi(e,t){let o=t;e.apiKeyStatus={configured:o.configured??!1,model:o.model,pricing:o.pricing},e.render()}function Zi(e,t){ta(e,t.settings)}function $i(e,t){e.debug.state("Settings saved to server",{path:t.settingsPath})}function _i(e){console.error("[GlobalDevBar] Settings operation failed:",e.error)}async function ea(e,t){let o=e.ws;if(!(!o||o.readyState!==WebSocket.OPEN))switch(t.type){case"screenshot":await zi(o,t);break;case"get-logs":Fi(e,o,t);break;case"query-dom":Hi(e,o,t);break;case"exec-js":Vi(e,o,t);break;case"get-a11y":await Ui(o,t);break;case"get-outline":Gi(o);break;case"get-schema":qi(o);break;case"get-vitals":await Yi(o);break;case"refresh":Ji(o);break;case"screenshot-saved":Bi(e,t);break;case"design-review-saved":Ki(e,t);break;case"design-review-error":Qi(e,t);break;case"api-key-status":Xi(e,t);break;case"outline-saved":Ri(e,t);break;case"outline-error":Pi(e,t);break;case"schema-saved":Li(e,t);break;case"schema-error":Ni(e,t);break;case"console-logs-saved":Ii(e,t);break;case"console-logs-error":Wi(e,t);break;case"a11y-saved":Di(e,t);break;case"a11y-error":ji(e,t);break;case"settings-loaded":Zi(e,t);break;case"settings-saved":$i(e,t);break;case"settings-error":_i(t);break;default:break}}function Pe(e,t,o,n){if(o){switch(t){case"screenshot":e.lastScreenshot=o,e.screenshotTimeout&&clearTimeout(e.screenshotTimeout),e.screenshotTimeout=setTimeout(()=>{e.lastScreenshot=null,e.render()},n);break;case"designReview":e.lastDesignReview=o,e.designReviewTimeout&&clearTimeout(e.designReviewTimeout),e.designReviewTimeout=setTimeout(()=>{e.lastDesignReview=null,e.render()},n);break;case"outline":e.savingOutline=!1,e.lastOutline=o,e.outlineTimeout&&clearTimeout(e.outlineTimeout),e.outlineTimeout=setTimeout(()=>{e.lastOutline=null,e.render()},n);break;case"schema":e.savingSchema=!1,e.lastSchema=o,e.schemaTimeout&&clearTimeout(e.schemaTimeout),e.schemaTimeout=setTimeout(()=>{e.lastSchema=null,e.render()},n);break;case"consoleLogs":e.savingConsoleLogs=!1,e.lastConsoleLogs=o,e.consoleLogsTimeout&&clearTimeout(e.consoleLogsTimeout),e.consoleLogsTimeout=setTimeout(()=>{e.lastConsoleLogs=null,e.render()},n);break;case"a11y":e.savingA11yAudit=!1,e.lastA11yAudit=o,e.a11yTimeout&&clearTimeout(e.a11yTimeout),e.a11yTimeout=setTimeout(()=>{e.lastA11yAudit=null,e.render()},n);break}e.render()}}function ta(e,t){if(!t){e.debug.state("No server settings found, using local");return}e.debug.state("Settings loaded from server",t),e.settingsManager.handleSettingsLoaded(t),e.applySettings(t)}function oa(e,t){let o=[],n=i=>{i&&!o.includes(i)&&o.push(i)};n(t.wsUrl),t.wsPath&&n(ro(e,t.wsPath));let r=ce(t.wsPort)??t.fallbackPort;return n(`ws://localhost:${r}`),o}var A=new He({trackCounts:!0});A.importEarlyLogs();A.start();A.startErrorHandlers();var k=class e{static CONTROLS_KEY="__YTSPAR_DEVBAR_CONTROLS__";static get customControls(){return typeof window>"u"?[]:window[e.CONTROLS_KEY]??[]}static set customControls(t){typeof window<"u"&&(window[e.CONTROLS_KEY]=t)}options;forcedThemeMode;debugConfig;debug;container=null;ws=null;consoleLogs=[];sweetlinkConnected=!1;sweetlinkAutoConnect=!0;allowRemoteExec=!1;collapsed=!1;capturing=!1;copiedToClipboard=!1;copiedPath=!1;lastScreenshot=null;designReviewInProgress=!1;lastDesignReview=null;designReviewError=null;showDesignReviewConfirm=!1;apiKeyStatus=null;lastOutline=null;lastSchema=null;savingOutline=!1;savingSchema=!1;consoleFilter=null;savingConsoleLogs=!1;lastConsoleLogs=null;consoleLogsTimeout;showOutlineModal=!1;showSchemaModal=!1;showA11yModal=!1;a11yLoading=!1;lastA11yAudit=null;savingA11yAudit=!1;a11yTimeout=null;recordingActive=!1;recordingSessionId=null;recordingStartedAt=null;recordingTimer=null;lastViewerPath=null;pendingViewerWindow=null;demoActive=!1;demoTitle=null;demoSectionCount=0;rulerMode=!1;rulerOverlay=null;rulerPinnedElements=[];rulerCleanup=null;activeTooltips=new Set;breakpointInfo=null;perfStats=null;lcpValue=null;clsValue=0;inpValue=0;reconnectAttempts=0;currentAppPort;baseWsPort;wsUrlCandidates;wsVerified=!1;serverProjectDir=null;serverGitBranch=null;serverAppName=null;lastDotPosition=null;reconnectTimeout=null;screenshotTimeout=null;copiedPathTimeout=null;designReviewTimeout=null;designReviewErrorTimeout=null;outlineTimeout=null;schemaTimeout=null;resizeHandler=null;keydownHandler=null;fcpObserver=null;lcpObserver=null;clsObserver=null;inpObserver=null;destroyed=!1;themeMode="system";themeMediaQuery=null;themeMediaHandler=null;compactMode=!1;showSettingsPopover=!1;overlayElement=null;settingsManager;logChangeListener=null;constructor(t={}){if(this.debugConfig=Ot(t.debug),this.debug=new Se(this.debugConfig),this.forcedThemeMode=t.themeMode,this.settingsManager=Pt(t.defaultThemeMode?{themeMode:t.defaultThemeMode}:{}),this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),typeof window<"u"){let o=oo(window),n=t.sweetlink,r=n?.appPort??no(window.location,o);this.currentAppPort=r,this.baseWsPort=n?.wsPort??ce(o.wsPort)??to(r),this.wsUrlCandidates=oa(window.location,{wsUrl:n?.wsUrl??o.wsUrl,wsPort:n?.wsPort??o.wsPort,wsPath:n?.wsPath??o.wsPath,fallbackPort:this.baseWsPort}),this.sweetlinkAutoConnect=n?.autoConnect??!0,this.allowRemoteExec=n?.allowRemoteExec??!1}else this.currentAppPort=0,this.baseWsPort=9223,this.wsUrlCandidates=[`ws://localhost:${9223}`];this.options={position:t.position??"bottom-left",accentColor:t.accentColor??d.primary,showMetrics:{breakpoint:t.showMetrics?.breakpoint??!0,fcp:t.showMetrics?.fcp??!0,lcp:t.showMetrics?.lcp??!0,cls:t.showMetrics?.cls??!0,inp:t.showMetrics?.inp??!0,pageSize:t.showMetrics?.pageSize??!0},showScreenshot:t.showScreenshot??!0,showConsoleBadges:t.showConsoleBadges??!0,showTooltips:t.showTooltips??!0,saveLocation:t.saveLocation??"auto",screenshotQuality:t.screenshotQuality??.65,sizeOverrides:t.sizeOverrides},this.debug.lifecycle("GlobalDevBar constructed",{options:this.options})}getLogCounts(){return{errorCount:A.getErrorCount(),warningCount:A.getWarningCount(),infoCount:A.getInfoCount()}}resetPositionStyles(t){Object.assign(t.style,{top:"",bottom:"",left:"",right:"",transform:""})}createCollapsedBadge(t,o,n){let r=document.createElement("span");return Object.assign(r.style,{position:"absolute",top:"-6px",right:n,minWidth:"16px",height:"16px",padding:"0 4px",borderRadius:"9999px",backgroundColor:o,color:g.white,fontSize:"0.5625rem",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center"}),r.textContent=t>99?"!":String(t),r}static registerControl(t){e.customControls=e.customControls.filter(n=>n.id!==t.id),e.customControls.push(t);let o=ve();o&&o.render()}static unregisterControl(t){e.customControls=e.customControls.filter(n=>n.id!==t);let o=ve();o&&o.render()}static getControls(){return[...e.customControls]}static clearControls(){e.customControls=[];let t=ve();t&&t.render()}init(){typeof window>"u"||this.destroyed||(this.debug.lifecycle("Initializing DevBar"),this.injectStyles(),this.consoleLogs=A.getLogs(),this.debug.lifecycle("Copied console logs",{count:this.consoleLogs.length}),this.logChangeListener=()=>{this.consoleLogs=A.getLogs(),this.overlayElement||this.render()},A.addListener(this.logChangeListener),En(this),Tn(this),this.sweetlinkAutoConnect?this.connectWebSocket():this.debug.ws("Sweetlink autoConnect disabled; skipping initial WebSocket connect"),vo(this),So(this),wo(this),this.render(),this.debug.lifecycle("DevBar initialized successfully"))}getPosition(){return this.options.position}destroy(){this.debug.lifecycle("Destroying DevBar"),this.destroyed=!0,this.reconnectAttempts=Ve,this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.ws&&this.ws.close(),this.screenshotTimeout&&clearTimeout(this.screenshotTimeout),this.copiedPathTimeout&&clearTimeout(this.copiedPathTimeout),this.designReviewTimeout&&clearTimeout(this.designReviewTimeout),this.outlineTimeout&&clearTimeout(this.outlineTimeout),this.schemaTimeout&&clearTimeout(this.schemaTimeout),this.consoleLogsTimeout&&clearTimeout(this.consoleLogsTimeout),this.a11yTimeout&&clearTimeout(this.a11yTimeout),this.designReviewErrorTimeout&&clearTimeout(this.designReviewErrorTimeout),this.recordingTimer&&clearInterval(this.recordingTimer),this.rulerCleanup&&(this.rulerCleanup(),this.rulerCleanup=null),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.keydownHandler&&window.removeEventListener("keydown",this.keydownHandler),this.fcpObserver&&this.fcpObserver.disconnect(),this.lcpObserver&&this.lcpObserver.disconnect(),this.clsObserver&&this.clsObserver.disconnect(),this.inpObserver&&this.inpObserver.disconnect(),this.themeMediaQuery&&this.themeMediaHandler&&this.themeMediaQuery.removeEventListener("change",this.themeMediaHandler),this.logChangeListener&&(A.removeListener(this.logChangeListener),this.logChangeListener=null),A.stop(),this.container&&(this.container.remove(),this.container=null),this.overlayElement&&(this.overlayElement.remove(),this.overlayElement=null,document.body.style.overflow=""),this.debug.lifecycle("DevBar destroyed")}injectStyles(){let t="devbar-styles";if(!document.getElementById(t)){let o=document.createElement("style");o.id=t,o.textContent=mo,document.head.appendChild(o)}}connectWebSocket(t){we(this,t)}handleNotification(t,o,n){Pe(this,t,o,n)}applySettings(t){let o=this.forcedThemeMode?{...t,themeMode:this.forcedThemeMode}:t,n=this.themeMode;this.forcedThemeMode&&this.settingsManager.get("themeMode")!==this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),this.themeMode=o.themeMode,this.compactMode=Vt(o.compactMode),this.options.position=o.position,this.options.accentColor=o.accentColor,this.options.showScreenshot=o.showScreenshot,this.options.showConsoleBadges=o.showConsoleBadges,this.options.showTooltips=o.showTooltips,this.options.saveLocation=o.saveLocation,this.options.screenshotQuality=o.screenshotQuality??.65,this.options.showMetrics={...o.showMetrics},te(ee(o.themeMode)),n!==o.themeMode&&typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o.themeMode}})),this.render()}clearConsoleLogs(){A.clear(),this.consoleLogs=[],this.consoleFilter=null,this.render()}handleScreenshot(t){return Jo(this,t)}getThemeMode(){return this.themeMode}setThemeMode(t){it(this,t)}getColors(){return Ct(this.themeMode)}toggleCompactMode(){this.compactMode=!this.compactMode,this.settingsManager.saveSettings({compactMode:this.compactMode}),this.debug.state("Compact mode toggled",{compactMode:this.compactMode}),this.render()}isCompactMode(){return this.compactMode}render(){An(this,A,e.customControls)}},Bn="__YTSPAR_DEVBAR_INSTANCE__";function ve(){return typeof window>"u"?null:window[Bn]??null}function Gt(e){typeof window>"u"||(window[Bn]=e)}function ae(e){let t=ve();if(t){let n=t.getPosition(),r=e?.position??"bottom-left";if(n===r)return t;t.destroy(),Gt(null)}let o=new k(e);if(o.init(),Gt(o),e?.annotate?.enabled!==!1){let n=e?.annotate?.endpoint?{endpoint:e.annotate.endpoint}:{};kt(r=>k.registerControl(r),n)}return o}function qt(){return ve()}function na(){let e=ve();e&&(e.destroy(),Gt(null))}var Yt=class{entries=[];observer=null;listeners=new Set;maxEntries=200;start(){if(typeof PerformanceObserver>"u"){console.warn("[NetworkMonitor] PerformanceObserver not supported");return}let t=performance.getEntriesByType("resource");for(let o of t)this.addEntry(o);try{this.observer=new PerformanceObserver(o=>{for(let n of o.getEntries())this.addEntry(n);this.notifyListeners()}),this.observer.observe({type:"resource",buffered:!0})}catch(o){console.warn("[NetworkMonitor] Failed to start observer",o)}}stop(){this.observer&&(this.observer.disconnect(),this.observer=null)}addEntry(t){let o={url:t.name,name:this.getResourceName(t.name),initiatorType:t.initiatorType,duration:Math.round(t.duration),transferSize:t.transferSize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,startTime:Math.round(t.startTime),responseEnd:Math.round(t.responseEnd)};this.entries.push(o),this.entries.length>this.maxEntries&&(this.entries=this.entries.slice(-this.maxEntries))}getResourceName(t){try{let o=new URL(t),r=o.pathname.split("/").filter(Boolean);return r.length>0?r[r.length-1]:o.hostname}catch{return t.slice(0,50)}}getState(){let t=0;for(let o of this.entries)t+=o.transferSize||0;return{entries:[...this.entries],totalRequests:this.entries.length,totalSize:t,pendingCount:0}}getEntriesByType(t){return this.entries.filter(o=>o.initiatorType===t)}search(t){let o=t.toLowerCase();return this.entries.filter(n=>n.url.toLowerCase().includes(o)||n.name.toLowerCase().includes(o)||n.initiatorType.toLowerCase().includes(o))}clear(){this.entries=[],this.notifyListeners()}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notifyListeners(){let t=this.getState();for(let o of this.listeners)o(t)}};var Pn="devbar-plugin-app-version";function ra(e,t={}){let{prefix:o="v",variant:n="default",onClick:r}=t;return k.registerControl({id:Pn,label:`${o}${e}`,variant:n,onClick:r?()=>r(e):void 0}),()=>{k.unregisterControl(Pn)}}var Jt="devbar-plugin-git-branch",ia=2e3;function aa(e={}){let{prefix:t="\uE0A0",variant:o="info",onClick:n}=e,r=null,i=!1;function a(){if(i)return;let c=qt()?.serverGitBranch??null;c!==r&&(r=c,c?k.registerControl({id:Jt,label:`${t} ${c}`,variant:o,onClick:n?()=>n(c):void 0}):k.unregisterControl(Jt))}a();let s=setInterval(a,ia);return()=>{i=!0,clearInterval(s),k.unregisterControl(Jt)}}var sa="devbar-plugin-release-info";function la(e){let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function ca(e){return e instanceof Date?e.toISOString():String(e)}function Nn(e,t={}){let o=la(e);return o?new Intl.DateTimeFormat(t.locale,{dateStyle:"medium",timeStyle:"short",timeZone:t.timeZone}).format(o):ca(e)}function da(e,t={}){if(t.label)return t.label;let o=Nn(e.releasedAt,t);return e.version?`${t.versionPrefix??"v"}${e.version} ${o}`:o}function pa(e,t={}){let o=[e.version?`Release ${t.versionPrefix??"v"}${e.version}`:"Release",`Released: ${Nn(e.releasedAt,t)}`];if(e.changelog&&e.changelog.length>0){o.push("","Changelog");for(let n of e.changelog)o.push(`- ${n}`)}return o.join(`
|
|
516
|
+
`)}function wi(e,t,o,n){e.oninput=()=>{let r=parseFloat(e.value);t.textContent=r.toFixed(2),o.style.width=`${r*100}%`,n.options.screenshotQuality=r},e.onchange=()=>{n.settingsManager.saveSettings({screenshotQuality:n.options.screenshotQuality})}}function vi(e){let{accentColor:t}=e.options,o=d.textSecondary,n=document.createElement("div");Object.assign(n.style,{marginTop:"8px"});let r=document.createElement("div");Object.assign(r.style,{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"6px"});let i=document.createElement("span");Object.assign(i.style,{color:d.text,fontSize:"0.6875rem"}),i.textContent="Screenshot Quality",r.appendChild(i);let a=document.createElement("span");Object.assign(a.style,{color:t,fontSize:"0.6875rem",fontFamily:"monospace",minWidth:"28px",textAlign:"right"});let s=e.options.screenshotQuality;a.textContent=s.toFixed(2),r.appendChild(a),n.appendChild(r);let l=document.createElement("div");Object.assign(l.style,{position:"relative",height:"20px"});let c=document.createElement("div");Object.assign(c.style,{position:"absolute",top:"50%",left:"0",right:"0",height:"2px",transform:"translateY(-50%)",borderRadius:"1px",background:f(o,25),pointerEvents:"none"});let p=document.createElement("div");Object.assign(p.style,{height:"100%",width:`${s*100}%`,borderRadius:"1px",background:t}),c.appendChild(p),l.appendChild(c);let u=document.createElement("input");u.type="range",u.min="0",u.max="1",u.step="0.01",u.value=String(s),Object.assign(u.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",appearance:"none",WebkitAppearance:"none",background:"transparent",outline:"none",cursor:"pointer",margin:"0"});let m=`devbar-quality-${Date.now()}`;u.id=m;let b=document.createElement("style");return b.textContent=xi(m,t),l.appendChild(b),wi(u,a,p,e),l.appendChild(u),n.appendChild(l),n}function Ci(e){let{accentColor:t}=e.options,o=at("Evidence workflow");return st(o,"Choose the controls and save behavior an agent sees during inspect, verify, and handoff."),o.appendChild(Si(e)),o.appendChild(Be("Screenshot Button",e.options.showScreenshot,t,()=>{e.options.showScreenshot=!e.options.showScreenshot,e.settingsManager.saveSettings({showScreenshot:e.options.showScreenshot}),e.render()})),o.appendChild(Be("Console Badges",e.options.showConsoleBadges,t,()=>{e.options.showConsoleBadges=!e.options.showConsoleBadges,e.settingsManager.saveSettings({showConsoleBadges:e.options.showConsoleBadges}),e.render()})),o.appendChild(Be("Tooltips",e.options.showTooltips,t,()=>{e.options.showTooltips=!e.options.showTooltips,e.settingsManager.saveSettings({showTooltips:e.options.showTooltips}),e.render()})),o}function Si(e){let{accentColor:t}=e.options,o=document.createElement("div");Object.assign(o.style,{marginBottom:"10px"});let n=document.createElement("div");Object.assign(n.style,{color:d.text,fontSize:"0.6875rem",marginBottom:"6px"}),n.textContent="Save Method",o.appendChild(n);let r=document.createElement("div");Object.assign(r.style,{color:d.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",marginBottom:"8px"}),r.textContent="Auto saves artifacts through Sweetlink when connected, otherwise downloads in-browser.",o.appendChild(r);let i=document.createElement("div");return Object.assign(i.style,{display:"flex",gap:"6px",flexWrap:"wrap"}),[{value:"auto",label:"Auto"},{value:"download",label:"Download"},{value:"local",label:"Local"}].forEach(({value:s,label:l})=>{let c=s==="local"&&!e.sweetlinkConnected,p=kn({label:l,isActive:e.options.saveLocation===s,accentColor:t,disabled:c,disabledTitle:"Sweetlink not connected",onClick:()=>{e.options.saveLocation=s,e.settingsManager.saveSettings({saveLocation:s}),e.render()}});i.appendChild(p)}),o.appendChild(i),o}function Ei(e){let{accentColor:t}=e.options,o=at("Metrics");return st(o,"Keep the toolbar focused by hiding metrics that are not useful now."),[{key:"breakpoint",label:"Breakpoint"},{key:"fcp",label:"FCP"},{key:"lcp",label:"LCP"},{key:"cls",label:"CLS"},{key:"inp",label:"INP"},{key:"pageSize",label:"Page Size"}].forEach(({key:r,label:i})=>{let a=e.options.showMetrics[r]??!0;o.appendChild(Be(i,a,t,()=>{e.options.showMetrics[r]=!e.options.showMetrics[r],e.settingsManager.saveSettings({showMetrics:{breakpoint:e.options.showMetrics.breakpoint??!0,fcp:e.options.showMetrics.fcp??!0,lcp:e.options.showMetrics.lcp??!0,cls:e.options.showMetrics.cls??!0,inp:e.options.showMetrics.inp??!0,pageSize:e.options.showMetrics.pageSize??!0}}),e.render()}))}),o}function Ti(e){let t=d.textSecondary,o=document.createElement("div");Object.assign(o.style,{padding:"10px 14px",borderTop:`1px solid ${f(t,13)}`});let n=P({color:d.textMuted,text:"Reset to Defaults",padding:"6px 12px",fontSize:"0.625rem"});Object.assign(n.style,{width:"100%",justifyContent:"center",border:"1px solid transparent"});let r=d.textMuted;return n.onmouseenter=()=>{n.style.border=`1px solid ${r}`,n.style.backgroundColor=f(r,6)},n.onmouseleave=()=>{n.style.border="1px solid transparent",n.style.backgroundColor="transparent"},n.onclick=()=>{e.settingsManager.resetToDefaults();let i=he;e.applySettings(i)},o.appendChild(n),o}function at(e,t=!0){let o=d.textSecondary,n=document.createElement("div");Object.assign(n.style,{padding:"10px 14px",borderBottom:t?`1px solid ${f(o,13)}`:"none"});let r=document.createElement("div");return Object.assign(r.style,{color:o,fontSize:"0.625rem",textTransform:"uppercase",letterSpacing:"0.1em",marginBottom:"8px"}),r.textContent=e,n.appendChild(r),n}function st(e,t){let o=document.createElement("div");Object.assign(o.style,{color:d.textMuted,fontSize:"0.5625rem",lineHeight:"1.4",margin:"-2px 0 10px"}),o.textContent=t,e.appendChild(o)}function kn(e){let{label:t,isActive:o,accentColor:n,disabled:r,disabledTitle:i,onClick:a}=e,s=d.textSecondary,l=document.createElement("button");return Object.assign(l.style,{padding:"6px 10px",minHeight:"28px",backgroundColor:o?f(n,13):"transparent",border:`1px solid ${o?n:"transparent"}`,borderRadius:"4px",color:o?n:s,fontFamily:S,fontSize:"0.625rem",cursor:r?"not-allowed":"pointer",transition:"all 150ms",opacity:r?"0.5":"1"}),l.textContent=t,r?i&&(l.title=i):o||(l.onmouseenter=()=>{l.style.borderColor=`${s}`,l.style.backgroundColor=f(s,6)},l.onmouseleave=()=>{l.style.borderColor="transparent",l.style.backgroundColor="transparent"}),l.onclick=()=>{r||a()},l}function Be(e,t,o,n){let r=document.createElement("div");Object.assign(r.style,{display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"28px",marginBottom:"6px",gap:"12px"});let i=document.createElement("span");Object.assign(i.style,{color:d.text,fontSize:"0.6875rem"}),i.textContent=e,r.appendChild(i);let a=document.createElement("button");Object.assign(a.style,{width:"32px",height:"18px",borderRadius:"9px",border:`1px solid ${t?o:d.border}`,backgroundColor:t?o:d.bgInput,position:"relative",cursor:"pointer",transition:"all 150ms",flexShrink:"0",boxSizing:"border-box"});let s=document.createElement("span");return Object.assign(s.style,{position:"absolute",top:"2px",left:t?"14px":"2px",width:"12px",height:"12px",borderRadius:"50%",backgroundColor:t?"#fff":d.textMuted,boxShadow:"0 1px 2px rgba(0,0,0,0.2)",transition:"left 150ms, background-color 150ms"}),a.appendChild(s),a.onclick=n,r.appendChild(a),r}function Oi(e,t){if(e.consoleFilter){let o=e.consoleFilter;O(e),e.consoleFilter=o,gn(e,t)}else e.showOutlineModal?(O(e),e.showOutlineModal=!0,xn(e)):e.showSchemaModal?(O(e),e.showSchemaModal=!0,vn(e)):e.showA11yModal?(O(e),e.showA11yModal=!0,Cn(e)):e.showDesignReviewConfirm?(O(e),e.showDesignReviewConfirm=!0,Sn(e)):e.showSettingsPopover&&(O(e),e.showSettingsPopover=!0,On(e))}function An(e,t,o){if(!e.destroyed&&!(typeof document>"u")&&!Lt){It(!0),Oo(e),e.overlayElement&&(e.overlayElement.remove(),e.overlayElement=null,document.body.style.overflow=""),e.container&&e.container.remove(),e.container=document.createElement("div"),e.container.setAttribute("data-devbar","true"),e.container.setAttribute("role","toolbar"),e.container.setAttribute("aria-label","DevBar"),document.body.appendChild(e.container);try{e.collapsed?Po(e):e.compactMode?fn(e,o):hn(e,o)}catch(n){console.error("[GlobalDevBar] Render failed:",n)}try{Oi(e,t)}catch(n){console.error("[GlobalDevBar] Overlay render failed:",n)}e.overlayElement&&(document.body.style.overflow="hidden"),It(!1)}}function Mn(e){if(e.pendingViewerWindow){try{e.pendingViewerWindow.close()}catch{}e.pendingViewerWindow=null}}function Ln(e){return`ws://localhost:${e.baseWsPort}`}function Ut(e){return e.wsUrlCandidates?.length?e.wsUrlCandidates:[Ln(e)]}function Mi(e,t){return typeof t=="string"?t:typeof t=="number"?`ws://localhost:${t}`:Ut(e)[0]??Ln(e)}function In(e){try{let t=new URL(e);if(t.protocol!=="ws:"&&t.protocol!=="wss:")return null;let o=Number(t.port);return Number.isInteger(o)&&o>0?o:null}catch{return null}}function Rn(e,t,o=100){let n=Ut(e),r=n.indexOf(t);if(r>=0&&r+1<n.length){setTimeout(()=>we(e,n[r+1]),o);return}let i=In(t);if(i!==null){let a=i+1;if(a<e.baseWsPort+10){setTimeout(()=>we(e,a),o);return}}setTimeout(()=>we(e),so)}function we(e,t){if(e.destroyed)return;let o=Mi(e,t),n=In(o);e.debug.ws("Connecting to WebSocket",{url:o,port:n??"same-origin",appPort:e.currentAppPort});let r=new WebSocket(o),i=!1;e.ws=r,e.wsVerified=!1,r.onopen=()=>{e.debug.ws("WebSocket socket opened, awaiting server-info"),r.send(JSON.stringify({type:"browser-client-ready"}))},r.onmessage=async a=>{try{let s=JSON.parse(a.data);if(s.type==="server-info"){let c=s.appPort;if(!(c===null||c===e.currentAppPort)){e.debug.ws("Server mismatch",{serverAppPort:c,currentAppPort:e.currentAppPort,targetUrl:o}),i=!0,r.close(),Rn(e,o);return}e.wsVerified=!0,e.sweetlinkConnected=!0,e.reconnectAttempts=0,e.serverProjectDir=s.projectDir??null,e.serverGitBranch=s.gitBranch??null,e.serverAppName=s.appName??null,e.debug.ws("Server verified",{appPort:c??"any",projectDir:e.serverProjectDir,gitBranch:e.serverGitBranch}),e.settingsManager.setWebSocket(r),e.settingsManager.setConnected(!0),r.send(JSON.stringify({type:"load-settings"})),e.render();return}if(!e.wsVerified){e.debug.ws("Ignoring command before verification",{type:s.type});return}if(s.type==="hifi-screenshot"){e.capturing=!1,e.render();return}if(s.type==="record-start-response"){e.recordingTimer&&clearInterval(e.recordingTimer),e.recordingTimer=null,s.success?(e.recordingActive=!0,e.recordingSessionId=s.sessionId??null,e.recordingStartedAt=Date.now(),e.recordingTimer=setInterval(()=>e.render(),1e3)):(e.recordingActive=!1,e.recordingStartedAt=null,e.recordingSessionId=null),e.render();return}if(s.type==="record-stop-response"||s.type==="record-stop"){if(e.recordingActive=!1,e.recordingTimer&&clearInterval(e.recordingTimer),e.recordingTimer=null,e.recordingStartedAt=null,s.success){let p=s.viewerUrl,u=p&&et(p)?p:void 0;u&&e.pendingViewerWindow?(e.pendingViewerWindow.location.href=u,e.pendingViewerWindow=null):Mn(e),u&&(e.lastViewerPath=u)}else Mn(e);e.render();return}let l=s;e.debug.ws("Received command",{type:l.type}),await ea(e,l)}catch(s){console.error("[GlobalDevBar] Error handling command:",s)}},r.onclose=()=>{if(e.wsVerified){if(e.sweetlinkConnected=!1,e.wsVerified=!1,e.serverProjectDir=null,e.settingsManager.setConnected(!1),e.recordingTimer&&(clearInterval(e.recordingTimer),e.recordingTimer=null),e.debug.ws("WebSocket disconnected"),e.render(),!e.destroyed&&e.reconnectAttempts<Ve){let a=io*2**e.reconnectAttempts;e.reconnectAttempts++,e.debug.ws("Scheduling reconnect",{attempt:e.reconnectAttempts,delayMs:a}),e.reconnectTimeout=setTimeout(()=>we(e,e.baseWsPort),Math.min(a,ao))}}else if(!e.destroyed&&!i){let a=Ut(e),s=a.indexOf(o);s>=0&&s+1<a.length&&(e.debug.ws("WebSocket closed before verification, trying next candidate"),Rn(e,o))}},r.onerror=()=>{e.debug.ws("WebSocket error")}}function lt(e,t,o=de){return(n,r)=>{Pe(n,e,r[t],o)}}function ct(e,t){return(o,n)=>{t&&(o[t]=!1),console.error(`[GlobalDevBar] ${e} failed:`,n.error),t&&o.render()}}var Ri=lt("outline","outlinePath"),Li=lt("schema","schemaPath"),Ii=lt("consoleLogs","consoleLogsPath"),Di=lt("a11y","a11yPath"),Bi=(e,t)=>{e.capturing=!1,Pe(e,"screenshot",t.path,de)},Pi=ct("Outline save"),Ni=ct("Schema save"),Wi=ct("Console logs save","savingConsoleLogs"),ji=ct("A11y save","savingA11yAudit");async function zi(e,t){let o=t.selector&&document.querySelector(t.selector)||document.body,r=await(await ie())(o,{logging:!1,useCORS:!0,allowTaint:!0});e.send(JSON.stringify({success:!0,data:{screenshot:r.toDataURL("image/png"),width:r.width,height:r.height,selector:t.selector||"body"},timestamp:Date.now()}))}function Fi(e,t,o){let n=e.consoleLogs;if(o.filter){let r=o.filter.toLowerCase();n=n.filter(i=>i.level.includes(r)||i.message.toLowerCase().includes(r))}t.send(JSON.stringify({success:!0,data:n,timestamp:Date.now()}))}function Hi(e,t,o){if(o.selector){let r=Array.from(document.querySelectorAll(o.selector)).map(i=>o.property&&e.allowRemoteExec?i[o.property]??null:{tagName:i.tagName,className:i.className,id:i.id,textContent:i.textContent?.trim().slice(0,100)});t.send(JSON.stringify({success:!0,data:{count:r.length,results:r},timestamp:Date.now()}))}}function Vi(e,t,o){if(!e.allowRemoteExec){t.send(JSON.stringify({success:!1,error:"exec-js is disabled (DEV-4521): remote code execution over the Sweetlink WebSocket is off by default. Enable with initGlobalDevBar({ sweetlink: { allowRemoteExec: true } }) only if you trust everything that can reach the WS port.",timestamp:Date.now()}));return}if(o.code&&typeof o.code=="string"&&o.code.length<=1e4)try{let r=(0,eval)(o.code);t.send(JSON.stringify({success:!0,data:r,timestamp:Date.now()}))}catch(n){t.send(JSON.stringify({success:!1,error:n instanceof Error?n.message:"Execution failed",timestamp:Date.now()}))}}async function Ui(e,t){try{let o=await Ce(t.forceRefresh),n={critical:0,serious:0,moderate:0,minor:0};for(let r of o.violations)n[r.impact]=(n[r.impact]||0)+1;e.send(JSON.stringify({success:!0,data:{result:o,summary:{totalViolations:o.violations.length,totalPasses:o.passes.length,totalIncomplete:o.incomplete.length,byImpact:n},url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(o){e.send(JSON.stringify({success:!1,error:o instanceof Error?o.message:"Accessibility audit failed",timestamp:Date.now()}))}}function Gi(e){try{let t=X(),o=H(t);e.send(JSON.stringify({success:!0,data:{outline:t,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Outline extraction failed",timestamp:Date.now()}))}}function qi(e){try{let t=Z(),o=$(t);e.send(JSON.stringify({success:!0,data:{schema:t,markdown:o,url:window.location.href,title:document.title,timestamp:Date.now()},timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Schema extraction failed",timestamp:Date.now()}))}}async function Yi(e){try{let o=performance.getEntriesByType("paint").find(h=>h.name==="first-contentful-paint"),n=o?Math.round(o.startTime):null,r=h=>new Promise(v=>{try{let C=[],T=new PerformanceObserver(j=>{C.push(...j.getEntries())});T.observe({type:h,buffered:!0}),setTimeout(()=>{T.disconnect(),v(C)},0)}catch{v([])}}),[i,a,s]=await Promise.all([r("largest-contentful-paint"),r("layout-shift"),r("event")]),l=i.length>0?Math.round(i[i.length-1].startTime):null,c=null;if(a.length>0){let h=0;for(let v of a){let C=v;C.hadRecentInput||(h+=C.value)}c=Math.round(h*1e3)/1e3}let p=null;if(s.length>0){let h=0;for(let v of s){let C=v;C.duration>h&&(h=C.duration)}p=Math.round(h)}let u=null,m=performance.getEntriesByType("resource"),b=0;for(let h of m)b+=h.transferSize||0;b>0&&(u=b);let y={fcp:n,lcp:l,cls:c,inp:p,pageSize:u,url:window.location.href,title:document.title,timestamp:Date.now()},w=[];n!==null&&w.push(`FCP: ${n}ms`),l!==null&&w.push(`LCP: ${l}ms`),c!==null&&w.push(`CLS: ${c}`),p!==null&&w.push(`INP: ${p}ms`),u!==null&&w.push(`Page size: ${Math.round(u/1024)}KB`),e.send(JSON.stringify({success:!0,data:{vitals:y,summary:w.join(", ")||"No metrics available yet"},timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Vitals collection failed",timestamp:Date.now()}))}}function Ji(e){try{window.location.reload(),e.send(JSON.stringify({success:!0,timestamp:Date.now()}))}catch(t){e.send(JSON.stringify({success:!1,error:t instanceof Error?t.message:"Refresh failed",timestamp:Date.now()}))}}function Ki(e,t){e.designReviewInProgress=!1,Pe(e,"designReview",t.reviewPath,ht)}function Qi(e,t){e.designReviewInProgress=!1,e.designReviewError=t.error||"Unknown error",console.error("[GlobalDevBar] Design review failed:",t.error),e.designReviewErrorTimeout&&clearTimeout(e.designReviewErrorTimeout),e.designReviewErrorTimeout=setTimeout(()=>{e.designReviewError=null,e.render()},ht),e.render()}function Xi(e,t){let o=t;e.apiKeyStatus={configured:o.configured??!1,model:o.model,pricing:o.pricing},e.render()}function Zi(e,t){ta(e,t.settings)}function $i(e,t){e.debug.state("Settings saved to server",{path:t.settingsPath})}function _i(e){console.error("[GlobalDevBar] Settings operation failed:",e.error)}async function ea(e,t){let o=e.ws;if(!(!o||o.readyState!==WebSocket.OPEN))switch(t.type){case"screenshot":await zi(o,t);break;case"get-logs":Fi(e,o,t);break;case"query-dom":Hi(e,o,t);break;case"exec-js":Vi(e,o,t);break;case"get-a11y":await Ui(o,t);break;case"get-outline":Gi(o);break;case"get-schema":qi(o);break;case"get-vitals":await Yi(o);break;case"refresh":Ji(o);break;case"screenshot-saved":Bi(e,t);break;case"design-review-saved":Ki(e,t);break;case"design-review-error":Qi(e,t);break;case"api-key-status":Xi(e,t);break;case"outline-saved":Ri(e,t);break;case"outline-error":Pi(e,t);break;case"schema-saved":Li(e,t);break;case"schema-error":Ni(e,t);break;case"console-logs-saved":Ii(e,t);break;case"console-logs-error":Wi(e,t);break;case"a11y-saved":Di(e,t);break;case"a11y-error":ji(e,t);break;case"settings-loaded":Zi(e,t);break;case"settings-saved":$i(e,t);break;case"settings-error":_i(t);break;default:break}}function Pe(e,t,o,n){if(o){switch(t){case"screenshot":e.lastScreenshot=o,e.screenshotTimeout&&clearTimeout(e.screenshotTimeout),e.screenshotTimeout=setTimeout(()=>{e.lastScreenshot=null,e.render()},n);break;case"designReview":e.lastDesignReview=o,e.designReviewTimeout&&clearTimeout(e.designReviewTimeout),e.designReviewTimeout=setTimeout(()=>{e.lastDesignReview=null,e.render()},n);break;case"outline":e.savingOutline=!1,e.lastOutline=o,e.outlineTimeout&&clearTimeout(e.outlineTimeout),e.outlineTimeout=setTimeout(()=>{e.lastOutline=null,e.render()},n);break;case"schema":e.savingSchema=!1,e.lastSchema=o,e.schemaTimeout&&clearTimeout(e.schemaTimeout),e.schemaTimeout=setTimeout(()=>{e.lastSchema=null,e.render()},n);break;case"consoleLogs":e.savingConsoleLogs=!1,e.lastConsoleLogs=o,e.consoleLogsTimeout&&clearTimeout(e.consoleLogsTimeout),e.consoleLogsTimeout=setTimeout(()=>{e.lastConsoleLogs=null,e.render()},n);break;case"a11y":e.savingA11yAudit=!1,e.lastA11yAudit=o,e.a11yTimeout&&clearTimeout(e.a11yTimeout),e.a11yTimeout=setTimeout(()=>{e.lastA11yAudit=null,e.render()},n);break}e.render()}}function ta(e,t){if(!t){e.debug.state("No server settings found, using local");return}e.debug.state("Settings loaded from server",t),e.settingsManager.handleSettingsLoaded(t),e.applySettings(t)}function oa(e,t){let o=[],n=i=>{i&&!o.includes(i)&&o.push(i)};n(t.wsUrl),t.wsPath&&n(ro(e,t.wsPath));let r=ce(t.wsPort)??t.fallbackPort;return n(`ws://localhost:${r}`),o}var A=new He({trackCounts:!0});A.importEarlyLogs();A.start();A.startErrorHandlers();var k=class e{static CONTROLS_KEY="__YTSPAR_DEVBAR_CONTROLS__";static get customControls(){return typeof window>"u"?[]:window[e.CONTROLS_KEY]??[]}static set customControls(t){typeof window<"u"&&(window[e.CONTROLS_KEY]=t)}options;forcedThemeMode;debugConfig;debug;container=null;ws=null;consoleLogs=[];sweetlinkConnected=!1;sweetlinkAutoConnect=!0;allowRemoteExec=!1;collapsed=!1;capturing=!1;copiedToClipboard=!1;copiedPath=!1;lastScreenshot=null;designReviewInProgress=!1;lastDesignReview=null;designReviewError=null;showDesignReviewConfirm=!1;apiKeyStatus=null;lastOutline=null;lastSchema=null;savingOutline=!1;savingSchema=!1;consoleFilter=null;savingConsoleLogs=!1;lastConsoleLogs=null;consoleLogsTimeout;showOutlineModal=!1;showSchemaModal=!1;showA11yModal=!1;a11yLoading=!1;lastA11yAudit=null;savingA11yAudit=!1;a11yTimeout=null;recordingActive=!1;recordingSessionId=null;recordingStartedAt=null;recordingTimer=null;lastViewerPath=null;pendingViewerWindow=null;demoActive=!1;demoTitle=null;demoSectionCount=0;rulerMode=!1;rulerOverlay=null;rulerPinnedElements=[];rulerCleanup=null;activeTooltips=new Set;breakpointInfo=null;perfStats=null;lcpValue=null;clsValue=0;inpValue=0;reconnectAttempts=0;currentAppPort;baseWsPort;wsUrlCandidates;wsVerified=!1;serverProjectDir=null;serverGitBranch=null;serverAppName=null;lastDotPosition=null;reconnectTimeout=null;screenshotTimeout=null;copiedPathTimeout=null;designReviewTimeout=null;designReviewErrorTimeout=null;outlineTimeout=null;schemaTimeout=null;resizeHandler=null;keydownHandler=null;fcpObserver=null;lcpObserver=null;clsObserver=null;inpObserver=null;destroyed=!1;themeMode="system";themeMediaQuery=null;themeMediaHandler=null;compactMode=!1;showSettingsPopover=!1;overlayElement=null;settingsManager;logChangeListener=null;constructor(t={}){if(this.debugConfig=Ot(t.debug),this.debug=new Se(this.debugConfig),this.forcedThemeMode=t.themeMode,this.settingsManager=Pt(t.defaultThemeMode?{themeMode:t.defaultThemeMode}:{}),this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),typeof window<"u"){let o=oo(window),n=t.sweetlink,r=n?.appPort??no(window.location,o);this.currentAppPort=r,this.baseWsPort=n?.wsPort??ce(o.wsPort)??to(r),this.wsUrlCandidates=oa(window.location,{wsUrl:n?.wsUrl??o.wsUrl,wsPort:n?.wsPort??o.wsPort,wsPath:n?.wsPath??o.wsPath,fallbackPort:this.baseWsPort}),this.sweetlinkAutoConnect=n?.autoConnect??!0,this.allowRemoteExec=n?.allowRemoteExec??!1}else this.currentAppPort=0,this.baseWsPort=9223,this.wsUrlCandidates=[`ws://localhost:${9223}`];this.options={position:t.position??"bottom-left",accentColor:t.accentColor??d.primary,showMetrics:{breakpoint:t.showMetrics?.breakpoint??!0,fcp:t.showMetrics?.fcp??!0,lcp:t.showMetrics?.lcp??!0,cls:t.showMetrics?.cls??!0,inp:t.showMetrics?.inp??!0,pageSize:t.showMetrics?.pageSize??!0},showScreenshot:t.showScreenshot??!0,showConsoleBadges:t.showConsoleBadges??!0,showTooltips:t.showTooltips??!0,saveLocation:t.saveLocation??"auto",screenshotQuality:t.screenshotQuality??.65,sizeOverrides:t.sizeOverrides},this.debug.lifecycle("GlobalDevBar constructed",{options:this.options})}getLogCounts(){return{errorCount:A.getErrorCount(),warningCount:A.getWarningCount(),infoCount:A.getInfoCount()}}resetPositionStyles(t){Object.assign(t.style,{top:"",bottom:"",left:"",right:"",transform:""})}createCollapsedBadge(t,o,n){let r=document.createElement("span");return Object.assign(r.style,{position:"absolute",top:"-6px",right:n,minWidth:"16px",height:"16px",padding:"0 4px",borderRadius:"9999px",backgroundColor:o,color:g.white,fontSize:"0.5625rem",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center"}),r.textContent=t>99?"!":String(t),r}static registerControl(t){e.customControls=e.customControls.filter(n=>n.id!==t.id),e.customControls.push(t);let o=ve();o&&o.render()}static unregisterControl(t){e.customControls=e.customControls.filter(n=>n.id!==t);let o=ve();o&&o.render()}static getControls(){return[...e.customControls]}static clearControls(){e.customControls=[];let t=ve();t&&t.render()}init(){typeof window>"u"||this.destroyed||(this.debug.lifecycle("Initializing DevBar"),this.injectStyles(),this.consoleLogs=A.getLogs(),this.debug.lifecycle("Copied console logs",{count:this.consoleLogs.length}),this.logChangeListener=()=>{this.consoleLogs=A.getLogs(),this.overlayElement||this.render()},A.addListener(this.logChangeListener),En(this),Tn(this),this.sweetlinkAutoConnect?this.connectWebSocket():this.debug.ws("Sweetlink autoConnect disabled; skipping initial WebSocket connect"),vo(this),So(this),wo(this),this.render(),this.debug.lifecycle("DevBar initialized successfully"))}getPosition(){return this.options.position}destroy(){this.debug.lifecycle("Destroying DevBar"),this.destroyed=!0,this.reconnectAttempts=Ve,this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.ws&&this.ws.close(),this.screenshotTimeout&&clearTimeout(this.screenshotTimeout),this.copiedPathTimeout&&clearTimeout(this.copiedPathTimeout),this.designReviewTimeout&&clearTimeout(this.designReviewTimeout),this.outlineTimeout&&clearTimeout(this.outlineTimeout),this.schemaTimeout&&clearTimeout(this.schemaTimeout),this.consoleLogsTimeout&&clearTimeout(this.consoleLogsTimeout),this.a11yTimeout&&clearTimeout(this.a11yTimeout),this.designReviewErrorTimeout&&clearTimeout(this.designReviewErrorTimeout),this.recordingTimer&&clearInterval(this.recordingTimer),this.rulerCleanup&&(this.rulerCleanup(),this.rulerCleanup=null),this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),this.keydownHandler&&window.removeEventListener("keydown",this.keydownHandler),this.fcpObserver&&this.fcpObserver.disconnect(),this.lcpObserver&&this.lcpObserver.disconnect(),this.clsObserver&&this.clsObserver.disconnect(),this.inpObserver&&this.inpObserver.disconnect(),this.themeMediaQuery&&this.themeMediaHandler&&this.themeMediaQuery.removeEventListener("change",this.themeMediaHandler),this.logChangeListener&&(A.removeListener(this.logChangeListener),this.logChangeListener=null),A.stop(),this.container&&(this.container.remove(),this.container=null),this.overlayElement&&(this.overlayElement.remove(),this.overlayElement=null,document.body.style.overflow=""),this.debug.lifecycle("DevBar destroyed")}injectStyles(){let t="devbar-styles";if(!document.getElementById(t)){let o=document.createElement("style");o.id=t,o.textContent=mo,document.head.appendChild(o)}}connectWebSocket(t){we(this,t)}handleNotification(t,o,n){Pe(this,t,o,n)}applySettings(t){let o=this.forcedThemeMode?{...t,themeMode:this.forcedThemeMode}:t,n=this.themeMode;this.forcedThemeMode&&this.settingsManager.get("themeMode")!==this.forcedThemeMode&&this.settingsManager.saveSettingsNow({themeMode:this.forcedThemeMode}),this.themeMode=o.themeMode,this.compactMode=Vt(o.compactMode),this.options.position=o.position,this.options.accentColor=o.accentColor,this.options.showScreenshot=o.showScreenshot,this.options.showConsoleBadges=o.showConsoleBadges,this.options.showTooltips=o.showTooltips,this.options.saveLocation=o.saveLocation,this.options.screenshotQuality=o.screenshotQuality??.65,this.options.showMetrics={...o.showMetrics},te(ee(o.themeMode)),n!==o.themeMode&&typeof window<"u"&&window.dispatchEvent(new CustomEvent("devbar-theme-change",{detail:{mode:o.themeMode}})),this.render()}clearConsoleLogs(){A.clear(),this.consoleLogs=[],this.consoleFilter=null,this.render()}handleScreenshot(t){return Jo(this,t)}getThemeMode(){return this.themeMode}setThemeMode(t){it(this,t)}getColors(){return Ct(this.themeMode)}toggleCompactMode(){this.compactMode=!this.compactMode,this.settingsManager.saveSettings({compactMode:this.compactMode}),this.debug.state("Compact mode toggled",{compactMode:this.compactMode}),this.render()}isCompactMode(){return this.compactMode}render(){An(this,A,e.customControls)}},Bn="__YTSPAR_DEVBAR_INSTANCE__";function ve(){return typeof window>"u"?null:window[Bn]??null}function Gt(e){typeof window>"u"||(window[Bn]=e)}function ae(e){let t=ve();if(t){let n=t.getPosition(),r=e?.position??"bottom-left";if(n===r)return t;t.destroy(),Gt(null)}let o=new k(e);if(o.init(),Gt(o),e?.annotate?.enabled!==!1){let n=e?.annotate?.endpoint?{endpoint:e.annotate.endpoint}:{};kt(r=>k.registerControl(r),n)}return o}function qt(){return ve()}function na(){let e=ve();e&&(e.destroy(),Gt(null))}var Yt=class{entries=[];observer=null;listeners=new Set;maxEntries=200;start(){if(typeof PerformanceObserver>"u"){console.warn("[NetworkMonitor] PerformanceObserver not supported");return}let t=performance.getEntriesByType("resource");for(let o of t)this.addEntry(o);try{this.observer=new PerformanceObserver(o=>{for(let n of o.getEntries())this.addEntry(n);this.notifyListeners()}),this.observer.observe({type:"resource",buffered:!0})}catch(o){console.warn("[NetworkMonitor] Failed to start observer",o)}}stop(){this.observer&&(this.observer.disconnect(),this.observer=null)}addEntry(t){let o={url:t.name,name:this.getResourceName(t.name),initiatorType:t.initiatorType,duration:Math.round(t.duration),transferSize:t.transferSize,encodedBodySize:t.encodedBodySize,decodedBodySize:t.decodedBodySize,startTime:Math.round(t.startTime),responseEnd:Math.round(t.responseEnd)};this.entries.push(o),this.entries.length>this.maxEntries&&(this.entries=this.entries.slice(-this.maxEntries))}getResourceName(t){try{let o=new URL(t),r=o.pathname.split("/").filter(Boolean);return r.length>0?r[r.length-1]:o.hostname}catch{return t.slice(0,50)}}getState(){let t=0;for(let o of this.entries)t+=o.transferSize||0;return{entries:[...this.entries],totalRequests:this.entries.length,totalSize:t,pendingCount:0}}getEntriesByType(t){return this.entries.filter(o=>o.initiatorType===t)}search(t){let o=t.toLowerCase();return this.entries.filter(n=>n.url.toLowerCase().includes(o)||n.name.toLowerCase().includes(o)||n.initiatorType.toLowerCase().includes(o))}clear(){this.entries=[],this.notifyListeners()}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notifyListeners(){let t=this.getState();for(let o of this.listeners)o(t)}};var Pn="devbar-plugin-app-version";function ra(e,t={}){let{prefix:o="v",variant:n="default",onClick:r}=t;return k.registerControl({id:Pn,label:`${o}${e}`,variant:n,onClick:r?()=>r(e):void 0}),()=>{k.unregisterControl(Pn)}}var Jt="devbar-plugin-git-branch",ia=2e3;function aa(e={}){let{prefix:t="\uE0A0",variant:o="info",onClick:n}=e,r=null,i=!1;function a(){if(i)return;let c=qt()?.serverGitBranch??null;c!==r&&(r=c,c?k.registerControl({id:Jt,label:`${t} ${c}`,variant:o,onClick:n?()=>n(c):void 0}):k.unregisterControl(Jt))}a();let s=setInterval(a,ia);return()=>{i=!0,clearInterval(s),k.unregisterControl(Jt)}}var sa="devbar-plugin-release-info";function la(e){let t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function ca(e){return e instanceof Date?e.toISOString():String(e)}function Nn(e,t={}){let o=la(e);return o?new Intl.DateTimeFormat(t.locale,{dateStyle:"medium",timeStyle:"short",timeZone:t.timeZone}).format(o):ca(e)}function da(e,t={}){if(t.label)return t.label;let o=Nn(e.releasedAt,t);return e.version?`${t.versionPrefix??"v"}${e.version} ${o}`:o}function pa(e,t={}){let o=[e.version?`Release ${t.versionPrefix??"v"}${e.version}`:"Release",`Released: ${Nn(e.releasedAt,t)}`];if(e.changelog&&e.changelog.length>0){o.push("","Changelog");for(let n of e.changelog)o.push(`- ${n}`)}return o.join(`
|
|
517
517
|
`)}function ua(e,t={}){let o=t.id??sa;return k.registerControl({id:o,label:da(e,t),tooltip:()=>pa(e,t),variant:t.variant??"info",onClick:t.onClick?()=>t.onClick?.(e):void 0}),()=>{k.unregisterControl(o)}}var Wn={showMetrics:{breakpoint:!1,fcp:!1,lcp:!1,cls:!1,inp:!1,pageSize:!1},showScreenshot:!1,showConsoleBadges:!0,showTooltips:!1},jn={showMetrics:{breakpoint:!0,fcp:!0,lcp:!0,cls:!0,inp:!0,pageSize:!0},showScreenshot:!0,showConsoleBadges:!0,showTooltips:!0},zn={showMetrics:{breakpoint:!1,fcp:!0,lcp:!0,cls:!0,inp:!0,pageSize:!0},showScreenshot:!1,showConsoleBadges:!1,showTooltips:!0},Fn={showMetrics:{breakpoint:!0,fcp:!1,lcp:!1,cls:!1,inp:!1,pageSize:!1},showScreenshot:!0,showConsoleBadges:!1,showTooltips:!0},Hn={showMetrics:{breakpoint:!0,fcp:!0,lcp:!0,cls:!0,inp:!0,pageSize:!0},showScreenshot:!0,showConsoleBadges:!0,showTooltips:!0,debug:!0};function ma(e){return ae({...Wn,...e})}function fa(e){return ae({...jn,...e})}function ga(e){return ae({...zn,...e})}function ha(e){return ae({...Fn,...e})}function ba(e){return ae({...Hn,...e})}function ya(e){try{return{parsed:JSON.parse(e),success:!0}}catch{return{parsed:void 0,success:!1}}}function Vn(e){let t=[];for(let o=0;o<e.length;o++){let n=e.key(o);if(n===null)continue;let r=e.getItem(n)??"",{parsed:i,success:a}=ya(r);t.push({key:n,value:r,parsedValue:a?i:void 0,isParseable:a,size:new Blob([r]).size})}return t.sort((o,n)=>o.key.localeCompare(n.key))}function Un(){return typeof localStorage>"u"?[]:Vn(localStorage)}function Gn(){return typeof sessionStorage>"u"?[]:Vn(sessionStorage)}function qn(){return typeof document>"u"||!document.cookie?[]:document.cookie.split(";").map(e=>{let[t,...o]=e.trim().split("="),n=o.join("=");return{name:t.trim(),value:decodeURIComponent(n||""),size:new Blob([n||""]).size}}).filter(e=>e.name).sort((e,t)=>e.name.localeCompare(t.name))}function xa(){return{localStorage:Un(),sessionStorage:Gn(),cookies:qn()}}function wa(e,t){typeof localStorage>"u"||localStorage.setItem(e,t)}function va(e){typeof localStorage>"u"||localStorage.removeItem(e)}function Ca(e,t){typeof sessionStorage>"u"||sessionStorage.setItem(e,t)}function Sa(e){typeof sessionStorage>"u"||sessionStorage.removeItem(e)}function Ea(e){typeof document>"u"||(document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`)}export{X as a,H as b,Z as c,$ as d,_n as e,ut as f,mt as g,_ as h,g as i,x as j,Ue as k,xt as l,E as m,wt as n,S as o,ir as p,vt as q,pe as r,Ct as s,ee as t,lo as u,te as v,sr as w,Tt as x,Ce as y,qe as z,Ye as A,Je as B,Ot as C,Se as D,ho as E,bo as F,yo as G,xo as H,kt as I,V as J,$e as K,he as L,Pt as M,Nt as N,ne as O,Wo as P,oe as Q,Mr as R,Rr as S,Me as T,Re as U,Le as V,_e as W,ie as X,A as Y,k as Z,ae as _,qt as $,na as aa,Yt as ba,ra as ca,aa as da,ua as ea,Wn as fa,jn as ga,zn as ha,Fn as ia,Hn as ja,ma as ka,fa as la,ga as ma,ha as na,ba as oa,Un as pa,Gn as qa,qn as ra,xa as sa,wa as ta,va as ua,Ca as va,Sa as wa,Ea as xa};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e}from"./chunks/chunk-
|
|
1
|
+
import{_ as e}from"./chunks/chunk-YHVC6Z5V.js";import"./chunks/chunk-72ZECFVW.js";typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>e()):e());export{e as initGlobalDevBar};
|
package/dist/browser/devbar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,xa,y,z}from"./chunks/chunk-
|
|
1
|
+
import{$,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,xa,y,z}from"./chunks/chunk-YHVC6Z5V.js";import"./chunks/chunk-72ZECFVW.js";export{K as ACCENT_COLOR_PRESETS,j as BUTTON_COLORS,k as CATEGORY_COLORS,L as DEFAULT_SETTINGS,O as DEVBAR_LOGO_COLORS,P as DEVBAR_LOGO_PATHS,Q as DEVBAR_LOGO_SHAPES,N as DEVBAR_LOGO_VIEWBOX,m as DEVBAR_THEME,n as DEVBAR_THEME_LIGHT,D as DebugLogger,e as EARLY_CONSOLE_CAPTURE_SCRIPT,o as FONT_MONO,Z as GlobalDevBar,ba as NetworkMonitor,i as PALETTE,ja as PRESET_DEBUG,ga as PRESET_FULL,fa as PRESET_MINIMAL,ha as PRESET_PERFORMANCE,ia as PRESET_RESPONSIVE,l as STORAGE_KEYS,h as TAILWIND_BREAKPOINTS,H as activateAnnotateMode,ca as appVersionPlugin,E as buildSelector,T as canvasToDataUrl,W as copyCanvasToClipboard,R as createDevBarLogo,V as delay,xa as deleteCookie,ua as deleteLocalStorageItem,wa as deleteSessionStorageItem,aa as destroyGlobalDevBar,Y as earlyConsoleCapture,a as extractDocumentOutline,c as extractPageSchema,f as formatArg,g as formatArgs,u as generateThemeCSSVars,ra as getCookies,S as getDevBarLogoSvg,r as getEffectiveTheme,$ as getGlobalDevBar,X as getHtml2Canvas,B as getImpactColor,pa as getLocalStorage,qa as getSessionStorage,M as getSettingsManager,sa as getStorageData,p as getStoredThemeMode,t as getTheme,s as getThemeColors,z as getViolationCounts,da as gitBranchPlugin,A as groupViolationsByImpact,oa as initDebug,la as initFull,_ as initGlobalDevBar,ka as initMinimal,ma as initPerformance,na as initResponsive,v as injectThemeCSS,w as isAxeLoaded,C as normalizeDebugConfig,b as outlineToMarkdown,x as preloadAxe,U as prepareForCapture,I as registerAnnotateControl,ea as releaseInfoPlugin,J as resolveSaveLocation,y as runA11yAudit,d as schemaToMarkdown,ta as setLocalStorageItem,va as setSessionStorageItem,q as setStoredThemeMode,G as submitPin,F as viewportBucket};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/modules/websocket.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAkE9C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/modules/websocket.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAkE9C,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkLjF;AA0jBD;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,EACnF,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,UAAU,EAAE,MAAM,GACjB,IAAI,CA2DN"}
|
|
@@ -133,12 +133,27 @@ export function connectWebSocket(state, port) {
|
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
135
|
// Handle recording responses (not in SweetlinkCommand union)
|
|
136
|
-
if (message.type === 'record-start-response'
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
state.
|
|
141
|
-
|
|
136
|
+
if (message.type === 'record-start-response') {
|
|
137
|
+
// Always clear the timer the click handler started optimistically —
|
|
138
|
+
// otherwise starting a fresh interval here leaks the first one, which
|
|
139
|
+
// keeps re-rendering forever.
|
|
140
|
+
if (state.recordingTimer)
|
|
141
|
+
clearInterval(state.recordingTimer);
|
|
142
|
+
state.recordingTimer = null;
|
|
143
|
+
if (message.success) {
|
|
144
|
+
state.recordingActive = true;
|
|
145
|
+
state.recordingSessionId =
|
|
146
|
+
message.sessionId ?? null;
|
|
147
|
+
state.recordingStartedAt = Date.now();
|
|
148
|
+
state.recordingTimer = setInterval(() => state.render(), 1000);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
// Start failed server-side (e.g. a recording is already in progress)
|
|
152
|
+
// — roll back the optimistic UI so the button doesn't stick on "recording".
|
|
153
|
+
state.recordingActive = false;
|
|
154
|
+
state.recordingStartedAt = null;
|
|
155
|
+
state.recordingSessionId = null;
|
|
156
|
+
}
|
|
142
157
|
state.render();
|
|
143
158
|
return;
|
|
144
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../src/modules/websocket.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAC7B,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD;;GAEG;AACH,4FAA4F;AAC5F,SAAS,oBAAoB,CAAC,KAAkB;IAC9C,IAAI,KAAK,CAAC,mBAAmB,EAAE,CAAC;QAC9B,IAAI,CAAC;YACH,KAAK,CAAC,mBAAmB,CAAC,KAAK,EAAE,CAAC;QACpC,CAAC;QAAC,MAAM,CAAC;YACP,2BAA2B;QAC7B,CAAC;QACD,KAAK,CAAC,mBAAmB,GAAG,IAAI,CAAC;IACnC,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,KAAkB;IACzC,OAAO,kBAAkB,KAAK,CAAC,UAAU,EAA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
|
"private": false,
|
|
6
6
|
"description": "Development toolbar and utilities with Sweetlink integration - pure vanilla JS, no framework dependencies",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"axe-core": "^4.10.2",
|
|
85
85
|
"html2canvas-pro": "^2.0.0",
|
|
86
|
-
"@ytspar/sweetlink": "^1.
|
|
86
|
+
"@ytspar/sweetlink": "^1.25.0-canary.3450046"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@types/node": "^25.2.3",
|