PageSourceSearch

https://cloud.cypress.io/7494.8ff6ab2fec989323daa1.bundle.js

js cypress.io collected 2026-10-01 07:27:23 UTC 186,151 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_frontend_dashboard=self.webpackChunk_frontend_dashboard||[]).push([[7494],{17056:(e,t,n)=>{n.d(t,{BZ:()=>x,Bd:()=>p,EN:()=>_,Ey:()=>N,Jx:()=>S,KY:()=>h,Ob:()=>y,SM:()=>g,YR:()=>w,Zl:()=>f,h_:()=>v,ie:()=>u,lp:()=>I,pr:()=>b,qB:()=>m});n(25400),n(30935),n(54),n(95790),n(66542),n(93831),n(68291),n(30488);var r=n(75276),o=n(45250),a=n(52355),i=n.n(a),l=n(88819),s=n(25111);function c(){var e=(0,r.A)(["\n      **Issue:** ","\n      **Severity:** ","\n      ","\n      **Selected element:** `","`\n      **References:**\n      - [How to fix this](",")\n      - [View in Cypress Cloud](",")\n    "],["\n      **Issue:** ","\n      **Severity:** ","\n      ","\n      **Selected element:** \\`","\\`\n      **References:**\n      - [How to fix this](",")\n      - [View in Cypress Cloud](",")\n    "]);return c=function(){return e},e}function d(){var e=(0,r.A)(["\n      Issue: ","\n      Severity: ","\n      ","\n      Selected element: ","\n      How to fix this: ","\n      View in Cypress Cloud: ","\n    "]);return d=function(){return e},e}var u=[{value:"wcag21a",name:"WCAG 2.1 A",tags:["wcag2a","wcag21a"]},{value:"wcag21aa",name:"WCAG 2.1 AA",tags:["wcag2a","wcag2aa","wcag21a","wcag21aa"]},{value:"best-practice",name:"Best practices",tags:["best-practice","cypress-rule"]}],p=function(e){return(0,o.flattenDeep)(JSON.parse(e.targetString))},h=function(e){return p(e).join(" ")},m=[{value:"critical",name:"Critical"},{value:"serious",name:"Serious"},{value:"moderate",name:"Moderate"},{value:"minor",name:"Minor"}],f=m.map(function(e){return e.value}),v=u.map(function(e){return e.value}),y=function(e){switch(e){case"fail":return"failed";case"ignore":return"ignored";case"inapplicable":return"incomplete";case"incomplete":return"inconclusive";default:return"passed"}},g=[{value:"fail",name:"Failed",defaultEnabled:!0},{value:"incomplete",name:"Inconclusive",defaultEnabled:!0},{value:"ignore",name:"Ignored",defaultEnabled:!1}],b=[{value:"fail",name:"Failed",defaultEnabled:!0},{value:"incomplete",name:"Inconclusive",defaultEnabled:!0},{value:"other",name:"Other",defaultEnabled:!1}],S=g.map(function(e){return e.value}),w=b.map(function(e){return e.value}),_=g.filter(function(e){return e.defaultEnabled}).map(function(e){return e.value}),I=b.filter(function(e){return e.defaultEnabled}).map(function(e){return e.value}),x=function(e){var t=e.rules,n=e.allRulesetsEnabled,r=e.allImpactsEnabled,o=e.appliedRulesets,a=e.appliedImpacts,i=e.appliedStatuses;return o.length&&a.length&&i.length?t.filter(function(e){return(n||(0,s.Ax)(o,e.tags))&&(r||a.includes(e.impact))&&i.some(function(t){return e.elementCountsByStatus[t]>0})}):[]},N=function(e,t){var n;return"plaintext"===t&&(n=i()(d(),e.issue,(0,l.n)(e.severity),e.isAllViews?"":"Selected view: "+e.selectedView,e.selectedElement,e.helpUrl,e.cypressUrl)),"markdown"===t&&(n=i()(c(),e.issue,(0,l.n)(e.severity),e.isAllViews?"":"**Selected view:** "+e.selectedView,e.selectedElement,e.helpUrl,e.cypressUrl)),n.split("\n\n").join("\n")}},97155:(e,t,n)=>{n.d(t,{U:()=>o});var r=n(31085),o=(n(14041),function(e){return(0,r.jsxs)("svg",{"aria-hidden":e["aria-hidden"],xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,r.jsx)("g",{clipPath:"url(#"+e.clipPathId+")",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0C6.38986 0 4.92831 0.94111 4.26203 2.40693L0.310658 11.0999C0.105927 11.5504 0 12.0394 0 12.5341C0 14.4483 1.55172 16 3.46587 16H8H12.5341C14.4483 16 16 14.4483 16 12.5341C16 12.0394 15.8941 11.5504 15.6893 11.0999L11.738 2.40693C11.0717 0.94111 9.61014 0 8 0ZM6.08276 3.23454C6.4245 2.4827 7.17414 2 8 2C8.82586 2 9.5755 2.4827 9.91724 3.23454L13.8686 11.9275C13.9552 12.118 14 12.3249 14 12.5341C14 13.3437 13.3437 14 12.5341 14H8H3.46587C2.65629 14 2 13.3437 2 12.5341C2 12.3249 2.0448 12.118 2.13139 11.9275L6.08276 3.23454ZM9 6C9 5.44772 8.55229 5 8 5C7.44772 5 7 5.44772 7 6V9C7 9.55228 7.44772 10 8 10C8.55229 10 9 9.55228 9 9V6ZM8 13C8.55229 13 9 12.5523 9 12C9 11.4477 8.55229 11 8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13Z",fill:"currentColor"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:e.clipPathId,children:(0,r.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})});o.displayName="IconTriangleWarning"},936:(e,t,n)=>{n.d(t,{v:()=>l});var r=n(31085),o=n(20467),a=n(14041),i=n(40895),l=function(e){var t=e.className,n=e.disabled,l=e.overlayCompletedText,s=e.overlayDefaultText,c=e.ariaLabel,d=e.children,u=e.onClick,p=e["data-cy"],h=(0,a.useState)(s),m=h[0],f=h[1];return(0,r.jsx)(o.m_,{placement:"topLeft",overlay:(0,r.jsx)("p",{style:{marginBottom:-10},children:m}),onVisibleChange:function(){return f(s)},trigger:["hover","focus"],children:(0,r.jsx)(i.Ay,{"aria-label":c,className:t,"data-cy":p,disabled:n,size:"20",style:{padding:"1px",transitionDuration:"0s",backgroundColor:"transparent",marginLeft:"8px"},type:"button",variant:"white",onClick:function(e){e.preventDefault(),e.stopPropagation(),u(e),f(l)},onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),u(e),f(l))},children:d})})};l.displayName="AccordionListItemIconButton"}
1,89602:(e,t,n)=>{n.d(t,{T:()=>l});var r=n(31085),o=(n(14041),n(35118)),a=n(16749),i=n(936),l=function(e){var t=e.className,n=e.clipboardText,l=e.disabled,s=e.ariaLabel,c=e.hoverText,d=e["data-cy"];return(0,r.jsx)(i.v,{className:t,"data-cy":d,disabled:l,ariaLabel:s,overlayDefaultText:c,overlayCompletedText:"Copied!",onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation(),(0,a.e)(n)}(e)},children:(0,r.jsx)(o.QSd,{size:"16"})})};l.displayName="CopyToClipboardButton"},42892:(e,t,n)=>{n.d(t,{h:()=>o,u:()=>a});var r=n(14041),o=r.createContext(null),a=function(){return r.useContext(o)}},64892:(e,t,n)=>{n.d(t,{u:()=>I});n(68450),n(68875),n(95790),n(78366),n(7680);var r=n(31085),o=n(14041),a=n(35118),i=n(40895),l=n(95735),s=n(20053),c=n(65398),d=n.n(c),u=n(42892),p=n(86093),h=n(89602),m=n(936),f=function(e){var t=e.getElementFunc,n=e.className,o=e.disabled;return(0,r.jsx)(m.v,{className:n,disabled:o,ariaLabel:"Print selector to console",overlayDefaultText:"Print to Console",overlayCompletedText:"Printed to Console!",onClick:function(e){return function(e){e.preventDefault(),e.stopPropagation();var n,r=t();r?1===(null==r?void 0:r.length)?(n=console).log.apply(n,r):console.log(r):console.log("No element found")}(e)},children:(0,r.jsx)(a.Eij,{size:"16"})})};f.displayName="LogInDevToolsConsoleButton";var v=n(33145),y=n(53681);const g={listItem:"module-IntelligenceAccordionListItem__listItem__IbRdw",borderContainer:"module-IntelligenceAccordionListItem__borderContainer__kX2Zy",loading:"module-IntelligenceAccordionListItem__loading__Lxz_S",shimmer:"module-IntelligenceAccordionListItem__shimmer__W9CvQ",isSelected:"module-IntelligenceAccordionListItem__isSelected__GtVMY",buttonTray:"module-IntelligenceAccordionListItem__buttonTray__OSuXo",hovered:"module-IntelligenceAccordionListItem__hovered__hKqjJ",notSelected:"module-IntelligenceAccordionListItem__notSelected__Iiht3",pass:"module-IntelligenceAccordionListItem__pass__mu0Dq",fail:"module-IntelligenceAccordionListItem__fail__MQL6z",incomplete:"module-IntelligenceAccordionListItem__incomplete__LUnfA",notPresent:"module-IntelligenceAccordionListItem__notPresent__ACgmB",icon:"module-IntelligenceAccordionListItem__icon__TC8BL",selector:"module-IntelligenceAccordionListItem__selector__iHdQ2",listItemContent:"module-IntelligenceAccordionListItem__listItemContent__YmQWC",buttonInset:"module-IntelligenceAccordionListItem__buttonInset__kUE7G"};var b=(0,r.jsx)(a.vDT,{"data-cy":"pinned-icon",className:"mr-[8px] shrink-0",fillColor:"purple-200",strokeColor:"purple-500"}),S=function(e){var t=e.getElementFunc,n=e.refCallback,a=e.row,l=e.variant,c="accordion-row-expanded-content-"+a.key,d="accordion-row-active-desc-"+a.key,u=(0,y.b)().hoverState,p=(null==u?void 0:u.id)&&u.id===a.key,m=o.useMemo(function(){return(0,s.A)(g.listItem,g[a.isSelected?"isSelected":"notSelected"],g[l+"Variant"],"scroll-mt-[36px]",p&&g.hovered,a.status&&g[a.status],!a.isPresentOnSnapshot&&g.notPresent)},[a.isSelected,a.status,a.isPresentOnSnapshot,l,p]);return(0,r.jsxs)("li",{ref:n?function(e){return n({key:a.key,node:e})}:void 0,className:m,"data-cy":p?"hovered":void 0,children:[(0,r.jsx)(i.Ay,{"aria-controls":c,"aria-expanded":a.isSelected,"aria-describedby":a.isSelected?d:void 0,className:g.borderContainer,"data-cy":"child-row-"+a.key,onClick:a.onClick,onMouseEnter:a.onMouseEnter,onMouseLeave:a.onMouseLeave,disabled:"loading"===a.status,children:(0,r.jsxs)("div",{className:(0,s.A)(g.listItemContent,a.isSelected&&g.buttonInset),children:[(a.icon||a.isSelected)&&(0,r.jsx)("span",{className:g.icon,children:a.isSelected?b:a.icon}),(0,r.jsx)("div",{className:g.selector,children:a.content})]})}),a.isSelected&&(0,r.jsxs)("span",{className:g.buttonTray,children:[a.copyAction&&(0,r.jsx)(h.T,{disabled:!a.isSelected,clipboardText:a.copyAction.value,ariaLabel:a.copyAction.ariaLabel,hoverText:a.copyAction.hoverLabel}),(0,r.jsx)(f,{disabled:!a.isSelected,getElementFunc:t})]}),a.isSelected&&(0,r.jsx)("span",{"aria-hidden":!0,className:"sr-only",id:d,children:"Active"}),a.contentBelow&&a.isSelected&&(0,r.jsx)("div",{id:c,className:"w-full",children:(0,r.jsx)(v.A,{size:"small",fallbackRender:function(){return(0,r.jsx)("div",{className:"mx-[9px] my-[4px] text-md italic text-gray-500",children:"There was an error loading this content"})},children:(0,r.jsx)("div",{className:"w-full","data-cy":"expanded-content-"+a.key,children:a.contentBelow})})})]})};S.displayName="IntelligenceAccordionListItem";const w={accordionButtonWrapper:"module-IntelligenceAccordionRow__accordionButtonWrapper__etLOb",isExpanded:"module-IntelligenceAccordionRow__isExpanded__MCAPW",accordionButton:"module-IntelligenceAccordionRow__accordionButton__wPCTX",buttonContent:"module-IntelligenceAccordionRow__buttonContent__PAZ34",buttonText:"module-IntelligenceAccordionRow__buttonText__u9amQ",accordionBodyWrapper:"module-IntelligenceAccordionRow__accordionBodyWrapper__Vs2fw",accordionBody:"module-IntelligenceAccordionRow__accordionBody__EmaDk",childList:"module-IntelligenceAccordionRow__childList__QWXJk"};var _=n(8877),I=function(e){var t,n=e.id,c=e.isExpanded,h=e.title,m=e.ruleId,f=e.childRows,v=e.body,y=e.onExpandClick,g=e.variant,b=e.elementCount,I=e.rowsLoadingCount,x=n+"-expansion",N=null===(t=(0,u.u)())||void 0===t?void 0:t.childRowRefCallback,j=(0,o.useMemo)(function(){return"ui-coverage"===g?[].concat(f).sort(function(e,t){var n,r;return((null===(n=e.copyAction)||void 0===n?void 0:n.value)||"")>((null===(r=t.copyAction)||void 0===r?void 0:r.value)||"")?1:-1}):f},[f,g]),C=(0,p.FY)().getActiveElement;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,s.A)(w.accordionButtonWrapper,c&&w.isExpanded),children:(0,r.jsx)(i.Ay,{"aria-controls":x,"aria-expanded":c,className:w.accordionButton,id:n,onClick:y,size:"20",type:"button",variant:"white","data-cy":"accordion-button-"+(c?"expanded":"closed"),children:(0,r.jsxs)("div",{className:w.buttonContent,children:[(0,r.jsx)(a.e6
1o,{className:"shrink-0 mt-[2px] mr-[8px] text-gray-500 "+(c?void 0:"origin-center rotate-[-90deg]")}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:w.buttonText,children:[h,"  "]}),(null==m?void 0:m.startsWith("cy"))&&(0,r.jsxs)(l.A,{color:"gray",size:"20",className:"mt-[-2px] mr-[4px]",children:[(0,r.jsx)(_.p,{name:"technology-cypress",size:"x16",className:w.icon+" mr-[2px] opacity-70 rounded-full bg-gray-100"}),"Cypress Rule"]}),(0,r.jsx)(l.A,{className:"mt-[-2px]",color:"gray",size:"20","data-cy":"count",children:"accessibility"===g?d()("element",b,!0):f.length})]})]})})}),c&&(0,r.jsxs)("div",{className:""+w.accordionBodyWrapper,id:x,"data-cy":"accordion-body-wrapper",children:[(0,r.jsx)("div",{className:w.accordionBody,children:v}),(0,r.jsxs)("ul",{className:w.childList,children:[j.map(function(e){return(0,r.jsx)(S,{row:e,variant:g,refCallback:N,getElementFunc:C},e.key)}),I&&I>0?new Array(I).fill(0).map(function(e,t){return(0,r.jsx)(S,{row:{status:"loading",content:"",key:"loading-"+t},variant:g,refCallback:N,getElementFunc:C},t)}):null]})]})]})}},35338:(e,t,n)=>{n.d(t,{XN:()=>w,gC:()=>b,bD:()=>S});var r=n(64467),o=n(31085),a=n(14041),i=n(20053);const l={drillInWrapper:"module-IntelligenceDrillInView__drillInWrapper__wnwNC",resizer:"module-IntelligenceDrillInView__resizer__Qvjvr",sideBar:"module-IntelligenceDrillInView__sideBar__zM08B",accordionSpinner:"module-IntelligenceDrillInView__accordionSpinner__UpkPz",overlaySpinner:"module-IntelligenceDrillInView__overlaySpinner__eSdoS",column:"module-IntelligenceDrillInView__column__B68lW",rightColumn:"module-IntelligenceDrillInView__rightColumn__iBoSR",leftColumn:"module-IntelligenceDrillInView__leftColumn__c1OxU",leftColumnHeader:"module-IntelligenceDrillInView__leftColumnHeader__OWQqK",leftColumnBody:"module-IntelligenceDrillInView__leftColumnBody__fleJD",viewName:"module-IntelligenceDrillInView__viewName__p1cXW",isDragging:"module-IntelligenceDrillInView__isDragging__lw5oK"};var s=n(95735),c=n(19262),d=n(12840),u=n(54574),p=n(21627),h=n(86093);n(99180);const m={"resizable-sidebar":"ResizableWrapper-module__resizable-sidebar__EZXLJ","resizable-sidebar-resizer":"ResizableWrapper-module__resizable-sidebar-resizer__yktKu",right:"ResizableWrapper-module__right__zpFvh",left:"ResizableWrapper-module__left__n8ffI",light:"ResizableWrapper-module__light__mT9Lg",active:"ResizableWrapper-module__active__E3Ibc",dark:"ResizableWrapper-module__dark__gw4Rg"};var f=n(24838),v=function(e){var t,n=e.children,r=e.min,i=e.max,l=e.initial,s=e.drag,c=e.setIsDragging,d=e.darkTheme,u=void 0===d||d,p=e.resizerClassName,h=e.sidebarClassName,v=e.storageKeyRoot,y=function(e,t){var n=t+":"+e,r=localStorage.getItem(n),o=(0,a.useCallback)(function(e){localStorage.setItem(n,String(e))},[n]);return{baseSize:r?Number(r):null,updateBaseSize:o}}("left"===s?"right":"left",void 0===v?"test-replay:panel:size":v),g=y.baseSize,b=y.updateBaseSize,S=function(e,t){var n=(0,a.useRef)(null),r=(0,a.useState)(e),o=r[0],i=r[1],l=(0,a.useState)(!1),s=l[0],c=l[1],d=(0,a.useCallback)(function(){return c(!0)},[]),u=(0,a.useCallback)(function(){return c(!1)},[]),p=(0,a.useCallback)(function(e){if(s&&n.current){var r,o,a,l=null===(r=n.current)||void 0===r?void 0:r.getBoundingClientRect(),c="right"===t?e.clientX-(null!=(o=null==l?void 0:l.left)?o:0):(null!=(a=null==l?void 0:l.right)?a:0)-e.clientX;i(c)}},[t,s]);return(0,a.useEffect)(function(){return window.addEventListener("mousemove",p),window.addEventListener("mouseup",u),function(){window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",u)}},[p,u]),{isResizing:s,sidebarRef:n,startResizing:d,sidebarWidth:o}}(null!=(t=null!=g?g:l)?t:r,s),w=S.sidebarRef,_=S.startResizing,I=S.sidebarWidth,x=S.isResizing;(0,a.useEffect)(function(){c(x)},[x,c]),(0,a.useEffect)(function(){b(I)},[b,I]);var N=(0,o.jsx)("div",{"data-cy":"resizable-sidebar-resizer",className:(0,f.A)(m["resizable-sidebar-resizer"],m[s],p,x&&m.active),onMouseDown:_});return(0,o.jsxs)("div",{ref:w,style:{width:Math.min(i,I),minWidth:r},className:(0,f.A)(m["resizable-sidebar"],m[u?"dark":"light"],h),children:["left"===s&&N,n,"right"===s&&N]})};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}v.displayName="ResizableWrapper";var b="intelligence-drill-in-view",S=function(e){var t=e.backButton,n=e.viewIcon,r=e.viewName,a=e.viewCoverage,i=e.filterComponent,d=(0,c.Zp)();return(0,o.jsx)("div",{className:l.leftColumnHeader,"data-cy":"left-column-header",children:(0,o.jsxs)("div",{className:"flex w-[100%] justify-between",children:[(0,o.jsxs)("div",{className:"flex items-center min-w-0",children:[(0,o.jsx)(u.r,{direction:"left","data-cy":"nav-button-views-table","aria-label":t.label,href:t.to,onClick:function(e){e.preventDefault(),d(t.to,{state:{from:b}})}}),n,(0,o.jsx)("bdo",{dir:"rtl",className:l.viewName,title:r,"data-cy":"view-name",children:(0,o.jsx)("bdo",{dir:"ltr",children:r})}),void 0!==a&&(0,o.jsx)(s.A,{size:"16",color:"gray",className:"font-medium mr-[8px]",children:(0,p.Ee)(a)})]}),i]})})};S.displayName="IntelligenceViewLeftColumnHeader";var w=function(e){var t=e.viewName,n=e.viewIcon,r=e.viewCoverage,s=e.accordionsComponent,c=e.filterComponent,u=e.variant,p=e.backButton,m=e.children,f=e.showAccordionOverlay,y=e.showFullOverlay,b=a.useState(!1),w=b[0],_=b[1],I=(0,a.useRef)(null),x=(0,a.useRef)(null);(0,a.useEffect)(function(){window.scrollTo({top:0,left:0})},[]);var N=(0,a.useMemo)(function(){return function(e){return(0,h.WT)(I.current,e,64)}},[]),j=(0,a.useCallback)(function(e){x.current=e},[]),C=(0,a.useCallback)(function(){return x.current},[]),A=(0,a.useMemo)(function(){return{isElementInView:N,setActiveElement:j,getActiveElement:C}},[N,j,C]),E=y?(0,o.jsx)("div",{"data-cy":"drill-in-full-overlay",className:l.overlaySpinner,children:(0,o.jsx)(d.A,{})}):void 0,O=f?(0,o.jsx)("div",{"data-cy":"drill-in-accordion-overlay",className:l.accordionSpinner,children:(0,o.jsx)(d.A,{})}):void 0,R=w?l.isDragging:void 0,k=y?{inert:"true"}:void 0,M=f?{inert:"true"}:void 0;return(0,o.jsx)(h.WG.Provider,{value:A,children:(0,o.jsxs)("div",{className:l.drillInWrapper,children:[E,(0,o.jsx)(v,{min:250,initial:425,max:600,drag:"right",setIsDragging:_,storageKeyRoot:u+"-drill-in-view:panel:size",resizerClassName:l.resizer,sidebarClassName:l.sidebar,darkTheme:!1,children:(0,o.jsxs)("div",g({},k,{className:(0,i.A)(l.leftColumn,R),"data-cy":"drill-in-left-column",children:[(0,o.jsx)(S,{backButton:p,viewIcon:n,viewName:t,viewCoverage:r,filterComponent:c}),(0,o.jsxs)("div",{className:l.column,children:[O,(0,o.jsx)("div",g({},M,{className:l.leftColumnBody,"data-cy":"left-column-body",ref:I,children:s}))]})]}))}),(0,o.jsx)("div",g({},k,{className:(0,i.A)(l.rightColumn,R),"data-cy":"drill-in-right-column",children:m}))]})})};w.displayName="IntelligenceDrillInView"},86093:(e,t,n)=>{n.d(t,{FY:()=>i,WG:()=>a,WT:()=>o});var r=n(14041),o=function(e,t,n){if(void 0===n&&(n=0),!e||!t)return!1;var r=t.getBoundingClientRect(),o=e.getBoundingClientRect();return r.left>=o.left&&r.top-n>=o.top&&r.right<=o.right&&r.bottom<=o.bottom},a=r.createContext(null),i=function(){var e=r.useContext(a);if(!e)throw new Error("Cannot use IntelligenceDrillInViewContext outside of IntelligenceDrillInView");return e}},63112:(e,t,n)=>{n.d(t,{T:()=>a});n(98140);var r=n(14041),o=n(3082),a=function(e){var t,n,a=e.snapshotIds,i=e.preventSelectingFirstSnapshot,l=(0,o.ok)(),s=l.getSearchParam,c=l.setSearchParams,d=i?null:(t=s("snapshotId"),n=a[0],t||n),u=d?a.indexOf(d):-1,p=(0,r.useRef)(null);a.length&&!i&&(!s("snapshotId")&&a[0]?p.current=a[0]:-1===u&&(u=0,p.current=a[0])),(0,r.useEffect)(function(){var e=p.current;e&&(p.current=null,c({snapshotId:e}))});var h=r.useCallback(function(e){var t=a["previous"===e?u-1:u+1];c({snapshotId:t})},[a,u,c]);return r.useMemo(function(){return{snapshotId:d,snapshotIndex:u,handleSnapshotChange:h}},[d,u,h])}},82822:(e,t,n)=>{n.d(t,{f:()=>s});var r=n(31085),o=(n(14041),n(22884)),a=n(72384),i=n(40895),l={view:{icon:(0,r.jsx)(o.W0,{}),primaryText:"No accessibility violations in this view",secondaryText:"Please note that automated accessibility checks do not capture all possible accessibility problems. You can learn more about interpreting your accessibility report in our documentation."},run:{icon:(0,r.jsx)(o.NR,{}),primaryText:"Congratulations!",secondaryText:"No accessibility violations were detected in this run. Please note that automated accessibility checks do not capture all possible accessibility problems. You can learn more about interpreting your accessibility report in our documentation."}},s=function(e){var t=e.type,n=e.className;return(0,r.jsx)(a.O_,{fill:!0,dataCy:"a11y-100-percent",icon:l[t].icon,primaryText:l[t].primaryText,secondaryText:l[t].secondaryText,className:n,children:(0,r.jsx)(i.Ay,{variant:"white",className:"mt-[24px] hover:no-underline focus:no-underline",target:"_blank",href:"https://on.cypress.io/how-accessibility-works",children:"Learn more"})})};
1s.displayName="Accessibility100Percent"},53681:(e,t,n)=>{n.d(t,{b:()=>s,z:()=>l});var r=n(31085),o=n(14041),a=n(3082),i=o.createContext(null),l=function(e){var t=e.itemId,n=e.snapshotId,l=e.children,s=o.useState(null),c=s[0],d=s[1],u=o.useRef(null);o.useEffect(function(){u.current=(null==c?void 0:c.id)||null},[null==c?void 0:c.id]),u.current=(null==c?void 0:c.id)||null;var p=o.useCallback(function(e){d(e)},[d]),h=o.useCallback(function(e){(t&&u.current||!t&&u.current===e)&&d(null)},[t,d]),m=o.useMemo(function(){return{hoverState:c,setHoverState:d,doHoverStart:p,doHoverEnd:h}},[c,d,p,h]);return(0,a.fJ)(c,n,t,d),(0,r.jsx)(i.Provider,{value:m,children:l})};l.displayName="IntelligenceHoverManager";var s=function(){var e=o.useContext(i);if(!e)throw new Error("Cannot use IntelligenceHoverContext outside of IntelligenceView");return e}},78982:(e,t,n)=>{n.d(t,{y:()=>p});var r=n(31085),o=(n(14041),n(81648));const a="module-IntelligenceFilterButton__container__pgoyE",i="module-IntelligenceFilterButton__buttonClassContent__FWTov",l="module-IntelligenceFilterButton__buttonClassIcon__W7gff",s="module-IntelligenceFilterButton__isFiltering__Byp64";var c=n(20053),d=n(22884),u=n(95735),p=function(e){var t=e.dialogContent,n=e.placement,p=void 0===n?"bottom right":n,h=e.buttonContent,m=e.isFiltering,f=e.filterCount,v=void 0===f?0:f,y=h||v>0&&(0,r.jsx)(u.A,{size:"16",color:"indigo","data-cy":"applied-filter-count",children:v})||null,g=y?i:l,b=(0,r.jsxs)("div",{className:a,children:[(0,r.jsx)(d.e0,{className:y?"mr-[8px]":""}),y]});return(0,r.jsx)(o.A,{buttonContent:b,buttonAttrs:{"data-cy":"filter-button","aria-label":"View filters",variant:"outline-indigo",className:(0,c.A)(g,m&&s)},dialogAttrs:{"data-cy":"filter-dropdown","aria-label":"Filters",style:{width:"251px"}},dialogContent:t,popoverAttrs:{placement:p}})};p.displayName="IntelligenceFilterButton"},54574:(e,t,n)=>{n.d(t,{r:()=>u});var r=n(64467),o=n(98587),a=n(31085),i=(n(14041),n(20053)),l=n(35118);const s={up:"module-IntelligenceNavButton__up__qqpjX",down:"module-IntelligenceNavButton__down__UWPWA",right:"module-IntelligenceNavButton__right__RMElA",left:"module-IntelligenceNavButton__left__rxAnv",navButton:"module-IntelligenceNavButton__navButton__tf07L"};var c=n(40895);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var u=function(e){var t=e.direction,n=(0,o.A)(e,["direction"]);return(0,a.jsx)(c.Ay,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({"data-cy":"intelligence-nav-button"},n,{variant:"outline-light",size:"32",className:(0,i.A)(s.navButton,!n.disabled&&"bg-white"),square:!0,children:(0,a.jsx)(l.Gk,{className:s[t]})}))};u.displayName="IntelligenceNavButton"},31749:(e,t,n)=>{n.d(t,{G:()=>i});var r=n(31085),o=(n(14041),n(26938)),a=n(97155),i=function(e){var t=e.orgId,n=e.variant,i=e.className,l=e.spanClassName,s="Submit feedback";return(0,r.jsxs)(o.O,{organizationId:t,url:"https://on.cypress.io/report-issue-"+n,variant:"outline-purple",className:(i||"")+" bg-white mx-[8px] whitespace-nowrap","aria-label":s,children:[(0,r.jsx)(a.U,{"aria-hidden":!0,clipPathId:"report-issue-"+n})," ",(0,r.jsx)("span",{"aria-hidden":!0,className:"ml-[8px] text-[14px] "+l,"data-cy":"report-issue-button-label",children:s})]})};i.displayName="ReportIssueButton"},80686:(e,t,n)=>{n.d(t,{qq:()=>b,gN:()=>f,G4:()=>v});n(79683),n(69399),n(25400),n(30935),n(95790),n(66542);var r=n(31085),o=n(14041),a=n(95735),i=n(98258);const l="module-ReportStatusBadge__tooltipContainer__cZRyX",s="module-ReportStatusBadge__title__uw89O",c="module-ReportStatusBadge__description__JYxPz",d="module-ReportStatusBadge__problem__ptgt7",u="module-ReportStatusBadge__footer__FS4aC";var p=n(21627),h=n(65398),m=n.n(h),f=function(e,t,n,r){var o=[];(null!=r?r:null!=n)&&o.push(null!=n?"This run was a partial re-run of run #"+n:"This run was a partial re-run");var a=function(e){return null==t?void 0:t.filter(function(t){return t.status===e})},i=a("CANCELLED"),l=a("TIMEDOUT"),s=a("MISSING_PROTOCOL_DATA"),c=a("DISCOVERY_PROCESSING_FAILED");if(null==i?void 0:i.length){var d=m()("spec",i.length,!0);o.push(e?"The run was canceled due to auto-cancellation and "+d+" did n
1ot run.":"The run was manually canceled and "+d+" did not run.")}return(null==l?void 0:l.length)&&o.push("The run timed out and "+m()("spec",l.length,!0)+" did not run."),(null==s?void 0:s.length)&&o.push("Test Replay data failed to upload for "+m()("spec",s.length,!0)+"."),(null==c?void 0:c.length)&&o.push("Cypress failed to process "+m()("spec",c.length,!0)+"."),{issues:o,showHelpText:!!(s&&(null==s?void 0:s.length)>0||c&&(null==c?void 0:c.length)>0)}},v=function(e,t,n){var o="If the problem persists, please report an issue.";return e.length?1===(null==e?void 0:e.length)?(0,r.jsxs)("p",{className:c,children:[n?n(e[0]):e[0]," ",t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),o]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:c,children:"The following problems occurred:"}),(0,r.jsx)("ul",{children:null==e?void 0:e.map(function(e,t){return(0,r.jsx)("li",{className:d,children:n?n(e):e},"issue-"+t)})}),(0,r.jsx)("p",{className:u,children:o})]}):null},y=function(e){var t=e.variant,n=e.runCancelOnFailure,o=e.reportIssues,a=e.anchorBuildNumber,i=e.isRerun,c=f(n,o,a,i),d=c.issues,u=c.showHelpText;return(0,r.jsxs)("div",{className:l,"data-cy":"partial-report-tooltip",children:[(0,r.jsxs)("h3",{className:s,children:[(0,p.Zi)(t,{short:!0})," has a partial report"]}),v(d,u)]})};y.displayName="PartialReportTooltipContent";var g=function(e){var t=e.reportStatus;return(0,r.jsx)("div",{className:"flex",children:t&&(0,r.jsx)(a.A,{color:"orange",size:"20",className:"ml-4 flex-none","data-cy":"report-status-badge",children:t})})};g.displayName="Badge";var b=function(e){var t=e.variant,n=e.discoveryStatus,a=e.runCancelOnFailure,l=e.reportIssues,s=e.anchorBuildNumber,c=e.isRerun,d=(0,o.useMemo)(function(){if(c)return"Partial report";var e="PROCESSED_WITH_ERRORS"===n,t=null==l?void 0:l.some(function(e){return["MISSING_PROTOCOL_DATA","TIMEDOUT","CANCELLED","DISCOVERY_PROCESSING_FAILED"].includes(e.status)});return e&&t?"Partial report":e?"Processed with errors":void 0},[c,n,l]);return"Partial report"===d?(0,r.jsx)(i.A,{color:"dark",popper:(0,r.jsx)(y,{variant:t,runCancelOnFailure:a,reportIssues:l,anchorBuildNumber:s,isRerun:c}),children:(0,r.jsx)(g,{reportStatus:d})}):(0,r.jsx)(g,{reportStatus:d})};b.displayName="ReportStatusBadge"},81648:(e,t,n)=>{n.d(t,{A:()=>f,d:()=>m});var r=n(64467),o=n(31085),a=n(14041),i=n(8213),l=n(49039),s=n(82153),c=n(20053),d=n(40895),u=n(88781);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=function(e){var t,n=e.buttonAttrs,r=e.buttonContent,p=e.dialogAttrs,m=e.dialogContent,f=e.dialogTriggerAttrs,v=e.popoverAttrs,y=e.closeOnBlur,g=void 0===y||y,b=(null==n?void 0:n.variant)||"outline-light",S=(0,a.useState)(null!=(t=null==v?void 0:v.isOpen)&&t),w=S[0],_=S[1];return a.useEffect(function(){void 0!==(null==v?void 0:v.isOpen)&&_(v.isOpen)},[null==v?void 0:v.isOpen]),(0,o.jsxs)(i.zM,{onOpenChange:function(e){var t;null==f||null===(t=f.onOpenChange)||void 0===t||t.call(f,e)},children:[(0,o.jsx)(l.$,h({"data-cy":"intelligence-menu-button"},n,{onPress:function(e){var t;_(!0),null==n||null===(t=n.onPress)||void 0===t||t.call(n,e)},className:(0,c.A)(d.bl,d.uR[b],u.A.menuButton,null==n?void 0:n.className,"text-indigo-600",w&&(null==n?void 0:n.classNameIsOpen)),children:r})),(0,o.jsx)(s.A,h({},v,{className:(0,c.A)(u.A.popover+" arrow",null==v?void 0:v.className),isOpen:w,onOpenChange:function(e){var t;null==v||null===(t=v.onOpenChange)||void 0===t||t.call(v,e),g&&_(e)},children:(0,o.jsx)(i.lG,h({"data-cy":"intelligence-menu-dialog"},p,{className:(0,c.A)(u.A.menuDialog,null==p?void 0:p.className),children:function(e){var t=e.close;if("function"==typeof m){return m({close:function(){t(),_(!1)}})}return m}}))}))]})};m.displayName="IntelligenceMenu";const f=m},2550:(e,t,n)=>{n.d(t,{t:()=>S});n(95790),n(85146);var r=n(31085),o=(n(14041),n(20467)),a=n(22884),i=n(3082);const l="module-SearchParamFilterMenu__form__axXGQ",s="module-SearchParamFilterMenu__formTitle__BwI8W",c="module-SearchParamFilterMenu__formSubtitle__RXC5G",d="module-SearchParamFilterMenu__countSwitchDesc__FLpQy",u="module-SearchParamFilterMenu__countSwitchRow__adMst",p="module-SearchParamFilterMenu__countSwitchLabel__Cbssj",h="module-SearchParamFilterMenu__countSwitchIcon__qqjsC",m="module-SearchParamFilterMenu__countSwitchTag__rliHr",f="module-SearchParamFilterMenu__switch__PSZ4t";var v=n(17056),y=(n(79683),n(69399),n(68450),n(25400),n(30935),n(54),n(68291),n(95735)),g=function(e){var t=e.value,n=e.icon,a=e.name,i=e.setSearchParams,l=e.searchParamKey,s=e.filters,c=e.description,v=s[l],g=v.appliedKeys,b=v.counts,S=["true","false"].includes(t),w=b[t]||0,_=g.includes(t),I=l+"-"+a,x=I+"-desc",N=(0,r.jsxs)("div",{"data-cy":l+"-filter-"+t,className:u,children:[(0,r.jsxs)("label",{className:p,htmlFor:I,children:[n&&(0,r.jsx)("div",{"aria-hidden":!0,
1className:h,children:n}),(0,r.jsx)("div",{children:a}),(0,r.jsx)(y.A,{"data-cy":l+"-filter-count",size:"16",color:"gray",className:m,children:w})]}),(0,r.jsx)("div",{className:f,children:(0,r.jsx)(o.dO,{"aria-describedby":c?x:void 0,id:I,size:"x32","data-cy":l+"-filter-toggle",checked:_,onChange:function(){var e,n;n=S?!_:(_?g.filter(function(e){return e!==t}):[].concat(g,[t])).join(","),i(((e={})[l]=n,e))}})})]});return c?(0,r.jsxs)(r.Fragment,{children:[N,(0,r.jsx)("div",{"aria-hidden":!0,className:d,id:x,children:c})]}):N},b=function(e){var t=e.title,n=e.subtitle;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:s,children:t}),n&&(0,r.jsx)("div",{className:c,children:n})]})};b.displayName="FormHeading";var S=function(e){var t=e.filters,n=e.localStorageKey,s=e.statusVariant,c=n?{localStorageKey:n}:void 0,d=(0,i.ok)(c).setSearchParams,u="overview-table"===s?v.pr:v.SM;return(0,r.jsxs)("div",{"data-cy":"search-param-filter-menu",children:["filterBySnapshot"in t&&(0,r.jsxs)(o.lV,{className:l,children:[(0,r.jsx)(b,{title:t.filterBySnapshot.title,subtitle:t.filterBySnapshot.subtitle}),(0,r.jsx)(g,{value:"true",name:"Only on this snapshot",filters:t,setSearchParams:d,searchParamKey:"filterBySnapshot"})]}),"impact"in t&&(0,r.jsxs)(o.lV,{className:l,children:[(0,r.jsx)(b,{title:t.impact.title,subtitle:t.impact.subtitle}),v.qB.map(function(e){var n=e.name,o=e.value;return(0,r.jsx)(g,{value:o,icon:(0,a.y1)(o),name:n,filters:t,setSearchParams:d,searchParamKey:"impact"},o)})]}),"ruleset"in t&&(0,r.jsxs)(o.lV,{className:l,children:[(0,r.jsx)(b,{title:t.ruleset.title,subtitle:t.ruleset.subtitle}),v.ie.map(function(e){var n=e.name,o=e.value;return(0,r.jsx)(g,{filters:t,value:o,name:n,setSearchParams:d,searchParamKey:"ruleset"},o)})]}),"status"in t&&(0,r.jsxs)(o.lV,{className:l,children:[(0,r.jsx)(b,{title:t.status.title}),u.map(function(e){var n=e.name,o=e.value;return(0,r.jsx)(g,{description:"other"===o?'"Other" includes ignored Elements and Rules, 100% passing Views and Rules, and inapplicable Rules.':void 0,filters:t,icon:(0,a.Tn)(o),value:o,name:n,setSearchParams:d,searchParamKey:"status"},o)})]})]})};S.displayName="SearchParamFilterMenu"},45042:(e,t,n)=>{n.d(t,{TW:()=>Yn});n(96656),n(95790),n(21555),n(33111),n(94356),n(45993);var r=n(64467),o=n(31085),a=n(14041);const i="module-IntelligenceSnapshotView__snapshotContainer__xpKcb",l="module-IntelligenceSnapshotView__snapshotIframeContainer__j5bUh",s="module-IntelligenceSnapshotView__loadingSpinner__cfoVo",c="module-IntelligenceSnapshotView__footerContainer__OAsAq";var d=n(12840),u=n(15797),p=n(43144),h=(n(38415),n(1569),n(24493),n(74874),n(30935),n(54),n(96104),n(66542),n(96152),n(29416),n(5858),n(34237),n(68291),n(22892),n(78527),n(54756)),m=n.n(h),f=(n(68989),n(10467)),v=(n(93831),n(30488),n(7680),n(24586)),y=function(e){return!!e&&e.includes("/replay_asset_discovery/")},g=function(e){return!!e&&(e.includes("data:")||e.includes("blob:"))},b={},S=function(e){if(!b[e]&&"undefined"!=typeof window&&"production"!==window.env){var t;b[e]=!0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).info.apply(t,r)}};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){return"data-cy-replay-"+e}var I={href:function(e,t){return"LINK"!==t&&"IMAGE"!==t||g(e)||y(e)?"href":_("href")},src:function(e,t){return"IFRAME"===t?_("src"):"src"},srcset:function(e){return g(e)||y(e)?"srcset":_("srcset")},content:function(e,t){return"META"===t?_("content"):"content"},integrity:function(){return _("integrity")},autofocus:function(){return _("autofocus")},oncanplay:function(){return _("oncanplay")},oncanplaythrough:function(){return _("oncanplaythrough")},ondurationchange:function(){return _("ondurationchange")},onemptied:function(){return _("onemptied")},onended:function(){return _("onended")},onerror:function(){return _("onerror")},onloadeddata:function(){return _("onloadeddata")},onloadedmetadata:function(){return _("onloadedmetadata")},onloadstart:function(){return _("onloadstart")},onpause:function(){return _("onpause")},onplay:function(){return _("onplay")},onplaying:function(){return _("onplaying")},onprogress:function(){return _("onprogress")},onratechange:function(){return _("onratechange")},onreadystatechange:function(){return _("onreadystatechange")},onseeked:function(){return _("onseeked")},onseeking:function(){return _("onseeking")},onstalled:function(){return _("onstalled")},onsuspend:function(){return _("onsuspend")},ontimeupdate:function(){return _("ontimeupdate")},onvolumechange:function(){return _("onvolumechange")},onwaiting:function(){return _("onwaiting")},onclick:function(){return _("onclick")},ondblclick:function(){return _("ondblclick")},ondrag:function(){return _("ondrag")},ondragend:function(){return _("ondragend")},ondragenter:function(){return _("ondragenter")},ondragleave:function(){return _("ondragleave")},ondragover:function(){return _("ondragover")},ondragstart:function(){return _("ondragstart")},ondrop:function(){return _("ondrop")},onmousedown:function(){return _("onmousedown")},onmousemove:function(){return _("onmousemove")},onmouseout:function(){return _("onmouseout")},onmouseover:function(){return _("onmouseover")},onmouseup:function(){return _("onmouseup")},onmousewheel:function(){return _("onmousewheel")},onscroll:function(){return _("onscroll")},onkeydown:function(){return _("onkeydown")},onkeypress:function(){return _("onkeypress")},onkeyup:function(){return _("onkeyup")},onblur:function(){return _("onblur")},onchange:function(){return _("onchange")},oncontextmenu:function(){return _("oncontextmenu")},onfocus:function(){return _("onfocus")},onformchange:function(){return _("onformchange")},onforminput:function(){return _("onforminput")},oninput:function(){return _("oninput")},oninvalid:function(){return _("oninvalid")}
1,onreset:function(){return _("onreset")},onselect:function(){return _("onselect")},onsubmit:function(){return _("onsubmit")},onafterprint:function(){return _("onafterprint")},onbeforeprint:function(){return _("onbeforeprint")},onbeforeunload:function(){return _("onbeforeunload")},onhaschange:function(){return _("onhaschange")},onload:function(){return _("onload")},onmessage:function(){return _("onmessage")},onoffline:function(){return _("onoffline")},onpagehide:function(){return _("onpagehide")},onpageshow:function(){return _("onpageshow")},onpopstate:function(){return _("onpopstate")},onredo:function(){return _("onredo")},onresize:function(){return _("onresize")},onstorage:function(){return _("onstorage")},onundo:function(){return _("onundo")},onunload:function(){return _("onunload")}},x=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){(0,v.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},I,{src:function(e){return g(e)||y(e)?"src":_("src")},srcset:function(e){return g(e)||y(e)?"srcset":_("srcset")},href:function(e,t,n){return"BASE"===t&&!(null==n?void 0:n.asIntelligenceSnapshot)||("LINK"===t||"IMAGE"===t)&&g(e)||"USE"===t||y(e)?"href":_("href")},allow:function(){return _("allow")},rel:function(e,t){return"LINK"===t&&(null==e?void 0:e.toLowerCase().includes("stylesheet"))?"rel":_("rel")},data:function(e,t){return"OBJECT"===t?_("data"):"data"},controls:function(e,t){return"VIDEO"===t?_("controls"):"controls"},srcdoc:function(){return _("srcdoc")}}),N=function(e,t,n,r,o){try{var a,i="undefined"!=typeof window&&window.IN_DISCOVERY?I[t]:x[t];if(r){var l,s=t.startsWith("xlink"),c=s||"href"===t,d=s?"http://www.w3.org/1999/xlink":null,u=i?i(n,null===(l=e.localName)||void 0===l?void 0:l.toUpperCase(),o):t,p=n;return c&&n.includes("#")&&!n.includes("blob")&&(p="#"+n.split("#").pop()),e.setAttributeNS(d,u,p),p!==n&&e.setAttribute(_(t),n),u}var h=i?i(n,null===(a=e.localName)||void 0===a?void 0:a.toUpperCase(),o):t;return e.setAttribute(h,n),h}catch(e){return void S(t+"_"+n,"Error trying to add invalid attribute ["+t+"] to Element")}},j=(n(78370),n(9098),"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjQ5MyIgdmlld0JveD0iMCAwIDUwNCA0OTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgo8cmVjdCB4PSIwLjUiIHk9IjAuNSIgd2lkdGg9IjUwMyIgaGVpZ2h0PSI0OTIiIHJ4PSIzLjUiIGZpbGw9InVybCgjcGF0dGVybjApIiBzdHJva2U9IiNFMUUzRUQiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuMCIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHdpZHRoPSIwLjEzNDkyMSIgaGVpZ2h0PSIwLjEzNzkzMSI+Cjx1c2UgeGxpbms6aHJlZj0iI2ltYWdlMF81NjE1XzM3MDEiIHRyYW5zZm9ybT0ic2NhbGUoMC4wMDA0OTYwMzIgMC4wMDA1MDcwOTkpIi8+CjwvcGF0dGVybj4KPGltYWdlIGlkPSJpbWFnZTBfNTYxNV8zNzAxIiB3aWR0aD0iMjcyIiBoZWlnaHQ9IjI3MiIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFSQUFBQUVRQ0FZQUFBQjRDaXNWQUFBQUNYQklXWE1BQUN4TEFBQXNTd0dsUFphcEFBQUFBWE5TUjBJQXJzNGM2UUFBQUFSblFVMUJBQUN4and2OFlRVUFBQWx0U1VSQlZIZ0I3ZGJaY2gyM0ZZWlJpSzY0a3ZkL1dGZml4STdRbG1SS092aDVoaDR3ckhVbmtxZWJCUGIrU3AvKy9Ld3M0by9QZitsdnYvMjNMUFFuODRCZi8vRkwrZlhYdDhMOWxqa3Q4U0FSaitjc2NXTGlRU0llejV2KzFNU0RSRHhlTS9YSmlRZUplTHh1MnRNVER4THgyTWVVSnlnZUpPS3huK2xPVVR4SXhHTmZVNTJrZUpDSXgvNm1PVTN4SUJHUFkweHhvdUpCSWg3SEdmNVV4WU5FUEk0MTlNbUtCNGw0SEcvWTB4VVBFdkU0eDVBbkxCNGs0bkdlNFU1WlBFakU0MXhEbmJSNGtJakgrWVk1YmZFZ0VZOXJESEhpNGtFaUh0ZnAvdFRGZzBROHJ0WDF5WXNIaVhoY3I5dlRGdzhTOGVoRGx6Y2dIaVRpMFkvdWJrRThTTVNqTDEzZGhIaVFpRWQvdXJrTjhTQVJqejUxY1NQaVFTSWUvYnI4VnNTRFJEejZkdW5OaUFlSmVQVHZzdHNSRHhMeEdNTWxOeVFlSk9JeGp0TnZTVHhJeEdNc3A5NlVlSkNJeDNoT3V5M3hJQkdQTVoxeVkrSkJJaDdqT3Z6V3hJTkVQTVoyNk0ySkI0bDRqTyt3MnhNUEV2R1l3eUUzS0I0azRqR1AzVzlSUEVqRVl5NjczcVI0a0lqSGZIYTdUZkVnRVk4NTdYS2o0a0VpSHZONitWYkZnMFE4NXZiU3pZb0hpWGpNNytuYkZROFM4VmpEVXpjc0hpVGlzWTZIYjFrOFNNUmpMUS9kdEhpUWlNZDY3cjV0OFNBUmp6WGRkZVBpUVNJZTYvcncxc1dEUkR6V0ZtOWVQRWpFZytidGl3ZUplRkRkbkFEeElCRVB2dnBwQ3NTRFJEeDQ3N3RKRUE4UzhlQkgzNlpCUEVqRWcxdTJpUkFQRXZHZzVVMDhTTVNENUUwOGFCRVBrbi8vNTMvbFRUeTRSVHhJYWp4Ky8vMlBZa0w0aVhpUWZJMUhaVXI0am5pUXZJOUhaVkw0Ump4SWZveEhaVnJZaUFmSnJYaFVKZ2J4SUdyRm96STFpeE1Qa2hTUHl1UXNURHhJUG9wSFpYb1dKUjRrOThTak1rRUxFZytTZStOUm1hTEZpQWZKSS9Hb1ROSkN4SVBrMFhoVXBta1I0a0h5VER3cUU3VUE4U0I1Tmg2VnFacWNlSkM4RW8vS1pFMU1QRWhlalVkbHVpWWxIaVI3eEtNeVlSTVNENUs5NGxHWnNzbUlCOG1lOGFoTTJrVEVnMlR2ZUZTbWJSTGlRWEpFUENvVE53SHhJRGtxSHBXcEc1eDRrQndaajhya0RVdzhTSTZPUjJYNkJpVWVKR2ZFb3pLQkF4SVBrclBpVVpuQ3dZZ0h5Wm54cUV6aVFNU0Q1T3g0VktaeEVPSkJja1U4S2hNNUFQRWd1U29lbGFuc25IaVFYQm1QeW1SMlREeElybzVIWlRvN0pSNGtQY1NqTXFFZEVnK1NYdUpSbWRMT2lBZEpUL0dvVEdwSHhJT2t0
1M2hVcHJVVDRrSFNZendxRTlzQjhTRHBOUjZWcWIyWWVKRDBISS9LNUY1SVBFaDZqMGRsZWk4aUhpUWp4S015d1JjUUQ1SlI0bEdaNHBPSkI4bEk4YWhNOG9uRWcyUzBlRlNtK1NUaVFUSmlQQ29UZlFMeElCazFIcFdwUHBoNGtJd2NqOHBrSDBnOFNFYVBSMlc2RHlJZUpEUEVvekxoQnhBUGtsbmlVWm55bllrSHlVenhxRXo2anNTRFpMWjRWS1o5SitKQk1tTThLaE8vQS9FZ21UVWVsYWwva1hpUXpCeVB5dVMvUUR4SVpvOUhaZnFmSkI0a0s4U2pzZ0ZQRUErU1ZlSlIyWUlIaVFmSlN2R29iTUlEeElOa3RYaFV0dUZPNGtHeVlqd3FHM0VIOFNCWk5SNlZyZmlBZUpDc0hJL0taZ1RpUWJKNlBDcmIwU0FlSk9MeEZ4dHlnM2lRaU1mZmJNa1B4SU5FUEw1blU5NFJEeEx4K0psdCtVSThTTVRqTmh0VHhJTk1QTnFXM3hyeElCR1BiT25ORVE4UzhmallzdHNqSGlUaWNaOGxOMGc4U01UamZzdHRrWGlRaU1kamx0b2s4U0FSajhjdHMwM2lRU0llejFsaW84U0RSRHllTi8xV2lRZUplTHhtNnMwU0R4THhlTjIwMnlVZUpPS3hqeWszVER4SXhHTS8wMjJaZUpDSXg3Nm0yalR4SUJHUC9VMnpiZUpCSWg3SG1HTGp4SU5FUEk0ei9OYUpCNGw0SEd2b3pSTVBFdkU0M3JEYkp4NGs0bkdPSVRkUVBFakU0enpEYmFGNGtJakh1WWJhUlBFZ0VZL3pEYk9ONGtFaUh0Y1lZaVBGZzBROHJ0UDlWb29IaVhoY3Erdk5GQThTOGJoZXQ5c3BIaVRpMFljdU4xUThTTVNqSDkxdHFYaVFpRWRmdXRwVThTQVJqLzUwczYzaVFTSWVmZXBpWThXRFJEejZkZm5XaWdlSmVQVHQwczBWRHhMeDZOOWwyeXNlSk9JeGhrczJXRHhJeEdNY3AyK3hlSkNJeDFoTzNXVHhJQkdQOFp5MnplSkJJaDVqT21XanhZTkVQTVoxK0ZhTEI0bDRqTzNRelJZUEV2RVkzMkhiTFI0azRqR0hRelpjUEVqRVl4NjdiN2w0a0lqSFhIYmRkUEVnRVkvNTdMYnQ0a0VpSG5QYVplUEZnMFE4NXZYeTFvc0hpWGpNN2FYTkZ3OFM4WmpmMDlzdkhpVGlzWWFuQ2lBZUpPS3hqb2NySUI0azRyR1doMG9nSGlUaXNaNjdheUFlSk9LeHBydUtJQjRrNHJHdUQ2c2dIaVRpc2JaWUJ2RWdFUSthZFJBUEV2R2d1bGtJOFNBUkQ3NzZxUkxpUVNJZXZQZGRLY1NEUkR6NDBiZGFpQWVKZUhETFZnenhJQkVQV3Q3RWcwUThhSGw3KzFRKy9mbFpnUnZFZzVZYWozLzk4NWZpdng3Y0pCNjBmSTNIcDArZkJJU2ZpUWN0NytPeC9idkFPK0pCeTQveDJMNVc0QXZ4b09WV1BMYXZGeWppUVZzckh0djNDc3NURDFwU1BMYnZGNVltSHJSOEZJL3Rad3JMRWc5YTdvbkg5bk9GSllrSExmZkdZL3Zad25MRWc1Wkg0ckg5ZkdFcDRrSExvL0hZUGxOWWhualE4a3c4dHM4VmxpQWV0RHdiaisyemhlbUpCeTJ2eEdQN2ZHRnE0a0hMcS9IWW5sR1lsbmpRc2tjOHR1Y1VwaVFldE93VmorMVpoZW1JQnkxN3htTjdYbUVxNGtITDN2SFlubG1ZaG5qUWNrUTh0dWNXcGlBZXRCd1ZqKzNaaGVHSkJ5MUh4bU43Zm1GbzRrSEwwZkhZM2xFWWxualFja1k4dHZjVWhpUWV0SndWaisxZGhlR0lCeTFueG1ON1gyRW80a0hMMmZIWTNsa1lobmpRY2tVOHR2Y1doaUFldEZ3VmorM2RoZTZKQnkxWHhtTjdmNkZyNGtITDFmSFlmb2RDdDhTRGxoN2lzZjBlaFM2SkJ5Mjl4R1A3WFFyZEVROWFlb3BISlNDZEVROWFlb3RISlNBZEVROWFlb3hISlNDZEVBOWFlbzFISlNBZEVBOWFlbzVISlNBWEV3OWFlbzlISlNBWEVnOWFSb2hISlNBWEVROWFSb2xISlNBWEVBOWFSb3BISlNBbkV3OWFSb3RISlNBbkVnOWFSb3hISlNBbkVROWFSbzFISlNBbkVBOWFSbzVISlNBSEV3OWFSbzlISlNBSEVnOWFab2hISlNBSEVROWFab2xISlNBSEVBOWFab3BISlNBN0V3OWFab3RISlNBN0VnOWFab3hISlNBN0VROWFabzFISlNBN0VBOWFabzVISlNBdkVnOWFabzlISlNBdkVBOWFWb2hISlNCUEVnOWFWb2xISlNCUEVBOWFWb3BISlNBUEVnOWFWb3RISlNBUEVBOWFWb3hISlNCM0VnOWFWbzFISlNCM0VBOWFWbzVISlNBZkVBOWFWbzlISlNDQmVOQWlIbjhSa0FieG9FVTgvaVlnTjRnSExlTHhQUUg1Z1hqUUloNC9FNUIzeElNVzhiaE5RTDRRRDFyRW8wMUFpbmpRSmg3WjhnRVJEMXJFNDJOTEIwUThhQkdQK3l3YkVQR2dSVHp1dDJSQXhJTVc4WGpNY2dFUkQxckU0M0gvQjdGTTZHTzF4QmhWQUFBQUFFbEZUa1N1UW1DQyIvPgo8L2RlZnM+Cjwvc3ZnPgo="),C=function(e){if(e)return e.startsWith("http")||e.startsWith("/")||e.startsWith(".")?e:"./"+e},A=(n(37729),n(39170),n(25152),n(12695)),E=new Map,O="undefined"!=typeof window&&window.IN_DISCOVERY,R=function(e){var t=e.asset,n=e.inlineBlobUrls,r=void 0!==n&&n;if(!t)return"";var o=E.get(t.hash);if(o)return o;if(!O&&r&&t.body){var a=t.isBase64?A.o4.toUint8Array(t.body):t.body,i=new Blob([a],{type:t.mimeType});o=URL.createObjectURL(i)}else o=t.proxyUrl?t.proxyUrl:function(e){return e?"data:"+e.mimeType+";base64,"+(e.isBase64?e.body:A.o4.encode(e.body)):""}(t);return E.set(t.hash,o),o};function k(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var T=function(e){var t=e.attrHash,n=e.urls,r=e.domNetworkAssets;if(t){var o,a=null===(o=r.urlHashMap)||void 0===o?void 0:o[t];if(a)return a}for(var i,l=k(n);!(i=l()).done;){var s,c=i.value;if(null!=c){var d=null===(s=r.pathHash)||void 0===s?void 0:s[c];if(d)return d}}},P=function(e){return e?e.split(",").map(function(e){return e.trim()||void 0}):[]},D=(n(85146),n(79716)),U=n(33481),V=new Map;function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?F(Object(n),!0).forEach(function(t){(0,v.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var H=[":focus-within",":focus-visible",":focus"],W=function(e,t,n,r,o,a){var i=e.value;if(!i.startsWith("data")&&!i.startsWith("#")){var l,s=r.resolve(o,t),c=r.resolveAgainst(i,s,t);if(c&&c!==s){var d=n.domNetworkAssets.pathHash[c];if(d){var u=(l=d,E.get(l));if(u)e.value=u;else{var p,h,m=n.domNetworkAssets.hashData[d];if(!m||(null==m?void 0:m.isBase64))p=R({asset:m,inlineBlobUrls:a});else p=R({asset:B({},m,{isBase64:!1,body:G(null!=(h=m.body)?h:"",c,z({doc:t,networkResources:n,hrefResolver:r,inlineBlobUrls:null!=a&&a}),d,!1)}),inlineBlobUrls:a});e.value=p}}else if(y(i))e.value=i;else{S(c,"Failed to find response for ("+c+")");e.value="data:;base64"}}}},L=function e(t){return"PseudoClassSelector"===t.type&&H.includes(":"+t.name)?t={type:"AttributeSelector",name:{type:"Identifier",name:"data-cy-replay-"+t.name},matcher:null,value:null,flags:null}:"children"in t&&t.children&&(t.children=t.children.map(e)),t},Z=function(e){var t=e.node,n=e.item,r=e.list,o=L((0,D.o)(t));r.insertData(o,n)},z=function(e){return function(t){var n=t.node,r=t.baseHref;return W(n,e.doc,e.networkResources,e.hrefResolver,r,e.inlineBlobUrls)}},G=function(e,t,n,r,o){if(void 0===o&&(o=!1),!e)return"";if("string"!=typeof e)return e;var a,i=r&&V.get(r);if(i)return i;if(!((a=e).includes("@import")||a.includes("url(")||H.some(function(e){return a.includes(e)})))return r&&V.set(r,e),e;var l=(0,U.qg)(e,{context:o?"declarationList":"stylesheet"}),s=null;(0,U.GG)(l,{enter:function(e,r,o){var a,i=this;switch(e.type){case"Url":var l;if(i.atrulePrelude)if("import"!==(null===(l=i.atrule)||void 0===l?void 0:l.name)||i.function)break;n({node:e,baseHref:t});break;case"String":i.atrulePrelude&&"import"===(null===(a=i.atrule)||void 0===a?void 0:a.name)&&!i.function&&n({node:e,baseHref:t});break;case"Selector":o&&r&&!s&&function(e){return!!(0,U.I6)(e,function(e){return"PseudoClassSelector"===e.type&&H.includes(":"+e.name)})}(e)&&(s=e,Z({node:e,list:o,item:r}))}},leave:function(e){e===s&&(s=null)}});var c=(0,U.cM)(l);return r&&V.set(r,c),c},J=(n(68450),n(25400),n(14295),n(52225)),Q=n.n(J),q=function(){var e=this;(0,v.A)(this,"frameToDocumentMap",void 0),(0,v.A)(this,"getDocumentFrameId",function(e){var t,n,r,o;return e&&((null===(t=e.defaultView)||void 0===t||null===(n=t.frameElement)||void 0===n?void 0:n.getAttribute("data-cy-replay-frame-id"))||(null===(r=e.defaultView)||void 0===r||null===(o=r.frameElement)||void 0===o?void 0:o.getAttribute("data-cy-replay-pending-iframe")))||"parent-frame"}),(0,v.A)(this,"getOrCreateDocumentForFrame",function(t){var n=e.frameToDocumentMap.get(t);if(n)return n;var r=document.implementation.createHTMLDocument(),o=r.createElement("base");return r.head.appendChild(o),e.frameToDocumentMap.set(t,r),e.resolveCache[t]={},r}),(0,v.A)(this,"setCurrentLocation",function(t,n,r){void 0===r&&(r={isNavigationEvent:!1});var o=e.getOrCreateDocumentForFrame(t);try{var a=new(Q())(n);(null==o?void 0:o.querySelector("base")).setAttribute("href",""+a.origin+a.pathname),r.isNavigationEvent&&(e.resolveCache[t]={})}catch(e){S(t+"-"+n,"Failed to set current location to "+n+" for frame "+t)}}),(0,v.A)(this,"getFrameLocation",function(t){var n,r=e.getOrCreateDocumentForFrame(t);return(null==r||null===(n=r.querySelector("base"))||void 0===n?void 0:n.getAttribute("href"))||""}),(0,v.A)(this,"resolveCache",void 0),(0,v.A)(this,"resolve",function(t,n){var r,o;if(t.startsWith("data:"))return t;var a=e.getDocumentFrameId(n),i=e.getFrameLocation(a)+"\0"+t;if(null===(r=e.resolveCache)||void 0===r||null===(o=r[a])||void 0===o?void 0:o[i])return e.resolveCache[a][i];var l=e.getOrCreateDocumentForFrame(a).createElement("a");l.setAttribute("href",t);var s,c=new(Q())(l.href);return l.remove(),c.origin&&"null"!==c.origin?s=c.origin:c.protocol?(s=c.protocol+"//",c.host&&(s+=c.host)):s="",s+=""+c.pathname+c.query,e.resolve
1Cache[a][i]=s,s}),(0,v.A)(this,"resolveAgainst",function(t,n,r){var o=e.getDocumentFrameId(r),a=e.getOrCreateDocumentForFrame(o).querySelector("base").getAttribute("href"),i=e.resolve(n,r);e.setCurrentLocation(o,i);var l=e.resolve(t,r);return e.setCurrentLocation(o,a||""),l}),this.frameToDocumentMap=new Map,this.resolveCache={}},Y=(n(44436),n(98140),n(78366),n(94298),n(95372),n(30414)),K=n(80982),X=n(45250),$=n.n(X),ee=(n(84766),n(98304),function(e){var t=function(t){return t.test(e)};return t(/edg/i)?"Edge":t(/chrome|chromium|crios/i)?"Chrome":t(/firefox|fxios/i)?"Firefox":t(/safari/i)?"Safari":void 0}),te=function(e){var t=e.cssAction,n=e.errorFallbackFn;try{t()}catch(e){if(n)try{n()}catch(e){K.Cp(e)}var r=ee(navigator.userAgent);if("SyntaxError"===e.name&&(e.message.includes("Failed to parse")||e.message.includes("An invalid or illegal string was specified")||e.message.includes("The string did not match the expected pattern"))&&("Firefox"===r||"Safari"===r))return;K.Cp(e)}},ne=function(e){var t,n,r=e.ctx,o=e.id,a=e.index,i=e.styleSheetId,l=e.styleSheetText,s=e.styleSheetHref;return G(l,s||"",z({doc:r.iframeRef.current.contentDocument,networkResources:r.networkResources,hrefResolver:r.hrefResolver.current,inlineBlobUrls:null!=(t=null===(n=r.config)||void 0===n?void 0:n.inlineBlobUrls)&&t}),o+"_"+i+(a?"_"+a:""),!1)},re=function(e){var t,n=e.ctx,r=e.id,o=e.index,a=e.cssText,i=e.styleSheetElement,l=e.frameId,s=e.styleSheetId,c=x.href;return c&&(t=null==i?void 0:i.getAttribute(c())),ne({ctx:n,id:r,index:o,styleSheetId:s,styleSheetText:a,styleSheetHref:t||n.hrefResolver.current.getFrameLocation(l)||""})},oe=function e(t,n){return n.length>1?e(t.cssRules[n[0]],n.slice(1)):t},ae=function e(t,n){return n.length>1?e(t.cssRules[n[0]],n.slice(1)):null==t?void 0:t.cssRules[n[0]]},ie=function(e){var t,n,r=e.ctx,o=e.payload;if(o.elementId)(n=r.nodeMap.current.getNode(o.elementId))&&n.sheet&&(t=n.sheet);else if(o.styleSheetId){var a;t=null===(a=r.nodeMap.current.getAdoptedStylesheetForModification(o.styleSheetId))||void 0===a?void 0:a.sheet}if(t)return{sheet:t,element:n}},le=function(e){var t=e.ctx,n=e.eventId,r=e.cssReplacedEventPayload,o=e.sync,a=ie({ctx:t,payload:r});if(a){var i=re({ctx:t,id:n,styleSheetElement:a.element,cssText:o?r.replacementSync:r.replacement,frameId:r.frameId,styleSheetId:r.styleSheetId});te({cssAction:function(){o?a.sheet.replaceSync(i):a.sheet.replace(i)}}),t.nodeMap.current.queueAdoptedStylesheetUpdate(r.frameId)}},se=function(){function e(){(0,v.A)(this,"map",new Map)}var t=e.prototype;return t.set=function(e,t){var n=this.map.get(e);n||(n=[],this.map.set(e,n)),n.push(t)},t.get=function(e){return this.map.get(e)},t.forEach=function(e){this.map.forEach(function(t,n){e(n,t)})},t.delete=function(e){this.map.delete(e)},e}();function ce(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ue="/* Cypress Test Replay */",pe="__cy_tr_overrides";function he(e){e.querySelectorAll("style[data-cy-replay-adopted-stylesheet]").forEach(function(e){e.remove()})}var me=function(){function e(){(0,v.A)(this,"adoptedStylesheets",[]),(0,v.A)(this,"contentDocumentNodes",[]),(0,v.A)(this,"pendingIFrameMap",new Map),(0,v.A)(this,"frameIdMap",new Map),(0,v.A)(this,"idNodeMap",new Map),(0,v.A)(this,"nodeSerializedMap",new WeakMap),(0,v.A)(this,"styleSheetIdMap",new Map),(0,v.A)(this,"postAddingToWindowCallbacks",[]),(0,v.A)(this,"documentElementCallbackMap",new Map),(0,v.A)(this,"elementIdToDelayedCallbacksArrayMap",new se),(0,v.A)(this,"_pendingElementStylesheets",new Set),(0,v.A)(this,"_pendingAdoptedStylesheets",new Set),(0,v.A)(this,"_lastAdoptedPolyfillShadowHostIdsByFrame",new Map)}var t=e.prototype;return t.reset=function(){this.adoptedStylesheets=[],this.contentDocumentNodes=[],this.frameIdMap=new Map,this.idNodeMap=new Map,this.nodeSerializedMap=new WeakMap,this.styleSheetIdMap=new Map,this._pendingElementStylesheets=new Set,this._pendingAdoptedStylesheets=new Set,this._lastAdoptedPolyfillShadowHostIdsByFrame=new Map,this.pendingIFrameMap=new Map,document.querySelectorAll("[data-cy-replay-pending-iframe]").forEach(function(e){e.remove()}),this.postAddingToWindowCallbacks=[],this.elementIdToDelayedCallbacksArrayMap=new se,this.documentElementCallbackMap=new Map},t.applyPendingAdoptedStylesheets=function(){var e=this;
1this._pendingAdoptedStylesheets.forEach(function(t){return e.setAdoptedStylesheets(t)}),this._pendingAdoptedStylesheets.clear()},t.applyPendingElementStylesheets=function(){this._pendingElementStylesheets.forEach(function(e){e.sheet&&(e.textContent=ue+"\n"+Array.from(e.sheet.cssRules).map(function(e){return e.cssText}).join("\n"))}),this._pendingElementStylesheets.clear()},t.getId=function(e){return this.nodeSerializedMap.get(e)},t.getNode=function(e){if(e){var t=this.idNodeMap.get(e),n=this.contentDocumentNodes.includes(e);if(t)return n?t.contentDocument:t}},t.add=function(e,t,n){void 0===n&&(n=!1),null!=e&&(this.idNodeMap.set(t.id,e),this.nodeSerializedMap.set(e,t.id),n&&this.contentDocumentNodes.push(t.id))},t.remove=function(e){var t=this.getNode(e);this.idNodeMap.delete(e),t&&this.nodeSerializedMap.delete(t)},t.addFrame=function(e,t,n){this.frameIdMap.set(t,e),this.createAdoptedStylesheet(pe,t,"\nvideo::-webkit-media-controls-panel {\n  display: none !important;\n  opacity: 0 !important;\n}\nvideo::-webkit-media-controls {\n    display: none !important;\n}\n"+(n?"":"canvas {\n  display: block;\n  background-image: url("+j+") !important;\n  background-size: cover !important;\n  background-repeat: no-repeat !important;\n}")+"\nvideo {\n  background-image: url("+j+") !important;\n  background-size: cover !important;\n  background-repeat: no-repeat !important;\n}\nobject:not([type='image/svg+xml']) {\n  background-image: url("+j+") !important;\n  background-size: cover !important;\n  background-repeat: no-repeat !important;\n}\n")},t.addPendingIFrame=function(e,t){this.pendingIFrameMap.set(e,t)},t.getFrameDoc=function(e){var t=this.frameIdMap.get(e);return t?["IFRAME","OBJECT"].includes(t.localName.toUpperCase())?t.contentDocument:t.ownerDocument:null},t.queryDocumentOrShadowRoot=function(e,t){var n=t.querySelector(e);return(null==n?void 0:n.shadowRoot)?{isShadowRoot:!0,el:n.shadowRoot}:{isShadowRoot:!1,el:n}},t.queryInFrameMixin=function(e,t,n){if(e){if((0,X.isString)(t)||(0,X.isArray)(t)&&1===t.length)return n(e,(0,X.isString)(t)?t:t[0]);var r=e;try{for(var o,a=ce(t);!(o=a()).done;){var i=o.value,l=this.queryDocumentOrShadowRoot(i,r),s=l.isShadowRoot,c=l.el;if(!s)return n(r,i);r=c}}catch(e){return null}}return null},t.queryInFrame=function(e,t){return e?this.queryInFrameMixin(e,t,function(e,t){return e.querySelector(t)}):null},t.queryInFrameByFrameId=function(e,t){var n=this.getFrameDoc(e);return n?this.queryInFrameMixin(n,t,function(e,t){return e.querySelector(t)}):null},t.queryAllInFrame=function(e,t){var n=this.getFrameDoc(e);return n?this.queryInFrameMixin(n,t,function(e,t){return e.querySelectorAll(t)}):null},t.addStyleSheet=function(e,t){this.styleSheetIdMap.set(e,t)},t.getStyleSheet=function(e){return this.styleSheetIdMap.get(e)},t.getAdoptedStyleSheet=function(e){return this.adoptedStylesheets.find(function(t){return t.id===e})},t.getAdoptedStyleSheetFrame=function(e){var t;return(null===(t=this.getAdoptedStyleSheet(e))||void 0===t?void 0:t.frameId)||""},t.setAdoptedStylesheets=function(e){var t=this,n=this.getFrameDoc(e);if(n)try{he(n);var r=this._lastAdoptedPolyfillShadowHostIdsByFrame.get(e);null==r||r.forEach(function(e){var n=t.getNode(e);(null==n?void 0:n.shadowRoot)&&he(n.shadowRoot)});var o=new Set;this.adoptedStylesheets.filter(function(t){return t.frameId===e}).sort(function(e,t){return e.sequence-t.sequence}).forEach(function(e){var r=n.createElement("style");r.setAttribute("data-cy-replay-adopted-stylesheet",e.id);for(var a="/* This is a polyfill for displaying adopted stylesheets. See: https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptedStyleSheets */\n",i=0;i<e.sheet.cssRules.length;i++)a+=e.sheet.cssRules[i].cssText+"\n";if(r.textContent=a,e.shadowHostElementId){var l=t.getNode(e.shadowHostElementId);(null==l?void 0:l.shadowRoot)&&(l.shadowRoot.appendChild(r),o.add(e.shadowHostElementId))}else if(n.head||n.body||n.documentElement||e.id!==pe){var s,c;(null!=(s=null!=(c=n.head)?c:n.body)?s:n.documentElement).appendChild(r)}}),this._lastAdoptedPolyfillShadowHostIdsByFrame.set(e,o)}catch(e){"NotAllowedError"!==e.name&&K.Cp(e)}}
1,t.queueElementStyleSheetUpdate=function(e){this._pendingElementStylesheets.add(e)},t.queueAdoptedStylesheetUpdate=function(e){this._pendingAdoptedStylesheets.add(e)},t.createAdoptedStylesheet=function(e,t,n){var r=this.getFrameDoc(t),o=this.adoptedStylesheets.some(function(n){return n.id===e&&n.frameId===t});if(r&&!o){var a=r.defaultView;if(!a)return;var i=new a.CSSStyleSheet;te({cssAction:function(){i.replaceSync(n)}}),this.adoptedStylesheets.push({id:e,frameId:t,sheet:i,sequence:0}),this.queueAdoptedStylesheetUpdate(t)}},t.resolveAdoptedStylesheets=function(e){var t=this,n=e.styleSheetIds,r=e.addedStyles,o=e.frameId,a=e.shadowHostElementId,i=[].concat(n);r.length>0&&r.forEach(function(e){t.createAdoptedStylesheetFromRules(e.styleSheetId,o,e.additions,n.indexOf(e.styleSheetId),a),i.splice(i.indexOf(e.styleSheetId),1)}),i.forEach(function(e){var r=t.getAdoptedStyleSheet(e);r?t.adoptedStylesheets.push({id:e,frameId:o,sheet:r.sheet,shadowHostElementId:a,sequence:n.indexOf(e)}):t.createAdoptedStylesheetFromRules(e,o,[],n.indexOf(e),a)});var l=this.adoptedStylesheets.map(function(e){return{id:e.id,shadowHostElementId:e.shadowHostElementId}}).filter(function(e){return e.id!==pe&&e.shadowHostElementId===a});n.forEach(function(e){l.splice(l.indexOf({id:e,shadowHostElementId:a}),1)}),l.forEach(function(e){t.deleteAdoptedStylesheet(e)}),this.queueAdoptedStylesheetUpdate(o)},t.createAdoptedStylesheetFromRules=function(e,t,n,r,o){var a=this.getFrameDoc(t);if(a){var i,l=a.defaultView;if(!l)return;var s=(null===(i=this.getAdoptedStyleSheet(e))||void 0===i?void 0:i.sheet)||new l.CSSStyleSheet;n.forEach(function(e){var t=e.index?e.index[0]:0;te({cssAction:function(){s.insertRule(e.rule,t)},errorFallbackFn:function(){null==s||s.insertRule("[data-cy-syntax-error-fallback] {}",t)}})}),this.adoptedStylesheets.push({id:e,frameId:t,sheet:s,shadowHostElementId:o,sequence:r})}},t.getAdoptedStylesheetForModification=function(e){var t=this.getAdoptedStyleSheet(e);return t&&this.queueAdoptedStylesheetUpdate(t.frameId),t},t.updateAdoptedStylesheet=function(e,t){var n=this.adoptedStylesheets.findIndex(function(t){return t.id===e});if(n>=0){var r=this.adoptedStylesheets[n];if(r){te({cssAction:function(){r.sheet.replaceSync(t)}}),this.adoptedStylesheets[n]=r,this.queueAdoptedStylesheetUpdate(r.frameId)}}},t.deleteAdoptedStylesheet=function(e){var t=this.adoptedStylesheets.findIndex(function(t){return t.id===e.id&&t.shadowHostElementId===e.shadowHostElementId});if(t>=0){var n=this.adoptedStylesheets.splice(t,1)[0];n&&this.queueAdoptedStylesheetUpdate(n.frameId)}},(0,Y.A)(e,[{key:"frameIds",get:function(){return this.frameIdMap.keys()}}]),e}();n(24576);var fe=function(e){null==e||e.write("<!DOCTYPE html>")},ve=function(e,t,n){var r,o=null==t?void 0:t.localName;try{r=(null==t?void 0:t.isSVG)?e.createElementNS("http://www.w3.org/2000/svg",o):e.createElement(o)}catch(t){S("invalid-element-"+o,"Invalid element "+o+" replaced"),r=e.createElement("invalid-element"),N(r,"data-cy-replay-previous-name",o,void 0,n)}return r},ye=function(e,t,n){try{return e[t]=n,t}catch(e){return void S(t+"_"+n,"Error trying to add invalid property ["+t+"] to Element")}};function ge(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return be(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?be(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Se(Object(n),!0).forEach(function(t){(0,v.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _e=function e(t){var n=t.eventId,r=t.doc,o=t.node,a=t.networkResources,i=t.nodeMap,l=t.hrefResolver,s=t.parentNodeElementType,c=t.isChildOfSvg,d=t.config,u=t.nodePatches,p=void 0===u?{}:u,h=t.hasCapturedAndProcessedCanvasAssets,m=null;switch(o.attributes&&o.attributes["data-cy-node-patch"]&&((0,X.merge)(o,p[o.attributes["data-cy-node-patch"]]||{}),delete o.attributes["data-cy-node-patch"]),o.nodeType){case Node.ELEMENT_NODE:if("IFRAME"===o.nodeName&&o.frameId&&i.pendingIFrameMap.get(o.frameId)){var f=o.frameId,v=i.pendingIFrameMap.get(f),y=v.iframe,g=v.contentDocumentNode;m=ve(r,o,d),i.postAddingToWindowCallbacks.push(function(){var e=function(){var e,t,n,r=m.contentDocument;return!!((null==r?void 0:r.documentElement)&&(null===(e=y.contentDocument)||void 0===e?void 0:e.documentElement)&&i.getId(null===(t=y.contentDocument)||void 0===t?void 0:t.documentElement))&&(i.applyPendingAdoptedStylesheets(),i.applyPendingElementStylesheets(),r.replaceChild(r.adoptNode(y.contentDocument.documentElement),r.documentElement),i.pendingIFrameMap.delete(f),null===(n=y.parentNode)||void 0===n||n.removeChild(y),N(m,"data-cy-replay-frame-id",f,void 0,d),i.addFrame(m,f,h),l.setCurrentLocation(o.frameId,g.documentURL),i.add(m,g,!0),!0)};y.contentDocument.documentElement?e():i.documentElementCallbackMap.set(f,e)})}else if("SCRIPT"===o.nodeName||"NOSCRIPT"===o.nodeName)o.nodeName="NOSCRIPT",o.localName="noscript",(m=ve(r,o,d)).style.display="none";else if("CANVAS"===o.nodeName.toUpperCase()&&h){var b,w;if((null===(b=o.attributes)||void 0===b?void 0:b["data-cy-discovery-canvas-image"])&&(w=o.attributes["data-cy-discovery-canvas-image"],delete o.attributes["data-cy-discovery-canvas-image"]),m=ve(r,o,d),w){var _=A.o4.toUint8Array(w),I=new Blob([_]);createImageBitmap(I).then(function(e){var t=m.getContext("bitmaprenderer");null==t||t.transferFromImageBitmap(e)}).catch(function(e){console.error("Failed to create image bitmap",e)})}}else if("VIDEO"===o.nodeName.toUpperCase()||"CANVAS"===o.nodeName.toUpperCase()&&!h){var x,j,E,O;m=ve(r,o,d),N(m,"data-cy-replay-is-placeholder","",c,d),m.style.width=(null===(x=o.attributes)||void 0===x?void 0:x.width)?(null===(j=o.attributes)||void 0===j?void 0:j.width)+"px":"",m.style.height=(null===(E=o.attributes)||void 0===E?void 0:E.width)?(null===(O=o.attributes)||void 0===O?void 0:O.height)+"px":"","VIDEO"===o.nodeName.toUpperCase()&&N(m,"poster","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",c,d)}else if(["OBJECT"].includes(o.nodeName.toUpperCase())){var k,M,D,U;(m=ve(r,o,d)).style.width=(null===(k=o.attributes)||void 0===k?void 0:k.width)?(null===(M=o.attributes)||void 0===M?void 0:M.width)+"px":"",m.style.height=(null===(D=o.attributes)||void 0===D?void 0:D.width)?(null===(U=o.attributes)||void 0===U?void 0:U.height)+"px":""}else if(["STYLE"].includes(o.nodeName.toUpperCase())){var V,F,B,H,W="",L=C(null===(V=o.attributes)||void 0===V?void 0:V.href),Z=(null===(F=o.children)||void 0===F?void 0:F.length)&&"STYLE"===o.nodeName.toUpperCase(),J="";if(L&&!Z){var Q,q=l.resolve(L,r);if(J=T({attrHash:null===(Q=o.attributeHashes)||void 0===Q?void 0:Q.href,urls:[q,L,"/"+L],domNetworkAssets:a.domNetworkAssets})){var Y,K=null===(Y=a.domNetworkAssets.hashData[J])||void 0===Y?void 0:Y.body;K||S(J,"Failed to find response for ("+J+")"),W=null!=K?K:""}else W=L}if(!L||!L.includes(".css")&&L===W||"preload"===(null===(B=o.attributes)||void 0===B?void 0:B.rel)||Z)m=ve(r,o,d);else W=G(W,L,z({doc:r,networkResources:a,hrefResolver:l,inlineBlobUrls:null!=(H=null==d?void 0:d.inlineBlobUrls)&&H}),J,!1),(m=r.createElement("style")).appendChild(r.createTextNode(W))}else if(["LINK"].includes(o.nodeName.toUpperCase())){var $,ee,te,ne,re,oe=void 0,ae=C(null===($=o.attributes)||void 0===$?void 0:$.href),ie="";if(ae)ne=l.resolve(ae,r),(ie=T({attrHash:null===(re=o.attributeHashes)||void 0===re?void 0:re.href,urls:[ne,ae,"/"+ae],domNetworkAssets:a.domNetworkAssets}))&&((oe=a.domNetworkAssets.hashData[ie])||S(ie,"Failed to find response for ("+ie+")"));if(ae&&oe&&"preload"!==(null===(ee=o.attributes)||void 0===ee?void 0:ee.rel)){var le,se,ce=G(null!=(le=oe.body)?le:"",ae,z({doc:r,networkResources:a,hrefResolver:l,inlineBlobUrls:null!=(se=null==d?void 0:d.inlineBlobUrls)&&se}),ie,!1),de=R({asset:we({},oe,{body:ce,mimeType:"text/css"}),inlineBlobUrls:null==d?void 0:d.inlineBlobUrls});m=r.createElement("link"),N(m,"href",de,!1,d)}else"undefined"!=typeof window&&window.IN_STUDIO&&ae&&ne&&"preload"!==(null===(te=o.attributes)||void 0===te?void 0:te.rel)?(m=ve(r,o,d)).setAttribute("href",ne):m=ve(r,o,d)}else if("SOURCE"===o.nodeName.toUpperCase()){var ue;if(m=ve(r,o,d),null===(ue=o.attributes)||void 0===ue?void 0:ue.srcset){var pe,he=o.attributes.srcset.split(",").map(function(e){return e.trim().split(" ")}),me="",be=P(null===(pe=o.attributeHashes)||void 0===pe?void 0:pe.srcset);he.forEach(function(e,t){var n=e[0],i=e[1];if(n){var s=T({attrHash:be[t],urls:[n,l.resolve(n,r)],domNetworkAssets:a.domNetworkAssets});if(s&&o.attributes){me&&(me+=", ");var c=R({asset:a.domNetworkAssets.hashData[s],inlineBlobUrls:null==d?void 0:d.inlineBlobUrls});me+=c,i&&(me+=" "+i)}}}),me&&(o.attributes.srcset=me)}}else if("IMG"===o.nodeName.toUpperCase()){var Se,_e;if(m=ve(r,o,d),null===(Se=o.attributes)||void 0===Se?void 0:Se.src){var Ie,xe=T({attrHash:null===(Ie=o.attributeHashes)||void 0===Ie?void 0:Ie.src,urls:[o.attributes.src,l.resolve(o.attributes.src,r)],domNetworkAssets:a.domNetworkAssets});if(xe){var Ne=R({asset:a.domNetworkAssets.hashData[xe],inlineBlobUrls:null==d?void 0:d.inlineBlobUrls});o.attributes.src=Ne}}
1if(null===(_e=o.attributes)||void 0===_e?void 0:_e.srcset){var je,Ce=o.attributes.srcset.split(",").map(function(e){return e.trim().split(" ")}),Ae="",Ee=P(null===(je=o.attributeHashes)||void 0===je?void 0:je.srcset);Ce.forEach(function(e,t){var n=e[0],o=e[1];if(n){var i=T({attrHash:Ee[t],urls:[n,l.resolve(n,r)],domNetworkAssets:a.domNetworkAssets});if(i){Ae&&(Ae+=", ");var s=R({asset:a.domNetworkAssets.hashData[i],inlineBlobUrls:null==d?void 0:d.inlineBlobUrls});Ae+=s,o&&(Ae+=" "+o)}}}),Ae&&(o.attributes.srcset=Ae)}}else{var Oe;if(o.isSVG&&"SVG"===o.localName.toUpperCase())m=r.createElementNS("http://www.w3.org/2000/svg",o.localName);else if(m=ve(r,o,d),"function"==typeof o.localName.toUpperCase&&"BASE"===o.localName.toUpperCase()&&(null===(Oe=o.attributes)||void 0===Oe?void 0:Oe.href)){var Re,ke=null!=(Re=l.resolve(o.attributes.href,r))?Re:"";l.setCurrentLocation(l.getDocumentFrameId(r),ke),o.attributes.href=ke}}if(["IMAGE","USE"].includes(o.nodeName.toUpperCase()))for(var Me=0,Te=["xlink:href","href"];Me<Te.length;Me++){var Pe,De=Te[Me];if(null===(Pe=o.attributes)||void 0===Pe?void 0:Pe[De]){var Ue,Ve=o.attributes[De],Fe=l.resolve(Ve,r),Be=T({attrHash:null===(Ue=o.attributeHashes)||void 0===Ue?void 0:Ue[De],urls:[Fe,Ve,"/"+Ve],domNetworkAssets:a.domNetworkAssets});if(Be)if(null==d?void 0:d.inlineBlobUrls){var He=R({asset:a.domNetworkAssets.hashData[Be],inlineBlobUrls:null==d?void 0:d.inlineBlobUrls});o.attributes[De]=Ve.includes("#")?He+"#"+Ve.split("#").pop():He}else{var We,Le=a.domNetworkAssets.hashData[Be];if((null==Le||null===(We=Le.mimeType)||void 0===We?void 0:We.includes("svg"))&&"USE"===o.nodeName.toUpperCase()){m.innerHTML=Le.body,N(m,De,Ve,!0,d);var Ze=m.getAttribute(De);if((null==Ze?void 0:Ze.includes("#"))&&"#"!==Ze)try{var ze=m.querySelector(Ze);ze&&(m.innerHTML=ze.outerHTML)}catch(e){}}else{var Ge=R({asset:a.domNetworkAssets.hashData[Be],inlineBlobUrls:null==d?void 0:d.inlineBlobUrls});o.attributes[De]=Ge}}}}if(o.propertyState)for(var Je=0,Qe=Object.entries(o.propertyState||{});Je<Qe.length;Je++){var qe=Qe[Je],Ye=qe[0],Ke=qe[1];ye(m,Ye,Ke)}for(var Xe,$e=ge(o.children||[]);!(Xe=$e()).done;){var et=Xe.value,tt=e({eventId:n,doc:r,node:et,networkResources:a,nodeMap:i,hrefResolver:l,parentNodeElementType:m.localName,isChildOfSvg:o.isSVG,config:d,nodePatches:p,hasCapturedAndProcessedCanvasAssets:h});tt&&m.appendChild(tt)}if((null==d?void 0:d.includeShadowDom)&&o.shadowRoots)for(var nt,rt=ge(o.shadowRoots);!(nt=rt()).done;){var ot=nt.value;if("user-agent"!==ot.shadowRootType){for(var at,it=m.attachShadow({mode:ot.shadowRootType}),lt=ge(ot.children);!(at=lt()).done;){var st=at.value,ct=e({eventId:n,doc:r,node:st,networkResources:a,nodeMap:i,hrefResolver:l,parentNodeElementType:m.localName,isChildOfSvg:o.isSVG,config:d,nodePatches:p,hasCapturedAndProcessedCanvasAssets:h});ct&&it.appendChild(ct)}i.add(it,ot)}}for(var dt=0,ut=Object.entries(o.attributes||{});dt<ut.length;dt++){var pt=ut[dt],ht=pt[0],mt=pt[1],ft=mt;if("STYLE"===ht.toUpperCase()){var vt,yt=mt;(["VIDEO","NOSCRIPT"].includes(o.nodeName)||"CANVAS"===o.nodeName&&!h)&&(yt=mt+"; "+m.style.cssText),ft=G(yt,"",z({doc:r,networkResources:a,hrefResolver:l,inlineBlobUrls:null!=(vt=null==d?void 0:d.inlineBlobUrls)&&vt}),void 0,!0)}N(m,ht,ft,c,d)}"undefined"!=typeof window&&(window.IN_DISCOVERY||window.IN_STUDIO)&&N(m,"data-cy-replay-node-id",o.id.toString(),void 0,d);break;case Node.TEXT_NODE:var gt;if("STYLE"===(null==s?void 0:s.toUpperCase()))m=r.createTextNode(G(o.nodeValue,"",z({doc:r,networkResources:a,hrefResolver:l,inlineBlobUrls:null!=(gt=null==d?void 0:d.inlineBlobUrls)&&gt}),n+"-"+(o.contentHash||o.id),!1));else m="NOSCRIPT"===(null==s?void 0:s.toUpperCase())?r.createComment("script removed by Cypress"):r.createTextNode(o.nodeValue);break;case Node.COMMENT_NODE:m=r.createComment(o.nodeValue);break;case Node.DOCUMENT_TYPE_NODE:m=function(e,t){var n=t.nodeName,r=t.publicId,o=void 0===r?"":r,a=t.systemId,i=void 0===a?"":a;try{return e.implementation.createDocumentType((0,X.isEmpty)(n)?"html":n,o,i)}catch(t){return S("invalid-document-type-"+n+"-"+o+"-"+i,"Invalid element nodeName: "+n+" publicId: "+o+" systemId: "+i+" replaced"),e.implementation.createDocumentType("html","","")}}(r,o);break;case Node.DOCUMENT_NODE:if(fe(r),r.close(),r.open(),o.documentURL&&l.setCurrentLocation(l.getDocumentFrameId(r),o.documentURL,{isNavigationEvent:!0}),o.children)for(var bt,St=ge(o.children);!(bt=St()).done;){var wt=bt.value,_t=e({eventId:n,doc:r,node:wt,networkResources:a,nodeMap:i,hrefResolver:l,config:d,nodePatches:p,hasCapturedAndProcessedCanvasAssets:h});if(_t&&(r.documentElement&&_t.nodeType===Node.ELEMENT_NODE?r.replaceChild(_t,r.documentElement):r.appendChild(_t),_t.nodeType===Node.ELEMENT_NODE)){var It=i.documentElementCallbackMap.get(o.frameId);It&&(It(),i.documentElementCallbackMap.delete(o.frameId))}}m=r;break;default:S(o.id.toString(),"Unmapped Node Type: ",o)}
1return o.frameId&&!i.pendingIFrameMap.get(o.frameId)&&(N(m,"data-cy-replay-frame-id",o.frameId,void 0,d),i.addFrame(m,o.frameId,h)),o.contentDocument&&(l.setCurrentLocation(o.frameId,o.contentDocument.documentURL),i.add(m,o.contentDocument,!0),!i.pendingIFrameMap.get(o.frameId)&&o.contentDocument.children.length>0&&i.postAddingToWindowCallbacks.push(function(){m.contentDocument&&e({eventId:n,doc:m.contentDocument,node:o.contentDocument,networkResources:a,nodeMap:i,hrefResolver:l,parentNodeElementType:m.localName,isChildOfSvg:c,config:d,nodePatches:p,hasCapturedAndProcessedCanvasAssets:h})})),function(e,t,n,r){if(e){var o="string"==typeof e.tagName?e.tagName.toUpperCase():void 0;!o||"OBJECT"===o&&"type"in e&&"image/svg+xml"===e.type||!["VIDEO","OBJECT"].includes(o)&&("CANVAS"!==o||n)||N(e,"title","Test Replay: unsupported content type",t,r)}}(m,c,h,d),i.add(m,o),m},Ie=function(e,t){return function(e){return Object.hasOwnProperty.call(e,"elementSelector")}(t)?e.queryInFrameByFrameId(t.frameId,t.elementSelector):function(e){return Object.hasOwnProperty.call(e,"elementId")}(t)?e.getNode(t.elementId):void 0},xe=function(e){var t,n,r=null;return(null===(t=e.getRootNode)||void 0===t||null===(n=t.call(e))||void 0===n?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(r=e.getRootNode().host),r},Ne=function(e){var t=e.ownerDocument;if(!t)return!1;var n=function(e){for(var t,n=e;t=xe(n);)n=t;return n}(e);return t.contains(n)},je=function(e){var t=e.ctx,n=e.removalPayload,r=t.nodeMap.current.getNode(n.parentId),o=t.nodeMap.current.getNode(n.id);o&&r&&r===o.parentNode&&r.removeChild(o),o&&function(){for(var e=[o];e.length;){var n=e.shift(),r=t.nodeMap.current.getId(n);r&&(t.nodeMap.current.remove(r),n.childNodes.forEach(function(t){e.push(t)}))}}()},Ce=function(e){var t,n,r=e.eventId,o=e.ctx,a=e.additionPayload,i=e.pendingAdditionQueue,l=o.nodeMap.current.getNode(a.parentId),s="STYLE"===(null==l?void 0:l.nodeName)&&null!=(t=null==l||null===(n=l.textContent)||void 0===n?void 0:n.trim())?t:"";if("#text"!==a.node.nodeName||"STYLE"!==(null==l?void 0:l.nodeName)||""!==a.node.nodeValue.trim()||!s.includes(ue)&&""!==s){var c,d,u=o.nodeMap.current.getNode(a.previousId);if(l){var p,h=l.localName,m=_e({eventId:null!=r?r:0,doc:"#document"===l.nodeName?l:l.ownerDocument||o.iframeRef.current.contentDocument,node:a.node,networkResources:o.networkResources,nodeMap:o.nodeMap.current,hrefResolver:o.hrefResolver.current,parentNodeElementType:h,isChildOfSvg:void 0!==l.ownerSVGElement,config:o.config,hasCapturedAndProcessedCanvasAssets:!!(null===(p=o.canvasResources)||void 0===p?void 0:p.domCanvasAssets)});if(!m)return;var f=function(){if(!l)return!1;if(u)try{if(!Node.prototype.contains.call(l,u))return!1}catch(e){return K.Cp(e),!1}if("#document"===l.nodeName){var e=l.documentElement,t=l.doctype;e&&m.nodeType===Node.ELEMENT_NODE?l.replaceChild(m,e):m.nodeType===Node.DOCUMENT_TYPE_NODE?t?t.replaceWith(m):l.prepend(m):l.append(m)}else u?l.insertBefore(m,u.nextSibling):l.prepend(m);return!0};(d=(c=l).ownerDocument)&&(d.contains(c)||Ne(c))?i.add(f):f()}}},Ae=function(e){var t=e.eventId,n=e.ctx,r=e.attributeModificationPayload,o=n.nodeMap.current.getNode(r.id);if(o){var a,i,l,s,c=null!=(a=o.ownerDocument)?a:null===(i=n.iframeRef.current)||void 0===i?void 0:i.contentDocument;if(N(o,r.name,"style"===r.name?G(r.value,"",z({doc:c,networkResources:n.networkResources,hrefResolver:n.hrefResolver.current,inlineBlobUrls:null!=(l=null===(s=n.config)||void 0===s?void 0:s.inlineBlobUrls)&&l}),t+"_"+r.id,!0):r.value,void 0,n.config),["LINK","STYLE"].includes(o.nodeName.toUpperCase())&&("href"===r.name||"rel"===r.name&&"stylesheet"===r.value)){var d;if("href"===r.name)d=r.value;else d=o.getAttribute(_("href"));if(d){var u=n.hrefResolver.current.resolve(d,o.ownerDocument),p=T({attrHash:"href"===r.name?r.valueHash:void 0,urls:[u,r.value,"/"+r.value],domNetworkAssets:n.networkResources.domNetworkAssets});if(p){var h,m,f,v,y,g=c.createElement("style");"LINK"===o.nodeName.toUpperCase()&&o.getAttributeNames().forEach(function(e){var t;"href"!==e&&N(g,e,null!=(t=o.getAttribute(e))?t:"",void 0,n.config)}),N(g,"rel","stylesheet",void 0,n.config),N(g,"type","text/css",void 0,n.config),N(g,"href",r.value,void 0,n.config),g.appendChild(c.createTextNode(G(null!=(h=null===(m=n.networkResources.domNetworkAssets.hashData[p])||void 0===m?void 0:m.body)?h:"",u,z({doc:c,networkResources:n.networkResources,hrefResolver:n.hrefResolver.current,inlineBlobUrls:null!=(f=null===(v=n.config)||void 0===v?void 0:v.inlineBlobUrls)&&f}),p,!1))),null===(y=o.parentNode)||void 0===y||y.replaceChild(g,o),n.nodeMap.current.add(g,{id:r.id})}}}else if("src"===r.name&&"IMG"===o.nodeName.toUpperCase()){var b,S,w=(null===(b=n.networkResources.domNetworkAssets.pathHash)||void 0===b?void 0:b[r.value])||(null===(S=n.networkResources.domNetworkAssets.pathHash)||void 0===S?void 0:S[n.hrefResolver.current.resolve(r.value,o.ownerDocument)]);if(w){var I,x=R({asset:n.networkResources.domNetworkAssets.hashData[w],inlineBlobUrls:null===(I=n.config)||void 0===I?void 0:I.inlineBlobUrls});N(o,r.name,x,void 0,n.config)}}["CANVAS","VIDEO"].includes(o.nodeName.toUpperCase())&&("width"===r.name&&(o.style.width=r.value+"px"),"height"===r.name&&(o.style.height=r.value+"px"))}}
1,Ee=function(e){var t=e.ctx,n=e.attributeRemovalPayload,r=t.nodeMap.current.getNode(n.id);r&&r.removeAttribute(n.name)},Oe=function(e){var t,n=e.ctx,r=e.characterDataPayload,o=n.nodeMap.current.getNode(r.id);o&&"NOSCRIPT"!==(null===(t=o.parentNode)||void 0===t?void 0:t.nodeName.toUpperCase())&&(o.textContent=r.characterData)},Re=function(){function e(){(0,v.A)(this,"queue",void 0),this.queue=[]}var t=e.prototype;return t.add=function(e){this.queue.push(e)},t.flush=function(){for(var e=0;this.queue.length;){var t=this.queue.length,n=this.queue.shift();if(n()?e=0:(this.queue.push(n),e+=1),e===t)break}},e}(),ke=function(e,t){switch(e.type){case"dom:full-snapshot":var n,r,o,a;t.nodeMap.current.reset(),null===(n=t.iframeRef.current)||void 0===n||null===(r=n.contentWindow)||void 0===r||r.scrollTo(0,0),_e({eventId:null!=(o=e.id)?o:-1,doc:t.iframeRef.current.contentDocument,node:e.payload.node,networkResources:t.networkResources,nodeMap:t.nodeMap.current,hrefResolver:t.hrefResolver.current,config:t.config,nodePatches:t.nodePatches,hasCapturedAndProcessedCanvasAssets:!!(null===(a=t.canvasResources)||void 0===a?void 0:a.domCanvasAssets)});break;case"dom:child-iframe-full-snapshot":var i,l;if(!document.documentElement)return;var s=e.payload,c=t.nodeMap.current.getFrameDoc(s.frameId);if(c&&!c.defaultView)return;if(!c){var d,u=t.iframeRef.current.contentDocument.createElement("iframe");u.style.display="none",u.setAttribute("data-cy-replay-pending-iframe",s.frameId),t.nodeMap.current.addPendingIFrame(s.frameId,{iframe:u,contentDocumentNode:s.node}),t.nodeMap.current.addFrame(u.contentDocument,s.frameId,!!(null===(d=t.canvasResources)||void 0===d?void 0:d.domCanvasAssets)),document.documentElement.appendChild(u),c=u.contentDocument}_e({eventId:null!=(i=e.id)?i:-1,doc:c,node:s.node,networkResources:t.networkResources,nodeMap:t.nodeMap.current,hrefResolver:t.hrefResolver.current,config:t.config,hasCapturedAndProcessedCanvasAssets:!!(null===(l=t.canvasResources)||void 0===l?void 0:l.domCanvasAssets)});break;case"dom:aggregate-mutation":var p=e.payload,h=new Re;p.removals.forEach(function(e){je({ctx:t,removalPayload:e})}),p.additions.forEach(function(n){var r=function(){var r;return!!t.nodeMap.current.getNode(n.parentId)&&(Ce({eventId:null!=(r=e.id)?r:-1,ctx:t,additionPayload:n,pendingAdditionQueue:h}),!0)};r()||h.add(r)}),p.attributeModifications.forEach(function(n){var r;Ae({eventId:null!=(r=e.id)?r:-1,ctx:t,attributeModificationPayload:n})}),p.attributeRemovals.forEach(function(e){Ee({ctx:t,attributeRemovalPayload:e})}),p.characterDataModifications.forEach(function(e){Oe({ctx:t,characterDataPayload:e})}),h.flush(),t.nodeMap.current.documentElementCallbackMap.forEach(function(e,n){e()&&t.nodeMap.current.documentElementCallbackMap.delete(n)});break;case"dom:node-removed":var m=e.payload;je({ctx:t,removalPayload:m});break;case"dom:node-added":var f,v=e.payload,y=new Re;Ce({eventId:null!=(f=e.id)?f:-1,ctx:t,additionPayload:v,pendingAdditionQueue:y}),y.flush();break;case"dom:attribute-modified":var g,b=e.payload;Ae({eventId:null!=(g=e.id)?g:-1,ctx:t,attributeModificationPayload:b});break;case"dom:attribute-removed":var w=e.payload;Ee({ctx:t,attributeRemovalPayload:w});break;case"dom:character-data-modified":var _=e.payload;Oe({ctx:t,characterDataPayload:_});break;case"dom:select-input-changed":var I=e.payload,N=Ie(t.nodeMap.current,I);if(N)N.querySelectorAll("option").forEach(function(e){I.values.includes(e.value)?e.selected=!0:e.selected=!1});break;case"dom:text-input-changed":var j=e.payload,C=Ie(t.nodeMap.current,j);C&&"file"!==C.type&&(C.value=j.value);break;case"dom:radio-input-changed":case"dom:checkbox-input-changed":var A=e.payload,E=Ie(t.nodeMap.current,A);E&&(E.checked=A.checked);break;case"dom:window-scrolled":var O,R=e.payload,k=null===(O=t.nodeMap.current.getFrameDoc(R.frameId))||void 0===O?void 0:O.defaultView;k&&k.scroll(R.scrollX,R.scrollY);break;case"dom:element-scrolled":var M,T=e.payload;if(null===(M=t.iframeRef.current)||void 0===M?void 0:M.contentDocument){var P=Ie(t.nodeMap.current,T);P&&(P.scrollLeft=T.scrollX,P.scrollTop=T.scrollY)}break;
1case"dom:style-sheet-added":var D=e.payload,U=t.nodeMap.current.getNode(D.ownerNode),V=D.styleSheetText||"";if(V){var F,B,H=x.href;H&&(B=null==U?void 0:U.getAttribute(H())),V=ne({ctx:t,id:null!=(F=e.id)?F:-1,styleSheetId:D.styleSheetId,styleSheetText:V,styleSheetHref:B||t.hrefResolver.current.getFrameLocation(D.frameId)||""})}U?(t.nodeMap.current.addStyleSheet(D.styleSheetId,U),V&&!D.cdpRetrievalFailed&&(U.textContent=V)):t.nodeMap.current.createAdoptedStylesheet(D.styleSheetId,D.frameId,V);break;case"dom:style-sheet-changed":var W=e.payload,L=t.nodeMap.current.getStyleSheet(W.styleSheetId),Z=t.nodeMap.current.getAdoptedStyleSheetFrame(W.styleSheetId),z=W.styleSheetText||"";if(W.cdpRetrievalFailed)return void S(""+e.id,"cdpRetrievalFailed for stylesheet",W);if(z){var G,J,Q=x.href;Q&&(J=null==L?void 0:L.getAttribute(Q())),z=ne({ctx:t,id:null!=(G=e.id)?G:-1,styleSheetId:W.styleSheetId,styleSheetText:z,styleSheetHref:J||t.hrefResolver.current.getFrameLocation(Z)||""})}L?L.textContent=z:t.nodeMap.current.updateAdoptedStylesheet(W.styleSheetId,z);break;case"dom:style-sheet-removed":var q=e.payload;t.nodeMap.current.deleteAdoptedStylesheet({id:q.styleSheetId}),t.nodeMap.current.getStyleSheet(q.styleSheetId)||t.nodeMap.current.deleteAdoptedStylesheet({id:q.styleSheetId});break;case"dom:shadow-root-pushed":var Y;if(null===(Y=t.config)||void 0===Y?void 0:Y.includeShadowDom){var K=e.payload,X=K.root;if("user-agent"!==X.shadowRootType){var $=t.nodeMap.current.getNode(K.hostId);if(void 0!==$){var ee=$.attachShadow({mode:X.shadowRootType||"open"});t.nodeMap.current.add(ee,X)}}}break;case"dom:css-rule-inserted":var se;!function(e){var t=e.ctx,n=e.eventId,r=e.cssRuleInsertedEventPayload,o=ie({ctx:t,payload:r}),a=function(e){var o=r.insertion.index||[0],a=oe(e.sheet,o),i=o[o.length-1],l=re({ctx:t,id:n,styleSheetElement:e.element,cssText:r.insertion.rule,frameId:r.frameId,styleSheetId:r.styleSheetId});te({cssAction:function(){null==a||a.insertRule(l,i)},errorFallbackFn:function(){null==a||a.insertRule("[data-cy-syntax-error-fallback] {}",i)}}),e.element?t.nodeMap.current.queueElementStyleSheetUpdate(e.element):t.nodeMap.current.queueAdoptedStylesheetUpdate(r.frameId)};o?a(o):r.elementId&&t.nodeMap.current.elementIdToDelayedCallbacksArrayMap.set(r.elementId,function(){var e=ie({ctx:t,payload:r});e&&a(e)})}({ctx:t,eventId:null!=(se=e.id)?se:-1,cssRuleInsertedEventPayload:e.payload});break;case"dom:css-rule-deleted":!function(e){var t=e.ctx,n=e.cssRuleDeletedEventPayload,r=ie({ctx:t,payload:n}),o=function(e){var r=n.deletion.index||[0],o=oe(e.sheet,r),a=r[r.length-1];te({cssAction:function(){null==o||o.deleteRule(a)}}),e.element?t.nodeMap.current.queueElementStyleSheetUpdate(e.element):t.nodeMap.current.queueAdoptedStylesheetUpdate(n.frameId)};r&&r.sheet.cssRules.length>0?o(r):n.elementId&&t.nodeMap.current.elementIdToDelayedCallbacksArrayMap.set(n.elementId,function(){var e=ie({ctx:t,payload:n});e&&e.sheet.cssRules.length>0&&o(e)})}({ctx:t,cssRuleDeletedEventPayload:e.payload});break;case"dom:css-replaced":var ce;le({ctx:t,eventId:null!=(ce=e.id)?ce:-1,cssReplacedEventPayload:e.payload,sync:!1});break;case"dom:css-replaced-sync":var de;le({ctx:t,eventId:null!=(de=e.id)?de:-1,cssReplacedEventPayload:e.payload,sync:!0});break;case"dom:css-adopted-style-sheets":var ue;!function(e){var t=e.ctx,n=e.eventId,r=e.cssAdoptedStyleSheetsEventPayload,o={frameId:r.frameId,styleSheetIds:r.styleSheetIds,addedStyles:r.addedStyles.map(function(e){return{styleSheetId:e.styleSheetId,additions:e.additions.map(function(o,a){var i=re({ctx:t,id:n,index:a,cssText:o.rule,frameId:r.frameId,styleSheetId:e.styleSheetId});return{index:o.index,rule:i}})}}),sequence:r.sequence,shadowHostElementId:r.shadowHostElementId};t.nodeMap.current.resolveAdoptedStylesheets(o)}({ctx:t,eventId:null!=(ue=e.id)?ue:-1,cssAdoptedStyleSheetsEventPayload:e.payload});break;case"dom:css-style-declaration-property-set":var pe;!function(e){var t=e.ctx,n=e.eventId,r=e.cssStyleDeclarationPropertySetEventPayload,o=ie({ctx:t,payload:r}),a=function(e){var o=r.setProperty.index,a=ae(e.sheet,o),i=re({ctx:t,id:n,cssText:r.setProperty.value,styleSheetElement:e.element,frameId:r.frameId,styleSheetId:r.styleSheetId});te({cssAction:function(){null==a||a.style.setProperty(r.setProperty.property,i,r.setProperty.priority)}}
1),e.element?t.nodeMap.current.queueElementStyleSheetUpdate(e.element):t.nodeMap.current.queueAdoptedStylesheetUpdate(r.frameId)};o?a(o):r.elementId&&t.nodeMap.current.elementIdToDelayedCallbacksArrayMap.set(r.elementId,function(){var e=ie({ctx:t,payload:r});e&&a(e)})}({ctx:t,eventId:null!=(pe=e.id)?pe:-1,cssStyleDeclarationPropertySetEventPayload:e.payload});break;case"dom:css-style-declaration-property-removed":!function(e){var t=e.ctx,n=e.cssStyleDeclarationPropertyRemovedEventPayload,r=ie({ctx:t,payload:n}),o=function(e){var r=n.removedProperty.index,o=ae(e.sheet,r);te({cssAction:function(){null==o||o.style.removeProperty(n.removedProperty.property)}}),e.element?t.nodeMap.current.queueElementStyleSheetUpdate(e.element):t.nodeMap.current.queueAdoptedStylesheetUpdate(n.frameId)};r?o(r):n.elementId&&t.nodeMap.current.elementIdToDelayedCallbacksArrayMap.set(n.elementId,function(){var e=ie({ctx:t,payload:n});e&&o(e)})}({ctx:t,cssStyleDeclarationPropertyRemovedEventPayload:e.payload});break;case"dom:element-focused":!function(e){var t=e.ctx,n=e.elementFocusedPayload,r=Ie(t.nodeMap.current,n);if(r&&r.dataset){var o;r.dataset.cyReplayFocus="true",r.dataset.cyReplayFocusVisible="true",r.dataset.cyReplayFocusWithin="true";for(var a=(null===(o=r.assignedSlot)||void 0===o?void 0:o.parentElement)||r.parentElement;a;){var i;a.dataset.cyReplayFocusWithin="true",a=(null===(i=a.assignedSlot)||void 0===i?void 0:i.parentElement)||a.parentElement}}}({ctx:t,elementFocusedPayload:e.payload});break;case"dom:element-blurred":!function(e){var t=e.ctx,n=e.elementBlurredPayload,r=Ie(t.nodeMap.current,n);if(r&&r.dataset){var o;delete r.dataset.cyReplayFocus,delete r.dataset.cyReplayFocusVisible,delete r.dataset.cyReplayFocusWithin;for(var a=(null===(o=r.assignedSlot)||void 0===o?void 0:o.parentElement)||r.parentElement;a;){var i;delete a.dataset.cyReplayFocusWithin,a=(null===(i=a.assignedSlot)||void 0===i?void 0:i.parentElement)||a.parentElement}}}({ctx:t,elementBlurredPayload:e.payload});break;case"dom:canvas-snapshot":!function(e){var t,n=e.ctx,r=e.payload;if(null===(t=n.canvasResources)||void 0===t?void 0:t.domCanvasAssets){var o=Ie(n.nodeMap.current,r);if(o){var a,i;if(window.IN_DISCOVERY)return void o.setAttribute("data-cy-replay-canvas-hash",r.hashValue);var l=null===(a=n.canvasResources)||void 0===a||null===(i=a.domCanvasAssets)||void 0===i?void 0:i.imageData[r.hashValue];if(!l)return;try{var s=o.getContext("2d");null==s||s.drawImage(l.bitmap,0,0)}catch(e){console.error("Failed to apply canvas snapshot",e)}}}}({ctx:t,payload:e.payload});break;case"dom:interaction":var he;(null===(he=t.config)||void 0===he?void 0:he.applyInteractions)&&function(e){var t=e.ctx,n=e.interactionPayload,r=Ie(t.nodeMap.current,n),o=n.interactionType;if(r&&r.dataset&&o){var a=r.dataset.cyReplayInteractions,i=new Set(a?a.split(","):[]);i.add(o),r.dataset.cyReplayInteractions=Array.from(i).join(",")}}({ctx:t,interactionPayload:e.payload})}for(;t.nodeMap.current.postAddingToWindowCallbacks.length>0;){var me;null===(me=t.nodeMap.current.postAddingToWindowCallbacks.shift())||void 0===me||me()}t.nodeMap.current.elementIdToDelayedCallbacksArrayMap.forEach(function(e,n){t.nodeMap.current.getNode(e)&&(n.forEach(function(e){e()}),t.nodeMap.current.elementIdToDelayedCallbacksArrayMap.delete(e))})},Me=a.createContext(null),Te=n(20053),Pe=(n(28443),n(81152),n(11505),n(20938));function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Be="__cypress-injected-highlight-stylesheet",He=function(e){return(e.pathToContainer?e.pathToContainer.join(" "):"")+" "+e.selector},We=function(e){return{x:0,y:0,top:0,left:0,bottom:null==e?void 0:e.innerHe
1ight,right:null==e?void 0:e.innerWidth,width:null==e?void 0:e.innerWidth,height:null==e?void 0:e.innerHeight}},Le=function(e){var t=e;return Object.keys(x).forEach(function(n){var r=new RegExp("\\["+n+"[\\\\$\\\\*\\\\^\\\\|~\\]=]","gm");e.match(r)&&(t=["src","srcset"].includes(n)?t.replaceAll(n,x[n](function(e,t){var n;return null===(n=new RegExp(e+".?=[\"']?((?:.(?![\"']?\\s+(?:\\S+)=|\\s*\\/?[>\"']))+.)[\"']?","gm").exec(t))||void 0===n?void 0:n[1]}(n,t))):["content","data","controls"].includes(n)?t.replaceAll(n,_(n)):t.replaceAll(n,x[n]()))}),t};var Ze=function(e,t,n){var r="Parent document is unreachable",o=Le(t),a=null==n?void 0:n.map(Le),i=[];try{var l=a?function(e,t){var n=t;function r(e){var t;return e&&"tagName"in e&&"IFRAME"===e.tagName?null!=(t=e.contentDocument)?t:null:"shadowRoot"in e&&e.shadowRoot?e.shadowRoot:e}for(var o,a=Ve(e);!(o=a()).done;){var i=o.value;n&&(n=r(n)),n=n?n.querySelector(i):null}return n?r(n):n}(a,e):e;if(!l)throw new Error(r);i=Array.from(l.querySelectorAll(o))}catch(e){["production","staging"].includes(window.env)?K.Cp(e,{tags:Ue({},e.message===r?{unreachable_doc:!0}:null)}):console.error(e)}return i.find(function(e){return e.getAttribute("data-cy")!==Be})||null},ze=function(e,t,n){return!("visible"===e||"clip"===e||"clip"===t&&"visible"===n||"visible"===t&&"clip"===n)},Ge=function(e){return e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight},Je=function(e){if(e.parentElement)return e.parentElement;var t=e.getRootNode();return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.host:null},Qe=function(e,t,n){var r=new Map,o=new Map,a=new Map;if(!t||!e||!n)return{highlightTargetBySelector:r,scrollParentByUUID:o,refsByItemId:a};var i=e.reduce(function(e,n){var r=Ze(t,n.selector,n.pathToContainer);return r&&e.push({highlight:n,htmlElement:r}),e},[]).sort(function(e,t){var n=e.htmlElement.offsetHeight*e.htmlElement.offsetWidth,r=t.htmlElement.offsetHeight*t.htmlElement.offsetWidth;if(n!==r)return r-n;var o=e.htmlElement.compareDocumentPosition(t.htmlElement);return o&Node.DOCUMENT_POSITION_PRECEDING?1:o&Node.DOCUMENT_POSITION_FOLLOWING?-1:0});return i.forEach(function(e){var t=e.highlight,i=e.htmlElement;if(void 0!==t.groupIndex){var l=a.get(t.listItemId)||[];l[t.groupIndex]=i,a.set(t.listItemId,l)}else a.set(t.listItemId,[i]);if(!r.get(He(t))){r.set(He(t),{clientRects:null,htmlElement:i});var s=function(e,t){var n=null;if("fixed"===e.getComputedStyle(t).position){if(t.ownerDocument===e.document)return[];n=t.ownerDocument.body}else n="HTML"===t.tagName?t:Je(t);for(var r=!1,o=[];n&&"IFRAME"!==n.tagName;){var a=e.getComputedStyle(n),i=a.overflow,l=a.overflowX,s=a.overflowY,c=a.position;if(ze(i,l,s)&&Ge(n)){var d=e.document.documentElement===n,u=e.document.body===n,p=!d&&!u;o.push({boundingClientRect:null,clipOverflow:p,target:n})}if("fixed"===c){if(n.ownerDocument===e.document){r=!0;break}n=n.ownerDocument.body}if("HTML"!==n.tagName)n=Je(n);else{var h;if(e.document===n.ownerDocument)break;var m=null===(h=n.ownerDocument.defaultView)||void 0===h?void 0:h.frameElement;if(m&&m.contentWindow){var f=getComputedStyle(m),v={x:parseFloat(f["border-top-width"]),y:parseFloat(f["border-left-width"])};o.push({boundingClientRect:null,clipOverflow:!0,shouldOffset:!0,parentBorderOffset:v,isFrameWindow:!0,target:m.contentWindow}),n=Je(m);continue}console.error("Could not find iframe for current element",n)}}return r||o.push({boundingClientRect:null,clipOverflow:!0,target:e,isWindow:!0}),o}(n,i);if(s&&s.length){var c=null,d=[];s.forEach(function(e,n){var r,a=e.target,i=null;e.isWindow?i="window":(i=(r=e.isFrameWindow?a.frameElement:a).getAttribute("data-cy-layer"))||(i=(0,Pe.A)(),r.setAttribute("data-cy-layer",i));if(o.get(i)||o.set(i,e),c){var l=o.get(i);l&&(l.scrollChildKeys?l.scrollChildKeys.add(c):l.scrollChildKeys=new Set([c]))}if(0===n){var s=o.get(i);s&&((null==s?void 0:s.highlightChildSelectors)?s.highlightChildSelectors.add(He(t)):s.highlightChildSelectors=new Set([He(t)]))}d.push(i),c=i});var u=r.get(He(t));u&&(u.scrollParentKeys=d)}}}),{highlightTargetBySelector:r,scrollParentByUUID:o,refsByItemId:a,sortedHighlights:i}},qe=function(){function e(){(0,r.A)(this,"offsets",[])}var t=e.prototype;return t.add=function(e){this.offsets.push(e)},t.get=function(){return this.offsets.reduce(function(e,t){return{x:e.x+t.x,y:e.y+t.y}},{x:0,y:0})},e}(),Ye=function(e,t,n){var r=e.clientRects,o=!1;r||(r=e.htmlElement.getClientRects(),e.clientRects=r,o=!0);var a=e.scrollParentKeys;if(!(null==a?void 0:a.length)||!n)return r;for(var i=r,l={},s=new qe,c=a.length-1;c>=0;c-=1){var d=a[c],u=t.get(d);if(u){var p=u.boundingClientRect;p||(p=u.isWindow?We(u.target):u.isFrameWindow&&"frameElement"in u.target&&u.target.frameElement?u.target.frameElement.getBoundingClientRect():u.target.getBoundingClientRect(),u.boundingClientRect=p),u.clipOverflow&&(l.left=void 0===l.left?p.left:Math.max(l.left,p.left+s.get().x),l.right=void 0===l.right?p.right:Math.min(l.right,p.right+s.get().x),l.top=void 0===l.top?p.top:Math.max(l.top,p.top+s.get().y),l.bottom=void 0===l.bottom?p.bottom:Math.min(l.bottom,p.bottom+s.get().y)),u.shouldOffset&&(s.add({x:p.x,y:p.y}),u.parentBorderOffset&&s.add(u.parentBorderOffset))}}return o&&(i=function(e,t){return t&&Array.from(e).forEach(function(e){e.x+=t.x,e.y+=t.y}),e}(i,s.get())),i=function(e,t){var n=t.left,r=t.right,o=t.top,a=t.bottom;return void 0!==r&&void 0!==n&&r<n||void 0!==a&&void 0!==o&&a<o||e&&!Array.from(e).some(function(e){if(void 0!==r&&void 0!==n){
1if(e.left>=r)return!1;if(e.right<=n)return!1}if(void 0!==a&&void 0!==o){if(e.top>=a)return!1;if(e.bottom<=o)return!1}return!0})?null:e}(i,l),i},Ke=function(e,t){return e.left+e.width/2-t/2},Xe=function(e,t,n){return e<0?"left":e+t>n.width&&"right"},$e=function(e,t,n,r,o,a,i){var l=n/2,s=a.height/2,c=a.width/2,d=t/2,u=r/2;switch(i){case"top":return{top:r+"px",left:c-l+"px"};case"right":return{top:s-d-u+"px",left:a.width-n-r+"px"};case"bottom":return{top:a.height-t-r+"px",left:c-l+"px"};case"left":return{top:s-d-u+"px",left:r+"px"};default:return Ue({},function(e,t,n){var r=Ke(e,t),o=r;switch(Xe(r,t,n)){case"left":o=e.left;break;case"right":o=e.right-t}return{left:o+"px"}}(e,n,a),{},function(e,t,n,r){var o=n/2;return{top:(r?e.height+o+4+e.top:e.top-t-o-4)+"px"}}(e,t,r,o))}},et=function(e,t,n,r,o,a,i){var l,s=n/2,c=t/2,d=e/2,u=Ke(a,t),p=Xe(u,t,i),h={width:n+"px",height:n+"px"};switch(o){case"top":return Ue({},h,{top:"-"+s+"px",left:c-s+"px"});case"right":return Ue({},h,{top:d-s+2+"px",left:t-s+"px"});case"bottom":return Ue({},h,{top:e-s+"px",left:c-s+"px"});case"left":return Ue({},h,{top:d-s+2+"px",left:"-"+s+"px"});default:switch(p){case"left":l={left:a.width/2-s+"px"};break;case"right":l={right:s-2+"px"};break;default:l={left:t/2-s+"px"}}return Ue({top:r?"-"+(s-2)+"px":e-s-2+"px"},l,{width:n+"px",height:n+"px"})}},tt=(n(22217),n(35118)),nt=n(95735),rt=n(22884),ot=n(99870),at=n.n(ot);function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var lt="__in__cypress-highlight-tooltip-wrapper",st="__in__cypress-highlight-pinned-tooltip",ct="__in__cypress-highlight-tooltip-details",dt="__in__cypress-highlight-tooltip-arrow",ut="__in_cypress-highlight-tooltip-ui-coverage",pt="\n  height: 44px !important;\n  position: absolute !important;",ht="__in__cypress-highlight-tooltip-tag",mt="__in__cypress-highlight-tooltip-tag-container",ft="__in__cypress-highlight-tooltip-identifier",vt="__in__cypress-highlight-tooltip-tested-element-icon",yt="__in__cypress-highlight-tooltip-untested-element-icon",gt="__in__cypress-highlight-tooltip-pinned-icon",bt="#373737",St="#2E3247",wt="#5A5F7A",_t="#E1E3ED",It="\n."+lt+" {\n  "+pt+"\n  &.accessibility {\n    min-width: 104px !important;\n    background-color: "+bt+" !important;\n  }\n  &.ui-coverage {\n    background-color: "+St+" !important;\n  }\n  z-index: 2 !important;\n  border-radius: 6px !important;\n}\n\n."+st+" {\n  "+pt+"\n  &.accessibility {\n    background-color: "+bt+" !important;\n  }\n  &.ui-coverage {\n    background-color: "+St+" !important;\n  }\n  bottom: 0 !important;\n  left: 0 !important;\n  display: flex !important;\n}\n."+ct+" {\n  display: flex !important;\n  padding: 12px 16px !important;\n  gap: 8px !important;\n  justify-content: center !important; \n  align-items: center !important;\n\n  /* we need to specify width here to prevent user snapshot styles from overriding our svg widths */\n  svg {\n    width: 16px !important;\n    height: 16px !important;\n  }\n}\n."+dt+" {\n  position: absolute !important;\n  border-radius: 2px !important;\n  transform: rotate(45deg) !important;\n  &.accessibility {\n    background-color: "+bt+" !important;\n  }\n  &.ui-coverage {\n    background-color: "+St+" !important;\n  }\n}\n."+ct+' > * {\n  line-height: 20px !important;\n  font-size: 14px !important;\n  color: #fff !important;\n  font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;\n}\n\n.'+ut+" {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n}\n\n."+ft+" {\n  font-weight: 500;\n  line-height: 20px;\n  max-width: 340px;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  overflow: hidden;\n}\n\n."+ht+" {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  background-color: "+wt+";\n  border-color: "+wt+" !important;\n  border-radius: 4px !important;\n  padding: 0 4px;\n  color: "+_t+" !important;\n  font-size: 12px !important;\n  height: 16px;\n\n  svg path {\n    fill: "+_t+" !important\n  }\n}\n\n."+mt+" {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 2px;\n}\n\n."+vt+" {\n  rect {\n    fill: "+St+";\n  }\n  path {\n    stroke: #69D3A7;\n  }\n}\n\n."+yt+" {\n  rect {\n    fill: "+St+";\n  }\n  path {\n    stroke: #f59aa9; \n  }\n}
1\n\n."+gt+" {\n  path:nth-child(1) {\n    fill: #7F43C9;\n  }\n  path:nth-child(2) {\n    fill: #C8A7F5;\n  }\n}\n",xt=function(e){return Math.trunc(e)},Nt=function(e){var t=e.domRect,n=e.elementIsOffScreen,r=e.tooltipContent;return(0,o.jsx)("div",{className:ct,children:r||(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tt.HRW,{strokeColor:"white"}),(0,o.jsx)("span",{children:n?"Element is outside of Viewport":xt(t.width)+"x"+xt(t.height)})]})})};Nt.displayName="TooltipDetails";var jt=function(e){var t=e.needsFlipped,n=e.elementIsOffScreen,r=e.variant,a=e.tooltipWidth,i=e.highlightRect,l=e.iframeRect;return(0,o.jsx)("div",{className:at()(dt,r),style:et(44,n?248:a,16,t,n,i,l)})};jt.displayName="TooltipArrow";var Ct=function(e){var t=e.id,n=e.rect,i=e.iframeRef,l=e.highlight,s=e.variant,c=e.isPinned,d=(0,a.useRef)(null),u=(0,a.useState)(0),p=u[0],h=u[1];(0,a.useLayoutEffect)(function(){d.current&&h(d.current.offsetWidth)},[]);var m,f=(0,a.useMemo)(function(){return We(null==i?void 0:i.contentWindow)},[null==i?void 0:i.contentWindow]),v=(0,a.useMemo)(function(){return function(e,t){var n=e.bottom,r=e.right;return n<0?"top":r<0?"left":n>t.height?"bottom":r>t.width?"right":null}(n,f)},[f,n]),y=(0,a.useMemo)(function(){if(i&&i.contentWindow){var e=We(i.contentWindow);return(null==n?void 0:n.height)<e.height-75}return!1},[i,null==n?void 0:n.height]),g=(0,a.useMemo)(function(){return n.top<75},[n.top]),b=(0,a.useMemo)(function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({position:"absolute",width:"100%"},$e(n,44,v?248:p,16,g,f,v))},[v,f,g,n,p]);if("ui-coverage"===s&&l){var S,w=l.status,_=l.selector,I=l.label,x=l.tag,N=l.elementCount,j=l.visited;S=c?(0,o.jsx)(tt.vDT,{size:"16","data-cy":"pinned-icon",className:gt}):"pass"===w?(0,o.jsx)(tt.QwQ,{"data-cy":"tested-element-icon",className:vt,size:"16"}):(0,o.jsx)(tt.BBf,{"data-cy":"untested-element-icon",className:yt,size:"16"}),m=(0,o.jsxs)("div",{className:ut,children:[S,(0,o.jsx)("span",{className:ft,children:I||_}),x&&(0,o.jsx)(nt.A,{className:ht,size:"16",color:"gray","data-cy":"interaction-count",children:(0,o.jsxs)("div",{className:at()(mt),children:[(0,o.jsx)(rt.v,{"data-cy":"interaction-count-icon"})," ",x]})}),j&&(0,o.jsx)(nt.A,{size:"16",color:"gray","data-cy":"visited-tag",className:ht,children:(0,o.jsx)(tt.nZ7,{"data-cy":"visited-tag-icon",size:"12"})}),N&&(0,o.jsx)(nt.A,{size:"16",color:"gray","data-cy":"element-count",className:ht,children:(0,o.jsxs)("div",{className:at()(mt),children:[(0,o.jsx)(tt.$b9,{"data-cy":"element-count-icon",size:"12"}),N]})})]})}return y?(0,o.jsx)("div",{"data-cy":"highlight-tooltip-"+t,style:b,children:(0,o.jsxs)("div",{"data-cy":"highlight-tooltip-"+t+"-wrapper",className:at()(lt,s),ref:d,children:[(0,o.jsx)(jt,{tooltipWidth:p,needsFlipped:g,elementIsOffScreen:v,variant:s,highlightRect:n,iframeRect:f}),(0,o.jsx)(Nt,{tooltipContent:m,domRect:n,elementIsOffScreen:v})]})}):(0,o.jsx)("div",{"data-cy":"highlight-pinned-tooltip-"+t,className:st,children:(0,o.jsx)(Nt,{domRect:n,tooltipContent:m})})};Ct.displayName="HighlightTooltip";var At=function(e,t,n){return(0,a.useCallback)(function(){null==e||e(t,n)},[e,t,n])},Et=function(e){var t=e.showTooltip,n=e.highlight,r=e.onHighlightEvent,i=e.id,l=e.iframeRef,s=function(){var e=a.useContext(Me);if(!e)throw new Error("Cannot use HighlightLayerContext outside of HighlightLayer");return e}(),c=s.hoveredItemId,d=s.selectedItemId,u=s.clientRectsForHighlight,p=s.variant,h=n.tag,m=n.listItemId,f=n.status,v=At(r,m,"click"),y=At(r,m,"mouseIn"),g=At(r,m,"mouseOut"),b=u(n);if(!b)return null;var S=Array.from(b),w=S.length;if(!w)return null;var _=function(e){var t,n=e.dataCy,r=e.onClick,a=e.onMouseIn,i=e.onMouseOut,l=e.shouldDisplayTag,s=void 0===l||l,u=e.key,p=e.rect;return(0,o.jsx)("div",{"data-cy":n,"data-highlight-tag":s?h:void 0,onClick:r,onMouseEnter:a,onMouseLeave:i,className:(0,Te.A)("__in__cypress-highlight",f,d===m&&"listItemSelected",c===m&&"listItemHovered",s&&"__in__cypress-highlight-tag"),style:(t=p,{top:t.top+"px",left:t.left+"px",width:t.width+"px",height:t.height+"px"})},u)},I=S[0];return I?(0,o.jsxs)(o.Fragment,{children:[w>1?(0,o.jsx)("div",{"data-cy":"highlight-"+i,className:"__in__cypress-highlight-container",onClick:v,onMouseEnter:y,onMouseLeave:g,children:S.map(function(e,t){return _({key:"highlight-"+i+"-"+t,shouldDisplayTag:!!h&&t===w-1,rect:e})})}):_({dataCy:"highlight-"+i,onClick:v,onMouseIn:y,onMouseOut:g,rect:I}),t&&(0,o.jsx)(Ct,{variant:p,highlight:n,id:i,rect:I,iframeRef:l,isPinned:d===m})]}):null},Ot=n(86093),Rt="__in__cypress-highlight-layer",kt="\n."+Rt+" {\n  height: 100vh !important;\n  left: 0 !important;\n  overflow: hidden !important;\n  pointer-events: none !important;\n  position: fixed !important;\n  top: 0 !important;\n  width: 100vw !important;\n  z-index: 2147483647 !important;\n}\n",Mt=function(e){var t=e.highlights,n=e.hoveredItemId,r=e.hoveredItemSource,i=e.iframeRef,l=e.onHighlightEvent,s=e.selectedItemId,c=e.shouldRenderHighlights,d=e.variant,u=(0,Ot.FY)().setActiveElement,p=(0,a.useState)(null),h=p[0],m=p[1],f=(0,a.useReducer)(function(e){return e+1},0)[1],v=(0,a.useRef)(new Set),y=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,a.useRef)(null),S=(0,a.useRef)(!1),w=(0,a.useRef)(null),_=(0,a.useRef)(!1),I=(0,a.useRef)(null),x=(0,a.useRef)(!1),N=null==i?void 0:i.contentWindow,j=null==N?void 0:N.document,C=(0,a.useState)(null),A=C[0],E=C[1],O=(0,a.useMemo)(function(){return Qe(t,j,N)},[t,j,N]),R=s||n;R&&R!==b.current&&"highlight"!==r&&(w.current=R),b.current=null!=R?R:null;var k=w.current,M=(0,a.useMemo)(function(){var e;return k&&(null===(e=O.refsByItemId.get(k))||void 0===e?void 0:e[0])||null},[k,O]),T=(0,a.useCallback)(function(e,t,n){var r,o;n.has(t)||(e.boundingClientRect=null,null===(r=e.highlightChildSelectors)||void 0===r||r.forEach(function(e){var t=O.highlightTargetBySelector.get(e);t&&(t.clientRects=null)}),null===(o=e.scrollChildKeys)||void 0===o||o.forEach(function(e){var t=O.scrollParentByUUID.get(e);t&&T(t,e,n)}),n.add(t))},[O]),P=(0,a.useCallback)(function(){var e=new Set;Array.from(v.current).forEach(function(t){var n=O.scrollParentByUUID.get(t);n&&T(n,t,e)});var t=Array.from(v.current).length;v.current.clear(),w.current=null,m(null),t<=0&&f()},[T,O]),D=(0,a.useMemo)(function(){return $().debounce(P,50)},[P]),U=(0,a.useMemo)(function(){return $().debounce(P,100)},[P]);(0,a.useLayoutEffect)(function(){var e;if(null===(e=g.current)||void 0===e||e.call(g),O.scrollParentByUUID.size){var t={};
1O.scrollParentByUUID.forEach(function(e,n){var r=function(){return function(e){v.current.add(e),m(Array.from(v.current).join("-")),S.current?(U.cancel(),D()):(D.cancel(),U())}(n)};t[n]=r,e.target.addEventListener("scroll",r)});var n=function(){U.cancel(),D.cancel(),O.scrollParentByUUID.forEach(function(e,n){var r,o,a=t[n];null===(r=(o=e.target).removeEventListener)||void 0===r||r.call(o,"scroll",a)})};return g.current=n,n}g.current=null},[U,O,D]),(0,a.useLayoutEffect)(function(){I.current&&E(I.current)},[]),(0,a.useEffect)(function(){if(_.current)return _.current=!1,w.current=null,void f();M&&(null!==y.current&&window.cancelAnimationFrame(y.current),S.current=!0,M.scrollIntoView({block:"center",behavior:"instant"}),y.current=window.requestAnimationFrame(function(){S.current=!1,y.current=null}),D())},[D,M]),(0,a.useEffect)(function(){if(s){var e=O.refsByItemId.get(s);u(e||null)}else u(null)},[O,s,u]);var V=(0,a.useCallback)(function(e){var t=Ye(e,O.scrollParentByUUID,N);return t||null},[N,O]),F=(0,a.useCallback)(function(e){var t,o=e.listItemId;if(!c||s&&s!==o||!s&&n&&n!==o&&"accordion"===r||!s&&!n&&"ui-coverage"!==d)return null;var a=O.highlightTargetBySelector.get(He(e));return a?h&&(null===(t=a.scrollParentKeys)||void 0===t?void 0:t.some(function(e){return v.current.has(e)}))||k&&k===o?null:V(a):null},[n,r,k,O,h,s,c,V,d]),B=(0,a.useMemo)(function(){return{selectedItemId:s,clientRectsForHighlight:F,hoveredItemId:n,variant:d}},[s,F,n,d]),H=(0,a.useCallback)(function(e,t){_.current=!0,null==l||l(e,t)},[l]),W=O.sortedHighlights,L=(0,a.useMemo)(function(){return x.current=!1,null==W?void 0:W.map(function(e){var t,r=e.highlight,a=r.listItemId+(void 0===r.groupIndex?"":"_"+r.groupIndex),l=!1;s!==r.listItemId&&(s||n!==r.listItemId)||x.current||("accessibility"===d||1===r.groupLength||void 0!==r.groupIndex&&(0,Ot.WT)(A,null===(t=O.refsByItemId.get(r.listItemId))||void 0===t?void 0:t[r.groupIndex]))&&(l=!0,x.current=!0);return(0,o.jsx)(Et,{showTooltip:l,id:a,highlight:r,iframeRef:i,onHighlightEvent:H},a)})},[W,s,n,i,H,O.refsByItemId,A,d]);return(0,o.jsx)("div",{className:Rt,"data-cy":"highlight-layer",ref:I,children:(0,o.jsx)(Me.Provider,{value:B,children:L})})};Mt.displayName="HighlightLayer";var Tt=n(30927),Pt=n(1048).hp;function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vt={includeShadowDom:!0,asIntelligenceSnapshot:!0},Ft=function(){var e=(0,f.A)(m().mark(function e(t,n){var r,o;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.contentDocument){e.next=2;break}return e.abrupt("return");case 2:return r=t.contentDocument.querySelectorAll("[data-cy-attribute-hash], "+Object.keys(x).map(function(e){return"["+e+"]"}).join(", ")),o=[],Array.from(r).forEach(function(e){var t,r;t=e,r=Vt,Object.keys(x).forEach(function(e){var n=t.getAttribute(e);n&&N(t,e,n,void 0,r)!==e&&t.removeAttribute(e)});var a=e.getAttribute("data-cy-attribute-hash");if(a){e.removeAttribute("data-cy-attribute-hash");var i=n.find(function(e){return e.hash===a});if(!i)return;var l=i.contents;switch(i.type){case"img":e.setAttribute("src",l);break;case"source":e.setAttribute("srcset",l);break;case"svg":var s=Pt.from(l,"utf8"),c=(0,Tt.A)(s).then(function(t){t&&(e.innerHTML=t.toString("utf8"))}).catch(function(e){console.error("Unsafe SVG content: "+l,e)});o.push(c);break;case"noscript":case"link":case"style":e.textContent=l;break;default:console.error(new Error("Unexpected type "+i.type))}}}),e.next=7,Promise.all(o);case 7:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Bt=function(){var e=(0,f.A)(m().mark(function e(t,n){var r,o,a,i;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n=10),t.contentDocument){e.next=3;break}return e.abrupt("return");case 3:return r=t.contentDocument.querySelectorAll('link[rel="stylesheet"]'),o=new Set,Array.from(r).forEach(function(e){var t=e.href;o.add(t)}),a=t.contentDocument.querySelectorAll("img"),i=0,e.next=10,new Promise(function(e){!function r(){for(var l,s,c=null!=(l=null===(s=t.contentDocument)||void 0===s?void 0:s.styleSheets.length)?l:0,d=0;d<c;d++){var u,p=null===(u=t.contentDocument)||void 0===u?void 0:u.styleSheets[d];(null==p?void 0:p.href)&&o.delete(p.href)}var h=0===o.size,m=Array.from(a).every(function(e){return e.complete||"lazy"===e.loading});h&&m?e(!0):i<n?(i++,setTimeout(r,250)):e(!1)}()});case 10:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Ht=function(){var e=(0,f.A)(m().mark(function e(t,n,r,o){var a,i,l,s;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wt(r,o);case 2:return a=e.sent,i=JSON.parse(null!=n?n:""),l={type:"dom:full-snapsh
1ot",id:0,timestamp:0},s=a.some(function(e){var t;return"nodePatch"===e.type&&(null===(t=e.contents)||void 0===t?void 0:t.includes("data-cy-discovery-canvas-image"))}),ke(Ut({},l,{payload:i}),Ut({iframeRef:{current:t},nodeMap:{current:new me},hrefResolver:{current:new q},networkResources:{domNetworkAssets:{pathHash:{},hashData:{}}}},s?{canvasResources:{domCanvasAssets:{imageData:{}}}}:{},{config:Vt,nodePatches:a.reduce(function(e,t){return"nodePatch"===t.type&&(e[t.hash]=JSON.parse(t.contents)),e},{})||{}})),e.next=9,Ft(t,a);case 9:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}(),Wt=function(){var e=(0,f.A)(m().mark(function e(t,n){var r,o;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=(null!=t?t:[]).map(function(e){return e.contents?Promise.resolve(Ut({},e,{contents:e.contents})):fetch("/replay_asset_discovery/project/"+n.projectSlug+"/build/"+n.buildUUID+"/asset/"+e.hash+".json").then(function(e){return e.json()}).then(function(t){return Ut({},e,{contents:JSON.stringify(t)})}).catch(function(){return console.error("Failed to load asset "+e.hash),Ut({},e,{contents:"{}"})})}),e.next=3,Promise.all(r);case 3:return o=e.sent,e.abrupt("return",o);case 5:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Lt=n(72384),Zt=function(){return(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"49",viewBox:"0 0 48 49",fill:"none",children:[(0,o.jsx)("path",{d:"M43 37.5V16.5H5V37.5C5 39.1569 6.34315 40.5 8 40.5H40C41.6569 40.5 43 39.1569 43 37.5Z",fill:"#E1E3ED"}),(0,o.jsx)("path",{d:"M20 36.4993C20.5523 36.4993 21 36.0516 21 35.4993C21 34.947 20.5523 34.4993 20 34.4993V36.4993ZM17 34.4993C16.4477 34.4993 16 34.947 16 35.4993C16 36.0516 16.4477 36.4993 17 36.4993V34.4993ZM12 26.4993C11.4477 26.4993 11 26.947 11 27.4993C11 28.0516 11.4477 28.4993 12 28.4993V26.4993ZM10 23.4993C9.44772 23.4993 9 23.947 9 24.4993C9 25.0516 9.44772 25.4993 10 25.4993V23.4993ZM23 25.4993C23.5523 25.4993 24 25.0516 24 24.4993C24 23.947 23.5523 23.4993 23 23.4993V25.4993ZM35 22.4993C35.5523 22.4993 36 22.0516 36 21.4993C36 20.947 35.5523 20.4993 35 20.4993V22.4993ZM10 20.4993C9.44772 20.4993 9 20.947 9 21.4993C9 22.0516 9.44772 22.4993 10 22.4993V20.4993ZM38 28.4993C38.5523 28.4993 39 28.0516 39 27.4993C39 26.947 38.5523 26.4993 38 26.4993V28.4993ZM13 33.4993L13.5548 34.3312C13.833 34.1457 14.0001 33.8335 14 33.4991C13.9999 33.1647 13.8328 32.8525 13.5546 32.6671L13 33.4993ZM10.5546 30.6679C10.095 30.3616 9.47413 30.4859 9.16786 30.9454C8.86158 31.405 8.98586 32.0259 9.44544 32.3321L10.5546 30.6679ZM9.44516 34.668C8.98568 34.9745 8.86161 35.5954 9.16804 36.0548C9.47447 36.5143 10.0954 36.6384 10.5548 36.332L9.44516 34.668ZM15.0002 20.4993L14.0002 20.4991L13.9998 22.4991L14.9998 22.4993L15.0002 20.4993ZM18.9998 22.5L19.9998 22.5002L20.0002 20.5002L19.0002 20.5L18.9998 22.5ZM22.0001 20.4993L21.0001 20.4991L20.9999 22.4991L21.9999 22.4993L22.0001 20.4993ZM26.9999 22.5L27.9999 22.5001L28.0001 20.5001L27.0001 20.5L26.9999 22.5ZM22 26.4993H21V28.4993H22V26.4993ZM27 28.4993H28V26.4993H27V28.4993ZM30 26.4993H29V28.4993H30V26.4993ZM32 28.4993H33V26.4993H32V28.4993ZM8 9.5H40V7.5H8V9.5ZM42 11.5V37.5H44V11.5H42ZM6 37.5V11.5H4V37.5H6ZM8 39.5C6.89543 39.5 6 38.6046 6 37.5H4C4 39.7091 5.79086 41.5 8 41.5V39.5ZM42 37.5C42 38.6046 41.1046 39.5 40 39.5V41.5C42.2091 41.5 44 39.7091 44 37.5H42ZM40 9.5C41.1046 9.5 42 10.3954 42 11.5H44C44 9.29086 42.2091 7.5 40 7.5V9.5ZM8 7.5C5.79086 7.5 4 9.29086 4 11.5H6C6 10.3954 6.89543 9.5 8 9.5V7.5ZM4 11.5V16.5H6V11.5H4ZM44 16.5V11.5H42V16.5H44ZM44 37.5V16.5H42V37.5H44ZM4 16.5V37.5H6V16.5H4ZM5 17.5H43V15.5H5V17.5ZM40 39.5H8V41.5H40V39.5ZM20 34.4993H17V36.4993H20V34.4993ZM15 28.4993H20V26.4993H15V28.4993ZM12 28.4993H14V26.4993H12V28.4993ZM10 25.4993H15V23.4993H10V25.4993ZM23 23.4993H16.01V25.4993H23V23.4993ZM35 20.4993H29V22.4993H35V20.4993ZM10 22.4993H13V20.4993H10V22.4993ZM34 28.4993H38V26.4993H34V28.4993ZM13.5546 32.6671L10.5546 30.6679L9.44544 32.3321L12.4454 34.3314L13.5546 32.6671ZM12.4452 32.6673L9.44516 34.668L10.5548 36.332L13.5548 34.3312L12.4452 32.6673ZM14.9998 22.4993L18.9998 22.5L19.0002 20.5L15.0002 20.4993L14.9998 22.4993ZM21.9999 22.4993L26.9999 22.5L27.0001 20.5L22.0001 20.4993L21.9999 22.4993ZM22 28.4993H27V26.4993H22V28.4993ZM30 28.4993H32V26.4993H30V28.4993Z",fill:"#747994"}),(0,o.jsx)("path",{d:"M10 12.5C10 13.0523 9.55228 13.5 9 13.5C8.44772 13.5 8 13.0523 8 12.5C8 11.9477 8.44772 11.5 9 11.5C9.55228 11.5 10 11.9477 10 12.5Z",fill:"#747994"}),(0,o.jsx)("path",{d:"M13 12.5C13 13.0523 12.5523 13.5 12 13.5C11.4477 13.5 11 13.0523 11 12.5C11 11.9477 11.4477 11.5 12 11.5C12.5523 11.5 13 11.9477 13 12.5Z",fill:"#747994"}),(0,o.jsx)("path",{d:"M16 12.5C16 13.0523 15.5523 13.5 15 13.5C14.4477 13.5 14 13.0523 14 12.5C14 11.9477 14.4477 11.5 15 11.5C15.5523 11.5 16 11.9477 16 12.5Z",fill:"#747994"})]})};Zt.displayName="IconTerminalLog";var zt=n(40895),Gt=n(89602);const Jt="module-SnapshotFooter__footerContainer__mjKIA",Qt="module-SnapshotFooter__primaryRow__Lcmxk",qt="module-SnapshotFooter__expanded__Gm0cl",Yt="module-SnapshotFooter__urlLabelContainer__TsXYh",Kt="module-SnapshotFooter__chevronIcon__JdieT",Xt="module-SnapshotFooter__rulerIcon__wg19q",$t="module-SnapshotFooter__globeIcon__qmjtk",en="module-SnapshotFooter__expandButton__ce3_O",tn="module-SnapshotFooter__divider__jztUE",nn="module-SnapshotFooter__text__dnNBE",rn="module-SnapshotFooter__truncate__cifV5",on="module-SnapshotFooter__clipboardButton__VU4aK",an="module-SnapshotFooter__urlCountTag__QLdoM";var ln=function(){return(0,o.jsx)(tt.nZ7,{size:"16",fillColor:"gray-50",className:$t})};ln.displayName="UrlIcon";var sn=function(e){var t=e.isExpanded,n=e.onClick,r=t?tt.scG:tt.yTb;return(0,o.jsx)(zt.Ay,{className:en,variant:"white",size:"20","aria-label":(t?"Hide":"Show")+" more URLs","data-cy":"snapshot-footer-toggle-expand",onClick:n,children:(0,o.jsx)(r,{size:"16",className:Kt})})};sn.displayName="FooterExpandButton";var cn=function(e){var t=e.url;return(0,o.jsx)(Gt.T,{className:on,clipboardText:t,ariaLabel:"Copy URL to clipboard",hoverText:"Copy URL","data-cy":"snapshot-footer-copy-url"})};cn.displayName="CopyButton";var dn=function(e){var t=e.urls,n=e.viewport,r=(0,a.useState)(!1),i=r[0],l=r[1],s=(null==t?void 0:t[0])||"",c=(null==t?void 0:t.slice(1))||[],d=c.length;return(0,o.jsxs)("div",{className:(0,Te.A)(Jt,"fs-exclude",i&&""+qt),"data-cy":"snapshot-footer",children:[(0,o.jsxs)("div",{className:Qt,children:[(0,o.jsx)("div",{className:Yt,"data-cy":"snapshot-footer-primary-url",children:s&&(0,o.jsxs)(o.Fragment,{children:[d?(0,o.jsx)(sn,{isExpanded:i,onClick:function(){return l(function(e){return!e})}}):(0,o.jsx)(ln,{}),(0,o.jsx)("div",{className:(0,Te.A)(nn,rn),title:s,children:s}),(0,o.jsx)(cn,{url:s}),d?(0,o.jsxs)(nt.A,{color:"gray",size:"16",className:an,children:["+",d," URL",d>1?"s":""]}):null]})}),(0,o.jsx)("div",{className:tn}),(0,o.jsx)(tt.HRW,{size:"16",fillColor:"gray-500",className:Xt}),(0,o.jsxs)("div",{className:nn,children:[n.width,"x",n.height]})]}),i&&(0,o.jsx)("ul",{children:c.map(function(e){return(0,o.jsx)("li",{children:(0,o.jsxs)("div",{className:Yt,children:[(0,o.jsx)(tt.nZ7,{size:"16",fillColor:"gray-50",className:$t}),(0,o.jsx)("div",{className:(0,Te.A)(nn,rn),title:e,children:e}),(0,o.jsx)(cn,{url:e})]})},e)})})]})};dn.displayName="SnapshotFooter";var un=n(54574),pn=n(21627),hn=n(65842),mn=n(31749),fn=n(20467),vn=n(81648);const yn="module-IntelligenceHighlightMenu__snapshotDrawer__S1Q4t",gn="module-IntelligenceHighlightMenu__snapshotUtilityButton__QXQcF",bn="module-IntelligenceHighlightMenu__highlightLabel__ezfWP",Sn="module-IntelligenceHighlightMenu__snapshotDrawerDivider__k4kLg",wn="module-IntelligenceHighlightMenu__inspectTitle__zHFM0",_n="module-IntelligenceHighlightMenu__inspectBody__tMyb5",In="module-IntelligenceHighlightMenu__keyCombo__n4fTH",xn="module-IntelligenceHighlightMenu__keyContainer__Lw43v",Nn="module-IntelligenceHighlightMenu__logoIcon__ayAfz",jn="module-IntelligenceHighlightMenu__logoText__hqv3i";var Cn=function(){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,o.jsx)("path",{d:"M2 6.5C2.82843 6.5 3.5 7.17157 3.5 8C3.5 8.82843 2.82843 9.5 2 9.5C1.17157 9.5 0.5 8.82843 0.5 8C0.5 7.17157 1.17157 6.5 2 6.5ZM8 6.5C8.82843 6.5 9.5 7.17157 9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5ZM14 6.5C14.8284 6.5 15.5 7.17157 15.5 8C15.5 8.82843 14.8284 9.5 14 9.5C13.1716 9.5 12.5 8.82843 12.5 8C12.5 7.17157 13.1716 6.5 14 6.5Z",fill:"#4956E3",stroke:"#4956E3"})})};Cn.displayName="DotsIcon";var An=function(e){var t="Unknown OS";return-1!==e.indexOf("Win")&&(t="Windows"),-1!==e.indexOf("Mac")&&(t="MacOS"),-1!==e.indexOf("X11")&&(t="UNIX"),-1!==e.indexOf("Linux")&&(t="Linux"),t},En=function(e){var t=e.isHighlightVisible,n=e.onHighlightToggle,r="highlight-menu-toggle",i=function(e){return{browserName:ee(e),osName:An(e)}}(e.userAgent),l=i.browserName,s=function(e){return{Safari:(0,o.jsx)(tt.a8J,{}),Chrome:(0,o.jsx)(tt.inJ,{}),Firefox:(0,o.jsx)(tt.LdW,{}),Edge:(0,o.jsx)(tt.nNz,{})}[e]}(l),c=function(e){return"MacOS"===e.osName?{Chrome:["⌘","⌥","C"],Firefox:["⌘","⌥","C"],Safari:["⌘","⌥","I"]}[e.browserName]:{Chrome:["Ctrl","⇧","C"],Firefox:["Ctrl","⇧","C"],Edge:["Ctrl","⇧","C"]}[e.browserName]}(i);return(0,a.useEffect)(function(){if(l){var e=function(e){return{Safari:"browser-safari_16",Chrome:"browser-chrome_16",Firefox:"browser-mozilla-firefox_16",Edge:"browser-edge_16"}[e]}(l),t=document.querySelector('[data-cy-svg-defs="'+e+'"]');t&&(t.style.position="absolute")}},[l]),(0,o.jsxs)("div",{"data-cy":"highlight-menu-drawer",className:yn,id:"highlight-menu-drawer",children:[(0,o.jsx)("form",{children:(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)("label",{className:bn,htmlFor:r,children:"Show DOM highlights"}),(0,o.jsx)("div",{className:"mr-[2px]",children:(0,o.jsx)(fn.dO,{id:r,"data-cy":"highlight-display-toggle",checked:t,onChange:n,size:"x32"})})]})}),l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:Sn}),(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:wn,children:"Inspect elements"}),(0,o.jsx)("div",{className:_n,children:"Use your browser's DevTools to inspect elements of snapshot below."}),(0,o.jsxs)("div",{className:In,"data-cy":"highlight-inspect-hotkeys",children:[(0,o.jsx)("div",{className:Nn,children:s}),(0,o.jsx)("div",{className:jn,children:l}),(0,o.jsx)("div",{className:xn,children:null==c?void 0:c.map(function(e){return(0,o.jsx)(nt.A,{color:"gray","data-cy":"tag-browser-key",size:"16",children:e},e)})})]})]})]})]})};En.displayName="HighlightDrawer";var On=function(e){var t=e.isHighlightVisible,n=e.onHighlightToggle,r=e.userAgent,a=void 0===r?navigator.userAgent:r;return(0,o.jsx)(vn.A,{buttonContent:(0,o.jsx)(Cn,{}),buttonAttrs:{"data-cy":"highlight-menu-button","aria-label":"View snapshot options",className:gn},dialogAttrs:{"data-cy":"highlight-menu-dropdown","aria-label":"Snapshot options"},dialogContent:(0,o.jsx)(En,{isHighlightVisible:t,onHighlightToggle:n,userAgent:a}),popoverAttrs:{placement:"bottom right"}})};On.displayName="IntelligenceHighlightMenu";var Rn=n(65209),kn=n(65398),Mn=n.n(kn);const Tn={pinnedSnapshotButton:"module-SnapshotHeader__pinnedSnapshotButton__YbWP4",snapshotHeader:"module-SnapshotHeader__snapshotHeader__yq0cd",snapshotButtonGroup:"module-SnapshotHeader__snapshotButtonGroup__veLbh",snapshotText:"module-SnapshotHeader__snapshotText__cw7MX",snapshotHeaderRight:"module-SnapshotHeader__snapshotHeaderRight__xFQlJ",snapshotScoreTag:"module-SnapshotHeader__snapshotScoreTag__LmIQo",testReplayChevron:"module-SnapshotHeader__testReplayChevron__pn5ZZ",testReplayButton:"module-SnapshotHeader__testReplayButton__eKCDh",hideAtBreakp
1oint:"module-SnapshotHeader__hideAtBreakpoint__uAqFg"};var Pn=n(3082),Dn=function(e){var t=e.domSnapshotId,n=e.handleSnapshotChange,r=e.hideAllHighlights,a=e.hideReportIssueButton,i=e.onHighlightToggle,l=e.orgId,s=e.runId,c=e.score,d=e.snapshotNumber,u=e.snapshots,p=e.snapshotTests,h=e.selectedItemId,m=e.variant,f="Snapshot",v=u.current+" of "+u.total,y=f+" "+v,g=(0,Pn.ok)().setSearchParams;return(0,o.jsxs)("div",{className:Tn.snapshotHeader,"data-cy":"snapshot-header",children:[(0,o.jsxs)("div",{className:"flex items-center justify-center",children:[(0,o.jsxs)("div",{className:Tn.snapshotButtonGroup,children:[(0,o.jsx)(un.r,{direction:"left",disabled:1===u.current,onClick:function(){return n("previous")},"aria-label":"Navigate to the previous snapshot","data-cy":"snapshot-button-prev"}),(0,o.jsx)(un.r,{direction:"right",disabled:u.current===u.total,onClick:function(){return n("next")},"aria-label":"Navigate to the next snapshot","data-cy":"snapshot-button-next"})]}),(0,o.jsxs)("span",{className:Tn.snapshotText,"data-cy":"snapshot-list",children:[h?(0,o.jsx)(Un,{onClick:function(){return g({targetId:void 0,itemId:void 0})},children:(0,o.jsxs)("span",{"aria-label":y,children:[(0,o.jsxs)("span",{"aria-hidden":!0,className:Tn.hideAtBreakpoint,"data-cy":"snapshot-label",children:[f," "]}),(0,o.jsxs)("span",{"aria-hidden":!0,children:[v," "]})]})}):(0,o.jsxs)("span",{"aria-label":y,children:[(0,o.jsxs)("span",{"aria-hidden":!0,className:Tn.hideAtBreakpoint,"data-cy":"snapshot-label",children:[f," "]}),(0,o.jsxs)("span",{"aria-hidden":!0,children:[v," "]})]}),(0,o.jsx)(nt.A,{className:Tn.snapshotScoreTag,color:"gray",size:"20","data-cy":"snapshot-score-tag",children:(0,pn.Ee)(c)})]})]}),(0,o.jsxs)("div",{"data-cy":"snapshot-child",className:Tn.snapshotHeaderRight,children:[!a&&(0,o.jsx)(mn.G,{variant:m,orgId:l,spanClassName:Tn.hideAtBreakpoint}),t&&(0,o.jsx)(hn.M,{buttonContent:function(e){var t=e.testCount,n=e.buttonTitle;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tt.X9m,{}),(0,o.jsx)("span",{"aria-hidden":!0,className:Tn.hideAtBreakpoint,"data-cy":"test-replay-button-label",children:n}),(0,o.jsx)(nt.A,{"aria-hidden":!0,color:"gray",size:"16",className:Tn.specCount,children:t}),(0,o.jsx)(tt.e6o,{"data-cy":"test-replay-chevron",className:Tn.testReplayChevron})]})},buttonAttrs:function(e){var t=e.testCount,n=e.buttonTitle;return{"data-cy":"test-replay-button",className:Tn.testReplayButton,"aria-label":n+" "+t}},dialogAttrs:{"data-cy":"filter-dropdown","aria-labelledby":"test-replay-menu-dialog-label"},dialogContent:function(e){var t=e.specs,n=e.triggerTestReplay;return function(e){var r=e.close;return(0,o.jsx)(Rn.R,{menuHeader:function(e){var n=e.testCount;return(0,o.jsxs)("div",{id:"test-replay-menu-dialog-label",children:[" ","Snapshot ",d," has been seen in"," ",Mn()("test",n,!0),t.length>1?" across "+t.length+" specs":null,"."]})},specs:t,testClicked:function(e){r(),n(e,"test-replay-menu-wrapper-snapshot")}})}},popoverAttrs:{placement:"bottom right"},runUuid:s,snapshotTests:p,variant:"test-replay-menu-wrapper-snapshot"},t),(0,o.jsx)(On,{isHighlightVisible:!r,onHighlightToggle:i})]})]})};Dn.displayName="SnapshotHeader";var Un=function(e){var t=e.children,n=e.onClick;return(0,o.jsx)(zt.Ay,{className:Tn.pinnedSnapshotButton,variant:"indigo-light","data-cy":"pinned-snapshot-count",size:"20",onClick:n,children:(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)(tt.vDT,{className:"mr-[3px]"}),(0,o.jsx)("div",{className:"pb-[1px]",children:t})," ",(0,o.jsx)(tt.cJL,{className:"ml-[5px]"})]})})};Un.displayName="PinnedTag";const Vn="module-MissingElementOverlay__overlayOuter__Afgpp",Fn="module-MissingElementOverlay__overlayInner__uVIcu",Bn="module-MissingElementOverlay__backdrop__nPcxF",Hn="module-MissingElementOverlay__content__IX46Q",Wn="module-MissingElementOverlay__icon__DvVqm",Ln="module-MissingElementOverlay__title__HiFxY",Zn="module-MissingElementOverlay__subtitle__Ti29T",zn="module-MissingElementOverlay__label__Grg2w",Gn="module-MissingElementOverlay__start__oPn4J",Jn="module-MissingElementOverlay__end__oXd7v";var Qn=function(e){var t=e.label,n=e.icon,r=e.isCompact,a=void 0!==r&&r;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{"data-cy":"missing-element-overlay",className:Vn,children:(0,o.jsx)("div",{className:Fn,children:(0,o.jsxs)("div",{className:Hn,children:[!a&&(0,o.jsx)("div",{className:Wn,children:(0,o.jsx)(rt.cX,{})}),(0,o.jsx)("div",{className:Ln,children:"Element is not in this snapshot"}),!a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:Zn,children:"Click to change to a snapshot containing this element."}),(0,o.jsxs)("div",{className:zn,children:[(0,o.jsx)("div",{className:Gn,children:n}),(0,o.jsx)("div",{className:Jn,children:t})]})]})]})})}),(0,o.jsx)("div",{"data-cy":"missing-element-backdrop",className:Bn})]})};function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Yn=function(e){var t,n,h,v=e.fragment,y=e.handleSnapshotChange,g=e.hideReportIssueButton,b=e.highlights,S=e.hoveredItemId,w=e.hoveredItemSource,_=e.loading,I=e.missingElementMeta,x=e.onHighlightEvent,N=e.orgId,j=e.runId,C=e.projectSlug,A=e.score,E=e.selectedItemId,O=e.snapshots,R=e.snapshotTests,k=e.variant,M=(0,a.useRef)(null),T=(0,a.useRef)(!1),P=(0,a.useReducer)(function(e){return e+1},0)[1],D=(0,a.useState)(!1),U=D[0],V=D[1],F=a.useMemo(function(){return function(){V(!U)}},[V,U]);if(b.length>0&&new Set(b.map(function(e){return e.listItemId+"-"+e.groupIndex})).size!==b.length)throw new Error("Snapshot highlights must contain unique ids");a.useEffect(function(){T.current=!1,V(!1)},[null==v?void 0:v.domSnapshot.id,V]);var B=a.useCallback(function(){window.requestAnimationFrame(function(){T.current=!0,P()})},[P]);!function(e){var t=e.fragment,n=e.iframeRef,r=e.showPointerOnHighlight,o=e.onComplete,i=e.highlighterClass,l=e.highlighterContainerClass,s=e.requestScope,c=null==t?void 0:t.domSnapshot.fullDomSnapshotEvent,d=null==t?void 0:t.domSnapshot.docStringSnapshot,u=null==t?void 0:t.domSnapshot.hashedAssets,p=(0,a.useMemo)(function(){return{projectSlug:s.projectSlug,buildUUID:s.buildUUID}},[s.projectSlug,s.buildUUID]),h=a.useState(!1),v=h[0],y=h[1],g=a.useCallback((0,f.A)(m().mark(function e(){var t;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(y(!1),n.current){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,Bt(n.current);case 5:(t=n.current.contentDocument.createElement("style")).setAttribute("data-cy",Be),t.addEventListener("load",function(){y(!0)}),t.innerHTML="\n      * {\n        -webkit-animation-duration: 0ms !important;\n        -moz-animation-duration: 0ms !important;\n        -o-animation-duration: 0ms !important;\n        animation-duration: 0ms !important;\n        scroll-behavior: auto !important;\n        -webkit-transition-duration: 0ms !important;\n        -moz-transition-duration: 0ms !important;\n        -o-transition-duration: 0ms !important;\n        transition-duration: 0ms !important;\n      }\n      ."+i+" {\n        position: absolute !important;\n        cursor: "+(r?"pointer":"default")+" !important;\n        border-width: 1px !important;\n        border-color: #747994 !important;\n        border-style: dashed !important;\n        background-color: rgba(191, 194, 212, 0.25) !important;\n        pointer-events: auto !important;\n        box-sizing: border-box !important;\n      }\n      ."+i+".fail {\n        border-color: #E45770 !important;\n        background-color: rgba(245, 154, 169, 0.35) !important;\n      }\n      ."+i+".incomplete {\n        border-color: #DB7903 !important;\n        background-color: rgba(219, 121, 3, 0.35) !important;\n      }\n      ."+i+".pass {\n        border-color: #1FA971 !important;\n        background-color: rgba(105, 211, 167, 0.35) !important;\n      }\n      ."+i+".hidden {\n        display: none !important;\n      }\n      ."+i+".listItemHovered,\n      ."+i+".listItemSelected {\n        border-style: solid !important;\n      }\n      ."+i+":hover {\n        border-width: 3px !important !important;\n      }\n      ."+l+":has(*:hover) > ."+i+" {\n        border-width: 3px !important !important;\n      }\n      ."+i+'.__in__cypress-highlight-tag::before {\n        border-radius: 4px !important;\n        bottom: -5px !important;\n        color: #fff !important;\n        content: attr(data-highlight-tag) !important;\n        font-size: 12px !important;\n        line-height: 16px !important;\n        min-width: 16px !important;\n        padding: 0 4px !important;\n        position: absolute !important;\n        right: -5px !important;\n        text-align: center !important;\n        z-index: 1 !important;\n        font-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;\n      }\n      .'+i+".__in__cypress-highlight-tag:hover::before {\n        bottom: -5px !important;\n        right: -5px !important;\n      }\n      ."+l+":has(*:hover) > ."+i+".__in__cypress-highlight-tag::before {\n        bottom: -5px !important;\n        right: -5px !important;\n      }\n      ."+i+".__in__cypress-highlight-tag.pass::before {\n        background-color: #00814D !important;\n      }\n      ."+i+".__in__cypress-highlight-tag.fail::before {\n        background-color: #C62B49 !important;\n      }\n      ."+i+".__in__cypress-highlight-tag.incomplete::before {\n        background-color: #DB7903 !important;\n      }\n      "+kt+"\n      \n      "+It+"\n    ",n.current.contentDocument.head.appendChild(t);case 10:case"end":return e.stop()}},e)})),[i,l,n,r,y]);(0,a.useEffect)(function(){v&&o()},[v,o]),(0,a.useEffect)(function(){n.current&&c&&Ht(n.current,c,u,p).then(function(){g()}),null!==n.current&&d&&(n.current.onload=(0,f.A)(m().mark(function e(){var t;return m().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wt(u,p);case 2:return t=e.sent,e.next=5,Ft(n.current,t);case 5:g();case 6:case"end":return e.stop()}},e)})),n.current.srcdoc=d)},[n,c,u,d,r,g,p])}({fragment:v,iframeRef:M,showPointerOnHighlight:!!x,onComplete:B,highlighterClass:"__in__cypress-highlight",highlighterContainerClass:"__in__cypress-highlight-container",requestScope:{projectSlug:C,buildUUID:j}});var H,W,L,Z,z,G,J,Q=a.useRef(null),q=(0,u.A)({ref:Q}),Y={height:(null==v?void 0:v.viewport.height)||660,width:(null==v?void 0:v.viewport.width)||1e3},K=null==M||null===(t=M.current)||void 0===t||null===(n=t.contentWindow)||void 0===n||null===(h=n.document)||void 0===h?void 0:h.body,X=!_&&!!T.current&&!!K,$=_||v&&!T.current;return!v&&!_?(0,o.jsx)("div",{className:i,children:(0,o.jsx)(Lt.O_,{dataCy:"snapshot-view-empty",fill:!0,icon:(0,o.jsx)(Zt,{}),primaryText:"No snapshots available",secondaryText:"There are no snapshots available for this view."})}):(0,o.jsxs)("div",{className:i,children:[(0,o.jsx)(Dn,{domSnapshotId:null==v?void 0:v.domSnapshot.id,handleSnapshotChange:y,hideAllHighlights:U,hideReportIssueButton:g,onHighlightToggle:F,orgId:N,runId:j,score:A,snapshotNumber:O.current,snapshots:O,snapshotTests:R,selectedItemId:E,variant:k}),(0,o.jsxs)("div",{ref:Q,className:l,children:[I&&(0,o.jsx)(Qn,{label:I.label,icon:I.icon,isCompact:!!q.height&&q.height<2
115}),$&&(0,o.jsx)("div",{"data-cy":"loading-spinner",className:s,children:(0,o.jsx)(d.A,{})}),!(_&&!v)&&(H=!!I||!!$,W=Y.height+2,L=Y.width+2,Z=(null==q?void 0:q.height)?q.height/W:0,z=(null==q?void 0:q.width)?q.width/L:0,G=Math.min(Z,z,1),J=H?{inert:"true"}:void 0,(0,o.jsx)("div",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},J,{"data-cy":"snapshot-frame-container",style:{transformOrigin:"top",height:W+"px",width:L+"px",transform:"scale("+G+")",position:"absolute"},children:(0,o.jsx)("iframe",{ref:M,title:"Snapshot",className:"fs-exclude",style:{height:"inherit",width:"inherit",position:"absolute",backgroundColor:"white",boxShadow:"0px 1px 3px 0px rgba(0, 0, 0, 0.15)",border:"1px solid rgba(27, 30, 46, 0.07)"},children:X&&(0,p.createPortal)((0,o.jsx)(Mt,{variant:k,shouldRenderHighlights:!U,highlights:b,iframeRef:M.current,onHighlightEvent:x,selectedItemId:E,hoveredItemId:S,hoveredItemSource:w}),K)},null==v?void 0:v.domSnapshot.id)})))]}),X&&v&&(0,o.jsx)("div",{className:c,children:(0,o.jsx)(dn,{urls:v.urls,viewport:Y},v.id)})]})};Yn.displayName="IntelligenceSnapshotView"},25579:(e,t,n)=>{n.d(t,{v:()=>d});var r=n(31085),o=(n(14041),n(95735)),a=n(99870),i=n.n(a),l=n(35118),s=n(6035),c=n(23400),d=function(e){var t=e.size,n=void 0===t?"16":t,a=e.dark,d=void 0!==a&&a,u=e.muted,p=void 0!==u&&u,h=e.tooltipContent;return(0,r.jsx)(s.H,{tooltipSimpleString:h?void 0:"Added",tooltipContent:h,children:(0,r.jsx)(o.A,{size:n,color:"white","data-cy":"added-tag",dark:d,className:i()(c.A.elementsTag,c.A.outlineTag,c.A.visitedTag),children:p?(0,r.jsx)(l.iN7,{size:"12",strokeColor:"gray-500",fillColor:"transparent"}):(0,r.jsx)(l.iN7,{size:"12",strokeColor:"jade-400"})})})};d.displayName="AddedTag"},11290:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(31085),o=(n(14041),n(95735)),a=n(20467),i=n(35118),l=n(65398),s=n.n(l),c=n(23400),d=function(e){var t=e.interactionCount,n=e.dark,l=void 0!==n&&n,d=e.hideTooltip,u=void 0!==d&&d,p=e.tooltipText,h=e.icon,m=e.size,f=void 0===m?"16":m,v=h||(0,r.jsx)(i.KjV,{size:"12",strokeColor:"gray-600"});return"number"!=typeof t||isNaN(t)||t<=0?null:(0,r.jsx)(a.m_,{hideTooltip:u,placement:"top",overlay:function(){return p?p(t):s()("interaction",t,!0)},children:(0,r.jsxs)(o.A,{size:f,color:"white",dark:l,"data-cy":"interaction-count",className:c.A.interactionsTag+" "+c.A.outlineTag,children:[v," ",t]})})};d.displayName="InteractionCountTag"},6035:(e,t,n)=>{n.d(t,{H:()=>l});var r=n(31085),o=(n(14041),n(20467)),a=n(98258),i=n(23400),l=function(e){var t=e.tooltipSimpleString,n=e.tooltipContent,l=e.children;return(0,r.jsx)("span",{className:i.A.tooltipAdapterContainer,children:n?(0,r.jsx)(a.A,{popper:n,placement:"top",color:"dark",interactive:!0,children:l}):(0,r.jsx)(o.m_,{overlay:t||"",placement:"top",children:l})})};l.displayName="TooltipAdapter"},60206:(e,t,n)=>{n.d(t,{E5:()=>r,M1:()=>a,zx:()=>o});var r={startTransaction:n(80982).nb},o=function(e){return"SnapshotView_"+e},a=function(e){return"ViewsList_"+e}},42807:(e,t,n)=>{n.d(t,{f:()=>i});n(24493),n(96656),n(17306),n(85146),n(37729),n(78370),n(21555),n(94356),n(22892),n(45993);var r=n(64467),o=n(60206),a=n(45250),i=function(){function e(e){void 0===e&&(e=500),(0,r.A)(this,"transactionsMap",new Map),(0,r.A)(this,"name",void 0),(0,r.A)(this,"transactionKey",void 0),(0,r.A)(this,"transaction",void 0),this.start=(0,a.throttle)(this.start.bind(this),e,{trailing:!1}),this.addBeforeUnload()}var t=e.prototype;return t.start=function(e,t){var n=this;this.transaction||(this.name=e,this.transaction=o.E5.startTransaction({name:e}),this.transactionKey=e+":"+t.projectSlug+":"+t.buildNumber,this.transaction.setTag("firstTimeDuringSession",!this.transactionsMap.get(this.transactionKey)),Object.entries(t).forEach(function(e){var t,r=e[0],o=e[1];return null===(t=n.transaction)||void 0===t?void 0:t.setTag(r,o)}))},t.finish=function(e){var t=e.reason,n=e.page;return!!this.transaction&&(this.transactionsMap.set(this.transactionKey,!0),this.transaction.setTag("finishReason",t),this.transaction.setTag("finishPage",n),this.transaction.finish(),delete this.transaction,this.transactionKey=void 0,this.name=void 0,!0)},t.addTags=function(e){var t=this;this.transaction&&Object.entries(e).forEach(function(e){var n,r=e[0],o=e[1];null===(n=t.transaction)||void 0===n||n.setTag(r,o)})},t.addBeforeUnload=function(){var e=this;window.addEventListener("beforeunload",function(){return e.finish({reason:"LeavePage"})})},e}()}
1,32708:(e,t,n)=>{n.d(t,{u:()=>p,J:()=>h});n(93831),n(28882);var r=n(14041),o=(n(68450),n(9417)),a=(n(56822),n(53954),n(77387)),i=n(64467),l=(n(24493),n(78370),n(22892),n(92901)),s=function(){function e(e,t){(0,i.A)(this,"span",void 0),(0,i.A)(this,"childSpans",{}),(0,i.A)(this,"parent",void 0),this.span=e,this.parent=t,this.addBeforeUnload()}var t=e.prototype;return t.startChild=function(e,t){var n;this.endTimestamp||this.childSpans[e]||(this.childSpans[e]=null===(n=this.span)||void 0===n?void 0:n.startChild({description:t,op:e}))},t.finishChild=function(e){var t,n;this.endTimestamp||(null===(t=this.childSpans[e])||void 0===t?void 0:t.endTimestamp)||null===(n=this.childSpans[e])||void 0===n||n.finish()},t.finish=function(e){var t,n,r,o,a=e.reason,i=e.page,l=e.isTerminus;if(this.endTimestamp)return!1;(null===(t=this.span)||void 0===t||t.setTag("finishReason",a),null===(n=this.span)||void 0===n||n.setTag("finishPage",i),null===(r=this.span)||void 0===r||r.finish(),this.childSpans={},delete this.span,l)&&(null===(o=this.parent)||void 0===o||o.finish({reason:"Success",page:i}));return!0},t.addTags=function(e){var t=this;this.endTimestamp||Object.entries(e).forEach(function(e){var n,r=e[0],o=e[1];null===(n=t.span)||void 0===n||n.setTag(r,o)})},t.addBeforeUnload=function(){var e=this;window.addEventListener("beforeunload",function(){return e.finish({reason:"LeavePage"})})},(0,l.A)(e,[{key:"endTimestamp",get:function(){var e;return null===(e=this.span)||void 0===e?void 0:e.endTimestamp}}]),e}();function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}var d=function(e){(0,a.A)(r,e);var t,n;t=r,n=c();function r(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,(0,i.A)((0,o.A)(t),"childSpans",{}),t}var l=r.prototype;return l.startChild=function(e,t){this.transaction&&(this.childSpans[e]||(this.childSpans[e]=new s(this.transaction.startChild({description:t,op:e}),this)))},l.finishChild=function(e){var t,n,r;this.transaction&&((null===(t=this.childSpans[e])||void 0===t?void 0:t.endTimestamp)||null===(n=this.childSpans[e])||void 0===n||null===(r=n.span)||void 0===r||r.finish())},l.finish=function(t){var n=t.reason,r=t.page,o=e.prototype.finish.call(this,{reason:n,page:r});return o&&(this.childSpans={}),o},r}(n(42807).f),u=n(68032),p=new d,h=function(e){r.useEffect(function(){var t;(null!=(t=u.parse(location.search))?t:{}).snapshotId&&p.start("SnapshotDeepLink_"+e.variant,e)},[]),r.useEffect(function(){return function(){p.finish({reason:"LeavePage"})}},[])}},64110:(e,t,n)=>{n.d(t,{i:()=>d,r:()=>c});n(93831),n(28882);var r=n(14041),o=n(5117),a=n(68032),i=n(32708),l=n(60206),s=new o.X,c=function(e){if(i.u.transaction){var t=i.u.childSpans[(0,l.zx)(e)];if(t)return t}return s},d=function(e){var t;i.u.finishChild((0,l.M1)(e.variant));var n=(null!=(t=a.parse(location.search))?t:{}).snapshotId;r.useEffect(function(){n&&(i.u.transaction?i.u.startChild((0,l.zx)(e.variant),"child span"):s.start((0,l.zx)(e.variant),e))},[n]),r.useEffect(function(){return function(){i.u.finishChild((0,l.zx)(e.variant)),s.finish({reason:"LeavePage"})}},[])}},5117:(e,t,n)=>{n.d(t,{X:()=>l});n(68450);var r=n(9417),o=(n(56822),n(53954),n(77387)),a=n(64467);function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}var l=function(e){(0,o.A)(l,e);var t,n;t=l,n=i();function l(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o))||this,(0,a.A)((0,r.A)(t),"childSpans",{}),t}var s=l.prototype;return s.startChild=function(e,t){this.transaction&&(this.childSpans[e]||(this.childSpans[e]=this.transaction.startChild({description:t,op:e})))},s.finishChild=function(e){var t,n;this.transaction&&((null===(t=this.childSpans[e])||void 0===t?void 0:t.endTimestamp)||null===(n=this.childSpans[e])||void 0===n||n.finish())},s.finish=function(t){var n=t.reason,r=t.page,o=e.prototype.finish.call(this,{reason:n,page:r});return o&&(this.childSpans={}),o},l}(n(42807).f)},3082:(e,t,n)=>{n.d(t,{BB:()=>b,Dl:()=>I,E6:()=>U,G5:()=>O,M3:()=>w,Mm:()=>E,N:()=>M,Wz:()=>P,c6:()=>C,fJ:()=>D,g$:()=>_,l8:()=>k,nT:()=>A,nq:()=>S,ok:()=>c.o,pw:()=>j,sd:()=>g});n(68450),n(25400),n(1569),n(51214),n(24493),n(74874),n(30935),n(37210),n(96656),n(54),n(95790),n(96104),n(66542),n(73309),n(37729),n(78370),n(21555),n(81152),n(93831),n(34237),n(33111),n(68291),n(94356),n(11505
1),n(98304),n(28882),n(7680),n(22892),n(45993),n(25152);var r=n(64467),o=n(14041),a=n(45250),i=n(65398),l=n.n(i),s=n(63511),c=n(18368);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e){return e?e.replace(new RegExp("/([a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F-]+|[0-9a-fA-F]{20,})(?![^/?])","g"),"/*"):""}var h=/^[a-zA-Z\*]+:\/\/[^\/]+/,m=function(e,t){return t.elementIds.reduce(function(t,n){var r=e.get(n);return r&&t.push(r),t},[])},f=function(e,t){var n;if("Discovery_Interactivity_CompactInteractiveElement"===e.__typename||"Discovery_Interactivity_InteractiveElement"===e.__typename||"Discovery_InteractivityInsights_SummaryElement"===e.__typename)return null!=(n=e.snapshots)?n:[];if(("Discovery_Interactivity_InteractivityGroupResult"===e.__typename||"Discovery_InteractivityInsights_SummaryGroup"===e.__typename)&&t){var r=t.reduce(function(e,t){var n;return null===(n=t.snapshots)||void 0===n||n.forEach(function(t){return e.add(t)}),e},new Set);return Array.from(r)}return[]},v=function(e,t){var n=[];return e.forEach(function(e){e.isPresentOnSnapshot=function(e,t){return!!t&&new Set(e.snapshots).has(t)}(e,t),e.isPresentOnSnapshot&&n.push(e)}),n},y=function(e,t){var n=[];return e.forEach(function(e){e.isPresentOnSnapshot=function(e,t){return!!t&&new Set(f(e,e.elements)).has(t)}(e,t),e.isPresentOnSnapshot&&n.push(e)}),n},g=function(e,t,n,r,a,i,l){return(0,o.useMemo)(function(){if(a||!i||!l)return[];if(!e)return l;var o=t.get(e),s=null;if("Discovery_Interactivity_CompactInteractiveElement"!==(null==o?void 0:o.__typename)&&"Discovery_Interactivity_InteractiveElement"!==(null==o?void 0:o.__typename)&&"Discovery_InteractivityInsights_SummaryElement"!==(null==o?void 0:o.__typename)||!o.inGroup?"Discovery_Interactivity_InteractivityGroupResult"!==(null==o?void 0:o.__typename)&&"Discovery_InteractivityInsights_SummaryGroup"!==(null==o?void 0:o.__typename)||(s=o):s=t.get(o.groupId),!o&&!s)return console.error("Invalid itemId in URL params: "+e),r({itemId:void 0}),l;var c=[];s&&(r({itemId:s.groupId}),c=m(t,s));var d=o&&f(o,c).filter(function(e){return l.includes(e)})||[];return d.includes(n)||r({snapshotId:d[0]}),d},[i,l,e,n,t,r,a])},b=function(e){return!!(null==e?void 0:e.startsWith("*"))},S=function(e,t){var n=new Set,r=new Set;function o(e){var t=I(e);if(t){var o=t.hostname,a=t.protocol,i=t.port;n.add(a),r.add(a+o+i)}}return e.forEach(function(e){e.resolvedHref&&o(e.resolvedHref)}),t.forEach(function(e){var t;!b(e.discriminator)&&e.elements&&(null===(t=e.elements[0])||void 0===t?void 0:t.resolvedHref)&&o(e.elements[0].resolvedHref)}),{protocols:n,hostnamesWithPort:r}},w=function(e){return"ANCHOR HREF"===e.rule&&e.elements.length&&!e.elements.some(function(e){return"NAVIGABLE"===e.hrefType})},_=function(e){var t=e.view,n=e.elements,r=e.groups,o=e.allLinksHaveSameProtocol,a=e.allLinksHaveSameHostAndPort,i=e.allLinksHaveSameViewProtocol,l=e.allLinksHaveSameViewHostAndPort;return{finalElements:n.map(function(e){return e.displayName||"NAVIGABLE"!==e.hrefType?"ACTIONABLE"===e.hrefType?u({},e,{displayName:N(e.href)}):e:u({},e,{displayName:x(j({resolvedHref:e.resolvedHref,href:e.href,allLinksHaveSameProtocol:o,allLinksHaveSameHostAndPort:a,viewUrl:t,allLinksHaveSameViewProtocol:i,allLinksHaveSameViewHostAndPort:l}))})}),finalGroups:r.map(function(e){var n,r,s,c;return"ANCHOR HREF"!==e.rule?e:w(e)?u({},e,{label:N(e.elements[0].href)}):u({},e,{label:x(j({groupDiscriminator:e.discriminator,resolvedHref:null===(n=e.elements)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.resolvedHref,href:null===(s=e.elements)||void 0===s||null===(c=s[0])||void 0===c?void 0:c.href,allLinksHaveSameProtocol:o,allLinksHaveSameHostAndPort:a,viewUrl:t,allLinksHaveSameViewProtocol:i,allLinksHaveSameViewHostAndPort:l}))})})}},I=function(e){try{return new URL(e)}catch(e){return null}},x=function(e){return"Link: "+(e||"")},N=function(e){return'[href="'+e+'"]'},j=function(e){var t=e.groupDiscriminator,n=e.resolvedHref,r=e.href,o=e.allLinksHaveSameProtocol,a=e.allLinksHaveSameHostAndPort,i=e.viewUrl,l=e.allLinksHaveSameViewProtocol,s=e.allLinksHaveSameViewHostAndPort,c=((null==t?void 0:t.match(h))||[])[0],d=c?null==t?void 0:t.replace(c,""):t;if(c&&b(c)&&d)return d;var u=I(n),m=t||p(n||r);if(!u)return m;var f=i&&i.protocol===u.protocol&&i.hostname===u.hostname&&i.port===u.port,v=a&&(!i||s),y=o&&(!i||l),g=u.protocol+"//"+u.hostname+(u.port?":"+u.port:""),S=p(""+u.pathname+u.search+u.hash);return f||v?d||S:y?""+(u.hostname+(u.port?":"+u.port:""))+(""+(d||S)):(c||!t||t.startsWith(g)||(m=""+g+t),m)},C=function(e,t){var n=null==t?void 0:t.interactivityReport.elementInteractions.interactions,r=null==t?void 0:t.interactivityReport.elementInteractions.membersSeen;return(0,o.useMemo)(function(){var t,o=new Map,i=[],l=new Map;return n?(null==r||r.forEach(function(e){var t=e.view,n=e.elementId;
1l.has(t.id)||l.set(t.id,{view:u({targetElementId:n},t),interactions:[],totalInteractionCount:0,interactionMap:{}})}),n.forEach(function(e){var t=e.view.id,n=u({},e,{test:u({},e.test,{replay:e.replay,specFile:u({},e.test.specFile,{tests:[]}),frames:[],frameCount:0})});if("visited-url"!==e.command){var r=l.get(t);r?(r.interactions.push(n),r.totalInteractionCount+=1):l.set(t,{view:e.view,interactions:[n],totalInteractionCount:1,interactionMap:{}})}else i.push(n)}),Array.from(l.keys()).forEach(function(t){var n,r=(0,a.groupBy)(null===(n=l.get(t))||void 0===n?void 0:n.interactions,"command"),i=l.get(t);i&&l.set(t,u({},i,{interactionMap:r})),e&&t!==e&&o.set(t,l.get(t))}),{currentViewInteractions:e?(null===(t=l.get(e))||void 0===t?void 0:t.interactionMap)||{}:Array.from(l.values()).reduce(function(e,t){for(var n=0,r=Object.entries(t.interactionMap);n<r.length;n++){var o,a=r[n],i=a[0],l=a[1];if(e[i])(o=e[i]).push.apply(o,l);else e[i]=l}return e},{}),otherViews:o,visitedInteractions:i}):{currentViewInteractions:{},otherViews:o,visitedInteractions:i}},[n,r,e])},A=function(e){return(0,o.useMemo)(function(){var t=[],n=[],r=[],o=[];return e.forEach(function(a){return"Discovery_Interactivity_InteractivityGroupResult"===a.__typename||"Discovery_InteractivityInsights_SummaryGroup"===a.__typename?(d=P(i=a,i.elementIds.length),p=m(e,i),h=function(){return f(i,p)},v=i.discriminator,y=null!=(l=i.interactionCount)?l:(null===(s=p.find(function(e){return e.interactionCount}))||void 0===s?void 0:s.interactionCount)||0,g=null!=(c=i.visited)?c:p.some(function(e){return e.visited}),void(y||g?r.push(u({},i,{tooltipContent:d,label:v,getSnapshotIds:h,elements:p,interactionCount:y,visited:g})):o.push(u({},i,{tooltipContent:d,label:v,getSnapshotIds:h,elements:p})))):"Discovery_Interactivity_CompactInteractiveElement"!==a.__typename&&"Discovery_Interactivity_InteractiveElement"!==a.__typename&&"Discovery_InteractivityInsights_SummaryElement"!==a.__typename||a.inGroup?void 0:function(e){var r=e.interactionCount,o=e.visited,a=function(){return f(e)};r||o?t.push(u({},e,{interactionCount:r,getSnapshotIds:a,visited:o})):n.push(u({},e,{interactionCount:r,getSnapshotIds:a,visited:o}))}(a);var i,l,s,c,d,p,h,v,y,g}),{testedElements:t,untestedElements:n,testedGroups:r,untestedGroups:o}},[e])},E=function(e){var t=e.formattedTestedElements,n=e.formattedUntestedElements,r=e.formattedTestedGroups,a=e.formattedUntestedGroups,i=e.snapshotId;return(0,o.useMemo)(function(){return{elements:{tested:v(t,i),untested:v(n,i)},groups:{tested:y(r,i),untested:y(a,i)}}},[t,n,r,a,i])},O=function(e,t){var n=(0,o.useMemo)(function(){var t=(null==e?void 0:e.interactivity.allElements)||[],n=(null==e?void 0:e.interactivity.groups)||[],r=[].concat(t,n),o=new Map(r.map(function(e){return"Discovery_Interactivity_InteractivityGroupResult"===e.__typename?[e.groupId,u({},e,{inGroup:!1})]:[e.id,u({},e,{inGroup:!1,groupId:""})]}));return n.forEach(function(e){e.elementIds.forEach(function(t){var n=o.get(t);n&&(n.inGroup=!0,n.groupId=e.groupId)})}),o},[e]),r=A(n),a=r.testedElements,i=r.untestedElements,l=r.testedGroups,s=r.untestedGroups,c=(0,o.useMemo)(function(){var t=[].concat(a),n=[].concat(i),r=[].concat(l),o=[].concat(s),c=I(null==e?void 0:e.href);if(c){var d=c.protocol+c.hostname+c.port,u=t.filter(function(e){return"NAVIGABLE"===e.hrefType}),p=r.filter(function(e){return"ANCHOR HREF"===e.rule}),h=S(u,p),m=h.protocols,f=h.hostnamesWithPort,v=1===m.size,y=1===f.size,g=y&&f.has(d),b=v&&m.has(c.protocol),w=_({view:c,elements:t,groups:r,allLinksHaveSameProtocol:v,allLinksHaveSameHostAndPort:y,allLinksHaveSameViewProtocol:b,allLinksHaveSameViewHostAndPort:g});t=w.finalElements,r=w.finalGroups;var x=n.filter(function(e){return"NAVIGABLE"===e.hrefType}),N=o.filter(function(e){return"ANCHOR HREF"===e.rule}),j=S(x,N),C=j.protocols,A=j.hostnamesWithPort,E=1===C.size,O=1===A.size,R=E&&A.has(d),k=E&&C.has(c.protocol),M=_({view:c,elements:n,groups:o,allLinksHaveSameProtocol:v&&E,allLinksHaveSameHostAndPort:y&&O,allLinksHaveSameViewProtocol:b&&k,allLinksHaveSameViewHostAndPort:g&&R});n=M.finalElements,o=M.finalGroups}return{formattedTestedElements:t,formattedUntestedElements:n,formattedTestedGroups:r,formattedUntestedGroups:o}},[null==e?void 0:e.href,a,i,l,s]),d=c.formattedTestedElements,p=c.formattedUntestedElements,h=c.formattedTestedGroups,m=c.formattedUntestedGroups,f=E({formattedTestedElements:d,formattedUntestedElements:p,formattedTestedGroups:h,formattedUntestedGroups:m,snapshotId:t});return(0,o.useMemo)(function(){return{allViewItemsMap:n,elements:{tested:d,untested:p},groups:{tested:h,untested:m},snapshot:f}},[n,d,p,h,m,f])},R=function(e){try{var t=JSON.parse(e);if(!Array.isArray(t))throw new Error("Unsupported selector format");return t}catch(t){return[e]}},k=function(e,t){return e.displayName?e.displayName:"NAVIGABLE"===e.hrefType?x(e.resolvedHref||e.href):"ACTIONABLE"===e.hrefType?N(e.href||e.href):R(t).join(" ")},M=function(e,t){return(0,o.useMemo)(function(){return t.flatMap(function(t){var n,r=t.interactionCount,o=t.visited,a="",i=[],l="";if("Discovery_Interactivity_CompactInteractiveElement"===t.__typename||"Discovery_Interactivity_InteractiveElement"===t.__typename||"Discovery_InteractivityInsights_
1SummaryElement"===t.__typename){var s;a=t.id;var c=e&&(null===(s=t.snapshots)||void 0===s?void 0:s.includes(e))&&t.selector;c&&(i=[c],l=k(t,c))}else"Discovery_Interactivity_InteractivityGroupResult"!==t.__typename&&"Discovery_InteractivityInsights_SummaryGroup"!==t.__typename||(a=t.groupId,i=t.elements.filter(function(t){var n;return e&&(null===(n=t.snapshots)||void 0===n?void 0:n.includes(e))}).map(function(e){return e.selector}),n=T(t.rule,t.elements.length)?void 0:t.elements.length,l=t.label);return i.map(function(e,t){var s=R(e),c=s.pop()||e,d=s.length?s:void 0;return{selector:c,status:r||o?"pass":"fail",listItemId:a,groupIndex:i.length>1?t:void 0,tag:r||void 0,groupLength:i.length,label:l,pathToContainer:d,elementCount:n,visited:o}})})},[e,t])};function T(e,t){return"ANCHOR HREF"===e&&1===t}function P(e,t){if(!T(e.rule,t)){if("FORM CONTROL"===e.rule&&1===t)return"Form element";var n=function(e){switch(e){case"ANCHOR HREF":return"link";case"UI GROUP IDENTIFIER":return"group identifier";case"LISTITEM OPTION":return"list option";case"TABLE ROWS":return"table structure";case"CONFIG ELEMENT GROUPS":return"configuration";default:return(0,a.words)(e).map(a.lowerCase).join(" ")}}(e.rule);return e.mergedFromFormControl&&(n+=" (with form control)"),t+" "+l()("instance",t)+" grouped by "+n}}var D=function(e,t,n,r){var a=(0,o.useMemo)(function(){return e?e.targetItem.getSnapshotIds():null},[e]),i=(0,o.useMemo)(function(){return!(!t||!a)&&a.includes(t)},[t,a]);!e||e.id!==n&&n||e.isPresentOnSnapshot===i||r(u({},e,{isPresentOnSnapshot:i}))},U=function(e,t,n){var r=(0,s.Zl)(e,function(e){return null==e?void 0:e.run.discoveryOrPoll})({variables:t}),o=r.data,a=r.loading,i=r.error;return{data:null==o?void 0:o.interactivityReport[n],loading:a,hasError:Boolean(i)}}},25111:(e,t,n)=>{n.d(t,{Ax:()=>l,T_:()=>h,up:()=>u,vA:()=>m});n(68450),n(38415),n(25400),n(24493),n(30935),n(54),n(66542),n(85146),n(99180),n(78370),n(29416),n(93831),n(68291),n(30488),n(22892);var r=n(14041),o=n(17056),a=n(18368),i=function(e){return function(e){return 0===e.fail&&0===e.ignore&&0===e.incomplete&&0===e.pass}(e)||0===e.fail&&0===e.incomplete&&(e.ignore>0||e.pass>0)},l=function(e,t){return t.some(function(t){return o.ie.some(function(n){var r=n.value,o=n.tags;return e.includes(r)&&o.includes(t)})})},s=function(e,t){return!t||e.name.toLowerCase().includes(t.toLowerCase())},c=function(e,t){return!(!i(t)||!e.includes("other"))||["fail","incomplete"].some(function(n){var r=t[n];return e.includes(n)&&r>0})},d=function(e){return{appliedImpacts:e("impact",{validValues:[].concat(o.Zl,[""]),defaultValue:o.Zl.join(",")}).split(",").filter(Boolean),appliedRulesets:e("ruleset",{validValues:[].concat(o.h_,[""]),defaultValue:o.h_.join(",")}).split(",").filter(Boolean)}},u=function(e,t,n,r){var a=d(e),i=a.appliedImpacts,l=a.appliedRulesets,s=o.EN.join(","),c="comparison"!==r&&t?e("status",{validValues:[].concat(o.Jx,[""]),defaultValue:s+(n?",ignore":"")}).split(",").filter(Boolean):["fail"];return{appliedImpacts:i,appliedRulesets:l,appliedStatuses:n&&!c.includes("ignore")&&c.length===o.EN.length&&o.EN.every(function(e){return c.includes(e)})?[].concat(c,["ignore"]):c}},p=function(e,t,n){var l=(0,a.o)({localStorageKey:"accessibility-views-table"}).getSearchParam,s=l("viewName")||"",c=l("ruleName")||"",u=n?l("tab",{defaultValue:"views",validValues:["views","rules"]}):"views",p=(0,r.useMemo)(function(){return"views"===u?e.every(function(e){return i(e.elementCountsByStatus)}):t.every(function(e){return i(e.elementCountsByStatus)})},[t,u,e]),h=function(e,t,n){var r=d(e);return{appliedImpacts:r.appliedImpacts,appliedRulesets:r.appliedRulesets,appliedStatuses:t?e("status",{validValues:[].concat(o.YR,[""]),defaultValue:o.lp.join(",")+(n?",other":"")}).split(",").filter(Boolean):["fail"]}}(l,n,p),m=h.appliedImpacts,f=h.appliedRulesets,v=h.appliedStatuses,y=(0,r.useMemo)(function(){return function(e,t,n,r){var a,l={impact:{critical:0,serious:0,moderate:0,minor:0},ruleset:(a={wcag21a:0,wcag21aa:0},a["best-practice"]=0,a),status:{fail:0,incomplete:0,other:0}};return"views"===n?e.forEach(function(e){Object.entries(e.violationCountsByImpact).forEach(function(e){var t=e[0],n=e[1];Number(n)>0&&l.impact[t]++}),o.ie.forEach(function(t){e.tags.some(function(e){return t.tags.includes(e)})&&l.ruleset[t.value]++}),r&&(i(e.elementCountsByStatus)?l.status.other++:Object.keys(l.status).forEac
1h(function(t){"other"!==t&&e.elementCountsByStatus[t]>0&&l.status[t]++}))}):"rules"===n&&t.forEach(function(e){l.impact[e.impact]++,o.ie.forEach(function(t){e.tags.some(function(e){return t.tags.includes(e)})&&l.ruleset[t.value]++}),r&&(i(e.elementCountsByStatus)?l.status.other++:Object.keys(l.status).forEach(function(t){"other"!==t&&e.elementCountsByStatus[t]>0&&l.status[t]++}))}),l}(e,t,u,n)},[e,t,u,n]),g={viewName:s,ruleName:c,impact:{title:n?"Rule severity":"Violation severity",appliedKeys:m,counts:y.impact},ruleset:{title:"Rules",appliedKeys:f,counts:y.ruleset}};return n&&(g.status={title:"Element status",appliedKeys:v,counts:y.status}),g},h=function(e,t,n){void 0===t&&(t="ui-coverage-views-table"),void 0===n&&(n="viewName");var o=(0,a.o)({localStorageKey:t}).getSearchParam,i=(0,r.useMemo)(function(){var e;return(e={})[n]=o(n)||"",e},[o,n]),l=(0,r.useMemo)(function(){return i[n]?e.filter(function(e){return s(e,i[n])}):e},[i,e,n]);return{filters:i,filteredArr:l}},m=function(e,t,n){var a=p(e,t,n),i=(0,r.useMemo)(function(){return function(e,t,n){var r=e.impact,a=e.ruleset,i=e.viewName,d=e.status;if(!r.appliedKeys.length||!a.appliedKeys.length||n&&!(null==d?void 0:d.appliedKeys.length))return[];var u=r.appliedKeys.length===o.Zl.length,p=a.appliedKeys.length===o.h_.length,h=(null==d?void 0:d.appliedKeys.length)===o.YR.length;return t.filter(function(e){var t=s(e,i)&&(u||function(e,t){return e.some(function(e){return t.violationCountsByImpact[e]>0})}(r.appliedKeys,e))&&(p||l(a.appliedKeys,e.tags)),o=n&&d&&(h||c(null==d?void 0:d.appliedKeys,e.elementCountsByStatus));return n?t&&o:t})}(a,e,n)},[a,n,e]),d=(0,r.useMemo)(function(){return function(e,t,n){var r=e.impact,a=e.ruleset,i=e.ruleName,s=e.status;if(!r.appliedKeys.length||!a.appliedKeys.length||n&&!(null==s?void 0:s.appliedKeys.length))return[];var d=r.appliedKeys.length===o.Zl.length,u=a.appliedKeys.length===o.h_.length,p=(null==s?void 0:s.appliedKeys.length)===o.YR.length;return t.filter(function(e){return function(e,t){return!t||e.help.toLowerCase().includes(t.toLowerCase())}(e,i)&&(d||r.appliedKeys.includes(e.impact))&&(u||l(a.appliedKeys,e.tags))&&n&&s&&(p||c(null==s?void 0:s.appliedKeys,e.elementCountsByStatus))})}(a,t,n)},[a,n,t]);return{filters:a,filteredViews:i,filteredRules:d}}},18368:(e,t,n)=>{n.d(t,{o:()=>h});n(38415),n(24493),n(74874),n(30935),n(96656),n(95790),n(66542),n(96152),n(78370),n(93249),n(29416),n(21555),n(93831),n(34237),n(68291),n(94356),n(11505),n(28882),n(30488),n(22892),n(45993),n(25152);var r=n(64467),o=n(14041),a=n(19262);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c={violationId:"ruleId"},d=Object.keys(c),u=Object.fromEntries(Object.entries(c).map(function(e){var t=e[0];return[e[1],t]})),p=function(e){var t=(0,a.Zp)();(0,o.useEffect)(function(){if(d.some(function(t){return e.includes(t)})){for(var n,r=!1,o=new URLSearchParams(e),a=l(o.entries());!(n=a()).done;){var i=n.value,s=i[0],u=i[1];c[s]&&(r=!0,o.set(c[s],u),o.delete(s))}r&&t("?"+o.toString(),{replace:!0})}},[e,t])};function h(e){var t=(0,a.Zp)(),n=(0,a.zy)(),l=(0,o.useMemo)(function(){var t;return(null==e?void 0:e.localStorageKey)?(null===(t=n.pathname.match(/\/projects\/([^/]+)/))||void 0===t?void 0:t[1])+"-"+e.localStorageKey:""},[null==e?void 0:e.localStorageKey,n.pathname]),s=(0,o.useMemo)(function(){return l?window.localStorage.getItem(l):null},[l]);p(n.search),(0,o.useEffect)(function(){s&&!n.search&&t(s,{replace:!0})},[n.search,s,t]);var c=(0,o.useMemo)(function(){return new URLSearchParams(window.location.search||n.search||l&&window.localStorage.getItem(l)||"")},[n.search,l]),d=(0,o.useRef)(n);d.current=n;var h=(0,o.useRef)({});return(0,o.useEffect)(function(){var e=h.current;if(0!==Object.keys(e).length){h.current={};
1var r=new URLSearchParams(window.location.search);Object.entries(e).forEach(function(e){var t=e[0],n=e[1];void 0===n?r.delete(t):r.has(t)?r.set(t.replaceAll("+"," "),n):r.append(t,n)}),l&&window.localStorage.setItem(l,"?"+r.toString()),Array.from(r).length?t("?"+r.toString(),{replace:!0}):t(n.pathname,{replace:!0})}}),(0,o.useMemo)(function(){return{getSearchParam:function(e,t){var n,o,a,s=u[e],d=c.get(e),p=d;if(null===p&&s&&(p=c.get(s)),null===p&&l){var m=window.localStorage.getItem(l);if(m){var f=new URLSearchParams(m);null===(p=f.get(e))&&s&&(p=f.get(s))}}(null==t?void 0:t.validValues)&&null!==p&&(p.split(",").every(function(e){return t.validValues.includes(e)})||(p=null!=(a=null==t?void 0:t.defaultValue)?a:null));var v,y=null!=(n=null!=(o=p)?o:null==t?void 0:t.defaultValue)?n:null;y!==d&&(h.current=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},h.current,((v={})[e]=null!=y?y:void 0,v)));return y},setSearchParams:function(e){var n=new URLSearchParams(window.location.search||l&&window.localStorage.getItem(l)||"");Object.entries(e).forEach(function(e){var t=e[0],r=e[1];void 0===r?n.delete(t):n.has(t)?n.set(t.replaceAll("+"," "),r):n.append(t,r)}),l&&window.localStorage.setItem(l,"?"+n.toString()),Array.from(n).length?t("?"+n.toString(),{replace:!0}):t(d.current.pathname,{replace:!0})}}},[t,c,l])}},97918:(e,t,n)=>{n.d(t,{k:()=>f});n(68875);var r=n(64467),o=n(98587),a=n(31085),i=(n(14041),n(19262)),l=n(99420),s=n.n(l),c=n(65398),d=n.n(c),u=n(72384),p=n(25992),h=n(22884);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var f=function(e){var t=e.run,n=e.orgId,l=e.dataRetentionDays,c=e.viewerIsOwnerOrAdmin,f=void 0!==c&&c,v=e.showRunInfo,y=void 0!==v&&v,g=e.fill,b=void 0!==g&&g,S=(0,o.A)(e,["run","orgId","dataRetentionDays","viewerIsOwnerOrAdmin","showRunInfo","fill"]),w=(0,i.Zp)(),_=s()().diff(s()(t.createdAt),"days"),I=f?"Upgrade plan":"Contact admin",x=f?"/organizations/"+n+"/pricing":"/organizations/"+n+"/users";return(0,a.jsx)(u.O_,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({fill:b,icon:(0,a.jsx)(h.nK,{}),primaryText:"Beyond data retention",secondaryText:(0,a.jsxs)("div",{style:{justifyContent:"center"},children:["Your data retention limit is"," ",d()("day",l,!0)," and these tests ran"," ",d()("day",_,!0)," ago. Upgrade your plan to increase your data retention limit.",y&&(0,a.jsx)(p.CR,{run:t,className:"pt-[4px] m-auto"})]})},S,{children:(0,a.jsx)(u.qj,{label:I,onClick:function(){w(x)}})}))};f.displayName="DataRetentionPlaceholder"},72384:(e,t,n)=>{n.d(t,{Ef:()=>b,qj:()=>S,O_:()=>_,Cv:()=>w});n(68875);var r=n(64467),o=n(98587),a=n(31085),i=(n(14041),n(20053)),l=n(40895);const s="module-PlaceholderLayout__scrollContainer__amzft",c="module-PlaceholderLayout__fill__Jg49P",d="module-PlaceholderLayout__container__HQNDy",u="module-PlaceholderLayout__icon__tUnE2",p="module-PlaceholderLayout__primaryText__XFg8u",h="module-PlaceholderLayout__secondaryText__GXKm8",m="module-PlaceholderLayout__button__AXHy3",f="module-PlaceholderLayout__secondary__O6raf",v="module-PlaceholderLayout__buttonContainer__bjzte";function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=function(e){var t=e.children;return(0,a.jsx)("div",{className:v,children:t})};b.displayName="ButtonContainer";var S=function(e){var t=e.label,n=(0,o.A)(e,["label"]);return(0,a.jsx)(l.Ay,g({variant:"indigo-dark",className:m,children:t},n))};S.displayName="PlaceholderButton";var w=function(e){var t=e.label,n=(0,o.A)(e,["label"]);return(0,a.jsx)(l.Ay,g({variant:"outline-indigo",className:(0,i.A)(m,f),children:t},n))};w.displayName="SecondaryPlaceholderButton";var _=function(e){return(0,a.jsx)("div",{className:(0,i.A)(s,e.className,e.fill&&c),children:(0,a.jsxs)("div",{className:d,"data-cy":e.dataCy,children:[(0,a.jsx)("div",{className:u,children:e.icon}),e.primaryText?(0,a.jsx)("div",{className:p,children:e.primaryText}):void 0,e.secondaryText?(0,a.jsx)("div",{className:h,children:e.secondaryText}):void 0,e.children]})})};_.displayName="PlaceholderLayout"},4660:(e,t,n)=>{n.d(t,{z:()=>p});n(93831),n(98304);var r=n(31085),o=n(20053),a=n(35118);n(14041);const i="module-SpecPath__specPathWrapper__X8i7i",l="module-SpecPath__defaultIconStyle__gp3fq",s="module-SpecPath__specPath__XygYm",c="module-SpecPath__filePath__O9HIy",d="module-SpecPath__fileName___o9gl",u="module-SpecPath__fileExtension__gWKD4";var p=function(e){var t=e.className,n=e.specPathClassName,p=e.spec,h=e.variant,m=void 0===h?"dark":h,f=p.path.replace(p.shortPath,""),v=p.shortPath.replace(p.extension,"");return(0,r.jsxs)("div",{title:""+f+v+p.extension,className:(0,o.A)(i,t),children:[(0,r.jsx)(a.uVh,{className:l,fillColor:"light"===m?"gray-50":void 0}),(0,r.jsx)("div",{"data-cy":"spec-card-filename",className:(0,o.A)(s,n),children:(0,r.jsx)("bdo",{role:"none",dir:"rtl",className:"w-full pt-[3px] truncate inline-block",title:""+f+v+p.extension,children:(0,r.jsxs)("bdo",{role:"none",dir:"ltr",children:[(0,r.jsx)("span",{className:c,children:f}),(0,r.jsx)("span",{className:d,children:v}),(0,r.jsx)("span",{className:u,children:p.extension})]})})})]})};p.displayName="SpecPath"},65209:(e,t,n)=>{n.d(t,{L:()=>g,R:()=>y});n(95790);var r=n(64467),o=n(31085),a=n(35118),i=n(81648),l=n(11290),s=(n(14041),n(74252)),c=n(23361),d=n(61700),u=n(1376),p=n(4660);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var m=function(e){var t=0;return e.map(function(e){return e.testResults.map(function(){return t+=1})}),t},f=function(e){var t=e.testResult,n=e.testClicked,r=e.interactionIcon;return(0,o.jsxs)("div",{onClick:function(){return n(t)},"data-cy":"test-results-row",className:u.A.testRowWrapper,children:[(0,o.jsx)("div",{"data-cy":"parent-test-row--status",className:u.A.statusIcon,children:(0,o.jsx)(d.k,{status:t.state})}),(0,o.jsx)("div",{className:u.A.titleParts,children:(0,o.jsx)(c.Zx,{children:(0,o.jsx)(s.n,{id:t.titleHash,noWrap:!0,titleParts:t.titleParts,style:u.A.testResultTile})})}),t.interactionCount&&(0,o.jsx)("div",{className:"ml-[5px]",children:(0,o.jsx)(l.A,{icon:r,interactionCount:t.interactionCount,hideTooltip:!0})}),(0,o.jsx)("div",{className:u.A.chevron,children:(0,o.jsx)(a.UMd,{strokeColor:"gray-500"})})]})};f.displayName="TestReplayDrawerRow";var v=function(e){var t=e.spec,n=e.preTestContent,a=e.testClicked,i=e.interactionIcon,l=function(e){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{test:e});a(n)};return(0,o.jsxs)("div",{className:u.A.card,"data-cy":"test-replay-tests-for-review-card",children:[(0,o.jsx)("div",{className:u.A.heading,children:(0,o.jsx)(p.z,{spec:t})}),(0,o.jsxs)("div",{className:u.A.tests,children:[n,t.testResults.map(function(e,t){return(0,o.jsx)(f,{testResult:e,interactionIcon:i,testClicked:function(e){return l(e)}},t)})]})]})};v.displayName="TestReplayDrawerSpec";var y=function(e){var t=e.specs,n=e.testClicked,r=e.menuHeader,a=e.interactionIcon,i=e.preTestContent,l=m(t);return(0,o.jsxs)("div",{className:u.A.drawer,"data-cy":"test-replay-drawer",children:[(0,o.jsx)("div",{className:u.A.snapshotOverview,children:r({testCount:l})}),t.map(function(e,t){return(0,o.jsx)(v,{spec:e,testClicked:n,interactionIcon:a,preTestContent:i},t)}
1)]})};y.displayName="TestReplayDrawer";var g=function(e){var t=e.specs,n=e.triggerTestReplay,r=e.buttonContent,a=e.buttonAttrs,l=e.dialogAttrs,s=e.dialogContent,c=e.popoverAttrs,d="Test Replay",u=m(t);return(0,o.jsx)(i.A,{buttonContent:r({testCount:u,buttonTitle:d}),buttonAttrs:a?a({testCount:u,buttonTitle:d}):void 0,dialogAttrs:l,dialogContent:s({specs:t,triggerTestReplay:n}),popoverAttrs:c})};g.displayName="TestReplayMenu"},65842:(e,t,n)=>{n.d(t,{M:()=>b});n(1569),n(24493),n(74874),n(96656),n(95790),n(85146),n(21555),n(39170),n(33111),n(94356),n(22892),n(45993);var r=n(64467),o=n(98587),a=n(31085),i=n(14041),l=n(65209),s=n(72814),c=n(33145),d=n(17885),u=n(3082),p=(n(68450),n(93954)),h=n(45250);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v=function(e){var t=e.runId,n=e.specIds,r=(0,i.useState)(1),o=r[0],a=r[1],l=(0,i.useState)(),s=l[0],c=l[1],d=(0,i.useRef)(s);d.current=s;var u=(0,p.cs8)({variables:{runId:t,specs:n,page:o},skip:0===n.length}),m=u.data,v=u.error;return(0,i.useEffect)(function(){if(m){var e=function(e,t){if(!e)return t;return{run:f({},e.run,{testResults:f({},e.run.testResults,{nodes:(0,h.uniqBy)([].concat(e.run.testResults.nodes,(null==t?void 0:t.run.testResults.nodes)||[]),"id")})})}}(d.current,m),t=e.run.testResults.nodes.length,n=t>0,r=t===e.run.testResults.totalCount;c(e),!r&&n&&a(function(e){return e+1})}},[m]),{testData:s,testError:v}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var b=function(e){var t=e.runUuid,n=e.snapshotTests,r=e.variant,p=(0,o.A)(e,["runUuid","snapshotTests","variant"]),h=(0,u.ok)(),m=h.getSearchParam,f=h.setSearchParams,y=(0,i.useMemo)(function(){return Array.from(new Set(n.map(function(e){return e.specFile.cloudInstanceUuid||""})))},[n]),b=v({runId:t,specIds:y}),S=b.testData,w=b.testError,_=(0,i.useMemo)(function(){var e={},t={};return null==S||S.run.testResults.nodes.forEach(function(r){var o,a,i;if((0,d.e)(r.capture)){var l=r.instance,s=n.find(function(e){return e.specFile.cloudInstanceUuid===r.instance.id&&e.runnableId===r.testId});if(s){var c={id:r.id,instanceId:l.id,state:r.state,titleParts:r.titleParts,titleHash:r.titleHash,browserName:l.browser.formattedNameWithVersion,osName:l.os.name,groupName:(null===(o=l.group)||void 0===o?void 0:o.name)||"",replayTimestamp:(null===(a=s.replay)||void 0===a?void 0:a.timestamp)||void 0,replayAttempt:(null===(i=s.replay)||void 0===i?void 0:i.attempt)||void 0,replayEventId:s.eventId||void 0,interactionCount:s.interactionCount};e[c.id]=c,t[l.id]||(t[l.id]={basename:l.spec.basename,extension:l.spec.extension,path:l.spec.path,shortPath:l.spec.shortPath,testResults:[]}),t[l.id].testResults.push(c)}}}),[e,t]},[n,null==S?void 0:S.run.testResults.nodes]),I=_[0],x=_[1];if(w)return(0,a.jsx)(c.m,{size:"small"});var N=Object.values(x);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.L,g({specs:N,triggerTestReplay:function(e,t){var n={replayTestId:e.test.id,variant:t};e.test.replayTimestamp&&(n.ts=""+e.test.replayTimestamp),e.test.replayAttempt&&(n.att=""+e.test.replayAttempt),e.test.replayEventId&&(n.pc=e.test.replayEventId),f(n)}},p)),function(){var e=m("replayTestId"),t=m("variant");if(!e||!S)return null;var n=I[e];return n&&t===r?(0,a.jsx)(s.r,{testUuid:n.id,run:S.run,spec:{title:x[n.instanceId].basename,browser:n.browserName,group:n.groupName,os:n.osName},onHide:function(){f({replayTestId:void 0,ts:void 0,att:void 0,pc:void 0,variant:void 0})},hasPaidPlan:S.run.project.organizationInfo.subscription.plan.isPaid}):null}()]})}},61700:(e,t,n)=>{n.d(t,{k:()=>l});var r=n(31085),o=n(20467);n(14041);const a="module-TestResultsStatusIcon__passed__roRSh",i="module-TestResultsStatusIcon__loading__jM2ZJ";var l=function(e){var t=e.status;return"FAILED"===t?(0,r.jsx)(o.pR,{"data-cy":"failed-icon",name:"status-failed-circle-solid",size:"x16"}):"RUNNING"===t?(0,r.jsx)(o.pR,{"data-cy":"loading-icon",className:i,alt:"status-loading",name:"status-loading",size:"x16",
1spin:!0}):"SKIPPED"===t?(0,r.jsx)(o.pR,{"data-cy":"skipped-icon",alt:"status-skipped",name:"status-skipped",size:"x16"}):"PENDING"===t?(0,r.jsx)(o.pR,{"data-cy":"pending-icon",alt:"status-pending",name:"status-pending",size:"x16"}):"CANCELLED"===t?(0,r.jsx)(o.pR,{"data-cy":"canceled-icon",alt:"status-canceled",name:"status-canceled-circle-solid",size:"x16"}):"ERRORED"===t||"TIMEDOUT"===t?(0,r.jsx)(o.pR,{"data-cy":"errored-icon",alt:"status-errored",name:"status-errored-circle-solid",size:"x16"}):"PASSED"===t?(0,r.jsx)(o.pR,{className:a,name:"status-passed-circle-solid",size:"x16","data-cy":"passed-icon"}):null}},63511:(e,t,n)=>{n.d(t,{Zl:()=>d,j3:()=>u,q7:()=>s});n(7680),n(78527);var r=n(64467),o=n(14041),a=n(53570),i=n(75950);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var s="Operation unsupported",c="Data Retrieval Failed";function d(e,t){return function(n){var d=e(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({fetchPolicy:"cache-first"},n)),u=d.data,p=d.loading,h=d.error,m=d.refetch,f=d.fetchMore,v=d.networkStatus,y=function(e,t,n,r){var a;void 0===r&&(r={});var l=r.maxRetries,s=void 0===l?null!=(a=window.__readApiRetryLimit)?a:120:l,c=t.error,d=t.refetch,u=t.
1networkStatus,p=Boolean(e),h=Boolean(c),m=r.skip?"READY":h?"FAILED":"WAITING_INGESTION_AND_DOWNLOAD",f=(0,o.useRef)(null),v=(0,o.useState)(0),y=v[0],g=v[1];if(p){var b=n(e);"Discovery_Query"===(null==b?void 0:b.__typename)||"Discovery_ComparisonInsights"===(null==b?void 0:b.__typename)?(m="READY",f.current=b):"Discovery_SourceDataPoll"===(null==b?void 0:b.__typename)&&(m=b.status),u===i.pT.ready&&null===b&&(m="READY")}y>=s&&(m="FAILED");var S=m.startsWith("WAITING");return(0,o.useEffect)(function(){var e,t=!1;if(p&&!h&&S){var n,r="test"===window.env?null!=(n=window.__pollForDiscoveryTestDelay)?n:100:2e3;e=setTimeout(function(){t||(d(),t||g(function(e){return e+1}))},r)}return function(){t=!0,void 0!==e&&clearTimeout(e)}},[p,d,S,y,r.skip,h]),{isReady:"READY"===m,isLoading:S,isFailed:"FAILED"===m,isUnsupported:"UNSUPPORTED"===m,queryData:r.skip?null:f.current,retryCount:y}}(u,d,t,{skip:n.skip}),g=function(e,t,n){var r;return e?r=e:t?r=new a.K4({errorMessage:c}):n&&(r=new a.K4({errorMessage:s})),r}(h,y.isFailed,y.isUnsupported);return{data:y.queryData,loading:p||y.isLoading,error:g,refetch:m,fetchMore:f,retryCount:y.retryCount,networkStatus:v}}}function u(e){return"Discovery_SourceDataPoll"===(null==e?void 0:e.__typename)?void 0:e}},14295:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(14041);function o(e){var t=r.useRef(null);return r.useEffect(function(){t.current=e}),t.current}},46874:(e,t,n)=>{function r(e){return null!=e.anchorBuildId}function o(e){var t;return r(e)?null===(t=e.anchorRun)||void 0===t?void 0:t.buildNumber:void 0}n.d(t,{S:()=>r,j:()=>o})},88781:(e,t,n)=>{n.d(t,{A:()=>r});const r={popover:"module-IntelligenceMenu__popover__TSzTE",testgenPopover:"module-IntelligenceMenu__testgenPopover___F2lq",menuDialog:"module-IntelligenceMenu__menuDialog__Oc_xa",menuButton:"module-IntelligenceMenu__menuButton__ExJ3c"}},23400:(e,t,n)=>{n.d(t,{A:()=>r});const r={interactionsTag:"module-Tag__interactionsTag__ThNIz",elementsTag:"module-Tag__elementsTag__CgHsO",visitedTag:"module-Tag__visitedTag__f1_PB",outlineTag:"module-Tag__outlineTag__mQzfB",tooltipAdapterContainer:"module-Tag__tooltipAdapterContainer__nAO2E"}},1376:(e,t,n)=>{n.d(t,{A:()=>r});const r={drawer:"module-TestReplayMenu__drawer__Up3mh",snapshotOverview:"module-TestReplayMenu__snapshotOverview__I2frX",card:"module-TestReplayMenu__card__kefZX",heading:"module-TestReplayMenu__heading__WJA4w",tests:"module-TestReplayMenu__tests__LbbR5",testRowWrapper:"module-TestReplayMenu__testRowWrapper__ipQ9G",statusIcon:"module-TestReplayMenu__statusIcon__Dqohv",titleParts:"module-TestReplayMenu__titleParts__iXwp0",chevron:"module-TestReplayMenu__chevron__UOSXo"}}}]);
2//# sourceMappingURL=7494.8ff6ab2fec989323daa1.bundle.js.map

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.