PageSourceSearch

https://demo.sonraisecurity.com/_next/static/chunks/6528-5f7b485108ddceb8.js

js sonraisecurity.com collected 2026-09-24 09:24:13 UTC 26,112 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="08ad7b91-6686-5827-9aee-d6c450bff017")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6528],{42902:(e,t,n)=>{n.d(t,{J:()=>u,D:()=>s});var a=n(6029);function i(e,t,n){let a=e.createShader(t);return a?(e.shaderSource(a,n),e.compileShader(a),e.getShaderParameter(a,e.COMPILE_STATUS))?a:(e.deleteShader(a),null):null}var l=n(95632),r=n(55729);let o=(0,r.createContext)(null);function s(e){let{onReadyChange:t,children:n}=e,i=(0,r.useRef)(t);i.current=t;let l=(0,r.useMemo)(()=>e=>{i.current(e)},[]);return(0,a.jsx)(o.Provider,{value:l,children:n})}function c(){return(0,r.useContext)(o)}function u(e){let{imageSrc:t,videoStream:n,audioStream:i,isMuted:l=!1,className:r,applyChromaKey:o=!1,onFirstFrame:s}=e;return t?(0,a.jsx)(d,{imageSrc:t,className:r,onFirstFrame:s}):(0,a.jsx)(h,{videoStream:n,audioStream:i,isMuted:l,className:r,applyChromaKey:o,onFirstFrame:s})}function d(e){let{imageSrc:t,className:n,onFirstFrame:i}=e,o=(0,r.useRef)(null),s=c(),u=(0,r.useRef)(i),d=(0,r.useRef)(!1);(0,r.useEffect)(()=>{u.current=i});let h=(0,r.useCallback)(()=>{var e;d.current||(d.current=!0,null==s||s(!0),null==(e=u.current)||e.call(u))},[s]);return(0,r.useEffect)(()=>{let e=o.current;return t&&(null==e?void 0:e.complete)&&h(),()=>{d.current=!1,null==s||s(!1)}},[t,h,s]),(0,a.jsx)("div",{className:(0,l.cn)("relative overflow-hidden rounded-[10px]",n),children:(0,a.jsx)("img",{ref:o,src:t,alt:"",className:"h-full w-full object-contain",onLoad:h,onError:h})})}function h(e){let{videoStream:t,audioStream:n,isMuted:o,className:s,applyChromaKey:u,onFirstFrame:d}=e,h=(0,r.useRef)(null),m=(0,r.useRef)(null),f=(0,r.useRef)(null),x=c(),[p,v]=(0,r.useState)(!1),[g,b]=(0,r.useState)(!1),w=u&&!g,y=(0,r.useRef)(d);return(0,r.useEffect)(()=>{y.current=d}),(0,r.useEffect)(()=>()=>null==x?void 0:x(!1),[x]),(0,r.useEffect)(()=>{let e=h.current;if(!e)return;if(e.muted=!0,e.srcObject=null!=t?t:null,!t){v(!1),null==x||x(!1);return}let n=()=>{var e;v(!0),null==x||x(!0),null==(e=y.current)||e.call(y)};return e.addEventListener("loadeddata",n),e.play().catch(()=>{}),()=>{e.removeEventListener("loadeddata",n)}},[x,t]),(0,r.useEffect)(()=>{let e=f.current;e&&(e.srcObject=null!=n?n:null,n&&e.play().catch(()=>{}))},[n]),(0,r.useEffect)(()=>{let e=f.current;e&&(e.muted=o)},[o]),(0,r.useEffect)(()=>{if(!w)return;let e=h.current,t=m.current;if(!e||!t)return;let n=function(e){let t=e.getContext("webgl",{alpha:!0,premultipliedAlpha:!1});if(!t)return null;let n=i(t,t.VERTEX_SHADER,"\nattribute vec2 aPosition;\nvarying vec2 vUv;\nvoid main() {\n  vUv = aPosition * 0.5 + 0.5;\n  gl_Position = vec4(aPosition, 0.0, 1.0);\n}\n"),a=i(t,t.FRAGMENT_SHADER,"\nprecision mediump float;\nvarying vec2 vUv;\nuniform sampler2D uFrame;\n\nvoid main() {\n  vec4 color = texture2D(uFrame, vUv);\n  float r = color.r;\n  float g = color.g;\n  float b = color.b;\n\n  float maxC = max(r, max(g, b));\n  float minC = min(r, min(g, b));\n  float delta = maxC - minC;\n\n  float h = 0.0;\n  if (delta > 0.0) {\n    if (maxC == r) {\n      h = mod((g - b) / delta, 6.0);\n    } else if (maxC == g) {\n      h = (b - r) / delta + 2.0;\n    } else {\n      h = (r - g) / delta + 4.0;\n    }\n    h *= 60.0;\n    if (h < 0.0) {\n      h += 360.0;\n    }\n  }\n  float s = maxC == 0.0 ? 0.0 : delta / maxC;\n  float v = maxC;\n\n  bool isGreen = h >= 60.0 && h <= 180.0 && s > 0.1 && v > 0.15 && g > r && g > b;\n\n  float alpha = 1.0;\n  if (isGreen) {\n    float greenness = (g - max(r, b)) / max(g, 0.0001);\n    alpha = max(0.0, 1.0 - greenness * 4.0);\n    if (alpha < 0.2) {\n      alpha = 0.0;\n    }\n  }\n  gl_FragColor = vec4(color.rgb, alpha);\n}\n"),l=t.createProgram();if(!n||!a||!l||(t.attachShader(l,n),t.attachShader(l,a),t.linkProgram(l),!t.getProgramParameter(l,t.LINK_STATUS)))return null;t.useProgram(l);let r=new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),o=t.createBuffer(),s=t.createTexture();if(!o||!s)return t.deleteBuffer(o),t.deleteTexture(s),t.deleteProgram(l),t.deleteShader(n),t.deleteShader(a),null;t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW);let c=t.getAttribLocation(l,"aPosition");return t.enableVertexAttribArray(c),t.vertexAttribPointer(c,2,t.FLOAT,!1,0,0),t.bindTexture(t.TEXTURE_2D,s),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,!0),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.uniform1i(t.getUniformLocation(l,"uFrame"),0),{render(n){n.readyState<2||t.isContextLost()||((e.width!==n.videoWidth||e.height!==n.videoHeight)&&(e.width=n.videoWidth,e.height=n.videoHeight,t.viewport(0,0,e.width,e.height)),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,n),t.drawArrays(t.TRIANGLES,0,6))},dispose(){t.deleteTexture(s),t.deleteBuffer(o),t.deleteProgram(l),t.deleteShader(n),t.deleteShader(a)}}}(t);if(!n)return void b(!0);let a=()=>b(!0);t.addEventListener("webglcontextlost",a);let l=null,r=()=>{n.render(e),l=requestAnimationFrame(r)};return l=requestAnimationFrame(r),()=>{t.removeEventListener("webglcontextlost",a),null!==l&&cancelAnimationFrame(l),n.dispose()}},[w]),(0,a.jsxs)("div",{className:(0,l.cn)("relative overflow-hidden rounded-[10px]",w&&"bg-white/60",s),"aria-hidden":!p,children:[(0,a.jsx)("video",{ref:h,className:(0,l.cn)("h-full w-full object-cover transition-opacity duration-300",!w&&p?"opacity-100":"opacity-0"),playsInl
3ine:!0,autoPlay:!0,muted:!0}),w&&(0,a.jsx)("canvas",{ref:m,className:(0,l.cn)("absolute inset-0 h-full w-full object-contain transition-opacity duration-300",p?"opacity-100":"opacity-0")}),(0,a.jsx)("audio",{ref:f,className:"hidden",autoPlay:!0,muted:o})]})}},61403:(e,t,n)=>{n.d(t,{A3:()=>l,Du:()=>E,H8:()=>a,JN:()=>N,K7:()=>x,Ld:()=>C,PK:()=>h,TH:()=>w,TT:()=>r,Tk:()=>S,Vz:()=>v,X8:()=>g,bQ:()=>c,dc:()=>p,eh:()=>b,f8:()=>A,h9:()=>R,hw:()=>s,jA:()=>y,kY:()=>o,nb:()=>d,re:()=>i,so:()=>j,ts:()=>m,yk:()=>f,yl:()=>T,zX:()=>u});let a=340,i=6,l=20,r=24,o="--agent-player-gutter",s="--agent-player-bar-gap",c="--agent-player-control-slot",u="--agent-player-bar-reserve",d=0,h=0,m=8,f=16,x=16,p=12;function v(e){return e>0?6:12}let g="--agent-chat-zoom",b="--agent-chat-used-width",w="clamp(".concat(.75,", min(calc((100cqh - var(").concat(u,", 0px)) / ").concat(720,"px), calc(100cqw / ").concat(1280,"px)), 1)"),y="var(".concat(g,", 1)"),j="min(var(".concat(b,", ").concat(a,"px), var(").concat("--agent-chat-max-width",", ").concat(a,"px))"),N="--agent-chat-row-min-height";function R(e){return"min(".concat(50,"vh, calc(100cqh - ").concat(e,"px - ").concat(x,"px - var(").concat(u,", 0px)))")}function E(e){return Math.round(a+Math.min(Math.max(e,0),1)*(290-a))}let P="2 * var(".concat("--capture-well-inset",", ").concat(p,"px)");function _(e){return"calc(".concat(e.layoutContentMaxHeight," - ").concat(e.barHeightPx,"px - ").concat(e.rowVerticalPaddingPx,"px - ").concat(e.shellVerticalBorderPx,"px)")}function T(e,t){return"min(100cqw, calc(100cqh * (".concat(e," / ").concat(t,")))")}function C(e,t,n){return"calc((".concat(e," - ").concat(P,") * (").concat(n," / ").concat(t,") + ").concat(P,")")}function S(e){let{barHeightPx:t,layoutMaxVw:n,layoutContentMaxHeight:a,aspectW:r,aspectH:s,rowHorizontalPaddingPx:c,rowVerticalPaddingPx:u,shellHorizontalBorderPx:d,shellVerticalBorderPx:h,withWellInset:m=!1}=e,f="min(".concat(n,"vw, calc(100vw - 2 * var(").concat(o,", ").concat(l,"px)))"),x="calc(".concat(f," - ").concat(j," - ").concat(i,"px - ").concat(c,"px - ").concat(d,"px)"),p={barHeightPx:t,layoutContentMaxHeight:a,rowVerticalPaddingPx:u,shellVerticalBorderPx:h},v=m?"calc((".concat(function(e){let t=_(e);return"max(var(".concat(N,", 0px), ").concat(t,")")}(p)," - ").concat(P,") * (").concat(r," / ").concat(s,") + ").concat(P,")"):"calc(".concat(_(p)," * (").concat(r," / ").concat(s,"))");return"min(".concat(x,", ").concat(v,")")}function A(e){let{captureWidthExpr:t,withChatGutter:n,rowHorizontalPaddingPx:a,shellHorizontalBorderPx:l}=e,r=n?"calc(".concat(j," + ").concat(i,"px)"):"0px";return"calc(".concat(t," + ").concat(r," + ").concat(a,"px + ").concat(l,"px)")}},76528:(e,t,n)=>{n.d(t,{w:()=>k});var a=n(6029),i=n(61403),l=n(55613),r=n(95678),o=n(69222),s=n(26686),c=n(85835),u=n(68840),d=n(95632),h=n(42902),m=n(96888),f=n(7172),x=n(34281),p=n(87173),v=n(58086),g=n(69219),b=n(55729);let w={width:16,height:9},y=[.16,1,.3,1],j={type:"spring",visualDuration:.6,bounce:0};function N(e,t){return!!e&&e.glide===t.glide&&e.x===t.x&&e.y===t.y&&e.scale===t.scale&&e.tileWidth===t.tileWidth&&e.base.top===t.base.top&&e.base.left===t.base.left&&e.base.width===t.base.width&&e.base.height===t.base.height}let R={collapsed:{width:0,opacity:0,transition:{duration:.24,ease:y}},expanded:{width:i.so,opacity:1,transition:{duration:.7,ease:y}}},E={collapsed:{opacity:0,scale:.95,transition:{duration:.14,ease:y}},expanded:{opacity:1,scale:1,transition:{duration:.5,delay:.2,ease:y}}},P={hidden:{opacity:0,transition:{duration:.24,ease:y}},visible:{opacity:1,transition:{duration:.22,ease:y}}},_={unborn:{opacity:0,scale:0},expanded:{opacity:1,scale:1}};function T(e){let{statusMessage:t}=e;return(0,a.jsx)(c.n,{className:"text-sm font-medium",duration:2,children:null!=t?t:"Loading your demo"})}function C(e){let{isOpen:t,onToggle:n,hoverLabel:i,isDarkBackground:l,isLightestBackground:o}=e,s=(null==i?void 0:i.trim())||"Book a meeting",[c,u]=(0,b.useState)(!1),h=!t&&c;return(0,a.jsxs)(x.P.button,{type:"button",onClick:n,onHoverStart:()=>u(!0),onHoverEnd:()=>u(!1),onFocus:()=>u(!0),onBlur:()=>u(!1),"aria-label":t?"Close scheduler":s,"aria-expanded":t,layout:!0,className:(0,d.cn)("flex h-7 items-center px-1 text-sm font-medium text-default",(0,f._R)(l,o),"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400"),children:[(0,a.jsx)(x.P.span,{layout:"position",className:"flex items-center justify-center",children:(0,a.jsx)(r.I,{name:"calendar",className:(0,d.cn)("shrink-0",l?"text-gray-100":"text-default"),size:"sm"})}),(0,a.jsx)(p.N,{initial:!1,children:h?(0,a.jsx)(x.P.span,{initial:{opacity:0,width:0}
3,animate:{opacity:1,width:"auto"},exit:{opacity:0,width:0},transition:{ease:"easeInOut",duration:.3,delay:.15},className:"overflow-hidden whitespace-nowrap",children:(0,a.jsx)("span",{className:"px-1.5",children:s})},"scheduler-label"):null})]})}let S=e=>{let{showPoweredBy:t,ctaButton:n,horizontalLogo:i,showChatSidebarToggle:c,isChatSidebarOpen:h,onChatSidebarToggle:m,chatSidebarBadgeCount:x=0,showSchedulerToggle:p,isSchedulerOpen:v,onSchedulerToggle:g,schedulerHoverLabel:b,isDarkBackground:w,isLightestBackground:y}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-2 px-4 pr-3 pt-2",style:{height:"42px"},children:[(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("div",{className:"h-full relative max-w-[300px]",children:i?(0,a.jsx)("img",{src:i,alt:"Logo",className:"h-5 w-auto"}):null})}),(0,a.jsxs)("div",{className:"text-muted flex flex-1 items-center justify-end gap-2 text-xs",children:[t&&(0,a.jsx)(u.m_,{content:(0,a.jsxs)(a.Fragment,{children:["Powered by"," ",(0,a.jsx)("a",{href:"https://www.navattic.com/product/agent-demos",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Navattic"})]}),children:(0,a.jsx)("div",{className:"size-6 grid place-items-center",children:(0,a.jsx)(r.I,{name:"info",className:"text-white/50",size:"sm"})})}),n&&(0,a.jsx)("a",{href:n.href,target:"_blank",rel:"noopener noreferrer",onClick:n.onClick,className:"inline-flex w-fit max-w-full shrink-0 min-w-0",children:(0,a.jsx)(l.$,{size:"sm",variant:"outline",className:(0,d.cn)("!min-w-0 max-w-full",(0,f.HT)(w,y,n.isHighlighted)),children:n.text})}),p?(0,a.jsx)(C,{isOpen:!!v,onToggle:g,hoverLabel:b,isDarkBackground:w,isLightestBackground:y}):null,c?(0,a.jsx)(s.C,{size:"sm",colorScheme:"red",count:x>9?"9+":x,hide:x<=0||h,children:(0,a.jsx)(o.K,{icon:h?"panel-left-close":"panel-left",size:"sm",variant:"outline",className:{root:(0,f._R)(w,y),contentWrapper:"p-0"},onClick:m,"aria-label":h?"Close chat":"Open chat"})}):null]})]})},A=e=>{let{children:t,resolvedOverlay:n,isLoadingOverlay:i=!1,bodyPanel:l,contentClassName:r,captureContentClassName:o,aspectRatio:s,overlayClassName:c,onHoverChange:u,isInitialPaintReady:h,rootRef:m,frameWidthExpr:f,hasWell:v}=e,[g,w]=(0,b.useState)(i),y=(0,b.useRef)(i);return y.current=i,i?g||w(!0):n&&g&&w(!1),(0,a.jsxs)("div",{ref:m,className:(0,d.cn)("relative shrink-0 isolate",r,"h-auto max-h-full self-center overflow-hidden",v?"rounded-[6px]":"rounded-xl",f?"max-w-full max-sm:w-full!":"w-full",!h&&"bg-transparent border-transparent shadow-none"),style:{aspectRatio:s,...f?{width:f}:{}},onMouseEnter:()=>null==u?void 0:u(!0),onMouseLeave:()=>null==u?void 0:u(!1),children:[(0,a.jsx)("div",{className:(0,d.cn)("relative h-full w-full overflow-hidden rounded-[inherit]",!(h&&!g)&&"pointer-events-none opacity-0",o),children:t}),(0,a.jsx)(p.N,{initial:!1,children:l}),(0,a.jsx)(p.N,{initial:!1,onExitComplete:()=>{y.current||w(!1)},children:n&&(0,a.jsx)(x.P.div,{variants:P,initial:"hidden",animate:"visible",exit:"hidden",className:(0,d.cn)("absolute inset-0 z-20 flex items-center justify-center will-change-transform",c),children:n},"agent-browser-overlay")})]})};function k(e){var t;let{showBrowserBar:n=!0,showPoweredBy:l,ctaButton:o,aspectRatio:s=w,contentClassName:c,horizontalLogo:u,onChatSidebarToggle:y,isChatSidebarOpen:P,chatSidebarBadgeCount:C,lockChatSidebarOpen:k,showSchedulerToggle:L,isSchedulerOpen:z,onSchedulerToggle:D,schedulerHoverLabel:F,bodyPanel:W,overlay:B,overlayClassName:G,isLoading:H,loadingMessage:M,onContentHoverChange:U,chatPanel:I,deferChatPanel:O=!1,liveAvatar:X,liveAvatarPlacement:q="sidebar",liveAvatarPlacementInstant:V=!1,showAvatarToggle:K=!1,isAvatarHidden:Y=!1,onAvatarToggle:J,browserColumnStyle:Z,layoutMaxVw:Q=99,chatInlineWidthPx:$=i.H8,layoutContentMaxHeight:ee="85vh",layoutCentered:et=!0,isDarkBackground:en,isLightestBackground:ea,children:ei,className:el,style:er,"data-test-id":eo,...es}=e,ec=null==B&&!!H,eu=null!=B?B:ec?(0,a.jsx)(T,{statusMessage:M}):null,ed=!!I,[eh,em]=(0,b.useState)(!1),[ef,ex]=(0,b.useState)(ed),ep=(0,v.I)(),ev=null!=P;(0,b.useEffect)(()=>{em(!0)},[]),(0,b.useEffect)(()=>
3{if(!ed)return void ex(!1);ev||ex(!0)},[ed,ev]);let eg=!!k||(ev?!!P:ef),eb=ed&&eg,ew=eb&&!O,ey=!k&&(null!=y||ed||eg),ej=42*!!n,eN="".concat(s.width," / ").concat(s.height),eR=(0,i.Tk)({barHeightPx:ej,layoutMaxVw:Q,layoutContentMaxHeight:ee,aspectW:s.width,aspectH:s.height,rowHorizontalPaddingPx:i.yk,rowVerticalPaddingPx:i.K7,shellHorizontalBorderPx:i.nb,shellVerticalBorderPx:i.PK,withWellInset:eb}),eE=(0,i.f8)({captureWidthExpr:eR,withChatGutter:ew,rowHorizontalPaddingPx:i.yk,shellHorizontalBorderPx:i.nb}),eP={[i.X8]:i.TH,[i.eh]:"".concat($,"px"),width:eE,transition:eh?ew?"width 700ms cubic-bezier(0.3, 0.8, 0.3, 1)":"width 400ms cubic-bezier(0.3, 0.8, 0.3, 1)":void 0},e_={width:eR,minWidth:eR,...Z},eT=!!X,eC=eT&&!Y,eS="sidebar"===q&&!!Y,eA=eC&&"body"===q,ek=(0,b.useRef)(null),eL=(0,b.useRef)(null),ez=(0,b.useRef)(null),[eD,eF]=(0,b.useState)(null),eW=(0,b.useRef)(null),eB=(0,b.useRef)(null),eG=(0,b.useRef)(null),[eH,eM]=(0,b.useState)(!1);(0,m.ZA)(eW,K&&eC),(0,m.ZA)(eB,K&&eS);let eU=(0,b.useRef)(q),[eI,eO]=(0,b.useState)(null),eX=(0,b.useRef)(eS),eq=(0,b.useRef)(null);eI&&(eq.current=eI);let eV=null!=eI?eI:eq.current,[eK,eY]=(0,b.useState)(!1),[eJ,eZ]=(0,b.useState)(Y),[eQ,e$]=(0,b.useState)(!1),[e0,e1]=(0,b.useState)(q),[e2,e3]=(0,b.useState)(!1);Y!==eJ&&(eZ(Y),eY("sidebar"===q&&!V&&!ep)),q!==e0&&(e1(q),e$(!V&&!ep)),!eT&&e2&&e3(!1),(0,b.useEffect)(()=>{if(!eK)return;let e=window.setTimeout(()=>eY(!1),Y?m.b5:m.Mn);return()=>window.clearTimeout(e)},[eK,Y]),(0,b.useEffect)(()=>{if(!eQ)return;let e=window.setTimeout(()=>e$(!1),700);return()=>window.clearTimeout(e)},[eQ]),(0,b.useEffect)(()=>{let e=eG.current,t=eS&&!eX.current;if(eX.current=eS,!t||ep||!e)return;let n=(0,g.i)(e,{scaleX:[1,m.U3,1],scaleY:[1,m.Np,1]},{duration:m.J3/1e3,delay:m.HW/1e3,ease:m.gG,times:[0,.35,1]});return()=>{n.stop(),(0,g.i)(e,{scaleX:1,scaleY:1},{duration:0})}},[eS,ep]),(0,b.useLayoutEffect)(()=>{var e;if(!eT)return;let t=null!=(e=eL.current)?e:ek.current,n=ez.current;if(!t||!n)return;let a=()=>{let e=eU.current!==q;eU.current=q;let a=t.getBoundingClientRect(),i=t.offsetWidth>0?a.width/t.offsetWidth:1,l=n.getBoundingClientRect(),r={top:(l.top-a.top)/i,left:(l.left-a.left)/i,width:l.width/i,height:l.height/i};if("sidebar"===q){if(!eD||0===l.width)return void eO(e=>null==e?e:null);let t=eD.getBoundingClientRect();if(0===t.width)return;let n=t.width/i,a={base:r,x:(t.left-l.left)/i,y:(t.top-l.top)/i,scale:n*i/l.width,tileWidth:n,glide:e};eO(e=>N(e,a)?e:a)}else{let t={base:r,x:0,y:0,scale:1,tileWidth:r.width,glide:e};eO(e=>N(e,t)?e:t)}};a();let i=new ResizeObserver(a);i.observe(t),i.observe(n),eD&&i.observe(eD);let l=0,r=performance.now()+900,o=()=>{a(),performance.now()<r&&(l=requestAnimationFrame(o))};return l=requestAnimationFrame(o),()=>{cancelAnimationFrame(l),i.disconnect()}},[eT,q,eD]);let e5=Y?m.b5:m.Mn,e6=(0,b.useMemo)(()=>({markerRef:eF,aspectRatio:s.width/s.height,isAvatarHidden:!!Y,isSlotVacated:"body"===q,isAvatarPending:!e2}),[s.width,s.height,Y,e2,q]),e8=null!=(t=null==eV?void 0:eV.tileWidth)?t:0,e9=eV?eV.base.height*eV.scale:0,e4=eS&&e8>0?(e8-m.GR)/2:0,e7=eV?"sidebar"===q?{top:eV.base.top+eV.y,left:eV.base.left+eV.x,width:e8,height:e9}:{top:eV.base.top,left:eV.base.left,width:eV.base.width,height:eV.base.height}:{top:0,left:0,width:0,height:0},te=eQ||("body"===q?!!eV:!!(ew&&eI)),tt=(0,i.Vz)(eb?i.dc:0),tn="sidebar"===q?8:tt,ta=eS?m.wW:tn,ti={x:{duration:e5/1e3,ease:m.gG},y:{duration:e5/1e3,ease:m.gG},width:{duration:e5/1e3,ease:m.gG},height:{duration:e5/1e3,ease:m.gG},borderRadius:{duration:e5/1e3,ease:m.gG}},tl=(Y?m.av:.75*m.Mn)/1e3,tr=m.b5-m.av,to=te&&e2,ts=ep?{duration:0}:{duration:m.Mn/1e3,ease:m.gG},tc="sidebar"===q&&eH&&!ep?.97:1,tu=eT?(0,a.jsx)(x.P.div,{className:(0,d.cn)("pointer-events-none absolute z-30","body"===q&&"overflow-hidden",!eQ&&"origin-top"),layout:e2&&!V&&!ep,layoutDependency:q,inherit:!1,style:{...e7,borderRadius:tn},variants:_,initial:"unborn",animate:eQ?{opacity:+!!to,scale:+!!to,borderRadius:tn}:to?"expanded":"unborn",transition:ep?{duration:0}:{layout:eQ?j:{duration:0},borderRadius:eQ?j:{duration:0},scale:ts,opacity:ts},children:(0,a.jsx)("div",{className:(0,d.cn)("h-full w-full",eS&&!ep?"hover:translate-y-[var(--caret-nudge)]":void 0),style:{"--caret-nudge":"".concat(m.nu,"px"),transition:eS&&!ep?"translate 160ms ".concat(m.W9):void 0},children:(0,a.jsx)(x.P.div,{className:(0,d.cn)(!eS&&"h-full w-full","sidebar"===q&&["bg-white/20",(0,f.D_)(en,ea)]),style:{transformOrigin:eS||eH?"center":"top center"},inherit:!1,initial:!1,animate:eS?{x:e4,width:m.GR,height:m.D1,borderRadius:ta,scale:tc}:{x:0,width:"100%",height:"100%",borderRadius:ta,scale:tc},transition:{...V||ep||eQ?{duration:0}:eK?ti:{duration:0},scale:{duration:.12*!ep,ease:m.gG}},children:(0,a.jsxs)("div",{ref:eG,className:"relative h-full w-full overflow-hidden rounded-[inherit]",style:{transformOrigin:"top center"},children:[(0,a.jsx)(x.P.div,{className:(0,d.cn)("absolute inset-0 overflow-hidden [&>*]:h-full [&>*]:w-full [&>*]:rounded-none","body"===q&&"[&_img]:h-full [&_img]:w-full [&_img]:rounded-none [&_img]:object-cover [&_video]:h-full [&_video]:w-full [&_video]:rounded-none [&_video]:object-cover"),animate:{o
3pacity:+!!eC},transition:{duration:tl,ease:m.gG},children:(0,a.jsx)(h.D,{onReadyChange:e3,children:X})}),K?(0,a.jsxs)(a.Fragment,{children:[eC?(0,a.jsx)("button",{ref:eW,type:"button",onClick:J,onPointerDown:()=>eM(!0),onPointerUp:()=>eM(!1),onPointerCancel:()=>eM(!1),onPointerLeave:()=>eM(!1),"aria-label":"Hide avatar",className:(0,d.cn)("group/avatar absolute inset-0 z-10 flex items-center justify-center overflow-hidden",to?"pointer-events-auto":"pointer-events-none","transition-colors duration-150 hover:bg-black/25","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400"),children:(0,a.jsx)("span",{className:"origin-center scale-90 opacity-0 transition-[opacity,scale] duration-150 group-hover/avatar:scale-100 group-hover/avatar:opacity-100 group-focus-visible/avatar:scale-100 group-focus-visible/avatar:opacity-100",style:{transitionTimingFunction:m.W9},children:(0,a.jsx)("span",{className:(0,d.cn)("flex h-6 items-center px-2.5 text-xs font-medium leading-none",(0,f._R)(en,ea),"bg-white/95 hover:bg-white/95 text-gray-900"),children:"Hide avatar"})})}):null,(0,a.jsx)(x.P.button,{ref:eB,type:"button",onClick:J,onPointerDown:()=>eM(!0),onPointerUp:()=>eM(!1),onPointerCancel:()=>eM(!1),onPointerLeave:()=>eM(!1),"aria-label":"Show avatar","aria-hidden":!eS,tabIndex:eS?void 0:-1,inherit:!1,initial:!1,animate:{opacity:+!!eS},transition:{duration:ep?0:eS?tr/1e3:0,delay:ep||!eS?0:m.av/1e3,ease:m.gG},className:(0,d.cn)("absolute inset-0 z-10 flex items-center justify-center",eS&&to?"pointer-events-auto":"pointer-events-none",en?"text-gray-100":"text-default","focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400"),children:(0,a.jsx)(r.I,{name:"chevron-down",className:"shrink-0",size:"sm"})})]}):null]})})})}):null,td=(0,d.cn)(eT&&(V?"transition-none":"transition-opacity duration-[600ms] ease-[cubic-bezier(0.22,1,0.36,1)]"),eA&&"opacity-0"),th=eb?(0,i.yl)(s.width,s.height):void 0,tm=(0,a.jsx)(A,{resolvedOverlay:eu,isLoadingOverlay:ec,bodyPanel:W,contentClassName:c,captureContentClassName:td,aspectRatio:eN,overlayClassName:G,onHoverChange:U,isInitialPaintReady:eh||!!eu,rootRef:eT?ez:void 0,frameWidthExpr:th,hasWell:eb,children:ei}),tf=n?(0,a.jsx)(S,{showPoweredBy:l,ctaButton:o,horizontalLogo:u,showChatSidebarToggle:ey,isChatSidebarOpen:eg,onChatSidebarToggle:()=>{if(y)return void y();ed&&ex(e=>!e)},chatSidebarBadgeCount:C,showSchedulerToggle:L,isSchedulerOpen:z,onSchedulerToggle:D,schedulerHoverLabel:F,isDarkBackground:en,isLightestBackground:ea}):null;return(0,a.jsx)("div",{className:(0,d.cn)("relative flex w-full min-h-0 justify-center",et&&"h-full flex-col items-center justify-center",el),"data-test-id":eo,style:et?{containerType:"size",...er}:er,...es,children:(0,a.jsxs)("div",{ref:eL,className:(0,d.cn)("relative overflow-hidden rounded-2xl isolate","max-sm:flex max-sm:min-h-0 max-sm:w-full! max-sm:min-w-0! max-sm:flex-col",eb&&"max-sm:h-full max-sm:max-h-full","@max-[1350px]/agent-player:[--agent-chat-max-width:280px]","@max-[1000px]/agent-player:[--agent-chat-max-width:200px]","max-h-full","shadow-[0px_4px_20px_-16px_rgba(0,0,0,0.2),0px_-4px_48px_-4px_rgba(0,0,0,0.05)]"),style:{...eP,contain:"layout paint"},children:[(0,a.jsx)("div",{"aria-hidden":"true",className:(0,d.cn)("pointer-events-none rounded-2xl absolute inset-0 bg-white/20 backdrop-blur-xl will-change-transform",(0,f.D_)(en,ea))}),(0,a.jsxs)("div",{ref:ek,className:"relative z-10 max-sm:flex max-sm:min-h-0 max-sm:flex-1 max-sm:flex-col",children:[tf,(0,a.jsxs)("div",{className:(0,d.cn)("relative flex w-full min-w-0 items-stretch pt-2 px-2",!eb&&"min-h-0","max-sm:flex-col max-sm:gap-1.5 max-sm:pb-2",eb&&"min-h-(--agent-chat-row-min-height) max-sm:min-h-0 max-sm:flex-1"),style:eb?{[i.JN]:(0,i.h9)(ej)}:void 0,children:[(0,a.jsxs)("div",{className:(0,d.cn)("relative min-h-0 min-w-0 shrink-0 mb-2 max-sm:w-full! max-sm:min-w-0! max-sm:mb-0",eb&&"self-stretch max-sm:self-auto"),style:e_,children:[eb?(0,a.jsx)("div",{"aria-hidden":!0,className:"invisible max-sm:hidden",style:{width:eR,height:(0,i.Ld)(eR,s.width,s.height)}}):null,(0,a.jsx)("div",{className:(0,d.cn)(eb?"[container-type:size] absolute inset-0 flex items-center justify-center p-3 [--capture-well-inset:12px] @max-[1200px]/agent-player:p-2 @max-[1200px]/agent-player:[--capture-well-inset:8px] max-sm:static max-sm:w-full max-sm:[container-type:normal]":"relative w-full [--capture-well-inset:0px]","overflow-hidden rounded-xl bg-white/20",(0,f.D_)(en,ea)),children:tm})]}),(0,a.jsx)(p.N,{initial:!1,children:ew?(0,a.jsx)(x.P.div,{role:"complementary","aria-label":"Chat",variants:R,initial:!!eh&&"collapsed",animate:"expanded",exit:"collapsed",className:(0,d.cn)("flex min-h-0 shrink-0 flex-col pb-2 will-change-[width,opacity]","absolute top-2 bottom-0","max-sm:relative max-sm:top-auto max-sm:bottom-auto max-sm:left-auto! max-sm:w-full! max-sm:min-w-0! max-sm:flex-1 max-sm:pb-0"),style:{left:"calc(".concat(i.ts,"px + ").concat(eR," + ").concat(i.re,"px)")},children:(0,a.jsx)(x.P.div,{variants:E,className:"flex h-full min-h-0 shrink-0 flex-col will-change-[transform,opacity] max-sm:w-full! max-sm:min-w-0! max-sm:[zoom:1]!",style:{width:"calc(".concat(i.so," / ").concat(i.jA,")"),minWidth:"calc(".concat(i.so," / ").concat(i.jA,")"),zoom:i.jA},children:(0,a.jsx)("div",{className:"flex h-full min-h-0 flex-col",children:(0,a.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:eT?(0,a.jsx)(m.Mu,{value:e6,children:I}):I})})})},"agent-browser-chat-panel"):null})]})]}),tu]})})}}
3,96888:(e,t,n)=>{n.d(t,{D1:()=>r,GR:()=>l,HW:()=>f,J3:()=>x,MF:()=>y,Mn:()=>d,Mu:()=>w,Np:()=>m,U3:()=>h,W9:()=>v,ZA:()=>i,av:()=>u,b5:()=>c,gG:()=>p,nu:()=>s,oA:()=>g,wW:()=>o});var a=n(55729);function i(e,t){let n=(0,a.useRef)(t);(0,a.useEffect)(()=>{var a,i;let l=n.current!==t;if(n.current=t,l){if(t){document.activeElement===document.body&&(null==(a=e.current)||a.focus());return}document.activeElement===e.current&&(null==(i=e.current)||i.blur())}},[t,e])}let l=74,r=21,o=8,s=2,c=420,u=Math.round(315),d=320,h=.88,m=1.18,f=180,x=220,p=[.23,1,.32,1],v="cubic-bezier(".concat(p.join(","),")"),g="cubic-bezier(".concat("0.77,0,0.175,1",")"),b=(0,a.createContext)(null),w=b.Provider;function y(){return(0,a.useContext)(b)}}}]);
4//# sourceMappingURL=6528-5f7b485108ddceb8.js.map
5//# debugId=08ad7b91-6686-5827-9aee-d6c450bff017

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